@distilled.cloud/cloudflare 0.10.1 → 0.10.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@distilled.cloud/cloudflare",
3
- "version": "0.10.1",
3
+ "version": "0.10.2",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/alchemy-run/distilled",
@@ -56,14 +56,14 @@
56
56
  "fmt": "oxfmt --write src",
57
57
  "lint": "oxlint --fix src",
58
58
  "check": "tsgo && oxlint src && oxfmt --check src",
59
- "test": "bunx vitest run test --exclude specs",
59
+ "test": "vitest run --exclude specs",
60
60
  "publish:npm": "bun run build && bun publish --access public",
61
61
  "generate": "bun run scripts/generate.ts && oxlint --fix src && oxfmt --write src && oxfmt --write src",
62
62
  "specs:fetch": "git submodule update --force --init --recursive --depth=1 specs/cloudflare-typescript && git -C specs/cloudflare-typescript checkout -- .",
63
63
  "specs:update": "git -C specs/cloudflare-typescript fetch && git -C specs/cloudflare-typescript checkout main && git -C specs/cloudflare-typescript pull"
64
64
  },
65
65
  "dependencies": {
66
- "@distilled.cloud/core": "0.10.1",
66
+ "@distilled.cloud/core": "0.10.2",
67
67
  "effect": "4.0.0-beta.48"
68
68
  },
69
69
  "devDependencies": {
@@ -1068,11 +1068,12 @@ export interface PushMessageRequest {
1068
1068
  export const PushMessageRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1069
1069
  queueId: Schema.String.pipe(T.HttpPath("queueId")),
1070
1070
  accountId: Schema.String.pipe(T.HttpPath("account_id")),
1071
- body: Schema.optional(Schema.String).pipe(T.HttpBody()),
1071
+ body: Schema.optional(Schema.String),
1072
1072
  contentType: Schema.optional(Schema.Literal("text")),
1073
1073
  delaySeconds: Schema.optional(Schema.Number),
1074
1074
  }).pipe(
1075
1075
  Schema.encodeKeys({
1076
+ body: "body",
1076
1077
  contentType: "content_type",
1077
1078
  delaySeconds: "delay_seconds",
1078
1079
  }),
@@ -20,7 +20,7 @@ export class InvalidCredential extends Schema.TaggedErrorClass<InvalidCredential
20
20
  "InvalidCredential",
21
21
  { code: Schema.Number, message: Schema.String },
22
22
  ) {}
23
- T.applyErrorMatchers(InvalidCredential, [{ code: 30004 }]);
23
+ T.applyErrorMatchers(InvalidCredential, [{ code: 30004 }, { code: 30005 }]);
24
24
 
25
25
  export class InvalidRoute extends Schema.TaggedErrorClass<InvalidRoute>()(
26
26
  "InvalidRoute",
@@ -70,7 +70,7 @@ export const CreateTraceRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
70
70
  plainText: "plain_text",
71
71
  }),
72
72
  ),
73
- ).pipe(T.HttpBody()),
73
+ ),
74
74
  context: Schema.optional(
75
75
  Schema.Struct({
76
76
  botScore: Schema.optional(Schema.Number),
@@ -120,6 +120,7 @@ export const CreateTraceRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
120
120
  Schema.encodeKeys({
121
121
  method: "method",
122
122
  url: "url",
123
+ body: "body",
123
124
  context: "context",
124
125
  cookies: "cookies",
125
126
  headers: "headers",
@@ -7481,10 +7481,10 @@ export const PutScriptResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
7481
7481
 
7482
7482
  export type PutScriptError =
7483
7483
  | DefaultErrors
7484
- | DuplicateMigrationTarget
7485
7484
  | InvalidRoute
7486
7485
  | InvalidWorkerScript
7487
- | DurableObjectMustBeSqlite;
7486
+ | DurableObjectMustBeSqlite
7487
+ | DuplicateMigrationTarget;
7488
7488
 
7489
7489
  export const putScript: API.OperationMethod<
7490
7490
  PutScriptRequest,
@@ -7495,10 +7495,10 @@ export const putScript: API.OperationMethod<
7495
7495
  input: PutScriptRequest,
7496
7496
  output: PutScriptResponse,
7497
7497
  errors: [
7498
- DuplicateMigrationTarget,
7499
7498
  InvalidRoute,
7500
7499
  InvalidWorkerScript,
7501
7500
  DurableObjectMustBeSqlite,
7501
+ DuplicateMigrationTarget,
7502
7502
  ],
7503
7503
  }));
7504
7504