@storyblok/management-api-client 0.1.6 → 0.1.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  declare namespace types_gen_d_exports {
2
- export { Asset, AssetId, BulkMoveData, BulkMoveErrors, BulkMoveResponse, BulkMoveResponses, BulkRestoreData, BulkRestoreErrors, BulkRestoreResponse, BulkRestoreResponses, ClientOptions, DeleteData, DeleteErrors, DeleteManyData, DeleteManyErrors, DeleteManyResponse, DeleteManyResponses, DeleteResponse, DeleteResponses, FinalizeData, FinalizeErrors, FinalizeResponse, FinalizeResponses, GetData, GetErrors, GetResponse, GetResponses, ListData, ListErrors, ListResponse, ListResponses, Page, SignedResponseObject, SpaceId, UpdateData, UpdateErrors, UpdateResponse, UpdateResponses, UploadData, UploadErrors, UploadResponse, UploadResponses };
2
+ export { Asset, AssetId, BulkMoveData, BulkMoveErrors, BulkMoveResponse, BulkMoveResponses, BulkRestoreData, BulkRestoreErrors, BulkRestoreResponse, BulkRestoreResponses, ClientOptions, DeleteData, DeleteErrors, DeleteManyData, DeleteManyErrors, DeleteManyResponse, DeleteManyResponses, DeleteResponse, DeleteResponses, FinalizeData, FinalizeErrors, FinalizeResponse, FinalizeResponses, GetData, GetErrors, GetResponse, GetResponses, ListData, ListErrors, ListResponse, ListResponses, Page, PerPage, SignedResponseObject, SpaceId, UpdateData, UpdateErrors, UpdateResponse, UpdateResponses, UploadData, UploadErrors, UploadResponse, UploadResponses };
3
3
  }
4
4
  /**
5
5
  * A single asset object
@@ -138,6 +138,10 @@ type SpaceId = number | string;
138
138
  * Page number for pagination. Default is 1.
139
139
  */
140
140
  type Page = number;
141
+ /**
142
+ * Number of items per page. Default is 25.
143
+ */
144
+ type PerPage = number;
141
145
  /**
142
146
  * The ID of the asset (can be integer or string)
143
147
  */
@@ -156,7 +160,7 @@ type ListData = {
156
160
  */
157
161
  page?: number;
158
162
  /**
159
- * Number of assets per page. Default is 25, maximum is 100.
163
+ * Number of items per page. Default is 25.
160
164
  */
161
165
  per_page?: number;
162
166
  /**
@@ -607,5 +611,5 @@ type ClientOptions = {
607
611
  baseUrl: 'https://mapi.storyblok.com' | 'https://api-us.storyblok.com' | 'https://api-ca.storyblok.com' | 'https://api-ap.storyblok.com' | 'https://app.storyblok.cn' | (string & {});
608
612
  };
609
613
  //#endregion
610
- export { Asset, AssetId, BulkMoveData, BulkMoveErrors, BulkMoveResponse, BulkMoveResponses, BulkRestoreData, BulkRestoreErrors, BulkRestoreResponse, BulkRestoreResponses, ClientOptions, DeleteData, DeleteErrors, DeleteManyData, DeleteManyErrors, DeleteManyResponse, DeleteManyResponses, DeleteResponse, DeleteResponses, FinalizeData, FinalizeErrors, FinalizeResponse, FinalizeResponses, GetData, GetErrors, GetResponse, GetResponses, ListData, ListErrors, ListResponse, ListResponses, Page, SignedResponseObject, SpaceId, UpdateData, UpdateErrors, UpdateResponse, UpdateResponses, UploadData, UploadErrors, UploadResponse, UploadResponses, types_gen_d_exports };
614
+ export { Asset, AssetId, BulkMoveData, BulkMoveErrors, BulkMoveResponse, BulkMoveResponses, BulkRestoreData, BulkRestoreErrors, BulkRestoreResponse, BulkRestoreResponses, ClientOptions, DeleteData, DeleteErrors, DeleteManyData, DeleteManyErrors, DeleteManyResponse, DeleteManyResponses, DeleteResponse, DeleteResponses, FinalizeData, FinalizeErrors, FinalizeResponse, FinalizeResponses, GetData, GetErrors, GetResponse, GetResponses, ListData, ListErrors, ListResponse, ListResponses, Page, PerPage, SignedResponseObject, SpaceId, UpdateData, UpdateErrors, UpdateResponse, UpdateResponses, UploadData, UploadErrors, UploadResponse, UploadResponses, types_gen_d_exports };
611
615
  //# sourceMappingURL=types.gen.d.mts.map
@@ -1,5 +1,5 @@
1
1
  declare namespace types_gen_d_exports {
2
- export { Asset, AssetId, BulkMoveData, BulkMoveErrors, BulkMoveResponse, BulkMoveResponses, BulkRestoreData, BulkRestoreErrors, BulkRestoreResponse, BulkRestoreResponses, ClientOptions, DeleteData, DeleteErrors, DeleteManyData, DeleteManyErrors, DeleteManyResponse, DeleteManyResponses, DeleteResponse, DeleteResponses, FinalizeData, FinalizeErrors, FinalizeResponse, FinalizeResponses, GetData, GetErrors, GetResponse, GetResponses, ListData, ListErrors, ListResponse, ListResponses, Page, SignedResponseObject, SpaceId, UpdateData, UpdateErrors, UpdateResponse, UpdateResponses, UploadData, UploadErrors, UploadResponse, UploadResponses };
2
+ export { Asset, AssetId, BulkMoveData, BulkMoveErrors, BulkMoveResponse, BulkMoveResponses, BulkRestoreData, BulkRestoreErrors, BulkRestoreResponse, BulkRestoreResponses, ClientOptions, DeleteData, DeleteErrors, DeleteManyData, DeleteManyErrors, DeleteManyResponse, DeleteManyResponses, DeleteResponse, DeleteResponses, FinalizeData, FinalizeErrors, FinalizeResponse, FinalizeResponses, GetData, GetErrors, GetResponse, GetResponses, ListData, ListErrors, ListResponse, ListResponses, Page, PerPage, SignedResponseObject, SpaceId, UpdateData, UpdateErrors, UpdateResponse, UpdateResponses, UploadData, UploadErrors, UploadResponse, UploadResponses };
3
3
  }
4
4
  /**
5
5
  * A single asset object
@@ -138,6 +138,10 @@ type SpaceId = number | string;
138
138
  * Page number for pagination. Default is 1.
139
139
  */
140
140
  type Page = number;
141
+ /**
142
+ * Number of items per page. Default is 25.
143
+ */
144
+ type PerPage = number;
141
145
  /**
142
146
  * The ID of the asset (can be integer or string)
143
147
  */
@@ -156,7 +160,7 @@ type ListData = {
156
160
  */
157
161
  page?: number;
158
162
  /**
159
- * Number of assets per page. Default is 25, maximum is 100.
163
+ * Number of items per page. Default is 25.
160
164
  */
161
165
  per_page?: number;
162
166
  /**
@@ -607,5 +611,5 @@ type ClientOptions = {
607
611
  baseUrl: 'https://mapi.storyblok.com' | 'https://api-us.storyblok.com' | 'https://api-ca.storyblok.com' | 'https://api-ap.storyblok.com' | 'https://app.storyblok.cn' | (string & {});
608
612
  };
609
613
  //#endregion
610
- export { Asset, AssetId, BulkMoveData, BulkMoveErrors, BulkMoveResponse, BulkMoveResponses, BulkRestoreData, BulkRestoreErrors, BulkRestoreResponse, BulkRestoreResponses, ClientOptions, DeleteData, DeleteErrors, DeleteManyData, DeleteManyErrors, DeleteManyResponse, DeleteManyResponses, DeleteResponse, DeleteResponses, FinalizeData, FinalizeErrors, FinalizeResponse, FinalizeResponses, GetData, GetErrors, GetResponse, GetResponses, ListData, ListErrors, ListResponse, ListResponses, Page, SignedResponseObject, SpaceId, UpdateData, UpdateErrors, UpdateResponse, UpdateResponses, UploadData, UploadErrors, UploadResponse, UploadResponses, types_gen_d_exports };
614
+ export { Asset, AssetId, BulkMoveData, BulkMoveErrors, BulkMoveResponse, BulkMoveResponses, BulkRestoreData, BulkRestoreErrors, BulkRestoreResponse, BulkRestoreResponses, ClientOptions, DeleteData, DeleteErrors, DeleteManyData, DeleteManyErrors, DeleteManyResponse, DeleteManyResponses, DeleteResponse, DeleteResponses, FinalizeData, FinalizeErrors, FinalizeResponse, FinalizeResponses, GetData, GetErrors, GetResponse, GetResponses, ListData, ListErrors, ListResponse, ListResponses, Page, PerPage, SignedResponseObject, SpaceId, UpdateData, UpdateErrors, UpdateResponse, UpdateResponses, UploadData, UploadErrors, UploadResponse, UploadResponses, types_gen_d_exports };
611
615
  //# sourceMappingURL=types.gen.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.gen.js","names":[],"sources":["../../../src/generated/assets/types.gen.ts"],"sourcesContent":["// This file is auto-generated by @hey-api/openapi-ts\n\n/**\n * A single asset object\n */\nexport type Asset = {\n /**\n * The numeric ID\n */\n id?: number;\n /**\n * Full path of the asset, including the file name\n */\n filename?: string;\n /**\n * Space ID in which the asset is connected\n */\n space_id?: number;\n /**\n * Creation date (Format yyyy-MM-dd'T'HH:mm:ssZ)\n */\n created_at?: string;\n /**\n * Latest update date (Format yyyy-MM-dd'T'HH:mm:ssZ)\n */\n updated_at?: string;\n /**\n * Represents a File object when uploading an asset. Returns null when retrieving asset details.\n */\n file?: {\n [key: string]: unknown;\n };\n /**\n * Id of the folder containing this asset\n */\n asset_folder_id?: number;\n /**\n * Deleted date (Format YYYY-mm-dd HH:MM)\n */\n deleted_at?: string;\n /**\n * The file name of the asset\n */\n short_filename?: string;\n /**\n * The MIME type of the asset\n */\n content_type?: string;\n /**\n * The content length in bytes\n */\n content_length?: number;\n /**\n * Alt text for the asset (default language)\n */\n alt?: string;\n /**\n * Copyright text for the asset (default language)\n */\n copyright?: string;\n /**\n * Title of the asset (default language)\n */\n title?: string;\n /**\n * Source text for the asset (default language)\n */\n source?: string;\n /**\n * Date when the asset should expire (Format yyyy-MM-dd'T'HH:mm:ssZ)\n */\n expire_at?: string;\n /**\n * The focus point of the image (Only for image assets)\n */\n focus?: string;\n /**\n * List of ids of the tags assigned to the asset\n */\n internal_tag_ids?: Array<string>;\n /**\n * List of objects containing the details of tags used for the asset\n */\n internal_tags_list?: Array<{\n /**\n * Id of the tag\n */\n id?: number;\n /**\n * Name of the tag\n */\n name?: string;\n }>;\n /**\n * Defines if the asset is locked for any changes\n */\n locked?: boolean;\n /**\n * Date when the asset should be made public (Format yyyy-MM-dd'T'HH:mm:ssZ)\n */\n publish_at?: string;\n /**\n * Defines if the asset should be inaccessable to the public\n */\n is_private?: boolean;\n /**\n * Includes custom metadata fields for an asset along with the default ones. It also contains the translations of the same if added in the format metafield__i18n__langcode. This field should be used for updating the metadata including the default ones (alt, title, source, copyright)\n */\n meta_data?: {\n [key: string]: unknown;\n };\n};\n\n/**\n * Signed response object returned from the upload request\n */\nexport type SignedResponseObject = {\n /**\n * The ID of the signed response object\n */\n id?: string;\n /**\n * The URL to post the file to\n */\n post_url?: string;\n /**\n * Form fields to include in the upload request\n */\n fields?: {\n [key: string]: unknown;\n };\n};\n\n/**\n * The ID of the Storyblok space (can be integer or string)\n */\nexport type SpaceId = number | string;\n\n/**\n * Page number for pagination. Default is 1.\n */\nexport type Page = number;\n\n/**\n * The ID of the asset (can be integer or string)\n */\nexport type AssetId = number | string;\n\nexport type ListData = {\n body?: never;\n path: {\n /**\n * The ID of the Storyblok space (can be integer or string)\n */\n space_id: number | string;\n };\n query?: {\n /**\n * Page number for pagination. Default is 1.\n */\n page?: number;\n /**\n * Number of assets per page. Default is 25, maximum is 100.\n */\n per_page?: number;\n /**\n * Provide the numeric id of a folder to filter the assets by a specific folder. Use value -1 to retrieve deleted assets.\n */\n in_folder?: number;\n /**\n * Sort assets by specific attribute and order\n */\n sort_by?: 'created_at:asc' | 'created_at:desc' | 'updated_at:asc' | 'updated_at:desc' | 'short_filename:asc' | 'short_filename:desc';\n /**\n * If \"1\" it only displays private assets\n */\n is_private?: boolean;\n /**\n * Provide a search term to filter a specific file by the filename\n */\n search?: string;\n /**\n * Filter by the alt text of an asset\n */\n by_alt?: string;\n /**\n * Filter by the copyright of an asset\n */\n by_copyright?: string;\n /**\n * Filter by the title of an asset\n */\n by_title?: string;\n /**\n * Filter by specific tag(s). Multiple tags can be provided as a comma-separated string (treated like an OR operator).\n */\n with_tags?: string;\n };\n url: '/v1/spaces/{space_id}/assets';\n};\n\nexport type ListErrors = {\n /**\n * Bad request\n */\n 400: unknown;\n /**\n * Unauthorized\n */\n 401: unknown;\n /**\n * Space not found\n */\n 404: unknown;\n};\n\nexport type ListResponses = {\n /**\n * List of assets\n */\n 200: {\n assets?: Array<Asset>;\n };\n};\n\nexport type ListResponse = ListResponses[keyof ListResponses];\n\nexport type UploadData = {\n body: {\n /**\n * The filename of the asset to upload\n */\n filename: string;\n /**\n * The size of the asset (e.g., \"400X500\")\n */\n size: string;\n /**\n * Optional asset folder ID to place the asset in\n */\n asset_folder_id?: number;\n /**\n * Must be set to 1 to validate the upload\n */\n validate_upload: 1;\n };\n path: {\n /**\n * The ID of the Storyblok space (can be integer or string)\n */\n space_id: number | string;\n };\n query?: never;\n url: '/v1/spaces/{space_id}/assets';\n};\n\nexport type UploadErrors = {\n /**\n * Bad request\n */\n 400: unknown;\n /**\n * Unauthorized\n */\n 401: unknown;\n /**\n * Space not found\n */\n 404: unknown;\n};\n\nexport type UploadResponses = {\n /**\n * Signed response object for upload\n */\n 200: SignedResponseObject;\n};\n\nexport type UploadResponse = UploadResponses[keyof UploadResponses];\n\nexport type DeleteData = {\n body?: never;\n path: {\n /**\n * The ID of the Storyblok space (can be integer or string)\n */\n space_id: number | string;\n /**\n * The ID of the asset (can be integer or string)\n */\n asset_id: number | string;\n };\n query?: never;\n url: '/v1/spaces/{space_id}/assets/{asset_id}';\n};\n\nexport type DeleteErrors = {\n /**\n * Bad request\n */\n 400: unknown;\n /**\n * Unauthorized\n */\n 401: unknown;\n /**\n * Asset not found\n */\n 404: unknown;\n};\n\nexport type DeleteResponses = {\n /**\n * Asset deleted\n */\n 200: {\n asset?: Asset;\n };\n};\n\nexport type DeleteResponse = DeleteResponses[keyof DeleteResponses];\n\nexport type GetData = {\n body?: never;\n path: {\n /**\n * The ID of the Storyblok space (can be integer or string)\n */\n space_id: number | string;\n /**\n * The ID of the asset (can be integer or string)\n */\n asset_id: number | string;\n };\n query?: never;\n url: '/v1/spaces/{space_id}/assets/{asset_id}';\n};\n\nexport type GetErrors = {\n /**\n * Bad request\n */\n 400: unknown;\n /**\n * Unauthorized\n */\n 401: unknown;\n /**\n * Asset not found\n */\n 404: unknown;\n};\n\nexport type GetResponses = {\n /**\n * Asset details\n */\n 200: {\n asset?: Asset;\n };\n};\n\nexport type GetResponse = GetResponses[keyof GetResponses];\n\nexport type UpdateData = {\n body: {\n /**\n * A single asset object with updatable properties\n */\n asset?: {\n /**\n * Id of the folder containing this asset\n */\n asset_folder_id?: number;\n /**\n * Alt text for the asset (default language)\n */\n alt?: string;\n /**\n * Copyright text for the asset (default language)\n */\n copyright?: string;\n /**\n * Title of the asset (default language)\n */\n title?: string;\n /**\n * Source text for the asset (default language)\n */\n source?: string;\n /**\n * Date when the asset should expire (Format yyyy-MM-dd'T'HH:mm:ssZ)\n */\n expire_at?: string;\n /**\n * The focus point of the image (Only for image assets)\n */\n focus?: string;\n /**\n * List of ids of the tags assigned to the asset\n */\n internal_tag_ids?: Array<string>;\n /**\n * Date when the asset should be made public (Format yyyy-MM-dd'T'HH:mm:ssZ)\n */\n publish_at?: string;\n /**\n * Defines if the asset should be inaccessable to the public\n */\n is_private?: boolean;\n /**\n * Includes custom metadata fields for an asset along with the default ones. It also contains the translations of the same if added in the format metafield__i18n__langcode. This field should be used for updating the metadata including the default ones (alt, title, source, copyright)\n */\n meta_data?: {\n [key: string]: unknown;\n };\n };\n };\n path: {\n /**\n * The ID of the Storyblok space (can be integer or string)\n */\n space_id: number | string;\n /**\n * The ID of the asset (can be integer or string)\n */\n asset_id: number | string;\n };\n query?: never;\n url: '/v1/spaces/{space_id}/assets/{asset_id}';\n};\n\nexport type UpdateErrors = {\n /**\n * Bad request\n */\n 400: unknown;\n /**\n * Unauthorized\n */\n 401: unknown;\n /**\n * Asset not found\n */\n 404: unknown;\n};\n\nexport type UpdateResponses = {\n /**\n * Asset updated\n */\n 200: {\n asset?: Asset;\n };\n};\n\nexport type UpdateResponse = UpdateResponses[keyof UpdateResponses];\n\nexport type FinalizeData = {\n body?: never;\n path: {\n /**\n * The ID of the Storyblok space (can be integer or string)\n */\n space_id: number | string;\n /**\n * The ID from the signed response object\n */\n signed_response_object_id: string;\n };\n query?: never;\n url: '/v1/spaces/{space_id}/assets/{signed_response_object_id}/finish_upload';\n};\n\nexport type FinalizeErrors = {\n /**\n * Bad request\n */\n 400: unknown;\n /**\n * Unauthorized\n */\n 401: unknown;\n /**\n * Asset not found\n */\n 404: unknown;\n};\n\nexport type FinalizeResponses = {\n /**\n * Upload finalized successfully\n */\n 200: {\n /**\n * Success message indicating the upload was finalized\n */\n message?: string;\n };\n};\n\nexport type FinalizeResponse = FinalizeResponses[keyof FinalizeResponses];\n\nexport type DeleteManyData = {\n body: {\n /**\n * Array of numeric asset IDs\n */\n ids: Array<number>;\n };\n path: {\n /**\n * The ID of the Storyblok space (can be integer or string)\n */\n space_id: number | string;\n };\n query?: never;\n url: '/v1/spaces/{space_id}/assets/bulk_destroy';\n};\n\nexport type DeleteManyErrors = {\n /**\n * Bad request\n */\n 400: unknown;\n /**\n * Unauthorized\n */\n 401: unknown;\n /**\n * Space not found\n */\n 404: unknown;\n};\n\nexport type DeleteManyResponses = {\n /**\n * Assets deleted successfully\n */\n 200: {\n /**\n * Success message indicating which assets were deleted\n */\n message?: string;\n };\n};\n\nexport type DeleteManyResponse = DeleteManyResponses[keyof DeleteManyResponses];\n\nexport type BulkMoveData = {\n body: {\n /**\n * Array of numeric asset IDs\n */\n ids: Array<number>;\n /**\n * Id of the folder containing this asset\n */\n asset_folder_id: number;\n };\n path: {\n /**\n * The ID of the Storyblok space (can be integer or string)\n */\n space_id: number | string;\n };\n query?: never;\n url: '/v1/spaces/{space_id}/assets/bulk_update';\n};\n\nexport type BulkMoveErrors = {\n /**\n * Bad request\n */\n 400: unknown;\n /**\n * Unauthorized\n */\n 401: unknown;\n /**\n * Space not found\n */\n 404: unknown;\n};\n\nexport type BulkMoveResponses = {\n /**\n * Assets moved successfully\n */\n 200: {\n /**\n * Success message indicating which assets were moved\n */\n message?: string;\n };\n};\n\nexport type BulkMoveResponse = BulkMoveResponses[keyof BulkMoveResponses];\n\nexport type BulkRestoreData = {\n body: {\n /**\n * Array of numeric asset IDs\n */\n ids: Array<number>;\n };\n path: {\n /**\n * The ID of the Storyblok space (can be integer or string)\n */\n space_id: number | string;\n };\n query?: never;\n url: '/v1/spaces/{space_id}/assets/bulk_restore';\n};\n\nexport type BulkRestoreErrors = {\n /**\n * Bad request\n */\n 400: unknown;\n /**\n * Unauthorized\n */\n 401: unknown;\n /**\n * Space not found\n */\n 404: unknown;\n};\n\nexport type BulkRestoreResponses = {\n /**\n * Assets restored successfully\n */\n 200: {\n /**\n * Success message indicating which assets were restored\n */\n message?: string;\n };\n};\n\nexport type BulkRestoreResponse = BulkRestoreResponses[keyof BulkRestoreResponses];\n\nexport type ClientOptions = {\n baseUrl: 'https://mapi.storyblok.com' | 'https://api-us.storyblok.com' | 'https://api-ca.storyblok.com' | 'https://api-ap.storyblok.com' | 'https://app.storyblok.cn' | (string & {});\n};"],"mappings":""}
1
+ {"version":3,"file":"types.gen.js","names":[],"sources":["../../../src/generated/assets/types.gen.ts"],"sourcesContent":["// This file is auto-generated by @hey-api/openapi-ts\n\n/**\n * A single asset object\n */\nexport type Asset = {\n /**\n * The numeric ID\n */\n id?: number;\n /**\n * Full path of the asset, including the file name\n */\n filename?: string;\n /**\n * Space ID in which the asset is connected\n */\n space_id?: number;\n /**\n * Creation date (Format yyyy-MM-dd'T'HH:mm:ssZ)\n */\n created_at?: string;\n /**\n * Latest update date (Format yyyy-MM-dd'T'HH:mm:ssZ)\n */\n updated_at?: string;\n /**\n * Represents a File object when uploading an asset. Returns null when retrieving asset details.\n */\n file?: {\n [key: string]: unknown;\n };\n /**\n * Id of the folder containing this asset\n */\n asset_folder_id?: number;\n /**\n * Deleted date (Format YYYY-mm-dd HH:MM)\n */\n deleted_at?: string;\n /**\n * The file name of the asset\n */\n short_filename?: string;\n /**\n * The MIME type of the asset\n */\n content_type?: string;\n /**\n * The content length in bytes\n */\n content_length?: number;\n /**\n * Alt text for the asset (default language)\n */\n alt?: string;\n /**\n * Copyright text for the asset (default language)\n */\n copyright?: string;\n /**\n * Title of the asset (default language)\n */\n title?: string;\n /**\n * Source text for the asset (default language)\n */\n source?: string;\n /**\n * Date when the asset should expire (Format yyyy-MM-dd'T'HH:mm:ssZ)\n */\n expire_at?: string;\n /**\n * The focus point of the image (Only for image assets)\n */\n focus?: string;\n /**\n * List of ids of the tags assigned to the asset\n */\n internal_tag_ids?: Array<string>;\n /**\n * List of objects containing the details of tags used for the asset\n */\n internal_tags_list?: Array<{\n /**\n * Id of the tag\n */\n id?: number;\n /**\n * Name of the tag\n */\n name?: string;\n }>;\n /**\n * Defines if the asset is locked for any changes\n */\n locked?: boolean;\n /**\n * Date when the asset should be made public (Format yyyy-MM-dd'T'HH:mm:ssZ)\n */\n publish_at?: string;\n /**\n * Defines if the asset should be inaccessable to the public\n */\n is_private?: boolean;\n /**\n * Includes custom metadata fields for an asset along with the default ones. It also contains the translations of the same if added in the format metafield__i18n__langcode. This field should be used for updating the metadata including the default ones (alt, title, source, copyright)\n */\n meta_data?: {\n [key: string]: unknown;\n };\n};\n\n/**\n * Signed response object returned from the upload request\n */\nexport type SignedResponseObject = {\n /**\n * The ID of the signed response object\n */\n id?: string;\n /**\n * The URL to post the file to\n */\n post_url?: string;\n /**\n * Form fields to include in the upload request\n */\n fields?: {\n [key: string]: unknown;\n };\n};\n\n/**\n * The ID of the Storyblok space (can be integer or string)\n */\nexport type SpaceId = number | string;\n\n/**\n * Page number for pagination. Default is 1.\n */\nexport type Page = number;\n\n/**\n * Number of items per page. Default is 25.\n */\nexport type PerPage = number;\n\n/**\n * The ID of the asset (can be integer or string)\n */\nexport type AssetId = number | string;\n\nexport type ListData = {\n body?: never;\n path: {\n /**\n * The ID of the Storyblok space (can be integer or string)\n */\n space_id: number | string;\n };\n query?: {\n /**\n * Page number for pagination. Default is 1.\n */\n page?: number;\n /**\n * Number of items per page. Default is 25.\n */\n per_page?: number;\n /**\n * Provide the numeric id of a folder to filter the assets by a specific folder. Use value -1 to retrieve deleted assets.\n */\n in_folder?: number;\n /**\n * Sort assets by specific attribute and order\n */\n sort_by?: 'created_at:asc' | 'created_at:desc' | 'updated_at:asc' | 'updated_at:desc' | 'short_filename:asc' | 'short_filename:desc';\n /**\n * If \"1\" it only displays private assets\n */\n is_private?: boolean;\n /**\n * Provide a search term to filter a specific file by the filename\n */\n search?: string;\n /**\n * Filter by the alt text of an asset\n */\n by_alt?: string;\n /**\n * Filter by the copyright of an asset\n */\n by_copyright?: string;\n /**\n * Filter by the title of an asset\n */\n by_title?: string;\n /**\n * Filter by specific tag(s). Multiple tags can be provided as a comma-separated string (treated like an OR operator).\n */\n with_tags?: string;\n };\n url: '/v1/spaces/{space_id}/assets';\n};\n\nexport type ListErrors = {\n /**\n * Bad request\n */\n 400: unknown;\n /**\n * Unauthorized\n */\n 401: unknown;\n /**\n * Space not found\n */\n 404: unknown;\n};\n\nexport type ListResponses = {\n /**\n * List of assets\n */\n 200: {\n assets?: Array<Asset>;\n };\n};\n\nexport type ListResponse = ListResponses[keyof ListResponses];\n\nexport type UploadData = {\n body: {\n /**\n * The filename of the asset to upload\n */\n filename: string;\n /**\n * The size of the asset (e.g., \"400X500\")\n */\n size: string;\n /**\n * Optional asset folder ID to place the asset in\n */\n asset_folder_id?: number;\n /**\n * Must be set to 1 to validate the upload\n */\n validate_upload: 1;\n };\n path: {\n /**\n * The ID of the Storyblok space (can be integer or string)\n */\n space_id: number | string;\n };\n query?: never;\n url: '/v1/spaces/{space_id}/assets';\n};\n\nexport type UploadErrors = {\n /**\n * Bad request\n */\n 400: unknown;\n /**\n * Unauthorized\n */\n 401: unknown;\n /**\n * Space not found\n */\n 404: unknown;\n};\n\nexport type UploadResponses = {\n /**\n * Signed response object for upload\n */\n 200: SignedResponseObject;\n};\n\nexport type UploadResponse = UploadResponses[keyof UploadResponses];\n\nexport type DeleteData = {\n body?: never;\n path: {\n /**\n * The ID of the Storyblok space (can be integer or string)\n */\n space_id: number | string;\n /**\n * The ID of the asset (can be integer or string)\n */\n asset_id: number | string;\n };\n query?: never;\n url: '/v1/spaces/{space_id}/assets/{asset_id}';\n};\n\nexport type DeleteErrors = {\n /**\n * Bad request\n */\n 400: unknown;\n /**\n * Unauthorized\n */\n 401: unknown;\n /**\n * Asset not found\n */\n 404: unknown;\n};\n\nexport type DeleteResponses = {\n /**\n * Asset deleted\n */\n 200: {\n asset?: Asset;\n };\n};\n\nexport type DeleteResponse = DeleteResponses[keyof DeleteResponses];\n\nexport type GetData = {\n body?: never;\n path: {\n /**\n * The ID of the Storyblok space (can be integer or string)\n */\n space_id: number | string;\n /**\n * The ID of the asset (can be integer or string)\n */\n asset_id: number | string;\n };\n query?: never;\n url: '/v1/spaces/{space_id}/assets/{asset_id}';\n};\n\nexport type GetErrors = {\n /**\n * Bad request\n */\n 400: unknown;\n /**\n * Unauthorized\n */\n 401: unknown;\n /**\n * Asset not found\n */\n 404: unknown;\n};\n\nexport type GetResponses = {\n /**\n * Asset details\n */\n 200: {\n asset?: Asset;\n };\n};\n\nexport type GetResponse = GetResponses[keyof GetResponses];\n\nexport type UpdateData = {\n body: {\n /**\n * A single asset object with updatable properties\n */\n asset?: {\n /**\n * Id of the folder containing this asset\n */\n asset_folder_id?: number;\n /**\n * Alt text for the asset (default language)\n */\n alt?: string;\n /**\n * Copyright text for the asset (default language)\n */\n copyright?: string;\n /**\n * Title of the asset (default language)\n */\n title?: string;\n /**\n * Source text for the asset (default language)\n */\n source?: string;\n /**\n * Date when the asset should expire (Format yyyy-MM-dd'T'HH:mm:ssZ)\n */\n expire_at?: string;\n /**\n * The focus point of the image (Only for image assets)\n */\n focus?: string;\n /**\n * List of ids of the tags assigned to the asset\n */\n internal_tag_ids?: Array<string>;\n /**\n * Date when the asset should be made public (Format yyyy-MM-dd'T'HH:mm:ssZ)\n */\n publish_at?: string;\n /**\n * Defines if the asset should be inaccessable to the public\n */\n is_private?: boolean;\n /**\n * Includes custom metadata fields for an asset along with the default ones. It also contains the translations of the same if added in the format metafield__i18n__langcode. This field should be used for updating the metadata including the default ones (alt, title, source, copyright)\n */\n meta_data?: {\n [key: string]: unknown;\n };\n };\n };\n path: {\n /**\n * The ID of the Storyblok space (can be integer or string)\n */\n space_id: number | string;\n /**\n * The ID of the asset (can be integer or string)\n */\n asset_id: number | string;\n };\n query?: never;\n url: '/v1/spaces/{space_id}/assets/{asset_id}';\n};\n\nexport type UpdateErrors = {\n /**\n * Bad request\n */\n 400: unknown;\n /**\n * Unauthorized\n */\n 401: unknown;\n /**\n * Asset not found\n */\n 404: unknown;\n};\n\nexport type UpdateResponses = {\n /**\n * Asset updated\n */\n 200: {\n asset?: Asset;\n };\n};\n\nexport type UpdateResponse = UpdateResponses[keyof UpdateResponses];\n\nexport type FinalizeData = {\n body?: never;\n path: {\n /**\n * The ID of the Storyblok space (can be integer or string)\n */\n space_id: number | string;\n /**\n * The ID from the signed response object\n */\n signed_response_object_id: string;\n };\n query?: never;\n url: '/v1/spaces/{space_id}/assets/{signed_response_object_id}/finish_upload';\n};\n\nexport type FinalizeErrors = {\n /**\n * Bad request\n */\n 400: unknown;\n /**\n * Unauthorized\n */\n 401: unknown;\n /**\n * Asset not found\n */\n 404: unknown;\n};\n\nexport type FinalizeResponses = {\n /**\n * Upload finalized successfully\n */\n 200: {\n /**\n * Success message indicating the upload was finalized\n */\n message?: string;\n };\n};\n\nexport type FinalizeResponse = FinalizeResponses[keyof FinalizeResponses];\n\nexport type DeleteManyData = {\n body: {\n /**\n * Array of numeric asset IDs\n */\n ids: Array<number>;\n };\n path: {\n /**\n * The ID of the Storyblok space (can be integer or string)\n */\n space_id: number | string;\n };\n query?: never;\n url: '/v1/spaces/{space_id}/assets/bulk_destroy';\n};\n\nexport type DeleteManyErrors = {\n /**\n * Bad request\n */\n 400: unknown;\n /**\n * Unauthorized\n */\n 401: unknown;\n /**\n * Space not found\n */\n 404: unknown;\n};\n\nexport type DeleteManyResponses = {\n /**\n * Assets deleted successfully\n */\n 200: {\n /**\n * Success message indicating which assets were deleted\n */\n message?: string;\n };\n};\n\nexport type DeleteManyResponse = DeleteManyResponses[keyof DeleteManyResponses];\n\nexport type BulkMoveData = {\n body: {\n /**\n * Array of numeric asset IDs\n */\n ids: Array<number>;\n /**\n * Id of the folder containing this asset\n */\n asset_folder_id: number;\n };\n path: {\n /**\n * The ID of the Storyblok space (can be integer or string)\n */\n space_id: number | string;\n };\n query?: never;\n url: '/v1/spaces/{space_id}/assets/bulk_update';\n};\n\nexport type BulkMoveErrors = {\n /**\n * Bad request\n */\n 400: unknown;\n /**\n * Unauthorized\n */\n 401: unknown;\n /**\n * Space not found\n */\n 404: unknown;\n};\n\nexport type BulkMoveResponses = {\n /**\n * Assets moved successfully\n */\n 200: {\n /**\n * Success message indicating which assets were moved\n */\n message?: string;\n };\n};\n\nexport type BulkMoveResponse = BulkMoveResponses[keyof BulkMoveResponses];\n\nexport type BulkRestoreData = {\n body: {\n /**\n * Array of numeric asset IDs\n */\n ids: Array<number>;\n };\n path: {\n /**\n * The ID of the Storyblok space (can be integer or string)\n */\n space_id: number | string;\n };\n query?: never;\n url: '/v1/spaces/{space_id}/assets/bulk_restore';\n};\n\nexport type BulkRestoreErrors = {\n /**\n * Bad request\n */\n 400: unknown;\n /**\n * Unauthorized\n */\n 401: unknown;\n /**\n * Space not found\n */\n 404: unknown;\n};\n\nexport type BulkRestoreResponses = {\n /**\n * Assets restored successfully\n */\n 200: {\n /**\n * Success message indicating which assets were restored\n */\n message?: string;\n };\n};\n\nexport type BulkRestoreResponse = BulkRestoreResponses[keyof BulkRestoreResponses];\n\nexport type ClientOptions = {\n baseUrl: 'https://mapi.storyblok.com' | 'https://api-us.storyblok.com' | 'https://api-ca.storyblok.com' | 'https://api-ap.storyblok.com' | 'https://app.storyblok.cn' | (string & {});\n};"],"mappings":""}
@@ -1 +1 @@
1
- {"version":3,"file":"types.gen.mjs","names":[],"sources":["../../../src/generated/assets/types.gen.ts"],"sourcesContent":["// This file is auto-generated by @hey-api/openapi-ts\n\n/**\n * A single asset object\n */\nexport type Asset = {\n /**\n * The numeric ID\n */\n id?: number;\n /**\n * Full path of the asset, including the file name\n */\n filename?: string;\n /**\n * Space ID in which the asset is connected\n */\n space_id?: number;\n /**\n * Creation date (Format yyyy-MM-dd'T'HH:mm:ssZ)\n */\n created_at?: string;\n /**\n * Latest update date (Format yyyy-MM-dd'T'HH:mm:ssZ)\n */\n updated_at?: string;\n /**\n * Represents a File object when uploading an asset. Returns null when retrieving asset details.\n */\n file?: {\n [key: string]: unknown;\n };\n /**\n * Id of the folder containing this asset\n */\n asset_folder_id?: number;\n /**\n * Deleted date (Format YYYY-mm-dd HH:MM)\n */\n deleted_at?: string;\n /**\n * The file name of the asset\n */\n short_filename?: string;\n /**\n * The MIME type of the asset\n */\n content_type?: string;\n /**\n * The content length in bytes\n */\n content_length?: number;\n /**\n * Alt text for the asset (default language)\n */\n alt?: string;\n /**\n * Copyright text for the asset (default language)\n */\n copyright?: string;\n /**\n * Title of the asset (default language)\n */\n title?: string;\n /**\n * Source text for the asset (default language)\n */\n source?: string;\n /**\n * Date when the asset should expire (Format yyyy-MM-dd'T'HH:mm:ssZ)\n */\n expire_at?: string;\n /**\n * The focus point of the image (Only for image assets)\n */\n focus?: string;\n /**\n * List of ids of the tags assigned to the asset\n */\n internal_tag_ids?: Array<string>;\n /**\n * List of objects containing the details of tags used for the asset\n */\n internal_tags_list?: Array<{\n /**\n * Id of the tag\n */\n id?: number;\n /**\n * Name of the tag\n */\n name?: string;\n }>;\n /**\n * Defines if the asset is locked for any changes\n */\n locked?: boolean;\n /**\n * Date when the asset should be made public (Format yyyy-MM-dd'T'HH:mm:ssZ)\n */\n publish_at?: string;\n /**\n * Defines if the asset should be inaccessable to the public\n */\n is_private?: boolean;\n /**\n * Includes custom metadata fields for an asset along with the default ones. It also contains the translations of the same if added in the format metafield__i18n__langcode. This field should be used for updating the metadata including the default ones (alt, title, source, copyright)\n */\n meta_data?: {\n [key: string]: unknown;\n };\n};\n\n/**\n * Signed response object returned from the upload request\n */\nexport type SignedResponseObject = {\n /**\n * The ID of the signed response object\n */\n id?: string;\n /**\n * The URL to post the file to\n */\n post_url?: string;\n /**\n * Form fields to include in the upload request\n */\n fields?: {\n [key: string]: unknown;\n };\n};\n\n/**\n * The ID of the Storyblok space (can be integer or string)\n */\nexport type SpaceId = number | string;\n\n/**\n * Page number for pagination. Default is 1.\n */\nexport type Page = number;\n\n/**\n * The ID of the asset (can be integer or string)\n */\nexport type AssetId = number | string;\n\nexport type ListData = {\n body?: never;\n path: {\n /**\n * The ID of the Storyblok space (can be integer or string)\n */\n space_id: number | string;\n };\n query?: {\n /**\n * Page number for pagination. Default is 1.\n */\n page?: number;\n /**\n * Number of assets per page. Default is 25, maximum is 100.\n */\n per_page?: number;\n /**\n * Provide the numeric id of a folder to filter the assets by a specific folder. Use value -1 to retrieve deleted assets.\n */\n in_folder?: number;\n /**\n * Sort assets by specific attribute and order\n */\n sort_by?: 'created_at:asc' | 'created_at:desc' | 'updated_at:asc' | 'updated_at:desc' | 'short_filename:asc' | 'short_filename:desc';\n /**\n * If \"1\" it only displays private assets\n */\n is_private?: boolean;\n /**\n * Provide a search term to filter a specific file by the filename\n */\n search?: string;\n /**\n * Filter by the alt text of an asset\n */\n by_alt?: string;\n /**\n * Filter by the copyright of an asset\n */\n by_copyright?: string;\n /**\n * Filter by the title of an asset\n */\n by_title?: string;\n /**\n * Filter by specific tag(s). Multiple tags can be provided as a comma-separated string (treated like an OR operator).\n */\n with_tags?: string;\n };\n url: '/v1/spaces/{space_id}/assets';\n};\n\nexport type ListErrors = {\n /**\n * Bad request\n */\n 400: unknown;\n /**\n * Unauthorized\n */\n 401: unknown;\n /**\n * Space not found\n */\n 404: unknown;\n};\n\nexport type ListResponses = {\n /**\n * List of assets\n */\n 200: {\n assets?: Array<Asset>;\n };\n};\n\nexport type ListResponse = ListResponses[keyof ListResponses];\n\nexport type UploadData = {\n body: {\n /**\n * The filename of the asset to upload\n */\n filename: string;\n /**\n * The size of the asset (e.g., \"400X500\")\n */\n size: string;\n /**\n * Optional asset folder ID to place the asset in\n */\n asset_folder_id?: number;\n /**\n * Must be set to 1 to validate the upload\n */\n validate_upload: 1;\n };\n path: {\n /**\n * The ID of the Storyblok space (can be integer or string)\n */\n space_id: number | string;\n };\n query?: never;\n url: '/v1/spaces/{space_id}/assets';\n};\n\nexport type UploadErrors = {\n /**\n * Bad request\n */\n 400: unknown;\n /**\n * Unauthorized\n */\n 401: unknown;\n /**\n * Space not found\n */\n 404: unknown;\n};\n\nexport type UploadResponses = {\n /**\n * Signed response object for upload\n */\n 200: SignedResponseObject;\n};\n\nexport type UploadResponse = UploadResponses[keyof UploadResponses];\n\nexport type DeleteData = {\n body?: never;\n path: {\n /**\n * The ID of the Storyblok space (can be integer or string)\n */\n space_id: number | string;\n /**\n * The ID of the asset (can be integer or string)\n */\n asset_id: number | string;\n };\n query?: never;\n url: '/v1/spaces/{space_id}/assets/{asset_id}';\n};\n\nexport type DeleteErrors = {\n /**\n * Bad request\n */\n 400: unknown;\n /**\n * Unauthorized\n */\n 401: unknown;\n /**\n * Asset not found\n */\n 404: unknown;\n};\n\nexport type DeleteResponses = {\n /**\n * Asset deleted\n */\n 200: {\n asset?: Asset;\n };\n};\n\nexport type DeleteResponse = DeleteResponses[keyof DeleteResponses];\n\nexport type GetData = {\n body?: never;\n path: {\n /**\n * The ID of the Storyblok space (can be integer or string)\n */\n space_id: number | string;\n /**\n * The ID of the asset (can be integer or string)\n */\n asset_id: number | string;\n };\n query?: never;\n url: '/v1/spaces/{space_id}/assets/{asset_id}';\n};\n\nexport type GetErrors = {\n /**\n * Bad request\n */\n 400: unknown;\n /**\n * Unauthorized\n */\n 401: unknown;\n /**\n * Asset not found\n */\n 404: unknown;\n};\n\nexport type GetResponses = {\n /**\n * Asset details\n */\n 200: {\n asset?: Asset;\n };\n};\n\nexport type GetResponse = GetResponses[keyof GetResponses];\n\nexport type UpdateData = {\n body: {\n /**\n * A single asset object with updatable properties\n */\n asset?: {\n /**\n * Id of the folder containing this asset\n */\n asset_folder_id?: number;\n /**\n * Alt text for the asset (default language)\n */\n alt?: string;\n /**\n * Copyright text for the asset (default language)\n */\n copyright?: string;\n /**\n * Title of the asset (default language)\n */\n title?: string;\n /**\n * Source text for the asset (default language)\n */\n source?: string;\n /**\n * Date when the asset should expire (Format yyyy-MM-dd'T'HH:mm:ssZ)\n */\n expire_at?: string;\n /**\n * The focus point of the image (Only for image assets)\n */\n focus?: string;\n /**\n * List of ids of the tags assigned to the asset\n */\n internal_tag_ids?: Array<string>;\n /**\n * Date when the asset should be made public (Format yyyy-MM-dd'T'HH:mm:ssZ)\n */\n publish_at?: string;\n /**\n * Defines if the asset should be inaccessable to the public\n */\n is_private?: boolean;\n /**\n * Includes custom metadata fields for an asset along with the default ones. It also contains the translations of the same if added in the format metafield__i18n__langcode. This field should be used for updating the metadata including the default ones (alt, title, source, copyright)\n */\n meta_data?: {\n [key: string]: unknown;\n };\n };\n };\n path: {\n /**\n * The ID of the Storyblok space (can be integer or string)\n */\n space_id: number | string;\n /**\n * The ID of the asset (can be integer or string)\n */\n asset_id: number | string;\n };\n query?: never;\n url: '/v1/spaces/{space_id}/assets/{asset_id}';\n};\n\nexport type UpdateErrors = {\n /**\n * Bad request\n */\n 400: unknown;\n /**\n * Unauthorized\n */\n 401: unknown;\n /**\n * Asset not found\n */\n 404: unknown;\n};\n\nexport type UpdateResponses = {\n /**\n * Asset updated\n */\n 200: {\n asset?: Asset;\n };\n};\n\nexport type UpdateResponse = UpdateResponses[keyof UpdateResponses];\n\nexport type FinalizeData = {\n body?: never;\n path: {\n /**\n * The ID of the Storyblok space (can be integer or string)\n */\n space_id: number | string;\n /**\n * The ID from the signed response object\n */\n signed_response_object_id: string;\n };\n query?: never;\n url: '/v1/spaces/{space_id}/assets/{signed_response_object_id}/finish_upload';\n};\n\nexport type FinalizeErrors = {\n /**\n * Bad request\n */\n 400: unknown;\n /**\n * Unauthorized\n */\n 401: unknown;\n /**\n * Asset not found\n */\n 404: unknown;\n};\n\nexport type FinalizeResponses = {\n /**\n * Upload finalized successfully\n */\n 200: {\n /**\n * Success message indicating the upload was finalized\n */\n message?: string;\n };\n};\n\nexport type FinalizeResponse = FinalizeResponses[keyof FinalizeResponses];\n\nexport type DeleteManyData = {\n body: {\n /**\n * Array of numeric asset IDs\n */\n ids: Array<number>;\n };\n path: {\n /**\n * The ID of the Storyblok space (can be integer or string)\n */\n space_id: number | string;\n };\n query?: never;\n url: '/v1/spaces/{space_id}/assets/bulk_destroy';\n};\n\nexport type DeleteManyErrors = {\n /**\n * Bad request\n */\n 400: unknown;\n /**\n * Unauthorized\n */\n 401: unknown;\n /**\n * Space not found\n */\n 404: unknown;\n};\n\nexport type DeleteManyResponses = {\n /**\n * Assets deleted successfully\n */\n 200: {\n /**\n * Success message indicating which assets were deleted\n */\n message?: string;\n };\n};\n\nexport type DeleteManyResponse = DeleteManyResponses[keyof DeleteManyResponses];\n\nexport type BulkMoveData = {\n body: {\n /**\n * Array of numeric asset IDs\n */\n ids: Array<number>;\n /**\n * Id of the folder containing this asset\n */\n asset_folder_id: number;\n };\n path: {\n /**\n * The ID of the Storyblok space (can be integer or string)\n */\n space_id: number | string;\n };\n query?: never;\n url: '/v1/spaces/{space_id}/assets/bulk_update';\n};\n\nexport type BulkMoveErrors = {\n /**\n * Bad request\n */\n 400: unknown;\n /**\n * Unauthorized\n */\n 401: unknown;\n /**\n * Space not found\n */\n 404: unknown;\n};\n\nexport type BulkMoveResponses = {\n /**\n * Assets moved successfully\n */\n 200: {\n /**\n * Success message indicating which assets were moved\n */\n message?: string;\n };\n};\n\nexport type BulkMoveResponse = BulkMoveResponses[keyof BulkMoveResponses];\n\nexport type BulkRestoreData = {\n body: {\n /**\n * Array of numeric asset IDs\n */\n ids: Array<number>;\n };\n path: {\n /**\n * The ID of the Storyblok space (can be integer or string)\n */\n space_id: number | string;\n };\n query?: never;\n url: '/v1/spaces/{space_id}/assets/bulk_restore';\n};\n\nexport type BulkRestoreErrors = {\n /**\n * Bad request\n */\n 400: unknown;\n /**\n * Unauthorized\n */\n 401: unknown;\n /**\n * Space not found\n */\n 404: unknown;\n};\n\nexport type BulkRestoreResponses = {\n /**\n * Assets restored successfully\n */\n 200: {\n /**\n * Success message indicating which assets were restored\n */\n message?: string;\n };\n};\n\nexport type BulkRestoreResponse = BulkRestoreResponses[keyof BulkRestoreResponses];\n\nexport type ClientOptions = {\n baseUrl: 'https://mapi.storyblok.com' | 'https://api-us.storyblok.com' | 'https://api-ca.storyblok.com' | 'https://api-ap.storyblok.com' | 'https://app.storyblok.cn' | (string & {});\n};"],"mappings":""}
1
+ {"version":3,"file":"types.gen.mjs","names":[],"sources":["../../../src/generated/assets/types.gen.ts"],"sourcesContent":["// This file is auto-generated by @hey-api/openapi-ts\n\n/**\n * A single asset object\n */\nexport type Asset = {\n /**\n * The numeric ID\n */\n id?: number;\n /**\n * Full path of the asset, including the file name\n */\n filename?: string;\n /**\n * Space ID in which the asset is connected\n */\n space_id?: number;\n /**\n * Creation date (Format yyyy-MM-dd'T'HH:mm:ssZ)\n */\n created_at?: string;\n /**\n * Latest update date (Format yyyy-MM-dd'T'HH:mm:ssZ)\n */\n updated_at?: string;\n /**\n * Represents a File object when uploading an asset. Returns null when retrieving asset details.\n */\n file?: {\n [key: string]: unknown;\n };\n /**\n * Id of the folder containing this asset\n */\n asset_folder_id?: number;\n /**\n * Deleted date (Format YYYY-mm-dd HH:MM)\n */\n deleted_at?: string;\n /**\n * The file name of the asset\n */\n short_filename?: string;\n /**\n * The MIME type of the asset\n */\n content_type?: string;\n /**\n * The content length in bytes\n */\n content_length?: number;\n /**\n * Alt text for the asset (default language)\n */\n alt?: string;\n /**\n * Copyright text for the asset (default language)\n */\n copyright?: string;\n /**\n * Title of the asset (default language)\n */\n title?: string;\n /**\n * Source text for the asset (default language)\n */\n source?: string;\n /**\n * Date when the asset should expire (Format yyyy-MM-dd'T'HH:mm:ssZ)\n */\n expire_at?: string;\n /**\n * The focus point of the image (Only for image assets)\n */\n focus?: string;\n /**\n * List of ids of the tags assigned to the asset\n */\n internal_tag_ids?: Array<string>;\n /**\n * List of objects containing the details of tags used for the asset\n */\n internal_tags_list?: Array<{\n /**\n * Id of the tag\n */\n id?: number;\n /**\n * Name of the tag\n */\n name?: string;\n }>;\n /**\n * Defines if the asset is locked for any changes\n */\n locked?: boolean;\n /**\n * Date when the asset should be made public (Format yyyy-MM-dd'T'HH:mm:ssZ)\n */\n publish_at?: string;\n /**\n * Defines if the asset should be inaccessable to the public\n */\n is_private?: boolean;\n /**\n * Includes custom metadata fields for an asset along with the default ones. It also contains the translations of the same if added in the format metafield__i18n__langcode. This field should be used for updating the metadata including the default ones (alt, title, source, copyright)\n */\n meta_data?: {\n [key: string]: unknown;\n };\n};\n\n/**\n * Signed response object returned from the upload request\n */\nexport type SignedResponseObject = {\n /**\n * The ID of the signed response object\n */\n id?: string;\n /**\n * The URL to post the file to\n */\n post_url?: string;\n /**\n * Form fields to include in the upload request\n */\n fields?: {\n [key: string]: unknown;\n };\n};\n\n/**\n * The ID of the Storyblok space (can be integer or string)\n */\nexport type SpaceId = number | string;\n\n/**\n * Page number for pagination. Default is 1.\n */\nexport type Page = number;\n\n/**\n * Number of items per page. Default is 25.\n */\nexport type PerPage = number;\n\n/**\n * The ID of the asset (can be integer or string)\n */\nexport type AssetId = number | string;\n\nexport type ListData = {\n body?: never;\n path: {\n /**\n * The ID of the Storyblok space (can be integer or string)\n */\n space_id: number | string;\n };\n query?: {\n /**\n * Page number for pagination. Default is 1.\n */\n page?: number;\n /**\n * Number of items per page. Default is 25.\n */\n per_page?: number;\n /**\n * Provide the numeric id of a folder to filter the assets by a specific folder. Use value -1 to retrieve deleted assets.\n */\n in_folder?: number;\n /**\n * Sort assets by specific attribute and order\n */\n sort_by?: 'created_at:asc' | 'created_at:desc' | 'updated_at:asc' | 'updated_at:desc' | 'short_filename:asc' | 'short_filename:desc';\n /**\n * If \"1\" it only displays private assets\n */\n is_private?: boolean;\n /**\n * Provide a search term to filter a specific file by the filename\n */\n search?: string;\n /**\n * Filter by the alt text of an asset\n */\n by_alt?: string;\n /**\n * Filter by the copyright of an asset\n */\n by_copyright?: string;\n /**\n * Filter by the title of an asset\n */\n by_title?: string;\n /**\n * Filter by specific tag(s). Multiple tags can be provided as a comma-separated string (treated like an OR operator).\n */\n with_tags?: string;\n };\n url: '/v1/spaces/{space_id}/assets';\n};\n\nexport type ListErrors = {\n /**\n * Bad request\n */\n 400: unknown;\n /**\n * Unauthorized\n */\n 401: unknown;\n /**\n * Space not found\n */\n 404: unknown;\n};\n\nexport type ListResponses = {\n /**\n * List of assets\n */\n 200: {\n assets?: Array<Asset>;\n };\n};\n\nexport type ListResponse = ListResponses[keyof ListResponses];\n\nexport type UploadData = {\n body: {\n /**\n * The filename of the asset to upload\n */\n filename: string;\n /**\n * The size of the asset (e.g., \"400X500\")\n */\n size: string;\n /**\n * Optional asset folder ID to place the asset in\n */\n asset_folder_id?: number;\n /**\n * Must be set to 1 to validate the upload\n */\n validate_upload: 1;\n };\n path: {\n /**\n * The ID of the Storyblok space (can be integer or string)\n */\n space_id: number | string;\n };\n query?: never;\n url: '/v1/spaces/{space_id}/assets';\n};\n\nexport type UploadErrors = {\n /**\n * Bad request\n */\n 400: unknown;\n /**\n * Unauthorized\n */\n 401: unknown;\n /**\n * Space not found\n */\n 404: unknown;\n};\n\nexport type UploadResponses = {\n /**\n * Signed response object for upload\n */\n 200: SignedResponseObject;\n};\n\nexport type UploadResponse = UploadResponses[keyof UploadResponses];\n\nexport type DeleteData = {\n body?: never;\n path: {\n /**\n * The ID of the Storyblok space (can be integer or string)\n */\n space_id: number | string;\n /**\n * The ID of the asset (can be integer or string)\n */\n asset_id: number | string;\n };\n query?: never;\n url: '/v1/spaces/{space_id}/assets/{asset_id}';\n};\n\nexport type DeleteErrors = {\n /**\n * Bad request\n */\n 400: unknown;\n /**\n * Unauthorized\n */\n 401: unknown;\n /**\n * Asset not found\n */\n 404: unknown;\n};\n\nexport type DeleteResponses = {\n /**\n * Asset deleted\n */\n 200: {\n asset?: Asset;\n };\n};\n\nexport type DeleteResponse = DeleteResponses[keyof DeleteResponses];\n\nexport type GetData = {\n body?: never;\n path: {\n /**\n * The ID of the Storyblok space (can be integer or string)\n */\n space_id: number | string;\n /**\n * The ID of the asset (can be integer or string)\n */\n asset_id: number | string;\n };\n query?: never;\n url: '/v1/spaces/{space_id}/assets/{asset_id}';\n};\n\nexport type GetErrors = {\n /**\n * Bad request\n */\n 400: unknown;\n /**\n * Unauthorized\n */\n 401: unknown;\n /**\n * Asset not found\n */\n 404: unknown;\n};\n\nexport type GetResponses = {\n /**\n * Asset details\n */\n 200: {\n asset?: Asset;\n };\n};\n\nexport type GetResponse = GetResponses[keyof GetResponses];\n\nexport type UpdateData = {\n body: {\n /**\n * A single asset object with updatable properties\n */\n asset?: {\n /**\n * Id of the folder containing this asset\n */\n asset_folder_id?: number;\n /**\n * Alt text for the asset (default language)\n */\n alt?: string;\n /**\n * Copyright text for the asset (default language)\n */\n copyright?: string;\n /**\n * Title of the asset (default language)\n */\n title?: string;\n /**\n * Source text for the asset (default language)\n */\n source?: string;\n /**\n * Date when the asset should expire (Format yyyy-MM-dd'T'HH:mm:ssZ)\n */\n expire_at?: string;\n /**\n * The focus point of the image (Only for image assets)\n */\n focus?: string;\n /**\n * List of ids of the tags assigned to the asset\n */\n internal_tag_ids?: Array<string>;\n /**\n * Date when the asset should be made public (Format yyyy-MM-dd'T'HH:mm:ssZ)\n */\n publish_at?: string;\n /**\n * Defines if the asset should be inaccessable to the public\n */\n is_private?: boolean;\n /**\n * Includes custom metadata fields for an asset along with the default ones. It also contains the translations of the same if added in the format metafield__i18n__langcode. This field should be used for updating the metadata including the default ones (alt, title, source, copyright)\n */\n meta_data?: {\n [key: string]: unknown;\n };\n };\n };\n path: {\n /**\n * The ID of the Storyblok space (can be integer or string)\n */\n space_id: number | string;\n /**\n * The ID of the asset (can be integer or string)\n */\n asset_id: number | string;\n };\n query?: never;\n url: '/v1/spaces/{space_id}/assets/{asset_id}';\n};\n\nexport type UpdateErrors = {\n /**\n * Bad request\n */\n 400: unknown;\n /**\n * Unauthorized\n */\n 401: unknown;\n /**\n * Asset not found\n */\n 404: unknown;\n};\n\nexport type UpdateResponses = {\n /**\n * Asset updated\n */\n 200: {\n asset?: Asset;\n };\n};\n\nexport type UpdateResponse = UpdateResponses[keyof UpdateResponses];\n\nexport type FinalizeData = {\n body?: never;\n path: {\n /**\n * The ID of the Storyblok space (can be integer or string)\n */\n space_id: number | string;\n /**\n * The ID from the signed response object\n */\n signed_response_object_id: string;\n };\n query?: never;\n url: '/v1/spaces/{space_id}/assets/{signed_response_object_id}/finish_upload';\n};\n\nexport type FinalizeErrors = {\n /**\n * Bad request\n */\n 400: unknown;\n /**\n * Unauthorized\n */\n 401: unknown;\n /**\n * Asset not found\n */\n 404: unknown;\n};\n\nexport type FinalizeResponses = {\n /**\n * Upload finalized successfully\n */\n 200: {\n /**\n * Success message indicating the upload was finalized\n */\n message?: string;\n };\n};\n\nexport type FinalizeResponse = FinalizeResponses[keyof FinalizeResponses];\n\nexport type DeleteManyData = {\n body: {\n /**\n * Array of numeric asset IDs\n */\n ids: Array<number>;\n };\n path: {\n /**\n * The ID of the Storyblok space (can be integer or string)\n */\n space_id: number | string;\n };\n query?: never;\n url: '/v1/spaces/{space_id}/assets/bulk_destroy';\n};\n\nexport type DeleteManyErrors = {\n /**\n * Bad request\n */\n 400: unknown;\n /**\n * Unauthorized\n */\n 401: unknown;\n /**\n * Space not found\n */\n 404: unknown;\n};\n\nexport type DeleteManyResponses = {\n /**\n * Assets deleted successfully\n */\n 200: {\n /**\n * Success message indicating which assets were deleted\n */\n message?: string;\n };\n};\n\nexport type DeleteManyResponse = DeleteManyResponses[keyof DeleteManyResponses];\n\nexport type BulkMoveData = {\n body: {\n /**\n * Array of numeric asset IDs\n */\n ids: Array<number>;\n /**\n * Id of the folder containing this asset\n */\n asset_folder_id: number;\n };\n path: {\n /**\n * The ID of the Storyblok space (can be integer or string)\n */\n space_id: number | string;\n };\n query?: never;\n url: '/v1/spaces/{space_id}/assets/bulk_update';\n};\n\nexport type BulkMoveErrors = {\n /**\n * Bad request\n */\n 400: unknown;\n /**\n * Unauthorized\n */\n 401: unknown;\n /**\n * Space not found\n */\n 404: unknown;\n};\n\nexport type BulkMoveResponses = {\n /**\n * Assets moved successfully\n */\n 200: {\n /**\n * Success message indicating which assets were moved\n */\n message?: string;\n };\n};\n\nexport type BulkMoveResponse = BulkMoveResponses[keyof BulkMoveResponses];\n\nexport type BulkRestoreData = {\n body: {\n /**\n * Array of numeric asset IDs\n */\n ids: Array<number>;\n };\n path: {\n /**\n * The ID of the Storyblok space (can be integer or string)\n */\n space_id: number | string;\n };\n query?: never;\n url: '/v1/spaces/{space_id}/assets/bulk_restore';\n};\n\nexport type BulkRestoreErrors = {\n /**\n * Bad request\n */\n 400: unknown;\n /**\n * Unauthorized\n */\n 401: unknown;\n /**\n * Space not found\n */\n 404: unknown;\n};\n\nexport type BulkRestoreResponses = {\n /**\n * Assets restored successfully\n */\n 200: {\n /**\n * Success message indicating which assets were restored\n */\n message?: string;\n };\n};\n\nexport type BulkRestoreResponse = BulkRestoreResponses[keyof BulkRestoreResponses];\n\nexport type ClientOptions = {\n baseUrl: 'https://mapi.storyblok.com' | 'https://api-us.storyblok.com' | 'https://api-ca.storyblok.com' | 'https://api-ap.storyblok.com' | 'https://app.storyblok.cn' | (string & {});\n};"],"mappings":""}
@@ -1,5 +1,5 @@
1
1
  declare namespace types_gen_d_exports {
2
- export { BulkMoveData, BulkMoveErrors, BulkMoveResponse, BulkMoveResponses, ClientOptions, Component, Component2, ComponentId, ComponentSchemaField, ComponentVersion, CreateData, CreateErrors, CreateResponse, CreateResponses, DeleteComponentData, DeleteComponentErrors, DeleteComponentResponse, DeleteComponentResponses, GetData, GetErrors, GetResponse, GetResponses, ListData, ListErrors, ListResponse, ListResponses, Page, RenameAttributeData, RenameAttributeErrors, RenameAttributeResponse, RenameAttributeResponses, RestoreData, RestoreErrors, RestoreResponse, RestoreResponses, RestoreVersionData, RestoreVersionErrors, RestoreVersionResponse, RestoreVersionResponses, SpaceId, UpdateData, UpdateErrors, UpdateResponse, UpdateResponses, VersionData, VersionErrors, VersionResponse, VersionResponses, VersionsData, VersionsErrors, VersionsResponse, VersionsResponses };
2
+ export { BulkMoveData, BulkMoveErrors, BulkMoveResponse, BulkMoveResponses, ClientOptions, Component, Component2, ComponentId, ComponentSchemaField, ComponentVersion, CreateData, CreateErrors, CreateResponse, CreateResponses, DeleteComponentData, DeleteComponentErrors, DeleteComponentResponse, DeleteComponentResponses, GetData, GetErrors, GetResponse, GetResponses, ListData, ListErrors, ListResponse, ListResponses, Page, PerPage, RenameAttributeData, RenameAttributeErrors, RenameAttributeResponse, RenameAttributeResponses, RestoreData, RestoreErrors, RestoreResponse, RestoreResponses, RestoreVersionData, RestoreVersionErrors, RestoreVersionResponse, RestoreVersionResponses, SpaceId, UpdateData, UpdateErrors, UpdateResponse, UpdateResponses, VersionData, VersionErrors, VersionResponse, VersionResponses, VersionsData, VersionsErrors, VersionsResponse, VersionsResponses };
3
3
  }
4
4
  type Component = Component2;
5
5
  /**
@@ -353,6 +353,10 @@ type SpaceId = number | string;
353
353
  * Page number for pagination. Default is 1.
354
354
  */
355
355
  type Page = number;
356
+ /**
357
+ * Number of items per page. Default is 25.
358
+ */
359
+ type PerPage = number;
356
360
  /**
357
361
  * The ID of the component (can be integer or string)
358
362
  */
@@ -371,7 +375,7 @@ type ListData = {
371
375
  */
372
376
  page?: number;
373
377
  /**
374
- * Number of components per page. Default is 25, maximum is 100.
378
+ * Number of items per page. Default is 25.
375
379
  */
376
380
  per_page?: number;
377
381
  /**
@@ -737,7 +741,7 @@ type VersionsData = {
737
741
  */
738
742
  page?: number;
739
743
  /**
740
- * Number of versions per page
744
+ * Number of items per page. Default is 25.
741
745
  */
742
746
  per_page?: number;
743
747
  /**
@@ -877,5 +881,5 @@ type ClientOptions = {
877
881
  baseUrl: 'https://mapi.storyblok.com' | 'https://api-us.storyblok.com' | 'https://api-ca.storyblok.com' | 'https://api-ap.storyblok.com' | 'https://app.storyblok.cn' | (string & {});
878
882
  };
879
883
  //#endregion
880
- export { BulkMoveData, BulkMoveErrors, BulkMoveResponse, BulkMoveResponses, ClientOptions, Component, Component2, ComponentId, ComponentSchemaField, ComponentVersion, CreateData, CreateErrors, CreateResponse, CreateResponses, DeleteComponentData, DeleteComponentErrors, DeleteComponentResponse, DeleteComponentResponses, GetData, GetErrors, GetResponse, GetResponses, ListData, ListErrors, ListResponse, ListResponses, Page, RenameAttributeData, RenameAttributeErrors, RenameAttributeResponse, RenameAttributeResponses, RestoreData, RestoreErrors, RestoreResponse, RestoreResponses, RestoreVersionData, RestoreVersionErrors, RestoreVersionResponse, RestoreVersionResponses, SpaceId, UpdateData, UpdateErrors, UpdateResponse, UpdateResponses, VersionData, VersionErrors, VersionResponse, VersionResponses, VersionsData, VersionsErrors, VersionsResponse, VersionsResponses, types_gen_d_exports };
884
+ export { BulkMoveData, BulkMoveErrors, BulkMoveResponse, BulkMoveResponses, ClientOptions, Component, Component2, ComponentId, ComponentSchemaField, ComponentVersion, CreateData, CreateErrors, CreateResponse, CreateResponses, DeleteComponentData, DeleteComponentErrors, DeleteComponentResponse, DeleteComponentResponses, GetData, GetErrors, GetResponse, GetResponses, ListData, ListErrors, ListResponse, ListResponses, Page, PerPage, RenameAttributeData, RenameAttributeErrors, RenameAttributeResponse, RenameAttributeResponses, RestoreData, RestoreErrors, RestoreResponse, RestoreResponses, RestoreVersionData, RestoreVersionErrors, RestoreVersionResponse, RestoreVersionResponses, SpaceId, UpdateData, UpdateErrors, UpdateResponse, UpdateResponses, VersionData, VersionErrors, VersionResponse, VersionResponses, VersionsData, VersionsErrors, VersionsResponse, VersionsResponses, types_gen_d_exports };
881
885
  //# sourceMappingURL=types.gen.d.mts.map
@@ -1,5 +1,5 @@
1
1
  declare namespace types_gen_d_exports {
2
- export { BulkMoveData, BulkMoveErrors, BulkMoveResponse, BulkMoveResponses, ClientOptions, Component, Component2, ComponentId, ComponentSchemaField, ComponentVersion, CreateData, CreateErrors, CreateResponse, CreateResponses, DeleteComponentData, DeleteComponentErrors, DeleteComponentResponse, DeleteComponentResponses, GetData, GetErrors, GetResponse, GetResponses, ListData, ListErrors, ListResponse, ListResponses, Page, RenameAttributeData, RenameAttributeErrors, RenameAttributeResponse, RenameAttributeResponses, RestoreData, RestoreErrors, RestoreResponse, RestoreResponses, RestoreVersionData, RestoreVersionErrors, RestoreVersionResponse, RestoreVersionResponses, SpaceId, UpdateData, UpdateErrors, UpdateResponse, UpdateResponses, VersionData, VersionErrors, VersionResponse, VersionResponses, VersionsData, VersionsErrors, VersionsResponse, VersionsResponses };
2
+ export { BulkMoveData, BulkMoveErrors, BulkMoveResponse, BulkMoveResponses, ClientOptions, Component, Component2, ComponentId, ComponentSchemaField, ComponentVersion, CreateData, CreateErrors, CreateResponse, CreateResponses, DeleteComponentData, DeleteComponentErrors, DeleteComponentResponse, DeleteComponentResponses, GetData, GetErrors, GetResponse, GetResponses, ListData, ListErrors, ListResponse, ListResponses, Page, PerPage, RenameAttributeData, RenameAttributeErrors, RenameAttributeResponse, RenameAttributeResponses, RestoreData, RestoreErrors, RestoreResponse, RestoreResponses, RestoreVersionData, RestoreVersionErrors, RestoreVersionResponse, RestoreVersionResponses, SpaceId, UpdateData, UpdateErrors, UpdateResponse, UpdateResponses, VersionData, VersionErrors, VersionResponse, VersionResponses, VersionsData, VersionsErrors, VersionsResponse, VersionsResponses };
3
3
  }
4
4
  type Component = Component2;
5
5
  /**
@@ -353,6 +353,10 @@ type SpaceId = number | string;
353
353
  * Page number for pagination. Default is 1.
354
354
  */
355
355
  type Page = number;
356
+ /**
357
+ * Number of items per page. Default is 25.
358
+ */
359
+ type PerPage = number;
356
360
  /**
357
361
  * The ID of the component (can be integer or string)
358
362
  */
@@ -371,7 +375,7 @@ type ListData = {
371
375
  */
372
376
  page?: number;
373
377
  /**
374
- * Number of components per page. Default is 25, maximum is 100.
378
+ * Number of items per page. Default is 25.
375
379
  */
376
380
  per_page?: number;
377
381
  /**
@@ -737,7 +741,7 @@ type VersionsData = {
737
741
  */
738
742
  page?: number;
739
743
  /**
740
- * Number of versions per page
744
+ * Number of items per page. Default is 25.
741
745
  */
742
746
  per_page?: number;
743
747
  /**
@@ -877,5 +881,5 @@ type ClientOptions = {
877
881
  baseUrl: 'https://mapi.storyblok.com' | 'https://api-us.storyblok.com' | 'https://api-ca.storyblok.com' | 'https://api-ap.storyblok.com' | 'https://app.storyblok.cn' | (string & {});
878
882
  };
879
883
  //#endregion
880
- export { BulkMoveData, BulkMoveErrors, BulkMoveResponse, BulkMoveResponses, ClientOptions, Component, Component2, ComponentId, ComponentSchemaField, ComponentVersion, CreateData, CreateErrors, CreateResponse, CreateResponses, DeleteComponentData, DeleteComponentErrors, DeleteComponentResponse, DeleteComponentResponses, GetData, GetErrors, GetResponse, GetResponses, ListData, ListErrors, ListResponse, ListResponses, Page, RenameAttributeData, RenameAttributeErrors, RenameAttributeResponse, RenameAttributeResponses, RestoreData, RestoreErrors, RestoreResponse, RestoreResponses, RestoreVersionData, RestoreVersionErrors, RestoreVersionResponse, RestoreVersionResponses, SpaceId, UpdateData, UpdateErrors, UpdateResponse, UpdateResponses, VersionData, VersionErrors, VersionResponse, VersionResponses, VersionsData, VersionsErrors, VersionsResponse, VersionsResponses, types_gen_d_exports };
884
+ export { BulkMoveData, BulkMoveErrors, BulkMoveResponse, BulkMoveResponses, ClientOptions, Component, Component2, ComponentId, ComponentSchemaField, ComponentVersion, CreateData, CreateErrors, CreateResponse, CreateResponses, DeleteComponentData, DeleteComponentErrors, DeleteComponentResponse, DeleteComponentResponses, GetData, GetErrors, GetResponse, GetResponses, ListData, ListErrors, ListResponse, ListResponses, Page, PerPage, RenameAttributeData, RenameAttributeErrors, RenameAttributeResponse, RenameAttributeResponses, RestoreData, RestoreErrors, RestoreResponse, RestoreResponses, RestoreVersionData, RestoreVersionErrors, RestoreVersionResponse, RestoreVersionResponses, SpaceId, UpdateData, UpdateErrors, UpdateResponse, UpdateResponses, VersionData, VersionErrors, VersionResponse, VersionResponses, VersionsData, VersionsErrors, VersionsResponse, VersionsResponses, types_gen_d_exports };
881
885
  //# sourceMappingURL=types.gen.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.gen.js","names":[],"sources":["../../../src/generated/components/types.gen.ts"],"sourcesContent":["// This file is auto-generated by @hey-api/openapi-ts\n\nexport type Component = Component2;\n\n/**\n * A component version object\n */\nexport type ComponentVersion = {\n schema?: unknown;\n};\n\n/**\n * A component schema field object\n */\nexport type ComponentSchemaField = {\n /**\n * Field type (text, textarea, number, boolean, etc.)\n */\n type?: string;\n /**\n * Position of the field\n */\n pos?: number;\n /**\n * Human-readable display name\n */\n display_name?: string;\n /**\n * Whether the field is required\n */\n required?: boolean;\n /**\n * Regular expression for validation\n */\n regex?: string;\n /**\n * Whether the field is translatable\n */\n translatable?: boolean;\n /**\n * Field description\n */\n description?: string;\n /**\n * Default value for the field\n */\n default_value?: string;\n /**\n * Array of datasource entries [{name:\"\", value:\"\"}]; Effects editor only if source=undefined. For field type option.\n */\n options?: Array<{\n _uid?: string;\n name?: string;\n value?: string;\n }>;\n source?: 'option' | 'options' | 'custom';\n /**\n * Folder slug for asset fields\n */\n folder_slug?: string;\n /**\n * Allowed file types for asset fields\n */\n filetypes?: Array<string>;\n /**\n * Maximum value for number fields\n */\n maximum?: number;\n /**\n * Minimum value for number fields\n */\n minimum?: number;\n /**\n * Maximum length for text fields\n */\n maxlength?: number;\n /**\n * Minimum length for text fields\n */\n minlength?: number;\n /**\n * Whether rich markdown is enabled\n */\n rich_markdown?: boolean;\n /**\n * Whether rich text is enabled\n */\n rich_text?: boolean;\n /**\n * Whether markdown is enabled\n */\n markdown?: boolean;\n /**\n * Field size (small, medium, large)\n */\n size?: string;\n /**\n * Field height in pixels\n */\n height?: number;\n /**\n * Field width in pixels\n */\n width?: number;\n /**\n * Whether to use UUID for the field\n */\n use_uuid?: boolean;\n /**\n * Whether to restrict content types\n */\n restrict_content_types?: boolean;\n /**\n * Whether to restrict components\n */\n restrict_components?: boolean;\n /**\n * List of allowed components\n */\n component_whitelist?: Array<string>;\n /**\n * List of allowed component groups\n */\n component_group_whitelist?: Array<string>;\n /**\n * Maximum number of entries\n */\n maximum_entries?: number;\n /**\n * Minimum number of entries\n */\n minimum_entries?: number;\n /**\n * Whether to restrict assets\n */\n restrict_assets?: boolean;\n /**\n * List of allowed asset types\n */\n asset_whitelist?: Array<string>;\n /**\n * Whether to exclude empty option\n */\n exclude_empty_option?: boolean;\n /**\n * Whether to include empty option\n */\n include_empty_option?: boolean;\n /**\n * Datasource slug for datasource fields\n */\n datasource_slug?: string;\n /**\n * Whether multiple values are allowed\n */\n multiple?: boolean;\n /**\n * Custom CSS for the field\n */\n custom_css?: string;\n /**\n * Custom JavaScript for the field\n */\n custom_js?: string;\n /**\n * API connection configuration\n */\n api_connection?: {\n /**\n * API URL\n */\n url?: string;\n /**\n * API headers\n */\n headers?: {\n [key: string]: unknown;\n };\n /**\n * API parameters\n */\n params?: {\n [key: string]: unknown;\n };\n };\n /**\n * Fieldset configuration\n */\n fieldset?: {\n /**\n * Fieldset title\n */\n title?: string;\n /**\n * Fieldset description\n */\n description?: string;\n /**\n * Whether the fieldset is collapsible\n */\n collapsible?: boolean;\n /**\n * Whether the fieldset is collapsed by default\n */\n collapsed?: boolean;\n };\n};\n\n/**\n * A Storyblok component object representing a content type\n */\nexport type Component2 = {\n /**\n * The numeric ID\n */\n readonly id: number;\n /**\n * Technical name used for component property in entries\n */\n name: string;\n /**\n * Name that will be used in the editor interface\n */\n display_name?: string;\n /**\n * Creation date\n */\n readonly created_at: string;\n /**\n * Latest update date\n */\n readonly updated_at: string;\n /**\n * Component schema definition containing fields and their configurations\n */\n schema: {\n /**\n * Unique identifier field configuration\n */\n _uid?: {\n [key: string]: unknown;\n };\n /**\n * Component type field configuration\n */\n component?: {\n [key: string]: unknown;\n };\n [key: string]: unknown | {\n [key: string]: unknown;\n } | {\n [key: string]: unknown;\n } | undefined;\n };\n /**\n * URL to the preview image\n */\n image?: string;\n /**\n * The field that is for preview in the interface (Preview Field)\n */\n preview_field?: string;\n /**\n * Whether the component can be used as a root component\n */\n is_root?: boolean;\n /**\n * Preview template for the component\n */\n preview_tmpl?: string;\n /**\n * True if the component is nestable (insertable) in block field types\n */\n is_nestable?: boolean;\n /**\n * An array of presets for this component\n */\n all_presets?: Array<{\n /**\n * The numeric ID of the preset\n */\n id?: number;\n /**\n * Name of the preset\n */\n name?: string;\n /**\n * The ID of the component the preset is for\n */\n component_id?: number;\n /**\n * Link to the preview image of the preset\n */\n image?: string;\n /**\n * Icon selected for the preset\n */\n icon?: string;\n /**\n * Color of the icon selected for the preset\n */\n color?: string;\n /**\n * The description of the preset\n */\n description?: string;\n }>;\n /**\n * ID of the preset currently selected for this component\n */\n preset_id?: number;\n /**\n * Duplicated technical name or display name, used for internal tasks\n */\n real_name?: string;\n /**\n * The component folder ID of the component\n */\n component_group_uuid?: string;\n /**\n * The color of the icon selected for the component\n */\n color?: string;\n /**\n * Icon selected for the component\n */\n icon?: string;\n /**\n * List of internal tags assigned to the component\n */\n internal_tags_list?: Array<{\n /**\n * Tag ID\n */\n id?: number;\n /**\n * Tag name\n */\n name?: string;\n }>;\n /**\n * List of IDs of the tags assigned to the component\n */\n internal_tag_ids?: Array<string>;\n /**\n * Asset preview field (Preview Card) for a content type component\n */\n content_type_asset_preview?: string;\n};\n\n/**\n * The ID of the Storyblok space (can be integer or string)\n */\nexport type SpaceId = number | string;\n\n/**\n * Page number for pagination. Default is 1.\n */\nexport type Page = number;\n\n/**\n * The ID of the component (can be integer or string)\n */\nexport type ComponentId = number | string;\n\nexport type ListData = {\n body?: never;\n path: {\n /**\n * The ID of the Storyblok space (can be integer or string)\n */\n space_id: number | string;\n };\n query?: {\n /**\n * Page number for pagination. Default is 1.\n */\n page?: number;\n /**\n * Number of components per page. Default is 25, maximum is 100.\n */\n per_page?: number;\n /**\n * Filter by ids (comma separated)\n */\n by_ids?: string;\n /**\n * Components can be sorted in an ascending or descending order by a specific property\n */\n sort_by?: string;\n /**\n * Retrieve all the components based on is_root property of a component\n */\n is_root?: boolean;\n /**\n * Search by name or display_name\n */\n search?: string;\n /**\n * Find components that are present in a specific group with the UUID of the group\n */\n in_group?: string;\n /**\n * Filter components by tags\n */\n with_tags?: string;\n /**\n * Filter components by metadata app slug\n */\n by_metadata_app_slug?: string;\n /**\n * Filter components by metadata frame ID\n */\n by_metadata_frame_id?: string;\n };\n url: '/v1/spaces/{space_id}/components';\n};\n\nexport type ListErrors = {\n /**\n * Bad request\n */\n 400: unknown;\n /**\n * Unauthorized\n */\n 401: unknown;\n /**\n * Space not found\n */\n 404: unknown;\n};\n\nexport type ListResponses = {\n /**\n * List of components\n */\n 200: {\n components?: Array<Component2>;\n };\n};\n\nexport type ListResponse = ListResponses[keyof ListResponses];\n\nexport type CreateData = {\n body: {\n component?: Component2;\n };\n path: {\n /**\n * The ID of the Storyblok space (can be integer or string)\n */\n space_id: number | string;\n };\n query?: never;\n url: '/v1/spaces/{space_id}/components';\n};\n\nexport type CreateErrors = {\n /**\n * Bad request\n */\n 400: unknown;\n /**\n * Unauthorized\n */\n 401: unknown;\n /**\n * Space not found\n */\n 404: unknown;\n};\n\nexport type CreateResponses = {\n /**\n * Component created\n */\n 201: {\n component?: Component2;\n };\n};\n\nexport type CreateResponse = CreateResponses[keyof CreateResponses];\n\nexport type DeleteComponentData = {\n body?: never;\n path: {\n /**\n * The ID of the Storyblok space (can be integer or string)\n */\n space_id: number | string;\n /**\n * The ID of the component (can be integer or string)\n */\n component_id: number | string;\n };\n query?: never;\n url: '/v1/spaces/{space_id}/components/{component_id}';\n};\n\nexport type DeleteComponentErrors = {\n /**\n * Bad request\n */\n 400: unknown;\n /**\n * Unauthorized\n */\n 401: unknown;\n /**\n * Component not found\n */\n 404: unknown;\n};\n\nexport type DeleteComponentResponses = {\n /**\n * Component deleted\n */\n 200: {\n component?: Component2;\n };\n};\n\nexport type DeleteComponentResponse = DeleteComponentResponses[keyof DeleteComponentResponses];\n\nexport type GetData = {\n body?: never;\n path: {\n /**\n * The ID of the Storyblok space (can be integer or string)\n */\n space_id: number | string;\n /**\n * The ID of the component (can be integer or string)\n */\n component_id: number | string;\n };\n query?: never;\n url: '/v1/spaces/{space_id}/components/{component_id}';\n};\n\nexport type GetErrors = {\n /**\n * Bad request\n */\n 400: unknown;\n /**\n * Unauthorized\n */\n 401: unknown;\n /**\n * Component not found\n */\n 404: unknown;\n};\n\nexport type GetResponses = {\n /**\n * Component details\n */\n 200: {\n component?: Component2;\n };\n};\n\nexport type GetResponse = GetResponses[keyof GetResponses];\n\nexport type UpdateData = {\n body: {\n component?: Component2;\n /**\n * Update component name in stories when component name changes\n */\n update_content?: boolean;\n };\n path: {\n /**\n * The ID of the Storyblok space (can be integer or string)\n */\n space_id: number | string;\n /**\n * The ID of the component (can be integer or string)\n */\n component_id: number | string;\n };\n query?: never;\n url: '/v1/spaces/{space_id}/components/{component_id}';\n};\n\nexport type UpdateErrors = {\n /**\n * Bad request\n */\n 400: unknown;\n /**\n * Unauthorized\n */\n 401: unknown;\n /**\n * Component not found\n */\n 404: unknown;\n};\n\nexport type UpdateResponses = {\n /**\n * Component updated\n */\n 200: {\n component?: Component2;\n };\n};\n\nexport type UpdateResponse = UpdateResponses[keyof UpdateResponses];\n\nexport type RenameAttributeData = {\n body?: never;\n path: {\n /**\n * The ID of the Storyblok space (can be integer or string)\n */\n space_id: number | string;\n /**\n * The ID of the component (can be integer or string)\n */\n component_id: number | string;\n };\n query: {\n /**\n * Current name of the attribute\n */\n old_name: string;\n /**\n * New name for the attribute\n */\n new_name: string;\n /**\n * Optional story ID to update the attribute in a specific story\n */\n story_id?: number;\n };\n url: '/v1/spaces/{space_id}/components/{component_id}/rename_attribute';\n};\n\nexport type RenameAttributeErrors = {\n /**\n * Bad request\n */\n 400: unknown;\n /**\n * Unauthorized\n */\n 401: unknown;\n /**\n * Component not found\n */\n 404: unknown;\n};\n\nexport type RenameAttributeResponses = {\n /**\n * Attribute renamed successfully\n */\n 204: void;\n};\n\nexport type RenameAttributeResponse = RenameAttributeResponses[keyof RenameAttributeResponses];\n\nexport type RestoreData = {\n body?: never;\n path: {\n /**\n * The ID of the Storyblok space (can be integer or string)\n */\n space_id: number | string;\n /**\n * The ID of the component (can be integer or string)\n */\n component_id: number | string;\n };\n query?: never;\n url: '/v1/spaces/{space_id}/components/{component_id}/restore';\n};\n\nexport type RestoreErrors = {\n /**\n * Bad request\n */\n 400: unknown;\n /**\n * Unauthorized\n */\n 401: unknown;\n /**\n * Component not found\n */\n 404: unknown;\n};\n\nexport type RestoreResponses = {\n /**\n * Component restored\n */\n 200: {\n component?: Component2;\n };\n};\n\nexport type RestoreResponse = RestoreResponses[keyof RestoreResponses];\n\nexport type BulkMoveData = {\n body: {\n /**\n * Array of component IDs to update\n */\n ids: Array<number>;\n component: {\n /**\n * ID of the component group to assign components to\n */\n component_group_id: number;\n };\n };\n path: {\n /**\n * The ID of the Storyblok space (can be integer or string)\n */\n space_id: number | string;\n };\n query?: never;\n url: '/v1/spaces/{space_id}/components/bulk_update';\n};\n\nexport type BulkMoveErrors = {\n /**\n * Bad request\n */\n 400: unknown;\n /**\n * Unauthorized\n */\n 401: unknown;\n /**\n * Component group not found\n */\n 404: unknown;\n};\n\nexport type BulkMoveResponses = {\n /**\n * Components updated successfully\n */\n 200: {\n /**\n * Success message\n */\n message?: string;\n };\n};\n\nexport type BulkMoveResponse = BulkMoveResponses[keyof BulkMoveResponses];\n\nexport type VersionsData = {\n body?: never;\n path: {\n /**\n * The ID of the Storyblok space (can be integer or string)\n */\n space_id: number | string;\n };\n query?: {\n /**\n * Page number\n */\n page?: number;\n /**\n * Number of versions per page\n */\n per_page?: number;\n /**\n * Model type. Must be 'components' for component versions.\n */\n model?: 'components' | 'stories';\n /**\n * Component ID when model is 'components'\n */\n model_id?: string;\n /**\n * Use version 2 system for retrieving versions\n */\n versions_v2?: boolean;\n };\n url: '/v1/spaces/{space_id}/versions';\n};\n\nexport type VersionsErrors = {\n /**\n * Bad request\n */\n 400: unknown;\n /**\n * Unauthorized\n */\n 401: unknown;\n /**\n * Component not found\n */\n 404: unknown;\n};\n\nexport type VersionsResponses = {\n /**\n * Component versions\n */\n 200: {\n versions?: Array<{\n id?: number;\n event?: string;\n created_at?: string;\n author_id?: number;\n item_id?: number;\n author?: string;\n is_draft?: boolean;\n }>;\n };\n};\n\nexport type VersionsResponse = VersionsResponses[keyof VersionsResponses];\n\nexport type VersionData = {\n body?: never;\n path: {\n /**\n * The ID of the Storyblok space (can be integer or string)\n */\n space_id: number | string;\n /**\n * The ID of the component (can be integer or string)\n */\n component_id: number | string;\n /**\n * Version ID of the component\n */\n version_id: number;\n };\n query?: never;\n url: '/v1/spaces/{space_id}/components/{component_id}/component_versions/{version_id}';\n};\n\nexport type VersionErrors = {\n /**\n * Bad request\n */\n 400: unknown;\n /**\n * Unauthorized\n */\n 401: unknown;\n /**\n * Component or version not found\n */\n 404: unknown;\n};\n\nexport type VersionResponses = {\n /**\n * Component version details\n */\n 200: {\n component_version?: {\n schema?: {\n [key: string]: unknown;\n };\n };\n };\n};\n\nexport type VersionResponse = VersionResponses[keyof VersionResponses];\n\nexport type RestoreVersionData = {\n body: {\n model?: string;\n model_id?: string;\n };\n path: {\n /**\n * The ID of the Storyblok space (can be integer or string)\n */\n space_id: number | string;\n /**\n * ID of the component version\n */\n version_id: number;\n };\n query?: never;\n url: '/v1/spaces/{space_id}/versions/{version_id}';\n};\n\nexport type RestoreVersionErrors = {\n /**\n * Bad request\n */\n 400: unknown;\n /**\n * Unauthorized\n */\n 401: unknown;\n /**\n * Component or version not found\n */\n 404: unknown;\n};\n\nexport type RestoreVersionResponses = {\n /**\n * Component version restored\n */\n 200: {\n component?: Component2;\n };\n};\n\nexport type RestoreVersionResponse = RestoreVersionResponses[keyof RestoreVersionResponses];\n\nexport type ClientOptions = {\n baseUrl: 'https://mapi.storyblok.com' | 'https://api-us.storyblok.com' | 'https://api-ca.storyblok.com' | 'https://api-ap.storyblok.com' | 'https://app.storyblok.cn' | (string & {});\n};"],"mappings":""}
1
+ {"version":3,"file":"types.gen.js","names":[],"sources":["../../../src/generated/components/types.gen.ts"],"sourcesContent":["// This file is auto-generated by @hey-api/openapi-ts\n\nexport type Component = Component2;\n\n/**\n * A component version object\n */\nexport type ComponentVersion = {\n schema?: unknown;\n};\n\n/**\n * A component schema field object\n */\nexport type ComponentSchemaField = {\n /**\n * Field type (text, textarea, number, boolean, etc.)\n */\n type?: string;\n /**\n * Position of the field\n */\n pos?: number;\n /**\n * Human-readable display name\n */\n display_name?: string;\n /**\n * Whether the field is required\n */\n required?: boolean;\n /**\n * Regular expression for validation\n */\n regex?: string;\n /**\n * Whether the field is translatable\n */\n translatable?: boolean;\n /**\n * Field description\n */\n description?: string;\n /**\n * Default value for the field\n */\n default_value?: string;\n /**\n * Array of datasource entries [{name:\"\", value:\"\"}]; Effects editor only if source=undefined. For field type option.\n */\n options?: Array<{\n _uid?: string;\n name?: string;\n value?: string;\n }>;\n source?: 'option' | 'options' | 'custom';\n /**\n * Folder slug for asset fields\n */\n folder_slug?: string;\n /**\n * Allowed file types for asset fields\n */\n filetypes?: Array<string>;\n /**\n * Maximum value for number fields\n */\n maximum?: number;\n /**\n * Minimum value for number fields\n */\n minimum?: number;\n /**\n * Maximum length for text fields\n */\n maxlength?: number;\n /**\n * Minimum length for text fields\n */\n minlength?: number;\n /**\n * Whether rich markdown is enabled\n */\n rich_markdown?: boolean;\n /**\n * Whether rich text is enabled\n */\n rich_text?: boolean;\n /**\n * Whether markdown is enabled\n */\n markdown?: boolean;\n /**\n * Field size (small, medium, large)\n */\n size?: string;\n /**\n * Field height in pixels\n */\n height?: number;\n /**\n * Field width in pixels\n */\n width?: number;\n /**\n * Whether to use UUID for the field\n */\n use_uuid?: boolean;\n /**\n * Whether to restrict content types\n */\n restrict_content_types?: boolean;\n /**\n * Whether to restrict components\n */\n restrict_components?: boolean;\n /**\n * List of allowed components\n */\n component_whitelist?: Array<string>;\n /**\n * List of allowed component groups\n */\n component_group_whitelist?: Array<string>;\n /**\n * Maximum number of entries\n */\n maximum_entries?: number;\n /**\n * Minimum number of entries\n */\n minimum_entries?: number;\n /**\n * Whether to restrict assets\n */\n restrict_assets?: boolean;\n /**\n * List of allowed asset types\n */\n asset_whitelist?: Array<string>;\n /**\n * Whether to exclude empty option\n */\n exclude_empty_option?: boolean;\n /**\n * Whether to include empty option\n */\n include_empty_option?: boolean;\n /**\n * Datasource slug for datasource fields\n */\n datasource_slug?: string;\n /**\n * Whether multiple values are allowed\n */\n multiple?: boolean;\n /**\n * Custom CSS for the field\n */\n custom_css?: string;\n /**\n * Custom JavaScript for the field\n */\n custom_js?: string;\n /**\n * API connection configuration\n */\n api_connection?: {\n /**\n * API URL\n */\n url?: string;\n /**\n * API headers\n */\n headers?: {\n [key: string]: unknown;\n };\n /**\n * API parameters\n */\n params?: {\n [key: string]: unknown;\n };\n };\n /**\n * Fieldset configuration\n */\n fieldset?: {\n /**\n * Fieldset title\n */\n title?: string;\n /**\n * Fieldset description\n */\n description?: string;\n /**\n * Whether the fieldset is collapsible\n */\n collapsible?: boolean;\n /**\n * Whether the fieldset is collapsed by default\n */\n collapsed?: boolean;\n };\n};\n\n/**\n * A Storyblok component object representing a content type\n */\nexport type Component2 = {\n /**\n * The numeric ID\n */\n readonly id: number;\n /**\n * Technical name used for component property in entries\n */\n name: string;\n /**\n * Name that will be used in the editor interface\n */\n display_name?: string;\n /**\n * Creation date\n */\n readonly created_at: string;\n /**\n * Latest update date\n */\n readonly updated_at: string;\n /**\n * Component schema definition containing fields and their configurations\n */\n schema: {\n /**\n * Unique identifier field configuration\n */\n _uid?: {\n [key: string]: unknown;\n };\n /**\n * Component type field configuration\n */\n component?: {\n [key: string]: unknown;\n };\n [key: string]: unknown | {\n [key: string]: unknown;\n } | {\n [key: string]: unknown;\n } | undefined;\n };\n /**\n * URL to the preview image\n */\n image?: string;\n /**\n * The field that is for preview in the interface (Preview Field)\n */\n preview_field?: string;\n /**\n * Whether the component can be used as a root component\n */\n is_root?: boolean;\n /**\n * Preview template for the component\n */\n preview_tmpl?: string;\n /**\n * True if the component is nestable (insertable) in block field types\n */\n is_nestable?: boolean;\n /**\n * An array of presets for this component\n */\n all_presets?: Array<{\n /**\n * The numeric ID of the preset\n */\n id?: number;\n /**\n * Name of the preset\n */\n name?: string;\n /**\n * The ID of the component the preset is for\n */\n component_id?: number;\n /**\n * Link to the preview image of the preset\n */\n image?: string;\n /**\n * Icon selected for the preset\n */\n icon?: string;\n /**\n * Color of the icon selected for the preset\n */\n color?: string;\n /**\n * The description of the preset\n */\n description?: string;\n }>;\n /**\n * ID of the preset currently selected for this component\n */\n preset_id?: number;\n /**\n * Duplicated technical name or display name, used for internal tasks\n */\n real_name?: string;\n /**\n * The component folder ID of the component\n */\n component_group_uuid?: string;\n /**\n * The color of the icon selected for the component\n */\n color?: string;\n /**\n * Icon selected for the component\n */\n icon?: string;\n /**\n * List of internal tags assigned to the component\n */\n internal_tags_list?: Array<{\n /**\n * Tag ID\n */\n id?: number;\n /**\n * Tag name\n */\n name?: string;\n }>;\n /**\n * List of IDs of the tags assigned to the component\n */\n internal_tag_ids?: Array<string>;\n /**\n * Asset preview field (Preview Card) for a content type component\n */\n content_type_asset_preview?: string;\n};\n\n/**\n * The ID of the Storyblok space (can be integer or string)\n */\nexport type SpaceId = number | string;\n\n/**\n * Page number for pagination. Default is 1.\n */\nexport type Page = number;\n\n/**\n * Number of items per page. Default is 25.\n */\nexport type PerPage = number;\n\n/**\n * The ID of the component (can be integer or string)\n */\nexport type ComponentId = number | string;\n\nexport type ListData = {\n body?: never;\n path: {\n /**\n * The ID of the Storyblok space (can be integer or string)\n */\n space_id: number | string;\n };\n query?: {\n /**\n * Page number for pagination. Default is 1.\n */\n page?: number;\n /**\n * Number of items per page. Default is 25.\n */\n per_page?: number;\n /**\n * Filter by ids (comma separated)\n */\n by_ids?: string;\n /**\n * Components can be sorted in an ascending or descending order by a specific property\n */\n sort_by?: string;\n /**\n * Retrieve all the components based on is_root property of a component\n */\n is_root?: boolean;\n /**\n * Search by name or display_name\n */\n search?: string;\n /**\n * Find components that are present in a specific group with the UUID of the group\n */\n in_group?: string;\n /**\n * Filter components by tags\n */\n with_tags?: string;\n /**\n * Filter components by metadata app slug\n */\n by_metadata_app_slug?: string;\n /**\n * Filter components by metadata frame ID\n */\n by_metadata_frame_id?: string;\n };\n url: '/v1/spaces/{space_id}/components';\n};\n\nexport type ListErrors = {\n /**\n * Bad request\n */\n 400: unknown;\n /**\n * Unauthorized\n */\n 401: unknown;\n /**\n * Space not found\n */\n 404: unknown;\n};\n\nexport type ListResponses = {\n /**\n * List of components\n */\n 200: {\n components?: Array<Component2>;\n };\n};\n\nexport type ListResponse = ListResponses[keyof ListResponses];\n\nexport type CreateData = {\n body: {\n component?: Component2;\n };\n path: {\n /**\n * The ID of the Storyblok space (can be integer or string)\n */\n space_id: number | string;\n };\n query?: never;\n url: '/v1/spaces/{space_id}/components';\n};\n\nexport type CreateErrors = {\n /**\n * Bad request\n */\n 400: unknown;\n /**\n * Unauthorized\n */\n 401: unknown;\n /**\n * Space not found\n */\n 404: unknown;\n};\n\nexport type CreateResponses = {\n /**\n * Component created\n */\n 201: {\n component?: Component2;\n };\n};\n\nexport type CreateResponse = CreateResponses[keyof CreateResponses];\n\nexport type DeleteComponentData = {\n body?: never;\n path: {\n /**\n * The ID of the Storyblok space (can be integer or string)\n */\n space_id: number | string;\n /**\n * The ID of the component (can be integer or string)\n */\n component_id: number | string;\n };\n query?: never;\n url: '/v1/spaces/{space_id}/components/{component_id}';\n};\n\nexport type DeleteComponentErrors = {\n /**\n * Bad request\n */\n 400: unknown;\n /**\n * Unauthorized\n */\n 401: unknown;\n /**\n * Component not found\n */\n 404: unknown;\n};\n\nexport type DeleteComponentResponses = {\n /**\n * Component deleted\n */\n 200: {\n component?: Component2;\n };\n};\n\nexport type DeleteComponentResponse = DeleteComponentResponses[keyof DeleteComponentResponses];\n\nexport type GetData = {\n body?: never;\n path: {\n /**\n * The ID of the Storyblok space (can be integer or string)\n */\n space_id: number | string;\n /**\n * The ID of the component (can be integer or string)\n */\n component_id: number | string;\n };\n query?: never;\n url: '/v1/spaces/{space_id}/components/{component_id}';\n};\n\nexport type GetErrors = {\n /**\n * Bad request\n */\n 400: unknown;\n /**\n * Unauthorized\n */\n 401: unknown;\n /**\n * Component not found\n */\n 404: unknown;\n};\n\nexport type GetResponses = {\n /**\n * Component details\n */\n 200: {\n component?: Component2;\n };\n};\n\nexport type GetResponse = GetResponses[keyof GetResponses];\n\nexport type UpdateData = {\n body: {\n component?: Component2;\n /**\n * Update component name in stories when component name changes\n */\n update_content?: boolean;\n };\n path: {\n /**\n * The ID of the Storyblok space (can be integer or string)\n */\n space_id: number | string;\n /**\n * The ID of the component (can be integer or string)\n */\n component_id: number | string;\n };\n query?: never;\n url: '/v1/spaces/{space_id}/components/{component_id}';\n};\n\nexport type UpdateErrors = {\n /**\n * Bad request\n */\n 400: unknown;\n /**\n * Unauthorized\n */\n 401: unknown;\n /**\n * Component not found\n */\n 404: unknown;\n};\n\nexport type UpdateResponses = {\n /**\n * Component updated\n */\n 200: {\n component?: Component2;\n };\n};\n\nexport type UpdateResponse = UpdateResponses[keyof UpdateResponses];\n\nexport type RenameAttributeData = {\n body?: never;\n path: {\n /**\n * The ID of the Storyblok space (can be integer or string)\n */\n space_id: number | string;\n /**\n * The ID of the component (can be integer or string)\n */\n component_id: number | string;\n };\n query: {\n /**\n * Current name of the attribute\n */\n old_name: string;\n /**\n * New name for the attribute\n */\n new_name: string;\n /**\n * Optional story ID to update the attribute in a specific story\n */\n story_id?: number;\n };\n url: '/v1/spaces/{space_id}/components/{component_id}/rename_attribute';\n};\n\nexport type RenameAttributeErrors = {\n /**\n * Bad request\n */\n 400: unknown;\n /**\n * Unauthorized\n */\n 401: unknown;\n /**\n * Component not found\n */\n 404: unknown;\n};\n\nexport type RenameAttributeResponses = {\n /**\n * Attribute renamed successfully\n */\n 204: void;\n};\n\nexport type RenameAttributeResponse = RenameAttributeResponses[keyof RenameAttributeResponses];\n\nexport type RestoreData = {\n body?: never;\n path: {\n /**\n * The ID of the Storyblok space (can be integer or string)\n */\n space_id: number | string;\n /**\n * The ID of the component (can be integer or string)\n */\n component_id: number | string;\n };\n query?: never;\n url: '/v1/spaces/{space_id}/components/{component_id}/restore';\n};\n\nexport type RestoreErrors = {\n /**\n * Bad request\n */\n 400: unknown;\n /**\n * Unauthorized\n */\n 401: unknown;\n /**\n * Component not found\n */\n 404: unknown;\n};\n\nexport type RestoreResponses = {\n /**\n * Component restored\n */\n 200: {\n component?: Component2;\n };\n};\n\nexport type RestoreResponse = RestoreResponses[keyof RestoreResponses];\n\nexport type BulkMoveData = {\n body: {\n /**\n * Array of component IDs to update\n */\n ids: Array<number>;\n component: {\n /**\n * ID of the component group to assign components to\n */\n component_group_id: number;\n };\n };\n path: {\n /**\n * The ID of the Storyblok space (can be integer or string)\n */\n space_id: number | string;\n };\n query?: never;\n url: '/v1/spaces/{space_id}/components/bulk_update';\n};\n\nexport type BulkMoveErrors = {\n /**\n * Bad request\n */\n 400: unknown;\n /**\n * Unauthorized\n */\n 401: unknown;\n /**\n * Component group not found\n */\n 404: unknown;\n};\n\nexport type BulkMoveResponses = {\n /**\n * Components updated successfully\n */\n 200: {\n /**\n * Success message\n */\n message?: string;\n };\n};\n\nexport type BulkMoveResponse = BulkMoveResponses[keyof BulkMoveResponses];\n\nexport type VersionsData = {\n body?: never;\n path: {\n /**\n * The ID of the Storyblok space (can be integer or string)\n */\n space_id: number | string;\n };\n query?: {\n /**\n * Page number\n */\n page?: number;\n /**\n * Number of items per page. Default is 25.\n */\n per_page?: number;\n /**\n * Model type. Must be 'components' for component versions.\n */\n model?: 'components' | 'stories';\n /**\n * Component ID when model is 'components'\n */\n model_id?: string;\n /**\n * Use version 2 system for retrieving versions\n */\n versions_v2?: boolean;\n };\n url: '/v1/spaces/{space_id}/versions';\n};\n\nexport type VersionsErrors = {\n /**\n * Bad request\n */\n 400: unknown;\n /**\n * Unauthorized\n */\n 401: unknown;\n /**\n * Component not found\n */\n 404: unknown;\n};\n\nexport type VersionsResponses = {\n /**\n * Component versions\n */\n 200: {\n versions?: Array<{\n id?: number;\n event?: string;\n created_at?: string;\n author_id?: number;\n item_id?: number;\n author?: string;\n is_draft?: boolean;\n }>;\n };\n};\n\nexport type VersionsResponse = VersionsResponses[keyof VersionsResponses];\n\nexport type VersionData = {\n body?: never;\n path: {\n /**\n * The ID of the Storyblok space (can be integer or string)\n */\n space_id: number | string;\n /**\n * The ID of the component (can be integer or string)\n */\n component_id: number | string;\n /**\n * Version ID of the component\n */\n version_id: number;\n };\n query?: never;\n url: '/v1/spaces/{space_id}/components/{component_id}/component_versions/{version_id}';\n};\n\nexport type VersionErrors = {\n /**\n * Bad request\n */\n 400: unknown;\n /**\n * Unauthorized\n */\n 401: unknown;\n /**\n * Component or version not found\n */\n 404: unknown;\n};\n\nexport type VersionResponses = {\n /**\n * Component version details\n */\n 200: {\n component_version?: {\n schema?: {\n [key: string]: unknown;\n };\n };\n };\n};\n\nexport type VersionResponse = VersionResponses[keyof VersionResponses];\n\nexport type RestoreVersionData = {\n body: {\n model?: string;\n model_id?: string;\n };\n path: {\n /**\n * The ID of the Storyblok space (can be integer or string)\n */\n space_id: number | string;\n /**\n * ID of the component version\n */\n version_id: number;\n };\n query?: never;\n url: '/v1/spaces/{space_id}/versions/{version_id}';\n};\n\nexport type RestoreVersionErrors = {\n /**\n * Bad request\n */\n 400: unknown;\n /**\n * Unauthorized\n */\n 401: unknown;\n /**\n * Component or version not found\n */\n 404: unknown;\n};\n\nexport type RestoreVersionResponses = {\n /**\n * Component version restored\n */\n 200: {\n component?: Component2;\n };\n};\n\nexport type RestoreVersionResponse = RestoreVersionResponses[keyof RestoreVersionResponses];\n\nexport type ClientOptions = {\n baseUrl: 'https://mapi.storyblok.com' | 'https://api-us.storyblok.com' | 'https://api-ca.storyblok.com' | 'https://api-ap.storyblok.com' | 'https://app.storyblok.cn' | (string & {});\n};"],"mappings":""}
@@ -1 +1 @@
1
- {"version":3,"file":"types.gen.mjs","names":[],"sources":["../../../src/generated/components/types.gen.ts"],"sourcesContent":["// This file is auto-generated by @hey-api/openapi-ts\n\nexport type Component = Component2;\n\n/**\n * A component version object\n */\nexport type ComponentVersion = {\n schema?: unknown;\n};\n\n/**\n * A component schema field object\n */\nexport type ComponentSchemaField = {\n /**\n * Field type (text, textarea, number, boolean, etc.)\n */\n type?: string;\n /**\n * Position of the field\n */\n pos?: number;\n /**\n * Human-readable display name\n */\n display_name?: string;\n /**\n * Whether the field is required\n */\n required?: boolean;\n /**\n * Regular expression for validation\n */\n regex?: string;\n /**\n * Whether the field is translatable\n */\n translatable?: boolean;\n /**\n * Field description\n */\n description?: string;\n /**\n * Default value for the field\n */\n default_value?: string;\n /**\n * Array of datasource entries [{name:\"\", value:\"\"}]; Effects editor only if source=undefined. For field type option.\n */\n options?: Array<{\n _uid?: string;\n name?: string;\n value?: string;\n }>;\n source?: 'option' | 'options' | 'custom';\n /**\n * Folder slug for asset fields\n */\n folder_slug?: string;\n /**\n * Allowed file types for asset fields\n */\n filetypes?: Array<string>;\n /**\n * Maximum value for number fields\n */\n maximum?: number;\n /**\n * Minimum value for number fields\n */\n minimum?: number;\n /**\n * Maximum length for text fields\n */\n maxlength?: number;\n /**\n * Minimum length for text fields\n */\n minlength?: number;\n /**\n * Whether rich markdown is enabled\n */\n rich_markdown?: boolean;\n /**\n * Whether rich text is enabled\n */\n rich_text?: boolean;\n /**\n * Whether markdown is enabled\n */\n markdown?: boolean;\n /**\n * Field size (small, medium, large)\n */\n size?: string;\n /**\n * Field height in pixels\n */\n height?: number;\n /**\n * Field width in pixels\n */\n width?: number;\n /**\n * Whether to use UUID for the field\n */\n use_uuid?: boolean;\n /**\n * Whether to restrict content types\n */\n restrict_content_types?: boolean;\n /**\n * Whether to restrict components\n */\n restrict_components?: boolean;\n /**\n * List of allowed components\n */\n component_whitelist?: Array<string>;\n /**\n * List of allowed component groups\n */\n component_group_whitelist?: Array<string>;\n /**\n * Maximum number of entries\n */\n maximum_entries?: number;\n /**\n * Minimum number of entries\n */\n minimum_entries?: number;\n /**\n * Whether to restrict assets\n */\n restrict_assets?: boolean;\n /**\n * List of allowed asset types\n */\n asset_whitelist?: Array<string>;\n /**\n * Whether to exclude empty option\n */\n exclude_empty_option?: boolean;\n /**\n * Whether to include empty option\n */\n include_empty_option?: boolean;\n /**\n * Datasource slug for datasource fields\n */\n datasource_slug?: string;\n /**\n * Whether multiple values are allowed\n */\n multiple?: boolean;\n /**\n * Custom CSS for the field\n */\n custom_css?: string;\n /**\n * Custom JavaScript for the field\n */\n custom_js?: string;\n /**\n * API connection configuration\n */\n api_connection?: {\n /**\n * API URL\n */\n url?: string;\n /**\n * API headers\n */\n headers?: {\n [key: string]: unknown;\n };\n /**\n * API parameters\n */\n params?: {\n [key: string]: unknown;\n };\n };\n /**\n * Fieldset configuration\n */\n fieldset?: {\n /**\n * Fieldset title\n */\n title?: string;\n /**\n * Fieldset description\n */\n description?: string;\n /**\n * Whether the fieldset is collapsible\n */\n collapsible?: boolean;\n /**\n * Whether the fieldset is collapsed by default\n */\n collapsed?: boolean;\n };\n};\n\n/**\n * A Storyblok component object representing a content type\n */\nexport type Component2 = {\n /**\n * The numeric ID\n */\n readonly id: number;\n /**\n * Technical name used for component property in entries\n */\n name: string;\n /**\n * Name that will be used in the editor interface\n */\n display_name?: string;\n /**\n * Creation date\n */\n readonly created_at: string;\n /**\n * Latest update date\n */\n readonly updated_at: string;\n /**\n * Component schema definition containing fields and their configurations\n */\n schema: {\n /**\n * Unique identifier field configuration\n */\n _uid?: {\n [key: string]: unknown;\n };\n /**\n * Component type field configuration\n */\n component?: {\n [key: string]: unknown;\n };\n [key: string]: unknown | {\n [key: string]: unknown;\n } | {\n [key: string]: unknown;\n } | undefined;\n };\n /**\n * URL to the preview image\n */\n image?: string;\n /**\n * The field that is for preview in the interface (Preview Field)\n */\n preview_field?: string;\n /**\n * Whether the component can be used as a root component\n */\n is_root?: boolean;\n /**\n * Preview template for the component\n */\n preview_tmpl?: string;\n /**\n * True if the component is nestable (insertable) in block field types\n */\n is_nestable?: boolean;\n /**\n * An array of presets for this component\n */\n all_presets?: Array<{\n /**\n * The numeric ID of the preset\n */\n id?: number;\n /**\n * Name of the preset\n */\n name?: string;\n /**\n * The ID of the component the preset is for\n */\n component_id?: number;\n /**\n * Link to the preview image of the preset\n */\n image?: string;\n /**\n * Icon selected for the preset\n */\n icon?: string;\n /**\n * Color of the icon selected for the preset\n */\n color?: string;\n /**\n * The description of the preset\n */\n description?: string;\n }>;\n /**\n * ID of the preset currently selected for this component\n */\n preset_id?: number;\n /**\n * Duplicated technical name or display name, used for internal tasks\n */\n real_name?: string;\n /**\n * The component folder ID of the component\n */\n component_group_uuid?: string;\n /**\n * The color of the icon selected for the component\n */\n color?: string;\n /**\n * Icon selected for the component\n */\n icon?: string;\n /**\n * List of internal tags assigned to the component\n */\n internal_tags_list?: Array<{\n /**\n * Tag ID\n */\n id?: number;\n /**\n * Tag name\n */\n name?: string;\n }>;\n /**\n * List of IDs of the tags assigned to the component\n */\n internal_tag_ids?: Array<string>;\n /**\n * Asset preview field (Preview Card) for a content type component\n */\n content_type_asset_preview?: string;\n};\n\n/**\n * The ID of the Storyblok space (can be integer or string)\n */\nexport type SpaceId = number | string;\n\n/**\n * Page number for pagination. Default is 1.\n */\nexport type Page = number;\n\n/**\n * The ID of the component (can be integer or string)\n */\nexport type ComponentId = number | string;\n\nexport type ListData = {\n body?: never;\n path: {\n /**\n * The ID of the Storyblok space (can be integer or string)\n */\n space_id: number | string;\n };\n query?: {\n /**\n * Page number for pagination. Default is 1.\n */\n page?: number;\n /**\n * Number of components per page. Default is 25, maximum is 100.\n */\n per_page?: number;\n /**\n * Filter by ids (comma separated)\n */\n by_ids?: string;\n /**\n * Components can be sorted in an ascending or descending order by a specific property\n */\n sort_by?: string;\n /**\n * Retrieve all the components based on is_root property of a component\n */\n is_root?: boolean;\n /**\n * Search by name or display_name\n */\n search?: string;\n /**\n * Find components that are present in a specific group with the UUID of the group\n */\n in_group?: string;\n /**\n * Filter components by tags\n */\n with_tags?: string;\n /**\n * Filter components by metadata app slug\n */\n by_metadata_app_slug?: string;\n /**\n * Filter components by metadata frame ID\n */\n by_metadata_frame_id?: string;\n };\n url: '/v1/spaces/{space_id}/components';\n};\n\nexport type ListErrors = {\n /**\n * Bad request\n */\n 400: unknown;\n /**\n * Unauthorized\n */\n 401: unknown;\n /**\n * Space not found\n */\n 404: unknown;\n};\n\nexport type ListResponses = {\n /**\n * List of components\n */\n 200: {\n components?: Array<Component2>;\n };\n};\n\nexport type ListResponse = ListResponses[keyof ListResponses];\n\nexport type CreateData = {\n body: {\n component?: Component2;\n };\n path: {\n /**\n * The ID of the Storyblok space (can be integer or string)\n */\n space_id: number | string;\n };\n query?: never;\n url: '/v1/spaces/{space_id}/components';\n};\n\nexport type CreateErrors = {\n /**\n * Bad request\n */\n 400: unknown;\n /**\n * Unauthorized\n */\n 401: unknown;\n /**\n * Space not found\n */\n 404: unknown;\n};\n\nexport type CreateResponses = {\n /**\n * Component created\n */\n 201: {\n component?: Component2;\n };\n};\n\nexport type CreateResponse = CreateResponses[keyof CreateResponses];\n\nexport type DeleteComponentData = {\n body?: never;\n path: {\n /**\n * The ID of the Storyblok space (can be integer or string)\n */\n space_id: number | string;\n /**\n * The ID of the component (can be integer or string)\n */\n component_id: number | string;\n };\n query?: never;\n url: '/v1/spaces/{space_id}/components/{component_id}';\n};\n\nexport type DeleteComponentErrors = {\n /**\n * Bad request\n */\n 400: unknown;\n /**\n * Unauthorized\n */\n 401: unknown;\n /**\n * Component not found\n */\n 404: unknown;\n};\n\nexport type DeleteComponentResponses = {\n /**\n * Component deleted\n */\n 200: {\n component?: Component2;\n };\n};\n\nexport type DeleteComponentResponse = DeleteComponentResponses[keyof DeleteComponentResponses];\n\nexport type GetData = {\n body?: never;\n path: {\n /**\n * The ID of the Storyblok space (can be integer or string)\n */\n space_id: number | string;\n /**\n * The ID of the component (can be integer or string)\n */\n component_id: number | string;\n };\n query?: never;\n url: '/v1/spaces/{space_id}/components/{component_id}';\n};\n\nexport type GetErrors = {\n /**\n * Bad request\n */\n 400: unknown;\n /**\n * Unauthorized\n */\n 401: unknown;\n /**\n * Component not found\n */\n 404: unknown;\n};\n\nexport type GetResponses = {\n /**\n * Component details\n */\n 200: {\n component?: Component2;\n };\n};\n\nexport type GetResponse = GetResponses[keyof GetResponses];\n\nexport type UpdateData = {\n body: {\n component?: Component2;\n /**\n * Update component name in stories when component name changes\n */\n update_content?: boolean;\n };\n path: {\n /**\n * The ID of the Storyblok space (can be integer or string)\n */\n space_id: number | string;\n /**\n * The ID of the component (can be integer or string)\n */\n component_id: number | string;\n };\n query?: never;\n url: '/v1/spaces/{space_id}/components/{component_id}';\n};\n\nexport type UpdateErrors = {\n /**\n * Bad request\n */\n 400: unknown;\n /**\n * Unauthorized\n */\n 401: unknown;\n /**\n * Component not found\n */\n 404: unknown;\n};\n\nexport type UpdateResponses = {\n /**\n * Component updated\n */\n 200: {\n component?: Component2;\n };\n};\n\nexport type UpdateResponse = UpdateResponses[keyof UpdateResponses];\n\nexport type RenameAttributeData = {\n body?: never;\n path: {\n /**\n * The ID of the Storyblok space (can be integer or string)\n */\n space_id: number | string;\n /**\n * The ID of the component (can be integer or string)\n */\n component_id: number | string;\n };\n query: {\n /**\n * Current name of the attribute\n */\n old_name: string;\n /**\n * New name for the attribute\n */\n new_name: string;\n /**\n * Optional story ID to update the attribute in a specific story\n */\n story_id?: number;\n };\n url: '/v1/spaces/{space_id}/components/{component_id}/rename_attribute';\n};\n\nexport type RenameAttributeErrors = {\n /**\n * Bad request\n */\n 400: unknown;\n /**\n * Unauthorized\n */\n 401: unknown;\n /**\n * Component not found\n */\n 404: unknown;\n};\n\nexport type RenameAttributeResponses = {\n /**\n * Attribute renamed successfully\n */\n 204: void;\n};\n\nexport type RenameAttributeResponse = RenameAttributeResponses[keyof RenameAttributeResponses];\n\nexport type RestoreData = {\n body?: never;\n path: {\n /**\n * The ID of the Storyblok space (can be integer or string)\n */\n space_id: number | string;\n /**\n * The ID of the component (can be integer or string)\n */\n component_id: number | string;\n };\n query?: never;\n url: '/v1/spaces/{space_id}/components/{component_id}/restore';\n};\n\nexport type RestoreErrors = {\n /**\n * Bad request\n */\n 400: unknown;\n /**\n * Unauthorized\n */\n 401: unknown;\n /**\n * Component not found\n */\n 404: unknown;\n};\n\nexport type RestoreResponses = {\n /**\n * Component restored\n */\n 200: {\n component?: Component2;\n };\n};\n\nexport type RestoreResponse = RestoreResponses[keyof RestoreResponses];\n\nexport type BulkMoveData = {\n body: {\n /**\n * Array of component IDs to update\n */\n ids: Array<number>;\n component: {\n /**\n * ID of the component group to assign components to\n */\n component_group_id: number;\n };\n };\n path: {\n /**\n * The ID of the Storyblok space (can be integer or string)\n */\n space_id: number | string;\n };\n query?: never;\n url: '/v1/spaces/{space_id}/components/bulk_update';\n};\n\nexport type BulkMoveErrors = {\n /**\n * Bad request\n */\n 400: unknown;\n /**\n * Unauthorized\n */\n 401: unknown;\n /**\n * Component group not found\n */\n 404: unknown;\n};\n\nexport type BulkMoveResponses = {\n /**\n * Components updated successfully\n */\n 200: {\n /**\n * Success message\n */\n message?: string;\n };\n};\n\nexport type BulkMoveResponse = BulkMoveResponses[keyof BulkMoveResponses];\n\nexport type VersionsData = {\n body?: never;\n path: {\n /**\n * The ID of the Storyblok space (can be integer or string)\n */\n space_id: number | string;\n };\n query?: {\n /**\n * Page number\n */\n page?: number;\n /**\n * Number of versions per page\n */\n per_page?: number;\n /**\n * Model type. Must be 'components' for component versions.\n */\n model?: 'components' | 'stories';\n /**\n * Component ID when model is 'components'\n */\n model_id?: string;\n /**\n * Use version 2 system for retrieving versions\n */\n versions_v2?: boolean;\n };\n url: '/v1/spaces/{space_id}/versions';\n};\n\nexport type VersionsErrors = {\n /**\n * Bad request\n */\n 400: unknown;\n /**\n * Unauthorized\n */\n 401: unknown;\n /**\n * Component not found\n */\n 404: unknown;\n};\n\nexport type VersionsResponses = {\n /**\n * Component versions\n */\n 200: {\n versions?: Array<{\n id?: number;\n event?: string;\n created_at?: string;\n author_id?: number;\n item_id?: number;\n author?: string;\n is_draft?: boolean;\n }>;\n };\n};\n\nexport type VersionsResponse = VersionsResponses[keyof VersionsResponses];\n\nexport type VersionData = {\n body?: never;\n path: {\n /**\n * The ID of the Storyblok space (can be integer or string)\n */\n space_id: number | string;\n /**\n * The ID of the component (can be integer or string)\n */\n component_id: number | string;\n /**\n * Version ID of the component\n */\n version_id: number;\n };\n query?: never;\n url: '/v1/spaces/{space_id}/components/{component_id}/component_versions/{version_id}';\n};\n\nexport type VersionErrors = {\n /**\n * Bad request\n */\n 400: unknown;\n /**\n * Unauthorized\n */\n 401: unknown;\n /**\n * Component or version not found\n */\n 404: unknown;\n};\n\nexport type VersionResponses = {\n /**\n * Component version details\n */\n 200: {\n component_version?: {\n schema?: {\n [key: string]: unknown;\n };\n };\n };\n};\n\nexport type VersionResponse = VersionResponses[keyof VersionResponses];\n\nexport type RestoreVersionData = {\n body: {\n model?: string;\n model_id?: string;\n };\n path: {\n /**\n * The ID of the Storyblok space (can be integer or string)\n */\n space_id: number | string;\n /**\n * ID of the component version\n */\n version_id: number;\n };\n query?: never;\n url: '/v1/spaces/{space_id}/versions/{version_id}';\n};\n\nexport type RestoreVersionErrors = {\n /**\n * Bad request\n */\n 400: unknown;\n /**\n * Unauthorized\n */\n 401: unknown;\n /**\n * Component or version not found\n */\n 404: unknown;\n};\n\nexport type RestoreVersionResponses = {\n /**\n * Component version restored\n */\n 200: {\n component?: Component2;\n };\n};\n\nexport type RestoreVersionResponse = RestoreVersionResponses[keyof RestoreVersionResponses];\n\nexport type ClientOptions = {\n baseUrl: 'https://mapi.storyblok.com' | 'https://api-us.storyblok.com' | 'https://api-ca.storyblok.com' | 'https://api-ap.storyblok.com' | 'https://app.storyblok.cn' | (string & {});\n};"],"mappings":""}
1
+ {"version":3,"file":"types.gen.mjs","names":[],"sources":["../../../src/generated/components/types.gen.ts"],"sourcesContent":["// This file is auto-generated by @hey-api/openapi-ts\n\nexport type Component = Component2;\n\n/**\n * A component version object\n */\nexport type ComponentVersion = {\n schema?: unknown;\n};\n\n/**\n * A component schema field object\n */\nexport type ComponentSchemaField = {\n /**\n * Field type (text, textarea, number, boolean, etc.)\n */\n type?: string;\n /**\n * Position of the field\n */\n pos?: number;\n /**\n * Human-readable display name\n */\n display_name?: string;\n /**\n * Whether the field is required\n */\n required?: boolean;\n /**\n * Regular expression for validation\n */\n regex?: string;\n /**\n * Whether the field is translatable\n */\n translatable?: boolean;\n /**\n * Field description\n */\n description?: string;\n /**\n * Default value for the field\n */\n default_value?: string;\n /**\n * Array of datasource entries [{name:\"\", value:\"\"}]; Effects editor only if source=undefined. For field type option.\n */\n options?: Array<{\n _uid?: string;\n name?: string;\n value?: string;\n }>;\n source?: 'option' | 'options' | 'custom';\n /**\n * Folder slug for asset fields\n */\n folder_slug?: string;\n /**\n * Allowed file types for asset fields\n */\n filetypes?: Array<string>;\n /**\n * Maximum value for number fields\n */\n maximum?: number;\n /**\n * Minimum value for number fields\n */\n minimum?: number;\n /**\n * Maximum length for text fields\n */\n maxlength?: number;\n /**\n * Minimum length for text fields\n */\n minlength?: number;\n /**\n * Whether rich markdown is enabled\n */\n rich_markdown?: boolean;\n /**\n * Whether rich text is enabled\n */\n rich_text?: boolean;\n /**\n * Whether markdown is enabled\n */\n markdown?: boolean;\n /**\n * Field size (small, medium, large)\n */\n size?: string;\n /**\n * Field height in pixels\n */\n height?: number;\n /**\n * Field width in pixels\n */\n width?: number;\n /**\n * Whether to use UUID for the field\n */\n use_uuid?: boolean;\n /**\n * Whether to restrict content types\n */\n restrict_content_types?: boolean;\n /**\n * Whether to restrict components\n */\n restrict_components?: boolean;\n /**\n * List of allowed components\n */\n component_whitelist?: Array<string>;\n /**\n * List of allowed component groups\n */\n component_group_whitelist?: Array<string>;\n /**\n * Maximum number of entries\n */\n maximum_entries?: number;\n /**\n * Minimum number of entries\n */\n minimum_entries?: number;\n /**\n * Whether to restrict assets\n */\n restrict_assets?: boolean;\n /**\n * List of allowed asset types\n */\n asset_whitelist?: Array<string>;\n /**\n * Whether to exclude empty option\n */\n exclude_empty_option?: boolean;\n /**\n * Whether to include empty option\n */\n include_empty_option?: boolean;\n /**\n * Datasource slug for datasource fields\n */\n datasource_slug?: string;\n /**\n * Whether multiple values are allowed\n */\n multiple?: boolean;\n /**\n * Custom CSS for the field\n */\n custom_css?: string;\n /**\n * Custom JavaScript for the field\n */\n custom_js?: string;\n /**\n * API connection configuration\n */\n api_connection?: {\n /**\n * API URL\n */\n url?: string;\n /**\n * API headers\n */\n headers?: {\n [key: string]: unknown;\n };\n /**\n * API parameters\n */\n params?: {\n [key: string]: unknown;\n };\n };\n /**\n * Fieldset configuration\n */\n fieldset?: {\n /**\n * Fieldset title\n */\n title?: string;\n /**\n * Fieldset description\n */\n description?: string;\n /**\n * Whether the fieldset is collapsible\n */\n collapsible?: boolean;\n /**\n * Whether the fieldset is collapsed by default\n */\n collapsed?: boolean;\n };\n};\n\n/**\n * A Storyblok component object representing a content type\n */\nexport type Component2 = {\n /**\n * The numeric ID\n */\n readonly id: number;\n /**\n * Technical name used for component property in entries\n */\n name: string;\n /**\n * Name that will be used in the editor interface\n */\n display_name?: string;\n /**\n * Creation date\n */\n readonly created_at: string;\n /**\n * Latest update date\n */\n readonly updated_at: string;\n /**\n * Component schema definition containing fields and their configurations\n */\n schema: {\n /**\n * Unique identifier field configuration\n */\n _uid?: {\n [key: string]: unknown;\n };\n /**\n * Component type field configuration\n */\n component?: {\n [key: string]: unknown;\n };\n [key: string]: unknown | {\n [key: string]: unknown;\n } | {\n [key: string]: unknown;\n } | undefined;\n };\n /**\n * URL to the preview image\n */\n image?: string;\n /**\n * The field that is for preview in the interface (Preview Field)\n */\n preview_field?: string;\n /**\n * Whether the component can be used as a root component\n */\n is_root?: boolean;\n /**\n * Preview template for the component\n */\n preview_tmpl?: string;\n /**\n * True if the component is nestable (insertable) in block field types\n */\n is_nestable?: boolean;\n /**\n * An array of presets for this component\n */\n all_presets?: Array<{\n /**\n * The numeric ID of the preset\n */\n id?: number;\n /**\n * Name of the preset\n */\n name?: string;\n /**\n * The ID of the component the preset is for\n */\n component_id?: number;\n /**\n * Link to the preview image of the preset\n */\n image?: string;\n /**\n * Icon selected for the preset\n */\n icon?: string;\n /**\n * Color of the icon selected for the preset\n */\n color?: string;\n /**\n * The description of the preset\n */\n description?: string;\n }>;\n /**\n * ID of the preset currently selected for this component\n */\n preset_id?: number;\n /**\n * Duplicated technical name or display name, used for internal tasks\n */\n real_name?: string;\n /**\n * The component folder ID of the component\n */\n component_group_uuid?: string;\n /**\n * The color of the icon selected for the component\n */\n color?: string;\n /**\n * Icon selected for the component\n */\n icon?: string;\n /**\n * List of internal tags assigned to the component\n */\n internal_tags_list?: Array<{\n /**\n * Tag ID\n */\n id?: number;\n /**\n * Tag name\n */\n name?: string;\n }>;\n /**\n * List of IDs of the tags assigned to the component\n */\n internal_tag_ids?: Array<string>;\n /**\n * Asset preview field (Preview Card) for a content type component\n */\n content_type_asset_preview?: string;\n};\n\n/**\n * The ID of the Storyblok space (can be integer or string)\n */\nexport type SpaceId = number | string;\n\n/**\n * Page number for pagination. Default is 1.\n */\nexport type Page = number;\n\n/**\n * Number of items per page. Default is 25.\n */\nexport type PerPage = number;\n\n/**\n * The ID of the component (can be integer or string)\n */\nexport type ComponentId = number | string;\n\nexport type ListData = {\n body?: never;\n path: {\n /**\n * The ID of the Storyblok space (can be integer or string)\n */\n space_id: number | string;\n };\n query?: {\n /**\n * Page number for pagination. Default is 1.\n */\n page?: number;\n /**\n * Number of items per page. Default is 25.\n */\n per_page?: number;\n /**\n * Filter by ids (comma separated)\n */\n by_ids?: string;\n /**\n * Components can be sorted in an ascending or descending order by a specific property\n */\n sort_by?: string;\n /**\n * Retrieve all the components based on is_root property of a component\n */\n is_root?: boolean;\n /**\n * Search by name or display_name\n */\n search?: string;\n /**\n * Find components that are present in a specific group with the UUID of the group\n */\n in_group?: string;\n /**\n * Filter components by tags\n */\n with_tags?: string;\n /**\n * Filter components by metadata app slug\n */\n by_metadata_app_slug?: string;\n /**\n * Filter components by metadata frame ID\n */\n by_metadata_frame_id?: string;\n };\n url: '/v1/spaces/{space_id}/components';\n};\n\nexport type ListErrors = {\n /**\n * Bad request\n */\n 400: unknown;\n /**\n * Unauthorized\n */\n 401: unknown;\n /**\n * Space not found\n */\n 404: unknown;\n};\n\nexport type ListResponses = {\n /**\n * List of components\n */\n 200: {\n components?: Array<Component2>;\n };\n};\n\nexport type ListResponse = ListResponses[keyof ListResponses];\n\nexport type CreateData = {\n body: {\n component?: Component2;\n };\n path: {\n /**\n * The ID of the Storyblok space (can be integer or string)\n */\n space_id: number | string;\n };\n query?: never;\n url: '/v1/spaces/{space_id}/components';\n};\n\nexport type CreateErrors = {\n /**\n * Bad request\n */\n 400: unknown;\n /**\n * Unauthorized\n */\n 401: unknown;\n /**\n * Space not found\n */\n 404: unknown;\n};\n\nexport type CreateResponses = {\n /**\n * Component created\n */\n 201: {\n component?: Component2;\n };\n};\n\nexport type CreateResponse = CreateResponses[keyof CreateResponses];\n\nexport type DeleteComponentData = {\n body?: never;\n path: {\n /**\n * The ID of the Storyblok space (can be integer or string)\n */\n space_id: number | string;\n /**\n * The ID of the component (can be integer or string)\n */\n component_id: number | string;\n };\n query?: never;\n url: '/v1/spaces/{space_id}/components/{component_id}';\n};\n\nexport type DeleteComponentErrors = {\n /**\n * Bad request\n */\n 400: unknown;\n /**\n * Unauthorized\n */\n 401: unknown;\n /**\n * Component not found\n */\n 404: unknown;\n};\n\nexport type DeleteComponentResponses = {\n /**\n * Component deleted\n */\n 200: {\n component?: Component2;\n };\n};\n\nexport type DeleteComponentResponse = DeleteComponentResponses[keyof DeleteComponentResponses];\n\nexport type GetData = {\n body?: never;\n path: {\n /**\n * The ID of the Storyblok space (can be integer or string)\n */\n space_id: number | string;\n /**\n * The ID of the component (can be integer or string)\n */\n component_id: number | string;\n };\n query?: never;\n url: '/v1/spaces/{space_id}/components/{component_id}';\n};\n\nexport type GetErrors = {\n /**\n * Bad request\n */\n 400: unknown;\n /**\n * Unauthorized\n */\n 401: unknown;\n /**\n * Component not found\n */\n 404: unknown;\n};\n\nexport type GetResponses = {\n /**\n * Component details\n */\n 200: {\n component?: Component2;\n };\n};\n\nexport type GetResponse = GetResponses[keyof GetResponses];\n\nexport type UpdateData = {\n body: {\n component?: Component2;\n /**\n * Update component name in stories when component name changes\n */\n update_content?: boolean;\n };\n path: {\n /**\n * The ID of the Storyblok space (can be integer or string)\n */\n space_id: number | string;\n /**\n * The ID of the component (can be integer or string)\n */\n component_id: number | string;\n };\n query?: never;\n url: '/v1/spaces/{space_id}/components/{component_id}';\n};\n\nexport type UpdateErrors = {\n /**\n * Bad request\n */\n 400: unknown;\n /**\n * Unauthorized\n */\n 401: unknown;\n /**\n * Component not found\n */\n 404: unknown;\n};\n\nexport type UpdateResponses = {\n /**\n * Component updated\n */\n 200: {\n component?: Component2;\n };\n};\n\nexport type UpdateResponse = UpdateResponses[keyof UpdateResponses];\n\nexport type RenameAttributeData = {\n body?: never;\n path: {\n /**\n * The ID of the Storyblok space (can be integer or string)\n */\n space_id: number | string;\n /**\n * The ID of the component (can be integer or string)\n */\n component_id: number | string;\n };\n query: {\n /**\n * Current name of the attribute\n */\n old_name: string;\n /**\n * New name for the attribute\n */\n new_name: string;\n /**\n * Optional story ID to update the attribute in a specific story\n */\n story_id?: number;\n };\n url: '/v1/spaces/{space_id}/components/{component_id}/rename_attribute';\n};\n\nexport type RenameAttributeErrors = {\n /**\n * Bad request\n */\n 400: unknown;\n /**\n * Unauthorized\n */\n 401: unknown;\n /**\n * Component not found\n */\n 404: unknown;\n};\n\nexport type RenameAttributeResponses = {\n /**\n * Attribute renamed successfully\n */\n 204: void;\n};\n\nexport type RenameAttributeResponse = RenameAttributeResponses[keyof RenameAttributeResponses];\n\nexport type RestoreData = {\n body?: never;\n path: {\n /**\n * The ID of the Storyblok space (can be integer or string)\n */\n space_id: number | string;\n /**\n * The ID of the component (can be integer or string)\n */\n component_id: number | string;\n };\n query?: never;\n url: '/v1/spaces/{space_id}/components/{component_id}/restore';\n};\n\nexport type RestoreErrors = {\n /**\n * Bad request\n */\n 400: unknown;\n /**\n * Unauthorized\n */\n 401: unknown;\n /**\n * Component not found\n */\n 404: unknown;\n};\n\nexport type RestoreResponses = {\n /**\n * Component restored\n */\n 200: {\n component?: Component2;\n };\n};\n\nexport type RestoreResponse = RestoreResponses[keyof RestoreResponses];\n\nexport type BulkMoveData = {\n body: {\n /**\n * Array of component IDs to update\n */\n ids: Array<number>;\n component: {\n /**\n * ID of the component group to assign components to\n */\n component_group_id: number;\n };\n };\n path: {\n /**\n * The ID of the Storyblok space (can be integer or string)\n */\n space_id: number | string;\n };\n query?: never;\n url: '/v1/spaces/{space_id}/components/bulk_update';\n};\n\nexport type BulkMoveErrors = {\n /**\n * Bad request\n */\n 400: unknown;\n /**\n * Unauthorized\n */\n 401: unknown;\n /**\n * Component group not found\n */\n 404: unknown;\n};\n\nexport type BulkMoveResponses = {\n /**\n * Components updated successfully\n */\n 200: {\n /**\n * Success message\n */\n message?: string;\n };\n};\n\nexport type BulkMoveResponse = BulkMoveResponses[keyof BulkMoveResponses];\n\nexport type VersionsData = {\n body?: never;\n path: {\n /**\n * The ID of the Storyblok space (can be integer or string)\n */\n space_id: number | string;\n };\n query?: {\n /**\n * Page number\n */\n page?: number;\n /**\n * Number of items per page. Default is 25.\n */\n per_page?: number;\n /**\n * Model type. Must be 'components' for component versions.\n */\n model?: 'components' | 'stories';\n /**\n * Component ID when model is 'components'\n */\n model_id?: string;\n /**\n * Use version 2 system for retrieving versions\n */\n versions_v2?: boolean;\n };\n url: '/v1/spaces/{space_id}/versions';\n};\n\nexport type VersionsErrors = {\n /**\n * Bad request\n */\n 400: unknown;\n /**\n * Unauthorized\n */\n 401: unknown;\n /**\n * Component not found\n */\n 404: unknown;\n};\n\nexport type VersionsResponses = {\n /**\n * Component versions\n */\n 200: {\n versions?: Array<{\n id?: number;\n event?: string;\n created_at?: string;\n author_id?: number;\n item_id?: number;\n author?: string;\n is_draft?: boolean;\n }>;\n };\n};\n\nexport type VersionsResponse = VersionsResponses[keyof VersionsResponses];\n\nexport type VersionData = {\n body?: never;\n path: {\n /**\n * The ID of the Storyblok space (can be integer or string)\n */\n space_id: number | string;\n /**\n * The ID of the component (can be integer or string)\n */\n component_id: number | string;\n /**\n * Version ID of the component\n */\n version_id: number;\n };\n query?: never;\n url: '/v1/spaces/{space_id}/components/{component_id}/component_versions/{version_id}';\n};\n\nexport type VersionErrors = {\n /**\n * Bad request\n */\n 400: unknown;\n /**\n * Unauthorized\n */\n 401: unknown;\n /**\n * Component or version not found\n */\n 404: unknown;\n};\n\nexport type VersionResponses = {\n /**\n * Component version details\n */\n 200: {\n component_version?: {\n schema?: {\n [key: string]: unknown;\n };\n };\n };\n};\n\nexport type VersionResponse = VersionResponses[keyof VersionResponses];\n\nexport type RestoreVersionData = {\n body: {\n model?: string;\n model_id?: string;\n };\n path: {\n /**\n * The ID of the Storyblok space (can be integer or string)\n */\n space_id: number | string;\n /**\n * ID of the component version\n */\n version_id: number;\n };\n query?: never;\n url: '/v1/spaces/{space_id}/versions/{version_id}';\n};\n\nexport type RestoreVersionErrors = {\n /**\n * Bad request\n */\n 400: unknown;\n /**\n * Unauthorized\n */\n 401: unknown;\n /**\n * Component or version not found\n */\n 404: unknown;\n};\n\nexport type RestoreVersionResponses = {\n /**\n * Component version restored\n */\n 200: {\n component?: Component2;\n };\n};\n\nexport type RestoreVersionResponse = RestoreVersionResponses[keyof RestoreVersionResponses];\n\nexport type ClientOptions = {\n baseUrl: 'https://mapi.storyblok.com' | 'https://api-us.storyblok.com' | 'https://api-ca.storyblok.com' | 'https://api-ap.storyblok.com' | 'https://app.storyblok.cn' | (string & {});\n};"],"mappings":""}
@@ -1,5 +1,5 @@
1
1
  declare namespace types_gen_d_exports {
2
- export { ClientOptions, CreateData, CreateErrors, CreateResponse, CreateResponses, Datasource, DeleteData, DeleteErrors, DeleteResponse, DeleteResponses, GetData, GetErrors, GetResponse, GetResponses, ListData, ListErrors, ListResponse, ListResponses, SpaceId, UpdateData, UpdateErrors, UpdateResponse, UpdateResponses };
2
+ export { ClientOptions, CreateData, CreateErrors, CreateResponse, CreateResponses, Datasource, DeleteData, DeleteErrors, DeleteResponse, DeleteResponses, GetData, GetErrors, GetResponse, GetResponses, ListData, ListErrors, ListResponse, ListResponses, Page, PerPage, SpaceId, UpdateData, UpdateErrors, UpdateResponse, UpdateResponses };
3
3
  }
4
4
  type Datasource = {
5
5
  /**
@@ -56,6 +56,14 @@ type Datasource = {
56
56
  * The ID of the Storyblok space (can be integer or string)
57
57
  */
58
58
  type SpaceId = number | string;
59
+ /**
60
+ * Page number for pagination. Default is 1.
61
+ */
62
+ type Page = number;
63
+ /**
64
+ * Number of items per page. Default is 25.
65
+ */
66
+ type PerPage = number;
59
67
  type ListData = {
60
68
  body?: never;
61
69
  path: {
@@ -65,6 +73,14 @@ type ListData = {
65
73
  space_id: number | string;
66
74
  };
67
75
  query?: {
76
+ /**
77
+ * Page number for pagination. Default is 1.
78
+ */
79
+ page?: number;
80
+ /**
81
+ * Number of items per page. Default is 25.
82
+ */
83
+ per_page?: number;
68
84
  /**
69
85
  * Search by name of datasources
70
86
  */
@@ -253,5 +269,5 @@ type ClientOptions = {
253
269
  baseUrl: 'https://mapi.storyblok.com' | 'https://api-us.storyblok.com' | 'https://api-ca.storyblok.com' | 'https://api-ap.storyblok.com' | 'https://app.storyblok.cn' | (string & {});
254
270
  };
255
271
  //#endregion
256
- export { ClientOptions, CreateData, CreateErrors, CreateResponse, CreateResponses, Datasource, DeleteData, DeleteErrors, DeleteResponse, DeleteResponses, GetData, GetErrors, GetResponse, GetResponses, ListData, ListErrors, ListResponse, ListResponses, SpaceId, UpdateData, UpdateErrors, UpdateResponse, UpdateResponses, types_gen_d_exports };
272
+ export { ClientOptions, CreateData, CreateErrors, CreateResponse, CreateResponses, Datasource, DeleteData, DeleteErrors, DeleteResponse, DeleteResponses, GetData, GetErrors, GetResponse, GetResponses, ListData, ListErrors, ListResponse, ListResponses, Page, PerPage, SpaceId, UpdateData, UpdateErrors, UpdateResponse, UpdateResponses, types_gen_d_exports };
257
273
  //# sourceMappingURL=types.gen.d.mts.map