@vertesia/common 1.6.0-dev.20261019.172735Z → 1.6.0-dev.20261022.120426Z

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 (40) hide show
  1. package/lib/api-contract/components.generated.json +40 -97
  2. package/lib/api-schemas/agent-runs.d.ts +2 -0
  3. package/lib/api-schemas/agent-runs.d.ts.map +1 -1
  4. package/lib/api-schemas/agent-runs.js +2 -1
  5. package/lib/api-schemas/agent-runs.js.map +1 -1
  6. package/lib/api-schemas/apikey.d.ts +3 -40
  7. package/lib/api-schemas/apikey.d.ts.map +1 -1
  8. package/lib/api-schemas/apikey.js +3 -17
  9. package/lib/api-schemas/apikey.js.map +1 -1
  10. package/lib/api-schemas/data-store.d.ts.map +1 -1
  11. package/lib/api-schemas/data-store.js +17 -1
  12. package/lib/api-schemas/data-store.js.map +1 -1
  13. package/lib/api-schemas/interaction.d.ts +10 -0
  14. package/lib/api-schemas/interaction.d.ts.map +1 -1
  15. package/lib/api-schemas/interaction.js +29 -0
  16. package/lib/api-schemas/interaction.js.map +1 -1
  17. package/lib/api-schemas/registry.d.ts +5 -30
  18. package/lib/api-schemas/registry.d.ts.map +1 -1
  19. package/lib/api-schemas/registry.js +6 -6
  20. package/lib/api-schemas/registry.js.map +1 -1
  21. package/lib/apikey.d.ts +0 -2
  22. package/lib/apikey.d.ts.map +1 -1
  23. package/lib/apikey.js.map +1 -1
  24. package/lib/interaction.d.ts +3 -3
  25. package/lib/interaction.d.ts.map +1 -1
  26. package/lib/interaction.js.map +1 -1
  27. package/lib/vertesia-common.js +1 -1
  28. package/lib/vertesia-common.js.map +1 -1
  29. package/lib/wire-types.generated.d.ts +15 -32
  30. package/lib/wire-types.generated.d.ts.map +1 -1
  31. package/package.json +12 -7
  32. package/src/api-contract/components.generated.json +40 -97
  33. package/src/api-schemas/agent-runs.ts +2 -0
  34. package/src/api-schemas/apikey.ts +3 -21
  35. package/src/api-schemas/data-store.ts +19 -1
  36. package/src/api-schemas/interaction.ts +39 -0
  37. package/src/api-schemas/registry.ts +8 -6
  38. package/src/apikey.ts +0 -2
  39. package/src/interaction.ts +5 -3
  40. package/src/wire-types.generated.ts +15 -32
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vertesia/common",
3
- "version": "1.6.0-dev.20261019.172735Z",
3
+ "version": "1.6.0-dev.20261022.120426Z",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "main": "./lib/index.js",
@@ -30,18 +30,18 @@
30
30
  }
31
31
  },
32
32
  "devDependencies": {
33
- "@types/node": "^24.19.1",
33
+ "@types/node": "^24.19.2",
34
34
  "@vertesia/tsconfig": "0.1.0",
35
- "rolldown": "1.2.12",
35
+ "rolldown": "1.2.14",
36
36
  "tsx": "^4.23.15",
37
37
  "typescript": "7.0.2",
38
- "vitest": "5.0.3"
38
+ "vitest": "5.0.4"
39
39
  },
40
40
  "dependencies": {
41
- "@llumiverse/common": "1.6.0-dev.20261019.165531Z",
41
+ "@llumiverse/common": "1.6.0-dev.20261022.120426Z",
42
42
  "ajv": "^8.20.0",
43
43
  "ajv-formats": "^3.0.1",
44
- "zod": "4.6.5"
44
+ "zod": "4.6.7"
45
45
  },
46
46
  "repository": {
47
47
  "type": "git",
@@ -56,7 +56,12 @@
56
56
  "ai",
57
57
  "typescript"
58
58
  ],
59
- "gitHead": "85a3010750ab97192d236928b1fca55015a18000",
59
+ "gitHead": "bcaa7879b601ce9ccc394bcd3257822da13869cd",
60
+ "releaseIdentity": {
61
+ "source_sha": "bcaa7879b601ce9ccc394bcd3257822da13869cd",
62
+ "dependency_sha": "93466e47b06db23ac3c800e248d170afe65e5006",
63
+ "lock_sha256": "117e1c8068aa07d59117323a51ceccfc96cab543e50c03eb7efc19709d6f5e6b"
64
+ },
60
65
  "scripts": {
61
66
  "lint": "biome lint src",
62
67
  "test": "vitest run",
@@ -1797,102 +1797,6 @@
1797
1797
  },
1798
1798
  "additionalProperties": false
1799
1799
  },
1800
- "ApiKeyReadResponse": {
1801
- "type": "object",
1802
- "properties": {
1803
- "id": {
1804
- "type": "string"
1805
- },
1806
- "name": {
1807
- "type": "string"
1808
- },
1809
- "type": {
1810
- "$ref": "#/components/schemas/ApiKeyTypes"
1811
- },
1812
- "role": {
1813
- "$ref": "#/components/schemas/SystemRoles"
1814
- },
1815
- "maskedValue": {
1816
- "type": "string"
1817
- },
1818
- "can_retrieve_value": {
1819
- "type": "boolean"
1820
- },
1821
- "account": {
1822
- "type": "string"
1823
- },
1824
- "project": {
1825
- "$ref": "#/components/schemas/ProjectRef"
1826
- },
1827
- "enabled": {
1828
- "type": "boolean"
1829
- },
1830
- "scim_provisioning": {
1831
- "type": "boolean",
1832
- "description": "Organization-wide SCIM provisioning credential. Only account administrators may create or manage these keys. May be enabled by account administrators on existing keys; disable or delete to revoke access."
1833
- },
1834
- "created_by": {
1835
- "type": "string"
1836
- },
1837
- "updated_by": {
1838
- "type": "string"
1839
- },
1840
- "created_at": {
1841
- "type": "string",
1842
- "format": "date-time"
1843
- },
1844
- "updated_at": {
1845
- "type": "string",
1846
- "format": "date-time"
1847
- },
1848
- "expires_at": {
1849
- "type": "string",
1850
- "format": "date-time"
1851
- },
1852
- "properties": {
1853
- "type": "object",
1854
- "additionalProperties": true,
1855
- "description": "Custom properties for dynamic permission matching (PrincipalSet / $principal. conditions)"
1856
- },
1857
- "clearance": {
1858
- "type": "number",
1859
- "description": "BLP clearance level — the maximum document sensitivity the key can access"
1860
- },
1861
- "compartments": {
1862
- "type": "array",
1863
- "items": {
1864
- "type": "string"
1865
- },
1866
- "description": "Compartments the key belongs to — restricts access to matching documents"
1867
- },
1868
- "value": {
1869
- "type": "string"
1870
- }
1871
- },
1872
- "required": [
1873
- "id",
1874
- "name",
1875
- "type",
1876
- "role",
1877
- "account",
1878
- "project",
1879
- "enabled",
1880
- "created_by",
1881
- "updated_by",
1882
- "created_at",
1883
- "updated_at"
1884
- ],
1885
- "additionalProperties": false
1886
- },
1887
- "ApiKeyReadQuery": {
1888
- "type": "object",
1889
- "properties": {
1890
- "withValue": {
1891
- "type": "boolean"
1892
- }
1893
- },
1894
- "additionalProperties": false
1895
- },
1896
1800
  "CreateApiKeyPayload": {
1897
1801
  "type": "object",
1898
1802
  "properties": {
@@ -13670,6 +13574,16 @@
13670
13574
  "additionalProperties": false,
13671
13575
  "description": "Interaction execution payload for creating a new run It uses interaction field (from NamedInteractionExecutionPayload) to pass the interaction ID to run"
13672
13576
  },
13577
+ "GetRunQuery": {
13578
+ "type": "object",
13579
+ "properties": {
13580
+ "include_prompt": {
13581
+ "type": "boolean",
13582
+ "description": "Whether the run includes the rendered `prompt` sent to the model. Defaults to true. Pass false when the caller does not read the prompt: it can be large (for example when media is inlined), and it is then not loaded from storage."
13583
+ }
13584
+ },
13585
+ "additionalProperties": false
13586
+ },
13673
13587
  "SortOrder": {
13674
13588
  "type": "string",
13675
13589
  "enum": [
@@ -14811,11 +14725,25 @@
14811
14725
  "additionalProperties": false,
14812
14726
  "description": "A retrieved execution run whose completion result is reported in the pre-versioning format. A run that has no result yet is returned unchanged, so `result` may still hold the current array form."
14813
14727
  },
14728
+ "ExecuteNamedInteractionQuery": {
14729
+ "type": "object",
14730
+ "properties": {
14731
+ "include_prompt": {
14732
+ "type": "boolean",
14733
+ "description": "Whether the synchronous execution result includes the rendered `prompt` sent to the model. Defaults to true. Pass false when the caller does not read the prompt: it can be large (for example when media is inlined). It is still stored with the run unless run data storage is restricted."
14734
+ }
14735
+ },
14736
+ "additionalProperties": false
14737
+ },
14814
14738
  "ExecuteInteractionByEndpointQuery": {
14815
14739
  "type": "object",
14816
14740
  "properties": {
14817
14741
  "tag": {
14818
14742
  "type": "string"
14743
+ },
14744
+ "include_prompt": {
14745
+ "type": "boolean",
14746
+ "description": "Whether the synchronous execution result includes the rendered `prompt` sent to the model. Defaults to true. Pass false when the caller does not read the prompt: it can be large (for example when media is inlined). It is still stored with the run unless run data storage is restricted."
14819
14747
  }
14820
14748
  },
14821
14749
  "additionalProperties": false
@@ -14919,6 +14847,12 @@
14919
14847
  },
14920
14848
  "description": "An array of endpoint URLs to be notified upon execution"
14921
14849
  },
14850
+ "idempotency_key": {
14851
+ "type": "string",
14852
+ "minLength": 1,
14853
+ "maxLength": 256,
14854
+ "description": "Client-chosen key, unique per intended run, that makes this request safe to retry. A repeat of the request with the same key and the same body returns the agent run the first request started instead of starting another. Reusing a key with a different body is rejected with 409, and a repeat that arrives while the first request is still starting the run may be answered with 503 and `Retry-After`. Keys are scoped to the project and stay bound to their run for as long as it exists; once the run is deleted, the same key starts a new one."
14855
+ },
14922
14856
  "task_queue": {
14923
14857
  "type": "string"
14924
14858
  },
@@ -36967,6 +36901,12 @@
36967
36901
  "started_by": {
36968
36902
  "type": "string",
36969
36903
  "description": "Principal ref of the user who initiated the run (for server-to-server forwarding)"
36904
+ },
36905
+ "idempotency_key": {
36906
+ "type": "string",
36907
+ "minLength": 1,
36908
+ "maxLength": 256,
36909
+ "description": "Client-chosen key, unique per intended run, that makes this request safe to retry. A repeat of the request with the same key and the same body returns the agent run the first request started instead of starting another. Reusing a key with a different body is rejected with 409, and a repeat that arrives while the first request is still starting the run may be answered with 503 and `Retry-After`. Keys are scoped to the project and stay bound to their run for as long as it exists; once the run is deleted, the same key starts a new one."
36970
36910
  }
36971
36911
  },
36972
36912
  "required": [
@@ -42744,7 +42684,10 @@
42744
42684
  "properties": {
42745
42685
  "name": {
42746
42686
  "type": "string",
42747
- "description": "Store name (unique within project)"
42687
+ "minLength": 1,
42688
+ "maxLength": 128,
42689
+ "pattern": "^[^\\x00-\\x20\\x7f-\\x9f/\\\\.](?:[^\\x00-\\x1f\\x7f-\\x9f/\\\\]*[^\\x00-\\x20\\x7f-\\x9f/\\\\])?$",
42690
+ "description": "Store name (unique within project). 1 to 128 characters; must not contain `/`, `\\` or control characters, start with a dot, or start or end with a space."
42748
42691
  },
42749
42692
  "description": {
42750
42693
  "type": "string",
@@ -18,6 +18,7 @@ import {
18
18
  import {
19
19
  AgentEvaluateRequestSchema,
20
20
  AgentResourceReferenceSchema,
21
+ AgentRunIdempotencyKeySchema,
21
22
  AgentSearchScopeSchema,
22
23
  AgentToolApprovalModeSchema,
23
24
  ConversationEnrichmentFields,
@@ -1089,6 +1090,7 @@ export const CreateAgentRunPayloadSchema = z
1089
1090
  .string()
1090
1091
  .meta({ description: 'Principal ref of the user who initiated the run (for server-to-server forwarding)' })
1091
1092
  .optional(),
1093
+ idempotency_key: AgentRunIdempotencyKeySchema.optional(),
1092
1094
  })
1093
1095
  .meta({ id: 'CreateAgentRunPayload', description: 'Payload to create and start a new agent run.' });
1094
1096
 
@@ -17,12 +17,6 @@ export const ApiKeyListQuerySchema = z
17
17
  })
18
18
  .meta({ id: 'ApiKeyListQuery' });
19
19
 
20
- export const ApiKeyReadQuerySchema = z
21
- .object({
22
- withValue: z.boolean().optional(),
23
- })
24
- .meta({ id: 'ApiKeyReadQuery' });
25
-
26
20
  /**
27
21
  * `z.literal` rather than `z.enum`, because the enum has exactly one member and the document
28
22
  * publishes it as `const: 'sk'`. A one-member `enum: ['sk']` would validate identically but change
@@ -70,9 +64,8 @@ export const ProjectRefArraySchema = z.array(ProjectRefSchema).meta({ id: 'Proje
70
64
  * plain string all the way down, which is why tightening it there would have turned stored data into
71
65
  * a 500 on read.
72
66
  *
73
- * `value` is deliberately absent. A key's secret is published only by the two components that
74
- * declare it — {@link ApiKeyWithValueSchema} on creation and {@link ApiKeyReadResponseSchema} on an
75
- * explicit `?withValue=true` read — so a handler cannot leak it by returning the wrong shape.
67
+ * `value` is deliberately absent. A key's secret is published only on creation, by
68
+ * {@link ApiKeyWithValueSchema}, so a handler cannot leak it by returning the wrong shape.
76
69
  */
77
70
  export const ApiKeySchema = z
78
71
  .object({
@@ -118,20 +111,11 @@ export const ApiKeySchema = z
118
111
 
119
112
  export const ApiKeyArraySchema = z.array(ApiKeySchema).meta({ id: 'ApiKeyArray' });
120
113
 
121
- /** The creation response: the only time the secret is returned unconditionally. */
114
+ /** The creation response: the only time the secret is ever returned. */
122
115
  export const ApiKeyWithValueSchema = ApiKeySchema.extend({
123
116
  value: z.string(),
124
117
  }).meta({ id: 'ApiKeyWithValue' });
125
118
 
126
- /**
127
- * The single-key read. `value` is present only when the caller asked for it AND holds
128
- * `api_key:secret_read`, so it is optional here where creation makes it required — which is exactly
129
- * why the two cannot share one component.
130
- */
131
- export const ApiKeyReadResponseSchema = ApiKeySchema.extend({
132
- value: z.string().optional(),
133
- }).meta({ id: 'ApiKeyReadResponse' });
134
-
135
119
  /**
136
120
  * What `POST /apikeys` accepts.
137
121
  *
@@ -199,12 +183,10 @@ export const DeleteOperationResultSchema = z
199
183
  .meta({ id: 'DeleteOperationResult' });
200
184
 
201
185
  export type ApiKeyListQueryFromSchema = Wire.ApiKeyListQueryFromSchema;
202
- export type ApiKeyReadQueryFromSchema = Wire.ApiKeyReadQueryFromSchema;
203
186
  export type ProjectRefArrayFromSchema = Wire.ProjectRefArrayFromSchema;
204
187
  export type ApiKeyFromSchema = Wire.ApiKeyFromSchema;
205
188
  export type ApiKeyArrayFromSchema = Wire.ApiKeyArrayFromSchema;
206
189
  export type ApiKeyWithValueFromSchema = Wire.ApiKeyWithValueFromSchema;
207
- export type ApiKeyReadResponseFromSchema = Wire.ApiKeyReadResponseFromSchema;
208
190
  export type CreateApiKeyPayloadFromSchema = Wire.CreateApiKeyPayloadFromSchema;
209
191
  export type UpdateApiKeyPayloadFromSchema = Wire.UpdateApiKeyPayloadFromSchema;
210
192
  export type AuthTokenResponseFromSchema = Wire.AuthTokenResponseFromSchema;
@@ -244,9 +244,27 @@ export const DataStoreDownloadInfoSchema = z
244
244
  })
245
245
  .meta({ id: 'DataStoreDownloadInfo' });
246
246
 
247
+ /**
248
+ * A store name is a display label, never a path: no `/` or `\`, no control characters (C0, DEL, C1),
249
+ * no leading dot (which also rules out `.` and `..`), and no leading or trailing space. The pattern
250
+ * avoids lookaheads and `\u` escapes so the Go (RE2) and Java generated clients accept it too.
251
+ */
252
+ const DATA_STORE_NAME_MAX_LENGTH = 128;
253
+ // biome-ignore lint/suspicious/noControlCharactersInRegex: the pattern exists to reject control characters.
254
+ const DATA_STORE_NAME_PATTERN = /^[^\x00-\x20\x7f-\x9f/\\.](?:[^\x00-\x1f\x7f-\x9f/\\]*[^\x00-\x20\x7f-\x9f/\\])?$/;
255
+
247
256
  export const CreateDataStorePayloadSchema = z
248
257
  .strictObject({
249
- name: z.string().meta({ description: 'Store name (unique within project)' }),
258
+ name: z
259
+ .string()
260
+ .min(1)
261
+ .max(DATA_STORE_NAME_MAX_LENGTH)
262
+ .regex(DATA_STORE_NAME_PATTERN)
263
+ .meta({
264
+ description:
265
+ 'Store name (unique within project). 1 to 128 characters; must not contain `/`, `\\` or ' +
266
+ 'control characters, start with a dot, or start or end with a space.',
267
+ }),
250
268
  description: z.string().meta({ description: 'Store description' }).optional(),
251
269
  tags: z.array(z.string()).meta({ description: 'Tags for organization' }).optional(),
252
270
  })
@@ -2133,6 +2133,20 @@ export const AgentEvaluateRequestSchema = z.boolean().optional().meta({
2133
2133
  'Request LLM evaluation when the project evaluation policy is opt_in. Defaults to false. Cannot override disabled or opt out of always_on.',
2134
2134
  });
2135
2135
 
2136
+ export const AgentRunIdempotencyKeySchema = z
2137
+ .string()
2138
+ .min(1)
2139
+ .max(256)
2140
+ .meta({
2141
+ description:
2142
+ 'Client-chosen key, unique per intended run, that makes this request safe to retry. A repeat of ' +
2143
+ 'the request with the same key and the same body returns the agent run the first request started ' +
2144
+ 'instead of starting another. Reusing a key with a different body is rejected with 409, and a ' +
2145
+ 'repeat that arrives while the first request is still starting the run may be answered with 503 ' +
2146
+ 'and `Retry-After`. Keys are scoped to the project and stay bound to their run for as long as it ' +
2147
+ 'exists; once the run is deleted, the same key starts a new one.',
2148
+ });
2149
+
2136
2150
  export const ConversationEnrichmentFields = {
2137
2151
  title: z.string().min(1).meta({ description: 'Caller-provided conversation title.' }).optional(),
2138
2152
  topic: z
@@ -2208,6 +2222,7 @@ export const AsyncConversationExecutionPayloadSchema = z
2208
2222
  .array(z.string())
2209
2223
  .meta({ description: 'An array of endpoint URLs to be notified upon execution' })
2210
2224
  .optional(),
2225
+ idempotency_key: AgentRunIdempotencyKeySchema.optional(),
2211
2226
  task_queue: z.string().optional(),
2212
2227
  tool_approval_mode: AgentToolApprovalModeSchema.meta({
2213
2228
  description: 'Effective tool approval mode for interactive agent conversations.',
@@ -2446,9 +2461,33 @@ export const StoredCatalogInteractionsQuerySchema = z
2446
2461
  })
2447
2462
  .meta({ id: 'StoredCatalogInteractionsQuery' });
2448
2463
 
2464
+ /** `include_prompt`: whether a response carries the rendered prompt sent to the model. */
2465
+ function includePromptQuery(description: string) {
2466
+ return z.boolean().meta({ description }).optional();
2467
+ }
2468
+
2469
+ export const GetRunQuerySchema = z
2470
+ .strictObject({
2471
+ include_prompt: includePromptQuery(
2472
+ 'Whether the run includes the rendered `prompt` sent to the model. Defaults to true. Pass false when the caller does not read the prompt: it can be large (for example when media is inlined), and it is then not loaded from storage.',
2473
+ ),
2474
+ })
2475
+ .meta({ id: 'GetRunQuery' });
2476
+
2477
+ const ExecutionIncludePromptQuerySchema = includePromptQuery(
2478
+ 'Whether the synchronous execution result includes the rendered `prompt` sent to the model. Defaults to true. Pass false when the caller does not read the prompt: it can be large (for example when media is inlined). It is still stored with the run unless run data storage is restricted.',
2479
+ );
2480
+
2481
+ export const ExecuteNamedInteractionQuerySchema = z
2482
+ .strictObject({
2483
+ include_prompt: ExecutionIncludePromptQuerySchema,
2484
+ })
2485
+ .meta({ id: 'ExecuteNamedInteractionQuery' });
2486
+
2449
2487
  export const ExecuteInteractionByEndpointQuerySchema = z
2450
2488
  .strictObject({
2451
2489
  tag: z.string().optional(),
2490
+ include_prompt: ExecutionIncludePromptQuerySchema,
2452
2491
  })
2453
2492
  .meta({ id: 'ExecuteInteractionByEndpointQuery' });
2454
2493
 
@@ -62,8 +62,6 @@ import {
62
62
  AccountApiKeyWithValueSchema,
63
63
  ApiKeyArraySchema,
64
64
  ApiKeyListQuerySchema,
65
- ApiKeyReadQuerySchema,
66
- ApiKeyReadResponseSchema,
67
65
  ApiKeySchema,
68
66
  ApiKeyWithValueSchema,
69
67
  AuthTokenResponseSchema,
@@ -503,6 +501,7 @@ import {
503
501
  EmailChannelSchema,
504
502
  ExecuteInteractionByEndpointHeadersSchema,
505
503
  ExecuteInteractionByEndpointQuerySchema,
504
+ ExecuteNamedInteractionQuerySchema,
506
505
  ExecutionResponseSchema,
507
506
  ExecutionRunDocRefSchema,
508
507
  ExecutionRunInteractionSchema,
@@ -525,6 +524,7 @@ import {
525
524
  GeneratedTestDataRecordSchema,
526
525
  GenerateInteractionPayloadSchema,
527
526
  GenerateTestDataPayloadSchema,
527
+ GetRunQuerySchema,
528
528
  ImprovePromptPayloadConfigSchema,
529
529
  ImprovePromptPayloadSchema,
530
530
  InCodeInteractionSchema,
@@ -892,8 +892,6 @@ const IAM_AND_ACCOUNT_SCHEMAS = {
892
892
  CreateAccountApiKeyPayload: CreateAccountApiKeyPayloadSchema,
893
893
  UpdateAccountApiKeyPayload: UpdateAccountApiKeyPayloadSchema,
894
894
 
895
- ApiKeyReadResponse: ApiKeyReadResponseSchema,
896
- ApiKeyReadQuery: ApiKeyReadQuerySchema,
897
895
  CreateApiKeyPayload: CreateApiKeyPayloadSchema,
898
896
  UpdateApiKeyPayload: UpdateApiKeyPayloadSchema,
899
897
  AuthTokenResponse: AuthTokenResponseSchema,
@@ -1278,6 +1276,7 @@ type ExecutionRunSchemaMap = {
1278
1276
  ExecutionRunRefArray: typeof ExecutionRunRefArraySchema;
1279
1277
  UpdateExecutionRunPayload: typeof UpdateExecutionRunPayloadSchema;
1280
1278
  RunCreatePayload: typeof RunCreatePayloadSchema;
1279
+ GetRunQuery: typeof GetRunQuerySchema;
1281
1280
  SortOrder: typeof SortOrderSchema;
1282
1281
  SortOption: typeof SortOptionSchema;
1283
1282
  RunSearchQuery: typeof RunSearchQuerySchema;
@@ -1298,6 +1297,7 @@ const EXECUTION_RUN_SCHEMAS: ExecutionRunSchemaMap = {
1298
1297
  ExecutionRunRefArray: ExecutionRunRefArraySchema,
1299
1298
  UpdateExecutionRunPayload: UpdateExecutionRunPayloadSchema,
1300
1299
  RunCreatePayload: RunCreatePayloadSchema,
1300
+ GetRunQuery: GetRunQuerySchema,
1301
1301
  // Listing and searching runs.
1302
1302
  SortOrder: SortOrderSchema,
1303
1303
  SortOption: SortOptionSchema,
@@ -1318,6 +1318,7 @@ const EXECUTION_REQUEST_SCHEMAS: {
1318
1318
  InteractionExecutionConfiguration: typeof InteractionExecutionConfigurationSchema;
1319
1319
  InteractionExecutionError: typeof InteractionExecutionErrorSchema;
1320
1320
  ResultStorageOptions: typeof ResultStorageOptionsSchema;
1321
+ ExecuteNamedInteractionQuery: typeof ExecuteNamedInteractionQuerySchema;
1321
1322
  ExecuteInteractionByEndpointQuery: typeof ExecuteInteractionByEndpointQuerySchema;
1322
1323
  ExecuteInteractionByEndpointHeaders: typeof ExecuteInteractionByEndpointHeadersSchema;
1323
1324
  AsyncCompletionMode: typeof AsyncCompletionModeSchema;
@@ -1353,6 +1354,7 @@ const EXECUTION_REQUEST_SCHEMAS: {
1353
1354
  InteractionExecutionConfiguration: InteractionExecutionConfigurationSchema,
1354
1355
  InteractionExecutionError: InteractionExecutionErrorSchema,
1355
1356
  ResultStorageOptions: ResultStorageOptionsSchema,
1357
+ ExecuteNamedInteractionQuery: ExecuteNamedInteractionQuerySchema,
1356
1358
  ExecuteInteractionByEndpointQuery: ExecuteInteractionByEndpointQuerySchema,
1357
1359
  ExecuteInteractionByEndpointHeaders: ExecuteInteractionByEndpointHeadersSchema,
1358
1360
  AsyncCompletionMode: AsyncCompletionModeSchema,
@@ -2731,8 +2733,6 @@ const STRICT_COMPONENTS: ReadonlySet<string> = new Set<string>([
2731
2733
  'AccountRef',
2732
2734
  'ApiKey',
2733
2735
  'ApiKeyWithValue',
2734
- 'ApiKeyReadResponse',
2735
- 'ApiKeyReadQuery',
2736
2736
  'CreateApiKeyPayload',
2737
2737
  'UpdateApiKeyPayload',
2738
2738
  'AuthTokenResponse',
@@ -3397,6 +3397,8 @@ const STRICT_COMPONENTS: ReadonlySet<string> = new Set<string>([
3397
3397
  'CatalogTagQuery',
3398
3398
  'StoredCatalogInteractionsQuery',
3399
3399
  'ResolveInteractionQuery',
3400
+ 'ExecuteNamedInteractionQuery',
3401
+ 'GetRunQuery',
3400
3402
  'ExecuteInteractionByEndpointQuery',
3401
3403
  'ExecuteInteractionByEndpointHeaders',
3402
3404
  // The prompt-authoring, project-tool, remote-MCP, audit-trail and view-experience closures.
package/src/apikey.ts CHANGED
@@ -62,7 +62,6 @@ export type ApiKeyArray = Wire.ApiKeyArray;
62
62
  export type CreateApiKeyPayload = Wire.CreateApiKeyPayload;
63
63
  export type UpdateApiKeyPayload = Wire.UpdateApiKeyPayload;
64
64
  export type ApiKeyWithValue = Wire.ApiKeyWithValue;
65
- export type ApiKeyReadResponse = Wire.ApiKeyReadResponse;
66
65
 
67
66
  export interface CreatePublicKeyPayload {
68
67
  name?: string;
@@ -72,7 +71,6 @@ export interface CreatePublicKeyPayload {
72
71
 
73
72
  export type AuthTokenResponse = Wire.AuthTokenResponse;
74
73
  export type ApiKeyListQuery = Wire.ApiKeyListQuery;
75
- export type ApiKeyReadQuery = Wire.ApiKeyReadQuery;
76
74
 
77
75
  export interface AuthTokenPayload {
78
76
  credential_scope?: 'project' | 'account';
@@ -49,9 +49,11 @@ export interface StoredCatalogInteractionsQuery extends CatalogTagQuery {
49
49
  published?: boolean;
50
50
  }
51
51
 
52
- export interface ExecuteInteractionByEndpointQuery {
53
- tag?: string;
54
- }
52
+ export type ExecuteNamedInteractionQuery = Wire.ExecuteNamedInteractionQuery;
53
+
54
+ export type GetRunQuery = Wire.GetRunQuery;
55
+
56
+ export type ExecuteInteractionByEndpointQuery = Wire.ExecuteInteractionByEndpointQuery;
55
57
 
56
58
  export interface ExecuteInteractionByEndpointHeaders {
57
59
  'x-interaction-tag'?: string;
@@ -232,9 +232,6 @@ export type StripeBillingStatusResponseFromSchema = StripeBillingEnabled | Strip
232
232
  export type ApiKeyListQueryFromSchema = {
233
233
  level?: 'account' | 'project' | undefined;
234
234
  };
235
- export type ApiKeyReadQueryFromSchema = {
236
- withValue?: boolean | undefined;
237
- };
238
235
  export type ProjectRefArrayFromSchema = ProjectRef[];
239
236
  export type ApiKeyFromSchema = {
240
237
  id: string;
@@ -278,27 +275,6 @@ export type ApiKeyWithValueFromSchema = {
278
275
  compartments?: string[] | undefined;
279
276
  value: string;
280
277
  };
281
- export type ApiKeyReadResponseFromSchema = {
282
- id: string;
283
- name: string;
284
- type: (typeof ApiKeyTypes)['secret'];
285
- role: (typeof SystemRoles)[keyof typeof SystemRoles];
286
- maskedValue?: string | undefined;
287
- can_retrieve_value?: boolean | undefined;
288
- account: string;
289
- project: ProjectRef;
290
- enabled: boolean;
291
- scim_provisioning?: boolean | undefined;
292
- created_by: string;
293
- updated_by: string;
294
- created_at: string;
295
- updated_at: string;
296
- expires_at?: string | undefined;
297
- properties?: Record<string, unknown> | undefined;
298
- clearance?: number | undefined;
299
- compartments?: string[] | undefined;
300
- value?: string | undefined;
301
- };
302
278
  export type CreateApiKeyPayloadFromSchema = {
303
279
  name: string;
304
280
  role: (typeof SystemRoles)[keyof typeof SystemRoles];
@@ -525,10 +501,8 @@ export type ApiKeyArray = ApiKeyArrayFromSchema;
525
501
  export type CreateApiKeyPayload = CreateApiKeyPayloadFromSchema;
526
502
  export type UpdateApiKeyPayload = UpdateApiKeyPayloadFromSchema;
527
503
  export type ApiKeyWithValue = ApiKeyWithValueFromSchema;
528
- export type ApiKeyReadResponse = ApiKeyReadResponseFromSchema;
529
504
  export type AuthTokenResponse = AuthTokenResponseFromSchema;
530
505
  export type ApiKeyListQuery = ApiKeyListQueryFromSchema;
531
- export type ApiKeyReadQuery = ApiKeyReadQueryFromSchema;
532
506
  export type AccountApiKey = {
533
507
  id: string;
534
508
  name: string;
@@ -4005,6 +3979,16 @@ export type CatalogInteractionRef = {
4005
3979
  title: string;
4006
3980
  description?: string | undefined;
4007
3981
  };
3982
+ export type ExecuteNamedInteractionQuery = {
3983
+ include_prompt?: boolean | undefined;
3984
+ };
3985
+ export type GetRunQuery = {
3986
+ include_prompt?: boolean | undefined;
3987
+ };
3988
+ export type ExecuteInteractionByEndpointQuery = {
3989
+ tag?: string | undefined;
3990
+ include_prompt?: boolean | undefined;
3991
+ };
4008
3992
  export type ResolveInteractionQuery = {
4009
3993
  environment?: string | undefined;
4010
3994
  model?: string | undefined;
@@ -4360,6 +4344,7 @@ export type AsyncConversationExecutionPayload = {
4360
4344
  asyncCompletion?: AsyncCompletionOptions | undefined;
4361
4345
  type: 'conversation';
4362
4346
  notify_endpoints?: string[] | undefined;
4347
+ idempotency_key?: string | undefined;
4363
4348
  task_queue?: string | undefined;
4364
4349
  tool_approval_mode?: AgentToolApprovalMode | undefined;
4365
4350
  visibility?: ConversationVisibility | undefined;
@@ -10007,6 +9992,7 @@ export type CreateAgentRunPayloadWire = {
10007
9992
  notify_endpoints?: string[] | undefined;
10008
9993
  debug_mode?: boolean | undefined;
10009
9994
  started_by?: string | undefined;
9995
+ idempotency_key?: string | undefined;
10010
9996
  };
10011
9997
  export type DSLActivitySpecWire = {
10012
9998
  name: string;
@@ -10433,9 +10419,6 @@ export type LegacyPopulatedExecutionRunResult = {
10433
10419
  conversation?: unknown | undefined;
10434
10420
  options?: StatelessExecutionOptions | undefined;
10435
10421
  };
10436
- export type ExecuteInteractionByEndpointQueryWire = {
10437
- tag?: string | undefined;
10438
- };
10439
10422
  export type ExecuteInteractionByEndpointHeadersWire = {
10440
10423
  'x-interaction-tag'?: string | undefined;
10441
10424
  };
@@ -10947,8 +10930,6 @@ export interface ApiComponentTypes {
10947
10930
  AccountApiKeyArray: AccountApiKeyArray;
10948
10931
  CreateAccountApiKeyPayload: CreateAccountApiKeyPayload;
10949
10932
  UpdateAccountApiKeyPayload: UpdateAccountApiKeyPayload;
10950
- ApiKeyReadResponse: ApiKeyReadResponseFromSchema;
10951
- ApiKeyReadQuery: ApiKeyReadQueryFromSchema;
10952
10933
  CreateApiKeyPayload: CreateApiKeyPayloadFromSchema;
10953
10934
  UpdateApiKeyPayload: UpdateApiKeyPayloadFromSchema;
10954
10935
  AuthTokenResponse: AuthTokenResponseFromSchema;
@@ -11241,6 +11222,7 @@ export interface ApiComponentTypes {
11241
11222
  ExecutionRunRefArray: ExecutionRunRefArray;
11242
11223
  UpdateExecutionRunPayload: UpdateExecutionRunPayload;
11243
11224
  RunCreatePayload: RunCreatePayload;
11225
+ GetRunQuery: GetRunQuery;
11244
11226
  SortOrder: SortOrder;
11245
11227
  SortOption: SortOption;
11246
11228
  RunSearchQuery: RunSearchQuery;
@@ -11257,7 +11239,8 @@ export interface ApiComponentTypes {
11257
11239
  InteractionExecutionConfiguration: InteractionExecutionConfiguration;
11258
11240
  InteractionExecutionError: InteractionExecutionError;
11259
11241
  ResultStorageOptions: ResultStorageOptions;
11260
- ExecuteInteractionByEndpointQuery: ExecuteInteractionByEndpointQueryWire;
11242
+ ExecuteNamedInteractionQuery: ExecuteNamedInteractionQuery;
11243
+ ExecuteInteractionByEndpointQuery: ExecuteInteractionByEndpointQuery;
11261
11244
  ExecuteInteractionByEndpointHeaders: ExecuteInteractionByEndpointHeadersWire;
11262
11245
  AsyncCompletionMode: AsyncCompletionMode;
11263
11246
  AsyncCompletionOptions: AsyncCompletionOptions;