@vorionsys/contracts 0.1.2 → 0.1.3

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 (79) hide show
  1. package/CHANGELOG.md +1 -1
  2. package/README.md +3 -3
  3. package/dist/aci/index.d.ts +1 -1
  4. package/dist/aci/index.js +1 -1
  5. package/dist/canonical/agent.d.ts +14 -14
  6. package/dist/canonical/governance.d.ts +8 -8
  7. package/dist/canonical/intent.d.ts +18 -18
  8. package/dist/canonical/middleware.d.ts +4 -4
  9. package/dist/canonical/trust-signal.d.ts +48 -45
  10. package/dist/canonical/trust-signal.d.ts.map +1 -1
  11. package/dist/canonical/trust-signal.js +7 -2
  12. package/dist/canonical/trust-signal.js.map +1 -1
  13. package/dist/canonical/validation.d.ts +11 -26
  14. package/dist/canonical/validation.d.ts.map +1 -1
  15. package/dist/canonical/validation.js +30 -101
  16. package/dist/canonical/validation.js.map +1 -1
  17. package/dist/car/attestation.d.ts +30 -30
  18. package/dist/car/attestation.d.ts.map +1 -1
  19. package/dist/car/attestation.js +3 -1
  20. package/dist/car/attestation.js.map +1 -1
  21. package/dist/car/car-string.d.ts +41 -41
  22. package/dist/car/car-string.d.ts.map +1 -1
  23. package/dist/car/car-string.js +36 -36
  24. package/dist/car/car-string.js.map +1 -1
  25. package/dist/car/domains.d.ts +34 -18
  26. package/dist/car/domains.d.ts.map +1 -1
  27. package/dist/car/domains.js +53 -15
  28. package/dist/car/domains.js.map +1 -1
  29. package/dist/car/effective-permission.d.ts +59 -11
  30. package/dist/car/effective-permission.d.ts.map +1 -1
  31. package/dist/car/effective-permission.js +30 -2
  32. package/dist/car/effective-permission.js.map +1 -1
  33. package/dist/car/identity.d.ts +298 -79
  34. package/dist/car/identity.d.ts.map +1 -1
  35. package/dist/car/identity.js +112 -10
  36. package/dist/car/identity.js.map +1 -1
  37. package/dist/car/index.d.ts +3 -3
  38. package/dist/car/index.d.ts.map +1 -1
  39. package/dist/car/index.js +15 -7
  40. package/dist/car/index.js.map +1 -1
  41. package/dist/car/jwt-claims.d.ts +179 -179
  42. package/dist/car/jwt-claims.d.ts.map +1 -1
  43. package/dist/car/jwt-claims.js +39 -46
  44. package/dist/car/jwt-claims.js.map +1 -1
  45. package/dist/car/levels.d.ts +2 -2
  46. package/dist/car/mapping.d.ts +36 -36
  47. package/dist/car/mapping.d.ts.map +1 -1
  48. package/dist/car/mapping.js +107 -43
  49. package/dist/car/mapping.js.map +1 -1
  50. package/dist/car/skills.d.ts +4 -4
  51. package/dist/car/tiers.d.ts +7 -7
  52. package/dist/car/tiers.js +4 -4
  53. package/dist/car/tiers.js.map +1 -1
  54. package/dist/common/primitives.d.ts +2 -2
  55. package/dist/db/agents.d.ts +4 -4
  56. package/dist/db/agents.js +4 -4
  57. package/dist/db/agents.js.map +1 -1
  58. package/dist/v2/enums.d.ts +5 -0
  59. package/dist/v2/enums.d.ts.map +1 -1
  60. package/dist/v2/enums.js +5 -0
  61. package/dist/v2/enums.js.map +1 -1
  62. package/dist/v2/evidence.d.ts +20 -20
  63. package/dist/v2/pre-action-gate.js +5 -5
  64. package/dist/v2/pre-action-gate.js.map +1 -1
  65. package/dist/v2/retention.d.ts +14 -14
  66. package/dist/v2/trust-delta.d.ts +6 -6
  67. package/dist/v2/trust-delta.d.ts.map +1 -1
  68. package/dist/v2/trust-profile.d.ts +116 -54
  69. package/dist/v2/trust-profile.d.ts.map +1 -1
  70. package/dist/v2/trust-profile.js +22 -17
  71. package/dist/v2/trust-profile.js.map +1 -1
  72. package/dist/validators/decision.d.ts +6 -6
  73. package/dist/validators/intent.d.ts +8 -8
  74. package/dist/validators/proof-event.d.ts +54 -54
  75. package/dist/validators/trust-profile.d.ts +76 -244
  76. package/dist/validators/trust-profile.d.ts.map +1 -1
  77. package/dist/validators/trust-profile.js +21 -35
  78. package/dist/validators/trust-profile.js.map +1 -1
  79. package/package.json +4 -3
@@ -77,15 +77,15 @@ export declare const proofEventPayloadSchema: z.ZodUnion<[z.ZodDiscriminatedUnio
77
77
  adapterId: z.ZodString;
78
78
  }, "strip", z.ZodTypeAny, {
79
79
  type: "execution_started";
80
+ actionId: string;
80
81
  decisionId: string;
81
82
  executionId: string;
82
- actionId: string;
83
83
  adapterId: string;
84
84
  }, {
85
85
  type: "execution_started";
86
+ actionId: string;
86
87
  decisionId: string;
87
88
  executionId: string;
88
- actionId: string;
89
89
  adapterId: string;
90
90
  }>, z.ZodObject<{
91
91
  type: z.ZodLiteral<"execution_completed">;
@@ -97,15 +97,15 @@ export declare const proofEventPayloadSchema: z.ZodUnion<[z.ZodDiscriminatedUnio
97
97
  }, "strip", z.ZodTypeAny, {
98
98
  type: "execution_completed";
99
99
  status: "success" | "partial";
100
- executionId: string;
101
100
  actionId: string;
101
+ executionId: string;
102
102
  durationMs: number;
103
103
  outputHash: string;
104
104
  }, {
105
105
  type: "execution_completed";
106
106
  status: "success" | "partial";
107
- executionId: string;
108
107
  actionId: string;
108
+ executionId: string;
109
109
  durationMs: number;
110
110
  outputHash: string;
111
111
  }>, z.ZodObject<{
@@ -116,17 +116,17 @@ export declare const proofEventPayloadSchema: z.ZodUnion<[z.ZodDiscriminatedUnio
116
116
  durationMs: z.ZodNumber;
117
117
  retryable: z.ZodBoolean;
118
118
  }, "strip", z.ZodTypeAny, {
119
- error: string;
120
119
  type: "execution_failed";
121
- executionId: string;
122
120
  actionId: string;
121
+ error: string;
122
+ executionId: string;
123
123
  durationMs: number;
124
124
  retryable: boolean;
125
125
  }, {
126
- error: string;
127
126
  type: "execution_failed";
128
- executionId: string;
129
127
  actionId: string;
128
+ error: string;
129
+ executionId: string;
130
130
  durationMs: number;
131
131
  retryable: boolean;
132
132
  }>, z.ZodObject<{
@@ -137,14 +137,14 @@ export declare const proofEventPayloadSchema: z.ZodUnion<[z.ZodDiscriminatedUnio
137
137
  affectedResources: z.ZodArray<z.ZodString, "many">;
138
138
  }, "strip", z.ZodTypeAny, {
139
139
  type: "incident_detected";
140
- severity: "low" | "medium" | "high" | "critical";
141
140
  description: string;
141
+ severity: "low" | "medium" | "high" | "critical";
142
142
  incidentId: string;
143
143
  affectedResources: string[];
144
144
  }, {
145
145
  type: "incident_detected";
146
- severity: "low" | "medium" | "high" | "critical";
147
146
  description: string;
147
+ severity: "low" | "medium" | "high" | "critical";
148
148
  incidentId: string;
149
149
  affectedResources: string[];
150
150
  }>, z.ZodObject<{
@@ -288,15 +288,15 @@ export declare const proofEventSchema: z.ZodObject<{
288
288
  adapterId: z.ZodString;
289
289
  }, "strip", z.ZodTypeAny, {
290
290
  type: "execution_started";
291
+ actionId: string;
291
292
  decisionId: string;
292
293
  executionId: string;
293
- actionId: string;
294
294
  adapterId: string;
295
295
  }, {
296
296
  type: "execution_started";
297
+ actionId: string;
297
298
  decisionId: string;
298
299
  executionId: string;
299
- actionId: string;
300
300
  adapterId: string;
301
301
  }>, z.ZodObject<{
302
302
  type: z.ZodLiteral<"execution_completed">;
@@ -308,15 +308,15 @@ export declare const proofEventSchema: z.ZodObject<{
308
308
  }, "strip", z.ZodTypeAny, {
309
309
  type: "execution_completed";
310
310
  status: "success" | "partial";
311
- executionId: string;
312
311
  actionId: string;
312
+ executionId: string;
313
313
  durationMs: number;
314
314
  outputHash: string;
315
315
  }, {
316
316
  type: "execution_completed";
317
317
  status: "success" | "partial";
318
- executionId: string;
319
318
  actionId: string;
319
+ executionId: string;
320
320
  durationMs: number;
321
321
  outputHash: string;
322
322
  }>, z.ZodObject<{
@@ -327,17 +327,17 @@ export declare const proofEventSchema: z.ZodObject<{
327
327
  durationMs: z.ZodNumber;
328
328
  retryable: z.ZodBoolean;
329
329
  }, "strip", z.ZodTypeAny, {
330
- error: string;
331
330
  type: "execution_failed";
332
- executionId: string;
333
331
  actionId: string;
332
+ error: string;
333
+ executionId: string;
334
334
  durationMs: number;
335
335
  retryable: boolean;
336
336
  }, {
337
- error: string;
338
337
  type: "execution_failed";
339
- executionId: string;
340
338
  actionId: string;
339
+ error: string;
340
+ executionId: string;
341
341
  durationMs: number;
342
342
  retryable: boolean;
343
343
  }>, z.ZodObject<{
@@ -348,14 +348,14 @@ export declare const proofEventSchema: z.ZodObject<{
348
348
  affectedResources: z.ZodArray<z.ZodString, "many">;
349
349
  }, "strip", z.ZodTypeAny, {
350
350
  type: "incident_detected";
351
- severity: "low" | "medium" | "high" | "critical";
352
351
  description: string;
352
+ severity: "low" | "medium" | "high" | "critical";
353
353
  incidentId: string;
354
354
  affectedResources: string[];
355
355
  }, {
356
356
  type: "incident_detected";
357
- severity: "low" | "medium" | "high" | "critical";
358
357
  description: string;
358
+ severity: "low" | "medium" | "high" | "critical";
359
359
  incidentId: string;
360
360
  affectedResources: string[];
361
361
  }>, z.ZodObject<{
@@ -455,28 +455,28 @@ export declare const proofEventSchema: z.ZodObject<{
455
455
  newBand: string;
456
456
  } | {
457
457
  type: "execution_started";
458
+ actionId: string;
458
459
  decisionId: string;
459
460
  executionId: string;
460
- actionId: string;
461
461
  adapterId: string;
462
462
  } | {
463
463
  type: "execution_completed";
464
464
  status: "success" | "partial";
465
- executionId: string;
466
465
  actionId: string;
466
+ executionId: string;
467
467
  durationMs: number;
468
468
  outputHash: string;
469
469
  } | {
470
- error: string;
471
470
  type: "execution_failed";
472
- executionId: string;
473
471
  actionId: string;
472
+ error: string;
473
+ executionId: string;
474
474
  durationMs: number;
475
475
  retryable: boolean;
476
476
  } | {
477
477
  type: "incident_detected";
478
- severity: "low" | "medium" | "high" | "critical";
479
478
  description: string;
479
+ severity: "low" | "medium" | "high" | "critical";
480
480
  incidentId: string;
481
481
  affectedResources: string[];
482
482
  } | {
@@ -503,8 +503,8 @@ export declare const proofEventSchema: z.ZodObject<{
503
503
  eventHash: string;
504
504
  occurredAt: Date;
505
505
  recordedAt: Date;
506
- signature?: string | undefined;
507
506
  agentId?: string | undefined;
507
+ signature?: string | undefined;
508
508
  eventHash3?: string | undefined;
509
509
  signedBy?: string | undefined;
510
510
  }, {
@@ -536,28 +536,28 @@ export declare const proofEventSchema: z.ZodObject<{
536
536
  newBand: string;
537
537
  } | {
538
538
  type: "execution_started";
539
+ actionId: string;
539
540
  decisionId: string;
540
541
  executionId: string;
541
- actionId: string;
542
542
  adapterId: string;
543
543
  } | {
544
544
  type: "execution_completed";
545
545
  status: "success" | "partial";
546
- executionId: string;
547
546
  actionId: string;
547
+ executionId: string;
548
548
  durationMs: number;
549
549
  outputHash: string;
550
550
  } | {
551
- error: string;
552
551
  type: "execution_failed";
553
- executionId: string;
554
552
  actionId: string;
553
+ error: string;
554
+ executionId: string;
555
555
  durationMs: number;
556
556
  retryable: boolean;
557
557
  } | {
558
558
  type: "incident_detected";
559
- severity: "low" | "medium" | "high" | "critical";
560
559
  description: string;
560
+ severity: "low" | "medium" | "high" | "critical";
561
561
  incidentId: string;
562
562
  affectedResources: string[];
563
563
  } | {
@@ -584,8 +584,8 @@ export declare const proofEventSchema: z.ZodObject<{
584
584
  eventHash: string;
585
585
  occurredAt: Date;
586
586
  recordedAt: Date;
587
- signature?: string | undefined;
588
587
  agentId?: string | undefined;
588
+ signature?: string | undefined;
589
589
  eventHash3?: string | undefined;
590
590
  signedBy?: string | undefined;
591
591
  }>;
@@ -599,16 +599,16 @@ export declare const proofEventFilterSchema: z.ZodObject<{
599
599
  limit: z.ZodOptional<z.ZodNumber>;
600
600
  offset: z.ZodOptional<z.ZodNumber>;
601
601
  }, "strip", z.ZodTypeAny, {
602
- correlationId?: string | undefined;
603
602
  agentId?: string | undefined;
603
+ correlationId?: string | undefined;
604
604
  limit?: number | undefined;
605
605
  eventTypes?: import("../index.js").ProofEventType[] | undefined;
606
606
  from?: Date | undefined;
607
607
  to?: Date | undefined;
608
608
  offset?: number | undefined;
609
609
  }, {
610
- correlationId?: string | undefined;
611
610
  agentId?: string | undefined;
611
+ correlationId?: string | undefined;
612
612
  limit?: number | undefined;
613
613
  eventTypes?: import("../index.js").ProofEventType[] | undefined;
614
614
  from?: Date | undefined;
@@ -694,15 +694,15 @@ export declare const logProofEventRequestSchema: z.ZodObject<{
694
694
  adapterId: z.ZodString;
695
695
  }, "strip", z.ZodTypeAny, {
696
696
  type: "execution_started";
697
+ actionId: string;
697
698
  decisionId: string;
698
699
  executionId: string;
699
- actionId: string;
700
700
  adapterId: string;
701
701
  }, {
702
702
  type: "execution_started";
703
+ actionId: string;
703
704
  decisionId: string;
704
705
  executionId: string;
705
- actionId: string;
706
706
  adapterId: string;
707
707
  }>, z.ZodObject<{
708
708
  type: z.ZodLiteral<"execution_completed">;
@@ -714,15 +714,15 @@ export declare const logProofEventRequestSchema: z.ZodObject<{
714
714
  }, "strip", z.ZodTypeAny, {
715
715
  type: "execution_completed";
716
716
  status: "success" | "partial";
717
- executionId: string;
718
717
  actionId: string;
718
+ executionId: string;
719
719
  durationMs: number;
720
720
  outputHash: string;
721
721
  }, {
722
722
  type: "execution_completed";
723
723
  status: "success" | "partial";
724
- executionId: string;
725
724
  actionId: string;
725
+ executionId: string;
726
726
  durationMs: number;
727
727
  outputHash: string;
728
728
  }>, z.ZodObject<{
@@ -733,17 +733,17 @@ export declare const logProofEventRequestSchema: z.ZodObject<{
733
733
  durationMs: z.ZodNumber;
734
734
  retryable: z.ZodBoolean;
735
735
  }, "strip", z.ZodTypeAny, {
736
- error: string;
737
736
  type: "execution_failed";
738
- executionId: string;
739
737
  actionId: string;
738
+ error: string;
739
+ executionId: string;
740
740
  durationMs: number;
741
741
  retryable: boolean;
742
742
  }, {
743
- error: string;
744
743
  type: "execution_failed";
745
- executionId: string;
746
744
  actionId: string;
745
+ error: string;
746
+ executionId: string;
747
747
  durationMs: number;
748
748
  retryable: boolean;
749
749
  }>, z.ZodObject<{
@@ -754,14 +754,14 @@ export declare const logProofEventRequestSchema: z.ZodObject<{
754
754
  affectedResources: z.ZodArray<z.ZodString, "many">;
755
755
  }, "strip", z.ZodTypeAny, {
756
756
  type: "incident_detected";
757
- severity: "low" | "medium" | "high" | "critical";
758
757
  description: string;
758
+ severity: "low" | "medium" | "high" | "critical";
759
759
  incidentId: string;
760
760
  affectedResources: string[];
761
761
  }, {
762
762
  type: "incident_detected";
763
- severity: "low" | "medium" | "high" | "critical";
764
763
  description: string;
764
+ severity: "low" | "medium" | "high" | "critical";
765
765
  incidentId: string;
766
766
  affectedResources: string[];
767
767
  }>, z.ZodObject<{
@@ -854,28 +854,28 @@ export declare const logProofEventRequestSchema: z.ZodObject<{
854
854
  newBand: string;
855
855
  } | {
856
856
  type: "execution_started";
857
+ actionId: string;
857
858
  decisionId: string;
858
859
  executionId: string;
859
- actionId: string;
860
860
  adapterId: string;
861
861
  } | {
862
862
  type: "execution_completed";
863
863
  status: "success" | "partial";
864
- executionId: string;
865
864
  actionId: string;
865
+ executionId: string;
866
866
  durationMs: number;
867
867
  outputHash: string;
868
868
  } | {
869
- error: string;
870
869
  type: "execution_failed";
871
- executionId: string;
872
870
  actionId: string;
871
+ error: string;
872
+ executionId: string;
873
873
  durationMs: number;
874
874
  retryable: boolean;
875
875
  } | {
876
876
  type: "incident_detected";
877
- severity: "low" | "medium" | "high" | "critical";
878
877
  description: string;
878
+ severity: "low" | "medium" | "high" | "critical";
879
879
  incidentId: string;
880
880
  affectedResources: string[];
881
881
  } | {
@@ -929,28 +929,28 @@ export declare const logProofEventRequestSchema: z.ZodObject<{
929
929
  newBand: string;
930
930
  } | {
931
931
  type: "execution_started";
932
+ actionId: string;
932
933
  decisionId: string;
933
934
  executionId: string;
934
- actionId: string;
935
935
  adapterId: string;
936
936
  } | {
937
937
  type: "execution_completed";
938
938
  status: "success" | "partial";
939
- executionId: string;
940
939
  actionId: string;
940
+ executionId: string;
941
941
  durationMs: number;
942
942
  outputHash: string;
943
943
  } | {
944
- error: string;
945
944
  type: "execution_failed";
946
- executionId: string;
947
945
  actionId: string;
946
+ error: string;
947
+ executionId: string;
948
948
  durationMs: number;
949
949
  retryable: boolean;
950
950
  } | {
951
951
  type: "incident_detected";
952
- severity: "low" | "medium" | "high" | "critical";
953
952
  description: string;
953
+ severity: "low" | "medium" | "high" | "critical";
954
954
  incidentId: string;
955
955
  affectedResources: string[];
956
956
  } | {