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

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 (84) hide show
  1. package/lib/api-contract/components.generated.json +572 -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 +572 -0
  5. package/lib/api-contract/engine.js.map +1 -0
  6. package/lib/api-contract/index.d.ts +22 -183
  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-contract/types.d.ts +70 -0
  11. package/lib/api-contract/types.d.ts.map +1 -0
  12. package/lib/api-contract/types.js +2 -0
  13. package/lib/api-contract/types.js.map +1 -0
  14. package/lib/api-schemas/account.d.ts +0 -5
  15. package/lib/api-schemas/account.d.ts.map +1 -1
  16. package/lib/api-schemas/account.js +0 -7
  17. package/lib/api-schemas/account.js.map +1 -1
  18. package/lib/api-schemas/audit-trail.d.ts +255 -0
  19. package/lib/api-schemas/audit-trail.d.ts.map +1 -1
  20. package/lib/api-schemas/audit-trail.js +150 -1
  21. package/lib/api-schemas/audit-trail.js.map +1 -1
  22. package/lib/api-schemas/cost-analytics.d.ts +1 -0
  23. package/lib/api-schemas/cost-analytics.d.ts.map +1 -1
  24. package/lib/api-schemas/cost-analytics.js +7 -0
  25. package/lib/api-schemas/cost-analytics.js.map +1 -1
  26. package/lib/api-schemas/group.d.ts +2 -0
  27. package/lib/api-schemas/group.d.ts.map +1 -1
  28. package/lib/api-schemas/group.js +5 -0
  29. package/lib/api-schemas/group.js.map +1 -1
  30. package/lib/api-schemas/index.d.ts +1 -0
  31. package/lib/api-schemas/index.d.ts.map +1 -1
  32. package/lib/api-schemas/index.js +1 -0
  33. package/lib/api-schemas/index.js.map +1 -1
  34. package/lib/api-schemas/registry.d.ts +270 -186
  35. package/lib/api-schemas/registry.d.ts.map +1 -1
  36. package/lib/api-schemas/registry.js +26 -29
  37. package/lib/api-schemas/registry.js.map +1 -1
  38. package/lib/api-schemas/run-budget.d.ts +0 -36
  39. package/lib/api-schemas/run-budget.d.ts.map +1 -1
  40. package/lib/api-schemas/run-budget.js +0 -33
  41. package/lib/api-schemas/run-budget.js.map +1 -1
  42. package/lib/api-schemas/secrets.d.ts +0 -71
  43. package/lib/api-schemas/secrets.d.ts.map +1 -1
  44. package/lib/api-schemas/secrets.js +0 -73
  45. package/lib/api-schemas/secrets.js.map +1 -1
  46. package/lib/audit-trail.d.ts +14 -2
  47. package/lib/audit-trail.d.ts.map +1 -1
  48. package/lib/audit-trail.js +4 -0
  49. package/lib/audit-trail.js.map +1 -1
  50. package/lib/index.d.ts +1 -1
  51. package/lib/index.d.ts.map +1 -1
  52. package/lib/index.js.map +1 -1
  53. package/lib/platform-event.d.ts +0 -20
  54. package/lib/platform-event.d.ts.map +1 -1
  55. package/lib/run-budget.d.ts +0 -4
  56. package/lib/run-budget.d.ts.map +1 -1
  57. package/lib/secrets.d.ts +0 -10
  58. package/lib/secrets.d.ts.map +1 -1
  59. package/lib/user.d.ts +0 -1
  60. package/lib/user.d.ts.map +1 -1
  61. package/lib/vertesia-common.js +1 -1
  62. package/lib/vertesia-common.js.map +1 -1
  63. package/lib/wire-types.generated.d.ts +102 -105
  64. package/lib/wire-types.generated.d.ts.map +1 -1
  65. package/package.json +6 -6
  66. package/src/api-contract/components.generated.json +572 -403
  67. package/src/api-contract/engine.ts +644 -0
  68. package/src/api-contract/index.ts +32 -663
  69. package/src/api-contract/types.ts +108 -0
  70. package/src/api-schemas/account.ts +0 -8
  71. package/src/api-schemas/audit-trail.ts +169 -1
  72. package/src/api-schemas/cost-analytics.ts +8 -0
  73. package/src/api-schemas/group.ts +5 -0
  74. package/src/api-schemas/index.ts +1 -0
  75. package/src/api-schemas/registry.ts +41 -139
  76. package/src/api-schemas/run-budget.ts +0 -37
  77. package/src/api-schemas/secrets.ts +0 -84
  78. package/src/audit-trail.ts +17 -0
  79. package/src/index.ts +0 -4
  80. package/src/platform-event.ts +0 -25
  81. package/src/run-budget.ts +0 -4
  82. package/src/secrets.ts +0 -11
  83. package/src/user.ts +0 -2
  84. package/src/wire-types.generated.ts +103 -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": [
@@ -1013,6 +888,12 @@
1013
888
  "type": "string"
1014
889
  },
1015
890
  "description": "Projects this group is allowed to be used in. When empty or absent the group is org-wide (usable in any project). When set, the group may only be used to grant permissions in the listed projects."
891
+ },
892
+ "member_count": {
893
+ "type": "integer",
894
+ "minimum": -9007199254740991,
895
+ "maximum": 9007199254740991,
896
+ "description": "Number of users in the group. Returned by the group listing only."
1016
897
  }
1017
898
  },
1018
899
  "required": [
@@ -16246,6 +16127,554 @@
16246
16127
  "additionalProperties": false,
16247
16128
  "description": "Whether an API key is configured for an MCP tool collection"
16248
16129
  },
16130
+ "AuditAdoptionActiveDays": {
16131
+ "type": "object",
16132
+ "properties": {
16133
+ "days": {
16134
+ "type": "integer",
16135
+ "minimum": 1,
16136
+ "maximum": 367
16137
+ },
16138
+ "users": {
16139
+ "type": "integer",
16140
+ "minimum": 0,
16141
+ "maximum": 9007199254740991
16142
+ }
16143
+ },
16144
+ "required": [
16145
+ "days",
16146
+ "users"
16147
+ ],
16148
+ "additionalProperties": false
16149
+ },
16150
+ "AuditAdoptionBucket": {
16151
+ "type": "object",
16152
+ "properties": {
16153
+ "from": {
16154
+ "type": "string",
16155
+ "format": "date-time"
16156
+ },
16157
+ "to": {
16158
+ "type": "string",
16159
+ "format": "date-time"
16160
+ },
16161
+ "partial": {
16162
+ "type": "boolean"
16163
+ },
16164
+ "active_users": {
16165
+ "type": "integer",
16166
+ "minimum": 0,
16167
+ "maximum": 9007199254740991
16168
+ }
16169
+ },
16170
+ "required": [
16171
+ "from",
16172
+ "to",
16173
+ "partial",
16174
+ "active_users"
16175
+ ],
16176
+ "additionalProperties": false
16177
+ },
16178
+ "KnownAuditAction": {
16179
+ "type": "string",
16180
+ "enum": [
16181
+ "create",
16182
+ "update",
16183
+ "delete",
16184
+ "bulk_create",
16185
+ "bulk_change_type",
16186
+ "bulk_update",
16187
+ "bulk_delete",
16188
+ "attach",
16189
+ "detach",
16190
+ "credentials_fill",
16191
+ "credentials_totp_generation",
16192
+ "publish",
16193
+ "unpublish",
16194
+ "search",
16195
+ "read",
16196
+ "inference",
16197
+ "embedding",
16198
+ "image_generation",
16199
+ "document_processed"
16200
+ ]
16201
+ },
16202
+ "EventCategory": {
16203
+ "type": "string",
16204
+ "enum": [
16205
+ "content",
16206
+ "workflow",
16207
+ "security",
16208
+ "billing",
16209
+ "system",
16210
+ "external"
16211
+ ]
16212
+ },
16213
+ "AuditAction": {
16214
+ "anyOf": [
16215
+ {
16216
+ "$ref": "#/components/schemas/KnownAuditAction"
16217
+ },
16218
+ {
16219
+ "type": "string"
16220
+ }
16221
+ ]
16222
+ },
16223
+ "AuditAdoptionFilter": {
16224
+ "type": "object",
16225
+ "properties": {
16226
+ "actions": {
16227
+ "maxItems": 32,
16228
+ "type": "array",
16229
+ "items": {
16230
+ "$ref": "#/components/schemas/AuditAction"
16231
+ }
16232
+ },
16233
+ "resourceTypes": {
16234
+ "maxItems": 16,
16235
+ "type": "array",
16236
+ "items": {
16237
+ "type": "string",
16238
+ "maxLength": 128
16239
+ }
16240
+ },
16241
+ "eventCategories": {
16242
+ "maxItems": 6,
16243
+ "type": "array",
16244
+ "items": {
16245
+ "$ref": "#/components/schemas/EventCategory"
16246
+ }
16247
+ }
16248
+ },
16249
+ "additionalProperties": false
16250
+ },
16251
+ "AuditAdoptionHistory": {
16252
+ "type": "object",
16253
+ "properties": {
16254
+ "earliest_observed_at": {
16255
+ "anyOf": [
16256
+ {
16257
+ "type": "string",
16258
+ "format": "date-time"
16259
+ },
16260
+ {
16261
+ "type": "null"
16262
+ }
16263
+ ]
16264
+ },
16265
+ "coverage_from": {
16266
+ "anyOf": [
16267
+ {
16268
+ "type": "string",
16269
+ "format": "date-time",
16270
+ "description": "Authoritative complete-history boundary, if known. Earliest observation is not a coverage boundary."
16271
+ },
16272
+ {
16273
+ "type": "null"
16274
+ }
16275
+ ]
16276
+ },
16277
+ "completeness": {
16278
+ "type": "string",
16279
+ "enum": [
16280
+ "unknown",
16281
+ "insufficient",
16282
+ "verified"
16283
+ ]
16284
+ },
16285
+ "retention_unavailable_reason": {
16286
+ "anyOf": [
16287
+ {
16288
+ "type": "string",
16289
+ "enum": [
16290
+ "no_previous_users",
16291
+ "insufficient_history"
16292
+ ]
16293
+ },
16294
+ {
16295
+ "type": "null"
16296
+ }
16297
+ ]
16298
+ }
16299
+ },
16300
+ "required": [
16301
+ "earliest_observed_at",
16302
+ "coverage_from",
16303
+ "completeness",
16304
+ "retention_unavailable_reason"
16305
+ ],
16306
+ "additionalProperties": false
16307
+ },
16308
+ "AuditAdoptionPeriod": {
16309
+ "type": "object",
16310
+ "properties": {
16311
+ "from": {
16312
+ "type": "string",
16313
+ "format": "date-time"
16314
+ },
16315
+ "to": {
16316
+ "type": "string",
16317
+ "format": "date-time"
16318
+ }
16319
+ },
16320
+ "required": [
16321
+ "from",
16322
+ "to"
16323
+ ],
16324
+ "additionalProperties": false
16325
+ },
16326
+ "AuditAdoptionProject": {
16327
+ "type": "object",
16328
+ "properties": {
16329
+ "project_id": {
16330
+ "type": "string"
16331
+ },
16332
+ "project_name": {
16333
+ "anyOf": [
16334
+ {
16335
+ "type": "string"
16336
+ },
16337
+ {
16338
+ "type": "null"
16339
+ }
16340
+ ]
16341
+ },
16342
+ "active_users": {
16343
+ "type": "integer",
16344
+ "minimum": 0,
16345
+ "maximum": 9007199254740991
16346
+ },
16347
+ "active_user_days": {
16348
+ "type": "integer",
16349
+ "minimum": 0,
16350
+ "maximum": 9007199254740991
16351
+ }
16352
+ },
16353
+ "required": [
16354
+ "project_id",
16355
+ "project_name",
16356
+ "active_users",
16357
+ "active_user_days"
16358
+ ],
16359
+ "additionalProperties": false
16360
+ },
16361
+ "AuditAdoptionQuery": {
16362
+ "type": "object",
16363
+ "properties": {
16364
+ "projectId": {
16365
+ "type": "string"
16366
+ },
16367
+ "from": {
16368
+ "type": "string",
16369
+ "format": "date-time",
16370
+ "description": "Inclusive start; defaults to 30 days before to."
16371
+ },
16372
+ "to": {
16373
+ "type": "string",
16374
+ "format": "date-time",
16375
+ "description": "Exclusive end; defaults to now. Maximum duration: 366 days."
16376
+ },
16377
+ "filter": {
16378
+ "$ref": "#/components/schemas/AuditAdoptionFilter"
16379
+ }
16380
+ },
16381
+ "additionalProperties": false,
16382
+ "description": "Productive direct authenticated user activity, including user OAuth/MCP calls. Scope is enforced by the server."
16383
+ },
16384
+ "AuditAdoptionResponse": {
16385
+ "type": "object",
16386
+ "properties": {
16387
+ "period": {
16388
+ "$ref": "#/components/schemas/AuditAdoptionPeriod"
16389
+ },
16390
+ "previous_period": {
16391
+ "$ref": "#/components/schemas/AuditAdoptionPeriod"
16392
+ },
16393
+ "resolution": {
16394
+ "type": "string",
16395
+ "enum": [
16396
+ "day",
16397
+ "week"
16398
+ ]
16399
+ },
16400
+ "active_users": {
16401
+ "type": "integer",
16402
+ "minimum": 0,
16403
+ "maximum": 9007199254740991
16404
+ },
16405
+ "previous_active_users": {
16406
+ "type": "integer",
16407
+ "minimum": 0,
16408
+ "maximum": 9007199254740991
16409
+ },
16410
+ "retained_users": {
16411
+ "type": "integer",
16412
+ "minimum": 0,
16413
+ "maximum": 9007199254740991
16414
+ },
16415
+ "observed_retention": {
16416
+ "anyOf": [
16417
+ {
16418
+ "type": "number",
16419
+ "minimum": 0,
16420
+ "maximum": 1
16421
+ },
16422
+ {
16423
+ "type": "null"
16424
+ }
16425
+ ]
16426
+ },
16427
+ "returning_user_share": {
16428
+ "anyOf": [
16429
+ {
16430
+ "type": "number",
16431
+ "minimum": 0,
16432
+ "maximum": 1
16433
+ },
16434
+ {
16435
+ "type": "null"
16436
+ }
16437
+ ]
16438
+ },
16439
+ "repeat_user_share": {
16440
+ "anyOf": [
16441
+ {
16442
+ "type": "number",
16443
+ "minimum": 0,
16444
+ "maximum": 1
16445
+ },
16446
+ {
16447
+ "type": "null"
16448
+ }
16449
+ ]
16450
+ },
16451
+ "median_active_days": {
16452
+ "anyOf": [
16453
+ {
16454
+ "type": "number",
16455
+ "minimum": 0
16456
+ },
16457
+ {
16458
+ "type": "null"
16459
+ }
16460
+ ]
16461
+ },
16462
+ "active_projects": {
16463
+ "anyOf": [
16464
+ {
16465
+ "type": "integer",
16466
+ "minimum": 0,
16467
+ "maximum": 9007199254740991
16468
+ },
16469
+ {
16470
+ "type": "null"
16471
+ }
16472
+ ]
16473
+ },
16474
+ "timeline": {
16475
+ "type": "array",
16476
+ "items": {
16477
+ "$ref": "#/components/schemas/AuditAdoptionBucket"
16478
+ }
16479
+ },
16480
+ "active_day_distribution": {
16481
+ "type": "array",
16482
+ "items": {
16483
+ "$ref": "#/components/schemas/AuditAdoptionActiveDays"
16484
+ }
16485
+ },
16486
+ "top_projects": {
16487
+ "maxItems": 10,
16488
+ "type": "array",
16489
+ "items": {
16490
+ "$ref": "#/components/schemas/AuditAdoptionProject"
16491
+ }
16492
+ },
16493
+ "history": {
16494
+ "$ref": "#/components/schemas/AuditAdoptionHistory"
16495
+ }
16496
+ },
16497
+ "required": [
16498
+ "period",
16499
+ "previous_period",
16500
+ "resolution",
16501
+ "active_users",
16502
+ "previous_active_users",
16503
+ "retained_users",
16504
+ "observed_retention",
16505
+ "returning_user_share",
16506
+ "repeat_user_share",
16507
+ "median_active_days",
16508
+ "active_projects",
16509
+ "timeline",
16510
+ "active_day_distribution",
16511
+ "top_projects",
16512
+ "history"
16513
+ ],
16514
+ "additionalProperties": false,
16515
+ "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."
16516
+ },
16517
+ "AuditUsageQuery": {
16518
+ "type": "object",
16519
+ "properties": {
16520
+ "projectId": {
16521
+ "type": "string"
16522
+ },
16523
+ "from": {
16524
+ "type": "string",
16525
+ "format": "date-time",
16526
+ "description": "Inclusive start; defaults to 30 days before to."
16527
+ },
16528
+ "to": {
16529
+ "type": "string",
16530
+ "format": "date-time",
16531
+ "description": "Exclusive end; defaults to now. Maximum duration: 366 days."
16532
+ },
16533
+ "resolution": {
16534
+ "type": "string",
16535
+ "enum": [
16536
+ "day",
16537
+ "week",
16538
+ "month"
16539
+ ],
16540
+ "description": "UTC calendar buckets. Weeks start Monday. Omitted: daily up to 200 dates, otherwise weekly."
16541
+ }
16542
+ },
16543
+ "additionalProperties": false,
16544
+ "description": "Usage trends for an authorized account or project over a half-open interval of at most 366 days."
16545
+ },
16546
+ "AuditUsageCounts": {
16547
+ "type": "object",
16548
+ "properties": {
16549
+ "active_users": {
16550
+ "type": "integer",
16551
+ "minimum": 0,
16552
+ "maximum": 9007199254740991
16553
+ },
16554
+ "agent_runs": {
16555
+ "type": "integer",
16556
+ "minimum": 0,
16557
+ "maximum": 9007199254740991,
16558
+ "description": "All audited run creations and marked restarts, including automated runs."
16559
+ },
16560
+ "user_agent_runs": {
16561
+ "type": "integer",
16562
+ "minimum": 0,
16563
+ "maximum": 9007199254740991,
16564
+ "description": "Run operations initiated directly by authenticated users, including OAuth/MCP."
16565
+ },
16566
+ "automated_agent_runs": {
16567
+ "type": "integer",
16568
+ "minimum": 0,
16569
+ "maximum": 9007199254740991,
16570
+ "description": "Other run operations, including schedules, delegated agents, services and API keys."
16571
+ },
16572
+ "agent_users": {
16573
+ "type": "integer",
16574
+ "minimum": 0,
16575
+ "maximum": 9007199254740991,
16576
+ "description": "Distinct identifiable user initiators or owners of run operations, including scheduled and delegated runs."
16577
+ },
16578
+ "direct_calls": {
16579
+ "type": "integer",
16580
+ "minimum": 0,
16581
+ "maximum": 9007199254740991
16582
+ },
16583
+ "direct_call_users": {
16584
+ "type": "integer",
16585
+ "minimum": 0,
16586
+ "maximum": 9007199254740991
16587
+ },
16588
+ "content_objects": {
16589
+ "type": "integer",
16590
+ "minimum": 0,
16591
+ "maximum": 9007199254740991
16592
+ },
16593
+ "user_content_objects": {
16594
+ "type": "integer",
16595
+ "minimum": 0,
16596
+ "maximum": 9007199254740991
16597
+ },
16598
+ "other_content_objects": {
16599
+ "type": "integer",
16600
+ "minimum": 0,
16601
+ "maximum": 9007199254740991
16602
+ }
16603
+ },
16604
+ "required": [
16605
+ "active_users",
16606
+ "agent_runs",
16607
+ "user_agent_runs",
16608
+ "automated_agent_runs",
16609
+ "agent_users",
16610
+ "direct_calls",
16611
+ "direct_call_users",
16612
+ "content_objects",
16613
+ "user_content_objects",
16614
+ "other_content_objects"
16615
+ ],
16616
+ "additionalProperties": false,
16617
+ "description": "Direct productive users, run initiators/owners, all run operations and standalone inference audit events."
16618
+ },
16619
+ "AuditUsageBucket": {
16620
+ "type": "object",
16621
+ "properties": {
16622
+ "from": {
16623
+ "type": "string",
16624
+ "format": "date-time"
16625
+ },
16626
+ "to": {
16627
+ "type": "string",
16628
+ "format": "date-time"
16629
+ },
16630
+ "partial": {
16631
+ "type": "boolean"
16632
+ },
16633
+ "counts": {
16634
+ "$ref": "#/components/schemas/AuditUsageCounts"
16635
+ }
16636
+ },
16637
+ "required": [
16638
+ "from",
16639
+ "to",
16640
+ "partial",
16641
+ "counts"
16642
+ ],
16643
+ "additionalProperties": false
16644
+ },
16645
+ "AuditUsageResponse": {
16646
+ "type": "object",
16647
+ "properties": {
16648
+ "period": {
16649
+ "$ref": "#/components/schemas/AuditAdoptionPeriod"
16650
+ },
16651
+ "resolution": {
16652
+ "type": "string",
16653
+ "enum": [
16654
+ "day",
16655
+ "week",
16656
+ "month"
16657
+ ]
16658
+ },
16659
+ "totals": {
16660
+ "$ref": "#/components/schemas/AuditUsageCounts"
16661
+ },
16662
+ "timeline": {
16663
+ "type": "array",
16664
+ "items": {
16665
+ "$ref": "#/components/schemas/AuditUsageBucket"
16666
+ }
16667
+ }
16668
+ },
16669
+ "required": [
16670
+ "period",
16671
+ "resolution",
16672
+ "totals",
16673
+ "timeline"
16674
+ ],
16675
+ "additionalProperties": false,
16676
+ "description": "UTC usage trends. Period-wide distinct users are not sums of bucket populations. No user identities are returned."
16677
+ },
16249
16678
  "AuditMeter": {
16250
16679
  "type": "object",
16251
16680
  "properties": {
@@ -16267,39 +16696,6 @@
16267
16696
  "additionalProperties": false,
16268
16697
  "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
16698
  },
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
16699
  "AuditAggregationDimensionMap": {
16304
16700
  "type": "object",
16305
16701
  "properties": {
@@ -16383,6 +16779,17 @@
16383
16779
  }
16384
16780
  ]
16385
16781
  },
16782
+ "user_id": {
16783
+ "anyOf": [
16784
+ {
16785
+ "type": "string"
16786
+ },
16787
+ {
16788
+ "type": "null"
16789
+ }
16790
+ ],
16791
+ "description": "Originating user identity, including delegated and scheduled activity with a recorded user owner. Non-user principals without a user origin are excluded."
16792
+ },
16386
16793
  "details.pipeline": {
16387
16794
  "anyOf": [
16388
16795
  {
@@ -16442,7 +16849,8 @@
16442
16849
  "resource_id",
16443
16850
  "request_id",
16444
16851
  "principal_id",
16445
- "actor_id"
16852
+ "actor_id",
16853
+ "user_id"
16446
16854
  ]
16447
16855
  },
16448
16856
  "AuditAggregationOperation": {
@@ -16474,6 +16882,7 @@
16474
16882
  "project_id",
16475
16883
  "principal_id",
16476
16884
  "actor_id",
16885
+ "user_id",
16477
16886
  "details.pipeline",
16478
16887
  "details.verdict",
16479
16888
  "details.workflow_type",
@@ -16490,16 +16899,6 @@
16490
16899
  "rule_id"
16491
16900
  ]
16492
16901
  },
16493
- "AuditAction": {
16494
- "anyOf": [
16495
- {
16496
- "$ref": "#/components/schemas/KnownAuditAction"
16497
- },
16498
- {
16499
- "type": "string"
16500
- }
16501
- ]
16502
- },
16503
16902
  "AuditAggregationRow": {
16504
16903
  "type": "object",
16505
16904
  "properties": {
@@ -20893,240 +21292,6 @@
20893
21292
  }
20894
21293
  }
20895
21294
  },
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
21295
  "SupportedIntegrations_ask_user_webhook": {
21131
21296
  "type": "string",
21132
21297
  "const": "ask_user_webhook"
@@ -42560,6 +42725,10 @@
42560
42725
  "type": "string",
42561
42726
  "description": "Filter by agent run ID"
42562
42727
  },
42728
+ "agent_only": {
42729
+ "type": "boolean",
42730
+ "description": "Restrict usage to agent runs and their attributed nested/background inference. Excludes standalone interactions and non-agent workflows. Defaults to false."
42731
+ },
42563
42732
  "interaction_id": {
42564
42733
  "type": "string",
42565
42734
  "description": "Filter by interaction id: stored ObjectId or namespaced in-code id"