@pithy-sh/cloudflare 0.1.5 → 0.1.6

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.
@@ -1 +1 @@
1
- {"version":3,"file":"r2Credentials.d.ts","sourceRoot":"","sources":["../../src/r2/r2Credentials.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;;GAIG;AACH,eAAO,MAAM,aAAa;;;iBAKiE,CAAC;AAC5F,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC"}
1
+ {"version":3,"file":"r2Credentials.d.ts","sourceRoot":"","sources":["../../src/r2/r2Credentials.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;;GAIG;AACH,eAAO,MAAM,aAAa;;;iBASiE,CAAC;AAC5F,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC"}
@@ -8,8 +8,8 @@ import { z } from "zod";
8
8
  * `@pithy-sh/secrets` validates the persisted credential envelope against it.
9
9
  */
10
10
  const R2Credentials = z.object({
11
- accessKeyId: z.string().min(1).describe("The R2 S3 access key id."),
12
- secretAccessKey: z.string().min(1).describe("The R2 S3 secret access key. Never logged or serialized to clients.")
11
+ accessKeyId: z.string().min(1).meta({ multiline: false }).describe("The R2 S3 access key id."),
12
+ secretAccessKey: z.string().min(1).meta({ multiline: false }).describe("The R2 S3 secret access key. Never logged or serialized to clients.")
13
13
  }).describe("The S3-compatible access-key/secret-key pair R2 uses to sign presigned URLs.");
14
14
  //#endregion
15
15
  export { R2Credentials };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pithy-sh/cloudflare",
3
- "version": "0.1.5",
3
+ "version": "0.1.6",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",
@@ -36,7 +36,7 @@
36
36
  "@aws-sdk/client-s3": "^3.1111.0",
37
37
  "@aws-sdk/s3-request-presigner": "^3.1111.0",
38
38
  "@cloudflare/workers-types": "^5.20260729.1",
39
- "@pithy-sh/core": "^0.2.0",
39
+ "@pithy-sh/core": "^0.3.0",
40
40
  "cloudflare": "^7.0.0",
41
41
  "js-base64": "^3.9.2"
42
42
  },
@@ -10,8 +10,12 @@ import { z } from "zod";
10
10
  */
11
11
  export const R2Credentials = z
12
12
  .object({
13
- accessKeyId: z.string().min(1).describe("The R2 S3 access key id."),
14
- secretAccessKey: z.string().min(1).describe("The R2 S3 secret access key. Never logged or serialized to clients."),
13
+ accessKeyId: z.string().min(1).meta({ multiline: false }).describe("The R2 S3 access key id."),
14
+ secretAccessKey: z
15
+ .string()
16
+ .min(1)
17
+ .meta({ multiline: false })
18
+ .describe("The R2 S3 secret access key. Never logged or serialized to clients."),
15
19
  })
16
20
  .describe("The S3-compatible access-key/secret-key pair R2 uses to sign presigned URLs.");
17
21
  export type R2Credentials = z.infer<typeof R2Credentials>;