@the-inkwell/shared 0.2.252 → 0.2.253

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,4 +1,71 @@
1
1
  import { z } from 'zod/v4';
2
+ export declare const AdminEmbeddingSelectSchema: import("drizzle-zod").BuildSchema<"select", {
3
+ id: import("drizzle-orm/pg-core").PgColumn<{
4
+ name: "id";
5
+ tableName: "embeddings";
6
+ dataType: "string";
7
+ columnType: "PgUUID";
8
+ data: string;
9
+ driverParam: string;
10
+ notNull: true;
11
+ hasDefault: true;
12
+ isPrimaryKey: true;
13
+ isAutoincrement: false;
14
+ hasRuntimeDefault: false;
15
+ enumValues: undefined;
16
+ baseColumn: never;
17
+ identity: undefined;
18
+ generated: undefined;
19
+ }, {}, {}>;
20
+ text: import("drizzle-orm/pg-core").PgColumn<{
21
+ name: "text";
22
+ tableName: "embeddings";
23
+ dataType: "string";
24
+ columnType: "PgText";
25
+ data: string;
26
+ driverParam: string;
27
+ notNull: true;
28
+ hasDefault: false;
29
+ isPrimaryKey: false;
30
+ isAutoincrement: false;
31
+ hasRuntimeDefault: false;
32
+ enumValues: [string, ...string[]];
33
+ baseColumn: never;
34
+ identity: undefined;
35
+ generated: undefined;
36
+ }, {}, {}>;
37
+ embedding: import("drizzle-orm/pg-core").PgColumn<{
38
+ name: "vector";
39
+ tableName: "embeddings";
40
+ dataType: "array";
41
+ columnType: "PgVector";
42
+ data: number[];
43
+ driverParam: string;
44
+ notNull: true;
45
+ hasDefault: false;
46
+ isPrimaryKey: false;
47
+ isAutoincrement: false;
48
+ hasRuntimeDefault: false;
49
+ enumValues: undefined;
50
+ baseColumn: never;
51
+ identity: undefined;
52
+ generated: undefined;
53
+ }, {}, {
54
+ dimensions: 1536;
55
+ }>;
56
+ }, undefined, undefined>;
57
+ export declare const AdminEmbeddingParamsSchema: z.ZodObject<{
58
+ id: z.ZodUUID;
59
+ }, {
60
+ out: {};
61
+ in: {};
62
+ }>;
63
+ export declare const AdminEmbeddingByTextSchema: z.ZodObject<{
64
+ text: z.ZodString;
65
+ }, {
66
+ out: {};
67
+ in: {};
68
+ }>;
2
69
  export declare const AdminEmbeddingCreateSchema: z.ZodObject<{
3
70
  text: z.ZodString;
4
71
  }, {
@@ -11,5 +78,8 @@ export declare const AdminEmbeddingCreateResultSchema: z.ZodObject<{
11
78
  out: {};
12
79
  in: {};
13
80
  }>;
81
+ export type AdminEmbeddingResult = z.infer<typeof AdminEmbeddingSelectSchema>;
82
+ export type AdminEmbeddingParams = z.infer<typeof AdminEmbeddingParamsSchema>;
83
+ export type AdminEmbeddingByTextParams = z.infer<typeof AdminEmbeddingByTextSchema>;
14
84
  export type AdminEmbeddingCreateInput = z.infer<typeof AdminEmbeddingCreateSchema>;
15
85
  export type AdminEmbeddingCreateResult = z.infer<typeof AdminEmbeddingCreateResultSchema>;
@@ -1,9 +1,16 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.AdminEmbeddingCreateResultSchema = exports.AdminEmbeddingCreateSchema = void 0;
3
+ exports.AdminEmbeddingCreateResultSchema = exports.AdminEmbeddingCreateSchema = exports.AdminEmbeddingByTextSchema = exports.AdminEmbeddingParamsSchema = exports.AdminEmbeddingSelectSchema = void 0;
4
4
  const core_1 = require("../../core");
5
5
  const drizzle_zod_1 = require("drizzle-zod");
6
6
  //// validators
7
+ exports.AdminEmbeddingSelectSchema = (0, drizzle_zod_1.createSelectSchema)(core_1.embedding);
8
+ exports.AdminEmbeddingParamsSchema = exports.AdminEmbeddingSelectSchema.pick({
9
+ id: true
10
+ });
11
+ exports.AdminEmbeddingByTextSchema = exports.AdminEmbeddingSelectSchema.pick({
12
+ text: true
13
+ });
7
14
  exports.AdminEmbeddingCreateSchema = (0, drizzle_zod_1.createInsertSchema)(core_1.embedding).pick({
8
15
  text: true
9
16
  });
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/schema/admin/embeddings/index.ts"],"names":[],"mappings":";;;AACA,qCAAsC;AACtC,6CAAoE;AACpE,eAAe;AAEF,QAAA,0BAA0B,GAAG,IAAA,gCAAkB,EAAC,gBAAS,CAAC,CAAC,IAAI,CAAC;IAC3E,IAAI,EAAE,IAAI;CACX,CAAC,CAAA;AAEW,QAAA,gCAAgC,GAAG,IAAA,gCAAkB,EAChE,gBAAS,CACV,CAAC,IAAI,CAAC;IACL,EAAE,EAAE,IAAI;CACT,CAAC,CAAA","sourcesContent":["import { z } from 'zod/v4'\nimport { embedding } from '../../core'\nimport { createInsertSchema, createSelectSchema } from 'drizzle-zod'\n//// validators\n\nexport const AdminEmbeddingCreateSchema = createInsertSchema(embedding).pick({\n text: true\n})\n\nexport const AdminEmbeddingCreateResultSchema = createSelectSchema(\n embedding\n).pick({\n id: true\n})\n\n//// types\n\nexport type AdminEmbeddingCreateInput = z.infer<\n typeof AdminEmbeddingCreateSchema\n>\nexport type AdminEmbeddingCreateResult = z.infer<\n typeof AdminEmbeddingCreateResultSchema\n>\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/schema/admin/embeddings/index.ts"],"names":[],"mappings":";;;AACA,qCAAsC;AACtC,6CAAoE;AACpE,eAAe;AAEF,QAAA,0BAA0B,GAAG,IAAA,gCAAkB,EAAC,gBAAS,CAAC,CAAA;AAE1D,QAAA,0BAA0B,GAAG,kCAA0B,CAAC,IAAI,CAAC;IACxE,EAAE,EAAE,IAAI;CACT,CAAC,CAAA;AACW,QAAA,0BAA0B,GAAG,kCAA0B,CAAC,IAAI,CAAC;IACxE,IAAI,EAAE,IAAI;CACX,CAAC,CAAA;AAEW,QAAA,0BAA0B,GAAG,IAAA,gCAAkB,EAAC,gBAAS,CAAC,CAAC,IAAI,CAAC;IAC3E,IAAI,EAAE,IAAI;CACX,CAAC,CAAA;AAEW,QAAA,gCAAgC,GAAG,IAAA,gCAAkB,EAChE,gBAAS,CACV,CAAC,IAAI,CAAC;IACL,EAAE,EAAE,IAAI;CACT,CAAC,CAAA","sourcesContent":["import { z } from 'zod/v4'\nimport { embedding } from '../../core'\nimport { createInsertSchema, createSelectSchema } from 'drizzle-zod'\n//// validators\n\nexport const AdminEmbeddingSelectSchema = createSelectSchema(embedding)\n\nexport const AdminEmbeddingParamsSchema = AdminEmbeddingSelectSchema.pick({\n id: true\n})\nexport const AdminEmbeddingByTextSchema = AdminEmbeddingSelectSchema.pick({\n text: true\n})\n\nexport const AdminEmbeddingCreateSchema = createInsertSchema(embedding).pick({\n text: true\n})\n\nexport const AdminEmbeddingCreateResultSchema = createSelectSchema(\n embedding\n).pick({\n id: true\n})\n\n//// types\n\nexport type AdminEmbeddingResult = z.infer<typeof AdminEmbeddingSelectSchema>\nexport type AdminEmbeddingParams = z.infer<typeof AdminEmbeddingParamsSchema>\nexport type AdminEmbeddingByTextParams = z.infer<\n typeof AdminEmbeddingByTextSchema\n>\n\nexport type AdminEmbeddingCreateInput = z.infer<\n typeof AdminEmbeddingCreateSchema\n>\nexport type AdminEmbeddingCreateResult = z.infer<\n typeof AdminEmbeddingCreateResultSchema\n>\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@the-inkwell/shared",
3
- "version": "0.2.252",
3
+ "version": "0.2.253",
4
4
  "description": "Shared code for Inkwell",
5
5
  "license": "ISC",
6
6
  "author": "Inkwell (Rob Yedlin & Saimon Alam)",