@verft/sdk 0.0.0-stage → 1.1.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/LICENSE +22 -0
- package/README.md +14 -2
- package/dist/activity.d.ts +12 -0
- package/dist/activity.js +59 -0
- package/dist/connection.d.ts +135 -0
- package/dist/connection.js +1032 -0
- package/dist/drafts.d.ts +13 -0
- package/dist/drafts.js +21 -0
- package/dist/encoding.d.ts +112 -0
- package/dist/encoding.js +428 -0
- package/dist/files.d.ts +31 -0
- package/dist/files.js +56 -0
- package/dist/functions.d.ts +26 -0
- package/dist/functions.js +15 -0
- package/dist/index.d.ts +15 -0
- package/dist/index.js +8 -0
- package/dist/landing.d.ts +25 -0
- package/dist/landing.js +19 -0
- package/dist/platform.d.ts +70 -0
- package/dist/platform.js +11 -0
- package/dist/protocol.d.ts +1198 -0
- package/dist/protocol.js +334 -0
- package/dist/react-native.d.ts +30 -0
- package/dist/react-native.js +34 -0
- package/dist/react.d.ts +23 -0
- package/dist/react.js +43 -0
- package/dist/readable.d.ts +14 -0
- package/dist/readable.js +31 -0
- package/dist/storage.d.ts +6 -0
- package/dist/storage.js +8 -0
- package/dist/subscriptions.d.ts +70 -0
- package/dist/subscriptions.js +168 -0
- package/dist/svelte.d.ts +26 -0
- package/dist/svelte.js +73 -0
- package/dist/tables.d.ts +17 -0
- package/dist/tables.js +18 -0
- package/dist/vue.d.ts +20 -0
- package/dist/vue.js +60 -0
- package/package.json +72 -4
|
@@ -0,0 +1,1198 @@
|
|
|
1
|
+
import { type Bytes, type Codec, type ConnectionId, type Duration, type FileHandle, type Identity, type Timestamp } from "./encoding.js";
|
|
2
|
+
export declare const PROTOCOL = 1;
|
|
3
|
+
export type IdentityKind = {
|
|
4
|
+
readonly tag: "Anonymous";
|
|
5
|
+
} | {
|
|
6
|
+
readonly tag: "SignedIn";
|
|
7
|
+
} | {
|
|
8
|
+
readonly tag: "ApiKey";
|
|
9
|
+
} | {
|
|
10
|
+
readonly tag: "Verft";
|
|
11
|
+
};
|
|
12
|
+
export interface Caller {
|
|
13
|
+
readonly identity: Identity;
|
|
14
|
+
readonly kind: IdentityKind;
|
|
15
|
+
}
|
|
16
|
+
export type Method = {
|
|
17
|
+
readonly tag: "Get";
|
|
18
|
+
} | {
|
|
19
|
+
readonly tag: "Head";
|
|
20
|
+
} | {
|
|
21
|
+
readonly tag: "Post";
|
|
22
|
+
} | {
|
|
23
|
+
readonly tag: "Put";
|
|
24
|
+
} | {
|
|
25
|
+
readonly tag: "Patch";
|
|
26
|
+
} | {
|
|
27
|
+
readonly tag: "Delete";
|
|
28
|
+
} | {
|
|
29
|
+
readonly tag: "Options";
|
|
30
|
+
};
|
|
31
|
+
export type Kind = {
|
|
32
|
+
readonly tag: "Action";
|
|
33
|
+
} | {
|
|
34
|
+
readonly tag: "Query";
|
|
35
|
+
} | {
|
|
36
|
+
readonly tag: "Job";
|
|
37
|
+
readonly value: {
|
|
38
|
+
readonly attempts: number;
|
|
39
|
+
};
|
|
40
|
+
} | {
|
|
41
|
+
readonly tag: "Route";
|
|
42
|
+
readonly value: {
|
|
43
|
+
readonly method: Method;
|
|
44
|
+
readonly path: string;
|
|
45
|
+
};
|
|
46
|
+
} | {
|
|
47
|
+
readonly tag: "Predicate";
|
|
48
|
+
readonly value: {
|
|
49
|
+
readonly table: string;
|
|
50
|
+
};
|
|
51
|
+
} | {
|
|
52
|
+
readonly tag: "Migration";
|
|
53
|
+
};
|
|
54
|
+
export type Malformed = {
|
|
55
|
+
readonly tag: "Truncated";
|
|
56
|
+
} | {
|
|
57
|
+
readonly tag: "TrailingBytes";
|
|
58
|
+
} | {
|
|
59
|
+
readonly tag: "InvalidBool";
|
|
60
|
+
readonly value: number;
|
|
61
|
+
} | {
|
|
62
|
+
readonly tag: "InvalidOption";
|
|
63
|
+
readonly value: number;
|
|
64
|
+
} | {
|
|
65
|
+
readonly tag: "InvalidUtf8";
|
|
66
|
+
} | {
|
|
67
|
+
readonly tag: "UnknownVariant";
|
|
68
|
+
readonly value: number;
|
|
69
|
+
} | {
|
|
70
|
+
readonly tag: "TooDeep";
|
|
71
|
+
};
|
|
72
|
+
export type CallFailure = {
|
|
73
|
+
readonly tag: "NotConnected";
|
|
74
|
+
} | {
|
|
75
|
+
readonly tag: "NotFound";
|
|
76
|
+
} | {
|
|
77
|
+
readonly tag: "ModuleError";
|
|
78
|
+
readonly value: Bytes;
|
|
79
|
+
} | {
|
|
80
|
+
readonly tag: "Panicked";
|
|
81
|
+
} | {
|
|
82
|
+
readonly tag: "WriteInQuery";
|
|
83
|
+
} | {
|
|
84
|
+
readonly tag: "WrongKind";
|
|
85
|
+
readonly value: {
|
|
86
|
+
readonly declared: Kind;
|
|
87
|
+
};
|
|
88
|
+
} | {
|
|
89
|
+
readonly tag: "MalformedArguments";
|
|
90
|
+
readonly value: Malformed;
|
|
91
|
+
} | {
|
|
92
|
+
readonly tag: "ArgumentCount";
|
|
93
|
+
readonly value: {
|
|
94
|
+
readonly expected: bigint;
|
|
95
|
+
readonly received: bigint;
|
|
96
|
+
};
|
|
97
|
+
} | {
|
|
98
|
+
readonly tag: "ArgumentType";
|
|
99
|
+
readonly value: {
|
|
100
|
+
readonly index: bigint;
|
|
101
|
+
readonly reason: string;
|
|
102
|
+
};
|
|
103
|
+
} | {
|
|
104
|
+
readonly tag: "Unavailable";
|
|
105
|
+
readonly value: string;
|
|
106
|
+
} | {
|
|
107
|
+
readonly tag: "Indeterminate";
|
|
108
|
+
} | {
|
|
109
|
+
readonly tag: "TimeLimit";
|
|
110
|
+
} | {
|
|
111
|
+
readonly tag: "MemoryLimit";
|
|
112
|
+
} | {
|
|
113
|
+
readonly tag: "ContractViolation";
|
|
114
|
+
readonly value: string;
|
|
115
|
+
} | {
|
|
116
|
+
readonly tag: "PredicateRowLimit";
|
|
117
|
+
readonly value: {
|
|
118
|
+
readonly table: string;
|
|
119
|
+
readonly limit: bigint;
|
|
120
|
+
};
|
|
121
|
+
} | {
|
|
122
|
+
readonly tag: "Rejected";
|
|
123
|
+
readonly value: Rejection;
|
|
124
|
+
} | {
|
|
125
|
+
readonly tag: "Overloaded";
|
|
126
|
+
readonly value: {
|
|
127
|
+
readonly retry_after: Duration;
|
|
128
|
+
};
|
|
129
|
+
} | {
|
|
130
|
+
readonly tag: "LimitReached";
|
|
131
|
+
readonly value: {
|
|
132
|
+
readonly measure: Measure;
|
|
133
|
+
readonly until: Timestamp | null;
|
|
134
|
+
};
|
|
135
|
+
};
|
|
136
|
+
export type Measure = {
|
|
137
|
+
readonly tag: "Compute";
|
|
138
|
+
} | {
|
|
139
|
+
readonly tag: "Actions";
|
|
140
|
+
} | {
|
|
141
|
+
readonly tag: "DatabaseStorage";
|
|
142
|
+
} | {
|
|
143
|
+
readonly tag: "EphemeralStorage";
|
|
144
|
+
} | {
|
|
145
|
+
readonly tag: "DataSent";
|
|
146
|
+
} | {
|
|
147
|
+
readonly tag: "LogVolume";
|
|
148
|
+
} | {
|
|
149
|
+
readonly tag: "FileStorage";
|
|
150
|
+
} | {
|
|
151
|
+
readonly tag: "FileDownloads";
|
|
152
|
+
};
|
|
153
|
+
type TableColumn = {
|
|
154
|
+
readonly table: string;
|
|
155
|
+
readonly column: string;
|
|
156
|
+
};
|
|
157
|
+
export type Rejection = {
|
|
158
|
+
readonly tag: "TooLong";
|
|
159
|
+
readonly value: {
|
|
160
|
+
readonly limit: bigint;
|
|
161
|
+
};
|
|
162
|
+
} | {
|
|
163
|
+
readonly tag: "Syntax";
|
|
164
|
+
readonly value: {
|
|
165
|
+
readonly at: bigint;
|
|
166
|
+
readonly expected: string;
|
|
167
|
+
};
|
|
168
|
+
} | {
|
|
169
|
+
readonly tag: "Write";
|
|
170
|
+
} | {
|
|
171
|
+
readonly tag: "Aggregate";
|
|
172
|
+
readonly value: string;
|
|
173
|
+
} | {
|
|
174
|
+
readonly tag: "Unsupported";
|
|
175
|
+
readonly value: {
|
|
176
|
+
readonly at: bigint;
|
|
177
|
+
readonly construct: string;
|
|
178
|
+
};
|
|
179
|
+
} | {
|
|
180
|
+
readonly tag: "TooManyTables";
|
|
181
|
+
readonly value: {
|
|
182
|
+
readonly limit: bigint;
|
|
183
|
+
};
|
|
184
|
+
} | {
|
|
185
|
+
readonly tag: "TooComplex";
|
|
186
|
+
readonly value: {
|
|
187
|
+
readonly comparisons: bigint;
|
|
188
|
+
readonly nesting: bigint;
|
|
189
|
+
};
|
|
190
|
+
} | {
|
|
191
|
+
readonly tag: "UnknownTable";
|
|
192
|
+
readonly value: string;
|
|
193
|
+
} | {
|
|
194
|
+
readonly tag: "PrivateTable";
|
|
195
|
+
readonly value: string;
|
|
196
|
+
} | {
|
|
197
|
+
readonly tag: "DuplicateName";
|
|
198
|
+
readonly value: string;
|
|
199
|
+
} | {
|
|
200
|
+
readonly tag: "UnknownName";
|
|
201
|
+
readonly value: string;
|
|
202
|
+
} | {
|
|
203
|
+
readonly tag: "UnknownColumn";
|
|
204
|
+
readonly value: TableColumn;
|
|
205
|
+
} | {
|
|
206
|
+
readonly tag: "UnqualifiedInJoin";
|
|
207
|
+
readonly value: string;
|
|
208
|
+
} | {
|
|
209
|
+
readonly tag: "ColumnWithoutOrder";
|
|
210
|
+
readonly value: TableColumn;
|
|
211
|
+
} | {
|
|
212
|
+
readonly tag: "TypeMismatch";
|
|
213
|
+
readonly value: TableColumn;
|
|
214
|
+
} | {
|
|
215
|
+
readonly tag: "ComparedWithNull";
|
|
216
|
+
readonly value: TableColumn;
|
|
217
|
+
} | {
|
|
218
|
+
readonly tag: "JoinOutOfOrder";
|
|
219
|
+
readonly value: TableColumn;
|
|
220
|
+
} | {
|
|
221
|
+
readonly tag: "JoinNeedsIndex";
|
|
222
|
+
readonly value: {
|
|
223
|
+
readonly table: string;
|
|
224
|
+
readonly columns: string[];
|
|
225
|
+
};
|
|
226
|
+
} | {
|
|
227
|
+
readonly tag: "JoinAcrossKinds";
|
|
228
|
+
readonly value: {
|
|
229
|
+
readonly durable: string;
|
|
230
|
+
readonly ephemeral: string;
|
|
231
|
+
};
|
|
232
|
+
} | {
|
|
233
|
+
readonly tag: "Parameters";
|
|
234
|
+
readonly value: {
|
|
235
|
+
readonly reason: string;
|
|
236
|
+
};
|
|
237
|
+
};
|
|
238
|
+
export type SubscribeRefusal = {
|
|
239
|
+
readonly tag: "NotConnected";
|
|
240
|
+
} | {
|
|
241
|
+
readonly tag: "Refused";
|
|
242
|
+
readonly value: CallFailure;
|
|
243
|
+
} | {
|
|
244
|
+
readonly tag: "Rejected";
|
|
245
|
+
readonly value: Rejection;
|
|
246
|
+
} | {
|
|
247
|
+
readonly tag: "IdInUse";
|
|
248
|
+
} | {
|
|
249
|
+
readonly tag: "Ended";
|
|
250
|
+
};
|
|
251
|
+
export type ConnectRefusal = {
|
|
252
|
+
readonly tag: "NotAuthenticated";
|
|
253
|
+
} | {
|
|
254
|
+
readonly tag: "Unavailable";
|
|
255
|
+
readonly value: string;
|
|
256
|
+
} | {
|
|
257
|
+
readonly tag: "Refused";
|
|
258
|
+
readonly value: CallFailure;
|
|
259
|
+
} | {
|
|
260
|
+
readonly tag: "Subscription";
|
|
261
|
+
readonly value: {
|
|
262
|
+
readonly subscription: bigint;
|
|
263
|
+
readonly reason: SubscribeRefusal;
|
|
264
|
+
};
|
|
265
|
+
};
|
|
266
|
+
export type WeakPassword = {
|
|
267
|
+
readonly tag: "TooShort";
|
|
268
|
+
readonly value: {
|
|
269
|
+
readonly minimum: bigint;
|
|
270
|
+
};
|
|
271
|
+
} | {
|
|
272
|
+
readonly tag: "TooLong";
|
|
273
|
+
readonly value: {
|
|
274
|
+
readonly maximum: bigint;
|
|
275
|
+
};
|
|
276
|
+
} | {
|
|
277
|
+
readonly tag: "Common";
|
|
278
|
+
};
|
|
279
|
+
export type IdentityFailure = {
|
|
280
|
+
readonly tag: "InvalidEmail";
|
|
281
|
+
} | {
|
|
282
|
+
readonly tag: "WeakPassword";
|
|
283
|
+
readonly value: WeakPassword;
|
|
284
|
+
} | {
|
|
285
|
+
readonly tag: "IncorrectEmailOrPassword";
|
|
286
|
+
} | {
|
|
287
|
+
readonly tag: "NotAuthenticated";
|
|
288
|
+
} | {
|
|
289
|
+
readonly tag: "AlreadySignedUp";
|
|
290
|
+
} | {
|
|
291
|
+
readonly tag: "TooManyAttempts";
|
|
292
|
+
readonly value: {
|
|
293
|
+
readonly retry_after: Duration;
|
|
294
|
+
};
|
|
295
|
+
} | {
|
|
296
|
+
readonly tag: "RefusedByModule";
|
|
297
|
+
readonly value: Bytes;
|
|
298
|
+
} | {
|
|
299
|
+
readonly tag: "Unavailable";
|
|
300
|
+
readonly value: string;
|
|
301
|
+
} | {
|
|
302
|
+
readonly tag: "InvalidLink";
|
|
303
|
+
} | {
|
|
304
|
+
readonly tag: "IncorrectCode";
|
|
305
|
+
} | {
|
|
306
|
+
readonly tag: "Disabled";
|
|
307
|
+
} | {
|
|
308
|
+
readonly tag: "NotInvited";
|
|
309
|
+
} | {
|
|
310
|
+
readonly tag: "UnknownConnection";
|
|
311
|
+
} | {
|
|
312
|
+
readonly tag: "RedirectNotAllowed";
|
|
313
|
+
} | {
|
|
314
|
+
readonly tag: "InvalidResult";
|
|
315
|
+
} | {
|
|
316
|
+
readonly tag: "UnverifiedEmail";
|
|
317
|
+
} | {
|
|
318
|
+
readonly tag: "SecondFactorNeeded";
|
|
319
|
+
readonly value: {
|
|
320
|
+
readonly step: string;
|
|
321
|
+
};
|
|
322
|
+
} | {
|
|
323
|
+
readonly tag: "EnrolmentNeeded";
|
|
324
|
+
readonly value: {
|
|
325
|
+
readonly step: string;
|
|
326
|
+
};
|
|
327
|
+
} | {
|
|
328
|
+
readonly tag: "AlreadyEnrolled";
|
|
329
|
+
} | {
|
|
330
|
+
readonly tag: "UnknownRelyingParty";
|
|
331
|
+
} | {
|
|
332
|
+
readonly tag: "InvalidPasskey";
|
|
333
|
+
} | {
|
|
334
|
+
readonly tag: "UnknownPasskey";
|
|
335
|
+
} | {
|
|
336
|
+
readonly tag: "OnlyCredential";
|
|
337
|
+
} | {
|
|
338
|
+
readonly tag: "InvalidName";
|
|
339
|
+
} | {
|
|
340
|
+
readonly tag: "NotEnrolled";
|
|
341
|
+
} | {
|
|
342
|
+
readonly tag: "SecondFactorRequired";
|
|
343
|
+
} | {
|
|
344
|
+
readonly tag: "SecondFactorNotPassed";
|
|
345
|
+
} | {
|
|
346
|
+
readonly tag: "InvalidDevice";
|
|
347
|
+
readonly value: string;
|
|
348
|
+
};
|
|
349
|
+
export type Device = {
|
|
350
|
+
readonly tag: "Apns";
|
|
351
|
+
readonly value: {
|
|
352
|
+
readonly token: string;
|
|
353
|
+
readonly sandbox: boolean;
|
|
354
|
+
};
|
|
355
|
+
} | {
|
|
356
|
+
readonly tag: "Fcm";
|
|
357
|
+
readonly value: {
|
|
358
|
+
readonly token: string;
|
|
359
|
+
};
|
|
360
|
+
} | {
|
|
361
|
+
readonly tag: "WebPush";
|
|
362
|
+
readonly value: {
|
|
363
|
+
readonly endpoint: string;
|
|
364
|
+
readonly p256dh: Bytes;
|
|
365
|
+
readonly auth: Bytes;
|
|
366
|
+
};
|
|
367
|
+
};
|
|
368
|
+
export interface ListedPasskey {
|
|
369
|
+
readonly id: Bytes;
|
|
370
|
+
readonly name: string;
|
|
371
|
+
readonly relying_party: string;
|
|
372
|
+
readonly created: Timestamp;
|
|
373
|
+
}
|
|
374
|
+
export type SignInMethod = {
|
|
375
|
+
readonly tag: "Password";
|
|
376
|
+
} | {
|
|
377
|
+
readonly tag: "Email";
|
|
378
|
+
} | {
|
|
379
|
+
readonly tag: "Provider";
|
|
380
|
+
} | {
|
|
381
|
+
readonly tag: "Passkey";
|
|
382
|
+
};
|
|
383
|
+
export type RowChange = {
|
|
384
|
+
readonly tag: "Inserted";
|
|
385
|
+
} | {
|
|
386
|
+
readonly tag: "Replaced";
|
|
387
|
+
} | {
|
|
388
|
+
readonly tag: "Deleted";
|
|
389
|
+
};
|
|
390
|
+
export type AuditEvent = {
|
|
391
|
+
readonly tag: "Published";
|
|
392
|
+
readonly value: {
|
|
393
|
+
readonly version: bigint;
|
|
394
|
+
};
|
|
395
|
+
} | {
|
|
396
|
+
readonly tag: "SettingChanged";
|
|
397
|
+
readonly value: {
|
|
398
|
+
readonly name: string;
|
|
399
|
+
};
|
|
400
|
+
} | {
|
|
401
|
+
readonly tag: "Republished";
|
|
402
|
+
readonly value: {
|
|
403
|
+
readonly version: bigint;
|
|
404
|
+
readonly of: bigint;
|
|
405
|
+
};
|
|
406
|
+
} | {
|
|
407
|
+
readonly tag: "PublishCancelled";
|
|
408
|
+
} | {
|
|
409
|
+
readonly tag: "CalledAction";
|
|
410
|
+
readonly value: {
|
|
411
|
+
readonly function: string;
|
|
412
|
+
};
|
|
413
|
+
} | {
|
|
414
|
+
readonly tag: "CalledQuery";
|
|
415
|
+
readonly value: {
|
|
416
|
+
readonly function: string;
|
|
417
|
+
};
|
|
418
|
+
} | {
|
|
419
|
+
readonly tag: "SignInConnectionSet";
|
|
420
|
+
readonly value: {
|
|
421
|
+
readonly name: string;
|
|
422
|
+
};
|
|
423
|
+
} | {
|
|
424
|
+
readonly tag: "SignInConnectionRemoved";
|
|
425
|
+
readonly value: {
|
|
426
|
+
readonly name: string;
|
|
427
|
+
};
|
|
428
|
+
} | {
|
|
429
|
+
readonly tag: "RedirectTargetsSet";
|
|
430
|
+
readonly value: {
|
|
431
|
+
readonly targets: string[];
|
|
432
|
+
};
|
|
433
|
+
} | {
|
|
434
|
+
readonly tag: "SignUpModeSet";
|
|
435
|
+
readonly value: {
|
|
436
|
+
readonly invite_only: boolean;
|
|
437
|
+
};
|
|
438
|
+
} | {
|
|
439
|
+
readonly tag: "MessageTemplateSet";
|
|
440
|
+
readonly value: {
|
|
441
|
+
readonly kind: string;
|
|
442
|
+
};
|
|
443
|
+
} | {
|
|
444
|
+
readonly tag: "IdentityDisabled";
|
|
445
|
+
} | {
|
|
446
|
+
readonly tag: "IdentityEnabled";
|
|
447
|
+
} | {
|
|
448
|
+
readonly tag: "IdentityDeleted";
|
|
449
|
+
} | {
|
|
450
|
+
readonly tag: "InvitationSent";
|
|
451
|
+
readonly value: {
|
|
452
|
+
readonly email: string;
|
|
453
|
+
readonly key: string;
|
|
454
|
+
};
|
|
455
|
+
} | {
|
|
456
|
+
readonly tag: "InvitationRevoked";
|
|
457
|
+
readonly value: {
|
|
458
|
+
readonly email: string;
|
|
459
|
+
readonly key: string;
|
|
460
|
+
};
|
|
461
|
+
} | {
|
|
462
|
+
readonly tag: "ApiKeyIssued";
|
|
463
|
+
readonly value: {
|
|
464
|
+
readonly name: string;
|
|
465
|
+
};
|
|
466
|
+
} | {
|
|
467
|
+
readonly tag: "ApiKeyRevoked";
|
|
468
|
+
} | {
|
|
469
|
+
readonly tag: "SecondFactorRequirementSet";
|
|
470
|
+
readonly value: {
|
|
471
|
+
readonly required: boolean;
|
|
472
|
+
};
|
|
473
|
+
} | {
|
|
474
|
+
readonly tag: "SecondFactorReset";
|
|
475
|
+
} | {
|
|
476
|
+
readonly tag: "RowChanged";
|
|
477
|
+
readonly value: {
|
|
478
|
+
readonly table: string;
|
|
479
|
+
readonly change: RowChange;
|
|
480
|
+
readonly index: number | null;
|
|
481
|
+
readonly key: Bytes;
|
|
482
|
+
};
|
|
483
|
+
} | {
|
|
484
|
+
readonly tag: "RelyingPartiesSet";
|
|
485
|
+
readonly value: {
|
|
486
|
+
readonly domains: string[];
|
|
487
|
+
};
|
|
488
|
+
} | {
|
|
489
|
+
readonly tag: "PasskeyRemoved";
|
|
490
|
+
} | {
|
|
491
|
+
readonly tag: "EmailSenderSet";
|
|
492
|
+
readonly value: {
|
|
493
|
+
readonly address: string;
|
|
494
|
+
};
|
|
495
|
+
} | {
|
|
496
|
+
readonly tag: "EmailSenderRemoved";
|
|
497
|
+
} | {
|
|
498
|
+
readonly tag: "SignedUp";
|
|
499
|
+
} | {
|
|
500
|
+
readonly tag: "SignedIn";
|
|
501
|
+
readonly value: {
|
|
502
|
+
readonly method: SignInMethod;
|
|
503
|
+
};
|
|
504
|
+
} | {
|
|
505
|
+
readonly tag: "SignInFailed";
|
|
506
|
+
readonly value: {
|
|
507
|
+
readonly method: SignInMethod;
|
|
508
|
+
};
|
|
509
|
+
} | {
|
|
510
|
+
readonly tag: "SignedOut";
|
|
511
|
+
readonly value: {
|
|
512
|
+
readonly everywhere: boolean;
|
|
513
|
+
};
|
|
514
|
+
} | {
|
|
515
|
+
readonly tag: "PasswordReset";
|
|
516
|
+
} | {
|
|
517
|
+
readonly tag: "InvitationAccepted";
|
|
518
|
+
readonly value: {
|
|
519
|
+
readonly key: string;
|
|
520
|
+
};
|
|
521
|
+
} | {
|
|
522
|
+
readonly tag: "SecondFactorEnrolled";
|
|
523
|
+
} | {
|
|
524
|
+
readonly tag: "SecondStepPassed";
|
|
525
|
+
} | {
|
|
526
|
+
readonly tag: "SecondStepFailed";
|
|
527
|
+
} | {
|
|
528
|
+
readonly tag: "RecoveryCodeUsed";
|
|
529
|
+
} | {
|
|
530
|
+
readonly tag: "PasskeyAdded";
|
|
531
|
+
} | {
|
|
532
|
+
readonly tag: "FailedJobRerun";
|
|
533
|
+
readonly value: {
|
|
534
|
+
readonly job: Bytes;
|
|
535
|
+
};
|
|
536
|
+
} | {
|
|
537
|
+
readonly tag: "FailedJobDiscarded";
|
|
538
|
+
readonly value: {
|
|
539
|
+
readonly job: Bytes;
|
|
540
|
+
};
|
|
541
|
+
} | {
|
|
542
|
+
readonly tag: "FailedScheduleRerun";
|
|
543
|
+
readonly value: {
|
|
544
|
+
readonly function: string;
|
|
545
|
+
readonly schedule: Bytes;
|
|
546
|
+
};
|
|
547
|
+
} | {
|
|
548
|
+
readonly tag: "FailedScheduleDiscarded";
|
|
549
|
+
readonly value: {
|
|
550
|
+
readonly function: string;
|
|
551
|
+
};
|
|
552
|
+
} | {
|
|
553
|
+
readonly tag: "EmailSenderTested";
|
|
554
|
+
readonly value: {
|
|
555
|
+
readonly to: string;
|
|
556
|
+
};
|
|
557
|
+
} | {
|
|
558
|
+
readonly tag: "SecondFactorReplaced";
|
|
559
|
+
} | {
|
|
560
|
+
readonly tag: "SecondFactorRemoved";
|
|
561
|
+
} | {
|
|
562
|
+
readonly tag: "RecoveryCodesReissued";
|
|
563
|
+
} | {
|
|
564
|
+
readonly tag: "IdentityDeletionCompleted";
|
|
565
|
+
} | {
|
|
566
|
+
readonly tag: "PersonalDataExported";
|
|
567
|
+
} | {
|
|
568
|
+
readonly tag: "Removed";
|
|
569
|
+
readonly value: {
|
|
570
|
+
readonly table: string;
|
|
571
|
+
readonly column: string | null;
|
|
572
|
+
};
|
|
573
|
+
} | {
|
|
574
|
+
readonly tag: "ViewOpened";
|
|
575
|
+
readonly value: {
|
|
576
|
+
readonly at: Timestamp;
|
|
577
|
+
readonly before_publish: bigint | null;
|
|
578
|
+
};
|
|
579
|
+
} | {
|
|
580
|
+
readonly tag: "Restored";
|
|
581
|
+
readonly value: {
|
|
582
|
+
readonly restore: bigint;
|
|
583
|
+
readonly at: Timestamp;
|
|
584
|
+
readonly before_publish: bigint | null;
|
|
585
|
+
readonly before_restore: bigint | null;
|
|
586
|
+
readonly tables: readonly RestoredTable[];
|
|
587
|
+
};
|
|
588
|
+
} | {
|
|
589
|
+
readonly tag: "WholeRestored";
|
|
590
|
+
readonly value: {
|
|
591
|
+
readonly restore: bigint;
|
|
592
|
+
readonly at: Timestamp;
|
|
593
|
+
readonly before_publish: bigint | null;
|
|
594
|
+
readonly before_restore: bigint | null;
|
|
595
|
+
readonly version: bigint;
|
|
596
|
+
readonly tables: readonly RestoredTable[];
|
|
597
|
+
};
|
|
598
|
+
} | {
|
|
599
|
+
readonly tag: "SettingsSaved";
|
|
600
|
+
readonly value: {
|
|
601
|
+
readonly changes: readonly SavedSetting[];
|
|
602
|
+
};
|
|
603
|
+
} | {
|
|
604
|
+
readonly tag: "Exported";
|
|
605
|
+
readonly value: {
|
|
606
|
+
readonly position: bigint;
|
|
607
|
+
readonly rows: bigint;
|
|
608
|
+
};
|
|
609
|
+
} | {
|
|
610
|
+
readonly tag: "Imported";
|
|
611
|
+
readonly value: {
|
|
612
|
+
readonly from: string;
|
|
613
|
+
readonly position: bigint;
|
|
614
|
+
readonly version: bigint;
|
|
615
|
+
readonly rows: bigint;
|
|
616
|
+
readonly identities: bigint;
|
|
617
|
+
readonly files: bigint;
|
|
618
|
+
readonly forced: boolean;
|
|
619
|
+
};
|
|
620
|
+
} | {
|
|
621
|
+
readonly tag: "SessionsEnded";
|
|
622
|
+
} | {
|
|
623
|
+
readonly tag: "AllowedOriginsSet";
|
|
624
|
+
readonly value: {
|
|
625
|
+
readonly origins: string[];
|
|
626
|
+
};
|
|
627
|
+
} | {
|
|
628
|
+
readonly tag: "PushCredentialSet";
|
|
629
|
+
readonly value: {
|
|
630
|
+
readonly service: string;
|
|
631
|
+
};
|
|
632
|
+
} | {
|
|
633
|
+
readonly tag: "PushCredentialRemoved";
|
|
634
|
+
readonly value: {
|
|
635
|
+
readonly service: string;
|
|
636
|
+
};
|
|
637
|
+
} | {
|
|
638
|
+
readonly tag: "DirectoryConsented";
|
|
639
|
+
readonly value: {
|
|
640
|
+
readonly connection: string;
|
|
641
|
+
readonly directory: string;
|
|
642
|
+
};
|
|
643
|
+
} | {
|
|
644
|
+
readonly tag: "DirectoryWithdrawn";
|
|
645
|
+
readonly value: {
|
|
646
|
+
readonly connection: string;
|
|
647
|
+
readonly directory: string;
|
|
648
|
+
};
|
|
649
|
+
} | {
|
|
650
|
+
readonly tag: "LandingPageSet";
|
|
651
|
+
readonly value: {
|
|
652
|
+
readonly url: string | null;
|
|
653
|
+
};
|
|
654
|
+
} | {
|
|
655
|
+
readonly tag: "Unrecognised";
|
|
656
|
+
readonly value: {
|
|
657
|
+
readonly kind: string;
|
|
658
|
+
};
|
|
659
|
+
};
|
|
660
|
+
export interface SavedSetting {
|
|
661
|
+
readonly setting: string;
|
|
662
|
+
readonly key: Value | null;
|
|
663
|
+
readonly path: string;
|
|
664
|
+
readonly before: Value | null;
|
|
665
|
+
readonly after: Value | null;
|
|
666
|
+
}
|
|
667
|
+
export type Value = {
|
|
668
|
+
readonly tag: "Unit";
|
|
669
|
+
} | {
|
|
670
|
+
readonly tag: "Bool";
|
|
671
|
+
readonly value: boolean;
|
|
672
|
+
} | {
|
|
673
|
+
readonly tag: "I8" | "I16" | "I32" | "U8" | "U16" | "U32" | "F32" | "F64";
|
|
674
|
+
readonly value: number;
|
|
675
|
+
} | {
|
|
676
|
+
readonly tag: "I64" | "U64" | "Timestamp" | "Duration";
|
|
677
|
+
readonly value: bigint;
|
|
678
|
+
} | {
|
|
679
|
+
readonly tag: "String";
|
|
680
|
+
readonly value: string;
|
|
681
|
+
} | {
|
|
682
|
+
readonly tag: "Bytes";
|
|
683
|
+
readonly value: Bytes;
|
|
684
|
+
} | {
|
|
685
|
+
readonly tag: "Identity";
|
|
686
|
+
readonly value: Identity;
|
|
687
|
+
} | {
|
|
688
|
+
readonly tag: "ConnectionId";
|
|
689
|
+
readonly value: ConnectionId;
|
|
690
|
+
} | {
|
|
691
|
+
readonly tag: "Option";
|
|
692
|
+
readonly value: Value | null;
|
|
693
|
+
} | {
|
|
694
|
+
readonly tag: "List" | "Struct";
|
|
695
|
+
readonly value: readonly Value[];
|
|
696
|
+
} | {
|
|
697
|
+
readonly tag: "Enum";
|
|
698
|
+
readonly value: {
|
|
699
|
+
readonly variant: number;
|
|
700
|
+
readonly fields: readonly Value[];
|
|
701
|
+
};
|
|
702
|
+
} | {
|
|
703
|
+
readonly tag: "File";
|
|
704
|
+
readonly value: FileHandle;
|
|
705
|
+
};
|
|
706
|
+
export interface RestoredTable {
|
|
707
|
+
readonly table: string;
|
|
708
|
+
readonly columns: readonly string[] | null;
|
|
709
|
+
readonly put_back: bigint;
|
|
710
|
+
readonly overwritten: bigint;
|
|
711
|
+
readonly removed: bigint;
|
|
712
|
+
}
|
|
713
|
+
export interface Activity {
|
|
714
|
+
readonly at: Timestamp;
|
|
715
|
+
readonly by_administrator: boolean;
|
|
716
|
+
readonly address: string | null;
|
|
717
|
+
readonly event: AuditEvent;
|
|
718
|
+
}
|
|
719
|
+
export interface ActivityPage {
|
|
720
|
+
readonly entries: Activity[];
|
|
721
|
+
readonly next: bigint | null;
|
|
722
|
+
}
|
|
723
|
+
export type CallOutcome = {
|
|
724
|
+
readonly tag: "Returned";
|
|
725
|
+
readonly value: {
|
|
726
|
+
readonly value: Bytes;
|
|
727
|
+
readonly position: bigint | null;
|
|
728
|
+
readonly ephemeral: bigint | null;
|
|
729
|
+
};
|
|
730
|
+
} | {
|
|
731
|
+
readonly tag: "Failed";
|
|
732
|
+
readonly value: CallFailure;
|
|
733
|
+
};
|
|
734
|
+
export type Delivered = {
|
|
735
|
+
readonly tag: "Reply";
|
|
736
|
+
readonly value: Bytes;
|
|
737
|
+
} | {
|
|
738
|
+
readonly tag: "Snapshot";
|
|
739
|
+
readonly value: Bytes[];
|
|
740
|
+
} | {
|
|
741
|
+
readonly tag: "Rows";
|
|
742
|
+
readonly value: {
|
|
743
|
+
readonly removed: Bytes[];
|
|
744
|
+
readonly added: Bytes[];
|
|
745
|
+
};
|
|
746
|
+
} | {
|
|
747
|
+
readonly tag: "Failed";
|
|
748
|
+
readonly value: CallFailure;
|
|
749
|
+
};
|
|
750
|
+
export interface Change {
|
|
751
|
+
readonly subscription: bigint;
|
|
752
|
+
readonly delivered: Delivered;
|
|
753
|
+
}
|
|
754
|
+
export interface Awaiting {
|
|
755
|
+
readonly call: bigint;
|
|
756
|
+
readonly subscriptions: bigint[];
|
|
757
|
+
}
|
|
758
|
+
export type IdentityOutcome = {
|
|
759
|
+
readonly tag: "SignedIn";
|
|
760
|
+
readonly value: {
|
|
761
|
+
readonly caller: Caller;
|
|
762
|
+
readonly token: string;
|
|
763
|
+
};
|
|
764
|
+
} | {
|
|
765
|
+
readonly tag: "Done";
|
|
766
|
+
} | {
|
|
767
|
+
readonly tag: "Refused";
|
|
768
|
+
readonly value: IdentityFailure;
|
|
769
|
+
} | {
|
|
770
|
+
readonly tag: "SignedUp";
|
|
771
|
+
readonly value: {
|
|
772
|
+
readonly pending: string;
|
|
773
|
+
};
|
|
774
|
+
} | {
|
|
775
|
+
readonly tag: "ProviderSignInStarted";
|
|
776
|
+
readonly value: {
|
|
777
|
+
readonly url: string;
|
|
778
|
+
readonly binding: string;
|
|
779
|
+
};
|
|
780
|
+
} | {
|
|
781
|
+
readonly tag: "EnrolmentStarted";
|
|
782
|
+
readonly value: {
|
|
783
|
+
readonly secret: string;
|
|
784
|
+
};
|
|
785
|
+
} | {
|
|
786
|
+
readonly tag: "Enrolled";
|
|
787
|
+
readonly value: {
|
|
788
|
+
readonly caller: Caller;
|
|
789
|
+
readonly token: string;
|
|
790
|
+
readonly recovery_codes: string[];
|
|
791
|
+
};
|
|
792
|
+
} | {
|
|
793
|
+
readonly tag: "PasskeyCeremonyStarted";
|
|
794
|
+
readonly value: {
|
|
795
|
+
readonly ceremony: string;
|
|
796
|
+
readonly options: string;
|
|
797
|
+
};
|
|
798
|
+
} | {
|
|
799
|
+
readonly tag: "PasskeysListed";
|
|
800
|
+
readonly value: {
|
|
801
|
+
readonly passkeys: ListedPasskey[];
|
|
802
|
+
};
|
|
803
|
+
} | {
|
|
804
|
+
readonly tag: "RecoveryCodesReissued";
|
|
805
|
+
readonly value: {
|
|
806
|
+
readonly recovery_codes: string[];
|
|
807
|
+
};
|
|
808
|
+
} | {
|
|
809
|
+
readonly tag: "AccountActivityRead";
|
|
810
|
+
readonly value: ActivityPage;
|
|
811
|
+
} | {
|
|
812
|
+
readonly tag: "DeviceRegistered";
|
|
813
|
+
readonly value: {
|
|
814
|
+
readonly device: Bytes;
|
|
815
|
+
};
|
|
816
|
+
} | {
|
|
817
|
+
readonly tag: "DirectoryConsented";
|
|
818
|
+
readonly value: {
|
|
819
|
+
readonly directory: string;
|
|
820
|
+
};
|
|
821
|
+
} | {
|
|
822
|
+
readonly tag: "SessionCodeIssued";
|
|
823
|
+
readonly value: {
|
|
824
|
+
readonly code: string;
|
|
825
|
+
};
|
|
826
|
+
} | {
|
|
827
|
+
readonly tag: "SessionCodeRedeemed";
|
|
828
|
+
readonly value: {
|
|
829
|
+
readonly caller: Caller;
|
|
830
|
+
readonly token: string;
|
|
831
|
+
readonly email: string | null;
|
|
832
|
+
};
|
|
833
|
+
};
|
|
834
|
+
export type WireSubscription = {
|
|
835
|
+
readonly tag: "Query";
|
|
836
|
+
readonly value: {
|
|
837
|
+
readonly name: string;
|
|
838
|
+
readonly arguments: Bytes;
|
|
839
|
+
};
|
|
840
|
+
} | {
|
|
841
|
+
readonly tag: "ClientQuery";
|
|
842
|
+
readonly value: {
|
|
843
|
+
readonly sql: string;
|
|
844
|
+
readonly parameters: Bytes;
|
|
845
|
+
};
|
|
846
|
+
};
|
|
847
|
+
export interface Held {
|
|
848
|
+
readonly subscription: bigint;
|
|
849
|
+
readonly to: WireSubscription;
|
|
850
|
+
}
|
|
851
|
+
export interface Resume {
|
|
852
|
+
readonly connection: ConnectionId;
|
|
853
|
+
readonly position: bigint | null;
|
|
854
|
+
readonly ephemeral: bigint | null;
|
|
855
|
+
readonly subscriptions: Held[];
|
|
856
|
+
}
|
|
857
|
+
export type Enrolling = {
|
|
858
|
+
readonly tag: "SignedIn";
|
|
859
|
+
readonly value: {
|
|
860
|
+
readonly token: string;
|
|
861
|
+
};
|
|
862
|
+
} | {
|
|
863
|
+
readonly tag: "Required";
|
|
864
|
+
readonly value: {
|
|
865
|
+
readonly step: string;
|
|
866
|
+
};
|
|
867
|
+
};
|
|
868
|
+
export type IdentityOperation = {
|
|
869
|
+
readonly tag: "StartAnonymous";
|
|
870
|
+
} | {
|
|
871
|
+
readonly tag: "SignUp";
|
|
872
|
+
readonly value: {
|
|
873
|
+
readonly email: string;
|
|
874
|
+
readonly password: string;
|
|
875
|
+
readonly anonymous: string | null;
|
|
876
|
+
};
|
|
877
|
+
} | {
|
|
878
|
+
readonly tag: "SignIn";
|
|
879
|
+
readonly value: {
|
|
880
|
+
readonly email: string;
|
|
881
|
+
readonly password: string;
|
|
882
|
+
};
|
|
883
|
+
} | {
|
|
884
|
+
readonly tag: "SignOut";
|
|
885
|
+
readonly value: {
|
|
886
|
+
readonly token: string;
|
|
887
|
+
};
|
|
888
|
+
} | {
|
|
889
|
+
readonly tag: "SignOutEverywhere";
|
|
890
|
+
readonly value: {
|
|
891
|
+
readonly token: string;
|
|
892
|
+
};
|
|
893
|
+
} | {
|
|
894
|
+
readonly tag: "VerifyEmail";
|
|
895
|
+
readonly value: {
|
|
896
|
+
readonly emailed: string;
|
|
897
|
+
readonly pending: string | null;
|
|
898
|
+
};
|
|
899
|
+
} | {
|
|
900
|
+
readonly tag: "RequestSignInLink";
|
|
901
|
+
readonly value: {
|
|
902
|
+
readonly email: string;
|
|
903
|
+
readonly anonymous: string | null;
|
|
904
|
+
readonly redirect_to: string | null;
|
|
905
|
+
};
|
|
906
|
+
} | {
|
|
907
|
+
readonly tag: "SignInWithLink";
|
|
908
|
+
readonly value: {
|
|
909
|
+
readonly emailed: string;
|
|
910
|
+
};
|
|
911
|
+
} | {
|
|
912
|
+
readonly tag: "RequestSignInCode";
|
|
913
|
+
readonly value: {
|
|
914
|
+
readonly email: string;
|
|
915
|
+
readonly anonymous: string | null;
|
|
916
|
+
};
|
|
917
|
+
} | {
|
|
918
|
+
readonly tag: "SignInWithCode";
|
|
919
|
+
readonly value: {
|
|
920
|
+
readonly email: string;
|
|
921
|
+
readonly code: string;
|
|
922
|
+
};
|
|
923
|
+
} | {
|
|
924
|
+
readonly tag: "RequestPasswordReset";
|
|
925
|
+
readonly value: {
|
|
926
|
+
readonly email: string;
|
|
927
|
+
};
|
|
928
|
+
} | {
|
|
929
|
+
readonly tag: "ResetPassword";
|
|
930
|
+
readonly value: {
|
|
931
|
+
readonly emailed: string;
|
|
932
|
+
readonly password: string;
|
|
933
|
+
};
|
|
934
|
+
} | {
|
|
935
|
+
readonly tag: "AcceptInvitation";
|
|
936
|
+
readonly value: {
|
|
937
|
+
readonly emailed: string;
|
|
938
|
+
readonly anonymous: string | null;
|
|
939
|
+
};
|
|
940
|
+
} | {
|
|
941
|
+
readonly tag: "StartProviderSignIn";
|
|
942
|
+
readonly value: {
|
|
943
|
+
readonly connection: string;
|
|
944
|
+
readonly redirect_to: string;
|
|
945
|
+
};
|
|
946
|
+
} | {
|
|
947
|
+
readonly tag: "FinishProviderSignIn";
|
|
948
|
+
readonly value: {
|
|
949
|
+
readonly result: string;
|
|
950
|
+
readonly binding: string;
|
|
951
|
+
readonly anonymous: string | null;
|
|
952
|
+
};
|
|
953
|
+
} | {
|
|
954
|
+
readonly tag: "PassSecondStep";
|
|
955
|
+
readonly value: {
|
|
956
|
+
readonly step: string;
|
|
957
|
+
readonly code: string;
|
|
958
|
+
};
|
|
959
|
+
} | {
|
|
960
|
+
readonly tag: "StartEnrolment";
|
|
961
|
+
readonly value: {
|
|
962
|
+
readonly by: Enrolling;
|
|
963
|
+
};
|
|
964
|
+
} | {
|
|
965
|
+
readonly tag: "FinishEnrolment";
|
|
966
|
+
readonly value: {
|
|
967
|
+
readonly by: Enrolling;
|
|
968
|
+
readonly code: string;
|
|
969
|
+
};
|
|
970
|
+
} | {
|
|
971
|
+
readonly tag: "StartPasskeyRegistration";
|
|
972
|
+
readonly value: {
|
|
973
|
+
readonly session: string | null;
|
|
974
|
+
readonly relying_party: string;
|
|
975
|
+
readonly account: string;
|
|
976
|
+
readonly name: string;
|
|
977
|
+
};
|
|
978
|
+
} | {
|
|
979
|
+
readonly tag: "FinishPasskeyRegistration";
|
|
980
|
+
readonly value: {
|
|
981
|
+
readonly ceremony: string;
|
|
982
|
+
readonly response: string;
|
|
983
|
+
};
|
|
984
|
+
} | {
|
|
985
|
+
readonly tag: "StartPasskeySignIn";
|
|
986
|
+
readonly value: {
|
|
987
|
+
readonly relying_party: string;
|
|
988
|
+
};
|
|
989
|
+
} | {
|
|
990
|
+
readonly tag: "FinishPasskeySignIn";
|
|
991
|
+
readonly value: {
|
|
992
|
+
readonly ceremony: string;
|
|
993
|
+
readonly response: string;
|
|
994
|
+
};
|
|
995
|
+
} | {
|
|
996
|
+
readonly tag: "Passkeys";
|
|
997
|
+
readonly value: {
|
|
998
|
+
readonly token: string;
|
|
999
|
+
};
|
|
1000
|
+
} | {
|
|
1001
|
+
readonly tag: "RenamePasskey";
|
|
1002
|
+
readonly value: {
|
|
1003
|
+
readonly token: string;
|
|
1004
|
+
readonly id: Bytes;
|
|
1005
|
+
readonly name: string;
|
|
1006
|
+
};
|
|
1007
|
+
} | {
|
|
1008
|
+
readonly tag: "RemovePasskey";
|
|
1009
|
+
readonly value: {
|
|
1010
|
+
readonly token: string;
|
|
1011
|
+
readonly id: Bytes;
|
|
1012
|
+
};
|
|
1013
|
+
} | {
|
|
1014
|
+
readonly tag: "StartReplacement";
|
|
1015
|
+
readonly value: {
|
|
1016
|
+
readonly token: string;
|
|
1017
|
+
};
|
|
1018
|
+
} | {
|
|
1019
|
+
readonly tag: "FinishReplacement";
|
|
1020
|
+
readonly value: {
|
|
1021
|
+
readonly token: string;
|
|
1022
|
+
readonly code: string;
|
|
1023
|
+
readonly new_code: string;
|
|
1024
|
+
};
|
|
1025
|
+
} | {
|
|
1026
|
+
readonly tag: "RemoveSecondFactor";
|
|
1027
|
+
readonly value: {
|
|
1028
|
+
readonly token: string;
|
|
1029
|
+
readonly code: string;
|
|
1030
|
+
};
|
|
1031
|
+
} | {
|
|
1032
|
+
readonly tag: "ReissueRecoveryCodes";
|
|
1033
|
+
readonly value: {
|
|
1034
|
+
readonly token: string;
|
|
1035
|
+
};
|
|
1036
|
+
} | {
|
|
1037
|
+
readonly tag: "AccountActivity";
|
|
1038
|
+
readonly value: {
|
|
1039
|
+
readonly token: string;
|
|
1040
|
+
readonly after: bigint | null;
|
|
1041
|
+
readonly limit: number;
|
|
1042
|
+
};
|
|
1043
|
+
} | {
|
|
1044
|
+
readonly tag: "RegisterDevice";
|
|
1045
|
+
readonly value: {
|
|
1046
|
+
readonly token: string;
|
|
1047
|
+
readonly device: Device;
|
|
1048
|
+
};
|
|
1049
|
+
} | {
|
|
1050
|
+
readonly tag: "UnregisterDevice";
|
|
1051
|
+
readonly value: {
|
|
1052
|
+
readonly token: string;
|
|
1053
|
+
};
|
|
1054
|
+
} | {
|
|
1055
|
+
readonly tag: "StartDirectoryConsent";
|
|
1056
|
+
readonly value: {
|
|
1057
|
+
readonly connection: string;
|
|
1058
|
+
readonly redirect_to: string;
|
|
1059
|
+
};
|
|
1060
|
+
} | {
|
|
1061
|
+
readonly tag: "FinishDirectoryConsent";
|
|
1062
|
+
readonly value: {
|
|
1063
|
+
readonly result: string;
|
|
1064
|
+
readonly binding: string;
|
|
1065
|
+
};
|
|
1066
|
+
} | {
|
|
1067
|
+
readonly tag: "IssueSessionCode";
|
|
1068
|
+
readonly value: {
|
|
1069
|
+
readonly token: string;
|
|
1070
|
+
readonly binding_hash: string;
|
|
1071
|
+
};
|
|
1072
|
+
} | {
|
|
1073
|
+
readonly tag: "RedeemSessionCode";
|
|
1074
|
+
readonly value: {
|
|
1075
|
+
readonly code: string;
|
|
1076
|
+
readonly binding: string;
|
|
1077
|
+
};
|
|
1078
|
+
};
|
|
1079
|
+
export type ClientMessage = {
|
|
1080
|
+
readonly tag: "Hello";
|
|
1081
|
+
readonly value: {
|
|
1082
|
+
readonly protocol: number;
|
|
1083
|
+
};
|
|
1084
|
+
} | {
|
|
1085
|
+
readonly tag: "Connect";
|
|
1086
|
+
readonly value: {
|
|
1087
|
+
readonly token: string;
|
|
1088
|
+
readonly resume: Resume | null;
|
|
1089
|
+
};
|
|
1090
|
+
} | {
|
|
1091
|
+
readonly tag: "Action";
|
|
1092
|
+
readonly value: {
|
|
1093
|
+
readonly call: bigint;
|
|
1094
|
+
readonly name: string;
|
|
1095
|
+
readonly arguments: Bytes;
|
|
1096
|
+
};
|
|
1097
|
+
} | {
|
|
1098
|
+
readonly tag: "Query";
|
|
1099
|
+
readonly value: {
|
|
1100
|
+
readonly request: bigint;
|
|
1101
|
+
readonly name: string;
|
|
1102
|
+
readonly arguments: Bytes;
|
|
1103
|
+
};
|
|
1104
|
+
} | {
|
|
1105
|
+
readonly tag: "Subscribe";
|
|
1106
|
+
readonly value: {
|
|
1107
|
+
readonly subscription: bigint;
|
|
1108
|
+
readonly to: WireSubscription;
|
|
1109
|
+
};
|
|
1110
|
+
} | {
|
|
1111
|
+
readonly tag: "Unsubscribe";
|
|
1112
|
+
readonly value: {
|
|
1113
|
+
readonly subscription: bigint;
|
|
1114
|
+
};
|
|
1115
|
+
} | {
|
|
1116
|
+
readonly tag: "Close";
|
|
1117
|
+
} | {
|
|
1118
|
+
readonly tag: "Identity";
|
|
1119
|
+
readonly value: {
|
|
1120
|
+
readonly request: bigint;
|
|
1121
|
+
readonly operation: IdentityOperation;
|
|
1122
|
+
};
|
|
1123
|
+
};
|
|
1124
|
+
export type ServerMessage = {
|
|
1125
|
+
readonly tag: "Welcome";
|
|
1126
|
+
readonly value: {
|
|
1127
|
+
readonly protocol: number;
|
|
1128
|
+
readonly heartbeat: Duration;
|
|
1129
|
+
};
|
|
1130
|
+
} | {
|
|
1131
|
+
readonly tag: "UnsupportedProtocol";
|
|
1132
|
+
readonly value: {
|
|
1133
|
+
readonly supported: number[];
|
|
1134
|
+
};
|
|
1135
|
+
} | {
|
|
1136
|
+
readonly tag: "Connected";
|
|
1137
|
+
readonly value: {
|
|
1138
|
+
readonly connection: ConnectionId;
|
|
1139
|
+
readonly caller: Caller;
|
|
1140
|
+
};
|
|
1141
|
+
} | {
|
|
1142
|
+
readonly tag: "ConnectRefused";
|
|
1143
|
+
readonly value: {
|
|
1144
|
+
readonly reason: ConnectRefusal;
|
|
1145
|
+
};
|
|
1146
|
+
} | {
|
|
1147
|
+
readonly tag: "Unauthenticated";
|
|
1148
|
+
} | {
|
|
1149
|
+
readonly tag: "ActionReply";
|
|
1150
|
+
readonly value: {
|
|
1151
|
+
readonly call: bigint;
|
|
1152
|
+
readonly outcome: CallOutcome;
|
|
1153
|
+
};
|
|
1154
|
+
} | {
|
|
1155
|
+
readonly tag: "QueryReply";
|
|
1156
|
+
readonly value: {
|
|
1157
|
+
readonly request: bigint;
|
|
1158
|
+
readonly outcome: CallOutcome;
|
|
1159
|
+
};
|
|
1160
|
+
} | {
|
|
1161
|
+
readonly tag: "SubscribeRefused";
|
|
1162
|
+
readonly value: {
|
|
1163
|
+
readonly subscription: bigint;
|
|
1164
|
+
readonly reason: SubscribeRefusal;
|
|
1165
|
+
};
|
|
1166
|
+
} | {
|
|
1167
|
+
readonly tag: "Unsubscribed";
|
|
1168
|
+
readonly value: {
|
|
1169
|
+
readonly subscription: bigint;
|
|
1170
|
+
};
|
|
1171
|
+
} | {
|
|
1172
|
+
readonly tag: "Update";
|
|
1173
|
+
readonly value: {
|
|
1174
|
+
readonly position: bigint;
|
|
1175
|
+
readonly ephemeral: bigint;
|
|
1176
|
+
readonly caused_by: bigint[];
|
|
1177
|
+
readonly awaiting: Awaiting[];
|
|
1178
|
+
readonly changes: Change[];
|
|
1179
|
+
};
|
|
1180
|
+
} | {
|
|
1181
|
+
readonly tag: "Ended";
|
|
1182
|
+
readonly value: {
|
|
1183
|
+
readonly resume_from: bigint;
|
|
1184
|
+
readonly ephemeral: bigint;
|
|
1185
|
+
};
|
|
1186
|
+
} | {
|
|
1187
|
+
readonly tag: "IdentityReply";
|
|
1188
|
+
readonly value: {
|
|
1189
|
+
readonly request: bigint;
|
|
1190
|
+
readonly outcome: IdentityOutcome;
|
|
1191
|
+
};
|
|
1192
|
+
} | {
|
|
1193
|
+
readonly tag: "Heartbeat";
|
|
1194
|
+
};
|
|
1195
|
+
export declare const auditEvent: Codec<AuditEvent>;
|
|
1196
|
+
export declare const clientMessage: Codec<ClientMessage>;
|
|
1197
|
+
export declare const serverMessage: Codec<ServerMessage>;
|
|
1198
|
+
export {};
|