@storyblok/api-client 0.2.1 → 0.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (66) hide show
  1. package/README.md +1 -1
  2. package/dist/generated/datasource_entries/sdk.gen.cjs +2 -2
  3. package/dist/generated/datasource_entries/sdk.gen.cjs.map +1 -1
  4. package/dist/generated/datasource_entries/sdk.gen.mjs +2 -2
  5. package/dist/generated/datasource_entries/sdk.gen.mjs.map +1 -1
  6. package/dist/generated/datasource_entries/types.gen.d.cts +3 -3
  7. package/dist/generated/datasource_entries/types.gen.d.mts +3 -3
  8. package/dist/generated/datasources/sdk.gen.cjs +2 -2
  9. package/dist/generated/datasources/sdk.gen.cjs.map +1 -1
  10. package/dist/generated/datasources/sdk.gen.mjs +2 -2
  11. package/dist/generated/datasources/sdk.gen.mjs.map +1 -1
  12. package/dist/generated/datasources/types.gen.d.cts +3 -3
  13. package/dist/generated/datasources/types.gen.d.mts +3 -3
  14. package/dist/generated/links/sdk.gen.cjs +2 -2
  15. package/dist/generated/links/sdk.gen.cjs.map +1 -1
  16. package/dist/generated/links/sdk.gen.mjs +2 -2
  17. package/dist/generated/links/sdk.gen.mjs.map +1 -1
  18. package/dist/generated/links/types.gen.d.cts +3 -3
  19. package/dist/generated/links/types.gen.d.mts +3 -3
  20. package/dist/generated/stories/sdk.gen.cjs +2 -2
  21. package/dist/generated/stories/sdk.gen.cjs.map +1 -1
  22. package/dist/generated/stories/sdk.gen.mjs +2 -2
  23. package/dist/generated/stories/sdk.gen.mjs.map +1 -1
  24. package/dist/generated/stories/types.gen.d.cts +6 -6
  25. package/dist/generated/stories/types.gen.d.mts +6 -6
  26. package/dist/generated/tags/sdk.gen.cjs +2 -2
  27. package/dist/generated/tags/sdk.gen.cjs.map +1 -1
  28. package/dist/generated/tags/sdk.gen.mjs +2 -2
  29. package/dist/generated/tags/sdk.gen.mjs.map +1 -1
  30. package/dist/generated/tags/types.gen.d.cts +3 -3
  31. package/dist/generated/tags/types.gen.d.mts +3 -3
  32. package/dist/index.cjs.map +1 -1
  33. package/dist/index.d.cts +20 -20
  34. package/dist/index.d.mts +20 -20
  35. package/dist/index.mjs.map +1 -1
  36. package/dist/resources/datasource-entries.cjs +2 -2
  37. package/dist/resources/datasource-entries.cjs.map +1 -1
  38. package/dist/resources/datasource-entries.mjs +3 -3
  39. package/dist/resources/datasource-entries.mjs.map +1 -1
  40. package/dist/resources/datasources.cjs +2 -2
  41. package/dist/resources/datasources.cjs.map +1 -1
  42. package/dist/resources/datasources.mjs +3 -3
  43. package/dist/resources/datasources.mjs.map +1 -1
  44. package/dist/resources/links.cjs +2 -2
  45. package/dist/resources/links.cjs.map +1 -1
  46. package/dist/resources/links.mjs +3 -3
  47. package/dist/resources/links.mjs.map +1 -1
  48. package/dist/resources/stories.cjs +2 -2
  49. package/dist/resources/stories.cjs.map +1 -1
  50. package/dist/resources/stories.mjs +3 -3
  51. package/dist/resources/stories.mjs.map +1 -1
  52. package/dist/resources/tags.cjs +2 -2
  53. package/dist/resources/tags.cjs.map +1 -1
  54. package/dist/resources/tags.mjs +3 -3
  55. package/dist/resources/tags.mjs.map +1 -1
  56. package/dist/utils/fetch-rel-uuids.cjs +1 -1
  57. package/dist/utils/fetch-rel-uuids.cjs.map +1 -1
  58. package/dist/utils/fetch-rel-uuids.mjs +2 -2
  59. package/dist/utils/fetch-rel-uuids.mjs.map +1 -1
  60. package/dist/utils/rate-limit.cjs +4 -4
  61. package/dist/utils/rate-limit.cjs.map +1 -1
  62. package/dist/utils/rate-limit.d.cts +1 -1
  63. package/dist/utils/rate-limit.d.mts +1 -1
  64. package/dist/utils/rate-limit.mjs +4 -4
  65. package/dist/utils/rate-limit.mjs.map +1 -1
  66. package/package.json +3 -2
package/README.md CHANGED
@@ -38,7 +38,7 @@
38
38
 
39
39
  ## Documentation
40
40
 
41
- For complete documentation, please visit [package reference](https://www.storyblok.com/docs/packages/storyblok-api-client)
41
+ For complete documentation, please visit [package reference](https://www.storyblok.com/docs/libraries/js/api-client)
42
42
 
43
43
  ## Contributing
44
44
 
@@ -6,7 +6,7 @@ const require_client_gen = require('./client.gen.cjs');
6
6
  *
7
7
  * Returns an array of all datasource entries. The API response can be filtered using the query parameters.
8
8
  */
9
- const getAll = (options) => (options?.client ?? require_client_gen.client).get({
9
+ const list = (options) => (options?.client ?? require_client_gen.client).get({
10
10
  security: [{
11
11
  in: "query",
12
12
  name: "token",
@@ -17,5 +17,5 @@ const getAll = (options) => (options?.client ?? require_client_gen.client).get({
17
17
  });
18
18
 
19
19
  //#endregion
20
- exports.getAll = getAll;
20
+ exports.list = list;
21
21
  //# sourceMappingURL=sdk.gen.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"sdk.gen.cjs","names":["client"],"sources":["../../../src/generated/datasource_entries/sdk.gen.ts"],"sourcesContent":["// This file is auto-generated by @hey-api/openapi-ts\n\nimport type { Client, Options as Options2, TDataShape } from '../shared/client';\nimport { client } from './client.gen';\nimport type { GetAllData, GetAllErrors, GetAllResponses } from './types.gen';\n\nexport type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean> = Options2<TData, ThrowOnError> & {\n /**\n * You can provide a client instance returned by `createClient()` instead of\n * individual options. This might be also useful if you want to implement a\n * custom client.\n */\n client?: Client;\n /**\n * You can pass arbitrary values through the `meta` object. This can be\n * used to access values that aren't defined as part of the SDK function.\n */\n meta?: Record<string, unknown>;\n};\n\n/**\n * Retrieve Multiple Datasource Entries\n *\n * Returns an array of all datasource entries. The API response can be filtered using the query parameters.\n */\nexport const getAll = <ThrowOnError extends boolean = false>(options?: Options<GetAllData, ThrowOnError>) => (options?.client ?? client).get<GetAllResponses, GetAllErrors, ThrowOnError>({\n security: [{\n in: 'query',\n name: 'token',\n type: 'apiKey'\n }],\n url: '/v2/cdn/datasource_entries',\n ...options\n});\n"],"mappings":";;;;;;;;AAyBA,MAAa,UAAgD,aAAiD,SAAS,UAAUA,2BAAQ,IAAiD;CACtL,UAAU,CAAC;EACH,IAAI;EACJ,MAAM;EACN,MAAM;EACT,CAAC;CACN,KAAK;CACL,GAAG;CACN,CAAC"}
1
+ {"version":3,"file":"sdk.gen.cjs","names":["client"],"sources":["../../../src/generated/datasource_entries/sdk.gen.ts"],"sourcesContent":["// This file is auto-generated by @hey-api/openapi-ts\n\nimport type { Client, Options as Options2, TDataShape } from '../shared/client';\nimport { client } from './client.gen';\nimport type { ListData, ListErrors, ListResponses } from './types.gen';\n\nexport type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean> = Options2<TData, ThrowOnError> & {\n /**\n * You can provide a client instance returned by `createClient()` instead of\n * individual options. This might be also useful if you want to implement a\n * custom client.\n */\n client?: Client;\n /**\n * You can pass arbitrary values through the `meta` object. This can be\n * used to access values that aren't defined as part of the SDK function.\n */\n meta?: Record<string, unknown>;\n};\n\n/**\n * Retrieve Multiple Datasource Entries\n *\n * Returns an array of all datasource entries. The API response can be filtered using the query parameters.\n */\nexport const list = <ThrowOnError extends boolean = false>(options?: Options<ListData, ThrowOnError>) => (options?.client ?? client).get<ListResponses, ListErrors, ThrowOnError>({\n security: [{\n in: 'query',\n name: 'token',\n type: 'apiKey'\n }],\n url: '/v2/cdn/datasource_entries',\n ...options\n});\n"],"mappings":";;;;;;;;AAyBA,MAAa,QAA8C,aAA+C,SAAS,UAAUA,2BAAQ,IAA6C;CAC9K,UAAU,CAAC;EACH,IAAI;EACJ,MAAM;EACN,MAAM;EACT,CAAC;CACN,KAAK;CACL,GAAG;CACN,CAAC"}
@@ -6,7 +6,7 @@ import { client } from "./client.gen.mjs";
6
6
  *
7
7
  * Returns an array of all datasource entries. The API response can be filtered using the query parameters.
8
8
  */
9
- const getAll = (options) => (options?.client ?? client).get({
9
+ const list = (options) => (options?.client ?? client).get({
10
10
  security: [{
11
11
  in: "query",
12
12
  name: "token",
@@ -17,5 +17,5 @@ const getAll = (options) => (options?.client ?? client).get({
17
17
  });
18
18
 
19
19
  //#endregion
20
- export { getAll };
20
+ export { list };
21
21
  //# sourceMappingURL=sdk.gen.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"sdk.gen.mjs","names":[],"sources":["../../../src/generated/datasource_entries/sdk.gen.ts"],"sourcesContent":["// This file is auto-generated by @hey-api/openapi-ts\n\nimport type { Client, Options as Options2, TDataShape } from '../shared/client';\nimport { client } from './client.gen';\nimport type { GetAllData, GetAllErrors, GetAllResponses } from './types.gen';\n\nexport type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean> = Options2<TData, ThrowOnError> & {\n /**\n * You can provide a client instance returned by `createClient()` instead of\n * individual options. This might be also useful if you want to implement a\n * custom client.\n */\n client?: Client;\n /**\n * You can pass arbitrary values through the `meta` object. This can be\n * used to access values that aren't defined as part of the SDK function.\n */\n meta?: Record<string, unknown>;\n};\n\n/**\n * Retrieve Multiple Datasource Entries\n *\n * Returns an array of all datasource entries. The API response can be filtered using the query parameters.\n */\nexport const getAll = <ThrowOnError extends boolean = false>(options?: Options<GetAllData, ThrowOnError>) => (options?.client ?? client).get<GetAllResponses, GetAllErrors, ThrowOnError>({\n security: [{\n in: 'query',\n name: 'token',\n type: 'apiKey'\n }],\n url: '/v2/cdn/datasource_entries',\n ...options\n});\n"],"mappings":";;;;;;;;AAyBA,MAAa,UAAgD,aAAiD,SAAS,UAAU,QAAQ,IAAiD;CACtL,UAAU,CAAC;EACH,IAAI;EACJ,MAAM;EACN,MAAM;EACT,CAAC;CACN,KAAK;CACL,GAAG;CACN,CAAC"}
1
+ {"version":3,"file":"sdk.gen.mjs","names":[],"sources":["../../../src/generated/datasource_entries/sdk.gen.ts"],"sourcesContent":["// This file is auto-generated by @hey-api/openapi-ts\n\nimport type { Client, Options as Options2, TDataShape } from '../shared/client';\nimport { client } from './client.gen';\nimport type { ListData, ListErrors, ListResponses } from './types.gen';\n\nexport type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean> = Options2<TData, ThrowOnError> & {\n /**\n * You can provide a client instance returned by `createClient()` instead of\n * individual options. This might be also useful if you want to implement a\n * custom client.\n */\n client?: Client;\n /**\n * You can pass arbitrary values through the `meta` object. This can be\n * used to access values that aren't defined as part of the SDK function.\n */\n meta?: Record<string, unknown>;\n};\n\n/**\n * Retrieve Multiple Datasource Entries\n *\n * Returns an array of all datasource entries. The API response can be filtered using the query parameters.\n */\nexport const list = <ThrowOnError extends boolean = false>(options?: Options<ListData, ThrowOnError>) => (options?.client ?? client).get<ListResponses, ListErrors, ThrowOnError>({\n security: [{\n in: 'query',\n name: 'token',\n type: 'apiKey'\n }],\n url: '/v2/cdn/datasource_entries',\n ...options\n});\n"],"mappings":";;;;;;;;AAyBA,MAAa,QAA8C,aAA+C,SAAS,UAAU,QAAQ,IAA6C;CAC9K,UAAU,CAAC;EACH,IAAI;EACJ,MAAM;EACN,MAAM;EACT,CAAC;CACN,KAAK;CACL,GAAG;CACN,CAAC"}
@@ -20,7 +20,7 @@ type DatasourceEntryCapi = {
20
20
  */
21
21
  dimension_value?: string | null;
22
22
  };
23
- type GetAllData = {
23
+ type ListData = {
24
24
  body?: never;
25
25
  path?: never;
26
26
  query?: {
@@ -47,7 +47,7 @@ type GetAllData = {
47
47
  };
48
48
  url: '/v2/cdn/datasource_entries';
49
49
  };
50
- type GetAllResponses = {
50
+ type ListResponses = {
51
51
  /**
52
52
  * Array of datasource entries
53
53
  */
@@ -63,5 +63,5 @@ type GetAllResponses = {
63
63
  };
64
64
  };
65
65
  //#endregion
66
- export { DatasourceEntryCapi, GetAllData, GetAllResponses };
66
+ export { DatasourceEntryCapi, ListData, ListResponses };
67
67
  //# sourceMappingURL=types.gen.d.cts.map
@@ -20,7 +20,7 @@ type DatasourceEntryCapi = {
20
20
  */
21
21
  dimension_value?: string | null;
22
22
  };
23
- type GetAllData = {
23
+ type ListData = {
24
24
  body?: never;
25
25
  path?: never;
26
26
  query?: {
@@ -47,7 +47,7 @@ type GetAllData = {
47
47
  };
48
48
  url: '/v2/cdn/datasource_entries';
49
49
  };
50
- type GetAllResponses = {
50
+ type ListResponses = {
51
51
  /**
52
52
  * Array of datasource entries
53
53
  */
@@ -63,5 +63,5 @@ type GetAllResponses = {
63
63
  };
64
64
  };
65
65
  //#endregion
66
- export { DatasourceEntryCapi, GetAllData, GetAllResponses };
66
+ export { DatasourceEntryCapi, ListData, ListResponses };
67
67
  //# sourceMappingURL=types.gen.d.mts.map
@@ -6,7 +6,7 @@ const require_client_gen = require('./client.gen.cjs');
6
6
  *
7
7
  * Returns an array of all datasources with pagination support.
8
8
  */
9
- const getAll = (options) => (options?.client ?? require_client_gen.client).get({
9
+ const list = (options) => (options?.client ?? require_client_gen.client).get({
10
10
  security: [{
11
11
  in: "query",
12
12
  name: "token",
@@ -32,5 +32,5 @@ const get = (options) => (options.client ?? require_client_gen.client).get({
32
32
 
33
33
  //#endregion
34
34
  exports.get = get;
35
- exports.getAll = getAll;
35
+ exports.list = list;
36
36
  //# sourceMappingURL=sdk.gen.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"sdk.gen.cjs","names":["client"],"sources":["../../../src/generated/datasources/sdk.gen.ts"],"sourcesContent":["// This file is auto-generated by @hey-api/openapi-ts\n\nimport type { Client, Options as Options2, TDataShape } from '../shared/client';\nimport { client } from './client.gen';\nimport type { GetAllData, GetAllErrors, GetAllResponses, GetData, GetErrors, GetResponses } from './types.gen';\n\nexport type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean> = Options2<TData, ThrowOnError> & {\n /**\n * You can provide a client instance returned by `createClient()` instead of\n * individual options. This might be also useful if you want to implement a\n * custom client.\n */\n client?: Client;\n /**\n * You can pass arbitrary values through the `meta` object. This can be\n * used to access values that aren't defined as part of the SDK function.\n */\n meta?: Record<string, unknown>;\n};\n\n/**\n * Retrieve Multiple Datasources\n *\n * Returns an array of all datasources with pagination support.\n */\nexport const getAll = <ThrowOnError extends boolean = false>(options?: Options<GetAllData, ThrowOnError>) => (options?.client ?? client).get<GetAllResponses, GetAllErrors, ThrowOnError>({\n security: [{\n in: 'query',\n name: 'token',\n type: 'apiKey'\n }],\n url: '/v2/cdn/datasources',\n ...options\n});\n\n/**\n * Retrieve One Datasource\n *\n * Returns a single datasource object for the specified ID\n */\nexport const get = <ThrowOnError extends boolean = false>(options: Options<GetData, ThrowOnError>) => (options.client ?? client).get<GetResponses, GetErrors, ThrowOnError>({\n security: [{\n in: 'query',\n name: 'token',\n type: 'apiKey'\n }],\n url: '/v2/cdn/datasources/{id}',\n ...options\n});\n"],"mappings":";;;;;;;;AAyBA,MAAa,UAAgD,aAAiD,SAAS,UAAUA,2BAAQ,IAAiD;CACtL,UAAU,CAAC;EACH,IAAI;EACJ,MAAM;EACN,MAAM;EACT,CAAC;CACN,KAAK;CACL,GAAG;CACN,CAAC;;;;;;AAOF,MAAa,OAA6C,aAA6C,QAAQ,UAAUA,2BAAQ,IAA2C;CACxK,UAAU,CAAC;EACH,IAAI;EACJ,MAAM;EACN,MAAM;EACT,CAAC;CACN,KAAK;CACL,GAAG;CACN,CAAC"}
1
+ {"version":3,"file":"sdk.gen.cjs","names":["client"],"sources":["../../../src/generated/datasources/sdk.gen.ts"],"sourcesContent":["// This file is auto-generated by @hey-api/openapi-ts\n\nimport type { Client, Options as Options2, TDataShape } from '../shared/client';\nimport { client } from './client.gen';\nimport type { GetData, GetErrors, GetResponses, ListData, ListErrors, ListResponses } from './types.gen';\n\nexport type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean> = Options2<TData, ThrowOnError> & {\n /**\n * You can provide a client instance returned by `createClient()` instead of\n * individual options. This might be also useful if you want to implement a\n * custom client.\n */\n client?: Client;\n /**\n * You can pass arbitrary values through the `meta` object. This can be\n * used to access values that aren't defined as part of the SDK function.\n */\n meta?: Record<string, unknown>;\n};\n\n/**\n * Retrieve Multiple Datasources\n *\n * Returns an array of all datasources with pagination support.\n */\nexport const list = <ThrowOnError extends boolean = false>(options?: Options<ListData, ThrowOnError>) => (options?.client ?? client).get<ListResponses, ListErrors, ThrowOnError>({\n security: [{\n in: 'query',\n name: 'token',\n type: 'apiKey'\n }],\n url: '/v2/cdn/datasources',\n ...options\n});\n\n/**\n * Retrieve One Datasource\n *\n * Returns a single datasource object for the specified ID\n */\nexport const get = <ThrowOnError extends boolean = false>(options: Options<GetData, ThrowOnError>) => (options.client ?? client).get<GetResponses, GetErrors, ThrowOnError>({\n security: [{\n in: 'query',\n name: 'token',\n type: 'apiKey'\n }],\n url: '/v2/cdn/datasources/{id}',\n ...options\n});\n"],"mappings":";;;;;;;;AAyBA,MAAa,QAA8C,aAA+C,SAAS,UAAUA,2BAAQ,IAA6C;CAC9K,UAAU,CAAC;EACH,IAAI;EACJ,MAAM;EACN,MAAM;EACT,CAAC;CACN,KAAK;CACL,GAAG;CACN,CAAC;;;;;;AAOF,MAAa,OAA6C,aAA6C,QAAQ,UAAUA,2BAAQ,IAA2C;CACxK,UAAU,CAAC;EACH,IAAI;EACJ,MAAM;EACN,MAAM;EACT,CAAC;CACN,KAAK;CACL,GAAG;CACN,CAAC"}
@@ -6,7 +6,7 @@ import { client } from "./client.gen.mjs";
6
6
  *
7
7
  * Returns an array of all datasources with pagination support.
8
8
  */
9
- const getAll = (options) => (options?.client ?? client).get({
9
+ const list = (options) => (options?.client ?? client).get({
10
10
  security: [{
11
11
  in: "query",
12
12
  name: "token",
@@ -31,5 +31,5 @@ const get = (options) => (options.client ?? client).get({
31
31
  });
32
32
 
33
33
  //#endregion
34
- export { get, getAll };
34
+ export { get, list };
35
35
  //# sourceMappingURL=sdk.gen.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"sdk.gen.mjs","names":[],"sources":["../../../src/generated/datasources/sdk.gen.ts"],"sourcesContent":["// This file is auto-generated by @hey-api/openapi-ts\n\nimport type { Client, Options as Options2, TDataShape } from '../shared/client';\nimport { client } from './client.gen';\nimport type { GetAllData, GetAllErrors, GetAllResponses, GetData, GetErrors, GetResponses } from './types.gen';\n\nexport type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean> = Options2<TData, ThrowOnError> & {\n /**\n * You can provide a client instance returned by `createClient()` instead of\n * individual options. This might be also useful if you want to implement a\n * custom client.\n */\n client?: Client;\n /**\n * You can pass arbitrary values through the `meta` object. This can be\n * used to access values that aren't defined as part of the SDK function.\n */\n meta?: Record<string, unknown>;\n};\n\n/**\n * Retrieve Multiple Datasources\n *\n * Returns an array of all datasources with pagination support.\n */\nexport const getAll = <ThrowOnError extends boolean = false>(options?: Options<GetAllData, ThrowOnError>) => (options?.client ?? client).get<GetAllResponses, GetAllErrors, ThrowOnError>({\n security: [{\n in: 'query',\n name: 'token',\n type: 'apiKey'\n }],\n url: '/v2/cdn/datasources',\n ...options\n});\n\n/**\n * Retrieve One Datasource\n *\n * Returns a single datasource object for the specified ID\n */\nexport const get = <ThrowOnError extends boolean = false>(options: Options<GetData, ThrowOnError>) => (options.client ?? client).get<GetResponses, GetErrors, ThrowOnError>({\n security: [{\n in: 'query',\n name: 'token',\n type: 'apiKey'\n }],\n url: '/v2/cdn/datasources/{id}',\n ...options\n});\n"],"mappings":";;;;;;;;AAyBA,MAAa,UAAgD,aAAiD,SAAS,UAAU,QAAQ,IAAiD;CACtL,UAAU,CAAC;EACH,IAAI;EACJ,MAAM;EACN,MAAM;EACT,CAAC;CACN,KAAK;CACL,GAAG;CACN,CAAC;;;;;;AAOF,MAAa,OAA6C,aAA6C,QAAQ,UAAU,QAAQ,IAA2C;CACxK,UAAU,CAAC;EACH,IAAI;EACJ,MAAM;EACN,MAAM;EACT,CAAC;CACN,KAAK;CACL,GAAG;CACN,CAAC"}
1
+ {"version":3,"file":"sdk.gen.mjs","names":[],"sources":["../../../src/generated/datasources/sdk.gen.ts"],"sourcesContent":["// This file is auto-generated by @hey-api/openapi-ts\n\nimport type { Client, Options as Options2, TDataShape } from '../shared/client';\nimport { client } from './client.gen';\nimport type { GetData, GetErrors, GetResponses, ListData, ListErrors, ListResponses } from './types.gen';\n\nexport type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean> = Options2<TData, ThrowOnError> & {\n /**\n * You can provide a client instance returned by `createClient()` instead of\n * individual options. This might be also useful if you want to implement a\n * custom client.\n */\n client?: Client;\n /**\n * You can pass arbitrary values through the `meta` object. This can be\n * used to access values that aren't defined as part of the SDK function.\n */\n meta?: Record<string, unknown>;\n};\n\n/**\n * Retrieve Multiple Datasources\n *\n * Returns an array of all datasources with pagination support.\n */\nexport const list = <ThrowOnError extends boolean = false>(options?: Options<ListData, ThrowOnError>) => (options?.client ?? client).get<ListResponses, ListErrors, ThrowOnError>({\n security: [{\n in: 'query',\n name: 'token',\n type: 'apiKey'\n }],\n url: '/v2/cdn/datasources',\n ...options\n});\n\n/**\n * Retrieve One Datasource\n *\n * Returns a single datasource object for the specified ID\n */\nexport const get = <ThrowOnError extends boolean = false>(options: Options<GetData, ThrowOnError>) => (options.client ?? client).get<GetResponses, GetErrors, ThrowOnError>({\n security: [{\n in: 'query',\n name: 'token',\n type: 'apiKey'\n }],\n url: '/v2/cdn/datasources/{id}',\n ...options\n});\n"],"mappings":";;;;;;;;AAyBA,MAAa,QAA8C,aAA+C,SAAS,UAAU,QAAQ,IAA6C;CAC9K,UAAU,CAAC;EACH,IAAI;EACJ,MAAM;EACN,MAAM;EACT,CAAC;CACN,KAAK;CACL,GAAG;CACN,CAAC;;;;;;AAOF,MAAa,OAA6C,aAA6C,QAAQ,UAAU,QAAQ,IAA2C;CACxK,UAAU,CAAC;EACH,IAAI;EACJ,MAAM;EACN,MAAM;EACT,CAAC;CACN,KAAK;CACL,GAAG;CACN,CAAC"}
@@ -42,7 +42,7 @@ type DatasourceCapi = {
42
42
  updated_at?: string;
43
43
  }>;
44
44
  };
45
- type GetAllData = {
45
+ type ListData = {
46
46
  body?: never;
47
47
  path?: never;
48
48
  query?: {
@@ -61,7 +61,7 @@ type GetAllData = {
61
61
  };
62
62
  url: '/v2/cdn/datasources';
63
63
  };
64
- type GetAllResponses = {
64
+ type ListResponses = {
65
65
  /**
66
66
  * Array of datasources
67
67
  */
@@ -105,5 +105,5 @@ type GetResponses = {
105
105
  };
106
106
  };
107
107
  //#endregion
108
- export { DatasourceCapi, GetAllData, GetAllResponses, GetData, GetResponses };
108
+ export { DatasourceCapi, GetData, GetResponses, ListData, ListResponses };
109
109
  //# sourceMappingURL=types.gen.d.cts.map
@@ -42,7 +42,7 @@ type DatasourceCapi = {
42
42
  updated_at?: string;
43
43
  }>;
44
44
  };
45
- type GetAllData = {
45
+ type ListData = {
46
46
  body?: never;
47
47
  path?: never;
48
48
  query?: {
@@ -61,7 +61,7 @@ type GetAllData = {
61
61
  };
62
62
  url: '/v2/cdn/datasources';
63
63
  };
64
- type GetAllResponses = {
64
+ type ListResponses = {
65
65
  /**
66
66
  * Array of datasources
67
67
  */
@@ -105,5 +105,5 @@ type GetResponses = {
105
105
  };
106
106
  };
107
107
  //#endregion
108
- export { DatasourceCapi, GetAllData, GetAllResponses, GetData, GetResponses };
108
+ export { DatasourceCapi, GetData, GetResponses, ListData, ListResponses };
109
109
  //# sourceMappingURL=types.gen.d.mts.map
@@ -6,7 +6,7 @@ const require_client_gen = require('./client.gen.cjs');
6
6
  *
7
7
  * Returns a map of all links. The API response can be filtered using the query parameters.
8
8
  */
9
- const getAll = (options) => (options?.client ?? require_client_gen.client).get({
9
+ const list = (options) => (options?.client ?? require_client_gen.client).get({
10
10
  security: [{
11
11
  in: "query",
12
12
  name: "token",
@@ -17,5 +17,5 @@ const getAll = (options) => (options?.client ?? require_client_gen.client).get({
17
17
  });
18
18
 
19
19
  //#endregion
20
- exports.getAll = getAll;
20
+ exports.list = list;
21
21
  //# sourceMappingURL=sdk.gen.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"sdk.gen.cjs","names":["client"],"sources":["../../../src/generated/links/sdk.gen.ts"],"sourcesContent":["// This file is auto-generated by @hey-api/openapi-ts\n\nimport type { Client, Options as Options2, TDataShape } from '../shared/client';\nimport { client } from './client.gen';\nimport type { GetAllData, GetAllErrors, GetAllResponses } from './types.gen';\n\nexport type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean> = Options2<TData, ThrowOnError> & {\n /**\n * You can provide a client instance returned by `createClient()` instead of\n * individual options. This might be also useful if you want to implement a\n * custom client.\n */\n client?: Client;\n /**\n * You can pass arbitrary values through the `meta` object. This can be\n * used to access values that aren't defined as part of the SDK function.\n */\n meta?: Record<string, unknown>;\n};\n\n/**\n * Retrieve Multiple Links\n *\n * Returns a map of all links. The API response can be filtered using the query parameters.\n */\nexport const getAll = <ThrowOnError extends boolean = false>(options?: Options<GetAllData, ThrowOnError>) => (options?.client ?? client).get<GetAllResponses, GetAllErrors, ThrowOnError>({\n security: [{\n in: 'query',\n name: 'token',\n type: 'apiKey'\n }],\n url: '/v2/cdn/links',\n ...options\n});\n"],"mappings":";;;;;;;;AAyBA,MAAa,UAAgD,aAAiD,SAAS,UAAUA,2BAAQ,IAAiD;CACtL,UAAU,CAAC;EACH,IAAI;EACJ,MAAM;EACN,MAAM;EACT,CAAC;CACN,KAAK;CACL,GAAG;CACN,CAAC"}
1
+ {"version":3,"file":"sdk.gen.cjs","names":["client"],"sources":["../../../src/generated/links/sdk.gen.ts"],"sourcesContent":["// This file is auto-generated by @hey-api/openapi-ts\n\nimport type { Client, Options as Options2, TDataShape } from '../shared/client';\nimport { client } from './client.gen';\nimport type { ListData, ListErrors, ListResponses } from './types.gen';\n\nexport type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean> = Options2<TData, ThrowOnError> & {\n /**\n * You can provide a client instance returned by `createClient()` instead of\n * individual options. This might be also useful if you want to implement a\n * custom client.\n */\n client?: Client;\n /**\n * You can pass arbitrary values through the `meta` object. This can be\n * used to access values that aren't defined as part of the SDK function.\n */\n meta?: Record<string, unknown>;\n};\n\n/**\n * Retrieve Multiple Links\n *\n * Returns a map of all links. The API response can be filtered using the query parameters.\n */\nexport const list = <ThrowOnError extends boolean = false>(options?: Options<ListData, ThrowOnError>) => (options?.client ?? client).get<ListResponses, ListErrors, ThrowOnError>({\n security: [{\n in: 'query',\n name: 'token',\n type: 'apiKey'\n }],\n url: '/v2/cdn/links',\n ...options\n});\n"],"mappings":";;;;;;;;AAyBA,MAAa,QAA8C,aAA+C,SAAS,UAAUA,2BAAQ,IAA6C;CAC9K,UAAU,CAAC;EACH,IAAI;EACJ,MAAM;EACN,MAAM;EACT,CAAC;CACN,KAAK;CACL,GAAG;CACN,CAAC"}
@@ -6,7 +6,7 @@ import { client } from "./client.gen.mjs";
6
6
  *
7
7
  * Returns a map of all links. The API response can be filtered using the query parameters.
8
8
  */
9
- const getAll = (options) => (options?.client ?? client).get({
9
+ const list = (options) => (options?.client ?? client).get({
10
10
  security: [{
11
11
  in: "query",
12
12
  name: "token",
@@ -17,5 +17,5 @@ const getAll = (options) => (options?.client ?? client).get({
17
17
  });
18
18
 
19
19
  //#endregion
20
- export { getAll };
20
+ export { list };
21
21
  //# sourceMappingURL=sdk.gen.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"sdk.gen.mjs","names":[],"sources":["../../../src/generated/links/sdk.gen.ts"],"sourcesContent":["// This file is auto-generated by @hey-api/openapi-ts\n\nimport type { Client, Options as Options2, TDataShape } from '../shared/client';\nimport { client } from './client.gen';\nimport type { GetAllData, GetAllErrors, GetAllResponses } from './types.gen';\n\nexport type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean> = Options2<TData, ThrowOnError> & {\n /**\n * You can provide a client instance returned by `createClient()` instead of\n * individual options. This might be also useful if you want to implement a\n * custom client.\n */\n client?: Client;\n /**\n * You can pass arbitrary values through the `meta` object. This can be\n * used to access values that aren't defined as part of the SDK function.\n */\n meta?: Record<string, unknown>;\n};\n\n/**\n * Retrieve Multiple Links\n *\n * Returns a map of all links. The API response can be filtered using the query parameters.\n */\nexport const getAll = <ThrowOnError extends boolean = false>(options?: Options<GetAllData, ThrowOnError>) => (options?.client ?? client).get<GetAllResponses, GetAllErrors, ThrowOnError>({\n security: [{\n in: 'query',\n name: 'token',\n type: 'apiKey'\n }],\n url: '/v2/cdn/links',\n ...options\n});\n"],"mappings":";;;;;;;;AAyBA,MAAa,UAAgD,aAAiD,SAAS,UAAU,QAAQ,IAAiD;CACtL,UAAU,CAAC;EACH,IAAI;EACJ,MAAM;EACN,MAAM;EACT,CAAC;CACN,KAAK;CACL,GAAG;CACN,CAAC"}
1
+ {"version":3,"file":"sdk.gen.mjs","names":[],"sources":["../../../src/generated/links/sdk.gen.ts"],"sourcesContent":["// This file is auto-generated by @hey-api/openapi-ts\n\nimport type { Client, Options as Options2, TDataShape } from '../shared/client';\nimport { client } from './client.gen';\nimport type { ListData, ListErrors, ListResponses } from './types.gen';\n\nexport type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean> = Options2<TData, ThrowOnError> & {\n /**\n * You can provide a client instance returned by `createClient()` instead of\n * individual options. This might be also useful if you want to implement a\n * custom client.\n */\n client?: Client;\n /**\n * You can pass arbitrary values through the `meta` object. This can be\n * used to access values that aren't defined as part of the SDK function.\n */\n meta?: Record<string, unknown>;\n};\n\n/**\n * Retrieve Multiple Links\n *\n * Returns a map of all links. The API response can be filtered using the query parameters.\n */\nexport const list = <ThrowOnError extends boolean = false>(options?: Options<ListData, ThrowOnError>) => (options?.client ?? client).get<ListResponses, ListErrors, ThrowOnError>({\n security: [{\n in: 'query',\n name: 'token',\n type: 'apiKey'\n }],\n url: '/v2/cdn/links',\n ...options\n});\n"],"mappings":";;;;;;;;AAyBA,MAAa,QAA8C,aAA+C,SAAS,UAAU,QAAQ,IAA6C;CAC9K,UAAU,CAAC;EACH,IAAI;EACJ,MAAM;EACN,MAAM;EACT,CAAC;CACN,KAAK;CACL,GAAG;CACN,CAAC"}
@@ -81,7 +81,7 @@ type LinkCapi = {
81
81
  published?: boolean;
82
82
  }>;
83
83
  };
84
- type GetAllData = {
84
+ type ListData = {
85
85
  body?: never;
86
86
  path?: never;
87
87
  query?: {
@@ -120,7 +120,7 @@ type GetAllData = {
120
120
  };
121
121
  url: '/v2/cdn/links';
122
122
  };
123
- type GetAllResponses = {
123
+ type ListResponses = {
124
124
  /**
125
125
  * Map of links
126
126
  */
@@ -138,5 +138,5 @@ type GetAllResponses = {
138
138
  };
139
139
  };
140
140
  //#endregion
141
- export { GetAllData, GetAllResponses, LinkCapi };
141
+ export { LinkCapi, ListData, ListResponses };
142
142
  //# sourceMappingURL=types.gen.d.cts.map
@@ -81,7 +81,7 @@ type LinkCapi = {
81
81
  published?: boolean;
82
82
  }>;
83
83
  };
84
- type GetAllData = {
84
+ type ListData = {
85
85
  body?: never;
86
86
  path?: never;
87
87
  query?: {
@@ -120,7 +120,7 @@ type GetAllData = {
120
120
  };
121
121
  url: '/v2/cdn/links';
122
122
  };
123
- type GetAllResponses = {
123
+ type ListResponses = {
124
124
  /**
125
125
  * Map of links
126
126
  */
@@ -138,5 +138,5 @@ type GetAllResponses = {
138
138
  };
139
139
  };
140
140
  //#endregion
141
- export { GetAllData, GetAllResponses, LinkCapi };
141
+ export { LinkCapi, ListData, ListResponses };
142
142
  //# sourceMappingURL=types.gen.d.mts.map
@@ -6,7 +6,7 @@ const require_client_gen = require('./client.gen.cjs');
6
6
  *
7
7
  * Returns an array of all stories. The API response can be filtered using the query parameters, including specific filter queries.
8
8
  */
9
- const getAll = (options) => (options?.client ?? require_client_gen.client).get({
9
+ const list = (options) => (options?.client ?? require_client_gen.client).get({
10
10
  security: [{
11
11
  in: "query",
12
12
  name: "token",
@@ -32,5 +32,5 @@ const get = (options) => (options.client ?? require_client_gen.client).get({
32
32
 
33
33
  //#endregion
34
34
  exports.get = get;
35
- exports.getAll = getAll;
35
+ exports.list = list;
36
36
  //# sourceMappingURL=sdk.gen.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"sdk.gen.cjs","names":["client"],"sources":["../../../src/generated/stories/sdk.gen.ts"],"sourcesContent":["// This file is auto-generated by @hey-api/openapi-ts\n\nimport type { Client, Options as Options2, TDataShape } from '../shared/client';\nimport { client } from './client.gen';\nimport type { GetAllData, GetAllErrors, GetAllResponses, GetData, GetErrors, GetResponses } from './types.gen';\n\nexport type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean> = Options2<TData, ThrowOnError> & {\n /**\n * You can provide a client instance returned by `createClient()` instead of\n * individual options. This might be also useful if you want to implement a\n * custom client.\n */\n client?: Client;\n /**\n * You can pass arbitrary values through the `meta` object. This can be\n * used to access values that aren't defined as part of the SDK function.\n */\n meta?: Record<string, unknown>;\n};\n\n/**\n * Retrieve Multiple Stories\n *\n * Returns an array of all stories. The API response can be filtered using the query parameters, including specific filter queries.\n */\nexport const getAll = <ThrowOnError extends boolean = false>(options?: Options<GetAllData, ThrowOnError>) => (options?.client ?? client).get<GetAllResponses, GetAllErrors, ThrowOnError>({\n security: [{\n in: 'query',\n name: 'token',\n type: 'apiKey'\n }],\n url: '/v2/cdn/stories',\n ...options\n});\n\n/**\n * Retrieve One Story\n *\n * Returns a single story object for the specified full_slug, id or uuid\n */\nexport const get = <ThrowOnError extends boolean = false>(options: Options<GetData, ThrowOnError>) => (options.client ?? client).get<GetResponses, GetErrors, ThrowOnError>({\n security: [{\n in: 'query',\n name: 'token',\n type: 'apiKey'\n }],\n url: '/v2/cdn/stories/{identifier}',\n ...options\n});\n"],"mappings":";;;;;;;;AAyBA,MAAa,UAAgD,aAAiD,SAAS,UAAUA,2BAAQ,IAAiD;CACtL,UAAU,CAAC;EACH,IAAI;EACJ,MAAM;EACN,MAAM;EACT,CAAC;CACN,KAAK;CACL,GAAG;CACN,CAAC;;;;;;AAOF,MAAa,OAA6C,aAA6C,QAAQ,UAAUA,2BAAQ,IAA2C;CACxK,UAAU,CAAC;EACH,IAAI;EACJ,MAAM;EACN,MAAM;EACT,CAAC;CACN,KAAK;CACL,GAAG;CACN,CAAC"}
1
+ {"version":3,"file":"sdk.gen.cjs","names":["client"],"sources":["../../../src/generated/stories/sdk.gen.ts"],"sourcesContent":["// This file is auto-generated by @hey-api/openapi-ts\n\nimport type { Client, Options as Options2, TDataShape } from '../shared/client';\nimport { client } from './client.gen';\nimport type { GetData, GetErrors, GetResponses, ListData, ListErrors, ListResponses } from './types.gen';\n\nexport type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean> = Options2<TData, ThrowOnError> & {\n /**\n * You can provide a client instance returned by `createClient()` instead of\n * individual options. This might be also useful if you want to implement a\n * custom client.\n */\n client?: Client;\n /**\n * You can pass arbitrary values through the `meta` object. This can be\n * used to access values that aren't defined as part of the SDK function.\n */\n meta?: Record<string, unknown>;\n};\n\n/**\n * Retrieve Multiple Stories\n *\n * Returns an array of all stories. The API response can be filtered using the query parameters, including specific filter queries.\n */\nexport const list = <ThrowOnError extends boolean = false>(options?: Options<ListData, ThrowOnError>) => (options?.client ?? client).get<ListResponses, ListErrors, ThrowOnError>({\n security: [{\n in: 'query',\n name: 'token',\n type: 'apiKey'\n }],\n url: '/v2/cdn/stories',\n ...options\n});\n\n/**\n * Retrieve One Story\n *\n * Returns a single story object for the specified full_slug, id or uuid\n */\nexport const get = <ThrowOnError extends boolean = false>(options: Options<GetData, ThrowOnError>) => (options.client ?? client).get<GetResponses, GetErrors, ThrowOnError>({\n security: [{\n in: 'query',\n name: 'token',\n type: 'apiKey'\n }],\n url: '/v2/cdn/stories/{identifier}',\n ...options\n});\n"],"mappings":";;;;;;;;AAyBA,MAAa,QAA8C,aAA+C,SAAS,UAAUA,2BAAQ,IAA6C;CAC9K,UAAU,CAAC;EACH,IAAI;EACJ,MAAM;EACN,MAAM;EACT,CAAC;CACN,KAAK;CACL,GAAG;CACN,CAAC;;;;;;AAOF,MAAa,OAA6C,aAA6C,QAAQ,UAAUA,2BAAQ,IAA2C;CACxK,UAAU,CAAC;EACH,IAAI;EACJ,MAAM;EACN,MAAM;EACT,CAAC;CACN,KAAK;CACL,GAAG;CACN,CAAC"}
@@ -6,7 +6,7 @@ import { client } from "./client.gen.mjs";
6
6
  *
7
7
  * Returns an array of all stories. The API response can be filtered using the query parameters, including specific filter queries.
8
8
  */
9
- const getAll = (options) => (options?.client ?? client).get({
9
+ const list = (options) => (options?.client ?? client).get({
10
10
  security: [{
11
11
  in: "query",
12
12
  name: "token",
@@ -31,5 +31,5 @@ const get = (options) => (options.client ?? client).get({
31
31
  });
32
32
 
33
33
  //#endregion
34
- export { get, getAll };
34
+ export { get, list };
35
35
  //# sourceMappingURL=sdk.gen.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"sdk.gen.mjs","names":[],"sources":["../../../src/generated/stories/sdk.gen.ts"],"sourcesContent":["// This file is auto-generated by @hey-api/openapi-ts\n\nimport type { Client, Options as Options2, TDataShape } from '../shared/client';\nimport { client } from './client.gen';\nimport type { GetAllData, GetAllErrors, GetAllResponses, GetData, GetErrors, GetResponses } from './types.gen';\n\nexport type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean> = Options2<TData, ThrowOnError> & {\n /**\n * You can provide a client instance returned by `createClient()` instead of\n * individual options. This might be also useful if you want to implement a\n * custom client.\n */\n client?: Client;\n /**\n * You can pass arbitrary values through the `meta` object. This can be\n * used to access values that aren't defined as part of the SDK function.\n */\n meta?: Record<string, unknown>;\n};\n\n/**\n * Retrieve Multiple Stories\n *\n * Returns an array of all stories. The API response can be filtered using the query parameters, including specific filter queries.\n */\nexport const getAll = <ThrowOnError extends boolean = false>(options?: Options<GetAllData, ThrowOnError>) => (options?.client ?? client).get<GetAllResponses, GetAllErrors, ThrowOnError>({\n security: [{\n in: 'query',\n name: 'token',\n type: 'apiKey'\n }],\n url: '/v2/cdn/stories',\n ...options\n});\n\n/**\n * Retrieve One Story\n *\n * Returns a single story object for the specified full_slug, id or uuid\n */\nexport const get = <ThrowOnError extends boolean = false>(options: Options<GetData, ThrowOnError>) => (options.client ?? client).get<GetResponses, GetErrors, ThrowOnError>({\n security: [{\n in: 'query',\n name: 'token',\n type: 'apiKey'\n }],\n url: '/v2/cdn/stories/{identifier}',\n ...options\n});\n"],"mappings":";;;;;;;;AAyBA,MAAa,UAAgD,aAAiD,SAAS,UAAU,QAAQ,IAAiD;CACtL,UAAU,CAAC;EACH,IAAI;EACJ,MAAM;EACN,MAAM;EACT,CAAC;CACN,KAAK;CACL,GAAG;CACN,CAAC;;;;;;AAOF,MAAa,OAA6C,aAA6C,QAAQ,UAAU,QAAQ,IAA2C;CACxK,UAAU,CAAC;EACH,IAAI;EACJ,MAAM;EACN,MAAM;EACT,CAAC;CACN,KAAK;CACL,GAAG;CACN,CAAC"}
1
+ {"version":3,"file":"sdk.gen.mjs","names":[],"sources":["../../../src/generated/stories/sdk.gen.ts"],"sourcesContent":["// This file is auto-generated by @hey-api/openapi-ts\n\nimport type { Client, Options as Options2, TDataShape } from '../shared/client';\nimport { client } from './client.gen';\nimport type { GetData, GetErrors, GetResponses, ListData, ListErrors, ListResponses } from './types.gen';\n\nexport type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean> = Options2<TData, ThrowOnError> & {\n /**\n * You can provide a client instance returned by `createClient()` instead of\n * individual options. This might be also useful if you want to implement a\n * custom client.\n */\n client?: Client;\n /**\n * You can pass arbitrary values through the `meta` object. This can be\n * used to access values that aren't defined as part of the SDK function.\n */\n meta?: Record<string, unknown>;\n};\n\n/**\n * Retrieve Multiple Stories\n *\n * Returns an array of all stories. The API response can be filtered using the query parameters, including specific filter queries.\n */\nexport const list = <ThrowOnError extends boolean = false>(options?: Options<ListData, ThrowOnError>) => (options?.client ?? client).get<ListResponses, ListErrors, ThrowOnError>({\n security: [{\n in: 'query',\n name: 'token',\n type: 'apiKey'\n }],\n url: '/v2/cdn/stories',\n ...options\n});\n\n/**\n * Retrieve One Story\n *\n * Returns a single story object for the specified full_slug, id or uuid\n */\nexport const get = <ThrowOnError extends boolean = false>(options: Options<GetData, ThrowOnError>) => (options.client ?? client).get<GetResponses, GetErrors, ThrowOnError>({\n security: [{\n in: 'query',\n name: 'token',\n type: 'apiKey'\n }],\n url: '/v2/cdn/stories/{identifier}',\n ...options\n});\n"],"mappings":";;;;;;;;AAyBA,MAAa,QAA8C,aAA+C,SAAS,UAAU,QAAQ,IAA6C;CAC9K,UAAU,CAAC;EACH,IAAI;EACJ,MAAM;EACN,MAAM;EACT,CAAC;CACN,KAAK;CACL,GAAG;CACN,CAAC;;;;;;AAOF,MAAa,OAA6C,aAA6C,QAAQ,UAAU,QAAQ,IAA2C;CACxK,UAAU,CAAC;EACH,IAAI;EACJ,MAAM;EACN,MAAM;EACT,CAAC;CACN,KAAK;CACL,GAAG;CACN,CAAC"}
@@ -28,9 +28,9 @@ type StoryAlternate = {
28
28
  */
29
29
  is_folder: boolean;
30
30
  /**
31
- * ID of the parent folder
31
+ * ID of the parent folder. 0 for root-level stories.
32
32
  */
33
- parent_id: number | null;
33
+ parent_id: number;
34
34
  };
35
35
  /**
36
36
  * Asset field type - single asset (image, video, audio, or document)
@@ -252,9 +252,9 @@ type StoryBase = {
252
252
  */
253
253
  name: string;
254
254
  /**
255
- * ID of the parent folder. Null for root-level stories.
255
+ * ID of the parent folder. 0 for root-level stories.
256
256
  */
257
- parent_id: number | null;
257
+ parent_id: number;
258
258
  /**
259
259
  * Group ID (UUID string), shared between stories defined as alternates
260
260
  */
@@ -344,7 +344,7 @@ type StoryCapi = StoryBase & {
344
344
  */
345
345
  lang: string;
346
346
  };
347
- type GetAllData = {
347
+ type ListData = {
348
348
  body?: never;
349
349
  path?: never;
350
350
  query?: {
@@ -540,5 +540,5 @@ type GetData = {
540
540
  url: '/v2/cdn/stories/{identifier}';
541
541
  };
542
542
  //#endregion
543
- export { AssetField, GetAllData, GetData, MultilinkField, PluginField, RichtextField, StoryCapi, StoryContent, TableField };
543
+ export { AssetField, GetData, ListData, MultilinkField, PluginField, RichtextField, StoryCapi, StoryContent, TableField };
544
544
  //# sourceMappingURL=types.gen.d.cts.map
@@ -28,9 +28,9 @@ type StoryAlternate = {
28
28
  */
29
29
  is_folder: boolean;
30
30
  /**
31
- * ID of the parent folder
31
+ * ID of the parent folder. 0 for root-level stories.
32
32
  */
33
- parent_id: number | null;
33
+ parent_id: number;
34
34
  };
35
35
  /**
36
36
  * Asset field type - single asset (image, video, audio, or document)
@@ -252,9 +252,9 @@ type StoryBase = {
252
252
  */
253
253
  name: string;
254
254
  /**
255
- * ID of the parent folder. Null for root-level stories.
255
+ * ID of the parent folder. 0 for root-level stories.
256
256
  */
257
- parent_id: number | null;
257
+ parent_id: number;
258
258
  /**
259
259
  * Group ID (UUID string), shared between stories defined as alternates
260
260
  */
@@ -344,7 +344,7 @@ type StoryCapi = StoryBase & {
344
344
  */
345
345
  lang: string;
346
346
  };
347
- type GetAllData = {
347
+ type ListData = {
348
348
  body?: never;
349
349
  path?: never;
350
350
  query?: {
@@ -540,5 +540,5 @@ type GetData = {
540
540
  url: '/v2/cdn/stories/{identifier}';
541
541
  };
542
542
  //#endregion
543
- export { AssetField, GetAllData, GetData, MultilinkField, PluginField, RichtextField, StoryCapi, StoryContent, TableField };
543
+ export { AssetField, GetData, ListData, MultilinkField, PluginField, RichtextField, StoryCapi, StoryContent, TableField };
544
544
  //# sourceMappingURL=types.gen.d.mts.map
@@ -6,7 +6,7 @@ const require_client_gen = require('./client.gen.cjs');
6
6
  *
7
7
  * Returns an array of all available tags. Tags can be filtered by prefix and version.
8
8
  */
9
- const getAll = (options) => (options?.client ?? require_client_gen.client).get({
9
+ const list = (options) => (options?.client ?? require_client_gen.client).get({
10
10
  security: [{
11
11
  in: "query",
12
12
  name: "token",
@@ -17,5 +17,5 @@ const getAll = (options) => (options?.client ?? require_client_gen.client).get({
17
17
  });
18
18
 
19
19
  //#endregion
20
- exports.getAll = getAll;
20
+ exports.list = list;
21
21
  //# sourceMappingURL=sdk.gen.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"sdk.gen.cjs","names":["client"],"sources":["../../../src/generated/tags/sdk.gen.ts"],"sourcesContent":["// This file is auto-generated by @hey-api/openapi-ts\n\nimport type { Client, Options as Options2, TDataShape } from '../shared/client';\nimport { client } from './client.gen';\nimport type { GetAllData, GetAllErrors, GetAllResponses } from './types.gen';\n\nexport type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean> = Options2<TData, ThrowOnError> & {\n /**\n * You can provide a client instance returned by `createClient()` instead of\n * individual options. This might be also useful if you want to implement a\n * custom client.\n */\n client?: Client;\n /**\n * You can pass arbitrary values through the `meta` object. This can be\n * used to access values that aren't defined as part of the SDK function.\n */\n meta?: Record<string, unknown>;\n};\n\n/**\n * Retrieve All Tags\n *\n * Returns an array of all available tags. Tags can be filtered by prefix and version.\n */\nexport const getAll = <ThrowOnError extends boolean = false>(options?: Options<GetAllData, ThrowOnError>) => (options?.client ?? client).get<GetAllResponses, GetAllErrors, ThrowOnError>({\n security: [{\n in: 'query',\n name: 'token',\n type: 'apiKey'\n }],\n url: '/v2/cdn/tags',\n ...options\n});\n"],"mappings":";;;;;;;;AAyBA,MAAa,UAAgD,aAAiD,SAAS,UAAUA,2BAAQ,IAAiD;CACtL,UAAU,CAAC;EACH,IAAI;EACJ,MAAM;EACN,MAAM;EACT,CAAC;CACN,KAAK;CACL,GAAG;CACN,CAAC"}
1
+ {"version":3,"file":"sdk.gen.cjs","names":["client"],"sources":["../../../src/generated/tags/sdk.gen.ts"],"sourcesContent":["// This file is auto-generated by @hey-api/openapi-ts\n\nimport type { Client, Options as Options2, TDataShape } from '../shared/client';\nimport { client } from './client.gen';\nimport type { ListData, ListErrors, ListResponses } from './types.gen';\n\nexport type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean> = Options2<TData, ThrowOnError> & {\n /**\n * You can provide a client instance returned by `createClient()` instead of\n * individual options. This might be also useful if you want to implement a\n * custom client.\n */\n client?: Client;\n /**\n * You can pass arbitrary values through the `meta` object. This can be\n * used to access values that aren't defined as part of the SDK function.\n */\n meta?: Record<string, unknown>;\n};\n\n/**\n * Retrieve All Tags\n *\n * Returns an array of all available tags. Tags can be filtered by prefix and version.\n */\nexport const list = <ThrowOnError extends boolean = false>(options?: Options<ListData, ThrowOnError>) => (options?.client ?? client).get<ListResponses, ListErrors, ThrowOnError>({\n security: [{\n in: 'query',\n name: 'token',\n type: 'apiKey'\n }],\n url: '/v2/cdn/tags',\n ...options\n});\n"],"mappings":";;;;;;;;AAyBA,MAAa,QAA8C,aAA+C,SAAS,UAAUA,2BAAQ,IAA6C;CAC9K,UAAU,CAAC;EACH,IAAI;EACJ,MAAM;EACN,MAAM;EACT,CAAC;CACN,KAAK;CACL,GAAG;CACN,CAAC"}
@@ -6,7 +6,7 @@ import { client } from "./client.gen.mjs";
6
6
  *
7
7
  * Returns an array of all available tags. Tags can be filtered by prefix and version.
8
8
  */
9
- const getAll = (options) => (options?.client ?? client).get({
9
+ const list = (options) => (options?.client ?? client).get({
10
10
  security: [{
11
11
  in: "query",
12
12
  name: "token",
@@ -17,5 +17,5 @@ const getAll = (options) => (options?.client ?? client).get({
17
17
  });
18
18
 
19
19
  //#endregion
20
- export { getAll };
20
+ export { list };
21
21
  //# sourceMappingURL=sdk.gen.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"sdk.gen.mjs","names":[],"sources":["../../../src/generated/tags/sdk.gen.ts"],"sourcesContent":["// This file is auto-generated by @hey-api/openapi-ts\n\nimport type { Client, Options as Options2, TDataShape } from '../shared/client';\nimport { client } from './client.gen';\nimport type { GetAllData, GetAllErrors, GetAllResponses } from './types.gen';\n\nexport type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean> = Options2<TData, ThrowOnError> & {\n /**\n * You can provide a client instance returned by `createClient()` instead of\n * individual options. This might be also useful if you want to implement a\n * custom client.\n */\n client?: Client;\n /**\n * You can pass arbitrary values through the `meta` object. This can be\n * used to access values that aren't defined as part of the SDK function.\n */\n meta?: Record<string, unknown>;\n};\n\n/**\n * Retrieve All Tags\n *\n * Returns an array of all available tags. Tags can be filtered by prefix and version.\n */\nexport const getAll = <ThrowOnError extends boolean = false>(options?: Options<GetAllData, ThrowOnError>) => (options?.client ?? client).get<GetAllResponses, GetAllErrors, ThrowOnError>({\n security: [{\n in: 'query',\n name: 'token',\n type: 'apiKey'\n }],\n url: '/v2/cdn/tags',\n ...options\n});\n"],"mappings":";;;;;;;;AAyBA,MAAa,UAAgD,aAAiD,SAAS,UAAU,QAAQ,IAAiD;CACtL,UAAU,CAAC;EACH,IAAI;EACJ,MAAM;EACN,MAAM;EACT,CAAC;CACN,KAAK;CACL,GAAG;CACN,CAAC"}
1
+ {"version":3,"file":"sdk.gen.mjs","names":[],"sources":["../../../src/generated/tags/sdk.gen.ts"],"sourcesContent":["// This file is auto-generated by @hey-api/openapi-ts\n\nimport type { Client, Options as Options2, TDataShape } from '../shared/client';\nimport { client } from './client.gen';\nimport type { ListData, ListErrors, ListResponses } from './types.gen';\n\nexport type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean> = Options2<TData, ThrowOnError> & {\n /**\n * You can provide a client instance returned by `createClient()` instead of\n * individual options. This might be also useful if you want to implement a\n * custom client.\n */\n client?: Client;\n /**\n * You can pass arbitrary values through the `meta` object. This can be\n * used to access values that aren't defined as part of the SDK function.\n */\n meta?: Record<string, unknown>;\n};\n\n/**\n * Retrieve All Tags\n *\n * Returns an array of all available tags. Tags can be filtered by prefix and version.\n */\nexport const list = <ThrowOnError extends boolean = false>(options?: Options<ListData, ThrowOnError>) => (options?.client ?? client).get<ListResponses, ListErrors, ThrowOnError>({\n security: [{\n in: 'query',\n name: 'token',\n type: 'apiKey'\n }],\n url: '/v2/cdn/tags',\n ...options\n});\n"],"mappings":";;;;;;;;AAyBA,MAAa,QAA8C,aAA+C,SAAS,UAAU,QAAQ,IAA6C;CAC9K,UAAU,CAAC;EACH,IAAI;EACJ,MAAM;EACN,MAAM;EACT,CAAC;CACN,KAAK;CACL,GAAG;CACN,CAAC"}
@@ -9,7 +9,7 @@ type TagCapi = {
9
9
  */
10
10
  taggings_count: number;
11
11
  };
12
- type GetAllData = {
12
+ type ListData = {
13
13
  body?: never;
14
14
  path?: never;
15
15
  query?: {
@@ -24,7 +24,7 @@ type GetAllData = {
24
24
  };
25
25
  url: '/v2/cdn/tags';
26
26
  };
27
- type GetAllResponses = {
27
+ type ListResponses = {
28
28
  /**
29
29
  * Array of tags
30
30
  */
@@ -40,5 +40,5 @@ type GetAllResponses = {
40
40
  };
41
41
  };
42
42
  //#endregion
43
- export { GetAllData, GetAllResponses, TagCapi };
43
+ export { ListData, ListResponses, TagCapi };
44
44
  //# sourceMappingURL=types.gen.d.cts.map
@@ -9,7 +9,7 @@ type TagCapi = {
9
9
  */
10
10
  taggings_count: number;
11
11
  };
12
- type GetAllData = {
12
+ type ListData = {
13
13
  body?: never;
14
14
  path?: never;
15
15
  query?: {
@@ -24,7 +24,7 @@ type GetAllData = {
24
24
  };
25
25
  url: '/v2/cdn/tags';
26
26
  };
27
- type GetAllResponses = {
27
+ type ListResponses = {
28
28
  /**
29
29
  * Array of tags
30
30
  */
@@ -40,5 +40,5 @@ type GetAllResponses = {
40
40
  };
41
41
  };
42
42
  //#endregion
43
- export { GetAllData, GetAllResponses, TagCapi };
43
+ export { ListData, ListResponses, TagCapi };
44
44
  //# sourceMappingURL=types.gen.d.mts.map