@gaganref/confect-server 10.3.1-fork.75 → 10.3.1-fork.77
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Table.d.ts +6 -6
- package/dist/Table.d.ts.map +1 -1
- package/dist/TableInfo.d.ts +1 -1
- package/dist/TableInfo.d.ts.map +1 -1
- package/dist/TableInfo.js.map +1 -1
- package/package.json +2 -2
- package/src/TableInfo.ts +2 -1
package/dist/Table.d.ts
CHANGED
|
@@ -77,7 +77,7 @@ export declare const scheduledFunctionsTable: Table_.Table<"_scheduled_functions
|
|
|
77
77
|
}, {
|
|
78
78
|
kind: import("convex/values").VLiteral<"canceled", "required">;
|
|
79
79
|
}, "required", "kind">], "required", "error" | "kind">;
|
|
80
|
-
}, "required", "args" | "completedTime" | "name" | "scheduledTime" | "state" | "state.error" | "state.kind">, {}, {}, {}, IdScope.App>;
|
|
80
|
+
}, "required", "args" | "completedTime" | "name" | "scheduledTime" | "state" | "state.error" | "state.kind">, {}, {}, {}, IdScope.App, undefined>;
|
|
81
81
|
export declare const storageTable: Table_.Table<"_storage", Schema.Struct<{
|
|
82
82
|
readonly sha256: Schema.String;
|
|
83
83
|
readonly size: Schema.Finite;
|
|
@@ -90,7 +90,7 @@ export declare const storageTable: Table_.Table<"_storage", Schema.Struct<{
|
|
|
90
90
|
sha256: import("convex/values").VString<string, "required">;
|
|
91
91
|
size: import("convex/values").VFloat64<number, "required">;
|
|
92
92
|
contentType: import("convex/values").VString<string | undefined, "optional">;
|
|
93
|
-
}, "required", "contentType" | "sha256" | "size">, {}, {}, {}, IdScope.App>;
|
|
93
|
+
}, "required", "contentType" | "sha256" | "size">, {}, {}, {}, IdScope.App, undefined>;
|
|
94
94
|
export declare const systemTables: {
|
|
95
95
|
readonly _scheduled_functions: Table_.Table<"_scheduled_functions", Schema.Struct<{
|
|
96
96
|
readonly name: Schema.String;
|
|
@@ -165,7 +165,7 @@ export declare const systemTables: {
|
|
|
165
165
|
}, {
|
|
166
166
|
kind: import("convex/values").VLiteral<"canceled", "required">;
|
|
167
167
|
}, "required", "kind">], "required", "error" | "kind">;
|
|
168
|
-
}, "required", "args" | "completedTime" | "name" | "scheduledTime" | "state" | "state.error" | "state.kind">, {}, {}, {}, IdScope.App>;
|
|
168
|
+
}, "required", "args" | "completedTime" | "name" | "scheduledTime" | "state" | "state.error" | "state.kind">, {}, {}, {}, IdScope.App, undefined>;
|
|
169
169
|
readonly _storage: Table_.Table<"_storage", Schema.Struct<{
|
|
170
170
|
readonly sha256: Schema.String;
|
|
171
171
|
readonly size: Schema.Finite;
|
|
@@ -178,7 +178,7 @@ export declare const systemTables: {
|
|
|
178
178
|
sha256: import("convex/values").VString<string, "required">;
|
|
179
179
|
size: import("convex/values").VFloat64<number, "required">;
|
|
180
180
|
contentType: import("convex/values").VString<string | undefined, "optional">;
|
|
181
|
-
}, "required", "contentType" | "sha256" | "size">, {}, {}, {}, IdScope.App>;
|
|
181
|
+
}, "required", "contentType" | "sha256" | "size">, {}, {}, {}, IdScope.App, undefined>;
|
|
182
182
|
};
|
|
183
183
|
declare const makeSystemTables: <const Scope_ extends IdScope.IdScope>(scope: Scope_) => {
|
|
184
184
|
_scheduled_functions: Table_.Table<"_scheduled_functions", Schema.Struct<{
|
|
@@ -254,7 +254,7 @@ declare const makeSystemTables: <const Scope_ extends IdScope.IdScope>(scope: Sc
|
|
|
254
254
|
}, {
|
|
255
255
|
kind: import("convex/values").VLiteral<"canceled", "required">;
|
|
256
256
|
}, "required", "kind">], "required", "error" | "kind">;
|
|
257
|
-
}, "required", "args" | "completedTime" | "name" | "scheduledTime" | "state" | "state.error" | "state.kind">, {}, {}, {}, Scope_>;
|
|
257
|
+
}, "required", "args" | "completedTime" | "name" | "scheduledTime" | "state" | "state.error" | "state.kind">, {}, {}, {}, Scope_, undefined>;
|
|
258
258
|
_storage: Table_.Table<"_storage", Schema.Struct<{
|
|
259
259
|
readonly sha256: Schema.String;
|
|
260
260
|
readonly size: Schema.Finite;
|
|
@@ -267,7 +267,7 @@ declare const makeSystemTables: <const Scope_ extends IdScope.IdScope>(scope: Sc
|
|
|
267
267
|
sha256: import("convex/values").VString<string, "required">;
|
|
268
268
|
size: import("convex/values").VFloat64<number, "required">;
|
|
269
269
|
contentType: import("convex/values").VString<string | undefined, "optional">;
|
|
270
|
-
}, "required", "contentType" | "sha256" | "size">, {}, {}, {}, Scope_>;
|
|
270
|
+
}, "required", "contentType" | "sha256" | "size">, {}, {}, {}, Scope_, undefined>;
|
|
271
271
|
};
|
|
272
272
|
export declare const systemTablesForScope: <const Scope_ extends IdScope.IdScope>(scope: Scope_) => ReturnType<typeof makeSystemTables<Scope_>>;
|
|
273
273
|
export type SystemTables<Scope_ extends IdScope.IdScope = IdScope.App> = ReturnType<typeof systemTablesForScope<Scope_>>[keyof typeof systemTables];
|
package/dist/Table.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Table.d.ts","sourceRoot":"","sources":["../src/Table.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,OAAO,MAAM,uBAAuB,CAAC;AAEtD,OAAO,KAAK,MAAM,MAAM,qBAAqB,CAAC;AAC9C,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,EAAe,KAAK,eAAe,EAAE,MAAM,eAAe,CAAC;AAElE,OAAO,EACL,MAAM,EACN,OAAO,EACP,cAAc,EACd,IAAI,EACJ,KAAK,KAAK,EACV,KAAK,GAAG,EACR,KAAK,YAAY,EACjB,KAAK,YAAY,EACjB,KAAK,UAAU,EACf,KAAK,mBAAmB,EACxB,KAAK,IAAI,EACT,KAAK,WAAW,EAChB,KAAK,cAAc,EACnB,KAAK,OAAO,EACZ,KAAK,aAAa,EAClB,KAAK,aAAa,EAClB,KAAK,GAAG,EACR,KAAK,MAAM,EACX,KAAK,KAAK,EACV,KAAK,QAAQ,EACb,KAAK,YAAY,GAClB,MAAM,qBAAqB,CAAC;AAgB7B,e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,CAAC,EAC3B,MAAM,CAAC,aAAa,CAAC,KAAK,CAAC,CAsC5B,CAAC;AAMF,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iJAiBX,CAAC;AAE1B,eAAO,MAAM,YAAY;;;;;;;;;;;;sFAMZ,CAAC;AAEd,eAAO,MAAM,YAAY;aACvB,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;aACpB,QAAQ;;;;;;;;;;;;;CACA,CAAC;AAEX,QAAA,MAAM,gBAAgB,GAAI,KAAK,CAAC,MAAM,SAAS,OAAO,CAAC,OAAO,SACrD,MAAM;IAEb,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAIpB,QAAQ;;;;;;;;;;;;;CACR,CAAC;AAOH,eAAO,MAAM,oBAAoB,GAAI,KAAK,CAAC,MAAM,SAAS,OAAO,CAAC,OAAO,SAChE,MAAM,KACZ,UAAU,CAAC,OAAO,gBAAgB,CAAC,MAAM,CAAC,CAS5C,CAAC;AAEF,MAAM,MAAM,YAAY,CAAC,MAAM,SAAS,OAAO,CAAC,OAAO,GAAG,OAAO,CAAC,GAAG,IACnE,UAAU,CAAC,OAAO,oBAAoB,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,OAAO,YAAY,CAAC,CAAC"}
|
package/dist/TableInfo.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ import type * as Document_ from "./Document.js";
|
|
|
7
7
|
import type * as Table from "./Table.js";
|
|
8
8
|
export declare const TypeId: "~@confect/server/TableInfo";
|
|
9
9
|
export type TypeId = typeof TypeId;
|
|
10
|
-
export type TableInfo<Table_ extends Table.AnyWithProps> = Table_ extends Table.Table<infer TableName, infer TableSchema_, infer TableValidator, infer Indexes, infer SearchIndexes, infer VectorIndexes, infer Scope> ? {
|
|
10
|
+
export type TableInfo<Table_ extends Table.AnyWithProps> = Table_ extends Table.Table<infer TableName, infer TableSchema_, infer TableValidator, infer Indexes, infer SearchIndexes, infer VectorIndexes, infer Scope, any> ? {
|
|
11
11
|
readonly [TypeId]: TypeId;
|
|
12
12
|
readonly document: WithSystemFields<TableName, Schema.Schema.Type<TableSchema_>, Scope>;
|
|
13
13
|
readonly encodedDocument: WithSystemFields<TableName, Schema.Codec.Encoded<TableSchema_>, Scope>;
|
package/dist/TableInfo.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TableInfo.d.ts","sourceRoot":"","sources":["../src/TableInfo.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,OAAO,MAAM,uBAAuB,CAAC;AACtD,OAAO,KAAK,EACV,eAAe,EACf,iBAAiB,EACjB,mBAAmB,EACnB,yBAAyB,EACzB,yBAAyB,EACzB,OAAO,EACP,YAAY,EACZ,aAAa,EACd,MAAM,eAAe,CAAC;AACvB,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AACtD,OAAO,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAC;AAC5C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AACnE,OAAO,KAAK,KAAK,SAAS,MAAM,eAAe,CAAC;AAChD,OAAO,KAAK,KAAK,KAAK,MAAM,YAAY,CAAC;AAEzC,MAAM,CAAC,OAAO,CAAC,MAAM,MAAM,EAAE,4BAA4B,CAAC;AAC1D,MAAM,MAAM,MAAM,GAAG,OAAO,MAAM,CAAC;AAEnC,MAAM,MAAM,SAAS,CAAC,MAAM,SAAS,KAAK,CAAC,YAAY,IACrD,MAAM,SAAS,KAAK,CAAC,KAAK,CACxB,MAAM,SAAS,EACf,MAAM,YAAY,EAClB,MAAM,cAAc,EACpB,MAAM,OAAO,EACb,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UAAU,SAAS,YAAY,IAAI,MAAM,CAAC,KAAK,CACrE,UAAU,CAAC,UAAU,CAAC,EACtB,UAAU,CAAC,iBAAiB,CAAC,CAC9B,CAAC;AAEF,MAAM,MAAM,QAAQ,CAAC,UAAU,SAAS,YAAY,IAAI,UAAU,CAAC,UAAU,CAAC,CAAC;AAK/E,KAAK,iBAAiB,CAAC,cAAc,SAAS,gBAAgB,IAC1D,cAAc,CAAC,YAAY,CAAC,GAC5B,MAAM,YAAY,CAAC;AAEvB,KAAK,qBAAqB,CACxB,SAAS,SAAS,MAAM,EACxB,cAAc,SAAS,gBAAgB,EACvC,KAAK,SAAS,OAAO,CAAC,OAAO,GAAG,OAAO,CAAC,GAAG,IAE3C,gBAAgB,CACd,SAAS,EACT,cAAc,CAAC,MAAM,CAAC,EACtB,KAAK,CACN,SAAS,eAAe,GACrB,gBAAgB,CAAC,SAAS,EAAE,cAAc,CAAC,MAAM,CAAC,EAAE,KAAK,CAAC,GAC1D,KAAK,CAAC"}
|
package/dist/TableInfo.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TableInfo.js","names":[],"sources":["../src/TableInfo.ts"],"sourcesContent":["import type * as IdScope from \"@confect/core/IdScope\";\nimport type {\n GenericDocument,\n GenericFieldPaths,\n GenericTableIndexes,\n GenericTableSearchIndexes,\n GenericTableVectorIndexes,\n IdField,\n SystemFields,\n SystemIndexes,\n} from \"convex/server\";\nimport type { GenericValidator } from \"convex/values\";\nimport type { Schema, Types } from \"effect\";\nimport type { WithSystemFields } from \"@confect/core/SystemFields\";\nimport type * as Document_ from \"./Document.js\";\nimport type * as Table from \"./Table.js\";\n\nexport declare const TypeId: \"~@confect/server/TableInfo\";\nexport type TypeId = typeof TypeId;\n\nexport type TableInfo<Table_ extends Table.AnyWithProps> =\n Table_ extends Table.Table<\n infer TableName,\n infer TableSchema_,\n infer TableValidator,\n infer Indexes,\n infer SearchIndexes,\n infer VectorIndexes,\n infer Scope\n >\n ? {\n readonly [TypeId]: TypeId;\n readonly document: WithSystemFields<\n TableName,\n Schema.Schema.Type<TableSchema_>,\n Scope\n >;\n readonly encodedDocument: WithSystemFields<\n TableName,\n Schema.Codec.Encoded<TableSchema_>,\n Scope\n >;\n readonly convexDocument: ExtractConvexDocument<\n TableName,\n TableValidator,\n Scope\n >;\n readonly fieldPaths:\n | keyof IdField<TableName>\n | ExtractFieldPaths<TableValidator>;\n readonly indexes: Types.Simplify<Indexes & SystemIndexes>;\n readonly searchIndexes: SearchIndexes;\n readonly vectorIndexes: VectorIndexes;\n }\n : never;\n\nexport interface Any {\n readonly [TypeId]: TypeId;\n}\n\nexport interface AnyWithProps extends Any {\n readonly document: Document_.Any;\n readonly encodedDocument: Document_.AnyEncoded;\n readonly convexDocument: GenericDocument;\n readonly fieldPaths: GenericFieldPaths;\n readonly indexes: GenericTableIndexes;\n readonly searchIndexes: GenericTableSearchIndexes;\n readonly vectorIndexes: GenericTableVectorIndexes;\n}\n\nexport type ConvexTableInfo<TableInfo_ extends AnyWithProps> = {\n document: TableInfo_[\"convexDocument\"];\n fieldPaths: TableInfo_[\"fieldPaths\"];\n indexes: TableInfo_[\"indexes\"];\n searchIndexes: TableInfo_[\"searchIndexes\"];\n vectorIndexes: TableInfo_[\"vectorIndexes\"];\n};\n\nexport type TableSchema<TableInfo_ extends AnyWithProps> = Schema.Codec<\n TableInfo_[\"document\"],\n TableInfo_[\"encodedDocument\"]\n>;\n\nexport type Document<TableInfo_ extends AnyWithProps> = TableInfo_[\"document\"];\n\n// Vendored types from convex-js, partially modified.\n// See https://github.com/get-convex/convex-js/pull/14\n\ntype ExtractFieldPaths<TableValidator extends GenericValidator> =\n | TableValidator[\"fieldPaths\"]\n | keyof SystemFields;\n\ntype ExtractConvexDocument<\n TableName extends string,\n TableValidator extends GenericValidator,\n Scope extends IdScope.IdScope = IdScope.App,\n> =\n WithSystemFields<\n TableName,\n TableValidator[\"type\"],\n Scope\n > extends GenericDocument\n ? WithSystemFields<TableName, TableValidator[\"type\"], Scope>\n : never;\n\n// End of vendored types from convex-js, partially modified.\n"],"mappings":""}
|
|
1
|
+
{"version":3,"file":"TableInfo.js","names":[],"sources":["../src/TableInfo.ts"],"sourcesContent":["import type * as IdScope from \"@confect/core/IdScope\";\nimport type {\n GenericDocument,\n GenericFieldPaths,\n GenericTableIndexes,\n GenericTableSearchIndexes,\n GenericTableVectorIndexes,\n IdField,\n SystemFields,\n SystemIndexes,\n} from \"convex/server\";\nimport type { GenericValidator } from \"convex/values\";\nimport type { Schema, Types } from \"effect\";\nimport type { WithSystemFields } from \"@confect/core/SystemFields\";\nimport type * as Document_ from \"./Document.js\";\nimport type * as Table from \"./Table.js\";\n\nexport declare const TypeId: \"~@confect/server/TableInfo\";\nexport type TypeId = typeof TypeId;\n\nexport type TableInfo<Table_ extends Table.AnyWithProps> =\n Table_ extends Table.Table<\n infer TableName,\n infer TableSchema_,\n infer TableValidator,\n infer Indexes,\n infer SearchIndexes,\n infer VectorIndexes,\n infer Scope,\n any\n >\n ? {\n readonly [TypeId]: TypeId;\n readonly document: WithSystemFields<\n TableName,\n Schema.Schema.Type<TableSchema_>,\n Scope\n >;\n readonly encodedDocument: WithSystemFields<\n TableName,\n Schema.Codec.Encoded<TableSchema_>,\n Scope\n >;\n readonly convexDocument: ExtractConvexDocument<\n TableName,\n TableValidator,\n Scope\n >;\n readonly fieldPaths:\n | keyof IdField<TableName>\n | ExtractFieldPaths<TableValidator>;\n readonly indexes: Types.Simplify<Indexes & SystemIndexes>;\n readonly searchIndexes: SearchIndexes;\n readonly vectorIndexes: VectorIndexes;\n }\n : never;\n\nexport interface Any {\n readonly [TypeId]: TypeId;\n}\n\nexport interface AnyWithProps extends Any {\n readonly document: Document_.Any;\n readonly encodedDocument: Document_.AnyEncoded;\n readonly convexDocument: GenericDocument;\n readonly fieldPaths: GenericFieldPaths;\n readonly indexes: GenericTableIndexes;\n readonly searchIndexes: GenericTableSearchIndexes;\n readonly vectorIndexes: GenericTableVectorIndexes;\n}\n\nexport type ConvexTableInfo<TableInfo_ extends AnyWithProps> = {\n document: TableInfo_[\"convexDocument\"];\n fieldPaths: TableInfo_[\"fieldPaths\"];\n indexes: TableInfo_[\"indexes\"];\n searchIndexes: TableInfo_[\"searchIndexes\"];\n vectorIndexes: TableInfo_[\"vectorIndexes\"];\n};\n\nexport type TableSchema<TableInfo_ extends AnyWithProps> = Schema.Codec<\n TableInfo_[\"document\"],\n TableInfo_[\"encodedDocument\"]\n>;\n\nexport type Document<TableInfo_ extends AnyWithProps> = TableInfo_[\"document\"];\n\n// Vendored types from convex-js, partially modified.\n// See https://github.com/get-convex/convex-js/pull/14\n\ntype ExtractFieldPaths<TableValidator extends GenericValidator> =\n | TableValidator[\"fieldPaths\"]\n | keyof SystemFields;\n\ntype ExtractConvexDocument<\n TableName extends string,\n TableValidator extends GenericValidator,\n Scope extends IdScope.IdScope = IdScope.App,\n> =\n WithSystemFields<\n TableName,\n TableValidator[\"type\"],\n Scope\n > extends GenericDocument\n ? WithSystemFields<TableName, TableValidator[\"type\"], Scope>\n : never;\n\n// End of vendored types from convex-js, partially modified.\n"],"mappings":""}
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gaganref/confect-server",
|
|
3
|
-
"version": "10.3.1-fork.
|
|
3
|
+
"version": "10.3.1-fork.77",
|
|
4
4
|
"dependencies": {
|
|
5
5
|
"@effect/ai-openai-compat": "4.0.4",
|
|
6
6
|
"@effect/ai-openrouter": "4.0.4"
|
|
7
7
|
},
|
|
8
8
|
"peerDependencies": {
|
|
9
|
-
"@confect/core": "npm:@gaganref/confect-core@10.3.1-fork.
|
|
9
|
+
"@confect/core": "npm:@gaganref/confect-core@10.3.1-fork.77",
|
|
10
10
|
"@effect/platform-node": ">=4.0.0 <4.1.0",
|
|
11
11
|
"convex": "^1.49.0",
|
|
12
12
|
"effect": ">=4.0.4 <4.1.0"
|