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