@oxyhq/crowdsource-contracts 0.2.0 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/appeals.d.ts +323 -0
- package/dist/appeals.d.ts.map +1 -0
- package/dist/appeals.js +203 -0
- package/dist/appeals.js.map +1 -0
- package/dist/case-envelope.d.ts +59 -59
- package/dist/case-envelope.d.ts.map +1 -1
- package/dist/case-envelope.js +32 -32
- package/dist/case-envelope.js.map +1 -1
- package/dist/decisions.d.ts +3 -3
- package/dist/decisions.d.ts.map +1 -1
- package/dist/decisions.js +28 -28
- package/dist/decisions.js.map +1 -1
- package/dist/esm/appeals.js +200 -0
- package/dist/esm/appeals.js.map +1 -0
- package/dist/esm/case-envelope.js +380 -0
- package/dist/esm/case-envelope.js.map +1 -0
- package/dist/esm/closed.js +32 -0
- package/dist/esm/closed.js.map +1 -0
- package/dist/esm/decisions.js +195 -0
- package/dist/esm/decisions.js.map +1 -0
- package/dist/esm/index.js +48 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/json-schema.js +84 -0
- package/dist/esm/json-schema.js.map +1 -0
- package/dist/esm/package.json +1 -0
- package/dist/esm/policies.js +175 -0
- package/dist/esm/policies.js.map +1 -0
- package/dist/esm/primitives.js +249 -0
- package/dist/esm/primitives.js.map +1 -0
- package/dist/esm/reputation-events.js +125 -0
- package/dist/esm/reputation-events.js.map +1 -0
- package/dist/esm/resources.js +455 -0
- package/dist/esm/resources.js.map +1 -0
- package/dist/esm/reviewer-surface.js +612 -0
- package/dist/esm/reviewer-surface.js.map +1 -0
- package/dist/esm/reviews.js +141 -0
- package/dist/esm/reviews.js.map +1 -0
- package/dist/esm/taxonomy.js +278 -0
- package/dist/esm/taxonomy.js.map +1 -0
- package/dist/esm/webhooks.js +188 -0
- package/dist/esm/webhooks.js.map +1 -0
- package/dist/index.d.ts +13 -11
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +13 -11
- package/dist/index.js.map +1 -1
- package/dist/json-schema.d.ts +2 -2
- package/dist/json-schema.d.ts.map +1 -1
- package/dist/json-schema.js +26 -21
- package/dist/json-schema.js.map +1 -1
- package/dist/policies.d.ts +1 -1
- package/dist/policies.d.ts.map +1 -1
- package/dist/policies.js +14 -14
- package/dist/policies.js.map +1 -1
- package/dist/primitives.d.ts +17 -0
- package/dist/primitives.d.ts.map +1 -1
- package/dist/primitives.js +22 -1
- package/dist/primitives.js.map +1 -1
- package/dist/reputation-events.js +19 -19
- package/dist/reputation-events.js.map +1 -1
- package/dist/resources.d.ts +116 -39
- package/dist/resources.d.ts.map +1 -1
- package/dist/resources.js +143 -121
- package/dist/resources.js.map +1 -1
- package/dist/reviewer-surface.d.ts +1956 -0
- package/dist/reviewer-surface.d.ts.map +1 -0
- package/dist/reviewer-surface.js +615 -0
- package/dist/reviewer-surface.js.map +1 -0
- package/dist/reviews.d.ts +2 -2
- package/dist/reviews.js +15 -15
- package/dist/reviews.js.map +1 -1
- package/dist/webhooks.d.ts +4 -4
- package/dist/webhooks.d.ts.map +1 -1
- package/dist/webhooks.js +18 -18
- package/dist/webhooks.js.map +1 -1
- package/package.json +4 -4
- package/src/appeals.ts +229 -0
- package/src/case-envelope.ts +5 -5
- package/src/decisions.ts +6 -6
- package/src/index.ts +13 -11
- package/src/json-schema.ts +13 -8
- package/src/policies.ts +3 -3
- package/src/primitives.ts +25 -0
- package/src/reputation-events.ts +4 -4
- package/src/resources.ts +136 -100
- package/src/reviewer-surface.ts +715 -0
- package/src/reviews.ts +4 -4
- package/src/webhooks.ts +4 -4
package/dist/case-envelope.d.ts
CHANGED
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
* avatar — since a dangling id is the same defect wherever it appears.
|
|
27
27
|
*/
|
|
28
28
|
import { z } from 'zod';
|
|
29
|
-
import type { Closed } from './closed';
|
|
29
|
+
import type { Closed } from './closed.js';
|
|
30
30
|
/**
|
|
31
31
|
* The contract version carried inside the payload.
|
|
32
32
|
*
|
|
@@ -287,13 +287,13 @@ export declare const CaseEnvelopeSchema: z.ZodObject<{
|
|
|
287
287
|
sha256: z.ZodString;
|
|
288
288
|
id: z.ZodString;
|
|
289
289
|
role: z.ZodEnum<{
|
|
290
|
-
|
|
290
|
+
metadata: "metadata";
|
|
291
291
|
subject: "subject";
|
|
292
292
|
attachment: "attachment";
|
|
293
|
+
context: "context";
|
|
293
294
|
parent: "parent";
|
|
294
295
|
quoted: "quoted";
|
|
295
296
|
evidence: "evidence";
|
|
296
|
-
metadata: "metadata";
|
|
297
297
|
policy_context: "policy_context";
|
|
298
298
|
}>;
|
|
299
299
|
language: z.ZodOptional<z.ZodString>;
|
|
@@ -303,7 +303,7 @@ export declare const CaseEnvelopeSchema: z.ZodObject<{
|
|
|
303
303
|
}, z.core.$strict>, z.ZodObject<{
|
|
304
304
|
type: z.ZodLiteral<"image">;
|
|
305
305
|
asset: z.ZodObject<{
|
|
306
|
-
|
|
306
|
+
fileId: z.ZodString;
|
|
307
307
|
url: z.ZodOptional<z.ZodURL>;
|
|
308
308
|
mimeType: z.ZodString;
|
|
309
309
|
sha256: z.ZodString;
|
|
@@ -315,13 +315,13 @@ export declare const CaseEnvelopeSchema: z.ZodObject<{
|
|
|
315
315
|
sha256: z.ZodOptional<z.ZodString>;
|
|
316
316
|
id: z.ZodString;
|
|
317
317
|
role: z.ZodEnum<{
|
|
318
|
-
|
|
318
|
+
metadata: "metadata";
|
|
319
319
|
subject: "subject";
|
|
320
320
|
attachment: "attachment";
|
|
321
|
+
context: "context";
|
|
321
322
|
parent: "parent";
|
|
322
323
|
quoted: "quoted";
|
|
323
324
|
evidence: "evidence";
|
|
324
|
-
metadata: "metadata";
|
|
325
325
|
policy_context: "policy_context";
|
|
326
326
|
}>;
|
|
327
327
|
language: z.ZodOptional<z.ZodString>;
|
|
@@ -331,7 +331,7 @@ export declare const CaseEnvelopeSchema: z.ZodObject<{
|
|
|
331
331
|
}, z.core.$strict>, z.ZodObject<{
|
|
332
332
|
type: z.ZodLiteral<"video">;
|
|
333
333
|
asset: z.ZodObject<{
|
|
334
|
-
|
|
334
|
+
fileId: z.ZodString;
|
|
335
335
|
url: z.ZodOptional<z.ZodURL>;
|
|
336
336
|
mimeType: z.ZodString;
|
|
337
337
|
sha256: z.ZodString;
|
|
@@ -349,13 +349,13 @@ export declare const CaseEnvelopeSchema: z.ZodObject<{
|
|
|
349
349
|
sha256: z.ZodOptional<z.ZodString>;
|
|
350
350
|
id: z.ZodString;
|
|
351
351
|
role: z.ZodEnum<{
|
|
352
|
-
|
|
352
|
+
metadata: "metadata";
|
|
353
353
|
subject: "subject";
|
|
354
354
|
attachment: "attachment";
|
|
355
|
+
context: "context";
|
|
355
356
|
parent: "parent";
|
|
356
357
|
quoted: "quoted";
|
|
357
358
|
evidence: "evidence";
|
|
358
|
-
metadata: "metadata";
|
|
359
359
|
policy_context: "policy_context";
|
|
360
360
|
}>;
|
|
361
361
|
language: z.ZodOptional<z.ZodString>;
|
|
@@ -365,7 +365,7 @@ export declare const CaseEnvelopeSchema: z.ZodObject<{
|
|
|
365
365
|
}, z.core.$strict>, z.ZodObject<{
|
|
366
366
|
type: z.ZodLiteral<"audio">;
|
|
367
367
|
asset: z.ZodObject<{
|
|
368
|
-
|
|
368
|
+
fileId: z.ZodString;
|
|
369
369
|
url: z.ZodOptional<z.ZodURL>;
|
|
370
370
|
mimeType: z.ZodString;
|
|
371
371
|
sha256: z.ZodString;
|
|
@@ -380,13 +380,13 @@ export declare const CaseEnvelopeSchema: z.ZodObject<{
|
|
|
380
380
|
sha256: z.ZodOptional<z.ZodString>;
|
|
381
381
|
id: z.ZodString;
|
|
382
382
|
role: z.ZodEnum<{
|
|
383
|
-
|
|
383
|
+
metadata: "metadata";
|
|
384
384
|
subject: "subject";
|
|
385
385
|
attachment: "attachment";
|
|
386
|
+
context: "context";
|
|
386
387
|
parent: "parent";
|
|
387
388
|
quoted: "quoted";
|
|
388
389
|
evidence: "evidence";
|
|
389
|
-
metadata: "metadata";
|
|
390
390
|
policy_context: "policy_context";
|
|
391
391
|
}>;
|
|
392
392
|
language: z.ZodOptional<z.ZodString>;
|
|
@@ -396,7 +396,7 @@ export declare const CaseEnvelopeSchema: z.ZodObject<{
|
|
|
396
396
|
}, z.core.$strict>, z.ZodObject<{
|
|
397
397
|
type: z.ZodLiteral<"document">;
|
|
398
398
|
asset: z.ZodObject<{
|
|
399
|
-
|
|
399
|
+
fileId: z.ZodString;
|
|
400
400
|
url: z.ZodOptional<z.ZodURL>;
|
|
401
401
|
mimeType: z.ZodString;
|
|
402
402
|
sha256: z.ZodString;
|
|
@@ -412,13 +412,13 @@ export declare const CaseEnvelopeSchema: z.ZodObject<{
|
|
|
412
412
|
sha256: z.ZodOptional<z.ZodString>;
|
|
413
413
|
id: z.ZodString;
|
|
414
414
|
role: z.ZodEnum<{
|
|
415
|
-
|
|
415
|
+
metadata: "metadata";
|
|
416
416
|
subject: "subject";
|
|
417
417
|
attachment: "attachment";
|
|
418
|
+
context: "context";
|
|
418
419
|
parent: "parent";
|
|
419
420
|
quoted: "quoted";
|
|
420
421
|
evidence: "evidence";
|
|
421
|
-
metadata: "metadata";
|
|
422
422
|
policy_context: "policy_context";
|
|
423
423
|
}>;
|
|
424
424
|
language: z.ZodOptional<z.ZodString>;
|
|
@@ -436,13 +436,13 @@ export declare const CaseEnvelopeSchema: z.ZodObject<{
|
|
|
436
436
|
sha256: z.ZodString;
|
|
437
437
|
id: z.ZodString;
|
|
438
438
|
role: z.ZodEnum<{
|
|
439
|
-
|
|
439
|
+
metadata: "metadata";
|
|
440
440
|
subject: "subject";
|
|
441
441
|
attachment: "attachment";
|
|
442
|
+
context: "context";
|
|
442
443
|
parent: "parent";
|
|
443
444
|
quoted: "quoted";
|
|
444
445
|
evidence: "evidence";
|
|
445
|
-
metadata: "metadata";
|
|
446
446
|
policy_context: "policy_context";
|
|
447
447
|
}>;
|
|
448
448
|
language: z.ZodOptional<z.ZodString>;
|
|
@@ -460,13 +460,13 @@ export declare const CaseEnvelopeSchema: z.ZodObject<{
|
|
|
460
460
|
sha256: z.ZodString;
|
|
461
461
|
id: z.ZodString;
|
|
462
462
|
role: z.ZodEnum<{
|
|
463
|
-
|
|
463
|
+
metadata: "metadata";
|
|
464
464
|
subject: "subject";
|
|
465
465
|
attachment: "attachment";
|
|
466
|
+
context: "context";
|
|
466
467
|
parent: "parent";
|
|
467
468
|
quoted: "quoted";
|
|
468
469
|
evidence: "evidence";
|
|
469
|
-
metadata: "metadata";
|
|
470
470
|
policy_context: "policy_context";
|
|
471
471
|
}>;
|
|
472
472
|
language: z.ZodOptional<z.ZodString>;
|
|
@@ -481,13 +481,13 @@ export declare const CaseEnvelopeSchema: z.ZodObject<{
|
|
|
481
481
|
sha256: z.ZodString;
|
|
482
482
|
id: z.ZodString;
|
|
483
483
|
role: z.ZodEnum<{
|
|
484
|
-
|
|
484
|
+
metadata: "metadata";
|
|
485
485
|
subject: "subject";
|
|
486
486
|
attachment: "attachment";
|
|
487
|
+
context: "context";
|
|
487
488
|
parent: "parent";
|
|
488
489
|
quoted: "quoted";
|
|
489
490
|
evidence: "evidence";
|
|
490
|
-
metadata: "metadata";
|
|
491
491
|
policy_context: "policy_context";
|
|
492
492
|
}>;
|
|
493
493
|
language: z.ZodOptional<z.ZodString>;
|
|
@@ -507,13 +507,13 @@ export declare const CaseEnvelopeSchema: z.ZodObject<{
|
|
|
507
507
|
sha256: z.ZodString;
|
|
508
508
|
id: z.ZodString;
|
|
509
509
|
role: z.ZodEnum<{
|
|
510
|
-
|
|
510
|
+
metadata: "metadata";
|
|
511
511
|
subject: "subject";
|
|
512
512
|
attachment: "attachment";
|
|
513
|
+
context: "context";
|
|
513
514
|
parent: "parent";
|
|
514
515
|
quoted: "quoted";
|
|
515
516
|
evidence: "evidence";
|
|
516
|
-
metadata: "metadata";
|
|
517
517
|
policy_context: "policy_context";
|
|
518
518
|
}>;
|
|
519
519
|
language: z.ZodOptional<z.ZodString>;
|
|
@@ -530,13 +530,13 @@ export declare const CaseEnvelopeSchema: z.ZodObject<{
|
|
|
530
530
|
sha256: z.ZodString;
|
|
531
531
|
id: z.ZodString;
|
|
532
532
|
role: z.ZodEnum<{
|
|
533
|
-
|
|
533
|
+
metadata: "metadata";
|
|
534
534
|
subject: "subject";
|
|
535
535
|
attachment: "attachment";
|
|
536
|
+
context: "context";
|
|
536
537
|
parent: "parent";
|
|
537
538
|
quoted: "quoted";
|
|
538
539
|
evidence: "evidence";
|
|
539
|
-
metadata: "metadata";
|
|
540
540
|
policy_context: "policy_context";
|
|
541
541
|
}>;
|
|
542
542
|
language: z.ZodOptional<z.ZodString>;
|
|
@@ -549,13 +549,13 @@ export declare const CaseEnvelopeSchema: z.ZodObject<{
|
|
|
549
549
|
sha256: z.ZodString;
|
|
550
550
|
id: z.ZodString;
|
|
551
551
|
role: z.ZodEnum<{
|
|
552
|
-
|
|
552
|
+
metadata: "metadata";
|
|
553
553
|
subject: "subject";
|
|
554
554
|
attachment: "attachment";
|
|
555
|
+
context: "context";
|
|
555
556
|
parent: "parent";
|
|
556
557
|
quoted: "quoted";
|
|
557
558
|
evidence: "evidence";
|
|
558
|
-
metadata: "metadata";
|
|
559
559
|
policy_context: "policy_context";
|
|
560
560
|
}>;
|
|
561
561
|
language: z.ZodOptional<z.ZodString>;
|
|
@@ -565,17 +565,17 @@ export declare const CaseEnvelopeSchema: z.ZodObject<{
|
|
|
565
565
|
}, z.core.$strict>, z.ZodObject<{
|
|
566
566
|
type: z.ZodLiteral<"custom">;
|
|
567
567
|
schemaId: z.ZodString;
|
|
568
|
-
payload: z.ZodRecord<z.ZodString, z.ZodType<import("./primitives").CustomPayloadValue, unknown, z.core.$ZodTypeInternals<import("./primitives").CustomPayloadValue, unknown>>>;
|
|
568
|
+
payload: z.ZodRecord<z.ZodString, z.ZodType<import("./primitives.js").CustomPayloadValue, unknown, z.core.$ZodTypeInternals<import("./primitives.js").CustomPayloadValue, unknown>>>;
|
|
569
569
|
sha256: z.ZodString;
|
|
570
570
|
id: z.ZodString;
|
|
571
571
|
role: z.ZodEnum<{
|
|
572
|
-
|
|
572
|
+
metadata: "metadata";
|
|
573
573
|
subject: "subject";
|
|
574
574
|
attachment: "attachment";
|
|
575
|
+
context: "context";
|
|
575
576
|
parent: "parent";
|
|
576
577
|
quoted: "quoted";
|
|
577
578
|
evidence: "evidence";
|
|
578
|
-
metadata: "metadata";
|
|
579
579
|
policy_context: "policy_context";
|
|
580
580
|
}>;
|
|
581
581
|
language: z.ZodOptional<z.ZodString>;
|
|
@@ -737,13 +737,13 @@ export declare const CreateReportRequestSchema: z.ZodObject<{
|
|
|
737
737
|
sha256: z.ZodString;
|
|
738
738
|
id: z.ZodString;
|
|
739
739
|
role: z.ZodEnum<{
|
|
740
|
-
|
|
740
|
+
metadata: "metadata";
|
|
741
741
|
subject: "subject";
|
|
742
742
|
attachment: "attachment";
|
|
743
|
+
context: "context";
|
|
743
744
|
parent: "parent";
|
|
744
745
|
quoted: "quoted";
|
|
745
746
|
evidence: "evidence";
|
|
746
|
-
metadata: "metadata";
|
|
747
747
|
policy_context: "policy_context";
|
|
748
748
|
}>;
|
|
749
749
|
language: z.ZodOptional<z.ZodString>;
|
|
@@ -753,7 +753,7 @@ export declare const CreateReportRequestSchema: z.ZodObject<{
|
|
|
753
753
|
}, z.core.$strict>, z.ZodObject<{
|
|
754
754
|
type: z.ZodLiteral<"image">;
|
|
755
755
|
asset: z.ZodObject<{
|
|
756
|
-
|
|
756
|
+
fileId: z.ZodString;
|
|
757
757
|
url: z.ZodOptional<z.ZodURL>;
|
|
758
758
|
mimeType: z.ZodString;
|
|
759
759
|
sha256: z.ZodString;
|
|
@@ -765,13 +765,13 @@ export declare const CreateReportRequestSchema: z.ZodObject<{
|
|
|
765
765
|
sha256: z.ZodOptional<z.ZodString>;
|
|
766
766
|
id: z.ZodString;
|
|
767
767
|
role: z.ZodEnum<{
|
|
768
|
-
|
|
768
|
+
metadata: "metadata";
|
|
769
769
|
subject: "subject";
|
|
770
770
|
attachment: "attachment";
|
|
771
|
+
context: "context";
|
|
771
772
|
parent: "parent";
|
|
772
773
|
quoted: "quoted";
|
|
773
774
|
evidence: "evidence";
|
|
774
|
-
metadata: "metadata";
|
|
775
775
|
policy_context: "policy_context";
|
|
776
776
|
}>;
|
|
777
777
|
language: z.ZodOptional<z.ZodString>;
|
|
@@ -781,7 +781,7 @@ export declare const CreateReportRequestSchema: z.ZodObject<{
|
|
|
781
781
|
}, z.core.$strict>, z.ZodObject<{
|
|
782
782
|
type: z.ZodLiteral<"video">;
|
|
783
783
|
asset: z.ZodObject<{
|
|
784
|
-
|
|
784
|
+
fileId: z.ZodString;
|
|
785
785
|
url: z.ZodOptional<z.ZodURL>;
|
|
786
786
|
mimeType: z.ZodString;
|
|
787
787
|
sha256: z.ZodString;
|
|
@@ -799,13 +799,13 @@ export declare const CreateReportRequestSchema: z.ZodObject<{
|
|
|
799
799
|
sha256: z.ZodOptional<z.ZodString>;
|
|
800
800
|
id: z.ZodString;
|
|
801
801
|
role: z.ZodEnum<{
|
|
802
|
-
|
|
802
|
+
metadata: "metadata";
|
|
803
803
|
subject: "subject";
|
|
804
804
|
attachment: "attachment";
|
|
805
|
+
context: "context";
|
|
805
806
|
parent: "parent";
|
|
806
807
|
quoted: "quoted";
|
|
807
808
|
evidence: "evidence";
|
|
808
|
-
metadata: "metadata";
|
|
809
809
|
policy_context: "policy_context";
|
|
810
810
|
}>;
|
|
811
811
|
language: z.ZodOptional<z.ZodString>;
|
|
@@ -815,7 +815,7 @@ export declare const CreateReportRequestSchema: z.ZodObject<{
|
|
|
815
815
|
}, z.core.$strict>, z.ZodObject<{
|
|
816
816
|
type: z.ZodLiteral<"audio">;
|
|
817
817
|
asset: z.ZodObject<{
|
|
818
|
-
|
|
818
|
+
fileId: z.ZodString;
|
|
819
819
|
url: z.ZodOptional<z.ZodURL>;
|
|
820
820
|
mimeType: z.ZodString;
|
|
821
821
|
sha256: z.ZodString;
|
|
@@ -830,13 +830,13 @@ export declare const CreateReportRequestSchema: z.ZodObject<{
|
|
|
830
830
|
sha256: z.ZodOptional<z.ZodString>;
|
|
831
831
|
id: z.ZodString;
|
|
832
832
|
role: z.ZodEnum<{
|
|
833
|
-
|
|
833
|
+
metadata: "metadata";
|
|
834
834
|
subject: "subject";
|
|
835
835
|
attachment: "attachment";
|
|
836
|
+
context: "context";
|
|
836
837
|
parent: "parent";
|
|
837
838
|
quoted: "quoted";
|
|
838
839
|
evidence: "evidence";
|
|
839
|
-
metadata: "metadata";
|
|
840
840
|
policy_context: "policy_context";
|
|
841
841
|
}>;
|
|
842
842
|
language: z.ZodOptional<z.ZodString>;
|
|
@@ -846,7 +846,7 @@ export declare const CreateReportRequestSchema: z.ZodObject<{
|
|
|
846
846
|
}, z.core.$strict>, z.ZodObject<{
|
|
847
847
|
type: z.ZodLiteral<"document">;
|
|
848
848
|
asset: z.ZodObject<{
|
|
849
|
-
|
|
849
|
+
fileId: z.ZodString;
|
|
850
850
|
url: z.ZodOptional<z.ZodURL>;
|
|
851
851
|
mimeType: z.ZodString;
|
|
852
852
|
sha256: z.ZodString;
|
|
@@ -862,13 +862,13 @@ export declare const CreateReportRequestSchema: z.ZodObject<{
|
|
|
862
862
|
sha256: z.ZodOptional<z.ZodString>;
|
|
863
863
|
id: z.ZodString;
|
|
864
864
|
role: z.ZodEnum<{
|
|
865
|
-
|
|
865
|
+
metadata: "metadata";
|
|
866
866
|
subject: "subject";
|
|
867
867
|
attachment: "attachment";
|
|
868
|
+
context: "context";
|
|
868
869
|
parent: "parent";
|
|
869
870
|
quoted: "quoted";
|
|
870
871
|
evidence: "evidence";
|
|
871
|
-
metadata: "metadata";
|
|
872
872
|
policy_context: "policy_context";
|
|
873
873
|
}>;
|
|
874
874
|
language: z.ZodOptional<z.ZodString>;
|
|
@@ -886,13 +886,13 @@ export declare const CreateReportRequestSchema: z.ZodObject<{
|
|
|
886
886
|
sha256: z.ZodString;
|
|
887
887
|
id: z.ZodString;
|
|
888
888
|
role: z.ZodEnum<{
|
|
889
|
-
|
|
889
|
+
metadata: "metadata";
|
|
890
890
|
subject: "subject";
|
|
891
891
|
attachment: "attachment";
|
|
892
|
+
context: "context";
|
|
892
893
|
parent: "parent";
|
|
893
894
|
quoted: "quoted";
|
|
894
895
|
evidence: "evidence";
|
|
895
|
-
metadata: "metadata";
|
|
896
896
|
policy_context: "policy_context";
|
|
897
897
|
}>;
|
|
898
898
|
language: z.ZodOptional<z.ZodString>;
|
|
@@ -910,13 +910,13 @@ export declare const CreateReportRequestSchema: z.ZodObject<{
|
|
|
910
910
|
sha256: z.ZodString;
|
|
911
911
|
id: z.ZodString;
|
|
912
912
|
role: z.ZodEnum<{
|
|
913
|
-
|
|
913
|
+
metadata: "metadata";
|
|
914
914
|
subject: "subject";
|
|
915
915
|
attachment: "attachment";
|
|
916
|
+
context: "context";
|
|
916
917
|
parent: "parent";
|
|
917
918
|
quoted: "quoted";
|
|
918
919
|
evidence: "evidence";
|
|
919
|
-
metadata: "metadata";
|
|
920
920
|
policy_context: "policy_context";
|
|
921
921
|
}>;
|
|
922
922
|
language: z.ZodOptional<z.ZodString>;
|
|
@@ -931,13 +931,13 @@ export declare const CreateReportRequestSchema: z.ZodObject<{
|
|
|
931
931
|
sha256: z.ZodString;
|
|
932
932
|
id: z.ZodString;
|
|
933
933
|
role: z.ZodEnum<{
|
|
934
|
-
|
|
934
|
+
metadata: "metadata";
|
|
935
935
|
subject: "subject";
|
|
936
936
|
attachment: "attachment";
|
|
937
|
+
context: "context";
|
|
937
938
|
parent: "parent";
|
|
938
939
|
quoted: "quoted";
|
|
939
940
|
evidence: "evidence";
|
|
940
|
-
metadata: "metadata";
|
|
941
941
|
policy_context: "policy_context";
|
|
942
942
|
}>;
|
|
943
943
|
language: z.ZodOptional<z.ZodString>;
|
|
@@ -957,13 +957,13 @@ export declare const CreateReportRequestSchema: z.ZodObject<{
|
|
|
957
957
|
sha256: z.ZodString;
|
|
958
958
|
id: z.ZodString;
|
|
959
959
|
role: z.ZodEnum<{
|
|
960
|
-
|
|
960
|
+
metadata: "metadata";
|
|
961
961
|
subject: "subject";
|
|
962
962
|
attachment: "attachment";
|
|
963
|
+
context: "context";
|
|
963
964
|
parent: "parent";
|
|
964
965
|
quoted: "quoted";
|
|
965
966
|
evidence: "evidence";
|
|
966
|
-
metadata: "metadata";
|
|
967
967
|
policy_context: "policy_context";
|
|
968
968
|
}>;
|
|
969
969
|
language: z.ZodOptional<z.ZodString>;
|
|
@@ -980,13 +980,13 @@ export declare const CreateReportRequestSchema: z.ZodObject<{
|
|
|
980
980
|
sha256: z.ZodString;
|
|
981
981
|
id: z.ZodString;
|
|
982
982
|
role: z.ZodEnum<{
|
|
983
|
-
|
|
983
|
+
metadata: "metadata";
|
|
984
984
|
subject: "subject";
|
|
985
985
|
attachment: "attachment";
|
|
986
|
+
context: "context";
|
|
986
987
|
parent: "parent";
|
|
987
988
|
quoted: "quoted";
|
|
988
989
|
evidence: "evidence";
|
|
989
|
-
metadata: "metadata";
|
|
990
990
|
policy_context: "policy_context";
|
|
991
991
|
}>;
|
|
992
992
|
language: z.ZodOptional<z.ZodString>;
|
|
@@ -999,13 +999,13 @@ export declare const CreateReportRequestSchema: z.ZodObject<{
|
|
|
999
999
|
sha256: z.ZodString;
|
|
1000
1000
|
id: z.ZodString;
|
|
1001
1001
|
role: z.ZodEnum<{
|
|
1002
|
-
|
|
1002
|
+
metadata: "metadata";
|
|
1003
1003
|
subject: "subject";
|
|
1004
1004
|
attachment: "attachment";
|
|
1005
|
+
context: "context";
|
|
1005
1006
|
parent: "parent";
|
|
1006
1007
|
quoted: "quoted";
|
|
1007
1008
|
evidence: "evidence";
|
|
1008
|
-
metadata: "metadata";
|
|
1009
1009
|
policy_context: "policy_context";
|
|
1010
1010
|
}>;
|
|
1011
1011
|
language: z.ZodOptional<z.ZodString>;
|
|
@@ -1015,17 +1015,17 @@ export declare const CreateReportRequestSchema: z.ZodObject<{
|
|
|
1015
1015
|
}, z.core.$strict>, z.ZodObject<{
|
|
1016
1016
|
type: z.ZodLiteral<"custom">;
|
|
1017
1017
|
schemaId: z.ZodString;
|
|
1018
|
-
payload: z.ZodRecord<z.ZodString, z.ZodType<import("./primitives").CustomPayloadValue, unknown, z.core.$ZodTypeInternals<import("./primitives").CustomPayloadValue, unknown>>>;
|
|
1018
|
+
payload: z.ZodRecord<z.ZodString, z.ZodType<import("./primitives.js").CustomPayloadValue, unknown, z.core.$ZodTypeInternals<import("./primitives.js").CustomPayloadValue, unknown>>>;
|
|
1019
1019
|
sha256: z.ZodString;
|
|
1020
1020
|
id: z.ZodString;
|
|
1021
1021
|
role: z.ZodEnum<{
|
|
1022
|
-
|
|
1022
|
+
metadata: "metadata";
|
|
1023
1023
|
subject: "subject";
|
|
1024
1024
|
attachment: "attachment";
|
|
1025
|
+
context: "context";
|
|
1025
1026
|
parent: "parent";
|
|
1026
1027
|
quoted: "quoted";
|
|
1027
1028
|
evidence: "evidence";
|
|
1028
|
-
metadata: "metadata";
|
|
1029
1029
|
policy_context: "policy_context";
|
|
1030
1030
|
}>;
|
|
1031
1031
|
language: z.ZodOptional<z.ZodString>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"case-envelope.d.ts","sourceRoot":"","sources":["../src/case-envelope.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAmBxB,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"case-envelope.d.ts","sourceRoot":"","sources":["../src/case-envelope.ts"],"names":[],"mappings":"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"}
|
package/dist/case-envelope.js
CHANGED
|
@@ -29,10 +29,10 @@
|
|
|
29
29
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
30
30
|
exports.CreateReportResponseSchema = exports.CreateReportRequestSchema = exports.ReportStatusSchema = exports.REPORT_STATUSES = exports.CaseEnvelopeSchema = exports.CaseUrgencySchema = exports.CasePrivacySchema = exports.CaseSourceSchema = exports.SourceEnvironmentSchema = exports.SOURCE_ENVIRONMENTS = exports.AllegationSchema = exports.PrincipalBindingSchema = exports.PrincipalTypeSchema = exports.PRINCIPAL_TYPES = exports.CaseSubjectSchema = exports.SubjectTypeSchema = exports.STANDARD_SUBJECT_TYPES = exports.CaseEnvelopeSchemaVersionSchema = exports.CASE_ENVELOPE_SCHEMA_VERSION = void 0;
|
|
31
31
|
const zod_1 = require("zod");
|
|
32
|
-
const
|
|
33
|
-
const
|
|
34
|
-
const
|
|
35
|
-
const
|
|
32
|
+
const primitives_js_1 = require("./primitives.js");
|
|
33
|
+
const policies_js_1 = require("./policies.js");
|
|
34
|
+
const resources_js_1 = require("./resources.js");
|
|
35
|
+
const taxonomy_js_1 = require("./taxonomy.js");
|
|
36
36
|
/**
|
|
37
37
|
* The contract version carried inside the payload.
|
|
38
38
|
*
|
|
@@ -68,16 +68,16 @@ exports.SubjectTypeSchema = zod_1.z.union([
|
|
|
68
68
|
zod_1.z.enum(exports.STANDARD_SUBJECT_TYPES),
|
|
69
69
|
zod_1.z
|
|
70
70
|
.string()
|
|
71
|
-
.max(
|
|
71
|
+
.max(primitives_js_1.CONTRACT_LIMITS.IDENTIFIER_MAX_LENGTH)
|
|
72
72
|
.regex(/^custom\.[a-z0-9][a-z0-9_-]*\.[a-z0-9][a-z0-9_-]*$/, 'a custom subject type must be "custom.<organization>.<object_type>"'),
|
|
73
73
|
]);
|
|
74
74
|
/** §5.1 / Appendix A `subject`. */
|
|
75
75
|
exports.CaseSubjectSchema = zod_1.z.strictObject({
|
|
76
|
-
externalId:
|
|
76
|
+
externalId: primitives_js_1.ExternalIdSchema,
|
|
77
77
|
type: exports.SubjectTypeSchema,
|
|
78
|
-
primaryResourceId:
|
|
78
|
+
primaryResourceId: resources_js_1.ResourceIdSchema,
|
|
79
79
|
/** Where the application's own users see the object. Never fetched by a jury. */
|
|
80
|
-
permalink:
|
|
80
|
+
permalink: primitives_js_1.HttpUrlSchema.optional(),
|
|
81
81
|
});
|
|
82
82
|
/**
|
|
83
83
|
* §3 principal kinds.
|
|
@@ -109,12 +109,12 @@ exports.PrincipalTypeSchema = zod_1.z.enum(exports.PRINCIPAL_TYPES);
|
|
|
109
109
|
*/
|
|
110
110
|
exports.PrincipalBindingSchema = zod_1.z
|
|
111
111
|
.strictObject({
|
|
112
|
-
principalRef:
|
|
112
|
+
principalRef: resources_js_1.PrincipalRefSchema,
|
|
113
113
|
type: exports.PrincipalTypeSchema,
|
|
114
114
|
/** The application's own id for the actor. Pseudonymous to the jury. */
|
|
115
|
-
externalPrincipalId:
|
|
116
|
-
bindingProofId:
|
|
117
|
-
boundAt:
|
|
115
|
+
externalPrincipalId: primitives_js_1.ExternalIdSchema.optional(),
|
|
116
|
+
bindingProofId: primitives_js_1.IdentifierSchema.optional(),
|
|
117
|
+
boundAt: primitives_js_1.TimestampSchema.optional(),
|
|
118
118
|
})
|
|
119
119
|
.superRefine((binding, ctx) => {
|
|
120
120
|
if (binding.type === 'oxy_user' && binding.bindingProofId === undefined) {
|
|
@@ -133,13 +133,13 @@ exports.PrincipalBindingSchema = zod_1.z
|
|
|
133
133
|
* `code` is required: §5.8's example carries nothing else.
|
|
134
134
|
*/
|
|
135
135
|
exports.AllegationSchema = zod_1.z.strictObject({
|
|
136
|
-
code:
|
|
136
|
+
code: taxonomy_js_1.TaxonomyCodeSchema,
|
|
137
137
|
resourceIds: zod_1.z
|
|
138
|
-
.array(
|
|
139
|
-
.max(
|
|
138
|
+
.array(resources_js_1.ResourceIdSchema)
|
|
139
|
+
.max(primitives_js_1.CONTRACT_LIMITS.RESOURCE_REFS_PER_FINDING_MAX)
|
|
140
140
|
.optional(),
|
|
141
|
-
reporterPrincipalRef:
|
|
142
|
-
details: zod_1.z.string().max(
|
|
141
|
+
reporterPrincipalRef: resources_js_1.PrincipalRefSchema.optional(),
|
|
142
|
+
details: zod_1.z.string().max(primitives_js_1.CONTRACT_LIMITS.LONG_TEXT_MAX_LENGTH).optional(),
|
|
143
143
|
});
|
|
144
144
|
/**
|
|
145
145
|
* The environment the report came from, as the APPLICATION sees it.
|
|
@@ -154,12 +154,12 @@ exports.SourceEnvironmentSchema = zod_1.z.enum(exports.SOURCE_ENVIRONMENTS);
|
|
|
154
154
|
/** Appendix A `source`. */
|
|
155
155
|
exports.CaseSourceSchema = zod_1.z.strictObject({
|
|
156
156
|
environment: exports.SourceEnvironmentSchema,
|
|
157
|
-
submittedAt:
|
|
157
|
+
submittedAt: primitives_js_1.TimestampSchema,
|
|
158
158
|
});
|
|
159
159
|
/** §5.1 / Appendix A `privacy`. */
|
|
160
160
|
exports.CasePrivacySchema = zod_1.z.strictObject({
|
|
161
161
|
/** §13.6 defaults to 30 days after a final decision, configurable by policy. */
|
|
162
|
-
retentionDays: zod_1.z.number().int().positive().max(
|
|
162
|
+
retentionDays: zod_1.z.number().int().positive().max(primitives_js_1.CONTRACT_LIMITS.RETENTION_DAYS_MAX),
|
|
163
163
|
/**
|
|
164
164
|
* Whether a community jury may see this at all. `false` routes the case to a
|
|
165
165
|
* specialist pool (§7.5); it is not a preference the triage may override
|
|
@@ -167,7 +167,7 @@ exports.CasePrivacySchema = zod_1.z.strictObject({
|
|
|
167
167
|
*/
|
|
168
168
|
allowCommunityReview: zod_1.z.boolean(),
|
|
169
169
|
containsPersonalData: zod_1.z.boolean().optional(),
|
|
170
|
-
sensitivityHint:
|
|
170
|
+
sensitivityHint: taxonomy_js_1.SensitivityHintSchema.optional(),
|
|
171
171
|
});
|
|
172
172
|
/**
|
|
173
173
|
* §5.1 / Appendix A `urgency` — an input to triage, never to a verdict.
|
|
@@ -199,20 +199,20 @@ const caseEnvelopeShape = {
|
|
|
199
199
|
* either side silently. No schema can enforce that; it is stated here so the
|
|
200
200
|
* rule travels with the field it constrains.
|
|
201
201
|
*/
|
|
202
|
-
applicationId:
|
|
203
|
-
externalReportId:
|
|
202
|
+
applicationId: primitives_js_1.IdentifierSchema,
|
|
203
|
+
externalReportId: primitives_js_1.ExternalIdSchema,
|
|
204
204
|
source: exports.CaseSourceSchema.optional(),
|
|
205
205
|
subject: exports.CaseSubjectSchema,
|
|
206
206
|
principalBindings: zod_1.z
|
|
207
207
|
.array(exports.PrincipalBindingSchema)
|
|
208
|
-
.max(
|
|
209
|
-
resources: zod_1.z.array(
|
|
210
|
-
relations: zod_1.z.array(
|
|
211
|
-
allegations: zod_1.z.array(exports.AllegationSchema).min(1).max(
|
|
212
|
-
policy:
|
|
208
|
+
.max(primitives_js_1.CONTRACT_LIMITS.PRINCIPAL_BINDINGS_PER_ENVELOPE_MAX),
|
|
209
|
+
resources: zod_1.z.array(resources_js_1.ResourceSchema).min(1).max(primitives_js_1.CONTRACT_LIMITS.RESOURCES_PER_ENVELOPE_MAX),
|
|
210
|
+
relations: zod_1.z.array(resources_js_1.RelationSchema).max(primitives_js_1.CONTRACT_LIMITS.RELATIONS_PER_ENVELOPE_MAX),
|
|
211
|
+
allegations: zod_1.z.array(exports.AllegationSchema).min(1).max(primitives_js_1.CONTRACT_LIMITS.ALLEGATIONS_PER_ENVELOPE_MAX),
|
|
212
|
+
policy: policies_js_1.CasePolicyRefSchema,
|
|
213
213
|
privacy: exports.CasePrivacySchema,
|
|
214
214
|
urgency: exports.CaseUrgencySchema.optional(),
|
|
215
|
-
metadata:
|
|
215
|
+
metadata: primitives_js_1.MetadataBagSchema.optional(),
|
|
216
216
|
};
|
|
217
217
|
/**
|
|
218
218
|
* The Case Envelope.
|
|
@@ -312,7 +312,7 @@ exports.CaseEnvelopeSchema = zod_1.z
|
|
|
312
312
|
const seenRelations = new Set();
|
|
313
313
|
envelope.relations.forEach((relation, index) => {
|
|
314
314
|
requireResource(relation.from, ['relations', index, 'from']);
|
|
315
|
-
if (
|
|
315
|
+
if (resources_js_1.PRINCIPAL_TARGETED_RELATION_TYPES.some((type) => type === relation.type)) {
|
|
316
316
|
requirePrincipal(relation.to, ['relations', index, 'to']);
|
|
317
317
|
}
|
|
318
318
|
else {
|
|
@@ -361,7 +361,7 @@ exports.ReportStatusSchema = zod_1.z.enum(exports.REPORT_STATUSES);
|
|
|
361
361
|
*/
|
|
362
362
|
exports.CreateReportRequestSchema = zod_1.z
|
|
363
363
|
.strictObject({
|
|
364
|
-
externalReportId:
|
|
364
|
+
externalReportId: primitives_js_1.ExternalIdSchema,
|
|
365
365
|
envelope: exports.CaseEnvelopeSchema,
|
|
366
366
|
})
|
|
367
367
|
.superRefine((request, ctx) => {
|
|
@@ -375,8 +375,8 @@ exports.CreateReportRequestSchema = zod_1.z
|
|
|
375
375
|
});
|
|
376
376
|
/** The `202 Accepted` body of §10.4. Loose: it travels outbound (§10.11). */
|
|
377
377
|
exports.CreateReportResponseSchema = zod_1.z.looseObject({
|
|
378
|
-
reportId:
|
|
379
|
-
caseId:
|
|
378
|
+
reportId: primitives_js_1.IdentifierSchema,
|
|
379
|
+
caseId: primitives_js_1.IdentifierSchema,
|
|
380
380
|
status: exports.ReportStatusSchema,
|
|
381
381
|
merged: zod_1.z.boolean(),
|
|
382
382
|
});
|