@prisma/orm-extension-supabase 8.0.0-rc.12-dev.16 → 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.
@@ -4,14 +4,16 @@ import { n as anon, r as authenticated } from "./roles-ClnD0bbo-BDs2kWQ0.mjs";
4
4
  declare const AuthUser: import("@prisma/orm-family-sql/contract-ts/contract-builder").ContractModelBuilder<"AuthUser", {
5
5
  id: import("@prisma/orm-family-sql/contract-ts/contract-builder").ScalarFieldBuilder<{
6
6
  readonly kind: "scalar";
7
- readonly descriptor?: {
7
+ readonly descriptor?: ({
8
8
  readonly codecId: "pg/text@1";
9
9
  readonly nativeType: "text";
10
- } | undefined;
10
+ } & {
11
+ __codecInput?(input: unknown): void;
12
+ }) | undefined;
11
13
  readonly typeRef?: undefined;
12
14
  readonly nullable: false;
13
15
  readonly columnName?: undefined;
14
- readonly default?: import("@prisma/orm-framework/contract/types").ColumnDefault | undefined;
16
+ readonly default?: import("@prisma/orm-family-sql/contract-ts/contract-builder").AuthoredColumnDefault | undefined;
15
17
  readonly executionDefaults?: import("@prisma/orm-framework/contract/types").ExecutionMutationDefaultPhases | undefined;
16
18
  readonly many?: undefined;
17
19
  readonly noCheck?: readonly import("@prisma/orm-family-sql/schema-ir/naming").CheckKind[] | undefined;
@@ -24,14 +26,16 @@ declare const AuthUser: import("@prisma/orm-family-sql/contract-ts/contract-buil
24
26
  }>;
25
27
  email: import("@prisma/orm-family-sql/contract-ts/contract-builder").ScalarFieldBuilder<{
26
28
  readonly kind: "scalar";
27
- readonly descriptor?: {
29
+ readonly descriptor?: ({
28
30
  readonly codecId: "pg/text@1";
29
31
  readonly nativeType: "text";
30
- } | undefined;
32
+ } & {
33
+ __codecInput?(input: unknown): void;
34
+ }) | undefined;
31
35
  readonly typeRef?: undefined;
32
36
  readonly nullable: false;
33
37
  readonly columnName?: undefined;
34
- readonly default?: import("@prisma/orm-framework/contract/types").ColumnDefault | undefined;
38
+ readonly default?: import("@prisma/orm-family-sql/contract-ts/contract-builder").AuthoredColumnDefault | undefined;
35
39
  readonly executionDefaults?: import("@prisma/orm-framework/contract/types").ExecutionMutationDefaultPhases | undefined;
36
40
  readonly many?: undefined;
37
41
  readonly noCheck?: readonly import("@prisma/orm-family-sql/schema-ir/naming").CheckKind[] | undefined;
@@ -42,14 +46,16 @@ declare const AuthUser: import("@prisma/orm-family-sql/contract-ts/contract-buil
42
46
  }>;
43
47
  created_at: import("@prisma/orm-family-sql/contract-ts/contract-builder").ScalarFieldBuilder<{
44
48
  readonly kind: "scalar";
45
- readonly descriptor?: {
49
+ readonly descriptor?: ({
46
50
  readonly codecId: "pg/timestamptz-temporal@1";
47
51
  readonly nativeType: "timestamptz";
48
- } | undefined;
52
+ } & {
53
+ __codecInput?(input: unknown): void;
54
+ }) | undefined;
49
55
  readonly typeRef?: undefined;
50
56
  readonly nullable: false;
51
57
  readonly columnName?: undefined;
52
- readonly default?: import("@prisma/orm-framework/contract/types").ColumnDefault | undefined;
58
+ readonly default?: import("@prisma/orm-family-sql/contract-ts/contract-builder").AuthoredColumnDefault | undefined;
53
59
  readonly executionDefaults?: import("@prisma/orm-framework/contract/types").ExecutionMutationDefaultPhases | undefined;
54
60
  readonly many?: undefined;
55
61
  readonly noCheck?: readonly import("@prisma/orm-family-sql/schema-ir/naming").CheckKind[] | undefined;
@@ -60,14 +66,16 @@ declare const AuthUser: import("@prisma/orm-family-sql/contract-ts/contract-buil
60
66
  }>;
61
67
  updated_at: import("@prisma/orm-family-sql/contract-ts/contract-builder").ScalarFieldBuilder<{
62
68
  readonly kind: "scalar";
63
- readonly descriptor?: {
69
+ readonly descriptor?: ({
64
70
  readonly codecId: "pg/timestamptz-temporal@1";
65
71
  readonly nativeType: "timestamptz";
66
- } | undefined;
72
+ } & {
73
+ __codecInput?(input: unknown): void;
74
+ }) | undefined;
67
75
  readonly typeRef?: undefined;
68
76
  readonly nullable: false;
69
77
  readonly columnName?: undefined;
70
- readonly default?: import("@prisma/orm-framework/contract/types").ColumnDefault | undefined;
78
+ readonly default?: import("@prisma/orm-family-sql/contract-ts/contract-builder").AuthoredColumnDefault | undefined;
71
79
  readonly executionDefaults?: import("@prisma/orm-framework/contract/types").ExecutionMutationDefaultPhases | undefined;
72
80
  readonly many?: undefined;
73
81
  readonly noCheck?: readonly import("@prisma/orm-family-sql/schema-ir/naming").CheckKind[] | undefined;
@@ -80,14 +88,16 @@ declare const AuthUser: import("@prisma/orm-family-sql/contract-ts/contract-buil
80
88
  declare const AuthIdentity: import("@prisma/orm-family-sql/contract-ts/contract-builder").ContractModelBuilder<"AuthIdentity", {
81
89
  id: import("@prisma/orm-family-sql/contract-ts/contract-builder").ScalarFieldBuilder<{
82
90
  readonly kind: "scalar";
83
- readonly descriptor?: {
91
+ readonly descriptor?: ({
84
92
  readonly codecId: "pg/text@1";
85
93
  readonly nativeType: "text";
86
- } | undefined;
94
+ } & {
95
+ __codecInput?(input: unknown): void;
96
+ }) | undefined;
87
97
  readonly typeRef?: undefined;
88
98
  readonly nullable: false;
89
99
  readonly columnName?: undefined;
90
- readonly default?: import("@prisma/orm-framework/contract/types").ColumnDefault | undefined;
100
+ readonly default?: import("@prisma/orm-family-sql/contract-ts/contract-builder").AuthoredColumnDefault | undefined;
91
101
  readonly executionDefaults?: import("@prisma/orm-framework/contract/types").ExecutionMutationDefaultPhases | undefined;
92
102
  readonly many?: undefined;
93
103
  readonly noCheck?: readonly import("@prisma/orm-family-sql/schema-ir/naming").CheckKind[] | undefined;
@@ -100,14 +110,16 @@ declare const AuthIdentity: import("@prisma/orm-family-sql/contract-ts/contract-
100
110
  }>;
101
111
  user_id: import("@prisma/orm-family-sql/contract-ts/contract-builder").ScalarFieldBuilder<{
102
112
  readonly kind: "scalar";
103
- readonly descriptor?: {
113
+ readonly descriptor?: ({
104
114
  readonly codecId: "pg/text@1";
105
115
  readonly nativeType: "text";
106
- } | undefined;
116
+ } & {
117
+ __codecInput?(input: unknown): void;
118
+ }) | undefined;
107
119
  readonly typeRef?: undefined;
108
120
  readonly nullable: false;
109
121
  readonly columnName?: undefined;
110
- readonly default?: import("@prisma/orm-framework/contract/types").ColumnDefault | undefined;
122
+ readonly default?: import("@prisma/orm-family-sql/contract-ts/contract-builder").AuthoredColumnDefault | undefined;
111
123
  readonly executionDefaults?: import("@prisma/orm-framework/contract/types").ExecutionMutationDefaultPhases | undefined;
112
124
  readonly many?: undefined;
113
125
  readonly noCheck?: readonly import("@prisma/orm-family-sql/schema-ir/naming").CheckKind[] | undefined;
@@ -118,14 +130,16 @@ declare const AuthIdentity: import("@prisma/orm-family-sql/contract-ts/contract-
118
130
  }>;
119
131
  provider: import("@prisma/orm-family-sql/contract-ts/contract-builder").ScalarFieldBuilder<{
120
132
  readonly kind: "scalar";
121
- readonly descriptor?: {
133
+ readonly descriptor?: ({
122
134
  readonly codecId: "pg/text@1";
123
135
  readonly nativeType: "text";
124
- } | undefined;
136
+ } & {
137
+ __codecInput?(input: unknown): void;
138
+ }) | undefined;
125
139
  readonly typeRef?: undefined;
126
140
  readonly nullable: false;
127
141
  readonly columnName?: undefined;
128
- readonly default?: import("@prisma/orm-framework/contract/types").ColumnDefault | undefined;
142
+ readonly default?: import("@prisma/orm-family-sql/contract-ts/contract-builder").AuthoredColumnDefault | undefined;
129
143
  readonly executionDefaults?: import("@prisma/orm-framework/contract/types").ExecutionMutationDefaultPhases | undefined;
130
144
  readonly many?: undefined;
131
145
  readonly noCheck?: readonly import("@prisma/orm-family-sql/schema-ir/naming").CheckKind[] | undefined;
@@ -136,14 +150,16 @@ declare const AuthIdentity: import("@prisma/orm-family-sql/contract-ts/contract-
136
150
  }>;
137
151
  created_at: import("@prisma/orm-family-sql/contract-ts/contract-builder").ScalarFieldBuilder<{
138
152
  readonly kind: "scalar";
139
- readonly descriptor?: {
153
+ readonly descriptor?: ({
140
154
  readonly codecId: "pg/timestamptz-temporal@1";
141
155
  readonly nativeType: "timestamptz";
142
- } | undefined;
156
+ } & {
157
+ __codecInput?(input: unknown): void;
158
+ }) | undefined;
143
159
  readonly typeRef?: undefined;
144
160
  readonly nullable: false;
145
161
  readonly columnName?: undefined;
146
- readonly default?: import("@prisma/orm-framework/contract/types").ColumnDefault | undefined;
162
+ readonly default?: import("@prisma/orm-family-sql/contract-ts/contract-builder").AuthoredColumnDefault | undefined;
147
163
  readonly executionDefaults?: import("@prisma/orm-framework/contract/types").ExecutionMutationDefaultPhases | undefined;
148
164
  readonly many?: undefined;
149
165
  readonly noCheck?: readonly import("@prisma/orm-family-sql/schema-ir/naming").CheckKind[] | undefined;
@@ -154,14 +170,16 @@ declare const AuthIdentity: import("@prisma/orm-family-sql/contract-ts/contract-
154
170
  }>;
155
171
  updated_at: import("@prisma/orm-family-sql/contract-ts/contract-builder").ScalarFieldBuilder<{
156
172
  readonly kind: "scalar";
157
- readonly descriptor?: {
173
+ readonly descriptor?: ({
158
174
  readonly codecId: "pg/timestamptz-temporal@1";
159
175
  readonly nativeType: "timestamptz";
160
- } | undefined;
176
+ } & {
177
+ __codecInput?(input: unknown): void;
178
+ }) | undefined;
161
179
  readonly typeRef?: undefined;
162
180
  readonly nullable: false;
163
181
  readonly columnName?: undefined;
164
- readonly default?: import("@prisma/orm-framework/contract/types").ColumnDefault | undefined;
182
+ readonly default?: import("@prisma/orm-family-sql/contract-ts/contract-builder").AuthoredColumnDefault | undefined;
165
183
  readonly executionDefaults?: import("@prisma/orm-framework/contract/types").ExecutionMutationDefaultPhases | undefined;
166
184
  readonly many?: undefined;
167
185
  readonly noCheck?: readonly import("@prisma/orm-family-sql/schema-ir/naming").CheckKind[] | undefined;
@@ -174,14 +192,16 @@ declare const AuthIdentity: import("@prisma/orm-family-sql/contract-ts/contract-
174
192
  declare const StorageBucket: import("@prisma/orm-family-sql/contract-ts/contract-builder").ContractModelBuilder<"StorageBucket", {
175
193
  id: import("@prisma/orm-family-sql/contract-ts/contract-builder").ScalarFieldBuilder<{
176
194
  readonly kind: "scalar";
177
- readonly descriptor?: {
195
+ readonly descriptor?: ({
178
196
  readonly codecId: "pg/text@1";
179
197
  readonly nativeType: "text";
180
- } | undefined;
198
+ } & {
199
+ __codecInput?(input: unknown): void;
200
+ }) | undefined;
181
201
  readonly typeRef?: undefined;
182
202
  readonly nullable: false;
183
203
  readonly columnName?: undefined;
184
- readonly default?: import("@prisma/orm-framework/contract/types").ColumnDefault | undefined;
204
+ readonly default?: import("@prisma/orm-family-sql/contract-ts/contract-builder").AuthoredColumnDefault | undefined;
185
205
  readonly executionDefaults?: import("@prisma/orm-framework/contract/types").ExecutionMutationDefaultPhases | undefined;
186
206
  readonly many?: undefined;
187
207
  readonly noCheck?: readonly import("@prisma/orm-family-sql/schema-ir/naming").CheckKind[] | undefined;
@@ -194,14 +214,16 @@ declare const StorageBucket: import("@prisma/orm-family-sql/contract-ts/contract
194
214
  }>;
195
215
  name: import("@prisma/orm-family-sql/contract-ts/contract-builder").ScalarFieldBuilder<{
196
216
  readonly kind: "scalar";
197
- readonly descriptor?: {
217
+ readonly descriptor?: ({
198
218
  readonly codecId: "pg/text@1";
199
219
  readonly nativeType: "text";
200
- } | undefined;
220
+ } & {
221
+ __codecInput?(input: unknown): void;
222
+ }) | undefined;
201
223
  readonly typeRef?: undefined;
202
224
  readonly nullable: false;
203
225
  readonly columnName?: undefined;
204
- readonly default?: import("@prisma/orm-framework/contract/types").ColumnDefault | undefined;
226
+ readonly default?: import("@prisma/orm-family-sql/contract-ts/contract-builder").AuthoredColumnDefault | undefined;
205
227
  readonly executionDefaults?: import("@prisma/orm-framework/contract/types").ExecutionMutationDefaultPhases | undefined;
206
228
  readonly many?: undefined;
207
229
  readonly noCheck?: readonly import("@prisma/orm-family-sql/schema-ir/naming").CheckKind[] | undefined;
@@ -212,14 +234,16 @@ declare const StorageBucket: import("@prisma/orm-family-sql/contract-ts/contract
212
234
  }>;
213
235
  created_at: import("@prisma/orm-family-sql/contract-ts/contract-builder").ScalarFieldBuilder<{
214
236
  readonly kind: "scalar";
215
- readonly descriptor?: {
237
+ readonly descriptor?: ({
216
238
  readonly codecId: "pg/timestamptz-temporal@1";
217
239
  readonly nativeType: "timestamptz";
218
- } | undefined;
240
+ } & {
241
+ __codecInput?(input: unknown): void;
242
+ }) | undefined;
219
243
  readonly typeRef?: undefined;
220
244
  readonly nullable: false;
221
245
  readonly columnName?: undefined;
222
- readonly default?: import("@prisma/orm-framework/contract/types").ColumnDefault | undefined;
246
+ readonly default?: import("@prisma/orm-family-sql/contract-ts/contract-builder").AuthoredColumnDefault | undefined;
223
247
  readonly executionDefaults?: import("@prisma/orm-framework/contract/types").ExecutionMutationDefaultPhases | undefined;
224
248
  readonly many?: undefined;
225
249
  readonly noCheck?: readonly import("@prisma/orm-family-sql/schema-ir/naming").CheckKind[] | undefined;
@@ -230,14 +254,16 @@ declare const StorageBucket: import("@prisma/orm-family-sql/contract-ts/contract
230
254
  }>;
231
255
  updated_at: import("@prisma/orm-family-sql/contract-ts/contract-builder").ScalarFieldBuilder<{
232
256
  readonly kind: "scalar";
233
- readonly descriptor?: {
257
+ readonly descriptor?: ({
234
258
  readonly codecId: "pg/timestamptz-temporal@1";
235
259
  readonly nativeType: "timestamptz";
236
- } | undefined;
260
+ } & {
261
+ __codecInput?(input: unknown): void;
262
+ }) | undefined;
237
263
  readonly typeRef?: undefined;
238
264
  readonly nullable: false;
239
265
  readonly columnName?: undefined;
240
- readonly default?: import("@prisma/orm-framework/contract/types").ColumnDefault | undefined;
266
+ readonly default?: import("@prisma/orm-family-sql/contract-ts/contract-builder").AuthoredColumnDefault | undefined;
241
267
  readonly executionDefaults?: import("@prisma/orm-framework/contract/types").ExecutionMutationDefaultPhases | undefined;
242
268
  readonly many?: undefined;
243
269
  readonly noCheck?: readonly import("@prisma/orm-family-sql/schema-ir/naming").CheckKind[] | undefined;
@@ -250,14 +276,16 @@ declare const StorageBucket: import("@prisma/orm-family-sql/contract-ts/contract
250
276
  declare const StorageObject: import("@prisma/orm-family-sql/contract-ts/contract-builder").ContractModelBuilder<"StorageObject", {
251
277
  id: import("@prisma/orm-family-sql/contract-ts/contract-builder").ScalarFieldBuilder<{
252
278
  readonly kind: "scalar";
253
- readonly descriptor?: {
279
+ readonly descriptor?: ({
254
280
  readonly codecId: "pg/text@1";
255
281
  readonly nativeType: "text";
256
- } | undefined;
282
+ } & {
283
+ __codecInput?(input: unknown): void;
284
+ }) | undefined;
257
285
  readonly typeRef?: undefined;
258
286
  readonly nullable: false;
259
287
  readonly columnName?: undefined;
260
- readonly default?: import("@prisma/orm-framework/contract/types").ColumnDefault | undefined;
288
+ readonly default?: import("@prisma/orm-family-sql/contract-ts/contract-builder").AuthoredColumnDefault | undefined;
261
289
  readonly executionDefaults?: import("@prisma/orm-framework/contract/types").ExecutionMutationDefaultPhases | undefined;
262
290
  readonly many?: undefined;
263
291
  readonly noCheck?: readonly import("@prisma/orm-family-sql/schema-ir/naming").CheckKind[] | undefined;
@@ -270,14 +298,16 @@ declare const StorageObject: import("@prisma/orm-family-sql/contract-ts/contract
270
298
  }>;
271
299
  bucket_id: import("@prisma/orm-family-sql/contract-ts/contract-builder").ScalarFieldBuilder<{
272
300
  readonly kind: "scalar";
273
- readonly descriptor?: {
301
+ readonly descriptor?: ({
274
302
  readonly codecId: "pg/text@1";
275
303
  readonly nativeType: "text";
276
- } | undefined;
304
+ } & {
305
+ __codecInput?(input: unknown): void;
306
+ }) | undefined;
277
307
  readonly typeRef?: undefined;
278
308
  readonly nullable: false;
279
309
  readonly columnName?: undefined;
280
- readonly default?: import("@prisma/orm-framework/contract/types").ColumnDefault | undefined;
310
+ readonly default?: import("@prisma/orm-family-sql/contract-ts/contract-builder").AuthoredColumnDefault | undefined;
281
311
  readonly executionDefaults?: import("@prisma/orm-framework/contract/types").ExecutionMutationDefaultPhases | undefined;
282
312
  readonly many?: undefined;
283
313
  readonly noCheck?: readonly import("@prisma/orm-family-sql/schema-ir/naming").CheckKind[] | undefined;
@@ -288,14 +318,16 @@ declare const StorageObject: import("@prisma/orm-family-sql/contract-ts/contract
288
318
  }>;
289
319
  name: import("@prisma/orm-family-sql/contract-ts/contract-builder").ScalarFieldBuilder<{
290
320
  readonly kind: "scalar";
291
- readonly descriptor?: {
321
+ readonly descriptor?: ({
292
322
  readonly codecId: "pg/text@1";
293
323
  readonly nativeType: "text";
294
- } | undefined;
324
+ } & {
325
+ __codecInput?(input: unknown): void;
326
+ }) | undefined;
295
327
  readonly typeRef?: undefined;
296
328
  readonly nullable: false;
297
329
  readonly columnName?: undefined;
298
- readonly default?: import("@prisma/orm-framework/contract/types").ColumnDefault | undefined;
330
+ readonly default?: import("@prisma/orm-family-sql/contract-ts/contract-builder").AuthoredColumnDefault | undefined;
299
331
  readonly executionDefaults?: import("@prisma/orm-framework/contract/types").ExecutionMutationDefaultPhases | undefined;
300
332
  readonly many?: undefined;
301
333
  readonly noCheck?: readonly import("@prisma/orm-family-sql/schema-ir/naming").CheckKind[] | undefined;
@@ -306,14 +338,16 @@ declare const StorageObject: import("@prisma/orm-family-sql/contract-ts/contract
306
338
  }>;
307
339
  created_at: import("@prisma/orm-family-sql/contract-ts/contract-builder").ScalarFieldBuilder<{
308
340
  readonly kind: "scalar";
309
- readonly descriptor?: {
341
+ readonly descriptor?: ({
310
342
  readonly codecId: "pg/timestamptz-temporal@1";
311
343
  readonly nativeType: "timestamptz";
312
- } | undefined;
344
+ } & {
345
+ __codecInput?(input: unknown): void;
346
+ }) | undefined;
313
347
  readonly typeRef?: undefined;
314
348
  readonly nullable: false;
315
349
  readonly columnName?: undefined;
316
- readonly default?: import("@prisma/orm-framework/contract/types").ColumnDefault | undefined;
350
+ readonly default?: import("@prisma/orm-family-sql/contract-ts/contract-builder").AuthoredColumnDefault | undefined;
317
351
  readonly executionDefaults?: import("@prisma/orm-framework/contract/types").ExecutionMutationDefaultPhases | undefined;
318
352
  readonly many?: undefined;
319
353
  readonly noCheck?: readonly import("@prisma/orm-family-sql/schema-ir/naming").CheckKind[] | undefined;
@@ -324,14 +358,16 @@ declare const StorageObject: import("@prisma/orm-family-sql/contract-ts/contract
324
358
  }>;
325
359
  updated_at: import("@prisma/orm-family-sql/contract-ts/contract-builder").ScalarFieldBuilder<{
326
360
  readonly kind: "scalar";
327
- readonly descriptor?: {
361
+ readonly descriptor?: ({
328
362
  readonly codecId: "pg/timestamptz-temporal@1";
329
363
  readonly nativeType: "timestamptz";
330
- } | undefined;
364
+ } & {
365
+ __codecInput?(input: unknown): void;
366
+ }) | undefined;
331
367
  readonly typeRef?: undefined;
332
368
  readonly nullable: false;
333
369
  readonly columnName?: undefined;
334
- readonly default?: import("@prisma/orm-framework/contract/types").ColumnDefault | undefined;
370
+ readonly default?: import("@prisma/orm-family-sql/contract-ts/contract-builder").AuthoredColumnDefault | undefined;
335
371
  readonly executionDefaults?: import("@prisma/orm-framework/contract/types").ExecutionMutationDefaultPhases | undefined;
336
372
  readonly many?: undefined;
337
373
  readonly noCheck?: readonly import("@prisma/orm-family-sql/schema-ir/naming").CheckKind[] | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"contract.d.mts","names":[],"sources":["../../../../3-extensions/supabase/dist/contract.d.mts"],"mappings":";;;cAEc,+DAA+D;EAC3E,yDAAyD;aAC9C;aACA;eACE;eACA;;aAEF;aACA;aACA;aACA,6CAA6C;aAC7C,uDAAuD;aACvD;aACA,4DAA4D;;aAE5D;eACE;;;aAGF;;EAEX,4DAA4D;aACjD;aACA;eACE;eACA;;aAEF;aACA;aACA;aACA,6CAA6C;aAC7C,uDAAuD;aACvD;aACA,4DAA4D;;aAE5D;;aAEA;;EAEX,iEAAiE;aACtD;aACA;eACE;eACA;;aAEF;aACA;aACA;aACA,6CAA6C;aAC7C,uDAAuD;aACvD;aACA,4DAA4D;;aAE5D;;aAEA;;EAEX,iEAAiE;aACtD;aACA;eACE;eACA;;aAEF;aACA;aACA;aACA,6CAA6C;aAC7C,uDAAuD;aACvD;aACA,4DAA4D;;aAE5D;;aAEA;;GAEV,4CAA4C;cACjC,mEAAmE;EAC/E,yDAAyD;aAC9C;aACA;e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;aACrD;aACA;eACE;eACA;;aAEF;aACA;aACA;aACA,6CAA6C;aAC7C,uDAAuD;aACvD;aACA,4DAA4D;;aAE5D;;aAEA;;EAEX,2DAA2D;aAChD;aACA;eACE;eACA;;aAEF;aACA;aACA;aACA,6CAA6C;aAC7C,uDAAuD;aACvD;aACA,4DAA4D;;aAE5D;;aAEA;;EAEX,iEAAiE;aACtD;aACA;eACE;eACA;;aAEF;aACA;aACA;aACA,6CAA6C;aAC7C,uDAAuD;aACvD;aACA,4DAA4D;;aAE5D;;aAEA;;EAEX,iEAAiE;aACtD;aACA;eACE;eACA;;aAEF;aACA;aACA;aACA,6CAA6C;aAC7C,uDAAuD;aACvD;aACA,4DAA4D;;aAE5D;;aAEA;;GAEV,4CAA4C"}
1
+ {"version":3,"file":"contract.d.mts","names":[],"sources":["../../../../3-extensions/supabase/dist/contract.d.mts"],"mappings":";;;cAEc,+DAA+D;EAC3E,yDAAyD;aAC9C;aACA;eACE;eACA;;MAET,cAAc;;aAEP;aACA;aACA;aACA,+DAA+D;aAC/D,uDAAuD;aACvD;aACA,4DAA4D;;aAE5D;eACE;;;aAGF;;EAEX,4DAA4D;aACjD;aACA;eACE;eACA;;MAET,cAAc;;aAEP;aACA;aACA;aACA,+DAA+D;aAC/D,uDAAuD;aACvD;aACA,4DAA4D;;aAE5D;;aAEA;;EAEX,iEAAiE;aACtD;aACA;eACE;eACA;;MAET,cAAc;;aAEP;aACA;aACA;aACA,+DAA+D;aAC/D,uDAAuD;aACvD;aACA,4DAA4D;;aAE5D;;aAEA;;EAEX,iEAAiE;aACtD;aACA;eACE;eACA;;MAET,cAAc;;aAEP;aACA;aACA;aACA,+DAA+D;aAC/D,uDAAuD;aACvD;aACA,4DAA4D;;aAE5D;;aAEA;;GAEV,4CAA4C;cACjC,mEAAmE;EAC/E,yDAAyD;aAC9C;aACA;eACE;eACA;;MAET,cAAc;;aAEP;aACA;aACA;aACA,+DAA+D;aAC/D,uDAAuD;aACvD;aACA,4DAA4D;;a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E5D;eACE;;;aAGF;;EAEX,gEAAgE;aACrD;aACA;eACE;eACA;;MAET,cAAc;;aAEP;aACA;aACA;aACA,+DAA+D;aAC/D,uDAAuD;aACvD;aACA,4DAA4D;;aAE5D;;aAEA;;EAEX,2DAA2D;aAChD;aACA;eACE;eACA;;MAET,cAAc;;aAEP;aACA;aACA;aACA,+DAA+D;aAC/D,uDAAuD;aACvD;aACA,4DAA4D;;aAE5D;;aAEA;;EAEX,iEAAiE;aACtD;aACA;eACE;eACA;;MAET,cAAc;;aAEP;aACA;aACA;aACA,+DAA+D;aAC/D,uDAAuD;aACvD;aACA,4DAA4D;;aAE5D;;aAEA;;EAEX,iEAAiE;aACtD;aACA;eACE;eACA;;MAET,cAAc;;aAEP;aACA;aACA;aACA,+DAA+D;aAC/D,uDAAuD;aACvD;aACA,4DAA4D;;aAE5D;;aAEA;;GAEV,4CAA4C"}
package/dist/pack.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { n as version, t as contract_default } from "./contract-Bpl598fS-BCRRMQbw.mjs";
1
+ import { n as version, t as contract_default } from "./contract-ldQBEefq-BTIR8s-C.mjs";
2
2
  import { blindCast } from "@prisma/orm-framework/utils/casts";
3
3
  //#region ../../../3-extensions/supabase/dist/pack.mjs
4
4
  const SUPABASE_SPACE_ID = "supabase";
package/dist/pack.mjs.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"pack.mjs","names":[],"sources":["../../../../3-extensions/supabase/dist/pack.mjs"],"sourcesContent":["import { n as version, t as contract_default } from \"./contract-Bpl598fS.mjs\";\nimport { blindCast } from \"@internal/utils/casts\";\n//#region src/pack/index.ts\nconst SUPABASE_SPACE_ID = \"supabase\";\nfunction buildContractSpace(contractOverride) {\n\tconst contract = blindCast(contractOverride ?? contract_default);\n\treturn {\n\t\tcontractJson: contract,\n\t\tmigrations: [],\n\t\theadRef: {\n\t\t\thash: contract.storage.storageHash,\n\t\t\tinvariants: []\n\t\t}\n\t};\n}\nconst supabasePackBase = {\n\tkind: \"extension\",\n\tid: SUPABASE_SPACE_ID,\n\tfamilyId: \"sql\",\n\ttargetId: \"postgres\",\n\tversion,\n\tcontractSpace: buildContractSpace(),\n\tcreate: () => ({\n\t\tfamilyId: \"sql\",\n\t\ttargetId: \"postgres\"\n\t})\n};\nconst supabasePack = supabasePackBase;\n/**\n* Returns a pack using `contractOverride` in place of the shipped\n* `contract.json` when provided, otherwise returns the default pack.\n*\n* Intended for tests that need to drive the framework with a synthetic\n* contract while still exercising the full descriptor wiring.\n*/\nfunction supabasePackWith(options) {\n\tif (options?.contractOverride === void 0) return supabasePack;\n\treturn {\n\t\t...supabasePackBase,\n\t\tcontractSpace: buildContractSpace(options.contractOverride)\n\t};\n}\n//#endregion\nexport { supabasePack as default, supabasePackWith };\n\n//# sourceMappingURL=pack.mjs.map"],"mappings":";;;AAGA,MAAM,oBAAoB;AAC1B,SAAS,mBAAmB,kBAAkB;CAC7C,MAAM,WAAW,UAAU,oBAAoB,gBAAgB;CAC/D,OAAO;EACN,cAAc;EACd,YAAY,CAAC;EACb,SAAS;GACR,MAAM,SAAS,QAAQ;GACvB,YAAY,CAAC;EACd;CACD;AACD;AACA,MAAM,mBAAmB;CACxB,MAAM;CACN,IAAI;CACJ,UAAU;CACV,UAAU;CACV;CACA,eAAe,mBAAmB;CAClC,eAAe;EACd,UAAU;EACV,UAAU;CACX;AACD;AACA,MAAM,eAAe;;;;;;;;AAQrB,SAAS,iBAAiB,SAAS;CAClC,IAAI,SAAS,qBAAqB,KAAK,GAAG,OAAO;CACjD,OAAO;EACN,GAAG;EACH,eAAe,mBAAmB,QAAQ,gBAAgB;CAC3D;AACD"}
1
+ {"version":3,"file":"pack.mjs","names":[],"sources":["../../../../3-extensions/supabase/dist/pack.mjs"],"sourcesContent":["import { n as version, t as contract_default } from \"./contract-ldQBEefq.mjs\";\nimport { blindCast } from \"@internal/utils/casts\";\n//#region src/pack/index.ts\nconst SUPABASE_SPACE_ID = \"supabase\";\nfunction buildContractSpace(contractOverride) {\n\tconst contract = blindCast(contractOverride ?? contract_default);\n\treturn {\n\t\tcontractJson: contract,\n\t\tmigrations: [],\n\t\theadRef: {\n\t\t\thash: contract.storage.storageHash,\n\t\t\tinvariants: []\n\t\t}\n\t};\n}\nconst supabasePackBase = {\n\tkind: \"extension\",\n\tid: SUPABASE_SPACE_ID,\n\tfamilyId: \"sql\",\n\ttargetId: \"postgres\",\n\tversion,\n\tcontractSpace: buildContractSpace(),\n\tcreate: () => ({\n\t\tfamilyId: \"sql\",\n\t\ttargetId: \"postgres\"\n\t})\n};\nconst supabasePack = supabasePackBase;\n/**\n* Returns a pack using `contractOverride` in place of the shipped\n* `contract.json` when provided, otherwise returns the default pack.\n*\n* Intended for tests that need to drive the framework with a synthetic\n* contract while still exercising the full descriptor wiring.\n*/\nfunction supabasePackWith(options) {\n\tif (options?.contractOverride === void 0) return supabasePack;\n\treturn {\n\t\t...supabasePackBase,\n\t\tcontractSpace: buildContractSpace(options.contractOverride)\n\t};\n}\n//#endregion\nexport { supabasePack as default, supabasePackWith };\n\n//# sourceMappingURL=pack.mjs.map"],"mappings":";;;AAGA,MAAM,oBAAoB;AAC1B,SAAS,mBAAmB,kBAAkB;CAC7C,MAAM,WAAW,UAAU,oBAAoB,gBAAgB;CAC/D,OAAO;EACN,cAAc;EACd,YAAY,CAAC;EACb,SAAS;GACR,MAAM,SAAS,QAAQ;GACvB,YAAY,CAAC;EACd;CACD;AACD;AACA,MAAM,mBAAmB;CACxB,MAAM;CACN,IAAI;CACJ,UAAU;CACV,UAAU;CACV;CACA,eAAe,mBAAmB;CAClC,eAAe;EACd,UAAU;EACV,UAAU;CACX;AACD;AACA,MAAM,eAAe;;;;;;;;AAQrB,SAAS,iBAAiB,SAAS;CAClC,IAAI,SAAS,qBAAqB,KAAK,GAAG,OAAO;CACjD,OAAO;EACN,GAAG;EACH,eAAe,mBAAmB,QAAQ,gBAAgB;CAC3D;AACD"}
package/dist/runtime.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { n as version, t as contract_default } from "./contract-Bpl598fS-BCRRMQbw.mjs";
1
+ import { n as version, t as contract_default } from "./contract-ldQBEefq-BTIR8s-C.mjs";
2
2
  import { a as isSupabaseRole, n as SupabaseRole, t as SUPABASE_JWT_ROLE_CLAIM } from "./roles-DMWDdQce-DpCzZwuD.mjs";
3
3
  import { blindCast } from "@prisma/orm-framework/utils/casts";
4
4
  import postgresAdapter from "@prisma/orm-target-postgres/adapter/runtime";
@@ -1 +1 @@
1
- {"version":3,"file":"runtime.mjs","names":[],"sources":["../../../../3-extensions/supabase/dist/runtime.mjs"],"sourcesContent":["import { n as version, t as contract_default } from \"./contract-Bpl598fS.mjs\";\nimport { a as isSupabaseRole, n as SupabaseRole, t as SUPABASE_JWT_ROLE_CLAIM } from \"./roles-DMWDdQce.mjs\";\nimport { blindCast } from \"@internal/utils/casts\";\nimport postgresAdapter from \"@internal/adapter-postgres/runtime\";\nimport postgresDriver, { suppressIdleConnectionErrors } from \"@internal/driver-postgres/runtime\";\nimport { instantiateExecutionStack } from \"@internal/framework-components/execution\";\nimport { PostgresRuntimeImpl, buildNamespacedNativeEnums, isPgPool } from \"@internal/postgres/runtime\";\nimport { createRawLane, sql } from \"@internal/sql-builder/runtime\";\nimport { orm } from \"@internal/sql-orm-client\";\nimport { createExecutionContext, createSqlExecutionStack, withTransaction } from \"@internal/sql-runtime\";\nimport postgresTarget, { PostgresContractSerializer } from \"@internal/target-postgres/runtime\";\nimport { ifDefined } from \"@internal/utils/defined\";\nimport { InternalError } from \"@internal/utils/internal-error\";\nimport { createRemoteJWKSet, decodeProtectedHeader, jwtVerify } from \"jose\";\nimport { Pool } from \"pg\";\nimport { structuredError } from \"@internal/utils/structured-error\";\nimport { AsyncIterableResult } from \"@internal/framework-components/runtime\";\nimport { preparedStatementExecute, preparedStatementQuery } from \"@internal/sql-runtime/internal/prepared-query\";\n//#region src/runtime/descriptor.ts\n/**\n* Tells the runtime that the Supabase pack's runtime component is available.\n*\n* When a contract declares the Supabase pack, the runtime checks that a\n* matching descriptor has been registered. Without this, loading a Supabase\n* contract errors with \"pack runtime component missing\". The `supabase()`\n* factory registers this descriptor automatically — app code never needs to\n* reference it directly.\n*/\nconst supabaseRuntimeDescriptor = {\n\tkind: \"extension\",\n\tid: \"supabase\",\n\tversion,\n\tfamilyId: \"sql\",\n\ttargetId: \"postgres\",\n\tcodecs: () => [],\n\tcreate() {\n\t\treturn {\n\t\t\tfamilyId: \"sql\",\n\t\t\ttargetId: \"postgres\"\n\t\t};\n\t}\n};\n//#endregion\n//#region src/runtime/supabase-errors.ts\nfunction supabaseError(code, message, options) {\n\treturn structuredError(code, message, options);\n}\n//#endregion\n//#region src/runtime/supabase-runtime.ts\nvar SupabaseRuntimeImpl = class extends PostgresRuntimeImpl {\n\t/**\n\t* Opens a raw connection and applies role + JWT claims via session-scoped set_config.\n\t* On bind failure, destroys the connection before rethrowing — no leaked connections.\n\t* Not on the `SupabaseRuntime` interface; consumed by the facade, not by app code.\n\t*/\n\tasync openRoleSession(binding) {\n\t\tconst conn = await this.acquireRawConnection();\n\t\ttry {\n\t\t\tawait conn.execute({\n\t\t\t\tsql: \"SELECT set_config($1, $2, false)\",\n\t\t\t\tparams: [\"role\", binding.role]\n\t\t\t});\n\t\t\tawait conn.execute({\n\t\t\t\tsql: \"SELECT set_config($1, $2, false)\",\n\t\t\t\tparams: [\"request.jwt.claims\", JSON.stringify(binding.claims ?? {})]\n\t\t\t});\n\t\t} catch (err) {\n\t\t\tawait conn.destroy(err).catch(() => void 0);\n\t\t\tthrow err;\n\t\t}\n\t\tconst self = this;\n\t\treturn {\n\t\t\tquery(plan, options) {\n\t\t\t\treturn self.queryAgainstQueryable(plan, conn, {\n\t\t\t\t\t...options,\n\t\t\t\t\tscope: \"connection\"\n\t\t\t\t});\n\t\t\t},\n\t\t\texecute(plan, options) {\n\t\t\t\treturn self.executeStatisticsAgainstQueryable(plan, conn, {\n\t\t\t\t\t...options,\n\t\t\t\t\tscope: \"connection\"\n\t\t\t\t});\n\t\t\t},\n\t\t\t[preparedStatementQuery](prepared, params, options) {\n\t\t\t\treturn self.runPreparedQueryAgainstRoleQueryable(prepared, params, conn, options, \"connection\");\n\t\t\t},\n\t\t\t[preparedStatementExecute](prepared, params, options) {\n\t\t\t\treturn self.runPreparedExecuteAgainstRoleQueryable(prepared, params, conn, options, \"connection\");\n\t\t\t},\n\t\t\tasync transaction() {\n\t\t\t\tconst tx = await conn.beginTransaction();\n\t\t\t\treturn {\n\t\t\t\t\tasync commit() {\n\t\t\t\t\t\tawait tx.commit();\n\t\t\t\t\t},\n\t\t\t\t\tasync rollback() {\n\t\t\t\t\t\tawait tx.rollback();\n\t\t\t\t\t},\n\t\t\t\t\tquery(plan, options) {\n\t\t\t\t\t\treturn self.queryAgainstQueryable(plan, tx, {\n\t\t\t\t\t\t\t...options,\n\t\t\t\t\t\t\tscope: \"transaction\"\n\t\t\t\t\t\t});\n\t\t\t\t\t},\n\t\t\t\t\texecute(plan, options) {\n\t\t\t\t\t\treturn self.executeStatisticsAgainstQueryable(plan, tx, {\n\t\t\t\t\t\t\t...options,\n\t\t\t\t\t\t\tscope: \"transaction\"\n\t\t\t\t\t\t});\n\t\t\t\t\t},\n\t\t\t\t\t[preparedStatementQuery](prepared, params, options) {\n\t\t\t\t\t\treturn self.runPreparedQueryAgainstRoleQueryable(prepared, params, tx, options, \"transaction\");\n\t\t\t\t\t},\n\t\t\t\t\t[preparedStatementExecute](prepared, params, options) {\n\t\t\t\t\t\treturn self.runPreparedExecuteAgainstRoleQueryable(prepared, params, tx, options, \"transaction\");\n\t\t\t\t\t}\n\t\t\t\t};\n\t\t\t},\n\t\t\t/**\n\t\t\t* Resets all session-local config then releases the connection back to the pool.\n\t\t\t* If RESET ALL fails, destroys the connection instead — pool-poisoning guarantee.\n\t\t\t*/\n\t\t\tasync release() {\n\t\t\t\ttry {\n\t\t\t\t\tawait conn.execute({ sql: \"RESET ALL\" });\n\t\t\t\t\tawait conn.release();\n\t\t\t\t} catch (resetError) {\n\t\t\t\t\tawait conn.destroy(resetError).catch(() => void 0);\n\t\t\t\t}\n\t\t\t},\n\t\t\tasync destroy(reason) {\n\t\t\t\tawait conn.destroy(reason);\n\t\t\t}\n\t\t};\n\t}\n\t/**\n\t* Opens a role session, queries the plan, then releases after the stream drains.\n\t* On mid-stream error, destroys the session instead of releasing.\n\t*/\n\tqueryWithRole(plan, binding, options) {\n\t\tconst self = this;\n\t\tconst generator = async function* () {\n\t\t\tconst session = await self.openRoleSession(binding);\n\t\t\tlet errored = false;\n\t\t\ttry {\n\t\t\t\tfor await (const row of session.query(plan, options)) yield row;\n\t\t\t} catch (err) {\n\t\t\t\terrored = true;\n\t\t\t\tawait session.destroy(err).catch(() => void 0);\n\t\t\t\tthrow err;\n\t\t\t} finally {\n\t\t\t\tif (!errored) await session.release();\n\t\t\t}\n\t\t};\n\t\treturn new AsyncIterableResult(generator());\n\t}\n\tasync executeWithRole(plan, binding, options) {\n\t\tconst session = await this.openRoleSession(binding);\n\t\ttry {\n\t\t\tconst stats = await session.execute(plan, options);\n\t\t\tawait session.release();\n\t\t\treturn stats;\n\t\t} catch (err) {\n\t\t\tawait session.destroy(err).catch(() => void 0);\n\t\t\tthrow err;\n\t\t}\n\t}\n\trunPreparedExecuteAgainstRoleQueryable(prepared, params, queryable, options, scope) {\n\t\treturn this.runPreparedExecuteAgainstQueryable(blindCast(prepared), blindCast(params), queryable, {\n\t\t\t...options,\n\t\t\tscope\n\t\t});\n\t}\n\trunPreparedQueryAgainstRoleQueryable(prepared, params, queryable, options, scope) {\n\t\treturn this.runPreparedQueryAgainstQueryable(blindCast(prepared), blindCast(params), queryable, {\n\t\t\t...options,\n\t\t\tscope\n\t\t});\n\t}\n};\n//#endregion\n//#region src/runtime/supabase.ts\nfunction hasContractJson(options) {\n\treturn \"contractJson\" in options;\n}\nconst contractSerializer = new PostgresContractSerializer();\nfunction resolveContract(options) {\n\tconst contractJson = hasContractJson(options) ? options.contractJson : contractSerializer.serializeContract(options.contract);\n\treturn blindCast(contractSerializer.deserializeContract(contractJson));\n}\nfunction resolveKeyMaterial(options) {\n\tconst jwtSecret = \"jwtSecret\" in options ? options.jwtSecret : void 0;\n\tconst jwksUrl = \"jwksUrl\" in options ? options.jwksUrl : void 0;\n\tif (jwtSecret !== void 0 && jwksUrl !== void 0) throw supabaseError(\"SUPABASE.CONFIG_INVALID\", \"Provide either jwtSecret or jwksUrl, not both\", { meta: { reason: \"both jwtSecret and jwksUrl provided\" } });\n\tif (jwtSecret !== void 0) return {\n\t\tkind: \"secret\",\n\t\tkey: new TextEncoder().encode(jwtSecret)\n\t};\n\tif (jwksUrl !== void 0) return {\n\t\tkind: \"jwks\",\n\t\tkeyset: createRemoteJWKSet(new URL(jwksUrl))\n\t};\n\tthrow supabaseError(\"SUPABASE.CONFIG_INVALID\", \"Either jwtSecret or jwksUrl is required\", { meta: { reason: \"neither jwtSecret nor jwksUrl provided\" } });\n}\n/**\n* Pre-verification check that the token's signing algorithm can possibly\n* match the configured key material. Without it the mismatch surfaces as a\n* jose internal (\"Key for the ES256 algorithm must be one of type\n* CryptoKey... Received an instance of Uint8Array\") that never names the\n* actual problem: current Supabase projects sign ES256 via JWKS by default,\n* while `supabase status` still prints a JWT_SECRET that only fits legacy\n* HS256 projects. Returns `undefined` when the pairing is plausible or the\n* header is unreadable (jwtVerify then produces the canonical error).\n*/\nfunction algKeyMismatchReason(jwt, kind) {\n\tlet alg;\n\ttry {\n\t\talg = decodeProtectedHeader(jwt).alg;\n\t} catch {\n\t\treturn;\n\t}\n\tif (alg === void 0) return void 0;\n\tconst asymmetric = /^(?:ES|RS|PS)\\d{3}$/.test(alg) || alg === \"EdDSA\" || alg === \"Ed25519\";\n\tif (kind === \"secret\" && asymmetric) return `token is signed with ${alg} but this client is configured with jwtSecret (HS256). Current Supabase projects sign with asymmetric keys by default — configure jwksUrl (https://<project>/auth/v1/.well-known/jwks.json) instead of jwtSecret.`;\n\tif (kind === \"jwks\" && alg.startsWith(\"HS\")) return `token is signed with ${alg} (a symmetric algorithm) but this client is configured with jwksUrl. A legacy HS256 Supabase project needs jwtSecret (the JWT_SECRET from \\`supabase status\\`) instead of jwksUrl.`;\n}\nfunction toPool(options) {\n\tif (options.pg !== void 0 && isPgPool(options.pg)) return {\n\t\tpool: options.pg,\n\t\towned: false\n\t};\n\tif (typeof options.url === \"string\") return {\n\t\tpool: suppressIdleConnectionErrors(new Pool({\n\t\t\tconnectionString: options.url,\n\t\t\tconnectionTimeoutMillis: options.poolOptions?.connectionTimeoutMillis ?? 2e4,\n\t\t\tidleTimeoutMillis: options.poolOptions?.idleTimeoutMillis ?? 3e4\n\t\t})),\n\t\towned: true\n\t};\n}\nfunction withSupabaseDescriptor(extensions) {\n\tconst packs = extensions ?? [];\n\treturn packs.some((pack) => pack.id === supabaseRuntimeDescriptor.id) ? packs : [...packs, supabaseRuntimeDescriptor];\n}\n/**\n* Deserializes the Supabase extension's own emitted contract into a runtime\n* contract: namespaces hydrate into `PostgresSchema` instances (with\n* `qualifyTable`), and `typeRef` columns (`Timestamptz`, `Uuid`) resolve\n* through the codec registry. Exposed only via `service_role`'s `.supabase`\n* secondary root — never merged into the app contract.\n*/\nfunction buildExtensionContract() {\n\treturn blindCast(contractSerializer.deserializeContract(contract_default));\n}\nasync function supabase(options) {\n\tconst keyMaterial = resolveKeyMaterial(options);\n\tconst contract = resolveContract(options);\n\tconst stack = createSqlExecutionStack({\n\t\ttarget: postgresTarget,\n\t\tadapter: postgresAdapter,\n\t\tdriver: postgresDriver,\n\t\textensions: withSupabaseDescriptor(options.extensions)\n\t});\n\tconst context = createExecutionContext({\n\t\tcontract,\n\t\tstack\n\t});\n\tconst rawCodecInferer = stack.adapter.rawCodecInferer;\n\tconst poolEntry = toPool(options);\n\tlet closed = false;\n\tconst stackInstance = instantiateExecutionStack(stack);\n\tconst driverDescriptor = stack.driver;\n\tif (!driverDescriptor) throw new InternalError(\"Driver descriptor missing from execution stack\");\n\tconst driver = driverDescriptor.create({ cursor: { disabled: true } });\n\tif (poolEntry) await driver.connect({\n\t\tkind: \"pgPool\",\n\t\tpool: poolEntry.pool\n\t});\n\tconst runtime = new SupabaseRuntimeImpl({\n\t\tcontext,\n\t\tadapter: stackInstance.adapter,\n\t\tdriver,\n\t\t...ifDefined(\"verifyMarker\", options.verifyMarker),\n\t\t...ifDefined(\"middleware\", options.middleware)\n\t});\n\tasync function verifyJwt(jwt) {\n\t\tconst mismatch = algKeyMismatchReason(jwt, keyMaterial.kind);\n\t\tif (mismatch !== void 0) throw supabaseError(\"SUPABASE.JWT_INVALID\", `Invalid JWT: ${mismatch}`, { meta: { reason: mismatch } });\n\t\ttry {\n\t\t\tif (keyMaterial.kind === \"secret\") return await jwtVerify(jwt, keyMaterial.key);\n\t\t\treturn await jwtVerify(jwt, keyMaterial.keyset);\n\t\t} catch (err) {\n\t\t\tconst reason = err instanceof Error ? err.message : String(err);\n\t\t\tthrow supabaseError(\"SUPABASE.JWT_INVALID\", `Invalid JWT: ${reason}`, {\n\t\t\t\tmeta: { reason },\n\t\t\t\tcause: err\n\t\t\t});\n\t\t}\n\t}\n\tfunction buildRoleBoundDbWithContext(binding, roleContext, roleRuntime) {\n\t\tconst roleSql = sql({\n\t\t\tcontext: roleContext,\n\t\t\trawCodecInferer\n\t\t});\n\t\tconst roleRaw = createRawLane({\n\t\t\tcontext: roleContext,\n\t\t\trawCodecInferer\n\t\t});\n\t\treturn {\n\t\t\tsql: roleSql,\n\t\t\torm: orm({\n\t\t\t\truntime: {\n\t\t\t\t\tquery(plan) {\n\t\t\t\t\t\treturn roleRuntime.queryWithRole(plan, binding);\n\t\t\t\t\t},\n\t\t\t\t\texecute(plan) {\n\t\t\t\t\t\treturn roleRuntime.executeWithRole(plan, binding);\n\t\t\t\t\t},\n\t\t\t\t\tconnection: () => roleRuntime.openRoleSession(binding)\n\t\t\t\t},\n\t\t\t\tcontext: roleContext\n\t\t\t}),\n\t\t\traw: roleRaw,\n\t\t\tquery(plan, execOptions) {\n\t\t\t\treturn roleRuntime.queryWithRole(plan, binding, execOptions);\n\t\t\t},\n\t\t\texecute(plan, execOptions) {\n\t\t\t\treturn roleRuntime.executeWithRole(plan, binding, execOptions);\n\t\t\t},\n\t\t\ttransaction(fn) {\n\t\t\t\treturn withTransaction({ connection: () => roleRuntime.openRoleSession(binding) }, fn);\n\t\t\t}\n\t\t};\n\t}\n\tfunction buildRoleBoundDb(binding) {\n\t\treturn buildRoleBoundDbWithContext(binding, context, runtime);\n\t}\n\tconst serviceRoleBinding = {\n\t\trole: SupabaseRole.members.ServiceRole,\n\t\tclaims: {}\n\t};\n\tconst extContract = buildExtensionContract();\n\tconst extContext = createExecutionContext({\n\t\tcontract: extContract,\n\t\tstack\n\t});\n\tconst extRuntime = new SupabaseRuntimeImpl({\n\t\tcontext: extContext,\n\t\tadapter: stackInstance.adapter,\n\t\tdriver,\n\t\tverifyMarker: false,\n\t\t...ifDefined(\"middleware\", options.middleware)\n\t});\n\tconst extNativeEnums = blindCast(Object.freeze(buildNamespacedNativeEnums(extContract.storage)));\n\tconst supabaseInternal = {\n\t\tsql: sql({\n\t\t\tcontext: extContext,\n\t\t\trawCodecInferer\n\t\t}),\n\t\torm: orm({\n\t\t\truntime: {\n\t\t\t\tquery(plan) {\n\t\t\t\t\treturn extRuntime.queryWithRole(plan, serviceRoleBinding);\n\t\t\t\t},\n\t\t\t\texecute(plan) {\n\t\t\t\t\treturn extRuntime.executeWithRole(plan, serviceRoleBinding);\n\t\t\t\t},\n\t\t\t\tconnection: () => extRuntime.openRoleSession(serviceRoleBinding)\n\t\t\t},\n\t\t\tcontext: extContext\n\t\t}),\n\t\tnativeEnums: extNativeEnums,\n\t\tquery(plan, execOptions) {\n\t\t\treturn extRuntime.queryWithRole(plan, serviceRoleBinding, execOptions);\n\t\t},\n\t\texecute(plan, execOptions) {\n\t\t\treturn extRuntime.executeWithRole(plan, serviceRoleBinding, execOptions);\n\t\t}\n\t};\n\tasync function closeDb() {\n\t\tif (closed) return;\n\t\tclosed = true;\n\t\tawait runtime.close();\n\t\tif (poolEntry?.owned) await poolEntry.pool.end().catch(() => void 0);\n\t}\n\treturn {\n\t\tcontext,\n\t\tstack,\n\t\tasync asUser(jwt) {\n\t\t\tconst { payload } = await verifyJwt(jwt);\n\t\t\tconst rawRole = payload[SUPABASE_JWT_ROLE_CLAIM];\n\t\t\tconst roleStr = typeof rawRole === \"string\" ? rawRole : SupabaseRole.members.Authenticated;\n\t\t\treturn buildRoleBoundDb({\n\t\t\t\trole: isSupabaseRole(roleStr) ? roleStr : SupabaseRole.members.Authenticated,\n\t\t\t\tclaims: payload\n\t\t\t});\n\t\t},\n\t\tasAnon() {\n\t\t\treturn buildRoleBoundDb({\n\t\t\t\trole: SupabaseRole.members.Anon,\n\t\t\t\tclaims: {}\n\t\t\t});\n\t\t},\n\t\tasServiceRole() {\n\t\t\treturn {\n\t\t\t\t...buildRoleBoundDbWithContext(serviceRoleBinding, context, runtime),\n\t\t\t\tsupabase: supabaseInternal\n\t\t\t};\n\t\t},\n\t\tclose: closeDb,\n\t\t[Symbol.asyncDispose]: closeDb\n\t};\n}\n//#endregion\n//#region src/exports/runtime.ts\nvar runtime_default = supabaseRuntimeDescriptor;\n//#endregion\nexport { SupabaseRuntimeImpl, runtime_default as default, supabase };\n\n//# sourceMappingURL=runtime.mjs.map"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4BA,MAAM,4BAA4B;CACjC,MAAM;CACN,IAAI;CACJ;CACA,UAAU;CACV,UAAU;CACV,cAAc,CAAC;CACf,SAAS;EACR,OAAO;GACN,UAAU;GACV,UAAU;EACX;CACD;AACD;AAGA,SAAS,cAAc,MAAM,SAAS,SAAS;CAC9C,OAAO,gBAAgB,MAAM,SAAS,OAAO;AAC9C;AAGA,IAAI,sBAAsB,cAAc,oBAAoB;;;;;;CAM3D,MAAM,gBAAgB,SAAS;EAC9B,MAAM,OAAO,MAAM,KAAK,qBAAqB;EAC7C,IAAI;GACH,MAAM,KAAK,QAAQ;IAClB,K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I,UAAU,aAAa,QAAQ;IAC/D,QAAQ;GACT,CAAC;EACF;EACA,SAAS;GACR,OAAO,iBAAiB;IACvB,MAAM,aAAa,QAAQ;IAC3B,QAAQ,CAAC;GACV,CAAC;EACF;EACA,gBAAgB;GACf,OAAO;IACN,GAAG,4BAA4B,oBAAoB,SAAS,OAAO;IACnE,UAAU;GACX;EACD;EACA,OAAO;GACN,OAAO,eAAe;CACxB;AACD;AAGA,IAAI,kBAAkB"}
1
+ {"version":3,"file":"runtime.mjs","names":[],"sources":["../../../../3-extensions/supabase/dist/runtime.mjs"],"sourcesContent":["import { n as version, t as contract_default } from \"./contract-ldQBEefq.mjs\";\nimport { a as isSupabaseRole, n as SupabaseRole, t as SUPABASE_JWT_ROLE_CLAIM } from \"./roles-DMWDdQce.mjs\";\nimport { blindCast } from \"@internal/utils/casts\";\nimport postgresAdapter from \"@internal/adapter-postgres/runtime\";\nimport postgresDriver, { suppressIdleConnectionErrors } from \"@internal/driver-postgres/runtime\";\nimport { instantiateExecutionStack } from \"@internal/framework-components/execution\";\nimport { PostgresRuntimeImpl, buildNamespacedNativeEnums, isPgPool } from \"@internal/postgres/runtime\";\nimport { createRawLane, sql } from \"@internal/sql-builder/runtime\";\nimport { orm } from \"@internal/sql-orm-client\";\nimport { createExecutionContext, createSqlExecutionStack, withTransaction } from \"@internal/sql-runtime\";\nimport postgresTarget, { PostgresContractSerializer } from \"@internal/target-postgres/runtime\";\nimport { ifDefined } from \"@internal/utils/defined\";\nimport { InternalError } from \"@internal/utils/internal-error\";\nimport { createRemoteJWKSet, decodeProtectedHeader, jwtVerify } from \"jose\";\nimport { Pool } from \"pg\";\nimport { structuredError } from \"@internal/utils/structured-error\";\nimport { AsyncIterableResult } from \"@internal/framework-components/runtime\";\nimport { preparedStatementExecute, preparedStatementQuery } from \"@internal/sql-runtime/internal/prepared-query\";\n//#region src/runtime/descriptor.ts\n/**\n* Tells the runtime that the Supabase pack's runtime component is available.\n*\n* When a contract declares the Supabase pack, the runtime checks that a\n* matching descriptor has been registered. Without this, loading a Supabase\n* contract errors with \"pack runtime component missing\". The `supabase()`\n* factory registers this descriptor automatically — app code never needs to\n* reference it directly.\n*/\nconst supabaseRuntimeDescriptor = {\n\tkind: \"extension\",\n\tid: \"supabase\",\n\tversion,\n\tfamilyId: \"sql\",\n\ttargetId: \"postgres\",\n\tcodecs: () => [],\n\tcreate() {\n\t\treturn {\n\t\t\tfamilyId: \"sql\",\n\t\t\ttargetId: \"postgres\"\n\t\t};\n\t}\n};\n//#endregion\n//#region src/runtime/supabase-errors.ts\nfunction supabaseError(code, message, options) {\n\treturn structuredError(code, message, options);\n}\n//#endregion\n//#region src/runtime/supabase-runtime.ts\nvar SupabaseRuntimeImpl = class extends PostgresRuntimeImpl {\n\t/**\n\t* Opens a raw connection and applies role + JWT claims via session-scoped set_config.\n\t* On bind failure, destroys the connection before rethrowing — no leaked connections.\n\t* Not on the `SupabaseRuntime` interface; consumed by the facade, not by app code.\n\t*/\n\tasync openRoleSession(binding) {\n\t\tconst conn = await this.acquireRawConnection();\n\t\ttry {\n\t\t\tawait conn.execute({\n\t\t\t\tsql: \"SELECT set_config($1, $2, false)\",\n\t\t\t\tparams: [\"role\", binding.role]\n\t\t\t});\n\t\t\tawait conn.execute({\n\t\t\t\tsql: \"SELECT set_config($1, $2, false)\",\n\t\t\t\tparams: [\"request.jwt.claims\", JSON.stringify(binding.claims ?? {})]\n\t\t\t});\n\t\t} catch (err) {\n\t\t\tawait conn.destroy(err).catch(() => void 0);\n\t\t\tthrow err;\n\t\t}\n\t\tconst self = this;\n\t\treturn {\n\t\t\tquery(plan, options) {\n\t\t\t\treturn self.queryAgainstQueryable(plan, conn, {\n\t\t\t\t\t...options,\n\t\t\t\t\tscope: \"connection\"\n\t\t\t\t});\n\t\t\t},\n\t\t\texecute(plan, options) {\n\t\t\t\treturn self.executeStatisticsAgainstQueryable(plan, conn, {\n\t\t\t\t\t...options,\n\t\t\t\t\tscope: \"connection\"\n\t\t\t\t});\n\t\t\t},\n\t\t\t[preparedStatementQuery](prepared, params, options) {\n\t\t\t\treturn self.runPreparedQueryAgainstRoleQueryable(prepared, params, conn, options, \"connection\");\n\t\t\t},\n\t\t\t[preparedStatementExecute](prepared, params, options) {\n\t\t\t\treturn self.runPreparedExecuteAgainstRoleQueryable(prepared, params, conn, options, \"connection\");\n\t\t\t},\n\t\t\tasync transaction() {\n\t\t\t\tconst tx = await conn.beginTransaction();\n\t\t\t\treturn {\n\t\t\t\t\tasync commit() {\n\t\t\t\t\t\tawait tx.commit();\n\t\t\t\t\t},\n\t\t\t\t\tasync rollback() {\n\t\t\t\t\t\tawait tx.rollback();\n\t\t\t\t\t},\n\t\t\t\t\tquery(plan, options) {\n\t\t\t\t\t\treturn self.queryAgainstQueryable(plan, tx, {\n\t\t\t\t\t\t\t...options,\n\t\t\t\t\t\t\tscope: \"transaction\"\n\t\t\t\t\t\t});\n\t\t\t\t\t},\n\t\t\t\t\texecute(plan, options) {\n\t\t\t\t\t\treturn self.executeStatisticsAgainstQueryable(plan, tx, {\n\t\t\t\t\t\t\t...options,\n\t\t\t\t\t\t\tscope: \"transaction\"\n\t\t\t\t\t\t});\n\t\t\t\t\t},\n\t\t\t\t\t[preparedStatementQuery](prepared, params, options) {\n\t\t\t\t\t\treturn self.runPreparedQueryAgainstRoleQueryable(prepared, params, tx, options, \"transaction\");\n\t\t\t\t\t},\n\t\t\t\t\t[preparedStatementExecute](prepared, params, options) {\n\t\t\t\t\t\treturn self.runPreparedExecuteAgainstRoleQueryable(prepared, params, tx, options, \"transaction\");\n\t\t\t\t\t}\n\t\t\t\t};\n\t\t\t},\n\t\t\t/**\n\t\t\t* Resets all session-local config then releases the connection back to the pool.\n\t\t\t* If RESET ALL fails, destroys the connection instead — pool-poisoning guarantee.\n\t\t\t*/\n\t\t\tasync release() {\n\t\t\t\ttry {\n\t\t\t\t\tawait conn.execute({ sql: \"RESET ALL\" });\n\t\t\t\t\tawait conn.release();\n\t\t\t\t} catch (resetError) {\n\t\t\t\t\tawait conn.destroy(resetError).catch(() => void 0);\n\t\t\t\t}\n\t\t\t},\n\t\t\tasync destroy(reason) {\n\t\t\t\tawait conn.destroy(reason);\n\t\t\t}\n\t\t};\n\t}\n\t/**\n\t* Opens a role session, queries the plan, then releases after the stream drains.\n\t* On mid-stream error, destroys the session instead of releasing.\n\t*/\n\tqueryWithRole(plan, binding, options) {\n\t\tconst self = this;\n\t\tconst generator = async function* () {\n\t\t\tconst session = await self.openRoleSession(binding);\n\t\t\tlet errored = false;\n\t\t\ttry {\n\t\t\t\tfor await (const row of session.query(plan, options)) yield row;\n\t\t\t} catch (err) {\n\t\t\t\terrored = true;\n\t\t\t\tawait session.destroy(err).catch(() => void 0);\n\t\t\t\tthrow err;\n\t\t\t} finally {\n\t\t\t\tif (!errored) await session.release();\n\t\t\t}\n\t\t};\n\t\treturn new AsyncIterableResult(generator());\n\t}\n\tasync executeWithRole(plan, binding, options) {\n\t\tconst session = await this.openRoleSession(binding);\n\t\ttry {\n\t\t\tconst stats = await session.execute(plan, options);\n\t\t\tawait session.release();\n\t\t\treturn stats;\n\t\t} catch (err) {\n\t\t\tawait session.destroy(err).catch(() => void 0);\n\t\t\tthrow err;\n\t\t}\n\t}\n\trunPreparedExecuteAgainstRoleQueryable(prepared, params, queryable, options, scope) {\n\t\treturn this.runPreparedExecuteAgainstQueryable(blindCast(prepared), blindCast(params), queryable, {\n\t\t\t...options,\n\t\t\tscope\n\t\t});\n\t}\n\trunPreparedQueryAgainstRoleQueryable(prepared, params, queryable, options, scope) {\n\t\treturn this.runPreparedQueryAgainstQueryable(blindCast(prepared), blindCast(params), queryable, {\n\t\t\t...options,\n\t\t\tscope\n\t\t});\n\t}\n};\n//#endregion\n//#region src/runtime/supabase.ts\nfunction hasContractJson(options) {\n\treturn \"contractJson\" in options;\n}\nconst contractSerializer = new PostgresContractSerializer();\nfunction resolveContract(options) {\n\tconst contractJson = hasContractJson(options) ? options.contractJson : contractSerializer.serializeContract(options.contract);\n\treturn blindCast(contractSerializer.deserializeContract(contractJson));\n}\nfunction resolveKeyMaterial(options) {\n\tconst jwtSecret = \"jwtSecret\" in options ? options.jwtSecret : void 0;\n\tconst jwksUrl = \"jwksUrl\" in options ? options.jwksUrl : void 0;\n\tif (jwtSecret !== void 0 && jwksUrl !== void 0) throw supabaseError(\"SUPABASE.CONFIG_INVALID\", \"Provide either jwtSecret or jwksUrl, not both\", { meta: { reason: \"both jwtSecret and jwksUrl provided\" } });\n\tif (jwtSecret !== void 0) return {\n\t\tkind: \"secret\",\n\t\tkey: new TextEncoder().encode(jwtSecret)\n\t};\n\tif (jwksUrl !== void 0) return {\n\t\tkind: \"jwks\",\n\t\tkeyset: createRemoteJWKSet(new URL(jwksUrl))\n\t};\n\tthrow supabaseError(\"SUPABASE.CONFIG_INVALID\", \"Either jwtSecret or jwksUrl is required\", { meta: { reason: \"neither jwtSecret nor jwksUrl provided\" } });\n}\n/**\n* Pre-verification check that the token's signing algorithm can possibly\n* match the configured key material. Without it the mismatch surfaces as a\n* jose internal (\"Key for the ES256 algorithm must be one of type\n* CryptoKey... Received an instance of Uint8Array\") that never names the\n* actual problem: current Supabase projects sign ES256 via JWKS by default,\n* while `supabase status` still prints a JWT_SECRET that only fits legacy\n* HS256 projects. Returns `undefined` when the pairing is plausible or the\n* header is unreadable (jwtVerify then produces the canonical error).\n*/\nfunction algKeyMismatchReason(jwt, kind) {\n\tlet alg;\n\ttry {\n\t\talg = decodeProtectedHeader(jwt).alg;\n\t} catch {\n\t\treturn;\n\t}\n\tif (alg === void 0) return void 0;\n\tconst asymmetric = /^(?:ES|RS|PS)\\d{3}$/.test(alg) || alg === \"EdDSA\" || alg === \"Ed25519\";\n\tif (kind === \"secret\" && asymmetric) return `token is signed with ${alg} but this client is configured with jwtSecret (HS256). Current Supabase projects sign with asymmetric keys by default — configure jwksUrl (https://<project>/auth/v1/.well-known/jwks.json) instead of jwtSecret.`;\n\tif (kind === \"jwks\" && alg.startsWith(\"HS\")) return `token is signed with ${alg} (a symmetric algorithm) but this client is configured with jwksUrl. A legacy HS256 Supabase project needs jwtSecret (the JWT_SECRET from \\`supabase status\\`) instead of jwksUrl.`;\n}\nfunction toPool(options) {\n\tif (options.pg !== void 0 && isPgPool(options.pg)) return {\n\t\tpool: options.pg,\n\t\towned: false\n\t};\n\tif (typeof options.url === \"string\") return {\n\t\tpool: suppressIdleConnectionErrors(new Pool({\n\t\t\tconnectionString: options.url,\n\t\t\tconnectionTimeoutMillis: options.poolOptions?.connectionTimeoutMillis ?? 2e4,\n\t\t\tidleTimeoutMillis: options.poolOptions?.idleTimeoutMillis ?? 3e4\n\t\t})),\n\t\towned: true\n\t};\n}\nfunction withSupabaseDescriptor(extensions) {\n\tconst packs = extensions ?? [];\n\treturn packs.some((pack) => pack.id === supabaseRuntimeDescriptor.id) ? packs : [...packs, supabaseRuntimeDescriptor];\n}\n/**\n* Deserializes the Supabase extension's own emitted contract into a runtime\n* contract: namespaces hydrate into `PostgresSchema` instances (with\n* `qualifyTable`), and `typeRef` columns (`Timestamptz`, `Uuid`) resolve\n* through the codec registry. Exposed only via `service_role`'s `.supabase`\n* secondary root — never merged into the app contract.\n*/\nfunction buildExtensionContract() {\n\treturn blindCast(contractSerializer.deserializeContract(contract_default));\n}\nasync function supabase(options) {\n\tconst keyMaterial = resolveKeyMaterial(options);\n\tconst contract = resolveContract(options);\n\tconst stack = createSqlExecutionStack({\n\t\ttarget: postgresTarget,\n\t\tadapter: postgresAdapter,\n\t\tdriver: postgresDriver,\n\t\textensions: withSupabaseDescriptor(options.extensions)\n\t});\n\tconst context = createExecutionContext({\n\t\tcontract,\n\t\tstack\n\t});\n\tconst rawCodecInferer = stack.adapter.rawCodecInferer;\n\tconst poolEntry = toPool(options);\n\tlet closed = false;\n\tconst stackInstance = instantiateExecutionStack(stack);\n\tconst driverDescriptor = stack.driver;\n\tif (!driverDescriptor) throw new InternalError(\"Driver descriptor missing from execution stack\");\n\tconst driver = driverDescriptor.create({ cursor: { disabled: true } });\n\tif (poolEntry) await driver.connect({\n\t\tkind: \"pgPool\",\n\t\tpool: poolEntry.pool\n\t});\n\tconst runtime = new SupabaseRuntimeImpl({\n\t\tcontext,\n\t\tadapter: stackInstance.adapter,\n\t\tdriver,\n\t\t...ifDefined(\"verifyMarker\", options.verifyMarker),\n\t\t...ifDefined(\"middleware\", options.middleware)\n\t});\n\tasync function verifyJwt(jwt) {\n\t\tconst mismatch = algKeyMismatchReason(jwt, keyMaterial.kind);\n\t\tif (mismatch !== void 0) throw supabaseError(\"SUPABASE.JWT_INVALID\", `Invalid JWT: ${mismatch}`, { meta: { reason: mismatch } });\n\t\ttry {\n\t\t\tif (keyMaterial.kind === \"secret\") return await jwtVerify(jwt, keyMaterial.key);\n\t\t\treturn await jwtVerify(jwt, keyMaterial.keyset);\n\t\t} catch (err) {\n\t\t\tconst reason = err instanceof Error ? err.message : String(err);\n\t\t\tthrow supabaseError(\"SUPABASE.JWT_INVALID\", `Invalid JWT: ${reason}`, {\n\t\t\t\tmeta: { reason },\n\t\t\t\tcause: err\n\t\t\t});\n\t\t}\n\t}\n\tfunction buildRoleBoundDbWithContext(binding, roleContext, roleRuntime) {\n\t\tconst roleSql = sql({\n\t\t\tcontext: roleContext,\n\t\t\trawCodecInferer\n\t\t});\n\t\tconst roleRaw = createRawLane({\n\t\t\tcontext: roleContext,\n\t\t\trawCodecInferer\n\t\t});\n\t\treturn {\n\t\t\tsql: roleSql,\n\t\t\torm: orm({\n\t\t\t\truntime: {\n\t\t\t\t\tquery(plan) {\n\t\t\t\t\t\treturn roleRuntime.queryWithRole(plan, binding);\n\t\t\t\t\t},\n\t\t\t\t\texecute(plan) {\n\t\t\t\t\t\treturn roleRuntime.executeWithRole(plan, binding);\n\t\t\t\t\t},\n\t\t\t\t\tconnection: () => roleRuntime.openRoleSession(binding)\n\t\t\t\t},\n\t\t\t\tcontext: roleContext\n\t\t\t}),\n\t\t\traw: roleRaw,\n\t\t\tquery(plan, execOptions) {\n\t\t\t\treturn roleRuntime.queryWithRole(plan, binding, execOptions);\n\t\t\t},\n\t\t\texecute(plan, execOptions) {\n\t\t\t\treturn roleRuntime.executeWithRole(plan, binding, execOptions);\n\t\t\t},\n\t\t\ttransaction(fn) {\n\t\t\t\treturn withTransaction({ connection: () => roleRuntime.openRoleSession(binding) }, fn);\n\t\t\t}\n\t\t};\n\t}\n\tfunction buildRoleBoundDb(binding) {\n\t\treturn buildRoleBoundDbWithContext(binding, context, runtime);\n\t}\n\tconst serviceRoleBinding = {\n\t\trole: SupabaseRole.members.ServiceRole,\n\t\tclaims: {}\n\t};\n\tconst extContract = buildExtensionContract();\n\tconst extContext = createExecutionContext({\n\t\tcontract: extContract,\n\t\tstack\n\t});\n\tconst extRuntime = new SupabaseRuntimeImpl({\n\t\tcontext: extContext,\n\t\tadapter: stackInstance.adapter,\n\t\tdriver,\n\t\tverifyMarker: false,\n\t\t...ifDefined(\"middleware\", options.middleware)\n\t});\n\tconst extNativeEnums = blindCast(Object.freeze(buildNamespacedNativeEnums(extContract.storage)));\n\tconst supabaseInternal = {\n\t\tsql: sql({\n\t\t\tcontext: extContext,\n\t\t\trawCodecInferer\n\t\t}),\n\t\torm: orm({\n\t\t\truntime: {\n\t\t\t\tquery(plan) {\n\t\t\t\t\treturn extRuntime.queryWithRole(plan, serviceRoleBinding);\n\t\t\t\t},\n\t\t\t\texecute(plan) {\n\t\t\t\t\treturn extRuntime.executeWithRole(plan, serviceRoleBinding);\n\t\t\t\t},\n\t\t\t\tconnection: () => extRuntime.openRoleSession(serviceRoleBinding)\n\t\t\t},\n\t\t\tcontext: extContext\n\t\t}),\n\t\tnativeEnums: extNativeEnums,\n\t\tquery(plan, execOptions) {\n\t\t\treturn extRuntime.queryWithRole(plan, serviceRoleBinding, execOptions);\n\t\t},\n\t\texecute(plan, execOptions) {\n\t\t\treturn extRuntime.executeWithRole(plan, serviceRoleBinding, execOptions);\n\t\t}\n\t};\n\tasync function closeDb() {\n\t\tif (closed) return;\n\t\tclosed = true;\n\t\tawait runtime.close();\n\t\tif (poolEntry?.owned) await poolEntry.pool.end().catch(() => void 0);\n\t}\n\treturn {\n\t\tcontext,\n\t\tstack,\n\t\tasync asUser(jwt) {\n\t\t\tconst { payload } = await verifyJwt(jwt);\n\t\t\tconst rawRole = payload[SUPABASE_JWT_ROLE_CLAIM];\n\t\t\tconst roleStr = typeof rawRole === \"string\" ? rawRole : SupabaseRole.members.Authenticated;\n\t\t\treturn buildRoleBoundDb({\n\t\t\t\trole: isSupabaseRole(roleStr) ? roleStr : SupabaseRole.members.Authenticated,\n\t\t\t\tclaims: payload\n\t\t\t});\n\t\t},\n\t\tasAnon() {\n\t\t\treturn buildRoleBoundDb({\n\t\t\t\trole: SupabaseRole.members.Anon,\n\t\t\t\tclaims: {}\n\t\t\t});\n\t\t},\n\t\tasServiceRole() {\n\t\t\treturn {\n\t\t\t\t...buildRoleBoundDbWithContext(serviceRoleBinding, context, runtime),\n\t\t\t\tsupabase: supabaseInternal\n\t\t\t};\n\t\t},\n\t\tclose: closeDb,\n\t\t[Symbol.asyncDispose]: closeDb\n\t};\n}\n//#endregion\n//#region src/exports/runtime.ts\nvar runtime_default = supabaseRuntimeDescriptor;\n//#endregion\nexport { SupabaseRuntimeImpl, runtime_default as default, supabase };\n\n//# sourceMappingURL=runtime.mjs.map"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4BA,MAAM,4BAA4B;CACjC,MAAM;CACN,IAAI;CACJ;CACA,UAAU;CACV,UAAU;CACV,cAAc,CAAC;CACf,SAAS;EACR,OAAO;GACN,UAAU;GACV,UAAU;EACX;CACD;AACD;AAGA,SAAS,cAAc,MAAM,SAAS,SAAS;CAC9C,OAAO,gBAAgB,MAAM,SAAS,OAAO;AAC9C;AAGA,IAAI,sBAAsB,cAAc,oBAAoB;;;;;;CAM3D,MAAM,gBAAgB,SAAS;EAC9B,MAAM,OAAO,MAAM,KAAK,qBAAqB;EAC7C,IAAI;GACH,MAAM,KAAK,QAAQ;IAClB,KAAK;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AU,aAAa,QAAQ;IAC/D,QAAQ;GACT,CAAC;EACF;EACA,SAAS;GACR,OAAO,iBAAiB;IACvB,MAAM,aAAa,QAAQ;IAC3B,QAAQ,CAAC;GACV,CAAC;EACF;EACA,gBAAgB;GACf,OAAO;IACN,GAAG,4BAA4B,oBAAoB,SAAS,OAAO;IACnE,UAAU;GACX;EACD;EACA,OAAO;GACN,OAAO,eAAe;CACxB;AACD;AAGA,IAAI,kBAAkB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prisma/orm-extension-supabase",
3
- "version": "8.0.0-rc.12-dev.16",
3
+ "version": "8.0.0-rc.12-dev.17",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -9,10 +9,10 @@
9
9
  "dist"
10
10
  ],
11
11
  "dependencies": {
12
- "@prisma/orm-family-sql": "8.0.0-rc.12-dev.16",
13
- "@prisma/orm-framework": "8.0.0-rc.12-dev.16",
14
- "@prisma/orm-postgres": "8.0.0-rc.12-dev.16",
15
- "@prisma/orm-toolchain": "8.0.0-rc.12-dev.16",
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-postgres": "8.0.0-rc.12-dev.17",
15
+ "@prisma/orm-toolchain": "8.0.0-rc.12-dev.17",
16
16
  "@standard-schema/spec": "^1.1.0",
17
17
  "@types/node": "26.1.2",
18
18
  "@types/pg": "8.20.4",
@@ -21,15 +21,15 @@
21
21
  "pg": "8.22.0"
22
22
  },
23
23
  "devDependencies": {
24
- "@internal/extension-supabase": "8.0.0-rc.12-dev.16",
25
- "@repo/tsconfig": "8.0.0-rc.12-dev.16",
26
- "@repo/tsdown": "8.0.0-rc.12-dev.16",
27
- "@prisma/orm-target-postgres": "8.0.0-rc.12-dev.16",
24
+ "@internal/extension-supabase": "8.0.0-rc.12-dev.17",
25
+ "@repo/tsconfig": "8.0.0-rc.12-dev.17",
26
+ "@repo/tsdown": "8.0.0-rc.12-dev.17",
27
+ "@prisma/orm-target-postgres": "8.0.0-rc.12-dev.17",
28
28
  "tsdown": "0.22.14",
29
29
  "typescript": "5.9.3"
30
30
  },
31
31
  "peerDependencies": {
32
- "@prisma/orm-target-postgres": "8.0.0-rc.12-dev.16",
32
+ "@prisma/orm-target-postgres": "8.0.0-rc.12-dev.17",
33
33
  "typescript": ">=5.9"
34
34
  },
35
35
  "peerDependenciesMeta": {