@anthropic-ai/sdk 0.121.0 → 0.122.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +29 -0
- package/README.md +1 -1
- package/core/middleware.d.mts.map +1 -1
- package/core/middleware.d.ts.map +1 -1
- package/core/middleware.js +4 -4
- package/core/middleware.js.map +1 -1
- package/core/middleware.mjs +4 -4
- package/core/middleware.mjs.map +1 -1
- package/internal/errors.d.mts.map +1 -1
- package/internal/errors.d.ts.map +1 -1
- package/internal/errors.js +3 -1
- package/internal/errors.js.map +1 -1
- package/internal/errors.mjs +3 -1
- package/internal/errors.mjs.map +1 -1
- package/internal/parse.js +1 -1
- package/internal/parse.js.map +1 -1
- package/internal/parse.mjs +1 -1
- package/internal/parse.mjs.map +1 -1
- package/internal/uploads.js +10 -6
- package/internal/uploads.js.map +1 -1
- package/internal/uploads.mjs +10 -6
- package/internal/uploads.mjs.map +1 -1
- package/lib/sessions/accumulate.d.mts +3 -2
- package/lib/sessions/accumulate.d.mts.map +1 -1
- package/lib/sessions/accumulate.d.ts +3 -2
- package/lib/sessions/accumulate.d.ts.map +1 -1
- package/lib/sessions/accumulate.js +3 -45
- package/lib/sessions/accumulate.js.map +1 -1
- package/lib/sessions/accumulate.mjs +3 -45
- package/lib/sessions/accumulate.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/beta/beta.d.mts +6 -6
- package/resources/beta/beta.d.mts.map +1 -1
- package/resources/beta/beta.d.ts +6 -6
- package/resources/beta/beta.d.ts.map +1 -1
- package/resources/beta/beta.js.map +1 -1
- package/resources/beta/beta.mjs.map +1 -1
- package/resources/beta/files.d.mts +25 -5
- package/resources/beta/files.d.mts.map +1 -1
- package/resources/beta/files.d.ts +25 -5
- package/resources/beta/files.d.ts.map +1 -1
- package/resources/beta/files.js +6 -6
- package/resources/beta/files.js.map +1 -1
- package/resources/beta/files.mjs +7 -7
- package/resources/beta/files.mjs.map +1 -1
- package/resources/beta/index.d.mts +3 -3
- package/resources/beta/index.d.mts.map +1 -1
- package/resources/beta/index.d.ts +3 -3
- package/resources/beta/index.d.ts.map +1 -1
- package/resources/beta/index.js.map +1 -1
- package/resources/beta/index.mjs.map +1 -1
- package/resources/beta/messages/index.d.mts +1 -1
- package/resources/beta/messages/index.d.mts.map +1 -1
- package/resources/beta/messages/index.d.ts +1 -1
- package/resources/beta/messages/index.d.ts.map +1 -1
- package/resources/beta/messages/messages.d.mts +19 -19
- package/resources/beta/messages/messages.d.mts.map +1 -1
- package/resources/beta/messages/messages.d.ts +19 -19
- package/resources/beta/messages/messages.d.ts.map +1 -1
- package/resources/beta/organization/rate-limits.d.mts +2 -3
- package/resources/beta/organization/rate-limits.d.mts.map +1 -1
- package/resources/beta/organization/rate-limits.d.ts +2 -3
- package/resources/beta/organization/rate-limits.d.ts.map +1 -1
- package/resources/beta/organization/rate-limits.js +2 -3
- package/resources/beta/organization/rate-limits.js.map +1 -1
- package/resources/beta/organization/rate-limits.mjs +2 -3
- package/resources/beta/organization/rate-limits.mjs.map +1 -1
- package/resources/beta/organization/workspaces/rate-limits.d.mts +2 -3
- package/resources/beta/organization/workspaces/rate-limits.d.mts.map +1 -1
- package/resources/beta/organization/workspaces/rate-limits.d.ts +2 -3
- package/resources/beta/organization/workspaces/rate-limits.d.ts.map +1 -1
- package/resources/beta/organization/workspaces/rate-limits.js +2 -3
- package/resources/beta/organization/workspaces/rate-limits.js.map +1 -1
- package/resources/beta/organization/workspaces/rate-limits.mjs +2 -3
- package/resources/beta/organization/workspaces/rate-limits.mjs.map +1 -1
- package/resources/beta/skills/index.d.mts +2 -2
- package/resources/beta/skills/index.d.mts.map +1 -1
- package/resources/beta/skills/index.d.ts +2 -2
- package/resources/beta/skills/index.d.ts.map +1 -1
- package/resources/beta/skills/index.js.map +1 -1
- package/resources/beta/skills/index.mjs.map +1 -1
- package/resources/beta/skills/skills.d.mts +48 -120
- package/resources/beta/skills/skills.d.mts.map +1 -1
- package/resources/beta/skills/skills.d.ts +48 -120
- package/resources/beta/skills/skills.d.ts.map +1 -1
- package/resources/beta/skills/skills.js +12 -8
- package/resources/beta/skills/skills.js.map +1 -1
- package/resources/beta/skills/skills.mjs +12 -8
- package/resources/beta/skills/skills.mjs.map +1 -1
- package/resources/beta/skills/versions.d.mts +35 -138
- package/resources/beta/skills/versions.d.mts.map +1 -1
- package/resources/beta/skills/versions.d.ts +35 -138
- package/resources/beta/skills/versions.d.ts.map +1 -1
- package/resources/beta/skills/versions.js +18 -18
- package/resources/beta/skills/versions.js.map +1 -1
- package/resources/beta/skills/versions.mjs +18 -18
- package/resources/beta/skills/versions.mjs.map +1 -1
- package/resources/beta/webhooks.d.mts +16 -17
- package/resources/beta/webhooks.d.mts.map +1 -1
- package/resources/beta/webhooks.d.ts +16 -17
- package/resources/beta/webhooks.d.ts.map +1 -1
- package/resources/beta/webhooks.js +21 -8
- package/resources/beta/webhooks.js.map +1 -1
- package/resources/beta/webhooks.mjs +21 -8
- package/resources/beta/webhooks.mjs.map +1 -1
- package/src/core/middleware.ts +4 -3
- package/src/internal/errors.ts +3 -1
- package/src/internal/parse.ts +1 -1
- package/src/internal/uploads.ts +10 -7
- package/src/lib/sessions/accumulate.ts +7 -47
- package/src/resources/beta/beta.ts +12 -14
- package/src/resources/beta/files.ts +34 -11
- package/src/resources/beta/index.ts +6 -7
- package/src/resources/beta/messages/index.ts +1 -1
- package/src/resources/beta/messages/messages.ts +22 -22
- package/src/resources/beta/organization/rate-limits.ts +2 -3
- package/src/resources/beta/organization/workspaces/rate-limits.ts +2 -3
- package/src/resources/beta/skills/index.ts +7 -10
- package/src/resources/beta/skills/skills.ts +60 -150
- package/src/resources/beta/skills/versions.ts +43 -166
- package/src/resources/beta/webhooks.ts +25 -29
- package/src/tools/agent-toolset/node.browser.ts +0 -4
- package/src/tools/agent-toolset/node.ts +118 -13
- package/src/tools/agent-toolset/skills.ts +5 -33
- package/src/version.ts +1 -1
- package/tools/agent-toolset/node.browser.d.mts +0 -1
- package/tools/agent-toolset/node.browser.d.mts.map +1 -1
- package/tools/agent-toolset/node.browser.d.ts +0 -1
- package/tools/agent-toolset/node.browser.d.ts.map +1 -1
- package/tools/agent-toolset/node.browser.js +0 -4
- package/tools/agent-toolset/node.browser.js.map +1 -1
- package/tools/agent-toolset/node.browser.mjs +0 -3
- package/tools/agent-toolset/node.browser.mjs.map +1 -1
- package/tools/agent-toolset/node.d.mts +9 -7
- package/tools/agent-toolset/node.d.mts.map +1 -1
- package/tools/agent-toolset/node.d.ts +9 -7
- package/tools/agent-toolset/node.d.ts.map +1 -1
- package/tools/agent-toolset/node.js +96 -8
- package/tools/agent-toolset/node.js.map +1 -1
- package/tools/agent-toolset/node.mjs +96 -7
- package/tools/agent-toolset/node.mjs.map +1 -1
- package/tools/agent-toolset/skills.d.mts +0 -8
- package/tools/agent-toolset/skills.d.mts.map +1 -1
- package/tools/agent-toolset/skills.d.ts +0 -8
- package/tools/agent-toolset/skills.d.ts.map +1 -1
- package/tools/agent-toolset/skills.js +5 -25
- package/tools/agent-toolset/skills.js.map +1 -1
- package/tools/agent-toolset/skills.mjs +5 -24
- package/tools/agent-toolset/skills.mjs.map +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -103,7 +103,7 @@ import * as FilesAPI from './files';
|
|
|
103
103
|
import {
|
|
104
104
|
BetaDeletedFile,
|
|
105
105
|
BetaFileMetadata,
|
|
106
|
-
|
|
106
|
+
BetaFileMetadataPageCursor,
|
|
107
107
|
BetaFileScope,
|
|
108
108
|
FileDeleteParams,
|
|
109
109
|
FileDownloadParams,
|
|
@@ -427,6 +427,7 @@ import {
|
|
|
427
427
|
BetaComputerZoomConfig,
|
|
428
428
|
BetaContainer,
|
|
429
429
|
BetaContainerParams,
|
|
430
|
+
BetaContainerSkill,
|
|
430
431
|
BetaContainerUploadBlock,
|
|
431
432
|
BetaContainerUploadBlockParam,
|
|
432
433
|
BetaContentBlock,
|
|
@@ -507,7 +508,6 @@ import {
|
|
|
507
508
|
BetaServerToolUseBlock,
|
|
508
509
|
BetaServerToolUseBlockParam,
|
|
509
510
|
BetaSignatureDelta,
|
|
510
|
-
BetaSkill,
|
|
511
511
|
BetaSkillParams,
|
|
512
512
|
BetaStopReason,
|
|
513
513
|
BetaTextBlock,
|
|
@@ -644,15 +644,14 @@ import {
|
|
|
644
644
|
} from './sessions/sessions';
|
|
645
645
|
import * as SkillsAPI from './skills/skills';
|
|
646
646
|
import {
|
|
647
|
+
BetaDeletedSkill,
|
|
648
|
+
BetaSkill,
|
|
649
|
+
BetaSkillSource,
|
|
650
|
+
BetaSkillsPageCursor,
|
|
647
651
|
SkillCreateParams,
|
|
648
|
-
SkillCreateResponse,
|
|
649
652
|
SkillDeleteParams,
|
|
650
|
-
SkillDeleteResponse,
|
|
651
653
|
SkillListParams,
|
|
652
|
-
SkillListResponse,
|
|
653
|
-
SkillListResponsesPageCursor,
|
|
654
654
|
SkillRetrieveParams,
|
|
655
|
-
SkillRetrieveResponse,
|
|
656
655
|
Skills,
|
|
657
656
|
} from './skills/skills';
|
|
658
657
|
import * as TunnelsAPI from './tunnels/tunnels';
|
|
@@ -1017,6 +1016,7 @@ export declare namespace Beta {
|
|
|
1017
1016
|
type BetaComputerZoomConfig as BetaComputerZoomConfig,
|
|
1018
1017
|
type BetaContainer as BetaContainer,
|
|
1019
1018
|
type BetaContainerParams as BetaContainerParams,
|
|
1019
|
+
type BetaContainerSkill as BetaContainerSkill,
|
|
1020
1020
|
type BetaContainerUploadBlock as BetaContainerUploadBlock,
|
|
1021
1021
|
type BetaContainerUploadBlockParam as BetaContainerUploadBlockParam,
|
|
1022
1022
|
type BetaContentBlock as BetaContentBlock,
|
|
@@ -1099,7 +1099,6 @@ export declare namespace Beta {
|
|
|
1099
1099
|
type BetaServerToolUseBlock as BetaServerToolUseBlock,
|
|
1100
1100
|
type BetaServerToolUseBlockParam as BetaServerToolUseBlockParam,
|
|
1101
1101
|
type BetaSignatureDelta as BetaSignatureDelta,
|
|
1102
|
-
type BetaSkill as BetaSkill,
|
|
1103
1102
|
type BetaSkillParams as BetaSkillParams,
|
|
1104
1103
|
type BetaStopReason as BetaStopReason,
|
|
1105
1104
|
type BetaTextBlock as BetaTextBlock,
|
|
@@ -1430,7 +1429,7 @@ export declare namespace Beta {
|
|
|
1430
1429
|
type BetaDeletedFile as BetaDeletedFile,
|
|
1431
1430
|
type BetaFileMetadata as BetaFileMetadata,
|
|
1432
1431
|
type BetaFileScope as BetaFileScope,
|
|
1433
|
-
type
|
|
1432
|
+
type BetaFileMetadataPageCursor as BetaFileMetadataPageCursor,
|
|
1434
1433
|
type FileListParams as FileListParams,
|
|
1435
1434
|
type FileDeleteParams as FileDeleteParams,
|
|
1436
1435
|
type FileDownloadParams as FileDownloadParams,
|
|
@@ -1440,11 +1439,10 @@ export declare namespace Beta {
|
|
|
1440
1439
|
|
|
1441
1440
|
export {
|
|
1442
1441
|
Skills as Skills,
|
|
1443
|
-
type
|
|
1444
|
-
type
|
|
1445
|
-
type
|
|
1446
|
-
type
|
|
1447
|
-
type SkillListResponsesPageCursor as SkillListResponsesPageCursor,
|
|
1442
|
+
type BetaDeletedSkill as BetaDeletedSkill,
|
|
1443
|
+
type BetaSkill as BetaSkill,
|
|
1444
|
+
type BetaSkillSource as BetaSkillSource,
|
|
1445
|
+
type BetaSkillsPageCursor as BetaSkillsPageCursor,
|
|
1448
1446
|
type SkillCreateParams as SkillCreateParams,
|
|
1449
1447
|
type SkillRetrieveParams as SkillRetrieveParams,
|
|
1450
1448
|
type SkillListParams as SkillListParams,
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import { APIResource } from '../../core/resource';
|
|
4
4
|
import * as BetaAPI from './beta';
|
|
5
5
|
import { APIPromise } from '../../core/api-promise';
|
|
6
|
-
import {
|
|
6
|
+
import { PageCursor, type PageCursorParams, PagePromise } from '../../core/pagination';
|
|
7
7
|
import { type Uploadable } from '../../core/uploads';
|
|
8
8
|
import { buildHeaders } from '../../internal/headers';
|
|
9
9
|
import { RequestOptions } from '../../internal/request-options';
|
|
@@ -26,13 +26,13 @@ export class Files extends APIResource {
|
|
|
26
26
|
list(
|
|
27
27
|
params: FileListParams | null | undefined = {},
|
|
28
28
|
options?: RequestOptions,
|
|
29
|
-
): PagePromise<
|
|
29
|
+
): PagePromise<BetaFileMetadataPageCursor, BetaFileMetadata> {
|
|
30
30
|
const { betas, ...query } = params ?? {};
|
|
31
|
-
return this._client.getAPIList('/v1/files?beta=true',
|
|
31
|
+
return this._client.getAPIList('/v1/files?beta=true', PageCursor<BetaFileMetadata>, {
|
|
32
32
|
query,
|
|
33
33
|
...options,
|
|
34
34
|
headers: buildHeaders([
|
|
35
|
-
{
|
|
35
|
+
{ ...(betas?.toString() != null ? { 'anthropic-beta': betas?.toString() } : undefined) },
|
|
36
36
|
options?.headers,
|
|
37
37
|
]),
|
|
38
38
|
});
|
|
@@ -57,7 +57,7 @@ export class Files extends APIResource {
|
|
|
57
57
|
return this._client.delete(path`/v1/files/${fileID}?beta=true`, {
|
|
58
58
|
...options,
|
|
59
59
|
headers: buildHeaders([
|
|
60
|
-
{
|
|
60
|
+
{ ...(betas?.toString() != null ? { 'anthropic-beta': betas?.toString() } : undefined) },
|
|
61
61
|
options?.headers,
|
|
62
62
|
]),
|
|
63
63
|
});
|
|
@@ -86,8 +86,8 @@ export class Files extends APIResource {
|
|
|
86
86
|
...options,
|
|
87
87
|
headers: buildHeaders([
|
|
88
88
|
{
|
|
89
|
-
'anthropic-beta': [...(betas ?? []), 'files-api-2025-04-14'].toString(),
|
|
90
89
|
Accept: 'application/binary',
|
|
90
|
+
...(betas?.toString() != null ? { 'anthropic-beta': betas?.toString() } : undefined),
|
|
91
91
|
},
|
|
92
92
|
options?.headers,
|
|
93
93
|
]),
|
|
@@ -113,7 +113,7 @@ export class Files extends APIResource {
|
|
|
113
113
|
return this._client.get(path`/v1/files/${fileID}?beta=true`, {
|
|
114
114
|
...options,
|
|
115
115
|
headers: buildHeaders([
|
|
116
|
-
{
|
|
116
|
+
{ ...(betas?.toString() != null ? { 'anthropic-beta': betas?.toString() } : undefined) },
|
|
117
117
|
options?.headers,
|
|
118
118
|
]),
|
|
119
119
|
});
|
|
@@ -139,7 +139,7 @@ export class Files extends APIResource {
|
|
|
139
139
|
body,
|
|
140
140
|
...options,
|
|
141
141
|
headers: buildHeaders([
|
|
142
|
-
{
|
|
142
|
+
{ ...(betas?.toString() != null ? { 'anthropic-beta': betas?.toString() } : undefined) },
|
|
143
143
|
stainlessHelperHeaderFromFile(body.file),
|
|
144
144
|
options?.headers,
|
|
145
145
|
]),
|
|
@@ -150,7 +150,7 @@ export class Files extends APIResource {
|
|
|
150
150
|
}
|
|
151
151
|
}
|
|
152
152
|
|
|
153
|
-
export type
|
|
153
|
+
export type BetaFileMetadataPageCursor = PageCursor<BetaFileMetadata>;
|
|
154
154
|
|
|
155
155
|
export interface BetaDeletedFile {
|
|
156
156
|
/**
|
|
@@ -206,6 +206,13 @@ export interface BetaFileMetadata {
|
|
|
206
206
|
*/
|
|
207
207
|
downloadable?: boolean;
|
|
208
208
|
|
|
209
|
+
/**
|
|
210
|
+
* RFC 3339 datetime string representing when the file will expire and become
|
|
211
|
+
* unavailable for download. Null if the file does not expire. For files uploaded
|
|
212
|
+
* with `expires_in_seconds`, this is the upload time plus that value.
|
|
213
|
+
*/
|
|
214
|
+
expires_at?: string | null;
|
|
215
|
+
|
|
209
216
|
/**
|
|
210
217
|
* The scope of this file, indicating the context in which it was created (e.g., a
|
|
211
218
|
* session).
|
|
@@ -225,7 +232,16 @@ export interface BetaFileScope {
|
|
|
225
232
|
type: 'session';
|
|
226
233
|
}
|
|
227
234
|
|
|
228
|
-
export interface FileListParams extends
|
|
235
|
+
export interface FileListParams extends PageCursorParams {
|
|
236
|
+
/**
|
|
237
|
+
* Query param: Restrict the result set to Files whose `id` is in this list. At
|
|
238
|
+
* most 100 entries (after de-duplication). Mutually exclusive with `page` and
|
|
239
|
+
* `limit`. When supplied, the response is always a single page (`next_page` is
|
|
240
|
+
* null). IDs that do not resolve to a visible File — including deleted Files — are
|
|
241
|
+
* silently omitted.
|
|
242
|
+
*/
|
|
243
|
+
ids?: Array<string> | null;
|
|
244
|
+
|
|
229
245
|
/**
|
|
230
246
|
* Query param: Filter by scope ID. Only returns files associated with the
|
|
231
247
|
* specified scope (e.g., a session ID).
|
|
@@ -265,6 +281,13 @@ export interface FileUploadParams {
|
|
|
265
281
|
*/
|
|
266
282
|
file: Uploadable;
|
|
267
283
|
|
|
284
|
+
/**
|
|
285
|
+
* Body param: Seconds from upload until the file expires and its bytes become
|
|
286
|
+
* permanently unavailable. Must be between 3600 (one hour) and 7776000 (ninety
|
|
287
|
+
* days).
|
|
288
|
+
*/
|
|
289
|
+
expires_in_seconds?: number;
|
|
290
|
+
|
|
268
291
|
/**
|
|
269
292
|
* Header param: Optional header to specify the beta version(s) you want to use.
|
|
270
293
|
*/
|
|
@@ -276,7 +299,7 @@ export declare namespace Files {
|
|
|
276
299
|
type BetaDeletedFile as BetaDeletedFile,
|
|
277
300
|
type BetaFileMetadata as BetaFileMetadata,
|
|
278
301
|
type BetaFileScope as BetaFileScope,
|
|
279
|
-
type
|
|
302
|
+
type BetaFileMetadataPageCursor as BetaFileMetadataPageCursor,
|
|
280
303
|
type FileListParams as FileListParams,
|
|
281
304
|
type FileDeleteParams as FileDeleteParams,
|
|
282
305
|
type FileDownloadParams as FileDownloadParams,
|
|
@@ -214,7 +214,7 @@ export {
|
|
|
214
214
|
type FileDownloadParams,
|
|
215
215
|
type FileRetrieveMetadataParams,
|
|
216
216
|
type FileUploadParams,
|
|
217
|
-
type
|
|
217
|
+
type BetaFileMetadataPageCursor,
|
|
218
218
|
} from './files';
|
|
219
219
|
export {
|
|
220
220
|
MemoryStores,
|
|
@@ -357,6 +357,7 @@ export {
|
|
|
357
357
|
type BetaComputerZoomConfig,
|
|
358
358
|
type BetaContainer,
|
|
359
359
|
type BetaContainerParams,
|
|
360
|
+
type BetaContainerSkill,
|
|
360
361
|
type BetaContainerUploadBlock,
|
|
361
362
|
type BetaContainerUploadBlockParam,
|
|
362
363
|
type BetaContentBlock,
|
|
@@ -440,7 +441,6 @@ export {
|
|
|
440
441
|
type BetaServerToolUseBlock,
|
|
441
442
|
type BetaServerToolUseBlockParam,
|
|
442
443
|
type BetaSignatureDelta,
|
|
443
|
-
type BetaSkill,
|
|
444
444
|
type BetaSkillParams,
|
|
445
445
|
type BetaStopReason,
|
|
446
446
|
type BetaTextBlock,
|
|
@@ -595,15 +595,14 @@ export {
|
|
|
595
595
|
} from './sessions/index';
|
|
596
596
|
export {
|
|
597
597
|
Skills,
|
|
598
|
-
type
|
|
599
|
-
type
|
|
600
|
-
type
|
|
601
|
-
type SkillDeleteResponse,
|
|
598
|
+
type BetaDeletedSkill,
|
|
599
|
+
type BetaSkill,
|
|
600
|
+
type BetaSkillSource,
|
|
602
601
|
type SkillCreateParams,
|
|
603
602
|
type SkillRetrieveParams,
|
|
604
603
|
type SkillListParams,
|
|
605
604
|
type SkillDeleteParams,
|
|
606
|
-
type
|
|
605
|
+
type BetaSkillsPageCursor,
|
|
607
606
|
} from './skills/index';
|
|
608
607
|
export {
|
|
609
608
|
Tunnels,
|
|
@@ -148,6 +148,7 @@ export {
|
|
|
148
148
|
type BetaComputerZoomConfig,
|
|
149
149
|
type BetaContainer,
|
|
150
150
|
type BetaContainerParams,
|
|
151
|
+
type BetaContainerSkill,
|
|
151
152
|
type BetaContainerUploadBlock,
|
|
152
153
|
type BetaContainerUploadBlockParam,
|
|
153
154
|
type BetaContentBlock,
|
|
@@ -229,7 +230,6 @@ export {
|
|
|
229
230
|
type BetaServerToolUseBlock,
|
|
230
231
|
type BetaServerToolUseBlockParam,
|
|
231
232
|
type BetaSignatureDelta,
|
|
232
|
-
type BetaSkill,
|
|
233
233
|
type BetaSkillParams,
|
|
234
234
|
type BetaStopReason,
|
|
235
235
|
type BetaTextBlock,
|
|
@@ -2675,7 +2675,7 @@ export interface BetaContainer {
|
|
|
2675
2675
|
/**
|
|
2676
2676
|
* Skills loaded in the container
|
|
2677
2677
|
*/
|
|
2678
|
-
skills: Array<
|
|
2678
|
+
skills: Array<BetaContainerSkill> | null;
|
|
2679
2679
|
}
|
|
2680
2680
|
|
|
2681
2681
|
/**
|
|
@@ -2693,6 +2693,26 @@ export interface BetaContainerParams {
|
|
|
2693
2693
|
skills?: Array<BetaSkillParams> | null;
|
|
2694
2694
|
}
|
|
2695
2695
|
|
|
2696
|
+
/**
|
|
2697
|
+
* A skill that was loaded in a container (response model).
|
|
2698
|
+
*/
|
|
2699
|
+
export interface BetaContainerSkill {
|
|
2700
|
+
/**
|
|
2701
|
+
* Skill ID
|
|
2702
|
+
*/
|
|
2703
|
+
skill_id: string;
|
|
2704
|
+
|
|
2705
|
+
/**
|
|
2706
|
+
* Type of skill - either 'anthropic' (built-in) or 'custom' (user-defined)
|
|
2707
|
+
*/
|
|
2708
|
+
type: 'anthropic' | 'custom';
|
|
2709
|
+
|
|
2710
|
+
/**
|
|
2711
|
+
* The resolved version: a skill version ID for custom skills.
|
|
2712
|
+
*/
|
|
2713
|
+
version: string;
|
|
2714
|
+
}
|
|
2715
|
+
|
|
2696
2716
|
/**
|
|
2697
2717
|
* Response model for a file uploaded to the container.
|
|
2698
2718
|
*/
|
|
@@ -4293,26 +4313,6 @@ export interface BetaSignatureDelta {
|
|
|
4293
4313
|
type: 'signature_delta';
|
|
4294
4314
|
}
|
|
4295
4315
|
|
|
4296
|
-
/**
|
|
4297
|
-
* A skill that was loaded in a container (response model).
|
|
4298
|
-
*/
|
|
4299
|
-
export interface BetaSkill {
|
|
4300
|
-
/**
|
|
4301
|
-
* Skill ID
|
|
4302
|
-
*/
|
|
4303
|
-
skill_id: string;
|
|
4304
|
-
|
|
4305
|
-
/**
|
|
4306
|
-
* Type of skill - either 'anthropic' (built-in) or 'custom' (user-defined)
|
|
4307
|
-
*/
|
|
4308
|
-
type: 'anthropic' | 'custom';
|
|
4309
|
-
|
|
4310
|
-
/**
|
|
4311
|
-
* The resolved version: a skill version ID for custom skills.
|
|
4312
|
-
*/
|
|
4313
|
-
version: string;
|
|
4314
|
-
}
|
|
4315
|
-
|
|
4316
4316
|
/**
|
|
4317
4317
|
* Specification for a skill to be loaded in a container (request model).
|
|
4318
4318
|
*/
|
|
@@ -6974,6 +6974,7 @@ export declare namespace Messages {
|
|
|
6974
6974
|
type BetaComputerZoomConfig as BetaComputerZoomConfig,
|
|
6975
6975
|
type BetaContainer as BetaContainer,
|
|
6976
6976
|
type BetaContainerParams as BetaContainerParams,
|
|
6977
|
+
type BetaContainerSkill as BetaContainerSkill,
|
|
6977
6978
|
type BetaContainerUploadBlock as BetaContainerUploadBlock,
|
|
6978
6979
|
type BetaContainerUploadBlockParam as BetaContainerUploadBlockParam,
|
|
6979
6980
|
type BetaContentBlock as BetaContentBlock,
|
|
@@ -7057,7 +7058,6 @@ export declare namespace Messages {
|
|
|
7057
7058
|
type BetaServerToolUseBlock as BetaServerToolUseBlock,
|
|
7058
7059
|
type BetaServerToolUseBlockParam as BetaServerToolUseBlockParam,
|
|
7059
7060
|
type BetaSignatureDelta as BetaSignatureDelta,
|
|
7060
|
-
type BetaSkill as BetaSkill,
|
|
7061
7061
|
type BetaSkillParams as BetaSkillParams,
|
|
7062
7062
|
type BetaStopReason as BetaStopReason,
|
|
7063
7063
|
type BetaTextBlock as BetaTextBlock,
|
|
@@ -12,9 +12,8 @@ export class RateLimits extends APIResource {
|
|
|
12
12
|
* API-surface category such as the Files API or Message Batches) and contains the
|
|
13
13
|
* set of limiter values that apply to it.
|
|
14
14
|
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
* enabled.
|
|
15
|
+
* When `limit` is omitted, every matching entry is returned in a single page; when
|
|
16
|
+
* `limit` truncates the result, follow `next_page` to fetch the remaining entries.
|
|
18
17
|
*
|
|
19
18
|
* @example
|
|
20
19
|
* ```ts
|
|
@@ -13,9 +13,8 @@ export class RateLimits extends APIResource {
|
|
|
13
13
|
* Groups without overrides inherit the organization limits and are not listed; use
|
|
14
14
|
* `GET /v1/organizations/rate_limits` to see those.
|
|
15
15
|
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
* enabled.
|
|
16
|
+
* When `limit` is omitted, every matching entry is returned in a single page; when
|
|
17
|
+
* `limit` truncates the result, follow `next_page` to fetch the remaining entries.
|
|
19
18
|
*
|
|
20
19
|
* @example
|
|
21
20
|
* ```ts
|
|
@@ -2,26 +2,23 @@
|
|
|
2
2
|
|
|
3
3
|
export {
|
|
4
4
|
Skills,
|
|
5
|
-
type
|
|
6
|
-
type
|
|
7
|
-
type
|
|
8
|
-
type SkillDeleteResponse,
|
|
5
|
+
type BetaDeletedSkill,
|
|
6
|
+
type BetaSkill,
|
|
7
|
+
type BetaSkillSource,
|
|
9
8
|
type SkillCreateParams,
|
|
10
9
|
type SkillRetrieveParams,
|
|
11
10
|
type SkillListParams,
|
|
12
11
|
type SkillDeleteParams,
|
|
13
|
-
type
|
|
12
|
+
type BetaSkillsPageCursor,
|
|
14
13
|
} from './skills';
|
|
15
14
|
export {
|
|
16
15
|
Versions,
|
|
17
|
-
type
|
|
18
|
-
type
|
|
19
|
-
type VersionListResponse,
|
|
20
|
-
type VersionDeleteResponse,
|
|
16
|
+
type BetaDeletedSkillVersion,
|
|
17
|
+
type BetaSkillVersion,
|
|
21
18
|
type VersionCreateParams,
|
|
22
19
|
type VersionRetrieveParams,
|
|
23
20
|
type VersionListParams,
|
|
24
21
|
type VersionDeleteParams,
|
|
25
22
|
type VersionDownloadParams,
|
|
26
|
-
type
|
|
23
|
+
type BetaSkillVersionsPageCursor,
|
|
27
24
|
} from './versions';
|