@storyblok/management-api-client 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/generated/assets/types.gen.d.mts +14 -2
- package/dist/generated/assets/types.gen.d.ts +14 -2
- package/dist/generated/assets/types.gen.js.map +1 -1
- package/dist/generated/assets/types.gen.mjs.map +1 -1
- package/dist/generated/component_folders/types.gen.d.mts +8 -28
- package/dist/generated/component_folders/types.gen.d.ts +8 -28
- package/dist/generated/component_folders/types.gen.js.map +1 -1
- package/dist/generated/component_folders/types.gen.mjs.map +1 -1
- package/dist/generated/components/types.gen.d.mts +19 -7
- package/dist/generated/components/types.gen.d.ts +19 -7
- package/dist/generated/components/types.gen.js.map +1 -1
- package/dist/generated/components/types.gen.mjs.map +1 -1
- package/dist/generated/datasource_entries/types.gen.d.mts +26 -42
- package/dist/generated/datasource_entries/types.gen.d.ts +26 -42
- package/dist/generated/datasource_entries/types.gen.js.map +1 -1
- package/dist/generated/datasource_entries/types.gen.mjs.map +1 -1
- package/dist/generated/datasources/types.gen.d.mts +13 -59
- package/dist/generated/datasources/types.gen.d.ts +13 -59
- package/dist/generated/datasources/types.gen.js.map +1 -1
- package/dist/generated/datasources/types.gen.mjs.map +1 -1
- package/dist/generated/internal_tags/types.gen.d.mts +14 -2
- package/dist/generated/internal_tags/types.gen.d.ts +14 -2
- package/dist/generated/internal_tags/types.gen.js.map +1 -1
- package/dist/generated/internal_tags/types.gen.mjs.map +1 -1
- package/dist/generated/presets/types.gen.d.mts +10 -80
- package/dist/generated/presets/types.gen.d.ts +10 -80
- package/dist/generated/presets/types.gen.js.map +1 -1
- package/dist/generated/presets/types.gen.mjs.map +1 -1
- package/dist/generated/spaces/types.gen.d.mts +71 -0
- package/dist/generated/spaces/types.gen.d.ts +71 -0
- package/dist/generated/spaces/types.gen.js.map +1 -1
- package/dist/generated/spaces/types.gen.mjs.map +1 -1
- package/dist/generated/stories/types.gen.d.mts +30 -17
- package/dist/generated/stories/types.gen.d.ts +30 -17
- package/dist/generated/stories/types.gen.js.map +1 -1
- package/dist/generated/stories/types.gen.mjs.map +1 -1
- package/dist/generated/users/types.gen.d.mts +10 -113
- package/dist/generated/users/types.gen.d.ts +10 -113
- package/dist/generated/users/types.gen.js.map +1 -1
- package/dist/generated/users/types.gen.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -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,
|
|
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
|
|
8
|
+
readonly id: number;
|
|
9
9
|
/**
|
|
10
10
|
* The key name of the datasource entry
|
|
11
11
|
*/
|
|
12
|
-
name
|
|
12
|
+
name: string;
|
|
13
13
|
/**
|
|
14
14
|
* Given value in the default dimension
|
|
15
15
|
*/
|
|
16
16
|
value?: string;
|
|
17
17
|
/**
|
|
18
|
-
*
|
|
18
|
+
* The numeric ID of the datasource
|
|
19
19
|
*/
|
|
20
|
-
|
|
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
|
-
*
|
|
22
|
+
* Given value in the requested dimension
|
|
55
23
|
*/
|
|
56
|
-
|
|
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:
|
|
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:
|
|
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,
|
|
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
|
|
@@ -1,64 +1,36 @@
|
|
|
1
1
|
declare namespace types_gen_d_exports {
|
|
2
|
-
export { ClientOptions, CreateData, CreateErrors, CreateResponse, CreateResponses, DatasourceEntry,
|
|
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
|
|
8
|
+
readonly id: number;
|
|
9
9
|
/**
|
|
10
10
|
* The key name of the datasource entry
|
|
11
11
|
*/
|
|
12
|
-
name
|
|
12
|
+
name: string;
|
|
13
13
|
/**
|
|
14
14
|
* Given value in the default dimension
|
|
15
15
|
*/
|
|
16
16
|
value?: string;
|
|
17
17
|
/**
|
|
18
|
-
*
|
|
18
|
+
* The numeric ID of the datasource
|
|
19
19
|
*/
|
|
20
|
-
|
|
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
|
-
*
|
|
22
|
+
* Given value in the requested dimension
|
|
55
23
|
*/
|
|
56
|
-
|
|
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:
|
|
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:
|
|
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,
|
|
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.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.gen.js","names":[],"sources":["../../../src/generated/datasource_entries/types.gen.ts"],"sourcesContent":["// This file is auto-generated by @hey-api/openapi-ts\n\nexport type DatasourceEntry = {\n /**\n * The numeric ID\n */\n id
|
|
1
|
+
{"version":3,"file":"types.gen.js","names":[],"sources":["../../../src/generated/datasource_entries/types.gen.ts"],"sourcesContent":["// This file is auto-generated by @hey-api/openapi-ts\n\nexport type DatasourceEntry = {\n /**\n * The numeric ID\n */\n readonly id: number;\n /**\n * The key name of the datasource entry\n */\n name: string;\n /**\n * Given value in the default dimension\n */\n value?: string;\n /**\n * The numeric ID of the datasource\n */\n datasource_id: number;\n /**\n * Given value in the requested dimension\n */\n dimension_value?: 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\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 datasource entries per page. Default is 25, maximum is 1000.\n */\n per_page?: number;\n /**\n * Provide the numeric id of a datasource\n */\n datasource_id?: number;\n /**\n * Provide the slug of a datasource\n */\n datasource_slug?: string;\n /**\n * Provide dimension id to receive the dimension_value filled\n */\n dimension?: string;\n };\n url: '/v1/spaces/{space_id}/datasource_entries';\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 datasource entries\n */\n 200: {\n datasource_entries?: Array<DatasourceEntry>;\n };\n};\n\nexport type ListResponse = ListResponses[keyof ListResponses];\n\nexport type CreateData = {\n body: {\n datasource_entry?: DatasourceEntry;\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}/datasource_entries';\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 * Datasource entry created\n */\n 201: {\n datasource_entry?: DatasourceEntry;\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 * Numeric ID of datasource entry\n */\n datasource_entry_id: number;\n };\n query?: never;\n url: '/v1/spaces/{space_id}/datasource_entries/{datasource_entry_id}';\n};\n\nexport type DeleteErrors = {\n /**\n * Bad request\n */\n 400: unknown;\n /**\n * Unauthorized\n */\n 401: unknown;\n /**\n * Datasource entry not found\n */\n 404: unknown;\n};\n\nexport type DeleteResponses = {\n /**\n * Datasource entry deleted\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 * Numeric ID of datasource entry\n */\n datasource_entry_id: number;\n };\n query?: never;\n url: '/v1/spaces/{space_id}/datasource_entries/{datasource_entry_id}';\n};\n\nexport type GetErrors = {\n /**\n * Bad request\n */\n 400: unknown;\n /**\n * Unauthorized\n */\n 401: unknown;\n /**\n * Datasource entry not found\n */\n 404: unknown;\n};\n\nexport type GetResponses = {\n /**\n * Datasource entry details\n */\n 200: {\n datasource_entry?: DatasourceEntry;\n };\n};\n\nexport type GetResponse = GetResponses[keyof GetResponses];\n\nexport type UpdateDatasourceEntryData = {\n body: {\n datasource_entry?: DatasourceEntry;\n };\n path: {\n /**\n * The ID of the Storyblok space (can be integer or string)\n */\n space_id: number | string;\n /**\n * Numeric ID of datasource entry\n */\n datasource_entry_id: number;\n };\n query?: never;\n url: '/v1/spaces/{space_id}/datasource_entries/{datasource_entry_id}';\n};\n\nexport type UpdateDatasourceEntryErrors = {\n /**\n * Bad request\n */\n 400: unknown;\n /**\n * Unauthorized\n */\n 401: unknown;\n /**\n * Datasource entry not found\n */\n 404: unknown;\n};\n\nexport type UpdateDatasourceEntryResponses = {\n /**\n * Datasource entry updated\n */\n 200: {\n datasource_entry?: DatasourceEntry;\n };\n};\n\nexport type UpdateDatasourceEntryResponse = UpdateDatasourceEntryResponses[keyof UpdateDatasourceEntryResponses];\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/datasource_entries/types.gen.ts"],"sourcesContent":["// This file is auto-generated by @hey-api/openapi-ts\n\nexport type DatasourceEntry = {\n /**\n * The numeric ID\n */\n id
|
|
1
|
+
{"version":3,"file":"types.gen.mjs","names":[],"sources":["../../../src/generated/datasource_entries/types.gen.ts"],"sourcesContent":["// This file is auto-generated by @hey-api/openapi-ts\n\nexport type DatasourceEntry = {\n /**\n * The numeric ID\n */\n readonly id: number;\n /**\n * The key name of the datasource entry\n */\n name: string;\n /**\n * Given value in the default dimension\n */\n value?: string;\n /**\n * The numeric ID of the datasource\n */\n datasource_id: number;\n /**\n * Given value in the requested dimension\n */\n dimension_value?: 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\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 datasource entries per page. Default is 25, maximum is 1000.\n */\n per_page?: number;\n /**\n * Provide the numeric id of a datasource\n */\n datasource_id?: number;\n /**\n * Provide the slug of a datasource\n */\n datasource_slug?: string;\n /**\n * Provide dimension id to receive the dimension_value filled\n */\n dimension?: string;\n };\n url: '/v1/spaces/{space_id}/datasource_entries';\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 datasource entries\n */\n 200: {\n datasource_entries?: Array<DatasourceEntry>;\n };\n};\n\nexport type ListResponse = ListResponses[keyof ListResponses];\n\nexport type CreateData = {\n body: {\n datasource_entry?: DatasourceEntry;\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}/datasource_entries';\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 * Datasource entry created\n */\n 201: {\n datasource_entry?: DatasourceEntry;\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 * Numeric ID of datasource entry\n */\n datasource_entry_id: number;\n };\n query?: never;\n url: '/v1/spaces/{space_id}/datasource_entries/{datasource_entry_id}';\n};\n\nexport type DeleteErrors = {\n /**\n * Bad request\n */\n 400: unknown;\n /**\n * Unauthorized\n */\n 401: unknown;\n /**\n * Datasource entry not found\n */\n 404: unknown;\n};\n\nexport type DeleteResponses = {\n /**\n * Datasource entry deleted\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 * Numeric ID of datasource entry\n */\n datasource_entry_id: number;\n };\n query?: never;\n url: '/v1/spaces/{space_id}/datasource_entries/{datasource_entry_id}';\n};\n\nexport type GetErrors = {\n /**\n * Bad request\n */\n 400: unknown;\n /**\n * Unauthorized\n */\n 401: unknown;\n /**\n * Datasource entry not found\n */\n 404: unknown;\n};\n\nexport type GetResponses = {\n /**\n * Datasource entry details\n */\n 200: {\n datasource_entry?: DatasourceEntry;\n };\n};\n\nexport type GetResponse = GetResponses[keyof GetResponses];\n\nexport type UpdateDatasourceEntryData = {\n body: {\n datasource_entry?: DatasourceEntry;\n };\n path: {\n /**\n * The ID of the Storyblok space (can be integer or string)\n */\n space_id: number | string;\n /**\n * Numeric ID of datasource entry\n */\n datasource_entry_id: number;\n };\n query?: never;\n url: '/v1/spaces/{space_id}/datasource_entries/{datasource_entry_id}';\n};\n\nexport type UpdateDatasourceEntryErrors = {\n /**\n * Bad request\n */\n 400: unknown;\n /**\n * Unauthorized\n */\n 401: unknown;\n /**\n * Datasource entry not found\n */\n 404: unknown;\n};\n\nexport type UpdateDatasourceEntryResponses = {\n /**\n * Datasource entry updated\n */\n 200: {\n datasource_entry?: DatasourceEntry;\n };\n};\n\nexport type UpdateDatasourceEntryResponse = UpdateDatasourceEntryResponses[keyof UpdateDatasourceEntryResponses];\n\nexport type ClientOptions = {\n baseUrl: 'https://mapi.storyblok.com' | 'https://api-us.storyblok.com' | 'https://api-ca.storyblok.com' | 'https://api-ap.storyblok.com' | 'https://app.storyblok.cn' | (string & {});\n};"],"mappings":""}
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
declare namespace types_gen_d_exports {
|
|
2
|
-
export { ClientOptions, CreateData, CreateErrors, CreateResponse, CreateResponses, Datasource,
|
|
2
|
+
export { ClientOptions, CreateData, CreateErrors, CreateResponse, CreateResponses, Datasource, DeleteData, DeleteErrors, DeleteResponse, DeleteResponses, GetData, GetErrors, GetResponse, GetResponses, ListData, ListErrors, ListResponse, ListResponses, SpaceId, UpdateData, UpdateErrors, UpdateResponse, UpdateResponses };
|
|
3
3
|
}
|
|
4
4
|
type Datasource = {
|
|
5
5
|
/**
|
|
6
6
|
* The numeric ID of the datasource
|
|
7
7
|
*/
|
|
8
|
-
id
|
|
8
|
+
readonly id: number;
|
|
9
9
|
/**
|
|
10
10
|
* The complete name provided for a datasource
|
|
11
11
|
*/
|
|
12
|
-
name
|
|
12
|
+
name: string;
|
|
13
13
|
/**
|
|
14
14
|
* Slug of a datasource
|
|
15
15
|
*/
|
|
16
|
-
slug
|
|
16
|
+
slug: string;
|
|
17
17
|
/**
|
|
18
18
|
* An array listing the dimensions (e.g., per country, region, language, or other context) defined for the datasource
|
|
19
19
|
*/
|
|
@@ -46,61 +46,11 @@ type Datasource = {
|
|
|
46
46
|
/**
|
|
47
47
|
* Creation date
|
|
48
48
|
*/
|
|
49
|
-
created_at
|
|
49
|
+
created_at: string;
|
|
50
50
|
/**
|
|
51
51
|
* Latest update date
|
|
52
52
|
*/
|
|
53
|
-
updated_at
|
|
54
|
-
};
|
|
55
|
-
type DatasourceCreateRequest = {
|
|
56
|
-
datasource?: {
|
|
57
|
-
/**
|
|
58
|
-
* The complete name provided for a datasource
|
|
59
|
-
*/
|
|
60
|
-
name: string;
|
|
61
|
-
/**
|
|
62
|
-
* Slug of a datasource
|
|
63
|
-
*/
|
|
64
|
-
slug: string;
|
|
65
|
-
/**
|
|
66
|
-
* An array of dimension attributes for creating dimensions within the datasource
|
|
67
|
-
*/
|
|
68
|
-
dimensions_attributes?: Array<{
|
|
69
|
-
/**
|
|
70
|
-
* The complete name provided for the datasource dimension
|
|
71
|
-
*/
|
|
72
|
-
name?: string;
|
|
73
|
-
/**
|
|
74
|
-
* The value provided for the datasource dimension (e.g., a language code)
|
|
75
|
-
*/
|
|
76
|
-
entry_value?: string;
|
|
77
|
-
}>;
|
|
78
|
-
};
|
|
79
|
-
};
|
|
80
|
-
type DatasourceUpdateRequest = {
|
|
81
|
-
datasource?: {
|
|
82
|
-
/**
|
|
83
|
-
* The complete name provided for a datasource
|
|
84
|
-
*/
|
|
85
|
-
name?: string;
|
|
86
|
-
/**
|
|
87
|
-
* Slug of a datasource
|
|
88
|
-
*/
|
|
89
|
-
slug?: string;
|
|
90
|
-
/**
|
|
91
|
-
* An array of dimension attributes for updating dimensions within the datasource
|
|
92
|
-
*/
|
|
93
|
-
dimensions_attributes?: Array<{
|
|
94
|
-
/**
|
|
95
|
-
* The complete name provided for the datasource dimension
|
|
96
|
-
*/
|
|
97
|
-
name?: string;
|
|
98
|
-
/**
|
|
99
|
-
* The value provided for the datasource dimension (e.g., a language code)
|
|
100
|
-
*/
|
|
101
|
-
entry_value?: string;
|
|
102
|
-
}>;
|
|
103
|
-
};
|
|
53
|
+
updated_at: string;
|
|
104
54
|
};
|
|
105
55
|
/**
|
|
106
56
|
* The ID of the Storyblok space (can be integer or string)
|
|
@@ -150,7 +100,9 @@ type ListResponses = {
|
|
|
150
100
|
};
|
|
151
101
|
type ListResponse = ListResponses[keyof ListResponses];
|
|
152
102
|
type CreateData = {
|
|
153
|
-
body:
|
|
103
|
+
body: {
|
|
104
|
+
datasource?: Datasource;
|
|
105
|
+
};
|
|
154
106
|
path: {
|
|
155
107
|
/**
|
|
156
108
|
* The ID of the Storyblok space (can be integer or string)
|
|
@@ -258,7 +210,9 @@ type GetResponses = {
|
|
|
258
210
|
};
|
|
259
211
|
type GetResponse = GetResponses[keyof GetResponses];
|
|
260
212
|
type UpdateData = {
|
|
261
|
-
body:
|
|
213
|
+
body: {
|
|
214
|
+
datasource?: Datasource;
|
|
215
|
+
};
|
|
262
216
|
path: {
|
|
263
217
|
/**
|
|
264
218
|
* The ID of the Storyblok space (can be integer or string)
|
|
@@ -299,5 +253,5 @@ type ClientOptions = {
|
|
|
299
253
|
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 & {});
|
|
300
254
|
};
|
|
301
255
|
//#endregion
|
|
302
|
-
export { ClientOptions, CreateData, CreateErrors, CreateResponse, CreateResponses, Datasource,
|
|
256
|
+
export { ClientOptions, CreateData, CreateErrors, CreateResponse, CreateResponses, Datasource, DeleteData, DeleteErrors, DeleteResponse, DeleteResponses, GetData, GetErrors, GetResponse, GetResponses, ListData, ListErrors, ListResponse, ListResponses, SpaceId, UpdateData, UpdateErrors, UpdateResponse, UpdateResponses, types_gen_d_exports };
|
|
303
257
|
//# sourceMappingURL=types.gen.d.mts.map
|