@globus/sdk 3.0.0-alpha.13 → 3.0.0-alpha.15
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/index.d.ts +1 -0
- package/cjs/index.d.ts.map +1 -1
- package/cjs/index.js +2 -1
- package/cjs/index.js.map +1 -1
- package/cjs/lib/core/authorization/AuthorizationManager.d.ts +25 -8
- package/cjs/lib/core/authorization/AuthorizationManager.d.ts.map +1 -1
- package/cjs/lib/core/authorization/AuthorizationManager.js +77 -15
- package/cjs/lib/core/authorization/AuthorizationManager.js.map +1 -1
- package/cjs/lib/core/authorization/TokenLookup.d.ts +5 -1
- package/cjs/lib/core/authorization/TokenLookup.d.ts.map +1 -1
- package/cjs/lib/core/authorization/TokenLookup.js +38 -6
- package/cjs/lib/core/authorization/TokenLookup.js.map +1 -1
- package/cjs/lib/core/authorization/tokens.d.ts +1 -0
- package/cjs/lib/core/authorization/tokens.d.ts.map +1 -1
- package/cjs/lib/core/authorization/tokens.js +1 -0
- package/cjs/lib/core/authorization/tokens.js.map +1 -1
- package/cjs/lib/core/global.d.ts +7 -6
- package/cjs/lib/core/global.d.ts.map +1 -1
- package/cjs/lib/core/global.js +3 -0
- package/cjs/lib/core/global.js.map +1 -1
- package/cjs/lib/services/auth/config.d.ts +5 -1
- package/cjs/lib/services/auth/config.d.ts.map +1 -1
- package/cjs/lib/services/auth/config.js +8 -0
- package/cjs/lib/services/auth/config.js.map +1 -1
- package/cjs/lib/services/auth/index.d.ts +6 -1
- package/cjs/lib/services/auth/index.d.ts.map +1 -1
- package/cjs/lib/services/auth/index.js +13 -2
- package/cjs/lib/services/auth/index.js.map +1 -1
- package/cjs/lib/services/auth/service/oauth2/token.d.ts +19 -1
- package/cjs/lib/services/auth/service/oauth2/token.d.ts.map +1 -1
- package/cjs/lib/services/auth/service/oauth2/token.js +16 -1
- package/cjs/lib/services/auth/service/oauth2/token.js.map +1 -1
- package/cjs/lib/services/compute/config.d.ts +7 -0
- package/cjs/lib/services/compute/config.d.ts.map +1 -0
- package/cjs/lib/services/compute/config.js +16 -0
- package/cjs/lib/services/compute/config.js.map +1 -0
- package/cjs/lib/services/compute/index.d.ts +14 -0
- package/cjs/lib/services/compute/index.d.ts.map +1 -0
- package/cjs/lib/services/compute/index.js +18 -0
- package/cjs/lib/services/compute/index.js.map +1 -0
- package/cjs/lib/services/compute/service/endpoints.d.ts +24 -0
- package/cjs/lib/services/compute/service/endpoints.d.ts.map +1 -0
- package/cjs/lib/services/compute/service/endpoints.js +29 -0
- package/cjs/lib/services/compute/service/endpoints.js.map +1 -0
- package/cjs/lib/services/flows/config.d.ts +1 -1
- package/cjs/lib/services/flows/config.d.ts.map +1 -1
- package/cjs/lib/services/flows/config.js.map +1 -1
- package/cjs/lib/services/globus-connect-server/client.d.ts +501 -146
- package/cjs/lib/services/globus-connect-server/client.d.ts.map +1 -1
- package/cjs/lib/services/groups/config.d.ts +1 -1
- package/cjs/lib/services/groups/config.d.ts.map +1 -1
- package/cjs/lib/services/groups/config.js.map +1 -1
- package/cjs/lib/services/search/config.d.ts +1 -1
- package/cjs/lib/services/search/config.d.ts.map +1 -1
- package/cjs/lib/services/search/config.js.map +1 -1
- package/cjs/lib/services/timer/config.d.ts +1 -1
- package/cjs/lib/services/timer/config.d.ts.map +1 -1
- package/cjs/lib/services/timer/config.js.map +1 -1
- package/cjs/lib/services/transfer/config.d.ts +1 -1
- package/cjs/lib/services/transfer/config.d.ts.map +1 -1
- package/cjs/lib/services/transfer/config.js.map +1 -1
- package/esm/index.d.ts +1 -0
- package/esm/index.d.ts.map +1 -1
- package/esm/index.js +1 -0
- package/esm/index.js.map +1 -1
- package/esm/lib/core/authorization/AuthorizationManager.d.ts +25 -8
- package/esm/lib/core/authorization/AuthorizationManager.d.ts.map +1 -1
- package/esm/lib/core/authorization/AuthorizationManager.js +78 -16
- package/esm/lib/core/authorization/AuthorizationManager.js.map +1 -1
- package/esm/lib/core/authorization/TokenLookup.d.ts +5 -1
- package/esm/lib/core/authorization/TokenLookup.d.ts.map +1 -1
- package/esm/lib/core/authorization/TokenLookup.js +39 -7
- package/esm/lib/core/authorization/TokenLookup.js.map +1 -1
- package/esm/lib/core/authorization/tokens.d.ts +1 -0
- package/esm/lib/core/authorization/tokens.d.ts.map +1 -1
- package/esm/lib/core/authorization/tokens.js +1 -0
- package/esm/lib/core/authorization/tokens.js.map +1 -1
- package/esm/lib/core/global.d.ts +7 -6
- package/esm/lib/core/global.d.ts.map +1 -1
- package/esm/lib/core/global.js +3 -0
- package/esm/lib/core/global.js.map +1 -1
- package/esm/lib/services/auth/config.d.ts +5 -1
- package/esm/lib/services/auth/config.d.ts.map +1 -1
- package/esm/lib/services/auth/config.js +8 -0
- package/esm/lib/services/auth/config.js.map +1 -1
- package/esm/lib/services/auth/index.d.ts +6 -1
- package/esm/lib/services/auth/index.d.ts.map +1 -1
- package/esm/lib/services/auth/index.js +10 -1
- package/esm/lib/services/auth/index.js.map +1 -1
- package/esm/lib/services/auth/service/oauth2/token.d.ts +19 -1
- package/esm/lib/services/auth/service/oauth2/token.d.ts.map +1 -1
- package/esm/lib/services/auth/service/oauth2/token.js +15 -0
- package/esm/lib/services/auth/service/oauth2/token.js.map +1 -1
- package/esm/lib/services/compute/config.d.ts +7 -0
- package/esm/lib/services/compute/config.d.ts.map +1 -0
- package/esm/lib/services/compute/config.js +13 -0
- package/esm/lib/services/compute/config.js.map +1 -0
- package/esm/lib/services/compute/index.d.ts +14 -0
- package/esm/lib/services/compute/index.d.ts.map +1 -0
- package/esm/lib/services/compute/index.js +14 -0
- package/esm/lib/services/compute/index.js.map +1 -0
- package/esm/lib/services/compute/service/endpoints.d.ts +24 -0
- package/esm/lib/services/compute/service/endpoints.d.ts.map +1 -0
- package/esm/lib/services/compute/service/endpoints.js +26 -0
- package/esm/lib/services/compute/service/endpoints.js.map +1 -0
- package/esm/lib/services/flows/config.d.ts +1 -1
- package/esm/lib/services/flows/config.d.ts.map +1 -1
- package/esm/lib/services/flows/config.js.map +1 -1
- package/esm/lib/services/globus-connect-server/client.d.ts +501 -146
- package/esm/lib/services/globus-connect-server/client.d.ts.map +1 -1
- package/esm/lib/services/groups/config.d.ts +1 -1
- package/esm/lib/services/groups/config.d.ts.map +1 -1
- package/esm/lib/services/groups/config.js.map +1 -1
- package/esm/lib/services/search/config.d.ts +1 -1
- package/esm/lib/services/search/config.d.ts.map +1 -1
- package/esm/lib/services/search/config.js.map +1 -1
- package/esm/lib/services/timer/config.d.ts +1 -1
- package/esm/lib/services/timer/config.d.ts.map +1 -1
- package/esm/lib/services/timer/config.js.map +1 -1
- package/esm/lib/services/transfer/config.d.ts +1 -1
- package/esm/lib/services/transfer/config.d.ts.map +1 -1
- package/esm/lib/services/transfer/config.js.map +1 -1
- package/package.json +2 -2
- package/umd/globus.production.js +1 -1
package/esm/lib/core/global.js
CHANGED
|
@@ -4,6 +4,7 @@ import * as FLOWS from '../services/flows/config.js';
|
|
|
4
4
|
import * as GROUPS from '../services/groups/config.js';
|
|
5
5
|
import * as SEARCH from '../services/search/config.js';
|
|
6
6
|
import * as TIMER from '../services/timer/config.js';
|
|
7
|
+
import * as COMPUTE from '../services/compute/config.js';
|
|
7
8
|
import { EnvironmentConfigurationError } from './errors.js';
|
|
8
9
|
function getRuntime() {
|
|
9
10
|
return typeof window !== 'undefined' ? window : process;
|
|
@@ -50,6 +51,7 @@ export const SERVICES = {
|
|
|
50
51
|
[GROUPS.ID]: GROUPS.ID,
|
|
51
52
|
[SEARCH.ID]: SEARCH.ID,
|
|
52
53
|
[TIMER.ID]: TIMER.ID,
|
|
54
|
+
[COMPUTE.ID]: COMPUTE.ID,
|
|
53
55
|
};
|
|
54
56
|
export const SERVICE_HOSTS = {
|
|
55
57
|
[AUTH.ID]: AUTH.HOSTS,
|
|
@@ -58,6 +60,7 @@ export const SERVICE_HOSTS = {
|
|
|
58
60
|
[GROUPS.ID]: GROUPS.HOSTS,
|
|
59
61
|
[SEARCH.ID]: SEARCH.HOSTS,
|
|
60
62
|
[TIMER.ID]: TIMER.HOSTS,
|
|
63
|
+
[COMPUTE.ID]: COMPUTE.HOSTS,
|
|
61
64
|
};
|
|
62
65
|
/**
|
|
63
66
|
* Get the computed SDK options based on the runtime.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"global.js","sourceRoot":"","sources":["../../../../src/lib/core/global.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,IAAI,MAAM,4BAA4B,CAAC;AACnD,OAAO,KAAK,QAAQ,MAAM,gCAAgC,CAAC;AAC3D,OAAO,KAAK,KAAK,MAAM,6BAA6B,CAAC;AACrD,OAAO,KAAK,MAAM,MAAM,8BAA8B,CAAC;AACvD,OAAO,KAAK,MAAM,MAAM,8BAA8B,CAAC;AACvD,OAAO,KAAK,KAAK,MAAM,6BAA6B,CAAC;
|
|
1
|
+
{"version":3,"file":"global.js","sourceRoot":"","sources":["../../../../src/lib/core/global.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,IAAI,MAAM,4BAA4B,CAAC;AACnD,OAAO,KAAK,QAAQ,MAAM,gCAAgC,CAAC;AAC3D,OAAO,KAAK,KAAK,MAAM,6BAA6B,CAAC;AACrD,OAAO,KAAK,MAAM,MAAM,8BAA8B,CAAC;AACvD,OAAO,KAAK,MAAM,MAAM,8BAA8B,CAAC;AACvD,OAAO,KAAK,KAAK,MAAM,6BAA6B,CAAC;AACrD,OAAO,KAAK,OAAO,MAAM,+BAA+B,CAAC;AAEzD,OAAO,EAAE,6BAA6B,EAAE,MAAM,aAAa,CAAC;AAG5D,SAAS,UAAU;IACjB,OAAO,OAAO,MAAM,KAAK,WAAW,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,CAAC;AAC1D,CAAC;AAED,SAAS,SAAS,CAAC,OAAgC;IACjD,OAAO,OAAO,MAAM,KAAK,OAAO,OAAO,CAAC;AAC1C,CAAC;AAED,SAAS,GAAG,CAAI,GAAW,EAAE,QAAW;IACtC,MAAM,OA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: "AUTH";
|
|
3
3
|
export declare const HOSTS: Partial<Record<Environment, string>>;
|
|
4
4
|
export declare const SCOPES: {
|
|
5
5
|
VIEW_IDENTITIES: string;
|
|
@@ -8,5 +8,9 @@ export declare const RESOURCE_SERVERS: {
|
|
|
8
8
|
AUTH: string;
|
|
9
9
|
TRANSFER: string;
|
|
10
10
|
FLOWS: string;
|
|
11
|
+
GROUPS: string;
|
|
12
|
+
SEARCH: string;
|
|
13
|
+
TIMER: string;
|
|
14
|
+
COMPUTE: string;
|
|
11
15
|
};
|
|
12
16
|
//# sourceMappingURL=config.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../../../src/lib/services/auth/config.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../../../src/lib/services/auth/config.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAExD,eAAO,MAAM,EAAE,QAAkB,CAAC;AAClC,eAAO,MAAM,KAAK,EAAE,OAAO,CAAC,MAAM,CAAC,WAAW,EAAE,MAAM,CAAC,CAOtD,CAAC;AAEF,eAAO,MAAM,MAAM;;CAElB,CAAC;AAEF,eAAO,MAAM,gBAAgB;;;;;;;;CAQ5B,CAAC"}
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import { ID as TRANSFER } from '../transfer/config.js';
|
|
2
2
|
import { ID as FLOWS } from '../flows/config.js';
|
|
3
|
+
import { ID as TIMER } from '../timer/config.js';
|
|
4
|
+
import { ID as GROUPS } from '../groups/config.js';
|
|
5
|
+
import { ID as SEARCH } from '../search/config.js';
|
|
6
|
+
import { ID as COMPUTE } from '../compute/config.js';
|
|
3
7
|
export const ID = 'AUTH';
|
|
4
8
|
export const HOSTS = {
|
|
5
9
|
integration: 'auth.integration.globuscs.info',
|
|
@@ -16,5 +20,9 @@ export const RESOURCE_SERVERS = {
|
|
|
16
20
|
[ID]: 'auth.globus.org',
|
|
17
21
|
[TRANSFER]: 'transfer.api.globus.org',
|
|
18
22
|
[FLOWS]: 'flows.api.globus.org',
|
|
23
|
+
[GROUPS]: 'groups.api.globus.org',
|
|
24
|
+
[SEARCH]: 'search.api.globus.org',
|
|
25
|
+
[TIMER]: '524230d7-ea86-4a52-8312-86065a9e0417',
|
|
26
|
+
[COMPUTE]: 'funcx_service',
|
|
19
27
|
};
|
|
20
28
|
//# sourceMappingURL=config.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.js","sourceRoot":"","sources":["../../../../../src/lib/services/auth/config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,IAAI,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACvD,OAAO,EAAE,EAAE,IAAI,KAAK,EAAE,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"config.js","sourceRoot":"","sources":["../../../../../src/lib/services/auth/config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,IAAI,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACvD,OAAO,EAAE,EAAE,IAAI,KAAK,EAAE,MAAM,oBAAoB,CAAC;AACjD,OAAO,EAAE,EAAE,IAAI,KAAK,EAAE,MAAM,oBAAoB,CAAC;AACjD,OAAO,EAAE,EAAE,IAAI,MAAM,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO,EAAE,EAAE,IAAI,MAAM,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO,EAAE,EAAE,IAAI,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAIrD,MAAM,CAAC,MAAM,EAAE,GAAG,MAAe,CAAC;AAClC,MAAM,CAAC,MAAM,KAAK,GAAyC;IACzD,WAAW,EAAE,gCAAgC;IAC7C,OAAO,EAAE,4BAA4B;IACrC,UAAU,EAAE,iBAAiB;IAC7B,IAAI,EAAE,yBAAyB;IAC/B,OAAO,EAAE,4BAA4B;IACrC,OAAO,EAAE,yBAAyB;CACnC,CAAC;AAEF,MAAM,CAAC,MAAM,MAAM,GAAG;IACpB,eAAe,EAAE,uDAAuD;CACzE,CAAC;AAEF,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC9B,CAAC,EAAE,CAAC,EAAE,iBAAiB;IACvB,CAAC,QAAQ,CAAC,EAAE,yBAAyB;IACrC,CAAC,KAAK,CAAC,EAAE,sBAAsB;IAC/B,CAAC,MAAM,CAAC,EAAE,uBAAuB;IACjC,CAAC,MAAM,CAAC,EAAE,uBAAuB;IACjC,CAAC,KAAK,CAAC,EAAE,sCAAsC;IAC/C,CAAC,OAAO,CAAC,EAAE,eAAe;CAC3B,CAAC"}
|
|
@@ -16,13 +16,18 @@ export type Token = {
|
|
|
16
16
|
resource_server: string;
|
|
17
17
|
refresh_token?: string;
|
|
18
18
|
};
|
|
19
|
+
export type TokenWithRefresh = Token & {
|
|
20
|
+
refresh_token: string;
|
|
21
|
+
};
|
|
19
22
|
/**
|
|
20
23
|
* @see https://docs.globus.org/api/auth/reference/#authorization_code_grant_preferred
|
|
21
24
|
*/
|
|
22
25
|
export type TokenResponse = Token & {
|
|
23
26
|
state: string;
|
|
24
27
|
id_token?: string;
|
|
25
|
-
other_tokens
|
|
28
|
+
other_tokens?: Token[];
|
|
26
29
|
};
|
|
30
|
+
export declare function isToken(check: unknown): check is Token;
|
|
31
|
+
export declare function isRefreshToken(check: unknown): check is TokenWithRefresh;
|
|
27
32
|
export declare function isGlobusAuthTokenResponse(check: unknown): check is TokenResponse;
|
|
28
33
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/lib/services/auth/index.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,IAAI,MAAM,aAAa,CAAC;AAEpC;;;GAGG;AACH,eAAO,MAAM,MAAM,aAAO,CAAC;AAE3B,wBAAgB,wBAAwB,WAEvC;AAED,wBA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AED,wBAAgB,cAAc,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,gBAAgB,CAExE;AAED,wBAAgB,yBAAyB,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,aAAa,CAKhF"}
|
|
@@ -19,7 +19,16 @@ export function getTokenEndpoint() {
|
|
|
19
19
|
}
|
|
20
20
|
export * as identities from './service/identities.js';
|
|
21
21
|
export * as oauth2 from './service/oauth2/index.js';
|
|
22
|
+
export function isToken(check) {
|
|
23
|
+
return typeof check === 'object' && check !== null && 'access_token' in check;
|
|
24
|
+
}
|
|
25
|
+
export function isRefreshToken(check) {
|
|
26
|
+
return isToken(check) && check !== null && 'refresh_token' in check;
|
|
27
|
+
}
|
|
22
28
|
export function isGlobusAuthTokenResponse(check) {
|
|
23
|
-
|
|
29
|
+
/**
|
|
30
|
+
* @todo This could be made more robust by checking whether the `resource_server` is a well-known value.
|
|
31
|
+
*/
|
|
32
|
+
return isToken(check) && check !== null && 'resource_server' in check;
|
|
24
33
|
}
|
|
25
34
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/lib/services/auth/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAE1C,OAAO,KAAK,IAAI,MAAM,aAAa,CAAC;AAEpC;;;GAGG;AACH,MAAM,CAAC,MAAM,MAAM,GAAG,IAAI,CAAC;AAE3B,MAAM,UAAU,wBAAwB;IACtC,OAAO,KAAK,CAAC,IAAI,CAAC,EAAE,EAAE,sBAAsB,CAAC,CAAC;AAChD,CAAC;AAED,MAAM,UAAU,gBAAgB;IAC9B,OAAO,KAAK,CAAC,IAAI,CAAC,EAAE,EAAE,kBAAkB,CAAC,CAAC;AAC5C,CAAC;AAED,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AACtD,OAAO,KAAK,MAAM,MAAM,2BAA2B,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/lib/services/auth/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAE1C,OAAO,KAAK,IAAI,MAAM,aAAa,CAAC;AAEpC;;;GAGG;AACH,MAAM,CAAC,MAAM,MAAM,GAAG,IAAI,CAAC;AAE3B,MAAM,UAAU,wBAAwB;IACtC,OAAO,KAAK,CAAC,IAAI,CAAC,EAAE,EAAE,sBAAsB,CAAC,CAAC;AAChD,CAAC;AAED,MAAM,UAAU,gBAAgB;IAC9B,OAAO,KAAK,CAAC,IAAI,CAAC,EAAE,EAAE,kBAAkB,CAAC,CAAC;AAC5C,CAAC;AAED,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AACtD,OAAO,KAAK,MAAM,MAAM,2BAA2B,CAAC;AAwBpD,MAAM,UAAU,OAAO,CAAC,KAAc;IACpC,OAAO,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,IAAI,IAAI,cAAc,IAAI,KAAK,CAAC;AAChF,CAAC;AAED,MAAM,UAAU,cAAc,CAAC,KAAc;IAC3C,OAAO,OAAO,CAAC,KAAK,CAAC,IAAI,KAAK,KAAK,IAAI,IAAI,eAAe,IAAI,KAAK,CAAC;AACtE,CAAC;AAED,MAAM,UAAU,yBAAyB,CAAC,KAAc;IACtD;;OAEG;IACH,OAAO,OAAO,CAAC,KAAK,CAAC,IAAI,KAAK,KAAK,IAAI,IAAI,iBAAiB,IAAI,KAAK,CAAC;AACxE,CAAC"}
|
|
@@ -4,12 +4,23 @@ type IntrospectPayload = {
|
|
|
4
4
|
};
|
|
5
5
|
type RevokePayload = {
|
|
6
6
|
token: string;
|
|
7
|
-
|
|
7
|
+
/**
|
|
8
|
+
* This is an undocumented property that is required for the request to be successful.
|
|
9
|
+
*/
|
|
10
|
+
client_id: string;
|
|
8
11
|
};
|
|
9
12
|
type ValidatePayload = {
|
|
10
13
|
token: string;
|
|
11
14
|
client_id: string;
|
|
12
15
|
};
|
|
16
|
+
type RefreshPayload = {
|
|
17
|
+
refresh_token: string;
|
|
18
|
+
grant_type: 'refresh_token';
|
|
19
|
+
/**
|
|
20
|
+
* This is an undocumented property that is required for the request to be successful.
|
|
21
|
+
*/
|
|
22
|
+
client_id: string;
|
|
23
|
+
};
|
|
13
24
|
/**
|
|
14
25
|
* Token Introspection
|
|
15
26
|
* @see https://docs.globus.org/api/auth/reference/#token-introspect
|
|
@@ -24,6 +35,13 @@ export declare const introspect: (options: ({
|
|
|
24
35
|
export declare const revoke: (options: ({
|
|
25
36
|
payload: RevokePayload;
|
|
26
37
|
} & import("../../../types.js").BaseServiceMethodOptions) | undefined, sdkOptions?: import("../../../types.js").SDKOptions | undefined) => Promise<Response>;
|
|
38
|
+
/**
|
|
39
|
+
* Token Refresh
|
|
40
|
+
* @see https://docs.globus.org/api/auth/reference/#refresh_token_grant
|
|
41
|
+
*/
|
|
42
|
+
export declare const refresh: (options: ({
|
|
43
|
+
payload: RefreshPayload;
|
|
44
|
+
} & import("../../../types.js").BaseServiceMethodOptions) | undefined, sdkOptions?: import("../../../types.js").SDKOptions | undefined) => Promise<Response>;
|
|
27
45
|
/**
|
|
28
46
|
* @private
|
|
29
47
|
* @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.
|
|
@@ -1 +1 @@
|
|
|
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,
|
|
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;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,KAAK,eAAe,GAAG;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,KAAK,cAAc,GAAG;IACpB,aAAa,EAAE,MAAM,CAAC;IACtB,UAAU,EAAE,eAAe,CAAC;IAC5B;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAiCF;;;GAGG;AACH,eAAO,MAAM,UAAU;aAeZ,iBAAiB;4JAC1B,CAAC;AAEH;;;GAGG;AACH,eAAO,MAAM,MAAM;aAeR,aAAa;4JACtB,CAAC;AAEH;;;GAGG;AACH,eAAO,MAAM,OAAO;aAeT,cAAc;4JACvB,CAAC;AAEH;;;GAGG;AACH,eAAO,MAAM,QAAQ;aAeV,eAAe;4JACxB,CAAC"}
|
|
@@ -48,6 +48,21 @@ export const revoke = function (options, sdkOptions) {
|
|
|
48
48
|
method: HTTP_METHODS.POST,
|
|
49
49
|
}, injectServiceOptions(options), sdkOptions);
|
|
50
50
|
};
|
|
51
|
+
/**
|
|
52
|
+
* Token Refresh
|
|
53
|
+
* @see https://docs.globus.org/api/auth/reference/#refresh_token_grant
|
|
54
|
+
*/
|
|
55
|
+
export const refresh = function (options, sdkOptions) {
|
|
56
|
+
if (!(options === null || options === void 0 ? void 0 : options.payload)) {
|
|
57
|
+
throw new Error(`'payload' is required for revoke`);
|
|
58
|
+
}
|
|
59
|
+
return serviceRequest({
|
|
60
|
+
service: ID,
|
|
61
|
+
scope: undefined,
|
|
62
|
+
path: `/v2/oauth2/token`,
|
|
63
|
+
method: HTTP_METHODS.POST,
|
|
64
|
+
}, injectServiceOptions(options), sdkOptions);
|
|
65
|
+
};
|
|
51
66
|
/**
|
|
52
67
|
* @private
|
|
53
68
|
* @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.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"token.js","sourceRoot":"","sources":["../../../../../../../src/lib/services/auth/service/oauth2/token.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,iBAAiB,CAAC;AACrC,OAAO,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;
|
|
1
|
+
{"version":3,"file":"token.js","sourceRoot":"","sources":["../../../../../../../src/lib/services/auth/service/oauth2/token.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,iBAAiB,CAAC;AACrC,OAAO,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AAiC9E,SAAS,SAAS,CAAC,OAA2B;IAC5C,OAAO,IAAI,eAAe,CAAC,OAAO,CAAC,CAAC;AACtC,CAAC;AAED;;GAEG;AACH,SAAS,oBAAoB,CAC3B,OAEC;IAED,uCACK,OAAO;QACV;;;WAGG;QACH,IAAI,EAAE,SAAS,CAAC,OAAO,CAAC,OAAO,CAAC,EAChC,OAAO,kCACF,CAAC,CAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,OAAO,KAAI,EAAE,CAAC;YAC3B;;eAEG;YACH,cAAc,EAAE,kDAAkD,OAEpE;AACJ,CAAC;AAED;;;GAGG;AACH,MAAM,CAAC,MAAM,UAAU,GAAG,UAAU,OAAO,EAAE,UAAW;IACtD,IAAI,CAAC,CAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,OAAO,CAAA,EAAE,CAAC;QACtB,MAAM,IAAI,KAAK,CAAC,sCAAsC,CAAC,CAAC;IAC1D,CAAC;IACD,OAAO,cAAc,CACnB;QACE,OAAO,EAAE,EAAE;QACX,KA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AAC;IACxD,CAAC;IACD,OAAO,cAAc,CACnB;QACE,OAAO,EAAE,EAAE;QACX,KAAK,EAAE,SAAS;QAChB,IAAI,EAAE,2BAA2B;QACjC,MAAM,EAAE,YAAY,CAAC,IAAI;KAC1B,EACD,oBAAoB,CAAC,OAAO,CAAC,EAC7B,UAAU,CACX,CAAC;AACJ,CAEE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../../../src/lib/services/compute/config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAExD,eAAO,MAAM,EAAE,WAAqB,CAAC;AACrC,eAAO,MAAM,KAAK,EAAE,OAAO,CAAC,MAAM,CAAC,WAAW,EAAE,MAAM,CAAC,CAOtD,CAAC;AAEF,eAAO,MAAM,MAAM;;CAElB,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export const ID = 'COMPUTE';
|
|
2
|
+
export const HOSTS = {
|
|
3
|
+
sandbox: 'compute.api.sandbox.globuscs.info',
|
|
4
|
+
production: 'compute.api.globus.org',
|
|
5
|
+
staging: 'compute.api.staging.globuscs.info',
|
|
6
|
+
integration: 'compute.api.integration.globuscs.info',
|
|
7
|
+
test: 'compute.api.test.globuscs.info',
|
|
8
|
+
preview: 'compute.api.preview.globus.org',
|
|
9
|
+
};
|
|
10
|
+
export const SCOPES = {
|
|
11
|
+
ALL: 'https://auth.globus.org/scopes/facd7ccc-c5f4-42aa-916b-a0e270e2c2a9/all',
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=config.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config.js","sourceRoot":"","sources":["../../../../../src/lib/services/compute/config.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,EAAE,GAAG,SAAkB,CAAC;AACrC,MAAM,CAAC,MAAM,KAAK,GAAyC;IACzD,OAAO,EAAE,mCAAmC;IAC5C,UAAU,EAAE,wBAAwB;IACpC,OAAO,EAAE,mCAAmC;IAC5C,WAAW,EAAE,uCAAuC;IACpD,IAAI,EAAE,gCAAgC;IACtC,OAAO,EAAE,gCAAgC;CAC1C,CAAC;AAEF,MAAM,CAAC,MAAM,MAAM,GAAG;IACpB,GAAG,EAAE,yEAAyE;CAC/E,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @description A wrapper around the Globus Compute service.
|
|
3
|
+
* @group Service
|
|
4
|
+
* @see [Globus Compute API Documentation](https://api2.funcx.org/redoc)
|
|
5
|
+
* @module
|
|
6
|
+
*/
|
|
7
|
+
import * as COMPUTE from './config.js';
|
|
8
|
+
/**
|
|
9
|
+
* @private
|
|
10
|
+
* @internal
|
|
11
|
+
*/
|
|
12
|
+
export declare const CONFIG: typeof COMPUTE;
|
|
13
|
+
export * as endpoints from './service/endpoints.js';
|
|
14
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/lib/services/compute/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,KAAK,OAAO,MAAM,aAAa,CAAC;AAEvC;;;GAGG;AACH,eAAO,MAAM,MAAM,gBAAU,CAAC;AAE9B,OAAO,KAAK,SAAS,MAAM,wBAAwB,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @description A wrapper around the Globus Compute service.
|
|
3
|
+
* @group Service
|
|
4
|
+
* @see [Globus Compute API Documentation](https://api2.funcx.org/redoc)
|
|
5
|
+
* @module
|
|
6
|
+
*/
|
|
7
|
+
import * as COMPUTE from './config.js';
|
|
8
|
+
/**
|
|
9
|
+
* @private
|
|
10
|
+
* @internal
|
|
11
|
+
*/
|
|
12
|
+
export const CONFIG = COMPUTE;
|
|
13
|
+
export * as endpoints from './service/endpoints.js';
|
|
14
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/lib/services/compute/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,KAAK,OAAO,MAAM,aAAa,CAAC;AAEvC;;;GAGG;AACH,MAAM,CAAC,MAAM,MAAM,GAAG,OAAO,CAAC;AAE9B,OAAO,KAAK,SAAS,MAAM,wBAAwB,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { operations } from '@globus/types/compute';
|
|
2
|
+
import type { JSONFetchResponse } from '../../types.js';
|
|
3
|
+
export declare const getAll: (options?: ({
|
|
4
|
+
query: operations['get_endpoints_v2_endpoints_get']['parameters']['query'];
|
|
5
|
+
} & import("../../types.js").BaseServiceMethodOptions) | undefined, sdkOptions?: import("../../types.js").SDKOptions | undefined) => Promise<JSONFetchResponse<operations['get_endpoints_v2_endpoints_get']['responses']['200']['content']['application/json']>>;
|
|
6
|
+
export declare const get: (endpoint_uuid: string, options?: ({
|
|
7
|
+
query?: undefined;
|
|
8
|
+
payload?: undefined;
|
|
9
|
+
} & {
|
|
10
|
+
query?: {
|
|
11
|
+
[key: string]: string | number | boolean | (string | number | null | undefined)[] | null | undefined;
|
|
12
|
+
} | undefined;
|
|
13
|
+
headers?: import("../../types.js").Headers | undefined;
|
|
14
|
+
}) | undefined, sdkOptions?: import("../../types.js").SDKOptions | undefined) => Promise<JSONFetchResponse<operations['get_endpoint_v2_endpoints__endpoint_uuid__get']['responses']['200']['content']['application/json']>>;
|
|
15
|
+
export declare const getStatus: (endpoint_uuid: string, options?: ({
|
|
16
|
+
query?: undefined;
|
|
17
|
+
payload?: undefined;
|
|
18
|
+
} & {
|
|
19
|
+
query?: {
|
|
20
|
+
[key: string]: string | number | boolean | (string | number | null | undefined)[] | null | undefined;
|
|
21
|
+
} | undefined;
|
|
22
|
+
headers?: import("../../types.js").Headers | undefined;
|
|
23
|
+
}) | undefined, sdkOptions?: import("../../types.js").SDKOptions | undefined) => Promise<JSONFetchResponse<operations['get_endpoint_status_v2_endpoints__endpoint_uuid__status_get']['responses']['200']['content']['application/json']>>;
|
|
24
|
+
//# sourceMappingURL=endpoints.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"endpoints.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/services/compute/service/endpoints.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAIxD,OAAO,KAAK,EAGV,iBAAiB,EAClB,MAAM,gBAAgB,CAAC;AAExB,eAAO,MAAM,MAAM;WAmBV,UAAU,CAAC,gCAAgC,CAAC,CAAC,YAAY,CAAC,CAAC,OAAO,CAAC;qIAhBzE,QACD,kBACE,UAAU,CAAC,gCAAgC,CAAC,CAAC,WAAW,CAAC,CAAC,KAAK,CAAC,CAAC,SAAS,CAAC,CAAC,kBAAkB,CAAC,CAChG,CAcD,CAAC;AAEH,eAAO,MAAM,GAAG;;;;;;;;iFAIb,QACD,kBACE,UAAU,CAAC,+CAA+C,CAAC,CAAC,WAAW,CAAC,CAAC,KAAK,CAAC,CAAC,SAAS,CAAC,CAAC,kBAAkB,CAAC,CAC/G,CAkBF,CAAC;AAEF,eAAO,MAAM,SAAS;;;;;;;;iFAInB,QACD,kBACE,UAAU,CAAC,6DAA6D,CAAC,CAAC,WAAW,CAAC,CAAC,KAAK,CAAC,CAAC,SAAS,CAAC,CAAC,kBAAkB,CAAC,CAC7H,CAiBF,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { HTTP_METHODS, serviceRequest } from '../../shared.js';
|
|
2
|
+
import { ID, SCOPES } from '../config.js';
|
|
3
|
+
export const getAll = function (options, sdkOptions) {
|
|
4
|
+
return serviceRequest({
|
|
5
|
+
service: ID,
|
|
6
|
+
scope: SCOPES.ALL,
|
|
7
|
+
path: '/v2/endpoints',
|
|
8
|
+
method: HTTP_METHODS.GET,
|
|
9
|
+
}, options, sdkOptions);
|
|
10
|
+
};
|
|
11
|
+
export const get = function (endpoint_uuid, options, sdkOptions) {
|
|
12
|
+
return serviceRequest({
|
|
13
|
+
service: ID,
|
|
14
|
+
scope: SCOPES.ALL,
|
|
15
|
+
path: `/v2/endpoints/${endpoint_uuid}`,
|
|
16
|
+
method: HTTP_METHODS.GET,
|
|
17
|
+
}, options, sdkOptions);
|
|
18
|
+
};
|
|
19
|
+
export const getStatus = function (endpoint_uuid, options, sdkOptions) {
|
|
20
|
+
return serviceRequest({
|
|
21
|
+
service: ID,
|
|
22
|
+
scope: SCOPES.ALL,
|
|
23
|
+
path: `/v2/endpoints/${endpoint_uuid}/status`,
|
|
24
|
+
}, options, sdkOptions);
|
|
25
|
+
};
|
|
26
|
+
//# sourceMappingURL=endpoints.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"endpoints.js","sourceRoot":"","sources":["../../../../../../src/lib/services/compute/service/endpoints.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAC/D,OAAO,EAAE,EAAE,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAQ1C,MAAM,CAAC,MAAM,MAAM,GAAG,UACpB,OAAQ,EACR,UAAW;IAMX,OAAO,cAAc,CACnB;QACE,OAAO,EAAE,EAAE;QACX,KAAK,EAAE,MAAM,CAAC,GAAG;QACjB,IAAI,EAAE,eAAe;QACrB,MAAM,EAAE,YAAY,CAAC,GAAG;KACzB,EACD,OAAO,EACP,UAAU,CACX,CAAC;AACJ,CAEE,CAAC;AAEH,MAAM,CAAC,MAAM,GAAG,GAAG,UACjB,aAAa,EACb,OAAQ,EACR,UAAW;IAMX,OAAO,cAAc,CACnB;QACE,OAAO,EAAE,EAAE;QACX,KAAK,EAAE,MAAM,CAAC,GAAG;QACjB,IAAI,EAAE,iBAAiB,aAAa,EAAE;QACtC,MAAM,EAAE,YAAY,CAAC,GAAG;KACzB,EACD,OAAO,EACP,UAAU,CACX,CAAC;AACJ,CAMC,CAAC;AAEF,MAAM,CAAC,MAAM,SAAS,GAAG,UACvB,aAAa,EACb,OAAQ,EACR,UAAW;IAMX,OAAO,cAAc,CACnB;QACE,OAAO,EAAE,EAAE;QACX,KAAK,EAAE,MAAM,CAAC,GAAG;QACjB,IAAI,EAAE,iBAAiB,aAAa,SAAS;KAC9C,EACD,OAAO,EACP,UAAU,CACX,CAAC;AACJ,CAMC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../../../src/lib/services/flows/config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAExD,eAAO,MAAM,EAAE,
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../../../src/lib/services/flows/config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAExD,eAAO,MAAM,EAAE,SAAmB,CAAC;AACnC,eAAO,MAAM,KAAK,EAAE,OAAO,CAAC,MAAM,CAAC,WAAW,EAAE,MAAM,CAAC,CAOtD,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,MAAM;;;;;;CAMlB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.js","sourceRoot":"","sources":["../../../../../src/lib/services/flows/config.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,EAAE,GAAG,
|
|
1
|
+
{"version":3,"file":"config.js","sourceRoot":"","sources":["../../../../../src/lib/services/flows/config.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,EAAE,GAAG,OAAgB,CAAC;AACnC,MAAM,CAAC,MAAM,KAAK,GAAyC;IACzD,OAAO,EAAE,mCAAmC;IAC5C,UAAU,EAAE,kBAAkB;IAC9B,OAAO,EAAE,mCAAmC;IAC5C,WAAW,EAAE,uCAAuC;IACpD,IAAI,EAAE,gCAAgC;IACtC,OAAO,EAAE,mCAAmC;CAC7C,CAAC;AAEF;;GAEG;AACH,MAAM,CAAC,MAAM,MAAM,GAAG;IACpB,YAAY,EAAE,kFAAkF;IAChG,UAAU,EAAE,gFAAgF;IAC5F,GAAG,EAAE,yEAAyE;IAC9E,UAAU,EAAE,gFAAgF;IAC5F,UAAU,EAAE,gFAAgF;CAC7F,CAAC"}
|