@globus/sdk 1.17.0 → 1.18.1

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 (78) hide show
  1. package/cjs/lib/services/auth/index.d.ts +1 -0
  2. package/cjs/lib/services/auth/index.d.ts.map +1 -1
  3. package/cjs/lib/services/auth/index.js +2 -1
  4. package/cjs/lib/services/auth/index.js.map +1 -1
  5. package/cjs/lib/services/auth/service/oauth2/index.d.ts +2 -0
  6. package/cjs/lib/services/auth/service/oauth2/index.d.ts.map +1 -0
  7. package/cjs/lib/services/auth/service/oauth2/index.js +6 -0
  8. package/cjs/lib/services/auth/service/oauth2/index.js.map +1 -0
  9. package/cjs/lib/services/auth/service/oauth2/token.d.ts +46 -0
  10. package/cjs/lib/services/auth/service/oauth2/token.d.ts.map +1 -0
  11. package/cjs/lib/services/auth/service/oauth2/token.js +48 -0
  12. package/cjs/lib/services/auth/service/oauth2/token.js.map +1 -0
  13. package/cjs/lib/services/groups/service/groups.d.ts.map +1 -1
  14. package/cjs/lib/services/groups/service/groups.js +13 -12
  15. package/cjs/lib/services/groups/service/groups.js.map +1 -1
  16. package/cjs/lib/services/groups/service/membership.d.ts.map +1 -1
  17. package/cjs/lib/services/groups/service/membership.js +7 -4
  18. package/cjs/lib/services/groups/service/membership.js.map +1 -1
  19. package/cjs/lib/services/groups/service/policies.d.ts +1 -1
  20. package/cjs/lib/services/groups/service/policies.d.ts.map +1 -1
  21. package/cjs/lib/services/groups/service/policies.js +7 -5
  22. package/cjs/lib/services/groups/service/policies.js.map +1 -1
  23. package/cjs/lib/services/shared.d.ts +2 -2
  24. package/cjs/lib/services/shared.d.ts.map +1 -1
  25. package/cjs/lib/services/shared.js +37 -5
  26. package/cjs/lib/services/shared.js.map +1 -1
  27. package/cjs/lib/services/transfer/config.js +1 -1
  28. package/cjs/lib/services/transfer/config.js.map +1 -1
  29. package/cjs/lib/services/types.d.ts +18 -2
  30. package/cjs/lib/services/types.d.ts.map +1 -1
  31. package/esm/lib/services/auth/index.d.ts +1 -0
  32. package/esm/lib/services/auth/index.d.ts.map +1 -1
  33. package/esm/lib/services/auth/index.js +1 -0
  34. package/esm/lib/services/auth/index.js.map +1 -1
  35. package/esm/lib/services/auth/service/oauth2/index.d.ts +2 -0
  36. package/esm/lib/services/auth/service/oauth2/index.d.ts.map +1 -0
  37. package/esm/lib/services/auth/service/oauth2/index.js +2 -0
  38. package/esm/lib/services/auth/service/oauth2/index.js.map +1 -0
  39. package/esm/lib/services/auth/service/oauth2/token.d.ts +46 -0
  40. package/esm/lib/services/auth/service/oauth2/token.d.ts.map +1 -0
  41. package/esm/lib/services/auth/service/oauth2/token.js +45 -0
  42. package/esm/lib/services/auth/service/oauth2/token.js.map +1 -0
  43. package/esm/lib/services/groups/service/groups.d.ts.map +1 -1
  44. package/esm/lib/services/groups/service/groups.js +13 -12
  45. package/esm/lib/services/groups/service/groups.js.map +1 -1
  46. package/esm/lib/services/groups/service/membership.d.ts.map +1 -1
  47. package/esm/lib/services/groups/service/membership.js +7 -4
  48. package/esm/lib/services/groups/service/membership.js.map +1 -1
  49. package/esm/lib/services/groups/service/policies.d.ts +1 -1
  50. package/esm/lib/services/groups/service/policies.d.ts.map +1 -1
  51. package/esm/lib/services/groups/service/policies.js +7 -5
  52. package/esm/lib/services/groups/service/policies.js.map +1 -1
  53. package/esm/lib/services/shared.d.ts +2 -2
  54. package/esm/lib/services/shared.d.ts.map +1 -1
  55. package/esm/lib/services/shared.js +36 -5
  56. package/esm/lib/services/shared.js.map +1 -1
  57. package/esm/lib/services/transfer/config.js +1 -1
  58. package/esm/lib/services/transfer/config.js.map +1 -1
  59. package/esm/lib/services/types.d.ts +18 -2
  60. package/esm/lib/services/types.d.ts.map +1 -1
  61. package/package.json +1 -1
  62. package/umd/globus.production.js +1 -1
  63. package/cjs/lib/core/fetch.d.ts +0 -18
  64. package/cjs/lib/core/fetch.d.ts.map +0 -1
  65. package/cjs/lib/core/fetch.js +0 -34
  66. package/cjs/lib/core/fetch.js.map +0 -1
  67. package/cjs/lib/core/internals/fetch.d.ts +0 -2
  68. package/cjs/lib/core/internals/fetch.d.ts.map +0 -1
  69. package/cjs/lib/core/internals/fetch.js +0 -7
  70. package/cjs/lib/core/internals/fetch.js.map +0 -1
  71. package/esm/lib/core/fetch.d.ts +0 -18
  72. package/esm/lib/core/fetch.d.ts.map +0 -1
  73. package/esm/lib/core/fetch.js +0 -30
  74. package/esm/lib/core/fetch.js.map +0 -1
  75. package/esm/lib/core/internals/fetch.d.ts +0 -2
  76. package/esm/lib/core/internals/fetch.d.ts.map +0 -1
  77. package/esm/lib/core/internals/fetch.js +0 -3
  78. package/esm/lib/core/internals/fetch.js.map +0 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"token.js","sourceRoot":"","sources":["../../../../../../../src/lib/services/auth/service/oauth2/token.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,iBAAiB,CAAC;AACrC,OAAO,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AAI9E;;GAEG;AACH,SAAS,oBAAoB,CAAC,OAA6B;IACzD,uCACK,OAAO,KACV,IAAI,EAAE,IAAI,eAAe,CAAC,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,OAAiC,CAAC,CAAC,QAAQ,EAAE,EAChF,OAAO,kCACF,CAAC,CAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,OAAO,KAAI,EAAE,CAAC,KAC3B,cAAc,EAAE,mCAAmC,OAErD;AACJ,CAAC;AAED;;;GAGG;AACH,MAAM,CAAC,MAAM,UAAU,GAAG,UAAU,OAAO,EAAE,UAAW;IACtD,OAAO,cAAc,CACnB;QACE,OAAO,EAAE,EAAE;QACX,KAAK,EAAE,SAAS;QAChB,IAAI,EAAE,4BAA4B;QAClC,MAAM,EAAE,YAAY,CAAC,IAAI;KAC1B,EACD,oBAAoB,CAAC,OAAO,CAAC,EAC7B,UAAU,CACX,CAAC;AACJ,CAKE,CAAC;AAEH;;;GAGG;AACH,MAAM,CAAC,MAAM,MAAM,GAAG,UAAU,OAAO,EAAE,UAAW;IAClD,OAAO,cAAc,CACnB;QACE,OAAO,EAAE,EAAE;QACX,KAAK,EAAE,SAAS;QAChB,IAAI,EAAE,wBAAwB;QAC9B,MAAM,EAAE,YAAY,CAAC,IAAI;KAC1B,EACD,oBAAoB,CAAC,OAAO,CAAC,EAC7B,UAAU,CACX,CAAC;AACJ,CAKE,CAAC;AAEH;;;GAGG;AACH,MAAM,CAAC,MAAM,QAAQ,GAAG,UAAU,OAAO,EAAE,UAAW;IACpD,OAAO,cAAc,CACnB;QACE,OAAO,EAAE,EAAE;QACX,KAAK,EAAE,SAAS;QAChB,IAAI,EAAE,0BAA0B;QAChC,MAAM,EAAE,YAAY,CAAC,IAAI;KAC1B,EACD,oBAAoB,CAAC,OAAO,CAAC,EAC7B,UAAU,CACX,CAAC;AACJ,CAKE,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"groups.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/services/groups/service/groups.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAc,MAAM,sBAAsB,CAAC;AAKnE,OAAO,KAAK,EACV,iBAAiB,EAGlB,MAAM,gBAAgB,CAAC;AAExB;;GAEG;AACH,eAAO,MAAM,WAAW;;QAmBpB;;WAEG;;;;;;;;iFAlBJ,QACD,kBACE,UAAU,CAAC,uDAAuD,CAAC,CAAC,WAAW,CAAC,CAAC,KAAK,CAAC,CAAC,SAAS,CAAC,CAAC,kBAAkB,CAAC,CACvH,CAkBD,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,GAAG;YAqBJ,UAAU,CAAC,oCAAoC,CAAC,CAAC,YAAY,CAAC,CAAC,OAAO,CAAC;;;;;;iFAjBhF,QACD,kBACE,UAAU,CAAC,oCAAoC,CAAC,CAAC,WAAW,CAAC,CAAC,KAAK,CAAC,CAAC,SAAS,CAAC,CAAC,kBAAkB,CAAC,CACpG,CAgBF,CAAC"}
1
+ {"version":3,"file":"groups.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/services/groups/service/groups.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAc,MAAM,sBAAsB,CAAC;AAInE,OAAO,KAAK,EACV,iBAAiB,EAGlB,MAAM,gBAAgB,CAAC;AAExB;;GAEG;AACH,eAAO,MAAM,WAAW;;QAmBpB;;WAEG;;;;;;;;iFAlBJ,QACD,kBACE,UAAU,CAAC,uDAAuD,CAAC,CAAC,WAAW,CAAC,CAAC,KAAK,CAAC,CAAC,SAAS,CAAC,CAAC,kBAAkB,CAAC,CACvH,CAkBD,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,GAAG;YAqBJ,UAAU,CAAC,oCAAoC,CAAC,CAAC,YAAY,CAAC,CAAC,OAAO,CAAC;;;;;;iFAjBhF,QACD,kBACE,UAAU,CAAC,oCAAoC,CAAC,CAAC,WAAW,CAAC,CAAC,KAAK,CAAC,CAAC,SAAS,CAAC,CAAC,kBAAkB,CAAC,CACpG,CAgBF,CAAC"}
@@ -1,22 +1,23 @@
1
1
  import { ID, SCOPES } from '../config.js';
2
- import { build } from '../../../core/url.js';
3
- import { fetchWithScope } from '../../../core/fetch.js';
2
+ import { serviceRequest } from '../../shared.js';
4
3
  /**
5
4
  * @see https://groups.api.globus.org/redoc#tag/groups/operation/get_my_groups_and_memberships_v2_groups_my_groups_get
6
5
  */
7
- export const getMyGroups = function (options = {}, sdkOptions) {
8
- var _a;
9
- return fetchWithScope(SCOPES.ALL, build(ID, `/v2/groups/my_groups`, {
10
- search: options.query,
11
- }), Object.assign({}, (_a = sdkOptions === null || sdkOptions === void 0 ? void 0 : sdkOptions.fetch) === null || _a === void 0 ? void 0 : _a.options));
6
+ export const getMyGroups = function (options, sdkOptions) {
7
+ return serviceRequest({
8
+ scope: SCOPES.ALL,
9
+ path: `/v2/groups/my_groups`,
10
+ service: ID,
11
+ }, options, sdkOptions);
12
12
  };
13
13
  /**
14
14
  * @see https://groups.api.globus.org/redoc#tag/groups/operation/get_group_v2_groups__group_id__get
15
15
  */
16
- export const get = function (group_id, options = {}, sdkOptions) {
17
- var _a;
18
- return fetchWithScope(SCOPES.ALL, build(ID, `/v2/groups/${group_id}`, {
19
- search: options.query,
20
- }), Object.assign({}, (_a = sdkOptions === null || sdkOptions === void 0 ? void 0 : sdkOptions.fetch) === null || _a === void 0 ? void 0 : _a.options));
16
+ export const get = function (group_id, options, sdkOptions) {
17
+ return serviceRequest({
18
+ service: ID,
19
+ scope: SCOPES.ALL,
20
+ path: `/v2/groups/${group_id}`,
21
+ }, options, sdkOptions);
21
22
  };
22
23
  //# sourceMappingURL=groups.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"groups.js","sourceRoot":"","sources":["../../../../../../src/lib/services/groups/service/groups.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,EAAE,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAC7C,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAQxD;;GAEG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG,UACzB,OAAO,GAAG,EAAE,EACZ,UAAW;;IAMX,OAAO,cAAc,CACnB,MAAM,CAAC,GAAG,EACV,KAAK,CAAC,EAAE,EAAE,sBAAsB,EAAE;QAChC,MAAM,EAAE,OAAO,CAAC,KAAK;KACtB,CAAC,oBAEG,MAAA,UAAU,aAAV,UAAU,uBAAV,UAAU,CAAE,KAAK,0CAAE,OAAO,EAEhC,CAAC;AACJ,CAOE,CAAC;AAEH;;GAEG;AACH,MAAM,CAAC,MAAM,GAAG,GAAG,UACjB,QAAQ,EACR,OAAO,GAAG,EAAE,EACZ,UAAW;;IAMX,OAAO,cAAc,CACnB,MAAM,CAAC,GAAG,EACV,KAAK,CAAC,EAAE,EAAE,cAAc,QAAQ,EAAE,EAAE;QAClC,MAAM,EAAE,OAAO,CAAC,KAAK;KACtB,CAAC,oBAEG,MAAA,UAAU,aAAV,UAAU,uBAAV,UAAU,CAAE,KAAK,0CAAE,OAAO,EAEhC,CAAC;AACJ,CAKC,CAAC"}
1
+ {"version":3,"file":"groups.js","sourceRoot":"","sources":["../../../../../../src/lib/services/groups/service/groups.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,EAAE,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAQjD;;GAEG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG,UACzB,OAAQ,EACR,UAAW;IAMX,OAAO,cAAc,CACnB;QACE,KAAK,EAAE,MAAM,CAAC,GAAG;QACjB,IAAI,EAAE,sBAAsB;QAC5B,OAAO,EAAE,EAAE;KACZ,EACD,OAAO,EACP,UAAU,CACX,CAAC;AACJ,CAOE,CAAC;AAEH;;GAEG;AACH,MAAM,CAAC,MAAM,GAAG,GAAG,UACjB,QAAQ,EACR,OAAQ,EACR,UAAW;IAMX,OAAO,cAAc,CACnB;QACE,OAAO,EAAE,EAAE;QACX,KAAK,EAAE,MAAM,CAAC,GAAG;QACjB,IAAI,EAAE,cAAc,QAAQ,EAAE;KAC/B,EACD,OAAO,EACP,UAAU,CACX,CAAC;AACJ,CAKC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"membership.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/services/groups/service/membership.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAKvD,OAAO,KAAK,EAAE,iBAAiB,EAAgC,MAAM,gBAAgB,CAAC;AAEtF;;;GAGG;AACH,eAAO,MAAM,GAAG;aAkBH,UAAU,CAAC,yDAAyD,CAAC,CAAC,aAAa,CAAC,CAAC,SAAS,CAAC,CAAC,kBAAkB,CAAC;;;;;;iFAd7H,QACD,kBACE,UAAU,CAAC,yDAAyD,CAAC,CAAC,WAAW,CAAC,CAAC,KAAK,CAAC,CAAC,SAAS,CAAC,CAAC,kBAAkB,CAAC,CACzH,CAaF,CAAC"}
1
+ {"version":3,"file":"membership.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/services/groups/service/membership.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAIvD,OAAO,KAAK,EAAE,iBAAiB,EAAgC,MAAM,gBAAgB,CAAC;AAEtF;;;GAGG;AACH,eAAO,MAAM,GAAG;aAuBH,UAAU,CAAC,yDAAyD,CAAC,CAAC,aAAa,CAAC,CAAC,SAAS,CAAC,CAAC,kBAAkB,CAAC;;;;;;iFAnB7H,QACD,kBACE,UAAU,CAAC,yDAAyD,CAAC,CAAC,WAAW,CAAC,CAAC,KAAK,CAAC,CAAC,SAAS,CAAC,CAAC,kBAAkB,CAAC,CACzH,CAkBF,CAAC"}
@@ -1,14 +1,17 @@
1
1
  import { ID, SCOPES } from '../config.js';
2
- import { build } from '../../../core/url.js';
3
- import { fetchWithScope } from '../../../core/fetch.js';
2
+ import { HTTP_METHODS, serviceRequest } from '../../shared.js';
4
3
  /**
5
4
  * Perform actions on members of the group.
6
5
  * @see https://groups.api.globus.org/redoc#tag/groups/operation/group_membership_post_actions_v2_groups__group_id__post
7
6
  */
8
7
  export const act = function (group_id, options, sdkOptions) {
9
- var _a;
10
8
  if (!(options === null || options === void 0 ? void 0 : options.payload))
11
9
  throw new Error('payload is required.');
12
- return fetchWithScope(SCOPES.ALL, build(ID, `/v2/groups/${group_id}/policies`), Object.assign({ method: 'POST', body: JSON.stringify(options.payload) }, (_a = sdkOptions === null || sdkOptions === void 0 ? void 0 : sdkOptions.fetch) === null || _a === void 0 ? void 0 : _a.options));
10
+ return serviceRequest({
11
+ service: ID,
12
+ scope: SCOPES.ALL,
13
+ path: `/v2/groups/${group_id}`,
14
+ method: HTTP_METHODS.POST,
15
+ }, options, sdkOptions);
13
16
  };
14
17
  //# sourceMappingURL=membership.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"membership.js","sourceRoot":"","sources":["../../../../../../src/lib/services/groups/service/membership.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,EAAE,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAC7C,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAIxD;;;GAGG;AACH,MAAM,CAAC,MAAM,GAAG,GAAG,UACjB,QAAQ,EACR,OAAO,EACP,UAAW;;IAMX,IAAI,CAAC,CAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,OAAO,CAAA;QAAE,MAAM,IAAI,KAAK,CAAC,sBAAsB,CAAC,CAAC;IAC/D,OAAO,cAAc,CAAC,MAAM,CAAC,GAAG,EAAE,KAAK,CAAC,EAAE,EAAE,cAAc,QAAQ,WAAW,CAAC,kBAC5E,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,OAAO,CAAC,IAClC,MAAA,UAAU,aAAV,UAAU,uBAAV,UAAU,CAAE,KAAK,0CAAE,OAAO,EAC7B,CAAC;AACL,CAKC,CAAC"}
1
+ {"version":3,"file":"membership.js","sourceRoot":"","sources":["../../../../../../src/lib/services/groups/service/membership.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,EAAE,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAI/D;;;GAGG;AACH,MAAM,CAAC,MAAM,GAAG,GAAG,UACjB,QAAQ,EACR,OAAO,EACP,UAAW;IAMX,IAAI,CAAC,CAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,OAAO,CAAA;QAAE,MAAM,IAAI,KAAK,CAAC,sBAAsB,CAAC,CAAC;IAC/D,OAAO,cAAc,CACnB;QACE,OAAO,EAAE,EAAE;QACX,KAAK,EAAE,MAAM,CAAC,GAAG;QACjB,IAAI,EAAE,cAAc,QAAQ,EAAE;QAC9B,MAAM,EAAE,YAAY,CAAC,IAAI;KAC1B,EACD,OAAO,EACP,UAAU,CACX,CAAC;AACJ,CAKC,CAAC"}
@@ -3,7 +3,7 @@ import type { JSONFetchResponse } from '../../types.js';
3
3
  /**
4
4
  * @see https://groups.api.globus.org/redoc#tag/groups/operation/get_policies_v2_groups__group_id__policies_get
5
5
  */
6
- export declare const get: (group_id: string, _options?: ({
6
+ export declare const get: (group_id: string, options?: ({
7
7
  query?: undefined;
8
8
  payload?: undefined;
9
9
  } & {
@@ -1 +1 @@
1
- {"version":3,"file":"policies.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/services/groups/service/policies.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAKvD,OAAO,KAAK,EAAE,iBAAiB,EAAgC,MAAM,gBAAgB,CAAC;AAEtF;;GAEG;AACH,eAAO,MAAM,GAAG;;;;;;;;iFAIb,QACD,kBACE,UAAU,CAAC,gDAAgD,CAAC,CAAC,WAAW,CAAC,CAAC,KAAK,CAAC,CAAC,SAAS,CAAC,CAAC,kBAAkB,CAAC,CAChH,CAWF,CAAC"}
1
+ {"version":3,"file":"policies.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/services/groups/service/policies.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAIvD,OAAO,KAAK,EAAE,iBAAiB,EAAgC,MAAM,gBAAgB,CAAC;AAEtF;;GAEG;AACH,eAAO,MAAM,GAAG;;;;;;;;iFAIb,QACD,kBACE,UAAU,CAAC,gDAAgD,CAAC,CAAC,WAAW,CAAC,CAAC,KAAK,CAAC,CAAC,SAAS,CAAC,CAAC,kBAAkB,CAAC,CAChH,CAiBF,CAAC"}
@@ -1,11 +1,13 @@
1
1
  import { ID, SCOPES } from '../config.js';
2
- import { build } from '../../../core/url.js';
3
- import { fetchWithScope } from '../../../core/fetch.js';
2
+ import { serviceRequest } from '../../shared.js';
4
3
  /**
5
4
  * @see https://groups.api.globus.org/redoc#tag/groups/operation/get_policies_v2_groups__group_id__policies_get
6
5
  */
7
- export const get = function (group_id, _options, sdkOptions) {
8
- var _a;
9
- return fetchWithScope(SCOPES.ALL, build(ID, `/v2/groups/${group_id}/policies`), Object.assign({}, (_a = sdkOptions === null || sdkOptions === void 0 ? void 0 : sdkOptions.fetch) === null || _a === void 0 ? void 0 : _a.options));
6
+ export const get = function (group_id, options, sdkOptions) {
7
+ return serviceRequest({
8
+ scope: SCOPES.ALL,
9
+ path: `/v2/groups/${group_id}/policies`,
10
+ service: ID,
11
+ }, options, sdkOptions);
10
12
  };
11
13
  //# sourceMappingURL=policies.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"policies.js","sourceRoot":"","sources":["../../../../../../src/lib/services/groups/service/policies.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,EAAE,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAC7C,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAIxD;;GAEG;AACH,MAAM,CAAC,MAAM,GAAG,GAAG,UACjB,QAAQ,EACR,QAAS,EACT,UAAW;;IAMX,OAAO,cAAc,CAAC,MAAM,CAAC,GAAG,EAAE,KAAK,CAAC,EAAE,EAAE,cAAc,QAAQ,WAAW,CAAC,oBACzE,MAAA,UAAU,aAAV,UAAU,uBAAV,UAAU,CAAE,KAAK,0CAAE,OAAO,EAC7B,CAAC;AACL,CAMC,CAAC"}
1
+ {"version":3,"file":"policies.js","sourceRoot":"","sources":["../../../../../../src/lib/services/groups/service/policies.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,EAAE,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAIjD;;GAEG;AACH,MAAM,CAAC,MAAM,GAAG,GAAG,UACjB,QAAQ,EACR,OAAQ,EACR,UAAW;IAMX,OAAO,cAAc,CACnB;QACE,KAAK,EAAE,MAAM,CAAC,GAAG;QACjB,IAAI,EAAE,cAAc,QAAQ,WAAW;QACvC,OAAO,EAAE,EAAE;KACZ,EACD,OAAO,EACP,UAAU,CACX,CAAC;AACJ,CAMC,CAAC"}
@@ -18,9 +18,9 @@ type ServiceRequestDSL = {
18
18
  */
19
19
  service: Service | GCSConfiguration;
20
20
  /**
21
- * The scope that will be passed to `fetchWithScope`.
21
+ * The scope that will be passed to `getTokenForScope` and injected as an `Authorization` header if none is provided by the caller.
22
22
  */
23
- scope: string;
23
+ scope: string | undefined;
24
24
  /**
25
25
  * The path of the resource (appended to the service's host).
26
26
  */
@@ -1 +1 @@
1
- {"version":3,"file":"shared.d.ts","sourceRoot":"","sources":["../../../../src/lib/services/shared.ts"],"names":[],"mappings":"AAEA,OAAO,EAAiB,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAE3D,OAAO,KAAK,EAAE,oBAAoB,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AACnE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,4CAA4C,CAAC;AAGnF,oBAAY,YAAY;IACtB,IAAI,SAAS;IACb,GAAG,QAAQ;IACX,MAAM,WAAW;IACjB,GAAG,QAAQ;IACX,KAAK,UAAU;CAChB;AAED;;;GAGG;AACH,KAAK,iBAAiB,GAAG;IACvB;;OAEG;IACH,OAAO,EAAE,OAAO,GAAG,gBAAgB,CAAC;IACpC;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,MAAM,CAAC,EAAE,YAAY,CAAC;CACvB,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,cAAc,CAC5B,MAAM,EAAE,iBAAiB,EACzB,OAAO,CAAC,EAAE,oBAAoB,EAC9B,gBAAgB,CAAC,EAAE,UAAU,qBAiC9B"}
1
+ {"version":3,"file":"shared.d.ts","sourceRoot":"","sources":["../../../../src/lib/services/shared.ts"],"names":[],"mappings":"AAEA,OAAO,EAAiB,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAG3D,OAAO,KAAK,EAAE,oBAAoB,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AACnE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,4CAA4C,CAAC;AAGnF,oBAAY,YAAY;IACtB,IAAI,SAAS;IACb,GAAG,QAAQ;IACX,MAAM,WAAW;IACjB,GAAG,QAAQ;IACX,KAAK,UAAU;CAChB;AAED;;;GAGG;AACH,KAAK,iBAAiB,GAAG;IACvB;;OAEG;IACH,OAAO,EAAE,OAAO,GAAG,gBAAgB,CAAC;IACpC;;OAEG;IACH,KAAK,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,MAAM,CAAC,EAAE,YAAY,CAAC;CACvB,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,cAAc,CAC5B,MAAM,EAAE,iBAAiB,EACzB,OAAO,CAAC,EAAE,oBAAoB,EAC9B,gBAAgB,CAAC,EAAE,UAAU,qBAmE9B"}
@@ -1,6 +1,7 @@
1
- import { fetchWithScope } from '../core/fetch.js';
1
+ import _fetch from 'cross-fetch';
2
2
  import { build } from '../core/url.js';
3
3
  import { getSDKOptions } from '../core/global.js';
4
+ import { getTokenForScope } from '../core/consent.js';
4
5
  // eslint-disable-next-line @typescript-eslint/naming-convention
5
6
  export var HTTP_METHODS;
6
7
  (function (HTTP_METHODS) {
@@ -33,17 +34,47 @@ export var HTTP_METHODS;
33
34
  * @returns
34
35
  */
35
36
  export function serviceRequest(config, options, passedSdkOptions) {
36
- var _a, _b, _c;
37
+ var _a, _b;
37
38
  /**
38
39
  * Get the SDK options, merging any passed options with the global options.
39
40
  */
40
41
  const sdkOptions = getSDKOptions(passedSdkOptions);
41
- return fetchWithScope(config.scope, build(config.service, config.path, {
42
+ const injectedFetchOptions = ((_a = sdkOptions === null || sdkOptions === void 0 ? void 0 : sdkOptions.fetch) === null || _a === void 0 ? void 0 : _a.options) || {};
43
+ const headers = Object.assign(Object.assign({}, options === null || options === void 0 ? void 0 : options.headers), injectedFetchOptions.headers);
44
+ /**
45
+ * If a `scope` was provided, and there is no `Authorization` header
46
+ * provider, we'll try to get a token for the scope and use it.
47
+ */
48
+ if (config.scope && !(headers === null || headers === void 0 ? void 0 : headers['Authorization'])) {
49
+ const token = getTokenForScope(config.scope);
50
+ if (token) {
51
+ headers['Authorization'] = token;
52
+ }
53
+ }
54
+ /**
55
+ * If a raw body was provided, use that. Otherwise, if a payload was provided, serialize it.
56
+ */
57
+ const body = ((_b = options === null || options === void 0 ? void 0 : options.body) !== null && _b !== void 0 ? _b : options === null || options === void 0 ? void 0 : options.payload) ? JSON.stringify(options.payload) : undefined;
58
+ /**
59
+ * If `Content-Type` header was not provided, and there is a body, we assume it is JSON.
60
+ */
61
+ if (!(headers === null || headers === void 0 ? void 0 : headers['Content-Type']) && body) {
62
+ headers['Content-Type'] = 'application/json';
63
+ }
64
+ const url = build(config.service, config.path, {
42
65
  search: options === null || options === void 0 ? void 0 : options.query,
43
- }, sdkOptions), Object.assign(Object.assign({ method: config.method, body: (options === null || options === void 0 ? void 0 : options.payload) ? JSON.stringify(options.payload) : undefined }, (_a = sdkOptions === null || sdkOptions === void 0 ? void 0 : sdkOptions.fetch) === null || _a === void 0 ? void 0 : _a.options), {
66
+ }, sdkOptions);
67
+ const init = Object.assign(Object.assign({ method: config.method, body }, injectedFetchOptions), {
44
68
  /**
45
69
  * Merge the headers from the options and SDK options.
46
70
  */
47
- headers: Object.assign(Object.assign({}, options === null || options === void 0 ? void 0 : options.headers), (_c = (_b = sdkOptions === null || sdkOptions === void 0 ? void 0 : sdkOptions.fetch) === null || _b === void 0 ? void 0 : _b.options) === null || _c === void 0 ? void 0 : _c.headers) }));
71
+ headers });
72
+ /* eslint-disable no-underscore-dangle */
73
+ if (injectedFetchOptions === null || injectedFetchOptions === void 0 ? void 0 : injectedFetchOptions.__callable) {
74
+ delete init.__callable;
75
+ return injectedFetchOptions.__callable(url, init);
76
+ }
77
+ /* eslint-enable no-underscore-dangle */
78
+ return _fetch(url, init);
48
79
  }
49
80
  //# sourceMappingURL=shared.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"shared.js","sourceRoot":"","sources":["../../../../src/lib/services/shared.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AACvC,OAAO,EAAE,aAAa,EAAW,MAAM,mBAAmB,CAAC;AAK3D,gEAAgE;AAChE,MAAM,CAAN,IAAY,YAMX;AAND,WAAY,YAAY;IACtB,6BAAa,CAAA;IACb,2BAAW,CAAA;IACX,iCAAiB,CAAA;IACjB,2BAAW,CAAA;IACX,+BAAe,CAAA;AACjB,CAAC,EANW,YAAY,KAAZ,YAAY,QAMvB;AAyBD;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,MAAM,UAAU,cAAc,CAC5B,MAAyB,EACzB,OAA8B,EAC9B,gBAA6B;;IAE7B;;OAEG;IACH,MAAM,UAAU,GAAG,aAAa,CAAC,gBAAgB,CAAC,CAAC;IACnD,OAAO,cAAc,CACnB,MAAM,CAAC,KAAK,EACZ,KAAK,CACH,MAAM,CAAC,OAAO,EACd,MAAM,CAAC,IAAI,EACX;QACE,MAAM,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,KAAK;KACvB,EACD,UAAU,CACX,gCAEC,MAAM,EAAE,MAAM,CAAC,MAAM,EACrB,IAAI,EAAE,CAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,OAAO,EAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,IACjE,MAAA,UAAU,aAAV,UAAU,uBAAV,UAAU,CAAE,KAAK,0CAAE,OAAO;QAC7B;;WAEG;QACH,OAAO,kCACF,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,OAAO,GAKhB,MAAA,MAAA,UAAU,aAAV,UAAU,uBAAV,UAAU,CAAE,KAAK,0CAAE,OAAO,0CAAE,OAAO,KAG3C,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"shared.js","sourceRoot":"","sources":["../../../../src/lib/services/shared.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,aAAa,CAAC;AACjC,OAAO,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AACvC,OAAO,EAAE,aAAa,EAAW,MAAM,mBAAmB,CAAC;AAC3D,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAKtD,gEAAgE;AAChE,MAAM,CAAN,IAAY,YAMX;AAND,WAAY,YAAY;IACtB,6BAAa,CAAA;IACb,2BAAW,CAAA;IACX,iCAAiB,CAAA;IACjB,2BAAW,CAAA;IACX,+BAAe,CAAA;AACjB,CAAC,EANW,YAAY,KAAZ,YAAY,QAMvB;AAyBD;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,MAAM,UAAU,cAAc,CAC5B,MAAyB,EACzB,OAA8B,EAC9B,gBAA6B;;IAE7B;;OAEG;IACH,MAAM,UAAU,GAAG,aAAa,CAAC,gBAAgB,CAAC,CAAC;IACnD,MAAM,oBAAoB,GAAG,CAAA,MAAA,UAAU,aAAV,UAAU,uBAAV,UAAU,CAAE,KAAK,0CAAE,OAAO,KAAI,EAAE,CAAC;IAE9D,MAAM,OAAO,mCACR,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,OAAO,GAKhB,oBAAoB,CAAC,OAAO,CAChC,CAAC;IAEF;;;OAGG;IACH,IAAI,MAAM,CAAC,KAAK,IAAI,CAAC,CAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAG,eAAe,CAAC,CAAA,EAAE;QAC/C,MAAM,KAAK,GAAG,gBAAgB,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;QAC7C,IAAI,KAAK,EAAE;YACT,OAAO,CAAC,eAAe,CAAC,GAAG,KAAK,CAAC;SAClC;KACF;IAED;;OAEG;IACH,MAAM,IAAI,GAAG,CAAA,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,IAAI,mCAAI,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,OAAO,EAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;IAE7F;;OAEG;IACH,IAAI,CAAC,CAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAG,cAAc,CAAC,CAAA,IAAI,IAAI,EAAE;QACtC,OAAO,CAAC,cAAc,CAAC,GAAG,kBAAkB,CAAC;KAC9C;IAED,MAAM,GAAG,GAAG,KAAK,CACf,MAAM,CAAC,OAAO,EACd,MAAM,CAAC,IAAI,EACX;QACE,MAAM,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,KAAK;KACvB,EACD,UAAU,CACX,CAAC;IAEF,MAAM,IAAI,iCACR,MAAM,EAAE,MAAM,CAAC,MAAM,EACrB,IAAI,IACD,oBAAoB;QACvB;;WAEG;QACH,OAAO,GACR,CAAC;IAEF,yCAAyC;IACzC,IAAI,oBAAoB,aAApB,oBAAoB,uBAApB,oBAAoB,CAAE,UAAU,EAAE;QACpC,OAAO,IAAI,CAAC,UAAU,CAAC;QACvB,OAAO,oBAAoB,CAAC,UAAU,CAAC,GAAG,EAAE,IAAI,CAAC,CAAC;KACnD;IACD,wCAAwC;IAExC,OAAO,MAAM,CAAC,GAAG,EAAE,IAAI,CAAC,CAAC;AAC3B,CAAC"}
@@ -3,7 +3,7 @@ export const SCOPES = {
3
3
  ALL: 'urn:globus:auth:scope:transfer.api.globus.org:all',
4
4
  };
5
5
  export const HOSTS = {
6
- sandbox: 'transfer.sandbox.globuscs.info',
6
+ sandbox: 'transfer.api.sandbox.globuscs.info',
7
7
  production: 'transfer.api.globusonline.org',
8
8
  staging: 'transfer.api.staging.globuscs.info',
9
9
  integration: 'transfer.api.integration.globuscs.info',
@@ -1 +1 @@
1
- {"version":3,"file":"config.js","sourceRoot":"","sources":["../../../../../src/lib/services/transfer/config.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,EAAE,GAAG,UAAU,CAAC;AAE7B,MAAM,CAAC,MAAM,MAAM,GAAG;IACpB,GAAG,EAAE,mDAAmD;CACzD,CAAC;AAEF,MAAM,CAAC,MAAM,KAAK,GAAyC;IACzD,OAAO,EAAE,gCAAgC;IACzC,UAAU,EAAE,+BAA+B;IAC3C,OAAO,EAAE,oCAAoC;IAC7C,WAAW,EAAE,wCAAwC;IACrD,IAAI,EAAE,iCAAiC;IACvC,OAAO,EAAE,iCAAiC;CAC3C,CAAC"}
1
+ {"version":3,"file":"config.js","sourceRoot":"","sources":["../../../../../src/lib/services/transfer/config.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,EAAE,GAAG,UAAU,CAAC;AAE7B,MAAM,CAAC,MAAM,MAAM,GAAG;IACpB,GAAG,EAAE,mDAAmD;CACzD,CAAC;AAEF,MAAM,CAAC,MAAM,KAAK,GAAyC;IACzD,OAAO,EAAE,oCAAoC;IAC7C,UAAU,EAAE,+BAA+B;IAC3C,OAAO,EAAE,oCAAoC;IAC7C,WAAW,EAAE,wCAAwC;IACrD,IAAI,EAAE,iCAAiC;IACvC,OAAO,EAAE,iCAAiC;CAC3C,CAAC"}
@@ -1,9 +1,21 @@
1
1
  import { stringifyParameters } from '../core/url.js';
2
2
  import { ENVIRONMENTS } from '../core/global.js';
3
- import type { FetchOverrides } from '../core/fetch.js';
4
3
  export interface JSONFetchResponse<Res> extends Response {
5
4
  json(): Promise<Res>;
6
5
  }
6
+ /**
7
+ * Properties that will be passed to underlying `fetch` calls to override behavior.
8
+ * @see https://developer.mozilla.org/en-US/docs/Web/API/fetch#parameters
9
+ */
10
+ type FetchOverrides = (Omit<RequestInit, 'headers'> & {
11
+ headers?: Record<string, string>;
12
+ /**
13
+ * Provide an implementation of `fetch` to be used.
14
+ * This is currently **not** advertised since we do not dynamically import `cross-fetch` yet.
15
+ * @private
16
+ */
17
+ __callable?: typeof fetch;
18
+ }) | undefined;
7
19
  export type SDKOptions = {
8
20
  environment?: (typeof ENVIRONMENTS)[keyof typeof ENVIRONMENTS];
9
21
  fetch?: {
@@ -39,9 +51,13 @@ export type BaseServiceMethodOptions = {
39
51
  */
40
52
  query?: UnknownQueryParameters;
41
53
  /**
42
- * The body of the request.
54
+ * The payload of the request that will be serialized to the body.
43
55
  */
44
56
  payload?: Record<string, unknown>;
57
+ /**
58
+ * Used to send an unmodified body as part of the request.
59
+ */
60
+ body?: any;
45
61
  /**
46
62
  * The headers to send with the request.
47
63
  */
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/lib/services/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AACrD,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAEjD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAEvD,MAAM,WAAW,iBAAiB,CAAC,GAAG,CAAE,SAAQ,QAAQ;IACtD,IAAI,IAAI,OAAO,CAAC,GAAG,CAAC,CAAC;CACtB;AAED,MAAM,MAAM,UAAU,GAAG;IACvB,WAAW,CAAC,EAAE,CAAC,OAAO,YAAY,CAAC,CAAC,MAAM,OAAO,YAAY,CAAC,CAAC;IAC/D,KAAK,CAAC,EAAE;QACN,OAAO,EAAE,cAAc,CAAC;KACzB,CAAC;CACH,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,qBAAqB,GAAG;IAClC;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;IAC9C;;;OAGG;IACH,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACnC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAC/B,CAAC;AAEF;;;GAGG;AACH,KAAK,sBAAsB,GAAG,UAAU,CAAC,OAAO,mBAAmB,CAAC,CAAC,CAAC,CAAC,CAAC;AAExE,MAAM,MAAM,OAAO,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAE7C,MAAM,MAAM,wBAAwB,GAAG;IACrC;;OAEG;IACH,KAAK,CAAC,EAAE,sBAAsB,CAAC;IAC/B;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAClC;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAAG,wBAAwB,GAAG,SAAS,GAAG,KAAK,CAAC;AAEhF,MAAM,MAAM,OAAO,GAAG,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAEtD,MAAM,MAAM,aAAa,CAAC,CAAC,SAAS,oBAAoB,EAAE,CAAC,SAAS,QAAQ,GAAG,QAAQ,IAAI,CACzF,aAAa,CAAC,EAAE,CAAC,GAAG;IAClB,KAAK,CAAC,EAAE,wBAAwB,CAAC,OAAO,CAAC,CAAC;IAC1C,OAAO,CAAC,EAAE,wBAAwB,CAAC,SAAS,CAAC,CAAC;CAC/C,EACD,UAAU,CAAC,EAAE,UAAU,KACpB,OAAO,CAAC,CAAC,CAAC,CAAC;AAEhB,MAAM,MAAM,4BAA4B,CACtC,CAAC,SAAS,OAAO,EACjB,CAAC,SAAS,oBAAoB,EAC9B,CAAC,SAAS,QAAQ,GAAG,QAAQ,IAC3B,CACF,QAAQ,EAAE,CAAC,EACX,aAAa,CAAC,EAAE,CAAC,GAAG;IAClB,KAAK,CAAC,EAAE,wBAAwB,CAAC,OAAO,CAAC,CAAC;IAC1C,OAAO,CAAC,EAAE,wBAAwB,CAAC,SAAS,CAAC,CAAC;CAC/C,EACD,UAAU,CAAC,EAAE,UAAU,KACpB,OAAO,CAAC,CAAC,CAAC,CAAC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/lib/services/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AACrD,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAEjD,MAAM,WAAW,iBAAiB,CAAC,GAAG,CAAE,SAAQ,QAAQ;IACtD,IAAI,IAAI,OAAO,CAAC,GAAG,CAAC,CAAC;CACtB;AAED;;;GAGG;AACH,KAAK,cAAc,GACf,CAAC,IAAI,CAAC,WAAW,EAAE,SAAS,CAAC,GAAG;IAC9B,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACjC;;;;OAIG;IACH,UAAU,CAAC,EAAE,OAAO,KAAK,CAAC;CAC3B,CAAC,GACF,SAAS,CAAC;AAEd,MAAM,MAAM,UAAU,GAAG;IACvB,WAAW,CAAC,EAAE,CAAC,OAAO,YAAY,CAAC,CAAC,MAAM,OAAO,YAAY,CAAC,CAAC;IAC/D,KAAK,CAAC,EAAE;QACN,OAAO,EAAE,cAAc,CAAC;KACzB,CAAC;CACH,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,qBAAqB,GAAG;IAClC;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;IAC9C;;;OAGG;IACH,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACnC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAC/B,CAAC;AAEF;;;GAGG;AACH,KAAK,sBAAsB,GAAG,UAAU,CAAC,OAAO,mBAAmB,CAAC,CAAC,CAAC,CAAC,CAAC;AAExE,MAAM,MAAM,OAAO,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAE7C,MAAM,MAAM,wBAAwB,GAAG;IACrC;;OAEG;IACH,KAAK,CAAC,EAAE,sBAAsB,CAAC;IAC/B;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAClC;;OAEG;IACH,IAAI,CAAC,EAAE,GAAG,CAAC;IACX;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAAG,wBAAwB,GAAG,SAAS,GAAG,KAAK,CAAC;AAEhF,MAAM,MAAM,OAAO,GAAG,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAEtD,MAAM,MAAM,aAAa,CAAC,CAAC,SAAS,oBAAoB,EAAE,CAAC,SAAS,QAAQ,GAAG,QAAQ,IAAI,CACzF,aAAa,CAAC,EAAE,CAAC,GAAG;IAClB,KAAK,CAAC,EAAE,wBAAwB,CAAC,OAAO,CAAC,CAAC;IAC1C,OAAO,CAAC,EAAE,wBAAwB,CAAC,SAAS,CAAC,CAAC;CAC/C,EACD,UAAU,CAAC,EAAE,UAAU,KACpB,OAAO,CAAC,CAAC,CAAC,CAAC;AAEhB,MAAM,MAAM,4BAA4B,CACtC,CAAC,SAAS,OAAO,EACjB,CAAC,SAAS,oBAAoB,EAC9B,CAAC,SAAS,QAAQ,GAAG,QAAQ,IAC3B,CACF,QAAQ,EAAE,CAAC,EACX,aAAa,CAAC,EAAE,CAAC,GAAG;IAClB,KAAK,CAAC,EAAE,wBAAwB,CAAC,OAAO,CAAC,CAAC;IAC1C,OAAO,CAAC,EAAE,wBAAwB,CAAC,SAAS,CAAC,CAAC;CAC/C,EACD,UAAU,CAAC,EAAE,UAAU,KACpB,OAAO,CAAC,CAAC,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@globus/sdk",
3
- "version": "1.17.0",
3
+ "version": "1.18.1",
4
4
  "private": false,
5
5
  "description": "The Globus SDK for Javascript",
6
6
  "main": "cjs/index.js",
@@ -1 +1 @@
1
- var globus;(()=>{var e={98:(e,t,r)=>{var n="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==r.g&&r.g,o=function(){function e(){this.fetch=!1,this.DOMException=n.DOMException}return e.prototype=n,new e}();!function(e){!function(t){var r=void 0!==e&&e||"undefined"!=typeof self&&self||void 0!==r&&r,n="URLSearchParams"in r,o="Symbol"in r&&"iterator"in Symbol,i="FileReader"in r&&"Blob"in r&&function(){try{return new Blob,!0}catch(e){return!1}}(),s="FormData"in r,a="ArrayBuffer"in r;if(a)var c=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],u=ArrayBuffer.isView||function(e){return e&&c.indexOf(Object.prototype.toString.call(e))>-1};function p(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||""===e)throw new TypeError('Invalid character in header field name: "'+e+'"');return e.toLowerCase()}function h(e){return"string"!=typeof e&&(e=String(e)),e}function l(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return o&&(t[Symbol.iterator]=function(){return t}),t}function d(e){this.map={},e instanceof d?e.forEach((function(e,t){this.append(t,e)}),this):Array.isArray(e)?e.forEach((function(e){this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function f(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function g(e){return new Promise((function(t,r){e.onload=function(){t(e.result)},e.onerror=function(){r(e.error)}}))}function v(e){var t=new FileReader,r=g(t);return t.readAsArrayBuffer(e),r}function y(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function b(){return this.bodyUsed=!1,this._initBody=function(e){var t;this.bodyUsed=this.bodyUsed,this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:i&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:s&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:n&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():a&&i&&(t=e)&&DataView.prototype.isPrototypeOf(t)?(this._bodyArrayBuffer=y(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):a&&(ArrayBuffer.prototype.isPrototypeOf(e)||u(e))?this._bodyArrayBuffer=y(e):this._bodyText=e=Object.prototype.toString.call(e):this._bodyText="",this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):n&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},i&&(this.blob=function(){var e=f(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?f(this)||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer)):this.blob().then(v)}),this.text=function(){var e,t,r,n=f(this);if(n)return n;if(this._bodyBlob)return e=this._bodyBlob,r=g(t=new FileReader),t.readAsText(e),r;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),r=new Array(t.length),n=0;n<t.length;n++)r[n]=String.fromCharCode(t[n]);return r.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},s&&(this.formData=function(){return this.text().then(_)}),this.json=function(){return this.text().then(JSON.parse)},this}d.prototype.append=function(e,t){e=p(e),t=h(t);var r=this.map[e];this.map[e]=r?r+", "+t:t},d.prototype.delete=function(e){delete this.map[p(e)]},d.prototype.get=function(e){return e=p(e),this.has(e)?this.map[e]:null},d.prototype.has=function(e){return this.map.hasOwnProperty(p(e))},d.prototype.set=function(e,t){this.map[p(e)]=h(t)},d.prototype.forEach=function(e,t){for(var r in this.map)this.map.hasOwnProperty(r)&&e.call(t,this.map[r],r,this)},d.prototype.keys=function(){var e=[];return this.forEach((function(t,r){e.push(r)})),l(e)},d.prototype.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),l(e)},d.prototype.entries=function(){var e=[];return this.forEach((function(t,r){e.push([r,t])})),l(e)},o&&(d.prototype[Symbol.iterator]=d.prototype.entries);var m=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function w(e,t){if(!(this instanceof w))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var r,n,o=(t=t||{}).body;if(e instanceof w){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new d(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,o||null==e._bodyInit||(o=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new d(t.headers)),this.method=(n=(r=t.method||this.method||"GET").toUpperCase(),m.indexOf(n)>-1?n:r),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&o)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(o),!("GET"!==this.method&&"HEAD"!==this.method||"no-store"!==t.cache&&"no-cache"!==t.cache)){var i=/([?&])_=[^&]*/;i.test(this.url)?this.url=this.url.replace(i,"$1_="+(new Date).getTime()):this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}function _(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var r=e.split("="),n=r.shift().replace(/\+/g," "),o=r.join("=").replace(/\+/g," ");t.append(decodeURIComponent(n),decodeURIComponent(o))}})),t}function O(e,t){if(!(this instanceof O))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText=void 0===t.statusText?"":""+t.statusText,this.headers=new d(t.headers),this.url=t.url||"",this._initBody(e)}w.prototype.clone=function(){return new w(this,{body:this._bodyInit})},b.call(w.prototype),b.call(O.prototype),O.prototype.clone=function(){return new O(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new d(this.headers),url:this.url})},O.error=function(){var e=new O(null,{status:0,statusText:""});return e.type="error",e};var A=[301,302,303,307,308];O.redirect=function(e,t){if(-1===A.indexOf(t))throw new RangeError("Invalid status code");return new O(null,{status:t,headers:{location:e}})},t.DOMException=r.DOMException;try{new t.DOMException}catch(e){t.DOMException=function(e,t){this.message=e,this.name=t;var r=Error(e);this.stack=r.stack},t.DOMException.prototype=Object.create(Error.prototype),t.DOMException.prototype.constructor=t.DOMException}function S(e,n){return new Promise((function(o,s){var c=new w(e,n);if(c.signal&&c.signal.aborted)return s(new t.DOMException("Aborted","AbortError"));var u=new XMLHttpRequest;function p(){u.abort()}u.onload=function(){var e,t,r={status:u.status,statusText:u.statusText,headers:(e=u.getAllResponseHeaders()||"",t=new d,e.replace(/\r?\n[\t ]+/g," ").split("\r").map((function(e){return 0===e.indexOf("\n")?e.substr(1,e.length):e})).forEach((function(e){var r=e.split(":"),n=r.shift().trim();if(n){var o=r.join(":").trim();t.append(n,o)}})),t)};r.url="responseURL"in u?u.responseURL:r.headers.get("X-Request-URL");var n="response"in u?u.response:u.responseText;setTimeout((function(){o(new O(n,r))}),0)},u.onerror=function(){setTimeout((function(){s(new TypeError("Network request failed"))}),0)},u.ontimeout=function(){setTimeout((function(){s(new TypeError("Network request failed"))}),0)},u.onabort=function(){setTimeout((function(){s(new t.DOMException("Aborted","AbortError"))}),0)},u.open(c.method,function(e){try{return""===e&&r.location.href?r.location.href:e}catch(t){return e}}(c.url),!0),"include"===c.credentials?u.withCredentials=!0:"omit"===c.credentials&&(u.withCredentials=!1),"responseType"in u&&(i?u.responseType="blob":a&&c.headers.get("Content-Type")&&-1!==c.headers.get("Content-Type").indexOf("application/octet-stream")&&(u.responseType="arraybuffer")),!n||"object"!=typeof n.headers||n.headers instanceof d?c.headers.forEach((function(e,t){u.setRequestHeader(t,e)})):Object.getOwnPropertyNames(n.headers).forEach((function(e){u.setRequestHeader(e,h(n.headers[e]))})),c.signal&&(c.signal.addEventListener("abort",p),u.onreadystatechange=function(){4===u.readyState&&c.signal.removeEventListener("abort",p)}),u.send(void 0===c._bodyInit?null:c._bodyInit)}))}S.polyfill=!0,r.fetch||(r.fetch=S,r.Headers=d,r.Request=w,r.Response=O),t.Headers=d,t.Request=w,t.Response=O,t.fetch=S}({})}(o),o.fetch.ponyfill=!0,delete o.fetch.polyfill;var i=n.fetch?n:o;(t=i.fetch).default=i.fetch,t.fetch=i.fetch,t.Headers=i.Headers,t.Request=i.Request,t.Response=i.Response,e.exports=t},249:function(e,t,r){var n;e.exports=(n=n||function(e,t){var n;if("undefined"!=typeof window&&window.crypto&&(n=window.crypto),"undefined"!=typeof self&&self.crypto&&(n=self.crypto),"undefined"!=typeof globalThis&&globalThis.crypto&&(n=globalThis.crypto),!n&&"undefined"!=typeof window&&window.msCrypto&&(n=window.msCrypto),!n&&void 0!==r.g&&r.g.crypto&&(n=r.g.crypto),!n)try{n=r(480)}catch(e){}var o=function(){if(n){if("function"==typeof n.getRandomValues)try{return n.getRandomValues(new Uint32Array(1))[0]}catch(e){}if("function"==typeof n.randomBytes)try{return n.randomBytes(4).readInt32LE()}catch(e){}}throw new Error("Native crypto module could not be used to get secure random number.")},i=Object.create||function(){function e(){}return function(t){var r;return e.prototype=t,r=new e,e.prototype=null,r}}(),s={},a=s.lib={},c=a.Base={extend:function(e){var t=i(this);return e&&t.mixIn(e),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}},u=a.WordArray=c.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=null!=t?t:4*e.length},toString:function(e){return(e||h).stringify(this)},concat:function(e){var t=this.words,r=e.words,n=this.sigBytes,o=e.sigBytes;if(this.clamp(),n%4)for(var i=0;i<o;i++){var s=r[i>>>2]>>>24-i%4*8&255;t[n+i>>>2]|=s<<24-(n+i)%4*8}else for(var a=0;a<o;a+=4)t[n+a>>>2]=r[a>>>2];return this.sigBytes+=o,this},clamp:function(){var t=this.words,r=this.sigBytes;t[r>>>2]&=4294967295<<32-r%4*8,t.length=e.ceil(r/4)},clone:function(){var e=c.clone.call(this);return e.words=this.words.slice(0),e},random:function(e){for(var t=[],r=0;r<e;r+=4)t.push(o());return new u.init(t,e)}}),p=s.enc={},h=p.Hex={stringify:function(e){for(var t=e.words,r=e.sigBytes,n=[],o=0;o<r;o++){var i=t[o>>>2]>>>24-o%4*8&255;n.push((i>>>4).toString(16)),n.push((15&i).toString(16))}return n.join("")},parse:function(e){for(var t=e.length,r=[],n=0;n<t;n+=2)r[n>>>3]|=parseInt(e.substr(n,2),16)<<24-n%8*4;return new u.init(r,t/2)}},l=p.Latin1={stringify:function(e){for(var t=e.words,r=e.sigBytes,n=[],o=0;o<r;o++){var i=t[o>>>2]>>>24-o%4*8&255;n.push(String.fromCharCode(i))}return n.join("")},parse:function(e){for(var t=e.length,r=[],n=0;n<t;n++)r[n>>>2]|=(255&e.charCodeAt(n))<<24-n%4*8;return new u.init(r,t)}},d=p.Utf8={stringify:function(e){try{return decodeURIComponent(escape(l.stringify(e)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function(e){return l.parse(unescape(encodeURIComponent(e)))}},f=a.BufferedBlockAlgorithm=c.extend({reset:function(){this._data=new u.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=d.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var r,n=this._data,o=n.words,i=n.sigBytes,s=this.blockSize,a=i/(4*s),c=(a=t?e.ceil(a):e.max((0|a)-this._minBufferSize,0))*s,p=e.min(4*c,i);if(c){for(var h=0;h<c;h+=s)this._doProcessBlock(o,h);r=o.splice(0,c),n.sigBytes-=p}return new u.init(r,p)},clone:function(){var e=c.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0}),g=(a.Hasher=f.extend({cfg:c.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){f.reset.call(this),this._doReset()},update:function(e){return this._append(e),this._process(),this},finalize:function(e){return e&&this._append(e),this._doFinalize()},blockSize:16,_createHelper:function(e){return function(t,r){return new e.init(r).finalize(t)}},_createHmacHelper:function(e){return function(t,r){return new g.HMAC.init(e,r).finalize(t)}}}),s.algo={});return s}(Math),n)},269:function(e,t,r){var n,o,i;e.exports=(n=r(249),i=(o=n).lib.WordArray,o.enc.Base64={stringify:function(e){var t=e.words,r=e.sigBytes,n=this._map;e.clamp();for(var o=[],i=0;i<r;i+=3)for(var s=(t[i>>>2]>>>24-i%4*8&255)<<16|(t[i+1>>>2]>>>24-(i+1)%4*8&255)<<8|t[i+2>>>2]>>>24-(i+2)%4*8&255,a=0;a<4&&i+.75*a<r;a++)o.push(n.charAt(s>>>6*(3-a)&63));var c=n.charAt(64);if(c)for(;o.length%4;)o.push(c);return o.join("")},parse:function(e){var t=e.length,r=this._map,n=this._reverseMap;if(!n){n=this._reverseMap=[];for(var o=0;o<r.length;o++)n[r.charCodeAt(o)]=o}var s=r.charAt(64);if(s){var a=e.indexOf(s);-1!==a&&(t=a)}return function(e,t,r){for(var n=[],o=0,s=0;s<t;s++)if(s%4){var a=r[e.charCodeAt(s-1)]<<s%4*2|r[e.charCodeAt(s)]>>>6-s%4*2;n[o>>>2]|=a<<24-o%4*8,o++}return i.create(n,o)}(e,t,n)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="},n.enc.Base64)},433:function(e,t,r){var n;e.exports=(n=r(249),function(){if("function"==typeof ArrayBuffer){var e=n.lib.WordArray,t=e.init,r=e.init=function(e){if(e instanceof ArrayBuffer&&(e=new Uint8Array(e)),(e instanceof Int8Array||"undefined"!=typeof Uint8ClampedArray&&e instanceof Uint8ClampedArray||e instanceof Int16Array||e instanceof Uint16Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Float32Array||e instanceof Float64Array)&&(e=new Uint8Array(e.buffer,e.byteOffset,e.byteLength)),e instanceof Uint8Array){for(var r=e.byteLength,n=[],o=0;o<r;o++)n[o>>>2]|=e[o]<<24-o%4*8;t.call(this,n,r)}else t.apply(this,arguments)};r.prototype=e}}(),n.lib.WordArray)},153:function(e,t,r){var n;e.exports=(n=r(249),function(e){var t=n,r=t.lib,o=r.WordArray,i=r.Hasher,s=t.algo,a=[],c=[];!function(){function t(t){for(var r=e.sqrt(t),n=2;n<=r;n++)if(!(t%n))return!1;return!0}function r(e){return 4294967296*(e-(0|e))|0}for(var n=2,o=0;o<64;)t(n)&&(o<8&&(a[o]=r(e.pow(n,.5))),c[o]=r(e.pow(n,1/3)),o++),n++}();var u=[],p=s.SHA256=i.extend({_doReset:function(){this._hash=new o.init(a.slice(0))},_doProcessBlock:function(e,t){for(var r=this._hash.words,n=r[0],o=r[1],i=r[2],s=r[3],a=r[4],p=r[5],h=r[6],l=r[7],d=0;d<64;d++){if(d<16)u[d]=0|e[t+d];else{var f=u[d-15],g=(f<<25|f>>>7)^(f<<14|f>>>18)^f>>>3,v=u[d-2],y=(v<<15|v>>>17)^(v<<13|v>>>19)^v>>>10;u[d]=g+u[d-7]+y+u[d-16]}var b=n&o^n&i^o&i,m=(n<<30|n>>>2)^(n<<19|n>>>13)^(n<<10|n>>>22),w=l+((a<<26|a>>>6)^(a<<21|a>>>11)^(a<<7|a>>>25))+(a&p^~a&h)+c[d]+u[d];l=h,h=p,p=a,a=s+w|0,s=i,i=o,o=n,n=w+(m+b)|0}r[0]=r[0]+n|0,r[1]=r[1]+o|0,r[2]=r[2]+i|0,r[3]=r[3]+s|0,r[4]=r[4]+a|0,r[5]=r[5]+p|0,r[6]=r[6]+h|0,r[7]=r[7]+l|0},_doFinalize:function(){var t=this._data,r=t.words,n=8*this._nDataBytes,o=8*t.sigBytes;return r[o>>>5]|=128<<24-o%32,r[14+(o+64>>>9<<4)]=e.floor(n/4294967296),r[15+(o+64>>>9<<4)]=n,t.sigBytes=4*r.length,this._process(),this._hash},clone:function(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e}});t.SHA256=i._createHelper(p),t.HmacSHA256=i._createHmacHelper(p)}(Math),n.SHA256)},899:function(e,t,r){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},n.apply(this,arguments)},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=o(r(153)),s=o(r(269)),a=o(r(433)),c=function(){function e(e){this.state="",this.codeVerifier="",this.corsRequestOptions={},this.config=e}return e.prototype.enableCorsCredentials=function(e){return this.corsRequestOptions=e?{credentials:"include",mode:"cors"}:{},this.corsRequestOptions},e.prototype.authorizeUrl=function(e){void 0===e&&(e={});var t=this.pkceChallengeFromVerifier(),r=new URLSearchParams(Object.assign({response_type:"code",client_id:this.config.client_id,state:this.getState(e.state||null),scope:this.config.requested_scopes,redirect_uri:this.config.redirect_uri,code_challenge:t,code_challenge_method:"S256"},e)).toString();return"".concat(this.config.authorization_endpoint,"?").concat(r)},e.prototype.exchangeForAccessToken=function(e,t){var r=this;return void 0===t&&(t={}),this.parseAuthResponseUrl(e).then((function(e){return fetch(r.config.token_endpoint,n({method:"POST",body:new URLSearchParams(Object.assign({grant_type:"authorization_code",code:e.code,client_id:r.config.client_id,redirect_uri:r.config.redirect_uri,code_verifier:r.getCodeVerifier()},t)),headers:{Accept:"application/json","Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"}},r.corsRequestOptions)).then((function(e){return e.json()}))}))},e.prototype.refreshAccessToken=function(e){return fetch(this.config.token_endpoint,{method:"POST",body:new URLSearchParams({grant_type:"refresh_token",client_id:this.config.client_id,refresh_token:e}),headers:{Accept:"application/json","Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"}}).then((function(e){return e.json()}))},e.prototype.getCodeVerifier=function(){return""===this.codeVerifier&&(this.codeVerifier=this.randomStringFromStorage("pkce_code_verifier")),this.codeVerifier},e.prototype.getState=function(e){void 0===e&&(e=null);var t="pkce_state";return null!==e&&this.getStore().setItem(t,e),""===this.state&&(this.state=this.randomStringFromStorage(t)),this.state},e.prototype.parseAuthResponseUrl=function(e){var t=new URL(e).searchParams;return this.validateAuthResponse({error:t.get("error"),query:t.get("query"),state:t.get("state"),code:t.get("code")})},e.prototype.pkceChallengeFromVerifier=function(){var e=(0,i.default)(this.getCodeVerifier());return s.default.stringify(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")},e.prototype.randomStringFromStorage=function(e){return null===this.getStore().getItem(e)&&this.getStore().setItem(e,a.default.random(64)),this.getStore().getItem(e)||""},e.prototype.validateAuthResponse=function(e){var t=this;return new Promise((function(r,n){return e.error?n({error:e.error}):e.state!==t.getState()?n({error:"Invalid State"}):r(e)}))},e.prototype.getStore=function(){var e;return(null===(e=this.config)||void 0===e?void 0:e.storage)||sessionStorage},e}();t.default=c},480:()=>{}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={exports:{}};return e[n].call(i.exports,i,i.exports,r),i.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};(()=>{"use strict";r.r(n),r.d(n,{auth:()=>u,authorization:()=>p,flows:()=>S,gcs:()=>x,groups:()=>_,search:()=>y,timer:()=>U,transfer:()=>g});var e={};r.r(e),r.d(e,{HOSTS:()=>N,ID:()=>k,SCOPES:()=>H});var t={};r.r(t),r.d(t,{HOSTS:()=>M,ID:()=>$,SCOPES:()=>F});var o={};r.r(o),r.d(o,{HOSTS:()=>q,ID:()=>G,SCOPES:()=>V});var i={};r.r(i),r.d(i,{HOSTS:()=>z,ID:()=>W,SCOPES:()=>Y});var s={};r.r(s),r.d(s,{HOSTS:()=>K,ID:()=>J,SCOPES:()=>X});var a={};r.r(a),r.d(a,{HOSTS:()=>Z,ID:()=>Q});var c={};r.r(c),r.d(c,{get:()=>be,getAll:()=>me});var u={};r.r(u),r.d(u,{CONFIG:()=>we,getAuthorizationEndpoint:()=>_e,getTokenEndpoint:()=>Oe,identities:()=>c});var p={};r.r(p),r.d(p,{PKCEAuthorization:()=>Ie,incremental:()=>Ue,pkce:()=>xe});var h={};r.r(h),r.d(h,{ls:()=>De,mkdir:()=>Ce,rename:()=>ke,symlink:()=>Ne});var l={};r.r(l),r.d(l,{submissionId:()=>Fe,submitDelete:()=>He,submitTransfer:()=>$e});var d={};r.r(d),r.d(d,{get:()=>Me,remove:()=>Ge});var f={};r.r(f),r.d(f,{cancel:()=>ze,get:()=>Ve,getAll:()=>qe,getEventList:()=>Je,getPauseInfo:()=>Qe,getSkippedErrors:()=>Xe,getSuccessfulTransfers:()=>Ke,remove:()=>Ye,update:()=>We});var g={};r.r(g),r.d(g,{CONFIG:()=>Ze,endpoint:()=>d,endpointSearch:()=>Re,fileOperations:()=>h,task:()=>f,taskSubmission:()=>l});var v={};r.r(v),r.d(v,{get:()=>et,post:()=>tt});var y={};r.r(y),r.d(y,{CONFIG:()=>rt,query:()=>v});var b={};r.r(b),r.d(b,{get:()=>ot,getMyGroups:()=>nt});var m={};r.r(m),r.d(m,{get:()=>it});var w={};r.r(w),r.d(w,{act:()=>st});var _={};r.r(_),r.d(_,{CONFIG:()=>at,groups:()=>b,membership:()=>w,policies:()=>m});var O={};r.r(O),r.d(O,{destroy:()=>ht,get:()=>ut,getAll:()=>ct,remove:()=>pt});var A={};r.r(A),r.d(A,{getAll:()=>lt});var S={};r.r(S),r.d(S,{CONFIG:()=>dt,flows:()=>O,runs:()=>A});var T={};r.r(T),r.d(T,{create:()=>yt,get:()=>gt,getAll:()=>ft,patch:()=>mt,remove:()=>vt,resetOwnerString:()=>_t,update:()=>bt,updateOwnerString:()=>wt});var E={};r.r(E),r.d(E,{get:()=>Ot,patch:()=>St,update:()=>At});var P={};r.r(P),r.d(P,{create:()=>Lt,get:()=>Et,getAll:()=>Tt,remove:()=>Pt});var L={};r.r(L),r.d(L,{create:()=>Ut,get:()=>It,getAll:()=>jt,patch:()=>Bt,remove:()=>xt,update:()=>Rt});var j={};r.r(j),r.d(j,{create:()=>Nt,get:()=>Ct,getAll:()=>Dt,patch:()=>$t,remove:()=>kt,update:()=>Ht});var I={};r.r(I),r.d(I,{info:()=>Ft});var x={};r.r(x),r.d(x,{collections:()=>T,endpoint:()=>E,getRequiredScopes:()=>Gt,roles:()=>P,storageGateways:()=>L,userCredentials:()=>j,versioning:()=>I});var U={};function R(e,t,r,n){if("a"===r&&!n)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(e):n?n.value:t.get(e)}function B(e,t,r,n,o){if("m"===n)throw new TypeError("Private method is not writable");if("a"===n&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?o.call(e,r):o?o.value=r:t.set(e,r),r}r.r(U),r.d(U,{CONFIG:()=>Vt,create:()=>qt}),Object.create,Object.create,"function"==typeof SuppressedError&&SuppressedError;var D=r(899),C=r.n(D);const k="AUTH",N={integration:"auth.integration.globuscs.info",sandbox:"auth.sandbox.globuscs.info",production:"auth.globus.org",test:"auth.test.globuscs.info",staging:"auth.staging.globuscs.info",preview:"auth.preview.globus.org"},H={VIEW_IDENTITIES:"urn:globus:auth:scope:auth.globus.org:view_identities"},$="TRANSFER",F={ALL:"urn:globus:auth:scope:transfer.api.globus.org:all"},M={sandbox:"transfer.sandbox.globuscs.info",production:"transfer.api.globusonline.org",staging:"transfer.api.staging.globuscs.info",integration:"transfer.api.integration.globuscs.info",test:"transfer.api.test.globuscs.info",preview:"transfer.api.preview.globus.org"},G="FLOWS",q={sandbox:"sandbox.flows.automate.globus.org",production:"flows.globus.org",staging:"staging.flows.automate.globus.org",integration:"integration.flows.automate.globus.org",test:"test.flows.automate.globus.org",preview:"preview.flows.automate.globus.org"},V={MANAGE_FLOWS:"https://auth.globus.org/scopes/eec9b274-0c81-4334-bdc2-54e90e689b9a/manage_flows",VIEW_FLOWS:"https://auth.globus.org/scopes/eec9b274-0c81-4334-bdc2-54e90e689b9a/view_flows",RUN:"https://auth.globus.org/scopes/eec9b274-0c81-4334-bdc2-54e90e689b9a/run",RUN_STATUS:"https://auth.globus.org/scopes/eec9b274-0c81-4334-bdc2-54e90e689b9a/run_status",RUN_MANAGE:"https://auth.globus.org/scopes/eec9b274-0c81-4334-bdc2-54e90e689b9a/run_manage"},W="GROUPS",z={sandbox:"groups.api.sandbox.globuscs.info",production:"groups.api.globus.org",staging:"groups.api.staging.globuscs.info",integration:"groups.api.integration.globuscs.info",test:"groups.api.test.globuscs.info",preview:"groups.api.preview.globuscs.info"},Y={ALL:"urn:globus:auth:scope:groups.api.globus.org:all",VIEW_MY:"urn:globus:auth:scope:groups.api.globus.org:view_my_groups_and_membership"},J="SEARCH",K={sandbox:"search.api.sandbox.globuscs.info",production:"search.api.globus.org",staging:"search.api.staging.globuscs.info",integration:"search.api.integration.globuscs.info",test:"search.api.test.globuscs.info",preview:"search.api.preview.globus.org"},X={ALL:"urn:globus:auth:scope:search.api.globus.org:all",INGEST:"urn:globus:auth:scope:search.api.globus.org:ingest",SEARCH:"urn:globus:auth:scope:search.api.globus.org:search"},Q="TIMER",Z={sandbox:"sandbox.timer.automate.globus.org",production:"timer.automate.globus.org",staging:"staging.timer.automate.globus.org",integration:"integration.timer.automate.globus.org",test:"test.timer.automate.globus.org",preview:"preview.timer.automate.globus.org"};class ee extends Error{constructor(e,t){super(),this.name="EnvironmentConfigurationError",this.message=`Invalid configuration value provided for ${e} (${t}).`}}function te(e,t){const r="undefined"!=typeof window?window:process;let n;return n=function(e){return typeof window==typeof e}(r)?r:r.env,e in n?n[e]:t}const re={PRODUCTION:"production",PREVIEW:"preview",STAGING:"staging",SANDBOX:"sandbox",INTEGRATION:"integration",TEST:"test"};function ne(){const e=te("GLOBUS_SDK_ENVIRONMENT",re.PRODUCTION);if(!e||!Object.values(re).includes(e))throw new ee("GLOBUS_SDK_ENVIRONMENT",e);return e}const oe={[k]:N,[$]:M,[G]:q,[W]:z,[J]:K,[Q]:Z};function ie(e,t,r,n){let o;return o="object"==typeof e?new URL(t,e.host):function(e,t="",r=ne()){const n=function(e,t=ne()){const r=function(e,t){return oe[e][t]}(e,t);return te(`GLOBUS_SDK_SERVICE_URL_${e}`,r?`https://${r}`:void 0)}(e,r);return new URL(t,n)}(e,t,null==n?void 0:n.environment),r&&r.search&&(o.search=function(e){const t=new URLSearchParams;return Array.from(Object.entries(e)).forEach((([e,r])=>{Array.isArray(r)?t.set(e,r.join(",")):void 0!==r&&t.set(e,String(r))})),t.toString()}(r.search)),o.toString()}var se=r(98);const ae=r.n(se)();var ce;class ue{constructor(){ce.set(this,{})}get(e){return R(this,ce,"f")[e]}set(e,t){R(this,ce,"f")[e]=t}remove(e){delete R(this,ce,"f")[e]}clear(){B(this,ce,{},"f")}}ce=new WeakMap;class pe{get(e){const t=localStorage.getItem(e);return null!==t?JSON.parse(t):null}set(e,t){localStorage.setItem(e,JSON.stringify(t))}remove(e){localStorage.removeItem(e)}clear(){localStorage.clear()}}let he;function le(){if(!he)throw Error("You must create a storage system.");return he}function de(e){e.scope.split(" ").forEach((t=>{le().set(t,e)}))}function fe(e){const t=le().get(e);return t&&function(e){const t=e;return Boolean(t.token_type&&t.access_token)}(t)?`${t.token_type} ${t.access_token}`:null}function ge(e,t,r={}){const n=r.headers||{};if(!(null==n?void 0:n.Authorization)){const t=fe(e);t&&(n.Authorization=t)}return!(null==n?void 0:n["Content-Type"])&&(null==r?void 0:r.body)&&(n["Content-Type"]="application/json"),(null==r?void 0:r.__callable)?r.__callable(t,Object.assign(Object.assign({},r),{headers:n})):ae(t,Object.assign(Object.assign({},r),{headers:n}))}var ve;function ye(e,t,r){var n,o,i;const s=function(e){var t,r,n,o,i,s;let a=te("GLOBUS_SDK_OPTIONS",{});return"string"==typeof a&&(a=JSON.parse(a)),Object.assign(Object.assign(Object.assign({},a),e),{fetch:Object.assign(Object.assign(Object.assign({},null==a?void 0:a.fetch),null==e?void 0:e.fetch),{options:Object.assign(Object.assign(Object.assign({},null===(t=null==a?void 0:a.fetch)||void 0===t?void 0:t.options),null===(r=null==e?void 0:e.fetch)||void 0===r?void 0:r.options),{headers:Object.assign(Object.assign({},null===(o=null===(n=null==a?void 0:a.fetch)||void 0===n?void 0:n.options)||void 0===o?void 0:o.headers),null===(s=null===(i=null==e?void 0:e.fetch)||void 0===i?void 0:i.options)||void 0===s?void 0:s.headers)})})})}(r);return ge(e.scope,ie(e.service,e.path,{search:null==t?void 0:t.query},s),Object.assign(Object.assign({method:e.method,body:(null==t?void 0:t.payload)?JSON.stringify(t.payload):void 0},null===(n=null==s?void 0:s.fetch)||void 0===n?void 0:n.options),{headers:Object.assign(Object.assign({},null==t?void 0:t.headers),null===(i=null===(o=null==s?void 0:s.fetch)||void 0===o?void 0:o.options)||void 0===i?void 0:i.headers)}))}!function(e){e.POST="POST",e.GET="GET",e.DELETE="DELETE",e.PUT="PUT",e.PATCH="PATCH"}(ve||(ve={}));const be=function(e,t={},r){return ye({service:k,scope:H.VIEW_IDENTITIES,path:`/identities/${e}`},t,r)},me=function(e={},t){return ye({service:k,scope:H.VIEW_IDENTITIES,path:"/identities"},e,t)},we=e;function _e(){return ie(k,"/v2/oauth2/authorize")}function Oe(){return ie(k,"/v2/oauth2/token")}var Ae,Se,Te,Ee,Pe,Le;let je;class Ie{constructor(e){if(Ae.add(this),Se.set(this,void 0),Te.set(this,void 0),Ee.set(this,void 0),je=function(e="memory"){if(!he){let t;t="localStorage"===e?pe:"memory"===e?ue:e,he=new t}return he}("localStorage"),!e.client_id)throw new Error("You must provide a `client_id`.");B(this,Te,Object.assign({client_id:e.client_id,authorization_endpoint:_e(),token_endpoint:Oe()},e),"f"),B(this,Se,R(this,Ae,"m",Pe).call(this),"f")}reset(){R(this,Ae,"m",Le).call(this),le().clear()}redirect(){this.reset(),window.location.replace(R(this,Se,"f").authorizeUrl())}handleCodeRedirect(e={removeStateAndReplaceLocation:!0}){return t=this,r=void 0,o=function*(){const t=new URL(window.location.href),r=new URLSearchParams(t.search);if(!r.get("code"))return;const n=yield R(this,Se,"f").exchangeForAccessToken(t.toString());var o;B(this,Ee,n,"f"),de(o=R(this,Ee,"f")),"other_tokens"in o&&o.other_tokens.forEach(de),e.removeStateAndReplaceLocation&&(r.delete("code"),r.delete("state"),t.search=r.toString(),window.location.replace(t))},new((n=void 0)||(n=Promise))((function(e,i){function s(e){try{c(o.next(e))}catch(e){i(e)}}function a(e){try{c(o.throw(e))}catch(e){i(e)}}function c(t){var r;t.done?e(t.value):(r=t.value,r instanceof n?r:new n((function(e){e(r)}))).then(s,a)}c((o=o.apply(t,r||[])).next())}));var t,r,n,o}hasToken(){return R(this,Te,"f").requested_scopes.split(" ").every((e=>Boolean(fe(e))))}revoke(){this.reset()}}function xe(e){return new Ie(e)}function Ue(e){return new Ie(e)}Se=new WeakMap,Te=new WeakMap,Ee=new WeakMap,Ae=new WeakSet,Pe=function(){return new(C())(R(this,Te,"f"))},Le=function(){sessionStorage.removeItem("pkce_state"),sessionStorage.removeItem("pkce_code_verifier")};const Re=function(e,t){const r=Object.assign(Object.assign({},e),{query:null==e?void 0:e.query});return ye({service:$,scope:F.ALL,path:"/v0.10/endpoint_search"},r,t)};function Be(e){return e===ve.GET?{}:{"Content-Type":"application/json"}}const De=function(e,t,r){return ye({service:$,scope:F.ALL,path:`/v0.10/operation/endpoint/${e}/ls`},t,r)},Ce=function(e,t,r){const n={payload:Object.assign({DATA_TYPE:"mkdir"},null==t?void 0:t.payload),headers:Object.assign(Object.assign({},Be(ve.POST)),null==t?void 0:t.headers)};return ye({service:$,scope:F.ALL,path:`/v0.10/operation/endpoint/${e}/mkdir`,method:ve.POST},n,r)},ke=function(e,t,r){const n={payload:Object.assign({DATA_TYPE:"rename"},null==t?void 0:t.payload),headers:Object.assign(Object.assign({},Be(ve.POST)),null==t?void 0:t.headers)};return ye({service:$,scope:F.ALL,path:`/v0.10/operation/endpoint/${e}/rename`,method:ve.POST},n,r)},Ne=function(e,t,r){const n={payload:Object.assign({DATA_TYPE:"symlink"},null==t?void 0:t.payload),headers:Object.assign(Object.assign({},Be(ve.POST)),null==t?void 0:t.headers)};return ye({service:$,scope:F.ALL,path:`/v0.10/operation/endpoint/${e}/symlink`,method:ve.POST},n,r)},He=function(e,t){const r={payload:Object.assign({DATA_TYPE:"delete"},null==e?void 0:e.payload),headers:Object.assign(Object.assign({},Be(ve.POST)),null==e?void 0:e.headers)};return ye({service:$,scope:F.ALL,path:"/v0.10/delete",method:ve.POST},r,t)},$e=function(e,t){const r={payload:Object.assign({DATA_TYPE:"transfer"},null==e?void 0:e.payload),headers:Object.assign(Object.assign({},Be(ve.POST)),null==e?void 0:e.headers)};return ye({service:$,scope:F.ALL,path:"/v0.10/transfer",method:ve.POST},r,t)},Fe=function(e,t){return ye({service:$,scope:F.ALL,path:"/v0.10/submission_id"},e,t)},Me=function(e,t,r){return ye({service:$,scope:F.ALL,path:`/v0.10/endpoint/${e}`},t,r)},Ge=function(e,t,r){return ye({service:$,scope:F.ALL,path:`/v0.10/endpoint/${e}`,method:ve.DELETE},t,r)},qe=function(e={},t){return ye({service:$,scope:F.ALL,path:"/v0.10/task_list"},e,t)},Ve=function(e,t,r){return ye({service:$,scope:F.ALL,path:`/v0.10/task/${e}`},t,r)},We=function(e,t,r){return ye({service:$,scope:F.ALL,path:`/v0.10/task/${e}`,method:ve.PUT},t,r)},ze=function(e,t,r){return ye({service:$,scope:F.ALL,path:`/v0.10/task/${e}/cancel`,method:ve.POST},t,r)},Ye=function(e,t,r){return ye({service:$,scope:F.ALL,path:`/v0.10/task/${e}/remove`,method:ve.POST},t,r)},Je=function(e,t,r){return ye({service:$,scope:F.ALL,path:`/v0.10/task/${e}/event_list`},t,r)},Ke=function(e,t,r){return ye({service:$,scope:F.ALL,path:`/v0.10/task/${e}/successful_transfers`},t,r)},Xe=function(e,t,r){return ye({service:$,scope:F.ALL,path:`/v0.10/task/${e}/skipped_errors`},t,r)},Qe=function(e,t,r){return ye({service:$,scope:F.ALL,path:`/v0.10/task/${e}/pause_info`},t,r)},Ze=t,et=function(e,t,r){return ye({service:J,scope:X.SEARCH,path:`/v1/index/${e}/search`},t,r)},tt=function(e,t,r){return ye({service:J,scope:X.SEARCH,path:`/v1/index/${e}/search`,method:ve.POST},t,r)},rt=s,nt=function(e={},t){var r;return ge(Y.ALL,ie(W,"/v2/groups/my_groups",{search:e.query}),Object.assign({},null===(r=null==t?void 0:t.fetch)||void 0===r?void 0:r.options))},ot=function(e,t={},r){var n;return ge(Y.ALL,ie(W,`/v2/groups/${e}`,{search:t.query}),Object.assign({},null===(n=null==r?void 0:r.fetch)||void 0===n?void 0:n.options))},it=function(e,t,r){var n;return ge(Y.ALL,ie(W,`/v2/groups/${e}/policies`),Object.assign({},null===(n=null==r?void 0:r.fetch)||void 0===n?void 0:n.options))},st=function(e,t,r){var n;if(!(null==t?void 0:t.payload))throw new Error("payload is required.");return ge(Y.ALL,ie(W,`/v2/groups/${e}/policies`),Object.assign({method:"POST",body:JSON.stringify(t.payload)},null===(n=null==r?void 0:r.fetch)||void 0===n?void 0:n.options))},at=i,ct=function(e,t){return ye({service:G,scope:V.VIEW_FLOWS,path:"/flows"},e,t)},ut=function(e,t,r){return ye({service:G,scope:V.VIEW_FLOWS,path:`/flows/${e}`},t,r)},pt=function(e,t,r){return ye({scope:V.MANAGE_FLOWS,service:G,path:`/flows/${e}`,method:ve.DELETE},t,r)},ht=pt,lt=function(e={},t){return ye({service:G,scope:V.RUN_MANAGE,path:"/runs"},e,t)},dt=o,ft=function(e,t,r){return ye({service:e,scope:Gt(e),path:"/api/collections"},t,r)},gt=function(e,t,r,n){return ye({service:e,scope:Gt(e),path:`/api/collections/${t}`},r,n)},vt=function(e,t,r,n){return ye({service:e,scope:Gt(e),path:`/api/collections/${t}`,method:ve.DELETE},r,n)},yt=function(e,t,r){return ye({service:e,scope:Gt(e),path:"/api/collections",method:ve.POST},t,r)},bt=function(e,t,r,n){return ye({service:e,scope:Gt(e),path:`/api/collections/${t}`,method:ve.PUT},r,n)},mt=function(e,t,r,n){return ye({service:e,scope:Gt(e),path:`/api/collections/${t}`,method:ve.PATCH},r,n)},wt=function(e,t,r,n){return ye({service:e,scope:Gt(e),path:`/api/collections/${t}/owner_string`,method:ve.PUT},r,n)},_t=function(e,t,r,n){return ye({service:e,scope:Gt(e),path:`/api/collections/${t}/owner_string`,method:ve.DELETE},r,n)},Ot=function(e,t,r){return ye({service:e,scope:Gt(e),path:"/api/endpoint"},t,r)},At=function(e,t,r){return ye({service:e,scope:Gt(e),path:"/api/endpoint",method:ve.PUT},t,r)},St=function(e,t,r){return ye({service:e,scope:Gt(e),path:"/api/endpoint",method:ve.PATCH},t,r)},Tt=function(e,t,r){return ye({service:e,scope:Gt(e),path:"/api/roles"},t,r)},Et=function(e,t,r,n){return ye({service:e,scope:Gt(e),path:`/api/roles/${t}`},r,n)},Pt=function(e,t,r,n){return ye({service:e,scope:Gt(e),path:`/api/roles/${t}`,method:ve.DELETE},r,n)},Lt=function(e,t,r){return ye({service:e,scope:Gt(e),path:"/api/roles",method:ve.POST},t,r)},jt=function(e,t,r){return ye({service:e,scope:Gt(e),path:"/api/storage_gateways"},t,r)},It=function(e,t,r,n){return ye({service:e,scope:Gt(e),path:`/api/storage_gateways/${t}`},r,n)},xt=function(e,t,r,n){return ye({service:e,scope:Gt(e),path:`/api/storage_gateways/${t}`,method:ve.DELETE},r,n)},Ut=function(e,t,r){return ye({service:e,scope:Gt(e),path:"/api/storage_gateways",method:ve.POST},t,r)},Rt=function(e,t,r,n){return ye({service:e,scope:Gt(e),path:`/api/storage_gateways/${t}`,method:ve.PUT},r,n)},Bt=function(e,t,r,n){return ye({service:e,scope:Gt(e),path:`/api/storage_gateways/${t}`,method:ve.PATCH},r,n)},Dt=function(e,t,r){return ye({service:e,scope:Gt(e),path:"/api/user_credentials"},t,r)},Ct=function(e,t,r,n){return ye({service:e,scope:Gt(e),path:`/api/user_credentials/${t}`},r,n)},kt=function(e,t,r,n){return ye({service:e,scope:Gt(e),path:`/api/user_credentials/${t}`,method:ve.DELETE},r,n)},Nt=function(e,t,r){return ye({service:e,scope:Gt(e),path:"/api/user_credentials",method:ve.POST},t,r)},Ht=function(e,t,r,n){return ye({service:e,scope:Gt(e),path:`/api/user_credentials/${t}`,method:ve.PUT},r,n)},$t=function(e,t,r,n){return ye({service:e,scope:Gt(e),path:`/api/user_credentials/${t}`,method:ve.PATCH},r,n)},Ft=function(e,t,r){return ye({service:e,scope:Gt(e),path:"/api/info"},t,r)},Mt={HIGH_ASSURANCE:"urn:globus:auth:scope:<ENDPOINT_ID>:manage_collections",NON_HIGH_ASSURANCE:"urn:globus:auth:scope:<ENDPOINT_ID>:manage_collections[*https://auth.globus.org/scopes/<MAPPED_COLLECTION_ID>/data_access]"};function Gt(e){return Mt.HIGH_ASSURANCE.replace("<ENDPOINT_ID>",e.endpoint_id)}const qt=function(e,t){return ye({service:Q,scope:"https://auth.globus.org/scopes/524230d7-ea86-4a52-8312-86065a9e0417/timer",path:"/v2/timer",method:ve.POST},e,t)},Vt=a})(),globus=n})();
1
+ var globus;(()=>{var e={98:(e,t,r)=>{var n="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==r.g&&r.g,o=function(){function e(){this.fetch=!1,this.DOMException=n.DOMException}return e.prototype=n,new e}();!function(e){!function(t){var r=void 0!==e&&e||"undefined"!=typeof self&&self||void 0!==r&&r,n="URLSearchParams"in r,o="Symbol"in r&&"iterator"in Symbol,i="FileReader"in r&&"Blob"in r&&function(){try{return new Blob,!0}catch(e){return!1}}(),s="FormData"in r,a="ArrayBuffer"in r;if(a)var c=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],u=ArrayBuffer.isView||function(e){return e&&c.indexOf(Object.prototype.toString.call(e))>-1};function p(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||""===e)throw new TypeError('Invalid character in header field name: "'+e+'"');return e.toLowerCase()}function h(e){return"string"!=typeof e&&(e=String(e)),e}function l(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return o&&(t[Symbol.iterator]=function(){return t}),t}function d(e){this.map={},e instanceof d?e.forEach((function(e,t){this.append(t,e)}),this):Array.isArray(e)?e.forEach((function(e){this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function f(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function g(e){return new Promise((function(t,r){e.onload=function(){t(e.result)},e.onerror=function(){r(e.error)}}))}function v(e){var t=new FileReader,r=g(t);return t.readAsArrayBuffer(e),r}function y(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function b(){return this.bodyUsed=!1,this._initBody=function(e){var t;this.bodyUsed=this.bodyUsed,this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:i&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:s&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:n&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():a&&i&&(t=e)&&DataView.prototype.isPrototypeOf(t)?(this._bodyArrayBuffer=y(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):a&&(ArrayBuffer.prototype.isPrototypeOf(e)||u(e))?this._bodyArrayBuffer=y(e):this._bodyText=e=Object.prototype.toString.call(e):this._bodyText="",this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):n&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},i&&(this.blob=function(){var e=f(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?f(this)||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer)):this.blob().then(v)}),this.text=function(){var e,t,r,n=f(this);if(n)return n;if(this._bodyBlob)return e=this._bodyBlob,r=g(t=new FileReader),t.readAsText(e),r;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),r=new Array(t.length),n=0;n<t.length;n++)r[n]=String.fromCharCode(t[n]);return r.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},s&&(this.formData=function(){return this.text().then(_)}),this.json=function(){return this.text().then(JSON.parse)},this}d.prototype.append=function(e,t){e=p(e),t=h(t);var r=this.map[e];this.map[e]=r?r+", "+t:t},d.prototype.delete=function(e){delete this.map[p(e)]},d.prototype.get=function(e){return e=p(e),this.has(e)?this.map[e]:null},d.prototype.has=function(e){return this.map.hasOwnProperty(p(e))},d.prototype.set=function(e,t){this.map[p(e)]=h(t)},d.prototype.forEach=function(e,t){for(var r in this.map)this.map.hasOwnProperty(r)&&e.call(t,this.map[r],r,this)},d.prototype.keys=function(){var e=[];return this.forEach((function(t,r){e.push(r)})),l(e)},d.prototype.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),l(e)},d.prototype.entries=function(){var e=[];return this.forEach((function(t,r){e.push([r,t])})),l(e)},o&&(d.prototype[Symbol.iterator]=d.prototype.entries);var m=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function w(e,t){if(!(this instanceof w))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var r,n,o=(t=t||{}).body;if(e instanceof w){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new d(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,o||null==e._bodyInit||(o=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new d(t.headers)),this.method=(n=(r=t.method||this.method||"GET").toUpperCase(),m.indexOf(n)>-1?n:r),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&o)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(o),!("GET"!==this.method&&"HEAD"!==this.method||"no-store"!==t.cache&&"no-cache"!==t.cache)){var i=/([?&])_=[^&]*/;i.test(this.url)?this.url=this.url.replace(i,"$1_="+(new Date).getTime()):this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}function _(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var r=e.split("="),n=r.shift().replace(/\+/g," "),o=r.join("=").replace(/\+/g," ");t.append(decodeURIComponent(n),decodeURIComponent(o))}})),t}function O(e,t){if(!(this instanceof O))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText=void 0===t.statusText?"":""+t.statusText,this.headers=new d(t.headers),this.url=t.url||"",this._initBody(e)}w.prototype.clone=function(){return new w(this,{body:this._bodyInit})},b.call(w.prototype),b.call(O.prototype),O.prototype.clone=function(){return new O(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new d(this.headers),url:this.url})},O.error=function(){var e=new O(null,{status:0,statusText:""});return e.type="error",e};var S=[301,302,303,307,308];O.redirect=function(e,t){if(-1===S.indexOf(t))throw new RangeError("Invalid status code");return new O(null,{status:t,headers:{location:e}})},t.DOMException=r.DOMException;try{new t.DOMException}catch(e){t.DOMException=function(e,t){this.message=e,this.name=t;var r=Error(e);this.stack=r.stack},t.DOMException.prototype=Object.create(Error.prototype),t.DOMException.prototype.constructor=t.DOMException}function A(e,n){return new Promise((function(o,s){var c=new w(e,n);if(c.signal&&c.signal.aborted)return s(new t.DOMException("Aborted","AbortError"));var u=new XMLHttpRequest;function p(){u.abort()}u.onload=function(){var e,t,r={status:u.status,statusText:u.statusText,headers:(e=u.getAllResponseHeaders()||"",t=new d,e.replace(/\r?\n[\t ]+/g," ").split("\r").map((function(e){return 0===e.indexOf("\n")?e.substr(1,e.length):e})).forEach((function(e){var r=e.split(":"),n=r.shift().trim();if(n){var o=r.join(":").trim();t.append(n,o)}})),t)};r.url="responseURL"in u?u.responseURL:r.headers.get("X-Request-URL");var n="response"in u?u.response:u.responseText;setTimeout((function(){o(new O(n,r))}),0)},u.onerror=function(){setTimeout((function(){s(new TypeError("Network request failed"))}),0)},u.ontimeout=function(){setTimeout((function(){s(new TypeError("Network request failed"))}),0)},u.onabort=function(){setTimeout((function(){s(new t.DOMException("Aborted","AbortError"))}),0)},u.open(c.method,function(e){try{return""===e&&r.location.href?r.location.href:e}catch(t){return e}}(c.url),!0),"include"===c.credentials?u.withCredentials=!0:"omit"===c.credentials&&(u.withCredentials=!1),"responseType"in u&&(i?u.responseType="blob":a&&c.headers.get("Content-Type")&&-1!==c.headers.get("Content-Type").indexOf("application/octet-stream")&&(u.responseType="arraybuffer")),!n||"object"!=typeof n.headers||n.headers instanceof d?c.headers.forEach((function(e,t){u.setRequestHeader(t,e)})):Object.getOwnPropertyNames(n.headers).forEach((function(e){u.setRequestHeader(e,h(n.headers[e]))})),c.signal&&(c.signal.addEventListener("abort",p),u.onreadystatechange=function(){4===u.readyState&&c.signal.removeEventListener("abort",p)}),u.send(void 0===c._bodyInit?null:c._bodyInit)}))}A.polyfill=!0,r.fetch||(r.fetch=A,r.Headers=d,r.Request=w,r.Response=O),t.Headers=d,t.Request=w,t.Response=O,t.fetch=A}({})}(o),o.fetch.ponyfill=!0,delete o.fetch.polyfill;var i=n.fetch?n:o;(t=i.fetch).default=i.fetch,t.fetch=i.fetch,t.Headers=i.Headers,t.Request=i.Request,t.Response=i.Response,e.exports=t},249:function(e,t,r){var n;e.exports=(n=n||function(e,t){var n;if("undefined"!=typeof window&&window.crypto&&(n=window.crypto),"undefined"!=typeof self&&self.crypto&&(n=self.crypto),"undefined"!=typeof globalThis&&globalThis.crypto&&(n=globalThis.crypto),!n&&"undefined"!=typeof window&&window.msCrypto&&(n=window.msCrypto),!n&&void 0!==r.g&&r.g.crypto&&(n=r.g.crypto),!n)try{n=r(480)}catch(e){}var o=function(){if(n){if("function"==typeof n.getRandomValues)try{return n.getRandomValues(new Uint32Array(1))[0]}catch(e){}if("function"==typeof n.randomBytes)try{return n.randomBytes(4).readInt32LE()}catch(e){}}throw new Error("Native crypto module could not be used to get secure random number.")},i=Object.create||function(){function e(){}return function(t){var r;return e.prototype=t,r=new e,e.prototype=null,r}}(),s={},a=s.lib={},c=a.Base={extend:function(e){var t=i(this);return e&&t.mixIn(e),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}},u=a.WordArray=c.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=null!=t?t:4*e.length},toString:function(e){return(e||h).stringify(this)},concat:function(e){var t=this.words,r=e.words,n=this.sigBytes,o=e.sigBytes;if(this.clamp(),n%4)for(var i=0;i<o;i++){var s=r[i>>>2]>>>24-i%4*8&255;t[n+i>>>2]|=s<<24-(n+i)%4*8}else for(var a=0;a<o;a+=4)t[n+a>>>2]=r[a>>>2];return this.sigBytes+=o,this},clamp:function(){var t=this.words,r=this.sigBytes;t[r>>>2]&=4294967295<<32-r%4*8,t.length=e.ceil(r/4)},clone:function(){var e=c.clone.call(this);return e.words=this.words.slice(0),e},random:function(e){for(var t=[],r=0;r<e;r+=4)t.push(o());return new u.init(t,e)}}),p=s.enc={},h=p.Hex={stringify:function(e){for(var t=e.words,r=e.sigBytes,n=[],o=0;o<r;o++){var i=t[o>>>2]>>>24-o%4*8&255;n.push((i>>>4).toString(16)),n.push((15&i).toString(16))}return n.join("")},parse:function(e){for(var t=e.length,r=[],n=0;n<t;n+=2)r[n>>>3]|=parseInt(e.substr(n,2),16)<<24-n%8*4;return new u.init(r,t/2)}},l=p.Latin1={stringify:function(e){for(var t=e.words,r=e.sigBytes,n=[],o=0;o<r;o++){var i=t[o>>>2]>>>24-o%4*8&255;n.push(String.fromCharCode(i))}return n.join("")},parse:function(e){for(var t=e.length,r=[],n=0;n<t;n++)r[n>>>2]|=(255&e.charCodeAt(n))<<24-n%4*8;return new u.init(r,t)}},d=p.Utf8={stringify:function(e){try{return decodeURIComponent(escape(l.stringify(e)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function(e){return l.parse(unescape(encodeURIComponent(e)))}},f=a.BufferedBlockAlgorithm=c.extend({reset:function(){this._data=new u.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=d.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var r,n=this._data,o=n.words,i=n.sigBytes,s=this.blockSize,a=i/(4*s),c=(a=t?e.ceil(a):e.max((0|a)-this._minBufferSize,0))*s,p=e.min(4*c,i);if(c){for(var h=0;h<c;h+=s)this._doProcessBlock(o,h);r=o.splice(0,c),n.sigBytes-=p}return new u.init(r,p)},clone:function(){var e=c.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0}),g=(a.Hasher=f.extend({cfg:c.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){f.reset.call(this),this._doReset()},update:function(e){return this._append(e),this._process(),this},finalize:function(e){return e&&this._append(e),this._doFinalize()},blockSize:16,_createHelper:function(e){return function(t,r){return new e.init(r).finalize(t)}},_createHmacHelper:function(e){return function(t,r){return new g.HMAC.init(e,r).finalize(t)}}}),s.algo={});return s}(Math),n)},269:function(e,t,r){var n,o,i;e.exports=(n=r(249),i=(o=n).lib.WordArray,o.enc.Base64={stringify:function(e){var t=e.words,r=e.sigBytes,n=this._map;e.clamp();for(var o=[],i=0;i<r;i+=3)for(var s=(t[i>>>2]>>>24-i%4*8&255)<<16|(t[i+1>>>2]>>>24-(i+1)%4*8&255)<<8|t[i+2>>>2]>>>24-(i+2)%4*8&255,a=0;a<4&&i+.75*a<r;a++)o.push(n.charAt(s>>>6*(3-a)&63));var c=n.charAt(64);if(c)for(;o.length%4;)o.push(c);return o.join("")},parse:function(e){var t=e.length,r=this._map,n=this._reverseMap;if(!n){n=this._reverseMap=[];for(var o=0;o<r.length;o++)n[r.charCodeAt(o)]=o}var s=r.charAt(64);if(s){var a=e.indexOf(s);-1!==a&&(t=a)}return function(e,t,r){for(var n=[],o=0,s=0;s<t;s++)if(s%4){var a=r[e.charCodeAt(s-1)]<<s%4*2|r[e.charCodeAt(s)]>>>6-s%4*2;n[o>>>2]|=a<<24-o%4*8,o++}return i.create(n,o)}(e,t,n)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="},n.enc.Base64)},433:function(e,t,r){var n;e.exports=(n=r(249),function(){if("function"==typeof ArrayBuffer){var e=n.lib.WordArray,t=e.init,r=e.init=function(e){if(e instanceof ArrayBuffer&&(e=new Uint8Array(e)),(e instanceof Int8Array||"undefined"!=typeof Uint8ClampedArray&&e instanceof Uint8ClampedArray||e instanceof Int16Array||e instanceof Uint16Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Float32Array||e instanceof Float64Array)&&(e=new Uint8Array(e.buffer,e.byteOffset,e.byteLength)),e instanceof Uint8Array){for(var r=e.byteLength,n=[],o=0;o<r;o++)n[o>>>2]|=e[o]<<24-o%4*8;t.call(this,n,r)}else t.apply(this,arguments)};r.prototype=e}}(),n.lib.WordArray)},153:function(e,t,r){var n;e.exports=(n=r(249),function(e){var t=n,r=t.lib,o=r.WordArray,i=r.Hasher,s=t.algo,a=[],c=[];!function(){function t(t){for(var r=e.sqrt(t),n=2;n<=r;n++)if(!(t%n))return!1;return!0}function r(e){return 4294967296*(e-(0|e))|0}for(var n=2,o=0;o<64;)t(n)&&(o<8&&(a[o]=r(e.pow(n,.5))),c[o]=r(e.pow(n,1/3)),o++),n++}();var u=[],p=s.SHA256=i.extend({_doReset:function(){this._hash=new o.init(a.slice(0))},_doProcessBlock:function(e,t){for(var r=this._hash.words,n=r[0],o=r[1],i=r[2],s=r[3],a=r[4],p=r[5],h=r[6],l=r[7],d=0;d<64;d++){if(d<16)u[d]=0|e[t+d];else{var f=u[d-15],g=(f<<25|f>>>7)^(f<<14|f>>>18)^f>>>3,v=u[d-2],y=(v<<15|v>>>17)^(v<<13|v>>>19)^v>>>10;u[d]=g+u[d-7]+y+u[d-16]}var b=n&o^n&i^o&i,m=(n<<30|n>>>2)^(n<<19|n>>>13)^(n<<10|n>>>22),w=l+((a<<26|a>>>6)^(a<<21|a>>>11)^(a<<7|a>>>25))+(a&p^~a&h)+c[d]+u[d];l=h,h=p,p=a,a=s+w|0,s=i,i=o,o=n,n=w+(m+b)|0}r[0]=r[0]+n|0,r[1]=r[1]+o|0,r[2]=r[2]+i|0,r[3]=r[3]+s|0,r[4]=r[4]+a|0,r[5]=r[5]+p|0,r[6]=r[6]+h|0,r[7]=r[7]+l|0},_doFinalize:function(){var t=this._data,r=t.words,n=8*this._nDataBytes,o=8*t.sigBytes;return r[o>>>5]|=128<<24-o%32,r[14+(o+64>>>9<<4)]=e.floor(n/4294967296),r[15+(o+64>>>9<<4)]=n,t.sigBytes=4*r.length,this._process(),this._hash},clone:function(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e}});t.SHA256=i._createHelper(p),t.HmacSHA256=i._createHmacHelper(p)}(Math),n.SHA256)},899:function(e,t,r){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},n.apply(this,arguments)},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=o(r(153)),s=o(r(269)),a=o(r(433)),c=function(){function e(e){this.state="",this.codeVerifier="",this.corsRequestOptions={},this.config=e}return e.prototype.enableCorsCredentials=function(e){return this.corsRequestOptions=e?{credentials:"include",mode:"cors"}:{},this.corsRequestOptions},e.prototype.authorizeUrl=function(e){void 0===e&&(e={});var t=this.pkceChallengeFromVerifier(),r=new URLSearchParams(Object.assign({response_type:"code",client_id:this.config.client_id,state:this.getState(e.state||null),scope:this.config.requested_scopes,redirect_uri:this.config.redirect_uri,code_challenge:t,code_challenge_method:"S256"},e)).toString();return"".concat(this.config.authorization_endpoint,"?").concat(r)},e.prototype.exchangeForAccessToken=function(e,t){var r=this;return void 0===t&&(t={}),this.parseAuthResponseUrl(e).then((function(e){return fetch(r.config.token_endpoint,n({method:"POST",body:new URLSearchParams(Object.assign({grant_type:"authorization_code",code:e.code,client_id:r.config.client_id,redirect_uri:r.config.redirect_uri,code_verifier:r.getCodeVerifier()},t)),headers:{Accept:"application/json","Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"}},r.corsRequestOptions)).then((function(e){return e.json()}))}))},e.prototype.refreshAccessToken=function(e){return fetch(this.config.token_endpoint,{method:"POST",body:new URLSearchParams({grant_type:"refresh_token",client_id:this.config.client_id,refresh_token:e}),headers:{Accept:"application/json","Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"}}).then((function(e){return e.json()}))},e.prototype.getCodeVerifier=function(){return""===this.codeVerifier&&(this.codeVerifier=this.randomStringFromStorage("pkce_code_verifier")),this.codeVerifier},e.prototype.getState=function(e){void 0===e&&(e=null);var t="pkce_state";return null!==e&&this.getStore().setItem(t,e),""===this.state&&(this.state=this.randomStringFromStorage(t)),this.state},e.prototype.parseAuthResponseUrl=function(e){var t=new URL(e).searchParams;return this.validateAuthResponse({error:t.get("error"),query:t.get("query"),state:t.get("state"),code:t.get("code")})},e.prototype.pkceChallengeFromVerifier=function(){var e=(0,i.default)(this.getCodeVerifier());return s.default.stringify(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")},e.prototype.randomStringFromStorage=function(e){return null===this.getStore().getItem(e)&&this.getStore().setItem(e,a.default.random(64)),this.getStore().getItem(e)||""},e.prototype.validateAuthResponse=function(e){var t=this;return new Promise((function(r,n){return e.error?n({error:e.error}):e.state!==t.getState()?n({error:"Invalid State"}):r(e)}))},e.prototype.getStore=function(){var e;return(null===(e=this.config)||void 0===e?void 0:e.storage)||sessionStorage},e}();t.default=c},480:()=>{}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={exports:{}};return e[n].call(i.exports,i,i.exports,r),i.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};(()=>{"use strict";r.r(n),r.d(n,{auth:()=>h,authorization:()=>l,flows:()=>E,gcs:()=>R,groups:()=>S,search:()=>m,timer:()=>B,transfer:()=>y});var e={};r.r(e),r.d(e,{HOSTS:()=>$,ID:()=>H,SCOPES:()=>F});var t={};r.r(t),r.d(t,{HOSTS:()=>q,ID:()=>M,SCOPES:()=>G});var o={};r.r(o),r.d(o,{HOSTS:()=>W,ID:()=>V,SCOPES:()=>z});var i={};r.r(i),r.d(i,{HOSTS:()=>J,ID:()=>Y,SCOPES:()=>K});var s={};r.r(s),r.d(s,{HOSTS:()=>Q,ID:()=>X,SCOPES:()=>Z});var a={};r.r(a),r.d(a,{HOSTS:()=>te,ID:()=>ee});var c={};r.r(c),r.d(c,{get:()=>me,getAll:()=>we});var u={};r.r(u),r.d(u,{introspect:()=>Oe,revoke:()=>Se,validate:()=>Ae});var p={};r.r(p),r.d(p,{token:()=>u});var h={};r.r(h),r.d(h,{CONFIG:()=>Te,getAuthorizationEndpoint:()=>Ee,getTokenEndpoint:()=>Pe,identities:()=>c,oauth2:()=>p});var l={};r.r(l),r.d(l,{PKCEAuthorization:()=>De,incremental:()=>ke,pkce:()=>Ce});var d={};r.r(d),r.d(d,{ls:()=>$e,mkdir:()=>Fe,rename:()=>Me,symlink:()=>Ge});var f={};r.r(f),r.d(f,{submissionId:()=>We,submitDelete:()=>qe,submitTransfer:()=>Ve});var g={};r.r(g),r.d(g,{get:()=>ze,remove:()=>Ye});var v={};r.r(v),r.d(v,{cancel:()=>Qe,get:()=>Ke,getAll:()=>Je,getEventList:()=>et,getPauseInfo:()=>nt,getSkippedErrors:()=>rt,getSuccessfulTransfers:()=>tt,remove:()=>Ze,update:()=>Xe});var y={};r.r(y),r.d(y,{CONFIG:()=>ot,endpoint:()=>g,endpointSearch:()=>Ne,fileOperations:()=>d,task:()=>v,taskSubmission:()=>f});var b={};r.r(b),r.d(b,{get:()=>it,post:()=>st});var m={};r.r(m),r.d(m,{CONFIG:()=>at,query:()=>b});var w={};r.r(w),r.d(w,{get:()=>ut,getMyGroups:()=>ct});var _={};r.r(_),r.d(_,{get:()=>pt});var O={};r.r(O),r.d(O,{act:()=>ht});var S={};r.r(S),r.d(S,{CONFIG:()=>lt,groups:()=>w,membership:()=>O,policies:()=>_});var A={};r.r(A),r.d(A,{destroy:()=>vt,get:()=>ft,getAll:()=>dt,remove:()=>gt});var T={};r.r(T),r.d(T,{getAll:()=>yt});var E={};r.r(E),r.d(E,{CONFIG:()=>bt,flows:()=>A,runs:()=>T});var P={};r.r(P),r.d(P,{create:()=>Ot,get:()=>wt,getAll:()=>mt,patch:()=>At,remove:()=>_t,resetOwnerString:()=>Et,update:()=>St,updateOwnerString:()=>Tt});var L={};r.r(L),r.d(L,{get:()=>Pt,patch:()=>It,update:()=>Lt});var I={};r.r(I),r.d(I,{create:()=>Rt,get:()=>xt,getAll:()=>jt,remove:()=>Ut});var j={};r.r(j),r.d(j,{create:()=>kt,get:()=>Dt,getAll:()=>Bt,patch:()=>Ht,remove:()=>Ct,update:()=>Nt});var x={};r.r(x),r.d(x,{create:()=>Gt,get:()=>Ft,getAll:()=>$t,patch:()=>Vt,remove:()=>Mt,update:()=>qt});var U={};r.r(U),r.d(U,{info:()=>Wt});var R={};r.r(R),r.d(R,{collections:()=>P,endpoint:()=>L,getRequiredScopes:()=>Yt,roles:()=>I,storageGateways:()=>j,userCredentials:()=>x,versioning:()=>U});var B={};function D(e,t,r,n){if("a"===r&&!n)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(e):n?n.value:t.get(e)}function C(e,t,r,n,o){if("m"===n)throw new TypeError("Private method is not writable");if("a"===n&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?o.call(e,r):o?o.value=r:t.set(e,r),r}r.r(B),r.d(B,{CONFIG:()=>Kt,create:()=>Jt}),Object.create,Object.create,"function"==typeof SuppressedError&&SuppressedError;var k=r(899),N=r.n(k);const H="AUTH",$={integration:"auth.integration.globuscs.info",sandbox:"auth.sandbox.globuscs.info",production:"auth.globus.org",test:"auth.test.globuscs.info",staging:"auth.staging.globuscs.info",preview:"auth.preview.globus.org"},F={VIEW_IDENTITIES:"urn:globus:auth:scope:auth.globus.org:view_identities"},M="TRANSFER",G={ALL:"urn:globus:auth:scope:transfer.api.globus.org:all"},q={sandbox:"transfer.api.sandbox.globuscs.info",production:"transfer.api.globusonline.org",staging:"transfer.api.staging.globuscs.info",integration:"transfer.api.integration.globuscs.info",test:"transfer.api.test.globuscs.info",preview:"transfer.api.preview.globus.org"},V="FLOWS",W={sandbox:"sandbox.flows.automate.globus.org",production:"flows.globus.org",staging:"staging.flows.automate.globus.org",integration:"integration.flows.automate.globus.org",test:"test.flows.automate.globus.org",preview:"preview.flows.automate.globus.org"},z={MANAGE_FLOWS:"https://auth.globus.org/scopes/eec9b274-0c81-4334-bdc2-54e90e689b9a/manage_flows",VIEW_FLOWS:"https://auth.globus.org/scopes/eec9b274-0c81-4334-bdc2-54e90e689b9a/view_flows",RUN:"https://auth.globus.org/scopes/eec9b274-0c81-4334-bdc2-54e90e689b9a/run",RUN_STATUS:"https://auth.globus.org/scopes/eec9b274-0c81-4334-bdc2-54e90e689b9a/run_status",RUN_MANAGE:"https://auth.globus.org/scopes/eec9b274-0c81-4334-bdc2-54e90e689b9a/run_manage"},Y="GROUPS",J={sandbox:"groups.api.sandbox.globuscs.info",production:"groups.api.globus.org",staging:"groups.api.staging.globuscs.info",integration:"groups.api.integration.globuscs.info",test:"groups.api.test.globuscs.info",preview:"groups.api.preview.globuscs.info"},K={ALL:"urn:globus:auth:scope:groups.api.globus.org:all",VIEW_MY:"urn:globus:auth:scope:groups.api.globus.org:view_my_groups_and_membership"},X="SEARCH",Q={sandbox:"search.api.sandbox.globuscs.info",production:"search.api.globus.org",staging:"search.api.staging.globuscs.info",integration:"search.api.integration.globuscs.info",test:"search.api.test.globuscs.info",preview:"search.api.preview.globus.org"},Z={ALL:"urn:globus:auth:scope:search.api.globus.org:all",INGEST:"urn:globus:auth:scope:search.api.globus.org:ingest",SEARCH:"urn:globus:auth:scope:search.api.globus.org:search"},ee="TIMER",te={sandbox:"sandbox.timer.automate.globus.org",production:"timer.automate.globus.org",staging:"staging.timer.automate.globus.org",integration:"integration.timer.automate.globus.org",test:"test.timer.automate.globus.org",preview:"preview.timer.automate.globus.org"};class re extends Error{constructor(e,t){super(),this.name="EnvironmentConfigurationError",this.message=`Invalid configuration value provided for ${e} (${t}).`}}function ne(e,t){const r="undefined"!=typeof window?window:process;let n;return n=function(e){return typeof window==typeof e}(r)?r:r.env,e in n?n[e]:t}const oe={PRODUCTION:"production",PREVIEW:"preview",STAGING:"staging",SANDBOX:"sandbox",INTEGRATION:"integration",TEST:"test"};function ie(){const e=ne("GLOBUS_SDK_ENVIRONMENT",oe.PRODUCTION);if(!e||!Object.values(oe).includes(e))throw new re("GLOBUS_SDK_ENVIRONMENT",e);return e}const se={[H]:$,[M]:q,[V]:W,[Y]:J,[X]:Q,[ee]:te};function ae(e,t,r,n){let o;return o="object"==typeof e?new URL(t,e.host):function(e,t="",r=ie()){const n=function(e,t=ie()){const r=function(e,t){return se[e][t]}(e,t);return ne(`GLOBUS_SDK_SERVICE_URL_${e}`,r?`https://${r}`:void 0)}(e,r);return new URL(t,n)}(e,t,null==n?void 0:n.environment),r&&r.search&&(o.search=function(e){const t=new URLSearchParams;return Array.from(Object.entries(e)).forEach((([e,r])=>{Array.isArray(r)?t.set(e,r.join(",")):void 0!==r&&t.set(e,String(r))})),t.toString()}(r.search)),o.toString()}var ce,ue=r(98),pe=r.n(ue);class he{constructor(){ce.set(this,{})}get(e){return D(this,ce,"f")[e]}set(e,t){D(this,ce,"f")[e]=t}remove(e){delete D(this,ce,"f")[e]}clear(){C(this,ce,{},"f")}}ce=new WeakMap;class le{get(e){const t=localStorage.getItem(e);return null!==t?JSON.parse(t):null}set(e,t){localStorage.setItem(e,JSON.stringify(t))}remove(e){localStorage.removeItem(e)}clear(){localStorage.clear()}}let de;function fe(){if(!de)throw Error("You must create a storage system.");return de}function ge(e){e.scope.split(" ").forEach((t=>{fe().set(t,e)}))}function ve(e){const t=fe().get(e);return t&&function(e){const t=e;return Boolean(t.token_type&&t.access_token)}(t)?`${t.token_type} ${t.access_token}`:null}var ye;function be(e,t,r){var n,o;const i=function(e){var t,r,n,o,i,s;let a=ne("GLOBUS_SDK_OPTIONS",{});return"string"==typeof a&&(a=JSON.parse(a)),Object.assign(Object.assign(Object.assign({},a),e),{fetch:Object.assign(Object.assign(Object.assign({},null==a?void 0:a.fetch),null==e?void 0:e.fetch),{options:Object.assign(Object.assign(Object.assign({},null===(t=null==a?void 0:a.fetch)||void 0===t?void 0:t.options),null===(r=null==e?void 0:e.fetch)||void 0===r?void 0:r.options),{headers:Object.assign(Object.assign({},null===(o=null===(n=null==a?void 0:a.fetch)||void 0===n?void 0:n.options)||void 0===o?void 0:o.headers),null===(s=null===(i=null==e?void 0:e.fetch)||void 0===i?void 0:i.options)||void 0===s?void 0:s.headers)})})})}(r),s=(null===(n=null==i?void 0:i.fetch)||void 0===n?void 0:n.options)||{},a=Object.assign(Object.assign({},null==t?void 0:t.headers),s.headers);if(e.scope&&!(null==a?void 0:a.Authorization)){const t=ve(e.scope);t&&(a.Authorization=t)}const c=(null!==(o=null==t?void 0:t.body)&&void 0!==o?o:null==t?void 0:t.payload)?JSON.stringify(t.payload):void 0;!(null==a?void 0:a["Content-Type"])&&c&&(a["Content-Type"]="application/json");const u=ae(e.service,e.path,{search:null==t?void 0:t.query},i),p=Object.assign(Object.assign({method:e.method,body:c},s),{headers:a});return(null==s?void 0:s.__callable)?(delete p.__callable,s.__callable(u,p)):pe()(u,p)}!function(e){e.POST="POST",e.GET="GET",e.DELETE="DELETE",e.PUT="PUT",e.PATCH="PATCH"}(ye||(ye={}));const me=function(e,t={},r){return be({service:H,scope:F.VIEW_IDENTITIES,path:`/identities/${e}`},t,r)},we=function(e={},t){return be({service:H,scope:F.VIEW_IDENTITIES,path:"/identities"},e,t)};function _e(e){return Object.assign(Object.assign({},e),{body:new URLSearchParams(null==e?void 0:e.payload).toString(),headers:Object.assign(Object.assign({},(null==e?void 0:e.headers)||{}),{"Content-Type":"application/x-www-form-urlencoded"})})}const Oe=function(e,t){return be({service:H,scope:void 0,path:"/v2/oauth/token/introspect",method:ye.POST},_e(e),t)},Se=function(e,t){return be({service:H,scope:void 0,path:"/v2/oauth/token/revoke",method:ye.POST},_e(e),t)},Ae=function(e,t){return be({service:H,scope:void 0,path:"/v2/oauth/token/validate",method:ye.POST},_e(e),t)},Te=e;function Ee(){return ae(H,"/v2/oauth2/authorize")}function Pe(){return ae(H,"/v2/oauth2/token")}var Le,Ie,je,xe,Ue,Re;let Be;class De{constructor(e){if(Le.add(this),Ie.set(this,void 0),je.set(this,void 0),xe.set(this,void 0),Be=function(e="memory"){if(!de){let t;t="localStorage"===e?le:"memory"===e?he:e,de=new t}return de}("localStorage"),!e.client_id)throw new Error("You must provide a `client_id`.");C(this,je,Object.assign({client_id:e.client_id,authorization_endpoint:Ee(),token_endpoint:Pe()},e),"f"),C(this,Ie,D(this,Le,"m",Ue).call(this),"f")}reset(){D(this,Le,"m",Re).call(this),fe().clear()}redirect(){this.reset(),window.location.replace(D(this,Ie,"f").authorizeUrl())}handleCodeRedirect(e={removeStateAndReplaceLocation:!0}){return t=this,r=void 0,o=function*(){const t=new URL(window.location.href),r=new URLSearchParams(t.search);if(!r.get("code"))return;const n=yield D(this,Ie,"f").exchangeForAccessToken(t.toString());var o;C(this,xe,n,"f"),ge(o=D(this,xe,"f")),"other_tokens"in o&&o.other_tokens.forEach(ge),e.removeStateAndReplaceLocation&&(r.delete("code"),r.delete("state"),t.search=r.toString(),window.location.replace(t))},new((n=void 0)||(n=Promise))((function(e,i){function s(e){try{c(o.next(e))}catch(e){i(e)}}function a(e){try{c(o.throw(e))}catch(e){i(e)}}function c(t){var r;t.done?e(t.value):(r=t.value,r instanceof n?r:new n((function(e){e(r)}))).then(s,a)}c((o=o.apply(t,r||[])).next())}));var t,r,n,o}hasToken(){return D(this,je,"f").requested_scopes.split(" ").every((e=>Boolean(ve(e))))}revoke(){this.reset()}}function Ce(e){return new De(e)}function ke(e){return new De(e)}Ie=new WeakMap,je=new WeakMap,xe=new WeakMap,Le=new WeakSet,Ue=function(){return new(N())(D(this,je,"f"))},Re=function(){sessionStorage.removeItem("pkce_state"),sessionStorage.removeItem("pkce_code_verifier")};const Ne=function(e,t){const r=Object.assign(Object.assign({},e),{query:null==e?void 0:e.query});return be({service:M,scope:G.ALL,path:"/v0.10/endpoint_search"},r,t)};function He(e){return e===ye.GET?{}:{"Content-Type":"application/json"}}const $e=function(e,t,r){return be({service:M,scope:G.ALL,path:`/v0.10/operation/endpoint/${e}/ls`},t,r)},Fe=function(e,t,r){const n={payload:Object.assign({DATA_TYPE:"mkdir"},null==t?void 0:t.payload),headers:Object.assign(Object.assign({},He(ye.POST)),null==t?void 0:t.headers)};return be({service:M,scope:G.ALL,path:`/v0.10/operation/endpoint/${e}/mkdir`,method:ye.POST},n,r)},Me=function(e,t,r){const n={payload:Object.assign({DATA_TYPE:"rename"},null==t?void 0:t.payload),headers:Object.assign(Object.assign({},He(ye.POST)),null==t?void 0:t.headers)};return be({service:M,scope:G.ALL,path:`/v0.10/operation/endpoint/${e}/rename`,method:ye.POST},n,r)},Ge=function(e,t,r){const n={payload:Object.assign({DATA_TYPE:"symlink"},null==t?void 0:t.payload),headers:Object.assign(Object.assign({},He(ye.POST)),null==t?void 0:t.headers)};return be({service:M,scope:G.ALL,path:`/v0.10/operation/endpoint/${e}/symlink`,method:ye.POST},n,r)},qe=function(e,t){const r={payload:Object.assign({DATA_TYPE:"delete"},null==e?void 0:e.payload),headers:Object.assign(Object.assign({},He(ye.POST)),null==e?void 0:e.headers)};return be({service:M,scope:G.ALL,path:"/v0.10/delete",method:ye.POST},r,t)},Ve=function(e,t){const r={payload:Object.assign({DATA_TYPE:"transfer"},null==e?void 0:e.payload),headers:Object.assign(Object.assign({},He(ye.POST)),null==e?void 0:e.headers)};return be({service:M,scope:G.ALL,path:"/v0.10/transfer",method:ye.POST},r,t)},We=function(e,t){return be({service:M,scope:G.ALL,path:"/v0.10/submission_id"},e,t)},ze=function(e,t,r){return be({service:M,scope:G.ALL,path:`/v0.10/endpoint/${e}`},t,r)},Ye=function(e,t,r){return be({service:M,scope:G.ALL,path:`/v0.10/endpoint/${e}`,method:ye.DELETE},t,r)},Je=function(e={},t){return be({service:M,scope:G.ALL,path:"/v0.10/task_list"},e,t)},Ke=function(e,t,r){return be({service:M,scope:G.ALL,path:`/v0.10/task/${e}`},t,r)},Xe=function(e,t,r){return be({service:M,scope:G.ALL,path:`/v0.10/task/${e}`,method:ye.PUT},t,r)},Qe=function(e,t,r){return be({service:M,scope:G.ALL,path:`/v0.10/task/${e}/cancel`,method:ye.POST},t,r)},Ze=function(e,t,r){return be({service:M,scope:G.ALL,path:`/v0.10/task/${e}/remove`,method:ye.POST},t,r)},et=function(e,t,r){return be({service:M,scope:G.ALL,path:`/v0.10/task/${e}/event_list`},t,r)},tt=function(e,t,r){return be({service:M,scope:G.ALL,path:`/v0.10/task/${e}/successful_transfers`},t,r)},rt=function(e,t,r){return be({service:M,scope:G.ALL,path:`/v0.10/task/${e}/skipped_errors`},t,r)},nt=function(e,t,r){return be({service:M,scope:G.ALL,path:`/v0.10/task/${e}/pause_info`},t,r)},ot=t,it=function(e,t,r){return be({service:X,scope:Z.SEARCH,path:`/v1/index/${e}/search`},t,r)},st=function(e,t,r){return be({service:X,scope:Z.SEARCH,path:`/v1/index/${e}/search`,method:ye.POST},t,r)},at=s,ct=function(e,t){return be({scope:K.ALL,path:"/v2/groups/my_groups",service:Y},e,t)},ut=function(e,t,r){return be({service:Y,scope:K.ALL,path:`/v2/groups/${e}`},t,r)},pt=function(e,t,r){return be({scope:K.ALL,path:`/v2/groups/${e}/policies`,service:Y},t,r)},ht=function(e,t,r){if(!(null==t?void 0:t.payload))throw new Error("payload is required.");return be({service:Y,scope:K.ALL,path:`/v2/groups/${e}`,method:ye.POST},t,r)},lt=i,dt=function(e,t){return be({service:V,scope:z.VIEW_FLOWS,path:"/flows"},e,t)},ft=function(e,t,r){return be({service:V,scope:z.VIEW_FLOWS,path:`/flows/${e}`},t,r)},gt=function(e,t,r){return be({scope:z.MANAGE_FLOWS,service:V,path:`/flows/${e}`,method:ye.DELETE},t,r)},vt=gt,yt=function(e={},t){return be({service:V,scope:z.RUN_MANAGE,path:"/runs"},e,t)},bt=o,mt=function(e,t,r){return be({service:e,scope:Yt(e),path:"/api/collections"},t,r)},wt=function(e,t,r,n){return be({service:e,scope:Yt(e),path:`/api/collections/${t}`},r,n)},_t=function(e,t,r,n){return be({service:e,scope:Yt(e),path:`/api/collections/${t}`,method:ye.DELETE},r,n)},Ot=function(e,t,r){return be({service:e,scope:Yt(e),path:"/api/collections",method:ye.POST},t,r)},St=function(e,t,r,n){return be({service:e,scope:Yt(e),path:`/api/collections/${t}`,method:ye.PUT},r,n)},At=function(e,t,r,n){return be({service:e,scope:Yt(e),path:`/api/collections/${t}`,method:ye.PATCH},r,n)},Tt=function(e,t,r,n){return be({service:e,scope:Yt(e),path:`/api/collections/${t}/owner_string`,method:ye.PUT},r,n)},Et=function(e,t,r,n){return be({service:e,scope:Yt(e),path:`/api/collections/${t}/owner_string`,method:ye.DELETE},r,n)},Pt=function(e,t,r){return be({service:e,scope:Yt(e),path:"/api/endpoint"},t,r)},Lt=function(e,t,r){return be({service:e,scope:Yt(e),path:"/api/endpoint",method:ye.PUT},t,r)},It=function(e,t,r){return be({service:e,scope:Yt(e),path:"/api/endpoint",method:ye.PATCH},t,r)},jt=function(e,t,r){return be({service:e,scope:Yt(e),path:"/api/roles"},t,r)},xt=function(e,t,r,n){return be({service:e,scope:Yt(e),path:`/api/roles/${t}`},r,n)},Ut=function(e,t,r,n){return be({service:e,scope:Yt(e),path:`/api/roles/${t}`,method:ye.DELETE},r,n)},Rt=function(e,t,r){return be({service:e,scope:Yt(e),path:"/api/roles",method:ye.POST},t,r)},Bt=function(e,t,r){return be({service:e,scope:Yt(e),path:"/api/storage_gateways"},t,r)},Dt=function(e,t,r,n){return be({service:e,scope:Yt(e),path:`/api/storage_gateways/${t}`},r,n)},Ct=function(e,t,r,n){return be({service:e,scope:Yt(e),path:`/api/storage_gateways/${t}`,method:ye.DELETE},r,n)},kt=function(e,t,r){return be({service:e,scope:Yt(e),path:"/api/storage_gateways",method:ye.POST},t,r)},Nt=function(e,t,r,n){return be({service:e,scope:Yt(e),path:`/api/storage_gateways/${t}`,method:ye.PUT},r,n)},Ht=function(e,t,r,n){return be({service:e,scope:Yt(e),path:`/api/storage_gateways/${t}`,method:ye.PATCH},r,n)},$t=function(e,t,r){return be({service:e,scope:Yt(e),path:"/api/user_credentials"},t,r)},Ft=function(e,t,r,n){return be({service:e,scope:Yt(e),path:`/api/user_credentials/${t}`},r,n)},Mt=function(e,t,r,n){return be({service:e,scope:Yt(e),path:`/api/user_credentials/${t}`,method:ye.DELETE},r,n)},Gt=function(e,t,r){return be({service:e,scope:Yt(e),path:"/api/user_credentials",method:ye.POST},t,r)},qt=function(e,t,r,n){return be({service:e,scope:Yt(e),path:`/api/user_credentials/${t}`,method:ye.PUT},r,n)},Vt=function(e,t,r,n){return be({service:e,scope:Yt(e),path:`/api/user_credentials/${t}`,method:ye.PATCH},r,n)},Wt=function(e,t,r){return be({service:e,scope:Yt(e),path:"/api/info"},t,r)},zt={HIGH_ASSURANCE:"urn:globus:auth:scope:<ENDPOINT_ID>:manage_collections",NON_HIGH_ASSURANCE:"urn:globus:auth:scope:<ENDPOINT_ID>:manage_collections[*https://auth.globus.org/scopes/<MAPPED_COLLECTION_ID>/data_access]"};function Yt(e){return zt.HIGH_ASSURANCE.replace("<ENDPOINT_ID>",e.endpoint_id)}const Jt=function(e,t){return be({service:ee,scope:"https://auth.globus.org/scopes/524230d7-ea86-4a52-8312-86065a9e0417/timer",path:"/v2/timer",method:ye.POST},e,t)},Kt=a})(),globus=n})();
@@ -1,18 +0,0 @@
1
- import { fetch } from './internals/fetch.js';
2
- type GlobusScope = string;
3
- /**
4
- * Properties that will be passed to underlying `fetch` calls to override behavior.
5
- * @see https://developer.mozilla.org/en-US/docs/Web/API/fetch#parameters
6
- */
7
- export type FetchOverrides = (Omit<RequestInit, 'headers'> & {
8
- headers?: Record<string, string>;
9
- /**
10
- * Provide an implementation of `fetch` to be used.
11
- * This is currently **not** advertised since we do not dynamically import `cross-fetch` yet.
12
- * @private
13
- */
14
- __callable?: typeof fetch;
15
- }) | undefined;
16
- export declare function fetchWithScope(scope: GlobusScope, input: RequestInfo | URL, fetchOverrides?: FetchOverrides): Promise<Response>;
17
- export {};
18
- //# sourceMappingURL=fetch.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"fetch.d.ts","sourceRoot":"","sources":["../../../../src/lib/core/fetch.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAG7C,KAAK,WAAW,GAAG,MAAM,CAAC;AAE1B;;;GAGG;AACH,MAAM,MAAM,cAAc,GACtB,CAAC,IAAI,CAAC,WAAW,EAAE,SAAS,CAAC,GAAG;IAC9B,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACjC;;;;OAIG;IACH,UAAU,CAAC,EAAE,OAAO,KAAK,CAAC;CAC3B,CAAC,GACF,SAAS,CAAC;AAEd,wBAAgB,cAAc,CAC5B,KAAK,EAAE,WAAW,EAClB,KAAK,EAAE,WAAW,GAAG,GAAG,EACxB,cAAc,GAAE,cAAmB,qBAkCpC"}
@@ -1,34 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.fetchWithScope = void 0;
4
- /* eslint-disable no-underscore-dangle */
5
- const fetch_js_1 = require("./internals/fetch.js");
6
- const consent_js_1 = require("./consent.js");
7
- function fetchWithScope(scope, input, fetchOverrides = {}) {
8
- const headers = fetchOverrides.headers || {};
9
- /**
10
- * If an `Authorization` override header was provided, we skip any
11
- * sort of lookup and use the provided value.
12
- */
13
- if (!(headers === null || headers === void 0 ? void 0 : headers['Authorization'])) {
14
- const token = (0, consent_js_1.getTokenForScope)(scope);
15
- if (token) {
16
- headers['Authorization'] = token;
17
- }
18
- }
19
- /**
20
- * If `Content-Type` header was not provided, and there is a body, we assume it is JSON.
21
- */
22
- if (!(headers === null || headers === void 0 ? void 0 : headers['Content-Type']) && (fetchOverrides === null || fetchOverrides === void 0 ? void 0 : fetchOverrides.body)) {
23
- headers['Content-Type'] = 'application/json';
24
- }
25
- /**
26
- * If a `__callable` override was provided, we use it instead of the default `fetch`.
27
- */
28
- if (fetchOverrides === null || fetchOverrides === void 0 ? void 0 : fetchOverrides.__callable) {
29
- return fetchOverrides.__callable(input, Object.assign(Object.assign({}, fetchOverrides), { headers }));
30
- }
31
- return (0, fetch_js_1.fetch)(input, Object.assign(Object.assign({}, fetchOverrides), { headers }));
32
- }
33
- exports.fetchWithScope = fetchWithScope;
34
- //# sourceMappingURL=fetch.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"fetch.js","sourceRoot":"","sources":["../../../../src/lib/core/fetch.ts"],"names":[],"mappings":";;;AAAA,yCAAyC;AACzC,mDAA6C;AAC7C,6CAAgD;AAoBhD,SAAgB,cAAc,CAC5B,KAAkB,EAClB,KAAwB,EACxB,iBAAiC,EAAE;IAEnC,MAAM,OAAO,GAAG,cAAc,CAAC,OAAO,IAAI,EAAE,CAAC;IAC7C;;;OAGG;IACH,IAAI,CAAC,CAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAG,eAAe,CAAC,CAAA,EAAE;QAC/B,MAAM,KAAK,GAAG,IAAA,6BAAgB,EAAC,KAAK,CAAC,CAAC;QACtC,IAAI,KAAK,EAAE;YACT,OAAO,CAAC,eAAe,CAAC,GAAG,KAAK,CAAC;SAClC;KACF;IACD;;OAEG;IACH,IAAI,CAAC,CAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAG,cAAc,CAAC,CAAA,KAAI,cAAc,aAAd,cAAc,uBAAd,cAAc,CAAE,IAAI,CAAA,EAAE;QACtD,OAAO,CAAC,cAAc,CAAC,GAAG,kBAAkB,CAAC;KAC9C;IAED;;OAEG;IACH,IAAI,cAAc,aAAd,cAAc,uBAAd,cAAc,CAAE,UAAU,EAAE;QAC9B,OAAO,cAAc,CAAC,UAAU,CAAC,KAAK,kCACjC,cAAc,KACjB,OAAO,IACP,CAAC;KACJ;IAED,OAAO,IAAA,gBAAK,EAAC,KAAK,kCACb,cAAc,KACjB,OAAO,IACP,CAAC;AACL,CAAC;AArCD,wCAqCC"}
@@ -1,2 +0,0 @@
1
- export declare const fetch: typeof globalThis.fetch;
2
- //# sourceMappingURL=fetch.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"fetch.d.ts","sourceRoot":"","sources":["../../../../../src/lib/core/internals/fetch.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,KAAK,yBAAS,CAAC"}
@@ -1,7 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.fetch = void 0;
4
- const tslib_1 = require("tslib");
5
- const cross_fetch_1 = tslib_1.__importDefault(require("cross-fetch"));
6
- exports.fetch = cross_fetch_1.default;
7
- //# sourceMappingURL=fetch.js.map