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