diff --git a/frontend/src/openapi/models/archiveProject400.ts b/frontend/src/openapi/models/archiveProject400.ts new file mode 100644 index 0000000000..b2f3a4246d --- /dev/null +++ b/frontend/src/openapi/models/archiveProject400.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type ArchiveProject400 = { + /** The ID of the error instance */ + id?: string; + /** A description of what went wrong. */ + message?: string; + /** The name of the error kind */ + name?: string; +}; diff --git a/frontend/src/openapi/models/archiveProject401.ts b/frontend/src/openapi/models/archiveProject401.ts new file mode 100644 index 0000000000..9c1ee69678 --- /dev/null +++ b/frontend/src/openapi/models/archiveProject401.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type ArchiveProject401 = { + /** The ID of the error instance */ + id?: string; + /** A description of what went wrong. */ + message?: string; + /** The name of the error kind */ + name?: string; +}; diff --git a/frontend/src/openapi/models/archiveProject403.ts b/frontend/src/openapi/models/archiveProject403.ts new file mode 100644 index 0000000000..0b4a348811 --- /dev/null +++ b/frontend/src/openapi/models/archiveProject403.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type ArchiveProject403 = { + /** The ID of the error instance */ + id?: string; + /** A description of what went wrong. */ + message?: string; + /** The name of the error kind */ + name?: string; +}; diff --git a/frontend/src/openapi/models/deprecatedSearchEventsSchemaType.ts b/frontend/src/openapi/models/deprecatedSearchEventsSchemaType.ts index 15336c081c..5997615e66 100644 --- a/frontend/src/openapi/models/deprecatedSearchEventsSchemaType.ts +++ b/frontend/src/openapi/models/deprecatedSearchEventsSchemaType.ts @@ -60,6 +60,7 @@ export const DeprecatedSearchEventsSchemaType = { 'project-updated': 'project-updated', 'project-deleted': 'project-deleted', 'project-archived': 'project-archived', + 'project-revived': 'project-revived', 'project-import': 'project-import', 'project-user-added': 'project-user-added', 'project-user-removed': 'project-user-removed', diff --git a/frontend/src/openapi/models/eventSchemaType.ts b/frontend/src/openapi/models/eventSchemaType.ts index 9fbc2d678f..99cce4516a 100644 --- a/frontend/src/openapi/models/eventSchemaType.ts +++ b/frontend/src/openapi/models/eventSchemaType.ts @@ -60,6 +60,7 @@ export const EventSchemaType = { 'project-updated': 'project-updated', 'project-deleted': 'project-deleted', 'project-archived': 'project-archived', + 'project-revived': 'project-revived', 'project-import': 'project-import', 'project-user-added': 'project-user-added', 'project-user-removed': 'project-user-removed', diff --git a/frontend/src/openapi/models/featureSchema.ts b/frontend/src/openapi/models/featureSchema.ts index 9fc629fac5..ef4b5f82fc 100644 --- a/frontend/src/openapi/models/featureSchema.ts +++ b/frontend/src/openapi/models/featureSchema.ts @@ -3,6 +3,7 @@ * Do not edit manually. * See `gen:api` script in package.json */ +import type { FeatureSchemaCollaborators } from './featureSchemaCollaborators'; import type { FeatureSchemaCreatedBy } from './featureSchemaCreatedBy'; import type { FeatureSchemaDependenciesItem } from './featureSchemaDependenciesItem'; import type { FeatureEnvironmentSchema } from './featureEnvironmentSchema'; @@ -24,6 +25,8 @@ export interface FeatureSchema { archivedAt?: string | null; /** The list of child feature names. This is an experimental field and may change. */ children?: string[]; + /** Information related to users who have made changes to this feature flage. */ + collaborators?: FeatureSchemaCollaborators; /** * The date the feature was created * @nullable diff --git a/frontend/src/openapi/models/featureSchemaCollaborators.ts b/frontend/src/openapi/models/featureSchemaCollaborators.ts new file mode 100644 index 0000000000..7cf4511a86 --- /dev/null +++ b/frontend/src/openapi/models/featureSchemaCollaborators.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ +import type { FeatureSchemaCollaboratorsUsersItem } from './featureSchemaCollaboratorsUsersItem'; + +/** + * Information related to users who have made changes to this feature flage. + */ +export type FeatureSchemaCollaborators = { + /** Users who have made any changes to this feature flags. The list is sorted in reverse chronological order (most recent changes first) */ + users: FeatureSchemaCollaboratorsUsersItem[]; +}; diff --git a/frontend/src/openapi/models/featureSchemaCollaboratorsUsersItem.ts b/frontend/src/openapi/models/featureSchemaCollaboratorsUsersItem.ts new file mode 100644 index 0000000000..319be64dc5 --- /dev/null +++ b/frontend/src/openapi/models/featureSchemaCollaboratorsUsersItem.ts @@ -0,0 +1,17 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +/** + * A simple representation of a user. + */ +export type FeatureSchemaCollaboratorsUsersItem = { + /** The user's id */ + id: number; + /** The URL to the user's profile image */ + imageUrl: string; + /** The user's name, username, or email (prioritized in that order). If none of those are present, this property will be set to the string `unknown` */ + name: string; +}; diff --git a/frontend/src/openapi/models/index.ts b/frontend/src/openapi/models/index.ts index 53d69186a4..e096a2b988 100644 --- a/frontend/src/openapi/models/index.ts +++ b/frontend/src/openapi/models/index.ts @@ -112,6 +112,9 @@ export * from './archiveFeatures400'; export * from './archiveFeatures401'; export * from './archiveFeatures403'; export * from './archiveFeatures415'; +export * from './archiveProject400'; +export * from './archiveProject401'; +export * from './archiveProject403'; export * from './bannerSchema'; export * from './bannersSchema'; export * from './batchFeaturesSchema'; @@ -550,6 +553,8 @@ export * from './featureLifecycleSchemaItem'; export * from './featureLifecycleSchemaItemStage'; export * from './featureMetricsSchema'; export * from './featureSchema'; +export * from './featureSchemaCollaborators'; +export * from './featureSchemaCollaboratorsUsersItem'; export * from './featureSchemaCreatedBy'; export * from './featureSchemaDependenciesItem'; export * from './featureSchemaLifecycle'; @@ -1017,6 +1022,9 @@ export * from './reviveFeature403'; export * from './reviveFeatures400'; export * from './reviveFeatures401'; export * from './reviveFeatures403'; +export * from './reviveProject400'; +export * from './reviveProject401'; +export * from './reviveProject403'; export * from './roleSchema'; export * from './roleWithPermissionsSchema'; export * from './roleWithVersionSchema'; diff --git a/frontend/src/openapi/models/projectSchema.ts b/frontend/src/openapi/models/projectSchema.ts index 3e386ec126..462f4fb0c6 100644 --- a/frontend/src/openapi/models/projectSchema.ts +++ b/frontend/src/openapi/models/projectSchema.ts @@ -10,6 +10,11 @@ import type { ProjectSchemaOwners } from './projectSchemaOwners'; * A definition of the project used for projects listing purposes */ export interface ProjectSchema { + /** + * When this project was archived. + * @nullable + */ + archivedAt?: string | null; /** The average time from when a feature was created to when it was enabled in the "production" environment during the current window */ avgTimeToProduction?: number; /** When this project was created. */ diff --git a/frontend/src/openapi/models/reviveProject400.ts b/frontend/src/openapi/models/reviveProject400.ts new file mode 100644 index 0000000000..de5fd202a7 --- /dev/null +++ b/frontend/src/openapi/models/reviveProject400.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type ReviveProject400 = { + /** The ID of the error instance */ + id?: string; + /** A description of what went wrong. */ + message?: string; + /** The name of the error kind */ + name?: string; +}; diff --git a/frontend/src/openapi/models/reviveProject401.ts b/frontend/src/openapi/models/reviveProject401.ts new file mode 100644 index 0000000000..e29b10930a --- /dev/null +++ b/frontend/src/openapi/models/reviveProject401.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type ReviveProject401 = { + /** The ID of the error instance */ + id?: string; + /** A description of what went wrong. */ + message?: string; + /** The name of the error kind */ + name?: string; +}; diff --git a/frontend/src/openapi/models/reviveProject403.ts b/frontend/src/openapi/models/reviveProject403.ts new file mode 100644 index 0000000000..4706f88fe2 --- /dev/null +++ b/frontend/src/openapi/models/reviveProject403.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type ReviveProject403 = { + /** The ID of the error instance */ + id?: string; + /** A description of what went wrong. */ + message?: string; + /** The name of the error kind */ + name?: string; +};