@oxy.so/contracts 5.8.0 → 6.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/accountAccess.js +6 -5
- package/dist/cjs/accountEmail.js +13 -5
- package/dist/cjs/accountGraph.js +10 -9
- package/dist/cjs/accountName.js +3 -2
- package/dist/cjs/agency.js +91 -34
- package/dist/cjs/agentKeys.js +21 -17
- package/dist/cjs/appAssertions.js +14 -13
- package/dist/cjs/applicationRoles.js +19 -12
- package/dist/cjs/campaignAttribution.js +28 -0
- package/dist/cjs/civic.js +10 -9
- package/dist/cjs/client/campaignAttribution.js +14 -0
- package/dist/cjs/client/check.js +61 -53
- package/dist/cjs/client/index.js +7 -1
- package/dist/cjs/client/language.js +7 -0
- package/dist/cjs/consoleOnboarding.js +9 -4
- package/dist/cjs/contentClaims.js +23 -14
- package/dist/cjs/deviceDirectory.js +11 -9
- package/dist/cjs/deviceSession.js +27 -25
- package/dist/cjs/email/messages.js +20 -18
- package/dist/cjs/emailAgentContext.js +11 -9
- package/dist/cjs/externalIdentity.js +15 -11
- package/dist/cjs/federationInstanceFetch.js +12 -7
- package/dist/cjs/identity.js +19 -17
- package/dist/cjs/identityLink.js +6 -4
- package/dist/cjs/identityProof.js +6 -4
- package/dist/cjs/inboxPush.js +5 -4
- package/dist/cjs/index.js +17 -6
- package/dist/cjs/inference/accountBilling.js +35 -33
- package/dist/cjs/inference/aliaModelRelease.js +9 -7
- package/dist/cjs/inference/attribution.js +14 -12
- package/dist/cjs/inference/catalogue.js +35 -29
- package/dist/cjs/inference/economics.js +24 -19
- package/dist/cjs/inference/embeddings.js +9 -7
- package/dist/cjs/inference/entitlement.js +17 -15
- package/dist/cjs/inference/errors.js +15 -8
- package/dist/cjs/inference/identifiers.js +33 -21
- package/dist/cjs/inference/inbox.js +37 -35
- package/dist/cjs/inference/modelDocumentation.js +16 -14
- package/dist/cjs/inference/money.js +5 -4
- package/dist/cjs/inference/priceVersion.js +10 -5
- package/dist/cjs/inference/providerConnection.js +21 -14
- package/dist/cjs/inference/realtime.js +88 -47
- package/dist/cjs/inference/request.js +27 -25
- package/dist/cjs/inference/routingPolicy.js +12 -10
- package/dist/cjs/inference/streamEvents.js +22 -16
- package/dist/cjs/inference/usage.js +32 -15
- package/dist/cjs/keyRecovery.js +8 -6
- package/dist/cjs/keyRotation.js +5 -4
- package/dist/cjs/linkedAccounts.js +22 -18
- package/dist/cjs/moderationReputation.js +29 -27
- package/dist/cjs/notifications.js +25 -9
- package/dist/cjs/numberChecks.js +45 -0
- package/dist/cjs/oauth.js +14 -12
- package/dist/cjs/organizations.js +23 -21
- package/dist/cjs/products/access.js +10 -8
- package/dist/cjs/products/billing.js +10 -8
- package/dist/cjs/products/checkout.js +22 -10
- package/dist/cjs/products/plans.js +15 -10
- package/dist/cjs/protocol.js +6 -5
- package/dist/cjs/recommendations.js +27 -19
- package/dist/cjs/reputation.js +15 -13
- package/dist/cjs/safety.js +43 -27
- package/dist/cjs/serviceToken.js +81 -2
- package/dist/cjs/sessionRevocation.js +8 -6
- package/dist/cjs/signIn.js +50 -24
- package/dist/cjs/stickers.js +19 -15
- package/dist/cjs/stringChecks.js +70 -0
- package/dist/cjs/transparency.js +14 -12
- package/dist/cjs/updates.js +24 -22
- package/dist/cjs/userInvalidation.js +7 -5
- package/dist/cjs/userResponse.js +8 -7
- package/dist/cjs/username.js +7 -6
- package/dist/esm/accountAccess.js +4 -3
- package/dist/esm/accountEmail.js +13 -5
- package/dist/esm/accountGraph.js +8 -7
- package/dist/esm/accountName.js +3 -2
- package/dist/esm/agency.js +90 -33
- package/dist/esm/agentKeys.js +21 -17
- package/dist/esm/appAssertions.js +11 -10
- package/dist/esm/applicationRoles.js +16 -9
- package/dist/esm/campaignAttribution.js +25 -0
- package/dist/esm/civic.js +8 -7
- package/dist/esm/client/campaignAttribution.js +10 -0
- package/dist/esm/client/check.js +61 -53
- package/dist/esm/client/index.js +2 -0
- package/dist/esm/client/language.js +4 -0
- package/dist/esm/consoleOnboarding.js +7 -2
- package/dist/esm/contentClaims.js +23 -14
- package/dist/esm/deviceDirectory.js +11 -9
- package/dist/esm/deviceSession.js +27 -25
- package/dist/esm/email/messages.js +18 -16
- package/dist/esm/emailAgentContext.js +11 -9
- package/dist/esm/externalIdentity.js +15 -11
- package/dist/esm/federationInstanceFetch.js +10 -5
- package/dist/esm/identity.js +17 -15
- package/dist/esm/identityLink.js +6 -4
- package/dist/esm/identityProof.js +6 -4
- package/dist/esm/inboxPush.js +3 -2
- package/dist/esm/index.js +5 -2
- package/dist/esm/inference/accountBilling.js +33 -31
- package/dist/esm/inference/aliaModelRelease.js +7 -5
- package/dist/esm/inference/attribution.js +14 -12
- package/dist/esm/inference/catalogue.js +33 -27
- package/dist/esm/inference/economics.js +22 -17
- package/dist/esm/inference/embeddings.js +9 -7
- package/dist/esm/inference/entitlement.js +15 -13
- package/dist/esm/inference/errors.js +13 -6
- package/dist/esm/inference/identifiers.js +31 -19
- package/dist/esm/inference/inbox.js +37 -35
- package/dist/esm/inference/modelDocumentation.js +14 -12
- package/dist/esm/inference/money.js +3 -2
- package/dist/esm/inference/priceVersion.js +8 -3
- package/dist/esm/inference/providerConnection.js +19 -12
- package/dist/esm/inference/realtime.js +85 -44
- package/dist/esm/inference/request.js +25 -23
- package/dist/esm/inference/routingPolicy.js +9 -7
- package/dist/esm/inference/streamEvents.js +20 -14
- package/dist/esm/inference/usage.js +30 -13
- package/dist/esm/keyRecovery.js +8 -6
- package/dist/esm/keyRotation.js +5 -4
- package/dist/esm/linkedAccounts.js +20 -16
- package/dist/esm/moderationReputation.js +27 -25
- package/dist/esm/notifications.js +23 -7
- package/dist/esm/numberChecks.js +41 -0
- package/dist/esm/oauth.js +14 -12
- package/dist/esm/organizations.js +23 -21
- package/dist/esm/products/access.js +10 -8
- package/dist/esm/products/billing.js +10 -8
- package/dist/esm/products/checkout.js +22 -10
- package/dist/esm/products/plans.js +15 -10
- package/dist/esm/protocol.js +4 -3
- package/dist/esm/recommendations.js +25 -17
- package/dist/esm/reputation.js +13 -11
- package/dist/esm/safety.js +43 -27
- package/dist/esm/serviceToken.js +80 -1
- package/dist/esm/sessionRevocation.js +6 -4
- package/dist/esm/signIn.js +50 -24
- package/dist/esm/stickers.js +17 -13
- package/dist/esm/stringChecks.js +63 -0
- package/dist/esm/transparency.js +14 -12
- package/dist/esm/updates.js +22 -20
- package/dist/esm/userInvalidation.js +4 -2
- package/dist/esm/userResponse.js +4 -3
- package/dist/esm/username.js +3 -2
- package/dist/types/accountAccess.d.ts +29 -70
- package/dist/types/accountEmail.d.ts +2 -14
- package/dist/types/accountGraph.d.ts +179 -171
- package/dist/types/accountName.d.ts +1 -1
- package/dist/types/accountSubject.d.ts +20 -93
- package/dist/types/agency.d.ts +528 -2924
- package/dist/types/agentKeys.d.ts +48 -421
- package/dist/types/appAssertions.d.ts +56 -210
- package/dist/types/applicationRoles.d.ts +30 -276
- package/dist/types/avatarCharacter.d.ts +1 -1
- package/dist/types/campaignAttribution.d.ts +10 -0
- package/dist/types/civic.d.ts +1 -13
- package/dist/types/client/agentKeys.d.ts +18 -18
- package/dist/types/client/appAssertions.d.ts +3 -3
- package/dist/types/client/campaignAttribution.d.ts +12 -0
- package/dist/types/client/check.d.ts +13 -13
- package/dist/types/client/deviceDirectory.d.ts +51 -51
- package/dist/types/client/deviceSession.d.ts +14 -14
- package/dist/types/client/index.d.ts +3 -0
- package/dist/types/client/language.d.ts +2 -0
- package/dist/types/client/organizations.d.ts +25 -25
- package/dist/types/client/products.d.ts +33 -33
- package/dist/types/client/recommendations.d.ts +2 -2
- package/dist/types/client/safety.d.ts +45 -45
- package/dist/types/client/sessionStatus.d.ts +4 -4
- package/dist/types/client/signIn.d.ts +1 -1
- package/dist/types/commonsSignIn.d.ts +4 -1
- package/dist/types/consoleOnboarding.d.ts +24 -44
- package/dist/types/contentClaims.d.ts +24 -180
- package/dist/types/deviceDirectory.d.ts +109 -1040
- package/dist/types/deviceSession.d.ts +36 -298
- package/dist/types/email/messages.d.ts +212 -1793
- package/dist/types/emailAgentContext.d.ts +10 -194
- package/dist/types/externalIdentity.d.ts +121 -615
- package/dist/types/federationInstanceFetch.d.ts +3 -32
- package/dist/types/identity.d.ts +15 -92
- package/dist/types/identityLink.d.ts +6 -84
- package/dist/types/identityProof.d.ts +5 -17
- package/dist/types/inboxPush.d.ts +1 -9
- package/dist/types/index.d.ts +7 -3
- package/dist/types/inference/accountBilling.d.ts +151 -488
- package/dist/types/inference/aliaModelRelease.d.ts +42 -439
- package/dist/types/inference/attribution.d.ts +75 -104
- package/dist/types/inference/catalogue.d.ts +417 -1599
- package/dist/types/inference/economics.d.ts +69 -276
- package/dist/types/inference/embeddings.d.ts +110 -406
- package/dist/types/inference/entitlement.d.ts +80 -335
- package/dist/types/inference/errors.d.ts +90 -102
- package/dist/types/inference/identifiers.d.ts +12 -4
- package/dist/types/inference/inbox.d.ts +105 -420
- package/dist/types/inference/modelDocumentation.d.ts +201 -1390
- package/dist/types/inference/money.d.ts +65 -32
- package/dist/types/inference/priceVersion.d.ts +53 -120
- package/dist/types/inference/providerConnection.d.ts +253 -710
- package/dist/types/inference/realtime.d.ts +954 -6825
- package/dist/types/inference/request.d.ts +300 -2572
- package/dist/types/inference/routingPolicy.d.ts +95 -503
- package/dist/types/inference/streamEvents.d.ts +253 -721
- package/dist/types/inference/usage.d.ts +317 -950
- package/dist/types/keyRecovery.d.ts +3 -51
- package/dist/types/keyRotation.d.ts +3 -38
- package/dist/types/linkedAccounts.d.ts +50 -236
- package/dist/types/moderationReputation.d.ts +81 -14
- package/dist/types/notifications.d.ts +19 -51
- package/dist/types/numberChecks.d.ts +9 -0
- package/dist/types/oauth.d.ts +101 -809
- package/dist/types/organizations.d.ts +268 -921
- package/dist/types/oxyRecordTypes.d.ts +11 -1
- package/dist/types/products/access.d.ts +125 -775
- package/dist/types/products/billing.d.ts +67 -503
- package/dist/types/products/checkout.d.ts +16 -69
- package/dist/types/products/plans.d.ts +33 -366
- package/dist/types/recommendations.d.ts +76 -389
- package/dist/types/reputation.d.ts +37 -5
- package/dist/types/safety.d.ts +408 -2048
- package/dist/types/serviceToken.d.ts +247 -7
- package/dist/types/sessionRevocation.d.ts +2 -17
- package/dist/types/sessionStatus.d.ts +27 -115
- package/dist/types/signIn.d.ts +62 -553
- package/dist/types/stickers.d.ts +67 -819
- package/dist/types/stringChecks.d.ts +16 -0
- package/dist/types/transparency.d.ts +14 -302
- package/dist/types/updates.d.ts +60 -316
- package/dist/types/userInvalidation.d.ts +4 -13
- package/dist/types/userResponse.d.ts +302 -2400
- package/dist/types/username.d.ts +3 -3
- package/package.json +6 -4
|
@@ -4,131 +4,131 @@
|
|
|
4
4
|
* Part of `@oxy.so/contracts/client`: never import `zod` here (see `./check.ts`).
|
|
5
5
|
*/
|
|
6
6
|
export declare const deviceDirectoryCheck: import("./check").Check<{
|
|
7
|
-
updatedAt: number;
|
|
8
7
|
deviceId: string;
|
|
9
8
|
revision: number;
|
|
10
9
|
activeContextId: string | null;
|
|
11
10
|
principals: {
|
|
12
11
|
id: string;
|
|
12
|
+
userId: string;
|
|
13
|
+
authuser: number;
|
|
13
14
|
user: {
|
|
14
|
-
username: string;
|
|
15
15
|
id: string;
|
|
16
|
-
|
|
16
|
+
username: string;
|
|
17
17
|
name?: import("..").UserNameResponse | undefined;
|
|
18
18
|
avatar?: string | null | undefined;
|
|
19
|
+
color?: string | null | undefined;
|
|
19
20
|
};
|
|
20
|
-
authuser: number;
|
|
21
|
-
userId: string;
|
|
22
21
|
contexts: {
|
|
23
|
-
active: boolean;
|
|
24
|
-
kind: "personal" | "organization" | "project" | "bot" | "channel" | "community";
|
|
25
|
-
accountId: string;
|
|
26
22
|
id: string;
|
|
27
|
-
|
|
23
|
+
accountId: string;
|
|
24
|
+
kind: "personal" | "organization" | "project" | "bot" | "channel" | "community";
|
|
28
25
|
relationship: "owner" | "self" | "member";
|
|
29
26
|
account: {
|
|
30
|
-
username: string;
|
|
31
27
|
id: string;
|
|
32
|
-
|
|
28
|
+
username: string;
|
|
33
29
|
name?: import("..").UserNameResponse | undefined;
|
|
34
30
|
avatar?: string | null | undefined;
|
|
31
|
+
color?: string | null | undefined;
|
|
35
32
|
};
|
|
36
33
|
onDevice: boolean;
|
|
37
34
|
available: boolean;
|
|
35
|
+
active: boolean;
|
|
36
|
+
lastUsedAt: number | null;
|
|
38
37
|
}[];
|
|
39
38
|
}[];
|
|
39
|
+
updatedAt: number;
|
|
40
40
|
}>;
|
|
41
41
|
export declare const deviceActivateResponseCheck: import("./check").Check<{
|
|
42
|
-
activeToken: {
|
|
43
|
-
expiresAt: string;
|
|
44
|
-
accessToken: string;
|
|
45
|
-
} | null;
|
|
46
42
|
directory: {
|
|
47
|
-
updatedAt: number;
|
|
48
43
|
deviceId: string;
|
|
49
44
|
revision: number;
|
|
50
45
|
activeContextId: string | null;
|
|
51
46
|
principals: {
|
|
52
47
|
id: string;
|
|
48
|
+
userId: string;
|
|
49
|
+
authuser: number;
|
|
53
50
|
user: {
|
|
54
|
-
username: string;
|
|
55
51
|
id: string;
|
|
56
|
-
|
|
52
|
+
username: string;
|
|
57
53
|
name?: import("..").UserNameResponse | undefined;
|
|
58
54
|
avatar?: string | null | undefined;
|
|
55
|
+
color?: string | null | undefined;
|
|
59
56
|
};
|
|
60
|
-
authuser: number;
|
|
61
|
-
userId: string;
|
|
62
57
|
contexts: {
|
|
63
|
-
active: boolean;
|
|
64
|
-
kind: "personal" | "organization" | "project" | "bot" | "channel" | "community";
|
|
65
|
-
accountId: string;
|
|
66
58
|
id: string;
|
|
67
|
-
|
|
59
|
+
accountId: string;
|
|
60
|
+
kind: "personal" | "organization" | "project" | "bot" | "channel" | "community";
|
|
68
61
|
relationship: "owner" | "self" | "member";
|
|
69
62
|
account: {
|
|
70
|
-
username: string;
|
|
71
63
|
id: string;
|
|
72
|
-
|
|
64
|
+
username: string;
|
|
73
65
|
name?: import("..").UserNameResponse | undefined;
|
|
74
66
|
avatar?: string | null | undefined;
|
|
67
|
+
color?: string | null | undefined;
|
|
75
68
|
};
|
|
76
69
|
onDevice: boolean;
|
|
77
70
|
available: boolean;
|
|
71
|
+
active: boolean;
|
|
72
|
+
lastUsedAt: number | null;
|
|
78
73
|
}[];
|
|
79
74
|
}[];
|
|
80
|
-
};
|
|
81
|
-
}>;
|
|
82
|
-
export declare const deviceDirectorySyncCheck: import("./check").Check<{
|
|
83
|
-
state: {
|
|
84
75
|
updatedAt: number;
|
|
85
|
-
activeAccountId: string | null;
|
|
86
|
-
deviceId: string;
|
|
87
|
-
accounts: {
|
|
88
|
-
accountId: string;
|
|
89
|
-
sessionId: string;
|
|
90
|
-
authuser: number;
|
|
91
|
-
operatedByUserId?: string | undefined;
|
|
92
|
-
}[];
|
|
93
|
-
revision: number;
|
|
94
76
|
};
|
|
95
77
|
activeToken: {
|
|
96
|
-
expiresAt: string;
|
|
97
78
|
accessToken: string;
|
|
79
|
+
expiresAt: string;
|
|
98
80
|
} | null;
|
|
81
|
+
}>;
|
|
82
|
+
export declare const deviceDirectorySyncCheck: import("./check").Check<{
|
|
99
83
|
directory: {
|
|
100
|
-
updatedAt: number;
|
|
101
84
|
deviceId: string;
|
|
102
85
|
revision: number;
|
|
103
86
|
activeContextId: string | null;
|
|
104
87
|
principals: {
|
|
105
88
|
id: string;
|
|
89
|
+
userId: string;
|
|
90
|
+
authuser: number;
|
|
106
91
|
user: {
|
|
107
|
-
username: string;
|
|
108
92
|
id: string;
|
|
109
|
-
|
|
93
|
+
username: string;
|
|
110
94
|
name?: import("..").UserNameResponse | undefined;
|
|
111
95
|
avatar?: string | null | undefined;
|
|
96
|
+
color?: string | null | undefined;
|
|
112
97
|
};
|
|
113
|
-
authuser: number;
|
|
114
|
-
userId: string;
|
|
115
98
|
contexts: {
|
|
116
|
-
active: boolean;
|
|
117
|
-
kind: "personal" | "organization" | "project" | "bot" | "channel" | "community";
|
|
118
|
-
accountId: string;
|
|
119
99
|
id: string;
|
|
120
|
-
|
|
100
|
+
accountId: string;
|
|
101
|
+
kind: "personal" | "organization" | "project" | "bot" | "channel" | "community";
|
|
121
102
|
relationship: "owner" | "self" | "member";
|
|
122
103
|
account: {
|
|
123
|
-
username: string;
|
|
124
104
|
id: string;
|
|
125
|
-
|
|
105
|
+
username: string;
|
|
126
106
|
name?: import("..").UserNameResponse | undefined;
|
|
127
107
|
avatar?: string | null | undefined;
|
|
108
|
+
color?: string | null | undefined;
|
|
128
109
|
};
|
|
129
110
|
onDevice: boolean;
|
|
130
111
|
available: boolean;
|
|
112
|
+
active: boolean;
|
|
113
|
+
lastUsedAt: number | null;
|
|
131
114
|
}[];
|
|
132
115
|
}[];
|
|
116
|
+
updatedAt: number;
|
|
133
117
|
};
|
|
118
|
+
state: {
|
|
119
|
+
deviceId: string;
|
|
120
|
+
accounts: {
|
|
121
|
+
accountId: string;
|
|
122
|
+
sessionId: string;
|
|
123
|
+
authuser: number;
|
|
124
|
+
operatedByUserId?: string | undefined;
|
|
125
|
+
}[];
|
|
126
|
+
activeAccountId: string | null;
|
|
127
|
+
revision: number;
|
|
128
|
+
updatedAt: number;
|
|
129
|
+
};
|
|
130
|
+
activeToken: {
|
|
131
|
+
accessToken: string;
|
|
132
|
+
expiresAt: string;
|
|
133
|
+
} | null;
|
|
134
134
|
}>;
|
|
@@ -16,8 +16,6 @@
|
|
|
16
16
|
*/
|
|
17
17
|
export declare const SESSION_ACCOUNTS_CHANGED_EVENT = "session_accounts_changed";
|
|
18
18
|
export declare const deviceSessionStateCheck: import("./check").Check<{
|
|
19
|
-
updatedAt: number;
|
|
20
|
-
activeAccountId: string | null;
|
|
21
19
|
deviceId: string;
|
|
22
20
|
accounts: {
|
|
23
21
|
accountId: string;
|
|
@@ -25,16 +23,16 @@ export declare const deviceSessionStateCheck: import("./check").Check<{
|
|
|
25
23
|
authuser: number;
|
|
26
24
|
operatedByUserId?: string | undefined;
|
|
27
25
|
}[];
|
|
26
|
+
activeAccountId: string | null;
|
|
28
27
|
revision: number;
|
|
28
|
+
updatedAt: number;
|
|
29
29
|
}>;
|
|
30
30
|
export declare const activeTokenCheck: import("./check").Check<{
|
|
31
|
-
expiresAt: string;
|
|
32
31
|
accessToken: string;
|
|
32
|
+
expiresAt: string;
|
|
33
33
|
}>;
|
|
34
34
|
export declare const deviceSessionSyncCheck: import("./check").Check<{
|
|
35
35
|
state: {
|
|
36
|
-
updatedAt: number;
|
|
37
|
-
activeAccountId: string | null;
|
|
38
36
|
deviceId: string;
|
|
39
37
|
accounts: {
|
|
40
38
|
accountId: string;
|
|
@@ -42,19 +40,20 @@ export declare const deviceSessionSyncCheck: import("./check").Check<{
|
|
|
42
40
|
authuser: number;
|
|
43
41
|
operatedByUserId?: string | undefined;
|
|
44
42
|
}[];
|
|
43
|
+
activeAccountId: string | null;
|
|
45
44
|
revision: number;
|
|
45
|
+
updatedAt: number;
|
|
46
46
|
};
|
|
47
47
|
activeToken: {
|
|
48
|
-
expiresAt: string;
|
|
49
48
|
accessToken: string;
|
|
49
|
+
expiresAt: string;
|
|
50
50
|
} | null;
|
|
51
51
|
}>;
|
|
52
52
|
export declare const deviceTokenMintResponseCheck: import("./check").Check<{
|
|
53
|
-
expiresAt: string;
|
|
54
53
|
accessToken: string;
|
|
54
|
+
expiresAt: string;
|
|
55
|
+
nextDeviceSecret: string;
|
|
55
56
|
state: {
|
|
56
|
-
updatedAt: number;
|
|
57
|
-
activeAccountId: string | null;
|
|
58
57
|
deviceId: string;
|
|
59
58
|
accounts: {
|
|
60
59
|
accountId: string;
|
|
@@ -62,20 +61,21 @@ export declare const deviceTokenMintResponseCheck: import("./check").Check<{
|
|
|
62
61
|
authuser: number;
|
|
63
62
|
operatedByUserId?: string | undefined;
|
|
64
63
|
}[];
|
|
64
|
+
activeAccountId: string | null;
|
|
65
65
|
revision: number;
|
|
66
|
+
updatedAt: number;
|
|
66
67
|
};
|
|
67
|
-
nextDeviceSecret: string;
|
|
68
68
|
}>;
|
|
69
69
|
export declare const sessionAccountsChangedEventCheck: import("./check").Check<{
|
|
70
|
-
reason: "login" | "add" | "switch" | "signout" | "revoke";
|
|
71
|
-
revision: number;
|
|
72
70
|
userId: string;
|
|
71
|
+
revision: number;
|
|
72
|
+
reason: "login" | "add" | "switch" | "signout" | "revoke";
|
|
73
73
|
}>;
|
|
74
74
|
export declare const deviceBackgroundCredentialResponseCheck: import("./check").Check<{
|
|
75
|
-
accountId: string;
|
|
76
|
-
expiresAt: string;
|
|
77
75
|
deviceId: string;
|
|
78
76
|
secret: string;
|
|
77
|
+
accountId: string;
|
|
78
|
+
expiresAt: string;
|
|
79
79
|
}>;
|
|
80
80
|
export declare const deviceRegisterResponseCheck: import("./check").Check<{
|
|
81
81
|
deviceId: string;
|
|
@@ -41,3 +41,6 @@ export { CLAIMANT_RELATIONSHIPS, CLOSED_CONTENT_CLAIM_STATES, CONTENT_CLAIM_COUN
|
|
|
41
41
|
export { APP_ASSERTION_CHALLENGE_PURPOSES, APP_ASSERTION_ERROR_CODES, APP_ASSERTION_PLATFORMS, OXY_APP_ASSERTION_AUDIENCE, OXY_APP_ASSERTION_HEADER, OXY_APP_ASSERTION_TTL_SECONDS, OXY_APP_ASSERTION_TYPE, appAssertionChallengeResponseCheck, appAssertionResponseCheck, appAttestKeyResponseCheck, } from './appAssertions';
|
|
42
42
|
export { USER_PROFILE_COLORS, USER_PROFILE_COLOR_PRESETS, FREE_USER_PROFILE_COLOR_PRESETS, } from '../profileColors.generated';
|
|
43
43
|
export * from '../products/one';
|
|
44
|
+
export { CAMPAIGN_LABEL_MAX_LENGTH, CAMPAIGN_CLICK_ID_MAX_LENGTH, hasCampaignControlCharacters, } from './campaignAttribution';
|
|
45
|
+
export type { CampaignAttribution } from './campaignAttribution';
|
|
46
|
+
export { isLanguageTag } from './language';
|
|
@@ -40,9 +40,11 @@ export declare const updateOrganizationCheck: Check<{
|
|
|
40
40
|
}[] | undefined;
|
|
41
41
|
}>;
|
|
42
42
|
export declare const organizationCheck: Check<{
|
|
43
|
-
status: "active" | "inactive" | "merged" | "suppressed";
|
|
44
43
|
name: string;
|
|
45
44
|
organizationType: "community" | "business" | "nonprofit" | "other" | "public_body";
|
|
45
|
+
accountId: string;
|
|
46
|
+
username: string | null;
|
|
47
|
+
avatar: string | null;
|
|
46
48
|
legalName: string | null;
|
|
47
49
|
websiteUrl: string | null;
|
|
48
50
|
countryCode: string | null;
|
|
@@ -51,20 +53,20 @@ export declare const organizationCheck: Check<{
|
|
|
51
53
|
kind: "name_variant" | "former_name" | "localized_name" | "marketing_name" | "misspelling";
|
|
52
54
|
language?: string | undefined;
|
|
53
55
|
}[];
|
|
54
|
-
accountId: string;
|
|
55
|
-
username: string | null;
|
|
56
|
-
avatar: string | null;
|
|
57
56
|
verifiedDomains: string[];
|
|
58
57
|
claimStatus: "unclaimed" | "claimed";
|
|
58
|
+
status: "active" | "inactive" | "merged" | "suppressed";
|
|
59
59
|
mergedIntoAccountId: string | null;
|
|
60
60
|
createdAt: string;
|
|
61
61
|
updatedAt: string;
|
|
62
62
|
}>;
|
|
63
63
|
export declare const organizationListCheck: Check<{
|
|
64
64
|
items: {
|
|
65
|
-
status: "active" | "inactive" | "merged" | "suppressed";
|
|
66
65
|
name: string;
|
|
67
66
|
organizationType: "community" | "business" | "nonprofit" | "other" | "public_body";
|
|
67
|
+
accountId: string;
|
|
68
|
+
username: string | null;
|
|
69
|
+
avatar: string | null;
|
|
68
70
|
legalName: string | null;
|
|
69
71
|
websiteUrl: string | null;
|
|
70
72
|
countryCode: string | null;
|
|
@@ -73,11 +75,9 @@ export declare const organizationListCheck: Check<{
|
|
|
73
75
|
kind: "name_variant" | "former_name" | "localized_name" | "marketing_name" | "misspelling";
|
|
74
76
|
language?: string | undefined;
|
|
75
77
|
}[];
|
|
76
|
-
accountId: string;
|
|
77
|
-
username: string | null;
|
|
78
|
-
avatar: string | null;
|
|
79
78
|
verifiedDomains: string[];
|
|
80
79
|
claimStatus: "unclaimed" | "claimed";
|
|
80
|
+
status: "active" | "inactive" | "merged" | "suppressed";
|
|
81
81
|
mergedIntoAccountId: string | null;
|
|
82
82
|
createdAt: string;
|
|
83
83
|
updatedAt: string;
|
|
@@ -86,10 +86,13 @@ export declare const organizationListCheck: Check<{
|
|
|
86
86
|
}>;
|
|
87
87
|
export declare const organizationBatchCheck: Check<{
|
|
88
88
|
items: {
|
|
89
|
+
requestedAccountId: string;
|
|
89
90
|
organization: {
|
|
90
|
-
status: "active" | "inactive" | "merged" | "suppressed";
|
|
91
91
|
name: string;
|
|
92
92
|
organizationType: "community" | "business" | "nonprofit" | "other" | "public_body";
|
|
93
|
+
accountId: string;
|
|
94
|
+
username: string | null;
|
|
95
|
+
avatar: string | null;
|
|
93
96
|
legalName: string | null;
|
|
94
97
|
websiteUrl: string | null;
|
|
95
98
|
countryCode: string | null;
|
|
@@ -98,16 +101,13 @@ export declare const organizationBatchCheck: Check<{
|
|
|
98
101
|
kind: "name_variant" | "former_name" | "localized_name" | "marketing_name" | "misspelling";
|
|
99
102
|
language?: string | undefined;
|
|
100
103
|
}[];
|
|
101
|
-
accountId: string;
|
|
102
|
-
username: string | null;
|
|
103
|
-
avatar: string | null;
|
|
104
104
|
verifiedDomains: string[];
|
|
105
105
|
claimStatus: "unclaimed" | "claimed";
|
|
106
|
+
status: "active" | "inactive" | "merged" | "suppressed";
|
|
106
107
|
mergedIntoAccountId: string | null;
|
|
107
108
|
createdAt: string;
|
|
108
109
|
updatedAt: string;
|
|
109
110
|
};
|
|
110
|
-
requestedAccountId: string;
|
|
111
111
|
}[];
|
|
112
112
|
missingIds: string[];
|
|
113
113
|
}>;
|
|
@@ -115,43 +115,43 @@ export declare const organizationClaimInputCheck: Check<{
|
|
|
115
115
|
evidenceReference: string;
|
|
116
116
|
}>;
|
|
117
117
|
export declare const organizationClaimCheck: Check<{
|
|
118
|
-
status: "pending" | "approved" | "rejected";
|
|
119
|
-
accountId: string;
|
|
120
|
-
createdAt: string;
|
|
121
118
|
id: string;
|
|
119
|
+
accountId: string;
|
|
122
120
|
claimantUserId: string;
|
|
121
|
+
status: "pending" | "approved" | "rejected";
|
|
122
|
+
createdAt: string;
|
|
123
123
|
}>;
|
|
124
124
|
export declare const organizationClaimDetailCheck: Check<{
|
|
125
|
-
|
|
125
|
+
id: string;
|
|
126
126
|
accountId: string;
|
|
127
|
+
claimantUserId: string;
|
|
128
|
+
status: "pending" | "approved" | "rejected";
|
|
127
129
|
createdAt: string;
|
|
128
130
|
evidenceReference: string;
|
|
129
|
-
id: string;
|
|
130
|
-
claimantUserId: string;
|
|
131
131
|
reviewEvidenceReference: string | null;
|
|
132
132
|
reviewedAt: string | null;
|
|
133
133
|
}>;
|
|
134
134
|
export declare const organizationClaimListCheck: Check<{
|
|
135
135
|
items: {
|
|
136
|
-
|
|
136
|
+
id: string;
|
|
137
137
|
accountId: string;
|
|
138
|
+
claimantUserId: string;
|
|
139
|
+
status: "pending" | "approved" | "rejected";
|
|
138
140
|
createdAt: string;
|
|
139
141
|
evidenceReference: string;
|
|
140
|
-
id: string;
|
|
141
|
-
claimantUserId: string;
|
|
142
142
|
reviewEvidenceReference: string | null;
|
|
143
143
|
reviewedAt: string | null;
|
|
144
144
|
}[];
|
|
145
145
|
nextCursor: string | null;
|
|
146
146
|
}>;
|
|
147
147
|
export declare const organizationClaimReviewCheck: Check<{
|
|
148
|
-
evidenceReference: string;
|
|
149
148
|
decision: "approved" | "rejected";
|
|
149
|
+
evidenceReference: string;
|
|
150
150
|
}>;
|
|
151
151
|
export declare const organizationImportBatchResultCheck: Check<{
|
|
152
152
|
items: {
|
|
153
|
-
accountId: string;
|
|
154
153
|
externalId: string;
|
|
154
|
+
accountId: string;
|
|
155
155
|
created: boolean;
|
|
156
156
|
}[];
|
|
157
157
|
}>;
|
|
@@ -163,6 +163,6 @@ export declare const organizationExternalResolutionCheck: Check<{
|
|
|
163
163
|
accountId: string;
|
|
164
164
|
}>;
|
|
165
165
|
export declare const organizationCurationResultCheck: Check<{
|
|
166
|
-
status: "active" | "inactive" | "suppressed";
|
|
167
166
|
accountId: string;
|
|
167
|
+
status: "active" | "inactive" | "suppressed";
|
|
168
168
|
}>;
|
|
@@ -7,18 +7,18 @@
|
|
|
7
7
|
import { type Check } from './check';
|
|
8
8
|
export declare const subjectProductAccessQueryCheck: Check<{
|
|
9
9
|
schemaVersion: 1;
|
|
10
|
-
subjectAccountId: string & import("zod")
|
|
10
|
+
subjectAccountId: string & import("zod").$brand<"OxyAccountId">;
|
|
11
11
|
productId: string;
|
|
12
12
|
}>;
|
|
13
13
|
export declare const subjectProductAccessCheck: Check<{
|
|
14
14
|
schemaVersion: 1;
|
|
15
|
-
subjectAccountId: string & import("zod")
|
|
15
|
+
subjectAccountId: string & import("zod").$brand<"OxyAccountId">;
|
|
16
|
+
productId: string;
|
|
17
|
+
evaluatedAt: string;
|
|
16
18
|
capabilities: {
|
|
17
19
|
key: string;
|
|
18
20
|
grantIds: string[];
|
|
19
21
|
}[];
|
|
20
|
-
evaluatedAt: string;
|
|
21
|
-
productId: string;
|
|
22
22
|
quotas: {
|
|
23
23
|
key: string;
|
|
24
24
|
unit: string;
|
|
@@ -37,26 +37,26 @@ export declare const personalPlanCatalogueCheck: Check<{
|
|
|
37
37
|
state: "unconfigured" | "configured";
|
|
38
38
|
purchase: "unavailable" | "available";
|
|
39
39
|
plans: {
|
|
40
|
-
|
|
40
|
+
offerId: string;
|
|
41
|
+
offerVersion: number;
|
|
41
42
|
displayName: string;
|
|
42
43
|
audience: "personal";
|
|
44
|
+
kind: "oxy_one";
|
|
43
45
|
benefits: {
|
|
44
46
|
displayName: string;
|
|
45
47
|
benefit: {
|
|
46
48
|
kind: "capability";
|
|
47
|
-
key: string;
|
|
48
49
|
productId: string;
|
|
50
|
+
key: string;
|
|
49
51
|
} | {
|
|
50
52
|
kind: "quota";
|
|
53
|
+
productId: string;
|
|
51
54
|
key: string;
|
|
52
55
|
unit: string;
|
|
53
56
|
included: number;
|
|
54
|
-
productId: string;
|
|
55
57
|
combination: "maximum" | "sum" | "exclusive";
|
|
56
58
|
};
|
|
57
59
|
}[];
|
|
58
|
-
offerId: string;
|
|
59
|
-
offerVersion: number;
|
|
60
60
|
price?: {
|
|
61
61
|
currency: string;
|
|
62
62
|
amountMinorUnits: number;
|
|
@@ -69,44 +69,44 @@ export declare const personalPlanCatalogueCheck: Check<{
|
|
|
69
69
|
}>;
|
|
70
70
|
export declare const productPlanCatalogueCheck: Check<{
|
|
71
71
|
schemaVersion: 1;
|
|
72
|
-
purchase: "unavailable" | "available";
|
|
73
72
|
productId: string;
|
|
73
|
+
purchase: "unavailable" | "available";
|
|
74
74
|
plans: {
|
|
75
|
+
productId: string;
|
|
76
|
+
offerId: string;
|
|
77
|
+
offerVersion: number;
|
|
75
78
|
displayName: string;
|
|
76
79
|
price: {
|
|
77
80
|
currency: string;
|
|
78
81
|
amountMinorUnits: number;
|
|
79
|
-
interval: "year" | "month";
|
|
80
82
|
trial: "none";
|
|
81
83
|
taxTreatment: "inclusive";
|
|
82
84
|
merchantTotal: "final";
|
|
85
|
+
interval: "year" | "month";
|
|
83
86
|
};
|
|
84
|
-
productId: string;
|
|
85
|
-
offerId: string;
|
|
86
|
-
offerVersion: number;
|
|
87
87
|
}[];
|
|
88
88
|
}>;
|
|
89
89
|
export declare const personalPlanCheckoutRequestCheck: Check<{
|
|
90
|
-
|
|
90
|
+
expectedSubjectAccountId: string & import("zod").$brand<"OxyAccountId">;
|
|
91
91
|
offerId: string;
|
|
92
92
|
offerVersion: number;
|
|
93
|
-
|
|
93
|
+
idempotencyKey: string;
|
|
94
94
|
}>;
|
|
95
95
|
export declare const productPlanCheckoutRequestCheck: Check<{
|
|
96
|
-
|
|
97
|
-
productId: string;
|
|
96
|
+
expectedSubjectAccountId: string & import("zod").$brand<"OxyAccountId">;
|
|
98
97
|
offerId: string;
|
|
99
98
|
offerVersion: number;
|
|
100
|
-
|
|
99
|
+
idempotencyKey: string;
|
|
100
|
+
productId: string;
|
|
101
101
|
}>;
|
|
102
102
|
export declare const productSubscriptionRenewalRequestCheck: Check<{
|
|
103
|
+
expectedSubjectAccountId: string & import("zod").$brand<"OxyAccountId">;
|
|
103
104
|
sourceId: string;
|
|
104
105
|
idempotencyKey: string;
|
|
105
|
-
expectedSubjectAccountId: string & import("zod").BRAND<"OxyAccountId">;
|
|
106
106
|
}>;
|
|
107
107
|
export declare const personalPlanCheckoutResultCheck: Check<{
|
|
108
|
-
reason: "provider_unconfigured" | "offer_unconfigured" | "price_unconfigured";
|
|
109
108
|
state: "unconfigured";
|
|
109
|
+
reason: "provider_unconfigured" | "offer_unconfigured" | "price_unconfigured";
|
|
110
110
|
} | {
|
|
111
111
|
state: "pending";
|
|
112
112
|
intentId: string;
|
|
@@ -120,24 +120,24 @@ export declare const personalPlanCheckoutResultCheck: Check<{
|
|
|
120
120
|
}>;
|
|
121
121
|
export declare const productSubscriptionsResponseCheck: Check<{
|
|
122
122
|
subscriptions: {
|
|
123
|
-
status: "active" | "incomplete" | "canceled" | "incomplete_expired" | "past_due" | "paused" | "trialing" | "unpaid";
|
|
124
123
|
sourceId: string;
|
|
125
|
-
|
|
124
|
+
status: "active" | "incomplete" | "canceled" | "incomplete_expired" | "past_due" | "paused" | "trialing" | "unpaid";
|
|
126
125
|
period: {
|
|
127
126
|
start: string;
|
|
128
127
|
end: string;
|
|
129
128
|
};
|
|
129
|
+
cancelAtPeriodEnd: boolean;
|
|
130
130
|
canCancel: boolean;
|
|
131
131
|
offers: {
|
|
132
|
+
segmentId: string;
|
|
133
|
+
offerId: string;
|
|
134
|
+
offerVersion: number;
|
|
132
135
|
displayName: string;
|
|
136
|
+
origin: "bundle" | "individual";
|
|
133
137
|
period: {
|
|
134
138
|
start: string;
|
|
135
139
|
end: string;
|
|
136
140
|
};
|
|
137
|
-
offerId: string;
|
|
138
|
-
offerVersion: number;
|
|
139
|
-
origin: "bundle" | "individual";
|
|
140
|
-
segmentId: string;
|
|
141
141
|
current: boolean;
|
|
142
142
|
products: {
|
|
143
143
|
id: string;
|
|
@@ -149,25 +149,25 @@ export declare const productSubscriptionsResponseCheck: Check<{
|
|
|
149
149
|
}>;
|
|
150
150
|
export declare const subscriptionCreditGrantsResponseCheck: Check<{
|
|
151
151
|
grants: {
|
|
152
|
-
createdAt: string;
|
|
153
152
|
id: string;
|
|
154
|
-
|
|
155
|
-
|
|
153
|
+
invoiceId: string;
|
|
154
|
+
origin: "subscription_payment" | "subscription_proration" | "subscription_promotional_grant";
|
|
156
155
|
period: {
|
|
157
156
|
start: string;
|
|
158
157
|
end: string;
|
|
159
158
|
};
|
|
160
|
-
|
|
161
|
-
invoiceId: string;
|
|
159
|
+
granted: number;
|
|
162
160
|
consumed: number;
|
|
163
161
|
clawed: number;
|
|
162
|
+
remaining: number;
|
|
164
163
|
promotionId: string | null;
|
|
164
|
+
createdAt: string;
|
|
165
165
|
}[];
|
|
166
166
|
}>;
|
|
167
167
|
export declare const cancelProductSubscriptionCheck: Check<{
|
|
168
168
|
sourceId: string;
|
|
169
169
|
actionId?: string | undefined;
|
|
170
|
-
expectedSubjectAccountId?: (string & import("zod")
|
|
170
|
+
expectedSubjectAccountId?: (string & import("zod").$brand<"OxyAccountId">) | undefined;
|
|
171
171
|
}>;
|
|
172
172
|
export declare const productSubscriptionCancellationResultCheck: Check<{
|
|
173
173
|
sourceId: string;
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
* Part of `@oxy.so/contracts/client`: never import `zod` here (see `./check.ts`).
|
|
5
5
|
*/
|
|
6
6
|
export declare const recommendationRequestCheck: import("./check").Check<{
|
|
7
|
-
limit?: number | undefined;
|
|
8
7
|
clientId?: string | undefined;
|
|
8
|
+
limit?: number | undefined;
|
|
9
9
|
offset?: number | undefined;
|
|
10
10
|
excludeTypes?: ("agent" | "federated" | "automated")[] | undefined;
|
|
11
11
|
excludeIds?: string[] | undefined;
|
|
@@ -15,9 +15,9 @@ export declare const recommendationRequestCheck: import("./check").Check<{
|
|
|
15
15
|
reason?: string | undefined;
|
|
16
16
|
}[] | undefined;
|
|
17
17
|
signalWeights?: {
|
|
18
|
-
verified?: number | undefined;
|
|
19
18
|
graph?: number | undefined;
|
|
20
19
|
completeness?: number | undefined;
|
|
20
|
+
verified?: number | undefined;
|
|
21
21
|
curation?: number | undefined;
|
|
22
22
|
interest?: number | undefined;
|
|
23
23
|
appBoost?: number | undefined;
|