@zyraxon-ai/schema 19.0.4

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 (257) hide show
  1. package/dist/agent.d.ts +88 -0
  2. package/dist/agent.d.ts.map +1 -0
  3. package/dist/agent.js +29 -0
  4. package/dist/agent.js.map +1 -0
  5. package/dist/catalog.d.ts +90 -0
  6. package/dist/catalog.d.ts.map +1 -0
  7. package/dist/catalog.js +5 -0
  8. package/dist/catalog.js.map +1 -0
  9. package/dist/command.d.ts +45 -0
  10. package/dist/command.d.ts.map +1 -0
  11. package/dist/command.js +13 -0
  12. package/dist/command.js.map +1 -0
  13. package/dist/connection.d.ts +29 -0
  14. package/dist/connection.d.ts.map +1 -0
  15. package/dist/connection.js +16 -0
  16. package/dist/connection.js.map +1 -0
  17. package/dist/credential.d.ts +37 -0
  18. package/dist/credential.d.ts.map +1 -0
  19. package/dist/credential.js +24 -0
  20. package/dist/credential.js.map +1 -0
  21. package/dist/durable-event-manifest.d.ts +10045 -0
  22. package/dist/durable-event-manifest.d.ts.map +1 -0
  23. package/dist/durable-event-manifest.js +13 -0
  24. package/dist/durable-event-manifest.js.map +1 -0
  25. package/dist/event-manifest.d.ts +14332 -0
  26. package/dist/event-manifest.d.ts.map +1 -0
  27. package/dist/event-manifest.js +41 -0
  28. package/dist/event-manifest.js.map +1 -0
  29. package/dist/event.d.ts +83 -0
  30. package/dist/event.d.ts.map +1 -0
  31. package/dist/event.js +74 -0
  32. package/dist/event.js.map +1 -0
  33. package/dist/file-diff.d.ts +12 -0
  34. package/dist/file-diff.d.ts.map +1 -0
  35. package/dist/file-diff.js +11 -0
  36. package/dist/file-diff.js.map +1 -0
  37. package/dist/filesystem-watcher.d.ts +103 -0
  38. package/dist/filesystem-watcher.d.ts.map +1 -0
  39. package/dist/filesystem-watcher.js +12 -0
  40. package/dist/filesystem-watcher.js.map +1 -0
  41. package/dist/filesystem.d.ts +135 -0
  42. package/dist/filesystem.d.ts.map +1 -0
  43. package/dist/filesystem.js +33 -0
  44. package/dist/filesystem.js.map +1 -0
  45. package/dist/ide-event.d.ts +97 -0
  46. package/dist/ide-event.d.ts.map +1 -0
  47. package/dist/ide-event.js +11 -0
  48. package/dist/ide-event.js.map +1 -0
  49. package/dist/identifier.d.ts +4 -0
  50. package/dist/identifier.d.ts.map +1 -0
  51. package/dist/identifier.js +25 -0
  52. package/dist/identifier.js.map +1 -0
  53. package/dist/index.d.ts +29 -0
  54. package/dist/index.d.ts.map +1 -0
  55. package/dist/index.js +29 -0
  56. package/dist/index.js.map +1 -0
  57. package/dist/installation-event.d.ts +190 -0
  58. package/dist/installation-event.d.ts.map +1 -0
  59. package/dist/installation-event.js +17 -0
  60. package/dist/installation-event.js.map +1 -0
  61. package/dist/integration-id.d.ts +6 -0
  62. package/dist/integration-id.d.ts.map +1 -0
  63. package/dist/integration-id.js +4 -0
  64. package/dist/integration-id.js.map +1 -0
  65. package/dist/integration.d.ts +573 -0
  66. package/dist/integration.d.ts.map +1 -0
  67. package/dist/integration.js +94 -0
  68. package/dist/integration.js.map +1 -0
  69. package/dist/legacy-event.d.ts +2 -0
  70. package/dist/legacy-event.d.ts.map +1 -0
  71. package/dist/legacy-event.js +2 -0
  72. package/dist/legacy-event.js.map +1 -0
  73. package/dist/llm.d.ts +29 -0
  74. package/dist/llm.d.ts.map +1 -0
  75. package/dist/llm.js +20 -0
  76. package/dist/llm.js.map +1 -0
  77. package/dist/location.d.ts +37 -0
  78. package/dist/location.d.ts.map +1 -0
  79. package/dist/location.js +22 -0
  80. package/dist/location.js.map +1 -0
  81. package/dist/lsp-event.d.ts +88 -0
  82. package/dist/lsp-event.d.ts.map +1 -0
  83. package/dist/lsp-event.js +5 -0
  84. package/dist/lsp-event.js.map +1 -0
  85. package/dist/mcp-event.d.ts +194 -0
  86. package/dist/mcp-event.d.ts.map +1 -0
  87. package/dist/mcp-event.js +18 -0
  88. package/dist/mcp-event.js.map +1 -0
  89. package/dist/model.d.ts +206 -0
  90. package/dist/model.d.ts.map +1 -0
  91. package/dist/model.js +87 -0
  92. package/dist/model.js.map +1 -0
  93. package/dist/models-dev.d.ts +90 -0
  94. package/dist/models-dev.d.ts.map +1 -0
  95. package/dist/models-dev.js +8 -0
  96. package/dist/models-dev.js.map +1 -0
  97. package/dist/permission-saved.d.ts +19 -0
  98. package/dist/permission-saved.d.ts.map +1 -0
  99. package/dist/permission-saved.js +13 -0
  100. package/dist/permission-saved.js.map +1 -0
  101. package/dist/permission-v1.d.ts +2 -0
  102. package/dist/permission-v1.d.ts.map +1 -0
  103. package/dist/permission-v1.js +2 -0
  104. package/dist/permission-v1.js.map +1 -0
  105. package/dist/permission.d.ts +347 -0
  106. package/dist/permission.d.ts.map +1 -0
  107. package/dist/permission.js +46 -0
  108. package/dist/permission.js.map +1 -0
  109. package/dist/plugin.d.ts +101 -0
  110. package/dist/plugin.d.ts.map +1 -0
  111. package/dist/plugin.js +10 -0
  112. package/dist/plugin.js.map +1 -0
  113. package/dist/project-copy.d.ts +30 -0
  114. package/dist/project-copy.d.ts.map +1 -0
  115. package/dist/project-copy.js +22 -0
  116. package/dist/project-copy.js.map +1 -0
  117. package/dist/project-directories.d.ts +106 -0
  118. package/dist/project-directories.d.ts.map +1 -0
  119. package/dist/project-directories.js +9 -0
  120. package/dist/project-directories.js.map +1 -0
  121. package/dist/project-id.d.ts +6 -0
  122. package/dist/project-id.d.ts.map +1 -0
  123. package/dist/project-id.js +4 -0
  124. package/dist/project-id.js.map +1 -0
  125. package/dist/project.d.ts +253 -0
  126. package/dist/project.d.ts.map +1 -0
  127. package/dist/project.js +33 -0
  128. package/dist/project.js.map +1 -0
  129. package/dist/prompt-input.d.ts +107 -0
  130. package/dist/prompt-input.d.ts.map +1 -0
  131. package/dist/prompt-input.js +20 -0
  132. package/dist/prompt-input.js.map +1 -0
  133. package/dist/prompt.d.ts +178 -0
  134. package/dist/prompt.d.ts.map +1 -0
  135. package/dist/prompt.js +44 -0
  136. package/dist/prompt.js.map +1 -0
  137. package/dist/provider.d.ts +112 -0
  138. package/dist/provider.d.ts.map +1 -0
  139. package/dist/provider.js +54 -0
  140. package/dist/provider.js.map +1 -0
  141. package/dist/pty-ticket.d.ts +9 -0
  142. package/dist/pty-ticket.d.ts.map +1 -0
  143. package/dist/pty-ticket.js +8 -0
  144. package/dist/pty-ticket.js.map +1 -0
  145. package/dist/pty.d.ts +543 -0
  146. package/dist/pty.d.ts.map +1 -0
  147. package/dist/pty.js +44 -0
  148. package/dist/pty.js.map +1 -0
  149. package/dist/question-v1.d.ts +2 -0
  150. package/dist/question-v1.d.ts.map +1 -0
  151. package/dist/question-v1.js +2 -0
  152. package/dist/question-v1.js.map +1 -0
  153. package/dist/question.d.ts +517 -0
  154. package/dist/question.d.ts.map +1 -0
  155. package/dist/question.js +65 -0
  156. package/dist/question.js.map +1 -0
  157. package/dist/reference.d.ts +141 -0
  158. package/dist/reference.d.ts.map +1 -0
  159. package/dist/reference.js +32 -0
  160. package/dist/reference.js.map +1 -0
  161. package/dist/revert.d.ts +35 -0
  162. package/dist/revert.d.ts.map +1 -0
  163. package/dist/revert.js +20 -0
  164. package/dist/revert.js.map +1 -0
  165. package/dist/schema.d.ts +11 -0
  166. package/dist/schema.d.ts.map +1 -0
  167. package/dist/schema.js +15 -0
  168. package/dist/schema.js.map +1 -0
  169. package/dist/server-event.d.ts +173 -0
  170. package/dist/server-event.d.ts.map +1 -0
  171. package/dist/server-event.js +6 -0
  172. package/dist/server-event.js.map +1 -0
  173. package/dist/session-compaction-event.d.ts +108 -0
  174. package/dist/session-compaction-event.d.ts.map +1 -0
  175. package/dist/session-compaction-event.js +11 -0
  176. package/dist/session-compaction-event.js.map +1 -0
  177. package/dist/session-delivery.d.ts +5 -0
  178. package/dist/session-delivery.d.ts.map +1 -0
  179. package/dist/session-delivery.js +4 -0
  180. package/dist/session-delivery.js.map +1 -0
  181. package/dist/session-event.d.ts +13248 -0
  182. package/dist/session-event.d.ts.map +1 -0
  183. package/dist/session-event.js +391 -0
  184. package/dist/session-event.js.map +1 -0
  185. package/dist/session-id.d.ts +7 -0
  186. package/dist/session-id.d.ts.map +1 -0
  187. package/dist/session-id.js +11 -0
  188. package/dist/session-id.js.map +1 -0
  189. package/dist/session-input.d.ts +146 -0
  190. package/dist/session-input.d.ts.map +1 -0
  191. package/dist/session-input.js +19 -0
  192. package/dist/session-input.js.map +1 -0
  193. package/dist/session-message.d.ts +1292 -0
  194. package/dist/session-message.d.ts.map +1 -0
  195. package/dist/session-message.js +164 -0
  196. package/dist/session-message.js.map +1 -0
  197. package/dist/session-status-event.d.ts +340 -0
  198. package/dist/session-status-event.d.ts.map +1 -0
  199. package/dist/session-status-event.js +44 -0
  200. package/dist/session-status-event.js.map +1 -0
  201. package/dist/session-todo.d.ts +138 -0
  202. package/dist/session-todo.d.ts.map +1 -0
  203. package/dist/session-todo.js +22 -0
  204. package/dist/session-todo.js.map +1 -0
  205. package/dist/session-v1.d.ts +2 -0
  206. package/dist/session-v1.d.ts.map +1 -0
  207. package/dist/session-v1.js +2 -0
  208. package/dist/session-v1.js.map +1 -0
  209. package/dist/session.d.ts +141 -0
  210. package/dist/session.d.ts.map +1 -0
  211. package/dist/session.js +44 -0
  212. package/dist/session.js.map +1 -0
  213. package/dist/skill.d.ts +56 -0
  214. package/dist/skill.d.ts.map +1 -0
  215. package/dist/skill.js +42 -0
  216. package/dist/skill.js.map +1 -0
  217. package/dist/tui-event.d.ts +388 -0
  218. package/dist/tui-event.d.ts.map +1 -0
  219. package/dist/tui-event.js +53 -0
  220. package/dist/tui-event.js.map +1 -0
  221. package/dist/v1/legacy-event.d.ts +129 -0
  222. package/dist/v1/legacy-event.d.ts.map +1 -0
  223. package/dist/v1/legacy-event.js +16 -0
  224. package/dist/v1/legacy-event.js.map +1 -0
  225. package/dist/v1/permission.d.ts +357 -0
  226. package/dist/v1/permission.d.ts.map +1 -0
  227. package/dist/v1/permission.js +42 -0
  228. package/dist/v1/permission.js.map +1 -0
  229. package/dist/v1/question.d.ts +505 -0
  230. package/dist/v1/question.d.ts.map +1 -0
  231. package/dist/v1/question.js +58 -0
  232. package/dist/v1/question.js.map +1 -0
  233. package/dist/v1/session.d.ts +7776 -0
  234. package/dist/v1/session.d.ts.map +1 -0
  235. package/dist/v1/session.js +536 -0
  236. package/dist/v1/session.js.map +1 -0
  237. package/dist/vcs-event.d.ts +97 -0
  238. package/dist/vcs-event.d.ts.map +1 -0
  239. package/dist/vcs-event.js +12 -0
  240. package/dist/vcs-event.js.map +1 -0
  241. package/dist/workspace-event.d.ts +308 -0
  242. package/dist/workspace-event.d.ts.map +1 -0
  243. package/dist/workspace-event.js +26 -0
  244. package/dist/workspace-event.js.map +1 -0
  245. package/dist/workspace-id.d.ts +7 -0
  246. package/dist/workspace-id.d.ts.map +1 -0
  247. package/dist/workspace-id.js +17 -0
  248. package/dist/workspace-id.js.map +1 -0
  249. package/dist/workspace.d.ts +10 -0
  250. package/dist/workspace.d.ts.map +1 -0
  251. package/dist/workspace.js +6 -0
  252. package/dist/workspace.js.map +1 -0
  253. package/dist/worktree-event.d.ts +194 -0
  254. package/dist/worktree-event.d.ts.map +1 -0
  255. package/dist/worktree-event.js +19 -0
  256. package/dist/worktree-event.js.map +1 -0
  257. package/package.json +44 -0
@@ -0,0 +1,88 @@
1
+ export * as Agent from "./agent";
2
+ import { Schema } from "effect";
3
+ export declare const ID: Schema.brand<Schema.String, "AgentV2.ID">;
4
+ export type ID = typeof ID.Type;
5
+ export declare const Color: Schema.Union<readonly [Schema.String, Schema.Literals<readonly ["primary", "secondary", "accent", "success", "warning", "error", "info"]>]>;
6
+ export type Color = typeof Color.Type;
7
+ export interface Info extends Schema.Schema.Type<typeof Info> {
8
+ }
9
+ export declare const Info: Schema.Struct<{
10
+ readonly id: Schema.brand<Schema.String, "AgentV2.ID">;
11
+ readonly model: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
12
+ readonly id: Schema.brand<Schema.String, "ModelV2.ID">;
13
+ readonly providerID: Schema.brand<Schema.String, "ProviderV2.ID"> & {
14
+ opencode: string & import("effect/Brand").Brand<"ProviderV2.ID">;
15
+ anthropic: string & import("effect/Brand").Brand<"ProviderV2.ID">;
16
+ openai: string & import("effect/Brand").Brand<"ProviderV2.ID">;
17
+ google: string & import("effect/Brand").Brand<"ProviderV2.ID">;
18
+ googleVertex: string & import("effect/Brand").Brand<"ProviderV2.ID">;
19
+ githubCopilot: string & import("effect/Brand").Brand<"ProviderV2.ID">;
20
+ amazonBedrock: string & import("effect/Brand").Brand<"ProviderV2.ID">;
21
+ azure: string & import("effect/Brand").Brand<"ProviderV2.ID">;
22
+ openrouter: string & import("effect/Brand").Brand<"ProviderV2.ID">;
23
+ mistral: string & import("effect/Brand").Brand<"ProviderV2.ID">;
24
+ gitlab: string & import("effect/Brand").Brand<"ProviderV2.ID">;
25
+ };
26
+ readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "VariantID">>, never, never>;
27
+ }>>>, Schema.optionalKey<Schema.Struct<{
28
+ readonly id: Schema.brand<Schema.String, "ModelV2.ID">;
29
+ readonly providerID: Schema.brand<Schema.String, "ProviderV2.ID"> & {
30
+ opencode: string & import("effect/Brand").Brand<"ProviderV2.ID">;
31
+ anthropic: string & import("effect/Brand").Brand<"ProviderV2.ID">;
32
+ openai: string & import("effect/Brand").Brand<"ProviderV2.ID">;
33
+ google: string & import("effect/Brand").Brand<"ProviderV2.ID">;
34
+ googleVertex: string & import("effect/Brand").Brand<"ProviderV2.ID">;
35
+ githubCopilot: string & import("effect/Brand").Brand<"ProviderV2.ID">;
36
+ amazonBedrock: string & import("effect/Brand").Brand<"ProviderV2.ID">;
37
+ azure: string & import("effect/Brand").Brand<"ProviderV2.ID">;
38
+ openrouter: string & import("effect/Brand").Brand<"ProviderV2.ID">;
39
+ mistral: string & import("effect/Brand").Brand<"ProviderV2.ID">;
40
+ gitlab: string & import("effect/Brand").Brand<"ProviderV2.ID">;
41
+ };
42
+ readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "VariantID">>, never, never>;
43
+ }>>, never, never>;
44
+ readonly request: Schema.Struct<{
45
+ readonly headers: Schema.$Record<Schema.String, Schema.String>;
46
+ readonly body: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
47
+ }>;
48
+ readonly system: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
49
+ readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
50
+ readonly mode: Schema.Literals<readonly ["subagent", "primary", "all"]>;
51
+ readonly hidden: Schema.Boolean;
52
+ readonly color: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.String, Schema.Literals<readonly ["primary", "secondary", "accent", "success", "warning", "error", "info"]>]>>>, Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Literals<readonly ["primary", "secondary", "accent", "success", "warning", "error", "info"]>]>>, never, never>;
53
+ readonly steps: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
54
+ readonly permissions: Schema.$Array<Schema.Struct<{
55
+ readonly action: Schema.String;
56
+ readonly resource: Schema.String;
57
+ readonly effect: Schema.Literals<readonly ["allow", "deny", "ask"]>;
58
+ }>>;
59
+ }> & {
60
+ empty: (id: ID) => {
61
+ readonly id: string & import("effect/Brand").Brand<"AgentV2.ID">;
62
+ readonly request: {
63
+ readonly headers: {
64
+ readonly [x: string]: string;
65
+ };
66
+ readonly body: {
67
+ readonly [x: string]: Schema.Json;
68
+ };
69
+ };
70
+ readonly mode: "primary" | "subagent" | "all";
71
+ readonly hidden: boolean;
72
+ readonly permissions: readonly {
73
+ readonly action: string;
74
+ readonly resource: string;
75
+ readonly effect: "allow" | "deny" | "ask";
76
+ }[];
77
+ readonly model?: {
78
+ readonly id: string & import("effect/Brand").Brand<"ModelV2.ID">;
79
+ readonly providerID: string & import("effect/Brand").Brand<"ProviderV2.ID">;
80
+ readonly variant?: string & import("effect/Brand").Brand<"VariantID">;
81
+ };
82
+ readonly system?: string;
83
+ readonly description?: string;
84
+ readonly color?: string;
85
+ readonly steps?: number;
86
+ };
87
+ };
88
+ //# sourceMappingURL=agent.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"agent.d.ts","sourceRoot":"","sources":["../src/agent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,SAAS,CAAA;AAEhC,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAO/B,eAAO,MAAM,EAAE,2CAAiD,CAAA;AAChE,MAAM,MAAM,EAAE,GAAG,OAAO,EAAE,CAAC,IAAI,CAAA;AAE/B,eAAO,MAAM,KAAK,6IAGwB,CAAA;AAC1C,MAAM,MAAM,KAAK,GAAG,OAAO,KAAK,CAAC,IAAI,CAAA;AAErC,MAAM,WAAW,IAAK,SAAQ,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,IAAI,CAAC;CAAG;AAChE,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gBAeC,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGjB,CAAA"}
package/dist/agent.js ADDED
@@ -0,0 +1,29 @@
1
+ export * as Agent from "./agent";
2
+ import { Schema } from "effect";
3
+ import { optional } from "./schema";
4
+ import { Model } from "./model";
5
+ import { Permission } from "./permission";
6
+ import { Provider } from "./provider";
7
+ import { PositiveInt, statics } from "./schema";
8
+ export const ID = Schema.String.pipe(Schema.brand("AgentV2.ID"));
9
+ export const Color = Schema.Union([
10
+ Schema.String.check(Schema.isPattern(/^#[0-9a-fA-F]{6}$/)),
11
+ Schema.Literals(["primary", "secondary", "accent", "success", "warning", "error", "info"]),
12
+ ]).annotate({ identifier: "Agent.Color" });
13
+ export const Info = Schema.Struct({
14
+ id: ID,
15
+ model: Model.Ref.pipe(optional),
16
+ request: Provider.Request,
17
+ system: Schema.String.pipe(optional),
18
+ description: Schema.String.pipe(optional),
19
+ mode: Schema.Literals(["subagent", "primary", "all"]),
20
+ hidden: Schema.Boolean,
21
+ color: Color.pipe(optional),
22
+ steps: PositiveInt.pipe(optional),
23
+ permissions: Permission.Ruleset,
24
+ })
25
+ .annotate({ identifier: "AgentV2.Info" })
26
+ .pipe(statics((schema) => ({
27
+ empty: (id) => schema.make({ id, request: { headers: {}, body: {} }, mode: "all", hidden: false, permissions: [] }),
28
+ })));
29
+ //# sourceMappingURL=agent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"agent.js","sourceRoot":"","sources":["../src/agent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,SAAS,CAAA;AAEhC,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAC/B,OAAO,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAA;AACnC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AAC/B,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AACzC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AACrC,OAAO,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,UAAU,CAAA;AAE/C,MAAM,CAAC,MAAM,EAAE,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC,CAAA;AAGhE,MAAM,CAAC,MAAM,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC;IAChC,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,SAAS,CAAC,mBAAmB,CAAC,CAAC;IAC1D,MAAM,CAAC,QAAQ,CAAC,CAAC,SAAS,EAAE,WAAW,EAAE,QAAQ,EAAE,SAAS,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;CAC3F,CAAC,CAAC,QAAQ,CAAC,EAAE,UAAU,EAAE,aAAa,EAAE,CAAC,CAAA;AAI1C,MAAM,CAAC,MAAM,IAAI,GAAG,MAAM,CAAC,MAAM,CAAC;IAChC,EAAE,EAAE,EAAE;IACN,KAAK,EAAE,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC;IAC/B,OAAO,EAAE,QAAQ,CAAC,OAAO;IACzB,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC;IACpC,WAAW,EAAE,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC;IACzC,IAAI,EAAE,MAAM,CAAC,QAAQ,CAAC,CAAC,UAAU,EAAE,SAAS,EAAE,KAAK,CAAC,CAAC;IACrD,MAAM,EAAE,MAAM,CAAC,OAAO;IACtB,KAAK,EAAE,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC;IAC3B,KAAK,EAAE,WAAW,CAAC,IAAI,CAAC,QAAQ,CAAC;IACjC,WAAW,EAAE,UAAU,CAAC,OAAO;CAChC,CAAC;KACC,QAAQ,CAAC,EAAE,UAAU,EAAE,cAAc,EAAE,CAAC;KACxC,IAAI,CACH,OAAO,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;IACnB,KAAK,EAAE,CAAC,EAAM,EAAE,EAAE,CAChB,MAAM,CAAC,IAAI,CAAC,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,WAAW,EAAE,EAAE,EAAE,CAAC;CACvG,CAAC,CAAC,CACJ,CAAA"}
@@ -0,0 +1,90 @@
1
+ export * as Catalog from "./catalog";
2
+ export declare const Event: {
3
+ Updated: import("effect/Schema").Struct<{
4
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "Event.ID"> & {
5
+ create: () => string & import("effect/Brand").Brand<"Event.ID">;
6
+ };
7
+ readonly metadata: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>>, import("effect/Schema").optionalKey<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>, never, never>;
8
+ readonly type: import("effect/Schema").Literal<"catalog.updated">;
9
+ readonly durable: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").Struct<{
10
+ readonly aggregateID: import("effect/Schema").String;
11
+ readonly seq: import("effect/Schema").Int;
12
+ readonly version: import("effect/Schema").Int;
13
+ }>>>, import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
14
+ readonly aggregateID: import("effect/Schema").String;
15
+ readonly seq: import("effect/Schema").Int;
16
+ readonly version: import("effect/Schema").Int;
17
+ }>>, never, never>;
18
+ readonly location: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").Struct<{
19
+ readonly directory: import("effect/Schema").brand<import("effect/Schema").String, "AbsolutePath">;
20
+ readonly workspaceID: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").brand<import("effect/Schema").String, "WorkspaceV2.ID"> & {
21
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
22
+ create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
23
+ }>>, import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").String, "WorkspaceV2.ID"> & {
24
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
25
+ create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
26
+ }>, never, never>;
27
+ }>>>, import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
28
+ readonly directory: import("effect/Schema").brand<import("effect/Schema").String, "AbsolutePath">;
29
+ readonly workspaceID: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").brand<import("effect/Schema").String, "WorkspaceV2.ID"> & {
30
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
31
+ create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
32
+ }>>, import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").String, "WorkspaceV2.ID"> & {
33
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
34
+ create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
35
+ }>, never, never>;
36
+ }>>, never, never>;
37
+ readonly data: import("effect/Schema").Struct<{}>;
38
+ }> & {
39
+ data: import("effect/Schema").Struct<{}>;
40
+ durable?: {
41
+ readonly version: number;
42
+ readonly aggregate: string;
43
+ };
44
+ type: "catalog.updated";
45
+ };
46
+ Definitions: readonly [import("effect/Schema").Struct<{
47
+ readonly id: import("effect/Schema").brand<import("effect/Schema").String, "Event.ID"> & {
48
+ create: () => string & import("effect/Brand").Brand<"Event.ID">;
49
+ };
50
+ readonly metadata: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>>, import("effect/Schema").optionalKey<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>, never, never>;
51
+ readonly type: import("effect/Schema").Literal<"catalog.updated">;
52
+ readonly durable: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").Struct<{
53
+ readonly aggregateID: import("effect/Schema").String;
54
+ readonly seq: import("effect/Schema").Int;
55
+ readonly version: import("effect/Schema").Int;
56
+ }>>>, import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
57
+ readonly aggregateID: import("effect/Schema").String;
58
+ readonly seq: import("effect/Schema").Int;
59
+ readonly version: import("effect/Schema").Int;
60
+ }>>, never, never>;
61
+ readonly location: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").Struct<{
62
+ readonly directory: import("effect/Schema").brand<import("effect/Schema").String, "AbsolutePath">;
63
+ readonly workspaceID: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").brand<import("effect/Schema").String, "WorkspaceV2.ID"> & {
64
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
65
+ create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
66
+ }>>, import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").String, "WorkspaceV2.ID"> & {
67
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
68
+ create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
69
+ }>, never, never>;
70
+ }>>>, import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
71
+ readonly directory: import("effect/Schema").brand<import("effect/Schema").String, "AbsolutePath">;
72
+ readonly workspaceID: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").brand<import("effect/Schema").String, "WorkspaceV2.ID"> & {
73
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
74
+ create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
75
+ }>>, import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").String, "WorkspaceV2.ID"> & {
76
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
77
+ create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
78
+ }>, never, never>;
79
+ }>>, never, never>;
80
+ readonly data: import("effect/Schema").Struct<{}>;
81
+ }> & {
82
+ data: import("effect/Schema").Struct<{}>;
83
+ durable?: {
84
+ readonly version: number;
85
+ readonly aggregate: string;
86
+ };
87
+ type: "catalog.updated";
88
+ }];
89
+ };
90
+ //# sourceMappingURL=catalog.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"catalog.d.ts","sourceRoot":"","sources":["../src/catalog.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,OAAO,MAAM,WAAW,CAAA;AAKpC,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAA+C,CAAA"}
@@ -0,0 +1,5 @@
1
+ export * as Catalog from "./catalog";
2
+ import { define, inventory } from "./event";
3
+ const Updated = define({ type: "catalog.updated", schema: {} });
4
+ export const Event = { Updated, Definitions: inventory(Updated) };
5
+ //# sourceMappingURL=catalog.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"catalog.js","sourceRoot":"","sources":["../src/catalog.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,OAAO,MAAM,WAAW,CAAA;AAEpC,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AAE3C,MAAM,OAAO,GAAG,MAAM,CAAC,EAAE,IAAI,EAAE,iBAAiB,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC,CAAA;AAC/D,MAAM,CAAC,MAAM,KAAK,GAAG,EAAE,OAAO,EAAE,WAAW,EAAE,SAAS,CAAC,OAAO,CAAC,EAAE,CAAA"}
@@ -0,0 +1,45 @@
1
+ export * as Command from "./command";
2
+ import { Schema } from "effect";
3
+ export interface Info extends Schema.Schema.Type<typeof Info> {
4
+ }
5
+ export declare const Info: Schema.Struct<{
6
+ readonly name: Schema.String;
7
+ readonly template: Schema.String;
8
+ readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
9
+ readonly agent: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
10
+ readonly model: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
11
+ readonly id: Schema.brand<Schema.String, "ModelV2.ID">;
12
+ readonly providerID: Schema.brand<Schema.String, "ProviderV2.ID"> & {
13
+ opencode: string & import("effect/Brand").Brand<"ProviderV2.ID">;
14
+ anthropic: string & import("effect/Brand").Brand<"ProviderV2.ID">;
15
+ openai: string & import("effect/Brand").Brand<"ProviderV2.ID">;
16
+ google: string & import("effect/Brand").Brand<"ProviderV2.ID">;
17
+ googleVertex: string & import("effect/Brand").Brand<"ProviderV2.ID">;
18
+ githubCopilot: string & import("effect/Brand").Brand<"ProviderV2.ID">;
19
+ amazonBedrock: string & import("effect/Brand").Brand<"ProviderV2.ID">;
20
+ azure: string & import("effect/Brand").Brand<"ProviderV2.ID">;
21
+ openrouter: string & import("effect/Brand").Brand<"ProviderV2.ID">;
22
+ mistral: string & import("effect/Brand").Brand<"ProviderV2.ID">;
23
+ gitlab: string & import("effect/Brand").Brand<"ProviderV2.ID">;
24
+ };
25
+ readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "VariantID">>, never, never>;
26
+ }>>>, Schema.optionalKey<Schema.Struct<{
27
+ readonly id: Schema.brand<Schema.String, "ModelV2.ID">;
28
+ readonly providerID: Schema.brand<Schema.String, "ProviderV2.ID"> & {
29
+ opencode: string & import("effect/Brand").Brand<"ProviderV2.ID">;
30
+ anthropic: string & import("effect/Brand").Brand<"ProviderV2.ID">;
31
+ openai: string & import("effect/Brand").Brand<"ProviderV2.ID">;
32
+ google: string & import("effect/Brand").Brand<"ProviderV2.ID">;
33
+ googleVertex: string & import("effect/Brand").Brand<"ProviderV2.ID">;
34
+ githubCopilot: string & import("effect/Brand").Brand<"ProviderV2.ID">;
35
+ amazonBedrock: string & import("effect/Brand").Brand<"ProviderV2.ID">;
36
+ azure: string & import("effect/Brand").Brand<"ProviderV2.ID">;
37
+ openrouter: string & import("effect/Brand").Brand<"ProviderV2.ID">;
38
+ mistral: string & import("effect/Brand").Brand<"ProviderV2.ID">;
39
+ gitlab: string & import("effect/Brand").Brand<"ProviderV2.ID">;
40
+ };
41
+ readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "VariantID">>, never, never>;
42
+ }>>, never, never>;
43
+ readonly subtask: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
44
+ }>;
45
+ //# sourceMappingURL=command.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"command.d.ts","sourceRoot":"","sources":["../src/command.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,OAAO,MAAM,WAAW,CAAA;AAEpC,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAI/B,MAAM,WAAW,IAAK,SAAQ,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,IAAI,CAAC;CAAG;AAChE,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAO4B,CAAA"}
@@ -0,0 +1,13 @@
1
+ export * as Command from "./command";
2
+ import { Schema } from "effect";
3
+ import { optional } from "./schema";
4
+ import { Model } from "./model";
5
+ export const Info = Schema.Struct({
6
+ name: Schema.String,
7
+ template: Schema.String,
8
+ description: Schema.String.pipe(optional),
9
+ agent: Schema.String.pipe(optional),
10
+ model: Model.Ref.pipe(optional),
11
+ subtask: Schema.Boolean.pipe(optional),
12
+ }).annotate({ identifier: "CommandV2.Info" });
13
+ //# sourceMappingURL=command.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"command.js","sourceRoot":"","sources":["../src/command.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,OAAO,MAAM,WAAW,CAAA;AAEpC,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAC/B,OAAO,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAA;AACnC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AAG/B,MAAM,CAAC,MAAM,IAAI,GAAG,MAAM,CAAC,MAAM,CAAC;IAChC,IAAI,EAAE,MAAM,CAAC,MAAM;IACnB,QAAQ,EAAE,MAAM,CAAC,MAAM;IACvB,WAAW,EAAE,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC;IACzC,KAAK,EAAE,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC;IACnC,KAAK,EAAE,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC;IAC/B,OAAO,EAAE,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC;CACvC,CAAC,CAAC,QAAQ,CAAC,EAAE,UAAU,EAAE,gBAAgB,EAAE,CAAC,CAAA"}
@@ -0,0 +1,29 @@
1
+ export * as Connection from "./connection";
2
+ import { Schema } from "effect";
3
+ export interface CredentialInfo extends Schema.Schema.Type<typeof CredentialInfo> {
4
+ }
5
+ export declare const CredentialInfo: Schema.Struct<{
6
+ readonly type: Schema.Literal<"credential">;
7
+ readonly id: Schema.brand<Schema.String, "Credential.ID"> & {
8
+ create: () => string & import("effect/Brand").Brand<"Credential.ID">;
9
+ };
10
+ readonly label: Schema.String;
11
+ }>;
12
+ export interface EnvInfo extends Schema.Schema.Type<typeof EnvInfo> {
13
+ }
14
+ export declare const EnvInfo: Schema.Struct<{
15
+ readonly type: Schema.Literal<"env">;
16
+ readonly name: Schema.String;
17
+ }>;
18
+ export declare const Info: Schema.Union<readonly [Schema.Struct<{
19
+ readonly type: Schema.Literal<"credential">;
20
+ readonly id: Schema.brand<Schema.String, "Credential.ID"> & {
21
+ create: () => string & import("effect/Brand").Brand<"Credential.ID">;
22
+ };
23
+ readonly label: Schema.String;
24
+ }>, Schema.Struct<{
25
+ readonly type: Schema.Literal<"env">;
26
+ readonly name: Schema.String;
27
+ }>]>;
28
+ export type Info = typeof Info.Type;
29
+ //# sourceMappingURL=connection.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"connection.d.ts","sourceRoot":"","sources":["../src/connection.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,UAAU,MAAM,cAAc,CAAA;AAE1C,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAG/B,MAAM,WAAW,cAAe,SAAQ,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,cAAc,CAAC;CAAG;AACpF,eAAO,MAAM,cAAc;;;;;;EAI6B,CAAA;AAExD,MAAM,WAAW,OAAQ,SAAQ,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,OAAO,CAAC;CAAG;AACtE,eAAO,MAAM,OAAO;;;EAG6B,CAAA;AAEjD,eAAO,MAAM,IAAI;;;;;;;;;IAE6B,CAAA;AAC9C,MAAM,MAAM,IAAI,GAAG,OAAO,IAAI,CAAC,IAAI,CAAA"}
@@ -0,0 +1,16 @@
1
+ export * as Connection from "./connection";
2
+ import { Schema } from "effect";
3
+ import { Credential } from "./credential";
4
+ export const CredentialInfo = Schema.Struct({
5
+ type: Schema.Literal("credential"),
6
+ id: Credential.ID,
7
+ label: Schema.String,
8
+ }).annotate({ identifier: "Connection.CredentialInfo" });
9
+ export const EnvInfo = Schema.Struct({
10
+ type: Schema.Literal("env"),
11
+ name: Schema.String,
12
+ }).annotate({ identifier: "Connection.EnvInfo" });
13
+ export const Info = Schema.Union([CredentialInfo, EnvInfo])
14
+ .pipe(Schema.toTaggedUnion("type"))
15
+ .annotate({ identifier: "Connection.Info" });
16
+ //# sourceMappingURL=connection.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"connection.js","sourceRoot":"","sources":["../src/connection.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,UAAU,MAAM,cAAc,CAAA;AAE1C,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAC/B,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AAGzC,MAAM,CAAC,MAAM,cAAc,GAAG,MAAM,CAAC,MAAM,CAAC;IAC1C,IAAI,EAAE,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC;IAClC,EAAE,EAAE,UAAU,CAAC,EAAE;IACjB,KAAK,EAAE,MAAM,CAAC,MAAM;CACrB,CAAC,CAAC,QAAQ,CAAC,EAAE,UAAU,EAAE,2BAA2B,EAAE,CAAC,CAAA;AAGxD,MAAM,CAAC,MAAM,OAAO,GAAG,MAAM,CAAC,MAAM,CAAC;IACnC,IAAI,EAAE,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC;IAC3B,IAAI,EAAE,MAAM,CAAC,MAAM;CACpB,CAAC,CAAC,QAAQ,CAAC,EAAE,UAAU,EAAE,oBAAoB,EAAE,CAAC,CAAA;AAEjD,MAAM,CAAC,MAAM,IAAI,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC,cAAc,EAAE,OAAO,CAAC,CAAC;KACxD,IAAI,CAAC,MAAM,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC;KAClC,QAAQ,CAAC,EAAE,UAAU,EAAE,iBAAiB,EAAE,CAAC,CAAA"}
@@ -0,0 +1,37 @@
1
+ export * as Credential from "./credential";
2
+ import { Schema } from "effect";
3
+ export declare const ID: Schema.brand<Schema.String, "Credential.ID"> & {
4
+ create: () => string & import("effect/Brand").Brand<"Credential.ID">;
5
+ };
6
+ export type ID = typeof ID.Type;
7
+ export interface OAuth extends Schema.Schema.Type<typeof OAuth> {
8
+ }
9
+ export declare const OAuth: Schema.Struct<{
10
+ readonly type: Schema.Literal<"oauth">;
11
+ readonly methodID: Schema.brand<Schema.String, "Integration.MethodID">;
12
+ readonly refresh: Schema.String;
13
+ readonly access: Schema.String;
14
+ readonly expires: Schema.Int;
15
+ readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
16
+ }>;
17
+ export interface Key extends Schema.Schema.Type<typeof Key> {
18
+ }
19
+ export declare const Key: Schema.Struct<{
20
+ readonly type: Schema.Literal<"key">;
21
+ readonly key: Schema.String;
22
+ readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
23
+ }>;
24
+ export declare const Value: Schema.Union<readonly [Schema.Struct<{
25
+ readonly type: Schema.Literal<"oauth">;
26
+ readonly methodID: Schema.brand<Schema.String, "Integration.MethodID">;
27
+ readonly refresh: Schema.String;
28
+ readonly access: Schema.String;
29
+ readonly expires: Schema.Int;
30
+ readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
31
+ }>, Schema.Struct<{
32
+ readonly type: Schema.Literal<"key">;
33
+ readonly key: Schema.String;
34
+ readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
35
+ }>]>;
36
+ export type Value = Schema.Schema.Type<typeof Value>;
37
+ //# sourceMappingURL=credential.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"credential.d.ts","sourceRoot":"","sources":["../src/credential.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,UAAU,MAAM,cAAc,CAAA;AAE1C,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAM/B,eAAO,MAAM,EAAE;;CAGd,CAAA;AACD,MAAM,MAAM,EAAE,GAAG,OAAO,EAAE,CAAC,IAAI,CAAA;AAE/B,MAAM,WAAW,KAAM,SAAQ,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,KAAK,CAAC;CAAG;AAClE,eAAO,MAAM,KAAK;;;;;;;EAO6B,CAAA;AAE/C,MAAM,WAAW,GAAI,SAAQ,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,GAAG,CAAC;CAAG;AAC9D,eAAO,MAAM,GAAG;;;;EAI6B,CAAA;AAE7C,eAAO,MAAM,KAAK;;;;;;;;;;;IAE6B,CAAA;AAC/C,MAAM,MAAM,KAAK,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,KAAK,CAAC,CAAA"}
@@ -0,0 +1,24 @@
1
+ export * as Credential from "./credential";
2
+ import { Schema } from "effect";
3
+ import { optional } from "./schema";
4
+ import { IntegrationMethodID } from "./integration-id";
5
+ import { ascending } from "./identifier";
6
+ import { NonNegativeInt, statics } from "./schema";
7
+ export const ID = Schema.String.pipe(Schema.brand("Credential.ID"), statics((schema) => ({ create: () => schema.make("cred_" + ascending()) })));
8
+ export const OAuth = Schema.Struct({
9
+ type: Schema.Literal("oauth"),
10
+ methodID: IntegrationMethodID,
11
+ refresh: Schema.String,
12
+ access: Schema.String,
13
+ expires: NonNegativeInt,
14
+ metadata: optional(Schema.Record(Schema.String, Schema.Unknown)),
15
+ }).annotate({ identifier: "Credential.OAuth" });
16
+ export const Key = Schema.Struct({
17
+ type: Schema.Literal("key"),
18
+ key: Schema.String,
19
+ metadata: optional(Schema.Record(Schema.String, Schema.Unknown)),
20
+ }).annotate({ identifier: "Credential.Key" });
21
+ export const Value = Schema.Union([OAuth, Key])
22
+ .pipe(Schema.toTaggedUnion("type"))
23
+ .annotate({ identifier: "Credential.Value" });
24
+ //# sourceMappingURL=credential.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"credential.js","sourceRoot":"","sources":["../src/credential.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,UAAU,MAAM,cAAc,CAAA;AAE1C,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAC/B,OAAO,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAA;AACnC,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAA;AACtD,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AACxC,OAAO,EAAE,cAAc,EAAE,OAAO,EAAE,MAAM,UAAU,CAAA;AAElD,MAAM,CAAC,MAAM,EAAE,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAClC,MAAM,CAAC,KAAK,CAAC,eAAe,CAAC,EAC7B,OAAO,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,GAAG,SAAS,EAAE,CAAC,EAAE,CAAC,CAAC,CAC5E,CAAA;AAID,MAAM,CAAC,MAAM,KAAK,GAAG,MAAM,CAAC,MAAM,CAAC;IACjC,IAAI,EAAE,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC;IAC7B,QAAQ,EAAE,mBAAmB;IAC7B,OAAO,EAAE,MAAM,CAAC,MAAM;IACtB,MAAM,EAAE,MAAM,CAAC,MAAM;IACrB,OAAO,EAAE,cAAc;IACvB,QAAQ,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,OAAO,CAAC,CAAC;CACjE,CAAC,CAAC,QAAQ,CAAC,EAAE,UAAU,EAAE,kBAAkB,EAAE,CAAC,CAAA;AAG/C,MAAM,CAAC,MAAM,GAAG,GAAG,MAAM,CAAC,MAAM,CAAC;IAC/B,IAAI,EAAE,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC;IAC3B,GAAG,EAAE,MAAM,CAAC,MAAM;IAClB,QAAQ,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,OAAO,CAAC,CAAC;CACjE,CAAC,CAAC,QAAQ,CAAC,EAAE,UAAU,EAAE,gBAAgB,EAAE,CAAC,CAAA;AAE7C,MAAM,CAAC,MAAM,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC;KAC5C,IAAI,CAAC,MAAM,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC;KAClC,QAAQ,CAAC,EAAE,UAAU,EAAE,kBAAkB,EAAE,CAAC,CAAA"}