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