@oxy.so/contracts 4.15.0 → 4.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/.tsbuildinfo +1 -1
- package/dist/cjs/accountEmail.js +12 -34
- package/dist/cjs/accountGraph.js +22 -320
- package/dist/cjs/agentKeys.js +11 -13
- package/dist/cjs/client/accountEmail.js +48 -0
- package/dist/cjs/client/accountGraph.js +323 -0
- package/dist/cjs/client/agentKeys.js +77 -0
- package/dist/cjs/client/check.js +466 -0
- package/dist/cjs/client/deviceBoot.js +22 -0
- package/dist/cjs/client/deviceDirectory.js +51 -0
- package/dist/cjs/client/deviceSession.js +63 -0
- package/dist/cjs/client/externalIdentity.js +19 -0
- package/dist/cjs/client/identity.js +45 -0
- package/dist/cjs/client/identityLink.js +55 -0
- package/dist/cjs/client/identityProof.js +109 -0
- package/dist/cjs/client/index.js +190 -0
- package/dist/cjs/client/organizations.js +114 -0
- package/dist/cjs/client/products.js +153 -0
- package/dist/cjs/client/recommendations.js +33 -0
- package/dist/cjs/client/reputation.js +41 -0
- package/dist/cjs/client/safety.js +15 -0
- package/dist/cjs/client/sessionStatus.js +23 -0
- package/dist/cjs/client/signIn.js +157 -0
- package/dist/cjs/client/userResponse.js +15 -0
- package/dist/cjs/client/username.js +173 -0
- package/dist/cjs/deviceSession.js +3 -16
- package/dist/cjs/identityLink.js +13 -34
- package/dist/cjs/identityProof.js +18 -106
- package/dist/cjs/index.js +15 -10
- package/dist/cjs/inference/money.js +10 -0
- package/dist/cjs/inference/version.js +1 -1
- package/dist/cjs/organizations.js +21 -41
- package/dist/cjs/products/billing.js +0 -1
- package/dist/cjs/products/checkout.js +1 -14
- package/dist/cjs/products/plans.js +2 -18
- package/dist/cjs/reputation.js +3 -34
- package/dist/cjs/signIn.js +57 -96
- package/dist/cjs/userResponse.js +1 -8
- package/dist/cjs/username.js +23 -158
- package/dist/esm/.tsbuildinfo +1 -1
- package/dist/esm/accountEmail.js +4 -32
- package/dist/esm/accountGraph.js +4 -309
- package/dist/esm/agentKeys.js +4 -10
- package/dist/esm/client/accountEmail.js +45 -0
- package/dist/esm/client/accountGraph.js +314 -0
- package/dist/esm/client/agentKeys.js +74 -0
- package/dist/esm/client/check.js +428 -0
- package/dist/esm/client/deviceBoot.js +19 -0
- package/dist/esm/client/deviceDirectory.js +48 -0
- package/dist/esm/client/deviceSession.js +60 -0
- package/dist/esm/client/externalIdentity.js +16 -0
- package/dist/esm/client/identity.js +42 -0
- package/dist/esm/client/identityLink.js +50 -0
- package/dist/esm/client/identityProof.js +104 -0
- package/dist/esm/client/index.js +37 -0
- package/dist/esm/client/organizations.js +111 -0
- package/dist/esm/client/products.js +150 -0
- package/dist/esm/client/recommendations.js +30 -0
- package/dist/esm/client/reputation.js +37 -0
- package/dist/esm/client/safety.js +12 -0
- package/dist/esm/client/sessionStatus.js +20 -0
- package/dist/esm/client/signIn.js +151 -0
- package/dist/esm/client/userResponse.js +12 -0
- package/dist/esm/client/username.js +167 -0
- package/dist/esm/deviceSession.js +1 -15
- package/dist/esm/identityLink.js +4 -27
- package/dist/esm/identityProof.js +4 -99
- package/dist/esm/index.js +2 -2
- package/dist/esm/inference/money.js +10 -0
- package/dist/esm/inference/version.js +1 -1
- package/dist/esm/organizations.js +4 -31
- package/dist/esm/products/billing.js +0 -1
- package/dist/esm/products/checkout.js +0 -13
- package/dist/esm/products/plans.js +1 -17
- package/dist/esm/reputation.js +1 -32
- package/dist/esm/signIn.js +29 -83
- package/dist/esm/userResponse.js +1 -8
- package/dist/esm/username.js +4 -148
- package/dist/types/.tsbuildinfo +1 -1
- package/dist/types/accountEmail.d.ts +2 -34
- package/dist/types/accountGraph.d.ts +12 -208
- package/dist/types/agency.d.ts +24 -24
- package/dist/types/agentKeys.d.ts +8 -6
- package/dist/types/client/accountEmail.d.ts +44 -0
- package/dist/types/client/accountGraph.d.ts +203 -0
- package/dist/types/client/agentKeys.d.ts +113 -0
- package/dist/types/client/check.d.ts +184 -0
- package/dist/types/client/deviceBoot.d.ts +6 -0
- package/dist/types/client/deviceDirectory.d.ts +134 -0
- package/dist/types/client/deviceSession.d.ts +91 -0
- package/dist/types/client/externalIdentity.d.ts +14 -0
- package/dist/types/client/identity.d.ts +8 -0
- package/dist/types/client/identityLink.d.ts +21 -0
- package/dist/types/client/identityProof.d.ts +73 -0
- package/dist/types/client/index.d.ts +37 -0
- package/dist/types/client/organizations.d.ts +167 -0
- package/dist/types/client/products.d.ts +145 -0
- package/dist/types/client/recommendations.d.ts +27 -0
- package/dist/types/client/reputation.d.ts +28 -0
- package/dist/types/client/safety.d.ts +13 -0
- package/dist/types/client/sessionStatus.d.ts +19 -0
- package/dist/types/client/signIn.d.ts +107 -0
- package/dist/types/client/userResponse.d.ts +7 -0
- package/dist/types/client/username.d.ts +126 -0
- package/dist/types/deviceDirectory.d.ts +28 -28
- package/dist/types/deviceSession.d.ts +1 -12
- package/dist/types/externalIdentity.d.ts +11 -44
- package/dist/types/identityLink.d.ts +3 -11
- package/dist/types/identityProof.d.ts +2 -65
- package/dist/types/index.d.ts +3 -3
- package/dist/types/inference/catalogue.d.ts +7 -7
- package/dist/types/inference/decisions.d.ts +41 -41
- package/dist/types/inference/economics.d.ts +5 -5
- package/dist/types/inference/embeddings.d.ts +16 -16
- package/dist/types/inference/errors.d.ts +8 -8
- package/dist/types/inference/inbox.d.ts +8 -8
- package/dist/types/inference/money.d.ts +17 -8
- package/dist/types/inference/priceVersion.d.ts +12 -12
- package/dist/types/inference/privateAutoExecution.d.ts +6 -6
- package/dist/types/inference/realtime.d.ts +54 -54
- package/dist/types/inference/request.d.ts +28 -28
- package/dist/types/inference/routingPolicy.d.ts +7 -7
- package/dist/types/inference/streamEvents.d.ts +26 -26
- package/dist/types/inference/usage.d.ts +32 -32
- package/dist/types/inference/version.d.ts +1 -1
- package/dist/types/oauth.d.ts +2 -2
- package/dist/types/organizations.d.ts +8 -10
- package/dist/types/products/billing.d.ts +3 -8
- package/dist/types/products/checkout.d.ts +0 -36
- package/dist/types/products/plans.d.ts +5 -102
- package/dist/types/reputation.d.ts +1 -11
- package/dist/types/sessionStatus.d.ts +2 -2
- package/dist/types/signIn.d.ts +74 -76
- package/dist/types/userResponse.d.ts +23 -159
- package/dist/types/username.d.ts +1 -96
- package/package.json +20 -1
|
@@ -130,7 +130,7 @@ export declare const deviceAccountContextSchema: z.ZodObject<{
|
|
|
130
130
|
lastUsedAt: z.ZodNullable<z.ZodNumber>;
|
|
131
131
|
}, "strip", z.ZodTypeAny, {
|
|
132
132
|
active: boolean;
|
|
133
|
-
kind: "organization" | "
|
|
133
|
+
kind: "organization" | "personal" | "project" | "bot" | "channel";
|
|
134
134
|
accountId: string;
|
|
135
135
|
id: string;
|
|
136
136
|
lastUsedAt: number | null;
|
|
@@ -146,7 +146,7 @@ export declare const deviceAccountContextSchema: z.ZodObject<{
|
|
|
146
146
|
available: boolean;
|
|
147
147
|
}, {
|
|
148
148
|
active: boolean;
|
|
149
|
-
kind: "organization" | "
|
|
149
|
+
kind: "organization" | "personal" | "project" | "bot" | "channel";
|
|
150
150
|
accountId: string;
|
|
151
151
|
id: string;
|
|
152
152
|
lastUsedAt: number | null;
|
|
@@ -232,7 +232,7 @@ export declare const devicePrincipalSchema: z.ZodObject<{
|
|
|
232
232
|
lastUsedAt: z.ZodNullable<z.ZodNumber>;
|
|
233
233
|
}, "strip", z.ZodTypeAny, {
|
|
234
234
|
active: boolean;
|
|
235
|
-
kind: "organization" | "
|
|
235
|
+
kind: "organization" | "personal" | "project" | "bot" | "channel";
|
|
236
236
|
accountId: string;
|
|
237
237
|
id: string;
|
|
238
238
|
lastUsedAt: number | null;
|
|
@@ -248,7 +248,7 @@ export declare const devicePrincipalSchema: z.ZodObject<{
|
|
|
248
248
|
available: boolean;
|
|
249
249
|
}, {
|
|
250
250
|
active: boolean;
|
|
251
|
-
kind: "organization" | "
|
|
251
|
+
kind: "organization" | "personal" | "project" | "bot" | "channel";
|
|
252
252
|
accountId: string;
|
|
253
253
|
id: string;
|
|
254
254
|
lastUsedAt: number | null;
|
|
@@ -276,7 +276,7 @@ export declare const devicePrincipalSchema: z.ZodObject<{
|
|
|
276
276
|
userId: string;
|
|
277
277
|
contexts: {
|
|
278
278
|
active: boolean;
|
|
279
|
-
kind: "organization" | "
|
|
279
|
+
kind: "organization" | "personal" | "project" | "bot" | "channel";
|
|
280
280
|
accountId: string;
|
|
281
281
|
id: string;
|
|
282
282
|
lastUsedAt: number | null;
|
|
@@ -304,7 +304,7 @@ export declare const devicePrincipalSchema: z.ZodObject<{
|
|
|
304
304
|
userId: string;
|
|
305
305
|
contexts: {
|
|
306
306
|
active: boolean;
|
|
307
|
-
kind: "organization" | "
|
|
307
|
+
kind: "organization" | "personal" | "project" | "bot" | "channel";
|
|
308
308
|
accountId: string;
|
|
309
309
|
id: string;
|
|
310
310
|
lastUsedAt: number | null;
|
|
@@ -395,7 +395,7 @@ export declare const deviceDirectorySchema: z.ZodObject<{
|
|
|
395
395
|
lastUsedAt: z.ZodNullable<z.ZodNumber>;
|
|
396
396
|
}, "strip", z.ZodTypeAny, {
|
|
397
397
|
active: boolean;
|
|
398
|
-
kind: "organization" | "
|
|
398
|
+
kind: "organization" | "personal" | "project" | "bot" | "channel";
|
|
399
399
|
accountId: string;
|
|
400
400
|
id: string;
|
|
401
401
|
lastUsedAt: number | null;
|
|
@@ -411,7 +411,7 @@ export declare const deviceDirectorySchema: z.ZodObject<{
|
|
|
411
411
|
available: boolean;
|
|
412
412
|
}, {
|
|
413
413
|
active: boolean;
|
|
414
|
-
kind: "organization" | "
|
|
414
|
+
kind: "organization" | "personal" | "project" | "bot" | "channel";
|
|
415
415
|
accountId: string;
|
|
416
416
|
id: string;
|
|
417
417
|
lastUsedAt: number | null;
|
|
@@ -439,7 +439,7 @@ export declare const deviceDirectorySchema: z.ZodObject<{
|
|
|
439
439
|
userId: string;
|
|
440
440
|
contexts: {
|
|
441
441
|
active: boolean;
|
|
442
|
-
kind: "organization" | "
|
|
442
|
+
kind: "organization" | "personal" | "project" | "bot" | "channel";
|
|
443
443
|
accountId: string;
|
|
444
444
|
id: string;
|
|
445
445
|
lastUsedAt: number | null;
|
|
@@ -467,7 +467,7 @@ export declare const deviceDirectorySchema: z.ZodObject<{
|
|
|
467
467
|
userId: string;
|
|
468
468
|
contexts: {
|
|
469
469
|
active: boolean;
|
|
470
|
-
kind: "organization" | "
|
|
470
|
+
kind: "organization" | "personal" | "project" | "bot" | "channel";
|
|
471
471
|
accountId: string;
|
|
472
472
|
id: string;
|
|
473
473
|
lastUsedAt: number | null;
|
|
@@ -502,7 +502,7 @@ export declare const deviceDirectorySchema: z.ZodObject<{
|
|
|
502
502
|
userId: string;
|
|
503
503
|
contexts: {
|
|
504
504
|
active: boolean;
|
|
505
|
-
kind: "organization" | "
|
|
505
|
+
kind: "organization" | "personal" | "project" | "bot" | "channel";
|
|
506
506
|
accountId: string;
|
|
507
507
|
id: string;
|
|
508
508
|
lastUsedAt: number | null;
|
|
@@ -536,7 +536,7 @@ export declare const deviceDirectorySchema: z.ZodObject<{
|
|
|
536
536
|
userId: string;
|
|
537
537
|
contexts: {
|
|
538
538
|
active: boolean;
|
|
539
|
-
kind: "organization" | "
|
|
539
|
+
kind: "organization" | "personal" | "project" | "bot" | "channel";
|
|
540
540
|
accountId: string;
|
|
541
541
|
id: string;
|
|
542
542
|
lastUsedAt: number | null;
|
|
@@ -649,7 +649,7 @@ export declare const deviceActivateResponseSchema: z.ZodObject<{
|
|
|
649
649
|
lastUsedAt: z.ZodNullable<z.ZodNumber>;
|
|
650
650
|
}, "strip", z.ZodTypeAny, {
|
|
651
651
|
active: boolean;
|
|
652
|
-
kind: "organization" | "
|
|
652
|
+
kind: "organization" | "personal" | "project" | "bot" | "channel";
|
|
653
653
|
accountId: string;
|
|
654
654
|
id: string;
|
|
655
655
|
lastUsedAt: number | null;
|
|
@@ -665,7 +665,7 @@ export declare const deviceActivateResponseSchema: z.ZodObject<{
|
|
|
665
665
|
available: boolean;
|
|
666
666
|
}, {
|
|
667
667
|
active: boolean;
|
|
668
|
-
kind: "organization" | "
|
|
668
|
+
kind: "organization" | "personal" | "project" | "bot" | "channel";
|
|
669
669
|
accountId: string;
|
|
670
670
|
id: string;
|
|
671
671
|
lastUsedAt: number | null;
|
|
@@ -693,7 +693,7 @@ export declare const deviceActivateResponseSchema: z.ZodObject<{
|
|
|
693
693
|
userId: string;
|
|
694
694
|
contexts: {
|
|
695
695
|
active: boolean;
|
|
696
|
-
kind: "organization" | "
|
|
696
|
+
kind: "organization" | "personal" | "project" | "bot" | "channel";
|
|
697
697
|
accountId: string;
|
|
698
698
|
id: string;
|
|
699
699
|
lastUsedAt: number | null;
|
|
@@ -721,7 +721,7 @@ export declare const deviceActivateResponseSchema: z.ZodObject<{
|
|
|
721
721
|
userId: string;
|
|
722
722
|
contexts: {
|
|
723
723
|
active: boolean;
|
|
724
|
-
kind: "organization" | "
|
|
724
|
+
kind: "organization" | "personal" | "project" | "bot" | "channel";
|
|
725
725
|
accountId: string;
|
|
726
726
|
id: string;
|
|
727
727
|
lastUsedAt: number | null;
|
|
@@ -756,7 +756,7 @@ export declare const deviceActivateResponseSchema: z.ZodObject<{
|
|
|
756
756
|
userId: string;
|
|
757
757
|
contexts: {
|
|
758
758
|
active: boolean;
|
|
759
|
-
kind: "organization" | "
|
|
759
|
+
kind: "organization" | "personal" | "project" | "bot" | "channel";
|
|
760
760
|
accountId: string;
|
|
761
761
|
id: string;
|
|
762
762
|
lastUsedAt: number | null;
|
|
@@ -790,7 +790,7 @@ export declare const deviceActivateResponseSchema: z.ZodObject<{
|
|
|
790
790
|
userId: string;
|
|
791
791
|
contexts: {
|
|
792
792
|
active: boolean;
|
|
793
|
-
kind: "organization" | "
|
|
793
|
+
kind: "organization" | "personal" | "project" | "bot" | "channel";
|
|
794
794
|
accountId: string;
|
|
795
795
|
id: string;
|
|
796
796
|
lastUsedAt: number | null;
|
|
@@ -840,7 +840,7 @@ export declare const deviceActivateResponseSchema: z.ZodObject<{
|
|
|
840
840
|
userId: string;
|
|
841
841
|
contexts: {
|
|
842
842
|
active: boolean;
|
|
843
|
-
kind: "organization" | "
|
|
843
|
+
kind: "organization" | "personal" | "project" | "bot" | "channel";
|
|
844
844
|
accountId: string;
|
|
845
845
|
id: string;
|
|
846
846
|
lastUsedAt: number | null;
|
|
@@ -880,7 +880,7 @@ export declare const deviceActivateResponseSchema: z.ZodObject<{
|
|
|
880
880
|
userId: string;
|
|
881
881
|
contexts: {
|
|
882
882
|
active: boolean;
|
|
883
|
-
kind: "organization" | "
|
|
883
|
+
kind: "organization" | "personal" | "project" | "bot" | "channel";
|
|
884
884
|
accountId: string;
|
|
885
885
|
id: string;
|
|
886
886
|
lastUsedAt: number | null;
|
|
@@ -990,7 +990,7 @@ export declare const deviceDirectorySyncSchema: z.ZodObject<{
|
|
|
990
990
|
lastUsedAt: z.ZodNullable<z.ZodNumber>;
|
|
991
991
|
}, "strip", z.ZodTypeAny, {
|
|
992
992
|
active: boolean;
|
|
993
|
-
kind: "organization" | "
|
|
993
|
+
kind: "organization" | "personal" | "project" | "bot" | "channel";
|
|
994
994
|
accountId: string;
|
|
995
995
|
id: string;
|
|
996
996
|
lastUsedAt: number | null;
|
|
@@ -1006,7 +1006,7 @@ export declare const deviceDirectorySyncSchema: z.ZodObject<{
|
|
|
1006
1006
|
available: boolean;
|
|
1007
1007
|
}, {
|
|
1008
1008
|
active: boolean;
|
|
1009
|
-
kind: "organization" | "
|
|
1009
|
+
kind: "organization" | "personal" | "project" | "bot" | "channel";
|
|
1010
1010
|
accountId: string;
|
|
1011
1011
|
id: string;
|
|
1012
1012
|
lastUsedAt: number | null;
|
|
@@ -1034,7 +1034,7 @@ export declare const deviceDirectorySyncSchema: z.ZodObject<{
|
|
|
1034
1034
|
userId: string;
|
|
1035
1035
|
contexts: {
|
|
1036
1036
|
active: boolean;
|
|
1037
|
-
kind: "organization" | "
|
|
1037
|
+
kind: "organization" | "personal" | "project" | "bot" | "channel";
|
|
1038
1038
|
accountId: string;
|
|
1039
1039
|
id: string;
|
|
1040
1040
|
lastUsedAt: number | null;
|
|
@@ -1062,7 +1062,7 @@ export declare const deviceDirectorySyncSchema: z.ZodObject<{
|
|
|
1062
1062
|
userId: string;
|
|
1063
1063
|
contexts: {
|
|
1064
1064
|
active: boolean;
|
|
1065
|
-
kind: "organization" | "
|
|
1065
|
+
kind: "organization" | "personal" | "project" | "bot" | "channel";
|
|
1066
1066
|
accountId: string;
|
|
1067
1067
|
id: string;
|
|
1068
1068
|
lastUsedAt: number | null;
|
|
@@ -1097,7 +1097,7 @@ export declare const deviceDirectorySyncSchema: z.ZodObject<{
|
|
|
1097
1097
|
userId: string;
|
|
1098
1098
|
contexts: {
|
|
1099
1099
|
active: boolean;
|
|
1100
|
-
kind: "organization" | "
|
|
1100
|
+
kind: "organization" | "personal" | "project" | "bot" | "channel";
|
|
1101
1101
|
accountId: string;
|
|
1102
1102
|
id: string;
|
|
1103
1103
|
lastUsedAt: number | null;
|
|
@@ -1131,7 +1131,7 @@ export declare const deviceDirectorySyncSchema: z.ZodObject<{
|
|
|
1131
1131
|
userId: string;
|
|
1132
1132
|
contexts: {
|
|
1133
1133
|
active: boolean;
|
|
1134
|
-
kind: "organization" | "
|
|
1134
|
+
kind: "organization" | "personal" | "project" | "bot" | "channel";
|
|
1135
1135
|
accountId: string;
|
|
1136
1136
|
id: string;
|
|
1137
1137
|
lastUsedAt: number | null;
|
|
@@ -1237,7 +1237,7 @@ export declare const deviceDirectorySyncSchema: z.ZodObject<{
|
|
|
1237
1237
|
userId: string;
|
|
1238
1238
|
contexts: {
|
|
1239
1239
|
active: boolean;
|
|
1240
|
-
kind: "organization" | "
|
|
1240
|
+
kind: "organization" | "personal" | "project" | "bot" | "channel";
|
|
1241
1241
|
accountId: string;
|
|
1242
1242
|
id: string;
|
|
1243
1243
|
lastUsedAt: number | null;
|
|
@@ -1289,7 +1289,7 @@ export declare const deviceDirectorySyncSchema: z.ZodObject<{
|
|
|
1289
1289
|
userId: string;
|
|
1290
1290
|
contexts: {
|
|
1291
1291
|
active: boolean;
|
|
1292
|
-
kind: "organization" | "
|
|
1292
|
+
kind: "organization" | "personal" | "project" | "bot" | "channel";
|
|
1293
1293
|
accountId: string;
|
|
1294
1294
|
id: string;
|
|
1295
1295
|
lastUsedAt: number | null;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
export { SESSION_ACCOUNTS_CHANGED_EVENT } from './client/deviceSession';
|
|
2
3
|
export declare const sessionAccountSchema: z.ZodObject<{
|
|
3
4
|
accountId: z.ZodString;
|
|
4
5
|
sessionId: z.ZodString;
|
|
@@ -283,18 +284,6 @@ export declare const deviceTokenMintResponseSchema: z.ZodObject<{
|
|
|
283
284
|
}>;
|
|
284
285
|
export type DeviceTokenMintRequest = z.infer<typeof deviceTokenMintRequestSchema>;
|
|
285
286
|
export type DeviceTokenMintResponse = z.infer<typeof deviceTokenMintResponseSchema>;
|
|
286
|
-
/**
|
|
287
|
-
* Name of the token-free Socket.IO event emitted to room `user:<userId>` on
|
|
288
|
-
* every DeviceSession mutation that changes what is signed in for that user.
|
|
289
|
-
*
|
|
290
|
-
* This is a pure SIGNAL — it carries NO access token, NO deviceSecret and NO
|
|
291
|
-
* account bodies. A client that receives it re-fetches its authenticated
|
|
292
|
-
* session/account state (`GET /session/device/state`, `GET /accounts`). Unlike
|
|
293
|
-
* `session_state` (scoped to `device:<deviceId>`, i.e. a single origin), this
|
|
294
|
-
* reaches ALL of a user's connected sockets across their devices/origins so
|
|
295
|
-
* every Oxy app reflects an add / switch / signout instantly.
|
|
296
|
-
*/
|
|
297
|
-
export declare const SESSION_ACCOUNTS_CHANGED_EVENT = "session_accounts_changed";
|
|
298
287
|
/**
|
|
299
288
|
* Why the signed-in set changed:
|
|
300
289
|
* - `login` — a brand-new session was minted for the user (QR / cross-app authorize)
|
|
@@ -71,16 +71,9 @@ export declare const resolveExternalIdentityResponseSchema: z.ZodEffects<z.ZodOb
|
|
|
71
71
|
did: z.ZodOptional<z.ZodString>;
|
|
72
72
|
verifiedDomains: z.ZodOptional<z.ZodArray<z.ZodType<import("./identity").VerifiedDomain, z.ZodTypeDef, import("./identity").VerifiedDomain>, "many">>;
|
|
73
73
|
kind: z.ZodOptional<z.ZodEnum<["personal", "organization", "project", "bot", "channel"]>>;
|
|
74
|
-
accountCategories: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodEnum<["news", "politics", "business", "startup", "finance", "crypto", "marketplace", "retail", "real_estate", "agency", "landlord", "cooperative", "architecture", "technology", "software", "ai", "security", "automation", "science", "education", "books", "health", "fitness", "sports", "gaming", "music", "film", "podcast", "art", "photography", "comedy", "food", "travel", "fashion", "home_garden", "diy", "automotive", "animals", "family", "nonprofit", "government", "community", "activism", "environment", "religion", "other"]>, "many">, ("business" | "nonprofit" | "community" | "other" | "
|
|
74
|
+
accountCategories: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodEnum<["news", "politics", "business", "startup", "finance", "crypto", "marketplace", "retail", "real_estate", "agency", "landlord", "cooperative", "architecture", "technology", "software", "ai", "security", "automation", "science", "education", "books", "health", "fitness", "sports", "gaming", "music", "film", "podcast", "art", "photography", "comedy", "food", "travel", "fashion", "home_garden", "diy", "automotive", "animals", "family", "nonprofit", "government", "community", "activism", "environment", "religion", "other"]>, "many">, ("business" | "nonprofit" | "community" | "other" | "news" | "politics" | "startup" | "finance" | "crypto" | "marketplace" | "retail" | "real_estate" | "agency" | "landlord" | "cooperative" | "architecture" | "technology" | "software" | "ai" | "security" | "automation" | "science" | "education" | "books" | "health" | "fitness" | "sports" | "gaming" | "music" | "film" | "podcast" | "art" | "photography" | "comedy" | "food" | "travel" | "fashion" | "home_garden" | "diy" | "automotive" | "animals" | "family" | "government" | "activism" | "environment" | "religion")[], ("business" | "nonprofit" | "community" | "other" | "news" | "politics" | "startup" | "finance" | "crypto" | "marketplace" | "retail" | "real_estate" | "agency" | "landlord" | "cooperative" | "architecture" | "technology" | "software" | "ai" | "security" | "automation" | "science" | "education" | "books" | "health" | "fitness" | "sports" | "gaming" | "music" | "film" | "podcast" | "art" | "photography" | "comedy" | "food" | "travel" | "fashion" | "home_garden" | "diy" | "automotive" | "animals" | "family" | "government" | "activism" | "environment" | "religion")[]>>;
|
|
75
75
|
character: z.ZodOptional<z.ZodType<import("./avatarCharacter").AvatarCharacter, z.ZodTypeDef, unknown>>;
|
|
76
76
|
relationship: z.ZodOptional<z.ZodType<import("./userResponse").UserRelationship, z.ZodTypeDef, import("./userResponse").UserRelationship>>;
|
|
77
|
-
userPreferences: z.ZodOptional<z.ZodObject<{
|
|
78
|
-
displayCurrency: z.ZodOptional<z.ZodEnum<["USD", "EUR", "FAIR"]>>;
|
|
79
|
-
}, "strip", z.ZodUnknown, z.objectOutputType<{
|
|
80
|
-
displayCurrency: z.ZodOptional<z.ZodEnum<["USD", "EUR", "FAIR"]>>;
|
|
81
|
-
}, z.ZodUnknown, "strip">, z.objectInputType<{
|
|
82
|
-
displayCurrency: z.ZodOptional<z.ZodEnum<["USD", "EUR", "FAIR"]>>;
|
|
83
|
-
}, z.ZodUnknown, "strip">>>;
|
|
84
77
|
themePreference: z.ZodOptional<z.ZodType<import("./userResponse").ThemePreference, z.ZodTypeDef, import("./userResponse").ThemePreference>>;
|
|
85
78
|
personalization: z.ZodOptional<z.ZodObject<{
|
|
86
79
|
mentionMono: z.ZodObject<{
|
|
@@ -148,16 +141,9 @@ export declare const resolveExternalIdentityResponseSchema: z.ZodEffects<z.ZodOb
|
|
|
148
141
|
did: z.ZodOptional<z.ZodString>;
|
|
149
142
|
verifiedDomains: z.ZodOptional<z.ZodArray<z.ZodType<import("./identity").VerifiedDomain, z.ZodTypeDef, import("./identity").VerifiedDomain>, "many">>;
|
|
150
143
|
kind: z.ZodOptional<z.ZodEnum<["personal", "organization", "project", "bot", "channel"]>>;
|
|
151
|
-
accountCategories: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodEnum<["news", "politics", "business", "startup", "finance", "crypto", "marketplace", "retail", "real_estate", "agency", "landlord", "cooperative", "architecture", "technology", "software", "ai", "security", "automation", "science", "education", "books", "health", "fitness", "sports", "gaming", "music", "film", "podcast", "art", "photography", "comedy", "food", "travel", "fashion", "home_garden", "diy", "automotive", "animals", "family", "nonprofit", "government", "community", "activism", "environment", "religion", "other"]>, "many">, ("business" | "nonprofit" | "community" | "other" | "
|
|
144
|
+
accountCategories: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodEnum<["news", "politics", "business", "startup", "finance", "crypto", "marketplace", "retail", "real_estate", "agency", "landlord", "cooperative", "architecture", "technology", "software", "ai", "security", "automation", "science", "education", "books", "health", "fitness", "sports", "gaming", "music", "film", "podcast", "art", "photography", "comedy", "food", "travel", "fashion", "home_garden", "diy", "automotive", "animals", "family", "nonprofit", "government", "community", "activism", "environment", "religion", "other"]>, "many">, ("business" | "nonprofit" | "community" | "other" | "news" | "politics" | "startup" | "finance" | "crypto" | "marketplace" | "retail" | "real_estate" | "agency" | "landlord" | "cooperative" | "architecture" | "technology" | "software" | "ai" | "security" | "automation" | "science" | "education" | "books" | "health" | "fitness" | "sports" | "gaming" | "music" | "film" | "podcast" | "art" | "photography" | "comedy" | "food" | "travel" | "fashion" | "home_garden" | "diy" | "automotive" | "animals" | "family" | "government" | "activism" | "environment" | "religion")[], ("business" | "nonprofit" | "community" | "other" | "news" | "politics" | "startup" | "finance" | "crypto" | "marketplace" | "retail" | "real_estate" | "agency" | "landlord" | "cooperative" | "architecture" | "technology" | "software" | "ai" | "security" | "automation" | "science" | "education" | "books" | "health" | "fitness" | "sports" | "gaming" | "music" | "film" | "podcast" | "art" | "photography" | "comedy" | "food" | "travel" | "fashion" | "home_garden" | "diy" | "automotive" | "animals" | "family" | "government" | "activism" | "environment" | "religion")[]>>;
|
|
152
145
|
character: z.ZodOptional<z.ZodType<import("./avatarCharacter").AvatarCharacter, z.ZodTypeDef, unknown>>;
|
|
153
146
|
relationship: z.ZodOptional<z.ZodType<import("./userResponse").UserRelationship, z.ZodTypeDef, import("./userResponse").UserRelationship>>;
|
|
154
|
-
userPreferences: z.ZodOptional<z.ZodObject<{
|
|
155
|
-
displayCurrency: z.ZodOptional<z.ZodEnum<["USD", "EUR", "FAIR"]>>;
|
|
156
|
-
}, "strip", z.ZodUnknown, z.objectOutputType<{
|
|
157
|
-
displayCurrency: z.ZodOptional<z.ZodEnum<["USD", "EUR", "FAIR"]>>;
|
|
158
|
-
}, z.ZodUnknown, "strip">, z.objectInputType<{
|
|
159
|
-
displayCurrency: z.ZodOptional<z.ZodEnum<["USD", "EUR", "FAIR"]>>;
|
|
160
|
-
}, z.ZodUnknown, "strip">>>;
|
|
161
147
|
themePreference: z.ZodOptional<z.ZodType<import("./userResponse").ThemePreference, z.ZodTypeDef, import("./userResponse").ThemePreference>>;
|
|
162
148
|
personalization: z.ZodOptional<z.ZodObject<{
|
|
163
149
|
mentionMono: z.ZodObject<{
|
|
@@ -225,16 +211,9 @@ export declare const resolveExternalIdentityResponseSchema: z.ZodEffects<z.ZodOb
|
|
|
225
211
|
did: z.ZodOptional<z.ZodString>;
|
|
226
212
|
verifiedDomains: z.ZodOptional<z.ZodArray<z.ZodType<import("./identity").VerifiedDomain, z.ZodTypeDef, import("./identity").VerifiedDomain>, "many">>;
|
|
227
213
|
kind: z.ZodOptional<z.ZodEnum<["personal", "organization", "project", "bot", "channel"]>>;
|
|
228
|
-
accountCategories: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodEnum<["news", "politics", "business", "startup", "finance", "crypto", "marketplace", "retail", "real_estate", "agency", "landlord", "cooperative", "architecture", "technology", "software", "ai", "security", "automation", "science", "education", "books", "health", "fitness", "sports", "gaming", "music", "film", "podcast", "art", "photography", "comedy", "food", "travel", "fashion", "home_garden", "diy", "automotive", "animals", "family", "nonprofit", "government", "community", "activism", "environment", "religion", "other"]>, "many">, ("business" | "nonprofit" | "community" | "other" | "
|
|
214
|
+
accountCategories: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodEnum<["news", "politics", "business", "startup", "finance", "crypto", "marketplace", "retail", "real_estate", "agency", "landlord", "cooperative", "architecture", "technology", "software", "ai", "security", "automation", "science", "education", "books", "health", "fitness", "sports", "gaming", "music", "film", "podcast", "art", "photography", "comedy", "food", "travel", "fashion", "home_garden", "diy", "automotive", "animals", "family", "nonprofit", "government", "community", "activism", "environment", "religion", "other"]>, "many">, ("business" | "nonprofit" | "community" | "other" | "news" | "politics" | "startup" | "finance" | "crypto" | "marketplace" | "retail" | "real_estate" | "agency" | "landlord" | "cooperative" | "architecture" | "technology" | "software" | "ai" | "security" | "automation" | "science" | "education" | "books" | "health" | "fitness" | "sports" | "gaming" | "music" | "film" | "podcast" | "art" | "photography" | "comedy" | "food" | "travel" | "fashion" | "home_garden" | "diy" | "automotive" | "animals" | "family" | "government" | "activism" | "environment" | "religion")[], ("business" | "nonprofit" | "community" | "other" | "news" | "politics" | "startup" | "finance" | "crypto" | "marketplace" | "retail" | "real_estate" | "agency" | "landlord" | "cooperative" | "architecture" | "technology" | "software" | "ai" | "security" | "automation" | "science" | "education" | "books" | "health" | "fitness" | "sports" | "gaming" | "music" | "film" | "podcast" | "art" | "photography" | "comedy" | "food" | "travel" | "fashion" | "home_garden" | "diy" | "automotive" | "animals" | "family" | "government" | "activism" | "environment" | "religion")[]>>;
|
|
229
215
|
character: z.ZodOptional<z.ZodType<import("./avatarCharacter").AvatarCharacter, z.ZodTypeDef, unknown>>;
|
|
230
216
|
relationship: z.ZodOptional<z.ZodType<import("./userResponse").UserRelationship, z.ZodTypeDef, import("./userResponse").UserRelationship>>;
|
|
231
|
-
userPreferences: z.ZodOptional<z.ZodObject<{
|
|
232
|
-
displayCurrency: z.ZodOptional<z.ZodEnum<["USD", "EUR", "FAIR"]>>;
|
|
233
|
-
}, "strip", z.ZodUnknown, z.objectOutputType<{
|
|
234
|
-
displayCurrency: z.ZodOptional<z.ZodEnum<["USD", "EUR", "FAIR"]>>;
|
|
235
|
-
}, z.ZodUnknown, "strip">, z.objectInputType<{
|
|
236
|
-
displayCurrency: z.ZodOptional<z.ZodEnum<["USD", "EUR", "FAIR"]>>;
|
|
237
|
-
}, z.ZodUnknown, "strip">>>;
|
|
238
217
|
themePreference: z.ZodOptional<z.ZodType<import("./userResponse").ThemePreference, z.ZodTypeDef, import("./userResponse").ThemePreference>>;
|
|
239
218
|
personalization: z.ZodOptional<z.ZodObject<{
|
|
240
219
|
mentionMono: z.ZodObject<{
|
|
@@ -351,11 +330,11 @@ export declare const resolveExternalIdentityResponseSchema: z.ZodEffects<z.ZodOb
|
|
|
351
330
|
redirectedUserIds: string[];
|
|
352
331
|
email?: string | undefined;
|
|
353
332
|
color?: string | null | undefined;
|
|
354
|
-
kind?: "organization" | "
|
|
333
|
+
kind?: "organization" | "personal" | "project" | "bot" | "channel" | undefined;
|
|
355
334
|
avatar?: string | null | undefined;
|
|
356
335
|
verifiedDomains?: import("./identity").VerifiedDomain[] | undefined;
|
|
357
336
|
bio?: string | undefined;
|
|
358
|
-
accountCategories?: ("business" | "nonprofit" | "community" | "other" | "
|
|
337
|
+
accountCategories?: ("business" | "nonprofit" | "community" | "other" | "news" | "politics" | "startup" | "finance" | "crypto" | "marketplace" | "retail" | "real_estate" | "agency" | "landlord" | "cooperative" | "architecture" | "technology" | "software" | "ai" | "security" | "automation" | "science" | "education" | "books" | "health" | "fitness" | "sports" | "gaming" | "music" | "film" | "podcast" | "art" | "photography" | "comedy" | "food" | "travel" | "fashion" | "home_garden" | "diy" | "automotive" | "animals" | "family" | "government" | "activism" | "environment" | "religion")[] | undefined;
|
|
359
338
|
character?: import("./avatarCharacter").AvatarCharacter | undefined;
|
|
360
339
|
publicKey?: string | undefined;
|
|
361
340
|
verified?: boolean | undefined;
|
|
@@ -368,9 +347,6 @@ export declare const resolveExternalIdentityResponseSchema: z.ZodEffects<z.ZodOb
|
|
|
368
347
|
isAdult?: boolean | undefined;
|
|
369
348
|
languages?: string[] | undefined;
|
|
370
349
|
relationship?: import("./userResponse").UserRelationship | undefined;
|
|
371
|
-
userPreferences?: z.objectOutputType<{
|
|
372
|
-
displayCurrency: z.ZodOptional<z.ZodEnum<["USD", "EUR", "FAIR"]>>;
|
|
373
|
-
}, z.ZodUnknown, "strip"> | undefined;
|
|
374
350
|
themePreference?: import("./userResponse").ThemePreference | undefined;
|
|
375
351
|
personalization?: {
|
|
376
352
|
mentionMono: {
|
|
@@ -415,11 +391,11 @@ export declare const resolveExternalIdentityResponseSchema: z.ZodEffects<z.ZodOb
|
|
|
415
391
|
redirectedUserIds: string[];
|
|
416
392
|
email?: string | undefined;
|
|
417
393
|
color?: string | null | undefined;
|
|
418
|
-
kind?: "organization" | "
|
|
394
|
+
kind?: "organization" | "personal" | "project" | "bot" | "channel" | undefined;
|
|
419
395
|
avatar?: string | null | undefined;
|
|
420
396
|
verifiedDomains?: import("./identity").VerifiedDomain[] | undefined;
|
|
421
397
|
bio?: string | undefined;
|
|
422
|
-
accountCategories?: ("business" | "nonprofit" | "community" | "other" | "
|
|
398
|
+
accountCategories?: ("business" | "nonprofit" | "community" | "other" | "news" | "politics" | "startup" | "finance" | "crypto" | "marketplace" | "retail" | "real_estate" | "agency" | "landlord" | "cooperative" | "architecture" | "technology" | "software" | "ai" | "security" | "automation" | "science" | "education" | "books" | "health" | "fitness" | "sports" | "gaming" | "music" | "film" | "podcast" | "art" | "photography" | "comedy" | "food" | "travel" | "fashion" | "home_garden" | "diy" | "automotive" | "animals" | "family" | "government" | "activism" | "environment" | "religion")[] | undefined;
|
|
423
399
|
character?: unknown;
|
|
424
400
|
publicKey?: string | undefined;
|
|
425
401
|
verified?: boolean | undefined;
|
|
@@ -432,9 +408,6 @@ export declare const resolveExternalIdentityResponseSchema: z.ZodEffects<z.ZodOb
|
|
|
432
408
|
isAdult?: boolean | undefined;
|
|
433
409
|
languages?: string[] | undefined;
|
|
434
410
|
relationship?: import("./userResponse").UserRelationship | undefined;
|
|
435
|
-
userPreferences?: z.objectInputType<{
|
|
436
|
-
displayCurrency: z.ZodOptional<z.ZodEnum<["USD", "EUR", "FAIR"]>>;
|
|
437
|
-
}, z.ZodUnknown, "strip"> | undefined;
|
|
438
411
|
themePreference?: import("./userResponse").ThemePreference | undefined;
|
|
439
412
|
personalization?: {
|
|
440
413
|
mentionMono: {
|
|
@@ -479,11 +452,11 @@ export declare const resolveExternalIdentityResponseSchema: z.ZodEffects<z.ZodOb
|
|
|
479
452
|
redirectedUserIds: string[];
|
|
480
453
|
email?: string | undefined;
|
|
481
454
|
color?: string | null | undefined;
|
|
482
|
-
kind?: "organization" | "
|
|
455
|
+
kind?: "organization" | "personal" | "project" | "bot" | "channel" | undefined;
|
|
483
456
|
avatar?: string | null | undefined;
|
|
484
457
|
verifiedDomains?: import("./identity").VerifiedDomain[] | undefined;
|
|
485
458
|
bio?: string | undefined;
|
|
486
|
-
accountCategories?: ("business" | "nonprofit" | "community" | "other" | "
|
|
459
|
+
accountCategories?: ("business" | "nonprofit" | "community" | "other" | "news" | "politics" | "startup" | "finance" | "crypto" | "marketplace" | "retail" | "real_estate" | "agency" | "landlord" | "cooperative" | "architecture" | "technology" | "software" | "ai" | "security" | "automation" | "science" | "education" | "books" | "health" | "fitness" | "sports" | "gaming" | "music" | "film" | "podcast" | "art" | "photography" | "comedy" | "food" | "travel" | "fashion" | "home_garden" | "diy" | "automotive" | "animals" | "family" | "government" | "activism" | "environment" | "religion")[] | undefined;
|
|
487
460
|
character?: import("./avatarCharacter").AvatarCharacter | undefined;
|
|
488
461
|
publicKey?: string | undefined;
|
|
489
462
|
verified?: boolean | undefined;
|
|
@@ -496,9 +469,6 @@ export declare const resolveExternalIdentityResponseSchema: z.ZodEffects<z.ZodOb
|
|
|
496
469
|
isAdult?: boolean | undefined;
|
|
497
470
|
languages?: string[] | undefined;
|
|
498
471
|
relationship?: import("./userResponse").UserRelationship | undefined;
|
|
499
|
-
userPreferences?: z.objectOutputType<{
|
|
500
|
-
displayCurrency: z.ZodOptional<z.ZodEnum<["USD", "EUR", "FAIR"]>>;
|
|
501
|
-
}, z.ZodUnknown, "strip"> | undefined;
|
|
502
472
|
themePreference?: import("./userResponse").ThemePreference | undefined;
|
|
503
473
|
personalization?: {
|
|
504
474
|
mentionMono: {
|
|
@@ -543,11 +513,11 @@ export declare const resolveExternalIdentityResponseSchema: z.ZodEffects<z.ZodOb
|
|
|
543
513
|
redirectedUserIds: string[];
|
|
544
514
|
email?: string | undefined;
|
|
545
515
|
color?: string | null | undefined;
|
|
546
|
-
kind?: "organization" | "
|
|
516
|
+
kind?: "organization" | "personal" | "project" | "bot" | "channel" | undefined;
|
|
547
517
|
avatar?: string | null | undefined;
|
|
548
518
|
verifiedDomains?: import("./identity").VerifiedDomain[] | undefined;
|
|
549
519
|
bio?: string | undefined;
|
|
550
|
-
accountCategories?: ("business" | "nonprofit" | "community" | "other" | "
|
|
520
|
+
accountCategories?: ("business" | "nonprofit" | "community" | "other" | "news" | "politics" | "startup" | "finance" | "crypto" | "marketplace" | "retail" | "real_estate" | "agency" | "landlord" | "cooperative" | "architecture" | "technology" | "software" | "ai" | "security" | "automation" | "science" | "education" | "books" | "health" | "fitness" | "sports" | "gaming" | "music" | "film" | "podcast" | "art" | "photography" | "comedy" | "food" | "travel" | "fashion" | "home_garden" | "diy" | "automotive" | "animals" | "family" | "government" | "activism" | "environment" | "religion")[] | undefined;
|
|
551
521
|
character?: unknown;
|
|
552
522
|
publicKey?: string | undefined;
|
|
553
523
|
verified?: boolean | undefined;
|
|
@@ -560,9 +530,6 @@ export declare const resolveExternalIdentityResponseSchema: z.ZodEffects<z.ZodOb
|
|
|
560
530
|
isAdult?: boolean | undefined;
|
|
561
531
|
languages?: string[] | undefined;
|
|
562
532
|
relationship?: import("./userResponse").UserRelationship | undefined;
|
|
563
|
-
userPreferences?: z.objectInputType<{
|
|
564
|
-
displayCurrency: z.ZodOptional<z.ZodEnum<["USD", "EUR", "FAIR"]>>;
|
|
565
|
-
}, z.ZodUnknown, "strip"> | undefined;
|
|
566
533
|
themePreference?: import("./userResponse").ThemePreference | undefined;
|
|
567
534
|
personalization?: {
|
|
568
535
|
mentionMono: {
|
|
@@ -24,18 +24,10 @@
|
|
|
24
24
|
* The server stores only the challenge's hash; the challenge travels in the QR.
|
|
25
25
|
*/
|
|
26
26
|
import { z } from 'zod';
|
|
27
|
-
|
|
28
|
-
export
|
|
29
|
-
|
|
30
|
-
export declare const IDENTITY_LINK_QR_PREFIX = "oxycommons://link";
|
|
27
|
+
import { type IdentityLinkStatus } from './client/identityLink';
|
|
28
|
+
export { IDENTITY_LINK_STATUSES, IDENTITY_LINK_QR_PREFIX, buildIdentityLinkQrPayload, parseIdentityLinkQrPayload, } from './client/identityLink';
|
|
29
|
+
export type { IdentityLinkStatus } from './client/identityLink';
|
|
31
30
|
export declare const identityLinkIdSchema: z.ZodString;
|
|
32
|
-
/** The QR auth.oxy.so shows: the request's id and the challenge Commons signs. */
|
|
33
|
-
export declare function buildIdentityLinkQrPayload(linkId: string, challenge: string): string;
|
|
34
|
-
/** The request a scanned code names, or `null` for anything that is not a link QR. */
|
|
35
|
-
export declare function parseIdentityLinkQrPayload(raw: string): {
|
|
36
|
-
linkId: string;
|
|
37
|
-
challenge: string;
|
|
38
|
-
} | null;
|
|
39
31
|
/** `POST /identity/link` */
|
|
40
32
|
export interface IdentityLinkCreateResponse {
|
|
41
33
|
linkId: string;
|
|
@@ -16,59 +16,8 @@
|
|
|
16
16
|
* primitive and passes the hex digest in).
|
|
17
17
|
*/
|
|
18
18
|
import { z } from 'zod';
|
|
19
|
-
export
|
|
20
|
-
export
|
|
21
|
-
/** The audience every API-verified identity proof names. */
|
|
22
|
-
export declare const IDENTITY_PROOF_AUDIENCE: "oxy-api/identity";
|
|
23
|
-
/** How long a proof challenge lives: one interactive ceremony. */
|
|
24
|
-
export declare const IDENTITY_PROOF_CHALLENGE_TTL_MS: number;
|
|
25
|
-
/**
|
|
26
|
-
* Everything a root proof may authorize. A challenge is minted for exactly one
|
|
27
|
-
* action and spent only by a proof for that action.
|
|
28
|
-
*/
|
|
29
|
-
export declare const IDENTITY_PROOF_ACTIONS: {
|
|
30
|
-
/**
|
|
31
|
-
* Link Commons' root to an account that has none (`POST /auth/link`).
|
|
32
|
-
* The account becomes self-custodied and its email is deleted
|
|
33
|
-
* (ADR 0029 D3).
|
|
34
|
-
*/
|
|
35
|
-
readonly link: "link_identity";
|
|
36
|
-
};
|
|
37
|
-
export type IdentityProofAction = (typeof IDENTITY_PROOF_ACTIONS)[keyof typeof IDENTITY_PROOF_ACTIONS];
|
|
38
|
-
export declare const IDENTITY_PROOF_ACTION_VALUES: [IdentityProofAction, ...IdentityProofAction[]];
|
|
39
|
-
/**
|
|
40
|
-
* The signed claims. `null` is written explicitly for a field that does not
|
|
41
|
-
* apply, so "absent" can never be confused with a value.
|
|
42
|
-
*/
|
|
43
|
-
export interface IdentityProofClaims {
|
|
44
|
-
action: IdentityProofAction;
|
|
45
|
-
/** The account the operation changes (`users.id`), or a namespaced subject (`username:alice`) before one exists. */
|
|
46
|
-
subject: string;
|
|
47
|
-
/** Who performs it: the signed-in personal principal, or `credential:<id>` / `anonymous` where none exists. */
|
|
48
|
-
actor: string;
|
|
49
|
-
/** The root doing the signing, lowercase uncompressed hex. */
|
|
50
|
-
rootPublicKey: string;
|
|
51
|
-
/** SHA-256 hex of `canonicalJson(payload)`, or `null` when the operation has no payload. */
|
|
52
|
-
payloadDigest: string | null;
|
|
53
|
-
/** The revision the operation expects to replace, or `null` when it replaces nothing. */
|
|
54
|
-
expectedRevision: number | null;
|
|
55
|
-
audience: string;
|
|
56
|
-
/** The one-use server challenge. */
|
|
57
|
-
challenge: string;
|
|
58
|
-
/** Unix milliseconds after which the proof is refused. */
|
|
59
|
-
expiresAt: number;
|
|
60
|
-
}
|
|
61
|
-
/**
|
|
62
|
-
* Canonical JSON: object keys sorted by UTF-16 code unit, no whitespace,
|
|
63
|
-
* `undefined` members omitted, arrays in order. Numbers must be finite. This is
|
|
64
|
-
* the ONLY serializer for anything digested into a proof.
|
|
65
|
-
*/
|
|
66
|
-
export declare function canonicalJson(value: unknown): string;
|
|
67
|
-
/**
|
|
68
|
-
* The exact bytes a root signs. Throws on a malformed claim rather than signing
|
|
69
|
-
* (or verifying) something ambiguous.
|
|
70
|
-
*/
|
|
71
|
-
export declare function buildIdentityProofMessage(claims: IdentityProofClaims): string;
|
|
19
|
+
export { IDENTITY_PROOF_VERSION, IDENTITY_PROOF_DOMAIN, IDENTITY_PROOF_AUDIENCE, IDENTITY_PROOF_CHALLENGE_TTL_MS, IDENTITY_PROOF_ACTIONS, IDENTITY_PROOF_ACTION_VALUES, canonicalJson, buildIdentityProofMessage, IDENTITY_ERROR_CODES, } from './client/identityProof';
|
|
20
|
+
export type { IdentityProofAction, IdentityProofClaims, IdentityErrorCode, } from './client/identityProof';
|
|
72
21
|
/** The proof as it travels: the signature plus the two claims the verifier cannot derive. */
|
|
73
22
|
export declare const identityProofSchema: z.ZodObject<{
|
|
74
23
|
v: z.ZodLiteral<2>;
|
|
@@ -103,18 +52,6 @@ export interface IdentityProofChallengeResponse {
|
|
|
103
52
|
audience: string;
|
|
104
53
|
}
|
|
105
54
|
export declare const identityProofChallengeResponseSchema: z.ZodType<IdentityProofChallengeResponse>;
|
|
106
|
-
/**
|
|
107
|
-
* Stable error codes the root routes answer with (`error.code` in the API error
|
|
108
|
-
* body). Clients map these through their localization, never the English message.
|
|
109
|
-
*/
|
|
110
|
-
export declare const IDENTITY_ERROR_CODES: {
|
|
111
|
-
readonly proofInvalid: "IDENTITY_PROOF_INVALID";
|
|
112
|
-
readonly rootAlreadyLinked: "IDENTITY_ROOT_ALREADY_LINKED";
|
|
113
|
-
readonly rootLinkedElsewhere: "IDENTITY_ROOT_LINKED_ELSEWHERE";
|
|
114
|
-
readonly freshFactorRequired: "IDENTITY_FRESH_FACTOR_REQUIRED";
|
|
115
|
-
readonly notPersonal: "IDENTITY_NOT_PERSONAL_ACCOUNT";
|
|
116
|
-
};
|
|
117
|
-
export type IdentityErrorCode = (typeof IDENTITY_ERROR_CODES)[keyof typeof IDENTITY_ERROR_CODES];
|
|
118
55
|
/**
|
|
119
56
|
* `GET /identity/root-status` — how the signed-in account is kept (ADR 0029 D3),
|
|
120
57
|
* for Accounts and the account menu to recommend linking Commons. Read with a
|
package/dist/types/index.d.ts
CHANGED
|
@@ -58,8 +58,8 @@ export type { IdentityProofAction, IdentityErrorCode, IdentityProofClaims, Ident
|
|
|
58
58
|
export { updatePlatformSchema, updateStatusSchema, updateAssetStatusSchema, sha256HexSchema, channelNameSchema, runtimeVersionSchema, rolloutPercentSchema, assetInitItemSchema, assetInitRequestSchema, assetUploadTicketSchema, assetInitResponseSchema, assetCompleteRequestSchema, assetCompleteResultItemSchema, assetCompleteResponseSchema, updateAssetRefSchema, createUpdateRequestSchema, updateSchema, createUpdateResponseSchema, rollbackToEmbeddedEntrySchema, channelSchema, channelListResponseSchema, updateListResponseSchema, rollbackRequestSchema, rollbackToEmbeddedRequestSchema, promoteRequestSchema, updateRolloutPatchSchema, } from './updates';
|
|
59
59
|
export type { UpdatePlatform, UpdateStatus, UpdateAssetStatus, AssetInitItem, AssetInitRequest, AssetUploadTicket, AssetInitResponse, AssetCompleteRequest, AssetCompleteResultItem, AssetCompleteResponse, UpdateAssetRef, CreateUpdateRequest, Update, CreateUpdateResponse, RollbackToEmbeddedEntry, Channel, ChannelListResponse, UpdateListResponse, RollbackRequest, RollbackToEmbeddedRequest, PromoteRequest, UpdateRolloutPatch, } from './updates';
|
|
60
60
|
export { EMAIL_VERIFICATION_PURPOSES, EMAIL_CODE_LENGTH, EMAIL_CODE_TTL_MS, EMAIL_CODE_MAX_ATTEMPTS, EMAIL_TICKET_TTL_MS, EMAIL_VERIFICATION_ERROR_CODES, emailAddressSchema, emailTicketSchema, emailVerificationStartRequestSchema, emailVerificationStartResponseSchema, emailVerificationConfirmRequestSchema, emailVerificationConfirmResponseSchema, } from './accountEmail';
|
|
61
|
-
export { EMAIL_SIGNIN_LINK_TTL_MS, SIGNIN_SECOND_FACTOR_TTL_MS, SIGNIN_SECOND_FACTOR_MAX_ATTEMPTS, PASSWORD_MIN_LENGTH, PASSWORD_MAX_LENGTH, TOTP_DIGITS, TOTP_PERIOD_SECONDS, TOTP_BACKUP_CODE_COUNT, SIGN_IN_ERROR_CODES, signInIdentifierSchema, passwordInputSchema, newPasswordSchema, secondFactorCodeSchema, emailSignInStartRequestSchema, emailSignInStartResponseSchema, emailSignInConfirmRequestSchema, emailSignInCodeSchema, normalizeEmailSignInCode, EMAIL_SIGNIN_LONG_CODE_ALPHABET, EMAIL_SIGNIN_LONG_CODE_LENGTH, emailSignInCollectRequestSchema, emailSignInLinkRequestSchema, emailSignInLinkResponseSchema, emailSignInPendingSchema, passwordSignInRequestSchema, secondFactorSignInRequestSchema, secondFactorRequiredSchema, signUpRequestSchema, isSecondFactorRequired, reauthProofSchema, emailReauthProofSchema, REAUTH_ACTIONS, reauthEmailStartRequestSchema, passwordSetRequestSchema, signInMethodsSchema, totpEnrollResponseSchema, totpConfirmRequestSchema, totpReauthRequestSchema, totpBackupCodesResponseSchema, } from './signIn';
|
|
62
|
-
export type { EmailSignInStartRequest, EmailSignInStartResponse, EmailSignInConfirmRequest, EmailSignInCollectRequest, EmailSignInLinkRequest, EmailSignInLinkResponse, EmailSignInPending, PasswordSignInRequest, SecondFactorSignInRequest, SecondFactorRequired, SignInStepResult, SignUpRequest, ReauthProof, EmailReauthProof, ReauthAction, ReauthEmailStartRequest, PasswordSetRequest, SignInMethods, TotpEnrollResponse, TotpConfirmRequest, TotpReauthRequest, TotpBackupCodesResponse, SignInErrorCode, } from './signIn';
|
|
61
|
+
export { EMAIL_SIGNIN_LINK_TTL_MS, SIGNIN_SECOND_FACTOR_TTL_MS, SIGNIN_SECOND_FACTOR_MAX_ATTEMPTS, PASSWORD_MIN_LENGTH, PASSWORD_MAX_LENGTH, TOTP_DIGITS, TOTP_PERIOD_SECONDS, TOTP_BACKUP_CODE_COUNT, SIGN_IN_ERROR_CODES, signInIdentifierSchema, passwordInputSchema, newPasswordSchema, secondFactorCodeSchema, emailSignInStartRequestSchema, emailSignInStartResponseSchema, emailSignInConfirmRequestSchema, emailSignInCodeSchema, normalizeEmailSignInCode, EMAIL_SIGNIN_LONG_CODE_ALPHABET, EMAIL_SIGNIN_LONG_CODE_LENGTH, emailSignInCollectRequestSchema, emailSignInLinkRequestSchema, emailSignInLinkResponseSchema, emailSignInPendingSchema, EMAIL_SIGNIN_CHOICE_TTL_MS, EMAIL_ACCOUNTS_MAX, emailSignInAccountOptionSchema, emailSignInChooseAccountSchema, emailSignInChooseRequestSchema, isEmailSignInChooseAccount, passwordSignInRequestSchema, secondFactorSignInRequestSchema, secondFactorRequiredSchema, signUpRequestSchema, isSecondFactorRequired, reauthProofSchema, emailReauthProofSchema, REAUTH_ACTIONS, reauthEmailStartRequestSchema, passwordSetRequestSchema, signInMethodsSchema, totpEnrollResponseSchema, totpConfirmRequestSchema, totpReauthRequestSchema, totpBackupCodesResponseSchema, } from './signIn';
|
|
62
|
+
export type { EmailSignInStartRequest, EmailSignInStartResponse, EmailSignInConfirmRequest, EmailSignInCollectRequest, EmailSignInLinkRequest, EmailSignInLinkResponse, EmailSignInPending, EmailSignInAccountOption, EmailSignInChooseAccount, EmailSignInChooseRequest, EmailSignInStepResult, PasswordSignInRequest, SecondFactorSignInRequest, SecondFactorRequired, SignInStepResult, SignUpRequest, ReauthProof, EmailReauthProof, ReauthAction, ReauthEmailStartRequest, PasswordSetRequest, SignInMethods, TotpEnrollResponse, TotpConfirmRequest, TotpReauthRequest, TotpBackupCodesResponse, SignInErrorCode, } from './signIn';
|
|
63
63
|
export { IDENTITY_LINK_STATUSES, IDENTITY_LINK_QR_PREFIX, identityLinkIdSchema, buildIdentityLinkQrPayload, parseIdentityLinkQrPayload, identityLinkCreateResponseSchema, identityLinkStateSchema, identityLinkProofRequestSchema, identityLinkCompleteRequestSchema, } from './identityLink';
|
|
64
64
|
export type { IdentityLinkStatus, IdentityLinkCreateResponse, IdentityLinkState, IdentityLinkProofRequest, IdentityLinkCompleteRequest, } from './identityLink';
|
|
65
65
|
export type { EmailVerificationPurpose, EmailVerificationStartRequest, EmailVerificationStartResponse, EmailVerificationConfirmRequest, EmailVerificationConfirmResponse, EmailVerificationErrorCode, } from './accountEmail';
|
|
@@ -132,7 +132,7 @@ export { meteredGenerationSchema, type MeteredGeneration } from './inference/eco
|
|
|
132
132
|
export { canonicalCapabilityJson, inputSatisfiesCapabilityLimits, isLoopbackOrigin, } from './capabilityBindings';
|
|
133
133
|
export * from './agentKeys';
|
|
134
134
|
export { productSubscriptionSummarySchema, productSubscriptionsResponseSchema, subscriptionCreditGrantSchema, subscriptionCreditGrantsResponseSchema, cancelProductSubscriptionSchema, productSubscriptionCancellationResultSchema, type ProductSubscriptionSummary, type SubscriptionCreditGrant, type ProductSubscriptionCancellationResult, } from './products/billing';
|
|
135
|
-
export { personalPlanDisplayPriceSchema, personalPlanCatalogueSchema,
|
|
135
|
+
export { personalPlanDisplayPriceSchema, personalPlanCatalogueSchema, type PersonalPlanCatalogue, } from './products/plans';
|
|
136
136
|
export * from './products/checkout';
|
|
137
137
|
export * from './organizations';
|
|
138
138
|
export * from './safety';
|