@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.
Files changed (231) hide show
  1. package/dist/cjs/accountAccess.js +6 -5
  2. package/dist/cjs/accountEmail.js +13 -5
  3. package/dist/cjs/accountGraph.js +10 -9
  4. package/dist/cjs/accountName.js +3 -2
  5. package/dist/cjs/agency.js +91 -34
  6. package/dist/cjs/agentKeys.js +21 -17
  7. package/dist/cjs/appAssertions.js +14 -13
  8. package/dist/cjs/applicationRoles.js +19 -12
  9. package/dist/cjs/campaignAttribution.js +28 -0
  10. package/dist/cjs/civic.js +10 -9
  11. package/dist/cjs/client/campaignAttribution.js +14 -0
  12. package/dist/cjs/client/check.js +61 -53
  13. package/dist/cjs/client/index.js +7 -1
  14. package/dist/cjs/client/language.js +7 -0
  15. package/dist/cjs/consoleOnboarding.js +9 -4
  16. package/dist/cjs/contentClaims.js +23 -14
  17. package/dist/cjs/deviceDirectory.js +11 -9
  18. package/dist/cjs/deviceSession.js +27 -25
  19. package/dist/cjs/email/messages.js +20 -18
  20. package/dist/cjs/emailAgentContext.js +11 -9
  21. package/dist/cjs/externalIdentity.js +15 -11
  22. package/dist/cjs/federationInstanceFetch.js +12 -7
  23. package/dist/cjs/identity.js +19 -17
  24. package/dist/cjs/identityLink.js +6 -4
  25. package/dist/cjs/identityProof.js +6 -4
  26. package/dist/cjs/inboxPush.js +5 -4
  27. package/dist/cjs/index.js +17 -6
  28. package/dist/cjs/inference/accountBilling.js +35 -33
  29. package/dist/cjs/inference/aliaModelRelease.js +9 -7
  30. package/dist/cjs/inference/attribution.js +14 -12
  31. package/dist/cjs/inference/catalogue.js +35 -29
  32. package/dist/cjs/inference/economics.js +24 -19
  33. package/dist/cjs/inference/embeddings.js +9 -7
  34. package/dist/cjs/inference/entitlement.js +17 -15
  35. package/dist/cjs/inference/errors.js +15 -8
  36. package/dist/cjs/inference/identifiers.js +33 -21
  37. package/dist/cjs/inference/inbox.js +37 -35
  38. package/dist/cjs/inference/modelDocumentation.js +16 -14
  39. package/dist/cjs/inference/money.js +5 -4
  40. package/dist/cjs/inference/priceVersion.js +10 -5
  41. package/dist/cjs/inference/providerConnection.js +21 -14
  42. package/dist/cjs/inference/realtime.js +88 -47
  43. package/dist/cjs/inference/request.js +27 -25
  44. package/dist/cjs/inference/routingPolicy.js +12 -10
  45. package/dist/cjs/inference/streamEvents.js +22 -16
  46. package/dist/cjs/inference/usage.js +32 -15
  47. package/dist/cjs/keyRecovery.js +8 -6
  48. package/dist/cjs/keyRotation.js +5 -4
  49. package/dist/cjs/linkedAccounts.js +22 -18
  50. package/dist/cjs/moderationReputation.js +29 -27
  51. package/dist/cjs/notifications.js +25 -9
  52. package/dist/cjs/numberChecks.js +45 -0
  53. package/dist/cjs/oauth.js +14 -12
  54. package/dist/cjs/organizations.js +23 -21
  55. package/dist/cjs/products/access.js +10 -8
  56. package/dist/cjs/products/billing.js +10 -8
  57. package/dist/cjs/products/checkout.js +22 -10
  58. package/dist/cjs/products/plans.js +15 -10
  59. package/dist/cjs/protocol.js +6 -5
  60. package/dist/cjs/recommendations.js +27 -19
  61. package/dist/cjs/reputation.js +15 -13
  62. package/dist/cjs/safety.js +43 -27
  63. package/dist/cjs/serviceToken.js +81 -2
  64. package/dist/cjs/sessionRevocation.js +8 -6
  65. package/dist/cjs/signIn.js +50 -24
  66. package/dist/cjs/stickers.js +19 -15
  67. package/dist/cjs/stringChecks.js +70 -0
  68. package/dist/cjs/transparency.js +14 -12
  69. package/dist/cjs/updates.js +24 -22
  70. package/dist/cjs/userInvalidation.js +7 -5
  71. package/dist/cjs/userResponse.js +8 -7
  72. package/dist/cjs/username.js +7 -6
  73. package/dist/esm/accountAccess.js +4 -3
  74. package/dist/esm/accountEmail.js +13 -5
  75. package/dist/esm/accountGraph.js +8 -7
  76. package/dist/esm/accountName.js +3 -2
  77. package/dist/esm/agency.js +90 -33
  78. package/dist/esm/agentKeys.js +21 -17
  79. package/dist/esm/appAssertions.js +11 -10
  80. package/dist/esm/applicationRoles.js +16 -9
  81. package/dist/esm/campaignAttribution.js +25 -0
  82. package/dist/esm/civic.js +8 -7
  83. package/dist/esm/client/campaignAttribution.js +10 -0
  84. package/dist/esm/client/check.js +61 -53
  85. package/dist/esm/client/index.js +2 -0
  86. package/dist/esm/client/language.js +4 -0
  87. package/dist/esm/consoleOnboarding.js +7 -2
  88. package/dist/esm/contentClaims.js +23 -14
  89. package/dist/esm/deviceDirectory.js +11 -9
  90. package/dist/esm/deviceSession.js +27 -25
  91. package/dist/esm/email/messages.js +18 -16
  92. package/dist/esm/emailAgentContext.js +11 -9
  93. package/dist/esm/externalIdentity.js +15 -11
  94. package/dist/esm/federationInstanceFetch.js +10 -5
  95. package/dist/esm/identity.js +17 -15
  96. package/dist/esm/identityLink.js +6 -4
  97. package/dist/esm/identityProof.js +6 -4
  98. package/dist/esm/inboxPush.js +3 -2
  99. package/dist/esm/index.js +5 -2
  100. package/dist/esm/inference/accountBilling.js +33 -31
  101. package/dist/esm/inference/aliaModelRelease.js +7 -5
  102. package/dist/esm/inference/attribution.js +14 -12
  103. package/dist/esm/inference/catalogue.js +33 -27
  104. package/dist/esm/inference/economics.js +22 -17
  105. package/dist/esm/inference/embeddings.js +9 -7
  106. package/dist/esm/inference/entitlement.js +15 -13
  107. package/dist/esm/inference/errors.js +13 -6
  108. package/dist/esm/inference/identifiers.js +31 -19
  109. package/dist/esm/inference/inbox.js +37 -35
  110. package/dist/esm/inference/modelDocumentation.js +14 -12
  111. package/dist/esm/inference/money.js +3 -2
  112. package/dist/esm/inference/priceVersion.js +8 -3
  113. package/dist/esm/inference/providerConnection.js +19 -12
  114. package/dist/esm/inference/realtime.js +85 -44
  115. package/dist/esm/inference/request.js +25 -23
  116. package/dist/esm/inference/routingPolicy.js +9 -7
  117. package/dist/esm/inference/streamEvents.js +20 -14
  118. package/dist/esm/inference/usage.js +30 -13
  119. package/dist/esm/keyRecovery.js +8 -6
  120. package/dist/esm/keyRotation.js +5 -4
  121. package/dist/esm/linkedAccounts.js +20 -16
  122. package/dist/esm/moderationReputation.js +27 -25
  123. package/dist/esm/notifications.js +23 -7
  124. package/dist/esm/numberChecks.js +41 -0
  125. package/dist/esm/oauth.js +14 -12
  126. package/dist/esm/organizations.js +23 -21
  127. package/dist/esm/products/access.js +10 -8
  128. package/dist/esm/products/billing.js +10 -8
  129. package/dist/esm/products/checkout.js +22 -10
  130. package/dist/esm/products/plans.js +15 -10
  131. package/dist/esm/protocol.js +4 -3
  132. package/dist/esm/recommendations.js +25 -17
  133. package/dist/esm/reputation.js +13 -11
  134. package/dist/esm/safety.js +43 -27
  135. package/dist/esm/serviceToken.js +80 -1
  136. package/dist/esm/sessionRevocation.js +6 -4
  137. package/dist/esm/signIn.js +50 -24
  138. package/dist/esm/stickers.js +17 -13
  139. package/dist/esm/stringChecks.js +63 -0
  140. package/dist/esm/transparency.js +14 -12
  141. package/dist/esm/updates.js +22 -20
  142. package/dist/esm/userInvalidation.js +4 -2
  143. package/dist/esm/userResponse.js +4 -3
  144. package/dist/esm/username.js +3 -2
  145. package/dist/types/accountAccess.d.ts +29 -70
  146. package/dist/types/accountEmail.d.ts +2 -14
  147. package/dist/types/accountGraph.d.ts +179 -171
  148. package/dist/types/accountName.d.ts +1 -1
  149. package/dist/types/accountSubject.d.ts +20 -93
  150. package/dist/types/agency.d.ts +528 -2924
  151. package/dist/types/agentKeys.d.ts +48 -421
  152. package/dist/types/appAssertions.d.ts +56 -210
  153. package/dist/types/applicationRoles.d.ts +30 -276
  154. package/dist/types/avatarCharacter.d.ts +1 -1
  155. package/dist/types/campaignAttribution.d.ts +10 -0
  156. package/dist/types/civic.d.ts +1 -13
  157. package/dist/types/client/agentKeys.d.ts +18 -18
  158. package/dist/types/client/appAssertions.d.ts +3 -3
  159. package/dist/types/client/campaignAttribution.d.ts +12 -0
  160. package/dist/types/client/check.d.ts +13 -13
  161. package/dist/types/client/deviceDirectory.d.ts +51 -51
  162. package/dist/types/client/deviceSession.d.ts +14 -14
  163. package/dist/types/client/index.d.ts +3 -0
  164. package/dist/types/client/language.d.ts +2 -0
  165. package/dist/types/client/organizations.d.ts +25 -25
  166. package/dist/types/client/products.d.ts +33 -33
  167. package/dist/types/client/recommendations.d.ts +2 -2
  168. package/dist/types/client/safety.d.ts +45 -45
  169. package/dist/types/client/sessionStatus.d.ts +4 -4
  170. package/dist/types/client/signIn.d.ts +1 -1
  171. package/dist/types/commonsSignIn.d.ts +4 -1
  172. package/dist/types/consoleOnboarding.d.ts +24 -44
  173. package/dist/types/contentClaims.d.ts +24 -180
  174. package/dist/types/deviceDirectory.d.ts +109 -1040
  175. package/dist/types/deviceSession.d.ts +36 -298
  176. package/dist/types/email/messages.d.ts +212 -1793
  177. package/dist/types/emailAgentContext.d.ts +10 -194
  178. package/dist/types/externalIdentity.d.ts +121 -615
  179. package/dist/types/federationInstanceFetch.d.ts +3 -32
  180. package/dist/types/identity.d.ts +15 -92
  181. package/dist/types/identityLink.d.ts +6 -84
  182. package/dist/types/identityProof.d.ts +5 -17
  183. package/dist/types/inboxPush.d.ts +1 -9
  184. package/dist/types/index.d.ts +7 -3
  185. package/dist/types/inference/accountBilling.d.ts +151 -488
  186. package/dist/types/inference/aliaModelRelease.d.ts +42 -439
  187. package/dist/types/inference/attribution.d.ts +75 -104
  188. package/dist/types/inference/catalogue.d.ts +417 -1599
  189. package/dist/types/inference/economics.d.ts +69 -276
  190. package/dist/types/inference/embeddings.d.ts +110 -406
  191. package/dist/types/inference/entitlement.d.ts +80 -335
  192. package/dist/types/inference/errors.d.ts +90 -102
  193. package/dist/types/inference/identifiers.d.ts +12 -4
  194. package/dist/types/inference/inbox.d.ts +105 -420
  195. package/dist/types/inference/modelDocumentation.d.ts +201 -1390
  196. package/dist/types/inference/money.d.ts +65 -32
  197. package/dist/types/inference/priceVersion.d.ts +53 -120
  198. package/dist/types/inference/providerConnection.d.ts +253 -710
  199. package/dist/types/inference/realtime.d.ts +954 -6825
  200. package/dist/types/inference/request.d.ts +300 -2572
  201. package/dist/types/inference/routingPolicy.d.ts +95 -503
  202. package/dist/types/inference/streamEvents.d.ts +253 -721
  203. package/dist/types/inference/usage.d.ts +317 -950
  204. package/dist/types/keyRecovery.d.ts +3 -51
  205. package/dist/types/keyRotation.d.ts +3 -38
  206. package/dist/types/linkedAccounts.d.ts +50 -236
  207. package/dist/types/moderationReputation.d.ts +81 -14
  208. package/dist/types/notifications.d.ts +19 -51
  209. package/dist/types/numberChecks.d.ts +9 -0
  210. package/dist/types/oauth.d.ts +101 -809
  211. package/dist/types/organizations.d.ts +268 -921
  212. package/dist/types/oxyRecordTypes.d.ts +11 -1
  213. package/dist/types/products/access.d.ts +125 -775
  214. package/dist/types/products/billing.d.ts +67 -503
  215. package/dist/types/products/checkout.d.ts +16 -69
  216. package/dist/types/products/plans.d.ts +33 -366
  217. package/dist/types/recommendations.d.ts +76 -389
  218. package/dist/types/reputation.d.ts +37 -5
  219. package/dist/types/safety.d.ts +408 -2048
  220. package/dist/types/serviceToken.d.ts +247 -7
  221. package/dist/types/sessionRevocation.d.ts +2 -17
  222. package/dist/types/sessionStatus.d.ts +27 -115
  223. package/dist/types/signIn.d.ts +62 -553
  224. package/dist/types/stickers.d.ts +67 -819
  225. package/dist/types/stringChecks.d.ts +16 -0
  226. package/dist/types/transparency.d.ts +14 -302
  227. package/dist/types/updates.d.ts +60 -316
  228. package/dist/types/userInvalidation.d.ts +4 -13
  229. package/dist/types/userResponse.d.ts +302 -2400
  230. package/dist/types/username.d.ts +3 -3
  231. package/package.json +6 -4
@@ -51,7 +51,11 @@ export declare const stickerSha256Schema: z.ZodString;
51
51
  /** A pack's public URL segment. */
52
52
  export declare const stickerPackSlugSchema: z.ZodString;
53
53
  export declare const stickerIdSchema: z.ZodString;
54
- export declare const stickerPackStatusSchema: z.ZodEnum<["draft", "published", "archived"]>;
54
+ export declare const stickerPackStatusSchema: z.ZodEnum<{
55
+ draft: "draft";
56
+ published: "published";
57
+ archived: "archived";
58
+ }>;
55
59
  export type StickerPackStatus = z.infer<typeof stickerPackStatusSchema>;
56
60
  /** One stored file: where to fetch it and the hash its bytes must have. */
57
61
  export declare const stickerFileSchema: z.ZodObject<{
@@ -59,98 +63,28 @@ export declare const stickerFileSchema: z.ZodObject<{
59
63
  sha256: z.ZodString;
60
64
  mime: z.ZodString;
61
65
  bytes: z.ZodNumber;
62
- }, "strip", z.ZodTypeAny, {
63
- url: string;
64
- sha256: string;
65
- mime: string;
66
- bytes: number;
67
- }, {
68
- url: string;
69
- sha256: string;
70
- mime: string;
71
- bytes: number;
72
- }>;
66
+ }, z.core.$strip>;
73
67
  export type StickerFile = z.infer<typeof stickerFileSchema>;
74
68
  export declare const stickerSchema: z.ZodObject<{
75
69
  id: z.ZodString;
76
70
  packId: z.ZodString;
77
- emoji: z.ZodArray<z.ZodString, "many">;
78
- keywords: z.ZodArray<z.ZodString, "many">;
71
+ emoji: z.ZodArray<z.ZodString>;
72
+ keywords: z.ZodArray<z.ZodString>;
79
73
  size: z.ZodNumber;
80
74
  durationMs: z.ZodNumber;
81
- /** The Lottie JSON. */
82
75
  animation: z.ZodObject<{
83
76
  url: z.ZodString;
84
77
  sha256: z.ZodString;
85
78
  mime: z.ZodString;
86
79
  bytes: z.ZodNumber;
87
- }, "strip", z.ZodTypeAny, {
88
- url: string;
89
- sha256: string;
90
- mime: string;
91
- bytes: number;
92
- }, {
93
- url: string;
94
- sha256: string;
95
- mime: string;
96
- bytes: number;
97
- }>;
98
- /** A static image of the same sticker. */
80
+ }, z.core.$strip>;
99
81
  fallback: z.ZodObject<{
100
82
  url: z.ZodString;
101
83
  sha256: z.ZodString;
102
84
  mime: z.ZodString;
103
85
  bytes: z.ZodNumber;
104
- }, "strip", z.ZodTypeAny, {
105
- url: string;
106
- sha256: string;
107
- mime: string;
108
- bytes: number;
109
- }, {
110
- url: string;
111
- sha256: string;
112
- mime: string;
113
- bytes: number;
114
- }>;
115
- }, "strip", z.ZodTypeAny, {
116
- id: string;
117
- emoji: string[];
118
- size: number;
119
- fallback: {
120
- url: string;
121
- sha256: string;
122
- mime: string;
123
- bytes: number;
124
- };
125
- packId: string;
126
- keywords: string[];
127
- durationMs: number;
128
- animation: {
129
- url: string;
130
- sha256: string;
131
- mime: string;
132
- bytes: number;
133
- };
134
- }, {
135
- id: string;
136
- emoji: string[];
137
- size: number;
138
- fallback: {
139
- url: string;
140
- sha256: string;
141
- mime: string;
142
- bytes: number;
143
- };
144
- packId: string;
145
- keywords: string[];
146
- durationMs: number;
147
- animation: {
148
- url: string;
149
- sha256: string;
150
- mime: string;
151
- bytes: number;
152
- };
153
- }>;
86
+ }, z.core.$strip>;
87
+ }, z.core.$strip>;
154
88
  export type Sticker = z.infer<typeof stickerSchema>;
155
89
  /** What a shop card needs. */
156
90
  export declare const stickerPackSummarySchema: z.ZodObject<{
@@ -159,149 +93,34 @@ export declare const stickerPackSummarySchema: z.ZodObject<{
159
93
  title: z.ZodString;
160
94
  description: z.ZodNullable<z.ZodString>;
161
95
  author: z.ZodNullable<z.ZodString>;
162
- status: z.ZodEnum<["draft", "published", "archived"]>;
96
+ status: z.ZodEnum<{
97
+ draft: "draft";
98
+ published: "published";
99
+ archived: "archived";
100
+ }>;
163
101
  publishedAt: z.ZodNullable<z.ZodString>;
164
102
  stickerCount: z.ZodNumber;
165
- /** The first sticker, drawn as the pack's cover. Null for an empty draft. */
166
103
  cover: z.ZodNullable<z.ZodObject<{
167
104
  id: z.ZodString;
168
105
  packId: z.ZodString;
169
- emoji: z.ZodArray<z.ZodString, "many">;
170
- keywords: z.ZodArray<z.ZodString, "many">;
106
+ emoji: z.ZodArray<z.ZodString>;
107
+ keywords: z.ZodArray<z.ZodString>;
171
108
  size: z.ZodNumber;
172
109
  durationMs: z.ZodNumber;
173
- /** The Lottie JSON. */
174
110
  animation: z.ZodObject<{
175
111
  url: z.ZodString;
176
112
  sha256: z.ZodString;
177
113
  mime: z.ZodString;
178
114
  bytes: z.ZodNumber;
179
- }, "strip", z.ZodTypeAny, {
180
- url: string;
181
- sha256: string;
182
- mime: string;
183
- bytes: number;
184
- }, {
185
- url: string;
186
- sha256: string;
187
- mime: string;
188
- bytes: number;
189
- }>;
190
- /** A static image of the same sticker. */
115
+ }, z.core.$strip>;
191
116
  fallback: z.ZodObject<{
192
117
  url: z.ZodString;
193
118
  sha256: z.ZodString;
194
119
  mime: z.ZodString;
195
120
  bytes: z.ZodNumber;
196
- }, "strip", z.ZodTypeAny, {
197
- url: string;
198
- sha256: string;
199
- mime: string;
200
- bytes: number;
201
- }, {
202
- url: string;
203
- sha256: string;
204
- mime: string;
205
- bytes: number;
206
- }>;
207
- }, "strip", z.ZodTypeAny, {
208
- id: string;
209
- emoji: string[];
210
- size: number;
211
- fallback: {
212
- url: string;
213
- sha256: string;
214
- mime: string;
215
- bytes: number;
216
- };
217
- packId: string;
218
- keywords: string[];
219
- durationMs: number;
220
- animation: {
221
- url: string;
222
- sha256: string;
223
- mime: string;
224
- bytes: number;
225
- };
226
- }, {
227
- id: string;
228
- emoji: string[];
229
- size: number;
230
- fallback: {
231
- url: string;
232
- sha256: string;
233
- mime: string;
234
- bytes: number;
235
- };
236
- packId: string;
237
- keywords: string[];
238
- durationMs: number;
239
- animation: {
240
- url: string;
241
- sha256: string;
242
- mime: string;
243
- bytes: number;
244
- };
245
- }>>;
246
- }, "strip", z.ZodTypeAny, {
247
- status: "draft" | "published" | "archived";
248
- title: string;
249
- id: string;
250
- description: string | null;
251
- author: string | null;
252
- slug: string;
253
- publishedAt: string | null;
254
- stickerCount: number;
255
- cover: {
256
- id: string;
257
- emoji: string[];
258
- size: number;
259
- fallback: {
260
- url: string;
261
- sha256: string;
262
- mime: string;
263
- bytes: number;
264
- };
265
- packId: string;
266
- keywords: string[];
267
- durationMs: number;
268
- animation: {
269
- url: string;
270
- sha256: string;
271
- mime: string;
272
- bytes: number;
273
- };
274
- } | null;
275
- }, {
276
- status: "draft" | "published" | "archived";
277
- title: string;
278
- id: string;
279
- description: string | null;
280
- author: string | null;
281
- slug: string;
282
- publishedAt: string | null;
283
- stickerCount: number;
284
- cover: {
285
- id: string;
286
- emoji: string[];
287
- size: number;
288
- fallback: {
289
- url: string;
290
- sha256: string;
291
- mime: string;
292
- bytes: number;
293
- };
294
- packId: string;
295
- keywords: string[];
296
- durationMs: number;
297
- animation: {
298
- url: string;
299
- sha256: string;
300
- mime: string;
301
- bytes: number;
302
- };
303
- } | null;
304
- }>;
121
+ }, z.core.$strip>;
122
+ }, z.core.$strip>>;
123
+ }, z.core.$strip>;
305
124
  export type StickerPackSummary = z.infer<typeof stickerPackSummarySchema>;
306
125
  export declare const stickerPackSchema: z.ZodObject<{
307
126
  id: z.ZodString;
@@ -309,270 +128,54 @@ export declare const stickerPackSchema: z.ZodObject<{
309
128
  title: z.ZodString;
310
129
  description: z.ZodNullable<z.ZodString>;
311
130
  author: z.ZodNullable<z.ZodString>;
312
- status: z.ZodEnum<["draft", "published", "archived"]>;
131
+ status: z.ZodEnum<{
132
+ draft: "draft";
133
+ published: "published";
134
+ archived: "archived";
135
+ }>;
313
136
  publishedAt: z.ZodNullable<z.ZodString>;
314
137
  stickerCount: z.ZodNumber;
315
- /** The first sticker, drawn as the pack's cover. Null for an empty draft. */
316
138
  cover: z.ZodNullable<z.ZodObject<{
317
139
  id: z.ZodString;
318
140
  packId: z.ZodString;
319
- emoji: z.ZodArray<z.ZodString, "many">;
320
- keywords: z.ZodArray<z.ZodString, "many">;
141
+ emoji: z.ZodArray<z.ZodString>;
142
+ keywords: z.ZodArray<z.ZodString>;
321
143
  size: z.ZodNumber;
322
144
  durationMs: z.ZodNumber;
323
- /** The Lottie JSON. */
324
145
  animation: z.ZodObject<{
325
146
  url: z.ZodString;
326
147
  sha256: z.ZodString;
327
148
  mime: z.ZodString;
328
149
  bytes: z.ZodNumber;
329
- }, "strip", z.ZodTypeAny, {
330
- url: string;
331
- sha256: string;
332
- mime: string;
333
- bytes: number;
334
- }, {
335
- url: string;
336
- sha256: string;
337
- mime: string;
338
- bytes: number;
339
- }>;
340
- /** A static image of the same sticker. */
150
+ }, z.core.$strip>;
341
151
  fallback: z.ZodObject<{
342
152
  url: z.ZodString;
343
153
  sha256: z.ZodString;
344
154
  mime: z.ZodString;
345
155
  bytes: z.ZodNumber;
346
- }, "strip", z.ZodTypeAny, {
347
- url: string;
348
- sha256: string;
349
- mime: string;
350
- bytes: number;
351
- }, {
352
- url: string;
353
- sha256: string;
354
- mime: string;
355
- bytes: number;
356
- }>;
357
- }, "strip", z.ZodTypeAny, {
358
- id: string;
359
- emoji: string[];
360
- size: number;
361
- fallback: {
362
- url: string;
363
- sha256: string;
364
- mime: string;
365
- bytes: number;
366
- };
367
- packId: string;
368
- keywords: string[];
369
- durationMs: number;
370
- animation: {
371
- url: string;
372
- sha256: string;
373
- mime: string;
374
- bytes: number;
375
- };
376
- }, {
377
- id: string;
378
- emoji: string[];
379
- size: number;
380
- fallback: {
381
- url: string;
382
- sha256: string;
383
- mime: string;
384
- bytes: number;
385
- };
386
- packId: string;
387
- keywords: string[];
388
- durationMs: number;
389
- animation: {
390
- url: string;
391
- sha256: string;
392
- mime: string;
393
- bytes: number;
394
- };
395
- }>>;
396
- } & {
156
+ }, z.core.$strip>;
157
+ }, z.core.$strip>>;
397
158
  stickers: z.ZodArray<z.ZodObject<{
398
159
  id: z.ZodString;
399
160
  packId: z.ZodString;
400
- emoji: z.ZodArray<z.ZodString, "many">;
401
- keywords: z.ZodArray<z.ZodString, "many">;
161
+ emoji: z.ZodArray<z.ZodString>;
162
+ keywords: z.ZodArray<z.ZodString>;
402
163
  size: z.ZodNumber;
403
164
  durationMs: z.ZodNumber;
404
- /** The Lottie JSON. */
405
165
  animation: z.ZodObject<{
406
166
  url: z.ZodString;
407
167
  sha256: z.ZodString;
408
168
  mime: z.ZodString;
409
169
  bytes: z.ZodNumber;
410
- }, "strip", z.ZodTypeAny, {
411
- url: string;
412
- sha256: string;
413
- mime: string;
414
- bytes: number;
415
- }, {
416
- url: string;
417
- sha256: string;
418
- mime: string;
419
- bytes: number;
420
- }>;
421
- /** A static image of the same sticker. */
170
+ }, z.core.$strip>;
422
171
  fallback: z.ZodObject<{
423
172
  url: z.ZodString;
424
173
  sha256: z.ZodString;
425
174
  mime: z.ZodString;
426
175
  bytes: z.ZodNumber;
427
- }, "strip", z.ZodTypeAny, {
428
- url: string;
429
- sha256: string;
430
- mime: string;
431
- bytes: number;
432
- }, {
433
- url: string;
434
- sha256: string;
435
- mime: string;
436
- bytes: number;
437
- }>;
438
- }, "strip", z.ZodTypeAny, {
439
- id: string;
440
- emoji: string[];
441
- size: number;
442
- fallback: {
443
- url: string;
444
- sha256: string;
445
- mime: string;
446
- bytes: number;
447
- };
448
- packId: string;
449
- keywords: string[];
450
- durationMs: number;
451
- animation: {
452
- url: string;
453
- sha256: string;
454
- mime: string;
455
- bytes: number;
456
- };
457
- }, {
458
- id: string;
459
- emoji: string[];
460
- size: number;
461
- fallback: {
462
- url: string;
463
- sha256: string;
464
- mime: string;
465
- bytes: number;
466
- };
467
- packId: string;
468
- keywords: string[];
469
- durationMs: number;
470
- animation: {
471
- url: string;
472
- sha256: string;
473
- mime: string;
474
- bytes: number;
475
- };
476
- }>, "many">;
477
- }, "strip", z.ZodTypeAny, {
478
- status: "draft" | "published" | "archived";
479
- title: string;
480
- id: string;
481
- description: string | null;
482
- author: string | null;
483
- slug: string;
484
- publishedAt: string | null;
485
- stickerCount: number;
486
- cover: {
487
- id: string;
488
- emoji: string[];
489
- size: number;
490
- fallback: {
491
- url: string;
492
- sha256: string;
493
- mime: string;
494
- bytes: number;
495
- };
496
- packId: string;
497
- keywords: string[];
498
- durationMs: number;
499
- animation: {
500
- url: string;
501
- sha256: string;
502
- mime: string;
503
- bytes: number;
504
- };
505
- } | null;
506
- stickers: {
507
- id: string;
508
- emoji: string[];
509
- size: number;
510
- fallback: {
511
- url: string;
512
- sha256: string;
513
- mime: string;
514
- bytes: number;
515
- };
516
- packId: string;
517
- keywords: string[];
518
- durationMs: number;
519
- animation: {
520
- url: string;
521
- sha256: string;
522
- mime: string;
523
- bytes: number;
524
- };
525
- }[];
526
- }, {
527
- status: "draft" | "published" | "archived";
528
- title: string;
529
- id: string;
530
- description: string | null;
531
- author: string | null;
532
- slug: string;
533
- publishedAt: string | null;
534
- stickerCount: number;
535
- cover: {
536
- id: string;
537
- emoji: string[];
538
- size: number;
539
- fallback: {
540
- url: string;
541
- sha256: string;
542
- mime: string;
543
- bytes: number;
544
- };
545
- packId: string;
546
- keywords: string[];
547
- durationMs: number;
548
- animation: {
549
- url: string;
550
- sha256: string;
551
- mime: string;
552
- bytes: number;
553
- };
554
- } | null;
555
- stickers: {
556
- id: string;
557
- emoji: string[];
558
- size: number;
559
- fallback: {
560
- url: string;
561
- sha256: string;
562
- mime: string;
563
- bytes: number;
564
- };
565
- packId: string;
566
- keywords: string[];
567
- durationMs: number;
568
- animation: {
569
- url: string;
570
- sha256: string;
571
- mime: string;
572
- bytes: number;
573
- };
574
- }[];
575
- }>;
176
+ }, z.core.$strip>;
177
+ }, z.core.$strip>>;
178
+ }, z.core.$strip>;
576
179
  export type StickerPack = z.infer<typeof stickerPackSchema>;
577
180
  /** A pack in someone's picker. */
578
181
  export declare const installedStickerPackSchema: z.ZodObject<{
@@ -581,274 +184,55 @@ export declare const installedStickerPackSchema: z.ZodObject<{
581
184
  title: z.ZodString;
582
185
  description: z.ZodNullable<z.ZodString>;
583
186
  author: z.ZodNullable<z.ZodString>;
584
- status: z.ZodEnum<["draft", "published", "archived"]>;
187
+ status: z.ZodEnum<{
188
+ draft: "draft";
189
+ published: "published";
190
+ archived: "archived";
191
+ }>;
585
192
  publishedAt: z.ZodNullable<z.ZodString>;
586
193
  stickerCount: z.ZodNumber;
587
- /** The first sticker, drawn as the pack's cover. Null for an empty draft. */
588
194
  cover: z.ZodNullable<z.ZodObject<{
589
195
  id: z.ZodString;
590
196
  packId: z.ZodString;
591
- emoji: z.ZodArray<z.ZodString, "many">;
592
- keywords: z.ZodArray<z.ZodString, "many">;
197
+ emoji: z.ZodArray<z.ZodString>;
198
+ keywords: z.ZodArray<z.ZodString>;
593
199
  size: z.ZodNumber;
594
200
  durationMs: z.ZodNumber;
595
- /** The Lottie JSON. */
596
201
  animation: z.ZodObject<{
597
202
  url: z.ZodString;
598
203
  sha256: z.ZodString;
599
204
  mime: z.ZodString;
600
205
  bytes: z.ZodNumber;
601
- }, "strip", z.ZodTypeAny, {
602
- url: string;
603
- sha256: string;
604
- mime: string;
605
- bytes: number;
606
- }, {
607
- url: string;
608
- sha256: string;
609
- mime: string;
610
- bytes: number;
611
- }>;
612
- /** A static image of the same sticker. */
206
+ }, z.core.$strip>;
613
207
  fallback: z.ZodObject<{
614
208
  url: z.ZodString;
615
209
  sha256: z.ZodString;
616
210
  mime: z.ZodString;
617
211
  bytes: z.ZodNumber;
618
- }, "strip", z.ZodTypeAny, {
619
- url: string;
620
- sha256: string;
621
- mime: string;
622
- bytes: number;
623
- }, {
624
- url: string;
625
- sha256: string;
626
- mime: string;
627
- bytes: number;
628
- }>;
629
- }, "strip", z.ZodTypeAny, {
630
- id: string;
631
- emoji: string[];
632
- size: number;
633
- fallback: {
634
- url: string;
635
- sha256: string;
636
- mime: string;
637
- bytes: number;
638
- };
639
- packId: string;
640
- keywords: string[];
641
- durationMs: number;
642
- animation: {
643
- url: string;
644
- sha256: string;
645
- mime: string;
646
- bytes: number;
647
- };
648
- }, {
649
- id: string;
650
- emoji: string[];
651
- size: number;
652
- fallback: {
653
- url: string;
654
- sha256: string;
655
- mime: string;
656
- bytes: number;
657
- };
658
- packId: string;
659
- keywords: string[];
660
- durationMs: number;
661
- animation: {
662
- url: string;
663
- sha256: string;
664
- mime: string;
665
- bytes: number;
666
- };
667
- }>>;
668
- } & {
212
+ }, z.core.$strip>;
213
+ }, z.core.$strip>>;
669
214
  stickers: z.ZodArray<z.ZodObject<{
670
215
  id: z.ZodString;
671
216
  packId: z.ZodString;
672
- emoji: z.ZodArray<z.ZodString, "many">;
673
- keywords: z.ZodArray<z.ZodString, "many">;
217
+ emoji: z.ZodArray<z.ZodString>;
218
+ keywords: z.ZodArray<z.ZodString>;
674
219
  size: z.ZodNumber;
675
220
  durationMs: z.ZodNumber;
676
- /** The Lottie JSON. */
677
221
  animation: z.ZodObject<{
678
222
  url: z.ZodString;
679
223
  sha256: z.ZodString;
680
224
  mime: z.ZodString;
681
225
  bytes: z.ZodNumber;
682
- }, "strip", z.ZodTypeAny, {
683
- url: string;
684
- sha256: string;
685
- mime: string;
686
- bytes: number;
687
- }, {
688
- url: string;
689
- sha256: string;
690
- mime: string;
691
- bytes: number;
692
- }>;
693
- /** A static image of the same sticker. */
226
+ }, z.core.$strip>;
694
227
  fallback: z.ZodObject<{
695
228
  url: z.ZodString;
696
229
  sha256: z.ZodString;
697
230
  mime: z.ZodString;
698
231
  bytes: z.ZodNumber;
699
- }, "strip", z.ZodTypeAny, {
700
- url: string;
701
- sha256: string;
702
- mime: string;
703
- bytes: number;
704
- }, {
705
- url: string;
706
- sha256: string;
707
- mime: string;
708
- bytes: number;
709
- }>;
710
- }, "strip", z.ZodTypeAny, {
711
- id: string;
712
- emoji: string[];
713
- size: number;
714
- fallback: {
715
- url: string;
716
- sha256: string;
717
- mime: string;
718
- bytes: number;
719
- };
720
- packId: string;
721
- keywords: string[];
722
- durationMs: number;
723
- animation: {
724
- url: string;
725
- sha256: string;
726
- mime: string;
727
- bytes: number;
728
- };
729
- }, {
730
- id: string;
731
- emoji: string[];
732
- size: number;
733
- fallback: {
734
- url: string;
735
- sha256: string;
736
- mime: string;
737
- bytes: number;
738
- };
739
- packId: string;
740
- keywords: string[];
741
- durationMs: number;
742
- animation: {
743
- url: string;
744
- sha256: string;
745
- mime: string;
746
- bytes: number;
747
- };
748
- }>, "many">;
749
- } & {
232
+ }, z.core.$strip>;
233
+ }, z.core.$strip>>;
750
234
  installedAt: z.ZodString;
751
- }, "strip", z.ZodTypeAny, {
752
- status: "draft" | "published" | "archived";
753
- title: string;
754
- id: string;
755
- description: string | null;
756
- author: string | null;
757
- slug: string;
758
- publishedAt: string | null;
759
- stickerCount: number;
760
- cover: {
761
- id: string;
762
- emoji: string[];
763
- size: number;
764
- fallback: {
765
- url: string;
766
- sha256: string;
767
- mime: string;
768
- bytes: number;
769
- };
770
- packId: string;
771
- keywords: string[];
772
- durationMs: number;
773
- animation: {
774
- url: string;
775
- sha256: string;
776
- mime: string;
777
- bytes: number;
778
- };
779
- } | null;
780
- stickers: {
781
- id: string;
782
- emoji: string[];
783
- size: number;
784
- fallback: {
785
- url: string;
786
- sha256: string;
787
- mime: string;
788
- bytes: number;
789
- };
790
- packId: string;
791
- keywords: string[];
792
- durationMs: number;
793
- animation: {
794
- url: string;
795
- sha256: string;
796
- mime: string;
797
- bytes: number;
798
- };
799
- }[];
800
- installedAt: string;
801
- }, {
802
- status: "draft" | "published" | "archived";
803
- title: string;
804
- id: string;
805
- description: string | null;
806
- author: string | null;
807
- slug: string;
808
- publishedAt: string | null;
809
- stickerCount: number;
810
- cover: {
811
- id: string;
812
- emoji: string[];
813
- size: number;
814
- fallback: {
815
- url: string;
816
- sha256: string;
817
- mime: string;
818
- bytes: number;
819
- };
820
- packId: string;
821
- keywords: string[];
822
- durationMs: number;
823
- animation: {
824
- url: string;
825
- sha256: string;
826
- mime: string;
827
- bytes: number;
828
- };
829
- } | null;
830
- stickers: {
831
- id: string;
832
- emoji: string[];
833
- size: number;
834
- fallback: {
835
- url: string;
836
- sha256: string;
837
- mime: string;
838
- bytes: number;
839
- };
840
- packId: string;
841
- keywords: string[];
842
- durationMs: number;
843
- animation: {
844
- url: string;
845
- sha256: string;
846
- mime: string;
847
- bytes: number;
848
- };
849
- }[];
850
- installedAt: string;
851
- }>;
235
+ }, z.core.$strip>;
852
236
  export type InstalledStickerPack = z.infer<typeof installedStickerPackSchema>;
853
237
  /**
854
238
  * How an app stores or sends a sticker: its id, the pack it came from, and the
@@ -860,159 +244,41 @@ export declare const stickerRefSchema: z.ZodObject<{
860
244
  stickerId: z.ZodString;
861
245
  packId: z.ZodString;
862
246
  sha256: z.ZodString;
863
- }, "strip", z.ZodTypeAny, {
864
- sha256: string;
865
- packId: string;
866
- stickerId: string;
867
- }, {
868
- sha256: string;
869
- packId: string;
870
- stickerId: string;
871
- }>;
247
+ }, z.core.$strip>;
872
248
  export type StickerRef = z.infer<typeof stickerRefSchema>;
873
249
  /** POST /stickers/resolve */
874
250
  export declare const resolveStickersRequestSchema: z.ZodObject<{
875
- ids: z.ZodArray<z.ZodString, "many">;
876
- }, "strip", z.ZodTypeAny, {
877
- ids: string[];
878
- }, {
879
- ids: string[];
880
- }>;
251
+ ids: z.ZodArray<z.ZodString>;
252
+ }, z.core.$strip>;
881
253
  export type ResolveStickersRequest = z.infer<typeof resolveStickersRequestSchema>;
882
254
  /** Unknown ids are absent, not errors: a caller checks what came back. */
883
255
  export declare const resolveStickersResponseSchema: z.ZodObject<{
884
256
  stickers: z.ZodArray<z.ZodObject<{
885
257
  id: z.ZodString;
886
258
  packId: z.ZodString;
887
- emoji: z.ZodArray<z.ZodString, "many">;
888
- keywords: z.ZodArray<z.ZodString, "many">;
259
+ emoji: z.ZodArray<z.ZodString>;
260
+ keywords: z.ZodArray<z.ZodString>;
889
261
  size: z.ZodNumber;
890
262
  durationMs: z.ZodNumber;
891
- /** The Lottie JSON. */
892
263
  animation: z.ZodObject<{
893
264
  url: z.ZodString;
894
265
  sha256: z.ZodString;
895
266
  mime: z.ZodString;
896
267
  bytes: z.ZodNumber;
897
- }, "strip", z.ZodTypeAny, {
898
- url: string;
899
- sha256: string;
900
- mime: string;
901
- bytes: number;
902
- }, {
903
- url: string;
904
- sha256: string;
905
- mime: string;
906
- bytes: number;
907
- }>;
908
- /** A static image of the same sticker. */
268
+ }, z.core.$strip>;
909
269
  fallback: z.ZodObject<{
910
270
  url: z.ZodString;
911
271
  sha256: z.ZodString;
912
272
  mime: z.ZodString;
913
273
  bytes: z.ZodNumber;
914
- }, "strip", z.ZodTypeAny, {
915
- url: string;
916
- sha256: string;
917
- mime: string;
918
- bytes: number;
919
- }, {
920
- url: string;
921
- sha256: string;
922
- mime: string;
923
- bytes: number;
924
- }>;
925
- }, "strip", z.ZodTypeAny, {
926
- id: string;
927
- emoji: string[];
928
- size: number;
929
- fallback: {
930
- url: string;
931
- sha256: string;
932
- mime: string;
933
- bytes: number;
934
- };
935
- packId: string;
936
- keywords: string[];
937
- durationMs: number;
938
- animation: {
939
- url: string;
940
- sha256: string;
941
- mime: string;
942
- bytes: number;
943
- };
944
- }, {
945
- id: string;
946
- emoji: string[];
947
- size: number;
948
- fallback: {
949
- url: string;
950
- sha256: string;
951
- mime: string;
952
- bytes: number;
953
- };
954
- packId: string;
955
- keywords: string[];
956
- durationMs: number;
957
- animation: {
958
- url: string;
959
- sha256: string;
960
- mime: string;
961
- bytes: number;
962
- };
963
- }>, "many">;
964
- }, "strip", z.ZodTypeAny, {
965
- stickers: {
966
- id: string;
967
- emoji: string[];
968
- size: number;
969
- fallback: {
970
- url: string;
971
- sha256: string;
972
- mime: string;
973
- bytes: number;
974
- };
975
- packId: string;
976
- keywords: string[];
977
- durationMs: number;
978
- animation: {
979
- url: string;
980
- sha256: string;
981
- mime: string;
982
- bytes: number;
983
- };
984
- }[];
985
- }, {
986
- stickers: {
987
- id: string;
988
- emoji: string[];
989
- size: number;
990
- fallback: {
991
- url: string;
992
- sha256: string;
993
- mime: string;
994
- bytes: number;
995
- };
996
- packId: string;
997
- keywords: string[];
998
- durationMs: number;
999
- animation: {
1000
- url: string;
1001
- sha256: string;
1002
- mime: string;
1003
- bytes: number;
1004
- };
1005
- }[];
1006
- }>;
274
+ }, z.core.$strip>;
275
+ }, z.core.$strip>>;
276
+ }, z.core.$strip>;
1007
277
  export type ResolveStickersResponse = z.infer<typeof resolveStickersResponseSchema>;
1008
278
  /** PATCH /stickers/me/packs/order — the installed pack ids, first to last. */
1009
279
  export declare const reorderStickerPacksRequestSchema: z.ZodObject<{
1010
- packIds: z.ZodArray<z.ZodString, "many">;
1011
- }, "strip", z.ZodTypeAny, {
1012
- packIds: string[];
1013
- }, {
1014
- packIds: string[];
1015
- }>;
280
+ packIds: z.ZodArray<z.ZodString>;
281
+ }, z.core.$strip>;
1016
282
  export type ReorderStickerPacksRequest = z.infer<typeof reorderStickerPacksRequestSchema>;
1017
283
  /** POST /stickers/admin/packs */
1018
284
  export declare const createStickerPackRequestSchema: z.ZodObject<{
@@ -1020,30 +286,12 @@ export declare const createStickerPackRequestSchema: z.ZodObject<{
1020
286
  title: z.ZodString;
1021
287
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1022
288
  author: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1023
- }, "strip", z.ZodTypeAny, {
1024
- title: string;
1025
- slug: string;
1026
- description?: string | null | undefined;
1027
- author?: string | null | undefined;
1028
- }, {
1029
- title: string;
1030
- slug: string;
1031
- description?: string | null | undefined;
1032
- author?: string | null | undefined;
1033
- }>;
289
+ }, z.core.$strip>;
1034
290
  export type CreateStickerPackRequest = z.infer<typeof createStickerPackRequestSchema>;
1035
291
  /** PATCH /stickers/admin/packs/:packId */
1036
292
  export declare const updateStickerPackRequestSchema: z.ZodObject<{
1037
293
  title: z.ZodOptional<z.ZodString>;
1038
294
  description: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
1039
295
  author: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
1040
- }, "strip", z.ZodTypeAny, {
1041
- title?: string | undefined;
1042
- description?: string | null | undefined;
1043
- author?: string | null | undefined;
1044
- }, {
1045
- title?: string | undefined;
1046
- description?: string | null | undefined;
1047
- author?: string | null | undefined;
1048
- }>;
296
+ }, z.core.$strip>;
1049
297
  export type UpdateStickerPackRequest = z.infer<typeof updateStickerPackRequestSchema>;