@prisma/orm-extension-pgvector 8.0.0-rc.12-dev.15 → 8.0.0-rc.12-dev.17
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/dist/{codec-types-mfQHjKA0-CAfGpjP_.d.mts → codec-types-BMIVhq93-EFF4mnLc.d.mts} +3 -8
- package/dist/codec-types-BMIVhq93-EFF4mnLc.d.mts.map +1 -0
- package/dist/codec-types.d.mts +1 -1
- package/dist/column-types.d.mts +2 -1
- package/dist/column-types.d.mts.map +1 -1
- package/dist/constants-BjLQgqqq-CMdE2ode.d.mts +9 -0
- package/dist/constants-BjLQgqqq-CMdE2ode.d.mts.map +1 -0
- package/dist/pack.d.mts +1 -1
- package/package.json +9 -9
- package/dist/codec-types-mfQHjKA0-CAfGpjP_.d.mts.map +0 -1
|
@@ -1,15 +1,10 @@
|
|
|
1
|
+
import { t as VECTOR_CODEC_ID } from "./constants-BjLQgqqq-CMdE2ode.mjs";
|
|
1
2
|
import { AnyCodecDescriptor, CodecCallContext, CodecImpl, CodecInstanceContext } from "@prisma/orm-framework/components/codec";
|
|
2
3
|
import { ExtractCodecTypes, ProjectionExpr } from "@prisma/orm-family-sql/relational-core/ast";
|
|
3
4
|
import { PostgresCodecDescriptor } from "@prisma/orm-target-postgres/target/codec-descriptor";
|
|
4
5
|
import { JsonValue } from "@prisma/orm-framework/contract/types";
|
|
5
6
|
import { StandardSchemaV1 } from "@standard-schema/spec";
|
|
6
|
-
//#region ../../../3-extensions/pgvector/dist/codec-types-
|
|
7
|
-
//#region src/core/constants.d.ts
|
|
8
|
-
/**
|
|
9
|
-
* Codec ID for pgvector's vector type.
|
|
10
|
-
*/
|
|
11
|
-
declare const VECTOR_CODEC_ID: "pg/vector@1";
|
|
12
|
-
//#endregion
|
|
7
|
+
//#region ../../../3-extensions/pgvector/dist/codec-types-BMIVhq93.d.mts
|
|
13
8
|
//#region src/core/codecs.d.ts
|
|
14
9
|
type VectorConversionCode = 'RUNTIME.ENCODE_FAILED' | 'RUNTIME.DECODE_FAILED';
|
|
15
10
|
type VectorParams = {
|
|
@@ -53,4 +48,4 @@ type Vector<N extends number = number> = number[] & {
|
|
|
53
48
|
type CodecTypes = CodecTypes$1;
|
|
54
49
|
//#endregion
|
|
55
50
|
export { Vector as n, CodecTypes as t };
|
|
56
|
-
//# sourceMappingURL=codec-types-
|
|
51
|
+
//# sourceMappingURL=codec-types-BMIVhq93-EFF4mnLc.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"codec-types-BMIVhq93-EFF4mnLc.d.mts","names":[],"sources":["../../../../3-extensions/pgvector/dist/codec-types-BMIVhq93.d.mts"],"mappings":";;;;;;;;KAOK;KACA;WACM;;cAEG,sBAAsB,iBAAiB;WAC1C;EACT,YAAY,YAAY,oBAAoB;EAC5C,aAAa,gBAAgB,MAAM,+BAA+B;EAClE,OAAO,iBAAiB,MAAM,mBAAmB;EACjD,OAAO,cAAc,MAAM,mBAAmB;EAC9C,WAAW,kBAAkB;EAC7B,WAAW,MAAM;;cAEL,2BAA2B,wBAAwB;YACrD;YACA,eAAe,YAAY,iBAAiB;WAC7C,yDAAyD;WACzD;WACA;WACA;WACA,cAAc,iBAAiB;EACxC,iBAAiB,QAAQ;EACzB,QAAQ,QAAQ,gBAAgB,KAAK,yBAAyB;;cAElD;WACH,QAAQ;;KAEd,eAAe,yBAAyB;;;;;;;;;KASxC,OAAO;WACD,iBAAiB;;KAEvB,aAAa"}
|
package/dist/codec-types.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as Vector, t as CodecTypes } from "./codec-types-
|
|
1
|
+
import { n as Vector, t as CodecTypes } from "./codec-types-BMIVhq93-EFF4mnLc.mjs";
|
|
2
2
|
export type { CodecTypes, Vector };
|
package/dist/column-types.d.mts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { t as VECTOR_CODEC_ID } from "./constants-BjLQgqqq-CMdE2ode.mjs";
|
|
1
2
|
import { ColumnTypeDescriptor } from "@prisma/orm-framework/components/codec";
|
|
2
3
|
//#region ../../../3-extensions/pgvector/dist/column-types.d.mts
|
|
3
4
|
//#region src/exports/column-types.d.ts
|
|
@@ -13,7 +14,7 @@ import { ColumnTypeDescriptor } from "@prisma/orm-framework/components/codec";
|
|
|
13
14
|
* @returns A column type descriptor with `typeParams.length` set
|
|
14
15
|
* @throws `CONTRACT.ARGUMENT_INVALID` if length is not an integer in the range [1, VECTOR_MAX_DIM]
|
|
15
16
|
*/
|
|
16
|
-
declare function vector<N extends number>(length: N): ColumnTypeDescriptor & {
|
|
17
|
+
declare function vector<N extends number>(length: N): ColumnTypeDescriptor<typeof VECTOR_CODEC_ID> & {
|
|
17
18
|
readonly typeParams: {
|
|
18
19
|
readonly length: N;
|
|
19
20
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"column-types.d.mts","names":[],"sources":["../../../../3-extensions/pgvector/dist/column-types.d.mts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"column-types.d.mts","names":[],"sources":["../../../../3-extensions/pgvector/dist/column-types.d.mts"],"mappings":";;;;;;;;;;;;;;;;iBAeiB,OAAO,kBAAkB,QAAQ,IAAI,4BAA4B;WACvE;aACE,QAAQ"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
//#region ../../../3-extensions/pgvector/dist/constants-BjLQgqqq.d.mts
|
|
2
|
+
//#region src/core/constants.d.ts
|
|
3
|
+
/**
|
|
4
|
+
* Codec ID for pgvector's vector type.
|
|
5
|
+
*/
|
|
6
|
+
declare const VECTOR_CODEC_ID: "pg/vector@1";
|
|
7
|
+
//#endregion
|
|
8
|
+
export { VECTOR_CODEC_ID as t };
|
|
9
|
+
//# sourceMappingURL=constants-BjLQgqqq-CMdE2ode.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants-BjLQgqqq-CMdE2ode.d.mts","names":[],"sources":["../../../../3-extensions/pgvector/dist/constants-BjLQgqqq.d.mts"],"mappings":";;;;;cAIc"}
|
package/dist/pack.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as CodecTypes } from "./codec-types-
|
|
1
|
+
import { t as CodecTypes } from "./codec-types-BMIVhq93-EFF4mnLc.mjs";
|
|
2
2
|
import "./operation-types-D37jCdyS-ClyVMplO.mjs";
|
|
3
3
|
//#region ../../../3-extensions/pgvector/dist/pack.d.mts
|
|
4
4
|
//#region src/core/descriptor-meta.d.ts
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prisma/orm-extension-pgvector",
|
|
3
|
-
"version": "8.0.0-rc.12-dev.
|
|
3
|
+
"version": "8.0.0-rc.12-dev.17",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -9,22 +9,22 @@
|
|
|
9
9
|
"dist"
|
|
10
10
|
],
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"@prisma/orm-family-sql": "8.0.0-rc.12-dev.
|
|
13
|
-
"@prisma/orm-framework": "8.0.0-rc.12-dev.
|
|
14
|
-
"@prisma/orm-toolchain": "8.0.0-rc.12-dev.
|
|
12
|
+
"@prisma/orm-family-sql": "8.0.0-rc.12-dev.17",
|
|
13
|
+
"@prisma/orm-framework": "8.0.0-rc.12-dev.17",
|
|
14
|
+
"@prisma/orm-toolchain": "8.0.0-rc.12-dev.17",
|
|
15
15
|
"@standard-schema/spec": "^1.1.0",
|
|
16
16
|
"arktype": "^2.2.2"
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
19
|
-
"@internal/extension-pgvector": "8.0.0-rc.12-dev.
|
|
20
|
-
"@repo/tsconfig": "8.0.0-rc.12-dev.
|
|
21
|
-
"@repo/tsdown": "8.0.0-rc.12-dev.
|
|
22
|
-
"@prisma/orm-target-postgres": "8.0.0-rc.12-dev.
|
|
19
|
+
"@internal/extension-pgvector": "8.0.0-rc.12-dev.17",
|
|
20
|
+
"@repo/tsconfig": "8.0.0-rc.12-dev.17",
|
|
21
|
+
"@repo/tsdown": "8.0.0-rc.12-dev.17",
|
|
22
|
+
"@prisma/orm-target-postgres": "8.0.0-rc.12-dev.17",
|
|
23
23
|
"tsdown": "0.22.14",
|
|
24
24
|
"typescript": "5.9.3"
|
|
25
25
|
},
|
|
26
26
|
"peerDependencies": {
|
|
27
|
-
"@prisma/orm-target-postgres": "8.0.0-rc.12-dev.
|
|
27
|
+
"@prisma/orm-target-postgres": "8.0.0-rc.12-dev.17",
|
|
28
28
|
"typescript": ">=5.9"
|
|
29
29
|
},
|
|
30
30
|
"peerDependenciesMeta": {
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"codec-types-mfQHjKA0-CAfGpjP_.d.mts","names":[],"sources":["../../../../3-extensions/pgvector/dist/codec-types-mfQHjKA0.d.mts"],"mappings":";;;;;;;;;;cASc;;;KAGT;KACA;WACM;;cAEG,sBAAsB,iBAAiB;WAC1C;EACT,YAAY,YAAY,oBAAoB;EAC5C,aAAa,gBAAgB,MAAM,+BAA+B;EAClE,OAAO,iBAAiB,MAAM,mBAAmB;EACjD,OAAO,cAAc,MAAM,mBAAmB;EAC9C,WAAW,kBAAkB;EAC7B,WAAW,MAAM;;cAEL,2BAA2B,wBAAwB;YACrD;YACA,eAAe,YAAY,iBAAiB;WAC7C,yDAAyD;WACzD;WACA;WACA;WACA,cAAc,iBAAiB;EACxC,iBAAiB,QAAQ;EACzB,QAAQ,QAAQ,gBAAgB,KAAK,yBAAyB;;cAElD;WACH,QAAQ;;KAEd,eAAe,yBAAyB;;;;;;;;;KASxC,OAAO;WACD,iBAAiB;;KAEvB,aAAa"}
|