contentful-management 7.44.2 → 7.45.3

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