@happyvertical/smrt-ingestion 0.61.3 → 0.61.4
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.
- package/dist/manifest.json +991 -507
- package/dist/models.d.ts.map +1 -1
- package/dist/models.js +173 -114
- package/dist/models.js.map +1 -1
- package/dist/server.d.ts.map +1 -1
- package/dist/server.js +2 -2
- package/dist/server.js.map +1 -1
- package/dist/smrt-knowledge.json +17 -17
- package/package.json +17 -17
package/dist/manifest.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"version": "1.0.0",
|
|
3
3
|
"timestamp": 0,
|
|
4
4
|
"packageName": "@happyvertical/smrt-ingestion",
|
|
5
|
-
"packageVersion": "0.61.
|
|
5
|
+
"packageVersion": "0.61.4",
|
|
6
6
|
"objects": {
|
|
7
7
|
"@happyvertical/smrt-ingestion:IntakeItem": {
|
|
8
8
|
"name": "intakeitem",
|
|
@@ -10,14 +10,12 @@
|
|
|
10
10
|
"qualifiedName": "@happyvertical/smrt-ingestion:IntakeItem",
|
|
11
11
|
"collection": "intakeitems",
|
|
12
12
|
"description": "Durable IntakeItem record; mutations belong to the server service.",
|
|
13
|
-
"filePath": "
|
|
13
|
+
"filePath": "src/models.ts",
|
|
14
14
|
"packageName": "@happyvertical/smrt-ingestion",
|
|
15
15
|
"fields": {
|
|
16
16
|
"tenantId": {
|
|
17
17
|
"type": "text",
|
|
18
|
-
"required": true,
|
|
19
18
|
"_meta": {
|
|
20
|
-
"sqlType": "UUID",
|
|
21
19
|
"__tenancy": {
|
|
22
20
|
"isTenantIdField": true,
|
|
23
21
|
"autoFilter": true,
|
|
@@ -27,159 +25,241 @@
|
|
|
27
25
|
"mode": "required",
|
|
28
26
|
"field": "tenantId",
|
|
29
27
|
"allowSuperAdminBypass": false
|
|
30
|
-
}
|
|
31
|
-
|
|
28
|
+
},
|
|
29
|
+
"__statedOptions": [
|
|
30
|
+
"sqlType",
|
|
31
|
+
"requiredFor",
|
|
32
|
+
"__tenancy"
|
|
33
|
+
],
|
|
34
|
+
"sqlType": "UUID",
|
|
35
|
+
"requiredFor": "tenant-scope"
|
|
36
|
+
},
|
|
37
|
+
"required": true
|
|
32
38
|
},
|
|
33
39
|
"confidentialScopeId": {
|
|
34
40
|
"type": "text",
|
|
35
|
-
"required": true,
|
|
36
41
|
"_meta": {
|
|
37
|
-
"
|
|
38
|
-
|
|
42
|
+
"__statedOptions": [
|
|
43
|
+
"required",
|
|
44
|
+
"requiredFor"
|
|
45
|
+
],
|
|
46
|
+
"required": true,
|
|
47
|
+
"requiredFor": "tenant-scope"
|
|
48
|
+
},
|
|
49
|
+
"required": true
|
|
39
50
|
},
|
|
40
51
|
"sourceId": {
|
|
41
52
|
"type": "text",
|
|
42
|
-
"required": true,
|
|
43
53
|
"_meta": {
|
|
44
|
-
"
|
|
45
|
-
|
|
54
|
+
"__statedOptions": [
|
|
55
|
+
"required",
|
|
56
|
+
"requiredFor"
|
|
57
|
+
],
|
|
58
|
+
"required": true,
|
|
59
|
+
"requiredFor": "identity"
|
|
60
|
+
},
|
|
61
|
+
"required": true
|
|
46
62
|
},
|
|
47
63
|
"sourceVersion": {
|
|
48
64
|
"type": "text",
|
|
49
|
-
"required": true,
|
|
50
65
|
"_meta": {
|
|
51
|
-
"
|
|
52
|
-
}
|
|
66
|
+
"__statedOptions": []
|
|
67
|
+
},
|
|
68
|
+
"required": false
|
|
53
69
|
},
|
|
54
70
|
"deliveryKey": {
|
|
55
71
|
"type": "text",
|
|
56
|
-
"required": true,
|
|
57
72
|
"_meta": {
|
|
58
|
-
"
|
|
59
|
-
|
|
73
|
+
"__statedOptions": [
|
|
74
|
+
"required",
|
|
75
|
+
"requiredFor"
|
|
76
|
+
],
|
|
77
|
+
"required": true,
|
|
78
|
+
"requiredFor": "identity"
|
|
79
|
+
},
|
|
80
|
+
"required": true
|
|
60
81
|
},
|
|
61
82
|
"payloadDigest": {
|
|
62
83
|
"type": "text",
|
|
63
|
-
"required": true,
|
|
64
84
|
"_meta": {
|
|
65
|
-
"
|
|
66
|
-
|
|
85
|
+
"__statedOptions": [
|
|
86
|
+
"required",
|
|
87
|
+
"requiredFor"
|
|
88
|
+
],
|
|
89
|
+
"required": true,
|
|
90
|
+
"requiredFor": "idempotency"
|
|
91
|
+
},
|
|
92
|
+
"required": true
|
|
67
93
|
},
|
|
68
94
|
"scopeDigest": {
|
|
69
95
|
"type": "text",
|
|
70
|
-
"required": true,
|
|
71
96
|
"_meta": {
|
|
72
|
-
"
|
|
73
|
-
|
|
97
|
+
"__statedOptions": [
|
|
98
|
+
"required",
|
|
99
|
+
"requiredFor"
|
|
100
|
+
],
|
|
101
|
+
"required": true,
|
|
102
|
+
"requiredFor": "idempotency"
|
|
103
|
+
},
|
|
104
|
+
"required": true
|
|
74
105
|
},
|
|
75
106
|
"receiptState": {
|
|
76
107
|
"type": "text",
|
|
77
|
-
"required": true,
|
|
78
108
|
"_meta": {
|
|
79
|
-
"
|
|
80
|
-
|
|
109
|
+
"__statedOptions": [
|
|
110
|
+
"required",
|
|
111
|
+
"requiredFor"
|
|
112
|
+
],
|
|
113
|
+
"required": true,
|
|
114
|
+
"requiredFor": "workflow-state"
|
|
115
|
+
},
|
|
116
|
+
"required": true
|
|
81
117
|
},
|
|
82
118
|
"processingState": {
|
|
83
119
|
"type": "text",
|
|
84
|
-
"required": true,
|
|
85
120
|
"_meta": {
|
|
86
|
-
"
|
|
87
|
-
|
|
121
|
+
"__statedOptions": [
|
|
122
|
+
"required",
|
|
123
|
+
"requiredFor"
|
|
124
|
+
],
|
|
125
|
+
"required": true,
|
|
126
|
+
"requiredFor": "workflow-state"
|
|
127
|
+
},
|
|
128
|
+
"required": true
|
|
88
129
|
},
|
|
89
130
|
"visibility": {
|
|
90
131
|
"type": "text",
|
|
91
|
-
"required": true,
|
|
92
132
|
"_meta": {
|
|
93
|
-
"
|
|
94
|
-
|
|
133
|
+
"__statedOptions": [
|
|
134
|
+
"required",
|
|
135
|
+
"requiredFor"
|
|
136
|
+
],
|
|
137
|
+
"required": true,
|
|
138
|
+
"requiredFor": "workflow-state"
|
|
139
|
+
},
|
|
140
|
+
"required": true
|
|
95
141
|
},
|
|
96
142
|
"receiptVersion": {
|
|
97
143
|
"type": "integer",
|
|
98
|
-
"required": true,
|
|
99
144
|
"_meta": {
|
|
145
|
+
"__statedOptions": [
|
|
146
|
+
"required"
|
|
147
|
+
],
|
|
100
148
|
"required": true
|
|
101
|
-
}
|
|
149
|
+
},
|
|
150
|
+
"required": true
|
|
102
151
|
},
|
|
103
152
|
"analysisRevision": {
|
|
104
153
|
"type": "integer",
|
|
105
|
-
"required": true,
|
|
106
154
|
"_meta": {
|
|
155
|
+
"__statedOptions": [
|
|
156
|
+
"required"
|
|
157
|
+
],
|
|
107
158
|
"required": true
|
|
108
|
-
}
|
|
159
|
+
},
|
|
160
|
+
"required": true
|
|
109
161
|
},
|
|
110
162
|
"fence": {
|
|
111
163
|
"type": "integer",
|
|
112
|
-
"required": true,
|
|
113
164
|
"_meta": {
|
|
165
|
+
"__statedOptions": [
|
|
166
|
+
"required"
|
|
167
|
+
],
|
|
114
168
|
"required": true
|
|
115
|
-
}
|
|
169
|
+
},
|
|
170
|
+
"required": true
|
|
116
171
|
},
|
|
117
172
|
"leaseToken": {
|
|
118
173
|
"type": "text",
|
|
119
|
-
"required": true,
|
|
120
174
|
"_meta": {
|
|
121
|
-
"
|
|
122
|
-
}
|
|
175
|
+
"__statedOptions": []
|
|
176
|
+
},
|
|
177
|
+
"required": false
|
|
123
178
|
},
|
|
124
179
|
"leaseUntil": {
|
|
125
180
|
"type": "datetime",
|
|
126
|
-
"required": false,
|
|
127
181
|
"_meta": {
|
|
128
|
-
"
|
|
129
|
-
|
|
182
|
+
"__statedOptions": [
|
|
183
|
+
"nullable",
|
|
184
|
+
"required"
|
|
185
|
+
],
|
|
186
|
+
"nullable": true,
|
|
187
|
+
"required": false
|
|
188
|
+
},
|
|
189
|
+
"required": false
|
|
130
190
|
},
|
|
131
191
|
"expiresAt": {
|
|
132
192
|
"type": "datetime",
|
|
133
|
-
"required": true,
|
|
134
193
|
"_meta": {
|
|
194
|
+
"__statedOptions": [
|
|
195
|
+
"required"
|
|
196
|
+
],
|
|
135
197
|
"required": true
|
|
136
|
-
}
|
|
198
|
+
},
|
|
199
|
+
"required": true
|
|
137
200
|
},
|
|
138
201
|
"replayUntil": {
|
|
139
202
|
"type": "datetime",
|
|
140
|
-
"required": true,
|
|
141
203
|
"_meta": {
|
|
204
|
+
"__statedOptions": [
|
|
205
|
+
"required"
|
|
206
|
+
],
|
|
142
207
|
"required": true
|
|
143
|
-
}
|
|
208
|
+
},
|
|
209
|
+
"required": true
|
|
144
210
|
},
|
|
145
211
|
"cancelled": {
|
|
146
212
|
"type": "boolean",
|
|
147
|
-
"required": true,
|
|
148
213
|
"_meta": {
|
|
214
|
+
"__statedOptions": [
|
|
215
|
+
"required"
|
|
216
|
+
],
|
|
149
217
|
"required": true
|
|
150
|
-
}
|
|
218
|
+
},
|
|
219
|
+
"required": true
|
|
151
220
|
},
|
|
152
221
|
"traceId": {
|
|
153
222
|
"type": "text",
|
|
154
|
-
"required": true,
|
|
155
223
|
"_meta": {
|
|
156
|
-
"
|
|
157
|
-
}
|
|
224
|
+
"__statedOptions": []
|
|
225
|
+
},
|
|
226
|
+
"required": false
|
|
158
227
|
},
|
|
159
228
|
"submitterId": {
|
|
160
229
|
"type": "text",
|
|
161
|
-
"required": true,
|
|
162
|
-
"default": "",
|
|
163
230
|
"_meta": {
|
|
231
|
+
"__statedOptions": [
|
|
232
|
+
"required",
|
|
233
|
+
"requiredFor",
|
|
234
|
+
"default"
|
|
235
|
+
],
|
|
164
236
|
"required": true,
|
|
165
|
-
"default": ""
|
|
166
|
-
|
|
237
|
+
"default": "",
|
|
238
|
+
"requiredFor": "identity"
|
|
239
|
+
},
|
|
240
|
+
"required": true,
|
|
241
|
+
"default": ""
|
|
167
242
|
},
|
|
168
243
|
"ownerKey": {
|
|
169
244
|
"type": "text",
|
|
170
|
-
"required": true,
|
|
171
|
-
"default": "",
|
|
172
245
|
"_meta": {
|
|
173
|
-
"
|
|
246
|
+
"__statedOptions": [
|
|
247
|
+
"default"
|
|
248
|
+
],
|
|
174
249
|
"default": ""
|
|
175
|
-
}
|
|
250
|
+
},
|
|
251
|
+
"required": false,
|
|
252
|
+
"default": ""
|
|
176
253
|
},
|
|
177
254
|
"data": {
|
|
178
255
|
"type": "json",
|
|
179
|
-
"required": true,
|
|
180
256
|
"_meta": {
|
|
257
|
+
"__statedOptions": [
|
|
258
|
+
"required"
|
|
259
|
+
],
|
|
181
260
|
"required": true
|
|
182
|
-
}
|
|
261
|
+
},
|
|
262
|
+
"required": true
|
|
183
263
|
}
|
|
184
264
|
},
|
|
185
265
|
"methods": {
|
|
@@ -267,11 +347,6 @@
|
|
|
267
347
|
"rule": "required",
|
|
268
348
|
"fieldType": "text"
|
|
269
349
|
},
|
|
270
|
-
{
|
|
271
|
-
"field": "sourceVersion",
|
|
272
|
-
"rule": "required",
|
|
273
|
-
"fieldType": "text"
|
|
274
|
-
},
|
|
275
350
|
{
|
|
276
351
|
"field": "deliveryKey",
|
|
277
352
|
"rule": "required",
|
|
@@ -317,11 +392,6 @@
|
|
|
317
392
|
"rule": "required",
|
|
318
393
|
"fieldType": "integer"
|
|
319
394
|
},
|
|
320
|
-
{
|
|
321
|
-
"field": "leaseToken",
|
|
322
|
-
"rule": "required",
|
|
323
|
-
"fieldType": "text"
|
|
324
|
-
},
|
|
325
395
|
{
|
|
326
396
|
"field": "expiresAt",
|
|
327
397
|
"rule": "required",
|
|
@@ -337,21 +407,11 @@
|
|
|
337
407
|
"rule": "required",
|
|
338
408
|
"fieldType": "boolean"
|
|
339
409
|
},
|
|
340
|
-
{
|
|
341
|
-
"field": "traceId",
|
|
342
|
-
"rule": "required",
|
|
343
|
-
"fieldType": "text"
|
|
344
|
-
},
|
|
345
410
|
{
|
|
346
411
|
"field": "submitterId",
|
|
347
412
|
"rule": "required",
|
|
348
413
|
"fieldType": "text"
|
|
349
414
|
},
|
|
350
|
-
{
|
|
351
|
-
"field": "ownerKey",
|
|
352
|
-
"rule": "required",
|
|
353
|
-
"fieldType": "text"
|
|
354
|
-
},
|
|
355
415
|
{
|
|
356
416
|
"field": "data",
|
|
357
417
|
"rule": "required",
|
|
@@ -360,7 +420,7 @@
|
|
|
360
420
|
],
|
|
361
421
|
"schema": {
|
|
362
422
|
"tableName": "intake_items",
|
|
363
|
-
"ddl": "CREATE TABLE IF NOT EXISTS \"intake_items\" (\n \"_sync_origin_device_id\" TEXT,\n \"_sync_revision\" INTEGER,\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID NOT NULL,\n \"confidential_scope_id\" TEXT NOT NULL,\n \"source_id\" TEXT NOT NULL,\n \"source_version\" TEXT
|
|
423
|
+
"ddl": "CREATE TABLE IF NOT EXISTS \"intake_items\" (\n \"_sync_origin_device_id\" TEXT,\n \"_sync_revision\" INTEGER,\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID NOT NULL,\n \"confidential_scope_id\" TEXT NOT NULL,\n \"source_id\" TEXT NOT NULL,\n \"source_version\" TEXT,\n \"delivery_key\" TEXT NOT NULL,\n \"payload_digest\" TEXT NOT NULL,\n \"scope_digest\" TEXT NOT NULL,\n \"receipt_state\" TEXT NOT NULL,\n \"processing_state\" TEXT NOT NULL,\n \"visibility\" TEXT NOT NULL,\n \"receipt_version\" INTEGER NOT NULL,\n \"analysis_revision\" INTEGER NOT NULL,\n \"fence\" INTEGER NOT NULL,\n \"lease_token\" TEXT,\n \"lease_until\" TIMESTAMP,\n \"expires_at\" TIMESTAMP NOT NULL,\n \"replay_until\" TIMESTAMP NOT NULL,\n \"cancelled\" BOOLEAN NOT NULL,\n \"trace_id\" TEXT,\n \"submitter_id\" TEXT NOT NULL DEFAULT '',\n \"owner_key\" TEXT DEFAULT '',\n \"data\" JSON NOT NULL\n);",
|
|
364
424
|
"columns": {
|
|
365
425
|
"_sync_origin_device_id": {
|
|
366
426
|
"type": "TEXT"
|
|
@@ -411,7 +471,7 @@
|
|
|
411
471
|
},
|
|
412
472
|
"source_version": {
|
|
413
473
|
"type": "TEXT",
|
|
414
|
-
"notNull":
|
|
474
|
+
"notNull": false,
|
|
415
475
|
"unique": false
|
|
416
476
|
},
|
|
417
477
|
"delivery_key": {
|
|
@@ -461,7 +521,7 @@
|
|
|
461
521
|
},
|
|
462
522
|
"lease_token": {
|
|
463
523
|
"type": "TEXT",
|
|
464
|
-
"notNull":
|
|
524
|
+
"notNull": false,
|
|
465
525
|
"unique": false
|
|
466
526
|
},
|
|
467
527
|
"lease_until": {
|
|
@@ -486,7 +546,7 @@
|
|
|
486
546
|
},
|
|
487
547
|
"trace_id": {
|
|
488
548
|
"type": "TEXT",
|
|
489
|
-
"notNull":
|
|
549
|
+
"notNull": false,
|
|
490
550
|
"unique": false
|
|
491
551
|
},
|
|
492
552
|
"submitter_id": {
|
|
@@ -497,7 +557,7 @@
|
|
|
497
557
|
},
|
|
498
558
|
"owner_key": {
|
|
499
559
|
"type": "TEXT",
|
|
500
|
-
"notNull":
|
|
560
|
+
"notNull": false,
|
|
501
561
|
"unique": false,
|
|
502
562
|
"default": ""
|
|
503
563
|
},
|
|
@@ -577,7 +637,7 @@
|
|
|
577
637
|
]
|
|
578
638
|
}
|
|
579
639
|
],
|
|
580
|
-
"version": "
|
|
640
|
+
"version": "97b97186"
|
|
581
641
|
},
|
|
582
642
|
"importPath": "@happyvertical/smrt-ingestion/models"
|
|
583
643
|
},
|
|
@@ -587,14 +647,12 @@
|
|
|
587
647
|
"qualifiedName": "@happyvertical/smrt-ingestion:IntakeEvidence",
|
|
588
648
|
"collection": "intakeevidences",
|
|
589
649
|
"description": "Durable IntakeEvidence record; mutations belong to the server service.",
|
|
590
|
-
"filePath": "
|
|
650
|
+
"filePath": "src/models.ts",
|
|
591
651
|
"packageName": "@happyvertical/smrt-ingestion",
|
|
592
652
|
"fields": {
|
|
593
653
|
"tenantId": {
|
|
594
654
|
"type": "text",
|
|
595
|
-
"required": true,
|
|
596
655
|
"_meta": {
|
|
597
|
-
"sqlType": "UUID",
|
|
598
656
|
"__tenancy": {
|
|
599
657
|
"isTenantIdField": true,
|
|
600
658
|
"autoFilter": true,
|
|
@@ -604,89 +662,137 @@
|
|
|
604
662
|
"mode": "required",
|
|
605
663
|
"field": "tenantId",
|
|
606
664
|
"allowSuperAdminBypass": false
|
|
607
|
-
}
|
|
608
|
-
|
|
665
|
+
},
|
|
666
|
+
"__statedOptions": [
|
|
667
|
+
"sqlType",
|
|
668
|
+
"requiredFor",
|
|
669
|
+
"__tenancy"
|
|
670
|
+
],
|
|
671
|
+
"sqlType": "UUID",
|
|
672
|
+
"requiredFor": "tenant-scope"
|
|
673
|
+
},
|
|
674
|
+
"required": true
|
|
609
675
|
},
|
|
610
676
|
"confidentialScopeId": {
|
|
611
677
|
"type": "text",
|
|
612
|
-
"required": true,
|
|
613
678
|
"_meta": {
|
|
614
|
-
"
|
|
615
|
-
|
|
679
|
+
"__statedOptions": [
|
|
680
|
+
"required",
|
|
681
|
+
"requiredFor"
|
|
682
|
+
],
|
|
683
|
+
"required": true,
|
|
684
|
+
"requiredFor": "tenant-scope"
|
|
685
|
+
},
|
|
686
|
+
"required": true
|
|
616
687
|
},
|
|
617
688
|
"itemId": {
|
|
618
689
|
"type": "foreignKey",
|
|
619
|
-
"required": true,
|
|
620
|
-
"related": "IntakeItem",
|
|
621
690
|
"_meta": {
|
|
622
|
-
"
|
|
623
|
-
|
|
691
|
+
"__statedOptions": [
|
|
692
|
+
"required",
|
|
693
|
+
"requiredFor",
|
|
694
|
+
"related"
|
|
695
|
+
],
|
|
696
|
+
"required": true,
|
|
697
|
+
"requiredFor": "identity"
|
|
698
|
+
},
|
|
699
|
+
"required": true,
|
|
700
|
+
"related": "IntakeItem"
|
|
624
701
|
},
|
|
625
702
|
"partId": {
|
|
626
703
|
"type": "text",
|
|
627
|
-
"required": true,
|
|
628
704
|
"_meta": {
|
|
629
|
-
"
|
|
630
|
-
|
|
705
|
+
"__statedOptions": [
|
|
706
|
+
"required",
|
|
707
|
+
"requiredFor"
|
|
708
|
+
],
|
|
709
|
+
"required": true,
|
|
710
|
+
"requiredFor": "identity"
|
|
711
|
+
},
|
|
712
|
+
"required": true
|
|
631
713
|
},
|
|
632
714
|
"parentEvidenceId": {
|
|
633
715
|
"type": "foreignKey",
|
|
634
|
-
"required": false,
|
|
635
|
-
"related": "IntakeEvidence",
|
|
636
716
|
"_meta": {
|
|
637
|
-
"
|
|
638
|
-
|
|
717
|
+
"__statedOptions": [
|
|
718
|
+
"nullable",
|
|
719
|
+
"related",
|
|
720
|
+
"required"
|
|
721
|
+
],
|
|
722
|
+
"nullable": true,
|
|
723
|
+
"required": false
|
|
724
|
+
},
|
|
725
|
+
"required": false,
|
|
726
|
+
"related": "IntakeEvidence"
|
|
639
727
|
},
|
|
640
728
|
"assetId": {
|
|
641
729
|
"type": "crossPackageRef",
|
|
642
|
-
"required": false,
|
|
643
|
-
"related": "@happyvertical/smrt-assets:Asset",
|
|
644
730
|
"_meta": {
|
|
731
|
+
"__statedOptions": [
|
|
732
|
+
"nullable",
|
|
733
|
+
"onDelete",
|
|
734
|
+
"related",
|
|
735
|
+
"required"
|
|
736
|
+
],
|
|
645
737
|
"nullable": true,
|
|
646
|
-
"onDelete": "SET NULL"
|
|
647
|
-
|
|
738
|
+
"onDelete": "SET NULL",
|
|
739
|
+
"required": false
|
|
740
|
+
},
|
|
741
|
+
"required": false,
|
|
742
|
+
"related": "@happyvertical/smrt-assets:Asset"
|
|
648
743
|
},
|
|
649
744
|
"state": {
|
|
650
745
|
"type": "text",
|
|
651
|
-
"required": true,
|
|
652
746
|
"_meta": {
|
|
653
|
-
"
|
|
654
|
-
|
|
747
|
+
"__statedOptions": [
|
|
748
|
+
"required",
|
|
749
|
+
"requiredFor"
|
|
750
|
+
],
|
|
751
|
+
"required": true,
|
|
752
|
+
"requiredFor": "workflow-state"
|
|
753
|
+
},
|
|
754
|
+
"required": true
|
|
655
755
|
},
|
|
656
756
|
"contentHash": {
|
|
657
757
|
"type": "text",
|
|
658
|
-
"required": true,
|
|
659
758
|
"_meta": {
|
|
660
|
-
"
|
|
661
|
-
}
|
|
759
|
+
"__statedOptions": []
|
|
760
|
+
},
|
|
761
|
+
"required": false
|
|
662
762
|
},
|
|
663
763
|
"byteLength": {
|
|
664
764
|
"type": "integer",
|
|
665
|
-
"required": true,
|
|
666
765
|
"_meta": {
|
|
766
|
+
"__statedOptions": [
|
|
767
|
+
"required"
|
|
768
|
+
],
|
|
667
769
|
"required": true
|
|
668
|
-
}
|
|
770
|
+
},
|
|
771
|
+
"required": true
|
|
669
772
|
},
|
|
670
773
|
"mediaType": {
|
|
671
774
|
"type": "text",
|
|
672
|
-
"required": true,
|
|
673
775
|
"_meta": {
|
|
674
|
-
"
|
|
675
|
-
}
|
|
776
|
+
"__statedOptions": []
|
|
777
|
+
},
|
|
778
|
+
"required": false
|
|
676
779
|
},
|
|
677
780
|
"sourceUri": {
|
|
678
781
|
"type": "text",
|
|
679
|
-
"required": true,
|
|
680
782
|
"_meta": {
|
|
681
|
-
"
|
|
682
|
-
}
|
|
783
|
+
"__statedOptions": []
|
|
784
|
+
},
|
|
785
|
+
"required": false
|
|
683
786
|
},
|
|
684
787
|
"data": {
|
|
685
788
|
"type": "json",
|
|
686
|
-
"required": true,
|
|
687
789
|
"_meta": {
|
|
790
|
+
"__statedOptions": [
|
|
791
|
+
"required"
|
|
792
|
+
],
|
|
688
793
|
"required": true
|
|
689
|
-
}
|
|
794
|
+
},
|
|
795
|
+
"required": true
|
|
690
796
|
}
|
|
691
797
|
},
|
|
692
798
|
"methods": {
|
|
@@ -760,26 +866,11 @@
|
|
|
760
866
|
"rule": "required",
|
|
761
867
|
"fieldType": "text"
|
|
762
868
|
},
|
|
763
|
-
{
|
|
764
|
-
"field": "contentHash",
|
|
765
|
-
"rule": "required",
|
|
766
|
-
"fieldType": "text"
|
|
767
|
-
},
|
|
768
869
|
{
|
|
769
870
|
"field": "byteLength",
|
|
770
871
|
"rule": "required",
|
|
771
872
|
"fieldType": "integer"
|
|
772
873
|
},
|
|
773
|
-
{
|
|
774
|
-
"field": "mediaType",
|
|
775
|
-
"rule": "required",
|
|
776
|
-
"fieldType": "text"
|
|
777
|
-
},
|
|
778
|
-
{
|
|
779
|
-
"field": "sourceUri",
|
|
780
|
-
"rule": "required",
|
|
781
|
-
"fieldType": "text"
|
|
782
|
-
},
|
|
783
874
|
{
|
|
784
875
|
"field": "data",
|
|
785
876
|
"rule": "required",
|
|
@@ -788,7 +879,7 @@
|
|
|
788
879
|
],
|
|
789
880
|
"schema": {
|
|
790
881
|
"tableName": "intake_evidence",
|
|
791
|
-
"ddl": "CREATE TABLE IF NOT EXISTS \"intake_evidence\" (\n \"_sync_origin_device_id\" TEXT,\n \"_sync_revision\" INTEGER,\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID NOT NULL,\n \"confidential_scope_id\" TEXT NOT NULL,\n \"item_id\" UUID NOT NULL,\n \"part_id\" TEXT NOT NULL,\n \"parent_evidence_id\" UUID,\n \"asset_id\" UUID,\n \"state\" TEXT NOT NULL,\n \"content_hash\" TEXT
|
|
882
|
+
"ddl": "CREATE TABLE IF NOT EXISTS \"intake_evidence\" (\n \"_sync_origin_device_id\" TEXT,\n \"_sync_revision\" INTEGER,\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID NOT NULL,\n \"confidential_scope_id\" TEXT NOT NULL,\n \"item_id\" UUID NOT NULL,\n \"part_id\" TEXT NOT NULL,\n \"parent_evidence_id\" UUID,\n \"asset_id\" UUID,\n \"state\" TEXT NOT NULL,\n \"content_hash\" TEXT,\n \"byte_length\" INTEGER NOT NULL,\n \"media_type\" TEXT,\n \"source_uri\" TEXT,\n \"data\" JSON NOT NULL\n);",
|
|
792
883
|
"columns": {
|
|
793
884
|
"_sync_origin_device_id": {
|
|
794
885
|
"type": "TEXT"
|
|
@@ -874,7 +965,7 @@
|
|
|
874
965
|
},
|
|
875
966
|
"content_hash": {
|
|
876
967
|
"type": "TEXT",
|
|
877
|
-
"notNull":
|
|
968
|
+
"notNull": false,
|
|
878
969
|
"unique": false
|
|
879
970
|
},
|
|
880
971
|
"byte_length": {
|
|
@@ -884,12 +975,12 @@
|
|
|
884
975
|
},
|
|
885
976
|
"media_type": {
|
|
886
977
|
"type": "TEXT",
|
|
887
|
-
"notNull":
|
|
978
|
+
"notNull": false,
|
|
888
979
|
"unique": false
|
|
889
980
|
},
|
|
890
981
|
"source_uri": {
|
|
891
982
|
"type": "TEXT",
|
|
892
|
-
"notNull":
|
|
983
|
+
"notNull": false,
|
|
893
984
|
"unique": false
|
|
894
985
|
},
|
|
895
986
|
"data": {
|
|
@@ -962,7 +1053,7 @@
|
|
|
962
1053
|
]
|
|
963
1054
|
}
|
|
964
1055
|
],
|
|
965
|
-
"version": "
|
|
1056
|
+
"version": "e1a663f0"
|
|
966
1057
|
},
|
|
967
1058
|
"importPath": "@happyvertical/smrt-ingestion/models"
|
|
968
1059
|
},
|
|
@@ -972,14 +1063,12 @@
|
|
|
972
1063
|
"qualifiedName": "@happyvertical/smrt-ingestion:IntakeAnalysis",
|
|
973
1064
|
"collection": "intakeanalysises",
|
|
974
1065
|
"description": "Durable IntakeAnalysis record; mutations belong to the server service.",
|
|
975
|
-
"filePath": "
|
|
1066
|
+
"filePath": "src/models.ts",
|
|
976
1067
|
"packageName": "@happyvertical/smrt-ingestion",
|
|
977
1068
|
"fields": {
|
|
978
1069
|
"tenantId": {
|
|
979
1070
|
"type": "text",
|
|
980
|
-
"required": true,
|
|
981
1071
|
"_meta": {
|
|
982
|
-
"sqlType": "UUID",
|
|
983
1072
|
"__tenancy": {
|
|
984
1073
|
"isTenantIdField": true,
|
|
985
1074
|
"autoFilter": true,
|
|
@@ -989,73 +1078,120 @@
|
|
|
989
1078
|
"mode": "required",
|
|
990
1079
|
"field": "tenantId",
|
|
991
1080
|
"allowSuperAdminBypass": false
|
|
992
|
-
}
|
|
993
|
-
|
|
1081
|
+
},
|
|
1082
|
+
"__statedOptions": [
|
|
1083
|
+
"sqlType",
|
|
1084
|
+
"requiredFor",
|
|
1085
|
+
"__tenancy"
|
|
1086
|
+
],
|
|
1087
|
+
"sqlType": "UUID",
|
|
1088
|
+
"requiredFor": "tenant-scope"
|
|
1089
|
+
},
|
|
1090
|
+
"required": true
|
|
994
1091
|
},
|
|
995
1092
|
"confidentialScopeId": {
|
|
996
1093
|
"type": "text",
|
|
997
|
-
"required": true,
|
|
998
1094
|
"_meta": {
|
|
999
|
-
"
|
|
1000
|
-
|
|
1095
|
+
"__statedOptions": [
|
|
1096
|
+
"required",
|
|
1097
|
+
"requiredFor"
|
|
1098
|
+
],
|
|
1099
|
+
"required": true,
|
|
1100
|
+
"requiredFor": "tenant-scope"
|
|
1101
|
+
},
|
|
1102
|
+
"required": true
|
|
1001
1103
|
},
|
|
1002
1104
|
"itemId": {
|
|
1003
1105
|
"type": "foreignKey",
|
|
1004
|
-
"required": true,
|
|
1005
|
-
"related": "IntakeItem",
|
|
1006
1106
|
"_meta": {
|
|
1007
|
-
"
|
|
1008
|
-
|
|
1107
|
+
"__statedOptions": [
|
|
1108
|
+
"required",
|
|
1109
|
+
"requiredFor",
|
|
1110
|
+
"related"
|
|
1111
|
+
],
|
|
1112
|
+
"required": true,
|
|
1113
|
+
"requiredFor": "identity"
|
|
1114
|
+
},
|
|
1115
|
+
"required": true,
|
|
1116
|
+
"related": "IntakeItem"
|
|
1009
1117
|
},
|
|
1010
1118
|
"revision": {
|
|
1011
1119
|
"type": "integer",
|
|
1012
|
-
"required": true,
|
|
1013
1120
|
"_meta": {
|
|
1121
|
+
"__statedOptions": [
|
|
1122
|
+
"required"
|
|
1123
|
+
],
|
|
1014
1124
|
"required": true
|
|
1015
|
-
}
|
|
1125
|
+
},
|
|
1126
|
+
"required": true
|
|
1016
1127
|
},
|
|
1017
1128
|
"fence": {
|
|
1018
1129
|
"type": "integer",
|
|
1019
|
-
"required": true,
|
|
1020
1130
|
"_meta": {
|
|
1131
|
+
"__statedOptions": [
|
|
1132
|
+
"required"
|
|
1133
|
+
],
|
|
1021
1134
|
"required": true
|
|
1022
|
-
}
|
|
1135
|
+
},
|
|
1136
|
+
"required": true
|
|
1023
1137
|
},
|
|
1024
1138
|
"attemptNumber": {
|
|
1025
1139
|
"type": "integer",
|
|
1026
|
-
"required": true,
|
|
1027
1140
|
"_meta": {
|
|
1141
|
+
"__statedOptions": [
|
|
1142
|
+
"required"
|
|
1143
|
+
],
|
|
1028
1144
|
"required": true
|
|
1029
|
-
}
|
|
1145
|
+
},
|
|
1146
|
+
"required": true
|
|
1030
1147
|
},
|
|
1031
1148
|
"currentAttemptId": {
|
|
1032
1149
|
"type": "foreignKey",
|
|
1033
|
-
"required": false,
|
|
1034
|
-
"related": "IntakeAnalysisAttempt",
|
|
1035
1150
|
"_meta": {
|
|
1036
|
-
"
|
|
1037
|
-
|
|
1151
|
+
"__statedOptions": [
|
|
1152
|
+
"nullable",
|
|
1153
|
+
"related",
|
|
1154
|
+
"required"
|
|
1155
|
+
],
|
|
1156
|
+
"nullable": true,
|
|
1157
|
+
"required": false
|
|
1158
|
+
},
|
|
1159
|
+
"required": false,
|
|
1160
|
+
"related": "IntakeAnalysisAttempt"
|
|
1038
1161
|
},
|
|
1039
1162
|
"state": {
|
|
1040
1163
|
"type": "text",
|
|
1041
|
-
"required": true,
|
|
1042
1164
|
"_meta": {
|
|
1043
|
-
"
|
|
1044
|
-
|
|
1165
|
+
"__statedOptions": [
|
|
1166
|
+
"required",
|
|
1167
|
+
"requiredFor"
|
|
1168
|
+
],
|
|
1169
|
+
"required": true,
|
|
1170
|
+
"requiredFor": "workflow-state"
|
|
1171
|
+
},
|
|
1172
|
+
"required": true
|
|
1045
1173
|
},
|
|
1046
1174
|
"inputDigest": {
|
|
1047
1175
|
"type": "text",
|
|
1048
|
-
"required": true,
|
|
1049
1176
|
"_meta": {
|
|
1050
|
-
"
|
|
1051
|
-
|
|
1177
|
+
"__statedOptions": [
|
|
1178
|
+
"required",
|
|
1179
|
+
"requiredFor"
|
|
1180
|
+
],
|
|
1181
|
+
"required": true,
|
|
1182
|
+
"requiredFor": "integrity"
|
|
1183
|
+
},
|
|
1184
|
+
"required": true
|
|
1052
1185
|
},
|
|
1053
1186
|
"data": {
|
|
1054
1187
|
"type": "json",
|
|
1055
|
-
"required": true,
|
|
1056
1188
|
"_meta": {
|
|
1189
|
+
"__statedOptions": [
|
|
1190
|
+
"required"
|
|
1191
|
+
],
|
|
1057
1192
|
"required": true
|
|
1058
|
-
}
|
|
1193
|
+
},
|
|
1194
|
+
"required": true
|
|
1059
1195
|
}
|
|
1060
1196
|
},
|
|
1061
1197
|
"methods": {
|
|
@@ -1319,14 +1455,12 @@
|
|
|
1319
1455
|
"qualifiedName": "@happyvertical/smrt-ingestion:IntakeAnalysisAttempt",
|
|
1320
1456
|
"collection": "intakeanalysisattempts",
|
|
1321
1457
|
"description": "Durable IntakeAnalysisAttempt record; mutations belong to the server service.",
|
|
1322
|
-
"filePath": "
|
|
1458
|
+
"filePath": "src/models.ts",
|
|
1323
1459
|
"packageName": "@happyvertical/smrt-ingestion",
|
|
1324
1460
|
"fields": {
|
|
1325
1461
|
"tenantId": {
|
|
1326
1462
|
"type": "text",
|
|
1327
|
-
"required": true,
|
|
1328
1463
|
"_meta": {
|
|
1329
|
-
"sqlType": "UUID",
|
|
1330
1464
|
"__tenancy": {
|
|
1331
1465
|
"isTenantIdField": true,
|
|
1332
1466
|
"autoFilter": true,
|
|
@@ -1336,94 +1470,143 @@
|
|
|
1336
1470
|
"mode": "required",
|
|
1337
1471
|
"field": "tenantId",
|
|
1338
1472
|
"allowSuperAdminBypass": false
|
|
1339
|
-
}
|
|
1340
|
-
|
|
1473
|
+
},
|
|
1474
|
+
"__statedOptions": [
|
|
1475
|
+
"sqlType",
|
|
1476
|
+
"requiredFor",
|
|
1477
|
+
"__tenancy"
|
|
1478
|
+
],
|
|
1479
|
+
"sqlType": "UUID",
|
|
1480
|
+
"requiredFor": "tenant-scope"
|
|
1481
|
+
},
|
|
1482
|
+
"required": true
|
|
1341
1483
|
},
|
|
1342
1484
|
"confidentialScopeId": {
|
|
1343
1485
|
"type": "text",
|
|
1344
|
-
"required": true,
|
|
1345
1486
|
"_meta": {
|
|
1346
|
-
"
|
|
1347
|
-
|
|
1487
|
+
"__statedOptions": [
|
|
1488
|
+
"required",
|
|
1489
|
+
"requiredFor"
|
|
1490
|
+
],
|
|
1491
|
+
"required": true,
|
|
1492
|
+
"requiredFor": "tenant-scope"
|
|
1493
|
+
},
|
|
1494
|
+
"required": true
|
|
1348
1495
|
},
|
|
1349
1496
|
"itemId": {
|
|
1350
1497
|
"type": "foreignKey",
|
|
1498
|
+
"_meta": {
|
|
1499
|
+
"__statedOptions": [
|
|
1500
|
+
"required",
|
|
1501
|
+
"requiredFor",
|
|
1502
|
+
"related"
|
|
1503
|
+
],
|
|
1504
|
+
"required": true,
|
|
1505
|
+
"requiredFor": "identity"
|
|
1506
|
+
},
|
|
1351
1507
|
"required": true,
|
|
1352
|
-
"related": "IntakeItem"
|
|
1353
|
-
"_meta": {
|
|
1354
|
-
"required": true
|
|
1355
|
-
}
|
|
1508
|
+
"related": "IntakeItem"
|
|
1356
1509
|
},
|
|
1357
1510
|
"analysisId": {
|
|
1358
1511
|
"type": "foreignKey",
|
|
1359
|
-
"required": true,
|
|
1360
|
-
"related": "IntakeAnalysis",
|
|
1361
1512
|
"_meta": {
|
|
1362
|
-
"
|
|
1363
|
-
|
|
1513
|
+
"__statedOptions": [
|
|
1514
|
+
"required",
|
|
1515
|
+
"requiredFor",
|
|
1516
|
+
"related"
|
|
1517
|
+
],
|
|
1518
|
+
"required": true,
|
|
1519
|
+
"requiredFor": "identity"
|
|
1520
|
+
},
|
|
1521
|
+
"required": true,
|
|
1522
|
+
"related": "IntakeAnalysis"
|
|
1364
1523
|
},
|
|
1365
1524
|
"attemptNumber": {
|
|
1366
1525
|
"type": "integer",
|
|
1367
|
-
"required": true,
|
|
1368
1526
|
"_meta": {
|
|
1527
|
+
"__statedOptions": [
|
|
1528
|
+
"required"
|
|
1529
|
+
],
|
|
1369
1530
|
"required": true
|
|
1370
|
-
}
|
|
1531
|
+
},
|
|
1532
|
+
"required": true
|
|
1371
1533
|
},
|
|
1372
1534
|
"fence": {
|
|
1373
1535
|
"type": "integer",
|
|
1374
|
-
"required": true,
|
|
1375
1536
|
"_meta": {
|
|
1537
|
+
"__statedOptions": [
|
|
1538
|
+
"required"
|
|
1539
|
+
],
|
|
1376
1540
|
"required": true
|
|
1377
|
-
}
|
|
1541
|
+
},
|
|
1542
|
+
"required": true
|
|
1378
1543
|
},
|
|
1379
1544
|
"state": {
|
|
1380
1545
|
"type": "text",
|
|
1381
|
-
"required": true,
|
|
1382
1546
|
"_meta": {
|
|
1383
|
-
"
|
|
1384
|
-
|
|
1547
|
+
"__statedOptions": [
|
|
1548
|
+
"required",
|
|
1549
|
+
"requiredFor"
|
|
1550
|
+
],
|
|
1551
|
+
"required": true,
|
|
1552
|
+
"requiredFor": "workflow-state"
|
|
1553
|
+
},
|
|
1554
|
+
"required": true
|
|
1385
1555
|
},
|
|
1386
1556
|
"leaseToken": {
|
|
1387
1557
|
"type": "text",
|
|
1388
|
-
"required": true,
|
|
1389
1558
|
"_meta": {
|
|
1390
|
-
"
|
|
1391
|
-
}
|
|
1559
|
+
"__statedOptions": []
|
|
1560
|
+
},
|
|
1561
|
+
"required": false
|
|
1392
1562
|
},
|
|
1393
1563
|
"leaseUntil": {
|
|
1394
1564
|
"type": "datetime",
|
|
1395
|
-
"required": false,
|
|
1396
1565
|
"_meta": {
|
|
1397
|
-
"
|
|
1398
|
-
|
|
1566
|
+
"__statedOptions": [
|
|
1567
|
+
"nullable",
|
|
1568
|
+
"required"
|
|
1569
|
+
],
|
|
1570
|
+
"nullable": true,
|
|
1571
|
+
"required": false
|
|
1572
|
+
},
|
|
1573
|
+
"required": false
|
|
1399
1574
|
},
|
|
1400
1575
|
"outputDigest": {
|
|
1401
1576
|
"type": "text",
|
|
1402
|
-
"required": true,
|
|
1403
1577
|
"_meta": {
|
|
1404
|
-
"
|
|
1405
|
-
}
|
|
1578
|
+
"__statedOptions": []
|
|
1579
|
+
},
|
|
1580
|
+
"required": false
|
|
1406
1581
|
},
|
|
1407
1582
|
"safeError": {
|
|
1408
1583
|
"type": "text",
|
|
1409
|
-
"required": true,
|
|
1410
1584
|
"_meta": {
|
|
1411
|
-
"
|
|
1412
|
-
}
|
|
1585
|
+
"__statedOptions": []
|
|
1586
|
+
},
|
|
1587
|
+
"required": false
|
|
1413
1588
|
},
|
|
1414
1589
|
"confidence": {
|
|
1415
1590
|
"type": "decimal",
|
|
1416
|
-
"required": false,
|
|
1417
1591
|
"_meta": {
|
|
1418
|
-
"
|
|
1419
|
-
|
|
1592
|
+
"__statedOptions": [
|
|
1593
|
+
"nullable",
|
|
1594
|
+
"required"
|
|
1595
|
+
],
|
|
1596
|
+
"nullable": true,
|
|
1597
|
+
"required": false
|
|
1598
|
+
},
|
|
1599
|
+
"required": false
|
|
1420
1600
|
},
|
|
1421
1601
|
"data": {
|
|
1422
1602
|
"type": "json",
|
|
1423
|
-
"required": true,
|
|
1424
1603
|
"_meta": {
|
|
1604
|
+
"__statedOptions": [
|
|
1605
|
+
"required"
|
|
1606
|
+
],
|
|
1425
1607
|
"required": true
|
|
1426
|
-
}
|
|
1608
|
+
},
|
|
1609
|
+
"required": true
|
|
1427
1610
|
}
|
|
1428
1611
|
},
|
|
1429
1612
|
"methods": {
|
|
@@ -1507,21 +1690,6 @@
|
|
|
1507
1690
|
"rule": "required",
|
|
1508
1691
|
"fieldType": "text"
|
|
1509
1692
|
},
|
|
1510
|
-
{
|
|
1511
|
-
"field": "leaseToken",
|
|
1512
|
-
"rule": "required",
|
|
1513
|
-
"fieldType": "text"
|
|
1514
|
-
},
|
|
1515
|
-
{
|
|
1516
|
-
"field": "outputDigest",
|
|
1517
|
-
"rule": "required",
|
|
1518
|
-
"fieldType": "text"
|
|
1519
|
-
},
|
|
1520
|
-
{
|
|
1521
|
-
"field": "safeError",
|
|
1522
|
-
"rule": "required",
|
|
1523
|
-
"fieldType": "text"
|
|
1524
|
-
},
|
|
1525
1693
|
{
|
|
1526
1694
|
"field": "data",
|
|
1527
1695
|
"rule": "required",
|
|
@@ -1530,7 +1698,7 @@
|
|
|
1530
1698
|
],
|
|
1531
1699
|
"schema": {
|
|
1532
1700
|
"tableName": "intake_analysis_attempts",
|
|
1533
|
-
"ddl": "CREATE TABLE IF NOT EXISTS \"intake_analysis_attempts\" (\n \"_sync_origin_device_id\" TEXT,\n \"_sync_revision\" INTEGER,\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID NOT NULL,\n \"confidential_scope_id\" TEXT NOT NULL,\n \"item_id\" UUID NOT NULL,\n \"analysis_id\" UUID NOT NULL,\n \"attempt_number\" INTEGER NOT NULL,\n \"fence\" INTEGER NOT NULL,\n \"state\" TEXT NOT NULL,\n \"lease_token\" TEXT
|
|
1701
|
+
"ddl": "CREATE TABLE IF NOT EXISTS \"intake_analysis_attempts\" (\n \"_sync_origin_device_id\" TEXT,\n \"_sync_revision\" INTEGER,\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID NOT NULL,\n \"confidential_scope_id\" TEXT NOT NULL,\n \"item_id\" UUID NOT NULL,\n \"analysis_id\" UUID NOT NULL,\n \"attempt_number\" INTEGER NOT NULL,\n \"fence\" INTEGER NOT NULL,\n \"state\" TEXT NOT NULL,\n \"lease_token\" TEXT,\n \"lease_until\" TIMESTAMP,\n \"output_digest\" TEXT,\n \"safe_error\" TEXT,\n \"confidence\" REAL,\n \"data\" JSON NOT NULL\n);",
|
|
1534
1702
|
"columns": {
|
|
1535
1703
|
"_sync_origin_device_id": {
|
|
1536
1704
|
"type": "TEXT"
|
|
@@ -1615,7 +1783,7 @@
|
|
|
1615
1783
|
},
|
|
1616
1784
|
"lease_token": {
|
|
1617
1785
|
"type": "TEXT",
|
|
1618
|
-
"notNull":
|
|
1786
|
+
"notNull": false,
|
|
1619
1787
|
"unique": false
|
|
1620
1788
|
},
|
|
1621
1789
|
"lease_until": {
|
|
@@ -1625,12 +1793,12 @@
|
|
|
1625
1793
|
},
|
|
1626
1794
|
"output_digest": {
|
|
1627
1795
|
"type": "TEXT",
|
|
1628
|
-
"notNull":
|
|
1796
|
+
"notNull": false,
|
|
1629
1797
|
"unique": false
|
|
1630
1798
|
},
|
|
1631
1799
|
"safe_error": {
|
|
1632
1800
|
"type": "TEXT",
|
|
1633
|
-
"notNull":
|
|
1801
|
+
"notNull": false,
|
|
1634
1802
|
"unique": false
|
|
1635
1803
|
},
|
|
1636
1804
|
"confidence": {
|
|
@@ -1702,7 +1870,7 @@
|
|
|
1702
1870
|
]
|
|
1703
1871
|
}
|
|
1704
1872
|
],
|
|
1705
|
-
"version": "
|
|
1873
|
+
"version": "f73a47d2"
|
|
1706
1874
|
},
|
|
1707
1875
|
"importPath": "@happyvertical/smrt-ingestion/models"
|
|
1708
1876
|
},
|
|
@@ -1712,14 +1880,12 @@
|
|
|
1712
1880
|
"qualifiedName": "@happyvertical/smrt-ingestion:IntakePlan",
|
|
1713
1881
|
"collection": "intakeplans",
|
|
1714
1882
|
"description": "Durable IntakePlan record; mutations belong to the server service.",
|
|
1715
|
-
"filePath": "
|
|
1883
|
+
"filePath": "src/models.ts",
|
|
1716
1884
|
"packageName": "@happyvertical/smrt-ingestion",
|
|
1717
1885
|
"fields": {
|
|
1718
1886
|
"tenantId": {
|
|
1719
1887
|
"type": "text",
|
|
1720
|
-
"required": true,
|
|
1721
1888
|
"_meta": {
|
|
1722
|
-
"sqlType": "UUID",
|
|
1723
1889
|
"__tenancy": {
|
|
1724
1890
|
"isTenantIdField": true,
|
|
1725
1891
|
"autoFilter": true,
|
|
@@ -1729,51 +1895,86 @@
|
|
|
1729
1895
|
"mode": "required",
|
|
1730
1896
|
"field": "tenantId",
|
|
1731
1897
|
"allowSuperAdminBypass": false
|
|
1732
|
-
}
|
|
1733
|
-
|
|
1898
|
+
},
|
|
1899
|
+
"__statedOptions": [
|
|
1900
|
+
"sqlType",
|
|
1901
|
+
"requiredFor",
|
|
1902
|
+
"__tenancy"
|
|
1903
|
+
],
|
|
1904
|
+
"sqlType": "UUID",
|
|
1905
|
+
"requiredFor": "tenant-scope"
|
|
1906
|
+
},
|
|
1907
|
+
"required": true
|
|
1734
1908
|
},
|
|
1735
1909
|
"confidentialScopeId": {
|
|
1736
1910
|
"type": "text",
|
|
1737
|
-
"required": true,
|
|
1738
1911
|
"_meta": {
|
|
1739
|
-
"
|
|
1740
|
-
|
|
1912
|
+
"__statedOptions": [
|
|
1913
|
+
"required",
|
|
1914
|
+
"requiredFor"
|
|
1915
|
+
],
|
|
1916
|
+
"required": true,
|
|
1917
|
+
"requiredFor": "tenant-scope"
|
|
1918
|
+
},
|
|
1919
|
+
"required": true
|
|
1741
1920
|
},
|
|
1742
1921
|
"itemId": {
|
|
1743
1922
|
"type": "foreignKey",
|
|
1744
|
-
"required": true,
|
|
1745
|
-
"related": "IntakeItem",
|
|
1746
1923
|
"_meta": {
|
|
1747
|
-
"
|
|
1748
|
-
|
|
1924
|
+
"__statedOptions": [
|
|
1925
|
+
"required",
|
|
1926
|
+
"requiredFor",
|
|
1927
|
+
"related"
|
|
1928
|
+
],
|
|
1929
|
+
"required": true,
|
|
1930
|
+
"requiredFor": "identity"
|
|
1931
|
+
},
|
|
1932
|
+
"required": true,
|
|
1933
|
+
"related": "IntakeItem"
|
|
1749
1934
|
},
|
|
1750
1935
|
"planKey": {
|
|
1751
1936
|
"type": "text",
|
|
1752
|
-
"required": true,
|
|
1753
1937
|
"_meta": {
|
|
1754
|
-
"
|
|
1755
|
-
|
|
1938
|
+
"__statedOptions": [
|
|
1939
|
+
"required",
|
|
1940
|
+
"requiredFor"
|
|
1941
|
+
],
|
|
1942
|
+
"required": true,
|
|
1943
|
+
"requiredFor": "identity"
|
|
1944
|
+
},
|
|
1945
|
+
"required": true
|
|
1756
1946
|
},
|
|
1757
1947
|
"revision": {
|
|
1758
1948
|
"type": "integer",
|
|
1759
|
-
"required": true,
|
|
1760
1949
|
"_meta": {
|
|
1950
|
+
"__statedOptions": [
|
|
1951
|
+
"required"
|
|
1952
|
+
],
|
|
1761
1953
|
"required": true
|
|
1762
|
-
}
|
|
1954
|
+
},
|
|
1955
|
+
"required": true
|
|
1763
1956
|
},
|
|
1764
1957
|
"digest": {
|
|
1765
1958
|
"type": "text",
|
|
1766
|
-
"required": true,
|
|
1767
1959
|
"_meta": {
|
|
1768
|
-
"
|
|
1769
|
-
|
|
1960
|
+
"__statedOptions": [
|
|
1961
|
+
"required",
|
|
1962
|
+
"requiredFor"
|
|
1963
|
+
],
|
|
1964
|
+
"required": true,
|
|
1965
|
+
"requiredFor": "idempotency"
|
|
1966
|
+
},
|
|
1967
|
+
"required": true
|
|
1770
1968
|
},
|
|
1771
1969
|
"data": {
|
|
1772
1970
|
"type": "json",
|
|
1773
|
-
"required": true,
|
|
1774
1971
|
"_meta": {
|
|
1972
|
+
"__statedOptions": [
|
|
1973
|
+
"required"
|
|
1974
|
+
],
|
|
1775
1975
|
"required": true
|
|
1776
|
-
}
|
|
1976
|
+
},
|
|
1977
|
+
"required": true
|
|
1777
1978
|
}
|
|
1778
1979
|
},
|
|
1779
1980
|
"methods": {
|
|
@@ -1987,14 +2188,12 @@
|
|
|
1987
2188
|
"qualifiedName": "@happyvertical/smrt-ingestion:IntakeAction",
|
|
1988
2189
|
"collection": "intakeactions",
|
|
1989
2190
|
"description": "Durable IntakeAction record; mutations belong to the server service.",
|
|
1990
|
-
"filePath": "
|
|
2191
|
+
"filePath": "src/models.ts",
|
|
1991
2192
|
"packageName": "@happyvertical/smrt-ingestion",
|
|
1992
2193
|
"fields": {
|
|
1993
2194
|
"tenantId": {
|
|
1994
2195
|
"type": "text",
|
|
1995
|
-
"required": true,
|
|
1996
2196
|
"_meta": {
|
|
1997
|
-
"sqlType": "UUID",
|
|
1998
2197
|
"__tenancy": {
|
|
1999
2198
|
"isTenantIdField": true,
|
|
2000
2199
|
"autoFilter": true,
|
|
@@ -2004,79 +2203,123 @@
|
|
|
2004
2203
|
"mode": "required",
|
|
2005
2204
|
"field": "tenantId",
|
|
2006
2205
|
"allowSuperAdminBypass": false
|
|
2007
|
-
}
|
|
2008
|
-
|
|
2206
|
+
},
|
|
2207
|
+
"__statedOptions": [
|
|
2208
|
+
"sqlType",
|
|
2209
|
+
"requiredFor",
|
|
2210
|
+
"__tenancy"
|
|
2211
|
+
],
|
|
2212
|
+
"sqlType": "UUID",
|
|
2213
|
+
"requiredFor": "tenant-scope"
|
|
2214
|
+
},
|
|
2215
|
+
"required": true
|
|
2009
2216
|
},
|
|
2010
2217
|
"confidentialScopeId": {
|
|
2011
2218
|
"type": "text",
|
|
2012
|
-
"required": true,
|
|
2013
2219
|
"_meta": {
|
|
2014
|
-
"
|
|
2015
|
-
|
|
2220
|
+
"__statedOptions": [
|
|
2221
|
+
"required",
|
|
2222
|
+
"requiredFor"
|
|
2223
|
+
],
|
|
2224
|
+
"required": true,
|
|
2225
|
+
"requiredFor": "tenant-scope"
|
|
2226
|
+
},
|
|
2227
|
+
"required": true
|
|
2016
2228
|
},
|
|
2017
2229
|
"itemId": {
|
|
2018
2230
|
"type": "foreignKey",
|
|
2019
|
-
"required": true,
|
|
2020
|
-
"related": "IntakeItem",
|
|
2021
2231
|
"_meta": {
|
|
2022
|
-
"
|
|
2023
|
-
|
|
2232
|
+
"__statedOptions": [
|
|
2233
|
+
"required",
|
|
2234
|
+
"requiredFor",
|
|
2235
|
+
"related"
|
|
2236
|
+
],
|
|
2237
|
+
"required": true,
|
|
2238
|
+
"requiredFor": "identity"
|
|
2239
|
+
},
|
|
2240
|
+
"required": true,
|
|
2241
|
+
"related": "IntakeItem"
|
|
2024
2242
|
},
|
|
2025
2243
|
"actionKey": {
|
|
2026
2244
|
"type": "text",
|
|
2027
|
-
"required": true,
|
|
2028
2245
|
"_meta": {
|
|
2029
|
-
"
|
|
2030
|
-
|
|
2246
|
+
"__statedOptions": [
|
|
2247
|
+
"required",
|
|
2248
|
+
"requiredFor"
|
|
2249
|
+
],
|
|
2250
|
+
"required": true,
|
|
2251
|
+
"requiredFor": "identity"
|
|
2252
|
+
},
|
|
2253
|
+
"required": true
|
|
2031
2254
|
},
|
|
2032
2255
|
"state": {
|
|
2033
2256
|
"type": "text",
|
|
2034
|
-
"required": true,
|
|
2035
2257
|
"_meta": {
|
|
2036
|
-
"
|
|
2037
|
-
|
|
2258
|
+
"__statedOptions": [
|
|
2259
|
+
"required",
|
|
2260
|
+
"requiredFor"
|
|
2261
|
+
],
|
|
2262
|
+
"required": true,
|
|
2263
|
+
"requiredFor": "workflow-state"
|
|
2264
|
+
},
|
|
2265
|
+
"required": true
|
|
2038
2266
|
},
|
|
2039
2267
|
"proposalRevision": {
|
|
2040
2268
|
"type": "integer",
|
|
2041
|
-
"required": true,
|
|
2042
2269
|
"_meta": {
|
|
2270
|
+
"__statedOptions": [
|
|
2271
|
+
"required"
|
|
2272
|
+
],
|
|
2043
2273
|
"required": true
|
|
2044
|
-
}
|
|
2274
|
+
},
|
|
2275
|
+
"required": true
|
|
2045
2276
|
},
|
|
2046
2277
|
"reviewVersion": {
|
|
2047
2278
|
"type": "integer",
|
|
2048
|
-
"required": true,
|
|
2049
2279
|
"_meta": {
|
|
2280
|
+
"__statedOptions": [
|
|
2281
|
+
"required"
|
|
2282
|
+
],
|
|
2050
2283
|
"required": true
|
|
2051
|
-
}
|
|
2284
|
+
},
|
|
2285
|
+
"required": true
|
|
2052
2286
|
},
|
|
2053
2287
|
"executionAttempt": {
|
|
2054
2288
|
"type": "integer",
|
|
2055
|
-
"required": true,
|
|
2056
2289
|
"_meta": {
|
|
2290
|
+
"__statedOptions": [
|
|
2291
|
+
"required"
|
|
2292
|
+
],
|
|
2057
2293
|
"required": true
|
|
2058
|
-
}
|
|
2294
|
+
},
|
|
2295
|
+
"required": true
|
|
2059
2296
|
},
|
|
2060
2297
|
"fence": {
|
|
2061
2298
|
"type": "integer",
|
|
2062
|
-
"required": true,
|
|
2063
2299
|
"_meta": {
|
|
2300
|
+
"__statedOptions": [
|
|
2301
|
+
"required"
|
|
2302
|
+
],
|
|
2064
2303
|
"required": true
|
|
2065
|
-
}
|
|
2304
|
+
},
|
|
2305
|
+
"required": true
|
|
2066
2306
|
},
|
|
2067
2307
|
"resultDigest": {
|
|
2068
2308
|
"type": "text",
|
|
2069
|
-
"required": true,
|
|
2070
2309
|
"_meta": {
|
|
2071
|
-
"
|
|
2072
|
-
}
|
|
2310
|
+
"__statedOptions": []
|
|
2311
|
+
},
|
|
2312
|
+
"required": false
|
|
2073
2313
|
},
|
|
2074
2314
|
"data": {
|
|
2075
2315
|
"type": "json",
|
|
2076
|
-
"required": true,
|
|
2077
2316
|
"_meta": {
|
|
2317
|
+
"__statedOptions": [
|
|
2318
|
+
"required"
|
|
2319
|
+
],
|
|
2078
2320
|
"required": true
|
|
2079
|
-
}
|
|
2321
|
+
},
|
|
2322
|
+
"required": true
|
|
2080
2323
|
}
|
|
2081
2324
|
},
|
|
2082
2325
|
"methods": {
|
|
@@ -2170,11 +2413,6 @@
|
|
|
2170
2413
|
"rule": "required",
|
|
2171
2414
|
"fieldType": "integer"
|
|
2172
2415
|
},
|
|
2173
|
-
{
|
|
2174
|
-
"field": "resultDigest",
|
|
2175
|
-
"rule": "required",
|
|
2176
|
-
"fieldType": "text"
|
|
2177
|
-
},
|
|
2178
2416
|
{
|
|
2179
2417
|
"field": "data",
|
|
2180
2418
|
"rule": "required",
|
|
@@ -2183,7 +2421,7 @@
|
|
|
2183
2421
|
],
|
|
2184
2422
|
"schema": {
|
|
2185
2423
|
"tableName": "intake_actions",
|
|
2186
|
-
"ddl": "CREATE TABLE IF NOT EXISTS \"intake_actions\" (\n \"_sync_origin_device_id\" TEXT,\n \"_sync_revision\" INTEGER,\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID NOT NULL,\n \"confidential_scope_id\" TEXT NOT NULL,\n \"item_id\" UUID NOT NULL,\n \"action_key\" TEXT NOT NULL,\n \"state\" TEXT NOT NULL,\n \"proposal_revision\" INTEGER NOT NULL,\n \"review_version\" INTEGER NOT NULL,\n \"execution_attempt\" INTEGER NOT NULL,\n \"fence\" INTEGER NOT NULL,\n \"result_digest\" TEXT
|
|
2424
|
+
"ddl": "CREATE TABLE IF NOT EXISTS \"intake_actions\" (\n \"_sync_origin_device_id\" TEXT,\n \"_sync_revision\" INTEGER,\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID NOT NULL,\n \"confidential_scope_id\" TEXT NOT NULL,\n \"item_id\" UUID NOT NULL,\n \"action_key\" TEXT NOT NULL,\n \"state\" TEXT NOT NULL,\n \"proposal_revision\" INTEGER NOT NULL,\n \"review_version\" INTEGER NOT NULL,\n \"execution_attempt\" INTEGER NOT NULL,\n \"fence\" INTEGER NOT NULL,\n \"result_digest\" TEXT,\n \"data\" JSON NOT NULL\n);",
|
|
2187
2425
|
"columns": {
|
|
2188
2426
|
"_sync_origin_device_id": {
|
|
2189
2427
|
"type": "TEXT"
|
|
@@ -2271,7 +2509,7 @@
|
|
|
2271
2509
|
},
|
|
2272
2510
|
"result_digest": {
|
|
2273
2511
|
"type": "TEXT",
|
|
2274
|
-
"notNull":
|
|
2512
|
+
"notNull": false,
|
|
2275
2513
|
"unique": false
|
|
2276
2514
|
},
|
|
2277
2515
|
"data": {
|
|
@@ -2332,7 +2570,7 @@
|
|
|
2332
2570
|
]
|
|
2333
2571
|
}
|
|
2334
2572
|
],
|
|
2335
|
-
"version": "
|
|
2573
|
+
"version": "fa6dec61"
|
|
2336
2574
|
},
|
|
2337
2575
|
"importPath": "@happyvertical/smrt-ingestion/models"
|
|
2338
2576
|
},
|
|
@@ -2342,14 +2580,12 @@
|
|
|
2342
2580
|
"qualifiedName": "@happyvertical/smrt-ingestion:IntakeProposal",
|
|
2343
2581
|
"collection": "intakeproposals",
|
|
2344
2582
|
"description": "Durable IntakeProposal record; mutations belong to the server service.",
|
|
2345
|
-
"filePath": "
|
|
2583
|
+
"filePath": "src/models.ts",
|
|
2346
2584
|
"packageName": "@happyvertical/smrt-ingestion",
|
|
2347
2585
|
"fields": {
|
|
2348
2586
|
"tenantId": {
|
|
2349
2587
|
"type": "text",
|
|
2350
|
-
"required": true,
|
|
2351
2588
|
"_meta": {
|
|
2352
|
-
"sqlType": "UUID",
|
|
2353
2589
|
"__tenancy": {
|
|
2354
2590
|
"isTenantIdField": true,
|
|
2355
2591
|
"autoFilter": true,
|
|
@@ -2359,68 +2595,116 @@
|
|
|
2359
2595
|
"mode": "required",
|
|
2360
2596
|
"field": "tenantId",
|
|
2361
2597
|
"allowSuperAdminBypass": false
|
|
2362
|
-
}
|
|
2363
|
-
|
|
2598
|
+
},
|
|
2599
|
+
"__statedOptions": [
|
|
2600
|
+
"sqlType",
|
|
2601
|
+
"requiredFor",
|
|
2602
|
+
"__tenancy"
|
|
2603
|
+
],
|
|
2604
|
+
"sqlType": "UUID",
|
|
2605
|
+
"requiredFor": "tenant-scope"
|
|
2606
|
+
},
|
|
2607
|
+
"required": true
|
|
2364
2608
|
},
|
|
2365
2609
|
"confidentialScopeId": {
|
|
2366
2610
|
"type": "text",
|
|
2367
|
-
"required": true,
|
|
2368
2611
|
"_meta": {
|
|
2369
|
-
"
|
|
2370
|
-
|
|
2612
|
+
"__statedOptions": [
|
|
2613
|
+
"required",
|
|
2614
|
+
"requiredFor"
|
|
2615
|
+
],
|
|
2616
|
+
"required": true,
|
|
2617
|
+
"requiredFor": "tenant-scope"
|
|
2618
|
+
},
|
|
2619
|
+
"required": true
|
|
2371
2620
|
},
|
|
2372
2621
|
"itemId": {
|
|
2373
2622
|
"type": "foreignKey",
|
|
2374
|
-
"required": true,
|
|
2375
|
-
"related": "IntakeItem",
|
|
2376
2623
|
"_meta": {
|
|
2377
|
-
"
|
|
2378
|
-
|
|
2624
|
+
"__statedOptions": [
|
|
2625
|
+
"required",
|
|
2626
|
+
"requiredFor",
|
|
2627
|
+
"related"
|
|
2628
|
+
],
|
|
2629
|
+
"required": true,
|
|
2630
|
+
"requiredFor": "identity"
|
|
2631
|
+
},
|
|
2632
|
+
"required": true,
|
|
2633
|
+
"related": "IntakeItem"
|
|
2379
2634
|
},
|
|
2380
2635
|
"actionId": {
|
|
2381
2636
|
"type": "foreignKey",
|
|
2382
|
-
"required": true,
|
|
2383
|
-
"related": "IntakeAction",
|
|
2384
2637
|
"_meta": {
|
|
2385
|
-
"
|
|
2386
|
-
|
|
2638
|
+
"__statedOptions": [
|
|
2639
|
+
"required",
|
|
2640
|
+
"requiredFor",
|
|
2641
|
+
"related"
|
|
2642
|
+
],
|
|
2643
|
+
"required": true,
|
|
2644
|
+
"requiredFor": "identity"
|
|
2645
|
+
},
|
|
2646
|
+
"required": true,
|
|
2647
|
+
"related": "IntakeAction"
|
|
2387
2648
|
},
|
|
2388
2649
|
"analysisId": {
|
|
2389
2650
|
"type": "foreignKey",
|
|
2390
|
-
"required": true,
|
|
2391
|
-
"related": "IntakeAnalysis",
|
|
2392
2651
|
"_meta": {
|
|
2393
|
-
"
|
|
2394
|
-
|
|
2652
|
+
"__statedOptions": [
|
|
2653
|
+
"required",
|
|
2654
|
+
"requiredFor",
|
|
2655
|
+
"related"
|
|
2656
|
+
],
|
|
2657
|
+
"required": true,
|
|
2658
|
+
"requiredFor": "identity"
|
|
2659
|
+
},
|
|
2660
|
+
"required": true,
|
|
2661
|
+
"related": "IntakeAnalysis"
|
|
2395
2662
|
},
|
|
2396
2663
|
"analysisAttemptId": {
|
|
2397
2664
|
"type": "foreignKey",
|
|
2398
|
-
"required": true,
|
|
2399
|
-
"related": "IntakeAnalysisAttempt",
|
|
2400
2665
|
"_meta": {
|
|
2401
|
-
"
|
|
2402
|
-
|
|
2666
|
+
"__statedOptions": [
|
|
2667
|
+
"required",
|
|
2668
|
+
"requiredFor",
|
|
2669
|
+
"related"
|
|
2670
|
+
],
|
|
2671
|
+
"required": true,
|
|
2672
|
+
"requiredFor": "identity"
|
|
2673
|
+
},
|
|
2674
|
+
"required": true,
|
|
2675
|
+
"related": "IntakeAnalysisAttempt"
|
|
2403
2676
|
},
|
|
2404
2677
|
"revision": {
|
|
2405
2678
|
"type": "integer",
|
|
2406
|
-
"required": true,
|
|
2407
2679
|
"_meta": {
|
|
2680
|
+
"__statedOptions": [
|
|
2681
|
+
"required"
|
|
2682
|
+
],
|
|
2408
2683
|
"required": true
|
|
2409
|
-
}
|
|
2684
|
+
},
|
|
2685
|
+
"required": true
|
|
2410
2686
|
},
|
|
2411
2687
|
"bindingHash": {
|
|
2412
2688
|
"type": "text",
|
|
2413
|
-
"required": true,
|
|
2414
2689
|
"_meta": {
|
|
2415
|
-
"
|
|
2416
|
-
|
|
2690
|
+
"__statedOptions": [
|
|
2691
|
+
"required",
|
|
2692
|
+
"requiredFor"
|
|
2693
|
+
],
|
|
2694
|
+
"required": true,
|
|
2695
|
+
"requiredFor": "integrity"
|
|
2696
|
+
},
|
|
2697
|
+
"required": true
|
|
2417
2698
|
},
|
|
2418
2699
|
"data": {
|
|
2419
2700
|
"type": "json",
|
|
2420
|
-
"required": true,
|
|
2421
2701
|
"_meta": {
|
|
2702
|
+
"__statedOptions": [
|
|
2703
|
+
"required"
|
|
2704
|
+
],
|
|
2422
2705
|
"required": true
|
|
2423
|
-
}
|
|
2706
|
+
},
|
|
2707
|
+
"required": true
|
|
2424
2708
|
}
|
|
2425
2709
|
},
|
|
2426
2710
|
"methods": {
|
|
@@ -2691,14 +2975,12 @@
|
|
|
2691
2975
|
"qualifiedName": "@happyvertical/smrt-ingestion:IntakeReviewDecision",
|
|
2692
2976
|
"collection": "intakereviewdecisions",
|
|
2693
2977
|
"description": "Durable IntakeReviewDecision record; mutations belong to the server service.",
|
|
2694
|
-
"filePath": "
|
|
2978
|
+
"filePath": "src/models.ts",
|
|
2695
2979
|
"packageName": "@happyvertical/smrt-ingestion",
|
|
2696
2980
|
"fields": {
|
|
2697
2981
|
"tenantId": {
|
|
2698
2982
|
"type": "text",
|
|
2699
|
-
"required": true,
|
|
2700
2983
|
"_meta": {
|
|
2701
|
-
"sqlType": "UUID",
|
|
2702
2984
|
"__tenancy": {
|
|
2703
2985
|
"isTenantIdField": true,
|
|
2704
2986
|
"autoFilter": true,
|
|
@@ -2708,67 +2990,114 @@
|
|
|
2708
2990
|
"mode": "required",
|
|
2709
2991
|
"field": "tenantId",
|
|
2710
2992
|
"allowSuperAdminBypass": false
|
|
2711
|
-
}
|
|
2712
|
-
|
|
2993
|
+
},
|
|
2994
|
+
"__statedOptions": [
|
|
2995
|
+
"sqlType",
|
|
2996
|
+
"requiredFor",
|
|
2997
|
+
"__tenancy"
|
|
2998
|
+
],
|
|
2999
|
+
"sqlType": "UUID",
|
|
3000
|
+
"requiredFor": "tenant-scope"
|
|
3001
|
+
},
|
|
3002
|
+
"required": true
|
|
2713
3003
|
},
|
|
2714
3004
|
"confidentialScopeId": {
|
|
2715
3005
|
"type": "text",
|
|
2716
|
-
"required": true,
|
|
2717
3006
|
"_meta": {
|
|
2718
|
-
"
|
|
2719
|
-
|
|
3007
|
+
"__statedOptions": [
|
|
3008
|
+
"required",
|
|
3009
|
+
"requiredFor"
|
|
3010
|
+
],
|
|
3011
|
+
"required": true,
|
|
3012
|
+
"requiredFor": "tenant-scope"
|
|
3013
|
+
},
|
|
3014
|
+
"required": true
|
|
2720
3015
|
},
|
|
2721
3016
|
"itemId": {
|
|
2722
3017
|
"type": "foreignKey",
|
|
2723
|
-
"required": true,
|
|
2724
|
-
"related": "IntakeItem",
|
|
2725
3018
|
"_meta": {
|
|
2726
|
-
"
|
|
2727
|
-
|
|
3019
|
+
"__statedOptions": [
|
|
3020
|
+
"required",
|
|
3021
|
+
"requiredFor",
|
|
3022
|
+
"related"
|
|
3023
|
+
],
|
|
3024
|
+
"required": true,
|
|
3025
|
+
"requiredFor": "identity"
|
|
3026
|
+
},
|
|
3027
|
+
"required": true,
|
|
3028
|
+
"related": "IntakeItem"
|
|
2728
3029
|
},
|
|
2729
3030
|
"actionId": {
|
|
2730
3031
|
"type": "foreignKey",
|
|
2731
|
-
"required": true,
|
|
2732
|
-
"related": "IntakeAction",
|
|
2733
3032
|
"_meta": {
|
|
2734
|
-
"
|
|
2735
|
-
|
|
3033
|
+
"__statedOptions": [
|
|
3034
|
+
"required",
|
|
3035
|
+
"requiredFor",
|
|
3036
|
+
"related"
|
|
3037
|
+
],
|
|
3038
|
+
"required": true,
|
|
3039
|
+
"requiredFor": "identity"
|
|
3040
|
+
},
|
|
3041
|
+
"required": true,
|
|
3042
|
+
"related": "IntakeAction"
|
|
2736
3043
|
},
|
|
2737
3044
|
"proposalId": {
|
|
2738
3045
|
"type": "foreignKey",
|
|
3046
|
+
"_meta": {
|
|
3047
|
+
"__statedOptions": [
|
|
3048
|
+
"required",
|
|
3049
|
+
"requiredFor",
|
|
3050
|
+
"related"
|
|
3051
|
+
],
|
|
3052
|
+
"required": true,
|
|
3053
|
+
"requiredFor": "identity"
|
|
3054
|
+
},
|
|
2739
3055
|
"required": true,
|
|
2740
|
-
"related": "IntakeProposal"
|
|
2741
|
-
"_meta": {
|
|
2742
|
-
"required": true
|
|
2743
|
-
}
|
|
3056
|
+
"related": "IntakeProposal"
|
|
2744
3057
|
},
|
|
2745
3058
|
"reviewVersion": {
|
|
2746
3059
|
"type": "integer",
|
|
2747
|
-
"required": true,
|
|
2748
3060
|
"_meta": {
|
|
3061
|
+
"__statedOptions": [
|
|
3062
|
+
"required"
|
|
3063
|
+
],
|
|
2749
3064
|
"required": true
|
|
2750
|
-
}
|
|
3065
|
+
},
|
|
3066
|
+
"required": true
|
|
2751
3067
|
},
|
|
2752
3068
|
"bindingHash": {
|
|
2753
3069
|
"type": "text",
|
|
2754
|
-
"required": true,
|
|
2755
3070
|
"_meta": {
|
|
2756
|
-
"
|
|
2757
|
-
|
|
3071
|
+
"__statedOptions": [
|
|
3072
|
+
"required",
|
|
3073
|
+
"requiredFor"
|
|
3074
|
+
],
|
|
3075
|
+
"required": true,
|
|
3076
|
+
"requiredFor": "integrity"
|
|
3077
|
+
},
|
|
3078
|
+
"required": true
|
|
2758
3079
|
},
|
|
2759
3080
|
"decision": {
|
|
2760
3081
|
"type": "text",
|
|
2761
|
-
"required": true,
|
|
2762
3082
|
"_meta": {
|
|
2763
|
-
"
|
|
2764
|
-
|
|
3083
|
+
"__statedOptions": [
|
|
3084
|
+
"required",
|
|
3085
|
+
"requiredFor"
|
|
3086
|
+
],
|
|
3087
|
+
"required": true,
|
|
3088
|
+
"requiredFor": "workflow-state"
|
|
3089
|
+
},
|
|
3090
|
+
"required": true
|
|
2765
3091
|
},
|
|
2766
3092
|
"data": {
|
|
2767
3093
|
"type": "json",
|
|
2768
|
-
"required": true,
|
|
2769
3094
|
"_meta": {
|
|
3095
|
+
"__statedOptions": [
|
|
3096
|
+
"required"
|
|
3097
|
+
],
|
|
2770
3098
|
"required": true
|
|
2771
|
-
}
|
|
3099
|
+
},
|
|
3100
|
+
"required": true
|
|
2772
3101
|
}
|
|
2773
3102
|
},
|
|
2774
3103
|
"methods": {
|
|
@@ -3026,14 +3355,12 @@
|
|
|
3026
3355
|
"qualifiedName": "@happyvertical/smrt-ingestion:IntakeExecution",
|
|
3027
3356
|
"collection": "intakeexecutions",
|
|
3028
3357
|
"description": "Durable IntakeExecution record; mutations belong to the server service.",
|
|
3029
|
-
"filePath": "
|
|
3358
|
+
"filePath": "src/models.ts",
|
|
3030
3359
|
"packageName": "@happyvertical/smrt-ingestion",
|
|
3031
3360
|
"fields": {
|
|
3032
3361
|
"tenantId": {
|
|
3033
3362
|
"type": "text",
|
|
3034
|
-
"required": true,
|
|
3035
3363
|
"_meta": {
|
|
3036
|
-
"sqlType": "UUID",
|
|
3037
3364
|
"__tenancy": {
|
|
3038
3365
|
"isTenantIdField": true,
|
|
3039
3366
|
"autoFilter": true,
|
|
@@ -3043,80 +3370,129 @@
|
|
|
3043
3370
|
"mode": "required",
|
|
3044
3371
|
"field": "tenantId",
|
|
3045
3372
|
"allowSuperAdminBypass": false
|
|
3046
|
-
}
|
|
3047
|
-
|
|
3373
|
+
},
|
|
3374
|
+
"__statedOptions": [
|
|
3375
|
+
"sqlType",
|
|
3376
|
+
"requiredFor",
|
|
3377
|
+
"__tenancy"
|
|
3378
|
+
],
|
|
3379
|
+
"sqlType": "UUID",
|
|
3380
|
+
"requiredFor": "tenant-scope"
|
|
3381
|
+
},
|
|
3382
|
+
"required": true
|
|
3048
3383
|
},
|
|
3049
3384
|
"confidentialScopeId": {
|
|
3050
3385
|
"type": "text",
|
|
3051
|
-
"required": true,
|
|
3052
3386
|
"_meta": {
|
|
3053
|
-
"
|
|
3054
|
-
|
|
3387
|
+
"__statedOptions": [
|
|
3388
|
+
"required",
|
|
3389
|
+
"requiredFor"
|
|
3390
|
+
],
|
|
3391
|
+
"required": true,
|
|
3392
|
+
"requiredFor": "tenant-scope"
|
|
3393
|
+
},
|
|
3394
|
+
"required": true
|
|
3055
3395
|
},
|
|
3056
3396
|
"itemId": {
|
|
3057
3397
|
"type": "foreignKey",
|
|
3058
|
-
"required": true,
|
|
3059
|
-
"related": "IntakeItem",
|
|
3060
3398
|
"_meta": {
|
|
3061
|
-
"
|
|
3062
|
-
|
|
3399
|
+
"__statedOptions": [
|
|
3400
|
+
"required",
|
|
3401
|
+
"requiredFor",
|
|
3402
|
+
"related"
|
|
3403
|
+
],
|
|
3404
|
+
"required": true,
|
|
3405
|
+
"requiredFor": "identity"
|
|
3406
|
+
},
|
|
3407
|
+
"required": true,
|
|
3408
|
+
"related": "IntakeItem"
|
|
3063
3409
|
},
|
|
3064
3410
|
"actionId": {
|
|
3065
3411
|
"type": "foreignKey",
|
|
3066
|
-
"required": true,
|
|
3067
|
-
"related": "IntakeAction",
|
|
3068
3412
|
"_meta": {
|
|
3069
|
-
"
|
|
3070
|
-
|
|
3413
|
+
"__statedOptions": [
|
|
3414
|
+
"required",
|
|
3415
|
+
"requiredFor",
|
|
3416
|
+
"related"
|
|
3417
|
+
],
|
|
3418
|
+
"required": true,
|
|
3419
|
+
"requiredFor": "identity"
|
|
3420
|
+
},
|
|
3421
|
+
"required": true,
|
|
3422
|
+
"related": "IntakeAction"
|
|
3071
3423
|
},
|
|
3072
3424
|
"attemptNumber": {
|
|
3073
3425
|
"type": "integer",
|
|
3074
|
-
"required": true,
|
|
3075
3426
|
"_meta": {
|
|
3427
|
+
"__statedOptions": [
|
|
3428
|
+
"required"
|
|
3429
|
+
],
|
|
3076
3430
|
"required": true
|
|
3077
|
-
}
|
|
3431
|
+
},
|
|
3432
|
+
"required": true
|
|
3078
3433
|
},
|
|
3079
3434
|
"fence": {
|
|
3080
3435
|
"type": "integer",
|
|
3081
|
-
"required": true,
|
|
3082
3436
|
"_meta": {
|
|
3437
|
+
"__statedOptions": [
|
|
3438
|
+
"required"
|
|
3439
|
+
],
|
|
3083
3440
|
"required": true
|
|
3084
|
-
}
|
|
3441
|
+
},
|
|
3442
|
+
"required": true
|
|
3085
3443
|
},
|
|
3086
3444
|
"state": {
|
|
3087
3445
|
"type": "text",
|
|
3088
|
-
"required": true,
|
|
3089
3446
|
"_meta": {
|
|
3090
|
-
"
|
|
3091
|
-
|
|
3447
|
+
"__statedOptions": [
|
|
3448
|
+
"required",
|
|
3449
|
+
"requiredFor"
|
|
3450
|
+
],
|
|
3451
|
+
"required": true,
|
|
3452
|
+
"requiredFor": "workflow-state"
|
|
3453
|
+
},
|
|
3454
|
+
"required": true
|
|
3092
3455
|
},
|
|
3093
3456
|
"bindingHash": {
|
|
3094
3457
|
"type": "text",
|
|
3095
|
-
"required": true,
|
|
3096
3458
|
"_meta": {
|
|
3097
|
-
"
|
|
3098
|
-
|
|
3459
|
+
"__statedOptions": [
|
|
3460
|
+
"required",
|
|
3461
|
+
"requiredFor"
|
|
3462
|
+
],
|
|
3463
|
+
"required": true,
|
|
3464
|
+
"requiredFor": "integrity"
|
|
3465
|
+
},
|
|
3466
|
+
"required": true
|
|
3099
3467
|
},
|
|
3100
3468
|
"resultDigest": {
|
|
3101
3469
|
"type": "text",
|
|
3102
|
-
"required": true,
|
|
3103
3470
|
"_meta": {
|
|
3104
|
-
"
|
|
3105
|
-
}
|
|
3471
|
+
"__statedOptions": []
|
|
3472
|
+
},
|
|
3473
|
+
"required": false
|
|
3106
3474
|
},
|
|
3107
3475
|
"idempotencyKey": {
|
|
3108
3476
|
"type": "text",
|
|
3109
|
-
"required": true,
|
|
3110
3477
|
"_meta": {
|
|
3111
|
-
"
|
|
3112
|
-
|
|
3478
|
+
"__statedOptions": [
|
|
3479
|
+
"required",
|
|
3480
|
+
"requiredFor"
|
|
3481
|
+
],
|
|
3482
|
+
"required": true,
|
|
3483
|
+
"requiredFor": "idempotency"
|
|
3484
|
+
},
|
|
3485
|
+
"required": true
|
|
3113
3486
|
},
|
|
3114
3487
|
"data": {
|
|
3115
3488
|
"type": "json",
|
|
3116
|
-
"required": true,
|
|
3117
3489
|
"_meta": {
|
|
3490
|
+
"__statedOptions": [
|
|
3491
|
+
"required"
|
|
3492
|
+
],
|
|
3118
3493
|
"required": true
|
|
3119
|
-
}
|
|
3494
|
+
},
|
|
3495
|
+
"required": true
|
|
3120
3496
|
}
|
|
3121
3497
|
},
|
|
3122
3498
|
"methods": {
|
|
@@ -3205,11 +3581,6 @@
|
|
|
3205
3581
|
"rule": "required",
|
|
3206
3582
|
"fieldType": "text"
|
|
3207
3583
|
},
|
|
3208
|
-
{
|
|
3209
|
-
"field": "resultDigest",
|
|
3210
|
-
"rule": "required",
|
|
3211
|
-
"fieldType": "text"
|
|
3212
|
-
},
|
|
3213
3584
|
{
|
|
3214
3585
|
"field": "idempotencyKey",
|
|
3215
3586
|
"rule": "required",
|
|
@@ -3223,7 +3594,7 @@
|
|
|
3223
3594
|
],
|
|
3224
3595
|
"schema": {
|
|
3225
3596
|
"tableName": "intake_executions",
|
|
3226
|
-
"ddl": "CREATE TABLE IF NOT EXISTS \"intake_executions\" (\n \"_sync_origin_device_id\" TEXT,\n \"_sync_revision\" INTEGER,\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID NOT NULL,\n \"confidential_scope_id\" TEXT NOT NULL,\n \"item_id\" UUID NOT NULL,\n \"action_id\" UUID NOT NULL,\n \"attempt_number\" INTEGER NOT NULL,\n \"fence\" INTEGER NOT NULL,\n \"state\" TEXT NOT NULL,\n \"binding_hash\" TEXT NOT NULL,\n \"result_digest\" TEXT
|
|
3597
|
+
"ddl": "CREATE TABLE IF NOT EXISTS \"intake_executions\" (\n \"_sync_origin_device_id\" TEXT,\n \"_sync_revision\" INTEGER,\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID NOT NULL,\n \"confidential_scope_id\" TEXT NOT NULL,\n \"item_id\" UUID NOT NULL,\n \"action_id\" UUID NOT NULL,\n \"attempt_number\" INTEGER NOT NULL,\n \"fence\" INTEGER NOT NULL,\n \"state\" TEXT NOT NULL,\n \"binding_hash\" TEXT NOT NULL,\n \"result_digest\" TEXT,\n \"idempotency_key\" TEXT NOT NULL,\n \"data\" JSON NOT NULL\n);",
|
|
3227
3598
|
"columns": {
|
|
3228
3599
|
"_sync_origin_device_id": {
|
|
3229
3600
|
"type": "TEXT"
|
|
@@ -3313,7 +3684,7 @@
|
|
|
3313
3684
|
},
|
|
3314
3685
|
"result_digest": {
|
|
3315
3686
|
"type": "TEXT",
|
|
3316
|
-
"notNull":
|
|
3687
|
+
"notNull": false,
|
|
3317
3688
|
"unique": false
|
|
3318
3689
|
},
|
|
3319
3690
|
"idempotency_key": {
|
|
@@ -3385,7 +3756,7 @@
|
|
|
3385
3756
|
]
|
|
3386
3757
|
}
|
|
3387
3758
|
],
|
|
3388
|
-
"version": "
|
|
3759
|
+
"version": "36ae9dfd"
|
|
3389
3760
|
},
|
|
3390
3761
|
"importPath": "@happyvertical/smrt-ingestion/models"
|
|
3391
3762
|
},
|
|
@@ -3395,14 +3766,12 @@
|
|
|
3395
3766
|
"qualifiedName": "@happyvertical/smrt-ingestion:IntakeFeedback",
|
|
3396
3767
|
"collection": "intakefeedbacks",
|
|
3397
3768
|
"description": "Durable IntakeFeedback record; mutations belong to the server service.",
|
|
3398
|
-
"filePath": "
|
|
3769
|
+
"filePath": "src/models.ts",
|
|
3399
3770
|
"packageName": "@happyvertical/smrt-ingestion",
|
|
3400
3771
|
"fields": {
|
|
3401
3772
|
"tenantId": {
|
|
3402
3773
|
"type": "text",
|
|
3403
|
-
"required": true,
|
|
3404
3774
|
"_meta": {
|
|
3405
|
-
"sqlType": "UUID",
|
|
3406
3775
|
"__tenancy": {
|
|
3407
3776
|
"isTenantIdField": true,
|
|
3408
3777
|
"autoFilter": true,
|
|
@@ -3412,52 +3781,90 @@
|
|
|
3412
3781
|
"mode": "required",
|
|
3413
3782
|
"field": "tenantId",
|
|
3414
3783
|
"allowSuperAdminBypass": false
|
|
3415
|
-
}
|
|
3416
|
-
|
|
3784
|
+
},
|
|
3785
|
+
"__statedOptions": [
|
|
3786
|
+
"sqlType",
|
|
3787
|
+
"requiredFor",
|
|
3788
|
+
"__tenancy"
|
|
3789
|
+
],
|
|
3790
|
+
"sqlType": "UUID",
|
|
3791
|
+
"requiredFor": "tenant-scope"
|
|
3792
|
+
},
|
|
3793
|
+
"required": true
|
|
3417
3794
|
},
|
|
3418
3795
|
"confidentialScopeId": {
|
|
3419
3796
|
"type": "text",
|
|
3420
|
-
"required": true,
|
|
3421
3797
|
"_meta": {
|
|
3422
|
-
"
|
|
3423
|
-
|
|
3798
|
+
"__statedOptions": [
|
|
3799
|
+
"required",
|
|
3800
|
+
"requiredFor"
|
|
3801
|
+
],
|
|
3802
|
+
"required": true,
|
|
3803
|
+
"requiredFor": "tenant-scope"
|
|
3804
|
+
},
|
|
3805
|
+
"required": true
|
|
3424
3806
|
},
|
|
3425
3807
|
"itemId": {
|
|
3426
3808
|
"type": "foreignKey",
|
|
3427
|
-
"required": true,
|
|
3428
|
-
"related": "IntakeItem",
|
|
3429
3809
|
"_meta": {
|
|
3430
|
-
"
|
|
3431
|
-
|
|
3810
|
+
"__statedOptions": [
|
|
3811
|
+
"required",
|
|
3812
|
+
"requiredFor",
|
|
3813
|
+
"related"
|
|
3814
|
+
],
|
|
3815
|
+
"required": true,
|
|
3816
|
+
"requiredFor": "identity"
|
|
3817
|
+
},
|
|
3818
|
+
"required": true,
|
|
3819
|
+
"related": "IntakeItem"
|
|
3432
3820
|
},
|
|
3433
3821
|
"requestKey": {
|
|
3434
3822
|
"type": "text",
|
|
3435
|
-
"required": true,
|
|
3436
3823
|
"_meta": {
|
|
3437
|
-
"
|
|
3438
|
-
|
|
3824
|
+
"__statedOptions": [
|
|
3825
|
+
"required",
|
|
3826
|
+
"requiredFor"
|
|
3827
|
+
],
|
|
3828
|
+
"required": true,
|
|
3829
|
+
"requiredFor": "identity"
|
|
3830
|
+
},
|
|
3831
|
+
"required": true
|
|
3439
3832
|
},
|
|
3440
3833
|
"supersedesId": {
|
|
3441
3834
|
"type": "foreignKey",
|
|
3442
|
-
"required": false,
|
|
3443
|
-
"related": "IntakeFeedback",
|
|
3444
3835
|
"_meta": {
|
|
3445
|
-
"
|
|
3446
|
-
|
|
3836
|
+
"__statedOptions": [
|
|
3837
|
+
"nullable",
|
|
3838
|
+
"related",
|
|
3839
|
+
"required"
|
|
3840
|
+
],
|
|
3841
|
+
"nullable": true,
|
|
3842
|
+
"required": false
|
|
3843
|
+
},
|
|
3844
|
+
"required": false,
|
|
3845
|
+
"related": "IntakeFeedback"
|
|
3447
3846
|
},
|
|
3448
3847
|
"kind": {
|
|
3449
3848
|
"type": "text",
|
|
3450
|
-
"required": true,
|
|
3451
3849
|
"_meta": {
|
|
3452
|
-
"
|
|
3453
|
-
|
|
3850
|
+
"__statedOptions": [
|
|
3851
|
+
"required",
|
|
3852
|
+
"requiredFor"
|
|
3853
|
+
],
|
|
3854
|
+
"required": true,
|
|
3855
|
+
"requiredFor": "identity"
|
|
3856
|
+
},
|
|
3857
|
+
"required": true
|
|
3454
3858
|
},
|
|
3455
3859
|
"data": {
|
|
3456
3860
|
"type": "json",
|
|
3457
|
-
"required": true,
|
|
3458
3861
|
"_meta": {
|
|
3862
|
+
"__statedOptions": [
|
|
3863
|
+
"required"
|
|
3864
|
+
],
|
|
3459
3865
|
"required": true
|
|
3460
|
-
}
|
|
3866
|
+
},
|
|
3867
|
+
"required": true
|
|
3461
3868
|
}
|
|
3462
3869
|
},
|
|
3463
3870
|
"methods": {
|
|
@@ -3677,14 +4084,12 @@
|
|
|
3677
4084
|
"qualifiedName": "@happyvertical/smrt-ingestion:IntakeDispatch",
|
|
3678
4085
|
"collection": "intakedispatches",
|
|
3679
4086
|
"description": "Durable IntakeDispatch record; mutations belong to the server service.",
|
|
3680
|
-
"filePath": "
|
|
4087
|
+
"filePath": "src/models.ts",
|
|
3681
4088
|
"packageName": "@happyvertical/smrt-ingestion",
|
|
3682
4089
|
"fields": {
|
|
3683
4090
|
"tenantId": {
|
|
3684
4091
|
"type": "text",
|
|
3685
|
-
"required": true,
|
|
3686
4092
|
"_meta": {
|
|
3687
|
-
"sqlType": "UUID",
|
|
3688
4093
|
"__tenancy": {
|
|
3689
4094
|
"isTenantIdField": true,
|
|
3690
4095
|
"autoFilter": true,
|
|
@@ -3694,65 +4099,103 @@
|
|
|
3694
4099
|
"mode": "required",
|
|
3695
4100
|
"field": "tenantId",
|
|
3696
4101
|
"allowSuperAdminBypass": false
|
|
3697
|
-
}
|
|
3698
|
-
|
|
4102
|
+
},
|
|
4103
|
+
"__statedOptions": [
|
|
4104
|
+
"sqlType",
|
|
4105
|
+
"requiredFor",
|
|
4106
|
+
"__tenancy"
|
|
4107
|
+
],
|
|
4108
|
+
"sqlType": "UUID",
|
|
4109
|
+
"requiredFor": "tenant-scope"
|
|
4110
|
+
},
|
|
4111
|
+
"required": true
|
|
3699
4112
|
},
|
|
3700
4113
|
"confidentialScopeId": {
|
|
3701
4114
|
"type": "text",
|
|
3702
|
-
"required": true,
|
|
3703
4115
|
"_meta": {
|
|
3704
|
-
"
|
|
3705
|
-
|
|
4116
|
+
"__statedOptions": [
|
|
4117
|
+
"required",
|
|
4118
|
+
"requiredFor"
|
|
4119
|
+
],
|
|
4120
|
+
"required": true,
|
|
4121
|
+
"requiredFor": "tenant-scope"
|
|
4122
|
+
},
|
|
4123
|
+
"required": true
|
|
3706
4124
|
},
|
|
3707
4125
|
"itemId": {
|
|
3708
4126
|
"type": "foreignKey",
|
|
3709
|
-
"required": true,
|
|
3710
|
-
"related": "IntakeItem",
|
|
3711
4127
|
"_meta": {
|
|
3712
|
-
"
|
|
3713
|
-
|
|
4128
|
+
"__statedOptions": [
|
|
4129
|
+
"required",
|
|
4130
|
+
"requiredFor",
|
|
4131
|
+
"related"
|
|
4132
|
+
],
|
|
4133
|
+
"required": true,
|
|
4134
|
+
"requiredFor": "identity"
|
|
4135
|
+
},
|
|
4136
|
+
"required": true,
|
|
4137
|
+
"related": "IntakeItem"
|
|
3714
4138
|
},
|
|
3715
4139
|
"stage": {
|
|
3716
4140
|
"type": "text",
|
|
3717
|
-
"required": true,
|
|
3718
4141
|
"_meta": {
|
|
3719
|
-
"
|
|
3720
|
-
|
|
4142
|
+
"__statedOptions": [
|
|
4143
|
+
"required",
|
|
4144
|
+
"requiredFor"
|
|
4145
|
+
],
|
|
4146
|
+
"required": true,
|
|
4147
|
+
"requiredFor": "identity"
|
|
4148
|
+
},
|
|
4149
|
+
"required": true
|
|
3721
4150
|
},
|
|
3722
4151
|
"revision": {
|
|
3723
4152
|
"type": "integer",
|
|
3724
|
-
"required": true,
|
|
3725
4153
|
"_meta": {
|
|
4154
|
+
"__statedOptions": [
|
|
4155
|
+
"required"
|
|
4156
|
+
],
|
|
3726
4157
|
"required": true
|
|
3727
|
-
}
|
|
4158
|
+
},
|
|
4159
|
+
"required": true
|
|
3728
4160
|
},
|
|
3729
4161
|
"state": {
|
|
3730
4162
|
"type": "text",
|
|
3731
|
-
"required": true,
|
|
3732
4163
|
"_meta": {
|
|
3733
|
-
"
|
|
3734
|
-
|
|
4164
|
+
"__statedOptions": [
|
|
4165
|
+
"required",
|
|
4166
|
+
"requiredFor"
|
|
4167
|
+
],
|
|
4168
|
+
"required": true,
|
|
4169
|
+
"requiredFor": "workflow-state"
|
|
4170
|
+
},
|
|
4171
|
+
"required": true
|
|
3735
4172
|
},
|
|
3736
4173
|
"jobId": {
|
|
3737
4174
|
"type": "text",
|
|
3738
|
-
"required": true,
|
|
3739
4175
|
"_meta": {
|
|
3740
|
-
"
|
|
3741
|
-
}
|
|
4176
|
+
"__statedOptions": []
|
|
4177
|
+
},
|
|
4178
|
+
"required": false
|
|
3742
4179
|
},
|
|
3743
4180
|
"deliveries": {
|
|
3744
4181
|
"type": "integer",
|
|
3745
|
-
"required": true,
|
|
3746
4182
|
"_meta": {
|
|
4183
|
+
"__statedOptions": [
|
|
4184
|
+
"required"
|
|
4185
|
+
],
|
|
3747
4186
|
"required": true
|
|
3748
|
-
}
|
|
4187
|
+
},
|
|
4188
|
+
"required": true
|
|
3749
4189
|
},
|
|
3750
4190
|
"data": {
|
|
3751
4191
|
"type": "json",
|
|
3752
|
-
"required": true,
|
|
3753
4192
|
"_meta": {
|
|
4193
|
+
"__statedOptions": [
|
|
4194
|
+
"required"
|
|
4195
|
+
],
|
|
3754
4196
|
"required": true
|
|
3755
|
-
}
|
|
4197
|
+
},
|
|
4198
|
+
"required": true
|
|
3756
4199
|
}
|
|
3757
4200
|
},
|
|
3758
4201
|
"methods": {
|
|
@@ -3832,11 +4275,6 @@
|
|
|
3832
4275
|
"rule": "required",
|
|
3833
4276
|
"fieldType": "text"
|
|
3834
4277
|
},
|
|
3835
|
-
{
|
|
3836
|
-
"field": "jobId",
|
|
3837
|
-
"rule": "required",
|
|
3838
|
-
"fieldType": "text"
|
|
3839
|
-
},
|
|
3840
4278
|
{
|
|
3841
4279
|
"field": "deliveries",
|
|
3842
4280
|
"rule": "required",
|
|
@@ -3850,7 +4288,7 @@
|
|
|
3850
4288
|
],
|
|
3851
4289
|
"schema": {
|
|
3852
4290
|
"tableName": "intake_dispatches",
|
|
3853
|
-
"ddl": "CREATE TABLE IF NOT EXISTS \"intake_dispatches\" (\n \"_sync_origin_device_id\" TEXT,\n \"_sync_revision\" INTEGER,\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID NOT NULL,\n \"confidential_scope_id\" TEXT NOT NULL,\n \"item_id\" UUID NOT NULL,\n \"stage\" TEXT NOT NULL,\n \"revision\" INTEGER NOT NULL,\n \"state\" TEXT NOT NULL,\n \"job_id\" TEXT
|
|
4291
|
+
"ddl": "CREATE TABLE IF NOT EXISTS \"intake_dispatches\" (\n \"_sync_origin_device_id\" TEXT,\n \"_sync_revision\" INTEGER,\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID NOT NULL,\n \"confidential_scope_id\" TEXT NOT NULL,\n \"item_id\" UUID NOT NULL,\n \"stage\" TEXT NOT NULL,\n \"revision\" INTEGER NOT NULL,\n \"state\" TEXT NOT NULL,\n \"job_id\" TEXT,\n \"deliveries\" INTEGER NOT NULL,\n \"data\" JSON NOT NULL\n);",
|
|
3854
4292
|
"columns": {
|
|
3855
4293
|
"_sync_origin_device_id": {
|
|
3856
4294
|
"type": "TEXT"
|
|
@@ -3923,7 +4361,7 @@
|
|
|
3923
4361
|
},
|
|
3924
4362
|
"job_id": {
|
|
3925
4363
|
"type": "TEXT",
|
|
3926
|
-
"notNull":
|
|
4364
|
+
"notNull": false,
|
|
3927
4365
|
"unique": false
|
|
3928
4366
|
},
|
|
3929
4367
|
"deliveries": {
|
|
@@ -3990,7 +4428,7 @@
|
|
|
3990
4428
|
]
|
|
3991
4429
|
}
|
|
3992
4430
|
],
|
|
3993
|
-
"version": "
|
|
4431
|
+
"version": "30a30db5"
|
|
3994
4432
|
},
|
|
3995
4433
|
"importPath": "@happyvertical/smrt-ingestion/models"
|
|
3996
4434
|
},
|
|
@@ -4000,14 +4438,12 @@
|
|
|
4000
4438
|
"qualifiedName": "@happyvertical/smrt-ingestion:IntakeDisposition",
|
|
4001
4439
|
"collection": "intakedispositions",
|
|
4002
4440
|
"description": "Durable reviewer disposition for an item closed without an action; append-only.",
|
|
4003
|
-
"filePath": "
|
|
4441
|
+
"filePath": "src/models.ts",
|
|
4004
4442
|
"packageName": "@happyvertical/smrt-ingestion",
|
|
4005
4443
|
"fields": {
|
|
4006
4444
|
"tenantId": {
|
|
4007
4445
|
"type": "text",
|
|
4008
|
-
"required": true,
|
|
4009
4446
|
"_meta": {
|
|
4010
|
-
"sqlType": "UUID",
|
|
4011
4447
|
"__tenancy": {
|
|
4012
4448
|
"isTenantIdField": true,
|
|
4013
4449
|
"autoFilter": true,
|
|
@@ -4017,44 +4453,71 @@
|
|
|
4017
4453
|
"mode": "required",
|
|
4018
4454
|
"field": "tenantId",
|
|
4019
4455
|
"allowSuperAdminBypass": false
|
|
4020
|
-
}
|
|
4021
|
-
|
|
4456
|
+
},
|
|
4457
|
+
"__statedOptions": [
|
|
4458
|
+
"sqlType",
|
|
4459
|
+
"requiredFor",
|
|
4460
|
+
"__tenancy"
|
|
4461
|
+
],
|
|
4462
|
+
"sqlType": "UUID",
|
|
4463
|
+
"requiredFor": "tenant-scope"
|
|
4464
|
+
},
|
|
4465
|
+
"required": true
|
|
4022
4466
|
},
|
|
4023
4467
|
"confidentialScopeId": {
|
|
4024
4468
|
"type": "text",
|
|
4025
|
-
"required": true,
|
|
4026
4469
|
"_meta": {
|
|
4027
|
-
"
|
|
4028
|
-
|
|
4470
|
+
"__statedOptions": [
|
|
4471
|
+
"required",
|
|
4472
|
+
"requiredFor"
|
|
4473
|
+
],
|
|
4474
|
+
"required": true,
|
|
4475
|
+
"requiredFor": "tenant-scope"
|
|
4476
|
+
},
|
|
4477
|
+
"required": true
|
|
4029
4478
|
},
|
|
4030
4479
|
"itemId": {
|
|
4031
4480
|
"type": "foreignKey",
|
|
4032
|
-
"required": true,
|
|
4033
|
-
"related": "IntakeItem",
|
|
4034
4481
|
"_meta": {
|
|
4035
|
-
"
|
|
4036
|
-
|
|
4482
|
+
"__statedOptions": [
|
|
4483
|
+
"required",
|
|
4484
|
+
"requiredFor",
|
|
4485
|
+
"related"
|
|
4486
|
+
],
|
|
4487
|
+
"required": true,
|
|
4488
|
+
"requiredFor": "identity"
|
|
4489
|
+
},
|
|
4490
|
+
"required": true,
|
|
4491
|
+
"related": "IntakeItem"
|
|
4037
4492
|
},
|
|
4038
4493
|
"requestKey": {
|
|
4039
4494
|
"type": "text",
|
|
4040
|
-
"required": true,
|
|
4041
4495
|
"_meta": {
|
|
4042
|
-
"
|
|
4043
|
-
|
|
4496
|
+
"__statedOptions": [
|
|
4497
|
+
"required",
|
|
4498
|
+
"requiredFor"
|
|
4499
|
+
],
|
|
4500
|
+
"required": true,
|
|
4501
|
+
"requiredFor": "identity"
|
|
4502
|
+
},
|
|
4503
|
+
"required": true
|
|
4044
4504
|
},
|
|
4045
4505
|
"disposition": {
|
|
4046
4506
|
"type": "text",
|
|
4047
|
-
"required": true,
|
|
4048
4507
|
"_meta": {
|
|
4049
|
-
"
|
|
4050
|
-
}
|
|
4508
|
+
"__statedOptions": []
|
|
4509
|
+
},
|
|
4510
|
+
"required": false
|
|
4051
4511
|
},
|
|
4052
4512
|
"data": {
|
|
4053
4513
|
"type": "json",
|
|
4054
|
-
"required": true,
|
|
4055
4514
|
"_meta": {
|
|
4515
|
+
"__statedOptions": [
|
|
4516
|
+
"required"
|
|
4517
|
+
],
|
|
4056
4518
|
"required": true
|
|
4057
|
-
}
|
|
4519
|
+
},
|
|
4520
|
+
"required": true
|
|
4058
4521
|
}
|
|
4059
4522
|
},
|
|
4060
4523
|
"methods": {
|
|
@@ -4116,11 +4579,6 @@
|
|
|
4116
4579
|
"rule": "required",
|
|
4117
4580
|
"fieldType": "text"
|
|
4118
4581
|
},
|
|
4119
|
-
{
|
|
4120
|
-
"field": "disposition",
|
|
4121
|
-
"rule": "required",
|
|
4122
|
-
"fieldType": "text"
|
|
4123
|
-
},
|
|
4124
4582
|
{
|
|
4125
4583
|
"field": "data",
|
|
4126
4584
|
"rule": "required",
|
|
@@ -4129,7 +4587,7 @@
|
|
|
4129
4587
|
],
|
|
4130
4588
|
"schema": {
|
|
4131
4589
|
"tableName": "intake_dispositions",
|
|
4132
|
-
"ddl": "CREATE TABLE IF NOT EXISTS \"intake_dispositions\" (\n \"_sync_origin_device_id\" TEXT,\n \"_sync_revision\" INTEGER,\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID NOT NULL,\n \"confidential_scope_id\" TEXT NOT NULL,\n \"item_id\" UUID NOT NULL,\n \"request_key\" TEXT NOT NULL,\n \"disposition\" TEXT
|
|
4590
|
+
"ddl": "CREATE TABLE IF NOT EXISTS \"intake_dispositions\" (\n \"_sync_origin_device_id\" TEXT,\n \"_sync_revision\" INTEGER,\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID NOT NULL,\n \"confidential_scope_id\" TEXT NOT NULL,\n \"item_id\" UUID NOT NULL,\n \"request_key\" TEXT NOT NULL,\n \"disposition\" TEXT,\n \"data\" JSON NOT NULL\n);",
|
|
4133
4591
|
"columns": {
|
|
4134
4592
|
"_sync_origin_device_id": {
|
|
4135
4593
|
"type": "TEXT"
|
|
@@ -4192,7 +4650,7 @@
|
|
|
4192
4650
|
},
|
|
4193
4651
|
"disposition": {
|
|
4194
4652
|
"type": "TEXT",
|
|
4195
|
-
"notNull":
|
|
4653
|
+
"notNull": false,
|
|
4196
4654
|
"unique": false
|
|
4197
4655
|
},
|
|
4198
4656
|
"data": {
|
|
@@ -4246,7 +4704,7 @@
|
|
|
4246
4704
|
]
|
|
4247
4705
|
}
|
|
4248
4706
|
],
|
|
4249
|
-
"version": "
|
|
4707
|
+
"version": "92476dea"
|
|
4250
4708
|
},
|
|
4251
4709
|
"importPath": "@happyvertical/smrt-ingestion/models"
|
|
4252
4710
|
},
|
|
@@ -4256,14 +4714,12 @@
|
|
|
4256
4714
|
"qualifiedName": "@happyvertical/smrt-ingestion:IntakeDeletion",
|
|
4257
4715
|
"collection": "intakedeletions",
|
|
4258
4716
|
"description": "Durable IntakeDeletion record; mutations belong to the server service.",
|
|
4259
|
-
"filePath": "
|
|
4717
|
+
"filePath": "src/models.ts",
|
|
4260
4718
|
"packageName": "@happyvertical/smrt-ingestion",
|
|
4261
4719
|
"fields": {
|
|
4262
4720
|
"tenantId": {
|
|
4263
4721
|
"type": "text",
|
|
4264
|
-
"required": true,
|
|
4265
4722
|
"_meta": {
|
|
4266
|
-
"sqlType": "UUID",
|
|
4267
4723
|
"__tenancy": {
|
|
4268
4724
|
"isTenantIdField": true,
|
|
4269
4725
|
"autoFilter": true,
|
|
@@ -4273,37 +4729,64 @@
|
|
|
4273
4729
|
"mode": "required",
|
|
4274
4730
|
"field": "tenantId",
|
|
4275
4731
|
"allowSuperAdminBypass": false
|
|
4276
|
-
}
|
|
4277
|
-
|
|
4732
|
+
},
|
|
4733
|
+
"__statedOptions": [
|
|
4734
|
+
"sqlType",
|
|
4735
|
+
"requiredFor",
|
|
4736
|
+
"__tenancy"
|
|
4737
|
+
],
|
|
4738
|
+
"sqlType": "UUID",
|
|
4739
|
+
"requiredFor": "tenant-scope"
|
|
4740
|
+
},
|
|
4741
|
+
"required": true
|
|
4278
4742
|
},
|
|
4279
4743
|
"confidentialScopeId": {
|
|
4280
4744
|
"type": "text",
|
|
4281
|
-
"required": true,
|
|
4282
4745
|
"_meta": {
|
|
4283
|
-
"
|
|
4284
|
-
|
|
4746
|
+
"__statedOptions": [
|
|
4747
|
+
"required",
|
|
4748
|
+
"requiredFor"
|
|
4749
|
+
],
|
|
4750
|
+
"required": true,
|
|
4751
|
+
"requiredFor": "tenant-scope"
|
|
4752
|
+
},
|
|
4753
|
+
"required": true
|
|
4285
4754
|
},
|
|
4286
4755
|
"itemId": {
|
|
4287
4756
|
"type": "foreignKey",
|
|
4288
|
-
"required": true,
|
|
4289
|
-
"related": "IntakeItem",
|
|
4290
4757
|
"_meta": {
|
|
4291
|
-
"
|
|
4292
|
-
|
|
4758
|
+
"__statedOptions": [
|
|
4759
|
+
"required",
|
|
4760
|
+
"requiredFor",
|
|
4761
|
+
"related"
|
|
4762
|
+
],
|
|
4763
|
+
"required": true,
|
|
4764
|
+
"requiredFor": "identity"
|
|
4765
|
+
},
|
|
4766
|
+
"required": true,
|
|
4767
|
+
"related": "IntakeItem"
|
|
4293
4768
|
},
|
|
4294
4769
|
"state": {
|
|
4295
4770
|
"type": "text",
|
|
4296
|
-
"required": true,
|
|
4297
4771
|
"_meta": {
|
|
4298
|
-
"
|
|
4299
|
-
|
|
4772
|
+
"__statedOptions": [
|
|
4773
|
+
"required",
|
|
4774
|
+
"requiredFor"
|
|
4775
|
+
],
|
|
4776
|
+
"required": true,
|
|
4777
|
+
"requiredFor": "workflow-state"
|
|
4778
|
+
},
|
|
4779
|
+
"required": true
|
|
4300
4780
|
},
|
|
4301
4781
|
"data": {
|
|
4302
4782
|
"type": "json",
|
|
4303
|
-
"required": true,
|
|
4304
4783
|
"_meta": {
|
|
4784
|
+
"__statedOptions": [
|
|
4785
|
+
"required"
|
|
4786
|
+
],
|
|
4305
4787
|
"required": true
|
|
4306
|
-
}
|
|
4788
|
+
},
|
|
4789
|
+
"required": true
|
|
4307
4790
|
}
|
|
4308
4791
|
},
|
|
4309
4792
|
"methods": {
|
|
@@ -4633,5 +5116,6 @@
|
|
|
4633
5116
|
"@happyvertical/smrt-users"
|
|
4634
5117
|
]
|
|
4635
5118
|
},
|
|
5119
|
+
"schemaFingerprint": "7c1fa301ba3649136781d4fe2e9833179f47733b77b4cfbb479c573f533d1aa1",
|
|
4636
5120
|
"stampsConstructors": true
|
|
4637
5121
|
}
|