@witnium/witniumchain 0.27.0 → 0.28.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +29 -3
- package/dist/index.d.mts +1912 -465
- package/dist/index.d.ts +1912 -465
- package/dist/index.js +83 -25
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +83 -25
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -523,6 +523,270 @@ interface paths$1 {
|
|
|
523
523
|
patch?: never;
|
|
524
524
|
trace?: never;
|
|
525
525
|
};
|
|
526
|
+
"/v1/auth/identify": {
|
|
527
|
+
parameters: {
|
|
528
|
+
query?: never;
|
|
529
|
+
header?: never;
|
|
530
|
+
path?: never;
|
|
531
|
+
cookie?: never;
|
|
532
|
+
};
|
|
533
|
+
get?: never;
|
|
534
|
+
put?: never;
|
|
535
|
+
/**
|
|
536
|
+
* Email-first sign-in: which methods to offer
|
|
537
|
+
* @description The answer is the same for every address, known, unknown or unverified, and takes the same time: nothing about the address is looked up. Whether an account exists is decided only once a credential is presented, or by the email that signup sends.
|
|
538
|
+
*/
|
|
539
|
+
post: {
|
|
540
|
+
parameters: {
|
|
541
|
+
query?: never;
|
|
542
|
+
header?: never;
|
|
543
|
+
path?: never;
|
|
544
|
+
cookie?: never;
|
|
545
|
+
};
|
|
546
|
+
requestBody?: {
|
|
547
|
+
content: {
|
|
548
|
+
"application/json": {
|
|
549
|
+
/**
|
|
550
|
+
* Format: email
|
|
551
|
+
* @description RFC 5321 email address
|
|
552
|
+
* @example user@example.com
|
|
553
|
+
*/
|
|
554
|
+
email: string;
|
|
555
|
+
/** @description OAuth interaction to return to (`/interaction/:uid`) once the account is set up. */
|
|
556
|
+
interaction?: string;
|
|
557
|
+
};
|
|
558
|
+
};
|
|
559
|
+
};
|
|
560
|
+
responses: {
|
|
561
|
+
/** @description Created */
|
|
562
|
+
201: {
|
|
563
|
+
headers: {
|
|
564
|
+
[name: string]: unknown;
|
|
565
|
+
};
|
|
566
|
+
content: {
|
|
567
|
+
"application/json": {
|
|
568
|
+
/**
|
|
569
|
+
* @description What the app shows next. Today always `signin`: whether an account exists is never revealed here; signup is offered beside sign-in, and the signup email tells an existing account holder.
|
|
570
|
+
* @enum {string}
|
|
571
|
+
*/
|
|
572
|
+
next: "signin" | "signup";
|
|
573
|
+
/** @description Methods to offer. The same for every address (no account enumeration). Home-realm discovery may later add `{type: "federated", providerId}` entries. */
|
|
574
|
+
methods: ("passkey" | "password_totp")[];
|
|
575
|
+
};
|
|
576
|
+
};
|
|
577
|
+
};
|
|
578
|
+
/** @description Bad Request — validation failed */
|
|
579
|
+
400: {
|
|
580
|
+
headers: {
|
|
581
|
+
[name: string]: unknown;
|
|
582
|
+
};
|
|
583
|
+
content: {
|
|
584
|
+
"application/json": {
|
|
585
|
+
/**
|
|
586
|
+
* @description HTTP status code
|
|
587
|
+
* @example 400
|
|
588
|
+
*/
|
|
589
|
+
statusCode?: number;
|
|
590
|
+
/**
|
|
591
|
+
* @description Short error label
|
|
592
|
+
* @example Bad Request
|
|
593
|
+
*/
|
|
594
|
+
error?: string;
|
|
595
|
+
/**
|
|
596
|
+
* @description Human-readable error message. Validation errors from `ZodError.flatten()` may be returned as an array.
|
|
597
|
+
* @example Validation failed
|
|
598
|
+
*/
|
|
599
|
+
message: string | string[];
|
|
600
|
+
};
|
|
601
|
+
};
|
|
602
|
+
};
|
|
603
|
+
/** @description Forbidden — insufficient permissions or scope */
|
|
604
|
+
403: {
|
|
605
|
+
headers: {
|
|
606
|
+
[name: string]: unknown;
|
|
607
|
+
};
|
|
608
|
+
content: {
|
|
609
|
+
"application/json": {
|
|
610
|
+
/**
|
|
611
|
+
* @description HTTP status code
|
|
612
|
+
* @example 400
|
|
613
|
+
*/
|
|
614
|
+
statusCode?: number;
|
|
615
|
+
/**
|
|
616
|
+
* @description Short error label
|
|
617
|
+
* @example Bad Request
|
|
618
|
+
*/
|
|
619
|
+
error?: string;
|
|
620
|
+
/**
|
|
621
|
+
* @description Human-readable error message. Validation errors from `ZodError.flatten()` may be returned as an array.
|
|
622
|
+
* @example Validation failed
|
|
623
|
+
*/
|
|
624
|
+
message: string | string[];
|
|
625
|
+
};
|
|
626
|
+
};
|
|
627
|
+
};
|
|
628
|
+
/** @description Too Many Requests */
|
|
629
|
+
429: {
|
|
630
|
+
headers: {
|
|
631
|
+
[name: string]: unknown;
|
|
632
|
+
};
|
|
633
|
+
content: {
|
|
634
|
+
"application/json": {
|
|
635
|
+
/**
|
|
636
|
+
* @description HTTP status code
|
|
637
|
+
* @example 400
|
|
638
|
+
*/
|
|
639
|
+
statusCode?: number;
|
|
640
|
+
/**
|
|
641
|
+
* @description Short error label
|
|
642
|
+
* @example Bad Request
|
|
643
|
+
*/
|
|
644
|
+
error?: string;
|
|
645
|
+
/**
|
|
646
|
+
* @description Human-readable error message. Validation errors from `ZodError.flatten()` may be returned as an array.
|
|
647
|
+
* @example Validation failed
|
|
648
|
+
*/
|
|
649
|
+
message: string | string[];
|
|
650
|
+
};
|
|
651
|
+
};
|
|
652
|
+
};
|
|
653
|
+
};
|
|
654
|
+
};
|
|
655
|
+
delete?: never;
|
|
656
|
+
options?: never;
|
|
657
|
+
head?: never;
|
|
658
|
+
patch?: never;
|
|
659
|
+
trace?: never;
|
|
660
|
+
};
|
|
661
|
+
"/v1/auth/reenroll": {
|
|
662
|
+
parameters: {
|
|
663
|
+
query?: never;
|
|
664
|
+
header?: never;
|
|
665
|
+
path?: never;
|
|
666
|
+
cookie?: never;
|
|
667
|
+
};
|
|
668
|
+
get?: never;
|
|
669
|
+
put?: never;
|
|
670
|
+
/**
|
|
671
|
+
* Open a re-enrollment link
|
|
672
|
+
* @description Opens the link a sysadmin had emailed (plan §9.9; any browser: the link proves the mailbox) and sets the `wac_enroll` cookie (30 minutes): add a passkey, or a password + authenticator app, with the enrollment endpoints, without the recovery wait. The account's other methods stay. Opening does not use the link up: saving the method does, in the same transaction, so a link opened and not finished still works, in this browser or another; opening it again ends the enrollment opened before. One completed use, 72 hours; a newer link or any security change ends it (400, and its open enrollment ends). An account with an authenticator app proves a current code first.
|
|
673
|
+
*/
|
|
674
|
+
post: {
|
|
675
|
+
parameters: {
|
|
676
|
+
query?: never;
|
|
677
|
+
header?: never;
|
|
678
|
+
path?: never;
|
|
679
|
+
cookie?: never;
|
|
680
|
+
};
|
|
681
|
+
requestBody?: {
|
|
682
|
+
content: {
|
|
683
|
+
"application/json": {
|
|
684
|
+
/** @description Token from the re-enrollment email. */
|
|
685
|
+
token: string;
|
|
686
|
+
};
|
|
687
|
+
};
|
|
688
|
+
};
|
|
689
|
+
responses: {
|
|
690
|
+
/** @description Created */
|
|
691
|
+
201: {
|
|
692
|
+
headers: {
|
|
693
|
+
[name: string]: unknown;
|
|
694
|
+
};
|
|
695
|
+
content: {
|
|
696
|
+
"application/json": {
|
|
697
|
+
/**
|
|
698
|
+
* @description The `wac_enroll` cookie is set: continue with the enrollment endpoints.
|
|
699
|
+
* @enum {string}
|
|
700
|
+
*/
|
|
701
|
+
next: "secure-account";
|
|
702
|
+
/** @description The account the link is for, as `GET /v1/auth/enrollment` shows it too. The app compares it with a signed-in session to offer signing out first when that is another account. */
|
|
703
|
+
email: string;
|
|
704
|
+
};
|
|
705
|
+
};
|
|
706
|
+
};
|
|
707
|
+
/** @description Bad Request — validation failed */
|
|
708
|
+
400: {
|
|
709
|
+
headers: {
|
|
710
|
+
[name: string]: unknown;
|
|
711
|
+
};
|
|
712
|
+
content: {
|
|
713
|
+
"application/json": {
|
|
714
|
+
/**
|
|
715
|
+
* @description HTTP status code
|
|
716
|
+
* @example 400
|
|
717
|
+
*/
|
|
718
|
+
statusCode?: number;
|
|
719
|
+
/**
|
|
720
|
+
* @description Short error label
|
|
721
|
+
* @example Bad Request
|
|
722
|
+
*/
|
|
723
|
+
error?: string;
|
|
724
|
+
/**
|
|
725
|
+
* @description Human-readable error message. Validation errors from `ZodError.flatten()` may be returned as an array.
|
|
726
|
+
* @example Validation failed
|
|
727
|
+
*/
|
|
728
|
+
message: string | string[];
|
|
729
|
+
};
|
|
730
|
+
};
|
|
731
|
+
};
|
|
732
|
+
/** @description Forbidden — insufficient permissions or scope */
|
|
733
|
+
403: {
|
|
734
|
+
headers: {
|
|
735
|
+
[name: string]: unknown;
|
|
736
|
+
};
|
|
737
|
+
content: {
|
|
738
|
+
"application/json": {
|
|
739
|
+
/**
|
|
740
|
+
* @description HTTP status code
|
|
741
|
+
* @example 400
|
|
742
|
+
*/
|
|
743
|
+
statusCode?: number;
|
|
744
|
+
/**
|
|
745
|
+
* @description Short error label
|
|
746
|
+
* @example Bad Request
|
|
747
|
+
*/
|
|
748
|
+
error?: string;
|
|
749
|
+
/**
|
|
750
|
+
* @description Human-readable error message. Validation errors from `ZodError.flatten()` may be returned as an array.
|
|
751
|
+
* @example Validation failed
|
|
752
|
+
*/
|
|
753
|
+
message: string | string[];
|
|
754
|
+
};
|
|
755
|
+
};
|
|
756
|
+
};
|
|
757
|
+
/** @description Too Many Requests */
|
|
758
|
+
429: {
|
|
759
|
+
headers: {
|
|
760
|
+
[name: string]: unknown;
|
|
761
|
+
};
|
|
762
|
+
content: {
|
|
763
|
+
"application/json": {
|
|
764
|
+
/**
|
|
765
|
+
* @description HTTP status code
|
|
766
|
+
* @example 400
|
|
767
|
+
*/
|
|
768
|
+
statusCode?: number;
|
|
769
|
+
/**
|
|
770
|
+
* @description Short error label
|
|
771
|
+
* @example Bad Request
|
|
772
|
+
*/
|
|
773
|
+
error?: string;
|
|
774
|
+
/**
|
|
775
|
+
* @description Human-readable error message. Validation errors from `ZodError.flatten()` may be returned as an array.
|
|
776
|
+
* @example Validation failed
|
|
777
|
+
*/
|
|
778
|
+
message: string | string[];
|
|
779
|
+
};
|
|
780
|
+
};
|
|
781
|
+
};
|
|
782
|
+
};
|
|
783
|
+
};
|
|
784
|
+
delete?: never;
|
|
785
|
+
options?: never;
|
|
786
|
+
head?: never;
|
|
787
|
+
patch?: never;
|
|
788
|
+
trace?: never;
|
|
789
|
+
};
|
|
526
790
|
"/v1/auth/login": {
|
|
527
791
|
parameters: {
|
|
528
792
|
query?: never;
|
|
@@ -8051,6 +8315,11 @@ interface paths$1 {
|
|
|
8051
8315
|
};
|
|
8052
8316
|
content: {
|
|
8053
8317
|
"application/json": {
|
|
8318
|
+
/**
|
|
8319
|
+
* @description The caller's membership role in the organization (the token's or the session's org).
|
|
8320
|
+
* @enum {string}
|
|
8321
|
+
*/
|
|
8322
|
+
role: "org-admin" | "member";
|
|
8054
8323
|
/** AccountUser */
|
|
8055
8324
|
user: {
|
|
8056
8325
|
/**
|
|
@@ -9148,9 +9417,14 @@ interface paths$1 {
|
|
|
9148
9417
|
};
|
|
9149
9418
|
content: {
|
|
9150
9419
|
"application/json": {
|
|
9420
|
+
/**
|
|
9421
|
+
* Format: uuid
|
|
9422
|
+
* @description This enrollment. Every enrollment submission names it in `X-Enrollment-Id`.
|
|
9423
|
+
*/
|
|
9424
|
+
id: string;
|
|
9151
9425
|
email: string;
|
|
9152
9426
|
/** @enum {string} */
|
|
9153
|
-
purpose: "signup" | "recovery" | "recovery_code";
|
|
9427
|
+
purpose: "signup" | "recovery" | "recovery_code" | "reenroll";
|
|
9154
9428
|
/** @description OAuth interaction to return to (`/interaction/:uid`) once the account is set up. */
|
|
9155
9429
|
interaction: string | null;
|
|
9156
9430
|
/** @description An account from before D16 with an authenticator app: prove a current code first. */
|
|
@@ -9210,7 +9484,9 @@ interface paths$1 {
|
|
|
9210
9484
|
post: {
|
|
9211
9485
|
parameters: {
|
|
9212
9486
|
query?: never;
|
|
9213
|
-
header
|
|
9487
|
+
header: {
|
|
9488
|
+
"x-enrollment-id": string;
|
|
9489
|
+
};
|
|
9214
9490
|
path?: never;
|
|
9215
9491
|
cookie?: never;
|
|
9216
9492
|
};
|
|
@@ -9233,6 +9509,31 @@ interface paths$1 {
|
|
|
9233
9509
|
};
|
|
9234
9510
|
};
|
|
9235
9511
|
};
|
|
9512
|
+
/** @description Bad Request — validation failed */
|
|
9513
|
+
400: {
|
|
9514
|
+
headers: {
|
|
9515
|
+
[name: string]: unknown;
|
|
9516
|
+
};
|
|
9517
|
+
content: {
|
|
9518
|
+
"application/json": {
|
|
9519
|
+
/**
|
|
9520
|
+
* @description HTTP status code
|
|
9521
|
+
* @example 400
|
|
9522
|
+
*/
|
|
9523
|
+
statusCode?: number;
|
|
9524
|
+
/**
|
|
9525
|
+
* @description Short error label
|
|
9526
|
+
* @example Bad Request
|
|
9527
|
+
*/
|
|
9528
|
+
error?: string;
|
|
9529
|
+
/**
|
|
9530
|
+
* @description Human-readable error message. Validation errors from `ZodError.flatten()` may be returned as an array.
|
|
9531
|
+
* @example Validation failed
|
|
9532
|
+
*/
|
|
9533
|
+
message: string | string[];
|
|
9534
|
+
};
|
|
9535
|
+
};
|
|
9536
|
+
};
|
|
9236
9537
|
/** @description Unauthorized — authentication required or invalid */
|
|
9237
9538
|
401: {
|
|
9238
9539
|
headers: {
|
|
@@ -9283,6 +9584,31 @@ interface paths$1 {
|
|
|
9283
9584
|
};
|
|
9284
9585
|
};
|
|
9285
9586
|
};
|
|
9587
|
+
/** @description Conflict */
|
|
9588
|
+
409: {
|
|
9589
|
+
headers: {
|
|
9590
|
+
[name: string]: unknown;
|
|
9591
|
+
};
|
|
9592
|
+
content: {
|
|
9593
|
+
"application/json": {
|
|
9594
|
+
/**
|
|
9595
|
+
* @description HTTP status code
|
|
9596
|
+
* @example 400
|
|
9597
|
+
*/
|
|
9598
|
+
statusCode?: number;
|
|
9599
|
+
/**
|
|
9600
|
+
* @description Short error label
|
|
9601
|
+
* @example Bad Request
|
|
9602
|
+
*/
|
|
9603
|
+
error?: string;
|
|
9604
|
+
/**
|
|
9605
|
+
* @description Human-readable error message. Validation errors from `ZodError.flatten()` may be returned as an array.
|
|
9606
|
+
* @example Validation failed
|
|
9607
|
+
*/
|
|
9608
|
+
message: string | string[];
|
|
9609
|
+
};
|
|
9610
|
+
};
|
|
9611
|
+
};
|
|
9286
9612
|
};
|
|
9287
9613
|
};
|
|
9288
9614
|
delete?: never;
|
|
@@ -9307,7 +9633,9 @@ interface paths$1 {
|
|
|
9307
9633
|
post: {
|
|
9308
9634
|
parameters: {
|
|
9309
9635
|
query?: never;
|
|
9310
|
-
header
|
|
9636
|
+
header: {
|
|
9637
|
+
"x-enrollment-id": string;
|
|
9638
|
+
};
|
|
9311
9639
|
path?: never;
|
|
9312
9640
|
cookie?: never;
|
|
9313
9641
|
};
|
|
@@ -9324,6 +9652,31 @@ interface paths$1 {
|
|
|
9324
9652
|
};
|
|
9325
9653
|
};
|
|
9326
9654
|
};
|
|
9655
|
+
/** @description Bad Request — validation failed */
|
|
9656
|
+
400: {
|
|
9657
|
+
headers: {
|
|
9658
|
+
[name: string]: unknown;
|
|
9659
|
+
};
|
|
9660
|
+
content: {
|
|
9661
|
+
"application/json": {
|
|
9662
|
+
/**
|
|
9663
|
+
* @description HTTP status code
|
|
9664
|
+
* @example 400
|
|
9665
|
+
*/
|
|
9666
|
+
statusCode?: number;
|
|
9667
|
+
/**
|
|
9668
|
+
* @description Short error label
|
|
9669
|
+
* @example Bad Request
|
|
9670
|
+
*/
|
|
9671
|
+
error?: string;
|
|
9672
|
+
/**
|
|
9673
|
+
* @description Human-readable error message. Validation errors from `ZodError.flatten()` may be returned as an array.
|
|
9674
|
+
* @example Validation failed
|
|
9675
|
+
*/
|
|
9676
|
+
message: string | string[];
|
|
9677
|
+
};
|
|
9678
|
+
};
|
|
9679
|
+
};
|
|
9327
9680
|
/** @description Unauthorized — authentication required or invalid */
|
|
9328
9681
|
401: {
|
|
9329
9682
|
headers: {
|
|
@@ -9374,6 +9727,31 @@ interface paths$1 {
|
|
|
9374
9727
|
};
|
|
9375
9728
|
};
|
|
9376
9729
|
};
|
|
9730
|
+
/** @description Conflict */
|
|
9731
|
+
409: {
|
|
9732
|
+
headers: {
|
|
9733
|
+
[name: string]: unknown;
|
|
9734
|
+
};
|
|
9735
|
+
content: {
|
|
9736
|
+
"application/json": {
|
|
9737
|
+
/**
|
|
9738
|
+
* @description HTTP status code
|
|
9739
|
+
* @example 400
|
|
9740
|
+
*/
|
|
9741
|
+
statusCode?: number;
|
|
9742
|
+
/**
|
|
9743
|
+
* @description Short error label
|
|
9744
|
+
* @example Bad Request
|
|
9745
|
+
*/
|
|
9746
|
+
error?: string;
|
|
9747
|
+
/**
|
|
9748
|
+
* @description Human-readable error message. Validation errors from `ZodError.flatten()` may be returned as an array.
|
|
9749
|
+
* @example Validation failed
|
|
9750
|
+
*/
|
|
9751
|
+
message: string | string[];
|
|
9752
|
+
};
|
|
9753
|
+
};
|
|
9754
|
+
};
|
|
9377
9755
|
};
|
|
9378
9756
|
};
|
|
9379
9757
|
delete?: never;
|
|
@@ -9398,7 +9776,9 @@ interface paths$1 {
|
|
|
9398
9776
|
post: {
|
|
9399
9777
|
parameters: {
|
|
9400
9778
|
query?: never;
|
|
9401
|
-
header
|
|
9779
|
+
header: {
|
|
9780
|
+
"x-enrollment-id": string;
|
|
9781
|
+
};
|
|
9402
9782
|
path?: never;
|
|
9403
9783
|
cookie?: never;
|
|
9404
9784
|
};
|
|
@@ -9552,7 +9932,9 @@ interface paths$1 {
|
|
|
9552
9932
|
post: {
|
|
9553
9933
|
parameters: {
|
|
9554
9934
|
query?: never;
|
|
9555
|
-
header
|
|
9935
|
+
header: {
|
|
9936
|
+
"x-enrollment-id": string;
|
|
9937
|
+
};
|
|
9556
9938
|
path?: never;
|
|
9557
9939
|
cookie?: never;
|
|
9558
9940
|
};
|
|
@@ -9629,6 +10011,31 @@ interface paths$1 {
|
|
|
9629
10011
|
};
|
|
9630
10012
|
};
|
|
9631
10013
|
};
|
|
10014
|
+
/** @description Conflict */
|
|
10015
|
+
409: {
|
|
10016
|
+
headers: {
|
|
10017
|
+
[name: string]: unknown;
|
|
10018
|
+
};
|
|
10019
|
+
content: {
|
|
10020
|
+
"application/json": {
|
|
10021
|
+
/**
|
|
10022
|
+
* @description HTTP status code
|
|
10023
|
+
* @example 400
|
|
10024
|
+
*/
|
|
10025
|
+
statusCode?: number;
|
|
10026
|
+
/**
|
|
10027
|
+
* @description Short error label
|
|
10028
|
+
* @example Bad Request
|
|
10029
|
+
*/
|
|
10030
|
+
error?: string;
|
|
10031
|
+
/**
|
|
10032
|
+
* @description Human-readable error message. Validation errors from `ZodError.flatten()` may be returned as an array.
|
|
10033
|
+
* @example Validation failed
|
|
10034
|
+
*/
|
|
10035
|
+
message: string | string[];
|
|
10036
|
+
};
|
|
10037
|
+
};
|
|
10038
|
+
};
|
|
9632
10039
|
/** @description Service Unavailable */
|
|
9633
10040
|
503: {
|
|
9634
10041
|
headers: {
|
|
@@ -9678,7 +10085,9 @@ interface paths$1 {
|
|
|
9678
10085
|
post: {
|
|
9679
10086
|
parameters: {
|
|
9680
10087
|
query?: never;
|
|
9681
|
-
header
|
|
10088
|
+
header: {
|
|
10089
|
+
"x-enrollment-id": string;
|
|
10090
|
+
};
|
|
9682
10091
|
path?: never;
|
|
9683
10092
|
cookie?: never;
|
|
9684
10093
|
};
|
|
@@ -11595,18 +12004,20 @@ interface paths$1 {
|
|
|
11595
12004
|
patch?: never;
|
|
11596
12005
|
trace?: never;
|
|
11597
12006
|
};
|
|
11598
|
-
"/
|
|
12007
|
+
"/v1/auth/reauth/passkey/options": {
|
|
11599
12008
|
parameters: {
|
|
11600
12009
|
query?: never;
|
|
11601
12010
|
header?: never;
|
|
11602
12011
|
path?: never;
|
|
11603
12012
|
cookie?: never;
|
|
11604
12013
|
};
|
|
12014
|
+
get?: never;
|
|
12015
|
+
put?: never;
|
|
11605
12016
|
/**
|
|
11606
|
-
*
|
|
11607
|
-
* @description
|
|
12017
|
+
* Re-authentication: a passkey challenge for the signed-in user
|
|
12018
|
+
* @description For an authorization that asks for a fresh authentication (`reauth: true` on the interaction details). Lists only the signed-in user's passkeys and binds the challenge to that user (`wac_webauthn` cookie).
|
|
11608
12019
|
*/
|
|
11609
|
-
|
|
12020
|
+
post: {
|
|
11610
12021
|
parameters: {
|
|
11611
12022
|
query?: never;
|
|
11612
12023
|
header?: never;
|
|
@@ -11617,60 +12028,65 @@ interface paths$1 {
|
|
|
11617
12028
|
responses: {
|
|
11618
12029
|
/** @description Success */
|
|
11619
12030
|
200: {
|
|
12031
|
+
headers: {
|
|
12032
|
+
[name: string]: unknown;
|
|
12033
|
+
};
|
|
12034
|
+
content: {
|
|
12035
|
+
"application/json": Record<string, never>;
|
|
12036
|
+
};
|
|
12037
|
+
};
|
|
12038
|
+
/** @description Bad Request — validation failed */
|
|
12039
|
+
400: {
|
|
11620
12040
|
headers: {
|
|
11621
12041
|
[name: string]: unknown;
|
|
11622
12042
|
};
|
|
11623
12043
|
content: {
|
|
11624
12044
|
"application/json": {
|
|
11625
|
-
/**
|
|
11626
|
-
|
|
12045
|
+
/**
|
|
12046
|
+
* @description HTTP status code
|
|
12047
|
+
* @example 400
|
|
12048
|
+
*/
|
|
12049
|
+
statusCode?: number;
|
|
12050
|
+
/**
|
|
12051
|
+
* @description Short error label
|
|
12052
|
+
* @example Bad Request
|
|
12053
|
+
*/
|
|
12054
|
+
error?: string;
|
|
12055
|
+
/**
|
|
12056
|
+
* @description Human-readable error message. Validation errors from `ZodError.flatten()` may be returned as an array.
|
|
12057
|
+
* @example Validation failed
|
|
12058
|
+
*/
|
|
12059
|
+
message: string | string[];
|
|
11627
12060
|
};
|
|
11628
12061
|
};
|
|
11629
12062
|
};
|
|
11630
|
-
|
|
11631
|
-
|
|
11632
|
-
put?: never;
|
|
11633
|
-
post?: never;
|
|
11634
|
-
delete?: never;
|
|
11635
|
-
options?: never;
|
|
11636
|
-
head?: never;
|
|
11637
|
-
patch?: never;
|
|
11638
|
-
trace?: never;
|
|
11639
|
-
};
|
|
11640
|
-
"/health/ready": {
|
|
11641
|
-
parameters: {
|
|
11642
|
-
query?: never;
|
|
11643
|
-
header?: never;
|
|
11644
|
-
path?: never;
|
|
11645
|
-
cookie?: never;
|
|
11646
|
-
};
|
|
11647
|
-
/**
|
|
11648
|
-
* Readiness probe
|
|
11649
|
-
* @description Returns 200/`{status:"ok"}` once a trivial `SELECT 1` succeeds against PostgreSQL. 503 if the DB is unreachable.
|
|
11650
|
-
*/
|
|
11651
|
-
get: {
|
|
11652
|
-
parameters: {
|
|
11653
|
-
query?: never;
|
|
11654
|
-
header?: never;
|
|
11655
|
-
path?: never;
|
|
11656
|
-
cookie?: never;
|
|
11657
|
-
};
|
|
11658
|
-
requestBody?: never;
|
|
11659
|
-
responses: {
|
|
11660
|
-
/** @description Success */
|
|
11661
|
-
200: {
|
|
12063
|
+
/** @description Unauthorized — authentication required or invalid */
|
|
12064
|
+
401: {
|
|
11662
12065
|
headers: {
|
|
11663
12066
|
[name: string]: unknown;
|
|
11664
12067
|
};
|
|
11665
12068
|
content: {
|
|
11666
12069
|
"application/json": {
|
|
11667
|
-
/**
|
|
11668
|
-
|
|
12070
|
+
/**
|
|
12071
|
+
* @description HTTP status code
|
|
12072
|
+
* @example 400
|
|
12073
|
+
*/
|
|
12074
|
+
statusCode?: number;
|
|
12075
|
+
/**
|
|
12076
|
+
* @description Short error label
|
|
12077
|
+
* @example Bad Request
|
|
12078
|
+
*/
|
|
12079
|
+
error?: string;
|
|
12080
|
+
/**
|
|
12081
|
+
* @description Human-readable error message. Validation errors from `ZodError.flatten()` may be returned as an array.
|
|
12082
|
+
* @example Validation failed
|
|
12083
|
+
*/
|
|
12084
|
+
message: string | string[];
|
|
11669
12085
|
};
|
|
11670
12086
|
};
|
|
11671
12087
|
};
|
|
11672
|
-
/** @description
|
|
11673
|
-
|
|
12088
|
+
/** @description Forbidden — insufficient permissions or scope */
|
|
12089
|
+
403: {
|
|
11674
12090
|
headers: {
|
|
11675
12091
|
[name: string]: unknown;
|
|
11676
12092
|
};
|
|
@@ -11696,30 +12112,40 @@ interface paths$1 {
|
|
|
11696
12112
|
};
|
|
11697
12113
|
};
|
|
11698
12114
|
};
|
|
11699
|
-
put?: never;
|
|
11700
|
-
post?: never;
|
|
11701
12115
|
delete?: never;
|
|
11702
12116
|
options?: never;
|
|
11703
12117
|
head?: never;
|
|
11704
12118
|
patch?: never;
|
|
11705
12119
|
trace?: never;
|
|
11706
12120
|
};
|
|
11707
|
-
"/v1/
|
|
12121
|
+
"/v1/auth/reauth/passkey": {
|
|
11708
12122
|
parameters: {
|
|
11709
12123
|
query?: never;
|
|
11710
12124
|
header?: never;
|
|
11711
12125
|
path?: never;
|
|
11712
12126
|
cookie?: never;
|
|
11713
12127
|
};
|
|
11714
|
-
|
|
11715
|
-
|
|
12128
|
+
get?: never;
|
|
12129
|
+
put?: never;
|
|
12130
|
+
/**
|
|
12131
|
+
* Re-authentication with a passkey
|
|
12132
|
+
* @description Verifies a passkey of the signed-in user (another account's is refused, 400) and moves the session's last credential verification to now. Never issues or switches a session.
|
|
12133
|
+
*/
|
|
12134
|
+
post: {
|
|
11716
12135
|
parameters: {
|
|
11717
12136
|
query?: never;
|
|
11718
12137
|
header?: never;
|
|
11719
12138
|
path?: never;
|
|
11720
12139
|
cookie?: never;
|
|
11721
12140
|
};
|
|
11722
|
-
requestBody?:
|
|
12141
|
+
requestBody?: {
|
|
12142
|
+
content: {
|
|
12143
|
+
"application/json": {
|
|
12144
|
+
/** @description AuthenticationResponseJSON from navigator.credentials.get(). */
|
|
12145
|
+
credential: Record<string, never>;
|
|
12146
|
+
};
|
|
12147
|
+
};
|
|
12148
|
+
};
|
|
11723
12149
|
responses: {
|
|
11724
12150
|
/** @description Success */
|
|
11725
12151
|
200: {
|
|
@@ -11728,45 +12154,58 @@ interface paths$1 {
|
|
|
11728
12154
|
};
|
|
11729
12155
|
content: {
|
|
11730
12156
|
"application/json": {
|
|
11731
|
-
|
|
11732
|
-
|
|
11733
|
-
|
|
11734
|
-
|
|
11735
|
-
|
|
11736
|
-
|
|
11737
|
-
|
|
11738
|
-
|
|
11739
|
-
|
|
11740
|
-
|
|
11741
|
-
|
|
11742
|
-
|
|
11743
|
-
|
|
11744
|
-
|
|
11745
|
-
|
|
11746
|
-
|
|
11747
|
-
|
|
11748
|
-
|
|
11749
|
-
|
|
11750
|
-
|
|
11751
|
-
|
|
11752
|
-
|
|
11753
|
-
|
|
11754
|
-
|
|
11755
|
-
|
|
11756
|
-
|
|
11757
|
-
|
|
11758
|
-
|
|
11759
|
-
|
|
11760
|
-
|
|
11761
|
-
|
|
11762
|
-
|
|
11763
|
-
|
|
11764
|
-
|
|
11765
|
-
|
|
11766
|
-
|
|
11767
|
-
|
|
11768
|
-
/**
|
|
11769
|
-
|
|
12157
|
+
/** @enum {string} */
|
|
12158
|
+
status: "reauthenticated";
|
|
12159
|
+
};
|
|
12160
|
+
};
|
|
12161
|
+
};
|
|
12162
|
+
/** @description Bad Request — validation failed */
|
|
12163
|
+
400: {
|
|
12164
|
+
headers: {
|
|
12165
|
+
[name: string]: unknown;
|
|
12166
|
+
};
|
|
12167
|
+
content: {
|
|
12168
|
+
"application/json": {
|
|
12169
|
+
/**
|
|
12170
|
+
* @description HTTP status code
|
|
12171
|
+
* @example 400
|
|
12172
|
+
*/
|
|
12173
|
+
statusCode?: number;
|
|
12174
|
+
/**
|
|
12175
|
+
* @description Short error label
|
|
12176
|
+
* @example Bad Request
|
|
12177
|
+
*/
|
|
12178
|
+
error?: string;
|
|
12179
|
+
/**
|
|
12180
|
+
* @description Human-readable error message. Validation errors from `ZodError.flatten()` may be returned as an array.
|
|
12181
|
+
* @example Validation failed
|
|
12182
|
+
*/
|
|
12183
|
+
message: string | string[];
|
|
12184
|
+
};
|
|
12185
|
+
};
|
|
12186
|
+
};
|
|
12187
|
+
/** @description Unauthorized — authentication required or invalid */
|
|
12188
|
+
401: {
|
|
12189
|
+
headers: {
|
|
12190
|
+
[name: string]: unknown;
|
|
12191
|
+
};
|
|
12192
|
+
content: {
|
|
12193
|
+
"application/json": {
|
|
12194
|
+
/**
|
|
12195
|
+
* @description HTTP status code
|
|
12196
|
+
* @example 400
|
|
12197
|
+
*/
|
|
12198
|
+
statusCode?: number;
|
|
12199
|
+
/**
|
|
12200
|
+
* @description Short error label
|
|
12201
|
+
* @example Bad Request
|
|
12202
|
+
*/
|
|
12203
|
+
error?: string;
|
|
12204
|
+
/**
|
|
12205
|
+
* @description Human-readable error message. Validation errors from `ZodError.flatten()` may be returned as an array.
|
|
12206
|
+
* @example Validation failed
|
|
12207
|
+
*/
|
|
12208
|
+
message: string | string[];
|
|
11770
12209
|
};
|
|
11771
12210
|
};
|
|
11772
12211
|
};
|
|
@@ -11797,10 +12236,24 @@ interface paths$1 {
|
|
|
11797
12236
|
};
|
|
11798
12237
|
};
|
|
11799
12238
|
};
|
|
12239
|
+
delete?: never;
|
|
12240
|
+
options?: never;
|
|
12241
|
+
head?: never;
|
|
12242
|
+
patch?: never;
|
|
12243
|
+
trace?: never;
|
|
12244
|
+
};
|
|
12245
|
+
"/v1/auth/reauth/password": {
|
|
12246
|
+
parameters: {
|
|
12247
|
+
query?: never;
|
|
12248
|
+
header?: never;
|
|
12249
|
+
path?: never;
|
|
12250
|
+
cookie?: never;
|
|
12251
|
+
};
|
|
12252
|
+
get?: never;
|
|
11800
12253
|
put?: never;
|
|
11801
12254
|
/**
|
|
11802
|
-
*
|
|
11803
|
-
* @description
|
|
12255
|
+
* Re-authentication with password and authenticator code
|
|
12256
|
+
* @description Verifies the signed-in user's own password and a TOTP (or recovery) code, then moves the session's last credential verification to now. 401 on a wrong password or code; the session is unchanged.
|
|
11804
12257
|
*/
|
|
11805
12258
|
post: {
|
|
11806
12259
|
parameters: {
|
|
@@ -11812,38 +12265,25 @@ interface paths$1 {
|
|
|
11812
12265
|
requestBody?: {
|
|
11813
12266
|
content: {
|
|
11814
12267
|
"application/json": {
|
|
11815
|
-
/** @description
|
|
11816
|
-
|
|
11817
|
-
/** @description
|
|
11818
|
-
|
|
12268
|
+
/** @description The signed-in user's password. */
|
|
12269
|
+
password: string;
|
|
12270
|
+
/** @description Current 6-digit TOTP code. */
|
|
12271
|
+
code?: string;
|
|
12272
|
+
/** @description An unused recovery code instead of the TOTP code (consumed). */
|
|
12273
|
+
recoveryCode?: string;
|
|
11819
12274
|
};
|
|
11820
12275
|
};
|
|
11821
12276
|
};
|
|
11822
12277
|
responses: {
|
|
11823
|
-
/** @description
|
|
11824
|
-
|
|
12278
|
+
/** @description Success */
|
|
12279
|
+
200: {
|
|
11825
12280
|
headers: {
|
|
11826
12281
|
[name: string]: unknown;
|
|
11827
12282
|
};
|
|
11828
12283
|
content: {
|
|
11829
12284
|
"application/json": {
|
|
11830
|
-
/**
|
|
11831
|
-
|
|
11832
|
-
* @example 550e8400-e29b-41d4-a716-446655440000
|
|
11833
|
-
*/
|
|
11834
|
-
id: string;
|
|
11835
|
-
/**
|
|
11836
|
-
* @description The API key, `wcak_` and 64 hex. Shown only here; store it now.
|
|
11837
|
-
* @example wcak_0123456789abcdef…
|
|
11838
|
-
*/
|
|
11839
|
-
secret: string;
|
|
11840
|
-
label: string;
|
|
11841
|
-
externalUserRef: string | null;
|
|
11842
|
-
/**
|
|
11843
|
-
* @description `activating` until its signing key is confirmed on the contract (seconds); then `active`.
|
|
11844
|
-
* @enum {string}
|
|
11845
|
-
*/
|
|
11846
|
-
status: "activating" | "active" | "revoked";
|
|
12285
|
+
/** @enum {string} */
|
|
12286
|
+
status: "reauthenticated";
|
|
11847
12287
|
};
|
|
11848
12288
|
};
|
|
11849
12289
|
};
|
|
@@ -11872,8 +12312,8 @@ interface paths$1 {
|
|
|
11872
12312
|
};
|
|
11873
12313
|
};
|
|
11874
12314
|
};
|
|
11875
|
-
/** @description
|
|
11876
|
-
|
|
12315
|
+
/** @description Unauthorized — authentication required or invalid */
|
|
12316
|
+
401: {
|
|
11877
12317
|
headers: {
|
|
11878
12318
|
[name: string]: unknown;
|
|
11879
12319
|
};
|
|
@@ -11897,8 +12337,8 @@ interface paths$1 {
|
|
|
11897
12337
|
};
|
|
11898
12338
|
};
|
|
11899
12339
|
};
|
|
11900
|
-
/** @description
|
|
11901
|
-
|
|
12340
|
+
/** @description Forbidden — insufficient permissions or scope */
|
|
12341
|
+
403: {
|
|
11902
12342
|
headers: {
|
|
11903
12343
|
[name: string]: unknown;
|
|
11904
12344
|
};
|
|
@@ -11955,40 +12395,82 @@ interface paths$1 {
|
|
|
11955
12395
|
patch?: never;
|
|
11956
12396
|
trace?: never;
|
|
11957
12397
|
};
|
|
11958
|
-
"/
|
|
12398
|
+
"/health/live": {
|
|
11959
12399
|
parameters: {
|
|
11960
12400
|
query?: never;
|
|
11961
12401
|
header?: never;
|
|
11962
12402
|
path?: never;
|
|
11963
12403
|
cookie?: never;
|
|
11964
12404
|
};
|
|
11965
|
-
|
|
12405
|
+
/**
|
|
12406
|
+
* Liveness probe
|
|
12407
|
+
* @description Returns 200/`{status:"ok"}` whenever the process is running. Used by Kubernetes to decide whether to restart the pod.
|
|
12408
|
+
*/
|
|
12409
|
+
get: {
|
|
12410
|
+
parameters: {
|
|
12411
|
+
query?: never;
|
|
12412
|
+
header?: never;
|
|
12413
|
+
path?: never;
|
|
12414
|
+
cookie?: never;
|
|
12415
|
+
};
|
|
12416
|
+
requestBody?: never;
|
|
12417
|
+
responses: {
|
|
12418
|
+
/** @description Success */
|
|
12419
|
+
200: {
|
|
12420
|
+
headers: {
|
|
12421
|
+
[name: string]: unknown;
|
|
12422
|
+
};
|
|
12423
|
+
content: {
|
|
12424
|
+
"application/json": {
|
|
12425
|
+
/** @enum {string} */
|
|
12426
|
+
status: "ok";
|
|
12427
|
+
};
|
|
12428
|
+
};
|
|
12429
|
+
};
|
|
12430
|
+
};
|
|
12431
|
+
};
|
|
11966
12432
|
put?: never;
|
|
11967
12433
|
post?: never;
|
|
12434
|
+
delete?: never;
|
|
12435
|
+
options?: never;
|
|
12436
|
+
head?: never;
|
|
12437
|
+
patch?: never;
|
|
12438
|
+
trace?: never;
|
|
12439
|
+
};
|
|
12440
|
+
"/health/ready": {
|
|
12441
|
+
parameters: {
|
|
12442
|
+
query?: never;
|
|
12443
|
+
header?: never;
|
|
12444
|
+
path?: never;
|
|
12445
|
+
cookie?: never;
|
|
12446
|
+
};
|
|
11968
12447
|
/**
|
|
11969
|
-
*
|
|
11970
|
-
* @description
|
|
12448
|
+
* Readiness probe
|
|
12449
|
+
* @description Returns 200/`{status:"ok"}` once a trivial `SELECT 1` succeeds against PostgreSQL. 503 if the DB is unreachable.
|
|
11971
12450
|
*/
|
|
11972
|
-
|
|
12451
|
+
get: {
|
|
11973
12452
|
parameters: {
|
|
11974
12453
|
query?: never;
|
|
11975
12454
|
header?: never;
|
|
11976
|
-
path
|
|
11977
|
-
id: string;
|
|
11978
|
-
};
|
|
12455
|
+
path?: never;
|
|
11979
12456
|
cookie?: never;
|
|
11980
12457
|
};
|
|
11981
12458
|
requestBody?: never;
|
|
11982
12459
|
responses: {
|
|
11983
|
-
/** @description
|
|
11984
|
-
|
|
12460
|
+
/** @description Success */
|
|
12461
|
+
200: {
|
|
11985
12462
|
headers: {
|
|
11986
12463
|
[name: string]: unknown;
|
|
11987
12464
|
};
|
|
11988
|
-
content
|
|
12465
|
+
content: {
|
|
12466
|
+
"application/json": {
|
|
12467
|
+
/** @enum {string} */
|
|
12468
|
+
status: "ok";
|
|
12469
|
+
};
|
|
12470
|
+
};
|
|
11989
12471
|
};
|
|
11990
|
-
/** @description
|
|
11991
|
-
|
|
12472
|
+
/** @description Service Unavailable */
|
|
12473
|
+
503: {
|
|
11992
12474
|
headers: {
|
|
11993
12475
|
[name: string]: unknown;
|
|
11994
12476
|
};
|
|
@@ -12012,8 +12494,1008 @@ interface paths$1 {
|
|
|
12012
12494
|
};
|
|
12013
12495
|
};
|
|
12014
12496
|
};
|
|
12015
|
-
|
|
12016
|
-
|
|
12497
|
+
};
|
|
12498
|
+
};
|
|
12499
|
+
put?: never;
|
|
12500
|
+
post?: never;
|
|
12501
|
+
delete?: never;
|
|
12502
|
+
options?: never;
|
|
12503
|
+
head?: never;
|
|
12504
|
+
patch?: never;
|
|
12505
|
+
trace?: never;
|
|
12506
|
+
};
|
|
12507
|
+
"/v1/orgs/me/api-keys": {
|
|
12508
|
+
parameters: {
|
|
12509
|
+
query?: never;
|
|
12510
|
+
header?: never;
|
|
12511
|
+
path?: never;
|
|
12512
|
+
cookie?: never;
|
|
12513
|
+
};
|
|
12514
|
+
/** List your organization's API keys */
|
|
12515
|
+
get: {
|
|
12516
|
+
parameters: {
|
|
12517
|
+
query?: never;
|
|
12518
|
+
header?: never;
|
|
12519
|
+
path?: never;
|
|
12520
|
+
cookie?: never;
|
|
12521
|
+
};
|
|
12522
|
+
requestBody?: never;
|
|
12523
|
+
responses: {
|
|
12524
|
+
/** @description Success */
|
|
12525
|
+
200: {
|
|
12526
|
+
headers: {
|
|
12527
|
+
[name: string]: unknown;
|
|
12528
|
+
};
|
|
12529
|
+
content: {
|
|
12530
|
+
"application/json": {
|
|
12531
|
+
apiKeys: {
|
|
12532
|
+
/**
|
|
12533
|
+
* @description UUID v4
|
|
12534
|
+
* @example 550e8400-e29b-41d4-a716-446655440000
|
|
12535
|
+
*/
|
|
12536
|
+
id: string;
|
|
12537
|
+
label: string;
|
|
12538
|
+
externalUserRef: string | null;
|
|
12539
|
+
/** @example wcak_01234567 */
|
|
12540
|
+
secretPrefix: string;
|
|
12541
|
+
/**
|
|
12542
|
+
* Format: date-time
|
|
12543
|
+
* @description ISO 8601 date-time string
|
|
12544
|
+
* @example 2026-05-20T10:30:00.000Z
|
|
12545
|
+
*/
|
|
12546
|
+
createdAt: string;
|
|
12547
|
+
/** @description The creator's email; null once that account is deleted. */
|
|
12548
|
+
createdBy: string | null;
|
|
12549
|
+
/**
|
|
12550
|
+
* @description `activating` until its signing key is confirmed on the contract (seconds); then `active`.
|
|
12551
|
+
* @enum {string}
|
|
12552
|
+
*/
|
|
12553
|
+
status: "activating" | "active" | "revoked";
|
|
12554
|
+
/**
|
|
12555
|
+
* Format: date-time
|
|
12556
|
+
* @description ISO 8601 date-time string
|
|
12557
|
+
* @example 2026-05-20T10:30:00.000Z
|
|
12558
|
+
*/
|
|
12559
|
+
revokedAt: string | null;
|
|
12560
|
+
/** @enum {string|null} */
|
|
12561
|
+
revokeReason: "admin" | "add_failed" | null;
|
|
12562
|
+
/**
|
|
12563
|
+
* @description The key's signing public key on the contract.
|
|
12564
|
+
* @example 4cdde7a3e3a1d8a48d2b9eaf2bcbe2db1d57d3e1a8d6c20e0a86c0f9c4b6cf2e
|
|
12565
|
+
*/
|
|
12566
|
+
publicKey: string | null;
|
|
12567
|
+
}[];
|
|
12568
|
+
/** @description Whether the caller may create and revoke keys (an active org admin). */
|
|
12569
|
+
canManage: boolean;
|
|
12570
|
+
};
|
|
12571
|
+
};
|
|
12572
|
+
};
|
|
12573
|
+
/** @description Forbidden — insufficient permissions or scope */
|
|
12574
|
+
403: {
|
|
12575
|
+
headers: {
|
|
12576
|
+
[name: string]: unknown;
|
|
12577
|
+
};
|
|
12578
|
+
content: {
|
|
12579
|
+
"application/json": {
|
|
12580
|
+
/**
|
|
12581
|
+
* @description HTTP status code
|
|
12582
|
+
* @example 400
|
|
12583
|
+
*/
|
|
12584
|
+
statusCode?: number;
|
|
12585
|
+
/**
|
|
12586
|
+
* @description Short error label
|
|
12587
|
+
* @example Bad Request
|
|
12588
|
+
*/
|
|
12589
|
+
error?: string;
|
|
12590
|
+
/**
|
|
12591
|
+
* @description Human-readable error message. Validation errors from `ZodError.flatten()` may be returned as an array.
|
|
12592
|
+
* @example Validation failed
|
|
12593
|
+
*/
|
|
12594
|
+
message: string | string[];
|
|
12595
|
+
};
|
|
12596
|
+
};
|
|
12597
|
+
};
|
|
12598
|
+
};
|
|
12599
|
+
};
|
|
12600
|
+
put?: never;
|
|
12601
|
+
/**
|
|
12602
|
+
* Create an API key
|
|
12603
|
+
* @description An org admin of the caller's own organization, with a step-up in the last 5 minutes, on a Witnium-managed contract. Adds the key's signing key to the contract; the key works once it is active. 10 attempts per organization per hour.
|
|
12604
|
+
*/
|
|
12605
|
+
post: {
|
|
12606
|
+
parameters: {
|
|
12607
|
+
query?: never;
|
|
12608
|
+
header?: never;
|
|
12609
|
+
path?: never;
|
|
12610
|
+
cookie?: never;
|
|
12611
|
+
};
|
|
12612
|
+
requestBody?: {
|
|
12613
|
+
content: {
|
|
12614
|
+
"application/json": {
|
|
12615
|
+
/** @description What the key is for, e.g. "ingest server". */
|
|
12616
|
+
label: string;
|
|
12617
|
+
/** @description Your own name for a user this key stands in for (e.g. your user id). A label only: returned to your org, never logged, never public. */
|
|
12618
|
+
externalUserRef?: string;
|
|
12619
|
+
};
|
|
12620
|
+
};
|
|
12621
|
+
};
|
|
12622
|
+
responses: {
|
|
12623
|
+
/** @description Created */
|
|
12624
|
+
201: {
|
|
12625
|
+
headers: {
|
|
12626
|
+
[name: string]: unknown;
|
|
12627
|
+
};
|
|
12628
|
+
content: {
|
|
12629
|
+
"application/json": {
|
|
12630
|
+
/**
|
|
12631
|
+
* @description UUID v4
|
|
12632
|
+
* @example 550e8400-e29b-41d4-a716-446655440000
|
|
12633
|
+
*/
|
|
12634
|
+
id: string;
|
|
12635
|
+
/**
|
|
12636
|
+
* @description The API key, `wcak_` and 64 hex. Shown only here; store it now.
|
|
12637
|
+
* @example wcak_0123456789abcdef…
|
|
12638
|
+
*/
|
|
12639
|
+
secret: string;
|
|
12640
|
+
label: string;
|
|
12641
|
+
externalUserRef: string | null;
|
|
12642
|
+
/**
|
|
12643
|
+
* @description `activating` until its signing key is confirmed on the contract (seconds); then `active`.
|
|
12644
|
+
* @enum {string}
|
|
12645
|
+
*/
|
|
12646
|
+
status: "activating" | "active" | "revoked";
|
|
12647
|
+
};
|
|
12648
|
+
};
|
|
12649
|
+
};
|
|
12650
|
+
/** @description Bad Request — validation failed */
|
|
12651
|
+
400: {
|
|
12652
|
+
headers: {
|
|
12653
|
+
[name: string]: unknown;
|
|
12654
|
+
};
|
|
12655
|
+
content: {
|
|
12656
|
+
"application/json": {
|
|
12657
|
+
/**
|
|
12658
|
+
* @description HTTP status code
|
|
12659
|
+
* @example 400
|
|
12660
|
+
*/
|
|
12661
|
+
statusCode?: number;
|
|
12662
|
+
/**
|
|
12663
|
+
* @description Short error label
|
|
12664
|
+
* @example Bad Request
|
|
12665
|
+
*/
|
|
12666
|
+
error?: string;
|
|
12667
|
+
/**
|
|
12668
|
+
* @description Human-readable error message. Validation errors from `ZodError.flatten()` may be returned as an array.
|
|
12669
|
+
* @example Validation failed
|
|
12670
|
+
*/
|
|
12671
|
+
message: string | string[];
|
|
12672
|
+
};
|
|
12673
|
+
};
|
|
12674
|
+
};
|
|
12675
|
+
/** @description Forbidden — insufficient permissions or scope */
|
|
12676
|
+
403: {
|
|
12677
|
+
headers: {
|
|
12678
|
+
[name: string]: unknown;
|
|
12679
|
+
};
|
|
12680
|
+
content: {
|
|
12681
|
+
"application/json": {
|
|
12682
|
+
/**
|
|
12683
|
+
* @description HTTP status code
|
|
12684
|
+
* @example 400
|
|
12685
|
+
*/
|
|
12686
|
+
statusCode?: number;
|
|
12687
|
+
/**
|
|
12688
|
+
* @description Short error label
|
|
12689
|
+
* @example Bad Request
|
|
12690
|
+
*/
|
|
12691
|
+
error?: string;
|
|
12692
|
+
/**
|
|
12693
|
+
* @description Human-readable error message. Validation errors from `ZodError.flatten()` may be returned as an array.
|
|
12694
|
+
* @example Validation failed
|
|
12695
|
+
*/
|
|
12696
|
+
message: string | string[];
|
|
12697
|
+
};
|
|
12698
|
+
};
|
|
12699
|
+
};
|
|
12700
|
+
/** @description Conflict */
|
|
12701
|
+
409: {
|
|
12702
|
+
headers: {
|
|
12703
|
+
[name: string]: unknown;
|
|
12704
|
+
};
|
|
12705
|
+
content: {
|
|
12706
|
+
"application/json": {
|
|
12707
|
+
/**
|
|
12708
|
+
* @description HTTP status code
|
|
12709
|
+
* @example 400
|
|
12710
|
+
*/
|
|
12711
|
+
statusCode?: number;
|
|
12712
|
+
/**
|
|
12713
|
+
* @description Short error label
|
|
12714
|
+
* @example Bad Request
|
|
12715
|
+
*/
|
|
12716
|
+
error?: string;
|
|
12717
|
+
/**
|
|
12718
|
+
* @description Human-readable error message. Validation errors from `ZodError.flatten()` may be returned as an array.
|
|
12719
|
+
* @example Validation failed
|
|
12720
|
+
*/
|
|
12721
|
+
message: string | string[];
|
|
12722
|
+
};
|
|
12723
|
+
};
|
|
12724
|
+
};
|
|
12725
|
+
/** @description Too Many Requests */
|
|
12726
|
+
429: {
|
|
12727
|
+
headers: {
|
|
12728
|
+
[name: string]: unknown;
|
|
12729
|
+
};
|
|
12730
|
+
content: {
|
|
12731
|
+
"application/json": {
|
|
12732
|
+
/**
|
|
12733
|
+
* @description HTTP status code
|
|
12734
|
+
* @example 400
|
|
12735
|
+
*/
|
|
12736
|
+
statusCode?: number;
|
|
12737
|
+
/**
|
|
12738
|
+
* @description Short error label
|
|
12739
|
+
* @example Bad Request
|
|
12740
|
+
*/
|
|
12741
|
+
error?: string;
|
|
12742
|
+
/**
|
|
12743
|
+
* @description Human-readable error message. Validation errors from `ZodError.flatten()` may be returned as an array.
|
|
12744
|
+
* @example Validation failed
|
|
12745
|
+
*/
|
|
12746
|
+
message: string | string[];
|
|
12747
|
+
};
|
|
12748
|
+
};
|
|
12749
|
+
};
|
|
12750
|
+
};
|
|
12751
|
+
};
|
|
12752
|
+
delete?: never;
|
|
12753
|
+
options?: never;
|
|
12754
|
+
head?: never;
|
|
12755
|
+
patch?: never;
|
|
12756
|
+
trace?: never;
|
|
12757
|
+
};
|
|
12758
|
+
"/v1/orgs/me/api-keys/{id}": {
|
|
12759
|
+
parameters: {
|
|
12760
|
+
query?: never;
|
|
12761
|
+
header?: never;
|
|
12762
|
+
path?: never;
|
|
12763
|
+
cookie?: never;
|
|
12764
|
+
};
|
|
12765
|
+
get?: never;
|
|
12766
|
+
put?: never;
|
|
12767
|
+
post?: never;
|
|
12768
|
+
/**
|
|
12769
|
+
* Revoke an API key
|
|
12770
|
+
* @description Org admins. The key stops working when this returns; its signing key is then revoked on the contract. Revoking a revoked key is a no-op.
|
|
12771
|
+
*/
|
|
12772
|
+
delete: {
|
|
12773
|
+
parameters: {
|
|
12774
|
+
query?: never;
|
|
12775
|
+
header?: never;
|
|
12776
|
+
path: {
|
|
12777
|
+
id: string;
|
|
12778
|
+
};
|
|
12779
|
+
cookie?: never;
|
|
12780
|
+
};
|
|
12781
|
+
requestBody?: never;
|
|
12782
|
+
responses: {
|
|
12783
|
+
/** @description No Content */
|
|
12784
|
+
204: {
|
|
12785
|
+
headers: {
|
|
12786
|
+
[name: string]: unknown;
|
|
12787
|
+
};
|
|
12788
|
+
content?: never;
|
|
12789
|
+
};
|
|
12790
|
+
/** @description Forbidden — insufficient permissions or scope */
|
|
12791
|
+
403: {
|
|
12792
|
+
headers: {
|
|
12793
|
+
[name: string]: unknown;
|
|
12794
|
+
};
|
|
12795
|
+
content: {
|
|
12796
|
+
"application/json": {
|
|
12797
|
+
/**
|
|
12798
|
+
* @description HTTP status code
|
|
12799
|
+
* @example 400
|
|
12800
|
+
*/
|
|
12801
|
+
statusCode?: number;
|
|
12802
|
+
/**
|
|
12803
|
+
* @description Short error label
|
|
12804
|
+
* @example Bad Request
|
|
12805
|
+
*/
|
|
12806
|
+
error?: string;
|
|
12807
|
+
/**
|
|
12808
|
+
* @description Human-readable error message. Validation errors from `ZodError.flatten()` may be returned as an array.
|
|
12809
|
+
* @example Validation failed
|
|
12810
|
+
*/
|
|
12811
|
+
message: string | string[];
|
|
12812
|
+
};
|
|
12813
|
+
};
|
|
12814
|
+
};
|
|
12815
|
+
/** @description Not Found */
|
|
12816
|
+
404: {
|
|
12817
|
+
headers: {
|
|
12818
|
+
[name: string]: unknown;
|
|
12819
|
+
};
|
|
12820
|
+
content: {
|
|
12821
|
+
"application/json": {
|
|
12822
|
+
/**
|
|
12823
|
+
* @description HTTP status code
|
|
12824
|
+
* @example 400
|
|
12825
|
+
*/
|
|
12826
|
+
statusCode?: number;
|
|
12827
|
+
/**
|
|
12828
|
+
* @description Short error label
|
|
12829
|
+
* @example Bad Request
|
|
12830
|
+
*/
|
|
12831
|
+
error?: string;
|
|
12832
|
+
/**
|
|
12833
|
+
* @description Human-readable error message. Validation errors from `ZodError.flatten()` may be returned as an array.
|
|
12834
|
+
* @example Validation failed
|
|
12835
|
+
*/
|
|
12836
|
+
message: string | string[];
|
|
12837
|
+
};
|
|
12838
|
+
};
|
|
12839
|
+
};
|
|
12840
|
+
};
|
|
12841
|
+
};
|
|
12842
|
+
options?: never;
|
|
12843
|
+
head?: never;
|
|
12844
|
+
patch?: never;
|
|
12845
|
+
trace?: never;
|
|
12846
|
+
};
|
|
12847
|
+
"/v1/api-key": {
|
|
12848
|
+
parameters: {
|
|
12849
|
+
query?: never;
|
|
12850
|
+
header?: never;
|
|
12851
|
+
path?: never;
|
|
12852
|
+
cookie?: never;
|
|
12853
|
+
};
|
|
12854
|
+
/**
|
|
12855
|
+
* Describe the calling API key
|
|
12856
|
+
* @description Its contract and signing key, so a server finds what it signs with.
|
|
12857
|
+
*/
|
|
12858
|
+
get: {
|
|
12859
|
+
parameters: {
|
|
12860
|
+
query?: never;
|
|
12861
|
+
header?: never;
|
|
12862
|
+
path?: never;
|
|
12863
|
+
cookie?: never;
|
|
12864
|
+
};
|
|
12865
|
+
requestBody?: never;
|
|
12866
|
+
responses: {
|
|
12867
|
+
/** @description Success */
|
|
12868
|
+
200: {
|
|
12869
|
+
headers: {
|
|
12870
|
+
[name: string]: unknown;
|
|
12871
|
+
};
|
|
12872
|
+
content: {
|
|
12873
|
+
"application/json": {
|
|
12874
|
+
/**
|
|
12875
|
+
* @description UUID v4
|
|
12876
|
+
* @example 550e8400-e29b-41d4-a716-446655440000
|
|
12877
|
+
*/
|
|
12878
|
+
id: string;
|
|
12879
|
+
/**
|
|
12880
|
+
* @description UUID v4
|
|
12881
|
+
* @example 550e8400-e29b-41d4-a716-446655440000
|
|
12882
|
+
*/
|
|
12883
|
+
organizationId: string;
|
|
12884
|
+
/** @description The only contract this key writes to. */
|
|
12885
|
+
contractAddress: string;
|
|
12886
|
+
/**
|
|
12887
|
+
* @description Its signing key, for POST /v1/sign.
|
|
12888
|
+
* @example 550e8400-e29b-41d4-a716-446655440000
|
|
12889
|
+
*/
|
|
12890
|
+
delegatedKeyId: string;
|
|
12891
|
+
/**
|
|
12892
|
+
* @description Ed25519 public key — 32 bytes hex-encoded (64 chars, no 0x prefix)
|
|
12893
|
+
* @example 4cdde7a3e3a1d8a48d2b9eaf2bcbe2db1d57d3e1a8d6c20e0a86c0f9c4b6cf2e
|
|
12894
|
+
*/
|
|
12895
|
+
publicKey: string;
|
|
12896
|
+
label: string;
|
|
12897
|
+
externalUserRef: string | null;
|
|
12898
|
+
/** @enum {string} */
|
|
12899
|
+
status: "active";
|
|
12900
|
+
};
|
|
12901
|
+
};
|
|
12902
|
+
};
|
|
12903
|
+
/** @description Unauthorized — authentication required or invalid */
|
|
12904
|
+
401: {
|
|
12905
|
+
headers: {
|
|
12906
|
+
[name: string]: unknown;
|
|
12907
|
+
};
|
|
12908
|
+
content: {
|
|
12909
|
+
"application/json": {
|
|
12910
|
+
/**
|
|
12911
|
+
* @description HTTP status code
|
|
12912
|
+
* @example 400
|
|
12913
|
+
*/
|
|
12914
|
+
statusCode?: number;
|
|
12915
|
+
/**
|
|
12916
|
+
* @description Short error label
|
|
12917
|
+
* @example Bad Request
|
|
12918
|
+
*/
|
|
12919
|
+
error?: string;
|
|
12920
|
+
/**
|
|
12921
|
+
* @description Human-readable error message. Validation errors from `ZodError.flatten()` may be returned as an array.
|
|
12922
|
+
* @example Validation failed
|
|
12923
|
+
*/
|
|
12924
|
+
message: string | string[];
|
|
12925
|
+
};
|
|
12926
|
+
};
|
|
12927
|
+
};
|
|
12928
|
+
/** @description Forbidden — insufficient permissions or scope */
|
|
12929
|
+
403: {
|
|
12930
|
+
headers: {
|
|
12931
|
+
[name: string]: unknown;
|
|
12932
|
+
};
|
|
12933
|
+
content: {
|
|
12934
|
+
"application/json": {
|
|
12935
|
+
/**
|
|
12936
|
+
* @description HTTP status code
|
|
12937
|
+
* @example 400
|
|
12938
|
+
*/
|
|
12939
|
+
statusCode?: number;
|
|
12940
|
+
/**
|
|
12941
|
+
* @description Short error label
|
|
12942
|
+
* @example Bad Request
|
|
12943
|
+
*/
|
|
12944
|
+
error?: string;
|
|
12945
|
+
/**
|
|
12946
|
+
* @description Human-readable error message. Validation errors from `ZodError.flatten()` may be returned as an array.
|
|
12947
|
+
* @example Validation failed
|
|
12948
|
+
*/
|
|
12949
|
+
message: string | string[];
|
|
12950
|
+
};
|
|
12951
|
+
};
|
|
12952
|
+
};
|
|
12953
|
+
/** @description Conflict */
|
|
12954
|
+
409: {
|
|
12955
|
+
headers: {
|
|
12956
|
+
[name: string]: unknown;
|
|
12957
|
+
};
|
|
12958
|
+
content: {
|
|
12959
|
+
"application/json": {
|
|
12960
|
+
/**
|
|
12961
|
+
* @description HTTP status code
|
|
12962
|
+
* @example 400
|
|
12963
|
+
*/
|
|
12964
|
+
statusCode?: number;
|
|
12965
|
+
/**
|
|
12966
|
+
* @description Short error label
|
|
12967
|
+
* @example Bad Request
|
|
12968
|
+
*/
|
|
12969
|
+
error?: string;
|
|
12970
|
+
/**
|
|
12971
|
+
* @description Human-readable error message. Validation errors from `ZodError.flatten()` may be returned as an array.
|
|
12972
|
+
* @example Validation failed
|
|
12973
|
+
*/
|
|
12974
|
+
message: string | string[];
|
|
12975
|
+
};
|
|
12976
|
+
};
|
|
12977
|
+
};
|
|
12978
|
+
};
|
|
12979
|
+
};
|
|
12980
|
+
put?: never;
|
|
12981
|
+
post?: never;
|
|
12982
|
+
delete?: never;
|
|
12983
|
+
options?: never;
|
|
12984
|
+
head?: never;
|
|
12985
|
+
patch?: never;
|
|
12986
|
+
trace?: never;
|
|
12987
|
+
};
|
|
12988
|
+
"/v1/account/dashboard-key": {
|
|
12989
|
+
parameters: {
|
|
12990
|
+
query?: never;
|
|
12991
|
+
header?: never;
|
|
12992
|
+
path?: never;
|
|
12993
|
+
cookie?: never;
|
|
12994
|
+
};
|
|
12995
|
+
/**
|
|
12996
|
+
* Your dashboard signing key
|
|
12997
|
+
* @description On your organization's Witnium-managed contract. 409 for a self-custody organization or one without a contract.
|
|
12998
|
+
*/
|
|
12999
|
+
get: {
|
|
13000
|
+
parameters: {
|
|
13001
|
+
query?: never;
|
|
13002
|
+
header?: never;
|
|
13003
|
+
path?: never;
|
|
13004
|
+
cookie?: never;
|
|
13005
|
+
};
|
|
13006
|
+
requestBody?: never;
|
|
13007
|
+
responses: {
|
|
13008
|
+
/** @description Success */
|
|
13009
|
+
200: {
|
|
13010
|
+
headers: {
|
|
13011
|
+
[name: string]: unknown;
|
|
13012
|
+
};
|
|
13013
|
+
content: {
|
|
13014
|
+
"application/json": {
|
|
13015
|
+
/**
|
|
13016
|
+
* @description `activating` while the key is being added to the contract (seconds); `none` when there is none (or its add failed).
|
|
13017
|
+
* @enum {string}
|
|
13018
|
+
*/
|
|
13019
|
+
status: "none" | "activating" | "active";
|
|
13020
|
+
/**
|
|
13021
|
+
* @description The delegated key id, for POST /v1/sign.
|
|
13022
|
+
* @example 550e8400-e29b-41d4-a716-446655440000
|
|
13023
|
+
*/
|
|
13024
|
+
id: string | null;
|
|
13025
|
+
/**
|
|
13026
|
+
* @description Ed25519 public key — 32 bytes hex-encoded (64 chars, no 0x prefix)
|
|
13027
|
+
* @example 4cdde7a3e3a1d8a48d2b9eaf2bcbe2db1d57d3e1a8d6c20e0a86c0f9c4b6cf2e
|
|
13028
|
+
*/
|
|
13029
|
+
publicKey: string | null;
|
|
13030
|
+
/** @description Whether DELETE revokes it: true exactly when Witnium has recorded adding this key to the contract (also while that addition settles; DELETE then revokes whatever lands). False for your organization's base key (it stays), for a key whose addition is not recorded yet, and when there is none. */
|
|
13031
|
+
revocable: boolean;
|
|
13032
|
+
};
|
|
13033
|
+
};
|
|
13034
|
+
};
|
|
13035
|
+
/** @description Conflict */
|
|
13036
|
+
409: {
|
|
13037
|
+
headers: {
|
|
13038
|
+
[name: string]: unknown;
|
|
13039
|
+
};
|
|
13040
|
+
content: {
|
|
13041
|
+
"application/json": {
|
|
13042
|
+
/**
|
|
13043
|
+
* @description HTTP status code
|
|
13044
|
+
* @example 400
|
|
13045
|
+
*/
|
|
13046
|
+
statusCode?: number;
|
|
13047
|
+
/**
|
|
13048
|
+
* @description Short error label
|
|
13049
|
+
* @example Bad Request
|
|
13050
|
+
*/
|
|
13051
|
+
error?: string;
|
|
13052
|
+
/**
|
|
13053
|
+
* @description Human-readable error message. Validation errors from `ZodError.flatten()` may be returned as an array.
|
|
13054
|
+
* @example Validation failed
|
|
13055
|
+
*/
|
|
13056
|
+
message: string | string[];
|
|
13057
|
+
};
|
|
13058
|
+
};
|
|
13059
|
+
};
|
|
13060
|
+
};
|
|
13061
|
+
};
|
|
13062
|
+
put?: never;
|
|
13063
|
+
/**
|
|
13064
|
+
* Ensure your dashboard signing key
|
|
13065
|
+
* @description Idempotent. Creates your key and adds it to the contract with the managed owner key when you have none; poll GET until `active`. Members of a managed organization only (403 when suspended, 409 for self-custody). 5 attempts per hour.
|
|
13066
|
+
*/
|
|
13067
|
+
post: {
|
|
13068
|
+
parameters: {
|
|
13069
|
+
query?: never;
|
|
13070
|
+
header?: never;
|
|
13071
|
+
path?: never;
|
|
13072
|
+
cookie?: never;
|
|
13073
|
+
};
|
|
13074
|
+
requestBody?: never;
|
|
13075
|
+
responses: {
|
|
13076
|
+
/** @description Created */
|
|
13077
|
+
201: {
|
|
13078
|
+
headers: {
|
|
13079
|
+
[name: string]: unknown;
|
|
13080
|
+
};
|
|
13081
|
+
content: {
|
|
13082
|
+
"application/json": {
|
|
13083
|
+
/**
|
|
13084
|
+
* @description `activating` while the key is being added to the contract (seconds); `none` when there is none (or its add failed).
|
|
13085
|
+
* @enum {string}
|
|
13086
|
+
*/
|
|
13087
|
+
status: "none" | "activating" | "active";
|
|
13088
|
+
/**
|
|
13089
|
+
* @description The delegated key id, for POST /v1/sign.
|
|
13090
|
+
* @example 550e8400-e29b-41d4-a716-446655440000
|
|
13091
|
+
*/
|
|
13092
|
+
id: string | null;
|
|
13093
|
+
/**
|
|
13094
|
+
* @description Ed25519 public key — 32 bytes hex-encoded (64 chars, no 0x prefix)
|
|
13095
|
+
* @example 4cdde7a3e3a1d8a48d2b9eaf2bcbe2db1d57d3e1a8d6c20e0a86c0f9c4b6cf2e
|
|
13096
|
+
*/
|
|
13097
|
+
publicKey: string | null;
|
|
13098
|
+
/** @description Whether DELETE revokes it: true exactly when Witnium has recorded adding this key to the contract (also while that addition settles; DELETE then revokes whatever lands). False for your organization's base key (it stays), for a key whose addition is not recorded yet, and when there is none. */
|
|
13099
|
+
revocable: boolean;
|
|
13100
|
+
};
|
|
13101
|
+
};
|
|
13102
|
+
};
|
|
13103
|
+
/** @description Forbidden — insufficient permissions or scope */
|
|
13104
|
+
403: {
|
|
13105
|
+
headers: {
|
|
13106
|
+
[name: string]: unknown;
|
|
13107
|
+
};
|
|
13108
|
+
content: {
|
|
13109
|
+
"application/json": {
|
|
13110
|
+
/**
|
|
13111
|
+
* @description HTTP status code
|
|
13112
|
+
* @example 400
|
|
13113
|
+
*/
|
|
13114
|
+
statusCode?: number;
|
|
13115
|
+
/**
|
|
13116
|
+
* @description Short error label
|
|
13117
|
+
* @example Bad Request
|
|
13118
|
+
*/
|
|
13119
|
+
error?: string;
|
|
13120
|
+
/**
|
|
13121
|
+
* @description Human-readable error message. Validation errors from `ZodError.flatten()` may be returned as an array.
|
|
13122
|
+
* @example Validation failed
|
|
13123
|
+
*/
|
|
13124
|
+
message: string | string[];
|
|
13125
|
+
};
|
|
13126
|
+
};
|
|
13127
|
+
};
|
|
13128
|
+
/** @description Conflict */
|
|
13129
|
+
409: {
|
|
13130
|
+
headers: {
|
|
13131
|
+
[name: string]: unknown;
|
|
13132
|
+
};
|
|
13133
|
+
content: {
|
|
13134
|
+
"application/json": {
|
|
13135
|
+
/**
|
|
13136
|
+
* @description HTTP status code
|
|
13137
|
+
* @example 400
|
|
13138
|
+
*/
|
|
13139
|
+
statusCode?: number;
|
|
13140
|
+
/**
|
|
13141
|
+
* @description Short error label
|
|
13142
|
+
* @example Bad Request
|
|
13143
|
+
*/
|
|
13144
|
+
error?: string;
|
|
13145
|
+
/**
|
|
13146
|
+
* @description Human-readable error message. Validation errors from `ZodError.flatten()` may be returned as an array.
|
|
13147
|
+
* @example Validation failed
|
|
13148
|
+
*/
|
|
13149
|
+
message: string | string[];
|
|
13150
|
+
};
|
|
13151
|
+
};
|
|
13152
|
+
};
|
|
13153
|
+
/** @description Too Many Requests */
|
|
13154
|
+
429: {
|
|
13155
|
+
headers: {
|
|
13156
|
+
[name: string]: unknown;
|
|
13157
|
+
};
|
|
13158
|
+
content: {
|
|
13159
|
+
"application/json": {
|
|
13160
|
+
/**
|
|
13161
|
+
* @description HTTP status code
|
|
13162
|
+
* @example 400
|
|
13163
|
+
*/
|
|
13164
|
+
statusCode?: number;
|
|
13165
|
+
/**
|
|
13166
|
+
* @description Short error label
|
|
13167
|
+
* @example Bad Request
|
|
13168
|
+
*/
|
|
13169
|
+
error?: string;
|
|
13170
|
+
/**
|
|
13171
|
+
* @description Human-readable error message. Validation errors from `ZodError.flatten()` may be returned as an array.
|
|
13172
|
+
* @example Validation failed
|
|
13173
|
+
*/
|
|
13174
|
+
message: string | string[];
|
|
13175
|
+
};
|
|
13176
|
+
};
|
|
13177
|
+
};
|
|
13178
|
+
};
|
|
13179
|
+
};
|
|
13180
|
+
/**
|
|
13181
|
+
* Revoke your dashboard signing key
|
|
13182
|
+
* @description Revoked on the contract; your next witness adds a new one. 409 for your organization's base key (it stays) and for a key still being added.
|
|
13183
|
+
*/
|
|
13184
|
+
delete: {
|
|
13185
|
+
parameters: {
|
|
13186
|
+
query?: never;
|
|
13187
|
+
header?: never;
|
|
13188
|
+
path?: never;
|
|
13189
|
+
cookie?: never;
|
|
13190
|
+
};
|
|
13191
|
+
requestBody?: never;
|
|
13192
|
+
responses: {
|
|
13193
|
+
/** @description No Content */
|
|
13194
|
+
204: {
|
|
13195
|
+
headers: {
|
|
13196
|
+
[name: string]: unknown;
|
|
13197
|
+
};
|
|
13198
|
+
content?: never;
|
|
13199
|
+
};
|
|
13200
|
+
/** @description Conflict */
|
|
13201
|
+
409: {
|
|
13202
|
+
headers: {
|
|
13203
|
+
[name: string]: unknown;
|
|
13204
|
+
};
|
|
13205
|
+
content: {
|
|
13206
|
+
"application/json": {
|
|
13207
|
+
/**
|
|
13208
|
+
* @description HTTP status code
|
|
13209
|
+
* @example 400
|
|
13210
|
+
*/
|
|
13211
|
+
statusCode?: number;
|
|
13212
|
+
/**
|
|
13213
|
+
* @description Short error label
|
|
13214
|
+
* @example Bad Request
|
|
13215
|
+
*/
|
|
13216
|
+
error?: string;
|
|
13217
|
+
/**
|
|
13218
|
+
* @description Human-readable error message. Validation errors from `ZodError.flatten()` may be returned as an array.
|
|
13219
|
+
* @example Validation failed
|
|
13220
|
+
*/
|
|
13221
|
+
message: string | string[];
|
|
13222
|
+
};
|
|
13223
|
+
};
|
|
13224
|
+
};
|
|
13225
|
+
};
|
|
13226
|
+
};
|
|
13227
|
+
options?: never;
|
|
13228
|
+
head?: never;
|
|
13229
|
+
patch?: never;
|
|
13230
|
+
trace?: never;
|
|
13231
|
+
};
|
|
13232
|
+
"/v1/orgs/me/contract/pause": {
|
|
13233
|
+
parameters: {
|
|
13234
|
+
query?: never;
|
|
13235
|
+
header?: never;
|
|
13236
|
+
path?: never;
|
|
13237
|
+
cookie?: never;
|
|
13238
|
+
};
|
|
13239
|
+
get?: never;
|
|
13240
|
+
put?: never;
|
|
13241
|
+
/**
|
|
13242
|
+
* Pause witnessing
|
|
13243
|
+
* @description Org admins, Witnium-managed contracts. Immediate and protective: no step-up. 409 owner_op_settling while another change settles.
|
|
13244
|
+
*/
|
|
13245
|
+
post: {
|
|
13246
|
+
parameters: {
|
|
13247
|
+
query?: never;
|
|
13248
|
+
header?: never;
|
|
13249
|
+
path?: never;
|
|
13250
|
+
cookie?: never;
|
|
13251
|
+
};
|
|
13252
|
+
requestBody?: never;
|
|
13253
|
+
responses: {
|
|
13254
|
+
/** @description Success */
|
|
13255
|
+
200: {
|
|
13256
|
+
headers: {
|
|
13257
|
+
[name: string]: unknown;
|
|
13258
|
+
};
|
|
13259
|
+
content: {
|
|
13260
|
+
"application/json": {
|
|
13261
|
+
/** @enum {string} */
|
|
13262
|
+
status: "signed" | "submitted" | "confirmed" | "failed";
|
|
13263
|
+
};
|
|
13264
|
+
};
|
|
13265
|
+
};
|
|
13266
|
+
/** @description Forbidden — insufficient permissions or scope */
|
|
13267
|
+
403: {
|
|
13268
|
+
headers: {
|
|
13269
|
+
[name: string]: unknown;
|
|
13270
|
+
};
|
|
13271
|
+
content: {
|
|
13272
|
+
"application/json": {
|
|
13273
|
+
/**
|
|
13274
|
+
* @description HTTP status code
|
|
13275
|
+
* @example 400
|
|
13276
|
+
*/
|
|
13277
|
+
statusCode?: number;
|
|
13278
|
+
/**
|
|
13279
|
+
* @description Short error label
|
|
13280
|
+
* @example Bad Request
|
|
13281
|
+
*/
|
|
13282
|
+
error?: string;
|
|
13283
|
+
/**
|
|
13284
|
+
* @description Human-readable error message. Validation errors from `ZodError.flatten()` may be returned as an array.
|
|
13285
|
+
* @example Validation failed
|
|
13286
|
+
*/
|
|
13287
|
+
message: string | string[];
|
|
13288
|
+
};
|
|
13289
|
+
};
|
|
13290
|
+
};
|
|
13291
|
+
/** @description Conflict */
|
|
13292
|
+
409: {
|
|
13293
|
+
headers: {
|
|
13294
|
+
[name: string]: unknown;
|
|
13295
|
+
};
|
|
13296
|
+
content: {
|
|
13297
|
+
"application/json": {
|
|
13298
|
+
/**
|
|
13299
|
+
* @description HTTP status code
|
|
13300
|
+
* @example 400
|
|
13301
|
+
*/
|
|
13302
|
+
statusCode?: number;
|
|
13303
|
+
/**
|
|
13304
|
+
* @description Short error label
|
|
13305
|
+
* @example Bad Request
|
|
13306
|
+
*/
|
|
13307
|
+
error?: string;
|
|
13308
|
+
/**
|
|
13309
|
+
* @description Human-readable error message. Validation errors from `ZodError.flatten()` may be returned as an array.
|
|
13310
|
+
* @example Validation failed
|
|
13311
|
+
*/
|
|
13312
|
+
message: string | string[];
|
|
13313
|
+
};
|
|
13314
|
+
};
|
|
13315
|
+
};
|
|
13316
|
+
};
|
|
13317
|
+
};
|
|
13318
|
+
delete?: never;
|
|
13319
|
+
options?: never;
|
|
13320
|
+
head?: never;
|
|
13321
|
+
patch?: never;
|
|
13322
|
+
trace?: never;
|
|
13323
|
+
};
|
|
13324
|
+
"/v1/orgs/me/contract/resume": {
|
|
13325
|
+
parameters: {
|
|
13326
|
+
query?: never;
|
|
13327
|
+
header?: never;
|
|
13328
|
+
path?: never;
|
|
13329
|
+
cookie?: never;
|
|
13330
|
+
};
|
|
13331
|
+
get?: never;
|
|
13332
|
+
put?: never;
|
|
13333
|
+
/**
|
|
13334
|
+
* Resume witnessing
|
|
13335
|
+
* @description Org admins, Witnium-managed contracts, with a step-up in the last 5 minutes: on a session, a passkey or authenticator step-up; with a bearer token, an `auth_time` in the last 5 minutes (authorize with `max_age=0` first). 409 owner_op_settling while another change settles.
|
|
13336
|
+
*/
|
|
13337
|
+
post: {
|
|
13338
|
+
parameters: {
|
|
13339
|
+
query?: never;
|
|
13340
|
+
header?: never;
|
|
13341
|
+
path?: never;
|
|
13342
|
+
cookie?: never;
|
|
13343
|
+
};
|
|
13344
|
+
requestBody?: never;
|
|
13345
|
+
responses: {
|
|
13346
|
+
/** @description Success */
|
|
13347
|
+
200: {
|
|
13348
|
+
headers: {
|
|
13349
|
+
[name: string]: unknown;
|
|
13350
|
+
};
|
|
13351
|
+
content: {
|
|
13352
|
+
"application/json": {
|
|
13353
|
+
/** @enum {string} */
|
|
13354
|
+
status: "signed" | "submitted" | "confirmed" | "failed";
|
|
13355
|
+
};
|
|
13356
|
+
};
|
|
13357
|
+
};
|
|
13358
|
+
/** @description Forbidden — insufficient permissions or scope */
|
|
13359
|
+
403: {
|
|
13360
|
+
headers: {
|
|
13361
|
+
[name: string]: unknown;
|
|
13362
|
+
};
|
|
13363
|
+
content: {
|
|
13364
|
+
"application/json": {
|
|
13365
|
+
/**
|
|
13366
|
+
* @description HTTP status code
|
|
13367
|
+
* @example 400
|
|
13368
|
+
*/
|
|
13369
|
+
statusCode?: number;
|
|
13370
|
+
/**
|
|
13371
|
+
* @description Short error label
|
|
13372
|
+
* @example Bad Request
|
|
13373
|
+
*/
|
|
13374
|
+
error?: string;
|
|
13375
|
+
/**
|
|
13376
|
+
* @description Human-readable error message. Validation errors from `ZodError.flatten()` may be returned as an array.
|
|
13377
|
+
* @example Validation failed
|
|
13378
|
+
*/
|
|
13379
|
+
message: string | string[];
|
|
13380
|
+
};
|
|
13381
|
+
};
|
|
13382
|
+
};
|
|
13383
|
+
/** @description Conflict */
|
|
13384
|
+
409: {
|
|
13385
|
+
headers: {
|
|
13386
|
+
[name: string]: unknown;
|
|
13387
|
+
};
|
|
13388
|
+
content: {
|
|
13389
|
+
"application/json": {
|
|
13390
|
+
/**
|
|
13391
|
+
* @description HTTP status code
|
|
13392
|
+
* @example 400
|
|
13393
|
+
*/
|
|
13394
|
+
statusCode?: number;
|
|
13395
|
+
/**
|
|
13396
|
+
* @description Short error label
|
|
13397
|
+
* @example Bad Request
|
|
13398
|
+
*/
|
|
13399
|
+
error?: string;
|
|
13400
|
+
/**
|
|
13401
|
+
* @description Human-readable error message. Validation errors from `ZodError.flatten()` may be returned as an array.
|
|
13402
|
+
* @example Validation failed
|
|
13403
|
+
*/
|
|
13404
|
+
message: string | string[];
|
|
13405
|
+
};
|
|
13406
|
+
};
|
|
13407
|
+
};
|
|
13408
|
+
/** @description Too Many Requests */
|
|
13409
|
+
429: {
|
|
13410
|
+
headers: {
|
|
13411
|
+
[name: string]: unknown;
|
|
13412
|
+
};
|
|
13413
|
+
content: {
|
|
13414
|
+
"application/json": {
|
|
13415
|
+
/**
|
|
13416
|
+
* @description HTTP status code
|
|
13417
|
+
* @example 400
|
|
13418
|
+
*/
|
|
13419
|
+
statusCode?: number;
|
|
13420
|
+
/**
|
|
13421
|
+
* @description Short error label
|
|
13422
|
+
* @example Bad Request
|
|
13423
|
+
*/
|
|
13424
|
+
error?: string;
|
|
13425
|
+
/**
|
|
13426
|
+
* @description Human-readable error message. Validation errors from `ZodError.flatten()` may be returned as an array.
|
|
13427
|
+
* @example Validation failed
|
|
13428
|
+
*/
|
|
13429
|
+
message: string | string[];
|
|
13430
|
+
};
|
|
13431
|
+
};
|
|
13432
|
+
};
|
|
13433
|
+
};
|
|
13434
|
+
};
|
|
13435
|
+
delete?: never;
|
|
13436
|
+
options?: never;
|
|
13437
|
+
head?: never;
|
|
13438
|
+
patch?: never;
|
|
13439
|
+
trace?: never;
|
|
13440
|
+
};
|
|
13441
|
+
"/v1/orgs/me/owner-operations": {
|
|
13442
|
+
parameters: {
|
|
13443
|
+
query?: never;
|
|
13444
|
+
header?: never;
|
|
13445
|
+
path?: never;
|
|
13446
|
+
cookie?: never;
|
|
13447
|
+
};
|
|
13448
|
+
/**
|
|
13449
|
+
* Your organization's contract activity
|
|
13450
|
+
* @description The latest owner operations on the contract, newest first: keys added and revoked, pause and resume; and whether witnessing is paused now. Any active member.
|
|
13451
|
+
*/
|
|
13452
|
+
get: {
|
|
13453
|
+
parameters: {
|
|
13454
|
+
query?: {
|
|
13455
|
+
limit?: number;
|
|
13456
|
+
};
|
|
13457
|
+
header?: never;
|
|
13458
|
+
path?: never;
|
|
13459
|
+
cookie?: never;
|
|
13460
|
+
};
|
|
13461
|
+
requestBody?: never;
|
|
13462
|
+
responses: {
|
|
13463
|
+
/** @description Success */
|
|
13464
|
+
200: {
|
|
13465
|
+
headers: {
|
|
13466
|
+
[name: string]: unknown;
|
|
13467
|
+
};
|
|
13468
|
+
content: {
|
|
13469
|
+
"application/json": {
|
|
13470
|
+
operations: {
|
|
13471
|
+
/**
|
|
13472
|
+
* @description UUID v4
|
|
13473
|
+
* @example 550e8400-e29b-41d4-a716-446655440000
|
|
13474
|
+
*/
|
|
13475
|
+
id: string;
|
|
13476
|
+
/** @enum {string} */
|
|
13477
|
+
op: "add-signing-key" | "revoke-signing-key" | "pause" | "unpause";
|
|
13478
|
+
/** @enum {string} */
|
|
13479
|
+
status: "signed" | "submitted" | "confirmed" | "failed";
|
|
13480
|
+
/** @enum {string} */
|
|
13481
|
+
source: "connection" | "api-key" | "member-key" | "admin" | "operator";
|
|
13482
|
+
/** @description The API key's label or the member's email, when known. */
|
|
13483
|
+
label: string | null;
|
|
13484
|
+
/**
|
|
13485
|
+
* Format: date-time
|
|
13486
|
+
* @description ISO 8601 date-time string
|
|
13487
|
+
* @example 2026-05-20T10:30:00.000Z
|
|
13488
|
+
*/
|
|
13489
|
+
createdAt: string;
|
|
13490
|
+
txHash: string | null;
|
|
13491
|
+
}[];
|
|
13492
|
+
/** @description Whether witnessing is paused on the active contract: its newest confirmed pause or resume is a pause (false without an active contract). */
|
|
13493
|
+
paused: boolean;
|
|
13494
|
+
};
|
|
13495
|
+
};
|
|
13496
|
+
};
|
|
13497
|
+
/** @description Forbidden — insufficient permissions or scope */
|
|
13498
|
+
403: {
|
|
12017
13499
|
headers: {
|
|
12018
13500
|
[name: string]: unknown;
|
|
12019
13501
|
};
|
|
@@ -12039,30 +13521,47 @@ interface paths$1 {
|
|
|
12039
13521
|
};
|
|
12040
13522
|
};
|
|
12041
13523
|
};
|
|
13524
|
+
put?: never;
|
|
13525
|
+
post?: never;
|
|
13526
|
+
delete?: never;
|
|
12042
13527
|
options?: never;
|
|
12043
13528
|
head?: never;
|
|
12044
13529
|
patch?: never;
|
|
12045
13530
|
trace?: never;
|
|
12046
13531
|
};
|
|
12047
|
-
"/v1/
|
|
13532
|
+
"/v1/orgs/me/contract/keys": {
|
|
12048
13533
|
parameters: {
|
|
12049
13534
|
query?: never;
|
|
12050
13535
|
header?: never;
|
|
12051
13536
|
path?: never;
|
|
12052
13537
|
cookie?: never;
|
|
12053
13538
|
};
|
|
13539
|
+
get?: never;
|
|
13540
|
+
put?: never;
|
|
12054
13541
|
/**
|
|
12055
|
-
*
|
|
12056
|
-
* @description
|
|
13542
|
+
* Add a key you hold to the managed contract
|
|
13543
|
+
* @description Plan §17.7. Org admins, after a step-up. Witnium signs the add with the managed owner key; the key counts once the op confirms (`status`), and the admins are emailed. 409 owner_op_settling while another change settles. With a bearer token, the step-up is an `auth_time` in the last 5 minutes (authorize with `max_age=0` first).
|
|
12057
13544
|
*/
|
|
12058
|
-
|
|
13545
|
+
post: {
|
|
12059
13546
|
parameters: {
|
|
12060
13547
|
query?: never;
|
|
12061
13548
|
header?: never;
|
|
12062
13549
|
path?: never;
|
|
12063
13550
|
cookie?: never;
|
|
12064
13551
|
};
|
|
12065
|
-
requestBody?:
|
|
13552
|
+
requestBody?: {
|
|
13553
|
+
content: {
|
|
13554
|
+
"application/json": {
|
|
13555
|
+
/**
|
|
13556
|
+
* @description A key you hold (your SDK, your own systems). Witnium never sees its private key.
|
|
13557
|
+
* @example 4cdde7a3e3a1d8a48d2b9eaf2bcbe2db1d57d3e1a8d6c20e0a86c0f9c4b6cf2e
|
|
13558
|
+
*/
|
|
13559
|
+
publicKey: string;
|
|
13560
|
+
/** @description A name for the key, e.g. "ingest server". */
|
|
13561
|
+
label: string;
|
|
13562
|
+
};
|
|
13563
|
+
};
|
|
13564
|
+
};
|
|
12066
13565
|
responses: {
|
|
12067
13566
|
/** @description Success */
|
|
12068
13567
|
200: {
|
|
@@ -12071,37 +13570,13 @@ interface paths$1 {
|
|
|
12071
13570
|
};
|
|
12072
13571
|
content: {
|
|
12073
13572
|
"application/json": {
|
|
12074
|
-
/**
|
|
12075
|
-
* @description UUID v4
|
|
12076
|
-
* @example 550e8400-e29b-41d4-a716-446655440000
|
|
12077
|
-
*/
|
|
12078
|
-
id: string;
|
|
12079
|
-
/**
|
|
12080
|
-
* @description UUID v4
|
|
12081
|
-
* @example 550e8400-e29b-41d4-a716-446655440000
|
|
12082
|
-
*/
|
|
12083
|
-
organizationId: string;
|
|
12084
|
-
/** @description The only contract this key writes to. */
|
|
12085
|
-
contractAddress: string;
|
|
12086
|
-
/**
|
|
12087
|
-
* @description Its signing key, for POST /v1/sign.
|
|
12088
|
-
* @example 550e8400-e29b-41d4-a716-446655440000
|
|
12089
|
-
*/
|
|
12090
|
-
delegatedKeyId: string;
|
|
12091
|
-
/**
|
|
12092
|
-
* @description Ed25519 public key — 32 bytes hex-encoded (64 chars, no 0x prefix)
|
|
12093
|
-
* @example 4cdde7a3e3a1d8a48d2b9eaf2bcbe2db1d57d3e1a8d6c20e0a86c0f9c4b6cf2e
|
|
12094
|
-
*/
|
|
12095
|
-
publicKey: string;
|
|
12096
|
-
label: string;
|
|
12097
|
-
externalUserRef: string | null;
|
|
12098
13573
|
/** @enum {string} */
|
|
12099
|
-
status: "
|
|
13574
|
+
status: "signed" | "submitted" | "confirmed" | "failed";
|
|
12100
13575
|
};
|
|
12101
13576
|
};
|
|
12102
13577
|
};
|
|
12103
|
-
/** @description
|
|
12104
|
-
|
|
13578
|
+
/** @description Bad Request — validation failed */
|
|
13579
|
+
400: {
|
|
12105
13580
|
headers: {
|
|
12106
13581
|
[name: string]: unknown;
|
|
12107
13582
|
};
|
|
@@ -12125,8 +13600,8 @@ interface paths$1 {
|
|
|
12125
13600
|
};
|
|
12126
13601
|
};
|
|
12127
13602
|
};
|
|
12128
|
-
/** @description
|
|
12129
|
-
|
|
13603
|
+
/** @description Unauthorized — authentication required or invalid */
|
|
13604
|
+
401: {
|
|
12130
13605
|
headers: {
|
|
12131
13606
|
[name: string]: unknown;
|
|
12132
13607
|
};
|
|
@@ -12150,8 +13625,8 @@ interface paths$1 {
|
|
|
12150
13625
|
};
|
|
12151
13626
|
};
|
|
12152
13627
|
};
|
|
12153
|
-
/** @description
|
|
12154
|
-
|
|
13628
|
+
/** @description Forbidden — insufficient permissions or scope */
|
|
13629
|
+
403: {
|
|
12155
13630
|
headers: {
|
|
12156
13631
|
[name: string]: unknown;
|
|
12157
13632
|
};
|
|
@@ -12175,65 +13650,33 @@ interface paths$1 {
|
|
|
12175
13650
|
};
|
|
12176
13651
|
};
|
|
12177
13652
|
};
|
|
12178
|
-
|
|
12179
|
-
|
|
12180
|
-
put?: never;
|
|
12181
|
-
post?: never;
|
|
12182
|
-
delete?: never;
|
|
12183
|
-
options?: never;
|
|
12184
|
-
head?: never;
|
|
12185
|
-
patch?: never;
|
|
12186
|
-
trace?: never;
|
|
12187
|
-
};
|
|
12188
|
-
"/v1/account/dashboard-key": {
|
|
12189
|
-
parameters: {
|
|
12190
|
-
query?: never;
|
|
12191
|
-
header?: never;
|
|
12192
|
-
path?: never;
|
|
12193
|
-
cookie?: never;
|
|
12194
|
-
};
|
|
12195
|
-
/**
|
|
12196
|
-
* Your dashboard signing key
|
|
12197
|
-
* @description On your organization's Witnium-managed contract. 409 for a self-custody organization or one without a contract.
|
|
12198
|
-
*/
|
|
12199
|
-
get: {
|
|
12200
|
-
parameters: {
|
|
12201
|
-
query?: never;
|
|
12202
|
-
header?: never;
|
|
12203
|
-
path?: never;
|
|
12204
|
-
cookie?: never;
|
|
12205
|
-
};
|
|
12206
|
-
requestBody?: never;
|
|
12207
|
-
responses: {
|
|
12208
|
-
/** @description Success */
|
|
12209
|
-
200: {
|
|
13653
|
+
/** @description Conflict */
|
|
13654
|
+
409: {
|
|
12210
13655
|
headers: {
|
|
12211
13656
|
[name: string]: unknown;
|
|
12212
13657
|
};
|
|
12213
13658
|
content: {
|
|
12214
13659
|
"application/json": {
|
|
12215
13660
|
/**
|
|
12216
|
-
* @description
|
|
12217
|
-
* @
|
|
13661
|
+
* @description HTTP status code
|
|
13662
|
+
* @example 400
|
|
12218
13663
|
*/
|
|
12219
|
-
|
|
13664
|
+
statusCode?: number;
|
|
12220
13665
|
/**
|
|
12221
|
-
* @description
|
|
12222
|
-
* @example
|
|
13666
|
+
* @description Short error label
|
|
13667
|
+
* @example Bad Request
|
|
12223
13668
|
*/
|
|
12224
|
-
|
|
13669
|
+
error?: string;
|
|
12225
13670
|
/**
|
|
12226
|
-
* @description
|
|
12227
|
-
* @example
|
|
13671
|
+
* @description Human-readable error message. Validation errors from `ZodError.flatten()` may be returned as an array.
|
|
13672
|
+
* @example Validation failed
|
|
12228
13673
|
*/
|
|
12229
|
-
|
|
12230
|
-
/** @description Whether DELETE revokes it: true exactly when Witnium has recorded adding this key to the contract (also while that addition settles; DELETE then revokes whatever lands). False for your organization's base key (it stays), for a key whose addition is not recorded yet, and when there is none. */
|
|
12231
|
-
revocable: boolean;
|
|
13674
|
+
message: string | string[];
|
|
12232
13675
|
};
|
|
12233
13676
|
};
|
|
12234
13677
|
};
|
|
12235
|
-
/** @description
|
|
12236
|
-
|
|
13678
|
+
/** @description Too Many Requests */
|
|
13679
|
+
429: {
|
|
12237
13680
|
headers: {
|
|
12238
13681
|
[name: string]: unknown;
|
|
12239
13682
|
};
|
|
@@ -12259,49 +13702,51 @@ interface paths$1 {
|
|
|
12259
13702
|
};
|
|
12260
13703
|
};
|
|
12261
13704
|
};
|
|
13705
|
+
delete?: never;
|
|
13706
|
+
options?: never;
|
|
13707
|
+
head?: never;
|
|
13708
|
+
patch?: never;
|
|
13709
|
+
trace?: never;
|
|
13710
|
+
};
|
|
13711
|
+
"/v1/orgs/me/contract/keys/{publicKey}": {
|
|
13712
|
+
parameters: {
|
|
13713
|
+
query?: never;
|
|
13714
|
+
header?: never;
|
|
13715
|
+
path?: never;
|
|
13716
|
+
cookie?: never;
|
|
13717
|
+
};
|
|
13718
|
+
get?: never;
|
|
12262
13719
|
put?: never;
|
|
13720
|
+
post?: never;
|
|
12263
13721
|
/**
|
|
12264
|
-
*
|
|
12265
|
-
* @description
|
|
13722
|
+
* Revoke a key you hold from the managed contract
|
|
13723
|
+
* @description Org admins; protective, no step-up. The key stops counting at once and Witnium signs the on-chain revoke (`status`); a key whose add never landed is just ended (`ended`).
|
|
12266
13724
|
*/
|
|
12267
|
-
|
|
13725
|
+
delete: {
|
|
12268
13726
|
parameters: {
|
|
12269
13727
|
query?: never;
|
|
12270
13728
|
header?: never;
|
|
12271
|
-
path
|
|
13729
|
+
path: {
|
|
13730
|
+
publicKey: string;
|
|
13731
|
+
};
|
|
12272
13732
|
cookie?: never;
|
|
12273
13733
|
};
|
|
12274
13734
|
requestBody?: never;
|
|
12275
13735
|
responses: {
|
|
12276
|
-
/** @description
|
|
12277
|
-
|
|
13736
|
+
/** @description Success */
|
|
13737
|
+
200: {
|
|
12278
13738
|
headers: {
|
|
12279
13739
|
[name: string]: unknown;
|
|
12280
13740
|
};
|
|
12281
13741
|
content: {
|
|
12282
13742
|
"application/json": {
|
|
12283
|
-
/**
|
|
12284
|
-
|
|
12285
|
-
* @enum {string}
|
|
12286
|
-
*/
|
|
12287
|
-
status: "none" | "activating" | "active";
|
|
12288
|
-
/**
|
|
12289
|
-
* @description The delegated key id, for POST /v1/sign.
|
|
12290
|
-
* @example 550e8400-e29b-41d4-a716-446655440000
|
|
12291
|
-
*/
|
|
12292
|
-
id: string | null;
|
|
12293
|
-
/**
|
|
12294
|
-
* @description Ed25519 public key — 32 bytes hex-encoded (64 chars, no 0x prefix)
|
|
12295
|
-
* @example 4cdde7a3e3a1d8a48d2b9eaf2bcbe2db1d57d3e1a8d6c20e0a86c0f9c4b6cf2e
|
|
12296
|
-
*/
|
|
12297
|
-
publicKey: string | null;
|
|
12298
|
-
/** @description Whether DELETE revokes it: true exactly when Witnium has recorded adding this key to the contract (also while that addition settles; DELETE then revokes whatever lands). False for your organization's base key (it stays), for a key whose addition is not recorded yet, and when there is none. */
|
|
12299
|
-
revocable: boolean;
|
|
13743
|
+
/** @enum {string} */
|
|
13744
|
+
status: "signed" | "submitted" | "confirmed" | "failed" | "ended";
|
|
12300
13745
|
};
|
|
12301
13746
|
};
|
|
12302
13747
|
};
|
|
12303
|
-
/** @description
|
|
12304
|
-
|
|
13748
|
+
/** @description Unauthorized — authentication required or invalid */
|
|
13749
|
+
401: {
|
|
12305
13750
|
headers: {
|
|
12306
13751
|
[name: string]: unknown;
|
|
12307
13752
|
};
|
|
@@ -12325,8 +13770,8 @@ interface paths$1 {
|
|
|
12325
13770
|
};
|
|
12326
13771
|
};
|
|
12327
13772
|
};
|
|
12328
|
-
/** @description
|
|
12329
|
-
|
|
13773
|
+
/** @description Forbidden — insufficient permissions or scope */
|
|
13774
|
+
403: {
|
|
12330
13775
|
headers: {
|
|
12331
13776
|
[name: string]: unknown;
|
|
12332
13777
|
};
|
|
@@ -12350,8 +13795,8 @@ interface paths$1 {
|
|
|
12350
13795
|
};
|
|
12351
13796
|
};
|
|
12352
13797
|
};
|
|
12353
|
-
/** @description
|
|
12354
|
-
|
|
13798
|
+
/** @description Not Found */
|
|
13799
|
+
404: {
|
|
12355
13800
|
headers: {
|
|
12356
13801
|
[name: string]: unknown;
|
|
12357
13802
|
};
|
|
@@ -12375,28 +13820,6 @@ interface paths$1 {
|
|
|
12375
13820
|
};
|
|
12376
13821
|
};
|
|
12377
13822
|
};
|
|
12378
|
-
};
|
|
12379
|
-
};
|
|
12380
|
-
/**
|
|
12381
|
-
* Revoke your dashboard signing key
|
|
12382
|
-
* @description Revoked on the contract; your next witness adds a new one. 409 for your organization's base key (it stays) and for a key still being added.
|
|
12383
|
-
*/
|
|
12384
|
-
delete: {
|
|
12385
|
-
parameters: {
|
|
12386
|
-
query?: never;
|
|
12387
|
-
header?: never;
|
|
12388
|
-
path?: never;
|
|
12389
|
-
cookie?: never;
|
|
12390
|
-
};
|
|
12391
|
-
requestBody?: never;
|
|
12392
|
-
responses: {
|
|
12393
|
-
/** @description No Content */
|
|
12394
|
-
204: {
|
|
12395
|
-
headers: {
|
|
12396
|
-
[name: string]: unknown;
|
|
12397
|
-
};
|
|
12398
|
-
content?: never;
|
|
12399
|
-
};
|
|
12400
13823
|
/** @description Conflict */
|
|
12401
13824
|
409: {
|
|
12402
13825
|
headers: {
|
|
@@ -12429,24 +13852,24 @@ interface paths$1 {
|
|
|
12429
13852
|
patch?: never;
|
|
12430
13853
|
trace?: never;
|
|
12431
13854
|
};
|
|
12432
|
-
"/
|
|
13855
|
+
"/interaction/{uid}/details": {
|
|
12433
13856
|
parameters: {
|
|
12434
13857
|
query?: never;
|
|
12435
13858
|
header?: never;
|
|
12436
13859
|
path?: never;
|
|
12437
13860
|
cookie?: never;
|
|
12438
13861
|
};
|
|
12439
|
-
get?: never;
|
|
12440
|
-
put?: never;
|
|
12441
13862
|
/**
|
|
12442
|
-
*
|
|
12443
|
-
* @description
|
|
13863
|
+
* What the account app shows for an interaction
|
|
13864
|
+
* @description Login prompt (no session needed): the client and its product branding. Consent prompt: also the requested scopes and whether consent may be given now; 401 without the provider session. 410 when the interaction is finished or expired. Needs the provider's `_interaction` cookie (path `/interaction/<uid>`), which the browser holds from /auth.
|
|
12444
13865
|
*/
|
|
12445
|
-
|
|
13866
|
+
get: {
|
|
12446
13867
|
parameters: {
|
|
12447
13868
|
query?: never;
|
|
12448
13869
|
header?: never;
|
|
12449
|
-
path
|
|
13870
|
+
path: {
|
|
13871
|
+
uid: string;
|
|
13872
|
+
};
|
|
12450
13873
|
cookie?: never;
|
|
12451
13874
|
};
|
|
12452
13875
|
requestBody?: never;
|
|
@@ -12458,13 +13881,91 @@ interface paths$1 {
|
|
|
12458
13881
|
};
|
|
12459
13882
|
content: {
|
|
12460
13883
|
"application/json": {
|
|
13884
|
+
uid: string;
|
|
12461
13885
|
/** @enum {string} */
|
|
12462
|
-
|
|
13886
|
+
prompt: "login" | "consent";
|
|
13887
|
+
client: {
|
|
13888
|
+
id: string;
|
|
13889
|
+
name: string;
|
|
13890
|
+
/**
|
|
13891
|
+
* ProductSummary
|
|
13892
|
+
* @description The product the app belongs to, for branding; null shows neutral Witnium.
|
|
13893
|
+
*/
|
|
13894
|
+
product: {
|
|
13895
|
+
/** @description Product slug, e.g. `chain` or `vault`. */
|
|
13896
|
+
id: string;
|
|
13897
|
+
name: string;
|
|
13898
|
+
/** ProductBranding */
|
|
13899
|
+
branding: {
|
|
13900
|
+
/** @description Product name shown on sign-in and consent pages. */
|
|
13901
|
+
name: string;
|
|
13902
|
+
/** @description Absolute path of the logo on the account app origin; null shows the name only. */
|
|
13903
|
+
logoUrl: string | null;
|
|
13904
|
+
/** @description `#rrggbb` colors: `primary` for buttons, `accent` for links. */
|
|
13905
|
+
colors: {
|
|
13906
|
+
primary: string;
|
|
13907
|
+
accent: string;
|
|
13908
|
+
};
|
|
13909
|
+
};
|
|
13910
|
+
} | null;
|
|
13911
|
+
firstParty: boolean;
|
|
13912
|
+
};
|
|
13913
|
+
/** @description Consent prompt only (always there): whether `/switch-account` is still possible. False once consent was given in this interaction (then switching answers 409 `already_confirmed`). */
|
|
13914
|
+
canSwitchAccount?: boolean;
|
|
13915
|
+
/** @description Consent prompt only: the requested scopes the provider serves. */
|
|
13916
|
+
scopes?: {
|
|
13917
|
+
name: string;
|
|
13918
|
+
description: string;
|
|
13919
|
+
}[];
|
|
13920
|
+
/** @description Consent prompt only: the requested resource indicator(s) (RFC 8707), space-separated when several. */
|
|
13921
|
+
resource?: string;
|
|
13922
|
+
/**
|
|
13923
|
+
* @description `ready`: consent may be given now (always `ready` for a `login` prompt). `provisioning`: the org's contract, or this connection's signing key, is still being set up; poll this route (every 2 to 3 seconds) and post /confirm again once it is `ready`. `no_contract`: the org has no contract yet; set one up in the product first. `refused`: consent cannot be given; `refusal` says why.
|
|
13924
|
+
* @enum {string}
|
|
13925
|
+
*/
|
|
13926
|
+
state: "ready" | "provisioning" | "no_contract" | "refused";
|
|
13927
|
+
/**
|
|
13928
|
+
* @description Present when `state` is `refused`.
|
|
13929
|
+
* @enum {string}
|
|
13930
|
+
*/
|
|
13931
|
+
refusal?: "self_custody" | "suspended" | "not_home" | "connection_ended" | "key_add_failed" | "contract_busy" | "key_rate_limited";
|
|
13932
|
+
/**
|
|
13933
|
+
* @description Login prompt only: the app asked for a fresh authentication (prompt=login, max_age) and the browser has an older session. Ask `email` to sign in again; the cookie alone does not finish this login.
|
|
13934
|
+
* @enum {boolean}
|
|
13935
|
+
*/
|
|
13936
|
+
reauth?: true;
|
|
13937
|
+
/** @description The signed-in account: with `reauth`, the account of the current session; in a consent prompt (always), the account consent is asked of. Show it with a way to switch account (`/switch-account`). */
|
|
13938
|
+
email?: string;
|
|
13939
|
+
};
|
|
13940
|
+
};
|
|
13941
|
+
};
|
|
13942
|
+
/** @description Bad Request — validation failed */
|
|
13943
|
+
400: {
|
|
13944
|
+
headers: {
|
|
13945
|
+
[name: string]: unknown;
|
|
13946
|
+
};
|
|
13947
|
+
content: {
|
|
13948
|
+
"application/json": {
|
|
13949
|
+
/**
|
|
13950
|
+
* @description HTTP status code
|
|
13951
|
+
* @example 400
|
|
13952
|
+
*/
|
|
13953
|
+
statusCode?: number;
|
|
13954
|
+
/**
|
|
13955
|
+
* @description Short error label
|
|
13956
|
+
* @example Bad Request
|
|
13957
|
+
*/
|
|
13958
|
+
error?: string;
|
|
13959
|
+
/**
|
|
13960
|
+
* @description Human-readable error message. Validation errors from `ZodError.flatten()` may be returned as an array.
|
|
13961
|
+
* @example Validation failed
|
|
13962
|
+
*/
|
|
13963
|
+
message: string | string[];
|
|
12463
13964
|
};
|
|
12464
13965
|
};
|
|
12465
13966
|
};
|
|
12466
|
-
/** @description
|
|
12467
|
-
|
|
13967
|
+
/** @description Unauthorized — authentication required or invalid */
|
|
13968
|
+
401: {
|
|
12468
13969
|
headers: {
|
|
12469
13970
|
[name: string]: unknown;
|
|
12470
13971
|
};
|
|
@@ -12488,8 +13989,8 @@ interface paths$1 {
|
|
|
12488
13989
|
};
|
|
12489
13990
|
};
|
|
12490
13991
|
};
|
|
12491
|
-
/** @description
|
|
12492
|
-
|
|
13992
|
+
/** @description Gone */
|
|
13993
|
+
410: {
|
|
12493
13994
|
headers: {
|
|
12494
13995
|
[name: string]: unknown;
|
|
12495
13996
|
};
|
|
@@ -12515,13 +14016,15 @@ interface paths$1 {
|
|
|
12515
14016
|
};
|
|
12516
14017
|
};
|
|
12517
14018
|
};
|
|
14019
|
+
put?: never;
|
|
14020
|
+
post?: never;
|
|
12518
14021
|
delete?: never;
|
|
12519
14022
|
options?: never;
|
|
12520
14023
|
head?: never;
|
|
12521
14024
|
patch?: never;
|
|
12522
14025
|
trace?: never;
|
|
12523
14026
|
};
|
|
12524
|
-
"/
|
|
14027
|
+
"/interaction/{uid}/confirm": {
|
|
12525
14028
|
parameters: {
|
|
12526
14029
|
query?: never;
|
|
12527
14030
|
header?: never;
|
|
@@ -12531,14 +14034,16 @@ interface paths$1 {
|
|
|
12531
14034
|
get?: never;
|
|
12532
14035
|
put?: never;
|
|
12533
14036
|
/**
|
|
12534
|
-
*
|
|
12535
|
-
* @description
|
|
14037
|
+
* Give consent
|
|
14038
|
+
* @description Saves the grant, and for a `sign:write` connection creates its signing key and adds it on chain. 200: finished, navigate to `redirectTo`. 202: still being set up; poll /details and post again when it is `ready` (a repeated post never adds a second grant or key). 409: consent cannot be given. Allowed Origin only. Needs the provider's `_interaction` cookie (path `/interaction/<uid>`), which the browser holds from /auth.
|
|
12536
14039
|
*/
|
|
12537
14040
|
post: {
|
|
12538
14041
|
parameters: {
|
|
12539
14042
|
query?: never;
|
|
12540
14043
|
header?: never;
|
|
12541
|
-
path
|
|
14044
|
+
path: {
|
|
14045
|
+
uid: string;
|
|
14046
|
+
};
|
|
12542
14047
|
cookie?: never;
|
|
12543
14048
|
};
|
|
12544
14049
|
requestBody?: never;
|
|
@@ -12550,38 +14055,28 @@ interface paths$1 {
|
|
|
12550
14055
|
};
|
|
12551
14056
|
content: {
|
|
12552
14057
|
"application/json": {
|
|
12553
|
-
/**
|
|
12554
|
-
|
|
14058
|
+
/**
|
|
14059
|
+
* Format: uri
|
|
14060
|
+
* @description Navigate the browser here (the provider's resume).
|
|
14061
|
+
*/
|
|
14062
|
+
redirectTo: string;
|
|
12555
14063
|
};
|
|
12556
14064
|
};
|
|
12557
14065
|
};
|
|
12558
|
-
/** @description
|
|
12559
|
-
|
|
14066
|
+
/** @description Accepted */
|
|
14067
|
+
202: {
|
|
12560
14068
|
headers: {
|
|
12561
14069
|
[name: string]: unknown;
|
|
12562
14070
|
};
|
|
12563
14071
|
content: {
|
|
12564
14072
|
"application/json": {
|
|
12565
|
-
/**
|
|
12566
|
-
|
|
12567
|
-
* @example 400
|
|
12568
|
-
*/
|
|
12569
|
-
statusCode?: number;
|
|
12570
|
-
/**
|
|
12571
|
-
* @description Short error label
|
|
12572
|
-
* @example Bad Request
|
|
12573
|
-
*/
|
|
12574
|
-
error?: string;
|
|
12575
|
-
/**
|
|
12576
|
-
* @description Human-readable error message. Validation errors from `ZodError.flatten()` may be returned as an array.
|
|
12577
|
-
* @example Validation failed
|
|
12578
|
-
*/
|
|
12579
|
-
message: string | string[];
|
|
14073
|
+
/** @enum {string} */
|
|
14074
|
+
state: "provisioning";
|
|
12580
14075
|
};
|
|
12581
14076
|
};
|
|
12582
14077
|
};
|
|
12583
|
-
/** @description
|
|
12584
|
-
|
|
14078
|
+
/** @description Bad Request — validation failed */
|
|
14079
|
+
400: {
|
|
12585
14080
|
headers: {
|
|
12586
14081
|
[name: string]: unknown;
|
|
12587
14082
|
};
|
|
@@ -12605,8 +14100,8 @@ interface paths$1 {
|
|
|
12605
14100
|
};
|
|
12606
14101
|
};
|
|
12607
14102
|
};
|
|
12608
|
-
/** @description
|
|
12609
|
-
|
|
14103
|
+
/** @description Forbidden — insufficient permissions or scope */
|
|
14104
|
+
403: {
|
|
12610
14105
|
headers: {
|
|
12611
14106
|
[name: string]: unknown;
|
|
12612
14107
|
};
|
|
@@ -12630,70 +14125,30 @@ interface paths$1 {
|
|
|
12630
14125
|
};
|
|
12631
14126
|
};
|
|
12632
14127
|
};
|
|
12633
|
-
|
|
12634
|
-
|
|
12635
|
-
delete?: never;
|
|
12636
|
-
options?: never;
|
|
12637
|
-
head?: never;
|
|
12638
|
-
patch?: never;
|
|
12639
|
-
trace?: never;
|
|
12640
|
-
};
|
|
12641
|
-
"/v1/orgs/me/owner-operations": {
|
|
12642
|
-
parameters: {
|
|
12643
|
-
query?: never;
|
|
12644
|
-
header?: never;
|
|
12645
|
-
path?: never;
|
|
12646
|
-
cookie?: never;
|
|
12647
|
-
};
|
|
12648
|
-
/**
|
|
12649
|
-
* Your organization's contract activity
|
|
12650
|
-
* @description The latest owner operations on the contract, newest first: keys added and revoked, pause and resume. Any active member.
|
|
12651
|
-
*/
|
|
12652
|
-
get: {
|
|
12653
|
-
parameters: {
|
|
12654
|
-
query?: {
|
|
12655
|
-
limit?: number;
|
|
12656
|
-
};
|
|
12657
|
-
header?: never;
|
|
12658
|
-
path?: never;
|
|
12659
|
-
cookie?: never;
|
|
12660
|
-
};
|
|
12661
|
-
requestBody?: never;
|
|
12662
|
-
responses: {
|
|
12663
|
-
/** @description Success */
|
|
12664
|
-
200: {
|
|
14128
|
+
/** @description Conflict */
|
|
14129
|
+
409: {
|
|
12665
14130
|
headers: {
|
|
12666
14131
|
[name: string]: unknown;
|
|
12667
14132
|
};
|
|
12668
14133
|
content: {
|
|
12669
14134
|
"application/json": {
|
|
12670
|
-
|
|
12671
|
-
|
|
12672
|
-
|
|
12673
|
-
|
|
12674
|
-
|
|
12675
|
-
|
|
12676
|
-
|
|
12677
|
-
|
|
12678
|
-
|
|
12679
|
-
|
|
12680
|
-
|
|
12681
|
-
|
|
12682
|
-
/** @description The API key's label or the member's email, when known. */
|
|
12683
|
-
label: string | null;
|
|
12684
|
-
/**
|
|
12685
|
-
* Format: date-time
|
|
12686
|
-
* @description ISO 8601 date-time string
|
|
12687
|
-
* @example 2026-05-20T10:30:00.000Z
|
|
12688
|
-
*/
|
|
12689
|
-
createdAt: string;
|
|
12690
|
-
txHash: string | null;
|
|
12691
|
-
}[];
|
|
14135
|
+
/** @enum {number} */
|
|
14136
|
+
statusCode: 409;
|
|
14137
|
+
/** @enum {string} */
|
|
14138
|
+
error: "consent_unavailable";
|
|
14139
|
+
message: string;
|
|
14140
|
+
/** @enum {string} */
|
|
14141
|
+
state: "no_contract" | "refused";
|
|
14142
|
+
/**
|
|
14143
|
+
* @description `self_custody`: the app signs witnesses, and the org holds its own keys. `suspended`: the membership is suspended. `not_home`: a signing app can only connect for your own organization. `connection_ended`: the connection was ended while it was being set up. `key_add_failed`: adding the signing key to the contract failed. `contract_busy`: another change to the contract was still settling. `key_rate_limited`: the contract's daily key-change budget is used up. Except for the first three, start connecting again from the app.
|
|
14144
|
+
* @enum {string}
|
|
14145
|
+
*/
|
|
14146
|
+
refusal?: "self_custody" | "suspended" | "not_home" | "connection_ended" | "key_add_failed" | "contract_busy" | "key_rate_limited";
|
|
12692
14147
|
};
|
|
12693
14148
|
};
|
|
12694
14149
|
};
|
|
12695
|
-
/** @description
|
|
12696
|
-
|
|
14150
|
+
/** @description Gone */
|
|
14151
|
+
410: {
|
|
12697
14152
|
headers: {
|
|
12698
14153
|
[name: string]: unknown;
|
|
12699
14154
|
};
|
|
@@ -12719,15 +14174,13 @@ interface paths$1 {
|
|
|
12719
14174
|
};
|
|
12720
14175
|
};
|
|
12721
14176
|
};
|
|
12722
|
-
put?: never;
|
|
12723
|
-
post?: never;
|
|
12724
14177
|
delete?: never;
|
|
12725
14178
|
options?: never;
|
|
12726
14179
|
head?: never;
|
|
12727
14180
|
patch?: never;
|
|
12728
14181
|
trace?: never;
|
|
12729
14182
|
};
|
|
12730
|
-
"/
|
|
14183
|
+
"/interaction/{uid}/abort": {
|
|
12731
14184
|
parameters: {
|
|
12732
14185
|
query?: never;
|
|
12733
14186
|
header?: never;
|
|
@@ -12737,29 +14190,19 @@ interface paths$1 {
|
|
|
12737
14190
|
get?: never;
|
|
12738
14191
|
put?: never;
|
|
12739
14192
|
/**
|
|
12740
|
-
*
|
|
12741
|
-
* @description
|
|
14193
|
+
* Deny
|
|
14194
|
+
* @description Finishes the interaction with `access_denied` (and ends a signing key it was adding). Navigate to `redirectTo`. Allowed Origin only. Needs the provider's `_interaction` cookie (path `/interaction/<uid>`), which the browser holds from /auth.
|
|
12742
14195
|
*/
|
|
12743
14196
|
post: {
|
|
12744
14197
|
parameters: {
|
|
12745
14198
|
query?: never;
|
|
12746
14199
|
header?: never;
|
|
12747
|
-
path
|
|
12748
|
-
|
|
12749
|
-
};
|
|
12750
|
-
requestBody?: {
|
|
12751
|
-
content: {
|
|
12752
|
-
"application/json": {
|
|
12753
|
-
/**
|
|
12754
|
-
* @description A key you hold (your SDK, your own systems). Witnium never sees its private key.
|
|
12755
|
-
* @example 4cdde7a3e3a1d8a48d2b9eaf2bcbe2db1d57d3e1a8d6c20e0a86c0f9c4b6cf2e
|
|
12756
|
-
*/
|
|
12757
|
-
publicKey: string;
|
|
12758
|
-
/** @description A name for the key, e.g. "ingest server". */
|
|
12759
|
-
label: string;
|
|
12760
|
-
};
|
|
14200
|
+
path: {
|
|
14201
|
+
uid: string;
|
|
12761
14202
|
};
|
|
14203
|
+
cookie?: never;
|
|
12762
14204
|
};
|
|
14205
|
+
requestBody?: never;
|
|
12763
14206
|
responses: {
|
|
12764
14207
|
/** @description Success */
|
|
12765
14208
|
200: {
|
|
@@ -12768,38 +14211,16 @@ interface paths$1 {
|
|
|
12768
14211
|
};
|
|
12769
14212
|
content: {
|
|
12770
14213
|
"application/json": {
|
|
12771
|
-
/** @enum {string} */
|
|
12772
|
-
status: "signed" | "submitted" | "confirmed" | "failed";
|
|
12773
|
-
};
|
|
12774
|
-
};
|
|
12775
|
-
};
|
|
12776
|
-
/** @description Bad Request — validation failed */
|
|
12777
|
-
400: {
|
|
12778
|
-
headers: {
|
|
12779
|
-
[name: string]: unknown;
|
|
12780
|
-
};
|
|
12781
|
-
content: {
|
|
12782
|
-
"application/json": {
|
|
12783
|
-
/**
|
|
12784
|
-
* @description HTTP status code
|
|
12785
|
-
* @example 400
|
|
12786
|
-
*/
|
|
12787
|
-
statusCode?: number;
|
|
12788
|
-
/**
|
|
12789
|
-
* @description Short error label
|
|
12790
|
-
* @example Bad Request
|
|
12791
|
-
*/
|
|
12792
|
-
error?: string;
|
|
12793
14214
|
/**
|
|
12794
|
-
*
|
|
12795
|
-
* @
|
|
14215
|
+
* Format: uri
|
|
14216
|
+
* @description Navigate the browser here (the provider's resume).
|
|
12796
14217
|
*/
|
|
12797
|
-
|
|
14218
|
+
redirectTo: string;
|
|
12798
14219
|
};
|
|
12799
14220
|
};
|
|
12800
14221
|
};
|
|
12801
|
-
/** @description
|
|
12802
|
-
|
|
14222
|
+
/** @description Bad Request — validation failed */
|
|
14223
|
+
400: {
|
|
12803
14224
|
headers: {
|
|
12804
14225
|
[name: string]: unknown;
|
|
12805
14226
|
};
|
|
@@ -12848,33 +14269,8 @@ interface paths$1 {
|
|
|
12848
14269
|
};
|
|
12849
14270
|
};
|
|
12850
14271
|
};
|
|
12851
|
-
/** @description
|
|
12852
|
-
|
|
12853
|
-
headers: {
|
|
12854
|
-
[name: string]: unknown;
|
|
12855
|
-
};
|
|
12856
|
-
content: {
|
|
12857
|
-
"application/json": {
|
|
12858
|
-
/**
|
|
12859
|
-
* @description HTTP status code
|
|
12860
|
-
* @example 400
|
|
12861
|
-
*/
|
|
12862
|
-
statusCode?: number;
|
|
12863
|
-
/**
|
|
12864
|
-
* @description Short error label
|
|
12865
|
-
* @example Bad Request
|
|
12866
|
-
*/
|
|
12867
|
-
error?: string;
|
|
12868
|
-
/**
|
|
12869
|
-
* @description Human-readable error message. Validation errors from `ZodError.flatten()` may be returned as an array.
|
|
12870
|
-
* @example Validation failed
|
|
12871
|
-
*/
|
|
12872
|
-
message: string | string[];
|
|
12873
|
-
};
|
|
12874
|
-
};
|
|
12875
|
-
};
|
|
12876
|
-
/** @description Too Many Requests */
|
|
12877
|
-
429: {
|
|
14272
|
+
/** @description Gone */
|
|
14273
|
+
410: {
|
|
12878
14274
|
headers: {
|
|
12879
14275
|
[name: string]: unknown;
|
|
12880
14276
|
};
|
|
@@ -12906,7 +14302,7 @@ interface paths$1 {
|
|
|
12906
14302
|
patch?: never;
|
|
12907
14303
|
trace?: never;
|
|
12908
14304
|
};
|
|
12909
|
-
"/
|
|
14305
|
+
"/interaction/{uid}/switch-account": {
|
|
12910
14306
|
parameters: {
|
|
12911
14307
|
query?: never;
|
|
12912
14308
|
header?: never;
|
|
@@ -12915,17 +14311,16 @@ interface paths$1 {
|
|
|
12915
14311
|
};
|
|
12916
14312
|
get?: never;
|
|
12917
14313
|
put?: never;
|
|
12918
|
-
post?: never;
|
|
12919
14314
|
/**
|
|
12920
|
-
*
|
|
12921
|
-
* @description
|
|
14315
|
+
* Switch account
|
|
14316
|
+
* @description Before consent is given only. Signs this browser out of the Witnium Account (`wac_session` revoked and cleared, the provider session destroyed and `_session` cleared) without ending the authorization request: navigate to `redirectTo` (the provider's resume), which continues the same request with a login prompt, i.e. at the account app's `/signin?interaction=<uid>` with the new interaction id. The account that signs in next answers the request; nothing is granted to the signed-out one. Once consent was given in this interaction (`canSwitchAccount: false` in /details): 409 `already_confirmed` and nothing changes, with `redirectTo` (the resume) once that consent finished, or with its `state` while its signing key is being set up or failed (stay on the consent page). Serialized with /confirm, /abort and the resume. Any prompt. Allowed Origin only. Needs the provider's `_interaction` cookie (path `/interaction/<uid>`), which the browser holds from /auth.
|
|
12922
14317
|
*/
|
|
12923
|
-
|
|
14318
|
+
post: {
|
|
12924
14319
|
parameters: {
|
|
12925
14320
|
query?: never;
|
|
12926
14321
|
header?: never;
|
|
12927
14322
|
path: {
|
|
12928
|
-
|
|
14323
|
+
uid: string;
|
|
12929
14324
|
};
|
|
12930
14325
|
cookie?: never;
|
|
12931
14326
|
};
|
|
@@ -12938,13 +14333,16 @@ interface paths$1 {
|
|
|
12938
14333
|
};
|
|
12939
14334
|
content: {
|
|
12940
14335
|
"application/json": {
|
|
12941
|
-
/**
|
|
12942
|
-
|
|
14336
|
+
/**
|
|
14337
|
+
* Format: uri
|
|
14338
|
+
* @description Navigate the browser here (the provider's resume).
|
|
14339
|
+
*/
|
|
14340
|
+
redirectTo: string;
|
|
12943
14341
|
};
|
|
12944
14342
|
};
|
|
12945
14343
|
};
|
|
12946
|
-
/** @description
|
|
12947
|
-
|
|
14344
|
+
/** @description Bad Request — validation failed */
|
|
14345
|
+
400: {
|
|
12948
14346
|
headers: {
|
|
12949
14347
|
[name: string]: unknown;
|
|
12950
14348
|
};
|
|
@@ -12993,33 +14391,38 @@ interface paths$1 {
|
|
|
12993
14391
|
};
|
|
12994
14392
|
};
|
|
12995
14393
|
};
|
|
12996
|
-
/** @description
|
|
12997
|
-
|
|
14394
|
+
/** @description Conflict */
|
|
14395
|
+
409: {
|
|
12998
14396
|
headers: {
|
|
12999
14397
|
[name: string]: unknown;
|
|
13000
14398
|
};
|
|
13001
14399
|
content: {
|
|
13002
14400
|
"application/json": {
|
|
14401
|
+
/** @enum {number} */
|
|
14402
|
+
statusCode: 409;
|
|
14403
|
+
/** @enum {string} */
|
|
14404
|
+
error: "already_confirmed" | "interaction_busy";
|
|
14405
|
+
message: string;
|
|
13003
14406
|
/**
|
|
13004
|
-
*
|
|
13005
|
-
* @
|
|
14407
|
+
* Format: uri
|
|
14408
|
+
* @description With `already_confirmed` once the consent finished: the resume; navigate there to continue the ordinary way.
|
|
13006
14409
|
*/
|
|
13007
|
-
|
|
14410
|
+
redirectTo?: string;
|
|
13008
14411
|
/**
|
|
13009
|
-
* @description
|
|
13010
|
-
* @
|
|
14412
|
+
* @description With `already_confirmed` while the consent has not finished (its signing key is being set up, or that failed): where it stands, as /details reports it. Stay on the consent page.
|
|
14413
|
+
* @enum {string}
|
|
13011
14414
|
*/
|
|
13012
|
-
|
|
14415
|
+
state?: "ready" | "provisioning" | "no_contract" | "refused";
|
|
13013
14416
|
/**
|
|
13014
|
-
* @description
|
|
13015
|
-
* @
|
|
14417
|
+
* @description `self_custody`: the app signs witnesses, and the org holds its own keys. `suspended`: the membership is suspended. `not_home`: a signing app can only connect for your own organization. `connection_ended`: the connection was ended while it was being set up. `key_add_failed`: adding the signing key to the contract failed. `contract_busy`: another change to the contract was still settling. `key_rate_limited`: the contract's daily key-change budget is used up. Except for the first three, start connecting again from the app.
|
|
14418
|
+
* @enum {string}
|
|
13016
14419
|
*/
|
|
13017
|
-
|
|
14420
|
+
refusal?: "self_custody" | "suspended" | "not_home" | "connection_ended" | "key_add_failed" | "contract_busy" | "key_rate_limited";
|
|
13018
14421
|
};
|
|
13019
14422
|
};
|
|
13020
14423
|
};
|
|
13021
|
-
/** @description
|
|
13022
|
-
|
|
14424
|
+
/** @description Gone */
|
|
14425
|
+
410: {
|
|
13023
14426
|
headers: {
|
|
13024
14427
|
[name: string]: unknown;
|
|
13025
14428
|
};
|
|
@@ -13045,6 +14448,7 @@ interface paths$1 {
|
|
|
13045
14448
|
};
|
|
13046
14449
|
};
|
|
13047
14450
|
};
|
|
14451
|
+
delete?: never;
|
|
13048
14452
|
options?: never;
|
|
13049
14453
|
head?: never;
|
|
13050
14454
|
patch?: never;
|
|
@@ -16122,6 +17526,28 @@ interface BeginOAuthLoginArgs {
|
|
|
16122
17526
|
* SSO (returns `login_required` if not possible). Default: unset.
|
|
16123
17527
|
*/
|
|
16124
17528
|
prompt?: 'login' | 'none';
|
|
17529
|
+
/**
|
|
17530
|
+
* OIDC `max_age` in seconds: the authorization server re-authenticates the
|
|
17531
|
+
* user when their last authentication is older. `0` forces a fresh sign-in,
|
|
17532
|
+
* the step-up before a sensitive action; the issued tokens then carry a
|
|
17533
|
+
* fresh `auth_time`. A non-negative integer.
|
|
17534
|
+
*/
|
|
17535
|
+
maxAge?: number;
|
|
17536
|
+
}
|
|
17537
|
+
/** Arguments to {@link WitniumchainClient.beginOAuthLogout}. */
|
|
17538
|
+
interface BeginOAuthLogoutArgs {
|
|
17539
|
+
/**
|
|
17540
|
+
* Where the authorization server sends the browser after ending its
|
|
17541
|
+
* session. Must exactly match one of the client's registered
|
|
17542
|
+
* `post_logout_redirect_uris`.
|
|
17543
|
+
*/
|
|
17544
|
+
postLogoutRedirectUri: string;
|
|
17545
|
+
/** Optional opaque value the authorization server hands back on that redirect. */
|
|
17546
|
+
state?: string;
|
|
17547
|
+
}
|
|
17548
|
+
interface BeginOAuthLogoutResult {
|
|
17549
|
+
/** The end-session URL. The caller does `window.location.assign(...)`. */
|
|
17550
|
+
logoutUrl: string;
|
|
16125
17551
|
}
|
|
16126
17552
|
interface BeginOAuthLoginResult {
|
|
16127
17553
|
/** URL to redirect the user to. The caller does `window.location.assign(...)`. */
|
|
@@ -16140,7 +17566,13 @@ interface OAuthTokenSnapshot {
|
|
|
16140
17566
|
expiresAt: number;
|
|
16141
17567
|
}
|
|
16142
17568
|
type AuthMode = 'SessionCookie'
|
|
16143
|
-
/**
|
|
17569
|
+
/**
|
|
17570
|
+
* Accounts routes that take a session or a scoped bearer token (plan §18.4):
|
|
17571
|
+
* the OAuth access token when the client holds one (an OAuth client such as
|
|
17572
|
+
* the CLI or the dashboard), else the cookie session (the account app). A
|
|
17573
|
+
* token minted from the cookie session (`exchangeSessionForToken`) does not
|
|
17574
|
+
* count: a cookie client stays on its cookie for these routes.
|
|
17575
|
+
*/
|
|
16144
17576
|
| 'SessionOrBearer' | 'BearerJWT' | 'ApiKey' | 'SignedRequest' | 'Public';
|
|
16145
17577
|
interface RequestOpts {
|
|
16146
17578
|
body?: unknown;
|
|
@@ -16169,6 +17601,7 @@ declare class WitniumchainClient {
|
|
|
16169
17601
|
private readonly fetchImpl;
|
|
16170
17602
|
private accessToken;
|
|
16171
17603
|
private refreshToken;
|
|
17604
|
+
private idToken;
|
|
16172
17605
|
private hasRefreshCookie;
|
|
16173
17606
|
private readonly oauthClientId;
|
|
16174
17607
|
private readonly verifierStorage;
|
|
@@ -16199,7 +17632,7 @@ declare class WitniumchainClient {
|
|
|
16199
17632
|
readonly apiKeys: OrgApiKeys;
|
|
16200
17633
|
/** The signed-in member's dashboard signing key on a managed contract. `client.dashboardKey.*`. */
|
|
16201
17634
|
readonly dashboardKey: DashboardKey;
|
|
16202
|
-
/** The home org's managed contract: pause, resume, activity. `client.orgContract.*`. */
|
|
17635
|
+
/** The home org's managed contract: pause, resume, activity, keys you hold. `client.orgContract.*`. */
|
|
16203
17636
|
readonly orgContract: OrgContract;
|
|
16204
17637
|
readonly keyRequests: SigningKeyRequests;
|
|
16205
17638
|
constructor(config: WitniumchainClientConfig);
|
|
@@ -16228,8 +17661,8 @@ declare class WitniumchainClient {
|
|
|
16228
17661
|
pauseOrgContract(): Promise<ContractOwnerOpResponse>;
|
|
16229
17662
|
/**
|
|
16230
17663
|
* Add a key you hold to the org's managed contract (plan §17.7): org
|
|
16231
|
-
* admins, after a step-up
|
|
16232
|
-
* the returned op confirms.
|
|
17664
|
+
* admins, after a step-up (a bearer token needs a fresh `auth_time`).
|
|
17665
|
+
* Witnium signs the add; the key counts once the returned op confirms.
|
|
16233
17666
|
*/
|
|
16234
17667
|
addOrgContractKey(body: AddContractKeyRequest): Promise<ContractOwnerOpResponse>;
|
|
16235
17668
|
/** Revoke a key added with {@link addOrgContractKey} (org admins). */
|
|
@@ -16541,6 +17974,20 @@ declare class WitniumchainClient {
|
|
|
16541
17974
|
* dropped — which it is, here.
|
|
16542
17975
|
*/
|
|
16543
17976
|
signOut(): void;
|
|
17977
|
+
/**
|
|
17978
|
+
* End the session at the authorization server (OIDC RP-Initiated Logout).
|
|
17979
|
+
*
|
|
17980
|
+
* Builds the `end_session_endpoint` URL with `id_token_hint` (the ID token
|
|
17981
|
+
* from {@link completeOAuthLogin}), `client_id` and
|
|
17982
|
+
* `post_logout_redirect_uri`, then forgets every in-memory credential like
|
|
17983
|
+
* {@link signOut}. The caller does the redirect
|
|
17984
|
+
* (`window.location.assign(result.logoutUrl)`).
|
|
17985
|
+
*
|
|
17986
|
+
* Throws when no `oauthClientId` is configured, when this client holds no
|
|
17987
|
+
* ID token (the login was not completed here, or it did not ask for
|
|
17988
|
+
* `openid`), or when the discovery document has no `end_session_endpoint`.
|
|
17989
|
+
*/
|
|
17990
|
+
beginOAuthLogout(args: BeginOAuthLogoutArgs): Promise<BeginOAuthLogoutResult>;
|
|
16544
17991
|
private verifierStorageOrDefault;
|
|
16545
17992
|
private fetchDiscovery;
|
|
16546
17993
|
private postTokenEndpoint;
|
|
@@ -17135,4 +18582,4 @@ declare const ownerKeyFile: {
|
|
|
17135
18582
|
sign: typeof signWithOwnerKeyFile;
|
|
17136
18583
|
};
|
|
17137
18584
|
|
|
17138
|
-
export { type AcceptInviteResponse, type AccountContractStatusResponse, type AccountResponse, AccountSecurity, type AccountSecurityResponse, type paths$1 as AccountsPaths, type AddContractKeyRequest, type AddPasswordTotpResponse, type AddSigningKeyRequest$1 as AddSigningKeyRequest, type AddSigningKeyResponse, type ApiKeySelfResponse, type ApproveSigningKeyRequest, type BeginOAuthLoginArgs, type BeginOAuthLoginResult, type paths as ChainPaths, type CheckoutRequest, type CheckoutResponse, type ChooseCustodyRequest, type ChooseCustodyResponse, type ContractActivityResponse, type ContractOwnerOpResponse, type CreateApiKeyRequest, type CreateApiKeyResponse, type CreateOrgRequest, type CreateOrgResponse, DashboardKey, type DashboardKeyResponse, DelegatedKeys, type DeploySelfCustodyRequest, type DeploySelfCustodyResponse, Enrollment, type EnrollmentCompleteResponse, type EnrollmentStateResponse, type FinalizeWitnessResponse, type ForgotPasswordRequest, type ForgotPasswordResponse, type GetWitnessResponse, type HealthLiveResponse, type HealthReadyResponse, type InviteMemberRequest, type InviteMemberResponse, type LedgerResponse, type ListApiKeysResponse, type ListDelegatedKeysResponse, type ListOauthSessionsResponse, type LoginRequest, type LoginResponse, type LogoutResponse, type MembersListResponse, type MessageResponse, type MfaProofRequest, type OAuthTokenSnapshot, OWNER_KEY_FILE_FORMAT, OWNER_OP, OauthNamespace, OauthSessions, OrgApiKeys, OrgContract, OrgMembers, Organization, type OwnerKeyFile, type OwnerOpName, type OwnerSigner, type PauseRequest$1 as PauseRequest, type PauseResponse, type PkceVerifierStorage, type PortalResponse, type PrepareDelegatedKeyRequest, type PreparedDelegatedKeyResponse, type ProposeWitnessRequest, type ProposeWitnessResponse, type ProposeWitnessV5Created, type ProposeWitnessV5Existing, type ProposeWitnessV5LegacyRequest, type ProposeWitnessV5LegacyResponse, type ProposeWitnessV5Request, type ProposeWitnessV5Result, type ProvisionContractRequest, type ProvisionContractResponse, type ProvisionDelegatedKeyArgs, type ProvisionDelegatedKeyResult, Recovery, type RecoveryCodesResponse, type RecoveryStatusResponse, type ReissueProvisioningTokenResponse, type RemoveContractKeyResponse, type RemoveMemberResponse, type RenameOrgRequest, type RenameOrgResponse, type ResendInviteResponse, type ResetAccountResponse, type ResetPasswordRequest, type ResetPasswordResponse, type RevokeDelegatedKeyResponse, type RevokeSigningKeyRequest$1 as RevokeSigningKeyRequest, type RevokeSigningKeyResponse, type RevokeWitnessRequest, type RevokeWitnessResponse, type SessionStartedResponse, type SetMemberRoleRequest, type SetMemberRoleResponse, type SignRequest, type SignResponse, type SignWitnessRequest, type SignWitnessResponse, type SignedRequestSigner, type SigningKeyRequestCreate, type SigningKeyRequestView, type SigningKeyRequestsResponse, type SigningKeyView, SigningKeys, type SigningKeysResponse, type SignupRequest, type SignupResponse, type StepUpProof, type SubmitDelegatedKeyRequest, type SubmitDelegatedKeyResponse, Subscriptions, type SuspendMemberResponse, type TotpSetupResponse, type UnpauseRequest, type UnpauseResponse, type VerifySignupRequest, type VerifySignupResponse, type WitnessIntentRecoveryV5, WitnessProposeError, type WitnessScopeConflictCode, WitnessScopeConflictError, WitniumchainApiError, WitniumchainApiKeyClient, type WitniumchainApiKeyClientConfig, WitniumchainChainAdminClient, type WitniumchainChainAdminClientConfig, WitniumchainClient, type WitniumchainClientConfig, buildAddSigningKeyPayload, buildPausePayload, buildRevokeSigningKeyPayload, buildUnpausePayload, defaultVerifierStorage, generateOwnerKeyFile, ownerKeyFile, ownerKeyFileName, parseOwnerKeyFile, randomWitnessScope, serializeOwnerKeyFile, signWithOwnerKeyFile, witnessScopeFor };
|
|
18585
|
+
export { type AcceptInviteResponse, type AccountContractStatusResponse, type AccountResponse, AccountSecurity, type AccountSecurityResponse, type paths$1 as AccountsPaths, type AddContractKeyRequest, type AddPasswordTotpResponse, type AddSigningKeyRequest$1 as AddSigningKeyRequest, type AddSigningKeyResponse, type ApiKeySelfResponse, type ApproveSigningKeyRequest, type BeginOAuthLoginArgs, type BeginOAuthLoginResult, type BeginOAuthLogoutArgs, type BeginOAuthLogoutResult, type paths as ChainPaths, type CheckoutRequest, type CheckoutResponse, type ChooseCustodyRequest, type ChooseCustodyResponse, type ContractActivityResponse, type ContractOwnerOpResponse, type CreateApiKeyRequest, type CreateApiKeyResponse, type CreateOrgRequest, type CreateOrgResponse, DashboardKey, type DashboardKeyResponse, DelegatedKeys, type DeploySelfCustodyRequest, type DeploySelfCustodyResponse, Enrollment, type EnrollmentCompleteResponse, type EnrollmentStateResponse, type FinalizeWitnessResponse, type ForgotPasswordRequest, type ForgotPasswordResponse, type GetWitnessResponse, type HealthLiveResponse, type HealthReadyResponse, type InviteMemberRequest, type InviteMemberResponse, type LedgerResponse, type ListApiKeysResponse, type ListDelegatedKeysResponse, type ListOauthSessionsResponse, type LoginRequest, type LoginResponse, type LogoutResponse, type MembersListResponse, type MessageResponse, type MfaProofRequest, type OAuthTokenSnapshot, OWNER_KEY_FILE_FORMAT, OWNER_OP, OauthNamespace, OauthSessions, OrgApiKeys, OrgContract, OrgMembers, Organization, type OwnerKeyFile, type OwnerOpName, type OwnerSigner, type PauseRequest$1 as PauseRequest, type PauseResponse, type PkceVerifierStorage, type PortalResponse, type PrepareDelegatedKeyRequest, type PreparedDelegatedKeyResponse, type ProposeWitnessRequest, type ProposeWitnessResponse, type ProposeWitnessV5Created, type ProposeWitnessV5Existing, type ProposeWitnessV5LegacyRequest, type ProposeWitnessV5LegacyResponse, type ProposeWitnessV5Request, type ProposeWitnessV5Result, type ProvisionContractRequest, type ProvisionContractResponse, type ProvisionDelegatedKeyArgs, type ProvisionDelegatedKeyResult, Recovery, type RecoveryCodesResponse, type RecoveryStatusResponse, type ReissueProvisioningTokenResponse, type RemoveContractKeyResponse, type RemoveMemberResponse, type RenameOrgRequest, type RenameOrgResponse, type ResendInviteResponse, type ResetAccountResponse, type ResetPasswordRequest, type ResetPasswordResponse, type RevokeDelegatedKeyResponse, type RevokeSigningKeyRequest$1 as RevokeSigningKeyRequest, type RevokeSigningKeyResponse, type RevokeWitnessRequest, type RevokeWitnessResponse, type SessionStartedResponse, type SetMemberRoleRequest, type SetMemberRoleResponse, type SignRequest, type SignResponse, type SignWitnessRequest, type SignWitnessResponse, type SignedRequestSigner, type SigningKeyRequestCreate, type SigningKeyRequestView, type SigningKeyRequestsResponse, type SigningKeyView, SigningKeys, type SigningKeysResponse, type SignupRequest, type SignupResponse, type StepUpProof, type SubmitDelegatedKeyRequest, type SubmitDelegatedKeyResponse, Subscriptions, type SuspendMemberResponse, type TotpSetupResponse, type UnpauseRequest, type UnpauseResponse, type VerifySignupRequest, type VerifySignupResponse, type WitnessIntentRecoveryV5, WitnessProposeError, type WitnessScopeConflictCode, WitnessScopeConflictError, WitniumchainApiError, WitniumchainApiKeyClient, type WitniumchainApiKeyClientConfig, WitniumchainChainAdminClient, type WitniumchainChainAdminClientConfig, WitniumchainClient, type WitniumchainClientConfig, buildAddSigningKeyPayload, buildPausePayload, buildRevokeSigningKeyPayload, buildUnpausePayload, defaultVerifierStorage, generateOwnerKeyFile, ownerKeyFile, ownerKeyFileName, parseOwnerKeyFile, randomWitnessScope, serializeOwnerKeyFile, signWithOwnerKeyFile, witnessScopeFor };
|