@agen-ai/agent-protocol 0.2.3 → 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.
@@ -1,4 +1,576 @@
1
1
  const AGENT_PROTOCOL_JSON_SCHEMA_DIALECT = "https://json-schema.org/draft/2020-12/schema";
2
+ const AGENT_ACCOUNT_QUOTA_SNAPSHOT_JSON_SCHEMA = {
3
+ "contractId": "agenai.agent-protocol.account-quota-snapshot",
4
+ "protocolVersion": 8,
5
+ "direction": "output",
6
+ "dialect": "https://json-schema.org/draft/2020-12/schema",
7
+ "parserInvariants": [
8
+ "quota_observation_ordering",
9
+ "quota_quantity_presence",
10
+ "quota_reset_ordering",
11
+ "serialized_bytes",
12
+ "unique_model_ids",
13
+ "unique_pool_window_ids"
14
+ ],
15
+ "sha256": "5b8e8bf4c0a870f66b7d8a1f35160a97ca72d8e212990f9722eff5967412102a",
16
+ "schema": {
17
+ "$defs": {
18
+ "__schema0": {
19
+ "const": 1,
20
+ "type": "number"
21
+ },
22
+ "__schema1": {
23
+ "maxLength": 256,
24
+ "minLength": 1,
25
+ "pattern": "^(?![\\s\\S]*[\\u0000-\\u001F\\u007F-\\u009F])\\S(?:[\\s\\S]*\\S)?$",
26
+ "type": "string"
27
+ },
28
+ "__schema2": {
29
+ "format": "date-time",
30
+ "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)))$",
31
+ "type": "string"
32
+ },
33
+ "__schema3": {
34
+ "maxLength": 160,
35
+ "minLength": 1,
36
+ "pattern": "^(?![\\s\\S]*[\\u0000-\\u001F\\u007F-\\u009F])\\S(?:[\\s\\S]*\\S)?$",
37
+ "type": "string"
38
+ },
39
+ "__schema4": {
40
+ "additionalProperties": false,
41
+ "properties": {
42
+ "allowanceKind": {
43
+ "enum": [
44
+ "included",
45
+ "extra",
46
+ "reserve",
47
+ "unknown"
48
+ ],
49
+ "type": "string"
50
+ },
51
+ "applicability": {
52
+ "oneOf": [
53
+ {
54
+ "additionalProperties": false,
55
+ "properties": {
56
+ "kind": {
57
+ "const": "account",
58
+ "type": "string"
59
+ }
60
+ },
61
+ "readOnly": true,
62
+ "required": [
63
+ "kind"
64
+ ],
65
+ "type": "object"
66
+ },
67
+ {
68
+ "additionalProperties": false,
69
+ "properties": {
70
+ "kind": {
71
+ "const": "product",
72
+ "type": "string"
73
+ },
74
+ "productId": {
75
+ "$ref": "#/$defs/__schema1"
76
+ }
77
+ },
78
+ "readOnly": true,
79
+ "required": [
80
+ "kind",
81
+ "productId"
82
+ ],
83
+ "type": "object"
84
+ },
85
+ {
86
+ "additionalProperties": false,
87
+ "properties": {
88
+ "kind": {
89
+ "const": "models",
90
+ "type": "string"
91
+ },
92
+ "modelIds": {
93
+ "items": {
94
+ "$ref": "#/$defs/__schema1"
95
+ },
96
+ "maxItems": 32,
97
+ "minItems": 1,
98
+ "readOnly": true,
99
+ "type": "array"
100
+ }
101
+ },
102
+ "readOnly": true,
103
+ "required": [
104
+ "kind",
105
+ "modelIds"
106
+ ],
107
+ "type": "object"
108
+ },
109
+ {
110
+ "additionalProperties": false,
111
+ "properties": {
112
+ "kind": {
113
+ "const": "unknown",
114
+ "type": "string"
115
+ }
116
+ },
117
+ "readOnly": true,
118
+ "required": [
119
+ "kind"
120
+ ],
121
+ "type": "object"
122
+ }
123
+ ]
124
+ },
125
+ "label": {
126
+ "$ref": "#/$defs/__schema3"
127
+ },
128
+ "measurement": {
129
+ "oneOf": [
130
+ {
131
+ "additionalProperties": false,
132
+ "properties": {
133
+ "kind": {
134
+ "const": "unknown",
135
+ "type": "string"
136
+ }
137
+ },
138
+ "readOnly": true,
139
+ "required": [
140
+ "kind"
141
+ ],
142
+ "type": "object"
143
+ },
144
+ {
145
+ "additionalProperties": false,
146
+ "properties": {
147
+ "kind": {
148
+ "const": "percentage",
149
+ "type": "string"
150
+ },
151
+ "usedPercent": {
152
+ "$ref": "#/$defs/__schema6"
153
+ }
154
+ },
155
+ "readOnly": true,
156
+ "required": [
157
+ "kind",
158
+ "usedPercent"
159
+ ],
160
+ "type": "object"
161
+ },
162
+ {
163
+ "additionalProperties": false,
164
+ "properties": {
165
+ "kind": {
166
+ "const": "quantity",
167
+ "type": "string"
168
+ },
169
+ "limit": {
170
+ "$ref": "#/$defs/__schema6"
171
+ },
172
+ "remaining": {
173
+ "$ref": "#/$defs/__schema6"
174
+ },
175
+ "unit": {
176
+ "$ref": "#/$defs/__schema3"
177
+ },
178
+ "used": {
179
+ "$ref": "#/$defs/__schema6"
180
+ },
181
+ "usedPercent": {
182
+ "$ref": "#/$defs/__schema6"
183
+ }
184
+ },
185
+ "readOnly": true,
186
+ "required": [
187
+ "kind",
188
+ "unit"
189
+ ],
190
+ "type": "object"
191
+ },
192
+ {
193
+ "additionalProperties": false,
194
+ "properties": {
195
+ "currency": {
196
+ "pattern": "^[A-Z]{3}$",
197
+ "type": "string"
198
+ },
199
+ "kind": {
200
+ "const": "money",
201
+ "type": "string"
202
+ },
203
+ "limitMinorUnits": {
204
+ "$ref": "#/$defs/__schema7"
205
+ },
206
+ "remainingMinorUnits": {
207
+ "$ref": "#/$defs/__schema7"
208
+ },
209
+ "scale": {
210
+ "maximum": 9,
211
+ "minimum": 0,
212
+ "type": "integer"
213
+ },
214
+ "usedMinorUnits": {
215
+ "$ref": "#/$defs/__schema7"
216
+ },
217
+ "usedPercent": {
218
+ "$ref": "#/$defs/__schema6"
219
+ }
220
+ },
221
+ "readOnly": true,
222
+ "required": [
223
+ "kind",
224
+ "currency",
225
+ "scale"
226
+ ],
227
+ "type": "object"
228
+ }
229
+ ]
230
+ },
231
+ "observedAt": {
232
+ "$ref": "#/$defs/__schema2"
233
+ },
234
+ "period": {
235
+ "oneOf": [
236
+ {
237
+ "additionalProperties": false,
238
+ "properties": {
239
+ "durationSeconds": {
240
+ "$ref": "#/$defs/__schema5"
241
+ },
242
+ "kind": {
243
+ "const": "rolling",
244
+ "type": "string"
245
+ }
246
+ },
247
+ "readOnly": true,
248
+ "required": [
249
+ "kind"
250
+ ],
251
+ "type": "object"
252
+ },
253
+ {
254
+ "additionalProperties": false,
255
+ "properties": {
256
+ "durationSeconds": {
257
+ "$ref": "#/$defs/__schema5"
258
+ },
259
+ "kind": {
260
+ "const": "fixed",
261
+ "type": "string"
262
+ }
263
+ },
264
+ "readOnly": true,
265
+ "required": [
266
+ "kind"
267
+ ],
268
+ "type": "object"
269
+ },
270
+ {
271
+ "additionalProperties": false,
272
+ "properties": {
273
+ "durationSeconds": {
274
+ "$ref": "#/$defs/__schema5"
275
+ },
276
+ "kind": {
277
+ "const": "unknown",
278
+ "type": "string"
279
+ }
280
+ },
281
+ "readOnly": true,
282
+ "required": [
283
+ "kind"
284
+ ],
285
+ "type": "object"
286
+ },
287
+ {
288
+ "additionalProperties": false,
289
+ "properties": {
290
+ "kind": {
291
+ "const": "calendar",
292
+ "type": "string"
293
+ },
294
+ "timeZone": {
295
+ "$ref": "#/$defs/__schema3"
296
+ },
297
+ "unit": {
298
+ "enum": [
299
+ "day",
300
+ "week",
301
+ "month",
302
+ "year"
303
+ ],
304
+ "type": "string"
305
+ }
306
+ },
307
+ "readOnly": true,
308
+ "required": [
309
+ "kind",
310
+ "unit",
311
+ "timeZone"
312
+ ],
313
+ "type": "object"
314
+ },
315
+ {
316
+ "additionalProperties": false,
317
+ "properties": {
318
+ "kind": {
319
+ "const": "billing_cycle",
320
+ "type": "string"
321
+ },
322
+ "unit": {
323
+ "enum": [
324
+ "month",
325
+ "year",
326
+ "unknown"
327
+ ],
328
+ "type": "string"
329
+ }
330
+ },
331
+ "readOnly": true,
332
+ "required": [
333
+ "kind",
334
+ "unit"
335
+ ],
336
+ "type": "object"
337
+ }
338
+ ]
339
+ },
340
+ "poolId": {
341
+ "$ref": "#/$defs/__schema1"
342
+ },
343
+ "reset": {
344
+ "additionalProperties": false,
345
+ "properties": {
346
+ "at": {
347
+ "$ref": "#/$defs/__schema2"
348
+ },
349
+ "observedAt": {
350
+ "$ref": "#/$defs/__schema2"
351
+ },
352
+ "precision": {
353
+ "enum": [
354
+ "reported",
355
+ "estimated"
356
+ ],
357
+ "type": "string"
358
+ }
359
+ },
360
+ "readOnly": true,
361
+ "required": [
362
+ "at",
363
+ "precision",
364
+ "observedAt"
365
+ ],
366
+ "type": "object"
367
+ },
368
+ "startsAt": {
369
+ "$ref": "#/$defs/__schema2"
370
+ },
371
+ "windowId": {
372
+ "$ref": "#/$defs/__schema1"
373
+ }
374
+ },
375
+ "readOnly": true,
376
+ "required": [
377
+ "poolId",
378
+ "windowId",
379
+ "label",
380
+ "allowanceKind",
381
+ "applicability",
382
+ "period",
383
+ "measurement",
384
+ "observedAt"
385
+ ],
386
+ "type": "object"
387
+ },
388
+ "__schema5": {
389
+ "exclusiveMinimum": 0,
390
+ "maximum": 9007199254740991,
391
+ "type": "integer"
392
+ },
393
+ "__schema6": {
394
+ "maximum": 9007199254740991,
395
+ "minimum": 0,
396
+ "type": "number"
397
+ },
398
+ "__schema7": {
399
+ "maximum": 9007199254740991,
400
+ "minimum": 0,
401
+ "type": "integer"
402
+ }
403
+ },
404
+ "$id": "urn:agenai.agent-protocol.account-quota-snapshot:v8:output",
405
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
406
+ "oneOf": [
407
+ {
408
+ "additionalProperties": false,
409
+ "properties": {
410
+ "accountLabel": {
411
+ "$ref": "#/$defs/__schema3"
412
+ },
413
+ "allowance": {
414
+ "additionalProperties": false,
415
+ "properties": {
416
+ "extra": {
417
+ "enum": [
418
+ "allowed",
419
+ "unavailable",
420
+ "unknown"
421
+ ],
422
+ "type": "string"
423
+ },
424
+ "included": {
425
+ "enum": [
426
+ "allowed",
427
+ "exhausted",
428
+ "unknown"
429
+ ],
430
+ "type": "string"
431
+ },
432
+ "reserve": {
433
+ "enum": [
434
+ "allowed",
435
+ "unavailable",
436
+ "unknown"
437
+ ],
438
+ "type": "string"
439
+ }
440
+ },
441
+ "readOnly": true,
442
+ "required": [
443
+ "included",
444
+ "extra",
445
+ "reserve"
446
+ ],
447
+ "type": "object"
448
+ },
449
+ "completeness": {
450
+ "enum": [
451
+ "complete",
452
+ "partial"
453
+ ],
454
+ "type": "string"
455
+ },
456
+ "observedAt": {
457
+ "$ref": "#/$defs/__schema2"
458
+ },
459
+ "planLabel": {
460
+ "$ref": "#/$defs/__schema3"
461
+ },
462
+ "schemaVersion": {
463
+ "$ref": "#/$defs/__schema0"
464
+ },
465
+ "sourceId": {
466
+ "$ref": "#/$defs/__schema1"
467
+ },
468
+ "state": {
469
+ "const": "available",
470
+ "type": "string"
471
+ },
472
+ "windows": {
473
+ "items": {
474
+ "$ref": "#/$defs/__schema4"
475
+ },
476
+ "maxItems": 64,
477
+ "readOnly": true,
478
+ "type": "array"
479
+ }
480
+ },
481
+ "readOnly": true,
482
+ "required": [
483
+ "schemaVersion",
484
+ "sourceId",
485
+ "observedAt",
486
+ "state",
487
+ "completeness",
488
+ "windows",
489
+ "allowance"
490
+ ],
491
+ "type": "object"
492
+ },
493
+ {
494
+ "additionalProperties": false,
495
+ "properties": {
496
+ "observedAt": {
497
+ "$ref": "#/$defs/__schema2"
498
+ },
499
+ "schemaVersion": {
500
+ "$ref": "#/$defs/__schema0"
501
+ },
502
+ "sourceId": {
503
+ "$ref": "#/$defs/__schema1"
504
+ },
505
+ "state": {
506
+ "const": "authentication_required",
507
+ "type": "string"
508
+ }
509
+ },
510
+ "readOnly": true,
511
+ "required": [
512
+ "schemaVersion",
513
+ "sourceId",
514
+ "observedAt",
515
+ "state"
516
+ ],
517
+ "type": "object"
518
+ },
519
+ {
520
+ "additionalProperties": false,
521
+ "properties": {
522
+ "observedAt": {
523
+ "$ref": "#/$defs/__schema2"
524
+ },
525
+ "schemaVersion": {
526
+ "$ref": "#/$defs/__schema0"
527
+ },
528
+ "sourceId": {
529
+ "$ref": "#/$defs/__schema1"
530
+ },
531
+ "state": {
532
+ "const": "inapplicable",
533
+ "type": "string"
534
+ }
535
+ },
536
+ "readOnly": true,
537
+ "required": [
538
+ "schemaVersion",
539
+ "sourceId",
540
+ "observedAt",
541
+ "state"
542
+ ],
543
+ "type": "object"
544
+ },
545
+ {
546
+ "additionalProperties": false,
547
+ "properties": {
548
+ "observedAt": {
549
+ "$ref": "#/$defs/__schema2"
550
+ },
551
+ "schemaVersion": {
552
+ "$ref": "#/$defs/__schema0"
553
+ },
554
+ "sourceId": {
555
+ "$ref": "#/$defs/__schema1"
556
+ },
557
+ "state": {
558
+ "const": "temporarily_unavailable",
559
+ "type": "string"
560
+ }
561
+ },
562
+ "readOnly": true,
563
+ "required": [
564
+ "schemaVersion",
565
+ "sourceId",
566
+ "observedAt",
567
+ "state"
568
+ ],
569
+ "type": "object"
570
+ }
571
+ ]
572
+ }
573
+ };
2
574
  const AGENT_SESSION_BINDING_JSON_SCHEMA = {
3
575
  "contractId": "agenai.agent-protocol.session-binding",
4
576
  "protocolVersion": 8,
@@ -8663,6 +9235,7 @@ const AGENT_EVENT_JSON_SCHEMA = {
8663
9235
  }
8664
9236
  };
8665
9237
  const AGENT_PROTOCOL_JSON_SCHEMA_REGISTRY = [
9238
+ AGENT_ACCOUNT_QUOTA_SNAPSHOT_JSON_SCHEMA,
8666
9239
  AGENT_SESSION_BINDING_JSON_SCHEMA,
8667
9240
  AGENT_SESSION_CONFIGURATION_JSON_SCHEMA,
8668
9241
  AGENT_SESSION_OPEN_INPUT_JSON_SCHEMA,
@@ -8686,6 +9259,7 @@ const AGENT_PROTOCOL_JSON_SCHEMA_REGISTRY = [
8686
9259
  AGENT_EVENT_JSON_SCHEMA
8687
9260
  ];
8688
9261
  export {
9262
+ AGENT_ACCOUNT_QUOTA_SNAPSHOT_JSON_SCHEMA,
8689
9263
  AGENT_ARTIFACT_DESCRIPTOR_JSON_SCHEMA,
8690
9264
  AGENT_CAPABILITIES_JSON_SCHEMA,
8691
9265
  AGENT_COLLABORATION_CONTROL_JSON_SCHEMA,
@@ -0,0 +1,2 @@
1
+ export * from '../accountQuota/index.js';
2
+ //# sourceMappingURL=accountQuota.d.ts.map
@@ -0,0 +1 @@
1
+ export * from "../accountQuota/index.js";
@@ -1,4 +1,5 @@
1
1
  export * from '../foundation/index.js';
2
+ export * from '../accountQuota/index.js';
2
3
  export * from '../sessions/index.js';
3
4
  export * from '../turns/index.js';
4
5
  export * from '../requests/index.js';
@@ -1,4 +1,5 @@
1
1
  export * from "../foundation/index.js";
2
+ export * from "../accountQuota/index.js";
2
3
  export * from "../sessions/index.js";
3
4
  export * from "../turns/index.js";
4
5
  export * from "../requests/index.js";