@vorionsys/contracts 0.1.1 → 0.1.2

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 (85) hide show
  1. package/CHANGELOG.md +44 -0
  2. package/LICENSE +190 -0
  3. package/README.md +373 -84
  4. package/dist/aci/index.d.ts +3 -69
  5. package/dist/aci/index.d.ts.map +1 -1
  6. package/dist/aci/index.js +17 -372
  7. package/dist/aci/index.js.map +1 -1
  8. package/dist/canonical/agent.d.ts +1 -1
  9. package/dist/canonical/agent.d.ts.map +1 -1
  10. package/dist/car/car-string.d.ts +6 -6
  11. package/dist/car/effective-permission.d.ts +2 -2
  12. package/dist/car/identity.d.ts +34 -34
  13. package/dist/car/jwt-claims.d.ts +126 -126
  14. package/dist/car/tiers.js +6 -6
  15. package/dist/db/agents.d.ts +545 -5
  16. package/dist/db/agents.d.ts.map +1 -1
  17. package/dist/db/api-keys.d.ts +144 -3
  18. package/dist/db/api-keys.d.ts.map +1 -1
  19. package/dist/db/escalations.d.ts +156 -2
  20. package/dist/db/escalations.d.ts.map +1 -1
  21. package/dist/db/intents.d.ts +154 -3
  22. package/dist/db/intents.d.ts.map +1 -1
  23. package/dist/db/merkle.d.ts +134 -3
  24. package/dist/db/merkle.d.ts.map +1 -1
  25. package/dist/db/operations.d.ts +71 -2
  26. package/dist/db/operations.d.ts.map +1 -1
  27. package/dist/db/policy-versions.d.ts +38 -1
  28. package/dist/db/policy-versions.d.ts.map +1 -1
  29. package/dist/db/proofs.d.ts +119 -3
  30. package/dist/db/proofs.d.ts.map +1 -1
  31. package/dist/db/rbac.d.ts +233 -6
  32. package/dist/db/rbac.d.ts.map +1 -1
  33. package/dist/db/service-accounts.d.ts +218 -6
  34. package/dist/db/service-accounts.d.ts.map +1 -1
  35. package/dist/db/trust.d.ts +168 -2
  36. package/dist/db/trust.d.ts.map +1 -1
  37. package/dist/db/webhooks.d.ts +103 -1
  38. package/dist/db/webhooks.d.ts.map +1 -1
  39. package/dist/v2/proof-event.d.ts +3 -1
  40. package/dist/v2/proof-event.d.ts.map +1 -1
  41. package/dist/validators/proof-event.d.ts +3 -0
  42. package/dist/validators/proof-event.d.ts.map +1 -1
  43. package/dist/validators/proof-event.js +2 -1
  44. package/dist/validators/proof-event.js.map +1 -1
  45. package/package.json +24 -10
  46. package/dist/aci/aci-string.d.ts +0 -539
  47. package/dist/aci/aci-string.d.ts.map +0 -1
  48. package/dist/aci/aci-string.js +0 -581
  49. package/dist/aci/aci-string.js.map +0 -1
  50. package/dist/aci/attestation.d.ts +0 -648
  51. package/dist/aci/attestation.d.ts.map +0 -1
  52. package/dist/aci/attestation.js +0 -299
  53. package/dist/aci/attestation.js.map +0 -1
  54. package/dist/aci/domains.d.ts +0 -260
  55. package/dist/aci/domains.d.ts.map +0 -1
  56. package/dist/aci/domains.js +0 -340
  57. package/dist/aci/domains.js.map +0 -1
  58. package/dist/aci/effective-permission.d.ts +0 -371
  59. package/dist/aci/effective-permission.d.ts.map +0 -1
  60. package/dist/aci/effective-permission.js +0 -364
  61. package/dist/aci/effective-permission.js.map +0 -1
  62. package/dist/aci/identity.d.ts +0 -1100
  63. package/dist/aci/identity.d.ts.map +0 -1
  64. package/dist/aci/identity.js +0 -338
  65. package/dist/aci/identity.js.map +0 -1
  66. package/dist/aci/jwt-claims.d.ts +0 -756
  67. package/dist/aci/jwt-claims.d.ts.map +0 -1
  68. package/dist/aci/jwt-claims.js +0 -345
  69. package/dist/aci/jwt-claims.js.map +0 -1
  70. package/dist/aci/levels.d.ts +0 -279
  71. package/dist/aci/levels.d.ts.map +0 -1
  72. package/dist/aci/levels.js +0 -486
  73. package/dist/aci/levels.js.map +0 -1
  74. package/dist/aci/mapping.d.ts +0 -291
  75. package/dist/aci/mapping.d.ts.map +0 -1
  76. package/dist/aci/mapping.js +0 -447
  77. package/dist/aci/mapping.js.map +0 -1
  78. package/dist/aci/skills.d.ts +0 -314
  79. package/dist/aci/skills.d.ts.map +0 -1
  80. package/dist/aci/skills.js +0 -426
  81. package/dist/aci/skills.js.map +0 -1
  82. package/dist/aci/tiers.d.ts +0 -403
  83. package/dist/aci/tiers.d.ts.map +0 -1
  84. package/dist/aci/tiers.js +0 -686
  85. package/dist/aci/tiers.js.map +0 -1
@@ -22,8 +22,13 @@ export declare const proofs: import("drizzle-orm/pg-core").PgTableWithColumns<{
22
22
  driverParam: string;
23
23
  notNull: true;
24
24
  hasDefault: true;
25
+ isPrimaryKey: true;
26
+ isAutoincrement: false;
27
+ hasRuntimeDefault: false;
25
28
  enumValues: undefined;
26
29
  baseColumn: never;
30
+ identity: undefined;
31
+ generated: undefined;
27
32
  }, {}, {}>;
28
33
  chainPosition: import("drizzle-orm/pg-core").PgColumn<{
29
34
  name: "chain_position";
@@ -34,8 +39,13 @@ export declare const proofs: import("drizzle-orm/pg-core").PgTableWithColumns<{
34
39
  driverParam: string | number;
35
40
  notNull: true;
36
41
  hasDefault: false;
42
+ isPrimaryKey: false;
43
+ isAutoincrement: false;
44
+ hasRuntimeDefault: false;
37
45
  enumValues: undefined;
38
46
  baseColumn: never;
47
+ identity: undefined;
48
+ generated: undefined;
39
49
  }, {}, {}>;
40
50
  intentId: import("drizzle-orm/pg-core").PgColumn<{
41
51
  name: "intent_id";
@@ -46,8 +56,13 @@ export declare const proofs: import("drizzle-orm/pg-core").PgTableWithColumns<{
46
56
  driverParam: string;
47
57
  notNull: true;
48
58
  hasDefault: false;
59
+ isPrimaryKey: false;
60
+ isAutoincrement: false;
61
+ hasRuntimeDefault: false;
49
62
  enumValues: undefined;
50
63
  baseColumn: never;
64
+ identity: undefined;
65
+ generated: undefined;
51
66
  }, {}, {}>;
52
67
  entityId: import("drizzle-orm/pg-core").PgColumn<{
53
68
  name: "entity_id";
@@ -58,8 +73,13 @@ export declare const proofs: import("drizzle-orm/pg-core").PgTableWithColumns<{
58
73
  driverParam: string;
59
74
  notNull: true;
60
75
  hasDefault: false;
76
+ isPrimaryKey: false;
77
+ isAutoincrement: false;
78
+ hasRuntimeDefault: false;
61
79
  enumValues: undefined;
62
80
  baseColumn: never;
81
+ identity: undefined;
82
+ generated: undefined;
63
83
  }, {}, {}>;
64
84
  decision: import("drizzle-orm/pg-core").PgColumn<{
65
85
  name: "decision";
@@ -70,9 +90,16 @@ export declare const proofs: import("drizzle-orm/pg-core").PgTableWithColumns<{
70
90
  driverParam: unknown;
71
91
  notNull: true;
72
92
  hasDefault: false;
93
+ isPrimaryKey: false;
94
+ isAutoincrement: false;
95
+ hasRuntimeDefault: false;
73
96
  enumValues: undefined;
74
97
  baseColumn: never;
75
- }, {}, {}>;
98
+ identity: undefined;
99
+ generated: undefined;
100
+ }, {}, {
101
+ $type: Decision;
102
+ }>;
76
103
  inputs: import("drizzle-orm/pg-core").PgColumn<{
77
104
  name: "inputs";
78
105
  tableName: "proofs";
@@ -82,9 +109,16 @@ export declare const proofs: import("drizzle-orm/pg-core").PgTableWithColumns<{
82
109
  driverParam: unknown;
83
110
  notNull: true;
84
111
  hasDefault: false;
112
+ isPrimaryKey: false;
113
+ isAutoincrement: false;
114
+ hasRuntimeDefault: false;
85
115
  enumValues: undefined;
86
116
  baseColumn: never;
87
- }, {}, {}>;
117
+ identity: undefined;
118
+ generated: undefined;
119
+ }, {}, {
120
+ $type: Record<string, unknown>;
121
+ }>;
88
122
  outputs: import("drizzle-orm/pg-core").PgColumn<{
89
123
  name: "outputs";
90
124
  tableName: "proofs";
@@ -94,9 +128,16 @@ export declare const proofs: import("drizzle-orm/pg-core").PgTableWithColumns<{
94
128
  driverParam: unknown;
95
129
  notNull: true;
96
130
  hasDefault: false;
131
+ isPrimaryKey: false;
132
+ isAutoincrement: false;
133
+ hasRuntimeDefault: false;
97
134
  enumValues: undefined;
98
135
  baseColumn: never;
99
- }, {}, {}>;
136
+ identity: undefined;
137
+ generated: undefined;
138
+ }, {}, {
139
+ $type: Record<string, unknown>;
140
+ }>;
100
141
  hash: import("drizzle-orm/pg-core").PgColumn<{
101
142
  name: "hash";
102
143
  tableName: "proofs";
@@ -106,8 +147,13 @@ export declare const proofs: import("drizzle-orm/pg-core").PgTableWithColumns<{
106
147
  driverParam: string;
107
148
  notNull: true;
108
149
  hasDefault: false;
150
+ isPrimaryKey: false;
151
+ isAutoincrement: false;
152
+ hasRuntimeDefault: false;
109
153
  enumValues: [string, ...string[]];
110
154
  baseColumn: never;
155
+ identity: undefined;
156
+ generated: undefined;
111
157
  }, {}, {}>;
112
158
  previousHash: import("drizzle-orm/pg-core").PgColumn<{
113
159
  name: "previous_hash";
@@ -118,8 +164,13 @@ export declare const proofs: import("drizzle-orm/pg-core").PgTableWithColumns<{
118
164
  driverParam: string;
119
165
  notNull: true;
120
166
  hasDefault: false;
167
+ isPrimaryKey: false;
168
+ isAutoincrement: false;
169
+ hasRuntimeDefault: false;
121
170
  enumValues: [string, ...string[]];
122
171
  baseColumn: never;
172
+ identity: undefined;
173
+ generated: undefined;
123
174
  }, {}, {}>;
124
175
  signature: import("drizzle-orm/pg-core").PgColumn<{
125
176
  name: "signature";
@@ -130,8 +181,13 @@ export declare const proofs: import("drizzle-orm/pg-core").PgTableWithColumns<{
130
181
  driverParam: string;
131
182
  notNull: true;
132
183
  hasDefault: false;
184
+ isPrimaryKey: false;
185
+ isAutoincrement: false;
186
+ hasRuntimeDefault: false;
133
187
  enumValues: [string, ...string[]];
134
188
  baseColumn: never;
189
+ identity: undefined;
190
+ generated: undefined;
135
191
  }, {}, {}>;
136
192
  signaturePublicKey: import("drizzle-orm/pg-core").PgColumn<{
137
193
  name: "signature_public_key";
@@ -142,8 +198,13 @@ export declare const proofs: import("drizzle-orm/pg-core").PgTableWithColumns<{
142
198
  driverParam: string;
143
199
  notNull: false;
144
200
  hasDefault: false;
201
+ isPrimaryKey: false;
202
+ isAutoincrement: false;
203
+ hasRuntimeDefault: false;
145
204
  enumValues: [string, ...string[]];
146
205
  baseColumn: never;
206
+ identity: undefined;
207
+ generated: undefined;
147
208
  }, {}, {}>;
148
209
  signatureAlgorithm: import("drizzle-orm/pg-core").PgColumn<{
149
210
  name: "signature_algorithm";
@@ -154,8 +215,13 @@ export declare const proofs: import("drizzle-orm/pg-core").PgTableWithColumns<{
154
215
  driverParam: string;
155
216
  notNull: false;
156
217
  hasDefault: false;
218
+ isPrimaryKey: false;
219
+ isAutoincrement: false;
220
+ hasRuntimeDefault: false;
157
221
  enumValues: [string, ...string[]];
158
222
  baseColumn: never;
223
+ identity: undefined;
224
+ generated: undefined;
159
225
  }, {}, {}>;
160
226
  signedAt: import("drizzle-orm/pg-core").PgColumn<{
161
227
  name: "signed_at";
@@ -166,8 +232,13 @@ export declare const proofs: import("drizzle-orm/pg-core").PgTableWithColumns<{
166
232
  driverParam: string;
167
233
  notNull: false;
168
234
  hasDefault: false;
235
+ isPrimaryKey: false;
236
+ isAutoincrement: false;
237
+ hasRuntimeDefault: false;
169
238
  enumValues: undefined;
170
239
  baseColumn: never;
240
+ identity: undefined;
241
+ generated: undefined;
171
242
  }, {}, {}>;
172
243
  createdAt: import("drizzle-orm/pg-core").PgColumn<{
173
244
  name: "created_at";
@@ -178,8 +249,13 @@ export declare const proofs: import("drizzle-orm/pg-core").PgTableWithColumns<{
178
249
  driverParam: string;
179
250
  notNull: true;
180
251
  hasDefault: true;
252
+ isPrimaryKey: false;
253
+ isAutoincrement: false;
254
+ hasRuntimeDefault: false;
181
255
  enumValues: undefined;
182
256
  baseColumn: never;
257
+ identity: undefined;
258
+ generated: undefined;
183
259
  }, {}, {}>;
184
260
  };
185
261
  dialect: "pg";
@@ -200,8 +276,13 @@ export declare const proofChainMeta: import("drizzle-orm/pg-core").PgTableWithCo
200
276
  driverParam: string;
201
277
  notNull: true;
202
278
  hasDefault: true;
279
+ isPrimaryKey: true;
280
+ isAutoincrement: false;
281
+ hasRuntimeDefault: false;
203
282
  enumValues: undefined;
204
283
  baseColumn: never;
284
+ identity: undefined;
285
+ generated: undefined;
205
286
  }, {}, {}>;
206
287
  chainId: import("drizzle-orm/pg-core").PgColumn<{
207
288
  name: "chain_id";
@@ -212,8 +293,13 @@ export declare const proofChainMeta: import("drizzle-orm/pg-core").PgTableWithCo
212
293
  driverParam: string;
213
294
  notNull: true;
214
295
  hasDefault: true;
296
+ isPrimaryKey: false;
297
+ isAutoincrement: false;
298
+ hasRuntimeDefault: false;
215
299
  enumValues: [string, ...string[]];
216
300
  baseColumn: never;
301
+ identity: undefined;
302
+ generated: undefined;
217
303
  }, {}, {}>;
218
304
  lastHash: import("drizzle-orm/pg-core").PgColumn<{
219
305
  name: "last_hash";
@@ -224,8 +310,13 @@ export declare const proofChainMeta: import("drizzle-orm/pg-core").PgTableWithCo
224
310
  driverParam: string;
225
311
  notNull: true;
226
312
  hasDefault: false;
313
+ isPrimaryKey: false;
314
+ isAutoincrement: false;
315
+ hasRuntimeDefault: false;
227
316
  enumValues: [string, ...string[]];
228
317
  baseColumn: never;
318
+ identity: undefined;
319
+ generated: undefined;
229
320
  }, {}, {}>;
230
321
  chainLength: import("drizzle-orm/pg-core").PgColumn<{
231
322
  name: "chain_length";
@@ -236,8 +327,13 @@ export declare const proofChainMeta: import("drizzle-orm/pg-core").PgTableWithCo
236
327
  driverParam: string | number;
237
328
  notNull: true;
238
329
  hasDefault: true;
330
+ isPrimaryKey: false;
331
+ isAutoincrement: false;
332
+ hasRuntimeDefault: false;
239
333
  enumValues: undefined;
240
334
  baseColumn: never;
335
+ identity: undefined;
336
+ generated: undefined;
241
337
  }, {}, {}>;
242
338
  lastVerifiedAt: import("drizzle-orm/pg-core").PgColumn<{
243
339
  name: "last_verified_at";
@@ -248,8 +344,13 @@ export declare const proofChainMeta: import("drizzle-orm/pg-core").PgTableWithCo
248
344
  driverParam: string;
249
345
  notNull: false;
250
346
  hasDefault: false;
347
+ isPrimaryKey: false;
348
+ isAutoincrement: false;
349
+ hasRuntimeDefault: false;
251
350
  enumValues: undefined;
252
351
  baseColumn: never;
352
+ identity: undefined;
353
+ generated: undefined;
253
354
  }, {}, {}>;
254
355
  lastVerifiedPosition: import("drizzle-orm/pg-core").PgColumn<{
255
356
  name: "last_verified_position";
@@ -260,8 +361,13 @@ export declare const proofChainMeta: import("drizzle-orm/pg-core").PgTableWithCo
260
361
  driverParam: string | number;
261
362
  notNull: false;
262
363
  hasDefault: false;
364
+ isPrimaryKey: false;
365
+ isAutoincrement: false;
366
+ hasRuntimeDefault: false;
263
367
  enumValues: undefined;
264
368
  baseColumn: never;
369
+ identity: undefined;
370
+ generated: undefined;
265
371
  }, {}, {}>;
266
372
  createdAt: import("drizzle-orm/pg-core").PgColumn<{
267
373
  name: "created_at";
@@ -272,8 +378,13 @@ export declare const proofChainMeta: import("drizzle-orm/pg-core").PgTableWithCo
272
378
  driverParam: string;
273
379
  notNull: true;
274
380
  hasDefault: true;
381
+ isPrimaryKey: false;
382
+ isAutoincrement: false;
383
+ hasRuntimeDefault: false;
275
384
  enumValues: undefined;
276
385
  baseColumn: never;
386
+ identity: undefined;
387
+ generated: undefined;
277
388
  }, {}, {}>;
278
389
  updatedAt: import("drizzle-orm/pg-core").PgColumn<{
279
390
  name: "updated_at";
@@ -284,8 +395,13 @@ export declare const proofChainMeta: import("drizzle-orm/pg-core").PgTableWithCo
284
395
  driverParam: string;
285
396
  notNull: true;
286
397
  hasDefault: true;
398
+ isPrimaryKey: false;
399
+ isAutoincrement: false;
400
+ hasRuntimeDefault: false;
287
401
  enumValues: undefined;
288
402
  baseColumn: never;
403
+ identity: undefined;
404
+ generated: undefined;
289
405
  }, {}, {}>;
290
406
  };
291
407
  dialect: "pg";
@@ -1 +1 @@
1
- {"version":3,"file":"proofs.d.ts","sourceRoot":"","sources":["../../src/db/proofs.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAYH,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAEnD;;GAEG;AACH,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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