1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-09-01 13:47:27 +02:00

chore: orval with impact metrics (#10573)

This commit is contained in:
Mateusz Kwasniewski 2025-08-29 09:23:38 +02:00 committed by GitHub
parent af28fb110d
commit c36d1554c7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
31 changed files with 246 additions and 56 deletions

View File

@ -0,0 +1,14 @@
/**
* Generated by Orval
* Do not edit manually.
* See `gen:api` script in package.json
*/
export type AddReleasePlan401 = {
/** The ID of the error instance */
id?: string;
/** A description of what went wrong. */
message?: string;
/** The name of the error kind */
name?: string;
};

View File

@ -0,0 +1,14 @@
/**
* Generated by Orval
* Do not edit manually.
* See `gen:api` script in package.json
*/
export type AddReleasePlan409 = {
/** The ID of the error instance */
id?: string;
/** A description of what went wrong. */
message?: string;
/** The name of the error kind */
name?: string;
};

View File

@ -15,4 +15,5 @@ export const ApiTokenSchemaType = {
client: 'client', client: 'client',
admin: 'admin', admin: 'admin',
frontend: 'frontend', frontend: 'frontend',
backend: 'backend',
} as const; } as const;

View File

@ -37,7 +37,7 @@ export type ChangeRequestSchemaOneOf = {
/** The current state of the change request. */ /** The current state of the change request. */
state: ChangeRequestSchemaOneOfState; state: ChangeRequestSchemaOneOfState;
/** A mapping of each state this change request has entered to the most recent time when it entered that state. If a change request has entered the same state multiple times, only the most recent timestamp will be included. */ /** A mapping of each state this change request has entered to the most recent time when it entered that state. If a change request has entered the same state multiple times, only the most recent timestamp will be included. */
stateTimestamps?: ChangeRequestSchemaOneOfStateTimestamps; stateTimestamps: ChangeRequestSchemaOneOfStateTimestamps;
/** A title describing the change request's content. */ /** A title describing the change request's content. */
title?: string; title?: string;
}; };

View File

@ -39,7 +39,7 @@ export type ChangeRequestSchemaOneOfFive = {
/** The current state of the change request. */ /** The current state of the change request. */
state: ChangeRequestSchemaOneOfFiveState; state: ChangeRequestSchemaOneOfFiveState;
/** A mapping of each state this change request has entered to the most recent time when it entered that state. If a change request has entered the same state multiple times, only the most recent timestamp will be included. */ /** A mapping of each state this change request has entered to the most recent time when it entered that state. If a change request has entered the same state multiple times, only the most recent timestamp will be included. */
stateTimestamps?: ChangeRequestSchemaOneOfFiveStateTimestamps; stateTimestamps: ChangeRequestSchemaOneOfFiveStateTimestamps;
/** A title describing the change request's content. */ /** A title describing the change request's content. */
title?: string; title?: string;
}; };

View File

@ -4,11 +4,11 @@
* See `gen:api` script in package.json * See `gen:api` script in package.json
*/ */
import type { ChangeRequestsSchemaItemOneOf } from './changeRequestsSchemaItemOneOf.js'; import type { ChangeRequestsSchemaItemOneOf } from './changeRequestsSchemaItemOneOf.js';
import type { ChangeRequestsSchemaItemOneOfFive } from './changeRequestsSchemaItemOneOfFive.js'; import type { ChangeRequestsSchemaItemOneOfFour } from './changeRequestsSchemaItemOneOfFour.js';
/** /**
* A simplified change request overview * A simplified change request overview
*/ */
export type ChangeRequestsSchemaItem = export type ChangeRequestsSchemaItem =
| ChangeRequestsSchemaItemOneOf | ChangeRequestsSchemaItemOneOf
| ChangeRequestsSchemaItemOneOfFive; | ChangeRequestsSchemaItemOneOfFour;

View File

@ -9,7 +9,6 @@ import type { ChangeRequestsSchemaItemOneOfCreatedBy } from './changeRequestsSch
import type { ChangeRequestFeatureSchema } from './changeRequestFeatureSchema.js'; import type { ChangeRequestFeatureSchema } from './changeRequestFeatureSchema.js';
import type { ChangeRequestSegmentChangeSchema } from './changeRequestSegmentChangeSchema.js'; import type { ChangeRequestSegmentChangeSchema } from './changeRequestSegmentChangeSchema.js';
import type { ChangeRequestsSchemaItemOneOfState } from './changeRequestsSchemaItemOneOfState.js'; import type { ChangeRequestsSchemaItemOneOfState } from './changeRequestsSchemaItemOneOfState.js';
import type { ChangeRequestsSchemaItemOneOfStateTimestamps } from './changeRequestsSchemaItemOneOfStateTimestamps.js';
export type ChangeRequestsSchemaItemOneOf = { export type ChangeRequestsSchemaItemOneOf = {
/** /**
@ -36,7 +35,7 @@ export type ChangeRequestsSchemaItemOneOf = {
* The minimum number of approvals required before this change request can be applied. * The minimum number of approvals required before this change request can be applied.
* @deprecated * @deprecated
*/ */
minApprovals: number; minApprovals?: number;
/** The project this change request belongs to. */ /** The project this change request belongs to. */
project: string; project: string;
/** /**
@ -48,8 +47,6 @@ export type ChangeRequestsSchemaItemOneOf = {
segments: ChangeRequestSegmentChangeSchema[]; segments: ChangeRequestSegmentChangeSchema[];
/** The current state of the change request. */ /** The current state of the change request. */
state: ChangeRequestsSchemaItemOneOfState; state: ChangeRequestsSchemaItemOneOfState;
/** A mapping of each state this change request has entered to the most recent time when it entered that state. If a change request has entered the same state multiple times, only the most recent timestamp will be included. */
stateTimestamps?: ChangeRequestsSchemaItemOneOfStateTimestamps;
/** A title describing the change request's content. */ /** A title describing the change request's content. */
title?: string; title?: string;
}; };

View File

@ -1,12 +0,0 @@
/**
* Generated by Orval
* Do not edit manually.
* See `gen:api` script in package.json
*/
/**
* A mapping of each state this change request has entered to the most recent time when it entered that state. If a change request has entered the same state multiple times, only the most recent timestamp will be included.
*/
export type ChangeRequestsSchemaItemOneOfFiveStateTimestamps = {
[key: string]: string;
};

View File

@ -5,14 +5,13 @@
*/ */
import type { ChangeRequestApprovalSchema } from './changeRequestApprovalSchema.js'; import type { ChangeRequestApprovalSchema } from './changeRequestApprovalSchema.js';
import type { ChangeRequestCommentSchema } from './changeRequestCommentSchema.js'; import type { ChangeRequestCommentSchema } from './changeRequestCommentSchema.js';
import type { ChangeRequestsSchemaItemOneOfFiveCreatedBy } from './changeRequestsSchemaItemOneOfFiveCreatedBy.js'; import type { ChangeRequestsSchemaItemOneOfFourCreatedBy } from './changeRequestsSchemaItemOneOfFourCreatedBy.js';
import type { ChangeRequestFeatureSchema } from './changeRequestFeatureSchema.js'; import type { ChangeRequestFeatureSchema } from './changeRequestFeatureSchema.js';
import type { ChangeRequestScheduleSchema } from './changeRequestScheduleSchema.js'; import type { ChangeRequestScheduleSchema } from './changeRequestScheduleSchema.js';
import type { ChangeRequestSegmentChangeSchema } from './changeRequestSegmentChangeSchema.js'; import type { ChangeRequestSegmentChangeSchema } from './changeRequestSegmentChangeSchema.js';
import type { ChangeRequestsSchemaItemOneOfFiveState } from './changeRequestsSchemaItemOneOfFiveState.js'; import type { ChangeRequestsSchemaItemOneOfFourState } from './changeRequestsSchemaItemOneOfFourState.js';
import type { ChangeRequestsSchemaItemOneOfFiveStateTimestamps } from './changeRequestsSchemaItemOneOfFiveStateTimestamps.js';
export type ChangeRequestsSchemaItemOneOfFive = { export type ChangeRequestsSchemaItemOneOfFour = {
/** /**
* A list of approvals that this change request has received. * A list of approvals that this change request has received.
* @deprecated * @deprecated
@ -26,7 +25,7 @@ export type ChangeRequestsSchemaItemOneOfFive = {
/** When this change request was created. */ /** When this change request was created. */
createdAt: string; createdAt: string;
/** The user who created this change request. */ /** The user who created this change request. */
createdBy: ChangeRequestsSchemaItemOneOfFiveCreatedBy; createdBy: ChangeRequestsSchemaItemOneOfFourCreatedBy;
/** The environment in which the changes should be applied. */ /** The environment in which the changes should be applied. */
environment: string; environment: string;
/** The list of features and their changes that relate to this change request. */ /** The list of features and their changes that relate to this change request. */
@ -37,7 +36,7 @@ export type ChangeRequestsSchemaItemOneOfFive = {
* The minimum number of approvals required before this change request can be applied. * The minimum number of approvals required before this change request can be applied.
* @deprecated * @deprecated
*/ */
minApprovals: number; minApprovals?: number;
/** The project this change request belongs to. */ /** The project this change request belongs to. */
project: string; project: string;
/** /**
@ -49,9 +48,7 @@ export type ChangeRequestsSchemaItemOneOfFive = {
/** The list of segments and their changes that relate to this change request. */ /** The list of segments and their changes that relate to this change request. */
segments: ChangeRequestSegmentChangeSchema[]; segments: ChangeRequestSegmentChangeSchema[];
/** The current state of the change request. */ /** The current state of the change request. */
state: ChangeRequestsSchemaItemOneOfFiveState; state: ChangeRequestsSchemaItemOneOfFourState;
/** A mapping of each state this change request has entered to the most recent time when it entered that state. If a change request has entered the same state multiple times, only the most recent timestamp will be included. */
stateTimestamps?: ChangeRequestsSchemaItemOneOfFiveStateTimestamps;
/** A title describing the change request's content. */ /** A title describing the change request's content. */
title?: string; title?: string;
}; };

View File

@ -7,7 +7,7 @@
/** /**
* The user who created this change request. * The user who created this change request.
*/ */
export type ChangeRequestsSchemaItemOneOfFiveCreatedBy = { export type ChangeRequestsSchemaItemOneOfFourCreatedBy = {
/** /**
* The URL of the user's profile image. * The URL of the user's profile image.
* @nullable * @nullable

View File

@ -7,10 +7,10 @@
/** /**
* The current state of the change request. * The current state of the change request.
*/ */
export type ChangeRequestsSchemaItemOneOfFiveState = export type ChangeRequestsSchemaItemOneOfFourState =
(typeof ChangeRequestsSchemaItemOneOfFiveState)[keyof typeof ChangeRequestsSchemaItemOneOfFiveState]; (typeof ChangeRequestsSchemaItemOneOfFourState)[keyof typeof ChangeRequestsSchemaItemOneOfFourState];
// eslint-disable-next-line @typescript-eslint/no-redeclare // eslint-disable-next-line @typescript-eslint/no-redeclare
export const ChangeRequestsSchemaItemOneOfFiveState = { export const ChangeRequestsSchemaItemOneOfFourState = {
Scheduled: 'Scheduled', Scheduled: 'Scheduled',
} as const; } as const;

View File

@ -1,12 +0,0 @@
/**
* Generated by Orval
* Do not edit manually.
* See `gen:api` script in package.json
*/
/**
* A mapping of each state this change request has entered to the most recent time when it entered that state. If a change request has entered the same state multiple times, only the most recent timestamp will be included.
*/
export type ChangeRequestsSchemaItemOneOfStateTimestamps = {
[key: string]: string;
};

View File

@ -16,8 +16,8 @@ export type CreateApiTokenSchemaOneOf = {
/** The name of the token. */ /** The name of the token. */
tokenName: string; tokenName: string;
/** /**
* A client or frontend token. Must be one of the strings "client" or "frontend" (not case sensitive). * A client or frontend token. Must be one of the strings "client" (deprecated), "backend" (preferred over "client") or "frontend" (not case sensitive).
* @pattern ^([Cc][Ll][Ii][Ee][Nn][Tt]|[Ff][Rr][Oo][Nn][Tt][Ee][Nn][Dd])$ * @pattern ^([Cc][Ll][Ii][Ee][Nn][Tt]|[Bb][Aa][Cc][Kk][Ee][Nn][Dd]|[Ff][Rr][Oo][Nn][Tt][Ee][Nn][Dd])$
*/ */
type: string; type: string;
}; };

View File

@ -15,8 +15,8 @@ export interface CreateProjectApiTokenSchema {
/** A unique name for this particular token */ /** A unique name for this particular token */
tokenName: string; tokenName: string;
/** /**
* A client or frontend token. Must be one of the strings "client" or "frontend" (not case sensitive). * A client or frontend token. Must be one of the strings "client" (deprecated), "backend" (preferred over "client") or "frontend" (not case sensitive).
* @pattern ^([Cc][Ll][Ii][Ee][Nn][Tt]|[Ff][Rr][Oo][Nn][Tt][Ee][Nn][Dd])$ * @pattern ^([Cc][Ll][Ii][Ee][Nn][Tt]|[Bb][Aa][Cc][Kk][Ee][Nn][Dd]|[Ff][Rr][Oo][Nn][Tt][Ee][Nn][Dd])$
*/ */
type: string; type: string;
} }

View File

@ -4,6 +4,7 @@
* See `gen:api` script in package.json * See `gen:api` script in package.json
*/ */
import type { ConnectionConsumptionSchema } from './connectionConsumptionSchema.js'; import type { ConnectionConsumptionSchema } from './connectionConsumptionSchema.js';
import type { EdgeInstanceDataSchemaHosting } from './edgeInstanceDataSchemaHosting.js';
import type { EdgeUpstreamLatencySchema } from './edgeUpstreamLatencySchema.js'; import type { EdgeUpstreamLatencySchema } from './edgeUpstreamLatencySchema.js';
import type { EdgeProcessMetricsSchema } from './edgeProcessMetricsSchema.js'; import type { EdgeProcessMetricsSchema } from './edgeProcessMetricsSchema.js';
import type { RequestConsumptionSchema } from './requestConsumptionSchema.js'; import type { RequestConsumptionSchema } from './requestConsumptionSchema.js';
@ -27,6 +28,8 @@ export interface EdgeInstanceDataSchema {
connectionConsumptionSinceLastReport?: ConnectionConsumptionSchema; connectionConsumptionSinceLastReport?: ConnectionConsumptionSchema;
/** Which version (semver) of Edge is the Edge instance running. */ /** Which version (semver) of Edge is the Edge instance running. */
edgeVersion: string; edgeVersion: string;
/** A marker that tells Unleash whether this Edge instance is self-hosted or hosted by Unleash. */
hosting?: EdgeInstanceDataSchemaHosting;
/** The ID of the Edge process, typically a ULID. Newly generated for each restart of the instance. */ /** The ID of the Edge process, typically a ULID. Newly generated for each restart of the instance. */
identifier: string; identifier: string;
latencyUpstream: EdgeUpstreamLatencySchema; latencyUpstream: EdgeUpstreamLatencySchema;
@ -37,7 +40,7 @@ export interface EdgeInstanceDataSchema {
* @nullable * @nullable
*/ */
region?: string | null; region?: string | null;
/** Request consumption data since last report, grouped by metered group. User for frontend SDKs with unpredictable and potentially large number of user devices running those SDKs. */ /** Request consumption data since last report, grouped by metered group. Used for frontend SDKs with unpredictable and potentially large number of user devices running those SDKs. */
requestConsumptionSinceLastReport?: RequestConsumptionSchema; requestConsumptionSinceLastReport?: RequestConsumptionSchema;
/** Requests made to edge's endpoints since last report. Meant to be used for billing purposes. */ /** Requests made to edge's endpoints since last report. Meant to be used for billing purposes. */
requestsSinceLastReport?: EdgeRequestStatsSchema; requestsSinceLastReport?: EdgeRequestStatsSchema;

View File

@ -0,0 +1,17 @@
/**
* Generated by Orval
* Do not edit manually.
* See `gen:api` script in package.json
*/
/**
* A marker that tells Unleash whether this Edge instance is self-hosted or hosted by Unleash.
*/
export type EdgeInstanceDataSchemaHosting =
(typeof EdgeInstanceDataSchemaHosting)[keyof typeof EdgeInstanceDataSchemaHosting];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const EdgeInstanceDataSchemaHosting = {
hosted: 'hosted',
'self-hosted': 'self-hosted',
} as const;

View File

@ -15,4 +15,5 @@ export const EdgeTokenSchemaType = {
client: 'client', client: 'client',
admin: 'admin', admin: 'admin',
frontend: 'frontend', frontend: 'frontend',
backend: 'backend',
} as const; } as const;

View File

@ -0,0 +1,14 @@
/**
* Generated by Orval
* Do not edit manually.
* See `gen:api` script in package.json
*/
export type GetReleasePlans401 = {
/** The ID of the error instance */
id?: string;
/** A description of what went wrong. */
message?: string;
/** The name of the error kind */
name?: string;
};

View File

@ -0,0 +1,35 @@
/**
* Generated by Orval
* Do not edit manually.
* See `gen:api` script in package.json
*/
import type { ImpactMetricsConfigSchemaSelectedLabels } from './impactMetricsConfigSchemaSelectedLabels.js';
import type { ImpactMetricsConfigSchemaSelectedRange } from './impactMetricsConfigSchemaSelectedRange.js';
/**
* Describes the configuration for a single impact metric chart.
*/
export interface ImpactMetricsConfigSchema {
/** The aggregation mode for the metric data. */
aggregationMode: string;
/** Whether the chart should begin at zero on the y-axis. */
beginAtZero: boolean;
/**
* Optional feature name that this impact metric is associated with.
* @nullable
*/
feature?: string | null;
/** The unique ULID identifier for this impact metric configuration. Generated automatically if not provided. */
id?: string;
/** The selected labels and their values for filtering the metric data. */
selectedLabels: ImpactMetricsConfigSchemaSelectedLabels;
/** The time range for the metric data. */
selectedRange: ImpactMetricsConfigSchemaSelectedRange;
/** The Prometheus metric series to display. */
selectedSeries: string;
/**
* Optional title for the impact metric chart.
* @nullable
*/
title?: string | null;
}

View File

@ -0,0 +1,12 @@
/**
* Generated by Orval
* Do not edit manually.
* See `gen:api` script in package.json
*/
/**
* The selected labels and their values for filtering the metric data.
*/
export type ImpactMetricsConfigSchemaSelectedLabels = {
[key: string]: string[];
};

View File

@ -0,0 +1,19 @@
/**
* Generated by Orval
* Do not edit manually.
* See `gen:api` script in package.json
*/
/**
* The time range for the metric data.
*/
export type ImpactMetricsConfigSchemaSelectedRange =
(typeof ImpactMetricsConfigSchemaSelectedRange)[keyof typeof ImpactMetricsConfigSchemaSelectedRange];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const ImpactMetricsConfigSchemaSelectedRange = {
hour: 'hour',
day: 'day',
week: 'week',
month: 'month',
} as const;

View File

@ -52,6 +52,8 @@ export * from './addMilestoneToReleasePlanTemplate403.js';
export * from './addMilestoneToReleasePlanTemplate404.js'; export * from './addMilestoneToReleasePlanTemplate404.js';
export * from './addPublicSignupTokenUser400.js'; export * from './addPublicSignupTokenUser400.js';
export * from './addPublicSignupTokenUser409.js'; export * from './addPublicSignupTokenUser409.js';
export * from './addReleasePlan401.js';
export * from './addReleasePlan409.js';
export * from './addStrategyToMilestone401.js'; export * from './addStrategyToMilestone401.js';
export * from './addStrategyToMilestone403.js'; export * from './addStrategyToMilestone403.js';
export * from './addStrategyToMilestone404.js'; export * from './addStrategyToMilestone404.js';
@ -314,12 +316,10 @@ export * from './changeRequestsSchema.js';
export * from './changeRequestsSchemaItem.js'; export * from './changeRequestsSchemaItem.js';
export * from './changeRequestsSchemaItemOneOf.js'; export * from './changeRequestsSchemaItemOneOf.js';
export * from './changeRequestsSchemaItemOneOfCreatedBy.js'; export * from './changeRequestsSchemaItemOneOfCreatedBy.js';
export * from './changeRequestsSchemaItemOneOfFive.js'; export * from './changeRequestsSchemaItemOneOfFour.js';
export * from './changeRequestsSchemaItemOneOfFiveCreatedBy.js'; export * from './changeRequestsSchemaItemOneOfFourCreatedBy.js';
export * from './changeRequestsSchemaItemOneOfFiveState.js'; export * from './changeRequestsSchemaItemOneOfFourState.js';
export * from './changeRequestsSchemaItemOneOfFiveStateTimestamps.js';
export * from './changeRequestsSchemaItemOneOfState.js'; export * from './changeRequestsSchemaItemOneOfState.js';
export * from './changeRequestsSchemaItemOneOfStateTimestamps.js';
export * from './changeUserPassword400.js'; export * from './changeUserPassword400.js';
export * from './changeUserPassword401.js'; export * from './changeUserPassword401.js';
export * from './changeUserPassword403.js'; export * from './changeUserPassword403.js';
@ -591,6 +591,7 @@ export * from './disconnectAll403.js';
export * from './doraFeaturesSchema.js'; export * from './doraFeaturesSchema.js';
export * from './edgeEndpointTrafficSchema.js'; export * from './edgeEndpointTrafficSchema.js';
export * from './edgeInstanceDataSchema.js'; export * from './edgeInstanceDataSchema.js';
export * from './edgeInstanceDataSchemaHosting.js';
export * from './edgeInstanceTrafficSchema.js'; export * from './edgeInstanceTrafficSchema.js';
export * from './edgeInstanceTrafficSchemaAccessDenied.js'; export * from './edgeInstanceTrafficSchemaAccessDenied.js';
export * from './edgeInstanceTrafficSchemaCachedResponses.js'; export * from './edgeInstanceTrafficSchemaCachedResponses.js';
@ -816,6 +817,7 @@ export * from './getRawFeatureMetrics401.js';
export * from './getRawFeatureMetrics403.js'; export * from './getRawFeatureMetrics403.js';
export * from './getRawFeatureMetrics404.js'; export * from './getRawFeatureMetrics404.js';
export * from './getReleasePlanTemplate401.js'; export * from './getReleasePlanTemplate401.js';
export * from './getReleasePlans401.js';
export * from './getRequestsForPeriodGrouping.js'; export * from './getRequestsForPeriodGrouping.js';
export * from './getRequestsForPeriodParams.js'; export * from './getRequestsForPeriodParams.js';
export * from './getRoleById400.js'; export * from './getRoleById400.js';
@ -885,6 +887,9 @@ export * from './healthReportSchema.js';
export * from './healthReportSchemaMode.js'; export * from './healthReportSchemaMode.js';
export * from './idSchema.js'; export * from './idSchema.js';
export * from './idsSchema.js'; export * from './idsSchema.js';
export * from './impactMetricsConfigSchema.js';
export * from './impactMetricsConfigSchemaSelectedLabels.js';
export * from './impactMetricsConfigSchemaSelectedRange.js';
export * from './impactMetricsSchema.js'; export * from './impactMetricsSchema.js';
export * from './impactMetricsSchemaSamplesItem.js'; export * from './impactMetricsSchemaSamplesItem.js';
export * from './impactMetricsSchemaSamplesItemLabels.js'; export * from './impactMetricsSchemaSamplesItemLabels.js';
@ -1164,6 +1169,8 @@ export * from './removeFavoriteProject404.js';
export * from './removeGroupAccess401.js'; export * from './removeGroupAccess401.js';
export * from './removeGroupAccess403.js'; export * from './removeGroupAccess403.js';
export * from './removeGroupAccess404.js'; export * from './removeGroupAccess404.js';
export * from './removeReleasePlan401.js';
export * from './removeReleasePlan403.js';
export * from './removeReleasePlanMilestone401.js'; export * from './removeReleasePlanMilestone401.js';
export * from './removeReleasePlanMilestone403.js'; export * from './removeReleasePlanMilestone403.js';
export * from './removeReleasePlanMilestone404.js'; export * from './removeReleasePlanMilestone404.js';
@ -1294,6 +1301,9 @@ export * from './splashResponseSchema.js';
export * from './staleFeatures401.js'; export * from './staleFeatures401.js';
export * from './staleFeatures403.js'; export * from './staleFeatures403.js';
export * from './staleFeatures415.js'; export * from './staleFeatures415.js';
export * from './startMilestone401.js';
export * from './startMilestone403.js';
export * from './startMilestone404.js';
export * from './strategiesSchema.js'; export * from './strategiesSchema.js';
export * from './strategiesSchemaVersion.js'; export * from './strategiesSchemaVersion.js';
export * from './strategySchema.js'; export * from './strategySchema.js';

View File

@ -22,6 +22,8 @@ export interface LicenseReadSchema {
isValid: boolean; isValid: boolean;
/** Name of plan that the license is for. */ /** Name of plan that the license is for. */
plan?: string; plan?: string;
/** Number of release templates in the license. */
releaseTemplates?: number;
/** Number of seats in the license. */ /** Number of seats in the license. */
seats?: number; seats?: number;
/** The actual license token. */ /** The actual license token. */

View File

@ -0,0 +1,14 @@
/**
* Generated by Orval
* Do not edit manually.
* See `gen:api` script in package.json
*/
export type RemoveReleasePlan401 = {
/** The ID of the error instance */
id?: string;
/** A description of what went wrong. */
message?: string;
/** The name of the error kind */
name?: string;
};

View File

@ -0,0 +1,14 @@
/**
* Generated by Orval
* Do not edit manually.
* See `gen:api` script in package.json
*/
export type RemoveReleasePlan403 = {
/** The ID of the error instance */
id?: string;
/** A description of what went wrong. */
message?: string;
/** The name of the error kind */
name?: string;
};

View File

@ -71,7 +71,7 @@ export type SearchFeaturesParams = {
*/ */
createdAt?: string; createdAt?: string;
/** /**
* The date the feature was last seen (either from metrics or manual report). The date can be specified with an operator. The supported operators are IS_BEFORE, IS_ON_OR_AFTER. * The date the feature was last seen from metrics. The date can be specified with an operator. The supported operators are IS_BEFORE, IS_ON_OR_AFTER.
*/ */
lastSeenAt?: string; lastSeenAt?: string;
}; };

View File

@ -0,0 +1,14 @@
/**
* Generated by Orval
* Do not edit manually.
* See `gen:api` script in package.json
*/
export type StartMilestone401 = {
/** The ID of the error instance */
id?: string;
/** A description of what went wrong. */
message?: string;
/** The name of the error kind */
name?: string;
};

View File

@ -0,0 +1,14 @@
/**
* Generated by Orval
* Do not edit manually.
* See `gen:api` script in package.json
*/
export type StartMilestone403 = {
/** The ID of the error instance */
id?: string;
/** A description of what went wrong. */
message?: string;
/** The name of the error kind */
name?: string;
};

View File

@ -0,0 +1,14 @@
/**
* Generated by Orval
* Do not edit manually.
* See `gen:api` script in package.json
*/
export type StartMilestone404 = {
/** The ID of the error instance */
id?: string;
/** A description of what went wrong. */
message?: string;
/** The name of the error kind */
name?: string;
};

View File

@ -12,6 +12,11 @@ export interface UnknownFlagSchema {
appName: string; appName: string;
/** The environment in which the unknown flag was reported. */ /** The environment in which the unknown flag was reported. */
environment: string; environment: string;
/**
* The date and time when the last event for the unknown flag name occurred, if any.
* @nullable
*/
lastEventAt?: string | null;
/** The name of the unknown flag. */ /** The name of the unknown flag. */
name: string; name: string;
/** The date and time when the unknown flag was reported. */ /** The date and time when the unknown flag was reported. */

View File

@ -4,6 +4,7 @@
* See `gen:api` script in package.json * See `gen:api` script in package.json
*/ */
import type { CreateFeatureNamingPatternSchema } from './createFeatureNamingPatternSchema.js'; import type { CreateFeatureNamingPatternSchema } from './createFeatureNamingPatternSchema.js';
import type { ProjectLinkTemplateSchema } from './projectLinkTemplateSchema.js';
import type { UpdateProjectEnterpriseSettingsSchemaMode } from './updateProjectEnterpriseSettingsSchemaMode.js'; import type { UpdateProjectEnterpriseSettingsSchemaMode } from './updateProjectEnterpriseSettingsSchemaMode.js';
/** /**
@ -11,6 +12,8 @@ import type { UpdateProjectEnterpriseSettingsSchemaMode } from './updateProjectE
*/ */
export interface UpdateProjectEnterpriseSettingsSchema { export interface UpdateProjectEnterpriseSettingsSchema {
featureNaming?: CreateFeatureNamingPatternSchema; featureNaming?: CreateFeatureNamingPatternSchema;
/** A list of link templates that can be automatically added to new feature flags. */
linkTemplates?: ProjectLinkTemplateSchema[];
/** A mode of the project affecting what actions are possible in this project */ /** A mode of the project affecting what actions are possible in this project */
mode?: UpdateProjectEnterpriseSettingsSchemaMode; mode?: UpdateProjectEnterpriseSettingsSchemaMode;
} }