chore: generate types (#5074)

Generate orval types

---------

Signed-off-by: andreas-unleash <andreas@getunleash.ai>
pull/5077/head
andreas-unleash 7 months ago committed by GitHub
parent 06c85b16b7
commit c5914a077f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      .gitignore
  2. 2
      frontend/src/openapi/models/changeRequestCreateFeatureSchemaOneOfPayload.ts
  3. 4
      frontend/src/openapi/models/changeRequestCreateFeatureSchemaOneOfTwozero.ts
  4. 10
      frontend/src/openapi/models/changeRequestCreateFeatureSchemaOneOfTwozeroPayload.ts
  5. 2
      frontend/src/openapi/models/changeRequestCreateSchemaOneOfSixPayload.ts
  6. 4
      frontend/src/openapi/models/changeRequestCreateSchemaOneOfTwofive.ts
  7. 10
      frontend/src/openapi/models/changeRequestCreateSchemaOneOfTwofivePayload.ts
  8. 2
      frontend/src/openapi/models/changeRequestOneOrManyCreateSchemaOneOfSixPayload.ts
  9. 4
      frontend/src/openapi/models/changeRequestOneOrManyCreateSchemaOneOfTwofive.ts
  10. 10
      frontend/src/openapi/models/changeRequestOneOrManyCreateSchemaOneOfTwofivePayload.ts
  11. 14
      frontend/src/openapi/models/checkDependenciesExist401.ts
  12. 14
      frontend/src/openapi/models/checkDependenciesExist403.ts
  13. 14
      frontend/src/openapi/models/createMessageBanner400.ts
  14. 14
      frontend/src/openapi/models/createMessageBanner401.ts
  15. 14
      frontend/src/openapi/models/createMessageBanner403.ts
  16. 14
      frontend/src/openapi/models/createMessageBanner415.ts
  17. 29
      frontend/src/openapi/models/createMessageBannerSchema.ts
  18. 14
      frontend/src/openapi/models/deleteMessageBanner401.ts
  19. 14
      frontend/src/openapi/models/deleteMessageBanner403.ts
  20. 14
      frontend/src/openapi/models/deleteMessageBanner404.ts
  21. 10
      frontend/src/openapi/models/dependenciesExistSchema.ts
  22. 4
      frontend/src/openapi/models/eventSchemaType.ts
  23. 3
      frontend/src/openapi/models/exportResultSchema.ts
  24. 2
      frontend/src/openapi/models/exportResultSchemaSegmentsItem.ts
  25. 16
      frontend/src/openapi/models/featureDependenciesSchema.ts
  26. 14
      frontend/src/openapi/models/getMessageBanners401.ts
  27. 32
      frontend/src/openapi/models/index.ts
  28. 3
      frontend/src/openapi/models/instanceAdminStatsSchema.ts
  29. 17
      frontend/src/openapi/models/instanceAdminStatsSchemaProductionChanges.ts
  30. 33
      frontend/src/openapi/models/messageBannerSchema.ts
  31. 14
      frontend/src/openapi/models/messageBannersSchema.ts
  32. 2
      frontend/src/openapi/models/playgroundStrategySchemaResultAnyOf.ts
  33. 3
      frontend/src/openapi/models/playgroundStrategySchemaResultAnyOfEvaluationStatus.ts
  34. 14
      frontend/src/openapi/models/projectAccessConfigurationSchema.ts
  35. 14
      frontend/src/openapi/models/projectAccessConfigurationSchemaRolesItem.ts
  36. 4
      frontend/src/openapi/models/searchEventsSchemaType.ts
  37. 14
      frontend/src/openapi/models/setProjectAccess401.ts
  38. 14
      frontend/src/openapi/models/setProjectAccess403.ts
  39. 14
      frontend/src/openapi/models/updateMessageBanner400.ts
  40. 14
      frontend/src/openapi/models/updateMessageBanner401.ts
  41. 14
      frontend/src/openapi/models/updateMessageBanner403.ts
  42. 14
      frontend/src/openapi/models/updateMessageBanner404.ts
  43. 14
      frontend/src/openapi/models/updateMessageBanner415.ts
  44. 14
      frontend/src/openapi/models/validateArchiveFeatures400.ts
  45. 14
      frontend/src/openapi/models/validateArchiveFeatures401.ts
  46. 14
      frontend/src/openapi/models/validateArchiveFeatures403.ts
  47. 14
      frontend/src/openapi/models/validateArchiveFeatures415.ts

1
.gitignore vendored

@ -54,6 +54,7 @@ frontend/build
# Ignore orval apis
frontend/src/openapi/apis
frontend/src/openapi/index.ts
# Generated docs
website/docs/reference/api/**/sidebar.js

@ -7,4 +7,6 @@
export type ChangeRequestCreateFeatureSchemaOneOfPayload = {
/** The new state of the feature. */
enabled: boolean;
/** Only relevant when ALL the strategies are disabled. If true, all the disabled strategies will be enabled. If false, the default strategy will be added */
shouldActivateDisabledStrategies?: boolean;
};

@ -4,15 +4,13 @@
* See `gen:api` script in package.json
*/
import type { ChangeRequestCreateFeatureSchemaOneOfTwozeroAction } from './changeRequestCreateFeatureSchemaOneOfTwozeroAction';
import type { ChangeRequestCreateFeatureSchemaOneOfTwozeroPayload } from './changeRequestCreateFeatureSchemaOneOfTwozeroPayload';
/**
* Remove a parent feature dependency.
* Remove a parent feature dependency or all dependencies if no payload.
*/
export type ChangeRequestCreateFeatureSchemaOneOfTwozero = {
/** The name of the feature that this change applies to. */
feature: string;
/** The name of this action. */
action: ChangeRequestCreateFeatureSchemaOneOfTwozeroAction;
payload: ChangeRequestCreateFeatureSchemaOneOfTwozeroPayload;
};

@ -1,10 +0,0 @@
/**
* Generated by Orval
* Do not edit manually.
* See `gen:api` script in package.json
*/
export type ChangeRequestCreateFeatureSchemaOneOfTwozeroPayload = {
/** The name of the feature we want to remove dependency on. */
feature: string;
};

@ -7,4 +7,6 @@
export type ChangeRequestCreateSchemaOneOfSixPayload = {
/** The new state of the feature. */
enabled: boolean;
/** Only relevant when ALL the strategies are disabled. If true, all the disabled strategies will be enabled. If false, the default strategy will be added */
shouldActivateDisabledStrategies?: boolean;
};

@ -4,15 +4,13 @@
* See `gen:api` script in package.json
*/
import type { ChangeRequestCreateSchemaOneOfTwofiveAction } from './changeRequestCreateSchemaOneOfTwofiveAction';
import type { ChangeRequestCreateSchemaOneOfTwofivePayload } from './changeRequestCreateSchemaOneOfTwofivePayload';
/**
* Remove a parent feature dependency.
* Remove a parent feature dependency or all dependencies if no payload.
*/
export type ChangeRequestCreateSchemaOneOfTwofive = {
/** The name of the feature that this change applies to. */
feature: string;
/** The name of this action. */
action: ChangeRequestCreateSchemaOneOfTwofiveAction;
payload: ChangeRequestCreateSchemaOneOfTwofivePayload;
};

@ -1,10 +0,0 @@
/**
* Generated by Orval
* Do not edit manually.
* See `gen:api` script in package.json
*/
export type ChangeRequestCreateSchemaOneOfTwofivePayload = {
/** The name of the feature we want to remove dependency on. */
feature: string;
};

@ -7,4 +7,6 @@
export type ChangeRequestOneOrManyCreateSchemaOneOfSixPayload = {
/** The new state of the feature. */
enabled: boolean;
/** Only relevant when ALL the strategies are disabled. If true, all the disabled strategies will be enabled. If false, the default strategy will be added */
shouldActivateDisabledStrategies?: boolean;
};

@ -4,15 +4,13 @@
* See `gen:api` script in package.json
*/
import type { ChangeRequestOneOrManyCreateSchemaOneOfTwofiveAction } from './changeRequestOneOrManyCreateSchemaOneOfTwofiveAction';
import type { ChangeRequestOneOrManyCreateSchemaOneOfTwofivePayload } from './changeRequestOneOrManyCreateSchemaOneOfTwofivePayload';
/**
* Remove a parent feature dependency.
* Remove a parent feature dependency or all dependencies if no payload.
*/
export type ChangeRequestOneOrManyCreateSchemaOneOfTwofive = {
/** The name of the feature that this change applies to. */
feature: string;
/** The name of this action. */
action: ChangeRequestOneOrManyCreateSchemaOneOfTwofiveAction;
payload: ChangeRequestOneOrManyCreateSchemaOneOfTwofivePayload;
};

@ -1,10 +0,0 @@
/**
* Generated by Orval
* Do not edit manually.
* See `gen:api` script in package.json
*/
export type ChangeRequestOneOrManyCreateSchemaOneOfTwofivePayload = {
/** The name of the feature we want to remove dependency on. */
feature: string;
};

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

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

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

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

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

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

@ -0,0 +1,29 @@
/**
* Generated by Orval
* Do not edit manually.
* See `gen:api` script in package.json
*/
/**
* Describes the properties required to create or update a message banner.
*/
export interface CreateMessageBannerSchema {
/** The message to display to all users. Supports markdown. */
message: string;
/** Whether the message banner should be displayed to all users. If not specified, defaults to true. */
enabled?: boolean;
/** The variant of the message banner. One of "info", "warning", "error", or "success". If not specified, defaults to "info". */
variant?: string;
/** Whether the message banner should be sticky on the screen. If not specified, defaults to `false`. */
sticky?: boolean;
/** The icon to display on the message banner. Can be one of https://fonts.google.com/icons. If not specified, this will be the default icon for the variant. If "none", no icon will be displayed. */
icon?: string | null;
/** The link to display on the message banner. Can either be an absolute or a relative link (e.g. absolute: "https://example.com" or relative: "/admin/service-accounts"). If "dialog", will display a dialog when clicked. If not specified, no link will be displayed. */
link?: string | null;
/** The text to display on the link. If not specified, will be displayed as "More info". */
linkText?: string | null;
/** The title to display on the dialog. If not specified, this will be the same as `linkText`. */
dialogTitle?: string | null;
/** The markdown to display on the dialog. If not specified, no dialog will be displayed. */
dialog?: string | null;
}

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

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

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

@ -0,0 +1,10 @@
/**
* Generated by Orval
* Do not edit manually.
* See `gen:api` script in package.json
*/
/**
* `true` when any dependencies exist, `false` when no dependencies exist.
*/
export type DependenciesExistSchema = boolean;

@ -52,6 +52,7 @@ export const EventSchemaType = {
'project-access-group-roles-updated': 'project-access-group-roles-updated',
'project-access-user-roles-deleted': 'project-access-user-roles-deleted',
'project-access-group-roles-deleted': 'project-access-group-roles-deleted',
'project-access-updated': 'project-access-updated',
'project-created': 'project-created',
'project-updated': 'project-updated',
'project-deleted': 'project-deleted',
@ -124,4 +125,7 @@ export const EventSchemaType = {
'feature-dependency-added': 'feature-dependency-added',
'feature-dependency-removed': 'feature-dependency-removed',
'feature-dependencies-removed': 'feature-dependencies-removed',
'message-banner-created': 'message-banner-created',
'message-banner-updated': 'message-banner-updated',
'message-banner-deleted': 'message-banner-deleted',
} as const;

@ -10,6 +10,7 @@ import type { ContextFieldSchema } from './contextFieldSchema';
import type { FeatureTagSchema } from './featureTagSchema';
import type { ExportResultSchemaSegmentsItem } from './exportResultSchemaSegmentsItem';
import type { TagTypeSchema } from './tagTypeSchema';
import type { FeatureDependenciesSchema } from './featureDependenciesSchema';
/**
* The result of the export operation, providing you with the feature toggle definitions, strategy definitions and the rest of the elements relevant to the features (tags, environments etc.)
@ -29,4 +30,6 @@ export interface ExportResultSchema {
segments?: ExportResultSchemaSegmentsItem[];
/** A list of all of the tag types that are used in the `featureTags` list. */
tagTypes: TagTypeSchema[];
/** A list of all the dependencies for features in `features` list. */
dependencies?: FeatureDependenciesSchema[];
}

@ -6,5 +6,5 @@
export type ExportResultSchemaSegmentsItem = {
id: number;
name?: string;
name: string;
};

@ -0,0 +1,16 @@
/**
* Generated by Orval
* Do not edit manually.
* See `gen:api` script in package.json
*/
import type { DependentFeatureSchema } from './dependentFeatureSchema';
/**
* Feature dependency connection between a child feature and its dependencies
*/
export interface FeatureDependenciesSchema {
/** The name of the child feature. */
feature: string;
/** List of parent features for the child feature */
dependencies: DependentFeatureSchema[];
}

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

@ -150,7 +150,6 @@ export * from './changeRequestCreateFeatureSchemaOneOfSix';
export * from './changeRequestCreateFeatureSchemaOneOfSixAction';
export * from './changeRequestCreateFeatureSchemaOneOfTwozero';
export * from './changeRequestCreateFeatureSchemaOneOfTwozeroAction';
export * from './changeRequestCreateFeatureSchemaOneOfTwozeroPayload';
export * from './changeRequestCreateSchema';
export * from './changeRequestCreateSchemaOneOf';
export * from './changeRequestCreateSchemaOneOfAction';
@ -174,7 +173,6 @@ export * from './changeRequestCreateSchemaOneOfThreeAction';
export * from './changeRequestCreateSchemaOneOfThreePayload';
export * from './changeRequestCreateSchemaOneOfTwofive';
export * from './changeRequestCreateSchemaOneOfTwofiveAction';
export * from './changeRequestCreateSchemaOneOfTwofivePayload';
export * from './changeRequestCreateSchemaOneOfTwoone';
export * from './changeRequestCreateSchemaOneOfTwooneAction';
export * from './changeRequestCreateSchemaOneOfTwothree';
@ -212,7 +210,6 @@ export * from './changeRequestOneOrManyCreateSchemaOneOfThreeAction';
export * from './changeRequestOneOrManyCreateSchemaOneOfThreePayload';
export * from './changeRequestOneOrManyCreateSchemaOneOfTwofive';
export * from './changeRequestOneOrManyCreateSchemaOneOfTwofiveAction';
export * from './changeRequestOneOrManyCreateSchemaOneOfTwofivePayload';
export * from './changeRequestOneOrManyCreateSchemaOneOfTwoone';
export * from './changeRequestOneOrManyCreateSchemaOneOfTwooneAction';
export * from './changeRequestOneOrManyCreateSchemaOneOfTwothree';
@ -237,6 +234,8 @@ export * from './changeRoleForUser404';
export * from './changeUserPassword400';
export * from './changeUserPassword401';
export * from './changeUserPassword403';
export * from './checkDependenciesExist401';
export * from './checkDependenciesExist403';
export * from './clientApplicationSchema';
export * from './clientApplicationSchemaStarted';
export * from './clientFeatureSchema';
@ -303,6 +302,11 @@ export * from './createGroupSchema';
export * from './createGroupSchemaUsersItem';
export * from './createGroupSchemaUsersItemUser';
export * from './createInvitedUserSchema';
export * from './createMessageBanner400';
export * from './createMessageBanner401';
export * from './createMessageBanner403';
export * from './createMessageBanner415';
export * from './createMessageBannerSchema';
export * from './createPat401';
export * from './createPat403';
export * from './createPat404';
@ -399,6 +403,9 @@ export * from './deleteFeatures403';
export * from './deleteGroup400';
export * from './deleteGroup401';
export * from './deleteGroup403';
export * from './deleteMessageBanner401';
export * from './deleteMessageBanner403';
export * from './deleteMessageBanner404';
export * from './deletePat401';
export * from './deletePat403';
export * from './deletePat404';
@ -424,6 +431,7 @@ export * from './deleteTagType403';
export * from './deleteUser401';
export * from './deleteUser403';
export * from './deleteUser404';
export * from './dependenciesExistSchema';
export * from './dependentFeatureSchema';
export * from './deprecateStrategy401';
export * from './deprecateStrategy403';
@ -449,6 +457,7 @@ export * from './exportQuerySchemaOneOf';
export * from './exportQuerySchemaOneOfTwo';
export * from './exportResultSchema';
export * from './exportResultSchemaSegmentsItem';
export * from './featureDependenciesSchema';
export * from './featureEnvironmentMetricsSchema';
export * from './featureEnvironmentMetricsSchemaVariants';
export * from './featureEnvironmentSchema';
@ -542,6 +551,7 @@ export * from './getLoginHistory404';
export * from './getMaintenance401';
export * from './getMaintenance403';
export * from './getMe401';
export * from './getMessageBanners401';
export * from './getOidcSettings400';
export * from './getOidcSettings401';
export * from './getOidcSettings403';
@ -637,6 +647,7 @@ export * from './instanceAdminStatsSchema';
export * from './instanceAdminStatsSchemaActiveUsers';
export * from './instanceAdminStatsSchemaClientAppsItem';
export * from './instanceAdminStatsSchemaClientAppsItemRange';
export * from './instanceAdminStatsSchemaProductionChanges';
export * from './invoicesSchema';
export * from './invoicesSchemaItem';
export * from './legalValueSchema';
@ -654,6 +665,8 @@ export * from './maintenanceSchema';
export * from './markNotificationsAsReadSchema';
export * from './meSchema';
export * from './meSchemaSplash';
export * from './messageBannerSchema';
export * from './messageBannersSchema';
export * from './nameSchema';
export * from './notificationsSchema';
export * from './notificationsSchemaItem';
@ -724,6 +737,8 @@ export * from './playgroundStrategySchemaResultAnyOfFourVariant';
export * from './playgroundStrategySchemaResultAnyOfFourVariantPayload';
export * from './playgroundStrategySchemaResultAnyOfFourVariantPayloadType';
export * from './profileSchema';
export * from './projectAccessConfigurationSchema';
export * from './projectAccessConfigurationSchemaRolesItem';
export * from './projectAccessSchema';
export * from './projectAddAccessSchema';
export * from './projectAddRoleAccessSchema';
@ -844,6 +859,8 @@ export * from './setOidcSettings400';
export * from './setOidcSettings401';
export * from './setOidcSettings403';
export * from './setOidcSettings415';
export * from './setProjectAccess401';
export * from './setProjectAccess403';
export * from './setRolesForGroup401';
export * from './setRolesForGroup403';
export * from './setRolesForGroup404';
@ -957,6 +974,11 @@ export * from './updateGroup401';
export * from './updateGroup403';
export * from './updateGroup404';
export * from './updateGroup409';
export * from './updateMessageBanner400';
export * from './updateMessageBanner401';
export * from './updateMessageBanner403';
export * from './updateMessageBanner404';
export * from './updateMessageBanner415';
export * from './updateProject400';
export * from './updateProject401';
export * from './updateProject403';
@ -1027,6 +1049,10 @@ export * from './userWithProjectRoleSchema';
export * from './usersGroupsBaseSchema';
export * from './usersSchema';
export * from './usersSearchSchema';
export * from './validateArchiveFeatures400';
export * from './validateArchiveFeatures401';
export * from './validateArchiveFeatures403';
export * from './validateArchiveFeatures415';
export * from './validateConstraint400';
export * from './validateConstraint401';
export * from './validateConstraint403';

@ -4,6 +4,7 @@
* See `gen:api` script in package.json
*/
import type { InstanceAdminStatsSchemaActiveUsers } from './instanceAdminStatsSchemaActiveUsers';
import type { InstanceAdminStatsSchemaProductionChanges } from './instanceAdminStatsSchemaProductionChanges';
import type { InstanceAdminStatsSchemaClientAppsItem } from './instanceAdminStatsSchemaClientAppsItem';
/**
@ -22,6 +23,8 @@ export interface InstanceAdminStatsSchema {
users?: number;
/** The number of active users in the last 7, 30 and 90 days */
activeUsers?: InstanceAdminStatsSchemaActiveUsers;
/** The number of changes to the production environment in the last 30, 60 and 90 days */
productionChanges?: InstanceAdminStatsSchemaProductionChanges;
/** The number of feature-toggles this instance has */
featureToggles?: number;
/** The number of projects defined in this instance. */

@ -0,0 +1,17 @@
/**
* Generated by Orval
* Do not edit manually.
* See `gen:api` script in package.json
*/
/**
* The number of changes to the production environment in the last 30, 60 and 90 days
*/
export type InstanceAdminStatsSchemaProductionChanges = {
/** The number of changes in production in the last 30 days */
last30?: number;
/** The number of changes in production in the last 60 days */
last60?: number;
/** The number of changes in production in the last 90 days */
last90?: number;
};

@ -0,0 +1,33 @@
/**
* Generated by Orval
* Do not edit manually.
* See `gen:api` script in package.json
*/
/**
* An object describing a message banner to be displayed to all users.
*/
export interface MessageBannerSchema {
/** The message banner's ID. Message banner IDs are incrementing integers. In other words, a more recently created message banner will always have a higher ID than an older one. */
id: number;
/** The message to display to all users. Supports markdown. */
message: string;
/** Whether the message banner should be displayed to all users. If not specified, defaults to true. */
enabled?: boolean;
/** The variant of the message banner. One of "info", "warning", "error", or "success". If not specified, defaults to "info". */
variant?: string;
/** Whether the message banner should be sticky on the screen. If not specified, defaults to `false`. */
sticky?: boolean;
/** The icon to display on the message banner. Can be one of https://fonts.google.com/icons. If not specified, this will be the default icon for the variant. If "none", no icon will be displayed. */
icon?: string | null;
/** The link to display on the message banner. Can either be an absolute or a relative link (e.g. absolute: "https://example.com" or relative: "/admin/service-accounts"). If "dialog", will display a dialog when clicked. If not specified, no link will be displayed. */
link?: string | null;
/** The text to display on the link. If not specified, will be displayed as "More info". */
linkText?: string | null;
/** The title to display on the dialog. If not specified, this will be the same as `linkText`. */
dialogTitle?: string | null;
/** The markdown to display on the dialog. If not specified, no dialog will be displayed. */
dialog?: string | null;
/** The date and time of when the message banner was created. */
createdAt: string;
}

@ -0,0 +1,14 @@
/**
* Generated by Orval
* Do not edit manually.
* See `gen:api` script in package.json
*/
import type { MessageBannerSchema } from './messageBannerSchema';
/**
* A response model with a list of message banners.
*/
export interface MessageBannersSchema {
/** A list of message banners. */
messageBanners: MessageBannerSchema[];
}

@ -7,7 +7,7 @@ import type { PlaygroundStrategySchemaResultAnyOfEvaluationStatus } from './play
import type { PlaygroundStrategySchemaResultAnyOfEnabled } from './playgroundStrategySchemaResultAnyOfEnabled';
export type PlaygroundStrategySchemaResultAnyOf = {
/** Signals that this strategy could not be evaluated. This is most likely because you're using a custom strategy that Unleash doesn't know about. */
/** Signals that this strategy could not be evaluated. This is most likely because you're using a custom strategy that Unleash doesn't know about. The `unevaluated` result is also returned if the strategy is disabled. */
evaluationStatus: PlaygroundStrategySchemaResultAnyOfEvaluationStatus;
/** Whether this strategy resolves to `false` or if it might resolve to `true`. Because Unleash can't evaluate the strategy, it can't say for certain whether it will be `true`, but if you have failing constraints or segments, it _can_ determine that your strategy would be `false`. */
enabled: PlaygroundStrategySchemaResultAnyOfEnabled;

@ -5,7 +5,7 @@
*/
/**
* Signals that this strategy could not be evaluated. This is most likely because you're using a custom strategy that Unleash doesn't know about.
* Signals that this strategy could not be evaluated. This is most likely because you're using a custom strategy that Unleash doesn't know about. The `unevaluated` result is also returned if the strategy is disabled.
*/
export type PlaygroundStrategySchemaResultAnyOfEvaluationStatus =
typeof PlaygroundStrategySchemaResultAnyOfEvaluationStatus[keyof typeof PlaygroundStrategySchemaResultAnyOfEvaluationStatus];
@ -13,4 +13,5 @@ export type PlaygroundStrategySchemaResultAnyOfEvaluationStatus =
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const PlaygroundStrategySchemaResultAnyOfEvaluationStatus = {
incomplete: 'incomplete',
unevaluated: 'unevaluated',
} as const;

@ -0,0 +1,14 @@
/**
* Generated by Orval
* Do not edit manually.
* See `gen:api` script in package.json
*/
import type { ProjectAccessConfigurationSchemaRolesItem } from './projectAccessConfigurationSchemaRolesItem';
/**
* An object describing roles for a project and what users and groups are part of that role.
*/
export interface ProjectAccessConfigurationSchema {
/** A list of roles that are available within this project. */
roles: ProjectAccessConfigurationSchemaRolesItem[];
}

@ -0,0 +1,14 @@
/**
* Generated by Orval
* Do not edit manually.
* See `gen:api` script in package.json
*/
export type ProjectAccessConfigurationSchemaRolesItem = {
/** The id of the role. */
id?: number;
/** A list of group ids that will be assigned this role */
groups?: number[];
/** A list of user ids that will be assigned this role */
users?: number[];
};

@ -52,6 +52,7 @@ export const SearchEventsSchemaType = {
'project-access-group-roles-updated': 'project-access-group-roles-updated',
'project-access-user-roles-deleted': 'project-access-user-roles-deleted',
'project-access-group-roles-deleted': 'project-access-group-roles-deleted',
'project-access-updated': 'project-access-updated',
'project-created': 'project-created',
'project-updated': 'project-updated',
'project-deleted': 'project-deleted',
@ -124,4 +125,7 @@ export const SearchEventsSchemaType = {
'feature-dependency-added': 'feature-dependency-added',
'feature-dependency-removed': 'feature-dependency-removed',
'feature-dependencies-removed': 'feature-dependencies-removed',
'message-banner-created': 'message-banner-created',
'message-banner-updated': 'message-banner-updated',
'message-banner-deleted': 'message-banner-deleted',
} as const;

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

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

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

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

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

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

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

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

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

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

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