@openagentpack/sdk 0.4.0 → 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,12 +1,12 @@
1
1
  import { z } from 'zod';
2
2
 
3
3
  declare const ResourceTypeSchema: z.ZodEnum<{
4
- agent: "agent";
5
4
  file: "file";
6
5
  memory_store: "memory_store";
7
6
  environment: "environment";
8
7
  vault: "vault";
9
8
  skill: "skill";
9
+ agent: "agent";
10
10
  template: "template";
11
11
  deployment: "deployment";
12
12
  identity: "identity";
@@ -15,12 +15,12 @@ declare const ResourceTypeSchema: z.ZodEnum<{
15
15
  type ResourceType = z.infer<typeof ResourceTypeSchema>;
16
16
  declare const ResourceAddressSchema: z.ZodObject<{
17
17
  type: z.ZodEnum<{
18
- agent: "agent";
19
18
  file: "file";
20
19
  memory_store: "memory_store";
21
20
  environment: "environment";
22
21
  vault: "vault";
23
22
  skill: "skill";
23
+ agent: "agent";
24
24
  template: "template";
25
25
  deployment: "deployment";
26
26
  identity: "identity";
@@ -46,12 +46,12 @@ declare const DiagnosticSchema: z.ZodObject<{
46
46
  message: z.ZodString;
47
47
  resource: z.ZodOptional<z.ZodObject<{
48
48
  type: z.ZodEnum<{
49
- agent: "agent";
50
49
  file: "file";
51
50
  memory_store: "memory_store";
52
51
  environment: "environment";
53
52
  vault: "vault";
54
53
  skill: "skill";
54
+ agent: "agent";
55
55
  template: "template";
56
56
  deployment: "deployment";
57
57
  identity: "identity";
@@ -91,12 +91,12 @@ declare const PlannedActionSchema: z.ZodObject<{
91
91
  }>;
92
92
  address: z.ZodObject<{
93
93
  type: z.ZodEnum<{
94
- agent: "agent";
95
94
  file: "file";
96
95
  memory_store: "memory_store";
97
96
  environment: "environment";
98
97
  vault: "vault";
99
98
  skill: "skill";
99
+ agent: "agent";
100
100
  template: "template";
101
101
  deployment: "deployment";
102
102
  identity: "identity";
@@ -107,12 +107,12 @@ declare const PlannedActionSchema: z.ZodObject<{
107
107
  }, z.core.$strip>;
108
108
  previousAddress: z.ZodOptional<z.ZodObject<{
109
109
  type: z.ZodEnum<{
110
- agent: "agent";
111
110
  file: "file";
112
111
  memory_store: "memory_store";
113
112
  environment: "environment";
114
113
  vault: "vault";
115
114
  skill: "skill";
115
+ agent: "agent";
116
116
  template: "template";
117
117
  deployment: "deployment";
118
118
  identity: "identity";
@@ -138,12 +138,12 @@ declare const PlannedActionSchema: z.ZodObject<{
138
138
  after: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
139
139
  dependencies: z.ZodArray<z.ZodObject<{
140
140
  type: z.ZodEnum<{
141
- agent: "agent";
142
141
  file: "file";
143
142
  memory_store: "memory_store";
144
143
  environment: "environment";
145
144
  vault: "vault";
146
145
  skill: "skill";
146
+ agent: "agent";
147
147
  template: "template";
148
148
  deployment: "deployment";
149
149
  identity: "identity";
@@ -155,8 +155,8 @@ declare const PlannedActionSchema: z.ZodObject<{
155
155
  }, z.core.$strip>;
156
156
  type PlannedAction = z.infer<typeof PlannedActionSchema>;
157
157
  declare const AgentReadinessStatusSchema: z.ZodEnum<{
158
- ready: "ready";
159
158
  error: "error";
159
+ ready: "ready";
160
160
  missing: "missing";
161
161
  creating: "creating";
162
162
  updating: "updating";
@@ -203,8 +203,8 @@ declare const AgentDefinitionSchema: z.ZodObject<{
203
203
  type AgentDefinition = z.infer<typeof AgentDefinitionSchema>;
204
204
  declare const AgentReadinessSchema: z.ZodObject<{
205
205
  status: z.ZodEnum<{
206
- ready: "ready";
207
206
  error: "error";
207
+ ready: "ready";
208
208
  missing: "missing";
209
209
  creating: "creating";
210
210
  updating: "updating";
@@ -227,12 +227,12 @@ declare const AgentReadinessSchema: z.ZodObject<{
227
227
  message: z.ZodString;
228
228
  resource: z.ZodOptional<z.ZodObject<{
229
229
  type: z.ZodEnum<{
230
- agent: "agent";
231
230
  file: "file";
232
231
  memory_store: "memory_store";
233
232
  environment: "environment";
234
233
  vault: "vault";
235
234
  skill: "skill";
235
+ agent: "agent";
236
236
  template: "template";
237
237
  deployment: "deployment";
238
238
  identity: "identity";
@@ -244,12 +244,12 @@ declare const AgentReadinessSchema: z.ZodObject<{
244
244
  }, z.core.$strip>>;
245
245
  missing: z.ZodArray<z.ZodObject<{
246
246
  type: z.ZodEnum<{
247
- agent: "agent";
248
247
  file: "file";
249
248
  memory_store: "memory_store";
250
249
  environment: "environment";
251
250
  vault: "vault";
252
251
  skill: "skill";
252
+ agent: "agent";
253
253
  template: "template";
254
254
  deployment: "deployment";
255
255
  identity: "identity";
@@ -267,12 +267,12 @@ declare const AgentReadinessSchema: z.ZodObject<{
267
267
  }>;
268
268
  address: z.ZodObject<{
269
269
  type: z.ZodEnum<{
270
- agent: "agent";
271
270
  file: "file";
272
271
  memory_store: "memory_store";
273
272
  environment: "environment";
274
273
  vault: "vault";
275
274
  skill: "skill";
275
+ agent: "agent";
276
276
  template: "template";
277
277
  deployment: "deployment";
278
278
  identity: "identity";
@@ -283,12 +283,12 @@ declare const AgentReadinessSchema: z.ZodObject<{
283
283
  }, z.core.$strip>;
284
284
  previousAddress: z.ZodOptional<z.ZodObject<{
285
285
  type: z.ZodEnum<{
286
- agent: "agent";
287
286
  file: "file";
288
287
  memory_store: "memory_store";
289
288
  environment: "environment";
290
289
  vault: "vault";
291
290
  skill: "skill";
291
+ agent: "agent";
292
292
  template: "template";
293
293
  deployment: "deployment";
294
294
  identity: "identity";
@@ -314,12 +314,12 @@ declare const AgentReadinessSchema: z.ZodObject<{
314
314
  after: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
315
315
  dependencies: z.ZodArray<z.ZodObject<{
316
316
  type: z.ZodEnum<{
317
- agent: "agent";
318
317
  file: "file";
319
318
  memory_store: "memory_store";
320
319
  environment: "environment";
321
320
  vault: "vault";
322
321
  skill: "skill";
322
+ agent: "agent";
323
323
  template: "template";
324
324
  deployment: "deployment";
325
325
  identity: "identity";
@@ -353,8 +353,8 @@ declare const AgentWithReadinessSchema: z.ZodObject<{
353
353
  }, z.core.$strip>;
354
354
  readiness: z.ZodObject<{
355
355
  status: z.ZodEnum<{
356
- ready: "ready";
357
356
  error: "error";
357
+ ready: "ready";
358
358
  missing: "missing";
359
359
  creating: "creating";
360
360
  updating: "updating";
@@ -377,12 +377,12 @@ declare const AgentWithReadinessSchema: z.ZodObject<{
377
377
  message: z.ZodString;
378
378
  resource: z.ZodOptional<z.ZodObject<{
379
379
  type: z.ZodEnum<{
380
- agent: "agent";
381
380
  file: "file";
382
381
  memory_store: "memory_store";
383
382
  environment: "environment";
384
383
  vault: "vault";
385
384
  skill: "skill";
385
+ agent: "agent";
386
386
  template: "template";
387
387
  deployment: "deployment";
388
388
  identity: "identity";
@@ -394,12 +394,12 @@ declare const AgentWithReadinessSchema: z.ZodObject<{
394
394
  }, z.core.$strip>>;
395
395
  missing: z.ZodArray<z.ZodObject<{
396
396
  type: z.ZodEnum<{
397
- agent: "agent";
398
397
  file: "file";
399
398
  memory_store: "memory_store";
400
399
  environment: "environment";
401
400
  vault: "vault";
402
401
  skill: "skill";
402
+ agent: "agent";
403
403
  template: "template";
404
404
  deployment: "deployment";
405
405
  identity: "identity";
@@ -417,12 +417,12 @@ declare const AgentWithReadinessSchema: z.ZodObject<{
417
417
  }>;
418
418
  address: z.ZodObject<{
419
419
  type: z.ZodEnum<{
420
- agent: "agent";
421
420
  file: "file";
422
421
  memory_store: "memory_store";
423
422
  environment: "environment";
424
423
  vault: "vault";
425
424
  skill: "skill";
425
+ agent: "agent";
426
426
  template: "template";
427
427
  deployment: "deployment";
428
428
  identity: "identity";
@@ -433,12 +433,12 @@ declare const AgentWithReadinessSchema: z.ZodObject<{
433
433
  }, z.core.$strip>;
434
434
  previousAddress: z.ZodOptional<z.ZodObject<{
435
435
  type: z.ZodEnum<{
436
- agent: "agent";
437
436
  file: "file";
438
437
  memory_store: "memory_store";
439
438
  environment: "environment";
440
439
  vault: "vault";
441
440
  skill: "skill";
441
+ agent: "agent";
442
442
  template: "template";
443
443
  deployment: "deployment";
444
444
  identity: "identity";
@@ -464,12 +464,12 @@ declare const AgentWithReadinessSchema: z.ZodObject<{
464
464
  after: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
465
465
  dependencies: z.ZodArray<z.ZodObject<{
466
466
  type: z.ZodEnum<{
467
- agent: "agent";
468
467
  file: "file";
469
468
  memory_store: "memory_store";
470
469
  environment: "environment";
471
470
  vault: "vault";
472
471
  skill: "skill";
472
+ agent: "agent";
473
473
  template: "template";
474
474
  deployment: "deployment";
475
475
  identity: "identity";
@@ -505,6 +505,7 @@ declare const CloudAgentSchema: z.ZodObject<{
505
505
  created_at: z.ZodOptional<z.ZodString>;
506
506
  updated_at: z.ZodOptional<z.ZodString>;
507
507
  archived_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
508
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
508
509
  }, z.core.$strip>;
509
510
  type CloudAgent = z.infer<typeof CloudAgentSchema>;
510
511
  declare const ListCloudAgentsResponseSchema: z.ZodObject<{
@@ -524,6 +525,7 @@ declare const ListCloudAgentsResponseSchema: z.ZodObject<{
524
525
  created_at: z.ZodOptional<z.ZodString>;
525
526
  updated_at: z.ZodOptional<z.ZodString>;
526
527
  archived_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
528
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
527
529
  }, z.core.$strip>>;
528
530
  }, z.core.$strip>;
529
531
  type ListCloudAgentsResponse = z.infer<typeof ListCloudAgentsResponseSchema>;
@@ -540,6 +542,7 @@ declare const CloudEnvironmentSchema: z.ZodObject<{
540
542
  created_at: z.ZodOptional<z.ZodString>;
541
543
  updated_at: z.ZodOptional<z.ZodString>;
542
544
  archived_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
545
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
543
546
  }, z.core.$strip>;
544
547
  type CloudEnvironment = z.infer<typeof CloudEnvironmentSchema>;
545
548
  declare const ListCloudEnvironmentsResponseSchema: z.ZodObject<{
@@ -556,6 +559,7 @@ declare const ListCloudEnvironmentsResponseSchema: z.ZodObject<{
556
559
  created_at: z.ZodOptional<z.ZodString>;
557
560
  updated_at: z.ZodOptional<z.ZodString>;
558
561
  archived_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
562
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
559
563
  }, z.core.$strip>>;
560
564
  }, z.core.$strip>;
561
565
  type ListCloudEnvironmentsResponse = z.infer<typeof ListCloudEnvironmentsResponseSchema>;
@@ -567,24 +571,32 @@ declare const CloudVaultSchema: z.ZodObject<{
567
571
  created_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
568
572
  updated_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
569
573
  archived_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
574
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
570
575
  }, z.core.$strip>;
571
576
  type CloudVault = z.infer<typeof CloudVaultSchema>;
572
577
  declare const SessionEventTypeSchema: z.ZodEnum<{
573
- status: "status";
574
578
  error: "error";
575
579
  message: "message";
576
580
  unknown: "unknown";
581
+ status: "status";
577
582
  thinking: "thinking";
578
583
  tool_use: "tool_use";
579
584
  tool_result: "tool_result";
580
585
  }>;
581
586
  type SessionEventType = z.infer<typeof SessionEventTypeSchema>;
582
587
  declare const AgentSyncStatusSchema: z.ZodEnum<{
583
- failed: "failed";
584
588
  completed: "completed";
585
589
  blocked: "blocked";
590
+ failed: "failed";
586
591
  }>;
587
592
  type AgentSyncStatus = z.infer<typeof AgentSyncStatusSchema>;
593
+ declare const AgentSyncReasonSchema: z.ZodEnum<{
594
+ destructive_blocked: "destructive_blocked";
595
+ cancelled: "cancelled";
596
+ diagnostic_error: "diagnostic_error";
597
+ plan_stale: "plan_stale";
598
+ }>;
599
+ type AgentSyncReason = z.infer<typeof AgentSyncReasonSchema>;
588
600
  declare const AgentSyncResultSchema: z.ZodObject<{
589
601
  action: z.ZodObject<{
590
602
  action: z.ZodEnum<{
@@ -595,12 +607,12 @@ declare const AgentSyncResultSchema: z.ZodObject<{
595
607
  }>;
596
608
  address: z.ZodObject<{
597
609
  type: z.ZodEnum<{
598
- agent: "agent";
599
610
  file: "file";
600
611
  memory_store: "memory_store";
601
612
  environment: "environment";
602
613
  vault: "vault";
603
614
  skill: "skill";
615
+ agent: "agent";
604
616
  template: "template";
605
617
  deployment: "deployment";
606
618
  identity: "identity";
@@ -611,12 +623,12 @@ declare const AgentSyncResultSchema: z.ZodObject<{
611
623
  }, z.core.$strip>;
612
624
  previousAddress: z.ZodOptional<z.ZodObject<{
613
625
  type: z.ZodEnum<{
614
- agent: "agent";
615
626
  file: "file";
616
627
  memory_store: "memory_store";
617
628
  environment: "environment";
618
629
  vault: "vault";
619
630
  skill: "skill";
631
+ agent: "agent";
620
632
  template: "template";
621
633
  deployment: "deployment";
622
634
  identity: "identity";
@@ -642,12 +654,12 @@ declare const AgentSyncResultSchema: z.ZodObject<{
642
654
  after: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
643
655
  dependencies: z.ZodArray<z.ZodObject<{
644
656
  type: z.ZodEnum<{
645
- agent: "agent";
646
657
  file: "file";
647
658
  memory_store: "memory_store";
648
659
  environment: "environment";
649
660
  vault: "vault";
650
661
  skill: "skill";
662
+ agent: "agent";
651
663
  template: "template";
652
664
  deployment: "deployment";
653
665
  identity: "identity";
@@ -658,8 +670,8 @@ declare const AgentSyncResultSchema: z.ZodObject<{
658
670
  }, z.core.$strip>>;
659
671
  }, z.core.$strip>;
660
672
  status: z.ZodEnum<{
661
- failed: "failed";
662
673
  success: "success";
674
+ failed: "failed";
663
675
  skipped: "skipped";
664
676
  }>;
665
677
  error: z.ZodOptional<z.ZodString>;
@@ -669,10 +681,16 @@ declare const AgentSyncRunSchema: z.ZodObject<{
669
681
  agentId: z.ZodString;
670
682
  provider: z.ZodOptional<z.ZodString>;
671
683
  status: z.ZodEnum<{
672
- failed: "failed";
673
684
  completed: "completed";
674
685
  blocked: "blocked";
686
+ failed: "failed";
675
687
  }>;
688
+ reason: z.ZodOptional<z.ZodEnum<{
689
+ destructive_blocked: "destructive_blocked";
690
+ cancelled: "cancelled";
691
+ diagnostic_error: "diagnostic_error";
692
+ plan_stale: "plan_stale";
693
+ }>>;
676
694
  actions: z.ZodArray<z.ZodObject<{
677
695
  action: z.ZodEnum<{
678
696
  create: "create";
@@ -682,12 +700,12 @@ declare const AgentSyncRunSchema: z.ZodObject<{
682
700
  }>;
683
701
  address: z.ZodObject<{
684
702
  type: z.ZodEnum<{
685
- agent: "agent";
686
703
  file: "file";
687
704
  memory_store: "memory_store";
688
705
  environment: "environment";
689
706
  vault: "vault";
690
707
  skill: "skill";
708
+ agent: "agent";
691
709
  template: "template";
692
710
  deployment: "deployment";
693
711
  identity: "identity";
@@ -698,12 +716,12 @@ declare const AgentSyncRunSchema: z.ZodObject<{
698
716
  }, z.core.$strip>;
699
717
  previousAddress: z.ZodOptional<z.ZodObject<{
700
718
  type: z.ZodEnum<{
701
- agent: "agent";
702
719
  file: "file";
703
720
  memory_store: "memory_store";
704
721
  environment: "environment";
705
722
  vault: "vault";
706
723
  skill: "skill";
724
+ agent: "agent";
707
725
  template: "template";
708
726
  deployment: "deployment";
709
727
  identity: "identity";
@@ -729,12 +747,12 @@ declare const AgentSyncRunSchema: z.ZodObject<{
729
747
  after: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
730
748
  dependencies: z.ZodArray<z.ZodObject<{
731
749
  type: z.ZodEnum<{
732
- agent: "agent";
733
750
  file: "file";
734
751
  memory_store: "memory_store";
735
752
  environment: "environment";
736
753
  vault: "vault";
737
754
  skill: "skill";
755
+ agent: "agent";
738
756
  template: "template";
739
757
  deployment: "deployment";
740
758
  identity: "identity";
@@ -754,12 +772,12 @@ declare const AgentSyncRunSchema: z.ZodObject<{
754
772
  message: z.ZodString;
755
773
  resource: z.ZodOptional<z.ZodObject<{
756
774
  type: z.ZodEnum<{
757
- agent: "agent";
758
775
  file: "file";
759
776
  memory_store: "memory_store";
760
777
  environment: "environment";
761
778
  vault: "vault";
762
779
  skill: "skill";
780
+ agent: "agent";
763
781
  template: "template";
764
782
  deployment: "deployment";
765
783
  identity: "identity";
@@ -778,12 +796,12 @@ declare const AgentSyncRunSchema: z.ZodObject<{
778
796
  }>;
779
797
  address: z.ZodObject<{
780
798
  type: z.ZodEnum<{
781
- agent: "agent";
782
799
  file: "file";
783
800
  memory_store: "memory_store";
784
801
  environment: "environment";
785
802
  vault: "vault";
786
803
  skill: "skill";
804
+ agent: "agent";
787
805
  template: "template";
788
806
  deployment: "deployment";
789
807
  identity: "identity";
@@ -794,12 +812,12 @@ declare const AgentSyncRunSchema: z.ZodObject<{
794
812
  }, z.core.$strip>;
795
813
  previousAddress: z.ZodOptional<z.ZodObject<{
796
814
  type: z.ZodEnum<{
797
- agent: "agent";
798
815
  file: "file";
799
816
  memory_store: "memory_store";
800
817
  environment: "environment";
801
818
  vault: "vault";
802
819
  skill: "skill";
820
+ agent: "agent";
803
821
  template: "template";
804
822
  deployment: "deployment";
805
823
  identity: "identity";
@@ -825,12 +843,12 @@ declare const AgentSyncRunSchema: z.ZodObject<{
825
843
  after: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
826
844
  dependencies: z.ZodArray<z.ZodObject<{
827
845
  type: z.ZodEnum<{
828
- agent: "agent";
829
846
  file: "file";
830
847
  memory_store: "memory_store";
831
848
  environment: "environment";
832
849
  vault: "vault";
833
850
  skill: "skill";
851
+ agent: "agent";
834
852
  template: "template";
835
853
  deployment: "deployment";
836
854
  identity: "identity";
@@ -850,12 +868,12 @@ declare const AgentSyncRunSchema: z.ZodObject<{
850
868
  }>;
851
869
  address: z.ZodObject<{
852
870
  type: z.ZodEnum<{
853
- agent: "agent";
854
871
  file: "file";
855
872
  memory_store: "memory_store";
856
873
  environment: "environment";
857
874
  vault: "vault";
858
875
  skill: "skill";
876
+ agent: "agent";
859
877
  template: "template";
860
878
  deployment: "deployment";
861
879
  identity: "identity";
@@ -866,12 +884,12 @@ declare const AgentSyncRunSchema: z.ZodObject<{
866
884
  }, z.core.$strip>;
867
885
  previousAddress: z.ZodOptional<z.ZodObject<{
868
886
  type: z.ZodEnum<{
869
- agent: "agent";
870
887
  file: "file";
871
888
  memory_store: "memory_store";
872
889
  environment: "environment";
873
890
  vault: "vault";
874
891
  skill: "skill";
892
+ agent: "agent";
875
893
  template: "template";
876
894
  deployment: "deployment";
877
895
  identity: "identity";
@@ -897,12 +915,12 @@ declare const AgentSyncRunSchema: z.ZodObject<{
897
915
  after: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
898
916
  dependencies: z.ZodArray<z.ZodObject<{
899
917
  type: z.ZodEnum<{
900
- agent: "agent";
901
918
  file: "file";
902
919
  memory_store: "memory_store";
903
920
  environment: "environment";
904
921
  vault: "vault";
905
922
  skill: "skill";
923
+ agent: "agent";
906
924
  template: "template";
907
925
  deployment: "deployment";
908
926
  identity: "identity";
@@ -913,8 +931,8 @@ declare const AgentSyncRunSchema: z.ZodObject<{
913
931
  }, z.core.$strip>>;
914
932
  }, z.core.$strip>;
915
933
  status: z.ZodEnum<{
916
- failed: "failed";
917
934
  success: "success";
935
+ failed: "failed";
918
936
  skipped: "skipped";
919
937
  }>;
920
938
  error: z.ZodOptional<z.ZodString>;
@@ -1090,6 +1108,8 @@ interface ProviderSessionEvent {
1090
1108
  tool_input?: string;
1091
1109
  status?: string;
1092
1110
  stop_reason?: string;
1111
+ /** Child-agent thread id when a Managed Agents multi-agent event carries one. */
1112
+ session_thread_id?: string;
1093
1113
  /**
1094
1114
  * A file the agent delivered to the provider's Files API (qoder DeliverArtifacts /
1095
1115
  * bailian download_file). Structured so the webui can show a download card without
@@ -1111,6 +1131,11 @@ interface EventListOptions {
1111
1131
  page_token?: string;
1112
1132
  /** Legacy alias for page_token used by some provider adapters. */
1113
1133
  page?: string;
1134
+ types?: string[];
1135
+ created_at_gt?: string;
1136
+ created_at_gte?: string;
1137
+ created_at_lt?: string;
1138
+ created_at_lte?: string;
1114
1139
  }
1115
1140
  interface EventStreamOptions {
1116
1141
  after_id?: string;
@@ -1121,4 +1146,4 @@ interface ProviderSessionEventList {
1121
1146
  next_page?: string;
1122
1147
  }
1123
1148
 
1124
- export { type ListCloudEnvironmentsResponse as $, type AgentDefinition as A, type AgentSyncStatus as B, type CloudAgent as C, type Diagnostic as D, type EventStreamOptions as E, AgentSyncStatusSchema as F, AgentWithReadinessSchema as G, CloudAgentSchema as H, CloudEnvironmentSchema as I, CloudVaultSchema as J, type CreateSessionRequest as K, CreateSessionRequestSchema as L, type CreateSessionResponse as M, CreateSessionResponseSchema as N, DiagnosticSchema as O, type ProviderSessionEvent as P, type DiagnosticSeverity as Q, type ResourceAddress as R, DiagnosticSeveritySchema as S, type DriftKind as T, DriftKindSchema as U, type GetSessionRequest as V, GetSessionRequestSchema as W, KNOWN_SESSION_EVENT_TYPES as X, type KnownSessionEventType as Y, type ListCloudAgentsResponse as Z, ListCloudAgentsResponseSchema as _, type ResourceType as a, ListCloudEnvironmentsResponseSchema as a0, type ListSessionEventsRequest as a1, ListSessionEventsRequestSchema as a2, type ListSessionEventsResponse as a3, ListSessionEventsResponseSchema as a4, type ListSessionsRequest as a5, ListSessionsRequestSchema as a6, type ListSessionsResponse as a7, ListSessionsResponseSchema as a8, type PlanReadinessImpact as a9, PlanReadinessImpactSchema as aa, PlannedActionSchema as ab, ResourceAddressSchema as ac, ResourceTypeSchema as ad, type SendEventRequest as ae, SendEventRequestSchema as af, type SendEventResponse as ag, SendEventResponseSchema as ah, type Session as ai, type SessionAgent as aj, SessionAgentSchema as ak, type SessionContentBlock as al, SessionContentBlockSchema as am, type SessionEvent as an, SessionEventSchema as ao, type SessionEventType as ap, type SessionEventTypeName as aq, SessionEventTypeSchema as ar, SessionSchema as as, type CloudEnvironment as b, type CloudVault as c, type EventListOptions as d, type ProviderSessionEventList as e, type PlannedAction as f, type AgentWithReadiness as g, type AgentSyncRun as h, type ActionType as i, ActionTypeSchema as j, AgentDefinitionSchema as k, type AgentDriftSeverity as l, AgentDriftSeveritySchema as m, type AgentModel as n, AgentModelSchema as o, type AgentReadiness as p, AgentReadinessSchema as q, type AgentReadinessStatus as r, AgentReadinessStatusSchema as s, type AgentRecoveryAction as t, AgentRecoveryActionSchema as u, type AgentSkillRef as v, AgentSkillRefSchema as w, type AgentSyncResult as x, AgentSyncResultSchema as y, AgentSyncRunSchema as z };
1149
+ export { type ListCloudAgentsResponse as $, type AgentDefinition as A, AgentSyncResultSchema as B, type CloudAgent as C, type Diagnostic as D, type EventStreamOptions as E, AgentSyncRunSchema as F, type AgentSyncStatus as G, AgentSyncStatusSchema as H, AgentWithReadinessSchema as I, CloudAgentSchema as J, CloudEnvironmentSchema as K, CloudVaultSchema as L, type CreateSessionRequest as M, CreateSessionRequestSchema as N, type CreateSessionResponse as O, type ProviderSessionEvent as P, CreateSessionResponseSchema as Q, type ResourceAddress as R, DiagnosticSchema as S, type DiagnosticSeverity as T, DiagnosticSeveritySchema as U, type DriftKind as V, DriftKindSchema as W, type GetSessionRequest as X, GetSessionRequestSchema as Y, KNOWN_SESSION_EVENT_TYPES as Z, type KnownSessionEventType as _, type CloudEnvironment as a, ListCloudAgentsResponseSchema as a0, type ListCloudEnvironmentsResponse as a1, ListCloudEnvironmentsResponseSchema as a2, type ListSessionEventsRequest as a3, ListSessionEventsRequestSchema as a4, type ListSessionEventsResponse as a5, ListSessionEventsResponseSchema as a6, type ListSessionsRequest as a7, ListSessionsRequestSchema as a8, type ListSessionsResponse as a9, ListSessionsResponseSchema as aa, type PlanReadinessImpact as ab, PlanReadinessImpactSchema as ac, PlannedActionSchema as ad, ResourceAddressSchema as ae, ResourceTypeSchema as af, type SendEventRequest as ag, SendEventRequestSchema as ah, type SendEventResponse as ai, SendEventResponseSchema as aj, type Session as ak, type SessionAgent as al, SessionAgentSchema as am, type SessionContentBlock as an, SessionContentBlockSchema as ao, type SessionEvent as ap, SessionEventSchema as aq, type SessionEventType as ar, type SessionEventTypeName as as, SessionEventTypeSchema as at, SessionSchema as au, type CloudVault as b, type ResourceType as c, type EventListOptions as d, type ProviderSessionEventList as e, type PlannedAction as f, type AgentReadiness as g, type AgentWithReadiness as h, type AgentSyncRun as i, type ActionType as j, ActionTypeSchema as k, AgentDefinitionSchema as l, type AgentDriftSeverity as m, AgentDriftSeveritySchema as n, type AgentModel as o, AgentModelSchema as p, AgentReadinessSchema as q, type AgentReadinessStatus as r, AgentReadinessStatusSchema as s, type AgentRecoveryAction as t, AgentRecoveryActionSchema as u, type AgentSkillRef as v, AgentSkillRefSchema as w, type AgentSyncReason as x, AgentSyncReasonSchema as y, type AgentSyncResult as z };
@@ -1,4 +1,4 @@
1
- import { P as ProviderSessionEvent, an as SessionEvent } from './session-event--Mxe1bnT.js';
1
+ import { P as ProviderSessionEvent, ap as SessionEvent } from './session-event-B63Rbjim.js';
2
2
  import 'zod';
3
3
 
4
4
  declare function sanitizeSessionEvents(events: ProviderSessionEvent[], options?: {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  toSessionEvent
3
- } from "./chunk-GAAU67HX.js";
3
+ } from "./chunk-6PDVAFLK.js";
4
4
 
5
5
  // src/redaction.ts
6
6
  var REDACTED = "[redacted]";
@@ -142,6 +142,7 @@ function sanitizeSessionEvent(event, options = {}) {
142
142
  if (event.tool_input !== void 0) metadata.tool_input = event.tool_input;
143
143
  if (event.status !== void 0) metadata.status = event.status;
144
144
  if (event.stop_reason !== void 0) metadata.stop_reason = event.stop_reason;
145
+ if (event.session_thread_id !== void 0) metadata.session_thread_id = event.session_thread_id;
145
146
  if (event.type !== "unknown") metadata.display_bucket = event.type;
146
147
  if (event.artifact) metadata.artifact = event.artifact;
147
148
  if (redacted) metadata.redacted = true;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openagentpack/sdk",
3
- "version": "0.4.0",
3
+ "version": "0.6.0",
4
4
  "description": "OpenAgentPack SDK (Node-compatible runtime)",
5
5
  "license": "Apache-2.0",
6
6
  "keywords": [