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