@storyblok/management-api-client 0.1.1 → 0.1.2

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.
Files changed (41) hide show
  1. package/dist/generated/assets/types.gen.d.mts +14 -2
  2. package/dist/generated/assets/types.gen.d.ts +14 -2
  3. package/dist/generated/assets/types.gen.js.map +1 -1
  4. package/dist/generated/assets/types.gen.mjs.map +1 -1
  5. package/dist/generated/component_folders/types.gen.d.mts +8 -28
  6. package/dist/generated/component_folders/types.gen.d.ts +8 -28
  7. package/dist/generated/component_folders/types.gen.js.map +1 -1
  8. package/dist/generated/component_folders/types.gen.mjs.map +1 -1
  9. package/dist/generated/components/types.gen.d.mts +19 -7
  10. package/dist/generated/components/types.gen.d.ts +19 -7
  11. package/dist/generated/components/types.gen.js.map +1 -1
  12. package/dist/generated/components/types.gen.mjs.map +1 -1
  13. package/dist/generated/datasource_entries/types.gen.d.mts +26 -42
  14. package/dist/generated/datasource_entries/types.gen.d.ts +26 -42
  15. package/dist/generated/datasource_entries/types.gen.js.map +1 -1
  16. package/dist/generated/datasource_entries/types.gen.mjs.map +1 -1
  17. package/dist/generated/datasources/types.gen.d.mts +13 -59
  18. package/dist/generated/datasources/types.gen.d.ts +13 -59
  19. package/dist/generated/datasources/types.gen.js.map +1 -1
  20. package/dist/generated/datasources/types.gen.mjs.map +1 -1
  21. package/dist/generated/internal_tags/types.gen.d.mts +14 -2
  22. package/dist/generated/internal_tags/types.gen.d.ts +14 -2
  23. package/dist/generated/internal_tags/types.gen.js.map +1 -1
  24. package/dist/generated/internal_tags/types.gen.mjs.map +1 -1
  25. package/dist/generated/presets/types.gen.d.mts +10 -80
  26. package/dist/generated/presets/types.gen.d.ts +10 -80
  27. package/dist/generated/presets/types.gen.js.map +1 -1
  28. package/dist/generated/presets/types.gen.mjs.map +1 -1
  29. package/dist/generated/spaces/types.gen.d.mts +71 -0
  30. package/dist/generated/spaces/types.gen.d.ts +71 -0
  31. package/dist/generated/spaces/types.gen.js.map +1 -1
  32. package/dist/generated/spaces/types.gen.mjs.map +1 -1
  33. package/dist/generated/stories/types.gen.d.mts +30 -17
  34. package/dist/generated/stories/types.gen.d.ts +30 -17
  35. package/dist/generated/stories/types.gen.js.map +1 -1
  36. package/dist/generated/stories/types.gen.mjs.map +1 -1
  37. package/dist/generated/users/types.gen.d.mts +10 -113
  38. package/dist/generated/users/types.gen.d.ts +10 -113
  39. package/dist/generated/users/types.gen.js.map +1 -1
  40. package/dist/generated/users/types.gen.mjs.map +1 -1
  41. package/package.json +2 -2
@@ -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, 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, SignedResponseObject, SpaceId, UpdateData, UpdateErrors, UpdateResponse, UpdateResponses, UploadData, UploadErrors, UploadResponse, UploadResponses };
3
3
  }
4
4
  /**
5
5
  * A single asset object
@@ -134,6 +134,10 @@ type SignedResponseObject = {
134
134
  * The ID of the Storyblok space (can be integer or string)
135
135
  */
136
136
  type SpaceId = number | string;
137
+ /**
138
+ * Page number for pagination. Default is 1.
139
+ */
140
+ type Page = number;
137
141
  /**
138
142
  * The ID of the asset (can be integer or string)
139
143
  */
@@ -147,6 +151,14 @@ type ListData = {
147
151
  space_id: number | string;
148
152
  };
149
153
  query?: {
154
+ /**
155
+ * Page number for pagination. Default is 1.
156
+ */
157
+ page?: number;
158
+ /**
159
+ * Number of assets per page. Default is 25, maximum is 100.
160
+ */
161
+ per_page?: number;
150
162
  /**
151
163
  * Provide the numeric id of a folder to filter the assets by a specific folder. Use value -1 to retrieve deleted assets.
152
164
  */
@@ -595,5 +607,5 @@ type ClientOptions = {
595
607
  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 & {});
596
608
  };
597
609
  //#endregion
598
- 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, SignedResponseObject, SpaceId, UpdateData, UpdateErrors, UpdateResponse, UpdateResponses, UploadData, UploadErrors, UploadResponse, UploadResponses, types_gen_d_exports };
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 };
599
611
  //# 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, 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, SignedResponseObject, SpaceId, UpdateData, UpdateErrors, UpdateResponse, UpdateResponses, UploadData, UploadErrors, UploadResponse, UploadResponses };
3
3
  }
4
4
  /**
5
5
  * A single asset object
@@ -134,6 +134,10 @@ type SignedResponseObject = {
134
134
  * The ID of the Storyblok space (can be integer or string)
135
135
  */
136
136
  type SpaceId = number | string;
137
+ /**
138
+ * Page number for pagination. Default is 1.
139
+ */
140
+ type Page = number;
137
141
  /**
138
142
  * The ID of the asset (can be integer or string)
139
143
  */
@@ -147,6 +151,14 @@ type ListData = {
147
151
  space_id: number | string;
148
152
  };
149
153
  query?: {
154
+ /**
155
+ * Page number for pagination. Default is 1.
156
+ */
157
+ page?: number;
158
+ /**
159
+ * Number of assets per page. Default is 25, maximum is 100.
160
+ */
161
+ per_page?: number;
150
162
  /**
151
163
  * Provide the numeric id of a folder to filter the assets by a specific folder. Use value -1 to retrieve deleted assets.
152
164
  */
@@ -595,5 +607,5 @@ type ClientOptions = {
595
607
  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 & {});
596
608
  };
597
609
  //#endregion
598
- 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, SignedResponseObject, SpaceId, UpdateData, UpdateErrors, UpdateResponse, UpdateResponses, UploadData, UploadErrors, UploadResponse, UploadResponses, types_gen_d_exports };
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 };
599
611
  //# 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 * 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 * 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 * 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 +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 * 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 * 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 * 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,19 +1,19 @@
1
1
  declare namespace types_gen_d_exports {
2
- export { ClientOptions, ComponentFolder, ComponentFolderInput, ComponentFolderUpdateInput, ComponentGroupId, CreateData, CreateErrors, CreateResponse, CreateResponses, DeleteData, DeleteErrors, DeleteResponse, DeleteResponses, GetData, GetErrors, GetResponse, GetResponses, ListData, ListErrors, ListResponse, ListResponses, SpaceId, UpdateData, UpdateErrors, UpdateResponse, UpdateResponses };
2
+ export { ClientOptions, ComponentFolder, ComponentGroupId, CreateData, CreateErrors, CreateResponse, CreateResponses, DeleteData, DeleteErrors, DeleteResponse, DeleteResponses, GetData, GetErrors, GetResponse, GetResponses, ListData, ListErrors, ListResponse, ListResponses, SpaceId, UpdateData, UpdateErrors, UpdateResponse, UpdateResponses };
3
3
  }
4
4
  type ComponentFolder = {
5
5
  /**
6
6
  * The id of the component folder
7
7
  */
8
- id?: number;
8
+ readonly id: number;
9
9
  /**
10
10
  * The name of the component folder
11
11
  */
12
- name?: string;
12
+ name: string;
13
13
  /**
14
14
  * The UUID of the component folder
15
15
  */
16
- uuid?: string;
16
+ readonly uuid: string;
17
17
  /**
18
18
  * ID of the parent folder
19
19
  */
@@ -21,27 +21,7 @@ type ComponentFolder = {
21
21
  /**
22
22
  * The UUID of the parent folder
23
23
  */
24
- parent_uuid?: string;
25
- };
26
- type ComponentFolderInput = {
27
- /**
28
- * Name of the group
29
- */
30
- name: string;
31
- /**
32
- * ID of the parent folder
33
- */
34
- parent_id?: number;
35
- };
36
- type ComponentFolderUpdateInput = {
37
- /**
38
- * Name of the group
39
- */
40
- name?: string;
41
- /**
42
- * ID of the parent folder
43
- */
44
- parent_id?: number;
24
+ readonly parent_uuid?: string;
45
25
  };
46
26
  /**
47
27
  * The ID of the Storyblok space (can be integer or string)
@@ -96,7 +76,7 @@ type ListResponses = {
96
76
  type ListResponse = ListResponses[keyof ListResponses];
97
77
  type CreateData = {
98
78
  body: {
99
- component_group?: ComponentFolderInput;
79
+ component_group?: ComponentFolder;
100
80
  };
101
81
  path: {
102
82
  /**
@@ -206,7 +186,7 @@ type GetResponses = {
206
186
  type GetResponse = GetResponses[keyof GetResponses];
207
187
  type UpdateData = {
208
188
  body: {
209
- component_group?: ComponentFolderUpdateInput;
189
+ component_group?: ComponentFolder;
210
190
  };
211
191
  path: {
212
192
  /**
@@ -248,5 +228,5 @@ type ClientOptions = {
248
228
  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 & {});
249
229
  };
250
230
  //#endregion
251
- export { ClientOptions, ComponentFolder, ComponentFolderInput, ComponentFolderUpdateInput, ComponentGroupId, CreateData, CreateErrors, CreateResponse, CreateResponses, DeleteData, DeleteErrors, DeleteResponse, DeleteResponses, GetData, GetErrors, GetResponse, GetResponses, ListData, ListErrors, ListResponse, ListResponses, SpaceId, UpdateData, UpdateErrors, UpdateResponse, UpdateResponses, types_gen_d_exports };
231
+ export { ClientOptions, ComponentFolder, ComponentGroupId, CreateData, CreateErrors, CreateResponse, CreateResponses, DeleteData, DeleteErrors, DeleteResponse, DeleteResponses, GetData, GetErrors, GetResponse, GetResponses, ListData, ListErrors, ListResponse, ListResponses, SpaceId, UpdateData, UpdateErrors, UpdateResponse, UpdateResponses, types_gen_d_exports };
252
232
  //# sourceMappingURL=types.gen.d.mts.map
@@ -1,19 +1,19 @@
1
1
  declare namespace types_gen_d_exports {
2
- export { ClientOptions, ComponentFolder, ComponentFolderInput, ComponentFolderUpdateInput, ComponentGroupId, CreateData, CreateErrors, CreateResponse, CreateResponses, DeleteData, DeleteErrors, DeleteResponse, DeleteResponses, GetData, GetErrors, GetResponse, GetResponses, ListData, ListErrors, ListResponse, ListResponses, SpaceId, UpdateData, UpdateErrors, UpdateResponse, UpdateResponses };
2
+ export { ClientOptions, ComponentFolder, ComponentGroupId, CreateData, CreateErrors, CreateResponse, CreateResponses, DeleteData, DeleteErrors, DeleteResponse, DeleteResponses, GetData, GetErrors, GetResponse, GetResponses, ListData, ListErrors, ListResponse, ListResponses, SpaceId, UpdateData, UpdateErrors, UpdateResponse, UpdateResponses };
3
3
  }
4
4
  type ComponentFolder = {
5
5
  /**
6
6
  * The id of the component folder
7
7
  */
8
- id?: number;
8
+ readonly id: number;
9
9
  /**
10
10
  * The name of the component folder
11
11
  */
12
- name?: string;
12
+ name: string;
13
13
  /**
14
14
  * The UUID of the component folder
15
15
  */
16
- uuid?: string;
16
+ readonly uuid: string;
17
17
  /**
18
18
  * ID of the parent folder
19
19
  */
@@ -21,27 +21,7 @@ type ComponentFolder = {
21
21
  /**
22
22
  * The UUID of the parent folder
23
23
  */
24
- parent_uuid?: string;
25
- };
26
- type ComponentFolderInput = {
27
- /**
28
- * Name of the group
29
- */
30
- name: string;
31
- /**
32
- * ID of the parent folder
33
- */
34
- parent_id?: number;
35
- };
36
- type ComponentFolderUpdateInput = {
37
- /**
38
- * Name of the group
39
- */
40
- name?: string;
41
- /**
42
- * ID of the parent folder
43
- */
44
- parent_id?: number;
24
+ readonly parent_uuid?: string;
45
25
  };
46
26
  /**
47
27
  * The ID of the Storyblok space (can be integer or string)
@@ -96,7 +76,7 @@ type ListResponses = {
96
76
  type ListResponse = ListResponses[keyof ListResponses];
97
77
  type CreateData = {
98
78
  body: {
99
- component_group?: ComponentFolderInput;
79
+ component_group?: ComponentFolder;
100
80
  };
101
81
  path: {
102
82
  /**
@@ -206,7 +186,7 @@ type GetResponses = {
206
186
  type GetResponse = GetResponses[keyof GetResponses];
207
187
  type UpdateData = {
208
188
  body: {
209
- component_group?: ComponentFolderUpdateInput;
189
+ component_group?: ComponentFolder;
210
190
  };
211
191
  path: {
212
192
  /**
@@ -248,5 +228,5 @@ type ClientOptions = {
248
228
  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 & {});
249
229
  };
250
230
  //#endregion
251
- export { ClientOptions, ComponentFolder, ComponentFolderInput, ComponentFolderUpdateInput, ComponentGroupId, CreateData, CreateErrors, CreateResponse, CreateResponses, DeleteData, DeleteErrors, DeleteResponse, DeleteResponses, GetData, GetErrors, GetResponse, GetResponses, ListData, ListErrors, ListResponse, ListResponses, SpaceId, UpdateData, UpdateErrors, UpdateResponse, UpdateResponses, types_gen_d_exports };
231
+ export { ClientOptions, ComponentFolder, ComponentGroupId, CreateData, CreateErrors, CreateResponse, CreateResponses, DeleteData, DeleteErrors, DeleteResponse, DeleteResponses, GetData, GetErrors, GetResponse, GetResponses, ListData, ListErrors, ListResponse, ListResponses, SpaceId, UpdateData, UpdateErrors, UpdateResponse, UpdateResponses, types_gen_d_exports };
252
232
  //# sourceMappingURL=types.gen.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.gen.js","names":[],"sources":["../../../src/generated/component_folders/types.gen.ts"],"sourcesContent":["// This file is auto-generated by @hey-api/openapi-ts\n\nexport type ComponentFolder = {\n /**\n * The id of the component folder\n */\n id?: number;\n /**\n * The name of the component folder\n */\n name?: string;\n /**\n * The UUID of the component folder\n */\n uuid?: string;\n /**\n * ID of the parent folder\n */\n parent_id?: number;\n /**\n * The UUID of the parent folder\n */\n parent_uuid?: string;\n};\n\nexport type ComponentFolderInput = {\n /**\n * Name of the group\n */\n name: string;\n /**\n * ID of the parent folder\n */\n parent_id?: number;\n};\n\nexport type ComponentFolderUpdateInput = {\n /**\n * Name of the group\n */\n name?: string;\n /**\n * ID of the parent folder\n */\n parent_id?: number;\n};\n\n/**\n * The ID of the Storyblok space (can be integer or string)\n */\nexport type SpaceId = number | string;\n\n/**\n * The component folder ID (can be integer or string)\n */\nexport type ComponentGroupId = 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 * Search by group's name\n */\n search?: string;\n /**\n * Filter by parent id\n */\n with_parent?: number;\n };\n url: '/v1/spaces/{space_id}/component_groups';\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 component folders\n */\n 200: {\n component_groups?: Array<ComponentFolder>;\n };\n};\n\nexport type ListResponse = ListResponses[keyof ListResponses];\n\nexport type CreateData = {\n body: {\n component_group?: ComponentFolderInput;\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}/component_groups';\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 folder created successfully\n */\n 201: {\n component_group?: ComponentFolder;\n };\n};\n\nexport type CreateResponse = CreateResponses[keyof CreateResponses];\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 component folder ID (can be integer or string)\n */\n component_group_id: number | string;\n };\n query?: never;\n url: '/v1/spaces/{space_id}/component_groups/{component_group_id}';\n};\n\nexport type DeleteErrors = {\n /**\n * Bad request\n */\n 400: unknown;\n /**\n * Unauthorized\n */\n 401: unknown;\n /**\n * Component folder not found\n */\n 404: unknown;\n};\n\nexport type DeleteResponses = {\n /**\n * Component folder deleted successfully\n */\n 204: void;\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 component folder ID (can be integer or string)\n */\n component_group_id: number | string;\n };\n query?: never;\n url: '/v1/spaces/{space_id}/component_groups/{component_group_id}';\n};\n\nexport type GetErrors = {\n /**\n * Bad request\n */\n 400: unknown;\n /**\n * Unauthorized\n */\n 401: unknown;\n /**\n * Component folder not found\n */\n 404: unknown;\n};\n\nexport type GetResponses = {\n /**\n * Component folder details\n */\n 200: {\n component_group?: ComponentFolder;\n };\n};\n\nexport type GetResponse = GetResponses[keyof GetResponses];\n\nexport type UpdateData = {\n body: {\n component_group?: ComponentFolderUpdateInput;\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 component folder ID (can be integer or string)\n */\n component_group_id: number | string;\n };\n query?: never;\n url: '/v1/spaces/{space_id}/component_groups/{component_group_id}';\n};\n\nexport type UpdateErrors = {\n /**\n * Bad request\n */\n 400: unknown;\n /**\n * Unauthorized\n */\n 401: unknown;\n /**\n * Component folder not found\n */\n 404: unknown;\n};\n\nexport type UpdateResponses = {\n /**\n * Component folder updated successfully\n */\n 200: {\n component_group?: ComponentFolder;\n };\n};\n\nexport type UpdateResponse = UpdateResponses[keyof UpdateResponses];\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/component_folders/types.gen.ts"],"sourcesContent":["// This file is auto-generated by @hey-api/openapi-ts\n\nexport type ComponentFolder = {\n /**\n * The id of the component folder\n */\n readonly id: number;\n /**\n * The name of the component folder\n */\n name: string;\n /**\n * The UUID of the component folder\n */\n readonly uuid: string;\n /**\n * ID of the parent folder\n */\n parent_id?: number;\n /**\n * The UUID of the parent folder\n */\n readonly parent_uuid?: 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 * The component folder ID (can be integer or string)\n */\nexport type ComponentGroupId = 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 * Search by group's name\n */\n search?: string;\n /**\n * Filter by parent id\n */\n with_parent?: number;\n };\n url: '/v1/spaces/{space_id}/component_groups';\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 component folders\n */\n 200: {\n component_groups?: Array<ComponentFolder>;\n };\n};\n\nexport type ListResponse = ListResponses[keyof ListResponses];\n\nexport type CreateData = {\n body: {\n component_group?: ComponentFolder;\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}/component_groups';\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 folder created successfully\n */\n 201: {\n component_group?: ComponentFolder;\n };\n};\n\nexport type CreateResponse = CreateResponses[keyof CreateResponses];\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 component folder ID (can be integer or string)\n */\n component_group_id: number | string;\n };\n query?: never;\n url: '/v1/spaces/{space_id}/component_groups/{component_group_id}';\n};\n\nexport type DeleteErrors = {\n /**\n * Bad request\n */\n 400: unknown;\n /**\n * Unauthorized\n */\n 401: unknown;\n /**\n * Component folder not found\n */\n 404: unknown;\n};\n\nexport type DeleteResponses = {\n /**\n * Component folder deleted successfully\n */\n 204: void;\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 component folder ID (can be integer or string)\n */\n component_group_id: number | string;\n };\n query?: never;\n url: '/v1/spaces/{space_id}/component_groups/{component_group_id}';\n};\n\nexport type GetErrors = {\n /**\n * Bad request\n */\n 400: unknown;\n /**\n * Unauthorized\n */\n 401: unknown;\n /**\n * Component folder not found\n */\n 404: unknown;\n};\n\nexport type GetResponses = {\n /**\n * Component folder details\n */\n 200: {\n component_group?: ComponentFolder;\n };\n};\n\nexport type GetResponse = GetResponses[keyof GetResponses];\n\nexport type UpdateData = {\n body: {\n component_group?: ComponentFolder;\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 component folder ID (can be integer or string)\n */\n component_group_id: number | string;\n };\n query?: never;\n url: '/v1/spaces/{space_id}/component_groups/{component_group_id}';\n};\n\nexport type UpdateErrors = {\n /**\n * Bad request\n */\n 400: unknown;\n /**\n * Unauthorized\n */\n 401: unknown;\n /**\n * Component folder not found\n */\n 404: unknown;\n};\n\nexport type UpdateResponses = {\n /**\n * Component folder updated successfully\n */\n 200: {\n component_group?: ComponentFolder;\n };\n};\n\nexport type UpdateResponse = UpdateResponses[keyof UpdateResponses];\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/component_folders/types.gen.ts"],"sourcesContent":["// This file is auto-generated by @hey-api/openapi-ts\n\nexport type ComponentFolder = {\n /**\n * The id of the component folder\n */\n id?: number;\n /**\n * The name of the component folder\n */\n name?: string;\n /**\n * The UUID of the component folder\n */\n uuid?: string;\n /**\n * ID of the parent folder\n */\n parent_id?: number;\n /**\n * The UUID of the parent folder\n */\n parent_uuid?: string;\n};\n\nexport type ComponentFolderInput = {\n /**\n * Name of the group\n */\n name: string;\n /**\n * ID of the parent folder\n */\n parent_id?: number;\n};\n\nexport type ComponentFolderUpdateInput = {\n /**\n * Name of the group\n */\n name?: string;\n /**\n * ID of the parent folder\n */\n parent_id?: number;\n};\n\n/**\n * The ID of the Storyblok space (can be integer or string)\n */\nexport type SpaceId = number | string;\n\n/**\n * The component folder ID (can be integer or string)\n */\nexport type ComponentGroupId = 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 * Search by group's name\n */\n search?: string;\n /**\n * Filter by parent id\n */\n with_parent?: number;\n };\n url: '/v1/spaces/{space_id}/component_groups';\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 component folders\n */\n 200: {\n component_groups?: Array<ComponentFolder>;\n };\n};\n\nexport type ListResponse = ListResponses[keyof ListResponses];\n\nexport type CreateData = {\n body: {\n component_group?: ComponentFolderInput;\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}/component_groups';\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 folder created successfully\n */\n 201: {\n component_group?: ComponentFolder;\n };\n};\n\nexport type CreateResponse = CreateResponses[keyof CreateResponses];\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 component folder ID (can be integer or string)\n */\n component_group_id: number | string;\n };\n query?: never;\n url: '/v1/spaces/{space_id}/component_groups/{component_group_id}';\n};\n\nexport type DeleteErrors = {\n /**\n * Bad request\n */\n 400: unknown;\n /**\n * Unauthorized\n */\n 401: unknown;\n /**\n * Component folder not found\n */\n 404: unknown;\n};\n\nexport type DeleteResponses = {\n /**\n * Component folder deleted successfully\n */\n 204: void;\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 component folder ID (can be integer or string)\n */\n component_group_id: number | string;\n };\n query?: never;\n url: '/v1/spaces/{space_id}/component_groups/{component_group_id}';\n};\n\nexport type GetErrors = {\n /**\n * Bad request\n */\n 400: unknown;\n /**\n * Unauthorized\n */\n 401: unknown;\n /**\n * Component folder not found\n */\n 404: unknown;\n};\n\nexport type GetResponses = {\n /**\n * Component folder details\n */\n 200: {\n component_group?: ComponentFolder;\n };\n};\n\nexport type GetResponse = GetResponses[keyof GetResponses];\n\nexport type UpdateData = {\n body: {\n component_group?: ComponentFolderUpdateInput;\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 component folder ID (can be integer or string)\n */\n component_group_id: number | string;\n };\n query?: never;\n url: '/v1/spaces/{space_id}/component_groups/{component_group_id}';\n};\n\nexport type UpdateErrors = {\n /**\n * Bad request\n */\n 400: unknown;\n /**\n * Unauthorized\n */\n 401: unknown;\n /**\n * Component folder not found\n */\n 404: unknown;\n};\n\nexport type UpdateResponses = {\n /**\n * Component folder updated successfully\n */\n 200: {\n component_group?: ComponentFolder;\n };\n};\n\nexport type UpdateResponse = UpdateResponses[keyof UpdateResponses];\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/component_folders/types.gen.ts"],"sourcesContent":["// This file is auto-generated by @hey-api/openapi-ts\n\nexport type ComponentFolder = {\n /**\n * The id of the component folder\n */\n readonly id: number;\n /**\n * The name of the component folder\n */\n name: string;\n /**\n * The UUID of the component folder\n */\n readonly uuid: string;\n /**\n * ID of the parent folder\n */\n parent_id?: number;\n /**\n * The UUID of the parent folder\n */\n readonly parent_uuid?: 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 * The component folder ID (can be integer or string)\n */\nexport type ComponentGroupId = 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 * Search by group's name\n */\n search?: string;\n /**\n * Filter by parent id\n */\n with_parent?: number;\n };\n url: '/v1/spaces/{space_id}/component_groups';\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 component folders\n */\n 200: {\n component_groups?: Array<ComponentFolder>;\n };\n};\n\nexport type ListResponse = ListResponses[keyof ListResponses];\n\nexport type CreateData = {\n body: {\n component_group?: ComponentFolder;\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}/component_groups';\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 folder created successfully\n */\n 201: {\n component_group?: ComponentFolder;\n };\n};\n\nexport type CreateResponse = CreateResponses[keyof CreateResponses];\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 component folder ID (can be integer or string)\n */\n component_group_id: number | string;\n };\n query?: never;\n url: '/v1/spaces/{space_id}/component_groups/{component_group_id}';\n};\n\nexport type DeleteErrors = {\n /**\n * Bad request\n */\n 400: unknown;\n /**\n * Unauthorized\n */\n 401: unknown;\n /**\n * Component folder not found\n */\n 404: unknown;\n};\n\nexport type DeleteResponses = {\n /**\n * Component folder deleted successfully\n */\n 204: void;\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 component folder ID (can be integer or string)\n */\n component_group_id: number | string;\n };\n query?: never;\n url: '/v1/spaces/{space_id}/component_groups/{component_group_id}';\n};\n\nexport type GetErrors = {\n /**\n * Bad request\n */\n 400: unknown;\n /**\n * Unauthorized\n */\n 401: unknown;\n /**\n * Component folder not found\n */\n 404: unknown;\n};\n\nexport type GetResponses = {\n /**\n * Component folder details\n */\n 200: {\n component_group?: ComponentFolder;\n };\n};\n\nexport type GetResponse = GetResponses[keyof GetResponses];\n\nexport type UpdateData = {\n body: {\n component_group?: ComponentFolder;\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 component folder ID (can be integer or string)\n */\n component_group_id: number | string;\n };\n query?: never;\n url: '/v1/spaces/{space_id}/component_groups/{component_group_id}';\n};\n\nexport type UpdateErrors = {\n /**\n * Bad request\n */\n 400: unknown;\n /**\n * Unauthorized\n */\n 401: unknown;\n /**\n * Component folder not found\n */\n 404: unknown;\n};\n\nexport type UpdateResponses = {\n /**\n * Component folder updated successfully\n */\n 200: {\n component_group?: ComponentFolder;\n };\n};\n\nexport type UpdateResponse = UpdateResponses[keyof UpdateResponses];\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, 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, 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
  /**
@@ -211,11 +211,11 @@ type Component2 = {
211
211
  /**
212
212
  * The numeric ID
213
213
  */
214
- readonly id?: number;
214
+ readonly id: number;
215
215
  /**
216
216
  * Technical name used for component property in entries
217
217
  */
218
- name?: string;
218
+ name: string;
219
219
  /**
220
220
  * Name that will be used in the editor interface
221
221
  */
@@ -223,15 +223,15 @@ type Component2 = {
223
223
  /**
224
224
  * Creation date
225
225
  */
226
- created_at?: string;
226
+ readonly created_at: string;
227
227
  /**
228
228
  * Latest update date
229
229
  */
230
- updated_at?: string;
230
+ readonly updated_at: string;
231
231
  /**
232
232
  * Component schema definition containing fields and their configurations
233
233
  */
234
- schema?: {
234
+ schema: {
235
235
  /**
236
236
  * Unique identifier field configuration
237
237
  */
@@ -349,6 +349,10 @@ type Component2 = {
349
349
  * The ID of the Storyblok space (can be integer or string)
350
350
  */
351
351
  type SpaceId = number | string;
352
+ /**
353
+ * Page number for pagination. Default is 1.
354
+ */
355
+ type Page = number;
352
356
  /**
353
357
  * The ID of the component (can be integer or string)
354
358
  */
@@ -362,6 +366,14 @@ type ListData = {
362
366
  space_id: number | string;
363
367
  };
364
368
  query?: {
369
+ /**
370
+ * Page number for pagination. Default is 1.
371
+ */
372
+ page?: number;
373
+ /**
374
+ * Number of components per page. Default is 25, maximum is 100.
375
+ */
376
+ per_page?: number;
365
377
  /**
366
378
  * Filter by ids (comma separated)
367
379
  */
@@ -865,5 +877,5 @@ type ClientOptions = {
865
877
  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 & {});
866
878
  };
867
879
  //#endregion
868
- 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, 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 };
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 };
869
881
  //# 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, 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, 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
  /**
@@ -211,11 +211,11 @@ type Component2 = {
211
211
  /**
212
212
  * The numeric ID
213
213
  */
214
- readonly id?: number;
214
+ readonly id: number;
215
215
  /**
216
216
  * Technical name used for component property in entries
217
217
  */
218
- name?: string;
218
+ name: string;
219
219
  /**
220
220
  * Name that will be used in the editor interface
221
221
  */
@@ -223,15 +223,15 @@ type Component2 = {
223
223
  /**
224
224
  * Creation date
225
225
  */
226
- created_at?: string;
226
+ readonly created_at: string;
227
227
  /**
228
228
  * Latest update date
229
229
  */
230
- updated_at?: string;
230
+ readonly updated_at: string;
231
231
  /**
232
232
  * Component schema definition containing fields and their configurations
233
233
  */
234
- schema?: {
234
+ schema: {
235
235
  /**
236
236
  * Unique identifier field configuration
237
237
  */
@@ -349,6 +349,10 @@ type Component2 = {
349
349
  * The ID of the Storyblok space (can be integer or string)
350
350
  */
351
351
  type SpaceId = number | string;
352
+ /**
353
+ * Page number for pagination. Default is 1.
354
+ */
355
+ type Page = number;
352
356
  /**
353
357
  * The ID of the component (can be integer or string)
354
358
  */
@@ -362,6 +366,14 @@ type ListData = {
362
366
  space_id: number | string;
363
367
  };
364
368
  query?: {
369
+ /**
370
+ * Page number for pagination. Default is 1.
371
+ */
372
+ page?: number;
373
+ /**
374
+ * Number of components per page. Default is 25, maximum is 100.
375
+ */
376
+ per_page?: number;
365
377
  /**
366
378
  * Filter by ids (comma separated)
367
379
  */
@@ -865,5 +877,5 @@ type ClientOptions = {
865
877
  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 & {});
866
878
  };
867
879
  //#endregion
868
- 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, 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 };
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 };
869
881
  //# sourceMappingURL=types.gen.d.ts.map