@naturali/sdk 0.269.0 → 0.270.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts CHANGED
@@ -389,7 +389,7 @@ type ErrorResponse = {
389
389
  */
390
390
  error: {
391
391
  /**
392
- * Machine-readable error code: lower_snake for an error naturali raises (`access_denied`), UPPER_SNAKE for one the runtime reports (`RESOURCE_NOT_FOUND`).
392
+ * Machine-readable error code, UPPER_SNAKE whether naturali or the runtime raises it.
393
393
  */
394
394
  code: string;
395
395
  /**
@@ -397,13 +397,7 @@ type ErrorResponse = {
397
397
  */
398
398
  message: string;
399
399
  /**
400
- * Structured context for an error naturali raises, such as the `resource` and `limit` of a `plan_limit_reached`.
401
- */
402
- details?: {
403
- [key: string]: unknown;
404
- };
405
- /**
406
- * Structured context for an error the runtime reports.
400
+ * Structured context, such as the `resource` and `limit` of a `PLAN_LIMIT_REACHED`.
407
401
  */
408
402
  meta?: {
409
403
  [key: string]: unknown;
@@ -619,7 +613,7 @@ type AdminUser = User & {
619
613
  */
620
614
  spend_reconciled_at: Date | null;
621
615
  /**
622
- * The account's indexed-storage pool, in the metered gigabytes the ceiling is enforced in — the raw file plus every chunk's text and its embedding vector, so not the size of what you uploaded. Pooled across every project the account pays for; per project, read the `gb_day` component of `GET /v1/projects/{project_id}/usage`. An ingest past `limit` is refused with `403 plan_limit_reached`, `resource: "storage"`, whose `meta` carries the same `limit` and `used`.
616
+ * The account's indexed-storage pool, in the metered gigabytes the ceiling is enforced in — the raw file plus every chunk's text and its embedding vector, so not the size of what you uploaded. Pooled across every project the account pays for; per project, read the `gb_day` component of `GET /v1/projects/{project_id}/usage`. An ingest past `limit` is refused with `403 PLAN_LIMIT_REACHED`, `resource: "storage"`, whose `meta` carries the same `limit` and `used`.
623
617
  */
624
618
  storage: {
625
619
  /**
@@ -710,7 +704,7 @@ type UserUsage = {
710
704
  */
711
705
  pending_spend_usd: number | null;
712
706
  /**
713
- * The credit balance less `pending_spend_usd`. A managed generation can be refused with `402 insufficient_credit` while the credit balance still reads positive; while this is zero or above, none is. Check it before starting work that runs several generations. `null` when `pending_spend_usd` is.
707
+ * The credit balance less `pending_spend_usd`. A managed generation can be refused with `402 INSUFFICIENT_CREDIT` while the credit balance still reads positive; while this is zero or above, none is. Check it before starting work that runs several generations. `null` when `pending_spend_usd` is.
714
708
  */
715
709
  spendable_balance_usd: number | null;
716
710
  /**
@@ -754,7 +748,7 @@ type AccountProjectUsage = {
754
748
  pending_spend_usd: number | null;
755
749
  };
756
750
  /**
757
- * Each plan-limited resource, counted across every project the account pays for, beside the rung's ceiling — keyed by the `resource` a `403 plan_limit_reached` names, whose `details` carry the same `used` and `limit`.
751
+ * Each plan-limited resource, counted across every project the account pays for, beside the rung's ceiling — keyed by the `resource` a `403 PLAN_LIMIT_REACHED` names, whose `meta` carries the same `used` and `limit`.
758
752
  */
759
753
  type UsageLimits = {
760
754
  projects: UsageLimit;
@@ -2696,7 +2690,7 @@ type Channel = {
2696
2690
  */
2697
2691
  gateway_error: {
2698
2692
  /**
2699
- * `invalid_bot_token` — the token was reset or revoked. `disallowed_intents` — `mention_threads` needs the privileged Message Content intent enabled on the Discord application.
2693
+ * `INVALID_BOT_TOKEN` — the token was reset or revoked. `disallowed_intents` — `mention_threads` needs the privileged Message Content intent enabled on the Discord application.
2700
2694
  *
2701
2695
  */
2702
2696
  code: 'invalid_bot_token' | 'disallowed_intents' | 'gateway_rejected';
@@ -2734,7 +2728,7 @@ type ChannelCreate = {
2734
2728
  /**
2735
2729
  * Deduplication key, unique within your account, that makes a retry of an ambiguous failure safe. The first request under a key performs the write and answers `201`; any later request carrying the same key answers `200` with that same result, so a timeout you cannot interpret can simply be retried.
2736
2730
  *
2737
- * The key is claimed for as long as the record exists and never silently expires. Reusing one with a different request body is `409 idempotency_key_reused` — a key names one request, so changing the body and keeping the key is a bug rather than a retry. A retry that arrives while the original is still in flight is `409 idempotency_request_in_progress`.
2731
+ * The key is claimed for as long as the record exists and never silently expires. Reusing one with a different request body is `409 IDEMPOTENCY_KEY_REUSED` — a key names one request, so changing the body and keeping the key is a bug rather than a retry. A retry that arrives while the original is still in flight is `409 IDEMPOTENCY_REQUEST_IN_PROGRESS`.
2738
2732
  */
2739
2733
  idempotency_key?: string;
2740
2734
  default: ChannelActionInput & unknown;
@@ -2755,7 +2749,7 @@ type ChannelCreate = {
2755
2749
  */
2756
2750
  access_token?: string;
2757
2751
  /**
2758
- * Required for `embedded_signup`. The short-lived authorization code from the Meta popup; naturali exchanges it for the access token server-side. Never stored or returned. A code Meta rejects (malformed, expired or already used) is `400 invalid_signup_code`.
2752
+ * Required for `embedded_signup`. The short-lived authorization code from the Meta popup; naturali exchanges it for the access token server-side. Never stored or returned. A code Meta rejects (malformed, expired or already used) is `400 INVALID_SIGNUP_CODE`.
2759
2753
  *
2760
2754
  */
2761
2755
  code?: string;
@@ -6827,7 +6821,7 @@ type McpServerCreate = {
6827
6821
  context?: McpContext;
6828
6822
  auth: McpServerAuthWrite;
6829
6823
  /**
6830
- * Tool calls per UTC day, over every caller; past it a call is `429 mcp_daily_limit_reached`. Required for `none`.
6824
+ * Tool calls per UTC day, over every caller; past it a call is `429 QUOTA_EXCEEDED`. Required for `none`.
6831
6825
  */
6832
6826
  daily_call_limit?: number | null;
6833
6827
  };
@@ -8624,7 +8618,7 @@ type ProjectCreate = {
8624
8618
  /**
8625
8619
  * Deduplication key, unique within your account, that makes a retry of an ambiguous failure safe. The first request under a key performs the write and answers `201`; any later request carrying the same key answers `200` with that same result, so a timeout you cannot interpret can simply be retried.
8626
8620
  *
8627
- * The key is claimed for as long as the record exists and never silently expires. Reusing one with a different request body is `409 idempotency_key_reused` — a key names one request, so changing the body and keeping the key is a bug rather than a retry. A retry that arrives while the original is still in flight is `409 idempotency_request_in_progress`.
8621
+ * The key is claimed for as long as the record exists and never silently expires. Reusing one with a different request body is `409 IDEMPOTENCY_KEY_REUSED` — a key names one request, so changing the body and keeping the key is a bug rather than a retry. A retry that arrives while the original is still in flight is `409 IDEMPOTENCY_REQUEST_IN_PROGRESS`.
8628
8622
  */
8629
8623
  idempotency_key?: string;
8630
8624
  };
@@ -8637,7 +8631,7 @@ type ProjectUpdate = {
8637
8631
  /**
8638
8632
  * Days of trace and generation content retention before the daily sweep purges it. Send `null` to disable retention (content is then kept until purged on demand). Omitting the field leaves the current window unchanged — `null` and absent are different instructions.
8639
8633
  *
8640
- * Bounded by your plan: a window longer than the plan allows, and `null` on any plan that sets a window, respond `403` `plan_limit_reached`.
8634
+ * Bounded by your plan: a window longer than the plan allows, and `null` on any plan that sets a window, respond `403` `PLAN_LIMIT_REACHED`.
8641
8635
  *
8642
8636
  */
8643
8637
  trace_content_retention_days?: number | null;
@@ -10085,7 +10079,7 @@ type UserBilling = {
10085
10079
  */
10086
10080
  next_plan: 'free' | 'pro' | 'business' | 'enterprise';
10087
10081
  /**
10088
- * The longest window a project of this account may keep trace and generation content for, in days. A `PATCH` asking for a wider one — `null` included, which keeps content indefinitely — is refused with `403 plan_limit_reached`; anything shorter is always allowed. On a plan whose window a contract sets, this is that contract's figure, and `null` means nothing bounds it. A plan change that shortens the window applies at the end of the billing cycle, so this reads as the widest window held during the current one.
10082
+ * The longest window a project of this account may keep trace and generation content for, in days. A `PATCH` asking for a wider one — `null` included, which keeps content indefinitely — is refused with `403 PLAN_LIMIT_REACHED`; anything shorter is always allowed. On a plan whose window a contract sets, this is that contract's figure, and `null` means nothing bounds it. A plan change that shortens the window applies at the end of the billing cycle, so this reads as the widest window held during the current one.
10089
10083
  */
10090
10084
  retention_days: number | null;
10091
10085
  /**
@@ -10097,7 +10091,7 @@ type UserBilling = {
10097
10091
  */
10098
10092
  spend_reconciled_at: Date | null;
10099
10093
  /**
10100
- * The account's indexed-storage pool, in the metered gigabytes the ceiling is enforced in — the raw file plus every chunk's text and its embedding vector, so not the size of what you uploaded. Pooled across every project the account pays for; per project, read the `gb_day` component of `GET /v1/projects/{project_id}/usage`. An ingest past `limit` is refused with `403 plan_limit_reached`, `resource: "storage"`, whose `meta` carries the same `limit` and `used`.
10094
+ * The account's indexed-storage pool, in the metered gigabytes the ceiling is enforced in — the raw file plus every chunk's text and its embedding vector, so not the size of what you uploaded. Pooled across every project the account pays for; per project, read the `gb_day` component of `GET /v1/projects/{project_id}/usage`. An ingest past `limit` is refused with `403 PLAN_LIMIT_REACHED`, `resource: "storage"`, whose `meta` carries the same `limit` and `used`.
10101
10095
  */
10102
10096
  storage: {
10103
10097
  /**
@@ -11121,7 +11115,7 @@ type ListActivityErrors = {
11121
11115
  */
11122
11116
  403: ErrorResponse;
11123
11117
  /**
11124
- * The project does not exist or the caller is not a member of it (`not_found`).
11118
+ * The project does not exist or the caller is not a member of it (`RESOURCE_NOT_FOUND`).
11125
11119
  */
11126
11120
  404: ErrorResponse;
11127
11121
  /**
@@ -11189,7 +11183,7 @@ type ExportActivityErrors = {
11189
11183
  */
11190
11184
  403: ErrorResponse;
11191
11185
  /**
11192
- * The project does not exist or the caller is not a member of it (`not_found`).
11186
+ * The project does not exist or the caller is not a member of it (`RESOURCE_NOT_FOUND`).
11193
11187
  */
11194
11188
  404: ErrorResponse;
11195
11189
  /**
@@ -11269,7 +11263,7 @@ type ListActorsErrors = {
11269
11263
  */
11270
11264
  403: ErrorResponse;
11271
11265
  /**
11272
- * The project does not exist or the caller is not a member of it (`not_found`).
11266
+ * The project does not exist or the caller is not a member of it (`RESOURCE_NOT_FOUND`).
11273
11267
  */
11274
11268
  404: ErrorResponse;
11275
11269
  /**
@@ -11334,7 +11328,7 @@ type CreateActorErrors = {
11334
11328
  */
11335
11329
  403: ErrorResponse;
11336
11330
  /**
11337
- * The project does not exist or the caller is not a member of it (`not_found`).
11331
+ * The project does not exist or the caller is not a member of it (`RESOURCE_NOT_FOUND`).
11338
11332
  */
11339
11333
  404: ErrorResponse;
11340
11334
  /**
@@ -11885,7 +11879,7 @@ type SetAddressErrors = {
11885
11879
  */
11886
11880
  404: ErrorResponse;
11887
11881
  /**
11888
- * `actor_minted_for_address`: `actor_id` names the actor naturali created for another address, which erasing that address would delete.
11882
+ * `ACTOR_MINTED_FOR_ADDRESS`: `actor_id` names the actor naturali created for another address, which erasing that address would delete.
11889
11883
  *
11890
11884
  */
11891
11885
  409: ErrorResponse;
@@ -12341,7 +12335,7 @@ type ListAgentsErrors = {
12341
12335
  */
12342
12336
  403: ErrorResponse;
12343
12337
  /**
12344
- * The project does not exist or the caller is not a member of it (`not_found`).
12338
+ * The project does not exist or the caller is not a member of it (`RESOURCE_NOT_FOUND`).
12345
12339
  */
12346
12340
  404: ErrorResponse;
12347
12341
  /**
@@ -13230,7 +13224,7 @@ type ListAiProvidersErrors = {
13230
13224
  */
13231
13225
  403: ErrorResponse;
13232
13226
  /**
13233
- * The project does not exist or the caller is not a member of it (`not_found`).
13227
+ * The project does not exist or the caller is not a member of it (`RESOURCE_NOT_FOUND`).
13234
13228
  */
13235
13229
  404: ErrorResponse;
13236
13230
  /**
@@ -13354,7 +13348,7 @@ type CreateAiProviderErrors = {
13354
13348
  */
13355
13349
  403: ErrorResponse;
13356
13350
  /**
13357
- * The project does not exist or the caller is not a member of it (`not_found`).
13351
+ * The project does not exist or the caller is not a member of it (`RESOURCE_NOT_FOUND`).
13358
13352
  */
13359
13353
  404: ErrorResponse;
13360
13354
  /**
@@ -13906,7 +13900,7 @@ type DeleteApiKeyErrors = {
13906
13900
  */
13907
13901
  404: ErrorResponse;
13908
13902
  /**
13909
- * `upstream_unavailable`: the runtime did not record the revocation, so the key stays live. Retry.
13903
+ * `UPSTREAM_UNAVAILABLE`: the runtime did not record the revocation, so the key stays live. Retry.
13910
13904
  *
13911
13905
  */
13912
13906
  502: ErrorResponse;
@@ -14072,7 +14066,7 @@ type ListApprovalsErrors = {
14072
14066
  */
14073
14067
  403: ErrorResponse;
14074
14068
  /**
14075
- * The project does not exist or the caller is not a member of it (`not_found`).
14069
+ * The project does not exist or the caller is not a member of it (`RESOURCE_NOT_FOUND`).
14076
14070
  */
14077
14071
  404: ErrorResponse;
14078
14072
  /**
@@ -14136,7 +14130,7 @@ type ListApprovalRecurrencesErrors = {
14136
14130
  */
14137
14131
  403: ErrorResponse;
14138
14132
  /**
14139
- * The project does not exist or the caller is not a member of it (`not_found`).
14133
+ * The project does not exist or the caller is not a member of it (`RESOURCE_NOT_FOUND`).
14140
14134
  */
14141
14135
  404: ErrorResponse;
14142
14136
  /**
@@ -14376,7 +14370,7 @@ type ListAssistantGrantsErrors = {
14376
14370
  */
14377
14371
  401: ErrorResponse;
14378
14372
  /**
14379
- * `access_denied`: the credential is confined to one project. Account routes need an account-wide credential.
14373
+ * `FORBIDDEN`: the credential is confined to one project. Account routes need an account-wide credential.
14380
14374
  */
14381
14375
  403: ErrorResponse;
14382
14376
  };
@@ -14407,7 +14401,7 @@ type RevokeAssistantGrantErrors = {
14407
14401
  */
14408
14402
  401: ErrorResponse;
14409
14403
  /**
14410
- * `access_denied`: the credential is confined to one project. Account routes need an account-wide credential.
14404
+ * `FORBIDDEN`: the credential is confined to one project. Account routes need an account-wide credential.
14411
14405
  */
14412
14406
  403: ErrorResponse;
14413
14407
  /**
@@ -14415,7 +14409,7 @@ type RevokeAssistantGrantErrors = {
14415
14409
  */
14416
14410
  404: ErrorResponse;
14417
14411
  /**
14418
- * `upstream_unavailable`: the runtime did not record the revocation, so the grant stays active. Retry.
14412
+ * `UPSTREAM_UNAVAILABLE`: the runtime did not record the revocation, so the grant stays active. Retry.
14419
14413
  *
14420
14414
  */
14421
14415
  502: ErrorResponse;
@@ -14441,7 +14435,7 @@ type PreviewAssistantLinkData = {
14441
14435
  };
14442
14436
  type PreviewAssistantLinkErrors = {
14443
14437
  /**
14444
- * The token is unknown, expired, or already redeemed (`invalid_token` / `expired_token`). Getting a fresh one means messaging the Assistant again.
14438
+ * The token is unknown, expired, or already redeemed (`LINK_INVALID` / `LINK_EXPIRED`). Getting a fresh one means messaging the Assistant again.
14445
14439
  *
14446
14440
  */
14447
14441
  400: ErrorResponse;
@@ -14450,7 +14444,7 @@ type PreviewAssistantLinkErrors = {
14450
14444
  */
14451
14445
  401: ErrorResponse;
14452
14446
  /**
14453
- * `access_denied`: the credential is confined to one project. Account routes need an account-wide credential.
14447
+ * `FORBIDDEN`: the credential is confined to one project. Account routes need an account-wide credential.
14454
14448
  */
14455
14449
  403: ErrorResponse;
14456
14450
  };
@@ -14470,7 +14464,7 @@ type RedeemAssistantLinkData = {
14470
14464
  };
14471
14465
  type RedeemAssistantLinkErrors = {
14472
14466
  /**
14473
- * The token is missing, unknown, expired, or already redeemed (`invalid_token` / `expired_token`).
14467
+ * The token is missing, unknown, expired, or already redeemed (`LINK_INVALID` / `LINK_EXPIRED`).
14474
14468
  *
14475
14469
  */
14476
14470
  400: ErrorResponse;
@@ -14479,11 +14473,11 @@ type RedeemAssistantLinkErrors = {
14479
14473
  */
14480
14474
  401: ErrorResponse;
14481
14475
  /**
14482
- * `access_denied`: the credential is confined to one project. Account routes need an account-wide credential.
14476
+ * `FORBIDDEN`: the credential is confined to one project. Account routes need an account-wide credential.
14483
14477
  */
14484
14478
  403: ErrorResponse;
14485
14479
  /**
14486
- * The identity is already linked to an account (`identity_already_linked`). One channel identity operates one naturali account: re-pointing it means revoking the existing grant first, which is explicit and auditable rather than silent.
14480
+ * The identity is already linked to an account (`IDENTITY_ALREADY_LINKED`). One channel identity operates one naturali account: re-pointing it means revoking the existing grant first, which is explicit and auditable rather than silent.
14487
14481
  *
14488
14482
  */
14489
14483
  409: ErrorResponse;
@@ -14541,16 +14535,16 @@ type ListAssistantSessionsErrors = {
14541
14535
  */
14542
14536
  401: ErrorResponse;
14543
14537
  /**
14544
- * The credential cannot hold the account's conversation (`access_denied`): it is confined to one project, or it is the Assistant's own turn credential.
14538
+ * The credential cannot hold the account's conversation (`FORBIDDEN`): it is confined to one project, or it is the Assistant's own turn credential.
14545
14539
  *
14546
14540
  */
14547
14541
  403: ErrorResponse;
14548
14542
  /**
14549
- * The turn could not be run or read (`upstream_unavailable`).
14543
+ * The turn could not be run or read (`UPSTREAM_UNAVAILABLE`).
14550
14544
  */
14551
14545
  502: ErrorResponse;
14552
14546
  /**
14553
- * This deployment serves no Assistant conversation (`assistant_unavailable`).
14547
+ * This deployment serves no Assistant conversation (`ASSISTANT_UNAVAILABLE`).
14554
14548
  *
14555
14549
  */
14556
14550
  503: ErrorResponse;
@@ -14577,16 +14571,16 @@ type CreateAssistantSessionErrors = {
14577
14571
  */
14578
14572
  401: ErrorResponse;
14579
14573
  /**
14580
- * The credential cannot hold the account's conversation (`access_denied`): it is confined to one project, or it is the Assistant's own turn credential.
14574
+ * The credential cannot hold the account's conversation (`FORBIDDEN`): it is confined to one project, or it is the Assistant's own turn credential.
14581
14575
  *
14582
14576
  */
14583
14577
  403: ErrorResponse;
14584
14578
  /**
14585
- * The turn could not be run or read (`upstream_unavailable`).
14579
+ * The turn could not be run or read (`UPSTREAM_UNAVAILABLE`).
14586
14580
  */
14587
14581
  502: ErrorResponse;
14588
14582
  /**
14589
- * This deployment serves no Assistant conversation (`assistant_unavailable`).
14583
+ * This deployment serves no Assistant conversation (`ASSISTANT_UNAVAILABLE`).
14590
14584
  *
14591
14585
  */
14592
14586
  503: ErrorResponse;
@@ -14616,7 +14610,7 @@ type DeleteAssistantSessionErrors = {
14616
14610
  */
14617
14611
  401: ErrorResponse;
14618
14612
  /**
14619
- * The credential cannot hold the account's conversation (`access_denied`): it is confined to one project, or it is the Assistant's own turn credential.
14613
+ * The credential cannot hold the account's conversation (`FORBIDDEN`): it is confined to one project, or it is the Assistant's own turn credential.
14620
14614
  *
14621
14615
  */
14622
14616
  403: ErrorResponse;
@@ -14625,11 +14619,11 @@ type DeleteAssistantSessionErrors = {
14625
14619
  */
14626
14620
  404: ErrorResponse;
14627
14621
  /**
14628
- * The turn could not be run or read (`upstream_unavailable`).
14622
+ * The turn could not be run or read (`UPSTREAM_UNAVAILABLE`).
14629
14623
  */
14630
14624
  502: ErrorResponse;
14631
14625
  /**
14632
- * This deployment serves no Assistant conversation (`assistant_unavailable`).
14626
+ * This deployment serves no Assistant conversation (`ASSISTANT_UNAVAILABLE`).
14633
14627
  *
14634
14628
  */
14635
14629
  503: ErrorResponse;
@@ -14668,7 +14662,7 @@ type RenameAssistantSessionErrors = {
14668
14662
  */
14669
14663
  401: ErrorResponse;
14670
14664
  /**
14671
- * The credential cannot hold the account's conversation (`access_denied`): it is confined to one project, or it is the Assistant's own turn credential.
14665
+ * The credential cannot hold the account's conversation (`FORBIDDEN`): it is confined to one project, or it is the Assistant's own turn credential.
14672
14666
  *
14673
14667
  */
14674
14668
  403: ErrorResponse;
@@ -14677,11 +14671,11 @@ type RenameAssistantSessionErrors = {
14677
14671
  */
14678
14672
  404: ErrorResponse;
14679
14673
  /**
14680
- * The turn could not be run or read (`upstream_unavailable`).
14674
+ * The turn could not be run or read (`UPSTREAM_UNAVAILABLE`).
14681
14675
  */
14682
14676
  502: ErrorResponse;
14683
14677
  /**
14684
- * This deployment serves no Assistant conversation (`assistant_unavailable`).
14678
+ * This deployment serves no Assistant conversation (`ASSISTANT_UNAVAILABLE`).
14685
14679
  *
14686
14680
  */
14687
14681
  503: ErrorResponse;
@@ -14724,7 +14718,7 @@ type ListAssistantSessionMessagesErrors = {
14724
14718
  */
14725
14719
  401: ErrorResponse;
14726
14720
  /**
14727
- * The credential cannot hold the account's conversation (`access_denied`): it is confined to one project, or it is the Assistant's own turn credential.
14721
+ * The credential cannot hold the account's conversation (`FORBIDDEN`): it is confined to one project, or it is the Assistant's own turn credential.
14728
14722
  *
14729
14723
  */
14730
14724
  403: ErrorResponse;
@@ -14733,11 +14727,11 @@ type ListAssistantSessionMessagesErrors = {
14733
14727
  */
14734
14728
  404: ErrorResponse;
14735
14729
  /**
14736
- * The turn could not be run or read (`upstream_unavailable`).
14730
+ * The turn could not be run or read (`UPSTREAM_UNAVAILABLE`).
14737
14731
  */
14738
14732
  502: ErrorResponse;
14739
14733
  /**
14740
- * This deployment serves no Assistant conversation (`assistant_unavailable`).
14734
+ * This deployment serves no Assistant conversation (`ASSISTANT_UNAVAILABLE`).
14741
14735
  *
14742
14736
  */
14743
14737
  503: ErrorResponse;
@@ -14774,12 +14768,12 @@ type SendAssistantSessionMessageErrors = {
14774
14768
  */
14775
14769
  401: ErrorResponse;
14776
14770
  /**
14777
- * Your credit balance is below zero (`insufficient_credit`). Top up to message the Assistant again.
14771
+ * Your credit balance is below zero (`INSUFFICIENT_CREDIT`). Top up to message the Assistant again.
14778
14772
  *
14779
14773
  */
14780
14774
  402: ErrorResponse;
14781
14775
  /**
14782
- * The credential cannot hold the account's conversation (`access_denied`): it is confined to one project, or it is the Assistant's own turn credential.
14776
+ * The credential cannot hold the account's conversation (`FORBIDDEN`): it is confined to one project, or it is the Assistant's own turn credential.
14783
14777
  *
14784
14778
  */
14785
14779
  403: ErrorResponse;
@@ -14788,16 +14782,16 @@ type SendAssistantSessionMessageErrors = {
14788
14782
  */
14789
14783
  404: ErrorResponse;
14790
14784
  /**
14791
- * The session is closed or expired (`session_closed`). Start a new conversation to continue.
14785
+ * The session is closed or expired (`SESSION_CLOSED`). Start a new conversation to continue.
14792
14786
  *
14793
14787
  */
14794
14788
  409: ErrorResponse;
14795
14789
  /**
14796
- * The turn could not be run or read (`upstream_unavailable`).
14790
+ * The turn could not be run or read (`UPSTREAM_UNAVAILABLE`).
14797
14791
  */
14798
14792
  502: ErrorResponse;
14799
14793
  /**
14800
- * This deployment serves no Assistant conversation (`assistant_unavailable`).
14794
+ * This deployment serves no Assistant conversation (`ASSISTANT_UNAVAILABLE`).
14801
14795
  *
14802
14796
  */
14803
14797
  503: ErrorResponse;
@@ -14868,7 +14862,7 @@ type ListAuditEntriesErrors = {
14868
14862
  */
14869
14863
  403: ErrorResponse;
14870
14864
  /**
14871
- * The project does not exist or the caller is not a member of it (`not_found`).
14865
+ * The project does not exist or the caller is not a member of it (`RESOURCE_NOT_FOUND`).
14872
14866
  */
14873
14867
  404: ErrorResponse;
14874
14868
  /**
@@ -14940,7 +14934,7 @@ type ExportAuditEntriesErrors = {
14940
14934
  */
14941
14935
  403: ErrorResponse;
14942
14936
  /**
14943
- * The project does not exist or the caller is not a member of it (`not_found`).
14937
+ * The project does not exist or the caller is not a member of it (`RESOURCE_NOT_FOUND`).
14944
14938
  */
14945
14939
  404: ErrorResponse;
14946
14940
  /**
@@ -15041,12 +15035,12 @@ type VerifySignInCodeErrors = {
15041
15035
  */
15042
15036
  400: ErrorResponse;
15043
15037
  /**
15044
- * The code is wrong, expired, or already used (`invalid_token` / `expired_token`).
15038
+ * The code is wrong, expired, or already used (`INVALID_TOKEN` / `EXPIRED_TOKEN`).
15045
15039
  *
15046
15040
  */
15047
15041
  401: ErrorResponse;
15048
15042
  /**
15049
- * Too many incorrect attempts (`too_many_attempts`); the code has been destroyed and a new one must be requested.
15043
+ * Too many incorrect attempts (`TOO_MANY_ATTEMPTS`); the code has been destroyed and a new one must be requested.
15050
15044
  *
15051
15045
  */
15052
15046
  429: ErrorResponse;
@@ -15071,16 +15065,16 @@ type SignInWithGoogleErrors = {
15071
15065
  */
15072
15066
  400: ErrorResponse;
15073
15067
  /**
15074
- * The token is malformed, expired, not signed by Google or issued to another client (`invalid_token`).
15068
+ * The token is malformed, expired, not signed by Google or issued to another client (`INVALID_TOKEN`).
15075
15069
  *
15076
15070
  */
15077
15071
  401: ErrorResponse;
15078
15072
  /**
15079
- * Google has not verified the address (`email_not_verified`).
15073
+ * Google has not verified the address (`EMAIL_NOT_VERIFIED`).
15080
15074
  */
15081
15075
  403: ErrorResponse;
15082
15076
  /**
15083
- * Sign-in with Google is not configured on this deployment (`google_sign_in_not_configured`).
15077
+ * Sign-in with Google is not configured on this deployment (`GOOGLE_SIGN_IN_NOT_CONFIGURED`).
15084
15078
  *
15085
15079
  */
15086
15080
  503: ErrorResponse;
@@ -15101,7 +15095,7 @@ type RefreshSessionData = {
15101
15095
  };
15102
15096
  type RefreshSessionErrors = {
15103
15097
  /**
15104
- * Neither the body nor the cookie carries a refresh token (`bad_request`).
15098
+ * Neither the body nor the cookie carries a refresh token (`VALIDATION_FAILED`).
15105
15099
  *
15106
15100
  */
15107
15101
  400: ErrorResponse;
@@ -15184,7 +15178,7 @@ type ListChainsErrors = {
15184
15178
  */
15185
15179
  403: ErrorResponse;
15186
15180
  /**
15187
- * The project does not exist or the caller is not a member of it (`not_found`).
15181
+ * The project does not exist or the caller is not a member of it (`RESOURCE_NOT_FOUND`).
15188
15182
  */
15189
15183
  404: ErrorResponse;
15190
15184
  /**
@@ -15611,7 +15605,7 @@ type CreateChannelErrors = {
15611
15605
  */
15612
15606
  409: ErrorResponse;
15613
15607
  /**
15614
- * `x_key_registration_limited` — the X bot used its daily chat key registrations; `details.reset_at` says when it may register again.
15608
+ * `X_KEY_REGISTRATION_LIMITED` — the X bot used its daily chat key registrations; `meta.reset_at` says when it may register again.
15615
15609
  *
15616
15610
  */
15617
15611
  429: ErrorResponse;
@@ -16136,7 +16130,7 @@ type ListCollectionsErrors = {
16136
16130
  */
16137
16131
  403: ErrorResponse;
16138
16132
  /**
16139
- * The project does not exist or the caller is not a member of it (`not_found`).
16133
+ * The project does not exist or the caller is not a member of it (`RESOURCE_NOT_FOUND`).
16140
16134
  */
16141
16135
  404: ErrorResponse;
16142
16136
  /**
@@ -16189,7 +16183,7 @@ type CreateCollectionErrors = {
16189
16183
  */
16190
16184
  403: ErrorResponse;
16191
16185
  /**
16192
- * The project does not exist or the caller is not a member of it (`not_found`).
16186
+ * The project does not exist or the caller is not a member of it (`RESOURCE_NOT_FOUND`).
16193
16187
  */
16194
16188
  404: ErrorResponse;
16195
16189
  /**
@@ -17000,7 +16994,7 @@ type ListConversationsErrors = {
17000
16994
  */
17001
16995
  403: ErrorResponse;
17002
16996
  /**
17003
- * The project does not exist or the caller is not a member of it (`not_found`).
16997
+ * The project does not exist or the caller is not a member of it (`RESOURCE_NOT_FOUND`).
17004
16998
  */
17005
16999
  404: ErrorResponse;
17006
17000
  /**
@@ -17064,7 +17058,7 @@ type CreateConversationErrors = {
17064
17058
  */
17065
17059
  403: ErrorResponse;
17066
17060
  /**
17067
- * The project does not exist or the caller is not a member of it (`not_found`).
17061
+ * The project does not exist or the caller is not a member of it (`RESOURCE_NOT_FOUND`).
17068
17062
  */
17069
17063
  404: ErrorResponse;
17070
17064
  /**
@@ -17787,7 +17781,7 @@ type ListDecidersErrors = {
17787
17781
  */
17788
17782
  403: ErrorResponse;
17789
17783
  /**
17790
- * The project does not exist or the caller is not a member of it (`not_found`).
17784
+ * The project does not exist or the caller is not a member of it (`RESOURCE_NOT_FOUND`).
17791
17785
  */
17792
17786
  404: ErrorResponse;
17793
17787
  /**
@@ -17834,7 +17828,7 @@ type CreateDeciderErrors = {
17834
17828
  */
17835
17829
  403: ErrorResponse;
17836
17830
  /**
17837
- * The project does not exist or the caller is not a member of it (`not_found`).
17831
+ * The project does not exist or the caller is not a member of it (`RESOURCE_NOT_FOUND`).
17838
17832
  */
17839
17833
  404: ErrorResponse;
17840
17834
  /**
@@ -18328,7 +18322,7 @@ type ListDecisionsErrors = {
18328
18322
  */
18329
18323
  403: ErrorResponse;
18330
18324
  /**
18331
- * The project does not exist or the caller is not a member of it (`not_found`).
18325
+ * The project does not exist or the caller is not a member of it (`RESOURCE_NOT_FOUND`).
18332
18326
  */
18333
18327
  404: ErrorResponse;
18334
18328
  /**
@@ -18375,7 +18369,7 @@ type CreateInlineDecisionErrors = {
18375
18369
  */
18376
18370
  403: ErrorResponse;
18377
18371
  /**
18378
- * The project does not exist or the caller is not a member of it (`not_found`).
18372
+ * The project does not exist or the caller is not a member of it (`RESOURCE_NOT_FOUND`).
18379
18373
  */
18380
18374
  404: ErrorResponse;
18381
18375
  /**
@@ -18515,7 +18509,7 @@ type ListDocumentsErrors = {
18515
18509
  */
18516
18510
  403: ErrorResponse;
18517
18511
  /**
18518
- * The project does not exist or the caller is not a member of it (`not_found`).
18512
+ * The project does not exist or the caller is not a member of it (`RESOURCE_NOT_FOUND`).
18519
18513
  */
18520
18514
  404: ErrorResponse;
18521
18515
  /**
@@ -18598,7 +18592,7 @@ type CreateDocumentErrors = {
18598
18592
  */
18599
18593
  403: ErrorResponse;
18600
18594
  /**
18601
- * The project does not exist or the caller is not a member of it (`not_found`).
18595
+ * The project does not exist or the caller is not a member of it (`RESOURCE_NOT_FOUND`).
18602
18596
  */
18603
18597
  404: ErrorResponse;
18604
18598
  /**
@@ -18694,7 +18688,7 @@ type IngestDocumentErrors = {
18694
18688
  */
18695
18689
  403: ErrorResponse;
18696
18690
  /**
18697
- * The project does not exist or the caller is not a member of it (`not_found`).
18691
+ * The project does not exist or the caller is not a member of it (`RESOURCE_NOT_FOUND`).
18698
18692
  */
18699
18693
  404: ErrorResponse;
18700
18694
  /**
@@ -18764,7 +18758,7 @@ type ExportDocumentsErrors = {
18764
18758
  */
18765
18759
  403: ErrorResponse;
18766
18760
  /**
18767
- * The project does not exist or the caller is not a member of it (`not_found`).
18761
+ * The project does not exist or the caller is not a member of it (`RESOURCE_NOT_FOUND`).
18768
18762
  */
18769
18763
  404: ErrorResponse;
18770
18764
  /**
@@ -19836,7 +19830,7 @@ type CreateEmbeddingsErrors = {
19836
19830
  */
19837
19831
  403: ErrorResponse;
19838
19832
  /**
19839
- * The project does not exist or the caller is not a member of it (`not_found`).
19833
+ * The project does not exist or the caller is not a member of it (`RESOURCE_NOT_FOUND`).
19840
19834
  */
19841
19835
  404: ErrorResponse;
19842
19836
  /**
@@ -19906,7 +19900,7 @@ type ListDatasetsErrors = {
19906
19900
  */
19907
19901
  403: ErrorResponse;
19908
19902
  /**
19909
- * The project does not exist or the caller is not a member of it (`not_found`).
19903
+ * The project does not exist or the caller is not a member of it (`RESOURCE_NOT_FOUND`).
19910
19904
  */
19911
19905
  404: ErrorResponse;
19912
19906
  /**
@@ -19962,7 +19956,7 @@ type CreateDatasetErrors = {
19962
19956
  */
19963
19957
  403: ErrorResponse;
19964
19958
  /**
19965
- * The project does not exist or the caller is not a member of it (`not_found`).
19959
+ * The project does not exist or the caller is not a member of it (`RESOURCE_NOT_FOUND`).
19966
19960
  */
19967
19961
  404: ErrorResponse;
19968
19962
  /**
@@ -20549,7 +20543,7 @@ type ListEvalsErrors = {
20549
20543
  */
20550
20544
  403: ErrorResponse;
20551
20545
  /**
20552
- * The project does not exist or the caller is not a member of it (`not_found`).
20546
+ * The project does not exist or the caller is not a member of it (`RESOURCE_NOT_FOUND`).
20553
20547
  */
20554
20548
  404: ErrorResponse;
20555
20549
  /**
@@ -20622,7 +20616,7 @@ type CreateEvalErrors = {
20622
20616
  */
20623
20617
  403: ErrorResponse;
20624
20618
  /**
20625
- * The project does not exist or the caller is not a member of it (`not_found`).
20619
+ * The project does not exist or the caller is not a member of it (`RESOURCE_NOT_FOUND`).
20626
20620
  */
20627
20621
  404: ErrorResponse;
20628
20622
  /**
@@ -21221,7 +21215,7 @@ type ListExceptionsErrors = {
21221
21215
  */
21222
21216
  403: ErrorResponse;
21223
21217
  /**
21224
- * The project does not exist or the caller is not a member of it (`not_found`).
21218
+ * The project does not exist or the caller is not a member of it (`RESOURCE_NOT_FOUND`).
21225
21219
  */
21226
21220
  404: ErrorResponse;
21227
21221
  /**
@@ -21466,7 +21460,7 @@ type ListFilesErrors = {
21466
21460
  */
21467
21461
  403: ErrorResponse;
21468
21462
  /**
21469
- * The project does not exist or the caller is not a member of it (`not_found`).
21463
+ * The project does not exist or the caller is not a member of it (`RESOURCE_NOT_FOUND`).
21470
21464
  */
21471
21465
  404: ErrorResponse;
21472
21466
  /**
@@ -21531,7 +21525,7 @@ type CreateFileErrors = {
21531
21525
  */
21532
21526
  403: ErrorResponse;
21533
21527
  /**
21534
- * The project does not exist or the caller is not a member of it (`not_found`).
21528
+ * The project does not exist or the caller is not a member of it (`RESOURCE_NOT_FOUND`).
21535
21529
  */
21536
21530
  404: ErrorResponse;
21537
21531
  /**
@@ -21606,7 +21600,7 @@ type UploadFileErrors = {
21606
21600
  */
21607
21601
  403: ErrorResponse;
21608
21602
  /**
21609
- * The project does not exist or the caller is not a member of it (`not_found`).
21603
+ * The project does not exist or the caller is not a member of it (`RESOURCE_NOT_FOUND`).
21610
21604
  */
21611
21605
  404: ErrorResponse;
21612
21606
  /**
@@ -21667,7 +21661,7 @@ type UploadFileBase64Errors = {
21667
21661
  */
21668
21662
  403: ErrorResponse;
21669
21663
  /**
21670
- * The project does not exist or the caller is not a member of it (`not_found`).
21664
+ * The project does not exist or the caller is not a member of it (`RESOURCE_NOT_FOUND`).
21671
21665
  */
21672
21666
  404: ErrorResponse;
21673
21667
  /**
@@ -22217,7 +22211,7 @@ type ValidateFormationErrors = {
22217
22211
  */
22218
22212
  401: ErrorResponse;
22219
22213
  /**
22220
- * The project does not exist or the caller is not a member of it (`not_found`).
22214
+ * The project does not exist or the caller is not a member of it (`RESOURCE_NOT_FOUND`).
22221
22215
  */
22222
22216
  404: ErrorResponse;
22223
22217
  /**
@@ -22287,7 +22281,7 @@ type PlanFormationErrors = {
22287
22281
  */
22288
22282
  403: ErrorResponse;
22289
22283
  /**
22290
- * The project does not exist or the caller is not a member of it (`not_found`).
22284
+ * The project does not exist or the caller is not a member of it (`RESOURCE_NOT_FOUND`).
22291
22285
  */
22292
22286
  404: ErrorResponse;
22293
22287
  /**
@@ -22353,7 +22347,7 @@ type ListFormationsErrors = {
22353
22347
  */
22354
22348
  403: ErrorResponse;
22355
22349
  /**
22356
- * The project does not exist or the caller is not a member of it (`not_found`).
22350
+ * The project does not exist or the caller is not a member of it (`RESOURCE_NOT_FOUND`).
22357
22351
  */
22358
22352
  404: ErrorResponse;
22359
22353
  /**
@@ -22418,7 +22412,7 @@ type CreateFormationErrors = {
22418
22412
  */
22419
22413
  403: ErrorResponse;
22420
22414
  /**
22421
- * The project does not exist or the caller is not a member of it (`not_found`).
22415
+ * The project does not exist or the caller is not a member of it (`RESOURCE_NOT_FOUND`).
22422
22416
  */
22423
22417
  404: ErrorResponse;
22424
22418
  /**
@@ -22766,7 +22760,7 @@ type ListGenerationsErrors = {
22766
22760
  */
22767
22761
  403: ErrorResponse;
22768
22762
  /**
22769
- * The project does not exist or the caller is not a member of it (`not_found`).
22763
+ * The project does not exist or the caller is not a member of it (`RESOURCE_NOT_FOUND`).
22770
22764
  */
22771
22765
  404: ErrorResponse;
22772
22766
  /**
@@ -23167,7 +23161,7 @@ type ListGuardrailsErrors = {
23167
23161
  */
23168
23162
  403: ErrorResponse;
23169
23163
  /**
23170
- * The project does not exist or the caller is not a member of it (`not_found`).
23164
+ * The project does not exist or the caller is not a member of it (`RESOURCE_NOT_FOUND`).
23171
23165
  */
23172
23166
  404: ErrorResponse;
23173
23167
  /**
@@ -23214,7 +23208,7 @@ type CreateGuardrailErrors = {
23214
23208
  */
23215
23209
  403: ErrorResponse;
23216
23210
  /**
23217
- * The project does not exist or the caller is not a member of it (`not_found`).
23211
+ * The project does not exist or the caller is not a member of it (`RESOURCE_NOT_FOUND`).
23218
23212
  */
23219
23213
  404: ErrorResponse;
23220
23214
  /**
@@ -23695,7 +23689,7 @@ type ListIngestionRulesErrors = {
23695
23689
  */
23696
23690
  403: ErrorResponse;
23697
23691
  /**
23698
- * The project does not exist or the caller is not a member of it (`not_found`).
23692
+ * The project does not exist or the caller is not a member of it (`RESOURCE_NOT_FOUND`).
23699
23693
  */
23700
23694
  404: ErrorResponse;
23701
23695
  /**
@@ -23793,7 +23787,7 @@ type CreateIngestionRuleErrors = {
23793
23787
  */
23794
23788
  403: ErrorResponse;
23795
23789
  /**
23796
- * The project does not exist or the caller is not a member of it (`not_found`).
23790
+ * The project does not exist or the caller is not a member of it (`RESOURCE_NOT_FOUND`).
23797
23791
  */
23798
23792
  404: ErrorResponse;
23799
23793
  /**
@@ -24229,7 +24223,7 @@ type CreateMcpServerErrors = {
24229
24223
  */
24230
24224
  404: ErrorResponse;
24231
24225
  /**
24232
- * The upstream runtime could not be reached or answered unexpectedly (`upstream_unavailable`).
24226
+ * The upstream runtime could not be reached or answered unexpectedly (`UPSTREAM_UNAVAILABLE`).
24233
24227
  */
24234
24228
  502: ErrorResponse;
24235
24229
  };
@@ -24348,7 +24342,7 @@ type UpdateMcpServerErrors = {
24348
24342
  */
24349
24343
  404: ErrorResponse;
24350
24344
  /**
24351
- * The upstream runtime could not be reached or answered unexpectedly (`upstream_unavailable`).
24345
+ * The upstream runtime could not be reached or answered unexpectedly (`UPSTREAM_UNAVAILABLE`).
24352
24346
  */
24353
24347
  502: ErrorResponse;
24354
24348
  };
@@ -24445,7 +24439,7 @@ type CreateMcpServerKeyErrors = {
24445
24439
  */
24446
24440
  404: ErrorResponse;
24447
24441
  /**
24448
- * The server's `auth.type` is not `header` (`mcp_server_auth_not_header`).
24442
+ * The server's `auth.type` is not `header` (`MCP_SERVER_AUTH_NOT_HEADER`).
24449
24443
  */
24450
24444
  409: ErrorResponse;
24451
24445
  };
@@ -25677,7 +25671,7 @@ type ListMemoryStoresErrors = {
25677
25671
  */
25678
25672
  403: ErrorResponse;
25679
25673
  /**
25680
- * The project does not exist or the caller is not a member of it (`not_found`).
25674
+ * The project does not exist or the caller is not a member of it (`RESOURCE_NOT_FOUND`).
25681
25675
  */
25682
25676
  404: ErrorResponse;
25683
25677
  /**
@@ -25745,7 +25739,7 @@ type CreateMemoryStoreErrors = {
25745
25739
  */
25746
25740
  403: ErrorResponse;
25747
25741
  /**
25748
- * The project does not exist or the caller is not a member of it (`not_found`).
25742
+ * The project does not exist or the caller is not a member of it (`RESOURCE_NOT_FOUND`).
25749
25743
  */
25750
25744
  404: ErrorResponse;
25751
25745
  /**
@@ -26309,7 +26303,7 @@ type ListMetadataSchemasErrors = {
26309
26303
  */
26310
26304
  403: ErrorResponse;
26311
26305
  /**
26312
- * The project does not exist or the caller is not a member of it (`not_found`).
26306
+ * The project does not exist or the caller is not a member of it (`RESOURCE_NOT_FOUND`).
26313
26307
  */
26314
26308
  404: ErrorResponse;
26315
26309
  /**
@@ -26371,7 +26365,7 @@ type CreateMetadataSchemaErrors = {
26371
26365
  */
26372
26366
  403: ErrorResponse;
26373
26367
  /**
26374
- * The project does not exist or the caller is not a member of it (`not_found`).
26368
+ * The project does not exist or the caller is not a member of it (`RESOURCE_NOT_FOUND`).
26375
26369
  */
26376
26370
  404: ErrorResponse;
26377
26371
  /**
@@ -26441,7 +26435,7 @@ type ValidateMetadataErrors = {
26441
26435
  */
26442
26436
  403: ErrorResponse;
26443
26437
  /**
26444
- * The project does not exist or the caller is not a member of it (`not_found`).
26438
+ * The project does not exist or the caller is not a member of it (`RESOURCE_NOT_FOUND`).
26445
26439
  */
26446
26440
  404: ErrorResponse;
26447
26441
  /**
@@ -26698,7 +26692,7 @@ type ListModelRoutesErrors = {
26698
26692
  */
26699
26693
  403: ErrorResponse;
26700
26694
  /**
26701
- * The project does not exist or the caller is not a member of it (`not_found`).
26695
+ * The project does not exist or the caller is not a member of it (`RESOURCE_NOT_FOUND`).
26702
26696
  */
26703
26697
  404: ErrorResponse;
26704
26698
  /**
@@ -26766,7 +26760,7 @@ type CreateModelRouteErrors = {
26766
26760
  */
26767
26761
  403: ErrorResponse;
26768
26762
  /**
26769
- * The project does not exist or the caller is not a member of it (`not_found`).
26763
+ * The project does not exist or the caller is not a member of it (`RESOURCE_NOT_FOUND`).
26770
26764
  */
26771
26765
  404: ErrorResponse;
26772
26766
  /**
@@ -27100,7 +27094,7 @@ type ListOauthClientsErrors = {
27100
27094
  */
27101
27095
  403: ErrorResponse;
27102
27096
  /**
27103
- * The project does not exist or the caller is not a member of it (`not_found`).
27097
+ * The project does not exist or the caller is not a member of it (`RESOURCE_NOT_FOUND`).
27104
27098
  */
27105
27099
  404: ErrorResponse;
27106
27100
  /**
@@ -27162,7 +27156,7 @@ type CreateOauthClientErrors = {
27162
27156
  */
27163
27157
  403: ErrorResponse;
27164
27158
  /**
27165
- * The project does not exist or the caller is not a member of it (`not_found`).
27159
+ * The project does not exist or the caller is not a member of it (`RESOURCE_NOT_FOUND`).
27166
27160
  */
27167
27161
  404: ErrorResponse;
27168
27162
  /**
@@ -27414,7 +27408,7 @@ type ListOauthConnectionsErrors = {
27414
27408
  */
27415
27409
  403: ErrorResponse;
27416
27410
  /**
27417
- * The project does not exist or the caller is not a member of it (`not_found`).
27411
+ * The project does not exist or the caller is not a member of it (`RESOURCE_NOT_FOUND`).
27418
27412
  */
27419
27413
  404: ErrorResponse;
27420
27414
  /**
@@ -27474,7 +27468,7 @@ type CreateOauthConnectionErrors = {
27474
27468
  */
27475
27469
  403: ErrorResponse;
27476
27470
  /**
27477
- * The project does not exist or the caller is not a member of it (`not_found`).
27471
+ * The project does not exist or the caller is not a member of it (`RESOURCE_NOT_FOUND`).
27478
27472
  */
27479
27473
  404: ErrorResponse;
27480
27474
  /**
@@ -27646,7 +27640,7 @@ type ListOrchestrationsErrors = {
27646
27640
  */
27647
27641
  403: ErrorResponse;
27648
27642
  /**
27649
- * The project does not exist or the caller is not a member of it (`not_found`).
27643
+ * The project does not exist or the caller is not a member of it (`RESOURCE_NOT_FOUND`).
27650
27644
  */
27651
27645
  404: ErrorResponse;
27652
27646
  /**
@@ -27693,7 +27687,7 @@ type CreateOrchestrationErrors = {
27693
27687
  */
27694
27688
  403: ErrorResponse;
27695
27689
  /**
27696
- * The project does not exist or the caller is not a member of it (`not_found`).
27690
+ * The project does not exist or the caller is not a member of it (`RESOURCE_NOT_FOUND`).
27697
27691
  */
27698
27692
  404: ErrorResponse;
27699
27693
  /**
@@ -27746,7 +27740,7 @@ type ValidateOrchestrationErrors = {
27746
27740
  */
27747
27741
  401: ErrorResponse;
27748
27742
  /**
27749
- * The project does not exist or the caller is not a member of it (`not_found`).
27743
+ * The project does not exist or the caller is not a member of it (`RESOURCE_NOT_FOUND`).
27750
27744
  */
27751
27745
  404: ErrorResponse;
27752
27746
  /**
@@ -27803,7 +27797,7 @@ type GetQueueStatsErrors = {
27803
27797
  */
27804
27798
  403: ErrorResponse;
27805
27799
  /**
27806
- * The project does not exist or the caller is not a member of it (`not_found`).
27800
+ * The project does not exist or the caller is not a member of it (`RESOURCE_NOT_FOUND`).
27807
27801
  */
27808
27802
  404: ErrorResponse;
27809
27803
  /**
@@ -27857,7 +27851,7 @@ type ListQueueStatsProjectsErrors = {
27857
27851
  */
27858
27852
  403: ErrorResponse;
27859
27853
  /**
27860
- * The project does not exist or the caller is not a member of it (`not_found`).
27854
+ * The project does not exist or the caller is not a member of it (`RESOURCE_NOT_FOUND`).
27861
27855
  */
27862
27856
  404: ErrorResponse;
27863
27857
  /**
@@ -28292,7 +28286,7 @@ type ListOrchestrationRunsErrors = {
28292
28286
  */
28293
28287
  403: ErrorResponse;
28294
28288
  /**
28295
- * The project does not exist or the caller is not a member of it (`not_found`).
28289
+ * The project does not exist or the caller is not a member of it (`RESOURCE_NOT_FOUND`).
28296
28290
  */
28297
28291
  404: ErrorResponse;
28298
28292
  /**
@@ -28780,7 +28774,7 @@ type ListPlaybooksErrors = {
28780
28774
  */
28781
28775
  403: ErrorResponse;
28782
28776
  /**
28783
- * The project does not exist or the caller is not a member of it (`not_found`).
28777
+ * The project does not exist or the caller is not a member of it (`RESOURCE_NOT_FOUND`).
28784
28778
  */
28785
28779
  404: ErrorResponse;
28786
28780
  /**
@@ -28827,7 +28821,7 @@ type CreatePlaybookErrors = {
28827
28821
  */
28828
28822
  403: ErrorResponse;
28829
28823
  /**
28830
- * The project does not exist or the caller is not a member of it (`not_found`).
28824
+ * The project does not exist or the caller is not a member of it (`RESOURCE_NOT_FOUND`).
28831
28825
  */
28832
28826
  404: ErrorResponse;
28833
28827
  /**
@@ -29386,7 +29380,7 @@ type ListPlaybookCasesErrors = {
29386
29380
  */
29387
29381
  403: ErrorResponse;
29388
29382
  /**
29389
- * The project does not exist or the caller is not a member of it (`not_found`).
29383
+ * The project does not exist or the caller is not a member of it (`RESOURCE_NOT_FOUND`).
29390
29384
  */
29391
29385
  404: ErrorResponse;
29392
29386
  /**
@@ -30476,7 +30470,7 @@ type ListPoliciesErrors = {
30476
30470
  */
30477
30471
  403: ErrorResponse;
30478
30472
  /**
30479
- * The project does not exist or the caller is not a member of it (`not_found`).
30473
+ * The project does not exist or the caller is not a member of it (`RESOURCE_NOT_FOUND`).
30480
30474
  */
30481
30475
  404: ErrorResponse;
30482
30476
  /**
@@ -30527,7 +30521,7 @@ type CreatePolicyErrors = {
30527
30521
  */
30528
30522
  403: ErrorResponse;
30529
30523
  /**
30530
- * The project does not exist or the caller is not a member of it (`not_found`).
30524
+ * The project does not exist or the caller is not a member of it (`RESOURCE_NOT_FOUND`).
30531
30525
  */
30532
30526
  404: ErrorResponse;
30533
30527
  /**
@@ -30785,7 +30779,7 @@ type CreateProjectErrors = {
30785
30779
  */
30786
30780
  403: ErrorResponse;
30787
30781
  /**
30788
- * The `idempotency_key` is already claimed by a different request (`idempotency_key_reused`), or by one still in flight (`idempotency_request_in_progress`).
30782
+ * The `idempotency_key` is already claimed by a different request (`IDEMPOTENCY_KEY_REUSED`), or by one still in flight (`IDEMPOTENCY_REQUEST_IN_PROGRESS`).
30789
30783
  */
30790
30784
  409: ErrorResponse;
30791
30785
  };
@@ -30832,7 +30826,7 @@ type DeleteProjectErrors = {
30832
30826
  */
30833
30827
  409: ErrorResponse;
30834
30828
  /**
30835
- * The project's usage could not be read to settle it before the delete (`upstream_unavailable`); nothing was deleted.
30829
+ * The project's usage could not be read to settle it before the delete (`UPSTREAM_UNAVAILABLE`); nothing was deleted.
30836
30830
  *
30837
30831
  */
30838
30832
  502: ErrorResponse;
@@ -30891,7 +30885,7 @@ type UpdateProjectData = {
30891
30885
  };
30892
30886
  type UpdateProjectErrors = {
30893
30887
  /**
30894
- * A malformed field (`VALIDATION_FAILED` when the runtime refuses it), `guardrail_not_found` for a `guardrail_ids` entry naming no guardrail in the project, or `POLICY_NOT_FOUND` / `POLICY_OUTSIDE_PROJECT` for an `agent_policy_ids` entry naming no policy, or one of another project.
30888
+ * A malformed field (`VALIDATION_FAILED` when the runtime refuses it), `GUARDRAIL_NOT_FOUND` for a `guardrail_ids` entry naming no guardrail in the project, or `POLICY_NOT_FOUND` / `POLICY_OUTSIDE_PROJECT` for an `agent_policy_ids` entry naming no policy, or one of another project.
30895
30889
  */
30896
30890
  400: ErrorResponse;
30897
30891
  /**
@@ -30977,7 +30971,7 @@ type ResumeProjectErrors = {
30977
30971
  */
30978
30972
  404: ErrorResponse;
30979
30973
  /**
30980
- * The project is not paused (`project_not_paused`).
30974
+ * The project is not paused (`PROJECT_NOT_PAUSED`).
30981
30975
  */
30982
30976
  409: ErrorResponse;
30983
30977
  };
@@ -31270,7 +31264,7 @@ type AcceptProjectTransferErrors = {
31270
31264
  */
31271
31265
  401: ErrorResponse;
31272
31266
  /**
31273
- * The caller's plan cannot hold the project (`plan_limit_reached`), a project-scoped credential, or a connected app.
31267
+ * The caller's plan cannot hold the project (`PLAN_LIMIT_REACHED`), a project-scoped credential, or a connected app.
31274
31268
  *
31275
31269
  */
31276
31270
  403: ErrorResponse;
@@ -31279,12 +31273,12 @@ type AcceptProjectTransferErrors = {
31279
31273
  */
31280
31274
  404: ErrorResponse;
31281
31275
  /**
31282
- * The transfer was withdrawn or changed while it was being accepted (`transfer_changed`).
31276
+ * The transfer was withdrawn or changed while it was being accepted (`TRANSFER_CHANGED`).
31283
31277
  *
31284
31278
  */
31285
31279
  409: ErrorResponse;
31286
31280
  /**
31287
- * The project's usage could not be read to settle it before the transfer (`upstream_unavailable`); nothing was transferred.
31281
+ * The project's usage could not be read to settle it before the transfer (`UPSTREAM_UNAVAILABLE`); nothing was transferred.
31288
31282
  *
31289
31283
  */
31290
31284
  502: ErrorResponse;
@@ -31714,7 +31708,7 @@ type ListQuotasErrors = {
31714
31708
  */
31715
31709
  403: ErrorResponse;
31716
31710
  /**
31717
- * The project does not exist or the caller is not a member of it (`not_found`).
31711
+ * The project does not exist or the caller is not a member of it (`RESOURCE_NOT_FOUND`).
31718
31712
  */
31719
31713
  404: ErrorResponse;
31720
31714
  /**
@@ -31794,7 +31788,7 @@ type CreateQuotaErrors = {
31794
31788
  */
31795
31789
  403: ErrorResponse;
31796
31790
  /**
31797
- * The project does not exist or the caller is not a member of it (`not_found`).
31791
+ * The project does not exist or the caller is not a member of it (`RESOURCE_NOT_FOUND`).
31798
31792
  */
31799
31793
  404: ErrorResponse;
31800
31794
  /**
@@ -32044,7 +32038,7 @@ type ListSecretsErrors = {
32044
32038
  */
32045
32039
  403: ErrorResponse;
32046
32040
  /**
32047
- * The project does not exist or the caller is not a member of it (`not_found`).
32041
+ * The project does not exist or the caller is not a member of it (`RESOURCE_NOT_FOUND`).
32048
32042
  */
32049
32043
  404: ErrorResponse;
32050
32044
  /**
@@ -32110,7 +32104,7 @@ type CreateSecretErrors = {
32110
32104
  */
32111
32105
  403: ErrorResponse;
32112
32106
  /**
32113
- * The project does not exist or the caller is not a member of it (`not_found`).
32107
+ * The project does not exist or the caller is not a member of it (`RESOURCE_NOT_FOUND`).
32114
32108
  */
32115
32109
  404: ErrorResponse;
32116
32110
  /**
@@ -33231,7 +33225,7 @@ type ListTasksErrors = {
33231
33225
  */
33232
33226
  403: ErrorResponse;
33233
33227
  /**
33234
- * The project does not exist or the caller is not a member of it (`not_found`).
33228
+ * The project does not exist or the caller is not a member of it (`RESOURCE_NOT_FOUND`).
33235
33229
  */
33236
33230
  404: ErrorResponse;
33237
33231
  /**
@@ -34197,7 +34191,7 @@ type ListToolsErrors = {
34197
34191
  */
34198
34192
  403: ErrorResponse;
34199
34193
  /**
34200
- * The project does not exist or the caller is not a member of it (`not_found`).
34194
+ * The project does not exist or the caller is not a member of it (`RESOURCE_NOT_FOUND`).
34201
34195
  */
34202
34196
  404: ErrorResponse;
34203
34197
  /**
@@ -34244,7 +34238,7 @@ type CreateToolErrors = {
34244
34238
  */
34245
34239
  403: ErrorResponse;
34246
34240
  /**
34247
- * The project does not exist or the caller is not a member of it (`not_found`).
34241
+ * The project does not exist or the caller is not a member of it (`RESOURCE_NOT_FOUND`).
34248
34242
  */
34249
34243
  404: ErrorResponse;
34250
34244
  /**
@@ -34610,7 +34604,7 @@ type ListTracesErrors = {
34610
34604
  */
34611
34605
  403: ErrorResponse;
34612
34606
  /**
34613
- * The project does not exist or the caller is not a member of it (`not_found`).
34607
+ * The project does not exist or the caller is not a member of it (`RESOURCE_NOT_FOUND`).
34614
34608
  */
34615
34609
  404: ErrorResponse;
34616
34610
  /**
@@ -34823,7 +34817,7 @@ type ListTriggersErrors = {
34823
34817
  */
34824
34818
  403: ErrorResponse;
34825
34819
  /**
34826
- * The project does not exist or the caller is not a member of it (`not_found`).
34820
+ * The project does not exist or the caller is not a member of it (`RESOURCE_NOT_FOUND`).
34827
34821
  */
34828
34822
  404: ErrorResponse;
34829
34823
  /**
@@ -34870,7 +34864,7 @@ type CreateTriggerErrors = {
34870
34864
  */
34871
34865
  403: ErrorResponse;
34872
34866
  /**
34873
- * The project does not exist or the caller is not a member of it (`not_found`).
34867
+ * The project does not exist or the caller is not a member of it (`RESOURCE_NOT_FOUND`).
34874
34868
  */
34875
34869
  404: ErrorResponse;
34876
34870
  /**
@@ -34940,7 +34934,7 @@ type CountTriggersErrors = {
34940
34934
  */
34941
34935
  403: ErrorResponse;
34942
34936
  /**
34943
- * The project does not exist or the caller is not a member of it (`not_found`).
34937
+ * The project does not exist or the caller is not a member of it (`RESOURCE_NOT_FOUND`).
34944
34938
  */
34945
34939
  404: ErrorResponse;
34946
34940
  /**
@@ -35425,7 +35419,7 @@ type UpdateCurrentUserErrors = {
35425
35419
  */
35426
35420
  401: ErrorResponse;
35427
35421
  /**
35428
- * `access_denied`: the credential is confined to one project. Account routes need an account-wide credential.
35422
+ * `FORBIDDEN`: the credential is confined to one project. Account routes need an account-wide credential.
35429
35423
  */
35430
35424
  403: ErrorResponse;
35431
35425
  };
@@ -35449,7 +35443,7 @@ type GetCurrentUserBillingErrors = {
35449
35443
  */
35450
35444
  401: ErrorResponse;
35451
35445
  /**
35452
- * `access_denied`: the credential is confined to one project. Account routes need an account-wide credential.
35446
+ * `FORBIDDEN`: the credential is confined to one project. Account routes need an account-wide credential.
35453
35447
  */
35454
35448
  403: ErrorResponse;
35455
35449
  };
@@ -35473,7 +35467,7 @@ type GetCurrentUserUsageErrors = {
35473
35467
  */
35474
35468
  401: ErrorResponse;
35475
35469
  /**
35476
- * `access_denied`: the credential is confined to one project. Account routes need an account-wide credential.
35470
+ * `FORBIDDEN`: the credential is confined to one project. Account routes need an account-wide credential.
35477
35471
  */
35478
35472
  403: ErrorResponse;
35479
35473
  };
@@ -35514,7 +35508,7 @@ type ListCurrentUserCreditsErrors = {
35514
35508
  */
35515
35509
  401: ErrorResponse;
35516
35510
  /**
35517
- * `access_denied`: the credential is confined to one project. Account routes need an account-wide credential.
35511
+ * `FORBIDDEN`: the credential is confined to one project. Account routes need an account-wide credential.
35518
35512
  */
35519
35513
  403: ErrorResponse;
35520
35514
  };
@@ -35666,7 +35660,7 @@ type ListCurrentUserStatementsErrors = {
35666
35660
  */
35667
35661
  401: ErrorResponse;
35668
35662
  /**
35669
- * `access_denied`: the credential is confined to one project. Account routes need an account-wide credential.
35663
+ * `FORBIDDEN`: the credential is confined to one project. Account routes need an account-wide credential.
35670
35664
  */
35671
35665
  403: ErrorResponse;
35672
35666
  };
@@ -35697,7 +35691,7 @@ type GetCurrentUserStatementErrors = {
35697
35691
  */
35698
35692
  401: ErrorResponse;
35699
35693
  /**
35700
- * `access_denied`: the credential is confined to one project. Account routes need an account-wide credential.
35694
+ * `FORBIDDEN`: the credential is confined to one project. Account routes need an account-wide credential.
35701
35695
  */
35702
35696
  403: ErrorResponse;
35703
35697
  /**
@@ -35729,19 +35723,19 @@ type CreateCurrentUserTopUpErrors = {
35729
35723
  */
35730
35724
  401: ErrorResponse;
35731
35725
  /**
35732
- * `access_denied`: the credential is confined to one project, or is a connected app's. Billing changes need an account-wide key or a signed-in user.
35726
+ * `FORBIDDEN`: the credential is confined to one project, or is a connected app's. Billing changes need an account-wide key or a signed-in user.
35733
35727
  */
35734
35728
  403: ErrorResponse;
35735
35729
  /**
35736
- * `saved_card` with no saved card (`payment_method_required`).
35730
+ * `saved_card` with no saved card (`PAYMENT_METHOD_REQUIRED`).
35737
35731
  */
35738
35732
  409: ErrorResponse;
35739
35733
  /**
35740
- * The payment provider could not be reached (`payment_provider_error`). Nothing was charged.
35734
+ * The payment provider could not be reached (`PAYMENT_PROVIDER_ERROR`). Nothing was charged.
35741
35735
  */
35742
35736
  502: ErrorResponse;
35743
35737
  /**
35744
- * Card payments are not available on this deployment (`payments_not_configured`), or the exchange rate for a card charged in reais could not be read (`exchange_rate_unavailable`). Nothing was charged.
35738
+ * Card payments are not available on this deployment (`PAYMENTS_NOT_CONFIGURED`), or the exchange rate for a card charged in reais could not be read (`EXCHANGE_RATE_UNAVAILABLE`). Nothing was charged.
35745
35739
  */
35746
35740
  503: ErrorResponse;
35747
35741
  };
@@ -35765,7 +35759,7 @@ type DeleteCurrentUserPaymentMethodErrors = {
35765
35759
  */
35766
35760
  401: ErrorResponse;
35767
35761
  /**
35768
- * `access_denied`: the credential is confined to one project, or is a connected app's. Billing changes need an account-wide key or a signed-in user.
35762
+ * `FORBIDDEN`: the credential is confined to one project, or is a connected app's. Billing changes need an account-wide key or a signed-in user.
35769
35763
  */
35770
35764
  403: ErrorResponse;
35771
35765
  /**
@@ -35773,12 +35767,12 @@ type DeleteCurrentUserPaymentMethodErrors = {
35773
35767
  */
35774
35768
  404: ErrorResponse;
35775
35769
  /**
35776
- * A paid plan is in effect or next, or a statement is unsettled (`paid_plan_requires_card`); `details` carry `plan`, `next_plan` and `unpaid_statement`.
35770
+ * A paid plan is in effect or next, or a statement is unsettled (`PAID_PLAN_REQUIRES_CARD`); `meta` carries `plan`, `next_plan` and `unpaid_statement`.
35777
35771
  *
35778
35772
  */
35779
35773
  409: ErrorResponse;
35780
35774
  /**
35781
- * Card payments are not available on this deployment (`payments_not_configured`).
35775
+ * Card payments are not available on this deployment (`PAYMENTS_NOT_CONFIGURED`).
35782
35776
  */
35783
35777
  503: ErrorResponse;
35784
35778
  };
@@ -35802,7 +35796,7 @@ type GetCurrentUserPaymentMethodErrors = {
35802
35796
  */
35803
35797
  401: ErrorResponse;
35804
35798
  /**
35805
- * `access_denied`: the credential is confined to one project. Account routes need an account-wide credential.
35799
+ * `FORBIDDEN`: the credential is confined to one project. Account routes need an account-wide credential.
35806
35800
  */
35807
35801
  403: ErrorResponse;
35808
35802
  /**
@@ -35830,15 +35824,15 @@ type CreateCurrentUserPaymentMethodErrors = {
35830
35824
  */
35831
35825
  401: ErrorResponse;
35832
35826
  /**
35833
- * `access_denied`: the credential is confined to one project, or is a connected app's. Billing changes need an account-wide key or a signed-in user.
35827
+ * `FORBIDDEN`: the credential is confined to one project, or is a connected app's. Billing changes need an account-wide key or a signed-in user.
35834
35828
  */
35835
35829
  403: ErrorResponse;
35836
35830
  /**
35837
- * The payment provider could not be reached (`payment_provider_error`).
35831
+ * The payment provider could not be reached (`PAYMENT_PROVIDER_ERROR`).
35838
35832
  */
35839
35833
  502: ErrorResponse;
35840
35834
  /**
35841
- * Card payments are not available on this deployment (`payments_not_configured`).
35835
+ * Card payments are not available on this deployment (`PAYMENTS_NOT_CONFIGURED`).
35842
35836
  */
35843
35837
  503: ErrorResponse;
35844
35838
  };
@@ -35862,7 +35856,7 @@ type DisableCurrentUserAutoRechargeErrors = {
35862
35856
  */
35863
35857
  401: ErrorResponse;
35864
35858
  /**
35865
- * `access_denied`: the credential is confined to one project, or is a connected app's. Billing changes need an account-wide key or a signed-in user.
35859
+ * `FORBIDDEN`: the credential is confined to one project, or is a connected app's. Billing changes need an account-wide key or a signed-in user.
35866
35860
  */
35867
35861
  403: ErrorResponse;
35868
35862
  };
@@ -35886,7 +35880,7 @@ type GetCurrentUserAutoRechargeErrors = {
35886
35880
  */
35887
35881
  401: ErrorResponse;
35888
35882
  /**
35889
- * `access_denied`: the credential is confined to one project. Account routes need an account-wide credential.
35883
+ * `FORBIDDEN`: the credential is confined to one project. Account routes need an account-wide credential.
35890
35884
  */
35891
35885
  403: ErrorResponse;
35892
35886
  };
@@ -35914,11 +35908,11 @@ type SetCurrentUserAutoRechargeErrors = {
35914
35908
  */
35915
35909
  401: ErrorResponse;
35916
35910
  /**
35917
- * `access_denied`: the credential is confined to one project, or is a connected app's. Billing changes need an account-wide key or a signed-in user.
35911
+ * `FORBIDDEN`: the credential is confined to one project, or is a connected app's. Billing changes need an account-wide key or a signed-in user.
35918
35912
  */
35919
35913
  403: ErrorResponse;
35920
35914
  /**
35921
- * The account has no saved card (`payment_method_required`).
35915
+ * The account has no saved card (`PAYMENT_METHOD_REQUIRED`).
35922
35916
  */
35923
35917
  409: ErrorResponse;
35924
35918
  };
@@ -35946,19 +35940,19 @@ type SetCurrentUserPlanErrors = {
35946
35940
  */
35947
35941
  401: ErrorResponse;
35948
35942
  /**
35949
- * `access_denied`: the credential is confined to one project, or is a connected app's. Billing changes need an account-wide key or a signed-in user.
35943
+ * `FORBIDDEN`: the credential is confined to one project, or is a connected app's. Billing changes need an account-wide key or a signed-in user.
35950
35944
  */
35951
35945
  403: ErrorResponse;
35952
35946
  /**
35953
- * A paid plan with nothing to charge now and no saved card for its statement (`payment_method_required`), or a contract plan (`plan_by_contract`).
35947
+ * A paid plan with nothing to charge now and no saved card for its statement (`PAYMENT_METHOD_REQUIRED`), or a contract plan (`PLAN_BY_CONTRACT`).
35954
35948
  */
35955
35949
  409: ErrorResponse;
35956
35950
  /**
35957
- * The payment provider could not be reached (`payment_provider_error`).
35951
+ * The payment provider could not be reached (`PAYMENT_PROVIDER_ERROR`).
35958
35952
  */
35959
35953
  502: ErrorResponse;
35960
35954
  /**
35961
- * Card payments are not available on this deployment (`payments_not_configured`), or the exchange rate for a card charged in reais could not be read (`exchange_rate_unavailable`); the plan is unchanged.
35955
+ * Card payments are not available on this deployment (`PAYMENTS_NOT_CONFIGURED`), or the exchange rate for a card charged in reais could not be read (`EXCHANGE_RATE_UNAVAILABLE`); the plan is unchanged.
35962
35956
  */
35963
35957
  503: ErrorResponse;
35964
35958
  };
@@ -35988,7 +35982,7 @@ type GetCurrentUserPlanQuoteErrors = {
35988
35982
  */
35989
35983
  401: ErrorResponse;
35990
35984
  /**
35991
- * `access_denied`: the credential is confined to one project. Account routes need an account-wide credential.
35985
+ * `FORBIDDEN`: the credential is confined to one project. Account routes need an account-wide credential.
35992
35986
  */
35993
35987
  403: ErrorResponse;
35994
35988
  };
@@ -36077,7 +36071,7 @@ type CreateWebhookErrors = {
36077
36071
  */
36078
36072
  404: ErrorResponse;
36079
36073
  /**
36080
- * The project already holds 20 webhooks (`webhook_limit_reached`); `details.limit` carries the ceiling.
36074
+ * The project already holds 20 webhooks (`WEBHOOK_LIMIT_REACHED`); `meta.limit` carries the ceiling.
36081
36075
  *
36082
36076
  */
36083
36077
  409: ErrorResponse;
@@ -36378,7 +36372,7 @@ type RedeliverWebhookDeliveryErrors = {
36378
36372
  */
36379
36373
  404: ErrorResponse;
36380
36374
  /**
36381
- * The delivery's webhook is inactive (`webhook_inactive`).
36375
+ * The delivery's webhook is inactive (`WEBHOOK_INACTIVE`).
36382
36376
  *
36383
36377
  */
36384
36378
  409: ErrorResponse;
@@ -36425,7 +36419,7 @@ type ListWorkflowsErrors = {
36425
36419
  */
36426
36420
  403: ErrorResponse;
36427
36421
  /**
36428
- * The project does not exist or the caller is not a member of it (`not_found`).
36422
+ * The project does not exist or the caller is not a member of it (`RESOURCE_NOT_FOUND`).
36429
36423
  */
36430
36424
  404: ErrorResponse;
36431
36425
  /**
@@ -36472,7 +36466,7 @@ type CreateWorkflowErrors = {
36472
36466
  */
36473
36467
  403: ErrorResponse;
36474
36468
  /**
36475
- * The project does not exist or the caller is not a member of it (`not_found`).
36469
+ * The project does not exist or the caller is not a member of it (`RESOURCE_NOT_FOUND`).
36476
36470
  */
36477
36471
  404: ErrorResponse;
36478
36472
  /**
@@ -37103,7 +37097,7 @@ export declare class Channels {
37103
37097
  /**
37104
37098
  * Create a route
37105
37099
  *
37106
- * `action` is required; `agent_id` is required when it is `agent`, `text` when it is `message`; `repeat` is only valid alongside `action: message`. `surface`, when present, must be one this channel's kind serves (`GET /v1/channel-kinds`) — otherwise `400 unknown_surface`. `match` keys must be predicates that kind's registry declares — otherwise `400 unknown_predicate`. Writing a route for a surface whose transport mode is off (e.g. a Discord `guild_thread` route before `mention_threads` is enabled) still succeeds, with `unreachable_surface` in the response `warnings`.
37100
+ * `action` is required; `agent_id` is required when it is `agent`, `text` when it is `message`; `repeat` is only valid alongside `action: message`. `surface`, when present, must be one this channel's kind serves (`GET /v1/channel-kinds`) — otherwise `400 UNKNOWN_SURFACE`. `match` keys must be predicates that kind's registry declares — otherwise `400 UNKNOWN_PREDICATE`. Writing a route for a surface whose transport mode is off (e.g. a Discord `guild_thread` route before `mention_threads` is enabled) still succeeds, with `unreachable_surface` in the response `warnings`.
37107
37101
  *
37108
37102
  */
37109
37103
  static createChannelRoute<ThrowOnError extends boolean = false>(options: Options<CreateChannelRouteData, ThrowOnError>): RequestResult<CreateChannelRouteResponses, CreateChannelRouteErrors, ThrowOnError>;
@@ -37124,7 +37118,7 @@ export declare class Channels {
37124
37118
  /**
37125
37119
  * Replace a route
37126
37120
  *
37127
- * Full replace, the same validation as create: an omitted field takes its create default. Where that default would widen a value the route sets, omission is `400 replace_omits_fields`, naming the fields in `details.fields`, and nothing is written: a set `surface` (the default is any surface), a non-empty `match` (every message), a non-empty `config` (it carries the Discord allowlist), and `status` on a `disabled` route (the default re-activates it). Send the value to keep it, or `"surface": null`, `"match": {}`, `"config": null`, `"status": "active"` to clear it.
37121
+ * Full replace, the same validation as create: an omitted field takes its create default. Where that default would widen a value the route sets, omission is `400 REPLACE_OMITS_FIELDS`, naming the fields in `meta.fields`, and nothing is written: a set `surface` (the default is any surface), a non-empty `match` (every message), a non-empty `config` (it carries the Discord allowlist), and `status` on a `disabled` route (the default re-activates it). Send the value to keep it, or `"surface": null`, `"match": {}`, `"config": null`, `"status": "active"` to clear it.
37128
37122
  *
37129
37123
  */
37130
37124
  static replaceChannelRoute<ThrowOnError extends boolean = false>(options: Options<ReplaceChannelRouteData, ThrowOnError>): RequestResult<ReplaceChannelRouteResponses, ReplaceChannelRouteErrors, ThrowOnError>;
@@ -37145,17 +37139,17 @@ export declare class Channels {
37145
37139
  * Connect a channel
37146
37140
  *
37147
37141
  * Connect a channel. The required fields depend on `channel`; no credential is ever returned.
37148
- * **Discord** (`channel: discord`) — supply `application_id` and `bot_token`, plus the `modes` selecting which Gateway flows to serve (direct messages, and/or @mention-opens-a-thread). The token is checked with Discord first: `400 invalid_bot_token` when Discord rejects it, `400 application_mismatch` when it belongs to another application, `502 discord_unavailable` when Discord cannot be read. Returns `501` when this deployment does not enable Discord channels.
37149
- * **X** (`channel: x`) — supply the bot's `bot_token` (X developer portal, Chat bots) and the `consumer_key` and `consumer_secret` of the app that issued it. naturali then registers its own webhook on that app, subscribes it to the bot's incoming direct messages and registers the bot's chat encryption key, keeping the private key sealed: replies are end-to-end encrypted, and the project never handles keys, webhooks or ciphertext. Pass `chat_private_keys` and `chat_key_version` instead to keep a key the bot already registered. `400 invalid_bot_token` or `400 invalid_consumer_credentials` when X rejects a credential, `409 bot_in_use` when another channel holds the bot, `502 x_provisioning_failed` when X refuses the webhook or the subscription (an app holds a limited number of webhooks), `429 x_key_registration_limited` when the bot used its few daily key registrations, `502 x_unavailable` when X cannot be reached. Returns `501` when this deployment does not enable X channels.
37142
+ * **Discord** (`channel: discord`) — supply `application_id` and `bot_token`, plus the `modes` selecting which Gateway flows to serve (direct messages, and/or @mention-opens-a-thread). The token is checked with Discord first: `400 INVALID_BOT_TOKEN` when Discord rejects it, `400 APPLICATION_MISMATCH` when it belongs to another application, `502 DISCORD_UNAVAILABLE` when Discord cannot be read. Returns `501` when this deployment does not enable Discord channels.
37143
+ * **X** (`channel: x`) — supply the bot's `bot_token` (X developer portal, Chat bots) and the `consumer_key` and `consumer_secret` of the app that issued it. naturali then registers its own webhook on that app, subscribes it to the bot's incoming direct messages and registers the bot's chat encryption key, keeping the private key sealed: replies are end-to-end encrypted, and the project never handles keys, webhooks or ciphertext. Pass `chat_private_keys` and `chat_key_version` instead to keep a key the bot already registered. `400 INVALID_BOT_TOKEN` or `400 INVALID_CONSUMER_CREDENTIALS` when X rejects a credential, `409 BOT_IN_USE` when another channel holds the bot, `502 X_PROVISIONING_FAILED` when X refuses the webhook or the subscription (an app holds a limited number of webhooks), `429 X_KEY_REGISTRATION_LIMITED` when the bot used its few daily key registrations, `502 X_UNAVAILABLE` when X cannot be reached. Returns `501` when this deployment does not enable X channels.
37150
37144
  * **WhatsApp** (default) — one of two credential paths, both filling the same write-only secret:
37151
37145
  * * **BYOT** (`credential_source: byot`, default) — supply
37152
37146
  * `phone_number_id` and `access_token` from your own Meta app. The
37153
- * number is read with the token first: `400 invalid_access_token` when
37154
- * Meta rejects the token, `400 phone_number_not_accessible` when it
37155
- * cannot reach that number, `502 meta_unavailable` when Meta fails.
37147
+ * number is read with the token first: `400 INVALID_ACCESS_TOKEN` when
37148
+ * Meta rejects the token, `400 PHONE_NUMBER_NOT_ACCESSIBLE` when it
37149
+ * cannot reach that number, `502 META_UNAVAILABLE` when Meta fails.
37156
37150
  * The token's app is then subscribed to the WABA Meta reports as the
37157
37151
  * number's owner, which is the `waba_id` stored:
37158
- * `400 waba_not_manageable` when the token cannot subscribe to it.
37152
+ * `400 WABA_NOT_MANAGEABLE` when the token cannot subscribe to it.
37159
37153
  *
37160
37154
  * * **Embedded signup** (`credential_source: embedded_signup`) — supply
37161
37155
  * `code` and `waba_id` from the Meta popup; naturali exchanges the
@@ -37165,7 +37159,7 @@ export declare class Channels {
37165
37159
  * are not configured.
37166
37160
  *
37167
37161
  *
37168
- * The project's plan limits how many channels it may hold. At the limit this responds `403` with `plan_limit_reached`, whose `details` carry the `plan` and the `limit`, before any credential is acquired. Only `active` channels count, so disabling one frees allowance without deleting it.
37162
+ * The project's plan limits how many channels it may hold. At the limit this responds `403` with `PLAN_LIMIT_REACHED`, whose `meta` carries the `plan` and the `limit`, before any credential is acquired. Only `active` channels count, so disabling one frees allowance without deleting it.
37169
37163
  *
37170
37164
  */
37171
37165
  static createChannel<ThrowOnError extends boolean = false>(options: Options<CreateChannelData, ThrowOnError>): RequestResult<CreateChannelResponses, CreateChannelErrors, ThrowOnError>;
@@ -37183,7 +37177,7 @@ export declare class Channels {
37183
37177
  /**
37184
37178
  * Complete a WhatsApp signup
37185
37179
  *
37186
- * Finish a signup link: the app's result page receives `pending` and the numbers Meta granted, and sends back the one to connect. The caller must be a member of the project the link was created for (`404` otherwise), so a link opened by anyone else connects nothing. `pending` expires 10 minutes after the dialog returns (`400 link_expired`).
37180
+ * Finish a signup link: the app's result page receives `pending` and the numbers Meta granted, and sends back the one to connect. The caller must be a member of the project the link was created for (`404` otherwise), so a link opened by anyone else connects nothing. `pending` expires 10 minutes after the dialog returns (`400 LINK_EXPIRED`).
37187
37181
  *
37188
37182
  */
37189
37183
  static completeWhatsappSignup<ThrowOnError extends boolean = false>(options: Options<CompleteWhatsappSignupData, ThrowOnError>): RequestResult<CompleteWhatsappSignupResponses, CompleteWhatsappSignupErrors, ThrowOnError>;
@@ -37204,7 +37198,7 @@ export declare class Channels {
37204
37198
  /**
37205
37199
  * Update a channel
37206
37200
  *
37207
- * Rotate the credential, update the kind's config (`waba_id` / `credential_source` for WhatsApp, `modes` for Discord), or flip the naturali-side status. At least one field is required. Rotating a WhatsApp token first reads the number with it, as connect does (`400 invalid_access_token`, `400 phone_number_not_accessible`, `502 meta_unavailable`, keeping the old token), then stores a new write-only secret, repoints the send tool and deletes the old secret; rotating a Discord bot token reseals it and the gateway worker reconnects with it.
37201
+ * Rotate the credential, update the kind's config (`waba_id` / `credential_source` for WhatsApp, `modes` for Discord), or flip the naturali-side status. At least one field is required. Rotating a WhatsApp token first reads the number with it, as connect does (`400 INVALID_ACCESS_TOKEN`, `400 PHONE_NUMBER_NOT_ACCESSIBLE`, `502 META_UNAVAILABLE`, keeping the old token), then stores a new write-only secret, repoints the send tool and deletes the old secret; rotating a Discord bot token reseals it and the gateway worker reconnects with it.
37208
37202
  *
37209
37203
  */
37210
37204
  static updateChannel<ThrowOnError extends boolean = false>(options: Options<UpdateChannelData, ThrowOnError>): RequestResult<UpdateChannelResponses, UpdateChannelErrors, ThrowOnError>;
@@ -39366,7 +39360,7 @@ export declare class Projects {
39366
39360
  *
39367
39361
  * Creates a project (one per client or per environment).
39368
39362
  *
39369
- * Your plan limits how many projects you may own. At the limit this responds `403` with `plan_limit_reached`, whose `details` carry the `plan` and the `limit`. An archived project still counts — archiving keeps every resource, so it frees nothing; deleting a project does.
39363
+ * Your plan limits how many projects you may own. At the limit this responds `403` with `PLAN_LIMIT_REACHED`, whose `meta` carries the `plan` and the `limit`. An archived project still counts — archiving keeps every resource, so it frees nothing; deleting a project does.
39370
39364
  *
39371
39365
  * A new project starts at the content-retention window your plan sets (`trace_content_retention_days`); `PATCH` it to anything shorter.
39372
39366
  *
@@ -39395,11 +39389,11 @@ export declare class Projects {
39395
39389
  * Rename or archive a project, and/or change its content-retention settings (`trace_content_retention_days`, `trace_content_mode`), its execution ceilings (`max_concurrent_runs`, `max_chain_generations`, `max_orchestration_run_depth`), its priced-model gate (`require_priced_model`), its project-scope guardrails (`guardrail_ids`), the policies capping every agent turn in it (`agent_policy_ids`), the tag keys a change of agent-readable text removes (`content_bound_tag_keys`) and managed conversion (`managed_conversion`). Archiving is reversible; resources are retained.
39396
39390
  * Requires the `admin` role in the project (an `owner` has it too). These are the terms every member works under, which is why setting them sits above the role that works under them.
39397
39391
  * The ceilings and the priced-model gate are uncapped by plan: each one only ever narrows what the project may spend, so setting one takes on a restriction rather than claiming an entitlement. On the three ceilings `null` clears the project's own bound and omission leaves it alone — they are different instructions.
39398
- * `guardrail_ids` is the floor under every tool call by every agent in the project, including tools added later. The list is replaced wholesale, so send the ids you want to keep; `[]` detaches every one. An id naming no guardrail in the project responds `400` with `guardrail_not_found`, whose `details.missing` lists the ids. It is uncapped by plan, like the ceilings: a guardrail can only tighten what runs.
39392
+ * `guardrail_ids` is the floor under every tool call by every agent in the project, including tools added later. The list is replaced wholesale, so send the ids you want to keep; `[]` detaches every one. An id naming no guardrail in the project responds `400` with `GUARDRAIL_NOT_FOUND`, whose `meta.missing` lists the ids. It is uncapped by plan, like the ceilings: a guardrail can only tighten what runs.
39399
39393
  * `agent_policy_ids` caps every turn of every agent the project owns: an action they deny is refused even where the agent's own `policy_ids` allow it, and the refusal's `meta.denied_by` is `{ type: project, id: <project_id> }`. `null` or `[]` removes the cap. The credential must hold every grant the policies carry, else `403` with `POLICY_GRANT_NOT_HELD`; an id naming no policy responds `400` with `POLICY_NOT_FOUND`, and a policy of another project `400` with `POLICY_OUTSIDE_PROJECT`.
39400
39394
  * The two retention controls answer different questions. The window bounds how long content *stays* — a daily sweep purges anything past it, leaving auditable skeletons behind. `trace_content_mode: none` means content is never *written*, which is the stronger guarantee: it cannot be missed by a sweep or survive in a backup.
39401
39395
  *
39402
- * Your plan sets the longest window you may keep content for. A wider one — `null` included, which keeps content indefinitely — responds `403` with `plan_limit_reached`, whose `details` carry the `plan` and the `limit` in days. Anything shorter is always allowed. Moving to a plan with a shorter window takes effect at the end of the billing cycle, and content already stored is then purged by age like everything else.
39396
+ * Your plan sets the longest window you may keep content for. A wider one — `null` included, which keeps content indefinitely — responds `403` with `PLAN_LIMIT_REACHED`, whose `meta` carries the `plan` and the `limit` in days. Anything shorter is always allowed. Moving to a plan with a shorter window takes effect at the end of the billing cycle, and content already stored is then purged by age like everything else.
39403
39397
  *
39404
39398
  */
39405
39399
  static updateProject<ThrowOnError extends boolean = false>(options: Options<UpdateProjectData, ThrowOnError>): RequestResult<UpdateProjectResponses, UpdateProjectErrors, ThrowOnError>;
@@ -39490,7 +39484,7 @@ export declare class Projects {
39490
39484
  *
39491
39485
  * Makes the caller — the member the transfer names — the project's owner.
39492
39486
  *
39493
- * Usage up to this moment is settled on the previous owner's credit; from here on the project's usage is billed to the caller, and its runs count against the caller's allowance. The project counts toward the caller's plan limits at once: its active channels and triggers, and on Free the project itself. A transfer the caller's plan cannot hold is refused with `403 plan_limit_reached`, and the project's retention window is brought within the caller's plan.
39487
+ * Usage up to this moment is settled on the previous owner's credit; from here on the project's usage is billed to the caller, and its runs count against the caller's allowance. The project counts toward the caller's plan limits at once: its active channels and triggers, and on Free the project itself. A transfer the caller's plan cannot hold is refused with `403 PLAN_LIMIT_REACHED`, and the project's retention window is brought within the caller's plan.
39494
39488
  *
39495
39489
  * The previous owner stays in the project as an `admin`. Stops recorded against the project's spend move to the caller. Refused to a connected app.
39496
39490
  *
@@ -39984,7 +39978,7 @@ export declare class Users {
39984
39978
  *
39985
39979
  * The plan the account is on, how long its projects may keep content, how much indexed storage it is holding, and the credit it has left — the figures the platform already enforces against, readable by the account they are enforced against.
39986
39980
  *
39987
- * A managed-model generation is refused with `402 insufficient_credit` while `credit_balance_usd` is negative, and a feature or a resource count outside the plan is refused with `403`, as is a retention window wider than `retention_days` or an ingest past `storage.limit`. Every refusal names what is missing; this is where the numbers behind them are read.
39981
+ * A managed-model generation is refused with `402 INSUFFICIENT_CREDIT` while `credit_balance_usd` is negative, and a feature or a resource count outside the plan is refused with `403`, as is a retention window wider than `retention_days` or an ingest past `storage.limit`. Every refusal names what is missing; this is where the numbers behind them are read.
39988
39982
  *
39989
39983
  * Every figure here is a local read, which is what keeps this route cheap enough to poll — unlike `GET /v1/users/me/usage`, which asks the meter once per project.
39990
39984
  *
@@ -40001,7 +39995,7 @@ export declare class Users {
40001
39995
  *
40002
39996
  * Counted across the projects this account is the billing owner of, over the current UTC calendar month, from the meter itself. Archived projects are included: the runs they already made were made.
40003
39997
  *
40004
- * **On the `free` plan the allowance is enforced.** An account that has used it is refused `403 plan_limit_reached` with `resource: "runs"` on everything that starts a generation and on a direct tool call — on its own provider credential as much as on a managed model, because a run is a run — until the billing month turns or it upgrades. On `pro` and `business` nothing is refused: runs past the allowance are billed at the overage rate those plans are sold with. A contract plan is not counted.
39998
+ * **On the `free` plan the allowance is enforced.** An account that has used it is refused `403 PLAN_LIMIT_REACHED` with `resource: "runs"` on everything that starts a generation and on a direct tool call — on its own provider credential as much as on a managed model, because a run is a run — until the billing month turns or it upgrades. On `pro` and `business` nothing is refused: runs past the allowance are billed at the overage rate those plans are sold with. A contract plan is not counted.
40005
39999
  *
40006
40000
  * The other thing that stops a managed-model generation is a negative credit balance, which is `GET /v1/users/me/billing`, and it never applies to your own credential.
40007
40001
  *
@@ -40034,7 +40028,7 @@ export declare class Users {
40034
40028
  *
40035
40029
  * Turns one stopped item back on — re-enables the schedule trigger, or resumes the orchestration run or workflow task — and stops listing it. An item that is no longer stopped (resumed already, finished or deleted) is marked restored too.
40036
40030
  *
40037
- * Refused with `409 stop_ceiling_closed` while a ceiling is still closed, naming it in `details.blocked_by`, and with `409 stop_not_restorable` for a cancelled eval run, which can only be dismissed.
40031
+ * Refused with `409 STOP_CEILING_CLOSED` while a ceiling is still closed, naming it in `meta.blocked_by`, and with `409 STOP_NOT_RESTORABLE` for a cancelled eval run, which can only be dismissed.
40038
40032
  *
40039
40033
  */
40040
40034
  static restoreCurrentUserStop<ThrowOnError extends boolean = false>(options: Options<RestoreCurrentUserStopData, ThrowOnError>): RequestResult<RestoreCurrentUserStopResponses, RestoreCurrentUserStopErrors, ThrowOnError>;
@@ -40145,7 +40139,7 @@ export declare class Webhooks {
40145
40139
  *
40146
40140
  * Register an endpoint and subscribe it to one or more event types.
40147
40141
  * The response carries `secret` — the signing key, in plaintext. **This is the only time it is returned.** Store it where your receiver can read it; if you lose it, rotate rather than re-create, so the endpoint keeps its delivery history. Send `secret` yourself to sign with a key your receiver already holds; the response then returns that one.
40148
- * A project holds at most 20 webhooks, inactive ones included; the 21st is refused with `409 webhook_limit_reached`.
40142
+ * A project holds at most 20 webhooks, inactive ones included; the 21st is refused with `409 WEBHOOK_LIMIT_REACHED`.
40149
40143
  * Returns `501` on a deployment with no credential-sealing key configured, since the secret could not then be stored safely.
40150
40144
  *
40151
40145
  */
@@ -40201,7 +40195,7 @@ export declare class Webhooks {
40201
40195
  *
40202
40196
  * Queue the same event at the same endpoint again — the recovery path for a delivery that failed, or one your receiver dropped. This is the `…:redeliver` action; the path segment is `{delivery_id}:redeliver`.
40203
40197
  * A **new** delivery is created and returned; the original record is left untouched, because its attempt history is the evidence you redelivered on. The event's `id` is carried over unchanged, so a receiver deduping on the event sees the same event twice while one deduping on `X-Naturali-Delivery` sees a distinct delivery.
40204
- * An inactive webhook is refused with `409 webhook_inactive`.
40198
+ * An inactive webhook is refused with `409 WEBHOOK_INACTIVE`.
40205
40199
  *
40206
40200
  */
40207
40201
  static redeliverWebhookDelivery<ThrowOnError extends boolean = false>(options: Options<RedeliverWebhookDeliveryData, ThrowOnError>): RequestResult<RedeliverWebhookDeliveryResponses, RedeliverWebhookDeliveryErrors, ThrowOnError>;