@workers-community/workers-types 4.20250619.0 → 4.20250627.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 (3) hide show
  1. package/index.d.ts +17 -1
  2. package/index.ts +17 -1
  3. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -5877,7 +5877,7 @@ type AiModelListType = Record<string, any>;
5877
5877
  declare abstract class Ai<AiModelList extends AiModelListType = AiModels> {
5878
5878
  aiGatewayLogId: string | null;
5879
5879
  gateway(gatewayId: string): AiGateway;
5880
- autorag(autoragId: string): AutoRAG;
5880
+ autorag(autoragId?: string): AutoRAG;
5881
5881
  run<
5882
5882
  Name extends keyof AiModelList,
5883
5883
  Options extends AiOptions,
@@ -7281,6 +7281,22 @@ declare module "cloudflare:email" {
7281
7281
  };
7282
7282
  export { _EmailMessage as EmailMessage };
7283
7283
  }
7284
+ /**
7285
+ * Hello World binding to serve as an explanatory example. DO NOT USE
7286
+ */
7287
+ interface HelloWorldBinding {
7288
+ /**
7289
+ * Retrieve the current stored value
7290
+ */
7291
+ get(): Promise<{
7292
+ value: string;
7293
+ ms?: number;
7294
+ }>;
7295
+ /**
7296
+ * Set a new stored value
7297
+ */
7298
+ set(value: string): Promise<void>;
7299
+ }
7284
7300
  interface Hyperdrive {
7285
7301
  /**
7286
7302
  * Connect directly to Hyperdrive as if it's your database, returning a TCP socket.
package/index.ts CHANGED
@@ -5893,7 +5893,7 @@ export declare abstract class Ai<
5893
5893
  > {
5894
5894
  aiGatewayLogId: string | null;
5895
5895
  gateway(gatewayId: string): AiGateway;
5896
- autorag(autoragId: string): AutoRAG;
5896
+ autorag(autoragId?: string): AutoRAG;
5897
5897
  run<
5898
5898
  Name extends keyof AiModelList,
5899
5899
  Options extends AiOptions,
@@ -7302,6 +7302,22 @@ export declare type EmailExportedHandler<Env = unknown> = (
7302
7302
  env: Env,
7303
7303
  ctx: ExecutionContext,
7304
7304
  ) => void | Promise<void>;
7305
+ /**
7306
+ * Hello World binding to serve as an explanatory example. DO NOT USE
7307
+ */
7308
+ export interface HelloWorldBinding {
7309
+ /**
7310
+ * Retrieve the current stored value
7311
+ */
7312
+ get(): Promise<{
7313
+ value: string;
7314
+ ms?: number;
7315
+ }>;
7316
+ /**
7317
+ * Set a new stored value
7318
+ */
7319
+ set(value: string): Promise<void>;
7320
+ }
7305
7321
  export interface Hyperdrive {
7306
7322
  /**
7307
7323
  * Connect directly to Hyperdrive as if it's your database, returning a TCP socket.
package/package.json CHANGED
@@ -7,7 +7,7 @@
7
7
  },
8
8
  "author": "Workers Community",
9
9
  "license": "MIT OR Apache-2.0",
10
- "version": "4.20250619.0",
10
+ "version": "4.20250627.0",
11
11
  "exports": {
12
12
  ".": {
13
13
  "types": "./index.d.ts",