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