@sess.si/sdk 0.1.0-rc.4 → 0.1.0-rc.7
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/CHANGELOG.md +56 -1
- package/NOTICE +18 -0
- package/README.md +102 -30
- package/dist/ask.d.ts +150 -0
- package/dist/ask.d.ts.map +1 -0
- package/dist/ask.js +465 -0
- package/dist/ask.js.map +1 -0
- package/dist/cli/main.d.ts +3 -0
- package/dist/cli/main.d.ts.map +1 -0
- package/dist/cli/main.js +8 -0
- package/dist/cli/main.js.map +1 -0
- package/dist/cli/verify.d.ts +14 -0
- package/dist/cli/verify.d.ts.map +1 -0
- package/dist/cli/verify.js +277 -0
- package/dist/cli/verify.js.map +1 -0
- package/dist/client.d.ts +8 -0
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +10 -0
- package/dist/client.js.map +1 -1
- package/dist/generated/openapi.d.ts +6461 -1009
- package/dist/generated/openapi.d.ts.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js.map +1 -1
- package/dist/internal/decode.d.ts.map +1 -1
- package/dist/internal/decode.js +4 -1
- package/dist/internal/decode.js.map +1 -1
- package/dist/polling.d.ts +8 -0
- package/dist/polling.d.ts.map +1 -1
- package/dist/polling.js +32 -1
- package/dist/polling.js.map +1 -1
- package/dist/qr/encoder.d.ts +11 -0
- package/dist/qr/encoder.d.ts.map +1 -0
- package/dist/qr/encoder.js +344 -0
- package/dist/qr/encoder.js.map +1 -0
- package/dist/qr/index.d.ts +56 -0
- package/dist/qr/index.d.ts.map +1 -0
- package/dist/qr/index.js +151 -0
- package/dist/qr/index.js.map +1 -0
- package/dist/receipts/bundle.d.ts +124 -0
- package/dist/receipts/bundle.d.ts.map +1 -0
- package/dist/receipts/bundle.js +424 -0
- package/dist/receipts/bundle.js.map +1 -0
- package/dist/receipts/index.d.ts +2 -0
- package/dist/receipts/index.d.ts.map +1 -1
- package/dist/receipts/index.js +1 -0
- package/dist/receipts/index.js.map +1 -1
- package/dist/sessions.d.ts.map +1 -1
- package/dist/sessions.js +7 -0
- package/dist/sessions.js.map +1 -1
- package/dist/transport.d.ts +2 -0
- package/dist/transport.d.ts.map +1 -1
- package/dist/transport.js +11 -2
- package/dist/transport.js.map +1 -1
- package/dist/types.d.ts +11 -0
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js.map +1 -1
- package/dist/webhooks/index.js +1 -1
- package/dist/webhooks/index.js.map +1 -1
- package/package.json +12 -4
- package/src/ask.ts +636 -0
- package/src/cli/main.ts +8 -0
- package/src/cli/verify.ts +291 -0
- package/src/client.ts +14 -0
- package/src/generated/openapi.ts +6724 -1163
- package/src/index.ts +1 -0
- package/src/internal/decode.ts +3 -1
- package/src/polling.ts +45 -1
- package/src/qr/encoder.ts +345 -0
- package/src/qr/index.ts +203 -0
- package/src/receipts/bundle.ts +547 -0
- package/src/receipts/index.ts +11 -0
- package/src/sessions.ts +11 -0
- package/src/transport.ts +11 -2
- package/src/types.ts +14 -1
- package/src/webhooks/index.ts +1 -1
|
@@ -0,0 +1,277 @@
|
|
|
1
|
+
// `sess verify <file>`: the CLI face of decision-bundle verification. Offline only: it reads the
|
|
2
|
+
// bundle and the keys the caller trusts from local files, verifies with verifyDecisionBundle and
|
|
3
|
+
// prints a short summary (or the result object with --json). It opens no network connection and
|
|
4
|
+
// never prints the receipt, the disclosed content or any key material.
|
|
5
|
+
import { readFile, stat } from 'node:fs/promises';
|
|
6
|
+
import { parseArgs } from 'node:util';
|
|
7
|
+
import { verifyDecisionBundle, } from '../receipts/bundle.js';
|
|
8
|
+
import { validateKeySet } from '../receipts/verify.js';
|
|
9
|
+
/** Exit codes: valid, invalid bundle, usage or file error. */
|
|
10
|
+
export const EXIT = Object.freeze({ valid: 0, invalid: 1, usage: 2 });
|
|
11
|
+
/** A bundle file larger than this is not read (the bundle bound itself is 1 MiB canonical). */
|
|
12
|
+
const MAX_BUNDLE_FILE_BYTES = 16 * 1024 * 1024;
|
|
13
|
+
const MAX_KEYS_FILE_BYTES = 1024 * 1024;
|
|
14
|
+
export const USAGE = `Usage: sess verify <bundle.json> --issuer <url> --keys <jwks.json> [options]
|
|
15
|
+
|
|
16
|
+
Checks a Sess decision bundle on this computer against the issuer and keys you trust.
|
|
17
|
+
Nothing is sent anywhere. Keys inside the bundle are never trusted.
|
|
18
|
+
|
|
19
|
+
Required:
|
|
20
|
+
--issuer <url> the receipt issuer you trust, for example https://api.sess.si
|
|
21
|
+
--keys <file> that issuer's public keys (a JWK Set) you obtained yourself
|
|
22
|
+
|
|
23
|
+
Expected context (optional; only what you pass is checked):
|
|
24
|
+
--audience <id> the workspace the decision must belong to
|
|
25
|
+
--workspace <id> the workspace ID
|
|
26
|
+
--session <id> the Session ID
|
|
27
|
+
--event <id> the Event ID
|
|
28
|
+
--revision <n> the Surface revision
|
|
29
|
+
--action <id> the action ID
|
|
30
|
+
|
|
31
|
+
Other:
|
|
32
|
+
--now <time> check at this RFC 3339 time instead of now
|
|
33
|
+
--json print the full result as JSON
|
|
34
|
+
-h, --help show this help
|
|
35
|
+
|
|
36
|
+
Exit status: 0 valid, 1 invalid, 2 usage or file error.
|
|
37
|
+
`;
|
|
38
|
+
class UsageError extends Error {
|
|
39
|
+
}
|
|
40
|
+
const STRING_OPTIONS = [
|
|
41
|
+
'issuer',
|
|
42
|
+
'keys',
|
|
43
|
+
'audience',
|
|
44
|
+
'workspace',
|
|
45
|
+
'session',
|
|
46
|
+
'event',
|
|
47
|
+
'revision',
|
|
48
|
+
'action',
|
|
49
|
+
'now',
|
|
50
|
+
];
|
|
51
|
+
const RFC3339 = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(?:\.\d{1,9})?(?:Z|[+-]\d{2}:\d{2})$/;
|
|
52
|
+
/** Escapes characters a terminal could interpret (controls, bidi overrides, line separators). */
|
|
53
|
+
function safe(text) {
|
|
54
|
+
return text.replace(/[\u0000-\u001f\u007f-\u009f\u200e\u200f\u2028\u2029\u202a-\u202e\u2066-\u2069]/g, (c) => `\\u${c.charCodeAt(0).toString(16).padStart(4, '0')}`);
|
|
55
|
+
}
|
|
56
|
+
async function readBounded(path, max, what) {
|
|
57
|
+
let size;
|
|
58
|
+
try {
|
|
59
|
+
const info = await stat(path);
|
|
60
|
+
if (!info.isFile())
|
|
61
|
+
throw new UsageError(`${what} is not a file: ${safe(path)}`);
|
|
62
|
+
size = info.size;
|
|
63
|
+
}
|
|
64
|
+
catch (e) {
|
|
65
|
+
if (e instanceof UsageError)
|
|
66
|
+
throw e;
|
|
67
|
+
throw new UsageError(`cannot read ${what}: ${safe(path)}`);
|
|
68
|
+
}
|
|
69
|
+
if (size > max)
|
|
70
|
+
throw new UsageError(`${what} is larger than ${max} bytes: ${safe(path)}`);
|
|
71
|
+
try {
|
|
72
|
+
return await readFile(path);
|
|
73
|
+
}
|
|
74
|
+
catch {
|
|
75
|
+
throw new UsageError(`cannot read ${what}: ${safe(path)}`);
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
function parseJson(bytes) {
|
|
79
|
+
try {
|
|
80
|
+
const text = new TextDecoder('utf-8', { fatal: true }).decode(bytes);
|
|
81
|
+
return { ok: true, value: JSON.parse(text) };
|
|
82
|
+
}
|
|
83
|
+
catch {
|
|
84
|
+
return { ok: false };
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
function parse(argv) {
|
|
88
|
+
let parsed;
|
|
89
|
+
try {
|
|
90
|
+
parsed = parseArgs({
|
|
91
|
+
args: [...argv],
|
|
92
|
+
allowPositionals: true,
|
|
93
|
+
strict: true,
|
|
94
|
+
tokens: true,
|
|
95
|
+
options: {
|
|
96
|
+
...Object.fromEntries(STRING_OPTIONS.map((name) => [name, { type: 'string' }])),
|
|
97
|
+
json: { type: 'boolean' },
|
|
98
|
+
help: { type: 'boolean', short: 'h' },
|
|
99
|
+
},
|
|
100
|
+
});
|
|
101
|
+
}
|
|
102
|
+
catch {
|
|
103
|
+
throw new UsageError('unknown option or missing option value');
|
|
104
|
+
}
|
|
105
|
+
const values = parsed.values;
|
|
106
|
+
if (values.help)
|
|
107
|
+
return 'help';
|
|
108
|
+
// A trust setting given twice is ambiguous: refuse rather than pick one.
|
|
109
|
+
const seen = new Set();
|
|
110
|
+
for (const token of parsed.tokens ?? []) {
|
|
111
|
+
if (token.kind !== 'option')
|
|
112
|
+
continue;
|
|
113
|
+
if (seen.has(token.name))
|
|
114
|
+
throw new UsageError(`--${token.name} is given more than once`);
|
|
115
|
+
seen.add(token.name);
|
|
116
|
+
}
|
|
117
|
+
const [command, file, ...rest] = parsed.positionals;
|
|
118
|
+
if (command !== 'verify')
|
|
119
|
+
throw new UsageError('the only command is: verify <bundle.json>');
|
|
120
|
+
if (file === undefined || rest.length > 0)
|
|
121
|
+
throw new UsageError('give exactly one bundle file');
|
|
122
|
+
const str = (name) => {
|
|
123
|
+
const v = values[name];
|
|
124
|
+
if (v === undefined)
|
|
125
|
+
return undefined;
|
|
126
|
+
if (typeof v !== 'string' || v.length === 0)
|
|
127
|
+
throw new UsageError(`--${name} needs a value`);
|
|
128
|
+
return v;
|
|
129
|
+
};
|
|
130
|
+
const issuer = str('issuer');
|
|
131
|
+
const keysPath = str('keys');
|
|
132
|
+
if (issuer === undefined || keysPath === undefined)
|
|
133
|
+
throw new UsageError('--issuer and --keys are required: verification only uses keys you trust');
|
|
134
|
+
const revisionText = str('revision');
|
|
135
|
+
let revision;
|
|
136
|
+
if (revisionText !== undefined) {
|
|
137
|
+
revision = Number(revisionText);
|
|
138
|
+
if (!/^[1-9][0-9]*$/.test(revisionText) || !Number.isSafeInteger(revision))
|
|
139
|
+
throw new UsageError('--revision must be a positive integer');
|
|
140
|
+
}
|
|
141
|
+
const nowText = str('now');
|
|
142
|
+
let now;
|
|
143
|
+
if (nowText !== undefined) {
|
|
144
|
+
now = new Date(nowText);
|
|
145
|
+
if (!RFC3339.test(nowText) || Number.isNaN(now.getTime()))
|
|
146
|
+
throw new UsageError('--now must be an RFC 3339 time, for example 2026-10-09T12:05:00Z');
|
|
147
|
+
}
|
|
148
|
+
const context = {};
|
|
149
|
+
const audience = str('audience');
|
|
150
|
+
const workspaceId = str('workspace');
|
|
151
|
+
const sessionId = str('session');
|
|
152
|
+
const eventId = str('event');
|
|
153
|
+
const actionId = str('action');
|
|
154
|
+
if (audience !== undefined)
|
|
155
|
+
context.audience = audience;
|
|
156
|
+
if (workspaceId !== undefined)
|
|
157
|
+
context.workspaceId = workspaceId;
|
|
158
|
+
if (sessionId !== undefined)
|
|
159
|
+
context.sessionId = sessionId;
|
|
160
|
+
if (eventId !== undefined)
|
|
161
|
+
context.eventId = eventId;
|
|
162
|
+
if (revision !== undefined)
|
|
163
|
+
context.revision = revision;
|
|
164
|
+
if (actionId !== undefined)
|
|
165
|
+
context.actionId = actionId;
|
|
166
|
+
return {
|
|
167
|
+
file,
|
|
168
|
+
issuer,
|
|
169
|
+
keysPath,
|
|
170
|
+
context: Object.keys(context).length > 0 ? context : undefined,
|
|
171
|
+
now,
|
|
172
|
+
json: values.json === true,
|
|
173
|
+
};
|
|
174
|
+
}
|
|
175
|
+
const REASON_TEXT = {
|
|
176
|
+
malformed: 'the file is not a bundle-v1 decision bundle',
|
|
177
|
+
oversized: 'the bundle exceeds a bundle-v1 size bound',
|
|
178
|
+
unsupported_version: 'the bundle uses a later format version',
|
|
179
|
+
receipt_malformed: 'the receipt cannot be read',
|
|
180
|
+
algorithm: 'the receipt does not use the EdDSA algorithm',
|
|
181
|
+
missing_kid: 'the receipt names no key',
|
|
182
|
+
unknown_kid: 'the receipt was signed with a key you do not trust',
|
|
183
|
+
type: 'the receipt has the wrong type',
|
|
184
|
+
signature: 'the signature does not verify with the key you trust',
|
|
185
|
+
issuer: 'the receipt is from another issuer',
|
|
186
|
+
audience: 'the receipt belongs to another workspace',
|
|
187
|
+
expired: 'the receipt has expired',
|
|
188
|
+
claims: 'the receipt claims are not valid receipt-v1 claims',
|
|
189
|
+
not_yet_valid: 'the receipt is dated in the future',
|
|
190
|
+
surface_mismatch: 'the disclosed Surface is not the one the receipt signed',
|
|
191
|
+
input_mismatch: 'the disclosed input is not the one the receipt signed',
|
|
192
|
+
context_mismatch: 'the decision is not the one you expected',
|
|
193
|
+
};
|
|
194
|
+
function summary(r) {
|
|
195
|
+
const lines = [];
|
|
196
|
+
const row = (label, value) => lines.push(` ${label.padEnd(11)} ${value}`);
|
|
197
|
+
const context = r.context.status === 'mismatch'
|
|
198
|
+
? `mismatch: ${r.context.mismatches.join(', ')}`
|
|
199
|
+
: r.context.status === 'unchecked'
|
|
200
|
+
? 'unchecked (no expected context given)'
|
|
201
|
+
: r.context.checked.length > 0
|
|
202
|
+
? `${r.context.status}: ${r.context.checked.join(', ')}`
|
|
203
|
+
: r.context.status;
|
|
204
|
+
if (r.valid && r.receipt) {
|
|
205
|
+
const c = r.receipt;
|
|
206
|
+
lines.push('Valid decision bundle.');
|
|
207
|
+
row('Accepted', `${safe(c.accepted_at)}, action ${safe(c.action.id)} on revision ${c.surface.revision}`);
|
|
208
|
+
row('Session', `${safe(c.session_id)} (event ${safe(c.event_id)}, workspace ${safe(c.workspace_id)})`);
|
|
209
|
+
row('Issuer', `${safe(c.issuer)} (key ${safe(c.key_id)})`);
|
|
210
|
+
row('Actor', "someone holding the Session's human link (not a verified person)");
|
|
211
|
+
row('Content', 'verified');
|
|
212
|
+
row('Context', context);
|
|
213
|
+
row('Purpose', r.application_purpose);
|
|
214
|
+
row('Expires', safe(c.expires_at));
|
|
215
|
+
}
|
|
216
|
+
else {
|
|
217
|
+
lines.push(`Invalid decision bundle: ${r.reason}`);
|
|
218
|
+
lines.push(` ${REASON_TEXT[r.reason ?? ''] ?? ''}`);
|
|
219
|
+
row('Content', r.content);
|
|
220
|
+
row('Context', context);
|
|
221
|
+
}
|
|
222
|
+
row('Checked at', r.checked_at);
|
|
223
|
+
return `${lines.join('\n')}\n`;
|
|
224
|
+
}
|
|
225
|
+
/**
|
|
226
|
+
* JSON with every terminal-sensitive character escaped; parses to the same value. JSON.stringify
|
|
227
|
+
* already escapes C0 controls inside strings, and the only raw characters it can leave are inside
|
|
228
|
+
* strings, where a \u escape denotes the same character.
|
|
229
|
+
*/
|
|
230
|
+
function safeJson(value) {
|
|
231
|
+
const text = JSON.stringify(value, null, 2).replace(/[\u007f-\u009f\u200e\u200f\u2028\u2029\u202a-\u202e\u2066-\u2069]/g, (c) => `\\u${c.charCodeAt(0).toString(16).padStart(4, '0')}`);
|
|
232
|
+
return `${text}\n`;
|
|
233
|
+
}
|
|
234
|
+
/** Runs `sess <argv>`; resolves to the exit code. Never throws. */
|
|
235
|
+
export async function runCli(argv, io) {
|
|
236
|
+
try {
|
|
237
|
+
const parsed = parse(argv);
|
|
238
|
+
if (parsed === 'help') {
|
|
239
|
+
io.stdout(USAGE);
|
|
240
|
+
return EXIT.valid;
|
|
241
|
+
}
|
|
242
|
+
const keyBytes = await readBounded(parsed.keysPath, MAX_KEYS_FILE_BYTES, 'the --keys file');
|
|
243
|
+
const keyJson = parseJson(keyBytes);
|
|
244
|
+
let trustedKeys;
|
|
245
|
+
try {
|
|
246
|
+
if (!keyJson.ok)
|
|
247
|
+
throw new Error('not JSON');
|
|
248
|
+
trustedKeys = validateKeySet(keyJson.value);
|
|
249
|
+
}
|
|
250
|
+
catch {
|
|
251
|
+
throw new UsageError('the --keys file must be a JWK Set of public Ed25519 keys with unique kids (private keys are refused)');
|
|
252
|
+
}
|
|
253
|
+
const bundleBytes = await readBounded(parsed.file, MAX_BUNDLE_FILE_BYTES, 'the bundle file');
|
|
254
|
+
const bundleJson = parseJson(bundleBytes);
|
|
255
|
+
let result;
|
|
256
|
+
try {
|
|
257
|
+
// A file that is not JSON is not a bundle: the same facade reports it as malformed.
|
|
258
|
+
result = await verifyDecisionBundle(bundleJson.ok ? bundleJson.value : undefined, {
|
|
259
|
+
issuer: parsed.issuer,
|
|
260
|
+
trustedKeys,
|
|
261
|
+
...(parsed.context ? { expectedContext: parsed.context } : {}),
|
|
262
|
+
...(parsed.now ? { now: parsed.now } : {}),
|
|
263
|
+
});
|
|
264
|
+
}
|
|
265
|
+
catch {
|
|
266
|
+
throw new UsageError('invalid verification options');
|
|
267
|
+
}
|
|
268
|
+
io.stdout(parsed.json ? safeJson(result) : summary(result));
|
|
269
|
+
return result.valid ? EXIT.valid : EXIT.invalid;
|
|
270
|
+
}
|
|
271
|
+
catch (e) {
|
|
272
|
+
const message = e instanceof UsageError ? e.message : 'unexpected error';
|
|
273
|
+
io.stderr(`sess: ${message}\nRun "sess --help" for usage.\n`);
|
|
274
|
+
return EXIT.usage;
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
//# sourceMappingURL=verify.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"verify.js","sourceRoot":"","sources":["../../src/cli/verify.ts"],"names":[],"mappings":"AAAA,iGAAiG;AACjG,iGAAiG;AACjG,gGAAgG;AAChG,uEAAuE;AACvE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AACtC,OAAO,EACL,oBAAoB,GAGrB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAEvD,8DAA8D;AAC9D,MAAM,CAAC,MAAM,IAAI,GAAG,MAAM,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC,CAAC;AAEtE,+FAA+F;AAC/F,MAAM,qBAAqB,GAAG,EAAE,GAAG,IAAI,GAAG,IAAI,CAAC;AAC/C,MAAM,mBAAmB,GAAG,IAAI,GAAG,IAAI,CAAC;AAOxC,MAAM,CAAC,MAAM,KAAK,GAAG;;;;;;;;;;;;;;;;;;;;;;;CAuBpB,CAAC;AAEF,MAAM,UAAW,SAAQ,KAAK;CAAG;AAEjC,MAAM,cAAc,GA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A8B,CAAC,CAAC;QACvD,CAAC;QACD,EAAE,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC;QAC5D,OAAO,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC;IAClD,CAAC;IAAC,OAAO,CAAC,EAAE,CAAC;QACX,MAAM,OAAO,GAAG,CAAC,YAAY,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,kBAAkB,CAAC;QACzE,EAAE,CAAC,MAAM,CAAC,SAAS,OAAO,kCAAkC,CAAC,CAAC;QAC9D,OAAO,IAAI,CAAC,KAAK,CAAC;IACpB,CAAC;AACH,CAAC"}
|
package/dist/client.d.ts
CHANGED
|
@@ -2,11 +2,19 @@ import type { SessOptions } from './types.js';
|
|
|
2
2
|
import { Sessions } from './sessions.js';
|
|
3
3
|
import { WebhookResource } from './webhook-resource.js';
|
|
4
4
|
import { createReceiptResource } from './receipts/resource.js';
|
|
5
|
+
import { type AskAnswer, type AskField, type AskHandle, type AskInput, type AskOptions } from './ask.js';
|
|
5
6
|
/** Server-side client. Construction has no network or installation side effects. */
|
|
6
7
|
export declare class Sess {
|
|
7
8
|
readonly sessions: Sessions;
|
|
8
9
|
readonly webhooks: WebhookResource;
|
|
9
10
|
readonly receipts: ReturnType<typeof createReceiptResource>;
|
|
10
11
|
constructor(options: SessOptions);
|
|
12
|
+
/**
|
|
13
|
+
* Asks one question with simple typed fields. Invalid input fails before credential lookup or
|
|
14
|
+
* network access. The Session is created once with the whole interaction, and the returned
|
|
15
|
+
* handle carries the private link before any wait. `answer()` verifies the answer, checks that it
|
|
16
|
+
* is still current, completes the Session and returns the typed values.
|
|
17
|
+
*/
|
|
18
|
+
ask<const F extends readonly AskField[]>(input: AskInput<F>, options?: AskOptions): Promise<AskHandle<AskAnswer<F>>>;
|
|
11
19
|
}
|
|
12
20
|
//# sourceMappingURL=client.d.ts.map
|
package/dist/client.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAE9C,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AACxD,OAAO,EAAE,qBAAqB,EAAE,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAE9C,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AACxD,OAAO,EAAE,qBAAqB,EAAE,MAAM,wBAAwB,CAAC;AAC/D,OAAO,EAAO,KAAK,SAAS,EAAE,KAAK,QAAQ,EAAE,KAAK,SAAS,EAAE,KAAK,QAAQ,EAAE,KAAK,UAAU,EAAE,MAAM,UAAU,CAAC;AAE9G,oFAAoF;AACpF,qBAAa,IAAI;IACf,QAAQ,CAAC,QAAQ,EAAE,QAAQ,CAAC;IAC5B,QAAQ,CAAC,QAAQ,EAAE,eAAe,CAAC;IACnC,QAAQ,CAAC,QAAQ,EAAE,UAAU,CAAC,OAAO,qBAAqB,CAAC,CAAC;gBAEhD,OAAO,EAAE,WAAW;IA6BhC;;;;;OAKG;IACH,GAAG,CAAC,KAAK,CAAC,CAAC,SAAS,SAAS,QAAQ,EAAE,EACrC,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,EAClB,OAAO,CAAC,EAAE,UAAU,GACnB,OAAO,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC;CAGpC"}
|
package/dist/client.js
CHANGED
|
@@ -2,6 +2,7 @@ import { Transport } from './transport.js';
|
|
|
2
2
|
import { Sessions } from './sessions.js';
|
|
3
3
|
import { WebhookResource } from './webhook-resource.js';
|
|
4
4
|
import { createReceiptResource } from './receipts/resource.js';
|
|
5
|
+
import { ask } from './ask.js';
|
|
5
6
|
/** Server-side client. Construction has no network or installation side effects. */
|
|
6
7
|
export class Sess {
|
|
7
8
|
sessions;
|
|
@@ -30,5 +31,14 @@ export class Sess {
|
|
|
30
31
|
});
|
|
31
32
|
Object.freeze(this);
|
|
32
33
|
}
|
|
34
|
+
/**
|
|
35
|
+
* Asks one question with simple typed fields. Invalid input fails before credential lookup or
|
|
36
|
+
* network access. The Session is created once with the whole interaction, and the returned
|
|
37
|
+
* handle carries the private link before any wait. `answer()` verifies the answer, checks that it
|
|
38
|
+
* is still current, completes the Session and returns the typed values.
|
|
39
|
+
*/
|
|
40
|
+
ask(input, options) {
|
|
41
|
+
return ask(this.sessions, this.receipts, input, options);
|
|
42
|
+
}
|
|
33
43
|
}
|
|
34
44
|
//# sourceMappingURL=client.js.map
|
package/dist/client.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.js","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AACxD,OAAO,EAAE,qBAAqB,EAAE,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"client.js","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EA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