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