@deepraxis/sdk 0.1.0-dev.3a7324b → 0.1.0-dev.3fd48e7

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.
@@ -1,6 +1,35 @@
1
1
  export type ClientOptions = {
2
2
  baseUrl: 'https://api.deepraxis.com' | (string & {});
3
3
  };
4
+ export type AgentError = {
5
+ type: 'error';
6
+ error: {
7
+ /**
8
+ * Anthropic error type: invalid_request_error, authentication_error, permission_error, not_found_error, rate_limit_error, api_error or overloaded_error (billing_error, request_too_large and not_implemented_error where they apply).
9
+ */
10
+ type: string;
11
+ /**
12
+ * English sentence naming what to fix.
13
+ */
14
+ message: string;
15
+ /**
16
+ * Domain code to branch on, for example SESSION_NOT_FOUND or AGENT_VERSION_CONFLICT.
17
+ */
18
+ code: string;
19
+ /**
20
+ * Whether the same request can succeed later.
21
+ */
22
+ retryable: boolean;
23
+ /**
24
+ * AGENT_VERSION_CONFLICT only: the agent's latest version.
25
+ */
26
+ current_version?: number;
27
+ };
28
+ /**
29
+ * Equals the X-Request-Id response header.
30
+ */
31
+ request_id: string;
32
+ };
4
33
  export type BrowserSessionCreateParams = {
5
34
  /**
6
35
  * 可省略;账户使用 default 项目。
@@ -4064,7 +4093,7 @@ export type AgentManaged42 = {
4064
4093
  */
4065
4094
  type: 'anthropic';
4066
4095
  /**
4067
- * Version of the skill; a string.
4096
+ * Version of the skill: omit or `latest` to follow the newest version at each new session; give a version id to pin it.
4068
4097
  */
4069
4098
  version: string;
4070
4099
  };
@@ -4078,7 +4107,7 @@ export type AgentManaged43 = {
4078
4107
  */
4079
4108
  type: 'custom';
4080
4109
  /**
4081
- * Version of the skill; a string.
4110
+ * Version of the skill: omit or `latest` to follow the newest version at each new session; give a version id to pin it.
4082
4111
  */
4083
4112
  version: string;
4084
4113
  };
@@ -5499,7 +5528,7 @@ export type AgentManaged170 = {
5499
5528
  */
5500
5529
  type: 'agent';
5501
5530
  /**
5502
- * The agent's current version. Starts at 1 and increments each time the agent is modified.
5531
+ * 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.
5503
5532
  */
5504
5533
  version: number;
5505
5534
  };
@@ -17869,7 +17898,7 @@ export type AgentManaged172 = {
17869
17898
  */
17870
17899
  type: 'agent';
17871
17900
  /**
17872
- * The agent's current version. Starts at 1 and increments each time the agent is modified.
17901
+ * 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.
17873
17902
  */
17874
17903
  version: number;
17875
17904
  };
@@ -18144,7 +18173,7 @@ export type AgentManaged40 = {
18144
18173
  */
18145
18174
  type: 'agent';
18146
18175
  /**
18147
- * The agent's current version. Starts at 1 and increments each time the agent is modified.
18176
+ * 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.
18148
18177
  */
18149
18178
  version: number;
18150
18179
  };
@@ -27264,13 +27293,13 @@ export type ApplyAgentVersionErrors = {
27264
27293
  */
27265
27294
  400: unknown;
27266
27295
  /**
27267
- * The API key is missing, invalid or revoked. Send a valid key as X-API-Key or as a Bearer token.
27296
+ * UNAUTHENTICATED (or INVALID_API_KEY, API_KEY_DISABLED, API_KEY_EXPIRED, INVALID_API_TOKEN, API_TOKEN_EXPIRED, API_TOKEN_REVOKED): the API key is missing, invalid or revoked. Send a valid key as X-API-Key or as a Bearer token.
27268
27297
  */
27269
- 401: unknown;
27298
+ 401: AgentError;
27270
27299
  /**
27271
27300
  * 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
27301
  */
27273
- 403: unknown;
27302
+ 403: AgentError;
27274
27303
  /**
27275
27304
  * Agent or version is unavailable. A missing version returns Agent version not found; check the version list.
27276
27305
  */
@@ -27280,6 +27309,7 @@ export type ApplyAgentVersionErrors = {
27280
27309
  */
27281
27310
  409: unknown;
27282
27311
  };
27312
+ export type ApplyAgentVersionError = ApplyAgentVersionErrors[keyof ApplyAgentVersionErrors];
27283
27313
  export type ApplyAgentVersionResponses = {
27284
27314
  /**
27285
27315
  * Latest saved agent with the selected active_version; no new version was created.
@@ -27461,7 +27491,7 @@ export type ApplyAgentVersionResponses = {
27461
27491
  */
27462
27492
  type: 'agent';
27463
27493
  /**
27464
- * The agent's current version. Starts at 1 and increments each time the agent is modified.
27494
+ * 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.
27465
27495
  */
27466
27496
  version: number;
27467
27497
  } | {
@@ -27496,7 +27526,7 @@ export type ApplyAgentVersionResponses = {
27496
27526
  */
27497
27527
  type: 'anthropic';
27498
27528
  /**
27499
- * Version of the skill; a string.
27529
+ * Version of the skill: omit or `latest` to follow the newest version at each new session; give a version id to pin it.
27500
27530
  */
27501
27531
  version: string;
27502
27532
  } | {
@@ -27509,7 +27539,7 @@ export type ApplyAgentVersionResponses = {
27509
27539
  */
27510
27540
  type: 'custom';
27511
27541
  /**
27512
- * Version of the skill; a string.
27542
+ * Version of the skill: omit or `latest` to follow the newest version at each new session; give a version id to pin it.
27513
27543
  */
27514
27544
  version: string;
27515
27545
  }>;
@@ -28440,18 +28470,19 @@ export type UnarchiveAgentData = {
28440
28470
  };
28441
28471
  export type UnarchiveAgentErrors = {
28442
28472
  /**
28443
- * The API key is missing, invalid or revoked. Send a valid key as X-API-Key or as a Bearer token.
28473
+ * UNAUTHENTICATED (or INVALID_API_KEY, API_KEY_DISABLED, API_KEY_EXPIRED, INVALID_API_TOKEN, API_TOKEN_EXPIRED, API_TOKEN_REVOKED): the API key is missing, invalid or revoked. Send a valid key as X-API-Key or as a Bearer token.
28444
28474
  */
28445
- 401: unknown;
28475
+ 401: AgentError;
28446
28476
  /**
28447
28477
  * 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
28478
  */
28449
- 403: unknown;
28479
+ 403: AgentError;
28450
28480
  /**
28451
28481
  * Agent does not exist or is inaccessible to this caller.
28452
28482
  */
28453
28483
  404: unknown;
28454
28484
  };
28485
+ export type UnarchiveAgentError = UnarchiveAgentErrors[keyof UnarchiveAgentErrors];
28455
28486
  export type UnarchiveAgentResponses = {
28456
28487
  /**
28457
28488
  * Active agent; already active agents are unchanged.
@@ -28633,7 +28664,7 @@ export type UnarchiveAgentResponses = {
28633
28664
  */
28634
28665
  type: 'agent';
28635
28666
  /**
28636
- * The agent's current version. Starts at 1 and increments each time the agent is modified.
28667
+ * 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.
28637
28668
  */
28638
28669
  version: number;
28639
28670
  } | {
@@ -28668,7 +28699,7 @@ export type UnarchiveAgentResponses = {
28668
28699
  */
28669
28700
  type: 'anthropic';
28670
28701
  /**
28671
- * Version of the skill; a string.
28702
+ * Version of the skill: omit or `latest` to follow the newest version at each new session; give a version id to pin it.
28672
28703
  */
28673
28704
  version: string;
28674
28705
  } | {
@@ -28681,7 +28712,7 @@ export type UnarchiveAgentResponses = {
28681
28712
  */
28682
28713
  type: 'custom';
28683
28714
  /**
28684
- * Version of the skill; a string.
28715
+ * Version of the skill: omit or `latest` to follow the newest version at each new session; give a version id to pin it.
28685
28716
  */
28686
28717
  version: string;
28687
28718
  }>;
@@ -29626,12 +29657,13 @@ export type DeleteRunFeedbackErrors = {
29626
29657
  /**
29627
29658
  * 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
29659
  */
29629
- 403: unknown;
29660
+ 403: AgentError;
29630
29661
  /**
29631
29662
  * Session is inaccessible or the run does not belong to it; verify both identifiers.
29632
29663
  */
29633
29664
  404: unknown;
29634
29665
  };
29666
+ export type DeleteRunFeedbackError = DeleteRunFeedbackErrors[keyof DeleteRunFeedbackErrors];
29635
29667
  export type DeleteRunFeedbackResponses = {
29636
29668
  /**
29637
29669
  * Feedback removed, or already absent.
@@ -29675,12 +29707,13 @@ export type SetRunFeedbackErrors = {
29675
29707
  /**
29676
29708
  * 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
29709
  */
29678
- 403: unknown;
29710
+ 403: AgentError;
29679
29711
  /**
29680
29712
  * Session is inaccessible or the run does not belong to it; verify both identifiers.
29681
29713
  */
29682
29714
  404: unknown;
29683
29715
  };
29716
+ export type SetRunFeedbackError = SetRunFeedbackErrors[keyof SetRunFeedbackErrors];
29684
29717
  export type SetRunFeedbackResponses = {
29685
29718
  /**
29686
29719
  * Current feedback after replacing any previous submission.
@@ -29753,12 +29786,13 @@ export type ListEndUsersErrors = {
29753
29786
  /**
29754
29787
  * 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
29788
  */
29756
- 403: unknown;
29789
+ 403: AgentError;
29757
29790
  /**
29758
29791
  * Agent or requested user is unavailable to this caller, or the caller is an end user.
29759
29792
  */
29760
29793
  404: unknown;
29761
29794
  };
29795
+ export type ListEndUsersError = ListEndUsersErrors[keyof ListEndUsersErrors];
29762
29796
  export type ListEndUsersResponses = {
29763
29797
  /**
29764
29798
  * Matching users and next page cursor.
@@ -29832,12 +29866,13 @@ export type DeleteEndUserErrors = {
29832
29866
  /**
29833
29867
  * 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
29868
  */
29835
- 403: unknown;
29869
+ 403: AgentError;
29836
29870
  /**
29837
29871
  * Agent or requested user is unavailable to this caller, or the caller is an end user.
29838
29872
  */
29839
29873
  404: unknown;
29840
29874
  };
29875
+ export type DeleteEndUserError = DeleteEndUserErrors[keyof DeleteEndUserErrors];
29841
29876
  export type DeleteEndUserResponses = {
29842
29877
  /**
29843
29878
  * Deletion accepted; poll the deletion endpoint until done or failed.
@@ -29881,12 +29916,13 @@ export type GetEndUserErrors = {
29881
29916
  /**
29882
29917
  * 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
29918
  */
29884
- 403: unknown;
29919
+ 403: AgentError;
29885
29920
  /**
29886
29921
  * Agent or requested user is unavailable to this caller, or the caller is an end user.
29887
29922
  */
29888
29923
  404: unknown;
29889
29924
  };
29925
+ export type GetEndUserError = GetEndUserErrors[keyof GetEndUserErrors];
29890
29926
  export type GetEndUserResponses = {
29891
29927
  /**
29892
29928
  * Current end-user view.
@@ -29971,12 +30007,13 @@ export type GetEndUserDeletionErrors = {
29971
30007
  /**
29972
30008
  * 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
30009
  */
29974
- 403: unknown;
30010
+ 403: AgentError;
29975
30011
  /**
29976
30012
  * Agent or requested user is unavailable to this caller, or the caller is an end user.
29977
30013
  */
29978
30014
  404: unknown;
29979
30015
  };
30016
+ export type GetEndUserDeletionError = GetEndUserDeletionErrors[keyof GetEndUserDeletionErrors];
29980
30017
  export type GetEndUserDeletionResponses = {
29981
30018
  /**
29982
30019
  * Latest deletion task and snapshot counts.
@@ -30061,7 +30098,7 @@ export type RevokeEndUserTokensErrors = {
30061
30098
  /**
30062
30099
  * 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
30100
  */
30064
- 403: unknown;
30101
+ 403: AgentError;
30065
30102
  /**
30066
30103
  * Agent or requested user is unavailable to this caller, or the caller is an end user.
30067
30104
  */
@@ -30071,6 +30108,7 @@ export type RevokeEndUserTokensErrors = {
30071
30108
  */
30072
30109
  502: unknown;
30073
30110
  };
30111
+ export type RevokeEndUserTokensError = RevokeEndUserTokensErrors[keyof RevokeEndUserTokensErrors];
30074
30112
  export type RevokeEndUserTokensResponses = {
30075
30113
  /**
30076
30114
  * Number of newly revoked grants.
@@ -30110,7 +30148,7 @@ export type BlockEndUserErrors = {
30110
30148
  /**
30111
30149
  * 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
30150
  */
30113
- 403: unknown;
30151
+ 403: AgentError;
30114
30152
  /**
30115
30153
  * Agent or requested user is unavailable to this caller, or the caller is an end user.
30116
30154
  */
@@ -30124,6 +30162,7 @@ export type BlockEndUserErrors = {
30124
30162
  */
30125
30163
  502: unknown;
30126
30164
  };
30165
+ export type BlockEndUserError = BlockEndUserErrors[keyof BlockEndUserErrors];
30127
30166
  export type BlockEndUserResponses = {
30128
30167
  /**
30129
30168
  * Current end-user view.
@@ -30183,7 +30222,7 @@ export type UnblockEndUserErrors = {
30183
30222
  /**
30184
30223
  * 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
30224
  */
30186
- 403: unknown;
30225
+ 403: AgentError;
30187
30226
  /**
30188
30227
  * Agent or requested user is unavailable to this caller, or the caller is an end user.
30189
30228
  */
@@ -30193,6 +30232,7 @@ export type UnblockEndUserErrors = {
30193
30232
  */
30194
30233
  409: unknown;
30195
30234
  };
30235
+ export type UnblockEndUserError = UnblockEndUserErrors[keyof UnblockEndUserErrors];
30196
30236
  export type UnblockEndUserResponses = {
30197
30237
  /**
30198
30238
  * Current end-user view.
@@ -30283,6 +30323,10 @@ export type CreateCustomerGrantCodeData = {
30283
30323
  * 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
30324
  */
30285
30325
  anonymous_access_token?: string;
30326
+ /**
30327
+ * Set true to also return hosted_url, a link to the agent's Hosted chat page that carries the code in its fragment. The page exchanges the code only when the customer clicks to start, so link previews in email or chat apps do not use it up. The agent must have an identity_number, and origin cannot be set: the code is bound to no origin. Defaults to false.
30328
+ */
30329
+ hosted?: boolean;
30286
30330
  };
30287
30331
  path: {
30288
30332
  /**
@@ -30332,6 +30376,10 @@ export type CreateCustomerGrantCodeResponses = {
30332
30376
  * RFC 3339 time after which the code can no longer be exchanged.
30333
30377
  */
30334
30378
  expires_at: string;
30379
+ /**
30380
+ * Returned only when hosted is true: https://chat.praxisusercontent.com/a/{identity_number}?mode=hosted#grant={code}. Send it to the customer before expires_at; the code stays in the fragment and never reaches a server log.
30381
+ */
30382
+ hosted_url?: string;
30335
30383
  };
30336
30384
  };
30337
30385
  export type CreateCustomerGrantCodeResponse = CreateCustomerGrantCodeResponses[keyof CreateCustomerGrantCodeResponses];
@@ -30539,13 +30587,13 @@ export type ExchangeEmbedCodeErrors = {
30539
30587
  */
30540
30588
  400: unknown;
30541
30589
  /**
30542
- * The API key is missing, invalid or revoked. Send a valid key as X-API-Key or as a Bearer token.
30590
+ * UNAUTHENTICATED (or INVALID_API_KEY, API_KEY_DISABLED, API_KEY_EXPIRED, INVALID_API_TOKEN, API_TOKEN_EXPIRED, API_TOKEN_REVOKED): the API key is missing, invalid or revoked. Send a valid key as X-API-Key or as a Bearer token.
30543
30591
  */
30544
- 401: unknown;
30592
+ 401: AgentError;
30545
30593
  /**
30546
30594
  * 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
30595
  */
30548
- 403: unknown;
30596
+ 403: AgentError;
30549
30597
  /**
30550
30598
  * 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.
30551
30599
  */
@@ -30559,6 +30607,7 @@ export type ExchangeEmbedCodeErrors = {
30559
30607
  */
30560
30608
  503: unknown;
30561
30609
  };
30610
+ export type ExchangeEmbedCodeError = ExchangeEmbedCodeErrors[keyof ExchangeEmbedCodeErrors];
30562
30611
  export type ExchangeEmbedCodeResponses = {
30563
30612
  /**
30564
30613
  * The end-user token and its expiration; the code has been consumed.
@@ -30677,7 +30726,7 @@ export type ListEmbedTokensErrors = {
30677
30726
  /**
30678
30727
  * 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
30728
  */
30680
- 403: unknown;
30729
+ 403: AgentError;
30681
30730
  /**
30682
30731
  * The grant is missing or belongs to another organization, or the caller is an end user.
30683
30732
  */
@@ -30687,6 +30736,7 @@ export type ListEmbedTokensErrors = {
30687
30736
  */
30688
30737
  502: unknown;
30689
30738
  };
30739
+ export type ListEmbedTokensError = ListEmbedTokensErrors[keyof ListEmbedTokensErrors];
30690
30740
  export type ListEmbedTokensResponses = {
30691
30741
  /**
30692
30742
  * Issuance records and next page cursor.
@@ -30885,7 +30935,7 @@ export type RevokeEmbedTokenErrors = {
30885
30935
  /**
30886
30936
  * 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
30937
  */
30888
- 403: unknown;
30938
+ 403: AgentError;
30889
30939
  /**
30890
30940
  * The grant is missing or belongs to another organization, or the caller is an end user.
30891
30941
  */
@@ -30895,6 +30945,7 @@ export type RevokeEmbedTokenErrors = {
30895
30945
  */
30896
30946
  502: unknown;
30897
30947
  };
30948
+ export type RevokeEmbedTokenError = RevokeEmbedTokenErrors[keyof RevokeEmbedTokenErrors];
30898
30949
  export type RevokeEmbedTokenResponses = {
30899
30950
  /**
30900
30951
  * Revoked issuance record, including its original revocation time on repeated calls.
@@ -30969,94 +31020,211 @@ export type ComputersListData = {
30969
31020
  };
30970
31021
  export type ComputersListErrors = {
30971
31022
  /**
30972
- * Platform error with Computer code, message and hint
31023
+ * Platform error in the one /agent/v1 error body; computer failures add error.hint
30973
31024
  */
30974
31025
  400: {
31026
+ type: 'error';
30975
31027
  error: {
30976
- code: string;
31028
+ /**
31029
+ * Anthropic error type, such as invalid_request_error or not_found_error.
31030
+ */
31031
+ type: string;
30977
31032
  message: string;
30978
- hint: string;
31033
+ code: string;
31034
+ retryable: boolean;
31035
+ /**
31036
+ * How to recover, for computer failures.
31037
+ */
31038
+ hint?: string;
30979
31039
  };
31040
+ /**
31041
+ * Equals the X-Request-Id response header.
31042
+ */
31043
+ request_id: string;
30980
31044
  };
30981
31045
  /**
30982
- * Platform error with Computer code, message and hint
31046
+ * Platform error in the one /agent/v1 error body; computer failures add error.hint
30983
31047
  */
30984
31048
  401: {
31049
+ type: 'error';
30985
31050
  error: {
30986
- code: string;
31051
+ /**
31052
+ * Anthropic error type, such as invalid_request_error or not_found_error.
31053
+ */
31054
+ type: string;
30987
31055
  message: string;
30988
- hint: string;
31056
+ code: string;
31057
+ retryable: boolean;
31058
+ /**
31059
+ * How to recover, for computer failures.
31060
+ */
31061
+ hint?: string;
30989
31062
  };
31063
+ /**
31064
+ * Equals the X-Request-Id response header.
31065
+ */
31066
+ request_id: string;
30990
31067
  };
30991
31068
  /**
30992
- * Platform error with Computer code, message and hint
31069
+ * Platform error in the one /agent/v1 error body; computer failures add error.hint
30993
31070
  */
30994
31071
  403: {
31072
+ type: 'error';
30995
31073
  error: {
30996
- code: string;
31074
+ /**
31075
+ * Anthropic error type, such as invalid_request_error or not_found_error.
31076
+ */
31077
+ type: string;
30997
31078
  message: string;
30998
- hint: string;
31079
+ code: string;
31080
+ retryable: boolean;
31081
+ /**
31082
+ * How to recover, for computer failures.
31083
+ */
31084
+ hint?: string;
30999
31085
  };
31086
+ /**
31087
+ * Equals the X-Request-Id response header.
31088
+ */
31089
+ request_id: string;
31000
31090
  };
31001
31091
  /**
31002
31092
  * Computer or path not found; foreign computers are indistinguishable from absent computers.
31003
31093
  */
31004
31094
  404: {
31095
+ type: 'error';
31005
31096
  error: {
31006
- code: string;
31097
+ /**
31098
+ * Anthropic error type, such as invalid_request_error or not_found_error.
31099
+ */
31100
+ type: string;
31007
31101
  message: string;
31008
- hint: string;
31102
+ code: string;
31103
+ retryable: boolean;
31104
+ /**
31105
+ * How to recover, for computer failures.
31106
+ */
31107
+ hint?: string;
31009
31108
  };
31109
+ /**
31110
+ * Equals the X-Request-Id response header.
31111
+ */
31112
+ request_id: string;
31010
31113
  };
31011
31114
  /**
31012
- * Platform error with Computer code, message and hint
31115
+ * Platform error in the one /agent/v1 error body; computer failures add error.hint
31013
31116
  */
31014
31117
  409: {
31118
+ type: 'error';
31015
31119
  error: {
31016
- code: string;
31120
+ /**
31121
+ * Anthropic error type, such as invalid_request_error or not_found_error.
31122
+ */
31123
+ type: string;
31017
31124
  message: string;
31018
- hint: string;
31125
+ code: string;
31126
+ retryable: boolean;
31127
+ /**
31128
+ * How to recover, for computer failures.
31129
+ */
31130
+ hint?: string;
31019
31131
  };
31132
+ /**
31133
+ * Equals the X-Request-Id response header.
31134
+ */
31135
+ request_id: string;
31020
31136
  };
31021
31137
  /**
31022
- * Platform error with Computer code, message and hint
31138
+ * Platform error in the one /agent/v1 error body; computer failures add error.hint
31023
31139
  */
31024
31140
  413: {
31141
+ type: 'error';
31025
31142
  error: {
31026
- code: string;
31143
+ /**
31144
+ * Anthropic error type, such as invalid_request_error or not_found_error.
31145
+ */
31146
+ type: string;
31027
31147
  message: string;
31028
- hint: string;
31148
+ code: string;
31149
+ retryable: boolean;
31150
+ /**
31151
+ * How to recover, for computer failures.
31152
+ */
31153
+ hint?: string;
31029
31154
  };
31155
+ /**
31156
+ * Equals the X-Request-Id response header.
31157
+ */
31158
+ request_id: string;
31030
31159
  };
31031
31160
  /**
31032
- * Platform error with Computer code, message and hint
31161
+ * Platform error in the one /agent/v1 error body; computer failures add error.hint
31033
31162
  */
31034
31163
  429: {
31164
+ type: 'error';
31035
31165
  error: {
31036
- code: string;
31166
+ /**
31167
+ * Anthropic error type, such as invalid_request_error or not_found_error.
31168
+ */
31169
+ type: string;
31037
31170
  message: string;
31038
- hint: string;
31171
+ code: string;
31172
+ retryable: boolean;
31173
+ /**
31174
+ * How to recover, for computer failures.
31175
+ */
31176
+ hint?: string;
31039
31177
  };
31178
+ /**
31179
+ * Equals the X-Request-Id response header.
31180
+ */
31181
+ request_id: string;
31040
31182
  };
31041
31183
  /**
31042
- * Platform error with Computer code, message and hint
31184
+ * Platform error in the one /agent/v1 error body; computer failures add error.hint
31043
31185
  */
31044
31186
  500: {
31187
+ type: 'error';
31045
31188
  error: {
31046
- code: string;
31189
+ /**
31190
+ * Anthropic error type, such as invalid_request_error or not_found_error.
31191
+ */
31192
+ type: string;
31047
31193
  message: string;
31048
- hint: string;
31194
+ code: string;
31195
+ retryable: boolean;
31196
+ /**
31197
+ * How to recover, for computer failures.
31198
+ */
31199
+ hint?: string;
31049
31200
  };
31201
+ /**
31202
+ * Equals the X-Request-Id response header.
31203
+ */
31204
+ request_id: string;
31050
31205
  };
31051
31206
  /**
31052
- * Platform error with Computer code, message and hint
31207
+ * Platform error in the one /agent/v1 error body; computer failures add error.hint
31053
31208
  */
31054
31209
  503: {
31210
+ type: 'error';
31055
31211
  error: {
31056
- code: string;
31212
+ /**
31213
+ * Anthropic error type, such as invalid_request_error or not_found_error.
31214
+ */
31215
+ type: string;
31057
31216
  message: string;
31058
- hint: string;
31217
+ code: string;
31218
+ retryable: boolean;
31219
+ /**
31220
+ * How to recover, for computer failures.
31221
+ */
31222
+ hint?: string;
31059
31223
  };
31224
+ /**
31225
+ * Equals the X-Request-Id response header.
31226
+ */
31227
+ request_id: string;
31060
31228
  };
31061
31229
  };
31062
31230
  export type ComputersListError = ComputersListErrors[keyof ComputersListErrors];
@@ -31138,94 +31306,211 @@ export type ComputersCreateData = {
31138
31306
  };
31139
31307
  export type ComputersCreateErrors = {
31140
31308
  /**
31141
- * Platform error with Computer code, message and hint
31309
+ * Platform error in the one /agent/v1 error body; computer failures add error.hint
31142
31310
  */
31143
31311
  400: {
31312
+ type: 'error';
31144
31313
  error: {
31145
- code: string;
31314
+ /**
31315
+ * Anthropic error type, such as invalid_request_error or not_found_error.
31316
+ */
31317
+ type: string;
31146
31318
  message: string;
31147
- hint: string;
31319
+ code: string;
31320
+ retryable: boolean;
31321
+ /**
31322
+ * How to recover, for computer failures.
31323
+ */
31324
+ hint?: string;
31148
31325
  };
31326
+ /**
31327
+ * Equals the X-Request-Id response header.
31328
+ */
31329
+ request_id: string;
31149
31330
  };
31150
31331
  /**
31151
- * Platform error with Computer code, message and hint
31332
+ * Platform error in the one /agent/v1 error body; computer failures add error.hint
31152
31333
  */
31153
31334
  401: {
31335
+ type: 'error';
31154
31336
  error: {
31155
- code: string;
31337
+ /**
31338
+ * Anthropic error type, such as invalid_request_error or not_found_error.
31339
+ */
31340
+ type: string;
31156
31341
  message: string;
31157
- hint: string;
31342
+ code: string;
31343
+ retryable: boolean;
31344
+ /**
31345
+ * How to recover, for computer failures.
31346
+ */
31347
+ hint?: string;
31158
31348
  };
31349
+ /**
31350
+ * Equals the X-Request-Id response header.
31351
+ */
31352
+ request_id: string;
31159
31353
  };
31160
31354
  /**
31161
- * Platform error with Computer code, message and hint
31355
+ * Platform error in the one /agent/v1 error body; computer failures add error.hint
31162
31356
  */
31163
31357
  403: {
31358
+ type: 'error';
31164
31359
  error: {
31165
- code: string;
31360
+ /**
31361
+ * Anthropic error type, such as invalid_request_error or not_found_error.
31362
+ */
31363
+ type: string;
31166
31364
  message: string;
31167
- hint: string;
31365
+ code: string;
31366
+ retryable: boolean;
31367
+ /**
31368
+ * How to recover, for computer failures.
31369
+ */
31370
+ hint?: string;
31168
31371
  };
31372
+ /**
31373
+ * Equals the X-Request-Id response header.
31374
+ */
31375
+ request_id: string;
31169
31376
  };
31170
31377
  /**
31171
31378
  * Computer or path not found; foreign computers are indistinguishable from absent computers.
31172
31379
  */
31173
31380
  404: {
31381
+ type: 'error';
31174
31382
  error: {
31175
- code: string;
31383
+ /**
31384
+ * Anthropic error type, such as invalid_request_error or not_found_error.
31385
+ */
31386
+ type: string;
31176
31387
  message: string;
31177
- hint: string;
31388
+ code: string;
31389
+ retryable: boolean;
31390
+ /**
31391
+ * How to recover, for computer failures.
31392
+ */
31393
+ hint?: string;
31178
31394
  };
31395
+ /**
31396
+ * Equals the X-Request-Id response header.
31397
+ */
31398
+ request_id: string;
31179
31399
  };
31180
31400
  /**
31181
- * Platform error with Computer code, message and hint
31401
+ * Platform error in the one /agent/v1 error body; computer failures add error.hint
31182
31402
  */
31183
31403
  409: {
31404
+ type: 'error';
31184
31405
  error: {
31185
- code: string;
31406
+ /**
31407
+ * Anthropic error type, such as invalid_request_error or not_found_error.
31408
+ */
31409
+ type: string;
31186
31410
  message: string;
31187
- hint: string;
31411
+ code: string;
31412
+ retryable: boolean;
31413
+ /**
31414
+ * How to recover, for computer failures.
31415
+ */
31416
+ hint?: string;
31188
31417
  };
31418
+ /**
31419
+ * Equals the X-Request-Id response header.
31420
+ */
31421
+ request_id: string;
31189
31422
  };
31190
31423
  /**
31191
- * Platform error with Computer code, message and hint
31424
+ * Platform error in the one /agent/v1 error body; computer failures add error.hint
31192
31425
  */
31193
31426
  413: {
31427
+ type: 'error';
31194
31428
  error: {
31195
- code: string;
31429
+ /**
31430
+ * Anthropic error type, such as invalid_request_error or not_found_error.
31431
+ */
31432
+ type: string;
31196
31433
  message: string;
31197
- hint: string;
31434
+ code: string;
31435
+ retryable: boolean;
31436
+ /**
31437
+ * How to recover, for computer failures.
31438
+ */
31439
+ hint?: string;
31198
31440
  };
31441
+ /**
31442
+ * Equals the X-Request-Id response header.
31443
+ */
31444
+ request_id: string;
31199
31445
  };
31200
31446
  /**
31201
- * Platform error with Computer code, message and hint
31447
+ * Platform error in the one /agent/v1 error body; computer failures add error.hint
31202
31448
  */
31203
31449
  429: {
31450
+ type: 'error';
31204
31451
  error: {
31205
- code: string;
31452
+ /**
31453
+ * Anthropic error type, such as invalid_request_error or not_found_error.
31454
+ */
31455
+ type: string;
31206
31456
  message: string;
31207
- hint: string;
31457
+ code: string;
31458
+ retryable: boolean;
31459
+ /**
31460
+ * How to recover, for computer failures.
31461
+ */
31462
+ hint?: string;
31208
31463
  };
31464
+ /**
31465
+ * Equals the X-Request-Id response header.
31466
+ */
31467
+ request_id: string;
31209
31468
  };
31210
31469
  /**
31211
- * Platform error with Computer code, message and hint
31470
+ * Platform error in the one /agent/v1 error body; computer failures add error.hint
31212
31471
  */
31213
31472
  500: {
31473
+ type: 'error';
31214
31474
  error: {
31215
- code: string;
31475
+ /**
31476
+ * Anthropic error type, such as invalid_request_error or not_found_error.
31477
+ */
31478
+ type: string;
31216
31479
  message: string;
31217
- hint: string;
31480
+ code: string;
31481
+ retryable: boolean;
31482
+ /**
31483
+ * How to recover, for computer failures.
31484
+ */
31485
+ hint?: string;
31218
31486
  };
31487
+ /**
31488
+ * Equals the X-Request-Id response header.
31489
+ */
31490
+ request_id: string;
31219
31491
  };
31220
31492
  /**
31221
- * Platform error with Computer code, message and hint
31493
+ * Platform error in the one /agent/v1 error body; computer failures add error.hint
31222
31494
  */
31223
31495
  503: {
31496
+ type: 'error';
31224
31497
  error: {
31225
- code: string;
31498
+ /**
31499
+ * Anthropic error type, such as invalid_request_error or not_found_error.
31500
+ */
31501
+ type: string;
31226
31502
  message: string;
31227
- hint: string;
31503
+ code: string;
31504
+ retryable: boolean;
31505
+ /**
31506
+ * How to recover, for computer failures.
31507
+ */
31508
+ hint?: string;
31228
31509
  };
31510
+ /**
31511
+ * Equals the X-Request-Id response header.
31512
+ */
31513
+ request_id: string;
31229
31514
  };
31230
31515
  };
31231
31516
  export type ComputersCreateError = ComputersCreateErrors[keyof ComputersCreateErrors];
@@ -31290,94 +31575,211 @@ export type ComputersDeleteData = {
31290
31575
  };
31291
31576
  export type ComputersDeleteErrors = {
31292
31577
  /**
31293
- * Platform error with Computer code, message and hint
31578
+ * Platform error in the one /agent/v1 error body; computer failures add error.hint
31294
31579
  */
31295
31580
  400: {
31581
+ type: 'error';
31296
31582
  error: {
31297
- code: string;
31583
+ /**
31584
+ * Anthropic error type, such as invalid_request_error or not_found_error.
31585
+ */
31586
+ type: string;
31298
31587
  message: string;
31299
- hint: string;
31588
+ code: string;
31589
+ retryable: boolean;
31590
+ /**
31591
+ * How to recover, for computer failures.
31592
+ */
31593
+ hint?: string;
31300
31594
  };
31595
+ /**
31596
+ * Equals the X-Request-Id response header.
31597
+ */
31598
+ request_id: string;
31301
31599
  };
31302
31600
  /**
31303
- * Platform error with Computer code, message and hint
31601
+ * Platform error in the one /agent/v1 error body; computer failures add error.hint
31304
31602
  */
31305
31603
  401: {
31604
+ type: 'error';
31306
31605
  error: {
31307
- code: string;
31606
+ /**
31607
+ * Anthropic error type, such as invalid_request_error or not_found_error.
31608
+ */
31609
+ type: string;
31308
31610
  message: string;
31309
- hint: string;
31611
+ code: string;
31612
+ retryable: boolean;
31613
+ /**
31614
+ * How to recover, for computer failures.
31615
+ */
31616
+ hint?: string;
31310
31617
  };
31618
+ /**
31619
+ * Equals the X-Request-Id response header.
31620
+ */
31621
+ request_id: string;
31311
31622
  };
31312
31623
  /**
31313
- * Platform error with Computer code, message and hint
31624
+ * Platform error in the one /agent/v1 error body; computer failures add error.hint
31314
31625
  */
31315
31626
  403: {
31627
+ type: 'error';
31316
31628
  error: {
31317
- code: string;
31629
+ /**
31630
+ * Anthropic error type, such as invalid_request_error or not_found_error.
31631
+ */
31632
+ type: string;
31318
31633
  message: string;
31319
- hint: string;
31634
+ code: string;
31635
+ retryable: boolean;
31636
+ /**
31637
+ * How to recover, for computer failures.
31638
+ */
31639
+ hint?: string;
31320
31640
  };
31641
+ /**
31642
+ * Equals the X-Request-Id response header.
31643
+ */
31644
+ request_id: string;
31321
31645
  };
31322
31646
  /**
31323
31647
  * Computer or path not found; foreign computers are indistinguishable from absent computers.
31324
31648
  */
31325
31649
  404: {
31650
+ type: 'error';
31326
31651
  error: {
31327
- code: string;
31652
+ /**
31653
+ * Anthropic error type, such as invalid_request_error or not_found_error.
31654
+ */
31655
+ type: string;
31328
31656
  message: string;
31329
- hint: string;
31657
+ code: string;
31658
+ retryable: boolean;
31659
+ /**
31660
+ * How to recover, for computer failures.
31661
+ */
31662
+ hint?: string;
31330
31663
  };
31664
+ /**
31665
+ * Equals the X-Request-Id response header.
31666
+ */
31667
+ request_id: string;
31331
31668
  };
31332
31669
  /**
31333
- * Platform error with Computer code, message and hint
31670
+ * Platform error in the one /agent/v1 error body; computer failures add error.hint
31334
31671
  */
31335
31672
  409: {
31673
+ type: 'error';
31336
31674
  error: {
31337
- code: string;
31675
+ /**
31676
+ * Anthropic error type, such as invalid_request_error or not_found_error.
31677
+ */
31678
+ type: string;
31338
31679
  message: string;
31339
- hint: string;
31680
+ code: string;
31681
+ retryable: boolean;
31682
+ /**
31683
+ * How to recover, for computer failures.
31684
+ */
31685
+ hint?: string;
31340
31686
  };
31687
+ /**
31688
+ * Equals the X-Request-Id response header.
31689
+ */
31690
+ request_id: string;
31341
31691
  };
31342
31692
  /**
31343
- * Platform error with Computer code, message and hint
31693
+ * Platform error in the one /agent/v1 error body; computer failures add error.hint
31344
31694
  */
31345
31695
  413: {
31696
+ type: 'error';
31346
31697
  error: {
31347
- code: string;
31698
+ /**
31699
+ * Anthropic error type, such as invalid_request_error or not_found_error.
31700
+ */
31701
+ type: string;
31348
31702
  message: string;
31349
- hint: string;
31703
+ code: string;
31704
+ retryable: boolean;
31705
+ /**
31706
+ * How to recover, for computer failures.
31707
+ */
31708
+ hint?: string;
31350
31709
  };
31710
+ /**
31711
+ * Equals the X-Request-Id response header.
31712
+ */
31713
+ request_id: string;
31351
31714
  };
31352
31715
  /**
31353
- * Platform error with Computer code, message and hint
31716
+ * Platform error in the one /agent/v1 error body; computer failures add error.hint
31354
31717
  */
31355
31718
  429: {
31719
+ type: 'error';
31356
31720
  error: {
31357
- code: string;
31721
+ /**
31722
+ * Anthropic error type, such as invalid_request_error or not_found_error.
31723
+ */
31724
+ type: string;
31358
31725
  message: string;
31359
- hint: string;
31726
+ code: string;
31727
+ retryable: boolean;
31728
+ /**
31729
+ * How to recover, for computer failures.
31730
+ */
31731
+ hint?: string;
31360
31732
  };
31733
+ /**
31734
+ * Equals the X-Request-Id response header.
31735
+ */
31736
+ request_id: string;
31361
31737
  };
31362
31738
  /**
31363
- * Platform error with Computer code, message and hint
31739
+ * Platform error in the one /agent/v1 error body; computer failures add error.hint
31364
31740
  */
31365
31741
  500: {
31742
+ type: 'error';
31366
31743
  error: {
31367
- code: string;
31744
+ /**
31745
+ * Anthropic error type, such as invalid_request_error or not_found_error.
31746
+ */
31747
+ type: string;
31368
31748
  message: string;
31369
- hint: string;
31749
+ code: string;
31750
+ retryable: boolean;
31751
+ /**
31752
+ * How to recover, for computer failures.
31753
+ */
31754
+ hint?: string;
31370
31755
  };
31756
+ /**
31757
+ * Equals the X-Request-Id response header.
31758
+ */
31759
+ request_id: string;
31371
31760
  };
31372
31761
  /**
31373
- * Platform error with Computer code, message and hint
31762
+ * Platform error in the one /agent/v1 error body; computer failures add error.hint
31374
31763
  */
31375
31764
  503: {
31765
+ type: 'error';
31376
31766
  error: {
31377
- code: string;
31767
+ /**
31768
+ * Anthropic error type, such as invalid_request_error or not_found_error.
31769
+ */
31770
+ type: string;
31378
31771
  message: string;
31379
- hint: string;
31772
+ code: string;
31773
+ retryable: boolean;
31774
+ /**
31775
+ * How to recover, for computer failures.
31776
+ */
31777
+ hint?: string;
31380
31778
  };
31779
+ /**
31780
+ * Equals the X-Request-Id response header.
31781
+ */
31782
+ request_id: string;
31381
31783
  };
31382
31784
  };
31383
31785
  export type ComputersDeleteError = ComputersDeleteErrors[keyof ComputersDeleteErrors];
@@ -31410,94 +31812,211 @@ export type ComputersRetrieveData = {
31410
31812
  };
31411
31813
  export type ComputersRetrieveErrors = {
31412
31814
  /**
31413
- * Platform error with Computer code, message and hint
31815
+ * Platform error in the one /agent/v1 error body; computer failures add error.hint
31414
31816
  */
31415
31817
  400: {
31818
+ type: 'error';
31416
31819
  error: {
31417
- code: string;
31820
+ /**
31821
+ * Anthropic error type, such as invalid_request_error or not_found_error.
31822
+ */
31823
+ type: string;
31418
31824
  message: string;
31419
- hint: string;
31825
+ code: string;
31826
+ retryable: boolean;
31827
+ /**
31828
+ * How to recover, for computer failures.
31829
+ */
31830
+ hint?: string;
31420
31831
  };
31832
+ /**
31833
+ * Equals the X-Request-Id response header.
31834
+ */
31835
+ request_id: string;
31421
31836
  };
31422
31837
  /**
31423
- * Platform error with Computer code, message and hint
31838
+ * Platform error in the one /agent/v1 error body; computer failures add error.hint
31424
31839
  */
31425
31840
  401: {
31841
+ type: 'error';
31426
31842
  error: {
31427
- code: string;
31843
+ /**
31844
+ * Anthropic error type, such as invalid_request_error or not_found_error.
31845
+ */
31846
+ type: string;
31428
31847
  message: string;
31429
- hint: string;
31848
+ code: string;
31849
+ retryable: boolean;
31850
+ /**
31851
+ * How to recover, for computer failures.
31852
+ */
31853
+ hint?: string;
31430
31854
  };
31855
+ /**
31856
+ * Equals the X-Request-Id response header.
31857
+ */
31858
+ request_id: string;
31431
31859
  };
31432
31860
  /**
31433
- * Platform error with Computer code, message and hint
31861
+ * Platform error in the one /agent/v1 error body; computer failures add error.hint
31434
31862
  */
31435
31863
  403: {
31864
+ type: 'error';
31436
31865
  error: {
31437
- code: string;
31866
+ /**
31867
+ * Anthropic error type, such as invalid_request_error or not_found_error.
31868
+ */
31869
+ type: string;
31438
31870
  message: string;
31439
- hint: string;
31871
+ code: string;
31872
+ retryable: boolean;
31873
+ /**
31874
+ * How to recover, for computer failures.
31875
+ */
31876
+ hint?: string;
31440
31877
  };
31878
+ /**
31879
+ * Equals the X-Request-Id response header.
31880
+ */
31881
+ request_id: string;
31441
31882
  };
31442
31883
  /**
31443
31884
  * Computer or path not found; foreign computers are indistinguishable from absent computers.
31444
31885
  */
31445
31886
  404: {
31887
+ type: 'error';
31446
31888
  error: {
31447
- code: string;
31889
+ /**
31890
+ * Anthropic error type, such as invalid_request_error or not_found_error.
31891
+ */
31892
+ type: string;
31448
31893
  message: string;
31449
- hint: string;
31894
+ code: string;
31895
+ retryable: boolean;
31896
+ /**
31897
+ * How to recover, for computer failures.
31898
+ */
31899
+ hint?: string;
31450
31900
  };
31901
+ /**
31902
+ * Equals the X-Request-Id response header.
31903
+ */
31904
+ request_id: string;
31451
31905
  };
31452
31906
  /**
31453
- * Platform error with Computer code, message and hint
31907
+ * Platform error in the one /agent/v1 error body; computer failures add error.hint
31454
31908
  */
31455
31909
  409: {
31910
+ type: 'error';
31456
31911
  error: {
31457
- code: string;
31912
+ /**
31913
+ * Anthropic error type, such as invalid_request_error or not_found_error.
31914
+ */
31915
+ type: string;
31458
31916
  message: string;
31459
- hint: string;
31917
+ code: string;
31918
+ retryable: boolean;
31919
+ /**
31920
+ * How to recover, for computer failures.
31921
+ */
31922
+ hint?: string;
31460
31923
  };
31924
+ /**
31925
+ * Equals the X-Request-Id response header.
31926
+ */
31927
+ request_id: string;
31461
31928
  };
31462
31929
  /**
31463
- * Platform error with Computer code, message and hint
31930
+ * Platform error in the one /agent/v1 error body; computer failures add error.hint
31464
31931
  */
31465
31932
  413: {
31933
+ type: 'error';
31466
31934
  error: {
31467
- code: string;
31935
+ /**
31936
+ * Anthropic error type, such as invalid_request_error or not_found_error.
31937
+ */
31938
+ type: string;
31468
31939
  message: string;
31469
- hint: string;
31940
+ code: string;
31941
+ retryable: boolean;
31942
+ /**
31943
+ * How to recover, for computer failures.
31944
+ */
31945
+ hint?: string;
31470
31946
  };
31947
+ /**
31948
+ * Equals the X-Request-Id response header.
31949
+ */
31950
+ request_id: string;
31471
31951
  };
31472
31952
  /**
31473
- * Platform error with Computer code, message and hint
31953
+ * Platform error in the one /agent/v1 error body; computer failures add error.hint
31474
31954
  */
31475
31955
  429: {
31956
+ type: 'error';
31476
31957
  error: {
31477
- code: string;
31958
+ /**
31959
+ * Anthropic error type, such as invalid_request_error or not_found_error.
31960
+ */
31961
+ type: string;
31478
31962
  message: string;
31479
- hint: string;
31963
+ code: string;
31964
+ retryable: boolean;
31965
+ /**
31966
+ * How to recover, for computer failures.
31967
+ */
31968
+ hint?: string;
31480
31969
  };
31970
+ /**
31971
+ * Equals the X-Request-Id response header.
31972
+ */
31973
+ request_id: string;
31481
31974
  };
31482
31975
  /**
31483
- * Platform error with Computer code, message and hint
31976
+ * Platform error in the one /agent/v1 error body; computer failures add error.hint
31484
31977
  */
31485
31978
  500: {
31979
+ type: 'error';
31486
31980
  error: {
31487
- code: string;
31981
+ /**
31982
+ * Anthropic error type, such as invalid_request_error or not_found_error.
31983
+ */
31984
+ type: string;
31488
31985
  message: string;
31489
- hint: string;
31986
+ code: string;
31987
+ retryable: boolean;
31988
+ /**
31989
+ * How to recover, for computer failures.
31990
+ */
31991
+ hint?: string;
31490
31992
  };
31993
+ /**
31994
+ * Equals the X-Request-Id response header.
31995
+ */
31996
+ request_id: string;
31491
31997
  };
31492
31998
  /**
31493
- * Platform error with Computer code, message and hint
31999
+ * Platform error in the one /agent/v1 error body; computer failures add error.hint
31494
32000
  */
31495
32001
  503: {
32002
+ type: 'error';
31496
32003
  error: {
31497
- code: string;
32004
+ /**
32005
+ * Anthropic error type, such as invalid_request_error or not_found_error.
32006
+ */
32007
+ type: string;
31498
32008
  message: string;
31499
- hint: string;
32009
+ code: string;
32010
+ retryable: boolean;
32011
+ /**
32012
+ * How to recover, for computer failures.
32013
+ */
32014
+ hint?: string;
31500
32015
  };
32016
+ /**
32017
+ * Equals the X-Request-Id response header.
32018
+ */
32019
+ request_id: string;
31501
32020
  };
31502
32021
  };
31503
32022
  export type ComputersRetrieveError = ComputersRetrieveErrors[keyof ComputersRetrieveErrors];
@@ -31583,94 +32102,211 @@ export type ComputersUpdateData = {
31583
32102
  };
31584
32103
  export type ComputersUpdateErrors = {
31585
32104
  /**
31586
- * Platform error with Computer code, message and hint
32105
+ * Platform error in the one /agent/v1 error body; computer failures add error.hint
31587
32106
  */
31588
32107
  400: {
32108
+ type: 'error';
31589
32109
  error: {
31590
- code: string;
32110
+ /**
32111
+ * Anthropic error type, such as invalid_request_error or not_found_error.
32112
+ */
32113
+ type: string;
31591
32114
  message: string;
31592
- hint: string;
32115
+ code: string;
32116
+ retryable: boolean;
32117
+ /**
32118
+ * How to recover, for computer failures.
32119
+ */
32120
+ hint?: string;
31593
32121
  };
32122
+ /**
32123
+ * Equals the X-Request-Id response header.
32124
+ */
32125
+ request_id: string;
31594
32126
  };
31595
32127
  /**
31596
- * Platform error with Computer code, message and hint
32128
+ * Platform error in the one /agent/v1 error body; computer failures add error.hint
31597
32129
  */
31598
32130
  401: {
32131
+ type: 'error';
31599
32132
  error: {
31600
- code: string;
32133
+ /**
32134
+ * Anthropic error type, such as invalid_request_error or not_found_error.
32135
+ */
32136
+ type: string;
31601
32137
  message: string;
31602
- hint: string;
32138
+ code: string;
32139
+ retryable: boolean;
32140
+ /**
32141
+ * How to recover, for computer failures.
32142
+ */
32143
+ hint?: string;
31603
32144
  };
32145
+ /**
32146
+ * Equals the X-Request-Id response header.
32147
+ */
32148
+ request_id: string;
31604
32149
  };
31605
32150
  /**
31606
- * Platform error with Computer code, message and hint
32151
+ * Platform error in the one /agent/v1 error body; computer failures add error.hint
31607
32152
  */
31608
32153
  403: {
32154
+ type: 'error';
31609
32155
  error: {
31610
- code: string;
32156
+ /**
32157
+ * Anthropic error type, such as invalid_request_error or not_found_error.
32158
+ */
32159
+ type: string;
31611
32160
  message: string;
31612
- hint: string;
32161
+ code: string;
32162
+ retryable: boolean;
32163
+ /**
32164
+ * How to recover, for computer failures.
32165
+ */
32166
+ hint?: string;
31613
32167
  };
32168
+ /**
32169
+ * Equals the X-Request-Id response header.
32170
+ */
32171
+ request_id: string;
31614
32172
  };
31615
32173
  /**
31616
32174
  * Computer or path not found; foreign computers are indistinguishable from absent computers.
31617
32175
  */
31618
32176
  404: {
32177
+ type: 'error';
31619
32178
  error: {
31620
- code: string;
32179
+ /**
32180
+ * Anthropic error type, such as invalid_request_error or not_found_error.
32181
+ */
32182
+ type: string;
31621
32183
  message: string;
31622
- hint: string;
32184
+ code: string;
32185
+ retryable: boolean;
32186
+ /**
32187
+ * How to recover, for computer failures.
32188
+ */
32189
+ hint?: string;
31623
32190
  };
32191
+ /**
32192
+ * Equals the X-Request-Id response header.
32193
+ */
32194
+ request_id: string;
31624
32195
  };
31625
32196
  /**
31626
- * Platform error with Computer code, message and hint
32197
+ * Platform error in the one /agent/v1 error body; computer failures add error.hint
31627
32198
  */
31628
32199
  409: {
32200
+ type: 'error';
31629
32201
  error: {
31630
- code: string;
32202
+ /**
32203
+ * Anthropic error type, such as invalid_request_error or not_found_error.
32204
+ */
32205
+ type: string;
31631
32206
  message: string;
31632
- hint: string;
32207
+ code: string;
32208
+ retryable: boolean;
32209
+ /**
32210
+ * How to recover, for computer failures.
32211
+ */
32212
+ hint?: string;
31633
32213
  };
32214
+ /**
32215
+ * Equals the X-Request-Id response header.
32216
+ */
32217
+ request_id: string;
31634
32218
  };
31635
32219
  /**
31636
- * Platform error with Computer code, message and hint
32220
+ * Platform error in the one /agent/v1 error body; computer failures add error.hint
31637
32221
  */
31638
32222
  413: {
32223
+ type: 'error';
31639
32224
  error: {
31640
- code: string;
32225
+ /**
32226
+ * Anthropic error type, such as invalid_request_error or not_found_error.
32227
+ */
32228
+ type: string;
31641
32229
  message: string;
31642
- hint: string;
32230
+ code: string;
32231
+ retryable: boolean;
32232
+ /**
32233
+ * How to recover, for computer failures.
32234
+ */
32235
+ hint?: string;
31643
32236
  };
32237
+ /**
32238
+ * Equals the X-Request-Id response header.
32239
+ */
32240
+ request_id: string;
31644
32241
  };
31645
32242
  /**
31646
- * Platform error with Computer code, message and hint
32243
+ * Platform error in the one /agent/v1 error body; computer failures add error.hint
31647
32244
  */
31648
32245
  429: {
32246
+ type: 'error';
31649
32247
  error: {
31650
- code: string;
32248
+ /**
32249
+ * Anthropic error type, such as invalid_request_error or not_found_error.
32250
+ */
32251
+ type: string;
31651
32252
  message: string;
31652
- hint: string;
32253
+ code: string;
32254
+ retryable: boolean;
32255
+ /**
32256
+ * How to recover, for computer failures.
32257
+ */
32258
+ hint?: string;
31653
32259
  };
32260
+ /**
32261
+ * Equals the X-Request-Id response header.
32262
+ */
32263
+ request_id: string;
31654
32264
  };
31655
32265
  /**
31656
- * Platform error with Computer code, message and hint
32266
+ * Platform error in the one /agent/v1 error body; computer failures add error.hint
31657
32267
  */
31658
32268
  500: {
32269
+ type: 'error';
31659
32270
  error: {
31660
- code: string;
32271
+ /**
32272
+ * Anthropic error type, such as invalid_request_error or not_found_error.
32273
+ */
32274
+ type: string;
31661
32275
  message: string;
31662
- hint: string;
32276
+ code: string;
32277
+ retryable: boolean;
32278
+ /**
32279
+ * How to recover, for computer failures.
32280
+ */
32281
+ hint?: string;
31663
32282
  };
32283
+ /**
32284
+ * Equals the X-Request-Id response header.
32285
+ */
32286
+ request_id: string;
31664
32287
  };
31665
32288
  /**
31666
- * Platform error with Computer code, message and hint
32289
+ * Platform error in the one /agent/v1 error body; computer failures add error.hint
31667
32290
  */
31668
32291
  503: {
32292
+ type: 'error';
31669
32293
  error: {
31670
- code: string;
32294
+ /**
32295
+ * Anthropic error type, such as invalid_request_error or not_found_error.
32296
+ */
32297
+ type: string;
31671
32298
  message: string;
31672
- hint: string;
32299
+ code: string;
32300
+ retryable: boolean;
32301
+ /**
32302
+ * How to recover, for computer failures.
32303
+ */
32304
+ hint?: string;
31673
32305
  };
32306
+ /**
32307
+ * Equals the X-Request-Id response header.
32308
+ */
32309
+ request_id: string;
31674
32310
  };
31675
32311
  };
31676
32312
  export type ComputersUpdateError = ComputersUpdateErrors[keyof ComputersUpdateErrors];
@@ -31735,94 +32371,211 @@ export type ComputersArchiveData = {
31735
32371
  };
31736
32372
  export type ComputersArchiveErrors = {
31737
32373
  /**
31738
- * Platform error with Computer code, message and hint
32374
+ * Platform error in the one /agent/v1 error body; computer failures add error.hint
31739
32375
  */
31740
32376
  400: {
32377
+ type: 'error';
31741
32378
  error: {
31742
- code: string;
32379
+ /**
32380
+ * Anthropic error type, such as invalid_request_error or not_found_error.
32381
+ */
32382
+ type: string;
31743
32383
  message: string;
31744
- hint: string;
32384
+ code: string;
32385
+ retryable: boolean;
32386
+ /**
32387
+ * How to recover, for computer failures.
32388
+ */
32389
+ hint?: string;
31745
32390
  };
32391
+ /**
32392
+ * Equals the X-Request-Id response header.
32393
+ */
32394
+ request_id: string;
31746
32395
  };
31747
32396
  /**
31748
- * Platform error with Computer code, message and hint
32397
+ * Platform error in the one /agent/v1 error body; computer failures add error.hint
31749
32398
  */
31750
32399
  401: {
32400
+ type: 'error';
31751
32401
  error: {
31752
- code: string;
32402
+ /**
32403
+ * Anthropic error type, such as invalid_request_error or not_found_error.
32404
+ */
32405
+ type: string;
31753
32406
  message: string;
31754
- hint: string;
32407
+ code: string;
32408
+ retryable: boolean;
32409
+ /**
32410
+ * How to recover, for computer failures.
32411
+ */
32412
+ hint?: string;
31755
32413
  };
32414
+ /**
32415
+ * Equals the X-Request-Id response header.
32416
+ */
32417
+ request_id: string;
31756
32418
  };
31757
32419
  /**
31758
- * Platform error with Computer code, message and hint
32420
+ * Platform error in the one /agent/v1 error body; computer failures add error.hint
31759
32421
  */
31760
32422
  403: {
32423
+ type: 'error';
31761
32424
  error: {
31762
- code: string;
32425
+ /**
32426
+ * Anthropic error type, such as invalid_request_error or not_found_error.
32427
+ */
32428
+ type: string;
31763
32429
  message: string;
31764
- hint: string;
32430
+ code: string;
32431
+ retryable: boolean;
32432
+ /**
32433
+ * How to recover, for computer failures.
32434
+ */
32435
+ hint?: string;
31765
32436
  };
32437
+ /**
32438
+ * Equals the X-Request-Id response header.
32439
+ */
32440
+ request_id: string;
31766
32441
  };
31767
32442
  /**
31768
32443
  * Computer or path not found; foreign computers are indistinguishable from absent computers.
31769
32444
  */
31770
32445
  404: {
32446
+ type: 'error';
31771
32447
  error: {
31772
- code: string;
32448
+ /**
32449
+ * Anthropic error type, such as invalid_request_error or not_found_error.
32450
+ */
32451
+ type: string;
31773
32452
  message: string;
31774
- hint: string;
32453
+ code: string;
32454
+ retryable: boolean;
32455
+ /**
32456
+ * How to recover, for computer failures.
32457
+ */
32458
+ hint?: string;
31775
32459
  };
32460
+ /**
32461
+ * Equals the X-Request-Id response header.
32462
+ */
32463
+ request_id: string;
31776
32464
  };
31777
32465
  /**
31778
- * Platform error with Computer code, message and hint
32466
+ * Platform error in the one /agent/v1 error body; computer failures add error.hint
31779
32467
  */
31780
32468
  409: {
32469
+ type: 'error';
31781
32470
  error: {
31782
- code: string;
32471
+ /**
32472
+ * Anthropic error type, such as invalid_request_error or not_found_error.
32473
+ */
32474
+ type: string;
31783
32475
  message: string;
31784
- hint: string;
32476
+ code: string;
32477
+ retryable: boolean;
32478
+ /**
32479
+ * How to recover, for computer failures.
32480
+ */
32481
+ hint?: string;
31785
32482
  };
32483
+ /**
32484
+ * Equals the X-Request-Id response header.
32485
+ */
32486
+ request_id: string;
31786
32487
  };
31787
32488
  /**
31788
- * Platform error with Computer code, message and hint
32489
+ * Platform error in the one /agent/v1 error body; computer failures add error.hint
31789
32490
  */
31790
32491
  413: {
32492
+ type: 'error';
31791
32493
  error: {
31792
- code: string;
32494
+ /**
32495
+ * Anthropic error type, such as invalid_request_error or not_found_error.
32496
+ */
32497
+ type: string;
31793
32498
  message: string;
31794
- hint: string;
32499
+ code: string;
32500
+ retryable: boolean;
32501
+ /**
32502
+ * How to recover, for computer failures.
32503
+ */
32504
+ hint?: string;
31795
32505
  };
32506
+ /**
32507
+ * Equals the X-Request-Id response header.
32508
+ */
32509
+ request_id: string;
31796
32510
  };
31797
32511
  /**
31798
- * Platform error with Computer code, message and hint
32512
+ * Platform error in the one /agent/v1 error body; computer failures add error.hint
31799
32513
  */
31800
32514
  429: {
32515
+ type: 'error';
31801
32516
  error: {
31802
- code: string;
32517
+ /**
32518
+ * Anthropic error type, such as invalid_request_error or not_found_error.
32519
+ */
32520
+ type: string;
31803
32521
  message: string;
31804
- hint: string;
32522
+ code: string;
32523
+ retryable: boolean;
32524
+ /**
32525
+ * How to recover, for computer failures.
32526
+ */
32527
+ hint?: string;
31805
32528
  };
32529
+ /**
32530
+ * Equals the X-Request-Id response header.
32531
+ */
32532
+ request_id: string;
31806
32533
  };
31807
32534
  /**
31808
- * Platform error with Computer code, message and hint
32535
+ * Platform error in the one /agent/v1 error body; computer failures add error.hint
31809
32536
  */
31810
32537
  500: {
32538
+ type: 'error';
31811
32539
  error: {
31812
- code: string;
32540
+ /**
32541
+ * Anthropic error type, such as invalid_request_error or not_found_error.
32542
+ */
32543
+ type: string;
31813
32544
  message: string;
31814
- hint: string;
32545
+ code: string;
32546
+ retryable: boolean;
32547
+ /**
32548
+ * How to recover, for computer failures.
32549
+ */
32550
+ hint?: string;
31815
32551
  };
32552
+ /**
32553
+ * Equals the X-Request-Id response header.
32554
+ */
32555
+ request_id: string;
31816
32556
  };
31817
32557
  /**
31818
- * Platform error with Computer code, message and hint
32558
+ * Platform error in the one /agent/v1 error body; computer failures add error.hint
31819
32559
  */
31820
32560
  503: {
32561
+ type: 'error';
31821
32562
  error: {
31822
- code: string;
32563
+ /**
32564
+ * Anthropic error type, such as invalid_request_error or not_found_error.
32565
+ */
32566
+ type: string;
31823
32567
  message: string;
31824
- hint: string;
32568
+ code: string;
32569
+ retryable: boolean;
32570
+ /**
32571
+ * How to recover, for computer failures.
32572
+ */
32573
+ hint?: string;
31825
32574
  };
32575
+ /**
32576
+ * Equals the X-Request-Id response header.
32577
+ */
32578
+ request_id: string;
31826
32579
  };
31827
32580
  };
31828
32581
  export type ComputersArchiveError = ComputersArchiveErrors[keyof ComputersArchiveErrors];
@@ -31895,94 +32648,211 @@ export type ComputersAttachmentsCreateData = {
31895
32648
  };
31896
32649
  export type ComputersAttachmentsCreateErrors = {
31897
32650
  /**
31898
- * Platform error with Computer code, message and hint
32651
+ * Platform error in the one /agent/v1 error body; computer failures add error.hint
31899
32652
  */
31900
32653
  400: {
32654
+ type: 'error';
31901
32655
  error: {
31902
- code: string;
32656
+ /**
32657
+ * Anthropic error type, such as invalid_request_error or not_found_error.
32658
+ */
32659
+ type: string;
31903
32660
  message: string;
31904
- hint: string;
32661
+ code: string;
32662
+ retryable: boolean;
32663
+ /**
32664
+ * How to recover, for computer failures.
32665
+ */
32666
+ hint?: string;
31905
32667
  };
32668
+ /**
32669
+ * Equals the X-Request-Id response header.
32670
+ */
32671
+ request_id: string;
31906
32672
  };
31907
32673
  /**
31908
- * Platform error with Computer code, message and hint
32674
+ * Platform error in the one /agent/v1 error body; computer failures add error.hint
31909
32675
  */
31910
32676
  401: {
32677
+ type: 'error';
31911
32678
  error: {
31912
- code: string;
32679
+ /**
32680
+ * Anthropic error type, such as invalid_request_error or not_found_error.
32681
+ */
32682
+ type: string;
31913
32683
  message: string;
31914
- hint: string;
32684
+ code: string;
32685
+ retryable: boolean;
32686
+ /**
32687
+ * How to recover, for computer failures.
32688
+ */
32689
+ hint?: string;
31915
32690
  };
32691
+ /**
32692
+ * Equals the X-Request-Id response header.
32693
+ */
32694
+ request_id: string;
31916
32695
  };
31917
32696
  /**
31918
- * Platform error with Computer code, message and hint
32697
+ * Platform error in the one /agent/v1 error body; computer failures add error.hint
31919
32698
  */
31920
32699
  403: {
32700
+ type: 'error';
31921
32701
  error: {
31922
- code: string;
32702
+ /**
32703
+ * Anthropic error type, such as invalid_request_error or not_found_error.
32704
+ */
32705
+ type: string;
31923
32706
  message: string;
31924
- hint: string;
32707
+ code: string;
32708
+ retryable: boolean;
32709
+ /**
32710
+ * How to recover, for computer failures.
32711
+ */
32712
+ hint?: string;
31925
32713
  };
32714
+ /**
32715
+ * Equals the X-Request-Id response header.
32716
+ */
32717
+ request_id: string;
31926
32718
  };
31927
32719
  /**
31928
32720
  * Computer or path not found; foreign computers are indistinguishable from absent computers.
31929
32721
  */
31930
32722
  404: {
32723
+ type: 'error';
31931
32724
  error: {
31932
- code: string;
32725
+ /**
32726
+ * Anthropic error type, such as invalid_request_error or not_found_error.
32727
+ */
32728
+ type: string;
31933
32729
  message: string;
31934
- hint: string;
32730
+ code: string;
32731
+ retryable: boolean;
32732
+ /**
32733
+ * How to recover, for computer failures.
32734
+ */
32735
+ hint?: string;
31935
32736
  };
32737
+ /**
32738
+ * Equals the X-Request-Id response header.
32739
+ */
32740
+ request_id: string;
31936
32741
  };
31937
32742
  /**
31938
- * Platform error with Computer code, message and hint
32743
+ * Platform error in the one /agent/v1 error body; computer failures add error.hint
31939
32744
  */
31940
32745
  409: {
32746
+ type: 'error';
31941
32747
  error: {
31942
- code: string;
32748
+ /**
32749
+ * Anthropic error type, such as invalid_request_error or not_found_error.
32750
+ */
32751
+ type: string;
31943
32752
  message: string;
31944
- hint: string;
32753
+ code: string;
32754
+ retryable: boolean;
32755
+ /**
32756
+ * How to recover, for computer failures.
32757
+ */
32758
+ hint?: string;
31945
32759
  };
32760
+ /**
32761
+ * Equals the X-Request-Id response header.
32762
+ */
32763
+ request_id: string;
31946
32764
  };
31947
32765
  /**
31948
- * Platform error with Computer code, message and hint
32766
+ * Platform error in the one /agent/v1 error body; computer failures add error.hint
31949
32767
  */
31950
32768
  413: {
32769
+ type: 'error';
31951
32770
  error: {
31952
- code: string;
32771
+ /**
32772
+ * Anthropic error type, such as invalid_request_error or not_found_error.
32773
+ */
32774
+ type: string;
31953
32775
  message: string;
31954
- hint: string;
32776
+ code: string;
32777
+ retryable: boolean;
32778
+ /**
32779
+ * How to recover, for computer failures.
32780
+ */
32781
+ hint?: string;
31955
32782
  };
32783
+ /**
32784
+ * Equals the X-Request-Id response header.
32785
+ */
32786
+ request_id: string;
31956
32787
  };
31957
32788
  /**
31958
- * Platform error with Computer code, message and hint
32789
+ * Platform error in the one /agent/v1 error body; computer failures add error.hint
31959
32790
  */
31960
32791
  429: {
32792
+ type: 'error';
31961
32793
  error: {
31962
- code: string;
32794
+ /**
32795
+ * Anthropic error type, such as invalid_request_error or not_found_error.
32796
+ */
32797
+ type: string;
31963
32798
  message: string;
31964
- hint: string;
32799
+ code: string;
32800
+ retryable: boolean;
32801
+ /**
32802
+ * How to recover, for computer failures.
32803
+ */
32804
+ hint?: string;
31965
32805
  };
32806
+ /**
32807
+ * Equals the X-Request-Id response header.
32808
+ */
32809
+ request_id: string;
31966
32810
  };
31967
32811
  /**
31968
- * Platform error with Computer code, message and hint
32812
+ * Platform error in the one /agent/v1 error body; computer failures add error.hint
31969
32813
  */
31970
32814
  500: {
32815
+ type: 'error';
31971
32816
  error: {
31972
- code: string;
32817
+ /**
32818
+ * Anthropic error type, such as invalid_request_error or not_found_error.
32819
+ */
32820
+ type: string;
31973
32821
  message: string;
31974
- hint: string;
32822
+ code: string;
32823
+ retryable: boolean;
32824
+ /**
32825
+ * How to recover, for computer failures.
32826
+ */
32827
+ hint?: string;
31975
32828
  };
32829
+ /**
32830
+ * Equals the X-Request-Id response header.
32831
+ */
32832
+ request_id: string;
31976
32833
  };
31977
32834
  /**
31978
- * Platform error with Computer code, message and hint
32835
+ * Platform error in the one /agent/v1 error body; computer failures add error.hint
31979
32836
  */
31980
32837
  503: {
32838
+ type: 'error';
31981
32839
  error: {
31982
- code: string;
32840
+ /**
32841
+ * Anthropic error type, such as invalid_request_error or not_found_error.
32842
+ */
32843
+ type: string;
31983
32844
  message: string;
31984
- hint: string;
32845
+ code: string;
32846
+ retryable: boolean;
32847
+ /**
32848
+ * How to recover, for computer failures.
32849
+ */
32850
+ hint?: string;
31985
32851
  };
32852
+ /**
32853
+ * Equals the X-Request-Id response header.
32854
+ */
32855
+ request_id: string;
31986
32856
  };
31987
32857
  };
31988
32858
  export type ComputersAttachmentsCreateError = ComputersAttachmentsCreateErrors[keyof ComputersAttachmentsCreateErrors];
@@ -32044,94 +32914,211 @@ export type ComputersFilesListData = {
32044
32914
  };
32045
32915
  export type ComputersFilesListErrors = {
32046
32916
  /**
32047
- * Platform error with Computer code, message and hint
32917
+ * Platform error in the one /agent/v1 error body; computer failures add error.hint
32048
32918
  */
32049
32919
  400: {
32920
+ type: 'error';
32050
32921
  error: {
32051
- code: string;
32922
+ /**
32923
+ * Anthropic error type, such as invalid_request_error or not_found_error.
32924
+ */
32925
+ type: string;
32052
32926
  message: string;
32053
- hint: string;
32927
+ code: string;
32928
+ retryable: boolean;
32929
+ /**
32930
+ * How to recover, for computer failures.
32931
+ */
32932
+ hint?: string;
32054
32933
  };
32934
+ /**
32935
+ * Equals the X-Request-Id response header.
32936
+ */
32937
+ request_id: string;
32055
32938
  };
32056
32939
  /**
32057
- * Platform error with Computer code, message and hint
32940
+ * Platform error in the one /agent/v1 error body; computer failures add error.hint
32058
32941
  */
32059
32942
  401: {
32943
+ type: 'error';
32060
32944
  error: {
32061
- code: string;
32945
+ /**
32946
+ * Anthropic error type, such as invalid_request_error or not_found_error.
32947
+ */
32948
+ type: string;
32062
32949
  message: string;
32063
- hint: string;
32950
+ code: string;
32951
+ retryable: boolean;
32952
+ /**
32953
+ * How to recover, for computer failures.
32954
+ */
32955
+ hint?: string;
32064
32956
  };
32957
+ /**
32958
+ * Equals the X-Request-Id response header.
32959
+ */
32960
+ request_id: string;
32065
32961
  };
32066
32962
  /**
32067
- * Platform error with Computer code, message and hint
32963
+ * Platform error in the one /agent/v1 error body; computer failures add error.hint
32068
32964
  */
32069
32965
  403: {
32966
+ type: 'error';
32070
32967
  error: {
32071
- code: string;
32968
+ /**
32969
+ * Anthropic error type, such as invalid_request_error or not_found_error.
32970
+ */
32971
+ type: string;
32072
32972
  message: string;
32073
- hint: string;
32973
+ code: string;
32974
+ retryable: boolean;
32975
+ /**
32976
+ * How to recover, for computer failures.
32977
+ */
32978
+ hint?: string;
32074
32979
  };
32980
+ /**
32981
+ * Equals the X-Request-Id response header.
32982
+ */
32983
+ request_id: string;
32075
32984
  };
32076
32985
  /**
32077
32986
  * Computer or path not found; foreign computers are indistinguishable from absent computers.
32078
32987
  */
32079
32988
  404: {
32989
+ type: 'error';
32080
32990
  error: {
32081
- code: string;
32991
+ /**
32992
+ * Anthropic error type, such as invalid_request_error or not_found_error.
32993
+ */
32994
+ type: string;
32082
32995
  message: string;
32083
- hint: string;
32996
+ code: string;
32997
+ retryable: boolean;
32998
+ /**
32999
+ * How to recover, for computer failures.
33000
+ */
33001
+ hint?: string;
32084
33002
  };
33003
+ /**
33004
+ * Equals the X-Request-Id response header.
33005
+ */
33006
+ request_id: string;
32085
33007
  };
32086
33008
  /**
32087
- * Platform error with Computer code, message and hint
33009
+ * Platform error in the one /agent/v1 error body; computer failures add error.hint
32088
33010
  */
32089
33011
  409: {
33012
+ type: 'error';
32090
33013
  error: {
32091
- code: string;
33014
+ /**
33015
+ * Anthropic error type, such as invalid_request_error or not_found_error.
33016
+ */
33017
+ type: string;
32092
33018
  message: string;
32093
- hint: string;
33019
+ code: string;
33020
+ retryable: boolean;
33021
+ /**
33022
+ * How to recover, for computer failures.
33023
+ */
33024
+ hint?: string;
32094
33025
  };
33026
+ /**
33027
+ * Equals the X-Request-Id response header.
33028
+ */
33029
+ request_id: string;
32095
33030
  };
32096
33031
  /**
32097
- * Platform error with Computer code, message and hint
33032
+ * Platform error in the one /agent/v1 error body; computer failures add error.hint
32098
33033
  */
32099
33034
  413: {
33035
+ type: 'error';
32100
33036
  error: {
32101
- code: string;
33037
+ /**
33038
+ * Anthropic error type, such as invalid_request_error or not_found_error.
33039
+ */
33040
+ type: string;
32102
33041
  message: string;
32103
- hint: string;
33042
+ code: string;
33043
+ retryable: boolean;
33044
+ /**
33045
+ * How to recover, for computer failures.
33046
+ */
33047
+ hint?: string;
32104
33048
  };
33049
+ /**
33050
+ * Equals the X-Request-Id response header.
33051
+ */
33052
+ request_id: string;
32105
33053
  };
32106
33054
  /**
32107
- * Platform error with Computer code, message and hint
33055
+ * Platform error in the one /agent/v1 error body; computer failures add error.hint
32108
33056
  */
32109
33057
  429: {
33058
+ type: 'error';
32110
33059
  error: {
32111
- code: string;
33060
+ /**
33061
+ * Anthropic error type, such as invalid_request_error or not_found_error.
33062
+ */
33063
+ type: string;
32112
33064
  message: string;
32113
- hint: string;
33065
+ code: string;
33066
+ retryable: boolean;
33067
+ /**
33068
+ * How to recover, for computer failures.
33069
+ */
33070
+ hint?: string;
32114
33071
  };
33072
+ /**
33073
+ * Equals the X-Request-Id response header.
33074
+ */
33075
+ request_id: string;
32115
33076
  };
32116
33077
  /**
32117
- * Platform error with Computer code, message and hint
33078
+ * Platform error in the one /agent/v1 error body; computer failures add error.hint
32118
33079
  */
32119
33080
  500: {
33081
+ type: 'error';
32120
33082
  error: {
32121
- code: string;
33083
+ /**
33084
+ * Anthropic error type, such as invalid_request_error or not_found_error.
33085
+ */
33086
+ type: string;
32122
33087
  message: string;
32123
- hint: string;
33088
+ code: string;
33089
+ retryable: boolean;
33090
+ /**
33091
+ * How to recover, for computer failures.
33092
+ */
33093
+ hint?: string;
32124
33094
  };
33095
+ /**
33096
+ * Equals the X-Request-Id response header.
33097
+ */
33098
+ request_id: string;
32125
33099
  };
32126
33100
  /**
32127
- * Platform error with Computer code, message and hint
33101
+ * Platform error in the one /agent/v1 error body; computer failures add error.hint
32128
33102
  */
32129
33103
  503: {
33104
+ type: 'error';
32130
33105
  error: {
32131
- code: string;
33106
+ /**
33107
+ * Anthropic error type, such as invalid_request_error or not_found_error.
33108
+ */
33109
+ type: string;
32132
33110
  message: string;
32133
- hint: string;
33111
+ code: string;
33112
+ retryable: boolean;
33113
+ /**
33114
+ * How to recover, for computer failures.
33115
+ */
33116
+ hint?: string;
32134
33117
  };
33118
+ /**
33119
+ * Equals the X-Request-Id response header.
33120
+ */
33121
+ request_id: string;
32135
33122
  };
32136
33123
  };
32137
33124
  export type ComputersFilesListError = ComputersFilesListErrors[keyof ComputersFilesListErrors];
@@ -32216,104 +33203,234 @@ export type ComputersFilesContentData = {
32216
33203
  };
32217
33204
  export type ComputersFilesContentErrors = {
32218
33205
  /**
32219
- * Platform error with Computer code, message and hint
33206
+ * Platform error in the one /agent/v1 error body; computer failures add error.hint
32220
33207
  */
32221
33208
  400: {
33209
+ type: 'error';
32222
33210
  error: {
32223
- code: string;
33211
+ /**
33212
+ * Anthropic error type, such as invalid_request_error or not_found_error.
33213
+ */
33214
+ type: string;
32224
33215
  message: string;
32225
- hint: string;
33216
+ code: string;
33217
+ retryable: boolean;
33218
+ /**
33219
+ * How to recover, for computer failures.
33220
+ */
33221
+ hint?: string;
32226
33222
  };
33223
+ /**
33224
+ * Equals the X-Request-Id response header.
33225
+ */
33226
+ request_id: string;
32227
33227
  };
32228
33228
  /**
32229
- * Platform error with Computer code, message and hint
33229
+ * Platform error in the one /agent/v1 error body; computer failures add error.hint
32230
33230
  */
32231
33231
  401: {
33232
+ type: 'error';
32232
33233
  error: {
32233
- code: string;
33234
+ /**
33235
+ * Anthropic error type, such as invalid_request_error or not_found_error.
33236
+ */
33237
+ type: string;
32234
33238
  message: string;
32235
- hint: string;
33239
+ code: string;
33240
+ retryable: boolean;
33241
+ /**
33242
+ * How to recover, for computer failures.
33243
+ */
33244
+ hint?: string;
32236
33245
  };
33246
+ /**
33247
+ * Equals the X-Request-Id response header.
33248
+ */
33249
+ request_id: string;
32237
33250
  };
32238
33251
  /**
32239
- * Platform error with Computer code, message and hint
33252
+ * Platform error in the one /agent/v1 error body; computer failures add error.hint
32240
33253
  */
32241
33254
  403: {
33255
+ type: 'error';
32242
33256
  error: {
32243
- code: string;
33257
+ /**
33258
+ * Anthropic error type, such as invalid_request_error or not_found_error.
33259
+ */
33260
+ type: string;
32244
33261
  message: string;
32245
- hint: string;
33262
+ code: string;
33263
+ retryable: boolean;
33264
+ /**
33265
+ * How to recover, for computer failures.
33266
+ */
33267
+ hint?: string;
32246
33268
  };
33269
+ /**
33270
+ * Equals the X-Request-Id response header.
33271
+ */
33272
+ request_id: string;
32247
33273
  };
32248
33274
  /**
32249
33275
  * Computer or path not found; foreign computers are indistinguishable from absent computers.
32250
33276
  */
32251
33277
  404: {
33278
+ type: 'error';
32252
33279
  error: {
32253
- code: string;
33280
+ /**
33281
+ * Anthropic error type, such as invalid_request_error or not_found_error.
33282
+ */
33283
+ type: string;
32254
33284
  message: string;
32255
- hint: string;
33285
+ code: string;
33286
+ retryable: boolean;
33287
+ /**
33288
+ * How to recover, for computer failures.
33289
+ */
33290
+ hint?: string;
32256
33291
  };
33292
+ /**
33293
+ * Equals the X-Request-Id response header.
33294
+ */
33295
+ request_id: string;
32257
33296
  };
32258
33297
  /**
32259
- * Platform error with Computer code, message and hint
33298
+ * Platform error in the one /agent/v1 error body; computer failures add error.hint
32260
33299
  */
32261
33300
  409: {
33301
+ type: 'error';
32262
33302
  error: {
32263
- code: string;
33303
+ /**
33304
+ * Anthropic error type, such as invalid_request_error or not_found_error.
33305
+ */
33306
+ type: string;
32264
33307
  message: string;
32265
- hint: string;
33308
+ code: string;
33309
+ retryable: boolean;
33310
+ /**
33311
+ * How to recover, for computer failures.
33312
+ */
33313
+ hint?: string;
32266
33314
  };
33315
+ /**
33316
+ * Equals the X-Request-Id response header.
33317
+ */
33318
+ request_id: string;
32267
33319
  };
32268
33320
  /**
32269
- * Platform error with Computer code, message and hint
33321
+ * Platform error in the one /agent/v1 error body; computer failures add error.hint
32270
33322
  */
32271
33323
  413: {
33324
+ type: 'error';
32272
33325
  error: {
32273
- code: string;
33326
+ /**
33327
+ * Anthropic error type, such as invalid_request_error or not_found_error.
33328
+ */
33329
+ type: string;
32274
33330
  message: string;
32275
- hint: string;
33331
+ code: string;
33332
+ retryable: boolean;
33333
+ /**
33334
+ * How to recover, for computer failures.
33335
+ */
33336
+ hint?: string;
32276
33337
  };
33338
+ /**
33339
+ * Equals the X-Request-Id response header.
33340
+ */
33341
+ request_id: string;
32277
33342
  };
32278
33343
  /**
32279
33344
  * Range unavailable
32280
33345
  */
32281
33346
  416: {
33347
+ type: 'error';
32282
33348
  error: {
32283
- code: string;
33349
+ /**
33350
+ * Anthropic error type, such as invalid_request_error or not_found_error.
33351
+ */
33352
+ type: string;
32284
33353
  message: string;
32285
- hint: string;
33354
+ code: string;
33355
+ retryable: boolean;
33356
+ /**
33357
+ * How to recover, for computer failures.
33358
+ */
33359
+ hint?: string;
32286
33360
  };
33361
+ /**
33362
+ * Equals the X-Request-Id response header.
33363
+ */
33364
+ request_id: string;
32287
33365
  };
32288
33366
  /**
32289
- * Platform error with Computer code, message and hint
33367
+ * Platform error in the one /agent/v1 error body; computer failures add error.hint
32290
33368
  */
32291
33369
  429: {
33370
+ type: 'error';
32292
33371
  error: {
32293
- code: string;
33372
+ /**
33373
+ * Anthropic error type, such as invalid_request_error or not_found_error.
33374
+ */
33375
+ type: string;
32294
33376
  message: string;
32295
- hint: string;
33377
+ code: string;
33378
+ retryable: boolean;
33379
+ /**
33380
+ * How to recover, for computer failures.
33381
+ */
33382
+ hint?: string;
32296
33383
  };
33384
+ /**
33385
+ * Equals the X-Request-Id response header.
33386
+ */
33387
+ request_id: string;
32297
33388
  };
32298
33389
  /**
32299
- * Platform error with Computer code, message and hint
33390
+ * Platform error in the one /agent/v1 error body; computer failures add error.hint
32300
33391
  */
32301
33392
  500: {
33393
+ type: 'error';
32302
33394
  error: {
32303
- code: string;
33395
+ /**
33396
+ * Anthropic error type, such as invalid_request_error or not_found_error.
33397
+ */
33398
+ type: string;
32304
33399
  message: string;
32305
- hint: string;
33400
+ code: string;
33401
+ retryable: boolean;
33402
+ /**
33403
+ * How to recover, for computer failures.
33404
+ */
33405
+ hint?: string;
32306
33406
  };
33407
+ /**
33408
+ * Equals the X-Request-Id response header.
33409
+ */
33410
+ request_id: string;
32307
33411
  };
32308
33412
  /**
32309
- * Platform error with Computer code, message and hint
33413
+ * Platform error in the one /agent/v1 error body; computer failures add error.hint
32310
33414
  */
32311
33415
  503: {
33416
+ type: 'error';
32312
33417
  error: {
32313
- code: string;
33418
+ /**
33419
+ * Anthropic error type, such as invalid_request_error or not_found_error.
33420
+ */
33421
+ type: string;
32314
33422
  message: string;
32315
- hint: string;
33423
+ code: string;
33424
+ retryable: boolean;
33425
+ /**
33426
+ * How to recover, for computer failures.
33427
+ */
33428
+ hint?: string;
32316
33429
  };
33430
+ /**
33431
+ * Equals the X-Request-Id response header.
33432
+ */
33433
+ request_id: string;
32317
33434
  };
32318
33435
  };
32319
33436
  export type ComputersFilesContentError = ComputersFilesContentErrors[keyof ComputersFilesContentErrors];
@@ -32349,91 +33466,208 @@ export type ConnectComputerErrors = {
32349
33466
  * INVALID_PARAMS: need must be light or heavy; unknown fields and non-object JSON are rejected. Correct the request body.
32350
33467
  */
32351
33468
  400: {
33469
+ type: 'error';
32352
33470
  error: {
32353
- code: string;
33471
+ /**
33472
+ * Anthropic error type, such as invalid_request_error or not_found_error.
33473
+ */
33474
+ type: string;
32354
33475
  message: string;
32355
- hint: string;
33476
+ code: string;
33477
+ retryable: boolean;
33478
+ /**
33479
+ * How to recover, for computer failures.
33480
+ */
33481
+ hint?: string;
32356
33482
  };
33483
+ /**
33484
+ * Equals the X-Request-Id response header.
33485
+ */
33486
+ request_id: string;
32357
33487
  };
32358
33488
  /**
32359
- * Platform error with Computer code, message and hint
33489
+ * Platform error in the one /agent/v1 error body; computer failures add error.hint
32360
33490
  */
32361
33491
  401: {
33492
+ type: 'error';
32362
33493
  error: {
32363
- code: string;
33494
+ /**
33495
+ * Anthropic error type, such as invalid_request_error or not_found_error.
33496
+ */
33497
+ type: string;
32364
33498
  message: string;
32365
- hint: string;
33499
+ code: string;
33500
+ retryable: boolean;
33501
+ /**
33502
+ * How to recover, for computer failures.
33503
+ */
33504
+ hint?: string;
32366
33505
  };
33506
+ /**
33507
+ * Equals the X-Request-Id response header.
33508
+ */
33509
+ request_id: string;
32367
33510
  };
32368
33511
  /**
32369
- * Platform error with Computer code, message and hint
33512
+ * Platform error in the one /agent/v1 error body; computer failures add error.hint
32370
33513
  */
32371
33514
  403: {
33515
+ type: 'error';
32372
33516
  error: {
32373
- code: string;
33517
+ /**
33518
+ * Anthropic error type, such as invalid_request_error or not_found_error.
33519
+ */
33520
+ type: string;
32374
33521
  message: string;
32375
- hint: string;
33522
+ code: string;
33523
+ retryable: boolean;
33524
+ /**
33525
+ * How to recover, for computer failures.
33526
+ */
33527
+ hint?: string;
32376
33528
  };
33529
+ /**
33530
+ * Equals the X-Request-Id response header.
33531
+ */
33532
+ request_id: string;
32377
33533
  };
32378
33534
  /**
32379
33535
  * Computer or path not found; foreign computers are indistinguishable from absent computers.
32380
33536
  */
32381
33537
  404: {
33538
+ type: 'error';
32382
33539
  error: {
32383
- code: string;
33540
+ /**
33541
+ * Anthropic error type, such as invalid_request_error or not_found_error.
33542
+ */
33543
+ type: string;
32384
33544
  message: string;
32385
- hint: string;
33545
+ code: string;
33546
+ retryable: boolean;
33547
+ /**
33548
+ * How to recover, for computer failures.
33549
+ */
33550
+ hint?: string;
32386
33551
  };
33552
+ /**
33553
+ * Equals the X-Request-Id response header.
33554
+ */
33555
+ request_id: string;
32387
33556
  };
32388
33557
  /**
32389
- * Platform error with Computer code, message and hint
33558
+ * Platform error in the one /agent/v1 error body; computer failures add error.hint
32390
33559
  */
32391
33560
  409: {
33561
+ type: 'error';
32392
33562
  error: {
32393
- code: string;
33563
+ /**
33564
+ * Anthropic error type, such as invalid_request_error or not_found_error.
33565
+ */
33566
+ type: string;
32394
33567
  message: string;
32395
- hint: string;
33568
+ code: string;
33569
+ retryable: boolean;
33570
+ /**
33571
+ * How to recover, for computer failures.
33572
+ */
33573
+ hint?: string;
32396
33574
  };
33575
+ /**
33576
+ * Equals the X-Request-Id response header.
33577
+ */
33578
+ request_id: string;
32397
33579
  };
32398
33580
  /**
32399
- * Platform error with Computer code, message and hint
33581
+ * Platform error in the one /agent/v1 error body; computer failures add error.hint
32400
33582
  */
32401
33583
  413: {
33584
+ type: 'error';
32402
33585
  error: {
32403
- code: string;
33586
+ /**
33587
+ * Anthropic error type, such as invalid_request_error or not_found_error.
33588
+ */
33589
+ type: string;
32404
33590
  message: string;
32405
- hint: string;
33591
+ code: string;
33592
+ retryable: boolean;
33593
+ /**
33594
+ * How to recover, for computer failures.
33595
+ */
33596
+ hint?: string;
32406
33597
  };
33598
+ /**
33599
+ * Equals the X-Request-Id response header.
33600
+ */
33601
+ request_id: string;
32407
33602
  };
32408
33603
  /**
32409
- * Platform error with Computer code, message and hint
33604
+ * Platform error in the one /agent/v1 error body; computer failures add error.hint
32410
33605
  */
32411
33606
  429: {
33607
+ type: 'error';
32412
33608
  error: {
32413
- code: string;
33609
+ /**
33610
+ * Anthropic error type, such as invalid_request_error or not_found_error.
33611
+ */
33612
+ type: string;
32414
33613
  message: string;
32415
- hint: string;
33614
+ code: string;
33615
+ retryable: boolean;
33616
+ /**
33617
+ * How to recover, for computer failures.
33618
+ */
33619
+ hint?: string;
32416
33620
  };
33621
+ /**
33622
+ * Equals the X-Request-Id response header.
33623
+ */
33624
+ request_id: string;
32417
33625
  };
32418
33626
  /**
32419
- * Platform error with Computer code, message and hint
33627
+ * Platform error in the one /agent/v1 error body; computer failures add error.hint
32420
33628
  */
32421
33629
  500: {
33630
+ type: 'error';
32422
33631
  error: {
32423
- code: string;
33632
+ /**
33633
+ * Anthropic error type, such as invalid_request_error or not_found_error.
33634
+ */
33635
+ type: string;
32424
33636
  message: string;
32425
- hint: string;
33637
+ code: string;
33638
+ retryable: boolean;
33639
+ /**
33640
+ * How to recover, for computer failures.
33641
+ */
33642
+ hint?: string;
32426
33643
  };
33644
+ /**
33645
+ * Equals the X-Request-Id response header.
33646
+ */
33647
+ request_id: string;
32427
33648
  };
32428
33649
  /**
32429
- * Platform error with Computer code, message and hint
33650
+ * Platform error in the one /agent/v1 error body; computer failures add error.hint
32430
33651
  */
32431
33652
  503: {
33653
+ type: 'error';
32432
33654
  error: {
32433
- code: string;
33655
+ /**
33656
+ * Anthropic error type, such as invalid_request_error or not_found_error.
33657
+ */
33658
+ type: string;
32434
33659
  message: string;
32435
- hint: string;
33660
+ code: string;
33661
+ retryable: boolean;
33662
+ /**
33663
+ * How to recover, for computer failures.
33664
+ */
33665
+ hint?: string;
32436
33666
  };
33667
+ /**
33668
+ * Equals the X-Request-Id response header.
33669
+ */
33670
+ request_id: string;
32437
33671
  };
32438
33672
  };
32439
33673
  export type ConnectComputerError = ConnectComputerErrors[keyof ConnectComputerErrors];
@@ -32486,94 +33720,211 @@ export type RenewComputerLeaseData = {
32486
33720
  };
32487
33721
  export type RenewComputerLeaseErrors = {
32488
33722
  /**
32489
- * Platform error with Computer code, message and hint
33723
+ * Platform error in the one /agent/v1 error body; computer failures add error.hint
32490
33724
  */
32491
33725
  400: {
33726
+ type: 'error';
32492
33727
  error: {
32493
- code: string;
33728
+ /**
33729
+ * Anthropic error type, such as invalid_request_error or not_found_error.
33730
+ */
33731
+ type: string;
32494
33732
  message: string;
32495
- hint: string;
33733
+ code: string;
33734
+ retryable: boolean;
33735
+ /**
33736
+ * How to recover, for computer failures.
33737
+ */
33738
+ hint?: string;
32496
33739
  };
33740
+ /**
33741
+ * Equals the X-Request-Id response header.
33742
+ */
33743
+ request_id: string;
32497
33744
  };
32498
33745
  /**
32499
- * Platform error with Computer code, message and hint
33746
+ * Platform error in the one /agent/v1 error body; computer failures add error.hint
32500
33747
  */
32501
33748
  401: {
33749
+ type: 'error';
32502
33750
  error: {
32503
- code: string;
33751
+ /**
33752
+ * Anthropic error type, such as invalid_request_error or not_found_error.
33753
+ */
33754
+ type: string;
32504
33755
  message: string;
32505
- hint: string;
33756
+ code: string;
33757
+ retryable: boolean;
33758
+ /**
33759
+ * How to recover, for computer failures.
33760
+ */
33761
+ hint?: string;
32506
33762
  };
33763
+ /**
33764
+ * Equals the X-Request-Id response header.
33765
+ */
33766
+ request_id: string;
32507
33767
  };
32508
33768
  /**
32509
- * Platform error with Computer code, message and hint
33769
+ * Platform error in the one /agent/v1 error body; computer failures add error.hint
32510
33770
  */
32511
33771
  403: {
33772
+ type: 'error';
32512
33773
  error: {
32513
- code: string;
33774
+ /**
33775
+ * Anthropic error type, such as invalid_request_error or not_found_error.
33776
+ */
33777
+ type: string;
32514
33778
  message: string;
32515
- hint: string;
33779
+ code: string;
33780
+ retryable: boolean;
33781
+ /**
33782
+ * How to recover, for computer failures.
33783
+ */
33784
+ hint?: string;
32516
33785
  };
33786
+ /**
33787
+ * Equals the X-Request-Id response header.
33788
+ */
33789
+ request_id: string;
32517
33790
  };
32518
33791
  /**
32519
33792
  * Computer or path not found; foreign computers are indistinguishable from absent computers.
32520
33793
  */
32521
33794
  404: {
33795
+ type: 'error';
32522
33796
  error: {
32523
- code: string;
33797
+ /**
33798
+ * Anthropic error type, such as invalid_request_error or not_found_error.
33799
+ */
33800
+ type: string;
32524
33801
  message: string;
32525
- hint: string;
33802
+ code: string;
33803
+ retryable: boolean;
33804
+ /**
33805
+ * How to recover, for computer failures.
33806
+ */
33807
+ hint?: string;
32526
33808
  };
33809
+ /**
33810
+ * Equals the X-Request-Id response header.
33811
+ */
33812
+ request_id: string;
32527
33813
  };
32528
33814
  /**
32529
- * Platform error with Computer code, message and hint
33815
+ * Platform error in the one /agent/v1 error body; computer failures add error.hint
32530
33816
  */
32531
33817
  409: {
33818
+ type: 'error';
32532
33819
  error: {
32533
- code: string;
33820
+ /**
33821
+ * Anthropic error type, such as invalid_request_error or not_found_error.
33822
+ */
33823
+ type: string;
32534
33824
  message: string;
32535
- hint: string;
33825
+ code: string;
33826
+ retryable: boolean;
33827
+ /**
33828
+ * How to recover, for computer failures.
33829
+ */
33830
+ hint?: string;
32536
33831
  };
33832
+ /**
33833
+ * Equals the X-Request-Id response header.
33834
+ */
33835
+ request_id: string;
32537
33836
  };
32538
33837
  /**
32539
- * Platform error with Computer code, message and hint
33838
+ * Platform error in the one /agent/v1 error body; computer failures add error.hint
32540
33839
  */
32541
33840
  413: {
33841
+ type: 'error';
32542
33842
  error: {
32543
- code: string;
33843
+ /**
33844
+ * Anthropic error type, such as invalid_request_error or not_found_error.
33845
+ */
33846
+ type: string;
32544
33847
  message: string;
32545
- hint: string;
33848
+ code: string;
33849
+ retryable: boolean;
33850
+ /**
33851
+ * How to recover, for computer failures.
33852
+ */
33853
+ hint?: string;
32546
33854
  };
33855
+ /**
33856
+ * Equals the X-Request-Id response header.
33857
+ */
33858
+ request_id: string;
32547
33859
  };
32548
33860
  /**
32549
- * Platform error with Computer code, message and hint
33861
+ * Platform error in the one /agent/v1 error body; computer failures add error.hint
32550
33862
  */
32551
33863
  429: {
33864
+ type: 'error';
32552
33865
  error: {
32553
- code: string;
33866
+ /**
33867
+ * Anthropic error type, such as invalid_request_error or not_found_error.
33868
+ */
33869
+ type: string;
32554
33870
  message: string;
32555
- hint: string;
33871
+ code: string;
33872
+ retryable: boolean;
33873
+ /**
33874
+ * How to recover, for computer failures.
33875
+ */
33876
+ hint?: string;
32556
33877
  };
33878
+ /**
33879
+ * Equals the X-Request-Id response header.
33880
+ */
33881
+ request_id: string;
32557
33882
  };
32558
33883
  /**
32559
- * Platform error with Computer code, message and hint
33884
+ * Platform error in the one /agent/v1 error body; computer failures add error.hint
32560
33885
  */
32561
33886
  500: {
33887
+ type: 'error';
32562
33888
  error: {
32563
- code: string;
33889
+ /**
33890
+ * Anthropic error type, such as invalid_request_error or not_found_error.
33891
+ */
33892
+ type: string;
32564
33893
  message: string;
32565
- hint: string;
33894
+ code: string;
33895
+ retryable: boolean;
33896
+ /**
33897
+ * How to recover, for computer failures.
33898
+ */
33899
+ hint?: string;
32566
33900
  };
33901
+ /**
33902
+ * Equals the X-Request-Id response header.
33903
+ */
33904
+ request_id: string;
32567
33905
  };
32568
33906
  /**
32569
- * Platform error with Computer code, message and hint
33907
+ * Platform error in the one /agent/v1 error body; computer failures add error.hint
32570
33908
  */
32571
33909
  503: {
33910
+ type: 'error';
32572
33911
  error: {
32573
- code: string;
33912
+ /**
33913
+ * Anthropic error type, such as invalid_request_error or not_found_error.
33914
+ */
33915
+ type: string;
32574
33916
  message: string;
32575
- hint: string;
33917
+ code: string;
33918
+ retryable: boolean;
33919
+ /**
33920
+ * How to recover, for computer failures.
33921
+ */
33922
+ hint?: string;
32576
33923
  };
33924
+ /**
33925
+ * Equals the X-Request-Id response header.
33926
+ */
33927
+ request_id: string;
32577
33928
  };
32578
33929
  };
32579
33930
  export type RenewComputerLeaseError = RenewComputerLeaseErrors[keyof RenewComputerLeaseErrors];
@@ -32610,94 +33961,211 @@ export type ReleaseComputerLeaseData = {
32610
33961
  };
32611
33962
  export type ReleaseComputerLeaseErrors = {
32612
33963
  /**
32613
- * Platform error with Computer code, message and hint
33964
+ * Platform error in the one /agent/v1 error body; computer failures add error.hint
32614
33965
  */
32615
33966
  400: {
33967
+ type: 'error';
32616
33968
  error: {
32617
- code: string;
33969
+ /**
33970
+ * Anthropic error type, such as invalid_request_error or not_found_error.
33971
+ */
33972
+ type: string;
32618
33973
  message: string;
32619
- hint: string;
33974
+ code: string;
33975
+ retryable: boolean;
33976
+ /**
33977
+ * How to recover, for computer failures.
33978
+ */
33979
+ hint?: string;
32620
33980
  };
33981
+ /**
33982
+ * Equals the X-Request-Id response header.
33983
+ */
33984
+ request_id: string;
32621
33985
  };
32622
33986
  /**
32623
- * Platform error with Computer code, message and hint
33987
+ * Platform error in the one /agent/v1 error body; computer failures add error.hint
32624
33988
  */
32625
33989
  401: {
33990
+ type: 'error';
32626
33991
  error: {
32627
- code: string;
33992
+ /**
33993
+ * Anthropic error type, such as invalid_request_error or not_found_error.
33994
+ */
33995
+ type: string;
32628
33996
  message: string;
32629
- hint: string;
33997
+ code: string;
33998
+ retryable: boolean;
33999
+ /**
34000
+ * How to recover, for computer failures.
34001
+ */
34002
+ hint?: string;
32630
34003
  };
34004
+ /**
34005
+ * Equals the X-Request-Id response header.
34006
+ */
34007
+ request_id: string;
32631
34008
  };
32632
34009
  /**
32633
- * Platform error with Computer code, message and hint
34010
+ * Platform error in the one /agent/v1 error body; computer failures add error.hint
32634
34011
  */
32635
34012
  403: {
34013
+ type: 'error';
32636
34014
  error: {
32637
- code: string;
34015
+ /**
34016
+ * Anthropic error type, such as invalid_request_error or not_found_error.
34017
+ */
34018
+ type: string;
32638
34019
  message: string;
32639
- hint: string;
34020
+ code: string;
34021
+ retryable: boolean;
34022
+ /**
34023
+ * How to recover, for computer failures.
34024
+ */
34025
+ hint?: string;
32640
34026
  };
34027
+ /**
34028
+ * Equals the X-Request-Id response header.
34029
+ */
34030
+ request_id: string;
32641
34031
  };
32642
34032
  /**
32643
34033
  * Computer or path not found; foreign computers are indistinguishable from absent computers.
32644
34034
  */
32645
34035
  404: {
34036
+ type: 'error';
32646
34037
  error: {
32647
- code: string;
34038
+ /**
34039
+ * Anthropic error type, such as invalid_request_error or not_found_error.
34040
+ */
34041
+ type: string;
32648
34042
  message: string;
32649
- hint: string;
34043
+ code: string;
34044
+ retryable: boolean;
34045
+ /**
34046
+ * How to recover, for computer failures.
34047
+ */
34048
+ hint?: string;
32650
34049
  };
34050
+ /**
34051
+ * Equals the X-Request-Id response header.
34052
+ */
34053
+ request_id: string;
32651
34054
  };
32652
34055
  /**
32653
- * Platform error with Computer code, message and hint
34056
+ * Platform error in the one /agent/v1 error body; computer failures add error.hint
32654
34057
  */
32655
34058
  409: {
34059
+ type: 'error';
32656
34060
  error: {
32657
- code: string;
34061
+ /**
34062
+ * Anthropic error type, such as invalid_request_error or not_found_error.
34063
+ */
34064
+ type: string;
32658
34065
  message: string;
32659
- hint: string;
34066
+ code: string;
34067
+ retryable: boolean;
34068
+ /**
34069
+ * How to recover, for computer failures.
34070
+ */
34071
+ hint?: string;
32660
34072
  };
34073
+ /**
34074
+ * Equals the X-Request-Id response header.
34075
+ */
34076
+ request_id: string;
32661
34077
  };
32662
34078
  /**
32663
- * Platform error with Computer code, message and hint
34079
+ * Platform error in the one /agent/v1 error body; computer failures add error.hint
32664
34080
  */
32665
34081
  413: {
34082
+ type: 'error';
32666
34083
  error: {
32667
- code: string;
34084
+ /**
34085
+ * Anthropic error type, such as invalid_request_error or not_found_error.
34086
+ */
34087
+ type: string;
32668
34088
  message: string;
32669
- hint: string;
34089
+ code: string;
34090
+ retryable: boolean;
34091
+ /**
34092
+ * How to recover, for computer failures.
34093
+ */
34094
+ hint?: string;
32670
34095
  };
34096
+ /**
34097
+ * Equals the X-Request-Id response header.
34098
+ */
34099
+ request_id: string;
32671
34100
  };
32672
34101
  /**
32673
- * Platform error with Computer code, message and hint
34102
+ * Platform error in the one /agent/v1 error body; computer failures add error.hint
32674
34103
  */
32675
34104
  429: {
34105
+ type: 'error';
32676
34106
  error: {
32677
- code: string;
34107
+ /**
34108
+ * Anthropic error type, such as invalid_request_error or not_found_error.
34109
+ */
34110
+ type: string;
32678
34111
  message: string;
32679
- hint: string;
34112
+ code: string;
34113
+ retryable: boolean;
34114
+ /**
34115
+ * How to recover, for computer failures.
34116
+ */
34117
+ hint?: string;
32680
34118
  };
34119
+ /**
34120
+ * Equals the X-Request-Id response header.
34121
+ */
34122
+ request_id: string;
32681
34123
  };
32682
34124
  /**
32683
- * Platform error with Computer code, message and hint
34125
+ * Platform error in the one /agent/v1 error body; computer failures add error.hint
32684
34126
  */
32685
34127
  500: {
34128
+ type: 'error';
32686
34129
  error: {
32687
- code: string;
34130
+ /**
34131
+ * Anthropic error type, such as invalid_request_error or not_found_error.
34132
+ */
34133
+ type: string;
32688
34134
  message: string;
32689
- hint: string;
34135
+ code: string;
34136
+ retryable: boolean;
34137
+ /**
34138
+ * How to recover, for computer failures.
34139
+ */
34140
+ hint?: string;
32690
34141
  };
34142
+ /**
34143
+ * Equals the X-Request-Id response header.
34144
+ */
34145
+ request_id: string;
32691
34146
  };
32692
34147
  /**
32693
- * Platform error with Computer code, message and hint
34148
+ * Platform error in the one /agent/v1 error body; computer failures add error.hint
32694
34149
  */
32695
34150
  503: {
34151
+ type: 'error';
32696
34152
  error: {
32697
- code: string;
34153
+ /**
34154
+ * Anthropic error type, such as invalid_request_error or not_found_error.
34155
+ */
34156
+ type: string;
32698
34157
  message: string;
32699
- hint: string;
34158
+ code: string;
34159
+ retryable: boolean;
34160
+ /**
34161
+ * How to recover, for computer failures.
34162
+ */
34163
+ hint?: string;
32700
34164
  };
34165
+ /**
34166
+ * Equals the X-Request-Id response header.
34167
+ */
34168
+ request_id: string;
32701
34169
  };
32702
34170
  };
32703
34171
  export type ReleaseComputerLeaseError = ReleaseComputerLeaseErrors[keyof ReleaseComputerLeaseErrors];
@@ -32731,7 +34199,7 @@ export type ListToolsetsErrors = {
32731
34199
  /**
32732
34200
  * 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
34201
  */
32734
- 403: unknown;
34202
+ 403: AgentError;
32735
34203
  /**
32736
34204
  * Toolset catalog unavailable
32737
34205
  */
@@ -32741,6 +34209,7 @@ export type ListToolsetsErrors = {
32741
34209
  */
32742
34210
  503: unknown;
32743
34211
  };
34212
+ export type ListToolsetsError = ListToolsetsErrors[keyof ListToolsetsErrors];
32744
34213
  export type ListToolsetsResponses = {
32745
34214
  /**
32746
34215
  * Available toolsets
@@ -32837,7 +34306,7 @@ export type GetSessionContextErrors = {
32837
34306
  /**
32838
34307
  * 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
34308
  */
32840
- 403: unknown;
34309
+ 403: AgentError;
32841
34310
  /**
32842
34311
  * Session not found
32843
34312
  */
@@ -32851,6 +34320,7 @@ export type GetSessionContextErrors = {
32851
34320
  */
32852
34321
  503: unknown;
32853
34322
  };
34323
+ export type GetSessionContextError = GetSessionContextErrors[keyof GetSessionContextErrors];
32854
34324
  export type GetSessionContextResponses = {
32855
34325
  /**
32856
34326
  * Current model and latest context measurement
@@ -33080,7 +34550,7 @@ export type ForkSessionErrors = {
33080
34550
  /**
33081
34551
  * 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
34552
  */
33083
- 403: unknown;
34553
+ 403: AgentError;
33084
34554
  /**
33085
34555
  * Session not found
33086
34556
  */
@@ -33098,6 +34568,7 @@ export type ForkSessionErrors = {
33098
34568
  */
33099
34569
  503: unknown;
33100
34570
  };
34571
+ export type ForkSessionError = ForkSessionErrors[keyof ForkSessionErrors];
33101
34572
  export type ForkSessionResponses = {
33102
34573
  /**
33103
34574
  * Forked session (same shape as session retrieval)
@@ -33426,7 +34897,7 @@ export type ForkSessionResponses = {
33426
34897
  */
33427
34898
  type: 'anthropic';
33428
34899
  /**
33429
- * Version of the skill; a string.
34900
+ * Version of the skill: omit or `latest` to follow the newest version at each new session; give a version id to pin it.
33430
34901
  */
33431
34902
  version: string;
33432
34903
  } | {
@@ -33439,7 +34910,7 @@ export type ForkSessionResponses = {
33439
34910
  */
33440
34911
  type: 'custom';
33441
34912
  /**
33442
- * Version of the skill; a string.
34913
+ * Version of the skill: omit or `latest` to follow the newest version at each new session; give a version id to pin it.
33443
34914
  */
33444
34915
  version: string;
33445
34916
  }>;
@@ -33894,7 +35365,7 @@ export type ForkSessionResponses = {
33894
35365
  */
33895
35366
  type: 'agent';
33896
35367
  /**
33897
- * The agent's current version. Starts at 1 and increments each time the agent is modified.
35368
+ * 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.
33898
35369
  */
33899
35370
  version: number;
33900
35371
  }>;
@@ -33920,7 +35391,7 @@ export type ForkSessionResponses = {
33920
35391
  */
33921
35392
  type: 'anthropic';
33922
35393
  /**
33923
- * Version of the skill; a string.
35394
+ * Version of the skill: omit or `latest` to follow the newest version at each new session; give a version id to pin it.
33924
35395
  */
33925
35396
  version: string;
33926
35397
  } | {
@@ -33933,7 +35404,7 @@ export type ForkSessionResponses = {
33933
35404
  */
33934
35405
  type: 'custom';
33935
35406
  /**
33936
- * Version of the skill; a string.
35407
+ * Version of the skill: omit or `latest` to follow the newest version at each new session; give a version id to pin it.
33937
35408
  */
33938
35409
  version: string;
33939
35410
  }>;
@@ -34388,7 +35859,7 @@ export type ForkSessionResponses = {
34388
35859
  */
34389
35860
  type: 'agent';
34390
35861
  /**
34391
- * The agent's current version. Starts at 1 and increments each time the agent is modified.
35862
+ * 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.
34392
35863
  */
34393
35864
  version: number;
34394
35865
  };
@@ -34789,7 +36260,7 @@ export type ListSessionBackgroundTasksErrors = {
34789
36260
  /**
34790
36261
  * 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
36262
  */
34792
- 403: unknown;
36263
+ 403: AgentError;
34793
36264
  /**
34794
36265
  * Session not found
34795
36266
  */
@@ -34803,6 +36274,7 @@ export type ListSessionBackgroundTasksErrors = {
34803
36274
  */
34804
36275
  503: unknown;
34805
36276
  };
36277
+ export type ListSessionBackgroundTasksError = ListSessionBackgroundTasksErrors[keyof ListSessionBackgroundTasksErrors];
34806
36278
  export type ListSessionBackgroundTasksResponses = {
34807
36279
  /**
34808
36280
  * Session background tasks
@@ -34892,7 +36364,7 @@ export type GetSessionBackgroundTaskOutputErrors = {
34892
36364
  /**
34893
36365
  * 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
36366
  */
34895
- 403: unknown;
36367
+ 403: AgentError;
34896
36368
  /**
34897
36369
  * Session not found
34898
36370
  */
@@ -34906,6 +36378,7 @@ export type GetSessionBackgroundTaskOutputErrors = {
34906
36378
  */
34907
36379
  503: unknown;
34908
36380
  };
36381
+ export type GetSessionBackgroundTaskOutputError = GetSessionBackgroundTaskOutputErrors[keyof GetSessionBackgroundTaskOutputErrors];
34909
36382
  export type GetSessionBackgroundTaskOutputResponses = {
34910
36383
  /**
34911
36384
  * Background task output byte page
@@ -34957,7 +36430,7 @@ export type StopSessionBackgroundTaskErrors = {
34957
36430
  /**
34958
36431
  * 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
36432
  */
34960
- 403: unknown;
36433
+ 403: AgentError;
34961
36434
  /**
34962
36435
  * Session not found
34963
36436
  */
@@ -34975,6 +36448,7 @@ export type StopSessionBackgroundTaskErrors = {
34975
36448
  */
34976
36449
  503: unknown;
34977
36450
  };
36451
+ export type StopSessionBackgroundTaskError = StopSessionBackgroundTaskErrors[keyof StopSessionBackgroundTaskErrors];
34978
36452
  export type StopSessionBackgroundTaskResponses = {
34979
36453
  /**
34980
36454
  * Current task after stop request
@@ -35057,7 +36531,7 @@ export type CompactSessionErrors = {
35057
36531
  /**
35058
36532
  * 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
36533
  */
35060
- 403: unknown;
36534
+ 403: AgentError;
35061
36535
  /**
35062
36536
  * Session not found
35063
36537
  */
@@ -35071,6 +36545,7 @@ export type CompactSessionErrors = {
35071
36545
  */
35072
36546
  503: unknown;
35073
36547
  };
36548
+ export type CompactSessionError = CompactSessionErrors[keyof CompactSessionErrors];
35074
36549
  export type CompactSessionResponses = {
35075
36550
  /**
35076
36551
  * Skipped, succeeded or failed compaction
@@ -35139,7 +36614,7 @@ export type GetSessionCompactionErrors = {
35139
36614
  /**
35140
36615
  * 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
36616
  */
35142
- 403: unknown;
36617
+ 403: AgentError;
35143
36618
  /**
35144
36619
  * Session or compaction operation not found
35145
36620
  */
@@ -35153,6 +36628,7 @@ export type GetSessionCompactionErrors = {
35153
36628
  */
35154
36629
  503: unknown;
35155
36630
  };
36631
+ export type GetSessionCompactionError = GetSessionCompactionErrors[keyof GetSessionCompactionErrors];
35156
36632
  export type GetSessionCompactionResponses = {
35157
36633
  /**
35158
36634
  * Compaction operation
@@ -35196,7 +36672,7 @@ export type ListSessionCompactionsErrors = {
35196
36672
  /**
35197
36673
  * 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
36674
  */
35199
- 403: unknown;
36675
+ 403: AgentError;
35200
36676
  /**
35201
36677
  * Session not found
35202
36678
  */
@@ -35210,6 +36686,7 @@ export type ListSessionCompactionsErrors = {
35210
36686
  */
35211
36687
  503: unknown;
35212
36688
  };
36689
+ export type ListSessionCompactionsError = ListSessionCompactionsErrors[keyof ListSessionCompactionsErrors];
35213
36690
  export type ListSessionCompactionsResponses = {
35214
36691
  /**
35215
36692
  * Compaction history
@@ -35295,7 +36772,7 @@ export type GetEmbedAppearanceErrors = {
35295
36772
  /**
35296
36773
  * 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
36774
  */
35298
- 403: unknown;
36775
+ 403: AgentError;
35299
36776
  /**
35300
36777
  * The credential's service agent is absent or archived; obtain credentials for an active service agent.
35301
36778
  */
@@ -35305,6 +36782,7 @@ export type GetEmbedAppearanceErrors = {
35305
36782
  */
35306
36783
  503: unknown;
35307
36784
  };
36785
+ export type GetEmbedAppearanceError = GetEmbedAppearanceErrors[keyof GetEmbedAppearanceErrors];
35308
36786
  export type GetEmbedAppearanceResponses = {
35309
36787
  /**
35310
36788
  * Saved Kit options, at most 8192 UTF-8 JSON bytes. Omitted groups use Kit defaults; an unconfigured agent returns an empty object.
@@ -43097,22 +44575,23 @@ export type SessionsDeleteData = {
43097
44575
  };
43098
44576
  export type SessionsDeleteErrors = {
43099
44577
  /**
43100
- * The API key is missing, invalid or revoked. Send a valid key as X-API-Key or as a Bearer token.
44578
+ * UNAUTHENTICATED (or INVALID_API_KEY, API_KEY_DISABLED, API_KEY_EXPIRED, INVALID_API_TOKEN, API_TOKEN_EXPIRED, API_TOKEN_REVOKED): the API key is missing, invalid or revoked. Send a valid key as X-API-Key or as a Bearer token.
43101
44579
  */
43102
- 401: unknown;
44580
+ 401: AgentError;
43103
44581
  /**
43104
44582
  * 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
44583
  */
43106
- 403: unknown;
44584
+ 403: AgentError;
43107
44585
  /**
43108
- * Session not found: the id does not exist in your organization. Take ids from sessions.list or sessions.create.
44586
+ * SESSION_NOT_FOUND: the id does not exist in your organization, or is malformed. Take ids from sessions.list or sessions.create.
43109
44587
  */
43110
- 404: unknown;
44588
+ 404: AgentError;
43111
44589
  /**
43112
44590
  * INVALID_STATE: the session is running. Interrupt it or wait until it is idle or terminated, then delete.
43113
44591
  */
43114
- 409: unknown;
44592
+ 409: AgentError;
43115
44593
  };
44594
+ export type SessionsDeleteError = SessionsDeleteErrors[keyof SessionsDeleteErrors];
43116
44595
  export type SessionsDeleteResponses = {
43117
44596
  /**
43118
44597
  * Successful response
@@ -43133,18 +44612,19 @@ export type SessionsRetrieveData = {
43133
44612
  };
43134
44613
  export type SessionsRetrieveErrors = {
43135
44614
  /**
43136
- * The API key is missing, invalid or revoked. Send a valid key as X-API-Key or as a Bearer token.
44615
+ * UNAUTHENTICATED (or INVALID_API_KEY, API_KEY_DISABLED, API_KEY_EXPIRED, INVALID_API_TOKEN, API_TOKEN_EXPIRED, API_TOKEN_REVOKED): the API key is missing, invalid or revoked. Send a valid key as X-API-Key or as a Bearer token.
43137
44616
  */
43138
- 401: unknown;
44617
+ 401: AgentError;
43139
44618
  /**
43140
44619
  * 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
44620
  */
43142
- 403: unknown;
44621
+ 403: AgentError;
43143
44622
  /**
43144
- * Session not found: the id does not exist in your organization. Take ids from sessions.list or sessions.create.
44623
+ * SESSION_NOT_FOUND: the id does not exist in your organization, or is malformed. Take ids from sessions.list or sessions.create.
43145
44624
  */
43146
- 404: unknown;
44625
+ 404: AgentError;
43147
44626
  };
44627
+ export type SessionsRetrieveError = SessionsRetrieveErrors[keyof SessionsRetrieveErrors];
43148
44628
  export type SessionsRetrieveResponses = {
43149
44629
  /**
43150
44630
  * Successful response
@@ -43231,7 +44711,7 @@ export type SessionsRetrieveResponses = {
43231
44711
  */
43232
44712
  type: 'agent';
43233
44713
  /**
43234
- * The agent's current version. Starts at 1 and increments each time the agent is modified.
44714
+ * 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.
43235
44715
  */
43236
44716
  version: number;
43237
44717
  };
@@ -43417,24 +44897,25 @@ export type SessionsUpdateErrors = {
43417
44897
  /**
43418
44898
  * 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
44899
  */
43420
- 400: unknown;
44900
+ 400: AgentError;
43421
44901
  /**
43422
- * The API key is missing, invalid or revoked. Send a valid key as X-API-Key or as a Bearer token.
44902
+ * UNAUTHENTICATED (or INVALID_API_KEY, API_KEY_DISABLED, API_KEY_EXPIRED, INVALID_API_TOKEN, API_TOKEN_EXPIRED, API_TOKEN_REVOKED): the API key is missing, invalid or revoked. Send a valid key as X-API-Key or as a Bearer token.
43423
44903
  */
43424
- 401: unknown;
44904
+ 401: AgentError;
43425
44905
  /**
43426
44906
  * 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
44907
  */
43428
- 403: unknown;
44908
+ 403: AgentError;
43429
44909
  /**
43430
- * Session not found: the id does not exist in your organization. Take ids from sessions.list or sessions.create.
44910
+ * SESSION_NOT_FOUND: the id does not exist in your organization, or is malformed. Take ids from sessions.list or sessions.create.
43431
44911
  */
43432
- 404: unknown;
44912
+ 404: AgentError;
43433
44913
  /**
43434
- * Session is archived and cannot be updated.
44914
+ * SESSION_ARCHIVED: the session is archived and cannot be updated.
43435
44915
  */
43436
- 409: unknown;
44916
+ 409: AgentError;
43437
44917
  };
44918
+ export type SessionsUpdateError = SessionsUpdateErrors[keyof SessionsUpdateErrors];
43438
44919
  export type SessionsUpdateResponses = {
43439
44920
  /**
43440
44921
  * Successful response
@@ -43521,7 +45002,7 @@ export type SessionsUpdateResponses = {
43521
45002
  */
43522
45003
  type: 'agent';
43523
45004
  /**
43524
- * The agent's current version. Starts at 1 and increments each time the agent is modified.
45005
+ * 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.
43525
45006
  */
43526
45007
  version: number;
43527
45008
  };
@@ -43689,18 +45170,19 @@ export type AgentsListData = {
43689
45170
  };
43690
45171
  export type AgentsListErrors = {
43691
45172
  /**
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.
45173
+ * include_archived is not true or false, kind is not personal or service, a created_at bound is not an RFC 3339 timestamp, or INVALID_PARAMS when limit is not an integer from 1 to 100 (limit must be an integer between 1 and 100), or INVALID_PAGE_TOKEN when page is not a cursor from this same query (restart from the first page). Pass next_page unchanged, with the same filters, to continue.
43693
45174
  */
43694
- 400: unknown;
45175
+ 400: AgentError;
43695
45176
  /**
43696
- * The API key is missing, invalid or revoked. Send a valid key as X-API-Key or as a Bearer token.
45177
+ * UNAUTHENTICATED (or INVALID_API_KEY, API_KEY_DISABLED, API_KEY_EXPIRED, INVALID_API_TOKEN, API_TOKEN_EXPIRED, API_TOKEN_REVOKED): the API key is missing, invalid or revoked. Send a valid key as X-API-Key or as a Bearer token.
43697
45178
  */
43698
- 401: unknown;
45179
+ 401: AgentError;
43699
45180
  /**
43700
45181
  * 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
45182
  */
43702
- 403: unknown;
45183
+ 403: AgentError;
43703
45184
  };
45185
+ export type AgentsListError = AgentsListErrors[keyof AgentsListErrors];
43704
45186
  export type AgentsListResponses = {
43705
45187
  /**
43706
45188
  * Successful response
@@ -44751,20 +46233,21 @@ export type AgentsCreateErrors = {
44751
46233
  /**
44752
46234
  * 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
46235
  */
44754
- 400: unknown;
46236
+ 400: AgentError;
44755
46237
  /**
44756
- * The API key is missing, invalid or revoked. Send a valid key as X-API-Key or as a Bearer token.
46238
+ * UNAUTHENTICATED (or INVALID_API_KEY, API_KEY_DISABLED, API_KEY_EXPIRED, INVALID_API_TOKEN, API_TOKEN_EXPIRED, API_TOKEN_REVOKED): the API key is missing, invalid or revoked. Send a valid key as X-API-Key or as a Bearer token.
44757
46239
  */
44758
- 401: unknown;
46240
+ 401: AgentError;
44759
46241
  /**
44760
46242
  * 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
46243
  */
44762
- 403: unknown;
46244
+ 403: AgentError;
44763
46245
  /**
44764
46246
  * The vault availability check for vault_ids failed upstream; nothing was saved. Retry later.
44765
46247
  */
44766
- 502: unknown;
46248
+ 502: AgentError;
44767
46249
  };
46250
+ export type AgentsCreateError = AgentsCreateErrors[keyof AgentsCreateErrors];
44768
46251
  export type AgentsCreateResponses = {
44769
46252
  /**
44770
46253
  * Successful response
@@ -45332,22 +46815,23 @@ export type AgentsRetrieveData = {
45332
46815
  };
45333
46816
  export type AgentsRetrieveErrors = {
45334
46817
  /**
45335
- * version is not a positive integer. Take versions from agents.versions.list.
46818
+ * version is neither a positive integer nor active. Take versions from agents.versions.list.
45336
46819
  */
45337
- 400: unknown;
46820
+ 400: AgentError;
45338
46821
  /**
45339
- * The API key is missing, invalid or revoked. Send a valid key as X-API-Key or as a Bearer token.
46822
+ * UNAUTHENTICATED (or INVALID_API_KEY, API_KEY_DISABLED, API_KEY_EXPIRED, INVALID_API_TOKEN, API_TOKEN_EXPIRED, API_TOKEN_REVOKED): the API key is missing, invalid or revoked. Send a valid key as X-API-Key or as a Bearer token.
45340
46823
  */
45341
- 401: unknown;
46824
+ 401: AgentError;
45342
46825
  /**
45343
46826
  * 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
46827
  */
45345
- 403: unknown;
46828
+ 403: AgentError;
45346
46829
  /**
45347
- * Agent not found, or the requested version does not exist for it. Take ids from agents.list and versions from agents.versions.list.
46830
+ * AGENT_NOT_FOUND, or AGENT_VERSION_NOT_FOUND when the requested version does not exist for it. Take ids from agents.list and versions from agents.versions.list.
45348
46831
  */
45349
- 404: unknown;
46832
+ 404: AgentError;
45350
46833
  };
46834
+ export type AgentsRetrieveError = AgentsRetrieveErrors[keyof AgentsRetrieveErrors];
45351
46835
  export type AgentsRetrieveResponses = {
45352
46836
  /**
45353
46837
  * Successful response
@@ -45984,7 +47468,7 @@ export type AgentsUpdateData = {
45984
47468
  */
45985
47469
  apply?: boolean;
45986
47470
  /**
45987
- * Optional change explanation stored as note on the new immutable version, up to 280 characters. Omission stores null. A note alone does not create a version or rewrite an existing note.
47471
+ * 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.
45988
47472
  */
45989
47473
  version_note?: string;
45990
47474
  /**
@@ -46411,24 +47895,25 @@ export type AgentsUpdateErrors = {
46411
47895
  /**
46412
47896
  * The body failed validation and the message names the field (same rules as agents.create, including tools: null).
46413
47897
  */
46414
- 400: unknown;
47898
+ 400: AgentError;
46415
47899
  /**
46416
- * The API key is missing, invalid or revoked. Send a valid key as X-API-Key or as a Bearer token.
47900
+ * UNAUTHENTICATED (or INVALID_API_KEY, API_KEY_DISABLED, API_KEY_EXPIRED, INVALID_API_TOKEN, API_TOKEN_EXPIRED, API_TOKEN_REVOKED): the API key is missing, invalid or revoked. Send a valid key as X-API-Key or as a Bearer token.
46417
47901
  */
46418
- 401: unknown;
47902
+ 401: AgentError;
46419
47903
  /**
46420
47904
  * 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
47905
  */
46422
- 403: unknown;
47906
+ 403: AgentError;
46423
47907
  /**
46424
- * Agent not found: the id does not exist in your organization. Take ids from agents.list or agents.create.
47908
+ * AGENT_NOT_FOUND: the id does not exist in your organization, or is malformed. Take ids from agents.list or agents.create.
46425
47909
  */
46426
- 404: unknown;
47910
+ 404: AgentError;
46427
47911
  /**
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).
47912
+ * AGENT_ARCHIVED: unarchive it first. AGENT_VERSION_CONFLICT: version is not the agent's latest (older or not yet existing); error.current_version carries the latest, resend with it. A newer version saved with apply false is waiting: apply it or save over it.
46429
47913
  */
46430
- 409: unknown;
47914
+ 409: AgentError;
46431
47915
  };
47916
+ export type AgentsUpdateError = AgentsUpdateErrors[keyof AgentsUpdateErrors];
46432
47917
  export type AgentsUpdateResponses = {
46433
47918
  /**
46434
47919
  * Successful response
@@ -46990,18 +48475,19 @@ export type AgentsArchiveData = {
46990
48475
  };
46991
48476
  export type AgentsArchiveErrors = {
46992
48477
  /**
46993
- * The API key is missing, invalid or revoked. Send a valid key as X-API-Key or as a Bearer token.
48478
+ * UNAUTHENTICATED (or INVALID_API_KEY, API_KEY_DISABLED, API_KEY_EXPIRED, INVALID_API_TOKEN, API_TOKEN_EXPIRED, API_TOKEN_REVOKED): the API key is missing, invalid or revoked. Send a valid key as X-API-Key or as a Bearer token.
46994
48479
  */
46995
- 401: unknown;
48480
+ 401: AgentError;
46996
48481
  /**
46997
48482
  * 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
48483
  */
46999
- 403: unknown;
48484
+ 403: AgentError;
47000
48485
  /**
47001
- * Agent not found: the id does not exist in your organization. Take ids from agents.list or agents.create.
48486
+ * AGENT_NOT_FOUND: the id does not exist in your organization, or is malformed. Take ids from agents.list or agents.create.
47002
48487
  */
47003
- 404: unknown;
48488
+ 404: AgentError;
47004
48489
  };
48490
+ export type AgentsArchiveError = AgentsArchiveErrors[keyof AgentsArchiveErrors];
47005
48491
  export type AgentsArchiveResponses = {
47006
48492
  /**
47007
48493
  * Successful response
@@ -47569,22 +49055,23 @@ export type AgentsVersionsListData = {
47569
49055
  };
47570
49056
  export type AgentsVersionsListErrors = {
47571
49057
  /**
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.
49058
+ * INVALID_PARAMS when limit is not an integer from 1 to 100 (limit must be an integer between 1 and 100), or INVALID_PAGE_TOKEN when page is not a cursor from this same query (restart from the first page). Pass next_page unchanged, with the same filters, to continue.
47573
49059
  */
47574
- 400: unknown;
49060
+ 400: AgentError;
47575
49061
  /**
47576
- * The API key is missing, invalid or revoked. Send a valid key as X-API-Key or as a Bearer token.
49062
+ * UNAUTHENTICATED (or INVALID_API_KEY, API_KEY_DISABLED, API_KEY_EXPIRED, INVALID_API_TOKEN, API_TOKEN_EXPIRED, API_TOKEN_REVOKED): the API key is missing, invalid or revoked. Send a valid key as X-API-Key or as a Bearer token.
47577
49063
  */
47578
- 401: unknown;
49064
+ 401: AgentError;
47579
49065
  /**
47580
49066
  * 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
49067
  */
47582
- 403: unknown;
49068
+ 403: AgentError;
47583
49069
  /**
47584
- * Agent not found: the id does not exist in your organization. Take ids from agents.list or agents.create.
49070
+ * AGENT_NOT_FOUND: the id does not exist in your organization, or is malformed. Take ids from agents.list or agents.create.
47585
49071
  */
47586
- 404: unknown;
49072
+ 404: AgentError;
47587
49073
  };
49074
+ export type AgentsVersionsListError = AgentsVersionsListErrors[keyof AgentsVersionsListErrors];
47588
49075
  export type AgentsVersionsListResponses = {
47589
49076
  /**
47590
49077
  * Successful response
@@ -47686,6 +49173,10 @@ export type AgentsVersionsListResponses = {
47686
49173
  * 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.
47687
49174
  */
47688
49175
  active_version: number;
49176
+ /**
49177
+ * 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.
49178
+ */
49179
+ active: boolean;
47689
49180
  /**
47690
49181
  * 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.
47691
49182
  */
@@ -48212,18 +49703,19 @@ export type SessionsListData = {
48212
49703
  };
48213
49704
  export type SessionsListErrors = {
48214
49705
  /**
48215
- * 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.
49706
+ * 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 INVALID_PARAMS when limit is not an integer from 1 to 100 (limit must be an integer between 1 and 100), or INVALID_PAGE_TOKEN when page is not a cursor from this same query (restart from the first page). Pass next_page unchanged, with the same filters, to continue.
48216
49707
  */
48217
- 400: unknown;
49708
+ 400: AgentError;
48218
49709
  /**
48219
- * The API key is missing, invalid or revoked. Send a valid key as X-API-Key or as a Bearer token.
49710
+ * UNAUTHENTICATED (or INVALID_API_KEY, API_KEY_DISABLED, API_KEY_EXPIRED, INVALID_API_TOKEN, API_TOKEN_EXPIRED, API_TOKEN_REVOKED): the API key is missing, invalid or revoked. Send a valid key as X-API-Key or as a Bearer token.
48220
49711
  */
48221
- 401: unknown;
49712
+ 401: AgentError;
48222
49713
  /**
48223
49714
  * 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.
48224
49715
  */
48225
- 403: unknown;
49716
+ 403: AgentError;
48226
49717
  };
49718
+ export type SessionsListError = SessionsListErrors[keyof SessionsListErrors];
48227
49719
  export type SessionsListResponses = {
48228
49720
  /**
48229
49721
  * Successful response
@@ -48314,7 +49806,7 @@ export type SessionsListResponses = {
48314
49806
  */
48315
49807
  type: 'agent';
48316
49808
  /**
48317
- * The agent's current version. Starts at 1 and increments each time the agent is modified.
49809
+ * 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.
48318
49810
  */
48319
49811
  version: number;
48320
49812
  };
@@ -48535,28 +50027,29 @@ export type SessionsCreateErrors = {
48535
50027
  /**
48536
50028
  * 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.
48537
50029
  */
48538
- 400: unknown;
50030
+ 400: AgentError;
48539
50031
  /**
48540
- * The API key is missing, invalid or revoked. Send a valid key as X-API-Key or as a Bearer token.
50032
+ * UNAUTHENTICATED (or INVALID_API_KEY, API_KEY_DISABLED, API_KEY_EXPIRED, INVALID_API_TOKEN, API_TOKEN_EXPIRED, API_TOKEN_REVOKED): the API key is missing, invalid or revoked. Send a valid key as X-API-Key or as a Bearer token.
48541
50033
  */
48542
- 401: unknown;
50034
+ 401: AgentError;
48543
50035
  /**
48544
50036
  * 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.
48545
50037
  */
48546
- 403: unknown;
50038
+ 403: AgentError;
48547
50039
  /**
48548
- * Agent not found, or the pinned agent version does not exist. Take agent ids from agents.list and versions from agents.versions.list.
50040
+ * AGENT_NOT_FOUND, or AGENT_VERSION_NOT_FOUND when the pinned agent version does not exist. Take agent ids from agents.list and versions from agents.versions.list.
48549
50041
  */
48550
- 404: unknown;
50042
+ 404: AgentError;
48551
50043
  /**
48552
- * Agent is archived; unarchive it to start new sessions. Existing sessions keep working.
50044
+ * AGENT_ARCHIVED: unarchive it to start new sessions. Existing sessions keep working.
48553
50045
  */
48554
- 409: unknown;
50046
+ 409: AgentError;
48555
50047
  /**
48556
50048
  * The session could not be established (machine, vault or resource synchronization failed). Nothing usable was created; retry.
48557
50049
  */
48558
- 502: unknown;
50050
+ 502: AgentError;
48559
50051
  };
50052
+ export type SessionsCreateError = SessionsCreateErrors[keyof SessionsCreateErrors];
48560
50053
  export type SessionsCreateResponses = {
48561
50054
  /**
48562
50055
  * Successful response
@@ -48643,7 +50136,7 @@ export type SessionsCreateResponses = {
48643
50136
  */
48644
50137
  type: 'agent';
48645
50138
  /**
48646
- * The agent's current version. Starts at 1 and increments each time the agent is modified.
50139
+ * 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.
48647
50140
  */
48648
50141
  version: number;
48649
50142
  };
@@ -48794,18 +50287,19 @@ export type SessionsArchiveData = {
48794
50287
  };
48795
50288
  export type SessionsArchiveErrors = {
48796
50289
  /**
48797
- * The API key is missing, invalid or revoked. Send a valid key as X-API-Key or as a Bearer token.
50290
+ * UNAUTHENTICATED (or INVALID_API_KEY, API_KEY_DISABLED, API_KEY_EXPIRED, INVALID_API_TOKEN, API_TOKEN_EXPIRED, API_TOKEN_REVOKED): the API key is missing, invalid or revoked. Send a valid key as X-API-Key or as a Bearer token.
48798
50291
  */
48799
- 401: unknown;
50292
+ 401: AgentError;
48800
50293
  /**
48801
50294
  * 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.
48802
50295
  */
48803
- 403: unknown;
50296
+ 403: AgentError;
48804
50297
  /**
48805
- * Session not found: the id does not exist in your organization. Take ids from sessions.list or sessions.create.
50298
+ * SESSION_NOT_FOUND: the id does not exist in your organization, or is malformed. Take ids from sessions.list or sessions.create.
48806
50299
  */
48807
- 404: unknown;
50300
+ 404: AgentError;
48808
50301
  };
50302
+ export type SessionsArchiveError = SessionsArchiveErrors[keyof SessionsArchiveErrors];
48809
50303
  export type SessionsArchiveResponses = {
48810
50304
  /**
48811
50305
  * Successful response
@@ -48892,7 +50386,7 @@ export type SessionsArchiveResponses = {
48892
50386
  */
48893
50387
  type: 'agent';
48894
50388
  /**
48895
- * The agent's current version. Starts at 1 and increments each time the agent is modified.
50389
+ * 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.
48896
50390
  */
48897
50391
  version: number;
48898
50392
  };
@@ -49080,22 +50574,23 @@ export type SessionsEventsListData = {
49080
50574
  };
49081
50575
  export type SessionsEventsListErrors = {
49082
50576
  /**
49083
- * 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.
50577
+ * order is not asc or desc, types contains an unsupported event type, or INVALID_PARAMS when limit is not an integer from 1 to 100 (limit must be an integer between 1 and 100), or INVALID_PAGE_TOKEN when page is not a cursor from this same query (restart from the first page). Pass next_page unchanged, with the same filters, to continue.
49084
50578
  */
49085
- 400: unknown;
50579
+ 400: AgentError;
49086
50580
  /**
49087
- * The API key is missing, invalid or revoked. Send a valid key as X-API-Key or as a Bearer token.
50581
+ * UNAUTHENTICATED (or INVALID_API_KEY, API_KEY_DISABLED, API_KEY_EXPIRED, INVALID_API_TOKEN, API_TOKEN_EXPIRED, API_TOKEN_REVOKED): the API key is missing, invalid or revoked. Send a valid key as X-API-Key or as a Bearer token.
49088
50582
  */
49089
- 401: unknown;
50583
+ 401: AgentError;
49090
50584
  /**
49091
50585
  * 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.
49092
50586
  */
49093
- 403: unknown;
50587
+ 403: AgentError;
49094
50588
  /**
49095
- * Session not found: the id does not exist in your organization. Take ids from sessions.list or sessions.create.
50589
+ * SESSION_NOT_FOUND: the id does not exist in your organization, or is malformed. Take ids from sessions.list or sessions.create.
49096
50590
  */
49097
- 404: unknown;
50591
+ 404: AgentError;
49098
50592
  };
50593
+ export type SessionsEventsListError = SessionsEventsListErrors[keyof SessionsEventsListErrors];
49099
50594
  export type SessionsEventsListResponses = {
49100
50595
  /**
49101
50596
  * Successful response
@@ -49857,24 +51352,25 @@ export type SessionsEventsSendErrors = {
49857
51352
  /**
49858
51353
  * 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.
49859
51354
  */
49860
- 400: unknown;
51355
+ 400: AgentError;
49861
51356
  /**
49862
- * The API key is missing, invalid or revoked. Send a valid key as X-API-Key or as a Bearer token.
51357
+ * UNAUTHENTICATED (or INVALID_API_KEY, API_KEY_DISABLED, API_KEY_EXPIRED, INVALID_API_TOKEN, API_TOKEN_EXPIRED, API_TOKEN_REVOKED): the API key is missing, invalid or revoked. Send a valid key as X-API-Key or as a Bearer token.
49863
51358
  */
49864
- 401: unknown;
51359
+ 401: AgentError;
49865
51360
  /**
49866
51361
  * 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.
49867
51362
  */
49868
- 403: unknown;
51363
+ 403: AgentError;
49869
51364
  /**
49870
- * 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.
51365
+ * SESSION_NOT_FOUND: the id does not exist in your organization, or is malformed. Take ids from sessions.list or sessions.create. A user.steer or user.withdraw that names a missing event also returns 404.
49871
51366
  */
49872
- 404: unknown;
51367
+ 404: AgentError;
49873
51368
  /**
49874
- * 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.
51369
+ * SESSION_CONFLICT: 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.
49875
51370
  */
49876
- 409: unknown;
51371
+ 409: AgentError;
49877
51372
  };
51373
+ export type SessionsEventsSendError = SessionsEventsSendErrors[keyof SessionsEventsSendErrors];
49878
51374
  export type SessionsEventsSendResponses = {
49879
51375
  /**
49880
51376
  * Successful response
@@ -50010,20 +51506,21 @@ export type SessionsEventsStreamErrors = {
50010
51506
  /**
50011
51507
  * event_deltas contains a value other than the supported event types.
50012
51508
  */
50013
- 400: unknown;
51509
+ 400: AgentError;
50014
51510
  /**
50015
- * The API key is missing, invalid or revoked. Send a valid key as X-API-Key or as a Bearer token.
51511
+ * UNAUTHENTICATED (or INVALID_API_KEY, API_KEY_DISABLED, API_KEY_EXPIRED, INVALID_API_TOKEN, API_TOKEN_EXPIRED, API_TOKEN_REVOKED): the API key is missing, invalid or revoked. Send a valid key as X-API-Key or as a Bearer token.
50016
51512
  */
50017
- 401: unknown;
51513
+ 401: AgentError;
50018
51514
  /**
50019
51515
  * 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.
50020
51516
  */
50021
- 403: unknown;
51517
+ 403: AgentError;
50022
51518
  /**
50023
- * Session not found: the id does not exist in your organization. Take ids from sessions.list or sessions.create.
51519
+ * SESSION_NOT_FOUND: the id does not exist in your organization, or is malformed. Take ids from sessions.list or sessions.create.
50024
51520
  */
50025
- 404: unknown;
51521
+ 404: AgentError;
50026
51522
  };
51523
+ export type SessionsEventsStreamError = SessionsEventsStreamErrors[keyof SessionsEventsStreamErrors];
50027
51524
  export type SessionsEventsStreamResponses = {
50028
51525
  /**
50029
51526
  * Server-sent events
@@ -50050,22 +51547,23 @@ export type SessionsThreadsListData = {
50050
51547
  };
50051
51548
  export type SessionsThreadsListErrors = {
50052
51549
  /**
50053
- * 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.
51550
+ * INVALID_PARAMS when limit is not an integer from 1 to 100 (limit must be an integer between 1 and 100), or INVALID_PAGE_TOKEN when page is not a cursor from this same query (restart from the first page). Pass next_page unchanged, with the same filters, to continue.
50054
51551
  */
50055
- 400: unknown;
51552
+ 400: AgentError;
50056
51553
  /**
50057
- * The API key is missing, invalid or revoked. Send a valid key as X-API-Key or as a Bearer token.
51554
+ * UNAUTHENTICATED (or INVALID_API_KEY, API_KEY_DISABLED, API_KEY_EXPIRED, INVALID_API_TOKEN, API_TOKEN_EXPIRED, API_TOKEN_REVOKED): the API key is missing, invalid or revoked. Send a valid key as X-API-Key or as a Bearer token.
50058
51555
  */
50059
- 401: unknown;
51556
+ 401: AgentError;
50060
51557
  /**
50061
51558
  * 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.
50062
51559
  */
50063
- 403: unknown;
51560
+ 403: AgentError;
50064
51561
  /**
50065
- * Session not found: the id does not exist in your organization. Take ids from sessions.list or sessions.create.
51562
+ * SESSION_NOT_FOUND: the id does not exist in your organization, or is malformed. Take ids from sessions.list or sessions.create.
50066
51563
  */
50067
- 404: unknown;
51564
+ 404: AgentError;
50068
51565
  };
51566
+ export type SessionsThreadsListError = SessionsThreadsListErrors[keyof SessionsThreadsListErrors];
50069
51567
  export type SessionsThreadsListResponses = {
50070
51568
  /**
50071
51569
  * Successful response
@@ -50104,18 +51602,19 @@ export type SessionsThreadsRetrieveData = {
50104
51602
  };
50105
51603
  export type SessionsThreadsRetrieveErrors = {
50106
51604
  /**
50107
- * The API key is missing, invalid or revoked. Send a valid key as X-API-Key or as a Bearer token.
51605
+ * UNAUTHENTICATED (or INVALID_API_KEY, API_KEY_DISABLED, API_KEY_EXPIRED, INVALID_API_TOKEN, API_TOKEN_EXPIRED, API_TOKEN_REVOKED): the API key is missing, invalid or revoked. Send a valid key as X-API-Key or as a Bearer token.
50108
51606
  */
50109
- 401: unknown;
51607
+ 401: AgentError;
50110
51608
  /**
50111
51609
  * 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.
50112
51610
  */
50113
- 403: unknown;
51611
+ 403: AgentError;
50114
51612
  /**
50115
- * Session or thread not found. A malformed id and another session's thread answer the same way. Take thread ids from sessions.threads.list.
51613
+ * SESSION_NOT_FOUND or THREAD_NOT_FOUND. A malformed id and another session's thread answer the same way. Take thread ids from sessions.threads.list.
50116
51614
  */
50117
- 404: unknown;
51615
+ 404: AgentError;
50118
51616
  };
51617
+ export type SessionsThreadsRetrieveError = SessionsThreadsRetrieveErrors[keyof SessionsThreadsRetrieveErrors];
50119
51618
  export type SessionsThreadsRetrieveResponses = {
50120
51619
  /**
50121
51620
  * Successful response
@@ -50145,18 +51644,19 @@ export type SessionsThreadsArchiveData = {
50145
51644
  };
50146
51645
  export type SessionsThreadsArchiveErrors = {
50147
51646
  /**
50148
- * The API key is missing, invalid or revoked. Send a valid key as X-API-Key or as a Bearer token.
51647
+ * UNAUTHENTICATED (or INVALID_API_KEY, API_KEY_DISABLED, API_KEY_EXPIRED, INVALID_API_TOKEN, API_TOKEN_EXPIRED, API_TOKEN_REVOKED): the API key is missing, invalid or revoked. Send a valid key as X-API-Key or as a Bearer token.
50149
51648
  */
50150
- 401: unknown;
51649
+ 401: AgentError;
50151
51650
  /**
50152
51651
  * 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.
50153
51652
  */
50154
- 403: unknown;
51653
+ 403: AgentError;
50155
51654
  /**
50156
- * Session or thread not found. A malformed id and another session's thread answer the same way. Take thread ids from sessions.threads.list.
51655
+ * SESSION_NOT_FOUND or THREAD_NOT_FOUND. A malformed id and another session's thread answer the same way. Take thread ids from sessions.threads.list.
50157
51656
  */
50158
- 404: unknown;
51657
+ 404: AgentError;
50159
51658
  };
51659
+ export type SessionsThreadsArchiveError = SessionsThreadsArchiveErrors[keyof SessionsThreadsArchiveErrors];
50160
51660
  export type SessionsThreadsArchiveResponses = {
50161
51661
  /**
50162
51662
  * Successful response
@@ -50191,22 +51691,23 @@ export type SessionsThreadsEventsListData = {
50191
51691
  };
50192
51692
  export type SessionsThreadsEventsListErrors = {
50193
51693
  /**
50194
- * 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.
51694
+ * order is not asc or desc, types contains an unsupported event type, or INVALID_PARAMS when limit is not an integer from 1 to 100 (limit must be an integer between 1 and 100), or INVALID_PAGE_TOKEN when page is not a cursor from this same query (restart from the first page). Pass next_page unchanged, with the same filters, to continue.
50195
51695
  */
50196
- 400: unknown;
51696
+ 400: AgentError;
50197
51697
  /**
50198
- * The API key is missing, invalid or revoked. Send a valid key as X-API-Key or as a Bearer token.
51698
+ * UNAUTHENTICATED (or INVALID_API_KEY, API_KEY_DISABLED, API_KEY_EXPIRED, INVALID_API_TOKEN, API_TOKEN_EXPIRED, API_TOKEN_REVOKED): the API key is missing, invalid or revoked. Send a valid key as X-API-Key or as a Bearer token.
50199
51699
  */
50200
- 401: unknown;
51700
+ 401: AgentError;
50201
51701
  /**
50202
51702
  * 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.
50203
51703
  */
50204
- 403: unknown;
51704
+ 403: AgentError;
50205
51705
  /**
50206
- * Session or thread not found. A malformed id and another session's thread answer the same way. Take thread ids from sessions.threads.list.
51706
+ * SESSION_NOT_FOUND or THREAD_NOT_FOUND. A malformed id and another session's thread answer the same way. Take thread ids from sessions.threads.list.
50207
51707
  */
50208
- 404: unknown;
51708
+ 404: AgentError;
50209
51709
  };
51710
+ export type SessionsThreadsEventsListError = SessionsThreadsEventsListErrors[keyof SessionsThreadsEventsListErrors];
50210
51711
  export type SessionsThreadsEventsListResponses = {
50211
51712
  /**
50212
51713
  * Successful response
@@ -50873,20 +52374,21 @@ export type SessionsThreadsEventsStreamErrors = {
50873
52374
  /**
50874
52375
  * event_deltas contains a value other than the supported event types.
50875
52376
  */
50876
- 400: unknown;
52377
+ 400: AgentError;
50877
52378
  /**
50878
- * The API key is missing, invalid or revoked. Send a valid key as X-API-Key or as a Bearer token.
52379
+ * UNAUTHENTICATED (or INVALID_API_KEY, API_KEY_DISABLED, API_KEY_EXPIRED, INVALID_API_TOKEN, API_TOKEN_EXPIRED, API_TOKEN_REVOKED): the API key is missing, invalid or revoked. Send a valid key as X-API-Key or as a Bearer token.
50879
52380
  */
50880
- 401: unknown;
52381
+ 401: AgentError;
50881
52382
  /**
50882
52383
  * 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.
50883
52384
  */
50884
- 403: unknown;
52385
+ 403: AgentError;
50885
52386
  /**
50886
- * Session or thread not found. A malformed id and another session's thread answer the same way. Take thread ids from sessions.threads.list.
52387
+ * SESSION_NOT_FOUND or THREAD_NOT_FOUND. A malformed id and another session's thread answer the same way. Take thread ids from sessions.threads.list.
50887
52388
  */
50888
- 404: unknown;
52389
+ 404: AgentError;
50889
52390
  };
52391
+ export type SessionsThreadsEventsStreamError = SessionsThreadsEventsStreamErrors[keyof SessionsThreadsEventsStreamErrors];
50890
52392
  export type SessionsThreadsEventsStreamResponses = {
50891
52393
  /**
50892
52394
  * Server-sent events
@@ -50907,18 +52409,19 @@ export type EnvironmentsRetrieveData = {
50907
52409
  };
50908
52410
  export type EnvironmentsRetrieveErrors = {
50909
52411
  /**
50910
- * The API key is missing, invalid or revoked. Send a valid key as X-API-Key or as a Bearer token.
52412
+ * UNAUTHENTICATED (or INVALID_API_KEY, API_KEY_DISABLED, API_KEY_EXPIRED, INVALID_API_TOKEN, API_TOKEN_EXPIRED, API_TOKEN_REVOKED): the API key is missing, invalid or revoked. Send a valid key as X-API-Key or as a Bearer token.
50911
52413
  */
50912
- 401: unknown;
52414
+ 401: AgentError;
50913
52415
  /**
50914
52416
  * 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.
50915
52417
  */
50916
- 403: unknown;
52418
+ 403: AgentError;
50917
52419
  /**
50918
- * Environment not found. Take ids from environments.list or environments.create.
52420
+ * ENVIRONMENT_NOT_FOUND. Take ids from environments.list or environments.create.
50919
52421
  */
50920
- 404: unknown;
52422
+ 404: AgentError;
50921
52423
  };
52424
+ export type EnvironmentsRetrieveError = EnvironmentsRetrieveErrors[keyof EnvironmentsRetrieveErrors];
50922
52425
  export type EnvironmentsRetrieveResponses = {
50923
52426
  /**
50924
52427
  * Successful response
@@ -50960,24 +52463,25 @@ export type EnvironmentsUpdateErrors = {
50960
52463
  /**
50961
52464
  * The body failed validation and the message names the field (same rules as environments.create).
50962
52465
  */
50963
- 400: unknown;
52466
+ 400: AgentError;
50964
52467
  /**
50965
- * The API key is missing, invalid or revoked. Send a valid key as X-API-Key or as a Bearer token.
52468
+ * UNAUTHENTICATED (or INVALID_API_KEY, API_KEY_DISABLED, API_KEY_EXPIRED, INVALID_API_TOKEN, API_TOKEN_EXPIRED, API_TOKEN_REVOKED): the API key is missing, invalid or revoked. Send a valid key as X-API-Key or as a Bearer token.
50966
52469
  */
50967
- 401: unknown;
52470
+ 401: AgentError;
50968
52471
  /**
50969
52472
  * 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.
50970
52473
  */
50971
- 403: unknown;
52474
+ 403: AgentError;
50972
52475
  /**
50973
- * Environment not found. Take ids from environments.list or environments.create.
52476
+ * ENVIRONMENT_NOT_FOUND. Take ids from environments.list or environments.create.
50974
52477
  */
50975
- 404: unknown;
52478
+ 404: AgentError;
50976
52479
  /**
50977
52480
  * The environment is built in (read-only), is archived, or changed since you read it (retrieve it again and retry).
50978
52481
  */
50979
- 409: unknown;
52482
+ 409: AgentError;
50980
52483
  };
52484
+ export type EnvironmentsUpdateError = EnvironmentsUpdateErrors[keyof EnvironmentsUpdateErrors];
50981
52485
  export type EnvironmentsUpdateResponses = {
50982
52486
  /**
50983
52487
  * Successful response
@@ -50998,22 +52502,23 @@ export type EnvironmentsArchiveData = {
50998
52502
  };
50999
52503
  export type EnvironmentsArchiveErrors = {
51000
52504
  /**
51001
- * The API key is missing, invalid or revoked. Send a valid key as X-API-Key or as a Bearer token.
52505
+ * UNAUTHENTICATED (or INVALID_API_KEY, API_KEY_DISABLED, API_KEY_EXPIRED, INVALID_API_TOKEN, API_TOKEN_EXPIRED, API_TOKEN_REVOKED): the API key is missing, invalid or revoked. Send a valid key as X-API-Key or as a Bearer token.
51002
52506
  */
51003
- 401: unknown;
52507
+ 401: AgentError;
51004
52508
  /**
51005
52509
  * 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.
51006
52510
  */
51007
- 403: unknown;
52511
+ 403: AgentError;
51008
52512
  /**
51009
- * Environment not found. Take ids from environments.list or environments.create.
52513
+ * ENVIRONMENT_NOT_FOUND. Take ids from environments.list or environments.create.
51010
52514
  */
51011
- 404: unknown;
52515
+ 404: AgentError;
51012
52516
  /**
51013
52517
  * 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.
51014
52518
  */
51015
- 409: unknown;
52519
+ 409: AgentError;
51016
52520
  };
52521
+ export type EnvironmentsArchiveError = EnvironmentsArchiveErrors[keyof EnvironmentsArchiveErrors];
51017
52522
  export type EnvironmentsArchiveResponses = {
51018
52523
  /**
51019
52524
  * Successful response
@@ -51041,16 +52546,17 @@ export type EnvironmentsListErrors = {
51041
52546
  /**
51042
52547
  * include_archived is not true or false, or limit or page is invalid.
51043
52548
  */
51044
- 400: unknown;
52549
+ 400: AgentError;
51045
52550
  /**
51046
- * The API key is missing, invalid or revoked. Send a valid key as X-API-Key or as a Bearer token.
52551
+ * UNAUTHENTICATED (or INVALID_API_KEY, API_KEY_DISABLED, API_KEY_EXPIRED, INVALID_API_TOKEN, API_TOKEN_EXPIRED, API_TOKEN_REVOKED): the API key is missing, invalid or revoked. Send a valid key as X-API-Key or as a Bearer token.
51047
52552
  */
51048
- 401: unknown;
52553
+ 401: AgentError;
51049
52554
  /**
51050
52555
  * 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.
51051
52556
  */
51052
- 403: unknown;
52557
+ 403: AgentError;
51053
52558
  };
52559
+ export type EnvironmentsListError = EnvironmentsListErrors[keyof EnvironmentsListErrors];
51054
52560
  export type EnvironmentsListResponses = {
51055
52561
  /**
51056
52562
  * Successful response
@@ -51094,16 +52600,17 @@ export type EnvironmentsCreateErrors = {
51094
52600
  /**
51095
52601
  * 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.
51096
52602
  */
51097
- 400: unknown;
52603
+ 400: AgentError;
51098
52604
  /**
51099
- * The API key is missing, invalid or revoked. Send a valid key as X-API-Key or as a Bearer token.
52605
+ * UNAUTHENTICATED (or INVALID_API_KEY, API_KEY_DISABLED, API_KEY_EXPIRED, INVALID_API_TOKEN, API_TOKEN_EXPIRED, API_TOKEN_REVOKED): the API key is missing, invalid or revoked. Send a valid key as X-API-Key or as a Bearer token.
51100
52606
  */
51101
- 401: unknown;
52607
+ 401: AgentError;
51102
52608
  /**
51103
52609
  * 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.
51104
52610
  */
51105
- 403: unknown;
52611
+ 403: AgentError;
51106
52612
  };
52613
+ export type EnvironmentsCreateError = EnvironmentsCreateErrors[keyof EnvironmentsCreateErrors];
51107
52614
  export type EnvironmentsCreateResponses = {
51108
52615
  /**
51109
52616
  * Successful response
@@ -51132,20 +52639,21 @@ export type SessionsResourcesListErrors = {
51132
52639
  /**
51133
52640
  * limit is not an integer from 1 to 1000, or page is not a cursor from this list.
51134
52641
  */
51135
- 400: unknown;
52642
+ 400: AgentError;
51136
52643
  /**
51137
- * The API key is missing, invalid or revoked. Send a valid key as X-API-Key or as a Bearer token.
52644
+ * UNAUTHENTICATED (or INVALID_API_KEY, API_KEY_DISABLED, API_KEY_EXPIRED, INVALID_API_TOKEN, API_TOKEN_EXPIRED, API_TOKEN_REVOKED): the API key is missing, invalid or revoked. Send a valid key as X-API-Key or as a Bearer token.
51138
52645
  */
51139
- 401: unknown;
52646
+ 401: AgentError;
51140
52647
  /**
51141
52648
  * 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.
51142
52649
  */
51143
- 403: unknown;
52650
+ 403: AgentError;
51144
52651
  /**
51145
- * Session not found: the id does not exist in your organization. Take ids from sessions.list or sessions.create.
52652
+ * SESSION_NOT_FOUND: the id does not exist in your organization, or is malformed. Take ids from sessions.list or sessions.create.
51146
52653
  */
51147
- 404: unknown;
52654
+ 404: AgentError;
51148
52655
  };
52656
+ export type SessionsResourcesListError = SessionsResourcesListErrors[keyof SessionsResourcesListErrors];
51149
52657
  export type SessionsResourcesListResponses = {
51150
52658
  /**
51151
52659
  * Successful response
@@ -51192,28 +52700,29 @@ export type SessionsResourcesAddErrors = {
51192
52700
  /**
51193
52701
  * Only file resources are supported; file_id or mount_path is invalid, or the session already holds 500 resources.
51194
52702
  */
51195
- 400: unknown;
52703
+ 400: AgentError;
51196
52704
  /**
51197
- * The API key is missing, invalid or revoked. Send a valid key as X-API-Key or as a Bearer token.
52705
+ * UNAUTHENTICATED (or INVALID_API_KEY, API_KEY_DISABLED, API_KEY_EXPIRED, INVALID_API_TOKEN, API_TOKEN_EXPIRED, API_TOKEN_REVOKED): the API key is missing, invalid or revoked. Send a valid key as X-API-Key or as a Bearer token.
51198
52706
  */
51199
- 401: unknown;
52707
+ 401: AgentError;
51200
52708
  /**
51201
52709
  * 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.
51202
52710
  */
51203
- 403: unknown;
52711
+ 403: AgentError;
51204
52712
  /**
51205
52713
  * Session not found, or the file does not exist in your organization. Upload it first and pass its id.
51206
52714
  */
51207
- 404: unknown;
52715
+ 404: AgentError;
51208
52716
  /**
51209
52717
  * The file is not ready yet, or another request is allocating the same mount path. Retry shortly.
51210
52718
  */
51211
- 409: unknown;
52719
+ 409: AgentError;
51212
52720
  /**
51213
52721
  * File metadata could not be read. Retry later.
51214
52722
  */
51215
- 502: unknown;
52723
+ 502: AgentError;
51216
52724
  };
52725
+ export type SessionsResourcesAddError = SessionsResourcesAddErrors[keyof SessionsResourcesAddErrors];
51217
52726
  export type SessionsResourcesAddResponses = {
51218
52727
  /**
51219
52728
  * Successful response
@@ -51243,18 +52752,19 @@ export type SessionsResourcesDeleteData = {
51243
52752
  };
51244
52753
  export type SessionsResourcesDeleteErrors = {
51245
52754
  /**
51246
- * The API key is missing, invalid or revoked. Send a valid key as X-API-Key or as a Bearer token.
52755
+ * UNAUTHENTICATED (or INVALID_API_KEY, API_KEY_DISABLED, API_KEY_EXPIRED, INVALID_API_TOKEN, API_TOKEN_EXPIRED, API_TOKEN_REVOKED): the API key is missing, invalid or revoked. Send a valid key as X-API-Key or as a Bearer token.
51247
52756
  */
51248
- 401: unknown;
52757
+ 401: AgentError;
51249
52758
  /**
51250
52759
  * 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.
51251
52760
  */
51252
- 403: unknown;
52761
+ 403: AgentError;
51253
52762
  /**
51254
52763
  * Session or resource not found. Take resource ids from sessions.resources.list.
51255
52764
  */
51256
- 404: unknown;
52765
+ 404: AgentError;
51257
52766
  };
52767
+ export type SessionsResourcesDeleteError = SessionsResourcesDeleteErrors[keyof SessionsResourcesDeleteErrors];
51258
52768
  export type SessionsResourcesDeleteResponses = {
51259
52769
  /**
51260
52770
  * Successful response
@@ -51284,18 +52794,19 @@ export type SessionsResourcesRetrieveData = {
51284
52794
  };
51285
52795
  export type SessionsResourcesRetrieveErrors = {
51286
52796
  /**
51287
- * The API key is missing, invalid or revoked. Send a valid key as X-API-Key or as a Bearer token.
52797
+ * UNAUTHENTICATED (or INVALID_API_KEY, API_KEY_DISABLED, API_KEY_EXPIRED, INVALID_API_TOKEN, API_TOKEN_EXPIRED, API_TOKEN_REVOKED): the API key is missing, invalid or revoked. Send a valid key as X-API-Key or as a Bearer token.
51288
52798
  */
51289
- 401: unknown;
52799
+ 401: AgentError;
51290
52800
  /**
51291
52801
  * 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.
51292
52802
  */
51293
- 403: unknown;
52803
+ 403: AgentError;
51294
52804
  /**
51295
52805
  * Session or resource not found. Take resource ids from sessions.resources.list.
51296
52806
  */
51297
- 404: unknown;
52807
+ 404: AgentError;
51298
52808
  };
52809
+ export type SessionsResourcesRetrieveError = SessionsResourcesRetrieveErrors[keyof SessionsResourcesRetrieveErrors];
51299
52810
  export type SessionsResourcesRetrieveResponses = {
51300
52811
  /**
51301
52812
  * Successful response
@@ -51342,16 +52853,17 @@ export type DeploymentsListErrors = {
51342
52853
  /**
51343
52854
  * status and include_archived were combined, a filter value is invalid, or limit or page is invalid.
51344
52855
  */
51345
- 400: unknown;
52856
+ 400: AgentError;
51346
52857
  /**
51347
- * The API key is missing, invalid or revoked. Send a valid key as X-API-Key or as a Bearer token.
52858
+ * UNAUTHENTICATED (or INVALID_API_KEY, API_KEY_DISABLED, API_KEY_EXPIRED, INVALID_API_TOKEN, API_TOKEN_EXPIRED, API_TOKEN_REVOKED): the API key is missing, invalid or revoked. Send a valid key as X-API-Key or as a Bearer token.
51348
52859
  */
51349
- 401: unknown;
52860
+ 401: AgentError;
51350
52861
  /**
51351
52862
  * 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.
51352
52863
  */
51353
- 403: unknown;
52864
+ 403: AgentError;
51354
52865
  };
52866
+ export type DeploymentsListError = DeploymentsListErrors[keyof DeploymentsListErrors];
51355
52867
  export type DeploymentsListResponses = {
51356
52868
  /**
51357
52869
  * Successful response
@@ -51378,7 +52890,7 @@ export type DeploymentsListResponses = {
51378
52890
  */
51379
52891
  type: 'agent';
51380
52892
  /**
51381
- * The agent's current version. Starts at 1 and increments each time the agent is modified.
52893
+ * 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.
51382
52894
  */
51383
52895
  version: number;
51384
52896
  } | {
@@ -51615,16 +53127,17 @@ export type DeploymentsCreateErrors = {
51615
53127
  /**
51616
53128
  * 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.
51617
53129
  */
51618
- 400: unknown;
53130
+ 400: AgentError;
51619
53131
  /**
51620
- * The API key is missing, invalid or revoked. Send a valid key as X-API-Key or as a Bearer token.
53132
+ * UNAUTHENTICATED (or INVALID_API_KEY, API_KEY_DISABLED, API_KEY_EXPIRED, INVALID_API_TOKEN, API_TOKEN_EXPIRED, API_TOKEN_REVOKED): the API key is missing, invalid or revoked. Send a valid key as X-API-Key or as a Bearer token.
51621
53133
  */
51622
- 401: unknown;
53134
+ 401: AgentError;
51623
53135
  /**
51624
53136
  * 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.
51625
53137
  */
51626
- 403: unknown;
53138
+ 403: AgentError;
51627
53139
  };
53140
+ export type DeploymentsCreateError = DeploymentsCreateErrors[keyof DeploymentsCreateErrors];
51628
53141
  export type DeploymentsCreateResponses = {
51629
53142
  /**
51630
53143
  * Successful response
@@ -51647,7 +53160,7 @@ export type DeploymentsCreateResponses = {
51647
53160
  */
51648
53161
  type: 'agent';
51649
53162
  /**
51650
- * The agent's current version. Starts at 1 and increments each time the agent is modified.
53163
+ * 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.
51651
53164
  */
51652
53165
  version: number;
51653
53166
  } | {
@@ -51781,18 +53294,19 @@ export type DeploymentsRetrieveData = {
51781
53294
  };
51782
53295
  export type DeploymentsRetrieveErrors = {
51783
53296
  /**
51784
- * The API key is missing, invalid or revoked. Send a valid key as X-API-Key or as a Bearer token.
53297
+ * UNAUTHENTICATED (or INVALID_API_KEY, API_KEY_DISABLED, API_KEY_EXPIRED, INVALID_API_TOKEN, API_TOKEN_EXPIRED, API_TOKEN_REVOKED): the API key is missing, invalid or revoked. Send a valid key as X-API-Key or as a Bearer token.
51785
53298
  */
51786
- 401: unknown;
53299
+ 401: AgentError;
51787
53300
  /**
51788
53301
  * 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.
51789
53302
  */
51790
- 403: unknown;
53303
+ 403: AgentError;
51791
53304
  /**
51792
53305
  * Deployment not found. Take ids from deployments.create or deployments.list.
51793
53306
  */
51794
- 404: unknown;
53307
+ 404: AgentError;
51795
53308
  };
53309
+ export type DeploymentsRetrieveError = DeploymentsRetrieveErrors[keyof DeploymentsRetrieveErrors];
51796
53310
  export type DeploymentsRetrieveResponses = {
51797
53311
  /**
51798
53312
  * Successful response
@@ -51815,7 +53329,7 @@ export type DeploymentsRetrieveResponses = {
51815
53329
  */
51816
53330
  type: 'agent';
51817
53331
  /**
51818
- * The agent's current version. Starts at 1 and increments each time the agent is modified.
53332
+ * 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.
51819
53333
  */
51820
53334
  version: number;
51821
53335
  } | {
@@ -52054,24 +53568,25 @@ export type DeploymentsUpdateErrors = {
52054
53568
  /**
52055
53569
  * The body failed validation and the message names the field.
52056
53570
  */
52057
- 400: unknown;
53571
+ 400: AgentError;
52058
53572
  /**
52059
- * The API key is missing, invalid or revoked. Send a valid key as X-API-Key or as a Bearer token.
53573
+ * UNAUTHENTICATED (or INVALID_API_KEY, API_KEY_DISABLED, API_KEY_EXPIRED, INVALID_API_TOKEN, API_TOKEN_EXPIRED, API_TOKEN_REVOKED): the API key is missing, invalid or revoked. Send a valid key as X-API-Key or as a Bearer token.
52060
53574
  */
52061
- 401: unknown;
53575
+ 401: AgentError;
52062
53576
  /**
52063
53577
  * 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.
52064
53578
  */
52065
- 403: unknown;
53579
+ 403: AgentError;
52066
53580
  /**
52067
53581
  * Deployment not found. Take ids from deployments.create or deployments.list.
52068
53582
  */
52069
- 404: unknown;
53583
+ 404: AgentError;
52070
53584
  /**
52071
53585
  * The deployment is archived and cannot be updated.
52072
53586
  */
52073
- 409: unknown;
53587
+ 409: AgentError;
52074
53588
  };
53589
+ export type DeploymentsUpdateError = DeploymentsUpdateErrors[keyof DeploymentsUpdateErrors];
52075
53590
  export type DeploymentsUpdateResponses = {
52076
53591
  /**
52077
53592
  * Successful response
@@ -52094,7 +53609,7 @@ export type DeploymentsUpdateResponses = {
52094
53609
  */
52095
53610
  type: 'agent';
52096
53611
  /**
52097
- * The agent's current version. Starts at 1 and increments each time the agent is modified.
53612
+ * 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.
52098
53613
  */
52099
53614
  version: number;
52100
53615
  } | {
@@ -52228,18 +53743,19 @@ export type DeploymentsArchiveData = {
52228
53743
  };
52229
53744
  export type DeploymentsArchiveErrors = {
52230
53745
  /**
52231
- * The API key is missing, invalid or revoked. Send a valid key as X-API-Key or as a Bearer token.
53746
+ * UNAUTHENTICATED (or INVALID_API_KEY, API_KEY_DISABLED, API_KEY_EXPIRED, INVALID_API_TOKEN, API_TOKEN_EXPIRED, API_TOKEN_REVOKED): the API key is missing, invalid or revoked. Send a valid key as X-API-Key or as a Bearer token.
52232
53747
  */
52233
- 401: unknown;
53748
+ 401: AgentError;
52234
53749
  /**
52235
53750
  * 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.
52236
53751
  */
52237
- 403: unknown;
53752
+ 403: AgentError;
52238
53753
  /**
52239
53754
  * Deployment not found. Take ids from deployments.create or deployments.list.
52240
53755
  */
52241
- 404: unknown;
53756
+ 404: AgentError;
52242
53757
  };
53758
+ export type DeploymentsArchiveError = DeploymentsArchiveErrors[keyof DeploymentsArchiveErrors];
52243
53759
  export type DeploymentsArchiveResponses = {
52244
53760
  /**
52245
53761
  * Successful response
@@ -52262,7 +53778,7 @@ export type DeploymentsArchiveResponses = {
52262
53778
  */
52263
53779
  type: 'agent';
52264
53780
  /**
52265
- * The agent's current version. Starts at 1 and increments each time the agent is modified.
53781
+ * 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.
52266
53782
  */
52267
53783
  version: number;
52268
53784
  } | {
@@ -52396,22 +53912,23 @@ export type DeploymentsPauseData = {
52396
53912
  };
52397
53913
  export type DeploymentsPauseErrors = {
52398
53914
  /**
52399
- * The API key is missing, invalid or revoked. Send a valid key as X-API-Key or as a Bearer token.
53915
+ * UNAUTHENTICATED (or INVALID_API_KEY, API_KEY_DISABLED, API_KEY_EXPIRED, INVALID_API_TOKEN, API_TOKEN_EXPIRED, API_TOKEN_REVOKED): the API key is missing, invalid or revoked. Send a valid key as X-API-Key or as a Bearer token.
52400
53916
  */
52401
- 401: unknown;
53917
+ 401: AgentError;
52402
53918
  /**
52403
53919
  * 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.
52404
53920
  */
52405
- 403: unknown;
53921
+ 403: AgentError;
52406
53922
  /**
52407
53923
  * Deployment not found. Take ids from deployments.create or deployments.list.
52408
53924
  */
52409
- 404: unknown;
53925
+ 404: AgentError;
52410
53926
  /**
52411
53927
  * The deployment is archived.
52412
53928
  */
52413
- 409: unknown;
53929
+ 409: AgentError;
52414
53930
  };
53931
+ export type DeploymentsPauseError = DeploymentsPauseErrors[keyof DeploymentsPauseErrors];
52415
53932
  export type DeploymentsPauseResponses = {
52416
53933
  /**
52417
53934
  * Successful response
@@ -52434,7 +53951,7 @@ export type DeploymentsPauseResponses = {
52434
53951
  */
52435
53952
  type: 'agent';
52436
53953
  /**
52437
- * The agent's current version. Starts at 1 and increments each time the agent is modified.
53954
+ * 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.
52438
53955
  */
52439
53956
  version: number;
52440
53957
  } | {
@@ -52568,22 +54085,23 @@ export type DeploymentsUnpauseData = {
52568
54085
  };
52569
54086
  export type DeploymentsUnpauseErrors = {
52570
54087
  /**
52571
- * The API key is missing, invalid or revoked. Send a valid key as X-API-Key or as a Bearer token.
54088
+ * UNAUTHENTICATED (or INVALID_API_KEY, API_KEY_DISABLED, API_KEY_EXPIRED, INVALID_API_TOKEN, API_TOKEN_EXPIRED, API_TOKEN_REVOKED): the API key is missing, invalid or revoked. Send a valid key as X-API-Key or as a Bearer token.
52572
54089
  */
52573
- 401: unknown;
54090
+ 401: AgentError;
52574
54091
  /**
52575
54092
  * 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.
52576
54093
  */
52577
- 403: unknown;
54094
+ 403: AgentError;
52578
54095
  /**
52579
54096
  * Deployment not found. Take ids from deployments.create or deployments.list.
52580
54097
  */
52581
- 404: unknown;
54098
+ 404: AgentError;
52582
54099
  /**
52583
54100
  * The deployment is archived.
52584
54101
  */
52585
- 409: unknown;
54102
+ 409: AgentError;
52586
54103
  };
54104
+ export type DeploymentsUnpauseError = DeploymentsUnpauseErrors[keyof DeploymentsUnpauseErrors];
52587
54105
  export type DeploymentsUnpauseResponses = {
52588
54106
  /**
52589
54107
  * Successful response
@@ -52606,7 +54124,7 @@ export type DeploymentsUnpauseResponses = {
52606
54124
  */
52607
54125
  type: 'agent';
52608
54126
  /**
52609
- * The agent's current version. Starts at 1 and increments each time the agent is modified.
54127
+ * 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.
52610
54128
  */
52611
54129
  version: number;
52612
54130
  } | {
@@ -52774,16 +54292,17 @@ export type DeploymentRunsListErrors = {
52774
54292
  /**
52775
54293
  * A filter value is invalid, or limit or page is invalid.
52776
54294
  */
52777
- 400: unknown;
54295
+ 400: AgentError;
52778
54296
  /**
52779
- * The API key is missing, invalid or revoked. Send a valid key as X-API-Key or as a Bearer token.
54297
+ * UNAUTHENTICATED (or INVALID_API_KEY, API_KEY_DISABLED, API_KEY_EXPIRED, INVALID_API_TOKEN, API_TOKEN_EXPIRED, API_TOKEN_REVOKED): the API key is missing, invalid or revoked. Send a valid key as X-API-Key or as a Bearer token.
52780
54298
  */
52781
- 401: unknown;
54299
+ 401: AgentError;
52782
54300
  /**
52783
54301
  * 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.
52784
54302
  */
52785
- 403: unknown;
54303
+ 403: AgentError;
52786
54304
  };
54305
+ export type DeploymentRunsListError = DeploymentRunsListErrors[keyof DeploymentRunsListErrors];
52787
54306
  export type DeploymentRunsListResponses = {
52788
54307
  /**
52789
54308
  * Successful response
@@ -52813,18 +54332,19 @@ export type DeploymentRunsRetrieveData = {
52813
54332
  };
52814
54333
  export type DeploymentRunsRetrieveErrors = {
52815
54334
  /**
52816
- * The API key is missing, invalid or revoked. Send a valid key as X-API-Key or as a Bearer token.
54335
+ * UNAUTHENTICATED (or INVALID_API_KEY, API_KEY_DISABLED, API_KEY_EXPIRED, INVALID_API_TOKEN, API_TOKEN_EXPIRED, API_TOKEN_REVOKED): the API key is missing, invalid or revoked. Send a valid key as X-API-Key or as a Bearer token.
52817
54336
  */
52818
- 401: unknown;
54337
+ 401: AgentError;
52819
54338
  /**
52820
54339
  * 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.
52821
54340
  */
52822
- 403: unknown;
54341
+ 403: AgentError;
52823
54342
  /**
52824
54343
  * Deployment run not found. Take ids from deployments.run or deployment_runs.list.
52825
54344
  */
52826
- 404: unknown;
54345
+ 404: AgentError;
52827
54346
  };
54347
+ export type DeploymentRunsRetrieveError = DeploymentRunsRetrieveErrors[keyof DeploymentRunsRetrieveErrors];
52828
54348
  export type DeploymentRunsRetrieveResponses = {
52829
54349
  /**
52830
54350
  * Successful response
@@ -52845,22 +54365,23 @@ export type DeploymentsRunData = {
52845
54365
  };
52846
54366
  export type DeploymentsRunErrors = {
52847
54367
  /**
52848
- * The API key is missing, invalid or revoked. Send a valid key as X-API-Key or as a Bearer token.
54368
+ * UNAUTHENTICATED (or INVALID_API_KEY, API_KEY_DISABLED, API_KEY_EXPIRED, INVALID_API_TOKEN, API_TOKEN_EXPIRED, API_TOKEN_REVOKED): the API key is missing, invalid or revoked. Send a valid key as X-API-Key or as a Bearer token.
52849
54369
  */
52850
- 401: unknown;
54370
+ 401: AgentError;
52851
54371
  /**
52852
54372
  * 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.
52853
54373
  */
52854
- 403: unknown;
54374
+ 403: AgentError;
52855
54375
  /**
52856
54376
  * Deployment not found. Take ids from deployments.create or deployments.list.
52857
54377
  */
52858
- 404: unknown;
54378
+ 404: AgentError;
52859
54379
  /**
52860
54380
  * The deployment is paused or archived; unpause it first. No run was recorded.
52861
54381
  */
52862
- 409: unknown;
54382
+ 409: AgentError;
52863
54383
  };
54384
+ export type DeploymentsRunError = DeploymentsRunErrors[keyof DeploymentsRunErrors];
52864
54385
  export type DeploymentsRunResponses = {
52865
54386
  /**
52866
54387
  * Successful response
@@ -52891,18 +54412,19 @@ export type SkillsListData = {
52891
54412
  };
52892
54413
  export type SkillsListErrors = {
52893
54414
  /**
52894
- * 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.
54415
+ * source is not custom or anthropic, or INVALID_PARAMS when limit is not an integer from 1 to 100 (limit must be an integer between 1 and 100), or INVALID_PAGE_TOKEN when page is not a cursor from this same query (restart from the first page). Pass next_page unchanged, with the same filters, to continue.
52895
54416
  */
52896
- 400: unknown;
54417
+ 400: AgentError;
52897
54418
  /**
52898
- * The API key is missing, invalid or revoked. Send a valid key as X-API-Key or as a Bearer token.
54419
+ * UNAUTHENTICATED (or INVALID_API_KEY, API_KEY_DISABLED, API_KEY_EXPIRED, INVALID_API_TOKEN, API_TOKEN_EXPIRED, API_TOKEN_REVOKED): the API key is missing, invalid or revoked. Send a valid key as X-API-Key or as a Bearer token.
52899
54420
  */
52900
- 401: unknown;
54421
+ 401: AgentError;
52901
54422
  /**
52902
54423
  * 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.
52903
54424
  */
52904
- 403: unknown;
54425
+ 403: AgentError;
52905
54426
  };
54427
+ export type SkillsListError = SkillsListErrors[keyof SkillsListErrors];
52906
54428
  export type SkillsListResponses = {
52907
54429
  /**
52908
54430
  * Successful response
@@ -52943,20 +54465,21 @@ export type SkillsCreateErrors = {
52943
54465
  /**
52944
54466
  * 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.
52945
54467
  */
52946
- 400: unknown;
54468
+ 400: AgentError;
52947
54469
  /**
52948
- * The API key is missing, invalid or revoked. Send a valid key as X-API-Key or as a Bearer token.
54470
+ * UNAUTHENTICATED (or INVALID_API_KEY, API_KEY_DISABLED, API_KEY_EXPIRED, INVALID_API_TOKEN, API_TOKEN_EXPIRED, API_TOKEN_REVOKED): the API key is missing, invalid or revoked. Send a valid key as X-API-Key or as a Bearer token.
52949
54471
  */
52950
- 401: unknown;
54472
+ 401: AgentError;
52951
54473
  /**
52952
54474
  * 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.
52953
54475
  */
52954
- 403: unknown;
54476
+ 403: AgentError;
52955
54477
  /**
52956
54478
  * Skill storage is unavailable. Retry later.
52957
54479
  */
52958
- 502: unknown;
54480
+ 502: AgentError;
52959
54481
  };
54482
+ export type SkillsCreateError = SkillsCreateErrors[keyof SkillsCreateErrors];
52960
54483
  export type SkillsCreateResponses = {
52961
54484
  /**
52962
54485
  * Successful response
@@ -52977,22 +54500,23 @@ export type SkillsDeleteData = {
52977
54500
  };
52978
54501
  export type SkillsDeleteErrors = {
52979
54502
  /**
52980
- * The API key is missing, invalid or revoked. Send a valid key as X-API-Key or as a Bearer token.
54503
+ * UNAUTHENTICATED (or INVALID_API_KEY, API_KEY_DISABLED, API_KEY_EXPIRED, INVALID_API_TOKEN, API_TOKEN_EXPIRED, API_TOKEN_REVOKED): the API key is missing, invalid or revoked. Send a valid key as X-API-Key or as a Bearer token.
52981
54504
  */
52982
- 401: unknown;
54505
+ 401: AgentError;
52983
54506
  /**
52984
54507
  * 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.
52985
54508
  */
52986
- 403: unknown;
54509
+ 403: AgentError;
52987
54510
  /**
52988
- * Skill not found, deleted, or owned by another organization. Take ids from skills.list.
54511
+ * SKILL_NOT_FOUND: the skill does not exist, was deleted, or is owned by another organization. Take ids from skills.list.
52989
54512
  */
52990
- 404: unknown;
54513
+ 404: AgentError;
52991
54514
  /**
52992
- * Delete all versions first, or RESOURCE_IN_USE: a non-archived agent still attaches the skill; the message names up to 10 agent ids.
54515
+ * RESOURCE_IN_USE: a non-archived agent still attaches the skill; the message names up to 10 agent ids.
52993
54516
  */
52994
- 409: unknown;
54517
+ 409: AgentError;
52995
54518
  };
54519
+ export type SkillsDeleteError = SkillsDeleteErrors[keyof SkillsDeleteErrors];
52996
54520
  export type SkillsDeleteResponses = {
52997
54521
  /**
52998
54522
  * Successful response
@@ -53013,18 +54537,19 @@ export type SkillsRetrieveData = {
53013
54537
  };
53014
54538
  export type SkillsRetrieveErrors = {
53015
54539
  /**
53016
- * The API key is missing, invalid or revoked. Send a valid key as X-API-Key or as a Bearer token.
54540
+ * UNAUTHENTICATED (or INVALID_API_KEY, API_KEY_DISABLED, API_KEY_EXPIRED, INVALID_API_TOKEN, API_TOKEN_EXPIRED, API_TOKEN_REVOKED): the API key is missing, invalid or revoked. Send a valid key as X-API-Key or as a Bearer token.
53017
54541
  */
53018
- 401: unknown;
54542
+ 401: AgentError;
53019
54543
  /**
53020
54544
  * 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.
53021
54545
  */
53022
- 403: unknown;
54546
+ 403: AgentError;
53023
54547
  /**
53024
- * Skill not found, deleted, or owned by another organization. Take ids from skills.list.
54548
+ * SKILL_NOT_FOUND: the skill does not exist, was deleted, or is owned by another organization. Take ids from skills.list.
53025
54549
  */
53026
- 404: unknown;
54550
+ 404: AgentError;
53027
54551
  };
54552
+ export type SkillsRetrieveError = SkillsRetrieveErrors[keyof SkillsRetrieveErrors];
53028
54553
  export type SkillsRetrieveResponses = {
53029
54554
  /**
53030
54555
  * Successful response
@@ -53051,22 +54576,23 @@ export type SkillsVersionsListData = {
53051
54576
  };
53052
54577
  export type SkillsVersionsListErrors = {
53053
54578
  /**
53054
- * 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.
54579
+ * INVALID_PARAMS when limit is not an integer from 1 to 100 (limit must be an integer between 1 and 100), or INVALID_PAGE_TOKEN when page is not a cursor from this same query (restart from the first page). Pass next_page unchanged, with the same filters, to continue.
53055
54580
  */
53056
- 400: unknown;
54581
+ 400: AgentError;
53057
54582
  /**
53058
- * The API key is missing, invalid or revoked. Send a valid key as X-API-Key or as a Bearer token.
54583
+ * UNAUTHENTICATED (or INVALID_API_KEY, API_KEY_DISABLED, API_KEY_EXPIRED, INVALID_API_TOKEN, API_TOKEN_EXPIRED, API_TOKEN_REVOKED): the API key is missing, invalid or revoked. Send a valid key as X-API-Key or as a Bearer token.
53059
54584
  */
53060
- 401: unknown;
54585
+ 401: AgentError;
53061
54586
  /**
53062
54587
  * 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.
53063
54588
  */
53064
- 403: unknown;
54589
+ 403: AgentError;
53065
54590
  /**
53066
- * Skill not found, deleted, or owned by another organization. Take ids from skills.list.
54591
+ * SKILL_NOT_FOUND: the skill does not exist, was deleted, or is owned by another organization. Take ids from skills.list.
53067
54592
  */
53068
- 404: unknown;
54593
+ 404: AgentError;
53069
54594
  };
54595
+ export type SkillsVersionsListError = SkillsVersionsListErrors[keyof SkillsVersionsListErrors];
53070
54596
  export type SkillsVersionsListResponses = {
53071
54597
  /**
53072
54598
  * Successful response
@@ -53106,24 +54632,25 @@ export type SkillsVersionsCreateErrors = {
53106
54632
  /**
53107
54633
  * The upload is invalid (same rules as skills.create), or the SKILL.md name differs from the skill's name.
53108
54634
  */
53109
- 400: unknown;
54635
+ 400: AgentError;
53110
54636
  /**
53111
- * The API key is missing, invalid or revoked. Send a valid key as X-API-Key or as a Bearer token.
54637
+ * UNAUTHENTICATED (or INVALID_API_KEY, API_KEY_DISABLED, API_KEY_EXPIRED, INVALID_API_TOKEN, API_TOKEN_EXPIRED, API_TOKEN_REVOKED): the API key is missing, invalid or revoked. Send a valid key as X-API-Key or as a Bearer token.
53112
54638
  */
53113
- 401: unknown;
54639
+ 401: AgentError;
53114
54640
  /**
53115
54641
  * 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.
53116
54642
  */
53117
- 403: unknown;
54643
+ 403: AgentError;
53118
54644
  /**
53119
- * Skill not found, deleted, or owned by another organization. Take ids from skills.list.
54645
+ * SKILL_NOT_FOUND: the skill does not exist, was deleted, or is owned by another organization. Take ids from skills.list.
53120
54646
  */
53121
- 404: unknown;
54647
+ 404: AgentError;
53122
54648
  /**
53123
54649
  * Skill storage is unavailable. Retry later.
53124
54650
  */
53125
- 502: unknown;
54651
+ 502: AgentError;
53126
54652
  };
54653
+ export type SkillsVersionsCreateError = SkillsVersionsCreateErrors[keyof SkillsVersionsCreateErrors];
53127
54654
  export type SkillsVersionsCreateResponses = {
53128
54655
  /**
53129
54656
  * Successful response
@@ -53148,22 +54675,23 @@ export type SkillsVersionsDeleteData = {
53148
54675
  };
53149
54676
  export type SkillsVersionsDeleteErrors = {
53150
54677
  /**
53151
- * The API key is missing, invalid or revoked. Send a valid key as X-API-Key or as a Bearer token.
54678
+ * UNAUTHENTICATED (or INVALID_API_KEY, API_KEY_DISABLED, API_KEY_EXPIRED, INVALID_API_TOKEN, API_TOKEN_EXPIRED, API_TOKEN_REVOKED): the API key is missing, invalid or revoked. Send a valid key as X-API-Key or as a Bearer token.
53152
54679
  */
53153
- 401: unknown;
54680
+ 401: AgentError;
53154
54681
  /**
53155
54682
  * 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.
53156
54683
  */
53157
- 403: unknown;
54684
+ 403: AgentError;
53158
54685
  /**
53159
- * Skill or version not found. Take version ids from skills.versions.list.
54686
+ * SKILL_NOT_FOUND or SKILL_VERSION_NOT_FOUND. Take version ids from skills.versions.list.
53160
54687
  */
53161
- 404: unknown;
54688
+ 404: AgentError;
53162
54689
  /**
53163
- * RESOURCE_IN_USE: a non-archived agent pins this version, or attaches the skill without a pin and this is its last version; the message names the agents.
54690
+ * 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.
53164
54691
  */
53165
- 409: unknown;
54692
+ 409: AgentError;
53166
54693
  };
54694
+ export type SkillsVersionsDeleteError = SkillsVersionsDeleteErrors[keyof SkillsVersionsDeleteErrors];
53167
54695
  export type SkillsVersionsDeleteResponses = {
53168
54696
  /**
53169
54697
  * Successful response
@@ -53188,18 +54716,19 @@ export type SkillsVersionsRetrieveData = {
53188
54716
  };
53189
54717
  export type SkillsVersionsRetrieveErrors = {
53190
54718
  /**
53191
- * The API key is missing, invalid or revoked. Send a valid key as X-API-Key or as a Bearer token.
54719
+ * UNAUTHENTICATED (or INVALID_API_KEY, API_KEY_DISABLED, API_KEY_EXPIRED, INVALID_API_TOKEN, API_TOKEN_EXPIRED, API_TOKEN_REVOKED): the API key is missing, invalid or revoked. Send a valid key as X-API-Key or as a Bearer token.
53192
54720
  */
53193
- 401: unknown;
54721
+ 401: AgentError;
53194
54722
  /**
53195
54723
  * 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.
53196
54724
  */
53197
- 403: unknown;
54725
+ 403: AgentError;
53198
54726
  /**
53199
- * Skill or version not found. Take version ids from skills.versions.list.
54727
+ * SKILL_NOT_FOUND or SKILL_VERSION_NOT_FOUND. Take version ids from skills.versions.list.
53200
54728
  */
53201
- 404: unknown;
54729
+ 404: AgentError;
53202
54730
  };
54731
+ export type SkillsVersionsRetrieveError = SkillsVersionsRetrieveErrors[keyof SkillsVersionsRetrieveErrors];
53203
54732
  export type SkillsVersionsRetrieveResponses = {
53204
54733
  /**
53205
54734
  * Successful response
@@ -53224,18 +54753,19 @@ export type SkillsVersionsDownloadData = {
53224
54753
  };
53225
54754
  export type SkillsVersionsDownloadErrors = {
53226
54755
  /**
53227
- * The API key is missing, invalid or revoked. Send a valid key as X-API-Key or as a Bearer token.
54756
+ * UNAUTHENTICATED (or INVALID_API_KEY, API_KEY_DISABLED, API_KEY_EXPIRED, INVALID_API_TOKEN, API_TOKEN_EXPIRED, API_TOKEN_REVOKED): the API key is missing, invalid or revoked. Send a valid key as X-API-Key or as a Bearer token.
53228
54757
  */
53229
- 401: unknown;
54758
+ 401: AgentError;
53230
54759
  /**
53231
54760
  * 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.
53232
54761
  */
53233
- 403: unknown;
54762
+ 403: AgentError;
53234
54763
  /**
53235
- * Skill or version not found, or the version was deleted. Take version ids from skills.versions.list.
54764
+ * SKILL_NOT_FOUND or SKILL_VERSION_NOT_FOUND. Take version ids from skills.versions.list. A deleted version answers the same.
53236
54765
  */
53237
- 404: unknown;
54766
+ 404: AgentError;
53238
54767
  };
54768
+ export type SkillsVersionsDownloadError = SkillsVersionsDownloadErrors[keyof SkillsVersionsDownloadErrors];
53239
54769
  export type SkillsVersionsDownloadResponses = {
53240
54770
  /**
53241
54771
  * Binary response body