@sixb/client 0.1.12 → 0.1.14

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 (98) hide show
  1. package/dist/agent-streams.d.ts +7 -2
  2. package/dist/agent-streams.d.ts.map +1 -1
  3. package/dist/api.d.ts +8 -1
  4. package/dist/api.d.ts.map +1 -1
  5. package/dist/base-url.d.ts +2 -0
  6. package/dist/base-url.d.ts.map +1 -0
  7. package/dist/browser.js +7 -7
  8. package/dist/browser.js.map +3 -3
  9. package/dist/{chunk-sjb188se.js → chunk-1d0xnr6p.js} +38 -7
  10. package/dist/chunk-1d0xnr6p.js.map +10 -0
  11. package/dist/{chunk-bsy1hg20.js → chunk-50rkzhcy.js} +23 -30
  12. package/dist/chunk-50rkzhcy.js.map +10 -0
  13. package/dist/{chunk-hx3n4fer.js → chunk-6k1hzwk1.js} +13 -11
  14. package/dist/chunk-6k1hzwk1.js.map +17 -0
  15. package/dist/{chunk-e8qjsvha.js → chunk-hdgztpzs.js} +364 -71
  16. package/dist/chunk-hdgztpzs.js.map +19 -0
  17. package/dist/{chunk-tyym13kq.js → chunk-jh4ts8mt.js} +3 -1
  18. package/dist/chunk-jh4ts8mt.js.map +10 -0
  19. package/dist/{chunk-kh20z2mt.js → chunk-nkx0fxxn.js} +2 -2
  20. package/dist/chunk-nkx0fxxn.js.map +10 -0
  21. package/dist/{chunk-t50n91tk.js → chunk-tgyh8wz9.js} +7 -6
  22. package/dist/chunk-tgyh8wz9.js.map +12 -0
  23. package/dist/chunk-ys86w6hc.js +277 -0
  24. package/dist/chunk-ys86w6hc.js.map +12 -0
  25. package/dist/client-authority.d.ts +4 -0
  26. package/dist/client-authority.d.ts.map +1 -1
  27. package/dist/connectors/queries.d.ts.map +1 -1
  28. package/dist/events-builder.d.ts +2 -2
  29. package/dist/events-builder.d.ts.map +1 -1
  30. package/dist/events-transport.d.ts +4 -1
  31. package/dist/events-transport.d.ts.map +1 -1
  32. package/dist/generated/@tanstack/react-query.gen.d.ts +934 -341
  33. package/dist/generated/@tanstack/react-query.gen.d.ts.map +1 -1
  34. package/dist/generated/index.d.ts +2 -2
  35. package/dist/generated/index.d.ts.map +1 -1
  36. package/dist/generated/sdk.gen.d.ts +5 -1
  37. package/dist/generated/sdk.gen.d.ts.map +1 -1
  38. package/dist/generated/types.gen.d.ts +336 -79
  39. package/dist/generated/types.gen.d.ts.map +1 -1
  40. package/dist/hooks.js +29 -12
  41. package/dist/hooks.js.map +6 -6
  42. package/dist/index.d.ts +2 -0
  43. package/dist/index.d.ts.map +1 -1
  44. package/dist/index.js +21 -10
  45. package/dist/index.js.map +1 -1
  46. package/dist/logs-builder.d.ts +1 -1
  47. package/dist/logs-builder.d.ts.map +1 -1
  48. package/dist/logs-transport.d.ts +4 -1
  49. package/dist/logs-transport.d.ts.map +1 -1
  50. package/dist/logs.js +4 -4
  51. package/dist/models.d.ts +2 -1
  52. package/dist/models.d.ts.map +1 -1
  53. package/dist/models.js +5 -3
  54. package/dist/models.js.map +1 -1
  55. package/dist/query-hooks.d.ts +3 -21
  56. package/dist/query-hooks.d.ts.map +1 -1
  57. package/dist/query.d.ts +2 -4
  58. package/dist/query.d.ts.map +1 -1
  59. package/dist/query.js +4 -4
  60. package/dist/session.d.ts +56 -0
  61. package/dist/session.d.ts.map +1 -0
  62. package/dist/useAgentActivityStream.d.ts +3 -0
  63. package/dist/useAgentActivityStream.d.ts.map +1 -1
  64. package/dist/useAgentRunStream.d.ts +4 -1
  65. package/dist/useAgentRunStream.d.ts.map +1 -1
  66. package/dist/ws-socket.d.ts +3 -0
  67. package/dist/ws-socket.d.ts.map +1 -1
  68. package/package.json +2 -2
  69. package/src/agent-streams.ts +11 -4
  70. package/src/api.ts +37 -32
  71. package/src/base-url.ts +30 -0
  72. package/src/browser.ts +1 -1
  73. package/src/client-authority.ts +19 -0
  74. package/src/events-builder.ts +5 -9
  75. package/src/events-transport.ts +6 -2
  76. package/src/generated/@tanstack/react-query.gen.ts +31 -0
  77. package/src/generated/index.ts +6 -0
  78. package/src/generated/sdk.gen.ts +376 -69
  79. package/src/generated/types.gen.ts +433 -75
  80. package/src/index.ts +13 -1
  81. package/src/logs-builder.ts +2 -2
  82. package/src/logs-transport.ts +6 -2
  83. package/src/models.ts +4 -2
  84. package/src/query-hooks.ts +2 -17
  85. package/src/query.ts +6 -11
  86. package/src/session.ts +316 -0
  87. package/src/useAgentActivityStream.ts +6 -2
  88. package/src/useAgentRunStream.ts +7 -3
  89. package/src/ws-socket.ts +62 -5
  90. package/dist/chunk-65zz479s.js +0 -23
  91. package/dist/chunk-65zz479s.js.map +0 -10
  92. package/dist/chunk-bsy1hg20.js.map +0 -10
  93. package/dist/chunk-e8qjsvha.js.map +0 -19
  94. package/dist/chunk-hx3n4fer.js.map +0 -17
  95. package/dist/chunk-kh20z2mt.js.map +0 -10
  96. package/dist/chunk-sjb188se.js.map +0 -10
  97. package/dist/chunk-t50n91tk.js.map +0 -12
  98. package/dist/chunk-tyym13kq.js.map +0 -10
@@ -292,8 +292,6 @@ export type ObjectQuerySortField =
292
292
  export type CreateDeviceAuthorizationData = {
293
293
  body: {
294
294
  clientName: string
295
- tokenName: string
296
- expiresIn?: "90d"
297
295
  }
298
296
  path?: never
299
297
  query?: never
@@ -353,14 +351,50 @@ export type ExchangeDeviceAuthorizationResponses = {
353
351
  status: "expired"
354
352
  }
355
353
  | {
356
- status: "approved"
357
354
  accessToken: string
355
+ refreshToken: string
356
+ expiresIn: number
357
+ status: "approved"
358
358
  }
359
359
  }
360
360
 
361
361
  export type ExchangeDeviceAuthorizationResponse =
362
362
  ExchangeDeviceAuthorizationResponses[keyof ExchangeDeviceAuthorizationResponses]
363
363
 
364
+ export type RefreshAuthSessionData = {
365
+ body: {
366
+ refreshToken: string
367
+ }
368
+ path?: never
369
+ query?: never
370
+ url: "/api/auth/refresh"
371
+ }
372
+
373
+ export type RefreshAuthSessionErrors = {
374
+ /**
375
+ * Response for status 401
376
+ */
377
+ 401: {
378
+ error: string
379
+ }
380
+ }
381
+
382
+ export type RefreshAuthSessionError = RefreshAuthSessionErrors[keyof RefreshAuthSessionErrors]
383
+
384
+ export type RefreshAuthSessionResponses = {
385
+ /**
386
+ * Response for status 200
387
+ */
388
+ 200: {
389
+ accessToken: string
390
+ refreshToken: string
391
+ expiresIn: number
392
+ }
393
+ }
394
+
395
+ export type RefreshAuthSessionResponse =
396
+ RefreshAuthSessionResponses[keyof RefreshAuthSessionResponses]
397
+
364
398
  export type GetAuthSessionData = {
365
399
  body?: never
366
400
  path?: never
@@ -378,7 +412,7 @@ export type GetAuthSessionResponses = {
378
412
  }
379
413
  | {
380
414
  authenticated: true
381
- csrfToken: string
415
+ csrfToken?: string
382
416
  applicationAccess: {
383
417
  allowed: boolean
384
418
  audience: "atlas" | "app"
@@ -453,13 +487,14 @@ export type ListAuthSessionsResponses = {
453
487
  200: {
454
488
  sessions: Array<{
455
489
  id: string
456
- audience: "atlas" | "app"
490
+ audience?: "atlas" | "app"
457
491
  current: boolean
458
492
  createdAt: string
459
493
  expiresAt: string
460
494
  lastSeenAt?: string
461
495
  userAgent?: string
462
496
  ipAddress?: string
497
+ clientName?: string
463
498
  }>
464
499
  }
465
500
  }
@@ -620,8 +655,10 @@ export type ListAuthAccessTokensResponses = {
620
655
  name: string
621
656
  kind: "personal" | "serviceAccount"
622
657
  status: "active" | "expired" | "revoked"
623
- subjectType: "user" | "serviceAccount"
624
- subjectId: string
658
+ subject: {
659
+ type: "user" | "serviceAccount"
660
+ id: string
661
+ }
625
662
  subjectLabel?: string
626
663
  groupIds?: Array<string>
627
664
  createdAt: string
@@ -688,8 +725,10 @@ export type CreateAuthPersonalAccessTokenResponses = {
688
725
  name: string
689
726
  kind: "personal" | "serviceAccount"
690
727
  status: "active" | "expired" | "revoked"
691
- subjectType: "user" | "serviceAccount"
692
- subjectId: string
728
+ subject: {
729
+ type: "user" | "serviceAccount"
730
+ id: string
731
+ }
693
732
  subjectLabel?: string
694
733
  groupIds?: Array<string>
695
734
  createdAt: string
@@ -755,8 +794,10 @@ export type RevokeAuthAccessTokenResponses = {
755
794
  name: string
756
795
  kind: "personal" | "serviceAccount"
757
796
  status: "active" | "expired" | "revoked"
758
- subjectType: "user" | "serviceAccount"
759
- subjectId: string
797
+ subject: {
798
+ type: "user" | "serviceAccount"
799
+ id: string
800
+ }
760
801
  subjectLabel?: string
761
802
  groupIds?: Array<string>
762
803
  createdAt: string
@@ -993,8 +1034,10 @@ export type ListAuthServiceAccountAccessTokensResponses = {
993
1034
  name: string
994
1035
  kind: "personal" | "serviceAccount"
995
1036
  status: "active" | "expired" | "revoked"
996
- subjectType: "user" | "serviceAccount"
997
- subjectId: string
1037
+ subject: {
1038
+ type: "user" | "serviceAccount"
1039
+ id: string
1040
+ }
998
1041
  subjectLabel?: string
999
1042
  groupIds?: Array<string>
1000
1043
  createdAt: string
@@ -1069,8 +1112,10 @@ export type CreateAuthServiceAccountAccessTokenResponses = {
1069
1112
  name: string
1070
1113
  kind: "personal" | "serviceAccount"
1071
1114
  status: "active" | "expired" | "revoked"
1072
- subjectType: "user" | "serviceAccount"
1073
- subjectId: string
1115
+ subject: {
1116
+ type: "user" | "serviceAccount"
1117
+ id: string
1118
+ }
1074
1119
  subjectLabel?: string
1075
1120
  groupIds?: Array<string>
1076
1121
  createdAt: string
@@ -1137,8 +1182,10 @@ export type RevokeAuthServiceAccountAccessTokenResponses = {
1137
1182
  name: string
1138
1183
  kind: "personal" | "serviceAccount"
1139
1184
  status: "active" | "expired" | "revoked"
1140
- subjectType: "user" | "serviceAccount"
1141
- subjectId: string
1185
+ subject: {
1186
+ type: "user" | "serviceAccount"
1187
+ id: string
1188
+ }
1142
1189
  subjectLabel?: string
1143
1190
  groupIds?: Array<string>
1144
1191
  createdAt: string
@@ -1529,6 +1576,7 @@ export type ListAuthMembersResponses = {
1529
1576
  updatedAt: string
1530
1577
  }
1531
1578
  groupIds: Array<string>
1579
+ managedGroupIds: Array<string>
1532
1580
  capabilities: {
1533
1581
  assignGroups: boolean
1534
1582
  suspend: boolean
@@ -1605,6 +1653,7 @@ export type UpdateAuthMemberGroupsResponses = {
1605
1653
  updatedAt: string
1606
1654
  }
1607
1655
  groupIds: Array<string>
1656
+ managedGroupIds: Array<string>
1608
1657
  }
1609
1658
  }
1610
1659
  }
@@ -1666,6 +1715,7 @@ export type SuspendAuthMemberResponses = {
1666
1715
  updatedAt: string
1667
1716
  }
1668
1717
  groupIds: Array<string>
1718
+ managedGroupIds: Array<string>
1669
1719
  }
1670
1720
  }
1671
1721
  }
@@ -1726,6 +1776,7 @@ export type ReactivateAuthMemberResponses = {
1726
1776
  updatedAt: string
1727
1777
  }
1728
1778
  groupIds: Array<string>
1779
+ managedGroupIds: Array<string>
1729
1780
  }
1730
1781
  }
1731
1782
  }
@@ -5879,8 +5930,8 @@ export type ListWorkflowsResponses = {
5879
5930
  truncated?: true
5880
5931
  }
5881
5932
  requestedBy: {
5882
- principalType: "user" | "serviceAccount" | "system"
5883
- principalId: string
5933
+ type: "user" | "serviceAccount" | "system"
5934
+ id: string
5884
5935
  }
5885
5936
  } | null
5886
5937
  }>
@@ -6065,8 +6116,8 @@ export type GetWorkflowResponses = {
6065
6116
  truncated?: true
6066
6117
  }
6067
6118
  requestedBy: {
6068
- principalType: "user" | "serviceAccount" | "system"
6069
- principalId: string
6119
+ type: "user" | "serviceAccount" | "system"
6120
+ id: string
6070
6121
  }
6071
6122
  } | null
6072
6123
  }
@@ -6154,8 +6205,8 @@ export type ListWorkflowInterventionsResponses = {
6154
6205
  expiresAt?: string
6155
6206
  submittedAt?: string
6156
6207
  submittedBy?: {
6157
- principalType: "user" | "serviceAccount" | "system"
6158
- principalId: string
6208
+ type: "user" | "serviceAccount" | "system"
6209
+ id: string
6159
6210
  }
6160
6211
  response?: {
6161
6212
  [key: string]:
@@ -6170,8 +6221,8 @@ export type ListWorkflowInterventionsResponses = {
6170
6221
  }
6171
6222
  cancelledAt?: string
6172
6223
  cancelledBy?: {
6173
- principalType: "user" | "serviceAccount" | "system"
6174
- principalId: string
6224
+ type: "user" | "serviceAccount" | "system"
6225
+ id: string
6175
6226
  }
6176
6227
  expiredAt?: string
6177
6228
  }>
@@ -6257,8 +6308,8 @@ export type GetWorkflowInterventionResponses = {
6257
6308
  expiresAt?: string
6258
6309
  submittedAt?: string
6259
6310
  submittedBy?: {
6260
- principalType: "user" | "serviceAccount" | "system"
6261
- principalId: string
6311
+ type: "user" | "serviceAccount" | "system"
6312
+ id: string
6262
6313
  }
6263
6314
  response?: {
6264
6315
  [key: string]:
@@ -6273,8 +6324,8 @@ export type GetWorkflowInterventionResponses = {
6273
6324
  }
6274
6325
  cancelledAt?: string
6275
6326
  cancelledBy?: {
6276
- principalType: "user" | "serviceAccount" | "system"
6277
- principalId: string
6327
+ type: "user" | "serviceAccount" | "system"
6328
+ id: string
6278
6329
  }
6279
6330
  expiredAt?: string
6280
6331
  }
@@ -6370,8 +6421,8 @@ export type SubmitWorkflowInterventionResponses = {
6370
6421
  expiresAt?: string
6371
6422
  submittedAt?: string
6372
6423
  submittedBy?: {
6373
- principalType: "user" | "serviceAccount" | "system"
6374
- principalId: string
6424
+ type: "user" | "serviceAccount" | "system"
6425
+ id: string
6375
6426
  }
6376
6427
  response?: {
6377
6428
  [key: string]:
@@ -6386,8 +6437,8 @@ export type SubmitWorkflowInterventionResponses = {
6386
6437
  }
6387
6438
  cancelledAt?: string
6388
6439
  cancelledBy?: {
6389
- principalType: "user" | "serviceAccount" | "system"
6390
- principalId: string
6440
+ type: "user" | "serviceAccount" | "system"
6441
+ id: string
6391
6442
  }
6392
6443
  expiredAt?: string
6393
6444
  }
@@ -6475,8 +6526,8 @@ export type CancelWorkflowInterventionResponses = {
6475
6526
  expiresAt?: string
6476
6527
  submittedAt?: string
6477
6528
  submittedBy?: {
6478
- principalType: "user" | "serviceAccount" | "system"
6479
- principalId: string
6529
+ type: "user" | "serviceAccount" | "system"
6530
+ id: string
6480
6531
  }
6481
6532
  response?: {
6482
6533
  [key: string]:
@@ -6491,8 +6542,8 @@ export type CancelWorkflowInterventionResponses = {
6491
6542
  }
6492
6543
  cancelledAt?: string
6493
6544
  cancelledBy?: {
6494
- principalType: "user" | "serviceAccount" | "system"
6495
- principalId: string
6545
+ type: "user" | "serviceAccount" | "system"
6546
+ id: string
6496
6547
  }
6497
6548
  expiredAt?: string
6498
6549
  }
@@ -6574,8 +6625,8 @@ export type ListWorkflowRunsResponses = {
6574
6625
  truncated?: true
6575
6626
  }
6576
6627
  requestedBy: {
6577
- principalType: "user" | "serviceAccount" | "system"
6578
- principalId: string
6628
+ type: "user" | "serviceAccount" | "system"
6629
+ id: string
6579
6630
  }
6580
6631
  }>
6581
6632
  hasMore: boolean
@@ -6657,8 +6708,8 @@ export type GetWorkflowRunResponses = {
6657
6708
  truncated?: true
6658
6709
  }
6659
6710
  requestedBy: {
6660
- principalType: "user" | "serviceAccount" | "system"
6661
- principalId: string
6711
+ type: "user" | "serviceAccount" | "system"
6712
+ id: string
6662
6713
  }
6663
6714
  input: {
6664
6715
  [key: string]:
@@ -7145,8 +7196,8 @@ export type CancelWorkflowRunResponses = {
7145
7196
  truncated?: true
7146
7197
  }
7147
7198
  requestedBy: {
7148
- principalType: "user" | "serviceAccount" | "system"
7149
- principalId: string
7199
+ type: "user" | "serviceAccount" | "system"
7200
+ id: string
7150
7201
  }
7151
7202
  input: {
7152
7203
  [key: string]:
@@ -8301,6 +8352,15 @@ export type ListObjectTypesResponses = {
8301
8352
  facet?: boolean
8302
8353
  weight?: number
8303
8354
  }
8355
+ /**
8356
+ * What object queries accept for this property, resolved from its schema and query metadata.
8357
+ */
8358
+ capabilities: {
8359
+ operators: Array<"eq" | "neq" | "lt" | "lte" | "gt" | "gte" | "in" | "exists" | "contains">
8360
+ sortable: boolean
8361
+ facet: boolean
8362
+ text: boolean
8363
+ }
8304
8364
  }>
8305
8365
  search?: {
8306
8366
  title?: string
@@ -8416,6 +8476,15 @@ export type GetObjectTypeResponses = {
8416
8476
  facet?: boolean
8417
8477
  weight?: number
8418
8478
  }
8479
+ /**
8480
+ * What object queries accept for this property, resolved from its schema and query metadata.
8481
+ */
8482
+ capabilities: {
8483
+ operators: Array<"eq" | "neq" | "lt" | "lte" | "gt" | "gte" | "in" | "exists" | "contains">
8484
+ sortable: boolean
8485
+ facet: boolean
8486
+ text: boolean
8487
+ }
8419
8488
  }>
8420
8489
  search?: {
8421
8490
  title?: string
@@ -9168,6 +9237,12 @@ export type CreateFileUploadErrors = {
9168
9237
  400: {
9169
9238
  error: string
9170
9239
  }
9240
+ /**
9241
+ * Response for status 501
9242
+ */
9243
+ 501: {
9244
+ error: string
9245
+ }
9171
9246
  }
9172
9247
 
9173
9248
  export type CreateFileUploadError = CreateFileUploadErrors[keyof CreateFileUploadErrors]
@@ -9239,6 +9314,12 @@ export type UploadFileContentErrors = {
9239
9314
  410: {
9240
9315
  error: string
9241
9316
  }
9317
+ /**
9318
+ * Response for status 501
9319
+ */
9320
+ 501: {
9321
+ error: string
9322
+ }
9242
9323
  }
9243
9324
 
9244
9325
  export type UploadFileContentError = UploadFileContentErrors[keyof UploadFileContentErrors]
@@ -9289,6 +9370,12 @@ export type SignFileUploadPartErrors = {
9289
9370
  410: {
9290
9371
  error: string
9291
9372
  }
9373
+ /**
9374
+ * Response for status 501
9375
+ */
9376
+ 501: {
9377
+ error: string
9378
+ }
9292
9379
  }
9293
9380
 
9294
9381
  export type SignFileUploadPartError = SignFileUploadPartErrors[keyof SignFileUploadPartErrors]
@@ -9352,6 +9439,12 @@ export type CompleteFileUploadErrors = {
9352
9439
  410: {
9353
9440
  error: string
9354
9441
  }
9442
+ /**
9443
+ * Response for status 501
9444
+ */
9445
+ 501: {
9446
+ error: string
9447
+ }
9355
9448
  }
9356
9449
 
9357
9450
  export type CompleteFileUploadError = CompleteFileUploadErrors[keyof CompleteFileUploadErrors]
@@ -9407,6 +9500,12 @@ export type AbortFileUploadErrors = {
9407
9500
  410: {
9408
9501
  error: string
9409
9502
  }
9503
+ /**
9504
+ * Response for status 501
9505
+ */
9506
+ 501: {
9507
+ error: string
9508
+ }
9410
9509
  }
9411
9510
 
9412
9511
  export type AbortFileUploadError = AbortFileUploadErrors[keyof AbortFileUploadErrors]
@@ -9493,6 +9592,7 @@ export type ListActionRunsResponses = {
9493
9592
  | "runtime.cancelled"
9494
9593
  | "queue.enqueue_failed"
9495
9594
  | "action.phase_failed"
9595
+ | "action.read_conflict"
9496
9596
  message: string
9497
9597
  retryable: boolean
9498
9598
  at: string
@@ -9589,6 +9689,7 @@ export type GetActionRunResponses = {
9589
9689
  | "runtime.cancelled"
9590
9690
  | "queue.enqueue_failed"
9591
9691
  | "action.phase_failed"
9692
+ | "action.read_conflict"
9592
9693
  message: string
9593
9694
  retryable: boolean
9594
9695
  at: string
@@ -9638,6 +9739,7 @@ export type GetActionRunResponses = {
9638
9739
  | "runtime.cancelled"
9639
9740
  | "queue.enqueue_failed"
9640
9741
  | "action.phase_failed"
9742
+ | "action.read_conflict"
9641
9743
  message: string
9642
9744
  retryable: boolean
9643
9745
  at: string
@@ -9665,6 +9767,7 @@ export type GetActionRunResponses = {
9665
9767
  | "runtime.cancelled"
9666
9768
  | "queue.enqueue_failed"
9667
9769
  | "action.phase_failed"
9770
+ | "action.read_conflict"
9668
9771
  message: string
9669
9772
  retryable: boolean
9670
9773
  at: string
@@ -11803,10 +11906,6 @@ export type ListEventsResponses = {
11803
11906
  schemaVersion: 1
11804
11907
  projectId: string
11805
11908
  occurredAt: string
11806
- actor?: {
11807
- type: "user" | "serviceAccount" | "system"
11808
- id: string
11809
- }
11810
11909
  partitionKey: string
11811
11910
  origin:
11812
11911
  | {
@@ -11841,6 +11940,47 @@ export type ListEventsResponses = {
11841
11940
  batchOrdinal: number
11842
11941
  }
11843
11942
  }
11943
+ /**
11944
+ * Principal on whose behalf the write ran; absent for automatic or anonymous work.
11945
+ */
11946
+ requestedBy?: {
11947
+ type: "user" | "serviceAccount"
11948
+ id: string
11949
+ }
11950
+ executor:
11951
+ | {
11952
+ type: "request"
11953
+ requestId: string
11954
+ }
11955
+ | {
11956
+ type: "primitive"
11957
+ kind:
11958
+ | "action"
11959
+ | "pipeline"
11960
+ | "projection"
11961
+ | "rule"
11962
+ | "sync"
11963
+ | "webhook"
11964
+ | "workflow"
11965
+ id: string
11966
+ runId: string
11967
+ }
11968
+ | {
11969
+ type: "agent"
11970
+ runId: string
11971
+ }
11972
+ | {
11973
+ type: "kernel"
11974
+ operation:
11975
+ | {
11976
+ type: "ontology.recover"
11977
+ recoveryId: string
11978
+ }
11979
+ | {
11980
+ type: "ontology.indexVectors"
11981
+ indexingId: string
11982
+ }
11983
+ }
11844
11984
  commitId: string
11845
11985
  commitOrdinal: number
11846
11986
  type: "object.created"
@@ -11928,10 +12068,6 @@ export type ListEventsResponses = {
11928
12068
  schemaVersion: 1
11929
12069
  projectId: string
11930
12070
  occurredAt: string
11931
- actor?: {
11932
- type: "user" | "serviceAccount" | "system"
11933
- id: string
11934
- }
11935
12071
  partitionKey: string
11936
12072
  origin:
11937
12073
  | {
@@ -11966,6 +12102,47 @@ export type ListEventsResponses = {
11966
12102
  batchOrdinal: number
11967
12103
  }
11968
12104
  }
12105
+ /**
12106
+ * Principal on whose behalf the write ran; absent for automatic or anonymous work.
12107
+ */
12108
+ requestedBy?: {
12109
+ type: "user" | "serviceAccount"
12110
+ id: string
12111
+ }
12112
+ executor:
12113
+ | {
12114
+ type: "request"
12115
+ requestId: string
12116
+ }
12117
+ | {
12118
+ type: "primitive"
12119
+ kind:
12120
+ | "action"
12121
+ | "pipeline"
12122
+ | "projection"
12123
+ | "rule"
12124
+ | "sync"
12125
+ | "webhook"
12126
+ | "workflow"
12127
+ id: string
12128
+ runId: string
12129
+ }
12130
+ | {
12131
+ type: "agent"
12132
+ runId: string
12133
+ }
12134
+ | {
12135
+ type: "kernel"
12136
+ operation:
12137
+ | {
12138
+ type: "ontology.recover"
12139
+ recoveryId: string
12140
+ }
12141
+ | {
12142
+ type: "ontology.indexVectors"
12143
+ indexingId: string
12144
+ }
12145
+ }
11969
12146
  commitId: string
11970
12147
  commitOrdinal: number
11971
12148
  type: "object.updated"
@@ -12053,10 +12230,6 @@ export type ListEventsResponses = {
12053
12230
  schemaVersion: 1
12054
12231
  projectId: string
12055
12232
  occurredAt: string
12056
- actor?: {
12057
- type: "user" | "serviceAccount" | "system"
12058
- id: string
12059
- }
12060
12233
  partitionKey: string
12061
12234
  origin:
12062
12235
  | {
@@ -12091,6 +12264,47 @@ export type ListEventsResponses = {
12091
12264
  batchOrdinal: number
12092
12265
  }
12093
12266
  }
12267
+ /**
12268
+ * Principal on whose behalf the write ran; absent for automatic or anonymous work.
12269
+ */
12270
+ requestedBy?: {
12271
+ type: "user" | "serviceAccount"
12272
+ id: string
12273
+ }
12274
+ executor:
12275
+ | {
12276
+ type: "request"
12277
+ requestId: string
12278
+ }
12279
+ | {
12280
+ type: "primitive"
12281
+ kind:
12282
+ | "action"
12283
+ | "pipeline"
12284
+ | "projection"
12285
+ | "rule"
12286
+ | "sync"
12287
+ | "webhook"
12288
+ | "workflow"
12289
+ id: string
12290
+ runId: string
12291
+ }
12292
+ | {
12293
+ type: "agent"
12294
+ runId: string
12295
+ }
12296
+ | {
12297
+ type: "kernel"
12298
+ operation:
12299
+ | {
12300
+ type: "ontology.recover"
12301
+ recoveryId: string
12302
+ }
12303
+ | {
12304
+ type: "ontology.indexVectors"
12305
+ indexingId: string
12306
+ }
12307
+ }
12094
12308
  commitId: string
12095
12309
  commitOrdinal: number
12096
12310
  type: "object.deleted"
@@ -12167,10 +12381,6 @@ export type ListEventsResponses = {
12167
12381
  schemaVersion: 1
12168
12382
  projectId: string
12169
12383
  occurredAt: string
12170
- actor?: {
12171
- type: "user" | "serviceAccount" | "system"
12172
- id: string
12173
- }
12174
12384
  partitionKey: string
12175
12385
  origin:
12176
12386
  | {
@@ -12205,6 +12415,47 @@ export type ListEventsResponses = {
12205
12415
  batchOrdinal: number
12206
12416
  }
12207
12417
  }
12418
+ /**
12419
+ * Principal on whose behalf the write ran; absent for automatic or anonymous work.
12420
+ */
12421
+ requestedBy?: {
12422
+ type: "user" | "serviceAccount"
12423
+ id: string
12424
+ }
12425
+ executor:
12426
+ | {
12427
+ type: "request"
12428
+ requestId: string
12429
+ }
12430
+ | {
12431
+ type: "primitive"
12432
+ kind:
12433
+ | "action"
12434
+ | "pipeline"
12435
+ | "projection"
12436
+ | "rule"
12437
+ | "sync"
12438
+ | "webhook"
12439
+ | "workflow"
12440
+ id: string
12441
+ runId: string
12442
+ }
12443
+ | {
12444
+ type: "agent"
12445
+ runId: string
12446
+ }
12447
+ | {
12448
+ type: "kernel"
12449
+ operation:
12450
+ | {
12451
+ type: "ontology.recover"
12452
+ recoveryId: string
12453
+ }
12454
+ | {
12455
+ type: "ontology.indexVectors"
12456
+ indexingId: string
12457
+ }
12458
+ }
12208
12459
  commitId: string
12209
12460
  commitOrdinal: number
12210
12461
  type: "telemetry.appended"
@@ -12235,10 +12486,6 @@ export type ListEventsResponses = {
12235
12486
  schemaVersion: 1
12236
12487
  projectId: string
12237
12488
  occurredAt: string
12238
- actor?: {
12239
- type: "user" | "serviceAccount" | "system"
12240
- id: string
12241
- }
12242
12489
  partitionKey: string
12243
12490
  origin:
12244
12491
  | {
@@ -12273,6 +12520,47 @@ export type ListEventsResponses = {
12273
12520
  batchOrdinal: number
12274
12521
  }
12275
12522
  }
12523
+ /**
12524
+ * Principal on whose behalf the write ran; absent for automatic or anonymous work.
12525
+ */
12526
+ requestedBy?: {
12527
+ type: "user" | "serviceAccount"
12528
+ id: string
12529
+ }
12530
+ executor:
12531
+ | {
12532
+ type: "request"
12533
+ requestId: string
12534
+ }
12535
+ | {
12536
+ type: "primitive"
12537
+ kind:
12538
+ | "action"
12539
+ | "pipeline"
12540
+ | "projection"
12541
+ | "rule"
12542
+ | "sync"
12543
+ | "webhook"
12544
+ | "workflow"
12545
+ id: string
12546
+ runId: string
12547
+ }
12548
+ | {
12549
+ type: "agent"
12550
+ runId: string
12551
+ }
12552
+ | {
12553
+ type: "kernel"
12554
+ operation:
12555
+ | {
12556
+ type: "ontology.recover"
12557
+ recoveryId: string
12558
+ }
12559
+ | {
12560
+ type: "ontology.indexVectors"
12561
+ indexingId: string
12562
+ }
12563
+ }
12276
12564
  commitId: string
12277
12565
  commitOrdinal: number
12278
12566
  type: "link.created"
@@ -12363,10 +12651,6 @@ export type ListEventsResponses = {
12363
12651
  schemaVersion: 1
12364
12652
  projectId: string
12365
12653
  occurredAt: string
12366
- actor?: {
12367
- type: "user" | "serviceAccount" | "system"
12368
- id: string
12369
- }
12370
12654
  partitionKey: string
12371
12655
  origin:
12372
12656
  | {
@@ -12401,6 +12685,47 @@ export type ListEventsResponses = {
12401
12685
  batchOrdinal: number
12402
12686
  }
12403
12687
  }
12688
+ /**
12689
+ * Principal on whose behalf the write ran; absent for automatic or anonymous work.
12690
+ */
12691
+ requestedBy?: {
12692
+ type: "user" | "serviceAccount"
12693
+ id: string
12694
+ }
12695
+ executor:
12696
+ | {
12697
+ type: "request"
12698
+ requestId: string
12699
+ }
12700
+ | {
12701
+ type: "primitive"
12702
+ kind:
12703
+ | "action"
12704
+ | "pipeline"
12705
+ | "projection"
12706
+ | "rule"
12707
+ | "sync"
12708
+ | "webhook"
12709
+ | "workflow"
12710
+ id: string
12711
+ runId: string
12712
+ }
12713
+ | {
12714
+ type: "agent"
12715
+ runId: string
12716
+ }
12717
+ | {
12718
+ type: "kernel"
12719
+ operation:
12720
+ | {
12721
+ type: "ontology.recover"
12722
+ recoveryId: string
12723
+ }
12724
+ | {
12725
+ type: "ontology.indexVectors"
12726
+ indexingId: string
12727
+ }
12728
+ }
12404
12729
  commitId: string
12405
12730
  commitOrdinal: number
12406
12731
  type: "link.updated"
@@ -12491,10 +12816,6 @@ export type ListEventsResponses = {
12491
12816
  schemaVersion: 1
12492
12817
  projectId: string
12493
12818
  occurredAt: string
12494
- actor?: {
12495
- type: "user" | "serviceAccount" | "system"
12496
- id: string
12497
- }
12498
12819
  partitionKey: string
12499
12820
  origin:
12500
12821
  | {
@@ -12529,6 +12850,47 @@ export type ListEventsResponses = {
12529
12850
  batchOrdinal: number
12530
12851
  }
12531
12852
  }
12853
+ /**
12854
+ * Principal on whose behalf the write ran; absent for automatic or anonymous work.
12855
+ */
12856
+ requestedBy?: {
12857
+ type: "user" | "serviceAccount"
12858
+ id: string
12859
+ }
12860
+ executor:
12861
+ | {
12862
+ type: "request"
12863
+ requestId: string
12864
+ }
12865
+ | {
12866
+ type: "primitive"
12867
+ kind:
12868
+ | "action"
12869
+ | "pipeline"
12870
+ | "projection"
12871
+ | "rule"
12872
+ | "sync"
12873
+ | "webhook"
12874
+ | "workflow"
12875
+ id: string
12876
+ runId: string
12877
+ }
12878
+ | {
12879
+ type: "agent"
12880
+ runId: string
12881
+ }
12882
+ | {
12883
+ type: "kernel"
12884
+ operation:
12885
+ | {
12886
+ type: "ontology.recover"
12887
+ recoveryId: string
12888
+ }
12889
+ | {
12890
+ type: "ontology.indexVectors"
12891
+ indexingId: string
12892
+ }
12893
+ }
12532
12894
  commitId: string
12533
12895
  commitOrdinal: number
12534
12896
  type: "link.deleted"
@@ -12608,10 +12970,6 @@ export type ListEventsResponses = {
12608
12970
  schemaVersion: 1
12609
12971
  projectId: string
12610
12972
  occurredAt: string
12611
- actor?: {
12612
- type: "user" | "serviceAccount" | "system"
12613
- id: string
12614
- }
12615
12973
  partitionKey: string
12616
12974
  correlationId?: string
12617
12975
  causationId?: string