contentful-management 7.44.2 → 7.45.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (56) hide show
  1. package/dist/contentful-management.browser.js +52 -68
  2. package/dist/contentful-management.browser.js.map +1 -1
  3. package/dist/contentful-management.browser.min.js +1 -1
  4. package/dist/contentful-management.legacy.js +52 -68
  5. package/dist/contentful-management.legacy.js.map +1 -1
  6. package/dist/contentful-management.legacy.min.js +1 -1
  7. package/dist/contentful-management.node.js +47 -63
  8. package/dist/contentful-management.node.js.map +1 -1
  9. package/dist/contentful-management.node.min.js +1 -1
  10. package/dist/es-modules/adapters/REST/endpoints/api-key.js +1 -1
  11. package/dist/es-modules/adapters/REST/endpoints/organization.js +2 -2
  12. package/dist/es-modules/adapters/REST/endpoints/space.js +4 -4
  13. package/dist/es-modules/adapters/REST/rest-adapter.js +1 -1
  14. package/dist/es-modules/common-utils.js +1 -1
  15. package/dist/es-modules/constants/editor-interface-defaults/sidebar-defaults.js +1 -8
  16. package/dist/es-modules/contentful-management.js +1 -1
  17. package/dist/es-modules/entities/locale.js +1 -1
  18. package/dist/es-modules/plain/as-iterator.js +12 -8
  19. package/dist/typings/create-entry-api.d.ts +3 -3
  20. package/dist/typings/create-environment-api.d.ts +4 -3
  21. package/dist/typings/entities/api-key.d.ts +1 -1578
  22. package/dist/typings/entities/app-bundle.d.ts +1 -1578
  23. package/dist/typings/entities/app-definition.d.ts +1 -1578
  24. package/dist/typings/entities/app-installation.d.ts +1 -1578
  25. package/dist/typings/entities/app-upload.d.ts +1 -1578
  26. package/dist/typings/entities/asset.d.ts +1 -1577
  27. package/dist/typings/entities/comment.d.ts +1 -1578
  28. package/dist/typings/entities/content-type.d.ts +1 -1578
  29. package/dist/typings/entities/editor-interface.d.ts +8 -1585
  30. package/dist/typings/entities/entry.d.ts +1 -1578
  31. package/dist/typings/entities/environment-alias.d.ts +1 -1578
  32. package/dist/typings/entities/environment.d.ts +1 -1578
  33. package/dist/typings/entities/extension.d.ts +1 -1578
  34. package/dist/typings/entities/locale.d.ts +1 -1578
  35. package/dist/typings/entities/organization-membership.d.ts +1 -1578
  36. package/dist/typings/entities/organization.d.ts +1 -1578
  37. package/dist/typings/entities/personal-access-token.d.ts +1 -1578
  38. package/dist/typings/entities/preview-api-key.d.ts +1 -1578
  39. package/dist/typings/entities/release-action.d.ts +1 -1578
  40. package/dist/typings/entities/role.d.ts +1 -1578
  41. package/dist/typings/entities/scheduled-action.d.ts +1 -1578
  42. package/dist/typings/entities/snapshot.d.ts +1 -1578
  43. package/dist/typings/entities/space-member.d.ts +1 -1578
  44. package/dist/typings/entities/space-membership.d.ts +1 -1578
  45. package/dist/typings/entities/space.d.ts +1 -1578
  46. package/dist/typings/entities/tag.d.ts +1 -1578
  47. package/dist/typings/entities/task.d.ts +1 -1578
  48. package/dist/typings/entities/team-membership.d.ts +1 -1578
  49. package/dist/typings/entities/team-space-membership.d.ts +1 -1578
  50. package/dist/typings/entities/team.d.ts +1 -1578
  51. package/dist/typings/entities/usage.d.ts +1 -1578
  52. package/dist/typings/entities/user.d.ts +1 -1578
  53. package/dist/typings/entities/webhook.d.ts +1 -1578
  54. package/dist/typings/export-types.d.ts +1 -1
  55. package/dist/typings/plain/wrappers/wrap.d.ts +4 -4
  56. package/package.json +14 -13
@@ -1,5 +1,3 @@
1
- /// <reference types="node" />
2
- /// <reference types="json-patch" />
3
1
  import { DefaultElements, MakeRequest, MetaSysProps } from '../common-types';
4
2
  export declare type PreviewApiKeyProps = {
5
3
  sys: MetaSysProps;
@@ -18,1579 +16,4 @@ export declare function wrapPreviewApiKey(_makeRequest: MakeRequest, data: Previ
18
16
  /**
19
17
  * @private
20
18
  */
21
- export declare const wrapPreviewApiKeyCollection: (makeRequest: {
22
- (opts: import("../common-types").MROpts<"Http", "get", false>): Promise<any>;
23
- (opts: import("../common-types").MROpts<"Http", "patch", false>): Promise<any>;
24
- (opts: import("../common-types").MROpts<"Http", "post", false>): Promise<any>;
25
- (opts: import("../common-types").MROpts<"Http", "put", false>): Promise<any>;
26
- (opts: import("../common-types").MROpts<"Http", "delete", false>): Promise<any>;
27
- (opts: import("../common-types").MROpts<"Http", "request", false>): Promise<any>;
28
- (opts: import("../common-types").MROpts<"AppBundle", "get", false>): Promise<import("./app-bundle").AppBundleProps>;
29
- (opts: import("../common-types").MROpts<"AppBundle", "getMany", false>): Promise<import("../common-types").CollectionProp<import("./app-bundle").AppBundleProps>>;
30
- (opts: import("../common-types").MROpts<"AppBundle", "delete", false>): Promise<void>;
31
- (opts: {
32
- entityType: "AppBundle";
33
- action: "create";
34
- } & {
35
- params: import("../common-types").GetAppDefinitionParams;
36
- } & {
37
- payload: import("./app-bundle").CreateAppBundleProps;
38
- }): Promise<import("./app-bundle").AppBundleProps>;
39
- (opts: {
40
- entityType: "ApiKey";
41
- action: "get";
42
- } & {
43
- params: import("../common-types").GetSpaceParams & {
44
- apiKeyId: string;
45
- };
46
- }): Promise<import("./api-key").ApiKeyProps>;
47
- (opts: {
48
- entityType: "ApiKey";
49
- action: "getMany";
50
- } & {
51
- params: import("../common-types").GetSpaceParams & import("../common-types").QueryParams;
52
- }): Promise<import("../common-types").CollectionProp<import("./api-key").ApiKeyProps>>;
53
- (opts: {
54
- entityType: "ApiKey";
55
- action: "create";
56
- } & {
57
- params: import("../common-types").GetSpaceParams;
58
- } & {
59
- payload: Pick<import("./api-key").ApiKeyProps, "description" | "name" | "environments">;
60
- } & {
61
- headers?: Record<string, unknown> | undefined;
62
- }): Promise<import("./api-key").ApiKeyProps>;
63
- (opts: {
64
- entityType: "ApiKey";
65
- action: "createWithId";
66
- } & {
67
- params: import("../common-types").GetSpaceParams & {
68
- apiKeyId: string;
69
- };
70
- } & {
71
- payload: Pick<import("./api-key").ApiKeyProps, "description" | "name" | "environments">;
72
- } & {
73
- headers?: Record<string, unknown> | undefined;
74
- }): Promise<import("./api-key").ApiKeyProps>;
75
- (opts: {
76
- entityType: "ApiKey";
77
- action: "update";
78
- } & {
79
- params: import("../common-types").GetSpaceParams & {
80
- apiKeyId: string;
81
- };
82
- } & {
83
- payload: import("./api-key").ApiKeyProps;
84
- } & {
85
- headers?: Record<string, unknown> | undefined;
86
- }): Promise<import("./api-key").ApiKeyProps>;
87
- (opts: {
88
- entityType: "ApiKey";
89
- action: "delete";
90
- } & {
91
- params: import("../common-types").GetSpaceParams & {
92
- apiKeyId: string;
93
- };
94
- }): Promise<any>;
95
- (opts: {
96
- entityType: "AppDefinition";
97
- action: "get";
98
- } & {
99
- params: import("../common-types").GetOrganizationParams & {
100
- appDefinitionId: string;
101
- };
102
- }): Promise<import("./app-definition").AppDefinitionProps>;
103
- (opts: {
104
- entityType: "AppDefinition";
105
- action: "getMany";
106
- } & {
107
- params: import("../common-types").GetOrganizationParams & import("../common-types").QueryParams;
108
- }): Promise<import("../common-types").CollectionProp<import("./app-definition").AppDefinitionProps>>;
109
- (opts: {
110
- entityType: "AppDefinition";
111
- action: "create";
112
- } & {
113
- params: import("../common-types").GetOrganizationParams;
114
- } & {
115
- payload: import("type-fest/source/simplify").Simplify<Pick<Pick<import("./app-definition").AppDefinitionProps, "name" | "src" | "locations" | "parameters">, "name" | "parameters"> & Partial<Pick<Pick<import("./app-definition").AppDefinitionProps, "name" | "src" | "locations" | "parameters">, "src" | "locations">>>;
116
- }): Promise<import("./app-definition").AppDefinitionProps>;
117
- (opts: {
118
- entityType: "AppDefinition";
119
- action: "update";
120
- } & {
121
- params: import("../common-types").GetAppDefinitionParams;
122
- } & {
123
- payload: import("./app-definition").AppDefinitionProps;
124
- } & {
125
- headers?: Record<string, unknown> | undefined;
126
- }): Promise<import("./app-definition").AppDefinitionProps>;
127
- (opts: {
128
- entityType: "AppDefinition";
129
- action: "delete";
130
- } & {
131
- params: import("../common-types").GetAppDefinitionParams;
132
- }): Promise<any>;
133
- (opts: {
134
- entityType: "AppInstallation";
135
- action: "get";
136
- } & {
137
- params: import("../common-types").GetAppInstallationParams;
138
- }): Promise<import("./app-installation").AppInstallationProps>;
139
- (opts: {
140
- entityType: "AppInstallation";
141
- action: "getMany";
142
- } & {
143
- params: import("../common-types").GetSpaceEnvironmentParams & import("../common-types").PaginationQueryParams;
144
- }): Promise<import("../common-types").CollectionProp<import("./app-installation").AppInstallationProps>>;
145
- (opts: {
146
- entityType: "AppInstallation";
147
- action: "upsert";
148
- } & {
149
- params: import("../common-types").GetAppInstallationParams;
150
- } & {
151
- payload: Pick<import("./app-installation").AppInstallationProps, "parameters">;
152
- } & {
153
- headers?: Record<string, unknown> | undefined;
154
- }): Promise<import("./app-installation").AppInstallationProps>;
155
- (opts: {
156
- entityType: "AppInstallation";
157
- action: "delete";
158
- } & {
159
- params: import("../common-types").GetAppInstallationParams;
160
- }): Promise<any>;
161
- (opts: {
162
- entityType: "Asset";
163
- action: "getMany";
164
- } & {
165
- params: import("../common-types").GetSpaceEnvironmentParams & import("../common-types").QueryParams;
166
- }): Promise<import("../common-types").CollectionProp<import("./asset").AssetProps>>;
167
- (opts: {
168
- entityType: "Asset";
169
- action: "get";
170
- } & {
171
- params: import("../common-types").GetSpaceEnvironmentParams & {
172
- assetId: string;
173
- } & import("../common-types").QueryParams;
174
- }): Promise<import("./asset").AssetProps>;
175
- (opts: {
176
- entityType: "Asset";
177
- action: "update";
178
- } & {
179
- params: import("../common-types").GetSpaceEnvironmentParams & {
180
- assetId: string;
181
- };
182
- } & {
183
- payload: import("./asset").AssetProps;
184
- } & {
185
- headers?: Record<string, unknown> | undefined;
186
- }): Promise<import("./asset").AssetProps>;
187
- (opts: {
188
- entityType: "Asset";
189
- action: "delete";
190
- } & {
191
- params: import("../common-types").GetSpaceEnvironmentParams & {
192
- assetId: string;
193
- };
194
- }): Promise<any>;
195
- (opts: {
196
- entityType: "Asset";
197
- action: "publish";
198
- } & {
199
- params: import("../common-types").GetSpaceEnvironmentParams & {
200
- assetId: string;
201
- };
202
- } & {
203
- payload: import("./asset").AssetProps;
204
- }): Promise<import("./asset").AssetProps>;
205
- (opts: {
206
- entityType: "Asset";
207
- action: "unpublish";
208
- } & {
209
- params: import("../common-types").GetSpaceEnvironmentParams & {
210
- assetId: string;
211
- };
212
- }): Promise<import("./asset").AssetProps>;
213
- (opts: {
214
- entityType: "Asset";
215
- action: "archive";
216
- } & {
217
- params: import("../common-types").GetSpaceEnvironmentParams & {
218
- assetId: string;
219
- };
220
- }): Promise<import("./asset").AssetProps>;
221
- (opts: {
222
- entityType: "Asset";
223
- action: "unarchive";
224
- } & {
225
- params: import("../common-types").GetSpaceEnvironmentParams & {
226
- assetId: string;
227
- };
228
- }): Promise<import("./asset").AssetProps>;
229
- (opts: {
230
- entityType: "Asset";
231
- action: "create";
232
- } & {
233
- params: import("../common-types").GetSpaceEnvironmentParams;
234
- } & {
235
- payload: Pick<import("./asset").AssetProps, "metadata" | "fields">;
236
- }): Promise<import("./asset").AssetProps>;
237
- (opts: {
238
- entityType: "Asset";
239
- action: "createWithId";
240
- } & {
241
- params: import("../common-types").GetSpaceEnvironmentParams & {
242
- assetId: string;
243
- };
244
- } & {
245
- payload: Pick<import("./asset").AssetProps, "metadata" | "fields">;
246
- }): Promise<import("./asset").AssetProps>;
247
- (opts: {
248
- entityType: "Asset";
249
- action: "createFromFiles";
250
- } & {
251
- params: import("../common-types").GetSpaceEnvironmentParams;
252
- } & {
253
- payload: Pick<import("./asset").AssetFileProp, "fields">;
254
- }): Promise<import("./asset").AssetProps>;
255
- (opts: {
256
- entityType: "Asset";
257
- action: "processForAllLocales";
258
- } & {
259
- params: import("../common-types").GetSpaceEnvironmentParams & {
260
- asset: import("./asset").AssetProps;
261
- options?: import("./asset").AssetProcessingForLocale | undefined;
262
- };
263
- }): Promise<import("./asset").AssetProps>;
264
- (opts: {
265
- entityType: "Asset";
266
- action: "processForLocale";
267
- } & {
268
- params: import("../common-types").GetSpaceEnvironmentParams & {
269
- asset: import("./asset").AssetProps;
270
- locale: string;
271
- options?: import("./asset").AssetProcessingForLocale | undefined;
272
- };
273
- }): Promise<import("./asset").AssetProps>;
274
- (opts: {
275
- entityType: "AppUpload";
276
- action: "get";
277
- } & {
278
- params: import("../common-types").GetAppUploadParams;
279
- }): Promise<import("./app-upload").AppUploadProps>;
280
- (opts: {
281
- entityType: "AppUpload";
282
- action: "delete";
283
- } & {
284
- params: import("../common-types").GetAppUploadParams;
285
- }): Promise<void>;
286
- (opts: {
287
- entityType: "AppUpload";
288
- action: "create";
289
- } & {
290
- params: import("../common-types").GetOrganizationParams;
291
- } & {
292
- payload: {
293
- file: string | ArrayBuffer | import("stream").Stream;
294
- };
295
- }): Promise<import("./app-upload").AppUploadProps>;
296
- (opts: {
297
- entityType: "AppDetails";
298
- action: "upsert";
299
- } & {
300
- params: import("../common-types").GetAppDefinitionParams;
301
- } & {
302
- payload: import("./app-details").CreateAppDetailsProps;
303
- }): Promise<import("./app-details").AppDetailsProps>;
304
- (opts: {
305
- entityType: "AppDetails";
306
- action: "get";
307
- } & {
308
- params: import("../common-types").GetAppDefinitionParams;
309
- }): Promise<import("./app-details").AppDetailsProps>;
310
- (opts: {
311
- entityType: "AppDetails";
312
- action: "delete";
313
- } & {
314
- params: import("../common-types").GetAppDefinitionParams;
315
- }): Promise<void>;
316
- (opts: {
317
- entityType: "AppSignedRequest";
318
- action: "create";
319
- } & {
320
- params: import("../common-types").GetAppInstallationParams;
321
- } & {
322
- payload: import("./app-signed-request").CreateAppSignedRequestProps;
323
- }): Promise<import("./app-signed-request").AppSignedRequestProps>;
324
- (opts: {
325
- entityType: "AppSigningSecret";
326
- action: "upsert";
327
- } & {
328
- params: import("../common-types").GetAppDefinitionParams;
329
- } & {
330
- payload: import("./app-signing-secret").CreateAppSigningSecretProps;
331
- }): Promise<import("./app-signing-secret").AppSigningSecretProps>;
332
- (opts: {
333
- entityType: "AppSigningSecret";
334
- action: "get";
335
- } & {
336
- params: import("../common-types").GetAppDefinitionParams;
337
- }): Promise<import("./app-signing-secret").AppSigningSecretProps>;
338
- (opts: {
339
- entityType: "AppSigningSecret";
340
- action: "delete";
341
- } & {
342
- params: import("../common-types").GetAppDefinitionParams;
343
- }): Promise<void>;
344
- (opts: {
345
- entityType: "AssetKey";
346
- action: "create";
347
- } & {
348
- params: import("../common-types").GetSpaceEnvironmentParams;
349
- } & {
350
- payload: import("./asset-key").CreateAssetKeyProps;
351
- }): Promise<import("./asset-key").AssetKeyProps>;
352
- (opts: {
353
- entityType: "BulkAction";
354
- action: "get";
355
- } & {
356
- params: import("../common-types").GetBulkActionParams;
357
- }): Promise<import("./bulk-action").BulkActionProps<any>>;
358
- (opts: {
359
- entityType: "BulkAction";
360
- action: "publish";
361
- } & {
362
- params: import("../common-types").GetSpaceEnvironmentParams;
363
- } & {
364
- payload: import("./bulk-action").BulkActionPublishPayload;
365
- }): Promise<import("./bulk-action").BulkActionProps<import("./bulk-action").BulkActionPublishPayload>>;
366
- (opts: {
367
- entityType: "BulkAction";
368
- action: "unpublish";
369
- } & {
370
- params: import("../common-types").GetSpaceEnvironmentParams;
371
- } & {
372
- payload: import("./bulk-action").BulkActionUnpublishPayload;
373
- }): Promise<import("./bulk-action").BulkActionProps<import("./bulk-action").BulkActionUnpublishPayload>>;
374
- (opts: {
375
- entityType: "BulkAction";
376
- action: "validate";
377
- } & {
378
- params: import("../common-types").GetSpaceEnvironmentParams;
379
- } & {
380
- payload: import("./bulk-action").BulkActionValidatePayload;
381
- }): Promise<import("./bulk-action").BulkActionProps<import("./bulk-action").BulkActionValidatePayload>>;
382
- (opts: {
383
- entityType: "Comment";
384
- action: "get";
385
- } & {
386
- params: import("../common-types").GetCommentParams;
387
- }): Promise<import("./comment").CommentProps>;
388
- (opts: {
389
- entityType: "Comment";
390
- action: "getAll";
391
- } & {
392
- params: import("../common-types").GetEntryParams;
393
- }): Promise<import("../common-types").CollectionProp<import("./comment").CommentProps>>;
394
- (opts: {
395
- entityType: "Comment";
396
- action: "create";
397
- } & {
398
- params: import("../common-types").GetEntryParams;
399
- } & {
400
- payload: Pick<import("./comment").CommentProps, "body">;
401
- }): Promise<import("./comment").CommentProps>;
402
- (opts: {
403
- entityType: "Comment";
404
- action: "update";
405
- } & {
406
- params: import("../common-types").GetCommentParams;
407
- } & {
408
- payload: import("./comment").UpdateCommentProps;
409
- } & {
410
- headers?: Record<string, unknown> | undefined;
411
- }): Promise<import("./comment").CommentProps>;
412
- (opts: {
413
- entityType: "Comment";
414
- action: "delete";
415
- } & {
416
- params: import("./comment").DeleteCommentParams;
417
- }): Promise<void>;
418
- (opts: {
419
- entityType: "ContentType";
420
- action: "get";
421
- } & {
422
- params: import("../common-types").GetSpaceEnvironmentParams & {
423
- contentTypeId: string;
424
- } & import("../common-types").QueryParams;
425
- }): Promise<import("./content-type").ContentTypeProps>;
426
- (opts: {
427
- entityType: "ContentType";
428
- action: "getMany";
429
- } & {
430
- params: import("../common-types").GetSpaceEnvironmentParams & import("../common-types").QueryParams;
431
- }): Promise<import("../common-types").CollectionProp<import("./content-type").ContentTypeProps>>;
432
- (opts: {
433
- entityType: "ContentType";
434
- action: "update";
435
- } & {
436
- params: import("../common-types").GetContentTypeParams;
437
- } & {
438
- payload: import("./content-type").ContentTypeProps;
439
- } & {
440
- headers?: Record<string, unknown> | undefined;
441
- }): Promise<import("./content-type").ContentTypeProps>;
442
- (opts: {
443
- entityType: "ContentType";
444
- action: "create";
445
- } & {
446
- params: import("../common-types").GetSpaceEnvironmentParams;
447
- } & {
448
- payload: import("type-fest/source/simplify").Simplify<Pick<Pick<import("./content-type").ContentTypeProps, "description" | "name" | "fields" | "displayField">, "name" | "fields"> & Partial<Pick<Pick<import("./content-type").ContentTypeProps, "description" | "name" | "fields" | "displayField">, "description" | "displayField">>>;
449
- }): Promise<import("./content-type").ContentTypeProps>;
450
- (opts: {
451
- entityType: "ContentType";
452
- action: "createWithId";
453
- } & {
454
- params: import("../common-types").GetContentTypeParams;
455
- } & {
456
- payload: import("type-fest/source/simplify").Simplify<Pick<Pick<import("./content-type").ContentTypeProps, "description" | "name" | "fields" | "displayField">, "name" | "fields"> & Partial<Pick<Pick<import("./content-type").ContentTypeProps, "description" | "name" | "fields" | "displayField">, "description" | "displayField">>>;
457
- }): Promise<import("./content-type").ContentTypeProps>;
458
- (opts: {
459
- entityType: "ContentType";
460
- action: "delete";
461
- } & {
462
- params: import("../common-types").GetContentTypeParams;
463
- }): Promise<any>;
464
- (opts: {
465
- entityType: "ContentType";
466
- action: "publish";
467
- } & {
468
- params: import("../common-types").GetContentTypeParams;
469
- } & {
470
- payload: import("./content-type").ContentTypeProps;
471
- }): Promise<import("./content-type").ContentTypeProps>;
472
- (opts: {
473
- entityType: "ContentType";
474
- action: "unpublish";
475
- } & {
476
- params: import("../common-types").GetContentTypeParams;
477
- }): Promise<import("./content-type").ContentTypeProps>;
478
- (opts: {
479
- entityType: "EditorInterface";
480
- action: "get";
481
- } & {
482
- params: import("../common-types").GetEditorInterfaceParams;
483
- }): Promise<import("./editor-interface").EditorInterfaceProps>;
484
- (opts: {
485
- entityType: "EditorInterface";
486
- action: "getMany";
487
- } & {
488
- params: import("../common-types").GetSpaceEnvironmentParams & import("../common-types").QueryParams;
489
- }): Promise<import("../common-types").CollectionProp<import("./editor-interface").EditorInterfaceProps>>;
490
- (opts: {
491
- entityType: "EditorInterface";
492
- action: "update";
493
- } & {
494
- params: import("../common-types").GetEditorInterfaceParams;
495
- } & {
496
- payload: import("./editor-interface").EditorInterfaceProps;
497
- } & {
498
- headers?: Record<string, unknown> | undefined;
499
- }): Promise<import("./editor-interface").EditorInterfaceProps>;
500
- (opts: {
501
- entityType: "Environment";
502
- action: "get";
503
- } & {
504
- params: import("../common-types").GetSpaceEnvironmentParams;
505
- }): Promise<import("./environment").EnvironmentProps>;
506
- (opts: {
507
- entityType: "Environment";
508
- action: "getMany";
509
- } & {
510
- params: import("../common-types").GetSpaceParams & import("../common-types").PaginationQueryParams;
511
- }): Promise<import("../common-types").CollectionProp<import("./environment").EnvironmentProps>>;
512
- (opts: {
513
- entityType: "Environment";
514
- action: "create";
515
- } & {
516
- params: import("../common-types").GetSpaceParams;
517
- } & {
518
- payload: Partial<Pick<import("./environment").EnvironmentProps, "name">>;
519
- } & {
520
- headers?: Record<string, unknown> | undefined;
521
- }): Promise<import("./environment").EnvironmentProps>;
522
- (opts: {
523
- entityType: "Environment";
524
- action: "createWithId";
525
- } & {
526
- params: import("../common-types").GetSpaceEnvironmentParams & {
527
- sourceEnvironmentId?: string | undefined;
528
- };
529
- } & {
530
- payload: Partial<Pick<import("./environment").EnvironmentProps, "name">>;
531
- } & {
532
- headers?: Record<string, unknown> | undefined;
533
- }): Promise<import("./environment").EnvironmentProps>;
534
- (opts: {
535
- entityType: "Environment";
536
- action: "update";
537
- } & {
538
- params: import("../common-types").GetSpaceEnvironmentParams;
539
- } & {
540
- payload: import("./environment").EnvironmentProps;
541
- } & {
542
- headers?: Record<string, unknown> | undefined;
543
- }): Promise<import("./environment").EnvironmentProps>;
544
- (opts: {
545
- entityType: "Environment";
546
- action: "delete";
547
- } & {
548
- params: import("../common-types").GetSpaceEnvironmentParams;
549
- }): Promise<any>;
550
- (opts: {
551
- entityType: "EnvironmentAlias";
552
- action: "get";
553
- } & {
554
- params: import("../common-types").GetSpaceEnvAliasParams;
555
- }): Promise<import("./environment-alias").EnvironmentAliasProps>;
556
- (opts: {
557
- entityType: "EnvironmentAlias";
558
- action: "getMany";
559
- } & {
560
- params: import("../common-types").GetSpaceParams & import("../common-types").PaginationQueryParams;
561
- }): Promise<import("../common-types").CollectionProp<import("./environment-alias").EnvironmentAliasProps>>;
562
- (opts: {
563
- entityType: "EnvironmentAlias";
564
- action: "createWithId";
565
- } & {
566
- params: import("../common-types").GetSpaceEnvAliasParams;
567
- } & {
568
- payload: Pick<import("./environment-alias").EnvironmentAliasProps, "environment">;
569
- } & {
570
- headers?: Record<string, unknown> | undefined;
571
- }): Promise<import("./environment-alias").EnvironmentAliasProps>;
572
- (opts: {
573
- entityType: "EnvironmentAlias";
574
- action: "update";
575
- } & {
576
- params: import("../common-types").GetSpaceEnvAliasParams;
577
- } & {
578
- payload: import("./environment-alias").EnvironmentAliasProps;
579
- } & {
580
- headers?: Record<string, unknown> | undefined;
581
- }): Promise<import("./environment-alias").EnvironmentAliasProps>;
582
- (opts: {
583
- entityType: "EnvironmentAlias";
584
- action: "delete";
585
- } & {
586
- params: import("../common-types").GetSpaceEnvAliasParams;
587
- }): Promise<any>;
588
- (opts: {
589
- entityType: "Entry";
590
- action: "getMany";
591
- } & {
592
- params: import("../common-types").GetSpaceEnvironmentParams & import("../common-types").QueryParams;
593
- }): Promise<import("../common-types").CollectionProp<import("./entry").EntryProps<any>>>;
594
- (opts: {
595
- entityType: "Entry";
596
- action: "get";
597
- } & {
598
- params: import("../common-types").GetSpaceEnvironmentParams & {
599
- entryId: string;
600
- } & import("../common-types").QueryParams;
601
- }): Promise<import("./entry").EntryProps<any>>;
602
- (opts: {
603
- entityType: "Entry";
604
- action: "patch";
605
- } & {
606
- params: import("../common-types").GetSpaceEnvironmentParams & {
607
- entryId: string;
608
- version: number;
609
- };
610
- } & {
611
- payload: import("json-patch").OpPatch[];
612
- } & {
613
- headers?: Record<string, unknown> | undefined;
614
- }): Promise<import("./entry").EntryProps<any>>;
615
- (opts: {
616
- entityType: "Entry";
617
- action: "update";
618
- } & {
619
- params: import("../common-types").GetSpaceEnvironmentParams & {
620
- entryId: string;
621
- };
622
- } & {
623
- payload: import("./entry").EntryProps<any>;
624
- } & {
625
- headers?: Record<string, unknown> | undefined;
626
- }): Promise<import("./entry").EntryProps<any>>;
627
- (opts: {
628
- entityType: "Entry";
629
- action: "delete";
630
- } & {
631
- params: import("../common-types").GetSpaceEnvironmentParams & {
632
- entryId: string;
633
- };
634
- }): Promise<any>;
635
- (opts: {
636
- entityType: "Entry";
637
- action: "publish";
638
- } & {
639
- params: import("../common-types").GetSpaceEnvironmentParams & {
640
- entryId: string;
641
- };
642
- } & {
643
- payload: import("./entry").EntryProps<any>;
644
- }): Promise<import("./entry").EntryProps<any>>;
645
- (opts: {
646
- entityType: "Entry";
647
- action: "unpublish";
648
- } & {
649
- params: import("../common-types").GetSpaceEnvironmentParams & {
650
- entryId: string;
651
- };
652
- }): Promise<import("./entry").EntryProps<any>>;
653
- (opts: {
654
- entityType: "Entry";
655
- action: "archive";
656
- } & {
657
- params: import("../common-types").GetSpaceEnvironmentParams & {
658
- entryId: string;
659
- };
660
- }): Promise<import("./entry").EntryProps<any>>;
661
- (opts: {
662
- entityType: "Entry";
663
- action: "unarchive";
664
- } & {
665
- params: import("../common-types").GetSpaceEnvironmentParams & {
666
- entryId: string;
667
- };
668
- }): Promise<import("./entry").EntryProps<any>>;
669
- (opts: {
670
- entityType: "Entry";
671
- action: "create";
672
- } & {
673
- params: import("../common-types").GetSpaceEnvironmentParams & {
674
- contentTypeId: string;
675
- };
676
- } & {
677
- payload: Pick<import("./entry").EntryProps<any>, "metadata" | "fields">;
678
- }): Promise<import("./entry").EntryProps<any>>;
679
- (opts: {
680
- entityType: "Entry";
681
- action: "createWithId";
682
- } & {
683
- params: import("../common-types").GetSpaceEnvironmentParams & {
684
- entryId: string;
685
- contentTypeId: string;
686
- };
687
- } & {
688
- payload: Pick<import("./entry").EntryProps<any>, "metadata" | "fields">;
689
- }): Promise<import("./entry").EntryProps<any>>;
690
- (opts: {
691
- entityType: "Entry";
692
- action: "references";
693
- } & {
694
- params: import("../common-types").GetSpaceEnvironmentParams & {
695
- entryId: string;
696
- maxDepth?: number | undefined;
697
- };
698
- }): Promise<import("./entry").EntryReferenceProps>;
699
- (opts: {
700
- entityType: "Extension";
701
- action: "get";
702
- } & {
703
- params: import("../common-types").GetSpaceEnvironmentParams & {
704
- extensionId: string;
705
- } & import("../common-types").QueryParams;
706
- }): Promise<import("./extension").ExtensionProps>;
707
- (opts: {
708
- entityType: "Extension";
709
- action: "getMany";
710
- } & {
711
- params: import("../common-types").GetSpaceEnvironmentParams & import("../common-types").QueryParams;
712
- }): Promise<import("../common-types").CollectionProp<import("./extension").ExtensionProps>>;
713
- (opts: {
714
- entityType: "Extension";
715
- action: "create";
716
- } & {
717
- params: import("../common-types").GetSpaceEnvironmentParams;
718
- } & {
719
- payload: import("./extension").CreateExtensionProps;
720
- } & {
721
- headers?: Record<string, unknown> | undefined;
722
- }): Promise<import("./extension").ExtensionProps>;
723
- (opts: {
724
- entityType: "Extension";
725
- action: "createWithId";
726
- } & {
727
- params: import("../common-types").GetExtensionParams;
728
- } & {
729
- payload: import("./extension").CreateExtensionProps;
730
- } & {
731
- headers?: Record<string, unknown> | undefined;
732
- }): Promise<import("./extension").ExtensionProps>;
733
- (opts: {
734
- entityType: "Extension";
735
- action: "update";
736
- } & {
737
- params: import("../common-types").GetExtensionParams;
738
- } & {
739
- payload: import("./extension").ExtensionProps;
740
- } & {
741
- headers?: Record<string, unknown> | undefined;
742
- }): Promise<import("./extension").ExtensionProps>;
743
- (opts: {
744
- entityType: "Extension";
745
- action: "delete";
746
- } & {
747
- params: import("../common-types").GetExtensionParams;
748
- }): Promise<any>;
749
- (opts: {
750
- entityType: "Locale";
751
- action: "get";
752
- } & {
753
- params: import("../common-types").GetSpaceEnvironmentParams & {
754
- localeId: string;
755
- };
756
- }): Promise<import("./locale").LocaleProps>;
757
- (opts: {
758
- entityType: "Locale";
759
- action: "getMany";
760
- } & {
761
- params: import("../common-types").GetSpaceEnvironmentParams & import("../common-types").QueryParams;
762
- }): Promise<import("../common-types").CollectionProp<import("./locale").LocaleProps>>;
763
- (opts: {
764
- entityType: "Locale";
765
- action: "delete";
766
- } & {
767
- params: import("../common-types").GetSpaceEnvironmentParams & {
768
- localeId: string;
769
- };
770
- }): Promise<any>;
771
- (opts: {
772
- entityType: "Locale";
773
- action: "update";
774
- } & {
775
- params: import("../common-types").GetSpaceEnvironmentParams & {
776
- localeId: string;
777
- };
778
- } & {
779
- payload: import("./locale").LocaleProps;
780
- } & {
781
- headers?: Record<string, unknown> | undefined;
782
- }): Promise<import("./locale").LocaleProps>;
783
- (opts: {
784
- entityType: "Locale";
785
- action: "create";
786
- } & {
787
- params: import("../common-types").GetSpaceEnvironmentParams;
788
- } & {
789
- payload: Pick<import("type-fest/source/simplify").Simplify<Pick<Pick<import("./locale").LocaleProps, "optional" | "default" | "code" | "name" | "internal_code" | "fallbackCode" | "contentDeliveryApi" | "contentManagementApi">, "code" | "name" | "internal_code" | "fallbackCode"> & Partial<Pick<Pick<import("./locale").LocaleProps, "optional" | "default" | "code" | "name" | "internal_code" | "fallbackCode" | "contentDeliveryApi" | "contentManagementApi">, "optional" | "default" | "contentDeliveryApi" | "contentManagementApi">>>, "optional" | "default" | "code" | "name" | "fallbackCode" | "contentDeliveryApi" | "contentManagementApi">;
790
- } & {
791
- headers?: Record<string, unknown> | undefined;
792
- }): Promise<import("./locale").LocaleProps>;
793
- (opts: {
794
- entityType: "Organization";
795
- action: "getMany";
796
- }): Promise<import("../common-types").CollectionProp<import("./organization").OrganizationProp>>;
797
- (opts: {
798
- entityType: "Organization";
799
- action: "get";
800
- } & {
801
- params: import("../common-types").GetOrganizationParams;
802
- }): Promise<import("./organization").OrganizationProp>;
803
- (opts: {
804
- entityType: "OrganizationInvitation";
805
- action: "get";
806
- } & {
807
- params: {
808
- organizationId: string;
809
- invitationId: string;
810
- };
811
- } & {
812
- headers?: Record<string, unknown> | undefined;
813
- }): Promise<import("./organization-invitation").OrganizationInvitationProps>;
814
- (opts: {
815
- entityType: "OrganizationInvitation";
816
- action: "create";
817
- } & {
818
- params: {
819
- organizationId: string;
820
- };
821
- } & {
822
- payload: Pick<import("./organization-invitation").OrganizationInvitationProps, "firstName" | "lastName" | "email" | "role">;
823
- } & {
824
- headers?: Record<string, unknown> | undefined;
825
- }): Promise<import("./organization-invitation").OrganizationInvitationProps>;
826
- (opts: {
827
- entityType: "OrganizationMembership";
828
- action: "get";
829
- } & {
830
- params: import("../common-types").GetOrganizationMembershipProps;
831
- }): Promise<import("./organization-membership").OrganizationMembershipProps>;
832
- (opts: {
833
- entityType: "OrganizationMembership";
834
- action: "getMany";
835
- } & {
836
- params: import("../common-types").GetOrganizationParams & import("../common-types").QueryParams;
837
- }): Promise<import("../common-types").CollectionProp<import("./organization-membership").OrganizationMembershipProps>>;
838
- (opts: {
839
- entityType: "OrganizationMembership";
840
- action: "update";
841
- } & {
842
- params: import("../common-types").GetOrganizationMembershipProps;
843
- } & {
844
- payload: import("./organization-membership").OrganizationMembershipProps;
845
- } & {
846
- headers?: Record<string, unknown> | undefined;
847
- }): Promise<import("./organization-membership").OrganizationMembershipProps>;
848
- (opts: {
849
- entityType: "OrganizationMembership";
850
- action: "delete";
851
- } & {
852
- params: import("../common-types").GetOrganizationMembershipProps;
853
- }): Promise<any>;
854
- (opts: {
855
- entityType: "PersonalAccessToken";
856
- action: "get";
857
- } & {
858
- params: {
859
- tokenId: string;
860
- };
861
- }): Promise<import("./personal-access-token").PersonalAccessTokenProp>;
862
- (opts: {
863
- entityType: "PersonalAccessToken";
864
- action: "getMany";
865
- } & {
866
- params: import("../common-types").QueryParams;
867
- }): Promise<import("../common-types").CollectionProp<import("./personal-access-token").PersonalAccessTokenProp>>;
868
- (opts: {
869
- entityType: "PersonalAccessToken";
870
- action: "create";
871
- } & {
872
- params: {};
873
- } & {
874
- payload: Pick<import("./personal-access-token").PersonalAccessToken, "name" | "scopes">;
875
- } & {
876
- headers?: Record<string, unknown> | undefined;
877
- }): Promise<import("./personal-access-token").PersonalAccessTokenProp>;
878
- (opts: {
879
- entityType: "PersonalAccessToken";
880
- action: "revoke";
881
- } & {
882
- params: {
883
- tokenId: string;
884
- };
885
- }): Promise<import("./personal-access-token").PersonalAccessTokenProp>;
886
- (opts: {
887
- entityType: "PreviewApiKey";
888
- action: "get";
889
- } & {
890
- params: import("../common-types").GetSpaceParams & {
891
- previewApiKeyId: string;
892
- };
893
- }): Promise<PreviewApiKeyProps>;
894
- (opts: {
895
- entityType: "PreviewApiKey";
896
- action: "getMany";
897
- } & {
898
- params: import("../common-types").GetSpaceParams & import("../common-types").QueryParams;
899
- }): Promise<import("../common-types").CollectionProp<PreviewApiKeyProps>>;
900
- (opts: {
901
- entityType: "Release";
902
- action: "get";
903
- } & {
904
- params: import("../common-types").GetReleaseParams;
905
- }): Promise<import("./release").ReleaseProps>;
906
- (opts: {
907
- entityType: "Release";
908
- action: "query";
909
- } & {
910
- params: import("../common-types").GetSpaceEnvironmentParams & {
911
- query?: import("./release").ReleaseQueryOptions | undefined;
912
- };
913
- }): Promise<import("../common-types").CollectionProp<import("./release").ReleaseProps>>;
914
- (opts: {
915
- entityType: "Release";
916
- action: "create";
917
- } & {
918
- params: import("../common-types").GetSpaceEnvironmentParams;
919
- } & {
920
- payload: import("./release").ReleasePayload;
921
- }): Promise<import("./release").ReleaseProps>;
922
- (opts: {
923
- entityType: "Release";
924
- action: "update";
925
- } & {
926
- params: import("../common-types").GetSpaceEnvironmentParams & {
927
- releaseId: string;
928
- } & {
929
- version: number;
930
- };
931
- } & {
932
- payload: import("./release").ReleasePayload;
933
- }): Promise<import("./release").ReleaseProps>;
934
- (opts: {
935
- entityType: "Release";
936
- action: "delete";
937
- } & {
938
- params: import("../common-types").GetReleaseParams;
939
- }): Promise<void>;
940
- (opts: {
941
- entityType: "Release";
942
- action: "publish";
943
- } & {
944
- params: import("../common-types").GetSpaceEnvironmentParams & {
945
- releaseId: string;
946
- } & {
947
- version: number;
948
- };
949
- }): Promise<import("./release-action").ReleaseActionProps<"publish">>;
950
- (opts: {
951
- entityType: "Release";
952
- action: "unpublish";
953
- } & {
954
- params: import("../common-types").GetSpaceEnvironmentParams & {
955
- releaseId: string;
956
- } & {
957
- version: number;
958
- };
959
- }): Promise<import("./release-action").ReleaseActionProps<"unpublish">>;
960
- (opts: {
961
- entityType: "Release";
962
- action: "validate";
963
- } & {
964
- params: import("../common-types").GetReleaseParams;
965
- } & {
966
- payload?: import("./release").ReleaseValidatePayload | undefined;
967
- }): Promise<import("./release-action").ReleaseActionProps<"validate">>;
968
- (opts: {
969
- entityType: "ReleaseAction";
970
- action: "get";
971
- } & {
972
- params: import("../common-types").GetSpaceEnvironmentParams & {
973
- releaseId: string;
974
- } & {
975
- actionId: string;
976
- };
977
- }): Promise<import("./release-action").ReleaseAction<any>>;
978
- (opts: {
979
- entityType: "ReleaseAction";
980
- action: "queryForRelease";
981
- } & {
982
- params: import("../common-types").GetSpaceEnvironmentParams & {
983
- releaseId: string;
984
- } & {
985
- query?: import("./release-action").ReleaseActionQueryOptions | undefined;
986
- };
987
- }): Promise<import("../common-types").Collection<import("./release-action").ReleaseAction<any>, import("./release-action").ReleaseActionProps<any>>>;
988
- (opts: {
989
- entityType: "Role";
990
- action: "get";
991
- } & {
992
- params: import("../common-types").GetSpaceParams & {
993
- roleId: string;
994
- };
995
- }): Promise<import("./role").RoleProps>;
996
- (opts: {
997
- entityType: "Role";
998
- action: "getMany";
999
- } & {
1000
- params: import("../common-types").GetSpaceParams & import("../common-types").QueryParams;
1001
- }): Promise<import("../common-types").CollectionProp<import("./role").RoleProps>>;
1002
- (opts: {
1003
- entityType: "Role";
1004
- action: "create";
1005
- } & {
1006
- params: import("../common-types").GetSpaceParams;
1007
- } & {
1008
- payload: Pick<import("./role").RoleProps, "description" | "name" | "permissions" | "policies">;
1009
- } & {
1010
- headers?: Record<string, unknown> | undefined;
1011
- }): Promise<import("./role").RoleProps>;
1012
- (opts: {
1013
- entityType: "Role";
1014
- action: "createWithId";
1015
- } & {
1016
- params: import("../common-types").GetSpaceParams & {
1017
- roleId: string;
1018
- };
1019
- } & {
1020
- payload: Pick<import("./role").RoleProps, "description" | "name" | "permissions" | "policies">;
1021
- } & {
1022
- headers?: Record<string, unknown> | undefined;
1023
- }): Promise<import("./role").RoleProps>;
1024
- (opts: {
1025
- entityType: "Role";
1026
- action: "update";
1027
- } & {
1028
- params: import("../common-types").GetSpaceParams & {
1029
- roleId: string;
1030
- };
1031
- } & {
1032
- payload: import("./role").RoleProps;
1033
- } & {
1034
- headers?: Record<string, unknown> | undefined;
1035
- }): Promise<import("./role").RoleProps>;
1036
- (opts: {
1037
- entityType: "Role";
1038
- action: "delete";
1039
- } & {
1040
- params: import("../common-types").GetSpaceParams & {
1041
- roleId: string;
1042
- };
1043
- }): Promise<any>;
1044
- (opts: {
1045
- entityType: "ScheduledAction";
1046
- action: "get";
1047
- } & {
1048
- params: import("../common-types").GetSpaceParams & {
1049
- scheduledActionId: string;
1050
- environmentId: string;
1051
- };
1052
- }): Promise<import("./scheduled-action").ScheduledActionProps>;
1053
- (opts: {
1054
- entityType: "ScheduledAction";
1055
- action: "getMany";
1056
- } & {
1057
- params: import("../common-types").GetSpaceParams & import("../common-types").QueryParams;
1058
- }): Promise<import("../common-types").CollectionProp<import("./scheduled-action").ScheduledActionProps>>;
1059
- (opts: {
1060
- entityType: "ScheduledAction";
1061
- action: "create";
1062
- } & {
1063
- params: import("../common-types").GetSpaceParams;
1064
- } & {
1065
- payload: Pick<import("./scheduled-action").ScheduledActionProps, "environment" | "error" | "action" | "entity" | "scheduledFor">;
1066
- }): Promise<import("./scheduled-action").ScheduledActionProps>;
1067
- (opts: {
1068
- entityType: "ScheduledAction";
1069
- action: "update";
1070
- } & {
1071
- params: import("../common-types").GetSpaceParams & {
1072
- scheduledActionId: string;
1073
- version: number;
1074
- };
1075
- } & {
1076
- payload: Pick<import("./scheduled-action").ScheduledActionProps, "environment" | "error" | "action" | "entity" | "scheduledFor">;
1077
- }): Promise<import("./scheduled-action").ScheduledActionProps>;
1078
- (opts: {
1079
- entityType: "ScheduledAction";
1080
- action: "delete";
1081
- } & {
1082
- params: import("../common-types").GetSpaceEnvironmentParams & {
1083
- scheduledActionId: string;
1084
- };
1085
- }): Promise<any>;
1086
- (opts: {
1087
- entityType: "Snapshot";
1088
- action: "getManyForEntry";
1089
- } & {
1090
- params: import("../common-types").GetSpaceEnvironmentParams & {
1091
- entryId: string;
1092
- } & import("../common-types").QueryParams;
1093
- }): Promise<import("../common-types").CollectionProp<import("./snapshot").SnapshotProps<import("./entry").EntryProps<any>>>>;
1094
- (opts: {
1095
- entityType: "Snapshot";
1096
- action: "getForEntry";
1097
- } & {
1098
- params: import("../common-types").GetSpaceEnvironmentParams & {
1099
- entryId: string;
1100
- } & {
1101
- snapshotId: string;
1102
- };
1103
- }): Promise<import("./snapshot").SnapshotProps<import("./entry").EntryProps<any>>>;
1104
- (opts: {
1105
- entityType: "Snapshot";
1106
- action: "getManyForContentType";
1107
- } & {
1108
- params: import("../common-types").GetSpaceEnvironmentParams & {
1109
- contentTypeId: string;
1110
- } & import("../common-types").QueryParams;
1111
- }): Promise<import("../common-types").CollectionProp<import("./snapshot").SnapshotProps<import("./content-type").ContentTypeProps>>>;
1112
- (opts: {
1113
- entityType: "Snapshot";
1114
- action: "getForContentType";
1115
- } & {
1116
- params: import("../common-types").GetSpaceEnvironmentParams & {
1117
- contentTypeId: string;
1118
- } & {
1119
- snapshotId: string;
1120
- };
1121
- }): Promise<import("./snapshot").SnapshotProps<import("./content-type").ContentTypeProps>>;
1122
- (opts: {
1123
- entityType: "Space";
1124
- action: "get";
1125
- } & {
1126
- params: import("../common-types").GetSpaceParams;
1127
- }): Promise<import("./space").SpaceProps>;
1128
- (opts: {
1129
- entityType: "Space";
1130
- action: "getMany";
1131
- } & {
1132
- params: import("../common-types").QueryParams;
1133
- }): Promise<import("../common-types").CollectionProp<import("./space").SpaceProps>>;
1134
- (opts: {
1135
- entityType: "Space";
1136
- action: "create";
1137
- } & {
1138
- params: {
1139
- organizationId?: string | undefined;
1140
- };
1141
- } & {
1142
- payload: Pick<import("./space").SpaceProps, "name">;
1143
- } & {
1144
- headers?: Record<string, unknown> | undefined;
1145
- }): Promise<any>;
1146
- (opts: {
1147
- entityType: "Space";
1148
- action: "update";
1149
- } & {
1150
- params: import("../common-types").GetSpaceParams;
1151
- } & {
1152
- payload: import("./space").SpaceProps;
1153
- } & {
1154
- headers?: Record<string, unknown> | undefined;
1155
- }): Promise<import("./space").SpaceProps>;
1156
- (opts: {
1157
- entityType: "Space";
1158
- action: "delete";
1159
- } & {
1160
- params: import("../common-types").GetSpaceParams;
1161
- }): Promise<void>;
1162
- (opts: {
1163
- entityType: "SpaceMember";
1164
- action: "get";
1165
- } & {
1166
- params: import("../common-types").GetSpaceParams & {
1167
- spaceMemberId: string;
1168
- };
1169
- }): Promise<import("./space-member").SpaceMemberProps>;
1170
- (opts: {
1171
- entityType: "SpaceMember";
1172
- action: "getMany";
1173
- } & {
1174
- params: import("../common-types").GetSpaceParams & import("../common-types").QueryParams;
1175
- }): Promise<import("../common-types").CollectionProp<import("./space-member").SpaceMemberProps>>;
1176
- (opts: {
1177
- entityType: "SpaceMembership";
1178
- action: "get";
1179
- } & {
1180
- params: import("../common-types").GetSpaceMembershipProps;
1181
- }): Promise<import("./space-membership").SpaceMembershipProps>;
1182
- (opts: {
1183
- entityType: "SpaceMembership";
1184
- action: "getMany";
1185
- } & {
1186
- params: import("../common-types").GetSpaceParams & import("../common-types").QueryParams;
1187
- }): Promise<import("../common-types").CollectionProp<import("./space-membership").SpaceMembershipProps>>;
1188
- (opts: {
1189
- entityType: "SpaceMembership";
1190
- action: "getForOrganization";
1191
- } & {
1192
- params: import("../common-types").GetOrganizationParams & {
1193
- spaceMembershipId: string;
1194
- };
1195
- }): Promise<import("./space-membership").SpaceMembershipProps>;
1196
- (opts: {
1197
- entityType: "SpaceMembership";
1198
- action: "getManyForOrganization";
1199
- } & {
1200
- params: import("../common-types").GetOrganizationParams & import("../common-types").QueryParams;
1201
- }): Promise<import("../common-types").CollectionProp<import("./space-membership").SpaceMembershipProps>>;
1202
- (opts: {
1203
- entityType: "SpaceMembership";
1204
- action: "create";
1205
- } & {
1206
- params: import("../common-types").GetSpaceParams;
1207
- } & {
1208
- payload: import("./space-membership").CreateSpaceMembershipProps;
1209
- } & {
1210
- headers?: Record<string, unknown> | undefined;
1211
- }): Promise<import("./space-membership").SpaceMembershipProps>;
1212
- (opts: {
1213
- entityType: "SpaceMembership";
1214
- action: "createWithId";
1215
- } & {
1216
- params: import("../common-types").GetSpaceMembershipProps;
1217
- } & {
1218
- payload: import("./space-membership").CreateSpaceMembershipProps;
1219
- } & {
1220
- headers?: Record<string, unknown> | undefined;
1221
- }): Promise<import("./space-membership").SpaceMembershipProps>;
1222
- (opts: {
1223
- entityType: "SpaceMembership";
1224
- action: "update";
1225
- } & {
1226
- params: import("../common-types").GetSpaceMembershipProps;
1227
- } & {
1228
- payload: import("./space-membership").SpaceMembershipProps;
1229
- } & {
1230
- headers?: Record<string, unknown> | undefined;
1231
- }): Promise<import("./space-membership").SpaceMembershipProps>;
1232
- (opts: {
1233
- entityType: "SpaceMembership";
1234
- action: "delete";
1235
- } & {
1236
- params: import("../common-types").GetSpaceMembershipProps;
1237
- }): Promise<any>;
1238
- (opts: {
1239
- entityType: "Tag";
1240
- action: "get";
1241
- } & {
1242
- params: import("../common-types").GetTagParams;
1243
- }): Promise<import("./tag").TagProps>;
1244
- (opts: {
1245
- entityType: "Tag";
1246
- action: "getMany";
1247
- } & {
1248
- params: import("../common-types").GetSpaceEnvironmentParams & import("../common-types").QueryParams;
1249
- }): Promise<import("../common-types").CollectionProp<import("./tag").TagProps>>;
1250
- (opts: {
1251
- entityType: "Tag";
1252
- action: "createWithId";
1253
- } & {
1254
- params: import("../common-types").GetTagParams;
1255
- } & {
1256
- payload: import("./tag").CreateTagProps;
1257
- }): Promise<import("./tag").TagProps>;
1258
- (opts: {
1259
- entityType: "Tag";
1260
- action: "update";
1261
- } & {
1262
- params: import("../common-types").GetTagParams;
1263
- } & {
1264
- payload: import("./tag").UpdateTagProps;
1265
- } & {
1266
- headers?: Record<string, unknown> | undefined;
1267
- }): Promise<import("./tag").TagProps>;
1268
- (opts: {
1269
- entityType: "Tag";
1270
- action: "delete";
1271
- } & {
1272
- params: import("./tag").DeleteTagParams;
1273
- }): Promise<any>;
1274
- (opts: {
1275
- entityType: "Task";
1276
- action: "get";
1277
- } & {
1278
- params: import("../common-types").GetTaskParams;
1279
- }): Promise<import("./task").TaskProps>;
1280
- (opts: {
1281
- entityType: "Task";
1282
- action: "getAll";
1283
- } & {
1284
- params: import("../common-types").GetEntryParams;
1285
- }): Promise<import("../common-types").CollectionProp<import("./task").TaskProps>>;
1286
- (opts: {
1287
- entityType: "Task";
1288
- action: "create";
1289
- } & {
1290
- params: import("../common-types").GetEntryParams;
1291
- } & {
1292
- payload: Pick<import("./task").TaskProps, "body" | "assignedTo" | "status" | "dueDate">;
1293
- }): Promise<import("./task").TaskProps>;
1294
- (opts: {
1295
- entityType: "Task";
1296
- action: "update";
1297
- } & {
1298
- params: import("../common-types").GetTaskParams;
1299
- } & {
1300
- payload: import("./task").UpdateTaskProps;
1301
- } & {
1302
- headers?: Record<string, unknown> | undefined;
1303
- }): Promise<import("./task").TaskProps>;
1304
- (opts: {
1305
- entityType: "Task";
1306
- action: "delete";
1307
- } & {
1308
- params: import("./task").DeleteTaskParams;
1309
- }): Promise<void>;
1310
- (opts: {
1311
- entityType: "Team";
1312
- action: "get";
1313
- } & {
1314
- params: import("../common-types").GetTeamParams;
1315
- }): Promise<import("./team").TeamProps>;
1316
- (opts: {
1317
- entityType: "Team";
1318
- action: "getMany";
1319
- } & {
1320
- params: import("../common-types").GetOrganizationParams & import("../common-types").QueryParams;
1321
- }): Promise<import("../common-types").CollectionProp<import("./team").TeamProps>>;
1322
- (opts: {
1323
- entityType: "Team";
1324
- action: "getManyForSpace";
1325
- } & {
1326
- params: import("../common-types").GetSpaceParams & import("../common-types").QueryParams;
1327
- }): Promise<import("../common-types").CollectionProp<import("./team").TeamProps>>;
1328
- (opts: {
1329
- entityType: "Team";
1330
- action: "create";
1331
- } & {
1332
- params: import("../common-types").GetOrganizationParams;
1333
- } & {
1334
- payload: Pick<import("./team").TeamProps, "description" | "name">;
1335
- } & {
1336
- headers?: Record<string, unknown> | undefined;
1337
- }): Promise<any>;
1338
- (opts: {
1339
- entityType: "Team";
1340
- action: "update";
1341
- } & {
1342
- params: import("../common-types").GetTeamParams;
1343
- } & {
1344
- payload: import("./team").TeamProps;
1345
- } & {
1346
- headers?: Record<string, unknown> | undefined;
1347
- }): Promise<import("./team").TeamProps>;
1348
- (opts: {
1349
- entityType: "Team";
1350
- action: "delete";
1351
- } & {
1352
- params: import("../common-types").GetTeamParams;
1353
- }): Promise<any>;
1354
- (opts: {
1355
- entityType: "TeamMembership";
1356
- action: "get";
1357
- } & {
1358
- params: import("../common-types").GetTeamMembershipParams;
1359
- }): Promise<import("./team-membership").TeamMembershipProps>;
1360
- (opts: {
1361
- entityType: "TeamMembership";
1362
- action: "getManyForOrganization";
1363
- } & {
1364
- params: import("../common-types").GetOrganizationParams & import("../common-types").QueryParams;
1365
- }): Promise<import("../common-types").CollectionProp<import("./team-membership").TeamMembershipProps>>;
1366
- (opts: {
1367
- entityType: "TeamMembership";
1368
- action: "getManyForTeam";
1369
- } & {
1370
- params: import("../common-types").GetTeamParams & import("../common-types").QueryParams;
1371
- }): Promise<import("../common-types").CollectionProp<import("./team-membership").TeamMembershipProps>>;
1372
- (opts: {
1373
- entityType: "TeamMembership";
1374
- action: "create";
1375
- } & {
1376
- params: import("../common-types").GetTeamParams;
1377
- } & {
1378
- payload: Pick<import("./team-membership").TeamMembershipProps, "admin" | "organizationMembershipId">;
1379
- } & {
1380
- headers?: Record<string, unknown> | undefined;
1381
- }): Promise<import("./team-membership").TeamMembershipProps>;
1382
- (opts: {
1383
- entityType: "TeamMembership";
1384
- action: "update";
1385
- } & {
1386
- params: import("../common-types").GetTeamMembershipParams;
1387
- } & {
1388
- payload: import("./team-membership").TeamMembershipProps;
1389
- } & {
1390
- headers?: Record<string, unknown> | undefined;
1391
- }): Promise<import("./team-membership").TeamMembershipProps>;
1392
- (opts: {
1393
- entityType: "TeamMembership";
1394
- action: "delete";
1395
- } & {
1396
- params: import("../common-types").GetTeamMembershipParams;
1397
- }): Promise<any>;
1398
- (opts: {
1399
- entityType: "TeamSpaceMembership";
1400
- action: "get";
1401
- } & {
1402
- params: import("../common-types").GetTeamSpaceMembershipParams;
1403
- }): Promise<import("./team-space-membership").TeamSpaceMembershipProps>;
1404
- (opts: {
1405
- entityType: "TeamSpaceMembership";
1406
- action: "getMany";
1407
- } & {
1408
- params: import("../common-types").GetSpaceParams & import("../common-types").QueryParams;
1409
- }): Promise<import("../common-types").CollectionProp<import("./team-space-membership").TeamSpaceMembershipProps>>;
1410
- (opts: {
1411
- entityType: "TeamSpaceMembership";
1412
- action: "getForOrganization";
1413
- } & {
1414
- params: import("../common-types").GetOrganizationParams & {
1415
- teamSpaceMembershipId: string;
1416
- };
1417
- }): Promise<import("./team-space-membership").TeamSpaceMembershipProps>;
1418
- (opts: {
1419
- entityType: "TeamSpaceMembership";
1420
- action: "getManyForOrganization";
1421
- } & {
1422
- params: import("../common-types").GetOrganizationParams & import("../common-types").QueryParams & {
1423
- teamId?: string | undefined;
1424
- };
1425
- }): Promise<import("../common-types").CollectionProp<import("./team-space-membership").TeamSpaceMembershipProps>>;
1426
- (opts: {
1427
- entityType: "TeamSpaceMembership";
1428
- action: "create";
1429
- } & {
1430
- params: import("../common-types").GetSpaceParams & {
1431
- teamId: string;
1432
- };
1433
- } & {
1434
- payload: Pick<import("./team-space-membership").TeamSpaceMembershipProps, "admin" | "roles">;
1435
- } & {
1436
- headers?: Record<string, unknown> | undefined;
1437
- }): Promise<import("./team-space-membership").TeamSpaceMembershipProps>;
1438
- (opts: {
1439
- entityType: "TeamSpaceMembership";
1440
- action: "update";
1441
- } & {
1442
- params: import("../common-types").GetTeamSpaceMembershipParams;
1443
- } & {
1444
- payload: import("./team-space-membership").TeamSpaceMembershipProps;
1445
- } & {
1446
- headers?: Record<string, unknown> | undefined;
1447
- }): Promise<import("./team-space-membership").TeamSpaceMembershipProps>;
1448
- (opts: {
1449
- entityType: "TeamSpaceMembership";
1450
- action: "delete";
1451
- } & {
1452
- params: import("../common-types").GetTeamSpaceMembershipParams;
1453
- }): Promise<any>;
1454
- (opts: {
1455
- entityType: "Upload";
1456
- action: "get";
1457
- } & {
1458
- params: import("../common-types").GetSpaceParams & {
1459
- uploadId: string;
1460
- };
1461
- }): Promise<import("./entry").EntryProps<any>>;
1462
- (opts: {
1463
- entityType: "Upload";
1464
- action: "create";
1465
- } & {
1466
- params: import("../common-types").GetSpaceParams;
1467
- } & {
1468
- payload: {
1469
- file: string | ArrayBuffer | import("stream").Stream;
1470
- };
1471
- }): Promise<import("./entry").EntryProps<any>>;
1472
- (opts: {
1473
- entityType: "Upload";
1474
- action: "delete";
1475
- } & {
1476
- params: import("../common-types").GetSpaceParams & {
1477
- uploadId: string;
1478
- };
1479
- }): Promise<any>;
1480
- (opts: {
1481
- entityType: "Usage";
1482
- action: "getManyForSpace";
1483
- } & {
1484
- params: {
1485
- organizationId: string;
1486
- } & import("../common-types").QueryParams;
1487
- }): Promise<import("../common-types").CollectionProp<import("./usage").UsageProps>>;
1488
- (opts: {
1489
- entityType: "Usage";
1490
- action: "getManyForOrganization";
1491
- } & {
1492
- params: {
1493
- organizationId: string;
1494
- } & import("../common-types").QueryParams;
1495
- }): Promise<import("../common-types").CollectionProp<import("./usage").UsageProps>>;
1496
- (opts: {
1497
- entityType: "User";
1498
- action: "getManyForSpace";
1499
- } & {
1500
- params: import("../common-types").GetSpaceParams & import("../common-types").QueryParams;
1501
- }): Promise<import("../common-types").CollectionProp<import("./user").UserProps>>;
1502
- (opts: {
1503
- entityType: "User";
1504
- action: "getForSpace";
1505
- } & {
1506
- params: import("../common-types").GetSpaceParams & {
1507
- userId: string;
1508
- };
1509
- }): Promise<import("./user").UserProps>;
1510
- (opts: {
1511
- entityType: "User";
1512
- action: "getCurrent";
1513
- } & {
1514
- params?: import("../common-types").QueryParams | undefined;
1515
- }): Promise<any>;
1516
- (opts: {
1517
- entityType: "User";
1518
- action: "getForOrganization";
1519
- } & {
1520
- params: import("../common-types").GetOrganizationParams & {
1521
- userId: string;
1522
- };
1523
- }): Promise<import("./user").UserProps>;
1524
- (opts: {
1525
- entityType: "User";
1526
- action: "getManyForOrganization";
1527
- } & {
1528
- params: import("../common-types").GetOrganizationParams & import("../common-types").QueryParams;
1529
- }): Promise<import("../common-types").CollectionProp<import("./user").UserProps>>;
1530
- (opts: {
1531
- entityType: "Webhook";
1532
- action: "get";
1533
- } & {
1534
- params: import("../common-types").GetWebhookParams;
1535
- }): Promise<import("./webhook").WebhookProps>;
1536
- (opts: {
1537
- entityType: "Webhook";
1538
- action: "getMany";
1539
- } & {
1540
- params: import("../common-types").GetSpaceParams & import("../common-types").QueryParams;
1541
- }): Promise<import("../common-types").CollectionProp<import("./webhook").WebhookProps>>;
1542
- (opts: {
1543
- entityType: "Webhook";
1544
- action: "getCallDetails";
1545
- } & {
1546
- params: import("../common-types").GetWebhookCallDetailsUrl;
1547
- }): Promise<import("./webhook").WebhookCallDetailsProps>;
1548
- (opts: {
1549
- entityType: "Webhook";
1550
- action: "getHealthStatus";
1551
- } & {
1552
- params: import("../common-types").GetWebhookParams;
1553
- }): Promise<import("./webhook").WebhookHealthProps>;
1554
- (opts: {
1555
- entityType: "Webhook";
1556
- action: "getManyCallDetails";
1557
- } & {
1558
- params: import("../common-types").GetSpaceParams & {
1559
- webhookDefinitionId: string;
1560
- } & import("../common-types").QueryParams;
1561
- }): Promise<import("../common-types").CollectionProp<Pick<import("./webhook").WebhookCallDetailsProps, "sys" | "statusCode" | "errors" | "eventType" | "url" | "requestAt" | "responseAt">>>;
1562
- (opts: {
1563
- entityType: "Webhook";
1564
- action: "create";
1565
- } & {
1566
- params: import("../common-types").GetSpaceParams;
1567
- } & {
1568
- payload: import("type-fest/source/simplify").Simplify<Pick<Pick<import("./webhook").WebhookProps, "headers" | "name" | "url" | "topics" | "httpBasicUsername" | "httpBasicPassword" | "filters" | "transformation">, "name" | "url" | "topics" | "httpBasicUsername" | "httpBasicPassword" | "filters" | "transformation"> & Partial<Pick<Pick<import("./webhook").WebhookProps, "headers" | "name" | "url" | "topics" | "httpBasicUsername" | "httpBasicPassword" | "filters" | "transformation">, "headers">>>;
1569
- } & {
1570
- headers?: Record<string, unknown> | undefined;
1571
- }): Promise<import("./webhook").WebhookProps>;
1572
- (opts: {
1573
- entityType: "Webhook";
1574
- action: "createWithId";
1575
- } & {
1576
- params: import("../common-types").GetWebhookParams;
1577
- } & {
1578
- payload: import("type-fest/source/simplify").Simplify<Pick<Pick<import("./webhook").WebhookProps, "headers" | "name" | "url" | "topics" | "httpBasicUsername" | "httpBasicPassword" | "filters" | "transformation">, "name" | "url" | "topics" | "httpBasicUsername" | "httpBasicPassword" | "filters" | "transformation"> & Partial<Pick<Pick<import("./webhook").WebhookProps, "headers" | "name" | "url" | "topics" | "httpBasicUsername" | "httpBasicPassword" | "filters" | "transformation">, "headers">>>;
1579
- } & {
1580
- headers?: Record<string, unknown> | undefined;
1581
- }): Promise<import("./webhook").WebhookProps>;
1582
- (opts: {
1583
- entityType: "Webhook";
1584
- action: "update";
1585
- } & {
1586
- params: import("../common-types").GetWebhookParams;
1587
- } & {
1588
- payload: import("./webhook").WebhookProps;
1589
- }): Promise<import("./webhook").WebhookProps>;
1590
- (opts: {
1591
- entityType: "Webhook";
1592
- action: "delete";
1593
- } & {
1594
- params: import("../common-types").GetWebhookParams;
1595
- }): Promise<void>;
1596
- }, data: import("../common-types").CollectionProp<PreviewApiKeyProps>) => import("../common-types").Collection<PreviewApiKey, PreviewApiKeyProps>;
19
+ export declare const wrapPreviewApiKeyCollection: (makeRequest: MakeRequest, data: import("../common-types").CollectionProp<PreviewApiKeyProps>) => import("../common-types").Collection<PreviewApiKey, PreviewApiKeyProps>;