@oxy.so/contracts 4.16.0 → 4.21.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/accountAccess.js +72 -0
- package/dist/cjs/accountEmail.js +12 -34
- package/dist/cjs/accountGraph.js +22 -320
- package/dist/cjs/agency.js +112 -1
- package/dist/cjs/agentKeys.js +11 -13
- package/dist/cjs/applicationRoles.js +211 -0
- 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 +475 -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 +211 -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 +196 -0
- package/dist/cjs/client/sessionStatus.js +23 -0
- package/dist/cjs/client/signIn.js +159 -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 +13 -3
- package/dist/cjs/organizations.js +21 -41
- package/dist/cjs/reputation.js +3 -34
- package/dist/cjs/safety.js +430 -1
- package/dist/cjs/serviceToken.js +14 -0
- package/dist/cjs/signIn.js +33 -111
- package/dist/cjs/username.js +23 -158
- package/dist/esm/accountAccess.js +69 -0
- package/dist/esm/accountEmail.js +4 -32
- package/dist/esm/accountGraph.js +4 -309
- package/dist/esm/agency.js +111 -0
- package/dist/esm/agentKeys.js +4 -10
- package/dist/esm/applicationRoles.js +207 -0
- 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 +436 -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 +193 -0
- package/dist/esm/client/sessionStatus.js +20 -0
- package/dist/esm/client/signIn.js +153 -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 +4 -1
- package/dist/esm/organizations.js +4 -31
- package/dist/esm/reputation.js +1 -32
- package/dist/esm/safety.js +423 -0
- package/dist/esm/serviceToken.js +11 -0
- package/dist/esm/signIn.js +4 -96
- package/dist/esm/username.js +4 -148
- package/dist/types/accountAccess.d.ts +128 -0
- package/dist/types/accountEmail.d.ts +4 -36
- package/dist/types/accountGraph.d.ts +12 -208
- package/dist/types/agency.d.ts +351 -26
- package/dist/types/agentKeys.d.ts +14 -12
- package/dist/types/applicationRoles.d.ts +438 -0
- 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 +187 -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 +213 -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 +5 -16
- package/dist/types/email/messages.d.ts +2 -2
- package/dist/types/externalIdentity.d.ts +15 -15
- package/dist/types/identityLink.d.ts +3 -11
- package/dist/types/identityProof.d.ts +2 -65
- package/dist/types/index.d.ts +5 -2
- package/dist/types/inference/accountBilling.d.ts +2 -2
- package/dist/types/inference/catalogue.d.ts +22 -22
- package/dist/types/inference/decisions.d.ts +10 -10
- 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/privateAutoExecution.d.ts +6 -6
- package/dist/types/inference/providerConnection.d.ts +4 -4
- package/dist/types/inference/realtime.d.ts +92 -92
- package/dist/types/inference/request.d.ts +48 -48
- package/dist/types/inference/streamEvents.d.ts +16 -16
- package/dist/types/inference/usage.d.ts +4 -4
- package/dist/types/oauth.d.ts +2 -2
- package/dist/types/organizations.d.ts +8 -10
- package/dist/types/products/access.d.ts +4 -4
- package/dist/types/products/billing.d.ts +3 -0
- package/dist/types/reputation.d.ts +1 -11
- package/dist/types/safety.d.ts +2374 -2
- package/dist/types/serviceToken.d.ts +11 -0
- package/dist/types/sessionStatus.d.ts +2 -2
- package/dist/types/signIn.d.ts +11 -94
- package/dist/types/userResponse.d.ts +22 -22
- package/dist/types/username.d.ts +1 -96
- package/package.json +24 -20
- package/dist/cjs/.tsbuildinfo +0 -1
- package/dist/esm/.tsbuildinfo +0 -1
- package/dist/types/.tsbuildinfo +0 -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)
|
|
@@ -353,13 +342,13 @@ export declare const deviceBackgroundCredentialResponseSchema: z.ZodObject<{
|
|
|
353
342
|
accountId: z.ZodString;
|
|
354
343
|
expiresAt: z.ZodString;
|
|
355
344
|
}, "strip", z.ZodTypeAny, {
|
|
356
|
-
expiresAt: string;
|
|
357
345
|
accountId: string;
|
|
346
|
+
expiresAt: string;
|
|
358
347
|
deviceId: string;
|
|
359
348
|
secret: string;
|
|
360
349
|
}, {
|
|
361
|
-
expiresAt: string;
|
|
362
350
|
accountId: string;
|
|
351
|
+
expiresAt: string;
|
|
363
352
|
deviceId: string;
|
|
364
353
|
secret: string;
|
|
365
354
|
}>;
|
|
@@ -398,12 +387,12 @@ export declare const deviceBackgroundTokenResponseSchema: z.ZodObject<{
|
|
|
398
387
|
expiresAt: z.ZodString;
|
|
399
388
|
accountId: z.ZodString;
|
|
400
389
|
}, "strip", z.ZodTypeAny, {
|
|
401
|
-
expiresAt: string;
|
|
402
390
|
accountId: string;
|
|
391
|
+
expiresAt: string;
|
|
403
392
|
accessToken: string;
|
|
404
393
|
}, {
|
|
405
|
-
expiresAt: string;
|
|
406
394
|
accountId: string;
|
|
395
|
+
expiresAt: string;
|
|
407
396
|
accessToken: string;
|
|
408
397
|
}>;
|
|
409
398
|
export type DeviceBackgroundCredentialResponse = z.infer<typeof deviceBackgroundCredentialResponseSchema>;
|
|
@@ -2190,11 +2190,11 @@ export declare const emailContactSchema: z.ZodObject<{
|
|
|
2190
2190
|
createdAt: z.ZodString;
|
|
2191
2191
|
updatedAt: z.ZodString;
|
|
2192
2192
|
}, "strip", z.ZodTypeAny, {
|
|
2193
|
-
email: string;
|
|
2194
2193
|
name: string;
|
|
2195
2194
|
createdAt: string;
|
|
2196
2195
|
updatedAt: string;
|
|
2197
2196
|
id: string;
|
|
2197
|
+
email: string;
|
|
2198
2198
|
userId: string;
|
|
2199
2199
|
_id: string;
|
|
2200
2200
|
starred: boolean;
|
|
@@ -2203,11 +2203,11 @@ export declare const emailContactSchema: z.ZodObject<{
|
|
|
2203
2203
|
autoCollected: boolean;
|
|
2204
2204
|
lastContactedAt: string | null;
|
|
2205
2205
|
}, {
|
|
2206
|
-
email: string;
|
|
2207
2206
|
name: string;
|
|
2208
2207
|
createdAt: string;
|
|
2209
2208
|
updatedAt: string;
|
|
2210
2209
|
id: string;
|
|
2210
|
+
email: string;
|
|
2211
2211
|
userId: string;
|
|
2212
2212
|
_id: string;
|
|
2213
2213
|
starred: boolean;
|
|
@@ -71,7 +71,7 @@ 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
77
|
themePreference: z.ZodOptional<z.ZodType<import("./userResponse").ThemePreference, z.ZodTypeDef, import("./userResponse").ThemePreference>>;
|
|
@@ -141,7 +141,7 @@ export declare const resolveExternalIdentityResponseSchema: z.ZodEffects<z.ZodOb
|
|
|
141
141
|
did: z.ZodOptional<z.ZodString>;
|
|
142
142
|
verifiedDomains: z.ZodOptional<z.ZodArray<z.ZodType<import("./identity").VerifiedDomain, z.ZodTypeDef, import("./identity").VerifiedDomain>, "many">>;
|
|
143
143
|
kind: z.ZodOptional<z.ZodEnum<["personal", "organization", "project", "bot", "channel"]>>;
|
|
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" | "
|
|
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")[]>>;
|
|
145
145
|
character: z.ZodOptional<z.ZodType<import("./avatarCharacter").AvatarCharacter, z.ZodTypeDef, unknown>>;
|
|
146
146
|
relationship: z.ZodOptional<z.ZodType<import("./userResponse").UserRelationship, z.ZodTypeDef, import("./userResponse").UserRelationship>>;
|
|
147
147
|
themePreference: z.ZodOptional<z.ZodType<import("./userResponse").ThemePreference, z.ZodTypeDef, import("./userResponse").ThemePreference>>;
|
|
@@ -211,7 +211,7 @@ export declare const resolveExternalIdentityResponseSchema: z.ZodEffects<z.ZodOb
|
|
|
211
211
|
did: z.ZodOptional<z.ZodString>;
|
|
212
212
|
verifiedDomains: z.ZodOptional<z.ZodArray<z.ZodType<import("./identity").VerifiedDomain, z.ZodTypeDef, import("./identity").VerifiedDomain>, "many">>;
|
|
213
213
|
kind: z.ZodOptional<z.ZodEnum<["personal", "organization", "project", "bot", "channel"]>>;
|
|
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" | "
|
|
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")[]>>;
|
|
215
215
|
character: z.ZodOptional<z.ZodType<import("./avatarCharacter").AvatarCharacter, z.ZodTypeDef, unknown>>;
|
|
216
216
|
relationship: z.ZodOptional<z.ZodType<import("./userResponse").UserRelationship, z.ZodTypeDef, import("./userResponse").UserRelationship>>;
|
|
217
217
|
themePreference: z.ZodOptional<z.ZodType<import("./userResponse").ThemePreference, z.ZodTypeDef, import("./userResponse").ThemePreference>>;
|
|
@@ -328,14 +328,14 @@ export declare const resolveExternalIdentityResponseSchema: z.ZodEffects<z.ZodOb
|
|
|
328
328
|
sourceUserId: string;
|
|
329
329
|
}[];
|
|
330
330
|
redirectedUserIds: string[];
|
|
331
|
-
email?: string | undefined;
|
|
332
331
|
color?: string | null | undefined;
|
|
333
|
-
kind?: "organization" | "
|
|
332
|
+
kind?: "organization" | "personal" | "project" | "bot" | "channel" | undefined;
|
|
334
333
|
avatar?: string | null | undefined;
|
|
335
334
|
verifiedDomains?: import("./identity").VerifiedDomain[] | undefined;
|
|
336
335
|
bio?: string | undefined;
|
|
337
|
-
accountCategories?: ("business" | "nonprofit" | "community" | "other" | "
|
|
336
|
+
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;
|
|
338
337
|
character?: import("./avatarCharacter").AvatarCharacter | undefined;
|
|
338
|
+
email?: string | undefined;
|
|
339
339
|
publicKey?: string | undefined;
|
|
340
340
|
verified?: boolean | undefined;
|
|
341
341
|
did?: string | undefined;
|
|
@@ -389,14 +389,14 @@ export declare const resolveExternalIdentityResponseSchema: z.ZodEffects<z.ZodOb
|
|
|
389
389
|
sourceUserId: string;
|
|
390
390
|
}[];
|
|
391
391
|
redirectedUserIds: string[];
|
|
392
|
-
email?: string | undefined;
|
|
393
392
|
color?: string | null | undefined;
|
|
394
|
-
kind?: "organization" | "
|
|
393
|
+
kind?: "organization" | "personal" | "project" | "bot" | "channel" | undefined;
|
|
395
394
|
avatar?: string | null | undefined;
|
|
396
395
|
verifiedDomains?: import("./identity").VerifiedDomain[] | undefined;
|
|
397
396
|
bio?: string | undefined;
|
|
398
|
-
accountCategories?: ("business" | "nonprofit" | "community" | "other" | "
|
|
397
|
+
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;
|
|
399
398
|
character?: unknown;
|
|
399
|
+
email?: string | undefined;
|
|
400
400
|
publicKey?: string | undefined;
|
|
401
401
|
verified?: boolean | undefined;
|
|
402
402
|
did?: string | undefined;
|
|
@@ -450,14 +450,14 @@ export declare const resolveExternalIdentityResponseSchema: z.ZodEffects<z.ZodOb
|
|
|
450
450
|
sourceUserId: string;
|
|
451
451
|
}[];
|
|
452
452
|
redirectedUserIds: string[];
|
|
453
|
-
email?: string | undefined;
|
|
454
453
|
color?: string | null | undefined;
|
|
455
|
-
kind?: "organization" | "
|
|
454
|
+
kind?: "organization" | "personal" | "project" | "bot" | "channel" | undefined;
|
|
456
455
|
avatar?: string | null | undefined;
|
|
457
456
|
verifiedDomains?: import("./identity").VerifiedDomain[] | undefined;
|
|
458
457
|
bio?: string | undefined;
|
|
459
|
-
accountCategories?: ("business" | "nonprofit" | "community" | "other" | "
|
|
458
|
+
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;
|
|
460
459
|
character?: import("./avatarCharacter").AvatarCharacter | undefined;
|
|
460
|
+
email?: string | undefined;
|
|
461
461
|
publicKey?: string | undefined;
|
|
462
462
|
verified?: boolean | undefined;
|
|
463
463
|
did?: string | undefined;
|
|
@@ -511,14 +511,14 @@ export declare const resolveExternalIdentityResponseSchema: z.ZodEffects<z.ZodOb
|
|
|
511
511
|
sourceUserId: string;
|
|
512
512
|
}[];
|
|
513
513
|
redirectedUserIds: string[];
|
|
514
|
-
email?: string | undefined;
|
|
515
514
|
color?: string | null | undefined;
|
|
516
|
-
kind?: "organization" | "
|
|
515
|
+
kind?: "organization" | "personal" | "project" | "bot" | "channel" | undefined;
|
|
517
516
|
avatar?: string | null | undefined;
|
|
518
517
|
verifiedDomains?: import("./identity").VerifiedDomain[] | undefined;
|
|
519
518
|
bio?: string | undefined;
|
|
520
|
-
accountCategories?: ("business" | "nonprofit" | "community" | "other" | "
|
|
519
|
+
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;
|
|
521
520
|
character?: unknown;
|
|
521
|
+
email?: string | undefined;
|
|
522
522
|
publicKey?: string | undefined;
|
|
523
523
|
verified?: boolean | undefined;
|
|
524
524
|
did?: string | undefined;
|
|
@@ -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
|
@@ -102,8 +102,8 @@ export { PRODUCT_PLAN_STATUSES, productPlanStatusSchema, LIVE_PRODUCT_PLAN_STATU
|
|
|
102
102
|
export type { ProductPlanStatus, PlanAllowance, ProductPlan, PayAsYouGoEntitlement, CostCenterStatus, CostCenter, CostCenterSpend, ProductEntitlement, } from './inference/entitlement';
|
|
103
103
|
export { INFERENCE_ECONOMIC_TREATMENTS, inferenceEconomicTreatmentSchema, PROVIDER_COST_SOURCES, providerCostSourceSchema, costCenterUsageSchema, } from './inference/economics';
|
|
104
104
|
export type { InferenceEconomicTreatment, ProviderCostSource, CostCenterUsage, } from './inference/economics';
|
|
105
|
-
export { AUTONOMY_LEVELS, CAPABILITY_PACKAGES, autonomyLevelSchema, capabilityPackageSchema, actorRefSchema, executionActorRefSchema, foregroundExecutionAuthorizationInputSchema, resourceRefSchema, toolGrantOverrideSchema, grantLimitSchema, capabilityCatalogBindingSchema, executionAuthorizationRefSchema, capabilityCoordinatorSchema, capabilityTicketRequestSchema, delegationGrantSchema, automationTriggerSchema, automationActorSelectionSchema, automationDataFlowSchema, automationDefinitionSchema, capabilityTicketClaimsSchema, invocationPrincipalSchema, policyDecisionSchema, auditResultSchema, auditEventSchema, catalogToolSchema, catalogEventSchema, appCapabilityCatalogSchema, catalogRegistrationSchema, normalizedAppEventSchema, } from './agency';
|
|
106
|
-
export type { AutonomyLevel, CapabilityPackage, ActorRef, ExecutionActorRef, ForegroundExecutionAuthorizationInput, ResourceRef, ToolGrantOverride, GrantLimit, CapabilityCatalogBinding, ExecutionAuthorizationRef, CapabilityCoordinator, CapabilityTicketRequest, DelegationGrant, AutomationTrigger, AutomationActorSelection, AutomationDefinition, CapabilityTicketClaims, InvocationPrincipal, PolicyDecision, AuditEvent, CatalogTool, CatalogEvent, AppCapabilityCatalog, CatalogRegistration, NormalizedAppEvent, } from './agency';
|
|
105
|
+
export { AUTONOMY_LEVELS, CAPABILITY_PACKAGES, autonomyLevelSchema, capabilityPackageSchema, actorRefSchema, executionActorRefSchema, foregroundExecutionAuthorizationInputSchema, resourceRefSchema, toolGrantOverrideSchema, grantLimitSchema, capabilityCatalogBindingSchema, executionAuthorizationRefSchema, capabilityCoordinatorSchema, capabilityTicketRequestSchema, delegationGrantSchema, AGENT_REQUESTER_CEILING_AUTONOMY, agentRequesterCeilingWriteSchema, agentRequesterCeilingSchema, automationTriggerSchema, automationActorSelectionSchema, automationDataFlowSchema, automationDefinitionSchema, capabilityTicketClaimsSchema, invocationPrincipalSchema, policyDecisionSchema, auditResultSchema, auditEventSchema, catalogToolSchema, catalogEventSchema, catalogFeatureSchema, CATALOG_INTERNAL_TRANSPORTS, appCapabilityCatalogSchema, catalogRegistrationSchema, normalizedAppEventSchema, } from './agency';
|
|
106
|
+
export type { AutonomyLevel, CapabilityPackage, ActorRef, ExecutionActorRef, ForegroundExecutionAuthorizationInput, ResourceRef, ToolGrantOverride, GrantLimit, CapabilityCatalogBinding, ExecutionAuthorizationRef, CapabilityCoordinator, CapabilityTicketRequest, DelegationGrant, AutomationTrigger, AutomationActorSelection, AutomationDefinition, CapabilityTicketClaims, InvocationPrincipal, PolicyDecision, AuditEvent, CatalogTool, CatalogEvent, AppCapabilityCatalog, CatalogFeature, CatalogInternalTransport, AgentRequesterCeilingWrite, AgentRequesterCeiling, AgentRequesterCeilingAutonomy, CatalogRegistration, NormalizedAppEvent, } from './agency';
|
|
107
107
|
export { catalogInvocationPathParameters, catalogInvocationsOverlap, catalogInvocationTemplatesEquivalent, findOverlappingCatalogInvocations, matchCatalogInvocation, resolveCatalogInvocation, } from './capabilityInvocation';
|
|
108
108
|
export type { CatalogInvocationMatch, CatalogInvocationTemplate, ResolvedCatalogInvocation, } from './capabilityInvocation';
|
|
109
109
|
export { emailContextAddressSchema, emailContextMailboxSchema, emailContextMessageSchema, emailAgentContextSchema, } from './emailAgentContext';
|
|
@@ -113,6 +113,7 @@ export type { InboxComposeRequest, InboxDailyBriefRequest, InboxDailyBriefRespon
|
|
|
113
113
|
export * from './externalIdentity';
|
|
114
114
|
export * from './linkedAccounts';
|
|
115
115
|
export * from './federationInstanceFetch';
|
|
116
|
+
export * from './accountAccess';
|
|
116
117
|
export * from './notifications';
|
|
117
118
|
export * from './email/messages';
|
|
118
119
|
export * from './stickers';
|
|
@@ -136,3 +137,5 @@ export { personalPlanDisplayPriceSchema, personalPlanCatalogueSchema, type Perso
|
|
|
136
137
|
export * from './products/checkout';
|
|
137
138
|
export * from './organizations';
|
|
138
139
|
export * from './safety';
|
|
140
|
+
export { serviceTokenScopesSchema, serviceTokenOptionsSchema, type ServiceTokenOptions, } from './serviceToken';
|
|
141
|
+
export * from './applicationRoles';
|