@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.
Files changed (169) hide show
  1. package/dist/browser.cjs.js +1 -0
  2. package/dist/browser.esm.js +1 -0
  3. package/dist/browser.js +1 -0
  4. package/dist/common/src/index.d.ts +5 -4
  5. package/dist/common/src/index.d.ts.map +1 -1
  6. package/dist/common/src/index.js +2 -1
  7. package/dist/common/src/index.js.map +1 -1
  8. package/dist/common/src/lib/core/authorization.d.ts.map +1 -1
  9. package/dist/common/src/lib/core/authorization.js +4 -2
  10. package/dist/common/src/lib/core/authorization.js.map +1 -1
  11. package/dist/common/src/lib/core/global.d.ts +9 -7
  12. package/dist/common/src/lib/core/global.d.ts.map +1 -1
  13. package/dist/common/src/lib/core/global.js +20 -15
  14. package/dist/common/src/lib/core/global.js.map +1 -1
  15. package/dist/common/src/lib/core/url.d.ts +3 -2
  16. package/dist/common/src/lib/core/url.d.ts.map +1 -1
  17. package/dist/common/src/lib/core/url.js +4 -11
  18. package/dist/common/src/lib/core/url.js.map +1 -1
  19. package/dist/common/src/lib/services/auth/service/scopes.d.ts +26 -0
  20. package/dist/common/src/lib/services/auth/service/scopes.d.ts.map +1 -0
  21. package/dist/common/src/lib/services/auth/service/scopes.js +31 -0
  22. package/dist/common/src/lib/services/auth/service/scopes.js.map +1 -0
  23. package/dist/common/src/lib/services/auth/utils.d.ts +26 -0
  24. package/dist/common/src/lib/services/auth/utils.d.ts.map +1 -0
  25. package/dist/common/src/lib/services/auth/utils.js +55 -0
  26. package/dist/common/src/lib/services/auth/utils.js.map +1 -0
  27. package/dist/common/src/lib/services/flows/config.d.ts +14 -0
  28. package/dist/common/src/lib/services/flows/config.d.ts.map +1 -0
  29. package/dist/common/src/lib/services/flows/config.js +23 -0
  30. package/dist/common/src/lib/services/flows/config.js.map +1 -0
  31. package/dist/common/src/lib/services/flows/index.d.ts +12 -0
  32. package/dist/common/src/lib/services/flows/index.d.ts.map +1 -0
  33. package/dist/common/src/lib/services/flows/index.js +15 -0
  34. package/dist/common/src/lib/services/flows/index.js.map +1 -0
  35. package/dist/common/src/lib/services/flows/service/batch.d.ts +3 -0
  36. package/dist/common/src/lib/services/flows/service/batch.d.ts.map +1 -0
  37. package/dist/common/src/lib/services/flows/service/batch.js +4 -0
  38. package/dist/common/src/lib/services/flows/service/batch.js.map +1 -0
  39. package/dist/common/src/lib/services/flows/service/flows.d.ts +13 -0
  40. package/dist/common/src/lib/services/flows/service/flows.d.ts.map +1 -0
  41. package/dist/common/src/lib/services/flows/service/flows.js +30 -0
  42. package/dist/common/src/lib/services/flows/service/flows.js.map +1 -0
  43. package/dist/common/src/lib/services/flows/service/runs.d.ts +6 -0
  44. package/dist/common/src/lib/services/flows/service/runs.d.ts.map +1 -0
  45. package/dist/common/src/lib/services/flows/service/runs.js +17 -0
  46. package/dist/common/src/lib/services/flows/service/runs.js.map +1 -0
  47. package/dist/common/src/lib/services/globus-connect-server/index.d.ts +13 -0
  48. package/dist/common/src/lib/services/globus-connect-server/index.d.ts.map +1 -0
  49. package/dist/common/src/lib/services/globus-connect-server/index.js +33 -0
  50. package/dist/common/src/lib/services/globus-connect-server/index.js.map +1 -0
  51. package/dist/common/src/lib/services/globus-connect-server/service/endpoint.d.ts +5 -0
  52. package/dist/common/src/lib/services/globus-connect-server/service/endpoint.d.ts.map +1 -0
  53. package/dist/common/src/lib/services/globus-connect-server/service/endpoint.js +15 -0
  54. package/dist/common/src/lib/services/globus-connect-server/service/endpoint.js.map +1 -0
  55. package/dist/common/src/lib/services/globus-connect-server/service/versioning.d.ts +6 -0
  56. package/dist/common/src/lib/services/globus-connect-server/service/versioning.d.ts.map +1 -0
  57. package/dist/common/src/lib/services/globus-connect-server/service/versioning.js +16 -0
  58. package/dist/common/src/lib/services/globus-connect-server/service/versioning.js.map +1 -0
  59. package/dist/common/src/lib/services/search/config.d.ts +12 -0
  60. package/dist/common/src/lib/services/search/config.d.ts.map +1 -0
  61. package/dist/common/src/lib/services/search/config.js +21 -0
  62. package/dist/common/src/lib/services/search/config.js.map +1 -0
  63. package/dist/common/src/lib/services/search/index.d.ts +10 -0
  64. package/dist/common/src/lib/services/search/index.d.ts.map +1 -0
  65. package/dist/common/src/lib/services/search/index.js +13 -0
  66. package/dist/common/src/lib/services/search/index.js.map +1 -0
  67. package/dist/common/src/lib/services/search/service/query.d.ts +13 -0
  68. package/dist/common/src/lib/services/search/service/query.d.ts.map +1 -0
  69. package/dist/common/src/lib/services/search/service/query.js +16 -0
  70. package/dist/common/src/lib/services/search/service/query.js.map +1 -0
  71. package/dist/common/src/lib/services/transfer/service/endpoint-search.js +1 -1
  72. package/dist/common/src/lib/services/transfer/service/endpoint-search.js.map +1 -1
  73. package/dist/common/src/lib/services/transfer/service/endpoint.d.ts +4 -4
  74. package/dist/common/src/lib/services/transfer/service/endpoint.d.ts.map +1 -1
  75. package/dist/common/src/lib/services/transfer/service/endpoint.js +4 -2
  76. package/dist/common/src/lib/services/transfer/service/endpoint.js.map +1 -1
  77. package/dist/common/src/lib/services/transfer/service/file-operations.d.ts +7 -8
  78. package/dist/common/src/lib/services/transfer/service/file-operations.d.ts.map +1 -1
  79. package/dist/common/src/lib/services/transfer/service/file-operations.js +6 -10
  80. package/dist/common/src/lib/services/transfer/service/file-operations.js.map +1 -1
  81. package/dist/common/src/lib/services/transfer/service/task-submission.js.map +1 -1
  82. package/dist/common/src/lib/services/types.d.ts +9 -4
  83. package/dist/common/src/lib/services/types.d.ts.map +1 -1
  84. package/dist/common/tsconfig.cjs.tsbuildinfo +1 -1
  85. package/dist/index.cjs.js +1 -0
  86. package/dist/index.esm.js +1 -0
  87. package/dist/index.js +1 -0
  88. package/dist/src/index.d.ts +5 -4
  89. package/dist/src/index.d.ts.map +1 -1
  90. package/dist/src/index.js +6 -4
  91. package/dist/src/index.js.map +1 -1
  92. package/dist/src/lib/core/authorization.d.ts.map +1 -1
  93. package/dist/src/lib/core/authorization.js +4 -2
  94. package/dist/src/lib/core/authorization.js.map +1 -1
  95. package/dist/src/lib/core/global.d.ts +9 -7
  96. package/dist/src/lib/core/global.d.ts.map +1 -1
  97. package/dist/src/lib/core/global.js +20 -14
  98. package/dist/src/lib/core/global.js.map +1 -1
  99. package/dist/src/lib/core/url.d.ts +3 -2
  100. package/dist/src/lib/core/url.d.ts.map +1 -1
  101. package/dist/src/lib/core/url.js +5 -12
  102. package/dist/src/lib/core/url.js.map +1 -1
  103. package/dist/src/lib/services/auth/service/scopes.d.ts +26 -0
  104. package/dist/src/lib/services/auth/service/scopes.d.ts.map +1 -0
  105. package/dist/src/lib/services/auth/service/scopes.js +28 -0
  106. package/dist/src/lib/services/auth/service/scopes.js.map +1 -0
  107. package/dist/src/lib/services/auth/utils.d.ts +26 -0
  108. package/dist/src/lib/services/auth/utils.d.ts.map +1 -0
  109. package/dist/src/lib/services/auth/utils.js +41 -0
  110. package/dist/src/lib/services/auth/utils.js.map +1 -0
  111. package/dist/src/lib/services/flows/config.d.ts +14 -0
  112. package/dist/src/lib/services/flows/config.d.ts.map +1 -0
  113. package/dist/src/lib/services/flows/config.js +20 -0
  114. package/dist/src/lib/services/flows/config.js.map +1 -0
  115. package/dist/src/lib/services/flows/index.d.ts +12 -0
  116. package/dist/src/lib/services/flows/index.d.ts.map +1 -0
  117. package/dist/src/lib/services/flows/index.js +15 -0
  118. package/dist/src/lib/services/flows/index.js.map +1 -0
  119. package/dist/src/lib/services/flows/service/batch.d.ts +3 -0
  120. package/dist/src/lib/services/flows/service/batch.d.ts.map +1 -0
  121. package/dist/src/lib/services/flows/service/batch.js +2 -0
  122. package/dist/src/lib/services/flows/service/batch.js.map +1 -0
  123. package/dist/src/lib/services/flows/service/flows.d.ts +13 -0
  124. package/dist/src/lib/services/flows/service/flows.d.ts.map +1 -0
  125. package/dist/src/lib/services/flows/service/flows.js +27 -0
  126. package/dist/src/lib/services/flows/service/flows.js.map +1 -0
  127. package/dist/src/lib/services/flows/service/runs.d.ts +6 -0
  128. package/dist/src/lib/services/flows/service/runs.d.ts.map +1 -0
  129. package/dist/src/lib/services/flows/service/runs.js +14 -0
  130. package/dist/src/lib/services/flows/service/runs.js.map +1 -0
  131. package/dist/src/lib/services/globus-connect-server/index.d.ts +13 -0
  132. package/dist/src/lib/services/globus-connect-server/index.d.ts.map +1 -0
  133. package/dist/src/lib/services/globus-connect-server/index.js +30 -0
  134. package/dist/src/lib/services/globus-connect-server/index.js.map +1 -0
  135. package/dist/src/lib/services/globus-connect-server/service/endpoint.d.ts +5 -0
  136. package/dist/src/lib/services/globus-connect-server/service/endpoint.d.ts.map +1 -0
  137. package/dist/src/lib/services/globus-connect-server/service/endpoint.js +12 -0
  138. package/dist/src/lib/services/globus-connect-server/service/endpoint.js.map +1 -0
  139. package/dist/src/lib/services/globus-connect-server/service/versioning.d.ts +6 -0
  140. package/dist/src/lib/services/globus-connect-server/service/versioning.d.ts.map +1 -0
  141. package/dist/src/lib/services/globus-connect-server/service/versioning.js +13 -0
  142. package/dist/src/lib/services/globus-connect-server/service/versioning.js.map +1 -0
  143. package/dist/src/lib/services/search/config.d.ts +12 -0
  144. package/dist/src/lib/services/search/config.d.ts.map +1 -0
  145. package/dist/src/lib/services/search/config.js +18 -0
  146. package/dist/src/lib/services/search/config.js.map +1 -0
  147. package/dist/src/lib/services/search/index.d.ts +10 -0
  148. package/dist/src/lib/services/search/index.d.ts.map +1 -0
  149. package/dist/src/lib/services/search/index.js +11 -0
  150. package/dist/src/lib/services/search/index.js.map +1 -0
  151. package/dist/src/lib/services/search/service/query.d.ts +13 -0
  152. package/dist/src/lib/services/search/service/query.d.ts.map +1 -0
  153. package/dist/src/lib/services/search/service/query.js +13 -0
  154. package/dist/src/lib/services/search/service/query.js.map +1 -0
  155. package/dist/src/lib/services/transfer/service/endpoint-search.js +1 -1
  156. package/dist/src/lib/services/transfer/service/endpoint-search.js.map +1 -1
  157. package/dist/src/lib/services/transfer/service/endpoint.d.ts +4 -4
  158. package/dist/src/lib/services/transfer/service/endpoint.d.ts.map +1 -1
  159. package/dist/src/lib/services/transfer/service/endpoint.js +4 -1
  160. package/dist/src/lib/services/transfer/service/endpoint.js.map +1 -1
  161. package/dist/src/lib/services/transfer/service/file-operations.d.ts +7 -8
  162. package/dist/src/lib/services/transfer/service/file-operations.d.ts.map +1 -1
  163. package/dist/src/lib/services/transfer/service/file-operations.js +3 -3
  164. package/dist/src/lib/services/transfer/service/file-operations.js.map +1 -1
  165. package/dist/src/lib/services/transfer/service/task-submission.js.map +1 -1
  166. package/dist/src/lib/services/types.d.ts +9 -4
  167. package/dist/src/lib/services/types.d.ts.map +1 -1
  168. package/dist/tsconfig.tsbuildinfo +1 -1
  169. package/package.json +14 -9
@@ -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,41 @@
1
+ import { __rest } from "tslib";
2
+ /**
3
+ * Given a response object, normalize, and extract the `authorization_parameters` for use
4
+ * as query parameters in a authorization redirect.
5
+ *
6
+ * @see https://docs.globus.org/api/auth/sessions/#required-error-format
7
+ */
8
+ export function extractAuthorizationParameters(response) {
9
+ if (!response.authorization_parameters) {
10
+ return false;
11
+ }
12
+ const _a = response.authorization_parameters, { session_required_single_domain, session_required_policies } = _a, properties = __rest(_a, ["session_required_single_domain", "session_required_policies"]);
13
+ let domains = [];
14
+ /**
15
+ * If `session_required_domains` is present, use that.
16
+ */
17
+ if ("session_required_domains" in properties) {
18
+ domains = properties.session_required_domains;
19
+ }
20
+ else if (session_required_single_domain) {
21
+ /**
22
+ * Otherwise, if `session_required_single_domain` is present, parse it
23
+ * to meet the same format as `session_required_domains`.
24
+ *
25
+ * If the value is an array, it is likely coming from Transfer.
26
+ */
27
+ domains = Array.isArray(session_required_single_domain)
28
+ ? session_required_single_domain
29
+ : [session_required_single_domain];
30
+ }
31
+ const normalized = Object.assign(Object.assign({}, properties), { session_required_policies: typeof session_required_policies === "string"
32
+ ? session_required_policies.split(",")
33
+ : session_required_policies, session_required_domains: domains });
34
+ return Object.entries(normalized).reduce((acc, [key, value]) => {
35
+ if (value) {
36
+ acc[key] = value.toString();
37
+ }
38
+ return acc;
39
+ }, {});
40
+ }
41
+ //# 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,MAAM,UAAU,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"}
@@ -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,20 @@
1
+ export const ID = "FLOWS";
2
+ export const HOSTS = {
3
+ sandbox: "sandbox.flows.automate.globus.org",
4
+ production: "flows.globus.org",
5
+ staging: "staging.flows.automate.globus.org",
6
+ integration: "integration.flows.automate.globus.org",
7
+ test: "test.flows.automate.globus.org",
8
+ preview: "preview.flows.automate.globus.org",
9
+ };
10
+ /**
11
+ * @see https://docs.globus.org/api/flows/overview/#scopes
12
+ */
13
+ export const SCOPES = {
14
+ MANAGE_FLOWS: "https://auth.globus.org/scopes/eec9b274-0c81-4334-bdc2-54e90e689b9a/manage_flows",
15
+ VIEW_FLOWS: "https://auth.globus.org/scopes/eec9b274-0c81-4334-bdc2-54e90e689b9a/view_flows",
16
+ RUN: "https://auth.globus.org/scopes/eec9b274-0c81-4334-bdc2-54e90e689b9a/run",
17
+ RUN_STATUS: "https://auth.globus.org/scopes/eec9b274-0c81-4334-bdc2-54e90e689b9a/run_status",
18
+ RUN_MANAGE: "https://auth.globus.org/scopes/eec9b274-0c81-4334-bdc2-54e90e689b9a/run_manage",
19
+ };
20
+ //# sourceMappingURL=config.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"config.js","sourceRoot":"","sources":["../../../../../src/lib/services/flows/config.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,EAAE,GAAG,OAAO,CAAC;AAC1B,MAAM,CAAC,MAAM,KAAK,GAAyC;IACzD,OAAO,EAAE,mCAAmC;IAC5C,UAAU,EAAE,kBAAkB;IAC9B,OAAO,EAAE,mCAAmC;IAC5C,WAAW,EAAE,uCAAuC;IACpD,IAAI,EAAE,gCAAgC;IACtC,OAAO,EAAE,mCAAmC;CAC7C,CAAC;AAEF;;GAEG;AACH,MAAM,CAAC,MAAM,MAAM,GAAG;IACpB,YAAY,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
+ /**
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 const CONFIG = FLOWS;
9
+ import * as flows_1 from "./service/flows";
10
+ export { flows_1 as flows };
11
+ import * as runs_1 from "./service/runs";
12
+ export { runs_1 as runs };
13
+ import * as batch_1 from "./service/batch";
14
+ export { batch_1 as 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,OAAO,KAAK,KAAK,MAAM,UAAU,CAAC;AAClC,MAAM,CAAC,MAAM,MAAM,GAAG,KAAK,CAAC;yBAEL,iBAAiB;oBAA5B,KAAK;wBACK,gBAAgB;mBAA1B,IAAI;yBACO,iBAAiB;oBAA5B,KAAK"}
@@ -0,0 +1,3 @@
1
+ declare const _default: {};
2
+ export default _default;
3
+ //# sourceMappingURL=batch.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"batch.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/services/flows/service/batch.ts"],"names":[],"mappings":";AAAA,wBAAkB"}
@@ -0,0 +1,2 @@
1
+ export default {};
2
+ //# sourceMappingURL=batch.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"batch.js","sourceRoot":"","sources":["../../../../../../src/lib/services/flows/service/batch.ts"],"names":[],"mappings":"AAAA,eAAe,EAAE,CAAC"}
@@ -0,0 +1,13 @@
1
+ /**
2
+ * @see https://globusonline.github.io/flows/#tag/Flows/paths/~1flows/get
3
+ */
4
+ export declare const getAll: (parameters?: Record<string, string> | undefined, options?: import("../../../services/types").SDKOptions | undefined) => Promise<Response>;
5
+ /**
6
+ * @see https://globusonline.github.io/flows/#tag/Flows/paths/~1flows~1{flow_id}/get
7
+ */
8
+ export declare const get: (flow_id: string, _parameters: undefined, sdkOptions?: import("../../../services/types").SDKOptions | undefined) => Promise<Response>;
9
+ /**
10
+ * @see https://globusonline.github.io/flows/#tag/Flows/paths/~1flows~1{flow_id}/delete
11
+ */
12
+ export declare const destroy: (flow_id: string, _parameters?: undefined, sdkOptions?: import("../../../services/types").SDKOptions | undefined) => Promise<Response>;
13
+ //# sourceMappingURL=flows.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"flows.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/services/flows/service/flows.ts"],"names":[],"mappings":"AAUA;;GAEG;AACH,eAAO,MAAM,MAAM,4IAQ8B,CAAC;AAElD;;GAEG;AACH,eAAO,MAAM,GAAG,uIAIuC,CAAC;AAExD;;GAEG;AACH,eAAO,MAAM,OAAO,wIAKmC,CAAC"}
@@ -0,0 +1,27 @@
1
+ import { build } from "../../../core/url";
2
+ import { fetchWithScope } from "../../../core/fetch";
3
+ import { ID, SCOPES } from "../config";
4
+ /**
5
+ * @see https://globusonline.github.io/flows/#tag/Flows/paths/~1flows/get
6
+ */
7
+ export const getAll = function (parameters = {}, options) {
8
+ var _a;
9
+ return fetchWithScope(SCOPES.VIEW_FLOWS, build(ID, `/flows`, {
10
+ search: parameters,
11
+ }), (_a = options === null || options === void 0 ? void 0 : options.fetch) === null || _a === void 0 ? void 0 : _a.options);
12
+ };
13
+ /**
14
+ * @see https://globusonline.github.io/flows/#tag/Flows/paths/~1flows~1{flow_id}/get
15
+ */
16
+ export const get = function (flow_id, _parameters, sdkOptions) {
17
+ var _a;
18
+ return fetchWithScope(SCOPES.VIEW_FLOWS, build(ID, `/flows/${flow_id}`), Object.assign({}, (_a = sdkOptions === null || sdkOptions === void 0 ? void 0 : sdkOptions.fetch) === null || _a === void 0 ? void 0 : _a.options));
19
+ };
20
+ /**
21
+ * @see https://globusonline.github.io/flows/#tag/Flows/paths/~1flows~1{flow_id}/delete
22
+ */
23
+ export const destroy = function (flow_id, _parameters, sdkOptions) {
24
+ var _a;
25
+ return fetchWithScope(SCOPES.MANAGE_FLOWS, build(ID, `/flows/${flow_id}`), Object.assign(Object.assign({}, (_a = sdkOptions === null || sdkOptions === void 0 ? void 0 : sdkOptions.fetch) === null || _a === void 0 ? void 0 : _a.options), { method: "DELETE" }));
26
+ };
27
+ //# sourceMappingURL=flows.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"flows.js","sourceRoot":"","sources":["../../../../../../src/lib/services/flows/service/flows.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC1C,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAOrD,OAAO,EAAE,EAAE,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAEvC;;GAEG;AACH,MAAM,CAAC,MAAM,MAAM,GAAG,UAAU,UAAU,GAAG,EAAE,EAAE,OAAQ;;IACvD,OAAO,cAAc,CACnB,MAAM,CAAC,UAAU,EACjB,KAAK,CAAC,EAAE,EAAE,QAAQ,EAAE;QAClB,MAAM,EAAE,UAAU;KACnB,CAAC,EACF,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,KAAK,0CAAE,OAAO,CACxB,CAAC;AACJ,CAAiD,CAAC;AAElD;;GAEG;AACH,MAAM,CAAC,MAAM,GAAG,GAAG,UAAU,OAAO,EAAE,WAAW,EAAE,UAAW;;IAC5D,OAAO,cAAc,CAAC,MAAM,CAAC,UAAU,EAAE,KAAK,CAAC,EAAE,EAAE,UAAU,OAAO,EAAE,CAAC,oBAClE,MAAA,UAAU,aAAV,UAAU,uBAAV,UAAU,CAAE,KAAK,0CAAE,OAAO,EAC7B,CAAC;AACL,CAAuD,CAAC;AAExD;;GAEG;AACH,MAAM,CAAC,MAAM,OAAO,GAAG,UAAU,OAAO,EAAE,WAAY,EAAE,UAAW;;IACjE,OAAO,cAAc,CAAC,MAAM,CAAC,YAAY,EAAE,KAAK,CAAC,EAAE,EAAE,UAAU,OAAO,EAAE,CAAC,kCACpE,MAAA,UAAU,aAAV,UAAU,uBAAV,UAAU,CAAE,KAAK,0CAAE,OAAO,KAC7B,MAAM,EAAE,QAAQ,IAChB,CAAC;AACL,CAAuD,CAAC"}
@@ -0,0 +1,6 @@
1
+ /**
2
+ *
3
+ * @see https://globusonline.github.io/flows/#tag/Runs/paths/~1runs/get
4
+ */
5
+ export declare const getAll: (parameters?: Record<string, string> | undefined, options?: import("../../../services/types").SDKOptions | undefined) => Promise<Response>;
6
+ //# sourceMappingURL=runs.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"runs.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/services/flows/service/runs.ts"],"names":[],"mappings":"AAOA;;;GAGG;AACH,eAAO,MAAM,MAAM,4IAQ8B,CAAC"}
@@ -0,0 +1,14 @@
1
+ import { build } from "../../../core/url";
2
+ import { fetchWithScope } from "../../../core/fetch";
3
+ import { ID, SCOPES } from "../config";
4
+ /**
5
+ *
6
+ * @see https://globusonline.github.io/flows/#tag/Runs/paths/~1runs/get
7
+ */
8
+ export const getAll = function (parameters = {}, options) {
9
+ var _a;
10
+ return fetchWithScope(SCOPES.RUN_MANAGE, build(ID, `/runs`, {
11
+ search: parameters,
12
+ }), (_a = options === null || options === void 0 ? void 0 : options.fetch) === null || _a === void 0 ? void 0 : _a.options);
13
+ };
14
+ //# sourceMappingURL=runs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"runs.js","sourceRoot":"","sources":["../../../../../../src/lib/services/flows/service/runs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC1C,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAIrD,OAAO,EAAE,EAAE,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAEvC;;;GAGG;AACH,MAAM,CAAC,MAAM,MAAM,GAAG,UAAU,UAAU,GAAG,EAAE,EAAE,OAAQ;;IACvD,OAAO,cAAc,CACnB,MAAM,CAAC,UAAU,EACjB,KAAK,CAAC,EAAE,EAAE,OAAO,EAAE;QACjB,MAAM,EAAE,UAAU;KACnB,CAAC,EACF,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,KAAK,0CAAE,OAAO,CACxB,CAAC;AACJ,CAAiD,CAAC"}
@@ -0,0 +1,13 @@
1
+ /**
2
+ * @description A wrapper around the Globus Flows service.
3
+ * @category Service
4
+ * @see [Globus Connect Server Manager API Documentation](https://docs.globus.org/globus-connect-server/v5.4/api/)
5
+ * @module
6
+ */
7
+ import { build as _build } from "../../core/url";
8
+ type BuildParameters = Parameters<typeof _build>;
9
+ export declare function getRequiredScopes(): string;
10
+ export declare function build(path: BuildParameters[1], options: BuildParameters[2]): string;
11
+ export * as versioning from "./service/versioning";
12
+ export * as endpoint from "./service/endpoint";
13
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/lib/services/globus-connect-server/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,gBAAgB,CAAC;AACjD,KAAK,eAAe,GAAG,UAAU,CAAC,OAAO,MAAM,CAAC,CAAC;AAajD,wBAAgB,iBAAiB,WAEhC;AAED,wBAAgB,KAAK,CAAC,IAAI,EAAE,eAAe,CAAC,CAAC,CAAC,EAAE,OAAO,EAAE,eAAe,CAAC,CAAC,CAAC,UAO1E;AAED,OAAO,KAAK,UAAU,MAAM,sBAAsB,CAAC;AACnD,OAAO,KAAK,QAAQ,MAAM,oBAAoB,CAAC"}
@@ -0,0 +1,30 @@
1
+ /**
2
+ * @description A wrapper around the Globus Flows service.
3
+ * @category Service
4
+ * @see [Globus Connect Server Manager API Documentation](https://docs.globus.org/globus-connect-server/v5.4/api/)
5
+ * @module
6
+ */
7
+ /**
8
+ * @todo Replace with the actual URL.
9
+ */
10
+ const GCS_MANAGER_URL = "";
11
+ const SCOPES = {
12
+ HIGH_ASSURANCE: "urn:globus:auth:scope:ENDPOINT_ID:manage_collections",
13
+ NON_HIGH_ASSURANCE: "urn:globus:auth:scope:ENDPOINT_ID:manage_collections[*https://auth.globus.org/scopes/MAPPED_COLLECTION_ID/data_access]",
14
+ };
15
+ export function getRequiredScopes() {
16
+ return SCOPES.HIGH_ASSURANCE;
17
+ }
18
+ export function build(path, options) {
19
+ const url = new URL(path, GCS_MANAGER_URL);
20
+ if (options && options.search) {
21
+ const search = new URLSearchParams(options.search);
22
+ url.search = search.toString();
23
+ }
24
+ return url.toString();
25
+ }
26
+ import * as versioning_1 from "./service/versioning";
27
+ export { versioning_1 as versioning };
28
+ import * as endpoint_1 from "./service/endpoint";
29
+ export { endpoint_1 as endpoint };
30
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/lib/services/globus-connect-server/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAKH;;GAEG;AACH,MAAM,eAAe,GAAG,EAAE,CAAC;AAE3B,MAAM,MAAM,GAAG;IACb,cAAc,EAAE,sDAAsD;IACtE,kBAAkB,EAChB,wHAAwH;CAC3H,CAAC;AAEF,MAAM,UAAU,iBAAiB;IAC/B,OAAO,MAAM,CAAC,cAAc,CAAC;AAC/B,CAAC;AAED,MAAM,UAAU,KAAK,CAAC,IAAwB,EAAE,OAA2B;IACzE,MAAM,GAAG,GAAG,IAAI,GAAG,CAAC,IAAI,EAAE,eAAe,CAAC,CAAC;IAC3C,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;8BAE2B,sBAAsB;yBAAtC,UAAU;4BACI,oBAAoB;uBAAlC,QAAQ"}
@@ -0,0 +1,5 @@
1
+ /**
2
+ * @see https://docs.globus.org/globus-connect-server/v5.4/api/openapi_Endpoint/#getEndpoint
3
+ */
4
+ export declare const get: (parameters?: Record<string, string> | undefined, options?: import("../../types").SDKOptions | undefined) => Promise<Response>;
5
+ //# sourceMappingURL=endpoint.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"endpoint.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/services/globus-connect-server/service/endpoint.ts"],"names":[],"mappings":"AAKA;;GAEG;AACH,eAAO,MAAM,GAAG,gIAQiC,CAAC"}
@@ -0,0 +1,12 @@
1
+ import { build, getRequiredScopes } from "../index";
2
+ import { fetchWithScope } from "../../../core/fetch";
3
+ /**
4
+ * @see https://docs.globus.org/globus-connect-server/v5.4/api/openapi_Endpoint/#getEndpoint
5
+ */
6
+ export const get = function (parameters = {}, options) {
7
+ var _a;
8
+ return fetchWithScope(getRequiredScopes(), build(`/api/endpoint`, {
9
+ search: parameters,
10
+ }), (_a = options === null || options === void 0 ? void 0 : options.fetch) === null || _a === void 0 ? void 0 : _a.options);
11
+ };
12
+ //# sourceMappingURL=endpoint.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"endpoint.js","sourceRoot":"","sources":["../../../../../../src/lib/services/globus-connect-server/service/endpoint.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AACpD,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAIrD;;GAEG;AACH,MAAM,CAAC,MAAM,GAAG,GAAG,UAAU,UAAU,GAAG,EAAE,EAAE,OAAQ;;IACpD,OAAO,cAAc,CACnB,iBAAiB,EAAE,EACnB,KAAK,CAAC,eAAe,EAAE;QACrB,MAAM,EAAE,UAAU;KACnB,CAAC,EACF,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,KAAK,0CAAE,OAAO,CACxB,CAAC;AACJ,CAAiD,CAAC"}
@@ -0,0 +1,6 @@
1
+ /**
2
+ *
3
+ * @see https://docs.globus.org/globus-connect-server/v5.4/api/openapi_Versioning/#getInfo
4
+ */
5
+ export declare const getAll: (parameters?: Record<string, string> | undefined, options?: import("../../types").SDKOptions | undefined) => Promise<Response>;
6
+ //# sourceMappingURL=versioning.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"versioning.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/services/globus-connect-server/service/versioning.ts"],"names":[],"mappings":"AAKA;;;GAGG;AACH,eAAO,MAAM,MAAM,gIAQ8B,CAAC"}
@@ -0,0 +1,13 @@
1
+ import { build, getRequiredScopes } from "../index";
2
+ import { fetchWithScope } from "../../../core/fetch";
3
+ /**
4
+ *
5
+ * @see https://docs.globus.org/globus-connect-server/v5.4/api/openapi_Versioning/#getInfo
6
+ */
7
+ export const getAll = function (parameters = {}, options) {
8
+ var _a;
9
+ return fetchWithScope(getRequiredScopes(), build(`/api/info`, {
10
+ search: parameters,
11
+ }), (_a = options === null || options === void 0 ? void 0 : options.fetch) === null || _a === void 0 ? void 0 : _a.options);
12
+ };
13
+ //# sourceMappingURL=versioning.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"versioning.js","sourceRoot":"","sources":["../../../../../../src/lib/services/globus-connect-server/service/versioning.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AACpD,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAIrD;;;GAGG;AACH,MAAM,CAAC,MAAM,MAAM,GAAG,UAAU,UAAU,GAAG,EAAE,EAAE,OAAQ;;IACvD,OAAO,cAAc,CACnB,iBAAiB,EAAE,EACnB,KAAK,CAAC,WAAW,EAAE;QACjB,MAAM,EAAE,UAAU;KACnB,CAAC,EACF,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,KAAK,0CAAE,OAAO,CACxB,CAAC;AACJ,CAAiD,CAAC"}
@@ -0,0 +1,12 @@
1
+ import type { Environment } from "../../core/global";
2
+ export declare const ID = "SEARCH";
3
+ export declare const HOSTS: Partial<Record<Environment, string>>;
4
+ /**
5
+ * @see https://docs.globus.org/api/search/api_usage/#scopes
6
+ */
7
+ export declare const SCOPES: {
8
+ ALL: string;
9
+ INGEST: string;
10
+ SEARCH: string;
11
+ };
12
+ //# sourceMappingURL=config.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../../../src/lib/services/search/config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAErD,eAAO,MAAM,EAAE,WAAW,CAAC;AAC3B,eAAO,MAAM,KAAK,EAAE,OAAO,CAAC,MAAM,CAAC,WAAW,EAAE,MAAM,CAAC,CAOtD,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,MAAM;;;;CAIlB,CAAC"}
@@ -0,0 +1,18 @@
1
+ export const ID = "SEARCH";
2
+ export const HOSTS = {
3
+ sandbox: "search.api.sandbox.globuscs.info",
4
+ production: "search.api.globus.org",
5
+ staging: "search.api.staging.globuscs.info",
6
+ integration: "search.api.integration.globuscs.info",
7
+ test: "search.api.test.globuscs.info",
8
+ preview: "search.api.preview.globus.org",
9
+ };
10
+ /**
11
+ * @see https://docs.globus.org/api/search/api_usage/#scopes
12
+ */
13
+ export const SCOPES = {
14
+ ALL: "urn:globus:auth:scope:search.api.globus.org:all",
15
+ INGEST: "urn:globus:auth:scope:search.api.globus.org:ingest",
16
+ SEARCH: "urn:globus:auth:scope:search.api.globus.org:search",
17
+ };
18
+ //# sourceMappingURL=config.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"config.js","sourceRoot":"","sources":["../../../../../src/lib/services/search/config.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,EAAE,GAAG,QAAQ,CAAC;AAC3B,MAAM,CAAC,MAAM,KAAK,GAAyC;IACzD,OAAO,EAAE,kCAAkC;IAC3C,UAAU,EAAE,uBAAuB;IACnC,OAAO,EAAE,kCAAkC;IAC3C,WAAW,EAAE,sCAAsC;IACnD,IAAI,EAAE,+BAA+B;IACrC,OAAO,EAAE,+BAA+B;CACzC,CAAC;AAEF;;GAEG;AACH,MAAM,CAAC,MAAM,MAAM,GAAG;IACpB,GAAG,EAAE,iDAAiD;IACtD,MAAM,EAAE,oDAAoD;IAC5D,MAAM,EAAE,oDAAoD;CAC7D,CAAC"}
@@ -0,0 +1,10 @@
1
+ /**
2
+ * @description A wrapper around the Globus Search service.
3
+ * @category Service
4
+ * @see [Globus Search API Documentation](https://docs.globus.org/api/search/reference/
5
+ * @module
6
+ */
7
+ import * as SEARCH from "./config";
8
+ export declare const CONFIG: typeof SEARCH;
9
+ export * as query from "./service/query";
10
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/lib/services/search/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,KAAK,MAAM,MAAM,UAAU,CAAC;AACnC,eAAO,MAAM,MAAM,eAAS,CAAC;AAE7B,OAAO,KAAK,KAAK,MAAM,iBAAiB,CAAC"}
@@ -0,0 +1,11 @@
1
+ /**
2
+ * @description A wrapper around the Globus Search service.
3
+ * @category Service
4
+ * @see [Globus Search API Documentation](https://docs.globus.org/api/search/reference/
5
+ * @module
6
+ */
7
+ import * as SEARCH from "./config";
8
+ export const CONFIG = SEARCH;
9
+ import * as query_1 from "./service/query";
10
+ export { query_1 as query };
11
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/lib/services/search/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,KAAK,MAAM,MAAM,UAAU,CAAC;AACnC,MAAM,CAAC,MAAM,MAAM,GAAG,MAAM,CAAC;yBAEN,iBAAiB;oBAA5B,KAAK"}
@@ -0,0 +1,13 @@
1
+ /**
2
+ * @see https://docs.globus.org/api/search/reference/get_query/
3
+ */
4
+ export declare const get: (index_id: string, parameters: {
5
+ q: string;
6
+ offset?: `${number}` | undefined;
7
+ limit?: `${number}` | undefined;
8
+ advanced?: "true" | "false" | undefined;
9
+ bypass_visible_to?: "true" | "false" | undefined;
10
+ result_format_version?: string | undefined;
11
+ filter_principal_sets?: string | undefined;
12
+ } | undefined, sdkOptions?: import("../../types").SDKOptions | undefined) => Promise<Response>;
13
+ //# sourceMappingURL=query.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"query.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/services/search/service/query.ts"],"names":[],"mappings":"AAOA;;GAEG;AACH,eAAO,MAAM,GAAG;OAgBT,MAAM;;;;;;;8FAQZ,CAAC"}
@@ -0,0 +1,13 @@
1
+ import { build } from "../../../core/url";
2
+ import { fetchWithScope } from "../../../core/fetch";
3
+ import { ID, SCOPES } from "../config";
4
+ /**
5
+ * @see https://docs.globus.org/api/search/reference/get_query/
6
+ */
7
+ export const get = function (index_id, parameters, sdkOptions) {
8
+ var _a;
9
+ return fetchWithScope(SCOPES.SEARCH, build(ID, `/v1/index/${index_id}/search`, {
10
+ search: parameters,
11
+ }), Object.assign({}, (_a = sdkOptions === null || sdkOptions === void 0 ? void 0 : sdkOptions.fetch) === null || _a === void 0 ? void 0 : _a.options));
12
+ };
13
+ //# sourceMappingURL=query.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"query.js","sourceRoot":"","sources":["../../../../../../src/lib/services/search/service/query.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC1C,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAIrD,OAAO,EAAE,EAAE,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAEvC;;GAEG;AACH,MAAM,CAAC,MAAM,GAAG,GAAG,UAAU,QAAQ,EAAE,UAAU,EAAE,UAAW;;IAC5D,OAAO,cAAc,CACnB,MAAM,CAAC,MAAM,EACb,KAAK,CAAC,EAAE,EAAE,aAAa,QAAQ,SAAS,EAAE;QACxC,MAAM,EAAE,UAAU;KACnB,CAAC,oBAEG,MAAA,UAAU,aAAV,UAAU,uBAAV,UAAU,CAAE,KAAK,0CAAE,OAAO,EAEhC,CAAC;AACJ,CAcC,CAAC"}
@@ -11,7 +11,7 @@ export default function endpointSearch(
11
11
  parameters, options) {
12
12
  var _a;
13
13
  return fetchWithScope("urn:globus:auth:scope:transfer.api.globus.org:all", build(ID, `/v0.10/endpoint_search`, {
14
- search: parameters,
14
+ search: parameters !== null && parameters !== void 0 ? parameters : {},
15
15
  }), (_a = options === null || options === void 0 ? void 0 : options.fetch) === null || _a === void 0 ? void 0 : _a.options);
16
16
  }
17
17
  //# sourceMappingURL=endpoint-search.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"endpoint-search.js","sourceRoot":"","sources":["../../../../../../src/lib/services/transfer/service/endpoint-search.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC1C,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAIrD,OAAO,EAAE,EAAE,EAAE,MAAM,WAAW,CAAC;AAG/B;;GAEG;AACH,MAAM,CAAC,OAAO,UAAU,cAAc;AACpC;;GAEG;AACH,UAAgD,EAChD,OAAoB;;IAEpB,OAAO,cAAc,CACnB,mDAAmD,EACnD,KAAK,CAAC,EAAE,EAAE,wBAAwB,EAAE;QAClC,MAAM,EAAE,UAAU;KACnB,CAAC,EACF,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,KAAK,0CAAE,OAAO,CACxB,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"endpoint-search.js","sourceRoot":"","sources":["../../../../../../src/lib/services/transfer/service/endpoint-search.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC1C,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAIrD,OAAO,EAAE,EAAE,EAAE,MAAM,WAAW,CAAC;AAG/B;;GAEG;AACH,MAAM,CAAC,OAAO,UAAU,cAAc;AACpC;;GAEG;AACH,UAAgD,EAChD,OAAoB;;IAEpB,OAAO,cAAc,CACnB,mDAAmD,EACnD,KAAK,CAAC,EAAE,EAAE,wBAAwB,EAAE;QAClC,MAAM,EAAE,UAAU,aAAV,UAAU,cAAV,UAAU,GAAI,EAAE;KACzB,CAAC,EACF,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,KAAK,0CAAE,OAAO,CACxB,CAAC;AACJ,CAAC"}
@@ -1,5 +1,5 @@
1
- import type { ServiceMethodDynamicSegments } from "../../types";
2
- export declare const get: ServiceMethodDynamicSegments<{
3
- payload: void;
4
- }>;
1
+ /**
2
+ * Fetch an endpoint by its UUID.
3
+ */
4
+ export declare const get: (endpoint_xid: string, _options?: undefined, sdkOptions?: import("../../types").SDKOptions | undefined) => Promise<Response>;
5
5
  //# sourceMappingURL=endpoint.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"endpoint.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/services/transfer/service/endpoint.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,aAAa,CAAC;AAEhE,eAAO,MAAM,GAAG,EAAE,4BAA4B,CAAC;IAC7C,OAAO,EAAE,IAAI,CAAC;CACf,CAQA,CAAC"}
1
+ {"version":3,"file":"endpoint.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/services/transfer/service/endpoint.ts"],"names":[],"mappings":"AAWA;;GAEG;AACH,eAAO,MAAM,GAAG,8HAYf,CAAC"}
@@ -1,7 +1,10 @@
1
1
  import { build } from "../../../core/url";
2
2
  import { fetchWithScope } from "../../../core/fetch";
3
3
  import { ID } from "../config";
4
- export const get = function (endpoint_xid, options, sdkOptions) {
4
+ /**
5
+ * Fetch an endpoint by its UUID.
6
+ */
7
+ export const get = function (endpoint_xid, _options, sdkOptions) {
5
8
  var _a;
6
9
  return fetchWithScope("urn:globus:auth:scope:transfer.api.globus.org:all", build(ID, `/v0.10/endpoint/${endpoint_xid}`), Object.assign({}, (_a = sdkOptions === null || sdkOptions === void 0 ? void 0 : sdkOptions.fetch) === null || _a === void 0 ? void 0 : _a.options));
7
10
  };
@@ -1 +1 @@
1
- {"version":3,"file":"endpoint.js","sourceRoot":"","sources":["../../../../../../src/lib/services/transfer/service/endpoint.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC1C,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAErD,OAAO,EAAE,EAAE,EAAE,MAAM,WAAW,CAAC;AAG/B,MAAM,CAAC,MAAM,GAAG,GAEX,UAAU,YAAY,EAAE,OAAO,EAAE,UAAW;;IAC/C,OAAO,cAAc,CACnB,mDAAmD,EACnD,KAAK,CAAC,EAAE,EAAE,mBAAmB,YAAY,EAAE,CAAC,oBAEvC,MAAA,UAAU,aAAV,UAAU,uBAAV,UAAU,CAAE,KAAK,0CAAE,OAAO,EAEhC,CAAC;AACJ,CAAC,CAAC"}
1
+ {"version":3,"file":"endpoint.js","sourceRoot":"","sources":["../../../../../../src/lib/services/transfer/service/endpoint.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC1C,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAErD,OAAO,EAAE,EAAE,EAAE,MAAM,WAAW,CAAC;AAQ/B;;GAEG;AACH,MAAM,CAAC,MAAM,GAAG,GAAG,UAAU,YAAY,EAAE,QAAS,EAAE,UAAW;;IAC/D,OAAO,cAAc,CACnB,mDAAmD,EACnD,KAAK,CAAC,EAAE,EAAE,mBAAmB,YAAY,EAAE,CAAC,oBAEvC,MAAA,UAAU,aAAV,UAAU,uBAAV,UAAU,CAAE,KAAK,0CAAE,OAAO,EAEhC,CAAC;AACJ,CAIC,CAAC"}
@@ -1,4 +1,3 @@
1
- import type { ServiceMethodDynamicSegments, SDKOptions } from "../../types";
2
1
  import type { Globus } from "../types";
3
2
  /**
4
3
  * List the contents of the directory at the specified path on an endpoint’s filesystem.
@@ -6,16 +5,16 @@ import type { Globus } from "../types";
6
5
  *
7
6
  * @see https://docs.globus.org/api/transfer/file_operations/#list_directory_contents
8
7
  */
9
- export declare function ls(endpoint_xid: string, parameters?: Globus.Transfer.DirectoryListingQuery, options?: SDKOptions): Promise<Response>;
8
+ export declare const ls: (endpoint_xid: string, parameters?: Globus.Transfer.DirectoryListingQuery | undefined, sdkOptions?: import("../../types").SDKOptions | undefined) => Promise<Response>;
10
9
  /**
11
10
  * Create a directory at the specified path on an endpoint filesystem.
12
11
  * The endpoint must be activated before performing this operation.
13
12
  *
14
13
  * @see https://docs.globus.org/api/transfer/file_operations/#make_directory
15
14
  */
16
- export declare const mkdir: ServiceMethodDynamicSegments<{
15
+ export declare const mkdir: (endpoint_xid: string, options: {
17
16
  payload: Omit<Globus.Transfer.Request.Mkdir, "DATA_TYPE">;
18
- }>;
17
+ } | undefined, sdkOptions?: import("../../types").SDKOptions | undefined) => Promise<Response>;
19
18
  /**
20
19
  * Rename or move a file, directory, or symlink on an endpoint filesystem.
21
20
  * If the object is a symlink, the symlink itself is renamed, not its target
@@ -24,16 +23,16 @@ export declare const mkdir: ServiceMethodDynamicSegments<{
24
23
  *
25
24
  * @see https://docs.globus.org/api/transfer/file_operations/#rename
26
25
  */
27
- export declare const rename: ServiceMethodDynamicSegments<{
26
+ export declare const rename: (endpoint_xid: string, options: {
28
27
  payload: Omit<Globus.Transfer.Request.Rename, "DATA_TYPE">;
29
- }>;
28
+ } | undefined, sdkOptions?: import("../../types").SDKOptions | undefined) => Promise<Response>;
30
29
  /**
31
30
  * Create a directory at the specified path on an endpoint filesystem.
32
31
  * The endpoint must be activated before performing this operation.
33
32
  *
34
33
  * @see https://docs.globus.org/api/transfer/file_operations/#symlink
35
34
  */
36
- export declare const symlink: ServiceMethodDynamicSegments<{
35
+ export declare const symlink: (endpoint_xid: string, options: {
37
36
  payload: Omit<Globus.Transfer.Request.Symlink, "DATA_TYPE">;
38
- }>;
37
+ } | undefined, sdkOptions?: import("../../types").SDKOptions | undefined) => Promise<Response>;
39
38
  //# sourceMappingURL=file-operations.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"file-operations.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/services/transfer/service/file-operations.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,4BAA4B,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAC5E,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAKvC;;;;;GAKG;AACH,wBAAgB,EAAE,CAChB,YAAY,EAAE,MAAM,EACpB,UAAU,CAAC,EAAE,MAAM,CAAC,QAAQ,CAAC,qBAAqB,EAClD,OAAO,CAAC,EAAE,UAAU,qBASrB;AAED;;;;;GAKG;AACH,eAAO,MAAM,KAAK,EAAE,4BAA4B,CAAC;IAC/C,OAAO,EAAE,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC,KAAK,EAAE,WAAW,CAAC,CAAC;CAC3D,CAgBA,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,MAAM,EAAE,4BAA4B,CAAC;IAChD,OAAO,EAAE,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC,MAAM,EAAE,WAAW,CAAC,CAAC;CAC5D,CAgBA,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,OAAO,EAAE,4BAA4B,CAAC;IACjD,OAAO,EAAE,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC,OAAO,EAAE,WAAW,CAAC,CAAC;CAC7D,CAgBA,CAAC"}
1
+ {"version":3,"file":"file-operations.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/services/transfer/service/file-operations.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAKvC;;;;;GAKG;AACH,eAAO,MAAM,EAAE,wKAWd,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,KAAK;aAmBL,KAAK,OAAO,QAAQ,QAAQ,CAAC,KAAK,EAAE,WAAW,CAAC;8FAE5D,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,MAAM;aAmBN,KAAK,OAAO,QAAQ,QAAQ,CAAC,MAAM,EAAE,WAAW,CAAC;8FAE7D,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,OAAO;aAmBP,KAAK,OAAO,QAAQ,QAAQ,CAAC,OAAO,EAAE,WAAW,CAAC;8FAE9D,CAAC"}