@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
|
@@ -33,39 +33,39 @@ export declare const profileAccessDecisionCheck: Check<{
|
|
|
33
33
|
policyVersion: "1";
|
|
34
34
|
}>;
|
|
35
35
|
export declare const supervisionInvitationCheck: Check<{
|
|
36
|
-
status: "pending" | "accepted" | "cancelled";
|
|
37
|
-
createdAt: string;
|
|
38
36
|
id: string;
|
|
39
|
-
expiresAt: string;
|
|
40
37
|
childAccountId: string;
|
|
41
38
|
guardianAccountId: string;
|
|
39
|
+
status: "pending" | "accepted" | "cancelled";
|
|
40
|
+
expiresAt: string;
|
|
42
41
|
consentVersion: "1";
|
|
42
|
+
createdAt: string;
|
|
43
43
|
}>;
|
|
44
44
|
export declare const supervisionStateCheck: Check<{
|
|
45
45
|
self: {
|
|
46
|
-
status: "active" | "orphaned" | "ended";
|
|
47
|
-
createdAt: string;
|
|
48
|
-
policyVersion: "2";
|
|
49
46
|
childAccountId: string;
|
|
50
47
|
guardianAccountId: string | null;
|
|
48
|
+
status: "active" | "orphaned" | "ended";
|
|
49
|
+
policyVersion: "2";
|
|
51
50
|
consentVersion: "1";
|
|
51
|
+
createdAt: string;
|
|
52
52
|
} | null;
|
|
53
53
|
children: {
|
|
54
|
-
status: "active" | "orphaned" | "ended";
|
|
55
|
-
createdAt: string;
|
|
56
|
-
policyVersion: "2";
|
|
57
54
|
childAccountId: string;
|
|
58
55
|
guardianAccountId: string | null;
|
|
56
|
+
status: "active" | "orphaned" | "ended";
|
|
57
|
+
policyVersion: "2";
|
|
59
58
|
consentVersion: "1";
|
|
59
|
+
createdAt: string;
|
|
60
60
|
}[];
|
|
61
61
|
invitations: {
|
|
62
|
-
status: "pending" | "accepted" | "cancelled";
|
|
63
|
-
createdAt: string;
|
|
64
62
|
id: string;
|
|
65
|
-
expiresAt: string;
|
|
66
63
|
childAccountId: string;
|
|
67
64
|
guardianAccountId: string;
|
|
65
|
+
status: "pending" | "accepted" | "cancelled";
|
|
66
|
+
expiresAt: string;
|
|
68
67
|
consentVersion: "1";
|
|
68
|
+
createdAt: string;
|
|
69
69
|
}[];
|
|
70
70
|
}>;
|
|
71
71
|
export declare const supervisionContactsResponseCheck: Check<{
|
|
@@ -76,52 +76,52 @@ export declare const supervisionContactsResponseCheck: Check<{
|
|
|
76
76
|
}[];
|
|
77
77
|
}>;
|
|
78
78
|
export declare const supervisionInviteInputCheck: Check<{
|
|
79
|
+
guardianAccountId: string;
|
|
80
|
+
consentVersion: "1";
|
|
79
81
|
reauth: {
|
|
80
82
|
password?: string | undefined;
|
|
81
83
|
emailCode?: {
|
|
82
|
-
code: string;
|
|
83
84
|
verificationId: string;
|
|
85
|
+
code: string;
|
|
84
86
|
} | undefined;
|
|
85
87
|
totpCode?: string | undefined;
|
|
86
88
|
};
|
|
87
|
-
guardianAccountId: string;
|
|
88
|
-
consentVersion: "1";
|
|
89
89
|
}>;
|
|
90
90
|
export declare const supervisionAcceptInputCheck: Check<{
|
|
91
|
+
consentVersion: "1";
|
|
91
92
|
reauth: {
|
|
92
93
|
password?: string | undefined;
|
|
93
94
|
emailCode?: {
|
|
94
|
-
code: string;
|
|
95
95
|
verificationId: string;
|
|
96
|
+
code: string;
|
|
96
97
|
} | undefined;
|
|
97
98
|
totpCode?: string | undefined;
|
|
98
99
|
};
|
|
99
|
-
consentVersion: "1";
|
|
100
100
|
}>;
|
|
101
101
|
export declare const supervisionContactInputCheck: Check<{
|
|
102
|
+
childAccountId: string;
|
|
103
|
+
contactAccountId: string;
|
|
102
104
|
reauth: {
|
|
103
105
|
password?: string | undefined;
|
|
104
106
|
emailCode?: {
|
|
105
|
-
code: string;
|
|
106
107
|
verificationId: string;
|
|
108
|
+
code: string;
|
|
107
109
|
} | undefined;
|
|
108
110
|
totpCode?: string | undefined;
|
|
109
111
|
};
|
|
110
|
-
childAccountId: string;
|
|
111
|
-
contactAccountId: string;
|
|
112
112
|
}>;
|
|
113
113
|
export declare const supervisionReviewInputCheck: Check<{
|
|
114
|
+
childAccountId: string;
|
|
115
|
+
action: "end" | "transfer";
|
|
114
116
|
evidenceReference: string;
|
|
115
117
|
reauth: {
|
|
116
118
|
password?: string | undefined;
|
|
117
119
|
emailCode?: {
|
|
118
|
-
code: string;
|
|
119
120
|
verificationId: string;
|
|
121
|
+
code: string;
|
|
120
122
|
} | undefined;
|
|
121
123
|
totpCode?: string | undefined;
|
|
122
124
|
};
|
|
123
|
-
action: "end" | "transfer";
|
|
124
|
-
childAccountId: string;
|
|
125
125
|
guardianAccountId?: string | undefined;
|
|
126
126
|
}>;
|
|
127
127
|
export declare const safetyPeopleInputCheck: Check<{
|
|
@@ -144,35 +144,28 @@ export declare const safetyOrganizationsInputCheck: Check<{
|
|
|
144
144
|
}>;
|
|
145
145
|
export declare const safetyOrganizationsResponseCheck: Check<{
|
|
146
146
|
items: {
|
|
147
|
+
requestedAccountId: string;
|
|
147
148
|
organization: {
|
|
148
|
-
name: string;
|
|
149
|
-
organizationType: "community" | "business" | "nonprofit" | "other" | "public_body";
|
|
150
149
|
accountId: string;
|
|
151
150
|
username: string | null;
|
|
151
|
+
name: string;
|
|
152
|
+
organizationType: "community" | "business" | "nonprofit" | "other" | "public_body";
|
|
152
153
|
};
|
|
153
|
-
requestedAccountId: string;
|
|
154
154
|
}[];
|
|
155
155
|
missingIds: string[];
|
|
156
156
|
}>;
|
|
157
157
|
export declare const purchaseApprovalCheck: Check<{
|
|
158
|
-
status: "pending" | "approved" | "rejected" | "cancelled" | "confirmed" | "reserved";
|
|
159
|
-
createdAt: string;
|
|
160
|
-
id: string;
|
|
161
|
-
expiresAt: string;
|
|
162
|
-
resourceId: string;
|
|
163
|
-
applicationId: string;
|
|
164
|
-
currency: string;
|
|
165
158
|
operationId: string;
|
|
166
|
-
|
|
167
|
-
childAccountId: string;
|
|
159
|
+
resourceId: string;
|
|
168
160
|
cartFingerprint: string;
|
|
161
|
+
summary: string;
|
|
169
162
|
merchantAccountIds: string[];
|
|
170
163
|
lineItems: {
|
|
171
|
-
title: string;
|
|
172
|
-
quantity: number;
|
|
173
164
|
itemReference: string;
|
|
165
|
+
title: string;
|
|
174
166
|
optionsText: string;
|
|
175
167
|
merchantAccountId: string;
|
|
168
|
+
quantity: number;
|
|
176
169
|
unitAmountMinor: number;
|
|
177
170
|
lineAmountMinor: number;
|
|
178
171
|
}[];
|
|
@@ -182,28 +175,35 @@ export declare const purchaseApprovalCheck: Check<{
|
|
|
182
175
|
roundingAdjustmentMinor: number;
|
|
183
176
|
paymentFingerprint: string;
|
|
184
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;
|
|
185
185
|
receiptReference: string | null;
|
|
186
186
|
}>;
|
|
187
187
|
export declare const purchaseApprovalListCheck: Check<{
|
|
188
188
|
items: {
|
|
189
|
-
status: "pending" | "approved" | "rejected" | "cancelled" | "confirmed" | "reserved";
|
|
190
|
-
createdAt: string;
|
|
191
|
-
id: string;
|
|
192
189
|
expiresAt: string;
|
|
193
190
|
resourceId: string;
|
|
194
|
-
applicationId: string;
|
|
195
191
|
currency: string;
|
|
196
192
|
operationId: string;
|
|
197
193
|
summary: string;
|
|
198
|
-
childAccountId: string;
|
|
199
194
|
cartFingerprint: string;
|
|
200
|
-
merchantAccountIds: string[];
|
|
201
195
|
shippingMinor: number;
|
|
202
196
|
taxMinor: number;
|
|
203
197
|
discountMinor: number;
|
|
204
|
-
roundingAdjustmentMinor: number;
|
|
205
198
|
paymentFingerprint: string;
|
|
206
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;
|
|
207
207
|
receiptReference: string | null;
|
|
208
208
|
}[];
|
|
209
209
|
nextCursor: string | null;
|
|
@@ -213,8 +213,8 @@ export declare const purchaseReviewInputCheck: Check<{
|
|
|
213
213
|
reauth: {
|
|
214
214
|
password?: string | undefined;
|
|
215
215
|
emailCode?: {
|
|
216
|
-
code: string;
|
|
217
216
|
verificationId: string;
|
|
217
|
+
code: string;
|
|
218
218
|
} | undefined;
|
|
219
219
|
totpCode?: string | undefined;
|
|
220
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
|
/**
|
|
@@ -10,68 +10,48 @@
|
|
|
10
10
|
*/
|
|
11
11
|
import { z } from 'zod';
|
|
12
12
|
export { CONSOLE_TERMS_VERSION, CONSOLE_USE_CASES, type ConsoleUseCaseId, } from './client/consoleOnboarding';
|
|
13
|
-
export declare const consoleUseCaseIdSchema: z.ZodEnum<
|
|
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
|
+
}>;
|
|
14
20
|
/** `GET /console/onboarding`. A person with no record gets the empty state. */
|
|
15
21
|
export declare const consoleOnboardingStateSchema: z.ZodObject<{
|
|
16
|
-
/** The terms version the person accepted, or null when none. */
|
|
17
22
|
termsVersion: z.ZodNullable<z.ZodString>;
|
|
18
23
|
termsAcceptedAt: z.ZodNullable<z.ZodString>;
|
|
19
|
-
/** True when `termsVersion` is the current {@link CONSOLE_TERMS_VERSION}. */
|
|
20
24
|
termsCurrent: z.ZodBoolean;
|
|
21
25
|
marketingOptIn: z.ZodBoolean;
|
|
22
|
-
useCases: z.ZodArray<z.ZodEnum<
|
|
23
|
-
|
|
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
|
+
}>>;
|
|
24
33
|
useCaseDescription: z.ZodNullable<z.ZodString>;
|
|
25
|
-
/** True once the person picked options or skipped. */
|
|
26
34
|
useCasesAnswered: z.ZodBoolean;
|
|
27
|
-
},
|
|
28
|
-
termsVersion: string | null;
|
|
29
|
-
termsAcceptedAt: string | null;
|
|
30
|
-
termsCurrent: boolean;
|
|
31
|
-
marketingOptIn: boolean;
|
|
32
|
-
useCases: ("build-with-api" | "ai-models" | "publish-apps" | "billing-credits" | "explore-platform")[];
|
|
33
|
-
useCaseDescription: string | null;
|
|
34
|
-
useCasesAnswered: boolean;
|
|
35
|
-
}, {
|
|
36
|
-
termsVersion: string | null;
|
|
37
|
-
termsAcceptedAt: string | null;
|
|
38
|
-
termsCurrent: boolean;
|
|
39
|
-
marketingOptIn: boolean;
|
|
40
|
-
useCases: ("build-with-api" | "ai-models" | "publish-apps" | "billing-credits" | "explore-platform")[];
|
|
41
|
-
useCaseDescription: string | null;
|
|
42
|
-
useCasesAnswered: boolean;
|
|
43
|
-
}>;
|
|
35
|
+
}, z.core.$strip>;
|
|
44
36
|
export type ConsoleOnboardingState = z.infer<typeof consoleOnboardingStateSchema>;
|
|
45
37
|
/** `POST /console/onboarding/terms`. */
|
|
46
38
|
export declare const acceptConsoleTermsInputSchema: z.ZodObject<{
|
|
47
39
|
version: z.ZodString;
|
|
48
40
|
adultAcknowledged: z.ZodLiteral<true>;
|
|
49
|
-
/** Understands the account may be suspended or terminated for violating the AUP/Terms. */
|
|
50
41
|
aupAcknowledged: z.ZodLiteral<true>;
|
|
51
42
|
marketingOptIn: z.ZodBoolean;
|
|
52
|
-
},
|
|
53
|
-
version: string;
|
|
54
|
-
marketingOptIn: boolean;
|
|
55
|
-
adultAcknowledged: true;
|
|
56
|
-
aupAcknowledged: true;
|
|
57
|
-
}, {
|
|
58
|
-
version: string;
|
|
59
|
-
marketingOptIn: boolean;
|
|
60
|
-
adultAcknowledged: true;
|
|
61
|
-
aupAcknowledged: true;
|
|
62
|
-
}>;
|
|
43
|
+
}, z.core.$strip>;
|
|
63
44
|
export type AcceptConsoleTermsInput = z.infer<typeof acceptConsoleTermsInputSchema>;
|
|
64
45
|
/** `POST /console/onboarding/use-cases`. Empty means the person skipped. */
|
|
65
46
|
export declare const CONSOLE_USE_CASE_DESCRIPTION_MAX_LENGTH = 2000;
|
|
66
47
|
export declare const saveConsoleUseCasesInputSchema: z.ZodObject<{
|
|
67
|
-
/** Optional free text; trimmed, and blank counts as absent. */
|
|
68
48
|
description: z.ZodOptional<z.ZodString>;
|
|
69
|
-
useCases: z.
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
}>;
|
|
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>;
|
|
77
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 {
|