stated-protocol-parser 1.0.7 → 5.0.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.
Files changed (129) hide show
  1. package/README.md +231 -22
  2. package/dist/constants.d.ts +193 -15
  3. package/dist/constants.d.ts.map +1 -1
  4. package/dist/constants.js +197 -20
  5. package/dist/constants.js.map +1 -1
  6. package/dist/esm/constants.d.ts +193 -15
  7. package/dist/esm/constants.d.ts.map +1 -1
  8. package/dist/esm/{hash.browser.d.ts → hash.d.ts} +11 -5
  9. package/dist/esm/hash.d.ts.map +1 -0
  10. package/dist/esm/index.d.ts +4 -42
  11. package/dist/esm/index.d.ts.map +1 -1
  12. package/dist/esm/index.js +2102 -641
  13. package/dist/esm/index.js.map +7 -1
  14. package/dist/esm/protocol.d.ts +18 -30
  15. package/dist/esm/protocol.d.ts.map +1 -1
  16. package/dist/esm/signature.d.ts +49 -0
  17. package/dist/esm/signature.d.ts.map +1 -0
  18. package/dist/esm/types.d.ts +26 -60
  19. package/dist/esm/types.d.ts.map +1 -1
  20. package/dist/esm/utils.d.ts +10 -0
  21. package/dist/esm/utils.d.ts.map +1 -1
  22. package/dist/{hash.browser.d.ts → hash.d.ts} +11 -5
  23. package/dist/hash.d.ts.map +1 -0
  24. package/dist/{hash.browser.js → hash.js} +44 -10
  25. package/dist/hash.js.map +1 -0
  26. package/dist/index.d.ts +4 -42
  27. package/dist/index.d.ts.map +1 -1
  28. package/dist/index.js +4 -674
  29. package/dist/index.js.map +1 -1
  30. package/dist/protocol.d.ts +18 -30
  31. package/dist/protocol.d.ts.map +1 -1
  32. package/dist/protocol.js +565 -572
  33. package/dist/protocol.js.map +1 -1
  34. package/dist/signature.d.ts +49 -0
  35. package/dist/signature.d.ts.map +1 -0
  36. package/dist/signature.js +169 -0
  37. package/dist/signature.js.map +1 -0
  38. package/dist/types.d.ts +26 -60
  39. package/dist/types.d.ts.map +1 -1
  40. package/dist/types.js +27 -0
  41. package/dist/types.js.map +1 -1
  42. package/dist/utils.d.ts +10 -0
  43. package/dist/utils.d.ts.map +1 -1
  44. package/dist/utils.js +79 -11
  45. package/dist/utils.js.map +1 -1
  46. package/package.json +32 -27
  47. package/src/constants.ts +228 -44
  48. package/src/fixtures.test.ts +236 -0
  49. package/src/hash.test.ts +217 -215
  50. package/src/hash.ts +99 -0
  51. package/src/index.ts +5 -0
  52. package/src/organisation-verification.test.ts +50 -0
  53. package/src/person-verification.test.ts +55 -0
  54. package/src/poll.test.ts +28 -0
  55. package/src/protocol.ts +855 -650
  56. package/src/rating.test.ts +25 -0
  57. package/src/signature.test.ts +200 -0
  58. package/src/signature.ts +159 -0
  59. package/src/statement.test.ts +101 -0
  60. package/src/types.ts +155 -156
  61. package/src/utils.test.ts +140 -0
  62. package/src/utils.ts +102 -16
  63. package/dist/esm/constants.js +0 -47
  64. package/dist/esm/constants.js.map +0 -1
  65. package/dist/esm/hash.browser.d.ts.map +0 -1
  66. package/dist/esm/hash.browser.js +0 -58
  67. package/dist/esm/hash.browser.js.map +0 -1
  68. package/dist/esm/hash.node.d.ts +0 -31
  69. package/dist/esm/hash.node.d.ts.map +0 -1
  70. package/dist/esm/hash.node.js +0 -43
  71. package/dist/esm/hash.node.js.map +0 -1
  72. package/dist/esm/hash.test.d.ts +0 -2
  73. package/dist/esm/hash.test.d.ts.map +0 -1
  74. package/dist/esm/hash.test.js +0 -181
  75. package/dist/esm/hash.test.js.map +0 -1
  76. package/dist/esm/index.browser.d.ts +0 -3
  77. package/dist/esm/index.browser.d.ts.map +0 -1
  78. package/dist/esm/index.browser.js +0 -5
  79. package/dist/esm/index.browser.js.map +0 -1
  80. package/dist/esm/index.node.d.ts +0 -3
  81. package/dist/esm/index.node.d.ts.map +0 -1
  82. package/dist/esm/index.node.js +0 -5
  83. package/dist/esm/index.node.js.map +0 -1
  84. package/dist/esm/index.test.d.ts +0 -2
  85. package/dist/esm/index.test.d.ts.map +0 -1
  86. package/dist/esm/index.test.js +0 -293
  87. package/dist/esm/index.test.js.map +0 -1
  88. package/dist/esm/protocol.js +0 -639
  89. package/dist/esm/protocol.js.map +0 -1
  90. package/dist/esm/types.js +0 -2
  91. package/dist/esm/types.js.map +0 -1
  92. package/dist/esm/utils.js +0 -23
  93. package/dist/esm/utils.js.map +0 -1
  94. package/dist/esm/v3.d.ts +0 -5
  95. package/dist/esm/v3.d.ts.map +0 -1
  96. package/dist/esm/v3.js +0 -60
  97. package/dist/esm/v3.js.map +0 -1
  98. package/dist/hash.browser.d.ts.map +0 -1
  99. package/dist/hash.browser.js.map +0 -1
  100. package/dist/hash.node.d.ts +0 -31
  101. package/dist/hash.node.d.ts.map +0 -1
  102. package/dist/hash.node.js +0 -53
  103. package/dist/hash.node.js.map +0 -1
  104. package/dist/hash.test.d.ts +0 -2
  105. package/dist/hash.test.d.ts.map +0 -1
  106. package/dist/hash.test.js +0 -183
  107. package/dist/hash.test.js.map +0 -1
  108. package/dist/index.browser.d.ts +0 -3
  109. package/dist/index.browser.d.ts.map +0 -1
  110. package/dist/index.browser.js +0 -21
  111. package/dist/index.browser.js.map +0 -1
  112. package/dist/index.node.d.ts +0 -3
  113. package/dist/index.node.d.ts.map +0 -1
  114. package/dist/index.node.js +0 -21
  115. package/dist/index.node.js.map +0 -1
  116. package/dist/index.test.d.ts +0 -2
  117. package/dist/index.test.d.ts.map +0 -1
  118. package/dist/index.test.js +0 -295
  119. package/dist/index.test.js.map +0 -1
  120. package/dist/v3.d.ts +0 -5
  121. package/dist/v3.d.ts.map +0 -1
  122. package/dist/v3.js +0 -64
  123. package/dist/v3.js.map +0 -1
  124. package/src/hash.browser.ts +0 -65
  125. package/src/hash.node.ts +0 -47
  126. package/src/index.browser.ts +0 -4
  127. package/src/index.node.ts +0 -4
  128. package/src/index.test.ts +0 -378
  129. package/src/v3.ts +0 -62
package/dist/constants.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.BoycottKeys = exports.ObservationKeys = exports.BountyKeys = exports.ratingKeys = exports.PDFSigningKeys = exports.responseKeys = exports.disputeContentKeys = exports.disputeAuthenticityKeys = exports.voteKeys = exports.personVerificationKeys = exports.organisationVerificationKeys = exports.pollKeys = exports.UTCFormat = exports.peopleCountBuckets = exports.statementTypes = exports.legalForms = void 0;
3
+ exports.ratingKeys = exports.PDFSigningKeys = exports.responseKeys = exports.disputeContentKeys = exports.disputeAuthenticityKeys = exports.voteKeys = exports.personVerificationKeys = exports.organisationVerificationKeys = exports.pollKeys = exports.UTCFormat = exports.supportedLanguages = exports.peopleCountBuckets = exports.statementTypes = exports.legalForms = void 0;
4
4
  exports.legalForms = {
5
5
  local_government: 'local government',
6
6
  state_government: 'state government',
@@ -9,7 +9,6 @@ exports.legalForms = {
9
9
  };
10
10
  exports.statementTypes = {
11
11
  statement: 'statement',
12
- quotation: 'quotation',
13
12
  organisationVerification: 'organisation_verification',
14
13
  personVerification: 'person_verification',
15
14
  poll: 'poll',
@@ -17,34 +16,212 @@ exports.statementTypes = {
17
16
  response: 'response',
18
17
  disputeContent: 'dispute_statement_content',
19
18
  disputeAuthenticity: 'dispute_statement_authenticity',
20
- boycott: 'boycott',
21
- observation: 'observation',
22
19
  rating: 'rating',
23
- signPdf: "sign_pdf",
24
- bounty: "bounty",
25
- unsupported: "unsupported",
20
+ signPdf: 'sign_pdf',
21
+ unsupported: 'unsupported',
26
22
  };
27
23
  exports.peopleCountBuckets = {
28
- "0": "0-10",
29
- "10": "10-100",
30
- "100": "100-1000",
31
- "1000": "1000-10,000",
32
- "10000": "10,000-100,000",
33
- "100000": "100,000+",
34
- "1000000": "1,000,000+",
35
- "10000000": "10,000,000+",
24
+ '0': '0-10',
25
+ '10': '10-100',
26
+ '100': '100-1000',
27
+ '1000': '1000-10,000',
28
+ '10000': '10,000-100,000',
29
+ '100000': '100,000+',
30
+ '1000000': '1,000,000+',
31
+ '10000000': '10,000,000+',
32
+ };
33
+ exports.supportedLanguages = {
34
+ aa: 'aa',
35
+ ab: 'ab',
36
+ af: 'af',
37
+ ak: 'ak',
38
+ am: 'am',
39
+ ar: 'ar',
40
+ an: 'an',
41
+ as: 'as',
42
+ av: 'av',
43
+ ay: 'ay',
44
+ az: 'az',
45
+ ba: 'ba',
46
+ bm: 'bm',
47
+ be: 'be',
48
+ bn: 'bn',
49
+ bi: 'bi',
50
+ bo: 'bo',
51
+ bs: 'bs',
52
+ br: 'br',
53
+ bg: 'bg',
54
+ ca: 'ca',
55
+ cs: 'cs',
56
+ ch: 'ch',
57
+ ce: 'ce',
58
+ cv: 'cv',
59
+ kw: 'kw',
60
+ co: 'co',
61
+ cr: 'cr',
62
+ cy: 'cy',
63
+ da: 'da',
64
+ de: 'de',
65
+ dv: 'dv',
66
+ dz: 'dz',
67
+ el: 'el',
68
+ en: 'en',
69
+ eo: 'eo',
70
+ et: 'et',
71
+ eu: 'eu',
72
+ ee: 'ee',
73
+ fo: 'fo',
74
+ fa: 'fa',
75
+ fj: 'fj',
76
+ fi: 'fi',
77
+ fr: 'fr',
78
+ fy: 'fy',
79
+ ff: 'ff',
80
+ gd: 'gd',
81
+ ga: 'ga',
82
+ gl: 'gl',
83
+ gv: 'gv',
84
+ gn: 'gn',
85
+ gu: 'gu',
86
+ ht: 'ht',
87
+ ha: 'ha',
88
+ sh: 'sh',
89
+ he: 'he',
90
+ hz: 'hz',
91
+ hi: 'hi',
92
+ ho: 'ho',
93
+ hr: 'hr',
94
+ hu: 'hu',
95
+ hy: 'hy',
96
+ ig: 'ig',
97
+ io: 'io',
98
+ ii: 'ii',
99
+ iu: 'iu',
100
+ ie: 'ie',
101
+ ia: 'ia',
102
+ id: 'id',
103
+ ik: 'ik',
104
+ is: 'is',
105
+ it: 'it',
106
+ jv: 'jv',
107
+ ja: 'ja',
108
+ kl: 'kl',
109
+ kn: 'kn',
110
+ ks: 'ks',
111
+ ka: 'ka',
112
+ kr: 'kr',
113
+ kk: 'kk',
114
+ km: 'km',
115
+ ki: 'ki',
116
+ rw: 'rw',
117
+ ky: 'ky',
118
+ kv: 'kv',
119
+ kg: 'kg',
120
+ ko: 'ko',
121
+ kj: 'kj',
122
+ ku: 'ku',
123
+ lo: 'lo',
124
+ la: 'la',
125
+ lv: 'lv',
126
+ li: 'li',
127
+ ln: 'ln',
128
+ lt: 'lt',
129
+ lb: 'lb',
130
+ lu: 'lu',
131
+ lg: 'lg',
132
+ mh: 'mh',
133
+ ml: 'ml',
134
+ mr: 'mr',
135
+ mk: 'mk',
136
+ mg: 'mg',
137
+ mt: 'mt',
138
+ mn: 'mn',
139
+ mi: 'mi',
140
+ ms: 'ms',
141
+ my: 'my',
142
+ na: 'na',
143
+ nv: 'nv',
144
+ nr: 'nr',
145
+ nd: 'nd',
146
+ ng: 'ng',
147
+ ne: 'ne',
148
+ nl: 'nl',
149
+ nn: 'nn',
150
+ nb: 'nb',
151
+ no: 'no',
152
+ ny: 'ny',
153
+ oc: 'oc',
154
+ oj: 'oj',
155
+ or: 'or',
156
+ om: 'om',
157
+ os: 'os',
158
+ pa: 'pa',
159
+ pi: 'pi',
160
+ pl: 'pl',
161
+ pt: 'pt',
162
+ ps: 'ps',
163
+ qu: 'qu',
164
+ rm: 'rm',
165
+ ro: 'ro',
166
+ rn: 'rn',
167
+ ru: 'ru',
168
+ sg: 'sg',
169
+ sa: 'sa',
170
+ si: 'si',
171
+ sk: 'sk',
172
+ sl: 'sl',
173
+ se: 'se',
174
+ sm: 'sm',
175
+ sn: 'sn',
176
+ sd: 'sd',
177
+ so: 'so',
178
+ st: 'st',
179
+ es: 'es',
180
+ sq: 'sq',
181
+ sc: 'sc',
182
+ sr: 'sr',
183
+ ss: 'ss',
184
+ su: 'su',
185
+ sw: 'sw',
186
+ sv: 'sv',
187
+ ty: 'ty',
188
+ ta: 'ta',
189
+ tt: 'tt',
190
+ te: 'te',
191
+ tg: 'tg',
192
+ tl: 'tl',
193
+ th: 'th',
194
+ ti: 'ti',
195
+ to: 'to',
196
+ tn: 'tn',
197
+ ts: 'ts',
198
+ tk: 'tk',
199
+ tr: 'tr',
200
+ tw: 'tw',
201
+ ug: 'ug',
202
+ uk: 'uk',
203
+ ur: 'ur',
204
+ uz: 'uz',
205
+ ve: 've',
206
+ vi: 'vi',
207
+ vo: 'vo',
208
+ wa: 'wa',
209
+ wo: 'wo',
210
+ xh: 'xh',
211
+ yi: 'yi',
212
+ yo: 'yo',
213
+ za: 'za',
214
+ zh: 'zh',
215
+ zu: 'zu',
36
216
  };
37
217
  exports.UTCFormat = /(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s\d{2}\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s\d{4}\s\d{2}:\d{2}:\d{2}\sGMT/;
38
218
  exports.pollKeys = /(Type: |The poll outcome is finalized when the following nodes agree: |Voting deadline: |Poll: |Option 1: |Option 2: |Option 3: |Option 4: |Option 5: |Allow free text votes: |Who can vote: |Description: |Country scope: |City scope: |Legal form scope: |Domain scope: |All entities with the following property: |As observed by: |Link to query defining who can vote: )/g;
39
- exports.organisationVerificationKeys = /(Type: |Description: |Name: |English name: |Country: |Legal entity: |Legal form: |Department using the domain: |Owner of the domain: |Foreign domain used for publishing statements: |Province or state: |Business register number: |City: |Longitude: |Latitude: |Population: |Logo: |Employee count: |Reliability policy: |Confidence: )/g;
219
+ exports.organisationVerificationKeys = /(Type: |Description: |Name: |English name: |Country: |Legal entity: |Legal form: |Department using the domain: |Owner of the domain: |Foreign domain used for publishing statements: |Province or state: |Business register number: |City: |Longitude: |Latitude: |Population: |Logo: |Employee count: |Reliability policy: |Confidence: |Public key: )/g;
40
220
  exports.personVerificationKeys = /(Type: |Description: |Name: |Date of birth: |City of birth: |Country of birth: |Job title: |Employer: |Owner of the domain: |Foreign domain used for publishing statements: |Picture: |Verification method: |Confidence: |Reliability policy: )/g;
41
221
  exports.voteKeys = /(Type: |Poll id: |Poll: |Option: )/g;
42
222
  exports.disputeAuthenticityKeys = /(Type: |Description: |Hash of referenced statement: |Confidence: |Reliability policy: )/g;
43
223
  exports.disputeContentKeys = /(Type: |Description: |Hash of referenced statement: |Confidence: |Reliability policy: )/g;
44
224
  exports.responseKeys = /(Type: |Hash of referenced statement: |Response: )/;
45
- exports.PDFSigningKeys = /(Type: |Description: |PDF file hash: )/;
225
+ exports.PDFSigningKeys = /(Type: |Description: |PDF file hash: )/g;
46
226
  exports.ratingKeys = /(Type: |Subject type: |Subject name: |URL that identifies the subject: |Document file hash: |Rated quality: |Our rating: |Comment: )/;
47
- exports.BountyKeys = /(Type: |In order to: |We will reward any entity that: |The reward is: |In case of dispute, bounty claims are judged by: |The judge will be paid per investigated case with a maxium of: )/;
48
- exports.ObservationKeys = /(Type: |Approach: |Confidence: |Reliability policy: |Subject: |Subject identity reference: |Observation reference: |Observed property: |Observed value: )/;
49
- exports.BoycottKeys = /(Type: |Description: |Subject: |Subject identity reference: )/;
50
227
  //# sourceMappingURL=constants.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":";;;AAAa,QAAA,UAAU,GAAG;IACtB,gBAAgB,EAAE,kBAAkB;IACpC,gBAAgB,EAAE,kBAAkB;IACpC,wBAAwB,EAAE,0BAA0B;IACpD,WAAW,EAAE,aAAa;CAC7B,CAAA;AAEY,QAAA,cAAc,GAAG;IAC1B,SAAS,EAAE,WAAW;IACtB,SAAS,EAAE,WAAW;IACtB,wBAAwB,EAAE,2BAA2B;IACrD,kBAAkB,EAAE,qBAAqB;IACzC,IAAI,EAAE,MAAM;IACZ,IAAI,EAAE,MAAM;IACZ,QAAQ,EAAE,UAAU;IACpB,cAAc,EAAE,2BAA2B;IAC3C,mBAAmB,EAAE,gCAAgC;IACrD,OAAO,EAAE,SAAS;IAClB,WAAW,EAAE,aAAa;IAC1B,MAAM,EAAE,QAAQ;IAChB,OAAO,EAAE,UAAU;IACnB,MAAM,EAAE,QAAQ;IAChB,WAAW,EAAE,aAAa;CAC7B,CAAA;AAEY,QAA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are const legalForms: {
6
6
  };
7
7
  export declare const statementTypes: {
8
8
  statement: string;
9
- quotation: string;
10
9
  organisationVerification: string;
11
10
  personVerification: string;
12
11
  poll: string;
@@ -14,23 +13,205 @@ export declare const statementTypes: {
14
13
  response: string;
15
14
  disputeContent: string;
16
15
  disputeAuthenticity: string;
17
- boycott: string;
18
- observation: string;
19
16
  rating: string;
20
17
  signPdf: string;
21
- bounty: string;
22
18
  unsupported: string;
23
19
  };
24
20
  export declare const peopleCountBuckets: {
25
- "0": string;
26
- "10": string;
27
- "100": string;
28
- "1000": string;
29
- "10000": string;
30
- "100000": string;
31
- "1000000": string;
32
- "10000000": string;
21
+ '0': string;
22
+ '10': string;
23
+ '100': string;
24
+ '1000': string;
25
+ '10000': string;
26
+ '100000': string;
27
+ '1000000': string;
28
+ '10000000': string;
33
29
  };
30
+ export declare const supportedLanguages: {
31
+ readonly aa: "aa";
32
+ readonly ab: "ab";
33
+ readonly af: "af";
34
+ readonly ak: "ak";
35
+ readonly am: "am";
36
+ readonly ar: "ar";
37
+ readonly an: "an";
38
+ readonly as: "as";
39
+ readonly av: "av";
40
+ readonly ay: "ay";
41
+ readonly az: "az";
42
+ readonly ba: "ba";
43
+ readonly bm: "bm";
44
+ readonly be: "be";
45
+ readonly bn: "bn";
46
+ readonly bi: "bi";
47
+ readonly bo: "bo";
48
+ readonly bs: "bs";
49
+ readonly br: "br";
50
+ readonly bg: "bg";
51
+ readonly ca: "ca";
52
+ readonly cs: "cs";
53
+ readonly ch: "ch";
54
+ readonly ce: "ce";
55
+ readonly cv: "cv";
56
+ readonly kw: "kw";
57
+ readonly co: "co";
58
+ readonly cr: "cr";
59
+ readonly cy: "cy";
60
+ readonly da: "da";
61
+ readonly de: "de";
62
+ readonly dv: "dv";
63
+ readonly dz: "dz";
64
+ readonly el: "el";
65
+ readonly en: "en";
66
+ readonly eo: "eo";
67
+ readonly et: "et";
68
+ readonly eu: "eu";
69
+ readonly ee: "ee";
70
+ readonly fo: "fo";
71
+ readonly fa: "fa";
72
+ readonly fj: "fj";
73
+ readonly fi: "fi";
74
+ readonly fr: "fr";
75
+ readonly fy: "fy";
76
+ readonly ff: "ff";
77
+ readonly gd: "gd";
78
+ readonly ga: "ga";
79
+ readonly gl: "gl";
80
+ readonly gv: "gv";
81
+ readonly gn: "gn";
82
+ readonly gu: "gu";
83
+ readonly ht: "ht";
84
+ readonly ha: "ha";
85
+ readonly sh: "sh";
86
+ readonly he: "he";
87
+ readonly hz: "hz";
88
+ readonly hi: "hi";
89
+ readonly ho: "ho";
90
+ readonly hr: "hr";
91
+ readonly hu: "hu";
92
+ readonly hy: "hy";
93
+ readonly ig: "ig";
94
+ readonly io: "io";
95
+ readonly ii: "ii";
96
+ readonly iu: "iu";
97
+ readonly ie: "ie";
98
+ readonly ia: "ia";
99
+ readonly id: "id";
100
+ readonly ik: "ik";
101
+ readonly is: "is";
102
+ readonly it: "it";
103
+ readonly jv: "jv";
104
+ readonly ja: "ja";
105
+ readonly kl: "kl";
106
+ readonly kn: "kn";
107
+ readonly ks: "ks";
108
+ readonly ka: "ka";
109
+ readonly kr: "kr";
110
+ readonly kk: "kk";
111
+ readonly km: "km";
112
+ readonly ki: "ki";
113
+ readonly rw: "rw";
114
+ readonly ky: "ky";
115
+ readonly kv: "kv";
116
+ readonly kg: "kg";
117
+ readonly ko: "ko";
118
+ readonly kj: "kj";
119
+ readonly ku: "ku";
120
+ readonly lo: "lo";
121
+ readonly la: "la";
122
+ readonly lv: "lv";
123
+ readonly li: "li";
124
+ readonly ln: "ln";
125
+ readonly lt: "lt";
126
+ readonly lb: "lb";
127
+ readonly lu: "lu";
128
+ readonly lg: "lg";
129
+ readonly mh: "mh";
130
+ readonly ml: "ml";
131
+ readonly mr: "mr";
132
+ readonly mk: "mk";
133
+ readonly mg: "mg";
134
+ readonly mt: "mt";
135
+ readonly mn: "mn";
136
+ readonly mi: "mi";
137
+ readonly ms: "ms";
138
+ readonly my: "my";
139
+ readonly na: "na";
140
+ readonly nv: "nv";
141
+ readonly nr: "nr";
142
+ readonly nd: "nd";
143
+ readonly ng: "ng";
144
+ readonly ne: "ne";
145
+ readonly nl: "nl";
146
+ readonly nn: "nn";
147
+ readonly nb: "nb";
148
+ readonly no: "no";
149
+ readonly ny: "ny";
150
+ readonly oc: "oc";
151
+ readonly oj: "oj";
152
+ readonly or: "or";
153
+ readonly om: "om";
154
+ readonly os: "os";
155
+ readonly pa: "pa";
156
+ readonly pi: "pi";
157
+ readonly pl: "pl";
158
+ readonly pt: "pt";
159
+ readonly ps: "ps";
160
+ readonly qu: "qu";
161
+ readonly rm: "rm";
162
+ readonly ro: "ro";
163
+ readonly rn: "rn";
164
+ readonly ru: "ru";
165
+ readonly sg: "sg";
166
+ readonly sa: "sa";
167
+ readonly si: "si";
168
+ readonly sk: "sk";
169
+ readonly sl: "sl";
170
+ readonly se: "se";
171
+ readonly sm: "sm";
172
+ readonly sn: "sn";
173
+ readonly sd: "sd";
174
+ readonly so: "so";
175
+ readonly st: "st";
176
+ readonly es: "es";
177
+ readonly sq: "sq";
178
+ readonly sc: "sc";
179
+ readonly sr: "sr";
180
+ readonly ss: "ss";
181
+ readonly su: "su";
182
+ readonly sw: "sw";
183
+ readonly sv: "sv";
184
+ readonly ty: "ty";
185
+ readonly ta: "ta";
186
+ readonly tt: "tt";
187
+ readonly te: "te";
188
+ readonly tg: "tg";
189
+ readonly tl: "tl";
190
+ readonly th: "th";
191
+ readonly ti: "ti";
192
+ readonly to: "to";
193
+ readonly tn: "tn";
194
+ readonly ts: "ts";
195
+ readonly tk: "tk";
196
+ readonly tr: "tr";
197
+ readonly tw: "tw";
198
+ readonly ug: "ug";
199
+ readonly uk: "uk";
200
+ readonly ur: "ur";
201
+ readonly uz: "uz";
202
+ readonly ve: "ve";
203
+ readonly vi: "vi";
204
+ readonly vo: "vo";
205
+ readonly wa: "wa";
206
+ readonly wo: "wo";
207
+ readonly xh: "xh";
208
+ readonly yi: "yi";
209
+ readonly yo: "yo";
210
+ readonly za: "za";
211
+ readonly zh: "zh";
212
+ readonly zu: "zu";
213
+ };
214
+ export type SupportedLanguage = (typeof supportedLanguages)[keyof typeof supportedLanguages];
34
215
  export declare const UTCFormat: RegExp;
35
216
  export declare const pollKeys: RegExp;
36
217
  export declare const organisationVerificationKeys: RegExp;
@@ -41,7 +222,4 @@ export declare const disputeContentKeys: RegExp;
41
222
  export declare const responseKeys: RegExp;
42
223
  export declare const PDFSigningKeys: RegExp;
43
224
  export declare const ratingKeys: RegExp;
44
- export declare const BountyKeys: RegExp;
45
- export declare const ObservationKeys: RegExp;
46
- export declare const BoycottKeys: RegExp;
47
225
  //# sourceMappingURL=constants.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU;;;;;CAKtB,CAAA;AAED,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;CAgB1B,CAAA;AAED,eAAO,MAAM,kBAAkB;;;;;;;;;CAS9B,CAAA;AAED,eAAO,MAAM,SAAS,EAAE,MAAkI,CAAA;AAE1J,eAAO,MAAM,QAAQ,QAAmX,CAAA;AAExY,eAAO,MAAM,4BAA4B,QAAgV,CAAA;AAEzX,eAAO,MAAM,sBAAsB,QAAqP,CAAA;AAExR,eAAO,MAAM,QAAQ,QAAwC,CAAA;AAE7D,eAAO,MAAM,uBAAuB,QAA6F,CAAA;AAEjI,eAAO,MAAM,kBAAkB,QAA6F,CAAA;AAE5H,eAAO,MAAM,YAAY,QAAuD,CAAA;AAEhF,eAAO,MAAM,cAAc,QAA2C,CAAA;AAEtE,eAAO,MAAM,UAAU,QAAyI,CAAA;AAEhK,eAAO,MAAM,UAAU,QAA8L,CAAA;AAErN,eAAO,MAAM,eAAe,QAA8J,CAAA;AAE1L,eAAO,MAAM,WAAW,QAAkE,CAAA"}
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU;;;;;CAKtB,CAAC;AAEF,eAAO,MAAM,cAAc;;;;;;;;;;;;CAY1B,CAAC;AAEF,eAAO,MAAM,kBAAkB;;;;;;;;;CAS9B,CAAC;AAEF,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuLrB,CAAC;AAEX,MAAM,MAAM,iBAAiB,GAAG,CAAC,OAAO,kBAAkB,CAAC,CAAC,MAAM,OAAO,kBAAkB,CAAC,CAAC;AAE7F,eAAO,MAAM,SAAS,EAAE,MACmG,CAAC;AAE5H,eAAO,MAAM,QAAQ,QAC6V,CAAC;AAEnX,eAAO,MAAM,4BAA4B,QACmT,CAAC;AAE7V,eAAO,MAAM,sBAAsB,QACiN,CAAC;AAErP,eAAO,MAAM,QAAQ,QAAwC,CAAC;AAE9D,eAAO,MAAM,uBAAuB,QACwD,CAAC;AAE7F,eAAO,MAAM,kBAAkB,QAC6D,CAAC;AAE7F,eAAO,MAAM,YAAY,QAAuD,CAAC;AAEjF,eAAO,MAAM,cAAc,QAA4C,CAAC;AAExE,eAAO,MAAM,UAAU,QACiH,CAAC"}
@@ -1,6 +1,6 @@
1
1
  /**
2
- * Browser-compatible hash utilities using Web Crypto API
3
- * Async operations for client-side use
2
+ * Universal hash utilities using @noble/hashes
3
+ * Works in both browser and Node.js environments
4
4
  */
5
5
  /**
6
6
  * Compute SHA-256 hash of a string and return it as URL-safe base64
@@ -8,14 +8,14 @@
8
8
  * @param input - The string or buffer to hash
9
9
  * @returns URL-safe base64 encoded hash
10
10
  */
11
- export declare const sha256: (input: string | Uint8Array) => Promise<string>;
11
+ export declare const sha256: (input: string | Uint8Array) => string;
12
12
  /**
13
13
  * Verify that content matches a given hash
14
14
  * @param content - The content to verify
15
15
  * @param hash - The expected hash
16
16
  * @returns True if the hash matches
17
17
  */
18
- export declare const verify: (content: string | Uint8Array, hash: string) => Promise<boolean>;
18
+ export declare const verify: (content: string | Uint8Array, hash: string) => boolean;
19
19
  /**
20
20
  * Convert URL-safe base64 back to standard base64
21
21
  * @param urlSafe - URL-safe base64 string
@@ -28,4 +28,10 @@ export declare const fromUrlSafeBase64: (urlSafe: string) => string;
28
28
  * @returns URL-safe base64 string without padding
29
29
  */
30
30
  export declare const toUrlSafeBase64: (base64: string) => string;
31
- //# sourceMappingURL=hash.browser.d.ts.map
31
+ /**
32
+ * Convert base64 string to bytes
33
+ * @param base64 - Base64 string to convert
34
+ * @returns Uint8Array
35
+ */
36
+ export declare function base64ToBytes(base64: string): Uint8Array;
37
+ //# sourceMappingURL=hash.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hash.d.ts","sourceRoot":"","sources":["../../src/hash.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAIH;;;;;GAKG;AACH,eAAO,MAAM,MAAM,GAAI,OAAO,MAAM,GAAG,UAAU,KAAG,MAoBnD,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,MAAM,GAAI,SAAS,MAAM,GAAG,UAAU,EAAE,MAAM,MAAM,KAAG,OAGnE,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,GAAI,SAAS,MAAM,KAAG,MAKnD,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,eAAe,GAAI,QAAQ,MAAM,KAAG,MAEhD,CAAC;AAgBF;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,MAAM,EAAE,MAAM,GAAG,UAAU,CAYxD"}
@@ -1,44 +1,6 @@
1
- import type { Statement, Quotation, Poll, OrganisationVerification, PersonVerification, Vote, DisputeAuthenticity, DisputeContent, ResponseContent, PDFSigning, Rating, Bounty, Observation, Boycott } from './types';
2
- export * from './types';
1
+ export * from './protocol';
2
+ export * from './hash';
3
+ export * from './signature';
3
4
  export * from './constants';
4
- export * from './utils';
5
- export * from './v3';
6
- export * from './hash.browser';
7
- export { sha256 as sha256Node, verify as verifyNode, fromUrlSafeBase64, toUrlSafeBase64 } from './hash.node';
8
- export declare const buildStatement: ({ domain, author, time, tags, content, representative, supersededStatement }: Statement) => string;
9
- export declare const parseStatement: ({ statement: s, allowNoVersion }: {
10
- statement: string;
11
- allowNoVersion?: boolean;
12
- }) => Statement & {
13
- type?: string;
14
- formatVersion: string;
15
- };
16
- export declare const buildQuotationContent: ({ originalAuthor, authorVerification, originalTime, source, quotation, paraphrasedStatement, picture, confidence }: Quotation) => string;
17
- export declare const parseQuotation: (s: string) => Quotation & {
18
- type: string | undefined;
19
- };
20
- export declare const buildPollContent: ({ country, city, legalEntity, domainScope, judges, deadline, poll, scopeDescription, scopeQueryLink, options, allowArbitraryVote, requiredProperty: propertyScope, requiredPropertyObserver: propertyScopeObserver }: Poll) => string;
21
- export declare const parsePoll: (s: string, version?: string) => Poll;
22
- export declare const buildOrganisationVerificationContent: ({ name, englishName, country, city, province, legalForm, department, domain, foreignDomain, serialNumber, confidence, reliabilityPolicy, employeeCount, pictureHash, latitude, longitude, population }: OrganisationVerification) => string;
23
- export declare const parseOrganisationVerification: (s: string) => OrganisationVerification;
24
- export declare const buildPersonVerificationContent: ({ name, countryOfBirth, cityOfBirth, ownDomain, foreignDomain, dateOfBirth, jobTitle, employer, verificationMethod, confidence, picture, reliabilityPolicy }: PersonVerification) => string;
25
- export declare const parsePersonVerification: (s: string) => PersonVerification;
26
- export declare const buildVoteContent: ({ pollHash, poll, vote }: Vote) => string;
27
- export declare const parseVote: (s: string) => Vote;
28
- export declare const buildDisputeAuthenticityContent: ({ hash, confidence, reliabilityPolicy }: DisputeAuthenticity) => string;
29
- export declare const parseDisputeAuthenticity: (s: string) => DisputeAuthenticity;
30
- export declare const buildDisputeContentContent: ({ hash, confidence, reliabilityPolicy }: DisputeContent) => string;
31
- export declare const parseDisputeContent: (s: string) => DisputeContent;
32
- export declare const buildResponseContent: ({ hash, response }: ResponseContent) => string;
33
- export declare const parseResponseContent: (s: string) => ResponseContent;
34
- export declare const buildPDFSigningContent: ({ hash }: PDFSigning) => string;
35
- export declare const parsePDFSigning: (s: string) => PDFSigning;
36
- export declare const buildRating: ({ subjectName, subjectType, subjectReference, documentFileHash, rating, quality, comment }: Rating) => string;
37
- export declare const parseRating: (s: string) => Rating;
38
- export declare const buildBounty: ({ motivation, bounty, reward, judge, judgePay }: Bounty) => string;
39
- export declare const parseBounty: (s: string) => Bounty;
40
- export declare const buildObservation: ({ approach, confidence, reliabilityPolicy, subject, subjectReference, observationReference, property, value }: Observation) => string;
41
- export declare const parseObservation: (s: string) => Observation;
42
- export declare const buildBoycott: ({ description, subject, subjectReference }: Boycott) => string;
43
- export declare const parseBoycott: (s: string) => Boycott;
5
+ export * from './types';
44
6
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EACR,SAAS,EACT,SAAS,EACT,IAAI,EACJ,wBAAwB,EACxB,kBAAkB,EAClB,IAAI,EACJ,mBAAmB,EACnB,cAAc,EACd,eAAe,EACf,UAAU,EACV,MAAM,EAEN,MAAM,EACN,WAAW,EACX,OAAO,EACV,MAAM,SAAS,CAAA;AAKhB,cAAc,SAAS,CAAA;AACvB,cAAc,aAAa,CAAA;AAC3B,cAAc,SAAS,CAAA;AACvB,cAAc,MAAM,CAAA;AAGpB,cAAc,gBAAgB,CAAA;AAG9B,OAAO,EACH,MAAM,IAAI,UAAU,EACpB,MAAM,IAAI,UAAU,EACpB,iBAAiB,EACjB,eAAe,EAClB,MAAM,aAAa,CAAA;AAGpB,eAAO,MAAM,cAAc,GAAI,8EAA8E,SAAS,WAerH,CAAA;AAED,eAAO,MAAM,cAAc,GAAI,kCAA0C;IAAE,SAAS,EAAE,MAAM,CAAC;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