@arcadeai/arcadejs 0.2.1 → 0.2.2

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 (52) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/README.md +2 -2
  3. package/index.d.mts +2 -3
  4. package/index.d.ts +2 -3
  5. package/index.d.ts.map +1 -1
  6. package/index.js +1 -0
  7. package/index.js.map +1 -1
  8. package/index.mjs +2 -1
  9. package/index.mjs.map +1 -1
  10. package/package.json +1 -1
  11. package/resources/index.d.ts +1 -1
  12. package/resources/index.d.ts.map +1 -1
  13. package/resources/index.js +2 -1
  14. package/resources/index.js.map +1 -1
  15. package/resources/index.mjs +1 -1
  16. package/resources/index.mjs.map +1 -1
  17. package/resources/shared.d.ts +0 -12
  18. package/resources/shared.d.ts.map +1 -1
  19. package/resources/shared.js +0 -5
  20. package/resources/shared.js.map +1 -1
  21. package/resources/shared.mjs +1 -3
  22. package/resources/shared.mjs.map +1 -1
  23. package/resources/tools/formatted.d.ts +2 -2
  24. package/resources/tools/index.d.ts +2 -1
  25. package/resources/tools/index.d.ts.map +1 -1
  26. package/resources/tools/index.js +4 -1
  27. package/resources/tools/index.js.map +1 -1
  28. package/resources/tools/index.mjs +2 -1
  29. package/resources/tools/index.mjs.map +1 -1
  30. package/resources/tools/scheduled.d.ts +57 -0
  31. package/resources/tools/scheduled.d.ts.map +1 -0
  32. package/resources/tools/scheduled.js +21 -0
  33. package/resources/tools/scheduled.js.map +1 -0
  34. package/resources/tools/scheduled.mjs +17 -0
  35. package/resources/tools/scheduled.mjs.map +1 -0
  36. package/resources/tools/tools.d.ts +225 -49
  37. package/resources/tools/tools.d.ts.map +1 -1
  38. package/resources/tools/tools.js +11 -4
  39. package/resources/tools/tools.js.map +1 -1
  40. package/resources/tools/tools.mjs +9 -3
  41. package/resources/tools/tools.mjs.map +1 -1
  42. package/src/index.ts +13 -15
  43. package/src/resources/index.ts +6 -7
  44. package/src/resources/shared.ts +0 -19
  45. package/src/resources/tools/formatted.ts +2 -2
  46. package/src/resources/tools/index.ts +7 -7
  47. package/src/resources/tools/scheduled.ts +92 -0
  48. package/src/resources/tools/tools.ts +321 -66
  49. package/src/version.ts +1 -1
  50. package/version.d.ts +1 -1
  51. package/version.js +1 -1
  52. package/version.mjs +1 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.2.2 (2024-12-19)
4
+
5
+ Full Changelog: [v0.2.1...v0.2.2](https://github.com/ArcadeAI/arcade-js/compare/v0.2.1...v0.2.2)
6
+
7
+ ### Chores
8
+
9
+ * **internal:** version bump ([#57](https://github.com/ArcadeAI/arcade-js/issues/57)) ([cb0999e](https://github.com/ArcadeAI/arcade-js/commit/cb0999e9fcc375d85c08acc21a4e43e95322df0e))
10
+
3
11
  ## 0.2.1 (2024-12-18)
4
12
 
5
13
  Full Changelog: [v0.2.0...v0.2.1](https://github.com/ArcadeAI/arcade-js/compare/v0.2.0...v0.2.1)
package/README.md CHANGED
@@ -27,14 +27,14 @@ const client = new Arcade({
27
27
  });
28
28
 
29
29
  async function main() {
30
- const response = await client.tools.execute({
30
+ const executeToolResponse = await client.tools.execute({
31
31
  tool_name: 'Google.ListEmails',
32
32
  inputs: { n_emails: 10 },
33
33
  tool_version: '0.1.0',
34
34
  user_id: 'user@example.com',
35
35
  });
36
36
 
37
- console.log(response.invocation_id);
37
+ console.log(executeToolResponse.id);
38
38
  }
39
39
 
40
40
  main();
package/index.d.mts CHANGED
@@ -8,7 +8,7 @@ import * as API from "./resources/index.js";
8
8
  import { Auth, AuthAuthorizeParams, AuthRequest, AuthStatusParams } from "./resources/auth.js";
9
9
  import { Health, HealthSchema } from "./resources/health.js";
10
10
  import { Chat, ChatMessage, ChatRequest, ChatResponse, Choice, Usage } from "./resources/chat/chat.js";
11
- import { AuthorizeToolRequest, ExecuteToolRequest, Inputs, Output, Parameter, Requirements, Response, ResponseOutput, ToolAuthorizeParams, ToolExecuteParams, ToolGetParams, ToolListParams, ToolkitDefinition, Tools, ValueSchema } from "./resources/tools/tools.js";
11
+ import { AuthorizeToolRequest, ExecuteToolRequest, ExecuteToolResponse, ResponseOutput, ToolAuthorizeParams, ToolExecuteParams, ToolExecution, ToolExecutionAttempt, ToolGetParams, ToolGetResponse, ToolListParams, ToolListResponse, ToolListResponsesOffsetPage, Tools } from "./resources/tools/tools.js";
12
12
  export interface ClientOptions {
13
13
  /**
14
14
  * API key used for authorization in header
@@ -115,10 +115,9 @@ export declare namespace Arcade {
115
115
  export { Auth as Auth, type AuthRequest as AuthRequest, type AuthAuthorizeParams as AuthAuthorizeParams, type AuthStatusParams as AuthStatusParams, };
116
116
  export { Health as Health, type HealthSchema as HealthSchema };
117
117
  export { Chat as Chat, type ChatMessage as ChatMessage, type ChatRequest as ChatRequest, type ChatResponse as ChatResponse, type Choice as Choice, type Usage as Usage, };
118
- export { Tools as Tools, type AuthorizeToolRequest as AuthorizeToolRequest, type ExecuteToolRequest as ExecuteToolRequest, type Inputs as Inputs, type Output as Output, type Parameter as Parameter, type Requirements as Requirements, type Response as Response, type ResponseOutput as ResponseOutput, type ToolkitDefinition as ToolkitDefinition, type ValueSchema as ValueSchema, type ToolListParams as ToolListParams, type ToolAuthorizeParams as ToolAuthorizeParams, type ToolExecuteParams as ToolExecuteParams, type ToolGetParams as ToolGetParams, };
118
+ export { Tools as Tools, type AuthorizeToolRequest as AuthorizeToolRequest, type ExecuteToolRequest as ExecuteToolRequest, type ExecuteToolResponse as ExecuteToolResponse, type ResponseOutput as ResponseOutput, type ToolExecution as ToolExecution, type ToolExecutionAttempt as ToolExecutionAttempt, type ToolListResponse as ToolListResponse, type ToolGetResponse as ToolGetResponse, ToolListResponsesOffsetPage as ToolListResponsesOffsetPage, type ToolListParams as ToolListParams, type ToolAuthorizeParams as ToolAuthorizeParams, type ToolExecuteParams as ToolExecuteParams, type ToolGetParams as ToolGetParams, };
119
119
  export type AuthorizationResponse = API.AuthorizationResponse;
120
120
  export type Error = API.Error;
121
- export type ToolDefinition = API.ToolDefinition;
122
121
  }
123
122
  export { toFile, fileFromPath } from "./uploads.js";
124
123
  export { ArcadeError, APIError, APIConnectionError, APIConnectionTimeoutError, APIUserAbortError, NotFoundError, ConflictError, RateLimitError, BadRequestError, AuthenticationError, InternalServerError, PermissionDeniedError, UnprocessableEntityError, } from "./error.js";
package/index.d.ts CHANGED
@@ -8,7 +8,7 @@ import * as API from "./resources/index.js";
8
8
  import { Auth, AuthAuthorizeParams, AuthRequest, AuthStatusParams } from "./resources/auth.js";
9
9
  import { Health, HealthSchema } from "./resources/health.js";
10
10
  import { Chat, ChatMessage, ChatRequest, ChatResponse, Choice, Usage } from "./resources/chat/chat.js";
11
- import { AuthorizeToolRequest, ExecuteToolRequest, Inputs, Output, Parameter, Requirements, Response, ResponseOutput, ToolAuthorizeParams, ToolExecuteParams, ToolGetParams, ToolListParams, ToolkitDefinition, Tools, ValueSchema } from "./resources/tools/tools.js";
11
+ import { AuthorizeToolRequest, ExecuteToolRequest, ExecuteToolResponse, ResponseOutput, ToolAuthorizeParams, ToolExecuteParams, ToolExecution, ToolExecutionAttempt, ToolGetParams, ToolGetResponse, ToolListParams, ToolListResponse, ToolListResponsesOffsetPage, Tools } from "./resources/tools/tools.js";
12
12
  export interface ClientOptions {
13
13
  /**
14
14
  * API key used for authorization in header
@@ -115,10 +115,9 @@ export declare namespace Arcade {
115
115
  export { Auth as Auth, type AuthRequest as AuthRequest, type AuthAuthorizeParams as AuthAuthorizeParams, type AuthStatusParams as AuthStatusParams, };
116
116
  export { Health as Health, type HealthSchema as HealthSchema };
117
117
  export { Chat as Chat, type ChatMessage as ChatMessage, type ChatRequest as ChatRequest, type ChatResponse as ChatResponse, type Choice as Choice, type Usage as Usage, };
118
- export { Tools as Tools, type AuthorizeToolRequest as AuthorizeToolRequest, type ExecuteToolRequest as ExecuteToolRequest, type Inputs as Inputs, type Output as Output, type Parameter as Parameter, type Requirements as Requirements, type Response as Response, type ResponseOutput as ResponseOutput, type ToolkitDefinition as ToolkitDefinition, type ValueSchema as ValueSchema, type ToolListParams as ToolListParams, type ToolAuthorizeParams as ToolAuthorizeParams, type ToolExecuteParams as ToolExecuteParams, type ToolGetParams as ToolGetParams, };
118
+ export { Tools as Tools, type AuthorizeToolRequest as AuthorizeToolRequest, type ExecuteToolRequest as ExecuteToolRequest, type ExecuteToolResponse as ExecuteToolResponse, type ResponseOutput as ResponseOutput, type ToolExecution as ToolExecution, type ToolExecutionAttempt as ToolExecutionAttempt, type ToolListResponse as ToolListResponse, type ToolGetResponse as ToolGetResponse, ToolListResponsesOffsetPage as ToolListResponsesOffsetPage, type ToolListParams as ToolListParams, type ToolAuthorizeParams as ToolAuthorizeParams, type ToolExecuteParams as ToolExecuteParams, type ToolGetParams as ToolGetParams, };
119
119
  export type AuthorizationResponse = API.AuthorizationResponse;
120
120
  export type Error = API.Error;
121
- export type ToolDefinition = API.ToolDefinition;
122
121
  }
123
122
  export { toFile, fileFromPath } from "./uploads.js";
124
123
  export { ArcadeError, APIError, APIConnectionError, APIConnectionTimeoutError, APIUserAbortError, NotFoundError, ConflictError, RateLimitError, BadRequestError, AuthenticationError, InternalServerError, PermissionDeniedError, UnprocessableEntityError, } from "./error.js";
package/index.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["src/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAC5C,OAAO,KAAK,IAAI,MAAM,QAAQ,CAAC;AAC/B,OAAO,KAAK,MAAM,MAAM,SAAS,CAAC;AAClC,OAAO,KAAK,UAAU,MAAM,cAAc,CAAC;AAC3C,OAAO,EAAE,KAAK,gBAAgB,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AACzE,OAAO,KAAK,OAAO,MAAM,WAAW,CAAC;AACrC,OAAO,KAAK,GAAG,MAAM,mBAAmB,CAAC;AACzC,OAAO,EAA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AAI,eAAe,EACvC,2BAA2B,IAAI,2BAA2B,EAC1D,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,aAAa,IAAI,aAAa,GACpC,CAAC;IAEF,MAAM,MAAM,qBAAqB,GAAG,GAAG,CAAC,qBAAqB,CAAC;IAC9D,MAAM,MAAM,KAAK,GAAG,GAAG,CAAC,KAAK,CAAC;CAC/B;AAED,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AACjD,OAAO,EACL,WAAW,EACX,QAAQ,EACR,kBAAkB,EAClB,yBAAyB,EACzB,iBAAiB,EACjB,aAAa,EACb,aAAa,EACb,cAAc,EACd,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACrB,wBAAwB,GACzB,MAAM,SAAS,CAAC;AAEjB,eAAe,MAAM,CAAC"}
package/index.js CHANGED
@@ -111,6 +111,7 @@ Arcade.Auth = auth_1.Auth;
111
111
  Arcade.Health = health_1.Health;
112
112
  Arcade.Chat = chat_1.Chat;
113
113
  Arcade.Tools = tools_1.Tools;
114
+ Arcade.ToolListResponsesOffsetPage = tools_1.ToolListResponsesOffsetPage;
114
115
  var uploads_1 = require("./uploads.js");
115
116
  Object.defineProperty(exports, "toFile", { enumerable: true, get: function () { return uploads_1.toFile; } });
116
117
  Object.defineProperty(exports, "fileFromPath", { enumerable: true, get: function () { return uploads_1.fileFromPath; } });
package/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["src/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGtF,gDAA+B;AAC/B,mDAAkC;AAClC,4DAA2C;AAE3C,sDAAqC;AACrC,0DAAyC;AACzC,8CAA4F;AAC5F,kDAA0D;AAC1D,mDAAoG;AACpG,sDAgBiC;AAiEjC;;GAEG;AACH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CAAC;AACvC,sBAAe,GAAG,MAAM,CAAC,eAAe,CAAC;AACzC,0BAAmB,GAAG,MAAM,CAAC,mBAAmB,CAAC;AACjD,0BAAmB,GAAG,MAAM,CAAC,mBAAmB,CAAC;AACjD,4BAAqB,GAAG,MAAM,CAAC,qBAAqB,CAAC;AACrD,+BAAwB,GAAG,MAAM,CAAC,wBAAwB,CAAC;AAE3D,aAAM,GAAG,OAAO,CAAC,MAAM,CAAC;AACxB,mBAAY,GAAG,OAAO,CAAC,YAAY,CAAC;AAG7C,MAAM,CAAC,IAAI,GAAG,WAAI,CAAC;AACnB,MAAM,CAAC,MAAM,GAAG,eAAM,CAAC;AACvB,MAAM,CAAC,IAAI,GAAG,WAAI,CAAC;AACnB,MAAM,CAAC,KAAK,GAAG,aAAK,CAAC;AACrB,MAAM,CAAC,2BAA2B,GAAG,mCAA2B,CAAC;AA8CjE,wCAAiD;AAAxC,iGAAA,MAAM,OAAA;AAAE,uGAAA,YAAY,OAAA;AAC7B,oCAciB;AAbf,oGAAA,WAAW,OAAA;AACX,iGAAA,QAAQ,OAAA;AACR,2GAAA,kBAAkB,OAAA;AAClB,kHAAA,yBAAyB,OAAA;AACzB,0GAAA,iBAAiB,OAAA;AACjB,sGAAA,aAAa,OAAA;AACb,sGAAA,aAAa,OAAA;AACb,uGAAA,cAAc,OAAA;AACd,wGAAA,eAAe,OAAA;AACf,4GAAA,mBAAmB,OAAA;AACnB,4GAAA,mBAAmB,OAAA;AACnB,8GAAA,qBAAqB,OAAA;AACrB,iHAAA,wBAAwB,OAAA;AAG1B,kBAAe,MAAM,CAAC"}
package/index.mjs CHANGED
@@ -8,7 +8,7 @@ import * as API from "./resources/index.mjs";
8
8
  import { Auth } from "./resources/auth.mjs";
9
9
  import { Health } from "./resources/health.mjs";
10
10
  import { Chat } from "./resources/chat/chat.mjs";
11
- import { Tools, } from "./resources/tools/tools.mjs";
11
+ import { ToolListResponsesOffsetPage, Tools, } from "./resources/tools/tools.mjs";
12
12
  /**
13
13
  * API Client for interfacing with the Arcade API.
14
14
  */
@@ -84,6 +84,7 @@ Arcade.Auth = Auth;
84
84
  Arcade.Health = Health;
85
85
  Arcade.Chat = Chat;
86
86
  Arcade.Tools = Tools;
87
+ Arcade.ToolListResponsesOffsetPage = ToolListResponsesOffsetPage;
87
88
  export { toFile, fileFromPath } from "./uploads.mjs";
88
89
  export { ArcadeError, APIError, APIConnectionError, APIConnectionTimeoutError, APIUserAbortError, NotFoundError, ConflictError, RateLimitError, BadRequestError, AuthenticationError, InternalServerError, PermissionDeniedError, UnprocessableEntityError, } from "./error.mjs";
89
90
  export default Arcade;
package/index.mjs.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sourceRoot":"","sources":["src/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;;OAG/E,KAAK,IAAI;OACT,KAAK,MAAM;OACX,KAAK,UAAU;OAEf,KAAK,OAAO;OACZ,KAAK,GAAG;OACR,EAAE,IAAI,EAAsD;OAC5D,EAAE,MAAM,EAAgB;OACxB,EAAE,IAAI,EAAyD;OAC/D,EAcL,KAAK,GAEN;AAiED;;GAEG;AACH,MAAM,OAAO,MAAO,SAAQ,IAAI,CAAC,SAAS;IAKxC;;;;;;;;;;;OAWG;IACH,YAAY,EACV,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC,iBAAiB,CAAC,EACzC,MAAM,GAAG,IAAI,CAAC,OAAO,CAAC,gBAAgB,CAAC,EACvC,GAAG,IAAI,KACU,EAAE;QACnB,IAAI,MAAM,KAAK,SAAS,EAAE;YACxB,MAAM,IAAI,MAAM,CAAC,WAAW,CAC1B,oLAAoL,CACrL,CAAC;SACH;QAED,MAAM,OAAO,GAAkB;YAC7B,MAAM;YACN,GAAG,IAAI;YACP,OAAO,EAAE,OAAO,IAAI,2BAA2B;SAChD,CAAC;QAEF,KAAK,CAAC;YACJ,OAAO,EAAE,OAAO,CAAC,OAAQ;YACzB,OAAO,EAAE,OAAO,CAAC,OAAO,IAAI,KAA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,qBAAqB,EACrB,wBAAwB,GACzB;AAED,eAAe,MAAM,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arcadeai/arcadejs",
3
- "version": "0.2.1",
3
+ "version": "0.2.2",
4
4
  "description": "The official TypeScript library for the Arcade API",
5
5
  "author": "Arcade <contact@arcade-ai.com>",
6
6
  "types": "./index.d.ts",
@@ -2,5 +2,5 @@ export * from "./shared.js";
2
2
  export { Auth, type AuthRequest, type AuthAuthorizeParams, type AuthStatusParams } from "./auth.js";
3
3
  export { Chat, type ChatMessage, type ChatRequest, type ChatResponse, type Choice, type Usage, } from "./chat/chat.js";
4
4
  export { Health, type HealthSchema } from "./health.js";
5
- export { Tools, type AuthorizeToolRequest, type ExecuteToolRequest, type Inputs, type Output, type Parameter, type Requirements, type Response, type ResponseOutput, type ToolkitDefinition, type ValueSchema, type ToolListParams, type ToolAuthorizeParams, type ToolExecuteParams, type ToolGetParams, } from "./tools/tools.js";
5
+ export { ToolListResponsesOffsetPage, Tools, type AuthorizeToolRequest, type ExecuteToolRequest, type ExecuteToolResponse, type ResponseOutput, type ToolExecution, type ToolExecutionAttempt, type ToolListResponse, type ToolGetResponse, type ToolListParams, type ToolAuthorizeParams, type ToolExecuteParams, type ToolGetParams, } from "./tools/tools.js";
6
6
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAEA,cAAc,UAAU,CAAC;AACzB,OAAO,EAAE,IAAI,EAAE,KAAK,WAAW,EAAE,KAAK,mBAAmB,EAAE,KAAK,gBAAgB,EAAE,MAAM,QAAQ,CAAC;AACjG,OAAO,EACL,IAAI,EACJ,KAAK,WAAW,EAChB,KAAK,WAAW,EAChB,KAAK,YAAY,EACjB,KAAK,MAAM,EACX,KAAK,KAAK,GACX,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,MAAM,EAAE,KAAK,YAAY,EAAE,MAAM,UAAU,CAAC;AACrD,OAAO,EACL,KAAK,EACL,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,MAAM,EACX,KAAK,MAAM,EACX,KAAK,SAAS,EACd,KAAK,YAAY,EACjB,KAAK,QAAQ,EACb,KAAK,cAAc,EACnB,KAAK,iBAAiB,EACtB,KAAK,WAAW,EAChB,KAAK,cAAc,EACnB,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,aAAa,GACnB,MAAM,eAAe,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAEA,cAAc,UAAU,CAAC;AACzB,OAAO,EAAE,IAAI,EAAE,KAAK,WAAW,EAAE,KAAK,mBAAmB,EAAE,KAAK,gBAAgB,EAAE,MAAM,QAAQ,CAAC;AACjG,OAAO,EACL,IAAI,EACJ,KAAK,WAAW,EAChB,KAAK,WAAW,EAChB,KAAK,YAAY,EACjB,KAAK,MAAM,EACX,KAAK,KAAK,GACX,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,MAAM,EAAE,KAAK,YAAY,EAAE,MAAM,UAAU,CAAC;AACrD,OAAO,EACL,2BAA2B,EAC3B,KAAK,EACL,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,mBAAmB,EACxB,KAAK,cAAc,EACnB,KAAK,aAAa,EAClB,KAAK,oBAAoB,EACzB,KAAK,gBAAgB,EACrB,KAAK,eAAe,EACpB,KAAK,cAAc,EACnB,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,aAAa,GACnB,MAAM,eAAe,CAAC"}
@@ -15,7 +15,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
16
16
  };
17
17
  Object.defineProperty(exports, "__esModule", { value: true });
18
- exports.Tools = exports.Health = exports.Chat = exports.Auth = void 0;
18
+ exports.Tools = exports.ToolListResponsesOffsetPage = exports.Health = exports.Chat = exports.Auth = void 0;
19
19
  __exportStar(require("./shared.js"), exports);
20
20
  var auth_1 = require("./auth.js");
21
21
  Object.defineProperty(exports, "Auth", { enumerable: true, get: function () { return auth_1.Auth; } });
@@ -24,5 +24,6 @@ Object.defineProperty(exports, "Chat", { enumerable: true, get: function () { re
24
24
  var health_1 = require("./health.js");
25
25
  Object.defineProperty(exports, "Health", { enumerable: true, get: function () { return health_1.Health; } });
26
26
  var tools_1 = require("./tools/tools.js");
27
+ Object.defineProperty(exports, "ToolListResponsesOffsetPage", { enumerable: true, get: function () { return tools_1.ToolListResponsesOffsetPage; } });
27
28
  Object.defineProperty(exports, "Tools", { enumerable: true, get: function () { return tools_1.Tools; } });
28
29
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;;;;;;;;;;;;;;AAEtF,8CAAyB;AACzB,kCAAiG;AAAxF,4FAAA,IAAI,OAAA;AACb,uCAOqB;AANnB,4FAAA,IAAI,OAAA;AAON,sCAAqD;AAA5C,gGAAA,MAAM,OAAA;AACf,0CAgBuB;AAfrB,8FAAA,KAAK,OAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;;;;;;;;;;;;;;AAEtF,8CAAyB;AACzB,kCAAiG;AAAxF,4FAAA,IAAI,OAAA;AACb,uCAOqB;AANnB,4FAAA,IAAI,OAAA;AAON,sCAAqD;AAA5C,gGAAA,MAAM,OAAA;AACf,0CAeuB;AAdrB,oHAAA,2BAA2B,OAAA;AAC3B,8FAAA,KAAK,OAAA"}
@@ -3,5 +3,5 @@ export * from "./shared.mjs";
3
3
  export { Auth } from "./auth.mjs";
4
4
  export { Chat, } from "./chat/chat.mjs";
5
5
  export { Health } from "./health.mjs";
6
- export { Tools, } from "./tools/tools.mjs";
6
+ export { ToolListResponsesOffsetPage, Tools, } from "./tools/tools.mjs";
7
7
  //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;;OAG/E,EAAE,IAAI,EAAqE;OAC3E,EACL,IAAI,GAML;OACM,EAAE,MAAM,EAAqB;OAC7B,EACL,KAAK,GAeN"}
1
+ {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;;OAG/E,EAAE,IAAI,EAAqE;OAC3E,EACL,IAAI,GAML;OACM,EAAE,MAAM,EAAqB;OAC7B,EACL,2BAA2B,EAC3B,KAAK,GAaN"}
@@ -1,5 +1,3 @@
1
- import * as ToolsAPI from "./tools/tools.js";
2
- import { OffsetPage } from "../pagination.js";
3
1
  export interface AuthorizationResponse {
4
2
  authorization_id?: string;
5
3
  authorization_url?: string;
@@ -19,14 +17,4 @@ export interface Error {
19
17
  message?: string;
20
18
  name?: string;
21
19
  }
22
- export interface ToolDefinition {
23
- inputs: ToolsAPI.Inputs;
24
- name: string;
25
- toolkit: ToolsAPI.ToolkitDefinition;
26
- description?: string;
27
- output?: ToolsAPI.Output;
28
- requirements?: ToolsAPI.Requirements;
29
- }
30
- export declare class ToolDefinitionsOffsetPage extends OffsetPage<ToolDefinition> {
31
- }
32
20
  //# sourceMappingURL=shared.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"shared.d.ts","sourceRoot":"","sources":["../src/resources/shared.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,QAAQ,MAAM,eAAe,CAAC;AAC1C,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C,MAAM,WAAW,qBAAqB;IACpC,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAE1B,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAE3B,OAAO,CAAC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AAC,EAAE,MAAM,CAAC;CAClB;AAED,yBAAiB,qBAAqB,CAAC;IACrC,UAAiB,OAAO;QACtB,KAAK,CAAC,EAAE,MAAM,CAAC;QAEf,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;KACrC;CACF;AAED,MAAM,WAAW,KAAK;IACpB,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf"}
@@ -1,9 +1,4 @@
1
1
  "use strict";
2
2
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.ToolDefinitionsOffsetPage = void 0;
5
- const pagination_1 = require("../pagination.js");
6
- class ToolDefinitionsOffsetPage extends pagination_1.OffsetPage {
7
- }
8
- exports.ToolDefinitionsOffsetPage = ToolDefinitionsOffsetPage;
9
4
  //# sourceMappingURL=shared.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"shared.js","sourceRoot":"","sources":["../src/resources/shared.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAGtF,iDAA2C;AA8C3C,MAAa,yBAA0B,SAAQ,uBAA0B;CAAG;AAA5E,8DAA4E"}
1
+ {"version":3,"file":"shared.js","sourceRoot":"","sources":["../src/resources/shared.ts"],"names":[],"mappings":";AAAA,sFAAsF"}
@@ -1,5 +1,3 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
- import { OffsetPage } from "../pagination.mjs";
3
- export class ToolDefinitionsOffsetPage extends OffsetPage {
4
- }
2
+ export {};
5
3
  //# sourceMappingURL=shared.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"shared.mjs","sourceRoot":"","sources":["../src/resources/shared.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAG/E,EAAE,UAAU,EAAE;AA8CrB,MAAM,OAAO,yBAA0B,SAAQ,UAA0B;CAAG"}
1
+ {"version":3,"file":"shared.mjs","sourceRoot":"","sources":["../src/resources/shared.ts"],"names":[],"mappings":"AAAA,sFAAsF"}
@@ -3,8 +3,8 @@ import * as Core from "../../core.js";
3
3
  import { OffsetPage, type OffsetPageParams } from "../../pagination.js";
4
4
  export declare class Formatted extends APIResource {
5
5
  /**
6
- * Returns a page of tools, optionally filtered by toolkit, formatted for a
7
- * specific provider
6
+ * Returns a page of tools from the engine configuration, optionally filtered by
7
+ * toolkit, formatted for a specific provider
8
8
  */
9
9
  list(query?: FormattedListParams, options?: Core.RequestOptions): Core.PagePromise<FormattedListResponsesOffsetPage, FormattedListResponse>;
10
10
  list(options?: Core.RequestOptions): Core.PagePromise<FormattedListResponsesOffsetPage, FormattedListResponse>;
@@ -1,3 +1,4 @@
1
1
  export { FormattedListResponsesOffsetPage, Formatted, type FormattedListResponse, type FormattedGetResponse, type FormattedListParams, type FormattedGetParams, } from "./formatted.js";
2
- export { Tools, type AuthorizeToolRequest, type ExecuteToolRequest, type Inputs, type Output, type Parameter, type Requirements, type Response, type ResponseOutput, type ToolkitDefinition, type ValueSchema, type ToolListParams, type ToolAuthorizeParams, type ToolExecuteParams, type ToolGetParams, } from "./tools.js";
2
+ export { Scheduled, type ScheduledListResponse, type ScheduledDetailsResponse } from "./scheduled.js";
3
+ export { ToolListResponsesOffsetPage, Tools, type AuthorizeToolRequest, type ExecuteToolRequest, type ExecuteToolResponse, type ResponseOutput, type ToolExecution, type ToolExecutionAttempt, type ToolListResponse, type ToolGetResponse, type ToolListParams, type ToolAuthorizeParams, type ToolExecuteParams, type ToolGetParams, } from "./tools.js";
3
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/tools/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,gCAAgC,EAChC,SAAS,EACT,KAAK,qBAAqB,EAC1B,KAAK,oBAAoB,EACzB,KAAK,mBAAmB,EACxB,KAAK,kBAAkB,GACxB,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,KAAK,EACL,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,MAAM,EACX,KAAK,MAAM,EACX,KAAK,SAAS,EACd,KAAK,YAAY,EACjB,KAAK,QAAQ,EACb,KAAK,cAAc,EACnB,KAAK,iBAAiB,EACtB,KAAK,WAAW,EAChB,KAAK,cAAc,EACnB,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,aAAa,GACnB,MAAM,SAAS,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/tools/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,gCAAgC,EAChC,SAAS,EACT,KAAK,qBAAqB,EAC1B,KAAK,oBAAoB,EACzB,KAAK,mBAAmB,EACxB,KAAK,kBAAkB,GACxB,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,SAAS,EAAE,KAAK,qBAAqB,EAAE,KAAK,wBAAwB,EAAE,MAAM,aAAa,CAAC;AACnG,OAAO,EACL,2BAA2B,EAC3B,KAAK,EACL,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,mBAAmB,EACxB,KAAK,cAAc,EACnB,KAAK,aAAa,EAClB,KAAK,oBAAoB,EACzB,KAAK,gBAAgB,EACrB,KAAK,eAAe,EACpB,KAAK,cAAc,EACnB,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,aAAa,GACnB,MAAM,SAAS,CAAC"}
@@ -1,10 +1,13 @@
1
1
  "use strict";
2
2
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.Tools = exports.Formatted = exports.FormattedListResponsesOffsetPage = void 0;
4
+ exports.Tools = exports.ToolListResponsesOffsetPage = exports.Scheduled = exports.Formatted = exports.FormattedListResponsesOffsetPage = void 0;
5
5
  var formatted_1 = require("./formatted.js");
6
6
  Object.defineProperty(exports, "FormattedListResponsesOffsetPage", { enumerable: true, get: function () { return formatted_1.FormattedListResponsesOffsetPage; } });
7
7
  Object.defineProperty(exports, "Formatted", { enumerable: true, get: function () { return formatted_1.Formatted; } });
8
+ var scheduled_1 = require("./scheduled.js");
9
+ Object.defineProperty(exports, "Scheduled", { enumerable: true, get: function () { return scheduled_1.Scheduled; } });
8
10
  var tools_1 = require("./tools.js");
11
+ Object.defineProperty(exports, "ToolListResponsesOffsetPage", { enumerable: true, get: function () { return tools_1.ToolListResponsesOffsetPage; } });
9
12
  Object.defineProperty(exports, "Tools", { enumerable: true, get: function () { return tools_1.Tools; } });
10
13
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/tools/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,4CAOqB;AANnB,6HAAA,gCAAgC,OAAA;AAChC,sGAAA,SAAS,OAAA;AAMX,oCAgBiB;AAff,8FAAA,KAAK,OAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/tools/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,4CAOqB;AANnB,6HAAA,gCAAgC,OAAA;AAChC,sGAAA,SAAS,OAAA;AAMX,4CAAmG;AAA1F,sGAAA,SAAS,OAAA;AAClB,oCAeiB;AAdf,oHAAA,2BAA2B,OAAA;AAC3B,8FAAA,KAAK,OAAA"}
@@ -1,4 +1,5 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
  export { FormattedListResponsesOffsetPage, Formatted, } from "./formatted.mjs";
3
- export { Tools, } from "./tools.mjs";
3
+ export { Scheduled } from "./scheduled.mjs";
4
+ export { ToolListResponsesOffsetPage, Tools, } from "./tools.mjs";
4
5
  //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/tools/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,gCAAgC,EAChC,SAAS,GAKV;OACM,EACL,KAAK,GAeN"}
1
+ {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/tools/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,gCAAgC,EAChC,SAAS,GAKV;OACM,EAAE,SAAS,EAA6D;OACxE,EACL,2BAA2B,EAC3B,KAAK,GAaN"}
@@ -0,0 +1,57 @@
1
+ import { APIResource } from "../../resource.js";
2
+ import * as Core from "../../core.js";
3
+ import * as ToolsAPI from "./tools.js";
4
+ export declare class Scheduled extends APIResource {
5
+ /**
6
+ * Returns a page of scheduled tool executions
7
+ */
8
+ list(options?: Core.RequestOptions): Core.APIPromise<ScheduledListResponse>;
9
+ /**
10
+ * Returns the details for a specific scheduled tool execution
11
+ */
12
+ details(id: string, options?: Core.RequestOptions): Core.APIPromise<ScheduledDetailsResponse>;
13
+ }
14
+ export interface ScheduledListResponse {
15
+ items?: Array<ToolsAPI.ToolExecution>;
16
+ limit?: number;
17
+ offset?: number;
18
+ page_count?: number;
19
+ total_count?: number;
20
+ }
21
+ export interface ScheduledDetailsResponse {
22
+ id?: string;
23
+ attempts?: Array<ToolsAPI.ToolExecutionAttempt>;
24
+ created_at?: ScheduledDetailsResponse.CreatedAt;
25
+ execution_status?: string;
26
+ execution_type?: string;
27
+ finished_at?: ScheduledDetailsResponse.FinishedAt;
28
+ inputs?: Record<string, unknown>;
29
+ run_at?: ScheduledDetailsResponse.RunAt;
30
+ started_at?: ScheduledDetailsResponse.StartedAt;
31
+ tool_name?: string;
32
+ toolkit_name?: string;
33
+ toolkit_version?: string;
34
+ updated_at?: ScheduledDetailsResponse.UpdatedAt;
35
+ user_id?: string;
36
+ }
37
+ export declare namespace ScheduledDetailsResponse {
38
+ interface CreatedAt {
39
+ 'time.Time'?: string;
40
+ }
41
+ interface FinishedAt {
42
+ 'time.Time'?: string;
43
+ }
44
+ interface RunAt {
45
+ 'time.Time'?: string;
46
+ }
47
+ interface StartedAt {
48
+ 'time.Time'?: string;
49
+ }
50
+ interface UpdatedAt {
51
+ 'time.Time'?: string;
52
+ }
53
+ }
54
+ export declare namespace Scheduled {
55
+ export { type ScheduledListResponse as ScheduledListResponse, type ScheduledDetailsResponse as ScheduledDetailsResponse, };
56
+ }
57
+ //# sourceMappingURL=scheduled.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"scheduled.d.ts","sourceRoot":"","sources":["../../src/resources/tools/scheduled.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,KAAK,IAAI,MAAM,YAAY,CAAC;AACnC,OAAO,KAAK,QAAQ,MAAM,SAAS,CAAC;AAEpC,qBAAa,SAAU,SAAQ,WAAW;IACxC;;OAEG;IACH,IAAI,CAAC,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,qBAAqB,CAAC;IAI3E;;OAEG;IACH,OAAO,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,wBAAwB,CAAC;CAG9F;AAED,MAAM,WAAW,qBAAqB;IACpC,KAAK,CAAC,EAAE,KAAK,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC;IAEtC,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,wBAAwB;IACvC,EAAE,CAAC,EAAE,MAAM,CAAC;IAEZ,QAAQ,CAAC,EAAE,KAAK,CAAC,QAAQ,CAAC,oBAAoB,CAAC,CAAC;IAEhD,UAAU,CAAC,EAAE,wBAAwB,CAAC,SAAS,CAAC;IAEhD,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAE1B,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB,WAAW,CAAC,EAAE,wBAAwB,CAAC,UAAU,CAAC;IAElD,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAEjC,MAAM,CAAC,EAAE,wBAAwB,CAAC,KAAK,CAAC;IAExC,UAAU,CAAC,EAAE,wBAAwB,CAAC,SAAS,CAAC;IAEhD,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB,eAAe,CAAC,EAAE,MAAM,CAAC;IAEzB,UAAU,CAAC,EAAE,wBAAwB,CAAC,SAAS,CAAC;IAEhD,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,yBAAiB,wBAAwB,CAAC;IACxC,UAAiB,SAAS;QACxB,WAAW,CAAC,EAAE,MAAM,CAAC;KACtB;IAED,UAAiB,UAAU;QACzB,WAAW,CAAC,EAAE,MAAM,CAAC;KACtB;IAED,UAAiB,KAAK;QACpB,WAAW,CAAC,EAAE,MAAM,CAAC;KACtB;IAED,UAAiB,SAAS;QACxB,WAAW,CAAC,EAAE,MAAM,CAAC;KACtB;IAED,UAAiB,SAAS;QACxB,WAAW,CAAC,EAAE,MAAM,CAAC;KACtB;CACF;AAED,MAAM,CAAC,OAAO,WAAW,SAAS,CAAC;IACjC,OAAO,EACL,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,wBAAwB,IAAI,wBAAwB,GAC1D,CAAC;CACH"}
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.Scheduled = void 0;
5
+ const resource_1 = require("../../resource.js");
6
+ class Scheduled extends resource_1.APIResource {
7
+ /**
8
+ * Returns a page of scheduled tool executions
9
+ */
10
+ list(options) {
11
+ return this._client.get('/v1/tools/scheduled', options);
12
+ }
13
+ /**
14
+ * Returns the details for a specific scheduled tool execution
15
+ */
16
+ details(id, options) {
17
+ return this._client.get(`/v1/tools/scheduled/${id}`, options);
18
+ }
19
+ }
20
+ exports.Scheduled = Scheduled;
21
+ //# sourceMappingURL=scheduled.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"scheduled.js","sourceRoot":"","sources":["../../src/resources/tools/scheduled.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,gDAA6C;AAI7C,MAAa,SAAU,SAAQ,sBAAW;IACxC;;OAEG;IACH,IAAI,CAAC,OAA6B;QAChC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,qBAAqB,EAAE,OAAO,CAAC,CAAC;IAC1D,CAAC;IAED;;OAEG;IACH,OAAO,CAAC,EAAU,EAAE,OAA6B;QAC/C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,uBAAuB,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAChE,CAAC;CACF;AAdD,8BAcC"}
@@ -0,0 +1,17 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ import { APIResource } from "../../resource.mjs";
3
+ export class Scheduled extends APIResource {
4
+ /**
5
+ * Returns a page of scheduled tool executions
6
+ */
7
+ list(options) {
8
+ return this._client.get('/v1/tools/scheduled', options);
9
+ }
10
+ /**
11
+ * Returns the details for a specific scheduled tool execution
12
+ */
13
+ details(id, options) {
14
+ return this._client.get(`/v1/tools/scheduled/${id}`, options);
15
+ }
16
+ }
17
+ //# sourceMappingURL=scheduled.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"scheduled.mjs","sourceRoot":"","sources":["../../src/resources/tools/scheduled.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAItB,MAAM,OAAO,SAAU,SAAQ,WAAW;IACxC;;OAEG;IACH,IAAI,CAAC,OAA6B;QAChC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,qBAAqB,EAAE,OAAO,CAAC,CAAC;IAC1D,CAAC;IAED;;OAEG;IACH,OAAO,CAAC,EAAU,EAAE,OAA6B;QAC/C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,uBAAuB,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAChE,CAAC;CACF"}