@domino-sdk/relay 1.0.0-next.10 → 1.0.0-next.13

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 (46) hide show
  1. package/dist/authoring.d.ts +39 -36
  2. package/dist/authoring.js +10 -3
  3. package/dist/avatar.d.ts +2 -2
  4. package/dist/browser.d.ts +153 -129
  5. package/dist/browser.js +6 -6
  6. package/dist/{pages-D3titw5B.d.ts → catalog-C85V1NgW.d.ts} +178 -216
  7. package/dist/{chunk-ZWY3R6B3.js → chunk-6A2V4L3T.js} +4 -0
  8. package/dist/{chunk-YYD4QUBO.js → chunk-CRNQP7NV.js} +550 -470
  9. package/dist/{chunk-X2F2RAR3.js → chunk-EZWNGI5B.js} +23 -4
  10. package/dist/{chunk-7Q4BGGT6.js → chunk-FXYJ4OMX.js} +1 -1
  11. package/dist/{chunk-4LBUTHD6.js → chunk-II7DRZSL.js} +1 -1
  12. package/dist/chunk-KS33GOUL.js +83 -0
  13. package/dist/{chunk-QR7ZA2BJ.js → chunk-M64XHC42.js} +48 -4
  14. package/dist/chunk-MNQI35OG.js +100 -0
  15. package/dist/{chunk-PHU5VDLR.js → chunk-OA2KMQVZ.js} +41 -26
  16. package/dist/{chunk-P6FK43GG.js → chunk-WQ24ILGO.js} +140 -41
  17. package/dist/{client-CT4-S5vc.d.ts → client-Bf9PNUIi.d.ts} +61 -80
  18. package/dist/deployments-CNCP0JnD.d.ts +4250 -0
  19. package/dist/identity-integration-CBR8l3ju.d.ts +37 -0
  20. package/dist/images-BG4pdO4y.d.ts +234 -0
  21. package/dist/index.d.ts +10 -8
  22. package/dist/index.js +8 -5
  23. package/dist/{integrations-Ba5TtqTv.d.ts → integrations-EjQzIApL.d.ts} +1 -88
  24. package/dist/internal.d.ts +7 -38
  25. package/dist/internal.js +15 -88
  26. package/dist/observations-CQ6IcNuQ.d.ts +90 -0
  27. package/dist/pages-KYK1L60W.d.ts +152 -0
  28. package/dist/portal-proxy.js +5 -4
  29. package/dist/{profiles-DDMFBRKe.d.ts → profiles-BtOXMGcC.d.ts} +1 -1
  30. package/dist/react/index.d.ts +150 -31
  31. package/dist/react/index.js +149 -11
  32. package/dist/{submission-input-0OOGaq8c.d.ts → referrals-KQfP4pBf.d.ts} +189 -182
  33. package/dist/request-error-VnTiMXc3.d.ts +52 -0
  34. package/dist/{schema-Di3aLSiK.d.ts → schema-BF_TQsmT.d.ts} +338 -47
  35. package/dist/schema.d.ts +14 -4126
  36. package/dist/schema.js +46 -40
  37. package/dist/server/index.d.ts +19445 -0
  38. package/dist/server/index.js +1884 -0
  39. package/dist/{streaks-CwGReWGt.d.ts → streaks-CWyq8Px5.d.ts} +2 -4
  40. package/dist/submission-input-CccwAl5Z.d.ts +83 -0
  41. package/dist/{images-BTgk6OmC.d.ts → trackers-W7nRdRr7.d.ts} +1 -232
  42. package/dist/vite.d.ts +1 -1
  43. package/dist/vite.js +1 -0
  44. package/dist/{wallet-BGOfFkG9.d.ts → wallet-BtiG0Xhr.d.ts} +1 -1
  45. package/package.json +5 -1
  46. package/dist/point-ledgers-iS00Z_v0.d.ts +0 -37
@@ -0,0 +1,52 @@
1
+ /**
2
+ * The request-error core every Domino client error extends: the participant `RelayError` and the
3
+ * management client's error share these fields, so one handler serves both.
4
+ *
5
+ * `kind` says what happened:
6
+ *
7
+ * - `http`: the server answered with an error status.
8
+ * - `network`: the transport failed, including a response body cut off after its headers.
9
+ * - `timeout`: the client's deadline passed.
10
+ * - `aborted`: the caller cancelled the request.
11
+ * - `invalid-response`: a 2xx answer that is not JSON, or not the shape this SDK version expects.
12
+ * - `client`: the client refused the call without sending it, such as for invalid input.
13
+ */
14
+ type RequestErrorKind = "http" | "network" | "timeout" | "aborted" | "invalid-response" | "client";
15
+ /**
16
+ * What to do when `uncertain` is true. `replay`: sending the call again with the same
17
+ * `operationId` is safe, because the server applies it at most once. `reconcile`: read the state
18
+ * first, since repeating the call could apply it twice.
19
+ */
20
+ type RequestRecovery = "replay" | "reconcile";
21
+ type RequestErrorDetails = {
22
+ kind: RequestErrorKind;
23
+ /** True only when a write may have been applied. Reads are never uncertain. */
24
+ uncertain?: boolean;
25
+ /** The HTTP status, whenever response headers arrived. Never invented. */
26
+ status?: number;
27
+ /** A machine-readable code: open, so a newer server's codes are kept. */
28
+ code?: string;
29
+ /** The call's idempotency or action ID, to replay it with. */
30
+ operationId?: string;
31
+ cause?: unknown;
32
+ };
33
+ declare const requestErrorBrand: unique symbol;
34
+ /**
35
+ * Whether `value` is a `RequestError` from any copy of the SDK. Prefer it to `instanceof`, which
36
+ * fails when an app bundles two copies of the package.
37
+ */
38
+ declare function isRequestError(value: unknown): value is RequestError;
39
+ declare class RequestError extends Error {
40
+ readonly name: string;
41
+ readonly [requestErrorBrand] = true;
42
+ readonly kind: RequestErrorKind;
43
+ readonly uncertain: boolean;
44
+ readonly status: number | undefined;
45
+ readonly code: string | undefined;
46
+ readonly operationId: string | undefined;
47
+ /** `replay` when there is an `operationId`, else `reconcile`; only when `uncertain`. */
48
+ readonly recovery: RequestRecovery | undefined;
49
+ constructor(message: string, details: RequestErrorDetails);
50
+ }
51
+
52
+ export { RequestError as R, type RequestErrorDetails as a, type RequestErrorKind as b, type RequestRecovery as c, isRequestError as i };
@@ -610,15 +610,14 @@ declare const questDescriptionSchema: z.ZodObject<{
610
610
  requires: z.ZodDefault<z.ZodArray<z.ZodObject<{
611
611
  quest: z.ZodString;
612
612
  }, z.core.$strip>>>;
613
- completion: z.ZodDiscriminatedUnion<[z.ZodObject<{
613
+ completion: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodDiscriminatedUnion<[z.ZodObject<{
614
614
  kind: z.ZodLiteral<"streak">;
615
615
  days: z.ZodNumber;
616
- timeZone: z.ZodString;
617
- }, z.core.$strict>, z.ZodObject<{
616
+ }, z.core.$strip>, z.ZodObject<{
618
617
  kind: z.ZodLiteral<"once">;
619
618
  }, z.core.$strict>, z.ZodObject<{
620
619
  kind: z.ZodLiteral<"keyed">;
621
- }, z.core.$strict>], "kind">;
620
+ }, z.core.$strict>], "kind">>;
622
621
  visibility: z.ZodDefault<z.ZodEnum<{
623
622
  visible: "visible";
624
623
  hidden: "hidden";
@@ -633,9 +632,10 @@ declare const questDescriptionSchema: z.ZodObject<{
633
632
  project: "project";
634
633
  }>;
635
634
  period: z.ZodEnum<{
636
- day: "day";
637
635
  lifetime: "lifetime";
636
+ day: "day";
638
637
  week: "week";
638
+ month: "month";
639
639
  }>;
640
640
  limit: z.ZodNumber;
641
641
  cost: z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
@@ -699,7 +699,11 @@ declare const questSettingsInputSchema: z.ZodObject<{
699
699
  reset: z.ZodArray<z.ZodString>;
700
700
  }, z.core.$strict>;
701
701
  type QuestSettingsInput = z.infer<typeof questSettingsInputSchema>;
702
- declare const publishedReleaseSchema: z.ZodUnion<readonly [z.ZodObject<{
702
+ /**
703
+ * A description as Relay stored it. A streak published with its own `timeZone` still reads, and the
704
+ * field drops; authored descriptions refuse it.
705
+ */
706
+ declare const storedQuestDescriptionSchema: z.ZodObject<{
703
707
  quest: z.ZodString;
704
708
  runtimeVersion: z.ZodDefault<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>]>>;
705
709
  title: z.ZodString;
@@ -956,15 +960,296 @@ declare const publishedReleaseSchema: z.ZodUnion<readonly [z.ZodObject<{
956
960
  requires: z.ZodDefault<z.ZodArray<z.ZodObject<{
957
961
  quest: z.ZodString;
958
962
  }, z.core.$strip>>>;
963
+ visibility: z.ZodDefault<z.ZodEnum<{
964
+ visible: "visible";
965
+ hidden: "hidden";
966
+ }>>;
967
+ profile: z.ZodOptional<z.ZodObject<{
968
+ visible: z.ZodBoolean;
969
+ }, z.core.$strict>>;
970
+ budgets: z.ZodDefault<z.ZodArray<z.ZodObject<{
971
+ id: z.ZodString;
972
+ scope: z.ZodEnum<{
973
+ member: "member";
974
+ project: "project";
975
+ }>;
976
+ period: z.ZodEnum<{
977
+ lifetime: "lifetime";
978
+ day: "day";
979
+ week: "week";
980
+ month: "month";
981
+ }>;
982
+ limit: z.ZodNumber;
983
+ cost: z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
984
+ balance: z.ZodString;
985
+ }, z.core.$strict>]>;
986
+ }, z.core.$strict>>>;
959
987
  completion: z.ZodDiscriminatedUnion<[z.ZodObject<{
960
988
  kind: z.ZodLiteral<"streak">;
961
989
  days: z.ZodNumber;
962
- timeZone: z.ZodString;
963
- }, z.core.$strict>, z.ZodObject<{
990
+ }, z.core.$strip>, z.ZodObject<{
964
991
  kind: z.ZodLiteral<"once">;
965
992
  }, z.core.$strict>, z.ZodObject<{
966
993
  kind: z.ZodLiteral<"keyed">;
967
994
  }, z.core.$strict>], "kind">;
995
+ }, z.core.$strict>;
996
+ declare const publishedReleaseSchema: z.ZodUnion<readonly [z.ZodObject<{
997
+ quest: z.ZodString;
998
+ runtimeVersion: z.ZodDefault<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>]>>;
999
+ title: z.ZodString;
1000
+ presentation: z.ZodDefault<z.ZodObject<{
1001
+ quiz: z.ZodOptional<z.ZodArray<z.ZodObject<{
1002
+ id: z.ZodString;
1003
+ prompt: z.ZodString;
1004
+ choices: z.ZodArray<z.ZodObject<{
1005
+ id: z.ZodString;
1006
+ label: z.ZodString;
1007
+ }, z.core.$strict>>;
1008
+ }, z.core.$strict>>>;
1009
+ instructions: z.ZodOptional<z.ZodString>;
1010
+ video: z.ZodOptional<z.ZodObject<{
1011
+ url: z.ZodString;
1012
+ poster: z.ZodOptional<z.ZodString>;
1013
+ captions: z.ZodOptional<z.ZodObject<{
1014
+ url: z.ZodString;
1015
+ language: z.ZodString;
1016
+ label: z.ZodString;
1017
+ }, z.core.$strict>>;
1018
+ }, z.core.$strict>>;
1019
+ }, z.core.$strict>>;
1020
+ integrations: z.ZodDefault<z.ZodArray<z.ZodEnum<{
1021
+ discord: "discord";
1022
+ }>>>;
1023
+ fields: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
1024
+ kind: z.ZodLiteral<"point-ledger">;
1025
+ default: z.ZodString;
1026
+ label: z.ZodString;
1027
+ description: z.ZodOptional<z.ZodString>;
1028
+ }, z.core.$strict>, z.ZodObject<{
1029
+ kind: z.ZodLiteral<"datetime">;
1030
+ default: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<string, string>>;
1031
+ label: z.ZodString;
1032
+ description: z.ZodOptional<z.ZodString>;
1033
+ }, z.core.$strict>, z.ZodObject<{
1034
+ kind: z.ZodLiteral<"resource">;
1035
+ default: z.ZodUnion<readonly [z.ZodLiteral<"">, z.ZodString]>;
1036
+ source: z.ZodUnion<readonly [z.ZodObject<{
1037
+ provider: z.ZodLiteral<"domino">;
1038
+ resource: z.ZodLiteral<"point-ledger">;
1039
+ }, z.core.$strict>, z.ZodObject<{
1040
+ provider: z.ZodLiteral<"discord">;
1041
+ resource: z.ZodLiteral<"channel">;
1042
+ types: z.ZodArray<z.ZodEnum<{
1043
+ text: "text";
1044
+ announcement: "announcement";
1045
+ }>>;
1046
+ }, z.core.$strict>, z.ZodObject<{
1047
+ provider: z.ZodLiteral<"discord">;
1048
+ resource: z.ZodLiteral<"role">;
1049
+ assignable: z.ZodDefault<z.ZodBoolean>;
1050
+ }, z.core.$strict>]>;
1051
+ label: z.ZodString;
1052
+ description: z.ZodOptional<z.ZodString>;
1053
+ }, z.core.$strict>, z.ZodObject<{
1054
+ kind: z.ZodLiteral<"quiz">;
1055
+ default: z.ZodArray<z.ZodObject<{
1056
+ id: z.ZodString;
1057
+ prompt: z.ZodString;
1058
+ choices: z.ZodArray<z.ZodObject<{
1059
+ id: z.ZodString;
1060
+ label: z.ZodString;
1061
+ }, z.core.$strict>>;
1062
+ correct: z.ZodString;
1063
+ }, z.core.$strict>>;
1064
+ label: z.ZodString;
1065
+ description: z.ZodOptional<z.ZodString>;
1066
+ }, z.core.$strict>, z.ZodObject<{
1067
+ kind: z.ZodLiteral<"text">;
1068
+ default: z.ZodString;
1069
+ minLength: z.ZodNumber;
1070
+ maxLength: z.ZodNumber;
1071
+ multiline: z.ZodBoolean;
1072
+ label: z.ZodString;
1073
+ description: z.ZodOptional<z.ZodString>;
1074
+ }, z.core.$strict>, z.ZodObject<{
1075
+ kind: z.ZodLiteral<"integer">;
1076
+ default: z.ZodNumber;
1077
+ min: z.ZodNumber;
1078
+ max: z.ZodNumber;
1079
+ label: z.ZodString;
1080
+ description: z.ZodOptional<z.ZodString>;
1081
+ }, z.core.$strict>, z.ZodObject<{
1082
+ kind: z.ZodLiteral<"boolean">;
1083
+ default: z.ZodBoolean;
1084
+ label: z.ZodString;
1085
+ description: z.ZodOptional<z.ZodString>;
1086
+ }, z.core.$strict>, z.ZodObject<{
1087
+ kind: z.ZodLiteral<"choice">;
1088
+ default: z.ZodString;
1089
+ options: z.ZodArray<z.ZodString>;
1090
+ label: z.ZodString;
1091
+ description: z.ZodOptional<z.ZodString>;
1092
+ }, z.core.$strict>], "kind">>;
1093
+ values: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodObject<{
1094
+ id: z.ZodString;
1095
+ prompt: z.ZodString;
1096
+ choices: z.ZodArray<z.ZodObject<{
1097
+ id: z.ZodString;
1098
+ label: z.ZodString;
1099
+ }, z.core.$strict>>;
1100
+ correct: z.ZodString;
1101
+ }, z.core.$strict>>]>>;
1102
+ rewards: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
1103
+ kind: z.ZodDefault<z.ZodLiteral<"points">>;
1104
+ balance: z.ZodString;
1105
+ amount: z.ZodNumber;
1106
+ }, z.core.$strict>, z.ZodObject<{
1107
+ kind: z.ZodLiteral<"tier">;
1108
+ reward: z.ZodObject<{
1109
+ id: z.ZodString;
1110
+ title: z.ZodString;
1111
+ tiers: z.ZodArray<z.ZodObject<{
1112
+ id: z.ZodString;
1113
+ title: z.ZodString;
1114
+ }, z.core.$strict>>;
1115
+ inventory: z.ZodObject<{
1116
+ kind: z.ZodLiteral<"untracked">;
1117
+ }, z.core.$strict>;
1118
+ fulfillment: z.ZodObject<{
1119
+ kind: z.ZodLiteral<"staff-handover">;
1120
+ }, z.core.$strict>;
1121
+ }, z.core.$strict>;
1122
+ tier: z.ZodString;
1123
+ }, z.core.$strict>, z.ZodObject<{
1124
+ kind: z.ZodLiteral<"integration">;
1125
+ provider: z.ZodLiteral<"discord">;
1126
+ action: z.ZodLiteral<"grant-role">;
1127
+ roleId: z.ZodString;
1128
+ }, z.core.$strict>]>>;
1129
+ humanReview: z.ZodBoolean;
1130
+ trigger: z.ZodUnion<readonly [z.ZodObject<{
1131
+ kind: z.ZodLiteral<"manual">;
1132
+ input: z.ZodLiteral<"text">;
1133
+ constraints: z.ZodObject<{
1134
+ required: z.ZodDefault<z.ZodBoolean>;
1135
+ minLength: z.ZodDefault<z.ZodNumber>;
1136
+ maxLength: z.ZodDefault<z.ZodNumber>;
1137
+ }, z.core.$strict>;
1138
+ actor: z.ZodOptional<z.ZodEnum<{
1139
+ member: "member";
1140
+ staff: "staff";
1141
+ }>>;
1142
+ }, z.core.$strict>, z.ZodObject<{
1143
+ kind: z.ZodLiteral<"manual">;
1144
+ input: z.ZodLiteral<"url">;
1145
+ constraints: z.ZodObject<{
1146
+ required: z.ZodDefault<z.ZodBoolean>;
1147
+ allowedHosts: z.ZodOptional<z.ZodArray<z.ZodString>>;
1148
+ }, z.core.$strict>;
1149
+ actor: z.ZodOptional<z.ZodEnum<{
1150
+ member: "member";
1151
+ staff: "staff";
1152
+ }>>;
1153
+ }, z.core.$strict>, z.ZodObject<{
1154
+ kind: z.ZodLiteral<"manual">;
1155
+ input: z.ZodEnum<{
1156
+ none: "none";
1157
+ quiz: "quiz";
1158
+ photo: "photo";
1159
+ }>;
1160
+ actor: z.ZodOptional<z.ZodEnum<{
1161
+ member: "member";
1162
+ staff: "staff";
1163
+ }>>;
1164
+ }, z.core.$strict>, z.ZodObject<{
1165
+ kind: z.ZodLiteral<"automatic">;
1166
+ observation: z.ZodOptional<z.ZodObject<{
1167
+ source: z.ZodString;
1168
+ type: z.ZodString;
1169
+ }, z.core.$strict>>;
1170
+ content: z.ZodOptional<z.ZodObject<{
1171
+ tracker: z.ZodString;
1172
+ window: z.ZodObject<{
1173
+ start: z.ZodNumber;
1174
+ end: z.ZodOptional<z.ZodNumber>;
1175
+ }, z.core.$strict>;
1176
+ enrollment: z.ZodDefault<z.ZodEnum<{
1177
+ required: "required";
1178
+ none: "none";
1179
+ }>>;
1180
+ posts: z.ZodDefault<z.ZodEnum<{
1181
+ "after-enrollment": "after-enrollment";
1182
+ "since-start": "since-start";
1183
+ }>>;
1184
+ historical: z.ZodDefault<z.ZodEnum<{
1185
+ automatic: "automatic";
1186
+ claim: "claim";
1187
+ staff: "staff";
1188
+ }>>;
1189
+ }, z.core.$strict>>;
1190
+ tracker: z.ZodOptional<z.ZodObject<{
1191
+ tracker: z.ZodString;
1192
+ source: z.ZodEnum<{
1193
+ custom: "custom";
1194
+ "x-search": "x-search";
1195
+ }>;
1196
+ on: z.ZodOptional<z.ZodEnum<{
1197
+ "new-record": "new-record";
1198
+ "new-observation": "new-observation";
1199
+ "data-changed": "data-changed";
1200
+ }>>;
1201
+ where: z.ZodOptional<z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
1202
+ path: z.ZodString;
1203
+ equals: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>;
1204
+ }, z.core.$strict>, z.ZodObject<{
1205
+ path: z.ZodString;
1206
+ gt: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
1207
+ setting: z.ZodString;
1208
+ }, z.core.$strict>]>>;
1209
+ gte: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
1210
+ setting: z.ZodString;
1211
+ }, z.core.$strict>]>>;
1212
+ lt: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
1213
+ setting: z.ZodString;
1214
+ }, z.core.$strict>]>>;
1215
+ lte: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
1216
+ setting: z.ZodString;
1217
+ }, z.core.$strict>]>>;
1218
+ }, z.core.$strict>]>, z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
1219
+ path: z.ZodString;
1220
+ equals: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>;
1221
+ }, z.core.$strict>, z.ZodObject<{
1222
+ path: z.ZodString;
1223
+ gt: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
1224
+ setting: z.ZodString;
1225
+ }, z.core.$strict>]>>;
1226
+ gte: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
1227
+ setting: z.ZodString;
1228
+ }, z.core.$strict>]>>;
1229
+ lt: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
1230
+ setting: z.ZodString;
1231
+ }, z.core.$strict>]>>;
1232
+ lte: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
1233
+ setting: z.ZodString;
1234
+ }, z.core.$strict>]>>;
1235
+ }, z.core.$strict>]>>]>>;
1236
+ beneficiary: z.ZodUnion<readonly [z.ZodString, z.ZodLiteral<"replied-to">]>;
1237
+ }, z.core.$strict>>;
1238
+ }, z.core.$strict>]>;
1239
+ performance: z.ZodOptional<z.ZodObject<{
1240
+ metrics: z.ZodArray<z.ZodEnum<{
1241
+ likes: "likes";
1242
+ replies: "replies";
1243
+ reposts: "reposts";
1244
+ quotes: "quotes";
1245
+ views: "views";
1246
+ bookmarks: "bookmarks";
1247
+ }>>;
1248
+ maxAgeMs: z.ZodDefault<z.ZodNumber>;
1249
+ }, z.core.$strict>>;
1250
+ requires: z.ZodDefault<z.ZodArray<z.ZodObject<{
1251
+ quest: z.ZodString;
1252
+ }, z.core.$strip>>>;
968
1253
  visibility: z.ZodDefault<z.ZodEnum<{
969
1254
  visible: "visible";
970
1255
  hidden: "hidden";
@@ -979,15 +1264,24 @@ declare const publishedReleaseSchema: z.ZodUnion<readonly [z.ZodObject<{
979
1264
  project: "project";
980
1265
  }>;
981
1266
  period: z.ZodEnum<{
982
- day: "day";
983
1267
  lifetime: "lifetime";
1268
+ day: "day";
984
1269
  week: "week";
1270
+ month: "month";
985
1271
  }>;
986
1272
  limit: z.ZodNumber;
987
1273
  cost: z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
988
1274
  balance: z.ZodString;
989
1275
  }, z.core.$strict>]>;
990
1276
  }, z.core.$strict>>>;
1277
+ completion: z.ZodDiscriminatedUnion<[z.ZodObject<{
1278
+ kind: z.ZodLiteral<"streak">;
1279
+ days: z.ZodNumber;
1280
+ }, z.core.$strip>, z.ZodObject<{
1281
+ kind: z.ZodLiteral<"once">;
1282
+ }, z.core.$strict>, z.ZodObject<{
1283
+ kind: z.ZodLiteral<"keyed">;
1284
+ }, z.core.$strict>], "kind">;
991
1285
  key: z.ZodOptional<z.ZodString>;
992
1286
  code: z.ZodString;
993
1287
  provider: z.ZodEnum<{
@@ -1282,25 +1576,24 @@ declare const publishedReleaseSchema: z.ZodUnion<readonly [z.ZodObject<{
1282
1576
  requires: {
1283
1577
  quest: string;
1284
1578
  }[];
1285
- completion: {
1286
- kind: "streak";
1287
- days: number;
1288
- timeZone: string;
1289
- } | {
1290
- kind: "once";
1291
- } | {
1292
- kind: "keyed";
1293
- };
1294
1579
  visibility: "visible" | "hidden";
1295
1580
  budgets: {
1296
1581
  id: string;
1297
1582
  scope: "member" | "project";
1298
- period: "day" | "lifetime" | "week";
1583
+ period: "lifetime" | "day" | "week" | "month";
1299
1584
  limit: number;
1300
1585
  cost: number | {
1301
1586
  balance: string;
1302
1587
  };
1303
1588
  }[];
1589
+ completion: {
1590
+ kind: "streak";
1591
+ days: number;
1592
+ } | {
1593
+ kind: "once";
1594
+ } | {
1595
+ kind: "keyed";
1596
+ };
1304
1597
  code: string;
1305
1598
  provider: "workers-ai" | "fixture-pass" | "fixture-fail" | "fixture-unclear" | "fixture-error";
1306
1599
  id: string;
@@ -1636,15 +1929,14 @@ declare const templateSchema: z.ZodObject<{
1636
1929
  requires: z.ZodDefault<z.ZodArray<z.ZodObject<{
1637
1930
  quest: z.ZodString;
1638
1931
  }, z.core.$strip>>>;
1639
- completion: z.ZodDiscriminatedUnion<[z.ZodObject<{
1932
+ completion: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodDiscriminatedUnion<[z.ZodObject<{
1640
1933
  kind: z.ZodLiteral<"streak">;
1641
1934
  days: z.ZodNumber;
1642
- timeZone: z.ZodString;
1643
- }, z.core.$strict>, z.ZodObject<{
1935
+ }, z.core.$strip>, z.ZodObject<{
1644
1936
  kind: z.ZodLiteral<"once">;
1645
1937
  }, z.core.$strict>, z.ZodObject<{
1646
1938
  kind: z.ZodLiteral<"keyed">;
1647
- }, z.core.$strict>], "kind">;
1939
+ }, z.core.$strict>], "kind">>;
1648
1940
  visibility: z.ZodDefault<z.ZodEnum<{
1649
1941
  visible: "visible";
1650
1942
  hidden: "hidden";
@@ -1659,9 +1951,10 @@ declare const templateSchema: z.ZodObject<{
1659
1951
  project: "project";
1660
1952
  }>;
1661
1953
  period: z.ZodEnum<{
1662
- day: "day";
1663
1954
  lifetime: "lifetime";
1955
+ day: "day";
1664
1956
  week: "week";
1957
+ month: "month";
1665
1958
  }>;
1666
1959
  limit: z.ZodNumber;
1667
1960
  cost: z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
@@ -2179,8 +2472,7 @@ declare const memberProgressSchema: z.ZodObject<{
2179
2472
  completion: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
2180
2473
  kind: z.ZodLiteral<"streak">;
2181
2474
  days: z.ZodNumber;
2182
- timeZone: z.ZodString;
2183
- }, z.core.$strict>, z.ZodObject<{
2475
+ }, z.core.$strip>, z.ZodObject<{
2184
2476
  kind: z.ZodLiteral<"once">;
2185
2477
  }, z.core.$strict>, z.ZodObject<{
2186
2478
  kind: z.ZodLiteral<"keyed">;
@@ -2623,15 +2915,6 @@ declare const snapshotSchema: z.ZodObject<{
2623
2915
  requires: z.ZodDefault<z.ZodArray<z.ZodObject<{
2624
2916
  quest: z.ZodString;
2625
2917
  }, z.core.$strip>>>;
2626
- completion: z.ZodDiscriminatedUnion<[z.ZodObject<{
2627
- kind: z.ZodLiteral<"streak">;
2628
- days: z.ZodNumber;
2629
- timeZone: z.ZodString;
2630
- }, z.core.$strict>, z.ZodObject<{
2631
- kind: z.ZodLiteral<"once">;
2632
- }, z.core.$strict>, z.ZodObject<{
2633
- kind: z.ZodLiteral<"keyed">;
2634
- }, z.core.$strict>], "kind">;
2635
2918
  visibility: z.ZodDefault<z.ZodEnum<{
2636
2919
  visible: "visible";
2637
2920
  hidden: "hidden";
@@ -2646,15 +2929,24 @@ declare const snapshotSchema: z.ZodObject<{
2646
2929
  project: "project";
2647
2930
  }>;
2648
2931
  period: z.ZodEnum<{
2649
- day: "day";
2650
2932
  lifetime: "lifetime";
2933
+ day: "day";
2651
2934
  week: "week";
2935
+ month: "month";
2652
2936
  }>;
2653
2937
  limit: z.ZodNumber;
2654
2938
  cost: z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
2655
2939
  balance: z.ZodString;
2656
2940
  }, z.core.$strict>]>;
2657
2941
  }, z.core.$strict>>>;
2942
+ completion: z.ZodDiscriminatedUnion<[z.ZodObject<{
2943
+ kind: z.ZodLiteral<"streak">;
2944
+ days: z.ZodNumber;
2945
+ }, z.core.$strip>, z.ZodObject<{
2946
+ kind: z.ZodLiteral<"once">;
2947
+ }, z.core.$strict>, z.ZodObject<{
2948
+ kind: z.ZodLiteral<"keyed">;
2949
+ }, z.core.$strict>], "kind">;
2658
2950
  key: z.ZodOptional<z.ZodString>;
2659
2951
  code: z.ZodString;
2660
2952
  provider: z.ZodEnum<{
@@ -2949,25 +3241,24 @@ declare const snapshotSchema: z.ZodObject<{
2949
3241
  requires: {
2950
3242
  quest: string;
2951
3243
  }[];
2952
- completion: {
2953
- kind: "streak";
2954
- days: number;
2955
- timeZone: string;
2956
- } | {
2957
- kind: "once";
2958
- } | {
2959
- kind: "keyed";
2960
- };
2961
3244
  visibility: "visible" | "hidden";
2962
3245
  budgets: {
2963
3246
  id: string;
2964
3247
  scope: "member" | "project";
2965
- period: "day" | "lifetime" | "week";
3248
+ period: "lifetime" | "day" | "week" | "month";
2966
3249
  limit: number;
2967
3250
  cost: number | {
2968
3251
  balance: string;
2969
3252
  };
2970
3253
  }[];
3254
+ completion: {
3255
+ kind: "streak";
3256
+ days: number;
3257
+ } | {
3258
+ kind: "once";
3259
+ } | {
3260
+ kind: "keyed";
3261
+ };
2971
3262
  code: string;
2972
3263
  provider: "workers-ai" | "fixture-pass" | "fixture-fail" | "fixture-unclear" | "fixture-error";
2973
3264
  id: string;
@@ -3529,4 +3820,4 @@ declare const contentPerformancePageSchema: z.ZodObject<{
3529
3820
  nextCursor: z.ZodNullable<z.ZodString>;
3530
3821
  }, z.core.$strict>;
3531
3822
 
3532
- export { pickupPolicySchema as $, type Attempt as A, contentPerformancePageSchema as B, type ContentPerformanceSnapshot as C, type Decision as D, type Entitlement as E, contentPerformanceSnapshotSchema as F, createStockItemSchema as G, decisionSchema as H, entitlementSchema as I, errorSchema as J, eventSchema as K, evidenceSchema as L, type MemberProgress as M, integrationRewardSchema as N, mediaUrlSchema as O, type PhotoResult as P, type QuestPresentation as Q, type Reward as R, type SubmissionEvidence as S, type TieredRewardReference as T, memberListSchema as U, memberPageSchema as V, memberProgressSchema as W, photoResultSchema as X, pickupAllocationSchema as Y, pickupAvailabilitySchema as Z, pickupCatalogSchema as _, type QuestProfile as a, pickupSelectionSchema as a0, pointsRewardSchema as a1, prerequisiteSchema as a2, publishedReleaseSchema as a3, questAvailabilitySchema as a4, questDescriptionSchema as a5, questPresentationSchema as a6, questProfileSchema as a7, questSettingsInputSchema as a8, quizAnswersSchema as a9, quizEvidenceSchema as aa, releaseSchema as ab, reservationSchema as ac, reviewItemSchema as ad, reviewListSchema as ae, reviewModeSchema as af, reviewPageSchema as ag, rewardBundleSchema as ah, rewardKey as ai, snapshotSchema as aj, staffDecisionSchema as ak, stockItemSchema as al, stockSchema as am, storedReviewModeSchema as an, submissionEvidenceSchema as ao, templateSchema as ap, textResultSchema as aq, textReviewInputSchema as ar, tierRewardSchema as as, tieredRewardDefinitionSchema as at, tieredRewardReferenceSchema as au, type QuizEvidence as b, type SubmitInput as c, type TextReviewInput as d, type TextResult as e, type TieredRewardDefinition as f, contentPerformanceQuerySchema as g, type MemberPage as h, type PickupAvailability as i, type PublishedRelease as j, type QuestAvailability as k, type QuestDescription as l, type QuestSettingsInput as m, type ReleaseInput as n, type ReviewPage as o, type Snapshot as p, artifactSchema as q, rewardSchema as r, submitSchema as s, triggerSchema as t, attemptSchema as u, batchReleaseSchema as v, beginHandoverSchema as w, completionRecordSchema as x, configurePickupSchema as y, confirmHandoverSchema as z };
3823
+ export { prerequisiteSchema as $, type Attempt as A, decisionSchema as B, type ContentPerformanceSnapshot as C, type Decision as D, type Entitlement as E, entitlementSchema as F, errorSchema as G, eventSchema as H, evidenceSchema as I, integrationRewardSchema as J, mediaUrlSchema as K, memberListSchema as L, type MemberProgress as M, memberPageSchema as N, memberProgressSchema as O, type PhotoResult as P, type QuestPresentation as Q, type Reward as R, type SubmissionEvidence as S, type TieredRewardReference as T, photoResultSchema as U, pickupAllocationSchema as V, pickupAvailabilitySchema as W, pickupCatalogSchema as X, pickupPolicySchema as Y, pickupSelectionSchema as Z, pointsRewardSchema as _, type QuestProfile as a, publishedReleaseSchema as a0, questAvailabilitySchema as a1, questDescriptionSchema as a2, questPresentationSchema as a3, questProfileSchema as a4, questSettingsInputSchema as a5, quizAnswersSchema as a6, quizEvidenceSchema as a7, releaseSchema as a8, reservationSchema as a9, reviewItemSchema as aa, reviewListSchema as ab, reviewModeSchema as ac, reviewPageSchema as ad, rewardBundleSchema as ae, rewardKey as af, rewardSchema as ag, snapshotSchema as ah, staffDecisionSchema as ai, stockItemSchema as aj, stockSchema as ak, storedQuestDescriptionSchema as al, storedReviewModeSchema as am, submissionEvidenceSchema as an, submitSchema as ao, templateSchema as ap, textResultSchema as aq, textReviewInputSchema as ar, tierRewardSchema as as, tieredRewardDefinitionSchema as at, tieredRewardReferenceSchema as au, triggerSchema as av, type QuizEvidence as b, type SubmitInput as c, type MemberPage as d, type PickupAvailability as e, type PublishedRelease as f, type QuestAvailability as g, type QuestDescription as h, type QuestSettingsInput as i, type ReleaseInput as j, type ReviewPage as k, type Snapshot as l, type TextResult as m, type TextReviewInput as n, type TieredRewardDefinition as o, artifactSchema as p, attemptSchema as q, batchReleaseSchema as r, beginHandoverSchema as s, completionRecordSchema as t, configurePickupSchema as u, confirmHandoverSchema as v, contentPerformancePageSchema as w, contentPerformanceQuerySchema as x, contentPerformanceSnapshotSchema as y, createStockItemSchema as z };