@usehercules/sdk 1.14.0 → 1.14.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 (136) hide show
  1. package/CHANGELOG.md +39 -0
  2. package/README.md +9 -0
  3. package/client.d.mts +13 -4
  4. package/client.d.mts.map +1 -1
  5. package/client.d.ts +13 -4
  6. package/client.d.ts.map +1 -1
  7. package/client.js +21 -5
  8. package/client.js.map +1 -1
  9. package/client.mjs +21 -5
  10. package/client.mjs.map +1 -1
  11. package/internal/parse.d.mts.map +1 -1
  12. package/internal/parse.d.ts.map +1 -1
  13. package/internal/parse.js +5 -0
  14. package/internal/parse.js.map +1 -1
  15. package/internal/parse.mjs +5 -0
  16. package/internal/parse.mjs.map +1 -1
  17. package/package.json +1 -1
  18. package/resources/content/{models/models.d.mts → collections/collections.d.mts} +88 -87
  19. package/resources/content/collections/collections.d.mts.map +1 -0
  20. package/resources/content/{models/models.d.ts → collections/collections.d.ts} +88 -87
  21. package/resources/content/collections/collections.d.ts.map +1 -0
  22. package/resources/content/collections/collections.js +58 -0
  23. package/resources/content/collections/collections.js.map +1 -0
  24. package/resources/content/collections/collections.mjs +53 -0
  25. package/resources/content/collections/collections.mjs.map +1 -0
  26. package/resources/content/{models → collections}/fields.d.mts +23 -22
  27. package/resources/content/collections/fields.d.mts.map +1 -0
  28. package/resources/content/{models → collections}/fields.d.ts +23 -22
  29. package/resources/content/collections/fields.d.ts.map +1 -0
  30. package/resources/content/collections/fields.js +41 -0
  31. package/resources/content/collections/fields.js.map +1 -0
  32. package/resources/content/collections/fields.mjs +37 -0
  33. package/resources/content/collections/fields.mjs.map +1 -0
  34. package/resources/content/collections/index.d.mts +3 -0
  35. package/resources/content/collections/index.d.mts.map +1 -0
  36. package/resources/content/collections/index.d.ts +3 -0
  37. package/resources/content/collections/index.d.ts.map +1 -0
  38. package/resources/content/{models → collections}/index.js +3 -3
  39. package/resources/content/collections/index.js.map +1 -0
  40. package/resources/content/{models → collections}/index.mjs +1 -1
  41. package/resources/content/collections/index.mjs.map +1 -0
  42. package/resources/content/collections.d.mts +2 -0
  43. package/resources/content/collections.d.mts.map +1 -0
  44. package/resources/content/collections.d.ts +2 -0
  45. package/resources/content/collections.d.ts.map +1 -0
  46. package/resources/content/{models.js → collections.js} +2 -2
  47. package/resources/content/collections.js.map +1 -0
  48. package/resources/content/{models.mjs → collections.mjs} +2 -2
  49. package/resources/content/collections.mjs.map +1 -0
  50. package/resources/content/content.d.mts +4 -4
  51. package/resources/content/content.d.mts.map +1 -1
  52. package/resources/content/content.d.ts +4 -4
  53. package/resources/content/content.d.ts.map +1 -1
  54. package/resources/content/content.js +4 -4
  55. package/resources/content/content.js.map +1 -1
  56. package/resources/content/content.mjs +4 -4
  57. package/resources/content/content.mjs.map +1 -1
  58. package/resources/content/entries.d.mts +18 -18
  59. package/resources/content/entries.d.mts.map +1 -1
  60. package/resources/content/entries.d.ts +18 -18
  61. package/resources/content/entries.d.ts.map +1 -1
  62. package/resources/content/entries.js +2 -2
  63. package/resources/content/entries.mjs +2 -2
  64. package/resources/content/index.d.mts +1 -1
  65. package/resources/content/index.d.mts.map +1 -1
  66. package/resources/content/index.d.ts +1 -1
  67. package/resources/content/index.d.ts.map +1 -1
  68. package/resources/content/index.js +3 -3
  69. package/resources/content/index.js.map +1 -1
  70. package/resources/content/index.mjs +1 -1
  71. package/resources/content/index.mjs.map +1 -1
  72. package/resources/domains.d.mts +54 -0
  73. package/resources/domains.d.mts.map +1 -0
  74. package/resources/domains.d.ts +54 -0
  75. package/resources/domains.d.ts.map +1 -0
  76. package/resources/domains.js +21 -0
  77. package/resources/domains.js.map +1 -0
  78. package/resources/domains.mjs +17 -0
  79. package/resources/domains.mjs.map +1 -0
  80. package/resources/files.d.mts +8 -6
  81. package/resources/files.d.mts.map +1 -1
  82. package/resources/files.d.ts +8 -6
  83. package/resources/files.d.ts.map +1 -1
  84. package/resources/files.js +3 -2
  85. package/resources/files.js.map +1 -1
  86. package/resources/files.mjs +3 -2
  87. package/resources/files.mjs.map +1 -1
  88. package/resources/index.d.mts +1 -0
  89. package/resources/index.d.mts.map +1 -1
  90. package/resources/index.d.ts +1 -0
  91. package/resources/index.d.ts.map +1 -1
  92. package/resources/index.js +3 -1
  93. package/resources/index.js.map +1 -1
  94. package/resources/index.mjs +1 -0
  95. package/resources/index.mjs.map +1 -1
  96. package/src/client.ts +34 -7
  97. package/src/internal/parse.ts +6 -0
  98. package/src/resources/content/{models/models.ts → collections/collections.ts} +112 -108
  99. package/src/resources/content/{models → collections}/fields.ts +39 -27
  100. package/src/resources/content/{models → collections}/index.ts +8 -8
  101. package/src/resources/content/{models.ts → collections.ts} +1 -1
  102. package/src/resources/content/content.ts +16 -16
  103. package/src/resources/content/entries.ts +20 -20
  104. package/src/resources/content/index.ts +9 -9
  105. package/src/resources/domains.ts +74 -0
  106. package/src/resources/files.ts +8 -6
  107. package/src/resources/index.ts +1 -0
  108. package/src/version.ts +1 -1
  109. package/version.d.mts +1 -1
  110. package/version.d.ts +1 -1
  111. package/version.js +1 -1
  112. package/version.mjs +1 -1
  113. package/resources/content/models/fields.d.mts.map +0 -1
  114. package/resources/content/models/fields.d.ts.map +0 -1
  115. package/resources/content/models/fields.js +0 -37
  116. package/resources/content/models/fields.js.map +0 -1
  117. package/resources/content/models/fields.mjs +0 -33
  118. package/resources/content/models/fields.mjs.map +0 -1
  119. package/resources/content/models/index.d.mts +0 -3
  120. package/resources/content/models/index.d.mts.map +0 -1
  121. package/resources/content/models/index.d.ts +0 -3
  122. package/resources/content/models/index.d.ts.map +0 -1
  123. package/resources/content/models/index.js.map +0 -1
  124. package/resources/content/models/index.mjs.map +0 -1
  125. package/resources/content/models/models.d.mts.map +0 -1
  126. package/resources/content/models/models.d.ts.map +0 -1
  127. package/resources/content/models/models.js +0 -54
  128. package/resources/content/models/models.js.map +0 -1
  129. package/resources/content/models/models.mjs +0 -49
  130. package/resources/content/models/models.mjs.map +0 -1
  131. package/resources/content/models.d.mts +0 -2
  132. package/resources/content/models.d.mts.map +0 -1
  133. package/resources/content/models.d.ts +0 -2
  134. package/resources/content/models.d.ts.map +0 -1
  135. package/resources/content/models.js.map +0 -1
  136. package/resources/content/models.mjs.map +0 -1
@@ -1,7 +1,7 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
3
  import { APIResource } from '../../../core/resource';
4
- import * as ModelsAPI from './models';
4
+ import * as CollectionsAPI from './collections';
5
5
  import { APIPromise } from '../../../core/api-promise';
6
6
  import { buildHeaders } from '../../../internal/headers';
7
7
  import { RequestOptions } from '../../../internal/request-options';
@@ -9,29 +9,41 @@ import { path } from '../../../internal/utils/path';
9
9
 
10
10
  export class Fields extends APIResource {
11
11
  /**
12
- * Adds a new field to a content model. Fields define the structure of entries. The
13
- * model must not be locked. Adding a field increments the model version.
12
+ * Adds a new field to a content collection. Fields define the structure of
13
+ * entries. The collection must not be locked. Adding a field increments the
14
+ * collection version.
14
15
  */
15
- create(modelID: string, body: FieldCreateParams, options?: RequestOptions): APIPromise<ModelsAPI.Field> {
16
- return this._client.post(path`/v1/content/models/${modelID}/fields`, { body, ...options });
16
+ create(
17
+ collectionID: string,
18
+ body: FieldCreateParams,
19
+ options?: RequestOptions,
20
+ ): APIPromise<CollectionsAPI.Field> {
21
+ return this._client.post(path`/v1/content/collections/${collectionID}/fields`, { body, ...options });
17
22
  }
18
23
 
19
24
  /**
20
- * Updates an existing field in a content model. The field type cannot be changed
21
- * after creation. The model must not be locked.
25
+ * Updates an existing field in a content collection. The field type cannot be
26
+ * changed after creation. The collection must not be locked.
22
27
  */
23
- update(fieldID: string, params: FieldUpdateParams, options?: RequestOptions): APIPromise<ModelsAPI.Field> {
24
- const { model_id, ...body } = params;
25
- return this._client.patch(path`/v1/content/models/${model_id}/fields/${fieldID}`, { body, ...options });
28
+ update(
29
+ fieldID: string,
30
+ params: FieldUpdateParams,
31
+ options?: RequestOptions,
32
+ ): APIPromise<CollectionsAPI.Field> {
33
+ const { collection_id, ...body } = params;
34
+ return this._client.patch(path`/v1/content/collections/${collection_id}/fields/${fieldID}`, {
35
+ body,
36
+ ...options,
37
+ });
26
38
  }
27
39
 
28
40
  /**
29
- * Removes a field from a content model. Existing entry data for this field is
30
- * preserved but will no longer be validated. The model must not be locked.
41
+ * Removes a field from a content collection. Existing entry data for this field is
42
+ * preserved but will no longer be validated. The collection must not be locked.
31
43
  */
32
44
  delete(fieldID: string, params: FieldDeleteParams, options?: RequestOptions): APIPromise<void> {
33
- const { model_id } = params;
34
- return this._client.delete(path`/v1/content/models/${model_id}/fields/${fieldID}`, {
45
+ const { collection_id } = params;
46
+ return this._client.delete(path`/v1/content/collections/${collection_id}/fields/${fieldID}`, {
35
47
  ...options,
36
48
  headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
37
49
  });
@@ -77,7 +89,7 @@ export interface FieldCreateParams {
77
89
  description?: string;
78
90
 
79
91
  /**
80
- * Display order within the model
92
+ * Display order within the collection
81
93
  */
82
94
  display_order?: number;
83
95
 
@@ -98,14 +110,14 @@ export namespace FieldCreateParams {
98
110
  */
99
111
  export interface Validation {
100
112
  /**
101
- * Allowed MIME types for asset fields (e.g., 'image/\*', 'application/pdf')
113
+ * Allowed collection apiIds for reference fields
102
114
  */
103
- allowed_mime_types?: Array<string>;
115
+ allowed_collections?: Array<string>;
104
116
 
105
117
  /**
106
- * Allowed model apiIds for reference fields
118
+ * Allowed MIME types for asset fields (e.g., 'image/\*', 'application/pdf')
107
119
  */
108
- allowed_models?: Array<string>;
120
+ allowed_mime_types?: Array<string>;
109
121
 
110
122
  /**
111
123
  * Allowed values for enum fields
@@ -162,9 +174,9 @@ export namespace FieldCreateParams {
162
174
 
163
175
  export interface FieldUpdateParams {
164
176
  /**
165
- * Path param: The unique identifier of the content model
177
+ * Path param: The unique identifier of the content collection
166
178
  */
167
- model_id: string;
179
+ collection_id: string;
168
180
 
169
181
  /**
170
182
  * Body param: Description of the field
@@ -198,14 +210,14 @@ export namespace FieldUpdateParams {
198
210
  */
199
211
  export interface Validation {
200
212
  /**
201
- * Allowed MIME types for asset fields (e.g., 'image/\*', 'application/pdf')
213
+ * Allowed collection apiIds for reference fields
202
214
  */
203
- allowed_mime_types?: Array<string>;
215
+ allowed_collections?: Array<string>;
204
216
 
205
217
  /**
206
- * Allowed model apiIds for reference fields
218
+ * Allowed MIME types for asset fields (e.g., 'image/\*', 'application/pdf')
207
219
  */
208
- allowed_models?: Array<string>;
220
+ allowed_mime_types?: Array<string>;
209
221
 
210
222
  /**
211
223
  * Allowed values for enum fields
@@ -262,9 +274,9 @@ export namespace FieldUpdateParams {
262
274
 
263
275
  export interface FieldDeleteParams {
264
276
  /**
265
- * The unique identifier of the content model
277
+ * The unique identifier of the content collection
266
278
  */
267
- model_id: string;
279
+ collection_id: string;
268
280
  }
269
281
 
270
282
  export declare namespace Fields {
@@ -1,12 +1,12 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
- export { Fields, type FieldCreateParams, type FieldUpdateParams, type FieldDeleteParams } from './fields';
4
3
  export {
5
- Models,
4
+ Collections,
5
+ type Collection,
6
6
  type Field,
7
- type Model,
8
- type ModelCreateParams,
9
- type ModelUpdateParams,
10
- type ModelListParams,
11
- type ModelsCursorIDPage,
12
- } from './models';
7
+ type CollectionCreateParams,
8
+ type CollectionUpdateParams,
9
+ type CollectionListParams,
10
+ type CollectionsCursorIDPage,
11
+ } from './collections';
12
+ export { Fields, type FieldCreateParams, type FieldUpdateParams, type FieldDeleteParams } from './fields';
@@ -1,3 +1,3 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
- export * from './models/index';
3
+ export * from './collections/index';
@@ -29,16 +29,16 @@ import {
29
29
  Locales,
30
30
  LocalesCursorIDPage,
31
31
  } from './locales';
32
- import * as ModelsAPI from './models/models';
32
+ import * as CollectionsAPI from './collections/collections';
33
33
  import {
34
+ Collection,
35
+ CollectionCreateParams,
36
+ CollectionListParams,
37
+ CollectionUpdateParams,
38
+ Collections,
39
+ CollectionsCursorIDPage,
34
40
  Field,
35
- Model,
36
- ModelCreateParams,
37
- ModelListParams,
38
- ModelUpdateParams,
39
- Models,
40
- ModelsCursorIDPage,
41
- } from './models/models';
41
+ } from './collections/collections';
42
42
  import * as ReleasesAPI from './releases/releases';
43
43
  import {
44
44
  Release,
@@ -55,14 +55,14 @@ import {
55
55
  * Content APIs are currently in beta.
56
56
  */
57
57
  export class Content extends APIResource {
58
- models: ModelsAPI.Models = new ModelsAPI.Models(this._client);
58
+ collections: CollectionsAPI.Collections = new CollectionsAPI.Collections(this._client);
59
59
  entries: EntriesAPI.Entries = new EntriesAPI.Entries(this._client);
60
60
  assets: AssetsAPI.Assets = new AssetsAPI.Assets(this._client);
61
61
  locales: LocalesAPI.Locales = new LocalesAPI.Locales(this._client);
62
62
  releases: ReleasesAPI.Releases = new ReleasesAPI.Releases(this._client);
63
63
  }
64
64
 
65
- Content.Models = Models;
65
+ Content.Collections = Collections;
66
66
  Content.Entries = Entries;
67
67
  Content.Assets = Assets;
68
68
  Content.Locales = Locales;
@@ -70,13 +70,13 @@ Content.Releases = Releases;
70
70
 
71
71
  export declare namespace Content {
72
72
  export {
73
- Models as Models,
73
+ Collections as Collections,
74
+ type Collection as Collection,
74
75
  type Field as Field,
75
- type Model as Model,
76
- type ModelsCursorIDPage as ModelsCursorIDPage,
77
- type ModelCreateParams as ModelCreateParams,
78
- type ModelUpdateParams as ModelUpdateParams,
79
- type ModelListParams as ModelListParams,
76
+ type CollectionsCursorIDPage as CollectionsCursorIDPage,
77
+ type CollectionCreateParams as CollectionCreateParams,
78
+ type CollectionUpdateParams as CollectionUpdateParams,
79
+ type CollectionListParams as CollectionListParams,
80
80
  };
81
81
 
82
82
  export {
@@ -8,7 +8,7 @@ import { path } from '../../internal/utils/path';
8
8
 
9
9
  export class Entries extends APIResource {
10
10
  /**
11
- * Creates a new content entry for a given model. Entries start as drafts by
11
+ * Creates a new content entry for a given collection. Entries start as drafts by
12
12
  * default. Use the publish endpoint to make entries publicly accessible.
13
13
  */
14
14
  create(body: EntryCreateParams, options?: RequestOptions): APIPromise<Entry> {
@@ -29,7 +29,7 @@ export class Entries extends APIResource {
29
29
  }
30
30
 
31
31
  /**
32
- * Retrieves a paginated list of content entries. Supports filtering by model,
32
+ * Retrieves a paginated list of content entries. Supports filtering by collection,
33
33
  * status, locale, and custom field queries. Use the 'where' parameter for
34
34
  * field-based filtering with operators like $eq, $contains, $gt, etc.
35
35
  */
@@ -81,8 +81,8 @@ export class Entries extends APIResource {
81
81
  export type EntriesCursorIDPage = CursorIDPage<Entry>;
82
82
 
83
83
  /**
84
- * A content entry containing field values based on its model schema. Entries can
85
- * be drafts, published, or archived.
84
+ * A content entry containing field values based on its collection schema. Entries
85
+ * can be drafts, published, or archived.
86
86
  */
87
87
  export interface Entry {
88
88
  /**
@@ -90,6 +90,11 @@ export interface Entry {
90
90
  */
91
91
  id: string;
92
92
 
93
+ /**
94
+ * ID of the content collection this entry belongs to
95
+ */
96
+ collection_id: string;
97
+
93
98
  /**
94
99
  * Timestamp when the entry was created
95
100
  */
@@ -106,11 +111,6 @@ export interface Entry {
106
111
  */
107
112
  locale: string;
108
113
 
109
- /**
110
- * ID of the content model this entry belongs to
111
- */
112
- model_id: string;
113
-
114
114
  /**
115
115
  * Publishing status: draft, published, or archived
116
116
  */
@@ -127,14 +127,14 @@ export interface Entry {
127
127
  version: number;
128
128
 
129
129
  /**
130
- * Timestamp when first published
130
+ * API ID of the content collection (included when populated)
131
131
  */
132
- first_published_at?: string | null;
132
+ collection_api_id?: string;
133
133
 
134
134
  /**
135
- * API ID of the content model (included when populated)
135
+ * Timestamp when first published
136
136
  */
137
- model_api_id?: string;
137
+ first_published_at?: string | null;
138
138
 
139
139
  /**
140
140
  * Timestamp when last published
@@ -154,9 +154,9 @@ export interface Entry {
154
154
 
155
155
  export interface EntryCreateParams {
156
156
  /**
157
- * API ID of the content model (e.g., 'blogPost')
157
+ * API ID of the content collection (e.g., 'blogPost')
158
158
  */
159
- model: string;
159
+ collection: string;
160
160
 
161
161
  /**
162
162
  * Optional custom ID for the entry. Must start with 'ce\_'. If not provided, one
@@ -200,6 +200,11 @@ export interface EntryUpdateParams {
200
200
  }
201
201
 
202
202
  export interface EntryListParams extends CursorIDPageParams {
203
+ /**
204
+ * Filter by content collection API ID (e.g., 'blogPost')
205
+ */
206
+ collection?: string;
207
+
203
208
  /**
204
209
  * Filter by creation date
205
210
  */
@@ -215,11 +220,6 @@ export interface EntryListParams extends CursorIDPageParams {
215
220
  */
216
221
  locale?: string;
217
222
 
218
- /**
219
- * Filter by content model API ID (e.g., 'blogPost')
220
- */
221
- model?: string;
222
-
223
223
  /**
224
224
  * JSON-encoded sort order. Example: {"field":"publishedAt","direction":"desc"}
225
225
  */
@@ -8,6 +8,15 @@ export {
8
8
  type AssetListParams,
9
9
  type AssetsCursorIDPage,
10
10
  } from './assets';
11
+ export {
12
+ Collections,
13
+ type Collection,
14
+ type Field,
15
+ type CollectionCreateParams,
16
+ type CollectionUpdateParams,
17
+ type CollectionListParams,
18
+ type CollectionsCursorIDPage,
19
+ } from './collections/index';
11
20
  export { Content } from './content';
12
21
  export {
13
22
  Entries,
@@ -26,15 +35,6 @@ export {
26
35
  type LocaleListParams,
27
36
  type LocalesCursorIDPage,
28
37
  } from './locales';
29
- export {
30
- Models,
31
- type Field,
32
- type Model,
33
- type ModelCreateParams,
34
- type ModelUpdateParams,
35
- type ModelListParams,
36
- type ModelsCursorIDPage,
37
- } from './models/index';
38
38
  export {
39
39
  Releases,
40
40
  type Release,
@@ -0,0 +1,74 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ import { APIResource } from '../core/resource';
4
+ import { CursorIDPage, type CursorIDPageParams, PagePromise } from '../core/pagination';
5
+ import { RequestOptions } from '../internal/request-options';
6
+
7
+ /**
8
+ * List custom domains linked to a website, including Cloudflare verification
9
+ * and SSL status.
10
+ */
11
+ export class Domains extends APIResource {
12
+ /**
13
+ * Retrieves a paginated list of custom domains linked to the website, including
14
+ * Cloudflare verification and SSL status.
15
+ */
16
+ list(
17
+ query: DomainListParams | null | undefined = {},
18
+ options?: RequestOptions,
19
+ ): PagePromise<DomainsCursorIDPage, Domain> {
20
+ return this._client.getAPIList('/v1/domains', CursorIDPage<Domain>, { query, ...options });
21
+ }
22
+ }
23
+
24
+ export type DomainsCursorIDPage = CursorIDPage<Domain>;
25
+
26
+ /**
27
+ * A custom domain linked to a website.
28
+ */
29
+ export interface Domain {
30
+ /**
31
+ * Unique identifier for the domain
32
+ */
33
+ id: string;
34
+
35
+ /**
36
+ * Timestamp when the domain was created
37
+ */
38
+ created: string;
39
+
40
+ /**
41
+ * The custom domain hostname (e.g., 'app.example.com')
42
+ */
43
+ hostname: string;
44
+
45
+ /**
46
+ * Timestamp when the domain was last updated
47
+ */
48
+ updated: string;
49
+
50
+ /**
51
+ * Whether this is a wildcard domain
52
+ */
53
+ wildcard: boolean;
54
+
55
+ /**
56
+ * SSL certificate status (e.g., 'active', 'pending_validation')
57
+ */
58
+ ssl_status?: string;
59
+
60
+ /**
61
+ * Cloudflare verification status (e.g., 'active', 'pending')
62
+ */
63
+ status?: string;
64
+ }
65
+
66
+ export interface DomainListParams extends CursorIDPageParams {}
67
+
68
+ export declare namespace Domains {
69
+ export {
70
+ type Domain as Domain,
71
+ type DomainsCursorIDPage as DomainsCursorIDPage,
72
+ type DomainListParams as DomainListParams,
73
+ };
74
+ }
@@ -8,8 +8,9 @@ import { path } from '../internal/utils/path';
8
8
 
9
9
  /**
10
10
  * Upload, retrieve, and list files and media associated with a website.
11
- * Upload is a two-step process: first create an upload to get a presigned URL,
12
- * then complete the upload after putting the file content to the presigned URL.
11
+ * Upload is a two-step process: first call create to get an upload URL,
12
+ * then PUT the file content to that URL. The PUT response returns the
13
+ * completed MediaFile object. No separate complete call is needed.
13
14
  */
14
15
  export class Files extends APIResource {
15
16
  /**
@@ -89,12 +90,12 @@ export interface File {
89
90
  }
90
91
 
91
92
  /**
92
- * Response containing a presigned upload URL. PUT the file content to upload_url
93
- * with the provided headers, then call complete to finalize.
93
+ * Response containing an upload URL. PUT the file content to upload_url with the
94
+ * provided headers. The PUT response will contain the completed MediaFile object.
94
95
  */
95
96
  export interface Upload {
96
97
  /**
97
- * File ID to use when completing the upload
98
+ * File ID assigned to this upload
98
99
  */
99
100
  id: string;
100
101
 
@@ -104,7 +105,8 @@ export interface Upload {
104
105
  upload_headers: { [key: string]: string };
105
106
 
106
107
  /**
107
- * Presigned URL to PUT the file content to
108
+ * URL to PUT the file content to. The upload proxy will store the file, create
109
+ * database records, and return the completed MediaFile object in the PUT response.
108
110
  */
109
111
  upload_url: string;
110
112
  }
@@ -11,6 +11,7 @@ export {
11
11
  type CommerceCheckoutParams,
12
12
  } from './commerce/commerce';
13
13
  export { Content } from './content/content';
14
+ export { Domains, type Domain, type DomainListParams, type DomainsCursorIDPage } from './domains';
14
15
  export { Files, type File, type Upload, type FileListParams, type FilesCursorIDPage } from './files';
15
16
  export {
16
17
  PushNotifications,
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '1.14.0'; // x-release-please-version
1
+ export const VERSION = '1.14.2'; // x-release-please-version
package/version.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "1.14.0";
1
+ export declare const VERSION = "1.14.2";
2
2
  //# sourceMappingURL=version.d.mts.map
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "1.14.0";
1
+ export declare const VERSION = "1.14.2";
2
2
  //# sourceMappingURL=version.d.ts.map
package/version.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VERSION = void 0;
4
- exports.VERSION = '1.14.0'; // x-release-please-version
4
+ exports.VERSION = '1.14.2'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '1.14.0'; // x-release-please-version
1
+ export const VERSION = '1.14.2'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"fields.d.mts","sourceRoot":"","sources":["../../../src/resources/content/models/fields.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,SAAS;OACd,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAGzB,qBAAa,MAAO,SAAQ,WAAW;IACrC;;;OAGG;IACH,MAAM,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,iBAAiB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,SAAS,CAAC,KAAK,CAAC;IAIvG;;;OAGG;IACH,MAAM,CAAC,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,iBAAiB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,SAAS,CAAC,KAAK,CAAC;IAKzG;;;OAGG;IACH,MAAM,CAAC,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,iBAAiB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;CAO/F;AAED,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,IAAI,EACA,MAAM,GACN,UAAU,GACV,QAAQ,GACR,SAAS,GACT,MAAM,GACN,UAAU,GACV,MAAM,GACN,WAAW,GACX,OAAO,GACP,MAAM,GACN,OAAO,CAAC;IAEZ;;;OAGG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;IAEZ;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB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C,MAAM,CAAC,CAAC;QAEnC;;WAEG;QACH,cAAc,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;QAE/B;;WAEG;QACH,cAAc,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;QAE/B;;WAEG;QACH,eAAe,CAAC,EACZ,MAAM,GACN,UAAU,GACV,QAAQ,GACR,SAAS,GACT,MAAM,GACN,UAAU,GACV,MAAM,GACN,WAAW,GACX,OAAO,GACP,MAAM,GACN,OAAO,CAAC;QAEZ;;WAEG;QACH,aAAa,CAAC,EAAE,OAAO,CAAC;QAExB;;WAEG;QACH,GAAG,CAAC,EAAE,MAAM,CAAC;QAEb;;WAEG;QACH,GAAG,CAAC,EAAE,MAAM,CAAC;QAEb;;WAEG;QACH,OAAO,CAAC,EAAE,MAAM,CAAC;QAEjB;;WAEG;QACH,QAAQ,CAAC,EAAE,OAAO,CAAC;QAEnB;;WAEG;QACH,MAAM,CAAC,EAAE,OAAO,CAAC;KAClB;CACF;AAED,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,CAAC,OAAO,WAAW,MAAM,CAAC;IAC9B,OAAO,EACL,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,iBAAiB,IAAI,iBAAiB,GAC5C,CAAC;CACH"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"fields.d.ts","sourceRoot":"","sources":["../../../src/resources/content/models/fields.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,SAAS;OACd,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAGzB,qBAAa,MAAO,SAAQ,WAAW;IACrC;;;OAGG;IACH,MAAM,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,iBAAiB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,SAAS,CAAC,KAAK,C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G;QACH,OAAO,CAAC,EAAE,MAAM,CAAC;QAEjB;;WAEG;QACH,QAAQ,CAAC,EAAE,OAAO,CAAC;QAEnB;;WAEG;QACH,MAAM,CAAC,EAAE,OAAO,CAAC;KAClB;CACF;AAED,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,CAAC,OAAO,WAAW,MAAM,CAAC;IAC9B,OAAO,EACL,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,iBAAiB,IAAI,iBAAiB,GAC5C,CAAC;CACH"}
@@ -1,37 +0,0 @@
1
- "use strict";
2
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.Fields = void 0;
5
- const resource_1 = require("../../../core/resource.js");
6
- const headers_1 = require("../../../internal/headers.js");
7
- const path_1 = require("../../../internal/utils/path.js");
8
- class Fields extends resource_1.APIResource {
9
- /**
10
- * Adds a new field to a content model. Fields define the structure of entries. The
11
- * model must not be locked. Adding a field increments the model version.
12
- */
13
- create(modelID, body, options) {
14
- return this._client.post((0, path_1.path) `/v1/content/models/${modelID}/fields`, { body, ...options });
15
- }
16
- /**
17
- * Updates an existing field in a content model. The field type cannot be changed
18
- * after creation. The model must not be locked.
19
- */
20
- update(fieldID, params, options) {
21
- const { model_id, ...body } = params;
22
- return this._client.patch((0, path_1.path) `/v1/content/models/${model_id}/fields/${fieldID}`, { body, ...options });
23
- }
24
- /**
25
- * Removes a field from a content model. Existing entry data for this field is
26
- * preserved but will no longer be validated. The model must not be locked.
27
- */
28
- delete(fieldID, params, options) {
29
- const { model_id } = params;
30
- return this._client.delete((0, path_1.path) `/v1/content/models/${model_id}/fields/${fieldID}`, {
31
- ...options,
32
- headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
33
- });
34
- }
35
- }
36
- exports.Fields = Fields;
37
- //# sourceMappingURL=fields.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"fields.js","sourceRoot":"","sources":["../../../src/resources/content/models/fields.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAqD;AAGrD,0DAAyD;AAEzD,0DAAoD;AAEpD,MAAa,MAAO,SAAQ,sBAAW;IACrC;;;OAGG;IACH,MAAM,CAAC,OAAe,EAAE,IAAuB,EAAE,OAAwB;QACvE,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,sBAAsB,OAAO,SAAS,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC7F,CAAC;IAED;;;OAGG;IACH,MAAM,CAAC,OAAe,EAAE,MAAyB,EAAE,OAAwB;QACzE,MAAM,EAAE,QAAQ,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QACrC,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAA,WAAI,EAAA,sBAAsB,QAAQ,WAAW,OAAO,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC1G,CAAC;IAED;;;OAGG;IACH,MAAM,CAAC,OAAe,EAAE,MAAyB,EAAE,OAAwB;QACzE,MAAM,EAAE,QAAQ,EAAE,GAAG,MAAM,CAAC;QAC5B,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,sBAAsB,QAAQ,WAAW,OAAO,EAAE,EAAE;YACjF,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;CACF;AA7BD,wBA6BC"}
@@ -1,33 +0,0 @@
1
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
- import { APIResource } from "../../../core/resource.mjs";
3
- import { buildHeaders } from "../../../internal/headers.mjs";
4
- import { path } from "../../../internal/utils/path.mjs";
5
- export class Fields extends APIResource {
6
- /**
7
- * Adds a new field to a content model. Fields define the structure of entries. The
8
- * model must not be locked. Adding a field increments the model version.
9
- */
10
- create(modelID, body, options) {
11
- return this._client.post(path `/v1/content/models/${modelID}/fields`, { body, ...options });
12
- }
13
- /**
14
- * Updates an existing field in a content model. The field type cannot be changed
15
- * after creation. The model must not be locked.
16
- */
17
- update(fieldID, params, options) {
18
- const { model_id, ...body } = params;
19
- return this._client.patch(path `/v1/content/models/${model_id}/fields/${fieldID}`, { body, ...options });
20
- }
21
- /**
22
- * Removes a field from a content model. Existing entry data for this field is
23
- * preserved but will no longer be validated. The model must not be locked.
24
- */
25
- delete(fieldID, params, options) {
26
- const { model_id } = params;
27
- return this._client.delete(path `/v1/content/models/${model_id}/fields/${fieldID}`, {
28
- ...options,
29
- headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
30
- });
31
- }
32
- }
33
- //# sourceMappingURL=fields.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"fields.mjs","sourceRoot":"","sources":["../../../src/resources/content/models/fields.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAGf,EAAE,YAAY,EAAE;OAEhB,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,MAAO,SAAQ,WAAW;IACrC;;;OAGG;IACH,MAAM,CAAC,OAAe,EAAE,IAAuB,EAAE,OAAwB;QACvE,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,sBAAsB,OAAO,SAAS,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC7F,CAAC;IAED;;;OAGG;IACH,MAAM,CAAC,OAAe,EAAE,MAAyB,EAAE,OAAwB;QACzE,MAAM,EAAE,QAAQ,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QACrC,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAA,sBAAsB,QAAQ,WAAW,OAAO,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC1G,CAAC;IAED;;;OAGG;IACH,MAAM,CAAC,OAAe,EAAE,MAAyB,EAAE,OAAwB;QACzE,MAAM,EAAE,QAAQ,EAAE,GAAG,MAAM,CAAC;QAC5B,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,sBAAsB,QAAQ,WAAW,OAAO,EAAE,EAAE;YACjF,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;CACF"}
@@ -1,3 +0,0 @@
1
- export { Fields, type FieldCreateParams, type FieldUpdateParams, type FieldDeleteParams } from "./fields.mjs";
2
- export { Models, type Field, type Model, type ModelCreateParams, type ModelUpdateParams, type ModelListParams, type ModelsCursorIDPage, } from "./models.mjs";
3
- //# sourceMappingURL=index.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/resources/content/models/index.ts"],"names":[],"mappings":"OAEO,EAAE,MAAM,EAAE,KAAK,iBAAiB,EAAE,KAAK,iBAAiB,EAAE,KAAK,iBAAiB,EAAE;OAClF,EACL,MAAM,EACN,KAAK,KAAK,EACV,KAAK,KAAK,EACV,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EACtB,KAAK,eAAe,EACpB,KAAK,kBAAkB,GACxB"}
@@ -1,3 +0,0 @@
1
- export { Fields, type FieldCreateParams, type FieldUpdateParams, type FieldDeleteParams } from "./fields.js";
2
- export { Models, type Field, type Model, type ModelCreateParams, type ModelUpdateParams, type ModelListParams, type ModelsCursorIDPage, } from "./models.js";
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/resources/content/models/index.ts"],"names":[],"mappings":"OAEO,EAAE,MAAM,EAAE,KAAK,iBAAiB,EAAE,KAAK,iBAAiB,EAAE,KAAK,iBAAiB,EAAE;OAClF,EACL,MAAM,EACN,KAAK,KAAK,EACV,KAAK,KAAK,EACV,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EACtB,KAAK,eAAe,EACpB,KAAK,kBAAkB,GACxB"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resources/content/models/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,sCAA0G;AAAjG,gGAAA,MAAM,OAAA;AACf,sCAQkB;AAPhB,gGAAA,MAAM,OAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/resources/content/models/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,MAAM,EAA0E;OAClF,EACL,MAAM,GAOP"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"models.d.mts","sourceRoot":"","sources":["../../../src/resources/content/models/models.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,SAAS;OACd,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,EAAE;OACnE,EAAE,UAAU,EAAE;OACd,EAAE,YAAY,EAAE,KAAK,kBAAkB,EAAE,WAAW,EAAE;OACtD,EAAE,cAAc,EAAE;AAGzB,qBAAa,MAAO,SAAQ,WAAW;IACrC,MAAM,EAAE,SAAS,CAAC,MAAM,CAAsC;IAE9D;;;OAGG;IACH,MAAM,CAAC,IAAI,EAAE,iBAAiB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,KAAK,CAAC;IAI5E;;;OAGG;IACH,MAAM,CACJ,OAAO,EAAE,MAAM,EACf,IAAI,GAAE,iBAAiB,GAAG,IAAI,GAAG,SAAc,EAC/C,OAAO,CAAC,EA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