@confect/core 9.0.0-next.8 → 9.0.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 (45) hide show
  1. package/CHANGELOG.md +170 -4
  2. package/dist/FunctionProvenance.d.ts +87 -93
  3. package/dist/FunctionProvenance.d.ts.map +1 -1
  4. package/dist/FunctionSpec.d.ts +178 -218
  5. package/dist/FunctionSpec.d.ts.map +1 -1
  6. package/dist/GenericId.d.ts +6 -13
  7. package/dist/GenericId.d.ts.map +1 -1
  8. package/dist/GroupPath.d.ts +10 -16
  9. package/dist/GroupPath.d.ts.map +1 -1
  10. package/dist/GroupSpec.d.ts +38 -37
  11. package/dist/GroupSpec.d.ts.map +1 -1
  12. package/dist/GroupSpec.js.map +1 -1
  13. package/dist/Identifier.d.ts +2 -7
  14. package/dist/Identifier.d.ts.map +1 -1
  15. package/dist/Lazy.d.ts +1 -6
  16. package/dist/Lazy.d.ts.map +1 -1
  17. package/dist/PaginationResult.d.ts +10 -17
  18. package/dist/PaginationResult.d.ts.map +1 -1
  19. package/dist/Ref.d.ts +54 -52
  20. package/dist/Ref.d.ts.map +1 -1
  21. package/dist/Refs.d.ts +21 -21
  22. package/dist/Refs.d.ts.map +1 -1
  23. package/dist/Refs.js +2 -10
  24. package/dist/Refs.js.map +1 -1
  25. package/dist/Registry.d.ts +5 -10
  26. package/dist/Registry.d.ts.map +1 -1
  27. package/dist/RuntimeAndFunctionType.d.ts +36 -41
  28. package/dist/RuntimeAndFunctionType.d.ts.map +1 -1
  29. package/dist/Spec.d.ts +23 -33
  30. package/dist/Spec.d.ts.map +1 -1
  31. package/dist/Spec.js +7 -50
  32. package/dist/Spec.js.map +1 -1
  33. package/dist/SystemFields.d.ts +9 -15
  34. package/dist/SystemFields.d.ts.map +1 -1
  35. package/dist/Types.d.ts +27 -27
  36. package/dist/Types.d.ts.map +1 -1
  37. package/dist/UserIdentity.d.ts +55 -62
  38. package/dist/UserIdentity.d.ts.map +1 -1
  39. package/dist/index.d.ts +17 -17
  40. package/dist/index.d.ts.map +1 -0
  41. package/dist/tsconfig.src.tsbuildinfo +1 -0
  42. package/package.json +3 -11
  43. package/src/GroupSpec.ts +7 -6
  44. package/src/Refs.ts +10 -44
  45. package/src/Spec.ts +16 -83
@@ -1,54 +1,49 @@
1
- declare namespace RuntimeAndFunctionType_d_exports {
2
- export { AnyAction, AnyMutation, AnyQuery, ConvexAction, ConvexMutation, ConvexQuery, GetFunctionType, GetRuntime, NodeAction, Runtime, RuntimeAndFunctionType, WithRuntime };
3
- }
4
- type RuntimeAndFunctionType = {
5
- readonly runtime: "Convex";
6
- readonly functionType: "query";
1
+ export type RuntimeAndFunctionType = {
2
+ readonly runtime: "Convex";
3
+ readonly functionType: "query";
7
4
  } | {
8
- readonly runtime: "Convex";
9
- readonly functionType: "mutation";
5
+ readonly runtime: "Convex";
6
+ readonly functionType: "mutation";
10
7
  } | {
11
- readonly runtime: "Convex";
12
- readonly functionType: "action";
8
+ readonly runtime: "Convex";
9
+ readonly functionType: "action";
13
10
  } | {
14
- readonly runtime: "Node";
15
- readonly functionType: "action";
11
+ readonly runtime: "Node";
12
+ readonly functionType: "action";
16
13
  };
17
- type Runtime = RuntimeAndFunctionType["runtime"];
18
- type AnyQuery = Extract<RuntimeAndFunctionType, {
19
- readonly functionType: "query";
14
+ export type Runtime = RuntimeAndFunctionType["runtime"];
15
+ export type AnyQuery = Extract<RuntimeAndFunctionType, {
16
+ readonly functionType: "query";
20
17
  }>;
21
- type AnyMutation = Extract<RuntimeAndFunctionType, {
22
- readonly functionType: "mutation";
18
+ export type AnyMutation = Extract<RuntimeAndFunctionType, {
19
+ readonly functionType: "mutation";
23
20
  }>;
24
- type AnyAction = Extract<RuntimeAndFunctionType, {
25
- readonly functionType: "action";
21
+ export type AnyAction = Extract<RuntimeAndFunctionType, {
22
+ readonly functionType: "action";
26
23
  }>;
27
- type WithRuntime<Runtime_ extends Runtime> = Extract<RuntimeAndFunctionType, {
28
- readonly runtime: Runtime_;
24
+ export type WithRuntime<Runtime_ extends Runtime> = Extract<RuntimeAndFunctionType, {
25
+ readonly runtime: Runtime_;
29
26
  }>;
30
- type GetRuntime<RuntimeAndFunctionType_ extends RuntimeAndFunctionType> = RuntimeAndFunctionType_["runtime"];
31
- type GetFunctionType<RuntimeAndFunctionType_ extends RuntimeAndFunctionType> = RuntimeAndFunctionType_["functionType"];
32
- declare const ConvexQuery: {
33
- readonly runtime: "Convex";
34
- readonly functionType: "query";
27
+ export type GetRuntime<RuntimeAndFunctionType_ extends RuntimeAndFunctionType> = RuntimeAndFunctionType_["runtime"];
28
+ export type GetFunctionType<RuntimeAndFunctionType_ extends RuntimeAndFunctionType> = RuntimeAndFunctionType_["functionType"];
29
+ export declare const ConvexQuery: {
30
+ readonly runtime: "Convex";
31
+ readonly functionType: "query";
35
32
  };
36
- type ConvexQuery = typeof ConvexQuery;
37
- declare const ConvexMutation: {
38
- readonly runtime: "Convex";
39
- readonly functionType: "mutation";
33
+ export type ConvexQuery = typeof ConvexQuery;
34
+ export declare const ConvexMutation: {
35
+ readonly runtime: "Convex";
36
+ readonly functionType: "mutation";
40
37
  };
41
- type ConvexMutation = typeof ConvexMutation;
42
- declare const ConvexAction: {
43
- readonly runtime: "Convex";
44
- readonly functionType: "action";
38
+ export type ConvexMutation = typeof ConvexMutation;
39
+ export declare const ConvexAction: {
40
+ readonly runtime: "Convex";
41
+ readonly functionType: "action";
45
42
  };
46
- type ConvexAction = typeof ConvexAction;
47
- declare const NodeAction: {
48
- readonly runtime: "Node";
49
- readonly functionType: "action";
43
+ export type ConvexAction = typeof ConvexAction;
44
+ export declare const NodeAction: {
45
+ readonly runtime: "Node";
46
+ readonly functionType: "action";
50
47
  };
51
- type NodeAction = typeof NodeAction;
52
- //#endregion
53
- export { AnyAction, AnyMutation, AnyQuery, ConvexAction, ConvexMutation, ConvexQuery, GetFunctionType, GetRuntime, NodeAction, Runtime, RuntimeAndFunctionType, RuntimeAndFunctionType_d_exports, WithRuntime };
48
+ export type NodeAction = typeof NodeAction;
54
49
  //# sourceMappingURL=RuntimeAndFunctionType.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"RuntimeAndFunctionType.d.ts","names":[],"sources":["../src/RuntimeAndFunctionType.ts"],"mappings":";;;KAAY,sBAAA;EAAA,SACG,OAAA;EAAA,SAA4B,YAAA;AAAA;EAAA,SAC5B,OAAA;EAAA,SAA4B,YAAA;AAAA;EAAA,SAC5B,OAAA;EAAA,SAA4B,YAAA;AAAA;EAAA,SAC5B,OAAA;EAAA,SAA0B,YAAA;AAAA;AAAA,KAE7B,OAAA,GAAU,sBAAA;AAAA,KAaV,QAAA,GAAW,OAAA,CACrB,sBAAA;EAAA,SACW,YAAA;AAAA;AAAA,KAGD,WAAA,GAAc,OAAA,CACxB,sBAAA;EAAA,SACW,YAAA;AAAA;AAAA,KAGD,SAAA,GAAY,OAAA,CACtB,sBAAA;EAAA,SACW,YAAA;AAAA;AAAA,KAGD,WAAA,kBAA6B,OAAA,IAAW,OAAA,CAClD,sBAAA;EAAA,SACW,OAAA,EAAS,QAAA;AAAA;AAAA,KAGV,UAAA,iCAA2C,sBAAA,IACrD,uBAAA;AAAA,KAEU,eAAA,iCACsB,sBAAA,IAC9B,uBAAA;AAAA,cAES,WAAA;EAAA,SAAqC,OAAA;EAAA,SAAA,YAAA;AAAA;AAAA,KACtC,WAAA,UAAqB,WAAA;AAAA,cAEpB,cAAA;EAAA,SAA2C,OAAA;EAAA,SAAA,YAAA;AAAA;AAAA,KAC5C,cAAA,UAAwB,cAAA;AAAA,cAEvB,YAAA;EAAA,SAAuC,OAAA;EAAA,SAAA,YAAA;AAAA;AAAA,KACxC,YAAA,UAAsB,YAAA;AAAA,cAErB,UAAA;EAAA,SAAmC,OAAA;EAAA,SAAA,YAAA;AAAA;AAAA,KACpC,UAAA,UAAoB,UAAA"}
1
+ {"version":3,"file":"RuntimeAndFunctionType.d.ts","sourceRoot":"","sources":["../src/RuntimeAndFunction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AW;;;CAA0B,CAAC;AACnD,MAAM,MAAM,WAAW,GAAG,OAAO,WAAW,CAAC;AAE7C,eAAO,MAAM,cAAc;;;CAA6B,CAAC;AACzD,MAAM,MAAM,cAAc,GAAG,OAAO,cAAc,CAAC;AAEnD,eAAO,MAAM,YAAY;;;CAA2B,CAAC;AACrD,MAAM,MAAM,YAAY,GAAG,OAAO,YAAY,CAAC;AAE/C,eAAO,MAAM,UAAU;;;CAAyB,CAAC;AACjD,MAAM,MAAM,UAAU,GAAG,OAAO,UAAU,CAAC"}
package/dist/Spec.d.ts CHANGED
@@ -1,37 +1,27 @@
1
- import { Runtime } from "./RuntimeAndFunctionType.js";
2
- import { AnyWithProps as AnyWithProps$1, AnyWithPropsWithRuntime as AnyWithPropsWithRuntime$1, Name, NamedAt, WithName } from "./GroupSpec.js";
3
-
4
- //#region src/Spec.d.ts
5
- declare namespace Spec_d_exports {
6
- export { Any, AnyWithProps, AnyWithPropsWithRuntime, Groups, Spec, TypeId, isConvexSpec, isNodeSpec, isSpec, make, makeNode, merge };
1
+ import * as GroupSpec from "./GroupSpec";
2
+ export declare const TypeId = "@confect/core/Spec";
3
+ export type TypeId = typeof TypeId;
4
+ export declare const isSpec: (u: unknown) => u is AnyWithProps;
5
+ /**
6
+ * A Confect spec: a flat container of function groups. Groups may be of any
7
+ * runtime — a group built with `GroupSpec.makeNode()` (a Node action group) sits
8
+ * alongside `GroupSpec.make()` groups in the same namespace. The runtime of a
9
+ * group lives on the group itself (`GroupSpec.runtime`) and on each function's
10
+ * `RuntimeAndFunctionType`; the spec does not carry a runtime of its own.
11
+ */
12
+ export interface Spec<Groups_ extends GroupSpec.AnyWithProps = never> {
13
+ readonly [TypeId]: TypeId;
14
+ readonly groups: {
15
+ [GroupName in GroupSpec.Name<Groups_>]: GroupSpec.WithName<Groups_, GroupName>;
16
+ };
17
+ add<Group extends GroupSpec.AnyWithProps>(group: Group): Spec<Groups_ | Group>;
18
+ addAt<const Name extends string, Group extends GroupSpec.AnyWithProps>(name: Name, group: Group): Spec<Groups_ | GroupSpec.NamedAt<Group, Name>>;
7
19
  }
8
- declare const TypeId = "@confect/core/Spec";
9
- type TypeId = typeof TypeId;
10
- declare const isSpec: (u: unknown) => u is AnyWithProps;
11
- declare const isConvexSpec: (u: unknown) => u is AnyWithPropsWithRuntime<"Convex">;
12
- declare const isNodeSpec: (u: unknown) => u is AnyWithPropsWithRuntime<"Node">;
13
- interface Spec<Runtime$1 extends Runtime, Groups_ extends AnyWithPropsWithRuntime$1<Runtime$1> = never> {
14
- readonly [TypeId]: TypeId;
15
- readonly runtime: Runtime$1;
16
- readonly groups: { [GroupName in Name<Groups_>]: WithName<Groups_, GroupName> };
17
- add<Group extends AnyWithPropsWithRuntime$1<Runtime$1>>(group: Group): Spec<Runtime$1, Groups_ | Group>;
18
- addAt<const Name$1 extends string, Group extends AnyWithPropsWithRuntime$1<Runtime$1>>(name: Name$1, group: Group): Spec<Runtime$1, Groups_ | NamedAt<Group, Name$1>>;
20
+ export interface Any {
21
+ readonly [TypeId]: TypeId;
19
22
  }
20
- interface Any {
21
- readonly [TypeId]: TypeId;
23
+ export interface AnyWithProps extends Spec<GroupSpec.AnyWithProps> {
22
24
  }
23
- interface AnyWithProps extends Spec<Runtime, AnyWithProps$1> {}
24
- interface AnyWithPropsWithRuntime<Runtime$2 extends Runtime> extends Spec<Runtime$2, AnyWithPropsWithRuntime$1<Runtime$2>> {}
25
- type Groups<Spec_ extends AnyWithProps> = Spec_["groups"][keyof Spec_["groups"]];
26
- declare const make: () => Spec<"Convex">;
27
- declare const makeNode: () => Spec<"Node">;
28
- /**
29
- * Merges a Convex spec with an optional Node spec into a single assembled
30
- * spec (used by codegen to build `Refs.make` and to enumerate function paths).
31
- * When `nodeSpec` is provided, its groups are merged under a "node" namespace,
32
- * mirroring the structure used by `Refs.make`.
33
- */
34
- declare const merge: <ConvexSpec extends AnyWithPropsWithRuntime<"Convex">, NodeSpec extends AnyWithPropsWithRuntime<"Node">>(convexSpec: ConvexSpec, nodeSpec?: NodeSpec) => AnyWithProps;
35
- //#endregion
36
- export { Any, AnyWithProps, AnyWithPropsWithRuntime, Groups, Spec, Spec_d_exports, TypeId, isConvexSpec, isNodeSpec, isSpec, make, makeNode, merge };
25
+ export type Groups<Spec_ extends AnyWithProps> = Spec_["groups"][keyof Spec_["groups"]];
26
+ export declare const make: () => Spec;
37
27
  //# sourceMappingURL=Spec.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Spec.d.ts","names":[],"sources":["../src/Spec.ts"],"mappings":";;;;;;;cAOa,MAAA;AAAA,KACD,MAAA,UAAgB,MAAA;AAAA,cAEf,MAAA,GAAU,CAAA,cAAa,CAAA,IAAK,YAAA;AAAA,cAG5B,YAAA,GACX,CAAA,cACC,CAAA,IAAK,uBAAA;AAAA,cAKK,UAAA,GAAc,CAAA,cAAa,CAAA,IAAK,uBAAA;AAAA,UAK5B,IAAA,mBACC,OAAA,kBACA,yBAAA,CAAkC,SAAA;EAAA,UAExC,MAAA,GAAS,MAAA;EAAA,SACV,OAAA,EAAS,SAAA;EAAA,SACT,MAAA,kBACO,IAAA,CAAe,OAAA,IAAW,QAAA,CACtC,OAAA,EACA,SAAA;EAIJ,GAAA,eAAkB,yBAAA,CAAkC,SAAA,GAClD,KAAA,EAAO,KAAA,GACN,IAAA,CAAK,SAAA,EAAS,OAAA,GAAU,KAAA;EAE3B,KAAA,4CAEgB,yBAAA,CAAkC,SAAA,GAEhD,IAAA,EAAM,MAAA,EACN,KAAA,EAAO,KAAA,GACN,IAAA,CAAK,SAAA,EAAS,OAAA,GAAU,OAAA,CAAkB,KAAA,EAAO,MAAA;AAAA;AAAA,UAGrC,GAAA;EAAA,UACL,MAAA,GAAS,MAAA;AAAA;AAAA,UAGJ,YAAA,SAAqB,IAAA,CACpC,OAAA,EACA,cAAA;AAAA,UAGe,uBAAA,mBACC,OAAA,UACR,IAAA,CAAK,SAAA,EAAS,yBAAA,CAAkC,SAAA;AAAA,KAE9C,MAAA,e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AAW,YAAa,SAAQ,IAAI,CAAC,SAAS,CAAC,YAAY,CAAC;CAAG;AAErE,MAAM,MAAM,MAAM,CAAC,KAAK,SAAS,YAAY,IAC3C,KAAK,CAAC,QAAQ,CAAC,CAAC,MAAM,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC;AA+BzC,eAAO,MAAM,IAAI,QAAO,IAAiC,CAAC"}
package/dist/Spec.js CHANGED
@@ -1,71 +1,28 @@
1
1
  import { __exportAll } from "./_virtual/_rolldown/runtime.js";
2
- import { makeNodeAt, withName } from "./GroupSpec.js";
2
+ import { withName } from "./GroupSpec.js";
3
3
  import * as Predicate from "effect/Predicate";
4
4
  import * as Record from "effect/Record";
5
- import * as Option from "effect/Option";
6
- import * as Array from "effect/Array";
7
5
 
8
6
  //#region src/Spec.ts
9
7
  var Spec_exports = /* @__PURE__ */ __exportAll({
10
8
  TypeId: () => TypeId,
11
- isConvexSpec: () => isConvexSpec,
12
- isNodeSpec: () => isNodeSpec,
13
9
  isSpec: () => isSpec,
14
- make: () => make,
15
- makeNode: () => makeNode,
16
- merge: () => merge
10
+ make: () => make
17
11
  });
18
12
  const TypeId = "@confect/core/Spec";
19
13
  const isSpec = (u) => Predicate.hasProperty(u, TypeId);
20
- const isConvexSpec = (u) => Predicate.hasProperty(u, TypeId) && Predicate.hasProperty(u, "runtime") && u.runtime === "Convex";
21
- const isNodeSpec = (u) => Predicate.hasProperty(u, TypeId) && Predicate.hasProperty(u, "runtime") && u.runtime === "Node";
22
14
  const Proto = {
23
15
  [TypeId]: TypeId,
24
16
  add(group) {
25
- return makeProto({
26
- runtime: this.runtime,
27
- groups: Record.set(this.groups, group.name, group)
28
- });
17
+ return makeProto({ groups: Record.set(this.groups, group.name, group) });
29
18
  },
30
19
  addAt(name, group) {
31
- return makeProto({
32
- runtime: this.runtime,
33
- groups: Record.set(this.groups, name, withName(name, group))
34
- });
20
+ return makeProto({ groups: Record.set(this.groups, name, withName(name, group)) });
35
21
  }
36
22
  };
37
- const makeProto = ({ runtime, groups }) => Object.assign(Object.create(Proto), {
38
- runtime,
39
- groups
40
- });
41
- const make = () => makeProto({
42
- runtime: "Convex",
43
- groups: {}
44
- });
45
- const makeNode = () => makeProto({
46
- runtime: "Node",
47
- groups: {}
48
- });
49
- /**
50
- * Merges a Convex spec with an optional Node spec into a single assembled
51
- * spec (used by codegen to build `Refs.make` and to enumerate function paths).
52
- * When `nodeSpec` is provided, its groups are merged under a "node" namespace,
53
- * mirroring the structure used by `Refs.make`.
54
- */
55
- const merge = (convexSpec, nodeSpec) => {
56
- const groups = Option.fromNullable(nodeSpec).pipe(Option.map((nodeSpec_) => Array.reduce(Record.toEntries(nodeSpec_.groups), makeNodeAt("node"), (nodeGroupSpec, [name, group]) => nodeGroupSpec.addGroupAt(name, group))), Option.match({
57
- onNone: () => convexSpec.groups,
58
- onSome: (nodeGroup) => ({
59
- ...convexSpec.groups,
60
- node: nodeGroup
61
- })
62
- }));
63
- return Object.assign(Object.create(Proto), {
64
- runtime: "Convex",
65
- groups
66
- });
67
- };
23
+ const makeProto = ({ groups }) => Object.assign(Object.create(Proto), { groups });
24
+ const make = () => makeProto({ groups: {} });
68
25
 
69
26
  //#endregion
70
- export { Spec_exports, TypeId, isConvexSpec, isNodeSpec, isSpec, make, makeNode, merge };
27
+ export { Spec_exports, TypeId, isSpec, make };
71
28
  //# sourceMappingURL=Spec.js.map
package/dist/Spec.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"Spec.js","names":["GroupSpec.withName","GroupSpec.makeNodeAt"],"sources":["../src/Spec.ts"],"sourcesContent":["import * as Array from \"effect/Array\";\nimport * as Option from \"effect/Option\";\nimport * as Predicate from \"effect/Predicate\";\nimport * as Record from \"effect/Record\";\nimport * as GroupSpec from \"./GroupSpec\";\nimport type * as RuntimeAndFunctionType from \"./RuntimeAndFunctionType\";\n\nexport const TypeId = \"@confect/core/Spec\";\nexport type TypeId = typeof TypeId;\n\nexport const isSpec = (u: unknown): u is AnyWithProps =>\n Predicate.hasProperty(u, TypeId);\n\nexport const isConvexSpec = (\n u: unknown,\n): u is AnyWithPropsWithRuntime<\"Convex\"> =>\n Predicate.hasProperty(u, TypeId) &&\n Predicate.hasProperty(u, \"runtime\") &&\n u.runtime === \"Convex\";\n\nexport const isNodeSpec = (u: unknown): u is AnyWithPropsWithRuntime<\"Node\"> =>\n Predicate.hasProperty(u, TypeId) &&\n Predicate.hasProperty(u, \"runtime\") &&\n u.runtime === \"Node\";\n\nexport interface Spec<\n Runtime extends RuntimeAndFunctionType.Runtime,\n Groups_ extends GroupSpec.AnyWithPropsWithRuntime<Runtime> = never,\n> {\n readonly [TypeId]: TypeId;\n readonly runtime: Runtime;\n readonly groups: {\n [GroupName in GroupSpec.Name<Groups_>]: GroupSpec.WithName<\n Groups_,\n GroupName\n >;\n };\n\n add<Group extends GroupSpec.AnyWithPropsWithRuntime<Runtime>>(\n group: Group,\n ): Spec<Runtime, Groups_ | Group>;\n\n addAt<\n const Name extends string,\n Group extends GroupSpec.AnyWithPropsWithRuntime<Runtime>,\n >(\n name: Name,\n group: Group,\n ): Spec<Runtime, Groups_ | GroupSpec.NamedAt<Group, Name>>;\n}\n\nexport interface Any {\n readonly [TypeId]: TypeId;\n}\n\nexport interface AnyWithProps extends Spec<\n RuntimeAndFunctionType.Runtime,\n GroupSpec.AnyWithProps\n> {}\n\nexport interface AnyWithPropsWithRuntime<\n Runtime extends RuntimeAndFunctionType.Runtime,\n> extends Spec<Runtime, GroupSpec.AnyWithPropsWithRuntime<Runtime>> {}\n\nexport type Groups<Spec_ extends AnyWithProps> =\n Spec_[\"groups\"][keyof Spec_[\"groups\"]];\n\nconst Proto = {\n [TypeId]: TypeId,\n\n add<Group extends GroupSpec.AnyWithProps>(this: AnyWithProps, group: Group) {\n return makeProto({\n runtime: this.runtime,\n groups: Record.set(this.groups, group.name, group),\n });\n },\n\n addAt<Group extends GroupSpec.AnyWithProps>(\n this: AnyWithProps,\n name: string,\n group: Group,\n ) {\n return makeProto({\n runtime: this.runtime,\n groups: Record.set(this.groups, name, GroupSpec.withName(name, group)),\n });\n },\n};\n\nconst makeProto = <\n Runtime extends RuntimeAndFunctionType.Runtime,\n Groups_ extends GroupSpec.AnyWithPropsWithRuntime<Runtime>,\n>({\n runtime,\n groups,\n}: {\n runtime: Runtime;\n groups: Record.ReadonlyRecord<string, Groups_>;\n}): Spec<Runtime, Groups_> =>\n Object.assign(Object.create(Proto), {\n runtime,\n groups,\n });\n\nexport const make = (): Spec<\"Convex\"> =>\n makeProto({ runtime: \"Convex\", groups: {} });\n\nexport const makeNode = (): Spec<\"Node\"> =>\n makeProto({ runtime: \"Node\", groups: {} });\n\n/**\n * Merges a Convex spec with an optional Node spec into a single assembled\n * spec (used by codegen to build `Refs.make` and to enumerate function paths).\n * When `nodeSpec` is provided, its groups are merged under a \"node\" namespace,\n * mirroring the structure used by `Refs.make`.\n */\nexport const merge = <\n ConvexSpec extends AnyWithPropsWithRuntime<\"Convex\">,\n NodeSpec extends AnyWithPropsWithRuntime<\"Node\">,\n>(\n convexSpec: ConvexSpec,\n nodeSpec?: NodeSpec,\n): AnyWithProps => {\n const groups = Option.fromNullable(nodeSpec).pipe(\n Option.map((nodeSpec_) =>\n Array.reduce(\n Record.toEntries(nodeSpec_.groups),\n GroupSpec.makeNodeAt(\"node\"),\n (nodeGroupSpec, [name, group]) => nodeGroupSpec.addGroupAt(name, group),\n ),\n ),\n Option.match({\n onNone: () => convexSpec.groups,\n onSome: (nodeGroup) => ({ ...convexSpec.groups, node: nodeGroup }),\n }),\n );\n\n return Object.assign(Object.create(Proto), {\n runtime: \"Convex\" as const,\n groups,\n }) as AnyWithProps;\n};\n"],"mappings":";;;;;;;;;;;;;;;;;AAOA,MAAa,SAAS;AAGtB,MAAa,UAAU,MACrB,UAAU,YAAY,GAAG,OAAO;AAElC,MAAa,gBACX,MAEA,UAAU,YAAY,GAAG,OAAO,IAChC,UAAU,YAAY,GAAG,UAAU,IACnC,EAAE,YAAY;AAEhB,MAAa,cAAc,MACzB,UAAU,YAAY,GAAG,OAAO,IAChC,UAAU,YAAY,GAAG,UAAU,IACnC,EAAE,YAAY;AA4ChB,MAAM,QAAQ;EACX,SAAS;CAEV,IAA8D,OAAc;AAC1E,SAAO,UAAU;GACf,SAAS,KAAK;GACd,QAAQ,OAAO,IAAI,KAAK,QAAQ,MAAM,MAAM,MAAM;GACnD,CAAC;;CAGJ,MAEE,MACA,OACA;AACA,SAAO,UAAU;GACf,SAAS,KAAK;GACd,QAAQ,OAAO,IAAI,KAAK,QAAQ,MAAMA,SAAmB,MAAM,MAAM,CAAC;GACvE,CAAC;;CAEL;AAED,MAAM,aAGJ,EACA,SACA,aAKA,OAAO,OAAO,OAAO,OAAO,MAAM,EAAE;CAClC;CACA;CACD,CAAC;AAEJ,MAAa,aACX,UAAU;CAAE,SAAS;CAAU,QAAQ,EAAE;CAAE,CAAC;AAE9C,MAAa,iBACX,UAAU;CAAE,SAAS;CAAQ,QAAQ,EAAE;CAAE,CAAC;;;;;;;AAQ5C,MAAa,SAIX,YACA,aACiB;CACjB,MAAM,SAAS,OAAO,aAAa,SAAS,CAAC,KAC3C,OAAO,KAAK,cACV,MAAM,OACJ,OAAO,UAAU,UAAU,OAAO,EAClCC,WAAqB,OAAO,GAC3B,eAAe,CAAC,MAAM,WAAW,cAAc,WAAW,MAAM,MAAM,CACxE,CACF,EACD,OAAO,MAAM;EACX,cAAc,WAAW;EACzB,SAAS,eAAe;GAAE,GAAG,WAAW;GAAQ,MAAM;GAAW;EAClE,CAAC,CACH;AAED,QAAO,OAAO,OAAO,OAAO,OAAO,MAAM,EAAE;EACzC,SAAS;EACT;EACD,CAAC"}
1
+ {"version":3,"file":"Spec.js","names":["GroupSpec.withName"],"sources":["../src/Spec.ts"],"sourcesContent":["import * as Predicate from \"effect/Predicate\";\nimport * as Record from \"effect/Record\";\nimport * as GroupSpec from \"./GroupSpec\";\n\nexport const TypeId = \"@confect/core/Spec\";\nexport type TypeId = typeof TypeId;\n\nexport const isSpec = (u: unknown): u is AnyWithProps =>\n Predicate.hasProperty(u, TypeId);\n\n/**\n * A Confect spec: a flat container of function groups. Groups may be of any\n * runtime — a group built with `GroupSpec.makeNode()` (a Node action group) sits\n * alongside `GroupSpec.make()` groups in the same namespace. The runtime of a\n * group lives on the group itself (`GroupSpec.runtime`) and on each function's\n * `RuntimeAndFunctionType`; the spec does not carry a runtime of its own.\n */\nexport interface Spec<Groups_ extends GroupSpec.AnyWithProps = never> {\n readonly [TypeId]: TypeId;\n readonly groups: {\n [GroupName in GroupSpec.Name<Groups_>]: GroupSpec.WithName<\n Groups_,\n GroupName\n >;\n };\n\n add<Group extends GroupSpec.AnyWithProps>(\n group: Group,\n ): Spec<Groups_ | Group>;\n\n addAt<const Name extends string, Group extends GroupSpec.AnyWithProps>(\n name: Name,\n group: Group,\n ): Spec<Groups_ | GroupSpec.NamedAt<Group, Name>>;\n}\n\nexport interface Any {\n readonly [TypeId]: TypeId;\n}\n\nexport interface AnyWithProps extends Spec<GroupSpec.AnyWithProps> {}\n\nexport type Groups<Spec_ extends AnyWithProps> =\n Spec_[\"groups\"][keyof Spec_[\"groups\"]];\n\nconst Proto = {\n [TypeId]: TypeId,\n\n add<Group extends GroupSpec.AnyWithProps>(this: AnyWithProps, group: Group) {\n return makeProto({\n groups: Record.set(this.groups, group.name, group),\n });\n },\n\n addAt<Group extends GroupSpec.AnyWithProps>(\n this: AnyWithProps,\n name: string,\n group: Group,\n ) {\n return makeProto({\n groups: Record.set(this.groups, name, GroupSpec.withName(name, group)),\n });\n },\n};\n\nconst makeProto = <Groups_ extends GroupSpec.AnyWithProps>({\n groups,\n}: {\n groups: Record.ReadonlyRecord<string, Groups_>;\n}): Spec<Groups_> =>\n Object.assign(Object.create(Proto), {\n groups,\n });\n\nexport const make = (): Spec => makeProto({ groups: {} });\n"],"mappings":";;;;;;;;;;;AAIA,MAAa,SAAS;AAGtB,MAAa,UAAU,MACrB,UAAU,YAAY,GAAG,OAAO;AAqClC,MAAM,QAAQ;EACX,SAAS;CAEV,IAA8D,OAAc;AAC1E,SAAO,UAAU,EACf,QAAQ,OAAO,IAAI,KAAK,QAAQ,MAAM,MAAM,MAAM,EACnD,CAAC;;CAGJ,MAEE,MACA,OACA;AACA,SAAO,UAAU,EACf,QAAQ,OAAO,IAAI,KAAK,QAAQ,MAAMA,SAAmB,MAAM,MAAM,CAAC,EACvE,CAAC;;CAEL;AAED,MAAM,aAAqD,EACzD,aAIA,OAAO,OAAO,OAAO,OAAO,MAAM,EAAE,EAClC,QACD,CAAC;AAEJ,MAAa,aAAmB,UAAU,EAAE,QAAQ,EAAE,EAAE,CAAC"}
@@ -1,28 +1,22 @@
1
- import { GenericId } from "./GenericId.js";
1
+ import type { Expand, IdField, SystemFields as NonIdSystemFields } from "convex/server";
2
2
  import * as Schema from "effect/Schema";
3
- import { Expand, IdField, SystemFields as SystemFields$1 } from "convex/server";
4
-
5
- //#region src/SystemFields.d.ts
6
- declare namespace SystemFields_d_exports {
7
- export { ExtendWithSystemFields, SystemFields, WithSystemFields, extendWithSystemFields };
8
- }
3
+ import * as GenericId from "./GenericId";
9
4
  type SystemFieldsSchema<TableName extends string> = Schema.Struct<{
10
- _id: Schema.Schema<GenericId<TableName>, GenericId<TableName>, never>;
11
- _creationTime: typeof Schema.Number;
5
+ _id: Schema.Schema<GenericId.GenericId<TableName>, GenericId.GenericId<TableName>, never>;
6
+ _creationTime: typeof Schema.Number;
12
7
  }>;
13
8
  /**
14
9
  * Produces a schema for Convex system fields.
15
10
  */
16
- declare const SystemFields: <TableName extends string>(tableName: TableName) => SystemFieldsSchema<TableName>;
11
+ export declare const SystemFields: <TableName extends string>(tableName: TableName) => SystemFieldsSchema<TableName>;
17
12
  /**
18
13
  * Extend a table schema with Convex system fields.
19
14
  */
20
- declare const extendWithSystemFields: <TableName extends string, TableSchema extends Schema.Schema.AnyNoContext>(tableName: TableName, schema: TableSchema) => ExtendWithSystemFields<TableName, TableSchema>;
15
+ export declare const extendWithSystemFields: <TableName extends string, TableSchema extends Schema.Schema.AnyNoContext>(tableName: TableName, schema: TableSchema) => ExtendWithSystemFields<TableName, TableSchema>;
21
16
  /**
22
17
  * Extend a table schema with Convex system fields at the type level.
23
18
  */
24
- type ExtendWithSystemFields<TableName extends string, TableSchema extends Schema.Schema.AnyNoContext> = Schema.extend<SystemFieldsSchema<TableName>, TableSchema>;
25
- type WithSystemFields<TableName extends string, Document> = Expand<Readonly<IdField<TableName>> & Readonly<SystemFields$1> & Document>;
26
- //#endregion
27
- export { ExtendWithSystemFields, SystemFields, SystemFields_d_exports, WithSystemFields, extendWithSystemFields };
19
+ export type ExtendWithSystemFields<TableName extends string, TableSchema extends Schema.Schema.AnyNoContext> = Schema.extend<SystemFieldsSchema<TableName>, TableSchema>;
20
+ export type WithSystemFields<TableName extends string, Document> = Expand<Readonly<IdField<TableName>> & Readonly<NonIdSystemFields> & Document>;
21
+ export {};
28
22
  //# sourceMappingURL=SystemFields.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"SystemFields.d.ts","names":[],"sources":["../src/SystemFields.ts"],"mappings":";;;;;;;;KAQK,kBAAA,6BAA+C,MAAA,CAAO,MAAA;EACzD,GAAA,EAAK,MAAA,CAAO,MAAA,CACV,SAAA,CAAoB,SAAA,GACpB,SAAA,CAAoB,SAAA;EAGtB,aAAA,SAAsB,MAAA,CAAO,MAAA;AAAA;;;;cAMlB,YAAA,6BACX,SAAA,EAAW,SAAA,KACV,kBAAA,CAAmB,SAAA;;AAhBmB;;cAyB5B,sBAAA,iDAES,MAAA,CAAO,MAAA,CAAO,YAAA,EAElC,SAAA,EAAW,SAAA,EACX,MAAA,EAAQ,WAAA,KACP,sBAAA,CAAuB,SAAA,EAAW,WAAA;;;;KAMzB,sBAAA,+CAEU,MAAA,CAAO,MAAA,CAAO,YAAA,IAChC,MAAA,CAAO,MAAA,CAAO,kBAAA,CAAmB,SAAA,GAAY,WAAA;AAAA,KAErC,gBAAA,uCAAuD,MAAA,CACjE,QAAA,CAAS,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AG,QAAQ,CAAC,iBAAiB,CAAC,GAAG,QAAQ,CACtE,CAAC"}
package/dist/Types.d.ts CHANGED
@@ -1,35 +1,35 @@
1
- import { DocumentByName, FieldTypeFromFieldPath, GenericDataModel, GenericDatabaseReader, TableNamesInDataModel } from "convex/server";
2
- import { GenericId } from "convex/values";
3
- import { Brand } from "effect";
4
-
5
- //#region src/Types.d.ts
6
- declare namespace Types_d_exports {
7
- export { BaseDatabaseReader, DeepMutable, IndexFieldTypesForEq, IsAny, IsOptional, IsRecord, IsRecursive, IsUnion, IsValueLiteral, TypeDefect, TypeError, UnionToTuple };
8
- }
9
- type IsOptional<T, K extends keyof T> = {} extends Pick<T, K> ? true : false;
10
- type IsAny<T> = 0 extends 1 & T ? true : false;
11
- type IsUnion<T, U extends T = T> = T extends unknown ? [U] extends [T] ? false : true : never;
12
- type IsValueLiteral<Vl> = [Vl] extends [never] ? never : IsUnion<Vl> extends true ? false : [Vl] extends [string | number | bigint | boolean] ? [string] extends [Vl] ? false : [number] extends [Vl] ? false : [boolean] extends [Vl] ? false : [bigint] extends [Vl] ? false : true : false;
1
+ import type { DocumentByName, FieldTypeFromFieldPath, GenericDatabaseReader, GenericDataModel, TableNamesInDataModel } from "convex/server";
2
+ import type { GenericId } from "convex/values";
3
+ import type { Brand } from "effect";
4
+ export type IsOptional<T, K extends keyof T> = {} extends Pick<T, K> ? true : false;
5
+ export type IsAny<T> = 0 extends 1 & T ? true : false;
6
+ export type IsUnion<T, U extends T = T> = T extends unknown ? [U] extends [T] ? false : true : never;
7
+ export type IsValueLiteral<Vl> = [Vl] extends [never] ? never : IsUnion<Vl> extends true ? false : [Vl] extends [string | number | bigint | boolean] ? [string] extends [Vl] ? false : [number] extends [Vl] ? false : [boolean] extends [Vl] ? false : [bigint] extends [Vl] ? false : true : false;
13
8
  /**
14
9
  * Only checks for records with string keys.
15
10
  */
16
- type IsRecord<T> = [T] extends [never] ? false : IsUnion<T> extends true ? false : T extends Record<string, infer V> ? string extends keyof T ? keyof T extends string ? T extends Record<string, V> ? Record<string, V> extends T ? true : false : false : false : false : false;
17
- type DeepMutable<T> = IsAny<T> extends true ? any : T extends NonRecursiveLeaf ? T : T extends ReadonlyMap<infer K, infer V> ? Map<DeepMutable<K>, DeepMutable<V>> : T extends ReadonlySet<infer V> ? Set<DeepMutable<V>> : [keyof T] extends [never] ? T : { -readonly [K in keyof T]: DeepMutable<T[K]> };
18
- type TypeError<Message extends string, T = never> = [Message, T];
19
- type TypeDefect<Message extends string, T = never> = [Message, T];
20
- type IsRecursive<T> = true extends DetectCycle<T> ? true : false;
11
+ export type IsRecord<T> = [T] extends [never] ? false : IsUnion<T> extends true ? false : T extends Record<string, infer V> ? string extends keyof T ? keyof T extends string ? T extends Record<string, V> ? Record<string, V> extends T ? true : false : false : false : false : false;
12
+ export type DeepMutable<T> = IsAny<T> extends true ? any : T extends NonRecursiveLeaf ? T : T extends ReadonlyMap<infer K, infer V> ? Map<DeepMutable<K>, DeepMutable<V>> : T extends ReadonlySet<infer V> ? Set<DeepMutable<V>> : [keyof T] extends [never] ? T : {
13
+ -readonly [K in keyof T]: DeepMutable<T[K]>;
14
+ };
15
+ export type TypeError<Message extends string, T = never> = [Message, T];
16
+ export type TypeDefect<Message extends string, T = never> = [Message, T];
17
+ export type IsRecursive<T> = true extends DetectCycle<T> ? true : false;
21
18
  type NonRecursiveLeaf = Brand.Brand<any> | GenericId<any> | ArrayBuffer;
22
- type DetectCycle<T, Cache extends any[] = []> = IsAny<T> extends true ? false : [T] extends [any] ? T extends NonRecursiveLeaf ? false : T extends Cache[number] ? true : T extends Array<infer U> ? DetectCycle<U, [...Cache, T]> : T extends Map<infer _U, infer V> ? DetectCycle<V, [...Cache, T]> : T extends Set<infer U> ? DetectCycle<U, [...Cache, T]> : T extends object ? true extends { [K in keyof T]: DetectCycle<T[K], [...Cache, T]> }[keyof T] ? true : false : false : never;
23
- type UnionToTuple<t> = _unionToTuple<t, []> extends infer result ? conform<result, t[]> : never;
19
+ type DetectCycle<T, Cache extends any[] = []> = IsAny<T> extends true ? false : [T] extends [any] ? T extends NonRecursiveLeaf ? false : T extends Cache[number] ? true : T extends Array<infer U> ? DetectCycle<U, [...Cache, T]> : T extends Map<infer _U, infer V> ? DetectCycle<V, [...Cache, T]> : T extends Set<infer U> ? DetectCycle<U, [...Cache, T]> : T extends object ? true extends {
20
+ [K in keyof T]: DetectCycle<T[K], [...Cache, T]>;
21
+ }[keyof T] ? true : false : false : never;
22
+ export type UnionToTuple<t> = _unionToTuple<t, []> extends infer result ? conform<result, t[]> : never;
24
23
  type _unionToTuple<t, result extends unknown[]> = getLastBranch<t> extends infer current ? [t] extends [never] ? result : _unionToTuple<Exclude<t, current>, [current, ...result]> : never;
25
- type getLastBranch<t> = intersectUnion<t extends unknown ? (x: t) => void : never> extends ((x: infer branch) => void) ? branch : never;
26
- type intersectUnion<t> = (t extends unknown ? (_: t) => void : never) extends ((_: infer intersection) => void) ? intersection : never;
24
+ type getLastBranch<t> = intersectUnion<t extends unknown ? (x: t) => void : never> extends (x: infer branch) => void ? branch : never;
25
+ type intersectUnion<t> = (t extends unknown ? (_: t) => void : never) extends (_: infer intersection) => void ? intersection : never;
27
26
  type conform<t, base> = t extends base ? t : base;
28
- type IndexFieldTypesForEq<ConvexDataModel extends GenericDataModel, Table extends TableNamesInDataModel<ConvexDataModel>, T extends string[]> = T extends readonly [...infer Rest, any] ? Rest extends readonly string[] ? { [K in keyof Rest]: FieldTypeFromFieldPath<DocumentByName<ConvexDataModel, Table>, Rest[K]> } : never : never;
29
- type BaseDatabaseReader<DataModel extends GenericDataModel> = {
30
- get: GenericDatabaseReader<DataModel>["get"];
31
- query: GenericDatabaseReader<DataModel>["query"];
27
+ export type IndexFieldTypesForEq<ConvexDataModel extends GenericDataModel, Table extends TableNamesInDataModel<ConvexDataModel>, T extends string[]> = T extends readonly [...infer Rest, any] ? Rest extends readonly string[] ? {
28
+ [K in keyof Rest]: FieldTypeFromFieldPath<DocumentByName<ConvexDataModel, Table>, Rest[K]>;
29
+ } : never : never;
30
+ export type BaseDatabaseReader<DataModel extends GenericDataModel> = {
31
+ get: GenericDatabaseReader<DataModel>["get"];
32
+ query: GenericDatabaseReader<DataModel>["query"];
32
33
  };
33
- //#endregion
34
- export { BaseDatabaseReader, DeepMutable, IndexFieldTypesForEq, IsAny, IsOptional, IsRecord, IsRecursive, IsUnion, IsValueLiteral, TypeDefect, TypeError, Types_d_exports, UnionToTuple };
34
+ export {};
35
35
  //# sourceMappingURL=Types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Types.d.ts","names":[],"sources":["../src/Types.ts"],"mappings":";;;;;;;;KAUY,UAAA,oBAA8B,CAAA,eAC7B,IAAA,CAAK,CAAA,EAAG,CAAA;AAAA,KAET,KAAA,oBAAyB,CAAA;AAAA,KAEzB,OAAA,cAAqB,CAAA,GAAI,CAAA,IAAK,CAAA,oBACrC,CAAA,WAAY,CAAA;AAAA,KAML,cAAA,QAAsB,EAAA,4BAE9B,OAAA,CAAQ,EAAA,0BAEL,EAAA,mEACmB,EAAA,8BAEE,EAAA,+BAEG,EAAA,8BAEC,EAAA;;;;KAQpB,QAAA,OAAe,CAAA,4BAEvB,OAAA,CAAQ,CAAA,yBAEN,CAAA,SAAU,MAAA,yCACa,CAAA,SACb,CAAA,kBACJ,CAAA,SAAU,MAAA,SAAe,CAAA,IACvB,MAAA,SAAe,CAAA,UAAW,CAAA;AAAA,KAQ5B,WAAA,MACV,KAAA,CAAM,CAAA,uBAEF,CAAA,SAAU,gBAAA,GACR,CAAA,GACA,CAAA,SAAU,WAAA,qBACR,GAAA,CAAI,WAAA,CAAY,CAAA,GAAI,WAAA,CAAY,CAAA,KAChC,CAAA,SAAU,WAAA,YACR,GAAA,CAAI,WAAA,CAAY,CAAA,YACT,CAAA,oBACL,CAAA,2BACwB,CAAA,GAAI,WAAA,CAAY,CAAA,CAAE,CAAA;AAAA,KAE5C,SAAA,uCAAgD,OAAA,EAAS,CAAA;AAAA,KAEzD,UAA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AAe,EAAE,KAAK,CAAC,EACtC,IAAI,CAAC,CAAC,CAAC,CACR;CACF,GACD,KAAK,GACP,KAAK,CAAC;AAGV,MAAM,MAAM,kBAAkB,CAAC,SAAS,SAAS,gBAAgB,IAAI;IACnE,GAAG,EAAE,qBAAqB,CAAC,SAAS,CAAC,CAAC,KAAK,CAAC,CAAC;IAC7C,KAAK,EAAE,qBAAqB,CAAC,SAAS,CAAC,CAAC,OAAO,CAAC,CAAC;CAClD,CAAC"}
@@ -1,65 +1,58 @@
1
1
  import * as Schema from "effect/Schema";
2
-
3
- //#region src/UserIdentity.d.ts
4
- declare namespace UserIdentity_d_exports {
5
- export { UserIdentity };
6
- }
7
- declare const UserIdentity: <CustomClaimsFields extends Schema.Struct.Fields>(customClaimsFields: CustomClaimsFields) => Schema.Struct<CustomClaimsFields & {
8
- tokenIdentifier: typeof Schema.String;
9
- subject: typeof Schema.String;
10
- issuer: typeof Schema.String;
11
- name: Schema.optionalWith<typeof Schema.String, {
12
- exact: true;
13
- }>;
14
- givenName: Schema.optionalWith<typeof Schema.String, {
15
- exact: true;
16
- }>;
17
- familyName: Schema.optionalWith<typeof Schema.String, {
18
- exact: true;
19
- }>;
20
- nickname: Schema.optionalWith<typeof Schema.String, {
21
- exact: true;
22
- }>;
23
- preferredUsername: Schema.optionalWith<typeof Schema.String, {
24
- exact: true;
25
- }>;
26
- profileUrl: Schema.optionalWith<typeof Schema.String, {
27
- exact: true;
28
- }>;
29
- pictureUrl: Schema.optionalWith<typeof Schema.String, {
30
- exact: true;
31
- }>;
32
- email: Schema.optionalWith<typeof Schema.String, {
33
- exact: true;
34
- }>;
35
- emailVerified: Schema.optionalWith<typeof Schema.Boolean, {
36
- exact: true;
37
- }>;
38
- gender: Schema.optionalWith<typeof Schema.String, {
39
- exact: true;
40
- }>;
41
- birthday: Schema.optionalWith<typeof Schema.String, {
42
- exact: true;
43
- }>;
44
- timezone: Schema.optionalWith<typeof Schema.String, {
45
- exact: true;
46
- }>;
47
- language: Schema.optionalWith<typeof Schema.String, {
48
- exact: true;
49
- }>;
50
- phoneNumber: Schema.optionalWith<typeof Schema.String, {
51
- exact: true;
52
- }>;
53
- phoneNumberVerified: Schema.optionalWith<typeof Schema.Boolean, {
54
- exact: true;
55
- }>;
56
- address: Schema.optionalWith<typeof Schema.String, {
57
- exact: true;
58
- }>;
59
- updatedAt: Schema.optionalWith<typeof Schema.String, {
60
- exact: true;
61
- }>;
2
+ export declare const UserIdentity: <CustomClaimsFields extends Schema.Struct.Fields>(customClaimsFields: CustomClaimsFields) => Schema.Struct<CustomClaimsFields & {
3
+ tokenIdentifier: typeof Schema.String;
4
+ subject: typeof Schema.String;
5
+ issuer: typeof Schema.String;
6
+ name: Schema.optionalWith<typeof Schema.String, {
7
+ exact: true;
8
+ }>;
9
+ givenName: Schema.optionalWith<typeof Schema.String, {
10
+ exact: true;
11
+ }>;
12
+ familyName: Schema.optionalWith<typeof Schema.String, {
13
+ exact: true;
14
+ }>;
15
+ nickname: Schema.optionalWith<typeof Schema.String, {
16
+ exact: true;
17
+ }>;
18
+ preferredUsername: Schema.optionalWith<typeof Schema.String, {
19
+ exact: true;
20
+ }>;
21
+ profileUrl: Schema.optionalWith<typeof Schema.String, {
22
+ exact: true;
23
+ }>;
24
+ pictureUrl: Schema.optionalWith<typeof Schema.String, {
25
+ exact: true;
26
+ }>;
27
+ email: Schema.optionalWith<typeof Schema.String, {
28
+ exact: true;
29
+ }>;
30
+ emailVerified: Schema.optionalWith<typeof Schema.Boolean, {
31
+ exact: true;
32
+ }>;
33
+ gender: Schema.optionalWith<typeof Schema.String, {
34
+ exact: true;
35
+ }>;
36
+ birthday: Schema.optionalWith<typeof Schema.String, {
37
+ exact: true;
38
+ }>;
39
+ timezone: Schema.optionalWith<typeof Schema.String, {
40
+ exact: true;
41
+ }>;
42
+ language: Schema.optionalWith<typeof Schema.String, {
43
+ exact: true;
44
+ }>;
45
+ phoneNumber: Schema.optionalWith<typeof Schema.String, {
46
+ exact: true;
47
+ }>;
48
+ phoneNumberVerified: Schema.optionalWith<typeof Schema.Boolean, {
49
+ exact: true;
50
+ }>;
51
+ address: Schema.optionalWith<typeof Schema.String, {
52
+ exact: true;
53
+ }>;
54
+ updatedAt: Schema.optionalWith<typeof Schema.String, {
55
+ exact: true;
56
+ }>;
62
57
  }>;
63
- //#endregion
64
- export { UserIdentity, UserIdentity_d_exports };
65
58
  //# sourceMappingURL=UserIdentity.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"UserIdentity.d.ts","names":[],"sources":["../src/UserIdentity.ts"],"mappings":";;;;;;cAEa,YAAA,8BAA2C,MAAA,CAAO,MAAA,CAAO,MAAA,EACpE,kBAAA,EAAoB,kBAAA,KAAkB,MAAA,CAAA,MAAA,CAAA,kBAAA"}
1
+ {"version":3,"file":"UserIdentity.d.ts","sourceRoot":"","sources":["../src/UserIdentity.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,eAAO,MAAM,YAAY,GAAI,kBAAkB,SAAS,MAAM,CAAC,MAAM,CAAC,MAAM,EAC1E,oBAAoB,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAwBpC,CAAC"}
package/dist/index.d.ts CHANGED
@@ -1,17 +1,17 @@
1
- import { FunctionProvenance_d_exports } from "./FunctionProvenance.js";
2
- import { RuntimeAndFunctionType_d_exports } from "./RuntimeAndFunctionType.js";
3
- import { FunctionSpec_d_exports } from "./FunctionSpec.js";
4
- import { GenericId_d_exports } from "./GenericId.js";
5
- import { GroupSpec_d_exports } from "./GroupSpec.js";
6
- import { GroupPath_d_exports } from "./GroupPath.js";
7
- import { Identifier_d_exports } from "./Identifier.js";
8
- import { Lazy_d_exports } from "./Lazy.js";
9
- import { PaginationResult_d_exports } from "./PaginationResult.js";
10
- import { Ref_d_exports } from "./Ref.js";
11
- import { Spec_d_exports } from "./Spec.js";
12
- import { Refs_d_exports } from "./Refs.js";
13
- import { Registry_d_exports } from "./Registry.js";
14
- import { SystemFields_d_exports } from "./SystemFields.js";
15
- import { Types_d_exports } from "./Types.js";
16
- import { UserIdentity_d_exports } from "./UserIdentity.js";
17
- export { FunctionProvenance_d_exports as FunctionProvenance, FunctionSpec_d_exports as FunctionSpec, GenericId_d_exports as GenericId, GroupPath_d_exports as GroupPath, GroupSpec_d_exports as GroupSpec, Identifier_d_exports as Identifier, Lazy_d_exports as Lazy, PaginationResult_d_exports as PaginationResult, Ref_d_exports as Ref, Refs_d_exports as Refs, Registry_d_exports as Registry, RuntimeAndFunctionType_d_exports as RuntimeAndFunctionType, Spec_d_exports as Spec, SystemFields_d_exports as SystemFields, Types_d_exports as Types, UserIdentity_d_exports as UserIdentity };
1
+ export * as FunctionProvenance from "./FunctionProvenance";
2
+ export * as FunctionSpec from "./FunctionSpec";
3
+ export * as GenericId from "./GenericId";
4
+ export * as GroupPath from "./GroupPath";
5
+ export * as GroupSpec from "./GroupSpec";
6
+ export * as Identifier from "./Identifier";
7
+ export * as Lazy from "./Lazy";
8
+ export * as PaginationResult from "./PaginationResult";
9
+ export * as Ref from "./Ref";
10
+ export * as Refs from "./Refs";
11
+ export * as Registry from "./Registry";
12
+ export * as RuntimeAndFunctionType from "./RuntimeAndFunctionType";
13
+ export * as Spec from "./Spec";
14
+ export * as SystemFields from "./SystemFields";
15
+ export * as Types from "./Types";
16
+ export * as UserIdentity from "./UserIdentity";
17
+ //# sourceMappingURL=index.d.ts.map