@oxy.so/contracts 5.7.0 → 6.0.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/civic.js +10 -9
- package/dist/cjs/client/check.js +61 -53
- package/dist/cjs/client/consoleOnboarding.js +24 -0
- package/dist/cjs/client/index.js +7 -3
- package/dist/cjs/client/safety.js +9 -1
- package/dist/cjs/consoleOnboarding.js +56 -0
- 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 +16 -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 +46 -29
- package/dist/cjs/serviceToken.js +81 -2
- package/dist/cjs/sessionRevocation.js +8 -6
- package/dist/cjs/signIn.js +42 -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/civic.js +8 -7
- package/dist/esm/client/check.js +61 -53
- package/dist/esm/client/consoleOnboarding.js +21 -0
- package/dist/esm/client/index.js +2 -1
- package/dist/esm/client/safety.js +8 -0
- package/dist/esm/consoleOnboarding.js +51 -0
- 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 +45 -29
- package/dist/esm/serviceToken.js +80 -1
- package/dist/esm/sessionRevocation.js +6 -4
- package/dist/esm/signIn.js +42 -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/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/check.d.ts +13 -13
- package/dist/types/client/consoleOnboarding.d.ts +16 -0
- 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 +2 -1
- 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 +53 -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 +57 -0
- 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 +6 -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 +410 -2050
- 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 +53 -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 +3 -4
|
@@ -15,6 +15,14 @@ export declare const SAFETY_POLICY_VERSION: "2";
|
|
|
15
15
|
export declare const SUPERVISION_CONSENT_VERSION: "1";
|
|
16
16
|
export declare const SUPERVISION_STATUSES: readonly ["active", "orphaned", "ended"];
|
|
17
17
|
export declare const SUPERVISION_INVITATION_STATUSES: readonly ["pending", "accepted", "cancelled"];
|
|
18
|
+
/**
|
|
19
|
+
* Token-free Socket.IO signal emitted to room `user:<accountId>` whenever that
|
|
20
|
+
* account's supervision state (`GET /safety/supervision`) changes: an invitation
|
|
21
|
+
* is created, cancelled or accepted, or supervision is transferred or ended. It
|
|
22
|
+
* carries no payload; a client refetches its own state. The state it refreshes
|
|
23
|
+
* is advisory: the server enforces supervision on every request regardless.
|
|
24
|
+
*/
|
|
25
|
+
export declare const SUPERVISION_CHANGED_EVENT = "supervision_changed";
|
|
18
26
|
export declare const PURCHASE_APPROVAL_STATUSES: readonly ["pending", "approved", "rejected", "reserved", "confirmed", "cancelled"];
|
|
19
27
|
export declare const profileAccessInputCheck: Check<{
|
|
20
28
|
subjectAccountId: string;
|
|
@@ -25,39 +33,39 @@ export declare const profileAccessDecisionCheck: Check<{
|
|
|
25
33
|
policyVersion: "1";
|
|
26
34
|
}>;
|
|
27
35
|
export declare const supervisionInvitationCheck: Check<{
|
|
28
|
-
status: "pending" | "accepted" | "cancelled";
|
|
29
|
-
createdAt: string;
|
|
30
36
|
id: string;
|
|
31
|
-
expiresAt: string;
|
|
32
37
|
childAccountId: string;
|
|
33
38
|
guardianAccountId: string;
|
|
39
|
+
status: "pending" | "accepted" | "cancelled";
|
|
40
|
+
expiresAt: string;
|
|
34
41
|
consentVersion: "1";
|
|
42
|
+
createdAt: string;
|
|
35
43
|
}>;
|
|
36
44
|
export declare const supervisionStateCheck: Check<{
|
|
37
45
|
self: {
|
|
38
|
-
status: "active" | "orphaned" | "ended";
|
|
39
|
-
createdAt: string;
|
|
40
|
-
policyVersion: "2";
|
|
41
46
|
childAccountId: string;
|
|
42
47
|
guardianAccountId: string | null;
|
|
48
|
+
status: "active" | "orphaned" | "ended";
|
|
49
|
+
policyVersion: "2";
|
|
43
50
|
consentVersion: "1";
|
|
51
|
+
createdAt: string;
|
|
44
52
|
} | null;
|
|
45
53
|
children: {
|
|
46
|
-
status: "active" | "orphaned" | "ended";
|
|
47
|
-
createdAt: string;
|
|
48
|
-
policyVersion: "2";
|
|
49
54
|
childAccountId: string;
|
|
50
55
|
guardianAccountId: string | null;
|
|
56
|
+
status: "active" | "orphaned" | "ended";
|
|
57
|
+
policyVersion: "2";
|
|
51
58
|
consentVersion: "1";
|
|
59
|
+
createdAt: string;
|
|
52
60
|
}[];
|
|
53
61
|
invitations: {
|
|
54
|
-
status: "pending" | "accepted" | "cancelled";
|
|
55
|
-
createdAt: string;
|
|
56
62
|
id: string;
|
|
57
|
-
expiresAt: string;
|
|
58
63
|
childAccountId: string;
|
|
59
64
|
guardianAccountId: string;
|
|
65
|
+
status: "pending" | "accepted" | "cancelled";
|
|
66
|
+
expiresAt: string;
|
|
60
67
|
consentVersion: "1";
|
|
68
|
+
createdAt: string;
|
|
61
69
|
}[];
|
|
62
70
|
}>;
|
|
63
71
|
export declare const supervisionContactsResponseCheck: Check<{
|
|
@@ -68,52 +76,52 @@ export declare const supervisionContactsResponseCheck: Check<{
|
|
|
68
76
|
}[];
|
|
69
77
|
}>;
|
|
70
78
|
export declare const supervisionInviteInputCheck: Check<{
|
|
79
|
+
guardianAccountId: string;
|
|
80
|
+
consentVersion: "1";
|
|
71
81
|
reauth: {
|
|
72
82
|
password?: string | undefined;
|
|
73
83
|
emailCode?: {
|
|
74
|
-
code: string;
|
|
75
84
|
verificationId: string;
|
|
85
|
+
code: string;
|
|
76
86
|
} | undefined;
|
|
77
87
|
totpCode?: string | undefined;
|
|
78
88
|
};
|
|
79
|
-
guardianAccountId: string;
|
|
80
|
-
consentVersion: "1";
|
|
81
89
|
}>;
|
|
82
90
|
export declare const supervisionAcceptInputCheck: Check<{
|
|
91
|
+
consentVersion: "1";
|
|
83
92
|
reauth: {
|
|
84
93
|
password?: string | undefined;
|
|
85
94
|
emailCode?: {
|
|
86
|
-
code: string;
|
|
87
95
|
verificationId: string;
|
|
96
|
+
code: string;
|
|
88
97
|
} | undefined;
|
|
89
98
|
totpCode?: string | undefined;
|
|
90
99
|
};
|
|
91
|
-
consentVersion: "1";
|
|
92
100
|
}>;
|
|
93
101
|
export declare const supervisionContactInputCheck: Check<{
|
|
102
|
+
childAccountId: string;
|
|
103
|
+
contactAccountId: string;
|
|
94
104
|
reauth: {
|
|
95
105
|
password?: string | undefined;
|
|
96
106
|
emailCode?: {
|
|
97
|
-
code: string;
|
|
98
107
|
verificationId: string;
|
|
108
|
+
code: string;
|
|
99
109
|
} | undefined;
|
|
100
110
|
totpCode?: string | undefined;
|
|
101
111
|
};
|
|
102
|
-
childAccountId: string;
|
|
103
|
-
contactAccountId: string;
|
|
104
112
|
}>;
|
|
105
113
|
export declare const supervisionReviewInputCheck: Check<{
|
|
114
|
+
childAccountId: string;
|
|
115
|
+
action: "end" | "transfer";
|
|
106
116
|
evidenceReference: string;
|
|
107
117
|
reauth: {
|
|
108
118
|
password?: string | undefined;
|
|
109
119
|
emailCode?: {
|
|
110
|
-
code: string;
|
|
111
120
|
verificationId: string;
|
|
121
|
+
code: string;
|
|
112
122
|
} | undefined;
|
|
113
123
|
totpCode?: string | undefined;
|
|
114
124
|
};
|
|
115
|
-
action: "end" | "transfer";
|
|
116
|
-
childAccountId: string;
|
|
117
125
|
guardianAccountId?: string | undefined;
|
|
118
126
|
}>;
|
|
119
127
|
export declare const safetyPeopleInputCheck: Check<{
|
|
@@ -136,35 +144,28 @@ export declare const safetyOrganizationsInputCheck: Check<{
|
|
|
136
144
|
}>;
|
|
137
145
|
export declare const safetyOrganizationsResponseCheck: Check<{
|
|
138
146
|
items: {
|
|
147
|
+
requestedAccountId: string;
|
|
139
148
|
organization: {
|
|
140
|
-
name: string;
|
|
141
|
-
organizationType: "community" | "business" | "nonprofit" | "other" | "public_body";
|
|
142
149
|
accountId: string;
|
|
143
150
|
username: string | null;
|
|
151
|
+
name: string;
|
|
152
|
+
organizationType: "community" | "business" | "nonprofit" | "other" | "public_body";
|
|
144
153
|
};
|
|
145
|
-
requestedAccountId: string;
|
|
146
154
|
}[];
|
|
147
155
|
missingIds: string[];
|
|
148
156
|
}>;
|
|
149
157
|
export declare const purchaseApprovalCheck: Check<{
|
|
150
|
-
status: "pending" | "approved" | "rejected" | "cancelled" | "confirmed" | "reserved";
|
|
151
|
-
createdAt: string;
|
|
152
|
-
id: string;
|
|
153
|
-
expiresAt: string;
|
|
154
|
-
resourceId: string;
|
|
155
|
-
applicationId: string;
|
|
156
|
-
currency: string;
|
|
157
158
|
operationId: string;
|
|
158
|
-
|
|
159
|
-
childAccountId: string;
|
|
159
|
+
resourceId: string;
|
|
160
160
|
cartFingerprint: string;
|
|
161
|
+
summary: string;
|
|
161
162
|
merchantAccountIds: string[];
|
|
162
163
|
lineItems: {
|
|
163
|
-
title: string;
|
|
164
|
-
quantity: number;
|
|
165
164
|
itemReference: string;
|
|
165
|
+
title: string;
|
|
166
166
|
optionsText: string;
|
|
167
167
|
merchantAccountId: string;
|
|
168
|
+
quantity: number;
|
|
168
169
|
unitAmountMinor: number;
|
|
169
170
|
lineAmountMinor: number;
|
|
170
171
|
}[];
|
|
@@ -174,28 +175,35 @@ export declare const purchaseApprovalCheck: Check<{
|
|
|
174
175
|
roundingAdjustmentMinor: number;
|
|
175
176
|
paymentFingerprint: string;
|
|
176
177
|
amountMinor: number;
|
|
178
|
+
currency: string;
|
|
179
|
+
expiresAt: string;
|
|
180
|
+
id: string;
|
|
181
|
+
childAccountId: string;
|
|
182
|
+
applicationId: string;
|
|
183
|
+
status: "pending" | "approved" | "rejected" | "cancelled" | "confirmed" | "reserved";
|
|
184
|
+
createdAt: string;
|
|
177
185
|
receiptReference: string | null;
|
|
178
186
|
}>;
|
|
179
187
|
export declare const purchaseApprovalListCheck: Check<{
|
|
180
188
|
items: {
|
|
181
|
-
status: "pending" | "approved" | "rejected" | "cancelled" | "confirmed" | "reserved";
|
|
182
|
-
createdAt: string;
|
|
183
|
-
id: string;
|
|
184
189
|
expiresAt: string;
|
|
185
190
|
resourceId: string;
|
|
186
|
-
applicationId: string;
|
|
187
191
|
currency: string;
|
|
188
192
|
operationId: string;
|
|
189
193
|
summary: string;
|
|
190
|
-
childAccountId: string;
|
|
191
194
|
cartFingerprint: string;
|
|
192
|
-
merchantAccountIds: string[];
|
|
193
195
|
shippingMinor: number;
|
|
194
196
|
taxMinor: number;
|
|
195
197
|
discountMinor: number;
|
|
196
|
-
roundingAdjustmentMinor: number;
|
|
197
198
|
paymentFingerprint: string;
|
|
198
199
|
amountMinor: number;
|
|
200
|
+
merchantAccountIds: string[];
|
|
201
|
+
roundingAdjustmentMinor: number;
|
|
202
|
+
id: string;
|
|
203
|
+
childAccountId: string;
|
|
204
|
+
applicationId: string;
|
|
205
|
+
status: "pending" | "approved" | "rejected" | "cancelled" | "confirmed" | "reserved";
|
|
206
|
+
createdAt: string;
|
|
199
207
|
receiptReference: string | null;
|
|
200
208
|
}[];
|
|
201
209
|
nextCursor: string | null;
|
|
@@ -205,8 +213,8 @@ export declare const purchaseReviewInputCheck: Check<{
|
|
|
205
213
|
reauth: {
|
|
206
214
|
password?: string | undefined;
|
|
207
215
|
emailCode?: {
|
|
208
|
-
code: string;
|
|
209
216
|
verificationId: string;
|
|
217
|
+
code: string;
|
|
210
218
|
} | undefined;
|
|
211
219
|
totpCode?: string | undefined;
|
|
212
220
|
};
|
|
@@ -4,15 +4,15 @@
|
|
|
4
4
|
* Part of `@oxy.so/contracts/client`: never import `zod` here (see `./check.ts`).
|
|
5
5
|
*/
|
|
6
6
|
export declare const publicApplicationCheck: import("./check").Check<{
|
|
7
|
-
type: "system" | "internal" | "first_party" | "third_party";
|
|
8
|
-
name: string;
|
|
9
7
|
id: string;
|
|
10
|
-
|
|
8
|
+
name: string;
|
|
9
|
+
type: "system" | "first_party" | "internal" | "third_party";
|
|
11
10
|
isOfficial: boolean;
|
|
12
11
|
isInternal: boolean;
|
|
13
|
-
|
|
12
|
+
scopes: string[];
|
|
14
13
|
description?: string | undefined;
|
|
15
14
|
icon?: string | undefined;
|
|
15
|
+
websiteUrl?: string | undefined;
|
|
16
16
|
privacyPolicyUrl?: string | undefined;
|
|
17
17
|
termsUrl?: string | undefined;
|
|
18
18
|
developerName?: string | undefined;
|
|
@@ -106,8 +106,8 @@ export declare const totpBackupCodesResponseCheck: import("./check").Check<TotpB
|
|
|
106
106
|
export declare const reauthProofCheck: import("./check").Check<{
|
|
107
107
|
password?: string | undefined;
|
|
108
108
|
emailCode?: {
|
|
109
|
-
code: string;
|
|
110
109
|
verificationId: string;
|
|
110
|
+
code: string;
|
|
111
111
|
} | undefined;
|
|
112
112
|
totpCode?: string | undefined;
|
|
113
113
|
}>;
|
|
@@ -39,7 +39,10 @@ export declare const COMMONS_DENY_REASONS: readonly ["declined", "not_me"];
|
|
|
39
39
|
* The same set as a zod enum — the edge validator. Anything outside it
|
|
40
40
|
* (including free-form text) is rejected with 400 before any handler runs.
|
|
41
41
|
*/
|
|
42
|
-
export declare const commonsDenyReasonSchema: z.ZodEnum<
|
|
42
|
+
export declare const commonsDenyReasonSchema: z.ZodEnum<{
|
|
43
|
+
declined: "declined";
|
|
44
|
+
not_me: "not_me";
|
|
45
|
+
}>;
|
|
43
46
|
/** Why the approver denied a "Sign in with Oxy" request. */
|
|
44
47
|
export type CommonsDenyReason = z.infer<typeof commonsDenyReasonSchema>;
|
|
45
48
|
/**
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Oxy Console first-run onboarding — the wire contract.
|
|
3
|
+
*
|
|
4
|
+
* Acceptance belongs to the PERSON, not to a workspace: one record per user,
|
|
5
|
+
* whichever account they are acting as. Two steps, in order: accept the
|
|
6
|
+
* current terms (with the adult acknowledgement), then say what the Console is
|
|
7
|
+
* for, or skip. A skip stores an empty list and still counts as answered.
|
|
8
|
+
*
|
|
9
|
+
* Platform-agnostic — zod only. ESM-safe (no `require()`).
|
|
10
|
+
*/
|
|
11
|
+
import { z } from 'zod';
|
|
12
|
+
export { CONSOLE_TERMS_VERSION, CONSOLE_USE_CASES, type ConsoleUseCaseId, } from './client/consoleOnboarding';
|
|
13
|
+
export declare const consoleUseCaseIdSchema: z.ZodEnum<{
|
|
14
|
+
"build-with-api": "build-with-api";
|
|
15
|
+
"ai-models": "ai-models";
|
|
16
|
+
"publish-apps": "publish-apps";
|
|
17
|
+
"billing-credits": "billing-credits";
|
|
18
|
+
"explore-platform": "explore-platform";
|
|
19
|
+
}>;
|
|
20
|
+
/** `GET /console/onboarding`. A person with no record gets the empty state. */
|
|
21
|
+
export declare const consoleOnboardingStateSchema: z.ZodObject<{
|
|
22
|
+
termsVersion: z.ZodNullable<z.ZodString>;
|
|
23
|
+
termsAcceptedAt: z.ZodNullable<z.ZodString>;
|
|
24
|
+
termsCurrent: z.ZodBoolean;
|
|
25
|
+
marketingOptIn: z.ZodBoolean;
|
|
26
|
+
useCases: z.ZodArray<z.ZodEnum<{
|
|
27
|
+
"build-with-api": "build-with-api";
|
|
28
|
+
"ai-models": "ai-models";
|
|
29
|
+
"publish-apps": "publish-apps";
|
|
30
|
+
"billing-credits": "billing-credits";
|
|
31
|
+
"explore-platform": "explore-platform";
|
|
32
|
+
}>>;
|
|
33
|
+
useCaseDescription: z.ZodNullable<z.ZodString>;
|
|
34
|
+
useCasesAnswered: z.ZodBoolean;
|
|
35
|
+
}, z.core.$strip>;
|
|
36
|
+
export type ConsoleOnboardingState = z.infer<typeof consoleOnboardingStateSchema>;
|
|
37
|
+
/** `POST /console/onboarding/terms`. */
|
|
38
|
+
export declare const acceptConsoleTermsInputSchema: z.ZodObject<{
|
|
39
|
+
version: z.ZodString;
|
|
40
|
+
adultAcknowledged: z.ZodLiteral<true>;
|
|
41
|
+
aupAcknowledged: z.ZodLiteral<true>;
|
|
42
|
+
marketingOptIn: z.ZodBoolean;
|
|
43
|
+
}, z.core.$strip>;
|
|
44
|
+
export type AcceptConsoleTermsInput = z.infer<typeof acceptConsoleTermsInputSchema>;
|
|
45
|
+
/** `POST /console/onboarding/use-cases`. Empty means the person skipped. */
|
|
46
|
+
export declare const CONSOLE_USE_CASE_DESCRIPTION_MAX_LENGTH = 2000;
|
|
47
|
+
export declare const saveConsoleUseCasesInputSchema: z.ZodObject<{
|
|
48
|
+
description: z.ZodOptional<z.ZodString>;
|
|
49
|
+
useCases: z.ZodPipe<z.ZodArray<z.ZodEnum<{
|
|
50
|
+
"build-with-api": "build-with-api";
|
|
51
|
+
"ai-models": "ai-models";
|
|
52
|
+
"publish-apps": "publish-apps";
|
|
53
|
+
"billing-credits": "billing-credits";
|
|
54
|
+
"explore-platform": "explore-platform";
|
|
55
|
+
}>>, z.ZodTransform<("build-with-api" | "ai-models" | "publish-apps" | "billing-credits" | "explore-platform")[], ("build-with-api" | "ai-models" | "publish-apps" | "billing-credits" | "explore-platform")[]>>;
|
|
56
|
+
}, z.core.$strip>;
|
|
57
|
+
export type SaveConsoleUseCasesInput = z.input<typeof saveConsoleUseCasesInputSchema>;
|
|
@@ -22,70 +22,33 @@ export type ContentClaimValidationKey = (typeof CONTENT_CLAIM_VALIDATION_KEYS)[n
|
|
|
22
22
|
* unknown key is refused rather than dropped.
|
|
23
23
|
*/
|
|
24
24
|
export declare const contentClaimSubmissionSchema: z.ZodObject<{
|
|
25
|
-
kind: z.ZodEnum<
|
|
26
|
-
|
|
25
|
+
kind: z.ZodEnum<{
|
|
26
|
+
other: "other";
|
|
27
|
+
copyright: "copyright";
|
|
28
|
+
trademark: "trademark";
|
|
29
|
+
privacy: "privacy";
|
|
30
|
+
illegal_content: "illegal_content";
|
|
31
|
+
}>;
|
|
32
|
+
contentUrls: z.ZodArray<z.ZodString>;
|
|
27
33
|
description: z.ZodString;
|
|
28
|
-
originalWorkUrl: z.ZodOptional<z.
|
|
34
|
+
originalWorkUrl: z.ZodOptional<z.ZodString>;
|
|
29
35
|
claimant: z.ZodObject<{
|
|
30
36
|
name: z.ZodString;
|
|
31
37
|
email: z.ZodString;
|
|
32
38
|
organization: z.ZodOptional<z.ZodString>;
|
|
33
|
-
relationship: z.ZodEnum<
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
},
|
|
40
|
-
name: string;
|
|
41
|
-
email: string;
|
|
42
|
-
relationship: "other" | "rights_holder" | "authorized_agent" | "affected_person";
|
|
43
|
-
organization?: string | undefined;
|
|
44
|
-
}>;
|
|
39
|
+
relationship: z.ZodEnum<{
|
|
40
|
+
other: "other";
|
|
41
|
+
rights_holder: "rights_holder";
|
|
42
|
+
authorized_agent: "authorized_agent";
|
|
43
|
+
affected_person: "affected_person";
|
|
44
|
+
}>;
|
|
45
|
+
}, z.core.$strict>;
|
|
45
46
|
statements: z.ZodObject<{
|
|
46
47
|
goodFaith: z.ZodLiteral<true>;
|
|
47
48
|
accurate: z.ZodLiteral<true>;
|
|
48
|
-
},
|
|
49
|
-
goodFaith: true;
|
|
50
|
-
accurate: true;
|
|
51
|
-
}, {
|
|
52
|
-
goodFaith: true;
|
|
53
|
-
accurate: true;
|
|
54
|
-
}>;
|
|
49
|
+
}, z.core.$strict>;
|
|
55
50
|
signature: z.ZodString;
|
|
56
|
-
},
|
|
57
|
-
kind: "other" | "copyright" | "trademark" | "privacy" | "illegal_content";
|
|
58
|
-
description: string;
|
|
59
|
-
signature: string;
|
|
60
|
-
contentUrls: string[];
|
|
61
|
-
claimant: {
|
|
62
|
-
name: string;
|
|
63
|
-
email: string;
|
|
64
|
-
relationship: "other" | "rights_holder" | "authorized_agent" | "affected_person";
|
|
65
|
-
organization?: string | undefined;
|
|
66
|
-
};
|
|
67
|
-
statements: {
|
|
68
|
-
goodFaith: true;
|
|
69
|
-
accurate: true;
|
|
70
|
-
};
|
|
71
|
-
originalWorkUrl?: string | undefined;
|
|
72
|
-
}, {
|
|
73
|
-
kind: "other" | "copyright" | "trademark" | "privacy" | "illegal_content";
|
|
74
|
-
description: string;
|
|
75
|
-
signature: string;
|
|
76
|
-
contentUrls: string[];
|
|
77
|
-
claimant: {
|
|
78
|
-
name: string;
|
|
79
|
-
email: string;
|
|
80
|
-
relationship: "other" | "rights_holder" | "authorized_agent" | "affected_person";
|
|
81
|
-
organization?: string | undefined;
|
|
82
|
-
};
|
|
83
|
-
statements: {
|
|
84
|
-
goodFaith: true;
|
|
85
|
-
accurate: true;
|
|
86
|
-
};
|
|
87
|
-
originalWorkUrl?: string | undefined;
|
|
88
|
-
}>;
|
|
51
|
+
}, z.core.$strict>;
|
|
89
52
|
export type ContentClaimSubmission = z.infer<typeof contentClaimSubmissionSchema>;
|
|
90
53
|
/** `201` to a submission: the claim's id and the reference the claimant quotes. */
|
|
91
54
|
export interface ContentClaimSubmissionResponse {
|
|
@@ -201,148 +164,29 @@ export type ContentClaimCounterNoticeValidationKey = (typeof CONTENT_CLAIM_COUNT
|
|
|
201
164
|
* `fileIds` the notice covers exactly those files; without, every one of the
|
|
202
165
|
* caller's files the claim blocked. Strict: an unknown key is refused.
|
|
203
166
|
*/
|
|
204
|
-
export declare const contentClaimCounterNoticeSchema: z.
|
|
167
|
+
export declare const contentClaimCounterNoticeSchema: z.ZodObject<{
|
|
205
168
|
reference: z.ZodOptional<z.ZodString>;
|
|
206
169
|
claimId: z.ZodOptional<z.ZodString>;
|
|
207
|
-
fileIds: z.ZodOptional<z.ZodArray<z.ZodString
|
|
170
|
+
fileIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
208
171
|
subscriber: z.ZodObject<{
|
|
209
172
|
name: z.ZodString;
|
|
210
173
|
address: z.ZodString;
|
|
211
174
|
phone: z.ZodString;
|
|
212
175
|
email: z.ZodString;
|
|
213
|
-
},
|
|
214
|
-
name: string;
|
|
215
|
-
email: string;
|
|
216
|
-
address: string;
|
|
217
|
-
phone: string;
|
|
218
|
-
}, {
|
|
219
|
-
name: string;
|
|
220
|
-
email: string;
|
|
221
|
-
address: string;
|
|
222
|
-
phone: string;
|
|
223
|
-
}>;
|
|
176
|
+
}, z.core.$strict>;
|
|
224
177
|
material: z.ZodObject<{
|
|
225
|
-
/** What was removed. */
|
|
226
178
|
description: z.ZodString;
|
|
227
|
-
/** Where it appeared before it was removed (a URL, or where in an app). */
|
|
228
179
|
location: z.ZodString;
|
|
229
|
-
},
|
|
230
|
-
description: string;
|
|
231
|
-
location: string;
|
|
232
|
-
}, {
|
|
233
|
-
description: string;
|
|
234
|
-
location: string;
|
|
235
|
-
}>;
|
|
236
|
-
/** Why it was a mistake or a misidentification, in the owner's words. */
|
|
180
|
+
}, z.core.$strict>;
|
|
237
181
|
explanation: z.ZodString;
|
|
238
|
-
/** Each of `COUNTER_NOTICE_STATEMENTS`, affirmed. */
|
|
239
182
|
statements: z.ZodObject<{
|
|
240
183
|
perjury: z.ZodLiteral<true>;
|
|
241
184
|
jurisdiction: z.ZodLiteral<true>;
|
|
242
185
|
serviceOfProcess: z.ZodLiteral<true>;
|
|
243
186
|
disclosure: z.ZodLiteral<true>;
|
|
244
|
-
},
|
|
245
|
-
perjury: true;
|
|
246
|
-
jurisdiction: true;
|
|
247
|
-
serviceOfProcess: true;
|
|
248
|
-
disclosure: true;
|
|
249
|
-
}, {
|
|
250
|
-
perjury: true;
|
|
251
|
-
jurisdiction: true;
|
|
252
|
-
serviceOfProcess: true;
|
|
253
|
-
disclosure: true;
|
|
254
|
-
}>;
|
|
255
|
-
/** The owner's full legal name, typed as their signature. */
|
|
187
|
+
}, z.core.$strict>;
|
|
256
188
|
signature: z.ZodString;
|
|
257
|
-
},
|
|
258
|
-
signature: string;
|
|
259
|
-
statements: {
|
|
260
|
-
perjury: true;
|
|
261
|
-
jurisdiction: true;
|
|
262
|
-
serviceOfProcess: true;
|
|
263
|
-
disclosure: true;
|
|
264
|
-
};
|
|
265
|
-
subscriber: {
|
|
266
|
-
name: string;
|
|
267
|
-
email: string;
|
|
268
|
-
address: string;
|
|
269
|
-
phone: string;
|
|
270
|
-
};
|
|
271
|
-
material: {
|
|
272
|
-
description: string;
|
|
273
|
-
location: string;
|
|
274
|
-
};
|
|
275
|
-
explanation: string;
|
|
276
|
-
reference?: string | undefined;
|
|
277
|
-
claimId?: string | undefined;
|
|
278
|
-
fileIds?: string[] | undefined;
|
|
279
|
-
}, {
|
|
280
|
-
signature: string;
|
|
281
|
-
statements: {
|
|
282
|
-
perjury: true;
|
|
283
|
-
jurisdiction: true;
|
|
284
|
-
serviceOfProcess: true;
|
|
285
|
-
disclosure: true;
|
|
286
|
-
};
|
|
287
|
-
subscriber: {
|
|
288
|
-
name: string;
|
|
289
|
-
email: string;
|
|
290
|
-
address: string;
|
|
291
|
-
phone: string;
|
|
292
|
-
};
|
|
293
|
-
material: {
|
|
294
|
-
description: string;
|
|
295
|
-
location: string;
|
|
296
|
-
};
|
|
297
|
-
explanation: string;
|
|
298
|
-
reference?: string | undefined;
|
|
299
|
-
claimId?: string | undefined;
|
|
300
|
-
fileIds?: string[] | undefined;
|
|
301
|
-
}>, {
|
|
302
|
-
signature: string;
|
|
303
|
-
statements: {
|
|
304
|
-
perjury: true;
|
|
305
|
-
jurisdiction: true;
|
|
306
|
-
serviceOfProcess: true;
|
|
307
|
-
disclosure: true;
|
|
308
|
-
};
|
|
309
|
-
subscriber: {
|
|
310
|
-
name: string;
|
|
311
|
-
email: string;
|
|
312
|
-
address: string;
|
|
313
|
-
phone: string;
|
|
314
|
-
};
|
|
315
|
-
material: {
|
|
316
|
-
description: string;
|
|
317
|
-
location: string;
|
|
318
|
-
};
|
|
319
|
-
explanation: string;
|
|
320
|
-
reference?: string | undefined;
|
|
321
|
-
claimId?: string | undefined;
|
|
322
|
-
fileIds?: string[] | undefined;
|
|
323
|
-
}, {
|
|
324
|
-
signature: string;
|
|
325
|
-
statements: {
|
|
326
|
-
perjury: true;
|
|
327
|
-
jurisdiction: true;
|
|
328
|
-
serviceOfProcess: true;
|
|
329
|
-
disclosure: true;
|
|
330
|
-
};
|
|
331
|
-
subscriber: {
|
|
332
|
-
name: string;
|
|
333
|
-
email: string;
|
|
334
|
-
address: string;
|
|
335
|
-
phone: string;
|
|
336
|
-
};
|
|
337
|
-
material: {
|
|
338
|
-
description: string;
|
|
339
|
-
location: string;
|
|
340
|
-
};
|
|
341
|
-
explanation: string;
|
|
342
|
-
reference?: string | undefined;
|
|
343
|
-
claimId?: string | undefined;
|
|
344
|
-
fileIds?: string[] | undefined;
|
|
345
|
-
}>;
|
|
189
|
+
}, z.core.$strict>;
|
|
346
190
|
export type ContentClaimCounterNotice = z.infer<typeof contentClaimCounterNoticeSchema>;
|
|
347
191
|
/** `201` to a counter-notice. */
|
|
348
192
|
export interface ContentClaimCounterNoticeResponse {
|