contentful-management 7.44.2 → 7.45.3

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