@hablala/schema 0.0.0-stage → 0.2.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.
- package/LICENSE +21 -0
- package/README.md +53 -2
- package/dist/chunk-PNDZJEKP.js +436 -0
- package/dist/chunk-PNDZJEKP.js.map +1 -0
- package/dist/index.d.ts +181 -0
- package/dist/index.js +87 -0
- package/dist/index.js.map +1 -0
- package/dist/manifest-BNuATW0M.d.ts +877 -0
- package/dist/synth/index.d.ts +170 -0
- package/dist/synth/index.js +359 -0
- package/dist/synth/index.js.map +1 -0
- package/generated/data-type.schema.json +17 -0
- package/generated/manifest.schema.json +2257 -0
- package/package.json +64 -3
|
@@ -0,0 +1,877 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* La **única fuente de verdad** del vocabulario de `data_type` del diccionario de datos del tenant.
|
|
5
|
+
*
|
|
6
|
+
* De este enum derivan — sin espejos manuales:
|
|
7
|
+
* - el tipo TS (`DataType`, vía `z.infer`),
|
|
8
|
+
* - la validación runtime (el propio Zod, en `fieldSchema`),
|
|
9
|
+
* - el **JSON Schema** cross-language (`generated/manifest.schema.json`), que el backend Elixir lee
|
|
10
|
+
* para construir `FieldRules.@data_types` — así el enum se define UNA vez y fluye a todos lados.
|
|
11
|
+
*
|
|
12
|
+
* Añadir un tipo (OCP): se agrega aquí + su refinamiento de `config` en `field.ts` + su helper en
|
|
13
|
+
* `synth/field.ts`. Nada más: tipos TS, validación, JSON Schema y el enum de Elixir se derivan solos.
|
|
14
|
+
*/
|
|
15
|
+
declare const dataTypeEnum: z.ZodEnum<{
|
|
16
|
+
number: "number";
|
|
17
|
+
boolean: "boolean";
|
|
18
|
+
text: "text";
|
|
19
|
+
date: "date";
|
|
20
|
+
timestamp: "timestamp";
|
|
21
|
+
select: "select";
|
|
22
|
+
multiselect: "multiselect";
|
|
23
|
+
reference: "reference";
|
|
24
|
+
file: "file";
|
|
25
|
+
formula: "formula";
|
|
26
|
+
rollup: "rollup";
|
|
27
|
+
}>;
|
|
28
|
+
type DataType = z.infer<typeof dataTypeEnum>;
|
|
29
|
+
/**
|
|
30
|
+
* Tipos **derivados** (*formula*, *rollup*): se computan en lectura, nunca se almacenan. No aceptan
|
|
31
|
+
* valor de entrada ni flags de almacenamiento/entrada (`isRequired`/`isUnique`/`isIndexed`/`embedInVector`).
|
|
32
|
+
* Espejo del `@derived_types` del backend.
|
|
33
|
+
*/
|
|
34
|
+
declare const derivedDataTypes: readonly ["formula", "rollup"];
|
|
35
|
+
type DerivedDataType = (typeof derivedDataTypes)[number];
|
|
36
|
+
declare function isDerivedDataType(type: DataType): type is DerivedDataType;
|
|
37
|
+
/** Tipos de **entrada** (no derivados): aceptan valor en `records.properties`. */
|
|
38
|
+
declare const inputDataTypes: ("number" | "boolean" | "text" | "date" | "timestamp" | "select" | "multiselect" | "reference" | "file")[];
|
|
39
|
+
/** Tipos donde `config.options` es obligatorio (el dominio del valor lo define el config). */
|
|
40
|
+
declare const optionsDataTypes: readonly ["select", "multiselect"];
|
|
41
|
+
/** `result_type` que un `formula` puede declarar. */
|
|
42
|
+
declare const formulaResultTypes: readonly ["number", "text", "boolean"];
|
|
43
|
+
/** Funciones de agregación que un `rollup` puede declarar (vocabulario SQL/hoja de cálculo). */
|
|
44
|
+
declare const rollupAggregates: readonly ["sum", "count", "avg", "min", "max"];
|
|
45
|
+
/** Tipos donde `isUnique` no tiene sentido (conjunto, booleano, array de archivos, derivados). */
|
|
46
|
+
declare const uniqueIncompatibleDataTypes: readonly ["multiselect", "boolean", "file", "formula", "rollup"];
|
|
47
|
+
|
|
48
|
+
/** Cardinalidad de una relationship (ORM estándar). */
|
|
49
|
+
declare const cardinalityEnum: z.ZodEnum<{
|
|
50
|
+
one_to_one: "one_to_one";
|
|
51
|
+
one_to_many: "one_to_many";
|
|
52
|
+
many_to_many: "many_to_many";
|
|
53
|
+
}>;
|
|
54
|
+
type Cardinality = z.infer<typeof cardinalityEnum>;
|
|
55
|
+
/**
|
|
56
|
+
* `manageability` de un object (READ-ONLY, emitido por `pull`): `tenant` (del cliente) vs `seeded`/
|
|
57
|
+
* `system` (raíz inmutable sembrada). El planner lo ignora al aplicar; vive en el manifiesto solo como
|
|
58
|
+
* señal informativa. Espejo de `Objects.Manageability.levels()`.
|
|
59
|
+
*/
|
|
60
|
+
declare const manageabilityEnum: z.ZodEnum<{
|
|
61
|
+
tenant: "tenant";
|
|
62
|
+
seeded: "seeded";
|
|
63
|
+
system: "system";
|
|
64
|
+
}>;
|
|
65
|
+
type Manageability = z.infer<typeof manageabilityEnum>;
|
|
66
|
+
/** De dónde saca su autoridad un agente al actuar: delegada del usuario, o asignada a un rol propio. */
|
|
67
|
+
declare const authoritySourceEnum: z.ZodEnum<{
|
|
68
|
+
delegated: "delegated";
|
|
69
|
+
assigned: "assigned";
|
|
70
|
+
}>;
|
|
71
|
+
type AuthoritySource = z.infer<typeof authoritySourceEnum>;
|
|
72
|
+
/**
|
|
73
|
+
* Modo de una sección del manifiesto: `authoritative` (los no declarados se archivan — desired-state
|
|
74
|
+
* puro) vs `additive` (solo crea/actualiza lo declarado, no archiva). Default por sección: authoritative.
|
|
75
|
+
*/
|
|
76
|
+
declare const sectionModeEnum: z.ZodEnum<{
|
|
77
|
+
authoritative: "authoritative";
|
|
78
|
+
additive: "additive";
|
|
79
|
+
}>;
|
|
80
|
+
type SectionMode = z.infer<typeof sectionModeEnum>;
|
|
81
|
+
/** Clase de cuenta: organización (multi-miembro) o individual (una persona). */
|
|
82
|
+
declare const accountKindEnum: z.ZodEnum<{
|
|
83
|
+
organization: "organization";
|
|
84
|
+
individual: "individual";
|
|
85
|
+
}>;
|
|
86
|
+
type AccountKind = z.infer<typeof accountKindEnum>;
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* Un tipo de relación declarado por slugs de object (no ids). La FORMA (source/target/cardinality) es
|
|
90
|
+
* inmutable: redeclararla con otra forma es un conflicto. La POLÍTICA de autorización (rewrite/caveat)
|
|
91
|
+
* sí es actualizable sin recrear la relación.
|
|
92
|
+
*/
|
|
93
|
+
declare const relationshipSchema: z.ZodObject<{
|
|
94
|
+
apiName: z.ZodString;
|
|
95
|
+
title: z.ZodOptional<z.ZodString>;
|
|
96
|
+
description: z.ZodOptional<z.ZodString>;
|
|
97
|
+
source: z.ZodString;
|
|
98
|
+
target: z.ZodString;
|
|
99
|
+
cardinality: z.ZodEnum<{
|
|
100
|
+
one_to_one: "one_to_one";
|
|
101
|
+
one_to_many: "one_to_many";
|
|
102
|
+
many_to_many: "many_to_many";
|
|
103
|
+
}>;
|
|
104
|
+
rewrite: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
105
|
+
caveat: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
106
|
+
}, z.core.$strict>;
|
|
107
|
+
type ManifestRelationship = z.infer<typeof relationshipSchema>;
|
|
108
|
+
|
|
109
|
+
/**
|
|
110
|
+
* Una definición de workflow: la máquina de estados como dato (trigger + states). El grafo `states` y
|
|
111
|
+
* el `trigger` se validan ESTRUCTURALMENTE en el `plan` del servidor (un linter de state machine: cada
|
|
112
|
+
* activity ∈ catálogo declarable, transiciones a estados existentes, alcanzabilidad, estado terminal).
|
|
113
|
+
* Aquí tipamos la forma de nivel superior; el cuerpo del grafo es opaco a este schema a propósito —
|
|
114
|
+
* su gramática completa la gobierna el servidor (misma frontera que el contrato OpenAPI, que lo declara
|
|
115
|
+
* `additionalProperties: true`). Descubre el espacio declarable en `GET /v1/account-config/capabilities`.
|
|
116
|
+
*/
|
|
117
|
+
declare const workflowSchema: z.ZodObject<{
|
|
118
|
+
apiName: z.ZodString;
|
|
119
|
+
title: z.ZodOptional<z.ZodString>;
|
|
120
|
+
description: z.ZodOptional<z.ZodString>;
|
|
121
|
+
synonyms: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
122
|
+
trigger: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
123
|
+
initialState: z.ZodOptional<z.ZodString>;
|
|
124
|
+
states: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
125
|
+
}, z.core.$strict>;
|
|
126
|
+
type ManifestWorkflow = z.infer<typeof workflowSchema>;
|
|
127
|
+
|
|
128
|
+
/**
|
|
129
|
+
* La IDENTIDAD de un agente declarado, identificado por `handle`. Archivar (no declararlo) lo revoca.
|
|
130
|
+
*
|
|
131
|
+
* Hablalá es infraestructura de IDENTIDAD agéntica, NO un framework de agentes: el constructor trae su
|
|
132
|
+
* propio runtime (el loop decidir→tool→observar corre donde él quiera, con el LLM que quiera). Por eso
|
|
133
|
+
* los campos se parten en dos grupos (ver `docs/AGENTIC_IDENTITY_INFRASTRUCTURE.md`):
|
|
134
|
+
*
|
|
135
|
+
* - IDENTIDAD / AUTORIDAD — lo que Hablalá valida y hace cumplir (el moat, cerrado): `handle`, `name`,
|
|
136
|
+
* `authoritySource`, `agentPermissions` (RBAC que ATENÚA el scope delegado del dueño — nunca amplía,
|
|
137
|
+
* RFC 8693 scope attenuation), `handoffs` (a qué agentes puede transferir), `approvalRequired`
|
|
138
|
+
* (human-in-the-loop, OWASP LLM06) y el `owner` humano accountable (delegación OBO).
|
|
139
|
+
* - CONFIG DEL RUNTIME EXTERNO — datos OPACOS que Hablalá guarda pero NO interpreta (los consume el
|
|
140
|
+
* runtime BYO del constructor): `provider`, `model`, `allowedActivities`.
|
|
141
|
+
*/
|
|
142
|
+
declare const agentSchema: z.ZodObject<{
|
|
143
|
+
handle: z.ZodString;
|
|
144
|
+
name: z.ZodOptional<z.ZodString>;
|
|
145
|
+
description: z.ZodOptional<z.ZodString>;
|
|
146
|
+
systemPrompt: z.ZodOptional<z.ZodString>;
|
|
147
|
+
provider: z.ZodOptional<z.ZodString>;
|
|
148
|
+
model: z.ZodOptional<z.ZodString>;
|
|
149
|
+
allowedActivities: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
150
|
+
authoritySource: z.ZodOptional<z.ZodEnum<{
|
|
151
|
+
delegated: "delegated";
|
|
152
|
+
assigned: "assigned";
|
|
153
|
+
}>>;
|
|
154
|
+
agentPermissions: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
155
|
+
handoffs: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
156
|
+
approvalRequired: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
157
|
+
ownerUserId: z.ZodOptional<z.ZodString>;
|
|
158
|
+
}, z.core.$strict>;
|
|
159
|
+
type ManifestAgent = z.infer<typeof agentSchema>;
|
|
160
|
+
|
|
161
|
+
/**
|
|
162
|
+
* Unión discriminada por la clave de clase de step. Una forma inválida (sin `object`/`reserve`/`invoice`,
|
|
163
|
+
* o con `forEach` camelCase que el runner ignoraría) ya no cuela: `synth()` falla en el editor, no en
|
|
164
|
+
* una ejecución silenciosa contra el runner.
|
|
165
|
+
*/
|
|
166
|
+
declare const transactionStepSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
167
|
+
id: z.ZodOptional<z.ZodString>;
|
|
168
|
+
for_each: z.ZodOptional<z.ZodString>;
|
|
169
|
+
properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
170
|
+
object: z.ZodString;
|
|
171
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
172
|
+
id: z.ZodOptional<z.ZodString>;
|
|
173
|
+
for_each: z.ZodOptional<z.ZodString>;
|
|
174
|
+
properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
175
|
+
reserve: z.ZodString;
|
|
176
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
177
|
+
id: z.ZodOptional<z.ZodString>;
|
|
178
|
+
for_each: z.ZodOptional<z.ZodString>;
|
|
179
|
+
properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
180
|
+
invoice: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
181
|
+
}, z.core.$loose>]>;
|
|
182
|
+
declare const transactionSchema: z.ZodObject<{
|
|
183
|
+
apiName: z.ZodString;
|
|
184
|
+
title: z.ZodOptional<z.ZodString>;
|
|
185
|
+
description: z.ZodOptional<z.ZodString>;
|
|
186
|
+
synonyms: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
187
|
+
steps: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
188
|
+
id: z.ZodOptional<z.ZodString>;
|
|
189
|
+
for_each: z.ZodOptional<z.ZodString>;
|
|
190
|
+
properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
191
|
+
object: z.ZodString;
|
|
192
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
193
|
+
id: z.ZodOptional<z.ZodString>;
|
|
194
|
+
for_each: z.ZodOptional<z.ZodString>;
|
|
195
|
+
properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
196
|
+
reserve: z.ZodString;
|
|
197
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
198
|
+
id: z.ZodOptional<z.ZodString>;
|
|
199
|
+
for_each: z.ZodOptional<z.ZodString>;
|
|
200
|
+
properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
201
|
+
invoice: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
202
|
+
}, z.core.$loose>]>>;
|
|
203
|
+
}, z.core.$strict>;
|
|
204
|
+
type ManifestTransaction = z.infer<typeof transactionSchema>;
|
|
205
|
+
|
|
206
|
+
/** Efecto de una policy ABAC: `deny` gana sobre `allow`. */
|
|
207
|
+
declare const policyEffectEnum: z.ZodEnum<{
|
|
208
|
+
allow: "allow";
|
|
209
|
+
deny: "deny";
|
|
210
|
+
}>;
|
|
211
|
+
type PolicyEffect = z.infer<typeof policyEffectEnum>;
|
|
212
|
+
/** Acciones gobernables por una policy. */
|
|
213
|
+
declare const policyActionEnum: z.ZodEnum<{
|
|
214
|
+
read: "read";
|
|
215
|
+
create: "create";
|
|
216
|
+
update: "update";
|
|
217
|
+
delete: "delete";
|
|
218
|
+
signal: "signal";
|
|
219
|
+
}>;
|
|
220
|
+
type PolicyAction = z.infer<typeof policyActionEnum>;
|
|
221
|
+
/**
|
|
222
|
+
* Una regla ABAC de acceso, identificada por `slug`. A diferencia del resto, una policy NO declarada se
|
|
223
|
+
* BORRA (no se archiva). `principal` y `object` son referencias legibles resueltas al aplicar. La
|
|
224
|
+
* `condition` (predicado ABAC) la valida el `plan`; aquí se tipa como opaca.
|
|
225
|
+
*/
|
|
226
|
+
declare const policySchema: z.ZodObject<{
|
|
227
|
+
apiName: z.ZodString;
|
|
228
|
+
effect: z.ZodEnum<{
|
|
229
|
+
allow: "allow";
|
|
230
|
+
deny: "deny";
|
|
231
|
+
}>;
|
|
232
|
+
action: z.ZodUnion<readonly [z.ZodEnum<{
|
|
233
|
+
read: "read";
|
|
234
|
+
create: "create";
|
|
235
|
+
update: "update";
|
|
236
|
+
delete: "delete";
|
|
237
|
+
signal: "signal";
|
|
238
|
+
}>, z.ZodArray<z.ZodEnum<{
|
|
239
|
+
read: "read";
|
|
240
|
+
create: "create";
|
|
241
|
+
update: "update";
|
|
242
|
+
delete: "delete";
|
|
243
|
+
signal: "signal";
|
|
244
|
+
}>>]>;
|
|
245
|
+
principal: z.ZodString;
|
|
246
|
+
object: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
247
|
+
condition: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
248
|
+
fieldMask: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
249
|
+
}, z.core.$strict>;
|
|
250
|
+
type ManifestPolicy = z.infer<typeof policySchema>;
|
|
251
|
+
|
|
252
|
+
/** Estado de un webhook endpoint: `enabled` (default) o `disabled` (pausa sin borrar). */
|
|
253
|
+
declare const webhookStatusEnum: z.ZodEnum<{
|
|
254
|
+
enabled: "enabled";
|
|
255
|
+
disabled: "disabled";
|
|
256
|
+
}>;
|
|
257
|
+
type WebhookStatus = z.infer<typeof webhookStatusEnum>;
|
|
258
|
+
/**
|
|
259
|
+
* Un webhook endpoint saliente: la URL de un sistema externo suscrita a eventos del event store,
|
|
260
|
+
* identificada por `slug`. El signing secret NO se declara (lo genera la plataforma). Estructura
|
|
261
|
+
* autoritativa: un endpoint no declarado se BORRA.
|
|
262
|
+
*/
|
|
263
|
+
declare const webhookEndpointSchema: z.ZodObject<{
|
|
264
|
+
slug: z.ZodString;
|
|
265
|
+
url: z.ZodString;
|
|
266
|
+
enabledEvents: z.ZodArray<z.ZodString>;
|
|
267
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
268
|
+
enabled: "enabled";
|
|
269
|
+
disabled: "disabled";
|
|
270
|
+
}>>;
|
|
271
|
+
}, z.core.$strict>;
|
|
272
|
+
type ManifestWebhookEndpoint = z.infer<typeof webhookEndpointSchema>;
|
|
273
|
+
|
|
274
|
+
/** Estado de una egress connection: `enabled` (default) o `disabled` (pausa sin borrar). */
|
|
275
|
+
declare const egressStatusEnum: z.ZodEnum<{
|
|
276
|
+
enabled: "enabled";
|
|
277
|
+
disabled: "disabled";
|
|
278
|
+
}>;
|
|
279
|
+
type EgressStatus = z.infer<typeof egressStatusEnum>;
|
|
280
|
+
/**
|
|
281
|
+
* El método de auth que la connection inyecta en cada `http_request` que la usa. Canónico de n8n /
|
|
282
|
+
* EventBridge. El SECRET de la credencial NO se declara aquí (nunca vive en el config versionado): se
|
|
283
|
+
* setea out-of-band. El manifiesto solo declara el TIPO de auth (y, para `api_key`, el nombre del header).
|
|
284
|
+
*/
|
|
285
|
+
declare const egressAuthTypeEnum: z.ZodEnum<{
|
|
286
|
+
none: "none";
|
|
287
|
+
api_key: "api_key";
|
|
288
|
+
bearer: "bearer";
|
|
289
|
+
basic: "basic";
|
|
290
|
+
}>;
|
|
291
|
+
type EgressAuthType = z.infer<typeof egressAuthTypeEnum>;
|
|
292
|
+
/**
|
|
293
|
+
* Una **egress connection**: el destino externo *allowlisted* + el tipo de auth al que un `http_request`
|
|
294
|
+
* declarativo puede salir, identificada por `slug`. Es el análogo de la EventBridge connection de AWS /
|
|
295
|
+
* las credentials de n8n: desacopla el destino+credencial del workflow que los usa.
|
|
296
|
+
*
|
|
297
|
+
* El **secret NO se declara** (es una credencial; no va en git): se setea con
|
|
298
|
+
* `PUT /v1/egress-connections/:slug/secret`. Una connection declarada con `authType != none` nace
|
|
299
|
+
* *pending credential* y un `http_request` por ella falla cerrado hasta que se provea el secret.
|
|
300
|
+
* Estructura autoritativa: una connection no declarada se BORRA.
|
|
301
|
+
*/
|
|
302
|
+
declare const egressConnectionSchema: z.ZodObject<{
|
|
303
|
+
slug: z.ZodString;
|
|
304
|
+
description: z.ZodOptional<z.ZodString>;
|
|
305
|
+
allowedHosts: z.ZodArray<z.ZodString>;
|
|
306
|
+
authType: z.ZodOptional<z.ZodEnum<{
|
|
307
|
+
none: "none";
|
|
308
|
+
api_key: "api_key";
|
|
309
|
+
bearer: "bearer";
|
|
310
|
+
basic: "basic";
|
|
311
|
+
}>>;
|
|
312
|
+
authHeader: z.ZodOptional<z.ZodString>;
|
|
313
|
+
defaultHeaders: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
314
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
315
|
+
enabled: "enabled";
|
|
316
|
+
disabled: "disabled";
|
|
317
|
+
}>>;
|
|
318
|
+
}, z.core.$strict>;
|
|
319
|
+
type ManifestEgressConnection = z.infer<typeof egressConnectionSchema>;
|
|
320
|
+
|
|
321
|
+
/**
|
|
322
|
+
* Un rol RBAC custom de la organización, identificado por `name`. Los de sistema (owner/admin/member)
|
|
323
|
+
* no son declarables. Como una policy, un rol no declarado se BORRA (salvo en uso, anti-lockout).
|
|
324
|
+
* `permissions` está sujeto al techo de privilegio del caller.
|
|
325
|
+
*/
|
|
326
|
+
declare const roleSchema: z.ZodObject<{
|
|
327
|
+
name: z.ZodString;
|
|
328
|
+
permissions: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
329
|
+
}, z.core.$strict>;
|
|
330
|
+
type ManifestRole = z.infer<typeof roleSchema>;
|
|
331
|
+
|
|
332
|
+
/**
|
|
333
|
+
* Los ajustes horizontales por-tenant de una ORGANIZACIÓN (SINGLETON): cómo la org configura los
|
|
334
|
+
* primitivos genéricos de la plataforma. Ambos slugs deben apuntar a un object que exista o se declare
|
|
335
|
+
* en el mismo manifiesto.
|
|
336
|
+
*/
|
|
337
|
+
declare const settingsSchema: z.ZodObject<{
|
|
338
|
+
endUserObjectApiName: z.ZodOptional<z.ZodString>;
|
|
339
|
+
settingsObjectApiName: z.ZodOptional<z.ZodString>;
|
|
340
|
+
}, z.core.$strict>;
|
|
341
|
+
type ManifestSettings = z.infer<typeof settingsSchema>;
|
|
342
|
+
/** Perfil de identidad global de una PERSONA (cuenta `individual`, SINGLETON). */
|
|
343
|
+
declare const profileSchema: z.ZodObject<{
|
|
344
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
345
|
+
avatarUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
346
|
+
timeZone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
347
|
+
locale: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
348
|
+
}, z.core.$strict>;
|
|
349
|
+
type ManifestProfile = z.infer<typeof profileSchema>;
|
|
350
|
+
/** Ajustes de privacidad global de una PERSONA (cuenta `individual`, SINGLETON). */
|
|
351
|
+
declare const privacySchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
352
|
+
type ManifestPrivacy = z.infer<typeof privacySchema>;
|
|
353
|
+
|
|
354
|
+
/**
|
|
355
|
+
* El manifiesto completo de una cuenta — el contrato wire que `PUT /v1/account-config` acepta. Es la
|
|
356
|
+
* **única fuente de verdad** de la forma: de este schema deriva el JSON Schema que el backend Elixir lee,
|
|
357
|
+
* y los tipos TS que el CLI/SDK consumen. `synth()` emite exactamente esta forma.
|
|
358
|
+
*
|
|
359
|
+
* `kind` discrimina organización vs individual. `version` es read-only (lo emite `pull`, lockfile).
|
|
360
|
+
*/
|
|
361
|
+
declare const manifestSchema: z.ZodObject<{
|
|
362
|
+
kind: z.ZodOptional<z.ZodEnum<{
|
|
363
|
+
organization: "organization";
|
|
364
|
+
individual: "individual";
|
|
365
|
+
}>>;
|
|
366
|
+
version: z.ZodOptional<z.ZodString>;
|
|
367
|
+
objects: z.ZodOptional<z.ZodUnion<readonly [z.ZodArray<z.ZodObject<{
|
|
368
|
+
apiName: z.ZodString;
|
|
369
|
+
title: z.ZodOptional<z.ZodString>;
|
|
370
|
+
titleSingular: z.ZodOptional<z.ZodString>;
|
|
371
|
+
description: z.ZodOptional<z.ZodString>;
|
|
372
|
+
synonyms: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
373
|
+
config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
374
|
+
titleFieldApiName: z.ZodOptional<z.ZodString>;
|
|
375
|
+
manageability: z.ZodOptional<z.ZodEnum<{
|
|
376
|
+
tenant: "tenant";
|
|
377
|
+
seeded: "seeded";
|
|
378
|
+
system: "system";
|
|
379
|
+
}>>;
|
|
380
|
+
fields: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
381
|
+
apiName: z.ZodString;
|
|
382
|
+
title: z.ZodOptional<z.ZodString>;
|
|
383
|
+
description: z.ZodOptional<z.ZodString>;
|
|
384
|
+
synonyms: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
385
|
+
dataType: z.ZodEnum<{
|
|
386
|
+
number: "number";
|
|
387
|
+
boolean: "boolean";
|
|
388
|
+
text: "text";
|
|
389
|
+
date: "date";
|
|
390
|
+
timestamp: "timestamp";
|
|
391
|
+
select: "select";
|
|
392
|
+
multiselect: "multiselect";
|
|
393
|
+
reference: "reference";
|
|
394
|
+
file: "file";
|
|
395
|
+
formula: "formula";
|
|
396
|
+
rollup: "rollup";
|
|
397
|
+
}>;
|
|
398
|
+
isRequired: z.ZodOptional<z.ZodBoolean>;
|
|
399
|
+
isUnique: z.ZodOptional<z.ZodBoolean>;
|
|
400
|
+
isIndexed: z.ZodOptional<z.ZodBoolean>;
|
|
401
|
+
embedInVector: z.ZodOptional<z.ZodBoolean>;
|
|
402
|
+
defaultValue: z.ZodOptional<z.ZodUnknown>;
|
|
403
|
+
config: z.ZodOptional<z.ZodUnknown>;
|
|
404
|
+
}, z.core.$strict>>>;
|
|
405
|
+
reference: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
406
|
+
properties: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
407
|
+
}, z.core.$strict>>>;
|
|
408
|
+
}, z.core.$strict>>, z.ZodObject<{
|
|
409
|
+
mode: z.ZodEnum<{
|
|
410
|
+
authoritative: "authoritative";
|
|
411
|
+
additive: "additive";
|
|
412
|
+
}>;
|
|
413
|
+
items: z.ZodArray<z.ZodObject<{
|
|
414
|
+
apiName: z.ZodString;
|
|
415
|
+
title: z.ZodOptional<z.ZodString>;
|
|
416
|
+
titleSingular: z.ZodOptional<z.ZodString>;
|
|
417
|
+
description: z.ZodOptional<z.ZodString>;
|
|
418
|
+
synonyms: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
419
|
+
config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
420
|
+
titleFieldApiName: z.ZodOptional<z.ZodString>;
|
|
421
|
+
manageability: z.ZodOptional<z.ZodEnum<{
|
|
422
|
+
tenant: "tenant";
|
|
423
|
+
seeded: "seeded";
|
|
424
|
+
system: "system";
|
|
425
|
+
}>>;
|
|
426
|
+
fields: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
427
|
+
apiName: z.ZodString;
|
|
428
|
+
title: z.ZodOptional<z.ZodString>;
|
|
429
|
+
description: z.ZodOptional<z.ZodString>;
|
|
430
|
+
synonyms: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
431
|
+
dataType: z.ZodEnum<{
|
|
432
|
+
number: "number";
|
|
433
|
+
boolean: "boolean";
|
|
434
|
+
text: "text";
|
|
435
|
+
date: "date";
|
|
436
|
+
timestamp: "timestamp";
|
|
437
|
+
select: "select";
|
|
438
|
+
multiselect: "multiselect";
|
|
439
|
+
reference: "reference";
|
|
440
|
+
file: "file";
|
|
441
|
+
formula: "formula";
|
|
442
|
+
rollup: "rollup";
|
|
443
|
+
}>;
|
|
444
|
+
isRequired: z.ZodOptional<z.ZodBoolean>;
|
|
445
|
+
isUnique: z.ZodOptional<z.ZodBoolean>;
|
|
446
|
+
isIndexed: z.ZodOptional<z.ZodBoolean>;
|
|
447
|
+
embedInVector: z.ZodOptional<z.ZodBoolean>;
|
|
448
|
+
defaultValue: z.ZodOptional<z.ZodUnknown>;
|
|
449
|
+
config: z.ZodOptional<z.ZodUnknown>;
|
|
450
|
+
}, z.core.$strict>>>;
|
|
451
|
+
reference: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
452
|
+
properties: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
453
|
+
}, z.core.$strict>>>;
|
|
454
|
+
}, z.core.$strict>>;
|
|
455
|
+
}, z.core.$strict>]>>;
|
|
456
|
+
relationships: z.ZodOptional<z.ZodUnion<readonly [z.ZodArray<z.ZodObject<{
|
|
457
|
+
apiName: z.ZodString;
|
|
458
|
+
title: z.ZodOptional<z.ZodString>;
|
|
459
|
+
description: z.ZodOptional<z.ZodString>;
|
|
460
|
+
source: z.ZodString;
|
|
461
|
+
target: z.ZodString;
|
|
462
|
+
cardinality: z.ZodEnum<{
|
|
463
|
+
one_to_one: "one_to_one";
|
|
464
|
+
one_to_many: "one_to_many";
|
|
465
|
+
many_to_many: "many_to_many";
|
|
466
|
+
}>;
|
|
467
|
+
rewrite: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
468
|
+
caveat: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
469
|
+
}, z.core.$strict>>, z.ZodObject<{
|
|
470
|
+
mode: z.ZodEnum<{
|
|
471
|
+
authoritative: "authoritative";
|
|
472
|
+
additive: "additive";
|
|
473
|
+
}>;
|
|
474
|
+
items: z.ZodArray<z.ZodObject<{
|
|
475
|
+
apiName: z.ZodString;
|
|
476
|
+
title: z.ZodOptional<z.ZodString>;
|
|
477
|
+
description: z.ZodOptional<z.ZodString>;
|
|
478
|
+
source: z.ZodString;
|
|
479
|
+
target: z.ZodString;
|
|
480
|
+
cardinality: z.ZodEnum<{
|
|
481
|
+
one_to_one: "one_to_one";
|
|
482
|
+
one_to_many: "one_to_many";
|
|
483
|
+
many_to_many: "many_to_many";
|
|
484
|
+
}>;
|
|
485
|
+
rewrite: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
486
|
+
caveat: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
487
|
+
}, z.core.$strict>>;
|
|
488
|
+
}, z.core.$strict>]>>;
|
|
489
|
+
workflows: z.ZodOptional<z.ZodUnion<readonly [z.ZodArray<z.ZodObject<{
|
|
490
|
+
apiName: z.ZodString;
|
|
491
|
+
title: z.ZodOptional<z.ZodString>;
|
|
492
|
+
description: z.ZodOptional<z.ZodString>;
|
|
493
|
+
synonyms: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
494
|
+
trigger: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
495
|
+
initialState: z.ZodOptional<z.ZodString>;
|
|
496
|
+
states: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
497
|
+
}, z.core.$strict>>, z.ZodObject<{
|
|
498
|
+
mode: z.ZodEnum<{
|
|
499
|
+
authoritative: "authoritative";
|
|
500
|
+
additive: "additive";
|
|
501
|
+
}>;
|
|
502
|
+
items: z.ZodArray<z.ZodObject<{
|
|
503
|
+
apiName: z.ZodString;
|
|
504
|
+
title: z.ZodOptional<z.ZodString>;
|
|
505
|
+
description: z.ZodOptional<z.ZodString>;
|
|
506
|
+
synonyms: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
507
|
+
trigger: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
508
|
+
initialState: z.ZodOptional<z.ZodString>;
|
|
509
|
+
states: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
510
|
+
}, z.core.$strict>>;
|
|
511
|
+
}, z.core.$strict>]>>;
|
|
512
|
+
agents: z.ZodOptional<z.ZodUnion<readonly [z.ZodArray<z.ZodObject<{
|
|
513
|
+
handle: z.ZodString;
|
|
514
|
+
name: z.ZodOptional<z.ZodString>;
|
|
515
|
+
description: z.ZodOptional<z.ZodString>;
|
|
516
|
+
systemPrompt: z.ZodOptional<z.ZodString>;
|
|
517
|
+
provider: z.ZodOptional<z.ZodString>;
|
|
518
|
+
model: z.ZodOptional<z.ZodString>;
|
|
519
|
+
allowedActivities: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
520
|
+
authoritySource: z.ZodOptional<z.ZodEnum<{
|
|
521
|
+
delegated: "delegated";
|
|
522
|
+
assigned: "assigned";
|
|
523
|
+
}>>;
|
|
524
|
+
agentPermissions: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
525
|
+
handoffs: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
526
|
+
approvalRequired: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
527
|
+
ownerUserId: z.ZodOptional<z.ZodString>;
|
|
528
|
+
}, z.core.$strict>>, z.ZodObject<{
|
|
529
|
+
mode: z.ZodEnum<{
|
|
530
|
+
authoritative: "authoritative";
|
|
531
|
+
additive: "additive";
|
|
532
|
+
}>;
|
|
533
|
+
items: z.ZodArray<z.ZodObject<{
|
|
534
|
+
handle: z.ZodString;
|
|
535
|
+
name: z.ZodOptional<z.ZodString>;
|
|
536
|
+
description: z.ZodOptional<z.ZodString>;
|
|
537
|
+
systemPrompt: z.ZodOptional<z.ZodString>;
|
|
538
|
+
provider: z.ZodOptional<z.ZodString>;
|
|
539
|
+
model: z.ZodOptional<z.ZodString>;
|
|
540
|
+
allowedActivities: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
541
|
+
authoritySource: z.ZodOptional<z.ZodEnum<{
|
|
542
|
+
delegated: "delegated";
|
|
543
|
+
assigned: "assigned";
|
|
544
|
+
}>>;
|
|
545
|
+
agentPermissions: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
546
|
+
handoffs: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
547
|
+
approvalRequired: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
548
|
+
ownerUserId: z.ZodOptional<z.ZodString>;
|
|
549
|
+
}, z.core.$strict>>;
|
|
550
|
+
}, z.core.$strict>]>>;
|
|
551
|
+
transactions: z.ZodOptional<z.ZodUnion<readonly [z.ZodArray<z.ZodObject<{
|
|
552
|
+
apiName: z.ZodString;
|
|
553
|
+
title: z.ZodOptional<z.ZodString>;
|
|
554
|
+
description: z.ZodOptional<z.ZodString>;
|
|
555
|
+
synonyms: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
556
|
+
steps: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
557
|
+
id: z.ZodOptional<z.ZodString>;
|
|
558
|
+
for_each: z.ZodOptional<z.ZodString>;
|
|
559
|
+
properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
560
|
+
object: z.ZodString;
|
|
561
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
562
|
+
id: z.ZodOptional<z.ZodString>;
|
|
563
|
+
for_each: z.ZodOptional<z.ZodString>;
|
|
564
|
+
properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
565
|
+
reserve: z.ZodString;
|
|
566
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
567
|
+
id: z.ZodOptional<z.ZodString>;
|
|
568
|
+
for_each: z.ZodOptional<z.ZodString>;
|
|
569
|
+
properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
570
|
+
invoice: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
571
|
+
}, z.core.$loose>]>>;
|
|
572
|
+
}, z.core.$strict>>, z.ZodObject<{
|
|
573
|
+
mode: z.ZodEnum<{
|
|
574
|
+
authoritative: "authoritative";
|
|
575
|
+
additive: "additive";
|
|
576
|
+
}>;
|
|
577
|
+
items: z.ZodArray<z.ZodObject<{
|
|
578
|
+
apiName: z.ZodString;
|
|
579
|
+
title: z.ZodOptional<z.ZodString>;
|
|
580
|
+
description: z.ZodOptional<z.ZodString>;
|
|
581
|
+
synonyms: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
582
|
+
steps: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
583
|
+
id: z.ZodOptional<z.ZodString>;
|
|
584
|
+
for_each: z.ZodOptional<z.ZodString>;
|
|
585
|
+
properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
586
|
+
object: z.ZodString;
|
|
587
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
588
|
+
id: z.ZodOptional<z.ZodString>;
|
|
589
|
+
for_each: z.ZodOptional<z.ZodString>;
|
|
590
|
+
properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
591
|
+
reserve: z.ZodString;
|
|
592
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
593
|
+
id: z.ZodOptional<z.ZodString>;
|
|
594
|
+
for_each: z.ZodOptional<z.ZodString>;
|
|
595
|
+
properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
596
|
+
invoice: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
597
|
+
}, z.core.$loose>]>>;
|
|
598
|
+
}, z.core.$strict>>;
|
|
599
|
+
}, z.core.$strict>]>>;
|
|
600
|
+
policies: z.ZodOptional<z.ZodUnion<readonly [z.ZodArray<z.ZodObject<{
|
|
601
|
+
apiName: z.ZodString;
|
|
602
|
+
effect: z.ZodEnum<{
|
|
603
|
+
allow: "allow";
|
|
604
|
+
deny: "deny";
|
|
605
|
+
}>;
|
|
606
|
+
action: z.ZodUnion<readonly [z.ZodEnum<{
|
|
607
|
+
read: "read";
|
|
608
|
+
create: "create";
|
|
609
|
+
update: "update";
|
|
610
|
+
delete: "delete";
|
|
611
|
+
signal: "signal";
|
|
612
|
+
}>, z.ZodArray<z.ZodEnum<{
|
|
613
|
+
read: "read";
|
|
614
|
+
create: "create";
|
|
615
|
+
update: "update";
|
|
616
|
+
delete: "delete";
|
|
617
|
+
signal: "signal";
|
|
618
|
+
}>>]>;
|
|
619
|
+
principal: z.ZodString;
|
|
620
|
+
object: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
621
|
+
condition: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
622
|
+
fieldMask: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
623
|
+
}, z.core.$strict>>, z.ZodObject<{
|
|
624
|
+
mode: z.ZodEnum<{
|
|
625
|
+
authoritative: "authoritative";
|
|
626
|
+
additive: "additive";
|
|
627
|
+
}>;
|
|
628
|
+
items: z.ZodArray<z.ZodObject<{
|
|
629
|
+
apiName: z.ZodString;
|
|
630
|
+
effect: z.ZodEnum<{
|
|
631
|
+
allow: "allow";
|
|
632
|
+
deny: "deny";
|
|
633
|
+
}>;
|
|
634
|
+
action: z.ZodUnion<readonly [z.ZodEnum<{
|
|
635
|
+
read: "read";
|
|
636
|
+
create: "create";
|
|
637
|
+
update: "update";
|
|
638
|
+
delete: "delete";
|
|
639
|
+
signal: "signal";
|
|
640
|
+
}>, z.ZodArray<z.ZodEnum<{
|
|
641
|
+
read: "read";
|
|
642
|
+
create: "create";
|
|
643
|
+
update: "update";
|
|
644
|
+
delete: "delete";
|
|
645
|
+
signal: "signal";
|
|
646
|
+
}>>]>;
|
|
647
|
+
principal: z.ZodString;
|
|
648
|
+
object: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
649
|
+
condition: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
650
|
+
fieldMask: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
651
|
+
}, z.core.$strict>>;
|
|
652
|
+
}, z.core.$strict>]>>;
|
|
653
|
+
webhooks: z.ZodOptional<z.ZodUnion<readonly [z.ZodArray<z.ZodObject<{
|
|
654
|
+
slug: z.ZodString;
|
|
655
|
+
url: z.ZodString;
|
|
656
|
+
enabledEvents: z.ZodArray<z.ZodString>;
|
|
657
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
658
|
+
enabled: "enabled";
|
|
659
|
+
disabled: "disabled";
|
|
660
|
+
}>>;
|
|
661
|
+
}, z.core.$strict>>, z.ZodObject<{
|
|
662
|
+
mode: z.ZodEnum<{
|
|
663
|
+
authoritative: "authoritative";
|
|
664
|
+
additive: "additive";
|
|
665
|
+
}>;
|
|
666
|
+
items: z.ZodArray<z.ZodObject<{
|
|
667
|
+
slug: z.ZodString;
|
|
668
|
+
url: z.ZodString;
|
|
669
|
+
enabledEvents: z.ZodArray<z.ZodString>;
|
|
670
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
671
|
+
enabled: "enabled";
|
|
672
|
+
disabled: "disabled";
|
|
673
|
+
}>>;
|
|
674
|
+
}, z.core.$strict>>;
|
|
675
|
+
}, z.core.$strict>]>>;
|
|
676
|
+
egressConnections: z.ZodOptional<z.ZodUnion<readonly [z.ZodArray<z.ZodObject<{
|
|
677
|
+
slug: z.ZodString;
|
|
678
|
+
description: z.ZodOptional<z.ZodString>;
|
|
679
|
+
allowedHosts: z.ZodArray<z.ZodString>;
|
|
680
|
+
authType: z.ZodOptional<z.ZodEnum<{
|
|
681
|
+
none: "none";
|
|
682
|
+
api_key: "api_key";
|
|
683
|
+
bearer: "bearer";
|
|
684
|
+
basic: "basic";
|
|
685
|
+
}>>;
|
|
686
|
+
authHeader: z.ZodOptional<z.ZodString>;
|
|
687
|
+
defaultHeaders: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
688
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
689
|
+
enabled: "enabled";
|
|
690
|
+
disabled: "disabled";
|
|
691
|
+
}>>;
|
|
692
|
+
}, z.core.$strict>>, z.ZodObject<{
|
|
693
|
+
mode: z.ZodEnum<{
|
|
694
|
+
authoritative: "authoritative";
|
|
695
|
+
additive: "additive";
|
|
696
|
+
}>;
|
|
697
|
+
items: z.ZodArray<z.ZodObject<{
|
|
698
|
+
slug: z.ZodString;
|
|
699
|
+
description: z.ZodOptional<z.ZodString>;
|
|
700
|
+
allowedHosts: z.ZodArray<z.ZodString>;
|
|
701
|
+
authType: z.ZodOptional<z.ZodEnum<{
|
|
702
|
+
none: "none";
|
|
703
|
+
api_key: "api_key";
|
|
704
|
+
bearer: "bearer";
|
|
705
|
+
basic: "basic";
|
|
706
|
+
}>>;
|
|
707
|
+
authHeader: z.ZodOptional<z.ZodString>;
|
|
708
|
+
defaultHeaders: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
709
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
710
|
+
enabled: "enabled";
|
|
711
|
+
disabled: "disabled";
|
|
712
|
+
}>>;
|
|
713
|
+
}, z.core.$strict>>;
|
|
714
|
+
}, z.core.$strict>]>>;
|
|
715
|
+
roles: z.ZodOptional<z.ZodUnion<readonly [z.ZodArray<z.ZodObject<{
|
|
716
|
+
name: z.ZodString;
|
|
717
|
+
permissions: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
718
|
+
}, z.core.$strict>>, z.ZodObject<{
|
|
719
|
+
mode: z.ZodEnum<{
|
|
720
|
+
authoritative: "authoritative";
|
|
721
|
+
additive: "additive";
|
|
722
|
+
}>;
|
|
723
|
+
items: z.ZodArray<z.ZodObject<{
|
|
724
|
+
name: z.ZodString;
|
|
725
|
+
permissions: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
726
|
+
}, z.core.$strict>>;
|
|
727
|
+
}, z.core.$strict>]>>;
|
|
728
|
+
sso: z.ZodOptional<z.ZodUnion<readonly [z.ZodArray<z.ZodObject<{
|
|
729
|
+
protocol: z.ZodEnum<{
|
|
730
|
+
saml: "saml";
|
|
731
|
+
oidc: "oidc";
|
|
732
|
+
}>;
|
|
733
|
+
emailDomain: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
734
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
735
|
+
idpMetadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
736
|
+
}, z.core.$strict>>, z.ZodObject<{
|
|
737
|
+
mode: z.ZodEnum<{
|
|
738
|
+
authoritative: "authoritative";
|
|
739
|
+
additive: "additive";
|
|
740
|
+
}>;
|
|
741
|
+
items: z.ZodArray<z.ZodObject<{
|
|
742
|
+
protocol: z.ZodEnum<{
|
|
743
|
+
saml: "saml";
|
|
744
|
+
oidc: "oidc";
|
|
745
|
+
}>;
|
|
746
|
+
emailDomain: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
747
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
748
|
+
idpMetadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
749
|
+
}, z.core.$strict>>;
|
|
750
|
+
}, z.core.$strict>]>>;
|
|
751
|
+
domains: z.ZodOptional<z.ZodUnion<readonly [z.ZodArray<z.ZodObject<{
|
|
752
|
+
domain: z.ZodString;
|
|
753
|
+
status: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
754
|
+
error: "error";
|
|
755
|
+
pending: "pending";
|
|
756
|
+
verifying: "verifying";
|
|
757
|
+
active: "active";
|
|
758
|
+
}>>>;
|
|
759
|
+
}, z.core.$strict>>, z.ZodObject<{
|
|
760
|
+
mode: z.ZodEnum<{
|
|
761
|
+
authoritative: "authoritative";
|
|
762
|
+
additive: "additive";
|
|
763
|
+
}>;
|
|
764
|
+
items: z.ZodArray<z.ZodObject<{
|
|
765
|
+
domain: z.ZodString;
|
|
766
|
+
status: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
767
|
+
error: "error";
|
|
768
|
+
pending: "pending";
|
|
769
|
+
verifying: "verifying";
|
|
770
|
+
active: "active";
|
|
771
|
+
}>>>;
|
|
772
|
+
}, z.core.$strict>>;
|
|
773
|
+
}, z.core.$strict>]>>;
|
|
774
|
+
invitations: z.ZodOptional<z.ZodUnion<readonly [z.ZodArray<z.ZodObject<{
|
|
775
|
+
email: z.ZodString;
|
|
776
|
+
role: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
777
|
+
}, z.core.$strict>>, z.ZodObject<{
|
|
778
|
+
mode: z.ZodEnum<{
|
|
779
|
+
authoritative: "authoritative";
|
|
780
|
+
additive: "additive";
|
|
781
|
+
}>;
|
|
782
|
+
items: z.ZodArray<z.ZodObject<{
|
|
783
|
+
email: z.ZodString;
|
|
784
|
+
role: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
785
|
+
}, z.core.$strict>>;
|
|
786
|
+
}, z.core.$strict>]>>;
|
|
787
|
+
spaces: z.ZodOptional<z.ZodUnion<readonly [z.ZodArray<z.ZodObject<{
|
|
788
|
+
slug: z.ZodString;
|
|
789
|
+
title: z.ZodString;
|
|
790
|
+
topic: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
791
|
+
avatarUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
792
|
+
}, z.core.$strict>>, z.ZodObject<{
|
|
793
|
+
mode: z.ZodEnum<{
|
|
794
|
+
authoritative: "authoritative";
|
|
795
|
+
additive: "additive";
|
|
796
|
+
}>;
|
|
797
|
+
items: z.ZodArray<z.ZodObject<{
|
|
798
|
+
slug: z.ZodString;
|
|
799
|
+
title: z.ZodString;
|
|
800
|
+
topic: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
801
|
+
avatarUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
802
|
+
}, z.core.$strict>>;
|
|
803
|
+
}, z.core.$strict>]>>;
|
|
804
|
+
channels: z.ZodOptional<z.ZodUnion<readonly [z.ZodArray<z.ZodObject<{
|
|
805
|
+
slug: z.ZodString;
|
|
806
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
807
|
+
topic: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
808
|
+
avatarUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
809
|
+
isPrivate: z.ZodOptional<z.ZodBoolean>;
|
|
810
|
+
isBroadcast: z.ZodOptional<z.ZodBoolean>;
|
|
811
|
+
space: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
812
|
+
initialMembers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
813
|
+
user: z.ZodString;
|
|
814
|
+
role: z.ZodOptional<z.ZodEnum<{
|
|
815
|
+
owner: "owner";
|
|
816
|
+
admin: "admin";
|
|
817
|
+
member: "member";
|
|
818
|
+
}>>;
|
|
819
|
+
}, z.core.$strict>>>;
|
|
820
|
+
agents: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
821
|
+
handle: z.ZodString;
|
|
822
|
+
role: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
823
|
+
admin: "admin";
|
|
824
|
+
member: "member";
|
|
825
|
+
}>>>;
|
|
826
|
+
}, z.core.$strict>>>;
|
|
827
|
+
}, z.core.$strict>>, z.ZodObject<{
|
|
828
|
+
mode: z.ZodEnum<{
|
|
829
|
+
authoritative: "authoritative";
|
|
830
|
+
additive: "additive";
|
|
831
|
+
}>;
|
|
832
|
+
items: z.ZodArray<z.ZodObject<{
|
|
833
|
+
slug: z.ZodString;
|
|
834
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
835
|
+
topic: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
836
|
+
avatarUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
837
|
+
isPrivate: z.ZodOptional<z.ZodBoolean>;
|
|
838
|
+
isBroadcast: z.ZodOptional<z.ZodBoolean>;
|
|
839
|
+
space: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
840
|
+
initialMembers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
841
|
+
user: z.ZodString;
|
|
842
|
+
role: z.ZodOptional<z.ZodEnum<{
|
|
843
|
+
owner: "owner";
|
|
844
|
+
admin: "admin";
|
|
845
|
+
member: "member";
|
|
846
|
+
}>>;
|
|
847
|
+
}, z.core.$strict>>>;
|
|
848
|
+
agents: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
849
|
+
handle: z.ZodString;
|
|
850
|
+
role: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
851
|
+
admin: "admin";
|
|
852
|
+
member: "member";
|
|
853
|
+
}>>>;
|
|
854
|
+
}, z.core.$strict>>>;
|
|
855
|
+
}, z.core.$strict>>;
|
|
856
|
+
}, z.core.$strict>]>>;
|
|
857
|
+
packages: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
858
|
+
settings: z.ZodOptional<z.ZodObject<{
|
|
859
|
+
endUserObjectApiName: z.ZodOptional<z.ZodString>;
|
|
860
|
+
settingsObjectApiName: z.ZodOptional<z.ZodString>;
|
|
861
|
+
}, z.core.$strict>>;
|
|
862
|
+
profile: z.ZodOptional<z.ZodObject<{
|
|
863
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
864
|
+
avatarUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
865
|
+
timeZone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
866
|
+
locale: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
867
|
+
}, z.core.$strict>>;
|
|
868
|
+
privacy: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
869
|
+
}, z.core.$strict>;
|
|
870
|
+
type Unwrap<T> = T extends readonly unknown[] ? T : T extends {
|
|
871
|
+
items: infer I;
|
|
872
|
+
} ? I : T;
|
|
873
|
+
type Manifest = {
|
|
874
|
+
[K in keyof z.infer<typeof manifestSchema>]?: Unwrap<NonNullable<z.infer<typeof manifestSchema>[K]>>;
|
|
875
|
+
};
|
|
876
|
+
|
|
877
|
+
export { webhookStatusEnum as $, type AccountKind as A, inputDataTypes as B, type Cardinality as C, type DataType as D, type EgressAuthType as E, isDerivedDataType as F, manageabilityEnum as G, manifestSchema as H, optionsDataTypes as I, policyActionEnum as J, policyEffectEnum as K, policySchema as L, type Manifest as M, privacySchema as N, profileSchema as O, type PolicyAction as P, relationshipSchema as Q, roleSchema as R, type SectionMode as S, rollupAggregates as T, sectionModeEnum as U, settingsSchema as V, type WebhookStatus as W, transactionSchema as X, transactionStepSchema as Y, uniqueIncompatibleDataTypes as Z, webhookEndpointSchema as _, type AuthoritySource as a, workflowSchema as a0, type DerivedDataType as b, type EgressStatus as c, type Manageability as d, type ManifestAgent as e, type ManifestEgressConnection as f, type ManifestPolicy as g, type ManifestPrivacy as h, type ManifestProfile as i, type ManifestRelationship as j, type ManifestRole as k, type ManifestSettings as l, type ManifestTransaction as m, type ManifestWebhookEndpoint as n, type ManifestWorkflow as o, type PolicyEffect as p, accountKindEnum as q, agentSchema as r, authoritySourceEnum as s, cardinalityEnum as t, dataTypeEnum as u, derivedDataTypes as v, egressAuthTypeEnum as w, egressConnectionSchema as x, egressStatusEnum as y, formulaResultTypes as z };
|