@deepraxis/sdk 0.1.0-dev.331f4e7 → 0.1.0-dev.35d57f8
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/METHODS.md +39 -1
- package/dist/generated/index.d.ts +2 -2
- package/dist/generated/index.js +1 -1
- package/dist/generated/sdk.gen.d.ts +147 -61
- package/dist/generated/sdk.gen.js +274 -23
- package/dist/generated/types.gen.d.ts +2045 -667
- package/dist/operations.generated.d.ts +369 -82
- package/dist/operations.generated.js +436 -95
- package/dist/resources.generated.d.ts +166 -119
- package/dist/resources.generated.js +27 -0
- package/package.json +1 -1
|
@@ -4064,7 +4064,7 @@ export type AgentManaged42 = {
|
|
|
4064
4064
|
*/
|
|
4065
4065
|
type: 'anthropic';
|
|
4066
4066
|
/**
|
|
4067
|
-
* Version of the skill; a
|
|
4067
|
+
* Version of the skill: omit or `latest` to follow the newest version at each new session; give a version id to pin it.
|
|
4068
4068
|
*/
|
|
4069
4069
|
version: string;
|
|
4070
4070
|
};
|
|
@@ -4078,7 +4078,7 @@ export type AgentManaged43 = {
|
|
|
4078
4078
|
*/
|
|
4079
4079
|
type: 'custom';
|
|
4080
4080
|
/**
|
|
4081
|
-
* Version of the skill; a
|
|
4081
|
+
* Version of the skill: omit or `latest` to follow the newest version at each new session; give a version id to pin it.
|
|
4082
4082
|
*/
|
|
4083
4083
|
version: string;
|
|
4084
4084
|
};
|
|
@@ -4186,7 +4186,7 @@ export type AgentManaged57 = {
|
|
|
4186
4186
|
type: 'custom';
|
|
4187
4187
|
};
|
|
4188
4188
|
/**
|
|
4189
|
-
* Session spending limit
|
|
4189
|
+
* Session spending limit, {type: "limit", max_list_cost: {amount, currency}}; null when unlimited. Creation defaults to a limit of 2000 US cents (USD 20.00) when omitted. amount is a positive integer string of US cents; removing the limit with null prevents setting it again for that session.
|
|
4190
4190
|
*/
|
|
4191
4191
|
export type AgentManaged76 = {
|
|
4192
4192
|
/**
|
|
@@ -4194,7 +4194,7 @@ export type AgentManaged76 = {
|
|
|
4194
4194
|
*/
|
|
4195
4195
|
max_list_cost: AgentManaged77;
|
|
4196
4196
|
/**
|
|
4197
|
-
*
|
|
4197
|
+
* Budget kind; always limit. Any other value, including max_list_cost, returns 400 budget.type must be "limit".
|
|
4198
4198
|
*/
|
|
4199
4199
|
type: 'limit';
|
|
4200
4200
|
};
|
|
@@ -4380,20 +4380,6 @@ export type AgentManaged179 = {
|
|
|
4380
4380
|
*/
|
|
4381
4381
|
server_tool_use?: null | AgentManaged181;
|
|
4382
4382
|
};
|
|
4383
|
-
/**
|
|
4384
|
-
* Agent definition the session uses after the change; null when unchanged.
|
|
4385
|
-
*/
|
|
4386
|
-
export type AgentManaged182 = {
|
|
4387
|
-
/**
|
|
4388
|
-
* Praxis extension: HTTP, SSE or trusted stdio MCP servers paired with mcp_toolset entries and saved with the agent version.
|
|
4389
|
-
*/
|
|
4390
|
-
mcp_servers?: Array<AgentManaged7>;
|
|
4391
|
-
/**
|
|
4392
|
-
* Replacement tool list. Full replacement: the provided array becomes the new
|
|
4393
|
-
* value. Send an empty array to clear; omit to preserve.
|
|
4394
|
-
*/
|
|
4395
|
-
tools?: Array<AgentManaged15 | AgentManaged29 | AgentManaged32>;
|
|
4396
|
-
};
|
|
4397
4383
|
export type AgentManaged183 = {
|
|
4398
4384
|
[key: string]: null | string;
|
|
4399
4385
|
};
|
|
@@ -4658,8 +4644,7 @@ export type AgentManaged10 = {
|
|
|
4658
4644
|
*/
|
|
4659
4645
|
type: 'agent';
|
|
4660
4646
|
/**
|
|
4661
|
-
*
|
|
4662
|
-
* least 1 if specified.
|
|
4647
|
+
* Agent version to pin. Omit to use the agent's active_version.
|
|
4663
4648
|
*/
|
|
4664
4649
|
version?: number;
|
|
4665
4650
|
};
|
|
@@ -4669,34 +4654,16 @@ export type AgentManaged167 = {
|
|
|
4669
4654
|
*/
|
|
4670
4655
|
id: string;
|
|
4671
4656
|
/**
|
|
4672
|
-
* Always `agent_with_overrides`. An agent reference with inline
|
|
4657
|
+
* Always `agent_with_overrides`. An agent reference with an inline system prompt. For session creation, system is the only override: omit it to inherit the agent system prompt, pass a string of at most 100,000 characters to replace it, or null to clear it. Any other field beyond type, id, version and system returns 400. Deployment overrides follow the deployment operation description.
|
|
4673
4658
|
*/
|
|
4674
4659
|
type: 'agent_with_overrides';
|
|
4675
|
-
/**
|
|
4676
|
-
* Praxis extension: HTTP, SSE or trusted stdio MCP servers paired with mcp_toolset entries and saved with the agent version.
|
|
4677
|
-
*/
|
|
4678
|
-
mcp_servers?: Array<AgentManaged7>;
|
|
4679
|
-
/**
|
|
4680
|
-
* Replacement model. Accepts the model string, e.g. `claude-opus-5`, or a
|
|
4681
|
-
* `model_config` object. Omit to use the agent's model.
|
|
4682
|
-
*/
|
|
4683
|
-
model?: 'claude-opus-5-5' | 'claude-fable-5-1' | 'claude-sonnet-5' | 'claude-fable-5' | 'claude-opus-5' | 'claude-opus-4-8' | 'claude-opus-4-7' | 'claude-opus-4-6' | 'claude-sonnet-4-6' | 'claude-haiku-4-5' | 'claude-haiku-4-5-20251001' | 'claude-opus-4-5' | 'claude-opus-4-5-20251101' | 'claude-sonnet-4-5' | 'claude-sonnet-4-5-20250929' | string | AgentManaged1;
|
|
4684
|
-
/**
|
|
4685
|
-
* Replacement skill attachment references stored and echoed unchanged. Not loaded by deployment resource operations.
|
|
4686
|
-
*/
|
|
4687
|
-
skills?: Array<AgentManaged13 | AgentManaged14>;
|
|
4688
4660
|
/**
|
|
4689
4661
|
* Replacement system prompt. Up to 100,000 characters. Set to null to clear the
|
|
4690
4662
|
* agent's system prompt; omit to preserve it.
|
|
4691
4663
|
*/
|
|
4692
4664
|
system?: null | string;
|
|
4693
4665
|
/**
|
|
4694
|
-
*
|
|
4695
|
-
* configuration. Send an empty array to clear; omit to preserve the agent's tools.
|
|
4696
|
-
*/
|
|
4697
|
-
tools?: Array<AgentManaged15 | AgentManaged29 | AgentManaged32>;
|
|
4698
|
-
/**
|
|
4699
|
-
* The specific `agent` version to use. Omit to use the latest version.
|
|
4666
|
+
* Agent version to pin. Omit to use the agent's active_version.
|
|
4700
4667
|
*/
|
|
4701
4668
|
version?: number;
|
|
4702
4669
|
};
|
|
@@ -5516,7 +5483,7 @@ export type AgentManaged170 = {
|
|
|
5516
5483
|
*/
|
|
5517
5484
|
name: string;
|
|
5518
5485
|
/**
|
|
5519
|
-
*
|
|
5486
|
+
* Custom skills attached to the agent, each {type: "custom", skill_id, version?}: skill_id comes from skills.create or skills.list, at most 20 skills, no repeated skill_id. Omit version, or send "latest", to use the skill's newest version at the moment a session starts; a pinned version stays fixed. type anthropic returns 400: upload the skill and attach it as custom. On update, omit the field to keep the list, send an array to replace it, or send [] or null to clear it.
|
|
5520
5487
|
*/
|
|
5521
5488
|
skills: Array<AgentManaged42 | AgentManaged43>;
|
|
5522
5489
|
/**
|
|
@@ -5532,7 +5499,7 @@ export type AgentManaged170 = {
|
|
|
5532
5499
|
*/
|
|
5533
5500
|
type: 'agent';
|
|
5534
5501
|
/**
|
|
5535
|
-
* The agent
|
|
5502
|
+
* The latest saved version of the agent, the editable head; it differs from active_version after a save with apply false. Starts at 1 and increments each time the agent is modified.
|
|
5536
5503
|
*/
|
|
5537
5504
|
version: number;
|
|
5538
5505
|
};
|
|
@@ -7366,6 +7333,10 @@ export type AgentManaged132 = {
|
|
|
7366
7333
|
* `true`.
|
|
7367
7334
|
*/
|
|
7368
7335
|
packages?: null | AgentManaged135;
|
|
7336
|
+
/**
|
|
7337
|
+
* Sandbox template the environment's machines are created from: the name of a public Base from sandbox.bases.list (for example base, base-large, media) or the name or sbe_ id of one of your own ready sandbox Environments. Size is expressed by the template name, for example base-large; there is no separate size field. 1 to 128 characters of letters, digits, underscore, dot and hyphen; any other value returns 400 config.template must be a sandbox template name. The name is not checked when you save; a template the sandbox does not know fails the machine with Environment template <name> is not available. Omit on create, or send null, for the default node22; omit on update to keep it. /agent/v1 only.
|
|
7338
|
+
*/
|
|
7339
|
+
template?: string | null;
|
|
7369
7340
|
};
|
|
7370
7341
|
export type AgentManaged136 = {
|
|
7371
7342
|
/**
|
|
@@ -7644,6 +7615,113 @@ export type AgentManaged113 = {
|
|
|
7644
7615
|
*/
|
|
7645
7616
|
type: 'deployment_run';
|
|
7646
7617
|
};
|
|
7618
|
+
export type AgentManaged308 = {
|
|
7619
|
+
/**
|
|
7620
|
+
* Unique identifier for the skill.
|
|
7621
|
+
*
|
|
7622
|
+
* The format and length of IDs may change over time.
|
|
7623
|
+
*/
|
|
7624
|
+
id: string;
|
|
7625
|
+
/**
|
|
7626
|
+
* ISO 8601 timestamp of when the skill was created.
|
|
7627
|
+
*/
|
|
7628
|
+
created_at: string;
|
|
7629
|
+
/**
|
|
7630
|
+
* Human-readable, single-line label for the Skill. Maximum 255 characters. Always
|
|
7631
|
+
* set: derived from the SKILL.md frontmatter `name` when omitted at creation. Not
|
|
7632
|
+
* unique.
|
|
7633
|
+
*/
|
|
7634
|
+
display_name: string;
|
|
7635
|
+
/**
|
|
7636
|
+
* ID of the newest Skill Version — what `latest` references resolve to. Always
|
|
7637
|
+
* set: a Skill holds at least one version.
|
|
7638
|
+
*/
|
|
7639
|
+
latest_version_id: string;
|
|
7640
|
+
/**
|
|
7641
|
+
* Where the Skill comes from.
|
|
7642
|
+
*
|
|
7643
|
+
* Possible values:
|
|
7644
|
+
*
|
|
7645
|
+
* - `"custom"`: authored by the platform user; private to their workspace
|
|
7646
|
+
* - `"anthropic"`: published by Anthropic; shared and read-only
|
|
7647
|
+
* - `"anthropic_example"`: Anthropic-published sample Skill
|
|
7648
|
+
* - `"plugin"`: resolved from an installed plugin
|
|
7649
|
+
*/
|
|
7650
|
+
source: AgentManaged309;
|
|
7651
|
+
/**
|
|
7652
|
+
* Object type.
|
|
7653
|
+
*
|
|
7654
|
+
* For Skills, this is always `"skill"`.
|
|
7655
|
+
*/
|
|
7656
|
+
type: 'skill';
|
|
7657
|
+
/**
|
|
7658
|
+
* ISO 8601 timestamp of when the skill was last updated.
|
|
7659
|
+
*/
|
|
7660
|
+
updated_at: string;
|
|
7661
|
+
};
|
|
7662
|
+
export type AgentManaged310 = {
|
|
7663
|
+
/**
|
|
7664
|
+
* Unique identifier for the skill.
|
|
7665
|
+
*
|
|
7666
|
+
* The format and length of IDs may change over time.
|
|
7667
|
+
*/
|
|
7668
|
+
id: string;
|
|
7669
|
+
/**
|
|
7670
|
+
* Deleted object type.
|
|
7671
|
+
*
|
|
7672
|
+
* For Skills, this is always `"skill_deleted"`.
|
|
7673
|
+
*/
|
|
7674
|
+
type: 'skill_deleted';
|
|
7675
|
+
};
|
|
7676
|
+
export type AgentManaged311 = {
|
|
7677
|
+
/**
|
|
7678
|
+
* Unique identifier for this Skill Version. The id addresses the version in paths
|
|
7679
|
+
* and pins it in references.
|
|
7680
|
+
*/
|
|
7681
|
+
id: string;
|
|
7682
|
+
/**
|
|
7683
|
+
* ISO 8601 timestamp of when the skill was created.
|
|
7684
|
+
*/
|
|
7685
|
+
created_at: string;
|
|
7686
|
+
/**
|
|
7687
|
+
* Description of the skill version.
|
|
7688
|
+
*
|
|
7689
|
+
* This is extracted from the SKILL.md file in the skill upload.
|
|
7690
|
+
*/
|
|
7691
|
+
description: string;
|
|
7692
|
+
/**
|
|
7693
|
+
* The Skill's immutable kebab-case slug, set at creation from the first upload's
|
|
7694
|
+
* SKILL.md frontmatter `name` (or its enclosing directory). Every later upload
|
|
7695
|
+
* must resolve to the same value. Also the top-level directory of the Skill's
|
|
7696
|
+
* mounted files and the base name of a downloaded archive.
|
|
7697
|
+
*/
|
|
7698
|
+
name: string;
|
|
7699
|
+
/**
|
|
7700
|
+
* Unique identifier for the skill.
|
|
7701
|
+
*
|
|
7702
|
+
* The format and length of IDs may change over time.
|
|
7703
|
+
*/
|
|
7704
|
+
skill_id: string;
|
|
7705
|
+
/**
|
|
7706
|
+
* Object type.
|
|
7707
|
+
*
|
|
7708
|
+
* For Skill Versions, this is always `"skill_version"`.
|
|
7709
|
+
*/
|
|
7710
|
+
type: 'skill_version';
|
|
7711
|
+
};
|
|
7712
|
+
export type AgentManaged312 = {
|
|
7713
|
+
/**
|
|
7714
|
+
* Unique identifier for this Skill Version. The id addresses the version in paths
|
|
7715
|
+
* and pins it in references.
|
|
7716
|
+
*/
|
|
7717
|
+
id: string;
|
|
7718
|
+
/**
|
|
7719
|
+
* Deleted object type.
|
|
7720
|
+
*
|
|
7721
|
+
* For Skill Versions, this is always `"skill_version_deleted"`.
|
|
7722
|
+
*/
|
|
7723
|
+
type: 'skill_version_deleted';
|
|
7724
|
+
};
|
|
7647
7725
|
export type ApplicationAccountSubdomain = {
|
|
7648
7726
|
/**
|
|
7649
7727
|
* Account subdomain, 8–32 lowercase letters and digits; part of every Worker URL.
|
|
@@ -10533,7 +10611,7 @@ export type DatabaseDatabase = {
|
|
|
10533
10611
|
purge_at: string | null;
|
|
10534
10612
|
};
|
|
10535
10613
|
export type DatabaseDatabaseError = {
|
|
10536
|
-
code: 'SINGULAR_MISMATCH' | 'AMBIGUOUS_EMBED' | 'EMBED_NOT_FOUND' | 'INVALID_PREFERENCE' | 'QUERY_CANCELED' | 'RANGE_NOT_SATISFIABLE' | 'NOT_ACCEPTABLE' | 'OPERATOR_TYPE_MISMATCH' | 'DATABASE_NOT_FOUND' | 'TABLE_NOT_FOUND' | 'FIELD_NOT_FOUND' | 'VALIDATION_FAILED' | 'UNIQUE_VIOLATION' | 'REFERENCE_RESTRICT' | 'FIELD_TYPE_IMMUTABLE' | 'LIMIT_EXCEEDED' | 'UNSUPPORTED' | 'INVALID_PARAMS' | 'DATABASE_INVALID_STATE' | 'CAPACITY' | 'NOT_IMPLEMENTED';
|
|
10614
|
+
code: 'SINGULAR_MISMATCH' | 'AMBIGUOUS_EMBED' | 'EMBED_NOT_FOUND' | 'INVALID_PREFERENCE' | 'QUERY_CANCELED' | 'RANGE_NOT_SATISFIABLE' | 'NOT_ACCEPTABLE' | 'OPERATOR_TYPE_MISMATCH' | 'DATABASE_NOT_FOUND' | 'TABLE_NOT_FOUND' | 'FIELD_NOT_FOUND' | 'VALIDATION_FAILED' | 'UNIQUE_VIOLATION' | 'REFERENCE_RESTRICT' | 'FIELD_TYPE_IMMUTABLE' | 'LIMIT_EXCEEDED' | 'UNSUPPORTED' | 'INVALID_PARAMS' | 'DATABASE_INVALID_STATE' | 'CAPACITY' | 'NOT_IMPLEMENTED' | 'BINDING_READ_ONLY';
|
|
10537
10615
|
message: string;
|
|
10538
10616
|
details: string | null;
|
|
10539
10617
|
hint: string | null;
|
|
@@ -17775,7 +17853,7 @@ export type AgentManaged172 = {
|
|
|
17775
17853
|
*/
|
|
17776
17854
|
name: string;
|
|
17777
17855
|
/**
|
|
17778
|
-
*
|
|
17856
|
+
* Custom skills attached to the agent, each {type: "custom", skill_id, version?}: skill_id comes from skills.create or skills.list, at most 20 skills, no repeated skill_id. Omit version, or send "latest", to use the skill's newest version at the moment a session starts; a pinned version stays fixed. type anthropic returns 400: upload the skill and attach it as custom. On update, omit the field to keep the list, send an array to replace it, or send [] or null to clear it.
|
|
17779
17857
|
*/
|
|
17780
17858
|
skills: Array<AgentManaged42 | AgentManaged43>;
|
|
17781
17859
|
/**
|
|
@@ -17791,7 +17869,7 @@ export type AgentManaged172 = {
|
|
|
17791
17869
|
*/
|
|
17792
17870
|
type: 'agent';
|
|
17793
17871
|
/**
|
|
17794
|
-
* The agent
|
|
17872
|
+
* The latest saved version of the agent, the editable head; it differs from active_version after a save with apply false. Starts at 1 and increments each time the agent is modified.
|
|
17795
17873
|
*/
|
|
17796
17874
|
version: number;
|
|
17797
17875
|
};
|
|
@@ -17995,19 +18073,15 @@ export type AgentManaged33 = {
|
|
|
17995
18073
|
[key: string]: unknown;
|
|
17996
18074
|
};
|
|
17997
18075
|
/**
|
|
17998
|
-
* Largest list-price cost the session may reach.
|
|
18076
|
+
* Largest list-price cost the session may reach, as {amount, currency}. amount is a string of US cents, not dollars.
|
|
17999
18077
|
*/
|
|
18000
18078
|
export type AgentManaged77 = {
|
|
18001
18079
|
/**
|
|
18002
|
-
*
|
|
18003
|
-
* leading zeros: "2500" is $25.00 and "50" is fifty cents. A string rather than a
|
|
18004
|
-
* number so no float rounding is ever applied.
|
|
18080
|
+
* Cost ceiling in US cents, as a positive integer string with no leading zeros: "2000" is USD 20.00 and "50" is fifty cents. Decimals and JSON numbers return 400.
|
|
18005
18081
|
*/
|
|
18006
18082
|
amount: string;
|
|
18007
18083
|
/**
|
|
18008
|
-
*
|
|
18009
|
-
* supported; the accepted set is closed and grows only when a new currency is
|
|
18010
|
-
* priced.
|
|
18084
|
+
* Currency of amount; always USD.
|
|
18011
18085
|
*/
|
|
18012
18086
|
currency: 'USD';
|
|
18013
18087
|
};
|
|
@@ -18070,7 +18144,7 @@ export type AgentManaged40 = {
|
|
|
18070
18144
|
*/
|
|
18071
18145
|
type: 'agent';
|
|
18072
18146
|
/**
|
|
18073
|
-
* The agent
|
|
18147
|
+
* The latest saved version of the agent, the editable head; it differs from active_version after a save with apply false. Starts at 1 and increments each time the agent is modified.
|
|
18074
18148
|
*/
|
|
18075
18149
|
version: number;
|
|
18076
18150
|
};
|
|
@@ -18291,33 +18365,6 @@ export type AgentManaged28 = {
|
|
|
18291
18365
|
*/
|
|
18292
18366
|
permission_policy?: null | AgentManaged17 | AgentManaged18 | AgentManaged19;
|
|
18293
18367
|
};
|
|
18294
|
-
export type AgentManaged1 = {
|
|
18295
|
-
/**
|
|
18296
|
-
* The model that will power your agent.
|
|
18297
|
-
*
|
|
18298
|
-
* See [models](https://docs.anthropic.com/en/docs/models-overview) for additional
|
|
18299
|
-
* details and options.
|
|
18300
|
-
*/
|
|
18301
|
-
id: 'claude-opus-5-5' | 'claude-fable-5-1' | 'claude-sonnet-5' | 'claude-fable-5' | 'claude-opus-5' | 'claude-opus-4-8' | 'claude-opus-4-7' | 'claude-opus-4-6' | 'claude-sonnet-4-6' | 'claude-haiku-4-5' | 'claude-haiku-4-5-20251001' | 'claude-opus-4-5' | 'claude-opus-4-5-20251101' | 'claude-sonnet-4-5' | 'claude-sonnet-4-5-20250929' | string;
|
|
18302
|
-
/**
|
|
18303
|
-
* How hard Claude works on each inference call. Accepts a bare level string
|
|
18304
|
-
* (`"high"`) or `{"type": "high"}`. On create, omitting it resolves the per-model
|
|
18305
|
-
* default; on update, omitting it leaves the stored value unchanged.
|
|
18306
|
-
*/
|
|
18307
|
-
effort?: null | 'low' | 'medium' | 'high' | 'xhigh' | 'max' | AgentManaged2 | AgentManaged3 | AgentManaged4 | AgentManaged5 | AgentManaged6;
|
|
18308
|
-
/**
|
|
18309
|
-
* Geographic region for model inference. When unset, requests fall through to the
|
|
18310
|
-
* workspace's default_inference_geo. On update, `model` is whole-object
|
|
18311
|
-
* replacement — omitting inference_geo clears it.
|
|
18312
|
-
*/
|
|
18313
|
-
inference_geo?: null | string;
|
|
18314
|
-
/**
|
|
18315
|
-
* Inference speed mode. `fast` provides significantly faster output token
|
|
18316
|
-
* generation at premium pricing. Not all models support `fast`; invalid
|
|
18317
|
-
* combinations are rejected at create time.
|
|
18318
|
-
*/
|
|
18319
|
-
speed?: null | 'standard' | 'fast';
|
|
18320
|
-
};
|
|
18321
18368
|
export type AgentManaged72 = {
|
|
18322
18369
|
/**
|
|
18323
18370
|
* ID of the rubric file.
|
|
@@ -18657,12 +18704,9 @@ export type AgentManaged89 = {
|
|
|
18657
18704
|
*/
|
|
18658
18705
|
export type AgentManaged38 = {
|
|
18659
18706
|
/**
|
|
18660
|
-
*
|
|
18661
|
-
*
|
|
18662
|
-
* See [models](https://docs.anthropic.com/en/docs/models-overview) for additional
|
|
18663
|
-
* details and options.
|
|
18707
|
+
* A model id from the Praxis model catalog (`praxis.model.models.list`). Unlike Anthropic, Claude model ids other than those in the catalog are rejected.
|
|
18664
18708
|
*/
|
|
18665
|
-
id:
|
|
18709
|
+
id: string;
|
|
18666
18710
|
/**
|
|
18667
18711
|
* How hard Claude works on each turn. Sets `output_config.effort` on every
|
|
18668
18712
|
* Messages call the session makes.
|
|
@@ -20108,6 +20152,10 @@ export type AgentManaged139 = {
|
|
|
20108
20152
|
* Environment type
|
|
20109
20153
|
*/
|
|
20110
20154
|
type: 'cloud';
|
|
20155
|
+
/**
|
|
20156
|
+
* Sandbox template machines of this environment are created from: a public Base name or one of your own sandbox Environments (name or sbe_ id); size is expressed by the template name. The built-in node22 shows node22; null or absent means the default node22. /agent/v1 only.
|
|
20157
|
+
*/
|
|
20158
|
+
template?: string | null;
|
|
20111
20159
|
};
|
|
20112
20160
|
export type AgentManaged142 = {
|
|
20113
20161
|
/**
|
|
@@ -20381,6 +20429,22 @@ export type AgentManaged131 = {
|
|
|
20381
20429
|
*/
|
|
20382
20430
|
type: 'manual';
|
|
20383
20431
|
};
|
|
20432
|
+
/**
|
|
20433
|
+
* Source of the content.
|
|
20434
|
+
*/
|
|
20435
|
+
export type AgentManaged309 = {
|
|
20436
|
+
/**
|
|
20437
|
+
* Where the Skill comes from.
|
|
20438
|
+
*
|
|
20439
|
+
* Possible values:
|
|
20440
|
+
*
|
|
20441
|
+
* - `"custom"`: authored by the platform user; private to their workspace
|
|
20442
|
+
* - `"anthropic"`: published by Anthropic; shared and read-only
|
|
20443
|
+
* - `"anthropic_example"`: Anthropic-published sample Skill
|
|
20444
|
+
* - `"plugin"`: resolved from an installed plugin
|
|
20445
|
+
*/
|
|
20446
|
+
type: 'anthropic' | 'custom' | 'anthropic_example' | 'plugin';
|
|
20447
|
+
};
|
|
20384
20448
|
export type ApplicationModule = {
|
|
20385
20449
|
/**
|
|
20386
20450
|
* Module file name.
|
|
@@ -27199,6 +27263,14 @@ export type ApplyAgentVersionErrors = {
|
|
|
27199
27263
|
* Version must be a positive integer; select a version from agents.versions.list.
|
|
27200
27264
|
*/
|
|
27201
27265
|
400: unknown;
|
|
27266
|
+
/**
|
|
27267
|
+
* The API key is missing, invalid or revoked. Send a valid key as X-API-Key or as a Bearer token.
|
|
27268
|
+
*/
|
|
27269
|
+
401: unknown;
|
|
27270
|
+
/**
|
|
27271
|
+
* permission_error: the credential's role or bound resources do not allow this operation. Use a key with access to the agent domain and its resources.
|
|
27272
|
+
*/
|
|
27273
|
+
403: unknown;
|
|
27202
27274
|
/**
|
|
27203
27275
|
* Agent or version is unavailable. A missing version returns Agent version not found; check the version list.
|
|
27204
27276
|
*/
|
|
@@ -27317,12 +27389,9 @@ export type ApplyAgentVersionResponses = {
|
|
|
27317
27389
|
*/
|
|
27318
27390
|
model: {
|
|
27319
27391
|
/**
|
|
27320
|
-
*
|
|
27321
|
-
*
|
|
27322
|
-
* See [models](https://docs.anthropic.com/en/docs/models-overview) for additional
|
|
27323
|
-
* details and options.
|
|
27392
|
+
* A model id from the Praxis model catalog (`praxis.model.models.list`). Unlike Anthropic, Claude model ids other than those in the catalog are rejected.
|
|
27324
27393
|
*/
|
|
27325
|
-
id:
|
|
27394
|
+
id: string;
|
|
27326
27395
|
/**
|
|
27327
27396
|
* How hard Claude works on each turn. Sets `output_config.effort` on every
|
|
27328
27397
|
* Messages call the session makes.
|
|
@@ -27392,7 +27461,7 @@ export type ApplyAgentVersionResponses = {
|
|
|
27392
27461
|
*/
|
|
27393
27462
|
type: 'agent';
|
|
27394
27463
|
/**
|
|
27395
|
-
* The agent
|
|
27464
|
+
* The latest saved version of the agent, the editable head; it differs from active_version after a save with apply false. Starts at 1 and increments each time the agent is modified.
|
|
27396
27465
|
*/
|
|
27397
27466
|
version: number;
|
|
27398
27467
|
} | {
|
|
@@ -27415,7 +27484,7 @@ export type ApplyAgentVersionResponses = {
|
|
|
27415
27484
|
*/
|
|
27416
27485
|
name: string;
|
|
27417
27486
|
/**
|
|
27418
|
-
*
|
|
27487
|
+
* Custom skills attached to the agent, each {type: "custom", skill_id, version?}: skill_id comes from skills.create or skills.list, at most 20 skills, no repeated skill_id. Omit version, or send "latest", to use the skill's newest version at the moment a session starts; a pinned version stays fixed. type anthropic returns 400: upload the skill and attach it as custom. On update, omit the field to keep the list, send an array to replace it, or send [] or null to clear it.
|
|
27419
27488
|
*/
|
|
27420
27489
|
skills: Array<{
|
|
27421
27490
|
/**
|
|
@@ -27427,7 +27496,7 @@ export type ApplyAgentVersionResponses = {
|
|
|
27427
27496
|
*/
|
|
27428
27497
|
type: 'anthropic';
|
|
27429
27498
|
/**
|
|
27430
|
-
* Version of the skill; a
|
|
27499
|
+
* Version of the skill: omit or `latest` to follow the newest version at each new session; give a version id to pin it.
|
|
27431
27500
|
*/
|
|
27432
27501
|
version: string;
|
|
27433
27502
|
} | {
|
|
@@ -27440,7 +27509,7 @@ export type ApplyAgentVersionResponses = {
|
|
|
27440
27509
|
*/
|
|
27441
27510
|
type: 'custom';
|
|
27442
27511
|
/**
|
|
27443
|
-
* Version of the skill; a
|
|
27512
|
+
* Version of the skill: omit or `latest` to follow the newest version at each new session; give a version id to pin it.
|
|
27444
27513
|
*/
|
|
27445
27514
|
version: string;
|
|
27446
27515
|
}>;
|
|
@@ -27938,38 +28007,21 @@ export type ApplyAgentVersionResponses = {
|
|
|
27938
28007
|
*/
|
|
27939
28008
|
note: string | null;
|
|
27940
28009
|
/**
|
|
27941
|
-
*
|
|
28010
|
+
* Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; personal agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A service binding opens a whole service and carries only enabled: search or browser. At most 20 bindings per type, no repeated type and id, and each service type at most once. A session is authorized by the agent version it runs: newly added bindings apply only to new sessions, and a version saved with apply=false changes no access until it is applied. Applying a version that disables, removes or downgrades a binding revokes it immediately in running sessions on older versions. A resource that is not bound returns 404, a service that is not opened returns 403, and a write to a resource bound read_only returns 403 BINDING_READ_ONLY. Unknown types, fields on the wrong kind (id, access or instructions on a service binding), wrong access and malformed ids return 400. The former databases, vector_stores and files fields are removed and return 400. Omit on create for no bindings.
|
|
27942
28011
|
*/
|
|
27943
|
-
|
|
27944
|
-
/**
|
|
27945
|
-
* Resource id from database.databases.list or database.databases.create; use the returned id, not its name. Must start with db_ and be unique within this binding array.
|
|
27946
|
-
*/
|
|
27947
|
-
id: string;
|
|
28012
|
+
bindings: Array<{
|
|
27948
28013
|
/**
|
|
27949
|
-
*
|
|
28014
|
+
* Resource type. Decides the id format and the allowed access.
|
|
27950
28015
|
*/
|
|
27951
|
-
|
|
28016
|
+
type: 'database' | 'vector_store' | 'file' | 'media_library' | 'model' | 'workflow' | 'script';
|
|
27952
28017
|
/**
|
|
27953
|
-
*
|
|
27954
|
-
*/
|
|
27955
|
-
instructions?: string;
|
|
27956
|
-
/**
|
|
27957
|
-
* Whether this binding grants access. Defaults to true; false immediately disables it for running sessions.
|
|
27958
|
-
*/
|
|
27959
|
-
enabled?: boolean;
|
|
27960
|
-
}>;
|
|
27961
|
-
/**
|
|
27962
|
-
* Knowledge vector store allowlist for platform resources accessible through service-agent codemode. Only kind=service accepts nonempty bindings; personal agents return 400. At most 20 bindings per resource type, with no duplicate ids. Newly added bindings apply only to new sessions; disabling or removing a binding immediately revokes access in running sessions. Unbound resources return 404; writes to read_only resources are refused. Other platform APIs return 403, except public API discovery. Invalid bindings and unknown item fields return 400. Omit on create for no bindings.
|
|
27963
|
-
*/
|
|
27964
|
-
vector_stores: Array<{
|
|
27965
|
-
/**
|
|
27966
|
-
* Resource id from knowledge.vectorStores.list or knowledge.vectorStores.create; use the returned id, not its name. Must start with vs_ and be unique within this binding array.
|
|
28018
|
+
* Resource id, never its name. database db_..., vector_store vs_..., file file- plus 24 letters or digits; media_library and model ids must not contain ':' or whitespace; workflow and script use <namespace>/<name> with no '/', '@', ':' or whitespace inside a part.
|
|
27967
28019
|
*/
|
|
27968
28020
|
id: string;
|
|
27969
28021
|
/**
|
|
27970
|
-
*
|
|
28022
|
+
* database, vector_store and media_library accept read_only or read_write; file accepts read_only; model, workflow and script accept invoke. Any other combination returns 400.
|
|
27971
28023
|
*/
|
|
27972
|
-
access: 'read_only' | 'read_write';
|
|
28024
|
+
access: 'read_only' | 'read_write' | 'invoke';
|
|
27973
28025
|
/**
|
|
27974
28026
|
* Optional guidance for using this resource, up to 4096 characters; does not expand access.
|
|
27975
28027
|
*/
|
|
@@ -27978,25 +28030,13 @@ export type ApplyAgentVersionResponses = {
|
|
|
27978
28030
|
* Whether this binding grants access. Defaults to true; false immediately disables it for running sessions.
|
|
27979
28031
|
*/
|
|
27980
28032
|
enabled?: boolean;
|
|
27981
|
-
}
|
|
27982
|
-
/**
|
|
27983
|
-
* File allowlist for platform resources accessible through service-agent codemode. Only kind=service accepts nonempty bindings; personal agents return 400. At most 20 bindings per resource type, with no duplicate ids. Newly added bindings apply only to new sessions; disabling or removing a binding immediately revokes access in running sessions. Unbound resources return 404; writes to read_only resources are refused. Other platform APIs return 403, except public API discovery. Invalid bindings and unknown item fields return 400. Omit on create for no bindings.
|
|
27984
|
-
*/
|
|
27985
|
-
files: Array<{
|
|
27986
|
-
/**
|
|
27987
|
-
* Resource id from file.files.list or file.files.create (upload); use the returned id, not its name. Must start with file_ and be unique within this binding array.
|
|
27988
|
-
*/
|
|
27989
|
-
id: string;
|
|
27990
|
-
/**
|
|
27991
|
-
* read_only permits reading the bound file; files do not accept read_write.
|
|
27992
|
-
*/
|
|
27993
|
-
access: 'read_only';
|
|
28033
|
+
} | {
|
|
27994
28034
|
/**
|
|
27995
|
-
*
|
|
28035
|
+
* Service type. Opens the whole service to codemode; there is no per-resource id.
|
|
27996
28036
|
*/
|
|
27997
|
-
|
|
28037
|
+
type: 'search' | 'browser';
|
|
27998
28038
|
/**
|
|
27999
|
-
* Whether
|
|
28039
|
+
* Whether the service is open. Defaults to true; false immediately closes it for running sessions.
|
|
28000
28040
|
*/
|
|
28001
28041
|
enabled?: boolean;
|
|
28002
28042
|
}>;
|
|
@@ -28338,7 +28378,7 @@ export type ApplyAgentVersionResponses = {
|
|
|
28338
28378
|
*/
|
|
28339
28379
|
commands?: Array<string>;
|
|
28340
28380
|
/**
|
|
28341
|
-
*
|
|
28381
|
+
* Names of disabled skills declarations.
|
|
28342
28382
|
*/
|
|
28343
28383
|
skills?: Array<string>;
|
|
28344
28384
|
/**
|
|
@@ -28360,6 +28400,26 @@ export type ApplyAgentVersionResponses = {
|
|
|
28360
28400
|
*/
|
|
28361
28401
|
allowed: Array<string>;
|
|
28362
28402
|
};
|
|
28403
|
+
/**
|
|
28404
|
+
* Avatar image URL of this agent version (absolute https), shown in agent lists, the agent detail, the chat header and as the default avatar of embedded chat; null when none is set. Follows the version like other configuration: a version saved with apply=false does not change the avatar in effect. /agent/v1 only.
|
|
28405
|
+
*/
|
|
28406
|
+
avatar: string | null;
|
|
28407
|
+
/**
|
|
28408
|
+
* Channel the agent was created through (for example api or console); null for historical agents whose channel is unknown. Display only. /agent/v1 only; /anthropic neither returns it.
|
|
28409
|
+
*/
|
|
28410
|
+
creation_source: string | null;
|
|
28411
|
+
/**
|
|
28412
|
+
* Platform-wide identity number of the agent (8 characters), usable wherever an agent is addressed by identity_number; null when the agent has none. /agent/v1 only; /anthropic neither returns it.
|
|
28413
|
+
*/
|
|
28414
|
+
identity_number: string | null;
|
|
28415
|
+
/**
|
|
28416
|
+
* Default environment of this service agent version: the environment_id new sessions get when they name none; null means no environment. Present for service agents only. Follows the version like other configuration: a version saved with apply=false does not change the environment in effect. Versions saved before this field existed read as light. /agent/v1 only.
|
|
28417
|
+
*/
|
|
28418
|
+
environment_id?: string | null;
|
|
28419
|
+
/**
|
|
28420
|
+
* Default vaults of this service agent version: the vault_ids new sessions get when they name none. Present for service agents only. Follows the version like other configuration: a version saved with apply=false does not change the vaults in effect. Versions saved before this field existed read as []. /agent/v1 only.
|
|
28421
|
+
*/
|
|
28422
|
+
vault_ids?: Array<string>;
|
|
28363
28423
|
/**
|
|
28364
28424
|
* Current agent lifecycle status; unarchive restores an archived agent to active.
|
|
28365
28425
|
*/
|
|
@@ -28379,6 +28439,14 @@ export type UnarchiveAgentData = {
|
|
|
28379
28439
|
url: '/agent/v1/agents/{agent_id}/unarchive';
|
|
28380
28440
|
};
|
|
28381
28441
|
export type UnarchiveAgentErrors = {
|
|
28442
|
+
/**
|
|
28443
|
+
* The API key is missing, invalid or revoked. Send a valid key as X-API-Key or as a Bearer token.
|
|
28444
|
+
*/
|
|
28445
|
+
401: unknown;
|
|
28446
|
+
/**
|
|
28447
|
+
* permission_error: the credential's role or bound resources do not allow this operation. Use a key with access to the agent domain and its resources.
|
|
28448
|
+
*/
|
|
28449
|
+
403: unknown;
|
|
28382
28450
|
/**
|
|
28383
28451
|
* Agent does not exist or is inaccessible to this caller.
|
|
28384
28452
|
*/
|
|
@@ -28493,12 +28561,9 @@ export type UnarchiveAgentResponses = {
|
|
|
28493
28561
|
*/
|
|
28494
28562
|
model: {
|
|
28495
28563
|
/**
|
|
28496
|
-
*
|
|
28497
|
-
*
|
|
28498
|
-
* See [models](https://docs.anthropic.com/en/docs/models-overview) for additional
|
|
28499
|
-
* details and options.
|
|
28564
|
+
* A model id from the Praxis model catalog (`praxis.model.models.list`). Unlike Anthropic, Claude model ids other than those in the catalog are rejected.
|
|
28500
28565
|
*/
|
|
28501
|
-
id:
|
|
28566
|
+
id: string;
|
|
28502
28567
|
/**
|
|
28503
28568
|
* How hard Claude works on each turn. Sets `output_config.effort` on every
|
|
28504
28569
|
* Messages call the session makes.
|
|
@@ -28568,7 +28633,7 @@ export type UnarchiveAgentResponses = {
|
|
|
28568
28633
|
*/
|
|
28569
28634
|
type: 'agent';
|
|
28570
28635
|
/**
|
|
28571
|
-
* The agent
|
|
28636
|
+
* The latest saved version of the agent, the editable head; it differs from active_version after a save with apply false. Starts at 1 and increments each time the agent is modified.
|
|
28572
28637
|
*/
|
|
28573
28638
|
version: number;
|
|
28574
28639
|
} | {
|
|
@@ -28591,7 +28656,7 @@ export type UnarchiveAgentResponses = {
|
|
|
28591
28656
|
*/
|
|
28592
28657
|
name: string;
|
|
28593
28658
|
/**
|
|
28594
|
-
*
|
|
28659
|
+
* Custom skills attached to the agent, each {type: "custom", skill_id, version?}: skill_id comes from skills.create or skills.list, at most 20 skills, no repeated skill_id. Omit version, or send "latest", to use the skill's newest version at the moment a session starts; a pinned version stays fixed. type anthropic returns 400: upload the skill and attach it as custom. On update, omit the field to keep the list, send an array to replace it, or send [] or null to clear it.
|
|
28595
28660
|
*/
|
|
28596
28661
|
skills: Array<{
|
|
28597
28662
|
/**
|
|
@@ -28603,7 +28668,7 @@ export type UnarchiveAgentResponses = {
|
|
|
28603
28668
|
*/
|
|
28604
28669
|
type: 'anthropic';
|
|
28605
28670
|
/**
|
|
28606
|
-
* Version of the skill; a
|
|
28671
|
+
* Version of the skill: omit or `latest` to follow the newest version at each new session; give a version id to pin it.
|
|
28607
28672
|
*/
|
|
28608
28673
|
version: string;
|
|
28609
28674
|
} | {
|
|
@@ -28616,7 +28681,7 @@ export type UnarchiveAgentResponses = {
|
|
|
28616
28681
|
*/
|
|
28617
28682
|
type: 'custom';
|
|
28618
28683
|
/**
|
|
28619
|
-
* Version of the skill; a
|
|
28684
|
+
* Version of the skill: omit or `latest` to follow the newest version at each new session; give a version id to pin it.
|
|
28620
28685
|
*/
|
|
28621
28686
|
version: string;
|
|
28622
28687
|
}>;
|
|
@@ -29114,38 +29179,21 @@ export type UnarchiveAgentResponses = {
|
|
|
29114
29179
|
*/
|
|
29115
29180
|
note: string | null;
|
|
29116
29181
|
/**
|
|
29117
|
-
*
|
|
29182
|
+
* Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; personal agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A service binding opens a whole service and carries only enabled: search or browser. At most 20 bindings per type, no repeated type and id, and each service type at most once. A session is authorized by the agent version it runs: newly added bindings apply only to new sessions, and a version saved with apply=false changes no access until it is applied. Applying a version that disables, removes or downgrades a binding revokes it immediately in running sessions on older versions. A resource that is not bound returns 404, a service that is not opened returns 403, and a write to a resource bound read_only returns 403 BINDING_READ_ONLY. Unknown types, fields on the wrong kind (id, access or instructions on a service binding), wrong access and malformed ids return 400. The former databases, vector_stores and files fields are removed and return 400. Omit on create for no bindings.
|
|
29118
29183
|
*/
|
|
29119
|
-
|
|
29120
|
-
/**
|
|
29121
|
-
* Resource id from database.databases.list or database.databases.create; use the returned id, not its name. Must start with db_ and be unique within this binding array.
|
|
29122
|
-
*/
|
|
29123
|
-
id: string;
|
|
29124
|
-
/**
|
|
29125
|
-
* read_only permits reads of the bound resource; read_write permits reads and writes.
|
|
29126
|
-
*/
|
|
29127
|
-
access: 'read_only' | 'read_write';
|
|
29128
|
-
/**
|
|
29129
|
-
* Optional guidance for using this resource, up to 4096 characters; does not expand access.
|
|
29130
|
-
*/
|
|
29131
|
-
instructions?: string;
|
|
29184
|
+
bindings: Array<{
|
|
29132
29185
|
/**
|
|
29133
|
-
*
|
|
29186
|
+
* Resource type. Decides the id format and the allowed access.
|
|
29134
29187
|
*/
|
|
29135
|
-
|
|
29136
|
-
}>;
|
|
29137
|
-
/**
|
|
29138
|
-
* Knowledge vector store allowlist for platform resources accessible through service-agent codemode. Only kind=service accepts nonempty bindings; personal agents return 400. At most 20 bindings per resource type, with no duplicate ids. Newly added bindings apply only to new sessions; disabling or removing a binding immediately revokes access in running sessions. Unbound resources return 404; writes to read_only resources are refused. Other platform APIs return 403, except public API discovery. Invalid bindings and unknown item fields return 400. Omit on create for no bindings.
|
|
29139
|
-
*/
|
|
29140
|
-
vector_stores: Array<{
|
|
29188
|
+
type: 'database' | 'vector_store' | 'file' | 'media_library' | 'model' | 'workflow' | 'script';
|
|
29141
29189
|
/**
|
|
29142
|
-
* Resource id
|
|
29190
|
+
* Resource id, never its name. database db_..., vector_store vs_..., file file- plus 24 letters or digits; media_library and model ids must not contain ':' or whitespace; workflow and script use <namespace>/<name> with no '/', '@', ':' or whitespace inside a part.
|
|
29143
29191
|
*/
|
|
29144
29192
|
id: string;
|
|
29145
29193
|
/**
|
|
29146
|
-
*
|
|
29194
|
+
* database, vector_store and media_library accept read_only or read_write; file accepts read_only; model, workflow and script accept invoke. Any other combination returns 400.
|
|
29147
29195
|
*/
|
|
29148
|
-
access: 'read_only' | 'read_write';
|
|
29196
|
+
access: 'read_only' | 'read_write' | 'invoke';
|
|
29149
29197
|
/**
|
|
29150
29198
|
* Optional guidance for using this resource, up to 4096 characters; does not expand access.
|
|
29151
29199
|
*/
|
|
@@ -29154,25 +29202,13 @@ export type UnarchiveAgentResponses = {
|
|
|
29154
29202
|
* Whether this binding grants access. Defaults to true; false immediately disables it for running sessions.
|
|
29155
29203
|
*/
|
|
29156
29204
|
enabled?: boolean;
|
|
29157
|
-
}
|
|
29158
|
-
/**
|
|
29159
|
-
* File allowlist for platform resources accessible through service-agent codemode. Only kind=service accepts nonempty bindings; personal agents return 400. At most 20 bindings per resource type, with no duplicate ids. Newly added bindings apply only to new sessions; disabling or removing a binding immediately revokes access in running sessions. Unbound resources return 404; writes to read_only resources are refused. Other platform APIs return 403, except public API discovery. Invalid bindings and unknown item fields return 400. Omit on create for no bindings.
|
|
29160
|
-
*/
|
|
29161
|
-
files: Array<{
|
|
29162
|
-
/**
|
|
29163
|
-
* Resource id from file.files.list or file.files.create (upload); use the returned id, not its name. Must start with file_ and be unique within this binding array.
|
|
29164
|
-
*/
|
|
29165
|
-
id: string;
|
|
29205
|
+
} | {
|
|
29166
29206
|
/**
|
|
29167
|
-
*
|
|
29207
|
+
* Service type. Opens the whole service to codemode; there is no per-resource id.
|
|
29168
29208
|
*/
|
|
29169
|
-
|
|
29209
|
+
type: 'search' | 'browser';
|
|
29170
29210
|
/**
|
|
29171
|
-
*
|
|
29172
|
-
*/
|
|
29173
|
-
instructions?: string;
|
|
29174
|
-
/**
|
|
29175
|
-
* Whether this binding grants access. Defaults to true; false immediately disables it for running sessions.
|
|
29211
|
+
* Whether the service is open. Defaults to true; false immediately closes it for running sessions.
|
|
29176
29212
|
*/
|
|
29177
29213
|
enabled?: boolean;
|
|
29178
29214
|
}>;
|
|
@@ -29514,7 +29550,7 @@ export type UnarchiveAgentResponses = {
|
|
|
29514
29550
|
*/
|
|
29515
29551
|
commands?: Array<string>;
|
|
29516
29552
|
/**
|
|
29517
|
-
*
|
|
29553
|
+
* Names of disabled skills declarations.
|
|
29518
29554
|
*/
|
|
29519
29555
|
skills?: Array<string>;
|
|
29520
29556
|
/**
|
|
@@ -29536,6 +29572,26 @@ export type UnarchiveAgentResponses = {
|
|
|
29536
29572
|
*/
|
|
29537
29573
|
allowed: Array<string>;
|
|
29538
29574
|
};
|
|
29575
|
+
/**
|
|
29576
|
+
* Avatar image URL of this agent version (absolute https), shown in agent lists, the agent detail, the chat header and as the default avatar of embedded chat; null when none is set. Follows the version like other configuration: a version saved with apply=false does not change the avatar in effect. /agent/v1 only.
|
|
29577
|
+
*/
|
|
29578
|
+
avatar: string | null;
|
|
29579
|
+
/**
|
|
29580
|
+
* Channel the agent was created through (for example api or console); null for historical agents whose channel is unknown. Display only. /agent/v1 only; /anthropic neither returns it.
|
|
29581
|
+
*/
|
|
29582
|
+
creation_source: string | null;
|
|
29583
|
+
/**
|
|
29584
|
+
* Platform-wide identity number of the agent (8 characters), usable wherever an agent is addressed by identity_number; null when the agent has none. /agent/v1 only; /anthropic neither returns it.
|
|
29585
|
+
*/
|
|
29586
|
+
identity_number: string | null;
|
|
29587
|
+
/**
|
|
29588
|
+
* Default environment of this service agent version: the environment_id new sessions get when they name none; null means no environment. Present for service agents only. Follows the version like other configuration: a version saved with apply=false does not change the environment in effect. Versions saved before this field existed read as light. /agent/v1 only.
|
|
29589
|
+
*/
|
|
29590
|
+
environment_id?: string | null;
|
|
29591
|
+
/**
|
|
29592
|
+
* Default vaults of this service agent version: the vault_ids new sessions get when they name none. Present for service agents only. Follows the version like other configuration: a version saved with apply=false does not change the vaults in effect. Versions saved before this field existed read as []. /agent/v1 only.
|
|
29593
|
+
*/
|
|
29594
|
+
vault_ids?: Array<string>;
|
|
29539
29595
|
/**
|
|
29540
29596
|
* Current agent lifecycle status; unarchive restores an archived agent to active.
|
|
29541
29597
|
*/
|
|
@@ -29567,6 +29623,10 @@ export type DeleteRunFeedbackErrors = {
|
|
|
29567
29623
|
* Authenticate with a valid organization or end-user credential.
|
|
29568
29624
|
*/
|
|
29569
29625
|
401: unknown;
|
|
29626
|
+
/**
|
|
29627
|
+
* permission_error: the credential's role or bound resources do not allow this operation. Use a key with access to the agent domain and its resources.
|
|
29628
|
+
*/
|
|
29629
|
+
403: unknown;
|
|
29570
29630
|
/**
|
|
29571
29631
|
* Session is inaccessible or the run does not belong to it; verify both identifiers.
|
|
29572
29632
|
*/
|
|
@@ -29612,6 +29672,10 @@ export type SetRunFeedbackErrors = {
|
|
|
29612
29672
|
* Authenticate with a valid organization or end-user credential.
|
|
29613
29673
|
*/
|
|
29614
29674
|
401: unknown;
|
|
29675
|
+
/**
|
|
29676
|
+
* permission_error: the credential's role or bound resources do not allow this operation. Use a key with access to the agent domain and its resources.
|
|
29677
|
+
*/
|
|
29678
|
+
403: unknown;
|
|
29615
29679
|
/**
|
|
29616
29680
|
* Session is inaccessible or the run does not belong to it; verify both identifiers.
|
|
29617
29681
|
*/
|
|
@@ -29686,6 +29750,10 @@ export type ListEndUsersErrors = {
|
|
|
29686
29750
|
* Authenticate with a host credential.
|
|
29687
29751
|
*/
|
|
29688
29752
|
401: unknown;
|
|
29753
|
+
/**
|
|
29754
|
+
* permission_error: the credential's role or bound resources do not allow this operation. Use a key with access to the agent domain and its resources.
|
|
29755
|
+
*/
|
|
29756
|
+
403: unknown;
|
|
29689
29757
|
/**
|
|
29690
29758
|
* Agent or requested user is unavailable to this caller, or the caller is an end user.
|
|
29691
29759
|
*/
|
|
@@ -29761,6 +29829,10 @@ export type DeleteEndUserErrors = {
|
|
|
29761
29829
|
* Authenticate with a host credential.
|
|
29762
29830
|
*/
|
|
29763
29831
|
401: unknown;
|
|
29832
|
+
/**
|
|
29833
|
+
* permission_error: the credential's role or bound resources do not allow this operation. Use a key with access to the agent domain and its resources.
|
|
29834
|
+
*/
|
|
29835
|
+
403: unknown;
|
|
29764
29836
|
/**
|
|
29765
29837
|
* Agent or requested user is unavailable to this caller, or the caller is an end user.
|
|
29766
29838
|
*/
|
|
@@ -29806,6 +29878,10 @@ export type GetEndUserErrors = {
|
|
|
29806
29878
|
* Authenticate with a host credential.
|
|
29807
29879
|
*/
|
|
29808
29880
|
401: unknown;
|
|
29881
|
+
/**
|
|
29882
|
+
* permission_error: the credential's role or bound resources do not allow this operation. Use a key with access to the agent domain and its resources.
|
|
29883
|
+
*/
|
|
29884
|
+
403: unknown;
|
|
29809
29885
|
/**
|
|
29810
29886
|
* Agent or requested user is unavailable to this caller, or the caller is an end user.
|
|
29811
29887
|
*/
|
|
@@ -29892,6 +29968,10 @@ export type GetEndUserDeletionErrors = {
|
|
|
29892
29968
|
* Authenticate with a host credential.
|
|
29893
29969
|
*/
|
|
29894
29970
|
401: unknown;
|
|
29971
|
+
/**
|
|
29972
|
+
* permission_error: the credential's role or bound resources do not allow this operation. Use a key with access to the agent domain and its resources.
|
|
29973
|
+
*/
|
|
29974
|
+
403: unknown;
|
|
29895
29975
|
/**
|
|
29896
29976
|
* Agent or requested user is unavailable to this caller, or the caller is an end user.
|
|
29897
29977
|
*/
|
|
@@ -29978,6 +30058,10 @@ export type RevokeEndUserTokensErrors = {
|
|
|
29978
30058
|
* Authenticate with a host credential.
|
|
29979
30059
|
*/
|
|
29980
30060
|
401: unknown;
|
|
30061
|
+
/**
|
|
30062
|
+
* permission_error: the credential's role or bound resources do not allow this operation. Use a key with access to the agent domain and its resources.
|
|
30063
|
+
*/
|
|
30064
|
+
403: unknown;
|
|
29981
30065
|
/**
|
|
29982
30066
|
* Agent or requested user is unavailable to this caller, or the caller is an end user.
|
|
29983
30067
|
*/
|
|
@@ -30023,6 +30107,10 @@ export type BlockEndUserErrors = {
|
|
|
30023
30107
|
* Authenticate with a host credential.
|
|
30024
30108
|
*/
|
|
30025
30109
|
401: unknown;
|
|
30110
|
+
/**
|
|
30111
|
+
* permission_error: the credential's role or bound resources do not allow this operation. Use a key with access to the agent domain and its resources.
|
|
30112
|
+
*/
|
|
30113
|
+
403: unknown;
|
|
30026
30114
|
/**
|
|
30027
30115
|
* Agent or requested user is unavailable to this caller, or the caller is an end user.
|
|
30028
30116
|
*/
|
|
@@ -30092,6 +30180,10 @@ export type UnblockEndUserErrors = {
|
|
|
30092
30180
|
* Authenticate with a host credential.
|
|
30093
30181
|
*/
|
|
30094
30182
|
401: unknown;
|
|
30183
|
+
/**
|
|
30184
|
+
* permission_error: the credential's role or bound resources do not allow this operation. Use a key with access to the agent domain and its resources.
|
|
30185
|
+
*/
|
|
30186
|
+
403: unknown;
|
|
30095
30187
|
/**
|
|
30096
30188
|
* Agent or requested user is unavailable to this caller, or the caller is an end user.
|
|
30097
30189
|
*/
|
|
@@ -30133,6 +30225,303 @@ export type UnblockEndUserResponses = {
|
|
|
30133
30225
|
};
|
|
30134
30226
|
};
|
|
30135
30227
|
export type UnblockEndUserResponse = UnblockEndUserResponses[keyof UnblockEndUserResponses];
|
|
30228
|
+
export type CreateCustomerGrantCodeData = {
|
|
30229
|
+
body: {
|
|
30230
|
+
/**
|
|
30231
|
+
* Your stable, opaque identifier for the signed-in customer, such as your database user id. Do not use an email address or phone number. "auth" is reserved, and ids starting with anon_ are reserved for anonymous customers.
|
|
30232
|
+
*/
|
|
30233
|
+
customer_id: string;
|
|
30234
|
+
/**
|
|
30235
|
+
* Existing agent version that every token of this sign-in pins. Defaults to the agent's active_version when the code is issued.
|
|
30236
|
+
*/
|
|
30237
|
+
version?: number;
|
|
30238
|
+
/**
|
|
30239
|
+
* Budget in cents for each session the customer starts. Defaults to the embed policy session budget and cannot exceed its maximum.
|
|
30240
|
+
*/
|
|
30241
|
+
budget_cents?: number;
|
|
30242
|
+
/**
|
|
30243
|
+
* Optional context the agent receives at the start of each session, as text blocks, limited to 8192 UTF-8 bytes in total.
|
|
30244
|
+
*/
|
|
30245
|
+
system_message?: Array<{
|
|
30246
|
+
/**
|
|
30247
|
+
* The text block kind; text is the only supported kind.
|
|
30248
|
+
*/
|
|
30249
|
+
type: 'text';
|
|
30250
|
+
/**
|
|
30251
|
+
* Context text about this customer. All blocks together must fit within 8192 UTF-8 bytes.
|
|
30252
|
+
*/
|
|
30253
|
+
text: string;
|
|
30254
|
+
}>;
|
|
30255
|
+
/**
|
|
30256
|
+
* Optional system prompt override, accepted only when the embed policy allows agent overrides.
|
|
30257
|
+
*/
|
|
30258
|
+
agent_override?: {
|
|
30259
|
+
/**
|
|
30260
|
+
* Replacement system prompt, or null to clear it for this sign-in.
|
|
30261
|
+
*/
|
|
30262
|
+
system: string | null;
|
|
30263
|
+
};
|
|
30264
|
+
/**
|
|
30265
|
+
* Up to 16 string pairs copied onto every session the customer starts. The playground key is reserved.
|
|
30266
|
+
*/
|
|
30267
|
+
metadata?: {
|
|
30268
|
+
[key: string]: string;
|
|
30269
|
+
};
|
|
30270
|
+
/**
|
|
30271
|
+
* Page origin, such as https://shop.example.com, that must be one of the agent policy's allowed_origins (or localhost when the policy allows it). When set, every token of this sign-in works only from exactly this origin. Omit to accept any policy origin.
|
|
30272
|
+
*/
|
|
30273
|
+
origin?: string;
|
|
30274
|
+
/**
|
|
30275
|
+
* Seconds the code stays redeemable, from 60 to 86400. Defaults to 900.
|
|
30276
|
+
*/
|
|
30277
|
+
expires_in?: number;
|
|
30278
|
+
/**
|
|
30279
|
+
* Total lifetime of the sign-in in seconds, from 3600 to 604800 (7 days). Tokens renew within it; after it the customer signs in again. Defaults to 604800.
|
|
30280
|
+
*/
|
|
30281
|
+
max_session_seconds?: number;
|
|
30282
|
+
/**
|
|
30283
|
+
* The current access token of the anonymous customer who used this agent before signing in. Their conversations become visible to the identified customer, and the anonymous sign-in ends at exchange.
|
|
30284
|
+
*/
|
|
30285
|
+
anonymous_access_token?: string;
|
|
30286
|
+
};
|
|
30287
|
+
path: {
|
|
30288
|
+
/**
|
|
30289
|
+
* Service agent id (agent_…) or its short identity number, from agent creation or listing.
|
|
30290
|
+
*/
|
|
30291
|
+
agent_id: string;
|
|
30292
|
+
};
|
|
30293
|
+
query?: never;
|
|
30294
|
+
url: '/agent/v1/agents/{agent_id}/customers/auth/grant_codes';
|
|
30295
|
+
};
|
|
30296
|
+
export type CreateCustomerGrantCodeErrors = {
|
|
30297
|
+
/**
|
|
30298
|
+
* INVALID_PARAMS: an unknown field, a reserved or malformed customer_id, an origin outside the policy, a value outside its range, or an anonymous_access_token that is not a live anonymous token of this agent. The message names the field to correct.
|
|
30299
|
+
*/
|
|
30300
|
+
400: unknown;
|
|
30301
|
+
/**
|
|
30302
|
+
* Authenticate with your backend API key or a console session.
|
|
30303
|
+
*/
|
|
30304
|
+
401: unknown;
|
|
30305
|
+
/**
|
|
30306
|
+
* CUSTOMER_BLOCKED: the customer is on the agent's blocked list; unblock them in the console first.
|
|
30307
|
+
*/
|
|
30308
|
+
403: unknown;
|
|
30309
|
+
/**
|
|
30310
|
+
* The agent is not an active service agent of your organization, or the caller is a customer access token.
|
|
30311
|
+
*/
|
|
30312
|
+
404: unknown;
|
|
30313
|
+
};
|
|
30314
|
+
export type CreateCustomerGrantCodeResponses = {
|
|
30315
|
+
/**
|
|
30316
|
+
* The one-time grant code and its expiry. Only its hash is stored; it cannot be read again.
|
|
30317
|
+
*/
|
|
30318
|
+
201: {
|
|
30319
|
+
/**
|
|
30320
|
+
* Object type, always customer_grant_code.
|
|
30321
|
+
*/
|
|
30322
|
+
type: 'customer_grant_code';
|
|
30323
|
+
/**
|
|
30324
|
+
* One-time grant code (cgc_…). Hand it to Agent Kit in the browser, which exchanges it for an access token; it is never shown again.
|
|
30325
|
+
*/
|
|
30326
|
+
code: string;
|
|
30327
|
+
/**
|
|
30328
|
+
* The customer_id that the code signs in.
|
|
30329
|
+
*/
|
|
30330
|
+
customer_id: string;
|
|
30331
|
+
/**
|
|
30332
|
+
* RFC 3339 time after which the code can no longer be exchanged.
|
|
30333
|
+
*/
|
|
30334
|
+
expires_at: string;
|
|
30335
|
+
};
|
|
30336
|
+
};
|
|
30337
|
+
export type CreateCustomerGrantCodeResponse = CreateCustomerGrantCodeResponses[keyof CreateCustomerGrantCodeResponses];
|
|
30338
|
+
export type CreateCustomerAccessTokenData = {
|
|
30339
|
+
/**
|
|
30340
|
+
* Exactly one of grant_code (a signed-in customer) or publishable_key (an anonymous visitor).
|
|
30341
|
+
*/
|
|
30342
|
+
body: {
|
|
30343
|
+
/**
|
|
30344
|
+
* The grant code your backend received from grant_codes. It works once.
|
|
30345
|
+
*/
|
|
30346
|
+
grant_code: string;
|
|
30347
|
+
} | {
|
|
30348
|
+
/**
|
|
30349
|
+
* The agent's publishable key, for a visitor who has not signed in. Creates a new anonymous customer.
|
|
30350
|
+
*/
|
|
30351
|
+
publishable_key: string;
|
|
30352
|
+
};
|
|
30353
|
+
headers?: {
|
|
30354
|
+
/**
|
|
30355
|
+
* Browser page origin. Required for publishable_key and for a grant code bound to an origin; it must be in the agent's allowed_origins.
|
|
30356
|
+
*/
|
|
30357
|
+
Origin?: string;
|
|
30358
|
+
};
|
|
30359
|
+
path: {
|
|
30360
|
+
/**
|
|
30361
|
+
* Service agent id (agent_…) or its short identity number, from agent creation or listing.
|
|
30362
|
+
*/
|
|
30363
|
+
agent_id: string;
|
|
30364
|
+
};
|
|
30365
|
+
query?: never;
|
|
30366
|
+
url: '/agent/v1/agents/{agent_id}/customers/auth/access_tokens';
|
|
30367
|
+
};
|
|
30368
|
+
export type CreateCustomerAccessTokenErrors = {
|
|
30369
|
+
/**
|
|
30370
|
+
* INVALID_PARAMS: send exactly one of grant_code or publishable_key, nothing else.
|
|
30371
|
+
*/
|
|
30372
|
+
400: unknown;
|
|
30373
|
+
/**
|
|
30374
|
+
* GRANT_CODE_INVALID: the code is unknown, already used, expired or for another agent (one answer for all four); request a new grant code from your backend. UNAUTHENTICATED: the publishable key is unknown, disabled or for another agent.
|
|
30375
|
+
*/
|
|
30376
|
+
401: unknown;
|
|
30377
|
+
/**
|
|
30378
|
+
* EMBED_BUDGET_EXHAUSTED: the publishable key's daily spending cap is reached; wait for the UTC reset or ask the owner to raise it.
|
|
30379
|
+
*/
|
|
30380
|
+
402: unknown;
|
|
30381
|
+
/**
|
|
30382
|
+
* ORIGIN_NOT_ALLOWED or EMBED_ORIGIN_NOT_ALLOWED: call from the origin the code was issued for, or from one in the agent's allowed_origins. CUSTOMER_BLOCKED: the merchant blocked this customer.
|
|
30383
|
+
*/
|
|
30384
|
+
403: unknown;
|
|
30385
|
+
/**
|
|
30386
|
+
* EMBED_RATE_LIMITED: the per-IP minute limit or the key's daily session cap is reached; wait for Retry-After or the UTC reset.
|
|
30387
|
+
*/
|
|
30388
|
+
429: unknown;
|
|
30389
|
+
/**
|
|
30390
|
+
* Issuance or rate limiting is unavailable; retry later with a new grant code if this one expires.
|
|
30391
|
+
*/
|
|
30392
|
+
503: unknown;
|
|
30393
|
+
};
|
|
30394
|
+
export type CreateCustomerAccessTokenResponses = {
|
|
30395
|
+
/**
|
|
30396
|
+
* A customer access token, its expiry and the end of the sign-in.
|
|
30397
|
+
*/
|
|
30398
|
+
201: {
|
|
30399
|
+
/**
|
|
30400
|
+
* Object type, always customer_access_token.
|
|
30401
|
+
*/
|
|
30402
|
+
type: 'customer_access_token';
|
|
30403
|
+
/**
|
|
30404
|
+
* Bearer credential for this agent's sessions on behalf of the customer. Renew it before expires_at.
|
|
30405
|
+
*/
|
|
30406
|
+
access_token: string;
|
|
30407
|
+
/**
|
|
30408
|
+
* RFC 3339 expiry of this access token: at most two hours after issue and never after session_expires_at.
|
|
30409
|
+
*/
|
|
30410
|
+
expires_at: string;
|
|
30411
|
+
/**
|
|
30412
|
+
* RFC 3339 end of the sign-in. Renewal stops working here; the customer signs in again with a new grant code.
|
|
30413
|
+
*/
|
|
30414
|
+
session_expires_at: string;
|
|
30415
|
+
/**
|
|
30416
|
+
* The customer this token acts for.
|
|
30417
|
+
*/
|
|
30418
|
+
customer: {
|
|
30419
|
+
/**
|
|
30420
|
+
* The customer id: your customer_id, or anon_ followed by 16 characters for an anonymous customer.
|
|
30421
|
+
*/
|
|
30422
|
+
id: string;
|
|
30423
|
+
/**
|
|
30424
|
+
* identified: signed in through a grant code from your backend. anonymous: a visitor admitted with the publishable key.
|
|
30425
|
+
*/
|
|
30426
|
+
type: 'identified' | 'anonymous';
|
|
30427
|
+
};
|
|
30428
|
+
};
|
|
30429
|
+
};
|
|
30430
|
+
export type CreateCustomerAccessTokenResponse = CreateCustomerAccessTokenResponses[keyof CreateCustomerAccessTokenResponses];
|
|
30431
|
+
export type RenewCustomerAccessTokenData = {
|
|
30432
|
+
body?: never;
|
|
30433
|
+
path: {
|
|
30434
|
+
/**
|
|
30435
|
+
* Service agent id (agent_…) or its short identity number, from agent creation or listing.
|
|
30436
|
+
*/
|
|
30437
|
+
agent_id: string;
|
|
30438
|
+
};
|
|
30439
|
+
query?: never;
|
|
30440
|
+
url: '/agent/v1/agents/{agent_id}/customers/auth/access_tokens/renew';
|
|
30441
|
+
};
|
|
30442
|
+
export type RenewCustomerAccessTokenErrors = {
|
|
30443
|
+
/**
|
|
30444
|
+
* ACCESS_TOKEN_REVOKED: the token or its sign-in was revoked (logout, merge, or revocation by the merchant); sign the customer in again with a new grant code. Other 401 responses mean the Bearer token is missing, invalid or expired; renew before expires_at. CUSTOMER_SESSION_EXPIRED: less than 60 seconds of the sign-in remain; sign in again: request a new grant code from your backend.
|
|
30445
|
+
*/
|
|
30446
|
+
401: unknown;
|
|
30447
|
+
/**
|
|
30448
|
+
* CUSTOMER_BLOCKED: the merchant blocked this customer; unblock them before signing them in. ORIGIN_NOT_ALLOWED: the request Origin is not the origin this sign-in is bound to, or is not in the agent's allowed_origins; call from the page that signed in.
|
|
30449
|
+
*/
|
|
30450
|
+
403: unknown;
|
|
30451
|
+
/**
|
|
30452
|
+
* The token belongs to another agent, is not a customer access token, or the agent is archived or absent; use the agent_id the token was issued for.
|
|
30453
|
+
*/
|
|
30454
|
+
404: unknown;
|
|
30455
|
+
};
|
|
30456
|
+
export type RenewCustomerAccessTokenResponses = {
|
|
30457
|
+
/**
|
|
30458
|
+
* A new access token in the same sign-in. The presented token stays valid until its own expiry.
|
|
30459
|
+
*/
|
|
30460
|
+
201: {
|
|
30461
|
+
/**
|
|
30462
|
+
* Object type, always customer_access_token.
|
|
30463
|
+
*/
|
|
30464
|
+
type: 'customer_access_token';
|
|
30465
|
+
/**
|
|
30466
|
+
* Bearer credential for this agent's sessions on behalf of the customer. Renew it before expires_at.
|
|
30467
|
+
*/
|
|
30468
|
+
access_token: string;
|
|
30469
|
+
/**
|
|
30470
|
+
* RFC 3339 expiry of this access token: at most two hours after issue and never after session_expires_at.
|
|
30471
|
+
*/
|
|
30472
|
+
expires_at: string;
|
|
30473
|
+
/**
|
|
30474
|
+
* RFC 3339 end of the sign-in. Renewal stops working here; the customer signs in again with a new grant code.
|
|
30475
|
+
*/
|
|
30476
|
+
session_expires_at: string;
|
|
30477
|
+
/**
|
|
30478
|
+
* The customer this token acts for.
|
|
30479
|
+
*/
|
|
30480
|
+
customer: {
|
|
30481
|
+
/**
|
|
30482
|
+
* The customer id: your customer_id, or anon_ followed by 16 characters for an anonymous customer.
|
|
30483
|
+
*/
|
|
30484
|
+
id: string;
|
|
30485
|
+
/**
|
|
30486
|
+
* identified: signed in through a grant code from your backend. anonymous: a visitor admitted with the publishable key.
|
|
30487
|
+
*/
|
|
30488
|
+
type: 'identified' | 'anonymous';
|
|
30489
|
+
};
|
|
30490
|
+
};
|
|
30491
|
+
};
|
|
30492
|
+
export type RenewCustomerAccessTokenResponse = RenewCustomerAccessTokenResponses[keyof RenewCustomerAccessTokenResponses];
|
|
30493
|
+
export type DeleteCurrentCustomerAccessTokenData = {
|
|
30494
|
+
body?: never;
|
|
30495
|
+
path: {
|
|
30496
|
+
/**
|
|
30497
|
+
* Service agent id (agent_…) or its short identity number, from agent creation or listing.
|
|
30498
|
+
*/
|
|
30499
|
+
agent_id: string;
|
|
30500
|
+
};
|
|
30501
|
+
query?: never;
|
|
30502
|
+
url: '/agent/v1/agents/{agent_id}/customers/auth/access_tokens/current';
|
|
30503
|
+
};
|
|
30504
|
+
export type DeleteCurrentCustomerAccessTokenErrors = {
|
|
30505
|
+
/**
|
|
30506
|
+
* ACCESS_TOKEN_REVOKED: the token or its sign-in was revoked (logout, merge, or revocation by the merchant); sign the customer in again with a new grant code. Other 401 responses mean the Bearer token is missing, invalid or expired; renew before expires_at.
|
|
30507
|
+
*/
|
|
30508
|
+
401: unknown;
|
|
30509
|
+
/**
|
|
30510
|
+
* CUSTOMER_BLOCKED: the merchant blocked this customer; unblock them before signing them in. ORIGIN_NOT_ALLOWED: the request Origin is not the origin this sign-in is bound to, or is not in the agent's allowed_origins; call from the page that signed in.
|
|
30511
|
+
*/
|
|
30512
|
+
403: unknown;
|
|
30513
|
+
/**
|
|
30514
|
+
* The token belongs to another agent, is not a customer access token, or the agent is archived or absent; use the agent_id the token was issued for.
|
|
30515
|
+
*/
|
|
30516
|
+
404: unknown;
|
|
30517
|
+
};
|
|
30518
|
+
export type DeleteCurrentCustomerAccessTokenResponses = {
|
|
30519
|
+
/**
|
|
30520
|
+
* Logged out: the sign-in and every access token in it are revoked, and their live event streams close.
|
|
30521
|
+
*/
|
|
30522
|
+
204: void;
|
|
30523
|
+
};
|
|
30524
|
+
export type DeleteCurrentCustomerAccessTokenResponse = DeleteCurrentCustomerAccessTokenResponses[keyof DeleteCurrentCustomerAccessTokenResponses];
|
|
30136
30525
|
export type ExchangeEmbedCodeData = {
|
|
30137
30526
|
body: {
|
|
30138
30527
|
/**
|
|
@@ -30149,6 +30538,14 @@ export type ExchangeEmbedCodeErrors = {
|
|
|
30149
30538
|
* Expected a JSON object containing only code. Correct the request body.
|
|
30150
30539
|
*/
|
|
30151
30540
|
400: unknown;
|
|
30541
|
+
/**
|
|
30542
|
+
* The API key is missing, invalid or revoked. Send a valid key as X-API-Key or as a Bearer token.
|
|
30543
|
+
*/
|
|
30544
|
+
401: unknown;
|
|
30545
|
+
/**
|
|
30546
|
+
* permission_error: the credential's role or bound resources do not allow this operation. Use a key with access to the agent domain and its resources.
|
|
30547
|
+
*/
|
|
30548
|
+
403: unknown;
|
|
30152
30549
|
/**
|
|
30153
30550
|
* The code is expired, already used or unknown. Return to the host website for a new link; all three cases have the same response body.
|
|
30154
30551
|
*/
|
|
@@ -30277,6 +30674,10 @@ export type ListEmbedTokensErrors = {
|
|
|
30277
30674
|
* Authenticate with a host credential.
|
|
30278
30675
|
*/
|
|
30279
30676
|
401: unknown;
|
|
30677
|
+
/**
|
|
30678
|
+
* permission_error: the credential's role or bound resources do not allow this operation. Use a key with access to the agent domain and its resources.
|
|
30679
|
+
*/
|
|
30680
|
+
403: unknown;
|
|
30280
30681
|
/**
|
|
30281
30682
|
* The grant is missing or belongs to another organization, or the caller is an end user.
|
|
30282
30683
|
*/
|
|
@@ -30481,6 +30882,10 @@ export type RevokeEmbedTokenErrors = {
|
|
|
30481
30882
|
* Authenticate with a host credential.
|
|
30482
30883
|
*/
|
|
30483
30884
|
401: unknown;
|
|
30885
|
+
/**
|
|
30886
|
+
* permission_error: the credential's role or bound resources do not allow this operation. Use a key with access to the agent domain and its resources.
|
|
30887
|
+
*/
|
|
30888
|
+
403: unknown;
|
|
30484
30889
|
/**
|
|
30485
30890
|
* The grant is missing or belongs to another organization, or the caller is an end user.
|
|
30486
30891
|
*/
|
|
@@ -32323,6 +32728,10 @@ export type ListToolsetsErrors = {
|
|
|
32323
32728
|
* Authentication required
|
|
32324
32729
|
*/
|
|
32325
32730
|
401: unknown;
|
|
32731
|
+
/**
|
|
32732
|
+
* permission_error: the credential's role or bound resources do not allow this operation. Use a key with access to the agent domain and its resources.
|
|
32733
|
+
*/
|
|
32734
|
+
403: unknown;
|
|
32326
32735
|
/**
|
|
32327
32736
|
* Toolset catalog unavailable
|
|
32328
32737
|
*/
|
|
@@ -32425,6 +32834,10 @@ export type GetSessionContextErrors = {
|
|
|
32425
32834
|
* Authentication required
|
|
32426
32835
|
*/
|
|
32427
32836
|
401: unknown;
|
|
32837
|
+
/**
|
|
32838
|
+
* permission_error: the credential's role or bound resources do not allow this operation. Use a key with access to the agent domain and its resources.
|
|
32839
|
+
*/
|
|
32840
|
+
403: unknown;
|
|
32428
32841
|
/**
|
|
32429
32842
|
* Session not found
|
|
32430
32843
|
*/
|
|
@@ -32664,6 +33077,10 @@ export type ForkSessionErrors = {
|
|
|
32664
33077
|
* Authentication required
|
|
32665
33078
|
*/
|
|
32666
33079
|
401: unknown;
|
|
33080
|
+
/**
|
|
33081
|
+
* permission_error: the credential's role or bound resources do not allow this operation. Use a key with access to the agent domain and its resources.
|
|
33082
|
+
*/
|
|
33083
|
+
403: unknown;
|
|
32667
33084
|
/**
|
|
32668
33085
|
* Session not found
|
|
32669
33086
|
*/
|
|
@@ -32785,12 +33202,9 @@ export type ForkSessionResponses = {
|
|
|
32785
33202
|
*/
|
|
32786
33203
|
model: {
|
|
32787
33204
|
/**
|
|
32788
|
-
*
|
|
32789
|
-
*
|
|
32790
|
-
* See [models](https://docs.anthropic.com/en/docs/models-overview) for additional
|
|
32791
|
-
* details and options.
|
|
33205
|
+
* A model id from the Praxis model catalog (`praxis.model.models.list`). Unlike Anthropic, Claude model ids other than those in the catalog are rejected.
|
|
32792
33206
|
*/
|
|
32793
|
-
id:
|
|
33207
|
+
id: string;
|
|
32794
33208
|
/**
|
|
32795
33209
|
* How hard Claude works on each turn. Sets `output_config.effort` on every
|
|
32796
33210
|
* Messages call the session makes.
|
|
@@ -32950,12 +33364,9 @@ export type ForkSessionResponses = {
|
|
|
32950
33364
|
*/
|
|
32951
33365
|
model: {
|
|
32952
33366
|
/**
|
|
32953
|
-
*
|
|
32954
|
-
*
|
|
32955
|
-
* See [models](https://docs.anthropic.com/en/docs/models-overview) for additional
|
|
32956
|
-
* details and options.
|
|
33367
|
+
* A model id from the Praxis model catalog (`praxis.model.models.list`). Unlike Anthropic, Claude model ids other than those in the catalog are rejected.
|
|
32957
33368
|
*/
|
|
32958
|
-
id:
|
|
33369
|
+
id: string;
|
|
32959
33370
|
/**
|
|
32960
33371
|
* How hard Claude works on each turn. Sets `output_config.effort` on every
|
|
32961
33372
|
* Messages call the session makes.
|
|
@@ -33003,7 +33414,7 @@ export type ForkSessionResponses = {
|
|
|
33003
33414
|
*/
|
|
33004
33415
|
name: string;
|
|
33005
33416
|
/**
|
|
33006
|
-
*
|
|
33417
|
+
* Custom skills attached to the agent, each {type: "custom", skill_id, version?}: skill_id comes from skills.create or skills.list, at most 20 skills, no repeated skill_id. Omit version, or send "latest", to use the skill's newest version at the moment a session starts; a pinned version stays fixed. type anthropic returns 400: upload the skill and attach it as custom. On update, omit the field to keep the list, send an array to replace it, or send [] or null to clear it.
|
|
33007
33418
|
*/
|
|
33008
33419
|
skills: Array<{
|
|
33009
33420
|
/**
|
|
@@ -33015,7 +33426,7 @@ export type ForkSessionResponses = {
|
|
|
33015
33426
|
*/
|
|
33016
33427
|
type: 'anthropic';
|
|
33017
33428
|
/**
|
|
33018
|
-
* Version of the skill; a
|
|
33429
|
+
* Version of the skill: omit or `latest` to follow the newest version at each new session; give a version id to pin it.
|
|
33019
33430
|
*/
|
|
33020
33431
|
version: string;
|
|
33021
33432
|
} | {
|
|
@@ -33028,7 +33439,7 @@ export type ForkSessionResponses = {
|
|
|
33028
33439
|
*/
|
|
33029
33440
|
type: 'custom';
|
|
33030
33441
|
/**
|
|
33031
|
-
* Version of the skill; a
|
|
33442
|
+
* Version of the skill: omit or `latest` to follow the newest version at each new session; give a version id to pin it.
|
|
33032
33443
|
*/
|
|
33033
33444
|
version: string;
|
|
33034
33445
|
}>;
|
|
@@ -33483,7 +33894,7 @@ export type ForkSessionResponses = {
|
|
|
33483
33894
|
*/
|
|
33484
33895
|
type: 'agent';
|
|
33485
33896
|
/**
|
|
33486
|
-
* The agent
|
|
33897
|
+
* The latest saved version of the agent, the editable head; it differs from active_version after a save with apply false. Starts at 1 and increments each time the agent is modified.
|
|
33487
33898
|
*/
|
|
33488
33899
|
version: number;
|
|
33489
33900
|
}>;
|
|
@@ -33497,7 +33908,7 @@ export type ForkSessionResponses = {
|
|
|
33497
33908
|
*/
|
|
33498
33909
|
name: string;
|
|
33499
33910
|
/**
|
|
33500
|
-
*
|
|
33911
|
+
* Custom skills attached to the agent, each {type: "custom", skill_id, version?}: skill_id comes from skills.create or skills.list, at most 20 skills, no repeated skill_id. Omit version, or send "latest", to use the skill's newest version at the moment a session starts; a pinned version stays fixed. type anthropic returns 400: upload the skill and attach it as custom. On update, omit the field to keep the list, send an array to replace it, or send [] or null to clear it.
|
|
33501
33912
|
*/
|
|
33502
33913
|
skills: Array<{
|
|
33503
33914
|
/**
|
|
@@ -33509,7 +33920,7 @@ export type ForkSessionResponses = {
|
|
|
33509
33920
|
*/
|
|
33510
33921
|
type: 'anthropic';
|
|
33511
33922
|
/**
|
|
33512
|
-
* Version of the skill; a
|
|
33923
|
+
* Version of the skill: omit or `latest` to follow the newest version at each new session; give a version id to pin it.
|
|
33513
33924
|
*/
|
|
33514
33925
|
version: string;
|
|
33515
33926
|
} | {
|
|
@@ -33522,7 +33933,7 @@ export type ForkSessionResponses = {
|
|
|
33522
33933
|
*/
|
|
33523
33934
|
type: 'custom';
|
|
33524
33935
|
/**
|
|
33525
|
-
* Version of the skill; a
|
|
33936
|
+
* Version of the skill: omit or `latest` to follow the newest version at each new session; give a version id to pin it.
|
|
33526
33937
|
*/
|
|
33527
33938
|
version: string;
|
|
33528
33939
|
}>;
|
|
@@ -33977,7 +34388,7 @@ export type ForkSessionResponses = {
|
|
|
33977
34388
|
*/
|
|
33978
34389
|
type: 'agent';
|
|
33979
34390
|
/**
|
|
33980
|
-
* The agent
|
|
34391
|
+
* The latest saved version of the agent, the editable head; it differs from active_version after a save with apply false. Starts at 1 and increments each time the agent is modified.
|
|
33981
34392
|
*/
|
|
33982
34393
|
version: number;
|
|
33983
34394
|
};
|
|
@@ -34017,7 +34428,7 @@ export type ForkSessionResponses = {
|
|
|
34017
34428
|
*/
|
|
34018
34429
|
created_at: string;
|
|
34019
34430
|
/**
|
|
34020
|
-
* Execution environment
|
|
34431
|
+
* Execution environment of this session. A service session created without environment_id uses the default environment saved in the agent version (light for a new agent); null means it was created without a machine; Computer sessions may omit this field.
|
|
34021
34432
|
*/
|
|
34022
34433
|
environment_id?: string;
|
|
34023
34434
|
/**
|
|
@@ -34375,6 +34786,10 @@ export type ListSessionBackgroundTasksErrors = {
|
|
|
34375
34786
|
* Authentication required
|
|
34376
34787
|
*/
|
|
34377
34788
|
401: unknown;
|
|
34789
|
+
/**
|
|
34790
|
+
* permission_error: the credential's role or bound resources do not allow this operation. Use a key with access to the agent domain and its resources.
|
|
34791
|
+
*/
|
|
34792
|
+
403: unknown;
|
|
34378
34793
|
/**
|
|
34379
34794
|
* Session not found
|
|
34380
34795
|
*/
|
|
@@ -34474,6 +34889,10 @@ export type GetSessionBackgroundTaskOutputErrors = {
|
|
|
34474
34889
|
* Authentication required
|
|
34475
34890
|
*/
|
|
34476
34891
|
401: unknown;
|
|
34892
|
+
/**
|
|
34893
|
+
* permission_error: the credential's role or bound resources do not allow this operation. Use a key with access to the agent domain and its resources.
|
|
34894
|
+
*/
|
|
34895
|
+
403: unknown;
|
|
34477
34896
|
/**
|
|
34478
34897
|
* Session not found
|
|
34479
34898
|
*/
|
|
@@ -34535,6 +34954,10 @@ export type StopSessionBackgroundTaskErrors = {
|
|
|
34535
34954
|
* Authentication required
|
|
34536
34955
|
*/
|
|
34537
34956
|
401: unknown;
|
|
34957
|
+
/**
|
|
34958
|
+
* permission_error: the credential's role or bound resources do not allow this operation. Use a key with access to the agent domain and its resources.
|
|
34959
|
+
*/
|
|
34960
|
+
403: unknown;
|
|
34538
34961
|
/**
|
|
34539
34962
|
* Session not found
|
|
34540
34963
|
*/
|
|
@@ -34631,6 +35054,10 @@ export type CompactSessionErrors = {
|
|
|
34631
35054
|
* Authentication required
|
|
34632
35055
|
*/
|
|
34633
35056
|
401: unknown;
|
|
35057
|
+
/**
|
|
35058
|
+
* permission_error: the credential's role or bound resources do not allow this operation. Use a key with access to the agent domain and its resources.
|
|
35059
|
+
*/
|
|
35060
|
+
403: unknown;
|
|
34634
35061
|
/**
|
|
34635
35062
|
* Session not found
|
|
34636
35063
|
*/
|
|
@@ -34709,6 +35136,10 @@ export type GetSessionCompactionErrors = {
|
|
|
34709
35136
|
* Authentication required
|
|
34710
35137
|
*/
|
|
34711
35138
|
401: unknown;
|
|
35139
|
+
/**
|
|
35140
|
+
* permission_error: the credential's role or bound resources do not allow this operation. Use a key with access to the agent domain and its resources.
|
|
35141
|
+
*/
|
|
35142
|
+
403: unknown;
|
|
34712
35143
|
/**
|
|
34713
35144
|
* Session or compaction operation not found
|
|
34714
35145
|
*/
|
|
@@ -34762,6 +35193,10 @@ export type ListSessionCompactionsErrors = {
|
|
|
34762
35193
|
* Authentication required
|
|
34763
35194
|
*/
|
|
34764
35195
|
401: unknown;
|
|
35196
|
+
/**
|
|
35197
|
+
* permission_error: the credential's role or bound resources do not allow this operation. Use a key with access to the agent domain and its resources.
|
|
35198
|
+
*/
|
|
35199
|
+
403: unknown;
|
|
34765
35200
|
/**
|
|
34766
35201
|
* Session not found
|
|
34767
35202
|
*/
|
|
@@ -34857,6 +35292,10 @@ export type GetEmbedAppearanceErrors = {
|
|
|
34857
35292
|
* Supply a valid embed token or an active publishable key; organization member credentials cannot read this surface.
|
|
34858
35293
|
*/
|
|
34859
35294
|
401: unknown;
|
|
35295
|
+
/**
|
|
35296
|
+
* permission_error: the credential's role or bound resources do not allow this operation. Use a key with access to the agent domain and its resources.
|
|
35297
|
+
*/
|
|
35298
|
+
403: unknown;
|
|
34860
35299
|
/**
|
|
34861
35300
|
* The credential's service agent is absent or archived; obtain credentials for an active service agent.
|
|
34862
35301
|
*/
|
|
@@ -34893,13 +35332,63 @@ export type GetEmbedAppearanceResponses = {
|
|
|
34893
35332
|
*/
|
|
34894
35333
|
launcher?: {
|
|
34895
35334
|
/**
|
|
34896
|
-
* Entry control: none hides the launcher, bubble shows a button, mascot shows the
|
|
35335
|
+
* Entry control: none hides the launcher, bubble shows a button, mascot shows a character that reacts while the visitor types and the agent thinks and answers. A mascot needs pack.
|
|
34897
35336
|
*/
|
|
34898
35337
|
type: 'none' | 'bubble' | 'mascot';
|
|
34899
35338
|
/**
|
|
34900
|
-
*
|
|
35339
|
+
* Mascot images: exactly one of preset or images. Send pack, not image.
|
|
35340
|
+
*/
|
|
35341
|
+
pack?: {
|
|
35342
|
+
/**
|
|
35343
|
+
* Built-in character: mint (mint support girl), cat (cat-eared girl) or bot (small robot).
|
|
35344
|
+
*/
|
|
35345
|
+
preset?: 'mint' | 'cat' | 'bot';
|
|
35346
|
+
/**
|
|
35347
|
+
* One HTTPS image per slot; only idle is required and a missing slot shows idle. Use 2:3 canvases with the feet bottom-centered on a transparent background; PNG or WebP stay still, GIF, WebP and APNG play as they are.
|
|
35348
|
+
*/
|
|
35349
|
+
images?: {
|
|
35350
|
+
/**
|
|
35351
|
+
* Resting state.
|
|
35352
|
+
*/
|
|
35353
|
+
idle: string;
|
|
35354
|
+
/**
|
|
35355
|
+
* Page open and while the greeting bubble shows.
|
|
35356
|
+
*/
|
|
35357
|
+
greet?: string;
|
|
35358
|
+
/**
|
|
35359
|
+
* The visitor is typing in the composer.
|
|
35360
|
+
*/
|
|
35361
|
+
listening?: string;
|
|
35362
|
+
/**
|
|
35363
|
+
* After the visitor sends, before the first reply text.
|
|
35364
|
+
*/
|
|
35365
|
+
thinking?: string;
|
|
35366
|
+
/**
|
|
35367
|
+
* While the reply streams; alternates with talking-2 every 220 ms.
|
|
35368
|
+
*/
|
|
35369
|
+
talking?: string;
|
|
35370
|
+
/**
|
|
35371
|
+
* Second mouth frame of talking, mouth closed; without it talking alternates with idle.
|
|
35372
|
+
*/
|
|
35373
|
+
'talking-2'?: string;
|
|
35374
|
+
/**
|
|
35375
|
+
* The last turn failed or was refused.
|
|
35376
|
+
*/
|
|
35377
|
+
sorry?: string;
|
|
35378
|
+
/**
|
|
35379
|
+
* No interaction for 60 seconds; hover or click wakes the mascot.
|
|
35380
|
+
*/
|
|
35381
|
+
sleep?: string;
|
|
35382
|
+
};
|
|
35383
|
+
};
|
|
35384
|
+
/**
|
|
35385
|
+
* Legacy single mascot image, read as pack.images.idle. When pack is present, pack wins.
|
|
34901
35386
|
*/
|
|
34902
35387
|
image?: string;
|
|
35388
|
+
/**
|
|
35389
|
+
* float (default) gently floats the mascot, bounces on hover and waves with the greeting; none keeps it still. Reduced-motion settings always win.
|
|
35390
|
+
*/
|
|
35391
|
+
motion?: 'float' | 'none';
|
|
34903
35392
|
/**
|
|
34904
35393
|
* Launcher corner: bottom-right is the default; bottom-left uses the opposite corner.
|
|
34905
35394
|
*/
|
|
@@ -42606,6 +43095,24 @@ export type SessionsDeleteData = {
|
|
|
42606
43095
|
query?: never;
|
|
42607
43096
|
url: '/agent/v1/sessions/{session_id}';
|
|
42608
43097
|
};
|
|
43098
|
+
export type SessionsDeleteErrors = {
|
|
43099
|
+
/**
|
|
43100
|
+
* The API key is missing, invalid or revoked. Send a valid key as X-API-Key or as a Bearer token.
|
|
43101
|
+
*/
|
|
43102
|
+
401: unknown;
|
|
43103
|
+
/**
|
|
43104
|
+
* permission_error: the credential's role or bound resources do not allow this operation. Use a key with access to the agent domain and its resources.
|
|
43105
|
+
*/
|
|
43106
|
+
403: unknown;
|
|
43107
|
+
/**
|
|
43108
|
+
* Session not found: the id does not exist in your organization. Take ids from sessions.list or sessions.create.
|
|
43109
|
+
*/
|
|
43110
|
+
404: unknown;
|
|
43111
|
+
/**
|
|
43112
|
+
* INVALID_STATE: the session is running. Interrupt it or wait until it is idle or terminated, then delete.
|
|
43113
|
+
*/
|
|
43114
|
+
409: unknown;
|
|
43115
|
+
};
|
|
42609
43116
|
export type SessionsDeleteResponses = {
|
|
42610
43117
|
/**
|
|
42611
43118
|
* Successful response
|
|
@@ -42624,6 +43131,20 @@ export type SessionsRetrieveData = {
|
|
|
42624
43131
|
query?: never;
|
|
42625
43132
|
url: '/agent/v1/sessions/{session_id}';
|
|
42626
43133
|
};
|
|
43134
|
+
export type SessionsRetrieveErrors = {
|
|
43135
|
+
/**
|
|
43136
|
+
* The API key is missing, invalid or revoked. Send a valid key as X-API-Key or as a Bearer token.
|
|
43137
|
+
*/
|
|
43138
|
+
401: unknown;
|
|
43139
|
+
/**
|
|
43140
|
+
* permission_error: the credential's role or bound resources do not allow this operation. Use a key with access to the agent domain and its resources.
|
|
43141
|
+
*/
|
|
43142
|
+
403: unknown;
|
|
43143
|
+
/**
|
|
43144
|
+
* Session not found: the id does not exist in your organization. Take ids from sessions.list or sessions.create.
|
|
43145
|
+
*/
|
|
43146
|
+
404: unknown;
|
|
43147
|
+
};
|
|
42627
43148
|
export type SessionsRetrieveResponses = {
|
|
42628
43149
|
/**
|
|
42629
43150
|
* Successful response
|
|
@@ -42655,12 +43176,9 @@ export type SessionsRetrieveResponses = {
|
|
|
42655
43176
|
*/
|
|
42656
43177
|
model: {
|
|
42657
43178
|
/**
|
|
42658
|
-
*
|
|
42659
|
-
*
|
|
42660
|
-
* See [models](https://docs.anthropic.com/en/docs/models-overview) for additional
|
|
42661
|
-
* details and options.
|
|
43179
|
+
* A model id from the Praxis model catalog (`praxis.model.models.list`). Unlike Anthropic, Claude model ids other than those in the catalog are rejected.
|
|
42662
43180
|
*/
|
|
42663
|
-
id:
|
|
43181
|
+
id: string;
|
|
42664
43182
|
/**
|
|
42665
43183
|
* How hard Claude works on each turn. Sets `output_config.effort` on every
|
|
42666
43184
|
* Messages call the session makes.
|
|
@@ -42697,7 +43215,7 @@ export type SessionsRetrieveResponses = {
|
|
|
42697
43215
|
*/
|
|
42698
43216
|
name: string;
|
|
42699
43217
|
/**
|
|
42700
|
-
*
|
|
43218
|
+
* Custom skills attached to the agent, each {type: "custom", skill_id, version?}: skill_id comes from skills.create or skills.list, at most 20 skills, no repeated skill_id. Omit version, or send "latest", to use the skill's newest version at the moment a session starts; a pinned version stays fixed. type anthropic returns 400: upload the skill and attach it as custom. On update, omit the field to keep the list, send an array to replace it, or send [] or null to clear it.
|
|
42701
43219
|
*/
|
|
42702
43220
|
skills: Array<AgentManaged42 | AgentManaged43>;
|
|
42703
43221
|
/**
|
|
@@ -42713,7 +43231,7 @@ export type SessionsRetrieveResponses = {
|
|
|
42713
43231
|
*/
|
|
42714
43232
|
type: 'agent';
|
|
42715
43233
|
/**
|
|
42716
|
-
* The agent
|
|
43234
|
+
* The latest saved version of the agent, the editable head; it differs from active_version after a save with apply false. Starts at 1 and increments each time the agent is modified.
|
|
42717
43235
|
*/
|
|
42718
43236
|
version: number;
|
|
42719
43237
|
};
|
|
@@ -42731,7 +43249,7 @@ export type SessionsRetrieveResponses = {
|
|
|
42731
43249
|
*/
|
|
42732
43250
|
created_at: string;
|
|
42733
43251
|
/**
|
|
42734
|
-
* Execution environment
|
|
43252
|
+
* Execution environment of this session. A service session created without environment_id uses the default environment saved in the agent version (light for a new agent); null means it was created without a machine; Computer sessions may omit this field.
|
|
42735
43253
|
*/
|
|
42736
43254
|
environment_id?: string;
|
|
42737
43255
|
metadata: AgentManaged173;
|
|
@@ -42853,13 +43371,6 @@ export type SessionsRetrieveResponses = {
|
|
|
42853
43371
|
export type SessionsRetrieveResponse = SessionsRetrieveResponses[keyof SessionsRetrieveResponses];
|
|
42854
43372
|
export type SessionsUpdateData = {
|
|
42855
43373
|
body: {
|
|
42856
|
-
/**
|
|
42857
|
-
* Mid-session agent configuration update. Only `tools` and
|
|
42858
|
-
* `mcp_servers` are updatable. Full replacement: the provided array becomes the
|
|
42859
|
-
* new value. To preserve existing entries, GET the session, modify the array, and
|
|
42860
|
-
* POST it back.
|
|
42861
|
-
*/
|
|
42862
|
-
agent?: AgentManaged182;
|
|
42863
43374
|
/**
|
|
42864
43375
|
* A hard spend ceiling. The session stops issuing new model requests
|
|
42865
43376
|
* once the tracked list cost reaches `max_list_cost`.
|
|
@@ -42902,6 +43413,28 @@ export type SessionsUpdateData = {
|
|
|
42902
43413
|
query?: never;
|
|
42903
43414
|
url: '/agent/v1/sessions/{session_id}';
|
|
42904
43415
|
};
|
|
43416
|
+
export type SessionsUpdateErrors = {
|
|
43417
|
+
/**
|
|
43418
|
+
* The body failed validation and the message names the field: an unsupported agent override, a model or thinking selection the agent does not allow, a budget limit at or below the cost already consumed, or invalid vault_ids or metadata.
|
|
43419
|
+
*/
|
|
43420
|
+
400: unknown;
|
|
43421
|
+
/**
|
|
43422
|
+
* The API key is missing, invalid or revoked. Send a valid key as X-API-Key or as a Bearer token.
|
|
43423
|
+
*/
|
|
43424
|
+
401: unknown;
|
|
43425
|
+
/**
|
|
43426
|
+
* permission_error: the credential's role or bound resources do not allow this operation. Use a key with access to the agent domain and its resources.
|
|
43427
|
+
*/
|
|
43428
|
+
403: unknown;
|
|
43429
|
+
/**
|
|
43430
|
+
* Session not found: the id does not exist in your organization. Take ids from sessions.list or sessions.create.
|
|
43431
|
+
*/
|
|
43432
|
+
404: unknown;
|
|
43433
|
+
/**
|
|
43434
|
+
* Session is archived and cannot be updated.
|
|
43435
|
+
*/
|
|
43436
|
+
409: unknown;
|
|
43437
|
+
};
|
|
42905
43438
|
export type SessionsUpdateResponses = {
|
|
42906
43439
|
/**
|
|
42907
43440
|
* Successful response
|
|
@@ -42933,12 +43466,9 @@ export type SessionsUpdateResponses = {
|
|
|
42933
43466
|
*/
|
|
42934
43467
|
model: {
|
|
42935
43468
|
/**
|
|
42936
|
-
*
|
|
42937
|
-
*
|
|
42938
|
-
* See [models](https://docs.anthropic.com/en/docs/models-overview) for additional
|
|
42939
|
-
* details and options.
|
|
43469
|
+
* A model id from the Praxis model catalog (`praxis.model.models.list`). Unlike Anthropic, Claude model ids other than those in the catalog are rejected.
|
|
42940
43470
|
*/
|
|
42941
|
-
id:
|
|
43471
|
+
id: string;
|
|
42942
43472
|
/**
|
|
42943
43473
|
* How hard Claude works on each turn. Sets `output_config.effort` on every
|
|
42944
43474
|
* Messages call the session makes.
|
|
@@ -42975,7 +43505,7 @@ export type SessionsUpdateResponses = {
|
|
|
42975
43505
|
*/
|
|
42976
43506
|
name: string;
|
|
42977
43507
|
/**
|
|
42978
|
-
*
|
|
43508
|
+
* Custom skills attached to the agent, each {type: "custom", skill_id, version?}: skill_id comes from skills.create or skills.list, at most 20 skills, no repeated skill_id. Omit version, or send "latest", to use the skill's newest version at the moment a session starts; a pinned version stays fixed. type anthropic returns 400: upload the skill and attach it as custom. On update, omit the field to keep the list, send an array to replace it, or send [] or null to clear it.
|
|
42979
43509
|
*/
|
|
42980
43510
|
skills: Array<AgentManaged42 | AgentManaged43>;
|
|
42981
43511
|
/**
|
|
@@ -42991,7 +43521,7 @@ export type SessionsUpdateResponses = {
|
|
|
42991
43521
|
*/
|
|
42992
43522
|
type: 'agent';
|
|
42993
43523
|
/**
|
|
42994
|
-
* The agent
|
|
43524
|
+
* The latest saved version of the agent, the editable head; it differs from active_version after a save with apply false. Starts at 1 and increments each time the agent is modified.
|
|
42995
43525
|
*/
|
|
42996
43526
|
version: number;
|
|
42997
43527
|
};
|
|
@@ -43009,7 +43539,7 @@ export type SessionsUpdateResponses = {
|
|
|
43009
43539
|
*/
|
|
43010
43540
|
created_at: string;
|
|
43011
43541
|
/**
|
|
43012
|
-
* Execution environment
|
|
43542
|
+
* Execution environment of this session. A service session created without environment_id uses the default environment saved in the agent version (light for a new agent); null means it was created without a machine; Computer sessions may omit this field.
|
|
43013
43543
|
*/
|
|
43014
43544
|
environment_id?: string;
|
|
43015
43545
|
metadata: AgentManaged173;
|
|
@@ -43157,6 +43687,20 @@ export type AgentsListData = {
|
|
|
43157
43687
|
};
|
|
43158
43688
|
url: '/agent/v1/agents';
|
|
43159
43689
|
};
|
|
43690
|
+
export type AgentsListErrors = {
|
|
43691
|
+
/**
|
|
43692
|
+
* include_archived is not true or false, kind is not personal or service, a created_at bound is not an RFC 3339 timestamp, or limit is not an integer from 1 to 100, or page is not a cursor from this same query. Pass next_page unchanged, with the same filters, to continue.
|
|
43693
|
+
*/
|
|
43694
|
+
400: unknown;
|
|
43695
|
+
/**
|
|
43696
|
+
* The API key is missing, invalid or revoked. Send a valid key as X-API-Key or as a Bearer token.
|
|
43697
|
+
*/
|
|
43698
|
+
401: unknown;
|
|
43699
|
+
/**
|
|
43700
|
+
* permission_error: the credential's role or bound resources do not allow this operation. Use a key with access to the agent domain and its resources.
|
|
43701
|
+
*/
|
|
43702
|
+
403: unknown;
|
|
43703
|
+
};
|
|
43160
43704
|
export type AgentsListResponses = {
|
|
43161
43705
|
/**
|
|
43162
43706
|
* Successful response
|
|
@@ -43192,12 +43736,9 @@ export type AgentsListResponses = {
|
|
|
43192
43736
|
*/
|
|
43193
43737
|
model: {
|
|
43194
43738
|
/**
|
|
43195
|
-
*
|
|
43196
|
-
*
|
|
43197
|
-
* See [models](https://docs.anthropic.com/en/docs/models-overview) for additional
|
|
43198
|
-
* details and options.
|
|
43739
|
+
* A model id from the Praxis model catalog (`praxis.model.models.list`). Unlike Anthropic, Claude model ids other than those in the catalog are rejected.
|
|
43199
43740
|
*/
|
|
43200
|
-
id:
|
|
43741
|
+
id: string;
|
|
43201
43742
|
/**
|
|
43202
43743
|
* How hard Claude works on each turn. Sets `output_config.effort` on every
|
|
43203
43744
|
* Messages call the session makes.
|
|
@@ -43233,7 +43774,7 @@ export type AgentsListResponses = {
|
|
|
43233
43774
|
*/
|
|
43234
43775
|
name: string;
|
|
43235
43776
|
/**
|
|
43236
|
-
*
|
|
43777
|
+
* Custom skills attached to the agent, each {type: "custom", skill_id, version?}: skill_id comes from skills.create or skills.list, at most 20 skills, no repeated skill_id. Omit version, or send "latest", to use the skill's newest version at the moment a session starts; a pinned version stays fixed. type anthropic returns 400: upload the skill and attach it as custom. On update, omit the field to keep the list, send an array to replace it, or send [] or null to clear it.
|
|
43237
43778
|
*/
|
|
43238
43779
|
skills: Array<AgentManaged42 | AgentManaged43>;
|
|
43239
43780
|
/**
|
|
@@ -43292,38 +43833,21 @@ export type AgentsListResponses = {
|
|
|
43292
43833
|
*/
|
|
43293
43834
|
note: string | null;
|
|
43294
43835
|
/**
|
|
43295
|
-
*
|
|
43836
|
+
* Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; personal agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A service binding opens a whole service and carries only enabled: search or browser. At most 20 bindings per type, no repeated type and id, and each service type at most once. A session is authorized by the agent version it runs: newly added bindings apply only to new sessions, and a version saved with apply=false changes no access until it is applied. Applying a version that disables, removes or downgrades a binding revokes it immediately in running sessions on older versions. A resource that is not bound returns 404, a service that is not opened returns 403, and a write to a resource bound read_only returns 403 BINDING_READ_ONLY. Unknown types, fields on the wrong kind (id, access or instructions on a service binding), wrong access and malformed ids return 400. The former databases, vector_stores and files fields are removed and return 400. Omit on create for no bindings.
|
|
43296
43837
|
*/
|
|
43297
|
-
|
|
43298
|
-
/**
|
|
43299
|
-
* Resource id from database.databases.list or database.databases.create; use the returned id, not its name. Must start with db_ and be unique within this binding array.
|
|
43300
|
-
*/
|
|
43301
|
-
id: string;
|
|
43302
|
-
/**
|
|
43303
|
-
* read_only permits reads of the bound resource; read_write permits reads and writes.
|
|
43304
|
-
*/
|
|
43305
|
-
access: 'read_only' | 'read_write';
|
|
43838
|
+
bindings: Array<{
|
|
43306
43839
|
/**
|
|
43307
|
-
*
|
|
43840
|
+
* Resource type. Decides the id format and the allowed access.
|
|
43308
43841
|
*/
|
|
43309
|
-
|
|
43842
|
+
type: 'database' | 'vector_store' | 'file' | 'media_library' | 'model' | 'workflow' | 'script';
|
|
43310
43843
|
/**
|
|
43311
|
-
*
|
|
43312
|
-
*/
|
|
43313
|
-
enabled?: boolean;
|
|
43314
|
-
}>;
|
|
43315
|
-
/**
|
|
43316
|
-
* Knowledge vector store allowlist for platform resources accessible through service-agent codemode. Only kind=service accepts nonempty bindings; personal agents return 400. At most 20 bindings per resource type, with no duplicate ids. Newly added bindings apply only to new sessions; disabling or removing a binding immediately revokes access in running sessions. Unbound resources return 404; writes to read_only resources are refused. Other platform APIs return 403, except public API discovery. Invalid bindings and unknown item fields return 400. Omit on create for no bindings.
|
|
43317
|
-
*/
|
|
43318
|
-
vector_stores: Array<{
|
|
43319
|
-
/**
|
|
43320
|
-
* Resource id from knowledge.vectorStores.list or knowledge.vectorStores.create; use the returned id, not its name. Must start with vs_ and be unique within this binding array.
|
|
43844
|
+
* Resource id, never its name. database db_..., vector_store vs_..., file file- plus 24 letters or digits; media_library and model ids must not contain ':' or whitespace; workflow and script use <namespace>/<name> with no '/', '@', ':' or whitespace inside a part.
|
|
43321
43845
|
*/
|
|
43322
43846
|
id: string;
|
|
43323
43847
|
/**
|
|
43324
|
-
*
|
|
43848
|
+
* database, vector_store and media_library accept read_only or read_write; file accepts read_only; model, workflow and script accept invoke. Any other combination returns 400.
|
|
43325
43849
|
*/
|
|
43326
|
-
access: 'read_only' | 'read_write';
|
|
43850
|
+
access: 'read_only' | 'read_write' | 'invoke';
|
|
43327
43851
|
/**
|
|
43328
43852
|
* Optional guidance for using this resource, up to 4096 characters; does not expand access.
|
|
43329
43853
|
*/
|
|
@@ -43332,25 +43856,13 @@ export type AgentsListResponses = {
|
|
|
43332
43856
|
* Whether this binding grants access. Defaults to true; false immediately disables it for running sessions.
|
|
43333
43857
|
*/
|
|
43334
43858
|
enabled?: boolean;
|
|
43335
|
-
}
|
|
43336
|
-
/**
|
|
43337
|
-
* File allowlist for platform resources accessible through service-agent codemode. Only kind=service accepts nonempty bindings; personal agents return 400. At most 20 bindings per resource type, with no duplicate ids. Newly added bindings apply only to new sessions; disabling or removing a binding immediately revokes access in running sessions. Unbound resources return 404; writes to read_only resources are refused. Other platform APIs return 403, except public API discovery. Invalid bindings and unknown item fields return 400. Omit on create for no bindings.
|
|
43338
|
-
*/
|
|
43339
|
-
files: Array<{
|
|
43340
|
-
/**
|
|
43341
|
-
* Resource id from file.files.list or file.files.create (upload); use the returned id, not its name. Must start with file_ and be unique within this binding array.
|
|
43342
|
-
*/
|
|
43343
|
-
id: string;
|
|
43344
|
-
/**
|
|
43345
|
-
* read_only permits reading the bound file; files do not accept read_write.
|
|
43346
|
-
*/
|
|
43347
|
-
access: 'read_only';
|
|
43859
|
+
} | {
|
|
43348
43860
|
/**
|
|
43349
|
-
*
|
|
43861
|
+
* Service type. Opens the whole service to codemode; there is no per-resource id.
|
|
43350
43862
|
*/
|
|
43351
|
-
|
|
43863
|
+
type: 'search' | 'browser';
|
|
43352
43864
|
/**
|
|
43353
|
-
* Whether
|
|
43865
|
+
* Whether the service is open. Defaults to true; false immediately closes it for running sessions.
|
|
43354
43866
|
*/
|
|
43355
43867
|
enabled?: boolean;
|
|
43356
43868
|
}>;
|
|
@@ -43692,7 +44204,7 @@ export type AgentsListResponses = {
|
|
|
43692
44204
|
*/
|
|
43693
44205
|
commands?: Array<string>;
|
|
43694
44206
|
/**
|
|
43695
|
-
*
|
|
44207
|
+
* Names of disabled skills declarations.
|
|
43696
44208
|
*/
|
|
43697
44209
|
skills?: Array<string>;
|
|
43698
44210
|
/**
|
|
@@ -43714,6 +44226,26 @@ export type AgentsListResponses = {
|
|
|
43714
44226
|
*/
|
|
43715
44227
|
allowed: Array<string>;
|
|
43716
44228
|
};
|
|
44229
|
+
/**
|
|
44230
|
+
* Avatar image URL of this agent version (absolute https), shown in agent lists, the agent detail, the chat header and as the default avatar of embedded chat; null when none is set. Follows the version like other configuration: a version saved with apply=false does not change the avatar in effect. /agent/v1 only.
|
|
44231
|
+
*/
|
|
44232
|
+
avatar: string | null;
|
|
44233
|
+
/**
|
|
44234
|
+
* Channel the agent was created through (for example api or console); null for historical agents whose channel is unknown. Display only. /agent/v1 only; /anthropic neither returns it.
|
|
44235
|
+
*/
|
|
44236
|
+
creation_source: string | null;
|
|
44237
|
+
/**
|
|
44238
|
+
* Platform-wide identity number of the agent (8 characters), usable wherever an agent is addressed by identity_number; null when the agent has none. /agent/v1 only; /anthropic neither returns it.
|
|
44239
|
+
*/
|
|
44240
|
+
identity_number: string | null;
|
|
44241
|
+
/**
|
|
44242
|
+
* Default environment of this service agent version: the environment_id new sessions get when they name none; null means no environment. Present for service agents only. Follows the version like other configuration: a version saved with apply=false does not change the environment in effect. Versions saved before this field existed read as light. /agent/v1 only.
|
|
44243
|
+
*/
|
|
44244
|
+
environment_id?: string | null;
|
|
44245
|
+
/**
|
|
44246
|
+
* Default vaults of this service agent version: the vault_ids new sessions get when they name none. Present for service agents only. Follows the version like other configuration: a version saved with apply=false does not change the vaults in effect. Versions saved before this field existed read as []. /agent/v1 only.
|
|
44247
|
+
*/
|
|
44248
|
+
vault_ids?: Array<string>;
|
|
43717
44249
|
/**
|
|
43718
44250
|
* Current agent lifecycle status; unarchive restores an archived agent to active.
|
|
43719
44251
|
*/
|
|
@@ -43729,19 +44261,13 @@ export type AgentsListResponse = AgentsListResponses[keyof AgentsListResponses];
|
|
|
43729
44261
|
export type AgentsCreateData = {
|
|
43730
44262
|
body: {
|
|
43731
44263
|
/**
|
|
43732
|
-
*
|
|
43733
|
-
* [model string](https://platform.claude.com/docs/en/about-claude/models/overview#latest-models-comparison),
|
|
43734
|
-
* e.g. `claude-opus-5`, or a `model_config` object for additional configuration
|
|
43735
|
-
* control
|
|
44264
|
+
* A model id from the Praxis model catalog (`praxis.model.models.list`), or a `model_config` object for additional configuration control. Unlike Anthropic, Claude model ids other than those in the catalog are rejected.
|
|
43736
44265
|
*/
|
|
43737
|
-
model:
|
|
44266
|
+
model: string | {
|
|
43738
44267
|
/**
|
|
43739
|
-
*
|
|
43740
|
-
*
|
|
43741
|
-
* See [models](https://docs.anthropic.com/en/docs/models-overview) for additional
|
|
43742
|
-
* details and options.
|
|
44268
|
+
* A model id from the Praxis model catalog (`praxis.model.models.list`). Unlike Anthropic, Claude model ids other than those in the catalog are rejected.
|
|
43743
44269
|
*/
|
|
43744
|
-
id:
|
|
44270
|
+
id: string;
|
|
43745
44271
|
/**
|
|
43746
44272
|
* How hard Claude works on each inference call. Accepts a bare level string
|
|
43747
44273
|
* (`"high"`) or `{"type": "high"}`. On create, omitting it resolves the per-model
|
|
@@ -43771,7 +44297,7 @@ export type AgentsCreateData = {
|
|
|
43771
44297
|
};
|
|
43772
44298
|
};
|
|
43773
44299
|
/**
|
|
43774
|
-
*
|
|
44300
|
+
* Display name of the agent, 1 to 256 characters after trimming, with no NUL or line breaks. A label, not a unique key: two agents may share a name.
|
|
43775
44301
|
*/
|
|
43776
44302
|
name: string;
|
|
43777
44303
|
/**
|
|
@@ -43794,7 +44320,7 @@ export type AgentsCreateData = {
|
|
|
43794
44320
|
*/
|
|
43795
44321
|
multiagent?: null | AgentManaged9;
|
|
43796
44322
|
/**
|
|
43797
|
-
*
|
|
44323
|
+
* Custom skills attached to the agent, each {type: "custom", skill_id, version?}: skill_id comes from skills.create or skills.list, at most 20 skills, no repeated skill_id. Omit version, or send "latest", to use the skill's newest version at the moment a session starts; a pinned version stays fixed. type anthropic returns 400: upload the skill and attach it as custom. On update, omit the field to keep the list, send an array to replace it, or send [] or null to clear it.
|
|
43798
44324
|
*/
|
|
43799
44325
|
skills?: Array<AgentManaged13 | AgentManaged14>;
|
|
43800
44326
|
/**
|
|
@@ -43807,38 +44333,21 @@ export type AgentsCreateData = {
|
|
|
43807
44333
|
*/
|
|
43808
44334
|
tools?: Array<AgentManaged15 | AgentManaged29 | AgentManaged32>;
|
|
43809
44335
|
/**
|
|
43810
|
-
*
|
|
44336
|
+
* Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; personal agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A service binding opens a whole service and carries only enabled: search or browser. At most 20 bindings per type, no repeated type and id, and each service type at most once. A session is authorized by the agent version it runs: newly added bindings apply only to new sessions, and a version saved with apply=false changes no access until it is applied. Applying a version that disables, removes or downgrades a binding revokes it immediately in running sessions on older versions. A resource that is not bound returns 404, a service that is not opened returns 403, and a write to a resource bound read_only returns 403 BINDING_READ_ONLY. Unknown types, fields on the wrong kind (id, access or instructions on a service binding), wrong access and malformed ids return 400. The former databases, vector_stores and files fields are removed and return 400. Omit on create for no bindings.
|
|
43811
44337
|
*/
|
|
43812
|
-
|
|
43813
|
-
/**
|
|
43814
|
-
* Resource id from database.databases.list or database.databases.create; use the returned id, not its name. Must start with db_ and be unique within this binding array.
|
|
43815
|
-
*/
|
|
43816
|
-
id: string;
|
|
44338
|
+
bindings?: Array<{
|
|
43817
44339
|
/**
|
|
43818
|
-
*
|
|
44340
|
+
* Resource type. Decides the id format and the allowed access.
|
|
43819
44341
|
*/
|
|
43820
|
-
|
|
44342
|
+
type: 'database' | 'vector_store' | 'file' | 'media_library' | 'model' | 'workflow' | 'script';
|
|
43821
44343
|
/**
|
|
43822
|
-
*
|
|
43823
|
-
*/
|
|
43824
|
-
instructions?: string;
|
|
43825
|
-
/**
|
|
43826
|
-
* Whether this binding grants access. Defaults to true; false immediately disables it for running sessions.
|
|
43827
|
-
*/
|
|
43828
|
-
enabled?: boolean;
|
|
43829
|
-
}>;
|
|
43830
|
-
/**
|
|
43831
|
-
* Knowledge vector store allowlist for platform resources accessible through service-agent codemode. Only kind=service accepts nonempty bindings; personal agents return 400. At most 20 bindings per resource type, with no duplicate ids. Newly added bindings apply only to new sessions; disabling or removing a binding immediately revokes access in running sessions. Unbound resources return 404; writes to read_only resources are refused. Other platform APIs return 403, except public API discovery. Invalid bindings and unknown item fields return 400. Omit on create for no bindings.
|
|
43832
|
-
*/
|
|
43833
|
-
vector_stores?: Array<{
|
|
43834
|
-
/**
|
|
43835
|
-
* Resource id from knowledge.vectorStores.list or knowledge.vectorStores.create; use the returned id, not its name. Must start with vs_ and be unique within this binding array.
|
|
44344
|
+
* Resource id, never its name. database db_..., vector_store vs_..., file file- plus 24 letters or digits; media_library and model ids must not contain ':' or whitespace; workflow and script use <namespace>/<name> with no '/', '@', ':' or whitespace inside a part.
|
|
43836
44345
|
*/
|
|
43837
44346
|
id: string;
|
|
43838
44347
|
/**
|
|
43839
|
-
*
|
|
44348
|
+
* database, vector_store and media_library accept read_only or read_write; file accepts read_only; model, workflow and script accept invoke. Any other combination returns 400.
|
|
43840
44349
|
*/
|
|
43841
|
-
access: 'read_only' | 'read_write';
|
|
44350
|
+
access: 'read_only' | 'read_write' | 'invoke';
|
|
43842
44351
|
/**
|
|
43843
44352
|
* Optional guidance for using this resource, up to 4096 characters; does not expand access.
|
|
43844
44353
|
*/
|
|
@@ -43847,25 +44356,13 @@ export type AgentsCreateData = {
|
|
|
43847
44356
|
* Whether this binding grants access. Defaults to true; false immediately disables it for running sessions.
|
|
43848
44357
|
*/
|
|
43849
44358
|
enabled?: boolean;
|
|
43850
|
-
}
|
|
43851
|
-
/**
|
|
43852
|
-
* File allowlist for platform resources accessible through service-agent codemode. Only kind=service accepts nonempty bindings; personal agents return 400. At most 20 bindings per resource type, with no duplicate ids. Newly added bindings apply only to new sessions; disabling or removing a binding immediately revokes access in running sessions. Unbound resources return 404; writes to read_only resources are refused. Other platform APIs return 403, except public API discovery. Invalid bindings and unknown item fields return 400. Omit on create for no bindings.
|
|
43853
|
-
*/
|
|
43854
|
-
files?: Array<{
|
|
43855
|
-
/**
|
|
43856
|
-
* Resource id from file.files.list or file.files.create (upload); use the returned id, not its name. Must start with file_ and be unique within this binding array.
|
|
43857
|
-
*/
|
|
43858
|
-
id: string;
|
|
43859
|
-
/**
|
|
43860
|
-
* read_only permits reading the bound file; files do not accept read_write.
|
|
43861
|
-
*/
|
|
43862
|
-
access: 'read_only';
|
|
44359
|
+
} | {
|
|
43863
44360
|
/**
|
|
43864
|
-
*
|
|
44361
|
+
* Service type. Opens the whole service to codemode; there is no per-resource id.
|
|
43865
44362
|
*/
|
|
43866
|
-
|
|
44363
|
+
type: 'search' | 'browser';
|
|
43867
44364
|
/**
|
|
43868
|
-
* Whether
|
|
44365
|
+
* Whether the service is open. Defaults to true; false immediately closes it for running sessions.
|
|
43869
44366
|
*/
|
|
43870
44367
|
enabled?: boolean;
|
|
43871
44368
|
}>;
|
|
@@ -44207,7 +44704,7 @@ export type AgentsCreateData = {
|
|
|
44207
44704
|
*/
|
|
44208
44705
|
commands?: Array<string>;
|
|
44209
44706
|
/**
|
|
44210
|
-
*
|
|
44707
|
+
* Names of disabled skills declarations.
|
|
44211
44708
|
*/
|
|
44212
44709
|
skills?: Array<string>;
|
|
44213
44710
|
/**
|
|
@@ -44229,6 +44726,18 @@ export type AgentsCreateData = {
|
|
|
44229
44726
|
*/
|
|
44230
44727
|
allowed: Array<string>;
|
|
44231
44728
|
};
|
|
44729
|
+
/**
|
|
44730
|
+
* Avatar image of the agent: an absolute https URL of at most 2048 characters, without credentials; any other value returns 400 avatar must be an https URL. It is the default picture in agent lists, the agent detail, the chat header and embedded chat when the embed appearance sets none. Saved with the agent version like other configuration, so apply=false keeps the previous avatar in effect until that version is applied. Omit on create for no avatar; on update, omit to keep it and send null to clear it. Both personal and service agents accept it. /agent/v1 only; /anthropic neither accepts nor returns it.
|
|
44731
|
+
*/
|
|
44732
|
+
avatar?: string | null;
|
|
44733
|
+
/**
|
|
44734
|
+
* Default environment of a service agent: the environment_id a new session gets when it names none. Use light, node22 or the env_ id of an active environment of your organization; any other value returns 400 environment_id <id> was not found. null means no environment, so sessions are plain conversation without codemode or bash. Saved with the agent version like other configuration, so apply=false keeps the previous environment in effect for new sessions until that version is applied; a session that sets environment_id itself, null included, overrides it. Omit on create for light; on update, omit to keep it. Versions saved before this field existed read as light. Personal agents use a Computer: a non-null value returns 400 and the field is not returned. /agent/v1 only; /anthropic neither accepts nor returns it.
|
|
44735
|
+
*/
|
|
44736
|
+
environment_id?: string | null;
|
|
44737
|
+
/**
|
|
44738
|
+
* Default vaults of a service agent: the vault_ids a new session gets when it names none, so the agent's credentials follow the version. At most 50 ids without duplicates; each must be a vault of your organization that is not archived, otherwise 400 vault_ids[<index>] <id> was not found. Saved with the agent version like other configuration, so apply=false keeps the previous vaults in effect for new sessions until that version is applied; a session that sets vault_ids itself, [] included, overrides it. Omit on create for []; on update, omit to keep the list and send an array to replace it as a whole. Versions saved before this field existed read as []. Embed tokens use the vault_ids of the version they pin; vault_ids on the embed policy is deprecated, still accepted and ignored. Personal agents get no default vaults: a non-empty value returns 400 and the field is not returned. /agent/v1 only; /anthropic neither accepts nor returns it.
|
|
44739
|
+
*/
|
|
44740
|
+
vault_ids?: Array<string>;
|
|
44232
44741
|
/**
|
|
44233
44742
|
* Optional tool preset. minimal enables read, glob, grep and ask_user_question; data-editor also enables write and edit; full uses the default toolset with always_allow. Explicit tools override matching preset entries. codemode requires bash and is absent from data-editor.
|
|
44234
44743
|
*/
|
|
@@ -44238,6 +44747,24 @@ export type AgentsCreateData = {
|
|
|
44238
44747
|
query?: never;
|
|
44239
44748
|
url: '/agent/v1/agents';
|
|
44240
44749
|
};
|
|
44750
|
+
export type AgentsCreateErrors = {
|
|
44751
|
+
/**
|
|
44752
|
+
* The body failed validation and the message names the field: an unknown field, name outside 1 to 256 characters, a model that is not in the catalog or cannot run an agent, invalid tools or tools: null, a skill that is anthropic, repeated or not found, invalid bindings or vault_ids, or an environment_id that does not exist. Correct the field and retry.
|
|
44753
|
+
*/
|
|
44754
|
+
400: unknown;
|
|
44755
|
+
/**
|
|
44756
|
+
* The API key is missing, invalid or revoked. Send a valid key as X-API-Key or as a Bearer token.
|
|
44757
|
+
*/
|
|
44758
|
+
401: unknown;
|
|
44759
|
+
/**
|
|
44760
|
+
* permission_error: the credential's role or bound resources do not allow this operation. Use a key with access to the agent domain and its resources.
|
|
44761
|
+
*/
|
|
44762
|
+
403: unknown;
|
|
44763
|
+
/**
|
|
44764
|
+
* The vault availability check for vault_ids failed upstream; nothing was saved. Retry later.
|
|
44765
|
+
*/
|
|
44766
|
+
502: unknown;
|
|
44767
|
+
};
|
|
44241
44768
|
export type AgentsCreateResponses = {
|
|
44242
44769
|
/**
|
|
44243
44770
|
* Successful response
|
|
@@ -44269,12 +44796,9 @@ export type AgentsCreateResponses = {
|
|
|
44269
44796
|
*/
|
|
44270
44797
|
model: {
|
|
44271
44798
|
/**
|
|
44272
|
-
*
|
|
44273
|
-
*
|
|
44274
|
-
* See [models](https://docs.anthropic.com/en/docs/models-overview) for additional
|
|
44275
|
-
* details and options.
|
|
44799
|
+
* A model id from the Praxis model catalog (`praxis.model.models.list`). Unlike Anthropic, Claude model ids other than those in the catalog are rejected.
|
|
44276
44800
|
*/
|
|
44277
|
-
id:
|
|
44801
|
+
id: string;
|
|
44278
44802
|
/**
|
|
44279
44803
|
* How hard Claude works on each turn. Sets `output_config.effort` on every
|
|
44280
44804
|
* Messages call the session makes.
|
|
@@ -44310,7 +44834,7 @@ export type AgentsCreateResponses = {
|
|
|
44310
44834
|
*/
|
|
44311
44835
|
name: string;
|
|
44312
44836
|
/**
|
|
44313
|
-
*
|
|
44837
|
+
* Custom skills attached to the agent, each {type: "custom", skill_id, version?}: skill_id comes from skills.create or skills.list, at most 20 skills, no repeated skill_id. Omit version, or send "latest", to use the skill's newest version at the moment a session starts; a pinned version stays fixed. type anthropic returns 400: upload the skill and attach it as custom. On update, omit the field to keep the list, send an array to replace it, or send [] or null to clear it.
|
|
44314
44838
|
*/
|
|
44315
44839
|
skills: Array<AgentManaged42 | AgentManaged43>;
|
|
44316
44840
|
/**
|
|
@@ -44369,38 +44893,21 @@ export type AgentsCreateResponses = {
|
|
|
44369
44893
|
*/
|
|
44370
44894
|
note: string | null;
|
|
44371
44895
|
/**
|
|
44372
|
-
*
|
|
44896
|
+
* Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; personal agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A service binding opens a whole service and carries only enabled: search or browser. At most 20 bindings per type, no repeated type and id, and each service type at most once. A session is authorized by the agent version it runs: newly added bindings apply only to new sessions, and a version saved with apply=false changes no access until it is applied. Applying a version that disables, removes or downgrades a binding revokes it immediately in running sessions on older versions. A resource that is not bound returns 404, a service that is not opened returns 403, and a write to a resource bound read_only returns 403 BINDING_READ_ONLY. Unknown types, fields on the wrong kind (id, access or instructions on a service binding), wrong access and malformed ids return 400. The former databases, vector_stores and files fields are removed and return 400. Omit on create for no bindings.
|
|
44373
44897
|
*/
|
|
44374
|
-
|
|
44375
|
-
/**
|
|
44376
|
-
* Resource id from database.databases.list or database.databases.create; use the returned id, not its name. Must start with db_ and be unique within this binding array.
|
|
44377
|
-
*/
|
|
44378
|
-
id: string;
|
|
44379
|
-
/**
|
|
44380
|
-
* read_only permits reads of the bound resource; read_write permits reads and writes.
|
|
44381
|
-
*/
|
|
44382
|
-
access: 'read_only' | 'read_write';
|
|
44898
|
+
bindings: Array<{
|
|
44383
44899
|
/**
|
|
44384
|
-
*
|
|
44385
|
-
*/
|
|
44386
|
-
instructions?: string;
|
|
44387
|
-
/**
|
|
44388
|
-
* Whether this binding grants access. Defaults to true; false immediately disables it for running sessions.
|
|
44900
|
+
* Resource type. Decides the id format and the allowed access.
|
|
44389
44901
|
*/
|
|
44390
|
-
|
|
44391
|
-
}>;
|
|
44392
|
-
/**
|
|
44393
|
-
* Knowledge vector store allowlist for platform resources accessible through service-agent codemode. Only kind=service accepts nonempty bindings; personal agents return 400. At most 20 bindings per resource type, with no duplicate ids. Newly added bindings apply only to new sessions; disabling or removing a binding immediately revokes access in running sessions. Unbound resources return 404; writes to read_only resources are refused. Other platform APIs return 403, except public API discovery. Invalid bindings and unknown item fields return 400. Omit on create for no bindings.
|
|
44394
|
-
*/
|
|
44395
|
-
vector_stores: Array<{
|
|
44902
|
+
type: 'database' | 'vector_store' | 'file' | 'media_library' | 'model' | 'workflow' | 'script';
|
|
44396
44903
|
/**
|
|
44397
|
-
* Resource id
|
|
44904
|
+
* Resource id, never its name. database db_..., vector_store vs_..., file file- plus 24 letters or digits; media_library and model ids must not contain ':' or whitespace; workflow and script use <namespace>/<name> with no '/', '@', ':' or whitespace inside a part.
|
|
44398
44905
|
*/
|
|
44399
44906
|
id: string;
|
|
44400
44907
|
/**
|
|
44401
|
-
*
|
|
44908
|
+
* database, vector_store and media_library accept read_only or read_write; file accepts read_only; model, workflow and script accept invoke. Any other combination returns 400.
|
|
44402
44909
|
*/
|
|
44403
|
-
access: 'read_only' | 'read_write';
|
|
44910
|
+
access: 'read_only' | 'read_write' | 'invoke';
|
|
44404
44911
|
/**
|
|
44405
44912
|
* Optional guidance for using this resource, up to 4096 characters; does not expand access.
|
|
44406
44913
|
*/
|
|
@@ -44409,25 +44916,13 @@ export type AgentsCreateResponses = {
|
|
|
44409
44916
|
* Whether this binding grants access. Defaults to true; false immediately disables it for running sessions.
|
|
44410
44917
|
*/
|
|
44411
44918
|
enabled?: boolean;
|
|
44412
|
-
}
|
|
44413
|
-
/**
|
|
44414
|
-
* File allowlist for platform resources accessible through service-agent codemode. Only kind=service accepts nonempty bindings; personal agents return 400. At most 20 bindings per resource type, with no duplicate ids. Newly added bindings apply only to new sessions; disabling or removing a binding immediately revokes access in running sessions. Unbound resources return 404; writes to read_only resources are refused. Other platform APIs return 403, except public API discovery. Invalid bindings and unknown item fields return 400. Omit on create for no bindings.
|
|
44415
|
-
*/
|
|
44416
|
-
files: Array<{
|
|
44417
|
-
/**
|
|
44418
|
-
* Resource id from file.files.list or file.files.create (upload); use the returned id, not its name. Must start with file_ and be unique within this binding array.
|
|
44419
|
-
*/
|
|
44420
|
-
id: string;
|
|
44421
|
-
/**
|
|
44422
|
-
* read_only permits reading the bound file; files do not accept read_write.
|
|
44423
|
-
*/
|
|
44424
|
-
access: 'read_only';
|
|
44919
|
+
} | {
|
|
44425
44920
|
/**
|
|
44426
|
-
*
|
|
44921
|
+
* Service type. Opens the whole service to codemode; there is no per-resource id.
|
|
44427
44922
|
*/
|
|
44428
|
-
|
|
44923
|
+
type: 'search' | 'browser';
|
|
44429
44924
|
/**
|
|
44430
|
-
* Whether
|
|
44925
|
+
* Whether the service is open. Defaults to true; false immediately closes it for running sessions.
|
|
44431
44926
|
*/
|
|
44432
44927
|
enabled?: boolean;
|
|
44433
44928
|
}>;
|
|
@@ -44769,7 +45264,7 @@ export type AgentsCreateResponses = {
|
|
|
44769
45264
|
*/
|
|
44770
45265
|
commands?: Array<string>;
|
|
44771
45266
|
/**
|
|
44772
|
-
*
|
|
45267
|
+
* Names of disabled skills declarations.
|
|
44773
45268
|
*/
|
|
44774
45269
|
skills?: Array<string>;
|
|
44775
45270
|
/**
|
|
@@ -44791,6 +45286,26 @@ export type AgentsCreateResponses = {
|
|
|
44791
45286
|
*/
|
|
44792
45287
|
allowed: Array<string>;
|
|
44793
45288
|
};
|
|
45289
|
+
/**
|
|
45290
|
+
* Avatar image URL of this agent version (absolute https), shown in agent lists, the agent detail, the chat header and as the default avatar of embedded chat; null when none is set. Follows the version like other configuration: a version saved with apply=false does not change the avatar in effect. /agent/v1 only.
|
|
45291
|
+
*/
|
|
45292
|
+
avatar: string | null;
|
|
45293
|
+
/**
|
|
45294
|
+
* Channel the agent was created through (for example api or console); null for historical agents whose channel is unknown. Display only. /agent/v1 only; /anthropic neither returns it.
|
|
45295
|
+
*/
|
|
45296
|
+
creation_source: string | null;
|
|
45297
|
+
/**
|
|
45298
|
+
* Platform-wide identity number of the agent (8 characters), usable wherever an agent is addressed by identity_number; null when the agent has none. /agent/v1 only; /anthropic neither returns it.
|
|
45299
|
+
*/
|
|
45300
|
+
identity_number: string | null;
|
|
45301
|
+
/**
|
|
45302
|
+
* Default environment of this service agent version: the environment_id new sessions get when they name none; null means no environment. Present for service agents only. Follows the version like other configuration: a version saved with apply=false does not change the environment in effect. Versions saved before this field existed read as light. /agent/v1 only.
|
|
45303
|
+
*/
|
|
45304
|
+
environment_id?: string | null;
|
|
45305
|
+
/**
|
|
45306
|
+
* Default vaults of this service agent version: the vault_ids new sessions get when they name none. Present for service agents only. Follows the version like other configuration: a version saved with apply=false does not change the vaults in effect. Versions saved before this field existed read as []. /agent/v1 only.
|
|
45307
|
+
*/
|
|
45308
|
+
vault_ids?: Array<string>;
|
|
44794
45309
|
/**
|
|
44795
45310
|
* Current agent lifecycle status; unarchive restores an archived agent to active.
|
|
44796
45311
|
*/
|
|
@@ -44815,6 +45330,24 @@ export type AgentsRetrieveData = {
|
|
|
44815
45330
|
};
|
|
44816
45331
|
url: '/agent/v1/agents/{agent_id}';
|
|
44817
45332
|
};
|
|
45333
|
+
export type AgentsRetrieveErrors = {
|
|
45334
|
+
/**
|
|
45335
|
+
* version is neither a positive integer nor active. Take versions from agents.versions.list.
|
|
45336
|
+
*/
|
|
45337
|
+
400: unknown;
|
|
45338
|
+
/**
|
|
45339
|
+
* The API key is missing, invalid or revoked. Send a valid key as X-API-Key or as a Bearer token.
|
|
45340
|
+
*/
|
|
45341
|
+
401: unknown;
|
|
45342
|
+
/**
|
|
45343
|
+
* permission_error: the credential's role or bound resources do not allow this operation. Use a key with access to the agent domain and its resources.
|
|
45344
|
+
*/
|
|
45345
|
+
403: unknown;
|
|
45346
|
+
/**
|
|
45347
|
+
* Agent not found, or the requested version does not exist for it. Take ids from agents.list and versions from agents.versions.list.
|
|
45348
|
+
*/
|
|
45349
|
+
404: unknown;
|
|
45350
|
+
};
|
|
44818
45351
|
export type AgentsRetrieveResponses = {
|
|
44819
45352
|
/**
|
|
44820
45353
|
* Successful response
|
|
@@ -44846,12 +45379,9 @@ export type AgentsRetrieveResponses = {
|
|
|
44846
45379
|
*/
|
|
44847
45380
|
model: {
|
|
44848
45381
|
/**
|
|
44849
|
-
*
|
|
44850
|
-
*
|
|
44851
|
-
* See [models](https://docs.anthropic.com/en/docs/models-overview) for additional
|
|
44852
|
-
* details and options.
|
|
45382
|
+
* A model id from the Praxis model catalog (`praxis.model.models.list`). Unlike Anthropic, Claude model ids other than those in the catalog are rejected.
|
|
44853
45383
|
*/
|
|
44854
|
-
id:
|
|
45384
|
+
id: string;
|
|
44855
45385
|
/**
|
|
44856
45386
|
* How hard Claude works on each turn. Sets `output_config.effort` on every
|
|
44857
45387
|
* Messages call the session makes.
|
|
@@ -44887,7 +45417,7 @@ export type AgentsRetrieveResponses = {
|
|
|
44887
45417
|
*/
|
|
44888
45418
|
name: string;
|
|
44889
45419
|
/**
|
|
44890
|
-
*
|
|
45420
|
+
* Custom skills attached to the agent, each {type: "custom", skill_id, version?}: skill_id comes from skills.create or skills.list, at most 20 skills, no repeated skill_id. Omit version, or send "latest", to use the skill's newest version at the moment a session starts; a pinned version stays fixed. type anthropic returns 400: upload the skill and attach it as custom. On update, omit the field to keep the list, send an array to replace it, or send [] or null to clear it.
|
|
44891
45421
|
*/
|
|
44892
45422
|
skills: Array<AgentManaged42 | AgentManaged43>;
|
|
44893
45423
|
/**
|
|
@@ -44946,38 +45476,21 @@ export type AgentsRetrieveResponses = {
|
|
|
44946
45476
|
*/
|
|
44947
45477
|
note: string | null;
|
|
44948
45478
|
/**
|
|
44949
|
-
*
|
|
45479
|
+
* Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; personal agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A service binding opens a whole service and carries only enabled: search or browser. At most 20 bindings per type, no repeated type and id, and each service type at most once. A session is authorized by the agent version it runs: newly added bindings apply only to new sessions, and a version saved with apply=false changes no access until it is applied. Applying a version that disables, removes or downgrades a binding revokes it immediately in running sessions on older versions. A resource that is not bound returns 404, a service that is not opened returns 403, and a write to a resource bound read_only returns 403 BINDING_READ_ONLY. Unknown types, fields on the wrong kind (id, access or instructions on a service binding), wrong access and malformed ids return 400. The former databases, vector_stores and files fields are removed and return 400. Omit on create for no bindings.
|
|
44950
45480
|
*/
|
|
44951
|
-
|
|
45481
|
+
bindings: Array<{
|
|
44952
45482
|
/**
|
|
44953
|
-
* Resource
|
|
45483
|
+
* Resource type. Decides the id format and the allowed access.
|
|
44954
45484
|
*/
|
|
44955
|
-
|
|
44956
|
-
/**
|
|
44957
|
-
* read_only permits reads of the bound resource; read_write permits reads and writes.
|
|
44958
|
-
*/
|
|
44959
|
-
access: 'read_only' | 'read_write';
|
|
44960
|
-
/**
|
|
44961
|
-
* Optional guidance for using this resource, up to 4096 characters; does not expand access.
|
|
44962
|
-
*/
|
|
44963
|
-
instructions?: string;
|
|
44964
|
-
/**
|
|
44965
|
-
* Whether this binding grants access. Defaults to true; false immediately disables it for running sessions.
|
|
44966
|
-
*/
|
|
44967
|
-
enabled?: boolean;
|
|
44968
|
-
}>;
|
|
44969
|
-
/**
|
|
44970
|
-
* Knowledge vector store allowlist for platform resources accessible through service-agent codemode. Only kind=service accepts nonempty bindings; personal agents return 400. At most 20 bindings per resource type, with no duplicate ids. Newly added bindings apply only to new sessions; disabling or removing a binding immediately revokes access in running sessions. Unbound resources return 404; writes to read_only resources are refused. Other platform APIs return 403, except public API discovery. Invalid bindings and unknown item fields return 400. Omit on create for no bindings.
|
|
44971
|
-
*/
|
|
44972
|
-
vector_stores: Array<{
|
|
45485
|
+
type: 'database' | 'vector_store' | 'file' | 'media_library' | 'model' | 'workflow' | 'script';
|
|
44973
45486
|
/**
|
|
44974
|
-
* Resource id
|
|
45487
|
+
* Resource id, never its name. database db_..., vector_store vs_..., file file- plus 24 letters or digits; media_library and model ids must not contain ':' or whitespace; workflow and script use <namespace>/<name> with no '/', '@', ':' or whitespace inside a part.
|
|
44975
45488
|
*/
|
|
44976
45489
|
id: string;
|
|
44977
45490
|
/**
|
|
44978
|
-
*
|
|
45491
|
+
* database, vector_store and media_library accept read_only or read_write; file accepts read_only; model, workflow and script accept invoke. Any other combination returns 400.
|
|
44979
45492
|
*/
|
|
44980
|
-
access: 'read_only' | 'read_write';
|
|
45493
|
+
access: 'read_only' | 'read_write' | 'invoke';
|
|
44981
45494
|
/**
|
|
44982
45495
|
* Optional guidance for using this resource, up to 4096 characters; does not expand access.
|
|
44983
45496
|
*/
|
|
@@ -44986,25 +45499,13 @@ export type AgentsRetrieveResponses = {
|
|
|
44986
45499
|
* Whether this binding grants access. Defaults to true; false immediately disables it for running sessions.
|
|
44987
45500
|
*/
|
|
44988
45501
|
enabled?: boolean;
|
|
44989
|
-
}
|
|
44990
|
-
/**
|
|
44991
|
-
* File allowlist for platform resources accessible through service-agent codemode. Only kind=service accepts nonempty bindings; personal agents return 400. At most 20 bindings per resource type, with no duplicate ids. Newly added bindings apply only to new sessions; disabling or removing a binding immediately revokes access in running sessions. Unbound resources return 404; writes to read_only resources are refused. Other platform APIs return 403, except public API discovery. Invalid bindings and unknown item fields return 400. Omit on create for no bindings.
|
|
44992
|
-
*/
|
|
44993
|
-
files: Array<{
|
|
44994
|
-
/**
|
|
44995
|
-
* Resource id from file.files.list or file.files.create (upload); use the returned id, not its name. Must start with file_ and be unique within this binding array.
|
|
44996
|
-
*/
|
|
44997
|
-
id: string;
|
|
45502
|
+
} | {
|
|
44998
45503
|
/**
|
|
44999
|
-
*
|
|
45504
|
+
* Service type. Opens the whole service to codemode; there is no per-resource id.
|
|
45000
45505
|
*/
|
|
45001
|
-
|
|
45506
|
+
type: 'search' | 'browser';
|
|
45002
45507
|
/**
|
|
45003
|
-
*
|
|
45004
|
-
*/
|
|
45005
|
-
instructions?: string;
|
|
45006
|
-
/**
|
|
45007
|
-
* Whether this binding grants access. Defaults to true; false immediately disables it for running sessions.
|
|
45508
|
+
* Whether the service is open. Defaults to true; false immediately closes it for running sessions.
|
|
45008
45509
|
*/
|
|
45009
45510
|
enabled?: boolean;
|
|
45010
45511
|
}>;
|
|
@@ -45346,7 +45847,7 @@ export type AgentsRetrieveResponses = {
|
|
|
45346
45847
|
*/
|
|
45347
45848
|
commands?: Array<string>;
|
|
45348
45849
|
/**
|
|
45349
|
-
*
|
|
45850
|
+
* Names of disabled skills declarations.
|
|
45350
45851
|
*/
|
|
45351
45852
|
skills?: Array<string>;
|
|
45352
45853
|
/**
|
|
@@ -45368,6 +45869,26 @@ export type AgentsRetrieveResponses = {
|
|
|
45368
45869
|
*/
|
|
45369
45870
|
allowed: Array<string>;
|
|
45370
45871
|
};
|
|
45872
|
+
/**
|
|
45873
|
+
* Avatar image URL of this agent version (absolute https), shown in agent lists, the agent detail, the chat header and as the default avatar of embedded chat; null when none is set. Follows the version like other configuration: a version saved with apply=false does not change the avatar in effect. /agent/v1 only.
|
|
45874
|
+
*/
|
|
45875
|
+
avatar: string | null;
|
|
45876
|
+
/**
|
|
45877
|
+
* Channel the agent was created through (for example api or console); null for historical agents whose channel is unknown. Display only. /agent/v1 only; /anthropic neither returns it.
|
|
45878
|
+
*/
|
|
45879
|
+
creation_source: string | null;
|
|
45880
|
+
/**
|
|
45881
|
+
* Platform-wide identity number of the agent (8 characters), usable wherever an agent is addressed by identity_number; null when the agent has none. /agent/v1 only; /anthropic neither returns it.
|
|
45882
|
+
*/
|
|
45883
|
+
identity_number: string | null;
|
|
45884
|
+
/**
|
|
45885
|
+
* Default environment of this service agent version: the environment_id new sessions get when they name none; null means no environment. Present for service agents only. Follows the version like other configuration: a version saved with apply=false does not change the environment in effect. Versions saved before this field existed read as light. /agent/v1 only.
|
|
45886
|
+
*/
|
|
45887
|
+
environment_id?: string | null;
|
|
45888
|
+
/**
|
|
45889
|
+
* Default vaults of this service agent version: the vault_ids new sessions get when they name none. Present for service agents only. Follows the version like other configuration: a version saved with apply=false does not change the vaults in effect. Versions saved before this field existed read as []. /agent/v1 only.
|
|
45890
|
+
*/
|
|
45891
|
+
vault_ids?: Array<string>;
|
|
45371
45892
|
/**
|
|
45372
45893
|
* Current agent lifecycle status; unarchive restores an archived agent to active.
|
|
45373
45894
|
*/
|
|
@@ -45392,19 +45913,13 @@ export type AgentsUpdateData = {
|
|
|
45392
45913
|
*/
|
|
45393
45914
|
metadata?: null | AgentManaged58Writable;
|
|
45394
45915
|
/**
|
|
45395
|
-
*
|
|
45396
|
-
* [model string](https://platform.claude.com/docs/en/about-claude/models/overview#latest-models-comparison),
|
|
45397
|
-
* e.g. `claude-opus-5`, or a `model_config` object for additional configuration
|
|
45398
|
-
* control. Omit to preserve. Cannot be cleared.
|
|
45916
|
+
* A model id from the Praxis model catalog (`praxis.model.models.list`), or a `model_config` object for additional configuration control. Unlike Anthropic, Claude model ids other than those in the catalog are rejected.
|
|
45399
45917
|
*/
|
|
45400
|
-
model?:
|
|
45918
|
+
model?: string | {
|
|
45401
45919
|
/**
|
|
45402
|
-
*
|
|
45403
|
-
*
|
|
45404
|
-
* See [models](https://docs.anthropic.com/en/docs/models-overview) for additional
|
|
45405
|
-
* details and options.
|
|
45920
|
+
* A model id from the Praxis model catalog (`praxis.model.models.list`). Unlike Anthropic, Claude model ids other than those in the catalog are rejected.
|
|
45406
45921
|
*/
|
|
45407
|
-
id:
|
|
45922
|
+
id: string;
|
|
45408
45923
|
/**
|
|
45409
45924
|
* How hard Claude works on each inference call. Accepts a bare level string
|
|
45410
45925
|
* (`"high"`) or `{"type": "high"}`. On create, omitting it resolves the per-model
|
|
@@ -45440,12 +45955,11 @@ export type AgentsUpdateData = {
|
|
|
45440
45955
|
*/
|
|
45441
45956
|
multiagent?: null | AgentManaged9;
|
|
45442
45957
|
/**
|
|
45443
|
-
*
|
|
45444
|
-
* cleared.
|
|
45958
|
+
* New display name, 1 to 256 characters after trimming, with no NUL or line breaks. A label, not a unique key; omit to keep the current name.
|
|
45445
45959
|
*/
|
|
45446
45960
|
name?: string;
|
|
45447
45961
|
/**
|
|
45448
|
-
*
|
|
45962
|
+
* Custom skills attached to the agent, each {type: "custom", skill_id, version?}: skill_id comes from skills.create or skills.list, at most 20 skills, no repeated skill_id. Omit version, or send "latest", to use the skill's newest version at the moment a session starts; a pinned version stays fixed. type anthropic returns 400: upload the skill and attach it as custom. On update, omit the field to keep the list, send an array to replace it, or send [] or null to clear it.
|
|
45449
45963
|
*/
|
|
45450
45964
|
skills?: null | Array<AgentManaged13 | AgentManaged14>;
|
|
45451
45965
|
/**
|
|
@@ -45470,42 +45984,25 @@ export type AgentsUpdateData = {
|
|
|
45470
45984
|
*/
|
|
45471
45985
|
apply?: boolean;
|
|
45472
45986
|
/**
|
|
45473
|
-
* Optional change explanation stored as note on the new immutable version, up to 280 characters. Omission stores
|
|
45987
|
+
* Optional change explanation stored as note on the new immutable version, up to 280 characters. Omission or null stores no note. A note sent when nothing else changes returns 400 (nothing to save), because a note is stored only with a new version.
|
|
45474
45988
|
*/
|
|
45475
45989
|
version_note?: string;
|
|
45476
45990
|
/**
|
|
45477
|
-
* Replace
|
|
45991
|
+
* Replace the whole bindings list; omission preserves it, and null or [] clears it. Additions apply only to new sessions; once this version is applied, disabling, removing or downgrading a binding revokes it immediately in running sessions on older versions, while apply=false changes no access. Only service agents accept a nonempty list.
|
|
45478
45992
|
*/
|
|
45479
|
-
|
|
45480
|
-
/**
|
|
45481
|
-
* Resource id from database.databases.list or database.databases.create; use the returned id, not its name. Must start with db_ and be unique within this binding array.
|
|
45482
|
-
*/
|
|
45483
|
-
id: string;
|
|
45993
|
+
bindings?: Array<{
|
|
45484
45994
|
/**
|
|
45485
|
-
*
|
|
45995
|
+
* Resource type. Decides the id format and the allowed access.
|
|
45486
45996
|
*/
|
|
45487
|
-
|
|
45997
|
+
type: 'database' | 'vector_store' | 'file' | 'media_library' | 'model' | 'workflow' | 'script';
|
|
45488
45998
|
/**
|
|
45489
|
-
*
|
|
45490
|
-
*/
|
|
45491
|
-
instructions?: string;
|
|
45492
|
-
/**
|
|
45493
|
-
* Whether this binding grants access. Defaults to true; false immediately disables it for running sessions.
|
|
45494
|
-
*/
|
|
45495
|
-
enabled?: boolean;
|
|
45496
|
-
}> | null;
|
|
45497
|
-
/**
|
|
45498
|
-
* Replace this resource allowlist; omission preserves it, and null or [] clears it. Additions apply only to new sessions; disabling or removing a binding immediately revokes access in running sessions. Only service agents accept nonempty bindings.
|
|
45499
|
-
*/
|
|
45500
|
-
vector_stores?: Array<{
|
|
45501
|
-
/**
|
|
45502
|
-
* Resource id from knowledge.vectorStores.list or knowledge.vectorStores.create; use the returned id, not its name. Must start with vs_ and be unique within this binding array.
|
|
45999
|
+
* Resource id, never its name. database db_..., vector_store vs_..., file file- plus 24 letters or digits; media_library and model ids must not contain ':' or whitespace; workflow and script use <namespace>/<name> with no '/', '@', ':' or whitespace inside a part.
|
|
45503
46000
|
*/
|
|
45504
46001
|
id: string;
|
|
45505
46002
|
/**
|
|
45506
|
-
*
|
|
46003
|
+
* database, vector_store and media_library accept read_only or read_write; file accepts read_only; model, workflow and script accept invoke. Any other combination returns 400.
|
|
45507
46004
|
*/
|
|
45508
|
-
access: 'read_only' | 'read_write';
|
|
46005
|
+
access: 'read_only' | 'read_write' | 'invoke';
|
|
45509
46006
|
/**
|
|
45510
46007
|
* Optional guidance for using this resource, up to 4096 characters; does not expand access.
|
|
45511
46008
|
*/
|
|
@@ -45514,25 +46011,13 @@ export type AgentsUpdateData = {
|
|
|
45514
46011
|
* Whether this binding grants access. Defaults to true; false immediately disables it for running sessions.
|
|
45515
46012
|
*/
|
|
45516
46013
|
enabled?: boolean;
|
|
45517
|
-
}
|
|
45518
|
-
/**
|
|
45519
|
-
* Replace this resource allowlist; omission preserves it, and null or [] clears it. Additions apply only to new sessions; disabling or removing a binding immediately revokes access in running sessions. Only service agents accept nonempty bindings.
|
|
45520
|
-
*/
|
|
45521
|
-
files?: Array<{
|
|
45522
|
-
/**
|
|
45523
|
-
* Resource id from file.files.list or file.files.create (upload); use the returned id, not its name. Must start with file_ and be unique within this binding array.
|
|
45524
|
-
*/
|
|
45525
|
-
id: string;
|
|
45526
|
-
/**
|
|
45527
|
-
* read_only permits reading the bound file; files do not accept read_write.
|
|
45528
|
-
*/
|
|
45529
|
-
access: 'read_only';
|
|
46014
|
+
} | {
|
|
45530
46015
|
/**
|
|
45531
|
-
*
|
|
46016
|
+
* Service type. Opens the whole service to codemode; there is no per-resource id.
|
|
45532
46017
|
*/
|
|
45533
|
-
|
|
46018
|
+
type: 'search' | 'browser';
|
|
45534
46019
|
/**
|
|
45535
|
-
* Whether
|
|
46020
|
+
* Whether the service is open. Defaults to true; false immediately closes it for running sessions.
|
|
45536
46021
|
*/
|
|
45537
46022
|
enabled?: boolean;
|
|
45538
46023
|
}> | null;
|
|
@@ -45874,7 +46359,7 @@ export type AgentsUpdateData = {
|
|
|
45874
46359
|
*/
|
|
45875
46360
|
commands?: Array<string>;
|
|
45876
46361
|
/**
|
|
45877
|
-
*
|
|
46362
|
+
* Names of disabled skills declarations.
|
|
45878
46363
|
*/
|
|
45879
46364
|
skills?: Array<string>;
|
|
45880
46365
|
/**
|
|
@@ -45896,6 +46381,18 @@ export type AgentsUpdateData = {
|
|
|
45896
46381
|
*/
|
|
45897
46382
|
allowed: Array<string>;
|
|
45898
46383
|
};
|
|
46384
|
+
/**
|
|
46385
|
+
* Avatar image of the agent: an absolute https URL of at most 2048 characters, without credentials; any other value returns 400 avatar must be an https URL. It is the default picture in agent lists, the agent detail, the chat header and embedded chat when the embed appearance sets none. Saved with the agent version like other configuration, so apply=false keeps the previous avatar in effect until that version is applied. Omit on create for no avatar; on update, omit to keep it and send null to clear it. Both personal and service agents accept it. /agent/v1 only; /anthropic neither accepts nor returns it.
|
|
46386
|
+
*/
|
|
46387
|
+
avatar?: string | null;
|
|
46388
|
+
/**
|
|
46389
|
+
* Default environment of a service agent: the environment_id a new session gets when it names none. Use light, node22 or the env_ id of an active environment of your organization; any other value returns 400 environment_id <id> was not found. null means no environment, so sessions are plain conversation without codemode or bash. Saved with the agent version like other configuration, so apply=false keeps the previous environment in effect for new sessions until that version is applied; a session that sets environment_id itself, null included, overrides it. Omit on create for light; on update, omit to keep it. Versions saved before this field existed read as light. Personal agents use a Computer: a non-null value returns 400 and the field is not returned. /agent/v1 only; /anthropic neither accepts nor returns it.
|
|
46390
|
+
*/
|
|
46391
|
+
environment_id?: string | null;
|
|
46392
|
+
/**
|
|
46393
|
+
* Default vaults of a service agent: the vault_ids a new session gets when it names none, so the agent's credentials follow the version. At most 50 ids without duplicates; each must be a vault of your organization that is not archived, otherwise 400 vault_ids[<index>] <id> was not found. Saved with the agent version like other configuration, so apply=false keeps the previous vaults in effect for new sessions until that version is applied; a session that sets vault_ids itself, [] included, overrides it. Omit on create for []; on update, omit to keep the list and send an array to replace it as a whole. Versions saved before this field existed read as []. Embed tokens use the vault_ids of the version they pin; vault_ids on the embed policy is deprecated, still accepted and ignored. Personal agents get no default vaults: a non-empty value returns 400 and the field is not returned. /agent/v1 only; /anthropic neither accepts nor returns it.
|
|
46394
|
+
*/
|
|
46395
|
+
vault_ids?: Array<string>;
|
|
45899
46396
|
/**
|
|
45900
46397
|
* Optional tool preset. minimal enables read, glob, grep and ask_user_question; data-editor also enables write and edit; full uses the default toolset with always_allow. Explicit tools override matching preset entries. codemode requires bash and is absent from data-editor.
|
|
45901
46398
|
*/
|
|
@@ -45910,6 +46407,28 @@ export type AgentsUpdateData = {
|
|
|
45910
46407
|
query?: never;
|
|
45911
46408
|
url: '/agent/v1/agents/{agent_id}';
|
|
45912
46409
|
};
|
|
46410
|
+
export type AgentsUpdateErrors = {
|
|
46411
|
+
/**
|
|
46412
|
+
* The body failed validation and the message names the field (same rules as agents.create, including tools: null).
|
|
46413
|
+
*/
|
|
46414
|
+
400: unknown;
|
|
46415
|
+
/**
|
|
46416
|
+
* The API key is missing, invalid or revoked. Send a valid key as X-API-Key or as a Bearer token.
|
|
46417
|
+
*/
|
|
46418
|
+
401: unknown;
|
|
46419
|
+
/**
|
|
46420
|
+
* permission_error: the credential's role or bound resources do not allow this operation. Use a key with access to the agent domain and its resources.
|
|
46421
|
+
*/
|
|
46422
|
+
403: unknown;
|
|
46423
|
+
/**
|
|
46424
|
+
* Agent not found: the id does not exist in your organization. Take ids from agents.list or agents.create.
|
|
46425
|
+
*/
|
|
46426
|
+
404: unknown;
|
|
46427
|
+
/**
|
|
46428
|
+
* Agent is archived (unarchive it first), or version does not match the agent's current version (retrieve it again and resend with that version), or a newer version saved with apply false is waiting (apply it or save over it).
|
|
46429
|
+
*/
|
|
46430
|
+
409: unknown;
|
|
46431
|
+
};
|
|
45913
46432
|
export type AgentsUpdateResponses = {
|
|
45914
46433
|
/**
|
|
45915
46434
|
* Successful response
|
|
@@ -45941,12 +46460,9 @@ export type AgentsUpdateResponses = {
|
|
|
45941
46460
|
*/
|
|
45942
46461
|
model: {
|
|
45943
46462
|
/**
|
|
45944
|
-
*
|
|
45945
|
-
*
|
|
45946
|
-
* See [models](https://docs.anthropic.com/en/docs/models-overview) for additional
|
|
45947
|
-
* details and options.
|
|
46463
|
+
* A model id from the Praxis model catalog (`praxis.model.models.list`). Unlike Anthropic, Claude model ids other than those in the catalog are rejected.
|
|
45948
46464
|
*/
|
|
45949
|
-
id:
|
|
46465
|
+
id: string;
|
|
45950
46466
|
/**
|
|
45951
46467
|
* How hard Claude works on each turn. Sets `output_config.effort` on every
|
|
45952
46468
|
* Messages call the session makes.
|
|
@@ -45982,7 +46498,7 @@ export type AgentsUpdateResponses = {
|
|
|
45982
46498
|
*/
|
|
45983
46499
|
name: string;
|
|
45984
46500
|
/**
|
|
45985
|
-
*
|
|
46501
|
+
* Custom skills attached to the agent, each {type: "custom", skill_id, version?}: skill_id comes from skills.create or skills.list, at most 20 skills, no repeated skill_id. Omit version, or send "latest", to use the skill's newest version at the moment a session starts; a pinned version stays fixed. type anthropic returns 400: upload the skill and attach it as custom. On update, omit the field to keep the list, send an array to replace it, or send [] or null to clear it.
|
|
45986
46502
|
*/
|
|
45987
46503
|
skills: Array<AgentManaged42 | AgentManaged43>;
|
|
45988
46504
|
/**
|
|
@@ -46041,38 +46557,21 @@ export type AgentsUpdateResponses = {
|
|
|
46041
46557
|
*/
|
|
46042
46558
|
note: string | null;
|
|
46043
46559
|
/**
|
|
46044
|
-
*
|
|
46560
|
+
* Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; personal agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A service binding opens a whole service and carries only enabled: search or browser. At most 20 bindings per type, no repeated type and id, and each service type at most once. A session is authorized by the agent version it runs: newly added bindings apply only to new sessions, and a version saved with apply=false changes no access until it is applied. Applying a version that disables, removes or downgrades a binding revokes it immediately in running sessions on older versions. A resource that is not bound returns 404, a service that is not opened returns 403, and a write to a resource bound read_only returns 403 BINDING_READ_ONLY. Unknown types, fields on the wrong kind (id, access or instructions on a service binding), wrong access and malformed ids return 400. The former databases, vector_stores and files fields are removed and return 400. Omit on create for no bindings.
|
|
46045
46561
|
*/
|
|
46046
|
-
|
|
46047
|
-
/**
|
|
46048
|
-
* Resource id from database.databases.list or database.databases.create; use the returned id, not its name. Must start with db_ and be unique within this binding array.
|
|
46049
|
-
*/
|
|
46050
|
-
id: string;
|
|
46562
|
+
bindings: Array<{
|
|
46051
46563
|
/**
|
|
46052
|
-
*
|
|
46564
|
+
* Resource type. Decides the id format and the allowed access.
|
|
46053
46565
|
*/
|
|
46054
|
-
|
|
46055
|
-
/**
|
|
46056
|
-
* Optional guidance for using this resource, up to 4096 characters; does not expand access.
|
|
46057
|
-
*/
|
|
46058
|
-
instructions?: string;
|
|
46059
|
-
/**
|
|
46060
|
-
* Whether this binding grants access. Defaults to true; false immediately disables it for running sessions.
|
|
46061
|
-
*/
|
|
46062
|
-
enabled?: boolean;
|
|
46063
|
-
}>;
|
|
46064
|
-
/**
|
|
46065
|
-
* Knowledge vector store allowlist for platform resources accessible through service-agent codemode. Only kind=service accepts nonempty bindings; personal agents return 400. At most 20 bindings per resource type, with no duplicate ids. Newly added bindings apply only to new sessions; disabling or removing a binding immediately revokes access in running sessions. Unbound resources return 404; writes to read_only resources are refused. Other platform APIs return 403, except public API discovery. Invalid bindings and unknown item fields return 400. Omit on create for no bindings.
|
|
46066
|
-
*/
|
|
46067
|
-
vector_stores: Array<{
|
|
46566
|
+
type: 'database' | 'vector_store' | 'file' | 'media_library' | 'model' | 'workflow' | 'script';
|
|
46068
46567
|
/**
|
|
46069
|
-
* Resource id
|
|
46568
|
+
* Resource id, never its name. database db_..., vector_store vs_..., file file- plus 24 letters or digits; media_library and model ids must not contain ':' or whitespace; workflow and script use <namespace>/<name> with no '/', '@', ':' or whitespace inside a part.
|
|
46070
46569
|
*/
|
|
46071
46570
|
id: string;
|
|
46072
46571
|
/**
|
|
46073
|
-
*
|
|
46572
|
+
* database, vector_store and media_library accept read_only or read_write; file accepts read_only; model, workflow and script accept invoke. Any other combination returns 400.
|
|
46074
46573
|
*/
|
|
46075
|
-
access: 'read_only' | 'read_write';
|
|
46574
|
+
access: 'read_only' | 'read_write' | 'invoke';
|
|
46076
46575
|
/**
|
|
46077
46576
|
* Optional guidance for using this resource, up to 4096 characters; does not expand access.
|
|
46078
46577
|
*/
|
|
@@ -46081,25 +46580,13 @@ export type AgentsUpdateResponses = {
|
|
|
46081
46580
|
* Whether this binding grants access. Defaults to true; false immediately disables it for running sessions.
|
|
46082
46581
|
*/
|
|
46083
46582
|
enabled?: boolean;
|
|
46084
|
-
}
|
|
46085
|
-
/**
|
|
46086
|
-
* File allowlist for platform resources accessible through service-agent codemode. Only kind=service accepts nonempty bindings; personal agents return 400. At most 20 bindings per resource type, with no duplicate ids. Newly added bindings apply only to new sessions; disabling or removing a binding immediately revokes access in running sessions. Unbound resources return 404; writes to read_only resources are refused. Other platform APIs return 403, except public API discovery. Invalid bindings and unknown item fields return 400. Omit on create for no bindings.
|
|
46087
|
-
*/
|
|
46088
|
-
files: Array<{
|
|
46089
|
-
/**
|
|
46090
|
-
* Resource id from file.files.list or file.files.create (upload); use the returned id, not its name. Must start with file_ and be unique within this binding array.
|
|
46091
|
-
*/
|
|
46092
|
-
id: string;
|
|
46583
|
+
} | {
|
|
46093
46584
|
/**
|
|
46094
|
-
*
|
|
46585
|
+
* Service type. Opens the whole service to codemode; there is no per-resource id.
|
|
46095
46586
|
*/
|
|
46096
|
-
|
|
46587
|
+
type: 'search' | 'browser';
|
|
46097
46588
|
/**
|
|
46098
|
-
*
|
|
46099
|
-
*/
|
|
46100
|
-
instructions?: string;
|
|
46101
|
-
/**
|
|
46102
|
-
* Whether this binding grants access. Defaults to true; false immediately disables it for running sessions.
|
|
46589
|
+
* Whether the service is open. Defaults to true; false immediately closes it for running sessions.
|
|
46103
46590
|
*/
|
|
46104
46591
|
enabled?: boolean;
|
|
46105
46592
|
}>;
|
|
@@ -46441,7 +46928,7 @@ export type AgentsUpdateResponses = {
|
|
|
46441
46928
|
*/
|
|
46442
46929
|
commands?: Array<string>;
|
|
46443
46930
|
/**
|
|
46444
|
-
*
|
|
46931
|
+
* Names of disabled skills declarations.
|
|
46445
46932
|
*/
|
|
46446
46933
|
skills?: Array<string>;
|
|
46447
46934
|
/**
|
|
@@ -46463,6 +46950,26 @@ export type AgentsUpdateResponses = {
|
|
|
46463
46950
|
*/
|
|
46464
46951
|
allowed: Array<string>;
|
|
46465
46952
|
};
|
|
46953
|
+
/**
|
|
46954
|
+
* Avatar image URL of this agent version (absolute https), shown in agent lists, the agent detail, the chat header and as the default avatar of embedded chat; null when none is set. Follows the version like other configuration: a version saved with apply=false does not change the avatar in effect. /agent/v1 only.
|
|
46955
|
+
*/
|
|
46956
|
+
avatar: string | null;
|
|
46957
|
+
/**
|
|
46958
|
+
* Channel the agent was created through (for example api or console); null for historical agents whose channel is unknown. Display only. /agent/v1 only; /anthropic neither returns it.
|
|
46959
|
+
*/
|
|
46960
|
+
creation_source: string | null;
|
|
46961
|
+
/**
|
|
46962
|
+
* Platform-wide identity number of the agent (8 characters), usable wherever an agent is addressed by identity_number; null when the agent has none. /agent/v1 only; /anthropic neither returns it.
|
|
46963
|
+
*/
|
|
46964
|
+
identity_number: string | null;
|
|
46965
|
+
/**
|
|
46966
|
+
* Default environment of this service agent version: the environment_id new sessions get when they name none; null means no environment. Present for service agents only. Follows the version like other configuration: a version saved with apply=false does not change the environment in effect. Versions saved before this field existed read as light. /agent/v1 only.
|
|
46967
|
+
*/
|
|
46968
|
+
environment_id?: string | null;
|
|
46969
|
+
/**
|
|
46970
|
+
* Default vaults of this service agent version: the vault_ids new sessions get when they name none. Present for service agents only. Follows the version like other configuration: a version saved with apply=false does not change the vaults in effect. Versions saved before this field existed read as []. /agent/v1 only.
|
|
46971
|
+
*/
|
|
46972
|
+
vault_ids?: Array<string>;
|
|
46466
46973
|
/**
|
|
46467
46974
|
* Current agent lifecycle status; unarchive restores an archived agent to active.
|
|
46468
46975
|
*/
|
|
@@ -46481,6 +46988,20 @@ export type AgentsArchiveData = {
|
|
|
46481
46988
|
query?: never;
|
|
46482
46989
|
url: '/agent/v1/agents/{agent_id}/archive';
|
|
46483
46990
|
};
|
|
46991
|
+
export type AgentsArchiveErrors = {
|
|
46992
|
+
/**
|
|
46993
|
+
* The API key is missing, invalid or revoked. Send a valid key as X-API-Key or as a Bearer token.
|
|
46994
|
+
*/
|
|
46995
|
+
401: unknown;
|
|
46996
|
+
/**
|
|
46997
|
+
* permission_error: the credential's role or bound resources do not allow this operation. Use a key with access to the agent domain and its resources.
|
|
46998
|
+
*/
|
|
46999
|
+
403: unknown;
|
|
47000
|
+
/**
|
|
47001
|
+
* Agent not found: the id does not exist in your organization. Take ids from agents.list or agents.create.
|
|
47002
|
+
*/
|
|
47003
|
+
404: unknown;
|
|
47004
|
+
};
|
|
46484
47005
|
export type AgentsArchiveResponses = {
|
|
46485
47006
|
/**
|
|
46486
47007
|
* Successful response
|
|
@@ -46512,12 +47033,9 @@ export type AgentsArchiveResponses = {
|
|
|
46512
47033
|
*/
|
|
46513
47034
|
model: {
|
|
46514
47035
|
/**
|
|
46515
|
-
*
|
|
46516
|
-
*
|
|
46517
|
-
* See [models](https://docs.anthropic.com/en/docs/models-overview) for additional
|
|
46518
|
-
* details and options.
|
|
47036
|
+
* A model id from the Praxis model catalog (`praxis.model.models.list`). Unlike Anthropic, Claude model ids other than those in the catalog are rejected.
|
|
46519
47037
|
*/
|
|
46520
|
-
id:
|
|
47038
|
+
id: string;
|
|
46521
47039
|
/**
|
|
46522
47040
|
* How hard Claude works on each turn. Sets `output_config.effort` on every
|
|
46523
47041
|
* Messages call the session makes.
|
|
@@ -46553,7 +47071,7 @@ export type AgentsArchiveResponses = {
|
|
|
46553
47071
|
*/
|
|
46554
47072
|
name: string;
|
|
46555
47073
|
/**
|
|
46556
|
-
*
|
|
47074
|
+
* Custom skills attached to the agent, each {type: "custom", skill_id, version?}: skill_id comes from skills.create or skills.list, at most 20 skills, no repeated skill_id. Omit version, or send "latest", to use the skill's newest version at the moment a session starts; a pinned version stays fixed. type anthropic returns 400: upload the skill and attach it as custom. On update, omit the field to keep the list, send an array to replace it, or send [] or null to clear it.
|
|
46557
47075
|
*/
|
|
46558
47076
|
skills: Array<AgentManaged42 | AgentManaged43>;
|
|
46559
47077
|
/**
|
|
@@ -46612,38 +47130,21 @@ export type AgentsArchiveResponses = {
|
|
|
46612
47130
|
*/
|
|
46613
47131
|
note: string | null;
|
|
46614
47132
|
/**
|
|
46615
|
-
*
|
|
47133
|
+
* Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; personal agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A service binding opens a whole service and carries only enabled: search or browser. At most 20 bindings per type, no repeated type and id, and each service type at most once. A session is authorized by the agent version it runs: newly added bindings apply only to new sessions, and a version saved with apply=false changes no access until it is applied. Applying a version that disables, removes or downgrades a binding revokes it immediately in running sessions on older versions. A resource that is not bound returns 404, a service that is not opened returns 403, and a write to a resource bound read_only returns 403 BINDING_READ_ONLY. Unknown types, fields on the wrong kind (id, access or instructions on a service binding), wrong access and malformed ids return 400. The former databases, vector_stores and files fields are removed and return 400. Omit on create for no bindings.
|
|
46616
47134
|
*/
|
|
46617
|
-
|
|
46618
|
-
/**
|
|
46619
|
-
* Resource id from database.databases.list or database.databases.create; use the returned id, not its name. Must start with db_ and be unique within this binding array.
|
|
46620
|
-
*/
|
|
46621
|
-
id: string;
|
|
46622
|
-
/**
|
|
46623
|
-
* read_only permits reads of the bound resource; read_write permits reads and writes.
|
|
46624
|
-
*/
|
|
46625
|
-
access: 'read_only' | 'read_write';
|
|
47135
|
+
bindings: Array<{
|
|
46626
47136
|
/**
|
|
46627
|
-
*
|
|
46628
|
-
*/
|
|
46629
|
-
instructions?: string;
|
|
46630
|
-
/**
|
|
46631
|
-
* Whether this binding grants access. Defaults to true; false immediately disables it for running sessions.
|
|
47137
|
+
* Resource type. Decides the id format and the allowed access.
|
|
46632
47138
|
*/
|
|
46633
|
-
|
|
46634
|
-
}>;
|
|
46635
|
-
/**
|
|
46636
|
-
* Knowledge vector store allowlist for platform resources accessible through service-agent codemode. Only kind=service accepts nonempty bindings; personal agents return 400. At most 20 bindings per resource type, with no duplicate ids. Newly added bindings apply only to new sessions; disabling or removing a binding immediately revokes access in running sessions. Unbound resources return 404; writes to read_only resources are refused. Other platform APIs return 403, except public API discovery. Invalid bindings and unknown item fields return 400. Omit on create for no bindings.
|
|
46637
|
-
*/
|
|
46638
|
-
vector_stores: Array<{
|
|
47139
|
+
type: 'database' | 'vector_store' | 'file' | 'media_library' | 'model' | 'workflow' | 'script';
|
|
46639
47140
|
/**
|
|
46640
|
-
* Resource id
|
|
47141
|
+
* Resource id, never its name. database db_..., vector_store vs_..., file file- plus 24 letters or digits; media_library and model ids must not contain ':' or whitespace; workflow and script use <namespace>/<name> with no '/', '@', ':' or whitespace inside a part.
|
|
46641
47142
|
*/
|
|
46642
47143
|
id: string;
|
|
46643
47144
|
/**
|
|
46644
|
-
*
|
|
47145
|
+
* database, vector_store and media_library accept read_only or read_write; file accepts read_only; model, workflow and script accept invoke. Any other combination returns 400.
|
|
46645
47146
|
*/
|
|
46646
|
-
access: 'read_only' | 'read_write';
|
|
47147
|
+
access: 'read_only' | 'read_write' | 'invoke';
|
|
46647
47148
|
/**
|
|
46648
47149
|
* Optional guidance for using this resource, up to 4096 characters; does not expand access.
|
|
46649
47150
|
*/
|
|
@@ -46652,25 +47153,13 @@ export type AgentsArchiveResponses = {
|
|
|
46652
47153
|
* Whether this binding grants access. Defaults to true; false immediately disables it for running sessions.
|
|
46653
47154
|
*/
|
|
46654
47155
|
enabled?: boolean;
|
|
46655
|
-
}
|
|
46656
|
-
/**
|
|
46657
|
-
* File allowlist for platform resources accessible through service-agent codemode. Only kind=service accepts nonempty bindings; personal agents return 400. At most 20 bindings per resource type, with no duplicate ids. Newly added bindings apply only to new sessions; disabling or removing a binding immediately revokes access in running sessions. Unbound resources return 404; writes to read_only resources are refused. Other platform APIs return 403, except public API discovery. Invalid bindings and unknown item fields return 400. Omit on create for no bindings.
|
|
46658
|
-
*/
|
|
46659
|
-
files: Array<{
|
|
46660
|
-
/**
|
|
46661
|
-
* Resource id from file.files.list or file.files.create (upload); use the returned id, not its name. Must start with file_ and be unique within this binding array.
|
|
46662
|
-
*/
|
|
46663
|
-
id: string;
|
|
47156
|
+
} | {
|
|
46664
47157
|
/**
|
|
46665
|
-
*
|
|
47158
|
+
* Service type. Opens the whole service to codemode; there is no per-resource id.
|
|
46666
47159
|
*/
|
|
46667
|
-
|
|
47160
|
+
type: 'search' | 'browser';
|
|
46668
47161
|
/**
|
|
46669
|
-
*
|
|
46670
|
-
*/
|
|
46671
|
-
instructions?: string;
|
|
46672
|
-
/**
|
|
46673
|
-
* Whether this binding grants access. Defaults to true; false immediately disables it for running sessions.
|
|
47162
|
+
* Whether the service is open. Defaults to true; false immediately closes it for running sessions.
|
|
46674
47163
|
*/
|
|
46675
47164
|
enabled?: boolean;
|
|
46676
47165
|
}>;
|
|
@@ -47012,7 +47501,7 @@ export type AgentsArchiveResponses = {
|
|
|
47012
47501
|
*/
|
|
47013
47502
|
commands?: Array<string>;
|
|
47014
47503
|
/**
|
|
47015
|
-
*
|
|
47504
|
+
* Names of disabled skills declarations.
|
|
47016
47505
|
*/
|
|
47017
47506
|
skills?: Array<string>;
|
|
47018
47507
|
/**
|
|
@@ -47034,6 +47523,26 @@ export type AgentsArchiveResponses = {
|
|
|
47034
47523
|
*/
|
|
47035
47524
|
allowed: Array<string>;
|
|
47036
47525
|
};
|
|
47526
|
+
/**
|
|
47527
|
+
* Avatar image URL of this agent version (absolute https), shown in agent lists, the agent detail, the chat header and as the default avatar of embedded chat; null when none is set. Follows the version like other configuration: a version saved with apply=false does not change the avatar in effect. /agent/v1 only.
|
|
47528
|
+
*/
|
|
47529
|
+
avatar: string | null;
|
|
47530
|
+
/**
|
|
47531
|
+
* Channel the agent was created through (for example api or console); null for historical agents whose channel is unknown. Display only. /agent/v1 only; /anthropic neither returns it.
|
|
47532
|
+
*/
|
|
47533
|
+
creation_source: string | null;
|
|
47534
|
+
/**
|
|
47535
|
+
* Platform-wide identity number of the agent (8 characters), usable wherever an agent is addressed by identity_number; null when the agent has none. /agent/v1 only; /anthropic neither returns it.
|
|
47536
|
+
*/
|
|
47537
|
+
identity_number: string | null;
|
|
47538
|
+
/**
|
|
47539
|
+
* Default environment of this service agent version: the environment_id new sessions get when they name none; null means no environment. Present for service agents only. Follows the version like other configuration: a version saved with apply=false does not change the environment in effect. Versions saved before this field existed read as light. /agent/v1 only.
|
|
47540
|
+
*/
|
|
47541
|
+
environment_id?: string | null;
|
|
47542
|
+
/**
|
|
47543
|
+
* Default vaults of this service agent version: the vault_ids new sessions get when they name none. Present for service agents only. Follows the version like other configuration: a version saved with apply=false does not change the vaults in effect. Versions saved before this field existed read as []. /agent/v1 only.
|
|
47544
|
+
*/
|
|
47545
|
+
vault_ids?: Array<string>;
|
|
47037
47546
|
/**
|
|
47038
47547
|
* Current agent lifecycle status; unarchive restores an archived agent to active.
|
|
47039
47548
|
*/
|
|
@@ -47058,6 +47567,24 @@ export type AgentsVersionsListData = {
|
|
|
47058
47567
|
};
|
|
47059
47568
|
url: '/agent/v1/agents/{agent_id}/versions';
|
|
47060
47569
|
};
|
|
47570
|
+
export type AgentsVersionsListErrors = {
|
|
47571
|
+
/**
|
|
47572
|
+
* limit is not an integer from 1 to 100, or page is not a cursor from this same query. Pass next_page unchanged, with the same filters, to continue.
|
|
47573
|
+
*/
|
|
47574
|
+
400: unknown;
|
|
47575
|
+
/**
|
|
47576
|
+
* The API key is missing, invalid or revoked. Send a valid key as X-API-Key or as a Bearer token.
|
|
47577
|
+
*/
|
|
47578
|
+
401: unknown;
|
|
47579
|
+
/**
|
|
47580
|
+
* permission_error: the credential's role or bound resources do not allow this operation. Use a key with access to the agent domain and its resources.
|
|
47581
|
+
*/
|
|
47582
|
+
403: unknown;
|
|
47583
|
+
/**
|
|
47584
|
+
* Agent not found: the id does not exist in your organization. Take ids from agents.list or agents.create.
|
|
47585
|
+
*/
|
|
47586
|
+
404: unknown;
|
|
47587
|
+
};
|
|
47061
47588
|
export type AgentsVersionsListResponses = {
|
|
47062
47589
|
/**
|
|
47063
47590
|
* Successful response
|
|
@@ -47093,12 +47620,9 @@ export type AgentsVersionsListResponses = {
|
|
|
47093
47620
|
*/
|
|
47094
47621
|
model: {
|
|
47095
47622
|
/**
|
|
47096
|
-
*
|
|
47097
|
-
*
|
|
47098
|
-
* See [models](https://docs.anthropic.com/en/docs/models-overview) for additional
|
|
47099
|
-
* details and options.
|
|
47623
|
+
* A model id from the Praxis model catalog (`praxis.model.models.list`). Unlike Anthropic, Claude model ids other than those in the catalog are rejected.
|
|
47100
47624
|
*/
|
|
47101
|
-
id:
|
|
47625
|
+
id: string;
|
|
47102
47626
|
/**
|
|
47103
47627
|
* How hard Claude works on each turn. Sets `output_config.effort` on every
|
|
47104
47628
|
* Messages call the session makes.
|
|
@@ -47134,7 +47658,7 @@ export type AgentsVersionsListResponses = {
|
|
|
47134
47658
|
*/
|
|
47135
47659
|
name: string;
|
|
47136
47660
|
/**
|
|
47137
|
-
*
|
|
47661
|
+
* Custom skills attached to the agent, each {type: "custom", skill_id, version?}: skill_id comes from skills.create or skills.list, at most 20 skills, no repeated skill_id. Omit version, or send "latest", to use the skill's newest version at the moment a session starts; a pinned version stays fixed. type anthropic returns 400: upload the skill and attach it as custom. On update, omit the field to keep the list, send an array to replace it, or send [] or null to clear it.
|
|
47138
47662
|
*/
|
|
47139
47663
|
skills: Array<AgentManaged42 | AgentManaged43>;
|
|
47140
47664
|
/**
|
|
@@ -47162,6 +47686,10 @@ export type AgentsVersionsListResponses = {
|
|
|
47162
47686
|
* Version used by new sessions and newly issued embed tokens when no version is specified. Starts at 1; saving with apply false leaves it unchanged. Existing sessions and tokens keep their version.
|
|
47163
47687
|
*/
|
|
47164
47688
|
active_version: number;
|
|
47689
|
+
/**
|
|
47690
|
+
* True only for the item whose version equals the agent's active_version, the version new sessions use. active_version on each item is the agent-level value, kept for compatibility; it is not specific to that item.
|
|
47691
|
+
*/
|
|
47692
|
+
active: boolean;
|
|
47165
47693
|
/**
|
|
47166
47694
|
* Authenticated author who created this immutable version; null for historical versions without attribution. user identifies the signed-in user; api_key identifies the calling key. Never supplied by the request body.
|
|
47167
47695
|
*/
|
|
@@ -47193,38 +47721,21 @@ export type AgentsVersionsListResponses = {
|
|
|
47193
47721
|
*/
|
|
47194
47722
|
note: string | null;
|
|
47195
47723
|
/**
|
|
47196
|
-
*
|
|
47724
|
+
* Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; personal agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A service binding opens a whole service and carries only enabled: search or browser. At most 20 bindings per type, no repeated type and id, and each service type at most once. A session is authorized by the agent version it runs: newly added bindings apply only to new sessions, and a version saved with apply=false changes no access until it is applied. Applying a version that disables, removes or downgrades a binding revokes it immediately in running sessions on older versions. A resource that is not bound returns 404, a service that is not opened returns 403, and a write to a resource bound read_only returns 403 BINDING_READ_ONLY. Unknown types, fields on the wrong kind (id, access or instructions on a service binding), wrong access and malformed ids return 400. The former databases, vector_stores and files fields are removed and return 400. Omit on create for no bindings.
|
|
47197
47725
|
*/
|
|
47198
|
-
|
|
47199
|
-
/**
|
|
47200
|
-
* Resource id from database.databases.list or database.databases.create; use the returned id, not its name. Must start with db_ and be unique within this binding array.
|
|
47201
|
-
*/
|
|
47202
|
-
id: string;
|
|
47726
|
+
bindings: Array<{
|
|
47203
47727
|
/**
|
|
47204
|
-
*
|
|
47728
|
+
* Resource type. Decides the id format and the allowed access.
|
|
47205
47729
|
*/
|
|
47206
|
-
|
|
47207
|
-
/**
|
|
47208
|
-
* Optional guidance for using this resource, up to 4096 characters; does not expand access.
|
|
47209
|
-
*/
|
|
47210
|
-
instructions?: string;
|
|
47211
|
-
/**
|
|
47212
|
-
* Whether this binding grants access. Defaults to true; false immediately disables it for running sessions.
|
|
47213
|
-
*/
|
|
47214
|
-
enabled?: boolean;
|
|
47215
|
-
}>;
|
|
47216
|
-
/**
|
|
47217
|
-
* Knowledge vector store allowlist for platform resources accessible through service-agent codemode. Only kind=service accepts nonempty bindings; personal agents return 400. At most 20 bindings per resource type, with no duplicate ids. Newly added bindings apply only to new sessions; disabling or removing a binding immediately revokes access in running sessions. Unbound resources return 404; writes to read_only resources are refused. Other platform APIs return 403, except public API discovery. Invalid bindings and unknown item fields return 400. Omit on create for no bindings.
|
|
47218
|
-
*/
|
|
47219
|
-
vector_stores: Array<{
|
|
47730
|
+
type: 'database' | 'vector_store' | 'file' | 'media_library' | 'model' | 'workflow' | 'script';
|
|
47220
47731
|
/**
|
|
47221
|
-
* Resource id
|
|
47732
|
+
* Resource id, never its name. database db_..., vector_store vs_..., file file- plus 24 letters or digits; media_library and model ids must not contain ':' or whitespace; workflow and script use <namespace>/<name> with no '/', '@', ':' or whitespace inside a part.
|
|
47222
47733
|
*/
|
|
47223
47734
|
id: string;
|
|
47224
47735
|
/**
|
|
47225
|
-
*
|
|
47736
|
+
* database, vector_store and media_library accept read_only or read_write; file accepts read_only; model, workflow and script accept invoke. Any other combination returns 400.
|
|
47226
47737
|
*/
|
|
47227
|
-
access: 'read_only' | 'read_write';
|
|
47738
|
+
access: 'read_only' | 'read_write' | 'invoke';
|
|
47228
47739
|
/**
|
|
47229
47740
|
* Optional guidance for using this resource, up to 4096 characters; does not expand access.
|
|
47230
47741
|
*/
|
|
@@ -47233,25 +47744,13 @@ export type AgentsVersionsListResponses = {
|
|
|
47233
47744
|
* Whether this binding grants access. Defaults to true; false immediately disables it for running sessions.
|
|
47234
47745
|
*/
|
|
47235
47746
|
enabled?: boolean;
|
|
47236
|
-
}
|
|
47237
|
-
/**
|
|
47238
|
-
* File allowlist for platform resources accessible through service-agent codemode. Only kind=service accepts nonempty bindings; personal agents return 400. At most 20 bindings per resource type, with no duplicate ids. Newly added bindings apply only to new sessions; disabling or removing a binding immediately revokes access in running sessions. Unbound resources return 404; writes to read_only resources are refused. Other platform APIs return 403, except public API discovery. Invalid bindings and unknown item fields return 400. Omit on create for no bindings.
|
|
47239
|
-
*/
|
|
47240
|
-
files: Array<{
|
|
47241
|
-
/**
|
|
47242
|
-
* Resource id from file.files.list or file.files.create (upload); use the returned id, not its name. Must start with file_ and be unique within this binding array.
|
|
47243
|
-
*/
|
|
47244
|
-
id: string;
|
|
47747
|
+
} | {
|
|
47245
47748
|
/**
|
|
47246
|
-
*
|
|
47749
|
+
* Service type. Opens the whole service to codemode; there is no per-resource id.
|
|
47247
47750
|
*/
|
|
47248
|
-
|
|
47751
|
+
type: 'search' | 'browser';
|
|
47249
47752
|
/**
|
|
47250
|
-
*
|
|
47251
|
-
*/
|
|
47252
|
-
instructions?: string;
|
|
47253
|
-
/**
|
|
47254
|
-
* Whether this binding grants access. Defaults to true; false immediately disables it for running sessions.
|
|
47753
|
+
* Whether the service is open. Defaults to true; false immediately closes it for running sessions.
|
|
47255
47754
|
*/
|
|
47256
47755
|
enabled?: boolean;
|
|
47257
47756
|
}>;
|
|
@@ -47593,7 +48092,7 @@ export type AgentsVersionsListResponses = {
|
|
|
47593
48092
|
*/
|
|
47594
48093
|
commands?: Array<string>;
|
|
47595
48094
|
/**
|
|
47596
|
-
*
|
|
48095
|
+
* Names of disabled skills declarations.
|
|
47597
48096
|
*/
|
|
47598
48097
|
skills?: Array<string>;
|
|
47599
48098
|
/**
|
|
@@ -47615,6 +48114,26 @@ export type AgentsVersionsListResponses = {
|
|
|
47615
48114
|
*/
|
|
47616
48115
|
allowed: Array<string>;
|
|
47617
48116
|
};
|
|
48117
|
+
/**
|
|
48118
|
+
* Avatar image URL of this agent version (absolute https), shown in agent lists, the agent detail, the chat header and as the default avatar of embedded chat; null when none is set. Follows the version like other configuration: a version saved with apply=false does not change the avatar in effect. /agent/v1 only.
|
|
48119
|
+
*/
|
|
48120
|
+
avatar: string | null;
|
|
48121
|
+
/**
|
|
48122
|
+
* Channel the agent was created through (for example api or console); null for historical agents whose channel is unknown. Display only. /agent/v1 only; /anthropic neither returns it.
|
|
48123
|
+
*/
|
|
48124
|
+
creation_source: string | null;
|
|
48125
|
+
/**
|
|
48126
|
+
* Platform-wide identity number of the agent (8 characters), usable wherever an agent is addressed by identity_number; null when the agent has none. /agent/v1 only; /anthropic neither returns it.
|
|
48127
|
+
*/
|
|
48128
|
+
identity_number: string | null;
|
|
48129
|
+
/**
|
|
48130
|
+
* Default environment of this service agent version: the environment_id new sessions get when they name none; null means no environment. Present for service agents only. Follows the version like other configuration: a version saved with apply=false does not change the environment in effect. Versions saved before this field existed read as light. /agent/v1 only.
|
|
48131
|
+
*/
|
|
48132
|
+
environment_id?: string | null;
|
|
48133
|
+
/**
|
|
48134
|
+
* Default vaults of this service agent version: the vault_ids new sessions get when they name none. Present for service agents only. Follows the version like other configuration: a version saved with apply=false does not change the vaults in effect. Versions saved before this field existed read as []. /agent/v1 only.
|
|
48135
|
+
*/
|
|
48136
|
+
vault_ids?: Array<string>;
|
|
47618
48137
|
/**
|
|
47619
48138
|
* Current agent lifecycle status; unarchive restores an archived agent to active.
|
|
47620
48139
|
*/
|
|
@@ -47695,6 +48214,20 @@ export type SessionsListData = {
|
|
|
47695
48214
|
};
|
|
47696
48215
|
url: '/agent/v1/sessions';
|
|
47697
48216
|
};
|
|
48217
|
+
export type SessionsListErrors = {
|
|
48218
|
+
/**
|
|
48219
|
+
* An unsupported or repeated query parameter, include_archived that is not true or false, an external_user_id or source value outside its range, an agent_id or deployment_id of the wrong form, or limit is not an integer from 1 to 100, or page is not a cursor from this same query. Pass next_page unchanged, with the same filters, to continue.
|
|
48220
|
+
*/
|
|
48221
|
+
400: unknown;
|
|
48222
|
+
/**
|
|
48223
|
+
* The API key is missing, invalid or revoked. Send a valid key as X-API-Key or as a Bearer token.
|
|
48224
|
+
*/
|
|
48225
|
+
401: unknown;
|
|
48226
|
+
/**
|
|
48227
|
+
* permission_error: the credential's role or bound resources do not allow this operation. Use a key with access to the agent domain and its resources.
|
|
48228
|
+
*/
|
|
48229
|
+
403: unknown;
|
|
48230
|
+
};
|
|
47698
48231
|
export type SessionsListResponses = {
|
|
47699
48232
|
/**
|
|
47700
48233
|
* Successful response
|
|
@@ -47730,12 +48263,9 @@ export type SessionsListResponses = {
|
|
|
47730
48263
|
*/
|
|
47731
48264
|
model: {
|
|
47732
48265
|
/**
|
|
47733
|
-
*
|
|
47734
|
-
*
|
|
47735
|
-
* See [models](https://docs.anthropic.com/en/docs/models-overview) for additional
|
|
47736
|
-
* details and options.
|
|
48266
|
+
* A model id from the Praxis model catalog (`praxis.model.models.list`). Unlike Anthropic, Claude model ids other than those in the catalog are rejected.
|
|
47737
48267
|
*/
|
|
47738
|
-
id:
|
|
48268
|
+
id: string;
|
|
47739
48269
|
/**
|
|
47740
48270
|
* How hard Claude works on each turn. Sets `output_config.effort` on every
|
|
47741
48271
|
* Messages call the session makes.
|
|
@@ -47772,7 +48302,7 @@ export type SessionsListResponses = {
|
|
|
47772
48302
|
*/
|
|
47773
48303
|
name: string;
|
|
47774
48304
|
/**
|
|
47775
|
-
*
|
|
48305
|
+
* Custom skills attached to the agent, each {type: "custom", skill_id, version?}: skill_id comes from skills.create or skills.list, at most 20 skills, no repeated skill_id. Omit version, or send "latest", to use the skill's newest version at the moment a session starts; a pinned version stays fixed. type anthropic returns 400: upload the skill and attach it as custom. On update, omit the field to keep the list, send an array to replace it, or send [] or null to clear it.
|
|
47776
48306
|
*/
|
|
47777
48307
|
skills: Array<AgentManaged42 | AgentManaged43>;
|
|
47778
48308
|
/**
|
|
@@ -47788,7 +48318,7 @@ export type SessionsListResponses = {
|
|
|
47788
48318
|
*/
|
|
47789
48319
|
type: 'agent';
|
|
47790
48320
|
/**
|
|
47791
|
-
* The agent
|
|
48321
|
+
* The latest saved version of the agent, the editable head; it differs from active_version after a save with apply false. Starts at 1 and increments each time the agent is modified.
|
|
47792
48322
|
*/
|
|
47793
48323
|
version: number;
|
|
47794
48324
|
};
|
|
@@ -47806,7 +48336,7 @@ export type SessionsListResponses = {
|
|
|
47806
48336
|
*/
|
|
47807
48337
|
created_at: string;
|
|
47808
48338
|
/**
|
|
47809
|
-
* Execution environment
|
|
48339
|
+
* Execution environment of this session. A service session created without environment_id uses the default environment saved in the agent version (light for a new agent); null means it was created without a machine; Computer sessions may omit this field.
|
|
47810
48340
|
*/
|
|
47811
48341
|
environment_id?: string;
|
|
47812
48342
|
metadata: AgentManaged173;
|
|
@@ -47934,13 +48464,11 @@ export type SessionsListResponse = SessionsListResponses[keyof SessionsListRespo
|
|
|
47934
48464
|
export type SessionsCreateData = {
|
|
47935
48465
|
body: {
|
|
47936
48466
|
/**
|
|
47937
|
-
*
|
|
47938
|
-
* latest version for the session, or an `agent` object with both id and version
|
|
47939
|
-
* specified.
|
|
48467
|
+
* The agent to run: an agent id string, or {type: "agent", id, version?}. An id alone, or an object without version, pins the agent's active_version at the moment the session is created (the version chosen with agents.versions.apply, not necessarily the newest saved one); version pins that exact version. Unlike Managed Agents, the only inline override is a system prompt ({type: "agent_with_overrides", id, system}); to change the model, tools, MCP servers or skills, save a version instead.
|
|
47940
48468
|
*/
|
|
47941
48469
|
agent: string | AgentManaged10 | AgentManaged167;
|
|
47942
48470
|
/**
|
|
47943
|
-
* Execution environment id from agent.environments.list or agent.environments.create. For a service agent, omission
|
|
48471
|
+
* Execution environment id from agent.environments.list or agent.environments.create. For a service agent, omission uses the default environment saved in the agent version (light for a new agent) and returns it as session.environment_id; explicit null allocates no machine and makes machine tools, including codemode and bash, unavailable. Personal agents use their selected Computer.
|
|
47944
48472
|
*/
|
|
47945
48473
|
environment_id?: string | null;
|
|
47946
48474
|
/**
|
|
@@ -48007,6 +48535,32 @@ export type SessionsCreateData = {
|
|
|
48007
48535
|
query?: never;
|
|
48008
48536
|
url: '/agent/v1/sessions';
|
|
48009
48537
|
};
|
|
48538
|
+
export type SessionsCreateErrors = {
|
|
48539
|
+
/**
|
|
48540
|
+
* The body failed validation and the message names the field: an unknown field, environment_id together with computer_id, a model or thinking selection the agent does not allow, an invalid budget or vault_ids, invalid initial_events, or an agent reference with an unsupported override.
|
|
48541
|
+
*/
|
|
48542
|
+
400: unknown;
|
|
48543
|
+
/**
|
|
48544
|
+
* The API key is missing, invalid or revoked. Send a valid key as X-API-Key or as a Bearer token.
|
|
48545
|
+
*/
|
|
48546
|
+
401: unknown;
|
|
48547
|
+
/**
|
|
48548
|
+
* permission_error: the credential's role or bound resources do not allow this operation. Use a key with access to the agent domain and its resources.
|
|
48549
|
+
*/
|
|
48550
|
+
403: unknown;
|
|
48551
|
+
/**
|
|
48552
|
+
* Agent not found, or the pinned agent version does not exist. Take agent ids from agents.list and versions from agents.versions.list.
|
|
48553
|
+
*/
|
|
48554
|
+
404: unknown;
|
|
48555
|
+
/**
|
|
48556
|
+
* Agent is archived; unarchive it to start new sessions. Existing sessions keep working.
|
|
48557
|
+
*/
|
|
48558
|
+
409: unknown;
|
|
48559
|
+
/**
|
|
48560
|
+
* The session could not be established (machine, vault or resource synchronization failed). Nothing usable was created; retry.
|
|
48561
|
+
*/
|
|
48562
|
+
502: unknown;
|
|
48563
|
+
};
|
|
48010
48564
|
export type SessionsCreateResponses = {
|
|
48011
48565
|
/**
|
|
48012
48566
|
* Successful response
|
|
@@ -48038,12 +48592,9 @@ export type SessionsCreateResponses = {
|
|
|
48038
48592
|
*/
|
|
48039
48593
|
model: {
|
|
48040
48594
|
/**
|
|
48041
|
-
*
|
|
48042
|
-
*
|
|
48043
|
-
* See [models](https://docs.anthropic.com/en/docs/models-overview) for additional
|
|
48044
|
-
* details and options.
|
|
48595
|
+
* A model id from the Praxis model catalog (`praxis.model.models.list`). Unlike Anthropic, Claude model ids other than those in the catalog are rejected.
|
|
48045
48596
|
*/
|
|
48046
|
-
id:
|
|
48597
|
+
id: string;
|
|
48047
48598
|
/**
|
|
48048
48599
|
* How hard Claude works on each turn. Sets `output_config.effort` on every
|
|
48049
48600
|
* Messages call the session makes.
|
|
@@ -48080,7 +48631,7 @@ export type SessionsCreateResponses = {
|
|
|
48080
48631
|
*/
|
|
48081
48632
|
name: string;
|
|
48082
48633
|
/**
|
|
48083
|
-
*
|
|
48634
|
+
* Custom skills attached to the agent, each {type: "custom", skill_id, version?}: skill_id comes from skills.create or skills.list, at most 20 skills, no repeated skill_id. Omit version, or send "latest", to use the skill's newest version at the moment a session starts; a pinned version stays fixed. type anthropic returns 400: upload the skill and attach it as custom. On update, omit the field to keep the list, send an array to replace it, or send [] or null to clear it.
|
|
48084
48635
|
*/
|
|
48085
48636
|
skills: Array<AgentManaged42 | AgentManaged43>;
|
|
48086
48637
|
/**
|
|
@@ -48096,7 +48647,7 @@ export type SessionsCreateResponses = {
|
|
|
48096
48647
|
*/
|
|
48097
48648
|
type: 'agent';
|
|
48098
48649
|
/**
|
|
48099
|
-
* The agent
|
|
48650
|
+
* The latest saved version of the agent, the editable head; it differs from active_version after a save with apply false. Starts at 1 and increments each time the agent is modified.
|
|
48100
48651
|
*/
|
|
48101
48652
|
version: number;
|
|
48102
48653
|
};
|
|
@@ -48114,7 +48665,7 @@ export type SessionsCreateResponses = {
|
|
|
48114
48665
|
*/
|
|
48115
48666
|
created_at: string;
|
|
48116
48667
|
/**
|
|
48117
|
-
* Execution environment
|
|
48668
|
+
* Execution environment of this session. A service session created without environment_id uses the default environment saved in the agent version (light for a new agent); null means it was created without a machine; Computer sessions may omit this field.
|
|
48118
48669
|
*/
|
|
48119
48670
|
environment_id?: string;
|
|
48120
48671
|
metadata: AgentManaged173;
|
|
@@ -48245,6 +48796,20 @@ export type SessionsArchiveData = {
|
|
|
48245
48796
|
query?: never;
|
|
48246
48797
|
url: '/agent/v1/sessions/{session_id}/archive';
|
|
48247
48798
|
};
|
|
48799
|
+
export type SessionsArchiveErrors = {
|
|
48800
|
+
/**
|
|
48801
|
+
* The API key is missing, invalid or revoked. Send a valid key as X-API-Key or as a Bearer token.
|
|
48802
|
+
*/
|
|
48803
|
+
401: unknown;
|
|
48804
|
+
/**
|
|
48805
|
+
* permission_error: the credential's role or bound resources do not allow this operation. Use a key with access to the agent domain and its resources.
|
|
48806
|
+
*/
|
|
48807
|
+
403: unknown;
|
|
48808
|
+
/**
|
|
48809
|
+
* Session not found: the id does not exist in your organization. Take ids from sessions.list or sessions.create.
|
|
48810
|
+
*/
|
|
48811
|
+
404: unknown;
|
|
48812
|
+
};
|
|
48248
48813
|
export type SessionsArchiveResponses = {
|
|
48249
48814
|
/**
|
|
48250
48815
|
* Successful response
|
|
@@ -48276,12 +48841,9 @@ export type SessionsArchiveResponses = {
|
|
|
48276
48841
|
*/
|
|
48277
48842
|
model: {
|
|
48278
48843
|
/**
|
|
48279
|
-
*
|
|
48280
|
-
*
|
|
48281
|
-
* See [models](https://docs.anthropic.com/en/docs/models-overview) for additional
|
|
48282
|
-
* details and options.
|
|
48844
|
+
* A model id from the Praxis model catalog (`praxis.model.models.list`). Unlike Anthropic, Claude model ids other than those in the catalog are rejected.
|
|
48283
48845
|
*/
|
|
48284
|
-
id:
|
|
48846
|
+
id: string;
|
|
48285
48847
|
/**
|
|
48286
48848
|
* How hard Claude works on each turn. Sets `output_config.effort` on every
|
|
48287
48849
|
* Messages call the session makes.
|
|
@@ -48318,7 +48880,7 @@ export type SessionsArchiveResponses = {
|
|
|
48318
48880
|
*/
|
|
48319
48881
|
name: string;
|
|
48320
48882
|
/**
|
|
48321
|
-
*
|
|
48883
|
+
* Custom skills attached to the agent, each {type: "custom", skill_id, version?}: skill_id comes from skills.create or skills.list, at most 20 skills, no repeated skill_id. Omit version, or send "latest", to use the skill's newest version at the moment a session starts; a pinned version stays fixed. type anthropic returns 400: upload the skill and attach it as custom. On update, omit the field to keep the list, send an array to replace it, or send [] or null to clear it.
|
|
48322
48884
|
*/
|
|
48323
48885
|
skills: Array<AgentManaged42 | AgentManaged43>;
|
|
48324
48886
|
/**
|
|
@@ -48334,7 +48896,7 @@ export type SessionsArchiveResponses = {
|
|
|
48334
48896
|
*/
|
|
48335
48897
|
type: 'agent';
|
|
48336
48898
|
/**
|
|
48337
|
-
* The agent
|
|
48899
|
+
* The latest saved version of the agent, the editable head; it differs from active_version after a save with apply false. Starts at 1 and increments each time the agent is modified.
|
|
48338
48900
|
*/
|
|
48339
48901
|
version: number;
|
|
48340
48902
|
};
|
|
@@ -48352,7 +48914,7 @@ export type SessionsArchiveResponses = {
|
|
|
48352
48914
|
*/
|
|
48353
48915
|
created_at: string;
|
|
48354
48916
|
/**
|
|
48355
|
-
* Execution environment
|
|
48917
|
+
* Execution environment of this session. A service session created without environment_id uses the default environment saved in the agent version (light for a new agent); null means it was created without a machine; Computer sessions may omit this field.
|
|
48356
48918
|
*/
|
|
48357
48919
|
environment_id?: string;
|
|
48358
48920
|
metadata: AgentManaged173;
|
|
@@ -48520,6 +49082,24 @@ export type SessionsEventsListData = {
|
|
|
48520
49082
|
};
|
|
48521
49083
|
url: '/agent/v1/sessions/{session_id}/events';
|
|
48522
49084
|
};
|
|
49085
|
+
export type SessionsEventsListErrors = {
|
|
49086
|
+
/**
|
|
49087
|
+
* order is not asc or desc, types contains an unsupported event type, or limit is not an integer from 1 to 100, or page is not a cursor from this same query. Pass next_page unchanged, with the same filters, to continue.
|
|
49088
|
+
*/
|
|
49089
|
+
400: unknown;
|
|
49090
|
+
/**
|
|
49091
|
+
* The API key is missing, invalid or revoked. Send a valid key as X-API-Key or as a Bearer token.
|
|
49092
|
+
*/
|
|
49093
|
+
401: unknown;
|
|
49094
|
+
/**
|
|
49095
|
+
* permission_error: the credential's role or bound resources do not allow this operation. Use a key with access to the agent domain and its resources.
|
|
49096
|
+
*/
|
|
49097
|
+
403: unknown;
|
|
49098
|
+
/**
|
|
49099
|
+
* Session not found: the id does not exist in your organization. Take ids from sessions.list or sessions.create.
|
|
49100
|
+
*/
|
|
49101
|
+
404: unknown;
|
|
49102
|
+
};
|
|
48523
49103
|
export type SessionsEventsListResponses = {
|
|
48524
49104
|
/**
|
|
48525
49105
|
* Successful response
|
|
@@ -49277,6 +49857,28 @@ export type SessionsEventsSendData = {
|
|
|
49277
49857
|
query?: never;
|
|
49278
49858
|
url: '/agent/v1/sessions/{session_id}/events';
|
|
49279
49859
|
};
|
|
49860
|
+
export type SessionsEventsSendErrors = {
|
|
49861
|
+
/**
|
|
49862
|
+
* The event failed validation and the message names the problem: an unsupported event type or content block, more than one text block, a missing tool_use_id or custom_tool_use_id, an unknown call id, or a session that is archived.
|
|
49863
|
+
*/
|
|
49864
|
+
400: unknown;
|
|
49865
|
+
/**
|
|
49866
|
+
* The API key is missing, invalid or revoked. Send a valid key as X-API-Key or as a Bearer token.
|
|
49867
|
+
*/
|
|
49868
|
+
401: unknown;
|
|
49869
|
+
/**
|
|
49870
|
+
* permission_error: the credential's role or bound resources do not allow this operation. Use a key with access to the agent domain and its resources.
|
|
49871
|
+
*/
|
|
49872
|
+
403: unknown;
|
|
49873
|
+
/**
|
|
49874
|
+
* Session not found: the id does not exist in your organization. Take ids from sessions.list or sessions.create. A user.steer or user.withdraw that names a missing event also returns 404.
|
|
49875
|
+
*/
|
|
49876
|
+
404: unknown;
|
|
49877
|
+
/**
|
|
49878
|
+
* A duplicate result, a call that is no longer waiting, or a user.steer on an input that is already processing or withdrawn. Read the events to see the current state before retrying.
|
|
49879
|
+
*/
|
|
49880
|
+
409: unknown;
|
|
49881
|
+
};
|
|
49280
49882
|
export type SessionsEventsSendResponses = {
|
|
49281
49883
|
/**
|
|
49282
49884
|
* Successful response
|
|
@@ -49408,6 +50010,24 @@ export type SessionsEventsStreamData = {
|
|
|
49408
50010
|
};
|
|
49409
50011
|
url: '/agent/v1/sessions/{session_id}/events/stream';
|
|
49410
50012
|
};
|
|
50013
|
+
export type SessionsEventsStreamErrors = {
|
|
50014
|
+
/**
|
|
50015
|
+
* event_deltas contains a value other than the supported event types.
|
|
50016
|
+
*/
|
|
50017
|
+
400: unknown;
|
|
50018
|
+
/**
|
|
50019
|
+
* The API key is missing, invalid or revoked. Send a valid key as X-API-Key or as a Bearer token.
|
|
50020
|
+
*/
|
|
50021
|
+
401: unknown;
|
|
50022
|
+
/**
|
|
50023
|
+
* permission_error: the credential's role or bound resources do not allow this operation. Use a key with access to the agent domain and its resources.
|
|
50024
|
+
*/
|
|
50025
|
+
403: unknown;
|
|
50026
|
+
/**
|
|
50027
|
+
* Session not found: the id does not exist in your organization. Take ids from sessions.list or sessions.create.
|
|
50028
|
+
*/
|
|
50029
|
+
404: unknown;
|
|
50030
|
+
};
|
|
49411
50031
|
export type SessionsEventsStreamResponses = {
|
|
49412
50032
|
/**
|
|
49413
50033
|
* Server-sent events
|
|
@@ -49432,6 +50052,24 @@ export type SessionsThreadsListData = {
|
|
|
49432
50052
|
};
|
|
49433
50053
|
url: '/agent/v1/sessions/{session_id}/threads';
|
|
49434
50054
|
};
|
|
50055
|
+
export type SessionsThreadsListErrors = {
|
|
50056
|
+
/**
|
|
50057
|
+
* limit is not an integer from 1 to 100, or page is not a cursor from this same query. Pass next_page unchanged, with the same filters, to continue.
|
|
50058
|
+
*/
|
|
50059
|
+
400: unknown;
|
|
50060
|
+
/**
|
|
50061
|
+
* The API key is missing, invalid or revoked. Send a valid key as X-API-Key or as a Bearer token.
|
|
50062
|
+
*/
|
|
50063
|
+
401: unknown;
|
|
50064
|
+
/**
|
|
50065
|
+
* permission_error: the credential's role or bound resources do not allow this operation. Use a key with access to the agent domain and its resources.
|
|
50066
|
+
*/
|
|
50067
|
+
403: unknown;
|
|
50068
|
+
/**
|
|
50069
|
+
* Session not found: the id does not exist in your organization. Take ids from sessions.list or sessions.create.
|
|
50070
|
+
*/
|
|
50071
|
+
404: unknown;
|
|
50072
|
+
};
|
|
49435
50073
|
export type SessionsThreadsListResponses = {
|
|
49436
50074
|
/**
|
|
49437
50075
|
* Successful response
|
|
@@ -49468,6 +50106,20 @@ export type SessionsThreadsRetrieveData = {
|
|
|
49468
50106
|
};
|
|
49469
50107
|
url: '/agent/v1/sessions/{session_id}/threads/{thread_id}';
|
|
49470
50108
|
};
|
|
50109
|
+
export type SessionsThreadsRetrieveErrors = {
|
|
50110
|
+
/**
|
|
50111
|
+
* The API key is missing, invalid or revoked. Send a valid key as X-API-Key or as a Bearer token.
|
|
50112
|
+
*/
|
|
50113
|
+
401: unknown;
|
|
50114
|
+
/**
|
|
50115
|
+
* permission_error: the credential's role or bound resources do not allow this operation. Use a key with access to the agent domain and its resources.
|
|
50116
|
+
*/
|
|
50117
|
+
403: unknown;
|
|
50118
|
+
/**
|
|
50119
|
+
* Session or thread not found. A malformed id and another session's thread answer the same way. Take thread ids from sessions.threads.list.
|
|
50120
|
+
*/
|
|
50121
|
+
404: unknown;
|
|
50122
|
+
};
|
|
49471
50123
|
export type SessionsThreadsRetrieveResponses = {
|
|
49472
50124
|
/**
|
|
49473
50125
|
* Successful response
|
|
@@ -49495,6 +50147,20 @@ export type SessionsThreadsArchiveData = {
|
|
|
49495
50147
|
};
|
|
49496
50148
|
url: '/agent/v1/sessions/{session_id}/threads/{thread_id}/archive';
|
|
49497
50149
|
};
|
|
50150
|
+
export type SessionsThreadsArchiveErrors = {
|
|
50151
|
+
/**
|
|
50152
|
+
* The API key is missing, invalid or revoked. Send a valid key as X-API-Key or as a Bearer token.
|
|
50153
|
+
*/
|
|
50154
|
+
401: unknown;
|
|
50155
|
+
/**
|
|
50156
|
+
* permission_error: the credential's role or bound resources do not allow this operation. Use a key with access to the agent domain and its resources.
|
|
50157
|
+
*/
|
|
50158
|
+
403: unknown;
|
|
50159
|
+
/**
|
|
50160
|
+
* Session or thread not found. A malformed id and another session's thread answer the same way. Take thread ids from sessions.threads.list.
|
|
50161
|
+
*/
|
|
50162
|
+
404: unknown;
|
|
50163
|
+
};
|
|
49498
50164
|
export type SessionsThreadsArchiveResponses = {
|
|
49499
50165
|
/**
|
|
49500
50166
|
* Successful response
|
|
@@ -49527,6 +50193,24 @@ export type SessionsThreadsEventsListData = {
|
|
|
49527
50193
|
};
|
|
49528
50194
|
url: '/agent/v1/sessions/{session_id}/threads/{thread_id}/events';
|
|
49529
50195
|
};
|
|
50196
|
+
export type SessionsThreadsEventsListErrors = {
|
|
50197
|
+
/**
|
|
50198
|
+
* order is not asc or desc, types contains an unsupported event type, or limit is not an integer from 1 to 100, or page is not a cursor from this same query. Pass next_page unchanged, with the same filters, to continue.
|
|
50199
|
+
*/
|
|
50200
|
+
400: unknown;
|
|
50201
|
+
/**
|
|
50202
|
+
* The API key is missing, invalid or revoked. Send a valid key as X-API-Key or as a Bearer token.
|
|
50203
|
+
*/
|
|
50204
|
+
401: unknown;
|
|
50205
|
+
/**
|
|
50206
|
+
* permission_error: the credential's role or bound resources do not allow this operation. Use a key with access to the agent domain and its resources.
|
|
50207
|
+
*/
|
|
50208
|
+
403: unknown;
|
|
50209
|
+
/**
|
|
50210
|
+
* Session or thread not found. A malformed id and another session's thread answer the same way. Take thread ids from sessions.threads.list.
|
|
50211
|
+
*/
|
|
50212
|
+
404: unknown;
|
|
50213
|
+
};
|
|
49530
50214
|
export type SessionsThreadsEventsListResponses = {
|
|
49531
50215
|
/**
|
|
49532
50216
|
* Successful response
|
|
@@ -50189,6 +50873,24 @@ export type SessionsThreadsEventsStreamData = {
|
|
|
50189
50873
|
};
|
|
50190
50874
|
url: '/agent/v1/sessions/{session_id}/threads/{thread_id}/stream';
|
|
50191
50875
|
};
|
|
50876
|
+
export type SessionsThreadsEventsStreamErrors = {
|
|
50877
|
+
/**
|
|
50878
|
+
* event_deltas contains a value other than the supported event types.
|
|
50879
|
+
*/
|
|
50880
|
+
400: unknown;
|
|
50881
|
+
/**
|
|
50882
|
+
* The API key is missing, invalid or revoked. Send a valid key as X-API-Key or as a Bearer token.
|
|
50883
|
+
*/
|
|
50884
|
+
401: unknown;
|
|
50885
|
+
/**
|
|
50886
|
+
* permission_error: the credential's role or bound resources do not allow this operation. Use a key with access to the agent domain and its resources.
|
|
50887
|
+
*/
|
|
50888
|
+
403: unknown;
|
|
50889
|
+
/**
|
|
50890
|
+
* Session or thread not found. A malformed id and another session's thread answer the same way. Take thread ids from sessions.threads.list.
|
|
50891
|
+
*/
|
|
50892
|
+
404: unknown;
|
|
50893
|
+
};
|
|
50192
50894
|
export type SessionsThreadsEventsStreamResponses = {
|
|
50193
50895
|
/**
|
|
50194
50896
|
* Server-sent events
|
|
@@ -50207,6 +50909,20 @@ export type EnvironmentsRetrieveData = {
|
|
|
50207
50909
|
query?: never;
|
|
50208
50910
|
url: '/agent/v1/environments/{environment_id}';
|
|
50209
50911
|
};
|
|
50912
|
+
export type EnvironmentsRetrieveErrors = {
|
|
50913
|
+
/**
|
|
50914
|
+
* The API key is missing, invalid or revoked. Send a valid key as X-API-Key or as a Bearer token.
|
|
50915
|
+
*/
|
|
50916
|
+
401: unknown;
|
|
50917
|
+
/**
|
|
50918
|
+
* permission_error: the credential's role or bound resources do not allow this operation. Use a key with access to the agent domain and its resources.
|
|
50919
|
+
*/
|
|
50920
|
+
403: unknown;
|
|
50921
|
+
/**
|
|
50922
|
+
* Environment not found. Take ids from environments.list or environments.create.
|
|
50923
|
+
*/
|
|
50924
|
+
404: unknown;
|
|
50925
|
+
};
|
|
50210
50926
|
export type EnvironmentsRetrieveResponses = {
|
|
50211
50927
|
/**
|
|
50212
50928
|
* Successful response
|
|
@@ -50234,12 +50950,6 @@ export type EnvironmentsUpdateData = {
|
|
|
50234
50950
|
* Updated name for the environment
|
|
50235
50951
|
*/
|
|
50236
50952
|
name?: null | string;
|
|
50237
|
-
/**
|
|
50238
|
-
* The visibility scope for this environment. 'organization' makes the
|
|
50239
|
-
* environment visible to all accounts. 'account' restricts visibility to the
|
|
50240
|
-
* owning account only.
|
|
50241
|
-
*/
|
|
50242
|
-
scope?: null | 'organization' | 'account';
|
|
50243
50953
|
};
|
|
50244
50954
|
path: {
|
|
50245
50955
|
/**
|
|
@@ -50250,6 +50960,28 @@ export type EnvironmentsUpdateData = {
|
|
|
50250
50960
|
query?: never;
|
|
50251
50961
|
url: '/agent/v1/environments/{environment_id}';
|
|
50252
50962
|
};
|
|
50963
|
+
export type EnvironmentsUpdateErrors = {
|
|
50964
|
+
/**
|
|
50965
|
+
* The body failed validation and the message names the field (same rules as environments.create).
|
|
50966
|
+
*/
|
|
50967
|
+
400: unknown;
|
|
50968
|
+
/**
|
|
50969
|
+
* The API key is missing, invalid or revoked. Send a valid key as X-API-Key or as a Bearer token.
|
|
50970
|
+
*/
|
|
50971
|
+
401: unknown;
|
|
50972
|
+
/**
|
|
50973
|
+
* permission_error: the credential's role or bound resources do not allow this operation. Use a key with access to the agent domain and its resources.
|
|
50974
|
+
*/
|
|
50975
|
+
403: unknown;
|
|
50976
|
+
/**
|
|
50977
|
+
* Environment not found. Take ids from environments.list or environments.create.
|
|
50978
|
+
*/
|
|
50979
|
+
404: unknown;
|
|
50980
|
+
/**
|
|
50981
|
+
* The environment is built in (read-only), is archived, or changed since you read it (retrieve it again and retry).
|
|
50982
|
+
*/
|
|
50983
|
+
409: unknown;
|
|
50984
|
+
};
|
|
50253
50985
|
export type EnvironmentsUpdateResponses = {
|
|
50254
50986
|
/**
|
|
50255
50987
|
* Successful response
|
|
@@ -50268,6 +51000,24 @@ export type EnvironmentsArchiveData = {
|
|
|
50268
51000
|
query?: never;
|
|
50269
51001
|
url: '/agent/v1/environments/{environment_id}/archive';
|
|
50270
51002
|
};
|
|
51003
|
+
export type EnvironmentsArchiveErrors = {
|
|
51004
|
+
/**
|
|
51005
|
+
* The API key is missing, invalid or revoked. Send a valid key as X-API-Key or as a Bearer token.
|
|
51006
|
+
*/
|
|
51007
|
+
401: unknown;
|
|
51008
|
+
/**
|
|
51009
|
+
* permission_error: the credential's role or bound resources do not allow this operation. Use a key with access to the agent domain and its resources.
|
|
51010
|
+
*/
|
|
51011
|
+
403: unknown;
|
|
51012
|
+
/**
|
|
51013
|
+
* Environment not found. Take ids from environments.list or environments.create.
|
|
51014
|
+
*/
|
|
51015
|
+
404: unknown;
|
|
51016
|
+
/**
|
|
51017
|
+
* The environment is built in (read-only), or RESOURCE_IN_USE: the active version of a non-archived agent uses it as environment_id; the message names the agents. Point them at another environment first.
|
|
51018
|
+
*/
|
|
51019
|
+
409: unknown;
|
|
51020
|
+
};
|
|
50271
51021
|
export type EnvironmentsArchiveResponses = {
|
|
50272
51022
|
/**
|
|
50273
51023
|
* Successful response
|
|
@@ -50291,6 +51041,20 @@ export type EnvironmentsListData = {
|
|
|
50291
51041
|
};
|
|
50292
51042
|
url: '/agent/v1/environments';
|
|
50293
51043
|
};
|
|
51044
|
+
export type EnvironmentsListErrors = {
|
|
51045
|
+
/**
|
|
51046
|
+
* include_archived is not true or false, or limit or page is invalid.
|
|
51047
|
+
*/
|
|
51048
|
+
400: unknown;
|
|
51049
|
+
/**
|
|
51050
|
+
* The API key is missing, invalid or revoked. Send a valid key as X-API-Key or as a Bearer token.
|
|
51051
|
+
*/
|
|
51052
|
+
401: unknown;
|
|
51053
|
+
/**
|
|
51054
|
+
* permission_error: the credential's role or bound resources do not allow this operation. Use a key with access to the agent domain and its resources.
|
|
51055
|
+
*/
|
|
51056
|
+
403: unknown;
|
|
51057
|
+
};
|
|
50294
51058
|
export type EnvironmentsListResponses = {
|
|
50295
51059
|
/**
|
|
50296
51060
|
* Successful response
|
|
@@ -50325,18 +51089,25 @@ export type EnvironmentsCreateData = {
|
|
|
50325
51089
|
* User-provided metadata key-value pairs
|
|
50326
51090
|
*/
|
|
50327
51091
|
metadata?: AgentManaged137Writable;
|
|
50328
|
-
/**
|
|
50329
|
-
* The visibility scope for this environment. 'organization' makes the
|
|
50330
|
-
* environment visible to all accounts. 'account' restricts visibility to the
|
|
50331
|
-
* owning account only. API organizations support only 'organization'; 'account' is
|
|
50332
|
-
* rejected. If not specified, defaults based on organization type.
|
|
50333
|
-
*/
|
|
50334
|
-
scope?: null | 'organization' | 'account';
|
|
50335
51092
|
};
|
|
50336
51093
|
path?: never;
|
|
50337
51094
|
query?: never;
|
|
50338
51095
|
url: '/agent/v1/environments';
|
|
50339
51096
|
};
|
|
51097
|
+
export type EnvironmentsCreateErrors = {
|
|
51098
|
+
/**
|
|
51099
|
+
* The body failed validation and the message names the field: an unknown field (including scope), a self_hosted config, a config.template that is not available (the message lists the available ones), or invalid packages or networking.
|
|
51100
|
+
*/
|
|
51101
|
+
400: unknown;
|
|
51102
|
+
/**
|
|
51103
|
+
* The API key is missing, invalid or revoked. Send a valid key as X-API-Key or as a Bearer token.
|
|
51104
|
+
*/
|
|
51105
|
+
401: unknown;
|
|
51106
|
+
/**
|
|
51107
|
+
* permission_error: the credential's role or bound resources do not allow this operation. Use a key with access to the agent domain and its resources.
|
|
51108
|
+
*/
|
|
51109
|
+
403: unknown;
|
|
51110
|
+
};
|
|
50340
51111
|
export type EnvironmentsCreateResponses = {
|
|
50341
51112
|
/**
|
|
50342
51113
|
* Successful response
|
|
@@ -50361,6 +51132,24 @@ export type SessionsResourcesListData = {
|
|
|
50361
51132
|
};
|
|
50362
51133
|
url: '/agent/v1/sessions/{session_id}/resources';
|
|
50363
51134
|
};
|
|
51135
|
+
export type SessionsResourcesListErrors = {
|
|
51136
|
+
/**
|
|
51137
|
+
* limit is not an integer from 1 to 1000, or page is not a cursor from this list.
|
|
51138
|
+
*/
|
|
51139
|
+
400: unknown;
|
|
51140
|
+
/**
|
|
51141
|
+
* The API key is missing, invalid or revoked. Send a valid key as X-API-Key or as a Bearer token.
|
|
51142
|
+
*/
|
|
51143
|
+
401: unknown;
|
|
51144
|
+
/**
|
|
51145
|
+
* permission_error: the credential's role or bound resources do not allow this operation. Use a key with access to the agent domain and its resources.
|
|
51146
|
+
*/
|
|
51147
|
+
403: unknown;
|
|
51148
|
+
/**
|
|
51149
|
+
* Session not found: the id does not exist in your organization. Take ids from sessions.list or sessions.create.
|
|
51150
|
+
*/
|
|
51151
|
+
404: unknown;
|
|
51152
|
+
};
|
|
50364
51153
|
export type SessionsResourcesListResponses = {
|
|
50365
51154
|
/**
|
|
50366
51155
|
* Successful response
|
|
@@ -50403,6 +51192,32 @@ export type SessionsResourcesAddData = {
|
|
|
50403
51192
|
};
|
|
50404
51193
|
url: '/agent/v1/sessions/{session_id}/resources';
|
|
50405
51194
|
};
|
|
51195
|
+
export type SessionsResourcesAddErrors = {
|
|
51196
|
+
/**
|
|
51197
|
+
* Only file resources are supported; file_id or mount_path is invalid, or the session already holds 500 resources.
|
|
51198
|
+
*/
|
|
51199
|
+
400: unknown;
|
|
51200
|
+
/**
|
|
51201
|
+
* The API key is missing, invalid or revoked. Send a valid key as X-API-Key or as a Bearer token.
|
|
51202
|
+
*/
|
|
51203
|
+
401: unknown;
|
|
51204
|
+
/**
|
|
51205
|
+
* permission_error: the credential's role or bound resources do not allow this operation. Use a key with access to the agent domain and its resources.
|
|
51206
|
+
*/
|
|
51207
|
+
403: unknown;
|
|
51208
|
+
/**
|
|
51209
|
+
* Session not found, or the file does not exist in your organization. Upload it first and pass its id.
|
|
51210
|
+
*/
|
|
51211
|
+
404: unknown;
|
|
51212
|
+
/**
|
|
51213
|
+
* The file is not ready yet, or another request is allocating the same mount path. Retry shortly.
|
|
51214
|
+
*/
|
|
51215
|
+
409: unknown;
|
|
51216
|
+
/**
|
|
51217
|
+
* File metadata could not be read. Retry later.
|
|
51218
|
+
*/
|
|
51219
|
+
502: unknown;
|
|
51220
|
+
};
|
|
50406
51221
|
export type SessionsResourcesAddResponses = {
|
|
50407
51222
|
/**
|
|
50408
51223
|
* Successful response
|
|
@@ -50430,6 +51245,20 @@ export type SessionsResourcesDeleteData = {
|
|
|
50430
51245
|
};
|
|
50431
51246
|
url: '/agent/v1/sessions/{session_id}/resources/{resource_id}';
|
|
50432
51247
|
};
|
|
51248
|
+
export type SessionsResourcesDeleteErrors = {
|
|
51249
|
+
/**
|
|
51250
|
+
* The API key is missing, invalid or revoked. Send a valid key as X-API-Key or as a Bearer token.
|
|
51251
|
+
*/
|
|
51252
|
+
401: unknown;
|
|
51253
|
+
/**
|
|
51254
|
+
* permission_error: the credential's role or bound resources do not allow this operation. Use a key with access to the agent domain and its resources.
|
|
51255
|
+
*/
|
|
51256
|
+
403: unknown;
|
|
51257
|
+
/**
|
|
51258
|
+
* Session or resource not found. Take resource ids from sessions.resources.list.
|
|
51259
|
+
*/
|
|
51260
|
+
404: unknown;
|
|
51261
|
+
};
|
|
50433
51262
|
export type SessionsResourcesDeleteResponses = {
|
|
50434
51263
|
/**
|
|
50435
51264
|
* Successful response
|
|
@@ -50457,6 +51286,20 @@ export type SessionsResourcesRetrieveData = {
|
|
|
50457
51286
|
};
|
|
50458
51287
|
url: '/agent/v1/sessions/{session_id}/resources/{resource_id}';
|
|
50459
51288
|
};
|
|
51289
|
+
export type SessionsResourcesRetrieveErrors = {
|
|
51290
|
+
/**
|
|
51291
|
+
* The API key is missing, invalid or revoked. Send a valid key as X-API-Key or as a Bearer token.
|
|
51292
|
+
*/
|
|
51293
|
+
401: unknown;
|
|
51294
|
+
/**
|
|
51295
|
+
* permission_error: the credential's role or bound resources do not allow this operation. Use a key with access to the agent domain and its resources.
|
|
51296
|
+
*/
|
|
51297
|
+
403: unknown;
|
|
51298
|
+
/**
|
|
51299
|
+
* Session or resource not found. Take resource ids from sessions.resources.list.
|
|
51300
|
+
*/
|
|
51301
|
+
404: unknown;
|
|
51302
|
+
};
|
|
50460
51303
|
export type SessionsResourcesRetrieveResponses = {
|
|
50461
51304
|
/**
|
|
50462
51305
|
* Successful response
|
|
@@ -50499,6 +51342,20 @@ export type DeploymentsListData = {
|
|
|
50499
51342
|
};
|
|
50500
51343
|
url: '/agent/v1/deployments';
|
|
50501
51344
|
};
|
|
51345
|
+
export type DeploymentsListErrors = {
|
|
51346
|
+
/**
|
|
51347
|
+
* status and include_archived were combined, a filter value is invalid, or limit or page is invalid.
|
|
51348
|
+
*/
|
|
51349
|
+
400: unknown;
|
|
51350
|
+
/**
|
|
51351
|
+
* The API key is missing, invalid or revoked. Send a valid key as X-API-Key or as a Bearer token.
|
|
51352
|
+
*/
|
|
51353
|
+
401: unknown;
|
|
51354
|
+
/**
|
|
51355
|
+
* permission_error: the credential's role or bound resources do not allow this operation. Use a key with access to the agent domain and its resources.
|
|
51356
|
+
*/
|
|
51357
|
+
403: unknown;
|
|
51358
|
+
};
|
|
50502
51359
|
export type DeploymentsListResponses = {
|
|
50503
51360
|
/**
|
|
50504
51361
|
* Successful response
|
|
@@ -50525,7 +51382,7 @@ export type DeploymentsListResponses = {
|
|
|
50525
51382
|
*/
|
|
50526
51383
|
type: 'agent';
|
|
50527
51384
|
/**
|
|
50528
|
-
* The agent
|
|
51385
|
+
* The latest saved version of the agent, the editable head; it differs from active_version after a save with apply false. Starts at 1 and increments each time the agent is modified.
|
|
50529
51386
|
*/
|
|
50530
51387
|
version: number;
|
|
50531
51388
|
} | {
|
|
@@ -50758,6 +51615,20 @@ export type DeploymentsCreateData = {
|
|
|
50758
51615
|
query?: never;
|
|
50759
51616
|
url: '/agent/v1/deployments';
|
|
50760
51617
|
};
|
|
51618
|
+
export type DeploymentsCreateErrors = {
|
|
51619
|
+
/**
|
|
51620
|
+
* The body failed validation and the message names the field: an unknown field, a missing environment_id, initial_events other than user.message, an invalid schedule, or an extension used where it is not available.
|
|
51621
|
+
*/
|
|
51622
|
+
400: unknown;
|
|
51623
|
+
/**
|
|
51624
|
+
* The API key is missing, invalid or revoked. Send a valid key as X-API-Key or as a Bearer token.
|
|
51625
|
+
*/
|
|
51626
|
+
401: unknown;
|
|
51627
|
+
/**
|
|
51628
|
+
* permission_error: the credential's role or bound resources do not allow this operation. Use a key with access to the agent domain and its resources.
|
|
51629
|
+
*/
|
|
51630
|
+
403: unknown;
|
|
51631
|
+
};
|
|
50761
51632
|
export type DeploymentsCreateResponses = {
|
|
50762
51633
|
/**
|
|
50763
51634
|
* Successful response
|
|
@@ -50780,7 +51651,7 @@ export type DeploymentsCreateResponses = {
|
|
|
50780
51651
|
*/
|
|
50781
51652
|
type: 'agent';
|
|
50782
51653
|
/**
|
|
50783
|
-
* The agent
|
|
51654
|
+
* The latest saved version of the agent, the editable head; it differs from active_version after a save with apply false. Starts at 1 and increments each time the agent is modified.
|
|
50784
51655
|
*/
|
|
50785
51656
|
version: number;
|
|
50786
51657
|
} | {
|
|
@@ -50912,6 +51783,20 @@ export type DeploymentsRetrieveData = {
|
|
|
50912
51783
|
query?: never;
|
|
50913
51784
|
url: '/agent/v1/deployments/{deployment_id}';
|
|
50914
51785
|
};
|
|
51786
|
+
export type DeploymentsRetrieveErrors = {
|
|
51787
|
+
/**
|
|
51788
|
+
* The API key is missing, invalid or revoked. Send a valid key as X-API-Key or as a Bearer token.
|
|
51789
|
+
*/
|
|
51790
|
+
401: unknown;
|
|
51791
|
+
/**
|
|
51792
|
+
* permission_error: the credential's role or bound resources do not allow this operation. Use a key with access to the agent domain and its resources.
|
|
51793
|
+
*/
|
|
51794
|
+
403: unknown;
|
|
51795
|
+
/**
|
|
51796
|
+
* Deployment not found. Take ids from deployments.create or deployments.list.
|
|
51797
|
+
*/
|
|
51798
|
+
404: unknown;
|
|
51799
|
+
};
|
|
50915
51800
|
export type DeploymentsRetrieveResponses = {
|
|
50916
51801
|
/**
|
|
50917
51802
|
* Successful response
|
|
@@ -50934,7 +51819,7 @@ export type DeploymentsRetrieveResponses = {
|
|
|
50934
51819
|
*/
|
|
50935
51820
|
type: 'agent';
|
|
50936
51821
|
/**
|
|
50937
|
-
* The agent
|
|
51822
|
+
* The latest saved version of the agent, the editable head; it differs from active_version after a save with apply false. Starts at 1 and increments each time the agent is modified.
|
|
50938
51823
|
*/
|
|
50939
51824
|
version: number;
|
|
50940
51825
|
} | {
|
|
@@ -51169,6 +52054,28 @@ export type DeploymentsUpdateData = {
|
|
|
51169
52054
|
query?: never;
|
|
51170
52055
|
url: '/agent/v1/deployments/{deployment_id}';
|
|
51171
52056
|
};
|
|
52057
|
+
export type DeploymentsUpdateErrors = {
|
|
52058
|
+
/**
|
|
52059
|
+
* The body failed validation and the message names the field.
|
|
52060
|
+
*/
|
|
52061
|
+
400: unknown;
|
|
52062
|
+
/**
|
|
52063
|
+
* The API key is missing, invalid or revoked. Send a valid key as X-API-Key or as a Bearer token.
|
|
52064
|
+
*/
|
|
52065
|
+
401: unknown;
|
|
52066
|
+
/**
|
|
52067
|
+
* permission_error: the credential's role or bound resources do not allow this operation. Use a key with access to the agent domain and its resources.
|
|
52068
|
+
*/
|
|
52069
|
+
403: unknown;
|
|
52070
|
+
/**
|
|
52071
|
+
* Deployment not found. Take ids from deployments.create or deployments.list.
|
|
52072
|
+
*/
|
|
52073
|
+
404: unknown;
|
|
52074
|
+
/**
|
|
52075
|
+
* The deployment is archived and cannot be updated.
|
|
52076
|
+
*/
|
|
52077
|
+
409: unknown;
|
|
52078
|
+
};
|
|
51172
52079
|
export type DeploymentsUpdateResponses = {
|
|
51173
52080
|
/**
|
|
51174
52081
|
* Successful response
|
|
@@ -51191,7 +52098,7 @@ export type DeploymentsUpdateResponses = {
|
|
|
51191
52098
|
*/
|
|
51192
52099
|
type: 'agent';
|
|
51193
52100
|
/**
|
|
51194
|
-
* The agent
|
|
52101
|
+
* The latest saved version of the agent, the editable head; it differs from active_version after a save with apply false. Starts at 1 and increments each time the agent is modified.
|
|
51195
52102
|
*/
|
|
51196
52103
|
version: number;
|
|
51197
52104
|
} | {
|
|
@@ -51323,6 +52230,20 @@ export type DeploymentsArchiveData = {
|
|
|
51323
52230
|
query?: never;
|
|
51324
52231
|
url: '/agent/v1/deployments/{deployment_id}/archive';
|
|
51325
52232
|
};
|
|
52233
|
+
export type DeploymentsArchiveErrors = {
|
|
52234
|
+
/**
|
|
52235
|
+
* The API key is missing, invalid or revoked. Send a valid key as X-API-Key or as a Bearer token.
|
|
52236
|
+
*/
|
|
52237
|
+
401: unknown;
|
|
52238
|
+
/**
|
|
52239
|
+
* permission_error: the credential's role or bound resources do not allow this operation. Use a key with access to the agent domain and its resources.
|
|
52240
|
+
*/
|
|
52241
|
+
403: unknown;
|
|
52242
|
+
/**
|
|
52243
|
+
* Deployment not found. Take ids from deployments.create or deployments.list.
|
|
52244
|
+
*/
|
|
52245
|
+
404: unknown;
|
|
52246
|
+
};
|
|
51326
52247
|
export type DeploymentsArchiveResponses = {
|
|
51327
52248
|
/**
|
|
51328
52249
|
* Successful response
|
|
@@ -51345,7 +52266,7 @@ export type DeploymentsArchiveResponses = {
|
|
|
51345
52266
|
*/
|
|
51346
52267
|
type: 'agent';
|
|
51347
52268
|
/**
|
|
51348
|
-
* The agent
|
|
52269
|
+
* The latest saved version of the agent, the editable head; it differs from active_version after a save with apply false. Starts at 1 and increments each time the agent is modified.
|
|
51349
52270
|
*/
|
|
51350
52271
|
version: number;
|
|
51351
52272
|
} | {
|
|
@@ -51477,6 +52398,24 @@ export type DeploymentsPauseData = {
|
|
|
51477
52398
|
query?: never;
|
|
51478
52399
|
url: '/agent/v1/deployments/{deployment_id}/pause';
|
|
51479
52400
|
};
|
|
52401
|
+
export type DeploymentsPauseErrors = {
|
|
52402
|
+
/**
|
|
52403
|
+
* The API key is missing, invalid or revoked. Send a valid key as X-API-Key or as a Bearer token.
|
|
52404
|
+
*/
|
|
52405
|
+
401: unknown;
|
|
52406
|
+
/**
|
|
52407
|
+
* permission_error: the credential's role or bound resources do not allow this operation. Use a key with access to the agent domain and its resources.
|
|
52408
|
+
*/
|
|
52409
|
+
403: unknown;
|
|
52410
|
+
/**
|
|
52411
|
+
* Deployment not found. Take ids from deployments.create or deployments.list.
|
|
52412
|
+
*/
|
|
52413
|
+
404: unknown;
|
|
52414
|
+
/**
|
|
52415
|
+
* The deployment is archived.
|
|
52416
|
+
*/
|
|
52417
|
+
409: unknown;
|
|
52418
|
+
};
|
|
51480
52419
|
export type DeploymentsPauseResponses = {
|
|
51481
52420
|
/**
|
|
51482
52421
|
* Successful response
|
|
@@ -51499,7 +52438,7 @@ export type DeploymentsPauseResponses = {
|
|
|
51499
52438
|
*/
|
|
51500
52439
|
type: 'agent';
|
|
51501
52440
|
/**
|
|
51502
|
-
* The agent
|
|
52441
|
+
* The latest saved version of the agent, the editable head; it differs from active_version after a save with apply false. Starts at 1 and increments each time the agent is modified.
|
|
51503
52442
|
*/
|
|
51504
52443
|
version: number;
|
|
51505
52444
|
} | {
|
|
@@ -51631,6 +52570,24 @@ export type DeploymentsUnpauseData = {
|
|
|
51631
52570
|
query?: never;
|
|
51632
52571
|
url: '/agent/v1/deployments/{deployment_id}/unpause';
|
|
51633
52572
|
};
|
|
52573
|
+
export type DeploymentsUnpauseErrors = {
|
|
52574
|
+
/**
|
|
52575
|
+
* The API key is missing, invalid or revoked. Send a valid key as X-API-Key or as a Bearer token.
|
|
52576
|
+
*/
|
|
52577
|
+
401: unknown;
|
|
52578
|
+
/**
|
|
52579
|
+
* permission_error: the credential's role or bound resources do not allow this operation. Use a key with access to the agent domain and its resources.
|
|
52580
|
+
*/
|
|
52581
|
+
403: unknown;
|
|
52582
|
+
/**
|
|
52583
|
+
* Deployment not found. Take ids from deployments.create or deployments.list.
|
|
52584
|
+
*/
|
|
52585
|
+
404: unknown;
|
|
52586
|
+
/**
|
|
52587
|
+
* The deployment is archived.
|
|
52588
|
+
*/
|
|
52589
|
+
409: unknown;
|
|
52590
|
+
};
|
|
51634
52591
|
export type DeploymentsUnpauseResponses = {
|
|
51635
52592
|
/**
|
|
51636
52593
|
* Successful response
|
|
@@ -51653,7 +52610,7 @@ export type DeploymentsUnpauseResponses = {
|
|
|
51653
52610
|
*/
|
|
51654
52611
|
type: 'agent';
|
|
51655
52612
|
/**
|
|
51656
|
-
* The agent
|
|
52613
|
+
* The latest saved version of the agent, the editable head; it differs from active_version after a save with apply false. Starts at 1 and increments each time the agent is modified.
|
|
51657
52614
|
*/
|
|
51658
52615
|
version: number;
|
|
51659
52616
|
} | {
|
|
@@ -51817,6 +52774,20 @@ export type DeploymentRunsListData = {
|
|
|
51817
52774
|
};
|
|
51818
52775
|
url: '/agent/v1/deployment_runs';
|
|
51819
52776
|
};
|
|
52777
|
+
export type DeploymentRunsListErrors = {
|
|
52778
|
+
/**
|
|
52779
|
+
* A filter value is invalid, or limit or page is invalid.
|
|
52780
|
+
*/
|
|
52781
|
+
400: unknown;
|
|
52782
|
+
/**
|
|
52783
|
+
* The API key is missing, invalid or revoked. Send a valid key as X-API-Key or as a Bearer token.
|
|
52784
|
+
*/
|
|
52785
|
+
401: unknown;
|
|
52786
|
+
/**
|
|
52787
|
+
* permission_error: the credential's role or bound resources do not allow this operation. Use a key with access to the agent domain and its resources.
|
|
52788
|
+
*/
|
|
52789
|
+
403: unknown;
|
|
52790
|
+
};
|
|
51820
52791
|
export type DeploymentRunsListResponses = {
|
|
51821
52792
|
/**
|
|
51822
52793
|
* Successful response
|
|
@@ -51844,6 +52815,20 @@ export type DeploymentRunsRetrieveData = {
|
|
|
51844
52815
|
query?: never;
|
|
51845
52816
|
url: '/agent/v1/deployment_runs/{deployment_run_id}';
|
|
51846
52817
|
};
|
|
52818
|
+
export type DeploymentRunsRetrieveErrors = {
|
|
52819
|
+
/**
|
|
52820
|
+
* The API key is missing, invalid or revoked. Send a valid key as X-API-Key or as a Bearer token.
|
|
52821
|
+
*/
|
|
52822
|
+
401: unknown;
|
|
52823
|
+
/**
|
|
52824
|
+
* permission_error: the credential's role or bound resources do not allow this operation. Use a key with access to the agent domain and its resources.
|
|
52825
|
+
*/
|
|
52826
|
+
403: unknown;
|
|
52827
|
+
/**
|
|
52828
|
+
* Deployment run not found. Take ids from deployments.run or deployment_runs.list.
|
|
52829
|
+
*/
|
|
52830
|
+
404: unknown;
|
|
52831
|
+
};
|
|
51847
52832
|
export type DeploymentRunsRetrieveResponses = {
|
|
51848
52833
|
/**
|
|
51849
52834
|
* Successful response
|
|
@@ -51862,6 +52847,24 @@ export type DeploymentsRunData = {
|
|
|
51862
52847
|
query?: never;
|
|
51863
52848
|
url: '/agent/v1/deployments/{deployment_id}/run';
|
|
51864
52849
|
};
|
|
52850
|
+
export type DeploymentsRunErrors = {
|
|
52851
|
+
/**
|
|
52852
|
+
* The API key is missing, invalid or revoked. Send a valid key as X-API-Key or as a Bearer token.
|
|
52853
|
+
*/
|
|
52854
|
+
401: unknown;
|
|
52855
|
+
/**
|
|
52856
|
+
* permission_error: the credential's role or bound resources do not allow this operation. Use a key with access to the agent domain and its resources.
|
|
52857
|
+
*/
|
|
52858
|
+
403: unknown;
|
|
52859
|
+
/**
|
|
52860
|
+
* Deployment not found. Take ids from deployments.create or deployments.list.
|
|
52861
|
+
*/
|
|
52862
|
+
404: unknown;
|
|
52863
|
+
/**
|
|
52864
|
+
* The deployment is paused or archived; unpause it first. No run was recorded.
|
|
52865
|
+
*/
|
|
52866
|
+
409: unknown;
|
|
52867
|
+
};
|
|
51865
52868
|
export type DeploymentsRunResponses = {
|
|
51866
52869
|
/**
|
|
51867
52870
|
* Successful response
|
|
@@ -51869,6 +52872,381 @@ export type DeploymentsRunResponses = {
|
|
|
51869
52872
|
200: AgentManaged113;
|
|
51870
52873
|
};
|
|
51871
52874
|
export type DeploymentsRunResponse = DeploymentsRunResponses[keyof DeploymentsRunResponses];
|
|
52875
|
+
export type SkillsListData = {
|
|
52876
|
+
body?: never;
|
|
52877
|
+
path?: never;
|
|
52878
|
+
query?: {
|
|
52879
|
+
/**
|
|
52880
|
+
* Filter skills by source.
|
|
52881
|
+
*
|
|
52882
|
+
* If provided, only skills from the specified source will be returned:
|
|
52883
|
+
*
|
|
52884
|
+
* - `"custom"`: only return user-created skills
|
|
52885
|
+
* - `"anthropic"`: only return Anthropic-created skills
|
|
52886
|
+
*/
|
|
52887
|
+
source?: null | string;
|
|
52888
|
+
/**
|
|
52889
|
+
* Number of items per page.
|
|
52890
|
+
*/
|
|
52891
|
+
limit?: number;
|
|
52892
|
+
page?: null | string;
|
|
52893
|
+
};
|
|
52894
|
+
url: '/agent/v1/skills';
|
|
52895
|
+
};
|
|
52896
|
+
export type SkillsListErrors = {
|
|
52897
|
+
/**
|
|
52898
|
+
* source is not custom or anthropic, or limit is not an integer from 1 to 100, or page is not a cursor from this same query. Pass next_page unchanged, with the same filters, to continue.
|
|
52899
|
+
*/
|
|
52900
|
+
400: unknown;
|
|
52901
|
+
/**
|
|
52902
|
+
* The API key is missing, invalid or revoked. Send a valid key as X-API-Key or as a Bearer token.
|
|
52903
|
+
*/
|
|
52904
|
+
401: unknown;
|
|
52905
|
+
/**
|
|
52906
|
+
* permission_error: the credential's role or bound resources do not allow this operation. Use a key with access to the agent domain and its resources.
|
|
52907
|
+
*/
|
|
52908
|
+
403: unknown;
|
|
52909
|
+
};
|
|
52910
|
+
export type SkillsListResponses = {
|
|
52911
|
+
/**
|
|
52912
|
+
* Successful response
|
|
52913
|
+
*/
|
|
52914
|
+
200: {
|
|
52915
|
+
/**
|
|
52916
|
+
* Items of this page, in the order requested by the call.
|
|
52917
|
+
*/
|
|
52918
|
+
data: Array<AgentManaged308>;
|
|
52919
|
+
/**
|
|
52920
|
+
* Opaque cursor for the next page: pass it unchanged as page to continue. Null when this is the last page.
|
|
52921
|
+
*/
|
|
52922
|
+
next_page: string | null;
|
|
52923
|
+
};
|
|
52924
|
+
};
|
|
52925
|
+
export type SkillsListResponse = SkillsListResponses[keyof SkillsListResponses];
|
|
52926
|
+
export type SkillsCreateData = {
|
|
52927
|
+
body: {
|
|
52928
|
+
/**
|
|
52929
|
+
* Files to upload for the skill.
|
|
52930
|
+
*
|
|
52931
|
+
* All files must be in the same top-level directory and must include a SKILL.md
|
|
52932
|
+
* file at the root of that directory.
|
|
52933
|
+
*/
|
|
52934
|
+
files: Array<Blob | File>;
|
|
52935
|
+
/**
|
|
52936
|
+
* Human-readable, single-line label for the Skill. Maximum 255
|
|
52937
|
+
* characters. Always set: derived from the SKILL.md frontmatter `name` when
|
|
52938
|
+
* omitted at creation. Not unique.
|
|
52939
|
+
*/
|
|
52940
|
+
display_name?: null | string;
|
|
52941
|
+
};
|
|
52942
|
+
path?: never;
|
|
52943
|
+
query?: never;
|
|
52944
|
+
url: '/agent/v1/skills';
|
|
52945
|
+
};
|
|
52946
|
+
export type SkillsCreateErrors = {
|
|
52947
|
+
/**
|
|
52948
|
+
* Not multipart/form-data, or a file part is invalid: no top-level directory, no SKILL.md, no description in its frontmatter, a path with .. or an absolute path, more than 200 files, or more than 8 MB in total. The message names the path or field.
|
|
52949
|
+
*/
|
|
52950
|
+
400: unknown;
|
|
52951
|
+
/**
|
|
52952
|
+
* The API key is missing, invalid or revoked. Send a valid key as X-API-Key or as a Bearer token.
|
|
52953
|
+
*/
|
|
52954
|
+
401: unknown;
|
|
52955
|
+
/**
|
|
52956
|
+
* permission_error: the credential's role or bound resources do not allow this operation. Use a key with access to the agent domain and its resources.
|
|
52957
|
+
*/
|
|
52958
|
+
403: unknown;
|
|
52959
|
+
/**
|
|
52960
|
+
* Skill storage is unavailable. Retry later.
|
|
52961
|
+
*/
|
|
52962
|
+
502: unknown;
|
|
52963
|
+
};
|
|
52964
|
+
export type SkillsCreateResponses = {
|
|
52965
|
+
/**
|
|
52966
|
+
* Successful response
|
|
52967
|
+
*/
|
|
52968
|
+
200: AgentManaged308;
|
|
52969
|
+
};
|
|
52970
|
+
export type SkillsCreateResponse = SkillsCreateResponses[keyof SkillsCreateResponses];
|
|
52971
|
+
export type SkillsDeleteData = {
|
|
52972
|
+
body?: never;
|
|
52973
|
+
path: {
|
|
52974
|
+
/**
|
|
52975
|
+
* Skill id (skill_...), as returned by skills.create or skills.list. A skill of another organization returns 404.
|
|
52976
|
+
*/
|
|
52977
|
+
skill_id: string;
|
|
52978
|
+
};
|
|
52979
|
+
query?: never;
|
|
52980
|
+
url: '/agent/v1/skills/{skill_id}';
|
|
52981
|
+
};
|
|
52982
|
+
export type SkillsDeleteErrors = {
|
|
52983
|
+
/**
|
|
52984
|
+
* The API key is missing, invalid or revoked. Send a valid key as X-API-Key or as a Bearer token.
|
|
52985
|
+
*/
|
|
52986
|
+
401: unknown;
|
|
52987
|
+
/**
|
|
52988
|
+
* permission_error: the credential's role or bound resources do not allow this operation. Use a key with access to the agent domain and its resources.
|
|
52989
|
+
*/
|
|
52990
|
+
403: unknown;
|
|
52991
|
+
/**
|
|
52992
|
+
* Skill not found, deleted, or owned by another organization. Take ids from skills.list.
|
|
52993
|
+
*/
|
|
52994
|
+
404: unknown;
|
|
52995
|
+
/**
|
|
52996
|
+
* RESOURCE_IN_USE: a non-archived agent still attaches the skill; the message names up to 10 agent ids.
|
|
52997
|
+
*/
|
|
52998
|
+
409: unknown;
|
|
52999
|
+
};
|
|
53000
|
+
export type SkillsDeleteResponses = {
|
|
53001
|
+
/**
|
|
53002
|
+
* Successful response
|
|
53003
|
+
*/
|
|
53004
|
+
200: AgentManaged310;
|
|
53005
|
+
};
|
|
53006
|
+
export type SkillsDeleteResponse = SkillsDeleteResponses[keyof SkillsDeleteResponses];
|
|
53007
|
+
export type SkillsRetrieveData = {
|
|
53008
|
+
body?: never;
|
|
53009
|
+
path: {
|
|
53010
|
+
/**
|
|
53011
|
+
* Skill id (skill_...), as returned by skills.create or skills.list. A skill of another organization returns 404.
|
|
53012
|
+
*/
|
|
53013
|
+
skill_id: string;
|
|
53014
|
+
};
|
|
53015
|
+
query?: never;
|
|
53016
|
+
url: '/agent/v1/skills/{skill_id}';
|
|
53017
|
+
};
|
|
53018
|
+
export type SkillsRetrieveErrors = {
|
|
53019
|
+
/**
|
|
53020
|
+
* The API key is missing, invalid or revoked. Send a valid key as X-API-Key or as a Bearer token.
|
|
53021
|
+
*/
|
|
53022
|
+
401: unknown;
|
|
53023
|
+
/**
|
|
53024
|
+
* permission_error: the credential's role or bound resources do not allow this operation. Use a key with access to the agent domain and its resources.
|
|
53025
|
+
*/
|
|
53026
|
+
403: unknown;
|
|
53027
|
+
/**
|
|
53028
|
+
* Skill not found, deleted, or owned by another organization. Take ids from skills.list.
|
|
53029
|
+
*/
|
|
53030
|
+
404: unknown;
|
|
53031
|
+
};
|
|
53032
|
+
export type SkillsRetrieveResponses = {
|
|
53033
|
+
/**
|
|
53034
|
+
* Successful response
|
|
53035
|
+
*/
|
|
53036
|
+
200: AgentManaged308;
|
|
53037
|
+
};
|
|
53038
|
+
export type SkillsRetrieveResponse = SkillsRetrieveResponses[keyof SkillsRetrieveResponses];
|
|
53039
|
+
export type SkillsVersionsListData = {
|
|
53040
|
+
body?: never;
|
|
53041
|
+
path: {
|
|
53042
|
+
/**
|
|
53043
|
+
* Skill id (skill_...), as returned by skills.create or skills.list. A skill of another organization returns 404.
|
|
53044
|
+
*/
|
|
53045
|
+
skill_id: string;
|
|
53046
|
+
};
|
|
53047
|
+
query?: {
|
|
53048
|
+
/**
|
|
53049
|
+
* Number of items per page.
|
|
53050
|
+
*/
|
|
53051
|
+
limit?: number;
|
|
53052
|
+
page?: null | string;
|
|
53053
|
+
};
|
|
53054
|
+
url: '/agent/v1/skills/{skill_id}/versions';
|
|
53055
|
+
};
|
|
53056
|
+
export type SkillsVersionsListErrors = {
|
|
53057
|
+
/**
|
|
53058
|
+
* limit is not an integer from 1 to 100, or page is not a cursor from this same query. Pass next_page unchanged, with the same filters, to continue.
|
|
53059
|
+
*/
|
|
53060
|
+
400: unknown;
|
|
53061
|
+
/**
|
|
53062
|
+
* The API key is missing, invalid or revoked. Send a valid key as X-API-Key or as a Bearer token.
|
|
53063
|
+
*/
|
|
53064
|
+
401: unknown;
|
|
53065
|
+
/**
|
|
53066
|
+
* permission_error: the credential's role or bound resources do not allow this operation. Use a key with access to the agent domain and its resources.
|
|
53067
|
+
*/
|
|
53068
|
+
403: unknown;
|
|
53069
|
+
/**
|
|
53070
|
+
* Skill not found, deleted, or owned by another organization. Take ids from skills.list.
|
|
53071
|
+
*/
|
|
53072
|
+
404: unknown;
|
|
53073
|
+
};
|
|
53074
|
+
export type SkillsVersionsListResponses = {
|
|
53075
|
+
/**
|
|
53076
|
+
* Successful response
|
|
53077
|
+
*/
|
|
53078
|
+
200: {
|
|
53079
|
+
/**
|
|
53080
|
+
* Items of this page, in the order requested by the call.
|
|
53081
|
+
*/
|
|
53082
|
+
data: Array<AgentManaged311>;
|
|
53083
|
+
/**
|
|
53084
|
+
* Opaque cursor for the next page: pass it unchanged as page to continue. Null when this is the last page.
|
|
53085
|
+
*/
|
|
53086
|
+
next_page: string | null;
|
|
53087
|
+
};
|
|
53088
|
+
};
|
|
53089
|
+
export type SkillsVersionsListResponse = SkillsVersionsListResponses[keyof SkillsVersionsListResponses];
|
|
53090
|
+
export type SkillsVersionsCreateData = {
|
|
53091
|
+
body: {
|
|
53092
|
+
/**
|
|
53093
|
+
* Files to upload for the skill.
|
|
53094
|
+
*
|
|
53095
|
+
* All files must be in the same top-level directory and must include a SKILL.md
|
|
53096
|
+
* file at the root of that directory.
|
|
53097
|
+
*/
|
|
53098
|
+
files: Array<Blob | File>;
|
|
53099
|
+
};
|
|
53100
|
+
path: {
|
|
53101
|
+
/**
|
|
53102
|
+
* Skill id (skill_...), as returned by skills.create or skills.list. A skill of another organization returns 404.
|
|
53103
|
+
*/
|
|
53104
|
+
skill_id: string;
|
|
53105
|
+
};
|
|
53106
|
+
query?: never;
|
|
53107
|
+
url: '/agent/v1/skills/{skill_id}/versions';
|
|
53108
|
+
};
|
|
53109
|
+
export type SkillsVersionsCreateErrors = {
|
|
53110
|
+
/**
|
|
53111
|
+
* The upload is invalid (same rules as skills.create), or the SKILL.md name differs from the skill's name.
|
|
53112
|
+
*/
|
|
53113
|
+
400: unknown;
|
|
53114
|
+
/**
|
|
53115
|
+
* The API key is missing, invalid or revoked. Send a valid key as X-API-Key or as a Bearer token.
|
|
53116
|
+
*/
|
|
53117
|
+
401: unknown;
|
|
53118
|
+
/**
|
|
53119
|
+
* permission_error: the credential's role or bound resources do not allow this operation. Use a key with access to the agent domain and its resources.
|
|
53120
|
+
*/
|
|
53121
|
+
403: unknown;
|
|
53122
|
+
/**
|
|
53123
|
+
* Skill not found, deleted, or owned by another organization. Take ids from skills.list.
|
|
53124
|
+
*/
|
|
53125
|
+
404: unknown;
|
|
53126
|
+
/**
|
|
53127
|
+
* Skill storage is unavailable. Retry later.
|
|
53128
|
+
*/
|
|
53129
|
+
502: unknown;
|
|
53130
|
+
};
|
|
53131
|
+
export type SkillsVersionsCreateResponses = {
|
|
53132
|
+
/**
|
|
53133
|
+
* Successful response
|
|
53134
|
+
*/
|
|
53135
|
+
200: AgentManaged311;
|
|
53136
|
+
};
|
|
53137
|
+
export type SkillsVersionsCreateResponse = SkillsVersionsCreateResponses[keyof SkillsVersionsCreateResponses];
|
|
53138
|
+
export type SkillsVersionsDeleteData = {
|
|
53139
|
+
body?: never;
|
|
53140
|
+
path: {
|
|
53141
|
+
/**
|
|
53142
|
+
* Skill id (skill_...), as returned by skills.create or skills.list. A skill of another organization returns 404.
|
|
53143
|
+
*/
|
|
53144
|
+
skill_id: string;
|
|
53145
|
+
/**
|
|
53146
|
+
* Skill version id, as returned by skills.versions.create or skills.versions.list; an opaque string that increases with each upload.
|
|
53147
|
+
*/
|
|
53148
|
+
version: string;
|
|
53149
|
+
};
|
|
53150
|
+
query?: never;
|
|
53151
|
+
url: '/agent/v1/skills/{skill_id}/versions/{version}';
|
|
53152
|
+
};
|
|
53153
|
+
export type SkillsVersionsDeleteErrors = {
|
|
53154
|
+
/**
|
|
53155
|
+
* The API key is missing, invalid or revoked. Send a valid key as X-API-Key or as a Bearer token.
|
|
53156
|
+
*/
|
|
53157
|
+
401: unknown;
|
|
53158
|
+
/**
|
|
53159
|
+
* permission_error: the credential's role or bound resources do not allow this operation. Use a key with access to the agent domain and its resources.
|
|
53160
|
+
*/
|
|
53161
|
+
403: unknown;
|
|
53162
|
+
/**
|
|
53163
|
+
* Skill or version not found. Take version ids from skills.versions.list.
|
|
53164
|
+
*/
|
|
53165
|
+
404: unknown;
|
|
53166
|
+
/**
|
|
53167
|
+
* SKILL_LAST_VERSION: this is the last remaining version; a skill keeps at least one version, so delete the skill instead. Or RESOURCE_IN_USE: a non-archived agent pins this version; the message names the agents.
|
|
53168
|
+
*/
|
|
53169
|
+
409: unknown;
|
|
53170
|
+
};
|
|
53171
|
+
export type SkillsVersionsDeleteResponses = {
|
|
53172
|
+
/**
|
|
53173
|
+
* Successful response
|
|
53174
|
+
*/
|
|
53175
|
+
200: AgentManaged312;
|
|
53176
|
+
};
|
|
53177
|
+
export type SkillsVersionsDeleteResponse = SkillsVersionsDeleteResponses[keyof SkillsVersionsDeleteResponses];
|
|
53178
|
+
export type SkillsVersionsRetrieveData = {
|
|
53179
|
+
body?: never;
|
|
53180
|
+
path: {
|
|
53181
|
+
/**
|
|
53182
|
+
* Skill id (skill_...), as returned by skills.create or skills.list. A skill of another organization returns 404.
|
|
53183
|
+
*/
|
|
53184
|
+
skill_id: string;
|
|
53185
|
+
/**
|
|
53186
|
+
* Skill version id, as returned by skills.versions.create or skills.versions.list; an opaque string that increases with each upload.
|
|
53187
|
+
*/
|
|
53188
|
+
version: string;
|
|
53189
|
+
};
|
|
53190
|
+
query?: never;
|
|
53191
|
+
url: '/agent/v1/skills/{skill_id}/versions/{version}';
|
|
53192
|
+
};
|
|
53193
|
+
export type SkillsVersionsRetrieveErrors = {
|
|
53194
|
+
/**
|
|
53195
|
+
* The API key is missing, invalid or revoked. Send a valid key as X-API-Key or as a Bearer token.
|
|
53196
|
+
*/
|
|
53197
|
+
401: unknown;
|
|
53198
|
+
/**
|
|
53199
|
+
* permission_error: the credential's role or bound resources do not allow this operation. Use a key with access to the agent domain and its resources.
|
|
53200
|
+
*/
|
|
53201
|
+
403: unknown;
|
|
53202
|
+
/**
|
|
53203
|
+
* Skill or version not found. Take version ids from skills.versions.list.
|
|
53204
|
+
*/
|
|
53205
|
+
404: unknown;
|
|
53206
|
+
};
|
|
53207
|
+
export type SkillsVersionsRetrieveResponses = {
|
|
53208
|
+
/**
|
|
53209
|
+
* Successful response
|
|
53210
|
+
*/
|
|
53211
|
+
200: AgentManaged311;
|
|
53212
|
+
};
|
|
53213
|
+
export type SkillsVersionsRetrieveResponse = SkillsVersionsRetrieveResponses[keyof SkillsVersionsRetrieveResponses];
|
|
53214
|
+
export type SkillsVersionsDownloadData = {
|
|
53215
|
+
body?: never;
|
|
53216
|
+
path: {
|
|
53217
|
+
/**
|
|
53218
|
+
* Skill id (skill_...), as returned by skills.create or skills.list. A skill of another organization returns 404.
|
|
53219
|
+
*/
|
|
53220
|
+
skill_id: string;
|
|
53221
|
+
/**
|
|
53222
|
+
* Skill version id, as returned by skills.versions.create or skills.versions.list; an opaque string that increases with each upload.
|
|
53223
|
+
*/
|
|
53224
|
+
version: string;
|
|
53225
|
+
};
|
|
53226
|
+
query?: never;
|
|
53227
|
+
url: '/agent/v1/skills/{skill_id}/versions/{version}/content';
|
|
53228
|
+
};
|
|
53229
|
+
export type SkillsVersionsDownloadErrors = {
|
|
53230
|
+
/**
|
|
53231
|
+
* The API key is missing, invalid or revoked. Send a valid key as X-API-Key or as a Bearer token.
|
|
53232
|
+
*/
|
|
53233
|
+
401: unknown;
|
|
53234
|
+
/**
|
|
53235
|
+
* permission_error: the credential's role or bound resources do not allow this operation. Use a key with access to the agent domain and its resources.
|
|
53236
|
+
*/
|
|
53237
|
+
403: unknown;
|
|
53238
|
+
/**
|
|
53239
|
+
* Skill or version not found, or the version was deleted. Take version ids from skills.versions.list.
|
|
53240
|
+
*/
|
|
53241
|
+
404: unknown;
|
|
53242
|
+
};
|
|
53243
|
+
export type SkillsVersionsDownloadResponses = {
|
|
53244
|
+
/**
|
|
53245
|
+
* Binary response body
|
|
53246
|
+
*/
|
|
53247
|
+
200: Blob | File;
|
|
53248
|
+
};
|
|
53249
|
+
export type SkillsVersionsDownloadResponse = SkillsVersionsDownloadResponses[keyof SkillsVersionsDownloadResponses];
|
|
51872
53250
|
export type ApplicationGetSubdomainData = {
|
|
51873
53251
|
body?: never;
|
|
51874
53252
|
path?: never;
|