@globus/sdk 2.4.1 → 3.0.0-alpha.2

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 (138) hide show
  1. package/cjs/index.d.ts +2 -1
  2. package/cjs/index.d.ts.map +1 -1
  3. package/cjs/index.js +3 -2
  4. package/cjs/index.js.map +1 -1
  5. package/cjs/lib/core/authorization/AuthorizationManager.d.ts +47 -0
  6. package/cjs/lib/core/authorization/AuthorizationManager.d.ts.map +1 -0
  7. package/cjs/lib/core/authorization/AuthorizationManager.js +133 -0
  8. package/cjs/lib/core/authorization/AuthorizationManager.js.map +1 -0
  9. package/cjs/lib/core/authorization/Event.d.ts +11 -0
  10. package/cjs/lib/core/authorization/Event.d.ts.map +1 -0
  11. package/cjs/lib/core/authorization/Event.js +26 -0
  12. package/cjs/lib/core/authorization/Event.js.map +1 -0
  13. package/cjs/lib/core/authorization/RedirectTransport.d.ts +8 -0
  14. package/cjs/lib/core/authorization/RedirectTransport.d.ts.map +1 -0
  15. package/cjs/lib/core/authorization/RedirectTransport.js +38 -0
  16. package/cjs/lib/core/authorization/RedirectTransport.js.map +1 -0
  17. package/cjs/lib/core/authorization/index.d.ts +13 -0
  18. package/cjs/lib/core/authorization/index.d.ts.map +1 -0
  19. package/cjs/lib/core/authorization/index.js +20 -0
  20. package/cjs/lib/core/authorization/index.js.map +1 -0
  21. package/cjs/lib/core/authorization/tokens.d.ts +7 -0
  22. package/cjs/lib/core/authorization/tokens.d.ts.map +1 -0
  23. package/cjs/lib/core/{consent.js → authorization/tokens.js} +3 -22
  24. package/cjs/lib/core/authorization/tokens.js.map +1 -0
  25. package/cjs/lib/core/global.d.ts +1 -0
  26. package/cjs/lib/core/global.d.ts.map +1 -1
  27. package/cjs/lib/core/global.js +3 -2
  28. package/cjs/lib/core/global.js.map +1 -1
  29. package/cjs/lib/core/logger.d.ts +31 -0
  30. package/cjs/lib/core/logger.d.ts.map +1 -0
  31. package/cjs/lib/core/logger.js +54 -0
  32. package/cjs/lib/core/logger.js.map +1 -0
  33. package/cjs/lib/core/storage/index.d.ts +1 -1
  34. package/cjs/lib/core/storage/index.d.ts.map +1 -1
  35. package/cjs/lib/core/storage/index.js +0 -4
  36. package/cjs/lib/core/storage/index.js.map +1 -1
  37. package/cjs/lib/core/storage/local-storage.d.ts +2 -1
  38. package/cjs/lib/core/storage/local-storage.d.ts.map +1 -1
  39. package/cjs/lib/core/storage/local-storage.js +10 -5
  40. package/cjs/lib/core/storage/local-storage.js.map +1 -1
  41. package/cjs/lib/core/storage/memory.d.ts +3 -3
  42. package/cjs/lib/core/storage/memory.d.ts.map +1 -1
  43. package/cjs/lib/core/storage/memory.js +7 -7
  44. package/cjs/lib/core/storage/memory.js.map +1 -1
  45. package/cjs/lib/services/auth/config.d.ts +5 -0
  46. package/cjs/lib/services/auth/config.d.ts.map +1 -1
  47. package/cjs/lib/services/auth/config.js +8 -1
  48. package/cjs/lib/services/auth/config.js.map +1 -1
  49. package/cjs/lib/services/auth/index.d.ts +1 -0
  50. package/cjs/lib/services/auth/index.d.ts.map +1 -1
  51. package/cjs/lib/services/auth/index.js +5 -1
  52. package/cjs/lib/services/auth/index.js.map +1 -1
  53. package/cjs/lib/services/shared.js +2 -2
  54. package/cjs/lib/services/shared.js.map +1 -1
  55. package/cjs/lib/services/transfer/service/file-operations.d.ts +49 -1
  56. package/cjs/lib/services/transfer/service/file-operations.d.ts.map +1 -1
  57. package/cjs/lib/services/transfer/service/file-operations.js.map +1 -1
  58. package/cjs/lib/services/transfer/service/task-submission.d.ts +64 -4
  59. package/cjs/lib/services/transfer/service/task-submission.d.ts.map +1 -1
  60. package/cjs/lib/services/transfer/service/task-submission.js +3 -0
  61. package/cjs/lib/services/transfer/service/task-submission.js.map +1 -1
  62. package/esm/index.d.ts +2 -1
  63. package/esm/index.d.ts.map +1 -1
  64. package/esm/index.js +2 -1
  65. package/esm/index.js.map +1 -1
  66. package/esm/lib/core/authorization/AuthorizationManager.d.ts +47 -0
  67. package/esm/lib/core/authorization/AuthorizationManager.d.ts.map +1 -0
  68. package/esm/lib/core/authorization/AuthorizationManager.js +129 -0
  69. package/esm/lib/core/authorization/AuthorizationManager.js.map +1 -0
  70. package/esm/lib/core/authorization/Event.d.ts +11 -0
  71. package/esm/lib/core/authorization/Event.d.ts.map +1 -0
  72. package/esm/lib/core/authorization/Event.js +22 -0
  73. package/esm/lib/core/authorization/Event.js.map +1 -0
  74. package/esm/lib/core/authorization/RedirectTransport.d.ts +8 -0
  75. package/esm/lib/core/authorization/RedirectTransport.d.ts.map +1 -0
  76. package/esm/lib/core/authorization/RedirectTransport.js +34 -0
  77. package/esm/lib/core/authorization/RedirectTransport.js.map +1 -0
  78. package/esm/lib/core/authorization/index.d.ts +13 -0
  79. package/esm/lib/core/authorization/index.d.ts.map +1 -0
  80. package/esm/lib/core/authorization/index.js +15 -0
  81. package/esm/lib/core/authorization/index.js.map +1 -0
  82. package/esm/lib/core/authorization/tokens.d.ts +7 -0
  83. package/esm/lib/core/authorization/tokens.d.ts.map +1 -0
  84. package/esm/lib/core/{consent.js → authorization/tokens.js} +2 -19
  85. package/esm/lib/core/authorization/tokens.js.map +1 -0
  86. package/esm/lib/core/global.d.ts +1 -0
  87. package/esm/lib/core/global.d.ts.map +1 -1
  88. package/esm/lib/core/global.js +1 -1
  89. package/esm/lib/core/global.js.map +1 -1
  90. package/esm/lib/core/logger.d.ts +31 -0
  91. package/esm/lib/core/logger.d.ts.map +1 -0
  92. package/esm/lib/core/logger.js +48 -0
  93. package/esm/lib/core/logger.js.map +1 -0
  94. package/esm/lib/core/storage/index.d.ts +1 -1
  95. package/esm/lib/core/storage/index.d.ts.map +1 -1
  96. package/esm/lib/core/storage/index.js +0 -4
  97. package/esm/lib/core/storage/index.js.map +1 -1
  98. package/esm/lib/core/storage/local-storage.d.ts +2 -1
  99. package/esm/lib/core/storage/local-storage.d.ts.map +1 -1
  100. package/esm/lib/core/storage/local-storage.js +10 -5
  101. package/esm/lib/core/storage/local-storage.js.map +1 -1
  102. package/esm/lib/core/storage/memory.d.ts +3 -3
  103. package/esm/lib/core/storage/memory.d.ts.map +1 -1
  104. package/esm/lib/core/storage/memory.js +7 -7
  105. package/esm/lib/core/storage/memory.js.map +1 -1
  106. package/esm/lib/services/auth/config.d.ts +5 -0
  107. package/esm/lib/services/auth/config.d.ts.map +1 -1
  108. package/esm/lib/services/auth/config.js +7 -0
  109. package/esm/lib/services/auth/config.js.map +1 -1
  110. package/esm/lib/services/auth/index.d.ts +1 -0
  111. package/esm/lib/services/auth/index.d.ts.map +1 -1
  112. package/esm/lib/services/auth/index.js +3 -0
  113. package/esm/lib/services/auth/index.js.map +1 -1
  114. package/esm/lib/services/shared.js +1 -1
  115. package/esm/lib/services/shared.js.map +1 -1
  116. package/esm/lib/services/transfer/service/file-operations.d.ts +49 -1
  117. package/esm/lib/services/transfer/service/file-operations.d.ts.map +1 -1
  118. package/esm/lib/services/transfer/service/file-operations.js.map +1 -1
  119. package/esm/lib/services/transfer/service/task-submission.d.ts +64 -4
  120. package/esm/lib/services/transfer/service/task-submission.d.ts.map +1 -1
  121. package/esm/lib/services/transfer/service/task-submission.js +3 -0
  122. package/esm/lib/services/transfer/service/task-submission.js.map +1 -1
  123. package/package.json +1 -1
  124. package/umd/globus.production.js +1 -1
  125. package/cjs/lib/core/authorization.d.ts +0 -30
  126. package/cjs/lib/core/authorization.d.ts.map +0 -1
  127. package/cjs/lib/core/authorization.js +0 -94
  128. package/cjs/lib/core/authorization.js.map +0 -1
  129. package/cjs/lib/core/consent.d.ts +0 -11
  130. package/cjs/lib/core/consent.d.ts.map +0 -1
  131. package/cjs/lib/core/consent.js.map +0 -1
  132. package/esm/lib/core/authorization.d.ts +0 -30
  133. package/esm/lib/core/authorization.d.ts.map +0 -1
  134. package/esm/lib/core/authorization.js +0 -88
  135. package/esm/lib/core/authorization.js.map +0 -1
  136. package/esm/lib/core/consent.d.ts +0 -11
  137. package/esm/lib/core/consent.d.ts.map +0 -1
  138. package/esm/lib/core/consent.js.map +0 -1
@@ -1,3 +1,5 @@
1
+ import { ID as TRANSFER } from '../transfer/config.js';
2
+ import { ID as FLOWS } from '../flows/config.js';
1
3
  export const ID = 'AUTH';
2
4
  export const HOSTS = {
3
5
  integration: 'auth.integration.globuscs.info',
@@ -10,4 +12,9 @@ export const HOSTS = {
10
12
  export const SCOPES = {
11
13
  VIEW_IDENTITIES: 'urn:globus:auth:scope:auth.globus.org:view_identities',
12
14
  };
15
+ export const RESOURCE_SERVERS = {
16
+ [ID]: 'auth.globus.org',
17
+ [TRANSFER]: 'transfer.api.globus.org',
18
+ [FLOWS]: 'flows.api.globus.org',
19
+ };
13
20
  //# sourceMappingURL=config.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"config.js","sourceRoot":"","sources":["../../../../../src/lib/services/auth/config.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,EAAE,GAAG,MAAM,CAAC;AACzB,MAAM,CAAC,MAAM,KAAK,GAAyC;IACzD,WAAW,EAAE,gCAAgC;IAC7C,OAAO,EAAE,4BAA4B;IACrC,UAAU,EAAE,iBAAiB;IAC7B,IAAI,EAAE,yBAAyB;IAC/B,OAAO,EAAE,4BAA4B;IACrC,OAAO,EAAE,yBAAyB;CACnC,CAAC;AAEF,MAAM,CAAC,MAAM,MAAM,GAAG;IACpB,eAAe,EAAE,uDAAuD;CACzE,CAAC"}
1
+ {"version":3,"file":"config.js","sourceRoot":"","sources":["../../../../../src/lib/services/auth/config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,IAAI,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACvD,OAAO,EAAE,EAAE,IAAI,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAIjD,MAAM,CAAC,MAAM,EAAE,GAAG,MAAM,CAAC;AACzB,MAAM,CAAC,MAAM,KAAK,GAAyC;IACzD,WAAW,EAAE,gCAAgC;IAC7C,OAAO,EAAE,4BAA4B;IACrC,UAAU,EAAE,iBAAiB;IAC7B,IAAI,EAAE,yBAAyB;IAC/B,OAAO,EAAE,4BAA4B;IACrC,OAAO,EAAE,yBAAyB;CACnC,CAAC;AAEF,MAAM,CAAC,MAAM,MAAM,GAAG;IACpB,eAAe,EAAE,uDAAuD;CACzE,CAAC;AAEF,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC9B,CAAC,EAAE,CAAC,EAAE,iBAAiB;IACvB,CAAC,QAAQ,CAAC,EAAE,yBAAyB;IACrC,CAAC,KAAK,CAAC,EAAE,sBAAsB;CAChC,CAAC"}
@@ -26,4 +26,5 @@ export type TokenResponse = Token & {
26
26
  state: string;
27
27
  other_tokens: Token[];
28
28
  };
29
+ export declare function isGlobusAuthTokenResponse(check: unknown): check is TokenResponse;
29
30
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/lib/services/auth/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,KAAK,cAAc,MAAM,6BAA6B,CAAC;AAG9D,OAAO,KAAK,IAAI,MAAM,aAAa,CAAC;AAEpC;;;GAGG;AACH,eAAO,MAAM,MAAM,aAAO,CAAC;AAE3B,wBAAgB,wBAAwB,WAEvC;AAED,wBAAgB,gBAAgB,WAE/B;AAED,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AACtD,OAAO,KAAK,MAAM,MAAM,2BAA2B,CAAC;AAEpD,MAAM,MAAM,KAAK,GAAG,cAAc,GAAG;IACnC,eAAe,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AACF;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG,KAAK,GAAG;IAClC,KAAK,EAAE,MAAM,CAAC;IACd,YAAY,EAAE,KAAK,EAAE,CAAC;CACvB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/lib/services/auth/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,KAAK,cAAc,MAAM,6BAA6B,CAAC;AAG9D,OAAO,KAAK,IAAI,MAAM,aAAa,CAAC;AAEpC;;;GAGG;AACH,eAAO,MAAM,MAAM,aAAO,CAAC;AAE3B,wBAAgB,wBAAwB,WAEvC;AAED,wBAAgB,gBAAgB,WAE/B;AAED,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AACtD,OAAO,KAAK,MAAM,MAAM,2BAA2B,CAAC;AAEpD,MAAM,MAAM,KAAK,GAAG,cAAc,GAAG;IACnC,eAAe,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AACF;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG,KAAK,GAAG;IAClC,KAAK,EAAE,MAAM,CAAC;IACd,YAAY,EAAE,KAAK,EAAE,CAAC;CACvB,CAAC;AAEF,wBAAgB,yBAAyB,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,aAAa,CAIhF"}
@@ -13,4 +13,7 @@ export function getTokenEndpoint() {
13
13
  }
14
14
  export * as identities from './service/identities.js';
15
15
  export * as oauth2 from './service/oauth2/index.js';
16
+ export function isGlobusAuthTokenResponse(check) {
17
+ return (typeof check === 'object' && check !== null && 'resource_server' in check && 'state' in check);
18
+ }
16
19
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/lib/services/auth/index.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAE1C,OAAO,KAAK,IAAI,MAAM,aAAa,CAAC;AAEpC;;;GAGG;AACH,MAAM,CAAC,MAAM,MAAM,GAAG,IAAI,CAAC;AAE3B,MAAM,UAAU,wBAAwB;IACtC,OAAO,KAAK,CAAC,IAAI,CAAC,EAAE,EAAE,sBAAsB,CAAC,CAAC;AAChD,CAAC;AAED,MAAM,UAAU,gBAAgB;IAC9B,OAAO,KAAK,CAAC,IAAI,CAAC,EAAE,EAAE,kBAAkB,CAAC,CAAC;AAC5C,CAAC;AAED,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AACtD,OAAO,KAAK,MAAM,MAAM,2BAA2B,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/lib/services/auth/index.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAE1C,OAAO,KAAK,IAAI,MAAM,aAAa,CAAC;AAEpC;;;GAGG;AACH,MAAM,CAAC,MAAM,MAAM,GAAG,IAAI,CAAC;AAE3B,MAAM,UAAU,wBAAwB;IACtC,OAAO,KAAK,CAAC,IAAI,CAAC,EAAE,EAAE,sBAAsB,CAAC,CAAC;AAChD,CAAC;AAED,MAAM,UAAU,gBAAgB;IAC9B,OAAO,KAAK,CAAC,IAAI,CAAC,EAAE,EAAE,kBAAkB,CAAC,CAAC;AAC5C,CAAC;AAED,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AACtD,OAAO,KAAK,MAAM,MAAM,2BAA2B,CAAC;AAcpD,MAAM,UAAU,yBAAyB,CAAC,KAAc;IACtD,OAAO,CACL,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,IAAI,IAAI,iBAAiB,IAAI,KAAK,IAAI,OAAO,IAAI,KAAK,CAC9F,CAAC;AACJ,CAAC"}
@@ -1,7 +1,7 @@
1
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
+ import { getTokenForScope } from '../core/authorization/index.js';
5
5
  // eslint-disable-next-line @typescript-eslint/naming-convention
6
6
  export var HTTP_METHODS;
7
7
  (function (HTTP_METHODS) {
@@ -1 +1 @@
1
- {"version":3,"file":"shared.js","sourceRoot":"","sources":["../../../../src/lib/services/shared.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAA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;IAC/C,CAAC;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,CAAC;QACrC;;WAEG;QACH,OAAO,IAAI,CAAC,UAAU,CAAC;QACvB,OAAO,oBAAoB,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,EAAE,GAAG,EAAE,IAAI,CAAC,CAAC;IAC/D,CAAC;IACD,wCAAwC;IAExC,OAAO,MAAM,CAAC,GAAG,EAAE,IAAI,CAAC,CAAC;AAC3B,CAAC"}
@@ -1,4 +1,52 @@
1
1
  import type { Transfer } from '../types.js';
2
+ import type { JSONFetchResponse } from '../../types.js';
3
+ /**
4
+ * @see https://docs.globus.org/api/transfer/file_operations/#file_document
5
+ */
6
+ export type FileDocument = {
7
+ readonly DATA_TYPE: 'file';
8
+ readonly name: string;
9
+ readonly type: 'dir' | 'file' | 'invalid_symlink' | 'chr' | 'blk' | 'pipe' | 'other';
10
+ readonly link_target?: string | null;
11
+ readonly size?: number;
12
+ readonly last_modified?: string;
13
+ readonly permissions?: string;
14
+ readonly user?: string | null;
15
+ readonly group?: string | null;
16
+ readonly link_size?: number | null;
17
+ readonly link_user?: string | null;
18
+ readonly link_group?: string | null;
19
+ readonly link_last_modified?: string | null;
20
+ };
21
+ /**
22
+ * @see https://docs.globus.org/api/transfer/file_operations/#file_list_document
23
+ */
24
+ export type FileListDocument = {
25
+ readonly DATA_TYPE: 'file_list';
26
+ readonly endpoint: string;
27
+ readonly path: string;
28
+ readonly absolute_path: string | null;
29
+ readonly rename_supported: boolean;
30
+ readonly symlink_supported: boolean;
31
+ readonly DATA: FileDocument[];
32
+ /**
33
+ * n.b. This is currently included in responses, but undocumented; use with care.
34
+ */
35
+ readonly length: number;
36
+ /**
37
+ * n.b. This is currently included in responses, but undocumented; use with care.
38
+ */
39
+ readonly total: number;
40
+ };
41
+ export type DirectoryListingError = {
42
+ /**
43
+ * @see https://docs.globus.org/api/transfer/file_operations/#errors
44
+ */
45
+ code: 'NotSupported' | 'ClientError.NotFound' | 'EndpointError' | string;
46
+ message: string;
47
+ request_id: string;
48
+ resource: string;
49
+ };
2
50
  /**
3
51
  * List the contents of the directory at the specified path on an endpoint’s filesystem.
4
52
  * The endpoint must be activated before performing this operation.
@@ -19,7 +67,7 @@ export declare const ls: (endpoint_xid: string, options?: ({
19
67
  [key: string]: string | number | boolean | (string | number | null | undefined)[] | null | undefined;
20
68
  } | undefined;
21
69
  headers?: import("../../types.js").Headers | undefined;
22
- }) | undefined, sdkOptions?: import("../../types.js").SDKOptions | undefined) => Promise<Response>;
70
+ }) | undefined, sdkOptions?: import("../../types.js").SDKOptions | undefined) => Promise<JSONFetchResponse<FileListDocument | DirectoryListingError>>;
23
71
  /**
24
72
  * Create a directory at the specified path on an endpoint filesystem.
25
73
  * The endpoint must be activated before performing this operation.
@@ -1 +1 @@
1
- {"version":3,"file":"file-operations.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/services/transfer/service/file-operations.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAG5C;;;;;GAKG;AACH,eAAO,MAAM,EAAE;;;;;;;;;;;;;;kGAed,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,KAAK;aAwBL,KAAK,QAAQ,CAAC,SAAS,CAAC,CAAC,OAAO,CAAC,EAAE,WAAW,CAAC;;;;;;kGAE3D,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,MAAM;aAwBN,KAAK,QAAQ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S,CAAC,EAAE,WAAW,CAAC;;;;;;kGAE7D,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"file-operations.js","sourceRoot":"","sources":["../../../../../../src/lib/services/transfer/service/file-operations.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAC/D,OAAO,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AACpD,OAAO,EAAE,EAAE,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAK1C;;;;;GAKG;AACH,MAAM,CAAC,MAAM,EAAE,GAAG,UAAU,YAAY,EAAE,OAAQ,EAAE,UAAW;IAC7D,OAAO,cAAc,CACnB;QACE,OAAO,EAAE,EAAE;QACX,KAAK,EAAE,MAAM,CAAC,GAAG;QACjB,IAAI,EAAE,6BAA6B,YAAY,KAAK;KACrD,EACD,OAAO,EACP,UAAU,CACX,CAAC;AACJ,CAKC,CAAC;AAEF;;;;;GAKG;AACH,MAAM,CAAC,MAAM,KAAK,GAAG,UAAU,YAAY,EAAE,OAAO,EAAE,UAAW;IAC/D,MAAM,qBAAqB,GAAG;QAC5B,OAAO,kBACL,SAAS,EAAE,OAAO,IACf,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,OAAO,CACpB;QACD,OAAO,kCACF,oBAAoB,CAAC,YAAY,CAAC,IAAI,CAAC,GACvC,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,OAAO,CACpB;KACF,CAAC;IACF,OAAO,cAAc,CACnB;QACE,OAAO,EAAE,EAAE;QACX,KAAK,EAAE,MAAM,CAAC,GAAG;QACjB,IAAI,EAAE,6BAA6B,YAAY,QAAQ;QACvD,MAAM,EAAE,YAAY,CAAC,IAAI;KAC1B,EACD,qBAAqB,EACrB,UAAU,CACX,CAAC;AACJ,CAKC,CAAC;AAEF;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,MAAM,GAAG,UAAU,YAAY,EAAE,OAAO,EAAE,UAAW;IAChE,MAAM,qBAAqB,GAAG;QAC5B,OAAO,kBACL,SAAS,EAAE,QAAQ,IAChB,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,OAAO,CACpB;QACD,OAAO,kCACF,oBAAoB,CAAC,YAAY,CAAC,IAAI,CAAC,GACvC,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,OAAO,CACpB;KACF,CAAC;IACF,OAAO,cAAc,CACnB;QACE,OAAO,EAAE,EAAE;QACX,KAAK,EAAE,MAAM,CAAC,GAAG;QACjB,IAAI,EAAE,6BAA6B,YAAY,SAAS;QACxD,MAAM,EAAE,YAAY,CAAC,IAAI;KAC1B,EACD,qBAAqB,EACrB,UAAU,CACX,CAAC;AACJ,CAKC,CAAC;AAEF;;;;;GAKG;AACH,MAAM,CAAC,MAAM,OAAO,GAAG,UAAU,YAAY,EAAE,OAAO,EAAE,UAAW;IACjE,MAAM,qBAAqB,GAAG;QAC5B,OAAO,kBACL,SAAS,EAAE,SAAS,IACjB,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,OAAO,CACpB;QACD,OAAO,kCACF,oBAAoB,CAAC,YAAY,CAAC,IAAI,CAAC,GACvC,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,OAAO,CACpB;KACF,CAAC;IACF,OAAO,cAAc,CACnB;QACE,OAAO,EAAE,EAAE;QACX,KAAK,EAAE,MAAM,CAAC,GAAG;QACjB,IAAI,EAAE,6BAA6B,YAAY,UAAU;QACzD,MAAM,EAAE,YAAY,CAAC,IAAI;KAC1B,EACD,qBAAqB,EACrB,UAAU,CACX,CAAC;AACJ,CAKC,CAAC"}
1
+ {"version":3,"file":"file-operations.js","sourceRoot":"","sources":["../../../../../../src/lib/services/transfer/service/file-operations.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAC/D,OAAO,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AACpD,OAAO,EAAE,EAAE,EA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AK,EAAE,MAAM,CAAC,GAAG;QACjB,IAAI,EAAE,6BAA6B,YAAY,SAAS;QACxD,MAAM,EAAE,YAAY,CAAC,IAAI;KAC1B,EACD,qBAAqB,EACrB,UAAU,CACX,CAAC;AACJ,CAKC,CAAC;AAEF;;;;;GAKG;AACH,MAAM,CAAC,MAAM,OAAO,GAAG,UAAU,YAAY,EAAE,OAAO,EAAE,UAAW;IACjE,MAAM,qBAAqB,GAAG;QAC5B,OAAO,kBACL,SAAS,EAAE,SAAS,IACjB,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,OAAO,CACpB;QACD,OAAO,kCACF,oBAAoB,CAAC,YAAY,CAAC,IAAI,CAAC,GACvC,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,OAAO,CACpB;KACF,CAAC;IACF,OAAO,cAAc,CACnB;QACE,OAAO,EAAE,EAAE;QACX,KAAK,EAAE,MAAM,CAAC,GAAG;QACjB,IAAI,EAAE,6BAA6B,YAAY,UAAU;QACzD,MAAM,EAAE,YAAY,CAAC,IAAI;KAC1B,EACD,qBAAqB,EACrB,UAAU,CACX,CAAC;AACJ,CAKC,CAAC"}
@@ -1,5 +1,57 @@
1
1
  import type { Transfer } from '../types.js';
2
- import type { SDKOptions } from '../../types.js';
2
+ import type { JSONFetchResponse, SDKOptions } from '../../types.js';
3
+ type TaskLink = {
4
+ DATA_TYPE: 'link';
5
+ href: string;
6
+ rel: string;
7
+ resource: string;
8
+ title: string;
9
+ };
10
+ interface TaskSubmissionResult {
11
+ DATA_TYPE: string;
12
+ resource: string;
13
+ /**
14
+ * @see https://docs.globus.org/api/transfer/task_submit/#result_codes
15
+ */
16
+ code: 'Accpeted' | 'Duplicate';
17
+ message: string;
18
+ request_id: string;
19
+ submission_id: string;
20
+ task_id: string;
21
+ /**
22
+ * @deprecated Undocumented property.
23
+ */
24
+ task_link: TaskLink;
25
+ }
26
+ export type TransferResult = TaskSubmissionResult & {
27
+ DATA_TYPE: 'transfer_result';
28
+ resource: '/transfer';
29
+ };
30
+ export type DeleteResult = {
31
+ DATA_TYPE: 'delete_result';
32
+ resource: '/delete';
33
+ } & TaskSubmissionResult;
34
+ type UndocumentedEncouneredErrorCodes = 'EndpointNotFound' | string;
35
+ type TaskSubmissionError = {
36
+ /**
37
+ * Known error codes provided by the Transfer documentation.
38
+ *
39
+ * Since the documentation does not provide an exhaustive list of error codes,
40
+ * we also include a catch-all type (`string`) for any undocumented error codes.
41
+ *
42
+ * @see https://docs.globus.org/api/transfer/task_submit/#errors
43
+ */
44
+ code: 'ClientError.BadRequest' | 'BadRequest' | 'PermissionDenied' | 'ConsentRequired' | 'ServiceUnavailable' | 'Conflict' | UndocumentedEncouneredErrorCodes;
45
+ message: string;
46
+ request_id: string;
47
+ resource: string;
48
+ };
49
+ export type TransferError = TaskSubmissionError & {
50
+ resource: '/transfer';
51
+ };
52
+ export type DeleteError = TaskSubmissionError & {
53
+ resource: '/delete';
54
+ };
3
55
  /**
4
56
  * Submit a delete task. A delete submission contains a single endpoint and a
5
57
  * list of paths to delete.
@@ -8,10 +60,17 @@ import type { SDKOptions } from '../../types.js';
8
60
  */
9
61
  export declare const submitDelete: (options: ({
10
62
  payload: Omit<Transfer['Request']['Delete'], 'DATA_TYPE'>;
11
- } & import("../../types.js").BaseServiceMethodOptions) | undefined, sdkOptions?: SDKOptions) => Promise<Response>;
63
+ } & import("../../types.js").BaseServiceMethodOptions) | undefined, sdkOptions?: SDKOptions) => Promise<JSONFetchResponse<DeleteResult | DeleteError>>;
64
+ /**
65
+ * @see https://docs.globus.org/api/transfer/task_submit/#submit_transfer_task
66
+ */
12
67
  export declare const submitTransfer: (options: ({
13
68
  payload: Omit<Transfer['Request']['Transfer'], 'DATA_TYPE'>;
14
- } & import("../../types.js").BaseServiceMethodOptions) | undefined, sdkOptions?: SDKOptions) => Promise<Response>;
69
+ } & import("../../types.js").BaseServiceMethodOptions) | undefined, sdkOptions?: SDKOptions) => Promise<JSONFetchResponse<TransferResult | TransferError>>;
70
+ type SubmissionId = {
71
+ DATA_TYPE: 'submission_id';
72
+ value: string;
73
+ };
15
74
  /**
16
75
  * Get a submission id, required when submitting transfer and delete tasks.
17
76
  * Note that this is different than the task id returned by the submit operations.
@@ -21,5 +80,6 @@ export declare const submitTransfer: (options: ({
21
80
  export declare const submissionId: (options?: ({
22
81
  query?: undefined;
23
82
  payload?: undefined;
24
- } & import("../../types.js").BaseServiceMethodOptions) | undefined, sdkOptions?: SDKOptions | undefined) => Promise<Response>;
83
+ } & import("../../types.js").BaseServiceMethodOptions) | undefined, sdkOptions?: SDKOptions | undefined) => Promise<JSONFetchResponse<SubmissionId>>;
84
+ export {};
25
85
  //# sourceMappingURL=task-submission.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"task-submission.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/services/transfer/service/task-submission.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,KAAK,EAAE,UAAU,EAAiB,MAAM,gBAAgB,CAAC;AAEhE;;;;;GAKG;AACH,eAAO,MAAM,YAAY;aAsBd,KAAK,QAAQ,CAAC,SAAS,CAAC,CAAC,QAAQ,CAAC,EAAE,WAAW,CAAC;iFAtBC,UAAU,sBAuBpE,CAAC;AAEH,eAAO,MAAM,cAAc;aAsBhB,KAAK,QAAQ,CAAC,SAAS,CAAC,CAAC,UAAU,CAAC,EAAE,WAAW,CAAC;iFAtBC,UAAU,sBAuBtE,CAAC;AAEH;;;;;GAKG;AACH,eAAO,MAAM,YAAY;;;6HAavB,CAAC"}
1
+ {"version":3,"file":"task-submission.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/services/transfer/service/task-submission.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,KAAK,EAAE,iBAAiB,EAAE,UAAU,EAAiB,MAAM,gBAAgB,CAAC;AAEnF,KAAK,QAAQ,GA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AAM,YAAY;aAyBd,KAAK,QAAQ,CAAC,SAAS,CAAC,CAAC,QAAQ,CAAC,EAAE,WAAW,CAAC;iFAvB5C,UAAU,KACtB,QAAQ,kBAAkB,YAAY,GAAG,WAAW,CAAC,CAuBtD,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,cAAc;aAyBhB,KAAK,QAAQ,CAAC,SAAS,CAAC,CAAC,UAAU,CAAC,EAAE,WAAW,CAAC;iFAvB9C,UAAU,KACtB,QAAQ,kBAAkB,cAAc,GAAG,aAAa,CAAC,CAuB1D,CAAC;AAEH,KAAK,YAAY,GAAG;IAClB,SAAS,EAAE,eAAe,CAAC;IAC3B,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,YAAY;;;4GAGtB,QAAQ,kBAAkB,YAAY,CAAC,CAaxC,CAAC"}
@@ -19,6 +19,9 @@ export const submitDelete = function (options, sdkOptions) {
19
19
  method: HTTP_METHODS.POST,
20
20
  }, serviceRequestOptions, sdkOptions);
21
21
  };
22
+ /**
23
+ * @see https://docs.globus.org/api/transfer/task_submit/#submit_transfer_task
24
+ */
22
25
  export const submitTransfer = function (options, sdkOptions) {
23
26
  const serviceRequestOptions = {
24
27
  payload: Object.assign({ DATA_TYPE: 'transfer' }, options === null || options === void 0 ? void 0 : options.payload),
@@ -1 +1 @@
1
- {"version":3,"file":"task-submission.js","sourceRoot":"","sources":["../../../../../../src/lib/services/transfer/service/task-submission.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAE/D,OAAO,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AACpD,OAAO,EAAE,EAAE,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAK1C;;;;;GAKG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG,UAAU,OAAO,EAAE,UAAuB;IACpE,MAAM,qBAAqB,GAAG;QAC5B,OAAO,kBACL,SAAS,EAAE,QAAQ,IAChB,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,OAAO,CACpB;QACD,OAAO,kCACF,oBAAoB,CAAC,YAAY,CAAC,IAAI,CAAC,GACvC,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,OAAO,CACpB;KACF,CAAC;IACF,OAAO,cAAc,CACnB;QACE,OAAO,EAAE,EAAE;QACX,KAAK,EAAE,MAAM,CAAC,GAAG;QACjB,IAAI,EAAE,eAAe;QACrB,MAAM,EAAE,YAAY,CAAC,IAAI;KAC1B,EACD,qBAAqB,EACrB,UAAU,CACX,CAAC;AACJ,CAEE,CAAC;AAEH,MAAM,CAAC,MAAM,cAAc,GAAG,UAAU,OAAO,EAAE,UAAuB;IACtE,MAAM,qBAAqB,GAAG;QAC5B,OAAO,kBACL,SAAS,EAAE,UAAU,IAClB,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,OAAO,CACpB;QACD,OAAO,kCACF,oBAAoB,CAAC,YAAY,CAAC,IAAI,CAAC,GACvC,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,OAAO,CACpB;KACF,CAAC;IACF,OAAO,cAAc,CACnB;QACE,OAAO,EAAE,EAAE;QACX,KAAK,EAAE,MAAM,CAAC,GAAG;QACjB,IAAI,EAAE,iBAAiB;QACvB,MAAM,EAAE,YAAY,CAAC,IAAI;KAC1B,EACD,qBAAqB,EACrB,UAAU,CACX,CAAC;AACJ,CAEE,CAAC;AAEH;;;;;GAKG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG,UAAU,OAAQ,EAAE,UAAW;IACzD,OAAO,cAAc,CACnB;QACE,OAAO,EAAE,EAAE;QACX,KAAK,EAAE,MAAM,CAAC,GAAG;QACjB,IAAI,EAAE,sBAAsB;KAC7B,EACD,OAAO,EACP,UAAU,CACX,CAAC;AACJ,CAGE,CAAC"}
1
+ {"version":3,"file":"task-submission.js","sourceRoot":"","sources":["../../../../../../src/lib/services/transfer/service/task-submission.ts"],"names":[],"mapp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;GAKG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG,UAC1B,OAAQ,EACR,UAAW;IAEX,OAAO,cAAc,CACnB;QACE,OAAO,EAAE,EAAE;QACX,KAAK,EAAE,MAAM,CAAC,GAAG;QACjB,IAAI,EAAE,sBAAsB;KAC7B,EACD,OAAO,EACP,UAAU,CACX,CAAC;AACJ,CAGE,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@globus/sdk",
3
- "version": "2.4.1",
3
+ "version": "3.0.0-alpha.2",
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={945:(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 d(e){return"string"!=typeof e&&(e=String(e)),e}function h(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 l(e){this.map={},e instanceof l?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(w)}),this.json=function(){return this.text().then(JSON.parse)},this}l.prototype.append=function(e,t){e=p(e),t=d(t);var r=this.map[e];this.map[e]=r?r+", "+t:t},l.prototype.delete=function(e){delete this.map[p(e)]},l.prototype.get=function(e){return e=p(e),this.has(e)?this.map[e]:null},l.prototype.has=function(e){return this.map.hasOwnProperty(p(e))},l.prototype.set=function(e,t){this.map[p(e)]=d(t)},l.prototype.forEach=function(e,t){for(var r in this.map)this.map.hasOwnProperty(r)&&e.call(t,this.map[r],r,this)},l.prototype.keys=function(){var e=[];return this.forEach((function(t,r){e.push(r)})),h(e)},l.prototype.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),h(e)},l.prototype.entries=function(){var e=[];return this.forEach((function(t,r){e.push([r,t])})),h(e)},o&&(l.prototype[Symbol.iterator]=l.prototype.entries);var m=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function _(e,t){if(!(this instanceof _))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 _){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new l(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 l(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 w(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 A(e,t){if(!(this instanceof A))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 l(t.headers),this.url=t.url||"",this._initBody(e)}_.prototype.clone=function(){return new _(this,{body:this._bodyInit})},b.call(_.prototype),b.call(A.prototype),A.prototype.clone=function(){return new A(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new l(this.headers),url:this.url})},A.error=function(){var e=new A(null,{status:0,statusText:""});return e.type="error",e};var S=[301,302,303,307,308];A.redirect=function(e,t){if(-1===S.indexOf(t))throw new RangeError("Invalid status code");return new A(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 O(e,n){return new Promise((function(o,s){var c=new _(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 l,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 A(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 l?c.headers.forEach((function(e,t){u.setRequestHeader(t,e)})):Object.getOwnPropertyNames(n.headers).forEach((function(e){u.setRequestHeader(e,d(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)}))}O.polyfill=!0,r.fetch||(r.fetch=O,r.Headers=l,r.Request=_,r.Response=A),t.Headers=l,t.Request=_,t.Response=A,t.fetch=O}({})}(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},21: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(477)}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||d).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={},d=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)}},h=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)}},l=p.Utf8={stringify:function(e){try{return decodeURIComponent(escape(h.stringify(e)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function(e){return h.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=l.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 d=0;d<c;d+=s)this._doProcessBlock(o,d);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)},754:function(e,t,r){var n,o,i;e.exports=(n=r(21),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)},440:function(e,t,r){var n;e.exports=(n=r(21),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)},9:function(e,t,r){var n;e.exports=(n=r(21),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],d=r[6],h=r[7],l=0;l<64;l++){if(l<16)u[l]=0|e[t+l];else{var f=u[l-15],g=(f<<25|f>>>7)^(f<<14|f>>>18)^f>>>3,v=u[l-2],y=(v<<15|v>>>17)^(v<<13|v>>>19)^v>>>10;u[l]=g+u[l-7]+y+u[l-16]}var b=n&o^n&i^o&i,m=(n<<30|n>>>2)^(n<<19|n>>>13)^(n<<10|n>>>22),_=h+((a<<26|a>>>6)^(a<<21|a>>>11)^(a<<7|a>>>25))+(a&p^~a&d)+c[l]+u[l];h=d,d=p,p=a,a=s+_|0,s=i,i=o,o=n,n=_+(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]+d|0,r[7]=r[7]+h|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)},368: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(9)),s=o(r(754)),a=o(r(440)),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},477:()=>{}},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:()=>d,authorization:()=>h,flows:()=>R,gcs:()=>H,groups:()=>I,search:()=>E,timer:()=>F,transfer:()=>A});var e={};r.r(e),r.d(e,{HOSTS:()=>z,ID:()=>W,SCOPES:()=>Y});var t={};r.r(t),r.d(t,{HOSTS:()=>X,ID:()=>J,SCOPES:()=>K});var o={};r.r(o),r.d(o,{HOSTS:()=>Z,ID:()=>Q,SCOPES:()=>ee});var i={};r.r(i),r.d(i,{HOSTS:()=>re,ID:()=>te,SCOPES:()=>ne});var s={};r.r(s),r.d(s,{HOSTS:()=>ie,ID:()=>oe,SCOPES:()=>se});var a={};r.r(a),r.d(a,{HOSTS:()=>ce,ID:()=>ae});var c={};r.r(c),r.d(c,{get:()=>Le,getAll:()=>Pe});var u={};r.r(u),r.d(u,{introspect:()=>Ie,revoke:()=>je,validate:()=>Ue});var p={};r.r(p),r.d(p,{token:()=>u});var d={};r.r(d),r.d(d,{CONFIG:()=>Re,getAuthorizationEndpoint:()=>ke,getTokenEndpoint:()=>Ce,identities:()=>c,oauth2:()=>p});var h={};r.r(h),r.d(h,{PKCEAuthorization:()=>Ge,incremental:()=>Ve,pkce:()=>qe});var l={};r.r(l),r.d(l,{ls:()=>Ye,mkdir:()=>Je,rename:()=>Ke,symlink:()=>Xe});var f={};r.r(f),r.d(f,{submissionId:()=>et,submitDelete:()=>Qe,submitTransfer:()=>Ze});var g={};r.r(g),r.d(g,{get:()=>tt,remove:()=>rt});var v={};r.r(v),r.d(v,{cancel:()=>st,get:()=>ot,getAll:()=>nt,getEventList:()=>ct,getPauseInfo:()=>dt,getSkippedErrors:()=>pt,getSuccessfulTransfers:()=>ut,remove:()=>at,update:()=>it});var y={};r.r(y),r.d(y,{create:()=>lt,get:()=>ft,getAll:()=>ht,remove:()=>vt,update:()=>gt});var b={};r.r(b),r.d(b,{get:()=>yt,getAccessList:()=>mt,getHostedEndpoints:()=>bt,getMonitoredEndpoints:()=>_t});var m={};r.r(m),r.d(m,{create:()=>At,get:()=>St,getAll:()=>wt,remove:()=>Tt,update:()=>Ot});var _={};r.r(_),r.d(_,{cancel:()=>Pt,get:()=>Lt,getAdminCancel:()=>xt,getAll:()=>Et,getEventList:()=>It,getPauseInfo:()=>Ct,getSkippedErrors:()=>Ut,getSuccessfulTransfers:()=>jt,pause:()=>Rt,resume:()=>kt});var w={};r.r(w),r.d(w,{endpoint:()=>b,pauseRule:()=>m,task:()=>_});var A={};r.r(A),r.d(A,{CONFIG:()=>Dt,access:()=>y,endpoint:()=>g,endpointManager:()=>w,endpointSearch:()=>We,fileOperations:()=>l,task:()=>v,taskSubmission:()=>f});var S={};r.r(S),r.d(S,{get:()=>Bt,post:()=>$t});var O={};r.r(O),r.d(O,{get:()=>Nt});var T={};r.r(T),r.d(T,{get:()=>Ht});var E={};r.r(E),r.d(E,{CONFIG:()=>Ft,entry:()=>T,query:()=>S,subject:()=>O});var L={};r.r(L),r.d(L,{get:()=>Gt,getMyGroups:()=>Mt});var P={};r.r(P),r.d(P,{get:()=>qt});var x={};r.r(x),r.d(x,{act:()=>Vt});var I={};r.r(I),r.d(I,{CONFIG:()=>Wt,groups:()=>L,membership:()=>x,policies:()=>P});var j={};r.r(j),r.d(j,{get:()=>Yt,getAll:()=>zt,remove:()=>Jt});var U={};r.r(U),r.d(U,{getAll:()=>Kt});var R={};r.r(R),r.d(R,{CONFIG:()=>Xt,flows:()=>j,runs:()=>U});var k={};r.r(k),r.d(k,{create:()=>tr,get:()=>Zt,getAll:()=>Qt,patch:()=>nr,remove:()=>er,resetOwnerString:()=>ir,update:()=>rr,updateOwnerString:()=>or});var C={};r.r(C),r.d(C,{get:()=>sr,patch:()=>cr,update:()=>ar,updateSubscriptionId:()=>ur});var D={};r.r(D),r.d(D,{create:()=>lr,get:()=>dr,getAll:()=>pr,remove:()=>hr});var B={};r.r(B),r.d(B,{create:()=>yr,get:()=>gr,getAll:()=>fr,patch:()=>mr,remove:()=>vr,update:()=>br});var $={};r.r($),r.d($,{create:()=>Sr,get:()=>wr,getAll:()=>_r,patch:()=>Tr,remove:()=>Ar,update:()=>Or});var N={};r.r(N),r.d(N,{info:()=>Er});var H={};r.r(H),r.d(H,{collections:()=>k,endpoint:()=>C,getRequiredScopes:()=>Pr,roles:()=>D,storageGateways:()=>B,userCredentials:()=>$,versioning:()=>N});var F={};function M(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 G(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(F),r.d(F,{CONFIG:()=>Ir,create:()=>xr}),Object.create,Object.create,"function"==typeof SuppressedError&&SuppressedError;var q=r(368),V=r.n(q);const W="AUTH",z={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"},Y={VIEW_IDENTITIES:"urn:globus:auth:scope:auth.globus.org:view_identities"},J="TRANSFER",K={ALL:"urn:globus:auth:scope:transfer.api.globus.org:all"},X={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"},Q="FLOWS",Z={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"},ee={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"},te="GROUPS",re={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"},ne={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"},oe="SEARCH",ie={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"},se={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"},ae="TIMER",ce={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 ue extends Error{constructor(e,t){super(),this.name="EnvironmentConfigurationError",this.message=`Invalid configuration value provided for ${e} (${t}).`}}function pe(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 de={PRODUCTION:"production",PREVIEW:"preview",STAGING:"staging",SANDBOX:"sandbox",INTEGRATION:"integration",TEST:"test"};function he(){const e=pe("GLOBUS_SDK_ENVIRONMENT",de.PRODUCTION);if(!e||!Object.values(de).includes(e))throw new ue("GLOBUS_SDK_ENVIRONMENT",e);return e}const le={[W]:z,[J]:X,[Q]:Z,[te]:re,[oe]:ie,[ae]:ce};function fe(e,t,r,n){let o;return o="object"==typeof e?new URL(t,e.host):function(e,t="",r=he()){const n=function(e,t=he()){const r=function(e,t){return le[e][t]}(e,t);return pe(`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 ge,ve=r(945),ye=r.n(ve);class be{constructor(){ge.set(this,{})}get(e){return M(this,ge,"f")[e]}set(e,t){M(this,ge,"f")[e]=t}remove(e){delete M(this,ge,"f")[e]}clear(){G(this,ge,{},"f")}}ge=new WeakMap;class me{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 _e;function we(e="memory"){if(!_e){let t;t="localStorage"===e?me:"memory"===e?be:e,_e=new t}return _e}const Ae=we;function Se(e){e.scope.split(" ").forEach((t=>{Ae().set(t,e)}))}function Oe(e){const t=Ae().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 Te;function Ee(e,t,r){var n;const o=function(e){var t,r,n,o,i,s;let a=pe("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),i=(null===(n=null==o?void 0:o.fetch)||void 0===n?void 0:n.options)||{},s=Object.assign(Object.assign({},null==t?void 0:t.headers),i.headers);if(e.scope&&!(null==s?void 0:s.Authorization)){const t=Oe(e.scope);t&&(s.Authorization=t)}let a=null==t?void 0:t.body;!a&&(null==t?void 0:t.payload)&&(a=JSON.stringify(t.payload)),!(null==s?void 0:s["Content-Type"])&&a&&(s["Content-Type"]="application/json");const c=fe(e.service,e.path,{search:null==t?void 0:t.query},o),u=Object.assign(Object.assign({method:e.method,body:a},i),{headers:s});return(null==i?void 0:i.__callable)?(delete u.__callable,i.__callable.call(this,c,u)):ye()(c,u)}!function(e){e.POST="POST",e.GET="GET",e.DELETE="DELETE",e.PUT="PUT",e.PATCH="PATCH"}(Te||(Te={}));const Le=function(e,t={},r){return Ee({service:W,scope:Y.VIEW_IDENTITIES,path:`/identities/${e}`},t,r)},Pe=function(e={},t){return Ee({service:W,scope:Y.VIEW_IDENTITIES,path:"/identities"},e,t)};function xe(e){return Object.assign(Object.assign({},e),{body:(t=e.payload,new URLSearchParams(t)),headers:Object.assign(Object.assign({},(null==e?void 0:e.headers)||{}),{"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8"})});var t}const Ie=function(e,t){if(!(null==e?void 0:e.payload))throw new Error("'payload' is required for introspect");return Ee({service:W,scope:void 0,path:"/v2/oauth2/token/introspect",method:Te.POST},xe(e),t)},je=function(e,t){if(!(null==e?void 0:e.payload))throw new Error("'payload' is required for revoke");return Ee({service:W,scope:void 0,path:"/v2/oauth2/token/revoke",method:Te.POST},xe(e),t)},Ue=function(e,t){if(!(null==e?void 0:e.payload))throw new Error("'payload' is required for validate");return Ee({service:W,scope:void 0,path:"/v2/oauth2/token/validate",method:Te.POST},xe(e),t)},Re=e;function ke(){return fe(W,"/v2/oauth2/authorize")}function Ce(){return fe(W,"/v2/oauth2/token")}var De,Be,$e,Ne,He,Fe;let Me;class Ge{constructor(e){if(De.add(this),Be.set(this,void 0),$e.set(this,void 0),Ne.set(this,void 0),Me=we("localStorage"),!e.client_id)throw new Error("You must provide a `client_id`.");G(this,$e,Object.assign({client_id:e.client_id,authorization_endpoint:ke(),token_endpoint:Ce()},e),"f"),G(this,Be,M(this,De,"m",He).call(this),"f")}reset(){M(this,De,"m",Fe).call(this),Ae().clear()}redirect(){this.reset(),window.location.replace(M(this,Be,"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 M(this,Be,"f").exchangeForAccessToken(t.toString());var o;G(this,Ne,n,"f"),Se(o=M(this,Ne,"f")),"other_tokens"in o&&o.other_tokens.forEach(Se),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 M(this,$e,"f").requested_scopes.split(" ").every((e=>Boolean(Oe(e))))}revoke(){this.reset()}}function qe(e){return new Ge(e)}function Ve(e){return new Ge(e)}Be=new WeakMap,$e=new WeakMap,Ne=new WeakMap,De=new WeakSet,He=function(){return new(V())(M(this,$e,"f"))},Fe=function(){sessionStorage.removeItem("pkce_state"),sessionStorage.removeItem("pkce_code_verifier")};const We=function(e,t){const r=Object.assign(Object.assign({},e),{query:null==e?void 0:e.query});return Ee({service:J,scope:K.ALL,path:"/v0.10/endpoint_search"},r,t)};function ze(e){return e===Te.GET?{}:{"Content-Type":"application/json"}}const Ye=function(e,t,r){return Ee({service:J,scope:K.ALL,path:`/v0.10/operation/endpoint/${e}/ls`},t,r)},Je=function(e,t,r){const n={payload:Object.assign({DATA_TYPE:"mkdir"},null==t?void 0:t.payload),headers:Object.assign(Object.assign({},ze(Te.POST)),null==t?void 0:t.headers)};return Ee({service:J,scope:K.ALL,path:`/v0.10/operation/endpoint/${e}/mkdir`,method:Te.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({},ze(Te.POST)),null==t?void 0:t.headers)};return Ee({service:J,scope:K.ALL,path:`/v0.10/operation/endpoint/${e}/rename`,method:Te.POST},n,r)},Xe=function(e,t,r){const n={payload:Object.assign({DATA_TYPE:"symlink"},null==t?void 0:t.payload),headers:Object.assign(Object.assign({},ze(Te.POST)),null==t?void 0:t.headers)};return Ee({service:J,scope:K.ALL,path:`/v0.10/operation/endpoint/${e}/symlink`,method:Te.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({},ze(Te.POST)),null==e?void 0:e.headers)};return Ee({service:J,scope:K.ALL,path:"/v0.10/delete",method:Te.POST},r,t)},Ze=function(e,t){const r={payload:Object.assign({DATA_TYPE:"transfer"},null==e?void 0:e.payload),headers:Object.assign(Object.assign({},ze(Te.POST)),null==e?void 0:e.headers)};return Ee({service:J,scope:K.ALL,path:"/v0.10/transfer",method:Te.POST},r,t)},et=function(e,t){return Ee({service:J,scope:K.ALL,path:"/v0.10/submission_id"},e,t)},tt=function(e,t,r){return Ee({service:J,scope:K.ALL,path:`/v0.10/endpoint/${e}`},t,r)},rt=function(e,t,r){return Ee({service:J,scope:K.ALL,path:`/v0.10/endpoint/${e}`,method:Te.DELETE},t,r)},nt=function(e={},t){return Ee({service:J,scope:K.ALL,path:"/v0.10/task_list"},e,t)},ot=function(e,t,r){return Ee({service:J,scope:K.ALL,path:`/v0.10/task/${e}`},t,r)},it=function(e,t,r){return Ee({service:J,scope:K.ALL,path:`/v0.10/task/${e}`,method:Te.PUT},t,r)},st=function(e,t,r){return Ee({service:J,scope:K.ALL,path:`/v0.10/task/${e}/cancel`,method:Te.POST},t,r)},at=function(e,t,r){return Ee({service:J,scope:K.ALL,path:`/v0.10/task/${e}/remove`,method:Te.POST},t,r)},ct=function(e,t,r){return Ee({service:J,scope:K.ALL,path:`/v0.10/task/${e}/event_list`},t,r)},ut=function(e,t,r){return Ee({service:J,scope:K.ALL,path:`/v0.10/task/${e}/successful_transfers`},t,r)},pt=function(e,t,r){return Ee({service:J,scope:K.ALL,path:`/v0.10/task/${e}/skipped_errors`},t,r)},dt=function(e,t,r){return Ee({service:J,scope:K.ALL,path:`/v0.10/task/${e}/pause_info`},t,r)},ht=function(e,t,r){return Ee({service:J,scope:K.ALL,path:`/v0.10/endpoint/${e}/access_list`},t,r)},lt=function(e,t,r){return Ee({service:J,scope:K.ALL,path:`/v0.10/endpoint/${e}/access`,method:Te.POST},t,r)},ft=function({endpoint_xid:e,id:t},r,n){return Ee({service:J,scope:K.ALL,path:`/v0.10/endpoint/${e}/access/${t}`},r,n)},gt=function({endpoint_xid:e,id:t},r,n){return Ee({service:J,scope:K.ALL,path:`/v0.10/endpoint/${e}/access/${t}`,method:Te.PUT},r,n)},vt=function({endpoint_xid:e,id:t},r,n){return Ee({service:J,scope:K.ALL,path:`/v0.10/endpoint/${e}/access/${t}`,method:Te.DELETE},r,n)},yt=function(e,t,r){return Ee({service:J,scope:K.ALL,path:`/v0.10/endpoint_manager/endpoint/${e}`},t,r)},bt=function(e,t,r){return Ee({service:J,scope:K.ALL,path:`/v0.10/endpoint_manager/endpoint/${e}/hosted_endpoint_list`},t,r)},mt=function(e,t,r){return Ee({service:J,scope:K.ALL,path:`/v0.10/endpoint_manager/endpoint/${e}/access_list`},t,r)},_t=function(e={},t){return Ee({service:J,scope:K.ALL,path:"/v0.10/endpoint_manager/monitored_endpoints"},e,t)},wt=function(e,t){return Ee({service:J,scope:K.ALL,path:"/v0.10/endpoint_manager/pause_rule_list"},e,t)},At=function(e,t){return Ee({service:J,scope:K.ALL,path:"/v0.10/endpoint_manager/pause_rule",method:Te.POST},e,t)},St=function(e,t,r){return Ee({service:J,scope:K.ALL,path:`/v0.10/endpoint_manager/pause_rule/${e}`},t,r)},Ot=function(e,t,r){return Ee({service:J,scope:K.ALL,path:`/v0.10/endpoint_manager/pause_rule/${e}`,method:Te.PUT},t,r)},Tt=function(e,t,r){return Ee({service:J,scope:K.ALL,path:`/v0.10/endpoint_manager/pause_rule/${e}`,method:Te.DELETE},t,r)},Et=function(e={},t){return Ee({service:J,scope:K.ALL,path:"/v0.10/task_list"},e,t)},Lt=function(e,t,r){return Ee({service:J,scope:K.ALL,path:`/v0.10/endpoint_manager/task/${e}`},t,r)},Pt=function(e,t){return Ee({service:J,scope:K.ALL,path:"/v0.10/endpoint_manager/admin_cancel",method:Te.POST},e,t)},xt=function(e,t,r){return Ee({service:J,scope:K.ALL,path:`/v0.10/endpoint_manager/admin_cancel/${e}`,method:Te.POST},t,r)},It=function(e,t,r){return Ee({service:J,scope:K.ALL,path:`/v0.10/endpoint_manager/task/${e}/event_list`},t,r)},jt=function(e,t,r){return Ee({service:J,scope:K.ALL,path:`/v0.10/endpoint_manager/task/${e}/successful_transfers`},t,r)},Ut=function(e,t,r){return Ee({service:J,scope:K.ALL,path:`/v0.10/endpoint_manager/task/${e}/skipped_errors`},t,r)},Rt=function(e,t){return Ee({service:J,scope:K.ALL,path:"/v0.10/endpoint_manager/admin_pause",method:Te.POST},e,t)},kt=function(e,t){return Ee({service:J,scope:K.ALL,path:"/v0.10/endpoint_manager/admin_resume",method:Te.POST},e,t)},Ct=function(e,t,r){return Ee({service:J,scope:K.ALL,path:`/v0.10/endpoint_manager/task/${e}/pause_info`},t,r)},Dt=t,Bt=function(e,t,r){return Ee({service:oe,scope:se.SEARCH,path:`/v1/index/${e}/search`},t,r)},$t=function(e,t,r){return Ee({service:oe,scope:se.SEARCH,path:`/v1/index/${e}/search`,method:Te.POST},t,r)},Nt=function(e,t,r){return Ee({service:oe,scope:se.SEARCH,path:`/v1/index/${e}/subject`},t,r)},Ht=function(e,t,r){return Ee({service:oe,scope:se.SEARCH,path:`/v1/index/${e}/entry`},t,r)},Ft=s,Mt=function(e,t){return Ee({scope:ne.ALL,path:"/v2/groups/my_groups",service:te},e,t)},Gt=function(e,t,r){return Ee({service:te,scope:ne.ALL,path:`/v2/groups/${e}`},t,r)},qt=function(e,t,r){return Ee({scope:ne.ALL,path:`/v2/groups/${e}/policies`,service:te},t,r)},Vt=function(e,t,r){if(!(null==t?void 0:t.payload))throw new Error("payload is required.");return Ee({service:te,scope:ne.ALL,path:`/v2/groups/${e}`,method:Te.POST},t,r)},Wt=i,zt=function(e,t){return Ee({service:Q,scope:ee.VIEW_FLOWS,path:"/flows"},e,t)},Yt=function(e,t,r){return Ee({service:Q,scope:ee.VIEW_FLOWS,path:`/flows/${e}`},t,r)},Jt=function(e,t,r){return Ee({scope:ee.MANAGE_FLOWS,service:Q,path:`/flows/${e}`,method:Te.DELETE},t,r)},Kt=function(e={},t){return Ee({service:Q,scope:ee.RUN_MANAGE,path:"/runs"},e,t)},Xt=o,Qt=function(e,t,r){return Ee({service:e,scope:Pr(e),path:"/api/collections"},t,r)},Zt=function(e,t,r,n){return Ee({service:e,scope:Pr(e),path:`/api/collections/${t}`},r,n)},er=function(e,t,r,n){return Ee({service:e,scope:Pr(e),path:`/api/collections/${t}`,method:Te.DELETE},r,n)},tr=function(e,t,r){return Ee({service:e,scope:Pr(e),path:"/api/collections",method:Te.POST},t,r)},rr=function(e,t,r,n){return Ee({service:e,scope:Pr(e),path:`/api/collections/${t}`,method:Te.PUT},r,n)},nr=function(e,t,r,n){return Ee({service:e,scope:Pr(e),path:`/api/collections/${t}`,method:Te.PATCH},r,n)},or=function(e,t,r,n){return Ee({service:e,scope:Pr(e),path:`/api/collections/${t}/owner_string`,method:Te.PUT},r,n)},ir=function(e,t,r,n){return Ee({service:e,scope:Pr(e),path:`/api/collections/${t}/owner_string`,method:Te.DELETE},r,n)},sr=function(e,t,r){return Ee({service:e,scope:Pr(e),path:"/api/endpoint"},t,r)},ar=function(e,t,r){return Ee({service:e,scope:Pr(e),path:"/api/endpoint",method:Te.PUT},t,r)},cr=function(e,t,r){return Ee({service:e,scope:Pr(e),path:"/api/endpoint",method:Te.PATCH},t,r)},ur=function(e,t,r){return Ee({service:e,scope:Pr(e),path:"/api/endpoint/subscription_id",method:Te.PUT},t,r)},pr=function(e,t,r){return Ee({service:e,scope:Pr(e),path:"/api/roles"},t,r)},dr=function(e,t,r,n){return Ee({service:e,scope:Pr(e),path:`/api/roles/${t}`},r,n)},hr=function(e,t,r,n){return Ee({service:e,scope:Pr(e),path:`/api/roles/${t}`,method:Te.DELETE},r,n)},lr=function(e,t,r){return Ee({service:e,scope:Pr(e),path:"/api/roles",method:Te.POST},t,r)},fr=function(e,t,r){return Ee({service:e,scope:Pr(e),path:"/api/storage_gateways"},t,r)},gr=function(e,t,r,n){return Ee({service:e,scope:Pr(e),path:`/api/storage_gateways/${t}`},r,n)},vr=function(e,t,r,n){return Ee({service:e,scope:Pr(e),path:`/api/storage_gateways/${t}`,method:Te.DELETE},r,n)},yr=function(e,t,r){return Ee({service:e,scope:Pr(e),path:"/api/storage_gateways",method:Te.POST},t,r)},br=function(e,t,r,n){return Ee({service:e,scope:Pr(e),path:`/api/storage_gateways/${t}`,method:Te.PUT},r,n)},mr=function(e,t,r,n){return Ee({service:e,scope:Pr(e),path:`/api/storage_gateways/${t}`,method:Te.PATCH},r,n)},_r=function(e,t,r){return Ee({service:e,scope:Pr(e),path:"/api/user_credentials"},t,r)},wr=function(e,t,r,n){return Ee({service:e,scope:Pr(e),path:`/api/user_credentials/${t}`},r,n)},Ar=function(e,t,r,n){return Ee({service:e,scope:Pr(e),path:`/api/user_credentials/${t}`,method:Te.DELETE},r,n)},Sr=function(e,t,r){return Ee({service:e,scope:Pr(e),path:"/api/user_credentials",method:Te.POST},t,r)},Or=function(e,t,r,n){return Ee({service:e,scope:Pr(e),path:`/api/user_credentials/${t}`,method:Te.PUT},r,n)},Tr=function(e,t,r,n){return Ee({service:e,scope:Pr(e),path:`/api/user_credentials/${t}`,method:Te.PATCH},r,n)},Er=function(e,t,r){return Ee({service:e,scope:Pr(e),path:"/api/info"},t,r)},Lr={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 Pr(e){return Lr.HIGH_ASSURANCE.replace("<ENDPOINT_ID>",e.endpoint_id)}const xr=function(e,t){return Ee({service:ae,scope:"https://auth.globus.org/scopes/524230d7-ea86-4a52-8312-86065a9e0417/timer",path:"/v2/timer",method:Te.POST},e,t)},Ir=a})(),globus=n})();
1
+ var globus;(()=>{var e={945:(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 d(e){return"string"!=typeof e&&(e=String(e)),e}function h(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 l(e){this.map={},e instanceof l?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(w)}),this.json=function(){return this.text().then(JSON.parse)},this}l.prototype.append=function(e,t){e=p(e),t=d(t);var r=this.map[e];this.map[e]=r?r+", "+t:t},l.prototype.delete=function(e){delete this.map[p(e)]},l.prototype.get=function(e){return e=p(e),this.has(e)?this.map[e]:null},l.prototype.has=function(e){return this.map.hasOwnProperty(p(e))},l.prototype.set=function(e,t){this.map[p(e)]=d(t)},l.prototype.forEach=function(e,t){for(var r in this.map)this.map.hasOwnProperty(r)&&e.call(t,this.map[r],r,this)},l.prototype.keys=function(){var e=[];return this.forEach((function(t,r){e.push(r)})),h(e)},l.prototype.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),h(e)},l.prototype.entries=function(){var e=[];return this.forEach((function(t,r){e.push([r,t])})),h(e)},o&&(l.prototype[Symbol.iterator]=l.prototype.entries);var m=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function _(e,t){if(!(this instanceof _))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 _){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new l(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 l(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 w(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 A(e,t){if(!(this instanceof A))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 l(t.headers),this.url=t.url||"",this._initBody(e)}_.prototype.clone=function(){return new _(this,{body:this._bodyInit})},b.call(_.prototype),b.call(A.prototype),A.prototype.clone=function(){return new A(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new l(this.headers),url:this.url})},A.error=function(){var e=new A(null,{status:0,statusText:""});return e.type="error",e};var S=[301,302,303,307,308];A.redirect=function(e,t){if(-1===S.indexOf(t))throw new RangeError("Invalid status code");return new A(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 T(e,n){return new Promise((function(o,s){var c=new _(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 l,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 A(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 l?c.headers.forEach((function(e,t){u.setRequestHeader(t,e)})):Object.getOwnPropertyNames(n.headers).forEach((function(e){u.setRequestHeader(e,d(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)}))}T.polyfill=!0,r.fetch||(r.fetch=T,r.Headers=l,r.Request=_,r.Response=A),t.Headers=l,t.Request=_,t.Response=A,t.fetch=T}({})}(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},21: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(477)}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||d).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={},d=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)}},h=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)}},l=p.Utf8={stringify:function(e){try{return decodeURIComponent(escape(h.stringify(e)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function(e){return h.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=l.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 d=0;d<c;d+=s)this._doProcessBlock(o,d);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)},754:function(e,t,r){var n,o,i;e.exports=(n=r(21),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)},440:function(e,t,r){var n;e.exports=(n=r(21),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)},9:function(e,t,r){var n;e.exports=(n=r(21),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],d=r[6],h=r[7],l=0;l<64;l++){if(l<16)u[l]=0|e[t+l];else{var f=u[l-15],g=(f<<25|f>>>7)^(f<<14|f>>>18)^f>>>3,v=u[l-2],y=(v<<15|v>>>17)^(v<<13|v>>>19)^v>>>10;u[l]=g+u[l-7]+y+u[l-16]}var b=n&o^n&i^o&i,m=(n<<30|n>>>2)^(n<<19|n>>>13)^(n<<10|n>>>22),_=h+((a<<26|a>>>6)^(a<<21|a>>>11)^(a<<7|a>>>25))+(a&p^~a&d)+c[l]+u[l];h=d,d=p,p=a,a=s+_|0,s=i,i=o,o=n,n=_+(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]+d|0,r[7]=r[7]+h|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)},368: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(9)),s=o(r(754)),a=o(r(440)),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},477:()=>{}},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:()=>f,flows:()=>C,gcs:()=>M,groups:()=>R,logger:()=>e,search:()=>P,timer:()=>G,transfer:()=>T});var e={};r.r(e),r.d(e,{log:()=>J,setLogLevel:()=>Y,setLogger:()=>z});var t={};r.r(t),r.d(t,{HOSTS:()=>te,ID:()=>Z,SCOPES:()=>ee});var o={};r.r(o),r.d(o,{HOSTS:()=>ne,ID:()=>re,SCOPES:()=>oe});var i={};r.r(i),r.d(i,{HOSTS:()=>se,ID:()=>ie,RESOURCE_SERVERS:()=>ce,SCOPES:()=>ae});var s={};r.r(s),r.d(s,{HOSTS:()=>pe,ID:()=>ue,SCOPES:()=>de});var a={};r.r(a),r.d(a,{HOSTS:()=>le,ID:()=>he,SCOPES:()=>fe});var c={};r.r(c),r.d(c,{HOSTS:()=>ve,ID:()=>ge});var u={};r.r(u),r.d(u,{get:()=>Le,getAll:()=>Pe});var p={};r.r(p),r.d(p,{introspect:()=>je,revoke:()=>xe,validate:()=>Re});var d={};r.r(d),r.d(d,{token:()=>p});var h={};r.r(h),r.d(h,{CONFIG:()=>Ie,getAuthorizationEndpoint:()=>Ue,getTokenEndpoint:()=>Ce,identities:()=>u,isGlobusAuthTokenResponse:()=>$e,oauth2:()=>d});var l={};r.r(l),r.d(l,{getTokenForScope:()=>nt});var f={};r.r(f),r.d(f,{create:()=>it,getTokenForScope:()=>ot,tokens:()=>l});var g={};r.r(g),r.d(g,{ls:()=>ct,mkdir:()=>ut,rename:()=>pt,symlink:()=>dt});var v={};r.r(v),r.d(v,{submissionId:()=>ft,submitDelete:()=>ht,submitTransfer:()=>lt});var y={};r.r(y),r.d(y,{get:()=>gt,remove:()=>vt});var b={};r.r(b),r.d(b,{cancel:()=>_t,get:()=>bt,getAll:()=>yt,getEventList:()=>At,getPauseInfo:()=>Ot,getSkippedErrors:()=>Tt,getSuccessfulTransfers:()=>St,remove:()=>wt,update:()=>mt});var m={};r.r(m),r.d(m,{create:()=>Lt,get:()=>Pt,getAll:()=>Et,remove:()=>jt,update:()=>kt});var _={};r.r(_),r.d(_,{get:()=>xt,getAccessList:()=>It,getHostedEndpoints:()=>Rt,getMonitoredEndpoints:()=>Ut});var w={};r.r(w),r.d(w,{create:()=>$t,get:()=>Dt,getAll:()=>Ct,remove:()=>Nt,update:()=>Bt});var A={};r.r(A),r.d(A,{cancel:()=>Mt,get:()=>Ft,getAdminCancel:()=>Gt,getAll:()=>Ht,getEventList:()=>qt,getPauseInfo:()=>Jt,getSkippedErrors:()=>Wt,getSuccessfulTransfers:()=>Vt,pause:()=>zt,resume:()=>Yt});var S={};r.r(S),r.d(S,{endpoint:()=>_,pauseRule:()=>w,task:()=>A});var T={};r.r(T),r.d(T,{CONFIG:()=>Kt,access:()=>m,endpoint:()=>y,endpointManager:()=>S,endpointSearch:()=>st,fileOperations:()=>g,task:()=>b,taskSubmission:()=>v});var O={};r.r(O),r.d(O,{get:()=>Xt,post:()=>Qt});var E={};r.r(E),r.d(E,{get:()=>Zt});var L={};r.r(L),r.d(L,{get:()=>er});var P={};r.r(P),r.d(P,{CONFIG:()=>tr,entry:()=>L,query:()=>O,subject:()=>E});var k={};r.r(k),r.d(k,{get:()=>nr,getMyGroups:()=>rr});var j={};r.r(j),r.d(j,{get:()=>or});var x={};r.r(x),r.d(x,{act:()=>ir});var R={};r.r(R),r.d(R,{CONFIG:()=>sr,groups:()=>k,membership:()=>x,policies:()=>j});var I={};r.r(I),r.d(I,{get:()=>cr,getAll:()=>ar,remove:()=>ur});var U={};r.r(U),r.d(U,{getAll:()=>pr});var C={};r.r(C),r.d(C,{CONFIG:()=>dr,flows:()=>I,runs:()=>U});var $={};r.r($),r.d($,{create:()=>gr,get:()=>lr,getAll:()=>hr,patch:()=>yr,remove:()=>fr,resetOwnerString:()=>mr,update:()=>vr,updateOwnerString:()=>br});var D={};r.r(D),r.d(D,{get:()=>_r,patch:()=>Ar,update:()=>wr,updateSubscriptionId:()=>Sr});var B={};r.r(B),r.d(B,{create:()=>Lr,get:()=>Or,getAll:()=>Tr,remove:()=>Er});var N={};r.r(N),r.d(N,{create:()=>xr,get:()=>kr,getAll:()=>Pr,patch:()=>Ir,remove:()=>jr,update:()=>Rr});var H={};r.r(H),r.d(H,{create:()=>Dr,get:()=>Cr,getAll:()=>Ur,patch:()=>Nr,remove:()=>$r,update:()=>Br});var F={};r.r(F),r.d(F,{info:()=>Hr});var M={};r.r(M),r.d(M,{collections:()=>$,endpoint:()=>D,getRequiredScopes:()=>Mr,roles:()=>B,storageGateways:()=>N,userCredentials:()=>H,versioning:()=>F});var G={};r.r(G),r.d(G,{CONFIG:()=>qr,create:()=>Gr});const q=["debug","info","warn","error"];let V,W=q.indexOf("error");function z(e){V=e}function Y(e){W=q.indexOf(e)}function J(e,...t){var r;V&&(q.indexOf(e)<W||(null!==(r=V[e])&&void 0!==r?r:V.log)(...t))}function K(e,t,r,n){return new(r||(r=Promise))((function(o,i){function s(e){try{c(n.next(e))}catch(e){i(e)}}function a(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}c((n=n.apply(e,t||[])).next())}))}function X(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 Q(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}Object.create,Object.create,"function"==typeof SuppressedError&&SuppressedError;const Z="TRANSFER",ee={ALL:"urn:globus:auth:scope:transfer.api.globus.org:all"},te={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"},re="FLOWS",ne={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"},oe={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"},ie="AUTH",se={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"},ae={VIEW_IDENTITIES:"urn:globus:auth:scope:auth.globus.org:view_identities"},ce={[ie]:"auth.globus.org",[Z]:"transfer.api.globus.org",[re]:"flows.api.globus.org"},ue="GROUPS",pe={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"},de={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"},he="SEARCH",le={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"},fe={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"},ge="TIMER",ve={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 ye extends Error{constructor(e,t){super(),this.name="EnvironmentConfigurationError",this.message=`Invalid configuration value provided for ${e} (${t}).`}}function be(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 me={PRODUCTION:"production",PREVIEW:"preview",STAGING:"staging",SANDBOX:"sandbox",INTEGRATION:"integration",TEST:"test"};function _e(){const e=be("GLOBUS_SDK_ENVIRONMENT",me.PRODUCTION);if(!e||!Object.values(me).includes(e))throw new ye("GLOBUS_SDK_ENVIRONMENT",e);return e}const we={[ie]:se,[Z]:te,[re]:ne,[ue]:pe,[he]:le,[ge]:ve};function Ae(e,t,r,n){let o;return o="object"==typeof e?new URL(t,e.host):function(e,t="",r=_e()){const n=function(e,t=_e()){const r=function(e,t=_e()){return we[e][t]}(e,t);return be(`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,Te=r(945),Oe=r.n(Te);function Ee(e,t,r){var n;const o=function(e){var t,r,n,o,i,s;let a=be("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),i=(null===(n=null==o?void 0:o.fetch)||void 0===n?void 0:n.options)||{},s=Object.assign(Object.assign({},null==t?void 0:t.headers),i.headers);if(e.scope&&!(null==s?void 0:s.Authorization)){const t=ot(e.scope);t&&(s.Authorization=t)}let a=null==t?void 0:t.body;!a&&(null==t?void 0:t.payload)&&(a=JSON.stringify(t.payload)),!(null==s?void 0:s["Content-Type"])&&a&&(s["Content-Type"]="application/json");const c=Ae(e.service,e.path,{search:null==t?void 0:t.query},o),u=Object.assign(Object.assign({method:e.method,body:a},i),{headers:s});return(null==i?void 0:i.__callable)?(delete u.__callable,i.__callable.call(this,c,u)):Oe()(c,u)}!function(e){e.POST="POST",e.GET="GET",e.DELETE="DELETE",e.PUT="PUT",e.PATCH="PATCH"}(Se||(Se={}));const Le=function(e,t={},r){return Ee({service:ie,scope:ae.VIEW_IDENTITIES,path:`/identities/${e}`},t,r)},Pe=function(e={},t){return Ee({service:ie,scope:ae.VIEW_IDENTITIES,path:"/identities"},e,t)};function ke(e){return Object.assign(Object.assign({},e),{body:(t=e.payload,new URLSearchParams(t)),headers:Object.assign(Object.assign({},(null==e?void 0:e.headers)||{}),{"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8"})});var t}const je=function(e,t){if(!(null==e?void 0:e.payload))throw new Error("'payload' is required for introspect");return Ee({service:ie,scope:void 0,path:"/v2/oauth2/token/introspect",method:Se.POST},ke(e),t)},xe=function(e,t){if(!(null==e?void 0:e.payload))throw new Error("'payload' is required for revoke");return Ee({service:ie,scope:void 0,path:"/v2/oauth2/token/revoke",method:Se.POST},ke(e),t)},Re=function(e,t){if(!(null==e?void 0:e.payload))throw new Error("'payload' is required for validate");return Ee({service:ie,scope:void 0,path:"/v2/oauth2/token/validate",method:Se.POST},ke(e),t)},Ie=i;function Ue(){return Ae(ie,"/v2/oauth2/authorize")}function Ce(){return Ae(ie,"/v2/oauth2/token")}function $e(e){return"object"==typeof e&&null!==e&&"resource_server"in e&&"state"in e}var De,Be;class Ne{constructor(){De.set(this,{})}get(e){return X(this,De,"f")[e]}set(e,t){X(this,De,"f")[e]=t}remove(e){delete X(this,De,"f")[e]}clear(){Q(this,De,{},"f")}}De=new WeakMap;class He{constructor(){Be.set(this,globalThis.localStorage)}get(e){return X(this,Be,"f").getItem(e)}set(e,t){X(this,Be,"f").setItem(e,JSON.stringify(t))}remove(e){X(this,Be,"f").removeItem(e)}clear(){X(this,Be,"f").clear()}}let Fe;function Me(e="memory"){if(!Fe){let t;t="localStorage"===e?He:"memory"===e?Ne:e,Fe=new t}return Fe}Be=new WeakMap;const Ge=Me;var qe;class Ve{constructor(e){this.name=e,qe.set(this,[])}addListener(e){return X(this,qe,"f").push(e),()=>this.removeListener(e)}removeListener(e){Q(this,qe,X(this,qe,"f").filter((t=>t!==e)),"f")}dispatch(e){return K(this,void 0,void 0,(function*(){yield Promise.all(X(this,qe,"f").map((t=>t(e))))}))}}qe=new WeakMap;var We,ze,Ye,Je,Ke,Xe,Qe,Ze=r(368),et=r.n(Ze);class tt{constructor(e){We.set(this,void 0),Q(this,We,new(et())(Object.assign({},e)),"f")}send(){window.location.replace(X(this,We,"f").authorizeUrl())}getToken(){return K(this,void 0,void 0,(function*(){const e=new URL(window.location.href),t=new URLSearchParams(e.search);if(!t.get("code"))return;const r=yield X(this,We,"f").exchangeForAccessToken(e.toString());return t.delete("code"),t.delete("state"),e.search=t.toString(),sessionStorage.removeItem("pkce_state"),sessionStorage.removeItem("pkce_code_verifier"),window.location.replace(e),r}))}}We=new WeakMap;class rt{getTokenForService(e){var t;const r=null===(t=Ie.RESOURCE_SERVERS)||void 0===t?void 0:t[e];if(!r)throw new Error(`No resource server found for service: ${e}`);const n=Ge().get(`${X(this,Je,"f").client_id}:${r}`)||"{}";return JSON.parse(n).access_token}constructor(e){if(ze.add(this),Ye.set(this,void 0),Je.set(this,void 0),this.authenticated=!1,this.events={authenticated:new Ve("authenticated"),revoke:new Ve("revoke")},this.addTokenResponse=e=>{Ge().set(`${X(this,Je,"f").client_id}:${e.resource_server}`,e),"other_tokens"in e&&e.other_tokens.forEach(this.addTokenResponse)},Me("localStorage"),!e.client_id)throw new Error("You must provide a `client_id` for your application.");Q(this,Je,Object.assign({},e),"f"),this.startSilentRenew()}startSilentRenew(){J("debug","AuthorizationManager.startSilentRenew"),X(this,ze,"m",Ke).call(this)}hasGlobusAuthToken(){return null!==this.getGlobusAuthToken()}getGlobusAuthToken(){const e=Ge().get(`${X(this,Je,"f").client_id}:auth.globus.org`);return e?JSON.parse(e):null}reset(){this.authenticated=!1,Ge().clear()}redirect(){this.reset(),X(this,ze,"m",Qe).call(this).send()}handleCodeRedirect(){return K(this,void 0,void 0,(function*(){const e=yield X(this,ze,"m",Qe).call(this).getToken();$e(e)&&(this.addTokenResponse(e),this.authenticated=!0,yield X(this,ze,"m",Xe).call(this))}))}handleConsentRequiredError(e){Q(this,Ye,X(this,ze,"m",Qe).call(this,{requested_scopes:e.required_scopes.join(" ")}),"f"),X(this,Ye,"f").send()}revoke(){return K(this,void 0,void 0,(function*(){this.reset(),yield this.events.revoke.dispatch()}))}}function nt(e){const t=Ge().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}Ye=new WeakMap,Je=new WeakMap,ze=new WeakSet,Ke=function(){return K(this,void 0,void 0,(function*(){J("debug","AuthorizationManager.bootstrapFromStorageState"),this.hasGlobusAuthToken()&&(J("debug","AuthorizationManager.bootstrapFromStorageState: hasGlobusAuthToken"),this.authenticated=!0,yield X(this,ze,"m",Xe).call(this))}))},Xe=function(){var e;return K(this,void 0,void 0,(function*(){const t=this.authenticated,r=null!==(e=this.getGlobusAuthToken())&&void 0!==e?e:void 0;yield this.events.authenticated.dispatch({isAuthenticated:t,token:r})}))},Qe=function(e){return new tt(Object.assign({client_id:X(this,Je,"f").client_id,authorization_endpoint:Ue(),token_endpoint:Ce(),redirect_uri:X(this,Je,"f").redirect_uri,requested_scopes:X(this,Je,"f").requested_scopes},e))};const{getTokenForScope:ot}=l;function it(e){return new rt(e)}const st=function(e,t){const r=Object.assign(Object.assign({},e),{query:null==e?void 0:e.query});return Ee({service:Z,scope:ee.ALL,path:"/v0.10/endpoint_search"},r,t)};function at(e){return e===Se.GET?{}:{"Content-Type":"application/json"}}const ct=function(e,t,r){return Ee({service:Z,scope:ee.ALL,path:`/v0.10/operation/endpoint/${e}/ls`},t,r)},ut=function(e,t,r){const n={payload:Object.assign({DATA_TYPE:"mkdir"},null==t?void 0:t.payload),headers:Object.assign(Object.assign({},at(Se.POST)),null==t?void 0:t.headers)};return Ee({service:Z,scope:ee.ALL,path:`/v0.10/operation/endpoint/${e}/mkdir`,method:Se.POST},n,r)},pt=function(e,t,r){const n={payload:Object.assign({DATA_TYPE:"rename"},null==t?void 0:t.payload),headers:Object.assign(Object.assign({},at(Se.POST)),null==t?void 0:t.headers)};return Ee({service:Z,scope:ee.ALL,path:`/v0.10/operation/endpoint/${e}/rename`,method:Se.POST},n,r)},dt=function(e,t,r){const n={payload:Object.assign({DATA_TYPE:"symlink"},null==t?void 0:t.payload),headers:Object.assign(Object.assign({},at(Se.POST)),null==t?void 0:t.headers)};return Ee({service:Z,scope:ee.ALL,path:`/v0.10/operation/endpoint/${e}/symlink`,method:Se.POST},n,r)},ht=function(e,t){const r={payload:Object.assign({DATA_TYPE:"delete"},null==e?void 0:e.payload),headers:Object.assign(Object.assign({},at(Se.POST)),null==e?void 0:e.headers)};return Ee({service:Z,scope:ee.ALL,path:"/v0.10/delete",method:Se.POST},r,t)},lt=function(e,t){const r={payload:Object.assign({DATA_TYPE:"transfer"},null==e?void 0:e.payload),headers:Object.assign(Object.assign({},at(Se.POST)),null==e?void 0:e.headers)};return Ee({service:Z,scope:ee.ALL,path:"/v0.10/transfer",method:Se.POST},r,t)},ft=function(e,t){return Ee({service:Z,scope:ee.ALL,path:"/v0.10/submission_id"},e,t)},gt=function(e,t,r){return Ee({service:Z,scope:ee.ALL,path:`/v0.10/endpoint/${e}`},t,r)},vt=function(e,t,r){return Ee({service:Z,scope:ee.ALL,path:`/v0.10/endpoint/${e}`,method:Se.DELETE},t,r)},yt=function(e={},t){return Ee({service:Z,scope:ee.ALL,path:"/v0.10/task_list"},e,t)},bt=function(e,t,r){return Ee({service:Z,scope:ee.ALL,path:`/v0.10/task/${e}`},t,r)},mt=function(e,t,r){return Ee({service:Z,scope:ee.ALL,path:`/v0.10/task/${e}`,method:Se.PUT},t,r)},_t=function(e,t,r){return Ee({service:Z,scope:ee.ALL,path:`/v0.10/task/${e}/cancel`,method:Se.POST},t,r)},wt=function(e,t,r){return Ee({service:Z,scope:ee.ALL,path:`/v0.10/task/${e}/remove`,method:Se.POST},t,r)},At=function(e,t,r){return Ee({service:Z,scope:ee.ALL,path:`/v0.10/task/${e}/event_list`},t,r)},St=function(e,t,r){return Ee({service:Z,scope:ee.ALL,path:`/v0.10/task/${e}/successful_transfers`},t,r)},Tt=function(e,t,r){return Ee({service:Z,scope:ee.ALL,path:`/v0.10/task/${e}/skipped_errors`},t,r)},Ot=function(e,t,r){return Ee({service:Z,scope:ee.ALL,path:`/v0.10/task/${e}/pause_info`},t,r)},Et=function(e,t,r){return Ee({service:Z,scope:ee.ALL,path:`/v0.10/endpoint/${e}/access_list`},t,r)},Lt=function(e,t,r){return Ee({service:Z,scope:ee.ALL,path:`/v0.10/endpoint/${e}/access`,method:Se.POST},t,r)},Pt=function({endpoint_xid:e,id:t},r,n){return Ee({service:Z,scope:ee.ALL,path:`/v0.10/endpoint/${e}/access/${t}`},r,n)},kt=function({endpoint_xid:e,id:t},r,n){return Ee({service:Z,scope:ee.ALL,path:`/v0.10/endpoint/${e}/access/${t}`,method:Se.PUT},r,n)},jt=function({endpoint_xid:e,id:t},r,n){return Ee({service:Z,scope:ee.ALL,path:`/v0.10/endpoint/${e}/access/${t}`,method:Se.DELETE},r,n)},xt=function(e,t,r){return Ee({service:Z,scope:ee.ALL,path:`/v0.10/endpoint_manager/endpoint/${e}`},t,r)},Rt=function(e,t,r){return Ee({service:Z,scope:ee.ALL,path:`/v0.10/endpoint_manager/endpoint/${e}/hosted_endpoint_list`},t,r)},It=function(e,t,r){return Ee({service:Z,scope:ee.ALL,path:`/v0.10/endpoint_manager/endpoint/${e}/access_list`},t,r)},Ut=function(e={},t){return Ee({service:Z,scope:ee.ALL,path:"/v0.10/endpoint_manager/monitored_endpoints"},e,t)},Ct=function(e,t){return Ee({service:Z,scope:ee.ALL,path:"/v0.10/endpoint_manager/pause_rule_list"},e,t)},$t=function(e,t){return Ee({service:Z,scope:ee.ALL,path:"/v0.10/endpoint_manager/pause_rule",method:Se.POST},e,t)},Dt=function(e,t,r){return Ee({service:Z,scope:ee.ALL,path:`/v0.10/endpoint_manager/pause_rule/${e}`},t,r)},Bt=function(e,t,r){return Ee({service:Z,scope:ee.ALL,path:`/v0.10/endpoint_manager/pause_rule/${e}`,method:Se.PUT},t,r)},Nt=function(e,t,r){return Ee({service:Z,scope:ee.ALL,path:`/v0.10/endpoint_manager/pause_rule/${e}`,method:Se.DELETE},t,r)},Ht=function(e={},t){return Ee({service:Z,scope:ee.ALL,path:"/v0.10/task_list"},e,t)},Ft=function(e,t,r){return Ee({service:Z,scope:ee.ALL,path:`/v0.10/endpoint_manager/task/${e}`},t,r)},Mt=function(e,t){return Ee({service:Z,scope:ee.ALL,path:"/v0.10/endpoint_manager/admin_cancel",method:Se.POST},e,t)},Gt=function(e,t,r){return Ee({service:Z,scope:ee.ALL,path:`/v0.10/endpoint_manager/admin_cancel/${e}`,method:Se.POST},t,r)},qt=function(e,t,r){return Ee({service:Z,scope:ee.ALL,path:`/v0.10/endpoint_manager/task/${e}/event_list`},t,r)},Vt=function(e,t,r){return Ee({service:Z,scope:ee.ALL,path:`/v0.10/endpoint_manager/task/${e}/successful_transfers`},t,r)},Wt=function(e,t,r){return Ee({service:Z,scope:ee.ALL,path:`/v0.10/endpoint_manager/task/${e}/skipped_errors`},t,r)},zt=function(e,t){return Ee({service:Z,scope:ee.ALL,path:"/v0.10/endpoint_manager/admin_pause",method:Se.POST},e,t)},Yt=function(e,t){return Ee({service:Z,scope:ee.ALL,path:"/v0.10/endpoint_manager/admin_resume",method:Se.POST},e,t)},Jt=function(e,t,r){return Ee({service:Z,scope:ee.ALL,path:`/v0.10/endpoint_manager/task/${e}/pause_info`},t,r)},Kt=t,Xt=function(e,t,r){return Ee({service:he,scope:fe.SEARCH,path:`/v1/index/${e}/search`},t,r)},Qt=function(e,t,r){return Ee({service:he,scope:fe.SEARCH,path:`/v1/index/${e}/search`,method:Se.POST},t,r)},Zt=function(e,t,r){return Ee({service:he,scope:fe.SEARCH,path:`/v1/index/${e}/subject`},t,r)},er=function(e,t,r){return Ee({service:he,scope:fe.SEARCH,path:`/v1/index/${e}/entry`},t,r)},tr=a,rr=function(e,t){return Ee({scope:de.ALL,path:"/v2/groups/my_groups",service:ue},e,t)},nr=function(e,t,r){return Ee({service:ue,scope:de.ALL,path:`/v2/groups/${e}`},t,r)},or=function(e,t,r){return Ee({scope:de.ALL,path:`/v2/groups/${e}/policies`,service:ue},t,r)},ir=function(e,t,r){if(!(null==t?void 0:t.payload))throw new Error("payload is required.");return Ee({service:ue,scope:de.ALL,path:`/v2/groups/${e}`,method:Se.POST},t,r)},sr=s,ar=function(e,t){return Ee({service:re,scope:oe.VIEW_FLOWS,path:"/flows"},e,t)},cr=function(e,t,r){return Ee({service:re,scope:oe.VIEW_FLOWS,path:`/flows/${e}`},t,r)},ur=function(e,t,r){return Ee({scope:oe.MANAGE_FLOWS,service:re,path:`/flows/${e}`,method:Se.DELETE},t,r)},pr=function(e={},t){return Ee({service:re,scope:oe.RUN_MANAGE,path:"/runs"},e,t)},dr=o,hr=function(e,t,r){return Ee({service:e,scope:Mr(e),path:"/api/collections"},t,r)},lr=function(e,t,r,n){return Ee({service:e,scope:Mr(e),path:`/api/collections/${t}`},r,n)},fr=function(e,t,r,n){return Ee({service:e,scope:Mr(e),path:`/api/collections/${t}`,method:Se.DELETE},r,n)},gr=function(e,t,r){return Ee({service:e,scope:Mr(e),path:"/api/collections",method:Se.POST},t,r)},vr=function(e,t,r,n){return Ee({service:e,scope:Mr(e),path:`/api/collections/${t}`,method:Se.PUT},r,n)},yr=function(e,t,r,n){return Ee({service:e,scope:Mr(e),path:`/api/collections/${t}`,method:Se.PATCH},r,n)},br=function(e,t,r,n){return Ee({service:e,scope:Mr(e),path:`/api/collections/${t}/owner_string`,method:Se.PUT},r,n)},mr=function(e,t,r,n){return Ee({service:e,scope:Mr(e),path:`/api/collections/${t}/owner_string`,method:Se.DELETE},r,n)},_r=function(e,t,r){return Ee({service:e,scope:Mr(e),path:"/api/endpoint"},t,r)},wr=function(e,t,r){return Ee({service:e,scope:Mr(e),path:"/api/endpoint",method:Se.PUT},t,r)},Ar=function(e,t,r){return Ee({service:e,scope:Mr(e),path:"/api/endpoint",method:Se.PATCH},t,r)},Sr=function(e,t,r){return Ee({service:e,scope:Mr(e),path:"/api/endpoint/subscription_id",method:Se.PUT},t,r)},Tr=function(e,t,r){return Ee({service:e,scope:Mr(e),path:"/api/roles"},t,r)},Or=function(e,t,r,n){return Ee({service:e,scope:Mr(e),path:`/api/roles/${t}`},r,n)},Er=function(e,t,r,n){return Ee({service:e,scope:Mr(e),path:`/api/roles/${t}`,method:Se.DELETE},r,n)},Lr=function(e,t,r){return Ee({service:e,scope:Mr(e),path:"/api/roles",method:Se.POST},t,r)},Pr=function(e,t,r){return Ee({service:e,scope:Mr(e),path:"/api/storage_gateways"},t,r)},kr=function(e,t,r,n){return Ee({service:e,scope:Mr(e),path:`/api/storage_gateways/${t}`},r,n)},jr=function(e,t,r,n){return Ee({service:e,scope:Mr(e),path:`/api/storage_gateways/${t}`,method:Se.DELETE},r,n)},xr=function(e,t,r){return Ee({service:e,scope:Mr(e),path:"/api/storage_gateways",method:Se.POST},t,r)},Rr=function(e,t,r,n){return Ee({service:e,scope:Mr(e),path:`/api/storage_gateways/${t}`,method:Se.PUT},r,n)},Ir=function(e,t,r,n){return Ee({service:e,scope:Mr(e),path:`/api/storage_gateways/${t}`,method:Se.PATCH},r,n)},Ur=function(e,t,r){return Ee({service:e,scope:Mr(e),path:"/api/user_credentials"},t,r)},Cr=function(e,t,r,n){return Ee({service:e,scope:Mr(e),path:`/api/user_credentials/${t}`},r,n)},$r=function(e,t,r,n){return Ee({service:e,scope:Mr(e),path:`/api/user_credentials/${t}`,method:Se.DELETE},r,n)},Dr=function(e,t,r){return Ee({service:e,scope:Mr(e),path:"/api/user_credentials",method:Se.POST},t,r)},Br=function(e,t,r,n){return Ee({service:e,scope:Mr(e),path:`/api/user_credentials/${t}`,method:Se.PUT},r,n)},Nr=function(e,t,r,n){return Ee({service:e,scope:Mr(e),path:`/api/user_credentials/${t}`,method:Se.PATCH},r,n)},Hr=function(e,t,r){return Ee({service:e,scope:Mr(e),path:"/api/info"},t,r)},Fr={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 Mr(e){return Fr.HIGH_ASSURANCE.replace("<ENDPOINT_ID>",e.endpoint_id)}const Gr=function(e,t){return Ee({service:ge,scope:"https://auth.globus.org/scopes/524230d7-ea86-4a52-8312-86065a9e0417/timer",path:"/v2/timer",method:Se.POST},e,t)},qr=c})(),globus=n})();
@@ -1,30 +0,0 @@
1
- import type IConfig from 'js-pkce/dist/IConfig';
2
- type PKCEConfiguration = {
3
- client_id?: IConfig['client_id'];
4
- requested_scopes: IConfig['requested_scopes'];
5
- redirect_uri: IConfig['redirect_uri'];
6
- };
7
- /**
8
- * @experimental
9
- */
10
- export declare class PKCEAuthorization {
11
- #private;
12
- constructor(configuration: PKCEConfiguration);
13
- reset(): void;
14
- redirect(): void;
15
- handleCodeRedirect(options?: {
16
- removeStateAndReplaceLocation: boolean;
17
- }): Promise<void>;
18
- hasToken(): boolean;
19
- revoke(): void;
20
- }
21
- /**
22
- * @experimental
23
- */
24
- export declare function pkce(configuration: PKCEConfiguration): PKCEAuthorization;
25
- /**
26
- * @experimental
27
- */
28
- export declare function incremental(configuration: PKCEConfiguration): PKCEAuthorization;
29
- export {};
30
- //# sourceMappingURL=authorization.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"authorization.d.ts","sourceRoot":"","sources":["../../../../src/lib/core/authorization.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAUhD,KAAK,iBAAiB,GAAG;IACvB,SAAS,CAAC,EAAE,OAAO,CAAC,WAAW,CAAC,CAAC;IACjC,gBAAgB,EAAE,OAAO,CAAC,kBAAkB,CAAC,CAAC;IAC9C,YAAY,EAAE,OAAO,CAAC,cAAc,CAAC,CAAC;CACvC,CAAC;AAEF;;GAEG;AACH,qBAAa,iBAAiB;;gBAOhB,aAAa,EAAE,iBAAiB;IA4B5C,KAAK;IAKL,QAAQ;IAKF,kBAAkB,CAAC,OAAO;;KAA0C;IAiB1E,QAAQ,IAAI,OAAO;IAMnB,MAAM;CAGP;AAED;;GAEG;AACH,wBAAgB,IAAI,CAAC,aAAa,EAAE,iBAAiB,qBAEpD;AAED;;GAEG;AACH,wBAAgB,WAAW,CAAC,aAAa,EAAE,iBAAiB,qBAE3D"}