@prisma-next/extension-pgvector 0.1.0-pr.32.8 → 0.1.0-pr.34.1
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/exports/control.d.ts +1 -86
- package/dist/exports/runtime.d.ts +1 -7
- package/package.json +13 -4
|
@@ -1,89 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
* Specifies how to import TypeScript types from a package.
|
|
3
|
-
* Used in extension pack manifests to declare codec and operation type imports.
|
|
4
|
-
*/
|
|
5
|
-
interface TypesImportSpec {
|
|
6
|
-
readonly package: string;
|
|
7
|
-
readonly named: string;
|
|
8
|
-
readonly alias: string;
|
|
9
|
-
}
|
|
10
|
-
type ArgSpecManifest = {
|
|
11
|
-
readonly kind: 'typeId';
|
|
12
|
-
readonly type: string;
|
|
13
|
-
} | {
|
|
14
|
-
readonly kind: 'param';
|
|
15
|
-
} | {
|
|
16
|
-
readonly kind: 'literal';
|
|
17
|
-
};
|
|
18
|
-
type ReturnSpecManifest = {
|
|
19
|
-
readonly kind: 'typeId';
|
|
20
|
-
readonly type: string;
|
|
21
|
-
} | {
|
|
22
|
-
readonly kind: 'builtin';
|
|
23
|
-
readonly type: 'number' | 'boolean' | 'string';
|
|
24
|
-
};
|
|
25
|
-
interface LoweringSpecManifest {
|
|
26
|
-
readonly targetFamily: 'sql';
|
|
27
|
-
readonly strategy: 'infix' | 'function';
|
|
28
|
-
readonly template: string;
|
|
29
|
-
}
|
|
30
|
-
interface OperationManifest {
|
|
31
|
-
readonly for: string;
|
|
32
|
-
readonly method: string;
|
|
33
|
-
readonly args: ReadonlyArray<ArgSpecManifest>;
|
|
34
|
-
readonly returns: ReturnSpecManifest;
|
|
35
|
-
readonly lowering: LoweringSpecManifest;
|
|
36
|
-
readonly capabilities?: ReadonlyArray<string>;
|
|
37
|
-
}
|
|
38
|
-
interface ExtensionPackManifest {
|
|
39
|
-
readonly id: string;
|
|
40
|
-
readonly version: string;
|
|
41
|
-
readonly targets?: Record<string, {
|
|
42
|
-
readonly minVersion?: string;
|
|
43
|
-
}>;
|
|
44
|
-
readonly capabilities?: Record<string, unknown>;
|
|
45
|
-
readonly types?: {
|
|
46
|
-
readonly codecTypes?: {
|
|
47
|
-
readonly import: TypesImportSpec;
|
|
48
|
-
};
|
|
49
|
-
readonly operationTypes?: {
|
|
50
|
-
readonly import: TypesImportSpec;
|
|
51
|
-
};
|
|
52
|
-
readonly storage?: readonly {
|
|
53
|
-
readonly typeId: string;
|
|
54
|
-
readonly familyId: string;
|
|
55
|
-
readonly targetId: string;
|
|
56
|
-
readonly nativeType?: string;
|
|
57
|
-
}[];
|
|
58
|
-
};
|
|
59
|
-
readonly operations?: ReadonlyArray<OperationManifest>;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
/**
|
|
63
|
-
* Base interface for control-plane extension instances.
|
|
64
|
-
*
|
|
65
|
-
* @template TFamilyId - The family ID (e.g., 'sql', 'document')
|
|
66
|
-
* @template TTargetId - The target ID (e.g., 'postgres', 'mysql')
|
|
67
|
-
*/
|
|
68
|
-
interface ControlExtensionInstance<TFamilyId extends string = string, TTargetId extends string = string> {
|
|
69
|
-
readonly familyId: TFamilyId;
|
|
70
|
-
readonly targetId: TTargetId;
|
|
71
|
-
}
|
|
72
|
-
/**
|
|
73
|
-
* Descriptor for a control-plane extension pack (e.g., pgvector).
|
|
74
|
-
*
|
|
75
|
-
* @template TFamilyId - The family ID (e.g., 'sql', 'document')
|
|
76
|
-
* @template TTargetId - The target ID (e.g., 'postgres', 'mysql')
|
|
77
|
-
* @template TExtensionInstance - The extension instance type
|
|
78
|
-
*/
|
|
79
|
-
interface ControlExtensionDescriptor<TFamilyId extends string, TTargetId extends string, TExtensionInstance extends ControlExtensionInstance<TFamilyId, TTargetId> = ControlExtensionInstance<TFamilyId, TTargetId>> {
|
|
80
|
-
readonly kind: 'extension';
|
|
81
|
-
readonly id: string;
|
|
82
|
-
readonly familyId: TFamilyId;
|
|
83
|
-
readonly targetId: TTargetId;
|
|
84
|
-
readonly manifest: ExtensionPackManifest;
|
|
85
|
-
create(): TExtensionInstance;
|
|
86
|
-
}
|
|
1
|
+
import { ControlExtensionDescriptor } from '@prisma-next/core-control-plane/types';
|
|
87
2
|
|
|
88
3
|
/**
|
|
89
4
|
* pgvector extension descriptor for CLI config.
|
|
@@ -1,10 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { CodecRegistry } from '@prisma-next/sql-relational-core/ast';
|
|
3
|
-
|
|
4
|
-
interface Extension {
|
|
5
|
-
codecs?(): CodecRegistry;
|
|
6
|
-
operations?(): ReadonlyArray<SqlOperationSignature>;
|
|
7
|
-
}
|
|
1
|
+
import { Extension } from '@prisma-next/sql-runtime';
|
|
8
2
|
|
|
9
3
|
/**
|
|
10
4
|
* Creates a pgvector extension instance for runtime registration.
|
package/package.json
CHANGED
|
@@ -1,19 +1,28 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prisma-next/extension-pgvector",
|
|
3
|
-
"version": "0.1.0-pr.
|
|
3
|
+
"version": "0.1.0-pr.34.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"dependencies": {
|
|
7
7
|
"arktype": "^2.0.0",
|
|
8
|
-
"@prisma-next/cli": "0.1.0-pr.
|
|
9
|
-
"@prisma-next/
|
|
10
|
-
"@prisma-next/
|
|
8
|
+
"@prisma-next/cli": "0.1.0-pr.34.1",
|
|
9
|
+
"@prisma-next/contract": "0.1.0-pr.34.1",
|
|
10
|
+
"@prisma-next/contract-authoring": "0.1.0-pr.34.1",
|
|
11
|
+
"@prisma-next/core-control-plane": "0.1.0-pr.34.1",
|
|
12
|
+
"@prisma-next/sql-operations": "0.1.0-pr.34.1",
|
|
13
|
+
"@prisma-next/sql-relational-core": "0.1.0-pr.34.1",
|
|
14
|
+
"@prisma-next/sql-runtime": "0.1.0-pr.34.1"
|
|
11
15
|
},
|
|
12
16
|
"devDependencies": {
|
|
13
17
|
"tsup": "^8.3.0",
|
|
14
18
|
"typescript": "^5.9.3",
|
|
15
19
|
"vite-tsconfig-paths": "^5.1.4",
|
|
16
20
|
"vitest": "^2.1.1",
|
|
21
|
+
"@prisma-next/adapter-postgres": "0.1.0-pr.34.1",
|
|
22
|
+
"@prisma-next/operations": "0.1.0-pr.34.1",
|
|
23
|
+
"@prisma-next/sql-contract": "0.1.0-pr.34.1",
|
|
24
|
+
"@prisma-next/sql-contract-ts": "0.1.0-pr.34.1",
|
|
25
|
+
"@prisma-next/sql-lane": "0.1.0-pr.34.1",
|
|
17
26
|
"@prisma-next/test-utils": "0.0.1"
|
|
18
27
|
},
|
|
19
28
|
"files": [
|