@sixb/client 0.1.12 → 0.1.13

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 +1019 -365
  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 +332 -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 +429 -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
@@ -5879,8 +5926,8 @@ export type ListWorkflowsResponses = {
5879
5926
  truncated?: true
5880
5927
  }
5881
5928
  requestedBy: {
5882
- principalType: "user" | "serviceAccount" | "system"
5883
- principalId: string
5929
+ type: "user" | "serviceAccount" | "system"
5930
+ id: string
5884
5931
  }
5885
5932
  } | null
5886
5933
  }>
@@ -6065,8 +6112,8 @@ export type GetWorkflowResponses = {
6065
6112
  truncated?: true
6066
6113
  }
6067
6114
  requestedBy: {
6068
- principalType: "user" | "serviceAccount" | "system"
6069
- principalId: string
6115
+ type: "user" | "serviceAccount" | "system"
6116
+ id: string
6070
6117
  }
6071
6118
  } | null
6072
6119
  }
@@ -6154,8 +6201,8 @@ export type ListWorkflowInterventionsResponses = {
6154
6201
  expiresAt?: string
6155
6202
  submittedAt?: string
6156
6203
  submittedBy?: {
6157
- principalType: "user" | "serviceAccount" | "system"
6158
- principalId: string
6204
+ type: "user" | "serviceAccount" | "system"
6205
+ id: string
6159
6206
  }
6160
6207
  response?: {
6161
6208
  [key: string]:
@@ -6170,8 +6217,8 @@ export type ListWorkflowInterventionsResponses = {
6170
6217
  }
6171
6218
  cancelledAt?: string
6172
6219
  cancelledBy?: {
6173
- principalType: "user" | "serviceAccount" | "system"
6174
- principalId: string
6220
+ type: "user" | "serviceAccount" | "system"
6221
+ id: string
6175
6222
  }
6176
6223
  expiredAt?: string
6177
6224
  }>
@@ -6257,8 +6304,8 @@ export type GetWorkflowInterventionResponses = {
6257
6304
  expiresAt?: string
6258
6305
  submittedAt?: string
6259
6306
  submittedBy?: {
6260
- principalType: "user" | "serviceAccount" | "system"
6261
- principalId: string
6307
+ type: "user" | "serviceAccount" | "system"
6308
+ id: string
6262
6309
  }
6263
6310
  response?: {
6264
6311
  [key: string]:
@@ -6273,8 +6320,8 @@ export type GetWorkflowInterventionResponses = {
6273
6320
  }
6274
6321
  cancelledAt?: string
6275
6322
  cancelledBy?: {
6276
- principalType: "user" | "serviceAccount" | "system"
6277
- principalId: string
6323
+ type: "user" | "serviceAccount" | "system"
6324
+ id: string
6278
6325
  }
6279
6326
  expiredAt?: string
6280
6327
  }
@@ -6370,8 +6417,8 @@ export type SubmitWorkflowInterventionResponses = {
6370
6417
  expiresAt?: string
6371
6418
  submittedAt?: string
6372
6419
  submittedBy?: {
6373
- principalType: "user" | "serviceAccount" | "system"
6374
- principalId: string
6420
+ type: "user" | "serviceAccount" | "system"
6421
+ id: string
6375
6422
  }
6376
6423
  response?: {
6377
6424
  [key: string]:
@@ -6386,8 +6433,8 @@ export type SubmitWorkflowInterventionResponses = {
6386
6433
  }
6387
6434
  cancelledAt?: string
6388
6435
  cancelledBy?: {
6389
- principalType: "user" | "serviceAccount" | "system"
6390
- principalId: string
6436
+ type: "user" | "serviceAccount" | "system"
6437
+ id: string
6391
6438
  }
6392
6439
  expiredAt?: string
6393
6440
  }
@@ -6475,8 +6522,8 @@ export type CancelWorkflowInterventionResponses = {
6475
6522
  expiresAt?: string
6476
6523
  submittedAt?: string
6477
6524
  submittedBy?: {
6478
- principalType: "user" | "serviceAccount" | "system"
6479
- principalId: string
6525
+ type: "user" | "serviceAccount" | "system"
6526
+ id: string
6480
6527
  }
6481
6528
  response?: {
6482
6529
  [key: string]:
@@ -6491,8 +6538,8 @@ export type CancelWorkflowInterventionResponses = {
6491
6538
  }
6492
6539
  cancelledAt?: string
6493
6540
  cancelledBy?: {
6494
- principalType: "user" | "serviceAccount" | "system"
6495
- principalId: string
6541
+ type: "user" | "serviceAccount" | "system"
6542
+ id: string
6496
6543
  }
6497
6544
  expiredAt?: string
6498
6545
  }
@@ -6574,8 +6621,8 @@ export type ListWorkflowRunsResponses = {
6574
6621
  truncated?: true
6575
6622
  }
6576
6623
  requestedBy: {
6577
- principalType: "user" | "serviceAccount" | "system"
6578
- principalId: string
6624
+ type: "user" | "serviceAccount" | "system"
6625
+ id: string
6579
6626
  }
6580
6627
  }>
6581
6628
  hasMore: boolean
@@ -6657,8 +6704,8 @@ export type GetWorkflowRunResponses = {
6657
6704
  truncated?: true
6658
6705
  }
6659
6706
  requestedBy: {
6660
- principalType: "user" | "serviceAccount" | "system"
6661
- principalId: string
6707
+ type: "user" | "serviceAccount" | "system"
6708
+ id: string
6662
6709
  }
6663
6710
  input: {
6664
6711
  [key: string]:
@@ -7145,8 +7192,8 @@ export type CancelWorkflowRunResponses = {
7145
7192
  truncated?: true
7146
7193
  }
7147
7194
  requestedBy: {
7148
- principalType: "user" | "serviceAccount" | "system"
7149
- principalId: string
7195
+ type: "user" | "serviceAccount" | "system"
7196
+ id: string
7150
7197
  }
7151
7198
  input: {
7152
7199
  [key: string]:
@@ -8301,6 +8348,15 @@ export type ListObjectTypesResponses = {
8301
8348
  facet?: boolean
8302
8349
  weight?: number
8303
8350
  }
8351
+ /**
8352
+ * What object queries accept for this property, resolved from its schema and query metadata.
8353
+ */
8354
+ capabilities: {
8355
+ operators: Array<"eq" | "neq" | "lt" | "lte" | "gt" | "gte" | "in" | "exists" | "contains">
8356
+ sortable: boolean
8357
+ facet: boolean
8358
+ text: boolean
8359
+ }
8304
8360
  }>
8305
8361
  search?: {
8306
8362
  title?: string
@@ -8416,6 +8472,15 @@ export type GetObjectTypeResponses = {
8416
8472
  facet?: boolean
8417
8473
  weight?: number
8418
8474
  }
8475
+ /**
8476
+ * What object queries accept for this property, resolved from its schema and query metadata.
8477
+ */
8478
+ capabilities: {
8479
+ operators: Array<"eq" | "neq" | "lt" | "lte" | "gt" | "gte" | "in" | "exists" | "contains">
8480
+ sortable: boolean
8481
+ facet: boolean
8482
+ text: boolean
8483
+ }
8419
8484
  }>
8420
8485
  search?: {
8421
8486
  title?: string
@@ -9168,6 +9233,12 @@ export type CreateFileUploadErrors = {
9168
9233
  400: {
9169
9234
  error: string
9170
9235
  }
9236
+ /**
9237
+ * Response for status 501
9238
+ */
9239
+ 501: {
9240
+ error: string
9241
+ }
9171
9242
  }
9172
9243
 
9173
9244
  export type CreateFileUploadError = CreateFileUploadErrors[keyof CreateFileUploadErrors]
@@ -9239,6 +9310,12 @@ export type UploadFileContentErrors = {
9239
9310
  410: {
9240
9311
  error: string
9241
9312
  }
9313
+ /**
9314
+ * Response for status 501
9315
+ */
9316
+ 501: {
9317
+ error: string
9318
+ }
9242
9319
  }
9243
9320
 
9244
9321
  export type UploadFileContentError = UploadFileContentErrors[keyof UploadFileContentErrors]
@@ -9289,6 +9366,12 @@ export type SignFileUploadPartErrors = {
9289
9366
  410: {
9290
9367
  error: string
9291
9368
  }
9369
+ /**
9370
+ * Response for status 501
9371
+ */
9372
+ 501: {
9373
+ error: string
9374
+ }
9292
9375
  }
9293
9376
 
9294
9377
  export type SignFileUploadPartError = SignFileUploadPartErrors[keyof SignFileUploadPartErrors]
@@ -9352,6 +9435,12 @@ export type CompleteFileUploadErrors = {
9352
9435
  410: {
9353
9436
  error: string
9354
9437
  }
9438
+ /**
9439
+ * Response for status 501
9440
+ */
9441
+ 501: {
9442
+ error: string
9443
+ }
9355
9444
  }
9356
9445
 
9357
9446
  export type CompleteFileUploadError = CompleteFileUploadErrors[keyof CompleteFileUploadErrors]
@@ -9407,6 +9496,12 @@ export type AbortFileUploadErrors = {
9407
9496
  410: {
9408
9497
  error: string
9409
9498
  }
9499
+ /**
9500
+ * Response for status 501
9501
+ */
9502
+ 501: {
9503
+ error: string
9504
+ }
9410
9505
  }
9411
9506
 
9412
9507
  export type AbortFileUploadError = AbortFileUploadErrors[keyof AbortFileUploadErrors]
@@ -9493,6 +9588,7 @@ export type ListActionRunsResponses = {
9493
9588
  | "runtime.cancelled"
9494
9589
  | "queue.enqueue_failed"
9495
9590
  | "action.phase_failed"
9591
+ | "action.read_conflict"
9496
9592
  message: string
9497
9593
  retryable: boolean
9498
9594
  at: string
@@ -9589,6 +9685,7 @@ export type GetActionRunResponses = {
9589
9685
  | "runtime.cancelled"
9590
9686
  | "queue.enqueue_failed"
9591
9687
  | "action.phase_failed"
9688
+ | "action.read_conflict"
9592
9689
  message: string
9593
9690
  retryable: boolean
9594
9691
  at: string
@@ -9638,6 +9735,7 @@ export type GetActionRunResponses = {
9638
9735
  | "runtime.cancelled"
9639
9736
  | "queue.enqueue_failed"
9640
9737
  | "action.phase_failed"
9738
+ | "action.read_conflict"
9641
9739
  message: string
9642
9740
  retryable: boolean
9643
9741
  at: string
@@ -9665,6 +9763,7 @@ export type GetActionRunResponses = {
9665
9763
  | "runtime.cancelled"
9666
9764
  | "queue.enqueue_failed"
9667
9765
  | "action.phase_failed"
9766
+ | "action.read_conflict"
9668
9767
  message: string
9669
9768
  retryable: boolean
9670
9769
  at: string
@@ -11803,10 +11902,6 @@ export type ListEventsResponses = {
11803
11902
  schemaVersion: 1
11804
11903
  projectId: string
11805
11904
  occurredAt: string
11806
- actor?: {
11807
- type: "user" | "serviceAccount" | "system"
11808
- id: string
11809
- }
11810
11905
  partitionKey: string
11811
11906
  origin:
11812
11907
  | {
@@ -11841,6 +11936,47 @@ export type ListEventsResponses = {
11841
11936
  batchOrdinal: number
11842
11937
  }
11843
11938
  }
11939
+ /**
11940
+ * Principal on whose behalf the write ran; absent for automatic or anonymous work.
11941
+ */
11942
+ requestedBy?: {
11943
+ type: "user" | "serviceAccount"
11944
+ id: string
11945
+ }
11946
+ executor:
11947
+ | {
11948
+ type: "request"
11949
+ requestId: string
11950
+ }
11951
+ | {
11952
+ type: "primitive"
11953
+ kind:
11954
+ | "action"
11955
+ | "pipeline"
11956
+ | "projection"
11957
+ | "rule"
11958
+ | "sync"
11959
+ | "webhook"
11960
+ | "workflow"
11961
+ id: string
11962
+ runId: string
11963
+ }
11964
+ | {
11965
+ type: "agent"
11966
+ runId: string
11967
+ }
11968
+ | {
11969
+ type: "kernel"
11970
+ operation:
11971
+ | {
11972
+ type: "ontology.recover"
11973
+ recoveryId: string
11974
+ }
11975
+ | {
11976
+ type: "ontology.indexVectors"
11977
+ indexingId: string
11978
+ }
11979
+ }
11844
11980
  commitId: string
11845
11981
  commitOrdinal: number
11846
11982
  type: "object.created"
@@ -11928,10 +12064,6 @@ export type ListEventsResponses = {
11928
12064
  schemaVersion: 1
11929
12065
  projectId: string
11930
12066
  occurredAt: string
11931
- actor?: {
11932
- type: "user" | "serviceAccount" | "system"
11933
- id: string
11934
- }
11935
12067
  partitionKey: string
11936
12068
  origin:
11937
12069
  | {
@@ -11966,6 +12098,47 @@ export type ListEventsResponses = {
11966
12098
  batchOrdinal: number
11967
12099
  }
11968
12100
  }
12101
+ /**
12102
+ * Principal on whose behalf the write ran; absent for automatic or anonymous work.
12103
+ */
12104
+ requestedBy?: {
12105
+ type: "user" | "serviceAccount"
12106
+ id: string
12107
+ }
12108
+ executor:
12109
+ | {
12110
+ type: "request"
12111
+ requestId: string
12112
+ }
12113
+ | {
12114
+ type: "primitive"
12115
+ kind:
12116
+ | "action"
12117
+ | "pipeline"
12118
+ | "projection"
12119
+ | "rule"
12120
+ | "sync"
12121
+ | "webhook"
12122
+ | "workflow"
12123
+ id: string
12124
+ runId: string
12125
+ }
12126
+ | {
12127
+ type: "agent"
12128
+ runId: string
12129
+ }
12130
+ | {
12131
+ type: "kernel"
12132
+ operation:
12133
+ | {
12134
+ type: "ontology.recover"
12135
+ recoveryId: string
12136
+ }
12137
+ | {
12138
+ type: "ontology.indexVectors"
12139
+ indexingId: string
12140
+ }
12141
+ }
11969
12142
  commitId: string
11970
12143
  commitOrdinal: number
11971
12144
  type: "object.updated"
@@ -12053,10 +12226,6 @@ export type ListEventsResponses = {
12053
12226
  schemaVersion: 1
12054
12227
  projectId: string
12055
12228
  occurredAt: string
12056
- actor?: {
12057
- type: "user" | "serviceAccount" | "system"
12058
- id: string
12059
- }
12060
12229
  partitionKey: string
12061
12230
  origin:
12062
12231
  | {
@@ -12091,6 +12260,47 @@ export type ListEventsResponses = {
12091
12260
  batchOrdinal: number
12092
12261
  }
12093
12262
  }
12263
+ /**
12264
+ * Principal on whose behalf the write ran; absent for automatic or anonymous work.
12265
+ */
12266
+ requestedBy?: {
12267
+ type: "user" | "serviceAccount"
12268
+ id: string
12269
+ }
12270
+ executor:
12271
+ | {
12272
+ type: "request"
12273
+ requestId: string
12274
+ }
12275
+ | {
12276
+ type: "primitive"
12277
+ kind:
12278
+ | "action"
12279
+ | "pipeline"
12280
+ | "projection"
12281
+ | "rule"
12282
+ | "sync"
12283
+ | "webhook"
12284
+ | "workflow"
12285
+ id: string
12286
+ runId: string
12287
+ }
12288
+ | {
12289
+ type: "agent"
12290
+ runId: string
12291
+ }
12292
+ | {
12293
+ type: "kernel"
12294
+ operation:
12295
+ | {
12296
+ type: "ontology.recover"
12297
+ recoveryId: string
12298
+ }
12299
+ | {
12300
+ type: "ontology.indexVectors"
12301
+ indexingId: string
12302
+ }
12303
+ }
12094
12304
  commitId: string
12095
12305
  commitOrdinal: number
12096
12306
  type: "object.deleted"
@@ -12167,10 +12377,6 @@ export type ListEventsResponses = {
12167
12377
  schemaVersion: 1
12168
12378
  projectId: string
12169
12379
  occurredAt: string
12170
- actor?: {
12171
- type: "user" | "serviceAccount" | "system"
12172
- id: string
12173
- }
12174
12380
  partitionKey: string
12175
12381
  origin:
12176
12382
  | {
@@ -12205,6 +12411,47 @@ export type ListEventsResponses = {
12205
12411
  batchOrdinal: number
12206
12412
  }
12207
12413
  }
12414
+ /**
12415
+ * Principal on whose behalf the write ran; absent for automatic or anonymous work.
12416
+ */
12417
+ requestedBy?: {
12418
+ type: "user" | "serviceAccount"
12419
+ id: string
12420
+ }
12421
+ executor:
12422
+ | {
12423
+ type: "request"
12424
+ requestId: string
12425
+ }
12426
+ | {
12427
+ type: "primitive"
12428
+ kind:
12429
+ | "action"
12430
+ | "pipeline"
12431
+ | "projection"
12432
+ | "rule"
12433
+ | "sync"
12434
+ | "webhook"
12435
+ | "workflow"
12436
+ id: string
12437
+ runId: string
12438
+ }
12439
+ | {
12440
+ type: "agent"
12441
+ runId: string
12442
+ }
12443
+ | {
12444
+ type: "kernel"
12445
+ operation:
12446
+ | {
12447
+ type: "ontology.recover"
12448
+ recoveryId: string
12449
+ }
12450
+ | {
12451
+ type: "ontology.indexVectors"
12452
+ indexingId: string
12453
+ }
12454
+ }
12208
12455
  commitId: string
12209
12456
  commitOrdinal: number
12210
12457
  type: "telemetry.appended"
@@ -12235,10 +12482,6 @@ export type ListEventsResponses = {
12235
12482
  schemaVersion: 1
12236
12483
  projectId: string
12237
12484
  occurredAt: string
12238
- actor?: {
12239
- type: "user" | "serviceAccount" | "system"
12240
- id: string
12241
- }
12242
12485
  partitionKey: string
12243
12486
  origin:
12244
12487
  | {
@@ -12273,6 +12516,47 @@ export type ListEventsResponses = {
12273
12516
  batchOrdinal: number
12274
12517
  }
12275
12518
  }
12519
+ /**
12520
+ * Principal on whose behalf the write ran; absent for automatic or anonymous work.
12521
+ */
12522
+ requestedBy?: {
12523
+ type: "user" | "serviceAccount"
12524
+ id: string
12525
+ }
12526
+ executor:
12527
+ | {
12528
+ type: "request"
12529
+ requestId: string
12530
+ }
12531
+ | {
12532
+ type: "primitive"
12533
+ kind:
12534
+ | "action"
12535
+ | "pipeline"
12536
+ | "projection"
12537
+ | "rule"
12538
+ | "sync"
12539
+ | "webhook"
12540
+ | "workflow"
12541
+ id: string
12542
+ runId: string
12543
+ }
12544
+ | {
12545
+ type: "agent"
12546
+ runId: string
12547
+ }
12548
+ | {
12549
+ type: "kernel"
12550
+ operation:
12551
+ | {
12552
+ type: "ontology.recover"
12553
+ recoveryId: string
12554
+ }
12555
+ | {
12556
+ type: "ontology.indexVectors"
12557
+ indexingId: string
12558
+ }
12559
+ }
12276
12560
  commitId: string
12277
12561
  commitOrdinal: number
12278
12562
  type: "link.created"
@@ -12363,10 +12647,6 @@ export type ListEventsResponses = {
12363
12647
  schemaVersion: 1
12364
12648
  projectId: string
12365
12649
  occurredAt: string
12366
- actor?: {
12367
- type: "user" | "serviceAccount" | "system"
12368
- id: string
12369
- }
12370
12650
  partitionKey: string
12371
12651
  origin:
12372
12652
  | {
@@ -12401,6 +12681,47 @@ export type ListEventsResponses = {
12401
12681
  batchOrdinal: number
12402
12682
  }
12403
12683
  }
12684
+ /**
12685
+ * Principal on whose behalf the write ran; absent for automatic or anonymous work.
12686
+ */
12687
+ requestedBy?: {
12688
+ type: "user" | "serviceAccount"
12689
+ id: string
12690
+ }
12691
+ executor:
12692
+ | {
12693
+ type: "request"
12694
+ requestId: string
12695
+ }
12696
+ | {
12697
+ type: "primitive"
12698
+ kind:
12699
+ | "action"
12700
+ | "pipeline"
12701
+ | "projection"
12702
+ | "rule"
12703
+ | "sync"
12704
+ | "webhook"
12705
+ | "workflow"
12706
+ id: string
12707
+ runId: string
12708
+ }
12709
+ | {
12710
+ type: "agent"
12711
+ runId: string
12712
+ }
12713
+ | {
12714
+ type: "kernel"
12715
+ operation:
12716
+ | {
12717
+ type: "ontology.recover"
12718
+ recoveryId: string
12719
+ }
12720
+ | {
12721
+ type: "ontology.indexVectors"
12722
+ indexingId: string
12723
+ }
12724
+ }
12404
12725
  commitId: string
12405
12726
  commitOrdinal: number
12406
12727
  type: "link.updated"
@@ -12491,10 +12812,6 @@ export type ListEventsResponses = {
12491
12812
  schemaVersion: 1
12492
12813
  projectId: string
12493
12814
  occurredAt: string
12494
- actor?: {
12495
- type: "user" | "serviceAccount" | "system"
12496
- id: string
12497
- }
12498
12815
  partitionKey: string
12499
12816
  origin:
12500
12817
  | {
@@ -12529,6 +12846,47 @@ export type ListEventsResponses = {
12529
12846
  batchOrdinal: number
12530
12847
  }
12531
12848
  }
12849
+ /**
12850
+ * Principal on whose behalf the write ran; absent for automatic or anonymous work.
12851
+ */
12852
+ requestedBy?: {
12853
+ type: "user" | "serviceAccount"
12854
+ id: string
12855
+ }
12856
+ executor:
12857
+ | {
12858
+ type: "request"
12859
+ requestId: string
12860
+ }
12861
+ | {
12862
+ type: "primitive"
12863
+ kind:
12864
+ | "action"
12865
+ | "pipeline"
12866
+ | "projection"
12867
+ | "rule"
12868
+ | "sync"
12869
+ | "webhook"
12870
+ | "workflow"
12871
+ id: string
12872
+ runId: string
12873
+ }
12874
+ | {
12875
+ type: "agent"
12876
+ runId: string
12877
+ }
12878
+ | {
12879
+ type: "kernel"
12880
+ operation:
12881
+ | {
12882
+ type: "ontology.recover"
12883
+ recoveryId: string
12884
+ }
12885
+ | {
12886
+ type: "ontology.indexVectors"
12887
+ indexingId: string
12888
+ }
12889
+ }
12532
12890
  commitId: string
12533
12891
  commitOrdinal: number
12534
12892
  type: "link.deleted"
@@ -12608,10 +12966,6 @@ export type ListEventsResponses = {
12608
12966
  schemaVersion: 1
12609
12967
  projectId: string
12610
12968
  occurredAt: string
12611
- actor?: {
12612
- type: "user" | "serviceAccount" | "system"
12613
- id: string
12614
- }
12615
12969
  partitionKey: string
12616
12970
  correlationId?: string
12617
12971
  causationId?: string