@globus/sdk 1.18.1 → 2.0.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/README.md +0 -1
- package/cjs/lib/services/auth/service/oauth2/token.d.ts +16 -12
- package/cjs/lib/services/auth/service/oauth2/token.d.ts.map +1 -1
- package/cjs/lib/services/auth/service/oauth2/token.js +14 -1
- package/cjs/lib/services/auth/service/oauth2/token.js.map +1 -1
- package/cjs/lib/services/flows/service/flows.d.ts +0 -13
- package/cjs/lib/services/flows/service/flows.d.ts.map +1 -1
- package/cjs/lib/services/flows/service/flows.js +1 -6
- package/cjs/lib/services/flows/service/flows.js.map +1 -1
- package/cjs/lib/services/globus-connect-server/client.d.ts +1651 -675
- package/cjs/lib/services/globus-connect-server/client.d.ts.map +1 -1
- package/cjs/lib/services/globus-connect-server/service/collections.d.ts +2 -8
- package/cjs/lib/services/globus-connect-server/service/collections.d.ts.map +1 -1
- package/cjs/lib/services/globus-connect-server/service/roles.d.ts +1 -3
- package/cjs/lib/services/globus-connect-server/service/roles.d.ts.map +1 -1
- package/cjs/lib/services/globus-connect-server/service/storage-gateways.d.ts +2 -6
- package/cjs/lib/services/globus-connect-server/service/storage-gateways.d.ts.map +1 -1
- package/cjs/lib/services/globus-connect-server/service/user-credentials.d.ts +1 -4
- package/cjs/lib/services/globus-connect-server/service/user-credentials.d.ts.map +1 -1
- package/esm/lib/services/auth/service/oauth2/token.d.ts +16 -12
- package/esm/lib/services/auth/service/oauth2/token.d.ts.map +1 -1
- package/esm/lib/services/auth/service/oauth2/token.js +14 -1
- package/esm/lib/services/auth/service/oauth2/token.js.map +1 -1
- package/esm/lib/services/flows/service/flows.d.ts +0 -13
- package/esm/lib/services/flows/service/flows.d.ts.map +1 -1
- package/esm/lib/services/flows/service/flows.js +0 -5
- package/esm/lib/services/flows/service/flows.js.map +1 -1
- package/esm/lib/services/globus-connect-server/client.d.ts +1651 -675
- package/esm/lib/services/globus-connect-server/client.d.ts.map +1 -1
- package/esm/lib/services/globus-connect-server/service/collections.d.ts +2 -8
- package/esm/lib/services/globus-connect-server/service/collections.d.ts.map +1 -1
- package/esm/lib/services/globus-connect-server/service/roles.d.ts +1 -3
- package/esm/lib/services/globus-connect-server/service/roles.d.ts.map +1 -1
- package/esm/lib/services/globus-connect-server/service/storage-gateways.d.ts +2 -6
- package/esm/lib/services/globus-connect-server/service/storage-gateways.d.ts.map +1 -1
- package/esm/lib/services/globus-connect-server/service/user-credentials.d.ts +1 -4
- package/esm/lib/services/globus-connect-server/service/user-credentials.d.ts.map +1 -1
- package/package.json +3 -3
- package/umd/globus.production.js +1 -1
package/README.md
CHANGED
|
@@ -29,7 +29,6 @@ We aim to support all Active LTS [Node.js releases](https://nodejs.org/en/about/
|
|
|
29
29
|
|
|
30
30
|
| Version | | |
|
|
31
31
|
| ---------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
32
|
-
| Node.js 16 | [](https://github.com/globus/globus-sdk-javascript/actions/workflows/ci.yml) | **⚠️ Node.js 16 is now EOL. Support will be removed in a breaking change release (`v2.x`), but based on this library being in its early stages, we recommend upgrading immediately.** |
|
|
33
32
|
| Node.js 18 | [](https://github.com/globus/globus-sdk-javascript/actions/workflows/ci.yml) | |
|
|
34
33
|
| Node.js 20 | [](https://github.com/globus/globus-sdk-javascript/actions/workflows/ci.yml) | |
|
|
35
34
|
| Node.js 22 | 🧪 Experimental Support[^1] | |
|
|
@@ -1,12 +1,21 @@
|
|
|
1
|
+
type IntrospectPayload = {
|
|
2
|
+
token: string;
|
|
3
|
+
include?: string;
|
|
4
|
+
};
|
|
5
|
+
type RevokePayload = {
|
|
6
|
+
token: string;
|
|
7
|
+
token_type_hint?: 'access_token';
|
|
8
|
+
};
|
|
9
|
+
type ValidatePayload = {
|
|
10
|
+
token: string;
|
|
11
|
+
client_id: string;
|
|
12
|
+
};
|
|
1
13
|
/**
|
|
2
14
|
* Token Introspection
|
|
3
15
|
* @see https://docs.globus.org/api/auth/reference/#token-introspect
|
|
4
16
|
*/
|
|
5
17
|
export declare const introspect: (options: ({
|
|
6
|
-
payload:
|
|
7
|
-
token: string;
|
|
8
|
-
include?: string;
|
|
9
|
-
};
|
|
18
|
+
payload: IntrospectPayload;
|
|
10
19
|
} & {
|
|
11
20
|
query?: {
|
|
12
21
|
[key: string]: string | number | (string | number | null | undefined)[] | null | undefined;
|
|
@@ -18,10 +27,7 @@ export declare const introspect: (options: ({
|
|
|
18
27
|
* @see https://docs.globus.org/api/auth/reference/#token-revoke
|
|
19
28
|
*/
|
|
20
29
|
export declare const revoke: (options: ({
|
|
21
|
-
payload:
|
|
22
|
-
token: string;
|
|
23
|
-
token_type_hint?: 'access_token';
|
|
24
|
-
};
|
|
30
|
+
payload: RevokePayload;
|
|
25
31
|
} & {
|
|
26
32
|
query?: {
|
|
27
33
|
[key: string]: string | number | (string | number | null | undefined)[] | null | undefined;
|
|
@@ -33,14 +39,12 @@ export declare const revoke: (options: ({
|
|
|
33
39
|
* @deprecated Rather than using `validate` to check if a token is valid, it is recommended to make a request to the resource server with the token and handle the error response.
|
|
34
40
|
*/
|
|
35
41
|
export declare const validate: (options: ({
|
|
36
|
-
payload:
|
|
37
|
-
token: string;
|
|
38
|
-
client_id: string;
|
|
39
|
-
};
|
|
42
|
+
payload: ValidatePayload;
|
|
40
43
|
} & {
|
|
41
44
|
query?: {
|
|
42
45
|
[key: string]: string | number | (string | number | null | undefined)[] | null | undefined;
|
|
43
46
|
} | undefined;
|
|
44
47
|
headers?: import("../../../types.js").Headers | undefined;
|
|
45
48
|
}) | undefined, sdkOptions?: import("../../../types.js").SDKOptions | undefined) => Promise<Response>;
|
|
49
|
+
export {};
|
|
46
50
|
//# sourceMappingURL=token.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"token.d.ts","sourceRoot":"","sources":["../../../../../../../src/lib/services/auth/service/oauth2/token.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"token.d.ts","sourceRoot":"","sources":["../../../../../../../src/lib/services/auth/service/oauth2/token.ts"],"names":[],"mappings":"AAKA,KAAK,iBAAiB,GAAG;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,KAAK,aAAa,GAAG;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,eAAe,CAAC,EAAE,cAAc,CAAC;CAClC,CAAC;AAEF,KAAK,eAAe,GAAG;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAmCF;;;GAGG;AACH,eAAO,MAAM,UAAU;aAYZ,iBAAiB;;;;;;qGAC1B,CAAC;AAEH;;;GAGG;AACH,eAAO,MAAM,MAAM;aAYR,aAAa;;;;;;qGACtB,CAAC;AAEH;;;GAGG;AACH,eAAO,MAAM,QAAQ;aAYV,eAAe;;;;;;qGACxB,CAAC"}
|
|
@@ -3,11 +3,24 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.validate = exports.revoke = exports.introspect = void 0;
|
|
4
4
|
const config_js_1 = require("../../config.js");
|
|
5
5
|
const shared_js_1 = require("../../../../services/shared.js");
|
|
6
|
+
function serialize(payload) {
|
|
7
|
+
return new URLSearchParams(payload);
|
|
8
|
+
}
|
|
6
9
|
/**
|
|
7
10
|
* Format and inject properties that are specific to the `/token` resources.
|
|
8
11
|
*/
|
|
9
12
|
function injectServiceOptions(options) {
|
|
10
|
-
|
|
13
|
+
var _a;
|
|
14
|
+
return Object.assign(Object.assign({}, options), {
|
|
15
|
+
/**
|
|
16
|
+
* The `token` service methods always expect a form-encoded body. We still allow
|
|
17
|
+
* end-consumers to pass a raw body, but if `payload` is provided it is serialized.
|
|
18
|
+
*/
|
|
19
|
+
body: ((_a = options === null || options === void 0 ? void 0 : options.body) !== null && _a !== void 0 ? _a : options === null || options === void 0 ? void 0 : options.payload) ? serialize(options === null || options === void 0 ? void 0 : options.payload) : undefined, headers: Object.assign(Object.assign({}, ((options === null || options === void 0 ? void 0 : options.headers) || {})), {
|
|
20
|
+
/**
|
|
21
|
+
* Force the `Content-Type` header to be `application/x-www-form-urlencoded` and `charset=UTF-8`.
|
|
22
|
+
*/
|
|
23
|
+
'Content-Type': 'application/x-www-form-urlencoded;charset=UTF-8' }) });
|
|
11
24
|
}
|
|
12
25
|
/**
|
|
13
26
|
* Token Introspection
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"token.js","sourceRoot":"","sources":["../../../../../../../src/lib/services/auth/service/oauth2/token.ts"],"names":[],"mappings":";;;AAAA,+CAAqC;AACrC,8DAA8E;
|
|
1
|
+
{"version":3,"file":"token.js","sourceRoot":"","sources":["../../../../../../../src/lib/services/auth/service/oauth2/token.ts"],"names":[],"mappings":";;;AAAA,+CAAqC;AACrC,8DAA8E;AAqB9E,SAAS,SAAS,CAAC,OAA2B;IAC5C,OAAO,IAAI,eAAe,CAAC,OAAO,CAAC,CAAC;AACtC,CAAC;AAED;;GAEG;AACH,SAAS,oBAAoB,CAC3B,OAIa;;IAEb,uCACK,OAAO;QACV;;;WAGG;QACH,IAAI,EAAE,CAAA,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,IAAI,mCAAI,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,OAAO,EAAC,CAAC,CAAC,SAAS,CAAC,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,EACjF,OAAO,kCACF,CAAC,CAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,OAAO,KAAI,EAAE,CAAC;YAC3B;;eAEG;YACH,cAAc,EAAE,iDAAiD,OAEnE;AACJ,CAAC;AAED;;;GAGG;AACU,QAAA,UAAU,GAAG,UAAU,OAAO,EAAE,UAAW;IACtD,OAAO,IAAA,0BAAc,EACnB;QACE,OAAO,EAAE,cAAE;QACX,KAAK,EAAE,SAAS;QAChB,IAAI,EAAE,4BAA4B;QAClC,MAAM,EAAE,wBAAY,CAAC,IAAI;KAC1B,EACD,oBAAoB,CAAC,OAAO,CAAC,EAC7B,UAAU,CACX,CAAC;AACJ,CAEE,CAAC;AAEH;;;GAGG;AACU,QAAA,MAAM,GAAG,UAAU,OAAO,EAAE,UAAW;IAClD,OAAO,IAAA,0BAAc,EACnB;QACE,OAAO,EAAE,cAAE;QACX,KAAK,EAAE,SAAS;QAChB,IAAI,EAAE,wBAAwB;QAC9B,MAAM,EAAE,wBAAY,CAAC,IAAI;KAC1B,EACD,oBAAoB,CAAC,OAAO,CAAC,EAC7B,UAAU,CACX,CAAC;AACJ,CAEE,CAAC;AAEH;;;GAGG;AACU,QAAA,QAAQ,GAAG,UAAU,OAAO,EAAE,UAAW;IACpD,OAAO,IAAA,0BAAc,EACnB;QACE,OAAO,EAAE,cAAE;QACX,KAAK,EAAE,SAAS;QAChB,IAAI,EAAE,0BAA0B;QAChC,MAAM,EAAE,wBAAY,CAAC,IAAI;KAC1B,EACD,oBAAoB,CAAC,OAAO,CAAC,EAC7B,UAAU,CACX,CAAC;AACJ,CAEE,CAAC"}
|
|
@@ -31,17 +31,4 @@ export declare const remove: (flow_id: string, options?: ({
|
|
|
31
31
|
} | undefined;
|
|
32
32
|
headers?: import("../../types.js").Headers | undefined;
|
|
33
33
|
}) | undefined, sdkOptions?: import("../../types.js").SDKOptions | undefined) => Promise<Response>;
|
|
34
|
-
/**
|
|
35
|
-
* @deprecated `destroy` is deprecated in favor of `remove`. This method will be removed in a future release.
|
|
36
|
-
* @since 1.15.0
|
|
37
|
-
*/
|
|
38
|
-
export declare const destroy: (flow_id: string, options?: ({
|
|
39
|
-
query?: undefined;
|
|
40
|
-
payload?: undefined;
|
|
41
|
-
} & {
|
|
42
|
-
query?: {
|
|
43
|
-
[key: string]: string | number | (string | number | null | undefined)[] | null | undefined;
|
|
44
|
-
} | undefined;
|
|
45
|
-
headers?: import("../../types.js").Headers | undefined;
|
|
46
|
-
}) | undefined, sdkOptions?: import("../../types.js").SDKOptions | undefined) => Promise<Response>;
|
|
47
34
|
//# sourceMappingURL=flows.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"flows.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/services/flows/service/flows.ts"],"names":[],"mappings":"AAIA;;GAEG;AACH,eAAO,MAAM,MAAM;;;;;;;;kGAajB,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,GAAG;;;;;kGAUqD,CAAC;AAEtE;;GAEG;AACH,eAAO,MAAM,MAAM;;;;;;;;kGAiBlB,CAAC
|
|
1
|
+
{"version":3,"file":"flows.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/services/flows/service/flows.ts"],"names":[],"mappings":"AAIA;;GAEG;AACH,eAAO,MAAM,MAAM;;;;;;;;kGAajB,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,GAAG;;;;;kGAUqD,CAAC;AAEtE;;GAEG;AACH,eAAO,MAAM,MAAM;;;;;;;;kGAiBlB,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.remove = exports.get = exports.getAll = void 0;
|
|
4
4
|
const config_js_1 = require("../config.js");
|
|
5
5
|
const shared_js_1 = require("../../../services/shared.js");
|
|
6
6
|
/**
|
|
@@ -34,9 +34,4 @@ exports.remove = function (flow_id, options, sdkOptions) {
|
|
|
34
34
|
method: shared_js_1.HTTP_METHODS.DELETE,
|
|
35
35
|
}, options, sdkOptions);
|
|
36
36
|
};
|
|
37
|
-
/**
|
|
38
|
-
* @deprecated `destroy` is deprecated in favor of `remove`. This method will be removed in a future release.
|
|
39
|
-
* @since 1.15.0
|
|
40
|
-
*/
|
|
41
|
-
exports.destroy = exports.remove;
|
|
42
37
|
//# sourceMappingURL=flows.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"flows.js","sourceRoot":"","sources":["../../../../../../src/lib/services/flows/service/flows.ts"],"names":[],"mappings":";;;AAAA,4CAA0C;AAC1C,2DAA2E;AAG3E;;GAEG;AACU,QAAA,MAAM,GAAG,UAAU,OAAQ,EAAE,UAAW;IACnD,OAAO,IAAA,0BAAc,EACnB;QACE,OAAO,EAAE,cAAE;QACX,KAAK,EAAE,kBAAM,CAAC,UAAU;QACxB,IAAI,EAAE,QAAQ;KACf,EACD,OAAO,EACP,UAAU,CACX,CAAC;AACJ,CAGE,CAAC;AAEH;;GAEG;AACU,QAAA,GAAG,GAAG,UAAU,OAAO,EAAE,OAAQ,EAAE,UAAW;IACzD,OAAO,IAAA,0BAAc,EACnB;QACE,OAAO,EAAE,cAAE;QACX,KAAK,EAAE,kBAAM,CAAC,UAAU;QACxB,IAAI,EAAE,UAAU,OAAO,EAAE;KAC1B,EACD,OAAO,EACP,UAAU,CACX,CAAC;AACJ,CAAqE,CAAC;AAEtE;;GAEG;AACU,QAAA,MAAM,GAAG,UAAU,OAAO,EAAE,OAAQ,EAAE,UAAW;IAC5D,OAAO,IAAA,0BAAc,EACnB;QACE,KAAK,EAAE,kBAAM,CAAC,YAAY;QAC1B,OAAO,EAAE,cAAE;QACX,IAAI,EAAE,UAAU,OAAO,EAAE;QACzB,MAAM,EAAE,wBAAY,CAAC,MAAM;KAC5B,EACD,OAAO,EACP,UAAU,CACX,CAAC;AACJ,CAMC,CAAC
|
|
1
|
+
{"version":3,"file":"flows.js","sourceRoot":"","sources":["../../../../../../src/lib/services/flows/service/flows.ts"],"names":[],"mappings":";;;AAAA,4CAA0C;AAC1C,2DAA2E;AAG3E;;GAEG;AACU,QAAA,MAAM,GAAG,UAAU,OAAQ,EAAE,UAAW;IACnD,OAAO,IAAA,0BAAc,EACnB;QACE,OAAO,EAAE,cAAE;QACX,KAAK,EAAE,kBAAM,CAAC,UAAU;QACxB,IAAI,EAAE,QAAQ;KACf,EACD,OAAO,EACP,UAAU,CACX,CAAC;AACJ,CAGE,CAAC;AAEH;;GAEG;AACU,QAAA,GAAG,GAAG,UAAU,OAAO,EAAE,OAAQ,EAAE,UAAW;IACzD,OAAO,IAAA,0BAAc,EACnB;QACE,OAAO,EAAE,cAAE;QACX,KAAK,EAAE,kBAAM,CAAC,UAAU;QACxB,IAAI,EAAE,UAAU,OAAO,EAAE;KAC1B,EACD,OAAO,EACP,UAAU,CACX,CAAC;AACJ,CAAqE,CAAC;AAEtE;;GAEG;AACU,QAAA,MAAM,GAAG,UAAU,OAAO,EAAE,OAAQ,EAAE,UAAW;IAC5D,OAAO,IAAA,0BAAc,EACnB;QACE,KAAK,EAAE,kBAAM,CAAC,YAAY;QAC1B,OAAO,EAAE,cAAE;QACX,IAAI,EAAE,UAAU,OAAO,EAAE;QACzB,MAAM,EAAE,wBAAY,CAAC,MAAM;KAC5B,EACD,OAAO,EACP,UAAU,CACX,CAAC;AACJ,CAMC,CAAC"}
|