@cadenya/cadenya 1.0.2 → 1.2.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.
Files changed (63) hide show
  1. package/api.md +45 -45
  2. package/dist/client.d.ts +2 -2
  3. package/dist/client.d.ts.map +1 -1
  4. package/dist/client.js +4 -4
  5. package/dist/client.js.map +1 -1
  6. package/dist/core/http.d.ts +6 -1
  7. package/dist/core/http.d.ts.map +1 -1
  8. package/dist/core/http.js +33 -6
  9. package/dist/core/http.js.map +1 -1
  10. package/dist/index.d.ts +1 -1
  11. package/dist/index.d.ts.map +1 -1
  12. package/dist/index.js +1 -1
  13. package/dist/index.js.map +1 -1
  14. package/dist/resources/agent-variations.d.ts +42 -32
  15. package/dist/resources/agent-variations.d.ts.map +1 -1
  16. package/dist/resources/agent-variations.js +22 -20
  17. package/dist/resources/agent-variations.js.map +1 -1
  18. package/dist/resources/agents.d.ts +4 -2
  19. package/dist/resources/agents.d.ts.map +1 -1
  20. package/dist/resources/agents.js +1 -1
  21. package/dist/resources/agents.js.map +1 -1
  22. package/dist/resources/ai-provider-keys.d.ts +11 -1
  23. package/dist/resources/ai-provider-keys.d.ts.map +1 -1
  24. package/dist/resources/ai-provider-keys.js +2 -2
  25. package/dist/resources/ai-provider-keys.js.map +1 -1
  26. package/dist/resources/memory-layers.d.ts +1 -1
  27. package/dist/resources/memory-layers.js +1 -1
  28. package/dist/resources/memory-layers.js.map +1 -1
  29. package/dist/resources/models.d.ts +51 -1
  30. package/dist/resources/models.d.ts.map +1 -1
  31. package/dist/resources/models.js +32 -0
  32. package/dist/resources/models.js.map +1 -1
  33. package/dist/resources/objectives.d.ts +1 -46
  34. package/dist/resources/objectives.d.ts.map +1 -1
  35. package/dist/resources/objectives.js +0 -35
  36. package/dist/resources/objectives.js.map +1 -1
  37. package/dist/resources/tool-search.d.ts +1 -1
  38. package/dist/resources/tool-search.js +1 -1
  39. package/dist/resources/tool-search.js.map +1 -1
  40. package/dist/resources/tools.d.ts +1 -1
  41. package/dist/resources/tools.js +1 -1
  42. package/dist/resources/tools.js.map +1 -1
  43. package/dist/types.d.ts +449 -100
  44. package/dist/types.d.ts.map +1 -1
  45. package/dist/types.js +40 -0
  46. package/dist/types.js.map +1 -1
  47. package/dist/webhooks.d.ts +7 -1
  48. package/dist/webhooks.d.ts.map +1 -1
  49. package/dist/webhooks.js.map +1 -1
  50. package/package.json +1 -1
  51. package/src/client.ts +4 -4
  52. package/src/core/http.ts +45 -6
  53. package/src/index.ts +1 -1
  54. package/src/resources/agent-variations.ts +59 -47
  55. package/src/resources/agents.ts +4 -2
  56. package/src/resources/ai-provider-keys.ts +13 -3
  57. package/src/resources/memory-layers.ts +1 -1
  58. package/src/resources/models.ts +67 -1
  59. package/src/resources/objectives.ts +1 -62
  60. package/src/resources/tool-search.ts +1 -1
  61. package/src/resources/tools.ts +1 -1
  62. package/src/types.ts +517 -103
  63. package/src/webhooks.ts +7 -1
package/dist/types.d.ts CHANGED
@@ -5,13 +5,42 @@
5
5
  * is fixed and intentionally not overridable here; use the OpenAI-compatible
6
6
  * provider to target a custom endpoint.
7
7
  */
8
- export type AIProviderConfig = AIProviderConfig_Openrouter | AIProviderConfig_Openai | AIProviderConfig_OpenaiCompatible;
8
+ export type AIProviderConfig = AIProviderConfig_Openrouter | AIProviderConfig_Openai | AIProviderConfig_OpenaiCompatible | AIProviderConfig_Vertex | AIProviderConfig_Bedrock;
9
9
  /**
10
10
  * AIProviderCredential is the secret material used to authenticate with a
11
11
  * provider. The set case must correspond to AIProviderKeySpec.provider. The
12
- * server encrypts the serialized message at rest and never returns it on reads.
12
+ * server classifies and encrypts sensitive fields at rest and never returns
13
+ * secret values on reads.
13
14
  */
14
- export type AIProviderCredential = AIProviderCredential_ApiKey | AIProviderCredential_Headers;
15
+ export type AIProviderCredential = AIProviderCredential_ApiKey | AIProviderCredential_Headers | AIProviderCredential_GoogleServiceAccount | AIProviderCredential_AwsAccessKey;
16
+ /**
17
+ * AIProviderCredentialFieldStatus is the safe read representation of one
18
+ * credential field. Value is populated only when sensitive is false.
19
+ */
20
+ export interface AIProviderCredentialFieldStatus {
21
+ name?: string;
22
+ sensitive?: boolean;
23
+ configured?: boolean;
24
+ value?: string;
25
+ }
26
+ /**
27
+ * AIProviderCredentialPatch changes selected fields of the current credential.
28
+ * Omitted values are retained and clear_fields explicitly removes optional
29
+ * fields. Changing type replaces the credential and requires all mandatory
30
+ * fields for the new type.
31
+ */
32
+ export interface AIProviderCredentialPatch {
33
+ credentials?: AIProviderCredential;
34
+ clearFields?: Array<string>;
35
+ }
36
+ /**
37
+ * AIProviderCredentialStatus describes the stored authentication method and
38
+ * its fields without returning secret material.
39
+ */
40
+ export interface AIProviderCredentialStatus {
41
+ type?: string;
42
+ fields?: Array<AIProviderCredentialFieldStatus>;
43
+ }
15
44
  /**
16
45
  * AIProviderKey is a credential for an AI provider, scoped to a workspace.
17
46
  * Most keys are customer-provided (BYOK); Cadenya also provisions promotional
@@ -28,6 +57,10 @@ export interface AIProviderKey {
28
57
  */
29
58
  info?: AIProviderKeyInfo;
30
59
  }
60
+ /**
61
+ * How models on this key are maintained; see ModelManagement.
62
+ */
63
+ export type AiProviderKeyInfoModelManagement = 'MODEL_MANAGEMENT_UNSPECIFIED' | 'MODEL_MANAGEMENT_CADENYA' | 'MODEL_MANAGEMENT_SYNCED' | 'MODEL_MANAGEMENT_CUSTOMIZABLE' | 'MODEL_MANAGEMENT_MANUAL';
31
64
  /**
32
65
  * AIProviderKeyInfo carries server-derived, read-only details about a key, for
33
66
  * AI provider management UIs.
@@ -46,11 +79,20 @@ export interface AIProviderKeyInfo {
46
79
  * These are not added or maintained by account administrators.
47
80
  */
48
81
  isPromotional: boolean;
82
+ /**
83
+ * Safe-to-display credential state. Secret values are never populated;
84
+ * configured reports whether a value is present without revealing it.
85
+ */
86
+ credentialStatus?: AIProviderCredentialStatus;
87
+ /**
88
+ * How models on this key are maintained; see ModelManagement.
89
+ */
90
+ modelManagement: AiProviderKeyInfoModelManagement;
49
91
  }
50
92
  /**
51
93
  * The AI provider this key authenticates against.
52
94
  */
53
- export type AiProviderKeySpecProvider = 'AI_PROVIDER_UNSPECIFIED' | 'AI_PROVIDER_OPENROUTER' | 'AI_PROVIDER_OPENAI' | 'AI_PROVIDER_ANTHROPIC' | 'AI_PROVIDER_GEMINI' | 'AI_PROVIDER_OPENAI_COMPATIBLE';
95
+ export type AiProviderKeySpecProvider = 'AI_PROVIDER_UNSPECIFIED' | 'AI_PROVIDER_OPENROUTER' | 'AI_PROVIDER_OPENAI' | 'AI_PROVIDER_ANTHROPIC' | 'AI_PROVIDER_GEMINI' | 'AI_PROVIDER_OPENAI_COMPATIBLE' | 'AI_PROVIDER_VERTEX' | 'AI_PROVIDER_BEDROCK';
54
96
  export interface AIProviderKeySpec {
55
97
  /**
56
98
  * The AI provider this key authenticates against.
@@ -63,8 +105,9 @@ export interface AIProviderKeySpec {
63
105
  credentials?: AIProviderCredential;
64
106
  /**
65
107
  * Non-secret, provider-specific settings (OpenAI org/project, OpenRouter
66
- * region, OpenAI-compatible base URL). The set case must correspond to
67
- * `provider`. Returned on reads. Optional: omit to accept provider defaults.
108
+ * region, OpenAI-compatible base URL, Vertex project/location, or Bedrock
109
+ * Region). The set case must correspond to `provider`. Returned on reads.
110
+ * Optional for providers that have usable defaults.
68
111
  */
69
112
  config?: AIProviderConfig;
70
113
  }
@@ -202,13 +245,15 @@ export interface AccountSpec {
202
245
  /**
203
246
  * Attach a single tool, tool set, or sub-agent to a variation. Exactly one
204
247
  * of the target fields must be set; the assignment kind is inferred from the
205
- * populated field.
248
+ * populated field. Adding an existing target returns AlreadyExists.
249
+ * All targets must be in the variation's workspace and eligible for assignment.
206
250
  */
207
251
  export type AddAgentVariationAssignmentRequest = AddAgentVariationAssignmentRequest_ToolId | AddAgentVariationAssignmentRequest_ToolSetId | AddAgentVariationAssignmentRequest_SubAgentId;
208
252
  /**
209
- * Attach a memory layer to a variation. The request is rejected when:
253
+ * Attach a memory layer to a variation. Use UpdateAgentVariationMemoryLayer or
254
+ * replace the spec list to reposition an existing layer. Rejected when:
255
+ * - the layer is already assigned, regardless of position (AlreadyExists)
210
256
  * - the layer is system-managed (FailedPrecondition)
211
- * - the layer is already assigned to this variation (AlreadyExists)
212
257
  * - the variation is already at the 10-assignment cap (FailedPrecondition)
213
258
  * - the position is already in use on this variation (InvalidArgument)
214
259
  */
@@ -406,7 +451,7 @@ export interface AgentScheduleSpec_Schedule {
406
451
  }
407
452
  /**
408
453
  * Controls how variations are automatically selected when creating objectives
409
- * Defaults to RANDOM when unspecified
454
+ * Defaults to WEIGHTED when unspecified
410
455
  */
411
456
  export type AgentSpecVariationSelectionMode = 'VARIATION_SELECTION_MODE_UNSPECIFIED' | 'VARIATION_SELECTION_MODE_RANDOM' | 'VARIATION_SELECTION_MODE_WEIGHTED';
412
457
  /**
@@ -423,9 +468,9 @@ export interface AgentSpec {
423
468
  webhookEventsUrl?: string;
424
469
  /**
425
470
  * Controls how variations are automatically selected when creating objectives
426
- * Defaults to RANDOM when unspecified
471
+ * Defaults to WEIGHTED when unspecified
427
472
  */
428
- variationSelectionMode: AgentSpecVariationSelectionMode;
473
+ variationSelectionMode?: AgentSpecVariationSelectionMode;
429
474
  /**
430
475
  * SystemPromptDataSchema enforces the shape of system_prompt_data when objectives are created. This is valuable when using liquid formatting in agent
431
476
  * variation system prompt templates. The schema is also used when the agent is attached as a sub-agent, as it becomes the tool's input parameter schema.
@@ -501,25 +546,26 @@ export interface AgentVariationInfo {
501
546
  * Total number of objective feedbacks received for this variation
502
547
  */
503
548
  feedbackCount: number;
504
- /**
505
- * All tools, tool sets, and sub-agents assigned to this variation.
506
- * Populated on reads so clients can render a variation's full assignment
507
- * list without calling the add/remove endpoints just to enumerate.
508
- */
509
- assignments: Array<VariationAssignment>;
510
- /**
511
- * Read-only list of memory layer assignments for this variation,
512
- * returned in ascending `position` (most specific first — resolution
513
- * order). Capped at 10 entries.
514
- */
515
- memoryLayerAssignments: Array<VariationMemoryLayerAssignment>;
516
549
  /**
517
550
  * Count of memory layer assignments.
518
551
  */
519
552
  memoryLayerCount: number;
553
+ /**
554
+ * Number of distinct callable tools available through this variation's
555
+ * assignments after normalization. Expands tool sets and deduplicates tools
556
+ * also assigned directly. Each sub-agent contributes one callable tool;
557
+ * its own assignments are not expanded. Counts the full normalized set,
558
+ * regardless of which tools progressive discovery has loaded.
559
+ */
560
+ effectiveToolCount: number;
520
561
  }
521
562
  /**
522
- * AgentVariationSpec defines the operational configuration for a variation
563
+ * AgentVariationSpec defines the complete operational configuration for a
564
+ * variation, including assignments. Reads always populate both assignment lists,
565
+ * even when include_info is false. Create and update validate and persist the
566
+ * configuration atomically: any invalid target or cascade rejects the entire
567
+ * request. Targets must belong to the variation's workspace and pass the same
568
+ * eligibility checks as the dedicated add methods.
523
569
  */
524
570
  export interface AgentVariationSpec {
525
571
  /**
@@ -560,6 +606,22 @@ export interface AgentVariationSpec {
560
606
  * creation is rejected with InvalidArgument.
561
607
  */
562
608
  firstUserMessageTemplate?: string;
609
+ /**
610
+ * Complete set of assigned tools, tool sets, and sub-agents. Order has no
611
+ * meaning. Duplicate (target kind, canonical target ID) pairs are collapsed.
612
+ * On create, omitted or empty means no assignments. On update, selecting
613
+ * spec.assignments in update_mask replaces the entire set; empty clears it.
614
+ */
615
+ assignments?: Array<VariationAssignment>;
616
+ /**
617
+ * Complete baseline memory cascade, returned in ascending position. At most
618
+ * 10 whole layers; system-managed layers cannot be assigned. Duplicate layer
619
+ * IDs (after alias resolution) or positions are InvalidArgument. Validate the
620
+ * final cascade, so swapping two positions in one update is supported.
621
+ * On create, omitted or empty means no layers. On update, selecting
622
+ * spec.memory_layer_assignments replaces the entire list; empty clears it.
623
+ */
624
+ memoryLayerAssignments?: Array<VariationMemoryLayerAssignment>;
563
625
  }
564
626
  /**
565
627
  * CompactionConfig defines how context window compaction behaves for objectives using this variation.
@@ -770,10 +832,16 @@ export interface BareMetadata {
770
832
  /**
771
833
  * Human-readable name of the referenced resource, populated by the server
772
834
  * on reads for convenience. Absent on references to resources that do not
773
- * have a name (e.g., objective tasks).
835
+ * have a name.
774
836
  */
775
837
  name?: string;
776
838
  }
839
+ /**
840
+ * BedrockConfig selects the AWS source Region used for Bedrock Runtime calls.
841
+ */
842
+ export interface BedrockConfig {
843
+ region?: string;
844
+ }
777
845
  /**
778
846
  * CallableTool is a union that represents a tool that can be called by an agent. In Cadenya, a tool that is used within an agent objective
779
847
  * might be a user-defined tool (IE: MCP, HTTP), another Agent (useful to separate context), or a Cadenya Tool (one Cadenya provides).
@@ -1060,7 +1128,9 @@ export interface CreateAgentRequest {
1060
1128
  metadata: CreateResourceMetadata;
1061
1129
  spec: AgentSpec;
1062
1130
  /**
1063
- * Optional default variation to add to the agent on create
1131
+ * Optional default variation to add to the agent on create. Its spec accepts
1132
+ * assignments and memory_layer_assignments using the same atomic validation
1133
+ * as CreateAgentVariation. Failure rejects the entire agent creation.
1064
1134
  */
1065
1135
  defaultVariation?: CreateAgentVariationRequest;
1066
1136
  }
@@ -1108,6 +1178,25 @@ export interface CreateMemoryLayerRequest {
1108
1178
  metadata: CreateResourceMetadata;
1109
1179
  spec: MemoryLayerSpec;
1110
1180
  }
1181
+ /**
1182
+ * Create model request. The model is created on the given AI provider key with
1183
+ * PROVENANCE_MANUALLY_ENTERED and STATE_ENABLED. The key must be customer
1184
+ * provided and its provider must accept manual definitions (see
1185
+ * AIProviderKeyInfo.model_management).
1186
+ */
1187
+ export interface CreateModelRequest {
1188
+ /**
1189
+ * Workspace ID.
1190
+ */
1191
+ workspaceId?: string;
1192
+ /**
1193
+ * The AI provider key the model routes through. Accepts the canonical
1194
+ * `aipk_…` form or the `external_id:<value>` form.
1195
+ */
1196
+ aiProviderKeyId?: string;
1197
+ metadata: CreateResourceMetadata;
1198
+ spec: ModelSpec;
1199
+ }
1111
1200
  /**
1112
1201
  * Request to submit feedback for an objective
1113
1202
  */
@@ -1341,6 +1430,22 @@ export interface CreateWorkspaceSecretRequest {
1341
1430
  export interface CredentialAPIKey {
1342
1431
  apiKey?: string;
1343
1432
  }
1433
+ /**
1434
+ * CredentialAWSAccessKey carries AWS SigV4 credentials. Optional presence is
1435
+ * used by credential patches so omitted values remain unchanged.
1436
+ */
1437
+ export interface CredentialAWSAccessKey {
1438
+ accessKeyId?: string;
1439
+ secretAccessKey?: string;
1440
+ sessionToken?: string;
1441
+ }
1442
+ /**
1443
+ * CredentialGoogleServiceAccount carries an in-memory Google service-account
1444
+ * credential document.
1445
+ */
1446
+ export interface CredentialGoogleServiceAccount {
1447
+ json?: string;
1448
+ }
1344
1449
  /**
1345
1450
  * CredentialHeaders carries arbitrary HTTP headers sent with every request to
1346
1451
  * the provider (e.g. {"Authorization": "Bearer ...", "X-Api-Key": "..."}).
@@ -1520,10 +1625,6 @@ export interface ListObjectiveFeedbackResponse {
1520
1625
  items: Array<ObjectiveFeedback>;
1521
1626
  pagination?: Page;
1522
1627
  }
1523
- export interface ListObjectiveTasksResponse {
1524
- items: Array<ObjectiveTask>;
1525
- pagination?: Page;
1526
- }
1527
1628
  export interface ListObjectiveToolCallsResponse {
1528
1629
  items: Array<ObjectiveToolCall>;
1529
1630
  pagination?: Page;
@@ -1835,6 +1936,12 @@ export interface MemoryReference {
1835
1936
  * :enable and :disable actions to transition.
1836
1937
  */
1837
1938
  export type ModelState = 'STATE_UNSPECIFIED' | 'STATE_ENABLED' | 'STATE_DISABLED';
1939
+ /**
1940
+ * Where this definition came from. Output only; set at creation. Synced
1941
+ * models reject edits to metadata.name and spec, manually entered models
1942
+ * accept them.
1943
+ */
1944
+ export type ModelProvenance = 'PROVENANCE_UNSPECIFIED' | 'PROVENANCE_SYNCED_FROM_PROVIDER' | 'PROVENANCE_MANUALLY_ENTERED';
1838
1945
  export interface Model {
1839
1946
  /**
1840
1947
  * Resource metadata
@@ -1854,6 +1961,39 @@ export interface Model {
1854
1961
  * :enable and :disable actions to transition.
1855
1962
  */
1856
1963
  state: ModelState;
1964
+ /**
1965
+ * Where this definition came from. Output only; set at creation. Synced
1966
+ * models reject edits to metadata.name and spec, manually entered models
1967
+ * accept them.
1968
+ */
1969
+ provenance: ModelProvenance;
1970
+ /**
1971
+ * Customer price overrides. Output only here; set through UpdateModel with
1972
+ * pricing_override.* mask paths. When an override is present, spec's price
1973
+ * fields already reflect it (they are the effective prices).
1974
+ */
1975
+ pricingOverride?: ModelPricingOverride;
1976
+ /**
1977
+ * The rates before any customer override: the catalog rate for a synced
1978
+ * model, the entered rate for a manually entered one. Output only. When a
1979
+ * side matches the spec price, an override may still be present; inspect
1980
+ * pricing_override field presence to determine whether an override is set.
1981
+ */
1982
+ basePricing: ModelBasePricing;
1983
+ }
1984
+ /**
1985
+ * ModelBasePricing is a model's default rates in cents per million tokens,
1986
+ * unaffected by pricing overrides. Zero means the rate is not known.
1987
+ */
1988
+ export interface ModelBasePricing {
1989
+ /**
1990
+ * Default input token rate, in cents per million tokens.
1991
+ */
1992
+ inputPricePerMillionTokens: string;
1993
+ /**
1994
+ * Default output token rate, in cents per million tokens.
1995
+ */
1996
+ outputPricePerMillionTokens: string;
1857
1997
  }
1858
1998
  /**
1859
1999
  * ModelInfo carries server-derived, read-only details about a model.
@@ -1876,6 +2016,21 @@ export interface ModelInfo {
1876
2016
  */
1877
2017
  lastUsedAt?: string;
1878
2018
  }
2019
+ /**
2020
+ * ModelPricingOverride replaces the catalog prices for a model. Each field is
2021
+ * independent: an absent field keeps the catalog price, a present field (zero
2022
+ * included) replaces it. Prices are cents per million tokens.
2023
+ */
2024
+ export interface ModelPricingOverride {
2025
+ /**
2026
+ * Override for input token price, in cents per million tokens.
2027
+ */
2028
+ inputPricePerMillionTokens?: string;
2029
+ /**
2030
+ * Override for output token price, in cents per million tokens.
2031
+ */
2032
+ outputPricePerMillionTokens?: string;
2033
+ }
1879
2034
  export interface ModelSpec {
1880
2035
  /**
1881
2036
  * The model provider (e.g., "anthropic", "openai", "google")
@@ -1894,11 +2049,16 @@ export interface ModelSpec {
1894
2049
  */
1895
2050
  maxOutputTokens: number;
1896
2051
  /**
1897
- * Cost per million input tokens in cents (e.g., 300 = $3.00)
2052
+ * Cost per million input tokens in cents (e.g., 300 = $3.00). On reads this
2053
+ * is the effective price: the catalog price unless
2054
+ * Model.pricing_override replaces it. Writes only apply to manually
2055
+ * entered models; use UpdateModel's pricing_override paths to override a
2056
+ * synced model's price.
1898
2057
  */
1899
2058
  inputPricePerMillionTokens: string;
1900
2059
  /**
1901
- * Cost per million output tokens in cents (e.g., 1500 = $15.00)
2060
+ * Cost per million output tokens in cents (e.g., 1500 = $15.00). Effective
2061
+ * price on reads, see input_price_per_million_tokens.
1902
2062
  */
1903
2063
  outputPricePerMillionTokens: string;
1904
2064
  /**
@@ -1907,6 +2067,15 @@ export interface ModelSpec {
1907
2067
  * (and its mode) lives here too, as the "reasoning" capability.
1908
2068
  */
1909
2069
  capabilities: Array<ModelSpec_Capability>;
2070
+ /**
2071
+ * The identifier the provider expects in inference requests, exactly as the
2072
+ * provider spells it: an OpenAI model name, a Vertex publisher model
2073
+ * resource, a Bedrock inference-profile ID or ARN, or an OpenAI-compatible
2074
+ * endpoint's model ID. Distinct from metadata.external_id, which is
2075
+ * Cadenya's slug. Verified with a minimal provider completion on creation
2076
+ * and whenever the identifier changes.
2077
+ */
2078
+ providerModelId: string;
1910
2079
  }
1911
2080
  /**
1912
2081
  * Capability describes one inference knob this model supports, with any
@@ -1938,7 +2107,7 @@ export interface Notice {
1938
2107
  /**
1939
2108
  * The current lifecycle state of the objective.
1940
2109
  */
1941
- export type ObjectiveState = 'STATE_UNSPECIFIED' | 'STATE_PENDING' | 'STATE_RUNNING' | 'STATE_WAITING' | 'STATE_FAILED' | 'STATE_CANCELLED' | 'STATE_FINALIZED' | 'STATE_TIMED_OUT';
2110
+ export type ObjectiveState = 'OBJECTIVE_STATE_UNSPECIFIED' | 'OBJECTIVE_STATE_PENDING' | 'OBJECTIVE_STATE_RUNNING' | 'OBJECTIVE_STATE_WAITING' | 'OBJECTIVE_STATE_FAILED' | 'OBJECTIVE_STATE_CANCELLED' | 'OBJECTIVE_STATE_FINALIZED' | 'OBJECTIVE_STATE_TIMED_OUT';
1942
2111
  /**
1943
2112
  * Objective is the data for an objective. It contains the snapshotted fields for the selected agent and variation. Secrets are returned
1944
2113
  * only with their names, and the output definition is copied from the agent's configuration.
@@ -2004,7 +2173,7 @@ export interface Objective {
2004
2173
  memoryCascade: Array<MemoryReference>;
2005
2174
  /**
2006
2175
  * The output of the objective, populated when the objective completes. Will match the schema of output_json_schema or output_json_inferred.
2007
- * This will only be set if the state of the objective is set to STATE_FINALIZED
2176
+ * This will only be set if the state of the objective is set to OBJECTIVE_STATE_FINALIZED
2008
2177
  */
2009
2178
  output?: Record<string, unknown>;
2010
2179
  /**
@@ -2141,7 +2310,7 @@ export interface ObjectiveEvent {
2141
2310
  */
2142
2311
  startedAt?: string;
2143
2312
  }
2144
- export type ObjectiveEventData = ObjectiveEventData_UserMessage | ObjectiveEventData_ToolApprovalRequested | ObjectiveEventData_ToolApproved | ObjectiveEventData_ToolDenied | ObjectiveEventData_ToolCalled | ObjectiveEventData_Error | ObjectiveEventData_AssistantMessage | ObjectiveEventData_ToolResult | ObjectiveEventData_ToolError | ObjectiveEventData_ContextWindowCompacted | ObjectiveEventData_MemoryRead | ObjectiveEventData_Cancelled | ObjectiveEventData_SubAgentSpawned | ObjectiveEventData_SubAgentUpdated | ObjectiveEventData_Finalized | ObjectiveEventData_Notice | ObjectiveEventData_TimedOut | ObjectiveEventData_Reasoning;
2313
+ export type ObjectiveEventData = ObjectiveEventData_UserMessage | ObjectiveEventData_ToolApprovalRequested | ObjectiveEventData_ToolApproved | ObjectiveEventData_ToolDenied | ObjectiveEventData_ToolCalled | ObjectiveEventData_Error | ObjectiveEventData_AssistantMessage | ObjectiveEventData_ToolResult | ObjectiveEventData_ToolError | ObjectiveEventData_ContextWindowCompacted | ObjectiveEventData_MemoryRead | ObjectiveEventData_Cancelled | ObjectiveEventData_SubAgentSpawned | ObjectiveEventData_SubAgentUpdated | ObjectiveEventData_Finalized | ObjectiveEventData_Notice | ObjectiveEventData_TimedOut | ObjectiveEventData_Reasoning | ObjectiveEventData_StateChanged;
2145
2314
  export interface ObjectiveEventInfo {
2146
2315
  objective?: OperationMetadata;
2147
2316
  createdBy: Profile;
@@ -2259,30 +2428,36 @@ export interface ObjectiveInfo {
2259
2428
  widget?: BareMetadata;
2260
2429
  }
2261
2430
  /**
2262
- * ObjectiveTask represents a task within an objective, typically created and managed by an AI agent
2263
- * to track progress toward completing the objective.
2431
+ * The state before this write. OBJECTIVE_STATE_UNSPECIFIED when the
2432
+ * objective was just created.
2264
2433
  */
2265
- export interface ObjectiveTask {
2266
- metadata: BareMetadata;
2267
- data: ObjectiveTaskData;
2268
- }
2269
- export interface ObjectiveTaskData {
2270
- /**
2271
- * The sequential number of this task within the objective (auto-assigned, 1-based)
2272
- */
2273
- number: number;
2434
+ export type ObjectiveStateChangedFromState = 'OBJECTIVE_STATE_UNSPECIFIED' | 'OBJECTIVE_STATE_PENDING' | 'OBJECTIVE_STATE_RUNNING' | 'OBJECTIVE_STATE_WAITING' | 'OBJECTIVE_STATE_FAILED' | 'OBJECTIVE_STATE_CANCELLED' | 'OBJECTIVE_STATE_FINALIZED' | 'OBJECTIVE_STATE_TIMED_OUT';
2435
+ /**
2436
+ * The state after this write.
2437
+ */
2438
+ export type ObjectiveStateChangedToState = 'OBJECTIVE_STATE_UNSPECIFIED' | 'OBJECTIVE_STATE_PENDING' | 'OBJECTIVE_STATE_RUNNING' | 'OBJECTIVE_STATE_WAITING' | 'OBJECTIVE_STATE_FAILED' | 'OBJECTIVE_STATE_CANCELLED' | 'OBJECTIVE_STATE_FINALIZED' | 'OBJECTIVE_STATE_TIMED_OUT';
2439
+ /**
2440
+ * ObjectiveStateChanged is written every time the objective's lifecycle state
2441
+ * is set, including the initial move into OBJECTIVE_STATE_PENDING at creation. Terminal
2442
+ * transitions also write their dedicated event (cancelled, timedOut,
2443
+ * finalized, error) immediately before this one, so consumers that only care
2444
+ * about the outcome can keep listening for those.
2445
+ */
2446
+ export interface ObjectiveStateChanged {
2274
2447
  /**
2275
- * Description of the task to be completed
2448
+ * The state before this write. OBJECTIVE_STATE_UNSPECIFIED when the
2449
+ * objective was just created.
2276
2450
  */
2277
- task: string;
2451
+ fromState: ObjectiveStateChangedFromState;
2278
2452
  /**
2279
- * Whether the task has been completed
2453
+ * The state after this write.
2280
2454
  */
2281
- completed: boolean;
2455
+ toState: ObjectiveStateChangedToState;
2282
2456
  /**
2283
- * Timestamp when the task was marked as completed
2457
+ * The status message recorded with the transition, if any (e.g.
2458
+ * "Continued", or the error summary on a failure).
2284
2459
  */
2285
- completedAt?: string;
2460
+ message?: string;
2286
2461
  }
2287
2462
  /**
2288
2463
  * ObjectiveTimedOut is the terminal event written when an objective is
@@ -2415,6 +2590,11 @@ export interface ObjectiveToolCallResult_ImageBlock {
2415
2590
  }
2416
2591
  export interface ObjectiveToolCallResult_TextBlock {
2417
2592
  text: string;
2593
+ /**
2594
+ * Size of the stored text in bytes. Filled by the server at record time;
2595
+ * zero on results recorded before this field existed.
2596
+ */
2597
+ sizeBytes?: string;
2418
2598
  }
2419
2599
  /**
2420
2600
  * Current status of the tool call
@@ -2691,6 +2871,33 @@ export interface Reasoning {
2691
2871
  */
2692
2872
  content: string;
2693
2873
  }
2874
+ /**
2875
+ * Detach a target by its foreign key. Removing an unassigned target returns
2876
+ * NotFound. The parent variation must exist and be accessible.
2877
+ */
2878
+ export type RemoveAgentVariationAssignmentRequest = RemoveAgentVariationAssignmentRequest_ToolId | RemoveAgentVariationAssignmentRequest_ToolSetId | RemoveAgentVariationAssignmentRequest_SubAgentId;
2879
+ /**
2880
+ * Remove by memory layer ID. An unassigned layer returns NotFound.
2881
+ * The parent variation must still exist and be accessible.
2882
+ */
2883
+ export interface RemoveAgentVariationMemoryLayerRequest {
2884
+ /**
2885
+ * Workspace ID.
2886
+ */
2887
+ workspaceId?: string;
2888
+ /**
2889
+ * Agent ID. Accepts the canonical `agent_…` form or the `external_id:<value>` form.
2890
+ */
2891
+ agentId?: string;
2892
+ /**
2893
+ * Variation ID. Accepts the canonical `agentvar_…` form or the `external_id:<value>` form.
2894
+ */
2895
+ variationId?: string;
2896
+ /**
2897
+ * Layer to detach. Accepts memlyr_… or external_id:<value>.
2898
+ */
2899
+ memoryLayerId: string;
2900
+ }
2694
2901
  export type ResolvedSecretSource = 'RESOLVED_SECRET_SOURCE_UNSPECIFIED' | 'RESOLVED_SECRET_SOURCE_WORKSPACE' | 'RESOLVED_SECRET_SOURCE_TOOLSET' | 'RESOLVED_SECRET_SOURCE_OBJECTIVE';
2695
2902
  /**
2696
2903
  * ResolvedSecret is a resolved secret value from the workspace, toolset, or objective. When a tool is called, it will rely
@@ -3802,6 +4009,11 @@ export interface UpdateAIProviderKeyRequest {
3802
4009
  * Fields to update.
3803
4010
  */
3804
4011
  updateMask?: string;
4012
+ /**
4013
+ * Field-level credential changes. This is independent of update_mask;
4014
+ * legacy clients may continue replacing spec.credentials atomically.
4015
+ */
4016
+ credentialPatch?: AIProviderCredentialPatch;
3805
4017
  }
3806
4018
  export interface UpdateAPIKeyRequest {
3807
4019
  /**
@@ -3887,7 +4099,7 @@ export interface UpdateAgentScheduleRequest {
3887
4099
  /**
3888
4100
  * Update an existing memory layer assignment. Only `position` is mutable.
3889
4101
  * A new position that collides with another assignment on the same variation
3890
- * is rejected with InvalidArgument.
4102
+ * is rejected with InvalidArgument. An unassigned layer returns NotFound.
3891
4103
  */
3892
4104
  export interface UpdateAgentVariationMemoryLayerRequest {
3893
4105
  /**
@@ -3902,11 +4114,14 @@ export interface UpdateAgentVariationMemoryLayerRequest {
3902
4114
  * Variation ID. Accepts the canonical `agentvar_…` form or the `external_id:<value>` form.
3903
4115
  */
3904
4116
  variationId?: string;
3905
- id?: string;
4117
+ /**
4118
+ * Layer to reposition. Accepts memlyr_… or external_id:<value>.
4119
+ */
4120
+ memoryLayerId: string;
3906
4121
  /**
3907
4122
  * New position. Only field currently updatable on an assignment.
3908
4123
  */
3909
- position?: number;
4124
+ position: number;
3910
4125
  }
3911
4126
  /**
3912
4127
  * Update agent variation request
@@ -3927,7 +4142,13 @@ export interface UpdateAgentVariationRequest {
3927
4142
  metadata?: UpdateResourceMetadata;
3928
4143
  spec?: AgentVariationSpec;
3929
4144
  /**
3930
- * Fields to update
4145
+ * Fields to update. Assignment lists are replaced as a whole, never merged.
4146
+ * Select spec.assignments or spec.memory_layer_assignments to replace/clear
4147
+ * one list. Selecting spec replaces the entire spec (including omitted lists);
4148
+ * * replaces all mutable fields. Element/index paths are not supported.
4149
+ * Without a mask, infer paths from non-empty fields: non-empty assignment
4150
+ * lists replace existing lists, while omitted/empty lists remain unchanged.
4151
+ * To clear a list, explicitly include its path in the mask.
3931
4152
  */
3932
4153
  updateMask?: string;
3933
4154
  }
@@ -3952,6 +4173,41 @@ export interface UpdateMemoryLayerRequest {
3952
4173
  spec?: MemoryLayerSpec;
3953
4174
  updateMask?: string;
3954
4175
  }
4176
+ /**
4177
+ * Update model request. update_mask must list leaf paths: metadata.name,
4178
+ * metadata.external_id, metadata.labels, spec.provider_model_id,
4179
+ * spec.provider, spec.family, spec.max_input_tokens, spec.max_output_tokens,
4180
+ * spec.capabilities, pricing_override.input_price_per_million_tokens, and
4181
+ * pricing_override.output_price_per_million_tokens. Synced models
4182
+ * (PROVENANCE_SYNCED_FROM_PROVIDER) reject metadata.name and spec.* paths.
4183
+ * spec price fields are never writable; price changes go through
4184
+ * pricing_override, where a masked-but-absent field clears the override.
4185
+ * Metadata and spec must be present when their respective paths are masked.
4186
+ */
4187
+ export interface UpdateModelRequest {
4188
+ /**
4189
+ * Workspace ID.
4190
+ */
4191
+ workspaceId?: string;
4192
+ /**
4193
+ * Model ID. Accepts the canonical `model_…` form or the `external_id:<value>` form.
4194
+ */
4195
+ id?: string;
4196
+ metadata?: UpdateResourceMetadata;
4197
+ /**
4198
+ * When any spec.* path is masked, send the complete spec (current values
4199
+ * plus edits); it is validated as a whole.
4200
+ */
4201
+ spec?: ModelSpec;
4202
+ /**
4203
+ * Customer price overrides, applied per masked path.
4204
+ */
4205
+ pricingOverride?: ModelPricingOverride;
4206
+ /**
4207
+ * Fields to update. Required; leaf paths only.
4208
+ */
4209
+ updateMask?: string;
4210
+ }
3955
4211
  /**
3956
4212
  * UpdateResourceMetadata contains the user-provided fields for updating
3957
4213
  * a workspace-scoped resource. Read-only fields (id, account_id, workspace_id, profile_id,
@@ -4137,44 +4393,38 @@ export interface UserMessage {
4137
4393
  content: string;
4138
4394
  }
4139
4395
  /**
4140
- * A read-only reference to a single tool, tool set, or sub-agent attached to
4141
- * a variation. Read the full set of assignments via `AgentVariationInfo.assignments`;
4142
- * mutations go through the dedicated add/remove assignment endpoints.
4143
- *
4144
- * The `id` identifies the assignment itself (not the referenced resource) and
4145
- * is the handle used to remove the assignment. It is returned by the add
4146
- * endpoint and present on every entry in `AgentVariationInfo.assignments`.
4396
+ * A tool, tool set, or sub-agent assigned to a variation, identified only by
4397
+ * the target resource ID. The same shape is accepted in a spec and returned
4398
+ * on reads. Assignment junction records are an internal implementation detail.
4147
4399
  */
4148
- export type VariationAssignment = VariationAssignment_Tool | VariationAssignment_ToolSet | VariationAssignment_Agent;
4400
+ export type VariationAssignment = VariationAssignment_ToolId | VariationAssignment_ToolSetId | VariationAssignment_SubAgentId;
4149
4401
  /**
4150
- * VariationMemoryLayerAssignment attaches a single MemoryLayer to a
4151
- * variation at a given position in the variation's baseline memory
4152
- * cascade. A variation has at most one assignment per memory_layer_id.
4153
- *
4154
- * Variations only support whole-layer attachments — entry pinning is an
4155
- * objective-level capability.
4402
+ * A whole memory layer in a variation's baseline memory cascade. Identified
4403
+ * by the memory layer ID; no assignment junction ID is exposed. Entry pinning
4404
+ * remains an objective-level capability.
4156
4405
  */
4157
4406
  export interface VariationMemoryLayerAssignment {
4158
4407
  /**
4159
- * Assignment row id — handle for removing the assignment. Distinct
4160
- * from the referenced memory layer's id.
4408
+ * Accepts the canonical memlyr_… ID or external_id:<value> on input.
4409
+ * Reads always return the canonical ID.
4161
4410
  */
4162
- id: string;
4163
- /**
4164
- * The attached memory layer.
4165
- */
4166
- memoryLayer: BareMetadata;
4411
+ memoryLayerId: string;
4167
4412
  /**
4168
- * Position in the variation's baseline cascade. Position is
4169
- * specificity, CSS-style: a LOWER position is more specific and is
4170
- * consulted first; the highest-position assignment is the most
4171
- * general fallback. Gaps are fine — only relative position matters.
4172
- * Positions must be unique within a variation; a request that would
4173
- * collide with an existing assignment's position is rejected with
4174
- * InvalidArgument.
4413
+ * Position is specificity: lower positions are consulted first; the highest
4414
+ * position is the most general fallback. Gaps and zero are valid. Positions
4415
+ * must be unique within a variation. Explicitly required in a full spec;
4416
+ * only AddAgentVariationMemoryLayer can choose an append position for you.
4175
4417
  */
4176
4418
  position: number;
4177
4419
  }
4420
+ /**
4421
+ * VertexConfig configures the Google Cloud project and location used by the
4422
+ * Vertex AI backend. Both are required for service-account authentication.
4423
+ */
4424
+ export interface VertexConfig {
4425
+ projectId?: string;
4426
+ location?: string;
4427
+ }
4178
4428
  export interface WebhookDelivery {
4179
4429
  metadata: OperationMetadata;
4180
4430
  /**
@@ -4186,7 +4436,7 @@ export type WebhookDeliveryDataStatus = 'WEBHOOK_DELIVERY_STATUS_UNSPECIFIED' |
4186
4436
  /**
4187
4437
  * The type of objective event that triggered this webhook delivery
4188
4438
  */
4189
- export type WebhookDeliveryDataEventType = 'OBJECTIVE_EVENT_TYPE_UNSPECIFIED' | 'OBJECTIVE_EVENT_TYPE_USER_MESSAGE' | 'OBJECTIVE_EVENT_TYPE_TOOL_APPROVAL_REQUESTED' | 'OBJECTIVE_EVENT_TYPE_TOOL_APPROVED' | 'OBJECTIVE_EVENT_TYPE_TOOL_DENIED' | 'OBJECTIVE_EVENT_TYPE_TOOL_CALLED' | 'OBJECTIVE_EVENT_TYPE_ERROR' | 'OBJECTIVE_EVENT_TYPE_ASSISTANT_MESSAGE' | 'OBJECTIVE_EVENT_TYPE_TOOL_RESULT' | 'OBJECTIVE_EVENT_TYPE_TOOL_ERROR' | 'OBJECTIVE_EVENT_TYPE_CONTEXT_WINDOW_COMPACTED' | 'OBJECTIVE_EVENT_TYPE_MEMORY_READ' | 'OBJECTIVE_EVENT_TYPE_CANCELLED' | 'OBJECTIVE_EVENT_TYPE_SUB_AGENT_SPAWNED' | 'OBJECTIVE_EVENT_TYPE_SUB_AGENT_UPDATED' | 'OBJECTIVE_EVENT_TYPE_FINALIZED' | 'OBJECTIVE_EVENT_TYPE_NOTICE' | 'OBJECTIVE_EVENT_TYPE_TIMED_OUT' | 'OBJECTIVE_EVENT_TYPE_REASONING';
4439
+ export type WebhookDeliveryDataEventType = 'OBJECTIVE_EVENT_TYPE_UNSPECIFIED' | 'OBJECTIVE_EVENT_TYPE_USER_MESSAGE' | 'OBJECTIVE_EVENT_TYPE_TOOL_APPROVAL_REQUESTED' | 'OBJECTIVE_EVENT_TYPE_TOOL_APPROVED' | 'OBJECTIVE_EVENT_TYPE_TOOL_DENIED' | 'OBJECTIVE_EVENT_TYPE_TOOL_CALLED' | 'OBJECTIVE_EVENT_TYPE_ERROR' | 'OBJECTIVE_EVENT_TYPE_ASSISTANT_MESSAGE' | 'OBJECTIVE_EVENT_TYPE_TOOL_RESULT' | 'OBJECTIVE_EVENT_TYPE_TOOL_ERROR' | 'OBJECTIVE_EVENT_TYPE_CONTEXT_WINDOW_COMPACTED' | 'OBJECTIVE_EVENT_TYPE_MEMORY_READ' | 'OBJECTIVE_EVENT_TYPE_CANCELLED' | 'OBJECTIVE_EVENT_TYPE_SUB_AGENT_SPAWNED' | 'OBJECTIVE_EVENT_TYPE_SUB_AGENT_UPDATED' | 'OBJECTIVE_EVENT_TYPE_FINALIZED' | 'OBJECTIVE_EVENT_TYPE_NOTICE' | 'OBJECTIVE_EVENT_TYPE_TIMED_OUT' | 'OBJECTIVE_EVENT_TYPE_REASONING' | 'OBJECTIVE_EVENT_TYPE_STATE_CHANGED';
4190
4440
  export interface WebhookDeliveryData {
4191
4441
  /**
4192
4442
  * Related resources
@@ -4510,20 +4760,26 @@ export interface ObjectiveEventWebhookData {
4510
4760
  */
4511
4761
  data: ObjectiveEventWebhookDataData;
4512
4762
  }
4513
- export interface VariationAssignment_Tool {
4514
- type: 'tool';
4515
- tool: BareMetadata;
4516
- id: string;
4763
+ export interface VariationAssignment_ToolId {
4764
+ type: 'toolId';
4765
+ /**
4766
+ * Canonical tool ID.
4767
+ */
4768
+ toolId: string;
4517
4769
  }
4518
- export interface VariationAssignment_ToolSet {
4519
- type: 'toolSet';
4520
- toolSet: BareMetadata;
4521
- id: string;
4770
+ export interface VariationAssignment_ToolSetId {
4771
+ type: 'toolSetId';
4772
+ /**
4773
+ * Canonical tool set ID.
4774
+ */
4775
+ toolSetId: string;
4522
4776
  }
4523
- export interface VariationAssignment_Agent {
4524
- type: 'agent';
4525
- agent: BareMetadata;
4526
- id: string;
4777
+ export interface VariationAssignment_SubAgentId {
4778
+ type: 'subAgentId';
4779
+ /**
4780
+ * Canonical sub-agent ID.
4781
+ */
4782
+ subAgentId: string;
4527
4783
  }
4528
4784
  export interface ObjectiveToolCallResult_ContentBlock_Text {
4529
4785
  type: 'text';
@@ -4802,6 +5058,10 @@ export interface ObjectiveEventData_Reasoning {
4802
5058
  type: 'reasoning';
4803
5059
  reasoning: Reasoning;
4804
5060
  }
5061
+ export interface ObjectiveEventData_StateChanged {
5062
+ type: 'stateChanged';
5063
+ stateChanged: ObjectiveStateChanged;
5064
+ }
4805
5065
  export interface CallableTool_Tool {
4806
5066
  type: 'tool';
4807
5067
  tool: ResourceMetadata;
@@ -4901,6 +5161,54 @@ export interface AddAgentVariationAssignmentRequest_SubAgentId {
4901
5161
  */
4902
5162
  variationId?: string;
4903
5163
  }
5164
+ export interface RemoveAgentVariationAssignmentRequest_ToolId {
5165
+ type: 'toolId';
5166
+ toolId: string;
5167
+ /**
5168
+ * Workspace ID.
5169
+ */
5170
+ workspaceId?: string;
5171
+ /**
5172
+ * Agent ID. Accepts the canonical `agent_…` form or the `external_id:<value>` form.
5173
+ */
5174
+ agentId?: string;
5175
+ /**
5176
+ * Variation ID. Accepts the canonical `agentvar_…` form or the `external_id:<value>` form.
5177
+ */
5178
+ variationId?: string;
5179
+ }
5180
+ export interface RemoveAgentVariationAssignmentRequest_ToolSetId {
5181
+ type: 'toolSetId';
5182
+ toolSetId: string;
5183
+ /**
5184
+ * Workspace ID.
5185
+ */
5186
+ workspaceId?: string;
5187
+ /**
5188
+ * Agent ID. Accepts the canonical `agent_…` form or the `external_id:<value>` form.
5189
+ */
5190
+ agentId?: string;
5191
+ /**
5192
+ * Variation ID. Accepts the canonical `agentvar_…` form or the `external_id:<value>` form.
5193
+ */
5194
+ variationId?: string;
5195
+ }
5196
+ export interface RemoveAgentVariationAssignmentRequest_SubAgentId {
5197
+ type: 'subAgentId';
5198
+ subAgentId: string;
5199
+ /**
5200
+ * Workspace ID.
5201
+ */
5202
+ workspaceId?: string;
5203
+ /**
5204
+ * Agent ID. Accepts the canonical `agent_…` form or the `external_id:<value>` form.
5205
+ */
5206
+ agentId?: string;
5207
+ /**
5208
+ * Variation ID. Accepts the canonical `agentvar_…` form or the `external_id:<value>` form.
5209
+ */
5210
+ variationId?: string;
5211
+ }
4904
5212
  export interface AIProviderCredential_ApiKey {
4905
5213
  type: 'apiKey';
4906
5214
  /**
@@ -4917,6 +5225,22 @@ export interface AIProviderCredential_Headers {
4917
5225
  */
4918
5226
  headers: CredentialHeaders;
4919
5227
  }
5228
+ export interface AIProviderCredential_GoogleServiceAccount {
5229
+ type: 'googleServiceAccount';
5230
+ /**
5231
+ * Google service-account JSON for Vertex AI. The server accepts only the
5232
+ * service_account credential type and never writes the JSON to plaintext
5233
+ * storage.
5234
+ */
5235
+ googleServiceAccount: CredentialGoogleServiceAccount;
5236
+ }
5237
+ export interface AIProviderCredential_AwsAccessKey {
5238
+ type: 'awsAccessKey';
5239
+ /**
5240
+ * AWS access credentials for Bedrock SigV4 authentication.
5241
+ */
5242
+ awsAccessKey: CredentialAWSAccessKey;
5243
+ }
4920
5244
  export interface AIProviderConfig_Openrouter {
4921
5245
  type: 'openrouter';
4922
5246
  openrouter: OpenRouterConfig;
@@ -4929,6 +5253,14 @@ export interface AIProviderConfig_OpenaiCompatible {
4929
5253
  type: 'openaiCompatible';
4930
5254
  openaiCompatible: OpenAICompatibleConfig;
4931
5255
  }
5256
+ export interface AIProviderConfig_Vertex {
5257
+ type: 'vertex';
5258
+ vertex: VertexConfig;
5259
+ }
5260
+ export interface AIProviderConfig_Bedrock {
5261
+ type: 'bedrock';
5262
+ bedrock: BedrockConfig;
5263
+ }
4932
5264
  export interface ModelSpec_Capability_Temperature {
4933
5265
  type: 'temperature';
4934
5266
  temperature: Capability_Temperature;
@@ -4960,10 +5292,10 @@ export interface ModelSpec_Capability_Caching {
4960
5292
  export type AgentServiceListAgentsState = 'STATE_UNSPECIFIED' | 'STATE_DRAFT' | 'STATE_PUBLISHED' | 'STATE_ARCHIVED';
4961
5293
  export type AgentServiceListAgentsVariationSelectionMode = 'VARIATION_SELECTION_MODE_UNSPECIFIED' | 'VARIATION_SELECTION_MODE_RANDOM' | 'VARIATION_SELECTION_MODE_WEIGHTED';
4962
5294
  export type AgentServiceListAgentFeedbackSentiment = 'FEEDBACK_SENTIMENT_UNSPECIFIED' | 'FEEDBACK_SENTIMENT_POSITIVE' | 'FEEDBACK_SENTIMENT_NEGATIVE';
4963
- export type AgentServiceListAgentWebhookDeliveriesEventType = 'OBJECTIVE_EVENT_TYPE_UNSPECIFIED' | 'OBJECTIVE_EVENT_TYPE_USER_MESSAGE' | 'OBJECTIVE_EVENT_TYPE_TOOL_APPROVAL_REQUESTED' | 'OBJECTIVE_EVENT_TYPE_TOOL_APPROVED' | 'OBJECTIVE_EVENT_TYPE_TOOL_DENIED' | 'OBJECTIVE_EVENT_TYPE_TOOL_CALLED' | 'OBJECTIVE_EVENT_TYPE_ERROR' | 'OBJECTIVE_EVENT_TYPE_ASSISTANT_MESSAGE' | 'OBJECTIVE_EVENT_TYPE_TOOL_RESULT' | 'OBJECTIVE_EVENT_TYPE_TOOL_ERROR' | 'OBJECTIVE_EVENT_TYPE_CONTEXT_WINDOW_COMPACTED' | 'OBJECTIVE_EVENT_TYPE_MEMORY_READ' | 'OBJECTIVE_EVENT_TYPE_CANCELLED' | 'OBJECTIVE_EVENT_TYPE_SUB_AGENT_SPAWNED' | 'OBJECTIVE_EVENT_TYPE_SUB_AGENT_UPDATED' | 'OBJECTIVE_EVENT_TYPE_FINALIZED' | 'OBJECTIVE_EVENT_TYPE_NOTICE' | 'OBJECTIVE_EVENT_TYPE_TIMED_OUT' | 'OBJECTIVE_EVENT_TYPE_REASONING';
5295
+ export type AgentServiceListAgentWebhookDeliveriesEventType = 'OBJECTIVE_EVENT_TYPE_UNSPECIFIED' | 'OBJECTIVE_EVENT_TYPE_USER_MESSAGE' | 'OBJECTIVE_EVENT_TYPE_TOOL_APPROVAL_REQUESTED' | 'OBJECTIVE_EVENT_TYPE_TOOL_APPROVED' | 'OBJECTIVE_EVENT_TYPE_TOOL_DENIED' | 'OBJECTIVE_EVENT_TYPE_TOOL_CALLED' | 'OBJECTIVE_EVENT_TYPE_ERROR' | 'OBJECTIVE_EVENT_TYPE_ASSISTANT_MESSAGE' | 'OBJECTIVE_EVENT_TYPE_TOOL_RESULT' | 'OBJECTIVE_EVENT_TYPE_TOOL_ERROR' | 'OBJECTIVE_EVENT_TYPE_CONTEXT_WINDOW_COMPACTED' | 'OBJECTIVE_EVENT_TYPE_MEMORY_READ' | 'OBJECTIVE_EVENT_TYPE_CANCELLED' | 'OBJECTIVE_EVENT_TYPE_SUB_AGENT_SPAWNED' | 'OBJECTIVE_EVENT_TYPE_SUB_AGENT_UPDATED' | 'OBJECTIVE_EVENT_TYPE_FINALIZED' | 'OBJECTIVE_EVENT_TYPE_NOTICE' | 'OBJECTIVE_EVENT_TYPE_TIMED_OUT' | 'OBJECTIVE_EVENT_TYPE_REASONING' | 'OBJECTIVE_EVENT_TYPE_STATE_CHANGED';
4964
5296
  export type MemoryServiceListMemoryLayersType = 'MEMORY_LAYER_TYPE_UNSPECIFIED' | 'MEMORY_LAYER_TYPE_EPISODIC' | 'MEMORY_LAYER_TYPE_SKILLS';
4965
5297
  export type ModelServiceListModelsState = 'STATE_UNSPECIFIED' | 'STATE_ENABLED' | 'STATE_DISABLED';
4966
- export type ObjectiveServiceListObjectivesState = 'STATE_UNSPECIFIED' | 'STATE_PENDING' | 'STATE_RUNNING' | 'STATE_WAITING' | 'STATE_FAILED' | 'STATE_CANCELLED' | 'STATE_FINALIZED' | 'STATE_TIMED_OUT';
5298
+ export type ObjectiveServiceListObjectivesState = 'OBJECTIVE_STATE_UNSPECIFIED' | 'OBJECTIVE_STATE_PENDING' | 'OBJECTIVE_STATE_RUNNING' | 'OBJECTIVE_STATE_WAITING' | 'OBJECTIVE_STATE_FAILED' | 'OBJECTIVE_STATE_CANCELLED' | 'OBJECTIVE_STATE_FINALIZED' | 'OBJECTIVE_STATE_TIMED_OUT';
4967
5299
  export type ObjectiveServiceListObjectiveToolCallsStatus = 'TOOL_CALL_STATUS_UNSPECIFIED' | 'TOOL_CALL_STATUS_AUTO_APPROVED' | 'TOOL_CALL_STATUS_WAITING_FOR_APPROVAL' | 'TOOL_CALL_STATUS_APPROVED' | 'TOOL_CALL_STATUS_DENIED';
4968
5300
  export type ObjectiveServiceListObjectiveToolCallsExecutionStatus = 'TOOL_CALL_EXECUTION_STATUS_UNSPECIFIED' | 'TOOL_CALL_EXECUTION_STATUS_PENDING' | 'TOOL_CALL_EXECUTION_STATUS_RUNNING' | 'TOOL_CALL_EXECUTION_STATUS_COMPLETED' | 'TOOL_CALL_EXECUTION_STATUS_ERRORED' | 'TOOL_CALL_EXECUTION_STATUS_WAITING_FOR_CONTENT';
4969
5301
  export type ToolServiceListToolSetsState = 'STATE_UNSPECIFIED' | 'STATE_ACTIVE' | 'STATE_ARCHIVED';
@@ -5010,6 +5342,7 @@ export interface ObjectiveEpisodicConfigParam {
5010
5342
  */
5011
5343
  key: string;
5012
5344
  }
5345
+ export type RemoveAgentVariationAssignmentRequestParam = RemoveAgentVariationAssignmentRequest_ToolIdParam | RemoveAgentVariationAssignmentRequest_ToolSetIdParam | RemoveAgentVariationAssignmentRequest_SubAgentIdParam;
5013
5346
  export interface WidgetSessionSpecParam {
5014
5347
  /**
5015
5348
  * Widget this session is minted against. Accepts the canonical `wgt_…` form
@@ -5059,6 +5392,18 @@ export interface AddAgentVariationAssignmentRequest_SubAgentIdParam {
5059
5392
  type: 'subAgentId';
5060
5393
  subAgentId: string;
5061
5394
  }
5395
+ export interface RemoveAgentVariationAssignmentRequest_ToolIdParam {
5396
+ type: 'toolId';
5397
+ toolId: string;
5398
+ }
5399
+ export interface RemoveAgentVariationAssignmentRequest_ToolSetIdParam {
5400
+ type: 'toolSetId';
5401
+ toolSetId: string;
5402
+ }
5403
+ export interface RemoveAgentVariationAssignmentRequest_SubAgentIdParam {
5404
+ type: 'subAgentId';
5405
+ subAgentId: string;
5406
+ }
5062
5407
  export declare function wireArray<T>(value: Array<T> | null | undefined, fn: (v: T) => unknown): unknown;
5063
5408
  export declare function wireMap<T>(value: Record<string, T> | null | undefined, fn: (v: T) => unknown): unknown;
5064
5409
  export declare function wireAPIKeySpec(value: APIKeySpecParam | null | undefined): unknown;
@@ -5066,8 +5411,12 @@ export declare function wireAddAgentVariationAssignmentRequest(value: AddAgentVa
5066
5411
  export declare function wireCreateAgentVariationRequest(value: CreateAgentVariationRequestParam | null | undefined): unknown;
5067
5412
  export declare function wireMemoryLayerSpec(value: MemoryLayerSpecParam | null | undefined): unknown;
5068
5413
  export declare function wireObjectiveEpisodicConfig(value: ObjectiveEpisodicConfigParam | null | undefined): unknown;
5414
+ export declare function wireRemoveAgentVariationAssignmentRequest(value: RemoveAgentVariationAssignmentRequestParam | null | undefined): unknown;
5069
5415
  export declare function wireWidgetSessionSpec(value: WidgetSessionSpecParam | null | undefined): unknown;
5070
5416
  export declare function wireAddAgentVariationAssignmentRequest_ToolId(value: AddAgentVariationAssignmentRequest_ToolIdParam | null | undefined): unknown;
5071
5417
  export declare function wireAddAgentVariationAssignmentRequest_ToolSetId(value: AddAgentVariationAssignmentRequest_ToolSetIdParam | null | undefined): unknown;
5072
5418
  export declare function wireAddAgentVariationAssignmentRequest_SubAgentId(value: AddAgentVariationAssignmentRequest_SubAgentIdParam | null | undefined): unknown;
5419
+ export declare function wireRemoveAgentVariationAssignmentRequest_ToolId(value: RemoveAgentVariationAssignmentRequest_ToolIdParam | null | undefined): unknown;
5420
+ export declare function wireRemoveAgentVariationAssignmentRequest_ToolSetId(value: RemoveAgentVariationAssignmentRequest_ToolSetIdParam | null | undefined): unknown;
5421
+ export declare function wireRemoveAgentVariationAssignmentRequest_SubAgentId(value: RemoveAgentVariationAssignmentRequest_SubAgentIdParam | null | undefined): unknown;
5073
5422
  //# sourceMappingURL=types.d.ts.map