@prisma/orm-extension-paradedb 0.16.0-dev.36

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/LICENSE ADDED
@@ -0,0 +1,201 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright [2026] [Prisma Data, Inc]
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
package/README.md ADDED
@@ -0,0 +1,29 @@
1
+ # @prisma/orm-extension-paradedb
2
+
3
+ BM25 full-text search indexes for Prisma Next on PostgreSQL, powered by [ParadeDB](https://paradedb.com).
4
+
5
+ ```bash
6
+ pnpm add @prisma/orm-extension-paradedb
7
+ ```
8
+
9
+ ## Entrypoints
10
+
11
+ | Namespace | Surface |
12
+ | --- | --- |
13
+ | `/pack` | the extension pack an application composes into `extensions: [...]` — pure, no runtime imports |
14
+ | `/index-types` | the `bm25` index type and its option shape |
15
+ | `/operation-types` | types emitted contracts reference |
16
+ | `/runtime` | the runtime extension |
17
+ | `/control` | the control descriptor |
18
+
19
+ ## Responsibilities
20
+
21
+ Registers a `bm25` entry with the SQL family's index-type registry, so contracts author full-text indexes through the ordinary `constraints.index(...)` surface and the Postgres adapter emits `CREATE INDEX ... USING bm25 WITH (...)`. It also declares the `paradedb/bm25` capability for contract-level feature detection.
22
+
23
+ The current surface covers the `key_field` storage parameter. Per-field tokenizer configuration waits on expression-index support.
24
+
25
+ ## Dependencies
26
+
27
+ `@prisma/orm-framework`, `@prisma/orm-family-sql`, and `@prisma/orm-toolchain` at exact lockstep versions, plus `arktype`.
28
+
29
+ `@prisma/orm-target-postgres` is an exact-pinned **peer** dependency, as it is for every Postgres extension pack: the application supplies it, directly or through a facade. Unlike its siblings this pack does not reach the target at run time — the index type is registered against the SQL family, and the Postgres adapter renders it — but it is still a pack that only works on Postgres, and stating that uniformly is what makes the install requirement legible.
@@ -0,0 +1,36 @@
1
+ import "./operation-types-CnWfzlZq-ByY1S789.mjs";
2
+ import { SqlControlExtensionDescriptor } from "@prisma/orm-family-sql/family/control";
3
+ //#region ../../../3-extensions/paradedb/dist/control.d.mts
4
+ //#region src/core/descriptor-meta.d.ts
5
+ declare const paradedbPackMeta: {
6
+ readonly kind: "extension";
7
+ readonly id: "paradedb";
8
+ readonly familyId: "sql";
9
+ readonly targetId: "postgres";
10
+ readonly version: "0.0.1";
11
+ readonly capabilities: {
12
+ readonly postgres: {
13
+ readonly 'paradedb/bm25': true;
14
+ };
15
+ };
16
+ readonly indexTypes: import("@prisma/orm-family-sql/contract/index-types").IndexTypeBuilder<Record<never, never> & Record<"bm25", {
17
+ readonly options: {
18
+ key_field: string;
19
+ };
20
+ }>>;
21
+ readonly types: {
22
+ readonly queryOperationTypes: {
23
+ readonly import: {
24
+ readonly package: "@internal/extension-paradedb/operation-types";
25
+ readonly named: "QueryOperationTypes";
26
+ readonly alias: "ParadeDbQueryOperationTypes";
27
+ };
28
+ };
29
+ };
30
+ };
31
+ //#endregion
32
+ //#region src/exports/control.d.ts
33
+ declare const paradedbExtensionDescriptor: SqlControlExtensionDescriptor<'postgres'>;
34
+ //#endregion
35
+ export { paradedbExtensionDescriptor as default, paradedbExtensionDescriptor, paradedbPackMeta };
36
+ //# sourceMappingURL=control.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"control.d.mts","names":[],"sources":["../../../../3-extensions/paradedb/dist/control.d.mts"],"mappings":";;;;cAGc;WACH;WACA;WACA;WACA;WACA;WACA;aACE;eACE;;;WAGJ,yDAAyD,iBAAiB,uBAAuB;aAC/F;MACP;;;WAGK;aACE;eACE;iBACE;iBACA;iBACA;;;;;;;cAOH,6BAA6B"}
@@ -0,0 +1,101 @@
1
+ import { n as paradedbPackMeta, r as paradedbQueryOperations, t as PARADEDB_SPACE_ID } from "./descriptor-meta-CqqjwQV3-rK5CM2pg.mjs";
2
+ import { contractSpaceFromJson } from "@prisma/orm-toolchain/migration-tools/spaces";
3
+ //#region ../../../3-extensions/paradedb/dist/control.mjs
4
+ const paradedbContractSpace = contractSpaceFromJson({
5
+ contractJson: {
6
+ schemaVersion: "1",
7
+ targetFamily: "sql",
8
+ target: "postgres",
9
+ profileHash: "3916f444a8a17ad749191acf9e08dad97d1a327b88c2f1d45d12f240296aa8b2",
10
+ roots: {},
11
+ domain: { "namespaces": { "public": { "models": {} } } },
12
+ storage: {
13
+ "namespaces": { "public": {
14
+ "entries": { "table": {} },
15
+ "id": "public",
16
+ "kind": "postgres-schema"
17
+ } },
18
+ "storageHash": "0c0734babd6eeb868fee1f281ca96963022475611560e9f170f465daa35f8599"
19
+ },
20
+ capabilities: {
21
+ "postgres": {
22
+ "distinctOn": true,
23
+ "jsonAgg": true,
24
+ "lateral": true,
25
+ "limit": true,
26
+ "orderBy": true,
27
+ "returning": true
28
+ },
29
+ "sql": {
30
+ "defaultInInsert": true,
31
+ "enums": true,
32
+ "lateral": true,
33
+ "returning": true,
34
+ "scalarList": true
35
+ }
36
+ },
37
+ extensions: {},
38
+ meta: {},
39
+ _generated: {
40
+ "warning": "⚠️ GENERATED FILE - DO NOT EDIT",
41
+ "message": "This file is automatically generated by \"prisma-next contract emit\".",
42
+ "regenerate": "To regenerate, run: prisma-next contract emit"
43
+ }
44
+ },
45
+ migrations: [{
46
+ dirName: "20260601T0000_install_pg_search_extension",
47
+ metadata: {
48
+ from: null,
49
+ to: "0c0734babd6eeb868fee1f281ca96963022475611560e9f170f465daa35f8599",
50
+ providedInvariants: ["paradedb:install-pg-search-v1"],
51
+ createdAt: "2026-06-01T00:00:00.000Z",
52
+ migrationHash: "cfcef8fbbb8c594ab02c7a7f05a40ab7bbda1da416f371d5a1be15cda16b99e7"
53
+ },
54
+ ops: [{
55
+ "id": "paradedb.install-pg-search-extension",
56
+ "label": "Enable extension \"pg_search\"",
57
+ "operationClass": "additive",
58
+ "invariantId": "paradedb:install-pg-search-v1",
59
+ "target": {
60
+ "id": "postgres",
61
+ "details": {
62
+ "schema": "public",
63
+ "objectType": "dependency",
64
+ "name": "pg_search"
65
+ }
66
+ },
67
+ "precheck": [{
68
+ "description": "verify extension \"pg_search\" is not already enabled",
69
+ "sql": "SELECT NOT EXISTS (SELECT 1 AS \"one\" FROM \"pg_extension\" WHERE \"extname\" = $1) AS \"result\"",
70
+ "params": ["pg_search"]
71
+ }],
72
+ "execute": [{
73
+ "description": "create extension \"pg_search\"",
74
+ "sql": "CREATE EXTENSION IF NOT EXISTS pg_search"
75
+ }],
76
+ "postcheck": [{
77
+ "description": "confirm extension \"pg_search\" is enabled",
78
+ "sql": "SELECT EXISTS (SELECT 1 AS \"one\" FROM \"pg_extension\" WHERE \"extname\" = $1) AS \"result\"",
79
+ "params": ["pg_search"]
80
+ }]
81
+ }]
82
+ }],
83
+ headRef: {
84
+ hash: "0c0734babd6eeb868fee1f281ca96963022475611560e9f170f465daa35f8599",
85
+ invariants: ["paradedb:install-pg-search-v1"]
86
+ }
87
+ });
88
+ const paradedbExtensionDescriptor = {
89
+ ...paradedbPackMeta,
90
+ id: PARADEDB_SPACE_ID,
91
+ contractSpace: paradedbContractSpace,
92
+ queryOperations: () => paradedbQueryOperations(),
93
+ create: () => ({
94
+ familyId: "sql",
95
+ targetId: "postgres"
96
+ })
97
+ };
98
+ //#endregion
99
+ export { paradedbExtensionDescriptor as default, paradedbExtensionDescriptor, paradedbPackMeta };
100
+
101
+ //# sourceMappingURL=control.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"control.mjs","names":[],"sources":["../../../../3-extensions/paradedb/dist/control.mjs"],"sourcesContent":["import { n as paradedbQueryOperations, r as PARADEDB_SPACE_ID, t as paradedbPackMeta } from \"./descriptor-meta-CqqjwQV3.mjs\";\nimport { contractSpaceFromJson } from \"@internal/migration-tools/spaces\";\n//#endregion\n//#region src/exports/control.ts\nconst paradedbContractSpace = contractSpaceFromJson({\n\tcontractJson: {\n\t\tschemaVersion: \"1\",\n\t\ttargetFamily: \"sql\",\n\t\ttarget: \"postgres\",\n\t\tprofileHash: \"3916f444a8a17ad749191acf9e08dad97d1a327b88c2f1d45d12f240296aa8b2\",\n\t\troots: {},\n\t\tdomain: { \"namespaces\": { \"public\": { \"models\": {} } } },\n\t\tstorage: {\n\t\t\t\"namespaces\": { \"public\": {\n\t\t\t\t\"entries\": { \"table\": {} },\n\t\t\t\t\"id\": \"public\",\n\t\t\t\t\"kind\": \"postgres-schema\"\n\t\t\t} },\n\t\t\t\"storageHash\": \"0c0734babd6eeb868fee1f281ca96963022475611560e9f170f465daa35f8599\"\n\t\t},\n\t\tcapabilities: {\n\t\t\t\"postgres\": {\n\t\t\t\t\"distinctOn\": true,\n\t\t\t\t\"jsonAgg\": true,\n\t\t\t\t\"lateral\": true,\n\t\t\t\t\"limit\": true,\n\t\t\t\t\"orderBy\": true,\n\t\t\t\t\"returning\": true\n\t\t\t},\n\t\t\t\"sql\": {\n\t\t\t\t\"defaultInInsert\": true,\n\t\t\t\t\"enums\": true,\n\t\t\t\t\"lateral\": true,\n\t\t\t\t\"returning\": true,\n\t\t\t\t\"scalarList\": true\n\t\t\t}\n\t\t},\n\t\textensions: {},\n\t\tmeta: {},\n\t\t_generated: {\n\t\t\t\"warning\": \"⚠️ GENERATED FILE - DO NOT EDIT\",\n\t\t\t\"message\": \"This file is automatically generated by \\\"prisma-next contract emit\\\".\",\n\t\t\t\"regenerate\": \"To regenerate, run: prisma-next contract emit\"\n\t\t}\n\t},\n\tmigrations: [{\n\t\tdirName: \"20260601T0000_install_pg_search_extension\",\n\t\tmetadata: {\n\t\t\tfrom: null,\n\t\t\tto: \"0c0734babd6eeb868fee1f281ca96963022475611560e9f170f465daa35f8599\",\n\t\t\tprovidedInvariants: [\"paradedb:install-pg-search-v1\"],\n\t\t\tcreatedAt: \"2026-06-01T00:00:00.000Z\",\n\t\t\tmigrationHash: \"cfcef8fbbb8c594ab02c7a7f05a40ab7bbda1da416f371d5a1be15cda16b99e7\"\n\t\t},\n\t\tops: [{\n\t\t\t\"id\": \"paradedb.install-pg-search-extension\",\n\t\t\t\"label\": \"Enable extension \\\"pg_search\\\"\",\n\t\t\t\"operationClass\": \"additive\",\n\t\t\t\"invariantId\": \"paradedb:install-pg-search-v1\",\n\t\t\t\"target\": {\n\t\t\t\t\"id\": \"postgres\",\n\t\t\t\t\"details\": {\n\t\t\t\t\t\"schema\": \"public\",\n\t\t\t\t\t\"objectType\": \"dependency\",\n\t\t\t\t\t\"name\": \"pg_search\"\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"precheck\": [{\n\t\t\t\t\"description\": \"verify extension \\\"pg_search\\\" is not already enabled\",\n\t\t\t\t\"sql\": \"SELECT NOT EXISTS (SELECT 1 AS \\\"one\\\" FROM \\\"pg_extension\\\" WHERE \\\"extname\\\" = $1) AS \\\"result\\\"\",\n\t\t\t\t\"params\": [\"pg_search\"]\n\t\t\t}],\n\t\t\t\"execute\": [{\n\t\t\t\t\"description\": \"create extension \\\"pg_search\\\"\",\n\t\t\t\t\"sql\": \"CREATE EXTENSION IF NOT EXISTS pg_search\"\n\t\t\t}],\n\t\t\t\"postcheck\": [{\n\t\t\t\t\"description\": \"confirm extension \\\"pg_search\\\" is enabled\",\n\t\t\t\t\"sql\": \"SELECT EXISTS (SELECT 1 AS \\\"one\\\" FROM \\\"pg_extension\\\" WHERE \\\"extname\\\" = $1) AS \\\"result\\\"\",\n\t\t\t\t\"params\": [\"pg_search\"]\n\t\t\t}]\n\t\t}]\n\t}],\n\theadRef: {\n\t\thash: \"0c0734babd6eeb868fee1f281ca96963022475611560e9f170f465daa35f8599\",\n\t\tinvariants: [\"paradedb:install-pg-search-v1\"]\n\t}\n});\nconst paradedbExtensionDescriptor = {\n\t...paradedbPackMeta,\n\tid: PARADEDB_SPACE_ID,\n\tcontractSpace: paradedbContractSpace,\n\tqueryOperations: () => paradedbQueryOperations(),\n\tcreate: () => ({\n\t\tfamilyId: \"sql\",\n\t\ttargetId: \"postgres\"\n\t})\n};\n//#endregion\nexport { paradedbExtensionDescriptor as default, paradedbExtensionDescriptor, paradedbPackMeta };\n\n//# sourceMappingURL=control.mjs.map"],"mappings":";;;AAIA,MAAM,wBAAw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edbIndexTypes } from "./index-types-C1q0xQR4-DQ2qSz2K.mjs";
2
+ import { LiteralExpr, OperationExpr } from "@prisma/orm-family-sql/relational-core/ast";
3
+ import { buildOperation, toExpr } from "@prisma/orm-family-sql/relational-core/expression";
4
+ import { structuredError } from "@prisma/orm-framework/utils/structured-error";
5
+ import { InternalError } from "@prisma/orm-framework/utils/internal-error";
6
+ //#region ../../../3-extensions/paradedb/dist/descriptor-meta-CqqjwQV3.mjs
7
+ /**
8
+ * Extension ID for ParadeDB pg_search.
9
+ */
10
+ const PARADEDB_EXTENSION_ID = "paradedb";
11
+ /**
12
+ * Static names and identifiers used across paradedb's contract space.
13
+ *
14
+ * Centralised here so the contract IR (`./contract`), the baseline
15
+ * migration ops (`./migrations`), the head ref, and the descriptor
16
+ * (`../exports/control`) all reference the same values without typos.
17
+ *
18
+ * The space identifier `'paradedb'` is what the framework writes to
19
+ * `migrations/` in the user's repo and what the marker table's
20
+ * `space` column carries for paradedb-owned rows.
21
+ *
22
+ * The `paradedb:*` invariantId namespace is locked here — once
23
+ * published, an invariantId is immutable so downstream consumers can
24
+ * reference it by literal string match.
25
+ */
26
+ const PARADEDB_SPACE_ID = "paradedb";
27
+ function paradeDbError(code, message, options) {
28
+ return structuredError(code, message, options);
29
+ }
30
+ const TEXT$1 = "pg/text@1";
31
+ const TEXT_REF$1 = { codecId: TEXT$1 };
32
+ var ParadeDbProximityChain = class ParadeDbProximityChain {
33
+ returnType = {
34
+ codecId: TEXT$1,
35
+ nullable: false
36
+ };
37
+ start;
38
+ steps;
39
+ constructor(start, steps = []) {
40
+ this.start = start;
41
+ this.steps = steps;
42
+ }
43
+ within(distance, term, options) {
44
+ if (!Number.isInteger(distance) || distance < 0) throw paradeDbError("PARADEDB.ARGUMENT_INVALID", `paradeDbProximity.within: distance must be a non-negative integer; got ${String(distance)}`, { meta: {
45
+ helper: "paradeDbProximity.within",
46
+ argument: "distance",
47
+ received: distance
48
+ } });
49
+ return new ParadeDbProximityChain(this.start, [...this.steps, {
50
+ distance,
51
+ term,
52
+ ordered: options?.ordered === true
53
+ }]);
54
+ }
55
+ buildAst() {
56
+ if (this.steps.length === 0) throw paradeDbError("PARADEDB.ARGUMENT_INVALID", "paradeDbProximity: chain must have at least one .within(distance, term) step", {
57
+ fix: "Chain at least one .within(distance, term) call before using the proximity expression.",
58
+ meta: {
59
+ helper: "paradeDbProximity",
60
+ argument: "steps"
61
+ }
62
+ });
63
+ const args = [toExpr(this.start, TEXT_REF$1)];
64
+ let template = "({{self}}";
65
+ this.steps.forEach((step, i) => {
66
+ const op = step.ordered ? "##>" : "##";
67
+ args.push(LiteralExpr.of(step.distance));
68
+ args.push(toExpr(step.term, TEXT_REF$1));
69
+ template += ` ${op} {{arg${2 * i}}} ${op} {{arg${2 * i + 1}}}`;
70
+ });
71
+ template += ")";
72
+ const [self, ...rest] = args;
73
+ if (!self) throw new InternalError("paradeDbProximity: invariant violation — empty args");
74
+ return new OperationExpr({
75
+ method: "paradeDbProximity",
76
+ self,
77
+ args: rest.length > 0 ? rest : void 0,
78
+ returns: this.returnType,
79
+ lowering: {
80
+ targetFamily: "sql",
81
+ strategy: "function",
82
+ template
83
+ }
84
+ });
85
+ }
86
+ };
87
+ const TEXT = "pg/text@1";
88
+ const BOOL = "pg/bool@1";
89
+ const FLOAT4 = "pg/float4@1";
90
+ const INT4 = "pg/int4@1";
91
+ const TEXT_REF = { codecId: TEXT };
92
+ const INT4_REF = { codecId: INT4 };
93
+ function paradedbQueryOperations() {
94
+ return {
95
+ paradeDbMatch: {
96
+ self: { codecId: TEXT },
97
+ impl: (self, query) => buildOperation({
98
+ method: "paradeDbMatch",
99
+ args: [toExpr(self, TEXT_REF), toExpr(query, TEXT_REF)],
100
+ returns: {
101
+ codecId: BOOL,
102
+ nullable: false
103
+ },
104
+ lowering: {
105
+ targetFamily: "sql",
106
+ strategy: "function",
107
+ template: "{{self}} @@@ {{arg0}}"
108
+ }
109
+ })
110
+ },
111
+ paradeDbMatchAny: {
112
+ self: { codecId: TEXT },
113
+ impl: (self, query) => buildOperation({
114
+ method: "paradeDbMatchAny",
115
+ args: [toExpr(self, TEXT_REF), toExpr(query, TEXT_REF)],
116
+ returns: {
117
+ codecId: BOOL,
118
+ nullable: false
119
+ },
120
+ lowering: {
121
+ targetFamily: "sql",
122
+ strategy: "function",
123
+ template: "{{self}} ||| {{arg0}}"
124
+ }
125
+ })
126
+ },
127
+ paradeDbMatchAll: {
128
+ self: { codecId: TEXT },
129
+ impl: (self, query) => buildOperation({
130
+ method: "paradeDbMatchAll",
131
+ args: [toExpr(self, TEXT_REF), toExpr(query, TEXT_REF)],
132
+ returns: {
133
+ codecId: BOOL,
134
+ nullable: false
135
+ },
136
+ lowering: {
137
+ targetFamily: "sql",
138
+ strategy: "function",
139
+ template: "{{self}} &&& {{arg0}}"
140
+ }
141
+ })
142
+ },
143
+ paradeDbTerm: {
144
+ self: { codecId: TEXT },
145
+ impl: (self, query) => buildOperation({
146
+ method: "paradeDbTerm",
147
+ args: [toExpr(self, TEXT_REF), toExpr(query, TEXT_REF)],
148
+ returns: {
149
+ codecId: BOOL,
150
+ nullable: false
151
+ },
152
+ lowering: {
153
+ targetFamily: "sql",
154
+ strategy: "function",
155
+ template: "{{self}} === {{arg0}}"
156
+ }
157
+ })
158
+ },
159
+ paradeDbPhrase: {
160
+ self: { codecId: TEXT },
161
+ impl: (self, query) => buildOperation({
162
+ method: "paradeDbPhrase",
163
+ args: [toExpr(self, TEXT_REF), toExpr(query, TEXT_REF)],
164
+ returns: {
165
+ codecId: BOOL,
166
+ nullable: false
167
+ },
168
+ lowering: {
169
+ targetFamily: "sql",
170
+ strategy: "function",
171
+ template: "{{self}} ### {{arg0}}"
172
+ }
173
+ })
174
+ },
175
+ paradeDbScore: {
176
+ self: { codecId: INT4 },
177
+ impl: (self) => buildOperation({
178
+ method: "paradeDbScore",
179
+ args: [toExpr(self, INT4_REF)],
180
+ returns: {
181
+ codecId: FLOAT4,
182
+ nullable: false
183
+ },
184
+ lowering: {
185
+ targetFamily: "sql",
186
+ strategy: "function",
187
+ template: "pdb.score({{self}})"
188
+ }
189
+ })
190
+ },
191
+ paradeDbFuzzy: {
192
+ self: { codecId: TEXT },
193
+ impl: (self, distance) => {
194
+ if (!Number.isInteger(distance) || distance < 0 || distance > 2) throw paradeDbError("PARADEDB.ARGUMENT_INVALID", `paradeDbFuzzy: distance must be an integer in [0, 2]; got ${String(distance)}`, { meta: {
195
+ helper: "paradeDbFuzzy",
196
+ argument: "distance",
197
+ received: distance
198
+ } });
199
+ return buildOperation({
200
+ method: "paradeDbFuzzy",
201
+ args: [toExpr(self, TEXT_REF), LiteralExpr.of(distance)],
202
+ returns: {
203
+ codecId: TEXT,
204
+ nullable: false
205
+ },
206
+ lowering: {
207
+ targetFamily: "sql",
208
+ strategy: "function",
209
+ template: "{{self}}::pdb.fuzzy({{arg0}})"
210
+ }
211
+ });
212
+ }
213
+ },
214
+ paradeDbBoost: {
215
+ self: { codecId: TEXT },
216
+ impl: (self, weight) => {
217
+ if (!Number.isInteger(weight) || weight < -2048 || weight > 2048) throw paradeDbError("PARADEDB.ARGUMENT_INVALID", `paradeDbBoost: boost must be an integer in [-2048, 2048]; got ${String(weight)}`, { meta: {
218
+ helper: "paradeDbBoost",
219
+ argument: "weight",
220
+ received: weight
221
+ } });
222
+ return buildOperation({
223
+ method: "paradeDbBoost",
224
+ args: [toExpr(self, TEXT_REF), LiteralExpr.of(weight)],
225
+ returns: {
226
+ codecId: TEXT,
227
+ nullable: false
228
+ },
229
+ lowering: {
230
+ targetFamily: "sql",
231
+ strategy: "function",
232
+ template: "{{self}}::pdb.boost({{arg0}})"
233
+ }
234
+ });
235
+ }
236
+ },
237
+ paradeDbConst: {
238
+ self: { codecId: TEXT },
239
+ impl: (self, value) => {
240
+ if (!Number.isInteger(value)) throw paradeDbError("PARADEDB.ARGUMENT_INVALID", `paradeDbConst: value must be an integer; got ${String(value)}`, { meta: {
241
+ helper: "paradeDbConst",
242
+ argument: "value",
243
+ received: value
244
+ } });
245
+ return buildOperation({
246
+ method: "paradeDbConst",
247
+ args: [toExpr(self, TEXT_REF), LiteralExpr.of(value)],
248
+ returns: {
249
+ codecId: TEXT,
250
+ nullable: false
251
+ },
252
+ lowering: {
253
+ targetFamily: "sql",
254
+ strategy: "function",
255
+ template: "{{self}}::pdb.const({{arg0}})"
256
+ }
257
+ });
258
+ }
259
+ },
260
+ paradeDbSlop: {
261
+ self: { codecId: TEXT },
262
+ impl: (self, slop) => {
263
+ if (!Number.isInteger(slop) || slop < 0) throw paradeDbError("PARADEDB.ARGUMENT_INVALID", `paradeDbSlop: slop must be a non-negative integer; got ${String(slop)}`, { meta: {
264
+ helper: "paradeDbSlop",
265
+ argument: "slop",
266
+ received: slop
267
+ } });
268
+ return buildOperation({
269
+ method: "paradeDbSlop",
270
+ args: [toExpr(self, TEXT_REF), LiteralExpr.of(slop)],
271
+ returns: {
272
+ codecId: TEXT,
273
+ nullable: false
274
+ },
275
+ lowering: {
276
+ targetFamily: "sql",
277
+ strategy: "function",
278
+ template: "{{self}}::pdb.slop({{arg0}})"
279
+ }
280
+ });
281
+ }
282
+ },
283
+ paradeDbProximity: {
284
+ self: { codecId: TEXT },
285
+ impl: (start) => new ParadeDbProximityChain(start)
286
+ }
287
+ };
288
+ }
289
+ const paradedbPackMeta = {
290
+ kind: "extension",
291
+ id: PARADEDB_EXTENSION_ID,
292
+ familyId: "sql",
293
+ targetId: "postgres",
294
+ version: "0.0.1",
295
+ capabilities: { postgres: { "paradedb/bm25": true } },
296
+ indexTypes: paradedbIndexTypes,
297
+ types: { queryOperationTypes: { import: {
298
+ package: "@internal/extension-paradedb/operation-types",
299
+ named: "QueryOperationTypes",
300
+ alias: "ParadeDbQueryOperationTypes"
301
+ } } }
302
+ };
303
+ //#endregion
304
+ export { paradedbPackMeta as n, paradedbQueryOperations as r, PARADEDB_SPACE_ID as t };
305
+
306
+ //# sourceMappingURL=descriptor-meta-CqqjwQV3-rK5CM2pg.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"descriptor-meta-CqqjwQV3-rK5CM2pg.mjs","names":[],"sources":["../../../../3-extensions/paradedb/dist/descriptor-meta-CqqjwQV3.mjs"],"sourcesContent":["import { t as paradedbIndexTypes } from \"./index-types-C1q0xQR4.mjs\";\nimport { LiteralExpr, OperationExpr } from \"@internal/sql-relational-core/ast\";\nimport { buildOperation, toExpr } from \"@internal/sql-relational-core/expression\";\nimport { structuredError } from \"@internal/utils/structured-error\";\nimport { InternalError } from \"@internal/utils/internal-error\";\n//#region src/core/constants.ts\n/**\n* Extension ID for ParadeDB pg_search.\n*/\nconst PARADEDB_EXTENSION_ID = \"paradedb\";\n/**\n* Static names and identifiers used across paradedb's contract space.\n*\n* Centralised here so the contract IR (`./contract`), the baseline\n* migration ops (`./migrations`), the head ref, and the descriptor\n* (`../exports/control`) all reference the same values without typos.\n*\n* The space identifier `'paradedb'` is what the framework writes to\n* `migrations/` in the user's repo and what the marker table's\n* `space` column carries for paradedb-owned rows.\n*\n* The `paradedb:*` invariantId namespace is locked here — once\n* published, an invariantId is immutable so downstream consumers can\n* reference it by literal string match.\n*/\nconst PARADEDB_SPACE_ID = \"paradedb\";\n//#endregion\n//#region src/core/errors.ts\nfunction paradeDbError(code, message, options) {\n\treturn structuredError(code, message, options);\n}\n//#endregion\n//#region src/core/proximity-chain.ts\nconst TEXT$1 = \"pg/text@1\";\nconst TEXT_REF$1 = { codecId: TEXT$1 };\nvar ParadeDbProximityChain = class ParadeDbProximityChain {\n\treturnType = {\n\t\tcodecId: TEXT$1,\n\t\tnullable: false\n\t};\n\tstart;\n\tsteps;\n\tconstructor(start, steps = []) {\n\t\tthis.start = start;\n\t\tthis.steps = steps;\n\t}\n\twithin(distance, term, options) {\n\t\tif (!Number.isInteger(distance) || distance < 0) throw paradeDbError(\"PARADEDB.ARGUMENT_INVALID\", `paradeDbProximity.within: distance must be a non-negative integer; got ${String(distance)}`, { meta: {\n\t\t\thelper: \"paradeDbProximity.within\",\n\t\t\targument: \"distance\",\n\t\t\treceived: distance\n\t\t} });\n\t\treturn new ParadeDbProximityChain(this.start, [...this.steps, {\n\t\t\tdistance,\n\t\t\tterm,\n\t\t\tordered: options?.ordered === true\n\t\t}]);\n\t}\n\tbuildAst() {\n\t\tif (this.steps.length === 0) throw paradeDbError(\"PARADEDB.ARGUMENT_INVALID\", \"paradeDbProximity: chain must have at least one .within(distance, term) step\", {\n\t\t\tfix: \"Chain at least one .within(distance, term) call before using the proximity expression.\",\n\t\t\tmeta: {\n\t\t\t\thelper: \"paradeDbProximity\",\n\t\t\t\targument: \"steps\"\n\t\t\t}\n\t\t});\n\t\tconst args = [toExpr(this.start, TEXT_REF$1)];\n\t\tlet template = \"({{self}}\";\n\t\tthis.steps.forEach((step, i) => {\n\t\t\tconst op = step.ordered ? \"##>\" : \"##\";\n\t\t\targs.push(LiteralExpr.of(step.distance));\n\t\t\targs.push(toExpr(step.term, TEXT_REF$1));\n\t\t\ttemplate += ` ${op} {{arg${2 * i}}} ${op} {{arg${2 * i + 1}}}`;\n\t\t});\n\t\ttemplate += \")\";\n\t\tconst [self, ...rest] = args;\n\t\tif (!self) throw new InternalError(\"paradeDbProximity: invariant violation — empty args\");\n\t\treturn new OperationExpr({\n\t\t\tmethod: \"paradeDbProximity\",\n\t\t\tself,\n\t\t\targs: rest.length > 0 ? rest : void 0,\n\t\t\treturns: this.returnType,\n\t\t\tlowering: {\n\t\t\t\ttargetFamily: \"sql\",\n\t\t\t\tstrategy: \"function\",\n\t\t\t\ttemplate\n\t\t\t}\n\t\t});\n\t}\n};\n//#endregion\n//#region src/core/descriptor-meta.ts\nconst TEXT = \"pg/text@1\";\nconst BOOL = \"pg/bool@1\";\nconst FLOAT4 = \"pg/float4@1\";\nconst INT4 = \"pg/int4@1\";\nconst TEXT_REF = { codecId: TEXT };\nconst INT4_REF = { codecId: INT4 };\nfunction paradedbQueryOperations() {\n\treturn {\n\t\tparadeDbMatch: {\n\t\t\tself: { codecId: TEXT },\n\t\t\timpl: (self, query) => buildOperation({\n\t\t\t\tmethod: \"paradeDbMatch\",\n\t\t\t\targs: [toExpr(self, TEXT_REF), toExpr(query, TEXT_REF)],\n\t\t\t\treturns: {\n\t\t\t\t\tcodecId: BOOL,\n\t\t\t\t\tnullable: false\n\t\t\t\t},\n\t\t\t\tlowering: {\n\t\t\t\t\ttargetFamily: \"sql\",\n\t\t\t\t\tstrategy: \"function\",\n\t\t\t\t\ttemplate: \"{{self}} @@@ {{arg0}}\"\n\t\t\t\t}\n\t\t\t})\n\t\t},\n\t\tparadeDbMatchAny: {\n\t\t\tself: { codecId: TEXT },\n\t\t\timpl: (self, query) => buildOperation({\n\t\t\t\tmethod: \"paradeDbMatchAny\",\n\t\t\t\targs: [toExpr(self, TEXT_REF), toExpr(query, TEXT_REF)],\n\t\t\t\treturns: {\n\t\t\t\t\tcodecId: BOOL,\n\t\t\t\t\tnullable: false\n\t\t\t\t},\n\t\t\t\tlowering: {\n\t\t\t\t\ttargetFamily: \"sql\",\n\t\t\t\t\tstrategy: \"function\",\n\t\t\t\t\ttemplate: \"{{self}} ||| {{arg0}}\"\n\t\t\t\t}\n\t\t\t})\n\t\t},\n\t\tparadeDbMatchAll: {\n\t\t\tself: { codecId: TEXT },\n\t\t\timpl: (self, query) => buildOperation({\n\t\t\t\tmethod: \"paradeDbMatchAll\",\n\t\t\t\targs: [toExpr(self, TEXT_REF), toExpr(query, TEXT_REF)],\n\t\t\t\treturns: {\n\t\t\t\t\tcodecId: BOOL,\n\t\t\t\t\tnullable: false\n\t\t\t\t},\n\t\t\t\tlowering: {\n\t\t\t\t\ttargetFamily: \"sql\",\n\t\t\t\t\tstrategy: \"function\",\n\t\t\t\t\ttemplate: \"{{self}} &&& {{arg0}}\"\n\t\t\t\t}\n\t\t\t})\n\t\t},\n\t\tparadeDbTerm: {\n\t\t\tself: { codecId: TEXT },\n\t\t\timpl: (self, query) => buildOperation({\n\t\t\t\tmethod: \"paradeDbTerm\",\n\t\t\t\targs: [toExpr(self, TEXT_REF), toExpr(query, TEXT_REF)],\n\t\t\t\treturns: {\n\t\t\t\t\tcodecId: BOOL,\n\t\t\t\t\tnullable: false\n\t\t\t\t},\n\t\t\t\tlowering: {\n\t\t\t\t\ttargetFamily: \"sql\",\n\t\t\t\t\tstrategy: \"function\",\n\t\t\t\t\ttemplate: \"{{self}} === {{arg0}}\"\n\t\t\t\t}\n\t\t\t})\n\t\t},\n\t\tparadeDbPhrase: {\n\t\t\tself: { codecId: TEXT },\n\t\t\timpl: (self, query) => buildOperation({\n\t\t\t\tmethod: \"paradeDbPhrase\",\n\t\t\t\targs: [toExpr(self, TEXT_REF), toExpr(query, TEXT_REF)],\n\t\t\t\treturns: {\n\t\t\t\t\tcodecId: BOOL,\n\t\t\t\t\tnullable: false\n\t\t\t\t},\n\t\t\t\tlowering: {\n\t\t\t\t\ttargetFamily: \"sql\",\n\t\t\t\t\tstrategy: \"function\",\n\t\t\t\t\ttemplate: \"{{self}} ### {{arg0}}\"\n\t\t\t\t}\n\t\t\t})\n\t\t},\n\t\tparadeDbScore: {\n\t\t\tself: { codecId: INT4 },\n\t\t\timpl: (self) => buildOperation({\n\t\t\t\tmethod: \"paradeDbScore\",\n\t\t\t\targs: [toExpr(self, INT4_REF)],\n\t\t\t\treturns: {\n\t\t\t\t\tcodecId: FLOAT4,\n\t\t\t\t\tnullable: false\n\t\t\t\t},\n\t\t\t\tlowering: {\n\t\t\t\t\ttargetFamily: \"sql\",\n\t\t\t\t\tstrategy: \"function\",\n\t\t\t\t\ttemplate: \"pdb.score({{self}})\"\n\t\t\t\t}\n\t\t\t})\n\t\t},\n\t\tparadeDbFuzzy: {\n\t\t\tself: { codecId: TEXT },\n\t\t\timpl: (self, distance) => {\n\t\t\t\tif (!Number.isInteger(distance) || distance < 0 || distance > 2) throw paradeDbError(\"PARADEDB.ARGUMENT_INVALID\", `paradeDbFuzzy: distance must be an integer in [0, 2]; got ${String(distance)}`, { meta: {\n\t\t\t\t\thelper: \"paradeDbFuzzy\",\n\t\t\t\t\targument: \"distance\",\n\t\t\t\t\treceived: distance\n\t\t\t\t} });\n\t\t\t\treturn buildOperation({\n\t\t\t\t\tmethod: \"paradeDbFuzzy\",\n\t\t\t\t\targs: [toExpr(self, TEXT_REF), LiteralExpr.of(distance)],\n\t\t\t\t\treturns: {\n\t\t\t\t\t\tcodecId: TEXT,\n\t\t\t\t\t\tnullable: false\n\t\t\t\t\t},\n\t\t\t\t\tlowering: {\n\t\t\t\t\t\ttargetFamily: \"sql\",\n\t\t\t\t\t\tstrategy: \"function\",\n\t\t\t\t\t\ttemplate: \"{{self}}::pdb.fuzzy({{arg0}})\"\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\n\t\t},\n\t\tparadeDbBoost: {\n\t\t\tself: { codecId: TEXT },\n\t\t\timpl: (self, weight) => {\n\t\t\t\tif (!Number.isInteger(weight) || weight < -2048 || weight > 2048) throw paradeDbError(\"PARADEDB.ARGUMENT_INVALID\", `paradeDbBoost: boost must be an integer in [-2048, 2048]; got ${String(weight)}`, { meta: {\n\t\t\t\t\thelper: \"paradeDbBoost\",\n\t\t\t\t\targument: \"weight\",\n\t\t\t\t\treceived: weight\n\t\t\t\t} });\n\t\t\t\treturn buildOperation({\n\t\t\t\t\tmethod: \"paradeDbBoost\",\n\t\t\t\t\targs: [toExpr(self, TEXT_REF), LiteralExpr.of(weight)],\n\t\t\t\t\treturns: {\n\t\t\t\t\t\tcodecId: TEXT,\n\t\t\t\t\t\tnullable: false\n\t\t\t\t\t},\n\t\t\t\t\tlowering: {\n\t\t\t\t\t\ttargetFamily: \"sql\",\n\t\t\t\t\t\tstrategy: \"function\",\n\t\t\t\t\t\ttemplate: \"{{self}}::pdb.boost({{arg0}})\"\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\n\t\t},\n\t\tparadeDbConst: {\n\t\t\tself: { codecId: TEXT },\n\t\t\timpl: (self, value) => {\n\t\t\t\tif (!Number.isInteger(value)) throw paradeDbError(\"PARADEDB.ARGUMENT_INVALID\", `paradeDbConst: value must be an integer; got ${String(value)}`, { meta: {\n\t\t\t\t\thelper: \"paradeDbConst\",\n\t\t\t\t\targument: \"value\",\n\t\t\t\t\treceived: value\n\t\t\t\t} });\n\t\t\t\treturn buildOperation({\n\t\t\t\t\tmethod: \"paradeDbConst\",\n\t\t\t\t\targs: [toExpr(self, TEXT_REF), LiteralExpr.of(value)],\n\t\t\t\t\treturns: {\n\t\t\t\t\t\tcodecId: TEXT,\n\t\t\t\t\t\tnullable: false\n\t\t\t\t\t},\n\t\t\t\t\tlowering: {\n\t\t\t\t\t\ttargetFamily: \"sql\",\n\t\t\t\t\t\tstrategy: \"function\",\n\t\t\t\t\t\ttemplate: \"{{self}}::pdb.const({{arg0}})\"\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\n\t\t},\n\t\tparadeDbSlop: {\n\t\t\tself: { codecId: TEXT },\n\t\t\timpl: (self, slop) => {\n\t\t\t\tif (!Number.isInteger(slop) || slop < 0) throw paradeDbError(\"PARADEDB.ARGUMENT_INVALID\", `paradeDbSlop: slop must be a non-negative integer; got ${String(slop)}`, { meta: {\n\t\t\t\t\thelper: \"paradeDbSlop\",\n\t\t\t\t\targument: \"slop\",\n\t\t\t\t\treceived: slop\n\t\t\t\t} });\n\t\t\t\treturn buildOperation({\n\t\t\t\t\tmethod: \"paradeDbSlop\",\n\t\t\t\t\targs: [toExpr(self, TEXT_REF), LiteralExpr.of(slop)],\n\t\t\t\t\treturns: {\n\t\t\t\t\t\tcodecId: TEXT,\n\t\t\t\t\t\tnullable: false\n\t\t\t\t\t},\n\t\t\t\t\tlowering: {\n\t\t\t\t\t\ttargetFamily: \"sql\",\n\t\t\t\t\t\tstrategy: \"function\",\n\t\t\t\t\t\ttemplate: \"{{self}}::pdb.slop({{arg0}})\"\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\n\t\t},\n\t\tparadeDbProximity: {\n\t\t\tself: { codecId: TEXT },\n\t\t\timpl: (start) => new ParadeDbProximityChain(start)\n\t\t}\n\t};\n}\nconst paradedbPackMeta = {\n\tkind: \"extension\",\n\tid: PARADEDB_EXTENSION_ID,\n\tfamilyId: \"sql\",\n\ttargetId: \"postgres\",\n\tversion: \"0.0.1\",\n\tcapabilities: { postgres: { \"paradedb/bm25\": true } },\n\tindexTypes: paradedbIndexTypes,\n\ttypes: { queryOperationTypes: { import: {\n\t\tpackage: \"@internal/extension-paradedb/operation-types\",\n\t\tnamed: \"QueryOperationTypes\",\n\t\talias: \"ParadeDbQueryOperationTypes\"\n\t} } }\n};\n//#endregion\nexport { paradedbQueryOperations as n, PARADEDB_SPACE_ID as r, paradedbPackMeta as t };\n\n//# sourceMappingURL=descriptor-meta-CqqjwQV3.mjs.map"],"mappings":";;;;;;;;;AASA,MAAM,wBAAwB;;;;;;;;;;;;;;;;AAgB9B,MAAM,oBAAoB;AAG1B,SAAS,cAAc,MAAM,SAAS,SAAS;CAC9C,OAAO,gBAAgB,MAAM,SAAS,OAAO;AAC9C;AAGA,MAAM,SAAS;AACf,MAAM,aAAa,EAAE,SAAS,OAAO;AACrC,IAAI,yBAAyB,MAAM,uBAAuB;CACzD,aAAa;EACZ,SAAS;EACT,UAAU;CACX;CACA;CACA;CACA,YAAY,OAAO,QAAQ,CAAC,GAAG;EAC9B,KAAK,QAAQ;EACb,KAAK,QAAQ;CACd;CACA,OAAO,UAAU,MAAM,SAAS;EAC/B,IAAI,CAAC,OAAO,UAAU,QAAQ,KAAK,WAAW,GAAG,MAAM,cAAc,6BAA6B,0EAA0E,OAAO,QAAQ,KAAK,EAAE,MAAM;GACvM,QAAQ;GACR,UAAU;GACV,UAAU;EACX,EAAE,CAAC;EACH,OAAO,IAAI,uBAAuB,KAAK,OAAO,CAAC,GAAG,KAAK,OAAO;GAC7D;GACA;GACA,SAAS,SAAS,YAAY;EAC/B,CAAC,CAAC;CACH;CACA,WAAW;EACV,IAAI,KAAK,MAAM,WAAW,GAAG,MAAM,cAAc,6BAA6B,gFAAgF;GAC7J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,SAAS;IACrB,IAAI,CAAC,OAAO,UAAU,IAAI,KAAK,OAAO,GAAG,MAAM,cAAc,6BAA6B,0DAA0D,OAAO,IAAI,KAAK,EAAE,MAAM;KAC3K,QAAQ;KACR,UAAU;KACV,UAAU;IACX,EAAE,CAAC;IACH,OAAO,eAAe;KACrB,QAAQ;KACR,MAAM,CAAC,OAAO,MAAM,QAAQ,GAAG,YAAY,GAAG,IAAI,CAAC;KACnD,SAAS;MACR,SAAS;MACT,UAAU;KACX;KACA,UAAU;MACT,cAAc;MACd,UAAU;MACV,UAAU;KACX;IACD,CAAC;GACF;EACD;EACA,mBAAmB;GAClB,MAAM,EAAE,SAAS,KAAK;GACtB,OAAO,UAAU,IAAI,uBAAuB,KAAK;EAClD;CACD;AACD;AACA,MAAM,mBAAmB;CACxB,MAAM;CACN,IAAI;CACJ,UAAU;CACV,UAAU;CACV,SAAS;CACT,cAAc,EAAE,UAAU,EAAE,iBAAiB,KAAK,EAAE;CACpD,YAAY;CACZ,OAAO,EAAE,qBAAqB,EAAE,QAAQ;EACvC,SAAS;EACT,OAAO;EACP,OAAO;CACR,EAAE,EAAE;AACL"}
@@ -0,0 +1,11 @@
1
+ import { defineIndexTypes } from "@prisma/orm-family-sql/contract/index-types";
2
+ import { type } from "arktype";
3
+ //#region ../../../3-extensions/paradedb/dist/index-types-C1q0xQR4.mjs
4
+ const paradedbIndexTypes = defineIndexTypes().add("bm25", { options: type({
5
+ "+": "reject",
6
+ key_field: "string"
7
+ }) });
8
+ //#endregion
9
+ export { paradedbIndexTypes as t };
10
+
11
+ //# sourceMappingURL=index-types-C1q0xQR4-DQ2qSz2K.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index-types-C1q0xQR4-DQ2qSz2K.mjs","names":[],"sources":["../../../../3-extensions/paradedb/dist/index-types-C1q0xQR4.mjs"],"sourcesContent":["import { defineIndexTypes } from \"@internal/sql-contract/index-types\";\nimport { type } from \"arktype\";\n//#region src/types/index-types.ts\nconst paradedbIndexTypes = defineIndexTypes().add(\"bm25\", { options: type({\n\t\"+\": \"reject\",\n\tkey_field: \"string\"\n}) });\n//#endregion\nexport { paradedbIndexTypes as t };\n\n//# sourceMappingURL=index-types-C1q0xQR4.mjs.map"],"mappings":";;;AAGA,MAAM,qBAAqB,iBAAiB,CAAC,CAAC,IAAI,QAAQ,EAAE,SAAS,KAAK;CACzE,KAAK;CACL,WAAW;AACZ,CAAC,EAAE,CAAC"}
@@ -0,0 +1,12 @@
1
+ //#region ../../../3-extensions/paradedb/dist/index-types.d.mts
2
+ //#region src/types/index-types.d.ts
3
+ declare const paradedbIndexTypes: import("@prisma/orm-family-sql/contract/index-types").IndexTypeBuilder<Record<never, never> & Record<"bm25", {
4
+ readonly options: {
5
+ key_field: string;
6
+ };
7
+ }>>;
8
+ type IndexTypes = typeof paradedbIndexTypes.IndexTypes;
9
+ type Bm25IndexOptions = IndexTypes['bm25']['options'];
10
+ //#endregion
11
+ export { type Bm25IndexOptions, type IndexTypes, paradedbIndexTypes };
12
+ //# sourceMappingURL=index-types.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index-types.d.mts","names":[],"sources":["../../../../3-extensions/paradedb/dist/index-types.d.mts"],"mappings":";;cACc,iEAAiE,iBAAiB,uBAAuB;WAC5G;IACP;;;KAGC,oBAAoB,mBAAmB;KACvC,mBAAmB"}
@@ -0,0 +1,2 @@
1
+ import { t as paradedbIndexTypes } from "./index-types-C1q0xQR4-DQ2qSz2K.mjs";
2
+ export { paradedbIndexTypes };
@@ -0,0 +1,135 @@
1
+ import { AnyExpression } from "@prisma/orm-family-sql/relational-core/ast";
2
+ import { CodecExpression, Expression } from "@prisma/orm-family-sql/relational-core/expression";
3
+ import { SqlQueryOperationTypes } from "@prisma/orm-family-sql/contract/types";
4
+ //#region ../../../3-extensions/paradedb/dist/operation-types-CnWfzlZq.d.mts
5
+ //#region src/core/proximity-chain.d.ts
6
+ type ProximityTerm = unknown;
7
+ interface ProximityWithinOptions {
8
+ readonly ordered?: boolean;
9
+ }
10
+ interface ProximityStep {
11
+ readonly distance: number;
12
+ readonly term: ProximityTerm;
13
+ readonly ordered: boolean;
14
+ }
15
+ declare class ParadeDbProximityChain implements Expression<{
16
+ codecId: 'pg/text@1';
17
+ nullable: false;
18
+ }> {
19
+ readonly returnType: {
20
+ readonly codecId: "pg/text@1";
21
+ readonly nullable: false;
22
+ };
23
+ private readonly start;
24
+ private readonly steps;
25
+ constructor(start: ProximityTerm, steps?: readonly ProximityStep[]);
26
+ within(distance: number, term: ProximityTerm, options?: ProximityWithinOptions): ParadeDbProximityChain;
27
+ buildAst(): AnyExpression;
28
+ }
29
+ //#endregion
30
+ //#region src/types/operation-types.d.ts
31
+ type CodecTypesBase = Record<string, {
32
+ readonly input: unknown;
33
+ readonly output: unknown;
34
+ }>;
35
+ type QueryOperationTypes<CT extends CodecTypesBase> = SqlQueryOperationTypes<CT, {
36
+ readonly paradeDbMatch: {
37
+ readonly self: {
38
+ readonly codecId: 'pg/text@1';
39
+ };
40
+ readonly impl: (self: CodecExpression<'pg/text@1', boolean, CT>, query: CodecExpression<'pg/text@1', boolean, CT>) => Expression<{
41
+ codecId: 'pg/bool@1';
42
+ nullable: false;
43
+ }>;
44
+ };
45
+ readonly paradeDbMatchAny: {
46
+ readonly self: {
47
+ readonly codecId: 'pg/text@1';
48
+ };
49
+ readonly impl: (self: CodecExpression<'pg/text@1', boolean, CT>, query: CodecExpression<'pg/text@1', boolean, CT>) => Expression<{
50
+ codecId: 'pg/bool@1';
51
+ nullable: false;
52
+ }>;
53
+ };
54
+ readonly paradeDbMatchAll: {
55
+ readonly self: {
56
+ readonly codecId: 'pg/text@1';
57
+ };
58
+ readonly impl: (self: CodecExpression<'pg/text@1', boolean, CT>, query: CodecExpression<'pg/text@1', boolean, CT>) => Expression<{
59
+ codecId: 'pg/bool@1';
60
+ nullable: false;
61
+ }>;
62
+ };
63
+ readonly paradeDbTerm: {
64
+ readonly self: {
65
+ readonly codecId: 'pg/text@1';
66
+ };
67
+ readonly impl: (self: CodecExpression<'pg/text@1', boolean, CT>, query: CodecExpression<'pg/text@1', boolean, CT>) => Expression<{
68
+ codecId: 'pg/bool@1';
69
+ nullable: false;
70
+ }>;
71
+ };
72
+ readonly paradeDbPhrase: {
73
+ readonly self: {
74
+ readonly codecId: 'pg/text@1';
75
+ };
76
+ readonly impl: (self: CodecExpression<'pg/text@1', boolean, CT>, query: CodecExpression<'pg/text@1', boolean, CT>) => Expression<{
77
+ codecId: 'pg/bool@1';
78
+ nullable: false;
79
+ }>;
80
+ };
81
+ readonly paradeDbScore: {
82
+ readonly self: {
83
+ readonly codecId: 'pg/int4@1';
84
+ };
85
+ readonly impl: (self: CodecExpression<'pg/int4@1', boolean, CT>) => Expression<{
86
+ codecId: 'pg/float4@1';
87
+ nullable: false;
88
+ }>;
89
+ };
90
+ readonly paradeDbFuzzy: {
91
+ readonly self: {
92
+ readonly codecId: 'pg/text@1';
93
+ };
94
+ readonly impl: (self: CodecExpression<'pg/text@1', boolean, CT>, distance: number) => Expression<{
95
+ codecId: 'pg/text@1';
96
+ nullable: false;
97
+ }>;
98
+ };
99
+ readonly paradeDbBoost: {
100
+ readonly self: {
101
+ readonly codecId: 'pg/text@1';
102
+ };
103
+ readonly impl: (self: CodecExpression<'pg/text@1', boolean, CT>, weight: number) => Expression<{
104
+ codecId: 'pg/text@1';
105
+ nullable: false;
106
+ }>;
107
+ };
108
+ readonly paradeDbConst: {
109
+ readonly self: {
110
+ readonly codecId: 'pg/text@1';
111
+ };
112
+ readonly impl: (self: CodecExpression<'pg/text@1', boolean, CT>, value: number) => Expression<{
113
+ codecId: 'pg/text@1';
114
+ nullable: false;
115
+ }>;
116
+ };
117
+ readonly paradeDbSlop: {
118
+ readonly self: {
119
+ readonly codecId: 'pg/text@1';
120
+ };
121
+ readonly impl: (self: CodecExpression<'pg/text@1', boolean, CT>, slop: number) => Expression<{
122
+ codecId: 'pg/text@1';
123
+ nullable: false;
124
+ }>;
125
+ };
126
+ readonly paradeDbProximity: {
127
+ readonly self: {
128
+ readonly codecId: 'pg/text@1';
129
+ };
130
+ readonly impl: (start: CodecExpression<'pg/text@1', boolean, CT>) => ParadeDbProximityChain;
131
+ };
132
+ }>;
133
+ //#endregion
134
+ export { QueryOperationTypes as t };
135
+ //# sourceMappingURL=operation-types-CnWfzlZq-ByY1S789.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"operation-types-CnWfzlZq-ByY1S789.d.mts","names":[],"sources":["../../../../3-extensions/paradedb/dist/operation-types-CnWfzlZq.d.mts"],"mappings":";;;;;KAIK;UACK;WACC;;UAED;WACC;WACA,MAAM;WACN;;cAEG,kCAAkC;EAC9C;EACA;;WAES;aACE;aACA;;mBAEM;mBACA;EACjB,YAAY,OAAO,eAAe,iBAAiB;EACnD,OAAO,kBAAkB,MAAM,eAAe,UAAU,yBAAyB;EACjF,YAAY;;;;KAIT,iBAAiB;WACX;WACA;;KAEN,oBAAoB,WAAW,kBAAkB,uBAAuB;WAClE;aACE;eACE;;aAEF,OAAO,MAAM,sCAAsC,KAAK,OAAO,sCAAsC,QAAQ;MACpH;MACA;;;WAGK;aACE;eACE;;aAEF,OAAO,MAAM,sCAAsC,KAAK,OAAO,sCAAsC,QAAQ;MACpH;MACA;;;WAGK;aACE;eACE;;aAEF,OAAO,MAAM,sCAAsC,KAAK,OAAO,sCAAsC,QAAQ;MACpH;MACA;;;WAGK;aACE;eACE;;aAEF,OAAO,MAAM,sCAAsC,KAAK,OAAO,sCAAsC,QAAQ;MACpH;MACA;;;WAGK;aACE;eACE;;aAEF,OAAO,MAAM,sCAAsC,KAAK,OAAO,sCAAsC,QAAQ;MACpH;MACA;;;WAGK;aACE;eACE;;aAEF,OAAO,MAAM,sCAAsC,QAAQ;MAClE;MACA;;;WAGK;aACE;eACE;;aAEF,OAAO,MAAM,sCAAsC,KAAK,qBAAqB;MACpF;MACA;;;WAGK;aACE;eACE;;aAEF,OAAO,MAAM,sCAAsC,KAAK,mBAAmB;MAClF;MACA;;;WAGK;aACE;eACE;;aAEF,OAAO,MAAM,sCAAsC,KAAK,kBAAkB;MACjF;MACA;;;WAGK;aACE;eACE;;aAEF,OAAO,MAAM,sCAAsC,KAAK,iBAAiB;MAChF;MACA;;;WAGK;aACE;eACE;;aAEF,OAAO,OAAO,sCAAsC,QAAQ"}
@@ -0,0 +1,2 @@
1
+ import { t as QueryOperationTypes } from "./operation-types-CnWfzlZq-ByY1S789.mjs";
2
+ export type { QueryOperationTypes };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,31 @@
1
+ //#region ../../../3-extensions/paradedb/dist/pack.d.mts
2
+ //#region src/exports/pack.d.ts
3
+ declare const paradedbPack: {
4
+ readonly kind: "extension";
5
+ readonly id: "paradedb";
6
+ readonly familyId: "sql";
7
+ readonly targetId: "postgres";
8
+ readonly version: "0.0.1";
9
+ readonly capabilities: {
10
+ readonly postgres: {
11
+ readonly 'paradedb/bm25': true;
12
+ };
13
+ };
14
+ readonly indexTypes: import("@prisma/orm-family-sql/contract/index-types").IndexTypeBuilder<Record<never, never> & Record<"bm25", {
15
+ readonly options: {
16
+ key_field: string;
17
+ };
18
+ }>>;
19
+ readonly types: {
20
+ readonly queryOperationTypes: {
21
+ readonly import: {
22
+ readonly package: "@internal/extension-paradedb/operation-types";
23
+ readonly named: "QueryOperationTypes";
24
+ readonly alias: "ParadeDbQueryOperationTypes";
25
+ };
26
+ };
27
+ };
28
+ };
29
+ //#endregion
30
+ export { paradedbPack as default };
31
+ //# sourceMappingURL=pack.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pack.d.mts","names":[],"sources":["../../../../3-extensions/paradedb/dist/pack.d.mts"],"mappings":";;cACc;WACH;WACA;WACA;WACA;WACA;WACA;aACE;eACE;;;WAGJ,yDAAyD,iBAAiB,uBAAuB;aAC/F;MACP;;;WAGK;aACE;eACE;iBACE;iBACA;iBACA"}
package/dist/pack.mjs ADDED
@@ -0,0 +1,7 @@
1
+ import { n as paradedbPackMeta } from "./descriptor-meta-CqqjwQV3-rK5CM2pg.mjs";
2
+ //#region ../../../3-extensions/paradedb/dist/pack.mjs
3
+ const paradedbPack = paradedbPackMeta;
4
+ //#endregion
5
+ export { paradedbPack as default };
6
+
7
+ //# sourceMappingURL=pack.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pack.mjs","names":[],"sources":["../../../../3-extensions/paradedb/dist/pack.mjs"],"sourcesContent":["import { t as paradedbPackMeta } from \"./descriptor-meta-CqqjwQV3.mjs\";\n//#region src/exports/pack.ts\nconst paradedbPack = paradedbPackMeta;\n//#endregion\nexport { paradedbPack as default };\n\n//# sourceMappingURL=pack.mjs.map"],"mappings":";;AAEA,MAAM,eAAe"}
@@ -0,0 +1,7 @@
1
+ import { SqlRuntimeExtensionDescriptor } from "@prisma/orm-family-sql/runtime";
2
+ //#region ../../../3-extensions/paradedb/dist/runtime.d.mts
3
+ //#region src/exports/runtime.d.ts
4
+ declare const paradedbRuntimeDescriptor: SqlRuntimeExtensionDescriptor<'postgres'>;
5
+ //#endregion
6
+ export { paradedbRuntimeDescriptor as default };
7
+ //# sourceMappingURL=runtime.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"runtime.d.mts","names":[],"sources":["../../../../3-extensions/paradedb/dist/runtime.d.mts"],"mappings":";;;cAEc,2BAA2B"}
@@ -0,0 +1,21 @@
1
+ import { n as paradedbPackMeta, r as paradedbQueryOperations } from "./descriptor-meta-CqqjwQV3-rK5CM2pg.mjs";
2
+ //#region ../../../3-extensions/paradedb/dist/runtime.mjs
3
+ const paradedbRuntimeDescriptor = {
4
+ kind: "extension",
5
+ id: paradedbPackMeta.id,
6
+ version: paradedbPackMeta.version,
7
+ familyId: "sql",
8
+ targetId: "postgres",
9
+ codecs: () => [],
10
+ queryOperations: () => paradedbQueryOperations(),
11
+ create() {
12
+ return {
13
+ familyId: "sql",
14
+ targetId: "postgres"
15
+ };
16
+ }
17
+ };
18
+ //#endregion
19
+ export { paradedbRuntimeDescriptor as default };
20
+
21
+ //# sourceMappingURL=runtime.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"runtime.mjs","names":[],"sources":["../../../../3-extensions/paradedb/dist/runtime.mjs"],"sourcesContent":["import { n as paradedbQueryOperations, t as paradedbPackMeta } from \"./descriptor-meta-CqqjwQV3.mjs\";\n//#region src/exports/runtime.ts\nconst paradedbRuntimeDescriptor = {\n\tkind: \"extension\",\n\tid: paradedbPackMeta.id,\n\tversion: paradedbPackMeta.version,\n\tfamilyId: \"sql\",\n\ttargetId: \"postgres\",\n\tcodecs: () => [],\n\tqueryOperations: () => paradedbQueryOperations(),\n\tcreate() {\n\t\treturn {\n\t\t\tfamilyId: \"sql\",\n\t\t\ttargetId: \"postgres\"\n\t\t};\n\t}\n};\n//#endregion\nexport { paradedbRuntimeDescriptor as default };\n\n//# sourceMappingURL=runtime.mjs.map"],"mappings":";;AAEA,MAAM,4BAA4B;CACjC,MAAM;CACN,IAAI,iBAAiB;CACrB,SAAS,iBAAiB;CAC1B,UAAU;CACV,UAAU;CACV,cAAc,CAAC;CACf,uBAAuB,wBAAwB;CAC/C,SAAS;EACR,OAAO;GACN,UAAU;GACV,UAAU;EACX;CACD;AACD"}
package/package.json ADDED
@@ -0,0 +1,51 @@
1
+ {
2
+ "name": "@prisma/orm-extension-paradedb",
3
+ "version": "0.16.0-dev.36",
4
+ "license": "Apache-2.0",
5
+ "type": "module",
6
+ "sideEffects": false,
7
+ "description": "ParadeDB BM25 full-text search indexes and operators for Prisma Next",
8
+ "files": [
9
+ "dist"
10
+ ],
11
+ "dependencies": {
12
+ "@prisma/orm-family-sql": "0.16.0-dev.36",
13
+ "@prisma/orm-framework": "0.16.0-dev.36",
14
+ "@prisma/orm-toolchain": "0.16.0-dev.36",
15
+ "arktype": "^2.2.2"
16
+ },
17
+ "devDependencies": {
18
+ "@internal/extension-paradedb": "0.16.0-dev.36",
19
+ "@repo/tsconfig": "0.16.0-dev.36",
20
+ "@repo/tsdown": "0.16.0-dev.36",
21
+ "tsdown": "0.22.14",
22
+ "typescript": "5.9.3"
23
+ },
24
+ "peerDependencies": {
25
+ "@prisma/orm-target-postgres": "0.16.0-dev.36",
26
+ "typescript": ">=5.9"
27
+ },
28
+ "peerDependenciesMeta": {
29
+ "typescript": {
30
+ "optional": true
31
+ }
32
+ },
33
+ "exports": {
34
+ "./control": "./dist/control.mjs",
35
+ "./index-types": "./dist/index-types.mjs",
36
+ "./operation-types": "./dist/operation-types.mjs",
37
+ "./pack": "./dist/pack.mjs",
38
+ "./runtime": "./dist/runtime.mjs",
39
+ "./package.json": "./package.json"
40
+ },
41
+ "repository": {
42
+ "type": "git",
43
+ "url": "https://github.com/prisma/prisma.git",
44
+ "directory": "packages/9-public/@prisma/orm-extension-paradedb"
45
+ },
46
+ "scripts": {
47
+ "build": "tsdown",
48
+ "lint": "biome check . --error-on-warnings",
49
+ "clean": "rm -rf dist src-gen"
50
+ }
51
+ }