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