@rhinestone/sdk 1.4.2 → 2.0.0-beta.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 (202) hide show
  1. package/README.md +89 -1
  2. package/dist/src/accounts/error.d.ts +1 -1
  3. package/dist/src/accounts/error.js +1 -19
  4. package/dist/src/accounts/index.d.ts +5 -5
  5. package/dist/src/accounts/index.js +121 -157
  6. package/dist/src/accounts/json-rpc/index.d.ts +1 -1
  7. package/dist/src/accounts/json-rpc/index.js +8 -10
  8. package/dist/src/accounts/json-rpc/providers.d.ts +1 -1
  9. package/dist/src/accounts/json-rpc/providers.js +4 -7
  10. package/dist/src/accounts/kernel.d.ts +3 -3
  11. package/dist/src/accounts/kernel.js +66 -75
  12. package/dist/src/accounts/nexus.d.ts +3 -3
  13. package/dist/src/accounts/nexus.js +62 -73
  14. package/dist/src/accounts/passport.d.ts +3 -3
  15. package/dist/src/accounts/passport.js +9 -13
  16. package/dist/src/accounts/safe.d.ts +3 -3
  17. package/dist/src/accounts/safe.js +54 -63
  18. package/dist/src/accounts/signing/common.d.ts +10 -4
  19. package/dist/src/accounts/signing/common.d.ts.map +1 -1
  20. package/dist/src/accounts/signing/common.js +30 -36
  21. package/dist/src/accounts/signing/message.d.ts +2 -2
  22. package/dist/src/accounts/signing/message.js +10 -12
  23. package/dist/src/accounts/signing/passkeys.js +11 -17
  24. package/dist/src/accounts/signing/typedData.d.ts +1 -1
  25. package/dist/src/accounts/signing/typedData.js +6 -8
  26. package/dist/src/accounts/startale.d.ts +3 -3
  27. package/dist/src/accounts/startale.js +37 -47
  28. package/dist/src/accounts/utils.d.ts +2 -2
  29. package/dist/src/accounts/utils.js +22 -28
  30. package/dist/src/accounts/walletClient.js +4 -8
  31. package/dist/src/actions/compact.d.ts +1 -1
  32. package/dist/src/actions/compact.js +22 -35
  33. package/dist/src/actions/deployment.d.ts +1 -1
  34. package/dist/src/actions/deployment.js +11 -13
  35. package/dist/src/actions/ecdsa.d.ts +1 -1
  36. package/dist/src/actions/ecdsa.js +14 -20
  37. package/dist/src/actions/index.d.ts +2 -2
  38. package/dist/src/actions/index.js +6 -10
  39. package/dist/src/actions/mfa.d.ts +1 -1
  40. package/dist/src/actions/mfa.js +18 -24
  41. package/dist/src/actions/passkeys.d.ts +2 -2
  42. package/dist/src/actions/passkeys.js +14 -20
  43. package/dist/src/actions/recovery.d.ts +1 -1
  44. package/dist/src/actions/recovery.js +25 -29
  45. package/dist/src/actions/smart-sessions.d.ts +1 -1
  46. package/dist/src/actions/smart-sessions.js +8 -12
  47. package/dist/src/auth/provider.d.ts +7 -0
  48. package/dist/src/auth/provider.d.ts.map +1 -0
  49. package/dist/src/auth/provider.js +38 -0
  50. package/dist/src/errors/index.d.ts +3 -3
  51. package/dist/src/errors/index.js +10 -54
  52. package/dist/src/execution/compact.d.ts +3 -3
  53. package/dist/src/execution/compact.js +10 -18
  54. package/dist/src/execution/error.js +1 -11
  55. package/dist/src/execution/index.d.ts +9 -8
  56. package/dist/src/execution/index.d.ts.map +1 -1
  57. package/dist/src/execution/index.js +54 -67
  58. package/dist/src/execution/permit2.d.ts +5 -5
  59. package/dist/src/execution/permit2.js +8 -13
  60. package/dist/src/execution/singleChainOps.d.ts +2 -2
  61. package/dist/src/execution/singleChainOps.js +1 -3
  62. package/dist/src/execution/types.d.ts +1 -1
  63. package/dist/src/execution/types.js +1 -2
  64. package/dist/src/execution/utils.d.ts +10 -6
  65. package/dist/src/execution/utils.d.ts.map +1 -1
  66. package/dist/src/execution/utils.js +159 -162
  67. package/dist/src/index.d.ts +10 -10
  68. package/dist/src/index.d.ts.map +1 -1
  69. package/dist/src/index.js +57 -67
  70. package/dist/src/jwt-server/digest.d.ts +11 -0
  71. package/dist/src/jwt-server/digest.d.ts.map +1 -0
  72. package/dist/src/jwt-server/digest.js +19 -0
  73. package/dist/src/jwt-server/express.d.ts +16 -0
  74. package/dist/src/jwt-server/express.d.ts.map +1 -0
  75. package/dist/src/jwt-server/express.js +23 -0
  76. package/dist/src/jwt-server/handlers.d.ts +10 -0
  77. package/dist/src/jwt-server/handlers.d.ts.map +1 -0
  78. package/dist/src/jwt-server/handlers.js +37 -0
  79. package/dist/src/jwt-server/index.d.ts +8 -0
  80. package/dist/src/jwt-server/index.d.ts.map +1 -0
  81. package/dist/src/jwt-server/index.js +7 -0
  82. package/dist/src/jwt-server/jcs.d.ts +12 -0
  83. package/dist/src/jwt-server/jcs.d.ts.map +1 -0
  84. package/dist/src/jwt-server/jcs.js +57 -0
  85. package/dist/src/jwt-server/signer.d.ts +18 -0
  86. package/dist/src/jwt-server/signer.d.ts.map +1 -0
  87. package/dist/src/jwt-server/signer.js +68 -0
  88. package/dist/src/jwt-server/sponsorship.d.ts +19 -0
  89. package/dist/src/jwt-server/sponsorship.d.ts.map +1 -0
  90. package/dist/src/jwt-server/sponsorship.js +51 -0
  91. package/dist/src/jwt-server/web.d.ts +4 -0
  92. package/dist/src/jwt-server/web.d.ts.map +1 -0
  93. package/dist/src/jwt-server/web.js +23 -0
  94. package/dist/src/modules/abi/smart-session-emissary.js +1 -3
  95. package/dist/src/modules/abi/smart-sessions.js +1 -4
  96. package/dist/src/modules/chain-abstraction.js +1 -5
  97. package/dist/src/modules/common.d.ts +1 -1
  98. package/dist/src/modules/common.js +1 -13
  99. package/dist/src/modules/index.d.ts +5 -5
  100. package/dist/src/modules/index.js +35 -50
  101. package/dist/src/modules/legacy.d.ts +2 -2
  102. package/dist/src/modules/legacy.js +11 -14
  103. package/dist/src/modules/read.d.ts +1 -1
  104. package/dist/src/modules/read.js +11 -15
  105. package/dist/src/modules/validators/core.d.ts +2 -2
  106. package/dist/src/modules/validators/core.js +26 -44
  107. package/dist/src/modules/validators/index.d.ts +2 -2
  108. package/dist/src/modules/validators/index.js +3 -19
  109. package/dist/src/modules/validators/policies/claim/permit2.d.ts +1 -1
  110. package/dist/src/modules/validators/policies/claim/permit2.js +39 -44
  111. package/dist/src/modules/validators/policies/claim/types.js +11 -14
  112. package/dist/src/modules/validators/smart-sessions.d.ts +4 -4
  113. package/dist/src/modules/validators/smart-sessions.d.ts.map +1 -1
  114. package/dist/src/modules/validators/smart-sessions.js +77 -97
  115. package/dist/src/orchestrator/client.d.ts +10 -5
  116. package/dist/src/orchestrator/client.d.ts.map +1 -1
  117. package/dist/src/orchestrator/client.js +73 -66
  118. package/dist/src/orchestrator/consts.d.ts +1 -1
  119. package/dist/src/orchestrator/consts.d.ts.map +1 -1
  120. package/dist/src/orchestrator/consts.js +2 -8
  121. package/dist/src/orchestrator/error.js +1 -33
  122. package/dist/src/orchestrator/index.d.ts +8 -7
  123. package/dist/src/orchestrator/index.d.ts.map +1 -1
  124. package/dist/src/orchestrator/index.js +8 -57
  125. package/dist/src/orchestrator/registry.d.ts +2 -2
  126. package/dist/src/orchestrator/registry.js +19 -33
  127. package/dist/src/orchestrator/types.d.ts +5 -1
  128. package/dist/src/orchestrator/types.d.ts.map +1 -1
  129. package/dist/src/orchestrator/types.js +1 -17
  130. package/dist/src/orchestrator/utils.js +1 -3
  131. package/dist/src/types.d.ts +29 -5
  132. package/dist/src/types.d.ts.map +1 -1
  133. package/dist/src/types.js +1 -2
  134. package/dist/src/utils/index.d.ts +2 -2
  135. package/dist/src/utils/index.js +9 -15
  136. package/package.json +29 -98
  137. package/dist/src/accounts/index.test.d.ts +0 -2
  138. package/dist/src/accounts/index.test.d.ts.map +0 -1
  139. package/dist/src/accounts/index.test.js +0 -33
  140. package/dist/src/accounts/json-rpc/index.test.d.ts +0 -2
  141. package/dist/src/accounts/json-rpc/index.test.d.ts.map +0 -1
  142. package/dist/src/accounts/json-rpc/index.test.js +0 -35
  143. package/dist/src/accounts/json-rpc/providers.test.d.ts +0 -2
  144. package/dist/src/accounts/json-rpc/providers.test.d.ts.map +0 -1
  145. package/dist/src/accounts/json-rpc/providers.test.js +0 -43
  146. package/dist/src/accounts/kernel.test.d.ts +0 -2
  147. package/dist/src/accounts/kernel.test.d.ts.map +0 -1
  148. package/dist/src/accounts/kernel.test.js +0 -132
  149. package/dist/src/accounts/nexus.test.d.ts +0 -2
  150. package/dist/src/accounts/nexus.test.d.ts.map +0 -1
  151. package/dist/src/accounts/nexus.test.js +0 -118
  152. package/dist/src/accounts/safe.test.d.ts +0 -2
  153. package/dist/src/accounts/safe.test.d.ts.map +0 -1
  154. package/dist/src/accounts/safe.test.js +0 -168
  155. package/dist/src/accounts/signing/passkeys.test.d.ts +0 -2
  156. package/dist/src/accounts/signing/passkeys.test.d.ts.map +0 -1
  157. package/dist/src/accounts/signing/passkeys.test.js +0 -88
  158. package/dist/src/accounts/startale.test.d.ts +0 -2
  159. package/dist/src/accounts/startale.test.d.ts.map +0 -1
  160. package/dist/src/accounts/startale.test.js +0 -189
  161. package/dist/src/accounts/utils.test.d.ts +0 -2
  162. package/dist/src/accounts/utils.test.d.ts.map +0 -1
  163. package/dist/src/accounts/utils.test.js +0 -49
  164. package/dist/src/actions/ecdsa.test.d.ts +0 -2
  165. package/dist/src/actions/ecdsa.test.d.ts.map +0 -1
  166. package/dist/src/actions/ecdsa.test.js +0 -99
  167. package/dist/src/actions/passkeys.test.d.ts +0 -2
  168. package/dist/src/actions/passkeys.test.d.ts.map +0 -1
  169. package/dist/src/actions/passkeys.test.js +0 -54
  170. package/dist/src/actions/recovery.test.d.ts +0 -2
  171. package/dist/src/actions/recovery.test.d.ts.map +0 -1
  172. package/dist/src/actions/recovery.test.js +0 -168
  173. package/dist/src/execution/signing.test.d.ts +0 -2
  174. package/dist/src/execution/signing.test.d.ts.map +0 -1
  175. package/dist/src/execution/signing.test.js +0 -465
  176. package/dist/src/execution/utils.test.d.ts +0 -2
  177. package/dist/src/execution/utils.test.d.ts.map +0 -1
  178. package/dist/src/execution/utils.test.js +0 -388
  179. package/dist/src/modules/index.test.d.ts +0 -2
  180. package/dist/src/modules/index.test.d.ts.map +0 -1
  181. package/dist/src/modules/index.test.js +0 -81
  182. package/dist/src/modules/validators/core.test.d.ts +0 -2
  183. package/dist/src/modules/validators/core.test.d.ts.map +0 -1
  184. package/dist/src/modules/validators/core.test.js +0 -101
  185. package/dist/src/modules/validators/policies/claim/permit2.test.d.ts +0 -2
  186. package/dist/src/modules/validators/policies/claim/permit2.test.d.ts.map +0 -1
  187. package/dist/src/modules/validators/policies/claim/permit2.test.js +0 -519
  188. package/dist/src/modules/validators/smart-sessions.test.d.ts +0 -2
  189. package/dist/src/modules/validators/smart-sessions.test.d.ts.map +0 -1
  190. package/dist/src/modules/validators/smart-sessions.test.js +0 -311
  191. package/dist/src/orchestrator/registry.test.d.ts +0 -2
  192. package/dist/src/orchestrator/registry.test.d.ts.map +0 -1
  193. package/dist/src/orchestrator/registry.test.js +0 -154
  194. package/dist/src/utils/index.test.d.ts +0 -2
  195. package/dist/src/utils/index.test.d.ts.map +0 -1
  196. package/dist/src/utils/index.test.js +0 -42
  197. package/dist/test/consts.d.ts +0 -10
  198. package/dist/test/consts.d.ts.map +0 -1
  199. package/dist/test/consts.js +0 -22
  200. package/dist/test/utils/utils.d.ts +0 -5
  201. package/dist/test/utils/utils.d.ts.map +0 -1
  202. package/dist/test/utils/utils.js +0 -20
@@ -1,23 +1,20 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Orchestrator = void 0;
4
- const consts_1 = require("./consts");
5
- const error_1 = require("./error");
6
- const utils_1 = require("./utils");
1
+ import { API_VERSION, SDK_VERSION } from './consts.js';
2
+ import { AuthenticationRequiredError, BadRequestError, BodyParserError, ConflictError, ForbiddenError, InsufficientBalanceError, InsufficientLiquidityError, IntentNotFoundError, InternalServerError, InvalidApiKeyError, InvalidIntentSignatureError, NoPathFoundError, OnlyOneTargetTokenAmountCanBeUnsetError, OrchestratorError, RateLimitedError, ResourceNotFoundError, ServiceUnavailableError, SimulationFailedError, TokenNotSupportedError, UnauthorizedError, UnsupportedChainError, UnsupportedChainIdError, UnsupportedTokenError, } from './error.js';
3
+ import { convertBigIntFields } from './utils.js';
7
4
  function parseTokenAmountsRecord(record) {
8
5
  return Object.fromEntries(Object.entries(record).map(([addr, amount]) => [
9
6
  addr,
10
7
  BigInt(amount),
11
8
  ]));
12
9
  }
13
- class Orchestrator {
10
+ export class Orchestrator {
14
11
  serverUrl;
15
- apiKey;
16
- headers;
17
- constructor(serverUrl, apiKey, headers) {
12
+ authProvider;
13
+ extraHeaders;
14
+ constructor(serverUrl, authProvider, headers) {
18
15
  this.serverUrl = serverUrl;
19
- this.apiKey = apiKey;
20
- this.headers = headers;
16
+ this.authProvider = authProvider;
17
+ this.extraHeaders = headers;
21
18
  }
22
19
  async getPortfolio(userAddress, filter) {
23
20
  const params = new URLSearchParams();
@@ -32,7 +29,7 @@ class Orchestrator {
32
29
  const url = new URL(`${this.serverUrl}/accounts/${userAddress}/portfolio`);
33
30
  url.search = params.toString();
34
31
  const json = await this.fetch(url.toString(), {
35
- headers: this.getHeaders(),
32
+ headers: await this.getHeaders(),
36
33
  });
37
34
  const portfolioResponse = json.portfolio;
38
35
  const portfolio = portfolioResponse.map((tokenResponse) => ({
@@ -52,18 +49,18 @@ class Orchestrator {
52
49
  return portfolio;
53
50
  }
54
51
  async getIntentRoute(input) {
55
- const body = (0, utils_1.convertBigIntFields)(input);
52
+ const body = convertBigIntFields(input);
56
53
  return await this.fetch(`${this.serverUrl}/intents/route`, {
57
54
  method: 'POST',
58
- headers: this.getHeaders(),
55
+ headers: await this.getHeaders(),
59
56
  body: JSON.stringify(body),
60
57
  });
61
58
  }
62
59
  async splitIntents(input) {
63
60
  const response = await fetch(`${this.serverUrl}/intents/split`, {
64
61
  method: 'POST',
65
- headers: this.getHeaders(),
66
- body: JSON.stringify((0, utils_1.convertBigIntFields)({
62
+ headers: await this.getHeaders(),
63
+ body: JSON.stringify(convertBigIntFields({
67
64
  chainId: input.chain.id,
68
65
  tokens: input.tokens,
69
66
  settlementLayers: input.settlementLayers,
@@ -88,7 +85,7 @@ class Orchestrator {
88
85
  }
89
86
  if (response.status === 422 &&
90
87
  errorData.error === 'INSUFFICIENT_LIQUIDITY') {
91
- throw new error_1.InsufficientLiquidityError({
88
+ throw new InsufficientLiquidityError({
92
89
  availableIntents: errorData.availableIntents.map(parseTokenAmountsRecord),
93
90
  unfillable: parseTokenAmountsRecord(errorData.unfillable),
94
91
  traceId: errorData.traceId,
@@ -102,37 +99,48 @@ class Orchestrator {
102
99
  headers: {},
103
100
  },
104
101
  });
105
- throw new error_1.OrchestratorError({ message: 'Unexpected error' });
102
+ throw new OrchestratorError({ message: 'Unexpected error' });
106
103
  }
107
- async submitIntent(signedIntentOpUnformatted, dryRun) {
108
- const signedIntentOp = (0, utils_1.convertBigIntFields)(signedIntentOpUnformatted);
104
+ async submitIntent(signedIntentOpUnformatted, dryRun, policyContext) {
105
+ const signedIntentOp = convertBigIntFields(signedIntentOpUnformatted);
109
106
  if (dryRun) {
110
107
  signedIntentOp.options = {
111
108
  dryRun: true,
112
109
  };
113
110
  }
114
111
  const body = { signedIntentOp };
112
+ const headers = policyContext
113
+ ? await this.getSubmitHeaders(policyContext.intentInput, policyContext.isSponsored)
114
+ : await this.getHeaders();
115
115
  return await this.fetch(`${this.serverUrl}/intent-operations`, {
116
116
  method: 'POST',
117
- headers: this.getHeaders(),
117
+ headers,
118
118
  body: JSON.stringify(body),
119
119
  });
120
120
  }
121
121
  async getIntentOpStatus(intentId) {
122
122
  return await this.fetch(`${this.serverUrl}/intent-operation/${intentId.toString()}`, {
123
- headers: this.getHeaders(),
123
+ headers: await this.getHeaders(),
124
124
  });
125
125
  }
126
- getHeaders() {
127
- const headers = {
126
+ async getHeaders() {
127
+ const auth = await this.authProvider.getHeaders();
128
+ return {
128
129
  'Content-Type': 'application/json',
129
- 'x-sdk-version': consts_1.SDK_VERSION,
130
- 'x-api-version': consts_1.API_VERSION,
130
+ 'x-sdk-version': SDK_VERSION,
131
+ 'x-api-version': API_VERSION,
132
+ ...auth,
133
+ ...this.extraHeaders,
134
+ };
135
+ }
136
+ async getSubmitHeaders(intentInput, isSponsored) {
137
+ const auth = await this.authProvider.getSubmitHeaders(intentInput, isSponsored);
138
+ return {
139
+ 'Content-Type': 'application/json',
140
+ 'x-sdk-version': SDK_VERSION,
141
+ ...auth,
142
+ ...this.extraHeaders,
131
143
  };
132
- if (this.apiKey) {
133
- headers['x-api-key'] = this.apiKey;
134
- }
135
- return { ...headers, ...this.headers };
136
144
  }
137
145
  async fetch(url, options) {
138
146
  const response = await fetch(url, options);
@@ -207,13 +215,13 @@ class Orchestrator {
207
215
  if (status === 429) {
208
216
  const retryAfter = headers?.retryAfter;
209
217
  const context = { traceId, retryAfter };
210
- throw new error_1.RateLimitedError({
218
+ throw new RateLimitedError({
211
219
  ...baseParams,
212
220
  context,
213
221
  });
214
222
  }
215
223
  if (status === 503) {
216
- throw new error_1.ServiceUnavailableError(baseParams);
224
+ throw new ServiceUnavailableError(baseParams);
217
225
  }
218
226
  if (message) {
219
227
  this.parseErrorMessage(message, baseParams);
@@ -227,36 +235,36 @@ class Orchestrator {
227
235
  }
228
236
  switch (status) {
229
237
  case 400:
230
- throw new error_1.BadRequestError({
238
+ throw new BadRequestError({
231
239
  ...baseParams,
232
240
  context: { traceId, errors },
233
241
  message: message,
234
242
  });
235
243
  case 401:
236
244
  if (message === 'Authentication is required') {
237
- throw new error_1.AuthenticationRequiredError(baseParams);
245
+ throw new AuthenticationRequiredError(baseParams);
238
246
  }
239
- throw new error_1.UnauthorizedError(baseParams);
247
+ throw new UnauthorizedError(baseParams);
240
248
  case 403:
241
- throw new error_1.ForbiddenError(baseParams);
249
+ throw new ForbiddenError(baseParams);
242
250
  case 404:
243
- throw new error_1.ResourceNotFoundError(baseParams);
251
+ throw new ResourceNotFoundError(baseParams);
244
252
  case 409:
245
- throw new error_1.ConflictError(baseParams);
253
+ throw new ConflictError(baseParams);
246
254
  case 500:
247
255
  if (errors && errors.length > 0) {
248
256
  const mergedParams = {
249
257
  ...baseParams,
250
258
  context: { ...errors[0].context, traceId },
251
259
  };
252
- throw new error_1.OrchestratorError({
260
+ throw new OrchestratorError({
253
261
  ...mergedParams,
254
262
  message: errors[0].message || 'Internal Server Error',
255
263
  });
256
264
  }
257
- throw new error_1.InternalServerError(baseParams);
265
+ throw new InternalServerError(baseParams);
258
266
  default:
259
- throw new error_1.OrchestratorError({
267
+ throw new OrchestratorError({
260
268
  ...baseParams,
261
269
  message: message || errorType,
262
270
  });
@@ -265,19 +273,19 @@ class Orchestrator {
265
273
  }
266
274
  parseErrorMessage(message, errorParams) {
267
275
  if (message === 'Insufficient balance') {
268
- throw new error_1.InsufficientBalanceError(errorParams);
276
+ throw new InsufficientBalanceError(errorParams);
269
277
  }
270
278
  else if (message === 'Unsupported chain id' ||
271
279
  message === 'Unsupported chain ids') {
272
- throw new error_1.UnsupportedChainIdError(errorParams);
280
+ throw new UnsupportedChainIdError(errorParams);
273
281
  }
274
282
  else if (message.startsWith('Unsupported chain ')) {
275
283
  const chainIdMatch = message.match(/Unsupported chain (\d+)/);
276
284
  if (chainIdMatch) {
277
285
  const chainId = parseInt(chainIdMatch[1], 10);
278
- throw new error_1.UnsupportedChainError(chainId, errorParams);
286
+ throw new UnsupportedChainError(chainId, errorParams);
279
287
  }
280
- throw new error_1.UnsupportedChainIdError(errorParams);
288
+ throw new UnsupportedChainIdError(errorParams);
281
289
  }
282
290
  else if (message.includes('Unsupported token') &&
283
291
  message.includes('for chain')) {
@@ -285,70 +293,70 @@ class Orchestrator {
285
293
  if (tokenMatch) {
286
294
  const tokenSymbol = tokenMatch[1];
287
295
  const chainId = parseInt(tokenMatch[2], 10);
288
- throw new error_1.UnsupportedTokenError(tokenSymbol, chainId, errorParams);
296
+ throw new UnsupportedTokenError(tokenSymbol, chainId, errorParams);
289
297
  }
290
- throw new error_1.OrchestratorError({ message, ...errorParams });
298
+ throw new OrchestratorError({ message, ...errorParams });
291
299
  }
292
300
  else if (message === 'Unsupported token addresses') {
293
301
  // generic unsupported tokens without specific symbol/chain context
294
- throw new error_1.BadRequestError({ message, ...errorParams });
302
+ throw new BadRequestError({ message, ...errorParams });
295
303
  }
296
304
  else if (message.includes('not supported on chain')) {
297
305
  const tokenMatch = message.match(/Token (.+) not supported on chain (\d+)/);
298
306
  if (tokenMatch) {
299
307
  const tokenAddress = tokenMatch[1];
300
308
  const chainId = parseInt(tokenMatch[2], 10);
301
- throw new error_1.TokenNotSupportedError(tokenAddress, chainId, errorParams);
309
+ throw new TokenNotSupportedError(tokenAddress, chainId, errorParams);
302
310
  }
303
- throw new error_1.OrchestratorError({ message, ...errorParams });
311
+ throw new OrchestratorError({ message, ...errorParams });
304
312
  }
305
313
  else if (message === 'Authentication is required') {
306
- throw new error_1.AuthenticationRequiredError(errorParams);
314
+ throw new AuthenticationRequiredError(errorParams);
307
315
  }
308
316
  else if (message === 'Invalid API key') {
309
- throw new error_1.InvalidApiKeyError(errorParams);
317
+ throw new InvalidApiKeyError(errorParams);
310
318
  }
311
319
  else if (message === 'Insufficient permissions') {
312
- throw new error_1.ForbiddenError(errorParams);
320
+ throw new ForbiddenError(errorParams);
313
321
  }
314
322
  else if (message === 'Invalid bundle signature') {
315
- throw new error_1.InvalidIntentSignatureError(errorParams);
323
+ throw new InvalidIntentSignatureError(errorParams);
316
324
  }
317
325
  else if (message === 'Invalid checksum signature') {
318
- throw new error_1.InvalidIntentSignatureError(errorParams);
326
+ throw new InvalidIntentSignatureError(errorParams);
319
327
  }
320
328
  else if (message === 'Only one target token amount can be unset' ||
321
329
  message === 'Only one max-out transfer is allowed') {
322
- throw new error_1.OnlyOneTargetTokenAmountCanBeUnsetError(errorParams);
330
+ throw new OnlyOneTargetTokenAmountCanBeUnsetError(errorParams);
323
331
  }
324
332
  else if (message === 'No valid settlement plan found for the given transfers' ||
325
333
  message === 'No valid transfers sent for settlement quotes' ||
326
334
  message === 'No Path Found') {
327
- throw new error_1.NoPathFoundError(errorParams);
335
+ throw new NoPathFoundError(errorParams);
328
336
  }
329
337
  else if (message === 'Emissary is not enabled' ||
330
338
  message === 'Emissary is not the expected address') {
331
- throw new error_1.ForbiddenError(errorParams);
339
+ throw new ForbiddenError(errorParams);
332
340
  }
333
341
  else if (message.includes('No such intent with nonce') ||
334
342
  message === 'Order bundle not found') {
335
- throw new error_1.IntentNotFoundError(errorParams);
343
+ throw new IntentNotFoundError(errorParams);
336
344
  }
337
345
  else if (message === 'Could not retrieve a valid quote from any aggregator') {
338
- throw new error_1.NoPathFoundError(errorParams);
346
+ throw new NoPathFoundError(errorParams);
339
347
  }
340
348
  else if (message === 'No aggregators available for swap') {
341
- throw new error_1.InternalServerError(errorParams);
349
+ throw new InternalServerError(errorParams);
342
350
  }
343
351
  else if (message === 'entity.parse.failed' ||
344
352
  message === 'entity.too.large' ||
345
353
  message === 'encoding.unsupported') {
346
- throw new error_1.BodyParserError({ message, ...errorParams });
354
+ throw new BodyParserError({ message, ...errorParams });
347
355
  }
348
356
  else if (message === 'Bundle simulation failed') {
349
357
  const simulations = errorParams.context.error.simulations;
350
358
  const { traceId, errorType, statusCode, context } = errorParams;
351
- throw new error_1.SimulationFailedError({
359
+ throw new SimulationFailedError({
352
360
  message,
353
361
  context,
354
362
  errorType,
@@ -358,8 +366,7 @@ class Orchestrator {
358
366
  });
359
367
  }
360
368
  else {
361
- throw new error_1.OrchestratorError({ message, ...errorParams });
369
+ throw new OrchestratorError({ message, ...errorParams });
362
370
  }
363
371
  }
364
372
  }
365
- exports.Orchestrator = Orchestrator;
@@ -1,6 +1,6 @@
1
1
  declare const PROD_ORCHESTRATOR_URL = "https://v1.orchestrator.rhinestone.dev";
2
2
  declare const RHINESTONE_SPOKE_POOL_ADDRESS = "0x000000000060f6e853447881951574cdd0663530";
3
- declare const SDK_VERSION = "1.4.2";
3
+ declare const SDK_VERSION = "2.0.0-beta.0";
4
4
  declare const API_VERSION = "2026-01.alps";
5
5
  export { PROD_ORCHESTRATOR_URL, RHINESTONE_SPOKE_POOL_ADDRESS, SDK_VERSION, API_VERSION, };
6
6
  //# sourceMappingURL=consts.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"consts.d.ts","sourceRoot":"","sources":["../../../orchestrator/consts.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,qBAAqB,2CAA2C,CAAA;AACtE,QAAA,MAAM,6BAA6B,+CACW,CAAA;AAE9C,QAAA,MAAM,WAAW,UAAU,CAAA;AAC3B,QAAA,MAAM,WAAW,iBAAiB,CAAA;AAElC,OAAO,EACL,qBAAqB,EACrB,6BAA6B,EAC7B,WAAW,EACX,WAAW,GACZ,CAAA"}
1
+ {"version":3,"file":"consts.d.ts","sourceRoot":"","sources":["../../../orchestrator/consts.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,qBAAqB,2CAA2C,CAAA;AACtE,QAAA,MAAM,6BAA6B,+CACW,CAAA;AAE9C,QAAA,MAAM,WAAW,iBAAiB,CAAA;AAClC,QAAA,MAAM,WAAW,iBAAiB,CAAA;AAElC,OAAO,EACL,qBAAqB,EACrB,6BAA6B,EAC7B,WAAW,EACX,WAAW,GACZ,CAAA"}
@@ -1,11 +1,5 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.API_VERSION = exports.SDK_VERSION = exports.RHINESTONE_SPOKE_POOL_ADDRESS = exports.PROD_ORCHESTRATOR_URL = void 0;
4
1
  const PROD_ORCHESTRATOR_URL = 'https://v1.orchestrator.rhinestone.dev';
5
- exports.PROD_ORCHESTRATOR_URL = PROD_ORCHESTRATOR_URL;
6
2
  const RHINESTONE_SPOKE_POOL_ADDRESS = '0x000000000060f6e853447881951574cdd0663530';
7
- exports.RHINESTONE_SPOKE_POOL_ADDRESS = RHINESTONE_SPOKE_POOL_ADDRESS;
8
- const SDK_VERSION = '1.4.2';
9
- exports.SDK_VERSION = SDK_VERSION;
3
+ const SDK_VERSION = '2.0.0-beta.0';
10
4
  const API_VERSION = '2026-01.alps';
11
- exports.API_VERSION = API_VERSION;
5
+ export { PROD_ORCHESTRATOR_URL, RHINESTONE_SPOKE_POOL_ADDRESS, SDK_VERSION, API_VERSION, };
@@ -1,11 +1,3 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SimulationFailedError = exports.BodyParserError = exports.InternalServerError = exports.UnprocessableEntityError = exports.BadRequestError = exports.ConflictError = exports.ResourceNotFoundError = exports.ForbiddenError = exports.UnauthorizedError = exports.ServiceUnavailableError = exports.RateLimitedError = exports.SchemaValidationError = exports.IntentNotFoundError = exports.NoPathFoundError = exports.OnlyOneTargetTokenAmountCanBeUnsetError = exports.InvalidIntentSignatureError = exports.InvalidApiKeyError = exports.AuthenticationRequiredError = exports.TokenNotSupportedError = exports.UnsupportedTokenError = exports.UnsupportedChainError = exports.UnsupportedChainIdError = exports.InsufficientBalanceError = exports.InsufficientLiquidityError = exports.OrchestratorError = void 0;
4
- exports.isOrchestratorError = isOrchestratorError;
5
- exports.isRetryable = isRetryable;
6
- exports.isAuthError = isAuthError;
7
- exports.isValidationError = isValidationError;
8
- exports.isRateLimited = isRateLimited;
9
1
  class OrchestratorError extends Error {
10
2
  _message;
11
3
  _context;
@@ -36,7 +28,6 @@ class OrchestratorError extends Error {
36
28
  return this._statusCode;
37
29
  }
38
30
  }
39
- exports.OrchestratorError = OrchestratorError;
40
31
  class InsufficientBalanceError extends OrchestratorError {
41
32
  constructor(params) {
42
33
  super({
@@ -45,7 +36,6 @@ class InsufficientBalanceError extends OrchestratorError {
45
36
  });
46
37
  }
47
38
  }
48
- exports.InsufficientBalanceError = InsufficientBalanceError;
49
39
  class UnsupportedChainIdError extends OrchestratorError {
50
40
  constructor(params) {
51
41
  super({
@@ -54,7 +44,6 @@ class UnsupportedChainIdError extends OrchestratorError {
54
44
  });
55
45
  }
56
46
  }
57
- exports.UnsupportedChainIdError = UnsupportedChainIdError;
58
47
  class UnsupportedChainError extends OrchestratorError {
59
48
  constructor(chainId, params) {
60
49
  super({
@@ -63,7 +52,6 @@ class UnsupportedChainError extends OrchestratorError {
63
52
  });
64
53
  }
65
54
  }
66
- exports.UnsupportedChainError = UnsupportedChainError;
67
55
  class UnsupportedTokenError extends OrchestratorError {
68
56
  constructor(tokenSymbol, chainId, params) {
69
57
  super({
@@ -72,7 +60,6 @@ class UnsupportedTokenError extends OrchestratorError {
72
60
  });
73
61
  }
74
62
  }
75
- exports.UnsupportedTokenError = UnsupportedTokenError;
76
63
  class TokenNotSupportedError extends OrchestratorError {
77
64
  constructor(tokenAddress, chainId, params) {
78
65
  super({
@@ -81,7 +68,6 @@ class TokenNotSupportedError extends OrchestratorError {
81
68
  });
82
69
  }
83
70
  }
84
- exports.TokenNotSupportedError = TokenNotSupportedError;
85
71
  class AuthenticationRequiredError extends OrchestratorError {
86
72
  constructor(params) {
87
73
  super({
@@ -90,7 +76,6 @@ class AuthenticationRequiredError extends OrchestratorError {
90
76
  });
91
77
  }
92
78
  }
93
- exports.AuthenticationRequiredError = AuthenticationRequiredError;
94
79
  class InvalidApiKeyError extends OrchestratorError {
95
80
  constructor(params) {
96
81
  super({
@@ -99,7 +84,6 @@ class InvalidApiKeyError extends OrchestratorError {
99
84
  });
100
85
  }
101
86
  }
102
- exports.InvalidApiKeyError = InvalidApiKeyError;
103
87
  class InvalidIntentSignatureError extends OrchestratorError {
104
88
  constructor(params) {
105
89
  super({
@@ -108,7 +92,6 @@ class InvalidIntentSignatureError extends OrchestratorError {
108
92
  });
109
93
  }
110
94
  }
111
- exports.InvalidIntentSignatureError = InvalidIntentSignatureError;
112
95
  class OnlyOneTargetTokenAmountCanBeUnsetError extends OrchestratorError {
113
96
  constructor(params) {
114
97
  super({
@@ -117,7 +100,6 @@ class OnlyOneTargetTokenAmountCanBeUnsetError extends OrchestratorError {
117
100
  });
118
101
  }
119
102
  }
120
- exports.OnlyOneTargetTokenAmountCanBeUnsetError = OnlyOneTargetTokenAmountCanBeUnsetError;
121
103
  class NoPathFoundError extends OrchestratorError {
122
104
  constructor(params) {
123
105
  super({
@@ -126,7 +108,6 @@ class NoPathFoundError extends OrchestratorError {
126
108
  });
127
109
  }
128
110
  }
129
- exports.NoPathFoundError = NoPathFoundError;
130
111
  class IntentNotFoundError extends OrchestratorError {
131
112
  constructor(params) {
132
113
  super({
@@ -135,7 +116,6 @@ class IntentNotFoundError extends OrchestratorError {
135
116
  });
136
117
  }
137
118
  }
138
- exports.IntentNotFoundError = IntentNotFoundError;
139
119
  class SchemaValidationError extends OrchestratorError {
140
120
  constructor(params) {
141
121
  super({
@@ -144,7 +124,6 @@ class SchemaValidationError extends OrchestratorError {
144
124
  });
145
125
  }
146
126
  }
147
- exports.SchemaValidationError = SchemaValidationError;
148
127
  class RateLimitedError extends OrchestratorError {
149
128
  constructor(params) {
150
129
  super({
@@ -153,7 +132,6 @@ class RateLimitedError extends OrchestratorError {
153
132
  });
154
133
  }
155
134
  }
156
- exports.RateLimitedError = RateLimitedError;
157
135
  class ServiceUnavailableError extends OrchestratorError {
158
136
  constructor(params) {
159
137
  super({
@@ -162,7 +140,6 @@ class ServiceUnavailableError extends OrchestratorError {
162
140
  });
163
141
  }
164
142
  }
165
- exports.ServiceUnavailableError = ServiceUnavailableError;
166
143
  class UnauthorizedError extends OrchestratorError {
167
144
  constructor(params) {
168
145
  super({
@@ -171,7 +148,6 @@ class UnauthorizedError extends OrchestratorError {
171
148
  });
172
149
  }
173
150
  }
174
- exports.UnauthorizedError = UnauthorizedError;
175
151
  class ForbiddenError extends OrchestratorError {
176
152
  constructor(params) {
177
153
  super({
@@ -180,7 +156,6 @@ class ForbiddenError extends OrchestratorError {
180
156
  });
181
157
  }
182
158
  }
183
- exports.ForbiddenError = ForbiddenError;
184
159
  class ResourceNotFoundError extends OrchestratorError {
185
160
  constructor(params) {
186
161
  super({
@@ -189,7 +164,6 @@ class ResourceNotFoundError extends OrchestratorError {
189
164
  });
190
165
  }
191
166
  }
192
- exports.ResourceNotFoundError = ResourceNotFoundError;
193
167
  class ConflictError extends OrchestratorError {
194
168
  constructor(params) {
195
169
  super({
@@ -198,7 +172,6 @@ class ConflictError extends OrchestratorError {
198
172
  });
199
173
  }
200
174
  }
201
- exports.ConflictError = ConflictError;
202
175
  class BadRequestError extends OrchestratorError {
203
176
  constructor(params) {
204
177
  super({
@@ -207,7 +180,6 @@ class BadRequestError extends OrchestratorError {
207
180
  });
208
181
  }
209
182
  }
210
- exports.BadRequestError = BadRequestError;
211
183
  class UnprocessableEntityError extends OrchestratorError {
212
184
  constructor(params) {
213
185
  super({
@@ -216,7 +188,6 @@ class UnprocessableEntityError extends OrchestratorError {
216
188
  });
217
189
  }
218
190
  }
219
- exports.UnprocessableEntityError = UnprocessableEntityError;
220
191
  class InternalServerError extends OrchestratorError {
221
192
  constructor(params) {
222
193
  super({
@@ -225,7 +196,6 @@ class InternalServerError extends OrchestratorError {
225
196
  });
226
197
  }
227
198
  }
228
- exports.InternalServerError = InternalServerError;
229
199
  class BodyParserError extends OrchestratorError {
230
200
  constructor(params) {
231
201
  super({
@@ -234,7 +204,6 @@ class BodyParserError extends OrchestratorError {
234
204
  });
235
205
  }
236
206
  }
237
- exports.BodyParserError = BodyParserError;
238
207
  class SimulationFailedError extends OrchestratorError {
239
208
  constructor(params) {
240
209
  super({
@@ -243,7 +212,6 @@ class SimulationFailedError extends OrchestratorError {
243
212
  });
244
213
  }
245
214
  }
246
- exports.SimulationFailedError = SimulationFailedError;
247
215
  class InsufficientLiquidityError extends OrchestratorError {
248
216
  availableIntents;
249
217
  unfillable;
@@ -258,7 +226,6 @@ class InsufficientLiquidityError extends OrchestratorError {
258
226
  this.unfillable = params.unfillable;
259
227
  }
260
228
  }
261
- exports.InsufficientLiquidityError = InsufficientLiquidityError;
262
229
  function isOrchestratorError(error) {
263
230
  return error instanceof OrchestratorError;
264
231
  }
@@ -281,3 +248,4 @@ function isRetryable(error) {
281
248
  return false;
282
249
  return error.statusCode === 500 || error.statusCode === 503;
283
250
  }
251
+ export { isOrchestratorError, isRetryable, isAuthError, isValidationError, isRateLimited, OrchestratorError, InsufficientLiquidityError, InsufficientBalanceError, UnsupportedChainIdError, UnsupportedChainError, UnsupportedTokenError, TokenNotSupportedError, AuthenticationRequiredError, InvalidApiKeyError, InvalidIntentSignatureError, OnlyOneTargetTokenAmountCanBeUnsetError, NoPathFoundError, IntentNotFoundError, SchemaValidationError, RateLimitedError, ServiceUnavailableError, UnauthorizedError, ForbiddenError, ResourceNotFoundError, ConflictError, BadRequestError, UnprocessableEntityError, InternalServerError, BodyParserError, SimulationFailedError, };
@@ -1,10 +1,11 @@
1
- import { Orchestrator } from './client';
2
- import { RHINESTONE_SPOKE_POOL_ADDRESS } from './consts';
3
- import { AuthenticationRequiredError, BadRequestError, BodyParserError, ConflictError, ForbiddenError, InsufficientBalanceError, InsufficientLiquidityError, IntentNotFoundError, InternalServerError, InvalidApiKeyError, InvalidIntentSignatureError, isAuthError, isOrchestratorError, isRateLimited, isRetryable, isValidationError, NoPathFoundError, OnlyOneTargetTokenAmountCanBeUnsetError, OrchestratorError, RateLimitedError, ResourceNotFoundError, SchemaValidationError, ServiceUnavailableError, SimulationFailedError, TokenNotSupportedError, UnauthorizedError, UnprocessableEntityError, UnsupportedChainError, UnsupportedChainIdError, UnsupportedTokenError } from './error';
4
- import { getAllSupportedChainsAndTokens, getSupportedTokens, getTokenAddress, getTokenDecimals, getTokenSymbol, getWethAddress, isTokenAddressSupported } from './registry';
5
- import type { ApprovalRequired, AuxiliaryFunds, Execution, IntentInput, IntentOp, IntentOpStatus, IntentResult, IntentRoute, Portfolio, SettlementLayer, SignedIntentOp, SplitIntentsInput, SplitIntentsResult, SupportedChain, TokenConfig, TokenRequirements, WrapRequired } from './types';
6
- import { INTENT_STATUS_CLAIMED, INTENT_STATUS_COMPLETED, INTENT_STATUS_EXPIRED, INTENT_STATUS_FAILED, INTENT_STATUS_FILLED, INTENT_STATUS_PENDING, INTENT_STATUS_PRECONFIRMED } from './types';
7
- declare function getOrchestrator(apiKey?: string, orchestratorUrl?: string, headers?: Record<string, string>): Orchestrator;
1
+ import type { AuthProvider } from '../auth/provider.js';
2
+ import { Orchestrator } from './client.js';
3
+ import { RHINESTONE_SPOKE_POOL_ADDRESS } from './consts.js';
4
+ import { AuthenticationRequiredError, BadRequestError, BodyParserError, ConflictError, ForbiddenError, InsufficientBalanceError, InsufficientLiquidityError, IntentNotFoundError, InternalServerError, InvalidApiKeyError, InvalidIntentSignatureError, isAuthError, isOrchestratorError, isRateLimited, isRetryable, isValidationError, NoPathFoundError, OnlyOneTargetTokenAmountCanBeUnsetError, OrchestratorError, RateLimitedError, ResourceNotFoundError, SchemaValidationError, ServiceUnavailableError, SimulationFailedError, TokenNotSupportedError, UnauthorizedError, UnprocessableEntityError, UnsupportedChainError, UnsupportedChainIdError, UnsupportedTokenError } from './error.js';
5
+ import { getAllSupportedChainsAndTokens, getSupportedTokens, getTokenAddress, getTokenDecimals, getTokenSymbol, getWethAddress, isTokenAddressSupported } from './registry.js';
6
+ import type { ApprovalRequired, AuxiliaryFunds, Execution, IntentInput, IntentOp, IntentOpStatus, IntentResult, IntentRoute, Portfolio, SettlementLayer, SignedIntentOp, SplitIntentsInput, SplitIntentsResult, SupportedChain, TokenConfig, TokenRequirements, WrapRequired } from './types.js';
7
+ import { INTENT_STATUS_CLAIMED, INTENT_STATUS_COMPLETED, INTENT_STATUS_EXPIRED, INTENT_STATUS_FAILED, INTENT_STATUS_FILLED, INTENT_STATUS_PENDING, INTENT_STATUS_PRECONFIRMED } from './types.js';
8
+ declare function getOrchestrator(authProvider: AuthProvider, orchestratorUrl?: string, headers?: Record<string, string>): Orchestrator;
8
9
  export type { AuxiliaryFunds, Execution, IntentInput, IntentOp, IntentOpStatus, IntentResult, IntentRoute, SettlementLayer, SignedIntentOp, SplitIntentsInput, SplitIntentsResult, SupportedChain, TokenConfig, Portfolio, TokenRequirements, WrapRequired, ApprovalRequired, };
9
10
  export { INTENT_STATUS_PENDING, INTENT_STATUS_EXPIRED, INTENT_STATUS_COMPLETED, INTENT_STATUS_FILLED, INTENT_STATUS_FAILED, INTENT_STATUS_PRECONFIRMED, INTENT_STATUS_CLAIMED, RHINESTONE_SPOKE_POOL_ADDRESS, Orchestrator, AuthenticationRequiredError, BadRequestError, BodyParserError, ConflictError, ForbiddenError, InsufficientBalanceError, InsufficientLiquidityError, InvalidApiKeyError, InvalidIntentSignatureError, NoPathFoundError, OnlyOneTargetTokenAmountCanBeUnsetError, OrchestratorError, IntentNotFoundError, InternalServerError, ResourceNotFoundError, RateLimitedError, SchemaValidationError, ServiceUnavailableError, SimulationFailedError, UnprocessableEntityError, UnauthorizedError, TokenNotSupportedError, UnsupportedChainError, UnsupportedChainIdError, UnsupportedTokenError, getOrchestrator, getWethAddress, getTokenSymbol, getTokenAddress, getTokenDecimals, getSupportedTokens, getAllSupportedChainsAndTokens, isOrchestratorError, isRetryable, isAuthError, isValidationError, isRateLimited, isTokenAddressSupported, };
10
11
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../orchestrator/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAA;AACvC,OAAO,EAAyB,6BAA6B,EAAE,MAAM,UAAU,CAAA;AAC/E,OAAO,EACL,2BAA2B,EAC3B,eAAe,EACf,eAAe,EACf,aAAa,EACb,cAAc,EACd,wBAAwB,EACxB,0BAA0B,EAC1B,mBAAmB,EACnB,mBAAmB,EACnB,kBAAkB,EAClB,2BAA2B,EAC3B,WAAW,EACX,mBAAmB,EACnB,aAAa,EACb,WAAW,EACX,iBAAiB,EACjB,gBAAgB,EAChB,uCAAuC,EACvC,iBAAiB,EACjB,gBAAgB,EAChB,qBAAqB,EACrB,qBAAqB,EACrB,uBAAuB,EACvB,qBAAqB,EACrB,sBAAsB,EACtB,iBAAiB,EACjB,wBAAwB,EACxB,qBAAqB,EACrB,uBAAuB,EACvB,qBAAqB,EACtB,MAAM,SAAS,CAAA;AAChB,OAAO,EACL,8BAA8B,EAC9B,kBAAkB,EAClB,eAAe,EACf,gBAAgB,EAChB,cAAc,EACd,cAAc,EACd,uBAAuB,EACxB,MAAM,YAAY,CAAA;AACnB,OAAO,KAAK,EACV,gBAAgB,EAChB,cAAc,EACd,SAAS,EACT,WAAW,EACX,QAAQ,EACR,cAAc,EACd,YAAY,EACZ,WAAW,EACX,SAAS,EACT,eAAe,EACf,cAAc,EACd,iBAAiB,EACjB,kBAAkB,EAClB,cAAc,EACd,WAAW,EACX,iBAAiB,EACjB,YAAY,EACb,MAAM,SAAS,CAAA;AAChB,OAAO,EACL,qBAAqB,EACrB,uBAAuB,EACvB,qBAAqB,EACrB,oBAAoB,EACpB,oBAAoB,EACpB,qBAAqB,EACrB,0BAA0B,EAC3B,MAAM,SAAS,CAAA;AAEhB,iBAAS,eAAe,CACtB,MAAM,CAAC,EAAE,MAAM,EACf,eAAe,CAAC,EAAE,MAAM,EACxB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAC/B,YAAY,CAMd;AAED,YAAY,EACV,cAAc,EACd,SAAS,EACT,WAAW,EACX,QAAQ,EACR,cAAc,EACd,YAAY,EACZ,WAAW,EACX,eAAe,EACf,cAAc,EACd,iBAAiB,EACjB,kBAAkB,EAClB,cAAc,EACd,WAAW,EACX,SAAS,EACT,iBAAiB,EACjB,YAAY,EACZ,gBAAgB,GACjB,CAAA;AACD,OAAO,EACL,qBAAqB,EACrB,qBAAqB,EACrB,uBAAuB,EACvB,oBAAoB,EACpB,oBAAoB,EACpB,0BAA0B,EAC1B,qBAAqB,EACrB,6BAA6B,EAC7B,YAAY,EACZ,2BAA2B,EAC3B,eAAe,EACf,eAAe,EACf,aAAa,EACb,cAAc,EACd,wBAAwB,EACxB,0BAA0B,EAC1B,kBAAkB,EAClB,2BAA2B,EAC3B,gBAAgB,EAChB,uCAAuC,EACvC,iBAAiB,EACjB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACrB,gBAAgB,EAChB,qBAAqB,EACrB,uBAAuB,EACvB,qBAAqB,EACrB,wBAAwB,EACxB,iBAAiB,EACjB,sBAAsB,EACtB,qBAAqB,EACrB,uBAAuB,EACvB,qBAAqB,EACrB,eAAe,EACf,cAAc,EACd,cAAc,EACd,eAAe,EACf,gBAAgB,EAChB,kBAAkB,EAClB,8BAA8B,EAC9B,mBAAmB,EACnB,WAAW,EACX,WAAW,EACX,iBAAiB,EACjB,aAAa,EACb,uBAAuB,GACxB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../orchestrator/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAA;AACpD,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAA;AACvC,OAAO,EAAyB,6BAA6B,EAAE,MAAM,UAAU,CAAA;AAC/E,OAAO,EACL,2BAA2B,EAC3B,eAAe,EACf,eAAe,EACf,aAAa,EACb,cAAc,EACd,wBAAwB,EACxB,0BAA0B,EAC1B,mBAAmB,EACnB,mBAAmB,EACnB,kBAAkB,EAClB,2BAA2B,EAC3B,WAAW,EACX,mBAAmB,EACnB,aAAa,EACb,WAAW,EACX,iBAAiB,EACjB,gBAAgB,EAChB,uCAAuC,EACvC,iBAAiB,EACjB,gBAAgB,EAChB,qBAAqB,EACrB,qBAAqB,EACrB,uBAAuB,EACvB,qBAAqB,EACrB,sBAAsB,EACtB,iBAAiB,EACjB,wBAAwB,EACxB,qBAAqB,EACrB,uBAAuB,EACvB,qBAAqB,EACtB,MAAM,SAAS,CAAA;AAChB,OAAO,EACL,8BAA8B,EAC9B,kBAAkB,EAClB,eAAe,EACf,gBAAgB,EAChB,cAAc,EACd,cAAc,EACd,uBAAuB,EACxB,MAAM,YAAY,CAAA;AACnB,OAAO,KAAK,EACV,gBAAgB,EAChB,cAAc,EACd,SAAS,EACT,WAAW,EACX,QAAQ,EACR,cAAc,EACd,YAAY,EACZ,WAAW,EACX,SAAS,EACT,eAAe,EACf,cAAc,EACd,iBAAiB,EACjB,kBAAkB,EAClB,cAAc,EACd,WAAW,EACX,iBAAiB,EACjB,YAAY,EACb,MAAM,SAAS,CAAA;AAChB,OAAO,EACL,qBAAqB,EACrB,uBAAuB,EACvB,qBAAqB,EACrB,oBAAoB,EACpB,oBAAoB,EACpB,qBAAqB,EACrB,0BAA0B,EAC3B,MAAM,SAAS,CAAA;AAEhB,iBAAS,eAAe,CACtB,YAAY,EAAE,YAAY,EAC1B,eAAe,CAAC,EAAE,MAAM,EACxB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAC/B,YAAY,CAMd;AAED,YAAY,EACV,cAAc,EACd,SAAS,EACT,WAAW,EACX,QAAQ,EACR,cAAc,EACd,YAAY,EACZ,WAAW,EACX,eAAe,EACf,cAAc,EACd,iBAAiB,EACjB,kBAAkB,EAClB,cAAc,EACd,WAAW,EACX,SAAS,EACT,iBAAiB,EACjB,YAAY,EACZ,gBAAgB,GACjB,CAAA;AACD,OAAO,EACL,qBAAqB,EACrB,qBAAqB,EACrB,uBAAuB,EACvB,oBAAoB,EACpB,oBAAoB,EACpB,0BAA0B,EAC1B,qBAAqB,EACrB,6BAA6B,EAC7B,YAAY,EACZ,2BAA2B,EAC3B,eAAe,EACf,eAAe,EACf,aAAa,EACb,cAAc,EACd,wBAAwB,EACxB,0BAA0B,EAC1B,kBAAkB,EAClB,2BAA2B,EAC3B,gBAAgB,EAChB,uCAAuC,EACvC,iBAAiB,EACjB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACrB,gBAAgB,EAChB,qBAAqB,EACrB,uBAAuB,EACvB,qBAAqB,EACrB,wBAAwB,EACxB,iBAAiB,EACjB,sBAAsB,EACtB,qBAAqB,EACrB,uBAAuB,EACvB,qBAAqB,EACrB,eAAe,EACf,cAAc,EACd,cAAc,EACd,eAAe,EACf,gBAAgB,EAChB,kBAAkB,EAClB,8BAA8B,EAC9B,mBAAmB,EACnB,WAAW,EACX,WAAW,EACX,iBAAiB,EACjB,aAAa,EACb,uBAAuB,GACxB,CAAA"}