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