diff --git a/client/src/api/schema/schema.ts b/client/src/api/schema/schema.ts index 73ce579c7d0f..102e8b7dc2dd 100644 --- a/client/src/api/schema/schema.ts +++ b/client/src/api/schema/schema.ts @@ -7446,6 +7446,11 @@ export interface components { */ name: string; }; + /** + * DatasetPermissionAction + * @enum {string} + */ + DatasetPermissionAction: "set_permissions" | "make_private" | "remove_restrictions"; /** * DatasetPermissions * @description Role-based permissions for accessing and managing a dataset. @@ -15706,6 +15711,74 @@ export interface components { /** Creator */ creator?: unknown; }; + /** UpdateDatasetPermissionsPayload */ + UpdateDatasetPermissionsPayload: { + /** + * Access IDs + * @description A list of role encoded IDs defining roles that should have access permission on the dataset. + */ + access_ids?: string[] | string | null; + /** + * Action + * @description Indicates what action should be performed on the dataset. + * @default set_permissions + */ + action: components["schemas"]["DatasetPermissionAction"] | null; + /** + * Manage IDs + * @description A list of role encoded IDs defining roles that should have manage permission on the dataset. + */ + manage_ids?: string[] | string | null; + /** + * Modify IDs + * @description A list of role encoded IDs defining roles that should have modify permission on the dataset. + */ + modify_ids?: string[] | string | null; + }; + /** UpdateDatasetPermissionsPayloadAliasB */ + UpdateDatasetPermissionsPayloadAliasB: { + /** + * Access IDs + * @description A list of role encoded IDs defining roles that should have access permission on the dataset. + */ + access?: string[] | string | null; + /** + * Action + * @description Indicates what action should be performed on the dataset. + * @default set_permissions + */ + action: components["schemas"]["DatasetPermissionAction"] | null; + /** + * Manage IDs + * @description A list of role encoded IDs defining roles that should have manage permission on the dataset. + */ + manage?: string[] | string | null; + /** + * Modify IDs + * @description A list of role encoded IDs defining roles that should have modify permission on the dataset. + */ + modify?: string[] | string | null; + }; + /** + * UpdateDatasetPermissionsPayloadAliasC + * @description This is for backwards compatibility with the old API syntax. + * + * Using the alias `access_ids[]`, `manage_ids[]`, and `modify_ids[]`. + */ + UpdateDatasetPermissionsPayloadAliasC: { + /** Access Ids[] */ + "access_ids[]"?: string[] | string | null; + /** + * Action + * @description Indicates what action should be performed on the dataset. + * @default set_permissions + */ + action: components["schemas"]["DatasetPermissionAction"] | null; + /** Manage Ids[] */ + "manage_ids[]"?: string[] | string | null; + /** Modify Ids[] */ + "modify_ids[]"?: string[] | string | null; + }; /** * UpdateHistoryContentsBatchPayload * @description Contains property values that will be updated for all the history `items` provided. @@ -18338,7 +18411,10 @@ export interface operations { }; requestBody: { content: { - "application/json": Record; + "application/json": + | components["schemas"]["UpdateDatasetPermissionsPayload"] + | components["schemas"]["UpdateDatasetPermissionsPayloadAliasB"] + | components["schemas"]["UpdateDatasetPermissionsPayloadAliasC"]; }; }; responses: { @@ -22623,7 +22699,10 @@ export interface operations { }; requestBody: { content: { - "application/json": Record; + "application/json": + | components["schemas"]["UpdateDatasetPermissionsPayload"] + | components["schemas"]["UpdateDatasetPermissionsPayloadAliasB"] + | components["schemas"]["UpdateDatasetPermissionsPayloadAliasC"]; }; }; responses: {