@globus/sdk 0.4.1-alpha.0 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/commonjs/src/index.d.ts +27 -1
- package/dist/commonjs/src/index.d.ts.map +1 -1
- package/dist/commonjs/src/index.js +29 -17
- package/dist/commonjs/src/index.js.map +1 -1
- package/dist/commonjs/src/lib/core/authorization.d.ts +9 -0
- package/dist/commonjs/src/lib/core/authorization.d.ts.map +1 -1
- package/dist/commonjs/src/lib/core/authorization.js +15 -0
- package/dist/commonjs/src/lib/core/authorization.js.map +1 -1
- package/dist/commonjs/src/lib/services/auth/index.d.ts +4 -0
- package/dist/commonjs/src/lib/services/auth/index.d.ts.map +1 -1
- package/dist/commonjs/src/lib/services/auth/index.js +5 -1
- package/dist/commonjs/src/lib/services/auth/index.js.map +1 -1
- package/dist/commonjs/src/lib/services/flows/index.d.ts +5 -2
- package/dist/commonjs/src/lib/services/flows/index.d.ts.map +1 -1
- package/dist/commonjs/src/lib/services/flows/index.js +6 -3
- package/dist/commonjs/src/lib/services/flows/index.js.map +1 -1
- package/dist/commonjs/src/lib/services/flows/service/flows.d.ts +5 -1
- package/dist/commonjs/src/lib/services/flows/service/flows.d.ts.map +1 -1
- package/dist/commonjs/src/lib/services/flows/service/runs.d.ts +5 -1
- package/dist/commonjs/src/lib/services/flows/service/runs.d.ts.map +1 -1
- package/dist/commonjs/src/lib/services/globus-connect-server/client.d.ts +59 -23
- package/dist/commonjs/src/lib/services/globus-connect-server/client.d.ts.map +1 -1
- package/dist/commonjs/src/lib/services/globus-connect-server/index.d.ts +8 -4
- package/dist/commonjs/src/lib/services/globus-connect-server/index.d.ts.map +1 -1
- package/dist/commonjs/src/lib/services/globus-connect-server/index.js +1 -1
- package/dist/commonjs/src/lib/services/globus-connect-server/index.js.map +1 -1
- package/dist/commonjs/src/lib/services/globus-connect-server/service/collections.d.ts +20 -8
- package/dist/commonjs/src/lib/services/globus-connect-server/service/collections.d.ts.map +1 -1
- package/dist/commonjs/src/lib/services/globus-connect-server/service/collections.js +4 -4
- package/dist/commonjs/src/lib/services/globus-connect-server/service/collections.js.map +1 -1
- package/dist/commonjs/src/lib/services/globus-connect-server/service/endpoint.d.ts +1 -1
- package/dist/commonjs/src/lib/services/globus-connect-server/service/endpoint.d.ts.map +1 -1
- package/dist/commonjs/src/lib/services/globus-connect-server/service/endpoint.js +1 -1
- package/dist/commonjs/src/lib/services/globus-connect-server/service/endpoint.js.map +1 -1
- package/dist/commonjs/src/lib/services/globus-connect-server/service/roles.d.ts +9 -3
- package/dist/commonjs/src/lib/services/globus-connect-server/service/roles.d.ts.map +1 -1
- package/dist/commonjs/src/lib/services/globus-connect-server/service/roles.js +2 -2
- package/dist/commonjs/src/lib/services/globus-connect-server/service/roles.js.map +1 -1
- package/dist/commonjs/src/lib/services/globus-connect-server/service/storage-gateways.d.ts +18 -6
- package/dist/commonjs/src/lib/services/globus-connect-server/service/storage-gateways.d.ts.map +1 -1
- package/dist/commonjs/src/lib/services/globus-connect-server/service/storage-gateways.js +4 -4
- package/dist/commonjs/src/lib/services/globus-connect-server/service/storage-gateways.js.map +1 -1
- package/dist/commonjs/src/lib/services/globus-connect-server/service/user-credentials.d.ts +11 -5
- package/dist/commonjs/src/lib/services/globus-connect-server/service/user-credentials.d.ts.map +1 -1
- package/dist/commonjs/src/lib/services/globus-connect-server/service/user-credentials.js +3 -3
- package/dist/commonjs/src/lib/services/globus-connect-server/service/user-credentials.js.map +1 -1
- package/dist/commonjs/src/lib/services/groups/index.d.ts +5 -1
- package/dist/commonjs/src/lib/services/groups/index.d.ts.map +1 -1
- package/dist/commonjs/src/lib/services/groups/index.js +5 -1
- package/dist/commonjs/src/lib/services/groups/index.js.map +1 -1
- package/dist/commonjs/src/lib/services/groups/service/groups.d.ts +18 -8
- package/dist/commonjs/src/lib/services/groups/service/groups.d.ts.map +1 -1
- package/dist/commonjs/src/lib/services/groups/service/groups.js +4 -4
- package/dist/commonjs/src/lib/services/groups/service/groups.js.map +1 -1
- package/dist/commonjs/src/lib/services/groups/service/membership.d.ts +6 -2
- package/dist/commonjs/src/lib/services/groups/service/membership.d.ts.map +1 -1
- package/dist/commonjs/src/lib/services/groups/service/policies.d.ts +1 -1
- package/dist/commonjs/src/lib/services/groups/service/policies.d.ts.map +1 -1
- package/dist/commonjs/src/lib/services/groups/service/policies.js +1 -1
- package/dist/commonjs/src/lib/services/groups/service/policies.js.map +1 -1
- package/dist/commonjs/src/lib/services/search/index.d.ts +5 -1
- package/dist/commonjs/src/lib/services/search/index.d.ts.map +1 -1
- package/dist/commonjs/src/lib/services/search/index.js +5 -1
- package/dist/commonjs/src/lib/services/search/index.js.map +1 -1
- package/dist/commonjs/src/lib/services/search/service/query.d.ts +18 -11
- package/dist/commonjs/src/lib/services/search/service/query.d.ts.map +1 -1
- package/dist/commonjs/src/lib/services/search/service/query.js +2 -4
- package/dist/commonjs/src/lib/services/search/service/query.js.map +1 -1
- package/dist/commonjs/src/lib/services/shared.d.ts +4 -3
- package/dist/commonjs/src/lib/services/shared.d.ts.map +1 -1
- package/dist/commonjs/src/lib/services/shared.js +4 -3
- package/dist/commonjs/src/lib/services/shared.js.map +1 -1
- package/dist/commonjs/src/lib/services/transfer/index.d.ts +7 -3
- package/dist/commonjs/src/lib/services/transfer/index.d.ts.map +1 -1
- package/dist/commonjs/src/lib/services/transfer/index.js +6 -2
- package/dist/commonjs/src/lib/services/transfer/index.js.map +1 -1
- package/dist/commonjs/src/lib/services/transfer/service/endpoint-search.d.ts +9 -4
- package/dist/commonjs/src/lib/services/transfer/service/endpoint-search.d.ts.map +1 -1
- package/dist/commonjs/src/lib/services/transfer/service/endpoint-search.js +6 -4
- package/dist/commonjs/src/lib/services/transfer/service/endpoint-search.js.map +1 -1
- package/dist/commonjs/src/lib/services/transfer/service/file-operations.d.ts +32 -14
- package/dist/commonjs/src/lib/services/transfer/service/file-operations.d.ts.map +1 -1
- package/dist/commonjs/src/lib/services/transfer/service/file-operations.js +5 -8
- package/dist/commonjs/src/lib/services/transfer/service/file-operations.js.map +1 -1
- package/dist/commonjs/src/lib/services/transfer/service/task-submission.d.ts +13 -5
- package/dist/commonjs/src/lib/services/transfer/service/task-submission.d.ts.map +1 -1
- package/dist/commonjs/src/lib/services/transfer/service/task-submission.js +4 -7
- package/dist/commonjs/src/lib/services/transfer/service/task-submission.js.map +1 -1
- package/dist/commonjs/src/lib/services/transfer/shared.js +1 -1
- package/dist/commonjs/src/lib/services/types.d.ts +24 -10
- package/dist/commonjs/src/lib/services/types.d.ts.map +1 -1
- package/dist/commonjs/tsconfig.cjs.tsbuildinfo +1 -1
- package/dist/src/index.d.ts +27 -1
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +29 -4
- package/dist/src/index.js.map +1 -1
- package/dist/src/lib/core/authorization.d.ts +9 -0
- package/dist/src/lib/core/authorization.d.ts.map +1 -1
- package/dist/src/lib/core/authorization.js +15 -0
- package/dist/src/lib/core/authorization.js.map +1 -1
- package/dist/src/lib/services/auth/index.d.ts +4 -0
- package/dist/src/lib/services/auth/index.d.ts.map +1 -1
- package/dist/src/lib/services/auth/index.js +5 -1
- package/dist/src/lib/services/auth/index.js.map +1 -1
- package/dist/src/lib/services/flows/index.d.ts +5 -2
- package/dist/src/lib/services/flows/index.d.ts.map +1 -1
- package/dist/src/lib/services/flows/index.js +5 -3
- package/dist/src/lib/services/flows/index.js.map +1 -1
- package/dist/src/lib/services/flows/service/flows.d.ts +5 -1
- package/dist/src/lib/services/flows/service/flows.d.ts.map +1 -1
- package/dist/src/lib/services/flows/service/runs.d.ts +5 -1
- package/dist/src/lib/services/flows/service/runs.d.ts.map +1 -1
- package/dist/src/lib/services/globus-connect-server/client.d.ts +59 -23
- package/dist/src/lib/services/globus-connect-server/client.d.ts.map +1 -1
- package/dist/src/lib/services/globus-connect-server/index.d.ts +8 -4
- package/dist/src/lib/services/globus-connect-server/index.d.ts.map +1 -1
- package/dist/src/lib/services/globus-connect-server/index.js +1 -1
- package/dist/src/lib/services/globus-connect-server/index.js.map +1 -1
- package/dist/src/lib/services/globus-connect-server/service/collections.d.ts +20 -8
- package/dist/src/lib/services/globus-connect-server/service/collections.d.ts.map +1 -1
- package/dist/src/lib/services/globus-connect-server/service/collections.js +4 -4
- package/dist/src/lib/services/globus-connect-server/service/collections.js.map +1 -1
- package/dist/src/lib/services/globus-connect-server/service/endpoint.d.ts +1 -1
- package/dist/src/lib/services/globus-connect-server/service/endpoint.d.ts.map +1 -1
- package/dist/src/lib/services/globus-connect-server/service/endpoint.js +1 -1
- package/dist/src/lib/services/globus-connect-server/service/endpoint.js.map +1 -1
- package/dist/src/lib/services/globus-connect-server/service/roles.d.ts +9 -3
- package/dist/src/lib/services/globus-connect-server/service/roles.d.ts.map +1 -1
- package/dist/src/lib/services/globus-connect-server/service/roles.js +2 -2
- package/dist/src/lib/services/globus-connect-server/service/roles.js.map +1 -1
- package/dist/src/lib/services/globus-connect-server/service/storage-gateways.d.ts +18 -6
- package/dist/src/lib/services/globus-connect-server/service/storage-gateways.d.ts.map +1 -1
- package/dist/src/lib/services/globus-connect-server/service/storage-gateways.js +4 -4
- package/dist/src/lib/services/globus-connect-server/service/storage-gateways.js.map +1 -1
- package/dist/src/lib/services/globus-connect-server/service/user-credentials.d.ts +11 -5
- package/dist/src/lib/services/globus-connect-server/service/user-credentials.d.ts.map +1 -1
- package/dist/src/lib/services/globus-connect-server/service/user-credentials.js +3 -3
- package/dist/src/lib/services/globus-connect-server/service/user-credentials.js.map +1 -1
- package/dist/src/lib/services/groups/index.d.ts +5 -1
- package/dist/src/lib/services/groups/index.d.ts.map +1 -1
- package/dist/src/lib/services/groups/index.js +5 -1
- package/dist/src/lib/services/groups/index.js.map +1 -1
- package/dist/src/lib/services/groups/service/groups.d.ts +18 -8
- package/dist/src/lib/services/groups/service/groups.d.ts.map +1 -1
- package/dist/src/lib/services/groups/service/groups.js +4 -4
- package/dist/src/lib/services/groups/service/groups.js.map +1 -1
- package/dist/src/lib/services/groups/service/membership.d.ts +6 -2
- package/dist/src/lib/services/groups/service/membership.d.ts.map +1 -1
- package/dist/src/lib/services/groups/service/policies.d.ts +1 -1
- package/dist/src/lib/services/groups/service/policies.d.ts.map +1 -1
- package/dist/src/lib/services/groups/service/policies.js +1 -1
- package/dist/src/lib/services/groups/service/policies.js.map +1 -1
- package/dist/src/lib/services/search/index.d.ts +5 -1
- package/dist/src/lib/services/search/index.d.ts.map +1 -1
- package/dist/src/lib/services/search/index.js +5 -1
- package/dist/src/lib/services/search/index.js.map +1 -1
- package/dist/src/lib/services/search/service/query.d.ts +18 -11
- package/dist/src/lib/services/search/service/query.d.ts.map +1 -1
- package/dist/src/lib/services/search/service/query.js +2 -4
- package/dist/src/lib/services/search/service/query.js.map +1 -1
- package/dist/src/lib/services/shared.d.ts +4 -3
- package/dist/src/lib/services/shared.d.ts.map +1 -1
- package/dist/src/lib/services/shared.js +4 -3
- package/dist/src/lib/services/shared.js.map +1 -1
- package/dist/src/lib/services/transfer/index.d.ts +7 -3
- package/dist/src/lib/services/transfer/index.d.ts.map +1 -1
- package/dist/src/lib/services/transfer/index.js +7 -3
- package/dist/src/lib/services/transfer/index.js.map +1 -1
- package/dist/src/lib/services/transfer/service/endpoint-search.d.ts +9 -4
- package/dist/src/lib/services/transfer/service/endpoint-search.d.ts.map +1 -1
- package/dist/src/lib/services/transfer/service/endpoint-search.js +4 -3
- package/dist/src/lib/services/transfer/service/endpoint-search.js.map +1 -1
- package/dist/src/lib/services/transfer/service/file-operations.d.ts +32 -14
- package/dist/src/lib/services/transfer/service/file-operations.d.ts.map +1 -1
- package/dist/src/lib/services/transfer/service/file-operations.js +5 -8
- package/dist/src/lib/services/transfer/service/file-operations.js.map +1 -1
- package/dist/src/lib/services/transfer/service/task-submission.d.ts +13 -5
- package/dist/src/lib/services/transfer/service/task-submission.d.ts.map +1 -1
- package/dist/src/lib/services/transfer/service/task-submission.js +2 -3
- package/dist/src/lib/services/transfer/service/task-submission.js.map +1 -1
- package/dist/src/lib/services/transfer/shared.js +1 -1
- package/dist/src/lib/services/types.d.ts +24 -10
- package/dist/src/lib/services/types.d.ts.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +3 -3
|
@@ -1,10 +1,36 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @module @globus/sdk
|
|
3
|
+
* @description `@globus/sdk` provides modules for interacting with the various APIs that make up the Globus platform.
|
|
4
|
+
*
|
|
5
|
+
* ### Key Concepts
|
|
6
|
+
* - All service methods return a `Promise` that resolves to a [Fetch API Response object](https://developer.mozilla.org/en-US/docs/Web/API/Response).
|
|
7
|
+
* - Under the hood, we are returning the result of a composed [`fetch`](https://developer.mozilla.org/en-US/docs/Web/API/fetch).
|
|
8
|
+
* - All service methods accept a `ServiceMethodOptions` object to pass query parameters and a payload.
|
|
9
|
+
* - All service methods support a tail argument to pass options to the SDK, including the composed `fetch` call.
|
|
10
|
+
*
|
|
11
|
+
* @example <caption>Using the SDK to search for endpoints via Transfer API.</caption>
|
|
12
|
+
* import { transfer } from "@globus/sdk";
|
|
13
|
+
*
|
|
14
|
+
* const result = await (await transfer.endpointSearch({ query: { filter_fulltext: 'Globus Tutorial' }}, {
|
|
15
|
+
* fetch: {
|
|
16
|
+
* // Provide parameters to the underlying `fetch` call.
|
|
17
|
+
* // https://developer.mozilla.org/en-US/docs/Web/API/fetch#parameters
|
|
18
|
+
* headers: {
|
|
19
|
+
* Authorization: `Bearer MY_ACCESS_TOKEN`
|
|
20
|
+
* }
|
|
21
|
+
* }
|
|
22
|
+
* })).json();
|
|
23
|
+
*
|
|
24
|
+
* @example <caption>Using the SDK to fetch a single flow from the Flows API.</caption>
|
|
25
|
+
* import { flows } from "@globus/sdk";
|
|
26
|
+
*
|
|
27
|
+
* const result = await (await flows.flows.get("452bbea3-5e3b-45a5-af08-50179839a4e8")).json();
|
|
3
28
|
*/
|
|
4
|
-
export * from "./lib/sdk";
|
|
5
29
|
export * as authorization from "./lib/core/authorization";
|
|
6
30
|
export * as auth from "./lib/services/auth";
|
|
7
31
|
export * as transfer from "./lib/services/transfer";
|
|
8
32
|
export * as search from "./lib/services/search";
|
|
33
|
+
export * as groups from "./lib/services/groups";
|
|
34
|
+
export * as flows from "./lib/services/flows";
|
|
9
35
|
export * as gcs from "./lib/services/globus-connect-server";
|
|
10
36
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AAMH,OAAO,KAAK,aAAa,MAAM,0BAA0B,CAAC;AAC1D,OAAO,KAAK,IAAI,MAAM,qBAAqB,CAAC;AAC5C,OAAO,KAAK,QAAQ,MAAM,yBAAyB,CAAC;AACpD,OAAO,KAAK,MAAM,MAAM,uBAAuB,CAAC;AAChD,OAAO,KAAK,MAAM,MAAM,uBAAuB,CAAC;AAChD,OAAO,KAAK,KAAK,MAAM,sBAAsB,CAAC;AAC9C,OAAO,KAAK,GAAG,MAAM,sCAAsC,CAAC"}
|
|
@@ -1,30 +1,42 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/**
|
|
3
3
|
* @module @globus/sdk
|
|
4
|
+
* @description `@globus/sdk` provides modules for interacting with the various APIs that make up the Globus platform.
|
|
5
|
+
*
|
|
6
|
+
* ### Key Concepts
|
|
7
|
+
* - All service methods return a `Promise` that resolves to a [Fetch API Response object](https://developer.mozilla.org/en-US/docs/Web/API/Response).
|
|
8
|
+
* - Under the hood, we are returning the result of a composed [`fetch`](https://developer.mozilla.org/en-US/docs/Web/API/fetch).
|
|
9
|
+
* - All service methods accept a `ServiceMethodOptions` object to pass query parameters and a payload.
|
|
10
|
+
* - All service methods support a tail argument to pass options to the SDK, including the composed `fetch` call.
|
|
11
|
+
*
|
|
12
|
+
* @example <caption>Using the SDK to search for endpoints via Transfer API.</caption>
|
|
13
|
+
* import { transfer } from "@globus/sdk";
|
|
14
|
+
*
|
|
15
|
+
* const result = await (await transfer.endpointSearch({ query: { filter_fulltext: 'Globus Tutorial' }}, {
|
|
16
|
+
* fetch: {
|
|
17
|
+
* // Provide parameters to the underlying `fetch` call.
|
|
18
|
+
* // https://developer.mozilla.org/en-US/docs/Web/API/fetch#parameters
|
|
19
|
+
* headers: {
|
|
20
|
+
* Authorization: `Bearer MY_ACCESS_TOKEN`
|
|
21
|
+
* }
|
|
22
|
+
* }
|
|
23
|
+
* })).json();
|
|
24
|
+
*
|
|
25
|
+
* @example <caption>Using the SDK to fetch a single flow from the Flows API.</caption>
|
|
26
|
+
* import { flows } from "@globus/sdk";
|
|
27
|
+
*
|
|
28
|
+
* const result = await (await flows.flows.get("452bbea3-5e3b-45a5-af08-50179839a4e8")).json();
|
|
4
29
|
*/
|
|
30
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
31
|
+
exports.gcs = exports.flows = exports.groups = exports.search = exports.transfer = exports.auth = exports.authorization = void 0;
|
|
5
32
|
/// <reference types="@globus/types" />
|
|
6
33
|
/// <reference types="@globus/types/auth" />
|
|
7
34
|
/// <reference types="@globus/types/transfer" />
|
|
8
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
9
|
-
if (k2 === undefined) k2 = k;
|
|
10
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
11
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
12
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
13
|
-
}
|
|
14
|
-
Object.defineProperty(o, k2, desc);
|
|
15
|
-
}) : (function(o, m, k, k2) {
|
|
16
|
-
if (k2 === undefined) k2 = k;
|
|
17
|
-
o[k2] = m[k];
|
|
18
|
-
}));
|
|
19
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
20
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
21
|
-
};
|
|
22
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
23
|
-
exports.gcs = exports.search = exports.transfer = exports.auth = exports.authorization = void 0;
|
|
24
|
-
__exportStar(require("./lib/sdk"), exports);
|
|
25
35
|
exports.authorization = require("./lib/core/authorization");
|
|
26
36
|
exports.auth = require("./lib/services/auth");
|
|
27
37
|
exports.transfer = require("./lib/services/transfer");
|
|
28
38
|
exports.search = require("./lib/services/search");
|
|
39
|
+
exports.groups = require("./lib/services/groups");
|
|
40
|
+
exports.flows = require("./lib/services/flows");
|
|
29
41
|
exports.gcs = require("./lib/services/globus-connect-server");
|
|
30
42
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":";AAAA
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;;;AAEH,uCAAuC;AACvC,4CAA4C;AAC5C,gDAAgD;AAEhD,4DAA0D;AAC1D,8CAA4C;AAC5C,sDAAoD;AACpD,kDAAgD;AAChD,kDAAgD;AAChD,gDAA8C;AAC9C,8DAA4D"}
|
|
@@ -4,6 +4,9 @@ type PKCEConfiguration = {
|
|
|
4
4
|
requested_scopes: IConfig["requested_scopes"];
|
|
5
5
|
redirect_uri: IConfig["redirect_uri"];
|
|
6
6
|
};
|
|
7
|
+
/**
|
|
8
|
+
* @experimental
|
|
9
|
+
*/
|
|
7
10
|
export declare class PKCEAuthorization {
|
|
8
11
|
#private;
|
|
9
12
|
constructor(configuration: PKCEConfiguration);
|
|
@@ -15,7 +18,13 @@ export declare class PKCEAuthorization {
|
|
|
15
18
|
hasToken(): boolean;
|
|
16
19
|
revoke(): void;
|
|
17
20
|
}
|
|
21
|
+
/**
|
|
22
|
+
* @experimental
|
|
23
|
+
*/
|
|
18
24
|
export declare function pkce(configuration: PKCEConfiguration): PKCEAuthorization;
|
|
25
|
+
/**
|
|
26
|
+
* @experimental
|
|
27
|
+
*/
|
|
19
28
|
export declare function incremental(configuration: PKCEConfiguration): PKCEAuthorization;
|
|
20
29
|
export {};
|
|
21
30
|
//# sourceMappingURL=authorization.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"authorization.d.ts","sourceRoot":"","sources":["../../../../../src/lib/core/authorization.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"authorization.d.ts","sourceRoot":"","sources":["../../../../../src/lib/core/authorization.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAahD,KAAK,iBAAiB,GAAG;IACvB,SAAS,CAAC,EAAE,OAAO,CAAC,WAAW,CAAC,CAAC;IACjC,gBAAgB,EAAE,OAAO,CAAC,kBAAkB,CAAC,CAAC;IAC9C,YAAY,EAAE,OAAO,CAAC,cAAc,CAAC,CAAC;CACvC,CAAC;AAEF;;GAEG;AACH,qBAAa,iBAAiB;;gBAKhB,aAAa,EAAE,iBAAiB;IA2B5C,KAAK;IAKL,QAAQ;IAKF,kBAAkB,CAAC,OAAO;;KAA0C;IAiB1E,QAAQ,IAAI,OAAO;IAMnB,MAAM;CAGP;AAED;;GAEG;AACH,wBAAgB,IAAI,CAAC,aAAa,EAAE,iBAAiB,qBAEpD;AAED;;GAEG;AACH,wBAAgB,WAAW,CAAC,aAAa,EAAE,iBAAiB,qBAE3D"}
|
|
@@ -22,11 +22,20 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
22
22
|
var _PKCEAuthorization_instances, _PKCEAuthorization_pkce, _PKCEAuthorization_configuration, _PKCEAuthorization_response, _PKCEAuthorization_createPKCEInstance, _PKCEAuthorization_resetPKCE;
|
|
23
23
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
24
24
|
exports.incremental = exports.pkce = exports.PKCEAuthorization = void 0;
|
|
25
|
+
/**
|
|
26
|
+
* @description Session and authorization management via PKCE.
|
|
27
|
+
* @group Core
|
|
28
|
+
* @module
|
|
29
|
+
* @experimental
|
|
30
|
+
*/
|
|
25
31
|
const js_pkce_1 = require("js-pkce");
|
|
26
32
|
const auth_1 = require("../services/auth");
|
|
27
33
|
const consent_1 = require("./consent");
|
|
28
34
|
const storage_1 = require("./storage");
|
|
29
35
|
let storage;
|
|
36
|
+
/**
|
|
37
|
+
* @experimental
|
|
38
|
+
*/
|
|
30
39
|
class PKCEAuthorization {
|
|
31
40
|
constructor(configuration) {
|
|
32
41
|
_PKCEAuthorization_instances.add(this);
|
|
@@ -86,10 +95,16 @@ _PKCEAuthorization_pkce = new WeakMap(), _PKCEAuthorization_configuration = new
|
|
|
86
95
|
sessionStorage.removeItem("pkce_state");
|
|
87
96
|
sessionStorage.removeItem("pkce_code_verifier");
|
|
88
97
|
};
|
|
98
|
+
/**
|
|
99
|
+
* @experimental
|
|
100
|
+
*/
|
|
89
101
|
function pkce(configuration) {
|
|
90
102
|
return new PKCEAuthorization(configuration);
|
|
91
103
|
}
|
|
92
104
|
exports.pkce = pkce;
|
|
105
|
+
/**
|
|
106
|
+
* @experimental
|
|
107
|
+
*/
|
|
93
108
|
function incremental(configuration) {
|
|
94
109
|
return new PKCEAuthorization(configuration);
|
|
95
110
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"authorization.js","sourceRoot":"","sources":["../../../../../src/lib/core/authorization.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAA,qCAA2B;AAI3B,2CAA8E;AAC9E,uCAImB;AAEnB,uCAAyD;AAEzD,IAAI,OAAsB,CAAC;AAQ3B,MAAa,iBAAiB;IAK5B,YAAY,aAAgC;;QAJ5C,0CAAY;QACZ,mDAAwB;QACxB,8CAAsC;QAGpC,OA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AC,6BAA6B,EAAE;gBACzC,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;gBACtB,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;gBACvB,GAAG,CAAC,MAAM,GAAG,MAAM,CAAC,QAAQ,EAAE,CAAC;gBAC/B,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;aAC9B;QACH,CAAC;KAAA;IAED,QAAQ;QACN,OAAO,uBAAA,IAAI,wCAAe,CAAC,gBAAgB;aACxC,KAAK,CAAC,GAAG,CAAC;aACV,KAAK,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,OAAO,CAAC,IAAA,0BAAgB,EAAC,KAAK,CAAC,CAAC,CAAC,CAAC;IACxD,CAAC;IAED,MAAM;QACJ,IAAI,CAAC,KAAK,EAAE,CAAC;IACf,CAAC;CACF;AApED,8CAoEC;;IAhDG,OAAO,IAAI,iBAAI,CAAC,uBAAA,IAAI,wCAAe,CAAC,CAAC;AACvC,CAAC;IAGC;;;OAGG;IACH,cAAc,CAAC,UAAU,CAAC,YAAY,CAAC,CAAC;IACxC,cAAc,CAAC,UAAU,CAAC,oBAAoB,CAAC,CAAC;AAClD,CAAC;AAwCH;;GAEG;AACH,SAAgB,IAAI,CAAC,aAAgC;IACnD,OAAO,IAAI,iBAAiB,CAAC,aAAa,CAAC,CAAC;AAC9C,CAAC;AAFD,oBAEC;AAED;;GAEG;AACH,SAAgB,WAAW,CAAC,aAAgC;IAC1D,OAAO,IAAI,iBAAiB,CAAC,aAAa,CAAC,CAAC;AAC9C,CAAC;AAFD,kCAEC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/services/auth/index.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,IAAI,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/services/auth/index.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,IAAI,MAAM,UAAU,CAAC;AAEjC;;;GAGG;AACH,eAAO,MAAM,MAAM,aAAO,CAAC;AAE3B,OAAO,KAAK,cAAc,MAAM,6BAA6B,CAAC;AAE9D,wBAAgB,wBAAwB,WAEvC;AAED,wBAAgB,gBAAgB,WAE/B;AAED,MAAM,MAAM,KAAK,GAAG,cAAc,GAAG;IACnC,eAAe,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AACF;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG,KAAK,GAAG;IAClC,KAAK,EAAE,MAAM,CAAC;IACd,YAAY,EAAE,KAAK,EAAE,CAAC;CACvB,CAAC"}
|
|
@@ -3,12 +3,16 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.getTokenEndpoint = exports.getAuthorizationEndpoint = exports.CONFIG = void 0;
|
|
4
4
|
/**
|
|
5
5
|
* @description A wrapper around the Globus Auth service.
|
|
6
|
-
* @
|
|
6
|
+
* @group Service
|
|
7
7
|
* @see [Globus Auth API Documentation](https://docs.globus.org/api/auth/)
|
|
8
8
|
* @module
|
|
9
9
|
*/
|
|
10
10
|
const url_1 = require("../../core/url");
|
|
11
11
|
const AUTH = require("./config");
|
|
12
|
+
/**
|
|
13
|
+
* @private
|
|
14
|
+
* @internal
|
|
15
|
+
*/
|
|
12
16
|
exports.CONFIG = AUTH;
|
|
13
17
|
function getAuthorizationEndpoint() {
|
|
14
18
|
return (0, url_1.build)(AUTH.ID, "/v2/oauth2/authorize");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/lib/services/auth/index.ts"],"names":[],"mappings":";;;AAAA;;;;;GAKG;AACH,wCAAuC;AAEvC,iCAAiC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/lib/services/auth/index.ts"],"names":[],"mappings":";;;AAAA;;;;;GAKG;AACH,wCAAuC;AAEvC,iCAAiC;AAEjC;;;GAGG;AACU,QAAA,MAAM,GAAG,IAAI,CAAC;AAI3B,SAAgB,wBAAwB;IACtC,OAAO,IAAA,WAAK,EAAC,IAAI,CAAC,EAAE,EAAE,sBAAsB,CAAC,CAAC;AAChD,CAAC;AAFD,4DAEC;AAED,SAAgB,gBAAgB;IAC9B,OAAO,IAAA,WAAK,EAAC,IAAI,CAAC,EAAE,EAAE,kBAAkB,CAAC,CAAC;AAC5C,CAAC;AAFD,4CAEC"}
|
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @description A wrapper around the Globus Flows service.
|
|
3
|
-
* @
|
|
3
|
+
* @group Service
|
|
4
4
|
* @see [Globus Flows API Documentation](https://docs.globus.org/api/flows/)
|
|
5
5
|
* @module
|
|
6
6
|
*/
|
|
7
7
|
import * as FLOWS from "./config";
|
|
8
|
+
/**
|
|
9
|
+
* @private
|
|
10
|
+
* @internal
|
|
11
|
+
*/
|
|
8
12
|
export declare const CONFIG: typeof FLOWS;
|
|
9
13
|
export * as flows from "./service/flows";
|
|
10
14
|
export * as runs from "./service/runs";
|
|
11
|
-
export * as batch from "./service/batch";
|
|
12
15
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/services/flows/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,KAAK,KAAK,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/services/flows/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,KAAK,KAAK,MAAM,UAAU,CAAC;AAElC;;;GAGG;AACH,eAAO,MAAM,MAAM,cAAQ,CAAC;AAE5B,OAAO,KAAK,KAAK,MAAM,iBAAiB,CAAC;AACzC,OAAO,KAAK,IAAI,MAAM,gBAAgB,CAAC"}
|
|
@@ -1,15 +1,18 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.runs = exports.flows = exports.CONFIG = void 0;
|
|
4
4
|
/**
|
|
5
5
|
* @description A wrapper around the Globus Flows service.
|
|
6
|
-
* @
|
|
6
|
+
* @group Service
|
|
7
7
|
* @see [Globus Flows API Documentation](https://docs.globus.org/api/flows/)
|
|
8
8
|
* @module
|
|
9
9
|
*/
|
|
10
10
|
const FLOWS = require("./config");
|
|
11
|
+
/**
|
|
12
|
+
* @private
|
|
13
|
+
* @internal
|
|
14
|
+
*/
|
|
11
15
|
exports.CONFIG = FLOWS;
|
|
12
16
|
exports.flows = require("./service/flows");
|
|
13
17
|
exports.runs = require("./service/runs");
|
|
14
|
-
exports.batch = require("./service/batch");
|
|
15
18
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/lib/services/flows/index.ts"],"names":[],"mappings":";;;AAAA;;;;;GAKG;AACH,kCAAkC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/lib/services/flows/index.ts"],"names":[],"mappings":";;;AAAA;;;;;GAKG;AACH,kCAAkC;AAElC;;;GAGG;AACU,QAAA,MAAM,GAAG,KAAK,CAAC;AAE5B,2CAAyC;AACzC,yCAAuC"}
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @see https://globusonline.github.io/flows/#tag/Flows/paths/~1flows/get
|
|
3
3
|
*/
|
|
4
|
-
export declare const getAll: (parameters?: Record<string, string>
|
|
4
|
+
export declare const getAll: (parameters?: (Record<string, string> & {
|
|
5
|
+
query?: {
|
|
6
|
+
[key: string]: string | number | (string | number | null | undefined)[] | null | undefined;
|
|
7
|
+
} | undefined;
|
|
8
|
+
}) | undefined, options?: import("../../../services/types").SDKOptions | undefined) => Promise<Response>;
|
|
5
9
|
/**
|
|
6
10
|
* @see https://globusonline.github.io/flows/#tag/Flows/paths/~1flows~1{flow_id}/get
|
|
7
11
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"flows.d.ts","sourceRoot":"","sources":["../../../../../../../src/lib/services/flows/service/flows.ts"],"names":[],"mappings":"AAUA;;GAEG;AACH,eAAO,MAAM,MAAM,
|
|
1
|
+
{"version":3,"file":"flows.d.ts","sourceRoot":"","sources":["../../../../../../../src/lib/services/flows/service/flows.ts"],"names":[],"mappings":"AAUA;;GAEG;AACH,eAAO,MAAM,MAAM;;;;wGAQ8B,CAAC;AAElD;;GAEG;AACH,eAAO,MAAM,GAAG,uIAIuC,CAAC;AAExD;;GAEG;AACH,eAAO,MAAM,OAAO,wIAKmC,CAAC"}
|
|
@@ -2,5 +2,9 @@
|
|
|
2
2
|
*
|
|
3
3
|
* @see https://globusonline.github.io/flows/#tag/Runs/paths/~1runs/get
|
|
4
4
|
*/
|
|
5
|
-
export declare const getAll: (parameters?: Record<string, string>
|
|
5
|
+
export declare const getAll: (parameters?: (Record<string, string> & {
|
|
6
|
+
query?: {
|
|
7
|
+
[key: string]: string | number | (string | number | null | undefined)[] | null | undefined;
|
|
8
|
+
} | undefined;
|
|
9
|
+
}) | undefined, options?: import("../../../services/types").SDKOptions | undefined) => Promise<Response>;
|
|
6
10
|
//# sourceMappingURL=runs.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runs.d.ts","sourceRoot":"","sources":["../../../../../../../src/lib/services/flows/service/runs.ts"],"names":[],"mappings":"AAOA;;;GAGG;AACH,eAAO,MAAM,MAAM,
|
|
1
|
+
{"version":3,"file":"runs.d.ts","sourceRoot":"","sources":["../../../../../../../src/lib/services/flows/service/runs.ts"],"names":[],"mappings":"AAOA;;;GAGG;AACH,eAAO,MAAM,MAAM;;;;wGAQ8B,CAAC"}
|
|
@@ -22,7 +22,7 @@ import { type GCSConfiguration } from ".";
|
|
|
22
22
|
export declare function getClient(configuration: GCSConfiguration): {
|
|
23
23
|
configuration: GCSConfiguration;
|
|
24
24
|
endpoint: {
|
|
25
|
-
get: (
|
|
25
|
+
get: (_options?: undefined, sdkOptions?: import("../types").SDKOptions | undefined) => Promise<import("../types").JSONFetchResponse<{
|
|
26
26
|
code?: "success" | undefined;
|
|
27
27
|
data?: ({
|
|
28
28
|
DATA_TYPE: "endpoint#1.0.0";
|
|
@@ -105,9 +105,15 @@ export declare function getClient(configuration: GCSConfiguration): {
|
|
|
105
105
|
}>>;
|
|
106
106
|
};
|
|
107
107
|
collections: {
|
|
108
|
-
get: (collection_id: string,
|
|
109
|
-
|
|
110
|
-
|
|
108
|
+
get: (collection_id: string, options?: ({
|
|
109
|
+
query?: {
|
|
110
|
+
include?: "private_policies"[] | undefined;
|
|
111
|
+
} | undefined;
|
|
112
|
+
} & {
|
|
113
|
+
query?: {
|
|
114
|
+
[key: string]: string | number | (string | number | null | undefined)[] | null | undefined;
|
|
115
|
+
} | undefined;
|
|
116
|
+
}) | undefined, sdkOptions?: import("../types").SDKOptions | undefined) => Promise<import("../types").JSONFetchResponse<{
|
|
111
117
|
code?: "success" | undefined;
|
|
112
118
|
data?: ({
|
|
113
119
|
DATA_TYPE: "collection#1.0.0";
|
|
@@ -863,11 +869,17 @@ export declare function getClient(configuration: GCSConfiguration): {
|
|
|
863
869
|
marker?: string | null | undefined;
|
|
864
870
|
message?: string | undefined;
|
|
865
871
|
}>>;
|
|
866
|
-
getAll: (
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
872
|
+
getAll: (options?: ({
|
|
873
|
+
query?: {
|
|
874
|
+
include?: "private_policies"[] | undefined;
|
|
875
|
+
filter?: ("mapped_collections" | "guest_collections" | "managed_by_me" | "created_by_me")[] | undefined;
|
|
876
|
+
mapped_collection_id?: string | undefined;
|
|
877
|
+
} | undefined;
|
|
878
|
+
} & {
|
|
879
|
+
query?: {
|
|
880
|
+
[key: string]: string | number | (string | number | null | undefined)[] | null | undefined;
|
|
881
|
+
} | undefined;
|
|
882
|
+
}) | undefined, sdkOptions?: import("../types").SDKOptions | undefined) => Promise<import("../types").JSONFetchResponse<{
|
|
871
883
|
code?: "success" | undefined;
|
|
872
884
|
data?: ({
|
|
873
885
|
DATA_TYPE: "collection#1.0.0";
|
|
@@ -1625,7 +1637,7 @@ export declare function getClient(configuration: GCSConfiguration): {
|
|
|
1625
1637
|
}>>;
|
|
1626
1638
|
};
|
|
1627
1639
|
userCredentials: {
|
|
1628
|
-
get: (user_credential_id: string,
|
|
1640
|
+
get: (user_credential_id: string, options?: undefined, sdkOptions?: import("../types").SDKOptions | undefined) => Promise<import("../types").JSONFetchResponse<{
|
|
1629
1641
|
code?: "success" | undefined;
|
|
1630
1642
|
data?: ({
|
|
1631
1643
|
DATA_TYPE: "collection#1.0.0";
|
|
@@ -2381,10 +2393,16 @@ export declare function getClient(configuration: GCSConfiguration): {
|
|
|
2381
2393
|
marker?: string | null | undefined;
|
|
2382
2394
|
message?: string | undefined;
|
|
2383
2395
|
}>>;
|
|
2384
|
-
getAll: (
|
|
2385
|
-
|
|
2386
|
-
|
|
2387
|
-
|
|
2396
|
+
getAll: (options?: ({
|
|
2397
|
+
query?: {
|
|
2398
|
+
include?: "all"[] | undefined;
|
|
2399
|
+
storage_gateway?: string | undefined;
|
|
2400
|
+
} | undefined;
|
|
2401
|
+
} & {
|
|
2402
|
+
query?: {
|
|
2403
|
+
[key: string]: string | number | (string | number | null | undefined)[] | null | undefined;
|
|
2404
|
+
} | undefined;
|
|
2405
|
+
}) | undefined, sdkOptions?: import("../types").SDKOptions | undefined) => Promise<import("../types").JSONFetchResponse<{
|
|
2388
2406
|
code?: "success" | undefined;
|
|
2389
2407
|
data?: {
|
|
2390
2408
|
DATA_TYPE: "user_credential#1.0.0";
|
|
@@ -2479,9 +2497,15 @@ export declare function getClient(configuration: GCSConfiguration): {
|
|
|
2479
2497
|
}>>;
|
|
2480
2498
|
};
|
|
2481
2499
|
storageGateways: {
|
|
2482
|
-
get: (storage_gateway_id: string,
|
|
2483
|
-
|
|
2484
|
-
|
|
2500
|
+
get: (storage_gateway_id: string, options?: ({
|
|
2501
|
+
query?: {
|
|
2502
|
+
include?: ("private_policies" | "accounts")[] | undefined;
|
|
2503
|
+
} | undefined;
|
|
2504
|
+
} & {
|
|
2505
|
+
query?: {
|
|
2506
|
+
[key: string]: string | number | (string | number | null | undefined)[] | null | undefined;
|
|
2507
|
+
} | undefined;
|
|
2508
|
+
}) | undefined, sdkOptions?: import("../types").SDKOptions | undefined) => Promise<import("../types").JSONFetchResponse<{
|
|
2485
2509
|
code?: "success" | undefined;
|
|
2486
2510
|
data?: ({
|
|
2487
2511
|
DATA_TYPE: "storage_gateway#1.0.0";
|
|
@@ -2908,9 +2932,15 @@ export declare function getClient(configuration: GCSConfiguration): {
|
|
|
2908
2932
|
marker?: string | null | undefined;
|
|
2909
2933
|
message?: string | undefined;
|
|
2910
2934
|
}>>;
|
|
2911
|
-
getAll: (
|
|
2912
|
-
|
|
2913
|
-
|
|
2935
|
+
getAll: (options?: ({
|
|
2936
|
+
query?: {
|
|
2937
|
+
include?: ("private_policies" | "accounts")[] | undefined;
|
|
2938
|
+
} | undefined;
|
|
2939
|
+
} & {
|
|
2940
|
+
query?: {
|
|
2941
|
+
[key: string]: string | number | (string | number | null | undefined)[] | null | undefined;
|
|
2942
|
+
} | undefined;
|
|
2943
|
+
}) | undefined, sdkOptions?: import("../types").SDKOptions | undefined) => Promise<import("../types").JSONFetchResponse<{
|
|
2914
2944
|
code?: "success" | undefined;
|
|
2915
2945
|
data?: ({
|
|
2916
2946
|
DATA_TYPE: "storage_gateway#1.0.0";
|
|
@@ -3358,9 +3388,15 @@ export declare function getClient(configuration: GCSConfiguration): {
|
|
|
3358
3388
|
marker?: string | null | undefined;
|
|
3359
3389
|
message?: string | undefined;
|
|
3360
3390
|
}>>;
|
|
3361
|
-
getAll: (
|
|
3362
|
-
|
|
3363
|
-
|
|
3391
|
+
getAll: (options?: ({
|
|
3392
|
+
query?: {
|
|
3393
|
+
include?: "all_roles"[] | undefined;
|
|
3394
|
+
} | undefined;
|
|
3395
|
+
} & {
|
|
3396
|
+
query?: {
|
|
3397
|
+
[key: string]: string | number | (string | number | null | undefined)[] | null | undefined;
|
|
3398
|
+
} | undefined;
|
|
3399
|
+
}) | undefined, sdkOptions?: import("../types").SDKOptions | undefined) => Promise<import("../types").JSONFetchResponse<{
|
|
3364
3400
|
code?: "success" | undefined;
|
|
3365
3401
|
data?: {
|
|
3366
3402
|
DATA_TYPE: "role#1.0.0";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/services/globus-connect-server/client.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AACH,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,GAAG,CAAC;AA8B1C;;;GAGG;AACH,wBAAgB,SAAS,CAAC,aAAa,EAAE,gBAAgB
|
|
1
|
+
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/services/globus-connect-server/client.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AACH,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,GAAG,CAAC;AA8B1C;;;GAGG;AACH,wBAAgB,SAAS,CAAC,aAAa,EAAE,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA0BxD"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @description A wrapper around the Globus Connect Server Manager API.
|
|
3
|
-
* @
|
|
3
|
+
* @group Service
|
|
4
4
|
* @see [Globus Connect Server Manager API Documentation](https://docs.globus.org/globus-connect-server/v5.4/api/)
|
|
5
5
|
* @module
|
|
6
6
|
*/
|
|
7
7
|
/// <reference types="@globus/types" />
|
|
8
|
-
import type { Segment,
|
|
8
|
+
import type { Segment, ServiceMethodOptions, SDKOptions, ServiceMethod, ServiceMethodDynamicSegments, UnknownQueryParameters } from "../types";
|
|
9
9
|
/**
|
|
10
10
|
* Service methods for the Globus Connect Server Manager API.
|
|
11
11
|
*/
|
|
@@ -34,10 +34,14 @@ export type GCSConfiguration = {
|
|
|
34
34
|
* The GCSServiceMethod type is similar to the core ServiceMethod type, but
|
|
35
35
|
* the first parameter is always a GCSConfiguration object.
|
|
36
36
|
*/
|
|
37
|
-
export type GCSServiceMethod<O extends
|
|
37
|
+
export type GCSServiceMethod<O extends ServiceMethodOptions, R extends Response = Response> = (configuration: GCSConfiguration, methodOptions?: O & {
|
|
38
|
+
query?: UnknownQueryParameters;
|
|
39
|
+
}, sdkOptions?: SDKOptions) => ReturnType<ServiceMethod<O, R>>;
|
|
38
40
|
/**
|
|
39
41
|
* The GCSServiceMethodDynamicSegments type is similar to the core ServiceMethodDynamicSegments type, but
|
|
40
42
|
* the first parameter is always a GCSConfiguration object.
|
|
41
43
|
*/
|
|
42
|
-
export type GCSServiceMethodDynamicSegments<S extends Segment, O extends
|
|
44
|
+
export type GCSServiceMethodDynamicSegments<S extends Segment, O extends ServiceMethodOptions, R extends Response = Response> = (configuration: GCSConfiguration, segments: S, methodOptions?: O & {
|
|
45
|
+
query?: UnknownQueryParameters;
|
|
46
|
+
}, sdkOptions?: SDKOptions) => ReturnType<ServiceMethodDynamicSegments<S, O, R>>;
|
|
43
47
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/services/globus-connect-server/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;;AAEH,OAAO,KAAK,EACV,OAAO,EACP,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/services/globus-connect-server/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;;AAEH,OAAO,KAAK,EACV,OAAO,EACP,oBAAoB,EACpB,UAAU,EACV,aAAa,EACb,4BAA4B,EAC5B,sBAAsB,EACvB,MAAM,UAAU,CAAC;AAElB;;GAEG;AACH,OAAO,KAAK,WAAW,MAAM,uBAAuB,CAAC;AACrD,OAAO,KAAK,QAAQ,MAAM,oBAAoB,CAAC;AAC/C,OAAO,KAAK,KAAK,MAAM,iBAAiB,CAAC;AACzC,OAAO,KAAK,eAAe,MAAM,4BAA4B,CAAC;AAC9D,OAAO,KAAK,eAAe,MAAM,4BAA4B,CAAC;AAC9D,OAAO,KAAK,UAAU,MAAM,sBAAsB,CAAC;AAQnD,wBAAgB,iBAAiB,CAAC,aAAa,EAAE,gBAAgB,UAKhE;AAED;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG;IAC7B;;;OAGG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC,IAAI,CAAC;CAC1B,CAAC;AAEF;;;GAGG;AACH,MAAM,MAAM,gBAAgB,CAC1B,CAAC,SAAS,oBAAoB,EAC9B,CAAC,SAAS,QAAQ,GAAG,QAAQ,IAC3B,CACF,aAAa,EAAE,gBAAgB,EAC/B,aAAa,CAAC,EAAE,CAAC,GAAG;IAClB,KAAK,CAAC,EAAE,sBAAsB,CAAC;CAChC,EACD,UAAU,CAAC,EAAE,UAAU,KACpB,UAAU,CAAC,aAAa,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;AAErC;;;GAGG;AACH,MAAM,MAAM,+BAA+B,CACzC,CAAC,SAAS,OAAO,EACjB,CAAC,SAAS,oBAAoB,EAC9B,CAAC,SAAS,QAAQ,GAAG,QAAQ,IAC3B,CACF,aAAa,EAAE,gBAAgB,EAC/B,QAAQ,EAAE,CAAC,EACX,aAAa,CAAC,EAAE,CAAC,GAAG;IAClB,KAAK,CAAC,EAAE,sBAAsB,CAAC;CAChC,EACD,UAAU,CAAC,EAAE,UAAU,KACpB,UAAU,CAAC,4BAA4B,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/**
|
|
3
3
|
* @description A wrapper around the Globus Connect Server Manager API.
|
|
4
|
-
* @
|
|
4
|
+
* @group Service
|
|
5
5
|
* @see [Globus Connect Server Manager API Documentation](https://docs.globus.org/globus-connect-server/v5.4/api/)
|
|
6
6
|
* @module
|
|
7
7
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/lib/services/globus-connect-server/index.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/lib/services/globus-connect-server/index.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAWH;;GAEG;AACH,uDAAqD;AACrD,iDAA+C;AAC/C,2CAAyC;AACzC,gEAA8D;AAC9D,gEAA8D;AAC9D,qDAAmD;AAEnD,MAAM,MAAM,GAAG;IACb,cAAc,EAAE,wDAAwD;IACxE,kBAAkB,EAChB,4HAA4H;CAC/H,CAAC;AAEF,SAAgB,iBAAiB,CAAC,aAA+B;IAC/D,OAAO,MAAM,CAAC,cAAc,CAAC,OAAO,CAClC,eAAe,EACf,aAAa,CAAC,WAAW,CAC1B,CAAC;AACJ,CAAC;AALD,8CAKC"}
|
|
@@ -3,15 +3,27 @@ import type { operations } from "@globus/types/gcs-manager/api";
|
|
|
3
3
|
/**
|
|
4
4
|
* @see https://docs.globus.org/globus-connect-server/v5.4/api/openapi_Collections/#listCollections
|
|
5
5
|
*/
|
|
6
|
-
export declare const getAll: (configuration: import("../index").GCSConfiguration,
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
6
|
+
export declare const getAll: (configuration: import("../index").GCSConfiguration, options?: ({
|
|
7
|
+
query?: {
|
|
8
|
+
include?: "private_policies"[] | undefined;
|
|
9
|
+
filter?: ("mapped_collections" | "guest_collections" | "managed_by_me" | "created_by_me")[] | undefined;
|
|
10
|
+
mapped_collection_id?: string | undefined;
|
|
11
|
+
} | undefined;
|
|
12
|
+
} & {
|
|
13
|
+
query?: {
|
|
14
|
+
[key: string]: string | number | (string | number | null | undefined)[] | null | undefined;
|
|
15
|
+
} | undefined;
|
|
16
|
+
}) | undefined, sdkOptions?: import("../../types").SDKOptions | undefined) => Promise<JSONFetchResponse<operations["listCollections"]["responses"]["200"]["content"]["application/json"]>>;
|
|
11
17
|
/**
|
|
12
18
|
* @see https://docs.globus.org/globus-connect-server/v5.4/api/openapi_Collections/#getCollection
|
|
13
19
|
*/
|
|
14
|
-
export declare const get: (configuration: import("../index").GCSConfiguration, collection_id: string,
|
|
15
|
-
|
|
16
|
-
|
|
20
|
+
export declare const get: (configuration: import("../index").GCSConfiguration, collection_id: string, options?: ({
|
|
21
|
+
query?: {
|
|
22
|
+
include?: "private_policies"[] | undefined;
|
|
23
|
+
} | undefined;
|
|
24
|
+
} & {
|
|
25
|
+
query?: {
|
|
26
|
+
[key: string]: string | number | (string | number | null | undefined)[] | null | undefined;
|
|
27
|
+
} | undefined;
|
|
28
|
+
}) | undefined, sdkOptions?: import("../../types").SDKOptions | undefined) => Promise<JSONFetchResponse<operations["getCollection"]["responses"]["200"]["content"]["application/json"]>>;
|
|
17
29
|
//# sourceMappingURL=collections.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"collections.d.ts","sourceRoot":"","sources":["../../../../../../../src/lib/services/globus-connect-server/service/collections.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AACrD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAEhE;;GAEG;AACH,eAAO,MAAM,MAAM
|
|
1
|
+
{"version":3,"file":"collections.d.ts","sourceRoot":"","sources":["../../../../../../../src/lib/services/globus-connect-server/service/collections.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AACrD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAEhE;;GAEG;AACH,eAAO,MAAM,MAAM;;;;;;;;;;8EAIhB,QACD,kBACE,UAAU,CAAC,iBAAiB,CAAC,CAAC,WAAW,CAAC,CAAC,KAAK,CAAC,CAAC,SAAS,CAAC,CAAC,kBAAkB,CAAC,CACjF,CAWD,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,GAAG;;;;;;;;8EAKb,QACD,kBACE,UAAU,CAAC,eAAe,CAAC,CAAC,WAAW,CAAC,CAAC,KAAK,CAAC,CAAC,SAAS,CAAC,CAAC,kBAAkB,CAAC,CAC/E,CAgBF,CAAC"}
|
|
@@ -7,17 +7,17 @@ const fetch_1 = require("../../../core/fetch");
|
|
|
7
7
|
/**
|
|
8
8
|
* @see https://docs.globus.org/globus-connect-server/v5.4/api/openapi_Collections/#listCollections
|
|
9
9
|
*/
|
|
10
|
-
exports.getAll = function (configuration,
|
|
10
|
+
exports.getAll = function (configuration, options, sdkOptions) {
|
|
11
11
|
var _a;
|
|
12
|
-
return (0, fetch_1.fetchWithScope)((0, index_1.getRequiredScopes)(configuration), (0, url_1.build)(configuration, `/api/collections
|
|
12
|
+
return (0, fetch_1.fetchWithScope)((0, index_1.getRequiredScopes)(configuration), (0, url_1.build)(configuration, `/api/collections`, { search: options === null || options === void 0 ? void 0 : options.query }), Object.assign({}, (_a = sdkOptions === null || sdkOptions === void 0 ? void 0 : sdkOptions.fetch) === null || _a === void 0 ? void 0 : _a.options));
|
|
13
13
|
};
|
|
14
14
|
/**
|
|
15
15
|
* @see https://docs.globus.org/globus-connect-server/v5.4/api/openapi_Collections/#getCollection
|
|
16
16
|
*/
|
|
17
|
-
exports.get = function (configuration, collection_id,
|
|
17
|
+
exports.get = function (configuration, collection_id, options, sdkOptions) {
|
|
18
18
|
var _a;
|
|
19
19
|
return (0, fetch_1.fetchWithScope)((0, index_1.getRequiredScopes)(configuration), (0, url_1.build)(configuration, `/api/collections/${collection_id}`, {
|
|
20
|
-
search:
|
|
20
|
+
search: options === null || options === void 0 ? void 0 : options.query,
|
|
21
21
|
}), Object.assign({}, (_a = sdkOptions === null || sdkOptions === void 0 ? void 0 : sdkOptions.fetch) === null || _a === void 0 ? void 0 : _a.options));
|
|
22
22
|
};
|
|
23
23
|
//# sourceMappingURL=collections.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"collections.js","sourceRoot":"","sources":["../../../../../../../src/lib/services/globus-connect-server/service/collections.ts"],"names":[],"mappings":";;;AAAA,oCAA6C;AAC7C,2CAA0C;AAC1C,+CAAqD;AAUrD;;GAEG;AACU,QAAA,MAAM,GAAG,UACpB,aAAa,EACb,
|
|
1
|
+
{"version":3,"file":"collections.js","sourceRoot":"","sources":["../../../../../../../src/lib/services/globus-connect-server/service/collections.ts"],"names":[],"mappings":";;;AAAA,oCAA6C;AAC7C,2CAA0C;AAC1C,+CAAqD;AAUrD;;GAEG;AACU,QAAA,MAAM,GAAG,UACpB,aAAa,EACb,OAAQ,EACR,UAAW;;IAMX,OAAO,IAAA,sBAAc,EACnB,IAAA,yBAAiB,EAAC,aAAa,CAAC,EAChC,IAAA,WAAK,EAAC,aAAa,EAAE,kBAAkB,EAAE,EAAE,MAAM,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,KAAK,EAAE,CAAC,oBAE/D,MAAA,UAAU,aAAV,UAAU,uBAAV,UAAU,CAAE,KAAK,0CAAE,OAAO,EAEhC,CAAC;AACJ,CAEE,CAAC;AAEH;;GAEG;AACU,QAAA,GAAG,GAAG,UACjB,aAAa,EACb,aAAa,EACb,OAAQ,EACR,UAAW;;IAMX,OAAO,IAAA,sBAAc,EACnB,IAAA,yBAAiB,EAAC,aAAa,CAAC,EAChC,IAAA,WAAK,EAAC,aAAa,EAAE,oBAAoB,aAAa,EAAE,EAAE;QACxD,MAAM,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,KAAK;KACvB,CAAC,oBAEG,MAAA,UAAU,aAAV,UAAU,uBAAV,UAAU,CAAE,KAAK,0CAAE,OAAO,EAEhC,CAAC;AACJ,CAKC,CAAC"}
|