@storyblok/management-api-client 0.1.1 → 0.1.3

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 (53) hide show
  1. package/dist/client/client.d.mts +1 -1
  2. package/dist/client/client.d.ts +1 -1
  3. package/dist/client/client.js +2 -2
  4. package/dist/client/client.js.map +1 -1
  5. package/dist/client/client.mjs +2 -2
  6. package/dist/client/client.mjs.map +1 -1
  7. package/dist/client/types.d.mts +7 -0
  8. package/dist/client/types.d.ts +7 -0
  9. package/dist/generated/assets/types.gen.d.mts +14 -2
  10. package/dist/generated/assets/types.gen.d.ts +14 -2
  11. package/dist/generated/assets/types.gen.js.map +1 -1
  12. package/dist/generated/assets/types.gen.mjs.map +1 -1
  13. package/dist/generated/component_folders/types.gen.d.mts +8 -28
  14. package/dist/generated/component_folders/types.gen.d.ts +8 -28
  15. package/dist/generated/component_folders/types.gen.js.map +1 -1
  16. package/dist/generated/component_folders/types.gen.mjs.map +1 -1
  17. package/dist/generated/components/types.gen.d.mts +19 -7
  18. package/dist/generated/components/types.gen.d.ts +19 -7
  19. package/dist/generated/components/types.gen.js.map +1 -1
  20. package/dist/generated/components/types.gen.mjs.map +1 -1
  21. package/dist/generated/datasource_entries/types.gen.d.mts +26 -42
  22. package/dist/generated/datasource_entries/types.gen.d.ts +26 -42
  23. package/dist/generated/datasource_entries/types.gen.js.map +1 -1
  24. package/dist/generated/datasource_entries/types.gen.mjs.map +1 -1
  25. package/dist/generated/datasources/types.gen.d.mts +13 -59
  26. package/dist/generated/datasources/types.gen.d.ts +13 -59
  27. package/dist/generated/datasources/types.gen.js.map +1 -1
  28. package/dist/generated/datasources/types.gen.mjs.map +1 -1
  29. package/dist/generated/internal_tags/types.gen.d.mts +14 -2
  30. package/dist/generated/internal_tags/types.gen.d.ts +14 -2
  31. package/dist/generated/internal_tags/types.gen.js.map +1 -1
  32. package/dist/generated/internal_tags/types.gen.mjs.map +1 -1
  33. package/dist/generated/presets/types.gen.d.mts +10 -80
  34. package/dist/generated/presets/types.gen.d.ts +10 -80
  35. package/dist/generated/presets/types.gen.js.map +1 -1
  36. package/dist/generated/presets/types.gen.mjs.map +1 -1
  37. package/dist/generated/spaces/types.gen.d.mts +71 -0
  38. package/dist/generated/spaces/types.gen.d.ts +71 -0
  39. package/dist/generated/spaces/types.gen.js.map +1 -1
  40. package/dist/generated/spaces/types.gen.mjs.map +1 -1
  41. package/dist/generated/stories/types.gen.d.mts +30 -17
  42. package/dist/generated/stories/types.gen.d.ts +30 -17
  43. package/dist/generated/stories/types.gen.js.map +1 -1
  44. package/dist/generated/stories/types.gen.mjs.map +1 -1
  45. package/dist/generated/users/types.gen.d.mts +10 -113
  46. package/dist/generated/users/types.gen.d.ts +10 -113
  47. package/dist/generated/users/types.gen.js.map +1 -1
  48. package/dist/generated/users/types.gen.mjs.map +1 -1
  49. package/dist/index.js +19 -17
  50. package/dist/index.js.map +1 -1
  51. package/dist/index.mjs +19 -16
  52. package/dist/index.mjs.map +1 -1
  53. package/package.json +2 -2
@@ -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
@@ -1 +1 @@
1
- {"version":3,"file":"types.gen.js","names":[],"sources":["../../../src/generated/components/types.gen.ts"],"sourcesContent":["// This file is auto-generated by @hey-api/openapi-ts\n\nexport type Component = Component2;\n\n/**\n * A component version object\n */\nexport type ComponentVersion = {\n schema?: unknown;\n};\n\n/**\n * A component schema field object\n */\nexport type ComponentSchemaField = {\n /**\n * Field type (text, textarea, number, boolean, etc.)\n */\n type?: string;\n /**\n * Position of the field\n */\n pos?: number;\n /**\n * Human-readable display name\n */\n display_name?: string;\n /**\n * Whether the field is required\n */\n required?: boolean;\n /**\n * Regular expression for validation\n */\n regex?: string;\n /**\n * Whether the field is translatable\n */\n translatable?: boolean;\n /**\n * Field description\n */\n description?: string;\n /**\n * Default value for the field\n */\n default_value?: string;\n /**\n * Array of datasource entries [{name:\"\", value:\"\"}]; Effects editor only if source=undefined. For field type option.\n */\n options?: Array<{\n _uid?: string;\n name?: string;\n value?: string;\n }>;\n source?: 'option' | 'options' | 'custom';\n /**\n * Folder slug for asset fields\n */\n folder_slug?: string;\n /**\n * Allowed file types for asset fields\n */\n filetypes?: Array<string>;\n /**\n * Maximum value for number fields\n */\n maximum?: number;\n /**\n * Minimum value for number fields\n */\n minimum?: number;\n /**\n * Maximum length for text fields\n */\n maxlength?: number;\n /**\n * Minimum length for text fields\n */\n minlength?: number;\n /**\n * Whether rich markdown is enabled\n */\n rich_markdown?: boolean;\n /**\n * Whether rich text is enabled\n */\n rich_text?: boolean;\n /**\n * Whether markdown is enabled\n */\n markdown?: boolean;\n /**\n * Field size (small, medium, large)\n */\n size?: string;\n /**\n * Field height in pixels\n */\n height?: number;\n /**\n * Field width in pixels\n */\n width?: number;\n /**\n * Whether to use UUID for the field\n */\n use_uuid?: boolean;\n /**\n * Whether to restrict content types\n */\n restrict_content_types?: boolean;\n /**\n * Whether to restrict components\n */\n restrict_components?: boolean;\n /**\n * List of allowed components\n */\n component_whitelist?: Array<string>;\n /**\n * List of allowed component groups\n */\n component_group_whitelist?: Array<string>;\n /**\n * Maximum number of entries\n */\n maximum_entries?: number;\n /**\n * Minimum number of entries\n */\n minimum_entries?: number;\n /**\n * Whether to restrict assets\n */\n restrict_assets?: boolean;\n /**\n * List of allowed asset types\n */\n asset_whitelist?: Array<string>;\n /**\n * Whether to exclude empty option\n */\n exclude_empty_option?: boolean;\n /**\n * Whether to include empty option\n */\n include_empty_option?: boolean;\n /**\n * Datasource slug for datasource fields\n */\n datasource_slug?: string;\n /**\n * Whether multiple values are allowed\n */\n multiple?: boolean;\n /**\n * Custom CSS for the field\n */\n custom_css?: string;\n /**\n * Custom JavaScript for the field\n */\n custom_js?: string;\n /**\n * API connection configuration\n */\n api_connection?: {\n /**\n * API URL\n */\n url?: string;\n /**\n * API headers\n */\n headers?: {\n [key: string]: unknown;\n };\n /**\n * API parameters\n */\n params?: {\n [key: string]: unknown;\n };\n };\n /**\n * Fieldset configuration\n */\n fieldset?: {\n /**\n * Fieldset title\n */\n title?: string;\n /**\n * Fieldset description\n */\n description?: string;\n /**\n * Whether the fieldset is collapsible\n */\n collapsible?: boolean;\n /**\n * Whether the fieldset is collapsed by default\n */\n collapsed?: boolean;\n };\n};\n\n/**\n * A Storyblok component object representing a content type\n */\nexport type Component2 = {\n /**\n * The numeric ID\n */\n readonly id?: number;\n /**\n * Technical name used for component property in entries\n */\n name?: string;\n /**\n * Name that will be used in the editor interface\n */\n display_name?: string;\n /**\n * Creation date\n */\n created_at?: string;\n /**\n * Latest update date\n */\n updated_at?: string;\n /**\n * Component schema definition containing fields and their configurations\n */\n schema?: {\n /**\n * Unique identifier field configuration\n */\n _uid?: {\n [key: string]: unknown;\n };\n /**\n * Component type field configuration\n */\n component?: {\n [key: string]: unknown;\n };\n [key: string]: unknown | {\n [key: string]: unknown;\n } | {\n [key: string]: unknown;\n } | undefined;\n };\n /**\n * URL to the preview image\n */\n image?: string;\n /**\n * The field that is for preview in the interface (Preview Field)\n */\n preview_field?: string;\n /**\n * Whether the component can be used as a root component\n */\n is_root?: boolean;\n /**\n * Preview template for the component\n */\n preview_tmpl?: string;\n /**\n * True if the component is nestable (insertable) in block field types\n */\n is_nestable?: boolean;\n /**\n * An array of presets for this component\n */\n all_presets?: Array<{\n /**\n * The numeric ID of the preset\n */\n id?: number;\n /**\n * Name of the preset\n */\n name?: string;\n /**\n * The ID of the component the preset is for\n */\n component_id?: number;\n /**\n * Link to the preview image of the preset\n */\n image?: string;\n /**\n * Icon selected for the preset\n */\n icon?: string;\n /**\n * Color of the icon selected for the preset\n */\n color?: string;\n /**\n * The description of the preset\n */\n description?: string;\n }>;\n /**\n * ID of the preset currently selected for this component\n */\n preset_id?: number;\n /**\n * Duplicated technical name or display name, used for internal tasks\n */\n real_name?: string;\n /**\n * The component folder ID of the component\n */\n component_group_uuid?: string;\n /**\n * The color of the icon selected for the component\n */\n color?: string;\n /**\n * Icon selected for the component\n */\n icon?: string;\n /**\n * List of internal tags assigned to the component\n */\n internal_tags_list?: Array<{\n /**\n * Tag ID\n */\n id?: number;\n /**\n * Tag name\n */\n name?: string;\n }>;\n /**\n * List of IDs of the tags assigned to the component\n */\n internal_tag_ids?: Array<string>;\n /**\n * Asset preview field (Preview Card) for a content type component\n */\n content_type_asset_preview?: string;\n};\n\n/**\n * The ID of the Storyblok space (can be integer or string)\n */\nexport type SpaceId = number | string;\n\n/**\n * The ID of the component (can be integer or string)\n */\nexport type ComponentId = number | string;\n\nexport type ListData = {\n body?: never;\n path: {\n /**\n * The ID of the Storyblok space (can be integer or string)\n */\n space_id: number | string;\n };\n query?: {\n /**\n * Filter by ids (comma separated)\n */\n by_ids?: string;\n /**\n * Components can be sorted in an ascending or descending order by a specific property\n */\n sort_by?: string;\n /**\n * Retrieve all the components based on is_root property of a component\n */\n is_root?: boolean;\n /**\n * Search by name or display_name\n */\n search?: string;\n /**\n * Find components that are present in a specific group with the UUID of the group\n */\n in_group?: string;\n /**\n * Filter components by tags\n */\n with_tags?: string;\n /**\n * Filter components by metadata app slug\n */\n by_metadata_app_slug?: string;\n /**\n * Filter components by metadata frame ID\n */\n by_metadata_frame_id?: string;\n };\n url: '/v1/spaces/{space_id}/components';\n};\n\nexport type ListErrors = {\n /**\n * Bad request\n */\n 400: unknown;\n /**\n * Unauthorized\n */\n 401: unknown;\n /**\n * Space not found\n */\n 404: unknown;\n};\n\nexport type ListResponses = {\n /**\n * List of components\n */\n 200: {\n components?: Array<Component2>;\n };\n};\n\nexport type ListResponse = ListResponses[keyof ListResponses];\n\nexport type CreateData = {\n body: {\n component?: Component2;\n };\n path: {\n /**\n * The ID of the Storyblok space (can be integer or string)\n */\n space_id: number | string;\n };\n query?: never;\n url: '/v1/spaces/{space_id}/components';\n};\n\nexport type CreateErrors = {\n /**\n * Bad request\n */\n 400: unknown;\n /**\n * Unauthorized\n */\n 401: unknown;\n /**\n * Space not found\n */\n 404: unknown;\n};\n\nexport type CreateResponses = {\n /**\n * Component created\n */\n 201: {\n component?: Component2;\n };\n};\n\nexport type CreateResponse = CreateResponses[keyof CreateResponses];\n\nexport type DeleteComponentData = {\n body?: never;\n path: {\n /**\n * The ID of the Storyblok space (can be integer or string)\n */\n space_id: number | string;\n /**\n * The ID of the component (can be integer or string)\n */\n component_id: number | string;\n };\n query?: never;\n url: '/v1/spaces/{space_id}/components/{component_id}';\n};\n\nexport type DeleteComponentErrors = {\n /**\n * Bad request\n */\n 400: unknown;\n /**\n * Unauthorized\n */\n 401: unknown;\n /**\n * Component not found\n */\n 404: unknown;\n};\n\nexport type DeleteComponentResponses = {\n /**\n * Component deleted\n */\n 200: {\n component?: Component2;\n };\n};\n\nexport type DeleteComponentResponse = DeleteComponentResponses[keyof DeleteComponentResponses];\n\nexport type GetData = {\n body?: never;\n path: {\n /**\n * The ID of the Storyblok space (can be integer or string)\n */\n space_id: number | string;\n /**\n * The ID of the component (can be integer or string)\n */\n component_id: number | string;\n };\n query?: never;\n url: '/v1/spaces/{space_id}/components/{component_id}';\n};\n\nexport type GetErrors = {\n /**\n * Bad request\n */\n 400: unknown;\n /**\n * Unauthorized\n */\n 401: unknown;\n /**\n * Component not found\n */\n 404: unknown;\n};\n\nexport type GetResponses = {\n /**\n * Component details\n */\n 200: {\n component?: Component2;\n };\n};\n\nexport type GetResponse = GetResponses[keyof GetResponses];\n\nexport type UpdateData = {\n body: {\n component?: Component2;\n /**\n * Update component name in stories when component name changes\n */\n update_content?: boolean;\n };\n path: {\n /**\n * The ID of the Storyblok space (can be integer or string)\n */\n space_id: number | string;\n /**\n * The ID of the component (can be integer or string)\n */\n component_id: number | string;\n };\n query?: never;\n url: '/v1/spaces/{space_id}/components/{component_id}';\n};\n\nexport type UpdateErrors = {\n /**\n * Bad request\n */\n 400: unknown;\n /**\n * Unauthorized\n */\n 401: unknown;\n /**\n * Component not found\n */\n 404: unknown;\n};\n\nexport type UpdateResponses = {\n /**\n * Component updated\n */\n 200: {\n component?: Component2;\n };\n};\n\nexport type UpdateResponse = UpdateResponses[keyof UpdateResponses];\n\nexport type RenameAttributeData = {\n body?: never;\n path: {\n /**\n * The ID of the Storyblok space (can be integer or string)\n */\n space_id: number | string;\n /**\n * The ID of the component (can be integer or string)\n */\n component_id: number | string;\n };\n query: {\n /**\n * Current name of the attribute\n */\n old_name: string;\n /**\n * New name for the attribute\n */\n new_name: string;\n /**\n * Optional story ID to update the attribute in a specific story\n */\n story_id?: number;\n };\n url: '/v1/spaces/{space_id}/components/{component_id}/rename_attribute';\n};\n\nexport type RenameAttributeErrors = {\n /**\n * Bad request\n */\n 400: unknown;\n /**\n * Unauthorized\n */\n 401: unknown;\n /**\n * Component not found\n */\n 404: unknown;\n};\n\nexport type RenameAttributeResponses = {\n /**\n * Attribute renamed successfully\n */\n 204: void;\n};\n\nexport type RenameAttributeResponse = RenameAttributeResponses[keyof RenameAttributeResponses];\n\nexport type RestoreData = {\n body?: never;\n path: {\n /**\n * The ID of the Storyblok space (can be integer or string)\n */\n space_id: number | string;\n /**\n * The ID of the component (can be integer or string)\n */\n component_id: number | string;\n };\n query?: never;\n url: '/v1/spaces/{space_id}/components/{component_id}/restore';\n};\n\nexport type RestoreErrors = {\n /**\n * Bad request\n */\n 400: unknown;\n /**\n * Unauthorized\n */\n 401: unknown;\n /**\n * Component not found\n */\n 404: unknown;\n};\n\nexport type RestoreResponses = {\n /**\n * Component restored\n */\n 200: {\n component?: Component2;\n };\n};\n\nexport type RestoreResponse = RestoreResponses[keyof RestoreResponses];\n\nexport type BulkMoveData = {\n body: {\n /**\n * Array of component IDs to update\n */\n ids: Array<number>;\n component: {\n /**\n * ID of the component group to assign components to\n */\n component_group_id: number;\n };\n };\n path: {\n /**\n * The ID of the Storyblok space (can be integer or string)\n */\n space_id: number | string;\n };\n query?: never;\n url: '/v1/spaces/{space_id}/components/bulk_update';\n};\n\nexport type BulkMoveErrors = {\n /**\n * Bad request\n */\n 400: unknown;\n /**\n * Unauthorized\n */\n 401: unknown;\n /**\n * Component group not found\n */\n 404: unknown;\n};\n\nexport type BulkMoveResponses = {\n /**\n * Components updated successfully\n */\n 200: {\n /**\n * Success message\n */\n message?: string;\n };\n};\n\nexport type BulkMoveResponse = BulkMoveResponses[keyof BulkMoveResponses];\n\nexport type VersionsData = {\n body?: never;\n path: {\n /**\n * The ID of the Storyblok space (can be integer or string)\n */\n space_id: number | string;\n };\n query?: {\n /**\n * Page number\n */\n page?: number;\n /**\n * Number of versions per page\n */\n per_page?: number;\n /**\n * Model type. Must be 'components' for component versions.\n */\n model?: 'components' | 'stories';\n /**\n * Component ID when model is 'components'\n */\n model_id?: string;\n /**\n * Use version 2 system for retrieving versions\n */\n versions_v2?: boolean;\n };\n url: '/v1/spaces/{space_id}/versions';\n};\n\nexport type VersionsErrors = {\n /**\n * Bad request\n */\n 400: unknown;\n /**\n * Unauthorized\n */\n 401: unknown;\n /**\n * Component not found\n */\n 404: unknown;\n};\n\nexport type VersionsResponses = {\n /**\n * Component versions\n */\n 200: {\n versions?: Array<{\n id?: number;\n event?: string;\n created_at?: string;\n author_id?: number;\n item_id?: number;\n author?: string;\n is_draft?: boolean;\n }>;\n };\n};\n\nexport type VersionsResponse = VersionsResponses[keyof VersionsResponses];\n\nexport type VersionData = {\n body?: never;\n path: {\n /**\n * The ID of the Storyblok space (can be integer or string)\n */\n space_id: number | string;\n /**\n * The ID of the component (can be integer or string)\n */\n component_id: number | string;\n /**\n * Version ID of the component\n */\n version_id: number;\n };\n query?: never;\n url: '/v1/spaces/{space_id}/components/{component_id}/component_versions/{version_id}';\n};\n\nexport type VersionErrors = {\n /**\n * Bad request\n */\n 400: unknown;\n /**\n * Unauthorized\n */\n 401: unknown;\n /**\n * Component or version not found\n */\n 404: unknown;\n};\n\nexport type VersionResponses = {\n /**\n * Component version details\n */\n 200: {\n component_version?: {\n schema?: {\n [key: string]: unknown;\n };\n };\n };\n};\n\nexport type VersionResponse = VersionResponses[keyof VersionResponses];\n\nexport type RestoreVersionData = {\n body: {\n model?: string;\n model_id?: string;\n };\n path: {\n /**\n * The ID of the Storyblok space (can be integer or string)\n */\n space_id: number | string;\n /**\n * ID of the component version\n */\n version_id: number;\n };\n query?: never;\n url: '/v1/spaces/{space_id}/versions/{version_id}';\n};\n\nexport type RestoreVersionErrors = {\n /**\n * Bad request\n */\n 400: unknown;\n /**\n * Unauthorized\n */\n 401: unknown;\n /**\n * Component or version not found\n */\n 404: unknown;\n};\n\nexport type RestoreVersionResponses = {\n /**\n * Component version restored\n */\n 200: {\n component?: Component2;\n };\n};\n\nexport type RestoreVersionResponse = RestoreVersionResponses[keyof RestoreVersionResponses];\n\nexport type ClientOptions = {\n baseUrl: 'https://mapi.storyblok.com' | 'https://api-us.storyblok.com' | 'https://api-ca.storyblok.com' | 'https://api-ap.storyblok.com' | 'https://app.storyblok.cn' | (string & {});\n};"],"mappings":""}
1
+ {"version":3,"file":"types.gen.js","names":[],"sources":["../../../src/generated/components/types.gen.ts"],"sourcesContent":["// This file is auto-generated by @hey-api/openapi-ts\n\nexport type Component = Component2;\n\n/**\n * A component version object\n */\nexport type ComponentVersion = {\n schema?: unknown;\n};\n\n/**\n * A component schema field object\n */\nexport type ComponentSchemaField = {\n /**\n * Field type (text, textarea, number, boolean, etc.)\n */\n type?: string;\n /**\n * Position of the field\n */\n pos?: number;\n /**\n * Human-readable display name\n */\n display_name?: string;\n /**\n * Whether the field is required\n */\n required?: boolean;\n /**\n * Regular expression for validation\n */\n regex?: string;\n /**\n * Whether the field is translatable\n */\n translatable?: boolean;\n /**\n * Field description\n */\n description?: string;\n /**\n * Default value for the field\n */\n default_value?: string;\n /**\n * Array of datasource entries [{name:\"\", value:\"\"}]; Effects editor only if source=undefined. For field type option.\n */\n options?: Array<{\n _uid?: string;\n name?: string;\n value?: string;\n }>;\n source?: 'option' | 'options' | 'custom';\n /**\n * Folder slug for asset fields\n */\n folder_slug?: string;\n /**\n * Allowed file types for asset fields\n */\n filetypes?: Array<string>;\n /**\n * Maximum value for number fields\n */\n maximum?: number;\n /**\n * Minimum value for number fields\n */\n minimum?: number;\n /**\n * Maximum length for text fields\n */\n maxlength?: number;\n /**\n * Minimum length for text fields\n */\n minlength?: number;\n /**\n * Whether rich markdown is enabled\n */\n rich_markdown?: boolean;\n /**\n * Whether rich text is enabled\n */\n rich_text?: boolean;\n /**\n * Whether markdown is enabled\n */\n markdown?: boolean;\n /**\n * Field size (small, medium, large)\n */\n size?: string;\n /**\n * Field height in pixels\n */\n height?: number;\n /**\n * Field width in pixels\n */\n width?: number;\n /**\n * Whether to use UUID for the field\n */\n use_uuid?: boolean;\n /**\n * Whether to restrict content types\n */\n restrict_content_types?: boolean;\n /**\n * Whether to restrict components\n */\n restrict_components?: boolean;\n /**\n * List of allowed components\n */\n component_whitelist?: Array<string>;\n /**\n * List of allowed component groups\n */\n component_group_whitelist?: Array<string>;\n /**\n * Maximum number of entries\n */\n maximum_entries?: number;\n /**\n * Minimum number of entries\n */\n minimum_entries?: number;\n /**\n * Whether to restrict assets\n */\n restrict_assets?: boolean;\n /**\n * List of allowed asset types\n */\n asset_whitelist?: Array<string>;\n /**\n * Whether to exclude empty option\n */\n exclude_empty_option?: boolean;\n /**\n * Whether to include empty option\n */\n include_empty_option?: boolean;\n /**\n * Datasource slug for datasource fields\n */\n datasource_slug?: string;\n /**\n * Whether multiple values are allowed\n */\n multiple?: boolean;\n /**\n * Custom CSS for the field\n */\n custom_css?: string;\n /**\n * Custom JavaScript for the field\n */\n custom_js?: string;\n /**\n * API connection configuration\n */\n api_connection?: {\n /**\n * API URL\n */\n url?: string;\n /**\n * API headers\n */\n headers?: {\n [key: string]: unknown;\n };\n /**\n * API parameters\n */\n params?: {\n [key: string]: unknown;\n };\n };\n /**\n * Fieldset configuration\n */\n fieldset?: {\n /**\n * Fieldset title\n */\n title?: string;\n /**\n * Fieldset description\n */\n description?: string;\n /**\n * Whether the fieldset is collapsible\n */\n collapsible?: boolean;\n /**\n * Whether the fieldset is collapsed by default\n */\n collapsed?: boolean;\n };\n};\n\n/**\n * A Storyblok component object representing a content type\n */\nexport type Component2 = {\n /**\n * The numeric ID\n */\n readonly id: number;\n /**\n * Technical name used for component property in entries\n */\n name: string;\n /**\n * Name that will be used in the editor interface\n */\n display_name?: string;\n /**\n * Creation date\n */\n readonly created_at: string;\n /**\n * Latest update date\n */\n readonly updated_at: string;\n /**\n * Component schema definition containing fields and their configurations\n */\n schema: {\n /**\n * Unique identifier field configuration\n */\n _uid?: {\n [key: string]: unknown;\n };\n /**\n * Component type field configuration\n */\n component?: {\n [key: string]: unknown;\n };\n [key: string]: unknown | {\n [key: string]: unknown;\n } | {\n [key: string]: unknown;\n } | undefined;\n };\n /**\n * URL to the preview image\n */\n image?: string;\n /**\n * The field that is for preview in the interface (Preview Field)\n */\n preview_field?: string;\n /**\n * Whether the component can be used as a root component\n */\n is_root?: boolean;\n /**\n * Preview template for the component\n */\n preview_tmpl?: string;\n /**\n * True if the component is nestable (insertable) in block field types\n */\n is_nestable?: boolean;\n /**\n * An array of presets for this component\n */\n all_presets?: Array<{\n /**\n * The numeric ID of the preset\n */\n id?: number;\n /**\n * Name of the preset\n */\n name?: string;\n /**\n * The ID of the component the preset is for\n */\n component_id?: number;\n /**\n * Link to the preview image of the preset\n */\n image?: string;\n /**\n * Icon selected for the preset\n */\n icon?: string;\n /**\n * Color of the icon selected for the preset\n */\n color?: string;\n /**\n * The description of the preset\n */\n description?: string;\n }>;\n /**\n * ID of the preset currently selected for this component\n */\n preset_id?: number;\n /**\n * Duplicated technical name or display name, used for internal tasks\n */\n real_name?: string;\n /**\n * The component folder ID of the component\n */\n component_group_uuid?: string;\n /**\n * The color of the icon selected for the component\n */\n color?: string;\n /**\n * Icon selected for the component\n */\n icon?: string;\n /**\n * List of internal tags assigned to the component\n */\n internal_tags_list?: Array<{\n /**\n * Tag ID\n */\n id?: number;\n /**\n * Tag name\n */\n name?: string;\n }>;\n /**\n * List of IDs of the tags assigned to the component\n */\n internal_tag_ids?: Array<string>;\n /**\n * Asset preview field (Preview Card) for a content type component\n */\n content_type_asset_preview?: string;\n};\n\n/**\n * The ID of the Storyblok space (can be integer or string)\n */\nexport type SpaceId = number | string;\n\n/**\n * Page number for pagination. Default is 1.\n */\nexport type Page = number;\n\n/**\n * The ID of the component (can be integer or string)\n */\nexport type ComponentId = number | string;\n\nexport type ListData = {\n body?: never;\n path: {\n /**\n * The ID of the Storyblok space (can be integer or string)\n */\n space_id: number | string;\n };\n query?: {\n /**\n * Page number for pagination. Default is 1.\n */\n page?: number;\n /**\n * Number of components per page. Default is 25, maximum is 100.\n */\n per_page?: number;\n /**\n * Filter by ids (comma separated)\n */\n by_ids?: string;\n /**\n * Components can be sorted in an ascending or descending order by a specific property\n */\n sort_by?: string;\n /**\n * Retrieve all the components based on is_root property of a component\n */\n is_root?: boolean;\n /**\n * Search by name or display_name\n */\n search?: string;\n /**\n * Find components that are present in a specific group with the UUID of the group\n */\n in_group?: string;\n /**\n * Filter components by tags\n */\n with_tags?: string;\n /**\n * Filter components by metadata app slug\n */\n by_metadata_app_slug?: string;\n /**\n * Filter components by metadata frame ID\n */\n by_metadata_frame_id?: string;\n };\n url: '/v1/spaces/{space_id}/components';\n};\n\nexport type ListErrors = {\n /**\n * Bad request\n */\n 400: unknown;\n /**\n * Unauthorized\n */\n 401: unknown;\n /**\n * Space not found\n */\n 404: unknown;\n};\n\nexport type ListResponses = {\n /**\n * List of components\n */\n 200: {\n components?: Array<Component2>;\n };\n};\n\nexport type ListResponse = ListResponses[keyof ListResponses];\n\nexport type CreateData = {\n body: {\n component?: Component2;\n };\n path: {\n /**\n * The ID of the Storyblok space (can be integer or string)\n */\n space_id: number | string;\n };\n query?: never;\n url: '/v1/spaces/{space_id}/components';\n};\n\nexport type CreateErrors = {\n /**\n * Bad request\n */\n 400: unknown;\n /**\n * Unauthorized\n */\n 401: unknown;\n /**\n * Space not found\n */\n 404: unknown;\n};\n\nexport type CreateResponses = {\n /**\n * Component created\n */\n 201: {\n component?: Component2;\n };\n};\n\nexport type CreateResponse = CreateResponses[keyof CreateResponses];\n\nexport type DeleteComponentData = {\n body?: never;\n path: {\n /**\n * The ID of the Storyblok space (can be integer or string)\n */\n space_id: number | string;\n /**\n * The ID of the component (can be integer or string)\n */\n component_id: number | string;\n };\n query?: never;\n url: '/v1/spaces/{space_id}/components/{component_id}';\n};\n\nexport type DeleteComponentErrors = {\n /**\n * Bad request\n */\n 400: unknown;\n /**\n * Unauthorized\n */\n 401: unknown;\n /**\n * Component not found\n */\n 404: unknown;\n};\n\nexport type DeleteComponentResponses = {\n /**\n * Component deleted\n */\n 200: {\n component?: Component2;\n };\n};\n\nexport type DeleteComponentResponse = DeleteComponentResponses[keyof DeleteComponentResponses];\n\nexport type GetData = {\n body?: never;\n path: {\n /**\n * The ID of the Storyblok space (can be integer or string)\n */\n space_id: number | string;\n /**\n * The ID of the component (can be integer or string)\n */\n component_id: number | string;\n };\n query?: never;\n url: '/v1/spaces/{space_id}/components/{component_id}';\n};\n\nexport type GetErrors = {\n /**\n * Bad request\n */\n 400: unknown;\n /**\n * Unauthorized\n */\n 401: unknown;\n /**\n * Component not found\n */\n 404: unknown;\n};\n\nexport type GetResponses = {\n /**\n * Component details\n */\n 200: {\n component?: Component2;\n };\n};\n\nexport type GetResponse = GetResponses[keyof GetResponses];\n\nexport type UpdateData = {\n body: {\n component?: Component2;\n /**\n * Update component name in stories when component name changes\n */\n update_content?: boolean;\n };\n path: {\n /**\n * The ID of the Storyblok space (can be integer or string)\n */\n space_id: number | string;\n /**\n * The ID of the component (can be integer or string)\n */\n component_id: number | string;\n };\n query?: never;\n url: '/v1/spaces/{space_id}/components/{component_id}';\n};\n\nexport type UpdateErrors = {\n /**\n * Bad request\n */\n 400: unknown;\n /**\n * Unauthorized\n */\n 401: unknown;\n /**\n * Component not found\n */\n 404: unknown;\n};\n\nexport type UpdateResponses = {\n /**\n * Component updated\n */\n 200: {\n component?: Component2;\n };\n};\n\nexport type UpdateResponse = UpdateResponses[keyof UpdateResponses];\n\nexport type RenameAttributeData = {\n body?: never;\n path: {\n /**\n * The ID of the Storyblok space (can be integer or string)\n */\n space_id: number | string;\n /**\n * The ID of the component (can be integer or string)\n */\n component_id: number | string;\n };\n query: {\n /**\n * Current name of the attribute\n */\n old_name: string;\n /**\n * New name for the attribute\n */\n new_name: string;\n /**\n * Optional story ID to update the attribute in a specific story\n */\n story_id?: number;\n };\n url: '/v1/spaces/{space_id}/components/{component_id}/rename_attribute';\n};\n\nexport type RenameAttributeErrors = {\n /**\n * Bad request\n */\n 400: unknown;\n /**\n * Unauthorized\n */\n 401: unknown;\n /**\n * Component not found\n */\n 404: unknown;\n};\n\nexport type RenameAttributeResponses = {\n /**\n * Attribute renamed successfully\n */\n 204: void;\n};\n\nexport type RenameAttributeResponse = RenameAttributeResponses[keyof RenameAttributeResponses];\n\nexport type RestoreData = {\n body?: never;\n path: {\n /**\n * The ID of the Storyblok space (can be integer or string)\n */\n space_id: number | string;\n /**\n * The ID of the component (can be integer or string)\n */\n component_id: number | string;\n };\n query?: never;\n url: '/v1/spaces/{space_id}/components/{component_id}/restore';\n};\n\nexport type RestoreErrors = {\n /**\n * Bad request\n */\n 400: unknown;\n /**\n * Unauthorized\n */\n 401: unknown;\n /**\n * Component not found\n */\n 404: unknown;\n};\n\nexport type RestoreResponses = {\n /**\n * Component restored\n */\n 200: {\n component?: Component2;\n };\n};\n\nexport type RestoreResponse = RestoreResponses[keyof RestoreResponses];\n\nexport type BulkMoveData = {\n body: {\n /**\n * Array of component IDs to update\n */\n ids: Array<number>;\n component: {\n /**\n * ID of the component group to assign components to\n */\n component_group_id: number;\n };\n };\n path: {\n /**\n * The ID of the Storyblok space (can be integer or string)\n */\n space_id: number | string;\n };\n query?: never;\n url: '/v1/spaces/{space_id}/components/bulk_update';\n};\n\nexport type BulkMoveErrors = {\n /**\n * Bad request\n */\n 400: unknown;\n /**\n * Unauthorized\n */\n 401: unknown;\n /**\n * Component group not found\n */\n 404: unknown;\n};\n\nexport type BulkMoveResponses = {\n /**\n * Components updated successfully\n */\n 200: {\n /**\n * Success message\n */\n message?: string;\n };\n};\n\nexport type BulkMoveResponse = BulkMoveResponses[keyof BulkMoveResponses];\n\nexport type VersionsData = {\n body?: never;\n path: {\n /**\n * The ID of the Storyblok space (can be integer or string)\n */\n space_id: number | string;\n };\n query?: {\n /**\n * Page number\n */\n page?: number;\n /**\n * Number of versions per page\n */\n per_page?: number;\n /**\n * Model type. Must be 'components' for component versions.\n */\n model?: 'components' | 'stories';\n /**\n * Component ID when model is 'components'\n */\n model_id?: string;\n /**\n * Use version 2 system for retrieving versions\n */\n versions_v2?: boolean;\n };\n url: '/v1/spaces/{space_id}/versions';\n};\n\nexport type VersionsErrors = {\n /**\n * Bad request\n */\n 400: unknown;\n /**\n * Unauthorized\n */\n 401: unknown;\n /**\n * Component not found\n */\n 404: unknown;\n};\n\nexport type VersionsResponses = {\n /**\n * Component versions\n */\n 200: {\n versions?: Array<{\n id?: number;\n event?: string;\n created_at?: string;\n author_id?: number;\n item_id?: number;\n author?: string;\n is_draft?: boolean;\n }>;\n };\n};\n\nexport type VersionsResponse = VersionsResponses[keyof VersionsResponses];\n\nexport type VersionData = {\n body?: never;\n path: {\n /**\n * The ID of the Storyblok space (can be integer or string)\n */\n space_id: number | string;\n /**\n * The ID of the component (can be integer or string)\n */\n component_id: number | string;\n /**\n * Version ID of the component\n */\n version_id: number;\n };\n query?: never;\n url: '/v1/spaces/{space_id}/components/{component_id}/component_versions/{version_id}';\n};\n\nexport type VersionErrors = {\n /**\n * Bad request\n */\n 400: unknown;\n /**\n * Unauthorized\n */\n 401: unknown;\n /**\n * Component or version not found\n */\n 404: unknown;\n};\n\nexport type VersionResponses = {\n /**\n * Component version details\n */\n 200: {\n component_version?: {\n schema?: {\n [key: string]: unknown;\n };\n };\n };\n};\n\nexport type VersionResponse = VersionResponses[keyof VersionResponses];\n\nexport type RestoreVersionData = {\n body: {\n model?: string;\n model_id?: string;\n };\n path: {\n /**\n * The ID of the Storyblok space (can be integer or string)\n */\n space_id: number | string;\n /**\n * ID of the component version\n */\n version_id: number;\n };\n query?: never;\n url: '/v1/spaces/{space_id}/versions/{version_id}';\n};\n\nexport type RestoreVersionErrors = {\n /**\n * Bad request\n */\n 400: unknown;\n /**\n * Unauthorized\n */\n 401: unknown;\n /**\n * Component or version not found\n */\n 404: unknown;\n};\n\nexport type RestoreVersionResponses = {\n /**\n * Component version restored\n */\n 200: {\n component?: Component2;\n };\n};\n\nexport type RestoreVersionResponse = RestoreVersionResponses[keyof RestoreVersionResponses];\n\nexport type ClientOptions = {\n baseUrl: 'https://mapi.storyblok.com' | 'https://api-us.storyblok.com' | 'https://api-ca.storyblok.com' | 'https://api-ap.storyblok.com' | 'https://app.storyblok.cn' | (string & {});\n};"],"mappings":""}
@@ -1 +1 @@
1
- {"version":3,"file":"types.gen.mjs","names":[],"sources":["../../../src/generated/components/types.gen.ts"],"sourcesContent":["// This file is auto-generated by @hey-api/openapi-ts\n\nexport type Component = Component2;\n\n/**\n * A component version object\n */\nexport type ComponentVersion = {\n schema?: unknown;\n};\n\n/**\n * A component schema field object\n */\nexport type ComponentSchemaField = {\n /**\n * Field type (text, textarea, number, boolean, etc.)\n */\n type?: string;\n /**\n * Position of the field\n */\n pos?: number;\n /**\n * Human-readable display name\n */\n display_name?: string;\n /**\n * Whether the field is required\n */\n required?: boolean;\n /**\n * Regular expression for validation\n */\n regex?: string;\n /**\n * Whether the field is translatable\n */\n translatable?: boolean;\n /**\n * Field description\n */\n description?: string;\n /**\n * Default value for the field\n */\n default_value?: string;\n /**\n * Array of datasource entries [{name:\"\", value:\"\"}]; Effects editor only if source=undefined. For field type option.\n */\n options?: Array<{\n _uid?: string;\n name?: string;\n value?: string;\n }>;\n source?: 'option' | 'options' | 'custom';\n /**\n * Folder slug for asset fields\n */\n folder_slug?: string;\n /**\n * Allowed file types for asset fields\n */\n filetypes?: Array<string>;\n /**\n * Maximum value for number fields\n */\n maximum?: number;\n /**\n * Minimum value for number fields\n */\n minimum?: number;\n /**\n * Maximum length for text fields\n */\n maxlength?: number;\n /**\n * Minimum length for text fields\n */\n minlength?: number;\n /**\n * Whether rich markdown is enabled\n */\n rich_markdown?: boolean;\n /**\n * Whether rich text is enabled\n */\n rich_text?: boolean;\n /**\n * Whether markdown is enabled\n */\n markdown?: boolean;\n /**\n * Field size (small, medium, large)\n */\n size?: string;\n /**\n * Field height in pixels\n */\n height?: number;\n /**\n * Field width in pixels\n */\n width?: number;\n /**\n * Whether to use UUID for the field\n */\n use_uuid?: boolean;\n /**\n * Whether to restrict content types\n */\n restrict_content_types?: boolean;\n /**\n * Whether to restrict components\n */\n restrict_components?: boolean;\n /**\n * List of allowed components\n */\n component_whitelist?: Array<string>;\n /**\n * List of allowed component groups\n */\n component_group_whitelist?: Array<string>;\n /**\n * Maximum number of entries\n */\n maximum_entries?: number;\n /**\n * Minimum number of entries\n */\n minimum_entries?: number;\n /**\n * Whether to restrict assets\n */\n restrict_assets?: boolean;\n /**\n * List of allowed asset types\n */\n asset_whitelist?: Array<string>;\n /**\n * Whether to exclude empty option\n */\n exclude_empty_option?: boolean;\n /**\n * Whether to include empty option\n */\n include_empty_option?: boolean;\n /**\n * Datasource slug for datasource fields\n */\n datasource_slug?: string;\n /**\n * Whether multiple values are allowed\n */\n multiple?: boolean;\n /**\n * Custom CSS for the field\n */\n custom_css?: string;\n /**\n * Custom JavaScript for the field\n */\n custom_js?: string;\n /**\n * API connection configuration\n */\n api_connection?: {\n /**\n * API URL\n */\n url?: string;\n /**\n * API headers\n */\n headers?: {\n [key: string]: unknown;\n };\n /**\n * API parameters\n */\n params?: {\n [key: string]: unknown;\n };\n };\n /**\n * Fieldset configuration\n */\n fieldset?: {\n /**\n * Fieldset title\n */\n title?: string;\n /**\n * Fieldset description\n */\n description?: string;\n /**\n * Whether the fieldset is collapsible\n */\n collapsible?: boolean;\n /**\n * Whether the fieldset is collapsed by default\n */\n collapsed?: boolean;\n };\n};\n\n/**\n * A Storyblok component object representing a content type\n */\nexport type Component2 = {\n /**\n * The numeric ID\n */\n readonly id?: number;\n /**\n * Technical name used for component property in entries\n */\n name?: string;\n /**\n * Name that will be used in the editor interface\n */\n display_name?: string;\n /**\n * Creation date\n */\n created_at?: string;\n /**\n * Latest update date\n */\n updated_at?: string;\n /**\n * Component schema definition containing fields and their configurations\n */\n schema?: {\n /**\n * Unique identifier field configuration\n */\n _uid?: {\n [key: string]: unknown;\n };\n /**\n * Component type field configuration\n */\n component?: {\n [key: string]: unknown;\n };\n [key: string]: unknown | {\n [key: string]: unknown;\n } | {\n [key: string]: unknown;\n } | undefined;\n };\n /**\n * URL to the preview image\n */\n image?: string;\n /**\n * The field that is for preview in the interface (Preview Field)\n */\n preview_field?: string;\n /**\n * Whether the component can be used as a root component\n */\n is_root?: boolean;\n /**\n * Preview template for the component\n */\n preview_tmpl?: string;\n /**\n * True if the component is nestable (insertable) in block field types\n */\n is_nestable?: boolean;\n /**\n * An array of presets for this component\n */\n all_presets?: Array<{\n /**\n * The numeric ID of the preset\n */\n id?: number;\n /**\n * Name of the preset\n */\n name?: string;\n /**\n * The ID of the component the preset is for\n */\n component_id?: number;\n /**\n * Link to the preview image of the preset\n */\n image?: string;\n /**\n * Icon selected for the preset\n */\n icon?: string;\n /**\n * Color of the icon selected for the preset\n */\n color?: string;\n /**\n * The description of the preset\n */\n description?: string;\n }>;\n /**\n * ID of the preset currently selected for this component\n */\n preset_id?: number;\n /**\n * Duplicated technical name or display name, used for internal tasks\n */\n real_name?: string;\n /**\n * The component folder ID of the component\n */\n component_group_uuid?: string;\n /**\n * The color of the icon selected for the component\n */\n color?: string;\n /**\n * Icon selected for the component\n */\n icon?: string;\n /**\n * List of internal tags assigned to the component\n */\n internal_tags_list?: Array<{\n /**\n * Tag ID\n */\n id?: number;\n /**\n * Tag name\n */\n name?: string;\n }>;\n /**\n * List of IDs of the tags assigned to the component\n */\n internal_tag_ids?: Array<string>;\n /**\n * Asset preview field (Preview Card) for a content type component\n */\n content_type_asset_preview?: string;\n};\n\n/**\n * The ID of the Storyblok space (can be integer or string)\n */\nexport type SpaceId = number | string;\n\n/**\n * The ID of the component (can be integer or string)\n */\nexport type ComponentId = number | string;\n\nexport type ListData = {\n body?: never;\n path: {\n /**\n * The ID of the Storyblok space (can be integer or string)\n */\n space_id: number | string;\n };\n query?: {\n /**\n * Filter by ids (comma separated)\n */\n by_ids?: string;\n /**\n * Components can be sorted in an ascending or descending order by a specific property\n */\n sort_by?: string;\n /**\n * Retrieve all the components based on is_root property of a component\n */\n is_root?: boolean;\n /**\n * Search by name or display_name\n */\n search?: string;\n /**\n * Find components that are present in a specific group with the UUID of the group\n */\n in_group?: string;\n /**\n * Filter components by tags\n */\n with_tags?: string;\n /**\n * Filter components by metadata app slug\n */\n by_metadata_app_slug?: string;\n /**\n * Filter components by metadata frame ID\n */\n by_metadata_frame_id?: string;\n };\n url: '/v1/spaces/{space_id}/components';\n};\n\nexport type ListErrors = {\n /**\n * Bad request\n */\n 400: unknown;\n /**\n * Unauthorized\n */\n 401: unknown;\n /**\n * Space not found\n */\n 404: unknown;\n};\n\nexport type ListResponses = {\n /**\n * List of components\n */\n 200: {\n components?: Array<Component2>;\n };\n};\n\nexport type ListResponse = ListResponses[keyof ListResponses];\n\nexport type CreateData = {\n body: {\n component?: Component2;\n };\n path: {\n /**\n * The ID of the Storyblok space (can be integer or string)\n */\n space_id: number | string;\n };\n query?: never;\n url: '/v1/spaces/{space_id}/components';\n};\n\nexport type CreateErrors = {\n /**\n * Bad request\n */\n 400: unknown;\n /**\n * Unauthorized\n */\n 401: unknown;\n /**\n * Space not found\n */\n 404: unknown;\n};\n\nexport type CreateResponses = {\n /**\n * Component created\n */\n 201: {\n component?: Component2;\n };\n};\n\nexport type CreateResponse = CreateResponses[keyof CreateResponses];\n\nexport type DeleteComponentData = {\n body?: never;\n path: {\n /**\n * The ID of the Storyblok space (can be integer or string)\n */\n space_id: number | string;\n /**\n * The ID of the component (can be integer or string)\n */\n component_id: number | string;\n };\n query?: never;\n url: '/v1/spaces/{space_id}/components/{component_id}';\n};\n\nexport type DeleteComponentErrors = {\n /**\n * Bad request\n */\n 400: unknown;\n /**\n * Unauthorized\n */\n 401: unknown;\n /**\n * Component not found\n */\n 404: unknown;\n};\n\nexport type DeleteComponentResponses = {\n /**\n * Component deleted\n */\n 200: {\n component?: Component2;\n };\n};\n\nexport type DeleteComponentResponse = DeleteComponentResponses[keyof DeleteComponentResponses];\n\nexport type GetData = {\n body?: never;\n path: {\n /**\n * The ID of the Storyblok space (can be integer or string)\n */\n space_id: number | string;\n /**\n * The ID of the component (can be integer or string)\n */\n component_id: number | string;\n };\n query?: never;\n url: '/v1/spaces/{space_id}/components/{component_id}';\n};\n\nexport type GetErrors = {\n /**\n * Bad request\n */\n 400: unknown;\n /**\n * Unauthorized\n */\n 401: unknown;\n /**\n * Component not found\n */\n 404: unknown;\n};\n\nexport type GetResponses = {\n /**\n * Component details\n */\n 200: {\n component?: Component2;\n };\n};\n\nexport type GetResponse = GetResponses[keyof GetResponses];\n\nexport type UpdateData = {\n body: {\n component?: Component2;\n /**\n * Update component name in stories when component name changes\n */\n update_content?: boolean;\n };\n path: {\n /**\n * The ID of the Storyblok space (can be integer or string)\n */\n space_id: number | string;\n /**\n * The ID of the component (can be integer or string)\n */\n component_id: number | string;\n };\n query?: never;\n url: '/v1/spaces/{space_id}/components/{component_id}';\n};\n\nexport type UpdateErrors = {\n /**\n * Bad request\n */\n 400: unknown;\n /**\n * Unauthorized\n */\n 401: unknown;\n /**\n * Component not found\n */\n 404: unknown;\n};\n\nexport type UpdateResponses = {\n /**\n * Component updated\n */\n 200: {\n component?: Component2;\n };\n};\n\nexport type UpdateResponse = UpdateResponses[keyof UpdateResponses];\n\nexport type RenameAttributeData = {\n body?: never;\n path: {\n /**\n * The ID of the Storyblok space (can be integer or string)\n */\n space_id: number | string;\n /**\n * The ID of the component (can be integer or string)\n */\n component_id: number | string;\n };\n query: {\n /**\n * Current name of the attribute\n */\n old_name: string;\n /**\n * New name for the attribute\n */\n new_name: string;\n /**\n * Optional story ID to update the attribute in a specific story\n */\n story_id?: number;\n };\n url: '/v1/spaces/{space_id}/components/{component_id}/rename_attribute';\n};\n\nexport type RenameAttributeErrors = {\n /**\n * Bad request\n */\n 400: unknown;\n /**\n * Unauthorized\n */\n 401: unknown;\n /**\n * Component not found\n */\n 404: unknown;\n};\n\nexport type RenameAttributeResponses = {\n /**\n * Attribute renamed successfully\n */\n 204: void;\n};\n\nexport type RenameAttributeResponse = RenameAttributeResponses[keyof RenameAttributeResponses];\n\nexport type RestoreData = {\n body?: never;\n path: {\n /**\n * The ID of the Storyblok space (can be integer or string)\n */\n space_id: number | string;\n /**\n * The ID of the component (can be integer or string)\n */\n component_id: number | string;\n };\n query?: never;\n url: '/v1/spaces/{space_id}/components/{component_id}/restore';\n};\n\nexport type RestoreErrors = {\n /**\n * Bad request\n */\n 400: unknown;\n /**\n * Unauthorized\n */\n 401: unknown;\n /**\n * Component not found\n */\n 404: unknown;\n};\n\nexport type RestoreResponses = {\n /**\n * Component restored\n */\n 200: {\n component?: Component2;\n };\n};\n\nexport type RestoreResponse = RestoreResponses[keyof RestoreResponses];\n\nexport type BulkMoveData = {\n body: {\n /**\n * Array of component IDs to update\n */\n ids: Array<number>;\n component: {\n /**\n * ID of the component group to assign components to\n */\n component_group_id: number;\n };\n };\n path: {\n /**\n * The ID of the Storyblok space (can be integer or string)\n */\n space_id: number | string;\n };\n query?: never;\n url: '/v1/spaces/{space_id}/components/bulk_update';\n};\n\nexport type BulkMoveErrors = {\n /**\n * Bad request\n */\n 400: unknown;\n /**\n * Unauthorized\n */\n 401: unknown;\n /**\n * Component group not found\n */\n 404: unknown;\n};\n\nexport type BulkMoveResponses = {\n /**\n * Components updated successfully\n */\n 200: {\n /**\n * Success message\n */\n message?: string;\n };\n};\n\nexport type BulkMoveResponse = BulkMoveResponses[keyof BulkMoveResponses];\n\nexport type VersionsData = {\n body?: never;\n path: {\n /**\n * The ID of the Storyblok space (can be integer or string)\n */\n space_id: number | string;\n };\n query?: {\n /**\n * Page number\n */\n page?: number;\n /**\n * Number of versions per page\n */\n per_page?: number;\n /**\n * Model type. Must be 'components' for component versions.\n */\n model?: 'components' | 'stories';\n /**\n * Component ID when model is 'components'\n */\n model_id?: string;\n /**\n * Use version 2 system for retrieving versions\n */\n versions_v2?: boolean;\n };\n url: '/v1/spaces/{space_id}/versions';\n};\n\nexport type VersionsErrors = {\n /**\n * Bad request\n */\n 400: unknown;\n /**\n * Unauthorized\n */\n 401: unknown;\n /**\n * Component not found\n */\n 404: unknown;\n};\n\nexport type VersionsResponses = {\n /**\n * Component versions\n */\n 200: {\n versions?: Array<{\n id?: number;\n event?: string;\n created_at?: string;\n author_id?: number;\n item_id?: number;\n author?: string;\n is_draft?: boolean;\n }>;\n };\n};\n\nexport type VersionsResponse = VersionsResponses[keyof VersionsResponses];\n\nexport type VersionData = {\n body?: never;\n path: {\n /**\n * The ID of the Storyblok space (can be integer or string)\n */\n space_id: number | string;\n /**\n * The ID of the component (can be integer or string)\n */\n component_id: number | string;\n /**\n * Version ID of the component\n */\n version_id: number;\n };\n query?: never;\n url: '/v1/spaces/{space_id}/components/{component_id}/component_versions/{version_id}';\n};\n\nexport type VersionErrors = {\n /**\n * Bad request\n */\n 400: unknown;\n /**\n * Unauthorized\n */\n 401: unknown;\n /**\n * Component or version not found\n */\n 404: unknown;\n};\n\nexport type VersionResponses = {\n /**\n * Component version details\n */\n 200: {\n component_version?: {\n schema?: {\n [key: string]: unknown;\n };\n };\n };\n};\n\nexport type VersionResponse = VersionResponses[keyof VersionResponses];\n\nexport type RestoreVersionData = {\n body: {\n model?: string;\n model_id?: string;\n };\n path: {\n /**\n * The ID of the Storyblok space (can be integer or string)\n */\n space_id: number | string;\n /**\n * ID of the component version\n */\n version_id: number;\n };\n query?: never;\n url: '/v1/spaces/{space_id}/versions/{version_id}';\n};\n\nexport type RestoreVersionErrors = {\n /**\n * Bad request\n */\n 400: unknown;\n /**\n * Unauthorized\n */\n 401: unknown;\n /**\n * Component or version not found\n */\n 404: unknown;\n};\n\nexport type RestoreVersionResponses = {\n /**\n * Component version restored\n */\n 200: {\n component?: Component2;\n };\n};\n\nexport type RestoreVersionResponse = RestoreVersionResponses[keyof RestoreVersionResponses];\n\nexport type ClientOptions = {\n baseUrl: 'https://mapi.storyblok.com' | 'https://api-us.storyblok.com' | 'https://api-ca.storyblok.com' | 'https://api-ap.storyblok.com' | 'https://app.storyblok.cn' | (string & {});\n};"],"mappings":""}
1
+ {"version":3,"file":"types.gen.mjs","names":[],"sources":["../../../src/generated/components/types.gen.ts"],"sourcesContent":["// This file is auto-generated by @hey-api/openapi-ts\n\nexport type Component = Component2;\n\n/**\n * A component version object\n */\nexport type ComponentVersion = {\n schema?: unknown;\n};\n\n/**\n * A component schema field object\n */\nexport type ComponentSchemaField = {\n /**\n * Field type (text, textarea, number, boolean, etc.)\n */\n type?: string;\n /**\n * Position of the field\n */\n pos?: number;\n /**\n * Human-readable display name\n */\n display_name?: string;\n /**\n * Whether the field is required\n */\n required?: boolean;\n /**\n * Regular expression for validation\n */\n regex?: string;\n /**\n * Whether the field is translatable\n */\n translatable?: boolean;\n /**\n * Field description\n */\n description?: string;\n /**\n * Default value for the field\n */\n default_value?: string;\n /**\n * Array of datasource entries [{name:\"\", value:\"\"}]; Effects editor only if source=undefined. For field type option.\n */\n options?: Array<{\n _uid?: string;\n name?: string;\n value?: string;\n }>;\n source?: 'option' | 'options' | 'custom';\n /**\n * Folder slug for asset fields\n */\n folder_slug?: string;\n /**\n * Allowed file types for asset fields\n */\n filetypes?: Array<string>;\n /**\n * Maximum value for number fields\n */\n maximum?: number;\n /**\n * Minimum value for number fields\n */\n minimum?: number;\n /**\n * Maximum length for text fields\n */\n maxlength?: number;\n /**\n * Minimum length for text fields\n */\n minlength?: number;\n /**\n * Whether rich markdown is enabled\n */\n rich_markdown?: boolean;\n /**\n * Whether rich text is enabled\n */\n rich_text?: boolean;\n /**\n * Whether markdown is enabled\n */\n markdown?: boolean;\n /**\n * Field size (small, medium, large)\n */\n size?: string;\n /**\n * Field height in pixels\n */\n height?: number;\n /**\n * Field width in pixels\n */\n width?: number;\n /**\n * Whether to use UUID for the field\n */\n use_uuid?: boolean;\n /**\n * Whether to restrict content types\n */\n restrict_content_types?: boolean;\n /**\n * Whether to restrict components\n */\n restrict_components?: boolean;\n /**\n * List of allowed components\n */\n component_whitelist?: Array<string>;\n /**\n * List of allowed component groups\n */\n component_group_whitelist?: Array<string>;\n /**\n * Maximum number of entries\n */\n maximum_entries?: number;\n /**\n * Minimum number of entries\n */\n minimum_entries?: number;\n /**\n * Whether to restrict assets\n */\n restrict_assets?: boolean;\n /**\n * List of allowed asset types\n */\n asset_whitelist?: Array<string>;\n /**\n * Whether to exclude empty option\n */\n exclude_empty_option?: boolean;\n /**\n * Whether to include empty option\n */\n include_empty_option?: boolean;\n /**\n * Datasource slug for datasource fields\n */\n datasource_slug?: string;\n /**\n * Whether multiple values are allowed\n */\n multiple?: boolean;\n /**\n * Custom CSS for the field\n */\n custom_css?: string;\n /**\n * Custom JavaScript for the field\n */\n custom_js?: string;\n /**\n * API connection configuration\n */\n api_connection?: {\n /**\n * API URL\n */\n url?: string;\n /**\n * API headers\n */\n headers?: {\n [key: string]: unknown;\n };\n /**\n * API parameters\n */\n params?: {\n [key: string]: unknown;\n };\n };\n /**\n * Fieldset configuration\n */\n fieldset?: {\n /**\n * Fieldset title\n */\n title?: string;\n /**\n * Fieldset description\n */\n description?: string;\n /**\n * Whether the fieldset is collapsible\n */\n collapsible?: boolean;\n /**\n * Whether the fieldset is collapsed by default\n */\n collapsed?: boolean;\n };\n};\n\n/**\n * A Storyblok component object representing a content type\n */\nexport type Component2 = {\n /**\n * The numeric ID\n */\n readonly id: number;\n /**\n * Technical name used for component property in entries\n */\n name: string;\n /**\n * Name that will be used in the editor interface\n */\n display_name?: string;\n /**\n * Creation date\n */\n readonly created_at: string;\n /**\n * Latest update date\n */\n readonly updated_at: string;\n /**\n * Component schema definition containing fields and their configurations\n */\n schema: {\n /**\n * Unique identifier field configuration\n */\n _uid?: {\n [key: string]: unknown;\n };\n /**\n * Component type field configuration\n */\n component?: {\n [key: string]: unknown;\n };\n [key: string]: unknown | {\n [key: string]: unknown;\n } | {\n [key: string]: unknown;\n } | undefined;\n };\n /**\n * URL to the preview image\n */\n image?: string;\n /**\n * The field that is for preview in the interface (Preview Field)\n */\n preview_field?: string;\n /**\n * Whether the component can be used as a root component\n */\n is_root?: boolean;\n /**\n * Preview template for the component\n */\n preview_tmpl?: string;\n /**\n * True if the component is nestable (insertable) in block field types\n */\n is_nestable?: boolean;\n /**\n * An array of presets for this component\n */\n all_presets?: Array<{\n /**\n * The numeric ID of the preset\n */\n id?: number;\n /**\n * Name of the preset\n */\n name?: string;\n /**\n * The ID of the component the preset is for\n */\n component_id?: number;\n /**\n * Link to the preview image of the preset\n */\n image?: string;\n /**\n * Icon selected for the preset\n */\n icon?: string;\n /**\n * Color of the icon selected for the preset\n */\n color?: string;\n /**\n * The description of the preset\n */\n description?: string;\n }>;\n /**\n * ID of the preset currently selected for this component\n */\n preset_id?: number;\n /**\n * Duplicated technical name or display name, used for internal tasks\n */\n real_name?: string;\n /**\n * The component folder ID of the component\n */\n component_group_uuid?: string;\n /**\n * The color of the icon selected for the component\n */\n color?: string;\n /**\n * Icon selected for the component\n */\n icon?: string;\n /**\n * List of internal tags assigned to the component\n */\n internal_tags_list?: Array<{\n /**\n * Tag ID\n */\n id?: number;\n /**\n * Tag name\n */\n name?: string;\n }>;\n /**\n * List of IDs of the tags assigned to the component\n */\n internal_tag_ids?: Array<string>;\n /**\n * Asset preview field (Preview Card) for a content type component\n */\n content_type_asset_preview?: string;\n};\n\n/**\n * The ID of the Storyblok space (can be integer or string)\n */\nexport type SpaceId = number | string;\n\n/**\n * Page number for pagination. Default is 1.\n */\nexport type Page = number;\n\n/**\n * The ID of the component (can be integer or string)\n */\nexport type ComponentId = number | string;\n\nexport type ListData = {\n body?: never;\n path: {\n /**\n * The ID of the Storyblok space (can be integer or string)\n */\n space_id: number | string;\n };\n query?: {\n /**\n * Page number for pagination. Default is 1.\n */\n page?: number;\n /**\n * Number of components per page. Default is 25, maximum is 100.\n */\n per_page?: number;\n /**\n * Filter by ids (comma separated)\n */\n by_ids?: string;\n /**\n * Components can be sorted in an ascending or descending order by a specific property\n */\n sort_by?: string;\n /**\n * Retrieve all the components based on is_root property of a component\n */\n is_root?: boolean;\n /**\n * Search by name or display_name\n */\n search?: string;\n /**\n * Find components that are present in a specific group with the UUID of the group\n */\n in_group?: string;\n /**\n * Filter components by tags\n */\n with_tags?: string;\n /**\n * Filter components by metadata app slug\n */\n by_metadata_app_slug?: string;\n /**\n * Filter components by metadata frame ID\n */\n by_metadata_frame_id?: string;\n };\n url: '/v1/spaces/{space_id}/components';\n};\n\nexport type ListErrors = {\n /**\n * Bad request\n */\n 400: unknown;\n /**\n * Unauthorized\n */\n 401: unknown;\n /**\n * Space not found\n */\n 404: unknown;\n};\n\nexport type ListResponses = {\n /**\n * List of components\n */\n 200: {\n components?: Array<Component2>;\n };\n};\n\nexport type ListResponse = ListResponses[keyof ListResponses];\n\nexport type CreateData = {\n body: {\n component?: Component2;\n };\n path: {\n /**\n * The ID of the Storyblok space (can be integer or string)\n */\n space_id: number | string;\n };\n query?: never;\n url: '/v1/spaces/{space_id}/components';\n};\n\nexport type CreateErrors = {\n /**\n * Bad request\n */\n 400: unknown;\n /**\n * Unauthorized\n */\n 401: unknown;\n /**\n * Space not found\n */\n 404: unknown;\n};\n\nexport type CreateResponses = {\n /**\n * Component created\n */\n 201: {\n component?: Component2;\n };\n};\n\nexport type CreateResponse = CreateResponses[keyof CreateResponses];\n\nexport type DeleteComponentData = {\n body?: never;\n path: {\n /**\n * The ID of the Storyblok space (can be integer or string)\n */\n space_id: number | string;\n /**\n * The ID of the component (can be integer or string)\n */\n component_id: number | string;\n };\n query?: never;\n url: '/v1/spaces/{space_id}/components/{component_id}';\n};\n\nexport type DeleteComponentErrors = {\n /**\n * Bad request\n */\n 400: unknown;\n /**\n * Unauthorized\n */\n 401: unknown;\n /**\n * Component not found\n */\n 404: unknown;\n};\n\nexport type DeleteComponentResponses = {\n /**\n * Component deleted\n */\n 200: {\n component?: Component2;\n };\n};\n\nexport type DeleteComponentResponse = DeleteComponentResponses[keyof DeleteComponentResponses];\n\nexport type GetData = {\n body?: never;\n path: {\n /**\n * The ID of the Storyblok space (can be integer or string)\n */\n space_id: number | string;\n /**\n * The ID of the component (can be integer or string)\n */\n component_id: number | string;\n };\n query?: never;\n url: '/v1/spaces/{space_id}/components/{component_id}';\n};\n\nexport type GetErrors = {\n /**\n * Bad request\n */\n 400: unknown;\n /**\n * Unauthorized\n */\n 401: unknown;\n /**\n * Component not found\n */\n 404: unknown;\n};\n\nexport type GetResponses = {\n /**\n * Component details\n */\n 200: {\n component?: Component2;\n };\n};\n\nexport type GetResponse = GetResponses[keyof GetResponses];\n\nexport type UpdateData = {\n body: {\n component?: Component2;\n /**\n * Update component name in stories when component name changes\n */\n update_content?: boolean;\n };\n path: {\n /**\n * The ID of the Storyblok space (can be integer or string)\n */\n space_id: number | string;\n /**\n * The ID of the component (can be integer or string)\n */\n component_id: number | string;\n };\n query?: never;\n url: '/v1/spaces/{space_id}/components/{component_id}';\n};\n\nexport type UpdateErrors = {\n /**\n * Bad request\n */\n 400: unknown;\n /**\n * Unauthorized\n */\n 401: unknown;\n /**\n * Component not found\n */\n 404: unknown;\n};\n\nexport type UpdateResponses = {\n /**\n * Component updated\n */\n 200: {\n component?: Component2;\n };\n};\n\nexport type UpdateResponse = UpdateResponses[keyof UpdateResponses];\n\nexport type RenameAttributeData = {\n body?: never;\n path: {\n /**\n * The ID of the Storyblok space (can be integer or string)\n */\n space_id: number | string;\n /**\n * The ID of the component (can be integer or string)\n */\n component_id: number | string;\n };\n query: {\n /**\n * Current name of the attribute\n */\n old_name: string;\n /**\n * New name for the attribute\n */\n new_name: string;\n /**\n * Optional story ID to update the attribute in a specific story\n */\n story_id?: number;\n };\n url: '/v1/spaces/{space_id}/components/{component_id}/rename_attribute';\n};\n\nexport type RenameAttributeErrors = {\n /**\n * Bad request\n */\n 400: unknown;\n /**\n * Unauthorized\n */\n 401: unknown;\n /**\n * Component not found\n */\n 404: unknown;\n};\n\nexport type RenameAttributeResponses = {\n /**\n * Attribute renamed successfully\n */\n 204: void;\n};\n\nexport type RenameAttributeResponse = RenameAttributeResponses[keyof RenameAttributeResponses];\n\nexport type RestoreData = {\n body?: never;\n path: {\n /**\n * The ID of the Storyblok space (can be integer or string)\n */\n space_id: number | string;\n /**\n * The ID of the component (can be integer or string)\n */\n component_id: number | string;\n };\n query?: never;\n url: '/v1/spaces/{space_id}/components/{component_id}/restore';\n};\n\nexport type RestoreErrors = {\n /**\n * Bad request\n */\n 400: unknown;\n /**\n * Unauthorized\n */\n 401: unknown;\n /**\n * Component not found\n */\n 404: unknown;\n};\n\nexport type RestoreResponses = {\n /**\n * Component restored\n */\n 200: {\n component?: Component2;\n };\n};\n\nexport type RestoreResponse = RestoreResponses[keyof RestoreResponses];\n\nexport type BulkMoveData = {\n body: {\n /**\n * Array of component IDs to update\n */\n ids: Array<number>;\n component: {\n /**\n * ID of the component group to assign components to\n */\n component_group_id: number;\n };\n };\n path: {\n /**\n * The ID of the Storyblok space (can be integer or string)\n */\n space_id: number | string;\n };\n query?: never;\n url: '/v1/spaces/{space_id}/components/bulk_update';\n};\n\nexport type BulkMoveErrors = {\n /**\n * Bad request\n */\n 400: unknown;\n /**\n * Unauthorized\n */\n 401: unknown;\n /**\n * Component group not found\n */\n 404: unknown;\n};\n\nexport type BulkMoveResponses = {\n /**\n * Components updated successfully\n */\n 200: {\n /**\n * Success message\n */\n message?: string;\n };\n};\n\nexport type BulkMoveResponse = BulkMoveResponses[keyof BulkMoveResponses];\n\nexport type VersionsData = {\n body?: never;\n path: {\n /**\n * The ID of the Storyblok space (can be integer or string)\n */\n space_id: number | string;\n };\n query?: {\n /**\n * Page number\n */\n page?: number;\n /**\n * Number of versions per page\n */\n per_page?: number;\n /**\n * Model type. Must be 'components' for component versions.\n */\n model?: 'components' | 'stories';\n /**\n * Component ID when model is 'components'\n */\n model_id?: string;\n /**\n * Use version 2 system for retrieving versions\n */\n versions_v2?: boolean;\n };\n url: '/v1/spaces/{space_id}/versions';\n};\n\nexport type VersionsErrors = {\n /**\n * Bad request\n */\n 400: unknown;\n /**\n * Unauthorized\n */\n 401: unknown;\n /**\n * Component not found\n */\n 404: unknown;\n};\n\nexport type VersionsResponses = {\n /**\n * Component versions\n */\n 200: {\n versions?: Array<{\n id?: number;\n event?: string;\n created_at?: string;\n author_id?: number;\n item_id?: number;\n author?: string;\n is_draft?: boolean;\n }>;\n };\n};\n\nexport type VersionsResponse = VersionsResponses[keyof VersionsResponses];\n\nexport type VersionData = {\n body?: never;\n path: {\n /**\n * The ID of the Storyblok space (can be integer or string)\n */\n space_id: number | string;\n /**\n * The ID of the component (can be integer or string)\n */\n component_id: number | string;\n /**\n * Version ID of the component\n */\n version_id: number;\n };\n query?: never;\n url: '/v1/spaces/{space_id}/components/{component_id}/component_versions/{version_id}';\n};\n\nexport type VersionErrors = {\n /**\n * Bad request\n */\n 400: unknown;\n /**\n * Unauthorized\n */\n 401: unknown;\n /**\n * Component or version not found\n */\n 404: unknown;\n};\n\nexport type VersionResponses = {\n /**\n * Component version details\n */\n 200: {\n component_version?: {\n schema?: {\n [key: string]: unknown;\n };\n };\n };\n};\n\nexport type VersionResponse = VersionResponses[keyof VersionResponses];\n\nexport type RestoreVersionData = {\n body: {\n model?: string;\n model_id?: string;\n };\n path: {\n /**\n * The ID of the Storyblok space (can be integer or string)\n */\n space_id: number | string;\n /**\n * ID of the component version\n */\n version_id: number;\n };\n query?: never;\n url: '/v1/spaces/{space_id}/versions/{version_id}';\n};\n\nexport type RestoreVersionErrors = {\n /**\n * Bad request\n */\n 400: unknown;\n /**\n * Unauthorized\n */\n 401: unknown;\n /**\n * Component or version not found\n */\n 404: unknown;\n};\n\nexport type RestoreVersionResponses = {\n /**\n * Component version restored\n */\n 200: {\n component?: Component2;\n };\n};\n\nexport type RestoreVersionResponse = RestoreVersionResponses[keyof RestoreVersionResponses];\n\nexport type ClientOptions = {\n baseUrl: 'https://mapi.storyblok.com' | 'https://api-us.storyblok.com' | 'https://api-ca.storyblok.com' | 'https://api-ap.storyblok.com' | 'https://app.storyblok.cn' | (string & {});\n};"],"mappings":""}
@@ -1,64 +1,36 @@
1
1
  declare namespace types_gen_d_exports {
2
- export { ClientOptions, CreateData, CreateErrors, CreateResponse, CreateResponses, DatasourceEntry, DatasourceEntryCreateRequest, DatasourceEntryUpdateRequest, DeleteData, DeleteErrors, DeleteResponse, DeleteResponses, GetData, GetErrors, GetResponse, GetResponses, ListData, ListErrors, ListResponse, ListResponses, SpaceId, UpdateDatasourceEntryData, UpdateDatasourceEntryErrors, UpdateDatasourceEntryResponse, UpdateDatasourceEntryResponses };
2
+ export { ClientOptions, CreateData, CreateErrors, CreateResponse, CreateResponses, DatasourceEntry, DeleteData, DeleteErrors, DeleteResponse, DeleteResponses, GetData, GetErrors, GetResponse, GetResponses, ListData, ListErrors, ListResponse, ListResponses, Page, SpaceId, UpdateDatasourceEntryData, UpdateDatasourceEntryErrors, UpdateDatasourceEntryResponse, UpdateDatasourceEntryResponses };
3
3
  }
4
4
  type DatasourceEntry = {
5
5
  /**
6
6
  * The numeric ID
7
7
  */
8
- id?: number;
8
+ readonly id: number;
9
9
  /**
10
10
  * The key name of the datasource entry
11
11
  */
12
- name?: string;
12
+ name: string;
13
13
  /**
14
14
  * Given value in the default dimension
15
15
  */
16
16
  value?: string;
17
17
  /**
18
- * Given value in the requested dimension
18
+ * The numeric ID of the datasource
19
19
  */
20
- dimension_value?: string;
21
- };
22
- type DatasourceEntryCreateRequest = {
23
- datasource_entry?: {
24
- /**
25
- * The key name of the datasource entry
26
- */
27
- name: string;
28
- /**
29
- * Given value in the default dimension
30
- */
31
- value: string;
32
- /**
33
- * The numeric ID of the datasource
34
- */
35
- datasource_id: number;
36
- };
37
- };
38
- type DatasourceEntryUpdateRequest = {
39
- datasource_entry?: {
40
- /**
41
- * The key name of the datasource entry
42
- */
43
- name?: string;
44
- /**
45
- * Given value in the default dimension
46
- */
47
- value?: string;
48
- /**
49
- * Given value in the requested dimension
50
- */
51
- dimension_value?: string;
52
- };
20
+ datasource_id: number;
53
21
  /**
54
- * Numeric dimension id (optional, but required to set a dimension_value)
22
+ * Given value in the requested dimension
55
23
  */
56
- dimension_id?: number;
24
+ dimension_value?: string;
57
25
  };
58
26
  /**
59
27
  * The ID of the Storyblok space (can be integer or string)
60
28
  */
61
29
  type SpaceId = number | string;
30
+ /**
31
+ * Page number for pagination. Default is 1.
32
+ */
33
+ type Page = number;
62
34
  type ListData = {
63
35
  body?: never;
64
36
  path: {
@@ -68,6 +40,14 @@ type ListData = {
68
40
  space_id: number | string;
69
41
  };
70
42
  query?: {
43
+ /**
44
+ * Page number for pagination. Default is 1.
45
+ */
46
+ page?: number;
47
+ /**
48
+ * Number of datasource entries per page. Default is 25, maximum is 1000.
49
+ */
50
+ per_page?: number;
71
51
  /**
72
52
  * Provide the numeric id of a datasource
73
53
  */
@@ -107,7 +87,9 @@ type ListResponses = {
107
87
  };
108
88
  type ListResponse = ListResponses[keyof ListResponses];
109
89
  type CreateData = {
110
- body: DatasourceEntryCreateRequest;
90
+ body: {
91
+ datasource_entry?: DatasourceEntry;
92
+ };
111
93
  path: {
112
94
  /**
113
95
  * The ID of the Storyblok space (can be integer or string)
@@ -215,7 +197,9 @@ type GetResponses = {
215
197
  };
216
198
  type GetResponse = GetResponses[keyof GetResponses];
217
199
  type UpdateDatasourceEntryData = {
218
- body: DatasourceEntryUpdateRequest;
200
+ body: {
201
+ datasource_entry?: DatasourceEntry;
202
+ };
219
203
  path: {
220
204
  /**
221
205
  * The ID of the Storyblok space (can be integer or string)
@@ -256,5 +240,5 @@ type ClientOptions = {
256
240
  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 & {});
257
241
  };
258
242
  //#endregion
259
- export { ClientOptions, CreateData, CreateErrors, CreateResponse, CreateResponses, DatasourceEntry, DatasourceEntryCreateRequest, DatasourceEntryUpdateRequest, DeleteData, DeleteErrors, DeleteResponse, DeleteResponses, GetData, GetErrors, GetResponse, GetResponses, ListData, ListErrors, ListResponse, ListResponses, SpaceId, UpdateDatasourceEntryData, UpdateDatasourceEntryErrors, UpdateDatasourceEntryResponse, UpdateDatasourceEntryResponses, types_gen_d_exports };
243
+ export { ClientOptions, CreateData, CreateErrors, CreateResponse, CreateResponses, DatasourceEntry, DeleteData, DeleteErrors, DeleteResponse, DeleteResponses, GetData, GetErrors, GetResponse, GetResponses, ListData, ListErrors, ListResponse, ListResponses, Page, SpaceId, UpdateDatasourceEntryData, UpdateDatasourceEntryErrors, UpdateDatasourceEntryResponse, UpdateDatasourceEntryResponses, types_gen_d_exports };
260
244
  //# sourceMappingURL=types.gen.d.mts.map