@globus/sdk 5.1.2 → 5.2.0

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 (83) hide show
  1. package/dist/cjs/core/authorization/index.js +5 -2
  2. package/dist/cjs/core/authorization/index.js.map +2 -2
  3. package/dist/cjs/core/info/index.js +1 -1
  4. package/dist/cjs/core/info/index.js.map +1 -1
  5. package/dist/cjs/index.js +144 -81
  6. package/dist/cjs/index.js.map +4 -4
  7. package/dist/cjs/services/globus-connect-server/client.js +191 -198
  8. package/dist/cjs/services/globus-connect-server/client.js.map +4 -4
  9. package/dist/esm/core/info/version.d.ts +1 -1
  10. package/dist/esm/core/info/version.js +1 -1
  11. package/dist/esm/core/url.d.ts +2 -2
  12. package/dist/esm/core/url.d.ts.map +1 -1
  13. package/dist/esm/core/url.js.map +1 -1
  14. package/dist/esm/package.json +1 -1
  15. package/dist/esm/services/auth/config.d.ts.map +1 -1
  16. package/dist/esm/services/auth/index.d.ts +1 -1
  17. package/dist/esm/services/auth/index.d.ts.map +1 -1
  18. package/dist/esm/services/auth/index.js +1 -1
  19. package/dist/esm/services/auth/index.js.map +1 -1
  20. package/dist/esm/services/auth/service/identities/consents.d.ts +26 -0
  21. package/dist/esm/services/auth/service/identities/consents.d.ts.map +1 -0
  22. package/dist/esm/services/auth/service/identities/consents.js +10 -0
  23. package/dist/esm/services/auth/service/identities/consents.js.map +1 -0
  24. package/dist/esm/services/auth/service/{identities.d.ts → identities/index.d.ts} +6 -5
  25. package/dist/esm/services/auth/service/identities/index.d.ts.map +1 -0
  26. package/dist/esm/services/auth/service/{identities.js → identities/index.js} +4 -3
  27. package/dist/esm/services/auth/service/identities/index.js.map +1 -0
  28. package/dist/esm/services/compute/config.d.ts.map +1 -1
  29. package/dist/esm/services/flows/config.d.ts.map +1 -1
  30. package/dist/esm/services/globus-connect-server/client.d.ts +1 -7
  31. package/dist/esm/services/globus-connect-server/client.d.ts.map +1 -1
  32. package/dist/esm/services/globus-connect-server/index.d.ts +17 -4
  33. package/dist/esm/services/globus-connect-server/index.d.ts.map +1 -1
  34. package/dist/esm/services/globus-connect-server/index.js +16 -2
  35. package/dist/esm/services/globus-connect-server/index.js.map +1 -1
  36. package/dist/esm/services/globus-connect-server/service/collections.d.ts +8 -8
  37. package/dist/esm/services/globus-connect-server/service/collections.d.ts.map +1 -1
  38. package/dist/esm/services/globus-connect-server/service/collections.js +8 -9
  39. package/dist/esm/services/globus-connect-server/service/collections.js.map +1 -1
  40. package/dist/esm/services/globus-connect-server/service/endpoint.d.ts +7 -7
  41. package/dist/esm/services/globus-connect-server/service/endpoint.d.ts.map +1 -1
  42. package/dist/esm/services/globus-connect-server/service/endpoint.js +7 -8
  43. package/dist/esm/services/globus-connect-server/service/endpoint.js.map +1 -1
  44. package/dist/esm/services/globus-connect-server/service/https.d.ts.map +1 -1
  45. package/dist/esm/services/globus-connect-server/service/https.js +3 -4
  46. package/dist/esm/services/globus-connect-server/service/https.js.map +1 -1
  47. package/dist/esm/services/globus-connect-server/service/nodes.d.ts +6 -6
  48. package/dist/esm/services/globus-connect-server/service/nodes.d.ts.map +1 -1
  49. package/dist/esm/services/globus-connect-server/service/nodes.js +6 -7
  50. package/dist/esm/services/globus-connect-server/service/nodes.js.map +1 -1
  51. package/dist/esm/services/globus-connect-server/service/roles.d.ts +4 -4
  52. package/dist/esm/services/globus-connect-server/service/roles.d.ts.map +1 -1
  53. package/dist/esm/services/globus-connect-server/service/roles.js +4 -5
  54. package/dist/esm/services/globus-connect-server/service/roles.js.map +1 -1
  55. package/dist/esm/services/globus-connect-server/service/storage-gateways.d.ts +6 -6
  56. package/dist/esm/services/globus-connect-server/service/storage-gateways.d.ts.map +1 -1
  57. package/dist/esm/services/globus-connect-server/service/storage-gateways.js +6 -7
  58. package/dist/esm/services/globus-connect-server/service/storage-gateways.js.map +1 -1
  59. package/dist/esm/services/globus-connect-server/service/user-credentials.d.ts +6 -6
  60. package/dist/esm/services/globus-connect-server/service/user-credentials.d.ts.map +1 -1
  61. package/dist/esm/services/globus-connect-server/service/user-credentials.js +6 -7
  62. package/dist/esm/services/globus-connect-server/service/user-credentials.js.map +1 -1
  63. package/dist/esm/services/globus-connect-server/service/versioning.d.ts +2 -2
  64. package/dist/esm/services/globus-connect-server/service/versioning.d.ts.map +1 -1
  65. package/dist/esm/services/globus-connect-server/service/versioning.js +1 -3
  66. package/dist/esm/services/globus-connect-server/service/versioning.js.map +1 -1
  67. package/dist/esm/services/globus-connect-server/utils.d.ts +11 -0
  68. package/dist/esm/services/globus-connect-server/utils.d.ts.map +1 -0
  69. package/dist/esm/services/globus-connect-server/utils.js +60 -0
  70. package/dist/esm/services/globus-connect-server/utils.js.map +1 -0
  71. package/dist/esm/services/groups/config.d.ts.map +1 -1
  72. package/dist/esm/services/search/config.d.ts.map +1 -1
  73. package/dist/esm/services/shared.d.ts +2 -2
  74. package/dist/esm/services/shared.d.ts.map +1 -1
  75. package/dist/esm/services/shared.js +9 -1
  76. package/dist/esm/services/shared.js.map +1 -1
  77. package/dist/esm/services/timer/config.d.ts.map +1 -1
  78. package/dist/esm/services/transfer/config.d.ts.map +1 -1
  79. package/dist/umd/globus.production.js +2 -2
  80. package/dist/umd/globus.production.js.map +4 -4
  81. package/package.json +2 -2
  82. package/dist/esm/services/auth/service/identities.d.ts.map +0 -1
  83. package/dist/esm/services/auth/service/identities.js.map +0 -1
@@ -52,7 +52,7 @@ function toString(info2) {
52
52
  }
53
53
 
54
54
  // src/core/info/version.ts
55
- var VERSION = "5.1.2";
55
+ var VERSION = "5.2.0";
56
56
 
57
57
  // src/core/info/index.ts
58
58
  var VERSION2 = VERSION;
@@ -335,7 +335,10 @@ async function serviceRequest(config, options, passedSdkOptions) {
335
335
  headers["Authorization"] = `Bearer ${token.access_token}`;
336
336
  }
337
337
  }
338
- if (config.scope && manager) {
338
+ if (config.scope && manager && /**
339
+ * Only attempt to get a token if the `service` property is a string or has an `endpoint_id` property (GCSConfiguration).
340
+ */
341
+ (typeof config.service === "string" || "endpoint_id" in config.service)) {
339
342
  const resourceServer = typeof config.service === "string" ? RESOURCE_SERVERS[config.service] : (
340
343
  // For `GCSConfiguration` objects, the `endpoint_id` is the resource server.
341
344
  config.service.endpoint_id
@@ -411,84 +414,95 @@ async function serviceRequest(config, options, passedSdkOptions) {
411
414
  return initialResponse;
412
415
  }
413
416
 
414
- // src/services/globus-connect-server/service/endpoint.ts
415
- var get = function(configuration, options, sdkOptions) {
417
+ // src/services/globus-connect-server/service/collections.ts
418
+ var getAll = function(configuration, options, sdkOptions) {
416
419
  return serviceRequest(
417
420
  {
418
421
  service: configuration,
419
- scope: getRequiredScopes(configuration),
420
- path: `/api/endpoint`
422
+ resource_server: configuration.endpoint_id,
423
+ path: `/api/collections`
421
424
  },
422
425
  options,
423
426
  sdkOptions
424
427
  );
425
428
  };
426
- var update = function(configuration, options, sdkOptions) {
429
+ var get = function(configuration, collection_id, options, sdkOptions) {
427
430
  return serviceRequest(
428
431
  {
429
432
  service: configuration,
430
- scope: getRequiredScopes(configuration),
431
- path: `/api/endpoint`,
432
- method: "PUT" /* PUT */
433
+ resource_server: configuration.endpoint_id,
434
+ path: `/api/collections/${collection_id}`
433
435
  },
434
436
  options,
435
437
  sdkOptions
436
438
  );
437
439
  };
438
- var patch = function(configuration, options, sdkOptions) {
440
+ var remove = function(configuration, collection_id, options, sdkOptions) {
439
441
  return serviceRequest(
440
442
  {
441
443
  service: configuration,
442
- scope: getRequiredScopes(configuration),
443
- path: `/api/endpoint`,
444
- method: "PATCH" /* PATCH */
444
+ resource_server: configuration.endpoint_id,
445
+ path: `/api/collections/${collection_id}`,
446
+ method: "DELETE" /* DELETE */
445
447
  },
446
448
  options,
447
449
  sdkOptions
448
450
  );
449
451
  };
450
- var updateSubscriptionId = function(configuration, options, sdkOptions) {
452
+ var create = function(configuration, options, sdkOptions) {
451
453
  return serviceRequest(
452
454
  {
453
455
  service: configuration,
454
- scope: getRequiredScopes(configuration),
455
- path: `/api/endpoint/subscription_id`,
456
- method: "PUT" /* PUT */
456
+ resource_server: configuration.endpoint_id,
457
+ path: `/api/collections`,
458
+ method: "POST" /* POST */
457
459
  },
458
460
  options,
459
461
  sdkOptions
460
462
  );
461
463
  };
462
- var updateOwner = function(configuration, options, sdkOptions) {
464
+ var update = function(configuration, collection_id, options, sdkOptions) {
463
465
  return serviceRequest(
464
466
  {
465
467
  service: configuration,
466
- scope: getRequiredScopes(configuration),
467
- path: `/api/endpoint/owner`,
468
+ resource_server: configuration.endpoint_id,
469
+ path: `/api/collections/${collection_id}`,
468
470
  method: "PUT" /* PUT */
469
471
  },
470
472
  options,
471
473
  sdkOptions
472
474
  );
473
475
  };
474
- var updateOwnerString = function(configuration, options, sdkOptions) {
476
+ var patch = function(configuration, collection_id, options, sdkOptions) {
475
477
  return serviceRequest(
476
478
  {
477
479
  service: configuration,
478
- scope: getRequiredScopes(configuration),
479
- path: `/api/endpoint/owner_string`,
480
+ resource_server: configuration.endpoint_id,
481
+ path: `/api/collections/${collection_id}`,
482
+ method: "PATCH" /* PATCH */
483
+ },
484
+ options,
485
+ sdkOptions
486
+ );
487
+ };
488
+ var updateOwnerString = function(configuration, collection_id, options, sdkOptions) {
489
+ return serviceRequest(
490
+ {
491
+ service: configuration,
492
+ resource_server: configuration.endpoint_id,
493
+ path: `/api/collections/${collection_id}/owner_string`,
480
494
  method: "PUT" /* PUT */
481
495
  },
482
496
  options,
483
497
  sdkOptions
484
498
  );
485
499
  };
486
- var resetOwnerString = function(configuration, options, sdkOptions) {
500
+ var resetOwnerString = function(configuration, collection_id, options, sdkOptions) {
487
501
  return serviceRequest(
488
502
  {
489
503
  service: configuration,
490
- scope: getRequiredScopes(configuration),
491
- path: `/api/endpoint/owner_string`,
504
+ resource_server: configuration.endpoint_id,
505
+ path: `/api/collections/${collection_id}/owner_string`,
492
506
  method: "DELETE" /* DELETE */
493
507
  },
494
508
  options,
@@ -496,144 +510,157 @@ var resetOwnerString = function(configuration, options, sdkOptions) {
496
510
  );
497
511
  };
498
512
 
499
- // src/services/globus-connect-server/service/https.ts
500
- var get2 = function(configuration, path, options, sdkOptions) {
513
+ // src/services/globus-connect-server/service/endpoint.ts
514
+ var get2 = function(configuration, options, sdkOptions) {
501
515
  return serviceRequest(
502
516
  {
503
517
  service: configuration,
504
- scope: getRequiredScopes(configuration),
505
- path
518
+ resource_server: configuration.endpoint_id,
519
+ path: `/api/endpoint`
506
520
  },
507
521
  options,
508
522
  sdkOptions
509
523
  );
510
524
  };
511
- var remove = function(configuration, path, options, sdkOptions) {
525
+ var update2 = function(configuration, options, sdkOptions) {
512
526
  return serviceRequest(
513
527
  {
514
528
  service: configuration,
515
- scope: getRequiredScopes(configuration),
516
- path,
517
- method: "DELETE" /* DELETE */
529
+ resource_server: configuration.endpoint_id,
530
+ path: `/api/endpoint`,
531
+ method: "PUT" /* PUT */
518
532
  },
519
533
  options,
520
534
  sdkOptions
521
535
  );
522
536
  };
523
- var update2 = function(configuration, path, options, sdkOptions) {
537
+ var patch2 = function(configuration, options, sdkOptions) {
524
538
  return serviceRequest(
525
539
  {
526
540
  service: configuration,
527
- scope: getRequiredScopes(configuration),
528
- path,
541
+ resource_server: configuration.endpoint_id,
542
+ path: `/api/endpoint`,
543
+ method: "PATCH" /* PATCH */
544
+ },
545
+ options,
546
+ sdkOptions
547
+ );
548
+ };
549
+ var updateSubscriptionId = function(configuration, options, sdkOptions) {
550
+ return serviceRequest(
551
+ {
552
+ service: configuration,
553
+ resource_server: configuration.endpoint_id,
554
+ path: `/api/endpoint/subscription_id`,
529
555
  method: "PUT" /* PUT */
530
556
  },
531
557
  options,
532
558
  sdkOptions
533
559
  );
534
560
  };
535
-
536
- // src/services/globus-connect-server/service/nodes.ts
537
- var getAll = function(configuration, options, sdkOptions) {
561
+ var updateOwner = function(configuration, options, sdkOptions) {
538
562
  return serviceRequest(
539
563
  {
540
564
  service: configuration,
541
- scope: getRequiredScopes(configuration),
542
- path: `/api/nodes`
565
+ resource_server: configuration.endpoint_id,
566
+ path: `/api/endpoint/owner`,
567
+ method: "PUT" /* PUT */
543
568
  },
544
569
  options,
545
570
  sdkOptions
546
571
  );
547
572
  };
548
- var get3 = function(configuration, node_id, options, sdkOptions) {
573
+ var updateOwnerString2 = function(configuration, options, sdkOptions) {
549
574
  return serviceRequest(
550
575
  {
551
576
  service: configuration,
552
- scope: getRequiredScopes(configuration),
553
- path: `/api/nodes/${node_id}`
577
+ resource_server: configuration.endpoint_id,
578
+ path: `/api/endpoint/owner_string`,
579
+ method: "PUT" /* PUT */
554
580
  },
555
581
  options,
556
582
  sdkOptions
557
583
  );
558
584
  };
559
- var remove2 = function(configuration, node_id, options, sdkOptions) {
585
+ var resetOwnerString2 = function(configuration, options, sdkOptions) {
560
586
  return serviceRequest(
561
587
  {
562
588
  service: configuration,
563
- scope: getRequiredScopes(configuration),
564
- path: `/api/nodes/${node_id}`,
589
+ resource_server: configuration.endpoint_id,
590
+ path: `/api/endpoint/owner_string`,
565
591
  method: "DELETE" /* DELETE */
566
592
  },
567
593
  options,
568
594
  sdkOptions
569
595
  );
570
596
  };
571
- var create = function(configuration, options, sdkOptions) {
597
+
598
+ // src/services/globus-connect-server/service/https.ts
599
+ var get3 = function(configuration, path, options, sdkOptions) {
572
600
  return serviceRequest(
573
601
  {
574
602
  service: configuration,
575
- scope: getRequiredScopes(configuration),
576
- path: `/api/nodes`,
577
- method: "POST" /* POST */
603
+ resource_server: configuration.endpoint_id,
604
+ path
578
605
  },
579
606
  options,
580
607
  sdkOptions
581
608
  );
582
609
  };
583
- var update3 = function(configuration, node_id, options, sdkOptions) {
610
+ var remove2 = function(configuration, path, options, sdkOptions) {
584
611
  return serviceRequest(
585
612
  {
586
613
  service: configuration,
587
- scope: getRequiredScopes(configuration),
588
- path: `/api/nodes/${node_id}`,
589
- method: "PUT" /* PUT */
614
+ resource_server: configuration.endpoint_id,
615
+ path,
616
+ method: "DELETE" /* DELETE */
590
617
  },
591
618
  options,
592
619
  sdkOptions
593
620
  );
594
621
  };
595
- var patch2 = function(configuration, node_id, options, sdkOptions) {
622
+ var update3 = function(configuration, path, options, sdkOptions) {
596
623
  return serviceRequest(
597
624
  {
598
625
  service: configuration,
599
- scope: getRequiredScopes(configuration),
600
- path: `/api/nodes/${node_id}`,
601
- method: "PATCH" /* PATCH */
626
+ resource_server: configuration.endpoint_id,
627
+ path,
628
+ method: "PUT" /* PUT */
602
629
  },
603
630
  options,
604
631
  sdkOptions
605
632
  );
606
633
  };
607
634
 
608
- // src/services/globus-connect-server/service/roles.ts
635
+ // src/services/globus-connect-server/service/nodes.ts
609
636
  var getAll2 = function(configuration, options, sdkOptions) {
610
637
  return serviceRequest(
611
638
  {
612
639
  service: configuration,
613
- scope: getRequiredScopes(configuration),
614
- path: `/api/roles`
640
+ resource_server: configuration.endpoint_id,
641
+ path: `/api/nodes`
615
642
  },
616
643
  options,
617
644
  sdkOptions
618
645
  );
619
646
  };
620
- var get4 = function(configuration, role_id, options, sdkOptions) {
647
+ var get4 = function(configuration, node_id, options, sdkOptions) {
621
648
  return serviceRequest(
622
649
  {
623
650
  service: configuration,
624
- scope: getRequiredScopes(configuration),
625
- path: `/api/roles/${role_id}`
651
+ resource_server: configuration.endpoint_id,
652
+ path: `/api/nodes/${node_id}`
626
653
  },
627
654
  options,
628
655
  sdkOptions
629
656
  );
630
657
  };
631
- var remove3 = function(configuration, role_id, options, sdkOptions) {
658
+ var remove3 = function(configuration, node_id, options, sdkOptions) {
632
659
  return serviceRequest(
633
660
  {
634
661
  service: configuration,
635
- scope: getRequiredScopes(configuration),
636
- path: `/api/roles/${role_id}`,
662
+ resource_server: configuration.endpoint_id,
663
+ path: `/api/nodes/${node_id}`,
637
664
  method: "DELETE" /* DELETE */
638
665
  },
639
666
  options,
@@ -644,116 +671,116 @@ var create2 = function(configuration, options, sdkOptions) {
644
671
  return serviceRequest(
645
672
  {
646
673
  service: configuration,
647
- scope: getRequiredScopes(configuration),
648
- path: `/api/roles`,
674
+ resource_server: configuration.endpoint_id,
675
+ path: `/api/nodes`,
649
676
  method: "POST" /* POST */
650
677
  },
651
678
  options,
652
679
  sdkOptions
653
680
  );
654
681
  };
655
-
656
- // src/services/globus-connect-server/service/storage-gateways.ts
657
- var getAll3 = function(configuration, options, sdkOptions) {
682
+ var update4 = function(configuration, node_id, options, sdkOptions) {
658
683
  return serviceRequest(
659
684
  {
660
685
  service: configuration,
661
- scope: getRequiredScopes(configuration),
662
- path: `/api/storage_gateways`
686
+ resource_server: configuration.endpoint_id,
687
+ path: `/api/nodes/${node_id}`,
688
+ method: "PUT" /* PUT */
663
689
  },
664
690
  options,
665
691
  sdkOptions
666
692
  );
667
693
  };
668
- var get5 = function(configuration, storage_gateway_id, options, sdkOptions) {
694
+ var patch3 = function(configuration, node_id, options, sdkOptions) {
669
695
  return serviceRequest(
670
696
  {
671
697
  service: configuration,
672
- scope: getRequiredScopes(configuration),
673
- path: `/api/storage_gateways/${storage_gateway_id}`
698
+ resource_server: configuration.endpoint_id,
699
+ path: `/api/nodes/${node_id}`,
700
+ method: "PATCH" /* PATCH */
674
701
  },
675
702
  options,
676
703
  sdkOptions
677
704
  );
678
705
  };
679
- var remove4 = function(configuration, storage_gateway_id, options, sdkOptions) {
706
+
707
+ // src/services/globus-connect-server/service/roles.ts
708
+ var getAll3 = function(configuration, options, sdkOptions) {
680
709
  return serviceRequest(
681
710
  {
682
711
  service: configuration,
683
- scope: getRequiredScopes(configuration),
684
- path: `/api/storage_gateways/${storage_gateway_id}`,
685
- method: "DELETE" /* DELETE */
712
+ resource_server: configuration.endpoint_id,
713
+ path: `/api/roles`
686
714
  },
687
715
  options,
688
716
  sdkOptions
689
717
  );
690
718
  };
691
- var create3 = function(configuration, options, sdkOptions) {
719
+ var get5 = function(configuration, role_id, options, sdkOptions) {
692
720
  return serviceRequest(
693
721
  {
694
722
  service: configuration,
695
- scope: getRequiredScopes(configuration),
696
- path: `/api/storage_gateways`,
697
- method: "POST" /* POST */
723
+ resource_server: configuration.endpoint_id,
724
+ path: `/api/roles/${role_id}`
698
725
  },
699
726
  options,
700
727
  sdkOptions
701
728
  );
702
729
  };
703
- var update4 = function(configuration, storage_gateway_id, options, sdkOptions) {
730
+ var remove4 = function(configuration, role_id, options, sdkOptions) {
704
731
  return serviceRequest(
705
732
  {
706
733
  service: configuration,
707
- scope: getRequiredScopes(configuration),
708
- path: `/api/storage_gateways/${storage_gateway_id}`,
709
- method: "PUT" /* PUT */
734
+ resource_server: configuration.endpoint_id,
735
+ path: `/api/roles/${role_id}`,
736
+ method: "DELETE" /* DELETE */
710
737
  },
711
738
  options,
712
739
  sdkOptions
713
740
  );
714
741
  };
715
- var patch3 = function(configuration, storage_gateway_id, options, sdkOptions) {
742
+ var create3 = function(configuration, options, sdkOptions) {
716
743
  return serviceRequest(
717
744
  {
718
745
  service: configuration,
719
- scope: getRequiredScopes(configuration),
720
- path: `/api/storage_gateways/${storage_gateway_id}`,
721
- method: "PATCH" /* PATCH */
746
+ resource_server: configuration.endpoint_id,
747
+ path: `/api/roles`,
748
+ method: "POST" /* POST */
722
749
  },
723
750
  options,
724
751
  sdkOptions
725
752
  );
726
753
  };
727
754
 
728
- // src/services/globus-connect-server/service/user-credentials.ts
755
+ // src/services/globus-connect-server/service/storage-gateways.ts
729
756
  var getAll4 = function(configuration, options, sdkOptions) {
730
757
  return serviceRequest(
731
758
  {
732
759
  service: configuration,
733
- scope: getRequiredScopes(configuration),
734
- path: `/api/user_credentials`
760
+ resource_server: configuration.endpoint_id,
761
+ path: `/api/storage_gateways`
735
762
  },
736
763
  options,
737
764
  sdkOptions
738
765
  );
739
766
  };
740
- var get6 = function(configuration, user_credential_id, options, sdkOptions) {
767
+ var get6 = function(configuration, storage_gateway_id, options, sdkOptions) {
741
768
  return serviceRequest(
742
769
  {
743
770
  service: configuration,
744
- scope: getRequiredScopes(configuration),
745
- path: `/api/user_credentials/${user_credential_id}`
771
+ resource_server: configuration.endpoint_id,
772
+ path: `/api/storage_gateways/${storage_gateway_id}`
746
773
  },
747
774
  options,
748
775
  sdkOptions
749
776
  );
750
777
  };
751
- var remove5 = function(configuration, user_credential_id, options, sdkOptions) {
778
+ var remove5 = function(configuration, storage_gateway_id, options, sdkOptions) {
752
779
  return serviceRequest(
753
780
  {
754
781
  service: configuration,
755
- scope: getRequiredScopes(configuration),
756
- path: `/api/user_credentials/${user_credential_id}`,
782
+ resource_server: configuration.endpoint_id,
783
+ path: `/api/storage_gateways/${storage_gateway_id}`,
757
784
  method: "DELETE" /* DELETE */
758
785
  },
759
786
  options,
@@ -764,32 +791,32 @@ var create4 = function(configuration, options, sdkOptions) {
764
791
  return serviceRequest(
765
792
  {
766
793
  service: configuration,
767
- scope: getRequiredScopes(configuration),
768
- path: `/api/user_credentials`,
794
+ resource_server: configuration.endpoint_id,
795
+ path: `/api/storage_gateways`,
769
796
  method: "POST" /* POST */
770
797
  },
771
798
  options,
772
799
  sdkOptions
773
800
  );
774
801
  };
775
- var update5 = function(configuration, user_credential_id, options, sdkOptions) {
802
+ var update5 = function(configuration, storage_gateway_id, options, sdkOptions) {
776
803
  return serviceRequest(
777
804
  {
778
805
  service: configuration,
779
- scope: getRequiredScopes(configuration),
780
- path: `/api/user_credentials/${user_credential_id}`,
806
+ resource_server: configuration.endpoint_id,
807
+ path: `/api/storage_gateways/${storage_gateway_id}`,
781
808
  method: "PUT" /* PUT */
782
809
  },
783
810
  options,
784
811
  sdkOptions
785
812
  );
786
813
  };
787
- var patch4 = function(configuration, user_credential_id, options, sdkOptions) {
814
+ var patch4 = function(configuration, storage_gateway_id, options, sdkOptions) {
788
815
  return serviceRequest(
789
816
  {
790
817
  service: configuration,
791
- scope: getRequiredScopes(configuration),
792
- path: `/api/user_credentials/${user_credential_id}`,
818
+ resource_server: configuration.endpoint_id,
819
+ path: `/api/storage_gateways/${storage_gateway_id}`,
793
820
  method: "PATCH" /* PATCH */
794
821
  },
795
822
  options,
@@ -797,57 +824,35 @@ var patch4 = function(configuration, user_credential_id, options, sdkOptions) {
797
824
  );
798
825
  };
799
826
 
800
- // src/services/globus-connect-server/service/versioning.ts
801
- var info = function(configuration, options, sdkOptions) {
802
- return serviceRequest(
803
- {
804
- service: configuration,
805
- scope: getRequiredScopes(configuration),
806
- path: `/api/info`
807
- },
808
- options,
809
- sdkOptions
810
- );
811
- };
812
-
813
- // src/services/globus-connect-server/index.ts
814
- var SCOPES2 = {
815
- HIGH_ASSURANCE: "urn:globus:auth:scope:<ENDPOINT_ID>:manage_collections",
816
- NON_HIGH_ASSURANCE: "urn:globus:auth:scope:<ENDPOINT_ID>:manage_collections[*https://auth.globus.org/scopes/<MAPPED_COLLECTION_ID>/data_access]"
817
- };
818
- function getRequiredScopes(configuration) {
819
- return SCOPES2.HIGH_ASSURANCE.replace("<ENDPOINT_ID>", configuration.endpoint_id);
820
- }
821
-
822
- // src/services/globus-connect-server/service/collections.ts
827
+ // src/services/globus-connect-server/service/user-credentials.ts
823
828
  var getAll5 = function(configuration, options, sdkOptions) {
824
829
  return serviceRequest(
825
830
  {
826
831
  service: configuration,
827
- scope: getRequiredScopes(configuration),
828
- path: `/api/collections`
832
+ resource_server: configuration.endpoint_id,
833
+ path: `/api/user_credentials`
829
834
  },
830
835
  options,
831
836
  sdkOptions
832
837
  );
833
838
  };
834
- var get7 = function(configuration, collection_id, options, sdkOptions) {
839
+ var get7 = function(configuration, user_credential_id, options, sdkOptions) {
835
840
  return serviceRequest(
836
841
  {
837
842
  service: configuration,
838
- scope: getRequiredScopes(configuration),
839
- path: `/api/collections/${collection_id}`
843
+ resource_server: configuration.endpoint_id,
844
+ path: `/api/user_credentials/${user_credential_id}`
840
845
  },
841
846
  options,
842
847
  sdkOptions
843
848
  );
844
849
  };
845
- var remove6 = function(configuration, collection_id, options, sdkOptions) {
850
+ var remove6 = function(configuration, user_credential_id, options, sdkOptions) {
846
851
  return serviceRequest(
847
852
  {
848
853
  service: configuration,
849
- scope: getRequiredScopes(configuration),
850
- path: `/api/collections/${collection_id}`,
854
+ resource_server: configuration.endpoint_id,
855
+ path: `/api/user_credentials/${user_credential_id}`,
851
856
  method: "DELETE" /* DELETE */
852
857
  },
853
858
  options,
@@ -858,57 +863,45 @@ var create5 = function(configuration, options, sdkOptions) {
858
863
  return serviceRequest(
859
864
  {
860
865
  service: configuration,
861
- scope: getRequiredScopes(configuration),
862
- path: `/api/collections`,
866
+ resource_server: configuration.endpoint_id,
867
+ path: `/api/user_credentials`,
863
868
  method: "POST" /* POST */
864
869
  },
865
870
  options,
866
871
  sdkOptions
867
872
  );
868
873
  };
869
- var update6 = function(configuration, collection_id, options, sdkOptions) {
874
+ var update6 = function(configuration, user_credential_id, options, sdkOptions) {
870
875
  return serviceRequest(
871
876
  {
872
877
  service: configuration,
873
- scope: getRequiredScopes(configuration),
874
- path: `/api/collections/${collection_id}`,
878
+ resource_server: configuration.endpoint_id,
879
+ path: `/api/user_credentials/${user_credential_id}`,
875
880
  method: "PUT" /* PUT */
876
881
  },
877
882
  options,
878
883
  sdkOptions
879
884
  );
880
885
  };
881
- var patch5 = function(configuration, collection_id, options, sdkOptions) {
886
+ var patch5 = function(configuration, user_credential_id, options, sdkOptions) {
882
887
  return serviceRequest(
883
888
  {
884
889
  service: configuration,
885
- scope: getRequiredScopes(configuration),
886
- path: `/api/collections/${collection_id}`,
890
+ resource_server: configuration.endpoint_id,
891
+ path: `/api/user_credentials/${user_credential_id}`,
887
892
  method: "PATCH" /* PATCH */
888
893
  },
889
894
  options,
890
895
  sdkOptions
891
896
  );
892
897
  };
893
- var updateOwnerString2 = function(configuration, collection_id, options, sdkOptions) {
894
- return serviceRequest(
895
- {
896
- service: configuration,
897
- scope: getRequiredScopes(configuration),
898
- path: `/api/collections/${collection_id}/owner_string`,
899
- method: "PUT" /* PUT */
900
- },
901
- options,
902
- sdkOptions
903
- );
904
- };
905
- var resetOwnerString2 = function(configuration, collection_id, options, sdkOptions) {
898
+
899
+ // src/services/globus-connect-server/service/versioning.ts
900
+ var info = function(configuration, options, sdkOptions) {
906
901
  return serviceRequest(
907
902
  {
908
903
  service: configuration,
909
- scope: getRequiredScopes(configuration),
910
- path: `/api/collections/${collection_id}/owner_string`,
911
- method: "DELETE" /* DELETE */
904
+ path: `/api/info`
912
905
  },
913
906
  options,
914
907
  sdkOptions
@@ -925,36 +918,44 @@ function getClient(configuration) {
925
918
  return {
926
919
  configuration,
927
920
  endpoint: {
928
- get: bind(get, configuration),
929
- update: bind(update, configuration),
930
- patch: bind(patch, configuration),
921
+ get: bind(get2, configuration),
922
+ update: bind(update2, configuration),
923
+ patch: bind(patch2, configuration),
931
924
  updateSubscriptionId: bind(updateSubscriptionId, configuration),
932
925
  updateOwner: bind(updateOwner, configuration),
933
- updateOwnerString: bind(updateOwnerString, configuration),
934
- resetOwnerString: bind(resetOwnerString, configuration)
926
+ updateOwnerString: bind(updateOwnerString2, configuration),
927
+ resetOwnerString: bind(resetOwnerString2, configuration)
935
928
  },
936
929
  versioning: {
937
930
  info: bind(info, configuration)
938
931
  },
939
932
  collections: {
933
+ get: bind(get, configuration),
934
+ getAll: bind(getAll, configuration),
935
+ create: bind(create, configuration),
936
+ remove: bind(remove, configuration),
937
+ update: bind(update, configuration),
938
+ patch: bind(patch, configuration),
939
+ updateOwnerString: bind(updateOwnerString, configuration),
940
+ resetOwnerString: bind(resetOwnerString, configuration)
941
+ },
942
+ nodes: {
943
+ get: bind(get4, configuration),
944
+ getAll: bind(getAll2, configuration),
945
+ create: bind(create2, configuration),
946
+ remove: bind(remove3, configuration),
947
+ update: bind(update4, configuration),
948
+ patch: bind(patch3, configuration)
949
+ },
950
+ userCredentials: {
940
951
  get: bind(get7, configuration),
941
952
  getAll: bind(getAll5, configuration),
942
953
  create: bind(create5, configuration),
943
954
  remove: bind(remove6, configuration),
944
955
  update: bind(update6, configuration),
945
- patch: bind(patch5, configuration),
946
- updateOwnerString: bind(updateOwnerString2, configuration),
947
- resetOwnerString: bind(resetOwnerString2, configuration)
956
+ patch: bind(patch5, configuration)
948
957
  },
949
- nodes: {
950
- get: bind(get3, configuration),
951
- getAll: bind(getAll, configuration),
952
- create: bind(create, configuration),
953
- remove: bind(remove2, configuration),
954
- update: bind(update3, configuration),
955
- patch: bind(patch2, configuration)
956
- },
957
- userCredentials: {
958
+ storageGateways: {
958
959
  get: bind(get6, configuration),
959
960
  getAll: bind(getAll4, configuration),
960
961
  create: bind(create4, configuration),
@@ -962,24 +963,16 @@ function getClient(configuration) {
962
963
  update: bind(update5, configuration),
963
964
  patch: bind(patch4, configuration)
964
965
  },
965
- storageGateways: {
966
+ roles: {
966
967
  get: bind(get5, configuration),
967
968
  getAll: bind(getAll3, configuration),
968
969
  create: bind(create3, configuration),
969
- remove: bind(remove4, configuration),
970
- update: bind(update4, configuration),
971
- patch: bind(patch3, configuration)
972
- },
973
- roles: {
974
- get: bind(get4, configuration),
975
- getAll: bind(getAll2, configuration),
976
- create: bind(create2, configuration),
977
- remove: bind(remove3, configuration)
970
+ remove: bind(remove4, configuration)
978
971
  },
979
972
  https: {
980
- get: bind(get2, configuration),
981
- remove: bind(remove, configuration),
982
- update: bind(update2, configuration)
973
+ get: bind(get3, configuration),
974
+ remove: bind(remove2, configuration),
975
+ update: bind(update3, configuration)
983
976
  }
984
977
  };
985
978
  }