@arcadeai/arcadejs 0.1.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 (249) hide show
  1. package/CHANGELOG.md +64 -0
  2. package/LICENSE +201 -0
  3. package/README.md +305 -0
  4. package/_shims/MultipartBody.d.ts +9 -0
  5. package/_shims/MultipartBody.d.ts.map +1 -0
  6. package/_shims/MultipartBody.js +16 -0
  7. package/_shims/MultipartBody.js.map +1 -0
  8. package/_shims/MultipartBody.mjs +12 -0
  9. package/_shims/MultipartBody.mjs.map +1 -0
  10. package/_shims/README.md +46 -0
  11. package/_shims/auto/runtime-bun.d.ts +5 -0
  12. package/_shims/auto/runtime-bun.d.ts.map +1 -0
  13. package/_shims/auto/runtime-bun.js +21 -0
  14. package/_shims/auto/runtime-bun.js.map +1 -0
  15. package/_shims/auto/runtime-bun.mjs +2 -0
  16. package/_shims/auto/runtime-bun.mjs.map +1 -0
  17. package/_shims/auto/runtime-node.d.ts +5 -0
  18. package/_shims/auto/runtime-node.d.ts.map +1 -0
  19. package/_shims/auto/runtime-node.js +21 -0
  20. package/_shims/auto/runtime-node.js.map +1 -0
  21. package/_shims/auto/runtime-node.mjs +2 -0
  22. package/_shims/auto/runtime-node.mjs.map +1 -0
  23. package/_shims/auto/runtime.d.ts +5 -0
  24. package/_shims/auto/runtime.d.ts.map +1 -0
  25. package/_shims/auto/runtime.js +21 -0
  26. package/_shims/auto/runtime.js.map +1 -0
  27. package/_shims/auto/runtime.mjs +2 -0
  28. package/_shims/auto/runtime.mjs.map +1 -0
  29. package/_shims/auto/types-node.d.ts +5 -0
  30. package/_shims/auto/types-node.d.ts.map +1 -0
  31. package/_shims/auto/types-node.js +21 -0
  32. package/_shims/auto/types-node.js.map +1 -0
  33. package/_shims/auto/types-node.mjs +2 -0
  34. package/_shims/auto/types-node.mjs.map +1 -0
  35. package/_shims/auto/types.d.ts +101 -0
  36. package/_shims/auto/types.js +3 -0
  37. package/_shims/auto/types.mjs +3 -0
  38. package/_shims/bun-runtime.d.ts +6 -0
  39. package/_shims/bun-runtime.d.ts.map +1 -0
  40. package/_shims/bun-runtime.js +14 -0
  41. package/_shims/bun-runtime.js.map +1 -0
  42. package/_shims/bun-runtime.mjs +10 -0
  43. package/_shims/bun-runtime.mjs.map +1 -0
  44. package/_shims/index.d.ts +81 -0
  45. package/_shims/index.js +13 -0
  46. package/_shims/index.mjs +7 -0
  47. package/_shims/manual-types.d.ts +12 -0
  48. package/_shims/manual-types.js +3 -0
  49. package/_shims/manual-types.mjs +3 -0
  50. package/_shims/node-runtime.d.ts +3 -0
  51. package/_shims/node-runtime.d.ts.map +1 -0
  52. package/_shims/node-runtime.js +89 -0
  53. package/_shims/node-runtime.js.map +1 -0
  54. package/_shims/node-runtime.mjs +56 -0
  55. package/_shims/node-runtime.mjs.map +1 -0
  56. package/_shims/node-types.d.ts +42 -0
  57. package/_shims/node-types.js +3 -0
  58. package/_shims/node-types.mjs +3 -0
  59. package/_shims/registry.d.ts +37 -0
  60. package/_shims/registry.d.ts.map +1 -0
  61. package/_shims/registry.js +41 -0
  62. package/_shims/registry.js.map +1 -0
  63. package/_shims/registry.mjs +37 -0
  64. package/_shims/registry.mjs.map +1 -0
  65. package/_shims/web-runtime.d.ts +5 -0
  66. package/_shims/web-runtime.d.ts.map +1 -0
  67. package/_shims/web-runtime.js +78 -0
  68. package/_shims/web-runtime.js.map +1 -0
  69. package/_shims/web-runtime.mjs +71 -0
  70. package/_shims/web-runtime.mjs.map +1 -0
  71. package/_shims/web-types.d.ts +83 -0
  72. package/_shims/web-types.js +3 -0
  73. package/_shims/web-types.mjs +3 -0
  74. package/core.d.ts +242 -0
  75. package/core.d.ts.map +1 -0
  76. package/core.js +903 -0
  77. package/core.js.map +1 -0
  78. package/core.mjs +871 -0
  79. package/core.mjs.map +1 -0
  80. package/error.d.ts +53 -0
  81. package/error.d.ts.map +1 -0
  82. package/error.js +143 -0
  83. package/error.js.map +1 -0
  84. package/error.mjs +127 -0
  85. package/error.mjs.map +1 -0
  86. package/index.d.mts +146 -0
  87. package/index.d.ts +146 -0
  88. package/index.d.ts.map +1 -0
  89. package/index.js +118 -0
  90. package/index.js.map +1 -0
  91. package/index.mjs +90 -0
  92. package/index.mjs.map +1 -0
  93. package/package.json +103 -0
  94. package/pagination.d.ts +26 -0
  95. package/pagination.d.ts.map +1 -0
  96. package/pagination.js +46 -0
  97. package/pagination.js.map +1 -0
  98. package/pagination.mjs +42 -0
  99. package/pagination.mjs.map +1 -0
  100. package/resource.d.ts +6 -0
  101. package/resource.d.ts.map +1 -0
  102. package/resource.js +11 -0
  103. package/resource.js.map +1 -0
  104. package/resource.mjs +7 -0
  105. package/resource.mjs.map +1 -0
  106. package/resources/auth.d.ts +68 -0
  107. package/resources/auth.d.ts.map +1 -0
  108. package/resources/auth.js +25 -0
  109. package/resources/auth.js.map +1 -0
  110. package/resources/auth.mjs +21 -0
  111. package/resources/auth.mjs.map +1 -0
  112. package/resources/chat/chat.d.ts +136 -0
  113. package/resources/chat/chat.d.ts.map +1 -0
  114. package/resources/chat/chat.js +40 -0
  115. package/resources/chat/chat.js.map +1 -0
  116. package/resources/chat/chat.mjs +13 -0
  117. package/resources/chat/chat.mjs.map +1 -0
  118. package/resources/chat/completions.d.ts +76 -0
  119. package/resources/chat/completions.d.ts.map +1 -0
  120. package/resources/chat/completions.js +17 -0
  121. package/resources/chat/completions.js.map +1 -0
  122. package/resources/chat/completions.mjs +13 -0
  123. package/resources/chat/completions.mjs.map +1 -0
  124. package/resources/chat/index.d.ts +3 -0
  125. package/resources/chat/index.d.ts.map +1 -0
  126. package/resources/chat/index.js +9 -0
  127. package/resources/chat/index.js.map +1 -0
  128. package/resources/chat/index.mjs +4 -0
  129. package/resources/chat/index.mjs.map +1 -0
  130. package/resources/health.d.ts +16 -0
  131. package/resources/health.d.ts.map +1 -0
  132. package/resources/health.js +17 -0
  133. package/resources/health.js.map +1 -0
  134. package/resources/health.mjs +13 -0
  135. package/resources/health.mjs.map +1 -0
  136. package/resources/index.d.ts +6 -0
  137. package/resources/index.d.ts.map +1 -0
  138. package/resources/index.js +28 -0
  139. package/resources/index.js.map +1 -0
  140. package/resources/index.mjs +7 -0
  141. package/resources/index.mjs.map +1 -0
  142. package/resources/shared.d.ts +30 -0
  143. package/resources/shared.d.ts.map +1 -0
  144. package/resources/shared.js +9 -0
  145. package/resources/shared.js.map +1 -0
  146. package/resources/shared.mjs +5 -0
  147. package/resources/shared.mjs.map +1 -0
  148. package/resources/tools/definition.d.ts +24 -0
  149. package/resources/tools/definition.d.ts.map +1 -0
  150. package/resources/tools/definition.js +17 -0
  151. package/resources/tools/definition.js.map +1 -0
  152. package/resources/tools/definition.mjs +13 -0
  153. package/resources/tools/definition.mjs.map +1 -0
  154. package/resources/tools/formatted.d.ts +48 -0
  155. package/resources/tools/formatted.d.ts.map +1 -0
  156. package/resources/tools/formatted.js +56 -0
  157. package/resources/tools/formatted.js.map +1 -0
  158. package/resources/tools/formatted.mjs +28 -0
  159. package/resources/tools/formatted.mjs.map +1 -0
  160. package/resources/tools/index.d.ts +3 -0
  161. package/resources/tools/index.d.ts.map +1 -0
  162. package/resources/tools/index.js +10 -0
  163. package/resources/tools/index.js.map +1 -0
  164. package/resources/tools/index.mjs +4 -0
  165. package/resources/tools/index.mjs.map +1 -0
  166. package/resources/tools/tools.d.ts +169 -0
  167. package/resources/tools/tools.d.ts.map +1 -0
  168. package/resources/tools/tools.js +68 -0
  169. package/resources/tools/tools.js.map +1 -0
  170. package/resources/tools/tools.mjs +41 -0
  171. package/resources/tools/tools.mjs.map +1 -0
  172. package/resources/tools.d.ts +161 -0
  173. package/resources/tools.d.ts.map +1 -0
  174. package/resources/tools.js +38 -0
  175. package/resources/tools.js.map +1 -0
  176. package/resources/tools.mjs +34 -0
  177. package/resources/tools.mjs.map +1 -0
  178. package/shims/node.d.ts +30 -0
  179. package/shims/node.d.ts.map +1 -0
  180. package/shims/node.js +31 -0
  181. package/shims/node.js.map +1 -0
  182. package/shims/node.mjs +5 -0
  183. package/shims/node.mjs.map +1 -0
  184. package/shims/web.d.ts +26 -0
  185. package/shims/web.d.ts.map +1 -0
  186. package/shims/web.js +31 -0
  187. package/shims/web.js.map +1 -0
  188. package/shims/web.mjs +5 -0
  189. package/shims/web.mjs.map +1 -0
  190. package/src/_shims/MultipartBody.ts +9 -0
  191. package/src/_shims/README.md +46 -0
  192. package/src/_shims/auto/runtime-bun.ts +4 -0
  193. package/src/_shims/auto/runtime-node.ts +4 -0
  194. package/src/_shims/auto/runtime.ts +4 -0
  195. package/src/_shims/auto/types-node.ts +4 -0
  196. package/src/_shims/auto/types.d.ts +101 -0
  197. package/src/_shims/auto/types.js +3 -0
  198. package/src/_shims/auto/types.mjs +3 -0
  199. package/src/_shims/bun-runtime.ts +14 -0
  200. package/src/_shims/index.d.ts +81 -0
  201. package/src/_shims/index.js +13 -0
  202. package/src/_shims/index.mjs +7 -0
  203. package/src/_shims/manual-types.d.ts +12 -0
  204. package/src/_shims/manual-types.js +3 -0
  205. package/src/_shims/manual-types.mjs +3 -0
  206. package/src/_shims/node-runtime.ts +81 -0
  207. package/src/_shims/node-types.d.ts +42 -0
  208. package/src/_shims/node-types.js +3 -0
  209. package/src/_shims/node-types.mjs +3 -0
  210. package/src/_shims/registry.ts +67 -0
  211. package/src/_shims/web-runtime.ts +103 -0
  212. package/src/_shims/web-types.d.ts +83 -0
  213. package/src/_shims/web-types.js +3 -0
  214. package/src/_shims/web-types.mjs +3 -0
  215. package/src/core.ts +1196 -0
  216. package/src/error.ts +146 -0
  217. package/src/index.ts +227 -0
  218. package/src/lib/.keep +4 -0
  219. package/src/pagination.ts +79 -0
  220. package/src/resource.ts +11 -0
  221. package/src/resources/auth.ts +97 -0
  222. package/src/resources/chat/chat.ts +186 -0
  223. package/src/resources/chat/completions.ts +102 -0
  224. package/src/resources/chat/index.ts +4 -0
  225. package/src/resources/health.ts +22 -0
  226. package/src/resources/index.ts +23 -0
  227. package/src/resources/shared.ts +46 -0
  228. package/src/resources/tools/definition.ts +31 -0
  229. package/src/resources/tools/formatted.ts +78 -0
  230. package/src/resources/tools/index.ts +27 -0
  231. package/src/resources/tools/tools.ts +249 -0
  232. package/src/resources/tools.ts +240 -0
  233. package/src/shims/node.ts +50 -0
  234. package/src/shims/web.ts +50 -0
  235. package/src/tsconfig.json +11 -0
  236. package/src/uploads.ts +255 -0
  237. package/src/version.ts +1 -0
  238. package/uploads.d.ts +75 -0
  239. package/uploads.d.ts.map +1 -0
  240. package/uploads.js +171 -0
  241. package/uploads.js.map +1 -0
  242. package/uploads.mjs +158 -0
  243. package/uploads.mjs.map +1 -0
  244. package/version.d.ts +2 -0
  245. package/version.d.ts.map +1 -0
  246. package/version.js +5 -0
  247. package/version.js.map +1 -0
  248. package/version.mjs +2 -0
  249. package/version.mjs.map +1 -0
package/index.d.ts ADDED
@@ -0,0 +1,146 @@
1
+ import * as Errors from "./error.js";
2
+ import * as Uploads from "./uploads.js";
3
+ import { type Agent } from "./_shims/index.js";
4
+ import * as Core from "./core.js";
5
+ import * as Pagination from "./pagination.js";
6
+ import * as API from "./resources/index.js";
7
+ export interface ClientOptions {
8
+ /**
9
+ * API key used for authorization in header
10
+ */
11
+ apiKey?: string | undefined;
12
+ /**
13
+ * Override the default base URL for the API, e.g., "https://api.example.com/v2/"
14
+ *
15
+ * Defaults to process.env['ARCADE_BASE_URL'].
16
+ */
17
+ baseURL?: string | null | undefined;
18
+ /**
19
+ * The maximum amount of time (in milliseconds) that the client should wait for a response
20
+ * from the server before timing out a single request.
21
+ *
22
+ * Note that request timeouts are retried by default, so in a worst-case scenario you may wait
23
+ * much longer than this timeout before the promise succeeds or fails.
24
+ */
25
+ timeout?: number;
26
+ /**
27
+ * An HTTP agent used to manage HTTP(S) connections.
28
+ *
29
+ * If not provided, an agent will be constructed by default in the Node.js environment,
30
+ * otherwise no agent is used.
31
+ */
32
+ httpAgent?: Agent;
33
+ /**
34
+ * Specify a custom `fetch` function implementation.
35
+ *
36
+ * If not provided, we use `node-fetch` on Node.js and otherwise expect that `fetch` is
37
+ * defined globally.
38
+ */
39
+ fetch?: Core.Fetch | undefined;
40
+ /**
41
+ * The maximum number of times that the client will retry a request in case of a
42
+ * temporary failure, like a network error or a 5XX error from the server.
43
+ *
44
+ * @default 2
45
+ */
46
+ maxRetries?: number;
47
+ /**
48
+ * Default headers to include with every request to the API.
49
+ *
50
+ * These can be removed in individual requests by explicitly setting the
51
+ * header to `undefined` or `null` in request options.
52
+ */
53
+ defaultHeaders?: Core.Headers;
54
+ /**
55
+ * Default query parameters to include with every request to the API.
56
+ *
57
+ * These can be removed in individual requests by explicitly setting the
58
+ * param to `undefined` in request options.
59
+ */
60
+ defaultQuery?: Core.DefaultQuery;
61
+ }
62
+ /**
63
+ * API Client for interfacing with the Arcade API.
64
+ */
65
+ export declare class Arcade extends Core.APIClient {
66
+ apiKey: string;
67
+ private _options;
68
+ /**
69
+ * API Client for interfacing with the Arcade API.
70
+ *
71
+ * @param {string | undefined} [opts.apiKey=process.env['ARCADE_API_KEY'] ?? undefined]
72
+ * @param {string} [opts.baseURL=process.env['ARCADE_BASE_URL'] ?? https://api.arcade-ai.com] - Override the default base URL for the API.
73
+ * @param {number} [opts.timeout=1 minute] - The maximum amount of time (in milliseconds) the client will wait for a response before timing out.
74
+ * @param {number} [opts.httpAgent] - An HTTP agent used to manage HTTP(s) connections.
75
+ * @param {Core.Fetch} [opts.fetch] - Specify a custom `fetch` function implementation.
76
+ * @param {number} [opts.maxRetries=2] - The maximum number of times the client will retry a request.
77
+ * @param {Core.Headers} opts.defaultHeaders - Default headers to include with every request to the API.
78
+ * @param {Core.DefaultQuery} opts.defaultQuery - Default query parameters to include with every request to the API.
79
+ */
80
+ constructor({ baseURL, apiKey, ...opts }?: ClientOptions);
81
+ auth: API.Auth;
82
+ health: API.Health;
83
+ chat: API.Chat;
84
+ tools: API.Tools;
85
+ protected defaultQuery(): Core.DefaultQuery | undefined;
86
+ protected defaultHeaders(opts: Core.FinalRequestOptions): Core.Headers;
87
+ protected authHeaders(opts: Core.FinalRequestOptions): Core.Headers;
88
+ static Arcade: typeof Arcade;
89
+ static DEFAULT_TIMEOUT: number;
90
+ static ArcadeError: typeof Errors.ArcadeError;
91
+ static APIError: typeof Errors.APIError;
92
+ static APIConnectionError: typeof Errors.APIConnectionError;
93
+ static APIConnectionTimeoutError: typeof Errors.APIConnectionTimeoutError;
94
+ static APIUserAbortError: typeof Errors.APIUserAbortError;
95
+ static NotFoundError: typeof Errors.NotFoundError;
96
+ static ConflictError: typeof Errors.ConflictError;
97
+ static RateLimitError: typeof Errors.RateLimitError;
98
+ static BadRequestError: typeof Errors.BadRequestError;
99
+ static AuthenticationError: typeof Errors.AuthenticationError;
100
+ static InternalServerError: typeof Errors.InternalServerError;
101
+ static PermissionDeniedError: typeof Errors.PermissionDeniedError;
102
+ static UnprocessableEntityError: typeof Errors.UnprocessableEntityError;
103
+ static toFile: typeof Uploads.toFile;
104
+ static fileFromPath: typeof Uploads.fileFromPath;
105
+ }
106
+ export declare const ArcadeError: typeof Errors.ArcadeError, APIError: typeof Errors.APIError, APIConnectionError: typeof Errors.APIConnectionError, APIConnectionTimeoutError: typeof Errors.APIConnectionTimeoutError, APIUserAbortError: typeof Errors.APIUserAbortError, NotFoundError: typeof Errors.NotFoundError, ConflictError: typeof Errors.ConflictError, RateLimitError: typeof Errors.RateLimitError, BadRequestError: typeof Errors.BadRequestError, AuthenticationError: typeof Errors.AuthenticationError, InternalServerError: typeof Errors.InternalServerError, PermissionDeniedError: typeof Errors.PermissionDeniedError, UnprocessableEntityError: typeof Errors.UnprocessableEntityError;
107
+ export import toFile = Uploads.toFile;
108
+ export import fileFromPath = Uploads.fileFromPath;
109
+ export declare namespace Arcade {
110
+ export import RequestOptions = Core.RequestOptions;
111
+ export import OffsetPage = Pagination.OffsetPage;
112
+ export import OffsetPageParams = Pagination.OffsetPageParams;
113
+ export import OffsetPageResponse = Pagination.OffsetPageResponse;
114
+ export import Auth = API.Auth;
115
+ export import AuthRequest = API.AuthRequest;
116
+ export import AuthAuthorizeParams = API.AuthAuthorizeParams;
117
+ export import AuthStatusParams = API.AuthStatusParams;
118
+ export import Health = API.Health;
119
+ export import HealthSchema = API.HealthSchema;
120
+ export import Chat = API.Chat;
121
+ export import ChatMessage = API.ChatMessage;
122
+ export import ChatRequest = API.ChatRequest;
123
+ export import ChatResponse = API.ChatResponse;
124
+ export import Choice = API.Choice;
125
+ export import Usage = API.Usage;
126
+ export import Tools = API.Tools;
127
+ export import AuthorizeToolRequest = API.AuthorizeToolRequest;
128
+ export import ExecuteToolRequest = API.ExecuteToolRequest;
129
+ export import Inputs = API.Inputs;
130
+ export import Output = API.Output;
131
+ export import Parameter = API.Parameter;
132
+ export import Requirements = API.Requirements;
133
+ export import Response = API.Response;
134
+ export import ResponseOutput = API.ResponseOutput;
135
+ export import ToolkitDefinition = API.ToolkitDefinition;
136
+ export import ValueSchema = API.ValueSchema;
137
+ export import ToolListParams = API.ToolListParams;
138
+ export import ToolAuthorizeParams = API.ToolAuthorizeParams;
139
+ export import ToolExecuteParams = API.ToolExecuteParams;
140
+ export import ToolGetParams = API.ToolGetParams;
141
+ export import AuthorizationResponse = API.AuthorizationResponse;
142
+ export import Error = API.Error;
143
+ export import ToolDefinition = API.ToolDefinition;
144
+ }
145
+ export default Arcade;
146
+ //# sourceMappingURL=index.d.ts.map
package/index.d.ts.map ADDED
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["src/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,MAAM,SAAS,CAAC;AAClC,OAAO,KAAK,OAAO,MAAM,WAAW,CAAC;AACrC,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAC5C,OAAO,KAAK,IAAI,MAAM,QAAQ,CAAC;AAC/B,OAAO,KAAK,UAAU,MAAM,cAAc,CAAC;AAC3C,OAAO,KAAK,GAAG,MAAM,mBAAmB,CAAC;AAEzC,MAAM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CAAC;IAC5D,MAAM,QAAQ,iBAAiB,GAAG,GAAG,CAAC,iBAAiB,CAAC;IACxD,MAAM,QAAQ,aAAa,GAAG,GAAG,CAAC,aAAa,CAAC;IAEhD,MAAM,QAAQ,qBAAqB,GAAG,GAAG,CAAC,qBAAqB,CAAC;IAChE,MAAM,QAAQ,KAAK,GAAG,GAAG,CAAC,KAAK,CAAC;IAChC,MAAM,QAAQ,cAAc,GAAG,GAAG,CAAC,cAAc,CAAC;CACnD;AAED,eAAe,MAAM,CAAC"}
package/index.js ADDED
@@ -0,0 +1,118 @@
1
+ "use strict";
2
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
+ if (k2 === undefined) k2 = k;
5
+ var desc = Object.getOwnPropertyDescriptor(m, k);
6
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
+ desc = { enumerable: true, get: function() { return m[k]; } };
8
+ }
9
+ Object.defineProperty(o, k2, desc);
10
+ }) : (function(o, m, k, k2) {
11
+ if (k2 === undefined) k2 = k;
12
+ o[k2] = m[k];
13
+ }));
14
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
15
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
16
+ }) : function(o, v) {
17
+ o["default"] = v;
18
+ });
19
+ var __importStar = (this && this.__importStar) || function (mod) {
20
+ if (mod && mod.__esModule) return mod;
21
+ var result = {};
22
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
23
+ __setModuleDefault(result, mod);
24
+ return result;
25
+ };
26
+ var _a;
27
+ Object.defineProperty(exports, "__esModule", { value: true });
28
+ exports.fileFromPath = exports.toFile = exports.UnprocessableEntityError = exports.PermissionDeniedError = exports.InternalServerError = exports.AuthenticationError = exports.BadRequestError = exports.RateLimitError = exports.ConflictError = exports.NotFoundError = exports.APIUserAbortError = exports.APIConnectionTimeoutError = exports.APIConnectionError = exports.APIError = exports.ArcadeError = exports.Arcade = void 0;
29
+ const Errors = __importStar(require("./error.js"));
30
+ const Uploads = __importStar(require("./uploads.js"));
31
+ const Core = __importStar(require("./core.js"));
32
+ const Pagination = __importStar(require("./pagination.js"));
33
+ const API = __importStar(require("./resources/index.js"));
34
+ /**
35
+ * API Client for interfacing with the Arcade API.
36
+ */
37
+ class Arcade extends Core.APIClient {
38
+ /**
39
+ * API Client for interfacing with the Arcade API.
40
+ *
41
+ * @param {string | undefined} [opts.apiKey=process.env['ARCADE_API_KEY'] ?? undefined]
42
+ * @param {string} [opts.baseURL=process.env['ARCADE_BASE_URL'] ?? https://api.arcade-ai.com] - Override the default base URL for the API.
43
+ * @param {number} [opts.timeout=1 minute] - The maximum amount of time (in milliseconds) the client will wait for a response before timing out.
44
+ * @param {number} [opts.httpAgent] - An HTTP agent used to manage HTTP(s) connections.
45
+ * @param {Core.Fetch} [opts.fetch] - Specify a custom `fetch` function implementation.
46
+ * @param {number} [opts.maxRetries=2] - The maximum number of times the client will retry a request.
47
+ * @param {Core.Headers} opts.defaultHeaders - Default headers to include with every request to the API.
48
+ * @param {Core.DefaultQuery} opts.defaultQuery - Default query parameters to include with every request to the API.
49
+ */
50
+ constructor({ baseURL = Core.readEnv('ARCADE_BASE_URL'), apiKey = Core.readEnv('ARCADE_API_KEY'), ...opts } = {}) {
51
+ if (apiKey === undefined) {
52
+ throw new Errors.ArcadeError("The ARCADE_API_KEY environment variable is missing or empty; either provide it, or instantiate the Arcade client with an apiKey option, like new Arcade({ apiKey: 'My API Key' }).");
53
+ }
54
+ const options = {
55
+ apiKey,
56
+ ...opts,
57
+ baseURL: baseURL || `https://api.arcade-ai.com`,
58
+ };
59
+ super({
60
+ baseURL: options.baseURL,
61
+ timeout: options.timeout ?? 60000 /* 1 minute */,
62
+ httpAgent: options.httpAgent,
63
+ maxRetries: options.maxRetries,
64
+ fetch: options.fetch,
65
+ });
66
+ this.auth = new API.Auth(this);
67
+ this.health = new API.Health(this);
68
+ this.chat = new API.Chat(this);
69
+ this.tools = new API.Tools(this);
70
+ this._options = options;
71
+ this.idempotencyHeader = 'Idempotency-Key';
72
+ this.apiKey = apiKey;
73
+ }
74
+ defaultQuery() {
75
+ return this._options.defaultQuery;
76
+ }
77
+ defaultHeaders(opts) {
78
+ return {
79
+ ...super.defaultHeaders(opts),
80
+ ...this._options.defaultHeaders,
81
+ };
82
+ }
83
+ authHeaders(opts) {
84
+ return { Authorization: this.apiKey };
85
+ }
86
+ }
87
+ exports.Arcade = Arcade;
88
+ _a = Arcade;
89
+ Arcade.Arcade = _a;
90
+ Arcade.DEFAULT_TIMEOUT = 60000; // 1 minute
91
+ Arcade.ArcadeError = Errors.ArcadeError;
92
+ Arcade.APIError = Errors.APIError;
93
+ Arcade.APIConnectionError = Errors.APIConnectionError;
94
+ Arcade.APIConnectionTimeoutError = Errors.APIConnectionTimeoutError;
95
+ Arcade.APIUserAbortError = Errors.APIUserAbortError;
96
+ Arcade.NotFoundError = Errors.NotFoundError;
97
+ Arcade.ConflictError = Errors.ConflictError;
98
+ Arcade.RateLimitError = Errors.RateLimitError;
99
+ Arcade.BadRequestError = Errors.BadRequestError;
100
+ Arcade.AuthenticationError = Errors.AuthenticationError;
101
+ Arcade.InternalServerError = Errors.InternalServerError;
102
+ Arcade.PermissionDeniedError = Errors.PermissionDeniedError;
103
+ Arcade.UnprocessableEntityError = Errors.UnprocessableEntityError;
104
+ Arcade.toFile = Uploads.toFile;
105
+ Arcade.fileFromPath = Uploads.fileFromPath;
106
+ exports.ArcadeError = Errors.ArcadeError, exports.APIError = Errors.APIError, exports.APIConnectionError = Errors.APIConnectionError, exports.APIConnectionTimeoutError = Errors.APIConnectionTimeoutError, exports.APIUserAbortError = Errors.APIUserAbortError, exports.NotFoundError = Errors.NotFoundError, exports.ConflictError = Errors.ConflictError, exports.RateLimitError = Errors.RateLimitError, exports.BadRequestError = Errors.BadRequestError, exports.AuthenticationError = Errors.AuthenticationError, exports.InternalServerError = Errors.InternalServerError, exports.PermissionDeniedError = Errors.PermissionDeniedError, exports.UnprocessableEntityError = Errors.UnprocessableEntityError;
107
+ exports.toFile = Uploads.toFile;
108
+ exports.fileFromPath = Uploads.fileFromPath;
109
+ (function (Arcade) {
110
+ Arcade.OffsetPage = Pagination.OffsetPage;
111
+ Arcade.Auth = API.Auth;
112
+ Arcade.Health = API.Health;
113
+ Arcade.Chat = API.Chat;
114
+ Arcade.Tools = API.Tools;
115
+ })(Arcade = exports.Arcade || (exports.Arcade = {}));
116
+ exports = module.exports = Arcade;
117
+ exports.default = Arcade;
118
+ //# sourceMappingURL=index.js.map
package/index.js.map ADDED
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["src/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEtF,mDAAkC;AAClC,sDAAqC;AAErC,gDAA+B;AAC/B,4DAA2C;AAC3C,0DAAyC;AAiEzC;;GAEG;AACH,MAAa,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,KAAK,CAAC,cAAc;YAChD,SAAS,EAAE,OAAO,CAAC,SAAS;YA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.
2
+ var _a;
3
+ import * as Errors from "./error.mjs";
4
+ import * as Uploads from "./uploads.mjs";
5
+ import * as Core from "./core.mjs";
6
+ import * as Pagination from "./pagination.mjs";
7
+ import * as API from "./resources/index.mjs";
8
+ /**
9
+ * API Client for interfacing with the Arcade API.
10
+ */
11
+ export class Arcade extends Core.APIClient {
12
+ /**
13
+ * API Client for interfacing with the Arcade API.
14
+ *
15
+ * @param {string | undefined} [opts.apiKey=process.env['ARCADE_API_KEY'] ?? undefined]
16
+ * @param {string} [opts.baseURL=process.env['ARCADE_BASE_URL'] ?? https://api.arcade-ai.com] - Override the default base URL for the API.
17
+ * @param {number} [opts.timeout=1 minute] - The maximum amount of time (in milliseconds) the client will wait for a response before timing out.
18
+ * @param {number} [opts.httpAgent] - An HTTP agent used to manage HTTP(s) connections.
19
+ * @param {Core.Fetch} [opts.fetch] - Specify a custom `fetch` function implementation.
20
+ * @param {number} [opts.maxRetries=2] - The maximum number of times the client will retry a request.
21
+ * @param {Core.Headers} opts.defaultHeaders - Default headers to include with every request to the API.
22
+ * @param {Core.DefaultQuery} opts.defaultQuery - Default query parameters to include with every request to the API.
23
+ */
24
+ constructor({ baseURL = Core.readEnv('ARCADE_BASE_URL'), apiKey = Core.readEnv('ARCADE_API_KEY'), ...opts } = {}) {
25
+ if (apiKey === undefined) {
26
+ throw new Errors.ArcadeError("The ARCADE_API_KEY environment variable is missing or empty; either provide it, or instantiate the Arcade client with an apiKey option, like new Arcade({ apiKey: 'My API Key' }).");
27
+ }
28
+ const options = {
29
+ apiKey,
30
+ ...opts,
31
+ baseURL: baseURL || `https://api.arcade-ai.com`,
32
+ };
33
+ super({
34
+ baseURL: options.baseURL,
35
+ timeout: options.timeout ?? 60000 /* 1 minute */,
36
+ httpAgent: options.httpAgent,
37
+ maxRetries: options.maxRetries,
38
+ fetch: options.fetch,
39
+ });
40
+ this.auth = new API.Auth(this);
41
+ this.health = new API.Health(this);
42
+ this.chat = new API.Chat(this);
43
+ this.tools = new API.Tools(this);
44
+ this._options = options;
45
+ this.idempotencyHeader = 'Idempotency-Key';
46
+ this.apiKey = apiKey;
47
+ }
48
+ defaultQuery() {
49
+ return this._options.defaultQuery;
50
+ }
51
+ defaultHeaders(opts) {
52
+ return {
53
+ ...super.defaultHeaders(opts),
54
+ ...this._options.defaultHeaders,
55
+ };
56
+ }
57
+ authHeaders(opts) {
58
+ return { Authorization: this.apiKey };
59
+ }
60
+ }
61
+ _a = Arcade;
62
+ Arcade.Arcade = _a;
63
+ Arcade.DEFAULT_TIMEOUT = 60000; // 1 minute
64
+ Arcade.ArcadeError = Errors.ArcadeError;
65
+ Arcade.APIError = Errors.APIError;
66
+ Arcade.APIConnectionError = Errors.APIConnectionError;
67
+ Arcade.APIConnectionTimeoutError = Errors.APIConnectionTimeoutError;
68
+ Arcade.APIUserAbortError = Errors.APIUserAbortError;
69
+ Arcade.NotFoundError = Errors.NotFoundError;
70
+ Arcade.ConflictError = Errors.ConflictError;
71
+ Arcade.RateLimitError = Errors.RateLimitError;
72
+ Arcade.BadRequestError = Errors.BadRequestError;
73
+ Arcade.AuthenticationError = Errors.AuthenticationError;
74
+ Arcade.InternalServerError = Errors.InternalServerError;
75
+ Arcade.PermissionDeniedError = Errors.PermissionDeniedError;
76
+ Arcade.UnprocessableEntityError = Errors.UnprocessableEntityError;
77
+ Arcade.toFile = Uploads.toFile;
78
+ Arcade.fileFromPath = Uploads.fileFromPath;
79
+ export const { ArcadeError, APIError, APIConnectionError, APIConnectionTimeoutError, APIUserAbortError, NotFoundError, ConflictError, RateLimitError, BadRequestError, AuthenticationError, InternalServerError, PermissionDeniedError, UnprocessableEntityError, } = Errors;
80
+ export var toFile = Uploads.toFile;
81
+ export var fileFromPath = Uploads.fileFromPath;
82
+ (function (Arcade) {
83
+ Arcade.OffsetPage = Pagination.OffsetPage;
84
+ Arcade.Auth = API.Auth;
85
+ Arcade.Health = API.Health;
86
+ Arcade.Chat = API.Chat;
87
+ Arcade.Tools = API.Tools;
88
+ })(Arcade || (Arcade = {}));
89
+ export default Arcade;
90
+ //# sourceMappingURL=index.mjs.map
package/index.mjs.map ADDED
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","sourceRoot":"","sources":["src/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;;OAE/E,KAAK,MAAM;OACX,KAAK,OAAO;OAEZ,KAAK,IAAI;OACT,KAAK,UAAU;OACf,KAAK,GAAG;AAiEf;;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,KAAK,CAAC,cAAc;YAChD,SAAS,EAAE,OAAO,CAAC,SAAS;YAC5B,UAAU,EAAE,OAAO,CAAC,UAAU;YAC9B,KAAK,EAAE,OAAO,CAAC,KAAK;SACrB,CAAC,CAAC;QAQL,SAAI,GAAa,IAAI,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACpC,WAAM,GAAe,IAAI,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;QAC1C,SAAI,GAAa,IAAI,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACpC,UAAK,GAAc,IAAI,GAAG,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;QATrC,IAAI,CAAC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AC,MAAM,EACX,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,GAAG,MAAM,CAAC;AAEX,MAAM,KAAQ,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;AACtC,MAAM,KAAQ,YAAY,GAAG,OAAO,CAAC,YAAY,CAAC;AAElD,WAAiB,MAAM;IAGP,iBAAU,GAAG,UAAU,CAAC,UAAU,CAAC;IAInC,WAAI,GAAG,GAAG,CAAC,IAAI,CAAC;IAKhB,aAAM,GAAG,GAAG,CAAC,MAAM,CAAC;IAGpB,WAAI,GAAG,GAAG,CAAC,IAAI,CAAC;IAOhB,YAAK,GAAG,GAAG,CAAC,KAAK,CAAC;AAmBlC,CAAC,EAzCgB,MAAM,KAAN,MAAM,QAyCtB;AAED,eAAe,MAAM,CAAC"}
package/package.json ADDED
@@ -0,0 +1,103 @@
1
+ {
2
+ "name": "@arcadeai/arcadejs",
3
+ "version": "0.1.2",
4
+ "description": "The official TypeScript library for the Arcade API",
5
+ "author": "Arcade <contact@arcade-ai.com>",
6
+ "types": "./index.d.ts",
7
+ "main": "./index.js",
8
+ "type": "commonjs",
9
+ "repository": "github:ArcadeAI/arcade-js",
10
+ "license": "Apache-2.0",
11
+ "packageManager": "yarn@1.22.22",
12
+ "files": [
13
+ "*"
14
+ ],
15
+ "private": false,
16
+ "scripts": {
17
+ "test": "./scripts/test",
18
+ "build": "./scripts/build",
19
+ "format": "prettier --write --cache --cache-strategy metadata . !dist",
20
+ "tsn": "ts-node -r tsconfig-paths/register",
21
+ "lint": "./scripts/lint",
22
+ "fix": "./scripts/format"
23
+ },
24
+ "dependencies": {
25
+ "@types/node": "^18.11.18",
26
+ "@types/node-fetch": "^2.6.4",
27
+ "abort-controller": "^3.0.0",
28
+ "agentkeepalive": "^4.2.1",
29
+ "form-data-encoder": "1.7.2",
30
+ "formdata-node": "^4.3.2",
31
+ "node-fetch": "^2.6.7"
32
+ },
33
+ "sideEffects": [
34
+ "./_shims/index.js",
35
+ "./_shims/index.mjs",
36
+ "./shims/node.js",
37
+ "./shims/node.mjs",
38
+ "./shims/web.js",
39
+ "./shims/web.mjs"
40
+ ],
41
+ "imports": {
42
+ "@arcadeai/arcadejs": ".",
43
+ "@arcadeai/arcadejs/*": "./src/*"
44
+ },
45
+ "exports": {
46
+ "./_shims/auto/*": {
47
+ "deno": {
48
+ "types": "./_shims/auto/*.d.ts",
49
+ "require": "./_shims/auto/*.js",
50
+ "default": "./_shims/auto/*.mjs"
51
+ },
52
+ "bun": {
53
+ "types": "./_shims/auto/*.d.ts",
54
+ "require": "./_shims/auto/*-bun.js",
55
+ "default": "./_shims/auto/*-bun.mjs"
56
+ },
57
+ "browser": {
58
+ "types": "./_shims/auto/*.d.ts",
59
+ "require": "./_shims/auto/*.js",
60
+ "default": "./_shims/auto/*.mjs"
61
+ },
62
+ "worker": {
63
+ "types": "./_shims/auto/*.d.ts",
64
+ "require": "./_shims/auto/*.js",
65
+ "default": "./_shims/auto/*.mjs"
66
+ },
67
+ "workerd": {
68
+ "types": "./_shims/auto/*.d.ts",
69
+ "require": "./_shims/auto/*.js",
70
+ "default": "./_shims/auto/*.mjs"
71
+ },
72
+ "node": {
73
+ "types": "./_shims/auto/*-node.d.ts",
74
+ "require": "./_shims/auto/*-node.js",
75
+ "default": "./_shims/auto/*-node.mjs"
76
+ },
77
+ "types": "./_shims/auto/*.d.ts",
78
+ "require": "./_shims/auto/*.js",
79
+ "default": "./_shims/auto/*.mjs"
80
+ },
81
+ ".": {
82
+ "require": {
83
+ "types": "./index.d.ts",
84
+ "default": "./index.js"
85
+ },
86
+ "types": "./index.d.mts",
87
+ "default": "./index.mjs"
88
+ },
89
+ "./*.mjs": {
90
+ "types": "./*.d.ts",
91
+ "default": "./*.mjs"
92
+ },
93
+ "./*.js": {
94
+ "types": "./*.d.ts",
95
+ "default": "./*.js"
96
+ },
97
+ "./*": {
98
+ "types": "./*.d.ts",
99
+ "require": "./*.js",
100
+ "default": "./*.mjs"
101
+ }
102
+ }
103
+ }
@@ -0,0 +1,26 @@
1
+ import { AbstractPage, Response, APIClient, FinalRequestOptions, PageInfo } from "./core.js";
2
+ export interface OffsetPageResponse<Item> {
3
+ items: Array<Item>;
4
+ total_count: number;
5
+ offset: number;
6
+ }
7
+ export interface OffsetPageParams {
8
+ /**
9
+ * The number of elements to skip.
10
+ */
11
+ offset?: number;
12
+ /**
13
+ * The maximum number of elements to fetch.
14
+ */
15
+ limit?: number;
16
+ }
17
+ export declare class OffsetPage<Item> extends AbstractPage<Item> implements OffsetPageResponse<Item> {
18
+ items: Array<Item>;
19
+ total_count: number;
20
+ offset: number;
21
+ constructor(client: APIClient, response: Response, body: OffsetPageResponse<Item>, options: FinalRequestOptions);
22
+ getPaginatedItems(): Item[];
23
+ nextPageParams(): Partial<OffsetPageParams> | null;
24
+ nextPageInfo(): PageInfo | null;
25
+ }
26
+ //# sourceMappingURL=pagination.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pagination.d.ts","sourceRoot":"","sources":["src/pagination.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,QAAQ,EAAE,SAAS,EAAE,mBAAmB,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAE1F,MAAM,WAAW,kBAAkB,CAAC,IAAI;IACtC,KAAK,EAAE,KAAK,CAAC,IAAI,CAAC,CAAC;IAEnB,WAAW,EAAE,MAAM,CAAC;IAEpB,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,gBAAgB;IAC/B;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,qBAAa,UAAU,CAAC,IAAI,CAAE,SAAQ,YAAY,CAAC,IAAI,CAAE,YAAW,kBAAkB,CAAC,IAAI,CAAC;IAC1F,KAAK,EAAE,KAAK,CAAC,IAAI,CAAC,CAAC;IAEnB,WAAW,EAAE,MAAM,CAAC;IAEpB,MAAM,EAAE,MAAM,CAAC;gBAGb,MAAM,EAAE,SAAS,EACjB,QAAQ,EAAE,QAAQ,EAClB,IAAI,EAAE,kBAAkB,CAAC,IAAI,CAAC,EAC9B,OAAO,EAAE,mBAAmB;IAS9B,iBAAiB,IAAI,IAAI,EAAE;IAK3B,cAAc,IAAI,OAAO,CAAC,gBAAgB,CAAC,GAAG,IAAI;IASlD,YAAY,IAAI,QAAQ,GAAG,IAAI;CAoBhC"}
package/pagination.js ADDED
@@ -0,0 +1,46 @@
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.OffsetPage = void 0;
5
+ const core_1 = require("./core.js");
6
+ class OffsetPage extends core_1.AbstractPage {
7
+ constructor(client, response, body, options) {
8
+ super(client, response, body, options);
9
+ this.items = body.items || [];
10
+ this.total_count = body.total_count || 0;
11
+ this.offset = body.offset || 0;
12
+ }
13
+ getPaginatedItems() {
14
+ return this.items ?? [];
15
+ }
16
+ // @deprecated Please use `nextPageInfo()` instead
17
+ nextPageParams() {
18
+ const info = this.nextPageInfo();
19
+ if (!info)
20
+ return null;
21
+ if ('params' in info)
22
+ return info.params;
23
+ const params = Object.fromEntries(info.url.searchParams);
24
+ if (!Object.keys(params).length)
25
+ return null;
26
+ return params;
27
+ }
28
+ nextPageInfo() {
29
+ const offset = this.offset;
30
+ if (!offset) {
31
+ return null;
32
+ }
33
+ const length = this.getPaginatedItems().length;
34
+ const currentCount = offset + length;
35
+ const totalCount = this.total_count;
36
+ if (!totalCount) {
37
+ return null;
38
+ }
39
+ if (currentCount < totalCount) {
40
+ return { params: { offset: currentCount } };
41
+ }
42
+ return null;
43
+ }
44
+ }
45
+ exports.OffsetPage = OffsetPage;
46
+ //# sourceMappingUR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AErC,MAAM,UAAU,GAAG,IAAI,CAAC,WAAW,CAAC;QACpC,IAAI,CAAC,UAAU,EAAE;YACf,OAAO,IAAI,CAAC;SACb;QAED,IAAI,YAAY,GAAG,UAAU,EAAE;YAC7B,OAAO,EAAE,MAAM,EAAE,EAAE,MAAM,EAAE,YAAY,EAAE,EAAE,CAAC;SAC7C;QAED,OAAO,IAAI,CAAC;IACd,CAAC;CACF;AAtDD,gCAsDC"}
package/pagination.mjs ADDED
@@ -0,0 +1,42 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ import { AbstractPage } from "./core.mjs";
3
+ export class OffsetPage extends AbstractPage {
4
+ constructor(client, response, body, options) {
5
+ super(client, response, body, options);
6
+ this.items = body.items || [];
7
+ this.total_count = body.total_count || 0;
8
+ this.offset = body.offset || 0;
9
+ }
10
+ getPaginatedItems() {
11
+ return this.items ?? [];
12
+ }
13
+ // @deprecated Please use `nextPageInfo()` instead
14
+ nextPageParams() {
15
+ const info = this.nextPageInfo();
16
+ if (!info)
17
+ return null;
18
+ if ('params' in info)
19
+ return info.params;
20
+ const params = Object.fromEntries(info.url.searchParams);
21
+ if (!Object.keys(params).length)
22
+ return null;
23
+ return params;
24
+ }
25
+ nextPageInfo() {
26
+ const offset = this.offset;
27
+ if (!offset) {
28
+ return null;
29
+ }
30
+ const length = this.getPaginatedItems().length;
31
+ const currentCount = offset + length;
32
+ const totalCount = this.total_count;
33
+ if (!totalCount) {
34
+ return null;
35
+ }
36
+ if (currentCount < totalCount) {
37
+ return { params: { offset: currentCount } };
38
+ }
39
+ return null;
40
+ }
41
+ }
42
+ //# sourceMappingURL=pagination.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pagination.mjs","sourceRoot":"","sources":["src/pagination.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,YAAY,EAAsD;AAsB3E,MAAM,OAAO,UAAiB,SAAQ,YAAkB;IAOtD,YACE,MAAiB,EACjB,QAAk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,EAAE,EAAE,CAAC;SAC7C;QAED,OAAO,IAAI,CAAC;IACd,CAAC;CACF"}
package/resource.d.ts ADDED
@@ -0,0 +1,6 @@
1
+ import type { Arcade } from "./index.js";
2
+ export declare class APIResource {
3
+ protected _client: Arcade;
4
+ constructor(client: Arcade);
5
+ }
6
+ //# sourceMappingURL=resource.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resource.d.ts","sourceRoot":"","sources":["src/resource.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AAEtC,qBAAa,WAAW;IACtB,SAAS,CAAC,OAAO,EAAE,MAAM,CAAC;gBAEd,MAAM,EAAE,MAAM;CAG3B"}
package/resource.js ADDED
@@ -0,0 +1,11 @@
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.APIResource = void 0;
5
+ class APIResource {
6
+ constructor(client) {
7
+ this._client = client;
8
+ }
9
+ }
10
+ exports.APIResource = APIResource;
11
+ //# sourceMappingURL=resource.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resource.js","sourceRoot":"","sources":["src/resource.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAItF,MAAa,WAAW;IAGtB,YAAY,MAAc;QACxB,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC;IACxB,CAAC;CACF;AAND,kCAMC"}
package/resource.mjs ADDED
@@ -0,0 +1,7 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ export class APIResource {
3
+ constructor(client) {
4
+ this._client = client;
5
+ }
6
+ }
7
+ //# sourceMappingURL=resource.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resource.mjs","sourceRoot":"","sources":["src/resource.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAItF,MAAM,OAAO,WAAW;IAGtB,YAAY,MAAc;QACxB,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC;IACxB,CAAC;CACF"}