@pithy-sh/core 0.15.1 → 0.16.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/error/http.d.ts +24 -0
- package/dist/error/http.d.ts.map +1 -1
- package/dist/error/payload.d.ts +48 -0
- package/dist/error/payload.d.ts.map +1 -1
- package/dist/error/payload.js +17 -2
- package/dist/logger/record.d.ts +14 -0
- package/dist/logger/record.d.ts.map +1 -1
- package/dist/version.generated.d.ts +1 -1
- package/dist/version.generated.js +1 -1
- package/package.json +1 -1
- package/src/error/payload.ts +35 -2
- package/src/version.generated.ts +1 -1
package/dist/error/http.d.ts
CHANGED
|
@@ -248,6 +248,11 @@ export declare const HttpError: z.ZodCodec<z.ZodUnion<readonly [z.ZodDiscriminat
|
|
|
248
248
|
params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
|
|
249
249
|
code: z.ZodLiteral<"turnstile/analytics_unavailable">;
|
|
250
250
|
status: z.ZodLiteral<409>;
|
|
251
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
252
|
+
message: z.ZodString;
|
|
253
|
+
params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
|
|
254
|
+
code: z.ZodLiteral<"turnstile/analytics_forbidden">;
|
|
255
|
+
status: z.ZodLiteral<409>;
|
|
251
256
|
}, z.core.$strip>, z.ZodObject<{
|
|
252
257
|
message: z.ZodString;
|
|
253
258
|
params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
|
|
@@ -293,6 +298,11 @@ export declare const HttpError: z.ZodCodec<z.ZodUnion<readonly [z.ZodDiscriminat
|
|
|
293
298
|
params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
|
|
294
299
|
code: z.ZodLiteral<"media/analytics_unavailable">;
|
|
295
300
|
status: z.ZodLiteral<409>;
|
|
301
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
302
|
+
message: z.ZodString;
|
|
303
|
+
params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
|
|
304
|
+
code: z.ZodLiteral<"media/analytics_forbidden">;
|
|
305
|
+
status: z.ZodLiteral<409>;
|
|
296
306
|
}, z.core.$strip>, z.ZodObject<{
|
|
297
307
|
message: z.ZodString;
|
|
298
308
|
params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
|
|
@@ -1173,6 +1183,13 @@ export declare const HttpError: z.ZodCodec<z.ZodUnion<readonly [z.ZodDiscriminat
|
|
|
1173
1183
|
detail: z.ZodOptional<z.ZodString>;
|
|
1174
1184
|
code: z.ZodLiteral<"turnstile/analytics_unavailable">;
|
|
1175
1185
|
status: z.ZodLiteral<409>;
|
|
1186
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1187
|
+
message: z.ZodString;
|
|
1188
|
+
params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
|
|
1189
|
+
action: z.ZodOptional<z.ZodString>;
|
|
1190
|
+
detail: z.ZodOptional<z.ZodString>;
|
|
1191
|
+
code: z.ZodLiteral<"turnstile/analytics_forbidden">;
|
|
1192
|
+
status: z.ZodLiteral<409>;
|
|
1176
1193
|
}, z.core.$strip>, z.ZodObject<{
|
|
1177
1194
|
message: z.ZodString;
|
|
1178
1195
|
params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
|
|
@@ -1236,6 +1253,13 @@ export declare const HttpError: z.ZodCodec<z.ZodUnion<readonly [z.ZodDiscriminat
|
|
|
1236
1253
|
detail: z.ZodOptional<z.ZodString>;
|
|
1237
1254
|
code: z.ZodLiteral<"media/analytics_unavailable">;
|
|
1238
1255
|
status: z.ZodLiteral<409>;
|
|
1256
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1257
|
+
message: z.ZodString;
|
|
1258
|
+
params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
|
|
1259
|
+
action: z.ZodOptional<z.ZodString>;
|
|
1260
|
+
detail: z.ZodOptional<z.ZodString>;
|
|
1261
|
+
code: z.ZodLiteral<"media/analytics_forbidden">;
|
|
1262
|
+
status: z.ZodLiteral<409>;
|
|
1239
1263
|
}, z.core.$strip>, z.ZodObject<{
|
|
1240
1264
|
message: z.ZodString;
|
|
1241
1265
|
params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
|
package/dist/error/http.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"http.d.ts","sourceRoot":"","sources":["../../src/error/http.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAGpC,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,EAA4B,UAAU,EAAmB,MAAM,cAAc,CAAC;AAErF;;;;;;;;;;;;;;;;;GAiBG;AACH,eAAO,MAAM,SAAS
|
|
1
|
+
{"version":3,"file":"http.d.ts","sourceRoot":"","sources":["../../src/error/http.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAGpC,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,EAA4B,UAAU,EAAmB,MAAM,cAAc,CAAC;AAErF;;;;;;;;;;;;;;;;;GAiBG;AACH,eAAO,MAAM,SAA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;;;;;;;;;;;;GAYG;AACH,wBAAgB,YAAY,CAAC,GAAG,EAAE,KAAK,GAAG,UAAU,CAInD;AAED,gGAAgG;AAChG,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,UAAU,EAAE,CAAC,EAAE,OAAO,GAAG,QAAQ,CAKxE;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,iBAAiB,CAAC,GAAG,EAAE,KAAK,EAAE,CAAC,EAAE,OAAO,GAAG,QAAQ,CAElE"}
|
package/dist/error/payload.d.ts
CHANGED
|
@@ -250,6 +250,11 @@ export declare const KitPublicErrorPayload: z.ZodDiscriminatedUnion<[z.ZodObject
|
|
|
250
250
|
params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
|
|
251
251
|
code: z.ZodLiteral<"turnstile/analytics_unavailable">;
|
|
252
252
|
status: z.ZodLiteral<409>;
|
|
253
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
254
|
+
message: z.ZodString;
|
|
255
|
+
params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
|
|
256
|
+
code: z.ZodLiteral<"turnstile/analytics_forbidden">;
|
|
257
|
+
status: z.ZodLiteral<409>;
|
|
253
258
|
}, z.core.$strip>, z.ZodObject<{
|
|
254
259
|
message: z.ZodString;
|
|
255
260
|
params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
|
|
@@ -295,6 +300,11 @@ export declare const KitPublicErrorPayload: z.ZodDiscriminatedUnion<[z.ZodObject
|
|
|
295
300
|
params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
|
|
296
301
|
code: z.ZodLiteral<"media/analytics_unavailable">;
|
|
297
302
|
status: z.ZodLiteral<409>;
|
|
303
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
304
|
+
message: z.ZodString;
|
|
305
|
+
params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
|
|
306
|
+
code: z.ZodLiteral<"media/analytics_forbidden">;
|
|
307
|
+
status: z.ZodLiteral<409>;
|
|
298
308
|
}, z.core.$strip>, z.ZodObject<{
|
|
299
309
|
message: z.ZodString;
|
|
300
310
|
params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
|
|
@@ -1176,6 +1186,13 @@ export declare const KitErrorPayload: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1176
1186
|
detail: z.ZodOptional<z.ZodString>;
|
|
1177
1187
|
code: z.ZodLiteral<"turnstile/analytics_unavailable">;
|
|
1178
1188
|
status: z.ZodLiteral<409>;
|
|
1189
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1190
|
+
message: z.ZodString;
|
|
1191
|
+
params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
|
|
1192
|
+
action: z.ZodOptional<z.ZodString>;
|
|
1193
|
+
detail: z.ZodOptional<z.ZodString>;
|
|
1194
|
+
code: z.ZodLiteral<"turnstile/analytics_forbidden">;
|
|
1195
|
+
status: z.ZodLiteral<409>;
|
|
1179
1196
|
}, z.core.$strip>, z.ZodObject<{
|
|
1180
1197
|
message: z.ZodString;
|
|
1181
1198
|
params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
|
|
@@ -1239,6 +1256,13 @@ export declare const KitErrorPayload: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1239
1256
|
detail: z.ZodOptional<z.ZodString>;
|
|
1240
1257
|
code: z.ZodLiteral<"media/analytics_unavailable">;
|
|
1241
1258
|
status: z.ZodLiteral<409>;
|
|
1259
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1260
|
+
message: z.ZodString;
|
|
1261
|
+
params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
|
|
1262
|
+
action: z.ZodOptional<z.ZodString>;
|
|
1263
|
+
detail: z.ZodOptional<z.ZodString>;
|
|
1264
|
+
code: z.ZodLiteral<"media/analytics_forbidden">;
|
|
1265
|
+
status: z.ZodLiteral<409>;
|
|
1242
1266
|
}, z.core.$strip>, z.ZodObject<{
|
|
1243
1267
|
message: z.ZodString;
|
|
1244
1268
|
params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
|
|
@@ -2273,6 +2297,11 @@ export declare const PublicErrorPayload: z.ZodUnion<readonly [z.ZodDiscriminated
|
|
|
2273
2297
|
params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
|
|
2274
2298
|
code: z.ZodLiteral<"turnstile/analytics_unavailable">;
|
|
2275
2299
|
status: z.ZodLiteral<409>;
|
|
2300
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2301
|
+
message: z.ZodString;
|
|
2302
|
+
params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
|
|
2303
|
+
code: z.ZodLiteral<"turnstile/analytics_forbidden">;
|
|
2304
|
+
status: z.ZodLiteral<409>;
|
|
2276
2305
|
}, z.core.$strip>, z.ZodObject<{
|
|
2277
2306
|
message: z.ZodString;
|
|
2278
2307
|
params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
|
|
@@ -2318,6 +2347,11 @@ export declare const PublicErrorPayload: z.ZodUnion<readonly [z.ZodDiscriminated
|
|
|
2318
2347
|
params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
|
|
2319
2348
|
code: z.ZodLiteral<"media/analytics_unavailable">;
|
|
2320
2349
|
status: z.ZodLiteral<409>;
|
|
2350
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2351
|
+
message: z.ZodString;
|
|
2352
|
+
params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
|
|
2353
|
+
code: z.ZodLiteral<"media/analytics_forbidden">;
|
|
2354
|
+
status: z.ZodLiteral<409>;
|
|
2321
2355
|
}, z.core.$strip>, z.ZodObject<{
|
|
2322
2356
|
message: z.ZodString;
|
|
2323
2357
|
params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
|
|
@@ -3215,6 +3249,13 @@ export declare const ErrorPayload: z.ZodUnion<readonly [z.ZodDiscriminatedUnion<
|
|
|
3215
3249
|
detail: z.ZodOptional<z.ZodString>;
|
|
3216
3250
|
code: z.ZodLiteral<"turnstile/analytics_unavailable">;
|
|
3217
3251
|
status: z.ZodLiteral<409>;
|
|
3252
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3253
|
+
message: z.ZodString;
|
|
3254
|
+
params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
|
|
3255
|
+
action: z.ZodOptional<z.ZodString>;
|
|
3256
|
+
detail: z.ZodOptional<z.ZodString>;
|
|
3257
|
+
code: z.ZodLiteral<"turnstile/analytics_forbidden">;
|
|
3258
|
+
status: z.ZodLiteral<409>;
|
|
3218
3259
|
}, z.core.$strip>, z.ZodObject<{
|
|
3219
3260
|
message: z.ZodString;
|
|
3220
3261
|
params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
|
|
@@ -3278,6 +3319,13 @@ export declare const ErrorPayload: z.ZodUnion<readonly [z.ZodDiscriminatedUnion<
|
|
|
3278
3319
|
detail: z.ZodOptional<z.ZodString>;
|
|
3279
3320
|
code: z.ZodLiteral<"media/analytics_unavailable">;
|
|
3280
3321
|
status: z.ZodLiteral<409>;
|
|
3322
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3323
|
+
message: z.ZodString;
|
|
3324
|
+
params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
|
|
3325
|
+
action: z.ZodOptional<z.ZodString>;
|
|
3326
|
+
detail: z.ZodOptional<z.ZodString>;
|
|
3327
|
+
code: z.ZodLiteral<"media/analytics_forbidden">;
|
|
3328
|
+
status: z.ZodLiteral<409>;
|
|
3281
3329
|
}, z.core.$strip>, z.ZodObject<{
|
|
3282
3330
|
message: z.ZodString;
|
|
3283
3331
|
params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../src/error/payload.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB;;;;;;;;GAQG;AAEH,uFAAuF;AACvF,eAAO,MAAM,eAAe;;;;iBAQqD,CAAC;AAClF,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../src/error/payload.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB;;;;;;;;GAQG;AAEH,uFAAuF;AACvF,eAAO,MAAM,eAA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|
|
|
277
277
|
status: z.literal(409).describe("Conflict — the account's configuration rules the read out."),
|
|
278
278
|
...publicFields
|
|
279
279
|
}).describe("Turnstile analytics are not served to this account (409).");
|
|
280
|
+
const TurnstileAnalyticsForbiddenPublic = z.object({
|
|
281
|
+
code: z.literal("turnstile/analytics_forbidden").describe("Cloudflare refused the Turnstile analytics read because this Worker's `runtime` token lacks the permission it needs. `params.permission` names it, and `message` names the rotate that re-scopes the token."),
|
|
282
|
+
status: z.literal(409).describe("Conflict — the account's token configuration rules the read out."),
|
|
283
|
+
...publicFields
|
|
284
|
+
}).describe("The runtime token lacks the permission Turnstile analytics need (409).");
|
|
280
285
|
const AuditInvalidEventPublic = z.object({
|
|
281
286
|
code: z.literal("audit/invalid_event").describe("An audit event failed validation against the AuditEvent schema (bad action, outcome, or actor)."),
|
|
282
287
|
status: z.literal(400).describe("Bad Request — the event did not match its schema."),
|
|
@@ -322,6 +327,11 @@ const MediaAnalyticsUnavailablePublic = z.object({
|
|
|
322
327
|
status: z.literal(409).describe("Conflict — the account's configuration rules the read out."),
|
|
323
328
|
...publicFields
|
|
324
329
|
}).describe("Delivery analytics are not served to this account (409).");
|
|
330
|
+
const MediaAnalyticsForbiddenPublic = z.object({
|
|
331
|
+
code: z.literal("media/analytics_forbidden").describe("Cloudflare refused the delivery analytics read because this Worker's `runtime` token lacks the permission it needs. `params.permission` names it, and `message` names the rotate that re-scopes the token."),
|
|
332
|
+
status: z.literal(409).describe("Conflict — the account's token configuration rules the read out."),
|
|
333
|
+
...publicFields
|
|
334
|
+
}).describe("The runtime token lacks the permission delivery analytics need (409).");
|
|
325
335
|
const LeaderboardBoardNotFoundPublic = z.object({
|
|
326
336
|
code: z.literal("leaderboard/board_not_found").describe("No board with that key is configured. Board keys come from `pithy.config.ts`, not from the database."),
|
|
327
337
|
status: z.literal(404).describe("Not Found."),
|
|
@@ -933,6 +943,7 @@ const KitPublicErrorPayload = z.discriminatedUnion("code", [
|
|
|
933
943
|
TurnstileConfigPublic,
|
|
934
944
|
TurnstileAnalyticsWindowPublic,
|
|
935
945
|
TurnstileAnalyticsUnavailablePublic,
|
|
946
|
+
TurnstileAnalyticsForbiddenPublic,
|
|
936
947
|
AuditInvalidEventPublic,
|
|
937
948
|
AuditWriteFailedPublic,
|
|
938
949
|
MediaNotFoundPublic,
|
|
@@ -942,6 +953,7 @@ const KitPublicErrorPayload = z.discriminatedUnion("code", [
|
|
|
942
953
|
MediaEnrichmentFailedPublic,
|
|
943
954
|
MediaAnalyticsWindowPublic,
|
|
944
955
|
MediaAnalyticsUnavailablePublic,
|
|
956
|
+
MediaAnalyticsForbiddenPublic,
|
|
945
957
|
LeaderboardBoardNotFoundPublic,
|
|
946
958
|
LeaderboardEntryNotFoundPublic,
|
|
947
959
|
LeaderboardScoreRejectedPublic,
|
|
@@ -1099,6 +1111,7 @@ const TurnstileFailed = TurnstileFailedPublic.extend(internalFields).describe(Tu
|
|
|
1099
1111
|
const TurnstileConfig = TurnstileConfigPublic.extend(internalFields).describe(TurnstileConfigPublic.description ?? "");
|
|
1100
1112
|
const TurnstileAnalyticsWindow = TurnstileAnalyticsWindowPublic.extend(internalFields).describe(TurnstileAnalyticsWindowPublic.description ?? "");
|
|
1101
1113
|
const TurnstileAnalyticsUnavailable = TurnstileAnalyticsUnavailablePublic.extend(internalFields).describe(TurnstileAnalyticsUnavailablePublic.description ?? "");
|
|
1114
|
+
const TurnstileAnalyticsForbidden = TurnstileAnalyticsForbiddenPublic.extend(internalFields).describe(TurnstileAnalyticsForbiddenPublic.description ?? "");
|
|
1102
1115
|
const AuditInvalidEvent = AuditInvalidEventPublic.extend(internalFields).describe(AuditInvalidEventPublic.description ?? "");
|
|
1103
1116
|
const AuditWriteFailed = AuditWriteFailedPublic.extend(internalFields).describe(AuditWriteFailedPublic.description ?? "");
|
|
1104
1117
|
const MediaNotFound = MediaNotFoundPublic.extend(internalFields).describe(MediaNotFoundPublic.description ?? "");
|
|
@@ -1108,6 +1121,7 @@ const MediaStorageFailed = MediaStorageFailedPublic.extend(internalFields).descr
|
|
|
1108
1121
|
const MediaEnrichmentFailed = MediaEnrichmentFailedPublic.extend(internalFields).describe(MediaEnrichmentFailedPublic.description ?? "");
|
|
1109
1122
|
const MediaAnalyticsWindow = MediaAnalyticsWindowPublic.extend(internalFields).describe(MediaAnalyticsWindowPublic.description ?? "");
|
|
1110
1123
|
const MediaAnalyticsUnavailable = MediaAnalyticsUnavailablePublic.extend(internalFields).describe(MediaAnalyticsUnavailablePublic.description ?? "");
|
|
1124
|
+
const MediaAnalyticsForbidden = MediaAnalyticsForbiddenPublic.extend(internalFields).describe(MediaAnalyticsForbiddenPublic.description ?? "");
|
|
1111
1125
|
const LeaderboardBoardNotFound = LeaderboardBoardNotFoundPublic.extend(internalFields).describe(LeaderboardBoardNotFoundPublic.description ?? "");
|
|
1112
1126
|
const LeaderboardEntryNotFound = LeaderboardEntryNotFoundPublic.extend(internalFields).describe(LeaderboardEntryNotFoundPublic.description ?? "");
|
|
1113
1127
|
const LeaderboardScoreRejected = LeaderboardScoreRejectedPublic.extend(internalFields).describe(LeaderboardScoreRejectedPublic.description ?? "");
|
|
@@ -1270,6 +1284,7 @@ const KitErrorPayload = z.discriminatedUnion("code", [
|
|
|
1270
1284
|
TurnstileConfig,
|
|
1271
1285
|
TurnstileAnalyticsWindow,
|
|
1272
1286
|
TurnstileAnalyticsUnavailable,
|
|
1287
|
+
TurnstileAnalyticsForbidden,
|
|
1273
1288
|
AuditInvalidEvent,
|
|
1274
1289
|
AuditWriteFailed,
|
|
1275
1290
|
MediaNotFound,
|
|
@@ -1279,6 +1294,7 @@ const KitErrorPayload = z.discriminatedUnion("code", [
|
|
|
1279
1294
|
MediaEnrichmentFailed,
|
|
1280
1295
|
MediaAnalyticsWindow,
|
|
1281
1296
|
MediaAnalyticsUnavailable,
|
|
1297
|
+
MediaAnalyticsForbidden,
|
|
1282
1298
|
LeaderboardBoardNotFound,
|
|
1283
1299
|
LeaderboardEntryNotFound,
|
|
1284
1300
|
LeaderboardScoreRejected,
|
|
@@ -1399,8 +1415,7 @@ const KitErrorPayload = z.discriminatedUnion("code", [
|
|
|
1399
1415
|
* with it** — that is what this reads. It exists for the one place a code arrives without the payload
|
|
1400
1416
|
* it came from: a `PithyError` raised inside a durable Workflow step, whose only channel out is the
|
|
1401
1417
|
* text the engine records (`../workflow/stepMessage`). Nothing but `code`, `message` and `action`
|
|
1402
|
-
* survives that boundary,
|
|
1403
|
-
* operator to retry a request that was delivered and terminally answered (pithy-sh/pithy#365).
|
|
1418
|
+
* survives that boundary, so the status has to come back from the code.
|
|
1404
1419
|
*
|
|
1405
1420
|
* **The status is recovered, never invented.** A code this does not know — an adopter's own, a
|
|
1406
1421
|
* `d1/*` fault class, a typo — answers `undefined`, and the caller says so with a code of its own
|
package/dist/logger/record.d.ts
CHANGED
|
@@ -359,6 +359,13 @@ export declare const LogRecord: z.ZodObject<{
|
|
|
359
359
|
detail: z.ZodOptional<z.ZodString>;
|
|
360
360
|
code: z.ZodLiteral<"turnstile/analytics_unavailable">;
|
|
361
361
|
status: z.ZodLiteral<409>;
|
|
362
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
363
|
+
message: z.ZodString;
|
|
364
|
+
params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
|
|
365
|
+
action: z.ZodOptional<z.ZodString>;
|
|
366
|
+
detail: z.ZodOptional<z.ZodString>;
|
|
367
|
+
code: z.ZodLiteral<"turnstile/analytics_forbidden">;
|
|
368
|
+
status: z.ZodLiteral<409>;
|
|
362
369
|
}, z.core.$strip>, z.ZodObject<{
|
|
363
370
|
message: z.ZodString;
|
|
364
371
|
params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
|
|
@@ -422,6 +429,13 @@ export declare const LogRecord: z.ZodObject<{
|
|
|
422
429
|
detail: z.ZodOptional<z.ZodString>;
|
|
423
430
|
code: z.ZodLiteral<"media/analytics_unavailable">;
|
|
424
431
|
status: z.ZodLiteral<409>;
|
|
432
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
433
|
+
message: z.ZodString;
|
|
434
|
+
params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
|
|
435
|
+
action: z.ZodOptional<z.ZodString>;
|
|
436
|
+
detail: z.ZodOptional<z.ZodString>;
|
|
437
|
+
code: z.ZodLiteral<"media/analytics_forbidden">;
|
|
438
|
+
status: z.ZodLiteral<409>;
|
|
425
439
|
}, z.core.$strip>, z.ZodObject<{
|
|
426
440
|
message: z.ZodString;
|
|
427
441
|
params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"record.d.ts","sourceRoot":"","sources":["../../src/logger/record.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB;;;;;GAKG;AAEH,4GAA4G;AAC5G,eAAO,MAAM,QAAQ;;;;;EAE4F,CAAC;AAClH,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,QAAQ,CAAC,CAAC;AAEjD;;;GAGG;AACH,eAAO,MAAM,eAAe,EAAE,MAAM,CAAC,QAAQ,EAAE,MAAM,CAAgD,CAAC;AAEtG;;;;GAIG;AACH,eAAO,MAAM,SAAS,wCAEsF,CAAC;AAC7G,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,SAAS,CAAC,CAAC;AAEnD;;;;;GAKG;AACH,eAAO,MAAM,SAAS
|
|
1
|
+
{"version":3,"file":"record.d.ts","sourceRoot":"","sources":["../../src/logger/record.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAW+E,CAAC;AACtG,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,SAAS,CAAC,CAAC;AAmBnD;;;GAGG;AACH,wBAAgB,eAAe,CAAC,MAAM,EAAE,SAAS,GAAG,MAAM,CAMzD"}
|
|
@@ -3,5 +3,5 @@
|
|
|
3
3
|
/** This package's npm name — the join key against a release feed. */
|
|
4
4
|
export declare const PACKAGE_NAME = "@pithy-sh/core";
|
|
5
5
|
/** This package's version, stamped from its own package.json at generation time. */
|
|
6
|
-
export declare const PACKAGE_VERSION = "0.
|
|
6
|
+
export declare const PACKAGE_VERSION = "0.16.0";
|
|
7
7
|
//# sourceMappingURL=version.generated.d.ts.map
|
|
@@ -4,6 +4,6 @@
|
|
|
4
4
|
/** This package's npm name — the join key against a release feed. */
|
|
5
5
|
const PACKAGE_NAME = "@pithy-sh/core";
|
|
6
6
|
/** This package's version, stamped from its own package.json at generation time. */
|
|
7
|
-
const PACKAGE_VERSION = "0.
|
|
7
|
+
const PACKAGE_VERSION = "0.16.0";
|
|
8
8
|
//#endregion
|
|
9
9
|
export { PACKAGE_NAME, PACKAGE_VERSION };
|
package/package.json
CHANGED
package/src/error/payload.ts
CHANGED
|
@@ -593,6 +593,18 @@ const TurnstileAnalyticsUnavailablePublic = z
|
|
|
593
593
|
})
|
|
594
594
|
.describe("Turnstile analytics are not served to this account (409).");
|
|
595
595
|
|
|
596
|
+
const TurnstileAnalyticsForbiddenPublic = z
|
|
597
|
+
.object({
|
|
598
|
+
code: z
|
|
599
|
+
.literal("turnstile/analytics_forbidden")
|
|
600
|
+
.describe(
|
|
601
|
+
"Cloudflare refused the Turnstile analytics read because this Worker's `runtime` token lacks the permission it needs. `params.permission` names it, and `message` names the rotate that re-scopes the token.",
|
|
602
|
+
),
|
|
603
|
+
status: z.literal(409).describe("Conflict — the account's token configuration rules the read out."),
|
|
604
|
+
...publicFields,
|
|
605
|
+
})
|
|
606
|
+
.describe("The runtime token lacks the permission Turnstile analytics need (409).");
|
|
607
|
+
|
|
596
608
|
// --- @pithy-sh/audit: audit-trail recorder codes ---
|
|
597
609
|
|
|
598
610
|
const AuditInvalidEventPublic = z
|
|
@@ -693,6 +705,18 @@ const MediaAnalyticsUnavailablePublic = z
|
|
|
693
705
|
})
|
|
694
706
|
.describe("Delivery analytics are not served to this account (409).");
|
|
695
707
|
|
|
708
|
+
const MediaAnalyticsForbiddenPublic = z
|
|
709
|
+
.object({
|
|
710
|
+
code: z
|
|
711
|
+
.literal("media/analytics_forbidden")
|
|
712
|
+
.describe(
|
|
713
|
+
"Cloudflare refused the delivery analytics read because this Worker's `runtime` token lacks the permission it needs. `params.permission` names it, and `message` names the rotate that re-scopes the token.",
|
|
714
|
+
),
|
|
715
|
+
status: z.literal(409).describe("Conflict — the account's token configuration rules the read out."),
|
|
716
|
+
...publicFields,
|
|
717
|
+
})
|
|
718
|
+
.describe("The runtime token lacks the permission delivery analytics need (409).");
|
|
719
|
+
|
|
696
720
|
// --- @pithy-sh/leaderboard: optional ranking capability codes ---
|
|
697
721
|
|
|
698
722
|
const LeaderboardBoardNotFoundPublic = z
|
|
@@ -2038,6 +2062,7 @@ export const KitPublicErrorPayload = z
|
|
|
2038
2062
|
TurnstileConfigPublic,
|
|
2039
2063
|
TurnstileAnalyticsWindowPublic,
|
|
2040
2064
|
TurnstileAnalyticsUnavailablePublic,
|
|
2065
|
+
TurnstileAnalyticsForbiddenPublic,
|
|
2041
2066
|
AuditInvalidEventPublic,
|
|
2042
2067
|
AuditWriteFailedPublic,
|
|
2043
2068
|
MediaNotFoundPublic,
|
|
@@ -2047,6 +2072,7 @@ export const KitPublicErrorPayload = z
|
|
|
2047
2072
|
MediaEnrichmentFailedPublic,
|
|
2048
2073
|
MediaAnalyticsWindowPublic,
|
|
2049
2074
|
MediaAnalyticsUnavailablePublic,
|
|
2075
|
+
MediaAnalyticsForbiddenPublic,
|
|
2050
2076
|
LeaderboardBoardNotFoundPublic,
|
|
2051
2077
|
LeaderboardEntryNotFoundPublic,
|
|
2052
2078
|
LeaderboardScoreRejectedPublic,
|
|
@@ -2260,6 +2286,9 @@ const TurnstileAnalyticsWindow = TurnstileAnalyticsWindowPublic.extend(internalF
|
|
|
2260
2286
|
const TurnstileAnalyticsUnavailable = TurnstileAnalyticsUnavailablePublic.extend(internalFields).describe(
|
|
2261
2287
|
TurnstileAnalyticsUnavailablePublic.description ?? "",
|
|
2262
2288
|
);
|
|
2289
|
+
const TurnstileAnalyticsForbidden = TurnstileAnalyticsForbiddenPublic.extend(internalFields).describe(
|
|
2290
|
+
TurnstileAnalyticsForbiddenPublic.description ?? "",
|
|
2291
|
+
);
|
|
2263
2292
|
const AuditInvalidEvent = AuditInvalidEventPublic.extend(internalFields).describe(
|
|
2264
2293
|
AuditInvalidEventPublic.description ?? "",
|
|
2265
2294
|
);
|
|
@@ -2283,6 +2312,9 @@ const MediaAnalyticsWindow = MediaAnalyticsWindowPublic.extend(internalFields).d
|
|
|
2283
2312
|
const MediaAnalyticsUnavailable = MediaAnalyticsUnavailablePublic.extend(internalFields).describe(
|
|
2284
2313
|
MediaAnalyticsUnavailablePublic.description ?? "",
|
|
2285
2314
|
);
|
|
2315
|
+
const MediaAnalyticsForbidden = MediaAnalyticsForbiddenPublic.extend(internalFields).describe(
|
|
2316
|
+
MediaAnalyticsForbiddenPublic.description ?? "",
|
|
2317
|
+
);
|
|
2286
2318
|
const LeaderboardBoardNotFound = LeaderboardBoardNotFoundPublic.extend(internalFields).describe(
|
|
2287
2319
|
LeaderboardBoardNotFoundPublic.description ?? "",
|
|
2288
2320
|
);
|
|
@@ -2671,6 +2703,7 @@ export const KitErrorPayload = z
|
|
|
2671
2703
|
TurnstileConfig,
|
|
2672
2704
|
TurnstileAnalyticsWindow,
|
|
2673
2705
|
TurnstileAnalyticsUnavailable,
|
|
2706
|
+
TurnstileAnalyticsForbidden,
|
|
2674
2707
|
AuditInvalidEvent,
|
|
2675
2708
|
AuditWriteFailed,
|
|
2676
2709
|
MediaNotFound,
|
|
@@ -2680,6 +2713,7 @@ export const KitErrorPayload = z
|
|
|
2680
2713
|
MediaEnrichmentFailed,
|
|
2681
2714
|
MediaAnalyticsWindow,
|
|
2682
2715
|
MediaAnalyticsUnavailable,
|
|
2716
|
+
MediaAnalyticsForbidden,
|
|
2683
2717
|
LeaderboardBoardNotFound,
|
|
2684
2718
|
LeaderboardEntryNotFound,
|
|
2685
2719
|
LeaderboardScoreRejected,
|
|
@@ -2810,8 +2844,7 @@ export type KitErrorCode = KitErrorPayload["code"];
|
|
|
2810
2844
|
* with it** — that is what this reads. It exists for the one place a code arrives without the payload
|
|
2811
2845
|
* it came from: a `PithyError` raised inside a durable Workflow step, whose only channel out is the
|
|
2812
2846
|
* text the engine records (`../workflow/stepMessage`). Nothing but `code`, `message` and `action`
|
|
2813
|
-
* survives that boundary,
|
|
2814
|
-
* operator to retry a request that was delivered and terminally answered (pithy-sh/pithy#365).
|
|
2847
|
+
* survives that boundary, so the status has to come back from the code.
|
|
2815
2848
|
*
|
|
2816
2849
|
* **The status is recovered, never invented.** A code this does not know — an adopter's own, a
|
|
2817
2850
|
* `d1/*` fault class, a typo — answers `undefined`, and the caller says so with a code of its own
|
package/src/version.generated.ts
CHANGED