ADAPT-Chase commited on
Commit
69add09
·
verified ·
1 Parent(s): a6397e5

Add files using upload-large-folder tool

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. platform/aiml/elizabeth/e-1-first_session/claude-code-router/node_modules/@anthropic-ai/sdk/CHANGELOG.md +0 -0
  2. platform/aiml/elizabeth/e-1-first_session/claude-code-router/node_modules/@anthropic-ai/sdk/LICENSE +8 -0
  3. platform/aiml/elizabeth/e-1-first_session/claude-code-router/node_modules/@anthropic-ai/sdk/README.md +662 -0
  4. platform/aiml/elizabeth/e-1-first_session/claude-code-router/node_modules/@anthropic-ai/sdk/api-promise.d.mts +2 -0
  5. platform/aiml/elizabeth/e-1-first_session/claude-code-router/node_modules/@anthropic-ai/sdk/api-promise.d.mts.map +1 -0
  6. platform/aiml/elizabeth/e-1-first_session/claude-code-router/node_modules/@anthropic-ai/sdk/api-promise.d.ts +2 -0
  7. platform/aiml/elizabeth/e-1-first_session/claude-code-router/node_modules/@anthropic-ai/sdk/api-promise.d.ts.map +1 -0
  8. platform/aiml/elizabeth/e-1-first_session/claude-code-router/node_modules/@anthropic-ai/sdk/api-promise.js +6 -0
  9. platform/aiml/elizabeth/e-1-first_session/claude-code-router/node_modules/@anthropic-ai/sdk/api-promise.js.map +1 -0
  10. platform/aiml/elizabeth/e-1-first_session/claude-code-router/node_modules/@anthropic-ai/sdk/api-promise.mjs +2 -0
  11. platform/aiml/elizabeth/e-1-first_session/claude-code-router/node_modules/@anthropic-ai/sdk/api-promise.mjs.map +1 -0
  12. platform/aiml/elizabeth/e-1-first_session/claude-code-router/node_modules/@anthropic-ai/sdk/client.d.mts +225 -0
  13. platform/aiml/elizabeth/e-1-first_session/claude-code-router/node_modules/@anthropic-ai/sdk/client.d.mts.map +1 -0
  14. platform/aiml/elizabeth/e-1-first_session/claude-code-router/node_modules/@anthropic-ai/sdk/client.d.ts +225 -0
  15. platform/aiml/elizabeth/e-1-first_session/claude-code-router/node_modules/@anthropic-ai/sdk/client.d.ts.map +1 -0
  16. platform/aiml/elizabeth/e-1-first_session/claude-code-router/node_modules/@anthropic-ai/sdk/client.js +536 -0
  17. platform/aiml/elizabeth/e-1-first_session/claude-code-router/node_modules/@anthropic-ai/sdk/client.js.map +1 -0
  18. platform/aiml/elizabeth/e-1-first_session/claude-code-router/node_modules/@anthropic-ai/sdk/client.mjs +531 -0
  19. platform/aiml/elizabeth/e-1-first_session/claude-code-router/node_modules/@anthropic-ai/sdk/client.mjs.map +1 -0
  20. platform/aiml/elizabeth/e-1-first_session/claude-code-router/node_modules/@anthropic-ai/sdk/error.d.mts +2 -0
  21. platform/aiml/elizabeth/e-1-first_session/claude-code-router/node_modules/@anthropic-ai/sdk/error.d.mts.map +1 -0
  22. platform/aiml/elizabeth/e-1-first_session/claude-code-router/node_modules/@anthropic-ai/sdk/error.d.ts +2 -0
  23. platform/aiml/elizabeth/e-1-first_session/claude-code-router/node_modules/@anthropic-ai/sdk/error.d.ts.map +1 -0
  24. platform/aiml/elizabeth/e-1-first_session/claude-code-router/node_modules/@anthropic-ai/sdk/error.js +6 -0
  25. platform/aiml/elizabeth/e-1-first_session/claude-code-router/node_modules/@anthropic-ai/sdk/error.js.map +1 -0
  26. platform/aiml/elizabeth/e-1-first_session/claude-code-router/node_modules/@anthropic-ai/sdk/error.mjs +2 -0
  27. platform/aiml/elizabeth/e-1-first_session/claude-code-router/node_modules/@anthropic-ai/sdk/error.mjs.map +1 -0
  28. platform/aiml/elizabeth/e-1-first_session/claude-code-router/node_modules/@anthropic-ai/sdk/index.d.mts +7 -0
  29. platform/aiml/elizabeth/e-1-first_session/claude-code-router/node_modules/@anthropic-ai/sdk/index.d.mts.map +1 -0
  30. platform/aiml/elizabeth/e-1-first_session/claude-code-router/node_modules/@anthropic-ai/sdk/index.d.ts +7 -0
  31. platform/aiml/elizabeth/e-1-first_session/claude-code-router/node_modules/@anthropic-ai/sdk/index.d.ts.map +1 -0
  32. platform/aiml/elizabeth/e-1-first_session/claude-code-router/node_modules/@anthropic-ai/sdk/index.js +35 -0
  33. platform/aiml/elizabeth/e-1-first_session/claude-code-router/node_modules/@anthropic-ai/sdk/index.js.map +1 -0
  34. platform/aiml/elizabeth/e-1-first_session/claude-code-router/node_modules/@anthropic-ai/sdk/index.mjs +8 -0
  35. platform/aiml/elizabeth/e-1-first_session/claude-code-router/node_modules/@anthropic-ai/sdk/index.mjs.map +1 -0
  36. platform/aiml/elizabeth/e-1-first_session/claude-code-router/node_modules/@anthropic-ai/sdk/package.json +182 -0
  37. platform/aiml/elizabeth/e-1-first_session/claude-code-router/node_modules/@anthropic-ai/sdk/pagination.d.mts +2 -0
  38. platform/aiml/elizabeth/e-1-first_session/claude-code-router/node_modules/@anthropic-ai/sdk/pagination.d.mts.map +1 -0
  39. platform/aiml/elizabeth/e-1-first_session/claude-code-router/node_modules/@anthropic-ai/sdk/pagination.d.ts +2 -0
  40. platform/aiml/elizabeth/e-1-first_session/claude-code-router/node_modules/@anthropic-ai/sdk/pagination.js +6 -0
  41. platform/aiml/elizabeth/e-1-first_session/claude-code-router/node_modules/@anthropic-ai/sdk/pagination.mjs +2 -0
  42. platform/aiml/elizabeth/e-1-first_session/claude-code-router/node_modules/@anthropic-ai/sdk/pagination.mjs.map +1 -0
  43. platform/aiml/elizabeth/e-1-first_session/claude-code-router/node_modules/@anthropic-ai/sdk/resource.d.mts +2 -0
  44. platform/aiml/elizabeth/e-1-first_session/claude-code-router/node_modules/@anthropic-ai/sdk/resource.d.mts.map +1 -0
  45. platform/aiml/elizabeth/e-1-first_session/claude-code-router/node_modules/@anthropic-ai/sdk/resource.js +6 -0
  46. platform/aiml/elizabeth/e-1-first_session/claude-code-router/node_modules/@anthropic-ai/sdk/resource.mjs +2 -0
  47. platform/aiml/elizabeth/e-1-first_session/claude-code-router/node_modules/@anthropic-ai/sdk/resource.mjs.map +1 -0
  48. platform/aiml/elizabeth/e-1-first_session/claude-code-router/node_modules/@anthropic-ai/sdk/resources.d.mts +2 -0
  49. platform/aiml/elizabeth/e-1-first_session/claude-code-router/node_modules/@anthropic-ai/sdk/resources.d.mts.map +1 -0
  50. platform/aiml/elizabeth/e-1-first_session/claude-code-router/node_modules/@anthropic-ai/sdk/resources.d.ts +2 -0
platform/aiml/elizabeth/e-1-first_session/claude-code-router/node_modules/@anthropic-ai/sdk/CHANGELOG.md ADDED
The diff for this file is too large to render. See raw diff
 
platform/aiml/elizabeth/e-1-first_session/claude-code-router/node_modules/@anthropic-ai/sdk/LICENSE ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ Copyright 2023 Anthropic, PBC.
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
4
+
5
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
6
+
7
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
8
+
platform/aiml/elizabeth/e-1-first_session/claude-code-router/node_modules/@anthropic-ai/sdk/README.md ADDED
@@ -0,0 +1,662 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 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
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Anthropic TypeScript API Library
2
+
3
+ [![NPM version](https://img.shields.io/npm/v/@anthropic-ai/sdk.svg)](https://npmjs.org/package/@anthropic-ai/sdk) ![npm bundle size](https://img.shields.io/bundlephobia/minzip/@anthropic-ai/sdk)
4
+
5
+ This library provides convenient access to the Anthropic REST API from server-side TypeScript or JavaScript.
6
+
7
+ The REST API documentation can be found on [docs.anthropic.com](https://docs.anthropic.com/claude/reference/). The full API of this library can be found in [api.md](api.md).
8
+
9
+ ## Installation
10
+
11
+ ```sh
12
+ npm install @anthropic-ai/sdk
13
+ ```
14
+
15
+ ## Usage
16
+
17
+ The full API of this library can be found in [api.md](api.md).
18
+
19
+ <!-- prettier-ignore -->
20
+ ```js
21
+ import Anthropic from '@anthropic-ai/sdk';
22
+
23
+ const client = new Anthropic({
24
+ apiKey: process.env['ANTHROPIC_API_KEY'], // This is the default and can be omitted
25
+ });
26
+
27
+ const message = await client.messages.create({
28
+ max_tokens: 1024,
29
+ messages: [{ role: 'user', content: 'Hello, Claude' }],
30
+ model: 'claude-3-5-sonnet-latest',
31
+ });
32
+
33
+ console.log(message.content);
34
+ ```
35
+
36
+ ## Streaming responses
37
+
38
+ We provide support for streaming responses using Server Sent Events (SSE).
39
+
40
+ ```ts
41
+ import Anthropic from '@anthropic-ai/sdk';
42
+
43
+ const client = new Anthropic();
44
+
45
+ const stream = await client.messages.create({
46
+ max_tokens: 1024,
47
+ messages: [{ role: 'user', content: 'Hello, Claude' }],
48
+ model: 'claude-3-5-sonnet-latest',
49
+ stream: true,
50
+ });
51
+ for await (const messageStreamEvent of stream) {
52
+ console.log(messageStreamEvent.type);
53
+ }
54
+ ```
55
+
56
+ If you need to cancel a stream, you can `break` from the loop
57
+ or call `stream.controller.abort()`.
58
+
59
+ ### Request & Response types
60
+
61
+ This library includes TypeScript definitions for all request params and response fields. You may import and use them like so:
62
+
63
+ <!-- prettier-ignore -->
64
+ ```ts
65
+ import Anthropic from '@anthropic-ai/sdk';
66
+
67
+ const client = new Anthropic({
68
+ apiKey: process.env['ANTHROPIC_API_KEY'], // This is the default and can be omitted
69
+ });
70
+
71
+ const params: Anthropic.MessageCreateParams = {
72
+ max_tokens: 1024,
73
+ messages: [{ role: 'user', content: 'Hello, Claude' }],
74
+ model: 'claude-3-5-sonnet-latest',
75
+ };
76
+ const message: Anthropic.Message = await client.messages.create(params);
77
+ ```
78
+
79
+ Documentation for each method, request param, and response field are available in docstrings and will appear on hover in most modern editors.
80
+
81
+ ## Counting Tokens
82
+
83
+ You can see the exact usage for a given request through the `usage` response property, e.g.
84
+
85
+ ```ts
86
+ const message = await client.messages.create(...)
87
+ console.log(message.usage)
88
+ // { input_tokens: 25, output_tokens: 13 }
89
+ ```
90
+
91
+ ## Streaming Helpers
92
+
93
+ This library provides several conveniences for streaming messages, for example:
94
+
95
+ ```ts
96
+ import Anthropic from '@anthropic-ai/sdk';
97
+
98
+ const anthropic = new Anthropic();
99
+
100
+ async function main() {
101
+ const stream = anthropic.messages
102
+ .stream({
103
+ model: 'claude-3-5-sonnet-latest',
104
+ max_tokens: 1024,
105
+ messages: [
106
+ {
107
+ role: 'user',
108
+ content: 'Say hello there!',
109
+ },
110
+ ],
111
+ })
112
+ .on('text', (text) => {
113
+ console.log(text);
114
+ });
115
+
116
+ const message = await stream.finalMessage();
117
+ console.log(message);
118
+ }
119
+
120
+ main();
121
+ ```
122
+
123
+ Streaming with `client.messages.stream(...)` exposes [various helpers for your convenience](helpers.md) including event handlers and accumulation.
124
+
125
+ Alternatively, you can use `client.messages.create({ ..., stream: true })` which only returns an async iterable of the events in the stream and thus uses less memory (it does not build up a final message object for you).
126
+
127
+ ## Message Batches
128
+
129
+ This SDK provides beta support for the [Message Batches API](https://docs.anthropic.com/en/docs/build-with-claude/message-batches) under the `client.beta.messages.batches` namespace.
130
+
131
+ ### Creating a batch
132
+
133
+ Message Batches takes an array of requests, where each object has a `custom_id` identifier, and the exact same request `params` as the standard Messages API:
134
+
135
+ ```ts
136
+ await anthropic.beta.messages.batches.create({
137
+ requests: [
138
+ {
139
+ custom_id: 'my-first-request',
140
+ params: {
141
+ model: 'claude-3-5-sonnet-latest',
142
+ max_tokens: 1024,
143
+ messages: [{ role: 'user', content: 'Hello, world' }],
144
+ },
145
+ },
146
+ {
147
+ custom_id: 'my-second-request',
148
+ params: {
149
+ model: 'claude-3-5-sonnet-latest',
150
+ max_tokens: 1024,
151
+ messages: [{ role: 'user', content: 'Hi again, friend' }],
152
+ },
153
+ },
154
+ ],
155
+ });
156
+ ```
157
+
158
+ ### Getting results from a batch
159
+
160
+ Once a Message Batch has been processed, indicated by `.processing_status === 'ended'`, you can access the results with `.batches.results()`
161
+
162
+ ```ts
163
+ const results = await anthropic.beta.messages.batches.results(batch_id);
164
+ for await (const entry of results) {
165
+ if (entry.result.type === 'succeeded') {
166
+ console.log(entry.result.message.content);
167
+ }
168
+ }
169
+ ```
170
+
171
+ ## Tool use
172
+
173
+ This SDK provides support for tool use, aka function calling. More details can be found in [the documentation](https://docs.anthropic.com/claude/docs/tool-use).
174
+
175
+ ## AWS Bedrock
176
+
177
+ We provide support for the [Anthropic Bedrock API](https://aws.amazon.com/bedrock/claude/) through a [separate package](https://github.com/anthropics/anthropic-sdk-typescript/tree/main/packages/bedrock-sdk).
178
+
179
+ ## File uploads
180
+
181
+ Request parameters that correspond to file uploads can be passed in many different forms:
182
+
183
+ - `File` (or an object with the same structure)
184
+ - a `fetch` `Response` (or an object with the same structure)
185
+ - an `fs.ReadStream`
186
+ - the return value of our `toFile` helper
187
+
188
+ Note that we recommend you set the content-type explicitly as the files API will not infer it for you:
189
+
190
+ ```ts
191
+ import fs from 'fs';
192
+ import Anthropic, { toFile } from '@anthropic-ai/sdk';
193
+
194
+ const client = new Anthropic();
195
+
196
+ // If you have access to Node `fs` we recommend using `fs.createReadStream()`:
197
+ await client.beta.files.upload({
198
+ file: await toFile(fs.createReadStream('/path/to/file'), undefined, { type: 'application/json' }),
199
+ betas: ['files-api-2025-04-14'],
200
+ });
201
+
202
+ // Or if you have the web `File` API you can pass a `File` instance:
203
+ await client.beta.files.upload({
204
+ file: new File(['my bytes'], 'file.txt', { type: 'text/plain' }),
205
+ betas: ['files-api-2025-04-14'],
206
+ });
207
+ // You can also pass a `fetch` `Response`:
208
+ await client.beta.files.upload({
209
+ file: await fetch('https://somesite/file'),
210
+ betas: ['files-api-2025-04-14'],
211
+ });
212
+
213
+ // Or a `Buffer` / `Uint8Array`
214
+ await client.beta.files.upload({
215
+ file: await toFile(Buffer.from('my bytes'), 'file', { type: 'text/plain' }),
216
+ betas: ['files-api-2025-04-14'],
217
+ });
218
+ await client.beta.files.upload({
219
+ file: await toFile(new Uint8Array([0, 1, 2]), 'file', { type: 'text/plain' }),
220
+ betas: ['files-api-2025-04-14'],
221
+ });
222
+ ```
223
+
224
+ ## Handling errors
225
+
226
+ When the library is unable to connect to the API,
227
+ or if the API returns a non-success status code (i.e., 4xx or 5xx response),
228
+ a subclass of `APIError` will be thrown:
229
+
230
+ <!-- prettier-ignore -->
231
+ ```ts
232
+ const message = await client.messages
233
+ .create({
234
+ max_tokens: 1024,
235
+ messages: [{ role: 'user', content: 'Hello, Claude' }],
236
+ model: 'claude-3-5-sonnet-latest',
237
+ })
238
+ .catch(async (err) => {
239
+ if (err instanceof Anthropic.APIError) {
240
+ console.log(err.status); // 400
241
+ console.log(err.name); // BadRequestError
242
+ console.log(err.headers); // {server: 'nginx', ...}
243
+ } else {
244
+ throw err;
245
+ }
246
+ });
247
+ ```
248
+
249
+ Error codes are as follows:
250
+
251
+ | Status Code | Error Type |
252
+ | ----------- | -------------------------- |
253
+ | 400 | `BadRequestError` |
254
+ | 401 | `AuthenticationError` |
255
+ | 403 | `PermissionDeniedError` |
256
+ | 404 | `NotFoundError` |
257
+ | 422 | `UnprocessableEntityError` |
258
+ | 429 | `RateLimitError` |
259
+ | >=500 | `InternalServerError` |
260
+ | N/A | `APIConnectionError` |
261
+
262
+ ## Request IDs
263
+
264
+ > For more information on debugging requests, see [these docs](https://docs.anthropic.com/en/api/errors#request-id)
265
+
266
+ All object responses in the SDK provide a `_request_id` property which is added from the `request-id` response header so that you can quickly log failing requests and report them back to Anthropic.
267
+
268
+ ```ts
269
+ const message = await client.messages.create({
270
+ max_tokens: 1024,
271
+ messages: [{ role: 'user', content: 'Hello, Claude' }],
272
+ model: 'claude-3-5-sonnet-latest',
273
+ });
274
+ console.log(message._request_id); // req_018EeWyXxfu5pfWkrYcMdjWG
275
+ ```
276
+
277
+ ### Retries
278
+
279
+ Certain errors will be automatically retried 2 times by default, with a short exponential backoff.
280
+ Connection errors (for example, due to a network connectivity problem), 408 Request Timeout, 409 Conflict,
281
+ 429 Rate Limit, and >=500 Internal errors will all be retried by default.
282
+
283
+ You can use the `maxRetries` option to configure or disable this:
284
+
285
+ <!-- prettier-ignore -->
286
+ ```js
287
+ // Configure the default for all requests:
288
+ const client = new Anthropic({
289
+ maxRetries: 0, // default is 2
290
+ });
291
+
292
+ // Or, configure per-request:
293
+ await client.messages.create({ max_tokens: 1024, messages: [{ role: 'user', content: 'Hello, Claude' }], model: 'claude-3-5-sonnet-latest' }, {
294
+ maxRetries: 5,
295
+ });
296
+ ```
297
+
298
+ ### Timeouts
299
+
300
+ By default requests time out after 10 minutes. However if you have specified a large `max_tokens` value and are
301
+ _not_ streaming, the default timeout will be calculated dynamically using the formula:
302
+
303
+ ```typescript
304
+ const minimum = 10 * 60;
305
+ const calculated = (60 * 60 * maxTokens) / 128_000;
306
+ return calculated < minimum ? minimum * 1000 : calculated * 1000;
307
+ ```
308
+
309
+ which will result in a timeout up to 60 minutes, scaled by the `max_tokens` parameter, unless overriden at the request or client level.
310
+
311
+ You can configure this with a `timeout` option:
312
+
313
+ <!-- prettier-ignore -->
314
+ ```ts
315
+ // Configure the default for all requests:
316
+ const client = new Anthropic({
317
+ timeout: 20 * 1000, // 20 seconds (default is 10 minutes)
318
+ });
319
+
320
+ // Override per-request:
321
+ await client.messages.create({ max_tokens: 1024, messages: [{ role: 'user', content: 'Hello, Claude' }], model: 'claude-3-5-sonnet-latest' }, {
322
+ timeout: 5 * 1000,
323
+ });
324
+ ```
325
+
326
+ On timeout, an `APIConnectionTimeoutError` is thrown.
327
+
328
+ Note that requests which time out will be [retried twice by default](#retries).
329
+
330
+ ### Long Requests
331
+
332
+ > [!IMPORTANT]
333
+ > We highly encourage you use the streaming [Messages API](#streaming-responses) for longer running requests.
334
+
335
+ We do not recommend setting a large `max_tokens` values without using streaming.
336
+ Some networks may drop idle connections after a certain period of time, which
337
+ can cause the request to fail or [timeout](#timeouts) without receiving a response from Anthropic.
338
+
339
+ This SDK will also throw an error if a non-streaming request is expected to be above roughly 10 minutes long.
340
+ Passing `stream: true` or [overriding](#timeouts) the `timeout` option at the client or request level disables this error.
341
+
342
+ An expected request latency longer than the [timeout](#timeouts) for a non-streaming request
343
+ will result in the client terminating the connection and retrying without receiving a response.
344
+
345
+ When supported by the `fetch` implementation, we set a [TCP socket keep-alive](https://tldp.org/HOWTO/TCP-Keepalive-HOWTO/overview.html) option in order
346
+ to reduce the impact of idle connection timeouts on some networks.
347
+ This can be [overriden](#configuring-an-https-agent-eg-for-proxies) by configuring a custom proxy.
348
+
349
+ ## Auto-pagination
350
+
351
+ List methods in the Anthropic API are paginated.
352
+ You can use the `for await … of` syntax to iterate through items across all pages:
353
+
354
+ ```ts
355
+ async function fetchAllBetaMessageBatches(params) {
356
+ const allBetaMessageBatches = [];
357
+ // Automatically fetches more pages as needed.
358
+ for await (const betaMessageBatch of client.beta.messages.batches.list({ limit: 20 })) {
359
+ allBetaMessageBatches.push(betaMessageBatch);
360
+ }
361
+ return allBetaMessageBatches;
362
+ }
363
+ ```
364
+
365
+ Alternatively, you can request a single page at a time:
366
+
367
+ ```ts
368
+ let page = await client.beta.messages.batches.list({ limit: 20 });
369
+ for (const betaMessageBatch of page.data) {
370
+ console.log(betaMessageBatch);
371
+ }
372
+
373
+ // Convenience methods are provided for manually paginating:
374
+ while (page.hasNextPage()) {
375
+ page = await page.getNextPage();
376
+ // ...
377
+ }
378
+ ```
379
+
380
+ ## Default Headers
381
+
382
+ We automatically send the `anthropic-version` header set to `2023-06-01`.
383
+
384
+ If you need to, you can override it by setting default headers on a per-request basis.
385
+
386
+ Be aware that doing so may result in incorrect types and other unexpected or undefined behavior in the SDK.
387
+
388
+ ```ts
389
+ import Anthropic from '@anthropic-ai/sdk';
390
+
391
+ const client = new Anthropic();
392
+
393
+ const message = await client.messages.create(
394
+ {
395
+ max_tokens: 1024,
396
+ messages: [{ role: 'user', content: 'Hello, Claude' }],
397
+ model: 'claude-3-5-sonnet-latest',
398
+ },
399
+ { headers: { 'anthropic-version': 'My-Custom-Value' } },
400
+ );
401
+ ```
402
+
403
+ ## Advanced Usage
404
+
405
+ ### Accessing raw Response data (e.g., headers)
406
+
407
+ The "raw" `Response` returned by `fetch()` can be accessed through the `.asResponse()` method on the `APIPromise` type that all methods return.
408
+ This method returns as soon as the headers for a successful response are received and does not consume the response body, so you are free to write custom parsing or streaming logic.
409
+
410
+ You can also use the `.withResponse()` method to get the raw `Response` along with the parsed data.
411
+ Unlike `.asResponse()` this method consumes the body, returning once it is parsed.
412
+
413
+ <!-- prettier-ignore -->
414
+ ```ts
415
+ const client = new Anthropic();
416
+
417
+ const response = await client.messages
418
+ .create({
419
+ max_tokens: 1024,
420
+ messages: [{ role: 'user', content: 'Hello, Claude' }],
421
+ model: 'claude-3-5-sonnet-latest',
422
+ })
423
+ .asResponse();
424
+ console.log(response.headers.get('X-My-Header'));
425
+ console.log(response.statusText); // access the underlying Response object
426
+
427
+ const { data: message, response: raw } = await client.messages
428
+ .create({
429
+ max_tokens: 1024,
430
+ messages: [{ role: 'user', content: 'Hello, Claude' }],
431
+ model: 'claude-3-5-sonnet-latest',
432
+ })
433
+ .withResponse();
434
+ console.log(raw.headers.get('X-My-Header'));
435
+ console.log(message.content);
436
+ ```
437
+
438
+ ### Logging
439
+
440
+ > [!IMPORTANT]
441
+ > All log messages are intended for debugging only. The format and content of log messages
442
+ > may change between releases.
443
+
444
+ #### Log levels
445
+
446
+ The log level can be configured in two ways:
447
+
448
+ 1. Via the `ANTHROPIC_LOG` environment variable
449
+ 2. Using the `logLevel` client option (overrides the environment variable if set)
450
+
451
+ ```ts
452
+ import Anthropic from '@anthropic-ai/sdk';
453
+
454
+ const client = new Anthropic({
455
+ logLevel: 'debug', // Show all log messages
456
+ });
457
+ ```
458
+
459
+ Available log levels, from most to least verbose:
460
+
461
+ - `'debug'` - Show debug messages, info, warnings, and errors
462
+ - `'info'` - Show info messages, warnings, and errors
463
+ - `'warn'` - Show warnings and errors (default)
464
+ - `'error'` - Show only errors
465
+ - `'off'` - Disable all logging
466
+
467
+ At the `'debug'` level, all HTTP requests and responses are logged, including headers and bodies.
468
+ Some authentication-related headers are redacted, but sensitive data in request and response bodies
469
+ may still be visible.
470
+
471
+ #### Custom logger
472
+
473
+ By default, this library logs to `globalThis.console`. You can also provide a custom logger.
474
+ Most logging libraries are supported, including [pino](https://www.npmjs.com/package/pino), [winston](https://www.npmjs.com/package/winston), [bunyan](https://www.npmjs.com/package/bunyan), [consola](https://www.npmjs.com/package/consola), [signale](https://www.npmjs.com/package/signale), and [@std/log](https://jsr.io/@std/log). If your logger doesn't work, please open an issue.
475
+
476
+ When providing a custom logger, the `logLevel` option still controls which messages are emitted, messages
477
+ below the configured level will not be sent to your logger.
478
+
479
+ ```ts
480
+ import Anthropic from '@anthropic-ai/sdk';
481
+ import pino from 'pino';
482
+
483
+ const logger = pino();
484
+
485
+ const client = new Anthropic({
486
+ logger: logger.child({ name: 'Anthropic' }),
487
+ logLevel: 'debug', // Send all messages to pino, allowing it to filter
488
+ });
489
+ ```
490
+
491
+ ### Making custom/undocumented requests
492
+
493
+ This library is typed for convenient access to the documented API. If you need to access undocumented
494
+ endpoints, params, or response properties, the library can still be used.
495
+
496
+ #### Undocumented endpoints
497
+
498
+ To make requests to undocumented endpoints, you can use `client.get`, `client.post`, and other HTTP verbs.
499
+ Options on the client, such as retries, will be respected when making these requests.
500
+
501
+ ```ts
502
+ await client.post('/some/path', {
503
+ body: { some_prop: 'foo' },
504
+ query: { some_query_arg: 'bar' },
505
+ });
506
+ ```
507
+
508
+ #### Undocumented request params
509
+
510
+ To make requests using undocumented parameters, you may use `// @ts-expect-error` on the undocumented
511
+ parameter. This library doesn't validate at runtime that the request matches the type, so any extra values you
512
+ send will be sent as-is.
513
+
514
+ ```ts
515
+ client.foo.create({
516
+ foo: 'my_param',
517
+ bar: 12,
518
+ // @ts-expect-error baz is not yet public
519
+ baz: 'undocumented option',
520
+ });
521
+ ```
522
+
523
+ For requests with the `GET` verb, any extra params will be in the query, all other requests will send the
524
+ extra param in the body.
525
+
526
+ If you want to explicitly send an extra argument, you can do so with the `query`, `body`, and `headers` request
527
+ options.
528
+
529
+ #### Undocumented response properties
530
+
531
+ To access undocumented response properties, you may access the response object with `// @ts-expect-error` on
532
+ the response object, or cast the response object to the requisite type. Like the request params, we do not
533
+ validate or strip extra properties from the response from the API.
534
+
535
+ ### Customizing the fetch client
536
+
537
+ By default, this library expects a global `fetch` function is defined.
538
+
539
+ If you want to use a different `fetch` function, you can either polyfill the global:
540
+
541
+ ```ts
542
+ import fetch from 'my-fetch';
543
+
544
+ globalThis.fetch = fetch;
545
+ ```
546
+
547
+ Or pass it to the client:
548
+
549
+ ```ts
550
+ import Anthropic from '@anthropic-ai/sdk';
551
+ import fetch from 'my-fetch';
552
+
553
+ const client = new Anthropic({ fetch });
554
+ ```
555
+
556
+ ### Fetch options
557
+
558
+ If you want to set custom `fetch` options without overriding the `fetch` function, you can provide a `fetchOptions` object when instantiating the client or making a request. (Request-specific options override client options.)
559
+
560
+ ```ts
561
+ import Anthropic from '@anthropic-ai/sdk';
562
+
563
+ const client = new Anthropic({
564
+ fetchOptions: {
565
+ // `RequestInit` options
566
+ },
567
+ });
568
+ ```
569
+
570
+ #### Configuring proxies
571
+
572
+ To modify proxy behavior, you can provide custom `fetchOptions` that add runtime-specific proxy
573
+ options to requests:
574
+
575
+ <img src="https://raw.githubusercontent.com/stainless-api/sdk-assets/refs/heads/main/node.svg" align="top" width="18" height="21"> **Node** <sup>[[docs](https://github.com/nodejs/undici/blob/main/docs/docs/api/ProxyAgent.md#example---proxyagent-with-fetch)]</sup>
576
+
577
+ ```ts
578
+ import Anthropic from '@anthropic-ai/sdk';
579
+ import * as undici from 'undici';
580
+
581
+ const proxyAgent = new undici.ProxyAgent('http://localhost:8888');
582
+ const client = new Anthropic({
583
+ fetchOptions: {
584
+ dispatcher: proxyAgent,
585
+ },
586
+ });
587
+ ```
588
+
589
+ <img src="https://raw.githubusercontent.com/stainless-api/sdk-assets/refs/heads/main/bun.svg" align="top" width="18" height="21"> **Bun** <sup>[[docs](https://bun.sh/guides/http/proxy)]</sup>
590
+
591
+ ```ts
592
+ import Anthropic from '@anthropic-ai/sdk';
593
+
594
+ const client = new Anthropic({
595
+ fetchOptions: {
596
+ proxy: 'http://localhost:8888',
597
+ },
598
+ });
599
+ ```
600
+
601
+ <img src="https://raw.githubusercontent.com/stainless-api/sdk-assets/refs/heads/main/deno.svg" align="top" width="18" height="21"> **Deno** <sup>[[docs](https://docs.deno.com/api/deno/~/Deno.createHttpClient)]</sup>
602
+
603
+ ```ts
604
+ import Anthropic from 'npm:@anthropic-ai/sdk';
605
+
606
+ const httpClient = Deno.createHttpClient({ proxy: { url: 'http://localhost:8888' } });
607
+ const client = new Anthropic({
608
+ fetchOptions: {
609
+ client: httpClient,
610
+ },
611
+ });
612
+ ```
613
+
614
+ ## Frequently Asked Questions
615
+
616
+ ## Semantic versioning
617
+
618
+ This package generally follows [SemVer](https://semver.org/spec/v2.0.0.html) conventions, though certain backwards-incompatible changes may be released as minor versions:
619
+
620
+ 1. Changes that only affect static types, without breaking runtime behavior.
621
+ 2. Changes to library internals which are technically public but not intended or documented for external use. _(Please open a GitHub issue to let us know if you are relying on such internals.)_
622
+ 3. Changes that we do not expect to impact the vast majority of users in practice.
623
+
624
+ We take backwards-compatibility seriously and work hard to ensure you can rely on a smooth upgrade experience.
625
+
626
+ We are keen for your feedback; please open an [issue](https://www.github.com/anthropics/anthropic-sdk-typescript/issues) with questions, bugs, or suggestions.
627
+
628
+ ## Requirements
629
+
630
+ TypeScript >= 4.9 is supported.
631
+
632
+ The following runtimes are supported:
633
+
634
+ - Node.js 20 LTS or later ([non-EOL](https://endoflife.date/nodejs)) versions.
635
+ - Deno v1.28.0 or higher.
636
+ - Bun 1.0 or later.
637
+ - Cloudflare Workers.
638
+ - Vercel Edge Runtime.
639
+ - Jest 28 or greater with the `"node"` environment (`"jsdom"` is not supported at this time).
640
+ - Nitro v2.6 or greater.
641
+ - Web browsers: disabled by default to avoid exposing your secret API credentials (see our help center for [best practices](https://support.anthropic.com/en/articles/9767949-api-key-best-practices-keeping-your-keys-safe-and-secure)). Enable browser support by explicitly setting `dangerouslyAllowBrowser` to `true`.
642
+
643
+ <details>
644
+ <summary><b>More explanation</b></summary>
645
+ <h3>Why is this dangerous?</h3>
646
+ Enabling the <code>dangerouslyAllowBrowser</code> option can be dangerous because it exposes your secret API credentials in the client-side code. Web browsers are inherently less secure than server environments,
647
+ any user with access to the browser can potentially inspect, extract, and misuse these credentials. This could lead to unauthorized access using your credentials and potentially compromise sensitive data or functionality.
648
+ <h3>When might this not be dangerous?</h3>
649
+ In certain scenarios where enabling browser support might not pose significant risks:
650
+ <ul>
651
+ <li>Internal Tools: If the application is used solely within a controlled internal environment where the users are trusted, the risk of credential exposure can be mitigated.</li>
652
+ <li>Development or debugging purpose: Enabling this feature temporarily might be acceptable, provided the credentials are short-lived, aren't also used in production environments, or are frequently rotated.</li>
653
+ </ul>
654
+ </details>
655
+
656
+ Note that React Native is not supported at this time.
657
+
658
+ If you are interested in other runtime environments, please open or upvote an issue on GitHub.
659
+
660
+ ## Contributing
661
+
662
+ See [the contributing documentation](./CONTRIBUTING.md).
platform/aiml/elizabeth/e-1-first_session/claude-code-router/node_modules/@anthropic-ai/sdk/api-promise.d.mts ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ export * from "./core/api-promise.mjs";
2
+ //# sourceMappingURL=api-promise.d.mts.map
platform/aiml/elizabeth/e-1-first_session/claude-code-router/node_modules/@anthropic-ai/sdk/api-promise.d.mts.map ADDED
@@ -0,0 +1 @@
 
 
1
+ {"version":3,"file":"api-promise.d.mts","sourceRoot":"","sources":["src/api-promise.ts"],"names":[],"mappings":""}
platform/aiml/elizabeth/e-1-first_session/claude-code-router/node_modules/@anthropic-ai/sdk/api-promise.d.ts ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ export * from "./core/api-promise.js";
2
+ //# sourceMappingURL=api-promise.d.ts.map
platform/aiml/elizabeth/e-1-first_session/claude-code-router/node_modules/@anthropic-ai/sdk/api-promise.d.ts.map ADDED
@@ -0,0 +1 @@
 
 
1
+ {"version":3,"file":"api-promise.d.ts","sourceRoot":"","sources":["src/api-promise.ts"],"names":[],"mappings":""}
platform/aiml/elizabeth/e-1-first_session/claude-code-router/node_modules/@anthropic-ai/sdk/api-promise.js ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("./internal/tslib.js");
4
+ /** @deprecated Import from ./core/api-promise instead */
5
+ tslib_1.__exportStar(require("./core/api-promise.js"), exports);
6
+ //# sourceMappingURL=api-promise.js.map
platform/aiml/elizabeth/e-1-first_session/claude-code-router/node_modules/@anthropic-ai/sdk/api-promise.js.map ADDED
@@ -0,0 +1 @@
 
 
1
+ {"version":3,"file":"api-promise.js","sourceRoot":"","sources":["src/api-promise.ts"],"names":[],"mappings":";;;AAAA,yDAAyD;AACzD,gEAAmC"}
platform/aiml/elizabeth/e-1-first_session/claude-code-router/node_modules/@anthropic-ai/sdk/api-promise.mjs ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ export * from "./core/api-promise.mjs";
2
+ //# sourceMappingURL=api-promise.mjs.map
platform/aiml/elizabeth/e-1-first_session/claude-code-router/node_modules/@anthropic-ai/sdk/api-promise.mjs.map ADDED
@@ -0,0 +1 @@
 
 
1
+ {"version":3,"file":"api-promise.mjs","sourceRoot":"","sources":["src/api-promise.ts"],"names":[],"mappings":""}
platform/aiml/elizabeth/e-1-first_session/claude-code-router/node_modules/@anthropic-ai/sdk/client.d.mts ADDED
@@ -0,0 +1,225 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import type { RequestInit, RequestInfo } from "./internal/builtin-types.mjs";
2
+ import type { PromiseOrValue, MergedRequestInit, FinalizedRequestInit } from "./internal/types.mjs";
3
+ import { type Logger, type LogLevel } from "./internal/utils/log.mjs";
4
+ export type { Logger, LogLevel } from "./internal/utils/log.mjs";
5
+ import * as Opts from "./internal/request-options.mjs";
6
+ import * as Errors from "./core/error.mjs";
7
+ import * as Pagination from "./core/pagination.mjs";
8
+ import { type PageParams, PageResponse } from "./core/pagination.mjs";
9
+ import * as Uploads from "./core/uploads.mjs";
10
+ import * as API from "./resources/index.mjs";
11
+ import { APIPromise } from "./core/api-promise.mjs";
12
+ import { type Fetch } from "./internal/builtin-types.mjs";
13
+ import { HeadersLike, NullableHeaders } from "./internal/headers.mjs";
14
+ import { FinalRequestOptions, RequestOptions } from "./internal/request-options.mjs";
15
+ import { Completion, CompletionCreateParams, CompletionCreateParamsNonStreaming, CompletionCreateParamsStreaming, Completions } from "./resources/completions.mjs";
16
+ import { ModelInfo, ModelInfosPage, ModelListParams, ModelRetrieveParams, Models } from "./resources/models.mjs";
17
+ import { AnthropicBeta, Beta, BetaAPIError, BetaAuthenticationError, BetaBillingError, BetaError, BetaErrorResponse, BetaGatewayTimeoutError, BetaInvalidRequestError, BetaNotFoundError, BetaOverloadedError, BetaPermissionError, BetaRateLimitError } from "./resources/beta/beta.mjs";
18
+ import { Base64ImageSource, Base64PDFSource, CacheControlEphemeral, CitationCharLocation, CitationCharLocationParam, CitationContentBlockLocation, CitationContentBlockLocationParam, CitationPageLocation, CitationPageLocationParam, CitationWebSearchResultLocationParam, CitationsConfigParam, CitationsDelta, CitationsWebSearchResultLocation, ContentBlock, ContentBlockDeltaEvent, ContentBlockParam, ContentBlockStartEvent, ContentBlockStopEvent, ContentBlockSource, ContentBlockSourceContent, DocumentBlockParam, ImageBlockParam, InputJSONDelta, Message, MessageStreamParams, MessageCountTokensParams, MessageCountTokensTool, MessageCreateParams, MessageCreateParamsNonStreaming, MessageCreateParamsStreaming, MessageDeltaEvent, MessageDeltaUsage, MessageParam, MessageStartEvent, MessageStopEvent, MessageStreamEvent, MessageTokensCount, Messages, Metadata, Model, PlainTextSource, RawContentBlockDelta, RawContentBlockDeltaEvent, RawContentBlockStartEvent, RawContentBlockStopEvent, RawMessageDeltaEvent, RawMessageStartEvent, RawMessageStopEvent, RawMessageStreamEvent, RedactedThinkingBlock, RedactedThinkingBlockParam, ServerToolUsage, ServerToolUseBlock, ServerToolUseBlockParam, SignatureDelta, StopReason, TextBlock, TextBlockParam, TextCitation, TextCitationParam, TextDelta, ThinkingBlock, ThinkingBlockParam, ThinkingConfigDisabled, ThinkingConfigEnabled, ThinkingConfigParam, ThinkingDelta, Tool, ToolBash20250124, ToolChoice, ToolChoiceAny, ToolChoiceAuto, ToolChoiceNone, ToolChoiceTool, ToolResultBlockParam, ToolTextEditor20250124, ToolUnion, ToolUseBlock, ToolUseBlockParam, URLImageSource, URLPDFSource, Usage, WebSearchResultBlock, WebSearchResultBlockParam, WebSearchTool20250305, WebSearchToolRequestError, WebSearchToolResultBlock, WebSearchToolResultBlockContent, WebSearchToolResultBlockParam, WebSearchToolResultBlockParamContent, WebSearchToolResultError } from "./resources/messages/messages.mjs";
19
+ export interface ClientOptions {
20
+ /**
21
+ * Defaults to process.env['ANTHROPIC_API_KEY'].
22
+ */
23
+ apiKey?: string | null | undefined;
24
+ /**
25
+ * Defaults to process.env['ANTHROPIC_AUTH_TOKEN'].
26
+ */
27
+ authToken?: string | null | undefined;
28
+ /**
29
+ * Override the default base URL for the API, e.g., "https://api.example.com/v2/"
30
+ *
31
+ * Defaults to process.env['ANTHROPIC_BASE_URL'].
32
+ */
33
+ baseURL?: string | null | undefined;
34
+ /**
35
+ * The maximum amount of time (in milliseconds) that the client should wait for a response
36
+ * from the server before timing out a single request.
37
+ *
38
+ * Note that request timeouts are retried by default, so in a worst-case scenario you may wait
39
+ * much longer than this timeout before the promise succeeds or fails.
40
+ */
41
+ timeout?: number | undefined;
42
+ /**
43
+ * Additional `RequestInit` options to be passed to `fetch` calls.
44
+ * Properties will be overridden by per-request `fetchOptions`.
45
+ */
46
+ fetchOptions?: MergedRequestInit | undefined;
47
+ /**
48
+ * Specify a custom `fetch` function implementation.
49
+ *
50
+ * If not provided, we expect that `fetch` is defined globally.
51
+ */
52
+ fetch?: Fetch | undefined;
53
+ /**
54
+ * The maximum number of times that the client will retry a request in case of a
55
+ * temporary failure, like a network error or a 5XX error from the server.
56
+ *
57
+ * @default 2
58
+ */
59
+ maxRetries?: number | undefined;
60
+ /**
61
+ * Default headers to include with every request to the API.
62
+ *
63
+ * These can be removed in individual requests by explicitly setting the
64
+ * header to `null` in request options.
65
+ */
66
+ defaultHeaders?: HeadersLike | undefined;
67
+ /**
68
+ * Default query parameters to include with every request to the API.
69
+ *
70
+ * These can be removed in individual requests by explicitly setting the
71
+ * param to `undefined` in request options.
72
+ */
73
+ defaultQuery?: Record<string, string | undefined> | undefined;
74
+ /**
75
+ * By default, client-side use of this library is not allowed, as it risks exposing your secret API credentials to attackers.
76
+ * Only set this option to `true` if you understand the risks and have appropriate mitigations in place.
77
+ */
78
+ dangerouslyAllowBrowser?: boolean | undefined;
79
+ /**
80
+ * Set the log level.
81
+ *
82
+ * Defaults to process.env['ANTHROPIC_LOG'] or 'warn' if it isn't set.
83
+ */
84
+ logLevel?: LogLevel | undefined;
85
+ /**
86
+ * Set the logger.
87
+ *
88
+ * Defaults to globalThis.console.
89
+ */
90
+ logger?: Logger | undefined;
91
+ }
92
+ export declare class BaseAnthropic {
93
+ #private;
94
+ apiKey: string | null;
95
+ authToken: string | null;
96
+ baseURL: string;
97
+ maxRetries: number;
98
+ timeout: number;
99
+ logger: Logger | undefined;
100
+ logLevel: LogLevel | undefined;
101
+ fetchOptions: MergedRequestInit | undefined;
102
+ private fetch;
103
+ protected idempotencyHeader?: string;
104
+ private _options;
105
+ /**
106
+ * API Client for interfacing with the Anthropic API.
107
+ *
108
+ * @param {string | null | undefined} [opts.apiKey=process.env['ANTHROPIC_API_KEY'] ?? null]
109
+ * @param {string | null | undefined} [opts.authToken=process.env['ANTHROPIC_AUTH_TOKEN'] ?? null]
110
+ * @param {string} [opts.baseURL=process.env['ANTHROPIC_BASE_URL'] ?? https://api.anthropic.com] - Override the default base URL for the API.
111
+ * @param {number} [opts.timeout=10 minutes] - The maximum amount of time (in milliseconds) the client will wait for a response before timing out.
112
+ * @param {MergedRequestInit} [opts.fetchOptions] - Additional `RequestInit` options to be passed to `fetch` calls.
113
+ * @param {Fetch} [opts.fetch] - Specify a custom `fetch` function implementation.
114
+ * @param {number} [opts.maxRetries=2] - The maximum number of times the client will retry a request.
115
+ * @param {HeadersLike} opts.defaultHeaders - Default headers to include with every request to the API.
116
+ * @param {Record<string, string | undefined>} opts.defaultQuery - Default query parameters to include with every request to the API.
117
+ * @param {boolean} [opts.dangerouslyAllowBrowser=false] - By default, client-side use of this library is not allowed, as it risks exposing your secret API credentials to attackers.
118
+ */
119
+ constructor({ baseURL, apiKey, authToken, ...opts }?: ClientOptions);
120
+ /**
121
+ * Create a new client instance re-using the same options given to the current client with optional overriding.
122
+ */
123
+ withOptions(options: Partial<ClientOptions>): this;
124
+ protected defaultQuery(): Record<string, string | undefined> | undefined;
125
+ protected validateHeaders({ values, nulls }: NullableHeaders): void;
126
+ protected authHeaders(opts: FinalRequestOptions): NullableHeaders | undefined;
127
+ protected apiKeyAuth(opts: FinalRequestOptions): NullableHeaders | undefined;
128
+ protected bearerAuth(opts: FinalRequestOptions): NullableHeaders | undefined;
129
+ /**
130
+ * Basic re-implementation of `qs.stringify` for primitive types.
131
+ */
132
+ protected stringifyQuery(query: Record<string, unknown>): string;
133
+ private getUserAgent;
134
+ protected defaultIdempotencyKey(): string;
135
+ protected makeStatusError(status: number, error: Object, message: string | undefined, headers: Headers): Errors.APIError;
136
+ buildURL(path: string, query: Record<string, unknown> | null | undefined): string;
137
+ _calculateNonstreamingTimeout(maxTokens: number): number;
138
+ /**
139
+ * Used as a callback for mutating the given `FinalRequestOptions` object.
140
+ */
141
+ protected prepareOptions(options: FinalRequestOptions): Promise<void>;
142
+ /**
143
+ * Used as a callback for mutating the given `RequestInit` object.
144
+ *
145
+ * This is useful for cases where you want to add certain headers based off of
146
+ * the request properties, e.g. `method` or `url`.
147
+ */
148
+ protected prepareRequest(request: RequestInit, { url, options }: {
149
+ url: string;
150
+ options: FinalRequestOptions;
151
+ }): Promise<void>;
152
+ get<Rsp>(path: string, opts?: PromiseOrValue<RequestOptions>): APIPromise<Rsp>;
153
+ post<Rsp>(path: string, opts?: PromiseOrValue<RequestOptions>): APIPromise<Rsp>;
154
+ patch<Rsp>(path: string, opts?: PromiseOrValue<RequestOptions>): APIPromise<Rsp>;
155
+ put<Rsp>(path: string, opts?: PromiseOrValue<RequestOptions>): APIPromise<Rsp>;
156
+ delete<Rsp>(path: string, opts?: PromiseOrValue<RequestOptions>): APIPromise<Rsp>;
157
+ private methodRequest;
158
+ request<Rsp>(options: PromiseOrValue<FinalRequestOptions>, remainingRetries?: number | null): APIPromise<Rsp>;
159
+ private makeRequest;
160
+ getAPIList<Item, PageClass extends Pagination.AbstractPage<Item> = Pagination.AbstractPage<Item>>(path: string, Page: new (...args: any[]) => PageClass, opts?: RequestOptions): Pagination.PagePromise<PageClass, Item>;
161
+ requestAPIList<Item = unknown, PageClass extends Pagination.AbstractPage<Item> = Pagination.AbstractPage<Item>>(Page: new (...args: ConstructorParameters<typeof Pagination.AbstractPage>) => PageClass, options: FinalRequestOptions): Pagination.PagePromise<PageClass, Item>;
162
+ fetchWithTimeout(url: RequestInfo, init: RequestInit | undefined, ms: number, controller: AbortController): Promise<Response>;
163
+ private shouldRetry;
164
+ private retryRequest;
165
+ private calculateDefaultRetryTimeoutMillis;
166
+ calculateNonstreamingTimeout(maxTokens: number, maxNonstreamingTokens?: number): number;
167
+ buildRequest(inputOptions: FinalRequestOptions, { retryCount }?: {
168
+ retryCount?: number;
169
+ }): {
170
+ req: FinalizedRequestInit;
171
+ url: string;
172
+ timeout: number;
173
+ };
174
+ private buildHeaders;
175
+ private buildBody;
176
+ static Anthropic: typeof BaseAnthropic;
177
+ static HUMAN_PROMPT: string;
178
+ static AI_PROMPT: string;
179
+ static DEFAULT_TIMEOUT: number;
180
+ static AnthropicError: typeof Errors.AnthropicError;
181
+ static APIError: typeof Errors.APIError;
182
+ static APIConnectionError: typeof Errors.APIConnectionError;
183
+ static APIConnectionTimeoutError: typeof Errors.APIConnectionTimeoutError;
184
+ static APIUserAbortError: typeof Errors.APIUserAbortError;
185
+ static NotFoundError: typeof Errors.NotFoundError;
186
+ static ConflictError: typeof Errors.ConflictError;
187
+ static RateLimitError: typeof Errors.RateLimitError;
188
+ static BadRequestError: typeof Errors.BadRequestError;
189
+ static AuthenticationError: typeof Errors.AuthenticationError;
190
+ static InternalServerError: typeof Errors.InternalServerError;
191
+ static PermissionDeniedError: typeof Errors.PermissionDeniedError;
192
+ static UnprocessableEntityError: typeof Errors.UnprocessableEntityError;
193
+ static toFile: typeof Uploads.toFile;
194
+ }
195
+ /**
196
+ * API Client for interfacing with the Anthropic API.
197
+ */
198
+ export declare class Anthropic extends BaseAnthropic {
199
+ completions: API.Completions;
200
+ messages: API.Messages;
201
+ models: API.Models;
202
+ beta: API.Beta;
203
+ }
204
+ export declare namespace Anthropic {
205
+ export type RequestOptions = Opts.RequestOptions;
206
+ export import Page = Pagination.Page;
207
+ export { type PageParams as PageParams, type PageResponse as PageResponse };
208
+ export { Completions as Completions, type Completion as Completion, type CompletionCreateParams as CompletionCreateParams, type CompletionCreateParamsNonStreaming as CompletionCreateParamsNonStreaming, type CompletionCreateParamsStreaming as CompletionCreateParamsStreaming, };
209
+ export { Messages as Messages, type Base64ImageSource as Base64ImageSource, type Base64PDFSource as Base64PDFSource, type CacheControlEphemeral as CacheControlEphemeral, type CitationCharLocation as CitationCharLocation, type CitationCharLocationParam as CitationCharLocationParam, type CitationContentBlockLocation as CitationContentBlockLocation, type CitationContentBlockLocationParam as CitationContentBlockLocationParam, type CitationPageLocation as CitationPageLocation, type CitationPageLocationParam as CitationPageLocationParam, type CitationWebSearchResultLocationParam as CitationWebSearchResultLocationParam, type CitationsConfigParam as CitationsConfigParam, type CitationsDelta as CitationsDelta, type CitationsWebSearchResultLocation as CitationsWebSearchResultLocation, type ContentBlock as ContentBlock, type ContentBlockDeltaEvent as ContentBlockDeltaEvent, type ContentBlockParam as ContentBlockParam, type ContentBlockStartEvent as ContentBlockStartEvent, type ContentBlockStopEvent as ContentBlockStopEvent, type ContentBlockSource as ContentBlockSource, type ContentBlockSourceContent as ContentBlockSourceContent, type DocumentBlockParam as DocumentBlockParam, type ImageBlockParam as ImageBlockParam, type InputJSONDelta as InputJSONDelta, type Message as Message, type MessageCountTokensTool as MessageCountTokensTool, type MessageDeltaEvent as MessageDeltaEvent, type MessageDeltaUsage as MessageDeltaUsage, type MessageParam as MessageParam, type MessageStartEvent as MessageStartEvent, type MessageStopEvent as MessageStopEvent, type MessageStreamEvent as MessageStreamEvent, type MessageTokensCount as MessageTokensCount, type Metadata as Metadata, type Model as Model, type PlainTextSource as PlainTextSource, type RawContentBlockDelta as RawContentBlockDelta, type RawContentBlockDeltaEvent as RawContentBlockDeltaEvent, type RawContentBlockStartEvent as RawContentBlockStartEvent, type RawContentBlockStopEvent as RawContentBlockStopEvent, type RawMessageDeltaEvent as RawMessageDeltaEvent, type RawMessageStartEvent as RawMessageStartEvent, type RawMessageStopEvent as RawMessageStopEvent, type RawMessageStreamEvent as RawMessageStreamEvent, type RedactedThinkingBlock as RedactedThinkingBlock, type RedactedThinkingBlockParam as RedactedThinkingBlockParam, type ServerToolUsage as ServerToolUsage, type ServerToolUseBlock as ServerToolUseBlock, type ServerToolUseBlockParam as ServerToolUseBlockParam, type SignatureDelta as SignatureDelta, type StopReason as StopReason, type TextBlock as TextBlock, type TextBlockParam as TextBlockParam, type TextCitation as TextCitation, type TextCitationParam as TextCitationParam, type TextDelta as TextDelta, type ThinkingBlock as ThinkingBlock, type ThinkingBlockParam as ThinkingBlockParam, type ThinkingConfigDisabled as ThinkingConfigDisabled, type ThinkingConfigEnabled as ThinkingConfigEnabled, type ThinkingConfigParam as ThinkingConfigParam, type ThinkingDelta as ThinkingDelta, type Tool as Tool, type ToolBash20250124 as ToolBash20250124, type ToolChoice as ToolChoice, type ToolChoiceAny as ToolChoiceAny, type ToolChoiceAuto as ToolChoiceAuto, type ToolChoiceNone as ToolChoiceNone, type ToolChoiceTool as ToolChoiceTool, type ToolResultBlockParam as ToolResultBlockParam, type ToolTextEditor20250124 as ToolTextEditor20250124, type ToolUnion as ToolUnion, type ToolUseBlock as ToolUseBlock, type ToolUseBlockParam as ToolUseBlockParam, type URLImageSource as URLImageSource, type URLPDFSource as URLPDFSource, type Usage as Usage, type WebSearchResultBlock as WebSearchResultBlock, type WebSearchResultBlockParam as WebSearchResultBlockParam, type WebSearchTool20250305 as WebSearchTool20250305, type WebSearchToolRequestError as WebSearchToolRequestError, type WebSearchToolResultBlock as WebSearchToolResultBlock, type WebSearchToolResultBlockContent as WebSearchToolResultBlockContent, type WebSearchToolResultBlockParam as WebSearchToolResultBlockParam, type WebSearchToolResultBlockParamContent as WebSearchToolResultBlockParamContent, type WebSearchToolResultError as WebSearchToolResultError, type MessageCreateParams as MessageCreateParams, type MessageCreateParamsNonStreaming as MessageCreateParamsNonStreaming, type MessageCreateParamsStreaming as MessageCreateParamsStreaming, type MessageStreamParams as MessageStreamParams, type MessageCountTokensParams as MessageCountTokensParams, };
210
+ export { Models as Models, type ModelInfo as ModelInfo, type ModelInfosPage as ModelInfosPage, type ModelRetrieveParams as ModelRetrieveParams, type ModelListParams as ModelListParams, };
211
+ export { Beta as Beta, type AnthropicBeta as AnthropicBeta, type BetaAPIError as BetaAPIError, type BetaAuthenticationError as BetaAuthenticationError, type BetaBillingError as BetaBillingError, type BetaError as BetaError, type BetaErrorResponse as BetaErrorResponse, type BetaGatewayTimeoutError as BetaGatewayTimeoutError, type BetaInvalidRequestError as BetaInvalidRequestError, type BetaNotFoundError as BetaNotFoundError, type BetaOverloadedError as BetaOverloadedError, type BetaPermissionError as BetaPermissionError, type BetaRateLimitError as BetaRateLimitError, };
212
+ export type APIErrorObject = API.APIErrorObject;
213
+ export type AuthenticationError = API.AuthenticationError;
214
+ export type BillingError = API.BillingError;
215
+ export type ErrorObject = API.ErrorObject;
216
+ export type ErrorResponse = API.ErrorResponse;
217
+ export type GatewayTimeoutError = API.GatewayTimeoutError;
218
+ export type InvalidRequestError = API.InvalidRequestError;
219
+ export type NotFoundError = API.NotFoundError;
220
+ export type OverloadedError = API.OverloadedError;
221
+ export type PermissionError = API.PermissionError;
222
+ export type RateLimitError = API.RateLimitError;
223
+ }
224
+ export declare const HUMAN_PROMPT: string, AI_PROMPT: string;
225
+ //# sourceMappingURL=client.d.mts.map
platform/aiml/elizabeth/e-1-first_session/claude-code-router/node_modules/@anthropic-ai/sdk/client.d.mts.map ADDED
@@ -0,0 +1 @@
 
 
1
+ {"version":3,"file":"client.d.mts","sourceRoot":"","sources":["src/client.ts"],"names":[],"mappings":"OAEO,KAAK,EAAE,WAAW,EAAE,WAAW,EAAY;OAC3C,KAAK,EAAc,cAAc,EAAE,iBAAiB,EAAE,oBAAoB,EAAE;OAI5E,EAAE,KAAK,MAAM,EAAE,KAAK,QAAQ,EAAiB;YACxC,EAAE,MAAM,EAAE,QAAQ,EAAE;OAKzB,KAAK,IAAI;OAET,KAAK,MAAM;OACX,KAAK,UAAU;OACf,EAAE,KAAK,UAAU,EAAE,YAAY,EAAE;OACjC,KAAK,OAAO;OACZ,KAAK,GAAG;OACR,EAAE,UAAU,EAAE;OACd,EAAE,KAAK,KAAK,EAAE;OAEd,EAAE,WAAW,EAAE,eAAe,EAAgB;OAC9C,EAAE,mBAAmB,EAAE,cAAc,EAAE;OACvC,EACL,UAAU,EACV,sBAAsB,EACtB,kCAAkC,EAClC,+BAA+B,EAC/B,WAAW,EACZ;OACM,EAAE,SAAS,EAAE,cAAc,EAAE,eAAe,EAAE,mBAAmB,EAAE,MAAM,EAAE;OAI3E,EACL,aAAa,EACb,IAAI,EACJ,YAAY,EACZ,uBAAuB,EACvB,gBAAgB,EAChB,SAAS,EACT,iBAAiB,EACjB,uBAAuB,EACvB,uBAAuB,EACvB,iBAAiB,EACjB,mBAAmB,EACnB,mBAAmB,EACnB,kBAAkB,EACnB;OACM,EACL,iBAAiB,EACjB,eAAe,EACf,qBAAqB,EACrB,oBAAoB,EACpB,yBAAyB,EACzB,4BAA4B,EAC5B,iCAAiC,EACjC,oBAAoB,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,mBAAmB,GAAG,GAAG,CAAC,mBAAmB,CAAC;IAC1D,MAAM,MAAM,mBAAmB,GAAG,GAAG,CAAC,mBAAmB,CAAC;IAC1D,MAAM,MAAM,aAAa,GAAG,GAAG,CAAC,aAAa,CAAC;IAC9C,MAAM,MAAM,eAAe,GAAG,GAAG,CAAC,eAAe,CAAC;IAClD,MAAM,MAAM,eAAe,GAAG,GAAG,CAAC,eAAe,CAAC;IAClD,MAAM,MAAM,cAAc,GAAG,GAAG,CAAC,cAAc,CAAC;CACjD;AACD,eAAO,MAAQ,YAAY,UAAE,SAAS,QAAc,CAAC"}
platform/aiml/elizabeth/e-1-first_session/claude-code-router/node_modules/@anthropic-ai/sdk/client.d.ts ADDED
@@ -0,0 +1,225 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import type { RequestInit, RequestInfo } from "./internal/builtin-types.js";
2
+ import type { PromiseOrValue, MergedRequestInit, FinalizedRequestInit } from "./internal/types.js";
3
+ import { type Logger, type LogLevel } from "./internal/utils/log.js";
4
+ export type { Logger, LogLevel } from "./internal/utils/log.js";
5
+ import * as Opts from "./internal/request-options.js";
6
+ import * as Errors from "./core/error.js";
7
+ import * as Pagination from "./core/pagination.js";
8
+ import { type PageParams, PageResponse } from "./core/pagination.js";
9
+ import * as Uploads from "./core/uploads.js";
10
+ import * as API from "./resources/index.js";
11
+ import { APIPromise } from "./core/api-promise.js";
12
+ import { type Fetch } from "./internal/builtin-types.js";
13
+ import { HeadersLike, NullableHeaders } from "./internal/headers.js";
14
+ import { FinalRequestOptions, RequestOptions } from "./internal/request-options.js";
15
+ import { Completion, CompletionCreateParams, CompletionCreateParamsNonStreaming, CompletionCreateParamsStreaming, Completions } from "./resources/completions.js";
16
+ import { ModelInfo, ModelInfosPage, ModelListParams, ModelRetrieveParams, Models } from "./resources/models.js";
17
+ import { AnthropicBeta, Beta, BetaAPIError, BetaAuthenticationError, BetaBillingError, BetaError, BetaErrorResponse, BetaGatewayTimeoutError, BetaInvalidRequestError, BetaNotFoundError, BetaOverloadedError, BetaPermissionError, BetaRateLimitError } from "./resources/beta/beta.js";
18
+ import { Base64ImageSource, Base64PDFSource, CacheControlEphemeral, CitationCharLocation, CitationCharLocationParam, CitationContentBlockLocation, CitationContentBlockLocationParam, CitationPageLocation, CitationPageLocationParam, CitationWebSearchResultLocationParam, CitationsConfigParam, CitationsDelta, CitationsWebSearchResultLocation, ContentBlock, ContentBlockDeltaEvent, ContentBlockParam, ContentBlockStartEvent, ContentBlockStopEvent, ContentBlockSource, ContentBlockSourceContent, DocumentBlockParam, ImageBlockParam, InputJSONDelta, Message, MessageStreamParams, MessageCountTokensParams, MessageCountTokensTool, MessageCreateParams, MessageCreateParamsNonStreaming, MessageCreateParamsStreaming, MessageDeltaEvent, MessageDeltaUsage, MessageParam, MessageStartEvent, MessageStopEvent, MessageStreamEvent, MessageTokensCount, Messages, Metadata, Model, PlainTextSource, RawContentBlockDelta, RawContentBlockDeltaEvent, RawContentBlockStartEvent, RawContentBlockStopEvent, RawMessageDeltaEvent, RawMessageStartEvent, RawMessageStopEvent, RawMessageStreamEvent, RedactedThinkingBlock, RedactedThinkingBlockParam, ServerToolUsage, ServerToolUseBlock, ServerToolUseBlockParam, SignatureDelta, StopReason, TextBlock, TextBlockParam, TextCitation, TextCitationParam, TextDelta, ThinkingBlock, ThinkingBlockParam, ThinkingConfigDisabled, ThinkingConfigEnabled, ThinkingConfigParam, ThinkingDelta, Tool, ToolBash20250124, ToolChoice, ToolChoiceAny, ToolChoiceAuto, ToolChoiceNone, ToolChoiceTool, ToolResultBlockParam, ToolTextEditor20250124, ToolUnion, ToolUseBlock, ToolUseBlockParam, URLImageSource, URLPDFSource, Usage, WebSearchResultBlock, WebSearchResultBlockParam, WebSearchTool20250305, WebSearchToolRequestError, WebSearchToolResultBlock, WebSearchToolResultBlockContent, WebSearchToolResultBlockParam, WebSearchToolResultBlockParamContent, WebSearchToolResultError } from "./resources/messages/messages.js";
19
+ export interface ClientOptions {
20
+ /**
21
+ * Defaults to process.env['ANTHROPIC_API_KEY'].
22
+ */
23
+ apiKey?: string | null | undefined;
24
+ /**
25
+ * Defaults to process.env['ANTHROPIC_AUTH_TOKEN'].
26
+ */
27
+ authToken?: string | null | undefined;
28
+ /**
29
+ * Override the default base URL for the API, e.g., "https://api.example.com/v2/"
30
+ *
31
+ * Defaults to process.env['ANTHROPIC_BASE_URL'].
32
+ */
33
+ baseURL?: string | null | undefined;
34
+ /**
35
+ * The maximum amount of time (in milliseconds) that the client should wait for a response
36
+ * from the server before timing out a single request.
37
+ *
38
+ * Note that request timeouts are retried by default, so in a worst-case scenario you may wait
39
+ * much longer than this timeout before the promise succeeds or fails.
40
+ */
41
+ timeout?: number | undefined;
42
+ /**
43
+ * Additional `RequestInit` options to be passed to `fetch` calls.
44
+ * Properties will be overridden by per-request `fetchOptions`.
45
+ */
46
+ fetchOptions?: MergedRequestInit | undefined;
47
+ /**
48
+ * Specify a custom `fetch` function implementation.
49
+ *
50
+ * If not provided, we expect that `fetch` is defined globally.
51
+ */
52
+ fetch?: Fetch | undefined;
53
+ /**
54
+ * The maximum number of times that the client will retry a request in case of a
55
+ * temporary failure, like a network error or a 5XX error from the server.
56
+ *
57
+ * @default 2
58
+ */
59
+ maxRetries?: number | undefined;
60
+ /**
61
+ * Default headers to include with every request to the API.
62
+ *
63
+ * These can be removed in individual requests by explicitly setting the
64
+ * header to `null` in request options.
65
+ */
66
+ defaultHeaders?: HeadersLike | undefined;
67
+ /**
68
+ * Default query parameters to include with every request to the API.
69
+ *
70
+ * These can be removed in individual requests by explicitly setting the
71
+ * param to `undefined` in request options.
72
+ */
73
+ defaultQuery?: Record<string, string | undefined> | undefined;
74
+ /**
75
+ * By default, client-side use of this library is not allowed, as it risks exposing your secret API credentials to attackers.
76
+ * Only set this option to `true` if you understand the risks and have appropriate mitigations in place.
77
+ */
78
+ dangerouslyAllowBrowser?: boolean | undefined;
79
+ /**
80
+ * Set the log level.
81
+ *
82
+ * Defaults to process.env['ANTHROPIC_LOG'] or 'warn' if it isn't set.
83
+ */
84
+ logLevel?: LogLevel | undefined;
85
+ /**
86
+ * Set the logger.
87
+ *
88
+ * Defaults to globalThis.console.
89
+ */
90
+ logger?: Logger | undefined;
91
+ }
92
+ export declare class BaseAnthropic {
93
+ #private;
94
+ apiKey: string | null;
95
+ authToken: string | null;
96
+ baseURL: string;
97
+ maxRetries: number;
98
+ timeout: number;
99
+ logger: Logger | undefined;
100
+ logLevel: LogLevel | undefined;
101
+ fetchOptions: MergedRequestInit | undefined;
102
+ private fetch;
103
+ protected idempotencyHeader?: string;
104
+ private _options;
105
+ /**
106
+ * API Client for interfacing with the Anthropic API.
107
+ *
108
+ * @param {string | null | undefined} [opts.apiKey=process.env['ANTHROPIC_API_KEY'] ?? null]
109
+ * @param {string | null | undefined} [opts.authToken=process.env['ANTHROPIC_AUTH_TOKEN'] ?? null]
110
+ * @param {string} [opts.baseURL=process.env['ANTHROPIC_BASE_URL'] ?? https://api.anthropic.com] - Override the default base URL for the API.
111
+ * @param {number} [opts.timeout=10 minutes] - The maximum amount of time (in milliseconds) the client will wait for a response before timing out.
112
+ * @param {MergedRequestInit} [opts.fetchOptions] - Additional `RequestInit` options to be passed to `fetch` calls.
113
+ * @param {Fetch} [opts.fetch] - Specify a custom `fetch` function implementation.
114
+ * @param {number} [opts.maxRetries=2] - The maximum number of times the client will retry a request.
115
+ * @param {HeadersLike} opts.defaultHeaders - Default headers to include with every request to the API.
116
+ * @param {Record<string, string | undefined>} opts.defaultQuery - Default query parameters to include with every request to the API.
117
+ * @param {boolean} [opts.dangerouslyAllowBrowser=false] - By default, client-side use of this library is not allowed, as it risks exposing your secret API credentials to attackers.
118
+ */
119
+ constructor({ baseURL, apiKey, authToken, ...opts }?: ClientOptions);
120
+ /**
121
+ * Create a new client instance re-using the same options given to the current client with optional overriding.
122
+ */
123
+ withOptions(options: Partial<ClientOptions>): this;
124
+ protected defaultQuery(): Record<string, string | undefined> | undefined;
125
+ protected validateHeaders({ values, nulls }: NullableHeaders): void;
126
+ protected authHeaders(opts: FinalRequestOptions): NullableHeaders | undefined;
127
+ protected apiKeyAuth(opts: FinalRequestOptions): NullableHeaders | undefined;
128
+ protected bearerAuth(opts: FinalRequestOptions): NullableHeaders | undefined;
129
+ /**
130
+ * Basic re-implementation of `qs.stringify` for primitive types.
131
+ */
132
+ protected stringifyQuery(query: Record<string, unknown>): string;
133
+ private getUserAgent;
134
+ protected defaultIdempotencyKey(): string;
135
+ protected makeStatusError(status: number, error: Object, message: string | undefined, headers: Headers): Errors.APIError;
136
+ buildURL(path: string, query: Record<string, unknown> | null | undefined): string;
137
+ _calculateNonstreamingTimeout(maxTokens: number): number;
138
+ /**
139
+ * Used as a callback for mutating the given `FinalRequestOptions` object.
140
+ */
141
+ protected prepareOptions(options: FinalRequestOptions): Promise<void>;
142
+ /**
143
+ * Used as a callback for mutating the given `RequestInit` object.
144
+ *
145
+ * This is useful for cases where you want to add certain headers based off of
146
+ * the request properties, e.g. `method` or `url`.
147
+ */
148
+ protected prepareRequest(request: RequestInit, { url, options }: {
149
+ url: string;
150
+ options: FinalRequestOptions;
151
+ }): Promise<void>;
152
+ get<Rsp>(path: string, opts?: PromiseOrValue<RequestOptions>): APIPromise<Rsp>;
153
+ post<Rsp>(path: string, opts?: PromiseOrValue<RequestOptions>): APIPromise<Rsp>;
154
+ patch<Rsp>(path: string, opts?: PromiseOrValue<RequestOptions>): APIPromise<Rsp>;
155
+ put<Rsp>(path: string, opts?: PromiseOrValue<RequestOptions>): APIPromise<Rsp>;
156
+ delete<Rsp>(path: string, opts?: PromiseOrValue<RequestOptions>): APIPromise<Rsp>;
157
+ private methodRequest;
158
+ request<Rsp>(options: PromiseOrValue<FinalRequestOptions>, remainingRetries?: number | null): APIPromise<Rsp>;
159
+ private makeRequest;
160
+ getAPIList<Item, PageClass extends Pagination.AbstractPage<Item> = Pagination.AbstractPage<Item>>(path: string, Page: new (...args: any[]) => PageClass, opts?: RequestOptions): Pagination.PagePromise<PageClass, Item>;
161
+ requestAPIList<Item = unknown, PageClass extends Pagination.AbstractPage<Item> = Pagination.AbstractPage<Item>>(Page: new (...args: ConstructorParameters<typeof Pagination.AbstractPage>) => PageClass, options: FinalRequestOptions): Pagination.PagePromise<PageClass, Item>;
162
+ fetchWithTimeout(url: RequestInfo, init: RequestInit | undefined, ms: number, controller: AbortController): Promise<Response>;
163
+ private shouldRetry;
164
+ private retryRequest;
165
+ private calculateDefaultRetryTimeoutMillis;
166
+ calculateNonstreamingTimeout(maxTokens: number, maxNonstreamingTokens?: number): number;
167
+ buildRequest(inputOptions: FinalRequestOptions, { retryCount }?: {
168
+ retryCount?: number;
169
+ }): {
170
+ req: FinalizedRequestInit;
171
+ url: string;
172
+ timeout: number;
173
+ };
174
+ private buildHeaders;
175
+ private buildBody;
176
+ static Anthropic: typeof BaseAnthropic;
177
+ static HUMAN_PROMPT: string;
178
+ static AI_PROMPT: string;
179
+ static DEFAULT_TIMEOUT: number;
180
+ static AnthropicError: typeof Errors.AnthropicError;
181
+ static APIError: typeof Errors.APIError;
182
+ static APIConnectionError: typeof Errors.APIConnectionError;
183
+ static APIConnectionTimeoutError: typeof Errors.APIConnectionTimeoutError;
184
+ static APIUserAbortError: typeof Errors.APIUserAbortError;
185
+ static NotFoundError: typeof Errors.NotFoundError;
186
+ static ConflictError: typeof Errors.ConflictError;
187
+ static RateLimitError: typeof Errors.RateLimitError;
188
+ static BadRequestError: typeof Errors.BadRequestError;
189
+ static AuthenticationError: typeof Errors.AuthenticationError;
190
+ static InternalServerError: typeof Errors.InternalServerError;
191
+ static PermissionDeniedError: typeof Errors.PermissionDeniedError;
192
+ static UnprocessableEntityError: typeof Errors.UnprocessableEntityError;
193
+ static toFile: typeof Uploads.toFile;
194
+ }
195
+ /**
196
+ * API Client for interfacing with the Anthropic API.
197
+ */
198
+ export declare class Anthropic extends BaseAnthropic {
199
+ completions: API.Completions;
200
+ messages: API.Messages;
201
+ models: API.Models;
202
+ beta: API.Beta;
203
+ }
204
+ export declare namespace Anthropic {
205
+ export type RequestOptions = Opts.RequestOptions;
206
+ export import Page = Pagination.Page;
207
+ export { type PageParams as PageParams, type PageResponse as PageResponse };
208
+ export { Completions as Completions, type Completion as Completion, type CompletionCreateParams as CompletionCreateParams, type CompletionCreateParamsNonStreaming as CompletionCreateParamsNonStreaming, type CompletionCreateParamsStreaming as CompletionCreateParamsStreaming, };
209
+ export { Messages as Messages, type Base64ImageSource as Base64ImageSource, type Base64PDFSource as Base64PDFSource, type CacheControlEphemeral as CacheControlEphemeral, type CitationCharLocation as CitationCharLocation, type CitationCharLocationParam as CitationCharLocationParam, type CitationContentBlockLocation as CitationContentBlockLocation, type CitationContentBlockLocationParam as CitationContentBlockLocationParam, type CitationPageLocation as CitationPageLocation, type CitationPageLocationParam as CitationPageLocationParam, type CitationWebSearchResultLocationParam as CitationWebSearchResultLocationParam, type CitationsConfigParam as CitationsConfigParam, type CitationsDelta as CitationsDelta, type CitationsWebSearchResultLocation as CitationsWebSearchResultLocation, type ContentBlock as ContentBlock, type ContentBlockDeltaEvent as ContentBlockDeltaEvent, type ContentBlockParam as ContentBlockParam, type ContentBlockStartEvent as ContentBlockStartEvent, type ContentBlockStopEvent as ContentBlockStopEvent, type ContentBlockSource as ContentBlockSource, type ContentBlockSourceContent as ContentBlockSourceContent, type DocumentBlockParam as DocumentBlockParam, type ImageBlockParam as ImageBlockParam, type InputJSONDelta as InputJSONDelta, type Message as Message, type MessageCountTokensTool as MessageCountTokensTool, type MessageDeltaEvent as MessageDeltaEvent, type MessageDeltaUsage as MessageDeltaUsage, type MessageParam as MessageParam, type MessageStartEvent as MessageStartEvent, type MessageStopEvent as MessageStopEvent, type MessageStreamEvent as MessageStreamEvent, type MessageTokensCount as MessageTokensCount, type Metadata as Metadata, type Model as Model, type PlainTextSource as PlainTextSource, type RawContentBlockDelta as RawContentBlockDelta, type RawContentBlockDeltaEvent as RawContentBlockDeltaEvent, type RawContentBlockStartEvent as RawContentBlockStartEvent, type RawContentBlockStopEvent as RawContentBlockStopEvent, type RawMessageDeltaEvent as RawMessageDeltaEvent, type RawMessageStartEvent as RawMessageStartEvent, type RawMessageStopEvent as RawMessageStopEvent, type RawMessageStreamEvent as RawMessageStreamEvent, type RedactedThinkingBlock as RedactedThinkingBlock, type RedactedThinkingBlockParam as RedactedThinkingBlockParam, type ServerToolUsage as ServerToolUsage, type ServerToolUseBlock as ServerToolUseBlock, type ServerToolUseBlockParam as ServerToolUseBlockParam, type SignatureDelta as SignatureDelta, type StopReason as StopReason, type TextBlock as TextBlock, type TextBlockParam as TextBlockParam, type TextCitation as TextCitation, type TextCitationParam as TextCitationParam, type TextDelta as TextDelta, type ThinkingBlock as ThinkingBlock, type ThinkingBlockParam as ThinkingBlockParam, type ThinkingConfigDisabled as ThinkingConfigDisabled, type ThinkingConfigEnabled as ThinkingConfigEnabled, type ThinkingConfigParam as ThinkingConfigParam, type ThinkingDelta as ThinkingDelta, type Tool as Tool, type ToolBash20250124 as ToolBash20250124, type ToolChoice as ToolChoice, type ToolChoiceAny as ToolChoiceAny, type ToolChoiceAuto as ToolChoiceAuto, type ToolChoiceNone as ToolChoiceNone, type ToolChoiceTool as ToolChoiceTool, type ToolResultBlockParam as ToolResultBlockParam, type ToolTextEditor20250124 as ToolTextEditor20250124, type ToolUnion as ToolUnion, type ToolUseBlock as ToolUseBlock, type ToolUseBlockParam as ToolUseBlockParam, type URLImageSource as URLImageSource, type URLPDFSource as URLPDFSource, type Usage as Usage, type WebSearchResultBlock as WebSearchResultBlock, type WebSearchResultBlockParam as WebSearchResultBlockParam, type WebSearchTool20250305 as WebSearchTool20250305, type WebSearchToolRequestError as WebSearchToolRequestError, type WebSearchToolResultBlock as WebSearchToolResultBlock, type WebSearchToolResultBlockContent as WebSearchToolResultBlockContent, type WebSearchToolResultBlockParam as WebSearchToolResultBlockParam, type WebSearchToolResultBlockParamContent as WebSearchToolResultBlockParamContent, type WebSearchToolResultError as WebSearchToolResultError, type MessageCreateParams as MessageCreateParams, type MessageCreateParamsNonStreaming as MessageCreateParamsNonStreaming, type MessageCreateParamsStreaming as MessageCreateParamsStreaming, type MessageStreamParams as MessageStreamParams, type MessageCountTokensParams as MessageCountTokensParams, };
210
+ export { Models as Models, type ModelInfo as ModelInfo, type ModelInfosPage as ModelInfosPage, type ModelRetrieveParams as ModelRetrieveParams, type ModelListParams as ModelListParams, };
211
+ export { Beta as Beta, type AnthropicBeta as AnthropicBeta, type BetaAPIError as BetaAPIError, type BetaAuthenticationError as BetaAuthenticationError, type BetaBillingError as BetaBillingError, type BetaError as BetaError, type BetaErrorResponse as BetaErrorResponse, type BetaGatewayTimeoutError as BetaGatewayTimeoutError, type BetaInvalidRequestError as BetaInvalidRequestError, type BetaNotFoundError as BetaNotFoundError, type BetaOverloadedError as BetaOverloadedError, type BetaPermissionError as BetaPermissionError, type BetaRateLimitError as BetaRateLimitError, };
212
+ export type APIErrorObject = API.APIErrorObject;
213
+ export type AuthenticationError = API.AuthenticationError;
214
+ export type BillingError = API.BillingError;
215
+ export type ErrorObject = API.ErrorObject;
216
+ export type ErrorResponse = API.ErrorResponse;
217
+ export type GatewayTimeoutError = API.GatewayTimeoutError;
218
+ export type InvalidRequestError = API.InvalidRequestError;
219
+ export type NotFoundError = API.NotFoundError;
220
+ export type OverloadedError = API.OverloadedError;
221
+ export type PermissionError = API.PermissionError;
222
+ export type RateLimitError = API.RateLimitError;
223
+ }
224
+ export declare const HUMAN_PROMPT: string, AI_PROMPT: string;
225
+ //# sourceMappingURL=client.d.ts.map
platform/aiml/elizabeth/e-1-first_session/claude-code-router/node_modules/@anthropic-ai/sdk/client.d.ts.map ADDED
@@ -0,0 +1 @@
 
 
1
+ {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["src/client.ts"],"names":[],"mappings":"OAEO,KAAK,EAAE,WAAW,EAAE,WAAW,EAAY;OAC3C,KAAK,EAAc,cAAc,EAAE,iBAAiB,EAAE,oBAAoB,EAAE;OAI5E,EAAE,KAAK,MAAM,EAAE,KAAK,QAAQ,EAAiB;YACxC,EAAE,MAAM,EAAE,QAAQ,EAAE;OAKzB,KAAK,IAAI;OAET,KAAK,MAAM;OACX,KAAK,UAAU;OACf,EAAE,KAAK,UAAU,EAAE,YAAY,EAAE;OACjC,KAAK,OAAO;OACZ,KAAK,GAAG;OACR,EAAE,UAAU,EAAE;OACd,EAAE,KAAK,KAAK,EAAE;OAEd,EAAE,WAAW,EAAE,eAAe,EAAgB;OAC9C,EAAE,mBAAmB,EAAE,cAAc,EAAE;OACvC,EACL,UAAU,EACV,sBAAsB,EACtB,kCAAkC,EAClC,+BAA+B,EAC/B,WAAW,EACZ;OACM,EAAE,SAAS,EAAE,cAAc,EAAE,eAAe,EAAE,mBAAmB,EAAE,MAAM,EAAE;OAI3E,EACL,aAAa,EACb,IAAI,EACJ,YAAY,EACZ,uBAAuB,EACvB,gBAAgB,EAChB,SAAS,EACT,iBAAiB,EACjB,uBAAuB,EACvB,uBAAuB,EACvB,iBAAiB,EACjB,mBAAmB,EACnB,mBAAmB,EACnB,kBAAkB,EACnB;OACM,EACL,iBAAiB,EACjB,eAAe,EACf,qBAAqB,EACrB,oBAAoB,EACpB,yBAAyB,EAC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
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ "use strict";
2
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
+ var _a, _BaseAnthropic_encoder;
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.AI_PROMPT = exports.HUMAN_PROMPT = exports.Anthropic = exports.BaseAnthropic = void 0;
6
+ const tslib_1 = require("./internal/tslib.js");
7
+ const uuid_1 = require("./internal/utils/uuid.js");
8
+ const values_1 = require("./internal/utils/values.js");
9
+ const sleep_1 = require("./internal/utils/sleep.js");
10
+ const log_1 = require("./internal/utils/log.js");
11
+ const errors_1 = require("./internal/errors.js");
12
+ const detect_platform_1 = require("./internal/detect-platform.js");
13
+ const Shims = tslib_1.__importStar(require("./internal/shims.js"));
14
+ const Opts = tslib_1.__importStar(require("./internal/request-options.js"));
15
+ const version_1 = require("./version.js");
16
+ const Errors = tslib_1.__importStar(require("./core/error.js"));
17
+ const Pagination = tslib_1.__importStar(require("./core/pagination.js"));
18
+ const Uploads = tslib_1.__importStar(require("./core/uploads.js"));
19
+ const API = tslib_1.__importStar(require("./resources/index.js"));
20
+ const api_promise_1 = require("./core/api-promise.js");
21
+ const detect_platform_2 = require("./internal/detect-platform.js");
22
+ const headers_1 = require("./internal/headers.js");
23
+ const completions_1 = require("./resources/completions.js");
24
+ const models_1 = require("./resources/models.js");
25
+ const env_1 = require("./internal/utils/env.js");
26
+ const log_2 = require("./internal/utils/log.js");
27
+ const values_2 = require("./internal/utils/values.js");
28
+ const beta_1 = require("./resources/beta/beta.js");
29
+ const messages_1 = require("./resources/messages/messages.js");
30
+ class BaseAnthropic {
31
+ /**
32
+ * API Client for interfacing with the Anthropic API.
33
+ *
34
+ * @param {string | null | undefined} [opts.apiKey=process.env['ANTHROPIC_API_KEY'] ?? null]
35
+ * @param {string | null | undefined} [opts.authToken=process.env['ANTHROPIC_AUTH_TOKEN'] ?? null]
36
+ * @param {string} [opts.baseURL=process.env['ANTHROPIC_BASE_URL'] ?? https://api.anthropic.com] - Override the default base URL for the API.
37
+ * @param {number} [opts.timeout=10 minutes] - The maximum amount of time (in milliseconds) the client will wait for a response before timing out.
38
+ * @param {MergedRequestInit} [opts.fetchOptions] - Additional `RequestInit` options to be passed to `fetch` calls.
39
+ * @param {Fetch} [opts.fetch] - Specify a custom `fetch` function implementation.
40
+ * @param {number} [opts.maxRetries=2] - The maximum number of times the client will retry a request.
41
+ * @param {HeadersLike} opts.defaultHeaders - Default headers to include with every request to the API.
42
+ * @param {Record<string, string | undefined>} opts.defaultQuery - Default query parameters to include with every request to the API.
43
+ * @param {boolean} [opts.dangerouslyAllowBrowser=false] - By default, client-side use of this library is not allowed, as it risks exposing your secret API credentials to attackers.
44
+ */
45
+ constructor({ baseURL = (0, env_1.readEnv)('ANTHROPIC_BASE_URL'), apiKey = (0, env_1.readEnv)('ANTHROPIC_API_KEY') ?? null, authToken = (0, env_1.readEnv)('ANTHROPIC_AUTH_TOKEN') ?? null, ...opts } = {}) {
46
+ _BaseAnthropic_encoder.set(this, void 0);
47
+ const options = {
48
+ apiKey,
49
+ authToken,
50
+ ...opts,
51
+ baseURL: baseURL || `https://api.anthropic.com`,
52
+ };
53
+ if (!options.dangerouslyAllowBrowser && (0, detect_platform_2.isRunningInBrowser)()) {
54
+ throw new Errors.AnthropicError("It looks like you're running in a browser-like environment.\n\nThis is disabled by default, as it risks exposing your secret API credentials to attackers.\nIf you understand the risks and have appropriate mitigations in place,\nyou can set the `dangerouslyAllowBrowser` option to `true`, e.g.,\n\nnew Anthropic({ apiKey, dangerouslyAllowBrowser: true });\n");
55
+ }
56
+ this.baseURL = options.baseURL;
57
+ this.timeout = options.timeout ?? Anthropic.DEFAULT_TIMEOUT /* 10 minutes */;
58
+ this.logger = options.logger ?? console;
59
+ const defaultLogLevel = 'warn';
60
+ // Set default logLevel early so that we can log a warning in parseLogLevel.
61
+ this.logLevel = defaultLogLevel;
62
+ this.logLevel =
63
+ (0, log_1.parseLogLevel)(options.logLevel, 'ClientOptions.logLevel', this) ??
64
+ (0, log_1.parseLogLevel)((0, env_1.readEnv)('ANTHROPIC_LOG'), "process.env['ANTHROPIC_LOG']", this) ??
65
+ defaultLogLevel;
66
+ this.fetchOptions = options.fetchOptions;
67
+ this.maxRetries = options.maxRetries ?? 2;
68
+ this.fetch = options.fetch ?? Shims.getDefaultFetch();
69
+ tslib_1.__classPrivateFieldSet(this, _BaseAnthropic_encoder, Opts.FallbackEncoder, "f");
70
+ this._options = options;
71
+ this.apiKey = apiKey;
72
+ this.authToken = authToken;
73
+ }
74
+ /**
75
+ * Create a new client instance re-using the same options given to the current client with optional overriding.
76
+ */
77
+ withOptions(options) {
78
+ return new this.constructor({
79
+ ...this._options,
80
+ baseURL: this.baseURL,
81
+ maxRetries: this.maxRetries,
82
+ timeout: this.timeout,
83
+ logger: this.logger,
84
+ logLevel: this.logLevel,
85
+ fetchOptions: this.fetchOptions,
86
+ apiKey: this.apiKey,
87
+ authToken: this.authToken,
88
+ ...options,
89
+ });
90
+ }
91
+ defaultQuery() {
92
+ return this._options.defaultQuery;
93
+ }
94
+ validateHeaders({ values, nulls }) {
95
+ if (this.apiKey && values.get('x-api-key')) {
96
+ return;
97
+ }
98
+ if (nulls.has('x-api-key')) {
99
+ return;
100
+ }
101
+ if (this.authToken && values.get('authorization')) {
102
+ return;
103
+ }
104
+ if (nulls.has('authorization')) {
105
+ return;
106
+ }
107
+ throw new Error('Could not resolve authentication method. Expected either apiKey or authToken to be set. Or for one of the "X-Api-Key" or "Authorization" headers to be explicitly omitted');
108
+ }
109
+ authHeaders(opts) {
110
+ return (0, headers_1.buildHeaders)([this.apiKeyAuth(opts), this.bearerAuth(opts)]);
111
+ }
112
+ apiKeyAuth(opts) {
113
+ if (this.apiKey == null) {
114
+ return undefined;
115
+ }
116
+ return (0, headers_1.buildHeaders)([{ 'X-Api-Key': this.apiKey }]);
117
+ }
118
+ bearerAuth(opts) {
119
+ if (this.authToken == null) {
120
+ return undefined;
121
+ }
122
+ return (0, headers_1.buildHeaders)([{ Authorization: `Bearer ${this.authToken}` }]);
123
+ }
124
+ /**
125
+ * Basic re-implementation of `qs.stringify` for primitive types.
126
+ */
127
+ stringifyQuery(query) {
128
+ return Object.entries(query)
129
+ .filter(([_, value]) => typeof value !== 'undefined')
130
+ .map(([key, value]) => {
131
+ if (typeof value === 'string' || typeof value === 'number' || typeof value === 'boolean') {
132
+ return `${encodeURIComponent(key)}=${encodeURIComponent(value)}`;
133
+ }
134
+ if (value === null) {
135
+ return `${encodeURIComponent(key)}=`;
136
+ }
137
+ throw new Errors.AnthropicError(`Cannot stringify type ${typeof value}; Expected string, number, boolean, or null. If you need to pass nested query parameters, you can manually encode them, e.g. { query: { 'foo[key1]': value1, 'foo[key2]': value2 } }, and please open a GitHub issue requesting better support for your use case.`);
138
+ })
139
+ .join('&');
140
+ }
141
+ getUserAgent() {
142
+ return `${this.constructor.name}/JS ${version_1.VERSION}`;
143
+ }
144
+ defaultIdempotencyKey() {
145
+ return `stainless-node-retry-${(0, uuid_1.uuid4)()}`;
146
+ }
147
+ makeStatusError(status, error, message, headers) {
148
+ return Errors.APIError.generate(status, error, message, headers);
149
+ }
150
+ buildURL(path, query) {
151
+ const url = (0, values_1.isAbsoluteURL)(path) ?
152
+ new URL(path)
153
+ : new URL(this.baseURL + (this.baseURL.endsWith('/') && path.startsWith('/') ? path.slice(1) : path));
154
+ const defaultQuery = this.defaultQuery();
155
+ if (!(0, values_2.isEmptyObj)(defaultQuery)) {
156
+ query = { ...defaultQuery, ...query };
157
+ }
158
+ if (typeof query === 'object' && query && !Array.isArray(query)) {
159
+ url.search = this.stringifyQuery(query);
160
+ }
161
+ return url.toString();
162
+ }
163
+ _calculateNonstreamingTimeout(maxTokens) {
164
+ const defaultTimeout = 10 * 60;
165
+ const expectedTimeout = (60 * 60 * maxTokens) / 128000;
166
+ if (expectedTimeout > defaultTimeout) {
167
+ throw new Errors.AnthropicError('Streaming is strongly recommended for operations that may take longer than 10 minutes. ' +
168
+ 'See https://github.com/anthropics/anthropic-sdk-typescript#streaming-responses for more details');
169
+ }
170
+ return defaultTimeout * 1000;
171
+ }
172
+ /**
173
+ * Used as a callback for mutating the given `FinalRequestOptions` object.
174
+ */
175
+ async prepareOptions(options) { }
176
+ /**
177
+ * Used as a callback for mutating the given `RequestInit` object.
178
+ *
179
+ * This is useful for cases where you want to add certain headers based off of
180
+ * the request properties, e.g. `method` or `url`.
181
+ */
182
+ async prepareRequest(request, { url, options }) { }
183
+ get(path, opts) {
184
+ return this.methodRequest('get', path, opts);
185
+ }
186
+ post(path, opts) {
187
+ return this.methodRequest('post', path, opts);
188
+ }
189
+ patch(path, opts) {
190
+ return this.methodRequest('patch', path, opts);
191
+ }
192
+ put(path, opts) {
193
+ return this.methodRequest('put', path, opts);
194
+ }
195
+ delete(path, opts) {
196
+ return this.methodRequest('delete', path, opts);
197
+ }
198
+ methodRequest(method, path, opts) {
199
+ return this.request(Promise.resolve(opts).then((opts) => {
200
+ return { method, path, ...opts };
201
+ }));
202
+ }
203
+ request(options, remainingRetries = null) {
204
+ return new api_promise_1.APIPromise(this, this.makeRequest(options, remainingRetries, undefined));
205
+ }
206
+ async makeRequest(optionsInput, retriesRemaining, retryOfRequestLogID) {
207
+ const options = await optionsInput;
208
+ const maxRetries = options.maxRetries ?? this.maxRetries;
209
+ if (retriesRemaining == null) {
210
+ retriesRemaining = maxRetries;
211
+ }
212
+ await this.prepareOptions(options);
213
+ const { req, url, timeout } = this.buildRequest(options, { retryCount: maxRetries - retriesRemaining });
214
+ await this.prepareRequest(req, { url, options });
215
+ /** Not an API request ID, just for correlating local log entries. */
216
+ const requestLogID = 'log_' + ((Math.random() * (1 << 24)) | 0).toString(16).padStart(6, '0');
217
+ const retryLogStr = retryOfRequestLogID === undefined ? '' : `, retryOf: ${retryOfRequestLogID}`;
218
+ const startTime = Date.now();
219
+ (0, log_2.loggerFor)(this).debug(`[${requestLogID}] sending request`, (0, log_2.formatRequestDetails)({
220
+ retryOfRequestLogID,
221
+ method: options.method,
222
+ url,
223
+ options,
224
+ headers: req.headers,
225
+ }));
226
+ if (options.signal?.aborted) {
227
+ throw new Errors.APIUserAbortError();
228
+ }
229
+ const controller = new AbortController();
230
+ const response = await this.fetchWithTimeout(url, req, timeout, controller).catch(errors_1.castToError);
231
+ const headersTime = Date.now();
232
+ if (response instanceof Error) {
233
+ const retryMessage = `retrying, ${retriesRemaining} attempts remaining`;
234
+ if (options.signal?.aborted) {
235
+ throw new Errors.APIUserAbortError();
236
+ }
237
+ // detect native connection timeout errors
238
+ // deno throws "TypeError: error sending request for url (https://example/): client error (Connect): tcp connect error: Operation timed out (os error 60): Operation timed out (os error 60)"
239
+ // undici throws "TypeError: fetch failed" with cause "ConnectTimeoutError: Connect Timeout Error (attempted address: example:443, timeout: 1ms)"
240
+ // others do not provide enough information to distinguish timeouts from other connection errors
241
+ const isTimeout = (0, errors_1.isAbortError)(response) ||
242
+ /timed? ?out/i.test(String(response) + ('cause' in response ? String(response.cause) : ''));
243
+ if (retriesRemaining) {
244
+ (0, log_2.loggerFor)(this).info(`[${requestLogID}] connection ${isTimeout ? 'timed out' : 'failed'} - ${retryMessage}`);
245
+ (0, log_2.loggerFor)(this).debug(`[${requestLogID}] connection ${isTimeout ? 'timed out' : 'failed'} (${retryMessage})`, (0, log_2.formatRequestDetails)({
246
+ retryOfRequestLogID,
247
+ url,
248
+ durationMs: headersTime - startTime,
249
+ message: response.message,
250
+ }));
251
+ return this.retryRequest(options, retriesRemaining, retryOfRequestLogID ?? requestLogID);
252
+ }
253
+ (0, log_2.loggerFor)(this).info(`[${requestLogID}] connection ${isTimeout ? 'timed out' : 'failed'} - error; no more retries left`);
254
+ (0, log_2.loggerFor)(this).debug(`[${requestLogID}] connection ${isTimeout ? 'timed out' : 'failed'} (error; no more retries left)`, (0, log_2.formatRequestDetails)({
255
+ retryOfRequestLogID,
256
+ url,
257
+ durationMs: headersTime - startTime,
258
+ message: response.message,
259
+ }));
260
+ if (isTimeout) {
261
+ throw new Errors.APIConnectionTimeoutError();
262
+ }
263
+ throw new Errors.APIConnectionError({ cause: response });
264
+ }
265
+ const specialHeaders = [...response.headers.entries()]
266
+ .filter(([name]) => name === 'request-id')
267
+ .map(([name, value]) => ', ' + name + ': ' + JSON.stringify(value))
268
+ .join('');
269
+ const responseInfo = `[${requestLogID}${retryLogStr}${specialHeaders}] ${req.method} ${url} ${response.ok ? 'succeeded' : 'failed'} with status ${response.status} in ${headersTime - startTime}ms`;
270
+ if (!response.ok) {
271
+ const shouldRetry = this.shouldRetry(response);
272
+ if (retriesRemaining && shouldRetry) {
273
+ const retryMessage = `retrying, ${retriesRemaining} attempts remaining`;
274
+ // We don't need the body of this response.
275
+ await Shims.CancelReadableStream(response.body);
276
+ (0, log_2.loggerFor)(this).info(`${responseInfo} - ${retryMessage}`);
277
+ (0, log_2.loggerFor)(this).debug(`[${requestLogID}] response error (${retryMessage})`, (0, log_2.formatRequestDetails)({
278
+ retryOfRequestLogID,
279
+ url: response.url,
280
+ status: response.status,
281
+ headers: response.headers,
282
+ durationMs: headersTime - startTime,
283
+ }));
284
+ return this.retryRequest(options, retriesRemaining, retryOfRequestLogID ?? requestLogID, response.headers);
285
+ }
286
+ const retryMessage = shouldRetry ? `error; no more retries left` : `error; not retryable`;
287
+ (0, log_2.loggerFor)(this).info(`${responseInfo} - ${retryMessage}`);
288
+ const errText = await response.text().catch((err) => (0, errors_1.castToError)(err).message);
289
+ const errJSON = (0, values_1.safeJSON)(errText);
290
+ const errMessage = errJSON ? undefined : errText;
291
+ (0, log_2.loggerFor)(this).debug(`[${requestLogID}] response error (${retryMessage})`, (0, log_2.formatRequestDetails)({
292
+ retryOfRequestLogID,
293
+ url: response.url,
294
+ status: response.status,
295
+ headers: response.headers,
296
+ message: errMessage,
297
+ durationMs: Date.now() - startTime,
298
+ }));
299
+ const err = this.makeStatusError(response.status, errJSON, errMessage, response.headers);
300
+ throw err;
301
+ }
302
+ (0, log_2.loggerFor)(this).info(responseInfo);
303
+ (0, log_2.loggerFor)(this).debug(`[${requestLogID}] response start`, (0, log_2.formatRequestDetails)({
304
+ retryOfRequestLogID,
305
+ url: response.url,
306
+ status: response.status,
307
+ headers: response.headers,
308
+ durationMs: headersTime - startTime,
309
+ }));
310
+ return { response, options, controller, requestLogID, retryOfRequestLogID, startTime };
311
+ }
312
+ getAPIList(path, Page, opts) {
313
+ return this.requestAPIList(Page, { method: 'get', path, ...opts });
314
+ }
315
+ requestAPIList(Page, options) {
316
+ const request = this.makeRequest(options, null, undefined);
317
+ return new Pagination.PagePromise(this, request, Page);
318
+ }
319
+ async fetchWithTimeout(url, init, ms, controller) {
320
+ const { signal, method, ...options } = init || {};
321
+ if (signal)
322
+ signal.addEventListener('abort', () => controller.abort());
323
+ const timeout = setTimeout(() => controller.abort(), ms);
324
+ const isReadableBody = (globalThis.ReadableStream && options.body instanceof globalThis.ReadableStream) ||
325
+ (typeof options.body === 'object' && options.body !== null && Symbol.asyncIterator in options.body);
326
+ const fetchOptions = {
327
+ signal: controller.signal,
328
+ ...(isReadableBody ? { duplex: 'half' } : {}),
329
+ method: 'GET',
330
+ ...options,
331
+ };
332
+ if (method) {
333
+ // Custom methods like 'patch' need to be uppercased
334
+ // See https://github.com/nodejs/undici/issues/2294
335
+ fetchOptions.method = method.toUpperCase();
336
+ }
337
+ try {
338
+ // use undefined this binding; fetch errors if bound to something else in browser/cloudflare
339
+ return await this.fetch.call(undefined, url, fetchOptions);
340
+ }
341
+ finally {
342
+ clearTimeout(timeout);
343
+ }
344
+ }
345
+ shouldRetry(response) {
346
+ // Note this is not a standard header.
347
+ const shouldRetryHeader = response.headers.get('x-should-retry');
348
+ // If the server explicitly says whether or not to retry, obey.
349
+ if (shouldRetryHeader === 'true')
350
+ return true;
351
+ if (shouldRetryHeader === 'false')
352
+ return false;
353
+ // Retry on request timeouts.
354
+ if (response.status === 408)
355
+ return true;
356
+ // Retry on lock timeouts.
357
+ if (response.status === 409)
358
+ return true;
359
+ // Retry on rate limits.
360
+ if (response.status === 429)
361
+ return true;
362
+ // Retry internal errors.
363
+ if (response.status >= 500)
364
+ return true;
365
+ return false;
366
+ }
367
+ async retryRequest(options, retriesRemaining, requestLogID, responseHeaders) {
368
+ let timeoutMillis;
369
+ // Note the `retry-after-ms` header may not be standard, but is a good idea and we'd like proactive support for it.
370
+ const retryAfterMillisHeader = responseHeaders?.get('retry-after-ms');
371
+ if (retryAfterMillisHeader) {
372
+ const timeoutMs = parseFloat(retryAfterMillisHeader);
373
+ if (!Number.isNaN(timeoutMs)) {
374
+ timeoutMillis = timeoutMs;
375
+ }
376
+ }
377
+ // About the Retry-After header: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Retry-After
378
+ const retryAfterHeader = responseHeaders?.get('retry-after');
379
+ if (retryAfterHeader && !timeoutMillis) {
380
+ const timeoutSeconds = parseFloat(retryAfterHeader);
381
+ if (!Number.isNaN(timeoutSeconds)) {
382
+ timeoutMillis = timeoutSeconds * 1000;
383
+ }
384
+ else {
385
+ timeoutMillis = Date.parse(retryAfterHeader) - Date.now();
386
+ }
387
+ }
388
+ // If the API asks us to wait a certain amount of time (and it's a reasonable amount),
389
+ // just do what it says, but otherwise calculate a default
390
+ if (!(timeoutMillis && 0 <= timeoutMillis && timeoutMillis < 60 * 1000)) {
391
+ const maxRetries = options.maxRetries ?? this.maxRetries;
392
+ timeoutMillis = this.calculateDefaultRetryTimeoutMillis(retriesRemaining, maxRetries);
393
+ }
394
+ await (0, sleep_1.sleep)(timeoutMillis);
395
+ return this.makeRequest(options, retriesRemaining - 1, requestLogID);
396
+ }
397
+ calculateDefaultRetryTimeoutMillis(retriesRemaining, maxRetries) {
398
+ const initialRetryDelay = 0.5;
399
+ const maxRetryDelay = 8.0;
400
+ const numRetries = maxRetries - retriesRemaining;
401
+ // Apply exponential backoff, but not more than the max.
402
+ const sleepSeconds = Math.min(initialRetryDelay * Math.pow(2, numRetries), maxRetryDelay);
403
+ // Apply some jitter, take up to at most 25 percent of the retry time.
404
+ const jitter = 1 - Math.random() * 0.25;
405
+ return sleepSeconds * jitter * 1000;
406
+ }
407
+ calculateNonstreamingTimeout(maxTokens, maxNonstreamingTokens) {
408
+ const maxTime = 60 * 60 * 1000; // 10 minutes
409
+ const defaultTime = 60 * 10 * 1000; // 10 minutes
410
+ const expectedTime = (maxTime * maxTokens) / 128000;
411
+ if (expectedTime > defaultTime || (maxNonstreamingTokens != null && maxTokens > maxNonstreamingTokens)) {
412
+ throw new Errors.AnthropicError('Streaming is strongly recommended for operations that may token longer than 10 minutes. See https://github.com/anthropics/anthropic-sdk-typescript#long-requests for more details');
413
+ }
414
+ return defaultTime;
415
+ }
416
+ buildRequest(inputOptions, { retryCount = 0 } = {}) {
417
+ const options = { ...inputOptions };
418
+ const { method, path, query } = options;
419
+ const url = this.buildURL(path, query);
420
+ if ('timeout' in options)
421
+ (0, values_1.validatePositiveInteger)('timeout', options.timeout);
422
+ options.timeout = options.timeout ?? this.timeout;
423
+ const { bodyHeaders, body } = this.buildBody({ options });
424
+ const reqHeaders = this.buildHeaders({ options: inputOptions, method, bodyHeaders, retryCount });
425
+ const req = {
426
+ method,
427
+ headers: reqHeaders,
428
+ ...(options.signal && { signal: options.signal }),
429
+ ...(globalThis.ReadableStream &&
430
+ body instanceof globalThis.ReadableStream && { duplex: 'half' }),
431
+ ...(body && { body }),
432
+ ...(this.fetchOptions ?? {}),
433
+ ...(options.fetchOptions ?? {}),
434
+ };
435
+ return { req, url, timeout: options.timeout };
436
+ }
437
+ buildHeaders({ options, method, bodyHeaders, retryCount, }) {
438
+ let idempotencyHeaders = {};
439
+ if (this.idempotencyHeader && method !== 'get') {
440
+ if (!options.idempotencyKey)
441
+ options.idempotencyKey = this.defaultIdempotencyKey();
442
+ idempotencyHeaders[this.idempotencyHeader] = options.idempotencyKey;
443
+ }
444
+ const headers = (0, headers_1.buildHeaders)([
445
+ idempotencyHeaders,
446
+ {
447
+ Accept: 'application/json',
448
+ 'User-Agent': this.getUserAgent(),
449
+ 'X-Stainless-Retry-Count': String(retryCount),
450
+ ...(options.timeout ? { 'X-Stainless-Timeout': String(Math.trunc(options.timeout / 1000)) } : {}),
451
+ ...(0, detect_platform_1.getPlatformHeaders)(),
452
+ ...(this._options.dangerouslyAllowBrowser ?
453
+ { 'anthropic-dangerous-direct-browser-access': 'true' }
454
+ : undefined),
455
+ 'anthropic-version': '2023-06-01',
456
+ },
457
+ this.authHeaders(options),
458
+ this._options.defaultHeaders,
459
+ bodyHeaders,
460
+ options.headers,
461
+ ]);
462
+ this.validateHeaders(headers);
463
+ return headers.values;
464
+ }
465
+ buildBody({ options: { body, headers: rawHeaders } }) {
466
+ if (!body) {
467
+ return { bodyHeaders: undefined, body: undefined };
468
+ }
469
+ const headers = (0, headers_1.buildHeaders)([rawHeaders]);
470
+ if (
471
+ // Pass raw type verbatim
472
+ ArrayBuffer.isView(body) ||
473
+ body instanceof ArrayBuffer ||
474
+ body instanceof DataView ||
475
+ (typeof body === 'string' &&
476
+ // Preserve legacy string encoding behavior for now
477
+ headers.values.has('content-type')) ||
478
+ // `Blob` is superset of `File`
479
+ body instanceof Blob ||
480
+ // `FormData` -> `multipart/form-data`
481
+ body instanceof FormData ||
482
+ // `URLSearchParams` -> `application/x-www-form-urlencoded`
483
+ body instanceof URLSearchParams ||
484
+ // Send chunked stream (each chunk has own `length`)
485
+ (globalThis.ReadableStream && body instanceof globalThis.ReadableStream)) {
486
+ return { bodyHeaders: undefined, body: body };
487
+ }
488
+ else if (typeof body === 'object' &&
489
+ (Symbol.asyncIterator in body ||
490
+ (Symbol.iterator in body && 'next' in body && typeof body.next === 'function'))) {
491
+ return { bodyHeaders: undefined, body: Shims.ReadableStreamFrom(body) };
492
+ }
493
+ else {
494
+ return tslib_1.__classPrivateFieldGet(this, _BaseAnthropic_encoder, "f").call(this, { body, headers });
495
+ }
496
+ }
497
+ }
498
+ exports.BaseAnthropic = BaseAnthropic;
499
+ _a = BaseAnthropic, _BaseAnthropic_encoder = new WeakMap();
500
+ BaseAnthropic.Anthropic = _a;
501
+ BaseAnthropic.HUMAN_PROMPT = '\n\nHuman:';
502
+ BaseAnthropic.AI_PROMPT = '\n\nAssistant:';
503
+ BaseAnthropic.DEFAULT_TIMEOUT = 600000; // 10 minutes
504
+ BaseAnthropic.AnthropicError = Errors.AnthropicError;
505
+ BaseAnthropic.APIError = Errors.APIError;
506
+ BaseAnthropic.APIConnectionError = Errors.APIConnectionError;
507
+ BaseAnthropic.APIConnectionTimeoutError = Errors.APIConnectionTimeoutError;
508
+ BaseAnthropic.APIUserAbortError = Errors.APIUserAbortError;
509
+ BaseAnthropic.NotFoundError = Errors.NotFoundError;
510
+ BaseAnthropic.ConflictError = Errors.ConflictError;
511
+ BaseAnthropic.RateLimitError = Errors.RateLimitError;
512
+ BaseAnthropic.BadRequestError = Errors.BadRequestError;
513
+ BaseAnthropic.AuthenticationError = Errors.AuthenticationError;
514
+ BaseAnthropic.InternalServerError = Errors.InternalServerError;
515
+ BaseAnthropic.PermissionDeniedError = Errors.PermissionDeniedError;
516
+ BaseAnthropic.UnprocessableEntityError = Errors.UnprocessableEntityError;
517
+ BaseAnthropic.toFile = Uploads.toFile;
518
+ /**
519
+ * API Client for interfacing with the Anthropic API.
520
+ */
521
+ class Anthropic extends BaseAnthropic {
522
+ constructor() {
523
+ super(...arguments);
524
+ this.completions = new API.Completions(this);
525
+ this.messages = new API.Messages(this);
526
+ this.models = new API.Models(this);
527
+ this.beta = new API.Beta(this);
528
+ }
529
+ }
530
+ exports.Anthropic = Anthropic;
531
+ Anthropic.Completions = completions_1.Completions;
532
+ Anthropic.Messages = messages_1.Messages;
533
+ Anthropic.Models = models_1.Models;
534
+ Anthropic.Beta = beta_1.Beta;
535
+ exports.HUMAN_PROMPT = Anthropic.HUMAN_PROMPT, exports.AI_PROMPT = Anthropic.AI_PROMPT;
536
+ //# sourceMappingURL=client.js.map
platform/aiml/elizabeth/e-1-first_session/claude-code-router/node_modules/@anthropic-ai/sdk/client.js.map ADDED
@@ -0,0 +1 @@
 
 
1
+ {"version":3,"file":"client.js","sourceRoot":"","sources":["src/client.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;;AAItF,mDAA8C;AAC9C,uDAA2F;AAC3F,qDAA+C;AAC/C,iDAAiF;AAEjF,iDAA8D;AAE9D,mEAAgE;AAChE,mEAA0C;AAC1C,4EAAmD;AACnD,0CAAoC;AACpC,gEAAuC;AACvC,yEAAgD;AAEhD,mEAA0C;AAC1C,kEAAyC;AACzC,uDAAgD;AAEhD,mEAAgE;AAChE,mDAAgF;AAEhF,4DAMiC;AACjC,kDAA6G;AAC7G,iDAA+C;AAC/C,iDAAuE;AACvE,uDAAqD;AACrD,mDAc+B;AAC/B,+DA4FuC;AAsFvC,MAAa,aAAa;IAgBxB;;;;;;;;;;;;;OAaG;IACH,YAAY,EACV,OAAO,GAAG,IAAA,aAAO,EAAC,oBAAoB,CAAC,EACvC,MAAM,GAAG,IAAA,aAAO,EAAC,mBAAmB,CAAC,IAAI,IAAI,EAC7C,SAAS,GAAG,IAAA,aAAO,EAAC,sBAAsB,CAAC,IAAI,IAAI,EACnD,GAAG,IAAI,KACU,EAAE;QAvBrB,yCA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
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ var _a, _BaseAnthropic_encoder;
3
+ import { __classPrivateFieldGet, __classPrivateFieldSet } from "./internal/tslib.mjs";
4
+ import { uuid4 } from "./internal/utils/uuid.mjs";
5
+ import { validatePositiveInteger, isAbsoluteURL, safeJSON } from "./internal/utils/values.mjs";
6
+ import { sleep } from "./internal/utils/sleep.mjs";
7
+ import { parseLogLevel } from "./internal/utils/log.mjs";
8
+ import { castToError, isAbortError } from "./internal/errors.mjs";
9
+ import { getPlatformHeaders } from "./internal/detect-platform.mjs";
10
+ import * as Shims from "./internal/shims.mjs";
11
+ import * as Opts from "./internal/request-options.mjs";
12
+ import { VERSION } from "./version.mjs";
13
+ import * as Errors from "./core/error.mjs";
14
+ import * as Pagination from "./core/pagination.mjs";
15
+ import * as Uploads from "./core/uploads.mjs";
16
+ import * as API from "./resources/index.mjs";
17
+ import { APIPromise } from "./core/api-promise.mjs";
18
+ import { isRunningInBrowser } from "./internal/detect-platform.mjs";
19
+ import { buildHeaders } from "./internal/headers.mjs";
20
+ import { Completions, } from "./resources/completions.mjs";
21
+ import { Models } from "./resources/models.mjs";
22
+ import { readEnv } from "./internal/utils/env.mjs";
23
+ import { formatRequestDetails, loggerFor } from "./internal/utils/log.mjs";
24
+ import { isEmptyObj } from "./internal/utils/values.mjs";
25
+ import { Beta, } from "./resources/beta/beta.mjs";
26
+ import { Messages, } from "./resources/messages/messages.mjs";
27
+ export class BaseAnthropic {
28
+ /**
29
+ * API Client for interfacing with the Anthropic API.
30
+ *
31
+ * @param {string | null | undefined} [opts.apiKey=process.env['ANTHROPIC_API_KEY'] ?? null]
32
+ * @param {string | null | undefined} [opts.authToken=process.env['ANTHROPIC_AUTH_TOKEN'] ?? null]
33
+ * @param {string} [opts.baseURL=process.env['ANTHROPIC_BASE_URL'] ?? https://api.anthropic.com] - Override the default base URL for the API.
34
+ * @param {number} [opts.timeout=10 minutes] - The maximum amount of time (in milliseconds) the client will wait for a response before timing out.
35
+ * @param {MergedRequestInit} [opts.fetchOptions] - Additional `RequestInit` options to be passed to `fetch` calls.
36
+ * @param {Fetch} [opts.fetch] - Specify a custom `fetch` function implementation.
37
+ * @param {number} [opts.maxRetries=2] - The maximum number of times the client will retry a request.
38
+ * @param {HeadersLike} opts.defaultHeaders - Default headers to include with every request to the API.
39
+ * @param {Record<string, string | undefined>} opts.defaultQuery - Default query parameters to include with every request to the API.
40
+ * @param {boolean} [opts.dangerouslyAllowBrowser=false] - By default, client-side use of this library is not allowed, as it risks exposing your secret API credentials to attackers.
41
+ */
42
+ constructor({ baseURL = readEnv('ANTHROPIC_BASE_URL'), apiKey = readEnv('ANTHROPIC_API_KEY') ?? null, authToken = readEnv('ANTHROPIC_AUTH_TOKEN') ?? null, ...opts } = {}) {
43
+ _BaseAnthropic_encoder.set(this, void 0);
44
+ const options = {
45
+ apiKey,
46
+ authToken,
47
+ ...opts,
48
+ baseURL: baseURL || `https://api.anthropic.com`,
49
+ };
50
+ if (!options.dangerouslyAllowBrowser && isRunningInBrowser()) {
51
+ throw new Errors.AnthropicError("It looks like you're running in a browser-like environment.\n\nThis is disabled by default, as it risks exposing your secret API credentials to attackers.\nIf you understand the risks and have appropriate mitigations in place,\nyou can set the `dangerouslyAllowBrowser` option to `true`, e.g.,\n\nnew Anthropic({ apiKey, dangerouslyAllowBrowser: true });\n");
52
+ }
53
+ this.baseURL = options.baseURL;
54
+ this.timeout = options.timeout ?? Anthropic.DEFAULT_TIMEOUT /* 10 minutes */;
55
+ this.logger = options.logger ?? console;
56
+ const defaultLogLevel = 'warn';
57
+ // Set default logLevel early so that we can log a warning in parseLogLevel.
58
+ this.logLevel = defaultLogLevel;
59
+ this.logLevel =
60
+ parseLogLevel(options.logLevel, 'ClientOptions.logLevel', this) ??
61
+ parseLogLevel(readEnv('ANTHROPIC_LOG'), "process.env['ANTHROPIC_LOG']", this) ??
62
+ defaultLogLevel;
63
+ this.fetchOptions = options.fetchOptions;
64
+ this.maxRetries = options.maxRetries ?? 2;
65
+ this.fetch = options.fetch ?? Shims.getDefaultFetch();
66
+ __classPrivateFieldSet(this, _BaseAnthropic_encoder, Opts.FallbackEncoder, "f");
67
+ this._options = options;
68
+ this.apiKey = apiKey;
69
+ this.authToken = authToken;
70
+ }
71
+ /**
72
+ * Create a new client instance re-using the same options given to the current client with optional overriding.
73
+ */
74
+ withOptions(options) {
75
+ return new this.constructor({
76
+ ...this._options,
77
+ baseURL: this.baseURL,
78
+ maxRetries: this.maxRetries,
79
+ timeout: this.timeout,
80
+ logger: this.logger,
81
+ logLevel: this.logLevel,
82
+ fetchOptions: this.fetchOptions,
83
+ apiKey: this.apiKey,
84
+ authToken: this.authToken,
85
+ ...options,
86
+ });
87
+ }
88
+ defaultQuery() {
89
+ return this._options.defaultQuery;
90
+ }
91
+ validateHeaders({ values, nulls }) {
92
+ if (this.apiKey && values.get('x-api-key')) {
93
+ return;
94
+ }
95
+ if (nulls.has('x-api-key')) {
96
+ return;
97
+ }
98
+ if (this.authToken && values.get('authorization')) {
99
+ return;
100
+ }
101
+ if (nulls.has('authorization')) {
102
+ return;
103
+ }
104
+ throw new Error('Could not resolve authentication method. Expected either apiKey or authToken to be set. Or for one of the "X-Api-Key" or "Authorization" headers to be explicitly omitted');
105
+ }
106
+ authHeaders(opts) {
107
+ return buildHeaders([this.apiKeyAuth(opts), this.bearerAuth(opts)]);
108
+ }
109
+ apiKeyAuth(opts) {
110
+ if (this.apiKey == null) {
111
+ return undefined;
112
+ }
113
+ return buildHeaders([{ 'X-Api-Key': this.apiKey }]);
114
+ }
115
+ bearerAuth(opts) {
116
+ if (this.authToken == null) {
117
+ return undefined;
118
+ }
119
+ return buildHeaders([{ Authorization: `Bearer ${this.authToken}` }]);
120
+ }
121
+ /**
122
+ * Basic re-implementation of `qs.stringify` for primitive types.
123
+ */
124
+ stringifyQuery(query) {
125
+ return Object.entries(query)
126
+ .filter(([_, value]) => typeof value !== 'undefined')
127
+ .map(([key, value]) => {
128
+ if (typeof value === 'string' || typeof value === 'number' || typeof value === 'boolean') {
129
+ return `${encodeURIComponent(key)}=${encodeURIComponent(value)}`;
130
+ }
131
+ if (value === null) {
132
+ return `${encodeURIComponent(key)}=`;
133
+ }
134
+ throw new Errors.AnthropicError(`Cannot stringify type ${typeof value}; Expected string, number, boolean, or null. If you need to pass nested query parameters, you can manually encode them, e.g. { query: { 'foo[key1]': value1, 'foo[key2]': value2 } }, and please open a GitHub issue requesting better support for your use case.`);
135
+ })
136
+ .join('&');
137
+ }
138
+ getUserAgent() {
139
+ return `${this.constructor.name}/JS ${VERSION}`;
140
+ }
141
+ defaultIdempotencyKey() {
142
+ return `stainless-node-retry-${uuid4()}`;
143
+ }
144
+ makeStatusError(status, error, message, headers) {
145
+ return Errors.APIError.generate(status, error, message, headers);
146
+ }
147
+ buildURL(path, query) {
148
+ const url = isAbsoluteURL(path) ?
149
+ new URL(path)
150
+ : new URL(this.baseURL + (this.baseURL.endsWith('/') && path.startsWith('/') ? path.slice(1) : path));
151
+ const defaultQuery = this.defaultQuery();
152
+ if (!isEmptyObj(defaultQuery)) {
153
+ query = { ...defaultQuery, ...query };
154
+ }
155
+ if (typeof query === 'object' && query && !Array.isArray(query)) {
156
+ url.search = this.stringifyQuery(query);
157
+ }
158
+ return url.toString();
159
+ }
160
+ _calculateNonstreamingTimeout(maxTokens) {
161
+ const defaultTimeout = 10 * 60;
162
+ const expectedTimeout = (60 * 60 * maxTokens) / 128000;
163
+ if (expectedTimeout > defaultTimeout) {
164
+ throw new Errors.AnthropicError('Streaming is strongly recommended for operations that may take longer than 10 minutes. ' +
165
+ 'See https://github.com/anthropics/anthropic-sdk-typescript#streaming-responses for more details');
166
+ }
167
+ return defaultTimeout * 1000;
168
+ }
169
+ /**
170
+ * Used as a callback for mutating the given `FinalRequestOptions` object.
171
+ */
172
+ async prepareOptions(options) { }
173
+ /**
174
+ * Used as a callback for mutating the given `RequestInit` object.
175
+ *
176
+ * This is useful for cases where you want to add certain headers based off of
177
+ * the request properties, e.g. `method` or `url`.
178
+ */
179
+ async prepareRequest(request, { url, options }) { }
180
+ get(path, opts) {
181
+ return this.methodRequest('get', path, opts);
182
+ }
183
+ post(path, opts) {
184
+ return this.methodRequest('post', path, opts);
185
+ }
186
+ patch(path, opts) {
187
+ return this.methodRequest('patch', path, opts);
188
+ }
189
+ put(path, opts) {
190
+ return this.methodRequest('put', path, opts);
191
+ }
192
+ delete(path, opts) {
193
+ return this.methodRequest('delete', path, opts);
194
+ }
195
+ methodRequest(method, path, opts) {
196
+ return this.request(Promise.resolve(opts).then((opts) => {
197
+ return { method, path, ...opts };
198
+ }));
199
+ }
200
+ request(options, remainingRetries = null) {
201
+ return new APIPromise(this, this.makeRequest(options, remainingRetries, undefined));
202
+ }
203
+ async makeRequest(optionsInput, retriesRemaining, retryOfRequestLogID) {
204
+ const options = await optionsInput;
205
+ const maxRetries = options.maxRetries ?? this.maxRetries;
206
+ if (retriesRemaining == null) {
207
+ retriesRemaining = maxRetries;
208
+ }
209
+ await this.prepareOptions(options);
210
+ const { req, url, timeout } = this.buildRequest(options, { retryCount: maxRetries - retriesRemaining });
211
+ await this.prepareRequest(req, { url, options });
212
+ /** Not an API request ID, just for correlating local log entries. */
213
+ const requestLogID = 'log_' + ((Math.random() * (1 << 24)) | 0).toString(16).padStart(6, '0');
214
+ const retryLogStr = retryOfRequestLogID === undefined ? '' : `, retryOf: ${retryOfRequestLogID}`;
215
+ const startTime = Date.now();
216
+ loggerFor(this).debug(`[${requestLogID}] sending request`, formatRequestDetails({
217
+ retryOfRequestLogID,
218
+ method: options.method,
219
+ url,
220
+ options,
221
+ headers: req.headers,
222
+ }));
223
+ if (options.signal?.aborted) {
224
+ throw new Errors.APIUserAbortError();
225
+ }
226
+ const controller = new AbortController();
227
+ const response = await this.fetchWithTimeout(url, req, timeout, controller).catch(castToError);
228
+ const headersTime = Date.now();
229
+ if (response instanceof Error) {
230
+ const retryMessage = `retrying, ${retriesRemaining} attempts remaining`;
231
+ if (options.signal?.aborted) {
232
+ throw new Errors.APIUserAbortError();
233
+ }
234
+ // detect native connection timeout errors
235
+ // deno throws "TypeError: error sending request for url (https://example/): client error (Connect): tcp connect error: Operation timed out (os error 60): Operation timed out (os error 60)"
236
+ // undici throws "TypeError: fetch failed" with cause "ConnectTimeoutError: Connect Timeout Error (attempted address: example:443, timeout: 1ms)"
237
+ // others do not provide enough information to distinguish timeouts from other connection errors
238
+ const isTimeout = isAbortError(response) ||
239
+ /timed? ?out/i.test(String(response) + ('cause' in response ? String(response.cause) : ''));
240
+ if (retriesRemaining) {
241
+ loggerFor(this).info(`[${requestLogID}] connection ${isTimeout ? 'timed out' : 'failed'} - ${retryMessage}`);
242
+ loggerFor(this).debug(`[${requestLogID}] connection ${isTimeout ? 'timed out' : 'failed'} (${retryMessage})`, formatRequestDetails({
243
+ retryOfRequestLogID,
244
+ url,
245
+ durationMs: headersTime - startTime,
246
+ message: response.message,
247
+ }));
248
+ return this.retryRequest(options, retriesRemaining, retryOfRequestLogID ?? requestLogID);
249
+ }
250
+ loggerFor(this).info(`[${requestLogID}] connection ${isTimeout ? 'timed out' : 'failed'} - error; no more retries left`);
251
+ loggerFor(this).debug(`[${requestLogID}] connection ${isTimeout ? 'timed out' : 'failed'} (error; no more retries left)`, formatRequestDetails({
252
+ retryOfRequestLogID,
253
+ url,
254
+ durationMs: headersTime - startTime,
255
+ message: response.message,
256
+ }));
257
+ if (isTimeout) {
258
+ throw new Errors.APIConnectionTimeoutError();
259
+ }
260
+ throw new Errors.APIConnectionError({ cause: response });
261
+ }
262
+ const specialHeaders = [...response.headers.entries()]
263
+ .filter(([name]) => name === 'request-id')
264
+ .map(([name, value]) => ', ' + name + ': ' + JSON.stringify(value))
265
+ .join('');
266
+ const responseInfo = `[${requestLogID}${retryLogStr}${specialHeaders}] ${req.method} ${url} ${response.ok ? 'succeeded' : 'failed'} with status ${response.status} in ${headersTime - startTime}ms`;
267
+ if (!response.ok) {
268
+ const shouldRetry = this.shouldRetry(response);
269
+ if (retriesRemaining && shouldRetry) {
270
+ const retryMessage = `retrying, ${retriesRemaining} attempts remaining`;
271
+ // We don't need the body of this response.
272
+ await Shims.CancelReadableStream(response.body);
273
+ loggerFor(this).info(`${responseInfo} - ${retryMessage}`);
274
+ loggerFor(this).debug(`[${requestLogID}] response error (${retryMessage})`, formatRequestDetails({
275
+ retryOfRequestLogID,
276
+ url: response.url,
277
+ status: response.status,
278
+ headers: response.headers,
279
+ durationMs: headersTime - startTime,
280
+ }));
281
+ return this.retryRequest(options, retriesRemaining, retryOfRequestLogID ?? requestLogID, response.headers);
282
+ }
283
+ const retryMessage = shouldRetry ? `error; no more retries left` : `error; not retryable`;
284
+ loggerFor(this).info(`${responseInfo} - ${retryMessage}`);
285
+ const errText = await response.text().catch((err) => castToError(err).message);
286
+ const errJSON = safeJSON(errText);
287
+ const errMessage = errJSON ? undefined : errText;
288
+ loggerFor(this).debug(`[${requestLogID}] response error (${retryMessage})`, formatRequestDetails({
289
+ retryOfRequestLogID,
290
+ url: response.url,
291
+ status: response.status,
292
+ headers: response.headers,
293
+ message: errMessage,
294
+ durationMs: Date.now() - startTime,
295
+ }));
296
+ const err = this.makeStatusError(response.status, errJSON, errMessage, response.headers);
297
+ throw err;
298
+ }
299
+ loggerFor(this).info(responseInfo);
300
+ loggerFor(this).debug(`[${requestLogID}] response start`, formatRequestDetails({
301
+ retryOfRequestLogID,
302
+ url: response.url,
303
+ status: response.status,
304
+ headers: response.headers,
305
+ durationMs: headersTime - startTime,
306
+ }));
307
+ return { response, options, controller, requestLogID, retryOfRequestLogID, startTime };
308
+ }
309
+ getAPIList(path, Page, opts) {
310
+ return this.requestAPIList(Page, { method: 'get', path, ...opts });
311
+ }
312
+ requestAPIList(Page, options) {
313
+ const request = this.makeRequest(options, null, undefined);
314
+ return new Pagination.PagePromise(this, request, Page);
315
+ }
316
+ async fetchWithTimeout(url, init, ms, controller) {
317
+ const { signal, method, ...options } = init || {};
318
+ if (signal)
319
+ signal.addEventListener('abort', () => controller.abort());
320
+ const timeout = setTimeout(() => controller.abort(), ms);
321
+ const isReadableBody = (globalThis.ReadableStream && options.body instanceof globalThis.ReadableStream) ||
322
+ (typeof options.body === 'object' && options.body !== null && Symbol.asyncIterator in options.body);
323
+ const fetchOptions = {
324
+ signal: controller.signal,
325
+ ...(isReadableBody ? { duplex: 'half' } : {}),
326
+ method: 'GET',
327
+ ...options,
328
+ };
329
+ if (method) {
330
+ // Custom methods like 'patch' need to be uppercased
331
+ // See https://github.com/nodejs/undici/issues/2294
332
+ fetchOptions.method = method.toUpperCase();
333
+ }
334
+ try {
335
+ // use undefined this binding; fetch errors if bound to something else in browser/cloudflare
336
+ return await this.fetch.call(undefined, url, fetchOptions);
337
+ }
338
+ finally {
339
+ clearTimeout(timeout);
340
+ }
341
+ }
342
+ shouldRetry(response) {
343
+ // Note this is not a standard header.
344
+ const shouldRetryHeader = response.headers.get('x-should-retry');
345
+ // If the server explicitly says whether or not to retry, obey.
346
+ if (shouldRetryHeader === 'true')
347
+ return true;
348
+ if (shouldRetryHeader === 'false')
349
+ return false;
350
+ // Retry on request timeouts.
351
+ if (response.status === 408)
352
+ return true;
353
+ // Retry on lock timeouts.
354
+ if (response.status === 409)
355
+ return true;
356
+ // Retry on rate limits.
357
+ if (response.status === 429)
358
+ return true;
359
+ // Retry internal errors.
360
+ if (response.status >= 500)
361
+ return true;
362
+ return false;
363
+ }
364
+ async retryRequest(options, retriesRemaining, requestLogID, responseHeaders) {
365
+ let timeoutMillis;
366
+ // Note the `retry-after-ms` header may not be standard, but is a good idea and we'd like proactive support for it.
367
+ const retryAfterMillisHeader = responseHeaders?.get('retry-after-ms');
368
+ if (retryAfterMillisHeader) {
369
+ const timeoutMs = parseFloat(retryAfterMillisHeader);
370
+ if (!Number.isNaN(timeoutMs)) {
371
+ timeoutMillis = timeoutMs;
372
+ }
373
+ }
374
+ // About the Retry-After header: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Retry-After
375
+ const retryAfterHeader = responseHeaders?.get('retry-after');
376
+ if (retryAfterHeader && !timeoutMillis) {
377
+ const timeoutSeconds = parseFloat(retryAfterHeader);
378
+ if (!Number.isNaN(timeoutSeconds)) {
379
+ timeoutMillis = timeoutSeconds * 1000;
380
+ }
381
+ else {
382
+ timeoutMillis = Date.parse(retryAfterHeader) - Date.now();
383
+ }
384
+ }
385
+ // If the API asks us to wait a certain amount of time (and it's a reasonable amount),
386
+ // just do what it says, but otherwise calculate a default
387
+ if (!(timeoutMillis && 0 <= timeoutMillis && timeoutMillis < 60 * 1000)) {
388
+ const maxRetries = options.maxRetries ?? this.maxRetries;
389
+ timeoutMillis = this.calculateDefaultRetryTimeoutMillis(retriesRemaining, maxRetries);
390
+ }
391
+ await sleep(timeoutMillis);
392
+ return this.makeRequest(options, retriesRemaining - 1, requestLogID);
393
+ }
394
+ calculateDefaultRetryTimeoutMillis(retriesRemaining, maxRetries) {
395
+ const initialRetryDelay = 0.5;
396
+ const maxRetryDelay = 8.0;
397
+ const numRetries = maxRetries - retriesRemaining;
398
+ // Apply exponential backoff, but not more than the max.
399
+ const sleepSeconds = Math.min(initialRetryDelay * Math.pow(2, numRetries), maxRetryDelay);
400
+ // Apply some jitter, take up to at most 25 percent of the retry time.
401
+ const jitter = 1 - Math.random() * 0.25;
402
+ return sleepSeconds * jitter * 1000;
403
+ }
404
+ calculateNonstreamingTimeout(maxTokens, maxNonstreamingTokens) {
405
+ const maxTime = 60 * 60 * 1000; // 10 minutes
406
+ const defaultTime = 60 * 10 * 1000; // 10 minutes
407
+ const expectedTime = (maxTime * maxTokens) / 128000;
408
+ if (expectedTime > defaultTime || (maxNonstreamingTokens != null && maxTokens > maxNonstreamingTokens)) {
409
+ throw new Errors.AnthropicError('Streaming is strongly recommended for operations that may token longer than 10 minutes. See https://github.com/anthropics/anthropic-sdk-typescript#long-requests for more details');
410
+ }
411
+ return defaultTime;
412
+ }
413
+ buildRequest(inputOptions, { retryCount = 0 } = {}) {
414
+ const options = { ...inputOptions };
415
+ const { method, path, query } = options;
416
+ const url = this.buildURL(path, query);
417
+ if ('timeout' in options)
418
+ validatePositiveInteger('timeout', options.timeout);
419
+ options.timeout = options.timeout ?? this.timeout;
420
+ const { bodyHeaders, body } = this.buildBody({ options });
421
+ const reqHeaders = this.buildHeaders({ options: inputOptions, method, bodyHeaders, retryCount });
422
+ const req = {
423
+ method,
424
+ headers: reqHeaders,
425
+ ...(options.signal && { signal: options.signal }),
426
+ ...(globalThis.ReadableStream &&
427
+ body instanceof globalThis.ReadableStream && { duplex: 'half' }),
428
+ ...(body && { body }),
429
+ ...(this.fetchOptions ?? {}),
430
+ ...(options.fetchOptions ?? {}),
431
+ };
432
+ return { req, url, timeout: options.timeout };
433
+ }
434
+ buildHeaders({ options, method, bodyHeaders, retryCount, }) {
435
+ let idempotencyHeaders = {};
436
+ if (this.idempotencyHeader && method !== 'get') {
437
+ if (!options.idempotencyKey)
438
+ options.idempotencyKey = this.defaultIdempotencyKey();
439
+ idempotencyHeaders[this.idempotencyHeader] = options.idempotencyKey;
440
+ }
441
+ const headers = buildHeaders([
442
+ idempotencyHeaders,
443
+ {
444
+ Accept: 'application/json',
445
+ 'User-Agent': this.getUserAgent(),
446
+ 'X-Stainless-Retry-Count': String(retryCount),
447
+ ...(options.timeout ? { 'X-Stainless-Timeout': String(Math.trunc(options.timeout / 1000)) } : {}),
448
+ ...getPlatformHeaders(),
449
+ ...(this._options.dangerouslyAllowBrowser ?
450
+ { 'anthropic-dangerous-direct-browser-access': 'true' }
451
+ : undefined),
452
+ 'anthropic-version': '2023-06-01',
453
+ },
454
+ this.authHeaders(options),
455
+ this._options.defaultHeaders,
456
+ bodyHeaders,
457
+ options.headers,
458
+ ]);
459
+ this.validateHeaders(headers);
460
+ return headers.values;
461
+ }
462
+ buildBody({ options: { body, headers: rawHeaders } }) {
463
+ if (!body) {
464
+ return { bodyHeaders: undefined, body: undefined };
465
+ }
466
+ const headers = buildHeaders([rawHeaders]);
467
+ if (
468
+ // Pass raw type verbatim
469
+ ArrayBuffer.isView(body) ||
470
+ body instanceof ArrayBuffer ||
471
+ body instanceof DataView ||
472
+ (typeof body === 'string' &&
473
+ // Preserve legacy string encoding behavior for now
474
+ headers.values.has('content-type')) ||
475
+ // `Blob` is superset of `File`
476
+ body instanceof Blob ||
477
+ // `FormData` -> `multipart/form-data`
478
+ body instanceof FormData ||
479
+ // `URLSearchParams` -> `application/x-www-form-urlencoded`
480
+ body instanceof URLSearchParams ||
481
+ // Send chunked stream (each chunk has own `length`)
482
+ (globalThis.ReadableStream && body instanceof globalThis.ReadableStream)) {
483
+ return { bodyHeaders: undefined, body: body };
484
+ }
485
+ else if (typeof body === 'object' &&
486
+ (Symbol.asyncIterator in body ||
487
+ (Symbol.iterator in body && 'next' in body && typeof body.next === 'function'))) {
488
+ return { bodyHeaders: undefined, body: Shims.ReadableStreamFrom(body) };
489
+ }
490
+ else {
491
+ return __classPrivateFieldGet(this, _BaseAnthropic_encoder, "f").call(this, { body, headers });
492
+ }
493
+ }
494
+ }
495
+ _a = BaseAnthropic, _BaseAnthropic_encoder = new WeakMap();
496
+ BaseAnthropic.Anthropic = _a;
497
+ BaseAnthropic.HUMAN_PROMPT = '\n\nHuman:';
498
+ BaseAnthropic.AI_PROMPT = '\n\nAssistant:';
499
+ BaseAnthropic.DEFAULT_TIMEOUT = 600000; // 10 minutes
500
+ BaseAnthropic.AnthropicError = Errors.AnthropicError;
501
+ BaseAnthropic.APIError = Errors.APIError;
502
+ BaseAnthropic.APIConnectionError = Errors.APIConnectionError;
503
+ BaseAnthropic.APIConnectionTimeoutError = Errors.APIConnectionTimeoutError;
504
+ BaseAnthropic.APIUserAbortError = Errors.APIUserAbortError;
505
+ BaseAnthropic.NotFoundError = Errors.NotFoundError;
506
+ BaseAnthropic.ConflictError = Errors.ConflictError;
507
+ BaseAnthropic.RateLimitError = Errors.RateLimitError;
508
+ BaseAnthropic.BadRequestError = Errors.BadRequestError;
509
+ BaseAnthropic.AuthenticationError = Errors.AuthenticationError;
510
+ BaseAnthropic.InternalServerError = Errors.InternalServerError;
511
+ BaseAnthropic.PermissionDeniedError = Errors.PermissionDeniedError;
512
+ BaseAnthropic.UnprocessableEntityError = Errors.UnprocessableEntityError;
513
+ BaseAnthropic.toFile = Uploads.toFile;
514
+ /**
515
+ * API Client for interfacing with the Anthropic API.
516
+ */
517
+ export class Anthropic extends BaseAnthropic {
518
+ constructor() {
519
+ super(...arguments);
520
+ this.completions = new API.Completions(this);
521
+ this.messages = new API.Messages(this);
522
+ this.models = new API.Models(this);
523
+ this.beta = new API.Beta(this);
524
+ }
525
+ }
526
+ Anthropic.Completions = Completions;
527
+ Anthropic.Messages = Messages;
528
+ Anthropic.Models = Models;
529
+ Anthropic.Beta = Beta;
530
+ export const { HUMAN_PROMPT, AI_PROMPT } = Anthropic;
531
+ //# sourceMappingURL=client.mjs.map
platform/aiml/elizabeth/e-1-first_session/claude-code-router/node_modules/@anthropic-ai/sdk/client.mjs.map ADDED
@@ -0,0 +1 @@
 
 
1
+ {"version":3,"file":"client.mjs","sourceRoot":"","sources":["src/client.ts"],"names":[],"mappings":"AAAA,sFAAsF;;;OAI/E,EAAE,KAAK,EAAE;OACT,EAAE,uBAAuB,EAAE,aAAa,EAAE,QAAQ,EAAE;OACpD,EAAE,KAAK,EAAE;OACT,EAA8B,aAAa,EAAE;OAE7C,EAAE,WAAW,EAAE,YAAY,EAAE;OAE7B,EAAE,kBAAkB,EAAE;OACtB,KAAK,KAAK;OACV,KAAK,IAAI;OACT,EAAE,OAAO,EAAE;OACX,KAAK,MAAM;OACX,KAAK,UAAU;OAEf,KAAK,OAAO;O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C;QAChD,WAAM,GAAe,IAAI,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;QAC1C,SAAI,GAAa,IAAI,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACtC,CAAC;CAAA;AACD,SAAS,CAAC,WAAW,GAAG,WAAW,CAAC;AACpC,SAAS,CAAC,QAAQ,GAAG,QAAQ,CAAC;AAC9B,SAAS,CAAC,MAAM,GAAG,MAAM,CAAC;AAC1B,SAAS,CAAC,IAAI,GAAG,IAAI,CAAC;AAiJtB,MAAM,CAAC,MAAM,EAAE,YAAY,EAAE,SAAS,EAAE,GAAG,SAAS,CAAC"}
platform/aiml/elizabeth/e-1-first_session/claude-code-router/node_modules/@anthropic-ai/sdk/error.d.mts ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ export * from "./core/error.mjs";
2
+ //# sourceMappingURL=error.d.mts.map
platform/aiml/elizabeth/e-1-first_session/claude-code-router/node_modules/@anthropic-ai/sdk/error.d.mts.map ADDED
@@ -0,0 +1 @@
 
 
1
+ {"version":3,"file":"error.d.mts","sourceRoot":"","sources":["src/error.ts"],"names":[],"mappings":""}
platform/aiml/elizabeth/e-1-first_session/claude-code-router/node_modules/@anthropic-ai/sdk/error.d.ts ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ export * from "./core/error.js";
2
+ //# sourceMappingURL=error.d.ts.map
platform/aiml/elizabeth/e-1-first_session/claude-code-router/node_modules/@anthropic-ai/sdk/error.d.ts.map ADDED
@@ -0,0 +1 @@
 
 
1
+ {"version":3,"file":"error.d.ts","sourceRoot":"","sources":["src/error.ts"],"names":[],"mappings":""}
platform/aiml/elizabeth/e-1-first_session/claude-code-router/node_modules/@anthropic-ai/sdk/error.js ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("./internal/tslib.js");
4
+ /** @deprecated Import from ./core/error instead */
5
+ tslib_1.__exportStar(require("./core/error.js"), exports);
6
+ //# sourceMappingURL=error.js.map
platform/aiml/elizabeth/e-1-first_session/claude-code-router/node_modules/@anthropic-ai/sdk/error.js.map ADDED
@@ -0,0 +1 @@
 
 
1
+ {"version":3,"file":"error.js","sourceRoot":"","sources":["src/error.ts"],"names":[],"mappings":";;;AAAA,mDAAmD;AACnD,0DAA6B"}
platform/aiml/elizabeth/e-1-first_session/claude-code-router/node_modules/@anthropic-ai/sdk/error.mjs ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ export * from "./core/error.mjs";
2
+ //# sourceMappingURL=error.mjs.map
platform/aiml/elizabeth/e-1-first_session/claude-code-router/node_modules/@anthropic-ai/sdk/error.mjs.map ADDED
@@ -0,0 +1 @@
 
 
1
+ {"version":3,"file":"error.mjs","sourceRoot":"","sources":["src/error.ts"],"names":[],"mappings":""}
platform/aiml/elizabeth/e-1-first_session/claude-code-router/node_modules/@anthropic-ai/sdk/index.d.mts ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ export { Anthropic as default } from "./client.mjs";
2
+ export { type Uploadable, toFile } from "./core/uploads.mjs";
3
+ export { APIPromise } from "./core/api-promise.mjs";
4
+ export { BaseAnthropic, Anthropic, type ClientOptions, HUMAN_PROMPT, AI_PROMPT } from "./client.mjs";
5
+ export { PagePromise } from "./core/pagination.mjs";
6
+ export { AnthropicError, APIError, APIConnectionError, APIConnectionTimeoutError, APIUserAbortError, NotFoundError, ConflictError, RateLimitError, BadRequestError, AuthenticationError, InternalServerError, PermissionDeniedError, UnprocessableEntityError, } from "./core/error.mjs";
7
+ //# sourceMappingURL=index.d.mts.map
platform/aiml/elizabeth/e-1-first_session/claude-code-router/node_modules/@anthropic-ai/sdk/index.d.mts.map ADDED
@@ -0,0 +1 @@
 
 
1
+ {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["src/index.ts"],"names":[],"mappings":"OAEO,EAAE,SAAS,IAAI,OAAO,EAAE;OAExB,EAAE,KAAK,UAAU,EAAE,MAAM,EAAE;OAC3B,EAAE,UAAU,EAAE;OACd,EAAE,aAAa,EAAE,SAAS,EAAE,KAAK,aAAa,EAAE,YAAY,EAAE,SAAS,EAAE;OACzE,EAAE,WAAW,EAAE;OACf,EACL,cAAc,EACd,QAAQ,EACR,kBAAkB,EAClB,yBAAyB,EACzB,iBAAiB,EACjB,aAAa,EACb,aAAa,EACb,cAAc,EACd,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACrB,wBAAwB,GACzB"}
platform/aiml/elizabeth/e-1-first_session/claude-code-router/node_modules/@anthropic-ai/sdk/index.d.ts ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ export { Anthropic as default } from "./client.js";
2
+ export { type Uploadable, toFile } from "./core/uploads.js";
3
+ export { APIPromise } from "./core/api-promise.js";
4
+ export { BaseAnthropic, Anthropic, type ClientOptions, HUMAN_PROMPT, AI_PROMPT } from "./client.js";
5
+ export { PagePromise } from "./core/pagination.js";
6
+ export { AnthropicError, APIError, APIConnectionError, APIConnectionTimeoutError, APIUserAbortError, NotFoundError, ConflictError, RateLimitError, BadRequestError, AuthenticationError, InternalServerError, PermissionDeniedError, UnprocessableEntityError, } from "./core/error.js";
7
+ //# sourceMappingURL=index.d.ts.map
platform/aiml/elizabeth/e-1-first_session/claude-code-router/node_modules/@anthropic-ai/sdk/index.d.ts.map ADDED
@@ -0,0 +1 @@
 
 
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["src/index.ts"],"names":[],"mappings":"OAEO,EAAE,SAAS,IAAI,OAAO,EAAE;OAExB,EAAE,KAAK,UAAU,EAAE,MAAM,EAAE;OAC3B,EAAE,UAAU,EAAE;OACd,EAAE,aAAa,EAAE,SAAS,EAAE,KAAK,aAAa,EAAE,YAAY,EAAE,SAAS,EAAE;OACzE,EAAE,WAAW,EAAE;OACf,EACL,cAAc,EACd,QAAQ,EACR,kBAAkB,EAClB,yBAAyB,EACzB,iBAAiB,EACjB,aAAa,EACb,aAAa,EACb,cAAc,EACd,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACrB,wBAAwB,GACzB"}
platform/aiml/elizabeth/e-1-first_session/claude-code-router/node_modules/@anthropic-ai/sdk/index.js ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ "use strict";
2
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
+ exports = module.exports = function (...args) {
4
+ return new exports.default(...args)
5
+ }
6
+ Object.defineProperty(exports, "__esModule", { value: true });
7
+ 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.AnthropicError = exports.PagePromise = exports.AI_PROMPT = exports.HUMAN_PROMPT = exports.Anthropic = exports.BaseAnthropic = exports.APIPromise = exports.toFile = exports.default = void 0;
8
+ var client_1 = require("./client.js");
9
+ Object.defineProperty(exports, "default", { enumerable: true, get: function () { return client_1.Anthropic; } });
10
+ var uploads_1 = require("./core/uploads.js");
11
+ Object.defineProperty(exports, "toFile", { enumerable: true, get: function () { return uploads_1.toFile; } });
12
+ var api_promise_1 = require("./core/api-promise.js");
13
+ Object.defineProperty(exports, "APIPromise", { enumerable: true, get: function () { return api_promise_1.APIPromise; } });
14
+ var client_2 = require("./client.js");
15
+ Object.defineProperty(exports, "BaseAnthropic", { enumerable: true, get: function () { return client_2.BaseAnthropic; } });
16
+ Object.defineProperty(exports, "Anthropic", { enumerable: true, get: function () { return client_2.Anthropic; } });
17
+ Object.defineProperty(exports, "HUMAN_PROMPT", { enumerable: true, get: function () { return client_2.HUMAN_PROMPT; } });
18
+ Object.defineProperty(exports, "AI_PROMPT", { enumerable: true, get: function () { return client_2.AI_PROMPT; } });
19
+ var pagination_1 = require("./core/pagination.js");
20
+ Object.defineProperty(exports, "PagePromise", { enumerable: true, get: function () { return pagination_1.PagePromise; } });
21
+ var error_1 = require("./core/error.js");
22
+ Object.defineProperty(exports, "AnthropicError", { enumerable: true, get: function () { return error_1.AnthropicError; } });
23
+ Object.defineProperty(exports, "APIError", { enumerable: true, get: function () { return error_1.APIError; } });
24
+ Object.defineProperty(exports, "APIConnectionError", { enumerable: true, get: function () { return error_1.APIConnectionError; } });
25
+ Object.defineProperty(exports, "APIConnectionTimeoutError", { enumerable: true, get: function () { return error_1.APIConnectionTimeoutError; } });
26
+ Object.defineProperty(exports, "APIUserAbortError", { enumerable: true, get: function () { return error_1.APIUserAbortError; } });
27
+ Object.defineProperty(exports, "NotFoundError", { enumerable: true, get: function () { return error_1.NotFoundError; } });
28
+ Object.defineProperty(exports, "ConflictError", { enumerable: true, get: function () { return error_1.ConflictError; } });
29
+ Object.defineProperty(exports, "RateLimitError", { enumerable: true, get: function () { return error_1.RateLimitError; } });
30
+ Object.defineProperty(exports, "BadRequestError", { enumerable: true, get: function () { return error_1.BadRequestError; } });
31
+ Object.defineProperty(exports, "AuthenticationError", { enumerable: true, get: function () { return error_1.AuthenticationError; } });
32
+ Object.defineProperty(exports, "InternalServerError", { enumerable: true, get: function () { return error_1.InternalServerError; } });
33
+ Object.defineProperty(exports, "PermissionDeniedError", { enumerable: true, get: function () { return error_1.PermissionDeniedError; } });
34
+ Object.defineProperty(exports, "UnprocessableEntityError", { enumerable: true, get: function () { return error_1.UnprocessableEntityError; } });
35
+ //# sourceMappingURL=index.js.map
platform/aiml/elizabeth/e-1-first_session/claude-code-router/node_modules/@anthropic-ai/sdk/index.js.map ADDED
@@ -0,0 +1 @@
 
 
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["src/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,sCAAgD;AAAvC,iGAAA,SAAS,OAAW;AAE7B,6CAAyD;AAA/B,iGAAA,MAAM,OAAA;AAChC,qDAAgD;AAAvC,yGAAA,UAAU,OAAA;AACnB,sCAAiG;AAAxF,uGAAA,aAAa,OAAA;AAAE,mGAAA,SAAS,OAAA;AAAsB,sGAAA,YAAY,OAAA;AAAE,mGAAA,SAAS,OAAA;AAC9E,mDAAgD;AAAvC,yGAAA,WAAW,OAAA;AACpB,yCAcsB;AAbpB,uGAAA,cAAc,OAAA;AACd,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"}
platform/aiml/elizabeth/e-1-first_session/claude-code-router/node_modules/@anthropic-ai/sdk/index.mjs ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ export { Anthropic as default } from "./client.mjs";
3
+ export { toFile } from "./core/uploads.mjs";
4
+ export { APIPromise } from "./core/api-promise.mjs";
5
+ export { BaseAnthropic, Anthropic, HUMAN_PROMPT, AI_PROMPT } from "./client.mjs";
6
+ export { PagePromise } from "./core/pagination.mjs";
7
+ export { AnthropicError, APIError, APIConnectionError, APIConnectionTimeoutError, APIUserAbortError, NotFoundError, ConflictError, RateLimitError, BadRequestError, AuthenticationError, InternalServerError, PermissionDeniedError, UnprocessableEntityError, } from "./core/error.mjs";
8
+ //# sourceMappingURL=index.mjs.map
platform/aiml/elizabeth/e-1-first_session/claude-code-router/node_modules/@anthropic-ai/sdk/index.mjs.map ADDED
@@ -0,0 +1 @@
 
 
1
+ {"version":3,"file":"index.mjs","sourceRoot":"","sources":["src/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,SAAS,IAAI,OAAO,EAAE;OAExB,EAAmB,MAAM,EAAE;OAC3B,EAAE,UAAU,EAAE;OACd,EAAE,aAAa,EAAE,SAAS,EAAsB,YAAY,EAAE,SAAS,EAAE;OACzE,EAAE,WAAW,EAAE;OACf,EACL,cAAc,EACd,QAAQ,EACR,kBAAkB,EAClB,yBAAyB,EACzB,iBAAiB,EACjB,aAAa,EACb,aAAa,EACb,cAAc,EACd,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACrB,wBAAwB,GACzB"}
platform/aiml/elizabeth/e-1-first_session/claude-code-router/node_modules/@anthropic-ai/sdk/package.json ADDED
@@ -0,0 +1,182 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "@anthropic-ai/sdk",
3
+ "version": "0.54.0",
4
+ "description": "The official TypeScript library for the Anthropic API",
5
+ "author": "Anthropic <support@anthropic.com>",
6
+ "types": "./index.d.ts",
7
+ "main": "./index.js",
8
+ "type": "commonjs",
9
+ "repository": "github:anthropics/anthropic-sdk-typescript",
10
+ "license": "MIT",
11
+ "packageManager": "yarn@1.22.22",
12
+ "files": [
13
+ "**/*"
14
+ ],
15
+ "private": false,
16
+ "scripts": {
17
+ "test": "./scripts/test",
18
+ "build": "./scripts/build-all",
19
+ "format": "./scripts/format",
20
+ "tsn": "ts-node -r tsconfig-paths/register",
21
+ "lint": "./scripts/lint",
22
+ "fix": "./scripts/format"
23
+ },
24
+ "dependencies": {},
25
+ "imports": {
26
+ "@anthropic-ai/sdk": ".",
27
+ "@anthropic-ai/sdk/*": "./src/*"
28
+ },
29
+ "bin": {
30
+ "anthropic-ai-sdk": "bin/cli"
31
+ },
32
+ "exports": {
33
+ ".": {
34
+ "require": {
35
+ "types": "./index.d.ts",
36
+ "default": "./index.js"
37
+ },
38
+ "types": "./index.d.mts",
39
+ "default": "./index.mjs"
40
+ },
41
+ "./_vendor/*.mjs": {
42
+ "default": "./_vendor/*.mjs"
43
+ },
44
+ "./_vendor/*.js": {
45
+ "default": "./_vendor/*.js"
46
+ },
47
+ "./_vendor/*": {
48
+ "import": "./_vendor/*.mjs",
49
+ "require": "./_vendor/*.js"
50
+ },
51
+ "./api-promise": {
52
+ "import": "./api-promise.mjs",
53
+ "require": "./api-promise.js"
54
+ },
55
+ "./api-promise.js": {
56
+ "default": "./api-promise.js"
57
+ },
58
+ "./api-promise.mjs": {
59
+ "default": "./api-promise.mjs"
60
+ },
61
+ "./client": {
62
+ "import": "./client.mjs",
63
+ "require": "./client.js"
64
+ },
65
+ "./client.js": {
66
+ "default": "./client.js"
67
+ },
68
+ "./client.mjs": {
69
+ "default": "./client.mjs"
70
+ },
71
+ "./core/*.mjs": {
72
+ "default": "./core/*.mjs"
73
+ },
74
+ "./core/*.js": {
75
+ "default": "./core/*.js"
76
+ },
77
+ "./core/*": {
78
+ "import": "./core/*.mjs",
79
+ "require": "./core/*.js"
80
+ },
81
+ "./error": {
82
+ "import": "./error.mjs",
83
+ "require": "./error.js"
84
+ },
85
+ "./error.js": {
86
+ "default": "./error.js"
87
+ },
88
+ "./error.mjs": {
89
+ "default": "./error.mjs"
90
+ },
91
+ "./index": {
92
+ "import": "./index.mjs",
93
+ "require": "./index.js"
94
+ },
95
+ "./index.js": {
96
+ "default": "./index.js"
97
+ },
98
+ "./index.mjs": {
99
+ "default": "./index.mjs"
100
+ },
101
+ "./lib/*.mjs": {
102
+ "default": "./lib/*.mjs"
103
+ },
104
+ "./lib/*.js": {
105
+ "default": "./lib/*.js"
106
+ },
107
+ "./lib/*": {
108
+ "import": "./lib/*.mjs",
109
+ "require": "./lib/*.js"
110
+ },
111
+ "./pagination": {
112
+ "import": "./pagination.mjs",
113
+ "require": "./pagination.js"
114
+ },
115
+ "./pagination.js": {
116
+ "default": "./pagination.js"
117
+ },
118
+ "./pagination.mjs": {
119
+ "default": "./pagination.mjs"
120
+ },
121
+ "./resource": {
122
+ "import": "./resource.mjs",
123
+ "require": "./resource.js"
124
+ },
125
+ "./resource.js": {
126
+ "default": "./resource.js"
127
+ },
128
+ "./resource.mjs": {
129
+ "default": "./resource.mjs"
130
+ },
131
+ "./resources/*.mjs": {
132
+ "default": "./resources/*.mjs"
133
+ },
134
+ "./resources/*.js": {
135
+ "default": "./resources/*.js"
136
+ },
137
+ "./resources/*": {
138
+ "import": "./resources/*.mjs",
139
+ "require": "./resources/*.js"
140
+ },
141
+ "./resources": {
142
+ "import": "./resources.mjs",
143
+ "require": "./resources.js"
144
+ },
145
+ "./resources.js": {
146
+ "default": "./resources.js"
147
+ },
148
+ "./resources.mjs": {
149
+ "default": "./resources.mjs"
150
+ },
151
+ "./streaming": {
152
+ "import": "./streaming.mjs",
153
+ "require": "./streaming.js"
154
+ },
155
+ "./streaming.js": {
156
+ "default": "./streaming.js"
157
+ },
158
+ "./streaming.mjs": {
159
+ "default": "./streaming.mjs"
160
+ },
161
+ "./uploads": {
162
+ "import": "./uploads.mjs",
163
+ "require": "./uploads.js"
164
+ },
165
+ "./uploads.js": {
166
+ "default": "./uploads.js"
167
+ },
168
+ "./uploads.mjs": {
169
+ "default": "./uploads.mjs"
170
+ },
171
+ "./version": {
172
+ "import": "./version.mjs",
173
+ "require": "./version.js"
174
+ },
175
+ "./version.js": {
176
+ "default": "./version.js"
177
+ },
178
+ "./version.mjs": {
179
+ "default": "./version.mjs"
180
+ }
181
+ }
182
+ }
platform/aiml/elizabeth/e-1-first_session/claude-code-router/node_modules/@anthropic-ai/sdk/pagination.d.mts ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ export * from "./core/pagination.mjs";
2
+ //# sourceMappingURL=pagination.d.mts.map
platform/aiml/elizabeth/e-1-first_session/claude-code-router/node_modules/@anthropic-ai/sdk/pagination.d.mts.map ADDED
@@ -0,0 +1 @@
 
 
1
+ {"version":3,"file":"pagination.d.mts","sourceRoot":"","sources":["src/pagination.ts"],"names":[],"mappings":""}
platform/aiml/elizabeth/e-1-first_session/claude-code-router/node_modules/@anthropic-ai/sdk/pagination.d.ts ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ export * from "./core/pagination.js";
2
+ //# sourceMappingURL=pagination.d.ts.map
platform/aiml/elizabeth/e-1-first_session/claude-code-router/node_modules/@anthropic-ai/sdk/pagination.js ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("./internal/tslib.js");
4
+ /** @deprecated Import from ./core/pagination instead */
5
+ tslib_1.__exportStar(require("./core/pagination.js"), exports);
6
+ //# sourceMappingURL=pagination.js.map
platform/aiml/elizabeth/e-1-first_session/claude-code-router/node_modules/@anthropic-ai/sdk/pagination.mjs ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ export * from "./core/pagination.mjs";
2
+ //# sourceMappingURL=pagination.mjs.map
platform/aiml/elizabeth/e-1-first_session/claude-code-router/node_modules/@anthropic-ai/sdk/pagination.mjs.map ADDED
@@ -0,0 +1 @@
 
 
1
+ {"version":3,"file":"pagination.mjs","sourceRoot":"","sources":["src/pagination.ts"],"names":[],"mappings":""}
platform/aiml/elizabeth/e-1-first_session/claude-code-router/node_modules/@anthropic-ai/sdk/resource.d.mts ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ export * from "./core/resource.mjs";
2
+ //# sourceMappingURL=resource.d.mts.map
platform/aiml/elizabeth/e-1-first_session/claude-code-router/node_modules/@anthropic-ai/sdk/resource.d.mts.map ADDED
@@ -0,0 +1 @@
 
 
1
+ {"version":3,"file":"resource.d.mts","sourceRoot":"","sources":["src/resource.ts"],"names":[],"mappings":""}
platform/aiml/elizabeth/e-1-first_session/claude-code-router/node_modules/@anthropic-ai/sdk/resource.js ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("./internal/tslib.js");
4
+ /** @deprecated Import from ./core/resource instead */
5
+ tslib_1.__exportStar(require("./core/resource.js"), exports);
6
+ //# sourceMappingURL=resource.js.map
platform/aiml/elizabeth/e-1-first_session/claude-code-router/node_modules/@anthropic-ai/sdk/resource.mjs ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ export * from "./core/resource.mjs";
2
+ //# sourceMappingURL=resource.mjs.map
platform/aiml/elizabeth/e-1-first_session/claude-code-router/node_modules/@anthropic-ai/sdk/resource.mjs.map ADDED
@@ -0,0 +1 @@
 
 
1
+ {"version":3,"file":"resource.mjs","sourceRoot":"","sources":["src/resource.ts"],"names":[],"mappings":""}
platform/aiml/elizabeth/e-1-first_session/claude-code-router/node_modules/@anthropic-ai/sdk/resources.d.mts ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ export * from "./resources/index.mjs";
2
+ //# sourceMappingURL=resources.d.mts.map
platform/aiml/elizabeth/e-1-first_session/claude-code-router/node_modules/@anthropic-ai/sdk/resources.d.mts.map ADDED
@@ -0,0 +1 @@
 
 
1
+ {"version":3,"file":"resources.d.mts","sourceRoot":"","sources":["src/resources.ts"],"names":[],"mappings":""}
platform/aiml/elizabeth/e-1-first_session/claude-code-router/node_modules/@anthropic-ai/sdk/resources.d.ts ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ export * from "./resources/index.js";
2
+ //# sourceMappingURL=resources.d.ts.map