@globus/sdk 5.7.0 → 6.0.0-rc.1
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 +8 -7
- package/dist/cjs/core/authorization/index.js +1 -1
- package/dist/cjs/core/authorization/index.js.map +1 -1
- package/dist/cjs/core/info/index.js +1 -1
- package/dist/cjs/core/info/index.js.map +1 -1
- package/dist/cjs/index.js +30 -19
- package/dist/cjs/index.js.map +3 -3
- package/dist/cjs/services/globus-connect-server/client.js +1 -1
- package/dist/cjs/services/globus-connect-server/client.js.map +2 -2
- package/dist/esm/apps/web.d.ts +1 -1
- package/dist/esm/apps/web.d.ts.map +1 -1
- package/dist/esm/core/authorization/PopupTransport.d.ts +25 -0
- package/dist/esm/core/authorization/PopupTransport.d.ts.map +1 -0
- package/dist/esm/core/authorization/PopupTransport.js +161 -0
- package/dist/esm/core/authorization/PopupTransport.js.map +1 -0
- package/dist/esm/core/authorization/RedirectTransport.d.ts +1 -1
- package/dist/esm/core/authorization/RedirectTransport.d.ts.map +1 -1
- package/dist/esm/core/info/version.d.ts +1 -1
- package/dist/esm/core/info/version.js +1 -1
- package/dist/esm/index.d.ts +1 -0
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.js +1 -4
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/package.json +1 -1
- package/dist/esm/services/auth/utils.d.ts +1 -1
- package/dist/esm/services/auth/utils.d.ts.map +1 -1
- package/dist/esm/services/compute/index.d.ts +1 -0
- package/dist/esm/services/compute/index.d.ts.map +1 -1
- package/dist/esm/services/compute/index.js.map +1 -1
- package/dist/esm/services/compute/service/endpoints.d.ts +5 -5
- package/dist/esm/services/compute/service/endpoints.d.ts.map +1 -1
- package/dist/esm/services/compute/service/endpoints.js.map +1 -1
- package/dist/esm/services/flows/service/flows.d.ts +22 -0
- package/dist/esm/services/flows/service/flows.d.ts.map +1 -1
- package/dist/esm/services/flows/service/flows.js +12 -0
- package/dist/esm/services/flows/service/flows.js.map +1 -1
- package/dist/esm/services/globus-connect-server/client.d.ts +646 -261
- package/dist/esm/services/globus-connect-server/client.d.ts.map +1 -1
- package/dist/esm/services/globus-connect-server/index.d.ts +1 -0
- package/dist/esm/services/globus-connect-server/index.d.ts.map +1 -1
- package/dist/esm/services/globus-connect-server/index.js.map +1 -1
- package/dist/esm/services/globus-connect-server/service/collections.d.ts +40 -40
- package/dist/esm/services/globus-connect-server/service/collections.d.ts.map +1 -1
- package/dist/esm/services/globus-connect-server/service/collections.js.map +1 -1
- package/dist/esm/services/globus-connect-server/service/endpoint.d.ts +35 -35
- package/dist/esm/services/globus-connect-server/service/endpoint.d.ts.map +1 -1
- package/dist/esm/services/globus-connect-server/service/endpoint.js.map +1 -1
- package/dist/esm/services/globus-connect-server/service/nodes.d.ts +30 -30
- package/dist/esm/services/globus-connect-server/service/nodes.d.ts.map +1 -1
- package/dist/esm/services/globus-connect-server/service/nodes.js.map +1 -1
- package/dist/esm/services/globus-connect-server/service/roles.d.ts +20 -20
- package/dist/esm/services/globus-connect-server/service/roles.d.ts.map +1 -1
- package/dist/esm/services/globus-connect-server/service/roles.js.map +1 -1
- package/dist/esm/services/globus-connect-server/service/storage-gateways.d.ts +31 -31
- package/dist/esm/services/globus-connect-server/service/storage-gateways.d.ts.map +1 -1
- package/dist/esm/services/globus-connect-server/service/storage-gateways.js.map +1 -1
- package/dist/esm/services/globus-connect-server/service/user-credentials.d.ts +30 -30
- package/dist/esm/services/globus-connect-server/service/user-credentials.d.ts.map +1 -1
- package/dist/esm/services/globus-connect-server/service/user-credentials.js.map +1 -1
- package/dist/esm/services/globus-connect-server/service/versioning.d.ts +6 -6
- package/dist/esm/services/globus-connect-server/service/versioning.d.ts.map +1 -1
- package/dist/esm/services/globus-connect-server/service/versioning.js.map +1 -1
- package/dist/esm/services/groups/index.d.ts +1 -0
- package/dist/esm/services/groups/index.d.ts.map +1 -1
- package/dist/esm/services/groups/index.js.map +1 -1
- package/dist/esm/services/groups/service/groups.d.ts +5 -5
- package/dist/esm/services/groups/service/groups.d.ts.map +1 -1
- package/dist/esm/services/groups/service/groups.js.map +1 -1
- package/dist/esm/services/groups/service/membership.d.ts +3 -3
- package/dist/esm/services/groups/service/membership.d.ts.map +1 -1
- package/dist/esm/services/groups/service/membership.js.map +1 -1
- package/dist/esm/services/groups/service/policies.d.ts +2 -2
- package/dist/esm/services/groups/service/policies.d.ts.map +1 -1
- package/dist/esm/services/groups/service/policies.js.map +1 -1
- package/dist/esm/services/search/index.d.ts +1 -0
- package/dist/esm/services/search/index.d.ts.map +1 -1
- package/dist/esm/services/search/index.js.map +1 -1
- package/dist/esm/services/timer/index.d.ts +1 -0
- package/dist/esm/services/timer/index.d.ts.map +1 -1
- package/dist/esm/services/timer/index.js.map +1 -1
- package/dist/esm/services/timer/service/timer.d.ts +28 -2
- package/dist/esm/services/timer/service/timer.d.ts.map +1 -1
- package/dist/esm/services/timer/service/timer.js.map +1 -1
- package/dist/esm/services/transfer/service/access.d.ts +28 -5
- package/dist/esm/services/transfer/service/access.d.ts.map +1 -1
- package/dist/esm/services/transfer/service/access.js.map +1 -1
- package/dist/esm/services/transfer/service/collection-bookmarks.d.ts +20 -6
- package/dist/esm/services/transfer/service/collection-bookmarks.d.ts.map +1 -1
- package/dist/esm/services/transfer/service/collection-bookmarks.js.map +1 -1
- package/dist/esm/services/transfer/service/endpoint-manager/endpoint.d.ts +14 -6
- package/dist/esm/services/transfer/service/endpoint-manager/endpoint.d.ts.map +1 -1
- package/dist/esm/services/transfer/service/endpoint-manager/endpoint.js.map +1 -1
- package/dist/esm/services/transfer/service/endpoint-manager/pause-rule.d.ts +28 -6
- package/dist/esm/services/transfer/service/endpoint-manager/pause-rule.d.ts.map +1 -1
- package/dist/esm/services/transfer/service/endpoint-manager/pause-rule.js.map +1 -1
- package/dist/esm/services/transfer/service/endpoint-manager/task.d.ts +93 -15
- package/dist/esm/services/transfer/service/endpoint-manager/task.d.ts.map +1 -1
- package/dist/esm/services/transfer/service/endpoint-manager/task.js +1 -1
- package/dist/esm/services/transfer/service/endpoint-manager/task.js.map +1 -1
- package/dist/esm/services/transfer/service/endpoint-search.d.ts +20 -12
- package/dist/esm/services/transfer/service/endpoint-search.d.ts.map +1 -1
- package/dist/esm/services/transfer/service/endpoint-search.js +2 -11
- package/dist/esm/services/transfer/service/endpoint-search.js.map +1 -1
- package/dist/esm/services/transfer/service/task.d.ts +157 -11
- package/dist/esm/services/transfer/service/task.d.ts.map +1 -1
- package/dist/esm/services/transfer/service/task.js.map +1 -1
- package/dist/esm/services/transfer/types.d.ts +16 -3
- package/dist/esm/services/transfer/types.d.ts.map +1 -1
- package/dist/umd/globus.production.js +2 -2
- package/dist/umd/globus.production.js.map +3 -3
- package/package.json +4 -11
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
2
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
3
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
4
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
5
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
6
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
7
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
|
+
});
|
|
9
|
+
};
|
|
10
|
+
var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
|
|
11
|
+
if (kind === "m") throw new TypeError("Private method is not writable");
|
|
12
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
|
13
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
14
|
+
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
15
|
+
};
|
|
16
|
+
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
17
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
18
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
19
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
20
|
+
};
|
|
21
|
+
var _PopupTransport_instances, _PopupTransport_options, _PopupTransport_window, _PopupTransport_getToken;
|
|
22
|
+
import { getAuthorizationEndpoint, oauth2 } from '../../services/auth/index.js';
|
|
23
|
+
import { generateCodeChallenge, generateCodeVerifier, generateState, isSupported, store, } from './pkce.js';
|
|
24
|
+
const MESSAGE_SOURCE = 'globus-sdk';
|
|
25
|
+
/**
|
|
26
|
+
* The `PopupTransport` (`popup`) uses a popup window to initiate the OAuth 2.0 using PKCE.
|
|
27
|
+
*
|
|
28
|
+
* When using the `PopupTransport`, the `redirect` parameter should be to a location
|
|
29
|
+
* that will transmit the URL back to the opener. This can be done using `AuthorizationManager.handleCodeRedirect()`, or
|
|
30
|
+
* manually by calling `window.opener.postMessage()`.
|
|
31
|
+
*
|
|
32
|
+
* @experimental
|
|
33
|
+
*/
|
|
34
|
+
export class PopupTransport {
|
|
35
|
+
constructor(options) {
|
|
36
|
+
_PopupTransport_instances.add(this);
|
|
37
|
+
_PopupTransport_options.set(this, void 0);
|
|
38
|
+
_PopupTransport_window.set(this, null);
|
|
39
|
+
__classPrivateFieldSet(this, _PopupTransport_options, options, "f");
|
|
40
|
+
if (PopupTransport.supported === false) {
|
|
41
|
+
throw new Error('PopupTransport is not supported in this environment.');
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* For the redirect transport, sending the request will redirect the user to the authorization endpoint, initiating the OAuth flow.
|
|
46
|
+
*/
|
|
47
|
+
send() {
|
|
48
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
49
|
+
var _a, _b;
|
|
50
|
+
/**
|
|
51
|
+
* Since we'll be using PKCE, we need to generate a code verifier and challenge
|
|
52
|
+
* for the OAuth handshake.
|
|
53
|
+
*/
|
|
54
|
+
const verifier = generateCodeVerifier();
|
|
55
|
+
const challenge = yield generateCodeChallenge(verifier);
|
|
56
|
+
/**
|
|
57
|
+
* If there is caller-provided `state`, use it; Otherwise, generate a state parameter.
|
|
58
|
+
*/
|
|
59
|
+
const state = (_b = (_a = __classPrivateFieldGet(this, _PopupTransport_options, "f").params) === null || _a === void 0 ? void 0 : _a['state']) !== null && _b !== void 0 ? _b : generateState();
|
|
60
|
+
/**
|
|
61
|
+
* The verifier and state are stored in session storage so that we can validate
|
|
62
|
+
* the response when we receive it.
|
|
63
|
+
*/
|
|
64
|
+
store.set('code_verifier', verifier);
|
|
65
|
+
store.set('state', state);
|
|
66
|
+
const params = Object.assign({ response_type: 'code', client_id: __classPrivateFieldGet(this, _PopupTransport_options, "f").client, scope: __classPrivateFieldGet(this, _PopupTransport_options, "f").scopes || '', redirect_uri: __classPrivateFieldGet(this, _PopupTransport_options, "f").redirect, state, code_challenge: challenge, code_challenge_method: 'S256' }, (__classPrivateFieldGet(this, _PopupTransport_options, "f").params || {}));
|
|
67
|
+
const url = new URL(getAuthorizationEndpoint());
|
|
68
|
+
url.search = new URLSearchParams(params).toString();
|
|
69
|
+
const promise = new Promise((resolve) => {
|
|
70
|
+
window.addEventListener('message', (e) => __awaiter(this, void 0, void 0, function* () {
|
|
71
|
+
var _a;
|
|
72
|
+
const { data } = e;
|
|
73
|
+
if (e.origin !== window.location.origin || (data === null || data === void 0 ? void 0 : data.source) !== MESSAGE_SOURCE) {
|
|
74
|
+
return;
|
|
75
|
+
}
|
|
76
|
+
(_a = __classPrivateFieldGet(this, _PopupTransport_window, "f")) === null || _a === void 0 ? void 0 : _a.close();
|
|
77
|
+
const response = yield __classPrivateFieldGet(this, _PopupTransport_instances, "m", _PopupTransport_getToken).call(this, data.url);
|
|
78
|
+
resolve(response);
|
|
79
|
+
}), false);
|
|
80
|
+
});
|
|
81
|
+
__classPrivateFieldSet(this, _PopupTransport_window, window.open(url.toString(), '_blank', 'width=800,height=600'), "f");
|
|
82
|
+
if (!__classPrivateFieldGet(this, _PopupTransport_window, "f")) {
|
|
83
|
+
throw new Error('Unable to open window for PopupTransport.');
|
|
84
|
+
}
|
|
85
|
+
__classPrivateFieldGet(this, _PopupTransport_window, "f").focus();
|
|
86
|
+
return promise;
|
|
87
|
+
});
|
|
88
|
+
}
|
|
89
|
+
// eslint-disable-next-line class-methods-use-this
|
|
90
|
+
getToken() {
|
|
91
|
+
if (!window.opener) {
|
|
92
|
+
return;
|
|
93
|
+
}
|
|
94
|
+
window.opener.postMessage({
|
|
95
|
+
source: MESSAGE_SOURCE,
|
|
96
|
+
url: window.location.href,
|
|
97
|
+
}, window.location.origin);
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
_PopupTransport_options = new WeakMap(), _PopupTransport_window = new WeakMap(), _PopupTransport_instances = new WeakSet(), _PopupTransport_getToken = function _PopupTransport_getToken(href) {
|
|
101
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
102
|
+
const url = new URL(href);
|
|
103
|
+
const params = new URLSearchParams(url.search);
|
|
104
|
+
/**
|
|
105
|
+
* Check for an error in the OAuth flow.
|
|
106
|
+
* @see https://www.oauth.com/oauth2-servers/pkce/authorization-request/
|
|
107
|
+
*/
|
|
108
|
+
if (params.get('error')) {
|
|
109
|
+
throw new Error(params.get('error_description') || 'An error occurred during the authorization process.');
|
|
110
|
+
}
|
|
111
|
+
const code = params.get('code');
|
|
112
|
+
/**
|
|
113
|
+
* If we don't have a `code` parameter, we can't exchange it for an access token.
|
|
114
|
+
*/
|
|
115
|
+
if (!code)
|
|
116
|
+
return undefined;
|
|
117
|
+
/**
|
|
118
|
+
* Grab the PKCE information from session storage.
|
|
119
|
+
*/
|
|
120
|
+
const state = store.get('state');
|
|
121
|
+
const verifier = store.get('code_verifier');
|
|
122
|
+
/**
|
|
123
|
+
* Now that we have the values in memory, we can remove them from session storage.
|
|
124
|
+
*/
|
|
125
|
+
store.reset();
|
|
126
|
+
/**
|
|
127
|
+
* Validate the `state` parameter matches the preserved state (to prevent CSRF attacks).
|
|
128
|
+
*/
|
|
129
|
+
if (params.get('state') !== state) {
|
|
130
|
+
throw new Error('Invalid State. The received "state" parameter does not match the expected state.');
|
|
131
|
+
}
|
|
132
|
+
/**
|
|
133
|
+
* Ensure we have a valid code verifier.
|
|
134
|
+
*/
|
|
135
|
+
if (!verifier) {
|
|
136
|
+
throw new Error('Invalid Code Verifier');
|
|
137
|
+
}
|
|
138
|
+
/**
|
|
139
|
+
* Prepare the payload for the PKCE token exchange.
|
|
140
|
+
*/
|
|
141
|
+
const payload = {
|
|
142
|
+
code,
|
|
143
|
+
client_id: __classPrivateFieldGet(this, _PopupTransport_options, "f").client,
|
|
144
|
+
/**
|
|
145
|
+
* Retrieve the code verifier from session storage.
|
|
146
|
+
*/
|
|
147
|
+
code_verifier: verifier,
|
|
148
|
+
redirect_uri: __classPrivateFieldGet(this, _PopupTransport_options, "f").redirect,
|
|
149
|
+
grant_type: 'authorization_code',
|
|
150
|
+
};
|
|
151
|
+
const response = yield (yield oauth2.token.exchange({
|
|
152
|
+
payload,
|
|
153
|
+
})).json();
|
|
154
|
+
return response;
|
|
155
|
+
});
|
|
156
|
+
};
|
|
157
|
+
/**
|
|
158
|
+
* The `PopupTransport` is supported in environments where the `window` object is available.
|
|
159
|
+
*/
|
|
160
|
+
PopupTransport.supported = isSupported() && 'window' in globalThis && typeof globalThis.window.open === 'function';
|
|
161
|
+
//# sourceMappingURL=PopupTransport.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PopupTransport.js","sourceRoot":"","sources":["../../../../src/core/authorization/PopupTransport.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,EAAE,M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EAAE,oBAAoB;SACjC,CAAC;QACF,MAAM,QAAQ,GAAG,MAAM,CACrB,MAAM,MAAM,CAAC,KAAK,CAAC,QAAQ,CAAC;YAC1B,OAAO;SACR,CAAC,CACH,CAAC,IAAI,EAAE,CAAC;QACT,OAAO,QAAQ,CAAC;IAClB,CAAC;;AAlID;;GAEG;AACI,wBAAS,GACd,WAAW,EAAE,IAAI,QAAQ,IAAI,UAAU,IAAI,OAAO,UAAU,CAAC,MAAM,CAAC,IAAI,KAAK,UAAU,AADzE,CAC0E"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { AuthorizationManagerConfiguration } from './AuthorizationManager';
|
|
1
|
+
import type { AuthorizationManagerConfiguration } from './AuthorizationManager.js';
|
|
2
2
|
export type GetTokenOptions = {
|
|
3
3
|
/**
|
|
4
4
|
* Whether or not the URL should be replaced after processing the token.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RedirectTransport.d.ts","sourceRoot":"","sources":["../../../../src/core/authorization/RedirectTransport.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,iCAAiC,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"RedirectTransport.d.ts","sourceRoot":"","sources":["../../../../src/core/authorization/RedirectTransport.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,iCAAiC,EAAE,MAAM,2BAA2B,CAAC;AAEnF,MAAM,MAAM,eAAe,GAAG;IAC5B;;;OAGG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB;;;;;;OAMG;IACH,sBAAsB,CAAC,EAAE,OAAO,CAAC;CAClC,CAAC;AAEF,MAAM,MAAM,wBAAwB,GAAG,IAAI,CACzC,iCAAiC,EACjC,QAAQ,GAAG,UAAU,GAAG,QAAQ,CACjC,GAAG;IACF;;;;;OAKG;IACH,MAAM,CAAC,EAAE;QACP,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC;KACvB,CAAC;CACH,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,IAAI;;;CAGhB,CAAC;AAOF,qBAAa,iBAAiB;;gBAGhB,OAAO,EAAE,wBAAwB;IAO7C,MAAM,CAAC,SAAS,UAAiB;IAEjC;;OAEG;IACG,IAAI;IAmCV;;;OAGG;IACG,QAAQ,CACZ,OAAO,GAAE,eAAwE;CAwFpF"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "5.
|
|
1
|
+
export declare const VERSION = "5.8.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -69,6 +69,7 @@ export * as flows from './services/flows/index.js';
|
|
|
69
69
|
export * as gcs from './services/globus-connect-server/index.js';
|
|
70
70
|
export * as timer from './services/timer/index.js';
|
|
71
71
|
export * as compute from './services/compute/index.js';
|
|
72
|
+
export { serviceRequest as request } from './services/shared.js';
|
|
72
73
|
/**
|
|
73
74
|
* Applications
|
|
74
75
|
*/
|
package/dist/esm/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoDG;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoDG;AAEH;;GAEG;AACH,OAAO,KAAK,IAAI,MAAM,sBAAsB,CAAC;AAC7C,OAAO,KAAK,MAAM,MAAM,kBAAkB,CAAC;AAC3C,OAAO,KAAK,aAAa,MAAM,+BAA+B,CAAC;AAC/D,OAAO,KAAK,MAAM,MAAM,kBAAkB,CAAC;AAE3C;;GAEG;AACH,OAAO,KAAK,IAAI,MAAM,0BAA0B,CAAC;AACjD,OAAO,KAAK,QAAQ,MAAM,8BAA8B,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,4BAA4B,CAAC;AACrD,OAAO,KAAK,MAAM,MAAM,4BAA4B,CAAC;AACrD,OAAO,KAAK,KAAK,MAAM,2BAA2B,CAAC;AACnD,OAAO,KAAK,GAAG,MAAM,2CAA2C,CAAC;AACjE,OAAO,KAAK,KAAK,MAAM,2BAA2B,CAAC;AACnD,OAAO,KAAK,OAAO,MAAM,6BAA6B,CAAC;AAEvD,OAAO,EAAE,cAAc,IAAI,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAEjE;;GAEG;AACH,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC"}
|
package/dist/esm/index.js
CHANGED
|
@@ -51,10 +51,6 @@
|
|
|
51
51
|
*
|
|
52
52
|
* const result = await (await flows.flows.get("452bbea3-5e3b-45a5-af08-50179839a4e8")).json();
|
|
53
53
|
*/
|
|
54
|
-
/// <reference types="@globus/types" />
|
|
55
|
-
/// <reference types="@globus/types/auth" />
|
|
56
|
-
/// <reference types="@globus/types/transfer" />
|
|
57
|
-
/// <reference types="@globus/types/search" />
|
|
58
54
|
/**
|
|
59
55
|
* Core
|
|
60
56
|
*/
|
|
@@ -73,6 +69,7 @@ export * as flows from './services/flows/index.js';
|
|
|
73
69
|
export * as gcs from './services/globus-connect-server/index.js';
|
|
74
70
|
export * as timer from './services/timer/index.js';
|
|
75
71
|
export * as compute from './services/compute/index.js';
|
|
72
|
+
export { serviceRequest as request } from './services/shared.js';
|
|
76
73
|
/**
|
|
77
74
|
* Applications
|
|
78
75
|
*/
|
package/dist/esm/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoDG;AAEH
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoDG;AAEH;;GAEG;AACH,OAAO,KAAK,IAAI,MAAM,sBAAsB,CAAC;AAC7C,OAAO,KAAK,MAAM,MAAM,kBAAkB,CAAC;AAC3C,OAAO,KAAK,aAAa,MAAM,+BAA+B,CAAC;AAC/D,OAAO,KAAK,MAAM,MAAM,kBAAkB,CAAC;AAE3C;;GAEG;AACH,OAAO,KAAK,IAAI,MAAM,0BAA0B,CAAC;AACjD,OAAO,KAAK,QAAQ,MAAM,8BAA8B,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,4BAA4B,CAAC;AACrD,OAAO,KAAK,MAAM,MAAM,4BAA4B,CAAC;AACrD,OAAO,KAAK,KAAK,MAAM,2BAA2B,CAAC;AACnD,OAAO,KAAK,GAAG,MAAM,2CAA2C,CAAC;AACjE,OAAO,KAAK,KAAK,MAAM,2BAA2B,CAAC;AACnD,OAAO,KAAK,OAAO,MAAM,6BAA6B,CAAC;AAEvD,OAAO,EAAE,cAAc,IAAI,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAEjE;;GAEG;AACH,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC"}
|
package/dist/esm/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/services/auth/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/services/auth/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,kCAAkC,CAAC;AAE3D,MAAM,MAAM,aAAa,GAAG;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,oBAAoB,EAAE,OAAO,CAAC;IAC9B,QAAQ,EAAE,aAAa,EAAE,CAAC;CAC3B,CAAC;AAEF;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,EAAE,CAsBxD;AAuCD;;GAEG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,MAAM,GAAG,aAAa,EAAE,CAE1D;AAED;;;;;;GAMG;AACH,wBAAgB,kBAAkB,CAAC,QAAQ,EAAE,OAAO,EAAE,EAAE,KAAK,EAAE,MAAM,GAAG,OAAO,CAkD9E"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/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"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/services/compute/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,KAAK,OAAO,MAAM,aAAa,CAAC;AAEvC,YAAY,KAAK,OAAO,MAAM,iCAAiC,CAAC;AAEhE;;;GAGG;AACH,eAAO,MAAM,MAAM,gBAAU,CAAC;AAE9B,OAAO,KAAK,SAAS,MAAM,wBAAwB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/services/compute/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,KAAK,OAAO,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/services/compute/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,KAAK,OAAO,MAAM,aAAa,CAAC;AAIvC;;;GAGG;AACH,MAAM,CAAC,MAAM,MAAM,GAAG,OAAO,CAAC;AAE9B,OAAO,KAAK,SAAS,MAAM,wBAAwB,CAAC"}
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import type { operations } from '@globus/types/compute';
|
|
2
1
|
import type { JSONFetchResponse } from '../../types.js';
|
|
2
|
+
import type { OpenAPI } from '../index.js';
|
|
3
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"]>>;
|
|
4
|
+
query: OpenAPI.operations["get_endpoints_v2_endpoints_get"]["parameters"]["query"];
|
|
5
|
+
} & import("../../types.js").BaseServiceMethodOptions) | undefined, sdkOptions?: import("../../types.js").SDKOptions | undefined) => Promise<JSONFetchResponse<OpenAPI.operations["get_endpoints_v2_endpoints_get"]["responses"]["200"]["content"]["application/json"]>>;
|
|
6
6
|
export declare const get: (endpoint_uuid: string, options?: ({
|
|
7
7
|
query?: never;
|
|
8
8
|
payload?: never;
|
|
9
9
|
} & {
|
|
10
10
|
query?: import("../../types.js").BaseServiceMethodOptions["query"];
|
|
11
11
|
headers?: import("../../types.js").BaseServiceMethodOptions["headers"];
|
|
12
|
-
}) | undefined, sdkOptions?: import("../../types.js").SDKOptions | undefined) => Promise<JSONFetchResponse<operations["get_endpoint_v2_endpoints__endpoint_uuid__get"]["responses"]["200"]["content"]["application/json"]>>;
|
|
12
|
+
}) | undefined, sdkOptions?: import("../../types.js").SDKOptions | undefined) => Promise<JSONFetchResponse<OpenAPI.operations["get_endpoint_v2_endpoints__endpoint_uuid__get"]["responses"]["200"]["content"]["application/json"]>>;
|
|
13
13
|
export declare const getStatus: (endpoint_uuid: string, options?: ({
|
|
14
14
|
query?: never;
|
|
15
15
|
payload?: never;
|
|
16
16
|
} & {
|
|
17
17
|
query?: import("../../types.js").BaseServiceMethodOptions["query"];
|
|
18
18
|
headers?: import("../../types.js").BaseServiceMethodOptions["headers"];
|
|
19
|
-
}) | undefined, sdkOptions?: import("../../types.js").SDKOptions | undefined) => Promise<JSONFetchResponse<operations["get_endpoint_status_v2_endpoints__endpoint_uuid__status_get"]["responses"]["200"]["content"]["application/json"]>>;
|
|
19
|
+
}) | undefined, sdkOptions?: import("../../types.js").SDKOptions | undefined) => Promise<JSONFetchResponse<OpenAPI.operations["get_endpoint_status_v2_endpoints__endpoint_uuid__status_get"]["responses"]["200"]["content"]["application/json"]>>;
|
|
20
20
|
//# sourceMappingURL=endpoints.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"endpoints.d.ts","sourceRoot":"","sources":["../../../../../src/services/compute/service/endpoints.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"endpoints.d.ts","sourceRoot":"","sources":["../../../../../src/services/compute/service/endpoints.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAGV,iBAAiB,EAClB,MAAM,gBAAgB,CAAC;AAExB,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAE3C,eAAO,MAAM,MAAM;WAmBV,OAAO,CAAC,UAAU,CAAC,gCAAgC,CAAC,CAAC,YAAY,CAAC,CAAC,OAAO,CAAC;qIAhBjF,OAAO,CACR,iBAAiB,CACf,OAAO,CAAC,UAAU,CAAC,gCAAgC,CAAC,CAAC,WAAW,CAAC,CAAC,KAAK,CAAC,CAAC,SAAS,CAAC,CAAC,kBAAkB,CAAC,CACxG,CAcD,CAAC;AAEH,eAAO,MAAM,GAAG;YAsBJ,KAAK;cACH,KAAK;;;;iFAnBhB,OAAO,CACR,iBAAiB,CACf,OAAO,CAAC,UAAU,CAAC,+CAA+C,CAAC,CAAC,WAAW,CAAC,CAAC,KAAK,CAAC,CAAC,SAAS,CAAC,CAAC,kBAAkB,CAAC,CACvH,CAkBF,CAAC;AAEF,eAAO,MAAM,SAAS;YAqBV,KAAK;cACH,KAAK;;;;iFAlBhB,OAAO,CACR,iBAAiB,CACf,OAAO,CAAC,UAAU,CAAC,6DAA6D,CAAC,CAAC,WAAW,CAAC,CAAC,KAAK,CAAC,CAAC,SAAS,CAAC,CAAC,kBAAkB,CAAC,CACrI,CAiBF,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"endpoints.js","sourceRoot":"","sources":["../../../../../src/services/compute/service/endpoints.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"endpoints.js","sourceRoot":"","sources":["../../../../../src/services/compute/service/endpoints.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAC/D,OAAO,EAAE,EAAE,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAU1C,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"}
|
|
@@ -115,5 +115,27 @@ export declare const deploy: (options?: ({
|
|
|
115
115
|
subscription_id?: string;
|
|
116
116
|
};
|
|
117
117
|
} & import("../../types.js").BaseServiceMethodOptions) | undefined, sdkOptions?: import("../../types.js").SDKOptions | undefined) => Promise<Response>;
|
|
118
|
+
/**
|
|
119
|
+
* Update a Flow
|
|
120
|
+
* @see https://globusonline.github.io/globus-flows/#tag/Flows/paths/~1flows~1{flow_id}/put
|
|
121
|
+
*/
|
|
122
|
+
export declare const update: (flow_id: string, options?: ({
|
|
123
|
+
query?: never;
|
|
124
|
+
payload: {
|
|
125
|
+
definition?: Record<string, any>;
|
|
126
|
+
input_schema?: Record<string, any>;
|
|
127
|
+
title?: string;
|
|
128
|
+
subtitle?: string;
|
|
129
|
+
description?: string;
|
|
130
|
+
keywords?: string[];
|
|
131
|
+
flow_viewers?: string[];
|
|
132
|
+
flows_starters?: string[];
|
|
133
|
+
flow_administrators?: string[];
|
|
134
|
+
subscription_id?: string;
|
|
135
|
+
};
|
|
136
|
+
} & {
|
|
137
|
+
query?: import("../../types.js").BaseServiceMethodOptions["query"];
|
|
138
|
+
headers?: import("../../types.js").BaseServiceMethodOptions["headers"];
|
|
139
|
+
}) | undefined, sdkOptions?: import("../../types.js").SDKOptions | undefined) => Promise<Response>;
|
|
118
140
|
export {};
|
|
119
141
|
//# sourceMappingURL=flows.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"flows.d.ts","sourceRoot":"","sources":["../../../../../src/services/flows/service/flows.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,iBAAiB,EAGlB,MAAM,gBAAgB,CAAC;AAExB;;GAEG;AACH,eAAO,MAAM,MAAM;YAWT,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;cACpB,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;sJAChC,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,GAAG;;;kGAUqD,CAAC;AAEtE;;GAEG;A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EAAE,MAAM,EAAE,CAAC;QAC1B,mBAAmB,CAAC,EAAE,MAAM,EAAE,CAAC;QAC/B,eAAe,CAAC,EAAE,MAAM,CAAC;KAC1B;;;;kGAEJ,CAAC"}
|
|
@@ -71,4 +71,16 @@ export const create = function (options, sdkOptions) {
|
|
|
71
71
|
* An alias for `create` to match the API documentation.
|
|
72
72
|
*/
|
|
73
73
|
export const deploy = create;
|
|
74
|
+
/**
|
|
75
|
+
* Update a Flow
|
|
76
|
+
* @see https://globusonline.github.io/globus-flows/#tag/Flows/paths/~1flows~1{flow_id}/put
|
|
77
|
+
*/
|
|
78
|
+
export const update = function (flow_id, options, sdkOptions) {
|
|
79
|
+
return serviceRequest({
|
|
80
|
+
service: ID,
|
|
81
|
+
scope: SCOPES.MANAGE_FLOWS,
|
|
82
|
+
path: `/flows/${flow_id}`,
|
|
83
|
+
method: HTTP_METHODS.PUT,
|
|
84
|
+
}, options, sdkOptions);
|
|
85
|
+
};
|
|
74
86
|
//# sourceMappingURL=flows.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"flows.js","sourceRoot":"","sources":["../../../../../src/services/flows/service/flows.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAO3E;;GAEG;AACH,MAAM,CAAC,MAAM,MAAM,GAAG,UAAU,OAAQ,EAAE,UAAW;IACnD,OAAO,cAAc,CACnB;QACE,OAAO,EAAE,EAAE;QACX,KAAK,EAAE,MAAM,CAAC,UAAU;QACxB,IAAI,EAAE,QAAQ;KACf,EACD,OAAO,EACP,UAAU,CACX,CAAC;AACJ,CAGE,CAAC;AAEH;;GAEG;AACH,MAAM,CAAC,MAAM,GAAG,GAAG,UAAU,OAAO,EAAE,OAAQ,EAAE,UAAW;IACzD,OAAO,cAAc,CACnB;QACE,OAAO,EAAE,EAAE;QAC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D,OAAO,EACP,UAAU,CACX,CAAC;AACJ,CAcE,CAAC;AAEH;;GAEG;AACH,MAAM,CAAC,MAAM,MAAM,GAAG,MAAM,CAAC"}
|
|
1
|
+
{"version":3,"file":"flows.js","sourceRoot":"","sources":["../../../../../src/services/flows/service/flows.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAO3E;;GAEG;AACH,MAAM,CAAC,MAAM,MAAM,GAAG,UAAU,OAAQ,EAAE,UAAW;IACnD,OAAO,cAAc,CACnB;QACE,OAAO,EAAE,EAAE;QACX,KAAK,EAAE,MAAM,CAAC,UAAU;QACxB,IAAI,EAAE,QAAQ;KACf,EACD,OAAO,EACP,UAAU,CACX,CAAC;AACJ,CAGE,CAAC;AAEH;;GAEG;AACH,MAAM,CAAC,MAAM,GAAG,GAAG,UAAU,OAAO,EAAE,OAAQ,EAAE,UAAW;IACzD,OAAO,cAAc,CACnB;QACE,OAAO,EAAE,EAAE;QACX,KAAK,EAAE,MAAM,CAAC,UAAU;QACxB,IAAI,EAAE,UAAU,OAAO,EAAE;KAC1B,EACD,OAAO,EACP,UAAU,CACX,CAAC;AACJ,CAAqE,CAAC;AAEtE;;GAEG;AACH,MAAM,CAAC,MAAM,MAAM,GAAG,UAAU,OAAO,EAAE,OAAQ,EAAE,UAAW;IAC5D,OAAO,cAAc,CACnB;QACE,KAAK,EAAE,MAAM,CAAC,YAAY;QAC1B,OAAO,EAAE,EAAE;QACX,IAAI,EAAE,UAAU,OAAO,EAAE;QACzB,MAAM,EAAE,YAAY,CAAC,MAAM;KAC5B,EACD,OAAO,EACP,UAAU,CACX,CAAC;AACJ,CAMC,CAAC;AAEF;;;GAGG;AACH,MAAM,CAAC,MAAM,GAAG,GAAG,UAAU,OAAO,EAAE,OAAQ,EAAE,UAAW;IACzD,OAAO,cAAc,CACnB;QAC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