@convex-dev/rag 0.5.3 → 0.6.0

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.
Files changed (82) hide show
  1. package/README.md +89 -82
  2. package/dist/client/index.d.ts +39 -26
  3. package/dist/client/index.d.ts.map +1 -1
  4. package/dist/client/index.js +26 -8
  5. package/dist/client/index.js.map +1 -1
  6. package/dist/component/_generated/api.d.ts +100 -481
  7. package/dist/component/_generated/api.d.ts.map +1 -1
  8. package/dist/component/_generated/api.js +10 -1
  9. package/dist/component/_generated/api.js.map +1 -1
  10. package/dist/component/_generated/component.d.ts +380 -0
  11. package/dist/component/_generated/component.d.ts.map +1 -0
  12. package/dist/component/_generated/component.js +11 -0
  13. package/dist/component/_generated/component.js.map +1 -0
  14. package/dist/component/_generated/dataModel.d.ts +4 -18
  15. package/dist/component/_generated/dataModel.d.ts.map +1 -0
  16. package/dist/component/_generated/dataModel.js +11 -0
  17. package/dist/component/_generated/dataModel.js.map +1 -0
  18. package/dist/component/_generated/server.d.ts +10 -38
  19. package/dist/component/_generated/server.d.ts.map +1 -1
  20. package/dist/component/_generated/server.js +9 -5
  21. package/dist/component/_generated/server.js.map +1 -1
  22. package/dist/component/chunks.d.ts +5 -5
  23. package/dist/component/chunks.d.ts.map +1 -1
  24. package/dist/component/chunks.js +11 -44
  25. package/dist/component/chunks.js.map +1 -1
  26. package/dist/component/embeddings/tables.d.ts +4 -5
  27. package/dist/component/embeddings/tables.d.ts.map +1 -1
  28. package/dist/component/embeddings/tables.js.map +1 -1
  29. package/dist/component/entries.d.ts +6 -6
  30. package/dist/component/namespaces.d.ts +8 -8
  31. package/dist/component/namespaces.d.ts.map +1 -1
  32. package/dist/component/namespaces.js +2 -2
  33. package/dist/component/namespaces.js.map +1 -1
  34. package/dist/component/schema.d.ts +185 -224
  35. package/dist/component/schema.d.ts.map +1 -1
  36. package/dist/component/search.d.ts +4 -3
  37. package/dist/component/search.d.ts.map +1 -1
  38. package/dist/component/search.js +1 -1
  39. package/dist/component/search.js.map +1 -1
  40. package/dist/shared.d.ts +9 -4
  41. package/dist/shared.d.ts.map +1 -1
  42. package/dist/shared.js +1 -4
  43. package/dist/shared.js.map +1 -1
  44. package/package.json +71 -42
  45. package/src/client/defaultChunker.test.ts +1 -1
  46. package/src/client/defaultChunker.ts +7 -7
  47. package/src/client/fileUtils.ts +3 -3
  48. package/src/client/hybridRank.ts +1 -1
  49. package/src/client/index.test.ts +18 -18
  50. package/src/client/index.ts +135 -90
  51. package/src/client/setup.test.ts +2 -2
  52. package/src/component/_generated/api.ts +152 -0
  53. package/src/component/_generated/component.ts +442 -0
  54. package/src/component/_generated/{server.d.ts → server.ts} +33 -21
  55. package/src/component/chunks.test.ts +14 -14
  56. package/src/component/chunks.ts +49 -82
  57. package/src/component/embeddings/importance.test.ts +4 -4
  58. package/src/component/embeddings/importance.ts +1 -1
  59. package/src/component/embeddings/index.test.ts +3 -4
  60. package/src/component/embeddings/index.ts +6 -6
  61. package/src/component/embeddings/tables.ts +9 -8
  62. package/src/component/entries.test.ts +10 -10
  63. package/src/component/entries.ts +29 -29
  64. package/src/component/filters.ts +8 -8
  65. package/src/component/namespaces.ts +31 -34
  66. package/src/component/schema.ts +2 -2
  67. package/src/component/search.test.ts +5 -5
  68. package/src/component/search.ts +8 -9
  69. package/src/component/setup.test.ts +2 -8
  70. package/src/shared.ts +47 -45
  71. package/src/test.ts +20 -0
  72. package/dist/client/types.d.ts +0 -29
  73. package/dist/client/types.d.ts.map +0 -1
  74. package/dist/client/types.js +0 -2
  75. package/dist/client/types.js.map +0 -1
  76. package/dist/package.json +0 -3
  77. package/src/client/types.ts +0 -69
  78. package/src/component/_generated/api.d.ts +0 -507
  79. package/src/component/_generated/api.js +0 -23
  80. package/src/component/_generated/server.js +0 -90
  81. package/src/vitest.config.ts +0 -7
  82. /package/src/component/_generated/{dataModel.d.ts → dataModel.ts} +0 -0
@@ -0,0 +1,380 @@
1
+ /**
2
+ * Generated `ComponentApi` utility.
3
+ *
4
+ * THIS CODE IS AUTOMATICALLY GENERATED.
5
+ *
6
+ * To regenerate, run `npx convex dev`.
7
+ * @module
8
+ */
9
+ import type { FunctionReference } from "convex/server";
10
+ /**
11
+ * A utility for referencing a Convex component's exposed API.
12
+ *
13
+ * Useful when expecting a parameter like `components.myComponent`.
14
+ * Usage:
15
+ * ```ts
16
+ * async function myFunction(ctx: QueryCtx, component: ComponentApi) {
17
+ * return ctx.runQuery(component.someFile.someQuery, { ...args });
18
+ * }
19
+ * ```
20
+ */
21
+ export type ComponentApi<Name extends string | undefined = string | undefined> = {
22
+ chunks: {
23
+ insert: FunctionReference<"mutation", "internal", {
24
+ chunks: Array<{
25
+ content: {
26
+ metadata?: Record<string, any>;
27
+ text: string;
28
+ };
29
+ embedding: Array<number>;
30
+ searchableText?: string;
31
+ }>;
32
+ entryId: string;
33
+ startOrder: number;
34
+ }, {
35
+ status: "pending" | "ready" | "replaced";
36
+ }, Name>;
37
+ list: FunctionReference<"query", "internal", {
38
+ entryId: string;
39
+ order: "desc" | "asc";
40
+ paginationOpts: {
41
+ cursor: string | null;
42
+ endCursor?: string | null;
43
+ id?: number;
44
+ maximumBytesRead?: number;
45
+ maximumRowsRead?: number;
46
+ numItems: number;
47
+ };
48
+ }, {
49
+ continueCursor: string;
50
+ isDone: boolean;
51
+ page: Array<{
52
+ metadata?: Record<string, any>;
53
+ order: number;
54
+ state: "pending" | "ready" | "replaced";
55
+ text: string;
56
+ }>;
57
+ pageStatus?: "SplitRecommended" | "SplitRequired" | null;
58
+ splitCursor?: string | null;
59
+ }, Name>;
60
+ replaceChunksPage: FunctionReference<"mutation", "internal", {
61
+ entryId: string;
62
+ startOrder: number;
63
+ }, {
64
+ nextStartOrder: number;
65
+ status: "pending" | "ready" | "replaced";
66
+ }, Name>;
67
+ };
68
+ entries: {
69
+ add: FunctionReference<"mutation", "internal", {
70
+ allChunks?: Array<{
71
+ content: {
72
+ metadata?: Record<string, any>;
73
+ text: string;
74
+ };
75
+ embedding: Array<number>;
76
+ searchableText?: string;
77
+ }>;
78
+ entry: {
79
+ contentHash?: string;
80
+ filterValues: Array<{
81
+ name: string;
82
+ value: any;
83
+ }>;
84
+ importance: number;
85
+ key?: string;
86
+ metadata?: Record<string, any>;
87
+ namespaceId: string;
88
+ title?: string;
89
+ };
90
+ onComplete?: string;
91
+ }, {
92
+ created: boolean;
93
+ entryId: string;
94
+ status: "pending" | "ready" | "replaced";
95
+ }, Name>;
96
+ addAsync: FunctionReference<"mutation", "internal", {
97
+ chunker: string;
98
+ entry: {
99
+ contentHash?: string;
100
+ filterValues: Array<{
101
+ name: string;
102
+ value: any;
103
+ }>;
104
+ importance: number;
105
+ key?: string;
106
+ metadata?: Record<string, any>;
107
+ namespaceId: string;
108
+ title?: string;
109
+ };
110
+ onComplete?: string;
111
+ }, {
112
+ created: boolean;
113
+ entryId: string;
114
+ status: "pending" | "ready";
115
+ }, Name>;
116
+ deleteAsync: FunctionReference<"mutation", "internal", {
117
+ entryId: string;
118
+ startOrder: number;
119
+ }, null, Name>;
120
+ deleteByKeyAsync: FunctionReference<"mutation", "internal", {
121
+ beforeVersion?: number;
122
+ key: string;
123
+ namespaceId: string;
124
+ }, null, Name>;
125
+ deleteByKeySync: FunctionReference<"action", "internal", {
126
+ key: string;
127
+ namespaceId: string;
128
+ }, null, Name>;
129
+ deleteSync: FunctionReference<"action", "internal", {
130
+ entryId: string;
131
+ }, null, Name>;
132
+ findByContentHash: FunctionReference<"query", "internal", {
133
+ contentHash: string;
134
+ dimension: number;
135
+ filterNames: Array<string>;
136
+ key: string;
137
+ modelId: string;
138
+ namespace: string;
139
+ }, {
140
+ contentHash?: string;
141
+ entryId: string;
142
+ filterValues: Array<{
143
+ name: string;
144
+ value: any;
145
+ }>;
146
+ importance: number;
147
+ key?: string;
148
+ metadata?: Record<string, any>;
149
+ replacedAt?: number;
150
+ status: "pending" | "ready" | "replaced";
151
+ title?: string;
152
+ } | null, Name>;
153
+ get: FunctionReference<"query", "internal", {
154
+ entryId: string;
155
+ }, {
156
+ contentHash?: string;
157
+ entryId: string;
158
+ filterValues: Array<{
159
+ name: string;
160
+ value: any;
161
+ }>;
162
+ importance: number;
163
+ key?: string;
164
+ metadata?: Record<string, any>;
165
+ replacedAt?: number;
166
+ status: "pending" | "ready" | "replaced";
167
+ title?: string;
168
+ } | null, Name>;
169
+ list: FunctionReference<"query", "internal", {
170
+ namespaceId?: string;
171
+ order?: "desc" | "asc";
172
+ paginationOpts: {
173
+ cursor: string | null;
174
+ endCursor?: string | null;
175
+ id?: number;
176
+ maximumBytesRead?: number;
177
+ maximumRowsRead?: number;
178
+ numItems: number;
179
+ };
180
+ status: "pending" | "ready" | "replaced";
181
+ }, {
182
+ continueCursor: string;
183
+ isDone: boolean;
184
+ page: Array<{
185
+ contentHash?: string;
186
+ entryId: string;
187
+ filterValues: Array<{
188
+ name: string;
189
+ value: any;
190
+ }>;
191
+ importance: number;
192
+ key?: string;
193
+ metadata?: Record<string, any>;
194
+ replacedAt?: number;
195
+ status: "pending" | "ready" | "replaced";
196
+ title?: string;
197
+ }>;
198
+ pageStatus?: "SplitRecommended" | "SplitRequired" | null;
199
+ splitCursor?: string | null;
200
+ }, Name>;
201
+ promoteToReady: FunctionReference<"mutation", "internal", {
202
+ entryId: string;
203
+ }, {
204
+ replacedEntry: {
205
+ contentHash?: string;
206
+ entryId: string;
207
+ filterValues: Array<{
208
+ name: string;
209
+ value: any;
210
+ }>;
211
+ importance: number;
212
+ key?: string;
213
+ metadata?: Record<string, any>;
214
+ replacedAt?: number;
215
+ status: "pending" | "ready" | "replaced";
216
+ title?: string;
217
+ } | null;
218
+ }, Name>;
219
+ };
220
+ namespaces: {
221
+ deleteNamespace: FunctionReference<"mutation", "internal", {
222
+ namespaceId: string;
223
+ }, {
224
+ deletedNamespace: null | {
225
+ createdAt: number;
226
+ dimension: number;
227
+ filterNames: Array<string>;
228
+ modelId: string;
229
+ namespace: string;
230
+ namespaceId: string;
231
+ status: "pending" | "ready" | "replaced";
232
+ version: number;
233
+ };
234
+ }, Name>;
235
+ deleteNamespaceSync: FunctionReference<"action", "internal", {
236
+ namespaceId: string;
237
+ }, null, Name>;
238
+ get: FunctionReference<"query", "internal", {
239
+ dimension: number;
240
+ filterNames: Array<string>;
241
+ modelId: string;
242
+ namespace: string;
243
+ }, null | {
244
+ createdAt: number;
245
+ dimension: number;
246
+ filterNames: Array<string>;
247
+ modelId: string;
248
+ namespace: string;
249
+ namespaceId: string;
250
+ status: "pending" | "ready" | "replaced";
251
+ version: number;
252
+ }, Name>;
253
+ getOrCreate: FunctionReference<"mutation", "internal", {
254
+ dimension: number;
255
+ filterNames: Array<string>;
256
+ modelId: string;
257
+ namespace: string;
258
+ onComplete?: string;
259
+ status: "pending" | "ready";
260
+ }, {
261
+ namespaceId: string;
262
+ status: "pending" | "ready";
263
+ }, Name>;
264
+ list: FunctionReference<"query", "internal", {
265
+ paginationOpts: {
266
+ cursor: string | null;
267
+ endCursor?: string | null;
268
+ id?: number;
269
+ maximumBytesRead?: number;
270
+ maximumRowsRead?: number;
271
+ numItems: number;
272
+ };
273
+ status: "pending" | "ready" | "replaced";
274
+ }, {
275
+ continueCursor: string;
276
+ isDone: boolean;
277
+ page: Array<{
278
+ createdAt: number;
279
+ dimension: number;
280
+ filterNames: Array<string>;
281
+ modelId: string;
282
+ namespace: string;
283
+ namespaceId: string;
284
+ status: "pending" | "ready" | "replaced";
285
+ version: number;
286
+ }>;
287
+ pageStatus?: "SplitRecommended" | "SplitRequired" | null;
288
+ splitCursor?: string | null;
289
+ }, Name>;
290
+ listNamespaceVersions: FunctionReference<"query", "internal", {
291
+ namespace: string;
292
+ paginationOpts: {
293
+ cursor: string | null;
294
+ endCursor?: string | null;
295
+ id?: number;
296
+ maximumBytesRead?: number;
297
+ maximumRowsRead?: number;
298
+ numItems: number;
299
+ };
300
+ }, {
301
+ continueCursor: string;
302
+ isDone: boolean;
303
+ page: Array<{
304
+ createdAt: number;
305
+ dimension: number;
306
+ filterNames: Array<string>;
307
+ modelId: string;
308
+ namespace: string;
309
+ namespaceId: string;
310
+ status: "pending" | "ready" | "replaced";
311
+ version: number;
312
+ }>;
313
+ pageStatus?: "SplitRecommended" | "SplitRequired" | null;
314
+ splitCursor?: string | null;
315
+ }, Name>;
316
+ lookup: FunctionReference<"query", "internal", {
317
+ dimension: number;
318
+ filterNames: Array<string>;
319
+ modelId: string;
320
+ namespace: string;
321
+ }, null | string, Name>;
322
+ promoteToReady: FunctionReference<"mutation", "internal", {
323
+ namespaceId: string;
324
+ }, {
325
+ replacedNamespace: null | {
326
+ createdAt: number;
327
+ dimension: number;
328
+ filterNames: Array<string>;
329
+ modelId: string;
330
+ namespace: string;
331
+ namespaceId: string;
332
+ status: "pending" | "ready" | "replaced";
333
+ version: number;
334
+ };
335
+ }, Name>;
336
+ };
337
+ search: {
338
+ search: FunctionReference<"action", "internal", {
339
+ chunkContext?: {
340
+ after: number;
341
+ before: number;
342
+ };
343
+ embedding: Array<number>;
344
+ filters: Array<{
345
+ name: string;
346
+ value: any;
347
+ }>;
348
+ limit: number;
349
+ modelId: string;
350
+ namespace: string;
351
+ vectorScoreThreshold?: number;
352
+ }, {
353
+ entries: Array<{
354
+ contentHash?: string;
355
+ entryId: string;
356
+ filterValues: Array<{
357
+ name: string;
358
+ value: any;
359
+ }>;
360
+ importance: number;
361
+ key?: string;
362
+ metadata?: Record<string, any>;
363
+ replacedAt?: number;
364
+ status: "pending" | "ready" | "replaced";
365
+ title?: string;
366
+ }>;
367
+ results: Array<{
368
+ content: Array<{
369
+ metadata?: Record<string, any>;
370
+ text: string;
371
+ }>;
372
+ entryId: string;
373
+ order: number;
374
+ score: number;
375
+ startOrder: number;
376
+ }>;
377
+ }, Name>;
378
+ };
379
+ };
380
+ //# sourceMappingURL=component.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"component.d.ts","sourceRoot":"","sources":["../../../src/component/_generated/component.ts"],"names":[],"mappings":"AACA;;;;;;;GAOG;AAEH,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AU,EAAE,MAAM,CAAC;aACpB,CAAC,CAAC;SACJ,EACD,IAAI,CACL,CAAC;KACH,CAAC;CACH,CAAC"}
@@ -0,0 +1,11 @@
1
+ /* eslint-disable */
2
+ /**
3
+ * Generated `ComponentApi` utility.
4
+ *
5
+ * THIS CODE IS AUTOMATICALLY GENERATED.
6
+ *
7
+ * To regenerate, run `npx convex dev`.
8
+ * @module
9
+ */
10
+ export {};
11
+ //# sourceMappingURL=component.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"component.js","sourceRoot":"","sources":["../../../src/component/_generated/component.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB;;;;;;;GAOG"}
@@ -1,4 +1,3 @@
1
- /* eslint-disable */
2
1
  /**
3
2
  * Generated data model types.
4
3
  *
@@ -7,31 +6,19 @@
7
6
  * To regenerate, run `npx convex dev`.
8
7
  * @module
9
8
  */
10
-
11
- import type {
12
- DataModelFromSchemaDefinition,
13
- DocumentByName,
14
- TableNamesInDataModel,
15
- SystemTableNames,
16
- } from "convex/server";
9
+ import type { DataModelFromSchemaDefinition, DocumentByName, TableNamesInDataModel, SystemTableNames } from "convex/server";
17
10
  import type { GenericId } from "convex/values";
18
11
  import schema from "../schema.js";
19
-
20
12
  /**
21
13
  * The names of all of your Convex tables.
22
14
  */
23
15
  export type TableNames = TableNamesInDataModel<DataModel>;
24
-
25
16
  /**
26
17
  * The type of a document stored in Convex.
27
18
  *
28
19
  * @typeParam TableName - A string literal type of the table name (like "users").
29
20
  */
30
- export type Doc<TableName extends TableNames> = DocumentByName<
31
- DataModel,
32
- TableName
33
- >;
34
-
21
+ export type Doc<TableName extends TableNames> = DocumentByName<DataModel, TableName>;
35
22
  /**
36
23
  * An identifier for a document in Convex.
37
24
  *
@@ -45,9 +32,7 @@ export type Doc<TableName extends TableNames> = DocumentByName<
45
32
  *
46
33
  * @typeParam TableName - A string literal type of the table name (like "users").
47
34
  */
48
- export type Id<TableName extends TableNames | SystemTableNames> =
49
- GenericId<TableName>;
50
-
35
+ export type Id<TableName extends TableNames | SystemTableNames> = GenericId<TableName>;
51
36
  /**
52
37
  * A type describing your Convex data model.
53
38
  *
@@ -58,3 +43,4 @@ export type Id<TableName extends TableNames | SystemTableNames> =
58
43
  * `mutationGeneric` to make them type-safe.
59
44
  */
60
45
  export type DataModel = DataModelFromSchemaDefinition<typeof schema>;
46
+ //# sourceMappingURL=dataModel.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dataModel.d.ts","sourceRoot":"","sources":["../../../src/component/_generated/dataModel.ts"],"names":[],"mappings":"AACA;;;;;;;GAOG;AAEH,OAAO,KAAK,EACV,6BAA6B,EAC7B,cAAc,EACd,qBAAqB,EACrB,gBAAgB,EACjB,MAAM,eAAe,CAAC;AACvB,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC/C,OAAO,MAAM,MAAM,cAAc,CAAC;AAElC;;GAEG;AACH,MAAM,MAAM,UAAU,GAAG,qBAAqB,CAAC,SAAS,CAAC,CAAC;AAE1D;;;;GAIG;AACH,MAAM,MAAM,GAAG,CAAC,SAAS,SAAS,UAAU,IAAI,cAAc,CAC5D,SAAS,EACT,SAAS,CACV,CAAC;AAEF;;;;;;;;;;;;GAYG;AACH,MAAM,MAAM,EAAE,CAAC,SAAS,SAAS,UAAU,GAAG,gBAAgB,IAC5D,SAAS,CAAC,SAAS,CAAC,CAAC;AAEvB;;;;;;;;GAQG;AACH,MAAM,MAAM,SAAS,GAAG,6BAA6B,CAAC,OAAO,MAAM,CAAC,CAAC"}
@@ -0,0 +1,11 @@
1
+ /* eslint-disable */
2
+ /**
3
+ * Generated data model types.
4
+ *
5
+ * THIS CODE IS AUTOMATICALLY GENERATED.
6
+ *
7
+ * To regenerate, run `npx convex dev`.
8
+ * @module
9
+ */
10
+ export {};
11
+ //# sourceMappingURL=dataModel.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dataModel.js","sourceRoot":"","sources":["../../../src/component/_generated/dataModel.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB;;;;;;;GAOG"}
@@ -1,4 +1,3 @@
1
- /* eslint-disable */
2
1
  /**
3
2
  * Generated utilities for implementing server-side Convex query and mutation functions.
4
3
  *
@@ -7,27 +6,8 @@
7
6
  * To regenerate, run `npx convex dev`.
8
7
  * @module
9
8
  */
10
-
11
- import {
12
- ActionBuilder,
13
- AnyComponents,
14
- HttpActionBuilder,
15
- MutationBuilder,
16
- QueryBuilder,
17
- GenericActionCtx,
18
- GenericMutationCtx,
19
- GenericQueryCtx,
20
- GenericDatabaseReader,
21
- GenericDatabaseWriter,
22
- FunctionReference,
23
- } from "convex/server";
9
+ import type { ActionBuilder, HttpActionBuilder, MutationBuilder, QueryBuilder, GenericActionCtx, GenericMutationCtx, GenericQueryCtx, GenericDatabaseReader, GenericDatabaseWriter } from "convex/server";
24
10
  import type { DataModel } from "./dataModel.js";
25
-
26
- type GenericCtx =
27
- | GenericActionCtx<DataModel>
28
- | GenericMutationCtx<DataModel>
29
- | GenericQueryCtx<DataModel>;
30
-
31
11
  /**
32
12
  * Define a query in this Convex app's public API.
33
13
  *
@@ -37,7 +17,6 @@ type GenericCtx =
37
17
  * @returns The wrapped query. Include this as an `export` to name it and make it accessible.
38
18
  */
39
19
  export declare const query: QueryBuilder<DataModel, "public">;
40
-
41
20
  /**
42
21
  * Define a query that is only accessible from other Convex functions (but not from the client).
43
22
  *
@@ -47,7 +26,6 @@ export declare const query: QueryBuilder<DataModel, "public">;
47
26
  * @returns The wrapped query. Include this as an `export` to name it and make it accessible.
48
27
  */
49
28
  export declare const internalQuery: QueryBuilder<DataModel, "internal">;
50
-
51
29
  /**
52
30
  * Define a mutation in this Convex app's public API.
53
31
  *
@@ -57,7 +35,6 @@ export declare const internalQuery: QueryBuilder<DataModel, "internal">;
57
35
  * @returns The wrapped mutation. Include this as an `export` to name it and make it accessible.
58
36
  */
59
37
  export declare const mutation: MutationBuilder<DataModel, "public">;
60
-
61
38
  /**
62
39
  * Define a mutation that is only accessible from other Convex functions (but not from the client).
63
40
  *
@@ -67,7 +44,6 @@ export declare const mutation: MutationBuilder<DataModel, "public">;
67
44
  * @returns The wrapped mutation. Include this as an `export` to name it and make it accessible.
68
45
  */
69
46
  export declare const internalMutation: MutationBuilder<DataModel, "internal">;
70
-
71
47
  /**
72
48
  * Define an action in this Convex app's public API.
73
49
  *
@@ -80,7 +56,6 @@ export declare const internalMutation: MutationBuilder<DataModel, "internal">;
80
56
  * @returns The wrapped action. Include this as an `export` to name it and make it accessible.
81
57
  */
82
58
  export declare const action: ActionBuilder<DataModel, "public">;
83
-
84
59
  /**
85
60
  * Define an action that is only accessible from other Convex functions (but not from the client).
86
61
  *
@@ -88,38 +63,36 @@ export declare const action: ActionBuilder<DataModel, "public">;
88
63
  * @returns The wrapped function. Include this as an `export` to name it and make it accessible.
89
64
  */
90
65
  export declare const internalAction: ActionBuilder<DataModel, "internal">;
91
-
92
66
  /**
93
67
  * Define an HTTP action.
94
68
  *
95
- * This function will be used to respond to HTTP requests received by a Convex
96
- * deployment if the requests matches the path and method where this action
97
- * is routed. Be sure to route your action in `convex/http.js`.
69
+ * The wrapped function will be used to respond to HTTP requests received
70
+ * by a Convex deployment if the requests matches the path and method where
71
+ * this action is routed. Be sure to route your httpAction in `convex/http.js`.
98
72
  *
99
- * @param func - The function. It receives an {@link ActionCtx} as its first argument.
73
+ * @param func - The function. It receives an {@link ActionCtx} as its first argument
74
+ * and a Fetch API `Request` object as its second.
100
75
  * @returns The wrapped function. Import this function from `convex/http.js` and route it to hook it up.
101
76
  */
102
77
  export declare const httpAction: HttpActionBuilder;
103
-
104
78
  /**
105
79
  * A set of services for use within Convex query functions.
106
80
  *
107
81
  * The query context is passed as the first argument to any Convex query
108
82
  * function run on the server.
109
83
  *
110
- * This differs from the {@link MutationCtx} because all of the services are
111
- * read-only.
84
+ * If you're using code generation, use the `QueryCtx` type in `convex/_generated/server.d.ts` instead.
112
85
  */
113
86
  export type QueryCtx = GenericQueryCtx<DataModel>;
114
-
115
87
  /**
116
88
  * A set of services for use within Convex mutation functions.
117
89
  *
118
90
  * The mutation context is passed as the first argument to any Convex mutation
119
91
  * function run on the server.
92
+ *
93
+ * If you're using code generation, use the `MutationCtx` type in `convex/_generated/server.d.ts` instead.
120
94
  */
121
95
  export type MutationCtx = GenericMutationCtx<DataModel>;
122
-
123
96
  /**
124
97
  * A set of services for use within Convex action functions.
125
98
  *
@@ -127,7 +100,6 @@ export type MutationCtx = GenericMutationCtx<DataModel>;
127
100
  * function run on the server.
128
101
  */
129
102
  export type ActionCtx = GenericActionCtx<DataModel>;
130
-
131
103
  /**
132
104
  * An interface to read from the database within Convex query functions.
133
105
  *
@@ -136,7 +108,6 @@ export type ActionCtx = GenericActionCtx<DataModel>;
136
108
  * building a query.
137
109
  */
138
110
  export type DatabaseReader = GenericDatabaseReader<DataModel>;
139
-
140
111
  /**
141
112
  * An interface to read from and write to the database within Convex mutation
142
113
  * functions.
@@ -147,3 +118,4 @@ export type DatabaseReader = GenericDatabaseReader<DataModel>;
147
118
  * for the guarantees Convex provides your functions.
148
119
  */
149
120
  export type DatabaseWriter = GenericDatabaseWriter<DataModel>;
121
+ //# sourceMappingURL=server.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../../../src/component/_generated/server.js"],"names":[],"mappings":"AAqBA;;;;;;;GAOG;AACH,wEAAkC;AAElC;;;;;;;GAOG;AACH,kFAAkD;AAElD;;;;;;;GAOG;AACH,8EAAwC;AAExC;;;;;;;GAOG;AACH,wFAAwD;AAExD;;;;;;;;;;GAUG;AACH,0EAAoC;AAEpC;;;;;GAKG;AACH,oFAAoD;AAEpD;;;;;;GAMG;AACH,8MAA4C"}
1
+ {"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../../../src/component/_generated/server.ts"],"names":[],"mappings":"AACA;;;;;;;GAOG;AAEH,OAAO,KAAK,EACV,aAAa,EACb,iBAAiB,EACjB,eAAe,EACf,YAAY,EACZ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@module
9
9
  */
10
- import { actionGeneric, httpActionGeneric, queryGeneric, mutationGeneric, internalActionGeneric, internalMutationGeneric, internalQueryGeneric, componentsGeneric, } from "convex/server";
10
+ import { actionGeneric, httpActionGeneric, queryGeneric, mutationGeneric, internalActionGeneric, internalMutationGeneric, internalQueryGeneric, } from "convex/server";
11
11
  /**
12
12
  * Define a query in this Convex app's public API.
13
13
  *
@@ -64,11 +64,15 @@ export const action = actionGeneric;
64
64
  */
65
65
  export const internalAction = internalActionGeneric;
66
66
  /**
67
- * Define a Convex HTTP action.
67
+ * Define an HTTP action.
68
68
  *
69
- * @param func - The function. It receives an {@link ActionCtx} as its first argument, and a `Request` object
70
- * as its second.
71
- * @returns The wrapped endpoint function. Route a URL path to this function in `convex/http.js`.
69
+ * The wrapped function will be used to respond to HTTP requests received
70
+ * by a Convex deployment if the requests matches the path and method where
71
+ * this action is routed. Be sure to route your httpAction in `convex/http.js`.
72
+ *
73
+ * @param func - The function. It receives an {@link ActionCtx} as its first argument
74
+ * and a Fetch API `Request` object as its second.
75
+ * @returns The wrapped function. Import this function from `convex/http.js` and route it to hook it up.
72
76
  */
73
77
  export const httpAction = httpActionGeneric;
74
78
  //# sourceMappingURL=server.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"server.js","sourceRoot":"","sources":["../../../src/component/_generated/server.js"],"names":[],"mappings":"AAAA,oBAAoB;AACpB;;;;;;;GAOG;AAEH,OAAO,EACL,aAAa,EACb,iBAAiB,EACjB,YAAY,EACZ,eAAe,EACf,qBAAqB,EACrB,uBAAuB,EACvB,oBAAoB,EACpB,iBAAiB,GAClB,MAAM,eAAe,CAAC;AAEvB;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,KAAK,GAAG,YAAY,CAAC;AAElC;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG,oBAAoB,CAAC;AAElD;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,QAAQ,GAAG,eAAe,CAAC;AAExC;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,uBAAuB,CAAC;AAExD;;;;;;;;;;GAUG;AACH,MAAM,CAAC,MAAM,MAAM,GAAG,aAAa,CAAC;AAEpC;;;;;GAKG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,qBAAqB,CAAC;AAEpD;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,UAAU,GAAG,iBAAiB,CAAC"}
1
+ {"version":3,"file":"server.js","sourceRoot":"","sources":["../../../src/component/_generated/server.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB;;;;;;;GAOG;AAaH,OAAO,EACL,aAAa,EACb,iBAAiB,EACjB,YAAY,EACZ,eAAe,EACf,qBAAqB,EACrB,uBAAuB,EACvB,oBAAoB,GACrB,MAAM,eAAe,CAAC;AAGvB;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,KAAK,GAAsC,YAAY,CAAC;AAErE;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,aAAa,GACxB,oBAAoB,CAAC;AAEvB;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,QAAQ,GAAyC,eAAe,CAAC;AAE9E;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAC3B,uBAAuB,CAAC;AAE1B;;;;;;;;;;GAUG;AACH,MAAM,CAAC,MAAM,MAAM,GAAuC,aAAa,CAAC;AAExE;;;;;GAKG;AACH,MAAM,CAAC,MAAM,cAAc,GACzB,qBAAqB,CAAC;AAExB;;;;;;;;;;GAUG;AACH,MAAM,CAAC,MAAM,UAAU,GAAsB,iBAAiB,CAAC"}