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