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