@globus/sdk 0.0.4-alpha.0 → 0.1.2-alpha.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/browser.cjs.js +1 -0
- package/dist/browser.esm.js +1 -0
- package/dist/browser.js +1 -0
- package/dist/common/src/index.d.ts +5 -4
- package/dist/common/src/index.d.ts.map +1 -1
- package/dist/common/src/index.js +2 -1
- package/dist/common/src/index.js.map +1 -1
- package/dist/common/src/lib/core/authorization.d.ts.map +1 -1
- package/dist/common/src/lib/core/authorization.js +4 -2
- package/dist/common/src/lib/core/authorization.js.map +1 -1
- package/dist/common/src/lib/core/global.d.ts +9 -7
- package/dist/common/src/lib/core/global.d.ts.map +1 -1
- package/dist/common/src/lib/core/global.js +20 -15
- package/dist/common/src/lib/core/global.js.map +1 -1
- package/dist/common/src/lib/core/url.d.ts +3 -2
- package/dist/common/src/lib/core/url.d.ts.map +1 -1
- package/dist/common/src/lib/core/url.js +4 -11
- package/dist/common/src/lib/core/url.js.map +1 -1
- package/dist/common/src/lib/services/auth/service/scopes.d.ts +26 -0
- package/dist/common/src/lib/services/auth/service/scopes.d.ts.map +1 -0
- package/dist/common/src/lib/services/auth/service/scopes.js +31 -0
- package/dist/common/src/lib/services/auth/service/scopes.js.map +1 -0
- package/dist/common/src/lib/services/auth/utils.d.ts +26 -0
- package/dist/common/src/lib/services/auth/utils.d.ts.map +1 -0
- package/dist/common/src/lib/services/auth/utils.js +55 -0
- package/dist/common/src/lib/services/auth/utils.js.map +1 -0
- package/dist/common/src/lib/services/flows/config.d.ts +14 -0
- package/dist/common/src/lib/services/flows/config.d.ts.map +1 -0
- package/dist/common/src/lib/services/flows/config.js +23 -0
- package/dist/common/src/lib/services/flows/config.js.map +1 -0
- package/dist/common/src/lib/services/flows/index.d.ts +12 -0
- package/dist/common/src/lib/services/flows/index.d.ts.map +1 -0
- package/dist/common/src/lib/services/flows/index.js +15 -0
- package/dist/common/src/lib/services/flows/index.js.map +1 -0
- package/dist/common/src/lib/services/flows/service/batch.d.ts +3 -0
- package/dist/common/src/lib/services/flows/service/batch.d.ts.map +1 -0
- package/dist/common/src/lib/services/flows/service/batch.js +4 -0
- package/dist/common/src/lib/services/flows/service/batch.js.map +1 -0
- package/dist/common/src/lib/services/flows/service/flows.d.ts +13 -0
- package/dist/common/src/lib/services/flows/service/flows.d.ts.map +1 -0
- package/dist/common/src/lib/services/flows/service/flows.js +30 -0
- package/dist/common/src/lib/services/flows/service/flows.js.map +1 -0
- package/dist/common/src/lib/services/flows/service/runs.d.ts +6 -0
- package/dist/common/src/lib/services/flows/service/runs.d.ts.map +1 -0
- package/dist/common/src/lib/services/flows/service/runs.js +17 -0
- package/dist/common/src/lib/services/flows/service/runs.js.map +1 -0
- package/dist/common/src/lib/services/globus-connect-server/index.d.ts +13 -0
- package/dist/common/src/lib/services/globus-connect-server/index.d.ts.map +1 -0
- package/dist/common/src/lib/services/globus-connect-server/index.js +33 -0
- package/dist/common/src/lib/services/globus-connect-server/index.js.map +1 -0
- package/dist/common/src/lib/services/globus-connect-server/service/endpoint.d.ts +5 -0
- package/dist/common/src/lib/services/globus-connect-server/service/endpoint.d.ts.map +1 -0
- package/dist/common/src/lib/services/globus-connect-server/service/endpoint.js +15 -0
- package/dist/common/src/lib/services/globus-connect-server/service/endpoint.js.map +1 -0
- package/dist/common/src/lib/services/globus-connect-server/service/versioning.d.ts +6 -0
- package/dist/common/src/lib/services/globus-connect-server/service/versioning.d.ts.map +1 -0
- package/dist/common/src/lib/services/globus-connect-server/service/versioning.js +16 -0
- package/dist/common/src/lib/services/globus-connect-server/service/versioning.js.map +1 -0
- package/dist/common/src/lib/services/search/config.d.ts +12 -0
- package/dist/common/src/lib/services/search/config.d.ts.map +1 -0
- package/dist/common/src/lib/services/search/config.js +21 -0
- package/dist/common/src/lib/services/search/config.js.map +1 -0
- package/dist/common/src/lib/services/search/index.d.ts +10 -0
- package/dist/common/src/lib/services/search/index.d.ts.map +1 -0
- package/dist/common/src/lib/services/search/index.js +13 -0
- package/dist/common/src/lib/services/search/index.js.map +1 -0
- package/dist/common/src/lib/services/search/service/query.d.ts +13 -0
- package/dist/common/src/lib/services/search/service/query.d.ts.map +1 -0
- package/dist/common/src/lib/services/search/service/query.js +16 -0
- package/dist/common/src/lib/services/search/service/query.js.map +1 -0
- package/dist/common/src/lib/services/transfer/service/endpoint-search.js +1 -1
- package/dist/common/src/lib/services/transfer/service/endpoint-search.js.map +1 -1
- package/dist/common/src/lib/services/transfer/service/endpoint.d.ts +4 -4
- package/dist/common/src/lib/services/transfer/service/endpoint.d.ts.map +1 -1
- package/dist/common/src/lib/services/transfer/service/endpoint.js +4 -2
- package/dist/common/src/lib/services/transfer/service/endpoint.js.map +1 -1
- package/dist/common/src/lib/services/transfer/service/file-operations.d.ts +7 -8
- package/dist/common/src/lib/services/transfer/service/file-operations.d.ts.map +1 -1
- package/dist/common/src/lib/services/transfer/service/file-operations.js +6 -10
- package/dist/common/src/lib/services/transfer/service/file-operations.js.map +1 -1
- package/dist/common/src/lib/services/transfer/service/task-submission.js.map +1 -1
- package/dist/common/src/lib/services/types.d.ts +9 -4
- package/dist/common/src/lib/services/types.d.ts.map +1 -1
- package/dist/common/tsconfig.cjs.tsbuildinfo +1 -1
- package/dist/index.cjs.js +1 -0
- package/dist/index.esm.js +1 -0
- package/dist/index.js +1 -0
- package/dist/src/index.d.ts +5 -4
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +6 -4
- package/dist/src/index.js.map +1 -1
- package/dist/src/lib/core/authorization.d.ts.map +1 -1
- package/dist/src/lib/core/authorization.js +4 -2
- package/dist/src/lib/core/authorization.js.map +1 -1
- package/dist/src/lib/core/global.d.ts +9 -7
- package/dist/src/lib/core/global.d.ts.map +1 -1
- package/dist/src/lib/core/global.js +20 -14
- package/dist/src/lib/core/global.js.map +1 -1
- package/dist/src/lib/core/url.d.ts +3 -2
- package/dist/src/lib/core/url.d.ts.map +1 -1
- package/dist/src/lib/core/url.js +5 -12
- package/dist/src/lib/core/url.js.map +1 -1
- package/dist/src/lib/services/auth/service/scopes.d.ts +26 -0
- package/dist/src/lib/services/auth/service/scopes.d.ts.map +1 -0
- package/dist/src/lib/services/auth/service/scopes.js +28 -0
- package/dist/src/lib/services/auth/service/scopes.js.map +1 -0
- package/dist/src/lib/services/auth/utils.d.ts +26 -0
- package/dist/src/lib/services/auth/utils.d.ts.map +1 -0
- package/dist/src/lib/services/auth/utils.js +41 -0
- package/dist/src/lib/services/auth/utils.js.map +1 -0
- package/dist/src/lib/services/flows/config.d.ts +14 -0
- package/dist/src/lib/services/flows/config.d.ts.map +1 -0
- package/dist/src/lib/services/flows/config.js +20 -0
- package/dist/src/lib/services/flows/config.js.map +1 -0
- package/dist/src/lib/services/flows/index.d.ts +12 -0
- package/dist/src/lib/services/flows/index.d.ts.map +1 -0
- package/dist/src/lib/services/flows/index.js +15 -0
- package/dist/src/lib/services/flows/index.js.map +1 -0
- package/dist/src/lib/services/flows/service/batch.d.ts +3 -0
- package/dist/src/lib/services/flows/service/batch.d.ts.map +1 -0
- package/dist/src/lib/services/flows/service/batch.js +2 -0
- package/dist/src/lib/services/flows/service/batch.js.map +1 -0
- package/dist/src/lib/services/flows/service/flows.d.ts +13 -0
- package/dist/src/lib/services/flows/service/flows.d.ts.map +1 -0
- package/dist/src/lib/services/flows/service/flows.js +27 -0
- package/dist/src/lib/services/flows/service/flows.js.map +1 -0
- package/dist/src/lib/services/flows/service/runs.d.ts +6 -0
- package/dist/src/lib/services/flows/service/runs.d.ts.map +1 -0
- package/dist/src/lib/services/flows/service/runs.js +14 -0
- package/dist/src/lib/services/flows/service/runs.js.map +1 -0
- package/dist/src/lib/services/globus-connect-server/index.d.ts +13 -0
- package/dist/src/lib/services/globus-connect-server/index.d.ts.map +1 -0
- package/dist/src/lib/services/globus-connect-server/index.js +30 -0
- package/dist/src/lib/services/globus-connect-server/index.js.map +1 -0
- package/dist/src/lib/services/globus-connect-server/service/endpoint.d.ts +5 -0
- package/dist/src/lib/services/globus-connect-server/service/endpoint.d.ts.map +1 -0
- package/dist/src/lib/services/globus-connect-server/service/endpoint.js +12 -0
- package/dist/src/lib/services/globus-connect-server/service/endpoint.js.map +1 -0
- package/dist/src/lib/services/globus-connect-server/service/versioning.d.ts +6 -0
- package/dist/src/lib/services/globus-connect-server/service/versioning.d.ts.map +1 -0
- package/dist/src/lib/services/globus-connect-server/service/versioning.js +13 -0
- package/dist/src/lib/services/globus-connect-server/service/versioning.js.map +1 -0
- package/dist/src/lib/services/search/config.d.ts +12 -0
- package/dist/src/lib/services/search/config.d.ts.map +1 -0
- package/dist/src/lib/services/search/config.js +18 -0
- package/dist/src/lib/services/search/config.js.map +1 -0
- package/dist/src/lib/services/search/index.d.ts +10 -0
- package/dist/src/lib/services/search/index.d.ts.map +1 -0
- package/dist/src/lib/services/search/index.js +11 -0
- package/dist/src/lib/services/search/index.js.map +1 -0
- package/dist/src/lib/services/search/service/query.d.ts +13 -0
- package/dist/src/lib/services/search/service/query.d.ts.map +1 -0
- package/dist/src/lib/services/search/service/query.js +13 -0
- package/dist/src/lib/services/search/service/query.js.map +1 -0
- package/dist/src/lib/services/transfer/service/endpoint-search.js +1 -1
- package/dist/src/lib/services/transfer/service/endpoint-search.js.map +1 -1
- package/dist/src/lib/services/transfer/service/endpoint.d.ts +4 -4
- package/dist/src/lib/services/transfer/service/endpoint.d.ts.map +1 -1
- package/dist/src/lib/services/transfer/service/endpoint.js +4 -1
- package/dist/src/lib/services/transfer/service/endpoint.js.map +1 -1
- package/dist/src/lib/services/transfer/service/file-operations.d.ts +7 -8
- package/dist/src/lib/services/transfer/service/file-operations.d.ts.map +1 -1
- package/dist/src/lib/services/transfer/service/file-operations.js +3 -3
- package/dist/src/lib/services/transfer/service/file-operations.js.map +1 -1
- package/dist/src/lib/services/transfer/service/task-submission.js.map +1 -1
- package/dist/src/lib/services/types.d.ts +9 -4
- package/dist/src/lib/services/types.d.ts.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +14 -9
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var he=Object.create;var T=Object.defineProperty,ye=Object.defineProperties,Te=Object.getOwnPropertyDescriptor,ve=Object.getOwnPropertyDescriptors,be=Object.getOwnPropertyNames,z=Object.getOwnPropertySymbols,Ee=Object.getPrototypeOf,X=Object.prototype.hasOwnProperty,Re=Object.prototype.propertyIsEnumerable;var Q=(t,e,r)=>e in t?T(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,i=(t,e)=>{for(var r in e||={})X.call(e,r)&&Q(t,r,e[r]);if(z)for(var r of z(e))Re.call(e,r)&&Q(t,r,e[r]);return t},Z=(t,e)=>ye(t,ve(e));var u=(t,e)=>{for(var r in e)T(t,r,{get:e[r],enumerable:!0})},ee=(t,e,r,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of be(e))!X.call(t,n)&&n!==r&&T(t,n,{get:()=>e[n],enumerable:!(o=Te(e,n))||o.enumerable});return t};var te=(t,e,r)=>(r=t!=null?he(Ee(t)):{},ee(e||!t||!t.__esModule?T(r,"default",{value:t,enumerable:!0}):r,t)),xe=t=>ee(T({},"__esModule",{value:!0}),t);var B=(t,e,r)=>{if(!e.has(t))throw TypeError("Cannot "+r)};var p=(t,e,r)=>(B(t,e,"read from private field"),r?r.call(t):e.get(t)),f=(t,e,r)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,r)},d=(t,e,r,o)=>(B(t,e,"write to private field"),o?o.call(t,r):e.set(t,r),r);var q=(t,e,r)=>(B(t,e,"access private method"),r);var re=(t,e,r)=>new Promise((o,n)=>{var R=g=>{try{M(r.next(g))}catch(V){n(V)}},x=g=>{try{M(r.throw(g))}catch(V){n(V)}},M=g=>g.done?o(g.value):Promise.resolve(g.value).then(R,x);M((r=r.apply(t,e)).next())});var Je={};u(Je,{auth:()=>N,authorization:()=>G,sdk:()=>Ie,transfer:()=>K});module.exports=xe(Je);function Ie(){return"@globus/sdk"}var G={};u(G,{PKCEAuthorization:()=>b,incremental:()=>Ue,pkce:()=>Pe});var fe=te(require("js-pkce"));var N={};u(N,{CONFIG:()=>we,getAuthorizationEndpoint:()=>$,getTokenEndpoint:()=>W});var I={};u(I,{HOSTS:()=>Y,ID:()=>m});var m="AUTH",Y={integration:"auth.integration.globuscs.info",sandbox:"auth.sandbox.globuscs.info",production:"auth.globus.org",test:"auth.test.globuscs.info",staging:"auth.staging.globuscs.info",preview:"auth.preview.globus.org"};var _={};u(_,{HOSTS:()=>J,ID:()=>s});var s="TRANSFER",J={sandbox:"transfer.sandbox.globuscs.info",production:"transfer.api.globusonline.org",staging:"transfer.api.staging.globuscs.info",integration:"transfer.api.integration.globuscs.info",test:"transfer.api.test.globuscs.info",preview:"transfer.api.preview.globus.org"};var D=class extends Error{constructor(r,o){super();this.name="EnvironmentConfigurationError";this.message=`Invalid configuration value provided for ${r} (${o}).`}};function _e(){return typeof window!="undefined"?window:process}function De(t){return typeof window==typeof t}function A(t,e=void 0){let r=_e(),o;return De(r)?o=r:o=r.env,Object.prototype.hasOwnProperty.call(o,t)?o[t]:e}var oe={PRODUCTION:"production",PREVIEW:"preview",STAGING:"staging",SANDBOX:"sandbox",INTEGRATION:"integration",TEST:"test"};function ne(){let t=A("GLOBUS_SDK_ENVIRONMENT",oe.PRODUCTION);if(!Object.values(oe).includes(t))throw new D("GLOBUS_SDK_ENVIRONMENT",t);return t}var Qe={[m]:m,[s]:s},ie={[m]:Y,[s]:J};function Ae(){return A("GLOBUS")||{}}function se(t){return Ae()[t]}function Ne(t,e){return ie[t][e]}function ke(t,e="",r="production"){let o=A(`GLOBUS_SDK_SERVICE_URL_${t}`,"https://"+Ne(t,r));return new URL(e,o)}function a(t,e,r){let o=ke(t,e,ne());if(r&&r.search){let n=new URLSearchParams;Object.keys(r.search).forEach(R=>{var x;n.append(R,(x=r.search)==null?void 0:x[R].toString())}),o.search=n.toString()}return o.toString()}var we=I;function $(){return a(m,"/v2/oauth2/authorize")}function W(){return a(m,"/v2/oauth2/token")}var l,k=class{constructor(){f(this,l,{})}get(e){return p(this,l)[e]}set(e,r){p(this,l)[e]=r}remove(e){delete p(this,l)[e]}clear(){d(this,l,{})}};l=new WeakMap;var w=class{get(e){let r=localStorage.getItem(e);return r!==null?JSON.parse(r):null}set(e,r){localStorage.setItem(e,JSON.stringify(r))}remove(e){localStorage.removeItem(e)}clear(){localStorage.clear()}};var v;function ae(t="memory"){if(!v){let e;t==="localStorage"?e=w:t==="memory"?e=k:e=t,v=new e}return v}function C(){if(!v)throw Error("You must create a storage system.");return v}function Ce(t){let e=t;return!!(e.token_type&&e.access_token)}function ce(t){t.scope.split(" ").forEach(e=>{C().set(e,t)})}function pe(t){ce(t),"other_tokens"in t&&t.other_tokens.forEach(ce)}function O(t){let e=C().get(t);return!e||!Ce(e)?null:`${e.token_type} ${e.access_token}`}function ue(){C().clear()}var Oe,h,y,E,P,me,U,ge,b=class{constructor(e){f(this,P);f(this,U);f(this,h,void 0);f(this,y,void 0);f(this,E,void 0);Oe=ae("localStorage"),d(this,y,i({client_id:se("CLIENT_ID"),authorization_endpoint:$(),token_endpoint:W()},e)),d(this,h,q(this,P,me).call(this))}reset(){q(this,U,ge).call(this),ue()}redirect(){this.reset(),window.location.replace(p(this,h).authorizeUrl())}handleCodeRedirect(){return re(this,arguments,function*(e={removeStateAndReplaceLocation:!0}){let r=new URL(window.location.href),o=new URLSearchParams(r.search);if(!o.get("code"))return;let n=yield p(this,h).exchangeForAccessToken(r.toString());d(this,E,n),pe(p(this,E)),e.removeStateAndReplaceLocation&&(o.delete("code"),o.delete("state"),r.search=o.toString(),window.location.replace(r))})}hasToken(){return p(this,y).requested_scopes.split(" ").every(e=>!!O(e))}revoke(){this.reset()}};h=new WeakMap,y=new WeakMap,E=new WeakMap,P=new WeakSet,me=function(){return new fe.default(p(this,y))},U=new WeakSet,ge=function(){sessionStorage.removeItem("pkce_state"),sessionStorage.removeItem("pkce_code_verifier")};function Pe(t){return new b(t)}function Ue(t){return new b(t)}var K={};u(K,{CONFIG:()=>qe,endpoint:()=>H,endpointSearch:()=>Ye,fileOperations:()=>L,taskSubmission:()=>F});var le=te(require("cross-fetch")),Se=le.default;function c(t,e,r={}){let o=r.headers||{};if(!(o!=null&&o.Authorization)){let n=O(t);n&&(o.Authorization=n)}return Se(e,Z(i({},r),{headers:o}))}function j(t,e){var r;return c("urn:globus:auth:scope:transfer.api.globus.org:all",a(s,"/v0.10/endpoint_search",{search:t}),(r=e==null?void 0:e.fetch)==null?void 0:r.options)}var L={};u(L,{ls:()=>Ge,mkdir:()=>Le,rename:()=>Fe,symlink:()=>He});function S(t){return t==="get"?{}:{"Content-Type":"application/json"}}function Ge(t,e,r){var o;return c("urn:globus:auth:scope:transfer.api.globus.org:all",a(s,`/v0.10/operation/endpoint/${t}/ls`,{search:e}),(o=r==null?void 0:r.fetch)==null?void 0:o.options)}var Le=function(t,e,r){var n;let o=i({DATA_TYPE:"mkdir"},e==null?void 0:e.payload);return c("urn:globus:auth:scope:transfer.api.globus.org:all",a(s,`/v0.10/operation/endpoint/${t}/mkdir`),i({method:"post",body:JSON.stringify(o),headers:S("post")},(n=r==null?void 0:r.fetch)==null?void 0:n.options))},Fe=function(t,e,r){var n;let o=i({DATA_TYPE:"rename"},e==null?void 0:e.payload);return c("urn:globus:auth:scope:transfer.api.globus.org:all",a(s,`/v0.10/operation/endpoint/${t}/rename`),i({method:"post",body:JSON.stringify(o),headers:S("post")},(n=r==null?void 0:r.fetch)==null?void 0:n.options))},He=function(t,e,r){var n;let o=i({DATA_TYPE:"symlink"},e==null?void 0:e.payload);return c("urn:globus:auth:scope:transfer.api.globus.org:all",a(s,`/v0.10/operation/endpoint/${t}/symlink`),i({method:"post",body:JSON.stringify(o),headers:S("post")},(n=r==null?void 0:r.fetch)==null?void 0:n.options))};var F={};u(F,{submissionId:()=>Ve,submitDelete:()=>Ke,submitTransfer:()=>Me});var Ke=function(t,e){var o;let r=i({DATA_TYPE:"delete"},t==null?void 0:t.payload);return c("urn:globus:auth:scope:transfer.api.globus.org:all",a(s,"/v0.10/delete"),i({method:"post",body:JSON.stringify(r),headers:S("post")},(o=e==null?void 0:e.fetch)==null?void 0:o.options))},Me=function(t,e){var r;return c("urn:globus:auth:scope:transfer.api.globus.org:all",a(s,"/v0.10/transfer"),i({method:"post",body:JSON.stringify(i({DATA_TYPE:"transfer"},t==null?void 0:t.payload)),headers:S("post")},(r=e==null?void 0:e.fetch)==null?void 0:r.options))};function Ve(t){var e;return c("urn:globus:auth:scope:transfer.api.globus.org:all",a(s,"/v0.10/submission_id"),i({},(e=t==null?void 0:t.fetch)==null?void 0:e.options))}var H={};u(H,{get:()=>Be});var Be=function(t,e,r){var o;return c("urn:globus:auth:scope:transfer.api.globus.org:all",a(s,`/v0.10/endpoint/${t}`),i({},(o=r==null?void 0:r.fetch)==null?void 0:o.options))};var qe=_,Ye=j;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var Q=Object.defineProperty,me=Object.defineProperties;var ge=Object.getOwnPropertyDescriptors;var j=Object.getOwnPropertySymbols;var le=Object.prototype.hasOwnProperty,Se=Object.prototype.propertyIsEnumerable;var z=(t,e,r)=>e in t?Q(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,i=(t,e)=>{for(var r in e||={})le.call(e,r)&&z(t,r,e[r]);if(j)for(var r of j(e))Se.call(e,r)&&z(t,r,e[r]);return t},X=(t,e)=>me(t,ge(e));var u=(t,e)=>{for(var r in e)Q(t,r,{get:e[r],enumerable:!0})};var H=(t,e,r)=>{if(!e.has(t))throw TypeError("Cannot "+r)};var p=(t,e,r)=>(H(t,e,"read from private field"),r?r.call(t):e.get(t)),f=(t,e,r)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,r)},d=(t,e,r,o)=>(H(t,e,"write to private field"),o?o.call(t,r):e.set(t,r),r);var K=(t,e,r)=>(H(t,e,"access private method"),r);var Z=(t,e,r)=>new Promise((o,n)=>{var E=g=>{try{L(r.next(g))}catch(F){n(F)}},R=g=>{try{L(r.throw(g))}catch(F){n(F)}},L=g=>g.done?o(g.value):Promise.resolve(g.value).then(E,R);L((r=r.apply(t,e)).next())});function He(){return"@globus/sdk"}var J={};u(J,{PKCEAuthorization:()=>v,incremental:()=>_e,pkce:()=>Ie});import Re from"js-pkce";var Y={};u(Y,{CONFIG:()=>be,getAuthorizationEndpoint:()=>B,getTokenEndpoint:()=>q});var x={};u(x,{HOSTS:()=>M,ID:()=>m});var m="AUTH",M={integration:"auth.integration.globuscs.info",sandbox:"auth.sandbox.globuscs.info",production:"auth.globus.org",test:"auth.test.globuscs.info",staging:"auth.staging.globuscs.info",preview:"auth.preview.globus.org"};var I={};u(I,{HOSTS:()=>V,ID:()=>s});var s="TRANSFER",V={sandbox:"transfer.sandbox.globuscs.info",production:"transfer.api.globusonline.org",staging:"transfer.api.staging.globuscs.info",integration:"transfer.api.integration.globuscs.info",test:"transfer.api.test.globuscs.info",preview:"transfer.api.preview.globus.org"};var _=class extends Error{constructor(r,o){super();this.name="EnvironmentConfigurationError";this.message=`Invalid configuration value provided for ${r} (${o}).`}};function de(){return typeof window!="undefined"?window:process}function he(t){return typeof window==typeof t}function D(t,e=void 0){let r=de(),o;return he(r)?o=r:o=r.env,Object.prototype.hasOwnProperty.call(o,t)?o[t]:e}var ee={PRODUCTION:"production",PREVIEW:"preview",STAGING:"staging",SANDBOX:"sandbox",INTEGRATION:"integration",TEST:"test"};function te(){let t=D("GLOBUS_SDK_ENVIRONMENT",ee.PRODUCTION);if(!Object.values(ee).includes(t))throw new _("GLOBUS_SDK_ENVIRONMENT",t);return t}var Be={[m]:m,[s]:s},re={[m]:M,[s]:V};function ye(){return D("GLOBUS")||{}}function oe(t){return ye()[t]}function Te(t,e){return re[t][e]}function ve(t,e="",r="production"){let o=D(`GLOBUS_SDK_SERVICE_URL_${t}`,"https://"+Te(t,r));return new URL(e,o)}function a(t,e,r){let o=ve(t,e,te());if(r&&r.search){let n=new URLSearchParams;Object.keys(r.search).forEach(E=>{var R;n.append(E,(R=r.search)==null?void 0:R[E].toString())}),o.search=n.toString()}return o.toString()}var be=x;function B(){return a(m,"/v2/oauth2/authorize")}function q(){return a(m,"/v2/oauth2/token")}var l,A=class{constructor(){f(this,l,{})}get(e){return p(this,l)[e]}set(e,r){p(this,l)[e]=r}remove(e){delete p(this,l)[e]}clear(){d(this,l,{})}};l=new WeakMap;var N=class{get(e){let r=localStorage.getItem(e);return r!==null?JSON.parse(r):null}set(e,r){localStorage.setItem(e,JSON.stringify(r))}remove(e){localStorage.removeItem(e)}clear(){localStorage.clear()}};var T;function ne(t="memory"){if(!T){let e;t==="localStorage"?e=N:t==="memory"?e=A:e=t,T=new e}return T}function k(){if(!T)throw Error("You must create a storage system.");return T}function Ee(t){let e=t;return!!(e.token_type&&e.access_token)}function ie(t){t.scope.split(" ").forEach(e=>{k().set(e,t)})}function se(t){ie(t),"other_tokens"in t&&t.other_tokens.forEach(ie)}function w(t){let e=k().get(t);return!e||!Ee(e)?null:`${e.token_type} ${e.access_token}`}function ae(){k().clear()}var xe,h,y,b,C,ce,O,pe,v=class{constructor(e){f(this,C);f(this,O);f(this,h,void 0);f(this,y,void 0);f(this,b,void 0);xe=ne("localStorage"),d(this,y,i({client_id:oe("CLIENT_ID"),authorization_endpoint:B(),token_endpoint:q()},e)),d(this,h,K(this,C,ce).call(this))}reset(){K(this,O,pe).call(this),ae()}redirect(){this.reset(),window.location.replace(p(this,h).authorizeUrl())}handleCodeRedirect(){return Z(this,arguments,function*(e={removeStateAndReplaceLocation:!0}){let r=new URL(window.location.href),o=new URLSearchParams(r.search);if(!o.get("code"))return;let n=yield p(this,h).exchangeForAccessToken(r.toString());d(this,b,n),se(p(this,b)),e.removeStateAndReplaceLocation&&(o.delete("code"),o.delete("state"),r.search=o.toString(),window.location.replace(r))})}hasToken(){return p(this,y).requested_scopes.split(" ").every(e=>!!w(e))}revoke(){this.reset()}};h=new WeakMap,y=new WeakMap,b=new WeakMap,C=new WeakSet,ce=function(){return new Re(p(this,y))},O=new WeakSet,pe=function(){sessionStorage.removeItem("pkce_state"),sessionStorage.removeItem("pkce_code_verifier")};function Ie(t){return new v(t)}function _e(t){return new v(t)}var W={};u(W,{CONFIG:()=>Ge,endpoint:()=>G,endpointSearch:()=>Le,fileOperations:()=>P,taskSubmission:()=>U});import De from"cross-fetch";var ue=De;function c(t,e,r={}){let o=r.headers||{};if(!(o!=null&&o.Authorization)){let n=w(t);n&&(o.Authorization=n)}return ue(e,X(i({},r),{headers:o}))}function $(t,e){var r;return c("urn:globus:auth:scope:transfer.api.globus.org:all",a(s,"/v0.10/endpoint_search",{search:t}),(r=e==null?void 0:e.fetch)==null?void 0:r.options)}var P={};u(P,{ls:()=>Ae,mkdir:()=>Ne,rename:()=>ke,symlink:()=>we});function S(t){return t==="get"?{}:{"Content-Type":"application/json"}}function Ae(t,e,r){var o;return c("urn:globus:auth:scope:transfer.api.globus.org:all",a(s,`/v0.10/operation/endpoint/${t}/ls`,{search:e}),(o=r==null?void 0:r.fetch)==null?void 0:o.options)}var Ne=function(t,e,r){var n;let o=i({DATA_TYPE:"mkdir"},e==null?void 0:e.payload);return c("urn:globus:auth:scope:transfer.api.globus.org:all",a(s,`/v0.10/operation/endpoint/${t}/mkdir`),i({method:"post",body:JSON.stringify(o),headers:S("post")},(n=r==null?void 0:r.fetch)==null?void 0:n.options))},ke=function(t,e,r){var n;let o=i({DATA_TYPE:"rename"},e==null?void 0:e.payload);return c("urn:globus:auth:scope:transfer.api.globus.org:all",a(s,`/v0.10/operation/endpoint/${t}/rename`),i({method:"post",body:JSON.stringify(o),headers:S("post")},(n=r==null?void 0:r.fetch)==null?void 0:n.options))},we=function(t,e,r){var n;let o=i({DATA_TYPE:"symlink"},e==null?void 0:e.payload);return c("urn:globus:auth:scope:transfer.api.globus.org:all",a(s,`/v0.10/operation/endpoint/${t}/symlink`),i({method:"post",body:JSON.stringify(o),headers:S("post")},(n=r==null?void 0:r.fetch)==null?void 0:n.options))};var U={};u(U,{submissionId:()=>Pe,submitDelete:()=>Ce,submitTransfer:()=>Oe});var Ce=function(t,e){var o;let r=i({DATA_TYPE:"delete"},t==null?void 0:t.payload);return c("urn:globus:auth:scope:transfer.api.globus.org:all",a(s,"/v0.10/delete"),i({method:"post",body:JSON.stringify(r),headers:S("post")},(o=e==null?void 0:e.fetch)==null?void 0:o.options))},Oe=function(t,e){var r;return c("urn:globus:auth:scope:transfer.api.globus.org:all",a(s,"/v0.10/transfer"),i({method:"post",body:JSON.stringify(i({DATA_TYPE:"transfer"},t==null?void 0:t.payload)),headers:S("post")},(r=e==null?void 0:e.fetch)==null?void 0:r.options))};function Pe(t){var e;return c("urn:globus:auth:scope:transfer.api.globus.org:all",a(s,"/v0.10/submission_id"),i({},(e=t==null?void 0:t.fetch)==null?void 0:e.options))}var G={};u(G,{get:()=>Ue});var Ue=function(t,e,r){var o;return c("urn:globus:auth:scope:transfer.api.globus.org:all",a(s,`/v0.10/endpoint/${t}`),i({},(o=r==null?void 0:r.fetch)==null?void 0:o.options))};var Ge=I,Le=$;export{Y as auth,J as authorization,He as sdk,W as transfer};
|
package/dist/browser.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var globus=(()=>{var ye=Object.create;var T=Object.defineProperty,Te=Object.defineProperties,ve=Object.getOwnPropertyDescriptor,be=Object.getOwnPropertyDescriptors,Ee=Object.getOwnPropertyNames,z=Object.getOwnPropertySymbols,Re=Object.getPrototypeOf,X=Object.prototype.hasOwnProperty,xe=Object.prototype.propertyIsEnumerable;var Q=(t,e,r)=>e in t?T(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,i=(t,e)=>{for(var r in e||={})X.call(e,r)&&Q(t,r,e[r]);if(z)for(var r of z(e))xe.call(e,r)&&Q(t,r,e[r]);return t},Z=(t,e)=>Te(t,be(e));var ee=(t=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(t,{get:(e,r)=>(typeof require<"u"?require:e)[r]}):t)(function(t){if(typeof require<"u")return require.apply(this,arguments);throw new Error('Dynamic require of "'+t+'" is not supported')});var u=(t,e)=>{for(var r in e)T(t,r,{get:e[r],enumerable:!0})},te=(t,e,r,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of Ee(e))!X.call(t,n)&&n!==r&&T(t,n,{get:()=>e[n],enumerable:!(o=ve(e,n))||o.enumerable});return t};var re=(t,e,r)=>(r=t!=null?ye(Re(t)):{},te(e||!t||!t.__esModule?T(r,"default",{value:t,enumerable:!0}):r,t)),Ie=t=>te(T({},"__esModule",{value:!0}),t);var B=(t,e,r)=>{if(!e.has(t))throw TypeError("Cannot "+r)};var p=(t,e,r)=>(B(t,e,"read from private field"),r?r.call(t):e.get(t)),f=(t,e,r)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,r)},d=(t,e,r,o)=>(B(t,e,"write to private field"),o?o.call(t,r):e.set(t,r),r);var q=(t,e,r)=>(B(t,e,"access private method"),r);var oe=(t,e,r)=>new Promise((o,n)=>{var R=g=>{try{M(r.next(g))}catch(V){n(V)}},x=g=>{try{M(r.throw(g))}catch(V){n(V)}},M=g=>g.done?o(g.value):Promise.resolve(g.value).then(R,x);M((r=r.apply(t,e)).next())});var $e={};u($e,{auth:()=>N,authorization:()=>G,sdk:()=>_e,transfer:()=>K});function _e(){return"@globus/sdk"}var G={};u(G,{PKCEAuthorization:()=>b,incremental:()=>Ge,pkce:()=>Ue});var me=re(ee("js-pkce"));var N={};u(N,{CONFIG:()=>Ce,getAuthorizationEndpoint:()=>$,getTokenEndpoint:()=>W});var I={};u(I,{HOSTS:()=>Y,ID:()=>m});var m="AUTH",Y={integration:"auth.integration.globuscs.info",sandbox:"auth.sandbox.globuscs.info",production:"auth.globus.org",test:"auth.test.globuscs.info",staging:"auth.staging.globuscs.info",preview:"auth.preview.globus.org"};var _={};u(_,{HOSTS:()=>J,ID:()=>s});var s="TRANSFER",J={sandbox:"transfer.sandbox.globuscs.info",production:"transfer.api.globusonline.org",staging:"transfer.api.staging.globuscs.info",integration:"transfer.api.integration.globuscs.info",test:"transfer.api.test.globuscs.info",preview:"transfer.api.preview.globus.org"};var D=class extends Error{constructor(r,o){super();this.name="EnvironmentConfigurationError";this.message=`Invalid configuration value provided for ${r} (${o}).`}};function De(){return typeof window!="undefined"?window:process}function Ae(t){return typeof window==typeof t}function A(t,e=void 0){let r=De(),o;return Ae(r)?o=r:o=r.env,Object.prototype.hasOwnProperty.call(o,t)?o[t]:e}var ne={PRODUCTION:"production",PREVIEW:"preview",STAGING:"staging",SANDBOX:"sandbox",INTEGRATION:"integration",TEST:"test"};function ie(){let t=A("GLOBUS_SDK_ENVIRONMENT",ne.PRODUCTION);if(!Object.values(ne).includes(t))throw new D("GLOBUS_SDK_ENVIRONMENT",t);return t}var Xe={[m]:m,[s]:s},se={[m]:Y,[s]:J};function Ne(){return A("GLOBUS")||{}}function ae(t){return Ne()[t]}function ke(t,e){return se[t][e]}function we(t,e="",r="production"){let o=A(`GLOBUS_SDK_SERVICE_URL_${t}`,"https://"+ke(t,r));return new URL(e,o)}function a(t,e,r){let o=we(t,e,ie());if(r&&r.search){let n=new URLSearchParams;Object.keys(r.search).forEach(R=>{var x;n.append(R,(x=r.search)==null?void 0:x[R].toString())}),o.search=n.toString()}return o.toString()}var Ce=I;function $(){return a(m,"/v2/oauth2/authorize")}function W(){return a(m,"/v2/oauth2/token")}var l,k=class{constructor(){f(this,l,{})}get(e){return p(this,l)[e]}set(e,r){p(this,l)[e]=r}remove(e){delete p(this,l)[e]}clear(){d(this,l,{})}};l=new WeakMap;var w=class{get(e){let r=localStorage.getItem(e);return r!==null?JSON.parse(r):null}set(e,r){localStorage.setItem(e,JSON.stringify(r))}remove(e){localStorage.removeItem(e)}clear(){localStorage.clear()}};var v;function ce(t="memory"){if(!v){let e;t==="localStorage"?e=w:t==="memory"?e=k:e=t,v=new e}return v}function C(){if(!v)throw Error("You must create a storage system.");return v}function Oe(t){let e=t;return!!(e.token_type&&e.access_token)}function pe(t){t.scope.split(" ").forEach(e=>{C().set(e,t)})}function ue(t){pe(t),"other_tokens"in t&&t.other_tokens.forEach(pe)}function O(t){let e=C().get(t);return!e||!Oe(e)?null:`${e.token_type} ${e.access_token}`}function fe(){C().clear()}var Pe,h,y,E,P,ge,U,le,b=class{constructor(e){f(this,P);f(this,U);f(this,h,void 0);f(this,y,void 0);f(this,E,void 0);Pe=ce("localStorage"),d(this,y,i({client_id:ae("CLIENT_ID"),authorization_endpoint:$(),token_endpoint:W()},e)),d(this,h,q(this,P,ge).call(this))}reset(){q(this,U,le).call(this),fe()}redirect(){this.reset(),window.location.replace(p(this,h).authorizeUrl())}handleCodeRedirect(){return oe(this,arguments,function*(e={removeStateAndReplaceLocation:!0}){let r=new URL(window.location.href),o=new URLSearchParams(r.search);if(!o.get("code"))return;let n=yield p(this,h).exchangeForAccessToken(r.toString());d(this,E,n),ue(p(this,E)),e.removeStateAndReplaceLocation&&(o.delete("code"),o.delete("state"),r.search=o.toString(),window.location.replace(r))})}hasToken(){return p(this,y).requested_scopes.split(" ").every(e=>!!O(e))}revoke(){this.reset()}};h=new WeakMap,y=new WeakMap,E=new WeakMap,P=new WeakSet,ge=function(){return new me.default(p(this,y))},U=new WeakSet,le=function(){sessionStorage.removeItem("pkce_state"),sessionStorage.removeItem("pkce_code_verifier")};function Ue(t){return new b(t)}function Ge(t){return new b(t)}var K={};u(K,{CONFIG:()=>Ye,endpoint:()=>H,endpointSearch:()=>Je,fileOperations:()=>L,taskSubmission:()=>F});var Se=re(ee("cross-fetch")),de=Se.default;function c(t,e,r={}){let o=r.headers||{};if(!(o!=null&&o.Authorization)){let n=O(t);n&&(o.Authorization=n)}return de(e,Z(i({},r),{headers:o}))}function j(t,e){var r;return c("urn:globus:auth:scope:transfer.api.globus.org:all",a(s,"/v0.10/endpoint_search",{search:t}),(r=e==null?void 0:e.fetch)==null?void 0:r.options)}var L={};u(L,{ls:()=>Le,mkdir:()=>Fe,rename:()=>He,symlink:()=>Ke});function S(t){return t==="get"?{}:{"Content-Type":"application/json"}}function Le(t,e,r){var o;return c("urn:globus:auth:scope:transfer.api.globus.org:all",a(s,`/v0.10/operation/endpoint/${t}/ls`,{search:e}),(o=r==null?void 0:r.fetch)==null?void 0:o.options)}var Fe=function(t,e,r){var n;let o=i({DATA_TYPE:"mkdir"},e==null?void 0:e.payload);return c("urn:globus:auth:scope:transfer.api.globus.org:all",a(s,`/v0.10/operation/endpoint/${t}/mkdir`),i({method:"post",body:JSON.stringify(o),headers:S("post")},(n=r==null?void 0:r.fetch)==null?void 0:n.options))},He=function(t,e,r){var n;let o=i({DATA_TYPE:"rename"},e==null?void 0:e.payload);return c("urn:globus:auth:scope:transfer.api.globus.org:all",a(s,`/v0.10/operation/endpoint/${t}/rename`),i({method:"post",body:JSON.stringify(o),headers:S("post")},(n=r==null?void 0:r.fetch)==null?void 0:n.options))},Ke=function(t,e,r){var n;let o=i({DATA_TYPE:"symlink"},e==null?void 0:e.payload);return c("urn:globus:auth:scope:transfer.api.globus.org:all",a(s,`/v0.10/operation/endpoint/${t}/symlink`),i({method:"post",body:JSON.stringify(o),headers:S("post")},(n=r==null?void 0:r.fetch)==null?void 0:n.options))};var F={};u(F,{submissionId:()=>Be,submitDelete:()=>Me,submitTransfer:()=>Ve});var Me=function(t,e){var o;let r=i({DATA_TYPE:"delete"},t==null?void 0:t.payload);return c("urn:globus:auth:scope:transfer.api.globus.org:all",a(s,"/v0.10/delete"),i({method:"post",body:JSON.stringify(r),headers:S("post")},(o=e==null?void 0:e.fetch)==null?void 0:o.options))},Ve=function(t,e){var r;return c("urn:globus:auth:scope:transfer.api.globus.org:all",a(s,"/v0.10/transfer"),i({method:"post",body:JSON.stringify(i({DATA_TYPE:"transfer"},t==null?void 0:t.payload)),headers:S("post")},(r=e==null?void 0:e.fetch)==null?void 0:r.options))};function Be(t){var e;return c("urn:globus:auth:scope:transfer.api.globus.org:all",a(s,"/v0.10/submission_id"),i({},(e=t==null?void 0:t.fetch)==null?void 0:e.options))}var H={};u(H,{get:()=>qe});var qe=function(t,e,r){var o;return c("urn:globus:auth:scope:transfer.api.globus.org:all",a(s,`/v0.10/endpoint/${t}`),i({},(o=r==null?void 0:r.fetch)==null?void 0:o.options))};var Ye=_,Je=j;return Ie($e);})();
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * as authorization from
|
|
3
|
-
export * as auth from
|
|
4
|
-
export * as transfer from
|
|
1
|
+
export * from "./lib/sdk";
|
|
2
|
+
export * as authorization from "./lib/core/authorization";
|
|
3
|
+
export * as auth from "./lib/services/auth";
|
|
4
|
+
export * as transfer from "./lib/services/transfer";
|
|
5
|
+
export * as search from "./lib/services/search";
|
|
5
6
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,OAAO,KAAK,aAAa,MAAM,0BAA0B,CAAC;AAC1D,OAAO,KAAK,IAAI,MAAM,qBAAqB,CAAC;AAC5C,OAAO,KAAK,QAAQ,MAAM,yBAAyB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,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"}
|
package/dist/common/src/index.js
CHANGED
|
@@ -14,9 +14,10 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.transfer = exports.auth = exports.authorization = void 0;
|
|
17
|
+
exports.search = exports.transfer = exports.auth = exports.authorization = void 0;
|
|
18
18
|
__exportStar(require("./lib/sdk"), exports);
|
|
19
19
|
exports.authorization = require("./lib/core/authorization");
|
|
20
20
|
exports.auth = require("./lib/services/auth");
|
|
21
21
|
exports.transfer = require("./lib/services/transfer");
|
|
22
|
+
exports.search = require("./lib/services/search");
|
|
22
23
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,4CAA0B;AAC1B,4DAA0D;AAC1D,8CAA4C;AAC5C,sDAAoD"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,4CAA0B;AAC1B,4DAA0D;AAC1D,8CAA4C;AAC5C,sDAAoD;AACpD,kDAAgD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"authorization.d.ts","sourceRoot":"","sources":["../../../../../src/lib/core/authorization.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"authorization.d.ts","sourceRoot":"","sources":["../../../../../src/lib/core/authorization.ts"],"names":[],"mappings":"AAEA,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,qBAAa,iBAAiB;;gBAKhB,aAAa,EAAE,iBAAiB;IA2B5C,KAAK;IAKL,QAAQ;IAKF,kBAAkB,CAAC,OAAO;;KAA0C;IAiB1E,QAAQ,IAAI,OAAO;IAMnB,MAAM;CAGP;AAED,wBAAgB,IAAI,CAAC,aAAa,EAAE,iBAAiB,qBAEpD;AAED,wBAAgB,WAAW,CAAC,aAAa,EAAE,iBAAiB,qBAE3D"}
|
|
@@ -24,7 +24,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
24
24
|
exports.incremental = exports.pkce = exports.PKCEAuthorization = void 0;
|
|
25
25
|
const js_pkce_1 = require("js-pkce");
|
|
26
26
|
const auth_1 = require("../services/auth");
|
|
27
|
-
const global_1 = require("./global");
|
|
28
27
|
const consent_1 = require("./consent");
|
|
29
28
|
const storage_1 = require("./storage");
|
|
30
29
|
let storage;
|
|
@@ -35,7 +34,10 @@ class PKCEAuthorization {
|
|
|
35
34
|
_PKCEAuthorization_configuration.set(this, void 0);
|
|
36
35
|
_PKCEAuthorization_response.set(this, void 0);
|
|
37
36
|
storage = (0, storage_1.createStorage)("localStorage");
|
|
38
|
-
|
|
37
|
+
if (!configuration.client_id) {
|
|
38
|
+
throw new Error("You must provide a `client_id`.");
|
|
39
|
+
}
|
|
40
|
+
__classPrivateFieldSet(this, _PKCEAuthorization_configuration, Object.assign({ client_id: configuration.client_id, authorization_endpoint: (0, auth_1.getAuthorizationEndpoint)(), token_endpoint: (0, auth_1.getTokenEndpoint)() }, configuration), "f");
|
|
39
41
|
__classPrivateFieldSet(this, _PKCEAuthorization_pkce, __classPrivateFieldGet(this, _PKCEAuthorization_instances, "m", _PKCEAuthorization_createPKCEInstance).call(this), "f");
|
|
40
42
|
}
|
|
41
43
|
reset() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"authorization.js","sourceRoot":"","sources":["../../../../../src/lib/core/authorization.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAA,qCAA2B;AAI3B,2CAA8E;AAC9E,
|
|
1
|
+
{"version":3,"file":"authorization.js","sourceRoot":"","sources":["../../../../../src/lib/core/authorization.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
import * as AUTH from "../services/auth/config";
|
|
2
|
-
import * as TRANSFER from "../services/transfer/config";
|
|
3
|
-
export declare function env(key: string, fallback?: any): any;
|
|
4
1
|
/**
|
|
5
2
|
* Handlers for: GLOBUS_SDK_ENVIRONMENT
|
|
6
3
|
*/
|
|
@@ -12,11 +9,16 @@ export declare const ENVIRONMENTS: {
|
|
|
12
9
|
readonly INTEGRATION: "integration";
|
|
13
10
|
readonly TEST: "test";
|
|
14
11
|
};
|
|
15
|
-
export type Environment = typeof ENVIRONMENTS[keyof typeof ENVIRONMENTS];
|
|
12
|
+
export type Environment = (typeof ENVIRONMENTS)[keyof typeof ENVIRONMENTS];
|
|
16
13
|
export declare function getEnvironment(): Environment;
|
|
17
|
-
export declare const SERVICES:
|
|
14
|
+
export declare const SERVICES: {
|
|
15
|
+
AUTH: string;
|
|
16
|
+
TRANSFER: string;
|
|
17
|
+
FLOWS: string;
|
|
18
|
+
SEARCH: string;
|
|
19
|
+
};
|
|
20
|
+
export type Service = keyof typeof SERVICES;
|
|
18
21
|
export declare const SERVICE_HOSTS: Record<Service, Partial<Record<Environment, string>>>;
|
|
19
|
-
export type Service = typeof AUTH.ID | typeof TRANSFER.ID;
|
|
20
22
|
/**
|
|
21
23
|
* Handlers for: GLOBUS_SDK_VERIFY_SSL
|
|
22
24
|
* Since disabling SSL is at least not-recommended, we consider
|
|
@@ -31,5 +33,5 @@ export declare function getVerifySSL(): boolean;
|
|
|
31
33
|
* Handlers for: GLOBUS_SDK_HTTP_TIMEOUT
|
|
32
34
|
*/
|
|
33
35
|
export declare function getHttpTimeout(): number | null;
|
|
34
|
-
export declare function
|
|
36
|
+
export declare function getServiceBaseUrl(service: Service, environment?: Environment): `https://${string}` | undefined;
|
|
35
37
|
//# sourceMappingURL=global.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"global.d.ts","sourceRoot":"","sources":["../../../../../src/lib/core/global.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"global.d.ts","sourceRoot":"","sources":["../../../../../src/lib/core/global.ts"],"names":[],"mappings":"AAgCA;;GAEG;AACH,eAAO,MAAM,YAAY;;;;;;;CAOf,CAAC;AAEX,MAAM,MAAM,WAAW,GAAG,CAAC,OAAO,YAAY,CAAC,CAAC,MAAM,OAAO,YAAY,CAAC,CAAC;AAE3E,wBAAgB,cAAc,IAAI,WAAW,CAY5C;AAED,eAAO,MAAM,QAAQ;;;;;CAKpB,CAAC;AAEF,MAAM,MAAM,OAAO,GAAG,MAAM,OAAO,QAAQ,CAAC;AAE5C,eAAO,MAAM,aAAa,EAAE,MAAM,CAChC,OAAO,EACP,OAAO,CAAC,MAAM,CAAC,WAAW,EAAE,MAAM,CAAC,CAAC,CAMrC,CAAC;AAEF;;;;;;;;GAQG;AACH,wBAAgB,YAAY,IAAI,OAAO,CAUtC;AAED;;GAEG;AACH,wBAAgB,cAAc,kBAM7B;AAMD,wBAAgB,iBAAiB,CAC/B,OAAO,EAAE,OAAO,EAChB,WAAW,GAAE,WAA8B,mCAO5C"}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.getServiceBaseUrl = exports.getHttpTimeout = exports.getVerifySSL = exports.SERVICE_HOSTS = exports.SERVICES = exports.getEnvironment = exports.ENVIRONMENTS = void 0;
|
|
4
4
|
const AUTH = require("../services/auth/config");
|
|
5
5
|
const TRANSFER = require("../services/transfer/config");
|
|
6
|
+
const FLOWS = require("../services/flows/config");
|
|
7
|
+
const SEARCH = require("../services/search/config");
|
|
6
8
|
const errors_1 = require("./errors");
|
|
7
9
|
function getRuntime() {
|
|
8
10
|
return typeof window !== "undefined" ? window : process;
|
|
@@ -19,13 +21,11 @@ function env(key, fallback = undefined) {
|
|
|
19
21
|
else {
|
|
20
22
|
envConfiguration = runtime.env;
|
|
21
23
|
}
|
|
22
|
-
if (
|
|
23
|
-
// @ts-ignore
|
|
24
|
+
if (key in envConfiguration) {
|
|
24
25
|
return envConfiguration[key];
|
|
25
26
|
}
|
|
26
27
|
return fallback;
|
|
27
28
|
}
|
|
28
|
-
exports.env = env;
|
|
29
29
|
/**
|
|
30
30
|
* Handlers for: GLOBUS_SDK_ENVIRONMENT
|
|
31
31
|
*/
|
|
@@ -38,9 +38,9 @@ exports.ENVIRONMENTS = {
|
|
|
38
38
|
TEST: "test",
|
|
39
39
|
};
|
|
40
40
|
function getEnvironment() {
|
|
41
|
-
const environment = env(
|
|
42
|
-
if (!Object.values(exports.ENVIRONMENTS).includes(environment)) {
|
|
43
|
-
throw new errors_1.EnvironmentConfigurationError(
|
|
41
|
+
const environment = env("GLOBUS_SDK_ENVIRONMENT", exports.ENVIRONMENTS.PRODUCTION);
|
|
42
|
+
if (!environment || !Object.values(exports.ENVIRONMENTS).includes(environment)) {
|
|
43
|
+
throw new errors_1.EnvironmentConfigurationError("GLOBUS_SDK_ENVIRONMENT", environment);
|
|
44
44
|
}
|
|
45
45
|
return environment;
|
|
46
46
|
}
|
|
@@ -48,10 +48,14 @@ exports.getEnvironment = getEnvironment;
|
|
|
48
48
|
exports.SERVICES = {
|
|
49
49
|
[AUTH.ID]: AUTH.ID,
|
|
50
50
|
[TRANSFER.ID]: TRANSFER.ID,
|
|
51
|
+
[FLOWS.ID]: FLOWS.ID,
|
|
52
|
+
[SEARCH.ID]: SEARCH.ID,
|
|
51
53
|
};
|
|
52
54
|
exports.SERVICE_HOSTS = {
|
|
53
55
|
[AUTH.ID]: AUTH.HOSTS,
|
|
54
56
|
[TRANSFER.ID]: TRANSFER.HOSTS,
|
|
57
|
+
[FLOWS.ID]: FLOWS.HOSTS,
|
|
58
|
+
[SEARCH.ID]: SEARCH.HOSTS,
|
|
55
59
|
};
|
|
56
60
|
/**
|
|
57
61
|
* Handlers for: GLOBUS_SDK_VERIFY_SSL
|
|
@@ -63,9 +67,9 @@ exports.SERVICE_HOSTS = {
|
|
|
63
67
|
* @see https://github.com/globus/globus-sdk-python/blob/18eced9c12e2ec41745d1be183148845198b999c/src/globus_sdk/config/env_vars.py#L20
|
|
64
68
|
*/
|
|
65
69
|
function getVerifySSL() {
|
|
66
|
-
const verifySSLTemp = env(
|
|
70
|
+
const verifySSLTemp = env("GLOBUS_SDK_VERIFY_SSL", "true").toLowerCase();
|
|
67
71
|
if (["n", "no", "f", "false", "off", "0"].includes(verifySSLTemp)) {
|
|
68
|
-
console.warn(
|
|
72
|
+
console.warn("Setting GLOBUS_SDK_VERIFY_SSL to false is disallowed in the Globus Javascript SDK. It will always true in this context");
|
|
69
73
|
}
|
|
70
74
|
return true;
|
|
71
75
|
}
|
|
@@ -74,18 +78,19 @@ exports.getVerifySSL = getVerifySSL;
|
|
|
74
78
|
* Handlers for: GLOBUS_SDK_HTTP_TIMEOUT
|
|
75
79
|
*/
|
|
76
80
|
function getHttpTimeout() {
|
|
77
|
-
const timeout = Number(env(
|
|
81
|
+
const timeout = Number(env("GLOBUS_SDK_HTTP_TIMEOUT", "60"));
|
|
78
82
|
if (timeout === -1) {
|
|
79
83
|
return null;
|
|
80
84
|
}
|
|
81
85
|
return timeout;
|
|
82
86
|
}
|
|
83
87
|
exports.getHttpTimeout = getHttpTimeout;
|
|
84
|
-
function
|
|
85
|
-
return
|
|
88
|
+
function getServiceHost(service, environment) {
|
|
89
|
+
return exports.SERVICE_HOSTS[service][environment];
|
|
86
90
|
}
|
|
87
|
-
function
|
|
88
|
-
|
|
91
|
+
function getServiceBaseUrl(service, environment = getEnvironment()) {
|
|
92
|
+
const host = getServiceHost(service, environment);
|
|
93
|
+
return env(`GLOBUS_SDK_SERVICE_URL_${service}`, host ? `https://${host}` : undefined);
|
|
89
94
|
}
|
|
90
|
-
exports.
|
|
95
|
+
exports.getServiceBaseUrl = getServiceBaseUrl;
|
|
91
96
|
//# sourceMappingURL=global.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"global.js","sourceRoot":"","sources":["../../../../../src/lib/core/global.ts"],"names":[],"mappings":";;;AAAA,gDAAgD;AAChD,wDAAwD;AACxD,qCAAyD;AAEzD,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,
|
|
1
|
+
{"version":3,"file":"global.js","sourceRoot":"","sources":["../../../../../src/lib/core/global.ts"],"names":[],"mappings":";;;AAAA,gDAAgD;AAChD,wDAAwD;AACxD,kDAAkD;AAClD,oDAAoD;AAEpD,qCAAyD;AAEzD,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,CACV,GAAW,EACX,WAA0B,SAAS;IAEnC,MAAM,OAAO,GAAG,UAAU,EAAE,CAAC;IAC7B,IAAI,gBAAgB,CAAC;IACrB,IAAI,SAAS,CAAC,OAAO,CAAC,EAAE;QACtB,gBAAgB,GAAG,OAAO,CAAC;KAC5B;SAAM;QACL,gBAAgB,GAAG,OAAO,CAAC,GAAG,CAAC;KAChC;IACD,IAAI,GAAG,IAAI,gBAAgB,EAAE;QAC3B,OAAQ,gBAA0C,CAAC,GAAG,CAAC,CAAC;KACzD;IACD,OAAO,QAAQ,CAAC;AAClB,CAAC;AAED;;GAEG;AACU,QAAA,YAAY,GAAG;IAC1B,UAAU,EAAE,YAAY;IACxB,OAAO,EAAE,SAAS;IAClB,OAAO,EAAE,SAAS;IAClB,OAAO,EAAE,SAAS;IAClB,WAAW,EAAE,aAAa;IAC1B,IAAI,EAAE,MAAM;CACJ,CAAC;AAIX,SAAgB,cAAc;IAC5B,MAAM,WAAW,GAAG,GAAG,CACrB,wBAAwB,EACxB,oBAAY,CAAC,UAAU,CACxB,CAAC;IACF,IAAI,CAAC,WAAW,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,oBAAY,CAAC,CAAC,QAAQ,CAAC,WAAW,CAAC,EAAE;QACtE,MAAM,IAAI,sCAA6B,CACrC,wBAAwB,EACxB,WAAW,CACZ,CAAC;KACH;IACD,OAAO,WAAW,CAAC;AACrB,CAAC;AAZD,wCAYC;AAEY,QAAA,QAAQ,GAAG;IACtB,CAAC,IAAI,CAAC,EAAE,CAAC,EAAE,IAAI,CAAC,EAAE;IAClB,CAAC,QAAQ,CAAC,EAAE,CAAC,EAAE,QAAQ,CAAC,EAAE;IAC1B,CAAC,KAAK,CAAC,EAAE,CAAC,EAAE,KAAK,CAAC,EAAE;IACpB,CAAC,MAAM,CAAC,EAAE,CAAC,EAAE,MAAM,CAAC,EAAE;CACvB,CAAC;AAIW,QAAA,aAAa,GAGtB;IACF,CAAC,IAAI,CAAC,EAAE,CAAC,EAAE,IAAI,CAAC,KAAK;IACrB,CAAC,QAAQ,CAAC,EAAE,CAAC,EAAE,QAAQ,CAAC,KAAK;IAC7B,CAAC,KAAK,CAAC,EAAE,CAAC,EAAE,KAAK,CAAC,KAAK;IACvB,CAAC,MAAM,CAAC,EAAE,CAAC,EAAE,MAAM,CAAC,KAAK;CAC1B,CAAC;AAEF;;;;;;;;GAQG;AACH,SAAgB,YAAY;IAC1B,MAAM,aAAa,GACjB,GAAG,CAAC,uBAAuB,EAAE,MAAM,CACpC,CAAC,WAAW,EAAE,CAAC;IAChB,IAAI,CAAC,GAAG,EAAE,IAAI,EAAE,GAAG,EAAE,OAAO,EAAE,KAAK,EAAE,GAAG,CAAC,CAAC,QAAQ,CAAC,aAAa,CAAC,EAAE;QACjE,OAAO,CAAC,IAAI,CACV,wHAAwH,CACzH,CAAC;KACH;IACD,OAAO,IAAI,CAAC;AACd,CAAC;AAVD,oCAUC;AAED;;GAEG;AACH,SAAgB,cAAc;IAC5B,MAAM,OAAO,GAAG,MAAM,CAAC,GAAG,CAAC,yBAAyB,EAAE,IAAI,CAAC,CAAC,CAAC;IAC7D,IAAI,OAAO,KAAK,CAAC,CAAC,EAAE;QAClB,OAAO,IAAI,CAAC;KACb;IACD,OAAO,OAAO,CAAC;AACjB,CAAC;AAND,wCAMC;AAED,SAAS,cAAc,CAAC,OAAgB,EAAE,WAAwB;IAChE,OAAO,qBAAa,CAAC,OAAO,CAAC,CAAC,WAAW,CAAC,CAAC;AAC7C,CAAC;AAED,SAAgB,iBAAiB,CAC/B,OAAgB,EAChB,cAA2B,cAAc,EAAE;IAE3C,MAAM,IAAI,GAAG,cAAc,CAAC,OAAO,EAAE,WAAW,CAAC,CAAC;IAClD,OAAO,GAAG,CACR,0BAA0B,OAAO,EAAE,EACnC,IAAI,CAAC,CAAC,CAAC,WAAW,IAAI,EAAE,CAAC,CAAC,CAAC,SAAS,CACrC,CAAC;AACJ,CAAC;AATD,8CASC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { Environment } from "./global";
|
|
2
|
+
import type { Service } from "./global";
|
|
2
3
|
export declare function getServiceURL(service: Service, path?: string, environment?: Environment): URL;
|
|
3
4
|
export declare function build(service: Service, path: string, options?: {
|
|
4
|
-
search?:
|
|
5
|
+
search?: ConstructorParameters<typeof URLSearchParams>[0];
|
|
5
6
|
}): string;
|
|
6
7
|
//# sourceMappingURL=url.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"url.d.ts","sourceRoot":"","sources":["../../../../../src/lib/core/url.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"url.d.ts","sourceRoot":"","sources":["../../../../../src/lib/core/url.ts"],"names":[],"mappings":"AAAA,OAAO,EAAqC,WAAW,EAAE,MAAM,UAAU,CAAC;AAC1E,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AAExC,wBAAgB,aAAa,CAC3B,OAAO,EAAE,OAAO,EAChB,IAAI,SAAK,EACT,WAAW,GAAE,WAA8B,GAC1C,GAAG,CAGL;AAED,wBAAgB,KAAK,CACnB,OAAO,EAAE,OAAO,EAChB,IAAI,EAAE,MAAM,EACZ,OAAO,CAAC,EAAE;IACR,MAAM,CAAC,EAAE,qBAAqB,CAAC,OAAO,eAAe,CAAC,CAAC,CAAC,CAAC,CAAC;CAC3D,UAQF"}
|
|
@@ -2,22 +2,15 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.build = exports.getServiceURL = void 0;
|
|
4
4
|
const global_1 = require("./global");
|
|
5
|
-
function
|
|
6
|
-
|
|
7
|
-
}
|
|
8
|
-
function getServiceURL(service, path = "", environment = "production") {
|
|
9
|
-
const base = (0, global_1.env)(`GLOBUS_SDK_SERVICE_URL_${service}`, `https://` + getServiceHost(service, environment));
|
|
5
|
+
function getServiceURL(service, path = "", environment = (0, global_1.getEnvironment)()) {
|
|
6
|
+
const base = (0, global_1.getServiceBaseUrl)(service, environment);
|
|
10
7
|
return new URL(path, base);
|
|
11
8
|
}
|
|
12
9
|
exports.getServiceURL = getServiceURL;
|
|
13
10
|
function build(service, path, options) {
|
|
14
|
-
const url = getServiceURL(service, path
|
|
11
|
+
const url = getServiceURL(service, path);
|
|
15
12
|
if (options && options.search) {
|
|
16
|
-
const search = new URLSearchParams();
|
|
17
|
-
Object.keys(options.search).forEach((key) => {
|
|
18
|
-
var _a;
|
|
19
|
-
search.append(key, (_a = options.search) === null || _a === void 0 ? void 0 : _a[key].toString());
|
|
20
|
-
});
|
|
13
|
+
const search = new URLSearchParams(options.search);
|
|
21
14
|
url.search = search.toString();
|
|
22
15
|
}
|
|
23
16
|
return url.toString();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"url.js","sourceRoot":"","sources":["../../../../../src/lib/core/url.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"url.js","sourceRoot":"","sources":["../../../../../src/lib/core/url.ts"],"names":[],"mappings":";;;AAAA,qCAA0E;AAG1E,SAAgB,aAAa,CAC3B,OAAgB,EAChB,IAAI,GAAG,EAAE,EACT,cAA2B,IAAA,uBAAc,GAAE;IAE3C,MAAM,IAAI,GAAG,IAAA,0BAAiB,EAAC,OAAO,EAAE,WAAW,CAAC,CAAC;IACrD,OAAO,IAAI,GAAG,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;AAC7B,CAAC;AAPD,sCAOC;AAED,SAAgB,KAAK,CACnB,OAAgB,EAChB,IAAY,EACZ,OAEC;IAED,MAAM,GAAG,GAAG,aAAa,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;IACzC,IAAI,OAAO,IAAI,OAAO,CAAC,MAAM,EAAE;QAC7B,MAAM,MAAM,GAAG,IAAI,eAAe,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;QACnD,GAAG,CAAC,MAAM,GAAG,MAAM,CAAC,QAAQ,EAAE,CAAC;KAChC;IACD,OAAO,GAAG,CAAC,QAAQ,EAAE,CAAC;AACxB,CAAC;AAbD,sBAaC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { JSONServiceMethodReturn } from "../../types";
|
|
2
|
+
/**
|
|
3
|
+
* Retrieves a single scope.
|
|
4
|
+
* @see https://docs.globus.org/api/auth/reference/#get_scopes
|
|
5
|
+
*/
|
|
6
|
+
export declare const get: (scope_id: string, _options?: undefined, sdkOptions?: import("../../types").SDKOptions | undefined) => JSONServiceMethodReturn<Record<string, string>>;
|
|
7
|
+
/**
|
|
8
|
+
* Retrieves a list of scopes.
|
|
9
|
+
* @see https://docs.globus.org/api/auth/reference/#get_scopes
|
|
10
|
+
*/
|
|
11
|
+
export declare const getList: (parameters: {
|
|
12
|
+
ids: string[];
|
|
13
|
+
} | undefined, options?: import("../../types").SDKOptions | undefined) => JSONServiceMethodReturn<{
|
|
14
|
+
scopes: {
|
|
15
|
+
client: string;
|
|
16
|
+
dependent_scopes: string[];
|
|
17
|
+
name: string;
|
|
18
|
+
required_domains: string[];
|
|
19
|
+
allows_refresh_token: boolean;
|
|
20
|
+
advertised: boolean;
|
|
21
|
+
scope_string: string[];
|
|
22
|
+
id: string;
|
|
23
|
+
description: string;
|
|
24
|
+
};
|
|
25
|
+
}[]>;
|
|
26
|
+
//# sourceMappingURL=scopes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"scopes.d.ts","sourceRoot":"","sources":["../../../../../../../src/lib/services/auth/service/scopes.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAGV,uBAAuB,EACxB,MAAM,aAAa,CAAC;AAErB;;;GAGG;AACH,eAAO,MAAM,GAAG,yGAIb,wBAAwB,OAAO,MAAM,EAAE,MAAM,CAAC,CAQM,CAAC;AAExD;;;GAGG;AACH,eAAO,MAAM,OAAO;SA+Ba,MAAM,EAAE;0EA5BtC,wBACD;IACE,MAAM,EAAE;QACN,MAAM,EAAE,MAAM,CAAC;QACf,gBAAgB,EAAE,MAAM,EAAE,CAAC;QAC3B,MAAM,MAAM,CAAC;QACb,gBAAgB,EAAE,MAAM,EAAE,CAAC;QAC3B,oBAAoB,EAAE,OAAO,CAAC;QAC9B,UAAU,EAAE,OAAO,CAAC;QACpB,YAAY,EAAE,MAAM,EAAE,CAAC;QACvB,EAAE,EAAE,MAAM,CAAC;QACX,WAAW,EAAE,MAAM,CAAC;KACrB,CAAC;CACH,EAAE,CAeuC,CAAC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getList = exports.get = void 0;
|
|
4
|
+
const url_1 = require("../../../core/url");
|
|
5
|
+
const fetch_1 = require("../../../core/fetch");
|
|
6
|
+
const config_1 = require("../config");
|
|
7
|
+
/**
|
|
8
|
+
* Retrieves a single scope.
|
|
9
|
+
* @see https://docs.globus.org/api/auth/reference/#get_scopes
|
|
10
|
+
*/
|
|
11
|
+
exports.get = function (scope_id, _options, sdkOptions) {
|
|
12
|
+
var _a;
|
|
13
|
+
return (0, fetch_1.fetchWithScope)(config_1.SCOPES.PROFILE, (0, url_1.build)(config_1.ID, `/v2/api/scopes/${scope_id}`), Object.assign({}, (_a = sdkOptions === null || sdkOptions === void 0 ? void 0 : sdkOptions.fetch) === null || _a === void 0 ? void 0 : _a.options));
|
|
14
|
+
};
|
|
15
|
+
/**
|
|
16
|
+
* Retrieves a list of scopes.
|
|
17
|
+
* @see https://docs.globus.org/api/auth/reference/#get_scopes
|
|
18
|
+
*/
|
|
19
|
+
exports.getList = function (parameters, options) {
|
|
20
|
+
var _a;
|
|
21
|
+
const ids = parameters === null || parameters === void 0 ? void 0 : parameters.ids.join(",");
|
|
22
|
+
if (!ids) {
|
|
23
|
+
throw new Error("'id' parameter is required.");
|
|
24
|
+
}
|
|
25
|
+
return (0, fetch_1.fetchWithScope)(config_1.SCOPES.PROFILE, (0, url_1.build)(config_1.ID, `/v2/api/scopes`, {
|
|
26
|
+
search: {
|
|
27
|
+
ids,
|
|
28
|
+
},
|
|
29
|
+
}), (_a = options === null || options === void 0 ? void 0 : options.fetch) === null || _a === void 0 ? void 0 : _a.options);
|
|
30
|
+
};
|
|
31
|
+
//# sourceMappingURL=scopes.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"scopes.js","sourceRoot":"","sources":["../../../../../../../src/lib/services/auth/service/scopes.ts"],"names":[],"mappings":";;;AAAA,2CAA0C;AAC1C,+CAAqD;AAErD,sCAAuC;AAQvC;;;GAGG;AACU,QAAA,GAAG,GAAG,UACjB,QAAQ,EACR,QAAS,EACT,UAAW;;IAEX,OAAO,IAAA,sBAAc,EACnB,eAAM,CAAC,OAAO,EACd,IAAA,WAAK,EAAC,WAAE,EAAE,kBAAkB,QAAQ,EAAE,CAAC,oBAElC,MAAA,UAAU,aAAV,UAAU,uBAAV,UAAU,CAAE,KAAK,0CAAE,OAAO,EAEhC,CAAC;AACJ,CAAuD,CAAC;AAExD;;;GAGG;AACU,QAAA,OAAO,GAAG,UACrB,UAAU,EACV,OAAQ;;IAgBR,MAAM,GAAG,GAAG,UAAU,aAAV,UAAU,uBAAV,UAAU,CAAE,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IACtC,IAAI,CAAC,GAAG,EAAE;QACR,MAAM,IAAI,KAAK,CAAC,6BAA6B,CAAC,CAAC;KAChD;IACD,OAAO,IAAA,sBAAc,EACnB,eAAM,CAAC,OAAO,EACd,IAAA,WAAK,EAAC,WAAE,EAAE,gBAAgB,EAAE;QAC1B,MAAM,EAAE;YACN,GAAG;SACJ;KACF,CAAC,EACF,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,KAAK,0CAAE,OAAO,CACxB,CAAC;AACJ,CAA4C,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
type AuthorizationParametersResponse = {
|
|
2
|
+
session_message: string;
|
|
3
|
+
session_required_identities: string[];
|
|
4
|
+
session_required_mfa: boolean;
|
|
5
|
+
/**
|
|
6
|
+
* @deprecated
|
|
7
|
+
*/
|
|
8
|
+
session_required_single_domain?: string;
|
|
9
|
+
session_required_domains: string[];
|
|
10
|
+
session_required_policies: string[];
|
|
11
|
+
};
|
|
12
|
+
type TransferAuthorizationParametersResponse = Omit<AuthorizationParametersResponse, "session_required_domains"> & {
|
|
13
|
+
session_required_single_domain: string[];
|
|
14
|
+
session_required_policies: string;
|
|
15
|
+
};
|
|
16
|
+
/**
|
|
17
|
+
* Given a response object, normalize, and extract the `authorization_parameters` for use
|
|
18
|
+
* as query parameters in a authorization redirect.
|
|
19
|
+
*
|
|
20
|
+
* @see https://docs.globus.org/api/auth/sessions/#required-error-format
|
|
21
|
+
*/
|
|
22
|
+
export declare function extractAuthorizationParameters(response: {
|
|
23
|
+
authorization_parameters?: AuthorizationParametersResponse | TransferAuthorizationParametersResponse;
|
|
24
|
+
}): false | Record<keyof AuthorizationParametersResponse, string>;
|
|
25
|
+
export {};
|
|
26
|
+
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/services/auth/utils.ts"],"names":[],"mappings":"AAAA,KAAK,+BAA+B,GAAG;IACrC,eAAe,EAAE,MAAM,CAAC;IACxB,2BAA2B,EAAE,MAAM,EAAE,CAAC;IACtC,oBAAoB,EAAE,OAAO,CAAC;IAC9B;;OAEG;IACH,8BAA8B,CAAC,EAAE,MAAM,CAAC;IACxC,wBAAwB,EAAE,MAAM,EAAE,CAAC;IACnC,yBAAyB,EAAE,MAAM,EAAE,CAAC;CACrC,CAAC;AAEF,KAAK,uCAAuC,GAAG,IAAI,CACjD,+BAA+B,EAC/B,0BAA0B,CAC3B,GAAG;IACF,8BAA8B,EAAE,MAAM,EAAE,CAAC;IACzC,yBAAyB,EAAE,MAAM,CAAC;CACnC,CAAC;AAEF;;;;;GAKG;AACH,wBAAgB,8BAA8B,CAAC,QAAQ,EAAE;IACvD,wBAAwB,CAAC,EACrB,+BAA+B,GAC/B,uCAAuC,CAAC;CAC7C,GAAG,KAAK,GAAG,MAAM,CAAC,MAAM,+BAA+B,EAAE,MAAM,CAAC,CA+ChE"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
3
|
+
var t = {};
|
|
4
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
5
|
+
t[p] = s[p];
|
|
6
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
7
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
8
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
9
|
+
t[p[i]] = s[p[i]];
|
|
10
|
+
}
|
|
11
|
+
return t;
|
|
12
|
+
};
|
|
13
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
+
exports.extractAuthorizationParameters = void 0;
|
|
15
|
+
/**
|
|
16
|
+
* Given a response object, normalize, and extract the `authorization_parameters` for use
|
|
17
|
+
* as query parameters in a authorization redirect.
|
|
18
|
+
*
|
|
19
|
+
* @see https://docs.globus.org/api/auth/sessions/#required-error-format
|
|
20
|
+
*/
|
|
21
|
+
function extractAuthorizationParameters(response) {
|
|
22
|
+
if (!response.authorization_parameters) {
|
|
23
|
+
return false;
|
|
24
|
+
}
|
|
25
|
+
const _a = response.authorization_parameters, { session_required_single_domain, session_required_policies } = _a, properties = __rest(_a, ["session_required_single_domain", "session_required_policies"]);
|
|
26
|
+
let domains = [];
|
|
27
|
+
/**
|
|
28
|
+
* If `session_required_domains` is present, use that.
|
|
29
|
+
*/
|
|
30
|
+
if ("session_required_domains" in properties) {
|
|
31
|
+
domains = properties.session_required_domains;
|
|
32
|
+
}
|
|
33
|
+
else if (session_required_single_domain) {
|
|
34
|
+
/**
|
|
35
|
+
* Otherwise, if `session_required_single_domain` is present, parse it
|
|
36
|
+
* to meet the same format as `session_required_domains`.
|
|
37
|
+
*
|
|
38
|
+
* If the value is an array, it is likely coming from Transfer.
|
|
39
|
+
*/
|
|
40
|
+
domains = Array.isArray(session_required_single_domain)
|
|
41
|
+
? session_required_single_domain
|
|
42
|
+
: [session_required_single_domain];
|
|
43
|
+
}
|
|
44
|
+
const normalized = Object.assign(Object.assign({}, properties), { session_required_policies: typeof session_required_policies === "string"
|
|
45
|
+
? session_required_policies.split(",")
|
|
46
|
+
: session_required_policies, session_required_domains: domains });
|
|
47
|
+
return Object.entries(normalized).reduce((acc, [key, value]) => {
|
|
48
|
+
if (value) {
|
|
49
|
+
acc[key] = value.toString();
|
|
50
|
+
}
|
|
51
|
+
return acc;
|
|
52
|
+
}, {});
|
|
53
|
+
}
|
|
54
|
+
exports.extractAuthorizationParameters = extractAuthorizationParameters;
|
|
55
|
+
//# sourceMappingURL=utils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../../../src/lib/services/auth/utils.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAoBA;;;;;GAKG;AACH,SAAgB,8BAA8B,CAAC,QAI9C;IACC,IAAI,CAAC,QAAQ,CAAC,wBAAwB,EAAE;QACtC,OAAO,KAAK,CAAC;KACd;IAED,MAAM,KAIF,QAAQ,CAAC,wBAAwB,EAJ/B,EACJ,8BAA8B,EAC9B,yBAAyB,OAEU,EADhC,UAAU,cAHT,+DAIL,CAAoC,CAAC;IAEtC,IAAI,OAAO,GAAa,EAAE,CAAC;IAC3B;;OAEG;IACH,IAAI,0BAA0B,IAAI,UAAU,EAAE;QAC5C,OAAO,GAAG,UAAU,CAAC,wBAAwB,CAAC;KAC/C;SAAM,IAAI,8BAA8B,EAAE;QACzC;;;;;WAKG;QACH,OAAO,GAAG,KAAK,CAAC,OAAO,CAAC,8BAA8B,CAAC;YACrD,CAAC,CAAC,8BAA8B;YAChC,CAAC,CAAC,CAAC,8BAA8B,CAAC,CAAC;KACtC;IAED,MAAM,UAAU,mCACX,UAAU,KACb,yBAAyB,EACvB,OAAO,yBAAyB,KAAK,QAAQ;YAC3C,CAAC,CAAC,yBAAyB,CAAC,KAAK,CAAC,GAAG,CAAC;YACtC,CAAC,CAAC,yBAAyB,EAC/B,wBAAwB,EAAE,OAAO,GAClC,CAAC;IAEF,OAAO,MAAM,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC,MAAM,CACtC,CAAC,GAA2B,EAAE,CAAC,GAAG,EAAE,KAAK,CAAC,EAAE,EAAE;QAC5C,IAAI,KAAK,EAAE;YACT,GAAG,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC,QAAQ,EAAE,CAAC;SAC7B;QACD,OAAO,GAAG,CAAC;IACb,CAAC,EACD,EAAE,CACH,CAAC;AACJ,CAAC;AAnDD,wEAmDC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { Environment } from "../../core/global";
|
|
2
|
+
export declare const ID = "FLOWS";
|
|
3
|
+
export declare const HOSTS: Partial<Record<Environment, string>>;
|
|
4
|
+
/**
|
|
5
|
+
* @see https://docs.globus.org/api/flows/overview/#scopes
|
|
6
|
+
*/
|
|
7
|
+
export declare const SCOPES: {
|
|
8
|
+
MANAGE_FLOWS: string;
|
|
9
|
+
VIEW_FLOWS: string;
|
|
10
|
+
RUN: string;
|
|
11
|
+
RUN_STATUS: string;
|
|
12
|
+
RUN_MANAGE: string;
|
|
13
|
+
};
|
|
14
|
+
//# sourceMappingURL=config.d.ts.map
|
|
@@ -0,0 +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,mBAAmB,CAAC;AAErD,eAAO,MAAM,EAAE,UAAU,CAAC;AAC1B,eAAO,MAAM,KAAK,EAAE,OAAO,CAAC,MAAM,CAAC,WAAW,EAAE,MAAM,CAAC,CAOtD,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,MAAM;;;;;;CAUlB,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SCOPES = exports.HOSTS = exports.ID = void 0;
|
|
4
|
+
exports.ID = "FLOWS";
|
|
5
|
+
exports.HOSTS = {
|
|
6
|
+
sandbox: "sandbox.flows.automate.globus.org",
|
|
7
|
+
production: "flows.globus.org",
|
|
8
|
+
staging: "staging.flows.automate.globus.org",
|
|
9
|
+
integration: "integration.flows.automate.globus.org",
|
|
10
|
+
test: "test.flows.automate.globus.org",
|
|
11
|
+
preview: "preview.flows.automate.globus.org",
|
|
12
|
+
};
|
|
13
|
+
/**
|
|
14
|
+
* @see https://docs.globus.org/api/flows/overview/#scopes
|
|
15
|
+
*/
|
|
16
|
+
exports.SCOPES = {
|
|
17
|
+
MANAGE_FLOWS: "https://auth.globus.org/scopes/eec9b274-0c81-4334-bdc2-54e90e689b9a/manage_flows",
|
|
18
|
+
VIEW_FLOWS: "https://auth.globus.org/scopes/eec9b274-0c81-4334-bdc2-54e90e689b9a/view_flows",
|
|
19
|
+
RUN: "https://auth.globus.org/scopes/eec9b274-0c81-4334-bdc2-54e90e689b9a/run",
|
|
20
|
+
RUN_STATUS: "https://auth.globus.org/scopes/eec9b274-0c81-4334-bdc2-54e90e689b9a/run_status",
|
|
21
|
+
RUN_MANAGE: "https://auth.globus.org/scopes/eec9b274-0c81-4334-bdc2-54e90e689b9a/run_manage",
|
|
22
|
+
};
|
|
23
|
+
//# sourceMappingURL=config.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config.js","sourceRoot":"","sources":["../../../../../../src/lib/services/flows/config.ts"],"names":[],"mappings":";;;AAEa,QAAA,EAAE,GAAG,OAAO,CAAC;AACb,QAAA,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;AACU,QAAA,MAAM,GAAG;IACpB,YAAY,EACV,kFAAkF;IACpF,UAAU,EACR,gFAAgF;IAClF,GAAG,EAAE,yEAAyE;IAC9E,UAAU,EACR,gFAAgF;IAClF,UAAU,EACR,gFAAgF;CACnF,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @description A wrapper around the Globus Flows service.
|
|
3
|
+
* @category Service
|
|
4
|
+
* @see [Globus Flows API Documentation](https://docs.globus.org/api/flows/)
|
|
5
|
+
* @module
|
|
6
|
+
*/
|
|
7
|
+
import * as FLOWS from "./config";
|
|
8
|
+
export declare const CONFIG: typeof FLOWS;
|
|
9
|
+
export * as flows from "./service/flows";
|
|
10
|
+
export * as runs from "./service/runs";
|
|
11
|
+
export * as batch from "./service/batch";
|
|
12
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +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;AAClC,eAAO,MAAM,MAAM,cAAQ,CAAC;AAE5B,OAAO,KAAK,KAAK,MAAM,iBAAiB,CAAC;AACzC,OAAO,KAAK,IAAI,MAAM,gBAAgB,CAAC;AACvC,OAAO,KAAK,KAAK,MAAM,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.batch = exports.runs = exports.flows = exports.CONFIG = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* @description A wrapper around the Globus Flows service.
|
|
6
|
+
* @category Service
|
|
7
|
+
* @see [Globus Flows API Documentation](https://docs.globus.org/api/flows/)
|
|
8
|
+
* @module
|
|
9
|
+
*/
|
|
10
|
+
const FLOWS = require("./config");
|
|
11
|
+
exports.CONFIG = FLOWS;
|
|
12
|
+
exports.flows = require("./service/flows");
|
|
13
|
+
exports.runs = require("./service/runs");
|
|
14
|
+
exports.batch = require("./service/batch");
|
|
15
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/lib/services/flows/index.ts"],"names":[],"mappings":";;;AAAA;;;;;GAKG;AACH,kCAAkC;AACrB,QAAA,MAAM,GAAG,KAAK,CAAC;AAE5B,2CAAyC;AACzC,yCAAuC;AACvC,2CAAyC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"batch.d.ts","sourceRoot":"","sources":["../../../../../../../src/lib/services/flows/service/batch.ts"],"names":[],"mappings":";AAAA,wBAAkB"}
|