@nexys/zk-store 0.0.0-stage → 0.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.
@@ -0,0 +1,2162 @@
1
+ /**
2
+ * Generated from packages/backend-rs/openapi.json by gen-api.ts; do not edit.
3
+ */
4
+ export interface paths {
5
+ "/auth/authenticate": {
6
+ parameters: {
7
+ query?: never;
8
+ header?: never;
9
+ path?: never;
10
+ cookie?: never;
11
+ };
12
+ get?: never;
13
+ put?: never;
14
+ /**
15
+ * Finishes a passkey sign-in and returns a credential token and the
16
+ * device's wrapped `userKey`.
17
+ */
18
+ post: operations["authenticate"];
19
+ delete?: never;
20
+ options?: never;
21
+ head?: never;
22
+ patch?: never;
23
+ trace?: never;
24
+ };
25
+ "/auth/authenticate/options": {
26
+ parameters: {
27
+ query?: never;
28
+ header?: never;
29
+ path?: never;
30
+ cookie?: never;
31
+ };
32
+ get?: never;
33
+ put?: never;
34
+ /** Starts a passkey sign-in. */
35
+ post: operations["authenticateOptions"];
36
+ delete?: never;
37
+ options?: never;
38
+ head?: never;
39
+ patch?: never;
40
+ trace?: never;
41
+ };
42
+ "/auth/credential/{id}": {
43
+ parameters: {
44
+ query?: never;
45
+ header?: never;
46
+ path?: never;
47
+ cookie?: never;
48
+ };
49
+ get?: never;
50
+ put?: never;
51
+ post?: never;
52
+ /** Revokes a passkey, with the token of the vault it is bound to. */
53
+ delete: operations["revokeCredential"];
54
+ options?: never;
55
+ head?: never;
56
+ patch?: never;
57
+ trace?: never;
58
+ };
59
+ "/auth/credential/{id}/wrapped-key": {
60
+ parameters: {
61
+ query?: never;
62
+ header?: never;
63
+ path?: never;
64
+ cookie?: never;
65
+ };
66
+ get?: never;
67
+ /**
68
+ * Stores the device's wrapped `userKey`. Only a token issued for this very
69
+ * credential may replace it, so nobody else can lock the device out.
70
+ */
71
+ put: operations["updateWrappedKey"];
72
+ post?: never;
73
+ delete?: never;
74
+ options?: never;
75
+ head?: never;
76
+ patch?: never;
77
+ trace?: never;
78
+ };
79
+ "/auth/register": {
80
+ parameters: {
81
+ query?: never;
82
+ header?: never;
83
+ path?: never;
84
+ cookie?: never;
85
+ };
86
+ get?: never;
87
+ put?: never;
88
+ /** Finishes a passkey registration and returns a credential token. */
89
+ post: operations["register"];
90
+ delete?: never;
91
+ options?: never;
92
+ head?: never;
93
+ patch?: never;
94
+ trace?: never;
95
+ };
96
+ "/auth/register/options": {
97
+ parameters: {
98
+ query?: never;
99
+ header?: never;
100
+ path?: never;
101
+ cookie?: never;
102
+ };
103
+ get?: never;
104
+ put?: never;
105
+ /** Starts a passkey registration. */
106
+ post: operations["registerOptions"];
107
+ delete?: never;
108
+ options?: never;
109
+ head?: never;
110
+ patch?: never;
111
+ trace?: never;
112
+ };
113
+ "/blob/{id}": {
114
+ parameters: {
115
+ query?: never;
116
+ header?: never;
117
+ path?: never;
118
+ cookie?: never;
119
+ };
120
+ /** Reads one of the vault's blobs. */
121
+ get: operations["getBlob"];
122
+ /**
123
+ * Writes one of the vault's blobs. Send `If-None-Match: *` to create only,
124
+ * or `If-Match: <etag>` to replace only the version you read.
125
+ */
126
+ put: operations["putBlob"];
127
+ post?: never;
128
+ /** Deletes one of the vault's blobs; also accepts `If-Match`. */
129
+ delete: operations["deleteBlob"];
130
+ options?: never;
131
+ head?: never;
132
+ patch?: never;
133
+ trace?: never;
134
+ };
135
+ "/checkout": {
136
+ parameters: {
137
+ query?: never;
138
+ header?: never;
139
+ path?: never;
140
+ cookie?: never;
141
+ };
142
+ get?: never;
143
+ put?: never;
144
+ /**
145
+ * Starts a Stripe checkout for the signed-in vault. Any request body is
146
+ * ignored; the vault comes from the token.
147
+ */
148
+ post: operations["createCheckout"];
149
+ delete?: never;
150
+ options?: never;
151
+ head?: never;
152
+ patch?: never;
153
+ trace?: never;
154
+ };
155
+ "/health": {
156
+ parameters: {
157
+ query?: never;
158
+ header?: never;
159
+ path?: never;
160
+ cookie?: never;
161
+ };
162
+ /** Liveness and build info. */
163
+ get: operations["health"];
164
+ put?: never;
165
+ post?: never;
166
+ delete?: never;
167
+ options?: never;
168
+ head?: never;
169
+ patch?: never;
170
+ trace?: never;
171
+ };
172
+ "/invite": {
173
+ parameters: {
174
+ query?: never;
175
+ header?: never;
176
+ path?: never;
177
+ cookie?: never;
178
+ };
179
+ get?: never;
180
+ put?: never;
181
+ /**
182
+ * Creates a 5-minute invite that lets another device join this vault.
183
+ * Only a signed-in vault may create invites, so the endpoint can't be used
184
+ * as anonymous scratch storage.
185
+ */
186
+ post: operations["createInvite"];
187
+ delete?: never;
188
+ options?: never;
189
+ head?: never;
190
+ patch?: never;
191
+ trace?: never;
192
+ };
193
+ "/invite/{id}": {
194
+ parameters: {
195
+ query?: never;
196
+ header?: never;
197
+ path?: never;
198
+ cookie?: never;
199
+ };
200
+ /**
201
+ * Fetches an invite on the joining device. Also the polling fallback for
202
+ * builds without Server-Sent Events.
203
+ */
204
+ get: operations["getInvite"];
205
+ put?: never;
206
+ post?: never;
207
+ /** Cancels an invite; listeners get a `cancelled` event. */
208
+ delete: operations["deleteInvite"];
209
+ options?: never;
210
+ head?: never;
211
+ patch?: never;
212
+ trace?: never;
213
+ };
214
+ "/invite/{id}/claim": {
215
+ parameters: {
216
+ query?: never;
217
+ header?: never;
218
+ path?: never;
219
+ cookie?: never;
220
+ };
221
+ get?: never;
222
+ put?: never;
223
+ /** Marks an invite as used; the inviting device gets a `claimed` event. */
224
+ post: operations["claimInvite"];
225
+ delete?: never;
226
+ options?: never;
227
+ head?: never;
228
+ patch?: never;
229
+ trace?: never;
230
+ };
231
+ "/invite/{id}/events": {
232
+ parameters: {
233
+ query?: never;
234
+ header?: never;
235
+ path?: never;
236
+ cookie?: never;
237
+ };
238
+ /**
239
+ * Server-Sent Events for an invite: `connected`, then one of `claimed`,
240
+ * `cancelled` or `expired`, each with `InviteEventData` as JSON `data`.
241
+ */
242
+ get: operations["inviteEvents"];
243
+ put?: never;
244
+ post?: never;
245
+ delete?: never;
246
+ options?: never;
247
+ head?: never;
248
+ patch?: never;
249
+ trace?: never;
250
+ };
251
+ "/recovery/{id}": {
252
+ parameters: {
253
+ query?: never;
254
+ header?: never;
255
+ path?: never;
256
+ cookie?: never;
257
+ };
258
+ /**
259
+ * Reads a recovery blob: `userKey` wrapped with the phrase-derived key.
260
+ * Public, since recovery happens before sign-in.
261
+ */
262
+ get: operations["getRecovery"];
263
+ /** Stores the vault's recovery blob under its phrase-derived id. */
264
+ put: operations["putRecovery"];
265
+ post?: never;
266
+ /** Deletes the vault's recovery blob, e.g. after replacing the phrase. */
267
+ delete: operations["deleteRecovery"];
268
+ options?: never;
269
+ head?: never;
270
+ patch?: never;
271
+ trace?: never;
272
+ };
273
+ "/share": {
274
+ parameters: {
275
+ query?: never;
276
+ header?: never;
277
+ path?: never;
278
+ cookie?: never;
279
+ };
280
+ get?: never;
281
+ put?: never;
282
+ /** The signed-in vault shares files and gets a share id. */
283
+ post: operations["createShare"];
284
+ delete?: never;
285
+ options?: never;
286
+ head?: never;
287
+ patch?: never;
288
+ trace?: never;
289
+ };
290
+ "/share/{id}": {
291
+ parameters: {
292
+ query?: never;
293
+ header?: never;
294
+ path?: never;
295
+ cookie?: never;
296
+ };
297
+ /**
298
+ * The share as the caller may see it. The owner gets the full member list;
299
+ * a member gets the manifest and only its own entry.
300
+ */
301
+ get: operations["getShare"];
302
+ /**
303
+ * The owner replaces what the share contains, e.g. after adding a file to
304
+ * a shared folder. Removed files stop being readable.
305
+ */
306
+ put: operations["updateShare"];
307
+ post?: never;
308
+ /** The owner stops sharing; every member loses access. */
309
+ delete: operations["deleteShare"];
310
+ options?: never;
311
+ head?: never;
312
+ patch?: never;
313
+ trace?: never;
314
+ };
315
+ "/share/{id}/blob/{blob}": {
316
+ parameters: {
317
+ query?: never;
318
+ header?: never;
319
+ path?: never;
320
+ cookie?: never;
321
+ };
322
+ /**
323
+ * A shared file's ciphertext, for the owner or a current member, and only
324
+ * for blobs the share lists.
325
+ */
326
+ get: operations["getSharedBlob"];
327
+ put?: never;
328
+ post?: never;
329
+ delete?: never;
330
+ options?: never;
331
+ head?: never;
332
+ patch?: never;
333
+ trace?: never;
334
+ };
335
+ "/share/{id}/join": {
336
+ parameters: {
337
+ query?: never;
338
+ header?: never;
339
+ path?: never;
340
+ cookie?: never;
341
+ };
342
+ get?: never;
343
+ put?: never;
344
+ /**
345
+ * A vault holding the link joins the share. Joining again only updates the
346
+ * name.
347
+ */
348
+ post: operations["joinShare"];
349
+ delete?: never;
350
+ options?: never;
351
+ head?: never;
352
+ patch?: never;
353
+ trace?: never;
354
+ };
355
+ "/share/{id}/link": {
356
+ parameters: {
357
+ query?: never;
358
+ header?: never;
359
+ path?: never;
360
+ cookie?: never;
361
+ };
362
+ /**
363
+ * What a link holder needs to preview a share and decide to join. Needs the
364
+ * link proof in `X-Share-Proof`, so a turned-off or reset link shows
365
+ * nothing. No vault token needed.
366
+ */
367
+ get: operations["getShareLink"];
368
+ /**
369
+ * The owner replaces the link. The old link stops working; members who
370
+ * already joined keep access.
371
+ */
372
+ put: operations["resetShareLink"];
373
+ post?: never;
374
+ /**
375
+ * The owner turns the link off. Nobody new can join; members who already
376
+ * joined keep access.
377
+ */
378
+ delete: operations["disableShareLink"];
379
+ options?: never;
380
+ head?: never;
381
+ patch?: never;
382
+ trace?: never;
383
+ };
384
+ "/share/{id}/members/{member}": {
385
+ parameters: {
386
+ query?: never;
387
+ header?: never;
388
+ path?: never;
389
+ cookie?: never;
390
+ };
391
+ get?: never;
392
+ put?: never;
393
+ post?: never;
394
+ /** The owner removes someone, or a member leaves. */
395
+ delete: operations["removeShareMember"];
396
+ options?: never;
397
+ head?: never;
398
+ patch?: never;
399
+ trace?: never;
400
+ };
401
+ "/subscription": {
402
+ parameters: {
403
+ query?: never;
404
+ header?: never;
405
+ path?: never;
406
+ cookie?: never;
407
+ };
408
+ /** The signed-in vault's subscription. */
409
+ get: operations["getSubscription"];
410
+ put?: never;
411
+ post?: never;
412
+ delete?: never;
413
+ options?: never;
414
+ head?: never;
415
+ patch?: never;
416
+ trace?: never;
417
+ };
418
+ "/vault/rotate": {
419
+ parameters: {
420
+ query?: never;
421
+ header?: never;
422
+ path?: never;
423
+ cookie?: never;
424
+ };
425
+ get?: never;
426
+ put?: never;
427
+ /**
428
+ * Switches the vault to a new key. The old proof and all tokens issued
429
+ * under it stop working at once.
430
+ */
431
+ post: operations["rotateVault"];
432
+ delete?: never;
433
+ options?: never;
434
+ head?: never;
435
+ patch?: never;
436
+ trace?: never;
437
+ };
438
+ "/vault/session": {
439
+ parameters: {
440
+ query?: never;
441
+ header?: never;
442
+ path?: never;
443
+ cookie?: never;
444
+ };
445
+ get?: never;
446
+ put?: never;
447
+ /**
448
+ * Opens (or creates) the vault the proof belongs to and returns a vault
449
+ * token.
450
+ */
451
+ post: operations["openSession"];
452
+ delete?: never;
453
+ options?: never;
454
+ head?: never;
455
+ patch?: never;
456
+ trace?: never;
457
+ };
458
+ "/webhook/stripe": {
459
+ parameters: {
460
+ query?: never;
461
+ header?: never;
462
+ path?: never;
463
+ cookie?: never;
464
+ };
465
+ get?: never;
466
+ put?: never;
467
+ /**
468
+ * Stripe webhook endpoint (for Stripe, not for clients). The raw body is
469
+ * verified against `Stripe-Signature`.
470
+ */
471
+ post: operations["stripeWebhook"];
472
+ delete?: never;
473
+ options?: never;
474
+ head?: never;
475
+ patch?: never;
476
+ trace?: never;
477
+ };
478
+ }
479
+ export type webhooks = Record<string, never>;
480
+ export interface components {
481
+ schemas: {
482
+ /** @description The body of every error response. */
483
+ ApiError: {
484
+ /**
485
+ * @description A short, human-readable message.
486
+ * @example Unauthorized
487
+ */
488
+ error: string;
489
+ };
490
+ /** @enum {string} */
491
+ Attestation: "none" | "indirect" | "direct" | "enterprise";
492
+ AuthenticateRequest: {
493
+ /** @description Full WebAuthn assertion (`AuthenticationResponseJSON`). */
494
+ assertion?: Record<string, unknown>;
495
+ challengeId: string;
496
+ /** @description CLI fast path: client asserts which credential it is. */
497
+ credentialId?: string | null;
498
+ };
499
+ AuthenticateResponse: {
500
+ credentialId: string;
501
+ /** @description Credential token (`credentialToken` security scheme). */
502
+ token: string;
503
+ /** @description The `userKey` wrapped for this device (base64), if one was stored. */
504
+ wrappedUserPrivKey?: string | null;
505
+ };
506
+ /**
507
+ * @description Options for `navigator.credentials.get()`, plus the challenge id to send
508
+ * back with the result.
509
+ */
510
+ AuthenticationChallenge: {
511
+ challengeId: string;
512
+ options: components["schemas"]["AuthenticationOptions"];
513
+ };
514
+ AuthenticationOptions: {
515
+ allowCredentials: Record<string, unknown>[];
516
+ challenge: string;
517
+ rpId: string;
518
+ /** Format: int32 */
519
+ timeout: number;
520
+ userVerification: components["schemas"]["UserVerification"];
521
+ };
522
+ AuthenticatorSelection: {
523
+ residentKey: components["schemas"]["ResidentKey"];
524
+ userVerification: components["schemas"]["UserVerification"];
525
+ };
526
+ /**
527
+ * Format: binary
528
+ * @description Raw bytes: ciphertext or a wrapped key, sent as `application/octet-stream`.
529
+ */
530
+ Binary: Uint8Array | Blob;
531
+ CheckoutResponse: {
532
+ sessionId: string;
533
+ /** @description Stripe Checkout page to send the user to. */
534
+ url: string;
535
+ };
536
+ ClaimResponse: {
537
+ claimed: boolean;
538
+ ok: boolean;
539
+ };
540
+ CreateInviteRequest: {
541
+ /**
542
+ * @description `userKey` wrapped with the one-time invite key (base64). The invite
543
+ * key itself only travels in the QR code / link.
544
+ */
545
+ wrappedUserKey: string;
546
+ };
547
+ CreateInviteResponse: {
548
+ /**
549
+ * Format: int64
550
+ * @description Unix seconds; invites live 5 minutes.
551
+ */
552
+ expiresAt: number;
553
+ inviteId: string;
554
+ };
555
+ CreateShareRequest: {
556
+ /** @description The owner's `file_*` blobs that members may read. */
557
+ blobIds: string[];
558
+ /**
559
+ * @description 32-byte proof derived from the link key (base64); the server keeps
560
+ * only its SHA-256.
561
+ */
562
+ linkProof: string;
563
+ /** @description `shareKey` wrapped with the link-derived key (base64). */
564
+ linkWrappedKey: string;
565
+ /**
566
+ * @description The manifest (names, sizes, wrapped file keys), encrypted with
567
+ * `shareKey` (base64).
568
+ */
569
+ manifest: string;
570
+ };
571
+ CreateShareResponse: {
572
+ shareId: string;
573
+ };
574
+ /** @enum {string} */
575
+ CredentialType: "public-key";
576
+ HealthResponse: {
577
+ ok: boolean;
578
+ /** @description Git commit of the build. */
579
+ sha: string;
580
+ /** @description When this process started (ISO 8601). */
581
+ startedAt: string;
582
+ /** @description Git tag of the build, or the short SHA when untagged. */
583
+ version: string;
584
+ };
585
+ /** @description The `data` of an invite event. `claimedAt` (Unix ms) is set on `claimed`. */
586
+ InviteEventData: {
587
+ /** Format: int64 */
588
+ claimedAt?: number | null;
589
+ inviteId: string;
590
+ };
591
+ InviteView: {
592
+ claimed: boolean;
593
+ inviteId: string;
594
+ /** @description `userKey` wrapped with the invite key (base64). */
595
+ wrappedUserKey: string;
596
+ };
597
+ JoinResponse: {
598
+ memberId: string;
599
+ };
600
+ JoinShareRequest: {
601
+ /** @description The link proof (32 bytes, base64). */
602
+ linkProof: string;
603
+ /** @description The joiner's display name, encrypted with `shareKey` (base64). */
604
+ name: string;
605
+ };
606
+ MemberView: {
607
+ /**
608
+ * Format: int64
609
+ * @description Unix seconds.
610
+ */
611
+ joinedAt: number;
612
+ memberId: string;
613
+ /** @description Display name, encrypted with `shareKey` (base64). */
614
+ name: string;
615
+ };
616
+ /** @description The body of a write that has nothing else to report. */
617
+ OkBody: {
618
+ /** @example true */
619
+ ok: boolean;
620
+ };
621
+ OpenSessionRequest: {
622
+ /**
623
+ * @description A credential token from a passkey sign-in on this device. When given,
624
+ * the credential is bound to the vault, so only this vault can revoke it.
625
+ */
626
+ credentialToken?: string | null;
627
+ /** @description 32-byte proof derived from `userKey` (base64). */
628
+ proof: string;
629
+ };
630
+ PubKeyCredParam: {
631
+ /** Format: int32 */
632
+ alg: number;
633
+ type: components["schemas"]["CredentialType"];
634
+ };
635
+ RawCredential: {
636
+ credentialId: string;
637
+ publicKey: string;
638
+ /** Format: int32 */
639
+ signCount?: number;
640
+ };
641
+ RegisterRequest: {
642
+ /** @description Full WebAuthn attestation JSON (`RegistrationResponseJSON`). */
643
+ attestation?: Record<string, unknown>;
644
+ challengeId: string;
645
+ raw?: components["schemas"]["RawCredential"] | null;
646
+ };
647
+ RegisterResponse: {
648
+ credentialId: string;
649
+ /** @description Credential token (`credentialToken` security scheme). */
650
+ token: string;
651
+ };
652
+ /**
653
+ * @description Options for `navigator.credentials.create()`, plus the challenge id to
654
+ * send back with the result.
655
+ */
656
+ RegistrationChallenge: {
657
+ challengeId: string;
658
+ options: components["schemas"]["RegistrationOptions"];
659
+ };
660
+ RegistrationOptions: {
661
+ attestation: components["schemas"]["Attestation"];
662
+ authenticatorSelection: components["schemas"]["AuthenticatorSelection"];
663
+ challenge: string;
664
+ /** @description Requests the PRF extension, which derives this device's key. */
665
+ extensions: Record<string, unknown>;
666
+ pubKeyCredParams: components["schemas"]["PubKeyCredParam"][];
667
+ rp: components["schemas"]["WebAuthnRp"];
668
+ /** Format: int32 */
669
+ timeout: number;
670
+ user: components["schemas"]["WebAuthnUser"];
671
+ };
672
+ ResetShareLinkRequest: {
673
+ /** @description Proof for the new link (32 bytes, base64). */
674
+ linkProof: string;
675
+ /** @description `shareKey` wrapped with the new link's key (base64). */
676
+ linkWrappedKey: string;
677
+ };
678
+ /** @enum {string} */
679
+ ResidentKey: "required" | "preferred" | "discouraged";
680
+ RotateResponse: {
681
+ /** @description Credentials deleted because they only held the old key. */
682
+ revokedCredentialIds: string[];
683
+ /** @description A vault token for the new key; older tokens stop working. */
684
+ token: string;
685
+ vaultId: string;
686
+ };
687
+ RotateVaultRequest: {
688
+ /**
689
+ * @description Credentials that keep access after the rotation (normally just the
690
+ * device doing it). Every other credential bound to the vault is
691
+ * deleted, because those devices only hold the old key.
692
+ */
693
+ keepCredentialIds?: string[];
694
+ /** @description Proof for the new `userKey` (32 bytes, base64). */
695
+ newProof: string;
696
+ };
697
+ SessionResponse: {
698
+ /** @description True when this proof opened a new, empty vault. */
699
+ created: boolean;
700
+ /** @description Vault token (`vaultToken` security scheme). */
701
+ token: string;
702
+ vaultId: string;
703
+ };
704
+ ShareLinkView: {
705
+ /** @description `shareKey` wrapped with the link-derived key (base64). */
706
+ linkWrappedKey?: string | null;
707
+ /** @description The encrypted manifest (base64). */
708
+ manifest: string;
709
+ };
710
+ /** @enum {string} */
711
+ ShareRole: "owner" | "member";
712
+ ShareView: {
713
+ /**
714
+ * Format: int64
715
+ * @description Unix seconds.
716
+ */
717
+ createdAt: number;
718
+ /** @description Whether the share link still works for new joiners. */
719
+ linkActive: boolean;
720
+ /** @description The encrypted manifest (base64). */
721
+ manifest: string;
722
+ /** @description Every member for the owner; only the caller's own entry for a member. */
723
+ members: components["schemas"]["MemberView"][];
724
+ role: components["schemas"]["ShareRole"];
725
+ };
726
+ /** @enum {string} */
727
+ SubscriptionState: "active" | "cancelled" | "past_due";
728
+ SubscriptionStatus: {
729
+ /** @description True when a subscription existed but has run out. */
730
+ expired?: boolean | null;
731
+ status?: components["schemas"]["SubscriptionState"] | null;
732
+ subscribed: boolean;
733
+ tier: components["schemas"]["Tier"];
734
+ };
735
+ /** @enum {string} */
736
+ Tier: "free" | "pro";
737
+ UpdateShareRequest: {
738
+ /** @description The `file_*` blobs members may read from now on. */
739
+ blobIds: string[];
740
+ /** @description The new encrypted manifest (base64). */
741
+ manifest: string;
742
+ };
743
+ UpdateWrappedKeyRequest: {
744
+ /** @description `userKey` wrapped with this device's passkey-derived key (base64). */
745
+ wrappedUserPrivKey: string;
746
+ };
747
+ /** @enum {string} */
748
+ UserVerification: "required" | "preferred" | "discouraged";
749
+ WebAuthnRp: {
750
+ id: string;
751
+ name: string;
752
+ };
753
+ WebAuthnUser: {
754
+ displayName: string;
755
+ id: string;
756
+ name: string;
757
+ };
758
+ WebhookAck: {
759
+ received: boolean;
760
+ };
761
+ };
762
+ responses: never;
763
+ parameters: never;
764
+ requestBodies: never;
765
+ headers: never;
766
+ pathItems: never;
767
+ }
768
+ export type $defs = Record<string, never>;
769
+ export interface operations {
770
+ authenticate: {
771
+ parameters: {
772
+ query?: never;
773
+ header?: never;
774
+ path?: never;
775
+ cookie?: never;
776
+ };
777
+ requestBody: {
778
+ content: {
779
+ "application/json": components["schemas"]["AuthenticateRequest"];
780
+ };
781
+ };
782
+ responses: {
783
+ 200: {
784
+ headers: {
785
+ [name: string]: unknown;
786
+ };
787
+ content: {
788
+ "application/json": components["schemas"]["AuthenticateResponse"];
789
+ };
790
+ };
791
+ /** @description Invalid or expired challenge, unknown credential, or verification failed */
792
+ 400: {
793
+ headers: {
794
+ [name: string]: unknown;
795
+ };
796
+ content: {
797
+ "application/json": components["schemas"]["ApiError"];
798
+ };
799
+ };
800
+ /** @description Raw credentials are disabled */
801
+ 403: {
802
+ headers: {
803
+ [name: string]: unknown;
804
+ };
805
+ content: {
806
+ "application/json": components["schemas"]["ApiError"];
807
+ };
808
+ };
809
+ };
810
+ };
811
+ authenticateOptions: {
812
+ parameters: {
813
+ query?: never;
814
+ header?: never;
815
+ path?: never;
816
+ cookie?: never;
817
+ };
818
+ requestBody?: never;
819
+ responses: {
820
+ 200: {
821
+ headers: {
822
+ [name: string]: unknown;
823
+ };
824
+ content: {
825
+ "application/json": components["schemas"]["AuthenticationChallenge"];
826
+ };
827
+ };
828
+ };
829
+ };
830
+ revokeCredential: {
831
+ parameters: {
832
+ query?: never;
833
+ header?: never;
834
+ path: {
835
+ /** @description Credential id */
836
+ id: string;
837
+ };
838
+ cookie?: never;
839
+ };
840
+ requestBody?: never;
841
+ responses: {
842
+ 200: {
843
+ headers: {
844
+ [name: string]: unknown;
845
+ };
846
+ content: {
847
+ "application/json": components["schemas"]["OkBody"];
848
+ };
849
+ };
850
+ 401: {
851
+ headers: {
852
+ [name: string]: unknown;
853
+ };
854
+ content: {
855
+ "application/json": components["schemas"]["ApiError"];
856
+ };
857
+ };
858
+ /** @description Credential not found */
859
+ 404: {
860
+ headers: {
861
+ [name: string]: unknown;
862
+ };
863
+ content: {
864
+ "application/json": components["schemas"]["ApiError"];
865
+ };
866
+ };
867
+ };
868
+ };
869
+ updateWrappedKey: {
870
+ parameters: {
871
+ query?: never;
872
+ header?: never;
873
+ path: {
874
+ /** @description Credential id */
875
+ id: string;
876
+ };
877
+ cookie?: never;
878
+ };
879
+ requestBody: {
880
+ content: {
881
+ "application/json": components["schemas"]["UpdateWrappedKeyRequest"];
882
+ };
883
+ };
884
+ responses: {
885
+ 200: {
886
+ headers: {
887
+ [name: string]: unknown;
888
+ };
889
+ content: {
890
+ "application/json": components["schemas"]["OkBody"];
891
+ };
892
+ };
893
+ /** @description Invalid base64 */
894
+ 400: {
895
+ headers: {
896
+ [name: string]: unknown;
897
+ };
898
+ content: {
899
+ "application/json": components["schemas"]["ApiError"];
900
+ };
901
+ };
902
+ /** @description No token for this credential */
903
+ 401: {
904
+ headers: {
905
+ [name: string]: unknown;
906
+ };
907
+ content: {
908
+ "application/json": components["schemas"]["ApiError"];
909
+ };
910
+ };
911
+ /** @description Credential not found */
912
+ 404: {
913
+ headers: {
914
+ [name: string]: unknown;
915
+ };
916
+ content: {
917
+ "application/json": components["schemas"]["ApiError"];
918
+ };
919
+ };
920
+ };
921
+ };
922
+ register: {
923
+ parameters: {
924
+ query?: never;
925
+ header?: never;
926
+ path?: never;
927
+ cookie?: never;
928
+ };
929
+ requestBody: {
930
+ content: {
931
+ "application/json": components["schemas"]["RegisterRequest"];
932
+ };
933
+ };
934
+ responses: {
935
+ 200: {
936
+ headers: {
937
+ [name: string]: unknown;
938
+ };
939
+ content: {
940
+ "application/json": components["schemas"]["RegisterResponse"];
941
+ };
942
+ };
943
+ /** @description Invalid or expired challenge, or verification failed */
944
+ 400: {
945
+ headers: {
946
+ [name: string]: unknown;
947
+ };
948
+ content: {
949
+ "application/json": components["schemas"]["ApiError"];
950
+ };
951
+ };
952
+ /** @description Raw credentials are disabled */
953
+ 403: {
954
+ headers: {
955
+ [name: string]: unknown;
956
+ };
957
+ content: {
958
+ "application/json": components["schemas"]["ApiError"];
959
+ };
960
+ };
961
+ };
962
+ };
963
+ registerOptions: {
964
+ parameters: {
965
+ query?: never;
966
+ header?: never;
967
+ path?: never;
968
+ cookie?: never;
969
+ };
970
+ requestBody?: never;
971
+ responses: {
972
+ 200: {
973
+ headers: {
974
+ [name: string]: unknown;
975
+ };
976
+ content: {
977
+ "application/json": components["schemas"]["RegistrationChallenge"];
978
+ };
979
+ };
980
+ };
981
+ };
982
+ getBlob: {
983
+ parameters: {
984
+ query?: never;
985
+ header?: never;
986
+ path: {
987
+ /** @description Blob id, `[A-Za-z0-9_-]+` */
988
+ id: string;
989
+ };
990
+ cookie?: never;
991
+ };
992
+ requestBody?: never;
993
+ responses: {
994
+ /** @description The blob's bytes (ciphertext) */
995
+ 200: {
996
+ headers: {
997
+ /** @description Hex SHA-256 of the bytes, quoted */
998
+ ETag?: string;
999
+ [name: string]: unknown;
1000
+ };
1001
+ content: {
1002
+ "application/octet-stream": components["schemas"]["Binary"];
1003
+ };
1004
+ };
1005
+ /** @description Invalid id */
1006
+ 400: {
1007
+ headers: {
1008
+ [name: string]: unknown;
1009
+ };
1010
+ content: {
1011
+ "application/json": components["schemas"]["ApiError"];
1012
+ };
1013
+ };
1014
+ 401: {
1015
+ headers: {
1016
+ [name: string]: unknown;
1017
+ };
1018
+ content: {
1019
+ "application/json": components["schemas"]["ApiError"];
1020
+ };
1021
+ };
1022
+ 404: {
1023
+ headers: {
1024
+ [name: string]: unknown;
1025
+ };
1026
+ content: {
1027
+ "application/json": components["schemas"]["ApiError"];
1028
+ };
1029
+ };
1030
+ };
1031
+ };
1032
+ putBlob: {
1033
+ parameters: {
1034
+ query?: never;
1035
+ header?: {
1036
+ /** @description Only write if the current ETag matches */
1037
+ "If-Match"?: string | null;
1038
+ /** @description `*`: only write if the blob doesn't exist */
1039
+ "If-None-Match"?: string | null;
1040
+ };
1041
+ path: {
1042
+ /** @description Blob id, `[A-Za-z0-9_-]+` */
1043
+ id: string;
1044
+ };
1045
+ cookie?: never;
1046
+ };
1047
+ /** @description Ciphertext, up to 128 MB */
1048
+ requestBody: {
1049
+ content: {
1050
+ "application/octet-stream": components["schemas"]["Binary"];
1051
+ };
1052
+ };
1053
+ responses: {
1054
+ 200: {
1055
+ headers: {
1056
+ /** @description ETag of the stored bytes */
1057
+ ETag?: string;
1058
+ [name: string]: unknown;
1059
+ };
1060
+ content: {
1061
+ "application/json": components["schemas"]["OkBody"];
1062
+ };
1063
+ };
1064
+ /** @description Invalid id */
1065
+ 400: {
1066
+ headers: {
1067
+ [name: string]: unknown;
1068
+ };
1069
+ content: {
1070
+ "application/json": components["schemas"]["ApiError"];
1071
+ };
1072
+ };
1073
+ 401: {
1074
+ headers: {
1075
+ [name: string]: unknown;
1076
+ };
1077
+ content: {
1078
+ "application/json": components["schemas"]["ApiError"];
1079
+ };
1080
+ };
1081
+ /** @description Precondition failed: the blob changed */
1082
+ 412: {
1083
+ headers: {
1084
+ [name: string]: unknown;
1085
+ };
1086
+ content: {
1087
+ "application/json": components["schemas"]["ApiError"];
1088
+ };
1089
+ };
1090
+ };
1091
+ };
1092
+ deleteBlob: {
1093
+ parameters: {
1094
+ query?: never;
1095
+ header?: {
1096
+ /** @description Only delete if the current ETag matches */
1097
+ "If-Match"?: string | null;
1098
+ };
1099
+ path: {
1100
+ /** @description Blob id, `[A-Za-z0-9_-]+` */
1101
+ id: string;
1102
+ };
1103
+ cookie?: never;
1104
+ };
1105
+ requestBody?: never;
1106
+ responses: {
1107
+ 200: {
1108
+ headers: {
1109
+ [name: string]: unknown;
1110
+ };
1111
+ content: {
1112
+ "application/json": components["schemas"]["OkBody"];
1113
+ };
1114
+ };
1115
+ /** @description Invalid id */
1116
+ 400: {
1117
+ headers: {
1118
+ [name: string]: unknown;
1119
+ };
1120
+ content: {
1121
+ "application/json": components["schemas"]["ApiError"];
1122
+ };
1123
+ };
1124
+ 401: {
1125
+ headers: {
1126
+ [name: string]: unknown;
1127
+ };
1128
+ content: {
1129
+ "application/json": components["schemas"]["ApiError"];
1130
+ };
1131
+ };
1132
+ /** @description Precondition failed: the blob changed */
1133
+ 412: {
1134
+ headers: {
1135
+ [name: string]: unknown;
1136
+ };
1137
+ content: {
1138
+ "application/json": components["schemas"]["ApiError"];
1139
+ };
1140
+ };
1141
+ };
1142
+ };
1143
+ createCheckout: {
1144
+ parameters: {
1145
+ query?: never;
1146
+ header?: never;
1147
+ path?: never;
1148
+ cookie?: never;
1149
+ };
1150
+ requestBody?: never;
1151
+ responses: {
1152
+ 200: {
1153
+ headers: {
1154
+ [name: string]: unknown;
1155
+ };
1156
+ content: {
1157
+ "application/json": components["schemas"]["CheckoutResponse"];
1158
+ };
1159
+ };
1160
+ 401: {
1161
+ headers: {
1162
+ [name: string]: unknown;
1163
+ };
1164
+ content: {
1165
+ "application/json": components["schemas"]["ApiError"];
1166
+ };
1167
+ };
1168
+ /** @description Stripe not configured or unavailable */
1169
+ 500: {
1170
+ headers: {
1171
+ [name: string]: unknown;
1172
+ };
1173
+ content: {
1174
+ "application/json": components["schemas"]["ApiError"];
1175
+ };
1176
+ };
1177
+ };
1178
+ };
1179
+ health: {
1180
+ parameters: {
1181
+ query?: never;
1182
+ header?: never;
1183
+ path?: never;
1184
+ cookie?: never;
1185
+ };
1186
+ requestBody?: never;
1187
+ responses: {
1188
+ 200: {
1189
+ headers: {
1190
+ [name: string]: unknown;
1191
+ };
1192
+ content: {
1193
+ "application/json": components["schemas"]["HealthResponse"];
1194
+ };
1195
+ };
1196
+ };
1197
+ };
1198
+ createInvite: {
1199
+ parameters: {
1200
+ query?: never;
1201
+ header?: never;
1202
+ path?: never;
1203
+ cookie?: never;
1204
+ };
1205
+ requestBody: {
1206
+ content: {
1207
+ "application/json": components["schemas"]["CreateInviteRequest"];
1208
+ };
1209
+ };
1210
+ responses: {
1211
+ 200: {
1212
+ headers: {
1213
+ [name: string]: unknown;
1214
+ };
1215
+ content: {
1216
+ "application/json": components["schemas"]["CreateInviteResponse"];
1217
+ };
1218
+ };
1219
+ /** @description Missing or invalid wrappedUserKey */
1220
+ 400: {
1221
+ headers: {
1222
+ [name: string]: unknown;
1223
+ };
1224
+ content: {
1225
+ "application/json": components["schemas"]["ApiError"];
1226
+ };
1227
+ };
1228
+ 401: {
1229
+ headers: {
1230
+ [name: string]: unknown;
1231
+ };
1232
+ content: {
1233
+ "application/json": components["schemas"]["ApiError"];
1234
+ };
1235
+ };
1236
+ };
1237
+ };
1238
+ getInvite: {
1239
+ parameters: {
1240
+ query?: never;
1241
+ header?: never;
1242
+ path: {
1243
+ /** @description Invite id */
1244
+ id: string;
1245
+ };
1246
+ cookie?: never;
1247
+ };
1248
+ requestBody?: never;
1249
+ responses: {
1250
+ 200: {
1251
+ headers: {
1252
+ [name: string]: unknown;
1253
+ };
1254
+ content: {
1255
+ "application/json": components["schemas"]["InviteView"];
1256
+ };
1257
+ };
1258
+ /** @description Invite not found or expired */
1259
+ 404: {
1260
+ headers: {
1261
+ [name: string]: unknown;
1262
+ };
1263
+ content: {
1264
+ "application/json": components["schemas"]["ApiError"];
1265
+ };
1266
+ };
1267
+ };
1268
+ };
1269
+ deleteInvite: {
1270
+ parameters: {
1271
+ query?: never;
1272
+ header?: never;
1273
+ path: {
1274
+ /** @description Invite id */
1275
+ id: string;
1276
+ };
1277
+ cookie?: never;
1278
+ };
1279
+ requestBody?: never;
1280
+ responses: {
1281
+ 200: {
1282
+ headers: {
1283
+ [name: string]: unknown;
1284
+ };
1285
+ content: {
1286
+ "application/json": components["schemas"]["OkBody"];
1287
+ };
1288
+ };
1289
+ };
1290
+ };
1291
+ claimInvite: {
1292
+ parameters: {
1293
+ query?: never;
1294
+ header?: never;
1295
+ path: {
1296
+ /** @description Invite id */
1297
+ id: string;
1298
+ };
1299
+ cookie?: never;
1300
+ };
1301
+ requestBody?: never;
1302
+ responses: {
1303
+ 200: {
1304
+ headers: {
1305
+ [name: string]: unknown;
1306
+ };
1307
+ content: {
1308
+ "application/json": components["schemas"]["ClaimResponse"];
1309
+ };
1310
+ };
1311
+ /** @description Invite already claimed */
1312
+ 400: {
1313
+ headers: {
1314
+ [name: string]: unknown;
1315
+ };
1316
+ content: {
1317
+ "application/json": components["schemas"]["ApiError"];
1318
+ };
1319
+ };
1320
+ /** @description Invite not found or expired */
1321
+ 404: {
1322
+ headers: {
1323
+ [name: string]: unknown;
1324
+ };
1325
+ content: {
1326
+ "application/json": components["schemas"]["ApiError"];
1327
+ };
1328
+ };
1329
+ };
1330
+ };
1331
+ inviteEvents: {
1332
+ parameters: {
1333
+ query?: never;
1334
+ header?: never;
1335
+ path: {
1336
+ /** @description Invite id */
1337
+ id: string;
1338
+ };
1339
+ cookie?: never;
1340
+ };
1341
+ requestBody?: never;
1342
+ responses: {
1343
+ /** @description An event stream; each event's data is `InviteEventData` */
1344
+ 200: {
1345
+ headers: {
1346
+ [name: string]: unknown;
1347
+ };
1348
+ content: {
1349
+ "text/event-stream": components["schemas"]["InviteEventData"];
1350
+ };
1351
+ };
1352
+ /** @description Invite not found */
1353
+ 404: {
1354
+ headers: {
1355
+ [name: string]: unknown;
1356
+ };
1357
+ content: {
1358
+ "application/json": components["schemas"]["ApiError"];
1359
+ };
1360
+ };
1361
+ /** @description Not supported on the WASI build; poll GET /invite/{id} */
1362
+ 501: {
1363
+ headers: {
1364
+ [name: string]: unknown;
1365
+ };
1366
+ content: {
1367
+ "application/json": components["schemas"]["ApiError"];
1368
+ };
1369
+ };
1370
+ };
1371
+ };
1372
+ getRecovery: {
1373
+ parameters: {
1374
+ query?: never;
1375
+ header?: never;
1376
+ path: {
1377
+ /** @description Recovery id, derived from the phrase */
1378
+ id: string;
1379
+ };
1380
+ cookie?: never;
1381
+ };
1382
+ requestBody?: never;
1383
+ responses: {
1384
+ /** @description The wrapped key */
1385
+ 200: {
1386
+ headers: {
1387
+ [name: string]: unknown;
1388
+ };
1389
+ content: {
1390
+ "application/octet-stream": components["schemas"]["Binary"];
1391
+ };
1392
+ };
1393
+ /** @description Invalid id */
1394
+ 400: {
1395
+ headers: {
1396
+ [name: string]: unknown;
1397
+ };
1398
+ content: {
1399
+ "application/json": components["schemas"]["ApiError"];
1400
+ };
1401
+ };
1402
+ 404: {
1403
+ headers: {
1404
+ [name: string]: unknown;
1405
+ };
1406
+ content: {
1407
+ "application/json": components["schemas"]["ApiError"];
1408
+ };
1409
+ };
1410
+ };
1411
+ };
1412
+ putRecovery: {
1413
+ parameters: {
1414
+ query?: never;
1415
+ header?: never;
1416
+ path: {
1417
+ /** @description Recovery id, derived from the phrase */
1418
+ id: string;
1419
+ };
1420
+ cookie?: never;
1421
+ };
1422
+ /** @description The wrapped key */
1423
+ requestBody: {
1424
+ content: {
1425
+ "application/octet-stream": components["schemas"]["Binary"];
1426
+ };
1427
+ };
1428
+ responses: {
1429
+ 200: {
1430
+ headers: {
1431
+ [name: string]: unknown;
1432
+ };
1433
+ content: {
1434
+ "application/json": components["schemas"]["OkBody"];
1435
+ };
1436
+ };
1437
+ /** @description Invalid id */
1438
+ 400: {
1439
+ headers: {
1440
+ [name: string]: unknown;
1441
+ };
1442
+ content: {
1443
+ "application/json": components["schemas"]["ApiError"];
1444
+ };
1445
+ };
1446
+ 401: {
1447
+ headers: {
1448
+ [name: string]: unknown;
1449
+ };
1450
+ content: {
1451
+ "application/json": components["schemas"]["ApiError"];
1452
+ };
1453
+ };
1454
+ /** @description The id belongs to another vault */
1455
+ 403: {
1456
+ headers: {
1457
+ [name: string]: unknown;
1458
+ };
1459
+ content: {
1460
+ "application/json": components["schemas"]["ApiError"];
1461
+ };
1462
+ };
1463
+ };
1464
+ };
1465
+ deleteRecovery: {
1466
+ parameters: {
1467
+ query?: never;
1468
+ header?: never;
1469
+ path: {
1470
+ /** @description Recovery id, derived from the phrase */
1471
+ id: string;
1472
+ };
1473
+ cookie?: never;
1474
+ };
1475
+ requestBody?: never;
1476
+ responses: {
1477
+ 200: {
1478
+ headers: {
1479
+ [name: string]: unknown;
1480
+ };
1481
+ content: {
1482
+ "application/json": components["schemas"]["OkBody"];
1483
+ };
1484
+ };
1485
+ /** @description Invalid id */
1486
+ 400: {
1487
+ headers: {
1488
+ [name: string]: unknown;
1489
+ };
1490
+ content: {
1491
+ "application/json": components["schemas"]["ApiError"];
1492
+ };
1493
+ };
1494
+ 401: {
1495
+ headers: {
1496
+ [name: string]: unknown;
1497
+ };
1498
+ content: {
1499
+ "application/json": components["schemas"]["ApiError"];
1500
+ };
1501
+ };
1502
+ /** @description The id belongs to another vault */
1503
+ 403: {
1504
+ headers: {
1505
+ [name: string]: unknown;
1506
+ };
1507
+ content: {
1508
+ "application/json": components["schemas"]["ApiError"];
1509
+ };
1510
+ };
1511
+ };
1512
+ };
1513
+ createShare: {
1514
+ parameters: {
1515
+ query?: never;
1516
+ header?: never;
1517
+ path?: never;
1518
+ cookie?: never;
1519
+ };
1520
+ requestBody: {
1521
+ content: {
1522
+ "application/json": components["schemas"]["CreateShareRequest"];
1523
+ };
1524
+ };
1525
+ responses: {
1526
+ 200: {
1527
+ headers: {
1528
+ [name: string]: unknown;
1529
+ };
1530
+ content: {
1531
+ "application/json": components["schemas"]["CreateShareResponse"];
1532
+ };
1533
+ };
1534
+ /** @description Invalid proof, base64 or blob ids */
1535
+ 400: {
1536
+ headers: {
1537
+ [name: string]: unknown;
1538
+ };
1539
+ content: {
1540
+ "application/json": components["schemas"]["ApiError"];
1541
+ };
1542
+ };
1543
+ 401: {
1544
+ headers: {
1545
+ [name: string]: unknown;
1546
+ };
1547
+ content: {
1548
+ "application/json": components["schemas"]["ApiError"];
1549
+ };
1550
+ };
1551
+ };
1552
+ };
1553
+ getShare: {
1554
+ parameters: {
1555
+ query?: never;
1556
+ header?: never;
1557
+ path: {
1558
+ /** @description Share id */
1559
+ id: string;
1560
+ };
1561
+ cookie?: never;
1562
+ };
1563
+ requestBody?: never;
1564
+ responses: {
1565
+ 200: {
1566
+ headers: {
1567
+ [name: string]: unknown;
1568
+ };
1569
+ content: {
1570
+ "application/json": components["schemas"]["ShareView"];
1571
+ };
1572
+ };
1573
+ 401: {
1574
+ headers: {
1575
+ [name: string]: unknown;
1576
+ };
1577
+ content: {
1578
+ "application/json": components["schemas"]["ApiError"];
1579
+ };
1580
+ };
1581
+ /** @description No longer a member */
1582
+ 403: {
1583
+ headers: {
1584
+ [name: string]: unknown;
1585
+ };
1586
+ content: {
1587
+ "application/json": components["schemas"]["ApiError"];
1588
+ };
1589
+ };
1590
+ 404: {
1591
+ headers: {
1592
+ [name: string]: unknown;
1593
+ };
1594
+ content: {
1595
+ "application/json": components["schemas"]["ApiError"];
1596
+ };
1597
+ };
1598
+ };
1599
+ };
1600
+ updateShare: {
1601
+ parameters: {
1602
+ query?: never;
1603
+ header?: never;
1604
+ path: {
1605
+ /** @description Share id */
1606
+ id: string;
1607
+ };
1608
+ cookie?: never;
1609
+ };
1610
+ requestBody: {
1611
+ content: {
1612
+ "application/json": components["schemas"]["UpdateShareRequest"];
1613
+ };
1614
+ };
1615
+ responses: {
1616
+ 200: {
1617
+ headers: {
1618
+ [name: string]: unknown;
1619
+ };
1620
+ content: {
1621
+ "application/json": components["schemas"]["OkBody"];
1622
+ };
1623
+ };
1624
+ 400: {
1625
+ headers: {
1626
+ [name: string]: unknown;
1627
+ };
1628
+ content: {
1629
+ "application/json": components["schemas"]["ApiError"];
1630
+ };
1631
+ };
1632
+ 401: {
1633
+ headers: {
1634
+ [name: string]: unknown;
1635
+ };
1636
+ content: {
1637
+ "application/json": components["schemas"]["ApiError"];
1638
+ };
1639
+ };
1640
+ /** @description No such share, or not the owner */
1641
+ 404: {
1642
+ headers: {
1643
+ [name: string]: unknown;
1644
+ };
1645
+ content: {
1646
+ "application/json": components["schemas"]["ApiError"];
1647
+ };
1648
+ };
1649
+ };
1650
+ };
1651
+ deleteShare: {
1652
+ parameters: {
1653
+ query?: never;
1654
+ header?: never;
1655
+ path: {
1656
+ /** @description Share id */
1657
+ id: string;
1658
+ };
1659
+ cookie?: never;
1660
+ };
1661
+ requestBody?: never;
1662
+ responses: {
1663
+ 200: {
1664
+ headers: {
1665
+ [name: string]: unknown;
1666
+ };
1667
+ content: {
1668
+ "application/json": components["schemas"]["OkBody"];
1669
+ };
1670
+ };
1671
+ 401: {
1672
+ headers: {
1673
+ [name: string]: unknown;
1674
+ };
1675
+ content: {
1676
+ "application/json": components["schemas"]["ApiError"];
1677
+ };
1678
+ };
1679
+ /** @description No such share, or not the owner */
1680
+ 404: {
1681
+ headers: {
1682
+ [name: string]: unknown;
1683
+ };
1684
+ content: {
1685
+ "application/json": components["schemas"]["ApiError"];
1686
+ };
1687
+ };
1688
+ };
1689
+ };
1690
+ getSharedBlob: {
1691
+ parameters: {
1692
+ query?: never;
1693
+ header?: never;
1694
+ path: {
1695
+ /** @description Share id */
1696
+ id: string;
1697
+ /** @description A `file_*` blob id listed in the share */
1698
+ blob: string;
1699
+ };
1700
+ cookie?: never;
1701
+ };
1702
+ requestBody?: never;
1703
+ responses: {
1704
+ /** @description The blob's bytes (ciphertext) */
1705
+ 200: {
1706
+ headers: {
1707
+ [name: string]: unknown;
1708
+ };
1709
+ content: {
1710
+ "application/octet-stream": components["schemas"]["Binary"];
1711
+ };
1712
+ };
1713
+ 401: {
1714
+ headers: {
1715
+ [name: string]: unknown;
1716
+ };
1717
+ content: {
1718
+ "application/json": components["schemas"]["ApiError"];
1719
+ };
1720
+ };
1721
+ /** @description No longer a member */
1722
+ 403: {
1723
+ headers: {
1724
+ [name: string]: unknown;
1725
+ };
1726
+ content: {
1727
+ "application/json": components["schemas"]["ApiError"];
1728
+ };
1729
+ };
1730
+ 404: {
1731
+ headers: {
1732
+ [name: string]: unknown;
1733
+ };
1734
+ content: {
1735
+ "application/json": components["schemas"]["ApiError"];
1736
+ };
1737
+ };
1738
+ };
1739
+ };
1740
+ joinShare: {
1741
+ parameters: {
1742
+ query?: never;
1743
+ header?: never;
1744
+ path: {
1745
+ /** @description Share id */
1746
+ id: string;
1747
+ };
1748
+ cookie?: never;
1749
+ };
1750
+ requestBody: {
1751
+ content: {
1752
+ "application/json": components["schemas"]["JoinShareRequest"];
1753
+ };
1754
+ };
1755
+ responses: {
1756
+ 200: {
1757
+ headers: {
1758
+ [name: string]: unknown;
1759
+ };
1760
+ content: {
1761
+ "application/json": components["schemas"]["JoinResponse"];
1762
+ };
1763
+ };
1764
+ /** @description Bad name, or this is your own share */
1765
+ 400: {
1766
+ headers: {
1767
+ [name: string]: unknown;
1768
+ };
1769
+ content: {
1770
+ "application/json": components["schemas"]["ApiError"];
1771
+ };
1772
+ };
1773
+ 401: {
1774
+ headers: {
1775
+ [name: string]: unknown;
1776
+ };
1777
+ content: {
1778
+ "application/json": components["schemas"]["ApiError"];
1779
+ };
1780
+ };
1781
+ /** @description No such share, or the link was turned off or reset */
1782
+ 404: {
1783
+ headers: {
1784
+ [name: string]: unknown;
1785
+ };
1786
+ content: {
1787
+ "application/json": components["schemas"]["ApiError"];
1788
+ };
1789
+ };
1790
+ /** @description The share has too many members */
1791
+ 409: {
1792
+ headers: {
1793
+ [name: string]: unknown;
1794
+ };
1795
+ content: {
1796
+ "application/json": components["schemas"]["ApiError"];
1797
+ };
1798
+ };
1799
+ };
1800
+ };
1801
+ getShareLink: {
1802
+ parameters: {
1803
+ query?: never;
1804
+ header: {
1805
+ /** @description The link proof (base64) */
1806
+ "X-Share-Proof": string;
1807
+ };
1808
+ path: {
1809
+ /** @description Share id */
1810
+ id: string;
1811
+ };
1812
+ cookie?: never;
1813
+ };
1814
+ requestBody?: never;
1815
+ responses: {
1816
+ 200: {
1817
+ headers: {
1818
+ [name: string]: unknown;
1819
+ };
1820
+ content: {
1821
+ "application/json": components["schemas"]["ShareLinkView"];
1822
+ };
1823
+ };
1824
+ /** @description No such share, or the link was turned off or reset */
1825
+ 404: {
1826
+ headers: {
1827
+ [name: string]: unknown;
1828
+ };
1829
+ content: {
1830
+ "application/json": components["schemas"]["ApiError"];
1831
+ };
1832
+ };
1833
+ };
1834
+ };
1835
+ resetShareLink: {
1836
+ parameters: {
1837
+ query?: never;
1838
+ header?: never;
1839
+ path: {
1840
+ /** @description Share id */
1841
+ id: string;
1842
+ };
1843
+ cookie?: never;
1844
+ };
1845
+ requestBody: {
1846
+ content: {
1847
+ "application/json": components["schemas"]["ResetShareLinkRequest"];
1848
+ };
1849
+ };
1850
+ responses: {
1851
+ 200: {
1852
+ headers: {
1853
+ [name: string]: unknown;
1854
+ };
1855
+ content: {
1856
+ "application/json": components["schemas"]["OkBody"];
1857
+ };
1858
+ };
1859
+ 400: {
1860
+ headers: {
1861
+ [name: string]: unknown;
1862
+ };
1863
+ content: {
1864
+ "application/json": components["schemas"]["ApiError"];
1865
+ };
1866
+ };
1867
+ 401: {
1868
+ headers: {
1869
+ [name: string]: unknown;
1870
+ };
1871
+ content: {
1872
+ "application/json": components["schemas"]["ApiError"];
1873
+ };
1874
+ };
1875
+ /** @description No such share, or not the owner */
1876
+ 404: {
1877
+ headers: {
1878
+ [name: string]: unknown;
1879
+ };
1880
+ content: {
1881
+ "application/json": components["schemas"]["ApiError"];
1882
+ };
1883
+ };
1884
+ };
1885
+ };
1886
+ disableShareLink: {
1887
+ parameters: {
1888
+ query?: never;
1889
+ header?: never;
1890
+ path: {
1891
+ /** @description Share id */
1892
+ id: string;
1893
+ };
1894
+ cookie?: never;
1895
+ };
1896
+ requestBody?: never;
1897
+ responses: {
1898
+ 200: {
1899
+ headers: {
1900
+ [name: string]: unknown;
1901
+ };
1902
+ content: {
1903
+ "application/json": components["schemas"]["OkBody"];
1904
+ };
1905
+ };
1906
+ 401: {
1907
+ headers: {
1908
+ [name: string]: unknown;
1909
+ };
1910
+ content: {
1911
+ "application/json": components["schemas"]["ApiError"];
1912
+ };
1913
+ };
1914
+ /** @description No such share, or not the owner */
1915
+ 404: {
1916
+ headers: {
1917
+ [name: string]: unknown;
1918
+ };
1919
+ content: {
1920
+ "application/json": components["schemas"]["ApiError"];
1921
+ };
1922
+ };
1923
+ };
1924
+ };
1925
+ removeShareMember: {
1926
+ parameters: {
1927
+ query?: never;
1928
+ header?: never;
1929
+ path: {
1930
+ /** @description Share id */
1931
+ id: string;
1932
+ /** @description Member id */
1933
+ member: string;
1934
+ };
1935
+ cookie?: never;
1936
+ };
1937
+ requestBody?: never;
1938
+ responses: {
1939
+ 200: {
1940
+ headers: {
1941
+ [name: string]: unknown;
1942
+ };
1943
+ content: {
1944
+ "application/json": components["schemas"]["OkBody"];
1945
+ };
1946
+ };
1947
+ 401: {
1948
+ headers: {
1949
+ [name: string]: unknown;
1950
+ };
1951
+ content: {
1952
+ "application/json": components["schemas"]["ApiError"];
1953
+ };
1954
+ };
1955
+ /** @description No such share or member */
1956
+ 404: {
1957
+ headers: {
1958
+ [name: string]: unknown;
1959
+ };
1960
+ content: {
1961
+ "application/json": components["schemas"]["ApiError"];
1962
+ };
1963
+ };
1964
+ };
1965
+ };
1966
+ getSubscription: {
1967
+ parameters: {
1968
+ query?: never;
1969
+ header?: never;
1970
+ path?: never;
1971
+ cookie?: never;
1972
+ };
1973
+ requestBody?: never;
1974
+ responses: {
1975
+ 200: {
1976
+ headers: {
1977
+ [name: string]: unknown;
1978
+ };
1979
+ content: {
1980
+ "application/json": components["schemas"]["SubscriptionStatus"];
1981
+ };
1982
+ };
1983
+ 401: {
1984
+ headers: {
1985
+ [name: string]: unknown;
1986
+ };
1987
+ content: {
1988
+ "application/json": components["schemas"]["ApiError"];
1989
+ };
1990
+ };
1991
+ 500: {
1992
+ headers: {
1993
+ [name: string]: unknown;
1994
+ };
1995
+ content: {
1996
+ "application/json": components["schemas"]["ApiError"];
1997
+ };
1998
+ };
1999
+ };
2000
+ };
2001
+ rotateVault: {
2002
+ parameters: {
2003
+ query?: never;
2004
+ header?: never;
2005
+ path?: never;
2006
+ cookie?: never;
2007
+ };
2008
+ requestBody: {
2009
+ content: {
2010
+ "application/json": components["schemas"]["RotateVaultRequest"];
2011
+ };
2012
+ };
2013
+ responses: {
2014
+ 200: {
2015
+ headers: {
2016
+ [name: string]: unknown;
2017
+ };
2018
+ content: {
2019
+ "application/json": components["schemas"]["RotateResponse"];
2020
+ };
2021
+ };
2022
+ /** @description newProof is not 32 bytes of base64 */
2023
+ 400: {
2024
+ headers: {
2025
+ [name: string]: unknown;
2026
+ };
2027
+ content: {
2028
+ "application/json": components["schemas"]["ApiError"];
2029
+ };
2030
+ };
2031
+ 401: {
2032
+ headers: {
2033
+ [name: string]: unknown;
2034
+ };
2035
+ content: {
2036
+ "application/json": components["schemas"]["ApiError"];
2037
+ };
2038
+ };
2039
+ /** @description Vault not found */
2040
+ 404: {
2041
+ headers: {
2042
+ [name: string]: unknown;
2043
+ };
2044
+ content: {
2045
+ "application/json": components["schemas"]["ApiError"];
2046
+ };
2047
+ };
2048
+ /** @description That key already belongs to a vault */
2049
+ 409: {
2050
+ headers: {
2051
+ [name: string]: unknown;
2052
+ };
2053
+ content: {
2054
+ "application/json": components["schemas"]["ApiError"];
2055
+ };
2056
+ };
2057
+ };
2058
+ };
2059
+ openSession: {
2060
+ parameters: {
2061
+ query?: never;
2062
+ header?: never;
2063
+ path?: never;
2064
+ cookie?: never;
2065
+ };
2066
+ requestBody: {
2067
+ content: {
2068
+ "application/json": components["schemas"]["OpenSessionRequest"];
2069
+ };
2070
+ };
2071
+ responses: {
2072
+ 200: {
2073
+ headers: {
2074
+ [name: string]: unknown;
2075
+ };
2076
+ content: {
2077
+ "application/json": components["schemas"]["SessionResponse"];
2078
+ };
2079
+ };
2080
+ /** @description Proof is not 32 bytes of base64 */
2081
+ 400: {
2082
+ headers: {
2083
+ [name: string]: unknown;
2084
+ };
2085
+ content: {
2086
+ "application/json": components["schemas"]["ApiError"];
2087
+ };
2088
+ };
2089
+ /** @description Invalid credential token */
2090
+ 401: {
2091
+ headers: {
2092
+ [name: string]: unknown;
2093
+ };
2094
+ content: {
2095
+ "application/json": components["schemas"]["ApiError"];
2096
+ };
2097
+ };
2098
+ /** @description Credential belongs to another vault */
2099
+ 403: {
2100
+ headers: {
2101
+ [name: string]: unknown;
2102
+ };
2103
+ content: {
2104
+ "application/json": components["schemas"]["ApiError"];
2105
+ };
2106
+ };
2107
+ /** @description This key was replaced by a key rotation */
2108
+ 410: {
2109
+ headers: {
2110
+ [name: string]: unknown;
2111
+ };
2112
+ content: {
2113
+ "application/json": components["schemas"]["ApiError"];
2114
+ };
2115
+ };
2116
+ };
2117
+ };
2118
+ stripeWebhook: {
2119
+ parameters: {
2120
+ query?: never;
2121
+ header: {
2122
+ /** @description Stripe's webhook signature */
2123
+ "Stripe-Signature": string;
2124
+ };
2125
+ path?: never;
2126
+ cookie?: never;
2127
+ };
2128
+ /** @description A Stripe event, verified byte for byte */
2129
+ requestBody: {
2130
+ content: {
2131
+ "application/json": Record<string, unknown>;
2132
+ };
2133
+ };
2134
+ responses: {
2135
+ 200: {
2136
+ headers: {
2137
+ [name: string]: unknown;
2138
+ };
2139
+ content: {
2140
+ "application/json": components["schemas"]["WebhookAck"];
2141
+ };
2142
+ };
2143
+ /** @description Missing or invalid signature, or bad payload */
2144
+ 400: {
2145
+ headers: {
2146
+ [name: string]: unknown;
2147
+ };
2148
+ content: {
2149
+ "application/json": components["schemas"]["ApiError"];
2150
+ };
2151
+ };
2152
+ 500: {
2153
+ headers: {
2154
+ [name: string]: unknown;
2155
+ };
2156
+ content: {
2157
+ "application/json": components["schemas"]["ApiError"];
2158
+ };
2159
+ };
2160
+ };
2161
+ };
2162
+ }