@globus/sdk 6.2.0-canary.15.a9ac261 → 6.2.0-canary.17.a0c116d
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/core/authorization/index.js +1 -0
- package/dist/cjs/core/authorization/index.js.map +2 -2
- package/dist/cjs/index.js +577 -211
- package/dist/cjs/index.js.map +4 -4
- package/dist/cjs/services/globus-connect-server/client.js.map +2 -2
- package/dist/esm/open-api/types/transfer.d.ts +2 -2
- package/dist/esm/open-api/types/transfer.d.ts.map +1 -1
- package/dist/esm/package.json +1 -1
- package/dist/esm/services/auth/config.d.ts +1 -0
- package/dist/esm/services/auth/config.d.ts.map +1 -1
- package/dist/esm/services/auth/config.js +1 -0
- package/dist/esm/services/auth/config.js.map +1 -1
- package/dist/esm/services/auth/index.d.ts +1 -0
- package/dist/esm/services/auth/index.d.ts.map +1 -1
- package/dist/esm/services/auth/index.js +1 -0
- package/dist/esm/services/auth/index.js.map +1 -1
- package/dist/esm/services/auth/service/developers/clients/credentials.d.ts +52 -0
- package/dist/esm/services/auth/service/developers/clients/credentials.d.ts.map +1 -0
- package/dist/esm/services/auth/service/developers/clients/credentials.js +39 -0
- package/dist/esm/services/auth/service/developers/clients/credentials.js.map +1 -0
- package/dist/esm/services/auth/service/developers/clients/index.d.ts +98 -0
- package/dist/esm/services/auth/service/developers/clients/index.d.ts.map +1 -0
- package/dist/esm/services/auth/service/developers/clients/index.js +77 -0
- package/dist/esm/services/auth/service/developers/clients/index.js.map +1 -0
- package/dist/esm/services/auth/service/developers/clients/scopes.d.ts +25 -0
- package/dist/esm/services/auth/service/developers/clients/scopes.d.ts.map +1 -0
- package/dist/esm/services/auth/service/developers/clients/scopes.js +26 -0
- package/dist/esm/services/auth/service/developers/clients/scopes.js.map +1 -0
- package/dist/esm/services/auth/service/developers/index.d.ts +8 -0
- package/dist/esm/services/auth/service/developers/index.d.ts.map +1 -0
- package/dist/esm/services/auth/service/developers/index.js +5 -0
- package/dist/esm/services/auth/service/developers/index.js.map +1 -0
- package/dist/esm/services/auth/service/developers/policies.d.ts +66 -0
- package/dist/esm/services/auth/service/developers/policies.d.ts.map +1 -0
- package/dist/esm/services/auth/service/developers/policies.js +61 -0
- package/dist/esm/services/auth/service/developers/policies.js.map +1 -0
- package/dist/esm/services/auth/service/developers/projects.d.ts +85 -0
- package/dist/esm/services/auth/service/developers/projects.d.ts.map +1 -0
- package/dist/esm/services/auth/service/developers/projects.js +66 -0
- package/dist/esm/services/auth/service/developers/projects.js.map +1 -0
- package/dist/esm/services/auth/service/developers/scopes.d.ts +70 -0
- package/dist/esm/services/auth/service/developers/scopes.d.ts.map +1 -0
- package/dist/esm/services/auth/service/developers/scopes.js +49 -0
- package/dist/esm/services/auth/service/developers/scopes.js.map +1 -0
- package/dist/esm/services/auth/service/identities/index.d.ts +12 -1
- package/dist/esm/services/auth/service/identities/index.d.ts.map +1 -1
- package/dist/esm/services/auth/service/identities/index.js +1 -1
- package/dist/esm/services/auth/service/identities/index.js.map +1 -1
- package/dist/umd/globus.production.js +2 -2
- package/dist/umd/globus.production.js.map +4 -4
- package/package.json +1 -1
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { ID, SCOPES } from '../../config.js';
|
|
2
|
+
import { HTTP_METHODS, serviceRequest } from '../../../shared.js';
|
|
3
|
+
/**
|
|
4
|
+
* Return a specific project by id if the authenticated entity is an admin of that project.
|
|
5
|
+
* @see https://docs.globus.org/api/auth/reference/#get_projects
|
|
6
|
+
*/
|
|
7
|
+
export const get = function (project_id, options = {}, sdkOptions) {
|
|
8
|
+
return serviceRequest({
|
|
9
|
+
service: ID,
|
|
10
|
+
scope: SCOPES.MANAGE_PROJECTS,
|
|
11
|
+
path: `/v2/api/projects/${project_id}`,
|
|
12
|
+
method: HTTP_METHODS.GET,
|
|
13
|
+
}, options, sdkOptions);
|
|
14
|
+
};
|
|
15
|
+
/**
|
|
16
|
+
* Return a list of projects the authenticated entity is an admin of.
|
|
17
|
+
* @see https://docs.globus.org/api/auth/reference/#get_projects
|
|
18
|
+
*/
|
|
19
|
+
export const getAll = function (options = {}, sdkOptions) {
|
|
20
|
+
return serviceRequest({
|
|
21
|
+
service: ID,
|
|
22
|
+
scope: SCOPES.MANAGE_PROJECTS,
|
|
23
|
+
path: `/v2/api/projects`,
|
|
24
|
+
method: HTTP_METHODS.GET,
|
|
25
|
+
}, options, sdkOptions);
|
|
26
|
+
};
|
|
27
|
+
/**
|
|
28
|
+
* Create a new project with a set of admins
|
|
29
|
+
*
|
|
30
|
+
* @see https://docs.globus.org/api/auth/reference/#create_project
|
|
31
|
+
*/
|
|
32
|
+
export const create = function (options, sdkOptions) {
|
|
33
|
+
return serviceRequest({
|
|
34
|
+
service: ID,
|
|
35
|
+
scope: SCOPES.MANAGE_PROJECTS,
|
|
36
|
+
path: `/v2/api/projects`,
|
|
37
|
+
method: HTTP_METHODS.POST,
|
|
38
|
+
}, Object.assign(Object.assign({}, options), { payload: { project: options === null || options === void 0 ? void 0 : options.payload } }), sdkOptions);
|
|
39
|
+
};
|
|
40
|
+
/**
|
|
41
|
+
* Update a project by id. All fields are optional.
|
|
42
|
+
*
|
|
43
|
+
* @see https://docs.globus.org/api/auth/reference/#update_project
|
|
44
|
+
*/
|
|
45
|
+
export const update = function (project_id, options, sdkOptions) {
|
|
46
|
+
return serviceRequest({
|
|
47
|
+
service: ID,
|
|
48
|
+
scope: SCOPES.MANAGE_PROJECTS,
|
|
49
|
+
path: `/v2/api/projects/${project_id}`,
|
|
50
|
+
method: HTTP_METHODS.PUT,
|
|
51
|
+
}, Object.assign(Object.assign({}, options), { payload: { project: options === null || options === void 0 ? void 0 : options.payload } }), sdkOptions);
|
|
52
|
+
};
|
|
53
|
+
/**
|
|
54
|
+
* Delete a project by id.
|
|
55
|
+
*
|
|
56
|
+
* @see https://docs.globus.org/api/auth/reference/#delete_project
|
|
57
|
+
*/
|
|
58
|
+
export const remove = function (project_id, options, sdkOptions) {
|
|
59
|
+
return serviceRequest({
|
|
60
|
+
service: ID,
|
|
61
|
+
scope: SCOPES.MANAGE_PROJECTS,
|
|
62
|
+
path: `/v2/api/projects/${project_id}`,
|
|
63
|
+
method: HTTP_METHODS.DELETE,
|
|
64
|
+
}, options, sdkOptions);
|
|
65
|
+
};
|
|
66
|
+
//# sourceMappingURL=projects.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"projects.js","sourceRoot":"","sources":["../../../../../../src/services/auth/service/developers/projects.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AA+BlE;;;GAGG;AACH,MAAM,CAAC,MAAM,GAAG,GAAG,UACjB,UAAU,EACV,OAAO,GAAG,EAAE,EACZ,UAAW;IAEX,OAAO,cAAc,CACnB;QACE,OAAO,EAAE,EAAE;QACX,KAAK,EAAE,MAAM,CAAC,eAAe;QAC7B,IAAI,EAAE,oBAAoB,UAAU,EAAE;QACtC,MAAM,EAAE,YAAY,CAAC,GAAG;KACzB,EACD,OAAO,EACP,UAAU,CACX,CAAC;AACJ,CAAoD,CAAC;AAErD;;;GAGG;AACH,MAAM,CAAC,MAAM,MAAM,GAAG,UACpB,OAAO,GAAG,EAAE,EACZ,UAAW;IAEX,OAAO,cAAc,CACnB;QACE,OAAO,EAAE,EAAE;QACX,KAAK,EAAE,MAAM,CAAC,eAAe;QAC7B,IAAI,EAAE,kBAAkB;QACxB,MAAM,EAAE,YAAY,CAAC,GAAG;KACzB,EACD,OAAO,EACP,UAAU,CACX,CAAC;AACJ,CAEE,CAAC;AAeH;;;;GAIG;AACH,MAAM,CAAC,MAAM,MAAM,GAAG,UAAU,OAAO,EAAE,UAAW;IAClD,OAAO,cAAc,CACnB;QACE,OAAO,EAAE,EAAE;QACX,KAAK,EAAE,MAAM,CAAC,eAAe;QAC7B,IAAI,EAAE,kBAAkB;QACxB,MAAM,EAAE,YAAY,CAAC,IAAI;KAC1B,kCACI,OAAO,KAAE,OAAO,EAAE,EAAE,OAAO,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,OAAO,EAAE,KACpD,UAAU,CACX,CAAC;AACJ,CAGE,CAAC;AAEH;;;;GAIG;AACH,MAAM,CAAC,MAAM,MAAM,GAAG,UACpB,UAAU,EACV,OAAO,EACP,UAAW;IAEX,OAAO,cAAc,CACnB;QACE,OAAO,EAAE,EAAE;QACX,KAAK,EAAE,MAAM,CAAC,eAAe;QAC7B,IAAI,EAAE,oBAAoB,UAAU,EAAE;QACtC,MAAM,EAAE,YAAY,CAAC,GAAG;KACzB,kCACI,OAAO,KAAE,OAAO,EAAE,EAAE,OAAO,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,OAAO,EAAE,KACpD,UAAU,CACX,CAAC;AACJ,CAMC,CAAC;AAEF;;;;GAIG;AACH,MAAM,CAAC,MAAM,MAAM,GAAG,UACpB,UAAU,EACV,OAAQ,EACR,UAAW;IAEX,OAAO,cAAc,CACnB;QACE,OAAO,EAAE,EAAE;QACX,KAAK,EAAE,MAAM,CAAC,eAAe;QAC7B,IAAI,EAAE,oBAAoB,UAAU,EAAE;QACtC,MAAM,EAAE,YAAY,CAAC,MAAM;KAC5B,EACD,OAAO,EACP,UAAU,CACX,CAAC;AACJ,CAMC,CAAC"}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import type { JSONFetchResponse } from '../../../types.js';
|
|
2
|
+
import { ResourceEnvelope } from './index.js';
|
|
3
|
+
type DependentScope = {
|
|
4
|
+
scope: string;
|
|
5
|
+
optional: boolean;
|
|
6
|
+
requires_refresh_token: boolean;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* @see https://docs.globus.org/api/auth/reference/#scope_resource
|
|
10
|
+
*/
|
|
11
|
+
export type Scope = {
|
|
12
|
+
id: string;
|
|
13
|
+
client: string;
|
|
14
|
+
scope_string: string;
|
|
15
|
+
name: string;
|
|
16
|
+
description: string;
|
|
17
|
+
dependent_scopes: DependentScope[];
|
|
18
|
+
advertised: boolean;
|
|
19
|
+
allows_refresh_token: boolean;
|
|
20
|
+
};
|
|
21
|
+
export type WrappedScope = ResourceEnvelope<'scope', Scope>;
|
|
22
|
+
export type WrappedScopes = ResourceEnvelope<'scopes', Scope[]>;
|
|
23
|
+
/**
|
|
24
|
+
* Return a single scope by id
|
|
25
|
+
* @see https://docs.globus.org/api/auth/reference/#get_scopes
|
|
26
|
+
*/
|
|
27
|
+
export declare const get: (scope_id: string, options?: {
|
|
28
|
+
query?: import("../../../types.js").BaseServiceMethodOptions["query"];
|
|
29
|
+
headers?: import("../../../types.js").BaseServiceMethodOptions["headers"];
|
|
30
|
+
} | undefined, sdkOptions?: import("../../../types.js").SDKOptions | undefined) => Promise<JSONFetchResponse<WrappedScope>>;
|
|
31
|
+
/**
|
|
32
|
+
* Return a list of scopes
|
|
33
|
+
* @see https://docs.globus.org/api/auth/reference/#get_scopes
|
|
34
|
+
*/
|
|
35
|
+
export declare const getAll: (options?: ({
|
|
36
|
+
query?: {
|
|
37
|
+
ids?: string;
|
|
38
|
+
} | {
|
|
39
|
+
scope_strings?: string;
|
|
40
|
+
};
|
|
41
|
+
payload?: never;
|
|
42
|
+
} & import("../../../types.js").BaseServiceMethodOptions) | undefined, sdkOptions?: import("../../../types.js").SDKOptions | undefined) => Promise<JSONFetchResponse<WrappedScopes>>;
|
|
43
|
+
export type ScopeCreate = Pick<Scope, 'name' | 'description'> & {
|
|
44
|
+
scope_suffix: string;
|
|
45
|
+
} & Partial<Omit<Scope, 'id' | 'client' | 'scope_string'>>;
|
|
46
|
+
export type ScopeUpdate = Partial<Omit<ScopeCreate, 'scope_suffix'>>;
|
|
47
|
+
/**
|
|
48
|
+
* Update a scope by id.
|
|
49
|
+
* @see https://docs.globus.org/api/auth/reference/#update_scope
|
|
50
|
+
*/
|
|
51
|
+
export declare const update: (scope_id: string, options: ({
|
|
52
|
+
query?: never;
|
|
53
|
+
payload: ScopeUpdate;
|
|
54
|
+
} & {
|
|
55
|
+
query?: import("../../../types.js").BaseServiceMethodOptions["query"];
|
|
56
|
+
headers?: import("../../../types.js").BaseServiceMethodOptions["headers"];
|
|
57
|
+
}) | undefined, sdkOptions?: import("../../../types.js").SDKOptions | undefined) => Promise<JSONFetchResponse<WrappedScope>>;
|
|
58
|
+
/**
|
|
59
|
+
* Delete a scope by id.
|
|
60
|
+
* @see https://docs.globus.org/api/auth/reference/#delete_scope
|
|
61
|
+
*/
|
|
62
|
+
export declare const remove: (scope_id: string, options?: ({
|
|
63
|
+
query?: never;
|
|
64
|
+
payload?: never;
|
|
65
|
+
} & {
|
|
66
|
+
query?: import("../../../types.js").BaseServiceMethodOptions["query"];
|
|
67
|
+
headers?: import("../../../types.js").BaseServiceMethodOptions["headers"];
|
|
68
|
+
}) | undefined, sdkOptions?: import("../../../types.js").SDKOptions | undefined) => Promise<JSONFetchResponse<WrappedScope>>;
|
|
69
|
+
export {};
|
|
70
|
+
//# sourceMappingURL=scopes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"scopes.d.ts","sourceRoot":"","sources":["../../../../../../src/services/auth/service/developers/scopes.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACV,iBAAiB,EAGlB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAE9C,KAAK,cAAc,GAAG;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,OAAO,CAAC;IAClB,sBAAsB,EAAE,OAAO,CAAC;CACjC,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,KAAK,GAAG;IAClB,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,MAAM,CAAC;IACf,YAAY,EAAE,MAAM,CAAC;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,gBAAgB,EAAE,cAAc,EAAE,CAAC;IACnC,UAAU,EAAE,OAAO,CAAC;IACpB,oBAAoB,EAAE,OAAO,CAAC;CAC/B,CAAC;AACF,MAAM,MAAM,YAAY,GAAG,gBAAgB,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC;AAC5D,MAAM,MAAM,aAAa,GAAG,gBAAgB,CAAC,QAAQ,EAAE,KAAK,EAAE,CAAC,CAAC;AAEhE;;;GAGG;AACH,eAAO,MAAM,GAAG;;;mFAIb,OAAO,CAAC,iBAAiB,CAAC,YAAY,CAAC,CAUU,CAAC;AAErD;;;GAGG;AACH,eAAO,MAAM,MAAM;YAcT;QAAE,GAAG,CAAC,EAAE,MAAM,CAAA;KAAE,GAAG;QAAE,aAAa,CAAC,EAAE,MAAM,CAAA;KAAE;cAC3C,KAAK;2IAZd,OAAO,CAAC,iBAAiB,CAAC,aAAa,CAAC,CAazC,CAAC;AAEH,MAAM,MAAM,WAAW,GAAG,IAAI,CAAC,KAAK,EAAE,MAAM,GAAG,aAAa,CAAC,GAAG;IAAE,YAAY,EAAE,MAAM,CAAA;CAAE,GAAG,OAAO,CAC9F,IAAI,CAAC,KAAK,EAAE,IAAI,GAAG,QAAQ,GAAG,cAAc,CAAC,CAC9C,CAAC;AAEJ,MAAM,MAAM,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC,WAAW,EAAE,cAAc,CAAC,CAAC,CAAC;AAErE;;;GAGG;AACH,eAAO,MAAM,MAAM;YAkBP,KAAK;aACJ,WAAW;;;;oFAfrB,OAAO,CAAC,iBAAiB,CAAC,YAAY,CAAC,CAiBzC,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,MAAM;YAkBP,KAAK;cACH,KAAK;;;;oFAfhB,OAAO,CAAC,iBAAiB,CAAC,YAAY,CAAC,CAiBzC,CAAC"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { ID, SCOPES } from '../../config.js';
|
|
2
|
+
import { HTTP_METHODS, serviceRequest } from '../../../shared.js';
|
|
3
|
+
/**
|
|
4
|
+
* Return a single scope by id
|
|
5
|
+
* @see https://docs.globus.org/api/auth/reference/#get_scopes
|
|
6
|
+
*/
|
|
7
|
+
export const get = function (scope_id, options = {}, sdkOptions) {
|
|
8
|
+
return serviceRequest({
|
|
9
|
+
service: ID,
|
|
10
|
+
scope: SCOPES.MANAGE_PROJECTS,
|
|
11
|
+
path: `/v2/api/scopes/${scope_id}`,
|
|
12
|
+
}, options, sdkOptions);
|
|
13
|
+
};
|
|
14
|
+
/**
|
|
15
|
+
* Return a list of scopes
|
|
16
|
+
* @see https://docs.globus.org/api/auth/reference/#get_scopes
|
|
17
|
+
*/
|
|
18
|
+
export const getAll = function (options = {}, sdkOptions) {
|
|
19
|
+
return serviceRequest({
|
|
20
|
+
service: ID,
|
|
21
|
+
scope: SCOPES.MANAGE_PROJECTS,
|
|
22
|
+
path: `/v2/api/scopes`,
|
|
23
|
+
}, options, sdkOptions);
|
|
24
|
+
};
|
|
25
|
+
/**
|
|
26
|
+
* Update a scope by id.
|
|
27
|
+
* @see https://docs.globus.org/api/auth/reference/#update_scope
|
|
28
|
+
*/
|
|
29
|
+
export const update = function (scope_id, options, sdkOptions) {
|
|
30
|
+
return serviceRequest({
|
|
31
|
+
service: ID,
|
|
32
|
+
scope: SCOPES.MANAGE_PROJECTS,
|
|
33
|
+
path: `/v2/api/scopes/${scope_id}`,
|
|
34
|
+
method: HTTP_METHODS.PUT,
|
|
35
|
+
}, Object.assign(Object.assign({}, options), { payload: { scope: options === null || options === void 0 ? void 0 : options.payload } }), sdkOptions);
|
|
36
|
+
};
|
|
37
|
+
/**
|
|
38
|
+
* Delete a scope by id.
|
|
39
|
+
* @see https://docs.globus.org/api/auth/reference/#delete_scope
|
|
40
|
+
*/
|
|
41
|
+
export const remove = function (scope_id, options, sdkOptions) {
|
|
42
|
+
return serviceRequest({
|
|
43
|
+
service: ID,
|
|
44
|
+
scope: SCOPES.MANAGE_PROJECTS,
|
|
45
|
+
path: `/v2/api/scopes/${scope_id}`,
|
|
46
|
+
method: HTTP_METHODS.DELETE,
|
|
47
|
+
}, options, sdkOptions);
|
|
48
|
+
};
|
|
49
|
+
//# sourceMappingURL=scopes.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"scopes.js","sourceRoot":"","sources":["../../../../../../src/services/auth/service/developers/scopes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AA+BlE;;;GAGG;AACH,MAAM,CAAC,MAAM,GAAG,GAAG,UACjB,QAAQ,EACR,OAAO,GAAG,EAAE,EACZ,UAAW;IAEX,OAAO,cAAc,CACnB;QACE,OAAO,EAAE,EAAE;QACX,KAAK,EAAE,MAAM,CAAC,eAAe;QAC7B,IAAI,EAAE,kBAAkB,QAAQ,EAAE;KACnC,EACD,OAAO,EACP,UAAU,CACX,CAAC;AACJ,CAAoD,CAAC;AAErD;;;GAGG;AACH,MAAM,CAAC,MAAM,MAAM,GAAG,UACpB,OAAO,GAAG,EAAE,EACZ,UAAW;IAEX,OAAO,cAAc,CACnB;QACE,OAAO,EAAE,EAAE;QACX,KAAK,EAAE,MAAM,CAAC,eAAe;QAC7B,IAAI,EAAE,gBAAgB;KACvB,EACD,OAAO,EACP,UAAU,CACX,CAAC;AACJ,CAGE,CAAC;AAQH;;;GAGG;AACH,MAAM,CAAC,MAAM,MAAM,GAAG,UACpB,QAAQ,EACR,OAAO,EACP,UAAW;IAEX,OAAO,cAAc,CACnB;QACE,OAAO,EAAE,EAAE;QACX,KAAK,EAAE,MAAM,CAAC,eAAe;QAC7B,IAAI,EAAE,kBAAkB,QAAQ,EAAE;QAClC,MAAM,EAAE,YAAY,CAAC,GAAG;KACzB,kCACI,OAAO,KAAE,OAAO,EAAE,EAAE,KAAK,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,OAAO,EAAE,KAClD,UAAU,CACX,CAAC;AACJ,CAMC,CAAC;AAEF;;;GAGG;AACH,MAAM,CAAC,MAAM,MAAM,GAAG,UACpB,QAAQ,EACR,OAAQ,EACR,UAAW;IAEX,OAAO,cAAc,CACnB;QACE,OAAO,EAAE,EAAE;QACX,KAAK,EAAE,MAAM,CAAC,eAAe;QAC7B,IAAI,EAAE,kBAAkB,QAAQ,EAAE;QAClC,MAAM,EAAE,YAAY,CAAC,MAAM;KAC5B,EACD,OAAO,EACP,UAAU,CACX,CAAC;AACJ,CAMC,CAAC"}
|
|
@@ -1,7 +1,18 @@
|
|
|
1
1
|
export * as consents from './consents.js';
|
|
2
|
+
/**
|
|
3
|
+
* @see https://docs.globus.org/api/auth/reference/#identity-resource
|
|
4
|
+
*/
|
|
5
|
+
export type Identity = {
|
|
6
|
+
id: string;
|
|
7
|
+
username: string;
|
|
8
|
+
status: 'unused' | 'used' | 'private' | 'closed';
|
|
9
|
+
email: string;
|
|
10
|
+
name: string;
|
|
11
|
+
organization: string;
|
|
12
|
+
};
|
|
2
13
|
/**
|
|
3
14
|
* Fetch a single Identity by ID.
|
|
4
|
-
* @see https://docs.globus.org/api/auth/reference/#
|
|
15
|
+
* @see https://docs.globus.org/api/auth/reference/#get_identity
|
|
5
16
|
*/
|
|
6
17
|
export declare const get: (identity_id: string, options?: (Record<string, any> & {
|
|
7
18
|
query?: import("../../../types.js").BaseServiceMethodOptions["query"];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/services/auth/service/identities/index.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,QAAQ,MAAM,eAAe,CAAC;AAE1C;;;GAGG;AACH,eAAO,MAAM,GAAG;;;qGAUqD,CAAC;AAEtE;;;GAGG;AACH,eAAO,MAAM,MAAM;YAWT;QACN,GAAG,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;QACxB,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;KAC/B;cACS,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;cACtB,KAAK;4JACf,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/services/auth/service/identities/index.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,QAAQ,MAAM,eAAe,CAAC;AAE1C;;GAEG;AACH,MAAM,MAAM,QAAQ,GAAG;IACrB,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,QAAQ,GAAG,MAAM,GAAG,SAAS,GAAG,QAAQ,CAAC;IACjD,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,GAAG;;;qGAUqD,CAAC;AAEtE;;;GAGG;AACH,eAAO,MAAM,MAAM;YAWT;QACN,GAAG,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;QACxB,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;KAC/B;cACS,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;cACtB,KAAK;4JACf,CAAC"}
|
|
@@ -3,7 +3,7 @@ import { serviceRequest } from '../../../../services/shared.js';
|
|
|
3
3
|
export * as consents from './consents.js';
|
|
4
4
|
/**
|
|
5
5
|
* Fetch a single Identity by ID.
|
|
6
|
-
* @see https://docs.globus.org/api/auth/reference/#
|
|
6
|
+
* @see https://docs.globus.org/api/auth/reference/#get_identity
|
|
7
7
|
*/
|
|
8
8
|
export const get = function (identity_id, options = {}, sdkOptions) {
|
|
9
9
|
return serviceRequest({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/services/auth/service/identities/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AAIhE,OAAO,KAAK,QAAQ,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/services/auth/service/identities/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AAIhE,OAAO,KAAK,QAAQ,MAAM,eAAe,CAAC;AAc1C;;;GAGG;AACH,MAAM,CAAC,MAAM,GAAG,GAAG,UAAU,WAAW,EAAE,OAAO,GAAG,EAAE,EAAE,UAAW;IACjE,OAAO,cAAc,CACnB;QACE,OAAO,EAAE,EAAE;QACX,KAAK,EAAE,MAAM,CAAC,eAAe;QAC7B,IAAI,EAAE,sBAAsB,WAAW,EAAE;KAC1C,EACD,OAAO,EACP,UAAU,CACX,CAAC;AACJ,CAAqE,CAAC;AAEtE;;;GAGG;AACH,MAAM,CAAC,MAAM,MAAM,GAAG,UAAU,OAAO,GAAG,EAAE,EAAE,UAAW;IACvD,OAAO,cAAc,CACnB;QACE,OAAO,EAAE,EAAE;QACX,KAAK,EAAE,MAAM,CAAC,eAAe;QAC7B,IAAI,EAAE,oBAAoB;KAC3B,EACD,OAAO,EACP,UAAU,CACX,CAAC;AACJ,CAOE,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
var globus=(()=>{var
|
|
2
|
-
`)===0?y.substr(1,y.length):y}).forEach(function(y){var O=y.split(":"),m=O.shift().trim();if(m){var ce=O.join(":").trim();try{a.append(m,ce)}catch(Ie){console.warn("Response "+Ie.message)}}}),a}tr.call(F.prototype);function M(s,a){if(!(this instanceof M))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(a||(a={}),this.type="default",this.status=a.status===void 0?200:a.status,this.status<200||this.status>599)throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=this.status>=200&&this.status<300,this.statusText=a.statusText===void 0?"":""+a.statusText,this.headers=new S(a.headers),this.url=a.url||"",this._initBody(s)}tr.call(M.prototype),M.prototype.clone=function(){return new M(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new S(this.headers),url:this.url})},M.error=function(){var s=new M(null,{status:200,statusText:""});return s.ok=!1,s.status=0,s.type="error",s};var $r=[301,302,303,307,308];M.redirect=function(s,a){if($r.indexOf(a)===-1)throw new RangeError("Invalid status code");return new M(null,{status:a,headers:{location:s}})},r.DOMException=o.DOMException;try{new r.DOMException}catch{r.DOMException=function(a,l){this.message=a,this.name=l;var y=Error(a);this.stack=y.stack},r.DOMException.prototype=Object.create(Error.prototype),r.DOMException.prototype.constructor=r.DOMException}function De(s,a){return new Promise(function(l,y){var O=new F(s,a);if(O.signal&&O.signal.aborted)return y(new r.DOMException("Aborted","AbortError"));var m=new XMLHttpRequest;function ce(){m.abort()}m.onload=function(){var D={statusText:m.statusText,headers:Jr(m.getAllResponseHeaders()||"")};O.url.indexOf("file://")===0&&(m.status<200||m.status>599)?D.status=200:D.status=m.status,D.url="responseURL"in m?m.responseURL:D.headers.get("X-Request-URL");var J="response"in m?m.response:m.responseText;setTimeout(function(){l(new M(J,D))},0)},m.onerror=function(){setTimeout(function(){y(new TypeError("Network request failed"))},0)},m.ontimeout=function(){setTimeout(function(){y(new TypeError("Network request timed out"))},0)},m.onabort=function(){setTimeout(function(){y(new r.DOMException("Aborted","AbortError"))},0)};function Ie(D){try{return D===""&&o.location.href?o.location.href:D}catch{return D}}if(m.open(O.method,Ie(O.url),!0),O.credentials==="include"?m.withCredentials=!0:O.credentials==="omit"&&(m.withCredentials=!1),"responseType"in m&&(i.blob?m.responseType="blob":i.arrayBuffer&&(m.responseType="arraybuffer")),a&&typeof a.headers=="object"&&!(a.headers instanceof S||o.Headers&&a.headers instanceof o.Headers)){var rr=[];Object.getOwnPropertyNames(a.headers).forEach(function(D){rr.push(R(D)),m.setRequestHeader(D,L(a.headers[D]))}),O.headers.forEach(function(D,J){rr.indexOf(J)===-1&&m.setRequestHeader(J,D)})}else O.headers.forEach(function(D,J){m.setRequestHeader(J,D)});O.signal&&(O.signal.addEventListener("abort",ce),m.onreadystatechange=function(){m.readyState===4&&O.signal.removeEventListener("abort",ce)}),m.send(typeof O._bodyInit>"u"?null:O._bodyInit)})}return De.polyfill=!0,o.fetch||(o.fetch=De,o.Headers=S,o.Request=F,o.Response=M),r.Headers=S,r.Request=F,r.Response=M,r.fetch=De,r})({})})(ve);ve.fetch.ponyfill=!0;delete ve.fetch.polyfill;var W=Se.fetch?Se:ve;G=W.fetch;G.default=W.fetch;G.fetch=W.fetch;G.Headers=W.Headers;G.Request=W.Request;G.Response=W.Response;fr.exports=G});var Mi={};u(Mi,{auth:()=>et,authorization:()=>nt,compute:()=>Qt,errors:()=>Be,flows:()=>Lt,gcs:()=>zt,groups:()=>wt,info:()=>Ce,logger:()=>Le,request:()=>n,search:()=>xt,timers:()=>Kt,transfer:()=>Pt,webapp:()=>Xt});var Ce={};u(Ce,{CLIENT_INFO:()=>cr,VERSION:()=>pr,addClientInfo:()=>tn,getClientInfo:()=>ur,getClientInfoRequestHeaders:()=>we});var or="X-Globus-Client-Info",Xr=!0;function sr(){return Xr}var Zr=";",en=",";function ir(e){return(Array.isArray(e)?e:[e]).map(r=>Object.entries(r).map(([o,i])=>`${o}=${i}`).join(en)).join(Zr)}var ar="6.2.0";var pr=ar,cr={product:"javascript-sdk",version:pr},ke=[cr];function tn(e){ke=ke.concat(e)}function ur(){return ir(ke)}function we(){return sr()?{[or]:ur()}:{}}var Le={};u(Le,{log:()=>b,setLogLevel:()=>nn,setLogger:()=>rn});var Me=["debug","info","warn","error"],de,dr=Me.indexOf("error");function rn(e){de=e}function nn(e){dr=Me.indexOf(e)}function b(e,...t){if(!de||Me.indexOf(e)<dr)return;(de[e]??de.log)(...t)}var nt={};u(nt,{AuthorizationManager:()=>ae,create:()=>In});var $=class extends Error{};$.prototype.name="InvalidTokenError";function on(e){return decodeURIComponent(atob(e).replace(/(.)/g,(t,r)=>{let o=r.charCodeAt(0).toString(16).toUpperCase();return o.length<2&&(o="0"+o),"%"+o}))}function sn(e){let t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw new Error("base64 string is not of the correct length")}try{return on(t)}catch{return atob(t)}}function lr(e,t){if(typeof e!="string")throw new $("Invalid token specified: must be a string");t||(t={});let r=t.header===!0?0:1,o=e.split(".")[r];if(typeof o!="string")throw new $(`Invalid token specified: missing part #${r+1}`);let i;try{i=sn(o)}catch(d){throw new $(`Invalid token specified: invalid base64 for part #${r+1} (${d.message})`)}try{return JSON.parse(i)}catch(d){throw new $(`Invalid token specified: invalid json for part #${r+1} (${d.message})`)}}var et={};u(et,{CONFIG:()=>Ze,getAuthorizationEndpoint:()=>oe,getTokenEndpoint:()=>En,identities:()=>Ke,isGlobusAuthTokenResponse:()=>X,isRefreshToken:()=>re,isToken:()=>Q,oauth2:()=>q,utils:()=>Xe});var ye={};u(ye,{HOSTS:()=>Je,ID:()=>T,RESOURCE_SERVERS:()=>h,SCOPES:()=>Y});var le={};u(le,{HOSTS:()=>Ne,ID:()=>p,SCOPES:()=>c});var p="TRANSFER",c={ALL:"urn:globus:auth:scope:transfer.api.globus.org:all"},Ne={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"};var me={};u(me,{HOSTS:()=>qe,ID:()=>P,SCOPES:()=>I});var P="FLOWS",qe={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"},I={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"};var he={};u(he,{HOSTS:()=>Fe,ID:()=>A});var A="TIMERS",Fe={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"};var _e={};u(_e,{HOSTS:()=>je,ID:()=>E,SCOPES:()=>an});var E="GROUPS",je={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"},an={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"};var fe={};u(fe,{HOSTS:()=>Ge,ID:()=>v,SCOPES:()=>x});var v="SEARCH",Ge={sandbox:"search.api.sandbox.globuscs.info",production:"search.api.globus.org",staging:"search.api.staging.globuscs.info",integration:"search.api.integration.globuscs.info",test:"search.api.test.globuscs.info",preview:"search.api.preview.globus.org"},x={ALL:"urn:globus:auth:scope:search.api.globus.org:all",INGEST:"urn:globus:auth:scope:search.api.globus.org:ingest",SEARCH:"urn:globus:auth:scope:search.api.globus.org:search"};var ge={};u(ge,{HOSTS:()=>Ue,ID:()=>w,SCOPES:()=>H});var w="COMPUTE",Ue={sandbox:"compute.api.sandbox.globuscs.info",production:"compute.api.globus.org",staging:"compute.api.staging.globuscs.info",integration:"compute.api.integration.globuscs.info",test:"compute.api.test.globuscs.info",preview:"compute.api.preview.globus.org"},H={ALL:"https://auth.globus.org/scopes/facd7ccc-c5f4-42aa-916b-a0e270e2c2a9/all"};var T="AUTH",Je={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"},h={[T]:"auth.globus.org",[p]:"transfer.api.globus.org",[P]:"flows.globus.org",[E]:"groups.api.globus.org",[v]:"search.api.globus.org",[A]:"524230d7-ea86-4a52-8312-86065a9e0417",[w]:"funcx_service"};var Be={};u(Be,{EnvironmentConfigurationError:()=>Z,isAuthorizationRequirementsError:()=>ee,isConsentRequiredError:()=>$e,isErrorWellFormed:()=>mr,toAuthorizationQueryParams:()=>He});var Z=class extends Error{name="EnvironmentConfigurationError";constructor(t,r){super(),this.message=`Invalid configuration value provided for ${t} (${r}).`}};function mr(e){return typeof e=="object"&&e!==null&&"code"in e&&"message"in e}function $e(e){return mr(e)&&e.code==="ConsentRequired"&&"required_scopes"in e&&Array.isArray(e.required_scopes)}var pn=["required_scopes"];function He(e){let t={scope:e.authorization_parameters.required_scopes?.join(" "),...e.authorization_parameters};return Object.entries(t).reduce((r,[o,i])=>{if(pn.includes(o)||i===void 0||i===null)return r;let d=i;return Array.isArray(d)?d=d.join(","):typeof i=="boolean"&&(d=d?"true":"false"),{...r,[o]:d}},{})}function ee(e){return typeof e=="object"&&e!==null&&"authorization_parameters"in e&&typeof e.authorization_parameters=="object"&&e.authorization_parameters!==null}function cn(){return typeof window<"u"?window:process}function un(e){return typeof window==typeof e}function ze(e,t){let r=cn(),o;return un(r)?o=r:o=r.env,e in o?o[e]:t}var hr={PRODUCTION:"production",PREVIEW:"preview",STAGING:"staging",SANDBOX:"sandbox",INTEGRATION:"integration",TEST:"test"},j={[T]:T,[p]:p,[P]:P,[E]:E,[v]:v,[A]:A,[w]:w},dn={[T]:Je,[p]:Ne,[P]:qe,[E]:je,[v]:Ge,[A]:Fe,[w]:Ue};function Ve(e){let t=ze("GLOBUS_SDK_OPTIONS",{});return typeof t=="string"&&(t=JSON.parse(t)),{...t,...e,fetch:{...t?.fetch,...e?.fetch,options:{...t?.fetch?.options,...e?.fetch?.options,headers:{...t?.fetch?.options?.headers,...e?.fetch?.options?.headers}}}}}function K(){let e=Ve(),t=ze("GLOBUS_SDK_ENVIRONMENT",e?.environment??hr.PRODUCTION);if(e?.environment&&t!==e.environment&&b("debug","GLOBUS_SDK_ENVIRONMENT and GLOBUS_SDK_OPTIONS.environment are set to different values. GLOBUS_SDK_ENVIRONMENT will take precedence"),!t||!Object.values(hr).includes(t))throw new Z("GLOBUS_SDK_ENVIRONMENT",t);return t}function ln(e,t=K()){return dn[e][t]}function _r(e,t=K()){let r=ln(e,t);return ze(`GLOBUS_SDK_SERVICE_URL_${e}`,r?`https://${r}`:void 0)}function mn(e){let t=new URLSearchParams;return Array.from(Object.entries(e)).forEach(([r,o])=>{Array.isArray(o)?t.set(r,o.join(",")):o!==void 0&&t.set(r,String(o))}),t.toString()}function hn(e,t="",r=K()){let o=_r(e,r);return new URL(t,o)}function te(e,t,r,o){let i;return typeof e=="object"?i=new URL(t,e.host):i=hn(e,t,o?.environment),r&&r.search&&(i.search=mn(r.search)),i.toString()}var Ke={};u(Ke,{consents:()=>Ye,get:()=>fn,getAll:()=>gn});var yr=Wr(gr());async function n(e,t,r){let o=Ve(r),i=o?.fetch?.options||{},d={...we(),...t?.headers,...i.headers},f=t?.manager||o?.manager,g;if(e.resource_server&&f&&(g=f.tokens.getByResourceServer(e.resource_server),g&&(d.Authorization=`Bearer ${g.access_token}`)),e.scope&&f&&(typeof e.service=="string"||"endpoint_id"in e.service)){let U=typeof e.service=="string"?h[e.service]:e.service.endpoint_id;g=f.tokens.getByResourceServer(U),g&&(d.Authorization=`Bearer ${g.access_token}`)}let R=t?.body;!R&&t?.payload&&(R=JSON.stringify(t.payload)),!d?.["Content-Type"]&&R&&(d["Content-Type"]="application/json");let L=te(e.service,e.path,{search:t?.query},o),C={method:e.method,body:R,...i,headers:d},S=yr.default;if(i?.__callable&&(S=i.__callable.bind(this),delete C.__callable),e.preventRetry||!f||!g||!re(g))return S(L,C);let N=await S(L,C);if(N.ok)return N;let V;try{V=ee(await N.clone().json())}catch{V=!1}if(N.status===401&&!V){let U=await f.refreshToken(g);return U?S(L,{...C,headers:{...C.headers,Authorization:`Bearer ${U.access_token}`}}):N}return N}var Ye={};u(Ye,{getAll:()=>_n});var _n=function(e,t={},r){return n({service:T,scope:Y.VIEW_IDENTITIES,path:`/v2/api/identities/${e}/consents`},t,r)};var fn=function(e,t={},r){return n({service:T,scope:Y.VIEW_IDENTITIES,path:`/v2/api/identities/${e}`},t,r)},gn=function(e={},t){return n({service:T,scope:Y.VIEW_IDENTITIES,path:"/v2/api/identities"},e,t)};var q={};u(q,{token:()=>We,userinfo:()=>Tn});var We={};u(We,{exchange:()=>Sn,introspect:()=>vn,refresh:()=>Pn,revoke:()=>On,token:()=>Sr,validate:()=>An});function yn(e){return new URLSearchParams(e)}function ne(e){return{...e,body:e.payload?yn(e.payload):void 0,headers:{...e?.headers||{},Accept:"application/json","Content-Type":"application/x-www-form-urlencoded; charset=UTF-8"}}}var Sr=function(e={},t){return n({service:T,scope:void 0,path:"/v2/oauth2/token",method:"POST",preventRetry:!0},ne(e),t)},Sn=Sr,vn=function(e,t){if(!e?.payload)throw new Error("'payload' is required for introspect");return n({service:T,scope:void 0,path:"/v2/oauth2/token/introspect",method:"POST",preventRetry:!0},ne(e),t)},On=function(e,t){if(!e?.payload)throw new Error("'payload' is required for revoke");return n({service:T,scope:void 0,path:"/v2/oauth2/token/revoke",method:"POST",preventRetry:!0},ne(e),t)},Pn=function(e,t){if(!e?.payload)throw new Error("'payload' is required for revoke");return n({service:T,scope:void 0,path:"/v2/oauth2/token",method:"POST",preventRetry:!0},ne(e),t)},An=function(e,t){if(!e?.payload)throw new Error("'payload' is required for validate");return n({service:T,scope:void 0,path:"/v2/oauth2/token/validate",method:"POST",preventRetry:!0},ne(e),t)};var Tn=function(e,t){return n({service:T,scope:void 0,path:"/v2/oauth2/userinfo",method:"GET"},e,t)};var Xe={};u(Xe,{hasConsentForScope:()=>Rn,splitScopeString:()=>Qe,toScopeTree:()=>Or});function Qe(e){let t=[],r="",o=0;return e.split("").forEach((i,d)=>{r+=i,i==="["&&(o+=1),i==="]"&&(o-=1),(i===" "&&o===0||d===e.length-1&&r)&&(t.push(r.trim()),r="")}),t}function vr(e){let t=e,r=t.startsWith("*");r&&(t=t.replace(/^\*\s*/,""));let o=[],i=t.indexOf("[");if(i===-1)return{scope:t,atomically_revocable:r,children:[]};let d=t.slice(0,i),f=t.slice(i+1,-1);return o=Qe(f).map(vr),{scope:d,atomically_revocable:r,children:o}}function Or(e){return Qe(e).map(vr)}function Rn(e,t){let r=Or(t);function o(i,d){let f=e.find(g=>g.scope_name===i.scope&&(d?g.dependency_path.join(",")===[...d,g.id].join(","):g.dependency_path.length===1));return f?i.children.length?i.children.every(g=>o(g,d?[...d,f.id]:[f.id])):f.status==="approved":!1}return r.every(i=>o(i))}var Ze=ye;function oe(){return te(T,"/v2/oauth2/authorize")}function En(){return te(T,"/v2/oauth2/token")}function Q(e){return typeof e=="object"&&e!==null&&"access_token"in e}function re(e){return Q(e)&&e!==null&&"refresh_token"in e}function X(e){return Q(e)&&e!==null&&"resource_server"in e}var se=class{constructor(t){this.name=t}#e=[];addListener(t){return this.#e.push(t),()=>this.removeListener(t)}removeListener(t){this.#e=this.#e.filter(r=>r!==t)}clearListeners(){this.#e=[]}async dispatch(t){await Promise.all(this.#e.map(r=>r(t)))}};function Pe(){return"crypto"in globalThis}function rt(){return"webcrypto"in globalThis.crypto?globalThis.crypto.webcrypto:globalThis.crypto}var bn=e=>btoa(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"");async function xn(e){let t=await rt().subtle.digest("SHA-256",new TextEncoder().encode(e));return String.fromCharCode(...new Uint8Array(t))}var tt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",Pr=`${tt}-._~`;function Ae(){return Array.from(rt().getRandomValues(new Uint8Array(43))).map(e=>Pr[e%Pr.length]).join("")}async function Te(e){let t=await xn(e);return bn(t)}function Re(){return Array.from(rt().getRandomValues(new Uint8Array(16))).map(e=>tt[e%tt.length]).join("")}var Oe={PKCE_STATE:"pkce_state",PKCE_CODE_VERIFIER:"pkce_code_verifier"},k={getKey(e){return e==="state"?Oe.PKCE_STATE:Oe.PKCE_CODE_VERIFIER},get:e=>sessionStorage.getItem(k.getKey(e)),set:(e,t)=>sessionStorage.setItem(k.getKey(e),t),reset:()=>{sessionStorage.removeItem(Oe.PKCE_STATE),sessionStorage.removeItem(Oe.PKCE_CODE_VERIFIER)}};var Ee=class e{#e;constructor(t){if(this.#e=t,e.supported===!1)throw new Error("RedirectTransport is not supported in this environment.")}static supported=Pe();async send(){let t=Ae(),r=await Te(t),o=this.#e.params?.state??Re();k.set("code_verifier",t),k.set("state",o);let i={response_type:"code",client_id:this.#e.client,scope:this.#e.scopes||"",redirect_uri:this.#e.redirect,state:o,code_challenge:r,code_challenge_method:"S256",...this.#e.params||{}},d=new URL(oe());d.search=new URLSearchParams(i).toString(),window.location.assign(d.toString())}async getToken(t={shouldReplace:!0,includeConsentedScopes:!1}){let r=new URL(window.location.href),o=new URLSearchParams(r.search);if(o.get("error"))throw new Error(o.get("error_description")||"An error occurred during the authorization process.");let i=o.get("code");if(!i)return;let d=k.get("state"),f=k.get("code_verifier");if(k.reset(),o.get("state")!==d)throw new Error('Invalid State. The received "state" parameter does not match the expected state.');if(!f)throw new Error("Invalid Code Verifier");let g={code:i,client_id:this.#e.client,code_verifier:f,redirect_uri:this.#e.redirect,grant_type:"authorization_code"},R=await(await q.token.exchange({query:t.includeConsentedScopes?{include_consented_scopes:!0}:void 0,payload:g})).json();return t.shouldReplace&&(o.delete("code"),o.delete("state"),r.search=o.toString(),window.location.replace(r)),R}};var be=class{#e;constructor(t){this.#e=t.manager}#r(t){let r=this.#e.storage.getItem(t)||"null",o=null;try{let i=JSON.parse(r);Q(i)&&(o=i)}catch{}return o}#t(t){let r=Ze.RESOURCE_SERVERS?.[t];return this.getByResourceServer(r)}getByResourceServer(t){return this.#r(`${this.#e.storageKeyPrefix}${t}`)}get auth(){return this.#t(j.AUTH)}get transfer(){return this.#t(j.TRANSFER)}get flows(){return this.#t(j.FLOWS)}get groups(){return this.#t(j.GROUPS)}get search(){return this.#t(j.SEARCH)}get timer(){return this.#t(j.TIMERS)}get compute(){return this.#t(j.COMPUTE)}gcs(t){return this.getByResourceServer(t)}getAll(){return Object.keys(this.#e.storage).reduce((r,o)=>(o.startsWith(this.#e.storageKeyPrefix)&&r.push(this.#r(o)),r),[]).filter(Q)}add(t){let r=Date.now(),o=r+t.expires_in*1e3;this.#e.storage.setItem(`${this.#e.storageKeyPrefix}${t.resource_server}`,JSON.stringify({...t,__metadata:{created:r,expires:o}})),"other_tokens"in t&&t.other_tokens?.forEach(i=>{this.add(i)})}remove(t){this.#e.storage.removeItem(`${this.#e.storageKeyPrefix}${t.resource_server}`)}static isTokenExpired(t,r=0){if(!(!t||!t.__metadata||typeof t.__metadata.expires!="number"))return Date.now()+r>=t.__metadata.expires}};var ie=class{#e={};getItem(t){return this.#e[t]!==void 0?this.#e[t]:null}setItem(t,r){this.#e[t]=r}removeItem(t){delete this.#e[t]}key(t){return Object.keys(this.#e)[t]}clear(){this.#e={}}get length(){return Object.keys(this.#e).length}};var Ar="globus-sdk",xe=class e{#e;#r=null;constructor(t){if(this.#e=t,e.supported===!1)throw new Error("PopupTransport is not supported in this environment.")}static supported=Pe()&&"window"in globalThis&&typeof globalThis.window.open=="function";async send(){let t=Ae(),r=await Te(t),o=this.#e.params?.state??Re();k.set("code_verifier",t),k.set("state",o);let i={response_type:"code",client_id:this.#e.client,scope:this.#e.scopes||"",redirect_uri:this.#e.redirect,state:o,code_challenge:r,code_challenge_method:"S256",...this.#e.params||{}},d=new URL(oe());d.search=new URLSearchParams(i).toString();let f=new Promise(g=>{window.addEventListener("message",async R=>{let{data:L}=R;if(R.origin!==window.location.origin||L?.source!==Ar)return;this.#r?.close();let C=await this.#t(L.url);g(C)},!1)});if(this.#r=window.open(d.toString(),"_blank","width=800,height=600"),!this.#r)throw new Error("Unable to open window for PopupTransport.");return this.#r.focus(),f}async#t(t){let r=new URL(t),o=new URLSearchParams(r.search);if(o.get("error"))throw new Error(o.get("error_description")||"An error occurred during the authorization process.");let i=o.get("code");if(!i)return;let d=k.get("state"),f=k.get("code_verifier");if(k.reset(),o.get("state")!==d)throw new Error('Invalid State. The received "state" parameter does not match the expected state.');if(!f)throw new Error("Invalid Code Verifier");let g={code:i,client_id:this.#e.client,code_verifier:f,redirect_uri:this.#e.redirect,grant_type:"authorization_code"};return await(await q.token.exchange({payload:g})).json()}getToken(){window.opener&&window.opener.postMessage({source:Ar,url:window.location.href},window.location.origin)}};var Dn={redirect:Ee,popup:xe},Tr={useRefreshTokens:!1,defaultScopes:"openid profile email",transport:"redirect"},Rr={execute:!0,additionalParams:void 0},ae=class{#e;configuration;storage;#r=!1;get authenticated(){return this.#r}set authenticated(t){t!==this.#r&&(this.#r=t,this.#s())}tokens;events={authenticated:new se("authenticated"),revoke:new se("revoke")};constructor(t){if(!t.client)throw new Error("You must provide a `client` for your application.");let r=t.defaultScopes===!1?"":t.defaultScopes??Tr.defaultScopes;this.configuration={...Tr,...t,scopes:[t.scopes?t.scopes:"",r].filter(o=>o.length).join(" ")},this.storage=t.storage||new ie,this.configuration.events&&Object.entries(this.configuration.events).forEach(([o,i])=>{o in this.events&&this.events[o].addListener(i)}),this.tokens=new be({manager:this}),this.#t()}get storageKeyPrefix(){return`${this.configuration.client}:`}get user(){let t=this.getGlobusAuthToken();return t&&t.id_token?lr(t.id_token):null}async refreshTokens(){b("debug","AuthorizationManager.refreshTokens");let t=await Promise.allSettled(this.tokens.getAll().map(r=>re(r)?this.refreshToken(r):Promise.resolve(null)));return this.#t(),t}async refreshToken(t){b("debug",`AuthorizationManager.refreshToken | resource_server=${t.resource_server}`);try{let r=await(await q.token.refresh({payload:{client_id:this.configuration.client,refresh_token:t.refresh_token,grant_type:"refresh_token"}})).json();if(X(r))return this.addTokenResponse(r),r}catch{b("error",`AuthorizationManager.refreshToken | resource_server=${t.resource_server}`)}return null}hasGlobusAuthToken(){return this.getGlobusAuthToken()!==null}getGlobusAuthToken(){let t=this.storage.getItem(`${this.storageKeyPrefix}${h.AUTH}`);return t?JSON.parse(t):null}#t(){b("debug","AuthorizationManager.#checkAuthorizationState"),this.hasGlobusAuthToken()&&(this.authenticated=!0)}async#s(){let t=this.authenticated,r=this.getGlobusAuthToken()??void 0;await this.events.authenticated.dispatch({isAuthenticated:t,token:r})}reset(){Object.keys(this.storage).forEach(t=>{t.startsWith(this.storageKeyPrefix)&&this.storage.removeItem(t)}),this.authenticated=!1}#o(t){return`${t}${this.configuration.useRefreshTokens?" offline_access":""}`}#n(t){let{scopes:r,...o}=t??{},i=Dn[this.configuration.transport||"redirect"],d=this.#o(r??(this.configuration.scopes||""));return this.storage instanceof ie&&(d=[...new Set(d.split(" ").concat((this.configuration?.scopes||"").split(" ")))].join(" ")),new i({client:this.configuration.client,redirect:this.configuration.redirect,scopes:d,...o,params:{...o?.params}})}async login(t={additionalParams:{}}){b("debug","AuthorizationManager.login"),this.reset();let o=await this.#n({params:t?.additionalParams}).send();return X(o)&&this.addTokenResponse(o),o}async prompt(t){b("debug","AuthorizationManager.prompt");let o=await this.#n(t).send();return X(o)&&this.addTokenResponse(o),o}async handleCodeRedirect(t={shouldReplace:!0,additionalParams:{}}){b("debug","AuthorizationManager.handleCodeRedirect");let r=await this.#n({params:t?.additionalParams}).getToken({shouldReplace:t?.shouldReplace,includeConsentedScopes:t?.includeConsentedScopes});return X(r)&&(b("debug",`AuthorizationManager.handleCodeRedirect | response=${JSON.stringify(r)}`),this.addTokenResponse(r)),r}async handleErrorResponse(t,r){let o=typeof r=="boolean"?{...Rr,execute:r}:{...Rr,...r};b("debug",`AuthorizationManager.handleErrorResponse | response=${JSON.stringify(t)} execute=${o.execute}`);let i=async()=>{};return ee(t)&&(b("debug","AuthorizationManager.handleErrorResponse | error=AuthorizationRequirementsError"),i=async()=>{await this.handleAuthorizationRequirementsError(t,{additionalParams:o.additionalParams})}),$e(t)&&(b("debug","AuthorizationManager.handleErrorResponse | error=ConsentRequiredError"),i=async()=>{await this.handleConsentRequiredError(t,{additionalParams:o.additionalParams})}),"code"in t&&t.code==="AuthenticationFailed"&&(b("debug","AuthorizationManager.handleErrorResponse | error=AuthenticationFailed"),i=async()=>{await this.revoke()}),o.execute===!0?await i():i}async handleAuthorizationRequirementsError(t,r){this.#e=this.#n({params:{prompt:"login",...He(t),...r?.additionalParams}}),await this.#e.send()}async handleConsentRequiredError(t,r){this.#e=this.#n({scopes:this.#o(t.required_scopes.join(" ")),params:{...r?.additionalParams}}),await this.#e.send()}addTokenResponse=t=>{this.tokens.add(t),this.#t()};async revoke(){b("debug","AuthorizationManager.revoke");let t=Promise.all(this.tokens.getAll().map(this.#i.bind(this)));this.reset(),await t,await this.events.revoke.dispatch()}#i(t){return b("debug",`AuthorizationManager.revokeToken | resource_server=${t.resource_server}`),q.token.revoke({payload:{client_id:this.configuration.client,token:t.access_token}})}};function In(e){return new ae(e)}var Pt={};u(Pt,{CONFIG:()=>Ho,access:()=>pt,collectionBookmarks:()=>ut,endpoint:()=>it,endpointManager:()=>ft,endpointSearch:()=>Er,fileOperations:()=>ot,roles:()=>ct,streamAccessPoint:()=>lt,task:()=>at,taskSubmission:()=>st,tunnel:()=>dt,utils:()=>Ot});var Er=function(e,t){let r={...e,query:e?.query};return n({service:p,scope:c.ALL,path:"/v0.10/endpoint_search"},r,t)};var ot={};u(ot,{ls:()=>kn,mkdir:()=>wn,rename:()=>Cn,stat:()=>Ln,symlink:()=>Mn});function B(e){return e==="GET"?{}:{"Content-Type":"application/json"}}var kn=function(e,t,r){return n({service:p,scope:c.ALL,path:`/v0.10/operation/endpoint/${e}/ls`},t,r)},wn=function(e,t,r){let o={payload:{DATA_TYPE:"mkdir",...t?.payload},headers:{...B("POST"),...t?.headers}};return n({service:p,scope:c.ALL,path:`/v0.10/operation/endpoint/${e}/mkdir`,method:"POST"},o,r)},Cn=function(e,t,r){let o={payload:{DATA_TYPE:"rename",...t?.payload},headers:{...B("POST"),...t?.headers}};return n({service:p,scope:c.ALL,path:`/v0.10/operation/endpoint/${e}/rename`,method:"POST"},o,r)},Mn=function(e,t,r){let o={payload:{DATA_TYPE:"symlink",...t?.payload},headers:{...B("POST"),...t?.headers}};return n({service:p,scope:c.ALL,path:`/v0.10/operation/endpoint/${e}/symlink`,method:"POST"},o,r)},Ln=function(e,t,r){return n({service:p,scope:c.ALL,path:`/v0.10/operation/endpoint/${e}/stat`},t,r)};var st={};u(st,{submissionId:()=>Fn,submitDelete:()=>Nn,submitTransfer:()=>qn});var Nn=function(e,t){let r={payload:{DATA_TYPE:"delete",...e?.payload},headers:{...B("POST"),...e?.headers}};return n({service:p,scope:c.ALL,path:"/v0.10/delete",method:"POST"},r,t)},qn=function(e,t){let r={payload:{DATA_TYPE:"transfer",...e?.payload},headers:{...B("POST"),...e?.headers}};return n({service:p,scope:c.ALL,path:"/v0.10/transfer",method:"POST"},r,t)},Fn=function(e,t){return n({service:p,scope:c.ALL,path:"/v0.10/submission_id"},e,t)};var it={};u(it,{create:()=>Gn,get:()=>jn,remove:()=>Jn,update:()=>Un});var jn=function(e,t,r){return n({service:p,scope:c.ALL,path:`/v0.10/endpoint/${e}`},t,r)},Gn=function(e,t){return e?.payload&&Object.assign(e.payload,{DATA_TYPE:"shared_endpoint"}),n({service:p,scope:c.ALL,path:"/v0.10/shared_endpoint",method:"POST"},e,t)},Un=function(e,t,r){return t?.payload&&Object.assign(t.payload,{DATA_TYPE:"endpoint"}),n({service:p,scope:c.ALL,path:`/v0.10/endpoint/${e}`,method:"PUT"},t,r)},Jn=function(e,t,r){return n({service:p,scope:c.ALL,path:`/v0.10/endpoint/${e}`,method:"DELETE"},t,r)};var at={};u(at,{cancel:()=>zn,get:()=>Hn,getAll:()=>$n,getEventList:()=>Yn,getPauseInfo:()=>Qn,getSkippedErrors:()=>Wn,getSuccessfulTransfers:()=>Kn,remove:()=>Vn,update:()=>Bn});var $n=function(e={},t){return n({service:p,scope:c.ALL,path:"/v0.10/task_list"},e,t)},Hn=function(e,t,r){return n({service:p,scope:c.ALL,path:`/v0.10/task/${e}`},t,r)},Bn=function(e,t,r){return n({service:p,scope:c.ALL,path:`/v0.10/task/${e}`,method:"PUT"},t,r)},zn=function(e,t,r){return n({service:p,scope:c.ALL,path:`/v0.10/task/${e}/cancel`,method:"POST"},t,r)},Vn=function(e,t,r){return n({service:p,scope:c.ALL,path:`/v0.10/task/${e}/remove`,method:"POST"},t,r)},Yn=function(e,t,r){return n({service:p,scope:c.ALL,path:`/v0.10/task/${e}/event_list`},t,r)},Kn=function(e,t,r){return n({service:p,scope:c.ALL,path:`/v0.10/task/${e}/successful_transfers`},t,r)},Wn=function(e,t,r){return n({service:p,scope:c.ALL,path:`/v0.10/task/${e}/skipped_errors`},t,r)},Qn=function(e,t,r){return n({service:p,scope:c.ALL,path:`/v0.10/task/${e}/pause_info`},t,r)};var pt={};u(pt,{create:()=>Zn,get:()=>eo,getAll:()=>Xn,remove:()=>ro,update:()=>to});var Xn=function(e,t,r){return n({service:p,scope:c.ALL,path:`/v0.10/endpoint/${e}/access_list`},t,r)},Zn=function(e,t,r){return n({service:p,scope:c.ALL,path:`/v0.10/endpoint/${e}/access`,method:"POST"},t,r)},eo=function({endpoint_xid:e,id:t},r,o){return n({service:p,scope:c.ALL,path:`/v0.10/endpoint/${e}/access/${t}`},r,o)},to=function({endpoint_xid:e,id:t},r,o){return n({service:p,scope:c.ALL,path:`/v0.10/endpoint/${e}/access/${t}`,method:"PUT"},r,o)},ro=function({endpoint_xid:e,id:t},r,o){return n({service:p,scope:c.ALL,path:`/v0.10/endpoint/${e}/access/${t}`,method:"DELETE"},r,o)};var ct={};u(ct,{create:()=>so,get:()=>oo,getAll:()=>no,remove:()=>io});var no=function(e,t={},r){return n({service:p,scope:c.ALL,path:`/v0.10/endpoint/${e}/role_list`},t,r)},oo=function({endpoint_id:e,role_id:t},r,o){return n({service:p,scope:c.ALL,path:`/v0.10/endpoint/${e}/role/${t}`},r,o)},so=function(e,t,r){return n({service:p,scope:c.ALL,path:`/v0.10/endpoint/${e}/role`,method:"POST"},t,r)},io=function({collection_id:e,role_id:t},r,o){return n({service:p,scope:c.ALL,path:`/v0.10/endpoint/${e}/role/${t}`,method:"DELETE"},r,o)};var ut={};u(ut,{create:()=>po,get:()=>co,getAll:()=>ao,remove:()=>lo,update:()=>uo});var ao=function(e,t){return n({service:p,scope:c.ALL,path:"/v0.10/bookmark_list"},e,t)},po=function(e,t){return n({service:p,scope:c.ALL,path:"/v0.10/bookmark",method:"POST"},e,t)},co=function(e,t,r){return n({service:p,scope:c.ALL,path:`/v0.10/bookmark/${e}`},t,r)},uo=function(e,t,r){return n({service:p,scope:c.ALL,path:`/v0.10/bookmark/${e}`,method:"PUT"},t,r)},lo=function(e,t,r){return n({service:p,scope:c.ALL,path:`/v0.10/bookmark/${e}`,method:"DELETE"},t,r)};var dt={};u(dt,{create:()=>_o,get:()=>ho,getAll:()=>mo,getEventList:()=>So,remove:()=>fo,start:()=>go,stop:()=>yo});var z=h[p],mo=function(e,t){return n({service:p,resource_server:z,path:"/v2/tunnels"},e,t)},ho=function(e,t,r){return n({service:p,resource_server:z,path:`/v2/tunnels/${e}`},t,r)},_o=function(e,t){return n({service:p,resource_server:z,path:"/v2/tunnels",method:"POST"},e,t)},fo=function(e,t,r){return n({service:p,resource_server:z,path:`/v2/tunnels/${e}`,method:"DELETE"},t,r)},go=function(e,t,r){return n({service:p,resource_server:z,path:`/v2/tunnels/${e}`,method:"PATCH"},{payload:{data:{attributes:{...t}}}},r)},yo=function(e,t={},r){return n({service:p,resource_server:z,path:`/v2/tunnels/${e}`,method:"PATCH"},{payload:{data:{attributes:{...t,state:"STOPPING"}}}},r)},So=function(e,t,r){return n({service:p,resource_server:z,path:`/v2/tunnels/${e}/events`},t,r)};var lt={};u(lt,{get:()=>Oo,getAll:()=>vo});var br=h[p],vo=function(e,t){return n({service:p,resource_server:br,path:"/v2/stream_access_points"},e,t)},Oo=function(e,t,r){return n({service:p,resource_server:br,path:`/v2/stream_access_points/${e}`},t,r)};var ft={};u(ft,{endpoint:()=>mt,pauseRule:()=>ht,task:()=>_t});var mt={};u(mt,{get:()=>Po,getAccessList:()=>To,getHostedEndpoints:()=>Ao,getMonitoredEndpoints:()=>Ro});var Po=function(e,t,r){return n({service:p,scope:c.ALL,path:`/v0.10/endpoint_manager/endpoint/${e}`},t,r)},Ao=function(e,t,r){return n({service:p,scope:c.ALL,path:`/v0.10/endpoint_manager/endpoint/${e}/hosted_endpoint_list`},t,r)},To=function(e,t,r){return n({service:p,scope:c.ALL,path:`/v0.10/endpoint_manager/endpoint/${e}/access_list`},t,r)},Ro=function(e={},t){return n({service:p,scope:c.ALL,path:"/v0.10/endpoint_manager/monitored_endpoints"},e,t)};var ht={};u(ht,{create:()=>bo,get:()=>xo,getAll:()=>Eo,remove:()=>Io,update:()=>Do});var Eo=function(e,t){return n({service:p,scope:c.ALL,path:"/v0.10/endpoint_manager/pause_rule_list"},e,t)},bo=function(e,t){return n({service:p,scope:c.ALL,path:"/v0.10/endpoint_manager/pause_rule",method:"POST"},e,t)},xo=function(e,t,r){return n({service:p,scope:c.ALL,path:`/v0.10/endpoint_manager/pause_rule/${e}`},t,r)},Do=function(e,t,r){return n({service:p,scope:c.ALL,path:`/v0.10/endpoint_manager/pause_rule/${e}`,method:"PUT"},t,r)},Io=function(e,t,r){return n({service:p,scope:c.ALL,path:`/v0.10/endpoint_manager/pause_rule/${e}`,method:"DELETE"},t,r)};var _t={};u(_t,{cancel:()=>Co,get:()=>wo,getAdminCancel:()=>Mo,getAll:()=>ko,getEventList:()=>Lo,getPauseInfo:()=>Go,getSkippedErrors:()=>qo,getSuccessfulTransfers:()=>No,pause:()=>Fo,resume:()=>jo});var ko=function(e={},t){return n({service:p,scope:c.ALL,path:"/v0.10/task_list"},e,t)},wo=function(e,t,r){return n({service:p,scope:c.ALL,path:`/v0.10/endpoint_manager/task/${e}`},t,r)},Co=function(e,t){return n({service:p,scope:c.ALL,path:"/v0.10/endpoint_manager/admin_cancel",method:"POST"},e,t)},Mo=function(e,t,r){return n({service:p,scope:c.ALL,path:`/v0.10/endpoint_manager/admin_cancel/${e}`,method:"POST"},t,r)},Lo=function(e,t,r){return n({service:p,scope:c.ALL,path:`/v0.10/endpoint_manager/task/${e}/event_list`},t,r)},No=function(e,t,r){return n({service:p,scope:c.ALL,path:`/v0.10/endpoint_manager/task/${e}/successful_transfers`},t,r)},qo=function(e,t,r){return n({service:p,scope:c.ALL,path:`/v0.10/endpoint_manager/task/${e}/skipped_errors`},t,r)},Fo=function(e,t){return n({service:p,scope:c.ALL,path:"/v0.10/endpoint_manager/admin_pause",method:"POST"},e,t)},jo=function(e,t){return n({service:p,scope:c.ALL,path:"/v0.10/endpoint_manager/admin_resume",method:"POST"},e,t)},Go=function(e,t,r){return n({service:p,scope:c.ALL,path:`/v0.10/endpoint_manager/task/${e}/pause_info`},t,r)};var Ot={};u(Ot,{GLOBUS_DNS_DOMAINS:()=>Ir,getDomainFromEndpoint:()=>$o,isDirectory:()=>Uo,isFileDocument:()=>Dr,isGlobusHostname:()=>kr,readableBytes:()=>Jo});function Dr(e){return typeof e=="object"&&e!==null&&"DATA_TYPE"in e&&e.DATA_TYPE==="file"}function Uo(e){return Dr(e)&&e.type==="dir"}var gt=1e3,yt=gt*1e3,St=yt*1e3,vt=St*1e3,xr=vt*1e3;function Jo(e,t=2){let r="B",o=1;if(e<gt)return`${e} ${r}`;e<yt?(r="KB",o=gt):e<St?(r="MB",o=yt):e<vt?(r="GB",o=St):e<xr?(r="TB",o=vt):(r="PB",o=xr);let i=e/o,[d,f]=`${i}`.split("."),g=`${d}`;if(f&&f.length){let R=f.slice(0,t);R.length&&(g=`${d}.${R}`)}return`${g} ${r}`}var Ir=["dnsteam.globuscs.info","data.globus.org","dn.glob.us","gaccess.io"];function kr(e){return!!Ir.find(t=>e.endsWith(`.${t}`))}function $o(e){let{tlsftp_server:t}=e;if(!t||typeof t!="string")return null;let{hostname:r}=new URL(t.replace("tlsftp","https"));return!kr(r)&&/(?:[gm]-\w{6}.)?([\w-]+(\.[\w-]+)+)$/.exec(r)?.[1]||r||null}var Ho=le;var xt={};u(xt,{CONFIG:()=>os,entry:()=>Rt,index:()=>bt,query:()=>At,subject:()=>Tt});var At={};u(At,{get:()=>Bo,post:()=>zo});var Bo=function(e,t,r){return n({service:v,scope:x.SEARCH,path:`/v1/index/${e}/search`},t,r)},zo=function(e,t,r){return n({service:v,scope:x.SEARCH,path:`/v1/index/${e}/search`,method:"POST"},t,r)};var Tt={};u(Tt,{get:()=>Vo});var Vo=function(e,t,r){return n({service:v,scope:x.SEARCH,path:`/v1/index/${e}/subject`},t,r)};var Rt={};u(Rt,{get:()=>Yo});var Yo=function(e,t,r){return n({service:v,scope:x.SEARCH,path:`/v1/index/${e}/entry`},t,r)};var bt={};u(bt,{create:()=>es,get:()=>Xo,getAll:()=>Zo,ingest:()=>ns,remove:()=>ts,reopen:()=>rs,roles:()=>Et});var Et={};u(Et,{create:()=>Wo,getAll:()=>Ko,remove:()=>Qo});var Ko=function(e,t,r){return n({service:v,scope:x.ALL,path:`/v1/index/${e}/role_list`},t,r)},Wo=function(e,t,r){return n({service:v,scope:x.ALL,path:`/v1/index/${e}/role`,method:"POST"},t,r)},Qo=function({index_id:e,role_id:t},r,o){return n({service:v,scope:x.ALL,path:`/v1/index/${e}/role/${t}`,method:"DELETE"},r,o)};var Xo=function(e,t,r){return n({service:v,path:`/v1/index/${e}`},t,r)},Zo=function(e,t){return n({service:v,scope:x.ALL,path:"/v1/index_list"},e,t)},es=function(e,t){return n({service:v,scope:x.ALL,path:"/v1/index",method:"POST"},e,t)},ts=function(e,t,r){return n({service:v,scope:x.ALL,path:`/v1/index/${e}`,method:"DELETE"},t,r)},rs=function(e,t,r){return n({service:v,scope:x.ALL,path:`/v1/index/${e}/reopen`,method:"POST"},t,r)},ns=function(e,t,r){return n({service:v,scope:x.ALL,path:`/v1/index/${e}/ingest`,method:"POST"},t,r)};var os=fe;var wt={};u(wt,{CONFIG:()=>hs,groups:()=>Dt,membership:()=>kt,policies:()=>It});var Dt={};u(Dt,{create:()=>as,get:()=>is,getMyGroups:()=>ss,getStatuses:()=>us,remove:()=>ps,update:()=>cs});var ss=function(e,t){return n({service:E,resource_server:h.GROUPS,path:"/v2/groups/my_groups"},e,t)},is=function(e,t,r){return n({service:E,resource_server:h.GROUPS,path:`/v2/groups/${e}`},t,r)},as=function(e,t){return n({service:E,resource_server:h.GROUPS,path:"/v2/groups",method:"POST"},e,t)},ps=function(e,t,r){return n({service:E,resource_server:h.GROUPS,path:`/v2/groups/${e}`,method:"DELETE"},t,r)},cs=function(e,t,r){return n({service:E,resource_server:h.GROUPS,path:`/v2/groups/${e}`,method:"PUT"},t,r)},us=function(e,t){return n({service:E,resource_server:h.GROUPS,path:"/v2/groups/statuses"},e,t)};var It={};u(It,{get:()=>ds,update:()=>ls});var ds=function(e,t,r){return n({service:E,resource_server:h.GROUPS,path:`/v2/groups/${e}/policies`},t,r)},ls=function(e,t,r){return n({service:E,resource_server:h.GROUPS,path:`/v2/groups/${e}/policies`,method:"PUT"},t,r)};var kt={};u(kt,{act:()=>ms});var ms=function(e,t,r){return n({service:E,resource_server:h.GROUPS,path:`/v2/groups/${e}`,method:"POST"},t,r)};var hs=_e;var Lt={};u(Lt,{CONFIG:()=>Ds,flows:()=>Ct,runs:()=>Mt});var Ct={};u(Ct,{create:()=>wr,deploy:()=>vs,get:()=>fs,getAll:()=>_s,remove:()=>gs,run:()=>ys,update:()=>Os,validate:()=>Ss});var _s=function(e,t){return n({service:P,scope:I.VIEW_FLOWS,path:"/flows"},e,t)},fs=function(e,t,r){return n({service:P,scope:I.VIEW_FLOWS,path:`/flows/${e}`},t,r)},gs=function(e,t,r){return n({scope:I.MANAGE_FLOWS,service:P,path:`/flows/${e}`,method:"DELETE"},t,r)},ys=function(e,t,r){return n({service:P,scope:I.VIEW_FLOWS,path:`/flows/${e}/run`,method:"POST"},t,r)},Ss=function(e,t){return n({service:P,scope:I.MANAGE_FLOWS,path:"/flows/validate",method:"POST"},e,t)},wr=function(e,t){return n({service:P,scope:I.MANAGE_FLOWS,path:"/flows",method:"POST"},e,t)},vs=wr,Os=function(e,t,r){return n({service:P,scope:I.MANAGE_FLOWS,path:`/flows/${e}`,method:"PUT"},t,r)};var Mt={};u(Mt,{cancel:()=>Ts,get:()=>As,getAll:()=>Ps,getDefinition:()=>xs,getLog:()=>Rs,remove:()=>bs,update:()=>Es});var Ps=function(e={},t){return n({service:P,scope:I.RUN_MANAGE,path:"/runs"},e,t)},As=function(e,t,r){return n({service:P,scope:I.RUN_MANAGE,path:`/runs/${e}`},t,r)},Ts=function(e,t,r){return n({service:P,scope:I.RUN_MANAGE,path:`/runs/${e}/cancel`,method:"POST"},t,r)},Rs=function(e,t,r){return n({service:P,scope:I.RUN_MANAGE,path:`/runs/${e}/log`},t,r)},Es=function(e,t,r){return n({service:P,scope:I.RUN_MANAGE,path:`/runs/${e}`,method:"PUT"},t,r)},bs=function(e,t,r){return n({service:P,scope:I.RUN_MANAGE,path:`/runs/${e}/release`,method:"POST"},t,r)},xs=function(e,t,r){return n({service:P,scope:I.RUN_MANAGE,path:`/runs/${e}/definition`,method:"GET"},t,r)};var Ds=me;var zt={};u(zt,{collections:()=>Nt,endpoint:()=>qt,getScopes:()=>gi,https:()=>Ft,nodes:()=>jt,roles:()=>Gt,storageGateways:()=>Ut,userCredentials:()=>Jt,utils:()=>Bt,versioning:()=>Ht});var Nt={};u(Nt,{create:()=>Cs,get:()=>ks,getAll:()=>Is,patch:()=>Ls,remove:()=>ws,resetOwnerString:()=>qs,update:()=>Ms,updateOwnerString:()=>Ns});var Is=function(e,t,r){return n({service:e,resource_server:e.endpoint_id,path:"/api/collections"},t,r)},ks=function(e,t,r,o){return n({service:e,resource_server:e.endpoint_id,path:`/api/collections/${t}`},r,o)},ws=function(e,t,r,o){return n({service:e,resource_server:e.endpoint_id,path:`/api/collections/${t}`,method:"DELETE"},r,o)},Cs=function(e,t,r){return n({service:e,resource_server:e.endpoint_id,path:"/api/collections",method:"POST"},t,r)},Ms=function(e,t,r,o){return n({service:e,resource_server:e.endpoint_id,path:`/api/collections/${t}`,method:"PUT"},r,o)},Ls=function(e,t,r,o){return n({service:e,resource_server:e.endpoint_id,path:`/api/collections/${t}`,method:"PATCH"},r,o)},Ns=function(e,t,r,o){return n({service:e,resource_server:e.endpoint_id,path:`/api/collections/${t}/owner_string`,method:"PUT"},r,o)},qs=function(e,t,r,o){return n({service:e,resource_server:e.endpoint_id,path:`/api/collections/${t}/owner_string`,method:"DELETE"},r,o)};var qt={};u(qt,{get:()=>Fs,patch:()=>Gs,resetOwnerString:()=>Hs,update:()=>js,updateOwner:()=>Js,updateOwnerString:()=>$s,updateSubscriptionId:()=>Us});var Fs=function(e,t,r){return n({service:e,resource_server:e.endpoint_id,path:"/api/endpoint"},t,r)},js=function(e,t,r){return n({service:e,resource_server:e.endpoint_id,path:"/api/endpoint",method:"PUT"},t,r)},Gs=function(e,t,r){return n({service:e,resource_server:e.endpoint_id,path:"/api/endpoint",method:"PATCH"},t,r)},Us=function(e,t,r){return n({service:e,resource_server:e.endpoint_id,path:"/api/endpoint/subscription_id",method:"PUT"},t,r)},Js=function(e,t,r){return n({service:e,resource_server:e.endpoint_id,path:"/api/endpoint/owner",method:"PUT"},t,r)},$s=function(e,t,r){return n({service:e,resource_server:e.endpoint_id,path:"/api/endpoint/owner_string",method:"PUT"},t,r)},Hs=function(e,t,r){return n({service:e,resource_server:e.endpoint_id,path:"/api/endpoint/owner_string",method:"DELETE"},t,r)};var Ft={};u(Ft,{get:()=>Bs,remove:()=>zs,update:()=>Vs});var Bs=function(e,t,r,o){return n({service:e,resource_server:e.endpoint_id,path:t},r,o)},zs=function(e,t,r,o){return n({service:e,resource_server:e.endpoint_id,path:t,method:"DELETE"},r,o)},Vs=function(e,t,r,o){return n({service:e,resource_server:e.endpoint_id,path:t,method:"PUT"},r,o)};var jt={};u(jt,{create:()=>Qs,get:()=>Ks,getAll:()=>Ys,patch:()=>Zs,remove:()=>Ws,update:()=>Xs});var Ys=function(e,t,r){return n({service:e,resource_server:e.endpoint_id,path:"/api/nodes"},t,r)},Ks=function(e,t,r,o){return n({service:e,resource_server:e.endpoint_id,path:`/api/nodes/${t}`},r,o)},Ws=function(e,t,r,o){return n({service:e,resource_server:e.endpoint_id,path:`/api/nodes/${t}`,method:"DELETE"},r,o)},Qs=function(e,t,r){return n({service:e,resource_server:e.endpoint_id,path:"/api/nodes",method:"POST"},t,r)},Xs=function(e,t,r,o){return n({service:e,resource_server:e.endpoint_id,path:`/api/nodes/${t}`,method:"PUT"},r,o)},Zs=function(e,t,r,o){return n({service:e,resource_server:e.endpoint_id,path:`/api/nodes/${t}`,method:"PATCH"},r,o)};var Gt={};u(Gt,{create:()=>ni,get:()=>ti,getAll:()=>ei,remove:()=>ri});var ei=function(e,t,r){return n({service:e,resource_server:e.endpoint_id,path:"/api/roles"},t,r)},ti=function(e,t,r,o){return n({service:e,resource_server:e.endpoint_id,path:`/api/roles/${t}`},r,o)},ri=function(e,t,r,o){return n({service:e,resource_server:e.endpoint_id,path:`/api/roles/${t}`,method:"DELETE"},r,o)},ni=function(e,t,r){return n({service:e,resource_server:e.endpoint_id,path:"/api/roles",method:"POST"},t,r)};var Ut={};u(Ut,{create:()=>ai,get:()=>si,getAll:()=>oi,patch:()=>ci,remove:()=>ii,update:()=>pi});var oi=function(e,t,r){return n({service:e,resource_server:e.endpoint_id,path:"/api/storage_gateways"},t,r)},si=function(e,t,r,o){return n({service:e,resource_server:e.endpoint_id,path:`/api/storage_gateways/${t}`},r,o)},ii=function(e,t,r,o){return n({service:e,resource_server:e.endpoint_id,path:`/api/storage_gateways/${t}`,method:"DELETE"},r,o)},ai=function(e,t,r){return n({service:e,resource_server:e.endpoint_id,path:"/api/storage_gateways",method:"POST"},t,r)},pi=function(e,t,r,o){return n({service:e,resource_server:e.endpoint_id,path:`/api/storage_gateways/${t}`,method:"PUT"},r,o)},ci=function(e,t,r,o){return n({service:e,resource_server:e.endpoint_id,path:`/api/storage_gateways/${t}`,method:"PATCH"},r,o)};var Jt={};u(Jt,{create:()=>mi,get:()=>di,getAll:()=>ui,patch:()=>_i,remove:()=>li,update:()=>hi});var ui=function(e,t,r){return n({service:e,resource_server:e.endpoint_id,path:"/api/user_credentials"},t,r)},di=function(e,t,r,o){return n({service:e,resource_server:e.endpoint_id,path:`/api/user_credentials/${t}`},r,o)},li=function(e,t,r,o){return n({service:e,resource_server:e.endpoint_id,path:`/api/user_credentials/${t}`,method:"DELETE"},r,o)},mi=function(e,t,r){return n({service:e,resource_server:e.endpoint_id,path:"/api/user_credentials",method:"POST"},t,r)},hi=function(e,t,r,o){return n({service:e,resource_server:e.endpoint_id,path:`/api/user_credentials/${t}`,method:"PUT"},r,o)},_i=function(e,t,r,o){return n({service:e,resource_server:e.endpoint_id,path:`/api/user_credentials/${t}`,method:"PATCH"},r,o)};var Ht={};u(Ht,{info:()=>$t});var $t=function(e,t,r){return n({service:e,path:"/api/info"},t,r)};var Bt={};u(Bt,{getEndpointIdFromURL:()=>fi,getGCSDomainFromURL:()=>Cr});var pe="data.globus.org";function Cr(e){let{host:t}=typeof e=="string"?new URL(e):e;if(!t.endsWith(pe))return t;let[r]=t.split(`.${pe}`),o=r.split(".");return(o.length===2?[...o,pe]:[o[1],o[2],pe]).join(".")}async function fi(e){let t=typeof e=="string"?new URL(e):e;if(!t.host.endsWith(pe))return null;let i=(await(await $t({host:`https://${Cr(t)}`})).json()).data?.filter(d=>d.DATA_TYPE.startsWith("info#"))[0];return i&&"endpoint_id"in i?i.endpoint_id:null}var Mr={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 gi(e,t){let{endpoint_id:r}=e;if(!r)throw new Error("An 'endpoint_id' is required to determine the required scopes");return t?Mr[t].replace("<ENDPOINT_ID>",r):Object.entries(Mr).reduce((o,[i,d])=>({...o,[i]:d.replace("<ENDPOINT_ID>",r)}),{})}var Kt={};u(Kt,{CONFIG:()=>Ri,jobs:()=>Yt,timer:()=>Vt});var Vt={};u(Vt,{create:()=>yi});var yi=function(e,t){return n({service:A,resource_server:h.TIMERS,path:"/v2/timer",method:"POST"},e,t)};var Yt={};u(Yt,{get:()=>vi,getAll:()=>Si,patch:()=>Oi,pause:()=>Pi,remove:()=>Ti,resume:()=>Ai});var Si=function(e,t){return n({service:A,resource_server:h[A],path:"/jobs",method:"GET"},e,t)},vi=function(e,t,r){return n({service:A,resource_server:h[A],path:`/jobs/${e}`,method:"GET"},t,r)},Oi=function(e,t,r){return n({service:A,resource_server:h[A],path:`/jobs/${e}`,method:"PATCH"},t,r)},Pi=function(e,t,r){return n({service:A,resource_server:h[A],path:`/jobs/${e}/pause`,method:"POST"},t,r)},Ai=function(e,t,r){return n({service:A,resource_server:h[A],path:`/jobs/${e}/resume`,method:"POST"},t,r)},Ti=function(e,t,r){return n({service:A,resource_server:h[A],path:`/jobs/${e}`,method:"DELETE"},t,r)};var Ri=he;var Qt={};u(Qt,{CONFIG:()=>ki,endpoints:()=>Wt});var Wt={};u(Wt,{get:()=>bi,getAll:()=>Ei,getStatus:()=>xi,remove:()=>Ii,update:()=>Di});var Ei=function(e,t){return n({service:w,scope:H.ALL,path:"/v2/endpoints",method:"GET"},e,t)},bi=function(e,t,r){return n({service:w,scope:H.ALL,path:`/v2/endpoints/${e}`,method:"GET"},t,r)},xi=function(e,t,r){return n({service:w,scope:H.ALL,path:`/v2/endpoints/${e}/status`},t,r)},Di=function(e,t,r){return n({service:w,scope:H.ALL,path:`/v3/endpoints/${e}`,method:"PUT"},t,r)},Ii=function(e,t,r){return n({service:w,scope:H.ALL,path:`/v2/endpoints/${e}`,method:"DELETE"},t,r)};var ki=ge;var Xt={};u(Xt,{HOSTS:()=>Lr,host:()=>Nr,url:()=>qr,urlFor:()=>Ci});var Lr={integration:"app.integration.globuscs.info",sandbox:"app.sandbox.globuscs.info",test:"app.test.globuscs.info",staging:"app.staging.globuscs.info",preview:"app.preview.globus.org",production:"app.globus.org"};function Nr(e=K()){return Lr[e]}function qr(e,t){return new URL(e||"",`https://${Nr(t?.environment)}`)}var wi={TASK:"/activity/%s/overview",COLLECTION:"/file-manager/collections/%s/overview",ENDPOINT:"/file-manager/collections/%s/overview"};function Ci(e,t,r){let o=wi[e].replace(/%s/g,t?.join("/")||"");return qr(o,r)}return Qr(Mi);})();
|
|
1
|
+
var globus=(()=>{var Qr=Object.create;var ue=Object.defineProperty;var Xr=Object.getOwnPropertyDescriptor;var Zr=Object.getOwnPropertyNames;var eo=Object.getPrototypeOf,to=Object.prototype.hasOwnProperty;var ro=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),c=(e,t)=>{for(var r in t)ue(e,r,{get:t[r],enumerable:!0})},ur=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Zr(t))!to.call(e,i)&&i!==r&&ue(e,i,{get:()=>t[i],enumerable:!(n=Xr(t,i))||n.enumerable});return e};var oo=(e,t,r)=>(r=e!=null?Qr(eo(e)):{},ur(t||!e||!e.__esModule?ue(r,"default",{value:e,enumerable:!0}):r,e)),no=e=>ur(ue({},"__esModule",{value:!0}),e);var Tr=ro((J,Ar)=>{var Se=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||typeof global<"u"&&global,ve=(function(){function e(){this.fetch=!1,this.DOMException=Se.DOMException}return e.prototype=Se,new e})();(function(e){var t=(function(r){var n=typeof e<"u"&&e||typeof self<"u"&&self||typeof global<"u"&&global||{},i={searchParams:"URLSearchParams"in n,iterable:"Symbol"in n&&"iterator"in Symbol,blob:"FileReader"in n&&"Blob"in n&&(function(){try{return new Blob,!0}catch{return!1}})(),formData:"FormData"in n,arrayBuffer:"ArrayBuffer"in n};function l(s){return s&&DataView.prototype.isPrototypeOf(s)}if(i.arrayBuffer)var y=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],S=ArrayBuffer.isView||function(s){return s&&y.indexOf(Object.prototype.toString.call(s))>-1};function R(s){if(typeof s!="string"&&(s=String(s)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(s)||s==="")throw new TypeError('Invalid character in header field name: "'+s+'"');return s.toLowerCase()}function L(s){return typeof s!="string"&&(s=String(s)),s}function N(s){var a={next:function(){var m=s.shift();return{done:m===void 0,value:m}}};return i.iterable&&(a[Symbol.iterator]=function(){return a}),a}function P(s){this.map={},s instanceof P?s.forEach(function(a,m){this.append(m,a)},this):Array.isArray(s)?s.forEach(function(a){if(a.length!=2)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+a.length);this.append(a[0],a[1])},this):s&&Object.getOwnPropertyNames(s).forEach(function(a){this.append(a,s[a])},this)}P.prototype.append=function(s,a){s=R(s),a=L(a);var m=this.map[s];this.map[s]=m?m+", "+a:a},P.prototype.delete=function(s){delete this.map[R(s)]},P.prototype.get=function(s){return s=R(s),this.has(s)?this.map[s]:null},P.prototype.has=function(s){return this.map.hasOwnProperty(R(s))},P.prototype.set=function(s,a){this.map[R(s)]=L(a)},P.prototype.forEach=function(s,a){for(var m in this.map)this.map.hasOwnProperty(m)&&s.call(a,this.map[m],m,this)},P.prototype.keys=function(){var s=[];return this.forEach(function(a,m){s.push(m)}),N(s)},P.prototype.values=function(){var s=[];return this.forEach(function(a){s.push(a)}),N(s)},P.prototype.entries=function(){var s=[];return this.forEach(function(a,m){s.push([m,a])}),N(s)},i.iterable&&(P.prototype[Symbol.iterator]=P.prototype.entries);function q(s){if(!s._noBody){if(s.bodyUsed)return Promise.reject(new TypeError("Already read"));s.bodyUsed=!0}}function V(s){return new Promise(function(a,m){s.onload=function(){a(s.result)},s.onerror=function(){m(s.error)}})}function ir(s){var a=new FileReader,m=V(a);return a.readAsArrayBuffer(s),m}function U(s){var a=new FileReader,m=V(a),v=/charset=([A-Za-z0-9_-]+)/.exec(s.type),A=v?v[1]:"utf-8";return a.readAsText(s,A),m}function Br(s){for(var a=new Uint8Array(s),m=new Array(a.length),v=0;v<a.length;v++)m[v]=String.fromCharCode(a[v]);return m.join("")}function ar(s){if(s.slice)return s.slice(0);var a=new Uint8Array(s.byteLength);return a.set(new Uint8Array(s)),a.buffer}function pr(){return this.bodyUsed=!1,this._initBody=function(s){this.bodyUsed=this.bodyUsed,this._bodyInit=s,s?typeof s=="string"?this._bodyText=s:i.blob&&Blob.prototype.isPrototypeOf(s)?this._bodyBlob=s:i.formData&&FormData.prototype.isPrototypeOf(s)?this._bodyFormData=s:i.searchParams&&URLSearchParams.prototype.isPrototypeOf(s)?this._bodyText=s.toString():i.arrayBuffer&&i.blob&&l(s)?(this._bodyArrayBuffer=ar(s.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):i.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(s)||S(s))?this._bodyArrayBuffer=ar(s):this._bodyText=s=Object.prototype.toString.call(s):(this._noBody=!0,this._bodyText=""),this.headers.get("content-type")||(typeof s=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):i.searchParams&&URLSearchParams.prototype.isPrototypeOf(s)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},i.blob&&(this.blob=function(){var s=q(this);if(s)return s;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(){if(this._bodyArrayBuffer){var s=q(this);return s||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}else{if(i.blob)return this.blob().then(ir);throw new Error("could not read as ArrayBuffer")}},this.text=function(){var s=q(this);if(s)return s;if(this._bodyBlob)return U(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(Br(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},i.formData&&(this.formData=function(){return this.text().then(Vr)}),this.json=function(){return this.text().then(JSON.parse)},this}var zr=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function Wr(s){var a=s.toUpperCase();return zr.indexOf(a)>-1?a:s}function j(s,a){if(!(this instanceof j))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');a=a||{};var m=a.body;if(s instanceof j){if(s.bodyUsed)throw new TypeError("Already read");this.url=s.url,this.credentials=s.credentials,a.headers||(this.headers=new P(s.headers)),this.method=s.method,this.mode=s.mode,this.signal=s.signal,!m&&s._bodyInit!=null&&(m=s._bodyInit,s.bodyUsed=!0)}else this.url=String(s);if(this.credentials=a.credentials||this.credentials||"same-origin",(a.headers||!this.headers)&&(this.headers=new P(a.headers)),this.method=Wr(a.method||this.method||"GET"),this.mode=a.mode||this.mode||null,this.signal=a.signal||this.signal||(function(){if("AbortController"in n){var g=new AbortController;return g.signal}})(),this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&m)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(m),(this.method==="GET"||this.method==="HEAD")&&(a.cache==="no-store"||a.cache==="no-cache")){var v=/([?&])_=[^&]*/;if(v.test(this.url))this.url=this.url.replace(v,"$1_="+new Date().getTime());else{var A=/\?/;this.url+=(A.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}j.prototype.clone=function(){return new j(this,{body:this._bodyInit})};function Vr(s){var a=new FormData;return s.trim().split("&").forEach(function(m){if(m){var v=m.split("="),A=v.shift().replace(/\+/g," "),g=v.join("=").replace(/\+/g," ");a.append(decodeURIComponent(A),decodeURIComponent(g))}}),a}function Yr(s){var a=new P,m=s.replace(/\r?\n[\t ]+/g," ");return m.split("\r").map(function(v){return v.indexOf(`
|
|
2
|
+
`)===0?v.substr(1,v.length):v}).forEach(function(v){var A=v.split(":"),g=A.shift().trim();if(g){var ce=A.join(":").trim();try{a.append(g,ce)}catch(Ie){console.warn("Response "+Ie.message)}}}),a}pr.call(j.prototype);function w(s,a){if(!(this instanceof w))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(a||(a={}),this.type="default",this.status=a.status===void 0?200:a.status,this.status<200||this.status>599)throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=this.status>=200&&this.status<300,this.statusText=a.statusText===void 0?"":""+a.statusText,this.headers=new P(a.headers),this.url=a.url||"",this._initBody(s)}pr.call(w.prototype),w.prototype.clone=function(){return new w(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new P(this.headers),url:this.url})},w.error=function(){var s=new w(null,{status:200,statusText:""});return s.ok=!1,s.status=0,s.type="error",s};var Kr=[301,302,303,307,308];w.redirect=function(s,a){if(Kr.indexOf(a)===-1)throw new RangeError("Invalid status code");return new w(null,{status:a,headers:{location:s}})},r.DOMException=n.DOMException;try{new r.DOMException}catch{r.DOMException=function(a,m){this.message=a,this.name=m;var v=Error(a);this.stack=v.stack},r.DOMException.prototype=Object.create(Error.prototype),r.DOMException.prototype.constructor=r.DOMException}function De(s,a){return new Promise(function(m,v){var A=new j(s,a);if(A.signal&&A.signal.aborted)return v(new r.DOMException("Aborted","AbortError"));var g=new XMLHttpRequest;function ce(){g.abort()}g.onload=function(){var I={statusText:g.statusText,headers:Yr(g.getAllResponseHeaders()||"")};A.url.indexOf("file://")===0&&(g.status<200||g.status>599)?I.status=200:I.status=g.status,I.url="responseURL"in g?g.responseURL:I.headers.get("X-Request-URL");var $="response"in g?g.response:g.responseText;setTimeout(function(){m(new w($,I))},0)},g.onerror=function(){setTimeout(function(){v(new TypeError("Network request failed"))},0)},g.ontimeout=function(){setTimeout(function(){v(new TypeError("Network request timed out"))},0)},g.onabort=function(){setTimeout(function(){v(new r.DOMException("Aborted","AbortError"))},0)};function Ie(I){try{return I===""&&n.location.href?n.location.href:I}catch{return I}}if(g.open(A.method,Ie(A.url),!0),A.credentials==="include"?g.withCredentials=!0:A.credentials==="omit"&&(g.withCredentials=!1),"responseType"in g&&(i.blob?g.responseType="blob":i.arrayBuffer&&(g.responseType="arraybuffer")),a&&typeof a.headers=="object"&&!(a.headers instanceof P||n.Headers&&a.headers instanceof n.Headers)){var cr=[];Object.getOwnPropertyNames(a.headers).forEach(function(I){cr.push(R(I)),g.setRequestHeader(I,L(a.headers[I]))}),A.headers.forEach(function(I,$){cr.indexOf($)===-1&&g.setRequestHeader($,I)})}else A.headers.forEach(function(I,$){g.setRequestHeader($,I)});A.signal&&(A.signal.addEventListener("abort",ce),g.onreadystatechange=function(){g.readyState===4&&A.signal.removeEventListener("abort",ce)}),g.send(typeof A._bodyInit>"u"?null:A._bodyInit)})}return De.polyfill=!0,n.fetch||(n.fetch=De,n.Headers=P,n.Request=j,n.Response=w),r.Headers=P,r.Request=j,r.Response=w,r.fetch=De,r})({})})(ve);ve.fetch.ponyfill=!0;delete ve.fetch.polyfill;var K=Se.fetch?Se:ve;J=K.fetch;J.default=K.fetch;J.fetch=K.fetch;J.Headers=K.Headers;J.Request=K.Request;J.Response=K.Response;Ar.exports=J});var la={};c(la,{auth:()=>at,authorization:()=>ut,compute:()=>nr,errors:()=>Be,flows:()=>Ut,gcs:()=>Zt,groups:()=>jt,info:()=>ke,logger:()=>we,request:()=>o,search:()=>wt,timers:()=>rr,transfer:()=>Dt,webapp:()=>sr});var ke={};c(ke,{CLIENT_INFO:()=>gr,VERSION:()=>_r,addClientInfo:()=>po,getClientInfo:()=>fr,getClientInfoRequestHeaders:()=>Me});var dr="X-Globus-Client-Info",so=!0;function lr(){return so}var io=";",ao=",";function mr(e){return(Array.isArray(e)?e:[e]).map(r=>Object.entries(r).map(([n,i])=>`${n}=${i}`).join(ao)).join(io)}var hr="6.2.0";var _r=hr,gr={product:"javascript-sdk",version:_r},Ce=[gr];function po(e){Ce=Ce.concat(e)}function fr(){return mr(Ce)}function Me(){return lr()?{[dr]:fr()}:{}}var we={};c(we,{log:()=>x,setLogLevel:()=>uo,setLogger:()=>co});var Ne=["debug","info","warn","error"],de,yr=Ne.indexOf("error");function co(e){de=e}function uo(e){yr=Ne.indexOf(e)}function x(e,...t){if(!de||Ne.indexOf(e)<yr)return;(de[e]??de.log)(...t)}var ut={};c(ut,{AuthorizationManager:()=>ae,create:()=>cn});var H=class extends Error{};H.prototype.name="InvalidTokenError";function lo(e){return decodeURIComponent(atob(e).replace(/(.)/g,(t,r)=>{let n=r.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n}))}function mo(e){let t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw new Error("base64 string is not of the correct length")}try{return lo(t)}catch{return atob(t)}}function Sr(e,t){if(typeof e!="string")throw new H("Invalid token specified: must be a string");t||(t={});let r=t.header===!0?0:1,n=e.split(".")[r];if(typeof n!="string")throw new H(`Invalid token specified: missing part #${r+1}`);let i;try{i=mo(n)}catch(l){throw new H(`Invalid token specified: invalid base64 for part #${r+1} (${l.message})`)}try{return JSON.parse(i)}catch(l){throw new H(`Invalid token specified: invalid json for part #${r+1} (${l.message})`)}}var at={};c(at,{CONFIG:()=>it,developers:()=>et,getAuthorizationEndpoint:()=>ne,getTokenEndpoint:()=>nn,identities:()=>rt,isGlobusAuthTokenResponse:()=>X,isRefreshToken:()=>re,isToken:()=>Q,oauth2:()=>F,utils:()=>st});var ye={};c(ye,{HOSTS:()=>Ue,ID:()=>d,RESOURCE_SERVERS:()=>f,SCOPES:()=>h});var le={};c(le,{HOSTS:()=>Le,ID:()=>p,SCOPES:()=>u});var p="TRANSFER",u={ALL:"urn:globus:auth:scope:transfer.api.globus.org:all"},Le={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"};var me={};c(me,{HOSTS:()=>qe,ID:()=>T,SCOPES:()=>C});var T="FLOWS",qe={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"},C={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"};var he={};c(he,{HOSTS:()=>Fe,ID:()=>E});var E="TIMERS",Fe={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"};var _e={};c(_e,{HOSTS:()=>je,ID:()=>b,SCOPES:()=>ho});var b="GROUPS",je={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"},ho={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"};var ge={};c(ge,{HOSTS:()=>Ge,ID:()=>O,SCOPES:()=>D});var O="SEARCH",Ge={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"},D={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"};var fe={};c(fe,{HOSTS:()=>Je,ID:()=>k,SCOPES:()=>B});var k="COMPUTE",Je={sandbox:"compute.api.sandbox.globuscs.info",production:"compute.api.globus.org",staging:"compute.api.staging.globuscs.info",integration:"compute.api.integration.globuscs.info",test:"compute.api.test.globuscs.info",preview:"compute.api.preview.globus.org"},B={ALL:"https://auth.globus.org/scopes/facd7ccc-c5f4-42aa-916b-a0e270e2c2a9/all"};var d="AUTH",Ue={integration:"auth.integration.globuscs.info",sandbox:"auth.sandbox.globuscs.info",production:"auth.globus.org",test:"auth.test.globuscs.info",staging:"auth.staging.globuscs.info",preview:"auth.preview.globus.org"},h={MANAGE_PROJECTS:"urn:globus:auth:scope:auth.globus.org:manage_projects",VIEW_IDENTITIES:"urn:globus:auth:scope:auth.globus.org:view_identities"},f={[d]:"auth.globus.org",[p]:"transfer.api.globus.org",[T]:"flows.globus.org",[b]:"groups.api.globus.org",[O]:"search.api.globus.org",[E]:"524230d7-ea86-4a52-8312-86065a9e0417",[k]:"funcx_service"};var Be={};c(Be,{EnvironmentConfigurationError:()=>Z,isAuthorizationRequirementsError:()=>ee,isConsentRequiredError:()=>$e,isErrorWellFormed:()=>vr,toAuthorizationQueryParams:()=>He});var Z=class extends Error{name="EnvironmentConfigurationError";constructor(t,r){super(),this.message=`Invalid configuration value provided for ${t} (${r}).`}};function vr(e){return typeof e=="object"&&e!==null&&"code"in e&&"message"in e}function $e(e){return vr(e)&&e.code==="ConsentRequired"&&"required_scopes"in e&&Array.isArray(e.required_scopes)}var _o=["required_scopes"];function He(e){let t={scope:e.authorization_parameters.required_scopes?.join(" "),...e.authorization_parameters};return Object.entries(t).reduce((r,[n,i])=>{if(_o.includes(n)||i===void 0||i===null)return r;let l=i;return Array.isArray(l)?l=l.join(","):typeof i=="boolean"&&(l=l?"true":"false"),{...r,[n]:l}},{})}function ee(e){return typeof e=="object"&&e!==null&&"authorization_parameters"in e&&typeof e.authorization_parameters=="object"&&e.authorization_parameters!==null}function go(){return typeof window<"u"?window:process}function fo(e){return typeof window==typeof e}function ze(e,t){let r=go(),n;return fo(r)?n=r:n=r.env,e in n?n[e]:t}var Pr={PRODUCTION:"production",PREVIEW:"preview",STAGING:"staging",SANDBOX:"sandbox",INTEGRATION:"integration",TEST:"test"},G={[d]:d,[p]:p,[T]:T,[b]:b,[O]:O,[E]:E,[k]:k},yo={[d]:Ue,[p]:Le,[T]:qe,[b]:je,[O]:Ge,[E]:Fe,[k]:Je};function We(e){let t=ze("GLOBUS_SDK_OPTIONS",{});return typeof t=="string"&&(t=JSON.parse(t)),{...t,...e,fetch:{...t?.fetch,...e?.fetch,options:{...t?.fetch?.options,...e?.fetch?.options,headers:{...t?.fetch?.options?.headers,...e?.fetch?.options?.headers}}}}}function Y(){let e=We(),t=ze("GLOBUS_SDK_ENVIRONMENT",e?.environment??Pr.PRODUCTION);if(e?.environment&&t!==e.environment&&x("debug","GLOBUS_SDK_ENVIRONMENT and GLOBUS_SDK_OPTIONS.environment are set to different values. GLOBUS_SDK_ENVIRONMENT will take precedence"),!t||!Object.values(Pr).includes(t))throw new Z("GLOBUS_SDK_ENVIRONMENT",t);return t}function So(e,t=Y()){return yo[e][t]}function Or(e,t=Y()){let r=So(e,t);return ze(`GLOBUS_SDK_SERVICE_URL_${e}`,r?`https://${r}`:void 0)}function vo(e){let t=new URLSearchParams;return Array.from(Object.entries(e)).forEach(([r,n])=>{Array.isArray(n)?t.set(r,n.join(",")):n!==void 0&&t.set(r,String(n))}),t.toString()}function Po(e,t="",r=Y()){let n=Or(e,r);return new URL(t,n)}function te(e,t,r,n){let i;return typeof e=="object"?i=new URL(t,e.host):i=Po(e,t,n?.environment),r&&r.search&&(i.search=vo(r.search)),i.toString()}var et={};c(et,{clients:()=>Ze,policies:()=>Ve,projects:()=>Ye,scopes:()=>Ke});var Ve={};c(Ve,{create:()=>To,get:()=>Oo,getAll:()=>Ao,remove:()=>Ro,update:()=>Eo});var Er=oo(Tr());async function o(e,t,r){let n=We(r),i=n?.fetch?.options||{},l={...Me(),...t?.headers,...i.headers},y=t?.manager||n?.manager,S;if(e.resource_server&&y&&(S=y.tokens.getByResourceServer(e.resource_server),S&&(l.Authorization=`Bearer ${S.access_token}`)),e.scope&&y&&(typeof e.service=="string"||"endpoint_id"in e.service)){let U=typeof e.service=="string"?f[e.service]:e.service.endpoint_id;S=y.tokens.getByResourceServer(U),S&&(l.Authorization=`Bearer ${S.access_token}`)}let R=t?.body;!R&&t?.payload&&(R=JSON.stringify(t.payload)),!l?.["Content-Type"]&&R&&(l["Content-Type"]="application/json");let L=te(e.service,e.path,{search:t?.query},n),N={method:e.method,body:R,...i,headers:l},P=Er.default;if(i?.__callable&&(P=i.__callable.bind(this),delete N.__callable),e.preventRetry||!y||!S||!re(S))return P(L,N);let q=await P(L,N);if(q.ok)return q;let V;try{V=ee(await q.clone().json())}catch{V=!1}if(q.status===401&&!V){let U=await y.refreshToken(S);return U?P(L,{...N,headers:{...N.headers,Authorization:`Bearer ${U.access_token}`}}):q}return q}var Oo=function(e,t={},r){return o({service:d,scope:h.MANAGE_PROJECTS,path:`/v2/api/policies/${e}`},t,r)},Ao=function(e={},t){return o({service:d,scope:h.MANAGE_PROJECTS,path:"/v2/api/policies"},e,t)},To=function(e,t){return o({service:d,scope:h.MANAGE_PROJECTS,path:"/v2/api/policies",method:"POST"},{...e,payload:{policy:e?.payload}},t)},Eo=function(e,t,r){return o({service:d,scope:h.MANAGE_PROJECTS,path:`/v2/api/policies/${e}`,method:"PUT"},{...t,payload:{policy:t?.payload}},r)},Ro=function(e,t,r){return o({service:d,scope:h.MANAGE_PROJECTS,path:`/v2/api/policies/${e}`,method:"DELETE"},t,r)};var Ye={};c(Ye,{create:()=>Do,get:()=>bo,getAll:()=>xo,remove:()=>Co,update:()=>Io});var bo=function(e,t={},r){return o({service:d,scope:h.MANAGE_PROJECTS,path:`/v2/api/projects/${e}`,method:"GET"},t,r)},xo=function(e={},t){return o({service:d,scope:h.MANAGE_PROJECTS,path:"/v2/api/projects",method:"GET"},e,t)},Do=function(e,t){return o({service:d,scope:h.MANAGE_PROJECTS,path:"/v2/api/projects",method:"POST"},{...e,payload:{project:e?.payload}},t)},Io=function(e,t,r){return o({service:d,scope:h.MANAGE_PROJECTS,path:`/v2/api/projects/${e}`,method:"PUT"},{...t,payload:{project:t?.payload}},r)},Co=function(e,t,r){return o({service:d,scope:h.MANAGE_PROJECTS,path:`/v2/api/projects/${e}`,method:"DELETE"},t,r)};var Ke={};c(Ke,{get:()=>Mo,getAll:()=>ko,remove:()=>wo,update:()=>No});var Mo=function(e,t={},r){return o({service:d,scope:h.MANAGE_PROJECTS,path:`/v2/api/scopes/${e}`},t,r)},ko=function(e={},t){return o({service:d,scope:h.MANAGE_PROJECTS,path:"/v2/api/scopes"},e,t)},No=function(e,t,r){return o({service:d,scope:h.MANAGE_PROJECTS,path:`/v2/api/scopes/${e}`,method:"PUT"},{...t,payload:{scope:t?.payload}},r)},wo=function(e,t,r){return o({service:d,scope:h.MANAGE_PROJECTS,path:`/v2/api/scopes/${e}`,method:"DELETE"},t,r)};var Ze={};c(Ze,{create:()=>$o,createNativeApp:()=>Ho,credentials:()=>Qe,get:()=>Jo,getAll:()=>Uo,remove:()=>zo,scopes:()=>Xe,update:()=>Bo});var Qe={};c(Qe,{create:()=>qo,getAll:()=>Lo,remove:()=>Fo});var Lo=function(e,t={},r){return o({service:d,scope:h.MANAGE_PROJECTS,path:`/v2/api/clients/${e}/credentials`,method:"GET"},t,r)},qo=function(e,t,r){return o({service:d,scope:h.MANAGE_PROJECTS,path:`/v2/api/clients/${e}/credentials`,method:"POST"},{...t,payload:{credential:t?.payload}},r)},Fo=function({client_id:e,credential_id:t},r,n){return o({service:d,scope:h.MANAGE_PROJECTS,path:`/v2/api/clients/${e}/credentials/${t}`,method:"DELETE"},r,n)};var Xe={};c(Xe,{create:()=>Go,get:()=>jo});var jo=function({client_id:e,scope_id:t},r={},n){return o({service:d,scope:h.MANAGE_PROJECTS,path:`/v2/api/clients/${e}/scopes/${t}`},r,n)},Go=function(e,t,r){return o({service:d,scope:h.MANAGE_PROJECTS,path:`/v2/api/clients/${e}/scopes`,method:"POST"},{...t,payload:{scope:t?.payload}},r)};var Jo=function(e,t={},r){return o({service:d,scope:h.MANAGE_PROJECTS,path:`/v2/api/clients/${e}`,method:"GET"},t,r)},Uo=function(e={},t){return o({service:d,scope:h.MANAGE_PROJECTS,path:"/v2/api/clients",method:"GET"},e,t)},$o=function(e,t){return o({service:d,scope:h.MANAGE_PROJECTS,path:"/v2/api/clients",method:"POST"},{...e,payload:{client:e?.payload}},t)},Ho=function(e,t){return o({service:d,path:"/v2/api/clients",method:"POST"},{...e,payload:{client:e?.payload}},t)},Bo=function(e,t,r){return o({service:d,scope:h.MANAGE_PROJECTS,path:`/v2/api/clients/${e}`,method:"PUT"},{...t,payload:{client:t?.payload}},r)},zo=function(e,t,r){return o({service:d,scope:h.MANAGE_PROJECTS,path:`/v2/api/clients/${e}`,method:"DELETE"},t,r)};var rt={};c(rt,{consents:()=>tt,get:()=>Vo,getAll:()=>Yo});var tt={};c(tt,{getAll:()=>Wo});var Wo=function(e,t={},r){return o({service:d,scope:h.VIEW_IDENTITIES,path:`/v2/api/identities/${e}/consents`},t,r)};var Vo=function(e,t={},r){return o({service:d,scope:h.VIEW_IDENTITIES,path:`/v2/api/identities/${e}`},t,r)},Yo=function(e={},t){return o({service:d,scope:h.VIEW_IDENTITIES,path:"/v2/api/identities"},e,t)};var F={};c(F,{token:()=>ot,userinfo:()=>rn});var ot={};c(ot,{exchange:()=>Qo,introspect:()=>Xo,refresh:()=>en,revoke:()=>Zo,token:()=>Rr,validate:()=>tn});function Ko(e){return new URLSearchParams(e)}function oe(e){return{...e,body:e.payload?Ko(e.payload):void 0,headers:{...e?.headers||{},Accept:"application/json","Content-Type":"application/x-www-form-urlencoded; charset=UTF-8"}}}var Rr=function(e={},t){return o({service:d,scope:void 0,path:"/v2/oauth2/token",method:"POST",preventRetry:!0},oe(e),t)},Qo=Rr,Xo=function(e,t){if(!e?.payload)throw new Error("'payload' is required for introspect");return o({service:d,scope:void 0,path:"/v2/oauth2/token/introspect",method:"POST",preventRetry:!0},oe(e),t)},Zo=function(e,t){if(!e?.payload)throw new Error("'payload' is required for revoke");return o({service:d,scope:void 0,path:"/v2/oauth2/token/revoke",method:"POST",preventRetry:!0},oe(e),t)},en=function(e,t){if(!e?.payload)throw new Error("'payload' is required for revoke");return o({service:d,scope:void 0,path:"/v2/oauth2/token",method:"POST",preventRetry:!0},oe(e),t)},tn=function(e,t){if(!e?.payload)throw new Error("'payload' is required for validate");return o({service:d,scope:void 0,path:"/v2/oauth2/token/validate",method:"POST",preventRetry:!0},oe(e),t)};var rn=function(e,t){return o({service:d,scope:void 0,path:"/v2/oauth2/userinfo",method:"GET"},e,t)};var st={};c(st,{hasConsentForScope:()=>on,splitScopeString:()=>nt,toScopeTree:()=>xr});function nt(e){let t=[],r="",n=0;return e.split("").forEach((i,l)=>{r+=i,i==="["&&(n+=1),i==="]"&&(n-=1),(i===" "&&n===0||l===e.length-1&&r)&&(t.push(r.trim()),r="")}),t}function br(e){let t=e,r=t.startsWith("*");r&&(t=t.replace(/^\*\s*/,""));let n=[],i=t.indexOf("[");if(i===-1)return{scope:t,atomically_revocable:r,children:[]};let l=t.slice(0,i),y=t.slice(i+1,-1);return n=nt(y).map(br),{scope:l,atomically_revocable:r,children:n}}function xr(e){return nt(e).map(br)}function on(e,t){let r=xr(t);function n(i,l){let y=e.find(S=>S.scope_name===i.scope&&(l?S.dependency_path.join(",")===[...l,S.id].join(","):S.dependency_path.length===1));return y?i.children.length?i.children.every(S=>n(S,l?[...l,y.id]:[y.id])):y.status==="approved":!1}return r.every(i=>n(i))}var it=ye;function ne(){return te(d,"/v2/oauth2/authorize")}function nn(){return te(d,"/v2/oauth2/token")}function Q(e){return typeof e=="object"&&e!==null&&"access_token"in e}function re(e){return Q(e)&&e!==null&&"refresh_token"in e}function X(e){return Q(e)&&e!==null&&"resource_server"in e}var se=class{constructor(t){this.name=t}#e=[];addListener(t){return this.#e.push(t),()=>this.removeListener(t)}removeListener(t){this.#e=this.#e.filter(r=>r!==t)}clearListeners(){this.#e=[]}async dispatch(t){await Promise.all(this.#e.map(r=>r(t)))}};function Oe(){return"crypto"in globalThis}function ct(){return"webcrypto"in globalThis.crypto?globalThis.crypto.webcrypto:globalThis.crypto}var sn=e=>btoa(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"");async function an(e){let t=await ct().subtle.digest("SHA-256",new TextEncoder().encode(e));return String.fromCharCode(...new Uint8Array(t))}var pt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",Dr=`${pt}-._~`;function Ae(){return Array.from(ct().getRandomValues(new Uint8Array(43))).map(e=>Dr[e%Dr.length]).join("")}async function Te(e){let t=await an(e);return sn(t)}function Ee(){return Array.from(ct().getRandomValues(new Uint8Array(16))).map(e=>pt[e%pt.length]).join("")}var Pe={PKCE_STATE:"pkce_state",PKCE_CODE_VERIFIER:"pkce_code_verifier"},M={getKey(e){return e==="state"?Pe.PKCE_STATE:Pe.PKCE_CODE_VERIFIER},get:e=>sessionStorage.getItem(M.getKey(e)),set:(e,t)=>sessionStorage.setItem(M.getKey(e),t),reset:()=>{sessionStorage.removeItem(Pe.PKCE_STATE),sessionStorage.removeItem(Pe.PKCE_CODE_VERIFIER)}};var Re=class e{#e;constructor(t){if(this.#e=t,e.supported===!1)throw new Error("RedirectTransport is not supported in this environment.")}static supported=Oe();async send(){let t=Ae(),r=await Te(t),n=this.#e.params?.state??Ee();M.set("code_verifier",t),M.set("state",n);let i={response_type:"code",client_id:this.#e.client,scope:this.#e.scopes||"",redirect_uri:this.#e.redirect,state:n,code_challenge:r,code_challenge_method:"S256",...this.#e.params||{}},l=new URL(ne());l.search=new URLSearchParams(i).toString(),window.location.assign(l.toString())}async getToken(t={shouldReplace:!0,includeConsentedScopes:!1}){let r=new URL(window.location.href),n=new URLSearchParams(r.search);if(n.get("error"))throw new Error(n.get("error_description")||"An error occurred during the authorization process.");let i=n.get("code");if(!i)return;let l=M.get("state"),y=M.get("code_verifier");if(M.reset(),n.get("state")!==l)throw new Error('Invalid State. The received "state" parameter does not match the expected state.');if(!y)throw new Error("Invalid Code Verifier");let S={code:i,client_id:this.#e.client,code_verifier:y,redirect_uri:this.#e.redirect,grant_type:"authorization_code"},R=await(await F.token.exchange({query:t.includeConsentedScopes?{include_consented_scopes:!0}:void 0,payload:S})).json();return t.shouldReplace&&(n.delete("code"),n.delete("state"),r.search=n.toString(),window.location.replace(r)),R}};var be=class{#e;constructor(t){this.#e=t.manager}#r(t){let r=this.#e.storage.getItem(t)||"null",n=null;try{let i=JSON.parse(r);Q(i)&&(n=i)}catch{}return n}#t(t){let r=it.RESOURCE_SERVERS?.[t];return this.getByResourceServer(r)}getByResourceServer(t){return this.#r(`${this.#e.storageKeyPrefix}${t}`)}get auth(){return this.#t(G.AUTH)}get transfer(){return this.#t(G.TRANSFER)}get flows(){return this.#t(G.FLOWS)}get groups(){return this.#t(G.GROUPS)}get search(){return this.#t(G.SEARCH)}get timer(){return this.#t(G.TIMERS)}get compute(){return this.#t(G.COMPUTE)}gcs(t){return this.getByResourceServer(t)}getAll(){return Object.keys(this.#e.storage).reduce((r,n)=>(n.startsWith(this.#e.storageKeyPrefix)&&r.push(this.#r(n)),r),[]).filter(Q)}add(t){let r=Date.now(),n=r+t.expires_in*1e3;this.#e.storage.setItem(`${this.#e.storageKeyPrefix}${t.resource_server}`,JSON.stringify({...t,__metadata:{created:r,expires:n}})),"other_tokens"in t&&t.other_tokens?.forEach(i=>{this.add(i)})}remove(t){this.#e.storage.removeItem(`${this.#e.storageKeyPrefix}${t.resource_server}`)}static isTokenExpired(t,r=0){if(!(!t||!t.__metadata||typeof t.__metadata.expires!="number"))return Date.now()+r>=t.__metadata.expires}};var ie=class{#e={};getItem(t){return this.#e[t]!==void 0?this.#e[t]:null}setItem(t,r){this.#e[t]=r}removeItem(t){delete this.#e[t]}key(t){return Object.keys(this.#e)[t]}clear(){this.#e={}}get length(){return Object.keys(this.#e).length}};var Ir="globus-sdk",xe=class e{#e;#r=null;constructor(t){if(this.#e=t,e.supported===!1)throw new Error("PopupTransport is not supported in this environment.")}static supported=Oe()&&"window"in globalThis&&typeof globalThis.window.open=="function";async send(){let t=Ae(),r=await Te(t),n=this.#e.params?.state??Ee();M.set("code_verifier",t),M.set("state",n);let i={response_type:"code",client_id:this.#e.client,scope:this.#e.scopes||"",redirect_uri:this.#e.redirect,state:n,code_challenge:r,code_challenge_method:"S256",...this.#e.params||{}},l=new URL(ne());l.search=new URLSearchParams(i).toString();let y=new Promise(S=>{window.addEventListener("message",async R=>{let{data:L}=R;if(R.origin!==window.location.origin||L?.source!==Ir)return;this.#r?.close();let N=await this.#t(L.url);S(N)},!1)});if(this.#r=window.open(l.toString(),"_blank","width=800,height=600"),!this.#r)throw new Error("Unable to open window for PopupTransport.");return this.#r.focus(),y}async#t(t){let r=new URL(t),n=new URLSearchParams(r.search);if(n.get("error"))throw new Error(n.get("error_description")||"An error occurred during the authorization process.");let i=n.get("code");if(!i)return;let l=M.get("state"),y=M.get("code_verifier");if(M.reset(),n.get("state")!==l)throw new Error('Invalid State. The received "state" parameter does not match the expected state.');if(!y)throw new Error("Invalid Code Verifier");let S={code:i,client_id:this.#e.client,code_verifier:y,redirect_uri:this.#e.redirect,grant_type:"authorization_code"};return await(await F.token.exchange({payload:S})).json()}getToken(){window.opener&&window.opener.postMessage({source:Ir,url:window.location.href},window.location.origin)}};var pn={redirect:Re,popup:xe},Cr={useRefreshTokens:!1,defaultScopes:"openid profile email",transport:"redirect"},Mr={execute:!0,additionalParams:void 0},ae=class{#e;configuration;storage;#r=!1;get authenticated(){return this.#r}set authenticated(t){t!==this.#r&&(this.#r=t,this.#s())}tokens;events={authenticated:new se("authenticated"),revoke:new se("revoke")};constructor(t){if(!t.client)throw new Error("You must provide a `client` for your application.");let r=t.defaultScopes===!1?"":t.defaultScopes??Cr.defaultScopes;this.configuration={...Cr,...t,scopes:[t.scopes?t.scopes:"",r].filter(n=>n.length).join(" ")},this.storage=t.storage||new ie,this.configuration.events&&Object.entries(this.configuration.events).forEach(([n,i])=>{n in this.events&&this.events[n].addListener(i)}),this.tokens=new be({manager:this}),this.#t()}get storageKeyPrefix(){return`${this.configuration.client}:`}get user(){let t=this.getGlobusAuthToken();return t&&t.id_token?Sr(t.id_token):null}async refreshTokens(){x("debug","AuthorizationManager.refreshTokens");let t=await Promise.allSettled(this.tokens.getAll().map(r=>re(r)?this.refreshToken(r):Promise.resolve(null)));return this.#t(),t}async refreshToken(t){x("debug",`AuthorizationManager.refreshToken | resource_server=${t.resource_server}`);try{let r=await(await F.token.refresh({payload:{client_id:this.configuration.client,refresh_token:t.refresh_token,grant_type:"refresh_token"}})).json();if(X(r))return this.addTokenResponse(r),r}catch{x("error",`AuthorizationManager.refreshToken | resource_server=${t.resource_server}`)}return null}hasGlobusAuthToken(){return this.getGlobusAuthToken()!==null}getGlobusAuthToken(){let t=this.storage.getItem(`${this.storageKeyPrefix}${f.AUTH}`);return t?JSON.parse(t):null}#t(){x("debug","AuthorizationManager.#checkAuthorizationState"),this.hasGlobusAuthToken()&&(this.authenticated=!0)}async#s(){let t=this.authenticated,r=this.getGlobusAuthToken()??void 0;await this.events.authenticated.dispatch({isAuthenticated:t,token:r})}reset(){Object.keys(this.storage).forEach(t=>{t.startsWith(this.storageKeyPrefix)&&this.storage.removeItem(t)}),this.authenticated=!1}#n(t){return`${t}${this.configuration.useRefreshTokens?" offline_access":""}`}#o(t){let{scopes:r,...n}=t??{},i=pn[this.configuration.transport||"redirect"],l=this.#n(r??(this.configuration.scopes||""));return this.storage instanceof ie&&(l=[...new Set(l.split(" ").concat((this.configuration?.scopes||"").split(" ")))].join(" ")),new i({client:this.configuration.client,redirect:this.configuration.redirect,scopes:l,...n,params:{...n?.params}})}async login(t={additionalParams:{}}){x("debug","AuthorizationManager.login"),this.reset();let n=await this.#o({params:t?.additionalParams}).send();return X(n)&&this.addTokenResponse(n),n}async prompt(t){x("debug","AuthorizationManager.prompt");let n=await this.#o(t).send();return X(n)&&this.addTokenResponse(n),n}async handleCodeRedirect(t={shouldReplace:!0,additionalParams:{}}){x("debug","AuthorizationManager.handleCodeRedirect");let r=await this.#o({params:t?.additionalParams}).getToken({shouldReplace:t?.shouldReplace,includeConsentedScopes:t?.includeConsentedScopes});return X(r)&&(x("debug",`AuthorizationManager.handleCodeRedirect | response=${JSON.stringify(r)}`),this.addTokenResponse(r)),r}async handleErrorResponse(t,r){let n=typeof r=="boolean"?{...Mr,execute:r}:{...Mr,...r};x("debug",`AuthorizationManager.handleErrorResponse | response=${JSON.stringify(t)} execute=${n.execute}`);let i=async()=>{};return ee(t)&&(x("debug","AuthorizationManager.handleErrorResponse | error=AuthorizationRequirementsError"),i=async()=>{await this.handleAuthorizationRequirementsError(t,{additionalParams:n.additionalParams})}),$e(t)&&(x("debug","AuthorizationManager.handleErrorResponse | error=ConsentRequiredError"),i=async()=>{await this.handleConsentRequiredError(t,{additionalParams:n.additionalParams})}),"code"in t&&t.code==="AuthenticationFailed"&&(x("debug","AuthorizationManager.handleErrorResponse | error=AuthenticationFailed"),i=async()=>{await this.revoke()}),n.execute===!0?await i():i}async handleAuthorizationRequirementsError(t,r){this.#e=this.#o({params:{prompt:"login",...He(t),...r?.additionalParams}}),await this.#e.send()}async handleConsentRequiredError(t,r){this.#e=this.#o({scopes:this.#n(t.required_scopes.join(" ")),params:{...r?.additionalParams}}),await this.#e.send()}addTokenResponse=t=>{this.tokens.add(t),this.#t()};async revoke(){x("debug","AuthorizationManager.revoke");let t=Promise.all(this.tokens.getAll().map(this.#i.bind(this)));this.reset(),await t,await this.events.revoke.dispatch()}#i(t){return x("debug",`AuthorizationManager.revokeToken | resource_server=${t.resource_server}`),F.token.revoke({payload:{client_id:this.configuration.client,token:t.access_token}})}};function cn(e){return new ae(e)}var Dt={};c(Dt,{CONFIG:()=>Os,access:()=>_t,collectionBookmarks:()=>ft,endpoint:()=>mt,endpointManager:()=>At,endpointSearch:()=>kr,fileOperations:()=>dt,roles:()=>gt,streamAccessPoint:()=>St,task:()=>ht,taskSubmission:()=>lt,tunnel:()=>yt,utils:()=>xt});var kr=function(e,t){let r={...e,query:e?.query};return o({service:p,scope:u.ALL,path:"/v0.10/endpoint_search"},r,t)};var dt={};c(dt,{ls:()=>un,mkdir:()=>dn,rename:()=>ln,stat:()=>hn,symlink:()=>mn});function z(e){return e==="GET"?{}:{"Content-Type":"application/json"}}var un=function(e,t,r){return o({service:p,scope:u.ALL,path:`/v0.10/operation/endpoint/${e}/ls`},t,r)},dn=function(e,t,r){let n={payload:{DATA_TYPE:"mkdir",...t?.payload},headers:{...z("POST"),...t?.headers}};return o({service:p,scope:u.ALL,path:`/v0.10/operation/endpoint/${e}/mkdir`,method:"POST"},n,r)},ln=function(e,t,r){let n={payload:{DATA_TYPE:"rename",...t?.payload},headers:{...z("POST"),...t?.headers}};return o({service:p,scope:u.ALL,path:`/v0.10/operation/endpoint/${e}/rename`,method:"POST"},n,r)},mn=function(e,t,r){let n={payload:{DATA_TYPE:"symlink",...t?.payload},headers:{...z("POST"),...t?.headers}};return o({service:p,scope:u.ALL,path:`/v0.10/operation/endpoint/${e}/symlink`,method:"POST"},n,r)},hn=function(e,t,r){return o({service:p,scope:u.ALL,path:`/v0.10/operation/endpoint/${e}/stat`},t,r)};var lt={};c(lt,{submissionId:()=>fn,submitDelete:()=>_n,submitTransfer:()=>gn});var _n=function(e,t){let r={payload:{DATA_TYPE:"delete",...e?.payload},headers:{...z("POST"),...e?.headers}};return o({service:p,scope:u.ALL,path:"/v0.10/delete",method:"POST"},r,t)},gn=function(e,t){let r={payload:{DATA_TYPE:"transfer",...e?.payload},headers:{...z("POST"),...e?.headers}};return o({service:p,scope:u.ALL,path:"/v0.10/transfer",method:"POST"},r,t)},fn=function(e,t){return o({service:p,scope:u.ALL,path:"/v0.10/submission_id"},e,t)};var mt={};c(mt,{create:()=>Sn,get:()=>yn,remove:()=>Pn,update:()=>vn});var yn=function(e,t,r){return o({service:p,scope:u.ALL,path:`/v0.10/endpoint/${e}`},t,r)},Sn=function(e,t){return e?.payload&&Object.assign(e.payload,{DATA_TYPE:"shared_endpoint"}),o({service:p,scope:u.ALL,path:"/v0.10/shared_endpoint",method:"POST"},e,t)},vn=function(e,t,r){return t?.payload&&Object.assign(t.payload,{DATA_TYPE:"endpoint"}),o({service:p,scope:u.ALL,path:`/v0.10/endpoint/${e}`,method:"PUT"},t,r)},Pn=function(e,t,r){return o({service:p,scope:u.ALL,path:`/v0.10/endpoint/${e}`,method:"DELETE"},t,r)};var ht={};c(ht,{cancel:()=>En,get:()=>An,getAll:()=>On,getEventList:()=>bn,getPauseInfo:()=>In,getSkippedErrors:()=>Dn,getSuccessfulTransfers:()=>xn,remove:()=>Rn,update:()=>Tn});var On=function(e={},t){return o({service:p,scope:u.ALL,path:"/v0.10/task_list"},e,t)},An=function(e,t,r){return o({service:p,scope:u.ALL,path:`/v0.10/task/${e}`},t,r)},Tn=function(e,t,r){return o({service:p,scope:u.ALL,path:`/v0.10/task/${e}`,method:"PUT"},t,r)},En=function(e,t,r){return o({service:p,scope:u.ALL,path:`/v0.10/task/${e}/cancel`,method:"POST"},t,r)},Rn=function(e,t,r){return o({service:p,scope:u.ALL,path:`/v0.10/task/${e}/remove`,method:"POST"},t,r)},bn=function(e,t,r){return o({service:p,scope:u.ALL,path:`/v0.10/task/${e}/event_list`},t,r)},xn=function(e,t,r){return o({service:p,scope:u.ALL,path:`/v0.10/task/${e}/successful_transfers`},t,r)},Dn=function(e,t,r){return o({service:p,scope:u.ALL,path:`/v0.10/task/${e}/skipped_errors`},t,r)},In=function(e,t,r){return o({service:p,scope:u.ALL,path:`/v0.10/task/${e}/pause_info`},t,r)};var _t={};c(_t,{create:()=>Mn,get:()=>kn,getAll:()=>Cn,remove:()=>wn,update:()=>Nn});var Cn=function(e,t,r){return o({service:p,scope:u.ALL,path:`/v0.10/endpoint/${e}/access_list`},t,r)},Mn=function(e,t,r){return o({service:p,scope:u.ALL,path:`/v0.10/endpoint/${e}/access`,method:"POST"},t,r)},kn=function({endpoint_xid:e,id:t},r,n){return o({service:p,scope:u.ALL,path:`/v0.10/endpoint/${e}/access/${t}`},r,n)},Nn=function({endpoint_xid:e,id:t},r,n){return o({service:p,scope:u.ALL,path:`/v0.10/endpoint/${e}/access/${t}`,method:"PUT"},r,n)},wn=function({endpoint_xid:e,id:t},r,n){return o({service:p,scope:u.ALL,path:`/v0.10/endpoint/${e}/access/${t}`,method:"DELETE"},r,n)};var gt={};c(gt,{create:()=>Fn,get:()=>qn,getAll:()=>Ln,remove:()=>jn});var Ln=function(e,t={},r){return o({service:p,scope:u.ALL,path:`/v0.10/endpoint/${e}/role_list`},t,r)},qn=function({endpoint_id:e,role_id:t},r,n){return o({service:p,scope:u.ALL,path:`/v0.10/endpoint/${e}/role/${t}`},r,n)},Fn=function(e,t,r){return o({service:p,scope:u.ALL,path:`/v0.10/endpoint/${e}/role`,method:"POST"},t,r)},jn=function({collection_id:e,role_id:t},r,n){return o({service:p,scope:u.ALL,path:`/v0.10/endpoint/${e}/role/${t}`,method:"DELETE"},r,n)};var ft={};c(ft,{create:()=>Jn,get:()=>Un,getAll:()=>Gn,remove:()=>Hn,update:()=>$n});var Gn=function(e,t){return o({service:p,scope:u.ALL,path:"/v0.10/bookmark_list"},e,t)},Jn=function(e,t){return o({service:p,scope:u.ALL,path:"/v0.10/bookmark",method:"POST"},e,t)},Un=function(e,t,r){return o({service:p,scope:u.ALL,path:`/v0.10/bookmark/${e}`},t,r)},$n=function(e,t,r){return o({service:p,scope:u.ALL,path:`/v0.10/bookmark/${e}`,method:"PUT"},t,r)},Hn=function(e,t,r){return o({service:p,scope:u.ALL,path:`/v0.10/bookmark/${e}`,method:"DELETE"},t,r)};var yt={};c(yt,{create:()=>Wn,get:()=>zn,getAll:()=>Bn,getEventList:()=>Qn,remove:()=>Vn,start:()=>Yn,stop:()=>Kn});var W=f[p],Bn=function(e,t){return o({service:p,resource_server:W,path:"/v2/tunnels"},e,t)},zn=function(e,t,r){return o({service:p,resource_server:W,path:`/v2/tunnels/${e}`},t,r)},Wn=function(e,t){return o({service:p,resource_server:W,path:"/v2/tunnels",method:"POST"},e,t)},Vn=function(e,t,r){return o({service:p,resource_server:W,path:`/v2/tunnels/${e}`,method:"DELETE"},t,r)},Yn=function(e,t,r){return o({service:p,resource_server:W,path:`/v2/tunnels/${e}`,method:"PATCH"},{payload:{data:{attributes:{...t}}}},r)},Kn=function(e,t={},r){return o({service:p,resource_server:W,path:`/v2/tunnels/${e}`,method:"PATCH"},{payload:{data:{attributes:{...t,state:"STOPPING"}}}},r)},Qn=function(e,t,r){return o({service:p,resource_server:W,path:`/v2/tunnels/${e}/events`},t,r)};var St={};c(St,{get:()=>Zn,getAll:()=>Xn});var Nr=f[p],Xn=function(e,t){return o({service:p,resource_server:Nr,path:"/v2/stream_access_points"},e,t)},Zn=function(e,t,r){return o({service:p,resource_server:Nr,path:`/v2/stream_access_points/${e}`},t,r)};var At={};c(At,{endpoint:()=>vt,pauseRule:()=>Pt,task:()=>Ot});var vt={};c(vt,{get:()=>es,getAccessList:()=>rs,getHostedEndpoints:()=>ts,getMonitoredEndpoints:()=>os});var es=function(e,t,r){return o({service:p,scope:u.ALL,path:`/v0.10/endpoint_manager/endpoint/${e}`},t,r)},ts=function(e,t,r){return o({service:p,scope:u.ALL,path:`/v0.10/endpoint_manager/endpoint/${e}/hosted_endpoint_list`},t,r)},rs=function(e,t,r){return o({service:p,scope:u.ALL,path:`/v0.10/endpoint_manager/endpoint/${e}/access_list`},t,r)},os=function(e={},t){return o({service:p,scope:u.ALL,path:"/v0.10/endpoint_manager/monitored_endpoints"},e,t)};var Pt={};c(Pt,{create:()=>ss,get:()=>is,getAll:()=>ns,remove:()=>ps,update:()=>as});var ns=function(e,t){return o({service:p,scope:u.ALL,path:"/v0.10/endpoint_manager/pause_rule_list"},e,t)},ss=function(e,t){return o({service:p,scope:u.ALL,path:"/v0.10/endpoint_manager/pause_rule",method:"POST"},e,t)},is=function(e,t,r){return o({service:p,scope:u.ALL,path:`/v0.10/endpoint_manager/pause_rule/${e}`},t,r)},as=function(e,t,r){return o({service:p,scope:u.ALL,path:`/v0.10/endpoint_manager/pause_rule/${e}`,method:"PUT"},t,r)},ps=function(e,t,r){return o({service:p,scope:u.ALL,path:`/v0.10/endpoint_manager/pause_rule/${e}`,method:"DELETE"},t,r)};var Ot={};c(Ot,{cancel:()=>ds,get:()=>us,getAdminCancel:()=>ls,getAll:()=>cs,getEventList:()=>ms,getPauseInfo:()=>ys,getSkippedErrors:()=>_s,getSuccessfulTransfers:()=>hs,pause:()=>gs,resume:()=>fs});var cs=function(e={},t){return o({service:p,scope:u.ALL,path:"/v0.10/task_list"},e,t)},us=function(e,t,r){return o({service:p,scope:u.ALL,path:`/v0.10/endpoint_manager/task/${e}`},t,r)},ds=function(e,t){return o({service:p,scope:u.ALL,path:"/v0.10/endpoint_manager/admin_cancel",method:"POST"},e,t)},ls=function(e,t,r){return o({service:p,scope:u.ALL,path:`/v0.10/endpoint_manager/admin_cancel/${e}`,method:"POST"},t,r)},ms=function(e,t,r){return o({service:p,scope:u.ALL,path:`/v0.10/endpoint_manager/task/${e}/event_list`},t,r)},hs=function(e,t,r){return o({service:p,scope:u.ALL,path:`/v0.10/endpoint_manager/task/${e}/successful_transfers`},t,r)},_s=function(e,t,r){return o({service:p,scope:u.ALL,path:`/v0.10/endpoint_manager/task/${e}/skipped_errors`},t,r)},gs=function(e,t){return o({service:p,scope:u.ALL,path:"/v0.10/endpoint_manager/admin_pause",method:"POST"},e,t)},fs=function(e,t){return o({service:p,scope:u.ALL,path:"/v0.10/endpoint_manager/admin_resume",method:"POST"},e,t)},ys=function(e,t,r){return o({service:p,scope:u.ALL,path:`/v0.10/endpoint_manager/task/${e}/pause_info`},t,r)};var xt={};c(xt,{GLOBUS_DNS_DOMAINS:()=>qr,getDomainFromEndpoint:()=>Ps,isDirectory:()=>Ss,isFileDocument:()=>Lr,isGlobusHostname:()=>Fr,readableBytes:()=>vs});function Lr(e){return typeof e=="object"&&e!==null&&"DATA_TYPE"in e&&e.DATA_TYPE==="file"}function Ss(e){return Lr(e)&&e.type==="dir"}var Tt=1e3,Et=Tt*1e3,Rt=Et*1e3,bt=Rt*1e3,wr=bt*1e3;function vs(e,t=2){let r="B",n=1;if(e<Tt)return`${e} ${r}`;e<Et?(r="KB",n=Tt):e<Rt?(r="MB",n=Et):e<bt?(r="GB",n=Rt):e<wr?(r="TB",n=bt):(r="PB",n=wr);let i=e/n,[l,y]=`${i}`.split("."),S=`${l}`;if(y&&y.length){let R=y.slice(0,t);R.length&&(S=`${l}.${R}`)}return`${S} ${r}`}var qr=["dnsteam.globuscs.info","data.globus.org","dn.glob.us","gaccess.io"];function Fr(e){return!!qr.find(t=>e.endsWith(`.${t}`))}function Ps(e){let{tlsftp_server:t}=e;if(!t||typeof t!="string")return null;let{hostname:r}=new URL(t.replace("tlsftp","https"));return!Fr(r)&&/(?:[gm]-\w{6}.)?([\w-]+(\.[\w-]+)+)$/.exec(r)?.[1]||r||null}var Os=le;var wt={};c(wt,{CONFIG:()=>Ls,entry:()=>Mt,index:()=>Nt,query:()=>It,subject:()=>Ct});var It={};c(It,{get:()=>As,post:()=>Ts});var As=function(e,t,r){return o({service:O,scope:D.SEARCH,path:`/v1/index/${e}/search`},t,r)},Ts=function(e,t,r){return o({service:O,scope:D.SEARCH,path:`/v1/index/${e}/search`,method:"POST"},t,r)};var Ct={};c(Ct,{get:()=>Es});var Es=function(e,t,r){return o({service:O,scope:D.SEARCH,path:`/v1/index/${e}/subject`},t,r)};var Mt={};c(Mt,{get:()=>Rs});var Rs=function(e,t,r){return o({service:O,scope:D.SEARCH,path:`/v1/index/${e}/entry`},t,r)};var Nt={};c(Nt,{create:()=>Ms,get:()=>Is,getAll:()=>Cs,ingest:()=>ws,remove:()=>ks,reopen:()=>Ns,roles:()=>kt});var kt={};c(kt,{create:()=>xs,getAll:()=>bs,remove:()=>Ds});var bs=function(e,t,r){return o({service:O,scope:D.ALL,path:`/v1/index/${e}/role_list`},t,r)},xs=function(e,t,r){return o({service:O,scope:D.ALL,path:`/v1/index/${e}/role`,method:"POST"},t,r)},Ds=function({index_id:e,role_id:t},r,n){return o({service:O,scope:D.ALL,path:`/v1/index/${e}/role/${t}`,method:"DELETE"},r,n)};var Is=function(e,t,r){return o({service:O,path:`/v1/index/${e}`},t,r)},Cs=function(e,t){return o({service:O,scope:D.ALL,path:"/v1/index_list"},e,t)},Ms=function(e,t){return o({service:O,scope:D.ALL,path:"/v1/index",method:"POST"},e,t)},ks=function(e,t,r){return o({service:O,scope:D.ALL,path:`/v1/index/${e}`,method:"DELETE"},t,r)},Ns=function(e,t,r){return o({service:O,scope:D.ALL,path:`/v1/index/${e}/reopen`,method:"POST"},t,r)},ws=function(e,t,r){return o({service:O,scope:D.ALL,path:`/v1/index/${e}/ingest`,method:"POST"},t,r)};var Ls=ge;var jt={};c(jt,{CONFIG:()=>zs,groups:()=>Lt,membership:()=>Ft,policies:()=>qt});var Lt={};c(Lt,{create:()=>js,get:()=>Fs,getMyGroups:()=>qs,getStatuses:()=>Us,remove:()=>Gs,update:()=>Js});var qs=function(e,t){return o({service:b,resource_server:f.GROUPS,path:"/v2/groups/my_groups"},e,t)},Fs=function(e,t,r){return o({service:b,resource_server:f.GROUPS,path:`/v2/groups/${e}`},t,r)},js=function(e,t){return o({service:b,resource_server:f.GROUPS,path:"/v2/groups",method:"POST"},e,t)},Gs=function(e,t,r){return o({service:b,resource_server:f.GROUPS,path:`/v2/groups/${e}`,method:"DELETE"},t,r)},Js=function(e,t,r){return o({service:b,resource_server:f.GROUPS,path:`/v2/groups/${e}`,method:"PUT"},t,r)},Us=function(e,t){return o({service:b,resource_server:f.GROUPS,path:"/v2/groups/statuses"},e,t)};var qt={};c(qt,{get:()=>$s,update:()=>Hs});var $s=function(e,t,r){return o({service:b,resource_server:f.GROUPS,path:`/v2/groups/${e}/policies`},t,r)},Hs=function(e,t,r){return o({service:b,resource_server:f.GROUPS,path:`/v2/groups/${e}/policies`,method:"PUT"},t,r)};var Ft={};c(Ft,{act:()=>Bs});var Bs=function(e,t,r){return o({service:b,resource_server:f.GROUPS,path:`/v2/groups/${e}`,method:"POST"},t,r)};var zs=_e;var Ut={};c(Ut,{CONFIG:()=>ai,flows:()=>Gt,runs:()=>Jt});var Gt={};c(Gt,{create:()=>jr,deploy:()=>Xs,get:()=>Vs,getAll:()=>Ws,remove:()=>Ys,run:()=>Ks,update:()=>Zs,validate:()=>Qs});var Ws=function(e,t){return o({service:T,scope:C.VIEW_FLOWS,path:"/flows"},e,t)},Vs=function(e,t,r){return o({service:T,scope:C.VIEW_FLOWS,path:`/flows/${e}`},t,r)},Ys=function(e,t,r){return o({scope:C.MANAGE_FLOWS,service:T,path:`/flows/${e}`,method:"DELETE"},t,r)},Ks=function(e,t,r){return o({service:T,scope:C.VIEW_FLOWS,path:`/flows/${e}/run`,method:"POST"},t,r)},Qs=function(e,t){return o({service:T,scope:C.MANAGE_FLOWS,path:"/flows/validate",method:"POST"},e,t)},jr=function(e,t){return o({service:T,scope:C.MANAGE_FLOWS,path:"/flows",method:"POST"},e,t)},Xs=jr,Zs=function(e,t,r){return o({service:T,scope:C.MANAGE_FLOWS,path:`/flows/${e}`,method:"PUT"},t,r)};var Jt={};c(Jt,{cancel:()=>ri,get:()=>ti,getAll:()=>ei,getDefinition:()=>ii,getLog:()=>oi,remove:()=>si,update:()=>ni});var ei=function(e={},t){return o({service:T,scope:C.RUN_MANAGE,path:"/runs"},e,t)},ti=function(e,t,r){return o({service:T,scope:C.RUN_MANAGE,path:`/runs/${e}`},t,r)},ri=function(e,t,r){return o({service:T,scope:C.RUN_MANAGE,path:`/runs/${e}/cancel`,method:"POST"},t,r)},oi=function(e,t,r){return o({service:T,scope:C.RUN_MANAGE,path:`/runs/${e}/log`},t,r)},ni=function(e,t,r){return o({service:T,scope:C.RUN_MANAGE,path:`/runs/${e}`,method:"PUT"},t,r)},si=function(e,t,r){return o({service:T,scope:C.RUN_MANAGE,path:`/runs/${e}/release`,method:"POST"},t,r)},ii=function(e,t,r){return o({service:T,scope:C.RUN_MANAGE,path:`/runs/${e}/definition`,method:"GET"},t,r)};var ai=me;var Zt={};c(Zt,{collections:()=>$t,endpoint:()=>Ht,getScopes:()=>Yi,https:()=>Bt,nodes:()=>zt,roles:()=>Wt,storageGateways:()=>Vt,userCredentials:()=>Yt,utils:()=>Xt,versioning:()=>Qt});var $t={};c($t,{create:()=>di,get:()=>ci,getAll:()=>pi,patch:()=>mi,remove:()=>ui,resetOwnerString:()=>_i,update:()=>li,updateOwnerString:()=>hi});var pi=function(e,t,r){return o({service:e,resource_server:e.endpoint_id,path:"/api/collections"},t,r)},ci=function(e,t,r,n){return o({service:e,resource_server:e.endpoint_id,path:`/api/collections/${t}`},r,n)},ui=function(e,t,r,n){return o({service:e,resource_server:e.endpoint_id,path:`/api/collections/${t}`,method:"DELETE"},r,n)},di=function(e,t,r){return o({service:e,resource_server:e.endpoint_id,path:"/api/collections",method:"POST"},t,r)},li=function(e,t,r,n){return o({service:e,resource_server:e.endpoint_id,path:`/api/collections/${t}`,method:"PUT"},r,n)},mi=function(e,t,r,n){return o({service:e,resource_server:e.endpoint_id,path:`/api/collections/${t}`,method:"PATCH"},r,n)},hi=function(e,t,r,n){return o({service:e,resource_server:e.endpoint_id,path:`/api/collections/${t}/owner_string`,method:"PUT"},r,n)},_i=function(e,t,r,n){return o({service:e,resource_server:e.endpoint_id,path:`/api/collections/${t}/owner_string`,method:"DELETE"},r,n)};var Ht={};c(Ht,{get:()=>gi,patch:()=>yi,resetOwnerString:()=>Oi,update:()=>fi,updateOwner:()=>vi,updateOwnerString:()=>Pi,updateSubscriptionId:()=>Si});var gi=function(e,t,r){return o({service:e,resource_server:e.endpoint_id,path:"/api/endpoint"},t,r)},fi=function(e,t,r){return o({service:e,resource_server:e.endpoint_id,path:"/api/endpoint",method:"PUT"},t,r)},yi=function(e,t,r){return o({service:e,resource_server:e.endpoint_id,path:"/api/endpoint",method:"PATCH"},t,r)},Si=function(e,t,r){return o({service:e,resource_server:e.endpoint_id,path:"/api/endpoint/subscription_id",method:"PUT"},t,r)},vi=function(e,t,r){return o({service:e,resource_server:e.endpoint_id,path:"/api/endpoint/owner",method:"PUT"},t,r)},Pi=function(e,t,r){return o({service:e,resource_server:e.endpoint_id,path:"/api/endpoint/owner_string",method:"PUT"},t,r)},Oi=function(e,t,r){return o({service:e,resource_server:e.endpoint_id,path:"/api/endpoint/owner_string",method:"DELETE"},t,r)};var Bt={};c(Bt,{get:()=>Ai,remove:()=>Ti,update:()=>Ei});var Ai=function(e,t,r,n){return o({service:e,resource_server:e.endpoint_id,path:t},r,n)},Ti=function(e,t,r,n){return o({service:e,resource_server:e.endpoint_id,path:t,method:"DELETE"},r,n)},Ei=function(e,t,r,n){return o({service:e,resource_server:e.endpoint_id,path:t,method:"PUT"},r,n)};var zt={};c(zt,{create:()=>Di,get:()=>bi,getAll:()=>Ri,patch:()=>Ci,remove:()=>xi,update:()=>Ii});var Ri=function(e,t,r){return o({service:e,resource_server:e.endpoint_id,path:"/api/nodes"},t,r)},bi=function(e,t,r,n){return o({service:e,resource_server:e.endpoint_id,path:`/api/nodes/${t}`},r,n)},xi=function(e,t,r,n){return o({service:e,resource_server:e.endpoint_id,path:`/api/nodes/${t}`,method:"DELETE"},r,n)},Di=function(e,t,r){return o({service:e,resource_server:e.endpoint_id,path:"/api/nodes",method:"POST"},t,r)},Ii=function(e,t,r,n){return o({service:e,resource_server:e.endpoint_id,path:`/api/nodes/${t}`,method:"PUT"},r,n)},Ci=function(e,t,r,n){return o({service:e,resource_server:e.endpoint_id,path:`/api/nodes/${t}`,method:"PATCH"},r,n)};var Wt={};c(Wt,{create:()=>wi,get:()=>ki,getAll:()=>Mi,remove:()=>Ni});var Mi=function(e,t,r){return o({service:e,resource_server:e.endpoint_id,path:"/api/roles"},t,r)},ki=function(e,t,r,n){return o({service:e,resource_server:e.endpoint_id,path:`/api/roles/${t}`},r,n)},Ni=function(e,t,r,n){return o({service:e,resource_server:e.endpoint_id,path:`/api/roles/${t}`,method:"DELETE"},r,n)},wi=function(e,t,r){return o({service:e,resource_server:e.endpoint_id,path:"/api/roles",method:"POST"},t,r)};var Vt={};c(Vt,{create:()=>ji,get:()=>qi,getAll:()=>Li,patch:()=>Ji,remove:()=>Fi,update:()=>Gi});var Li=function(e,t,r){return o({service:e,resource_server:e.endpoint_id,path:"/api/storage_gateways"},t,r)},qi=function(e,t,r,n){return o({service:e,resource_server:e.endpoint_id,path:`/api/storage_gateways/${t}`},r,n)},Fi=function(e,t,r,n){return o({service:e,resource_server:e.endpoint_id,path:`/api/storage_gateways/${t}`,method:"DELETE"},r,n)},ji=function(e,t,r){return o({service:e,resource_server:e.endpoint_id,path:"/api/storage_gateways",method:"POST"},t,r)},Gi=function(e,t,r,n){return o({service:e,resource_server:e.endpoint_id,path:`/api/storage_gateways/${t}`,method:"PUT"},r,n)},Ji=function(e,t,r,n){return o({service:e,resource_server:e.endpoint_id,path:`/api/storage_gateways/${t}`,method:"PATCH"},r,n)};var Yt={};c(Yt,{create:()=>Bi,get:()=>$i,getAll:()=>Ui,patch:()=>Wi,remove:()=>Hi,update:()=>zi});var Ui=function(e,t,r){return o({service:e,resource_server:e.endpoint_id,path:"/api/user_credentials"},t,r)},$i=function(e,t,r,n){return o({service:e,resource_server:e.endpoint_id,path:`/api/user_credentials/${t}`},r,n)},Hi=function(e,t,r,n){return o({service:e,resource_server:e.endpoint_id,path:`/api/user_credentials/${t}`,method:"DELETE"},r,n)},Bi=function(e,t,r){return o({service:e,resource_server:e.endpoint_id,path:"/api/user_credentials",method:"POST"},t,r)},zi=function(e,t,r,n){return o({service:e,resource_server:e.endpoint_id,path:`/api/user_credentials/${t}`,method:"PUT"},r,n)},Wi=function(e,t,r,n){return o({service:e,resource_server:e.endpoint_id,path:`/api/user_credentials/${t}`,method:"PATCH"},r,n)};var Qt={};c(Qt,{info:()=>Kt});var Kt=function(e,t,r){return o({service:e,path:"/api/info"},t,r)};var Xt={};c(Xt,{getEndpointIdFromURL:()=>Vi,getGCSDomainFromURL:()=>Gr});var pe="data.globus.org";function Gr(e){let{host:t}=typeof e=="string"?new URL(e):e;if(!t.endsWith(pe))return t;let[r]=t.split(`.${pe}`),n=r.split(".");return(n.length===2?[...n,pe]:[n[1],n[2],pe]).join(".")}async function Vi(e){let t=typeof e=="string"?new URL(e):e;if(!t.host.endsWith(pe))return null;let i=(await(await Kt({host:`https://${Gr(t)}`})).json()).data?.filter(l=>l.DATA_TYPE.startsWith("info#"))[0];return i&&"endpoint_id"in i?i.endpoint_id:null}var Jr={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 Yi(e,t){let{endpoint_id:r}=e;if(!r)throw new Error("An 'endpoint_id' is required to determine the required scopes");return t?Jr[t].replace("<ENDPOINT_ID>",r):Object.entries(Jr).reduce((n,[i,l])=>({...n,[i]:l.replace("<ENDPOINT_ID>",r)}),{})}var rr={};c(rr,{CONFIG:()=>oa,jobs:()=>tr,timer:()=>er});var er={};c(er,{create:()=>Ki});var Ki=function(e,t){return o({service:E,resource_server:f.TIMERS,path:"/v2/timer",method:"POST"},e,t)};var tr={};c(tr,{get:()=>Xi,getAll:()=>Qi,patch:()=>Zi,pause:()=>ea,remove:()=>ra,resume:()=>ta});var Qi=function(e,t){return o({service:E,resource_server:f[E],path:"/jobs",method:"GET"},e,t)},Xi=function(e,t,r){return o({service:E,resource_server:f[E],path:`/jobs/${e}`,method:"GET"},t,r)},Zi=function(e,t,r){return o({service:E,resource_server:f[E],path:`/jobs/${e}`,method:"PATCH"},t,r)},ea=function(e,t,r){return o({service:E,resource_server:f[E],path:`/jobs/${e}/pause`,method:"POST"},t,r)},ta=function(e,t,r){return o({service:E,resource_server:f[E],path:`/jobs/${e}/resume`,method:"POST"},t,r)},ra=function(e,t,r){return o({service:E,resource_server:f[E],path:`/jobs/${e}`,method:"DELETE"},t,r)};var oa=he;var nr={};c(nr,{CONFIG:()=>ca,endpoints:()=>or});var or={};c(or,{get:()=>sa,getAll:()=>na,getStatus:()=>ia,remove:()=>pa,update:()=>aa});var na=function(e,t){return o({service:k,scope:B.ALL,path:"/v2/endpoints",method:"GET"},e,t)},sa=function(e,t,r){return o({service:k,scope:B.ALL,path:`/v2/endpoints/${e}`,method:"GET"},t,r)},ia=function(e,t,r){return o({service:k,scope:B.ALL,path:`/v2/endpoints/${e}/status`},t,r)},aa=function(e,t,r){return o({service:k,scope:B.ALL,path:`/v3/endpoints/${e}`,method:"PUT"},t,r)},pa=function(e,t,r){return o({service:k,scope:B.ALL,path:`/v2/endpoints/${e}`,method:"DELETE"},t,r)};var ca=fe;var sr={};c(sr,{HOSTS:()=>Ur,host:()=>$r,url:()=>Hr,urlFor:()=>da});var Ur={integration:"app.integration.globuscs.info",sandbox:"app.sandbox.globuscs.info",test:"app.test.globuscs.info",staging:"app.staging.globuscs.info",preview:"app.preview.globus.org",production:"app.globus.org"};function $r(e=Y()){return Ur[e]}function Hr(e,t){return new URL(e||"",`https://${$r(t?.environment)}`)}var ua={TASK:"/activity/%s/overview",COLLECTION:"/file-manager/collections/%s/overview",ENDPOINT:"/file-manager/collections/%s/overview"};function da(e,t,r){let n=ua[e].replace(/%s/g,t?.join("/")||"");return Hr(n,r)}return no(la);})();
|
|
3
3
|
//# sourceMappingURL=globus.production.js.map
|