@globus/sdk 3.0.0-alpha.13 → 3.0.0-alpha.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (124) hide show
  1. package/cjs/index.d.ts +1 -0
  2. package/cjs/index.d.ts.map +1 -1
  3. package/cjs/index.js +2 -1
  4. package/cjs/index.js.map +1 -1
  5. package/cjs/lib/core/authorization/AuthorizationManager.d.ts +25 -8
  6. package/cjs/lib/core/authorization/AuthorizationManager.d.ts.map +1 -1
  7. package/cjs/lib/core/authorization/AuthorizationManager.js +77 -15
  8. package/cjs/lib/core/authorization/AuthorizationManager.js.map +1 -1
  9. package/cjs/lib/core/authorization/TokenLookup.d.ts +5 -1
  10. package/cjs/lib/core/authorization/TokenLookup.d.ts.map +1 -1
  11. package/cjs/lib/core/authorization/TokenLookup.js +38 -6
  12. package/cjs/lib/core/authorization/TokenLookup.js.map +1 -1
  13. package/cjs/lib/core/authorization/tokens.d.ts +1 -0
  14. package/cjs/lib/core/authorization/tokens.d.ts.map +1 -1
  15. package/cjs/lib/core/authorization/tokens.js +1 -0
  16. package/cjs/lib/core/authorization/tokens.js.map +1 -1
  17. package/cjs/lib/core/global.d.ts +7 -6
  18. package/cjs/lib/core/global.d.ts.map +1 -1
  19. package/cjs/lib/core/global.js +3 -0
  20. package/cjs/lib/core/global.js.map +1 -1
  21. package/cjs/lib/services/auth/config.d.ts +5 -1
  22. package/cjs/lib/services/auth/config.d.ts.map +1 -1
  23. package/cjs/lib/services/auth/config.js +8 -0
  24. package/cjs/lib/services/auth/config.js.map +1 -1
  25. package/cjs/lib/services/auth/index.d.ts +6 -1
  26. package/cjs/lib/services/auth/index.d.ts.map +1 -1
  27. package/cjs/lib/services/auth/index.js +13 -2
  28. package/cjs/lib/services/auth/index.js.map +1 -1
  29. package/cjs/lib/services/auth/service/oauth2/token.d.ts +19 -1
  30. package/cjs/lib/services/auth/service/oauth2/token.d.ts.map +1 -1
  31. package/cjs/lib/services/auth/service/oauth2/token.js +16 -1
  32. package/cjs/lib/services/auth/service/oauth2/token.js.map +1 -1
  33. package/cjs/lib/services/compute/config.d.ts +7 -0
  34. package/cjs/lib/services/compute/config.d.ts.map +1 -0
  35. package/cjs/lib/services/compute/config.js +16 -0
  36. package/cjs/lib/services/compute/config.js.map +1 -0
  37. package/cjs/lib/services/compute/index.d.ts +14 -0
  38. package/cjs/lib/services/compute/index.d.ts.map +1 -0
  39. package/cjs/lib/services/compute/index.js +18 -0
  40. package/cjs/lib/services/compute/index.js.map +1 -0
  41. package/cjs/lib/services/compute/service/endpoints.d.ts +24 -0
  42. package/cjs/lib/services/compute/service/endpoints.d.ts.map +1 -0
  43. package/cjs/lib/services/compute/service/endpoints.js +29 -0
  44. package/cjs/lib/services/compute/service/endpoints.js.map +1 -0
  45. package/cjs/lib/services/flows/config.d.ts +1 -1
  46. package/cjs/lib/services/flows/config.d.ts.map +1 -1
  47. package/cjs/lib/services/flows/config.js.map +1 -1
  48. package/cjs/lib/services/globus-connect-server/client.d.ts +501 -146
  49. package/cjs/lib/services/globus-connect-server/client.d.ts.map +1 -1
  50. package/cjs/lib/services/groups/config.d.ts +1 -1
  51. package/cjs/lib/services/groups/config.d.ts.map +1 -1
  52. package/cjs/lib/services/groups/config.js.map +1 -1
  53. package/cjs/lib/services/search/config.d.ts +1 -1
  54. package/cjs/lib/services/search/config.d.ts.map +1 -1
  55. package/cjs/lib/services/search/config.js.map +1 -1
  56. package/cjs/lib/services/timer/config.d.ts +1 -1
  57. package/cjs/lib/services/timer/config.d.ts.map +1 -1
  58. package/cjs/lib/services/timer/config.js.map +1 -1
  59. package/cjs/lib/services/transfer/config.d.ts +1 -1
  60. package/cjs/lib/services/transfer/config.d.ts.map +1 -1
  61. package/cjs/lib/services/transfer/config.js.map +1 -1
  62. package/esm/index.d.ts +1 -0
  63. package/esm/index.d.ts.map +1 -1
  64. package/esm/index.js +1 -0
  65. package/esm/index.js.map +1 -1
  66. package/esm/lib/core/authorization/AuthorizationManager.d.ts +25 -8
  67. package/esm/lib/core/authorization/AuthorizationManager.d.ts.map +1 -1
  68. package/esm/lib/core/authorization/AuthorizationManager.js +78 -16
  69. package/esm/lib/core/authorization/AuthorizationManager.js.map +1 -1
  70. package/esm/lib/core/authorization/TokenLookup.d.ts +5 -1
  71. package/esm/lib/core/authorization/TokenLookup.d.ts.map +1 -1
  72. package/esm/lib/core/authorization/TokenLookup.js +39 -7
  73. package/esm/lib/core/authorization/TokenLookup.js.map +1 -1
  74. package/esm/lib/core/authorization/tokens.d.ts +1 -0
  75. package/esm/lib/core/authorization/tokens.d.ts.map +1 -1
  76. package/esm/lib/core/authorization/tokens.js +1 -0
  77. package/esm/lib/core/authorization/tokens.js.map +1 -1
  78. package/esm/lib/core/global.d.ts +7 -6
  79. package/esm/lib/core/global.d.ts.map +1 -1
  80. package/esm/lib/core/global.js +3 -0
  81. package/esm/lib/core/global.js.map +1 -1
  82. package/esm/lib/services/auth/config.d.ts +5 -1
  83. package/esm/lib/services/auth/config.d.ts.map +1 -1
  84. package/esm/lib/services/auth/config.js +8 -0
  85. package/esm/lib/services/auth/config.js.map +1 -1
  86. package/esm/lib/services/auth/index.d.ts +6 -1
  87. package/esm/lib/services/auth/index.d.ts.map +1 -1
  88. package/esm/lib/services/auth/index.js +10 -1
  89. package/esm/lib/services/auth/index.js.map +1 -1
  90. package/esm/lib/services/auth/service/oauth2/token.d.ts +19 -1
  91. package/esm/lib/services/auth/service/oauth2/token.d.ts.map +1 -1
  92. package/esm/lib/services/auth/service/oauth2/token.js +15 -0
  93. package/esm/lib/services/auth/service/oauth2/token.js.map +1 -1
  94. package/esm/lib/services/compute/config.d.ts +7 -0
  95. package/esm/lib/services/compute/config.d.ts.map +1 -0
  96. package/esm/lib/services/compute/config.js +13 -0
  97. package/esm/lib/services/compute/config.js.map +1 -0
  98. package/esm/lib/services/compute/index.d.ts +14 -0
  99. package/esm/lib/services/compute/index.d.ts.map +1 -0
  100. package/esm/lib/services/compute/index.js +14 -0
  101. package/esm/lib/services/compute/index.js.map +1 -0
  102. package/esm/lib/services/compute/service/endpoints.d.ts +24 -0
  103. package/esm/lib/services/compute/service/endpoints.d.ts.map +1 -0
  104. package/esm/lib/services/compute/service/endpoints.js +26 -0
  105. package/esm/lib/services/compute/service/endpoints.js.map +1 -0
  106. package/esm/lib/services/flows/config.d.ts +1 -1
  107. package/esm/lib/services/flows/config.d.ts.map +1 -1
  108. package/esm/lib/services/flows/config.js.map +1 -1
  109. package/esm/lib/services/globus-connect-server/client.d.ts +501 -146
  110. package/esm/lib/services/globus-connect-server/client.d.ts.map +1 -1
  111. package/esm/lib/services/groups/config.d.ts +1 -1
  112. package/esm/lib/services/groups/config.d.ts.map +1 -1
  113. package/esm/lib/services/groups/config.js.map +1 -1
  114. package/esm/lib/services/search/config.d.ts +1 -1
  115. package/esm/lib/services/search/config.d.ts.map +1 -1
  116. package/esm/lib/services/search/config.js.map +1 -1
  117. package/esm/lib/services/timer/config.d.ts +1 -1
  118. package/esm/lib/services/timer/config.d.ts.map +1 -1
  119. package/esm/lib/services/timer/config.js.map +1 -1
  120. package/esm/lib/services/transfer/config.d.ts +1 -1
  121. package/esm/lib/services/transfer/config.d.ts.map +1 -1
  122. package/esm/lib/services/transfer/config.js.map +1 -1
  123. package/package.json +2 -2
  124. package/umd/globus.production.js +1 -1
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.isGlobusAuthTokenResponse = exports.oauth2 = exports.identities = exports.getTokenEndpoint = exports.getAuthorizationEndpoint = exports.CONFIG = void 0;
3
+ exports.isGlobusAuthTokenResponse = exports.isRefreshToken = exports.isToken = exports.oauth2 = exports.identities = exports.getTokenEndpoint = exports.getAuthorizationEndpoint = exports.CONFIG = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  /**
6
6
  * @description A wrapper around the Globus Auth service.
@@ -25,8 +25,19 @@ function getTokenEndpoint() {
25
25
  exports.getTokenEndpoint = getTokenEndpoint;
26
26
  exports.identities = tslib_1.__importStar(require("./service/identities.js"));
27
27
  exports.oauth2 = tslib_1.__importStar(require("./service/oauth2/index.js"));
28
+ function isToken(check) {
29
+ return typeof check === 'object' && check !== null && 'access_token' in check;
30
+ }
31
+ exports.isToken = isToken;
32
+ function isRefreshToken(check) {
33
+ return isToken(check) && check !== null && 'refresh_token' in check;
34
+ }
35
+ exports.isRefreshToken = isRefreshToken;
28
36
  function isGlobusAuthTokenResponse(check) {
29
- return typeof check === 'object' && check !== null && 'resource_server' in check;
37
+ /**
38
+ * @todo This could be made more robust by checking whether the `resource_server` is a well-known value.
39
+ */
40
+ return isToken(check) && check !== null && 'resource_server' in check;
30
41
  }
31
42
  exports.isGlobusAuthTokenResponse = isGlobusAuthTokenResponse;
32
43
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/lib/services/auth/index.ts"],"names":[],"mappings":";;;;AAAA;;;;;GAKG;AACH,8CAA0C;AAE1C,0DAAoC;AAEpC;;;GAGG;AACU,QAAA,MAAM,GAAG,IAAI,CAAC;AAE3B,SAAgB,wBAAwB;IACtC,OAAO,IAAA,cAAK,EAAC,IAAI,CAAC,EAAE,EAAE,sBAAsB,CAAC,CAAC;AAChD,CAAC;AAFD,4DAEC;AAED,SAAgB,gBAAgB;IAC9B,OAAO,IAAA,cAAK,EAAC,IAAI,CAAC,EAAE,EAAE,kBAAkB,CAAC,CAAC;AAC5C,CAAC;AAFD,4CAEC;AAED,8EAAsD;AACtD,4EAAoD;AAmBpD,SAAgB,yBAAyB,CAAC,KAAc;IACtD,OAAO,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,IAAI,IAAI,iBAAiB,IAAI,KAAK,CAAC;AACnF,CAAC;AAFD,8DAEC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/lib/services/auth/index.ts"],"names":[],"mappings":";;;;AAAA;;;;;GAKG;AACH,8CAA0C;AAE1C,0DAAoC;AAEpC;;;GAGG;AACU,QAAA,MAAM,GAAG,IAAI,CAAC;AAE3B,SAAgB,wBAAwB;IACtC,OAAO,IAAA,cAAK,EAAC,IAAI,CAAC,EAAE,EAAE,sBAAsB,CAAC,CAAC;AAChD,CAAC;AAFD,4DAEC;AAED,SAAgB,gBAAgB;IAC9B,OAAO,IAAA,cAAK,EAAC,IAAI,CAAC,EAAE,EAAE,kBAAkB,CAAC,CAAC;AAC5C,CAAC;AAFD,4CAEC;AAED,8EAAsD;AACtD,4EAAoD;AAwBpD,SAAgB,OAAO,CAAC,KAAc;IACpC,OAAO,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,IAAI,IAAI,cAAc,IAAI,KAAK,CAAC;AAChF,CAAC;AAFD,0BAEC;AAED,SAAgB,cAAc,CAAC,KAAc;IAC3C,OAAO,OAAO,CAAC,KAAK,CAAC,IAAI,KAAK,KAAK,IAAI,IAAI,eAAe,IAAI,KAAK,CAAC;AACtE,CAAC;AAFD,wCAEC;AAED,SAAgB,yBAAyB,CAAC,KAAc;IACtD;;OAEG;IACH,OAAO,OAAO,CAAC,KAAK,CAAC,IAAI,KAAK,KAAK,IAAI,IAAI,iBAAiB,IAAI,KAAK,CAAC;AACxE,CAAC;AALD,8DAKC"}
@@ -4,12 +4,23 @@ type IntrospectPayload = {
4
4
  };
5
5
  type RevokePayload = {
6
6
  token: string;
7
- token_type_hint?: 'access_token';
7
+ /**
8
+ * This is an undocumented property that is required for the request to be successful.
9
+ */
10
+ client_id: string;
8
11
  };
9
12
  type ValidatePayload = {
10
13
  token: string;
11
14
  client_id: string;
12
15
  };
16
+ type RefreshPayload = {
17
+ refresh_token: string;
18
+ grant_type: 'refresh_token';
19
+ /**
20
+ * This is an undocumented property that is required for the request to be successful.
21
+ */
22
+ client_id: string;
23
+ };
13
24
  /**
14
25
  * Token Introspection
15
26
  * @see https://docs.globus.org/api/auth/reference/#token-introspect
@@ -24,6 +35,13 @@ export declare const introspect: (options: ({
24
35
  export declare const revoke: (options: ({
25
36
  payload: RevokePayload;
26
37
  } & import("../../../types.js").BaseServiceMethodOptions) | undefined, sdkOptions?: import("../../../types.js").SDKOptions | undefined) => Promise<Response>;
38
+ /**
39
+ * Token Refresh
40
+ * @see https://docs.globus.org/api/auth/reference/#refresh_token_grant
41
+ */
42
+ export declare const refresh: (options: ({
43
+ payload: RefreshPayload;
44
+ } & import("../../../types.js").BaseServiceMethodOptions) | undefined, sdkOptions?: import("../../../types.js").SDKOptions | undefined) => Promise<Response>;
27
45
  /**
28
46
  * @private
29
47
  * @deprecated Rather than using `validate` to check if a token is valid, it is recommended to make a request to the resource server with the token and handle the error response.
@@ -1 +1 @@
1
- {"version":3,"file":"token.d.ts","sourceRoot":"","sources":["../../../../../../../src/lib/services/auth/service/oauth2/token.ts"],"names":[],"mappings":"AAKA,KAAK,iBAAiB,GAAG;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,KAAK,aAAa,GAAG;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,eAAe,CAAC,EAAE,cAAc,CAAC;CAClC,CAAC;AAEF,KAAK,eAAe,GAAG;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAiCF;;;GAGG;AACH,eAAO,MAAM,UAAU;aAeZ,iBAAiB;4JAC1B,CAAC;AAEH;;;GAGG;AACH,eAAO,MAAM,MAAM;aAeR,aAAa;4JACtB,CAAC;AAEH;;;GAGG;AACH,eAAO,MAAM,QAAQ;aAeV,eAAe;4JACxB,CAAC"}
1
+ {"version":3,"file":"token.d.ts","sourceRoot":"","sources":["../../../../../../../src/lib/services/auth/service/oauth2/token.ts"],"names":[],"mappings":"AAKA,KAAK,iBAAiB,GAAG;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,KAAK,aAAa,GAAG;IACnB,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,KAAK,eAAe,GAAG;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,KAAK,cAAc,GAAG;IACpB,aAAa,EAAE,MAAM,CAAC;IACtB,UAAU,EAAE,eAAe,CAAC;IAC5B;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAiCF;;;GAGG;AACH,eAAO,MAAM,UAAU;aAeZ,iBAAiB;4JAC1B,CAAC;AAEH;;;GAGG;AACH,eAAO,MAAM,MAAM;aAeR,aAAa;4JACtB,CAAC;AAEH;;;GAGG;AACH,eAAO,MAAM,OAAO;aAeT,cAAc;4JACvB,CAAC;AAEH;;;GAGG;AACH,eAAO,MAAM,QAAQ;aAeV,eAAe;4JACxB,CAAC"}
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.validate = exports.revoke = exports.introspect = void 0;
3
+ exports.validate = exports.refresh = exports.revoke = exports.introspect = void 0;
4
4
  const config_js_1 = require("../../config.js");
5
5
  const shared_js_1 = require("../../../../services/shared.js");
6
6
  function serialize(payload) {
@@ -51,6 +51,21 @@ exports.revoke = function (options, sdkOptions) {
51
51
  method: shared_js_1.HTTP_METHODS.POST,
52
52
  }, injectServiceOptions(options), sdkOptions);
53
53
  };
54
+ /**
55
+ * Token Refresh
56
+ * @see https://docs.globus.org/api/auth/reference/#refresh_token_grant
57
+ */
58
+ exports.refresh = function (options, sdkOptions) {
59
+ if (!(options === null || options === void 0 ? void 0 : options.payload)) {
60
+ throw new Error(`'payload' is required for revoke`);
61
+ }
62
+ return (0, shared_js_1.serviceRequest)({
63
+ service: config_js_1.ID,
64
+ scope: undefined,
65
+ path: `/v2/oauth2/token`,
66
+ method: shared_js_1.HTTP_METHODS.POST,
67
+ }, injectServiceOptions(options), sdkOptions);
68
+ };
54
69
  /**
55
70
  * @private
56
71
  * @deprecated Rather than using `validate` to check if a token is valid, it is recommended to make a request to the resource server with the token and handle the error response.
@@ -1 +1 @@
1
- {"version":3,"file":"token.js","sourceRoot":"","sources":["../../../../../../../src/lib/services/auth/service/oauth2/token.ts"],"names":[],"mappings":";;;AAAA,+CAAqC;AACrC,8DAA8E;AAqB9E,SAAS,SAAS,CAAC,OAA2B;IAC5C,OAAO,IAAI,eAAe,CAAC,OAAO,CAAC,CAAC;AACtC,CAAC;AAED;;GAEG;AACH,SAAS,oBAAoB,CAC3B,OAEC;IAED,uCACK,OAAO;QACV;;;WAGG;QACH,IAAI,EAAE,SAAS,CAAC,OAAO,CAAC,OAAO,CAAC,EAChC,OAAO,kCACF,CAAC,CAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,OAAO,KAAI,EAAE,CAAC;YAC3B;;eAEG;YACH,cAAc,EAAE,kDAAkD,OAEpE;AACJ,CAAC;AAED;;;GAGG;AACU,QAAA,UAAU,GAAG,UAAU,OAAO,EAAE,UAAW;IACtD,IAAI,CAAC,CAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,OAAO,CAAA,EAAE,CAAC;QACtB,MAAM,IAAI,KAAK,CAAC,sCAAsC,CAAC,CAAC;IAC1D,CAAC;IACD,OAAO,IAAA,0BAAc,EACnB;QACE,OAAO,EAAE,cAAE;QACX,KAAK,EAAE,SAAS;QAChB,IAAI,EAAE,6BAA6B;QACnC,MAAM,EAAE,wBAAY,CAAC,IAAI;KAC1B,EACD,oBAAoB,CAAC,OAAO,CAAC,EAC7B,UAAU,CACX,CAAC;AACJ,CAEE,CAAC;AAEH;;;GAGG;AACU,QAAA,MAAM,GAAG,UAAU,OAAO,EAAE,UAAW;IAClD,IAAI,CAAC,CAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,OAAO,CAAA,EAAE,CAAC;QACtB,MAAM,IAAI,KAAK,CAAC,kCAAkC,CAAC,CAAC;IACtD,CAAC;IACD,OAAO,IAAA,0BAAc,EACnB;QACE,OAAO,EAAE,cAAE;QACX,KAAK,EAAE,SAAS;QAChB,IAAI,EAAE,yBAAyB;QAC/B,MAAM,EAAE,wBAAY,CAAC,IAAI;KAC1B,EACD,oBAAoB,CAAC,OAAO,CAAC,EAC7B,UAAU,CACX,CAAC;AACJ,CAEE,CAAC;AAEH;;;GAGG;AACU,QAAA,QAAQ,GAAG,UAAU,OAAO,EAAE,UAAW;IACpD,IAAI,CAAC,CAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,OAAO,CAAA,EAAE,CAAC;QACtB,MAAM,IAAI,KAAK,CAAC,oCAAoC,CAAC,CAAC;IACxD,CAAC;IACD,OAAO,IAAA,0BAAc,EACnB;QACE,OAAO,EAAE,cAAE;QACX,KAAK,EAAE,SAAS;QAChB,IAAI,EAAE,2BAA2B;QACjC,MAAM,EAAE,wBAAY,CAAC,IAAI;KAC1B,EACD,oBAAoB,CAAC,OAAO,CAAC,EAC7B,UAAU,CACX,CAAC;AACJ,CAEE,CAAC"}
1
+ {"version":3,"file":"token.js","sourceRoot":"","sources":["../../../../../../../src/lib/services/auth/service/oauth2/token.ts"],"names":[],"mappings":";;;AAAA,+CAAqC;AACrC,8DAA8E;AAiC9E,SAAS,SAAS,CAAC,OAA2B;IAC5C,OAAO,IAAI,eAAe,CAAC,OAAO,CAAC,CAAC;AACtC,CAAC;AAED;;GAEG;AACH,SAAS,oBAAoB,CAC3B,OAEC;IAED,uCACK,OAAO;QACV;;;WAGG;QACH,IAAI,EAAE,SAAS,CAAC,OAAO,CAAC,OAAO,CAAC,EAChC,OAAO,kCACF,CAAC,CAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,OAAO,KAAI,EAAE,CAAC;YAC3B;;eAEG;YACH,cAAc,EAAE,kDAAkD,OAEpE;AACJ,CAAC;AAED;;;GAGG;AACU,QAAA,UAAU,GAAG,UAAU,OAAO,EAAE,UAAW;IACtD,IAAI,CAAC,CAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,OAAO,CAAA,EAAE,CAAC;QACtB,MAAM,IAAI,KAAK,CAAC,sCAAsC,CAAC,CAAC;IAC1D,CAAC;IACD,OAAO,IAAA,0BAAc,EACnB;QACE,OAAO,EAAE,cAAE;QACX,KAAK,EAAE,SAAS;QAChB,IAAI,EAAE,6BAA6B;QACnC,MAAM,EAAE,wBAAY,CAAC,IAAI;KAC1B,EACD,oBAAoB,CAAC,OAAO,CAAC,EAC7B,UAAU,CACX,CAAC;AACJ,CAEE,CAAC;AAEH;;;GAGG;AACU,QAAA,MAAM,GAAG,UAAU,OAAO,EAAE,UAAW;IAClD,IAAI,CAAC,CAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,OAAO,CAAA,EAAE,CAAC;QACtB,MAAM,IAAI,KAAK,CAAC,kCAAkC,CAAC,CAAC;IACtD,CAAC;IACD,OAAO,IAAA,0BAAc,EACnB;QACE,OAAO,EAAE,cAAE;QACX,KAAK,EAAE,SAAS;QAChB,IAAI,EAAE,yBAAyB;QAC/B,MAAM,EAAE,wBAAY,CAAC,IAAI;KAC1B,EACD,oBAAoB,CAAC,OAAO,CAAC,EAC7B,UAAU,CACX,CAAC;AACJ,CAEE,CAAC;AAEH;;;GAGG;AACU,QAAA,OAAO,GAAG,UAAU,OAAO,EAAE,UAAW;IACnD,IAAI,CAAC,CAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,OAAO,CAAA,EAAE,CAAC;QACtB,MAAM,IAAI,KAAK,CAAC,kCAAkC,CAAC,CAAC;IACtD,CAAC;IACD,OAAO,IAAA,0BAAc,EACnB;QACE,OAAO,EAAE,cAAE;QACX,KAAK,EAAE,SAAS;QAChB,IAAI,EAAE,kBAAkB;QACxB,MAAM,EAAE,wBAAY,CAAC,IAAI;KAC1B,EACD,oBAAoB,CAAC,OAAO,CAAC,EAC7B,UAAU,CACX,CAAC;AACJ,CAEE,CAAC;AAEH;;;GAGG;AACU,QAAA,QAAQ,GAAG,UAAU,OAAO,EAAE,UAAW;IACpD,IAAI,CAAC,CAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,OAAO,CAAA,EAAE,CAAC;QACtB,MAAM,IAAI,KAAK,CAAC,oCAAoC,CAAC,CAAC;IACxD,CAAC;IACD,OAAO,IAAA,0BAAc,EACnB;QACE,OAAO,EAAE,cAAE;QACX,KAAK,EAAE,SAAS;QAChB,IAAI,EAAE,2BAA2B;QACjC,MAAM,EAAE,wBAAY,CAAC,IAAI;KAC1B,EACD,oBAAoB,CAAC,OAAO,CAAC,EAC7B,UAAU,CACX,CAAC;AACJ,CAEE,CAAC"}
@@ -0,0 +1,7 @@
1
+ import type { Environment } from '../../core/global.js';
2
+ export declare const ID: "COMPUTE";
3
+ export declare const HOSTS: Partial<Record<Environment, string>>;
4
+ export declare const SCOPES: {
5
+ ALL: string;
6
+ };
7
+ //# sourceMappingURL=config.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../../../src/lib/services/compute/config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAExD,eAAO,MAAM,EAAE,WAAqB,CAAC;AACrC,eAAO,MAAM,KAAK,EAAE,OAAO,CAAC,MAAM,CAAC,WAAW,EAAE,MAAM,CAAC,CAOtD,CAAC;AAEF,eAAO,MAAM,MAAM;;CAElB,CAAC"}
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SCOPES = exports.HOSTS = exports.ID = void 0;
4
+ exports.ID = 'COMPUTE';
5
+ exports.HOSTS = {
6
+ sandbox: 'compute.api.sandbox.globuscs.info',
7
+ production: 'compute.api.globus.org',
8
+ staging: 'compute.api.staging.globuscs.info',
9
+ integration: 'compute.api.integration.globuscs.info',
10
+ test: 'compute.api.test.globuscs.info',
11
+ preview: 'compute.api.preview.globus.org',
12
+ };
13
+ exports.SCOPES = {
14
+ ALL: 'https://auth.globus.org/scopes/facd7ccc-c5f4-42aa-916b-a0e270e2c2a9/all',
15
+ };
16
+ //# sourceMappingURL=config.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"config.js","sourceRoot":"","sources":["../../../../../src/lib/services/compute/config.ts"],"names":[],"mappings":";;;AAEa,QAAA,EAAE,GAAG,SAAkB,CAAC;AACxB,QAAA,KAAK,GAAyC;IACzD,OAAO,EAAE,mCAAmC;IAC5C,UAAU,EAAE,wBAAwB;IACpC,OAAO,EAAE,mCAAmC;IAC5C,WAAW,EAAE,uCAAuC;IACpD,IAAI,EAAE,gCAAgC;IACtC,OAAO,EAAE,gCAAgC;CAC1C,CAAC;AAEW,QAAA,MAAM,GAAG;IACpB,GAAG,EAAE,yEAAyE;CAC/E,CAAC"}
@@ -0,0 +1,14 @@
1
+ /**
2
+ * @description A wrapper around the Globus Compute service.
3
+ * @group Service
4
+ * @see [Globus Compute API Documentation](https://api2.funcx.org/redoc)
5
+ * @module
6
+ */
7
+ import * as COMPUTE from './config.js';
8
+ /**
9
+ * @private
10
+ * @internal
11
+ */
12
+ export declare const CONFIG: typeof COMPUTE;
13
+ export * as endpoints from './service/endpoints.js';
14
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/lib/services/compute/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,KAAK,OAAO,MAAM,aAAa,CAAC;AAEvC;;;GAGG;AACH,eAAO,MAAM,MAAM,gBAAU,CAAC;AAE9B,OAAO,KAAK,SAAS,MAAM,wBAAwB,CAAC"}
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.endpoints = exports.CONFIG = void 0;
4
+ const tslib_1 = require("tslib");
5
+ /**
6
+ * @description A wrapper around the Globus Compute service.
7
+ * @group Service
8
+ * @see [Globus Compute API Documentation](https://api2.funcx.org/redoc)
9
+ * @module
10
+ */
11
+ const COMPUTE = tslib_1.__importStar(require("./config.js"));
12
+ /**
13
+ * @private
14
+ * @internal
15
+ */
16
+ exports.CONFIG = COMPUTE;
17
+ exports.endpoints = tslib_1.__importStar(require("./service/endpoints.js"));
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/lib/services/compute/index.ts"],"names":[],"mappings":";;;;AAAA;;;;;GAKG;AACH,6DAAuC;AAEvC;;;GAGG;AACU,QAAA,MAAM,GAAG,OAAO,CAAC;AAE9B,4EAAoD"}
@@ -0,0 +1,24 @@
1
+ import type { operations } from '@globus/types/compute';
2
+ import type { JSONFetchResponse } from '../../types.js';
3
+ export declare const getAll: (options?: ({
4
+ query: operations['get_endpoints_v2_endpoints_get']['parameters']['query'];
5
+ } & import("../../types.js").BaseServiceMethodOptions) | undefined, sdkOptions?: import("../../types.js").SDKOptions | undefined) => Promise<JSONFetchResponse<operations['get_endpoints_v2_endpoints_get']['responses']['200']['content']['application/json']>>;
6
+ export declare const get: (endpoint_uuid: string, options?: ({
7
+ query?: undefined;
8
+ payload?: undefined;
9
+ } & {
10
+ query?: {
11
+ [key: string]: string | number | boolean | (string | number | null | undefined)[] | null | undefined;
12
+ } | undefined;
13
+ headers?: import("../../types.js").Headers | undefined;
14
+ }) | undefined, sdkOptions?: import("../../types.js").SDKOptions | undefined) => Promise<JSONFetchResponse<operations['get_endpoint_v2_endpoints__endpoint_uuid__get']['responses']['200']['content']['application/json']>>;
15
+ export declare const getStatus: (endpoint_uuid: string, options?: ({
16
+ query?: undefined;
17
+ payload?: undefined;
18
+ } & {
19
+ query?: {
20
+ [key: string]: string | number | boolean | (string | number | null | undefined)[] | null | undefined;
21
+ } | undefined;
22
+ headers?: import("../../types.js").Headers | undefined;
23
+ }) | undefined, sdkOptions?: import("../../types.js").SDKOptions | undefined) => Promise<JSONFetchResponse<operations['get_endpoint_status_v2_endpoints__endpoint_uuid__status_get']['responses']['200']['content']['application/json']>>;
24
+ //# sourceMappingURL=endpoints.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"endpoints.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/services/compute/service/endpoints.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAIxD,OAAO,KAAK,EAGV,iBAAiB,EAClB,MAAM,gBAAgB,CAAC;AAExB,eAAO,MAAM,MAAM;WAmBV,UAAU,CAAC,gCAAgC,CAAC,CAAC,YAAY,CAAC,CAAC,OAAO,CAAC;qIAhBzE,QACD,kBACE,UAAU,CAAC,gCAAgC,CAAC,CAAC,WAAW,CAAC,CAAC,KAAK,CAAC,CAAC,SAAS,CAAC,CAAC,kBAAkB,CAAC,CAChG,CAcD,CAAC;AAEH,eAAO,MAAM,GAAG;;;;;;;;iFAIb,QACD,kBACE,UAAU,CAAC,+CAA+C,CAAC,CAAC,WAAW,CAAC,CAAC,KAAK,CAAC,CAAC,SAAS,CAAC,CAAC,kBAAkB,CAAC,CAC/G,CAkBF,CAAC;AAEF,eAAO,MAAM,SAAS;;;;;;;;iFAInB,QACD,kBACE,UAAU,CAAC,6DAA6D,CAAC,CAAC,WAAW,CAAC,CAAC,KAAK,CAAC,CAAC,SAAS,CAAC,CAAC,kBAAkB,CAAC,CAC7H,CAiBF,CAAC"}
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getStatus = exports.get = exports.getAll = void 0;
4
+ const shared_js_1 = require("../../shared.js");
5
+ const config_js_1 = require("../config.js");
6
+ exports.getAll = function (options, sdkOptions) {
7
+ return (0, shared_js_1.serviceRequest)({
8
+ service: config_js_1.ID,
9
+ scope: config_js_1.SCOPES.ALL,
10
+ path: '/v2/endpoints',
11
+ method: shared_js_1.HTTP_METHODS.GET,
12
+ }, options, sdkOptions);
13
+ };
14
+ exports.get = function (endpoint_uuid, options, sdkOptions) {
15
+ return (0, shared_js_1.serviceRequest)({
16
+ service: config_js_1.ID,
17
+ scope: config_js_1.SCOPES.ALL,
18
+ path: `/v2/endpoints/${endpoint_uuid}`,
19
+ method: shared_js_1.HTTP_METHODS.GET,
20
+ }, options, sdkOptions);
21
+ };
22
+ exports.getStatus = function (endpoint_uuid, options, sdkOptions) {
23
+ return (0, shared_js_1.serviceRequest)({
24
+ service: config_js_1.ID,
25
+ scope: config_js_1.SCOPES.ALL,
26
+ path: `/v2/endpoints/${endpoint_uuid}/status`,
27
+ }, options, sdkOptions);
28
+ };
29
+ //# sourceMappingURL=endpoints.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"endpoints.js","sourceRoot":"","sources":["../../../../../../src/lib/services/compute/service/endpoints.ts"],"names":[],"mappings":";;;AACA,+CAA+D;AAC/D,4CAA0C;AAQ7B,QAAA,MAAM,GAAG,UACpB,OAAQ,EACR,UAAW;IAMX,OAAO,IAAA,0BAAc,EACnB;QACE,OAAO,EAAE,cAAE;QACX,KAAK,EAAE,kBAAM,CAAC,GAAG;QACjB,IAAI,EAAE,eAAe;QACrB,MAAM,EAAE,wBAAY,CAAC,GAAG;KACzB,EACD,OAAO,EACP,UAAU,CACX,CAAC;AACJ,CAEE,CAAC;AAEU,QAAA,GAAG,GAAG,UACjB,aAAa,EACb,OAAQ,EACR,UAAW;IAMX,OAAO,IAAA,0BAAc,EACnB;QACE,OAAO,EAAE,cAAE;QACX,KAAK,EAAE,kBAAM,CAAC,GAAG;QACjB,IAAI,EAAE,iBAAiB,aAAa,EAAE;QACtC,MAAM,EAAE,wBAAY,CAAC,GAAG;KACzB,EACD,OAAO,EACP,UAAU,CACX,CAAC;AACJ,CAMC,CAAC;AAEW,QAAA,SAAS,GAAG,UACvB,aAAa,EACb,OAAQ,EACR,UAAW;IAMX,OAAO,IAAA,0BAAc,EACnB;QACE,OAAO,EAAE,cAAE;QACX,KAAK,EAAE,kBAAM,CAAC,GAAG;QACjB,IAAI,EAAE,iBAAiB,aAAa,SAAS;KAC9C,EACD,OAAO,EACP,UAAU,CACX,CAAC;AACJ,CAMC,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import type { Environment } from '../../core/global.js';
2
- export declare const ID = "FLOWS";
2
+ export declare const ID: "FLOWS";
3
3
  export declare const HOSTS: Partial<Record<Environment, string>>;
4
4
  /**
5
5
  * @see https://docs.globus.org/api/flows/overview/#scopes
@@ -1 +1 @@
1
- {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../../../src/lib/services/flows/config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAExD,eAAO,MAAM,EAAE,UAAU,CAAC;AAC1B,eAAO,MAAM,KAAK,EAAE,OAAO,CAAC,MAAM,CAAC,WAAW,EAAE,MAAM,CAAC,CAOtD,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,MAAM;;;;;;CAMlB,CAAC"}
1
+ {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../../../src/lib/services/flows/config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAExD,eAAO,MAAM,EAAE,SAAmB,CAAC;AACnC,eAAO,MAAM,KAAK,EAAE,OAAO,CAAC,MAAM,CAAC,WAAW,EAAE,MAAM,CAAC,CAOtD,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,MAAM;;;;;;CAMlB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"config.js","sourceRoot":"","sources":["../../../../../src/lib/services/flows/config.ts"],"names":[],"mappings":";;;AAEa,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,EAAE,kFAAkF;IAChG,UAAU,EAAE,gFAAgF;IAC5F,GAAG,EAAE,yEAAyE;IAC9E,UAAU,EAAE,gFAAgF;IAC5F,UAAU,EAAE,gFAAgF;CAC7F,CAAC"}
1
+ {"version":3,"file":"config.js","sourceRoot":"","sources":["../../../../../src/lib/services/flows/config.ts"],"names":[],"mappings":";;;AAEa,QAAA,EAAE,GAAG,OAAgB,CAAC;AACtB,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,EAAE,kFAAkF;IAChG,UAAU,EAAE,gFAAgF;IAC5F,GAAG,EAAE,yEAAyE;IAC9E,UAAU,EAAE,gFAAgF;IAC5F,UAAU,EAAE,gFAAgF;CAC7F,CAAC"}