@zodic/shared 0.0.29 → 0.0.31

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": "@zodic/shared",
3
- "version": "0.0.29",
3
+ "version": "0.0.31",
4
4
  "module": "index.ts",
5
5
  "type": "module",
6
6
  "publishConfig": {
@@ -4,6 +4,7 @@ import {
4
4
  KVNamespace,
5
5
  R2Bucket,
6
6
  } from '@cloudflare/workers-types';
7
+ import { DrizzleD1Database } from 'drizzle-orm/d1';
7
8
  import { Context, Env } from 'hono';
8
9
  import type { Container } from 'inversify';
9
10
 
@@ -30,6 +31,7 @@ export type CentralBindings = {
30
31
  PROMPT_GENERATE_USER_LUMINOUS_SELF: string;
31
32
  AI: Ai;
32
33
  DB: D1Database;
34
+ DRIZZLE: DrizzleD1Database;
33
35
  JWT_SECRET: string;
34
36
  CLOUDFLARE_DATABASE_ID: string;
35
37
  CLOUDFLARE_D1_TOKEN: string;
@@ -65,6 +67,7 @@ export type Variables = {
65
67
  roles?: string[];
66
68
  };
67
69
  container: Container;
70
+ drizzle: DrizzleD1Database;
68
71
  };
69
72
 
70
73
  export type BackendBindings = Env &
@@ -149,6 +152,7 @@ export type AuthBindings = Env &
149
152
  | 'ISSUER'
150
153
  | 'DB'
151
154
  | 'CLOUDFLARE_ACCOUNT_ID'
155
+ | 'DRIZZLE'
152
156
  >;
153
157
 
154
158
  export type AuthCtx = Context<