@globus/sdk 4.0.0 → 4.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 (33) hide show
  1. package/README.md +1 -1
  2. package/dist/cjs/core/authorization/index.js +2 -2
  3. package/dist/cjs/core/authorization/index.js.map +1 -1
  4. package/dist/cjs/core/info/index.js +1 -1
  5. package/dist/cjs/core/info/index.js.map +1 -1
  6. package/dist/cjs/index.js +135 -40
  7. package/dist/cjs/index.js.map +4 -4
  8. package/dist/cjs/services/globus-connect-server/client.js +118 -38
  9. package/dist/cjs/services/globus-connect-server/client.js.map +4 -4
  10. package/dist/esm/core/info/version.d.ts +1 -1
  11. package/dist/esm/core/info/version.js +1 -1
  12. package/dist/esm/package.json +1 -1
  13. package/dist/esm/services/auth/config.js +1 -1
  14. package/dist/esm/services/auth/config.js.map +1 -1
  15. package/dist/esm/services/flows/service/flows.d.ts +42 -0
  16. package/dist/esm/services/flows/service/flows.d.ts.map +1 -1
  17. package/dist/esm/services/flows/service/flows.js +12 -0
  18. package/dist/esm/services/flows/service/flows.js.map +1 -1
  19. package/dist/esm/services/globus-connect-server/client.d.ts +205 -0
  20. package/dist/esm/services/globus-connect-server/client.d.ts.map +1 -1
  21. package/dist/esm/services/globus-connect-server/client.js +9 -0
  22. package/dist/esm/services/globus-connect-server/client.js.map +1 -1
  23. package/dist/esm/services/globus-connect-server/index.d.ts +1 -0
  24. package/dist/esm/services/globus-connect-server/index.d.ts.map +1 -1
  25. package/dist/esm/services/globus-connect-server/index.js +1 -0
  26. package/dist/esm/services/globus-connect-server/index.js.map +1 -1
  27. package/dist/esm/services/globus-connect-server/service/nodes.d.ts +59 -0
  28. package/dist/esm/services/globus-connect-server/service/nodes.d.ts.map +1 -0
  29. package/dist/esm/services/globus-connect-server/service/nodes.js +67 -0
  30. package/dist/esm/services/globus-connect-server/service/nodes.js.map +1 -0
  31. package/dist/umd/globus.production.js +2 -2
  32. package/dist/umd/globus.production.js.map +4 -4
  33. package/package.json +1 -1
package/dist/cjs/index.js CHANGED
@@ -71,7 +71,7 @@ function toString(info2) {
71
71
  }
72
72
 
73
73
  // src/core/info/version.ts
74
- var VERSION = "3.9.0";
74
+ var VERSION = "4.2.0";
75
75
 
76
76
  // src/core/info/index.ts
77
77
  var VERSION2 = VERSION;
@@ -291,7 +291,7 @@ var SCOPES6 = {
291
291
  var RESOURCE_SERVERS = {
292
292
  [ID7]: "auth.globus.org",
293
293
  [ID]: "transfer.api.globus.org",
294
- [ID2]: "flows.api.globus.org",
294
+ [ID2]: "flows.globus.org",
295
295
  [ID4]: "groups.api.globus.org",
296
296
  [ID5]: "search.api.globus.org",
297
297
  [ID3]: "524230d7-ea86-4a52-8312-86065a9e0417",
@@ -2413,7 +2413,8 @@ __export(flows_exports, {
2413
2413
  get: () => get15,
2414
2414
  getAll: () => getAll8,
2415
2415
  remove: () => remove7,
2416
- run: () => run
2416
+ run: () => run,
2417
+ validate: () => validate2
2417
2418
  });
2418
2419
  var getAll8 = function(options, sdkOptions) {
2419
2420
  return serviceRequest(
@@ -2461,6 +2462,18 @@ var run = function(flow_id, options, sdkOptions) {
2461
2462
  sdkOptions
2462
2463
  );
2463
2464
  };
2465
+ var validate2 = function(options, sdkOptions) {
2466
+ return serviceRequest(
2467
+ {
2468
+ service: ID2,
2469
+ scope: SCOPES2.MANAGE_FLOWS,
2470
+ path: `/flows/validate`,
2471
+ method: "POST" /* POST */
2472
+ },
2473
+ options,
2474
+ sdkOptions
2475
+ );
2476
+ };
2464
2477
 
2465
2478
  // src/services/flows/service/runs.ts
2466
2479
  var runs_exports = {};
@@ -2514,6 +2527,7 @@ __export(globus_connect_server_exports, {
2514
2527
  endpoint: () => endpoint_exports3,
2515
2528
  getRequiredScopes: () => getRequiredScopes,
2516
2529
  https: () => https_exports,
2530
+ nodes: () => nodes_exports,
2517
2531
  roles: () => roles_exports,
2518
2532
  storageGateways: () => storage_gateways_exports,
2519
2533
  userCredentials: () => user_credentials_exports,
@@ -2765,15 +2779,96 @@ var update8 = function(configuration, path, options, sdkOptions) {
2765
2779
  );
2766
2780
  };
2767
2781
 
2768
- // src/services/globus-connect-server/service/roles.ts
2769
- var roles_exports = {};
2770
- __export(roles_exports, {
2782
+ // src/services/globus-connect-server/service/nodes.ts
2783
+ var nodes_exports = {};
2784
+ __export(nodes_exports, {
2771
2785
  create: () => create8,
2772
2786
  get: () => get19,
2773
2787
  getAll: () => getAll11,
2774
- remove: () => remove10
2788
+ patch: () => patch3,
2789
+ remove: () => remove10,
2790
+ update: () => update9
2775
2791
  });
2776
2792
  var getAll11 = function(configuration, options, sdkOptions) {
2793
+ return serviceRequest(
2794
+ {
2795
+ service: configuration,
2796
+ scope: getRequiredScopes(configuration),
2797
+ path: `/api/nodes`
2798
+ },
2799
+ options,
2800
+ sdkOptions
2801
+ );
2802
+ };
2803
+ var get19 = function(configuration, node_id, options, sdkOptions) {
2804
+ return serviceRequest(
2805
+ {
2806
+ service: configuration,
2807
+ scope: getRequiredScopes(configuration),
2808
+ path: `/api/nodes/${node_id}`
2809
+ },
2810
+ options,
2811
+ sdkOptions
2812
+ );
2813
+ };
2814
+ var remove10 = function(configuration, node_id, options, sdkOptions) {
2815
+ return serviceRequest(
2816
+ {
2817
+ service: configuration,
2818
+ scope: getRequiredScopes(configuration),
2819
+ path: `/api/nodes/${node_id}`,
2820
+ method: "DELETE" /* DELETE */
2821
+ },
2822
+ options,
2823
+ sdkOptions
2824
+ );
2825
+ };
2826
+ var create8 = function(configuration, options, sdkOptions) {
2827
+ return serviceRequest(
2828
+ {
2829
+ service: configuration,
2830
+ scope: getRequiredScopes(configuration),
2831
+ path: `/api/nodes`,
2832
+ method: "POST" /* POST */
2833
+ },
2834
+ options,
2835
+ sdkOptions
2836
+ );
2837
+ };
2838
+ var update9 = function(configuration, node_id, options, sdkOptions) {
2839
+ return serviceRequest(
2840
+ {
2841
+ service: configuration,
2842
+ scope: getRequiredScopes(configuration),
2843
+ path: `/api/nodes/${node_id}`,
2844
+ method: "PUT" /* PUT */
2845
+ },
2846
+ options,
2847
+ sdkOptions
2848
+ );
2849
+ };
2850
+ var patch3 = function(configuration, node_id, options, sdkOptions) {
2851
+ return serviceRequest(
2852
+ {
2853
+ service: configuration,
2854
+ scope: getRequiredScopes(configuration),
2855
+ path: `/api/nodes/${node_id}`,
2856
+ method: "PATCH" /* PATCH */
2857
+ },
2858
+ options,
2859
+ sdkOptions
2860
+ );
2861
+ };
2862
+
2863
+ // src/services/globus-connect-server/service/roles.ts
2864
+ var roles_exports = {};
2865
+ __export(roles_exports, {
2866
+ create: () => create9,
2867
+ get: () => get20,
2868
+ getAll: () => getAll12,
2869
+ remove: () => remove11
2870
+ });
2871
+ var getAll12 = function(configuration, options, sdkOptions) {
2777
2872
  return serviceRequest(
2778
2873
  {
2779
2874
  service: configuration,
@@ -2784,7 +2879,7 @@ var getAll11 = function(configuration, options, sdkOptions) {
2784
2879
  sdkOptions
2785
2880
  );
2786
2881
  };
2787
- var get19 = function(configuration, role_id, options, sdkOptions) {
2882
+ var get20 = function(configuration, role_id, options, sdkOptions) {
2788
2883
  return serviceRequest(
2789
2884
  {
2790
2885
  service: configuration,
@@ -2795,7 +2890,7 @@ var get19 = function(configuration, role_id, options, sdkOptions) {
2795
2890
  sdkOptions
2796
2891
  );
2797
2892
  };
2798
- var remove10 = function(configuration, role_id, options, sdkOptions) {
2893
+ var remove11 = function(configuration, role_id, options, sdkOptions) {
2799
2894
  return serviceRequest(
2800
2895
  {
2801
2896
  service: configuration,
@@ -2807,7 +2902,7 @@ var remove10 = function(configuration, role_id, options, sdkOptions) {
2807
2902
  sdkOptions
2808
2903
  );
2809
2904
  };
2810
- var create8 = function(configuration, options, sdkOptions) {
2905
+ var create9 = function(configuration, options, sdkOptions) {
2811
2906
  return serviceRequest(
2812
2907
  {
2813
2908
  service: configuration,
@@ -2823,14 +2918,14 @@ var create8 = function(configuration, options, sdkOptions) {
2823
2918
  // src/services/globus-connect-server/service/storage-gateways.ts
2824
2919
  var storage_gateways_exports = {};
2825
2920
  __export(storage_gateways_exports, {
2826
- create: () => create9,
2827
- get: () => get20,
2828
- getAll: () => getAll12,
2829
- patch: () => patch3,
2830
- remove: () => remove11,
2831
- update: () => update9
2921
+ create: () => create10,
2922
+ get: () => get21,
2923
+ getAll: () => getAll13,
2924
+ patch: () => patch4,
2925
+ remove: () => remove12,
2926
+ update: () => update10
2832
2927
  });
2833
- var getAll12 = function(configuration, options, sdkOptions) {
2928
+ var getAll13 = function(configuration, options, sdkOptions) {
2834
2929
  return serviceRequest(
2835
2930
  {
2836
2931
  service: configuration,
@@ -2841,7 +2936,7 @@ var getAll12 = function(configuration, options, sdkOptions) {
2841
2936
  sdkOptions
2842
2937
  );
2843
2938
  };
2844
- var get20 = function(configuration, storage_gateway_id, options, sdkOptions) {
2939
+ var get21 = function(configuration, storage_gateway_id, options, sdkOptions) {
2845
2940
  return serviceRequest(
2846
2941
  {
2847
2942
  service: configuration,
@@ -2852,7 +2947,7 @@ var get20 = function(configuration, storage_gateway_id, options, sdkOptions) {
2852
2947
  sdkOptions
2853
2948
  );
2854
2949
  };
2855
- var remove11 = function(configuration, storage_gateway_id, options, sdkOptions) {
2950
+ var remove12 = function(configuration, storage_gateway_id, options, sdkOptions) {
2856
2951
  return serviceRequest(
2857
2952
  {
2858
2953
  service: configuration,
@@ -2864,7 +2959,7 @@ var remove11 = function(configuration, storage_gateway_id, options, sdkOptions)
2864
2959
  sdkOptions
2865
2960
  );
2866
2961
  };
2867
- var create9 = function(configuration, options, sdkOptions) {
2962
+ var create10 = function(configuration, options, sdkOptions) {
2868
2963
  return serviceRequest(
2869
2964
  {
2870
2965
  service: configuration,
@@ -2876,7 +2971,7 @@ var create9 = function(configuration, options, sdkOptions) {
2876
2971
  sdkOptions
2877
2972
  );
2878
2973
  };
2879
- var update9 = function(configuration, storage_gateway_id, options, sdkOptions) {
2974
+ var update10 = function(configuration, storage_gateway_id, options, sdkOptions) {
2880
2975
  return serviceRequest(
2881
2976
  {
2882
2977
  service: configuration,
@@ -2888,7 +2983,7 @@ var update9 = function(configuration, storage_gateway_id, options, sdkOptions) {
2888
2983
  sdkOptions
2889
2984
  );
2890
2985
  };
2891
- var patch3 = function(configuration, storage_gateway_id, options, sdkOptions) {
2986
+ var patch4 = function(configuration, storage_gateway_id, options, sdkOptions) {
2892
2987
  return serviceRequest(
2893
2988
  {
2894
2989
  service: configuration,
@@ -2904,14 +2999,14 @@ var patch3 = function(configuration, storage_gateway_id, options, sdkOptions) {
2904
2999
  // src/services/globus-connect-server/service/user-credentials.ts
2905
3000
  var user_credentials_exports = {};
2906
3001
  __export(user_credentials_exports, {
2907
- create: () => create10,
2908
- get: () => get21,
2909
- getAll: () => getAll13,
2910
- patch: () => patch4,
2911
- remove: () => remove12,
2912
- update: () => update10
3002
+ create: () => create11,
3003
+ get: () => get22,
3004
+ getAll: () => getAll14,
3005
+ patch: () => patch5,
3006
+ remove: () => remove13,
3007
+ update: () => update11
2913
3008
  });
2914
- var getAll13 = function(configuration, options, sdkOptions) {
3009
+ var getAll14 = function(configuration, options, sdkOptions) {
2915
3010
  return serviceRequest(
2916
3011
  {
2917
3012
  service: configuration,
@@ -2922,7 +3017,7 @@ var getAll13 = function(configuration, options, sdkOptions) {
2922
3017
  sdkOptions
2923
3018
  );
2924
3019
  };
2925
- var get21 = function(configuration, user_credential_id, options, sdkOptions) {
3020
+ var get22 = function(configuration, user_credential_id, options, sdkOptions) {
2926
3021
  return serviceRequest(
2927
3022
  {
2928
3023
  service: configuration,
@@ -2933,7 +3028,7 @@ var get21 = function(configuration, user_credential_id, options, sdkOptions) {
2933
3028
  sdkOptions
2934
3029
  );
2935
3030
  };
2936
- var remove12 = function(configuration, user_credential_id, options, sdkOptions) {
3031
+ var remove13 = function(configuration, user_credential_id, options, sdkOptions) {
2937
3032
  return serviceRequest(
2938
3033
  {
2939
3034
  service: configuration,
@@ -2945,7 +3040,7 @@ var remove12 = function(configuration, user_credential_id, options, sdkOptions)
2945
3040
  sdkOptions
2946
3041
  );
2947
3042
  };
2948
- var create10 = function(configuration, options, sdkOptions) {
3043
+ var create11 = function(configuration, options, sdkOptions) {
2949
3044
  return serviceRequest(
2950
3045
  {
2951
3046
  service: configuration,
@@ -2957,7 +3052,7 @@ var create10 = function(configuration, options, sdkOptions) {
2957
3052
  sdkOptions
2958
3053
  );
2959
3054
  };
2960
- var update10 = function(configuration, user_credential_id, options, sdkOptions) {
3055
+ var update11 = function(configuration, user_credential_id, options, sdkOptions) {
2961
3056
  return serviceRequest(
2962
3057
  {
2963
3058
  service: configuration,
@@ -2969,7 +3064,7 @@ var update10 = function(configuration, user_credential_id, options, sdkOptions)
2969
3064
  sdkOptions
2970
3065
  );
2971
3066
  };
2972
- var patch4 = function(configuration, user_credential_id, options, sdkOptions) {
3067
+ var patch5 = function(configuration, user_credential_id, options, sdkOptions) {
2973
3068
  return serviceRequest(
2974
3069
  {
2975
3070
  service: configuration,
@@ -3012,11 +3107,11 @@ function getRequiredScopes(configuration) {
3012
3107
  var timer_exports = {};
3013
3108
  __export(timer_exports, {
3014
3109
  CONFIG: () => CONFIG6,
3015
- create: () => create11
3110
+ create: () => create12
3016
3111
  });
3017
3112
 
3018
3113
  // src/services/timer/service/timer.ts
3019
- var create11 = function(options, sdkOptions) {
3114
+ var create12 = function(options, sdkOptions) {
3020
3115
  return serviceRequest(
3021
3116
  {
3022
3117
  service: ID3,
@@ -3042,11 +3137,11 @@ __export(compute_exports, {
3042
3137
  // src/services/compute/service/endpoints.ts
3043
3138
  var endpoints_exports = {};
3044
3139
  __export(endpoints_exports, {
3045
- get: () => get22,
3046
- getAll: () => getAll14,
3140
+ get: () => get23,
3141
+ getAll: () => getAll15,
3047
3142
  getStatus: () => getStatus
3048
3143
  });
3049
- var getAll14 = function(options, sdkOptions) {
3144
+ var getAll15 = function(options, sdkOptions) {
3050
3145
  return serviceRequest(
3051
3146
  {
3052
3147
  service: ID6,
@@ -3058,7 +3153,7 @@ var getAll14 = function(options, sdkOptions) {
3058
3153
  sdkOptions
3059
3154
  );
3060
3155
  };
3061
- var get22 = function(endpoint_uuid, options, sdkOptions) {
3156
+ var get23 = function(endpoint_uuid, options, sdkOptions) {
3062
3157
  return serviceRequest(
3063
3158
  {
3064
3159
  service: ID6,