@graphoria/server 0.2.2 → 0.2.3
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/src/config/types/ai.d.ts +0 -6
- package/dist/src/config/types/ai.d.ts.map +1 -1
- package/dist/src/config/types/auth.d.ts +0 -29
- package/dist/src/config/types/auth.d.ts.map +1 -1
- package/dist/src/config/types/cron.d.ts +0 -94
- package/dist/src/config/types/cron.d.ts.map +1 -1
- package/dist/src/config/types/db.d.ts +0 -87
- package/dist/src/config/types/db.d.ts.map +1 -1
- package/dist/src/config/types/queue.d.ts +0 -47
- package/dist/src/config/types/queue.d.ts.map +1 -1
- package/dist/src/config/types/remote-rest.d.ts +0 -9
- package/dist/src/config/types/remote-rest.d.ts.map +1 -1
- package/dist/src/config/types/remote-schema.d.ts +0 -10
- package/dist/src/config/types/remote-schema.d.ts.map +1 -1
- package/dist/src/cron/index.d.ts +1 -1
- package/dist/src/cron/index.d.ts.map +1 -1
- package/dist/src/cron/index.test.d.ts +2 -0
- package/dist/src/cron/index.test.d.ts.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +13 -13
- package/playgrounds/console/index.html +7 -7
- package/playgrounds/graphiql/index.html +535 -536
- package/playgrounds/scalar/index.html +1 -1
- package/src/cron/index.ts +6 -2
- package/src/ai/README.md +0 -257
|
@@ -4,7 +4,6 @@ import { z } from "zod";
|
|
|
4
4
|
* When enabled, exposes a `/mcp` endpoint for LLM agents.
|
|
5
5
|
*/
|
|
6
6
|
export declare const MCPZod: z.ZodObject<{
|
|
7
|
-
/** Whether the MCP server is enabled. Off by default. */
|
|
8
7
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
9
8
|
}, z.core.$strict>;
|
|
10
9
|
/** Authoring type for MCP configuration */
|
|
@@ -18,15 +17,10 @@ export type MCPConfig = z.input<typeof MCPZod>;
|
|
|
18
17
|
* `DEEPSEEK_API_KEY`, `OLLAMA_HOST`), not from this config.
|
|
19
18
|
*/
|
|
20
19
|
export declare const AIZod: z.ZodObject<{
|
|
21
|
-
/** Whether the AI agent is enabled. Off by default. */
|
|
22
20
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
23
|
-
/** Overrides the built-in system prompt sent to the LLM. */
|
|
24
21
|
systemPrompt: z.ZodOptional<z.ZodString>;
|
|
25
|
-
/** REST endpoint path for the agent (default: "/ai"). */
|
|
26
22
|
endpoint: z.ZodDefault<z.ZodString>;
|
|
27
|
-
/** Model Context Protocol (MCP) server. Off by default. See MCP.md. */
|
|
28
23
|
mcp: z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
|
29
|
-
/** Whether the MCP server is enabled. Off by default. */
|
|
30
24
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
31
25
|
}, z.core.$strict>>>;
|
|
32
26
|
}, z.core.$strict>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ai.d.ts","sourceRoot":"","sources":["../../../../src/config/types/ai.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;GAGG;AACH,eAAO,MAAM,MAAM
|
|
1
|
+
{"version":3,"file":"ai.d.ts","sourceRoot":"","sources":["../../../../src/config/types/ai.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;GAGG;AACH,eAAO,MAAM,MAAM;;kBAGjB,CAAC;AAEH,2CAA2C;AAC3C,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,MAAM,CAAC,CAAC;AAE/C;;;;;;;GAOG;AACH,eAAO,MAAM,KAAK;;;;;;;kBAShB,CAAC;AAEH,0CAA0C;AAC1C,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,KAAK,CAAC,CAAC"}
|
|
@@ -53,11 +53,8 @@ export type FilterCondition = z.input<typeof FilterConditionZod>;
|
|
|
53
53
|
* Table-level permission configuration
|
|
54
54
|
*/
|
|
55
55
|
export declare const TablePermissionZod: z.ZodObject<{
|
|
56
|
-
/** Allowed columns — "ALL" or array of column names */
|
|
57
56
|
columns: z.ZodUnion<readonly [z.ZodLiteral<"ALL">, z.ZodArray<z.ZodString>]>;
|
|
58
|
-
/** Role-based query filtering (WHERE clause) */
|
|
59
57
|
filter: z.ZodOptional<z.ZodType<Record<string, unknown>, unknown, z.core.$ZodTypeInternals<Record<string, unknown>, unknown>>>;
|
|
60
|
-
/** Role-based default ordering (ORDER BY clause) */
|
|
61
58
|
orderBy: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
62
59
|
column: z.ZodString;
|
|
63
60
|
direction: z.ZodEnum<{
|
|
@@ -75,13 +72,9 @@ export type TablePermission = z.input<typeof TablePermissionZod>;
|
|
|
75
72
|
* Permission configuration for a role
|
|
76
73
|
*/
|
|
77
74
|
export declare const RolePermissionZod: z.ZodDefault<z.ZodObject<{
|
|
78
|
-
/** Tables accessible by this role */
|
|
79
75
|
tables: z.ZodDefault<z.ZodOptional<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodLiteral<"ALL">, z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodLiteral<"ALL">, z.ZodObject<{
|
|
80
|
-
/** Allowed columns — "ALL" or array of column names */
|
|
81
76
|
columns: z.ZodUnion<readonly [z.ZodLiteral<"ALL">, z.ZodArray<z.ZodString>]>;
|
|
82
|
-
/** Role-based query filtering (WHERE clause) */
|
|
83
77
|
filter: z.ZodOptional<z.ZodType<Record<string, unknown>, unknown, z.core.$ZodTypeInternals<Record<string, unknown>, unknown>>>;
|
|
84
|
-
/** Role-based default ordering (ORDER BY clause) */
|
|
85
78
|
orderBy: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
86
79
|
column: z.ZodString;
|
|
87
80
|
direction: z.ZodEnum<{
|
|
@@ -94,15 +87,10 @@ export declare const RolePermissionZod: z.ZodDefault<z.ZodObject<{
|
|
|
94
87
|
}>;
|
|
95
88
|
}, z.core.$strict>>>;
|
|
96
89
|
}, z.core.$strict>]>>]>>>;
|
|
97
|
-
/** Stored procedures accessible by this role */
|
|
98
90
|
storedProcedures: z.ZodDefault<z.ZodOptional<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodLiteral<"ALL">]>>>;
|
|
99
|
-
/** Queues accessible by this role */
|
|
100
91
|
queues: z.ZodDefault<z.ZodOptional<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodLiteral<"ALL">]>>>;
|
|
101
|
-
/** Operations accessible by this role */
|
|
102
92
|
operations: z.ZodDefault<z.ZodOptional<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodLiteral<"ALL">]>>>;
|
|
103
|
-
/** Remote schemas accessible by this role */
|
|
104
93
|
remoteSchemas: z.ZodDefault<z.ZodOptional<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodLiteral<"ALL">]>>>;
|
|
105
|
-
/** Remote REST APIs accessible by this role */
|
|
106
94
|
remoteREST: z.ZodDefault<z.ZodOptional<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodLiteral<"ALL">]>>>;
|
|
107
95
|
}, z.core.$strict>>;
|
|
108
96
|
export type RolePermission = z.input<typeof RolePermissionZod>;
|
|
@@ -110,26 +98,14 @@ export type RolePermission = z.input<typeof RolePermissionZod>;
|
|
|
110
98
|
* Authentication configuration
|
|
111
99
|
*/
|
|
112
100
|
export declare const AuthConfigZod: z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
|
113
|
-
/** Whether authentication is enabled */
|
|
114
101
|
enabled: z.ZodBoolean;
|
|
115
|
-
/** Database name where auth tables are stored */
|
|
116
102
|
database: z.ZodString;
|
|
117
|
-
/** Schema name for auth tables (default: "auth") */
|
|
118
103
|
schema: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
119
|
-
/**
|
|
120
|
-
* Whether Graphoria should run CREATE SCHEMA / TABLE IF NOT EXISTS for the
|
|
121
|
-
* auth user table on every boot. Default: false.
|
|
122
|
-
*/
|
|
123
104
|
autoCreateTables: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
124
|
-
/** Permissions per role */
|
|
125
105
|
permissions: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDefault<z.ZodObject<{
|
|
126
|
-
/** Tables accessible by this role */
|
|
127
106
|
tables: z.ZodDefault<z.ZodOptional<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodLiteral<"ALL">, z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodLiteral<"ALL">, z.ZodObject<{
|
|
128
|
-
/** Allowed columns — "ALL" or array of column names */
|
|
129
107
|
columns: z.ZodUnion<readonly [z.ZodLiteral<"ALL">, z.ZodArray<z.ZodString>]>;
|
|
130
|
-
/** Role-based query filtering (WHERE clause) */
|
|
131
108
|
filter: z.ZodOptional<z.ZodType<Record<string, unknown>, unknown, z.core.$ZodTypeInternals<Record<string, unknown>, unknown>>>;
|
|
132
|
-
/** Role-based default ordering (ORDER BY clause) */
|
|
133
109
|
orderBy: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
134
110
|
column: z.ZodString;
|
|
135
111
|
direction: z.ZodEnum<{
|
|
@@ -142,15 +118,10 @@ export declare const AuthConfigZod: z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
|
|
142
118
|
}>;
|
|
143
119
|
}, z.core.$strict>>>;
|
|
144
120
|
}, z.core.$strict>]>>]>>>;
|
|
145
|
-
/** Stored procedures accessible by this role */
|
|
146
121
|
storedProcedures: z.ZodDefault<z.ZodOptional<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodLiteral<"ALL">]>>>;
|
|
147
|
-
/** Queues accessible by this role */
|
|
148
122
|
queues: z.ZodDefault<z.ZodOptional<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodLiteral<"ALL">]>>>;
|
|
149
|
-
/** Operations accessible by this role */
|
|
150
123
|
operations: z.ZodDefault<z.ZodOptional<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodLiteral<"ALL">]>>>;
|
|
151
|
-
/** Remote schemas accessible by this role */
|
|
152
124
|
remoteSchemas: z.ZodDefault<z.ZodOptional<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodLiteral<"ALL">]>>>;
|
|
153
|
-
/** Remote REST APIs accessible by this role */
|
|
154
125
|
remoteREST: z.ZodDefault<z.ZodOptional<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodLiteral<"ALL">]>>>;
|
|
155
126
|
}, z.core.$strict>>>>>;
|
|
156
127
|
}, z.core.$strict>>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../../../src/config/types/auth.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAaxB;;GAEG;AACH,eAAO,MAAM,iBAAiB;;;;;;;EAO5B,CAAC;AAEH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAE/D;;GAEG;AACH,eAAO,MAAM,gBAAgB;;;;;;;;;;kBAG3B,CAAC;AAEH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAE7D;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,YAC3B,IAAI,EACJ,KAAK,EACL,IAAI,EACJ,KAAK,EACL,IAAI,EACJ,KAAK,EACL,MAAM,EACN,IAAI,EACJ,SAAS,EACT,SAAS,EACT,aAAa,EACb,UAAU,CACF,CAAC;AAEX,MAAM,MAAM,cAAc,GAAG,CAAC,OAAO,gBAAgB,CAAC,CAAC,MAAM,CAAC,CAAC;AAE/D;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,kBAAkB,EAAE,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO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;;;;;;;;;;;;;;;;;;;;mBA4C1B,CAAC;AAEL,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAM/D;;GAEG;AACH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;oBAuBtB,CAAC;AAEL,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC"}
|
|
@@ -35,129 +35,35 @@ export type CronTickCallback<TVariables = Record<string, unknown>> = (options: {
|
|
|
35
35
|
* This allows TypeScript to infer the variables type
|
|
36
36
|
*/
|
|
37
37
|
export declare const createTypedCronJobZod: <TVariables extends DefaultVariables>() => z.ZodObject<{
|
|
38
|
-
/**
|
|
39
|
-
* Unique name/identifier for the cron job
|
|
40
|
-
*/
|
|
41
38
|
name: z.ZodString;
|
|
42
|
-
/**
|
|
43
|
-
* Cron pattern or ISO 8601 date string
|
|
44
|
-
* Examples:
|
|
45
|
-
* - "0 0 * * *" (daily at midnight)
|
|
46
|
-
* - "*\/5 * * * *" (every 5 minutes)
|
|
47
|
-
* - "2024-01-23T00:00:00" (specific date/time)
|
|
48
|
-
*/
|
|
49
39
|
pattern: z.ZodString;
|
|
50
|
-
/**
|
|
51
|
-
* Optional GraphQL query to execute when the cron job runs
|
|
52
|
-
* If not provided, you must use the gqlQuery function in onTick callback
|
|
53
|
-
*/
|
|
54
40
|
query: z.ZodOptional<z.ZodString>;
|
|
55
|
-
/**
|
|
56
|
-
* Optional variables to pass to the GraphQL query
|
|
57
|
-
*/
|
|
58
41
|
variables: z.ZodOptional<z.ZodCustom<TVariables, TVariables>>;
|
|
59
|
-
/**
|
|
60
|
-
* Optional timezone (e.g., "America/New_York", "Europe/Stockholm")
|
|
61
|
-
*/
|
|
62
42
|
timezone: z.ZodOptional<z.ZodString>;
|
|
63
|
-
/**
|
|
64
|
-
* Whether the job should be paused from start
|
|
65
|
-
*/
|
|
66
43
|
paused: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
67
|
-
/**
|
|
68
|
-
* Maximum number of times the job should run
|
|
69
|
-
*/
|
|
70
44
|
maxRuns: z.ZodOptional<z.ZodNumber>;
|
|
71
|
-
/**
|
|
72
|
-
* Minimum number of seconds between triggers
|
|
73
|
-
*/
|
|
74
45
|
interval: z.ZodOptional<z.ZodNumber>;
|
|
75
|
-
/**
|
|
76
|
-
* ISO 8601 formatted datetime to start the job
|
|
77
|
-
*/
|
|
78
46
|
startAt: z.ZodOptional<z.ZodString>;
|
|
79
|
-
/**
|
|
80
|
-
* ISO 8601 formatted datetime to stop the job
|
|
81
|
-
*/
|
|
82
47
|
stopAt: z.ZodOptional<z.ZodString>;
|
|
83
|
-
/**
|
|
84
|
-
* Enable over-run protection (blocks new triggers while old one is in progress)
|
|
85
|
-
*/
|
|
86
48
|
protect: z.ZodOptional<z.ZodBoolean>;
|
|
87
|
-
/**
|
|
88
|
-
* Whether to catch errors silently or handle them
|
|
89
|
-
*/
|
|
90
49
|
catchErrors: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
91
|
-
/**
|
|
92
|
-
* Context to pass along with the cron job (for logging, etc.)
|
|
93
|
-
*/
|
|
94
50
|
context: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
95
|
-
/**
|
|
96
|
-
* Callback executed on each tick
|
|
97
|
-
*/
|
|
98
51
|
onTick: z.ZodOptional<z.ZodCustom<CronTickCallback<TVariables>, CronTickCallback<TVariables>>>;
|
|
99
52
|
}, z.core.$strict>;
|
|
100
53
|
export declare const TypedCronJobZod: z.ZodObject<{
|
|
101
|
-
/**
|
|
102
|
-
* Unique name/identifier for the cron job
|
|
103
|
-
*/
|
|
104
54
|
name: z.ZodString;
|
|
105
|
-
/**
|
|
106
|
-
* Cron pattern or ISO 8601 date string
|
|
107
|
-
* Examples:
|
|
108
|
-
* - "0 0 * * *" (daily at midnight)
|
|
109
|
-
* - "*\/5 * * * *" (every 5 minutes)
|
|
110
|
-
* - "2024-01-23T00:00:00" (specific date/time)
|
|
111
|
-
*/
|
|
112
55
|
pattern: z.ZodString;
|
|
113
|
-
/**
|
|
114
|
-
* Optional GraphQL query to execute when the cron job runs
|
|
115
|
-
* If not provided, you must use the gqlQuery function in onTick callback
|
|
116
|
-
*/
|
|
117
56
|
query: z.ZodOptional<z.ZodString>;
|
|
118
|
-
/**
|
|
119
|
-
* Optional variables to pass to the GraphQL query
|
|
120
|
-
*/
|
|
121
57
|
variables: z.ZodOptional<z.ZodCustom<Record<string, unknown>, Record<string, unknown>>>;
|
|
122
|
-
/**
|
|
123
|
-
* Optional timezone (e.g., "America/New_York", "Europe/Stockholm")
|
|
124
|
-
*/
|
|
125
58
|
timezone: z.ZodOptional<z.ZodString>;
|
|
126
|
-
/**
|
|
127
|
-
* Whether the job should be paused from start
|
|
128
|
-
*/
|
|
129
59
|
paused: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
130
|
-
/**
|
|
131
|
-
* Maximum number of times the job should run
|
|
132
|
-
*/
|
|
133
60
|
maxRuns: z.ZodOptional<z.ZodNumber>;
|
|
134
|
-
/**
|
|
135
|
-
* Minimum number of seconds between triggers
|
|
136
|
-
*/
|
|
137
61
|
interval: z.ZodOptional<z.ZodNumber>;
|
|
138
|
-
/**
|
|
139
|
-
* ISO 8601 formatted datetime to start the job
|
|
140
|
-
*/
|
|
141
62
|
startAt: z.ZodOptional<z.ZodString>;
|
|
142
|
-
/**
|
|
143
|
-
* ISO 8601 formatted datetime to stop the job
|
|
144
|
-
*/
|
|
145
63
|
stopAt: z.ZodOptional<z.ZodString>;
|
|
146
|
-
/**
|
|
147
|
-
* Enable over-run protection (blocks new triggers while old one is in progress)
|
|
148
|
-
*/
|
|
149
64
|
protect: z.ZodOptional<z.ZodBoolean>;
|
|
150
|
-
/**
|
|
151
|
-
* Whether to catch errors silently or handle them
|
|
152
|
-
*/
|
|
153
65
|
catchErrors: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
154
|
-
/**
|
|
155
|
-
* Context to pass along with the cron job (for logging, etc.)
|
|
156
|
-
*/
|
|
157
66
|
context: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
158
|
-
/**
|
|
159
|
-
* Callback executed on each tick
|
|
160
|
-
*/
|
|
161
67
|
onTick: z.ZodOptional<z.ZodCustom<CronTickCallback<Record<string, unknown>>, CronTickCallback<Record<string, unknown>>>>;
|
|
162
68
|
}, z.core.$strict>;
|
|
163
69
|
export type CronJobType = z.input<typeof TypedCronJobZod>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cron.d.ts","sourceRoot":"","sources":["../../../../src/config/types/cron.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;GAEG;AACH,eAAO,MAAM,sBAAsB,wCAAoC,CAAC;AAExE,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAEtE;;GAEG;AACH,MAAM,MAAM,WAAW,CAAC,UAAU,GAAG,gBAAgB,IAAI;IACvD,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,UAAU,CAAC;IACtB,cAAc,EAAE,MAAM,CAAC;IACvB,OAAO,EAAE,IAAI,GAAG,IAAI,CAAC;IACrB,WAAW,EAAE,IAAI,GAAG,IAAI,CAAC;CAC1B,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,gBAAgB,CAAC,UAAU,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,IAAI,CACnE,OAAO,EAAE;IACP,QAAQ,EAAE,CAAC,OAAO,GAAG,OAAO,EAC1B,KAAK,EAAE,MAAM,EACb,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAChC,GAAG,CAAC,EAAE,OAAO,KACV,OAAO,CAAC;QAAE,I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AAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAChC,GAAG,CAAC,EAAE,OAAO,KACV,OAAO,CAAC;QAAE,IAAI,EAAE,OAAO,CAAC;QAAC,MAAM,CAAC,EAAE,OAAO,EAAE,CAAA;KAAE,CAAC,CAAC;IACpD,SAAS,EAAE,OAAO,CAAC;IACnB,MAAM,EAAE,OAAO,CAAC;IAChB,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACrC,EACD,OAAO,EAAE,WAAW,CAAC,UAAU,CAAC,EAChC,QAAQ,CAAC,EAAE;IAAE,IAAI,EAAE,OAAO,CAAC;IAAC,MAAM,CAAC,EAAE,OAAO,EAAE,CAAA;CAAE,KAC7C,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC;AAE1B;;;GAGG;AACH,eAAO,MAAM,qBAAqB,GAAI,UAAU,SAAS,gBAAgB;;;;;;;;;;;;;;;kBA4ErE,CAAC;AAEL,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;kBAA0B,CAAC;AAEvD,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AAE1D;;GAEG;AACH,MAAM,MAAM,YAAY,CAAC,UAAU,GAAG,gBAAgB,IAAI,IAAI,CAC5D,WAAW,EACX,WAAW,GAAG,QAAQ,CACvB,GAAG;IACF,SAAS,CAAC,EAAE,UAAU,CAAC;IACvB,MAAM,CAAC,EAAE,gBAAgB,CAAC,UAAU,CAAC,CAAC;CACvC,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,aAAa,CAAC,UAAU,GAAG,gBAAgB,IAAI,YAAY,CAAC,UAAU,CAAC,CAAC"}
|
|
@@ -11,11 +11,8 @@ export declare const RELATIONSHIP_CONDITION_OPERATORS: readonly ["eq", "neq", "g
|
|
|
11
11
|
* A `value` is required for every operator except `is_null` / `is_not_null`.
|
|
12
12
|
*/
|
|
13
13
|
export declare const RelationshipConditionZod: z.ZodObject<{
|
|
14
|
-
/** Column on the declaring (source) table */
|
|
15
14
|
source: z.ZodOptional<z.ZodString>;
|
|
16
|
-
/** Column on the referenced (target) table */
|
|
17
15
|
target: z.ZodOptional<z.ZodString>;
|
|
18
|
-
/** Comparison operator (default `eq`) */
|
|
19
16
|
operator: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
20
17
|
eq: "eq";
|
|
21
18
|
gt: "gt";
|
|
@@ -27,7 +24,6 @@ export declare const RelationshipConditionZod: z.ZodObject<{
|
|
|
27
24
|
lte: "lte";
|
|
28
25
|
neq: "neq";
|
|
29
26
|
}>>>;
|
|
30
|
-
/** Literal compared against the column (omit for `is_null` / `is_not_null`) */
|
|
31
27
|
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
32
28
|
}, z.core.$strict>;
|
|
33
29
|
export type RelationshipCondition = z.input<typeof RelationshipConditionZod>;
|
|
@@ -38,13 +34,9 @@ export declare const TableRelationshipZod: z.ZodObject<{
|
|
|
38
34
|
source: z.ZodString;
|
|
39
35
|
target: z.ZodString;
|
|
40
36
|
}, z.core.$strict>>;
|
|
41
|
-
/** Static-value predicates ANDed into the JOIN condition */
|
|
42
37
|
conditions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
43
|
-
/** Column on the declaring (source) table */
|
|
44
38
|
source: z.ZodOptional<z.ZodString>;
|
|
45
|
-
/** Column on the referenced (target) table */
|
|
46
39
|
target: z.ZodOptional<z.ZodString>;
|
|
47
|
-
/** Comparison operator (default `eq`) */
|
|
48
40
|
operator: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
49
41
|
eq: "eq";
|
|
50
42
|
gt: "gt";
|
|
@@ -56,7 +48,6 @@ export declare const TableRelationshipZod: z.ZodObject<{
|
|
|
56
48
|
lte: "lte";
|
|
57
49
|
neq: "neq";
|
|
58
50
|
}>>>;
|
|
59
|
-
/** Literal compared against the column (omit for `is_null` / `is_not_null`) */
|
|
60
51
|
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
61
52
|
}, z.core.$strict>>>;
|
|
62
53
|
}, z.core.$strict>;
|
|
@@ -79,13 +70,9 @@ export declare const TableSchemaConfigZod: z.ZodObject<{
|
|
|
79
70
|
source: z.ZodString;
|
|
80
71
|
target: z.ZodString;
|
|
81
72
|
}, z.core.$strict>>;
|
|
82
|
-
/** Static-value predicates ANDed into the JOIN condition */
|
|
83
73
|
conditions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
84
|
-
/** Column on the declaring (source) table */
|
|
85
74
|
source: z.ZodOptional<z.ZodString>;
|
|
86
|
-
/** Column on the referenced (target) table */
|
|
87
75
|
target: z.ZodOptional<z.ZodString>;
|
|
88
|
-
/** Comparison operator (default `eq`) */
|
|
89
76
|
operator: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
90
77
|
eq: "eq";
|
|
91
78
|
gt: "gt";
|
|
@@ -97,13 +84,10 @@ export declare const TableSchemaConfigZod: z.ZodObject<{
|
|
|
97
84
|
lte: "lte";
|
|
98
85
|
neq: "neq";
|
|
99
86
|
}>>>;
|
|
100
|
-
/** Literal compared against the column (omit for `is_null` / `is_not_null`) */
|
|
101
87
|
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
102
88
|
}, z.core.$strict>>>;
|
|
103
89
|
}, z.core.$strict>>>>;
|
|
104
|
-
/** Overrides the table description from the database */
|
|
105
90
|
description: z.ZodOptional<z.ZodString>;
|
|
106
|
-
/** Overrides column descriptions from the database, keyed by column name */
|
|
107
91
|
columnDescriptions: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>>;
|
|
108
92
|
}, z.core.$strict>;
|
|
109
93
|
export type TableSchemaConfig = z.input<typeof TableSchemaConfigZod>;
|
|
@@ -126,13 +110,9 @@ export declare const DatabaseSchemaConfigZod: z.ZodObject<{
|
|
|
126
110
|
source: z.ZodString;
|
|
127
111
|
target: z.ZodString;
|
|
128
112
|
}, z.core.$strict>>;
|
|
129
|
-
/** Static-value predicates ANDed into the JOIN condition */
|
|
130
113
|
conditions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
131
|
-
/** Column on the declaring (source) table */
|
|
132
114
|
source: z.ZodOptional<z.ZodString>;
|
|
133
|
-
/** Column on the referenced (target) table */
|
|
134
115
|
target: z.ZodOptional<z.ZodString>;
|
|
135
|
-
/** Comparison operator (default `eq`) */
|
|
136
116
|
operator: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
137
117
|
eq: "eq";
|
|
138
118
|
gt: "gt";
|
|
@@ -144,13 +124,10 @@ export declare const DatabaseSchemaConfigZod: z.ZodObject<{
|
|
|
144
124
|
lte: "lte";
|
|
145
125
|
neq: "neq";
|
|
146
126
|
}>>>;
|
|
147
|
-
/** Literal compared against the column (omit for `is_null` / `is_not_null`) */
|
|
148
127
|
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
149
128
|
}, z.core.$strict>>>;
|
|
150
129
|
}, z.core.$strict>>>>;
|
|
151
|
-
/** Overrides the table description from the database */
|
|
152
130
|
description: z.ZodOptional<z.ZodString>;
|
|
153
|
-
/** Overrides column descriptions from the database, keyed by column name */
|
|
154
131
|
columnDescriptions: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>>;
|
|
155
132
|
}, z.core.$strict>>>>>>>;
|
|
156
133
|
excludedTables: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
@@ -161,27 +138,13 @@ export type DatabaseSchemaConfig = z.input<typeof DatabaseSchemaConfigZod>;
|
|
|
161
138
|
* All timeout values are in seconds.
|
|
162
139
|
*/
|
|
163
140
|
export declare const BunSQLConnectionOptionsZod: z.ZodObject<{
|
|
164
|
-
/** Maximum number of connections in the pool */
|
|
165
141
|
max: z.ZodDefault<z.ZodNumber>;
|
|
166
|
-
/** Maximum time in seconds a connection can be idle before being closed */
|
|
167
142
|
idleTimeout: z.ZodDefault<z.ZodNumber>;
|
|
168
|
-
/** Maximum time in seconds to wait when establishing a connection */
|
|
169
143
|
connectionTimeout: z.ZodDefault<z.ZodNumber>;
|
|
170
|
-
/** Maximum lifetime in seconds of a connection */
|
|
171
144
|
maxLifetime: z.ZodDefault<z.ZodNumber>;
|
|
172
|
-
/** Whether to use TLS/SSL for the connection */
|
|
173
145
|
tls: z.ZodDefault<z.ZodBoolean>;
|
|
174
|
-
/**
|
|
175
|
-
* MySQL only: allow the client to fetch the server's RSA public key over a
|
|
176
|
-
* plain connection when caching_sha2_password asks for full authentication.
|
|
177
|
-
* Off by default, as it is in Bun: without TLS a man-in-the-middle can answer
|
|
178
|
-
* with its own key and read the password. Needed for MySQL 8 servers that are
|
|
179
|
-
* reachable only over plain TCP.
|
|
180
|
-
*/
|
|
181
146
|
allowPublicKeyRetrieval: z.ZodDefault<z.ZodBoolean>;
|
|
182
|
-
/** Automatic creation of prepared statements (default: true) */
|
|
183
147
|
prepare: z.ZodDefault<z.ZodBoolean>;
|
|
184
|
-
/** Return values outside i32 range as BigInts instead of strings (default: false) */
|
|
185
148
|
bigint: z.ZodDefault<z.ZodBoolean>;
|
|
186
149
|
}, z.core.$strict>;
|
|
187
150
|
export type BunSQLConnectionOptions = z.input<typeof BunSQLConnectionOptionsZod>;
|
|
@@ -190,26 +153,16 @@ export type BunSQLConnectionOptions = z.input<typeof BunSQLConnectionOptionsZod>
|
|
|
190
153
|
* All timeout values are in seconds (converted to milliseconds internally).
|
|
191
154
|
*/
|
|
192
155
|
export declare const MSSQLConnectionOptionsZod: z.ZodObject<{
|
|
193
|
-
/** Connection pool options */
|
|
194
156
|
pool: z.ZodDefault<z.ZodObject<{
|
|
195
|
-
/** Maximum number of connections in the pool */
|
|
196
157
|
max: z.ZodDefault<z.ZodNumber>;
|
|
197
|
-
/** Minimum number of connections in the pool */
|
|
198
158
|
min: z.ZodDefault<z.ZodNumber>;
|
|
199
|
-
/** Maximum time in seconds a connection can be idle before being closed */
|
|
200
159
|
idleTimeout: z.ZodDefault<z.ZodNumber>;
|
|
201
160
|
}, z.core.$strict>>;
|
|
202
|
-
/** Maximum time in seconds to wait when establishing a connection */
|
|
203
161
|
connectionTimeout: z.ZodDefault<z.ZodNumber>;
|
|
204
|
-
/** Maximum time in seconds to wait for a request to complete */
|
|
205
162
|
requestTimeout: z.ZodDefault<z.ZodNumber>;
|
|
206
|
-
/** Whether to encrypt the connection */
|
|
207
163
|
encrypt: z.ZodDefault<z.ZodBoolean>;
|
|
208
|
-
/** Whether to trust the server certificate without validation */
|
|
209
164
|
trustServerCertificate: z.ZodDefault<z.ZodBoolean>;
|
|
210
|
-
/** Whether to use Windows Authentication (trusted connection) */
|
|
211
165
|
trustedConnection: z.ZodDefault<z.ZodBoolean>;
|
|
212
|
-
/** Whether to automatically parse JSON responses */
|
|
213
166
|
parseJSON: z.ZodDefault<z.ZodBoolean>;
|
|
214
167
|
}, z.core.$strict>;
|
|
215
168
|
export type MSSQLConnectionOptions = z.input<typeof MSSQLConnectionOptionsZod>;
|
|
@@ -234,13 +187,9 @@ export type OnConnectHandler<T extends DatabaseType = DatabaseType> = (connectio
|
|
|
234
187
|
*/
|
|
235
188
|
export type ConnectionOptionsForType<T extends DatabaseType> = T extends "pg" | "mysql" ? BunSQLConnectionOptions : T extends "mssql" ? MSSQLConnectionOptions : never;
|
|
236
189
|
export declare const DatabaseConnectionZod: z.ZodObject<{
|
|
237
|
-
/** Unique name for the database connection */
|
|
238
190
|
name: z.ZodString;
|
|
239
|
-
/** Whether the database is enabled */
|
|
240
191
|
enabled: z.ZodBoolean;
|
|
241
|
-
/** Database type */
|
|
242
192
|
type: z.ZodUnion<readonly [z.ZodLiteral<"mssql">, z.ZodLiteral<"pg">, z.ZodLiteral<"mysql">]>;
|
|
243
|
-
/** Connection configuration */
|
|
244
193
|
connection: z.ZodObject<{
|
|
245
194
|
host: z.ZodString;
|
|
246
195
|
port: z.ZodNumber;
|
|
@@ -248,13 +197,9 @@ export declare const DatabaseConnectionZod: z.ZodObject<{
|
|
|
248
197
|
password: z.ZodString;
|
|
249
198
|
database: z.ZodString;
|
|
250
199
|
}, z.core.$strict>;
|
|
251
|
-
/** Field naming pattern (default: "{schema}_{name}") */
|
|
252
200
|
fieldNaming: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
253
|
-
/** Factory function to create custom database repository */
|
|
254
201
|
repository: z.ZodOptional<z.ZodCustom<CustomRepositoryFactory<DatabaseType>, CustomRepositoryFactory<DatabaseType>>>;
|
|
255
|
-
/** Handler run once at startup against the connected database */
|
|
256
202
|
onConnect: z.ZodOptional<z.ZodCustom<OnConnectHandler<DatabaseType>, OnConnectHandler<DatabaseType>>>;
|
|
257
|
-
/** Schema configuration (virtual columns, relationships, excluded tables) */
|
|
258
203
|
schema: z.ZodOptional<z.ZodObject<{
|
|
259
204
|
database: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodCatch<z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
|
260
205
|
columns: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -274,13 +219,9 @@ export declare const DatabaseConnectionZod: z.ZodObject<{
|
|
|
274
219
|
source: z.ZodString;
|
|
275
220
|
target: z.ZodString;
|
|
276
221
|
}, z.core.$strict>>;
|
|
277
|
-
/** Static-value predicates ANDed into the JOIN condition */
|
|
278
222
|
conditions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
279
|
-
/** Column on the declaring (source) table */
|
|
280
223
|
source: z.ZodOptional<z.ZodString>;
|
|
281
|
-
/** Column on the referenced (target) table */
|
|
282
224
|
target: z.ZodOptional<z.ZodString>;
|
|
283
|
-
/** Comparison operator (default `eq`) */
|
|
284
225
|
operator: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
285
226
|
eq: "eq";
|
|
286
227
|
gt: "gt";
|
|
@@ -292,62 +233,34 @@ export declare const DatabaseConnectionZod: z.ZodObject<{
|
|
|
292
233
|
lte: "lte";
|
|
293
234
|
neq: "neq";
|
|
294
235
|
}>>>;
|
|
295
|
-
/** Literal compared against the column (omit for `is_null` / `is_not_null`) */
|
|
296
236
|
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
297
237
|
}, z.core.$strict>>>;
|
|
298
238
|
}, z.core.$strict>>>>;
|
|
299
|
-
/** Overrides the table description from the database */
|
|
300
239
|
description: z.ZodOptional<z.ZodString>;
|
|
301
|
-
/** Overrides column descriptions from the database, keyed by column name */
|
|
302
240
|
columnDescriptions: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>>;
|
|
303
241
|
}, z.core.$strict>>>>>>>;
|
|
304
242
|
excludedTables: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
305
243
|
}, z.core.$strict>>;
|
|
306
|
-
/** Optional connection pool and transport options */
|
|
307
244
|
connectionOptions: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
308
|
-
/** Maximum number of connections in the pool */
|
|
309
245
|
max: z.ZodDefault<z.ZodNumber>;
|
|
310
|
-
/** Maximum time in seconds a connection can be idle before being closed */
|
|
311
246
|
idleTimeout: z.ZodDefault<z.ZodNumber>;
|
|
312
|
-
/** Maximum time in seconds to wait when establishing a connection */
|
|
313
247
|
connectionTimeout: z.ZodDefault<z.ZodNumber>;
|
|
314
|
-
/** Maximum lifetime in seconds of a connection */
|
|
315
248
|
maxLifetime: z.ZodDefault<z.ZodNumber>;
|
|
316
|
-
/** Whether to use TLS/SSL for the connection */
|
|
317
249
|
tls: z.ZodDefault<z.ZodBoolean>;
|
|
318
|
-
/**
|
|
319
|
-
* MySQL only: allow the client to fetch the server's RSA public key over a
|
|
320
|
-
* plain connection when caching_sha2_password asks for full authentication.
|
|
321
|
-
* Off by default, as it is in Bun: without TLS a man-in-the-middle can answer
|
|
322
|
-
* with its own key and read the password. Needed for MySQL 8 servers that are
|
|
323
|
-
* reachable only over plain TCP.
|
|
324
|
-
*/
|
|
325
250
|
allowPublicKeyRetrieval: z.ZodDefault<z.ZodBoolean>;
|
|
326
|
-
/** Automatic creation of prepared statements (default: true) */
|
|
327
251
|
prepare: z.ZodDefault<z.ZodBoolean>;
|
|
328
|
-
/** Return values outside i32 range as BigInts instead of strings (default: false) */
|
|
329
252
|
bigint: z.ZodDefault<z.ZodBoolean>;
|
|
330
253
|
}, z.core.$strict>, z.ZodObject<{
|
|
331
|
-
/** Connection pool options */
|
|
332
254
|
pool: z.ZodDefault<z.ZodObject<{
|
|
333
|
-
/** Maximum number of connections in the pool */
|
|
334
255
|
max: z.ZodDefault<z.ZodNumber>;
|
|
335
|
-
/** Minimum number of connections in the pool */
|
|
336
256
|
min: z.ZodDefault<z.ZodNumber>;
|
|
337
|
-
/** Maximum time in seconds a connection can be idle before being closed */
|
|
338
257
|
idleTimeout: z.ZodDefault<z.ZodNumber>;
|
|
339
258
|
}, z.core.$strict>>;
|
|
340
|
-
/** Maximum time in seconds to wait when establishing a connection */
|
|
341
259
|
connectionTimeout: z.ZodDefault<z.ZodNumber>;
|
|
342
|
-
/** Maximum time in seconds to wait for a request to complete */
|
|
343
260
|
requestTimeout: z.ZodDefault<z.ZodNumber>;
|
|
344
|
-
/** Whether to encrypt the connection */
|
|
345
261
|
encrypt: z.ZodDefault<z.ZodBoolean>;
|
|
346
|
-
/** Whether to trust the server certificate without validation */
|
|
347
262
|
trustServerCertificate: z.ZodDefault<z.ZodBoolean>;
|
|
348
|
-
/** Whether to use Windows Authentication (trusted connection) */
|
|
349
263
|
trustedConnection: z.ZodDefault<z.ZodBoolean>;
|
|
350
|
-
/** Whether to automatically parse JSON responses */
|
|
351
264
|
parseJSON: z.ZodDefault<z.ZodBoolean>;
|
|
352
265
|
}, z.core.$strict>]>>;
|
|
353
266
|
}, z.core.$strict>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"db.d.ts","sourceRoot":"","sources":["../../../../src/config/types/db.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAC/B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAe5C,MAAM,MAAM,YAAY,GAAG,OAAO,GAAG,IAAI,GAAG,OAAO,CAAC;AAMpD,4EAA4E;AAC5E,eAAO,MAAM,gCAAgC,YAC3C,IAAI,EACJ,KAAK,EACL,IAAI,EACJ,KAAK,EACL,IAAI,EACJ,KAAK,EACL,MAAM,EACN,SAAS,EACT,aAAa,CACL,CAAC;AAEX;;;;;GAKG;AACH,eAAO,MAAM,wBAAwB
|
|
1
|
+
{"version":3,"file":"db.d.ts","sourceRoot":"","sources":["../../../../src/config/types/db.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAC/B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAe5C,MAAM,MAAM,YAAY,GAAG,OAAO,GAAG,IAAI,GAAG,OAAO,CAAC;AAMpD,4EAA4E;AAC5E,eAAO,MAAM,gCAAgC,YAC3C,IAAI,EACJ,KAAK,EACL,IAAI,EACJ,KAAK,EACL,IAAI,EACJ,KAAK,EACL,MAAM,EACN,SAAS,EACT,aAAa,CACL,CAAC;AAEX;;;;;GAKG;AACH,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;kBAkBlC,CAAC;AAEJ,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAM7E,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;kBAM/B,CAAC;AAEH,MAAM,MAAM,iBAAiB,GAAG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