@globus/sdk 5.5.0 → 5.7.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.
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 = "5.5.0";
74
+ var VERSION = "5.7.0";
75
75
 
76
76
  // src/core/info/index.ts
77
77
  var VERSION2 = VERSION;
@@ -2261,9 +2261,11 @@ var getPauseInfo2 = function(task_id, options, sdkOptions) {
2261
2261
  // src/services/transfer/utils.ts
2262
2262
  var utils_exports2 = {};
2263
2263
  __export(utils_exports2, {
2264
+ GLOBUS_DNS_DOMAINS: () => GLOBUS_DNS_DOMAINS,
2264
2265
  getDomainFromEndpoint: () => getDomainFromEndpoint,
2265
2266
  isDirectory: () => isDirectory,
2266
2267
  isFileDocument: () => isFileDocument,
2268
+ isGlobusHostname: () => isGlobusHostname,
2267
2269
  readableBytes: () => readableBytes
2268
2270
  });
2269
2271
  function isFileDocument(entry) {
@@ -2311,13 +2313,16 @@ function readableBytes(bytes, truncate = 2) {
2311
2313
  return `${rendered} ${unit}`;
2312
2314
  }
2313
2315
  var GLOBUS_DNS_DOMAINS = ["dnsteam.globuscs.info", "data.globus.org", "dn.glob.us"];
2316
+ function isGlobusHostname(hostname) {
2317
+ return Boolean(GLOBUS_DNS_DOMAINS.find((d) => hostname.endsWith(d)));
2318
+ }
2314
2319
  function getDomainFromEndpoint(endpoint) {
2315
2320
  const { tlsftp_server: tls } = endpoint;
2316
2321
  if (!tls || typeof tls !== "string") {
2317
2322
  return null;
2318
2323
  }
2319
2324
  const { hostname } = new URL(tls.replace("tlsftp", "https"));
2320
- const hasCustomDomain = !GLOBUS_DNS_DOMAINS.find((d) => hostname.endsWith(d));
2325
+ const hasCustomDomain = !isGlobusHostname(hostname);
2321
2326
  const customDomain = hasCustomDomain && /(?:[gm]-\w{6}.)?(\w+(\.\w+)+)$/.exec(hostname)?.[1];
2322
2327
  return customDomain || hostname || null;
2323
2328
  }
@@ -2702,7 +2707,10 @@ var runs_exports = {};
2702
2707
  __export(runs_exports, {
2703
2708
  cancel: () => cancel3,
2704
2709
  getAll: () => getAll11,
2705
- getLog: () => getLog
2710
+ getDefinition: () => getDefinition,
2711
+ getLog: () => getLog,
2712
+ remove: () => remove9,
2713
+ update: () => update6
2706
2714
  });
2707
2715
  var getAll11 = function(options = {}, sdkOptions) {
2708
2716
  return serviceRequest(
@@ -2738,6 +2746,42 @@ var getLog = function(run_id, options, sdkOptions) {
2738
2746
  sdkOptions
2739
2747
  );
2740
2748
  };
2749
+ var update6 = function(run_id, options, sdkOptions) {
2750
+ return serviceRequest(
2751
+ {
2752
+ service: ID2,
2753
+ scope: SCOPES2.RUN_MANAGE,
2754
+ path: `/runs/${run_id}`,
2755
+ method: "PUT" /* PUT */
2756
+ },
2757
+ options,
2758
+ sdkOptions
2759
+ );
2760
+ };
2761
+ var remove9 = function(run_id, options, sdkOptions) {
2762
+ return serviceRequest(
2763
+ {
2764
+ service: ID2,
2765
+ scope: SCOPES2.RUN_MANAGE,
2766
+ path: `/runs/${run_id}/release`,
2767
+ method: "POST" /* POST */
2768
+ },
2769
+ options,
2770
+ sdkOptions
2771
+ );
2772
+ };
2773
+ var getDefinition = function(run_id, options, sdkOptions) {
2774
+ return serviceRequest(
2775
+ {
2776
+ service: ID2,
2777
+ scope: SCOPES2.RUN_MANAGE,
2778
+ path: `/runs/${run_id}/definition`,
2779
+ method: "GET" /* GET */
2780
+ },
2781
+ options,
2782
+ sdkOptions
2783
+ );
2784
+ };
2741
2785
 
2742
2786
  // src/services/flows/index.ts
2743
2787
  var CONFIG5 = config_exports2;
@@ -2764,9 +2808,9 @@ __export(collections_exports, {
2764
2808
  get: () => get16,
2765
2809
  getAll: () => getAll12,
2766
2810
  patch: () => patch,
2767
- remove: () => remove9,
2811
+ remove: () => remove10,
2768
2812
  resetOwnerString: () => resetOwnerString,
2769
- update: () => update6,
2813
+ update: () => update7,
2770
2814
  updateOwnerString: () => updateOwnerString
2771
2815
  });
2772
2816
  var getAll12 = function(configuration, options, sdkOptions) {
@@ -2791,7 +2835,7 @@ var get16 = function(configuration, collection_id, options, sdkOptions) {
2791
2835
  sdkOptions
2792
2836
  );
2793
2837
  };
2794
- var remove9 = function(configuration, collection_id, options, sdkOptions) {
2838
+ var remove10 = function(configuration, collection_id, options, sdkOptions) {
2795
2839
  return serviceRequest(
2796
2840
  {
2797
2841
  service: configuration,
@@ -2815,7 +2859,7 @@ var create9 = function(configuration, options, sdkOptions) {
2815
2859
  sdkOptions
2816
2860
  );
2817
2861
  };
2818
- var update6 = function(configuration, collection_id, options, sdkOptions) {
2862
+ var update7 = function(configuration, collection_id, options, sdkOptions) {
2819
2863
  return serviceRequest(
2820
2864
  {
2821
2865
  service: configuration,
@@ -2870,7 +2914,7 @@ __export(endpoint_exports3, {
2870
2914
  get: () => get17,
2871
2915
  patch: () => patch2,
2872
2916
  resetOwnerString: () => resetOwnerString2,
2873
- update: () => update7,
2917
+ update: () => update8,
2874
2918
  updateOwner: () => updateOwner,
2875
2919
  updateOwnerString: () => updateOwnerString2,
2876
2920
  updateSubscriptionId: () => updateSubscriptionId
@@ -2886,7 +2930,7 @@ var get17 = function(configuration, options, sdkOptions) {
2886
2930
  sdkOptions
2887
2931
  );
2888
2932
  };
2889
- var update7 = function(configuration, options, sdkOptions) {
2933
+ var update8 = function(configuration, options, sdkOptions) {
2890
2934
  return serviceRequest(
2891
2935
  {
2892
2936
  service: configuration,
@@ -2963,8 +3007,8 @@ var resetOwnerString2 = function(configuration, options, sdkOptions) {
2963
3007
  var https_exports = {};
2964
3008
  __export(https_exports, {
2965
3009
  get: () => get18,
2966
- remove: () => remove10,
2967
- update: () => update8
3010
+ remove: () => remove11,
3011
+ update: () => update9
2968
3012
  });
2969
3013
  var get18 = function(configuration, path, options, sdkOptions) {
2970
3014
  return serviceRequest(
@@ -2977,7 +3021,7 @@ var get18 = function(configuration, path, options, sdkOptions) {
2977
3021
  sdkOptions
2978
3022
  );
2979
3023
  };
2980
- var remove10 = function(configuration, path, options, sdkOptions) {
3024
+ var remove11 = function(configuration, path, options, sdkOptions) {
2981
3025
  return serviceRequest(
2982
3026
  {
2983
3027
  service: configuration,
@@ -2989,7 +3033,7 @@ var remove10 = function(configuration, path, options, sdkOptions) {
2989
3033
  sdkOptions
2990
3034
  );
2991
3035
  };
2992
- var update8 = function(configuration, path, options, sdkOptions) {
3036
+ var update9 = function(configuration, path, options, sdkOptions) {
2993
3037
  return serviceRequest(
2994
3038
  {
2995
3039
  service: configuration,
@@ -3009,8 +3053,8 @@ __export(nodes_exports, {
3009
3053
  get: () => get19,
3010
3054
  getAll: () => getAll13,
3011
3055
  patch: () => patch3,
3012
- remove: () => remove11,
3013
- update: () => update9
3056
+ remove: () => remove12,
3057
+ update: () => update10
3014
3058
  });
3015
3059
  var getAll13 = function(configuration, options, sdkOptions) {
3016
3060
  return serviceRequest(
@@ -3034,7 +3078,7 @@ var get19 = function(configuration, node_id, options, sdkOptions) {
3034
3078
  sdkOptions
3035
3079
  );
3036
3080
  };
3037
- var remove11 = function(configuration, node_id, options, sdkOptions) {
3081
+ var remove12 = function(configuration, node_id, options, sdkOptions) {
3038
3082
  return serviceRequest(
3039
3083
  {
3040
3084
  service: configuration,
@@ -3058,7 +3102,7 @@ var create10 = function(configuration, options, sdkOptions) {
3058
3102
  sdkOptions
3059
3103
  );
3060
3104
  };
3061
- var update9 = function(configuration, node_id, options, sdkOptions) {
3105
+ var update10 = function(configuration, node_id, options, sdkOptions) {
3062
3106
  return serviceRequest(
3063
3107
  {
3064
3108
  service: configuration,
@@ -3089,7 +3133,7 @@ __export(roles_exports2, {
3089
3133
  create: () => create11,
3090
3134
  get: () => get20,
3091
3135
  getAll: () => getAll14,
3092
- remove: () => remove12
3136
+ remove: () => remove13
3093
3137
  });
3094
3138
  var getAll14 = function(configuration, options, sdkOptions) {
3095
3139
  return serviceRequest(
@@ -3113,7 +3157,7 @@ var get20 = function(configuration, role_id, options, sdkOptions) {
3113
3157
  sdkOptions
3114
3158
  );
3115
3159
  };
3116
- var remove12 = function(configuration, role_id, options, sdkOptions) {
3160
+ var remove13 = function(configuration, role_id, options, sdkOptions) {
3117
3161
  return serviceRequest(
3118
3162
  {
3119
3163
  service: configuration,
@@ -3145,8 +3189,8 @@ __export(storage_gateways_exports, {
3145
3189
  get: () => get21,
3146
3190
  getAll: () => getAll15,
3147
3191
  patch: () => patch4,
3148
- remove: () => remove13,
3149
- update: () => update10
3192
+ remove: () => remove14,
3193
+ update: () => update11
3150
3194
  });
3151
3195
  var getAll15 = function(configuration, options, sdkOptions) {
3152
3196
  return serviceRequest(
@@ -3170,7 +3214,7 @@ var get21 = function(configuration, storage_gateway_id, options, sdkOptions) {
3170
3214
  sdkOptions
3171
3215
  );
3172
3216
  };
3173
- var remove13 = function(configuration, storage_gateway_id, options, sdkOptions) {
3217
+ var remove14 = function(configuration, storage_gateway_id, options, sdkOptions) {
3174
3218
  return serviceRequest(
3175
3219
  {
3176
3220
  service: configuration,
@@ -3194,7 +3238,7 @@ var create12 = function(configuration, options, sdkOptions) {
3194
3238
  sdkOptions
3195
3239
  );
3196
3240
  };
3197
- var update10 = function(configuration, storage_gateway_id, options, sdkOptions) {
3241
+ var update11 = function(configuration, storage_gateway_id, options, sdkOptions) {
3198
3242
  return serviceRequest(
3199
3243
  {
3200
3244
  service: configuration,
@@ -3226,8 +3270,8 @@ __export(user_credentials_exports, {
3226
3270
  get: () => get22,
3227
3271
  getAll: () => getAll16,
3228
3272
  patch: () => patch5,
3229
- remove: () => remove14,
3230
- update: () => update11
3273
+ remove: () => remove15,
3274
+ update: () => update12
3231
3275
  });
3232
3276
  var getAll16 = function(configuration, options, sdkOptions) {
3233
3277
  return serviceRequest(
@@ -3251,7 +3295,7 @@ var get22 = function(configuration, user_credential_id, options, sdkOptions) {
3251
3295
  sdkOptions
3252
3296
  );
3253
3297
  };
3254
- var remove14 = function(configuration, user_credential_id, options, sdkOptions) {
3298
+ var remove15 = function(configuration, user_credential_id, options, sdkOptions) {
3255
3299
  return serviceRequest(
3256
3300
  {
3257
3301
  service: configuration,
@@ -3275,7 +3319,7 @@ var create13 = function(configuration, options, sdkOptions) {
3275
3319
  sdkOptions
3276
3320
  );
3277
3321
  };
3278
- var update11 = function(configuration, user_credential_id, options, sdkOptions) {
3322
+ var update12 = function(configuration, user_credential_id, options, sdkOptions) {
3279
3323
  return serviceRequest(
3280
3324
  {
3281
3325
  service: configuration,