@vertesia/common 1.6.0-dev.20261004.085740Z → 1.6.0-dev.20261008.064737Z

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 (74) hide show
  1. package/lib/api-contract/components.generated.json +566 -403
  2. package/lib/api-contract/engine.d.ts +65 -0
  3. package/lib/api-contract/engine.d.ts.map +1 -0
  4. package/lib/api-contract/engine.js +569 -0
  5. package/lib/api-contract/engine.js.map +1 -0
  6. package/lib/api-contract/index.d.ts +21 -182
  7. package/lib/api-contract/index.d.ts.map +1 -1
  8. package/lib/api-contract/index.js +13 -551
  9. package/lib/api-contract/index.js.map +1 -1
  10. package/lib/api-schemas/account.d.ts +0 -5
  11. package/lib/api-schemas/account.d.ts.map +1 -1
  12. package/lib/api-schemas/account.js +0 -7
  13. package/lib/api-schemas/account.js.map +1 -1
  14. package/lib/api-schemas/audit-trail.d.ts +255 -0
  15. package/lib/api-schemas/audit-trail.d.ts.map +1 -1
  16. package/lib/api-schemas/audit-trail.js +150 -1
  17. package/lib/api-schemas/audit-trail.js.map +1 -1
  18. package/lib/api-schemas/cost-analytics.d.ts +1 -0
  19. package/lib/api-schemas/cost-analytics.d.ts.map +1 -1
  20. package/lib/api-schemas/cost-analytics.js +7 -0
  21. package/lib/api-schemas/cost-analytics.js.map +1 -1
  22. package/lib/api-schemas/index.d.ts +1 -0
  23. package/lib/api-schemas/index.d.ts.map +1 -1
  24. package/lib/api-schemas/index.js +1 -0
  25. package/lib/api-schemas/index.js.map +1 -1
  26. package/lib/api-schemas/registry.d.ts +256 -109
  27. package/lib/api-schemas/registry.d.ts.map +1 -1
  28. package/lib/api-schemas/registry.js +26 -29
  29. package/lib/api-schemas/registry.js.map +1 -1
  30. package/lib/api-schemas/run-budget.d.ts +0 -36
  31. package/lib/api-schemas/run-budget.d.ts.map +1 -1
  32. package/lib/api-schemas/run-budget.js +0 -33
  33. package/lib/api-schemas/run-budget.js.map +1 -1
  34. package/lib/api-schemas/secrets.d.ts +0 -71
  35. package/lib/api-schemas/secrets.d.ts.map +1 -1
  36. package/lib/api-schemas/secrets.js +0 -73
  37. package/lib/api-schemas/secrets.js.map +1 -1
  38. package/lib/audit-trail.d.ts +14 -2
  39. package/lib/audit-trail.d.ts.map +1 -1
  40. package/lib/audit-trail.js +4 -0
  41. package/lib/audit-trail.js.map +1 -1
  42. package/lib/index.d.ts +1 -1
  43. package/lib/index.d.ts.map +1 -1
  44. package/lib/index.js.map +1 -1
  45. package/lib/platform-event.d.ts +0 -20
  46. package/lib/platform-event.d.ts.map +1 -1
  47. package/lib/run-budget.d.ts +0 -4
  48. package/lib/run-budget.d.ts.map +1 -1
  49. package/lib/secrets.d.ts +0 -10
  50. package/lib/secrets.d.ts.map +1 -1
  51. package/lib/user.d.ts +0 -1
  52. package/lib/user.d.ts.map +1 -1
  53. package/lib/vertesia-common.js +1 -1
  54. package/lib/vertesia-common.js.map +1 -1
  55. package/lib/wire-types.generated.d.ts +101 -105
  56. package/lib/wire-types.generated.d.ts.map +1 -1
  57. package/package.json +6 -6
  58. package/src/api-contract/components.generated.json +566 -403
  59. package/src/api-contract/engine.ts +641 -0
  60. package/src/api-contract/index.ts +30 -661
  61. package/src/api-schemas/account.ts +0 -8
  62. package/src/api-schemas/audit-trail.ts +169 -1
  63. package/src/api-schemas/cost-analytics.ts +8 -0
  64. package/src/api-schemas/index.ts +1 -0
  65. package/src/api-schemas/registry.ts +37 -33
  66. package/src/api-schemas/run-budget.ts +0 -37
  67. package/src/api-schemas/secrets.ts +0 -84
  68. package/src/audit-trail.ts +17 -0
  69. package/src/index.ts +0 -4
  70. package/src/platform-event.ts +0 -25
  71. package/src/run-budget.ts +0 -4
  72. package/src/secrets.ts +0 -11
  73. package/src/user.ts +0 -2
  74. package/src/wire-types.generated.ts +102 -103
@@ -1,115 +1,4 @@
1
1
  {
2
- "RunBudgetOwner": {
3
- "type": "object",
4
- "properties": {
5
- "workflow_id": {
6
- "type": "string",
7
- "minLength": 1
8
- },
9
- "first_run_id": {
10
- "type": "string",
11
- "minLength": 1
12
- }
13
- },
14
- "required": [
15
- "workflow_id",
16
- "first_run_id"
17
- ],
18
- "additionalProperties": false
19
- },
20
- "RunBudgetUsage": {
21
- "type": "object",
22
- "properties": {
23
- "input": {
24
- "type": "number",
25
- "minimum": 0
26
- },
27
- "cached_input": {
28
- "type": "number",
29
- "minimum": 0
30
- },
31
- "output": {
32
- "type": "number",
33
- "minimum": 0
34
- }
35
- },
36
- "required": [
37
- "input",
38
- "cached_input",
39
- "output"
40
- ],
41
- "additionalProperties": false
42
- },
43
- "ReadRunBudgetUsagePayload": {
44
- "type": "object",
45
- "properties": {
46
- "account_id": {
47
- "type": "string",
48
- "minLength": 1
49
- },
50
- "project_id": {
51
- "type": "string",
52
- "minLength": 1
53
- },
54
- "agent_run_id": {
55
- "type": "string",
56
- "minLength": 1
57
- },
58
- "owner": {
59
- "$ref": "#/components/schemas/RunBudgetOwner"
60
- },
61
- "require_estimates": {
62
- "type": "boolean"
63
- }
64
- },
65
- "required": [
66
- "account_id",
67
- "project_id",
68
- "agent_run_id",
69
- "owner"
70
- ],
71
- "additionalProperties": false
72
- },
73
- "RunBudgetTotals": {
74
- "type": "object",
75
- "properties": {
76
- "measured": {
77
- "$ref": "#/components/schemas/RunBudgetUsage"
78
- },
79
- "unpriced": {
80
- "$ref": "#/components/schemas/RunBudgetUsage"
81
- },
82
- "reported_nano_usd": {
83
- "type": "integer",
84
- "minimum": 0,
85
- "maximum": 9007199254740991
86
- },
87
- "estimated_nano_usd": {
88
- "type": "integer",
89
- "minimum": 0,
90
- "maximum": 9007199254740991
91
- },
92
- "unmeasured_calls": {
93
- "type": "integer",
94
- "minimum": 0,
95
- "maximum": 9007199254740991
96
- },
97
- "missing_usage_calls": {
98
- "type": "integer",
99
- "minimum": 0,
100
- "maximum": 9007199254740991
101
- }
102
- },
103
- "required": [
104
- "measured",
105
- "unpriced",
106
- "reported_nano_usd",
107
- "estimated_nano_usd",
108
- "unmeasured_calls",
109
- "missing_usage_calls"
110
- ],
111
- "additionalProperties": false
112
- },
113
2
  "RunBudgetCapability": {
114
3
  "type": "object",
115
4
  "properties": {
@@ -282,20 +171,6 @@
282
171
  "$ref": "#/components/schemas/DelegationGrant"
283
172
  }
284
173
  },
285
- "AccountApiVersionPolicy": {
286
- "type": "object",
287
- "properties": {
288
- "default_api_version": {
289
- "type": "number",
290
- "enum": [
291
- 20250925,
292
- 20260210,
293
- 20260319,
294
- 20260803
295
- ]
296
- }
297
- }
298
- },
299
174
  "AccountType": {
300
175
  "type": "string",
301
176
  "enum": [
@@ -16246,6 +16121,554 @@
16246
16121
  "additionalProperties": false,
16247
16122
  "description": "Whether an API key is configured for an MCP tool collection"
16248
16123
  },
16124
+ "AuditAdoptionActiveDays": {
16125
+ "type": "object",
16126
+ "properties": {
16127
+ "days": {
16128
+ "type": "integer",
16129
+ "minimum": 1,
16130
+ "maximum": 367
16131
+ },
16132
+ "users": {
16133
+ "type": "integer",
16134
+ "minimum": 0,
16135
+ "maximum": 9007199254740991
16136
+ }
16137
+ },
16138
+ "required": [
16139
+ "days",
16140
+ "users"
16141
+ ],
16142
+ "additionalProperties": false
16143
+ },
16144
+ "AuditAdoptionBucket": {
16145
+ "type": "object",
16146
+ "properties": {
16147
+ "from": {
16148
+ "type": "string",
16149
+ "format": "date-time"
16150
+ },
16151
+ "to": {
16152
+ "type": "string",
16153
+ "format": "date-time"
16154
+ },
16155
+ "partial": {
16156
+ "type": "boolean"
16157
+ },
16158
+ "active_users": {
16159
+ "type": "integer",
16160
+ "minimum": 0,
16161
+ "maximum": 9007199254740991
16162
+ }
16163
+ },
16164
+ "required": [
16165
+ "from",
16166
+ "to",
16167
+ "partial",
16168
+ "active_users"
16169
+ ],
16170
+ "additionalProperties": false
16171
+ },
16172
+ "KnownAuditAction": {
16173
+ "type": "string",
16174
+ "enum": [
16175
+ "create",
16176
+ "update",
16177
+ "delete",
16178
+ "bulk_create",
16179
+ "bulk_change_type",
16180
+ "bulk_update",
16181
+ "bulk_delete",
16182
+ "attach",
16183
+ "detach",
16184
+ "credentials_fill",
16185
+ "credentials_totp_generation",
16186
+ "publish",
16187
+ "unpublish",
16188
+ "search",
16189
+ "read",
16190
+ "inference",
16191
+ "embedding",
16192
+ "image_generation",
16193
+ "document_processed"
16194
+ ]
16195
+ },
16196
+ "EventCategory": {
16197
+ "type": "string",
16198
+ "enum": [
16199
+ "content",
16200
+ "workflow",
16201
+ "security",
16202
+ "billing",
16203
+ "system",
16204
+ "external"
16205
+ ]
16206
+ },
16207
+ "AuditAction": {
16208
+ "anyOf": [
16209
+ {
16210
+ "$ref": "#/components/schemas/KnownAuditAction"
16211
+ },
16212
+ {
16213
+ "type": "string"
16214
+ }
16215
+ ]
16216
+ },
16217
+ "AuditAdoptionFilter": {
16218
+ "type": "object",
16219
+ "properties": {
16220
+ "actions": {
16221
+ "maxItems": 32,
16222
+ "type": "array",
16223
+ "items": {
16224
+ "$ref": "#/components/schemas/AuditAction"
16225
+ }
16226
+ },
16227
+ "resourceTypes": {
16228
+ "maxItems": 16,
16229
+ "type": "array",
16230
+ "items": {
16231
+ "type": "string",
16232
+ "maxLength": 128
16233
+ }
16234
+ },
16235
+ "eventCategories": {
16236
+ "maxItems": 6,
16237
+ "type": "array",
16238
+ "items": {
16239
+ "$ref": "#/components/schemas/EventCategory"
16240
+ }
16241
+ }
16242
+ },
16243
+ "additionalProperties": false
16244
+ },
16245
+ "AuditAdoptionHistory": {
16246
+ "type": "object",
16247
+ "properties": {
16248
+ "earliest_observed_at": {
16249
+ "anyOf": [
16250
+ {
16251
+ "type": "string",
16252
+ "format": "date-time"
16253
+ },
16254
+ {
16255
+ "type": "null"
16256
+ }
16257
+ ]
16258
+ },
16259
+ "coverage_from": {
16260
+ "anyOf": [
16261
+ {
16262
+ "type": "string",
16263
+ "format": "date-time",
16264
+ "description": "Authoritative complete-history boundary, if known. Earliest observation is not a coverage boundary."
16265
+ },
16266
+ {
16267
+ "type": "null"
16268
+ }
16269
+ ]
16270
+ },
16271
+ "completeness": {
16272
+ "type": "string",
16273
+ "enum": [
16274
+ "unknown",
16275
+ "insufficient",
16276
+ "verified"
16277
+ ]
16278
+ },
16279
+ "retention_unavailable_reason": {
16280
+ "anyOf": [
16281
+ {
16282
+ "type": "string",
16283
+ "enum": [
16284
+ "no_previous_users",
16285
+ "insufficient_history"
16286
+ ]
16287
+ },
16288
+ {
16289
+ "type": "null"
16290
+ }
16291
+ ]
16292
+ }
16293
+ },
16294
+ "required": [
16295
+ "earliest_observed_at",
16296
+ "coverage_from",
16297
+ "completeness",
16298
+ "retention_unavailable_reason"
16299
+ ],
16300
+ "additionalProperties": false
16301
+ },
16302
+ "AuditAdoptionPeriod": {
16303
+ "type": "object",
16304
+ "properties": {
16305
+ "from": {
16306
+ "type": "string",
16307
+ "format": "date-time"
16308
+ },
16309
+ "to": {
16310
+ "type": "string",
16311
+ "format": "date-time"
16312
+ }
16313
+ },
16314
+ "required": [
16315
+ "from",
16316
+ "to"
16317
+ ],
16318
+ "additionalProperties": false
16319
+ },
16320
+ "AuditAdoptionProject": {
16321
+ "type": "object",
16322
+ "properties": {
16323
+ "project_id": {
16324
+ "type": "string"
16325
+ },
16326
+ "project_name": {
16327
+ "anyOf": [
16328
+ {
16329
+ "type": "string"
16330
+ },
16331
+ {
16332
+ "type": "null"
16333
+ }
16334
+ ]
16335
+ },
16336
+ "active_users": {
16337
+ "type": "integer",
16338
+ "minimum": 0,
16339
+ "maximum": 9007199254740991
16340
+ },
16341
+ "active_user_days": {
16342
+ "type": "integer",
16343
+ "minimum": 0,
16344
+ "maximum": 9007199254740991
16345
+ }
16346
+ },
16347
+ "required": [
16348
+ "project_id",
16349
+ "project_name",
16350
+ "active_users",
16351
+ "active_user_days"
16352
+ ],
16353
+ "additionalProperties": false
16354
+ },
16355
+ "AuditAdoptionQuery": {
16356
+ "type": "object",
16357
+ "properties": {
16358
+ "projectId": {
16359
+ "type": "string"
16360
+ },
16361
+ "from": {
16362
+ "type": "string",
16363
+ "format": "date-time",
16364
+ "description": "Inclusive start; defaults to 30 days before to."
16365
+ },
16366
+ "to": {
16367
+ "type": "string",
16368
+ "format": "date-time",
16369
+ "description": "Exclusive end; defaults to now. Maximum duration: 366 days."
16370
+ },
16371
+ "filter": {
16372
+ "$ref": "#/components/schemas/AuditAdoptionFilter"
16373
+ }
16374
+ },
16375
+ "additionalProperties": false,
16376
+ "description": "Productive direct authenticated user activity, including user OAuth/MCP calls. Scope is enforced by the server."
16377
+ },
16378
+ "AuditAdoptionResponse": {
16379
+ "type": "object",
16380
+ "properties": {
16381
+ "period": {
16382
+ "$ref": "#/components/schemas/AuditAdoptionPeriod"
16383
+ },
16384
+ "previous_period": {
16385
+ "$ref": "#/components/schemas/AuditAdoptionPeriod"
16386
+ },
16387
+ "resolution": {
16388
+ "type": "string",
16389
+ "enum": [
16390
+ "day",
16391
+ "week"
16392
+ ]
16393
+ },
16394
+ "active_users": {
16395
+ "type": "integer",
16396
+ "minimum": 0,
16397
+ "maximum": 9007199254740991
16398
+ },
16399
+ "previous_active_users": {
16400
+ "type": "integer",
16401
+ "minimum": 0,
16402
+ "maximum": 9007199254740991
16403
+ },
16404
+ "retained_users": {
16405
+ "type": "integer",
16406
+ "minimum": 0,
16407
+ "maximum": 9007199254740991
16408
+ },
16409
+ "observed_retention": {
16410
+ "anyOf": [
16411
+ {
16412
+ "type": "number",
16413
+ "minimum": 0,
16414
+ "maximum": 1
16415
+ },
16416
+ {
16417
+ "type": "null"
16418
+ }
16419
+ ]
16420
+ },
16421
+ "returning_user_share": {
16422
+ "anyOf": [
16423
+ {
16424
+ "type": "number",
16425
+ "minimum": 0,
16426
+ "maximum": 1
16427
+ },
16428
+ {
16429
+ "type": "null"
16430
+ }
16431
+ ]
16432
+ },
16433
+ "repeat_user_share": {
16434
+ "anyOf": [
16435
+ {
16436
+ "type": "number",
16437
+ "minimum": 0,
16438
+ "maximum": 1
16439
+ },
16440
+ {
16441
+ "type": "null"
16442
+ }
16443
+ ]
16444
+ },
16445
+ "median_active_days": {
16446
+ "anyOf": [
16447
+ {
16448
+ "type": "number",
16449
+ "minimum": 0
16450
+ },
16451
+ {
16452
+ "type": "null"
16453
+ }
16454
+ ]
16455
+ },
16456
+ "active_projects": {
16457
+ "anyOf": [
16458
+ {
16459
+ "type": "integer",
16460
+ "minimum": 0,
16461
+ "maximum": 9007199254740991
16462
+ },
16463
+ {
16464
+ "type": "null"
16465
+ }
16466
+ ]
16467
+ },
16468
+ "timeline": {
16469
+ "type": "array",
16470
+ "items": {
16471
+ "$ref": "#/components/schemas/AuditAdoptionBucket"
16472
+ }
16473
+ },
16474
+ "active_day_distribution": {
16475
+ "type": "array",
16476
+ "items": {
16477
+ "$ref": "#/components/schemas/AuditAdoptionActiveDays"
16478
+ }
16479
+ },
16480
+ "top_projects": {
16481
+ "maxItems": 10,
16482
+ "type": "array",
16483
+ "items": {
16484
+ "$ref": "#/components/schemas/AuditAdoptionProject"
16485
+ }
16486
+ },
16487
+ "history": {
16488
+ "$ref": "#/components/schemas/AuditAdoptionHistory"
16489
+ }
16490
+ },
16491
+ "required": [
16492
+ "period",
16493
+ "previous_period",
16494
+ "resolution",
16495
+ "active_users",
16496
+ "previous_active_users",
16497
+ "retained_users",
16498
+ "observed_retention",
16499
+ "returning_user_share",
16500
+ "repeat_user_share",
16501
+ "median_active_days",
16502
+ "active_projects",
16503
+ "timeline",
16504
+ "active_day_distribution",
16505
+ "top_projects",
16506
+ "history"
16507
+ ],
16508
+ "additionalProperties": false,
16509
+ "description": "Distinct user adoption sets over two equal-duration half-open periods. Ratios use available audit history, not guaranteed historical coverage. No user identities are returned."
16510
+ },
16511
+ "AuditUsageQuery": {
16512
+ "type": "object",
16513
+ "properties": {
16514
+ "projectId": {
16515
+ "type": "string"
16516
+ },
16517
+ "from": {
16518
+ "type": "string",
16519
+ "format": "date-time",
16520
+ "description": "Inclusive start; defaults to 30 days before to."
16521
+ },
16522
+ "to": {
16523
+ "type": "string",
16524
+ "format": "date-time",
16525
+ "description": "Exclusive end; defaults to now. Maximum duration: 366 days."
16526
+ },
16527
+ "resolution": {
16528
+ "type": "string",
16529
+ "enum": [
16530
+ "day",
16531
+ "week",
16532
+ "month"
16533
+ ],
16534
+ "description": "UTC calendar buckets. Weeks start Monday. Omitted: daily up to 200 dates, otherwise weekly."
16535
+ }
16536
+ },
16537
+ "additionalProperties": false,
16538
+ "description": "Usage trends for an authorized account or project over a half-open interval of at most 366 days."
16539
+ },
16540
+ "AuditUsageCounts": {
16541
+ "type": "object",
16542
+ "properties": {
16543
+ "active_users": {
16544
+ "type": "integer",
16545
+ "minimum": 0,
16546
+ "maximum": 9007199254740991
16547
+ },
16548
+ "agent_runs": {
16549
+ "type": "integer",
16550
+ "minimum": 0,
16551
+ "maximum": 9007199254740991,
16552
+ "description": "All audited run creations and marked restarts, including automated runs."
16553
+ },
16554
+ "user_agent_runs": {
16555
+ "type": "integer",
16556
+ "minimum": 0,
16557
+ "maximum": 9007199254740991,
16558
+ "description": "Run operations initiated directly by authenticated users, including OAuth/MCP."
16559
+ },
16560
+ "automated_agent_runs": {
16561
+ "type": "integer",
16562
+ "minimum": 0,
16563
+ "maximum": 9007199254740991,
16564
+ "description": "Other run operations, including schedules, delegated agents, services and API keys."
16565
+ },
16566
+ "agent_users": {
16567
+ "type": "integer",
16568
+ "minimum": 0,
16569
+ "maximum": 9007199254740991,
16570
+ "description": "Distinct identifiable user initiators or owners of run operations, including scheduled and delegated runs."
16571
+ },
16572
+ "direct_calls": {
16573
+ "type": "integer",
16574
+ "minimum": 0,
16575
+ "maximum": 9007199254740991
16576
+ },
16577
+ "direct_call_users": {
16578
+ "type": "integer",
16579
+ "minimum": 0,
16580
+ "maximum": 9007199254740991
16581
+ },
16582
+ "content_objects": {
16583
+ "type": "integer",
16584
+ "minimum": 0,
16585
+ "maximum": 9007199254740991
16586
+ },
16587
+ "user_content_objects": {
16588
+ "type": "integer",
16589
+ "minimum": 0,
16590
+ "maximum": 9007199254740991
16591
+ },
16592
+ "other_content_objects": {
16593
+ "type": "integer",
16594
+ "minimum": 0,
16595
+ "maximum": 9007199254740991
16596
+ }
16597
+ },
16598
+ "required": [
16599
+ "active_users",
16600
+ "agent_runs",
16601
+ "user_agent_runs",
16602
+ "automated_agent_runs",
16603
+ "agent_users",
16604
+ "direct_calls",
16605
+ "direct_call_users",
16606
+ "content_objects",
16607
+ "user_content_objects",
16608
+ "other_content_objects"
16609
+ ],
16610
+ "additionalProperties": false,
16611
+ "description": "Direct productive users, run initiators/owners, all run operations and standalone inference audit events."
16612
+ },
16613
+ "AuditUsageBucket": {
16614
+ "type": "object",
16615
+ "properties": {
16616
+ "from": {
16617
+ "type": "string",
16618
+ "format": "date-time"
16619
+ },
16620
+ "to": {
16621
+ "type": "string",
16622
+ "format": "date-time"
16623
+ },
16624
+ "partial": {
16625
+ "type": "boolean"
16626
+ },
16627
+ "counts": {
16628
+ "$ref": "#/components/schemas/AuditUsageCounts"
16629
+ }
16630
+ },
16631
+ "required": [
16632
+ "from",
16633
+ "to",
16634
+ "partial",
16635
+ "counts"
16636
+ ],
16637
+ "additionalProperties": false
16638
+ },
16639
+ "AuditUsageResponse": {
16640
+ "type": "object",
16641
+ "properties": {
16642
+ "period": {
16643
+ "$ref": "#/components/schemas/AuditAdoptionPeriod"
16644
+ },
16645
+ "resolution": {
16646
+ "type": "string",
16647
+ "enum": [
16648
+ "day",
16649
+ "week",
16650
+ "month"
16651
+ ]
16652
+ },
16653
+ "totals": {
16654
+ "$ref": "#/components/schemas/AuditUsageCounts"
16655
+ },
16656
+ "timeline": {
16657
+ "type": "array",
16658
+ "items": {
16659
+ "$ref": "#/components/schemas/AuditUsageBucket"
16660
+ }
16661
+ }
16662
+ },
16663
+ "required": [
16664
+ "period",
16665
+ "resolution",
16666
+ "totals",
16667
+ "timeline"
16668
+ ],
16669
+ "additionalProperties": false,
16670
+ "description": "UTC usage trends. Period-wide distinct users are not sums of bucket populations. No user identities are returned."
16671
+ },
16249
16672
  "AuditMeter": {
16250
16673
  "type": "object",
16251
16674
  "properties": {
@@ -16267,39 +16690,6 @@
16267
16690
  "additionalProperties": false,
16268
16691
  "description": "Generic metering entry attached to audit events. Used for cost attribution, usage tracking, and billing.\n\nExamples: { category: \"tokens\", type: \"input\", quantity: 1234 } { category: \"tokens\", type: \"output\", quantity: 567 } { category: \"compute\", type: \"duration_ms\", quantity: 2100 } { category: \"processing\", type: \"pages\", quantity: 12 }"
16269
16692
  },
16270
- "KnownAuditAction": {
16271
- "type": "string",
16272
- "enum": [
16273
- "create",
16274
- "update",
16275
- "delete",
16276
- "bulk_create",
16277
- "bulk_change_type",
16278
- "bulk_update",
16279
- "bulk_delete",
16280
- "attach",
16281
- "detach",
16282
- "credentials_fill",
16283
- "credentials_totp_generation",
16284
- "publish",
16285
- "unpublish",
16286
- "inference",
16287
- "embedding",
16288
- "image_generation",
16289
- "document_processed"
16290
- ]
16291
- },
16292
- "EventCategory": {
16293
- "type": "string",
16294
- "enum": [
16295
- "content",
16296
- "workflow",
16297
- "security",
16298
- "billing",
16299
- "system",
16300
- "external"
16301
- ]
16302
- },
16303
16693
  "AuditAggregationDimensionMap": {
16304
16694
  "type": "object",
16305
16695
  "properties": {
@@ -16383,6 +16773,17 @@
16383
16773
  }
16384
16774
  ]
16385
16775
  },
16776
+ "user_id": {
16777
+ "anyOf": [
16778
+ {
16779
+ "type": "string"
16780
+ },
16781
+ {
16782
+ "type": "null"
16783
+ }
16784
+ ],
16785
+ "description": "Originating user identity, including delegated and scheduled activity with a recorded user owner. Non-user principals without a user origin are excluded."
16786
+ },
16386
16787
  "details.pipeline": {
16387
16788
  "anyOf": [
16388
16789
  {
@@ -16442,7 +16843,8 @@
16442
16843
  "resource_id",
16443
16844
  "request_id",
16444
16845
  "principal_id",
16445
- "actor_id"
16846
+ "actor_id",
16847
+ "user_id"
16446
16848
  ]
16447
16849
  },
16448
16850
  "AuditAggregationOperation": {
@@ -16474,6 +16876,7 @@
16474
16876
  "project_id",
16475
16877
  "principal_id",
16476
16878
  "actor_id",
16879
+ "user_id",
16477
16880
  "details.pipeline",
16478
16881
  "details.verdict",
16479
16882
  "details.workflow_type",
@@ -16490,16 +16893,6 @@
16490
16893
  "rule_id"
16491
16894
  ]
16492
16895
  },
16493
- "AuditAction": {
16494
- "anyOf": [
16495
- {
16496
- "$ref": "#/components/schemas/KnownAuditAction"
16497
- },
16498
- {
16499
- "type": "string"
16500
- }
16501
- ]
16502
- },
16503
16896
  "AuditAggregationRow": {
16504
16897
  "type": "object",
16505
16898
  "properties": {
@@ -20893,240 +21286,6 @@
20893
21286
  }
20894
21287
  }
20895
21288
  },
20896
- "EventWebhookSigningSecretRequest": {
20897
- "type": "object",
20898
- "properties": {
20899
- "account_id": {
20900
- "type": "string"
20901
- },
20902
- "project_id": {
20903
- "type": "string"
20904
- }
20905
- },
20906
- "required": [
20907
- "project_id"
20908
- ],
20909
- "additionalProperties": false
20910
- },
20911
- "EventWebhookSigningSecretResponse": {
20912
- "type": "object",
20913
- "properties": {
20914
- "subscription_id": {
20915
- "type": "string"
20916
- },
20917
- "secret": {
20918
- "type": "string"
20919
- },
20920
- "secret_label": {
20921
- "type": "string"
20922
- }
20923
- },
20924
- "required": [
20925
- "subscription_id",
20926
- "secret",
20927
- "secret_label"
20928
- ],
20929
- "additionalProperties": false
20930
- },
20931
- "SignEventWebhookRequest": {
20932
- "type": "object",
20933
- "properties": {
20934
- "account_id": {
20935
- "type": "string"
20936
- },
20937
- "project_id": {
20938
- "type": "string"
20939
- },
20940
- "delivery_id": {
20941
- "type": "string"
20942
- },
20943
- "body": {
20944
- "type": "string"
20945
- },
20946
- "event_id": {
20947
- "type": "string"
20948
- },
20949
- "event_category": {
20950
- "$ref": "#/components/schemas/EventCategory"
20951
- },
20952
- "action": {
20953
- "type": "string"
20954
- },
20955
- "timestamp": {
20956
- "type": "number"
20957
- }
20958
- },
20959
- "required": [
20960
- "project_id",
20961
- "delivery_id",
20962
- "body",
20963
- "event_id",
20964
- "event_category",
20965
- "action"
20966
- ],
20967
- "additionalProperties": false
20968
- },
20969
- "SignEventWebhookResponse": {
20970
- "type": "object",
20971
- "properties": {
20972
- "headers": {
20973
- "type": "object",
20974
- "additionalProperties": {
20975
- "type": "string"
20976
- }
20977
- },
20978
- "timestamp": {
20979
- "type": "number"
20980
- },
20981
- "signature": {
20982
- "type": "string"
20983
- }
20984
- },
20985
- "required": [
20986
- "headers",
20987
- "timestamp",
20988
- "signature"
20989
- ],
20990
- "additionalProperties": false
20991
- },
20992
- "EventIngestSigningSecretRequest": {
20993
- "type": "object",
20994
- "properties": {
20995
- "account_id": {
20996
- "type": "string"
20997
- },
20998
- "project_id": {
20999
- "type": "string"
21000
- }
21001
- },
21002
- "required": [
21003
- "project_id"
21004
- ],
21005
- "additionalProperties": false
21006
- },
21007
- "EventIngestSigningSecretResponse": {
21008
- "type": "object",
21009
- "properties": {
21010
- "channel_id": {
21011
- "type": "string"
21012
- },
21013
- "secret": {
21014
- "type": "string"
21015
- },
21016
- "secret_label": {
21017
- "type": "string"
21018
- }
21019
- },
21020
- "required": [
21021
- "channel_id",
21022
- "secret",
21023
- "secret_label"
21024
- ],
21025
- "additionalProperties": false
21026
- },
21027
- "VerifyEventIngestSignatureRequest": {
21028
- "type": "object",
21029
- "properties": {
21030
- "account_id": {
21031
- "type": "string"
21032
- },
21033
- "project_id": {
21034
- "type": "string"
21035
- },
21036
- "body": {
21037
- "type": "string"
21038
- },
21039
- "signature_header": {
21040
- "type": "string"
21041
- },
21042
- "algorithm": {
21043
- "type": "string",
21044
- "enum": [
21045
- "sha256",
21046
- "sha1"
21047
- ]
21048
- },
21049
- "encoding": {
21050
- "type": "string",
21051
- "enum": [
21052
- "hex",
21053
- "base64"
21054
- ]
21055
- },
21056
- "prefix": {
21057
- "type": "string"
21058
- }
21059
- },
21060
- "required": [
21061
- "project_id",
21062
- "body",
21063
- "signature_header"
21064
- ],
21065
- "additionalProperties": false
21066
- },
21067
- "VerifyEventIngestSignatureResponse": {
21068
- "type": "object",
21069
- "properties": {
21070
- "valid": {
21071
- "type": "boolean"
21072
- }
21073
- },
21074
- "required": [
21075
- "valid"
21076
- ],
21077
- "additionalProperties": false
21078
- },
21079
- "GithubInstallationTokenRequest": {
21080
- "type": "object",
21081
- "properties": {
21082
- "account_id": {
21083
- "type": "string"
21084
- },
21085
- "project_id": {
21086
- "type": "string"
21087
- },
21088
- "installation_id": {
21089
- "type": "string"
21090
- },
21091
- "repo": {
21092
- "type": "string"
21093
- }
21094
- },
21095
- "required": [
21096
- "project_id",
21097
- "installation_id",
21098
- "repo"
21099
- ],
21100
- "additionalProperties": false
21101
- },
21102
- "GithubInstallationTokenResponse": {
21103
- "type": "object",
21104
- "properties": {
21105
- "token": {
21106
- "type": "string"
21107
- },
21108
- "expires_at": {
21109
- "type": "string"
21110
- }
21111
- },
21112
- "required": [
21113
- "token"
21114
- ],
21115
- "additionalProperties": false
21116
- },
21117
- "InternalSecretDeleteResponse": {
21118
- "type": "object",
21119
- "properties": {
21120
- "deleted": {
21121
- "type": "boolean",
21122
- "const": true
21123
- }
21124
- },
21125
- "required": [
21126
- "deleted"
21127
- ],
21128
- "additionalProperties": false
21129
- },
21130
21289
  "SupportedIntegrations_ask_user_webhook": {
21131
21290
  "type": "string",
21132
21291
  "const": "ask_user_webhook"
@@ -42560,6 +42719,10 @@
42560
42719
  "type": "string",
42561
42720
  "description": "Filter by agent run ID"
42562
42721
  },
42722
+ "agent_only": {
42723
+ "type": "boolean",
42724
+ "description": "Restrict usage to agent runs and their attributed nested/background inference. Excludes standalone interactions and non-agent workflows. Defaults to false."
42725
+ },
42563
42726
  "interaction_id": {
42564
42727
  "type": "string",
42565
42728
  "description": "Filter by interaction id: stored ObjectId or namespaced in-code id"