@oxy.so/contracts 5.8.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/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 +15 -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 +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/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 +4 -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 +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/deviceDirectory.d.ts +51 -51
- package/dist/types/client/deviceSession.d.ts +14 -14
- 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 +5 -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 +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 +2 -2
package/dist/types/updates.d.ts
CHANGED
|
@@ -25,13 +25,23 @@
|
|
|
25
25
|
*/
|
|
26
26
|
import { z } from 'zod';
|
|
27
27
|
/** The two platforms the expo-updates protocol addresses. */
|
|
28
|
-
export declare const updatePlatformSchema: z.ZodEnum<
|
|
28
|
+
export declare const updatePlatformSchema: z.ZodEnum<{
|
|
29
|
+
android: "android";
|
|
30
|
+
ios: "ios";
|
|
31
|
+
}>;
|
|
29
32
|
export type UpdatePlatform = z.infer<typeof updatePlatformSchema>;
|
|
30
33
|
/** Lifecycle of a single published update row. */
|
|
31
|
-
export declare const updateStatusSchema: z.ZodEnum<
|
|
34
|
+
export declare const updateStatusSchema: z.ZodEnum<{
|
|
35
|
+
rolled_back: "rolled_back";
|
|
36
|
+
superseded: "superseded";
|
|
37
|
+
published: "published";
|
|
38
|
+
}>;
|
|
32
39
|
export type UpdateStatus = z.infer<typeof updateStatusSchema>;
|
|
33
40
|
/** Upload lifecycle of a content-addressed asset. */
|
|
34
|
-
export declare const updateAssetStatusSchema: z.ZodEnum<
|
|
41
|
+
export declare const updateAssetStatusSchema: z.ZodEnum<{
|
|
42
|
+
pending: "pending";
|
|
43
|
+
uploaded: "uploaded";
|
|
44
|
+
}>;
|
|
35
45
|
export type UpdateAssetStatus = z.infer<typeof updateAssetStatusSchema>;
|
|
36
46
|
/** Lowercase-hex SHA-256 content hash (64 hex chars). */
|
|
37
47
|
export declare const sha256HexSchema: z.ZodString;
|
|
@@ -54,15 +64,7 @@ export declare const assetInitItemSchema: z.ZodObject<{
|
|
|
54
64
|
sha256: z.ZodString;
|
|
55
65
|
contentType: z.ZodString;
|
|
56
66
|
size: z.ZodNumber;
|
|
57
|
-
},
|
|
58
|
-
sha256: string;
|
|
59
|
-
contentType: string;
|
|
60
|
-
size: number;
|
|
61
|
-
}, {
|
|
62
|
-
sha256: string;
|
|
63
|
-
contentType: string;
|
|
64
|
-
size: number;
|
|
65
|
-
}>;
|
|
67
|
+
}, z.core.$strip>;
|
|
66
68
|
export type AssetInitItem = z.infer<typeof assetInitItemSchema>;
|
|
67
69
|
/**
|
|
68
70
|
* `POST /updates/v1/assets/init` request. Declares the full asset set of an
|
|
@@ -75,63 +77,18 @@ export declare const assetInitRequestSchema: z.ZodObject<{
|
|
|
75
77
|
sha256: z.ZodString;
|
|
76
78
|
contentType: z.ZodString;
|
|
77
79
|
size: z.ZodNumber;
|
|
78
|
-
},
|
|
79
|
-
|
|
80
|
-
contentType: string;
|
|
81
|
-
size: number;
|
|
82
|
-
}, {
|
|
83
|
-
sha256: string;
|
|
84
|
-
contentType: string;
|
|
85
|
-
size: number;
|
|
86
|
-
}>, "many">;
|
|
87
|
-
}, "strip", z.ZodTypeAny, {
|
|
88
|
-
applicationId: string;
|
|
89
|
-
assets: {
|
|
90
|
-
sha256: string;
|
|
91
|
-
contentType: string;
|
|
92
|
-
size: number;
|
|
93
|
-
}[];
|
|
94
|
-
}, {
|
|
95
|
-
applicationId: string;
|
|
96
|
-
assets: {
|
|
97
|
-
sha256: string;
|
|
98
|
-
contentType: string;
|
|
99
|
-
size: number;
|
|
100
|
-
}[];
|
|
101
|
-
}>;
|
|
80
|
+
}, z.core.$strip>>;
|
|
81
|
+
}, z.core.$strip>;
|
|
102
82
|
export type AssetInitRequest = z.infer<typeof assetInitRequestSchema>;
|
|
103
83
|
/** One presigned upload the client must PUT its bytes to before completing. */
|
|
104
84
|
export declare const assetUploadTicketSchema: z.ZodObject<{
|
|
105
85
|
sha256: z.ZodString;
|
|
106
|
-
/** Presigned S3 PUT URL. The client PUTs the exact bytes here. */
|
|
107
86
|
uploadUrl: z.ZodString;
|
|
108
|
-
/** The S3 key the object will live at (`public/updates/assets/<sha256>`). */
|
|
109
87
|
storageKey: z.ZodString;
|
|
110
|
-
/** The Content-Type the presigned URL was signed for; echo it on the PUT. */
|
|
111
88
|
contentType: z.ZodString;
|
|
112
|
-
/**
|
|
113
|
-
* The Cache-Control the presigned URL was signed for; the client MUST send it
|
|
114
|
-
* verbatim on the PUT so the SigV4 signature matches and the stored object
|
|
115
|
-
* carries the long immutable cache header (assets are content-addressed).
|
|
116
|
-
*/
|
|
117
89
|
cacheControl: z.ZodString;
|
|
118
|
-
/** Base64 SHA-256 value required in the presigned PUT's checksum header. */
|
|
119
90
|
checksumSHA256: z.ZodString;
|
|
120
|
-
},
|
|
121
|
-
sha256: string;
|
|
122
|
-
contentType: string;
|
|
123
|
-
uploadUrl: string;
|
|
124
|
-
storageKey: string;
|
|
125
|
-
cacheControl: string;
|
|
126
|
-
checksumSHA256: string;
|
|
127
|
-
}, {
|
|
128
|
-
sha256: string;
|
|
129
|
-
contentType: string;
|
|
130
|
-
uploadUrl: string;
|
|
131
|
-
storageKey: string;
|
|
132
|
-
cacheControl: string;
|
|
133
|
-
checksumSHA256: string;
|
|
134
|
-
}>;
|
|
91
|
+
}, z.core.$strip>;
|
|
135
92
|
export type AssetUploadTicket = z.infer<typeof assetUploadTicketSchema>;
|
|
136
93
|
/**
|
|
137
94
|
* `POST /updates/v1/assets/init` response. `missing` holds a presigned upload
|
|
@@ -141,57 +98,14 @@ export type AssetUploadTicket = z.infer<typeof assetUploadTicketSchema>;
|
|
|
141
98
|
export declare const assetInitResponseSchema: z.ZodObject<{
|
|
142
99
|
missing: z.ZodArray<z.ZodObject<{
|
|
143
100
|
sha256: z.ZodString;
|
|
144
|
-
/** Presigned S3 PUT URL. The client PUTs the exact bytes here. */
|
|
145
101
|
uploadUrl: z.ZodString;
|
|
146
|
-
/** The S3 key the object will live at (`public/updates/assets/<sha256>`). */
|
|
147
102
|
storageKey: z.ZodString;
|
|
148
|
-
/** The Content-Type the presigned URL was signed for; echo it on the PUT. */
|
|
149
103
|
contentType: z.ZodString;
|
|
150
|
-
/**
|
|
151
|
-
* The Cache-Control the presigned URL was signed for; the client MUST send it
|
|
152
|
-
* verbatim on the PUT so the SigV4 signature matches and the stored object
|
|
153
|
-
* carries the long immutable cache header (assets are content-addressed).
|
|
154
|
-
*/
|
|
155
104
|
cacheControl: z.ZodString;
|
|
156
|
-
/** Base64 SHA-256 value required in the presigned PUT's checksum header. */
|
|
157
105
|
checksumSHA256: z.ZodString;
|
|
158
|
-
},
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
uploadUrl: string;
|
|
162
|
-
storageKey: string;
|
|
163
|
-
cacheControl: string;
|
|
164
|
-
checksumSHA256: string;
|
|
165
|
-
}, {
|
|
166
|
-
sha256: string;
|
|
167
|
-
contentType: string;
|
|
168
|
-
uploadUrl: string;
|
|
169
|
-
storageKey: string;
|
|
170
|
-
cacheControl: string;
|
|
171
|
-
checksumSHA256: string;
|
|
172
|
-
}>, "many">;
|
|
173
|
-
existing: z.ZodArray<z.ZodString, "many">;
|
|
174
|
-
}, "strip", z.ZodTypeAny, {
|
|
175
|
-
missing: {
|
|
176
|
-
sha256: string;
|
|
177
|
-
contentType: string;
|
|
178
|
-
uploadUrl: string;
|
|
179
|
-
storageKey: string;
|
|
180
|
-
cacheControl: string;
|
|
181
|
-
checksumSHA256: string;
|
|
182
|
-
}[];
|
|
183
|
-
existing: string[];
|
|
184
|
-
}, {
|
|
185
|
-
missing: {
|
|
186
|
-
sha256: string;
|
|
187
|
-
contentType: string;
|
|
188
|
-
uploadUrl: string;
|
|
189
|
-
storageKey: string;
|
|
190
|
-
cacheControl: string;
|
|
191
|
-
checksumSHA256: string;
|
|
192
|
-
}[];
|
|
193
|
-
existing: string[];
|
|
194
|
-
}>;
|
|
106
|
+
}, z.core.$strip>>;
|
|
107
|
+
existing: z.ZodArray<z.ZodString>;
|
|
108
|
+
}, z.core.$strip>;
|
|
195
109
|
export type AssetInitResponse = z.infer<typeof assetInitResponseSchema>;
|
|
196
110
|
/**
|
|
197
111
|
* `POST /updates/v1/assets/complete` request. Sent after the client has PUT
|
|
@@ -200,57 +114,29 @@ export type AssetInitResponse = z.infer<typeof assetInitResponseSchema>;
|
|
|
200
114
|
*/
|
|
201
115
|
export declare const assetCompleteRequestSchema: z.ZodObject<{
|
|
202
116
|
applicationId: z.ZodString;
|
|
203
|
-
sha256s: z.ZodArray<z.ZodString
|
|
204
|
-
},
|
|
205
|
-
applicationId: string;
|
|
206
|
-
sha256s: string[];
|
|
207
|
-
}, {
|
|
208
|
-
applicationId: string;
|
|
209
|
-
sha256s: string[];
|
|
210
|
-
}>;
|
|
117
|
+
sha256s: z.ZodArray<z.ZodString>;
|
|
118
|
+
}, z.core.$strip>;
|
|
211
119
|
export type AssetCompleteRequest = z.infer<typeof assetCompleteRequestSchema>;
|
|
212
120
|
/** Per-asset verification outcome from `assets/complete`. */
|
|
213
121
|
export declare const assetCompleteResultItemSchema: z.ZodObject<{
|
|
214
122
|
sha256: z.ZodString;
|
|
215
|
-
status: z.ZodEnum<
|
|
123
|
+
status: z.ZodEnum<{
|
|
124
|
+
pending: "pending";
|
|
125
|
+
uploaded: "uploaded";
|
|
126
|
+
}>;
|
|
216
127
|
size: z.ZodNumber;
|
|
217
|
-
},
|
|
218
|
-
status: "pending" | "uploaded";
|
|
219
|
-
sha256: string;
|
|
220
|
-
size: number;
|
|
221
|
-
}, {
|
|
222
|
-
status: "pending" | "uploaded";
|
|
223
|
-
sha256: string;
|
|
224
|
-
size: number;
|
|
225
|
-
}>;
|
|
128
|
+
}, z.core.$strip>;
|
|
226
129
|
export type AssetCompleteResultItem = z.infer<typeof assetCompleteResultItemSchema>;
|
|
227
130
|
export declare const assetCompleteResponseSchema: z.ZodObject<{
|
|
228
131
|
assets: z.ZodArray<z.ZodObject<{
|
|
229
132
|
sha256: z.ZodString;
|
|
230
|
-
status: z.ZodEnum<
|
|
133
|
+
status: z.ZodEnum<{
|
|
134
|
+
pending: "pending";
|
|
135
|
+
uploaded: "uploaded";
|
|
136
|
+
}>;
|
|
231
137
|
size: z.ZodNumber;
|
|
232
|
-
},
|
|
233
|
-
|
|
234
|
-
sha256: string;
|
|
235
|
-
size: number;
|
|
236
|
-
}, {
|
|
237
|
-
status: "pending" | "uploaded";
|
|
238
|
-
sha256: string;
|
|
239
|
-
size: number;
|
|
240
|
-
}>, "many">;
|
|
241
|
-
}, "strip", z.ZodTypeAny, {
|
|
242
|
-
assets: {
|
|
243
|
-
status: "pending" | "uploaded";
|
|
244
|
-
sha256: string;
|
|
245
|
-
size: number;
|
|
246
|
-
}[];
|
|
247
|
-
}, {
|
|
248
|
-
assets: {
|
|
249
|
-
status: "pending" | "uploaded";
|
|
250
|
-
sha256: string;
|
|
251
|
-
size: number;
|
|
252
|
-
}[];
|
|
253
|
-
}>;
|
|
138
|
+
}, z.core.$strip>>;
|
|
139
|
+
}, z.core.$strip>;
|
|
254
140
|
export type AssetCompleteResponse = z.infer<typeof assetCompleteResponseSchema>;
|
|
255
141
|
/**
|
|
256
142
|
* A single asset reference inside a create-update request. `key` is the
|
|
@@ -259,22 +145,10 @@ export type AssetCompleteResponse = z.infer<typeof assetCompleteResponseSchema>;
|
|
|
259
145
|
*/
|
|
260
146
|
export declare const updateAssetRefSchema: z.ZodObject<{
|
|
261
147
|
sha256: z.ZodString;
|
|
262
|
-
/** expo-export asset key (md5 basename) — how app code references the asset. */
|
|
263
148
|
key: z.ZodString;
|
|
264
149
|
contentType: z.ZodString;
|
|
265
|
-
/** Suggested file extension including the leading dot (e.g. `.js`, `.png`). */
|
|
266
150
|
fileExtension: z.ZodOptional<z.ZodString>;
|
|
267
|
-
},
|
|
268
|
-
key: string;
|
|
269
|
-
sha256: string;
|
|
270
|
-
contentType: string;
|
|
271
|
-
fileExtension?: string | undefined;
|
|
272
|
-
}, {
|
|
273
|
-
key: string;
|
|
274
|
-
sha256: string;
|
|
275
|
-
contentType: string;
|
|
276
|
-
fileExtension?: string | undefined;
|
|
277
|
-
}>;
|
|
151
|
+
}, z.core.$strip>;
|
|
278
152
|
export type UpdateAssetRef = z.infer<typeof updateAssetRefSchema>;
|
|
279
153
|
/**
|
|
280
154
|
* `POST /updates/v1/updates` request. Publishes one bundle for one platform to a
|
|
@@ -286,121 +160,31 @@ export declare const createUpdateRequestSchema: z.ZodObject<{
|
|
|
286
160
|
applicationId: z.ZodString;
|
|
287
161
|
channel: z.ZodString;
|
|
288
162
|
runtimeVersion: z.ZodString;
|
|
289
|
-
platform: z.ZodEnum<
|
|
290
|
-
|
|
163
|
+
platform: z.ZodEnum<{
|
|
164
|
+
android: "android";
|
|
165
|
+
ios: "ios";
|
|
166
|
+
}>;
|
|
291
167
|
launchAsset: z.ZodObject<{
|
|
292
168
|
sha256: z.ZodString;
|
|
293
|
-
/** expo-export asset key (md5 basename) — how app code references the asset. */
|
|
294
169
|
key: z.ZodString;
|
|
295
170
|
contentType: z.ZodString;
|
|
296
|
-
/** Suggested file extension including the leading dot (e.g. `.js`, `.png`). */
|
|
297
171
|
fileExtension: z.ZodOptional<z.ZodString>;
|
|
298
|
-
},
|
|
299
|
-
key: string;
|
|
300
|
-
sha256: string;
|
|
301
|
-
contentType: string;
|
|
302
|
-
fileExtension?: string | undefined;
|
|
303
|
-
}, {
|
|
304
|
-
key: string;
|
|
305
|
-
sha256: string;
|
|
306
|
-
contentType: string;
|
|
307
|
-
fileExtension?: string | undefined;
|
|
308
|
-
}>;
|
|
172
|
+
}, z.core.$strip>;
|
|
309
173
|
assets: z.ZodArray<z.ZodObject<{
|
|
310
174
|
sha256: z.ZodString;
|
|
311
|
-
/** expo-export asset key (md5 basename) — how app code references the asset. */
|
|
312
175
|
key: z.ZodString;
|
|
313
176
|
contentType: z.ZodString;
|
|
314
|
-
/** Suggested file extension including the leading dot (e.g. `.js`, `.png`). */
|
|
315
177
|
fileExtension: z.ZodOptional<z.ZodString>;
|
|
316
|
-
},
|
|
317
|
-
key: string;
|
|
318
|
-
sha256: string;
|
|
319
|
-
contentType: string;
|
|
320
|
-
fileExtension?: string | undefined;
|
|
321
|
-
}, {
|
|
322
|
-
key: string;
|
|
323
|
-
sha256: string;
|
|
324
|
-
contentType: string;
|
|
325
|
-
fileExtension?: string | undefined;
|
|
326
|
-
}>, "many">;
|
|
327
|
-
/**
|
|
328
|
-
* Opaque `extra` blob embedded verbatim in the signed manifest. MUST contain
|
|
329
|
-
* `expoClient` (the public expo config) so `Constants.expoConfig` resolves
|
|
330
|
-
* after an OTA update; MAY carry other third-party config.
|
|
331
|
-
*/
|
|
178
|
+
}, z.core.$strip>>;
|
|
332
179
|
extra: z.ZodObject<{
|
|
333
180
|
expoClient: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
334
|
-
},
|
|
335
|
-
expoClient: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
336
|
-
}, z.ZodUnknown, "strip">, z.objectInputType<{
|
|
337
|
-
expoClient: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
338
|
-
}, z.ZodUnknown, "strip">>;
|
|
339
|
-
/** String→string metadata dict; filtered client-side via manifest filters. */
|
|
181
|
+
}, z.core.$catchall<z.ZodUnknown>>;
|
|
340
182
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
341
|
-
/** Initial rollout percentage (default 100 — full rollout). */
|
|
342
183
|
rolloutPercent: z.ZodOptional<z.ZodNumber>;
|
|
343
|
-
/** Git commit the bundle was built from (audit / console display). */
|
|
344
184
|
gitCommit: z.ZodOptional<z.ZodString>;
|
|
345
|
-
/** Git branch the bundle was built from (audit / console display). */
|
|
346
185
|
gitBranch: z.ZodOptional<z.ZodString>;
|
|
347
|
-
/** Human-readable publish message (console display). */
|
|
348
186
|
message: z.ZodOptional<z.ZodString>;
|
|
349
|
-
},
|
|
350
|
-
channel: string;
|
|
351
|
-
applicationId: string;
|
|
352
|
-
platform: "android" | "ios";
|
|
353
|
-
assets: {
|
|
354
|
-
key: string;
|
|
355
|
-
sha256: string;
|
|
356
|
-
contentType: string;
|
|
357
|
-
fileExtension?: string | undefined;
|
|
358
|
-
}[];
|
|
359
|
-
runtimeVersion: string;
|
|
360
|
-
launchAsset: {
|
|
361
|
-
key: string;
|
|
362
|
-
sha256: string;
|
|
363
|
-
contentType: string;
|
|
364
|
-
fileExtension?: string | undefined;
|
|
365
|
-
};
|
|
366
|
-
extra: {
|
|
367
|
-
expoClient: Record<string, unknown>;
|
|
368
|
-
} & {
|
|
369
|
-
[k: string]: unknown;
|
|
370
|
-
};
|
|
371
|
-
message?: string | undefined;
|
|
372
|
-
metadata?: Record<string, string> | undefined;
|
|
373
|
-
rolloutPercent?: number | undefined;
|
|
374
|
-
gitCommit?: string | undefined;
|
|
375
|
-
gitBranch?: string | undefined;
|
|
376
|
-
}, {
|
|
377
|
-
channel: string;
|
|
378
|
-
applicationId: string;
|
|
379
|
-
platform: "android" | "ios";
|
|
380
|
-
assets: {
|
|
381
|
-
key: string;
|
|
382
|
-
sha256: string;
|
|
383
|
-
contentType: string;
|
|
384
|
-
fileExtension?: string | undefined;
|
|
385
|
-
}[];
|
|
386
|
-
runtimeVersion: string;
|
|
387
|
-
launchAsset: {
|
|
388
|
-
key: string;
|
|
389
|
-
sha256: string;
|
|
390
|
-
contentType: string;
|
|
391
|
-
fileExtension?: string | undefined;
|
|
392
|
-
};
|
|
393
|
-
extra: {
|
|
394
|
-
expoClient: Record<string, unknown>;
|
|
395
|
-
} & {
|
|
396
|
-
[k: string]: unknown;
|
|
397
|
-
};
|
|
398
|
-
message?: string | undefined;
|
|
399
|
-
metadata?: Record<string, string> | undefined;
|
|
400
|
-
rolloutPercent?: number | undefined;
|
|
401
|
-
gitCommit?: string | undefined;
|
|
402
|
-
gitBranch?: string | undefined;
|
|
403
|
-
}>;
|
|
187
|
+
}, z.core.$strip>;
|
|
404
188
|
export type CreateUpdateRequest = z.infer<typeof createUpdateRequestSchema>;
|
|
405
189
|
/**
|
|
406
190
|
* A published update as returned by the read/admin endpoints. `id` is the
|
|
@@ -428,12 +212,8 @@ export interface Update {
|
|
|
428
212
|
}
|
|
429
213
|
export declare const updateSchema: z.ZodType<Update>;
|
|
430
214
|
export declare const createUpdateResponseSchema: z.ZodObject<{
|
|
431
|
-
update: z.ZodType<Update, z.
|
|
432
|
-
},
|
|
433
|
-
update: Update;
|
|
434
|
-
}, {
|
|
435
|
-
update: Update;
|
|
436
|
-
}>;
|
|
215
|
+
update: z.ZodType<Update, unknown, z.core.$ZodTypeInternals<Update, unknown>>;
|
|
216
|
+
}, z.core.$strip>;
|
|
437
217
|
export type CreateUpdateResponse = z.infer<typeof createUpdateResponseSchema>;
|
|
438
218
|
/** One `rollBackToEmbedded` directive currently active on a channel. */
|
|
439
219
|
export interface RollbackToEmbeddedEntry {
|
|
@@ -454,20 +234,12 @@ export interface Channel {
|
|
|
454
234
|
}
|
|
455
235
|
export declare const channelSchema: z.ZodType<Channel>;
|
|
456
236
|
export declare const channelListResponseSchema: z.ZodObject<{
|
|
457
|
-
channels: z.ZodArray<z.ZodType<Channel, z.
|
|
458
|
-
},
|
|
459
|
-
channels: Channel[];
|
|
460
|
-
}, {
|
|
461
|
-
channels: Channel[];
|
|
462
|
-
}>;
|
|
237
|
+
channels: z.ZodArray<z.ZodType<Channel, unknown, z.core.$ZodTypeInternals<Channel, unknown>>>;
|
|
238
|
+
}, z.core.$strip>;
|
|
463
239
|
export type ChannelListResponse = z.infer<typeof channelListResponseSchema>;
|
|
464
240
|
export declare const updateListResponseSchema: z.ZodObject<{
|
|
465
|
-
updates: z.ZodArray<z.ZodType<Update, z.
|
|
466
|
-
},
|
|
467
|
-
updates: Update[];
|
|
468
|
-
}, {
|
|
469
|
-
updates: Update[];
|
|
470
|
-
}>;
|
|
241
|
+
updates: z.ZodArray<z.ZodType<Update, unknown, z.core.$ZodTypeInternals<Update, unknown>>>;
|
|
242
|
+
}, z.core.$strip>;
|
|
471
243
|
export type UpdateListResponse = z.infer<typeof updateListResponseSchema>;
|
|
472
244
|
/**
|
|
473
245
|
* `POST /updates/v1/channels/:channel/rollback` request. Marks the current head
|
|
@@ -477,16 +249,11 @@ export type UpdateListResponse = z.infer<typeof updateListResponseSchema>;
|
|
|
477
249
|
export declare const rollbackRequestSchema: z.ZodObject<{
|
|
478
250
|
applicationId: z.ZodString;
|
|
479
251
|
runtimeVersion: z.ZodString;
|
|
480
|
-
platform: z.ZodEnum<
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
}, {
|
|
486
|
-
applicationId: string;
|
|
487
|
-
platform: "android" | "ios";
|
|
488
|
-
runtimeVersion: string;
|
|
489
|
-
}>;
|
|
252
|
+
platform: z.ZodEnum<{
|
|
253
|
+
android: "android";
|
|
254
|
+
ios: "ios";
|
|
255
|
+
}>;
|
|
256
|
+
}, z.core.$strip>;
|
|
490
257
|
export type RollbackRequest = z.infer<typeof rollbackRequestSchema>;
|
|
491
258
|
/**
|
|
492
259
|
* `POST /updates/v1/channels/:channel/rollback-to-embedded` request. Records a
|
|
@@ -496,16 +263,11 @@ export type RollbackRequest = z.infer<typeof rollbackRequestSchema>;
|
|
|
496
263
|
export declare const rollbackToEmbeddedRequestSchema: z.ZodObject<{
|
|
497
264
|
applicationId: z.ZodString;
|
|
498
265
|
runtimeVersion: z.ZodString;
|
|
499
|
-
platform: z.ZodEnum<
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
}, {
|
|
505
|
-
applicationId: string;
|
|
506
|
-
platform: "android" | "ios";
|
|
507
|
-
runtimeVersion: string;
|
|
508
|
-
}>;
|
|
266
|
+
platform: z.ZodEnum<{
|
|
267
|
+
android: "android";
|
|
268
|
+
ios: "ios";
|
|
269
|
+
}>;
|
|
270
|
+
}, z.core.$strip>;
|
|
509
271
|
export type RollbackToEmbeddedRequest = z.infer<typeof rollbackToEmbeddedRequestSchema>;
|
|
510
272
|
/**
|
|
511
273
|
* `POST /updates/v1/channels/:channel/promote` request. Promotes an existing
|
|
@@ -515,31 +277,13 @@ export type RollbackToEmbeddedRequest = z.infer<typeof rollbackToEmbeddedRequest
|
|
|
515
277
|
export declare const promoteRequestSchema: z.ZodObject<{
|
|
516
278
|
applicationId: z.ZodString;
|
|
517
279
|
updateId: z.ZodString;
|
|
518
|
-
/** Target channel to promote into. Defaults to the path `:channel`. */
|
|
519
280
|
toChannel: z.ZodOptional<z.ZodString>;
|
|
520
|
-
/** Rollout percentage for the promoted update (default 100). */
|
|
521
281
|
rolloutPercent: z.ZodOptional<z.ZodNumber>;
|
|
522
|
-
},
|
|
523
|
-
applicationId: string;
|
|
524
|
-
updateId: string;
|
|
525
|
-
rolloutPercent?: number | undefined;
|
|
526
|
-
toChannel?: string | undefined;
|
|
527
|
-
}, {
|
|
528
|
-
applicationId: string;
|
|
529
|
-
updateId: string;
|
|
530
|
-
rolloutPercent?: number | undefined;
|
|
531
|
-
toChannel?: string | undefined;
|
|
532
|
-
}>;
|
|
282
|
+
}, z.core.$strip>;
|
|
533
283
|
export type PromoteRequest = z.infer<typeof promoteRequestSchema>;
|
|
534
284
|
/** `PATCH /updates/v1/updates/:updateId` request — adjust a rollout in place. */
|
|
535
285
|
export declare const updateRolloutPatchSchema: z.ZodObject<{
|
|
536
286
|
applicationId: z.ZodString;
|
|
537
287
|
rolloutPercent: z.ZodNumber;
|
|
538
|
-
},
|
|
539
|
-
applicationId: string;
|
|
540
|
-
rolloutPercent: number;
|
|
541
|
-
}, {
|
|
542
|
-
applicationId: string;
|
|
543
|
-
rolloutPercent: number;
|
|
544
|
-
}>;
|
|
288
|
+
}, z.core.$strip>;
|
|
545
289
|
export type UpdateRolloutPatch = z.infer<typeof updateRolloutPatchSchema>;
|
|
@@ -76,19 +76,10 @@ export declare function isPublishedOxyUserChangeReason(reason: OxyUserChangeReas
|
|
|
76
76
|
* event says only "re-read this user", which is idempotent and order-independent.
|
|
77
77
|
*/
|
|
78
78
|
export declare const oxyUserInvalidationEventSchema: z.ZodObject<{
|
|
79
|
-
/** The Oxy user whose record changed. */
|
|
80
79
|
userId: z.ZodString;
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
80
|
+
reason: z.ZodEnum<{
|
|
81
|
+
profile: "profile";
|
|
82
|
+
}>;
|
|
84
83
|
at: z.ZodNumber;
|
|
85
|
-
},
|
|
86
|
-
at: number;
|
|
87
|
-
reason: "profile";
|
|
88
|
-
userId: string;
|
|
89
|
-
}, {
|
|
90
|
-
at: number;
|
|
91
|
-
reason: "profile";
|
|
92
|
-
userId: string;
|
|
93
|
-
}>;
|
|
84
|
+
}, z.core.$strip>;
|
|
94
85
|
export type OxyUserInvalidationEvent = z.infer<typeof oxyUserInvalidationEventSchema>;
|