stated-protocol 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.
- package/README.md +409 -0
- package/dist/constants.d.ts +225 -0
- package/dist/constants.d.ts.map +1 -0
- package/dist/constants.js +227 -0
- package/dist/constants.js.map +1 -0
- package/dist/esm/constants.d.ts +225 -0
- package/dist/esm/constants.d.ts.map +1 -0
- package/dist/esm/hash.d.ts +37 -0
- package/dist/esm/hash.d.ts.map +1 -0
- package/dist/esm/index.d.ts +6 -0
- package/dist/esm/index.d.ts.map +1 -0
- package/dist/esm/index.js +2104 -0
- package/dist/esm/index.js.map +7 -0
- package/dist/esm/protocol.d.ts +30 -0
- package/dist/esm/protocol.d.ts.map +1 -0
- package/dist/esm/signature.d.ts +49 -0
- package/dist/esm/signature.d.ts.map +1 -0
- package/dist/esm/types.d.ts +115 -0
- package/dist/esm/types.d.ts.map +1 -0
- package/dist/esm/utils.d.ts +14 -0
- package/dist/esm/utils.d.ts.map +1 -0
- package/dist/hash.d.ts +37 -0
- package/dist/hash.d.ts.map +1 -0
- package/dist/hash.js +99 -0
- package/dist/hash.js.map +1 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +22 -0
- package/dist/index.js.map +1 -0
- package/dist/protocol.d.ts +30 -0
- package/dist/protocol.d.ts.map +1 -0
- package/dist/protocol.js +677 -0
- package/dist/protocol.js.map +1 -0
- package/dist/signature.d.ts +49 -0
- package/dist/signature.d.ts.map +1 -0
- package/dist/signature.js +169 -0
- package/dist/signature.js.map +1 -0
- package/dist/types.d.ts +115 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js +30 -0
- package/dist/types.js.map +1 -0
- package/dist/utils.d.ts +14 -0
- package/dist/utils.d.ts.map +1 -0
- package/dist/utils.js +96 -0
- package/dist/utils.js.map +1 -0
- package/package.json +66 -0
- package/src/constants.ts +245 -0
- package/src/fixtures.test.ts +236 -0
- package/src/hash.test.ts +219 -0
- package/src/hash.ts +99 -0
- package/src/index.ts +5 -0
- package/src/organisation-verification.test.ts +50 -0
- package/src/person-verification.test.ts +55 -0
- package/src/poll.test.ts +28 -0
- package/src/protocol.ts +871 -0
- package/src/rating.test.ts +25 -0
- package/src/signature.test.ts +200 -0
- package/src/signature.ts +159 -0
- package/src/statement.test.ts +101 -0
- package/src/types.ts +185 -0
- package/src/utils.test.ts +140 -0
- package/src/utils.ts +104 -0
|
@@ -0,0 +1,227 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
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
|
+
exports.legalForms = {
|
|
5
|
+
local_government: 'local government',
|
|
6
|
+
state_government: 'state government',
|
|
7
|
+
foreign_affairs_ministry: 'foreign affairs ministry',
|
|
8
|
+
corporation: 'corporation',
|
|
9
|
+
};
|
|
10
|
+
exports.statementTypes = {
|
|
11
|
+
statement: 'statement',
|
|
12
|
+
organisationVerification: 'organisation_verification',
|
|
13
|
+
personVerification: 'person_verification',
|
|
14
|
+
poll: 'poll',
|
|
15
|
+
vote: 'vote',
|
|
16
|
+
response: 'response',
|
|
17
|
+
disputeContent: 'dispute_statement_content',
|
|
18
|
+
disputeAuthenticity: 'dispute_statement_authenticity',
|
|
19
|
+
rating: 'rating',
|
|
20
|
+
signPdf: 'sign_pdf',
|
|
21
|
+
unsupported: 'unsupported',
|
|
22
|
+
};
|
|
23
|
+
exports.peopleCountBuckets = {
|
|
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',
|
|
216
|
+
};
|
|
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/;
|
|
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;
|
|
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;
|
|
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;
|
|
221
|
+
exports.voteKeys = /(Type: |Poll id: |Poll: |Option: )/g;
|
|
222
|
+
exports.disputeAuthenticityKeys = /(Type: |Description: |Hash of referenced statement: |Confidence: |Reliability policy: )/g;
|
|
223
|
+
exports.disputeContentKeys = /(Type: |Description: |Hash of referenced statement: |Confidence: |Reliability policy: )/g;
|
|
224
|
+
exports.responseKeys = /(Type: |Hash of referenced statement: |Response: )/;
|
|
225
|
+
exports.PDFSigningKeys = /(Type: |Description: |PDF file hash: )/g;
|
|
226
|
+
exports.ratingKeys = /(Type: |Subject type: |Subject name: |URL that identifies the subject: |Document file hash: |Rated quality: |Our rating: |Comment: )/;
|
|
227
|
+
//# sourceMappingURL=constants.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":";;;AAAa,QAAA,UAAU,GAAG;IACxB,gBAAgB,EAAE,kBAAkB;IACpC,gBAAgB,EAAE,kBAAkB;IACpC,wBAAwB,EAAE,0BAA0B;IACpD,WAAW,EAAE,aAAa;CAC3B,CAAC;AAEW,QAAA,cAAc,GAAG;IAC5B,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,MAAM,EAAE,QAAQ;IAChB,OAAO,EAAE,UAAU;IACnB,WAAW,EAAE,aAAa;CAC3B,CAAC;AAEW,QAAA,kBAAkB,GAAG;IAChC,GAAG,EAAE,MAAM;IACX,IAAI,EAAE,QAAQ;IACd,KAAK,EAAE,UAAU;IACjB,MAAM,EAAE,aAAa;IACrB,OAAO,EAAE,gBAAgB;IACzB,QAAQ,EAAE,UAAU;IACpB,SAAS,EAAE,YAAY;IACvB,UAAU,EAAE,aAAa;CAC1B,CAAC;AAEW,QAAA,kBAAkB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AE,EAAE,IAAI;IACR,EAAE,EAAE,IAAI;IACR,EAAE,EAAE,IAAI;IACR,EAAE,EAAE,IAAI;IACR,EAAE,EAAE,IAAI;IACR,EAAE,EAAE,IAAI;IACR,EAAE,EAAE,IAAI;IACR,EAAE,EAAE,IAAI;IACR,EAAE,EAAE,IAAI;IACR,EAAE,EAAE,IAAI;IACR,EAAE,EAAE,IAAI;IACR,EAAE,EAAE,IAAI;IACR,EAAE,EAAE,IAAI;IACR,EAAE,EAAE,IAAI;IACR,EAAE,EAAE,IAAI;IACR,EAAE,EAAE,IAAI;IACR,EAAE,EAAE,IAAI;IACR,EAAE,EAAE,IAAI;IACR,EAAE,EAAE,IAAI;IACR,EAAE,EAAE,IAAI;IACR,EAAE,EAAE,IAAI;CACA,CAAC;AAIE,QAAA,SAAS,GACpB,yHAAyH,CAAC;AAE/G,QAAA,QAAQ,GACnB,gXAAgX,CAAC;AAEtW,QAAA,4BAA4B,GACvC,0VAA0V,CAAC;AAEhV,QAAA,sBAAsB,GACjC,kPAAkP,CAAC;AAExO,QAAA,QAAQ,GAAG,qCAAqC,CAAC;AAEjD,QAAA,uBAAuB,GAClC,0FAA0F,CAAC;AAEhF,QAAA,kBAAkB,GAC7B,0FAA0F,CAAC;AAEhF,QAAA,YAAY,GAAG,oDAAoD,CAAC;AAEpE,QAAA,cAAc,GAAG,yCAAyC,CAAC;AAE3D,QAAA,UAAU,GACrB,sIAAsI,CAAC"}
|
|
@@ -0,0 +1,225 @@
|
|
|
1
|
+
export declare const legalForms: {
|
|
2
|
+
local_government: string;
|
|
3
|
+
state_government: string;
|
|
4
|
+
foreign_affairs_ministry: string;
|
|
5
|
+
corporation: string;
|
|
6
|
+
};
|
|
7
|
+
export declare const statementTypes: {
|
|
8
|
+
statement: string;
|
|
9
|
+
organisationVerification: string;
|
|
10
|
+
personVerification: string;
|
|
11
|
+
poll: string;
|
|
12
|
+
vote: string;
|
|
13
|
+
response: string;
|
|
14
|
+
disputeContent: string;
|
|
15
|
+
disputeAuthenticity: string;
|
|
16
|
+
rating: string;
|
|
17
|
+
signPdf: string;
|
|
18
|
+
unsupported: string;
|
|
19
|
+
};
|
|
20
|
+
export declare const peopleCountBuckets: {
|
|
21
|
+
'0': string;
|
|
22
|
+
'10': string;
|
|
23
|
+
'100': string;
|
|
24
|
+
'1000': string;
|
|
25
|
+
'10000': string;
|
|
26
|
+
'100000': string;
|
|
27
|
+
'1000000': string;
|
|
28
|
+
'10000000': string;
|
|
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];
|
|
215
|
+
export declare const UTCFormat: RegExp;
|
|
216
|
+
export declare const pollKeys: RegExp;
|
|
217
|
+
export declare const organisationVerificationKeys: RegExp;
|
|
218
|
+
export declare const personVerificationKeys: RegExp;
|
|
219
|
+
export declare const voteKeys: RegExp;
|
|
220
|
+
export declare const disputeAuthenticityKeys: RegExp;
|
|
221
|
+
export declare const disputeContentKeys: RegExp;
|
|
222
|
+
export declare const responseKeys: RegExp;
|
|
223
|
+
export declare const PDFSigningKeys: RegExp;
|
|
224
|
+
export declare const ratingKeys: RegExp;
|
|
225
|
+
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Universal hash utilities using @noble/hashes
|
|
3
|
+
* Works in both browser and Node.js environments
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* Compute SHA-256 hash of a string and return it as URL-safe base64
|
|
7
|
+
* Works in both browser and Node.js environments
|
|
8
|
+
* @param input - The string or buffer to hash
|
|
9
|
+
* @returns URL-safe base64 encoded hash
|
|
10
|
+
*/
|
|
11
|
+
export declare const sha256: (input: string | Uint8Array) => string;
|
|
12
|
+
/**
|
|
13
|
+
* Verify that content matches a given hash
|
|
14
|
+
* @param content - The content to verify
|
|
15
|
+
* @param hash - The expected hash
|
|
16
|
+
* @returns True if the hash matches
|
|
17
|
+
*/
|
|
18
|
+
export declare const verify: (content: string | Uint8Array, hash: string) => boolean;
|
|
19
|
+
/**
|
|
20
|
+
* Convert URL-safe base64 back to standard base64
|
|
21
|
+
* @param urlSafe - URL-safe base64 string
|
|
22
|
+
* @returns Standard base64 string with padding
|
|
23
|
+
*/
|
|
24
|
+
export declare const fromUrlSafeBase64: (urlSafe: string) => string;
|
|
25
|
+
/**
|
|
26
|
+
* Convert standard base64 to URL-safe base64
|
|
27
|
+
* @param base64 - Standard base64 string
|
|
28
|
+
* @returns URL-safe base64 string without padding
|
|
29
|
+
*/
|
|
30
|
+
export declare const toUrlSafeBase64: (base64: string) => string;
|
|
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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,QAAQ,CAAC;AACvB,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC"}
|