@globus/sdk 1.15.1 → 1.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cjs/lib/services/globus-connect-server/client.d.ts +3061 -0
- package/cjs/lib/services/globus-connect-server/client.d.ts.map +1 -1
- package/cjs/lib/services/globus-connect-server/client.js +5 -0
- package/cjs/lib/services/globus-connect-server/client.js.map +1 -1
- package/cjs/lib/services/globus-connect-server/service/collections.d.ts +53 -0
- package/cjs/lib/services/globus-connect-server/service/collections.d.ts.map +1 -1
- package/cjs/lib/services/globus-connect-server/service/collections.js +56 -1
- package/cjs/lib/services/globus-connect-server/service/collections.js.map +1 -1
- package/cjs/lib/services/globus-connect-server/service/storage-gateways.d.ts +45 -0
- package/cjs/lib/services/globus-connect-server/service/storage-gateways.d.ts.map +1 -1
- package/cjs/lib/services/globus-connect-server/service/storage-gateways.js +45 -1
- package/cjs/lib/services/globus-connect-server/service/storage-gateways.js.map +1 -1
- package/cjs/lib/services/globus-connect-server/service/user-credentials.d.ts +45 -0
- package/cjs/lib/services/globus-connect-server/service/user-credentials.d.ts.map +1 -1
- package/cjs/lib/services/globus-connect-server/service/user-credentials.js +45 -1
- package/cjs/lib/services/globus-connect-server/service/user-credentials.js.map +1 -1
- package/cjs/lib/services/transfer/config.d.ts +3 -0
- package/cjs/lib/services/transfer/config.d.ts.map +1 -1
- package/cjs/lib/services/transfer/config.js +4 -1
- package/cjs/lib/services/transfer/config.js.map +1 -1
- package/cjs/lib/services/transfer/index.d.ts +1 -0
- package/cjs/lib/services/transfer/index.d.ts.map +1 -1
- package/cjs/lib/services/transfer/index.js +2 -1
- package/cjs/lib/services/transfer/index.js.map +1 -1
- package/cjs/lib/services/transfer/service/endpoint-search.js +1 -1
- package/cjs/lib/services/transfer/service/endpoint-search.js.map +1 -1
- package/cjs/lib/services/transfer/service/endpoint.d.ts +13 -0
- package/cjs/lib/services/transfer/service/endpoint.d.ts.map +1 -1
- package/cjs/lib/services/transfer/service/endpoint.js +14 -2
- package/cjs/lib/services/transfer/service/endpoint.js.map +1 -1
- package/cjs/lib/services/transfer/service/file-operations.js +4 -4
- package/cjs/lib/services/transfer/service/file-operations.js.map +1 -1
- package/cjs/lib/services/transfer/service/task-submission.js +3 -3
- package/cjs/lib/services/transfer/service/task-submission.js.map +1 -1
- package/cjs/lib/services/transfer/service/task.d.ts +119 -0
- package/cjs/lib/services/transfer/service/task.d.ts.map +1 -0
- package/cjs/lib/services/transfer/service/task.js +101 -0
- package/cjs/lib/services/transfer/service/task.js.map +1 -0
- package/cjs/lib/services/transfer/types.d.ts +63 -0
- package/cjs/lib/services/transfer/types.d.ts.map +1 -1
- package/esm/lib/services/globus-connect-server/client.d.ts +3061 -0
- package/esm/lib/services/globus-connect-server/client.d.ts.map +1 -1
- package/esm/lib/services/globus-connect-server/client.js +5 -0
- package/esm/lib/services/globus-connect-server/client.js.map +1 -1
- package/esm/lib/services/globus-connect-server/service/collections.d.ts +53 -0
- package/esm/lib/services/globus-connect-server/service/collections.d.ts.map +1 -1
- package/esm/lib/services/globus-connect-server/service/collections.js +55 -0
- package/esm/lib/services/globus-connect-server/service/collections.js.map +1 -1
- package/esm/lib/services/globus-connect-server/service/storage-gateways.d.ts +45 -0
- package/esm/lib/services/globus-connect-server/service/storage-gateways.d.ts.map +1 -1
- package/esm/lib/services/globus-connect-server/service/storage-gateways.js +45 -1
- package/esm/lib/services/globus-connect-server/service/storage-gateways.js.map +1 -1
- package/esm/lib/services/globus-connect-server/service/user-credentials.d.ts +45 -0
- package/esm/lib/services/globus-connect-server/service/user-credentials.d.ts.map +1 -1
- package/esm/lib/services/globus-connect-server/service/user-credentials.js +45 -1
- package/esm/lib/services/globus-connect-server/service/user-credentials.js.map +1 -1
- package/esm/lib/services/transfer/config.d.ts +3 -0
- package/esm/lib/services/transfer/config.d.ts.map +1 -1
- package/esm/lib/services/transfer/config.js +3 -0
- package/esm/lib/services/transfer/config.js.map +1 -1
- package/esm/lib/services/transfer/index.d.ts +1 -0
- package/esm/lib/services/transfer/index.d.ts.map +1 -1
- package/esm/lib/services/transfer/index.js +1 -0
- package/esm/lib/services/transfer/index.js.map +1 -1
- package/esm/lib/services/transfer/service/endpoint-search.js +2 -2
- package/esm/lib/services/transfer/service/endpoint-search.js.map +1 -1
- package/esm/lib/services/transfer/service/endpoint.d.ts +13 -0
- package/esm/lib/services/transfer/service/endpoint.d.ts.map +1 -1
- package/esm/lib/services/transfer/service/endpoint.js +15 -3
- package/esm/lib/services/transfer/service/endpoint.js.map +1 -1
- package/esm/lib/services/transfer/service/file-operations.js +5 -5
- package/esm/lib/services/transfer/service/file-operations.js.map +1 -1
- package/esm/lib/services/transfer/service/task-submission.js +4 -4
- package/esm/lib/services/transfer/service/task-submission.js.map +1 -1
- package/esm/lib/services/transfer/service/task.d.ts +119 -0
- package/esm/lib/services/transfer/service/task.d.ts.map +1 -0
- package/esm/lib/services/transfer/service/task.js +98 -0
- package/esm/lib/services/transfer/service/task.js.map +1 -0
- package/esm/lib/services/transfer/types.d.ts +63 -0
- package/esm/lib/services/transfer/types.d.ts.map +1 -1
- package/package.json +1 -1
- package/umd/globus.production.js +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HTTP_METHODS, serviceRequest } from '../../shared.js';
|
|
2
2
|
import { getHeadersForService } from '../shared.js';
|
|
3
|
-
import { ID } from '../config.js';
|
|
3
|
+
import { ID, SCOPES } from '../config.js';
|
|
4
4
|
/**
|
|
5
5
|
* List the contents of the directory at the specified path on an endpoint’s filesystem.
|
|
6
6
|
* The endpoint must be activated before performing this operation.
|
|
@@ -10,7 +10,7 @@ import { ID } from '../config.js';
|
|
|
10
10
|
export const ls = function (endpoint_xid, options, sdkOptions) {
|
|
11
11
|
return serviceRequest({
|
|
12
12
|
service: ID,
|
|
13
|
-
scope:
|
|
13
|
+
scope: SCOPES.ALL,
|
|
14
14
|
path: `/v0.10/operation/endpoint/${endpoint_xid}/ls`,
|
|
15
15
|
}, options, sdkOptions);
|
|
16
16
|
};
|
|
@@ -27,7 +27,7 @@ export const mkdir = function (endpoint_xid, options, sdkOptions) {
|
|
|
27
27
|
};
|
|
28
28
|
return serviceRequest({
|
|
29
29
|
service: ID,
|
|
30
|
-
scope:
|
|
30
|
+
scope: SCOPES.ALL,
|
|
31
31
|
path: `/v0.10/operation/endpoint/${endpoint_xid}/mkdir`,
|
|
32
32
|
method: HTTP_METHODS.POST,
|
|
33
33
|
}, serviceRequestOptions, sdkOptions);
|
|
@@ -47,7 +47,7 @@ export const rename = function (endpoint_xid, options, sdkOptions) {
|
|
|
47
47
|
};
|
|
48
48
|
return serviceRequest({
|
|
49
49
|
service: ID,
|
|
50
|
-
scope:
|
|
50
|
+
scope: SCOPES.ALL,
|
|
51
51
|
path: `/v0.10/operation/endpoint/${endpoint_xid}/rename`,
|
|
52
52
|
method: HTTP_METHODS.POST,
|
|
53
53
|
}, serviceRequestOptions, sdkOptions);
|
|
@@ -65,7 +65,7 @@ export const symlink = function (endpoint_xid, options, sdkOptions) {
|
|
|
65
65
|
};
|
|
66
66
|
return serviceRequest({
|
|
67
67
|
service: ID,
|
|
68
|
-
scope:
|
|
68
|
+
scope: SCOPES.ALL,
|
|
69
69
|
path: `/v0.10/operation/endpoint/${endpoint_xid}/symlink`,
|
|
70
70
|
method: HTTP_METHODS.POST,
|
|
71
71
|
}, serviceRequestOptions, sdkOptions);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"file-operations.js","sourceRoot":"","sources":["../../../../../../src/lib/services/transfer/service/file-operations.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAE/D,OAAO,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AACpD,OAAO,EAAE,EAAE,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"file-operations.js","sourceRoot":"","sources":["../../../../../../src/lib/services/transfer/service/file-operations.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAE/D,OAAO,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AACpD,OAAO,EAAE,EAAE,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAK1C;;;;;GAKG;AACH,MAAM,CAAC,MAAM,EAAE,GAAG,UAAU,YAAY,EAAE,OAAQ,EAAE,UAAW;IAC7D,OAAO,cAAc,CACnB;QACE,OAAO,EAAE,EAAE;QACX,KAAK,EAAE,MAAM,CAAC,GAAG;QACjB,IAAI,EAAE,6BAA6B,YAAY,KAAK;KACrD,EACD,OAAO,EACP,UAAU,CACX,CAAC;AACJ,CAKC,CAAC;AAEF;;;;;GAKG;AACH,MAAM,CAAC,MAAM,KAAK,GAAG,UAAU,YAAY,EAAE,OAAO,EAAE,UAAW;IAC/D,MAAM,qBAAqB,GAAG;QAC5B,OAAO,kBACL,SAAS,EAAE,OAAO,IACf,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,OAAO,CACpB;QACD,OAAO,kCACF,oBAAoB,CAAC,YAAY,CAAC,IAAI,CAAC,GACvC,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,OAAO,CACpB;KACF,CAAC;IACF,OAAO,cAAc,CACnB;QACE,OAAO,EAAE,EAAE;QACX,KAAK,EAAE,MAAM,CAAC,GAAG;QACjB,IAAI,EAAE,6BAA6B,YAAY,QAAQ;QACvD,MAAM,EAAE,YAAY,CAAC,IAAI;KAC1B,EACD,qBAAqB,EACrB,UAAU,CACX,CAAC;AACJ,CAKC,CAAC;AAEF;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,MAAM,GAAG,UAAU,YAAY,EAAE,OAAO,EAAE,UAAW;IAChE,MAAM,qBAAqB,GAAG;QAC5B,OAAO,kBACL,SAAS,EAAE,QAAQ,IAChB,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,OAAO,CACpB;QACD,OAAO,kCACF,oBAAoB,CAAC,YAAY,CAAC,IAAI,CAAC,GACvC,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,OAAO,CACpB;KACF,CAAC;IACF,OAAO,cAAc,CACnB;QACE,OAAO,EAAE,EAAE;QACX,KAAK,EAAE,MAAM,CAAC,GAAG;QACjB,IAAI,EAAE,6BAA6B,YAAY,SAAS;QACxD,MAAM,EAAE,YAAY,CAAC,IAAI;KAC1B,EACD,qBAAqB,EACrB,UAAU,CACX,CAAC;AACJ,CAKC,CAAC;AAEF;;;;;GAKG;AACH,MAAM,CAAC,MAAM,OAAO,GAAG,UAAU,YAAY,EAAE,OAAO,EAAE,UAAW;IACjE,MAAM,qBAAqB,GAAG;QAC5B,OAAO,kBACL,SAAS,EAAE,SAAS,IACjB,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,OAAO,CACpB;QACD,OAAO,kCACF,oBAAoB,CAAC,YAAY,CAAC,IAAI,CAAC,GACvC,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,OAAO,CACpB;KACF,CAAC;IACF,OAAO,cAAc,CACnB;QACE,OAAO,EAAE,EAAE;QACX,KAAK,EAAE,MAAM,CAAC,GAAG;QACjB,IAAI,EAAE,6BAA6B,YAAY,UAAU;QACzD,MAAM,EAAE,YAAY,CAAC,IAAI;KAC1B,EACD,qBAAqB,EACrB,UAAU,CACX,CAAC;AACJ,CAKC,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HTTP_METHODS, serviceRequest } from '../../shared.js';
|
|
2
2
|
import { getHeadersForService } from '../shared.js';
|
|
3
|
-
import { ID } from '../config.js';
|
|
3
|
+
import { ID, SCOPES } from '../config.js';
|
|
4
4
|
/**
|
|
5
5
|
* Submit a delete task. A delete submission contains a single endpoint and a
|
|
6
6
|
* list of paths to delete.
|
|
@@ -14,7 +14,7 @@ export const submitDelete = function (options, sdkOptions) {
|
|
|
14
14
|
};
|
|
15
15
|
return serviceRequest({
|
|
16
16
|
service: ID,
|
|
17
|
-
scope:
|
|
17
|
+
scope: SCOPES.ALL,
|
|
18
18
|
path: `/v0.10/delete`,
|
|
19
19
|
method: HTTP_METHODS.POST,
|
|
20
20
|
}, serviceRequestOptions, sdkOptions);
|
|
@@ -26,7 +26,7 @@ export const submitTransfer = function (options, sdkOptions) {
|
|
|
26
26
|
};
|
|
27
27
|
return serviceRequest({
|
|
28
28
|
service: ID,
|
|
29
|
-
scope:
|
|
29
|
+
scope: SCOPES.ALL,
|
|
30
30
|
path: `/v0.10/transfer`,
|
|
31
31
|
method: HTTP_METHODS.POST,
|
|
32
32
|
}, serviceRequestOptions, sdkOptions);
|
|
@@ -40,7 +40,7 @@ export const submitTransfer = function (options, sdkOptions) {
|
|
|
40
40
|
export const submissionId = function (options, sdkOptions) {
|
|
41
41
|
return serviceRequest({
|
|
42
42
|
service: ID,
|
|
43
|
-
scope:
|
|
43
|
+
scope: SCOPES.ALL,
|
|
44
44
|
path: `/v0.10/submission_id`,
|
|
45
45
|
}, options, sdkOptions);
|
|
46
46
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"task-submission.js","sourceRoot":"","sources":["../../../../../../src/lib/services/transfer/service/task-submission.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAE/D,OAAO,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AACpD,OAAO,EAAE,EAAE,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"task-submission.js","sourceRoot":"","sources":["../../../../../../src/lib/services/transfer/service/task-submission.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAE/D,OAAO,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AACpD,OAAO,EAAE,EAAE,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAK1C;;;;;GAKG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG,UAAU,OAAO,EAAE,UAAuB;IACpE,MAAM,qBAAqB,GAAG;QAC5B,OAAO,kBACL,SAAS,EAAE,QAAQ,IAChB,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,OAAO,CACpB;QACD,OAAO,kCACF,oBAAoB,CAAC,YAAY,CAAC,IAAI,CAAC,GACvC,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,OAAO,CACpB;KACF,CAAC;IACF,OAAO,cAAc,CACnB;QACE,OAAO,EAAE,EAAE;QACX,KAAK,EAAE,MAAM,CAAC,GAAG;QACjB,IAAI,EAAE,eAAe;QACrB,MAAM,EAAE,YAAY,CAAC,IAAI;KAC1B,EACD,qBAAqB,EACrB,UAAU,CACX,CAAC;AACJ,CAEE,CAAC;AAEH,MAAM,CAAC,MAAM,cAAc,GAAG,UAAU,OAAO,EAAE,UAAuB;IACtE,MAAM,qBAAqB,GAAG;QAC5B,OAAO,kBACL,SAAS,EAAE,UAAU,IAClB,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,OAAO,CACpB;QACD,OAAO,kCACF,oBAAoB,CAAC,YAAY,CAAC,IAAI,CAAC,GACvC,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,OAAO,CACpB;KACF,CAAC;IACF,OAAO,cAAc,CACnB;QACE,OAAO,EAAE,EAAE;QACX,KAAK,EAAE,MAAM,CAAC,GAAG;QACjB,IAAI,EAAE,iBAAiB;QACvB,MAAM,EAAE,YAAY,CAAC,IAAI;KAC1B,EACD,qBAAqB,EACrB,UAAU,CACX,CAAC;AACJ,CAEE,CAAC;AAEH;;;;;GAKG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG,UAAU,OAAQ,EAAE,UAAW;IACzD,OAAO,cAAc,CACnB;QACE,OAAO,EAAE,EAAE;QACX,KAAK,EAAE,MAAM,CAAC,GAAG;QACjB,IAAI,EAAE,sBAAsB;KAC7B,EACD,OAAO,EACP,UAAU,CACX,CAAC;AACJ,CAGE,CAAC"}
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Get a list of tasks submitted by the current user.
|
|
3
|
+
* @see https://docs.globus.org/api/transfer/task/#get_task_list
|
|
4
|
+
*/
|
|
5
|
+
export declare const getAll: (options?: ({
|
|
6
|
+
query?: ({
|
|
7
|
+
limit?: `${number}` | undefined;
|
|
8
|
+
offset?: `${number}` | undefined;
|
|
9
|
+
} & Record<string, string>) | undefined;
|
|
10
|
+
headers?: Record<string, string> | undefined;
|
|
11
|
+
payload?: undefined;
|
|
12
|
+
} & {
|
|
13
|
+
query?: {
|
|
14
|
+
[key: string]: string | number | (string | number | null | undefined)[] | null | undefined;
|
|
15
|
+
} | undefined;
|
|
16
|
+
headers?: import("../../../services/types.js").Headers | undefined;
|
|
17
|
+
}) | undefined, sdkOptions?: import("../../../services/types.js").SDKOptions | undefined) => Promise<Response>;
|
|
18
|
+
/**
|
|
19
|
+
* Fetch a task by its UUID.
|
|
20
|
+
* @see https://docs.globus.org/api/transfer/task/#get_task_by_id
|
|
21
|
+
*/
|
|
22
|
+
export declare const get: (task_id: string, options?: ({
|
|
23
|
+
query?: undefined;
|
|
24
|
+
payload?: undefined;
|
|
25
|
+
} & {
|
|
26
|
+
query?: {
|
|
27
|
+
[key: string]: string | number | (string | number | null | undefined)[] | null | undefined;
|
|
28
|
+
} | undefined;
|
|
29
|
+
headers?: import("../../../services/types.js").Headers | undefined;
|
|
30
|
+
}) | undefined, sdkOptions?: import("../../../services/types.js").SDKOptions | undefined) => Promise<Response>;
|
|
31
|
+
/**
|
|
32
|
+
* @see https://docs.globus.org/api/transfer/task/#update_task_by_id
|
|
33
|
+
*/
|
|
34
|
+
export declare const update: (task_id: string, options?: ({
|
|
35
|
+
query?: undefined;
|
|
36
|
+
payload: Record<string, string>;
|
|
37
|
+
} & {
|
|
38
|
+
query?: {
|
|
39
|
+
[key: string]: string | number | (string | number | null | undefined)[] | null | undefined;
|
|
40
|
+
} | undefined;
|
|
41
|
+
headers?: import("../../../services/types.js").Headers | undefined;
|
|
42
|
+
}) | undefined, sdkOptions?: import("../../../services/types.js").SDKOptions | undefined) => Promise<Response>;
|
|
43
|
+
/**
|
|
44
|
+
* @see https://docs.globus.org/api/transfer/task/#cancel_task_by_id
|
|
45
|
+
*/
|
|
46
|
+
export declare const cancel: (task_id: string, options?: ({
|
|
47
|
+
query?: undefined;
|
|
48
|
+
payload?: undefined;
|
|
49
|
+
} & {
|
|
50
|
+
query?: {
|
|
51
|
+
[key: string]: string | number | (string | number | null | undefined)[] | null | undefined;
|
|
52
|
+
} | undefined;
|
|
53
|
+
headers?: import("../../../services/types.js").Headers | undefined;
|
|
54
|
+
}) | undefined, sdkOptions?: import("../../../services/types.js").SDKOptions | undefined) => Promise<Response>;
|
|
55
|
+
/**
|
|
56
|
+
* @see https://docs.globus.org/api/transfer/task/#remove_task_by_id
|
|
57
|
+
*/
|
|
58
|
+
export declare const remove: (task_id: string, options?: ({
|
|
59
|
+
query?: undefined;
|
|
60
|
+
payload?: undefined;
|
|
61
|
+
} & {
|
|
62
|
+
query?: {
|
|
63
|
+
[key: string]: string | number | (string | number | null | undefined)[] | null | undefined;
|
|
64
|
+
} | undefined;
|
|
65
|
+
headers?: import("../../../services/types.js").Headers | undefined;
|
|
66
|
+
}) | undefined, sdkOptions?: import("../../../services/types.js").SDKOptions | undefined) => Promise<Response>;
|
|
67
|
+
/**
|
|
68
|
+
* @see https://docs.globus.org/api/transfer/task/#get_event_list
|
|
69
|
+
*/
|
|
70
|
+
export declare const getEventList: (task_id: string, options?: ({
|
|
71
|
+
query?: Record<string, string> | undefined;
|
|
72
|
+
headers?: Record<string, string> | undefined;
|
|
73
|
+
payload?: undefined;
|
|
74
|
+
} & {
|
|
75
|
+
query?: {
|
|
76
|
+
[key: string]: string | number | (string | number | null | undefined)[] | null | undefined;
|
|
77
|
+
} | undefined;
|
|
78
|
+
headers?: import("../../../services/types.js").Headers | undefined;
|
|
79
|
+
}) | undefined, sdkOptions?: import("../../../services/types.js").SDKOptions | undefined) => Promise<Response>;
|
|
80
|
+
/**
|
|
81
|
+
* @see https://docs.globus.org/api/transfer/task/#get_task_successful_transfers
|
|
82
|
+
*/
|
|
83
|
+
export declare const getSuccessfulTransfers: (task_id: string, options?: ({
|
|
84
|
+
query?: Record<string, string> | undefined;
|
|
85
|
+
headers?: Record<string, string> | undefined;
|
|
86
|
+
payload?: undefined;
|
|
87
|
+
} & {
|
|
88
|
+
query?: {
|
|
89
|
+
[key: string]: string | number | (string | number | null | undefined)[] | null | undefined;
|
|
90
|
+
} | undefined;
|
|
91
|
+
headers?: import("../../../services/types.js").Headers | undefined;
|
|
92
|
+
}) | undefined, sdkOptions?: import("../../../services/types.js").SDKOptions | undefined) => Promise<Response>;
|
|
93
|
+
/**
|
|
94
|
+
* @see https://docs.globus.org/api/transfer/task/#get_task_skipped_errors
|
|
95
|
+
*/
|
|
96
|
+
export declare const getSkippedErrors: (task_id: string, options?: ({
|
|
97
|
+
query?: Record<string, string> | undefined;
|
|
98
|
+
headers?: Record<string, string> | undefined;
|
|
99
|
+
payload?: undefined;
|
|
100
|
+
} & {
|
|
101
|
+
query?: {
|
|
102
|
+
[key: string]: string | number | (string | number | null | undefined)[] | null | undefined;
|
|
103
|
+
} | undefined;
|
|
104
|
+
headers?: import("../../../services/types.js").Headers | undefined;
|
|
105
|
+
}) | undefined, sdkOptions?: import("../../../services/types.js").SDKOptions | undefined) => Promise<Response>;
|
|
106
|
+
/**
|
|
107
|
+
* @see https://docs.globus.org/api/transfer/task/#get_task_pause_info
|
|
108
|
+
*/
|
|
109
|
+
export declare const getPauseInfo: (task_id: string, options?: ({
|
|
110
|
+
query?: Record<string, string> | undefined;
|
|
111
|
+
headers?: Record<string, string> | undefined;
|
|
112
|
+
payload?: undefined;
|
|
113
|
+
} & {
|
|
114
|
+
query?: {
|
|
115
|
+
[key: string]: string | number | (string | number | null | undefined)[] | null | undefined;
|
|
116
|
+
} | undefined;
|
|
117
|
+
headers?: import("../../../services/types.js").Headers | undefined;
|
|
118
|
+
}) | undefined, sdkOptions?: import("../../../services/types.js").SDKOptions | undefined) => Promise<Response>;
|
|
119
|
+
//# sourceMappingURL=task.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"task.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/services/transfer/service/task.ts"],"names":[],"mappings":"AAYA;;;GAGG;AACH,eAAO,MAAM,MAAM;;;;;;;;;;;;8GAsBlB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,GAAG;;;;;;;;8GAiBf,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,MAAM;;aAeN,OAAO,MAAM,EAAE,MAAM,CAAC;;;;;;8GAElC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,MAAM;;;;;;;;8GAkBlB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,MAAM;;;;;;;;8GAkBlB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,YAAY;;;;;;;;;8GAiBxB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,sBAAsB;;;;;;;;;8GAiBlC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,gBAAgB;;;;;;;;;8GAiB5B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,YAAY;;;;;;;;;8GAiBxB,CAAC"}
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import { HTTP_METHODS, serviceRequest } from '../../shared.js';
|
|
2
|
+
import { ID, SCOPES } from '../config.js';
|
|
3
|
+
/**
|
|
4
|
+
* Get a list of tasks submitted by the current user.
|
|
5
|
+
* @see https://docs.globus.org/api/transfer/task/#get_task_list
|
|
6
|
+
*/
|
|
7
|
+
export const getAll = function (options = {}, sdkOptions) {
|
|
8
|
+
return serviceRequest({
|
|
9
|
+
service: ID,
|
|
10
|
+
scope: SCOPES.ALL,
|
|
11
|
+
path: `/v0.10/task_list`,
|
|
12
|
+
}, options, sdkOptions);
|
|
13
|
+
};
|
|
14
|
+
/**
|
|
15
|
+
* Fetch a task by its UUID.
|
|
16
|
+
* @see https://docs.globus.org/api/transfer/task/#get_task_by_id
|
|
17
|
+
*/
|
|
18
|
+
export const get = function (task_id, options, sdkOptions) {
|
|
19
|
+
return serviceRequest({
|
|
20
|
+
service: ID,
|
|
21
|
+
scope: SCOPES.ALL,
|
|
22
|
+
path: `/v0.10/task/${task_id}`,
|
|
23
|
+
}, options, sdkOptions);
|
|
24
|
+
};
|
|
25
|
+
/**
|
|
26
|
+
* @see https://docs.globus.org/api/transfer/task/#update_task_by_id
|
|
27
|
+
*/
|
|
28
|
+
export const update = function (task_id, options, sdkOptions) {
|
|
29
|
+
return serviceRequest({
|
|
30
|
+
service: ID,
|
|
31
|
+
scope: SCOPES.ALL,
|
|
32
|
+
path: `/v0.10/task/${task_id}`,
|
|
33
|
+
method: HTTP_METHODS.PUT,
|
|
34
|
+
}, options, sdkOptions);
|
|
35
|
+
};
|
|
36
|
+
/**
|
|
37
|
+
* @see https://docs.globus.org/api/transfer/task/#cancel_task_by_id
|
|
38
|
+
*/
|
|
39
|
+
export const cancel = function (task_id, options, sdkOptions) {
|
|
40
|
+
return serviceRequest({
|
|
41
|
+
service: ID,
|
|
42
|
+
scope: SCOPES.ALL,
|
|
43
|
+
path: `/v0.10/task/${task_id}/cancel`,
|
|
44
|
+
method: HTTP_METHODS.POST,
|
|
45
|
+
}, options, sdkOptions);
|
|
46
|
+
};
|
|
47
|
+
/**
|
|
48
|
+
* @see https://docs.globus.org/api/transfer/task/#remove_task_by_id
|
|
49
|
+
*/
|
|
50
|
+
export const remove = function (task_id, options, sdkOptions) {
|
|
51
|
+
return serviceRequest({
|
|
52
|
+
service: ID,
|
|
53
|
+
scope: SCOPES.ALL,
|
|
54
|
+
path: `/v0.10/task/${task_id}/remove`,
|
|
55
|
+
method: HTTP_METHODS.POST,
|
|
56
|
+
}, options, sdkOptions);
|
|
57
|
+
};
|
|
58
|
+
/**
|
|
59
|
+
* @see https://docs.globus.org/api/transfer/task/#get_event_list
|
|
60
|
+
*/
|
|
61
|
+
export const getEventList = function (task_id, options, sdkOptions) {
|
|
62
|
+
return serviceRequest({
|
|
63
|
+
service: ID,
|
|
64
|
+
scope: SCOPES.ALL,
|
|
65
|
+
path: `/v0.10/task/${task_id}/event_list`,
|
|
66
|
+
}, options, sdkOptions);
|
|
67
|
+
};
|
|
68
|
+
/**
|
|
69
|
+
* @see https://docs.globus.org/api/transfer/task/#get_task_successful_transfers
|
|
70
|
+
*/
|
|
71
|
+
export const getSuccessfulTransfers = function (task_id, options, sdkOptions) {
|
|
72
|
+
return serviceRequest({
|
|
73
|
+
service: ID,
|
|
74
|
+
scope: SCOPES.ALL,
|
|
75
|
+
path: `/v0.10/task/${task_id}/successful_transfers`,
|
|
76
|
+
}, options, sdkOptions);
|
|
77
|
+
};
|
|
78
|
+
/**
|
|
79
|
+
* @see https://docs.globus.org/api/transfer/task/#get_task_skipped_errors
|
|
80
|
+
*/
|
|
81
|
+
export const getSkippedErrors = function (task_id, options, sdkOptions) {
|
|
82
|
+
return serviceRequest({
|
|
83
|
+
service: ID,
|
|
84
|
+
scope: SCOPES.ALL,
|
|
85
|
+
path: `/v0.10/task/${task_id}/skipped_errors`,
|
|
86
|
+
}, options, sdkOptions);
|
|
87
|
+
};
|
|
88
|
+
/**
|
|
89
|
+
* @see https://docs.globus.org/api/transfer/task/#get_task_pause_info
|
|
90
|
+
*/
|
|
91
|
+
export const getPauseInfo = function (task_id, options, sdkOptions) {
|
|
92
|
+
return serviceRequest({
|
|
93
|
+
service: ID,
|
|
94
|
+
scope: SCOPES.ALL,
|
|
95
|
+
path: `/v0.10/task/${task_id}/pause_info`,
|
|
96
|
+
}, options, sdkOptions);
|
|
97
|
+
};
|
|
98
|
+
//# sourceMappingURL=task.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"task.js","sourceRoot":"","sources":["../../../../../../src/lib/services/transfer/service/task.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAE/D,OAAO,EAAE,EAAE,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAU1C;;;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,GAAG;QACjB,IAAI,EAAE,kBAAkB;KACzB,EACD,OAAO,EACP,UAAU,CACX,CAAC;AACJ,CAYC,CAAC;AAEF;;;GAGG;AACH,MAAM,CAAC,MAAM,GAAG,GAAG,UAAU,OAAO,EAAE,OAAQ,EAAE,UAAW;IACzD,OAAO,cAAc,CACnB;QACE,OAAO,EAAE,EAAE;QACX,KAAK,EAAE,MAAM,CAAC,GAAG;QACjB,IAAI,EAAE,eAAe,OAAO,EAAE;KAC/B,EACD,OAAO,EACP,UAAU,CACX,CAAC;AACJ,CAOC,CAAC;AAEF;;GAEG;AACH,MAAM,CAAC,MAAM,MAAM,GAAG,UAAU,OAAO,EAAE,OAAQ,EAAE,UAAW;IAC5D,OAAO,cAAc,CACnB;QACE,OAAO,EAAE,EAAE;QACX,KAAK,EAAE,MAAM,CAAC,GAAG;QACjB,IAAI,EAAE,eAAe,OAAO,EAAE;QAC9B,MAAM,EAAE,YAAY,CAAC,GAAG;KACzB,EACD,OAAO,EACP,UAAU,CACX,CAAC;AACJ,CAMC,CAAC;AAEF;;GAEG;AACH,MAAM,CAAC,MAAM,MAAM,GAAG,UAAU,OAAO,EAAE,OAAQ,EAAE,UAAW;IAC5D,OAAO,cAAc,CACnB;QACE,OAAO,EAAE,EAAE;QACX,KAAK,EAAE,MAAM,CAAC,GAAG;QACjB,IAAI,EAAE,eAAe,OAAO,SAAS;QACrC,MAAM,EAAE,YAAY,CAAC,IAAI;KAC1B,EACD,OAAO,EACP,UAAU,CACX,CAAC;AACJ,CAOC,CAAC;AAEF;;GAEG;AACH,MAAM,CAAC,MAAM,MAAM,GAAG,UAAU,OAAO,EAAE,OAAQ,EAAE,UAAW;IAC5D,OAAO,cAAc,CACnB;QACE,OAAO,EAAE,EAAE;QACX,KAAK,EAAE,MAAM,CAAC,GAAG;QACjB,IAAI,EAAE,eAAe,OAAO,SAAS;QACrC,MAAM,EAAE,YAAY,CAAC,IAAI;KAC1B,EACD,OAAO,EACP,UAAU,CACX,CAAC;AACJ,CAOC,CAAC;AAEF;;GAEG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG,UAAU,OAAO,EAAE,OAAQ,EAAE,UAAW;IAClE,OAAO,cAAc,CACnB;QACE,OAAO,EAAE,EAAE;QACX,KAAK,EAAE,MAAM,CAAC,GAAG;QACjB,IAAI,EAAE,eAAe,OAAO,aAAa;KAC1C,EACD,OAAO,EACP,UAAU,CACX,CAAC;AACJ,CAOC,CAAC;AAEF;;GAEG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAAG,UAAU,OAAO,EAAE,OAAQ,EAAE,UAAW;IAC5E,OAAO,cAAc,CACnB;QACE,OAAO,EAAE,EAAE;QACX,KAAK,EAAE,MAAM,CAAC,GAAG;QACjB,IAAI,EAAE,eAAe,OAAO,uBAAuB;KACpD,EACD,OAAO,EACP,UAAU,CACX,CAAC;AACJ,CAOC,CAAC;AAEF;;GAEG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,UAAU,OAAO,EAAE,OAAQ,EAAE,UAAW;IACtE,OAAO,cAAc,CACnB;QACE,OAAO,EAAE,EAAE;QACX,KAAK,EAAE,MAAM,CAAC,GAAG;QACjB,IAAI,EAAE,eAAe,OAAO,iBAAiB;KAC9C,EACD,OAAO,EACP,UAAU,CACX,CAAC;AACJ,CAOC,CAAC;AAEF;;GAEG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG,UAAU,OAAO,EAAE,OAAQ,EAAE,UAAW;IAClE,OAAO,cAAc,CACnB;QACE,OAAO,EAAE,EAAE;QACX,KAAK,EAAE,MAAM,CAAC,GAAG;QACjB,IAAI,EAAE,eAAe,OAAO,aAAa;KAC1C,EACD,OAAO,EACP,UAAU,CACX,CAAC;AACJ,CAOC,CAAC"}
|
|
@@ -1,4 +1,67 @@
|
|
|
1
1
|
export interface Transfer {
|
|
2
|
+
/**
|
|
3
|
+
* Pagination used by the Transfer service.
|
|
4
|
+
*
|
|
5
|
+
* Each pagination definition contains a `Query` and `Response` type.
|
|
6
|
+
* - The `Query` type is used to define the query parameters used by the pagination method.
|
|
7
|
+
* - The `Response` type is used to define the response properties returned by the pagination method (usually as
|
|
8
|
+
* top-level keys in the response body).
|
|
9
|
+
*
|
|
10
|
+
* @see https://docs.globus.org/api/transfer/overview/#paging
|
|
11
|
+
*/
|
|
12
|
+
Paging: {
|
|
13
|
+
/**
|
|
14
|
+
* @see https://docs.globus.org/api/transfer/overview/#offset_paging
|
|
15
|
+
*/
|
|
16
|
+
Offset: {
|
|
17
|
+
Query: {
|
|
18
|
+
limit?: `${number}`;
|
|
19
|
+
offset?: `${number}`;
|
|
20
|
+
};
|
|
21
|
+
Response: {
|
|
22
|
+
limit: number;
|
|
23
|
+
offset: number;
|
|
24
|
+
has_next_page: `${boolean}`;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
/**
|
|
28
|
+
* @see https://docs.globus.org/api/transfer/overview/#marker_paging
|
|
29
|
+
*/
|
|
30
|
+
Marker: {
|
|
31
|
+
Query: {
|
|
32
|
+
marker?: string;
|
|
33
|
+
};
|
|
34
|
+
Response: {
|
|
35
|
+
next_marker: string | null;
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
/**
|
|
39
|
+
* @see https://docs.globus.org/api/transfer/overview/#last_key_paging
|
|
40
|
+
*/
|
|
41
|
+
LastKey: {
|
|
42
|
+
Query: {
|
|
43
|
+
limit?: `${number}`;
|
|
44
|
+
last_key: string;
|
|
45
|
+
};
|
|
46
|
+
Response: {
|
|
47
|
+
has_next_page: `${boolean}`;
|
|
48
|
+
last_key: string | null;
|
|
49
|
+
limit: number;
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
/**
|
|
53
|
+
* @see https://docs.globus.org/api/transfer/overview/#next_token_paging
|
|
54
|
+
*/
|
|
55
|
+
NextToken: {
|
|
56
|
+
Query: {
|
|
57
|
+
next_token?: string;
|
|
58
|
+
max_results?: `${number}`;
|
|
59
|
+
};
|
|
60
|
+
Response: {
|
|
61
|
+
next_token: string | null;
|
|
62
|
+
};
|
|
63
|
+
};
|
|
64
|
+
};
|
|
2
65
|
/**
|
|
3
66
|
* @see https://docs.globus.org/api/transfer/file_operations/#list_directory_contents
|
|
4
67
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/lib/services/transfer/types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,QAAQ;IACvB;;OAEG;IACH,qBAAqB,EAAE;QACrB,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,WAAW,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;QAC/B,KAAK,CAAC,EAAE,GAAG,MAAM,EAAE,CAAC;QACpB,MAAM,CAAC,EAAE,GAAG,MAAM,EAAE,CAAC;QACrB,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,MAAM,CAAC,EAAE,MAAM,CAAC;KACjB,CAAC;IAEF,OAAO,EAAE;QACP,KAAK,EAAE;YACL,IAAI,EAAE,MAAM,CAAC;SACd,CAAC;QACF,MAAM,EAAE;YACN,SAAS,EAAE,OAAO,CAAC;YACnB,QAAQ,EAAE,MAAM,CAAC;YACjB,QAAQ,EAAE,MAAM,CAAC;SAClB,CAAC;QACF,OAAO,EAAE;YACP,SAAS,EAAE,SAAS,CAAC;YACrB,IAAI,EAAE,MAAM,CAAC;YACb,cAAc,EAAE,MAAM,CAAC;SACxB,CAAC;QAEF,MAAM,EAAE;YACN,SAAS,EAAE,QAAQ,CAAC;YACpB,QAAQ,EAAE,MAAM,CAAC;YACjB,aAAa,EAAE,MAAM,CAAC;YACtB,IAAI,EAAE;gBAAE,SAAS,EAAE,MAAM,CAAC;gBAAC,IAAI,EAAE,MAAM,CAAA;aAAE,EAAE,CAAC;YAC5C,cAAc,CAAC,EAAE,OAAO,CAAC;YACzB,SAAS,CAAC,EAAE,OAAO,CAAC;SACrB,CAAC;QAEF,QAAQ,EAAE;YACR,SAAS,EAAE,UAAU,CAAC;SACvB,CAAC;KACH,CAAC;CACH"}
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/lib/services/transfer/types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,QAAQ;IACvB;;;;;;;;;OASG;IACH,MAAM,EAAE;QACN;;WAEG;QACH,MAAM,EAAE;YACN,KAAK,EAAE;gBACL,KAAK,CAAC,EAAE,GAAG,MAAM,EAAE,CAAC;gBACpB,MAAM,CAAC,EAAE,GAAG,MAAM,EAAE,CAAC;aACtB,CAAC;YACF,QAAQ,EAAE;gBACR,KAAK,EAAE,MAAM,CAAC;gBACd,MAAM,EAAE,MAAM,CAAC;gBACf,aAAa,EAAE,GAAG,OAAO,EAAE,CAAC;aAC7B,CAAC;SACH,CAAC;QACF;;WAEG;QACH,MAAM,EAAE;YACN,KAAK,EAAE;gBACL,MAAM,CAAC,EAAE,MAAM,CAAC;aACjB,CAAC;YACF,QAAQ,EAAE;gBACR,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;aAC5B,CAAC;SACH,CAAC;QACF;;WAEG;QACH,OAAO,EAAE;YACP,KAAK,EAAE;gBACL,KAAK,CAAC,EAAE,GAAG,MAAM,EAAE,CAAC;gBACpB,QAAQ,EAAE,MAAM,CAAC;aAClB,CAAC;YACF,QAAQ,EAAE;gBACR,aAAa,EAAE,GAAG,OAAO,EAAE,CAAC;gBAC5B,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;gBACxB,KAAK,EAAE,MAAM,CAAC;aACf,CAAC;SACH,CAAC;QACF;;WAEG;QACH,SAAS,EAAE;YACT,KAAK,EAAE;gBACL,UAAU,CAAC,EAAE,MAAM,CAAC;gBACpB,WAAW,CAAC,EAAE,GAAG,MAAM,EAAE,CAAC;aAC3B,CAAC;YACF,QAAQ,EAAE;gBACR,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;aAC3B,CAAC;SACH,CAAC;KACH,CAAC;IAEF;;OAEG;IACH,qBAAqB,EAAE;QACrB,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,WAAW,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;QAC/B,KAAK,CAAC,EAAE,GAAG,MAAM,EAAE,CAAC;QACpB,MAAM,CAAC,EAAE,GAAG,MAAM,EAAE,CAAC;QACrB,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,MAAM,CAAC,EAAE,MAAM,CAAC;KACjB,CAAC;IAEF,OAAO,EAAE;QACP,KAAK,EAAE;YACL,IAAI,EAAE,MAAM,CAAC;SACd,CAAC;QACF,MAAM,EAAE;YACN,SAAS,EAAE,OAAO,CAAC;YACnB,QAAQ,EAAE,MAAM,CAAC;YACjB,QAAQ,EAAE,MAAM,CAAC;SAClB,CAAC;QACF,OAAO,EAAE;YACP,SAAS,EAAE,SAAS,CAAC;YACrB,IAAI,EAAE,MAAM,CAAC;YACb,cAAc,EAAE,MAAM,CAAC;SACxB,CAAC;QAEF,MAAM,EAAE;YACN,SAAS,EAAE,QAAQ,CAAC;YACpB,QAAQ,EAAE,MAAM,CAAC;YACjB,aAAa,EAAE,MAAM,CAAC;YACtB,IAAI,EAAE;gBAAE,SAAS,EAAE,MAAM,CAAC;gBAAC,IAAI,EAAE,MAAM,CAAA;aAAE,EAAE,CAAC;YAC5C,cAAc,CAAC,EAAE,OAAO,CAAC;YACzB,SAAS,CAAC,EAAE,OAAO,CAAC;SACrB,CAAC;QAEF,QAAQ,EAAE;YACR,SAAS,EAAE,UAAU,CAAC;SACvB,CAAC;KACH,CAAC;CACH"}
|
package/package.json
CHANGED
package/umd/globus.production.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var globus;(()=>{var e={98:(e,t,r)=>{var o="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==r.g&&r.g,n=function(){function e(){this.fetch=!1,this.DOMException=o.DOMException}return e.prototype=o,new e}();!function(e){!function(t){var r=void 0!==e&&e||"undefined"!=typeof self&&self||void 0!==r&&r,o="URLSearchParams"in r,n="Symbol"in r&&"iterator"in Symbol,i="FileReader"in r&&"Blob"in r&&function(){try{return new Blob,!0}catch(e){return!1}}(),s="FormData"in r,a="ArrayBuffer"in r;if(a)var c=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],u=ArrayBuffer.isView||function(e){return e&&c.indexOf(Object.prototype.toString.call(e))>-1};function l(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||""===e)throw new TypeError('Invalid character in header field name: "'+e+'"');return e.toLowerCase()}function p(e){return"string"!=typeof e&&(e=String(e)),e}function h(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return n&&(t[Symbol.iterator]=function(){return t}),t}function f(e){this.map={},e instanceof f?e.forEach((function(e,t){this.append(t,e)}),this):Array.isArray(e)?e.forEach((function(e){this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function d(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function g(e){return new Promise((function(t,r){e.onload=function(){t(e.result)},e.onerror=function(){r(e.error)}}))}function y(e){var t=new FileReader,r=g(t);return t.readAsArrayBuffer(e),r}function v(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function b(){return this.bodyUsed=!1,this._initBody=function(e){var t;this.bodyUsed=this.bodyUsed,this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:i&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:s&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:o&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():a&&i&&(t=e)&&DataView.prototype.isPrototypeOf(t)?(this._bodyArrayBuffer=v(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):a&&(ArrayBuffer.prototype.isPrototypeOf(e)||u(e))?this._bodyArrayBuffer=v(e):this._bodyText=e=Object.prototype.toString.call(e):this._bodyText="",this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):o&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},i&&(this.blob=function(){var e=d(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?d(this)||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer)):this.blob().then(y)}),this.text=function(){var e,t,r,o=d(this);if(o)return o;if(this._bodyBlob)return e=this._bodyBlob,r=g(t=new FileReader),t.readAsText(e),r;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),r=new Array(t.length),o=0;o<t.length;o++)r[o]=String.fromCharCode(t[o]);return r.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},s&&(this.formData=function(){return this.text().then(_)}),this.json=function(){return this.text().then(JSON.parse)},this}f.prototype.append=function(e,t){e=l(e),t=p(t);var r=this.map[e];this.map[e]=r?r+", "+t:t},f.prototype.delete=function(e){delete this.map[l(e)]},f.prototype.get=function(e){return e=l(e),this.has(e)?this.map[e]:null},f.prototype.has=function(e){return this.map.hasOwnProperty(l(e))},f.prototype.set=function(e,t){this.map[l(e)]=p(t)},f.prototype.forEach=function(e,t){for(var r in this.map)this.map.hasOwnProperty(r)&&e.call(t,this.map[r],r,this)},f.prototype.keys=function(){var e=[];return this.forEach((function(t,r){e.push(r)})),h(e)},f.prototype.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),h(e)},f.prototype.entries=function(){var e=[];return this.forEach((function(t,r){e.push([r,t])})),h(e)},n&&(f.prototype[Symbol.iterator]=f.prototype.entries);var m=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function w(e,t){if(!(this instanceof w))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var r,o,n=(t=t||{}).body;if(e instanceof w){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new f(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,n||null==e._bodyInit||(n=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new f(t.headers)),this.method=(o=(r=t.method||this.method||"GET").toUpperCase(),m.indexOf(o)>-1?o:r),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&n)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(n),!("GET"!==this.method&&"HEAD"!==this.method||"no-store"!==t.cache&&"no-cache"!==t.cache)){var i=/([?&])_=[^&]*/;i.test(this.url)?this.url=this.url.replace(i,"$1_="+(new Date).getTime()):this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}function _(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var r=e.split("="),o=r.shift().replace(/\+/g," "),n=r.join("=").replace(/\+/g," ");t.append(decodeURIComponent(o),decodeURIComponent(n))}})),t}function O(e,t){if(!(this instanceof O))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText=void 0===t.statusText?"":""+t.statusText,this.headers=new f(t.headers),this.url=t.url||"",this._initBody(e)}w.prototype.clone=function(){return new w(this,{body:this._bodyInit})},b.call(w.prototype),b.call(O.prototype),O.prototype.clone=function(){return new O(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new f(this.headers),url:this.url})},O.error=function(){var e=new O(null,{status:0,statusText:""});return e.type="error",e};var S=[301,302,303,307,308];O.redirect=function(e,t){if(-1===S.indexOf(t))throw new RangeError("Invalid status code");return new O(null,{status:t,headers:{location:e}})},t.DOMException=r.DOMException;try{new t.DOMException}catch(e){t.DOMException=function(e,t){this.message=e,this.name=t;var r=Error(e);this.stack=r.stack},t.DOMException.prototype=Object.create(Error.prototype),t.DOMException.prototype.constructor=t.DOMException}function A(e,o){return new Promise((function(n,s){var c=new w(e,o);if(c.signal&&c.signal.aborted)return s(new t.DOMException("Aborted","AbortError"));var u=new XMLHttpRequest;function l(){u.abort()}u.onload=function(){var e,t,r={status:u.status,statusText:u.statusText,headers:(e=u.getAllResponseHeaders()||"",t=new f,e.replace(/\r?\n[\t ]+/g," ").split("\r").map((function(e){return 0===e.indexOf("\n")?e.substr(1,e.length):e})).forEach((function(e){var r=e.split(":"),o=r.shift().trim();if(o){var n=r.join(":").trim();t.append(o,n)}})),t)};r.url="responseURL"in u?u.responseURL:r.headers.get("X-Request-URL");var o="response"in u?u.response:u.responseText;setTimeout((function(){n(new O(o,r))}),0)},u.onerror=function(){setTimeout((function(){s(new TypeError("Network request failed"))}),0)},u.ontimeout=function(){setTimeout((function(){s(new TypeError("Network request failed"))}),0)},u.onabort=function(){setTimeout((function(){s(new t.DOMException("Aborted","AbortError"))}),0)},u.open(c.method,function(e){try{return""===e&&r.location.href?r.location.href:e}catch(t){return e}}(c.url),!0),"include"===c.credentials?u.withCredentials=!0:"omit"===c.credentials&&(u.withCredentials=!1),"responseType"in u&&(i?u.responseType="blob":a&&c.headers.get("Content-Type")&&-1!==c.headers.get("Content-Type").indexOf("application/octet-stream")&&(u.responseType="arraybuffer")),!o||"object"!=typeof o.headers||o.headers instanceof f?c.headers.forEach((function(e,t){u.setRequestHeader(t,e)})):Object.getOwnPropertyNames(o.headers).forEach((function(e){u.setRequestHeader(e,p(o.headers[e]))})),c.signal&&(c.signal.addEventListener("abort",l),u.onreadystatechange=function(){4===u.readyState&&c.signal.removeEventListener("abort",l)}),u.send(void 0===c._bodyInit?null:c._bodyInit)}))}A.polyfill=!0,r.fetch||(r.fetch=A,r.Headers=f,r.Request=w,r.Response=O),t.Headers=f,t.Request=w,t.Response=O,t.fetch=A}({})}(n),n.fetch.ponyfill=!0,delete n.fetch.polyfill;var i=o.fetch?o:n;(t=i.fetch).default=i.fetch,t.fetch=i.fetch,t.Headers=i.Headers,t.Request=i.Request,t.Response=i.Response,e.exports=t},249:function(e,t,r){var o;e.exports=(o=o||function(e,t){var o;if("undefined"!=typeof window&&window.crypto&&(o=window.crypto),"undefined"!=typeof self&&self.crypto&&(o=self.crypto),"undefined"!=typeof globalThis&&globalThis.crypto&&(o=globalThis.crypto),!o&&"undefined"!=typeof window&&window.msCrypto&&(o=window.msCrypto),!o&&void 0!==r.g&&r.g.crypto&&(o=r.g.crypto),!o)try{o=r(480)}catch(e){}var n=function(){if(o){if("function"==typeof o.getRandomValues)try{return o.getRandomValues(new Uint32Array(1))[0]}catch(e){}if("function"==typeof o.randomBytes)try{return o.randomBytes(4).readInt32LE()}catch(e){}}throw new Error("Native crypto module could not be used to get secure random number.")},i=Object.create||function(){function e(){}return function(t){var r;return e.prototype=t,r=new e,e.prototype=null,r}}(),s={},a=s.lib={},c=a.Base={extend:function(e){var t=i(this);return e&&t.mixIn(e),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}},u=a.WordArray=c.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=null!=t?t:4*e.length},toString:function(e){return(e||p).stringify(this)},concat:function(e){var t=this.words,r=e.words,o=this.sigBytes,n=e.sigBytes;if(this.clamp(),o%4)for(var i=0;i<n;i++){var s=r[i>>>2]>>>24-i%4*8&255;t[o+i>>>2]|=s<<24-(o+i)%4*8}else for(var a=0;a<n;a+=4)t[o+a>>>2]=r[a>>>2];return this.sigBytes+=n,this},clamp:function(){var t=this.words,r=this.sigBytes;t[r>>>2]&=4294967295<<32-r%4*8,t.length=e.ceil(r/4)},clone:function(){var e=c.clone.call(this);return e.words=this.words.slice(0),e},random:function(e){for(var t=[],r=0;r<e;r+=4)t.push(n());return new u.init(t,e)}}),l=s.enc={},p=l.Hex={stringify:function(e){for(var t=e.words,r=e.sigBytes,o=[],n=0;n<r;n++){var i=t[n>>>2]>>>24-n%4*8&255;o.push((i>>>4).toString(16)),o.push((15&i).toString(16))}return o.join("")},parse:function(e){for(var t=e.length,r=[],o=0;o<t;o+=2)r[o>>>3]|=parseInt(e.substr(o,2),16)<<24-o%8*4;return new u.init(r,t/2)}},h=l.Latin1={stringify:function(e){for(var t=e.words,r=e.sigBytes,o=[],n=0;n<r;n++){var i=t[n>>>2]>>>24-n%4*8&255;o.push(String.fromCharCode(i))}return o.join("")},parse:function(e){for(var t=e.length,r=[],o=0;o<t;o++)r[o>>>2]|=(255&e.charCodeAt(o))<<24-o%4*8;return new u.init(r,t)}},f=l.Utf8={stringify:function(e){try{return decodeURIComponent(escape(h.stringify(e)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function(e){return h.parse(unescape(encodeURIComponent(e)))}},d=a.BufferedBlockAlgorithm=c.extend({reset:function(){this._data=new u.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=f.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var r,o=this._data,n=o.words,i=o.sigBytes,s=this.blockSize,a=i/(4*s),c=(a=t?e.ceil(a):e.max((0|a)-this._minBufferSize,0))*s,l=e.min(4*c,i);if(c){for(var p=0;p<c;p+=s)this._doProcessBlock(n,p);r=n.splice(0,c),o.sigBytes-=l}return new u.init(r,l)},clone:function(){var e=c.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0}),g=(a.Hasher=d.extend({cfg:c.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){d.reset.call(this),this._doReset()},update:function(e){return this._append(e),this._process(),this},finalize:function(e){return e&&this._append(e),this._doFinalize()},blockSize:16,_createHelper:function(e){return function(t,r){return new e.init(r).finalize(t)}},_createHmacHelper:function(e){return function(t,r){return new g.HMAC.init(e,r).finalize(t)}}}),s.algo={});return s}(Math),o)},269:function(e,t,r){var o,n,i;e.exports=(o=r(249),i=(n=o).lib.WordArray,n.enc.Base64={stringify:function(e){var t=e.words,r=e.sigBytes,o=this._map;e.clamp();for(var n=[],i=0;i<r;i+=3)for(var s=(t[i>>>2]>>>24-i%4*8&255)<<16|(t[i+1>>>2]>>>24-(i+1)%4*8&255)<<8|t[i+2>>>2]>>>24-(i+2)%4*8&255,a=0;a<4&&i+.75*a<r;a++)n.push(o.charAt(s>>>6*(3-a)&63));var c=o.charAt(64);if(c)for(;n.length%4;)n.push(c);return n.join("")},parse:function(e){var t=e.length,r=this._map,o=this._reverseMap;if(!o){o=this._reverseMap=[];for(var n=0;n<r.length;n++)o[r.charCodeAt(n)]=n}var s=r.charAt(64);if(s){var a=e.indexOf(s);-1!==a&&(t=a)}return function(e,t,r){for(var o=[],n=0,s=0;s<t;s++)if(s%4){var a=r[e.charCodeAt(s-1)]<<s%4*2|r[e.charCodeAt(s)]>>>6-s%4*2;o[n>>>2]|=a<<24-n%4*8,n++}return i.create(o,n)}(e,t,o)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="},o.enc.Base64)},433:function(e,t,r){var o;e.exports=(o=r(249),function(){if("function"==typeof ArrayBuffer){var e=o.lib.WordArray,t=e.init,r=e.init=function(e){if(e instanceof ArrayBuffer&&(e=new Uint8Array(e)),(e instanceof Int8Array||"undefined"!=typeof Uint8ClampedArray&&e instanceof Uint8ClampedArray||e instanceof Int16Array||e instanceof Uint16Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Float32Array||e instanceof Float64Array)&&(e=new Uint8Array(e.buffer,e.byteOffset,e.byteLength)),e instanceof Uint8Array){for(var r=e.byteLength,o=[],n=0;n<r;n++)o[n>>>2]|=e[n]<<24-n%4*8;t.call(this,o,r)}else t.apply(this,arguments)};r.prototype=e}}(),o.lib.WordArray)},153:function(e,t,r){var o;e.exports=(o=r(249),function(e){var t=o,r=t.lib,n=r.WordArray,i=r.Hasher,s=t.algo,a=[],c=[];!function(){function t(t){for(var r=e.sqrt(t),o=2;o<=r;o++)if(!(t%o))return!1;return!0}function r(e){return 4294967296*(e-(0|e))|0}for(var o=2,n=0;n<64;)t(o)&&(n<8&&(a[n]=r(e.pow(o,.5))),c[n]=r(e.pow(o,1/3)),n++),o++}();var u=[],l=s.SHA256=i.extend({_doReset:function(){this._hash=new n.init(a.slice(0))},_doProcessBlock:function(e,t){for(var r=this._hash.words,o=r[0],n=r[1],i=r[2],s=r[3],a=r[4],l=r[5],p=r[6],h=r[7],f=0;f<64;f++){if(f<16)u[f]=0|e[t+f];else{var d=u[f-15],g=(d<<25|d>>>7)^(d<<14|d>>>18)^d>>>3,y=u[f-2],v=(y<<15|y>>>17)^(y<<13|y>>>19)^y>>>10;u[f]=g+u[f-7]+v+u[f-16]}var b=o&n^o&i^n&i,m=(o<<30|o>>>2)^(o<<19|o>>>13)^(o<<10|o>>>22),w=h+((a<<26|a>>>6)^(a<<21|a>>>11)^(a<<7|a>>>25))+(a&l^~a&p)+c[f]+u[f];h=p,p=l,l=a,a=s+w|0,s=i,i=n,n=o,o=w+(m+b)|0}r[0]=r[0]+o|0,r[1]=r[1]+n|0,r[2]=r[2]+i|0,r[3]=r[3]+s|0,r[4]=r[4]+a|0,r[5]=r[5]+l|0,r[6]=r[6]+p|0,r[7]=r[7]+h|0},_doFinalize:function(){var t=this._data,r=t.words,o=8*this._nDataBytes,n=8*t.sigBytes;return r[n>>>5]|=128<<24-n%32,r[14+(n+64>>>9<<4)]=e.floor(o/4294967296),r[15+(n+64>>>9<<4)]=o,t.sigBytes=4*r.length,this._process(),this._hash},clone:function(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e}});t.SHA256=i._createHelper(l),t.HmacSHA256=i._createHmacHelper(l)}(Math),o.SHA256)},899:function(e,t,r){"use strict";var o=this&&this.__assign||function(){return o=Object.assign||function(e){for(var t,r=1,o=arguments.length;r<o;r++)for(var n in t=arguments[r])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},o.apply(this,arguments)},n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=n(r(153)),s=n(r(269)),a=n(r(433)),c=function(){function e(e){this.state="",this.codeVerifier="",this.corsRequestOptions={},this.config=e}return e.prototype.enableCorsCredentials=function(e){return this.corsRequestOptions=e?{credentials:"include",mode:"cors"}:{},this.corsRequestOptions},e.prototype.authorizeUrl=function(e){void 0===e&&(e={});var t=this.pkceChallengeFromVerifier(),r=new URLSearchParams(Object.assign({response_type:"code",client_id:this.config.client_id,state:this.getState(e.state||null),scope:this.config.requested_scopes,redirect_uri:this.config.redirect_uri,code_challenge:t,code_challenge_method:"S256"},e)).toString();return"".concat(this.config.authorization_endpoint,"?").concat(r)},e.prototype.exchangeForAccessToken=function(e,t){var r=this;return void 0===t&&(t={}),this.parseAuthResponseUrl(e).then((function(e){return fetch(r.config.token_endpoint,o({method:"POST",body:new URLSearchParams(Object.assign({grant_type:"authorization_code",code:e.code,client_id:r.config.client_id,redirect_uri:r.config.redirect_uri,code_verifier:r.getCodeVerifier()},t)),headers:{Accept:"application/json","Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"}},r.corsRequestOptions)).then((function(e){return e.json()}))}))},e.prototype.refreshAccessToken=function(e){return fetch(this.config.token_endpoint,{method:"POST",body:new URLSearchParams({grant_type:"refresh_token",client_id:this.config.client_id,refresh_token:e}),headers:{Accept:"application/json","Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"}}).then((function(e){return e.json()}))},e.prototype.getCodeVerifier=function(){return""===this.codeVerifier&&(this.codeVerifier=this.randomStringFromStorage("pkce_code_verifier")),this.codeVerifier},e.prototype.getState=function(e){void 0===e&&(e=null);var t="pkce_state";return null!==e&&this.getStore().setItem(t,e),""===this.state&&(this.state=this.randomStringFromStorage(t)),this.state},e.prototype.parseAuthResponseUrl=function(e){var t=new URL(e).searchParams;return this.validateAuthResponse({error:t.get("error"),query:t.get("query"),state:t.get("state"),code:t.get("code")})},e.prototype.pkceChallengeFromVerifier=function(){var e=(0,i.default)(this.getCodeVerifier());return s.default.stringify(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")},e.prototype.randomStringFromStorage=function(e){return null===this.getStore().getItem(e)&&this.getStore().setItem(e,a.default.random(64)),this.getStore().getItem(e)||""},e.prototype.validateAuthResponse=function(e){var t=this;return new Promise((function(r,o){return e.error?o({error:e.error}):e.state!==t.getState()?o({error:"Invalid State"}):r(e)}))},e.prototype.getStore=function(){var e;return(null===(e=this.config)||void 0===e?void 0:e.storage)||sessionStorage},e}();t.default=c},480:()=>{}},t={};function r(o){var n=t[o];if(void 0!==n)return n.exports;var i=t[o]={exports:{}};return e[o].call(i.exports,i,i.exports,r),i.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var o in t)r.o(t,o)&&!r.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};(()=>{"use strict";r.r(o),r.d(o,{auth:()=>u,authorization:()=>l,flows:()=>S,gcs:()=>x,groups:()=>w,search:()=>y,timer:()=>R,transfer:()=>d});var e={};r.r(e),r.d(e,{HOSTS:()=>N,ID:()=>L,SCOPES:()=>k});var t={};r.r(t),r.d(t,{HOSTS:()=>F,ID:()=>H});var n={};r.r(n),r.d(n,{HOSTS:()=>G,ID:()=>M,SCOPES:()=>$});var i={};r.r(i),r.d(i,{HOSTS:()=>V,ID:()=>q,SCOPES:()=>W});var s={};r.r(s),r.d(s,{HOSTS:()=>Y,ID:()=>z,SCOPES:()=>J});var a={};r.r(a),r.d(a,{HOSTS:()=>X,ID:()=>K});var c={};r.r(c),r.d(c,{get:()=>ye,getAll:()=>ve});var u={};r.r(u),r.d(u,{CONFIG:()=>be,getAuthorizationEndpoint:()=>me,getTokenEndpoint:()=>we,identities:()=>c});var l={};r.r(l),r.d(l,{PKCEAuthorization:()=>je,incremental:()=>xe,pkce:()=>Ie});var p={};r.r(p),r.d(p,{ls:()=>Ue,mkdir:()=>De,rename:()=>Ce,symlink:()=>Le});var h={};r.r(h),r.d(h,{submissionId:()=>He,submitDelete:()=>Ne,submitTransfer:()=>ke});var f={};r.r(f),r.d(f,{get:()=>Fe});var d={};r.r(d),r.d(d,{CONFIG:()=>Me,endpoint:()=>f,endpointSearch:()=>Re,fileOperations:()=>p,taskSubmission:()=>h});var g={};r.r(g),r.d(g,{get:()=>Ge,post:()=>$e});var y={};r.r(y),r.d(y,{CONFIG:()=>qe,query:()=>g});var v={};r.r(v),r.d(v,{get:()=>We,getMyGroups:()=>Ve});var b={};r.r(b),r.d(b,{get:()=>ze});var m={};r.r(m),r.d(m,{act:()=>Ye});var w={};r.r(w),r.d(w,{CONFIG:()=>Je,groups:()=>v,membership:()=>m,policies:()=>b});var _={};r.r(_),r.d(_,{destroy:()=>Ze,get:()=>Xe,getAll:()=>Ke,remove:()=>Qe});var O={};r.r(O),r.d(O,{getAll:()=>et});var S={};r.r(S),r.d(S,{CONFIG:()=>tt,flows:()=>_,runs:()=>O});var A={};r.r(A),r.d(A,{get:()=>ot,getAll:()=>rt,remove:()=>nt});var T={};r.r(T),r.d(T,{get:()=>it,patch:()=>at,update:()=>st});var E={};r.r(E),r.d(E,{create:()=>pt,get:()=>ut,getAll:()=>ct,remove:()=>lt});var P={};r.r(P),r.d(P,{get:()=>ft,getAll:()=>ht});var j={};r.r(j),r.d(j,{get:()=>gt,getAll:()=>dt});var I={};r.r(I),r.d(I,{info:()=>yt});var x={};r.r(x),r.d(x,{collections:()=>A,endpoint:()=>T,getRequiredScopes:()=>bt,roles:()=>E,storageGateways:()=>P,userCredentials:()=>j,versioning:()=>I});var R={};function B(e,t,r,o){if("a"===r&&!o)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!o:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?o:"a"===r?o.call(e):o?o.value:t.get(e)}function U(e,t,r,o,n){if("m"===o)throw new TypeError("Private method is not writable");if("a"===o&&!n)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!n:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===o?n.call(e,r):n?n.value=r:t.set(e,r),r}r.r(R),r.d(R,{CONFIG:()=>wt,create:()=>mt}),Object.create,Object.create,"function"==typeof SuppressedError&&SuppressedError;var D=r(899),C=r.n(D);const L="AUTH",N={integration:"auth.integration.globuscs.info",sandbox:"auth.sandbox.globuscs.info",production:"auth.globus.org",test:"auth.test.globuscs.info",staging:"auth.staging.globuscs.info",preview:"auth.preview.globus.org"},k={VIEW_IDENTITIES:"urn:globus:auth:scope:auth.globus.org:view_identities"},H="TRANSFER",F={sandbox:"transfer.sandbox.globuscs.info",production:"transfer.api.globusonline.org",staging:"transfer.api.staging.globuscs.info",integration:"transfer.api.integration.globuscs.info",test:"transfer.api.test.globuscs.info",preview:"transfer.api.preview.globus.org"},M="FLOWS",G={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"},$={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"},q="GROUPS",V={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"},W={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"},z="SEARCH",Y={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"},J={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"},K="TIMER",X={sandbox:"sandbox.timer.automate.globus.org",production:"timer.automate.globus.org",staging:"staging.timer.automate.globus.org",integration:"integration.timer.automate.globus.org",test:"test.timer.automate.globus.org",preview:"preview.timer.automate.globus.org"};class Q extends Error{constructor(e,t){super(),this.name="EnvironmentConfigurationError",this.message=`Invalid configuration value provided for ${e} (${t}).`}}function Z(e,t){const r="undefined"!=typeof window?window:process;let o;return o=function(e){return typeof window==typeof e}(r)?r:r.env,e in o?o[e]:t}const ee={PRODUCTION:"production",PREVIEW:"preview",STAGING:"staging",SANDBOX:"sandbox",INTEGRATION:"integration",TEST:"test"};function te(){const e=Z("GLOBUS_SDK_ENVIRONMENT",ee.PRODUCTION);if(!e||!Object.values(ee).includes(e))throw new Q("GLOBUS_SDK_ENVIRONMENT",e);return e}const re={[L]:N,[H]:F,[M]:G,[q]:V,[z]:Y,[K]:X};function oe(e,t,r,o){let n;return n="object"==typeof e?new URL(t,e.host):function(e,t="",r=te()){const o=function(e,t=te()){const r=function(e,t){return re[e][t]}(e,t);return Z(`GLOBUS_SDK_SERVICE_URL_${e}`,r?`https://${r}`:void 0)}(e,r);return new URL(t,o)}(e,t,null==o?void 0:o.environment),r&&r.search&&(n.search=function(e){const t=new URLSearchParams;return Array.from(Object.entries(e)).forEach((([e,r])=>{Array.isArray(r)?t.set(e,r.join(",")):void 0!==r&&t.set(e,String(r))})),t.toString()}(r.search)),n.toString()}var ne=r(98);const ie=r.n(ne)();var se;class ae{constructor(){se.set(this,{})}get(e){return B(this,se,"f")[e]}set(e,t){B(this,se,"f")[e]=t}remove(e){delete B(this,se,"f")[e]}clear(){U(this,se,{},"f")}}se=new WeakMap;class ce{get(e){const t=localStorage.getItem(e);return null!==t?JSON.parse(t):null}set(e,t){localStorage.setItem(e,JSON.stringify(t))}remove(e){localStorage.removeItem(e)}clear(){localStorage.clear()}}let ue;function le(){if(!ue)throw Error("You must create a storage system.");return ue}function pe(e){e.scope.split(" ").forEach((t=>{le().set(t,e)}))}function he(e){const t=le().get(e);return t&&function(e){const t=e;return Boolean(t.token_type&&t.access_token)}(t)?`${t.token_type} ${t.access_token}`:null}function fe(e,t,r={}){const o=r.headers||{};if(!(null==o?void 0:o.Authorization)){const t=he(e);t&&(o.Authorization=t)}return!(null==o?void 0:o["Content-Type"])&&(null==r?void 0:r.body)&&(o["Content-Type"]="application/json"),(null==r?void 0:r.__callable)?r.__callable(t,Object.assign(Object.assign({},r),{headers:o})):ie(t,Object.assign(Object.assign({},r),{headers:o}))}var de;function ge(e,t,r){var o,n,i;const s=function(e){var t,r,o,n,i,s;let a=Z("GLOBUS_SDK_OPTIONS",{});return"string"==typeof a&&(a=JSON.parse(a)),Object.assign(Object.assign(Object.assign({},a),e),{fetch:Object.assign(Object.assign(Object.assign({},null==a?void 0:a.fetch),null==e?void 0:e.fetch),{options:Object.assign(Object.assign(Object.assign({},null===(t=null==a?void 0:a.fetch)||void 0===t?void 0:t.options),null===(r=null==e?void 0:e.fetch)||void 0===r?void 0:r.options),{headers:Object.assign(Object.assign({},null===(n=null===(o=null==a?void 0:a.fetch)||void 0===o?void 0:o.options)||void 0===n?void 0:n.headers),null===(s=null===(i=null==e?void 0:e.fetch)||void 0===i?void 0:i.options)||void 0===s?void 0:s.headers)})})})}(r);return fe(e.scope,oe(e.service,e.path,{search:null==t?void 0:t.query},s),Object.assign(Object.assign({method:e.method,body:(null==t?void 0:t.payload)?JSON.stringify(t.payload):void 0},null===(o=null==s?void 0:s.fetch)||void 0===o?void 0:o.options),{headers:Object.assign(Object.assign({},null==t?void 0:t.headers),null===(i=null===(n=null==s?void 0:s.fetch)||void 0===n?void 0:n.options)||void 0===i?void 0:i.headers)}))}!function(e){e.POST="POST",e.GET="GET",e.DELETE="DELETE",e.PUT="PUT",e.PATCH="PATCH"}(de||(de={}));const ye=function(e,t={},r){return ge({service:L,scope:k.VIEW_IDENTITIES,path:`/identities/${e}`},t,r)},ve=function(e={},t){return ge({service:L,scope:k.VIEW_IDENTITIES,path:"/identities"},e,t)},be=e;function me(){return oe(L,"/v2/oauth2/authorize")}function we(){return oe(L,"/v2/oauth2/token")}var _e,Oe,Se,Ae,Te,Ee;let Pe;class je{constructor(e){if(_e.add(this),Oe.set(this,void 0),Se.set(this,void 0),Ae.set(this,void 0),Pe=function(e="memory"){if(!ue){let t;t="localStorage"===e?ce:"memory"===e?ae:e,ue=new t}return ue}("localStorage"),!e.client_id)throw new Error("You must provide a `client_id`.");U(this,Se,Object.assign({client_id:e.client_id,authorization_endpoint:me(),token_endpoint:we()},e),"f"),U(this,Oe,B(this,_e,"m",Te).call(this),"f")}reset(){B(this,_e,"m",Ee).call(this),le().clear()}redirect(){this.reset(),window.location.replace(B(this,Oe,"f").authorizeUrl())}handleCodeRedirect(e={removeStateAndReplaceLocation:!0}){return t=this,r=void 0,n=function*(){const t=new URL(window.location.href),r=new URLSearchParams(t.search);if(!r.get("code"))return;const o=yield B(this,Oe,"f").exchangeForAccessToken(t.toString());var n;U(this,Ae,o,"f"),pe(n=B(this,Ae,"f")),"other_tokens"in n&&n.other_tokens.forEach(pe),e.removeStateAndReplaceLocation&&(r.delete("code"),r.delete("state"),t.search=r.toString(),window.location.replace(t))},new((o=void 0)||(o=Promise))((function(e,i){function s(e){try{c(n.next(e))}catch(e){i(e)}}function a(e){try{c(n.throw(e))}catch(e){i(e)}}function c(t){var r;t.done?e(t.value):(r=t.value,r instanceof o?r:new o((function(e){e(r)}))).then(s,a)}c((n=n.apply(t,r||[])).next())}));var t,r,o,n}hasToken(){return B(this,Se,"f").requested_scopes.split(" ").every((e=>Boolean(he(e))))}revoke(){this.reset()}}function Ie(e){return new je(e)}function xe(e){return new je(e)}Oe=new WeakMap,Se=new WeakMap,Ae=new WeakMap,_e=new WeakSet,Te=function(){return new(C())(B(this,Se,"f"))},Ee=function(){sessionStorage.removeItem("pkce_state"),sessionStorage.removeItem("pkce_code_verifier")};const Re=function(e,t){const r=Object.assign(Object.assign({},e),{query:null==e?void 0:e.query});return ge({service:H,scope:"urn:globus:auth:scope:transfer.api.globus.org:all",path:"/v0.10/endpoint_search"},r,t)};function Be(e){return e===de.GET?{}:{"Content-Type":"application/json"}}const Ue=function(e,t,r){return ge({service:H,scope:"urn:globus:auth:scope:transfer.api.globus.org:all",path:`/v0.10/operation/endpoint/${e}/ls`},t,r)},De=function(e,t,r){const o={payload:Object.assign({DATA_TYPE:"mkdir"},null==t?void 0:t.payload),headers:Object.assign(Object.assign({},Be(de.POST)),null==t?void 0:t.headers)};return ge({service:H,scope:"urn:globus:auth:scope:transfer.api.globus.org:all",path:`/v0.10/operation/endpoint/${e}/mkdir`,method:de.POST},o,r)},Ce=function(e,t,r){const o={payload:Object.assign({DATA_TYPE:"rename"},null==t?void 0:t.payload),headers:Object.assign(Object.assign({},Be(de.POST)),null==t?void 0:t.headers)};return ge({service:H,scope:"urn:globus:auth:scope:transfer.api.globus.org:all",path:`/v0.10/operation/endpoint/${e}/rename`,method:de.POST},o,r)},Le=function(e,t,r){const o={payload:Object.assign({DATA_TYPE:"symlink"},null==t?void 0:t.payload),headers:Object.assign(Object.assign({},Be(de.POST)),null==t?void 0:t.headers)};return ge({service:H,scope:"urn:globus:auth:scope:transfer.api.globus.org:all",path:`/v0.10/operation/endpoint/${e}/symlink`,method:de.POST},o,r)},Ne=function(e,t){const r={payload:Object.assign({DATA_TYPE:"delete"},null==e?void 0:e.payload),headers:Object.assign(Object.assign({},Be(de.POST)),null==e?void 0:e.headers)};return ge({service:H,scope:"urn:globus:auth:scope:transfer.api.globus.org:all",path:"/v0.10/delete",method:de.POST},r,t)},ke=function(e,t){const r={payload:Object.assign({DATA_TYPE:"transfer"},null==e?void 0:e.payload),headers:Object.assign(Object.assign({},Be(de.POST)),null==e?void 0:e.headers)};return ge({service:H,scope:"urn:globus:auth:scope:transfer.api.globus.org:all",path:"/v0.10/transfer",method:de.POST},r,t)},He=function(e,t){return ge({service:H,scope:"urn:globus:auth:scope:transfer.api.globus.org:all",path:"/v0.10/submission_id"},e,t)},Fe=function(e,t,r){return ge({service:H,scope:"urn:globus:auth:scope:transfer.api.globus.org:all",path:`/v0.10/endpoint/${e}`},t,r)},Me=t,Ge=function(e,t,r){return ge({service:z,scope:J.SEARCH,path:`/v1/index/${e}/search`},t,r)},$e=function(e,t,r){return ge({service:z,scope:J.SEARCH,path:`/v1/index/${e}/search`,method:de.POST},t,r)},qe=s,Ve=function(e={},t){var r;return fe(W.ALL,oe(q,"/v2/groups/my_groups",{search:e.query}),Object.assign({},null===(r=null==t?void 0:t.fetch)||void 0===r?void 0:r.options))},We=function(e,t={},r){var o;return fe(W.ALL,oe(q,`/v2/groups/${e}`,{search:t.query}),Object.assign({},null===(o=null==r?void 0:r.fetch)||void 0===o?void 0:o.options))},ze=function(e,t,r){var o;return fe(W.ALL,oe(q,`/v2/groups/${e}/policies`),Object.assign({},null===(o=null==r?void 0:r.fetch)||void 0===o?void 0:o.options))},Ye=function(e,t,r){var o;if(!(null==t?void 0:t.payload))throw new Error("payload is required.");return fe(W.ALL,oe(q,`/v2/groups/${e}/policies`),Object.assign({method:"POST",body:JSON.stringify(t.payload)},null===(o=null==r?void 0:r.fetch)||void 0===o?void 0:o.options))},Je=i,Ke=function(e,t){return ge({service:M,scope:$.VIEW_FLOWS,path:"/flows"},e,t)},Xe=function(e,t,r){return ge({service:M,scope:$.VIEW_FLOWS,path:`/flows/${e}`},t,r)},Qe=function(e,t,r){return ge({scope:$.MANAGE_FLOWS,service:M,path:`/flows/${e}`,method:de.DELETE},t,r)},Ze=Qe,et=function(e={},t){return ge({service:M,scope:$.RUN_MANAGE,path:"/runs"},e,t)},tt=n,rt=function(e,t,r){return ge({service:e,scope:bt(e),path:"/api/collections"},t,r)},ot=function(e,t,r,o){return ge({service:e,scope:bt(e),path:`/api/collections/${t}`},r,o)},nt=function(e,t,r,o){return ge({service:e,scope:bt(e),path:`/api/collections/${t}`,method:de.DELETE},r,o)},it=function(e,t,r){return ge({service:e,scope:bt(e),path:"/api/endpoint"},t,r)},st=function(e,t,r){return ge({service:e,scope:bt(e),path:"/api/endpoint",method:de.PUT},t,r)},at=function(e,t,r){return ge({service:e,scope:bt(e),path:"/api/endpoint",method:de.PATCH},t,r)},ct=function(e,t,r){return ge({service:e,scope:bt(e),path:"/api/roles"},t,r)},ut=function(e,t,r,o){return ge({service:e,scope:bt(e),path:`/api/roles/${t}`},r,o)},lt=function(e,t,r,o){return ge({service:e,scope:bt(e),path:`/api/roles/${t}`,method:de.DELETE},r,o)},pt=function(e,t,r){return ge({service:e,scope:bt(e),path:"/api/roles",method:de.POST},t,r)},ht=function(e,t,r){return ge({service:e,scope:bt(e),path:"/api/storage_gateways"},t,r)},ft=function(e,t,r,o){return ge({service:e,scope:bt(e),path:`/api/storage_gateways/${t}`},r,o)},dt=function(e,t,r){return ge({service:e,scope:bt(e),path:"/api/user_credentials"},t,r)},gt=function(e,t,r,o){return ge({service:e,scope:bt(e),path:`/api/user_credentials/${t}`},r,o)},yt=function(e,t,r){return ge({service:e,scope:bt(e),path:"/api/info"},t,r)},vt={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 bt(e){return vt.HIGH_ASSURANCE.replace("<ENDPOINT_ID>",e.endpoint_id)}const mt=function(e,t){return ge({service:K,scope:"https://auth.globus.org/scopes/524230d7-ea86-4a52-8312-86065a9e0417/timer",path:"/v2/timer",method:de.POST},e,t)},wt=a})(),globus=o})();
|
|
1
|
+
var globus;(()=>{var e={98:(e,t,r)=>{var n="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==r.g&&r.g,o=function(){function e(){this.fetch=!1,this.DOMException=n.DOMException}return e.prototype=n,new e}();!function(e){!function(t){var r=void 0!==e&&e||"undefined"!=typeof self&&self||void 0!==r&&r,n="URLSearchParams"in r,o="Symbol"in r&&"iterator"in Symbol,i="FileReader"in r&&"Blob"in r&&function(){try{return new Blob,!0}catch(e){return!1}}(),s="FormData"in r,a="ArrayBuffer"in r;if(a)var c=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],u=ArrayBuffer.isView||function(e){return e&&c.indexOf(Object.prototype.toString.call(e))>-1};function p(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||""===e)throw new TypeError('Invalid character in header field name: "'+e+'"');return e.toLowerCase()}function h(e){return"string"!=typeof e&&(e=String(e)),e}function l(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return o&&(t[Symbol.iterator]=function(){return t}),t}function d(e){this.map={},e instanceof d?e.forEach((function(e,t){this.append(t,e)}),this):Array.isArray(e)?e.forEach((function(e){this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function f(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function g(e){return new Promise((function(t,r){e.onload=function(){t(e.result)},e.onerror=function(){r(e.error)}}))}function v(e){var t=new FileReader,r=g(t);return t.readAsArrayBuffer(e),r}function y(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function b(){return this.bodyUsed=!1,this._initBody=function(e){var t;this.bodyUsed=this.bodyUsed,this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:i&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:s&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:n&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():a&&i&&(t=e)&&DataView.prototype.isPrototypeOf(t)?(this._bodyArrayBuffer=y(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):a&&(ArrayBuffer.prototype.isPrototypeOf(e)||u(e))?this._bodyArrayBuffer=y(e):this._bodyText=e=Object.prototype.toString.call(e):this._bodyText="",this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):n&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},i&&(this.blob=function(){var e=f(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?f(this)||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer)):this.blob().then(v)}),this.text=function(){var e,t,r,n=f(this);if(n)return n;if(this._bodyBlob)return e=this._bodyBlob,r=g(t=new FileReader),t.readAsText(e),r;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),r=new Array(t.length),n=0;n<t.length;n++)r[n]=String.fromCharCode(t[n]);return r.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},s&&(this.formData=function(){return this.text().then(_)}),this.json=function(){return this.text().then(JSON.parse)},this}d.prototype.append=function(e,t){e=p(e),t=h(t);var r=this.map[e];this.map[e]=r?r+", "+t:t},d.prototype.delete=function(e){delete this.map[p(e)]},d.prototype.get=function(e){return e=p(e),this.has(e)?this.map[e]:null},d.prototype.has=function(e){return this.map.hasOwnProperty(p(e))},d.prototype.set=function(e,t){this.map[p(e)]=h(t)},d.prototype.forEach=function(e,t){for(var r in this.map)this.map.hasOwnProperty(r)&&e.call(t,this.map[r],r,this)},d.prototype.keys=function(){var e=[];return this.forEach((function(t,r){e.push(r)})),l(e)},d.prototype.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),l(e)},d.prototype.entries=function(){var e=[];return this.forEach((function(t,r){e.push([r,t])})),l(e)},o&&(d.prototype[Symbol.iterator]=d.prototype.entries);var m=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function w(e,t){if(!(this instanceof w))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var r,n,o=(t=t||{}).body;if(e instanceof w){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new d(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,o||null==e._bodyInit||(o=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new d(t.headers)),this.method=(n=(r=t.method||this.method||"GET").toUpperCase(),m.indexOf(n)>-1?n:r),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&o)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(o),!("GET"!==this.method&&"HEAD"!==this.method||"no-store"!==t.cache&&"no-cache"!==t.cache)){var i=/([?&])_=[^&]*/;i.test(this.url)?this.url=this.url.replace(i,"$1_="+(new Date).getTime()):this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}function _(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var r=e.split("="),n=r.shift().replace(/\+/g," "),o=r.join("=").replace(/\+/g," ");t.append(decodeURIComponent(n),decodeURIComponent(o))}})),t}function O(e,t){if(!(this instanceof O))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText=void 0===t.statusText?"":""+t.statusText,this.headers=new d(t.headers),this.url=t.url||"",this._initBody(e)}w.prototype.clone=function(){return new w(this,{body:this._bodyInit})},b.call(w.prototype),b.call(O.prototype),O.prototype.clone=function(){return new O(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new d(this.headers),url:this.url})},O.error=function(){var e=new O(null,{status:0,statusText:""});return e.type="error",e};var A=[301,302,303,307,308];O.redirect=function(e,t){if(-1===A.indexOf(t))throw new RangeError("Invalid status code");return new O(null,{status:t,headers:{location:e}})},t.DOMException=r.DOMException;try{new t.DOMException}catch(e){t.DOMException=function(e,t){this.message=e,this.name=t;var r=Error(e);this.stack=r.stack},t.DOMException.prototype=Object.create(Error.prototype),t.DOMException.prototype.constructor=t.DOMException}function S(e,n){return new Promise((function(o,s){var c=new w(e,n);if(c.signal&&c.signal.aborted)return s(new t.DOMException("Aborted","AbortError"));var u=new XMLHttpRequest;function p(){u.abort()}u.onload=function(){var e,t,r={status:u.status,statusText:u.statusText,headers:(e=u.getAllResponseHeaders()||"",t=new d,e.replace(/\r?\n[\t ]+/g," ").split("\r").map((function(e){return 0===e.indexOf("\n")?e.substr(1,e.length):e})).forEach((function(e){var r=e.split(":"),n=r.shift().trim();if(n){var o=r.join(":").trim();t.append(n,o)}})),t)};r.url="responseURL"in u?u.responseURL:r.headers.get("X-Request-URL");var n="response"in u?u.response:u.responseText;setTimeout((function(){o(new O(n,r))}),0)},u.onerror=function(){setTimeout((function(){s(new TypeError("Network request failed"))}),0)},u.ontimeout=function(){setTimeout((function(){s(new TypeError("Network request failed"))}),0)},u.onabort=function(){setTimeout((function(){s(new t.DOMException("Aborted","AbortError"))}),0)},u.open(c.method,function(e){try{return""===e&&r.location.href?r.location.href:e}catch(t){return e}}(c.url),!0),"include"===c.credentials?u.withCredentials=!0:"omit"===c.credentials&&(u.withCredentials=!1),"responseType"in u&&(i?u.responseType="blob":a&&c.headers.get("Content-Type")&&-1!==c.headers.get("Content-Type").indexOf("application/octet-stream")&&(u.responseType="arraybuffer")),!n||"object"!=typeof n.headers||n.headers instanceof d?c.headers.forEach((function(e,t){u.setRequestHeader(t,e)})):Object.getOwnPropertyNames(n.headers).forEach((function(e){u.setRequestHeader(e,h(n.headers[e]))})),c.signal&&(c.signal.addEventListener("abort",p),u.onreadystatechange=function(){4===u.readyState&&c.signal.removeEventListener("abort",p)}),u.send(void 0===c._bodyInit?null:c._bodyInit)}))}S.polyfill=!0,r.fetch||(r.fetch=S,r.Headers=d,r.Request=w,r.Response=O),t.Headers=d,t.Request=w,t.Response=O,t.fetch=S}({})}(o),o.fetch.ponyfill=!0,delete o.fetch.polyfill;var i=n.fetch?n:o;(t=i.fetch).default=i.fetch,t.fetch=i.fetch,t.Headers=i.Headers,t.Request=i.Request,t.Response=i.Response,e.exports=t},249:function(e,t,r){var n;e.exports=(n=n||function(e,t){var n;if("undefined"!=typeof window&&window.crypto&&(n=window.crypto),"undefined"!=typeof self&&self.crypto&&(n=self.crypto),"undefined"!=typeof globalThis&&globalThis.crypto&&(n=globalThis.crypto),!n&&"undefined"!=typeof window&&window.msCrypto&&(n=window.msCrypto),!n&&void 0!==r.g&&r.g.crypto&&(n=r.g.crypto),!n)try{n=r(480)}catch(e){}var o=function(){if(n){if("function"==typeof n.getRandomValues)try{return n.getRandomValues(new Uint32Array(1))[0]}catch(e){}if("function"==typeof n.randomBytes)try{return n.randomBytes(4).readInt32LE()}catch(e){}}throw new Error("Native crypto module could not be used to get secure random number.")},i=Object.create||function(){function e(){}return function(t){var r;return e.prototype=t,r=new e,e.prototype=null,r}}(),s={},a=s.lib={},c=a.Base={extend:function(e){var t=i(this);return e&&t.mixIn(e),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}},u=a.WordArray=c.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=null!=t?t:4*e.length},toString:function(e){return(e||h).stringify(this)},concat:function(e){var t=this.words,r=e.words,n=this.sigBytes,o=e.sigBytes;if(this.clamp(),n%4)for(var i=0;i<o;i++){var s=r[i>>>2]>>>24-i%4*8&255;t[n+i>>>2]|=s<<24-(n+i)%4*8}else for(var a=0;a<o;a+=4)t[n+a>>>2]=r[a>>>2];return this.sigBytes+=o,this},clamp:function(){var t=this.words,r=this.sigBytes;t[r>>>2]&=4294967295<<32-r%4*8,t.length=e.ceil(r/4)},clone:function(){var e=c.clone.call(this);return e.words=this.words.slice(0),e},random:function(e){for(var t=[],r=0;r<e;r+=4)t.push(o());return new u.init(t,e)}}),p=s.enc={},h=p.Hex={stringify:function(e){for(var t=e.words,r=e.sigBytes,n=[],o=0;o<r;o++){var i=t[o>>>2]>>>24-o%4*8&255;n.push((i>>>4).toString(16)),n.push((15&i).toString(16))}return n.join("")},parse:function(e){for(var t=e.length,r=[],n=0;n<t;n+=2)r[n>>>3]|=parseInt(e.substr(n,2),16)<<24-n%8*4;return new u.init(r,t/2)}},l=p.Latin1={stringify:function(e){for(var t=e.words,r=e.sigBytes,n=[],o=0;o<r;o++){var i=t[o>>>2]>>>24-o%4*8&255;n.push(String.fromCharCode(i))}return n.join("")},parse:function(e){for(var t=e.length,r=[],n=0;n<t;n++)r[n>>>2]|=(255&e.charCodeAt(n))<<24-n%4*8;return new u.init(r,t)}},d=p.Utf8={stringify:function(e){try{return decodeURIComponent(escape(l.stringify(e)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function(e){return l.parse(unescape(encodeURIComponent(e)))}},f=a.BufferedBlockAlgorithm=c.extend({reset:function(){this._data=new u.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=d.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var r,n=this._data,o=n.words,i=n.sigBytes,s=this.blockSize,a=i/(4*s),c=(a=t?e.ceil(a):e.max((0|a)-this._minBufferSize,0))*s,p=e.min(4*c,i);if(c){for(var h=0;h<c;h+=s)this._doProcessBlock(o,h);r=o.splice(0,c),n.sigBytes-=p}return new u.init(r,p)},clone:function(){var e=c.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0}),g=(a.Hasher=f.extend({cfg:c.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){f.reset.call(this),this._doReset()},update:function(e){return this._append(e),this._process(),this},finalize:function(e){return e&&this._append(e),this._doFinalize()},blockSize:16,_createHelper:function(e){return function(t,r){return new e.init(r).finalize(t)}},_createHmacHelper:function(e){return function(t,r){return new g.HMAC.init(e,r).finalize(t)}}}),s.algo={});return s}(Math),n)},269:function(e,t,r){var n,o,i;e.exports=(n=r(249),i=(o=n).lib.WordArray,o.enc.Base64={stringify:function(e){var t=e.words,r=e.sigBytes,n=this._map;e.clamp();for(var o=[],i=0;i<r;i+=3)for(var s=(t[i>>>2]>>>24-i%4*8&255)<<16|(t[i+1>>>2]>>>24-(i+1)%4*8&255)<<8|t[i+2>>>2]>>>24-(i+2)%4*8&255,a=0;a<4&&i+.75*a<r;a++)o.push(n.charAt(s>>>6*(3-a)&63));var c=n.charAt(64);if(c)for(;o.length%4;)o.push(c);return o.join("")},parse:function(e){var t=e.length,r=this._map,n=this._reverseMap;if(!n){n=this._reverseMap=[];for(var o=0;o<r.length;o++)n[r.charCodeAt(o)]=o}var s=r.charAt(64);if(s){var a=e.indexOf(s);-1!==a&&(t=a)}return function(e,t,r){for(var n=[],o=0,s=0;s<t;s++)if(s%4){var a=r[e.charCodeAt(s-1)]<<s%4*2|r[e.charCodeAt(s)]>>>6-s%4*2;n[o>>>2]|=a<<24-o%4*8,o++}return i.create(n,o)}(e,t,n)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="},n.enc.Base64)},433:function(e,t,r){var n;e.exports=(n=r(249),function(){if("function"==typeof ArrayBuffer){var e=n.lib.WordArray,t=e.init,r=e.init=function(e){if(e instanceof ArrayBuffer&&(e=new Uint8Array(e)),(e instanceof Int8Array||"undefined"!=typeof Uint8ClampedArray&&e instanceof Uint8ClampedArray||e instanceof Int16Array||e instanceof Uint16Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Float32Array||e instanceof Float64Array)&&(e=new Uint8Array(e.buffer,e.byteOffset,e.byteLength)),e instanceof Uint8Array){for(var r=e.byteLength,n=[],o=0;o<r;o++)n[o>>>2]|=e[o]<<24-o%4*8;t.call(this,n,r)}else t.apply(this,arguments)};r.prototype=e}}(),n.lib.WordArray)},153:function(e,t,r){var n;e.exports=(n=r(249),function(e){var t=n,r=t.lib,o=r.WordArray,i=r.Hasher,s=t.algo,a=[],c=[];!function(){function t(t){for(var r=e.sqrt(t),n=2;n<=r;n++)if(!(t%n))return!1;return!0}function r(e){return 4294967296*(e-(0|e))|0}for(var n=2,o=0;o<64;)t(n)&&(o<8&&(a[o]=r(e.pow(n,.5))),c[o]=r(e.pow(n,1/3)),o++),n++}();var u=[],p=s.SHA256=i.extend({_doReset:function(){this._hash=new o.init(a.slice(0))},_doProcessBlock:function(e,t){for(var r=this._hash.words,n=r[0],o=r[1],i=r[2],s=r[3],a=r[4],p=r[5],h=r[6],l=r[7],d=0;d<64;d++){if(d<16)u[d]=0|e[t+d];else{var f=u[d-15],g=(f<<25|f>>>7)^(f<<14|f>>>18)^f>>>3,v=u[d-2],y=(v<<15|v>>>17)^(v<<13|v>>>19)^v>>>10;u[d]=g+u[d-7]+y+u[d-16]}var b=n&o^n&i^o&i,m=(n<<30|n>>>2)^(n<<19|n>>>13)^(n<<10|n>>>22),w=l+((a<<26|a>>>6)^(a<<21|a>>>11)^(a<<7|a>>>25))+(a&p^~a&h)+c[d]+u[d];l=h,h=p,p=a,a=s+w|0,s=i,i=o,o=n,n=w+(m+b)|0}r[0]=r[0]+n|0,r[1]=r[1]+o|0,r[2]=r[2]+i|0,r[3]=r[3]+s|0,r[4]=r[4]+a|0,r[5]=r[5]+p|0,r[6]=r[6]+h|0,r[7]=r[7]+l|0},_doFinalize:function(){var t=this._data,r=t.words,n=8*this._nDataBytes,o=8*t.sigBytes;return r[o>>>5]|=128<<24-o%32,r[14+(o+64>>>9<<4)]=e.floor(n/4294967296),r[15+(o+64>>>9<<4)]=n,t.sigBytes=4*r.length,this._process(),this._hash},clone:function(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e}});t.SHA256=i._createHelper(p),t.HmacSHA256=i._createHmacHelper(p)}(Math),n.SHA256)},899:function(e,t,r){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},n.apply(this,arguments)},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=o(r(153)),s=o(r(269)),a=o(r(433)),c=function(){function e(e){this.state="",this.codeVerifier="",this.corsRequestOptions={},this.config=e}return e.prototype.enableCorsCredentials=function(e){return this.corsRequestOptions=e?{credentials:"include",mode:"cors"}:{},this.corsRequestOptions},e.prototype.authorizeUrl=function(e){void 0===e&&(e={});var t=this.pkceChallengeFromVerifier(),r=new URLSearchParams(Object.assign({response_type:"code",client_id:this.config.client_id,state:this.getState(e.state||null),scope:this.config.requested_scopes,redirect_uri:this.config.redirect_uri,code_challenge:t,code_challenge_method:"S256"},e)).toString();return"".concat(this.config.authorization_endpoint,"?").concat(r)},e.prototype.exchangeForAccessToken=function(e,t){var r=this;return void 0===t&&(t={}),this.parseAuthResponseUrl(e).then((function(e){return fetch(r.config.token_endpoint,n({method:"POST",body:new URLSearchParams(Object.assign({grant_type:"authorization_code",code:e.code,client_id:r.config.client_id,redirect_uri:r.config.redirect_uri,code_verifier:r.getCodeVerifier()},t)),headers:{Accept:"application/json","Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"}},r.corsRequestOptions)).then((function(e){return e.json()}))}))},e.prototype.refreshAccessToken=function(e){return fetch(this.config.token_endpoint,{method:"POST",body:new URLSearchParams({grant_type:"refresh_token",client_id:this.config.client_id,refresh_token:e}),headers:{Accept:"application/json","Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"}}).then((function(e){return e.json()}))},e.prototype.getCodeVerifier=function(){return""===this.codeVerifier&&(this.codeVerifier=this.randomStringFromStorage("pkce_code_verifier")),this.codeVerifier},e.prototype.getState=function(e){void 0===e&&(e=null);var t="pkce_state";return null!==e&&this.getStore().setItem(t,e),""===this.state&&(this.state=this.randomStringFromStorage(t)),this.state},e.prototype.parseAuthResponseUrl=function(e){var t=new URL(e).searchParams;return this.validateAuthResponse({error:t.get("error"),query:t.get("query"),state:t.get("state"),code:t.get("code")})},e.prototype.pkceChallengeFromVerifier=function(){var e=(0,i.default)(this.getCodeVerifier());return s.default.stringify(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")},e.prototype.randomStringFromStorage=function(e){return null===this.getStore().getItem(e)&&this.getStore().setItem(e,a.default.random(64)),this.getStore().getItem(e)||""},e.prototype.validateAuthResponse=function(e){var t=this;return new Promise((function(r,n){return e.error?n({error:e.error}):e.state!==t.getState()?n({error:"Invalid State"}):r(e)}))},e.prototype.getStore=function(){var e;return(null===(e=this.config)||void 0===e?void 0:e.storage)||sessionStorage},e}();t.default=c},480:()=>{}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={exports:{}};return e[n].call(i.exports,i,i.exports,r),i.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};(()=>{"use strict";r.r(n),r.d(n,{auth:()=>u,authorization:()=>p,flows:()=>S,gcs:()=>x,groups:()=>_,search:()=>y,timer:()=>U,transfer:()=>g});var e={};r.r(e),r.d(e,{HOSTS:()=>N,ID:()=>k,SCOPES:()=>H});var t={};r.r(t),r.d(t,{HOSTS:()=>M,ID:()=>$,SCOPES:()=>F});var o={};r.r(o),r.d(o,{HOSTS:()=>q,ID:()=>G,SCOPES:()=>V});var i={};r.r(i),r.d(i,{HOSTS:()=>z,ID:()=>W,SCOPES:()=>Y});var s={};r.r(s),r.d(s,{HOSTS:()=>K,ID:()=>J,SCOPES:()=>X});var a={};r.r(a),r.d(a,{HOSTS:()=>Z,ID:()=>Q});var c={};r.r(c),r.d(c,{get:()=>be,getAll:()=>me});var u={};r.r(u),r.d(u,{CONFIG:()=>we,getAuthorizationEndpoint:()=>_e,getTokenEndpoint:()=>Oe,identities:()=>c});var p={};r.r(p),r.d(p,{PKCEAuthorization:()=>Ie,incremental:()=>Ue,pkce:()=>xe});var h={};r.r(h),r.d(h,{ls:()=>De,mkdir:()=>Ce,rename:()=>ke,symlink:()=>Ne});var l={};r.r(l),r.d(l,{submissionId:()=>Fe,submitDelete:()=>He,submitTransfer:()=>$e});var d={};r.r(d),r.d(d,{get:()=>Me,remove:()=>Ge});var f={};r.r(f),r.d(f,{cancel:()=>ze,get:()=>Ve,getAll:()=>qe,getEventList:()=>Je,getPauseInfo:()=>Qe,getSkippedErrors:()=>Xe,getSuccessfulTransfers:()=>Ke,remove:()=>Ye,update:()=>We});var g={};r.r(g),r.d(g,{CONFIG:()=>Ze,endpoint:()=>d,endpointSearch:()=>Re,fileOperations:()=>h,task:()=>f,taskSubmission:()=>l});var v={};r.r(v),r.d(v,{get:()=>et,post:()=>tt});var y={};r.r(y),r.d(y,{CONFIG:()=>rt,query:()=>v});var b={};r.r(b),r.d(b,{get:()=>ot,getMyGroups:()=>nt});var m={};r.r(m),r.d(m,{get:()=>it});var w={};r.r(w),r.d(w,{act:()=>st});var _={};r.r(_),r.d(_,{CONFIG:()=>at,groups:()=>b,membership:()=>w,policies:()=>m});var O={};r.r(O),r.d(O,{destroy:()=>ht,get:()=>ut,getAll:()=>ct,remove:()=>pt});var A={};r.r(A),r.d(A,{getAll:()=>lt});var S={};r.r(S),r.d(S,{CONFIG:()=>dt,flows:()=>O,runs:()=>A});var T={};r.r(T),r.d(T,{create:()=>yt,get:()=>gt,getAll:()=>ft,patch:()=>mt,remove:()=>vt,resetOwnerString:()=>_t,update:()=>bt,updateOwnerString:()=>wt});var E={};r.r(E),r.d(E,{get:()=>Ot,patch:()=>St,update:()=>At});var P={};r.r(P),r.d(P,{create:()=>Lt,get:()=>Et,getAll:()=>Tt,remove:()=>Pt});var L={};r.r(L),r.d(L,{create:()=>Ut,get:()=>It,getAll:()=>jt,patch:()=>Bt,remove:()=>xt,update:()=>Rt});var j={};r.r(j),r.d(j,{create:()=>Nt,get:()=>Ct,getAll:()=>Dt,patch:()=>$t,remove:()=>kt,update:()=>Ht});var I={};r.r(I),r.d(I,{info:()=>Ft});var x={};r.r(x),r.d(x,{collections:()=>T,endpoint:()=>E,getRequiredScopes:()=>Gt,roles:()=>P,storageGateways:()=>L,userCredentials:()=>j,versioning:()=>I});var U={};function R(e,t,r,n){if("a"===r&&!n)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(e):n?n.value:t.get(e)}function B(e,t,r,n,o){if("m"===n)throw new TypeError("Private method is not writable");if("a"===n&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?o.call(e,r):o?o.value=r:t.set(e,r),r}r.r(U),r.d(U,{CONFIG:()=>Vt,create:()=>qt}),Object.create,Object.create,"function"==typeof SuppressedError&&SuppressedError;var D=r(899),C=r.n(D);const k="AUTH",N={integration:"auth.integration.globuscs.info",sandbox:"auth.sandbox.globuscs.info",production:"auth.globus.org",test:"auth.test.globuscs.info",staging:"auth.staging.globuscs.info",preview:"auth.preview.globus.org"},H={VIEW_IDENTITIES:"urn:globus:auth:scope:auth.globus.org:view_identities"},$="TRANSFER",F={ALL:"urn:globus:auth:scope:transfer.api.globus.org:all"},M={sandbox:"transfer.sandbox.globuscs.info",production:"transfer.api.globusonline.org",staging:"transfer.api.staging.globuscs.info",integration:"transfer.api.integration.globuscs.info",test:"transfer.api.test.globuscs.info",preview:"transfer.api.preview.globus.org"},G="FLOWS",q={sandbox:"sandbox.flows.automate.globus.org",production:"flows.globus.org",staging:"staging.flows.automate.globus.org",integration:"integration.flows.automate.globus.org",test:"test.flows.automate.globus.org",preview:"preview.flows.automate.globus.org"},V={MANAGE_FLOWS:"https://auth.globus.org/scopes/eec9b274-0c81-4334-bdc2-54e90e689b9a/manage_flows",VIEW_FLOWS:"https://auth.globus.org/scopes/eec9b274-0c81-4334-bdc2-54e90e689b9a/view_flows",RUN:"https://auth.globus.org/scopes/eec9b274-0c81-4334-bdc2-54e90e689b9a/run",RUN_STATUS:"https://auth.globus.org/scopes/eec9b274-0c81-4334-bdc2-54e90e689b9a/run_status",RUN_MANAGE:"https://auth.globus.org/scopes/eec9b274-0c81-4334-bdc2-54e90e689b9a/run_manage"},W="GROUPS",z={sandbox:"groups.api.sandbox.globuscs.info",production:"groups.api.globus.org",staging:"groups.api.staging.globuscs.info",integration:"groups.api.integration.globuscs.info",test:"groups.api.test.globuscs.info",preview:"groups.api.preview.globuscs.info"},Y={ALL:"urn:globus:auth:scope:groups.api.globus.org:all",VIEW_MY:"urn:globus:auth:scope:groups.api.globus.org:view_my_groups_and_membership"},J="SEARCH",K={sandbox:"search.api.sandbox.globuscs.info",production:"search.api.globus.org",staging:"search.api.staging.globuscs.info",integration:"search.api.integration.globuscs.info",test:"search.api.test.globuscs.info",preview:"search.api.preview.globus.org"},X={ALL:"urn:globus:auth:scope:search.api.globus.org:all",INGEST:"urn:globus:auth:scope:search.api.globus.org:ingest",SEARCH:"urn:globus:auth:scope:search.api.globus.org:search"},Q="TIMER",Z={sandbox:"sandbox.timer.automate.globus.org",production:"timer.automate.globus.org",staging:"staging.timer.automate.globus.org",integration:"integration.timer.automate.globus.org",test:"test.timer.automate.globus.org",preview:"preview.timer.automate.globus.org"};class ee extends Error{constructor(e,t){super(),this.name="EnvironmentConfigurationError",this.message=`Invalid configuration value provided for ${e} (${t}).`}}function te(e,t){const r="undefined"!=typeof window?window:process;let n;return n=function(e){return typeof window==typeof e}(r)?r:r.env,e in n?n[e]:t}const re={PRODUCTION:"production",PREVIEW:"preview",STAGING:"staging",SANDBOX:"sandbox",INTEGRATION:"integration",TEST:"test"};function ne(){const e=te("GLOBUS_SDK_ENVIRONMENT",re.PRODUCTION);if(!e||!Object.values(re).includes(e))throw new ee("GLOBUS_SDK_ENVIRONMENT",e);return e}const oe={[k]:N,[$]:M,[G]:q,[W]:z,[J]:K,[Q]:Z};function ie(e,t,r,n){let o;return o="object"==typeof e?new URL(t,e.host):function(e,t="",r=ne()){const n=function(e,t=ne()){const r=function(e,t){return oe[e][t]}(e,t);return te(`GLOBUS_SDK_SERVICE_URL_${e}`,r?`https://${r}`:void 0)}(e,r);return new URL(t,n)}(e,t,null==n?void 0:n.environment),r&&r.search&&(o.search=function(e){const t=new URLSearchParams;return Array.from(Object.entries(e)).forEach((([e,r])=>{Array.isArray(r)?t.set(e,r.join(",")):void 0!==r&&t.set(e,String(r))})),t.toString()}(r.search)),o.toString()}var se=r(98);const ae=r.n(se)();var ce;class ue{constructor(){ce.set(this,{})}get(e){return R(this,ce,"f")[e]}set(e,t){R(this,ce,"f")[e]=t}remove(e){delete R(this,ce,"f")[e]}clear(){B(this,ce,{},"f")}}ce=new WeakMap;class pe{get(e){const t=localStorage.getItem(e);return null!==t?JSON.parse(t):null}set(e,t){localStorage.setItem(e,JSON.stringify(t))}remove(e){localStorage.removeItem(e)}clear(){localStorage.clear()}}let he;function le(){if(!he)throw Error("You must create a storage system.");return he}function de(e){e.scope.split(" ").forEach((t=>{le().set(t,e)}))}function fe(e){const t=le().get(e);return t&&function(e){const t=e;return Boolean(t.token_type&&t.access_token)}(t)?`${t.token_type} ${t.access_token}`:null}function ge(e,t,r={}){const n=r.headers||{};if(!(null==n?void 0:n.Authorization)){const t=fe(e);t&&(n.Authorization=t)}return!(null==n?void 0:n["Content-Type"])&&(null==r?void 0:r.body)&&(n["Content-Type"]="application/json"),(null==r?void 0:r.__callable)?r.__callable(t,Object.assign(Object.assign({},r),{headers:n})):ae(t,Object.assign(Object.assign({},r),{headers:n}))}var ve;function ye(e,t,r){var n,o,i;const s=function(e){var t,r,n,o,i,s;let a=te("GLOBUS_SDK_OPTIONS",{});return"string"==typeof a&&(a=JSON.parse(a)),Object.assign(Object.assign(Object.assign({},a),e),{fetch:Object.assign(Object.assign(Object.assign({},null==a?void 0:a.fetch),null==e?void 0:e.fetch),{options:Object.assign(Object.assign(Object.assign({},null===(t=null==a?void 0:a.fetch)||void 0===t?void 0:t.options),null===(r=null==e?void 0:e.fetch)||void 0===r?void 0:r.options),{headers:Object.assign(Object.assign({},null===(o=null===(n=null==a?void 0:a.fetch)||void 0===n?void 0:n.options)||void 0===o?void 0:o.headers),null===(s=null===(i=null==e?void 0:e.fetch)||void 0===i?void 0:i.options)||void 0===s?void 0:s.headers)})})})}(r);return ge(e.scope,ie(e.service,e.path,{search:null==t?void 0:t.query},s),Object.assign(Object.assign({method:e.method,body:(null==t?void 0:t.payload)?JSON.stringify(t.payload):void 0},null===(n=null==s?void 0:s.fetch)||void 0===n?void 0:n.options),{headers:Object.assign(Object.assign({},null==t?void 0:t.headers),null===(i=null===(o=null==s?void 0:s.fetch)||void 0===o?void 0:o.options)||void 0===i?void 0:i.headers)}))}!function(e){e.POST="POST",e.GET="GET",e.DELETE="DELETE",e.PUT="PUT",e.PATCH="PATCH"}(ve||(ve={}));const be=function(e,t={},r){return ye({service:k,scope:H.VIEW_IDENTITIES,path:`/identities/${e}`},t,r)},me=function(e={},t){return ye({service:k,scope:H.VIEW_IDENTITIES,path:"/identities"},e,t)},we=e;function _e(){return ie(k,"/v2/oauth2/authorize")}function Oe(){return ie(k,"/v2/oauth2/token")}var Ae,Se,Te,Ee,Pe,Le;let je;class Ie{constructor(e){if(Ae.add(this),Se.set(this,void 0),Te.set(this,void 0),Ee.set(this,void 0),je=function(e="memory"){if(!he){let t;t="localStorage"===e?pe:"memory"===e?ue:e,he=new t}return he}("localStorage"),!e.client_id)throw new Error("You must provide a `client_id`.");B(this,Te,Object.assign({client_id:e.client_id,authorization_endpoint:_e(),token_endpoint:Oe()},e),"f"),B(this,Se,R(this,Ae,"m",Pe).call(this),"f")}reset(){R(this,Ae,"m",Le).call(this),le().clear()}redirect(){this.reset(),window.location.replace(R(this,Se,"f").authorizeUrl())}handleCodeRedirect(e={removeStateAndReplaceLocation:!0}){return t=this,r=void 0,o=function*(){const t=new URL(window.location.href),r=new URLSearchParams(t.search);if(!r.get("code"))return;const n=yield R(this,Se,"f").exchangeForAccessToken(t.toString());var o;B(this,Ee,n,"f"),de(o=R(this,Ee,"f")),"other_tokens"in o&&o.other_tokens.forEach(de),e.removeStateAndReplaceLocation&&(r.delete("code"),r.delete("state"),t.search=r.toString(),window.location.replace(t))},new((n=void 0)||(n=Promise))((function(e,i){function s(e){try{c(o.next(e))}catch(e){i(e)}}function a(e){try{c(o.throw(e))}catch(e){i(e)}}function c(t){var r;t.done?e(t.value):(r=t.value,r instanceof n?r:new n((function(e){e(r)}))).then(s,a)}c((o=o.apply(t,r||[])).next())}));var t,r,n,o}hasToken(){return R(this,Te,"f").requested_scopes.split(" ").every((e=>Boolean(fe(e))))}revoke(){this.reset()}}function xe(e){return new Ie(e)}function Ue(e){return new Ie(e)}Se=new WeakMap,Te=new WeakMap,Ee=new WeakMap,Ae=new WeakSet,Pe=function(){return new(C())(R(this,Te,"f"))},Le=function(){sessionStorage.removeItem("pkce_state"),sessionStorage.removeItem("pkce_code_verifier")};const Re=function(e,t){const r=Object.assign(Object.assign({},e),{query:null==e?void 0:e.query});return ye({service:$,scope:F.ALL,path:"/v0.10/endpoint_search"},r,t)};function Be(e){return e===ve.GET?{}:{"Content-Type":"application/json"}}const De=function(e,t,r){return ye({service:$,scope:F.ALL,path:`/v0.10/operation/endpoint/${e}/ls`},t,r)},Ce=function(e,t,r){const n={payload:Object.assign({DATA_TYPE:"mkdir"},null==t?void 0:t.payload),headers:Object.assign(Object.assign({},Be(ve.POST)),null==t?void 0:t.headers)};return ye({service:$,scope:F.ALL,path:`/v0.10/operation/endpoint/${e}/mkdir`,method:ve.POST},n,r)},ke=function(e,t,r){const n={payload:Object.assign({DATA_TYPE:"rename"},null==t?void 0:t.payload),headers:Object.assign(Object.assign({},Be(ve.POST)),null==t?void 0:t.headers)};return ye({service:$,scope:F.ALL,path:`/v0.10/operation/endpoint/${e}/rename`,method:ve.POST},n,r)},Ne=function(e,t,r){const n={payload:Object.assign({DATA_TYPE:"symlink"},null==t?void 0:t.payload),headers:Object.assign(Object.assign({},Be(ve.POST)),null==t?void 0:t.headers)};return ye({service:$,scope:F.ALL,path:`/v0.10/operation/endpoint/${e}/symlink`,method:ve.POST},n,r)},He=function(e,t){const r={payload:Object.assign({DATA_TYPE:"delete"},null==e?void 0:e.payload),headers:Object.assign(Object.assign({},Be(ve.POST)),null==e?void 0:e.headers)};return ye({service:$,scope:F.ALL,path:"/v0.10/delete",method:ve.POST},r,t)},$e=function(e,t){const r={payload:Object.assign({DATA_TYPE:"transfer"},null==e?void 0:e.payload),headers:Object.assign(Object.assign({},Be(ve.POST)),null==e?void 0:e.headers)};return ye({service:$,scope:F.ALL,path:"/v0.10/transfer",method:ve.POST},r,t)},Fe=function(e,t){return ye({service:$,scope:F.ALL,path:"/v0.10/submission_id"},e,t)},Me=function(e,t,r){return ye({service:$,scope:F.ALL,path:`/v0.10/endpoint/${e}`},t,r)},Ge=function(e,t,r){return ye({service:$,scope:F.ALL,path:`/v0.10/endpoint/${e}`,method:ve.DELETE},t,r)},qe=function(e={},t){return ye({service:$,scope:F.ALL,path:"/v0.10/task_list"},e,t)},Ve=function(e,t,r){return ye({service:$,scope:F.ALL,path:`/v0.10/task/${e}`},t,r)},We=function(e,t,r){return ye({service:$,scope:F.ALL,path:`/v0.10/task/${e}`,method:ve.PUT},t,r)},ze=function(e,t,r){return ye({service:$,scope:F.ALL,path:`/v0.10/task/${e}/cancel`,method:ve.POST},t,r)},Ye=function(e,t,r){return ye({service:$,scope:F.ALL,path:`/v0.10/task/${e}/remove`,method:ve.POST},t,r)},Je=function(e,t,r){return ye({service:$,scope:F.ALL,path:`/v0.10/task/${e}/event_list`},t,r)},Ke=function(e,t,r){return ye({service:$,scope:F.ALL,path:`/v0.10/task/${e}/successful_transfers`},t,r)},Xe=function(e,t,r){return ye({service:$,scope:F.ALL,path:`/v0.10/task/${e}/skipped_errors`},t,r)},Qe=function(e,t,r){return ye({service:$,scope:F.ALL,path:`/v0.10/task/${e}/pause_info`},t,r)},Ze=t,et=function(e,t,r){return ye({service:J,scope:X.SEARCH,path:`/v1/index/${e}/search`},t,r)},tt=function(e,t,r){return ye({service:J,scope:X.SEARCH,path:`/v1/index/${e}/search`,method:ve.POST},t,r)},rt=s,nt=function(e={},t){var r;return ge(Y.ALL,ie(W,"/v2/groups/my_groups",{search:e.query}),Object.assign({},null===(r=null==t?void 0:t.fetch)||void 0===r?void 0:r.options))},ot=function(e,t={},r){var n;return ge(Y.ALL,ie(W,`/v2/groups/${e}`,{search:t.query}),Object.assign({},null===(n=null==r?void 0:r.fetch)||void 0===n?void 0:n.options))},it=function(e,t,r){var n;return ge(Y.ALL,ie(W,`/v2/groups/${e}/policies`),Object.assign({},null===(n=null==r?void 0:r.fetch)||void 0===n?void 0:n.options))},st=function(e,t,r){var n;if(!(null==t?void 0:t.payload))throw new Error("payload is required.");return ge(Y.ALL,ie(W,`/v2/groups/${e}/policies`),Object.assign({method:"POST",body:JSON.stringify(t.payload)},null===(n=null==r?void 0:r.fetch)||void 0===n?void 0:n.options))},at=i,ct=function(e,t){return ye({service:G,scope:V.VIEW_FLOWS,path:"/flows"},e,t)},ut=function(e,t,r){return ye({service:G,scope:V.VIEW_FLOWS,path:`/flows/${e}`},t,r)},pt=function(e,t,r){return ye({scope:V.MANAGE_FLOWS,service:G,path:`/flows/${e}`,method:ve.DELETE},t,r)},ht=pt,lt=function(e={},t){return ye({service:G,scope:V.RUN_MANAGE,path:"/runs"},e,t)},dt=o,ft=function(e,t,r){return ye({service:e,scope:Gt(e),path:"/api/collections"},t,r)},gt=function(e,t,r,n){return ye({service:e,scope:Gt(e),path:`/api/collections/${t}`},r,n)},vt=function(e,t,r,n){return ye({service:e,scope:Gt(e),path:`/api/collections/${t}`,method:ve.DELETE},r,n)},yt=function(e,t,r){return ye({service:e,scope:Gt(e),path:"/api/collections",method:ve.POST},t,r)},bt=function(e,t,r,n){return ye({service:e,scope:Gt(e),path:`/api/collections/${t}`,method:ve.PUT},r,n)},mt=function(e,t,r,n){return ye({service:e,scope:Gt(e),path:`/api/collections/${t}`,method:ve.PATCH},r,n)},wt=function(e,t,r,n){return ye({service:e,scope:Gt(e),path:`/api/collections/${t}/owner_string`,method:ve.PUT},r,n)},_t=function(e,t,r,n){return ye({service:e,scope:Gt(e),path:`/api/collections/${t}/owner_string`,method:ve.DELETE},r,n)},Ot=function(e,t,r){return ye({service:e,scope:Gt(e),path:"/api/endpoint"},t,r)},At=function(e,t,r){return ye({service:e,scope:Gt(e),path:"/api/endpoint",method:ve.PUT},t,r)},St=function(e,t,r){return ye({service:e,scope:Gt(e),path:"/api/endpoint",method:ve.PATCH},t,r)},Tt=function(e,t,r){return ye({service:e,scope:Gt(e),path:"/api/roles"},t,r)},Et=function(e,t,r,n){return ye({service:e,scope:Gt(e),path:`/api/roles/${t}`},r,n)},Pt=function(e,t,r,n){return ye({service:e,scope:Gt(e),path:`/api/roles/${t}`,method:ve.DELETE},r,n)},Lt=function(e,t,r){return ye({service:e,scope:Gt(e),path:"/api/roles",method:ve.POST},t,r)},jt=function(e,t,r){return ye({service:e,scope:Gt(e),path:"/api/storage_gateways"},t,r)},It=function(e,t,r,n){return ye({service:e,scope:Gt(e),path:`/api/storage_gateways/${t}`},r,n)},xt=function(e,t,r,n){return ye({service:e,scope:Gt(e),path:`/api/storage_gateways/${t}`,method:ve.DELETE},r,n)},Ut=function(e,t,r){return ye({service:e,scope:Gt(e),path:"/api/storage_gateways",method:ve.POST},t,r)},Rt=function(e,t,r,n){return ye({service:e,scope:Gt(e),path:`/api/storage_gateways/${t}`,method:ve.PUT},r,n)},Bt=function(e,t,r,n){return ye({service:e,scope:Gt(e),path:`/api/storage_gateways/${t}`,method:ve.PATCH},r,n)},Dt=function(e,t,r){return ye({service:e,scope:Gt(e),path:"/api/user_credentials"},t,r)},Ct=function(e,t,r,n){return ye({service:e,scope:Gt(e),path:`/api/user_credentials/${t}`},r,n)},kt=function(e,t,r,n){return ye({service:e,scope:Gt(e),path:`/api/user_credentials/${t}`,method:ve.DELETE},r,n)},Nt=function(e,t,r){return ye({service:e,scope:Gt(e),path:"/api/user_credentials",method:ve.POST},t,r)},Ht=function(e,t,r,n){return ye({service:e,scope:Gt(e),path:`/api/user_credentials/${t}`,method:ve.PUT},r,n)},$t=function(e,t,r,n){return ye({service:e,scope:Gt(e),path:`/api/user_credentials/${t}`,method:ve.PATCH},r,n)},Ft=function(e,t,r){return ye({service:e,scope:Gt(e),path:"/api/info"},t,r)},Mt={HIGH_ASSURANCE:"urn:globus:auth:scope:<ENDPOINT_ID>:manage_collections",NON_HIGH_ASSURANCE:"urn:globus:auth:scope:<ENDPOINT_ID>:manage_collections[*https://auth.globus.org/scopes/<MAPPED_COLLECTION_ID>/data_access]"};function Gt(e){return Mt.HIGH_ASSURANCE.replace("<ENDPOINT_ID>",e.endpoint_id)}const qt=function(e,t){return ye({service:Q,scope:"https://auth.globus.org/scopes/524230d7-ea86-4a52-8312-86065a9e0417/timer",path:"/v2/timer",method:ve.POST},e,t)},Vt=a})(),globus=n})();
|