@btps/sdk 1.2.0-rc.1 → 1.2.0-rc.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -5724,7 +5724,7 @@ export declare const processBtpDocSchema: (bptArtifactType: BTPArtifactType, ver
5724
5724
  }>, z.ZodEffects<z.ZodDiscriminatedUnion<"eventType", [z.ZodObject<{
5725
5725
  eventType: z.ZodLiteral<"accepted">;
5726
5726
  statement: z.ZodEffects<z.ZodObject<{
5727
- statement: z.ZodObject<{
5727
+ statement: z.ZodEffects<z.ZodObject<{
5728
5728
  agreement: z.ZodObject<{
5729
5729
  originator: z.ZodEffects<z.ZodString, string, string>;
5730
5730
  id: z.ZodString;
@@ -5743,6 +5743,31 @@ export declare const processBtpDocSchema: (bptArtifactType: BTPArtifactType, ver
5743
5743
  decision: z.ZodEnum<["accepted", "declined"]>;
5744
5744
  signedAt: z.ZodString;
5745
5745
  previous: z.ZodOptional<z.ZodString>;
5746
+ visualSignature: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
5747
+ type: z.ZodLiteral<"typed">;
5748
+ text: z.ZodEffects<z.ZodString, string, string>;
5749
+ }, "strict", z.ZodTypeAny, {
5750
+ type: "typed";
5751
+ text: string;
5752
+ }, {
5753
+ type: "typed";
5754
+ text: string;
5755
+ }>, z.ZodEffects<z.ZodObject<{
5756
+ type: z.ZodLiteral<"drawn">;
5757
+ strokes: z.ZodEffects<z.ZodArray<z.ZodEffects<z.ZodArray<z.ZodNumber, "many">, number[], unknown>, "many">, number[][], unknown>;
5758
+ }, "strict", z.ZodTypeAny, {
5759
+ type: "drawn";
5760
+ strokes: number[][];
5761
+ }, {
5762
+ type: "drawn";
5763
+ strokes?: unknown;
5764
+ }>, {
5765
+ type: "drawn";
5766
+ strokes: number[][];
5767
+ }, {
5768
+ type: "drawn";
5769
+ strokes?: unknown;
5770
+ }>]>>;
5746
5771
  }, "strict", z.ZodTypeAny, {
5747
5772
  agreement: {
5748
5773
  id: string;
@@ -5754,6 +5779,49 @@ export declare const processBtpDocSchema: (bptArtifactType: BTPArtifactType, ver
5754
5779
  signer: string;
5755
5780
  signedAt: string;
5756
5781
  previous?: string | undefined;
5782
+ visualSignature?: {
5783
+ type: "typed";
5784
+ text: string;
5785
+ } | {
5786
+ type: "drawn";
5787
+ strokes: number[][];
5788
+ } | undefined;
5789
+ }, {
5790
+ agreement: {
5791
+ id: string;
5792
+ originator: string;
5793
+ contentSha256: string;
5794
+ };
5795
+ decision: "accepted" | "declined";
5796
+ signer: string;
5797
+ signedAt: string;
5798
+ terms?: unknown;
5799
+ previous?: string | undefined;
5800
+ visualSignature?: {
5801
+ type: "typed";
5802
+ text: string;
5803
+ } | {
5804
+ type: "drawn";
5805
+ strokes?: unknown;
5806
+ } | undefined;
5807
+ }>, {
5808
+ agreement: {
5809
+ id: string;
5810
+ originator: string;
5811
+ contentSha256: string;
5812
+ };
5813
+ terms: string[];
5814
+ decision: "accepted" | "declined";
5815
+ signer: string;
5816
+ signedAt: string;
5817
+ previous?: string | undefined;
5818
+ visualSignature?: {
5819
+ type: "typed";
5820
+ text: string;
5821
+ } | {
5822
+ type: "drawn";
5823
+ strokes: number[][];
5824
+ } | undefined;
5757
5825
  }, {
5758
5826
  agreement: {
5759
5827
  id: string;
@@ -5765,6 +5833,13 @@ export declare const processBtpDocSchema: (bptArtifactType: BTPArtifactType, ver
5765
5833
  signedAt: string;
5766
5834
  terms?: unknown;
5767
5835
  previous?: string | undefined;
5836
+ visualSignature?: {
5837
+ type: "typed";
5838
+ text: string;
5839
+ } | {
5840
+ type: "drawn";
5841
+ strokes?: unknown;
5842
+ } | undefined;
5768
5843
  }>;
5769
5844
  signature: z.ZodObject<{
5770
5845
  algorithmHash: z.ZodLiteral<"sha256">;
@@ -5990,6 +6065,13 @@ export declare const processBtpDocSchema: (bptArtifactType: BTPArtifactType, ver
5990
6065
  signer: string;
5991
6066
  signedAt: string;
5992
6067
  previous?: string | undefined;
6068
+ visualSignature?: {
6069
+ type: "typed";
6070
+ text: string;
6071
+ } | {
6072
+ type: "drawn";
6073
+ strokes: number[][];
6074
+ } | undefined;
5993
6075
  };
5994
6076
  selector?: string | undefined;
5995
6077
  delegatedArtifact?: z.objectOutputType<{
@@ -6074,6 +6156,13 @@ export declare const processBtpDocSchema: (bptArtifactType: BTPArtifactType, ver
6074
6156
  signedAt: string;
6075
6157
  terms?: unknown;
6076
6158
  previous?: string | undefined;
6159
+ visualSignature?: {
6160
+ type: "typed";
6161
+ text: string;
6162
+ } | {
6163
+ type: "drawn";
6164
+ strokes?: unknown;
6165
+ } | undefined;
6077
6166
  };
6078
6167
  selector?: string | undefined;
6079
6168
  delegatedArtifact?: z.objectInputType<{
@@ -6158,6 +6247,13 @@ export declare const processBtpDocSchema: (bptArtifactType: BTPArtifactType, ver
6158
6247
  signer: string;
6159
6248
  signedAt: string;
6160
6249
  previous?: string | undefined;
6250
+ visualSignature?: {
6251
+ type: "typed";
6252
+ text: string;
6253
+ } | {
6254
+ type: "drawn";
6255
+ strokes: number[][];
6256
+ } | undefined;
6161
6257
  };
6162
6258
  selector?: string | undefined;
6163
6259
  delegatedArtifact?: z.objectOutputType<{
@@ -6242,6 +6338,13 @@ export declare const processBtpDocSchema: (bptArtifactType: BTPArtifactType, ver
6242
6338
  signedAt: string;
6243
6339
  terms?: unknown;
6244
6340
  previous?: string | undefined;
6341
+ visualSignature?: {
6342
+ type: "typed";
6343
+ text: string;
6344
+ } | {
6345
+ type: "drawn";
6346
+ strokes?: unknown;
6347
+ } | undefined;
6245
6348
  };
6246
6349
  selector?: string | undefined;
6247
6350
  delegatedArtifact?: z.objectInputType<{
@@ -6353,6 +6456,13 @@ export declare const processBtpDocSchema: (bptArtifactType: BTPArtifactType, ver
6353
6456
  signer: string;
6354
6457
  signedAt: string;
6355
6458
  previous?: string | undefined;
6459
+ visualSignature?: {
6460
+ type: "typed";
6461
+ text: string;
6462
+ } | {
6463
+ type: "drawn";
6464
+ strokes: number[][];
6465
+ } | undefined;
6356
6466
  };
6357
6467
  selector?: string | undefined;
6358
6468
  delegatedArtifact?: z.objectOutputType<{
@@ -6448,6 +6558,13 @@ export declare const processBtpDocSchema: (bptArtifactType: BTPArtifactType, ver
6448
6558
  signedAt: string;
6449
6559
  terms?: unknown;
6450
6560
  previous?: string | undefined;
6561
+ visualSignature?: {
6562
+ type: "typed";
6563
+ text: string;
6564
+ } | {
6565
+ type: "drawn";
6566
+ strokes?: unknown;
6567
+ } | undefined;
6451
6568
  };
6452
6569
  selector?: string | undefined;
6453
6570
  delegatedArtifact?: z.objectInputType<{
@@ -6519,7 +6636,7 @@ export declare const processBtpDocSchema: (bptArtifactType: BTPArtifactType, ver
6519
6636
  }>, z.ZodObject<{
6520
6637
  eventType: z.ZodLiteral<"declined">;
6521
6638
  statement: z.ZodEffects<z.ZodObject<{
6522
- statement: z.ZodObject<{
6639
+ statement: z.ZodEffects<z.ZodObject<{
6523
6640
  agreement: z.ZodObject<{
6524
6641
  originator: z.ZodEffects<z.ZodString, string, string>;
6525
6642
  id: z.ZodString;
@@ -6538,6 +6655,31 @@ export declare const processBtpDocSchema: (bptArtifactType: BTPArtifactType, ver
6538
6655
  decision: z.ZodEnum<["accepted", "declined"]>;
6539
6656
  signedAt: z.ZodString;
6540
6657
  previous: z.ZodOptional<z.ZodString>;
6658
+ visualSignature: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
6659
+ type: z.ZodLiteral<"typed">;
6660
+ text: z.ZodEffects<z.ZodString, string, string>;
6661
+ }, "strict", z.ZodTypeAny, {
6662
+ type: "typed";
6663
+ text: string;
6664
+ }, {
6665
+ type: "typed";
6666
+ text: string;
6667
+ }>, z.ZodEffects<z.ZodObject<{
6668
+ type: z.ZodLiteral<"drawn">;
6669
+ strokes: z.ZodEffects<z.ZodArray<z.ZodEffects<z.ZodArray<z.ZodNumber, "many">, number[], unknown>, "many">, number[][], unknown>;
6670
+ }, "strict", z.ZodTypeAny, {
6671
+ type: "drawn";
6672
+ strokes: number[][];
6673
+ }, {
6674
+ type: "drawn";
6675
+ strokes?: unknown;
6676
+ }>, {
6677
+ type: "drawn";
6678
+ strokes: number[][];
6679
+ }, {
6680
+ type: "drawn";
6681
+ strokes?: unknown;
6682
+ }>]>>;
6541
6683
  }, "strict", z.ZodTypeAny, {
6542
6684
  agreement: {
6543
6685
  id: string;
@@ -6549,6 +6691,13 @@ export declare const processBtpDocSchema: (bptArtifactType: BTPArtifactType, ver
6549
6691
  signer: string;
6550
6692
  signedAt: string;
6551
6693
  previous?: string | undefined;
6694
+ visualSignature?: {
6695
+ type: "typed";
6696
+ text: string;
6697
+ } | {
6698
+ type: "drawn";
6699
+ strokes: number[][];
6700
+ } | undefined;
6552
6701
  }, {
6553
6702
  agreement: {
6554
6703
  id: string;
@@ -6560,6 +6709,49 @@ export declare const processBtpDocSchema: (bptArtifactType: BTPArtifactType, ver
6560
6709
  signedAt: string;
6561
6710
  terms?: unknown;
6562
6711
  previous?: string | undefined;
6712
+ visualSignature?: {
6713
+ type: "typed";
6714
+ text: string;
6715
+ } | {
6716
+ type: "drawn";
6717
+ strokes?: unknown;
6718
+ } | undefined;
6719
+ }>, {
6720
+ agreement: {
6721
+ id: string;
6722
+ originator: string;
6723
+ contentSha256: string;
6724
+ };
6725
+ terms: string[];
6726
+ decision: "accepted" | "declined";
6727
+ signer: string;
6728
+ signedAt: string;
6729
+ previous?: string | undefined;
6730
+ visualSignature?: {
6731
+ type: "typed";
6732
+ text: string;
6733
+ } | {
6734
+ type: "drawn";
6735
+ strokes: number[][];
6736
+ } | undefined;
6737
+ }, {
6738
+ agreement: {
6739
+ id: string;
6740
+ originator: string;
6741
+ contentSha256: string;
6742
+ };
6743
+ decision: "accepted" | "declined";
6744
+ signer: string;
6745
+ signedAt: string;
6746
+ terms?: unknown;
6747
+ previous?: string | undefined;
6748
+ visualSignature?: {
6749
+ type: "typed";
6750
+ text: string;
6751
+ } | {
6752
+ type: "drawn";
6753
+ strokes?: unknown;
6754
+ } | undefined;
6563
6755
  }>;
6564
6756
  signature: z.ZodObject<{
6565
6757
  algorithmHash: z.ZodLiteral<"sha256">;
@@ -6785,6 +6977,13 @@ export declare const processBtpDocSchema: (bptArtifactType: BTPArtifactType, ver
6785
6977
  signer: string;
6786
6978
  signedAt: string;
6787
6979
  previous?: string | undefined;
6980
+ visualSignature?: {
6981
+ type: "typed";
6982
+ text: string;
6983
+ } | {
6984
+ type: "drawn";
6985
+ strokes: number[][];
6986
+ } | undefined;
6788
6987
  };
6789
6988
  selector?: string | undefined;
6790
6989
  delegatedArtifact?: z.objectOutputType<{
@@ -6869,6 +7068,13 @@ export declare const processBtpDocSchema: (bptArtifactType: BTPArtifactType, ver
6869
7068
  signedAt: string;
6870
7069
  terms?: unknown;
6871
7070
  previous?: string | undefined;
7071
+ visualSignature?: {
7072
+ type: "typed";
7073
+ text: string;
7074
+ } | {
7075
+ type: "drawn";
7076
+ strokes?: unknown;
7077
+ } | undefined;
6872
7078
  };
6873
7079
  selector?: string | undefined;
6874
7080
  delegatedArtifact?: z.objectInputType<{
@@ -6953,6 +7159,13 @@ export declare const processBtpDocSchema: (bptArtifactType: BTPArtifactType, ver
6953
7159
  signer: string;
6954
7160
  signedAt: string;
6955
7161
  previous?: string | undefined;
7162
+ visualSignature?: {
7163
+ type: "typed";
7164
+ text: string;
7165
+ } | {
7166
+ type: "drawn";
7167
+ strokes: number[][];
7168
+ } | undefined;
6956
7169
  };
6957
7170
  selector?: string | undefined;
6958
7171
  delegatedArtifact?: z.objectOutputType<{
@@ -7037,6 +7250,13 @@ export declare const processBtpDocSchema: (bptArtifactType: BTPArtifactType, ver
7037
7250
  signedAt: string;
7038
7251
  terms?: unknown;
7039
7252
  previous?: string | undefined;
7253
+ visualSignature?: {
7254
+ type: "typed";
7255
+ text: string;
7256
+ } | {
7257
+ type: "drawn";
7258
+ strokes?: unknown;
7259
+ } | undefined;
7040
7260
  };
7041
7261
  selector?: string | undefined;
7042
7262
  delegatedArtifact?: z.objectInputType<{
@@ -7158,6 +7378,13 @@ export declare const processBtpDocSchema: (bptArtifactType: BTPArtifactType, ver
7158
7378
  signer: string;
7159
7379
  signedAt: string;
7160
7380
  previous?: string | undefined;
7381
+ visualSignature?: {
7382
+ type: "typed";
7383
+ text: string;
7384
+ } | {
7385
+ type: "drawn";
7386
+ strokes: number[][];
7387
+ } | undefined;
7161
7388
  };
7162
7389
  selector?: string | undefined;
7163
7390
  delegatedArtifact?: z.objectOutputType<{
@@ -7257,6 +7484,13 @@ export declare const processBtpDocSchema: (bptArtifactType: BTPArtifactType, ver
7257
7484
  signedAt: string;
7258
7485
  terms?: unknown;
7259
7486
  previous?: string | undefined;
7487
+ visualSignature?: {
7488
+ type: "typed";
7489
+ text: string;
7490
+ } | {
7491
+ type: "drawn";
7492
+ strokes?: unknown;
7493
+ } | undefined;
7260
7494
  };
7261
7495
  selector?: string | undefined;
7262
7496
  delegatedArtifact?: z.objectInputType<{
@@ -7332,7 +7566,7 @@ export declare const processBtpDocSchema: (bptArtifactType: BTPArtifactType, ver
7332
7566
  }>, z.ZodObject<{
7333
7567
  eventType: z.ZodLiteral<"agreement_progress">;
7334
7568
  statements: z.ZodEffects<z.ZodArray<z.ZodEffects<z.ZodObject<{
7335
- statement: z.ZodObject<{
7569
+ statement: z.ZodEffects<z.ZodObject<{
7336
7570
  agreement: z.ZodObject<{
7337
7571
  originator: z.ZodEffects<z.ZodString, string, string>;
7338
7572
  id: z.ZodString;
@@ -7351,6 +7585,31 @@ export declare const processBtpDocSchema: (bptArtifactType: BTPArtifactType, ver
7351
7585
  decision: z.ZodEnum<["accepted", "declined"]>;
7352
7586
  signedAt: z.ZodString;
7353
7587
  previous: z.ZodOptional<z.ZodString>;
7588
+ visualSignature: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
7589
+ type: z.ZodLiteral<"typed">;
7590
+ text: z.ZodEffects<z.ZodString, string, string>;
7591
+ }, "strict", z.ZodTypeAny, {
7592
+ type: "typed";
7593
+ text: string;
7594
+ }, {
7595
+ type: "typed";
7596
+ text: string;
7597
+ }>, z.ZodEffects<z.ZodObject<{
7598
+ type: z.ZodLiteral<"drawn">;
7599
+ strokes: z.ZodEffects<z.ZodArray<z.ZodEffects<z.ZodArray<z.ZodNumber, "many">, number[], unknown>, "many">, number[][], unknown>;
7600
+ }, "strict", z.ZodTypeAny, {
7601
+ type: "drawn";
7602
+ strokes: number[][];
7603
+ }, {
7604
+ type: "drawn";
7605
+ strokes?: unknown;
7606
+ }>, {
7607
+ type: "drawn";
7608
+ strokes: number[][];
7609
+ }, {
7610
+ type: "drawn";
7611
+ strokes?: unknown;
7612
+ }>]>>;
7354
7613
  }, "strict", z.ZodTypeAny, {
7355
7614
  agreement: {
7356
7615
  id: string;
@@ -7362,6 +7621,49 @@ export declare const processBtpDocSchema: (bptArtifactType: BTPArtifactType, ver
7362
7621
  signer: string;
7363
7622
  signedAt: string;
7364
7623
  previous?: string | undefined;
7624
+ visualSignature?: {
7625
+ type: "typed";
7626
+ text: string;
7627
+ } | {
7628
+ type: "drawn";
7629
+ strokes: number[][];
7630
+ } | undefined;
7631
+ }, {
7632
+ agreement: {
7633
+ id: string;
7634
+ originator: string;
7635
+ contentSha256: string;
7636
+ };
7637
+ decision: "accepted" | "declined";
7638
+ signer: string;
7639
+ signedAt: string;
7640
+ terms?: unknown;
7641
+ previous?: string | undefined;
7642
+ visualSignature?: {
7643
+ type: "typed";
7644
+ text: string;
7645
+ } | {
7646
+ type: "drawn";
7647
+ strokes?: unknown;
7648
+ } | undefined;
7649
+ }>, {
7650
+ agreement: {
7651
+ id: string;
7652
+ originator: string;
7653
+ contentSha256: string;
7654
+ };
7655
+ terms: string[];
7656
+ decision: "accepted" | "declined";
7657
+ signer: string;
7658
+ signedAt: string;
7659
+ previous?: string | undefined;
7660
+ visualSignature?: {
7661
+ type: "typed";
7662
+ text: string;
7663
+ } | {
7664
+ type: "drawn";
7665
+ strokes: number[][];
7666
+ } | undefined;
7365
7667
  }, {
7366
7668
  agreement: {
7367
7669
  id: string;
@@ -7373,6 +7675,13 @@ export declare const processBtpDocSchema: (bptArtifactType: BTPArtifactType, ver
7373
7675
  signedAt: string;
7374
7676
  terms?: unknown;
7375
7677
  previous?: string | undefined;
7678
+ visualSignature?: {
7679
+ type: "typed";
7680
+ text: string;
7681
+ } | {
7682
+ type: "drawn";
7683
+ strokes?: unknown;
7684
+ } | undefined;
7376
7685
  }>;
7377
7686
  signature: z.ZodObject<{
7378
7687
  algorithmHash: z.ZodLiteral<"sha256">;
@@ -7598,6 +7907,13 @@ export declare const processBtpDocSchema: (bptArtifactType: BTPArtifactType, ver
7598
7907
  signer: string;
7599
7908
  signedAt: string;
7600
7909
  previous?: string | undefined;
7910
+ visualSignature?: {
7911
+ type: "typed";
7912
+ text: string;
7913
+ } | {
7914
+ type: "drawn";
7915
+ strokes: number[][];
7916
+ } | undefined;
7601
7917
  };
7602
7918
  selector?: string | undefined;
7603
7919
  delegatedArtifact?: z.objectOutputType<{
@@ -7682,6 +7998,13 @@ export declare const processBtpDocSchema: (bptArtifactType: BTPArtifactType, ver
7682
7998
  signedAt: string;
7683
7999
  terms?: unknown;
7684
8000
  previous?: string | undefined;
8001
+ visualSignature?: {
8002
+ type: "typed";
8003
+ text: string;
8004
+ } | {
8005
+ type: "drawn";
8006
+ strokes?: unknown;
8007
+ } | undefined;
7685
8008
  };
7686
8009
  selector?: string | undefined;
7687
8010
  delegatedArtifact?: z.objectInputType<{
@@ -7766,6 +8089,13 @@ export declare const processBtpDocSchema: (bptArtifactType: BTPArtifactType, ver
7766
8089
  signer: string;
7767
8090
  signedAt: string;
7768
8091
  previous?: string | undefined;
8092
+ visualSignature?: {
8093
+ type: "typed";
8094
+ text: string;
8095
+ } | {
8096
+ type: "drawn";
8097
+ strokes: number[][];
8098
+ } | undefined;
7769
8099
  };
7770
8100
  selector?: string | undefined;
7771
8101
  delegatedArtifact?: z.objectOutputType<{
@@ -7850,6 +8180,13 @@ export declare const processBtpDocSchema: (bptArtifactType: BTPArtifactType, ver
7850
8180
  signedAt: string;
7851
8181
  terms?: unknown;
7852
8182
  previous?: string | undefined;
8183
+ visualSignature?: {
8184
+ type: "typed";
8185
+ text: string;
8186
+ } | {
8187
+ type: "drawn";
8188
+ strokes?: unknown;
8189
+ } | undefined;
7853
8190
  };
7854
8191
  selector?: string | undefined;
7855
8192
  delegatedArtifact?: z.objectInputType<{
@@ -7934,6 +8271,13 @@ export declare const processBtpDocSchema: (bptArtifactType: BTPArtifactType, ver
7934
8271
  signer: string;
7935
8272
  signedAt: string;
7936
8273
  previous?: string | undefined;
8274
+ visualSignature?: {
8275
+ type: "typed";
8276
+ text: string;
8277
+ } | {
8278
+ type: "drawn";
8279
+ strokes: number[][];
8280
+ } | undefined;
7937
8281
  };
7938
8282
  selector?: string | undefined;
7939
8283
  delegatedArtifact?: z.objectOutputType<{
@@ -8045,6 +8389,13 @@ export declare const processBtpDocSchema: (bptArtifactType: BTPArtifactType, ver
8045
8389
  signer: string;
8046
8390
  signedAt: string;
8047
8391
  previous?: string | undefined;
8392
+ visualSignature?: {
8393
+ type: "typed";
8394
+ text: string;
8395
+ } | {
8396
+ type: "drawn";
8397
+ strokes: number[][];
8398
+ } | undefined;
8048
8399
  };
8049
8400
  selector?: string | undefined;
8050
8401
  delegatedArtifact?: z.objectOutputType<{
@@ -8127,7 +8478,7 @@ export declare const processBtpDocSchema: (bptArtifactType: BTPArtifactType, ver
8127
8478
  }>, z.ZodObject<{
8128
8479
  eventType: z.ZodLiteral<"agreement_complete">;
8129
8480
  statements: z.ZodEffects<z.ZodArray<z.ZodEffects<z.ZodObject<{
8130
- statement: z.ZodObject<{
8481
+ statement: z.ZodEffects<z.ZodObject<{
8131
8482
  agreement: z.ZodObject<{
8132
8483
  originator: z.ZodEffects<z.ZodString, string, string>;
8133
8484
  id: z.ZodString;
@@ -8146,6 +8497,31 @@ export declare const processBtpDocSchema: (bptArtifactType: BTPArtifactType, ver
8146
8497
  decision: z.ZodEnum<["accepted", "declined"]>;
8147
8498
  signedAt: z.ZodString;
8148
8499
  previous: z.ZodOptional<z.ZodString>;
8500
+ visualSignature: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
8501
+ type: z.ZodLiteral<"typed">;
8502
+ text: z.ZodEffects<z.ZodString, string, string>;
8503
+ }, "strict", z.ZodTypeAny, {
8504
+ type: "typed";
8505
+ text: string;
8506
+ }, {
8507
+ type: "typed";
8508
+ text: string;
8509
+ }>, z.ZodEffects<z.ZodObject<{
8510
+ type: z.ZodLiteral<"drawn">;
8511
+ strokes: z.ZodEffects<z.ZodArray<z.ZodEffects<z.ZodArray<z.ZodNumber, "many">, number[], unknown>, "many">, number[][], unknown>;
8512
+ }, "strict", z.ZodTypeAny, {
8513
+ type: "drawn";
8514
+ strokes: number[][];
8515
+ }, {
8516
+ type: "drawn";
8517
+ strokes?: unknown;
8518
+ }>, {
8519
+ type: "drawn";
8520
+ strokes: number[][];
8521
+ }, {
8522
+ type: "drawn";
8523
+ strokes?: unknown;
8524
+ }>]>>;
8149
8525
  }, "strict", z.ZodTypeAny, {
8150
8526
  agreement: {
8151
8527
  id: string;
@@ -8157,6 +8533,13 @@ export declare const processBtpDocSchema: (bptArtifactType: BTPArtifactType, ver
8157
8533
  signer: string;
8158
8534
  signedAt: string;
8159
8535
  previous?: string | undefined;
8536
+ visualSignature?: {
8537
+ type: "typed";
8538
+ text: string;
8539
+ } | {
8540
+ type: "drawn";
8541
+ strokes: number[][];
8542
+ } | undefined;
8160
8543
  }, {
8161
8544
  agreement: {
8162
8545
  id: string;
@@ -8168,6 +8551,49 @@ export declare const processBtpDocSchema: (bptArtifactType: BTPArtifactType, ver
8168
8551
  signedAt: string;
8169
8552
  terms?: unknown;
8170
8553
  previous?: string | undefined;
8554
+ visualSignature?: {
8555
+ type: "typed";
8556
+ text: string;
8557
+ } | {
8558
+ type: "drawn";
8559
+ strokes?: unknown;
8560
+ } | undefined;
8561
+ }>, {
8562
+ agreement: {
8563
+ id: string;
8564
+ originator: string;
8565
+ contentSha256: string;
8566
+ };
8567
+ terms: string[];
8568
+ decision: "accepted" | "declined";
8569
+ signer: string;
8570
+ signedAt: string;
8571
+ previous?: string | undefined;
8572
+ visualSignature?: {
8573
+ type: "typed";
8574
+ text: string;
8575
+ } | {
8576
+ type: "drawn";
8577
+ strokes: number[][];
8578
+ } | undefined;
8579
+ }, {
8580
+ agreement: {
8581
+ id: string;
8582
+ originator: string;
8583
+ contentSha256: string;
8584
+ };
8585
+ decision: "accepted" | "declined";
8586
+ signer: string;
8587
+ signedAt: string;
8588
+ terms?: unknown;
8589
+ previous?: string | undefined;
8590
+ visualSignature?: {
8591
+ type: "typed";
8592
+ text: string;
8593
+ } | {
8594
+ type: "drawn";
8595
+ strokes?: unknown;
8596
+ } | undefined;
8171
8597
  }>;
8172
8598
  signature: z.ZodObject<{
8173
8599
  algorithmHash: z.ZodLiteral<"sha256">;
@@ -8393,6 +8819,13 @@ export declare const processBtpDocSchema: (bptArtifactType: BTPArtifactType, ver
8393
8819
  signer: string;
8394
8820
  signedAt: string;
8395
8821
  previous?: string | undefined;
8822
+ visualSignature?: {
8823
+ type: "typed";
8824
+ text: string;
8825
+ } | {
8826
+ type: "drawn";
8827
+ strokes: number[][];
8828
+ } | undefined;
8396
8829
  };
8397
8830
  selector?: string | undefined;
8398
8831
  delegatedArtifact?: z.objectOutputType<{
@@ -8477,6 +8910,13 @@ export declare const processBtpDocSchema: (bptArtifactType: BTPArtifactType, ver
8477
8910
  signedAt: string;
8478
8911
  terms?: unknown;
8479
8912
  previous?: string | undefined;
8913
+ visualSignature?: {
8914
+ type: "typed";
8915
+ text: string;
8916
+ } | {
8917
+ type: "drawn";
8918
+ strokes?: unknown;
8919
+ } | undefined;
8480
8920
  };
8481
8921
  selector?: string | undefined;
8482
8922
  delegatedArtifact?: z.objectInputType<{
@@ -8561,6 +9001,13 @@ export declare const processBtpDocSchema: (bptArtifactType: BTPArtifactType, ver
8561
9001
  signer: string;
8562
9002
  signedAt: string;
8563
9003
  previous?: string | undefined;
9004
+ visualSignature?: {
9005
+ type: "typed";
9006
+ text: string;
9007
+ } | {
9008
+ type: "drawn";
9009
+ strokes: number[][];
9010
+ } | undefined;
8564
9011
  };
8565
9012
  selector?: string | undefined;
8566
9013
  delegatedArtifact?: z.objectOutputType<{
@@ -8645,6 +9092,13 @@ export declare const processBtpDocSchema: (bptArtifactType: BTPArtifactType, ver
8645
9092
  signedAt: string;
8646
9093
  terms?: unknown;
8647
9094
  previous?: string | undefined;
9095
+ visualSignature?: {
9096
+ type: "typed";
9097
+ text: string;
9098
+ } | {
9099
+ type: "drawn";
9100
+ strokes?: unknown;
9101
+ } | undefined;
8648
9102
  };
8649
9103
  selector?: string | undefined;
8650
9104
  delegatedArtifact?: z.objectInputType<{
@@ -8729,6 +9183,13 @@ export declare const processBtpDocSchema: (bptArtifactType: BTPArtifactType, ver
8729
9183
  signer: string;
8730
9184
  signedAt: string;
8731
9185
  previous?: string | undefined;
9186
+ visualSignature?: {
9187
+ type: "typed";
9188
+ text: string;
9189
+ } | {
9190
+ type: "drawn";
9191
+ strokes: number[][];
9192
+ } | undefined;
8732
9193
  };
8733
9194
  selector?: string | undefined;
8734
9195
  delegatedArtifact?: z.objectOutputType<{
@@ -8840,6 +9301,13 @@ export declare const processBtpDocSchema: (bptArtifactType: BTPArtifactType, ver
8840
9301
  signer: string;
8841
9302
  signedAt: string;
8842
9303
  previous?: string | undefined;
9304
+ visualSignature?: {
9305
+ type: "typed";
9306
+ text: string;
9307
+ } | {
9308
+ type: "drawn";
9309
+ strokes: number[][];
9310
+ } | undefined;
8843
9311
  };
8844
9312
  selector?: string | undefined;
8845
9313
  delegatedArtifact?: z.objectOutputType<{
@@ -8946,6 +9414,13 @@ export declare const processBtpDocSchema: (bptArtifactType: BTPArtifactType, ver
8946
9414
  signer: string;
8947
9415
  signedAt: string;
8948
9416
  previous?: string | undefined;
9417
+ visualSignature?: {
9418
+ type: "typed";
9419
+ text: string;
9420
+ } | {
9421
+ type: "drawn";
9422
+ strokes: number[][];
9423
+ } | undefined;
8949
9424
  };
8950
9425
  selector?: string | undefined;
8951
9426
  delegatedArtifact?: z.objectOutputType<{
@@ -9041,6 +9516,13 @@ export declare const processBtpDocSchema: (bptArtifactType: BTPArtifactType, ver
9041
9516
  signer: string;
9042
9517
  signedAt: string;
9043
9518
  previous?: string | undefined;
9519
+ visualSignature?: {
9520
+ type: "typed";
9521
+ text: string;
9522
+ } | {
9523
+ type: "drawn";
9524
+ strokes: number[][];
9525
+ } | undefined;
9044
9526
  };
9045
9527
  selector?: string | undefined;
9046
9528
  delegatedArtifact?: z.objectOutputType<{
@@ -9140,6 +9622,13 @@ export declare const processBtpDocSchema: (bptArtifactType: BTPArtifactType, ver
9140
9622
  signer: string;
9141
9623
  signedAt: string;
9142
9624
  previous?: string | undefined;
9625
+ visualSignature?: {
9626
+ type: "typed";
9627
+ text: string;
9628
+ } | {
9629
+ type: "drawn";
9630
+ strokes: number[][];
9631
+ } | undefined;
9143
9632
  };
9144
9633
  selector?: string | undefined;
9145
9634
  delegatedArtifact?: z.objectOutputType<{
@@ -9235,6 +9724,13 @@ export declare const processBtpDocSchema: (bptArtifactType: BTPArtifactType, ver
9235
9724
  signer: string;
9236
9725
  signedAt: string;
9237
9726
  previous?: string | undefined;
9727
+ visualSignature?: {
9728
+ type: "typed";
9729
+ text: string;
9730
+ } | {
9731
+ type: "drawn";
9732
+ strokes: number[][];
9733
+ } | undefined;
9238
9734
  };
9239
9735
  selector?: string | undefined;
9240
9736
  delegatedArtifact?: z.objectOutputType<{
@@ -9330,6 +9826,13 @@ export declare const processBtpDocSchema: (bptArtifactType: BTPArtifactType, ver
9330
9826
  signedAt: string;
9331
9827
  terms?: unknown;
9332
9828
  previous?: string | undefined;
9829
+ visualSignature?: {
9830
+ type: "typed";
9831
+ text: string;
9832
+ } | {
9833
+ type: "drawn";
9834
+ strokes?: unknown;
9835
+ } | undefined;
9333
9836
  };
9334
9837
  selector?: string | undefined;
9335
9838
  delegatedArtifact?: z.objectInputType<{
@@ -9425,6 +9928,13 @@ export declare const processBtpDocSchema: (bptArtifactType: BTPArtifactType, ver
9425
9928
  signedAt: string;
9426
9929
  terms?: unknown;
9427
9930
  previous?: string | undefined;
9931
+ visualSignature?: {
9932
+ type: "typed";
9933
+ text: string;
9934
+ } | {
9935
+ type: "drawn";
9936
+ strokes?: unknown;
9937
+ } | undefined;
9428
9938
  };
9429
9939
  selector?: string | undefined;
9430
9940
  delegatedArtifact?: z.objectInputType<{