@convex-dev/rag 0.5.4 → 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 +30 -26
  3. package/dist/client/index.d.ts.map +1 -1
  4. package/dist/client/index.js +2 -2
  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 -43
  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 +104 -84
  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
@@ -1,4 +1,3 @@
1
- /* eslint-disable */
2
1
  /**
3
2
  * Generated `api` utility.
4
3
  *
@@ -7,7 +6,6 @@
7
6
  * To regenerate, run `npx convex dev`.
8
7
  * @module
9
8
  */
10
-
11
9
  import type * as chunks from "../chunks.js";
12
10
  import type * as embeddings_importance from "../embeddings/importance.js";
13
11
  import type * as embeddings_index from "../embeddings/index.js";
@@ -16,492 +14,113 @@ import type * as entries from "../entries.js";
16
14
  import type * as filters from "../filters.js";
17
15
  import type * as namespaces from "../namespaces.js";
18
16
  import type * as search from "../search.js";
19
-
20
- import type {
21
- ApiFromModules,
22
- FilterApi,
23
- FunctionReference,
24
- } from "convex/server";
25
-
17
+ import type { ApiFromModules, FilterApi, FunctionReference } from "convex/server";
18
+ declare const fullApi: ApiFromModules<{
19
+ chunks: typeof chunks;
20
+ "embeddings/importance": typeof embeddings_importance;
21
+ "embeddings/index": typeof embeddings_index;
22
+ "embeddings/tables": typeof embeddings_tables;
23
+ entries: typeof entries;
24
+ filters: typeof filters;
25
+ namespaces: typeof namespaces;
26
+ search: typeof search;
27
+ }>;
26
28
  /**
27
- * A utility for referencing Convex functions in your app's API.
29
+ * A utility for referencing Convex functions in your app's public API.
28
30
  *
29
31
  * Usage:
30
32
  * ```js
31
33
  * const myFunctionReference = api.myModule.myFunction;
32
34
  * ```
33
35
  */
34
- declare const fullApi: ApiFromModules<{
35
- chunks: typeof chunks;
36
- "embeddings/importance": typeof embeddings_importance;
37
- "embeddings/index": typeof embeddings_index;
38
- "embeddings/tables": typeof embeddings_tables;
39
- entries: typeof entries;
40
- filters: typeof filters;
41
- namespaces: typeof namespaces;
42
- search: typeof search;
43
- }>;
44
- export type Mounts = {
45
- chunks: {
46
- insert: FunctionReference<
47
- "mutation",
48
- "public",
49
- {
50
- chunks: Array<{
51
- content: { metadata?: Record<string, any>; text: string };
52
- embedding: Array<number>;
53
- searchableText?: string;
54
- }>;
55
- entryId: string;
56
- startOrder: number;
57
- },
58
- { status: "pending" | "ready" | "replaced" }
59
- >;
60
- list: FunctionReference<
61
- "query",
62
- "public",
63
- {
64
- entryId: string;
65
- order: "desc" | "asc";
66
- paginationOpts: {
67
- cursor: string | null;
68
- endCursor?: string | null;
69
- id?: number;
70
- maximumBytesRead?: number;
71
- maximumRowsRead?: number;
72
- numItems: number;
73
- };
74
- },
75
- {
76
- continueCursor: string;
77
- isDone: boolean;
78
- page: Array<{
79
- metadata?: Record<string, any>;
80
- order: number;
81
- state: "pending" | "ready" | "replaced";
82
- text: string;
83
- }>;
84
- pageStatus?: "SplitRecommended" | "SplitRequired" | null;
85
- splitCursor?: string | null;
86
- }
87
- >;
88
- replaceChunksPage: FunctionReference<
89
- "mutation",
90
- "public",
91
- { entryId: string; startOrder: number },
92
- { nextStartOrder: number; status: "pending" | "ready" | "replaced" }
93
- >;
94
- };
95
- entries: {
96
- add: FunctionReference<
97
- "mutation",
98
- "public",
99
- {
100
- allChunks?: Array<{
101
- content: { metadata?: Record<string, any>; text: string };
102
- embedding: Array<number>;
103
- searchableText?: string;
104
- }>;
105
- entry: {
106
- contentHash?: string;
107
- filterValues: Array<{ name: string; value: any }>;
108
- importance: number;
109
- key?: string;
110
- metadata?: Record<string, any>;
111
- namespaceId: string;
112
- title?: string;
113
- };
114
- onComplete?: string;
115
- },
116
- {
117
- created: boolean;
118
- entryId: string;
119
- status: "pending" | "ready" | "replaced";
120
- }
121
- >;
122
- addAsync: FunctionReference<
123
- "mutation",
124
- "public",
125
- {
126
- chunker: string;
127
- entry: {
128
- contentHash?: string;
129
- filterValues: Array<{ name: string; value: any }>;
130
- importance: number;
131
- key?: string;
132
- metadata?: Record<string, any>;
133
- namespaceId: string;
134
- title?: string;
135
- };
136
- onComplete?: string;
137
- },
138
- { created: boolean; entryId: string; status: "pending" | "ready" }
139
- >;
140
- deleteAsync: FunctionReference<
141
- "mutation",
142
- "public",
143
- { entryId: string; startOrder: number },
144
- null
145
- >;
146
- deleteByKeyAsync: FunctionReference<
147
- "mutation",
148
- "public",
149
- { beforeVersion?: number; key: string; namespaceId: string },
150
- null
151
- >;
152
- deleteByKeySync: FunctionReference<
153
- "action",
154
- "public",
155
- { key: string; namespaceId: string },
156
- null
157
- >;
158
- deleteSync: FunctionReference<
159
- "action",
160
- "public",
161
- { entryId: string },
162
- null
163
- >;
164
- findByContentHash: FunctionReference<
165
- "query",
166
- "public",
167
- {
168
- contentHash: string;
169
- dimension: number;
170
- filterNames: Array<string>;
171
- key: string;
172
- modelId: string;
173
- namespace: string;
174
- },
175
- {
176
- contentHash?: string;
177
- entryId: string;
178
- filterValues: Array<{ name: string; value: any }>;
179
- importance: number;
180
- key?: string;
181
- metadata?: Record<string, any>;
182
- replacedAt?: number;
183
- status: "pending" | "ready" | "replaced";
184
- title?: string;
185
- } | null
186
- >;
187
- get: FunctionReference<
188
- "query",
189
- "public",
190
- { entryId: string },
191
- {
192
- contentHash?: string;
193
- entryId: string;
194
- filterValues: Array<{ name: string; value: any }>;
195
- importance: number;
196
- key?: string;
197
- metadata?: Record<string, any>;
198
- replacedAt?: number;
199
- status: "pending" | "ready" | "replaced";
200
- title?: string;
201
- } | null
202
- >;
203
- list: FunctionReference<
204
- "query",
205
- "public",
206
- {
207
- namespaceId?: string;
208
- order?: "desc" | "asc";
209
- paginationOpts: {
210
- cursor: string | null;
211
- endCursor?: string | null;
212
- id?: number;
213
- maximumBytesRead?: number;
214
- maximumRowsRead?: number;
215
- numItems: number;
216
- };
217
- status: "pending" | "ready" | "replaced";
218
- },
219
- {
220
- continueCursor: string;
221
- isDone: boolean;
222
- page: Array<{
223
- contentHash?: string;
224
- entryId: string;
225
- filterValues: Array<{ name: string; value: any }>;
226
- importance: number;
227
- key?: string;
228
- metadata?: Record<string, any>;
229
- replacedAt?: number;
230
- status: "pending" | "ready" | "replaced";
231
- title?: string;
232
- }>;
233
- pageStatus?: "SplitRecommended" | "SplitRequired" | null;
234
- splitCursor?: string | null;
235
- }
236
- >;
237
- promoteToReady: FunctionReference<
238
- "mutation",
239
- "public",
240
- { entryId: string },
241
- {
242
- replacedEntry: {
243
- contentHash?: string;
244
- entryId: string;
245
- filterValues: Array<{ name: string; value: any }>;
246
- importance: number;
247
- key?: string;
248
- metadata?: Record<string, any>;
249
- replacedAt?: number;
250
- status: "pending" | "ready" | "replaced";
251
- title?: string;
252
- } | null;
253
- }
254
- >;
255
- };
256
- namespaces: {
257
- deleteNamespace: FunctionReference<
258
- "mutation",
259
- "public",
260
- { namespaceId: string },
261
- {
262
- deletedNamespace: null | {
263
- createdAt: number;
264
- dimension: number;
265
- filterNames: Array<string>;
266
- modelId: string;
267
- namespace: string;
268
- namespaceId: string;
269
- status: "pending" | "ready" | "replaced";
270
- version: number;
271
- };
272
- }
273
- >;
274
- deleteNamespaceSync: FunctionReference<
275
- "action",
276
- "public",
277
- { namespaceId: string },
278
- null
279
- >;
280
- get: FunctionReference<
281
- "query",
282
- "public",
283
- {
284
- dimension: number;
285
- filterNames: Array<string>;
286
- modelId: string;
287
- namespace: string;
288
- },
289
- null | {
290
- createdAt: number;
291
- dimension: number;
292
- filterNames: Array<string>;
293
- modelId: string;
294
- namespace: string;
295
- namespaceId: string;
296
- status: "pending" | "ready" | "replaced";
297
- version: number;
298
- }
299
- >;
300
- getOrCreate: FunctionReference<
301
- "mutation",
302
- "public",
303
- {
304
- dimension: number;
305
- filterNames: Array<string>;
306
- modelId: string;
307
- namespace: string;
308
- onComplete?: string;
309
- status: "pending" | "ready";
310
- },
311
- { namespaceId: string; status: "pending" | "ready" }
312
- >;
313
- list: FunctionReference<
314
- "query",
315
- "public",
316
- {
317
- paginationOpts: {
318
- cursor: string | null;
319
- endCursor?: string | null;
320
- id?: number;
321
- maximumBytesRead?: number;
322
- maximumRowsRead?: number;
323
- numItems: number;
324
- };
325
- status: "pending" | "ready" | "replaced";
326
- },
327
- {
328
- continueCursor: string;
329
- isDone: boolean;
330
- page: Array<{
331
- createdAt: number;
332
- dimension: number;
333
- filterNames: Array<string>;
334
- modelId: string;
335
- namespace: string;
336
- namespaceId: string;
337
- status: "pending" | "ready" | "replaced";
338
- version: number;
339
- }>;
340
- pageStatus?: "SplitRecommended" | "SplitRequired" | null;
341
- splitCursor?: string | null;
342
- }
343
- >;
344
- listNamespaceVersions: FunctionReference<
345
- "query",
346
- "public",
347
- {
348
- namespace: string;
349
- paginationOpts: {
350
- cursor: string | null;
351
- endCursor?: string | null;
352
- id?: number;
353
- maximumBytesRead?: number;
354
- maximumRowsRead?: number;
355
- numItems: number;
356
- };
357
- },
358
- {
359
- continueCursor: string;
360
- isDone: boolean;
361
- page: Array<{
362
- createdAt: number;
363
- dimension: number;
364
- filterNames: Array<string>;
365
- modelId: string;
366
- namespace: string;
367
- namespaceId: string;
368
- status: "pending" | "ready" | "replaced";
369
- version: number;
370
- }>;
371
- pageStatus?: "SplitRecommended" | "SplitRequired" | null;
372
- splitCursor?: string | null;
373
- }
374
- >;
375
- lookup: FunctionReference<
376
- "query",
377
- "public",
378
- {
379
- dimension: number;
380
- filterNames: Array<string>;
381
- modelId: string;
382
- namespace: string;
383
- },
384
- null | string
385
- >;
386
- promoteToReady: FunctionReference<
387
- "mutation",
388
- "public",
389
- { namespaceId: string },
390
- {
391
- replacedNamespace: null | {
392
- createdAt: number;
393
- dimension: number;
394
- filterNames: Array<string>;
395
- modelId: string;
396
- namespace: string;
397
- namespaceId: string;
398
- status: "pending" | "ready" | "replaced";
399
- version: number;
400
- };
401
- }
402
- >;
403
- };
404
- search: {
405
- search: FunctionReference<
406
- "action",
407
- "public",
408
- {
409
- chunkContext?: { after: number; before: number };
410
- embedding: Array<number>;
411
- filters: Array<{ name: string; value: any }>;
412
- limit: number;
413
- modelId: string;
414
- namespace: string;
415
- vectorScoreThreshold?: number;
416
- },
417
- {
418
- entries: Array<{
419
- contentHash?: string;
420
- entryId: string;
421
- filterValues: Array<{ name: string; value: any }>;
422
- importance: number;
423
- key?: string;
424
- metadata?: Record<string, any>;
425
- replacedAt?: number;
426
- status: "pending" | "ready" | "replaced";
427
- title?: string;
428
- }>;
429
- results: Array<{
430
- content: Array<{ metadata?: Record<string, any>; text: string }>;
431
- entryId: string;
432
- order: number;
433
- score: number;
434
- startOrder: number;
435
- }>;
436
- }
437
- >;
438
- };
439
- };
440
- // For now fullApiWithMounts is only fullApi which provides
441
- // jump-to-definition in component client code.
442
- // Use Mounts for the same type without the inference.
443
- declare const fullApiWithMounts: typeof fullApi;
444
-
445
- export declare const api: FilterApi<
446
- typeof fullApiWithMounts,
447
- FunctionReference<any, "public">
448
- >;
449
- export declare const internal: FilterApi<
450
- typeof fullApiWithMounts,
451
- FunctionReference<any, "internal">
452
- >;
453
-
36
+ export declare const api: FilterApi<typeof fullApi, FunctionReference<any, "public">>;
37
+ /**
38
+ * A utility for referencing Convex functions in your app's internal API.
39
+ *
40
+ * Usage:
41
+ * ```js
42
+ * const myFunctionReference = internal.myModule.myFunction;
43
+ * ```
44
+ */
45
+ export declare const internal: FilterApi<typeof fullApi, FunctionReference<any, "internal">>;
454
46
  export declare const components: {
455
- workpool: {
456
- lib: {
457
- cancel: FunctionReference<
458
- "mutation",
459
- "internal",
460
- {
461
- id: string;
462
- logLevel: "DEBUG" | "TRACE" | "INFO" | "REPORT" | "WARN" | "ERROR";
463
- },
464
- any
465
- >;
466
- cancelAll: FunctionReference<
467
- "mutation",
468
- "internal",
469
- {
470
- before?: number;
471
- logLevel: "DEBUG" | "TRACE" | "INFO" | "REPORT" | "WARN" | "ERROR";
472
- },
473
- any
474
- >;
475
- enqueue: FunctionReference<
476
- "mutation",
477
- "internal",
478
- {
479
- config: {
480
- logLevel: "DEBUG" | "TRACE" | "INFO" | "REPORT" | "WARN" | "ERROR";
481
- maxParallelism: number;
482
- };
483
- fnArgs: any;
484
- fnHandle: string;
485
- fnName: string;
486
- fnType: "action" | "mutation" | "query";
487
- onComplete?: { context?: any; fnHandle: string };
488
- retryBehavior?: {
489
- base: number;
490
- initialBackoffMs: number;
491
- maxAttempts: number;
492
- };
493
- runAt: number;
494
- },
495
- string
496
- >;
497
- status: FunctionReference<
498
- "query",
499
- "internal",
500
- { id: string },
501
- | { previousAttempts: number; state: "pending" }
502
- | { previousAttempts: number; state: "running" }
503
- | { state: "finished" }
504
- >;
47
+ workpool: {
48
+ lib: {
49
+ cancel: FunctionReference<"mutation", "internal", {
50
+ id: string;
51
+ logLevel: "DEBUG" | "TRACE" | "INFO" | "REPORT" | "WARN" | "ERROR";
52
+ }, any>;
53
+ cancelAll: FunctionReference<"mutation", "internal", {
54
+ before?: number;
55
+ limit?: number;
56
+ logLevel: "DEBUG" | "TRACE" | "INFO" | "REPORT" | "WARN" | "ERROR";
57
+ }, any>;
58
+ enqueue: FunctionReference<"mutation", "internal", {
59
+ config: {
60
+ logLevel: "DEBUG" | "TRACE" | "INFO" | "REPORT" | "WARN" | "ERROR";
61
+ maxParallelism: number;
62
+ };
63
+ fnArgs: any;
64
+ fnHandle: string;
65
+ fnName: string;
66
+ fnType: "action" | "mutation" | "query";
67
+ onComplete?: {
68
+ context?: any;
69
+ fnHandle: string;
70
+ };
71
+ retryBehavior?: {
72
+ base: number;
73
+ initialBackoffMs: number;
74
+ maxAttempts: number;
75
+ };
76
+ runAt: number;
77
+ }, string>;
78
+ enqueueBatch: FunctionReference<"mutation", "internal", {
79
+ config: {
80
+ logLevel: "DEBUG" | "TRACE" | "INFO" | "REPORT" | "WARN" | "ERROR";
81
+ maxParallelism: number;
82
+ };
83
+ items: Array<{
84
+ fnArgs: any;
85
+ fnHandle: string;
86
+ fnName: string;
87
+ fnType: "action" | "mutation" | "query";
88
+ onComplete?: {
89
+ context?: any;
90
+ fnHandle: string;
91
+ };
92
+ retryBehavior?: {
93
+ base: number;
94
+ initialBackoffMs: number;
95
+ maxAttempts: number;
96
+ };
97
+ runAt: number;
98
+ }>;
99
+ }, Array<string>>;
100
+ status: FunctionReference<"query", "internal", {
101
+ id: string;
102
+ }, {
103
+ previousAttempts: number;
104
+ state: "pending";
105
+ } | {
106
+ previousAttempts: number;
107
+ state: "running";
108
+ } | {
109
+ state: "finished";
110
+ }>;
111
+ statusBatch: FunctionReference<"query", "internal", {
112
+ ids: Array<string>;
113
+ }, Array<{
114
+ previousAttempts: number;
115
+ state: "pending";
116
+ } | {
117
+ previousAttempts: number;
118
+ state: "running";
119
+ } | {
120
+ state: "finished";
121
+ }>>;
122
+ };
505
123
  };
506
- };
507
124
  };
125
+ export {};
126
+ //# sourceMappingURL=api.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../../src/component/_generated/api.js"],"names":[],"mappings":"AAYA;;;;;;;GAOG;AACH,iDAA0B;AAC1B,sDAA+B;AAC/B,oEAA8C"}
1
+ {"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../../src/component/_generated/api.ts"],"names":[],"mappings":"AACA;;;;;;;GAOG;AAEH,OAAO,KAAK,KAAK,MAAM,MAAM,cAAc,CAAC;AAC5C,OAAO,KAAK,KAAK,qBAAqB,MAAM,6BAA6B,CAAC;AAC1E,OAAO,KAAK,KAAK,gBAAgB,MAAM,wBAAwB,CAAC;AAChE,OAAO,KAAK,KAAK,iBAAiB,MAAM,yBAAyB,CAAC;AAClE,OAAO,KAAK,KAAK,OAAO,MAAM,eAAe,CAAC;AAC9C,OAAO,KAAK,KAAK,OAAO,MAAM,eAAe,CAAC;AAC9C,OAAO,KAAK,KAAK,UAAU,MAAM,kBAAkB,CAAC;AACpD,OAAO,KAAK,KAAK,MAAM,MAAM,cAAc,CAAC;AAE5C,OAAO,KAAK,EACV,cAAc,EACd,SAAS,EACT,iBAAiB,EAClB,MAAM,eAAe,CAAC;AAGvB,QAAA,MAAM,OAAO,EAAE,cAAc,CAAC;IAC5B,MAAM,EAAE,OAAO,MAAM,CAAC;IACtB,uBAAuB,EAAE,OAAO,qBAAqB,CAAC;IACtD,kBAAkB,EAAE,OAAO,gBAAgB,CAAC;IAC5C,mBAAmB,EAAE,OAAO,iBAAiB,CAAC;IAC9C,OAAO,EAAE,OAAO,OAAO,CAAC;IACxB,OAAO,EAAE,OAAO,OAAO,CAAC;IACxB,UAAU,EAAE,OAA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CAAA;aAAE,GAC9C;gBAAE,KAAK,EAAE,UAAU,CAAA;aAAE,CACxB,CAAC;YACF,WAAW,EAAE,iBAAiB,CAC5B,OAAO,EACP,UAAU,EACV;gBAAE,GAAG,EAAE,KAAK,CAAC,MAAM,CAAC,CAAA;aAAE,EACtB,KAAK,CACD;gBAAE,gBAAgB,EAAE,MAAM,CAAC;gBAAC,KAAK,EAAE,SAAS,CAAA;aAAE,GAC9C;gBAAE,gBAAgB,EAAE,MAAM,CAAC;gBAAC,KAAK,EAAE,SAAS,CAAA;aAAE,GAC9C;gBAAE,KAAK,EAAE,UAAU,CAAA;aAAE,CACxB,CACF,CAAC;SACH,CAAC;KACH,CAAC;CACH,CAAC"}
@@ -8,8 +8,9 @@
8
8
  * @module
9
9
  */
10
10
  import { anyApi, componentsGeneric } from "convex/server";
11
+ const fullApi = anyApi;
11
12
  /**
12
- * A utility for referencing Convex functions in your app's API.
13
+ * A utility for referencing Convex functions in your app's public API.
13
14
  *
14
15
  * Usage:
15
16
  * ```js
@@ -17,6 +18,14 @@ import { anyApi, componentsGeneric } from "convex/server";
17
18
  * ```
18
19
  */
19
20
  export const api = anyApi;
21
+ /**
22
+ * A utility for referencing Convex functions in your app's internal API.
23
+ *
24
+ * Usage:
25
+ * ```js
26
+ * const myFunctionReference = internal.myModule.myFunction;
27
+ * ```
28
+ */
20
29
  export const internal = anyApi;
21
30
  export const components = componentsGeneric();
22
31
  //# sourceMappingURL=api.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"api.js","sourceRoot":"","sources":["../../../src/component/_generated/api.js"],"names":[],"mappings":"AAAA,oBAAoB;AACpB;;;;;;;GAOG;AAEH,OAAO,EAAE,MAAM,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAE1D;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,GAAG,GAAG,MAAM,CAAC;AAC1B,MAAM,CAAC,MAAM,QAAQ,GAAG,MAAM,CAAC;AAC/B,MAAM,CAAC,MAAM,UAAU,GAAG,iBAAiB,EAAE,CAAC"}
1
+ {"version":3,"file":"api.js","sourceRoot":"","sources":["../../../src/component/_generated/api.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB;;;;;;;GAOG;AAgBH,OAAO,EAAE,MAAM,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAE1D,MAAM,OAAO,GASR,MAAa,CAAC;AAEnB;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,GAAG,GAGZ,MAAa,CAAC;AAElB;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,QAAQ,GAGjB,MAAa,CAAC;AAElB,MAAM,CAAC,MAAM,UAAU,GAAG,iBAAiB,EAwF1C,CAAC"}