@agen-ai/agent-protocol 0.2.4 → 0.2.5

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.
@@ -9,465 +9,902 @@ export interface AgentProtocolJsonSchemaArtifact {
9
9
  readonly sha256: string;
10
10
  readonly schema: Readonly<Record<string, unknown>>;
11
11
  }
12
- export declare const AGENT_SESSION_BINDING_JSON_SCHEMA: {
13
- readonly contractId: "agenai.agent-protocol.session-binding";
12
+ export declare const AGENT_ACCOUNT_QUOTA_SNAPSHOT_JSON_SCHEMA: {
13
+ readonly contractId: "agenai.agent-protocol.account-quota-snapshot";
14
14
  readonly protocolVersion: 8;
15
15
  readonly direction: "output";
16
16
  readonly dialect: "https://json-schema.org/draft/2020-12/schema";
17
- readonly parserInvariants: readonly [];
18
- readonly sha256: "066245cff4499dfd199eab873ac8f4b9d1b963e2e9dc07a4b083c7620badfc33";
17
+ readonly parserInvariants: readonly ["quota_observation_ordering", "quota_quantity_presence", "quota_reset_ordering", "serialized_bytes", "unique_model_ids", "unique_pool_window_ids"];
18
+ readonly sha256: "5b8e8bf4c0a870f66b7d8a1f35160a97ca72d8e212990f9722eff5967412102a";
19
19
  readonly schema: {
20
20
  readonly $defs: {
21
21
  readonly __schema0: {
22
- readonly maxLength: 512;
22
+ readonly const: 1;
23
+ readonly type: "number";
24
+ };
25
+ readonly __schema1: {
26
+ readonly maxLength: 256;
23
27
  readonly minLength: 1;
24
28
  readonly pattern: "^(?![\\s\\S]*[\\u0000-\\u001F\\u007F-\\u009F])\\S(?:[\\s\\S]*\\S)?$";
25
29
  readonly type: "string";
26
30
  };
27
- };
28
- readonly $id: "urn:agenai.agent-protocol.session-binding:v8:output";
29
- readonly $schema: "https://json-schema.org/draft/2020-12/schema";
30
- readonly additionalProperties: false;
31
- readonly properties: {
32
- readonly conversationId: {
33
- readonly $ref: "#/$defs/__schema0";
34
- };
35
- readonly historyAnchor: {
36
- readonly $ref: "#/$defs/__schema0";
31
+ readonly __schema2: {
32
+ readonly format: "date-time";
33
+ readonly pattern: "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$";
34
+ readonly type: "string";
37
35
  };
38
- };
39
- readonly readOnly: true;
40
- readonly required: readonly ["conversationId"];
41
- readonly type: "object";
42
- };
43
- };
44
- export declare const AGENT_SESSION_CONFIGURATION_JSON_SCHEMA: {
45
- readonly contractId: "agenai.agent-protocol.session-configuration";
46
- readonly protocolVersion: 8;
47
- readonly direction: "input";
48
- readonly dialect: "https://json-schema.org/draft/2020-12/schema";
49
- readonly parserInvariants: readonly ["configuration_entry_count", "serialized_bytes"];
50
- readonly sha256: "1ab7ecdaeb944f74636f701d446e0ccc9d0911cc44a4bbbc42c11d51de9d639d";
51
- readonly schema: {
52
- readonly $defs: {
53
- readonly __schema0: {
54
- readonly maxLength: 256;
36
+ readonly __schema3: {
37
+ readonly maxLength: 160;
55
38
  readonly minLength: 1;
56
39
  readonly pattern: "^(?![\\s\\S]*[\\u0000-\\u001F\\u007F-\\u009F])\\S(?:[\\s\\S]*\\S)?$";
57
40
  readonly type: "string";
58
41
  };
59
- readonly __schema1: {
60
- readonly exclusiveMinimum: 0;
61
- readonly maximum: 9007199254740991;
62
- readonly type: "integer";
63
- };
64
- readonly __schema2: {
42
+ readonly __schema4: {
65
43
  readonly additionalProperties: false;
66
44
  readonly properties: {
67
- readonly fieldRevision: {
68
- readonly $ref: "#/$defs/__schema1";
69
- };
70
- readonly key: {
71
- readonly $ref: "#/$defs/__schema0";
45
+ readonly allowanceKind: {
46
+ readonly enum: readonly ["included", "extra", "reserve", "unknown"];
47
+ readonly type: "string";
72
48
  };
73
- readonly value: {
49
+ readonly applicability: {
74
50
  readonly oneOf: readonly [{
75
51
  readonly additionalProperties: false;
76
52
  readonly properties: {
77
- readonly fieldKind: {
78
- readonly const: "boolean";
53
+ readonly kind: {
54
+ readonly const: "account";
79
55
  readonly type: "string";
80
56
  };
81
- readonly value: {
82
- readonly type: "boolean";
83
- };
84
57
  };
85
58
  readonly readOnly: true;
86
- readonly required: readonly ["fieldKind", "value"];
59
+ readonly required: readonly ["kind"];
87
60
  readonly type: "object";
88
61
  }, {
89
62
  readonly additionalProperties: false;
90
63
  readonly properties: {
91
- readonly fieldKind: {
92
- readonly const: "single_select";
64
+ readonly kind: {
65
+ readonly const: "product";
93
66
  readonly type: "string";
94
67
  };
95
- readonly optionId: {
96
- readonly $ref: "#/$defs/__schema0";
68
+ readonly productId: {
69
+ readonly $ref: "#/$defs/__schema1";
97
70
  };
98
71
  };
99
72
  readonly readOnly: true;
100
- readonly required: readonly ["fieldKind", "optionId"];
73
+ readonly required: readonly ["kind", "productId"];
101
74
  readonly type: "object";
102
75
  }, {
103
76
  readonly additionalProperties: false;
104
77
  readonly properties: {
105
- readonly fieldKind: {
106
- readonly const: "bounded_integer";
78
+ readonly kind: {
79
+ readonly const: "models";
107
80
  readonly type: "string";
108
81
  };
109
- readonly value: {
110
- readonly maximum: 9007199254740991;
111
- readonly minimum: -9007199254740991;
112
- readonly type: "integer";
82
+ readonly modelIds: {
83
+ readonly items: {
84
+ readonly $ref: "#/$defs/__schema1";
85
+ };
86
+ readonly maxItems: 32;
87
+ readonly minItems: 1;
88
+ readonly readOnly: true;
89
+ readonly type: "array";
113
90
  };
114
91
  };
115
92
  readonly readOnly: true;
116
- readonly required: readonly ["fieldKind", "value"];
93
+ readonly required: readonly ["kind", "modelIds"];
117
94
  readonly type: "object";
118
95
  }, {
119
96
  readonly additionalProperties: false;
120
97
  readonly properties: {
121
- readonly fieldKind: {
122
- readonly const: "bounded_text";
123
- readonly type: "string";
124
- };
125
- readonly value: {
126
- readonly maxLength: 4000;
127
- readonly pattern: "^(?:$|\\S|\\S[\\s\\S]*\\S)$";
98
+ readonly kind: {
99
+ readonly const: "unknown";
128
100
  readonly type: "string";
129
101
  };
130
102
  };
131
103
  readonly readOnly: true;
132
- readonly required: readonly ["fieldKind", "value"];
104
+ readonly required: readonly ["kind"];
133
105
  readonly type: "object";
134
106
  }];
135
107
  };
136
- };
137
- readonly readOnly: true;
138
- readonly required: readonly ["key", "fieldRevision", "value"];
139
- readonly type: "object";
140
- };
141
- };
142
- readonly $id: "urn:agenai.agent-protocol.session-configuration:v8:input";
143
- readonly $schema: "https://json-schema.org/draft/2020-12/schema";
144
- readonly oneOf: readonly [{
145
- readonly additionalProperties: false;
146
- readonly properties: {
147
- readonly kind: {
148
- readonly const: "managed";
149
- readonly type: "string";
150
- };
151
- readonly revision: {
152
- readonly $ref: "#/$defs/__schema0";
153
- };
154
- };
155
- readonly readOnly: true;
156
- readonly required: readonly ["kind", "revision"];
157
- readonly type: "object";
158
- }, {
159
- readonly additionalProperties: false;
160
- readonly properties: {
161
- readonly catalogRevision: {
162
- readonly $ref: "#/$defs/__schema1";
163
- };
164
- readonly kind: {
165
- readonly const: "selected";
166
- readonly type: "string";
167
- };
168
- readonly revision: {
169
- readonly $ref: "#/$defs/__schema0";
170
- };
171
- readonly selections: {
172
- readonly items: {
173
- readonly $ref: "#/$defs/__schema2";
174
- };
175
- readonly maxItems: 100;
176
- readonly readOnly: true;
177
- readonly type: "array";
178
- };
179
- };
180
- readonly readOnly: true;
181
- readonly required: readonly ["kind", "revision", "catalogRevision", "selections"];
182
- readonly type: "object";
183
- }];
184
- };
185
- };
186
- export declare const AGENT_SESSION_OPEN_INPUT_JSON_SCHEMA: {
187
- readonly contractId: "agenai.agent-protocol.session-open-input";
188
- readonly protocolVersion: 8;
189
- readonly direction: "input";
190
- readonly dialect: "https://json-schema.org/draft/2020-12/schema";
191
- readonly parserInvariants: readonly ["configuration_entry_count", "distinct_branch_session_ids", "serialized_bytes"];
192
- readonly sha256: "1bbb74a15011021b3f6f303d2399c8f2139b68f8d205bec31dfade3cbb9d9d7f";
193
- readonly schema: {
194
- readonly $defs: {
195
- readonly __schema0: {
196
- readonly maxLength: 256;
197
- readonly minLength: 1;
198
- readonly pattern: "^(?![\\s\\S]*[\\u0000-\\u001F\\u007F-\\u009F])\\S(?:[\\s\\S]*\\S)?$";
199
- readonly type: "string";
200
- };
201
- readonly __schema1: {
202
- readonly oneOf: readonly [{
203
- readonly additionalProperties: false;
204
- readonly properties: {
205
- readonly kind: {
206
- readonly const: "managed";
207
- readonly type: "string";
208
- };
209
- readonly revision: {
210
- readonly $ref: "#/$defs/__schema0";
211
- };
212
- };
213
- readonly readOnly: true;
214
- readonly required: readonly ["kind", "revision"];
215
- readonly type: "object";
216
- }, {
217
- readonly additionalProperties: false;
218
- readonly properties: {
219
- readonly catalogRevision: {
220
- readonly $ref: "#/$defs/__schema2";
221
- };
222
- readonly kind: {
223
- readonly const: "selected";
224
- readonly type: "string";
225
- };
226
- readonly revision: {
227
- readonly $ref: "#/$defs/__schema0";
228
- };
229
- readonly selections: {
230
- readonly items: {
231
- readonly $ref: "#/$defs/__schema3";
232
- };
233
- readonly maxItems: 100;
234
- readonly readOnly: true;
235
- readonly type: "array";
236
- };
237
- };
238
- readonly readOnly: true;
239
- readonly required: readonly ["kind", "revision", "catalogRevision", "selections"];
240
- readonly type: "object";
241
- }];
242
- };
243
- readonly __schema2: {
244
- readonly exclusiveMinimum: 0;
245
- readonly maximum: 9007199254740991;
246
- readonly type: "integer";
247
- };
248
- readonly __schema3: {
249
- readonly additionalProperties: false;
250
- readonly properties: {
251
- readonly fieldRevision: {
252
- readonly $ref: "#/$defs/__schema2";
253
- };
254
- readonly key: {
255
- readonly $ref: "#/$defs/__schema0";
108
+ readonly label: {
109
+ readonly $ref: "#/$defs/__schema3";
256
110
  };
257
- readonly value: {
111
+ readonly measurement: {
258
112
  readonly oneOf: readonly [{
259
113
  readonly additionalProperties: false;
260
114
  readonly properties: {
261
- readonly fieldKind: {
262
- readonly const: "boolean";
115
+ readonly kind: {
116
+ readonly const: "unknown";
263
117
  readonly type: "string";
264
118
  };
265
- readonly value: {
266
- readonly type: "boolean";
267
- };
268
119
  };
269
120
  readonly readOnly: true;
270
- readonly required: readonly ["fieldKind", "value"];
121
+ readonly required: readonly ["kind"];
271
122
  readonly type: "object";
272
123
  }, {
273
124
  readonly additionalProperties: false;
274
125
  readonly properties: {
275
- readonly fieldKind: {
276
- readonly const: "single_select";
126
+ readonly kind: {
127
+ readonly const: "percentage";
277
128
  readonly type: "string";
278
129
  };
279
- readonly optionId: {
280
- readonly $ref: "#/$defs/__schema0";
130
+ readonly usedPercent: {
131
+ readonly $ref: "#/$defs/__schema6";
281
132
  };
282
133
  };
283
134
  readonly readOnly: true;
284
- readonly required: readonly ["fieldKind", "optionId"];
135
+ readonly required: readonly ["kind", "usedPercent"];
285
136
  readonly type: "object";
286
137
  }, {
287
138
  readonly additionalProperties: false;
288
139
  readonly properties: {
289
- readonly fieldKind: {
290
- readonly const: "bounded_integer";
140
+ readonly kind: {
141
+ readonly const: "quantity";
291
142
  readonly type: "string";
292
143
  };
293
- readonly value: {
294
- readonly maximum: 9007199254740991;
295
- readonly minimum: -9007199254740991;
296
- readonly type: "integer";
144
+ readonly limit: {
145
+ readonly $ref: "#/$defs/__schema6";
146
+ };
147
+ readonly remaining: {
148
+ readonly $ref: "#/$defs/__schema6";
149
+ };
150
+ readonly unit: {
151
+ readonly $ref: "#/$defs/__schema3";
152
+ };
153
+ readonly used: {
154
+ readonly $ref: "#/$defs/__schema6";
155
+ };
156
+ readonly usedPercent: {
157
+ readonly $ref: "#/$defs/__schema6";
297
158
  };
298
159
  };
299
160
  readonly readOnly: true;
300
- readonly required: readonly ["fieldKind", "value"];
161
+ readonly required: readonly ["kind", "unit"];
301
162
  readonly type: "object";
302
163
  }, {
303
164
  readonly additionalProperties: false;
304
165
  readonly properties: {
305
- readonly fieldKind: {
306
- readonly const: "bounded_text";
166
+ readonly currency: {
167
+ readonly pattern: "^[A-Z]{3}$";
307
168
  readonly type: "string";
308
169
  };
309
- readonly value: {
310
- readonly maxLength: 4000;
311
- readonly pattern: "^(?:$|\\S|\\S[\\s\\S]*\\S)$";
170
+ readonly kind: {
171
+ readonly const: "money";
312
172
  readonly type: "string";
313
173
  };
314
- };
315
- readonly readOnly: true;
316
- readonly required: readonly ["fieldKind", "value"];
317
- readonly type: "object";
318
- }];
174
+ readonly limitMinorUnits: {
175
+ readonly $ref: "#/$defs/__schema7";
176
+ };
177
+ readonly remainingMinorUnits: {
178
+ readonly $ref: "#/$defs/__schema7";
179
+ };
180
+ readonly scale: {
181
+ readonly maximum: 9;
182
+ readonly minimum: 0;
183
+ readonly type: "integer";
184
+ };
185
+ readonly usedMinorUnits: {
186
+ readonly $ref: "#/$defs/__schema7";
187
+ };
188
+ readonly usedPercent: {
189
+ readonly $ref: "#/$defs/__schema6";
190
+ };
191
+ };
192
+ readonly readOnly: true;
193
+ readonly required: readonly ["kind", "currency", "scale"];
194
+ readonly type: "object";
195
+ }];
319
196
  };
320
- };
321
- readonly readOnly: true;
322
- readonly required: readonly ["key", "fieldRevision", "value"];
323
- readonly type: "object";
324
- };
325
- readonly __schema4: {
326
- readonly additionalProperties: false;
327
- readonly properties: {
328
- readonly conversationId: {
329
- readonly $ref: "#/$defs/__schema5";
197
+ readonly observedAt: {
198
+ readonly $ref: "#/$defs/__schema2";
330
199
  };
331
- readonly historyAnchor: {
332
- readonly $ref: "#/$defs/__schema5";
200
+ readonly period: {
201
+ readonly oneOf: readonly [{
202
+ readonly additionalProperties: false;
203
+ readonly properties: {
204
+ readonly durationSeconds: {
205
+ readonly $ref: "#/$defs/__schema5";
206
+ };
207
+ readonly kind: {
208
+ readonly const: "rolling";
209
+ readonly type: "string";
210
+ };
211
+ };
212
+ readonly readOnly: true;
213
+ readonly required: readonly ["kind"];
214
+ readonly type: "object";
215
+ }, {
216
+ readonly additionalProperties: false;
217
+ readonly properties: {
218
+ readonly durationSeconds: {
219
+ readonly $ref: "#/$defs/__schema5";
220
+ };
221
+ readonly kind: {
222
+ readonly const: "fixed";
223
+ readonly type: "string";
224
+ };
225
+ };
226
+ readonly readOnly: true;
227
+ readonly required: readonly ["kind"];
228
+ readonly type: "object";
229
+ }, {
230
+ readonly additionalProperties: false;
231
+ readonly properties: {
232
+ readonly durationSeconds: {
233
+ readonly $ref: "#/$defs/__schema5";
234
+ };
235
+ readonly kind: {
236
+ readonly const: "unknown";
237
+ readonly type: "string";
238
+ };
239
+ };
240
+ readonly readOnly: true;
241
+ readonly required: readonly ["kind"];
242
+ readonly type: "object";
243
+ }, {
244
+ readonly additionalProperties: false;
245
+ readonly properties: {
246
+ readonly kind: {
247
+ readonly const: "calendar";
248
+ readonly type: "string";
249
+ };
250
+ readonly timeZone: {
251
+ readonly $ref: "#/$defs/__schema3";
252
+ };
253
+ readonly unit: {
254
+ readonly enum: readonly ["day", "week", "month", "year"];
255
+ readonly type: "string";
256
+ };
257
+ };
258
+ readonly readOnly: true;
259
+ readonly required: readonly ["kind", "unit", "timeZone"];
260
+ readonly type: "object";
261
+ }, {
262
+ readonly additionalProperties: false;
263
+ readonly properties: {
264
+ readonly kind: {
265
+ readonly const: "billing_cycle";
266
+ readonly type: "string";
267
+ };
268
+ readonly unit: {
269
+ readonly enum: readonly ["month", "year", "unknown"];
270
+ readonly type: "string";
271
+ };
272
+ };
273
+ readonly readOnly: true;
274
+ readonly required: readonly ["kind", "unit"];
275
+ readonly type: "object";
276
+ }];
277
+ };
278
+ readonly poolId: {
279
+ readonly $ref: "#/$defs/__schema1";
280
+ };
281
+ readonly reset: {
282
+ readonly additionalProperties: false;
283
+ readonly properties: {
284
+ readonly at: {
285
+ readonly $ref: "#/$defs/__schema2";
286
+ };
287
+ readonly observedAt: {
288
+ readonly $ref: "#/$defs/__schema2";
289
+ };
290
+ readonly precision: {
291
+ readonly enum: readonly ["reported", "estimated"];
292
+ readonly type: "string";
293
+ };
294
+ };
295
+ readonly readOnly: true;
296
+ readonly required: readonly ["at", "precision", "observedAt"];
297
+ readonly type: "object";
298
+ };
299
+ readonly startsAt: {
300
+ readonly $ref: "#/$defs/__schema2";
301
+ };
302
+ readonly windowId: {
303
+ readonly $ref: "#/$defs/__schema1";
333
304
  };
334
305
  };
335
306
  readonly readOnly: true;
336
- readonly required: readonly ["conversationId"];
307
+ readonly required: readonly ["poolId", "windowId", "label", "allowanceKind", "applicability", "period", "measurement", "observedAt"];
337
308
  readonly type: "object";
338
309
  };
339
310
  readonly __schema5: {
340
- readonly maxLength: 512;
341
- readonly minLength: 1;
342
- readonly pattern: "^(?![\\s\\S]*[\\u0000-\\u001F\\u007F-\\u009F])\\S(?:[\\s\\S]*\\S)?$";
343
- readonly type: "string";
311
+ readonly exclusiveMinimum: 0;
312
+ readonly maximum: 9007199254740991;
313
+ readonly type: "integer";
314
+ };
315
+ readonly __schema6: {
316
+ readonly maximum: 9007199254740991;
317
+ readonly minimum: 0;
318
+ readonly type: "number";
319
+ };
320
+ readonly __schema7: {
321
+ readonly maximum: 9007199254740991;
322
+ readonly minimum: 0;
323
+ readonly type: "integer";
344
324
  };
345
325
  };
346
- readonly $id: "urn:agenai.agent-protocol.session-open-input:v8:input";
326
+ readonly $id: "urn:agenai.agent-protocol.account-quota-snapshot:v8:output";
347
327
  readonly $schema: "https://json-schema.org/draft/2020-12/schema";
348
328
  readonly oneOf: readonly [{
349
329
  readonly additionalProperties: false;
350
330
  readonly properties: {
351
- readonly configuration: {
352
- readonly $ref: "#/$defs/__schema1";
331
+ readonly accountLabel: {
332
+ readonly $ref: "#/$defs/__schema3";
353
333
  };
354
- readonly operation: {
355
- readonly const: "create";
334
+ readonly allowance: {
335
+ readonly additionalProperties: false;
336
+ readonly properties: {
337
+ readonly extra: {
338
+ readonly enum: readonly ["allowed", "unavailable", "unknown"];
339
+ readonly type: "string";
340
+ };
341
+ readonly included: {
342
+ readonly enum: readonly ["allowed", "exhausted", "unknown"];
343
+ readonly type: "string";
344
+ };
345
+ readonly reserve: {
346
+ readonly enum: readonly ["allowed", "unavailable", "unknown"];
347
+ readonly type: "string";
348
+ };
349
+ };
350
+ readonly readOnly: true;
351
+ readonly required: readonly ["included", "extra", "reserve"];
352
+ readonly type: "object";
353
+ };
354
+ readonly completeness: {
355
+ readonly enum: readonly ["complete", "partial"];
356
356
  readonly type: "string";
357
357
  };
358
- readonly sessionId: {
358
+ readonly observedAt: {
359
+ readonly $ref: "#/$defs/__schema2";
360
+ };
361
+ readonly planLabel: {
362
+ readonly $ref: "#/$defs/__schema3";
363
+ };
364
+ readonly schemaVersion: {
359
365
  readonly $ref: "#/$defs/__schema0";
360
366
  };
367
+ readonly sourceId: {
368
+ readonly $ref: "#/$defs/__schema1";
369
+ };
370
+ readonly state: {
371
+ readonly const: "available";
372
+ readonly type: "string";
373
+ };
374
+ readonly windows: {
375
+ readonly items: {
376
+ readonly $ref: "#/$defs/__schema4";
377
+ };
378
+ readonly maxItems: 64;
379
+ readonly readOnly: true;
380
+ readonly type: "array";
381
+ };
361
382
  };
362
383
  readonly readOnly: true;
363
- readonly required: readonly ["operation", "sessionId", "configuration"];
384
+ readonly required: readonly ["schemaVersion", "sourceId", "observedAt", "state", "completeness", "windows", "allowance"];
364
385
  readonly type: "object";
365
386
  }, {
366
387
  readonly additionalProperties: false;
367
388
  readonly properties: {
368
- readonly binding: {
369
- readonly $ref: "#/$defs/__schema4";
389
+ readonly observedAt: {
390
+ readonly $ref: "#/$defs/__schema2";
370
391
  };
371
- readonly configuration: {
392
+ readonly schemaVersion: {
393
+ readonly $ref: "#/$defs/__schema0";
394
+ };
395
+ readonly sourceId: {
372
396
  readonly $ref: "#/$defs/__schema1";
373
397
  };
374
- readonly operation: {
375
- readonly const: "resume";
398
+ readonly state: {
399
+ readonly const: "authentication_required";
376
400
  readonly type: "string";
377
401
  };
378
- readonly sessionId: {
379
- readonly $ref: "#/$defs/__schema0";
380
- };
381
402
  };
382
403
  readonly readOnly: true;
383
- readonly required: readonly ["operation", "sessionId", "binding", "configuration"];
404
+ readonly required: readonly ["schemaVersion", "sourceId", "observedAt", "state"];
384
405
  readonly type: "object";
385
406
  }, {
386
407
  readonly additionalProperties: false;
387
408
  readonly properties: {
388
- readonly configuration: {
409
+ readonly observedAt: {
410
+ readonly $ref: "#/$defs/__schema2";
411
+ };
412
+ readonly schemaVersion: {
413
+ readonly $ref: "#/$defs/__schema0";
414
+ };
415
+ readonly sourceId: {
389
416
  readonly $ref: "#/$defs/__schema1";
390
417
  };
391
- readonly operation: {
392
- readonly const: "branch";
418
+ readonly state: {
419
+ readonly const: "inapplicable";
393
420
  readonly type: "string";
394
421
  };
395
- readonly sessionId: {
422
+ };
423
+ readonly readOnly: true;
424
+ readonly required: readonly ["schemaVersion", "sourceId", "observedAt", "state"];
425
+ readonly type: "object";
426
+ }, {
427
+ readonly additionalProperties: false;
428
+ readonly properties: {
429
+ readonly observedAt: {
430
+ readonly $ref: "#/$defs/__schema2";
431
+ };
432
+ readonly schemaVersion: {
396
433
  readonly $ref: "#/$defs/__schema0";
397
434
  };
398
- readonly source: {
399
- readonly additionalProperties: false;
400
- readonly properties: {
401
- readonly binding: {
402
- readonly $ref: "#/$defs/__schema4";
403
- };
404
- readonly sessionId: {
405
- readonly $ref: "#/$defs/__schema0";
406
- };
407
- readonly throughTurn: {
408
- readonly additionalProperties: false;
409
- readonly properties: {
410
- readonly historyAnchor: {
411
- readonly $ref: "#/$defs/__schema5";
412
- };
413
- readonly turnId: {
414
- readonly $ref: "#/$defs/__schema0";
415
- };
416
- };
417
- readonly readOnly: true;
418
- readonly required: readonly ["turnId", "historyAnchor"];
419
- readonly type: "object";
420
- };
421
- };
422
- readonly readOnly: true;
423
- readonly required: readonly ["sessionId", "binding", "throughTurn"];
424
- readonly type: "object";
435
+ readonly sourceId: {
436
+ readonly $ref: "#/$defs/__schema1";
437
+ };
438
+ readonly state: {
439
+ readonly const: "temporarily_unavailable";
440
+ readonly type: "string";
425
441
  };
426
442
  };
427
443
  readonly readOnly: true;
428
- readonly required: readonly ["operation", "sessionId", "source", "configuration"];
444
+ readonly required: readonly ["schemaVersion", "sourceId", "observedAt", "state"];
429
445
  readonly type: "object";
430
446
  }];
431
447
  };
432
448
  };
433
- export declare const AGENT_TURN_INPUT_CONTENT_JSON_SCHEMA: {
434
- readonly contractId: "agenai.agent-protocol.turn-input-content";
449
+ export declare const AGENT_SESSION_BINDING_JSON_SCHEMA: {
450
+ readonly contractId: "agenai.agent-protocol.session-binding";
435
451
  readonly protocolVersion: 8;
436
- readonly direction: "input";
452
+ readonly direction: "output";
437
453
  readonly dialect: "https://json-schema.org/draft/2020-12/schema";
438
- readonly parserInvariants: readonly ["inline_image_decoded_byte_size", "serialized_bytes"];
439
- readonly sha256: "cc292a266caffaa18061316e38d0de451bfc36288c547cb310b62e7c117b7e72";
454
+ readonly parserInvariants: readonly [];
455
+ readonly sha256: "066245cff4499dfd199eab873ac8f4b9d1b963e2e9dc07a4b083c7620badfc33";
440
456
  readonly schema: {
441
457
  readonly $defs: {
442
458
  readonly __schema0: {
443
- readonly items: {
444
- readonly $ref: "#/$defs/__schema1";
445
- };
446
- readonly maxItems: 100;
447
- readonly minItems: 1;
448
- readonly readOnly: true;
449
- readonly type: "array";
459
+ readonly maxLength: 512;
460
+ readonly minLength: 1;
461
+ readonly pattern: "^(?![\\s\\S]*[\\u0000-\\u001F\\u007F-\\u009F])\\S(?:[\\s\\S]*\\S)?$";
462
+ readonly type: "string";
450
463
  };
451
- readonly __schema1: {
452
- readonly oneOf: readonly [{
453
- readonly additionalProperties: false;
454
- readonly properties: {
455
- readonly text: {
456
- readonly maxLength: 64000;
457
- readonly minLength: 1;
458
- readonly type: "string";
459
- };
460
- readonly type: {
461
- readonly const: "text";
462
- readonly type: "string";
463
- };
464
- };
465
- readonly readOnly: true;
466
- readonly required: readonly ["type", "text"];
467
- readonly type: "object";
468
- }, {
469
- readonly additionalProperties: false;
470
- readonly properties: {
464
+ };
465
+ readonly $id: "urn:agenai.agent-protocol.session-binding:v8:output";
466
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
467
+ readonly additionalProperties: false;
468
+ readonly properties: {
469
+ readonly conversationId: {
470
+ readonly $ref: "#/$defs/__schema0";
471
+ };
472
+ readonly historyAnchor: {
473
+ readonly $ref: "#/$defs/__schema0";
474
+ };
475
+ };
476
+ readonly readOnly: true;
477
+ readonly required: readonly ["conversationId"];
478
+ readonly type: "object";
479
+ };
480
+ };
481
+ export declare const AGENT_SESSION_CONFIGURATION_JSON_SCHEMA: {
482
+ readonly contractId: "agenai.agent-protocol.session-configuration";
483
+ readonly protocolVersion: 8;
484
+ readonly direction: "input";
485
+ readonly dialect: "https://json-schema.org/draft/2020-12/schema";
486
+ readonly parserInvariants: readonly ["configuration_entry_count", "serialized_bytes"];
487
+ readonly sha256: "1ab7ecdaeb944f74636f701d446e0ccc9d0911cc44a4bbbc42c11d51de9d639d";
488
+ readonly schema: {
489
+ readonly $defs: {
490
+ readonly __schema0: {
491
+ readonly maxLength: 256;
492
+ readonly minLength: 1;
493
+ readonly pattern: "^(?![\\s\\S]*[\\u0000-\\u001F\\u007F-\\u009F])\\S(?:[\\s\\S]*\\S)?$";
494
+ readonly type: "string";
495
+ };
496
+ readonly __schema1: {
497
+ readonly exclusiveMinimum: 0;
498
+ readonly maximum: 9007199254740991;
499
+ readonly type: "integer";
500
+ };
501
+ readonly __schema2: {
502
+ readonly additionalProperties: false;
503
+ readonly properties: {
504
+ readonly fieldRevision: {
505
+ readonly $ref: "#/$defs/__schema1";
506
+ };
507
+ readonly key: {
508
+ readonly $ref: "#/$defs/__schema0";
509
+ };
510
+ readonly value: {
511
+ readonly oneOf: readonly [{
512
+ readonly additionalProperties: false;
513
+ readonly properties: {
514
+ readonly fieldKind: {
515
+ readonly const: "boolean";
516
+ readonly type: "string";
517
+ };
518
+ readonly value: {
519
+ readonly type: "boolean";
520
+ };
521
+ };
522
+ readonly readOnly: true;
523
+ readonly required: readonly ["fieldKind", "value"];
524
+ readonly type: "object";
525
+ }, {
526
+ readonly additionalProperties: false;
527
+ readonly properties: {
528
+ readonly fieldKind: {
529
+ readonly const: "single_select";
530
+ readonly type: "string";
531
+ };
532
+ readonly optionId: {
533
+ readonly $ref: "#/$defs/__schema0";
534
+ };
535
+ };
536
+ readonly readOnly: true;
537
+ readonly required: readonly ["fieldKind", "optionId"];
538
+ readonly type: "object";
539
+ }, {
540
+ readonly additionalProperties: false;
541
+ readonly properties: {
542
+ readonly fieldKind: {
543
+ readonly const: "bounded_integer";
544
+ readonly type: "string";
545
+ };
546
+ readonly value: {
547
+ readonly maximum: 9007199254740991;
548
+ readonly minimum: -9007199254740991;
549
+ readonly type: "integer";
550
+ };
551
+ };
552
+ readonly readOnly: true;
553
+ readonly required: readonly ["fieldKind", "value"];
554
+ readonly type: "object";
555
+ }, {
556
+ readonly additionalProperties: false;
557
+ readonly properties: {
558
+ readonly fieldKind: {
559
+ readonly const: "bounded_text";
560
+ readonly type: "string";
561
+ };
562
+ readonly value: {
563
+ readonly maxLength: 4000;
564
+ readonly pattern: "^(?:$|\\S|\\S[\\s\\S]*\\S)$";
565
+ readonly type: "string";
566
+ };
567
+ };
568
+ readonly readOnly: true;
569
+ readonly required: readonly ["fieldKind", "value"];
570
+ readonly type: "object";
571
+ }];
572
+ };
573
+ };
574
+ readonly readOnly: true;
575
+ readonly required: readonly ["key", "fieldRevision", "value"];
576
+ readonly type: "object";
577
+ };
578
+ };
579
+ readonly $id: "urn:agenai.agent-protocol.session-configuration:v8:input";
580
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
581
+ readonly oneOf: readonly [{
582
+ readonly additionalProperties: false;
583
+ readonly properties: {
584
+ readonly kind: {
585
+ readonly const: "managed";
586
+ readonly type: "string";
587
+ };
588
+ readonly revision: {
589
+ readonly $ref: "#/$defs/__schema0";
590
+ };
591
+ };
592
+ readonly readOnly: true;
593
+ readonly required: readonly ["kind", "revision"];
594
+ readonly type: "object";
595
+ }, {
596
+ readonly additionalProperties: false;
597
+ readonly properties: {
598
+ readonly catalogRevision: {
599
+ readonly $ref: "#/$defs/__schema1";
600
+ };
601
+ readonly kind: {
602
+ readonly const: "selected";
603
+ readonly type: "string";
604
+ };
605
+ readonly revision: {
606
+ readonly $ref: "#/$defs/__schema0";
607
+ };
608
+ readonly selections: {
609
+ readonly items: {
610
+ readonly $ref: "#/$defs/__schema2";
611
+ };
612
+ readonly maxItems: 100;
613
+ readonly readOnly: true;
614
+ readonly type: "array";
615
+ };
616
+ };
617
+ readonly readOnly: true;
618
+ readonly required: readonly ["kind", "revision", "catalogRevision", "selections"];
619
+ readonly type: "object";
620
+ }];
621
+ };
622
+ };
623
+ export declare const AGENT_SESSION_OPEN_INPUT_JSON_SCHEMA: {
624
+ readonly contractId: "agenai.agent-protocol.session-open-input";
625
+ readonly protocolVersion: 8;
626
+ readonly direction: "input";
627
+ readonly dialect: "https://json-schema.org/draft/2020-12/schema";
628
+ readonly parserInvariants: readonly ["configuration_entry_count", "distinct_branch_session_ids", "serialized_bytes"];
629
+ readonly sha256: "1bbb74a15011021b3f6f303d2399c8f2139b68f8d205bec31dfade3cbb9d9d7f";
630
+ readonly schema: {
631
+ readonly $defs: {
632
+ readonly __schema0: {
633
+ readonly maxLength: 256;
634
+ readonly minLength: 1;
635
+ readonly pattern: "^(?![\\s\\S]*[\\u0000-\\u001F\\u007F-\\u009F])\\S(?:[\\s\\S]*\\S)?$";
636
+ readonly type: "string";
637
+ };
638
+ readonly __schema1: {
639
+ readonly oneOf: readonly [{
640
+ readonly additionalProperties: false;
641
+ readonly properties: {
642
+ readonly kind: {
643
+ readonly const: "managed";
644
+ readonly type: "string";
645
+ };
646
+ readonly revision: {
647
+ readonly $ref: "#/$defs/__schema0";
648
+ };
649
+ };
650
+ readonly readOnly: true;
651
+ readonly required: readonly ["kind", "revision"];
652
+ readonly type: "object";
653
+ }, {
654
+ readonly additionalProperties: false;
655
+ readonly properties: {
656
+ readonly catalogRevision: {
657
+ readonly $ref: "#/$defs/__schema2";
658
+ };
659
+ readonly kind: {
660
+ readonly const: "selected";
661
+ readonly type: "string";
662
+ };
663
+ readonly revision: {
664
+ readonly $ref: "#/$defs/__schema0";
665
+ };
666
+ readonly selections: {
667
+ readonly items: {
668
+ readonly $ref: "#/$defs/__schema3";
669
+ };
670
+ readonly maxItems: 100;
671
+ readonly readOnly: true;
672
+ readonly type: "array";
673
+ };
674
+ };
675
+ readonly readOnly: true;
676
+ readonly required: readonly ["kind", "revision", "catalogRevision", "selections"];
677
+ readonly type: "object";
678
+ }];
679
+ };
680
+ readonly __schema2: {
681
+ readonly exclusiveMinimum: 0;
682
+ readonly maximum: 9007199254740991;
683
+ readonly type: "integer";
684
+ };
685
+ readonly __schema3: {
686
+ readonly additionalProperties: false;
687
+ readonly properties: {
688
+ readonly fieldRevision: {
689
+ readonly $ref: "#/$defs/__schema2";
690
+ };
691
+ readonly key: {
692
+ readonly $ref: "#/$defs/__schema0";
693
+ };
694
+ readonly value: {
695
+ readonly oneOf: readonly [{
696
+ readonly additionalProperties: false;
697
+ readonly properties: {
698
+ readonly fieldKind: {
699
+ readonly const: "boolean";
700
+ readonly type: "string";
701
+ };
702
+ readonly value: {
703
+ readonly type: "boolean";
704
+ };
705
+ };
706
+ readonly readOnly: true;
707
+ readonly required: readonly ["fieldKind", "value"];
708
+ readonly type: "object";
709
+ }, {
710
+ readonly additionalProperties: false;
711
+ readonly properties: {
712
+ readonly fieldKind: {
713
+ readonly const: "single_select";
714
+ readonly type: "string";
715
+ };
716
+ readonly optionId: {
717
+ readonly $ref: "#/$defs/__schema0";
718
+ };
719
+ };
720
+ readonly readOnly: true;
721
+ readonly required: readonly ["fieldKind", "optionId"];
722
+ readonly type: "object";
723
+ }, {
724
+ readonly additionalProperties: false;
725
+ readonly properties: {
726
+ readonly fieldKind: {
727
+ readonly const: "bounded_integer";
728
+ readonly type: "string";
729
+ };
730
+ readonly value: {
731
+ readonly maximum: 9007199254740991;
732
+ readonly minimum: -9007199254740991;
733
+ readonly type: "integer";
734
+ };
735
+ };
736
+ readonly readOnly: true;
737
+ readonly required: readonly ["fieldKind", "value"];
738
+ readonly type: "object";
739
+ }, {
740
+ readonly additionalProperties: false;
741
+ readonly properties: {
742
+ readonly fieldKind: {
743
+ readonly const: "bounded_text";
744
+ readonly type: "string";
745
+ };
746
+ readonly value: {
747
+ readonly maxLength: 4000;
748
+ readonly pattern: "^(?:$|\\S|\\S[\\s\\S]*\\S)$";
749
+ readonly type: "string";
750
+ };
751
+ };
752
+ readonly readOnly: true;
753
+ readonly required: readonly ["fieldKind", "value"];
754
+ readonly type: "object";
755
+ }];
756
+ };
757
+ };
758
+ readonly readOnly: true;
759
+ readonly required: readonly ["key", "fieldRevision", "value"];
760
+ readonly type: "object";
761
+ };
762
+ readonly __schema4: {
763
+ readonly additionalProperties: false;
764
+ readonly properties: {
765
+ readonly conversationId: {
766
+ readonly $ref: "#/$defs/__schema5";
767
+ };
768
+ readonly historyAnchor: {
769
+ readonly $ref: "#/$defs/__schema5";
770
+ };
771
+ };
772
+ readonly readOnly: true;
773
+ readonly required: readonly ["conversationId"];
774
+ readonly type: "object";
775
+ };
776
+ readonly __schema5: {
777
+ readonly maxLength: 512;
778
+ readonly minLength: 1;
779
+ readonly pattern: "^(?![\\s\\S]*[\\u0000-\\u001F\\u007F-\\u009F])\\S(?:[\\s\\S]*\\S)?$";
780
+ readonly type: "string";
781
+ };
782
+ };
783
+ readonly $id: "urn:agenai.agent-protocol.session-open-input:v8:input";
784
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
785
+ readonly oneOf: readonly [{
786
+ readonly additionalProperties: false;
787
+ readonly properties: {
788
+ readonly configuration: {
789
+ readonly $ref: "#/$defs/__schema1";
790
+ };
791
+ readonly operation: {
792
+ readonly const: "create";
793
+ readonly type: "string";
794
+ };
795
+ readonly sessionId: {
796
+ readonly $ref: "#/$defs/__schema0";
797
+ };
798
+ };
799
+ readonly readOnly: true;
800
+ readonly required: readonly ["operation", "sessionId", "configuration"];
801
+ readonly type: "object";
802
+ }, {
803
+ readonly additionalProperties: false;
804
+ readonly properties: {
805
+ readonly binding: {
806
+ readonly $ref: "#/$defs/__schema4";
807
+ };
808
+ readonly configuration: {
809
+ readonly $ref: "#/$defs/__schema1";
810
+ };
811
+ readonly operation: {
812
+ readonly const: "resume";
813
+ readonly type: "string";
814
+ };
815
+ readonly sessionId: {
816
+ readonly $ref: "#/$defs/__schema0";
817
+ };
818
+ };
819
+ readonly readOnly: true;
820
+ readonly required: readonly ["operation", "sessionId", "binding", "configuration"];
821
+ readonly type: "object";
822
+ }, {
823
+ readonly additionalProperties: false;
824
+ readonly properties: {
825
+ readonly configuration: {
826
+ readonly $ref: "#/$defs/__schema1";
827
+ };
828
+ readonly operation: {
829
+ readonly const: "branch";
830
+ readonly type: "string";
831
+ };
832
+ readonly sessionId: {
833
+ readonly $ref: "#/$defs/__schema0";
834
+ };
835
+ readonly source: {
836
+ readonly additionalProperties: false;
837
+ readonly properties: {
838
+ readonly binding: {
839
+ readonly $ref: "#/$defs/__schema4";
840
+ };
841
+ readonly sessionId: {
842
+ readonly $ref: "#/$defs/__schema0";
843
+ };
844
+ readonly throughTurn: {
845
+ readonly additionalProperties: false;
846
+ readonly properties: {
847
+ readonly historyAnchor: {
848
+ readonly $ref: "#/$defs/__schema5";
849
+ };
850
+ readonly turnId: {
851
+ readonly $ref: "#/$defs/__schema0";
852
+ };
853
+ };
854
+ readonly readOnly: true;
855
+ readonly required: readonly ["turnId", "historyAnchor"];
856
+ readonly type: "object";
857
+ };
858
+ };
859
+ readonly readOnly: true;
860
+ readonly required: readonly ["sessionId", "binding", "throughTurn"];
861
+ readonly type: "object";
862
+ };
863
+ };
864
+ readonly readOnly: true;
865
+ readonly required: readonly ["operation", "sessionId", "source", "configuration"];
866
+ readonly type: "object";
867
+ }];
868
+ };
869
+ };
870
+ export declare const AGENT_TURN_INPUT_CONTENT_JSON_SCHEMA: {
871
+ readonly contractId: "agenai.agent-protocol.turn-input-content";
872
+ readonly protocolVersion: 8;
873
+ readonly direction: "input";
874
+ readonly dialect: "https://json-schema.org/draft/2020-12/schema";
875
+ readonly parserInvariants: readonly ["inline_image_decoded_byte_size", "serialized_bytes"];
876
+ readonly sha256: "cc292a266caffaa18061316e38d0de451bfc36288c547cb310b62e7c117b7e72";
877
+ readonly schema: {
878
+ readonly $defs: {
879
+ readonly __schema0: {
880
+ readonly items: {
881
+ readonly $ref: "#/$defs/__schema1";
882
+ };
883
+ readonly maxItems: 100;
884
+ readonly minItems: 1;
885
+ readonly readOnly: true;
886
+ readonly type: "array";
887
+ };
888
+ readonly __schema1: {
889
+ readonly oneOf: readonly [{
890
+ readonly additionalProperties: false;
891
+ readonly properties: {
892
+ readonly text: {
893
+ readonly maxLength: 64000;
894
+ readonly minLength: 1;
895
+ readonly type: "string";
896
+ };
897
+ readonly type: {
898
+ readonly const: "text";
899
+ readonly type: "string";
900
+ };
901
+ };
902
+ readonly readOnly: true;
903
+ readonly required: readonly ["type", "text"];
904
+ readonly type: "object";
905
+ }, {
906
+ readonly additionalProperties: false;
907
+ readonly properties: {
471
908
  readonly source: {
472
909
  readonly oneOf: readonly [{
473
910
  readonly additionalProperties: false;
@@ -6582,7 +7019,213 @@ export declare const AGENT_EVENT_JSON_SCHEMA: {
6582
7019
  };
6583
7020
  };
6584
7021
  readonly readOnly: true;
6585
- readonly required: readonly ["node"];
7022
+ readonly required: readonly ["node"];
7023
+ readonly type: "object";
7024
+ };
7025
+ readonly protocolVersion: {
7026
+ readonly $ref: "#/$defs/__schema0";
7027
+ };
7028
+ readonly providerRefs: {
7029
+ readonly $ref: "#/$defs/__schema2";
7030
+ };
7031
+ readonly sessionId: {
7032
+ readonly $ref: "#/$defs/__schema1";
7033
+ };
7034
+ readonly turnId: {
7035
+ readonly $ref: "#/$defs/__schema1";
7036
+ };
7037
+ readonly type: {
7038
+ readonly const: "collaboration.updated";
7039
+ readonly type: "string";
7040
+ };
7041
+ };
7042
+ readonly readOnly: true;
7043
+ readonly required: readonly ["protocolVersion", "sessionId", "occurredAt", "type", "payload"];
7044
+ readonly type: "object";
7045
+ }, {
7046
+ readonly additionalProperties: false;
7047
+ readonly properties: {
7048
+ readonly occurredAt: {
7049
+ readonly $ref: "#/$defs/__schema4";
7050
+ };
7051
+ readonly payload: {
7052
+ readonly additionalProperties: false;
7053
+ readonly properties: {
7054
+ readonly resource: {
7055
+ readonly additionalProperties: false;
7056
+ readonly properties: {
7057
+ readonly artifactId: {
7058
+ readonly $ref: "#/$defs/__schema1";
7059
+ };
7060
+ readonly byteSize: {
7061
+ readonly maximum: 9007199254740991;
7062
+ readonly minimum: 0;
7063
+ readonly type: "integer";
7064
+ };
7065
+ readonly createdAt: {
7066
+ readonly $ref: "#/$defs/__schema4";
7067
+ };
7068
+ readonly displayName: {
7069
+ readonly maxLength: 200;
7070
+ readonly minLength: 1;
7071
+ readonly pattern: "^(?:\\S|\\S[\\s\\S]*\\S)$";
7072
+ readonly type: "string";
7073
+ };
7074
+ readonly error: {
7075
+ readonly $ref: "#/$defs/__schema5";
7076
+ };
7077
+ readonly expiresAt: {
7078
+ readonly $ref: "#/$defs/__schema4";
7079
+ };
7080
+ readonly heightPixels: {
7081
+ readonly $ref: "#/$defs/__schema71";
7082
+ };
7083
+ readonly kind: {
7084
+ readonly enum: readonly ["image", "document", "archive"];
7085
+ readonly type: "string";
7086
+ };
7087
+ readonly mediaType: {
7088
+ readonly maxLength: 200;
7089
+ readonly minLength: 1;
7090
+ readonly pattern: "^[a-z0-9!#$&^_.+-]+\\/[a-z0-9!#$&^_.+-]+$";
7091
+ readonly type: "string";
7092
+ };
7093
+ readonly pageCount: {
7094
+ readonly $ref: "#/$defs/__schema71";
7095
+ };
7096
+ readonly producer: {
7097
+ readonly oneOf: readonly [{
7098
+ readonly additionalProperties: false;
7099
+ readonly properties: {
7100
+ readonly kind: {
7101
+ readonly const: "session";
7102
+ readonly type: "string";
7103
+ };
7104
+ readonly sessionId: {
7105
+ readonly $ref: "#/$defs/__schema1";
7106
+ };
7107
+ };
7108
+ readonly readOnly: true;
7109
+ readonly required: readonly ["kind", "sessionId"];
7110
+ readonly type: "object";
7111
+ }, {
7112
+ readonly additionalProperties: false;
7113
+ readonly properties: {
7114
+ readonly kind: {
7115
+ readonly const: "turn";
7116
+ readonly type: "string";
7117
+ };
7118
+ readonly turnId: {
7119
+ readonly $ref: "#/$defs/__schema1";
7120
+ };
7121
+ };
7122
+ readonly readOnly: true;
7123
+ readonly required: readonly ["kind", "turnId"];
7124
+ readonly type: "object";
7125
+ }, {
7126
+ readonly additionalProperties: false;
7127
+ readonly properties: {
7128
+ readonly invocationId: {
7129
+ readonly $ref: "#/$defs/__schema1";
7130
+ };
7131
+ readonly kind: {
7132
+ readonly const: "operation";
7133
+ readonly type: "string";
7134
+ };
7135
+ };
7136
+ readonly readOnly: true;
7137
+ readonly required: readonly ["kind", "invocationId"];
7138
+ readonly type: "object";
7139
+ }, {
7140
+ readonly additionalProperties: false;
7141
+ readonly properties: {
7142
+ readonly collaborationId: {
7143
+ readonly $ref: "#/$defs/__schema1";
7144
+ };
7145
+ readonly kind: {
7146
+ readonly const: "collaboration";
7147
+ readonly type: "string";
7148
+ };
7149
+ };
7150
+ readonly readOnly: true;
7151
+ readonly required: readonly ["kind", "collaborationId"];
7152
+ readonly type: "object";
7153
+ }];
7154
+ };
7155
+ readonly resourceId: {
7156
+ readonly $ref: "#/$defs/__schema1";
7157
+ };
7158
+ readonly sha256: {
7159
+ readonly pattern: "^[a-f0-9]{64}$";
7160
+ readonly type: "string";
7161
+ };
7162
+ readonly status: {
7163
+ readonly enum: readonly ["pending", "available", "unavailable", "expired"];
7164
+ readonly type: "string";
7165
+ };
7166
+ readonly summary: {
7167
+ readonly maxLength: 2000;
7168
+ readonly minLength: 1;
7169
+ readonly pattern: "^(?:\\S|\\S[\\s\\S]*\\S)$";
7170
+ readonly type: "string";
7171
+ };
7172
+ readonly widthPixels: {
7173
+ readonly $ref: "#/$defs/__schema71";
7174
+ };
7175
+ };
7176
+ readonly readOnly: true;
7177
+ readonly required: readonly ["resourceId", "kind", "status", "displayName", "producer", "createdAt"];
7178
+ readonly type: "object";
7179
+ };
7180
+ };
7181
+ readonly readOnly: true;
7182
+ readonly required: readonly ["resource"];
7183
+ readonly type: "object";
7184
+ };
7185
+ readonly protocolVersion: {
7186
+ readonly $ref: "#/$defs/__schema0";
7187
+ };
7188
+ readonly providerRefs: {
7189
+ readonly $ref: "#/$defs/__schema2";
7190
+ };
7191
+ readonly sessionId: {
7192
+ readonly $ref: "#/$defs/__schema1";
7193
+ };
7194
+ readonly turnId: {
7195
+ readonly $ref: "#/$defs/__schema1";
7196
+ };
7197
+ readonly type: {
7198
+ readonly const: "resource.updated";
7199
+ readonly type: "string";
7200
+ };
7201
+ };
7202
+ readonly readOnly: true;
7203
+ readonly required: readonly ["protocolVersion", "sessionId", "occurredAt", "type", "payload"];
7204
+ readonly type: "object";
7205
+ }, {
7206
+ readonly additionalProperties: false;
7207
+ readonly properties: {
7208
+ readonly occurredAt: {
7209
+ readonly $ref: "#/$defs/__schema4";
7210
+ };
7211
+ readonly payload: {
7212
+ readonly additionalProperties: false;
7213
+ readonly properties: {
7214
+ readonly code: {
7215
+ readonly $ref: "#/$defs/__schema6";
7216
+ };
7217
+ readonly context: {
7218
+ readonly $ref: "#/$defs/__schema8";
7219
+ };
7220
+ readonly message: {
7221
+ readonly $ref: "#/$defs/__schema7";
7222
+ };
7223
+ readonly retryable: {
7224
+ readonly type: "boolean";
7225
+ };
7226
+ };
7227
+ readonly readOnly: true;
7228
+ readonly required: readonly ["code", "message"];
6586
7229
  readonly type: "object";
6587
7230
  };
6588
7231
  readonly protocolVersion: {
@@ -6598,7 +7241,7 @@ export declare const AGENT_EVENT_JSON_SCHEMA: {
6598
7241
  readonly $ref: "#/$defs/__schema1";
6599
7242
  };
6600
7243
  readonly type: {
6601
- readonly const: "collaboration.updated";
7244
+ readonly const: "runtime.warning";
6602
7245
  readonly type: "string";
6603
7246
  };
6604
7247
  };
@@ -6614,287 +7257,517 @@ export declare const AGENT_EVENT_JSON_SCHEMA: {
6614
7257
  readonly payload: {
6615
7258
  readonly additionalProperties: false;
6616
7259
  readonly properties: {
6617
- readonly resource: {
7260
+ readonly error: {
7261
+ readonly $ref: "#/$defs/__schema5";
7262
+ };
7263
+ };
7264
+ readonly readOnly: true;
7265
+ readonly required: readonly ["error"];
7266
+ readonly type: "object";
7267
+ };
7268
+ readonly protocolVersion: {
7269
+ readonly $ref: "#/$defs/__schema0";
7270
+ };
7271
+ readonly providerRefs: {
7272
+ readonly $ref: "#/$defs/__schema2";
7273
+ };
7274
+ readonly sessionId: {
7275
+ readonly $ref: "#/$defs/__schema1";
7276
+ };
7277
+ readonly turnId: {
7278
+ readonly $ref: "#/$defs/__schema1";
7279
+ };
7280
+ readonly type: {
7281
+ readonly const: "runtime.error";
7282
+ readonly type: "string";
7283
+ };
7284
+ };
7285
+ readonly readOnly: true;
7286
+ readonly required: readonly ["protocolVersion", "sessionId", "occurredAt", "type", "payload"];
7287
+ readonly type: "object";
7288
+ }, {
7289
+ readonly additionalProperties: false;
7290
+ readonly properties: {
7291
+ readonly occurredAt: {
7292
+ readonly $ref: "#/$defs/__schema4";
7293
+ };
7294
+ readonly payload: {
7295
+ readonly additionalProperties: false;
7296
+ readonly properties: {
7297
+ readonly code: {
7298
+ readonly $ref: "#/$defs/__schema6";
7299
+ };
7300
+ readonly context: {
7301
+ readonly $ref: "#/$defs/__schema8";
7302
+ };
7303
+ readonly message: {
7304
+ readonly $ref: "#/$defs/__schema7";
7305
+ };
7306
+ };
7307
+ readonly readOnly: true;
7308
+ readonly required: readonly ["code", "message"];
7309
+ readonly type: "object";
7310
+ };
7311
+ readonly protocolVersion: {
7312
+ readonly $ref: "#/$defs/__schema0";
7313
+ };
7314
+ readonly providerRefs: {
7315
+ readonly $ref: "#/$defs/__schema2";
7316
+ };
7317
+ readonly sessionId: {
7318
+ readonly $ref: "#/$defs/__schema1";
7319
+ };
7320
+ readonly turnId: {
7321
+ readonly $ref: "#/$defs/__schema1";
7322
+ };
7323
+ readonly type: {
7324
+ readonly const: "provider.diagnostic";
7325
+ readonly type: "string";
7326
+ };
7327
+ };
7328
+ readonly readOnly: true;
7329
+ readonly required: readonly ["protocolVersion", "sessionId", "occurredAt", "type", "payload"];
7330
+ readonly type: "object";
7331
+ }];
7332
+ };
7333
+ };
7334
+ export declare const AGENT_PROTOCOL_JSON_SCHEMA_REGISTRY: readonly [{
7335
+ readonly contractId: "agenai.agent-protocol.account-quota-snapshot";
7336
+ readonly protocolVersion: 8;
7337
+ readonly direction: "output";
7338
+ readonly dialect: "https://json-schema.org/draft/2020-12/schema";
7339
+ readonly parserInvariants: readonly ["quota_observation_ordering", "quota_quantity_presence", "quota_reset_ordering", "serialized_bytes", "unique_model_ids", "unique_pool_window_ids"];
7340
+ readonly sha256: "5b8e8bf4c0a870f66b7d8a1f35160a97ca72d8e212990f9722eff5967412102a";
7341
+ readonly schema: {
7342
+ readonly $defs: {
7343
+ readonly __schema0: {
7344
+ readonly const: 1;
7345
+ readonly type: "number";
7346
+ };
7347
+ readonly __schema1: {
7348
+ readonly maxLength: 256;
7349
+ readonly minLength: 1;
7350
+ readonly pattern: "^(?![\\s\\S]*[\\u0000-\\u001F\\u007F-\\u009F])\\S(?:[\\s\\S]*\\S)?$";
7351
+ readonly type: "string";
7352
+ };
7353
+ readonly __schema2: {
7354
+ readonly format: "date-time";
7355
+ readonly pattern: "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$";
7356
+ readonly type: "string";
7357
+ };
7358
+ readonly __schema3: {
7359
+ readonly maxLength: 160;
7360
+ readonly minLength: 1;
7361
+ readonly pattern: "^(?![\\s\\S]*[\\u0000-\\u001F\\u007F-\\u009F])\\S(?:[\\s\\S]*\\S)?$";
7362
+ readonly type: "string";
7363
+ };
7364
+ readonly __schema4: {
7365
+ readonly additionalProperties: false;
7366
+ readonly properties: {
7367
+ readonly allowanceKind: {
7368
+ readonly enum: readonly ["included", "extra", "reserve", "unknown"];
7369
+ readonly type: "string";
7370
+ };
7371
+ readonly applicability: {
7372
+ readonly oneOf: readonly [{
6618
7373
  readonly additionalProperties: false;
6619
7374
  readonly properties: {
6620
- readonly artifactId: {
7375
+ readonly kind: {
7376
+ readonly const: "account";
7377
+ readonly type: "string";
7378
+ };
7379
+ };
7380
+ readonly readOnly: true;
7381
+ readonly required: readonly ["kind"];
7382
+ readonly type: "object";
7383
+ }, {
7384
+ readonly additionalProperties: false;
7385
+ readonly properties: {
7386
+ readonly kind: {
7387
+ readonly const: "product";
7388
+ readonly type: "string";
7389
+ };
7390
+ readonly productId: {
6621
7391
  readonly $ref: "#/$defs/__schema1";
6622
7392
  };
6623
- readonly byteSize: {
6624
- readonly maximum: 9007199254740991;
7393
+ };
7394
+ readonly readOnly: true;
7395
+ readonly required: readonly ["kind", "productId"];
7396
+ readonly type: "object";
7397
+ }, {
7398
+ readonly additionalProperties: false;
7399
+ readonly properties: {
7400
+ readonly kind: {
7401
+ readonly const: "models";
7402
+ readonly type: "string";
7403
+ };
7404
+ readonly modelIds: {
7405
+ readonly items: {
7406
+ readonly $ref: "#/$defs/__schema1";
7407
+ };
7408
+ readonly maxItems: 32;
7409
+ readonly minItems: 1;
7410
+ readonly readOnly: true;
7411
+ readonly type: "array";
7412
+ };
7413
+ };
7414
+ readonly readOnly: true;
7415
+ readonly required: readonly ["kind", "modelIds"];
7416
+ readonly type: "object";
7417
+ }, {
7418
+ readonly additionalProperties: false;
7419
+ readonly properties: {
7420
+ readonly kind: {
7421
+ readonly const: "unknown";
7422
+ readonly type: "string";
7423
+ };
7424
+ };
7425
+ readonly readOnly: true;
7426
+ readonly required: readonly ["kind"];
7427
+ readonly type: "object";
7428
+ }];
7429
+ };
7430
+ readonly label: {
7431
+ readonly $ref: "#/$defs/__schema3";
7432
+ };
7433
+ readonly measurement: {
7434
+ readonly oneOf: readonly [{
7435
+ readonly additionalProperties: false;
7436
+ readonly properties: {
7437
+ readonly kind: {
7438
+ readonly const: "unknown";
7439
+ readonly type: "string";
7440
+ };
7441
+ };
7442
+ readonly readOnly: true;
7443
+ readonly required: readonly ["kind"];
7444
+ readonly type: "object";
7445
+ }, {
7446
+ readonly additionalProperties: false;
7447
+ readonly properties: {
7448
+ readonly kind: {
7449
+ readonly const: "percentage";
7450
+ readonly type: "string";
7451
+ };
7452
+ readonly usedPercent: {
7453
+ readonly $ref: "#/$defs/__schema6";
7454
+ };
7455
+ };
7456
+ readonly readOnly: true;
7457
+ readonly required: readonly ["kind", "usedPercent"];
7458
+ readonly type: "object";
7459
+ }, {
7460
+ readonly additionalProperties: false;
7461
+ readonly properties: {
7462
+ readonly kind: {
7463
+ readonly const: "quantity";
7464
+ readonly type: "string";
7465
+ };
7466
+ readonly limit: {
7467
+ readonly $ref: "#/$defs/__schema6";
7468
+ };
7469
+ readonly remaining: {
7470
+ readonly $ref: "#/$defs/__schema6";
7471
+ };
7472
+ readonly unit: {
7473
+ readonly $ref: "#/$defs/__schema3";
7474
+ };
7475
+ readonly used: {
7476
+ readonly $ref: "#/$defs/__schema6";
7477
+ };
7478
+ readonly usedPercent: {
7479
+ readonly $ref: "#/$defs/__schema6";
7480
+ };
7481
+ };
7482
+ readonly readOnly: true;
7483
+ readonly required: readonly ["kind", "unit"];
7484
+ readonly type: "object";
7485
+ }, {
7486
+ readonly additionalProperties: false;
7487
+ readonly properties: {
7488
+ readonly currency: {
7489
+ readonly pattern: "^[A-Z]{3}$";
7490
+ readonly type: "string";
7491
+ };
7492
+ readonly kind: {
7493
+ readonly const: "money";
7494
+ readonly type: "string";
7495
+ };
7496
+ readonly limitMinorUnits: {
7497
+ readonly $ref: "#/$defs/__schema7";
7498
+ };
7499
+ readonly remainingMinorUnits: {
7500
+ readonly $ref: "#/$defs/__schema7";
7501
+ };
7502
+ readonly scale: {
7503
+ readonly maximum: 9;
6625
7504
  readonly minimum: 0;
6626
7505
  readonly type: "integer";
6627
7506
  };
6628
- readonly createdAt: {
6629
- readonly $ref: "#/$defs/__schema4";
7507
+ readonly usedMinorUnits: {
7508
+ readonly $ref: "#/$defs/__schema7";
6630
7509
  };
6631
- readonly displayName: {
6632
- readonly maxLength: 200;
6633
- readonly minLength: 1;
6634
- readonly pattern: "^(?:\\S|\\S[\\s\\S]*\\S)$";
6635
- readonly type: "string";
7510
+ readonly usedPercent: {
7511
+ readonly $ref: "#/$defs/__schema6";
6636
7512
  };
6637
- readonly error: {
7513
+ };
7514
+ readonly readOnly: true;
7515
+ readonly required: readonly ["kind", "currency", "scale"];
7516
+ readonly type: "object";
7517
+ }];
7518
+ };
7519
+ readonly observedAt: {
7520
+ readonly $ref: "#/$defs/__schema2";
7521
+ };
7522
+ readonly period: {
7523
+ readonly oneOf: readonly [{
7524
+ readonly additionalProperties: false;
7525
+ readonly properties: {
7526
+ readonly durationSeconds: {
6638
7527
  readonly $ref: "#/$defs/__schema5";
6639
7528
  };
6640
- readonly expiresAt: {
6641
- readonly $ref: "#/$defs/__schema4";
7529
+ readonly kind: {
7530
+ readonly const: "rolling";
7531
+ readonly type: "string";
6642
7532
  };
6643
- readonly heightPixels: {
6644
- readonly $ref: "#/$defs/__schema71";
7533
+ };
7534
+ readonly readOnly: true;
7535
+ readonly required: readonly ["kind"];
7536
+ readonly type: "object";
7537
+ }, {
7538
+ readonly additionalProperties: false;
7539
+ readonly properties: {
7540
+ readonly durationSeconds: {
7541
+ readonly $ref: "#/$defs/__schema5";
6645
7542
  };
6646
7543
  readonly kind: {
6647
- readonly enum: readonly ["image", "document", "archive"];
7544
+ readonly const: "fixed";
6648
7545
  readonly type: "string";
6649
7546
  };
6650
- readonly mediaType: {
6651
- readonly maxLength: 200;
6652
- readonly minLength: 1;
6653
- readonly pattern: "^[a-z0-9!#$&^_.+-]+\\/[a-z0-9!#$&^_.+-]+$";
6654
- readonly type: "string";
7547
+ };
7548
+ readonly readOnly: true;
7549
+ readonly required: readonly ["kind"];
7550
+ readonly type: "object";
7551
+ }, {
7552
+ readonly additionalProperties: false;
7553
+ readonly properties: {
7554
+ readonly durationSeconds: {
7555
+ readonly $ref: "#/$defs/__schema5";
6655
7556
  };
6656
- readonly pageCount: {
6657
- readonly $ref: "#/$defs/__schema71";
7557
+ readonly kind: {
7558
+ readonly const: "unknown";
7559
+ readonly type: "string";
6658
7560
  };
6659
- readonly producer: {
6660
- readonly oneOf: readonly [{
6661
- readonly additionalProperties: false;
6662
- readonly properties: {
6663
- readonly kind: {
6664
- readonly const: "session";
6665
- readonly type: "string";
6666
- };
6667
- readonly sessionId: {
6668
- readonly $ref: "#/$defs/__schema1";
6669
- };
6670
- };
6671
- readonly readOnly: true;
6672
- readonly required: readonly ["kind", "sessionId"];
6673
- readonly type: "object";
6674
- }, {
6675
- readonly additionalProperties: false;
6676
- readonly properties: {
6677
- readonly kind: {
6678
- readonly const: "turn";
6679
- readonly type: "string";
6680
- };
6681
- readonly turnId: {
6682
- readonly $ref: "#/$defs/__schema1";
6683
- };
6684
- };
6685
- readonly readOnly: true;
6686
- readonly required: readonly ["kind", "turnId"];
6687
- readonly type: "object";
6688
- }, {
6689
- readonly additionalProperties: false;
6690
- readonly properties: {
6691
- readonly invocationId: {
6692
- readonly $ref: "#/$defs/__schema1";
6693
- };
6694
- readonly kind: {
6695
- readonly const: "operation";
6696
- readonly type: "string";
6697
- };
6698
- };
6699
- readonly readOnly: true;
6700
- readonly required: readonly ["kind", "invocationId"];
6701
- readonly type: "object";
6702
- }, {
6703
- readonly additionalProperties: false;
6704
- readonly properties: {
6705
- readonly collaborationId: {
6706
- readonly $ref: "#/$defs/__schema1";
6707
- };
6708
- readonly kind: {
6709
- readonly const: "collaboration";
6710
- readonly type: "string";
6711
- };
6712
- };
6713
- readonly readOnly: true;
6714
- readonly required: readonly ["kind", "collaborationId"];
6715
- readonly type: "object";
6716
- }];
7561
+ };
7562
+ readonly readOnly: true;
7563
+ readonly required: readonly ["kind"];
7564
+ readonly type: "object";
7565
+ }, {
7566
+ readonly additionalProperties: false;
7567
+ readonly properties: {
7568
+ readonly kind: {
7569
+ readonly const: "calendar";
7570
+ readonly type: "string";
6717
7571
  };
6718
- readonly resourceId: {
6719
- readonly $ref: "#/$defs/__schema1";
7572
+ readonly timeZone: {
7573
+ readonly $ref: "#/$defs/__schema3";
6720
7574
  };
6721
- readonly sha256: {
6722
- readonly pattern: "^[a-f0-9]{64}$";
7575
+ readonly unit: {
7576
+ readonly enum: readonly ["day", "week", "month", "year"];
6723
7577
  readonly type: "string";
6724
7578
  };
6725
- readonly status: {
6726
- readonly enum: readonly ["pending", "available", "unavailable", "expired"];
7579
+ };
7580
+ readonly readOnly: true;
7581
+ readonly required: readonly ["kind", "unit", "timeZone"];
7582
+ readonly type: "object";
7583
+ }, {
7584
+ readonly additionalProperties: false;
7585
+ readonly properties: {
7586
+ readonly kind: {
7587
+ readonly const: "billing_cycle";
6727
7588
  readonly type: "string";
6728
7589
  };
6729
- readonly summary: {
6730
- readonly maxLength: 2000;
6731
- readonly minLength: 1;
6732
- readonly pattern: "^(?:\\S|\\S[\\s\\S]*\\S)$";
7590
+ readonly unit: {
7591
+ readonly enum: readonly ["month", "year", "unknown"];
6733
7592
  readonly type: "string";
6734
7593
  };
6735
- readonly widthPixels: {
6736
- readonly $ref: "#/$defs/__schema71";
6737
- };
6738
7594
  };
6739
7595
  readonly readOnly: true;
6740
- readonly required: readonly ["resourceId", "kind", "status", "displayName", "producer", "createdAt"];
7596
+ readonly required: readonly ["kind", "unit"];
6741
7597
  readonly type: "object";
7598
+ }];
7599
+ };
7600
+ readonly poolId: {
7601
+ readonly $ref: "#/$defs/__schema1";
7602
+ };
7603
+ readonly reset: {
7604
+ readonly additionalProperties: false;
7605
+ readonly properties: {
7606
+ readonly at: {
7607
+ readonly $ref: "#/$defs/__schema2";
7608
+ };
7609
+ readonly observedAt: {
7610
+ readonly $ref: "#/$defs/__schema2";
7611
+ };
7612
+ readonly precision: {
7613
+ readonly enum: readonly ["reported", "estimated"];
7614
+ readonly type: "string";
7615
+ };
6742
7616
  };
7617
+ readonly readOnly: true;
7618
+ readonly required: readonly ["at", "precision", "observedAt"];
7619
+ readonly type: "object";
7620
+ };
7621
+ readonly startsAt: {
7622
+ readonly $ref: "#/$defs/__schema2";
7623
+ };
7624
+ readonly windowId: {
7625
+ readonly $ref: "#/$defs/__schema1";
6743
7626
  };
6744
- readonly readOnly: true;
6745
- readonly required: readonly ["resource"];
6746
- readonly type: "object";
6747
- };
6748
- readonly protocolVersion: {
6749
- readonly $ref: "#/$defs/__schema0";
6750
- };
6751
- readonly providerRefs: {
6752
- readonly $ref: "#/$defs/__schema2";
6753
- };
6754
- readonly sessionId: {
6755
- readonly $ref: "#/$defs/__schema1";
6756
- };
6757
- readonly turnId: {
6758
- readonly $ref: "#/$defs/__schema1";
6759
- };
6760
- readonly type: {
6761
- readonly const: "resource.updated";
6762
- readonly type: "string";
6763
7627
  };
7628
+ readonly readOnly: true;
7629
+ readonly required: readonly ["poolId", "windowId", "label", "allowanceKind", "applicability", "period", "measurement", "observedAt"];
7630
+ readonly type: "object";
6764
7631
  };
6765
- readonly readOnly: true;
6766
- readonly required: readonly ["protocolVersion", "sessionId", "occurredAt", "type", "payload"];
6767
- readonly type: "object";
6768
- }, {
7632
+ readonly __schema5: {
7633
+ readonly exclusiveMinimum: 0;
7634
+ readonly maximum: 9007199254740991;
7635
+ readonly type: "integer";
7636
+ };
7637
+ readonly __schema6: {
7638
+ readonly maximum: 9007199254740991;
7639
+ readonly minimum: 0;
7640
+ readonly type: "number";
7641
+ };
7642
+ readonly __schema7: {
7643
+ readonly maximum: 9007199254740991;
7644
+ readonly minimum: 0;
7645
+ readonly type: "integer";
7646
+ };
7647
+ };
7648
+ readonly $id: "urn:agenai.agent-protocol.account-quota-snapshot:v8:output";
7649
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
7650
+ readonly oneOf: readonly [{
6769
7651
  readonly additionalProperties: false;
6770
7652
  readonly properties: {
6771
- readonly occurredAt: {
6772
- readonly $ref: "#/$defs/__schema4";
7653
+ readonly accountLabel: {
7654
+ readonly $ref: "#/$defs/__schema3";
6773
7655
  };
6774
- readonly payload: {
7656
+ readonly allowance: {
6775
7657
  readonly additionalProperties: false;
6776
7658
  readonly properties: {
6777
- readonly code: {
6778
- readonly $ref: "#/$defs/__schema6";
6779
- };
6780
- readonly context: {
6781
- readonly $ref: "#/$defs/__schema8";
7659
+ readonly extra: {
7660
+ readonly enum: readonly ["allowed", "unavailable", "unknown"];
7661
+ readonly type: "string";
6782
7662
  };
6783
- readonly message: {
6784
- readonly $ref: "#/$defs/__schema7";
7663
+ readonly included: {
7664
+ readonly enum: readonly ["allowed", "exhausted", "unknown"];
7665
+ readonly type: "string";
6785
7666
  };
6786
- readonly retryable: {
6787
- readonly type: "boolean";
7667
+ readonly reserve: {
7668
+ readonly enum: readonly ["allowed", "unavailable", "unknown"];
7669
+ readonly type: "string";
6788
7670
  };
6789
7671
  };
6790
7672
  readonly readOnly: true;
6791
- readonly required: readonly ["code", "message"];
7673
+ readonly required: readonly ["included", "extra", "reserve"];
6792
7674
  readonly type: "object";
6793
7675
  };
6794
- readonly protocolVersion: {
6795
- readonly $ref: "#/$defs/__schema0";
7676
+ readonly completeness: {
7677
+ readonly enum: readonly ["complete", "partial"];
7678
+ readonly type: "string";
6796
7679
  };
6797
- readonly providerRefs: {
7680
+ readonly observedAt: {
6798
7681
  readonly $ref: "#/$defs/__schema2";
6799
7682
  };
6800
- readonly sessionId: {
6801
- readonly $ref: "#/$defs/__schema1";
7683
+ readonly planLabel: {
7684
+ readonly $ref: "#/$defs/__schema3";
6802
7685
  };
6803
- readonly turnId: {
7686
+ readonly schemaVersion: {
7687
+ readonly $ref: "#/$defs/__schema0";
7688
+ };
7689
+ readonly sourceId: {
6804
7690
  readonly $ref: "#/$defs/__schema1";
6805
7691
  };
6806
- readonly type: {
6807
- readonly const: "runtime.warning";
7692
+ readonly state: {
7693
+ readonly const: "available";
6808
7694
  readonly type: "string";
6809
7695
  };
7696
+ readonly windows: {
7697
+ readonly items: {
7698
+ readonly $ref: "#/$defs/__schema4";
7699
+ };
7700
+ readonly maxItems: 64;
7701
+ readonly readOnly: true;
7702
+ readonly type: "array";
7703
+ };
6810
7704
  };
6811
7705
  readonly readOnly: true;
6812
- readonly required: readonly ["protocolVersion", "sessionId", "occurredAt", "type", "payload"];
7706
+ readonly required: readonly ["schemaVersion", "sourceId", "observedAt", "state", "completeness", "windows", "allowance"];
6813
7707
  readonly type: "object";
6814
7708
  }, {
6815
7709
  readonly additionalProperties: false;
6816
7710
  readonly properties: {
6817
- readonly occurredAt: {
6818
- readonly $ref: "#/$defs/__schema4";
6819
- };
6820
- readonly payload: {
6821
- readonly additionalProperties: false;
6822
- readonly properties: {
6823
- readonly error: {
6824
- readonly $ref: "#/$defs/__schema5";
6825
- };
6826
- };
6827
- readonly readOnly: true;
6828
- readonly required: readonly ["error"];
6829
- readonly type: "object";
6830
- };
6831
- readonly protocolVersion: {
6832
- readonly $ref: "#/$defs/__schema0";
6833
- };
6834
- readonly providerRefs: {
7711
+ readonly observedAt: {
6835
7712
  readonly $ref: "#/$defs/__schema2";
6836
7713
  };
6837
- readonly sessionId: {
6838
- readonly $ref: "#/$defs/__schema1";
7714
+ readonly schemaVersion: {
7715
+ readonly $ref: "#/$defs/__schema0";
6839
7716
  };
6840
- readonly turnId: {
7717
+ readonly sourceId: {
6841
7718
  readonly $ref: "#/$defs/__schema1";
6842
7719
  };
6843
- readonly type: {
6844
- readonly const: "runtime.error";
7720
+ readonly state: {
7721
+ readonly const: "authentication_required";
6845
7722
  readonly type: "string";
6846
7723
  };
6847
7724
  };
6848
7725
  readonly readOnly: true;
6849
- readonly required: readonly ["protocolVersion", "sessionId", "occurredAt", "type", "payload"];
7726
+ readonly required: readonly ["schemaVersion", "sourceId", "observedAt", "state"];
6850
7727
  readonly type: "object";
6851
7728
  }, {
6852
7729
  readonly additionalProperties: false;
6853
7730
  readonly properties: {
6854
- readonly occurredAt: {
6855
- readonly $ref: "#/$defs/__schema4";
6856
- };
6857
- readonly payload: {
6858
- readonly additionalProperties: false;
6859
- readonly properties: {
6860
- readonly code: {
6861
- readonly $ref: "#/$defs/__schema6";
6862
- };
6863
- readonly context: {
6864
- readonly $ref: "#/$defs/__schema8";
6865
- };
6866
- readonly message: {
6867
- readonly $ref: "#/$defs/__schema7";
6868
- };
6869
- };
6870
- readonly readOnly: true;
6871
- readonly required: readonly ["code", "message"];
6872
- readonly type: "object";
7731
+ readonly observedAt: {
7732
+ readonly $ref: "#/$defs/__schema2";
6873
7733
  };
6874
- readonly protocolVersion: {
7734
+ readonly schemaVersion: {
6875
7735
  readonly $ref: "#/$defs/__schema0";
6876
7736
  };
6877
- readonly providerRefs: {
7737
+ readonly sourceId: {
7738
+ readonly $ref: "#/$defs/__schema1";
7739
+ };
7740
+ readonly state: {
7741
+ readonly const: "inapplicable";
7742
+ readonly type: "string";
7743
+ };
7744
+ };
7745
+ readonly readOnly: true;
7746
+ readonly required: readonly ["schemaVersion", "sourceId", "observedAt", "state"];
7747
+ readonly type: "object";
7748
+ }, {
7749
+ readonly additionalProperties: false;
7750
+ readonly properties: {
7751
+ readonly observedAt: {
6878
7752
  readonly $ref: "#/$defs/__schema2";
6879
7753
  };
6880
- readonly sessionId: {
6881
- readonly $ref: "#/$defs/__schema1";
7754
+ readonly schemaVersion: {
7755
+ readonly $ref: "#/$defs/__schema0";
6882
7756
  };
6883
- readonly turnId: {
7757
+ readonly sourceId: {
6884
7758
  readonly $ref: "#/$defs/__schema1";
6885
7759
  };
6886
- readonly type: {
6887
- readonly const: "provider.diagnostic";
7760
+ readonly state: {
7761
+ readonly const: "temporarily_unavailable";
6888
7762
  readonly type: "string";
6889
7763
  };
6890
7764
  };
6891
7765
  readonly readOnly: true;
6892
- readonly required: readonly ["protocolVersion", "sessionId", "occurredAt", "type", "payload"];
7766
+ readonly required: readonly ["schemaVersion", "sourceId", "observedAt", "state"];
6893
7767
  readonly type: "object";
6894
7768
  }];
6895
7769
  };
6896
- };
6897
- export declare const AGENT_PROTOCOL_JSON_SCHEMA_REGISTRY: readonly [{
7770
+ }, {
6898
7771
  readonly contractId: "agenai.agent-protocol.session-binding";
6899
7772
  readonly protocolVersion: 8;
6900
7773
  readonly direction: "output";