@choiceopen/atomemo-plugin-schema 0.1.5 → 0.1.6

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/schemas.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { K as JsonValueSchema, c as DisplayCondition, q as I18nText, u as Property } from "./types-C8H4qnkM.js";
1
+ import { K as JsonValueSchema, c as DisplayCondition, q as I18nText, u as Property } from "./types-P4MROouJ.js";
2
2
  import { z } from "zod";
3
3
  import * as type_fest0 from "type-fest";
4
4
  import { JsonValue } from "type-fest";
@@ -38,22 +38,22 @@ declare const PluginDefinitionSchema: z.ZodObject<{
38
38
  declare const CredentialDefinitionSchema: z.ZodObject<{
39
39
  parameters: z.ZodLazy<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
40
40
  name: z.ZodString;
41
- display_name: z.ZodOptional<z.ZodCustom<I18nText, I18nText>>;
42
- required: z.ZodOptional<z.ZodBoolean>;
43
- display: z.ZodOptional<z.ZodObject<{
44
- hide: z.ZodOptional<z.ZodType<DisplayCondition, unknown, z.core.$ZodTypeInternals<DisplayCondition, unknown>>>;
45
- show: z.ZodOptional<z.ZodType<DisplayCondition, unknown, z.core.$ZodTypeInternals<DisplayCondition, unknown>>>;
46
- }, z.core.$strip>>;
47
- ai: z.ZodOptional<z.ZodObject<{
48
- llm_description: z.ZodOptional<z.ZodCustom<I18nText, I18nText>>;
49
- }, z.core.$strip>>;
41
+ display_name: z.ZodOptional<z.ZodNullable<z.ZodCustom<I18nText, I18nText>>>;
42
+ required: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
43
+ display: z.ZodOptional<z.ZodNullable<z.ZodObject<{
44
+ hide: z.ZodOptional<z.ZodNullable<z.ZodType<DisplayCondition, unknown, z.core.$ZodTypeInternals<DisplayCondition, unknown>>>>;
45
+ show: z.ZodOptional<z.ZodNullable<z.ZodType<DisplayCondition, unknown, z.core.$ZodTypeInternals<DisplayCondition, unknown>>>>;
46
+ }, z.core.$strip>>>;
47
+ ai: z.ZodOptional<z.ZodNullable<z.ZodObject<{
48
+ llm_description: z.ZodOptional<z.ZodNullable<z.ZodCustom<I18nText, I18nText>>>;
49
+ }, z.core.$strip>>>;
50
50
  type: z.ZodLiteral<"string">;
51
- constant: z.ZodOptional<z.ZodString>;
52
- default: z.ZodOptional<z.ZodString>;
53
- enum: z.ZodOptional<z.ZodArray<z.ZodString>>;
54
- max_length: z.ZodOptional<z.ZodNumber>;
55
- min_length: z.ZodOptional<z.ZodNumber>;
56
- ui: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
51
+ constant: z.ZodOptional<z.ZodNullable<z.ZodString>>;
52
+ default: z.ZodOptional<z.ZodNullable<z.ZodString>>;
53
+ enum: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
54
+ max_length: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
55
+ min_length: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
56
+ ui: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
57
57
  disabled: z.ZodOptional<z.ZodBoolean>;
58
58
  hint: z.ZodOptional<z.ZodCustom<I18nText, I18nText>>;
59
59
  placeholder: z.ZodOptional<z.ZodCustom<I18nText, I18nText>>;
@@ -207,23 +207,23 @@ declare const CredentialDefinitionSchema: z.ZodObject<{
207
207
  indentation: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<2>, z.ZodLiteral<4>, z.ZodLiteral<6>, z.ZodLiteral<8>, z.ZodLiteral<10>, z.ZodLiteral<12>, z.ZodLiteral<14>, z.ZodLiteral<16>, z.ZodLiteral<18>, z.ZodLiteral<20>, z.ZodLiteral<22>, z.ZodLiteral<24>, z.ZodLiteral<26>, z.ZodLiteral<28>, z.ZodLiteral<30>, z.ZodLiteral<32>, z.ZodLiteral<34>, z.ZodLiteral<36>, z.ZodLiteral<38>, z.ZodLiteral<40>, z.ZodLiteral<42>, z.ZodLiteral<44>, z.ZodLiteral<46>, z.ZodLiteral<48>, z.ZodLiteral<50>, z.ZodLiteral<52>, z.ZodLiteral<54>, z.ZodLiteral<56>, z.ZodLiteral<58>, z.ZodLiteral<60>, z.ZodLiteral<62>, z.ZodLiteral<64>, z.ZodLiteral<66>, z.ZodLiteral<68>, z.ZodLiteral<70>, z.ZodLiteral<72>, z.ZodLiteral<74>, z.ZodLiteral<76>, z.ZodLiteral<78>, z.ZodLiteral<80>]>>;
208
208
  display_none: z.ZodOptional<z.ZodBoolean>;
209
209
  component: z.ZodLiteral<"color-picker">;
210
- }, z.core.$strip>], "component">>;
210
+ }, z.core.$strip>], "component">>>;
211
211
  }, z.core.$strip>, z.ZodObject<{
212
212
  name: z.ZodString;
213
- display_name: z.ZodOptional<z.ZodCustom<I18nText, I18nText>>;
214
- required: z.ZodOptional<z.ZodBoolean>;
215
- display: z.ZodOptional<z.ZodObject<{
216
- hide: z.ZodOptional<z.ZodType<DisplayCondition, unknown, z.core.$ZodTypeInternals<DisplayCondition, unknown>>>;
217
- show: z.ZodOptional<z.ZodType<DisplayCondition, unknown, z.core.$ZodTypeInternals<DisplayCondition, unknown>>>;
218
- }, z.core.$strip>>;
219
- ai: z.ZodOptional<z.ZodObject<{
220
- llm_description: z.ZodOptional<z.ZodCustom<I18nText, I18nText>>;
221
- }, z.core.$strip>>;
213
+ display_name: z.ZodOptional<z.ZodNullable<z.ZodCustom<I18nText, I18nText>>>;
214
+ required: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
215
+ display: z.ZodOptional<z.ZodNullable<z.ZodObject<{
216
+ hide: z.ZodOptional<z.ZodNullable<z.ZodType<DisplayCondition, unknown, z.core.$ZodTypeInternals<DisplayCondition, unknown>>>>;
217
+ show: z.ZodOptional<z.ZodNullable<z.ZodType<DisplayCondition, unknown, z.core.$ZodTypeInternals<DisplayCondition, unknown>>>>;
218
+ }, z.core.$strip>>>;
219
+ ai: z.ZodOptional<z.ZodNullable<z.ZodObject<{
220
+ llm_description: z.ZodOptional<z.ZodNullable<z.ZodCustom<I18nText, I18nText>>>;
221
+ }, z.core.$strip>>>;
222
222
  type: z.ZodLiteral<"boolean">;
223
- constant: z.ZodOptional<z.ZodBoolean>;
224
- default: z.ZodOptional<z.ZodBoolean>;
225
- enum: z.ZodOptional<z.ZodArray<z.ZodBoolean>>;
226
- ui: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
223
+ constant: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
224
+ default: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
225
+ enum: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodBoolean>>>;
226
+ ui: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
227
227
  disabled: z.ZodOptional<z.ZodBoolean>;
228
228
  hint: z.ZodOptional<z.ZodCustom<I18nText, I18nText>>;
229
229
  placeholder: z.ZodOptional<z.ZodCustom<I18nText, I18nText>>;
@@ -238,25 +238,25 @@ declare const CredentialDefinitionSchema: z.ZodObject<{
238
238
  indentation: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<2>, z.ZodLiteral<4>, z.ZodLiteral<6>, z.ZodLiteral<8>, z.ZodLiteral<10>, z.ZodLiteral<12>, z.ZodLiteral<14>, z.ZodLiteral<16>, z.ZodLiteral<18>, z.ZodLiteral<20>, z.ZodLiteral<22>, z.ZodLiteral<24>, z.ZodLiteral<26>, z.ZodLiteral<28>, z.ZodLiteral<30>, z.ZodLiteral<32>, z.ZodLiteral<34>, z.ZodLiteral<36>, z.ZodLiteral<38>, z.ZodLiteral<40>, z.ZodLiteral<42>, z.ZodLiteral<44>, z.ZodLiteral<46>, z.ZodLiteral<48>, z.ZodLiteral<50>, z.ZodLiteral<52>, z.ZodLiteral<54>, z.ZodLiteral<56>, z.ZodLiteral<58>, z.ZodLiteral<60>, z.ZodLiteral<62>, z.ZodLiteral<64>, z.ZodLiteral<66>, z.ZodLiteral<68>, z.ZodLiteral<70>, z.ZodLiteral<72>, z.ZodLiteral<74>, z.ZodLiteral<76>, z.ZodLiteral<78>, z.ZodLiteral<80>]>>;
239
239
  display_none: z.ZodOptional<z.ZodBoolean>;
240
240
  component: z.ZodLiteral<"switch">;
241
- }, z.core.$strip>], "component">>;
241
+ }, z.core.$strip>], "component">>>;
242
242
  }, z.core.$strip>, z.ZodObject<{
243
243
  name: z.ZodString;
244
- display_name: z.ZodOptional<z.ZodCustom<I18nText, I18nText>>;
245
- required: z.ZodOptional<z.ZodBoolean>;
246
- display: z.ZodOptional<z.ZodObject<{
247
- hide: z.ZodOptional<z.ZodType<DisplayCondition, unknown, z.core.$ZodTypeInternals<DisplayCondition, unknown>>>;
248
- show: z.ZodOptional<z.ZodType<DisplayCondition, unknown, z.core.$ZodTypeInternals<DisplayCondition, unknown>>>;
249
- }, z.core.$strip>>;
250
- ai: z.ZodOptional<z.ZodObject<{
251
- llm_description: z.ZodOptional<z.ZodCustom<I18nText, I18nText>>;
252
- }, z.core.$strip>>;
244
+ display_name: z.ZodOptional<z.ZodNullable<z.ZodCustom<I18nText, I18nText>>>;
245
+ required: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
246
+ display: z.ZodOptional<z.ZodNullable<z.ZodObject<{
247
+ hide: z.ZodOptional<z.ZodNullable<z.ZodType<DisplayCondition, unknown, z.core.$ZodTypeInternals<DisplayCondition, unknown>>>>;
248
+ show: z.ZodOptional<z.ZodNullable<z.ZodType<DisplayCondition, unknown, z.core.$ZodTypeInternals<DisplayCondition, unknown>>>>;
249
+ }, z.core.$strip>>>;
250
+ ai: z.ZodOptional<z.ZodNullable<z.ZodObject<{
251
+ llm_description: z.ZodOptional<z.ZodNullable<z.ZodCustom<I18nText, I18nText>>>;
252
+ }, z.core.$strip>>>;
253
253
  type: z.ZodUnion<readonly [z.ZodLiteral<"number">, z.ZodLiteral<"integer">]>;
254
- constant: z.ZodOptional<z.ZodNumber>;
255
- default: z.ZodOptional<z.ZodNumber>;
256
- enum: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
257
- maximum: z.ZodOptional<z.ZodNumber>;
258
- minimum: z.ZodOptional<z.ZodNumber>;
259
- ui: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
254
+ constant: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
255
+ default: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
256
+ enum: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
257
+ maximum: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
258
+ minimum: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
259
+ ui: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
260
260
  disabled: z.ZodOptional<z.ZodBoolean>;
261
261
  hint: z.ZodOptional<z.ZodCustom<I18nText, I18nText>>;
262
262
  placeholder: z.ZodOptional<z.ZodCustom<I18nText, I18nText>>;
@@ -291,20 +291,20 @@ declare const CredentialDefinitionSchema: z.ZodObject<{
291
291
  marks: z.ZodOptional<z.ZodRecord<z.ZodNumber, z.ZodString>>;
292
292
  show_value: z.ZodOptional<z.ZodBoolean>;
293
293
  step: z.ZodOptional<z.ZodNumber>;
294
- }, z.core.$strip>], "component">>;
294
+ }, z.core.$strip>], "component">>>;
295
295
  }, z.core.$strip>, z.ZodObject<{
296
296
  name: z.ZodString;
297
- display_name: z.ZodOptional<z.ZodCustom<I18nText, I18nText>>;
298
- required: z.ZodOptional<z.ZodBoolean>;
299
- display: z.ZodOptional<z.ZodObject<{
300
- hide: z.ZodOptional<z.ZodType<DisplayCondition, unknown, z.core.$ZodTypeInternals<DisplayCondition, unknown>>>;
301
- show: z.ZodOptional<z.ZodType<DisplayCondition, unknown, z.core.$ZodTypeInternals<DisplayCondition, unknown>>>;
302
- }, z.core.$strip>>;
303
- ai: z.ZodOptional<z.ZodObject<{
304
- llm_description: z.ZodOptional<z.ZodCustom<I18nText, I18nText>>;
305
- }, z.core.$strip>>;
297
+ display_name: z.ZodOptional<z.ZodNullable<z.ZodCustom<I18nText, I18nText>>>;
298
+ required: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
299
+ display: z.ZodOptional<z.ZodNullable<z.ZodObject<{
300
+ hide: z.ZodOptional<z.ZodNullable<z.ZodType<DisplayCondition, unknown, z.core.$ZodTypeInternals<DisplayCondition, unknown>>>>;
301
+ show: z.ZodOptional<z.ZodNullable<z.ZodType<DisplayCondition, unknown, z.core.$ZodTypeInternals<DisplayCondition, unknown>>>>;
302
+ }, z.core.$strip>>>;
303
+ ai: z.ZodOptional<z.ZodNullable<z.ZodObject<{
304
+ llm_description: z.ZodOptional<z.ZodNullable<z.ZodCustom<I18nText, I18nText>>>;
305
+ }, z.core.$strip>>>;
306
306
  type: z.ZodLiteral<"encrypted_string">;
307
- ui: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
307
+ ui: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
308
308
  disabled: z.ZodOptional<z.ZodBoolean>;
309
309
  hint: z.ZodOptional<z.ZodCustom<I18nText, I18nText>>;
310
310
  placeholder: z.ZodOptional<z.ZodCustom<I18nText, I18nText>>;
@@ -319,7 +319,7 @@ declare const CredentialDefinitionSchema: z.ZodObject<{
319
319
  indentation: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<2>, z.ZodLiteral<4>, z.ZodLiteral<6>, z.ZodLiteral<8>, z.ZodLiteral<10>, z.ZodLiteral<12>, z.ZodLiteral<14>, z.ZodLiteral<16>, z.ZodLiteral<18>, z.ZodLiteral<20>, z.ZodLiteral<22>, z.ZodLiteral<24>, z.ZodLiteral<26>, z.ZodLiteral<28>, z.ZodLiteral<30>, z.ZodLiteral<32>, z.ZodLiteral<34>, z.ZodLiteral<36>, z.ZodLiteral<38>, z.ZodLiteral<40>, z.ZodLiteral<42>, z.ZodLiteral<44>, z.ZodLiteral<46>, z.ZodLiteral<48>, z.ZodLiteral<50>, z.ZodLiteral<52>, z.ZodLiteral<54>, z.ZodLiteral<56>, z.ZodLiteral<58>, z.ZodLiteral<60>, z.ZodLiteral<62>, z.ZodLiteral<64>, z.ZodLiteral<66>, z.ZodLiteral<68>, z.ZodLiteral<70>, z.ZodLiteral<72>, z.ZodLiteral<74>, z.ZodLiteral<76>, z.ZodLiteral<78>, z.ZodLiteral<80>]>>;
320
320
  display_none: z.ZodOptional<z.ZodBoolean>;
321
321
  component: z.ZodLiteral<"encrypted-input">;
322
- }, z.core.$strip>], "component">>;
322
+ }, z.core.$strip>], "component">>>;
323
323
  }, z.core.$strip>]>>>;
324
324
  name: z.ZodString;
325
325
  display_name: z.ZodCustom<I18nText, I18nText>;
@@ -329,22 +329,22 @@ declare const CredentialDefinitionSchema: z.ZodObject<{
329
329
  declare const DataSourceDefinitionSchema: z.ZodObject<{
330
330
  parameters: z.ZodLazy<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
331
331
  name: z.ZodString;
332
- display_name: z.ZodOptional<z.ZodCustom<I18nText, I18nText>>;
333
- required: z.ZodOptional<z.ZodBoolean>;
334
- display: z.ZodOptional<z.ZodObject<{
335
- hide: z.ZodOptional<z.ZodType<DisplayCondition, unknown, z.core.$ZodTypeInternals<DisplayCondition, unknown>>>;
336
- show: z.ZodOptional<z.ZodType<DisplayCondition, unknown, z.core.$ZodTypeInternals<DisplayCondition, unknown>>>;
337
- }, z.core.$strip>>;
338
- ai: z.ZodOptional<z.ZodObject<{
339
- llm_description: z.ZodOptional<z.ZodCustom<I18nText, I18nText>>;
340
- }, z.core.$strip>>;
332
+ display_name: z.ZodOptional<z.ZodNullable<z.ZodCustom<I18nText, I18nText>>>;
333
+ required: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
334
+ display: z.ZodOptional<z.ZodNullable<z.ZodObject<{
335
+ hide: z.ZodOptional<z.ZodNullable<z.ZodType<DisplayCondition, unknown, z.core.$ZodTypeInternals<DisplayCondition, unknown>>>>;
336
+ show: z.ZodOptional<z.ZodNullable<z.ZodType<DisplayCondition, unknown, z.core.$ZodTypeInternals<DisplayCondition, unknown>>>>;
337
+ }, z.core.$strip>>>;
338
+ ai: z.ZodOptional<z.ZodNullable<z.ZodObject<{
339
+ llm_description: z.ZodOptional<z.ZodNullable<z.ZodCustom<I18nText, I18nText>>>;
340
+ }, z.core.$strip>>>;
341
341
  type: z.ZodLiteral<"string">;
342
- constant: z.ZodOptional<z.ZodString>;
343
- default: z.ZodOptional<z.ZodString>;
344
- enum: z.ZodOptional<z.ZodArray<z.ZodString>>;
345
- max_length: z.ZodOptional<z.ZodNumber>;
346
- min_length: z.ZodOptional<z.ZodNumber>;
347
- ui: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
342
+ constant: z.ZodOptional<z.ZodNullable<z.ZodString>>;
343
+ default: z.ZodOptional<z.ZodNullable<z.ZodString>>;
344
+ enum: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
345
+ max_length: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
346
+ min_length: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
347
+ ui: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
348
348
  disabled: z.ZodOptional<z.ZodBoolean>;
349
349
  hint: z.ZodOptional<z.ZodCustom<I18nText, I18nText>>;
350
350
  placeholder: z.ZodOptional<z.ZodCustom<I18nText, I18nText>>;
@@ -498,23 +498,23 @@ declare const DataSourceDefinitionSchema: z.ZodObject<{
498
498
  indentation: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<2>, z.ZodLiteral<4>, z.ZodLiteral<6>, z.ZodLiteral<8>, z.ZodLiteral<10>, z.ZodLiteral<12>, z.ZodLiteral<14>, z.ZodLiteral<16>, z.ZodLiteral<18>, z.ZodLiteral<20>, z.ZodLiteral<22>, z.ZodLiteral<24>, z.ZodLiteral<26>, z.ZodLiteral<28>, z.ZodLiteral<30>, z.ZodLiteral<32>, z.ZodLiteral<34>, z.ZodLiteral<36>, z.ZodLiteral<38>, z.ZodLiteral<40>, z.ZodLiteral<42>, z.ZodLiteral<44>, z.ZodLiteral<46>, z.ZodLiteral<48>, z.ZodLiteral<50>, z.ZodLiteral<52>, z.ZodLiteral<54>, z.ZodLiteral<56>, z.ZodLiteral<58>, z.ZodLiteral<60>, z.ZodLiteral<62>, z.ZodLiteral<64>, z.ZodLiteral<66>, z.ZodLiteral<68>, z.ZodLiteral<70>, z.ZodLiteral<72>, z.ZodLiteral<74>, z.ZodLiteral<76>, z.ZodLiteral<78>, z.ZodLiteral<80>]>>;
499
499
  display_none: z.ZodOptional<z.ZodBoolean>;
500
500
  component: z.ZodLiteral<"color-picker">;
501
- }, z.core.$strip>], "component">>;
501
+ }, z.core.$strip>], "component">>>;
502
502
  }, z.core.$strip>, z.ZodObject<{
503
503
  name: z.ZodString;
504
- display_name: z.ZodOptional<z.ZodCustom<I18nText, I18nText>>;
505
- required: z.ZodOptional<z.ZodBoolean>;
506
- display: z.ZodOptional<z.ZodObject<{
507
- hide: z.ZodOptional<z.ZodType<DisplayCondition, unknown, z.core.$ZodTypeInternals<DisplayCondition, unknown>>>;
508
- show: z.ZodOptional<z.ZodType<DisplayCondition, unknown, z.core.$ZodTypeInternals<DisplayCondition, unknown>>>;
509
- }, z.core.$strip>>;
510
- ai: z.ZodOptional<z.ZodObject<{
511
- llm_description: z.ZodOptional<z.ZodCustom<I18nText, I18nText>>;
512
- }, z.core.$strip>>;
504
+ display_name: z.ZodOptional<z.ZodNullable<z.ZodCustom<I18nText, I18nText>>>;
505
+ required: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
506
+ display: z.ZodOptional<z.ZodNullable<z.ZodObject<{
507
+ hide: z.ZodOptional<z.ZodNullable<z.ZodType<DisplayCondition, unknown, z.core.$ZodTypeInternals<DisplayCondition, unknown>>>>;
508
+ show: z.ZodOptional<z.ZodNullable<z.ZodType<DisplayCondition, unknown, z.core.$ZodTypeInternals<DisplayCondition, unknown>>>>;
509
+ }, z.core.$strip>>>;
510
+ ai: z.ZodOptional<z.ZodNullable<z.ZodObject<{
511
+ llm_description: z.ZodOptional<z.ZodNullable<z.ZodCustom<I18nText, I18nText>>>;
512
+ }, z.core.$strip>>>;
513
513
  type: z.ZodLiteral<"boolean">;
514
- constant: z.ZodOptional<z.ZodBoolean>;
515
- default: z.ZodOptional<z.ZodBoolean>;
516
- enum: z.ZodOptional<z.ZodArray<z.ZodBoolean>>;
517
- ui: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
514
+ constant: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
515
+ default: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
516
+ enum: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodBoolean>>>;
517
+ ui: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
518
518
  disabled: z.ZodOptional<z.ZodBoolean>;
519
519
  hint: z.ZodOptional<z.ZodCustom<I18nText, I18nText>>;
520
520
  placeholder: z.ZodOptional<z.ZodCustom<I18nText, I18nText>>;
@@ -529,25 +529,25 @@ declare const DataSourceDefinitionSchema: z.ZodObject<{
529
529
  indentation: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<2>, z.ZodLiteral<4>, z.ZodLiteral<6>, z.ZodLiteral<8>, z.ZodLiteral<10>, z.ZodLiteral<12>, z.ZodLiteral<14>, z.ZodLiteral<16>, z.ZodLiteral<18>, z.ZodLiteral<20>, z.ZodLiteral<22>, z.ZodLiteral<24>, z.ZodLiteral<26>, z.ZodLiteral<28>, z.ZodLiteral<30>, z.ZodLiteral<32>, z.ZodLiteral<34>, z.ZodLiteral<36>, z.ZodLiteral<38>, z.ZodLiteral<40>, z.ZodLiteral<42>, z.ZodLiteral<44>, z.ZodLiteral<46>, z.ZodLiteral<48>, z.ZodLiteral<50>, z.ZodLiteral<52>, z.ZodLiteral<54>, z.ZodLiteral<56>, z.ZodLiteral<58>, z.ZodLiteral<60>, z.ZodLiteral<62>, z.ZodLiteral<64>, z.ZodLiteral<66>, z.ZodLiteral<68>, z.ZodLiteral<70>, z.ZodLiteral<72>, z.ZodLiteral<74>, z.ZodLiteral<76>, z.ZodLiteral<78>, z.ZodLiteral<80>]>>;
530
530
  display_none: z.ZodOptional<z.ZodBoolean>;
531
531
  component: z.ZodLiteral<"switch">;
532
- }, z.core.$strip>], "component">>;
532
+ }, z.core.$strip>], "component">>>;
533
533
  }, z.core.$strip>, z.ZodObject<{
534
534
  name: z.ZodString;
535
- display_name: z.ZodOptional<z.ZodCustom<I18nText, I18nText>>;
536
- required: z.ZodOptional<z.ZodBoolean>;
537
- display: z.ZodOptional<z.ZodObject<{
538
- hide: z.ZodOptional<z.ZodType<DisplayCondition, unknown, z.core.$ZodTypeInternals<DisplayCondition, unknown>>>;
539
- show: z.ZodOptional<z.ZodType<DisplayCondition, unknown, z.core.$ZodTypeInternals<DisplayCondition, unknown>>>;
540
- }, z.core.$strip>>;
541
- ai: z.ZodOptional<z.ZodObject<{
542
- llm_description: z.ZodOptional<z.ZodCustom<I18nText, I18nText>>;
543
- }, z.core.$strip>>;
535
+ display_name: z.ZodOptional<z.ZodNullable<z.ZodCustom<I18nText, I18nText>>>;
536
+ required: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
537
+ display: z.ZodOptional<z.ZodNullable<z.ZodObject<{
538
+ hide: z.ZodOptional<z.ZodNullable<z.ZodType<DisplayCondition, unknown, z.core.$ZodTypeInternals<DisplayCondition, unknown>>>>;
539
+ show: z.ZodOptional<z.ZodNullable<z.ZodType<DisplayCondition, unknown, z.core.$ZodTypeInternals<DisplayCondition, unknown>>>>;
540
+ }, z.core.$strip>>>;
541
+ ai: z.ZodOptional<z.ZodNullable<z.ZodObject<{
542
+ llm_description: z.ZodOptional<z.ZodNullable<z.ZodCustom<I18nText, I18nText>>>;
543
+ }, z.core.$strip>>>;
544
544
  type: z.ZodUnion<readonly [z.ZodLiteral<"number">, z.ZodLiteral<"integer">]>;
545
- constant: z.ZodOptional<z.ZodNumber>;
546
- default: z.ZodOptional<z.ZodNumber>;
547
- enum: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
548
- maximum: z.ZodOptional<z.ZodNumber>;
549
- minimum: z.ZodOptional<z.ZodNumber>;
550
- ui: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
545
+ constant: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
546
+ default: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
547
+ enum: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
548
+ maximum: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
549
+ minimum: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
550
+ ui: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
551
551
  disabled: z.ZodOptional<z.ZodBoolean>;
552
552
  hint: z.ZodOptional<z.ZodCustom<I18nText, I18nText>>;
553
553
  placeholder: z.ZodOptional<z.ZodCustom<I18nText, I18nText>>;
@@ -582,20 +582,20 @@ declare const DataSourceDefinitionSchema: z.ZodObject<{
582
582
  marks: z.ZodOptional<z.ZodRecord<z.ZodNumber, z.ZodString>>;
583
583
  show_value: z.ZodOptional<z.ZodBoolean>;
584
584
  step: z.ZodOptional<z.ZodNumber>;
585
- }, z.core.$strip>], "component">>;
585
+ }, z.core.$strip>], "component">>>;
586
586
  }, z.core.$strip>, z.ZodObject<{
587
587
  name: z.ZodString;
588
- display_name: z.ZodOptional<z.ZodCustom<I18nText, I18nText>>;
589
- required: z.ZodOptional<z.ZodBoolean>;
590
- display: z.ZodOptional<z.ZodObject<{
591
- hide: z.ZodOptional<z.ZodType<DisplayCondition, unknown, z.core.$ZodTypeInternals<DisplayCondition, unknown>>>;
592
- show: z.ZodOptional<z.ZodType<DisplayCondition, unknown, z.core.$ZodTypeInternals<DisplayCondition, unknown>>>;
593
- }, z.core.$strip>>;
594
- ai: z.ZodOptional<z.ZodObject<{
595
- llm_description: z.ZodOptional<z.ZodCustom<I18nText, I18nText>>;
596
- }, z.core.$strip>>;
588
+ display_name: z.ZodOptional<z.ZodNullable<z.ZodCustom<I18nText, I18nText>>>;
589
+ required: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
590
+ display: z.ZodOptional<z.ZodNullable<z.ZodObject<{
591
+ hide: z.ZodOptional<z.ZodNullable<z.ZodType<DisplayCondition, unknown, z.core.$ZodTypeInternals<DisplayCondition, unknown>>>>;
592
+ show: z.ZodOptional<z.ZodNullable<z.ZodType<DisplayCondition, unknown, z.core.$ZodTypeInternals<DisplayCondition, unknown>>>>;
593
+ }, z.core.$strip>>>;
594
+ ai: z.ZodOptional<z.ZodNullable<z.ZodObject<{
595
+ llm_description: z.ZodOptional<z.ZodNullable<z.ZodCustom<I18nText, I18nText>>>;
596
+ }, z.core.$strip>>>;
597
597
  type: z.ZodLiteral<"encrypted_string">;
598
- ui: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
598
+ ui: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
599
599
  disabled: z.ZodOptional<z.ZodBoolean>;
600
600
  hint: z.ZodOptional<z.ZodCustom<I18nText, I18nText>>;
601
601
  placeholder: z.ZodOptional<z.ZodCustom<I18nText, I18nText>>;
@@ -610,7 +610,7 @@ declare const DataSourceDefinitionSchema: z.ZodObject<{
610
610
  indentation: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<2>, z.ZodLiteral<4>, z.ZodLiteral<6>, z.ZodLiteral<8>, z.ZodLiteral<10>, z.ZodLiteral<12>, z.ZodLiteral<14>, z.ZodLiteral<16>, z.ZodLiteral<18>, z.ZodLiteral<20>, z.ZodLiteral<22>, z.ZodLiteral<24>, z.ZodLiteral<26>, z.ZodLiteral<28>, z.ZodLiteral<30>, z.ZodLiteral<32>, z.ZodLiteral<34>, z.ZodLiteral<36>, z.ZodLiteral<38>, z.ZodLiteral<40>, z.ZodLiteral<42>, z.ZodLiteral<44>, z.ZodLiteral<46>, z.ZodLiteral<48>, z.ZodLiteral<50>, z.ZodLiteral<52>, z.ZodLiteral<54>, z.ZodLiteral<56>, z.ZodLiteral<58>, z.ZodLiteral<60>, z.ZodLiteral<62>, z.ZodLiteral<64>, z.ZodLiteral<66>, z.ZodLiteral<68>, z.ZodLiteral<70>, z.ZodLiteral<72>, z.ZodLiteral<74>, z.ZodLiteral<76>, z.ZodLiteral<78>, z.ZodLiteral<80>]>>;
611
611
  display_none: z.ZodOptional<z.ZodBoolean>;
612
612
  component: z.ZodLiteral<"encrypted-input">;
613
- }, z.core.$strip>], "component">>;
613
+ }, z.core.$strip>], "component">>>;
614
614
  }, z.core.$strip>]>>>;
615
615
  name: z.ZodString;
616
616
  display_name: z.ZodCustom<I18nText, I18nText>;
@@ -692,22 +692,22 @@ declare const ToolDefinitionSchema: z.ZodObject<{
692
692
  //#region src/schemas/property.d.ts
693
693
  declare const PropertiesScalarSchema: z.ZodLazy<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
694
694
  name: z.ZodString;
695
- display_name: z.ZodOptional<z.ZodCustom<I18nText, I18nText>>;
696
- required: z.ZodOptional<z.ZodBoolean>;
697
- display: z.ZodOptional<z.ZodObject<{
698
- hide: z.ZodOptional<z.ZodType<DisplayCondition, unknown, z.core.$ZodTypeInternals<DisplayCondition, unknown>>>;
699
- show: z.ZodOptional<z.ZodType<DisplayCondition, unknown, z.core.$ZodTypeInternals<DisplayCondition, unknown>>>;
700
- }, z.core.$strip>>;
701
- ai: z.ZodOptional<z.ZodObject<{
702
- llm_description: z.ZodOptional<z.ZodCustom<I18nText, I18nText>>;
703
- }, z.core.$strip>>;
695
+ display_name: z.ZodOptional<z.ZodNullable<z.ZodCustom<I18nText, I18nText>>>;
696
+ required: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
697
+ display: z.ZodOptional<z.ZodNullable<z.ZodObject<{
698
+ hide: z.ZodOptional<z.ZodNullable<z.ZodType<DisplayCondition, unknown, z.core.$ZodTypeInternals<DisplayCondition, unknown>>>>;
699
+ show: z.ZodOptional<z.ZodNullable<z.ZodType<DisplayCondition, unknown, z.core.$ZodTypeInternals<DisplayCondition, unknown>>>>;
700
+ }, z.core.$strip>>>;
701
+ ai: z.ZodOptional<z.ZodNullable<z.ZodObject<{
702
+ llm_description: z.ZodOptional<z.ZodNullable<z.ZodCustom<I18nText, I18nText>>>;
703
+ }, z.core.$strip>>>;
704
704
  type: z.ZodLiteral<"string">;
705
- constant: z.ZodOptional<z.ZodString>;
706
- default: z.ZodOptional<z.ZodString>;
707
- enum: z.ZodOptional<z.ZodArray<z.ZodString>>;
708
- max_length: z.ZodOptional<z.ZodNumber>;
709
- min_length: z.ZodOptional<z.ZodNumber>;
710
- ui: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
705
+ constant: z.ZodOptional<z.ZodNullable<z.ZodString>>;
706
+ default: z.ZodOptional<z.ZodNullable<z.ZodString>>;
707
+ enum: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
708
+ max_length: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
709
+ min_length: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
710
+ ui: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
711
711
  disabled: z.ZodOptional<z.ZodBoolean>;
712
712
  hint: z.ZodOptional<z.ZodCustom<I18nText, I18nText>>;
713
713
  placeholder: z.ZodOptional<z.ZodCustom<I18nText, I18nText>>;
@@ -861,23 +861,23 @@ declare const PropertiesScalarSchema: z.ZodLazy<z.ZodArray<z.ZodUnion<readonly [
861
861
  indentation: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<2>, z.ZodLiteral<4>, z.ZodLiteral<6>, z.ZodLiteral<8>, z.ZodLiteral<10>, z.ZodLiteral<12>, z.ZodLiteral<14>, z.ZodLiteral<16>, z.ZodLiteral<18>, z.ZodLiteral<20>, z.ZodLiteral<22>, z.ZodLiteral<24>, z.ZodLiteral<26>, z.ZodLiteral<28>, z.ZodLiteral<30>, z.ZodLiteral<32>, z.ZodLiteral<34>, z.ZodLiteral<36>, z.ZodLiteral<38>, z.ZodLiteral<40>, z.ZodLiteral<42>, z.ZodLiteral<44>, z.ZodLiteral<46>, z.ZodLiteral<48>, z.ZodLiteral<50>, z.ZodLiteral<52>, z.ZodLiteral<54>, z.ZodLiteral<56>, z.ZodLiteral<58>, z.ZodLiteral<60>, z.ZodLiteral<62>, z.ZodLiteral<64>, z.ZodLiteral<66>, z.ZodLiteral<68>, z.ZodLiteral<70>, z.ZodLiteral<72>, z.ZodLiteral<74>, z.ZodLiteral<76>, z.ZodLiteral<78>, z.ZodLiteral<80>]>>;
862
862
  display_none: z.ZodOptional<z.ZodBoolean>;
863
863
  component: z.ZodLiteral<"color-picker">;
864
- }, z.core.$strip>], "component">>;
864
+ }, z.core.$strip>], "component">>>;
865
865
  }, z.core.$strip>, z.ZodObject<{
866
866
  name: z.ZodString;
867
- display_name: z.ZodOptional<z.ZodCustom<I18nText, I18nText>>;
868
- required: z.ZodOptional<z.ZodBoolean>;
869
- display: z.ZodOptional<z.ZodObject<{
870
- hide: z.ZodOptional<z.ZodType<DisplayCondition, unknown, z.core.$ZodTypeInternals<DisplayCondition, unknown>>>;
871
- show: z.ZodOptional<z.ZodType<DisplayCondition, unknown, z.core.$ZodTypeInternals<DisplayCondition, unknown>>>;
872
- }, z.core.$strip>>;
873
- ai: z.ZodOptional<z.ZodObject<{
874
- llm_description: z.ZodOptional<z.ZodCustom<I18nText, I18nText>>;
875
- }, z.core.$strip>>;
867
+ display_name: z.ZodOptional<z.ZodNullable<z.ZodCustom<I18nText, I18nText>>>;
868
+ required: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
869
+ display: z.ZodOptional<z.ZodNullable<z.ZodObject<{
870
+ hide: z.ZodOptional<z.ZodNullable<z.ZodType<DisplayCondition, unknown, z.core.$ZodTypeInternals<DisplayCondition, unknown>>>>;
871
+ show: z.ZodOptional<z.ZodNullable<z.ZodType<DisplayCondition, unknown, z.core.$ZodTypeInternals<DisplayCondition, unknown>>>>;
872
+ }, z.core.$strip>>>;
873
+ ai: z.ZodOptional<z.ZodNullable<z.ZodObject<{
874
+ llm_description: z.ZodOptional<z.ZodNullable<z.ZodCustom<I18nText, I18nText>>>;
875
+ }, z.core.$strip>>>;
876
876
  type: z.ZodLiteral<"boolean">;
877
- constant: z.ZodOptional<z.ZodBoolean>;
878
- default: z.ZodOptional<z.ZodBoolean>;
879
- enum: z.ZodOptional<z.ZodArray<z.ZodBoolean>>;
880
- ui: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
877
+ constant: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
878
+ default: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
879
+ enum: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodBoolean>>>;
880
+ ui: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
881
881
  disabled: z.ZodOptional<z.ZodBoolean>;
882
882
  hint: z.ZodOptional<z.ZodCustom<I18nText, I18nText>>;
883
883
  placeholder: z.ZodOptional<z.ZodCustom<I18nText, I18nText>>;
@@ -892,25 +892,25 @@ declare const PropertiesScalarSchema: z.ZodLazy<z.ZodArray<z.ZodUnion<readonly [
892
892
  indentation: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<2>, z.ZodLiteral<4>, z.ZodLiteral<6>, z.ZodLiteral<8>, z.ZodLiteral<10>, z.ZodLiteral<12>, z.ZodLiteral<14>, z.ZodLiteral<16>, z.ZodLiteral<18>, z.ZodLiteral<20>, z.ZodLiteral<22>, z.ZodLiteral<24>, z.ZodLiteral<26>, z.ZodLiteral<28>, z.ZodLiteral<30>, z.ZodLiteral<32>, z.ZodLiteral<34>, z.ZodLiteral<36>, z.ZodLiteral<38>, z.ZodLiteral<40>, z.ZodLiteral<42>, z.ZodLiteral<44>, z.ZodLiteral<46>, z.ZodLiteral<48>, z.ZodLiteral<50>, z.ZodLiteral<52>, z.ZodLiteral<54>, z.ZodLiteral<56>, z.ZodLiteral<58>, z.ZodLiteral<60>, z.ZodLiteral<62>, z.ZodLiteral<64>, z.ZodLiteral<66>, z.ZodLiteral<68>, z.ZodLiteral<70>, z.ZodLiteral<72>, z.ZodLiteral<74>, z.ZodLiteral<76>, z.ZodLiteral<78>, z.ZodLiteral<80>]>>;
893
893
  display_none: z.ZodOptional<z.ZodBoolean>;
894
894
  component: z.ZodLiteral<"switch">;
895
- }, z.core.$strip>], "component">>;
895
+ }, z.core.$strip>], "component">>>;
896
896
  }, z.core.$strip>, z.ZodObject<{
897
897
  name: z.ZodString;
898
- display_name: z.ZodOptional<z.ZodCustom<I18nText, I18nText>>;
899
- required: z.ZodOptional<z.ZodBoolean>;
900
- display: z.ZodOptional<z.ZodObject<{
901
- hide: z.ZodOptional<z.ZodType<DisplayCondition, unknown, z.core.$ZodTypeInternals<DisplayCondition, unknown>>>;
902
- show: z.ZodOptional<z.ZodType<DisplayCondition, unknown, z.core.$ZodTypeInternals<DisplayCondition, unknown>>>;
903
- }, z.core.$strip>>;
904
- ai: z.ZodOptional<z.ZodObject<{
905
- llm_description: z.ZodOptional<z.ZodCustom<I18nText, I18nText>>;
906
- }, z.core.$strip>>;
898
+ display_name: z.ZodOptional<z.ZodNullable<z.ZodCustom<I18nText, I18nText>>>;
899
+ required: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
900
+ display: z.ZodOptional<z.ZodNullable<z.ZodObject<{
901
+ hide: z.ZodOptional<z.ZodNullable<z.ZodType<DisplayCondition, unknown, z.core.$ZodTypeInternals<DisplayCondition, unknown>>>>;
902
+ show: z.ZodOptional<z.ZodNullable<z.ZodType<DisplayCondition, unknown, z.core.$ZodTypeInternals<DisplayCondition, unknown>>>>;
903
+ }, z.core.$strip>>>;
904
+ ai: z.ZodOptional<z.ZodNullable<z.ZodObject<{
905
+ llm_description: z.ZodOptional<z.ZodNullable<z.ZodCustom<I18nText, I18nText>>>;
906
+ }, z.core.$strip>>>;
907
907
  type: z.ZodUnion<readonly [z.ZodLiteral<"number">, z.ZodLiteral<"integer">]>;
908
- constant: z.ZodOptional<z.ZodNumber>;
909
- default: z.ZodOptional<z.ZodNumber>;
910
- enum: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
911
- maximum: z.ZodOptional<z.ZodNumber>;
912
- minimum: z.ZodOptional<z.ZodNumber>;
913
- ui: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
908
+ constant: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
909
+ default: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
910
+ enum: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
911
+ maximum: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
912
+ minimum: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
913
+ ui: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
914
914
  disabled: z.ZodOptional<z.ZodBoolean>;
915
915
  hint: z.ZodOptional<z.ZodCustom<I18nText, I18nText>>;
916
916
  placeholder: z.ZodOptional<z.ZodCustom<I18nText, I18nText>>;
@@ -945,20 +945,20 @@ declare const PropertiesScalarSchema: z.ZodLazy<z.ZodArray<z.ZodUnion<readonly [
945
945
  marks: z.ZodOptional<z.ZodRecord<z.ZodNumber, z.ZodString>>;
946
946
  show_value: z.ZodOptional<z.ZodBoolean>;
947
947
  step: z.ZodOptional<z.ZodNumber>;
948
- }, z.core.$strip>], "component">>;
948
+ }, z.core.$strip>], "component">>>;
949
949
  }, z.core.$strip>, z.ZodObject<{
950
950
  name: z.ZodString;
951
- display_name: z.ZodOptional<z.ZodCustom<I18nText, I18nText>>;
952
- required: z.ZodOptional<z.ZodBoolean>;
953
- display: z.ZodOptional<z.ZodObject<{
954
- hide: z.ZodOptional<z.ZodType<DisplayCondition, unknown, z.core.$ZodTypeInternals<DisplayCondition, unknown>>>;
955
- show: z.ZodOptional<z.ZodType<DisplayCondition, unknown, z.core.$ZodTypeInternals<DisplayCondition, unknown>>>;
956
- }, z.core.$strip>>;
957
- ai: z.ZodOptional<z.ZodObject<{
958
- llm_description: z.ZodOptional<z.ZodCustom<I18nText, I18nText>>;
959
- }, z.core.$strip>>;
951
+ display_name: z.ZodOptional<z.ZodNullable<z.ZodCustom<I18nText, I18nText>>>;
952
+ required: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
953
+ display: z.ZodOptional<z.ZodNullable<z.ZodObject<{
954
+ hide: z.ZodOptional<z.ZodNullable<z.ZodType<DisplayCondition, unknown, z.core.$ZodTypeInternals<DisplayCondition, unknown>>>>;
955
+ show: z.ZodOptional<z.ZodNullable<z.ZodType<DisplayCondition, unknown, z.core.$ZodTypeInternals<DisplayCondition, unknown>>>>;
956
+ }, z.core.$strip>>>;
957
+ ai: z.ZodOptional<z.ZodNullable<z.ZodObject<{
958
+ llm_description: z.ZodOptional<z.ZodNullable<z.ZodCustom<I18nText, I18nText>>>;
959
+ }, z.core.$strip>>>;
960
960
  type: z.ZodLiteral<"encrypted_string">;
961
- ui: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
961
+ ui: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
962
962
  disabled: z.ZodOptional<z.ZodBoolean>;
963
963
  hint: z.ZodOptional<z.ZodCustom<I18nText, I18nText>>;
964
964
  placeholder: z.ZodOptional<z.ZodCustom<I18nText, I18nText>>;
@@ -973,7 +973,7 @@ declare const PropertiesScalarSchema: z.ZodLazy<z.ZodArray<z.ZodUnion<readonly [
973
973
  indentation: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<2>, z.ZodLiteral<4>, z.ZodLiteral<6>, z.ZodLiteral<8>, z.ZodLiteral<10>, z.ZodLiteral<12>, z.ZodLiteral<14>, z.ZodLiteral<16>, z.ZodLiteral<18>, z.ZodLiteral<20>, z.ZodLiteral<22>, z.ZodLiteral<24>, z.ZodLiteral<26>, z.ZodLiteral<28>, z.ZodLiteral<30>, z.ZodLiteral<32>, z.ZodLiteral<34>, z.ZodLiteral<36>, z.ZodLiteral<38>, z.ZodLiteral<40>, z.ZodLiteral<42>, z.ZodLiteral<44>, z.ZodLiteral<46>, z.ZodLiteral<48>, z.ZodLiteral<50>, z.ZodLiteral<52>, z.ZodLiteral<54>, z.ZodLiteral<56>, z.ZodLiteral<58>, z.ZodLiteral<60>, z.ZodLiteral<62>, z.ZodLiteral<64>, z.ZodLiteral<66>, z.ZodLiteral<68>, z.ZodLiteral<70>, z.ZodLiteral<72>, z.ZodLiteral<74>, z.ZodLiteral<76>, z.ZodLiteral<78>, z.ZodLiteral<80>]>>;
974
974
  display_none: z.ZodOptional<z.ZodBoolean>;
975
975
  component: z.ZodLiteral<"encrypted-input">;
976
- }, z.core.$strip>], "component">>;
976
+ }, z.core.$strip>], "component">>>;
977
977
  }, z.core.$strip>]>>>;
978
978
  declare const PropertiesSchema: z.ZodType<Property<string, JsonValue>[], unknown, z.core.$ZodTypeInternals<Property<string, JsonValue>[], unknown>>;
979
979
  //#endregion
package/dist/schemas.js CHANGED
@@ -262,30 +262,30 @@ const JsonValueSchema$1 = z.lazy(() => z.union([
262
262
  z.record(z.string(), JsonValueSchema$1)
263
263
  ]));
264
264
  const FilterOperatorsSchema = z.object({
265
- $eq: JsonValueSchema$1.optional(),
266
- $exists: z.boolean().optional(),
267
- $gt: JsonValueSchema$1.optional(),
268
- $gte: JsonValueSchema$1.optional(),
269
- $in: z.array(JsonValueSchema$1).optional(),
270
- $lt: JsonValueSchema$1.optional(),
271
- $lte: JsonValueSchema$1.optional(),
272
- $mod: z.tuple([z.number(), z.number()]).optional(),
273
- $ne: JsonValueSchema$1.optional(),
274
- $nin: z.array(JsonValueSchema$1).optional(),
275
- $options: z.string().optional(),
276
- $regex: z.union([z.string(), z.instanceof(RegExp)]).optional(),
277
- $size: z.number().optional()
265
+ $eq: JsonValueSchema$1.nullish(),
266
+ $exists: z.boolean().nullish(),
267
+ $gt: JsonValueSchema$1.nullish(),
268
+ $gte: JsonValueSchema$1.nullish(),
269
+ $in: z.array(JsonValueSchema$1).nullish(),
270
+ $lt: JsonValueSchema$1.nullish(),
271
+ $lte: JsonValueSchema$1.nullish(),
272
+ $mod: z.tuple([z.number(), z.number()]).nullish(),
273
+ $ne: JsonValueSchema$1.nullish(),
274
+ $nin: z.array(JsonValueSchema$1).nullish(),
275
+ $options: z.string().nullish(),
276
+ $regex: z.union([z.string(), z.instanceof(RegExp)]).nullish(),
277
+ $size: z.number().nullish()
278
278
  });
279
279
  const ConditionSchema = z.union([JsonValueSchema$1, FilterOperatorsSchema]);
280
280
  const RootFilterSchema = z.object({
281
281
  get $and() {
282
- return z.array(FilterSchema).optional();
282
+ return z.array(FilterSchema).nullish();
283
283
  },
284
284
  get $nor() {
285
- return z.array(FilterSchema).optional();
285
+ return z.array(FilterSchema).nullish();
286
286
  },
287
287
  get $or() {
288
- return z.array(FilterSchema).optional();
288
+ return z.array(FilterSchema).nullish();
289
289
  }
290
290
  });
291
291
  const FilterSchema = z.union([z.record(z.string(), ConditionSchema), RootFilterSchema]);
@@ -305,39 +305,39 @@ const PropertyBaseSchema = z.object({
305
305
  error: "name cannot contain \".\", \"[\", or \"]\" characters",
306
306
  abort: true
307
307
  }),
308
- display_name: I18nEntrySchema.optional(),
309
- required: z.boolean().optional(),
308
+ display_name: I18nEntrySchema.nullish(),
309
+ required: z.boolean().nullish(),
310
310
  display: z.object({
311
- hide: FilterSchema.optional(),
312
- show: FilterSchema.optional()
313
- }).optional(),
314
- ai: z.object({ llm_description: I18nEntrySchema.optional() }).optional(),
315
- ui: PropertyUICommonPropsSchema.optional()
311
+ hide: FilterSchema.nullish(),
312
+ show: FilterSchema.nullish()
313
+ }).nullish(),
314
+ ai: z.object({ llm_description: I18nEntrySchema.nullish() }).nullish(),
315
+ ui: PropertyUICommonPropsSchema.nullish()
316
316
  });
317
317
  const PropertyStringSchema = PropertyBaseSchema.extend({
318
318
  type: z.literal("string"),
319
- constant: z.string().optional(),
320
- default: z.string().optional(),
321
- enum: z.array(z.string()).optional(),
322
- max_length: z.number().optional(),
323
- min_length: z.number().optional(),
324
- ui: PropertyUIStringSchema.optional()
319
+ constant: z.string().nullish(),
320
+ default: z.string().nullish(),
321
+ enum: z.array(z.string()).nullish(),
322
+ max_length: z.number().nullish(),
323
+ min_length: z.number().nullish(),
324
+ ui: PropertyUIStringSchema.nullish()
325
325
  });
326
326
  const PropertyNumberSchema = PropertyBaseSchema.extend({
327
327
  type: z.union([z.literal("number"), z.literal("integer")]),
328
- constant: z.number().optional(),
329
- default: z.number().optional(),
330
- enum: z.array(z.number()).optional(),
331
- maximum: z.number().optional(),
332
- minimum: z.number().optional(),
333
- ui: PropertyUINumberSchema.optional()
328
+ constant: z.number().nullish(),
329
+ default: z.number().nullish(),
330
+ enum: z.array(z.number()).nullish(),
331
+ maximum: z.number().nullish(),
332
+ minimum: z.number().nullish(),
333
+ ui: PropertyUINumberSchema.nullish()
334
334
  });
335
335
  const PropertyBooleanSchema = PropertyBaseSchema.extend({
336
336
  type: z.literal("boolean"),
337
- constant: z.boolean().optional(),
338
- default: z.boolean().optional(),
339
- enum: z.array(z.boolean()).optional(),
340
- ui: PropertyUIBooleanSchema.optional()
337
+ constant: z.boolean().nullish(),
338
+ default: z.boolean().nullish(),
339
+ enum: z.array(z.boolean()).nullish(),
340
+ ui: PropertyUIBooleanSchema.nullish()
341
341
  });
342
342
  function setDuplicatePropertyNamesCheck(schema) {
343
343
  return schema.refine((properties) => {
@@ -354,11 +354,11 @@ const additionalPropertiesSchema = z.lazy(() => PropertySchema);
354
354
  const PropertyObjectSchema = PropertyBaseSchema.extend({
355
355
  type: z.literal("object"),
356
356
  properties: ArrayPropertiesSchema,
357
- additional_properties: additionalPropertiesSchema.optional(),
358
- constant: z.record(z.string(), JsonValueSchema$1).optional(),
359
- default: z.record(z.string(), JsonValueSchema$1).optional(),
360
- enum: z.array(z.record(z.string(), JsonValueSchema$1)).optional(),
361
- ui: PropertyUIObjectSchema.optional()
357
+ additional_properties: additionalPropertiesSchema.nullish(),
358
+ constant: z.record(z.string(), JsonValueSchema$1).nullish(),
359
+ default: z.record(z.string(), JsonValueSchema$1).nullish(),
360
+ enum: z.array(z.record(z.string(), JsonValueSchema$1)).nullish(),
361
+ ui: PropertyUIObjectSchema.nullish()
362
362
  }).refine((v) => {
363
363
  if (v.constant) return v.properties.length === 0;
364
364
  return true;
@@ -372,7 +372,7 @@ const PropertyDiscriminatedUnionSchema = PropertyBaseSchema.extend({
372
372
  return z.array(PropertyObjectSchema).min(2, "anyOf must have at least two items");
373
373
  },
374
374
  discriminator: z.string().min(1, "discriminator cannot be empty"),
375
- discriminator_ui: PropertyUIDiscriminatorUISchema.optional()
375
+ discriminator_ui: PropertyUIDiscriminatorUISchema.nullish()
376
376
  }).refine((v) => {
377
377
  const { any_of, discriminator } = v;
378
378
  return any_of.every((i) => {
@@ -397,24 +397,24 @@ const PropertyDiscriminatedUnionSchema = PropertyBaseSchema.extend({
397
397
  }, { error: "Discriminator values must be unique across all anyOf items" });
398
398
  const PropertyArraySchema = PropertyBaseSchema.extend({
399
399
  type: z.literal("array"),
400
- constant: z.array(JsonValueSchema$1).optional(),
401
- default: z.array(JsonValueSchema$1).optional(),
402
- enum: z.array(z.array(JsonValueSchema$1)).optional(),
400
+ constant: z.array(JsonValueSchema$1).nullish(),
401
+ default: z.array(JsonValueSchema$1).nullish(),
402
+ enum: z.array(z.array(JsonValueSchema$1)).nullish(),
403
403
  get items() {
404
404
  return PropertySchema;
405
405
  },
406
- max_items: z.number().optional(),
407
- min_items: z.number().optional(),
408
- ui: PropertyUIArraySchema.optional()
406
+ max_items: z.number().nullish(),
407
+ min_items: z.number().nullish(),
408
+ ui: PropertyUIArraySchema.nullish()
409
409
  });
410
410
  const PropertyCredentialIdSchema = PropertyBaseSchema.extend({
411
411
  type: z.literal("credential_id"),
412
412
  credential_name: z.string().min(1, "credential_name cannot be empty"),
413
- ui: PropertyUICredentialIdSchema.optional()
413
+ ui: PropertyUICredentialIdSchema.nullish()
414
414
  });
415
415
  const PropertyEncryptedStringSchema = PropertyBaseSchema.extend({
416
416
  type: z.literal("encrypted_string"),
417
- ui: PropertyUIEncryptedStringSchema.optional()
417
+ ui: PropertyUIEncryptedStringSchema.nullish()
418
418
  });
419
419
  const PropertyScalarSchema = z.union([
420
420
  PropertyStringSchema,
@@ -1 +1 @@
1
- {"version":3,"file":"schemas.js","names":["JsonValueSchema"],"sources":["../src/utils/toolkit.ts","../src/schemas/common.ts","../src/utils/custom-json-value.ts","../src/schemas/property-ui.ts","../src/schemas/property.ts","../src/schemas/definition.ts"],"sourcesContent":["export function isPlainObject(value: unknown): value is Record<string, unknown> {\n if (value === null || typeof value !== \"object\") return false\n if (Object.prototype.toString.call(value) !== \"[object Object]\") return false\n\n const proto = Object.getPrototypeOf(value)\n return proto === Object.prototype || proto === null\n}\n\nexport function compact<T>(\n values: Array<T | null | undefined | false | 0 | \"\" | typeof Number.NaN>,\n): T[] {\n // Match common \"compact\" behavior: drop falsy values.\n // Note: `NaN` is truthy? Actually `Boolean(NaN) === false`, so it will be removed too.\n return values.filter(Boolean) as T[]\n}\n","import type { IsEqual } from \"type-fest\"\nimport { z } from \"zod\"\nimport type { I18nText } from \"../types\"\nimport { isPlainObject } from \"../utils/toolkit\"\n\n/**\n * I18n 词条模式\n *\n * NOTE: Zod 无法定义复杂的字面量模版,此处使用 `z.custom` 实现自定义验证\n */\nexport const I18nEntrySchema = z.custom<I18nText>((value) => {\n // 必须是对象字面量\n if (!isPlainObject(value)) return false\n // 必须包含 en_US 键\n if (!(\"en_US\" in value)) return false\n\n for (const [locale, text] of Object.entries(value)) {\n // 值必须是字符串\n if (typeof text !== \"string\") return false\n\n // NOTE: 支持的语言码并不严格符合标准,因为 TS 字面量模版无法描述所有可能的情况\n // 故以下仅对满足需求的子集做简单检查而不是严格的 RFC 5646 标准检查\n const parts = locale.split(\"_\")\n // 其它语言代码必须符合格式:<语言代码>_<国家或脚本代码>,且第二部份首字母必须大写\n if (parts.length !== 2 || parts[1][0] !== parts[1][0].toUpperCase()) {\n return false\n }\n }\n return true\n}, \"Invalid I18n entry\")\n{\n const _: IsEqual<z.infer<typeof I18nEntrySchema>, I18nText> = true\n}\n","/**\n * Custom JSON Value Schema and Type\n *\n * Why? Because `z.json()` is not compatible with `JSONValue` from type-fest\n */\n\nimport { z } from \"zod\"\n\n/**\n * Custom JSON Value Schema\n * @description Custom JSON Value Schema is a schema that allows any JSON value\n */\nexport const JsonValueSchema = z.json()\n\n/**\n * Custom JSON Value Type\n * @description Custom JSON Value Type is the type of the JSON value\n */\nexport type JsonValue = z.infer<typeof JsonValueSchema>\n","import type { IntRange, IsEqual } from \"type-fest\"\nimport { z } from \"zod\"\nimport type {\n PropertyUIArray,\n PropertyUIArraySectionProps,\n PropertyUIBoolean,\n PropertyUICollapsiblePanelProps,\n PropertyUIColorPickerProps,\n PropertyUIContainer,\n PropertyUICredentialId,\n PropertyUIEmojiPickerProps,\n PropertyUIEncryptedInputProps,\n PropertyUIInputProps,\n PropertyUIKeyValueEditorProps,\n PropertyUINumber,\n PropertyUIObject,\n PropertyUIOption,\n PropertyUIProps,\n PropertyUIRadioGroupProps,\n PropertyUISectionProps,\n PropertyUISingleSelectProps,\n PropertyUIString,\n PropertyUISwitchProps,\n} from \"../types\"\nimport { I18nEntrySchema } from \"./common\"\n\nconst indentationSchema = z.union([\n z.literal(2),\n z.literal(4),\n z.literal(6),\n z.literal(8),\n z.literal(10),\n z.literal(12),\n z.literal(14),\n z.literal(16),\n z.literal(18),\n z.literal(20),\n z.literal(22),\n z.literal(24),\n z.literal(26),\n z.literal(28),\n z.literal(30),\n z.literal(32),\n z.literal(34),\n z.literal(36),\n z.literal(38),\n z.literal(40),\n z.literal(42),\n z.literal(44),\n z.literal(46),\n z.literal(48),\n z.literal(50),\n z.literal(52),\n z.literal(54),\n z.literal(56),\n z.literal(58),\n z.literal(60),\n z.literal(62),\n z.literal(64),\n z.literal(66),\n z.literal(68),\n z.literal(70),\n z.literal(72),\n z.literal(74),\n z.literal(76),\n z.literal(78),\n z.literal(80),\n])\n{\n const _: IsEqual<z.infer<typeof indentationSchema>, IntRange<2, 81, 2>> = true\n}\n\n// Common UI properties schema\nexport const PropertyUICommonPropsSchema = z.object({\n disabled: z.boolean().optional(),\n hint: I18nEntrySchema.optional(),\n placeholder: I18nEntrySchema.optional(),\n readonly: z.boolean().optional(),\n sensitive: z.boolean().optional(),\n support_expression: z.boolean().optional(),\n width: z.enum([\"small\", \"medium\", \"full\"]).optional(),\n indentation: indentationSchema.optional(),\n display_none: z.boolean().optional(),\n})\n\n// Option schema for select components\nexport const PropertyUIOptionSchema = z.object({\n icon: z.string().optional(),\n label: I18nEntrySchema,\n value: z.union([z.string(), z.number(), z.boolean()]),\n})\n{\n const _: IsEqual<z.infer<typeof PropertyUIOptionSchema>, PropertyUIOption> = true\n}\n\nconst PropertyUIInputPropsSchema = PropertyUICommonPropsSchema.extend({\n component: z.literal(\"input\"),\n})\n{\n const _: IsEqual<z.infer<typeof PropertyUIInputPropsSchema>, PropertyUIInputProps> = true\n}\n\nexport const PropertyUIEncryptedInputPropsSchema = PropertyUICommonPropsSchema.extend({\n component: z.literal(\"encrypted-input\"),\n})\n{\n const _: IsEqual<\n z.infer<typeof PropertyUIEncryptedInputPropsSchema>,\n PropertyUIEncryptedInputProps\n > = true\n}\n\n// Textarea component schema\nconst PropertyUITextareaPropsSchema = PropertyUICommonPropsSchema.extend({\n component: z.literal(\"textarea\"),\n max_height: z.number().optional(),\n min_height: z.number().optional(),\n})\n\n// Number input component schema\nconst PropertyUINumberInputPropsSchema = PropertyUICommonPropsSchema.extend({\n component: z.literal(\"number-input\"),\n step: z.number().optional(),\n suffix: z.string().optional(),\n})\n\n// Code editor component schema\nconst PropertyUICodeEditorPropsSchema = PropertyUICommonPropsSchema.extend({\n component: z.literal(\"code-editor\"),\n language: z.enum([\"json\", \"javascript\", \"python3\"]).optional(),\n line_numbers: z.boolean().optional(),\n line_wrapping: z.boolean().optional(),\n max_height: z.number().optional(),\n min_height: z.number().optional(),\n rows: z.number().optional(),\n})\n\n// Select base schema\nconst PropertyUISelectPropsBaseSchema = z.object({\n clearable: z.boolean().optional(),\n options: z.array(PropertyUIOptionSchema).optional(),\n searchable: z.boolean().optional(),\n})\n\n// Single select component schema\nconst PropertyUISingleSelectPropsSchema = PropertyUICommonPropsSchema.merge(\n PropertyUISelectPropsBaseSchema,\n).extend({\n component: z.literal(\"select\"),\n})\n{\n const _: IsEqual<\n z.infer<typeof PropertyUISingleSelectPropsSchema>,\n PropertyUISingleSelectProps\n > = true\n}\n\n// Radio group component schema\nconst PropertyUIRadioGroupPropsSchema = PropertyUICommonPropsSchema.merge(\n PropertyUISelectPropsBaseSchema,\n).extend({\n component: z.literal(\"radio-group\"),\n})\n{\n const _: IsEqual<\n z.infer<typeof PropertyUIRadioGroupPropsSchema>,\n PropertyUIRadioGroupProps\n > = true\n}\n\n// Multi select component schema\nconst PropertyUIMultiSelectPropsSchema = PropertyUICommonPropsSchema.merge(\n PropertyUISelectPropsBaseSchema,\n).extend({\n component: z.literal(\"multi-select\"),\n})\n\n// Switch component schema\nconst PropertyUISwitchPropsSchema = PropertyUICommonPropsSchema.extend({\n component: z.literal(\"switch\"),\n})\n{\n const _: IsEqual<z.infer<typeof PropertyUISwitchPropsSchema>, PropertyUISwitchProps> = true\n}\n\n// Slider component schema\nconst PropertyUISliderPropsSchema = PropertyUICommonPropsSchema.extend({\n component: z.literal(\"slider\"),\n marks: z.record(z.number(), z.string()).optional(),\n show_value: z.boolean().optional(),\n step: z.number().optional(),\n})\n\n// Key-value editor component schema\nconst PropertyUIKeyValueEditorPropsSchema = PropertyUICommonPropsSchema.extend({\n add_button_label: I18nEntrySchema.optional(),\n component: z.literal(\"key-value-editor\"),\n empty_description: I18nEntrySchema.optional(),\n section_header: I18nEntrySchema.optional(),\n})\n{\n const _: IsEqual<\n z.infer<typeof PropertyUIKeyValueEditorPropsSchema>,\n PropertyUIKeyValueEditorProps\n > = true\n}\n\n// Tag input component schema\nconst PropertyUITagInputPropsSchema = PropertyUICommonPropsSchema.extend({\n component: z.literal(\"tag-input\"),\n})\n\n// Emoji picker component schema\nconst PropertyUIEmojiPickerPropsSchema = PropertyUICommonPropsSchema.extend({\n component: z.literal(\"emoji-picker\"),\n size: z.enum([\"extra-small\", \"small\", \"medium\", \"large\"]).optional(),\n})\n{\n const _: IsEqual<\n z.infer<typeof PropertyUIEmojiPickerPropsSchema>,\n PropertyUIEmojiPickerProps\n > = true\n}\n\n// Color picker component schema\nconst PropertyUIColorPickerPropsSchema = PropertyUICommonPropsSchema.extend({\n component: z.literal(\"color-picker\"),\n})\n{\n const _: IsEqual<\n z.infer<typeof PropertyUIColorPickerPropsSchema>,\n PropertyUIColorPickerProps\n > = true\n}\n\n// Credential select component schema\nconst PropertyUICredentialSelectPropsSchema = PropertyUICommonPropsSchema.extend({\n clearable: z.boolean().optional(),\n component: z.literal(\"credential-select\"),\n searchable: z.boolean().optional(),\n})\n\n// JSON Schema editor component schema\nconst PropertyUIJsonSchemaEditorPropsSchema = PropertyUICommonPropsSchema.extend({\n component: z.literal(\"json-schema-editor\"),\n})\n\n// Conditions editor component schema\nconst PropertyUIConditionsEditorPropsSchema = PropertyUICommonPropsSchema.extend({\n component: z.literal(\"conditions-editor\"),\n})\n\n// Array section component schema\nconst PropertyUIArraySectionPropsSchema = PropertyUICommonPropsSchema.extend({\n add_label: I18nEntrySchema.optional(),\n collapsible: z.boolean().optional(),\n component: z.literal(\"array-section\"),\n empty_message: I18nEntrySchema.optional(),\n remove_tooltip: I18nEntrySchema.optional(),\n sortable: z.boolean().optional(),\n})\n{\n const _: IsEqual<\n z.infer<typeof PropertyUIArraySectionPropsSchema>,\n PropertyUIArraySectionProps\n > = true\n}\n\n// Collapsible panel component schema\nconst PropertyUICollapsiblePanelPropsSchema = PropertyUICommonPropsSchema.extend({\n collapsible: z.boolean().optional(),\n component: z.literal(\"collapsible-panel\"),\n default_collapsed: z.boolean().optional(),\n panel_title: I18nEntrySchema.optional(),\n remove_tooltip: I18nEntrySchema.optional(),\n sortable: z.boolean().optional(),\n})\n{\n const _: IsEqual<\n z.infer<typeof PropertyUICollapsiblePanelPropsSchema>,\n PropertyUICollapsiblePanelProps\n > = true\n}\n\n// Section component schema\nconst PropertyUISectionPropsSchema = PropertyUICommonPropsSchema.extend({\n component: z.literal(\"section\"),\n})\n{\n const _: IsEqual<z.infer<typeof PropertyUISectionPropsSchema>, PropertyUISectionProps> = true\n}\n\nexport const PropertyUIPropsSchema = z.discriminatedUnion(\"component\", [\n PropertyUIInputPropsSchema,\n PropertyUITextareaPropsSchema,\n PropertyUINumberInputPropsSchema,\n PropertyUICodeEditorPropsSchema,\n PropertyUISingleSelectPropsSchema,\n PropertyUIRadioGroupPropsSchema,\n PropertyUIEmojiPickerPropsSchema,\n PropertyUIColorPickerPropsSchema,\n PropertyUIMultiSelectPropsSchema,\n PropertyUISwitchPropsSchema,\n PropertyUISliderPropsSchema,\n PropertyUIKeyValueEditorPropsSchema,\n PropertyUITagInputPropsSchema,\n PropertyUICredentialSelectPropsSchema,\n PropertyUIJsonSchemaEditorPropsSchema,\n PropertyUIConditionsEditorPropsSchema,\n PropertyUIArraySectionPropsSchema,\n PropertyUICollapsiblePanelPropsSchema,\n PropertyUISectionPropsSchema,\n PropertyUIEncryptedInputPropsSchema,\n])\n{\n const _: IsEqual<z.infer<typeof PropertyUIPropsSchema>, PropertyUIProps> = true\n}\n\nexport const PropertyUIBooleanSchema = z.discriminatedUnion(\"component\", [\n PropertyUISwitchPropsSchema,\n])\n{\n const _: IsEqual<z.infer<typeof PropertyUIBooleanSchema>, PropertyUIBoolean> = true\n}\n\nexport const PropertyUINumberSchema = z.discriminatedUnion(\"component\", [\n PropertyUINumberInputPropsSchema,\n PropertyUISliderPropsSchema,\n])\n{\n const _: IsEqual<z.infer<typeof PropertyUINumberSchema>, PropertyUINumber> = true\n}\n\nexport const PropertyUIStringSchema = z.discriminatedUnion(\"component\", [\n PropertyUIInputPropsSchema,\n PropertyUITextareaPropsSchema,\n PropertyUICodeEditorPropsSchema,\n PropertyUISingleSelectPropsSchema,\n PropertyUICredentialSelectPropsSchema,\n PropertyUIRadioGroupPropsSchema,\n PropertyUIEmojiPickerPropsSchema,\n PropertyUIColorPickerPropsSchema,\n])\n{\n const _: IsEqual<z.infer<typeof PropertyUIStringSchema>, PropertyUIString> = true\n}\n\nexport const PropertyUIArraySchema = z.discriminatedUnion(\"component\", [\n PropertyUIMultiSelectPropsSchema,\n PropertyUITagInputPropsSchema,\n PropertyUIKeyValueEditorPropsSchema,\n PropertyUISliderPropsSchema,\n PropertyUIArraySectionPropsSchema,\n])\n{\n const _: IsEqual<z.infer<typeof PropertyUIArraySchema>, PropertyUIArray> = true\n}\n\nexport const PropertyUIContainerSchema = z.discriminatedUnion(\"component\", [\n PropertyUICollapsiblePanelPropsSchema,\n PropertyUISectionPropsSchema,\n])\n{\n const _: IsEqual<z.infer<typeof PropertyUIContainerSchema>, PropertyUIContainer> = true\n}\n\nexport const PropertyUIObjectSchema = z.discriminatedUnion(\"component\", [\n PropertyUIJsonSchemaEditorPropsSchema,\n PropertyUIConditionsEditorPropsSchema,\n PropertyUICodeEditorPropsSchema,\n PropertyUICollapsiblePanelPropsSchema,\n PropertyUISectionPropsSchema,\n])\n{\n const _: IsEqual<z.infer<typeof PropertyUIObjectSchema>, PropertyUIObject> = true\n}\n\nexport const PropertyUICredentialIdSchema = z.discriminatedUnion(\"component\", [\n PropertyUICredentialSelectPropsSchema,\n])\n{\n const _: IsEqual<z.infer<typeof PropertyUICredentialIdSchema>, PropertyUICredentialId> = true\n}\n\nexport const PropertyUIDiscriminatorUISchema = z.discriminatedUnion(\"component\", [\n PropertyUISwitchPropsSchema,\n PropertyUISingleSelectPropsSchema,\n PropertyUIRadioGroupPropsSchema,\n])\n\nexport const PropertyUIEncryptedStringSchema = z.discriminatedUnion(\"component\", [\n PropertyUIEncryptedInputPropsSchema,\n])\n","import type { IsEqual, JsonValue } from \"type-fest\"\nimport { z } from \"zod\"\nimport type {\n DisplayCondition,\n FilterOperators,\n Property,\n PropertyArray,\n PropertyBase,\n PropertyBoolean,\n PropertyCredentialId,\n PropertyDiscriminatedUnion,\n PropertyEncryptedString,\n PropertyNumber,\n PropertyObject,\n PropertyScalar,\n PropertyString,\n} from \"../types\"\nimport { compact } from \"../utils/toolkit\"\nimport { I18nEntrySchema } from \"./common\"\nimport {\n PropertyUIArraySchema,\n PropertyUIBooleanSchema,\n PropertyUICommonPropsSchema,\n PropertyUICredentialIdSchema,\n PropertyUIDiscriminatorUISchema,\n PropertyUIEncryptedStringSchema,\n PropertyUINumberSchema,\n PropertyUIObjectSchema,\n PropertyUIStringSchema,\n} from \"./property-ui\"\n\nconst JsonPrimitiveSchema = z.union([z.string(), z.number(), z.boolean(), z.null()])\nconst JsonValueSchema: z.ZodType<JsonValue> = z.lazy(() =>\n z.union([JsonPrimitiveSchema, z.array(JsonValueSchema), z.record(z.string(), JsonValueSchema)]),\n)\n\nconst FilterOperatorsSchema = z.object({\n $eq: JsonValueSchema.optional(),\n $exists: z.boolean().optional(),\n $gt: JsonValueSchema.optional(),\n $gte: JsonValueSchema.optional(),\n $in: z.array(JsonValueSchema).optional(),\n $lt: JsonValueSchema.optional(),\n $lte: JsonValueSchema.optional(),\n $mod: z.tuple([z.number(), z.number()]).optional(),\n $ne: JsonValueSchema.optional(),\n $nin: z.array(JsonValueSchema).optional(),\n $options: z.string().optional(),\n $regex: z.union([z.string(), z.instanceof(RegExp)]).optional(),\n $size: z.number().optional(),\n})\n\nconst ConditionSchema = z.union([JsonValueSchema, FilterOperatorsSchema])\n\nconst RootFilterSchema = z.object({\n get $and() {\n return z.array(FilterSchema).optional()\n },\n get $nor() {\n return z.array(FilterSchema).optional()\n },\n get $or() {\n return z.array(FilterSchema).optional()\n },\n})\n{\n const _: IsEqual<z.infer<typeof FilterOperatorsSchema>, FilterOperators> = true\n}\n\n// skip infer because of recursive structure\nconst FilterSchema: z.ZodType<DisplayCondition> = z.union([\n z.record(z.string(), ConditionSchema),\n RootFilterSchema,\n])\n\nconst PropertyBaseSchema = z.object({\n name: z\n .string()\n .min(1, \"name cannot be empty\")\n .refine(\n (val) => {\n const regexStartsWithDollarOrWhitespace = /^[\\s$]/\n return !regexStartsWithDollarOrWhitespace.test(val)\n },\n {\n error: \"name cannot start with $ or whitespace\",\n abort: true,\n },\n )\n .refine(\n (val) => {\n const forbiddenCharacters = [\".\", \"[\", \"]\"]\n return !forbiddenCharacters.some((char) => val.includes(char))\n },\n {\n error: 'name cannot contain \".\", \"[\", or \"]\" characters',\n abort: true,\n },\n ),\n\n display_name: I18nEntrySchema.optional(),\n required: z.boolean().optional(),\n display: z\n .object({\n hide: FilterSchema.optional(),\n show: FilterSchema.optional(),\n })\n .optional(),\n ai: z\n .object({\n llm_description: I18nEntrySchema.optional(),\n })\n .optional(),\n ui: PropertyUICommonPropsSchema.optional(),\n})\n{\n const _: IsEqual<z.infer<typeof PropertyBaseSchema>, PropertyBase<string>> = true\n}\n\nconst PropertyStringSchema = PropertyBaseSchema.extend({\n type: z.literal(\"string\"),\n constant: z.string().optional(),\n default: z.string().optional(),\n enum: z.array(z.string()).optional(),\n max_length: z.number().optional(),\n min_length: z.number().optional(),\n ui: PropertyUIStringSchema.optional(),\n})\n{\n const _: IsEqual<z.infer<typeof PropertyStringSchema>, PropertyString<string>> = true\n}\n\nconst PropertyNumberSchema = PropertyBaseSchema.extend({\n type: z.union([z.literal(\"number\"), z.literal(\"integer\")]),\n constant: z.number().optional(),\n default: z.number().optional(),\n enum: z.array(z.number()).optional(),\n maximum: z.number().optional(),\n minimum: z.number().optional(),\n ui: PropertyUINumberSchema.optional(),\n})\n{\n const _: IsEqual<z.infer<typeof PropertyNumberSchema>, PropertyNumber<string>> = true\n}\n\nconst PropertyBooleanSchema = PropertyBaseSchema.extend({\n type: z.literal(\"boolean\"),\n constant: z.boolean().optional(),\n default: z.boolean().optional(),\n enum: z.array(z.boolean()).optional(),\n ui: PropertyUIBooleanSchema.optional(),\n})\n{\n const _: IsEqual<z.infer<typeof PropertyBooleanSchema>, PropertyBoolean<string>> = true\n}\n\nfunction setDuplicatePropertyNamesCheck<T extends z.ZodType<Array<Property>>>(schema: T) {\n return schema.refine(\n (properties) => {\n const names = new Set<string>()\n for (const prop of properties) {\n if (names.has(prop.name)) return false\n names.add(prop.name)\n }\n return true\n },\n {\n error: \"duplicate property names are not allowed\",\n },\n )\n}\n\n// use type assertion and lazy to avoid circular reference error\nconst ArrayPropertiesSchema: z.ZodType<PropertyObject[\"properties\"]> = z.lazy(() =>\n z.array(PropertySchema).apply(setDuplicatePropertyNamesCheck),\n)\n\nconst additionalPropertiesSchema: z.ZodType<Property> = z.lazy(() => PropertySchema)\n\nconst PropertyObjectSchema = PropertyBaseSchema.extend({\n type: z.literal(\"object\"),\n properties: ArrayPropertiesSchema,\n additional_properties: additionalPropertiesSchema.optional(),\n constant: z.record(z.string(), JsonValueSchema).optional(),\n default: z.record(z.string(), JsonValueSchema).optional(),\n enum: z.array(z.record(z.string(), JsonValueSchema)).optional(),\n ui: PropertyUIObjectSchema.optional(),\n}).refine(\n (v) => {\n if (v.constant) return v.properties.length === 0\n return true\n },\n {\n error: \"properties must be empty when constant is defined\",\n abort: true,\n },\n)\n{\n type PropertyObjectInferred = z.infer<typeof PropertyObjectSchema>\n const _: IsEqual<PropertyObjectInferred, PropertyObject> = true\n}\n\nconst PropertyDiscriminatedUnionSchema = PropertyBaseSchema.extend({\n type: z.literal(\"discriminated_union\"),\n get any_of() {\n return z.array(PropertyObjectSchema).min(2, \"anyOf must have at least two items\")\n },\n discriminator: z.string().min(1, \"discriminator cannot be empty\"),\n discriminator_ui: PropertyUIDiscriminatorUISchema.optional(),\n})\n .refine(\n (v) => {\n const { any_of, discriminator } = v\n return any_of.every((i) => {\n const discriminatorProperty = i.properties?.find((p) => p.name === discriminator)\n if (!discriminatorProperty) return false\n if (!(\"constant\" in discriminatorProperty)) return false\n if (\n typeof discriminatorProperty.constant !== \"string\" &&\n typeof discriminatorProperty.constant !== \"number\" &&\n typeof discriminatorProperty.constant !== \"boolean\"\n ) {\n return false\n }\n return true\n })\n },\n {\n error:\n \"Each item in anyOf must contain the discriminator field with constant string/number/boolean value\",\n abort: true,\n },\n )\n .refine(\n (v) => {\n const { any_of } = v\n const allDiscriminatorProperty = compact(\n any_of.map((i) => {\n const discriminatorProperty = i.properties?.find((p) => p.name === v.discriminator)\n if (!discriminatorProperty) return null\n if (!(\"constant\" in discriminatorProperty)) return null\n return discriminatorProperty.constant\n }),\n )\n const uniqueValues = new Set(allDiscriminatorProperty)\n return uniqueValues.size === allDiscriminatorProperty.length\n },\n {\n error: \"Discriminator values must be unique across all anyOf items\",\n },\n )\n{\n const _: IsEqual<\n z.infer<typeof PropertyDiscriminatedUnionSchema>,\n PropertyDiscriminatedUnion\n > = true\n}\n\nconst PropertyArraySchema = PropertyBaseSchema.extend({\n type: z.literal(\"array\"),\n constant: z.array(JsonValueSchema).optional(),\n default: z.array(JsonValueSchema).optional(),\n enum: z.array(z.array(JsonValueSchema)).optional(),\n get items() {\n return PropertySchema\n },\n max_items: z.number().optional(),\n min_items: z.number().optional(),\n ui: PropertyUIArraySchema.optional(),\n})\n{\n const _: IsEqual<z.infer<typeof PropertyArraySchema>, PropertyArray> = true\n}\n\nconst PropertyCredentialIdSchema = PropertyBaseSchema.extend({\n type: z.literal(\"credential_id\"),\n credential_name: z.string().min(1, \"credential_name cannot be empty\"),\n ui: PropertyUICredentialIdSchema.optional(),\n})\n\n{\n const _: IsEqual<z.infer<typeof PropertyCredentialIdSchema>, PropertyCredentialId<string>> = true\n}\nconst PropertyEncryptedStringSchema = PropertyBaseSchema.extend({\n type: z.literal(\"encrypted_string\"),\n ui: PropertyUIEncryptedStringSchema.optional(),\n})\n{\n const _: IsEqual<z.infer<typeof PropertyEncryptedStringSchema>, PropertyEncryptedString> = true\n}\n\nconst PropertyScalarSchema = z.union([\n PropertyStringSchema,\n PropertyBooleanSchema,\n PropertyNumberSchema,\n PropertyEncryptedStringSchema,\n])\n{\n const _: IsEqual<z.infer<typeof PropertyScalarSchema>, PropertyScalar<string>> = true\n}\n\nexport const PropertiesScalarSchema = z.lazy(() =>\n z.array(PropertyScalarSchema).apply(setDuplicatePropertyNamesCheck),\n)\n\nconst PropertySchema = z.union([\n ...PropertyScalarSchema.options,\n PropertyCredentialIdSchema,\n PropertyArraySchema,\n PropertyObjectSchema,\n PropertyDiscriminatedUnionSchema,\n])\n{\n const _: IsEqual<z.infer<typeof PropertySchema>, Property> = true\n}\n\nexport const PropertiesSchema = ArrayPropertiesSchema\n","import type { IsEqual } from \"type-fest\"\nimport { z } from \"zod\"\nimport type {\n BaseDefinition,\n CredentialDefinition,\n ModelDefinition,\n PluginDefinition,\n ToolDefinition,\n} from \"../types\"\nimport { JsonValueSchema } from \"../utils/custom-json-value\"\nimport { I18nEntrySchema } from \"./common\"\nimport { PropertiesScalarSchema, PropertiesSchema } from \"./property\"\n\n/**\n * 基础定义模式\n *\n * 此为所有功能定义模式的基类,定义了通用的属性,不单独使用\n */\nexport const BaseDefinitionSchema = z.object({\n // 1. 只能出现英文字母(大小写不敏感)和数字以及_和-\n // 2. 开头只能是英文字母,结尾不能是_和-\n // 3. _和-不能连续出现多次\n // 4. 最小长度 4,最大长度 64\n name: z.string().regex(/^[a-zA-Z](?:(?![_-]{2,})[a-zA-Z0-9_-]){3,63}[a-zA-Z0-9]$/, {\n error:\n \"Invalid name, should match the following rules: 1. only English letters, numbers, _ and - 2. start with English letter, end with English letter or number 3. _ and - cannot appear consecutively more than twice 4. minimum length 4, maximum length 64\",\n }),\n display_name: I18nEntrySchema,\n description: I18nEntrySchema,\n icon: z.string(),\n})\n{\n const _: IsEqual<z.infer<typeof BaseDefinitionSchema>, BaseDefinition> = true\n}\n\nexport const PluginDefinitionSchema = z.object({\n ...BaseDefinitionSchema.shape,\n author: z.string().nullish(),\n email: z.email().nullish(),\n repo: z.httpUrl().nullish(),\n version: z.string().nullish(),\n locales: z.array(z.string()),\n})\n{\n const _: IsEqual<\n z.infer<typeof PluginDefinitionSchema>,\n Omit<PluginDefinition<string[], unknown>, \"transporterOptions\"> // not necessary to verify transpoterOptions\n > = true\n}\n\nexport const CredentialDefinitionSchema = z.object({\n ...BaseDefinitionSchema.shape,\n parameters: PropertiesScalarSchema,\n})\n{\n const _: IsEqual<z.infer<typeof CredentialDefinitionSchema>, CredentialDefinition> = true\n}\n\nexport const DataSourceDefinitionSchema = z.object({\n ...BaseDefinitionSchema.shape,\n parameters: PropertiesScalarSchema,\n})\n\nexport type DataSourceDefinition = z.infer<typeof DataSourceDefinitionSchema>\n\nexport const ModelDefinitionSchema = z.object({\n ...BaseDefinitionSchema.shape,\n name: z.string().regex(/^[a-zA-Z](?:(?![_-]{2,})[a-zA-Z0-9_/-]){3,63}[a-zA-Z0-9]$/, {\n error:\n \"Invalid model name, should match the following rules: 1. only English letters, numbers, _ and - 2. start with English letter, end with English letter or number 3. _ and - cannot appear consecutively more than twice 4. minimum length 4, maximum length 64 5. allow '/' in the middle\",\n }),\n model_type: z.literal(\"llm\"),\n default_endpoint: z.httpUrl().optional(),\n input_modalities: z.array(z.enum([\"file\", \"image\", \"text\"])),\n output_modalities: z.array(z.enum([\"text\"])),\n pricing: z\n .object({\n currency: z.string().optional(),\n input: z.number().optional(),\n input_cache_read: z.number().optional(),\n input_cache_write: z.number().optional(),\n output: z.number().optional(),\n request: z.number().optional(),\n })\n .optional(),\n override_parameters: z\n .object({\n temperature: z\n .object({\n default: z.number().optional(),\n maximum: z.number().optional(),\n minimum: z.number().optional(),\n })\n .optional(),\n frequency_penalty: z\n .object({\n default: z.number().optional(),\n maximum: z.number().optional(),\n minimum: z.number().optional(),\n })\n .optional(),\n max_tokens: z\n .object({\n default: z.number().optional(),\n maximum: z.number().optional(),\n })\n .optional(),\n verbosity: z\n .object({\n default: z.enum([\"low\", \"medium\", \"high\"]).optional(),\n })\n .optional(),\n })\n .optional(),\n unsupported_parameters: z.array(\n z.enum([\n \"endpoint\",\n \"temperature\",\n // \"top_p\",\n // \"top_k\",\n \"frequency_penalty\",\n // \"presence_penalty\",\n // \"repetition_penalty\",\n // \"min_p\",\n // \"top_a\",\n \"seed\",\n \"max_tokens\",\n // \"logit_bias\",\n // \"logprobs\",\n // \"top_logprobs\",\n // \"response_format\",\n // \"json_response\",\n \"json_schema\",\n \"stream\",\n \"stream_options\",\n \"structured_outputs\",\n // \"stop\",\n // \"tools\",\n // \"tool_choice\",\n \"parallel_tool_calls\",\n \"verbosity\",\n ]),\n ),\n})\n{\n const _: IsEqual<z.infer<typeof ModelDefinitionSchema>, ModelDefinition> = true\n}\n\nexport const ToolDefinitionSchema = z.object({\n ...BaseDefinitionSchema.shape,\n invoke: z.function({\n input: z.tuple([z.object({ args: z.any() })]),\n output: z.promise(JsonValueSchema),\n }),\n parameters: PropertiesSchema,\n})\n{\n const _: IsEqual<z.infer<typeof ToolDefinitionSchema>, ToolDefinition> = true\n}\n"],"mappings":";;;AAAA,SAAgB,cAAc,OAAkD;AAC9E,KAAI,UAAU,QAAQ,OAAO,UAAU,SAAU,QAAO;AACxD,KAAI,OAAO,UAAU,SAAS,KAAK,MAAM,KAAK,kBAAmB,QAAO;CAExE,MAAM,QAAQ,OAAO,eAAe,MAAM;AAC1C,QAAO,UAAU,OAAO,aAAa,UAAU;;AAGjD,SAAgB,QACd,QACK;AAGL,QAAO,OAAO,OAAO,QAAQ;;;;;;;;;;ACH/B,MAAa,kBAAkB,EAAE,QAAkB,UAAU;AAE3D,KAAI,CAAC,cAAc,MAAM,CAAE,QAAO;AAElC,KAAI,EAAE,WAAW,OAAQ,QAAO;AAEhC,MAAK,MAAM,CAAC,QAAQ,SAAS,OAAO,QAAQ,MAAM,EAAE;AAElD,MAAI,OAAO,SAAS,SAAU,QAAO;EAIrC,MAAM,QAAQ,OAAO,MAAM,I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,CAAC,UAAU;GAC9B,SAAS,EAAE,QAAQ,CAAC,UAAU;GAC/B,CAAC,CACD,UAAU;EACb,YAAY,EACT,OAAO;GACN,SAAS,EAAE,QAAQ,CAAC,UAAU;GAC9B,SAAS,EAAE,QAAQ,CAAC,UAAU;GAC/B,CAAC,CACD,UAAU;EACb,WAAW,EACR,OAAO,EACN,SAAS,EAAE,KAAK;GAAC;GAAO;GAAU;GAAO,CAAC,CAAC,UAAU,EACtD,CAAC,CACD,UAAU;EACd,CAAC,CACD,UAAU;CACb,wBAAwB,EAAE,MACxB,EAAE,KAAK;EACL;EACA;EAGA;EAKA;EACA;EAMA;EACA;EACA;EACA;EAIA;EACA;EACD,CAAC,CACH;CACF,CAAC;AAKF,MAAa,uBAAuB,EAAE,OAAO;CAC3C,GAAG,qBAAqB;CACxB,QAAQ,EAAE,SAAS;EACjB,OAAO,EAAE,MAAM,CAAC,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC,CAAC,CAAC;EAC7C,QAAQ,EAAE,QAAQ,gBAAgB;EACnC,CAAC;CACF,YAAY;CACb,CAAC"}
1
+ {"version":3,"file":"schemas.js","names":["JsonValueSchema"],"sources":["../src/utils/toolkit.ts","../src/schemas/common.ts","../src/utils/custom-json-value.ts","../src/schemas/property-ui.ts","../src/schemas/property.ts","../src/schemas/definition.ts"],"sourcesContent":["export function isPlainObject(value: unknown): value is Record<string, unknown> {\n if (value === null || typeof value !== \"object\") return false\n if (Object.prototype.toString.call(value) !== \"[object Object]\") return false\n\n const proto = Object.getPrototypeOf(value)\n return proto === Object.prototype || proto === null\n}\n\nexport function compact<T>(\n values: Array<T | null | undefined | false | 0 | \"\" | typeof Number.NaN>,\n): T[] {\n // Match common \"compact\" behavior: drop falsy values.\n // Note: `NaN` is truthy? Actually `Boolean(NaN) === false`, so it will be removed too.\n return values.filter(Boolean) as T[]\n}\n","import type { IsEqual } from \"type-fest\"\nimport { z } from \"zod\"\nimport type { I18nText } from \"../types\"\nimport { isPlainObject } from \"../utils/toolkit\"\n\n/**\n * I18n 词条模式\n *\n * NOTE: Zod 无法定义复杂的字面量模版,此处使用 `z.custom` 实现自定义验证\n */\nexport const I18nEntrySchema = z.custom<I18nText>((value) => {\n // 必须是对象字面量\n if (!isPlainObject(value)) return false\n // 必须包含 en_US 键\n if (!(\"en_US\" in value)) return false\n\n for (const [locale, text] of Object.entries(value)) {\n // 值必须是字符串\n if (typeof text !== \"string\") return false\n\n // NOTE: 支持的语言码并不严格符合标准,因为 TS 字面量模版无法描述所有可能的情况\n // 故以下仅对满足需求的子集做简单检查而不是严格的 RFC 5646 标准检查\n const parts = locale.split(\"_\")\n // 其它语言代码必须符合格式:<语言代码>_<国家或脚本代码>,且第二部份首字母必须大写\n if (parts.length !== 2 || parts[1][0] !== parts[1][0].toUpperCase()) {\n return false\n }\n }\n return true\n}, \"Invalid I18n entry\")\n{\n const _: IsEqual<z.infer<typeof I18nEntrySchema>, I18nText> = true\n}\n","/**\n * Custom JSON Value Schema and Type\n *\n * Why? Because `z.json()` is not compatible with `JSONValue` from type-fest\n */\n\nimport { z } from \"zod\"\n\n/**\n * Custom JSON Value Schema\n * @description Custom JSON Value Schema is a schema that allows any JSON value\n */\nexport const JsonValueSchema = z.json()\n\n/**\n * Custom JSON Value Type\n * @description Custom JSON Value Type is the type of the JSON value\n */\nexport type JsonValue = z.infer<typeof JsonValueSchema>\n","import type { IntRange, IsEqual } from \"type-fest\"\nimport { z } from \"zod\"\nimport type {\n PropertyUIArray,\n PropertyUIArraySectionProps,\n PropertyUIBoolean,\n PropertyUICollapsiblePanelProps,\n PropertyUIColorPickerProps,\n PropertyUIContainer,\n PropertyUICredentialId,\n PropertyUIEmojiPickerProps,\n PropertyUIEncryptedInputProps,\n PropertyUIInputProps,\n PropertyUIKeyValueEditorProps,\n PropertyUINumber,\n PropertyUIObject,\n PropertyUIOption,\n PropertyUIProps,\n PropertyUIRadioGroupProps,\n PropertyUISectionProps,\n PropertyUISingleSelectProps,\n PropertyUIString,\n PropertyUISwitchProps,\n} from \"../types\"\nimport { I18nEntrySchema } from \"./common\"\n\nconst indentationSchema = z.union([\n z.literal(2),\n z.literal(4),\n z.literal(6),\n z.literal(8),\n z.literal(10),\n z.literal(12),\n z.literal(14),\n z.literal(16),\n z.literal(18),\n z.literal(20),\n z.literal(22),\n z.literal(24),\n z.literal(26),\n z.literal(28),\n z.literal(30),\n z.literal(32),\n z.literal(34),\n z.literal(36),\n z.literal(38),\n z.literal(40),\n z.literal(42),\n z.literal(44),\n z.literal(46),\n z.literal(48),\n z.literal(50),\n z.literal(52),\n z.literal(54),\n z.literal(56),\n z.literal(58),\n z.literal(60),\n z.literal(62),\n z.literal(64),\n z.literal(66),\n z.literal(68),\n z.literal(70),\n z.literal(72),\n z.literal(74),\n z.literal(76),\n z.literal(78),\n z.literal(80),\n])\n{\n const _: IsEqual<z.infer<typeof indentationSchema>, IntRange<2, 81, 2>> = true\n}\n\n// Common UI properties schema\nexport const PropertyUICommonPropsSchema = z.object({\n disabled: z.boolean().optional(),\n hint: I18nEntrySchema.optional(),\n placeholder: I18nEntrySchema.optional(),\n readonly: z.boolean().optional(),\n sensitive: z.boolean().optional(),\n support_expression: z.boolean().optional(),\n width: z.enum([\"small\", \"medium\", \"full\"]).optional(),\n indentation: indentationSchema.optional(),\n display_none: z.boolean().optional(),\n})\n\n// Option schema for select components\nexport const PropertyUIOptionSchema = z.object({\n icon: z.string().optional(),\n label: I18nEntrySchema,\n value: z.union([z.string(), z.number(), z.boolean()]),\n})\n{\n const _: IsEqual<z.infer<typeof PropertyUIOptionSchema>, PropertyUIOption> = true\n}\n\nconst PropertyUIInputPropsSchema = PropertyUICommonPropsSchema.extend({\n component: z.literal(\"input\"),\n})\n{\n const _: IsEqual<z.infer<typeof PropertyUIInputPropsSchema>, PropertyUIInputProps> = true\n}\n\nexport const PropertyUIEncryptedInputPropsSchema = PropertyUICommonPropsSchema.extend({\n component: z.literal(\"encrypted-input\"),\n})\n{\n const _: IsEqual<\n z.infer<typeof PropertyUIEncryptedInputPropsSchema>,\n PropertyUIEncryptedInputProps\n > = true\n}\n\n// Textarea component schema\nconst PropertyUITextareaPropsSchema = PropertyUICommonPropsSchema.extend({\n component: z.literal(\"textarea\"),\n max_height: z.number().optional(),\n min_height: z.number().optional(),\n})\n\n// Number input component schema\nconst PropertyUINumberInputPropsSchema = PropertyUICommonPropsSchema.extend({\n component: z.literal(\"number-input\"),\n step: z.number().optional(),\n suffix: z.string().optional(),\n})\n\n// Code editor component schema\nconst PropertyUICodeEditorPropsSchema = PropertyUICommonPropsSchema.extend({\n component: z.literal(\"code-editor\"),\n language: z.enum([\"json\", \"javascript\", \"python3\"]).optional(),\n line_numbers: z.boolean().optional(),\n line_wrapping: z.boolean().optional(),\n max_height: z.number().optional(),\n min_height: z.number().optional(),\n rows: z.number().optional(),\n})\n\n// Select base schema\nconst PropertyUISelectPropsBaseSchema = z.object({\n clearable: z.boolean().optional(),\n options: z.array(PropertyUIOptionSchema).optional(),\n searchable: z.boolean().optional(),\n})\n\n// Single select component schema\nconst PropertyUISingleSelectPropsSchema = PropertyUICommonPropsSchema.merge(\n PropertyUISelectPropsBaseSchema,\n).extend({\n component: z.literal(\"select\"),\n})\n{\n const _: IsEqual<\n z.infer<typeof PropertyUISingleSelectPropsSchema>,\n PropertyUISingleSelectProps\n > = true\n}\n\n// Radio group component schema\nconst PropertyUIRadioGroupPropsSchema = PropertyUICommonPropsSchema.merge(\n PropertyUISelectPropsBaseSchema,\n).extend({\n component: z.literal(\"radio-group\"),\n})\n{\n const _: IsEqual<\n z.infer<typeof PropertyUIRadioGroupPropsSchema>,\n PropertyUIRadioGroupProps\n > = true\n}\n\n// Multi select component schema\nconst PropertyUIMultiSelectPropsSchema = PropertyUICommonPropsSchema.merge(\n PropertyUISelectPropsBaseSchema,\n).extend({\n component: z.literal(\"multi-select\"),\n})\n\n// Switch component schema\nconst PropertyUISwitchPropsSchema = PropertyUICommonPropsSchema.extend({\n component: z.literal(\"switch\"),\n})\n{\n const _: IsEqual<z.infer<typeof PropertyUISwitchPropsSchema>, PropertyUISwitchProps> = true\n}\n\n// Slider component schema\nconst PropertyUISliderPropsSchema = PropertyUICommonPropsSchema.extend({\n component: z.literal(\"slider\"),\n marks: z.record(z.number(), z.string()).optional(),\n show_value: z.boolean().optional(),\n step: z.number().optional(),\n})\n\n// Key-value editor component schema\nconst PropertyUIKeyValueEditorPropsSchema = PropertyUICommonPropsSchema.extend({\n add_button_label: I18nEntrySchema.optional(),\n component: z.literal(\"key-value-editor\"),\n empty_description: I18nEntrySchema.optional(),\n section_header: I18nEntrySchema.optional(),\n})\n{\n const _: IsEqual<\n z.infer<typeof PropertyUIKeyValueEditorPropsSchema>,\n PropertyUIKeyValueEditorProps\n > = true\n}\n\n// Tag input component schema\nconst PropertyUITagInputPropsSchema = PropertyUICommonPropsSchema.extend({\n component: z.literal(\"tag-input\"),\n})\n\n// Emoji picker component schema\nconst PropertyUIEmojiPickerPropsSchema = PropertyUICommonPropsSchema.extend({\n component: z.literal(\"emoji-picker\"),\n size: z.enum([\"extra-small\", \"small\", \"medium\", \"large\"]).optional(),\n})\n{\n const _: IsEqual<\n z.infer<typeof PropertyUIEmojiPickerPropsSchema>,\n PropertyUIEmojiPickerProps\n > = true\n}\n\n// Color picker component schema\nconst PropertyUIColorPickerPropsSchema = PropertyUICommonPropsSchema.extend({\n component: z.literal(\"color-picker\"),\n})\n{\n const _: IsEqual<\n z.infer<typeof PropertyUIColorPickerPropsSchema>,\n PropertyUIColorPickerProps\n > = true\n}\n\n// Credential select component schema\nconst PropertyUICredentialSelectPropsSchema = PropertyUICommonPropsSchema.extend({\n clearable: z.boolean().optional(),\n component: z.literal(\"credential-select\"),\n searchable: z.boolean().optional(),\n})\n\n// JSON Schema editor component schema\nconst PropertyUIJsonSchemaEditorPropsSchema = PropertyUICommonPropsSchema.extend({\n component: z.literal(\"json-schema-editor\"),\n})\n\n// Conditions editor component schema\nconst PropertyUIConditionsEditorPropsSchema = PropertyUICommonPropsSchema.extend({\n component: z.literal(\"conditions-editor\"),\n})\n\n// Array section component schema\nconst PropertyUIArraySectionPropsSchema = PropertyUICommonPropsSchema.extend({\n add_label: I18nEntrySchema.optional(),\n collapsible: z.boolean().optional(),\n component: z.literal(\"array-section\"),\n empty_message: I18nEntrySchema.optional(),\n remove_tooltip: I18nEntrySchema.optional(),\n sortable: z.boolean().optional(),\n})\n{\n const _: IsEqual<\n z.infer<typeof PropertyUIArraySectionPropsSchema>,\n PropertyUIArraySectionProps\n > = true\n}\n\n// Collapsible panel component schema\nconst PropertyUICollapsiblePanelPropsSchema = PropertyUICommonPropsSchema.extend({\n collapsible: z.boolean().optional(),\n component: z.literal(\"collapsible-panel\"),\n default_collapsed: z.boolean().optional(),\n panel_title: I18nEntrySchema.optional(),\n remove_tooltip: I18nEntrySchema.optional(),\n sortable: z.boolean().optional(),\n})\n{\n const _: IsEqual<\n z.infer<typeof PropertyUICollapsiblePanelPropsSchema>,\n PropertyUICollapsiblePanelProps\n > = true\n}\n\n// Section component schema\nconst PropertyUISectionPropsSchema = PropertyUICommonPropsSchema.extend({\n component: z.literal(\"section\"),\n})\n{\n const _: IsEqual<z.infer<typeof PropertyUISectionPropsSchema>, PropertyUISectionProps> = true\n}\n\nexport const PropertyUIPropsSchema = z.discriminatedUnion(\"component\", [\n PropertyUIInputPropsSchema,\n PropertyUITextareaPropsSchema,\n PropertyUINumberInputPropsSchema,\n PropertyUICodeEditorPropsSchema,\n PropertyUISingleSelectPropsSchema,\n PropertyUIRadioGroupPropsSchema,\n PropertyUIEmojiPickerPropsSchema,\n PropertyUIColorPickerPropsSchema,\n PropertyUIMultiSelectPropsSchema,\n PropertyUISwitchPropsSchema,\n PropertyUISliderPropsSchema,\n PropertyUIKeyValueEditorPropsSchema,\n PropertyUITagInputPropsSchema,\n PropertyUICredentialSelectPropsSchema,\n PropertyUIJsonSchemaEditorPropsSchema,\n PropertyUIConditionsEditorPropsSchema,\n PropertyUIArraySectionPropsSchema,\n PropertyUICollapsiblePanelPropsSchema,\n PropertyUISectionPropsSchema,\n PropertyUIEncryptedInputPropsSchema,\n])\n{\n const _: IsEqual<z.infer<typeof PropertyUIPropsSchema>, PropertyUIProps> = true\n}\n\nexport const PropertyUIBooleanSchema = z.discriminatedUnion(\"component\", [\n PropertyUISwitchPropsSchema,\n])\n{\n const _: IsEqual<z.infer<typeof PropertyUIBooleanSchema>, PropertyUIBoolean> = true\n}\n\nexport const PropertyUINumberSchema = z.discriminatedUnion(\"component\", [\n PropertyUINumberInputPropsSchema,\n PropertyUISliderPropsSchema,\n])\n{\n const _: IsEqual<z.infer<typeof PropertyUINumberSchema>, PropertyUINumber> = true\n}\n\nexport const PropertyUIStringSchema = z.discriminatedUnion(\"component\", [\n PropertyUIInputPropsSchema,\n PropertyUITextareaPropsSchema,\n PropertyUICodeEditorPropsSchema,\n PropertyUISingleSelectPropsSchema,\n PropertyUICredentialSelectPropsSchema,\n PropertyUIRadioGroupPropsSchema,\n PropertyUIEmojiPickerPropsSchema,\n PropertyUIColorPickerPropsSchema,\n])\n{\n const _: IsEqual<z.infer<typeof PropertyUIStringSchema>, PropertyUIString> = true\n}\n\nexport const PropertyUIArraySchema = z.discriminatedUnion(\"component\", [\n PropertyUIMultiSelectPropsSchema,\n PropertyUITagInputPropsSchema,\n PropertyUIKeyValueEditorPropsSchema,\n PropertyUISliderPropsSchema,\n PropertyUIArraySectionPropsSchema,\n])\n{\n const _: IsEqual<z.infer<typeof PropertyUIArraySchema>, PropertyUIArray> = true\n}\n\nexport const PropertyUIContainerSchema = z.discriminatedUnion(\"component\", [\n PropertyUICollapsiblePanelPropsSchema,\n PropertyUISectionPropsSchema,\n])\n{\n const _: IsEqual<z.infer<typeof PropertyUIContainerSchema>, PropertyUIContainer> = true\n}\n\nexport const PropertyUIObjectSchema = z.discriminatedUnion(\"component\", [\n PropertyUIJsonSchemaEditorPropsSchema,\n PropertyUIConditionsEditorPropsSchema,\n PropertyUICodeEditorPropsSchema,\n PropertyUICollapsiblePanelPropsSchema,\n PropertyUISectionPropsSchema,\n])\n{\n const _: IsEqual<z.infer<typeof PropertyUIObjectSchema>, PropertyUIObject> = true\n}\n\nexport const PropertyUICredentialIdSchema = z.discriminatedUnion(\"component\", [\n PropertyUICredentialSelectPropsSchema,\n])\n{\n const _: IsEqual<z.infer<typeof PropertyUICredentialIdSchema>, PropertyUICredentialId> = true\n}\n\nexport const PropertyUIDiscriminatorUISchema = z.discriminatedUnion(\"component\", [\n PropertyUISwitchPropsSchema,\n PropertyUISingleSelectPropsSchema,\n PropertyUIRadioGroupPropsSchema,\n])\n\nexport const PropertyUIEncryptedStringSchema = z.discriminatedUnion(\"component\", [\n PropertyUIEncryptedInputPropsSchema,\n])\n","import type { IsEqual, JsonValue } from \"type-fest\"\nimport { z } from \"zod\"\nimport type {\n DisplayCondition,\n FilterOperators,\n Property,\n PropertyArray,\n PropertyBase,\n PropertyBoolean,\n PropertyCredentialId,\n PropertyDiscriminatedUnion,\n PropertyEncryptedString,\n PropertyNumber,\n PropertyObject,\n PropertyScalar,\n PropertyString,\n} from \"../types\"\nimport { compact } from \"../utils/toolkit\"\nimport { I18nEntrySchema } from \"./common\"\nimport {\n PropertyUIArraySchema,\n PropertyUIBooleanSchema,\n PropertyUICommonPropsSchema,\n PropertyUICredentialIdSchema,\n PropertyUIDiscriminatorUISchema,\n PropertyUIEncryptedStringSchema,\n PropertyUINumberSchema,\n PropertyUIObjectSchema,\n PropertyUIStringSchema,\n} from \"./property-ui\"\n\nconst JsonPrimitiveSchema = z.union([z.string(), z.number(), z.boolean(), z.null()])\nconst JsonValueSchema: z.ZodType<JsonValue> = z.lazy(() =>\n z.union([JsonPrimitiveSchema, z.array(JsonValueSchema), z.record(z.string(), JsonValueSchema)]),\n)\n\nconst FilterOperatorsSchema = z.object({\n $eq: JsonValueSchema.nullish(),\n $exists: z.boolean().nullish(),\n $gt: JsonValueSchema.nullish(),\n $gte: JsonValueSchema.nullish(),\n $in: z.array(JsonValueSchema).nullish(),\n $lt: JsonValueSchema.nullish(),\n $lte: JsonValueSchema.nullish(),\n $mod: z.tuple([z.number(), z.number()]).nullish(),\n $ne: JsonValueSchema.nullish(),\n $nin: z.array(JsonValueSchema).nullish(),\n $options: z.string().nullish(),\n $regex: z.union([z.string(), z.instanceof(RegExp)]).nullish(),\n $size: z.number().nullish(),\n})\n\nconst ConditionSchema = z.union([JsonValueSchema, FilterOperatorsSchema])\n\nconst RootFilterSchema = z.object({\n get $and() {\n return z.array(FilterSchema).nullish()\n },\n get $nor() {\n return z.array(FilterSchema).nullish()\n },\n get $or() {\n return z.array(FilterSchema).nullish()\n },\n})\n{\n const _: IsEqual<z.infer<typeof FilterOperatorsSchema>, FilterOperators> = true\n}\n\n// skip infer because of recursive structure\nconst FilterSchema: z.ZodType<DisplayCondition> = z.union([\n z.record(z.string(), ConditionSchema),\n RootFilterSchema,\n])\n\nconst PropertyBaseSchema = z.object({\n name: z\n .string()\n .min(1, \"name cannot be empty\")\n .refine(\n (val) => {\n const regexStartsWithDollarOrWhitespace = /^[\\s$]/\n return !regexStartsWithDollarOrWhitespace.test(val)\n },\n {\n error: \"name cannot start with $ or whitespace\",\n abort: true,\n },\n )\n .refine(\n (val) => {\n const forbiddenCharacters = [\".\", \"[\", \"]\"]\n return !forbiddenCharacters.some((char) => val.includes(char))\n },\n {\n error: 'name cannot contain \".\", \"[\", or \"]\" characters',\n abort: true,\n },\n ),\n\n display_name: I18nEntrySchema.nullish(),\n required: z.boolean().nullish(),\n display: z\n .object({\n hide: FilterSchema.nullish(),\n show: FilterSchema.nullish(),\n })\n .nullish(),\n ai: z\n .object({\n llm_description: I18nEntrySchema.nullish(),\n })\n .nullish(),\n ui: PropertyUICommonPropsSchema.nullish(),\n})\n{\n const _: IsEqual<z.infer<typeof PropertyBaseSchema>, PropertyBase<string>> = true\n}\n\nconst PropertyStringSchema = PropertyBaseSchema.extend({\n type: z.literal(\"string\"),\n constant: z.string().nullish(),\n default: z.string().nullish(),\n enum: z.array(z.string()).nullish(),\n max_length: z.number().nullish(),\n min_length: z.number().nullish(),\n ui: PropertyUIStringSchema.nullish(),\n})\n{\n const _: IsEqual<z.infer<typeof PropertyStringSchema>, PropertyString<string>> = true\n}\n\nconst PropertyNumberSchema = PropertyBaseSchema.extend({\n type: z.union([z.literal(\"number\"), z.literal(\"integer\")]),\n constant: z.number().nullish(),\n default: z.number().nullish(),\n enum: z.array(z.number()).nullish(),\n maximum: z.number().nullish(),\n minimum: z.number().nullish(),\n ui: PropertyUINumberSchema.nullish(),\n})\n{\n const _: IsEqual<z.infer<typeof PropertyNumberSchema>, PropertyNumber<string>> = true\n}\n\nconst PropertyBooleanSchema = PropertyBaseSchema.extend({\n type: z.literal(\"boolean\"),\n constant: z.boolean().nullish(),\n default: z.boolean().nullish(),\n enum: z.array(z.boolean()).nullish(),\n ui: PropertyUIBooleanSchema.nullish(),\n})\n{\n const _: IsEqual<z.infer<typeof PropertyBooleanSchema>, PropertyBoolean<string>> = true\n}\n\nfunction setDuplicatePropertyNamesCheck<T extends z.ZodType<Array<Property>>>(schema: T) {\n return schema.refine(\n (properties) => {\n const names = new Set<string>()\n for (const prop of properties) {\n if (names.has(prop.name)) return false\n names.add(prop.name)\n }\n return true\n },\n {\n error: \"duplicate property names are not allowed\",\n },\n )\n}\n\n// use type assertion and lazy to avoid circular reference error\nconst ArrayPropertiesSchema: z.ZodType<PropertyObject[\"properties\"]> = z.lazy(() =>\n z.array(PropertySchema).apply(setDuplicatePropertyNamesCheck),\n)\n\nconst additionalPropertiesSchema: z.ZodType<Property> = z.lazy(() => PropertySchema)\n\nconst PropertyObjectSchema = PropertyBaseSchema.extend({\n type: z.literal(\"object\"),\n properties: ArrayPropertiesSchema,\n additional_properties: additionalPropertiesSchema.nullish(),\n constant: z.record(z.string(), JsonValueSchema).nullish(),\n default: z.record(z.string(), JsonValueSchema).nullish(),\n enum: z.array(z.record(z.string(), JsonValueSchema)).nullish(),\n ui: PropertyUIObjectSchema.nullish(),\n}).refine(\n (v) => {\n if (v.constant) return v.properties.length === 0\n return true\n },\n {\n error: \"properties must be empty when constant is defined\",\n abort: true,\n },\n)\n{\n type PropertyObjectInferred = z.infer<typeof PropertyObjectSchema>\n const _: IsEqual<PropertyObjectInferred, PropertyObject> = true\n}\n\nconst PropertyDiscriminatedUnionSchema = PropertyBaseSchema.extend({\n type: z.literal(\"discriminated_union\"),\n get any_of() {\n return z.array(PropertyObjectSchema).min(2, \"anyOf must have at least two items\")\n },\n discriminator: z.string().min(1, \"discriminator cannot be empty\"),\n discriminator_ui: PropertyUIDiscriminatorUISchema.nullish(),\n})\n .refine(\n (v) => {\n const { any_of, discriminator } = v\n return any_of.every((i) => {\n const discriminatorProperty = i.properties?.find((p) => p.name === discriminator)\n if (!discriminatorProperty) return false\n if (!(\"constant\" in discriminatorProperty)) return false\n if (\n typeof discriminatorProperty.constant !== \"string\" &&\n typeof discriminatorProperty.constant !== \"number\" &&\n typeof discriminatorProperty.constant !== \"boolean\"\n ) {\n return false\n }\n return true\n })\n },\n {\n error:\n \"Each item in anyOf must contain the discriminator field with constant string/number/boolean value\",\n abort: true,\n },\n )\n .refine(\n (v) => {\n const { any_of } = v\n const allDiscriminatorProperty = compact(\n any_of.map((i) => {\n const discriminatorProperty = i.properties?.find((p) => p.name === v.discriminator)\n if (!discriminatorProperty) return null\n if (!(\"constant\" in discriminatorProperty)) return null\n return discriminatorProperty.constant\n }),\n )\n const uniqueValues = new Set(allDiscriminatorProperty)\n return uniqueValues.size === allDiscriminatorProperty.length\n },\n {\n error: \"Discriminator values must be unique across all anyOf items\",\n },\n )\n{\n const _: IsEqual<\n z.infer<typeof PropertyDiscriminatedUnionSchema>,\n PropertyDiscriminatedUnion\n > = true\n}\n\nconst PropertyArraySchema = PropertyBaseSchema.extend({\n type: z.literal(\"array\"),\n constant: z.array(JsonValueSchema).nullish(),\n default: z.array(JsonValueSchema).nullish(),\n enum: z.array(z.array(JsonValueSchema)).nullish(),\n get items() {\n return PropertySchema\n },\n max_items: z.number().nullish(),\n min_items: z.number().nullish(),\n ui: PropertyUIArraySchema.nullish(),\n})\n{\n const _: IsEqual<z.infer<typeof PropertyArraySchema>, PropertyArray> = true\n}\n\nconst PropertyCredentialIdSchema = PropertyBaseSchema.extend({\n type: z.literal(\"credential_id\"),\n credential_name: z.string().min(1, \"credential_name cannot be empty\"),\n ui: PropertyUICredentialIdSchema.nullish(),\n})\n\n{\n const _: IsEqual<z.infer<typeof PropertyCredentialIdSchema>, PropertyCredentialId<string>> = true\n}\nconst PropertyEncryptedStringSchema = PropertyBaseSchema.extend({\n type: z.literal(\"encrypted_string\"),\n ui: PropertyUIEncryptedStringSchema.nullish(),\n})\n{\n const _: IsEqual<z.infer<typeof PropertyEncryptedStringSchema>, PropertyEncryptedString> = true\n}\n\nconst PropertyScalarSchema = z.union([\n PropertyStringSchema,\n PropertyBooleanSchema,\n PropertyNumberSchema,\n PropertyEncryptedStringSchema,\n])\n{\n const _: IsEqual<z.infer<typeof PropertyScalarSchema>, PropertyScalar<string>> = true\n}\n\nexport const PropertiesScalarSchema = z.lazy(() =>\n z.array(PropertyScalarSchema).apply(setDuplicatePropertyNamesCheck),\n)\n\nconst PropertySchema = z.union([\n ...PropertyScalarSchema.options,\n PropertyCredentialIdSchema,\n PropertyArraySchema,\n PropertyObjectSchema,\n PropertyDiscriminatedUnionSchema,\n])\n{\n const _: IsEqual<z.infer<typeof PropertySchema>, Property> = true\n}\n\nexport const PropertiesSchema = ArrayPropertiesSchema\n","import type { IsEqual } from \"type-fest\"\nimport { z } from \"zod\"\nimport type {\n BaseDefinition,\n CredentialDefinition,\n ModelDefinition,\n PluginDefinition,\n ToolDefinition,\n} from \"../types\"\nimport { JsonValueSchema } from \"../utils/custom-json-value\"\nimport { I18nEntrySchema } from \"./common\"\nimport { PropertiesScalarSchema, PropertiesSchema } from \"./property\"\n\n/**\n * 基础定义模式\n *\n * 此为所有功能定义模式的基类,定义了通用的属性,不单独使用\n */\nexport const BaseDefinitionSchema = z.object({\n // 1. 只能出现英文字母(大小写不敏感)和数字以及_和-\n // 2. 开头只能是英文字母,结尾不能是_和-\n // 3. _和-不能连续出现多次\n // 4. 最小长度 4,最大长度 64\n name: z.string().regex(/^[a-zA-Z](?:(?![_-]{2,})[a-zA-Z0-9_-]){3,63}[a-zA-Z0-9]$/, {\n error:\n \"Invalid name, should match the following rules: 1. only English letters, numbers, _ and - 2. start with English letter, end with English letter or number 3. _ and - cannot appear consecutively more than twice 4. minimum length 4, maximum length 64\",\n }),\n display_name: I18nEntrySchema,\n description: I18nEntrySchema,\n icon: z.string(),\n})\n{\n const _: IsEqual<z.infer<typeof BaseDefinitionSchema>, BaseDefinition> = true\n}\n\nexport const PluginDefinitionSchema = z.object({\n ...BaseDefinitionSchema.shape,\n author: z.string().nullish(),\n email: z.email().nullish(),\n repo: z.httpUrl().nullish(),\n version: z.string().nullish(),\n locales: z.array(z.string()),\n})\n{\n const _: IsEqual<\n z.infer<typeof PluginDefinitionSchema>,\n Omit<PluginDefinition<string[], unknown>, \"transporterOptions\"> // not necessary to verify transpoterOptions\n > = true\n}\n\nexport const CredentialDefinitionSchema = z.object({\n ...BaseDefinitionSchema.shape,\n parameters: PropertiesScalarSchema,\n})\n{\n const _: IsEqual<z.infer<typeof CredentialDefinitionSchema>, CredentialDefinition> = true\n}\n\nexport const DataSourceDefinitionSchema = z.object({\n ...BaseDefinitionSchema.shape,\n parameters: PropertiesScalarSchema,\n})\n\nexport type DataSourceDefinition = z.infer<typeof DataSourceDefinitionSchema>\n\nexport const ModelDefinitionSchema = z.object({\n ...BaseDefinitionSchema.shape,\n name: z.string().regex(/^[a-zA-Z](?:(?![_-]{2,})[a-zA-Z0-9_/-]){3,63}[a-zA-Z0-9]$/, {\n error:\n \"Invalid model name, should match the following rules: 1. only English letters, numbers, _ and - 2. start with English letter, end with English letter or number 3. _ and - cannot appear consecutively more than twice 4. minimum length 4, maximum length 64 5. allow '/' in the middle\",\n }),\n model_type: z.literal(\"llm\"),\n default_endpoint: z.httpUrl().optional(),\n input_modalities: z.array(z.enum([\"file\", \"image\", \"text\"])),\n output_modalities: z.array(z.enum([\"text\"])),\n pricing: z\n .object({\n currency: z.string().optional(),\n input: z.number().optional(),\n input_cache_read: z.number().optional(),\n input_cache_write: z.number().optional(),\n output: z.number().optional(),\n request: z.number().optional(),\n })\n .optional(),\n override_parameters: z\n .object({\n temperature: z\n .object({\n default: z.number().optional(),\n maximum: z.number().optional(),\n minimum: z.number().optional(),\n })\n .optional(),\n frequency_penalty: z\n .object({\n default: z.number().optional(),\n maximum: z.number().optional(),\n minimum: z.number().optional(),\n })\n .optional(),\n max_tokens: z\n .object({\n default: z.number().optional(),\n maximum: z.number().optional(),\n })\n .optional(),\n verbosity: z\n .object({\n default: z.enum([\"low\", \"medium\", \"high\"]).optional(),\n })\n .optional(),\n })\n .optional(),\n unsupported_parameters: z.array(\n z.enum([\n \"endpoint\",\n \"temperature\",\n // \"top_p\",\n // \"top_k\",\n \"frequency_penalty\",\n // \"presence_penalty\",\n // \"repetition_penalty\",\n // \"min_p\",\n // \"top_a\",\n \"seed\",\n \"max_tokens\",\n // \"logit_bias\",\n // \"logprobs\",\n // \"top_logprobs\",\n // \"response_format\",\n // \"json_response\",\n \"json_schema\",\n \"stream\",\n \"stream_options\",\n \"structured_outputs\",\n // \"stop\",\n // \"tools\",\n // \"tool_choice\",\n \"parallel_tool_calls\",\n \"verbosity\",\n ]),\n ),\n})\n{\n const _: IsEqual<z.infer<typeof ModelDefinitionSchema>, ModelDefinition> = true\n}\n\nexport const ToolDefinitionSchema = z.object({\n ...BaseDefinitionSchema.shape,\n invoke: z.function({\n input: z.tuple([z.object({ args: z.any() })]),\n output: z.promise(JsonValueSchema),\n }),\n parameters: PropertiesSchema,\n})\n{\n const _: IsEqual<z.infer<typeof ToolDefinitionSchema>, ToolDefinition> = true\n}\n"],"mappings":";;;AAAA,SAAgB,cAAc,OAAkD;AAC9E,KAAI,UAAU,QAAQ,OAAO,UAAU,SAAU,QAAO;AACxD,KAA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all conditions must be true
236
236
  */
237
- $and?: Array<DisplayCondition<TSchema>>;
237
+ $and?: Array<DisplayCondition<TSchema>> | null;
238
238
  /**
239
239
  * Joins conditions with logical NOR; none of the conditions must be true
240
240
  */
241
- $nor?: Array<DisplayCondition<TSchema>>;
241
+ $nor?: Array<DisplayCondition<TSchema>> | null;
242
242
  /**
243
243
  * Joins conditions with logical OR; at least one condition must be true
244
244
  */
245
- $or?: Array<DisplayCondition<TSchema>>;
245
+ $or?: Array<DisplayCondition<TSchema>> | null;
246
246
  }
247
247
  type Condition<T extends JsonValue = JsonValue> = T | FilterOperators<T>;
248
248
  /**
@@ -253,55 +253,55 @@ interface FilterOperators<TValue extends JsonValue = JsonValue> {
253
253
  /**
254
254
  * Matches values equal to a specified value
255
255
  */
256
- $eq?: TValue;
256
+ $eq?: TValue | null;
257
257
  /**
258
258
  * Checks if a field exists
259
259
  */
260
- $exists?: boolean;
260
+ $exists?: boolean | null;
261
261
  /**
262
262
  * Matches values greater than a specified value
263
263
  */
264
- $gt?: TValue;
264
+ $gt?: TValue | null;
265
265
  /**
266
266
  * Matches values greater than or equal to a specified value
267
267
  */
268
- $gte?: TValue;
268
+ $gte?: TValue | null;
269
269
  /**
270
270
  * Matches any value specified in an array
271
271
  */
272
- $in?: Array<TValue>;
272
+ $in?: Array<TValue> | null;
273
273
  /**
274
274
  * Matches values less than a specified value
275
275
  */
276
- $lt?: TValue;
276
+ $lt?: TValue | null;
277
277
  /**
278
278
  * Matches values less than or equal to a specified value
279
279
  */
280
- $lte?: TValue;
280
+ $lte?: TValue | null;
281
281
  /**
282
282
  * Matches values based on a modulo operation; value: [divisor, remainder]
283
283
  */
284
- $mod?: TValue extends number ? [number, number] : never;
284
+ $mod?: TValue extends number ? [number, number] | null : never;
285
285
  /**
286
286
  * Matches values not equal to a specified value
287
287
  */
288
- $ne?: TValue;
288
+ $ne?: TValue | null;
289
289
  /**
290
290
  * Matches values not in a specified array
291
291
  */
292
- $nin?: Array<TValue>;
292
+ $nin?: Array<TValue> | null;
293
293
  /**
294
294
  * Regex options: i=case-insensitive, m=multiline, x=ignore whitespace, s=dotAll, u=unicode
295
295
  */
296
- $options?: TValue extends string ? string : never;
296
+ $options?: TValue extends string ? string | null : never;
297
297
  /**
298
298
  * Matches values against a regular expression pattern
299
299
  */
300
- $regex?: TValue extends string ? RegExp | string : never;
300
+ $regex?: TValue extends string ? RegExp | string | null : never;
301
301
  /**
302
302
  * Matches arrays with a specified number of elements
303
303
  */
304
- $size?: TValue extends Array<unknown> ? number : never;
304
+ $size?: TValue extends Array<unknown> ? number | null : never;
305
305
  }
306
306
  interface PropertyBase<TName extends string = string> {
307
307
  /**
@@ -311,92 +311,92 @@ interface PropertyBase<TName extends string = string> {
311
311
  /**
312
312
  * Display name (supports i18n)
313
313
  */
314
- display_name?: I18nText;
314
+ display_name?: I18nText | null;
315
315
  /**
316
316
  * Whether this property is required
317
317
  */
318
- required?: boolean;
318
+ required?: boolean | null;
319
319
  /**
320
320
  * Display condition; if not set, property is always visible
321
321
  */
322
322
  display?: {
323
- hide?: DisplayCondition;
324
- show?: DisplayCondition;
325
- };
323
+ hide?: DisplayCondition | null;
324
+ show?: DisplayCondition | null;
325
+ } | null;
326
326
  /**
327
327
  * AI-related configuration
328
328
  */
329
329
  ai?: {
330
- llm_description?: I18nText;
331
- };
330
+ llm_description?: I18nText | null;
331
+ } | null;
332
332
  /**
333
333
  * UI configuration for how the property is displayed
334
334
  */
335
- ui?: PropertyUICommonProps;
335
+ ui?: PropertyUICommonProps | null;
336
336
  }
337
337
  interface PropertyString<TName extends string = string> extends PropertyBase<TName> {
338
338
  type: "string";
339
339
  /**
340
340
  * Restrict value to a single constant
341
341
  */
342
- constant?: string;
342
+ constant?: string | null;
343
343
  /**
344
344
  * Default value when not specified
345
345
  */
346
- default?: string;
346
+ default?: string | null;
347
347
  /**
348
348
  * Restrict value to a set of allowed values
349
349
  */
350
- enum?: Array<string>;
350
+ enum?: Array<string> | null;
351
351
  /**
352
352
  * Maximum string length
353
353
  */
354
- max_length?: number;
354
+ max_length?: number | null;
355
355
  /**
356
356
  * Minimum string length
357
357
  */
358
- min_length?: number;
359
- ui?: PropertyUIString;
358
+ min_length?: number | null;
359
+ ui?: PropertyUIString | null;
360
360
  }
361
361
  interface PropertyNumber<TName extends string = string> extends PropertyBase<TName> {
362
362
  type: "number" | "integer";
363
363
  /**
364
364
  * Restrict value to a single constant
365
365
  */
366
- constant?: number;
366
+ constant?: number | null;
367
367
  /**
368
368
  * Default value when not specified
369
369
  */
370
- default?: number;
370
+ default?: number | null;
371
371
  /**
372
372
  * Restrict value to a set of allowed values
373
373
  */
374
- enum?: Array<number>;
374
+ enum?: Array<number> | null;
375
375
  /**
376
376
  * Maximum value (inclusive)
377
377
  */
378
- maximum?: number;
378
+ maximum?: number | null;
379
379
  /**
380
380
  * Minimum value (inclusive)
381
381
  */
382
- minimum?: number;
383
- ui?: PropertyUINumber;
382
+ minimum?: number | null;
383
+ ui?: PropertyUINumber | null;
384
384
  }
385
385
  interface PropertyBoolean<TName extends string = string> extends PropertyBase<TName> {
386
386
  type: "boolean";
387
387
  /**
388
388
  * Restrict value to a single constant
389
389
  */
390
- constant?: boolean;
390
+ constant?: boolean | null;
391
391
  /**
392
392
  * Default value when not specified
393
393
  */
394
- default?: boolean;
394
+ default?: boolean | null;
395
395
  /**
396
396
  * Restrict value to a set of allowed values
397
397
  */
398
- enum?: Array<boolean>;
399
- ui?: PropertyUIBoolean;
398
+ enum?: Array<boolean> | null;
399
+ ui?: PropertyUIBoolean | null;
400
400
  }
401
401
  /**
402
402
  * Object Property Type
@@ -415,22 +415,22 @@ interface PropertyObject<TName extends string = string, TDiscriminator extends s
415
415
  /**
416
416
  * Restrict value to a single constant
417
417
  */
418
- constant?: TValue;
418
+ constant?: TValue | null;
419
419
  /**
420
420
  * Default value when not specified
421
421
  */
422
- default?: TValue;
422
+ default?: TValue | null;
423
423
  /**
424
424
  * Restrict value to a set of allowed values
425
425
  */
426
- enum?: Array<TValue>;
426
+ enum?: Array<TValue> | null;
427
427
  /**
428
428
  * Schema for additional properties beyond those defined in `properties`.
429
429
  * Supports dynamic keys with values conforming to the specified property schema.
430
430
  * Semantics similar to JSON Schema's additionalProperties: https://json-schema.org/draft/2019-09/draft-handrews-json-schema-02#additionalProperties
431
431
  */
432
- additional_properties?: Property;
433
- ui?: PropertyUIObject;
432
+ additional_properties?: Property | null;
433
+ ui?: PropertyUIObject | null;
434
434
  }
435
435
  interface PropertyDiscriminatedUnion<TName extends string = string, TDiscriminator extends string = string> extends PropertyBase<TName> {
436
436
  type: "discriminated_union";
@@ -445,13 +445,13 @@ interface PropertyDiscriminatedUnion<TName extends string = string, TDiscriminat
445
445
  /**
446
446
  * UI component for displaying the discriminator field
447
447
  */
448
- discriminator_ui?: PropertyUISwitchProps | PropertyUISingleSelectProps | PropertyUIRadioGroupProps;
448
+ discriminator_ui?: PropertyUISwitchProps | PropertyUISingleSelectProps | PropertyUIRadioGroupProps | null;
449
449
  }
450
450
  interface PropertyArray<TName extends string = string> extends PropertyBase<TName> {
451
451
  type: "array";
452
- constant?: Array<JsonValue>;
453
- default?: Array<JsonValue>;
454
- enum?: Array<Array<JsonValue>>;
452
+ constant?: Array<JsonValue> | null;
453
+ default?: Array<JsonValue> | null;
454
+ enum?: Array<Array<JsonValue>> | null;
455
455
  /**
456
456
  * Item schema for array elements
457
457
  */
@@ -459,12 +459,12 @@ interface PropertyArray<TName extends string = string> extends PropertyBase<TNam
459
459
  /**
460
460
  * Maximum array size (inclusive)
461
461
  */
462
- max_items?: number;
462
+ max_items?: number | null;
463
463
  /**
464
464
  * Minimum array size (inclusive)
465
465
  */
466
- min_items?: number;
467
- ui?: PropertyUIArray;
466
+ min_items?: number | null;
467
+ ui?: PropertyUIArray | null;
468
468
  }
469
469
  interface PropertyCredentialId<TName extends string = string> extends PropertyBase<TName> {
470
470
  type: "credential_id";
@@ -474,11 +474,11 @@ interface PropertyCredentialId<TName extends string = string> extends PropertyBa
474
474
  * **Note:** The name must match exactly, otherwise the system will be unable to find the corresponding credential.
475
475
  */
476
476
  credential_name: string;
477
- ui?: PropertyUICredentialId;
477
+ ui?: PropertyUICredentialId | null;
478
478
  }
479
479
  interface PropertyEncryptedString<TName extends string = string> extends PropertyBase<TName> {
480
480
  type: "encrypted_string";
481
- ui?: PropertyUIEncryptedString;
481
+ ui?: PropertyUIEncryptedString | null;
482
482
  }
483
483
  type PropertyScalar<TName extends string = string> = PropertyString<TName> | PropertyBoolean<TName> | PropertyNumber<TName> | PropertyEncryptedString<TName>;
484
484
  type Property<TName extends string = string, TValue extends JsonValue = JsonValue> = PropertyScalar<TName> | PropertyCredentialId<TName> | PropertyArray<TName> | PropertyObject<TName, string, TValue extends JsonObject ? TValue : JsonObject> | PropertyDiscriminatedUnion<TName, string>;
@@ -707,4 +707,4 @@ interface ToolDefinition extends BaseDefinition {
707
707
  }
708
708
  //#endregion
709
709
  export { PropertyUIEmojiPickerProps as A, PropertyUIRadioGroupProps as B, PropertyUIBoolean as C, PropertyUIComponentType as D, PropertyUICommonProps as E, PropertyUIMisc as F, JsonValue$1 as G, PropertyUISingleSelectProps as H, PropertyUINumber as I, JsonValueSchema as K, PropertyUIObject as L, PropertyUIEncryptedString as M, PropertyUIInputProps as N, PropertyUIContainer as O, PropertyUIKeyValueEditorProps as P, PropertyUIOption as R, PropertyUIArraySectionProps as S, PropertyUIColorPickerProps as T, PropertyUIString as U, PropertyUISectionProps as V, PropertyUISwitchProps as W, PropertyNumber as _, ModelDefinition as a, PropertyString as b, DisplayCondition as c, PropertyArray as d, PropertyBase as f, PropertyEncryptedString as g, PropertyDiscriminatedUnion as h, Feature as i, PropertyUIEncryptedInputProps as j, PropertyUICredentialId as k, FilterOperators as l, PropertyCredentialId as m, CredentialDefinition as n, PluginDefinition as o, PropertyBoolean as p, I18nText as q, DataSourceDefinition as r, ToolDefinition as s, BaseDefinition as t, Property as u, PropertyObject as v, PropertyUICollapsiblePanelProps as w, PropertyUIArray as x, PropertyScalar as y, PropertyUIProps as z };
710
- //# sourceMappingURL=types-C8H4qnkM.d.ts.map
710
+ //# sourceMappingURL=types-P4MROouJ.d.ts.map
package/dist/types.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- import { A as PropertyUIEmojiPickerProps, B as PropertyUIRadioGroupProps, C as PropertyUIBoolean, D as PropertyUIComponentType, E as PropertyUICommonProps, F as PropertyUIMisc, G as JsonValue, H as PropertyUISingleSelectProps, I as PropertyUINumber, K as JsonValueSchema, L as PropertyUIObject, M as PropertyUIEncryptedString, N as PropertyUIInputProps, O as PropertyUIContainer, P as PropertyUIKeyValueEditorProps, R as PropertyUIOption, S as PropertyUIArraySectionProps, T as PropertyUIColorPickerProps, U as PropertyUIString, V as PropertyUISectionProps, W as PropertyUISwitchProps, _ as PropertyNumber, a as ModelDefinition, b as PropertyString, c as DisplayCondition, d as PropertyArray, f as PropertyBase, g as PropertyEncryptedString, h as PropertyDiscriminatedUnion, i as Feature, j as PropertyUIEncryptedInputProps, k as PropertyUICredentialId, l as FilterOperators, m as PropertyCredentialId, n as CredentialDefinition, o as PluginDefinition, p as PropertyBoolean, q as I18nText, r as DataSourceDefinition, s as ToolDefinition, t as BaseDefinition, u as Property, v as PropertyObject, w as PropertyUICollapsiblePanelProps, x as PropertyUIArray, y as PropertyScalar, z as PropertyUIProps } from "./types-C8H4qnkM.js";
1
+ import { A as PropertyUIEmojiPickerProps, B as PropertyUIRadioGroupProps, C as PropertyUIBoolean, D as PropertyUIComponentType, E as PropertyUICommonProps, F as PropertyUIMisc, G as JsonValue, H as PropertyUISingleSelectProps, I as PropertyUINumber, K as JsonValueSchema, L as PropertyUIObject, M as PropertyUIEncryptedString, N as PropertyUIInputProps, O as PropertyUIContainer, P as PropertyUIKeyValueEditorProps, R as PropertyUIOption, S as PropertyUIArraySectionProps, T as PropertyUIColorPickerProps, U as PropertyUIString, V as PropertyUISectionProps, W as PropertyUISwitchProps, _ as PropertyNumber, a as ModelDefinition, b as PropertyString, c as DisplayCondition, d as PropertyArray, f as PropertyBase, g as PropertyEncryptedString, h as PropertyDiscriminatedUnion, i as Feature, j as PropertyUIEncryptedInputProps, k as PropertyUICredentialId, l as FilterOperators, m as PropertyCredentialId, n as CredentialDefinition, o as PluginDefinition, p as PropertyBoolean, q as I18nText, r as DataSourceDefinition, s as ToolDefinition, t as BaseDefinition, u as Property, v as PropertyObject, w as PropertyUICollapsiblePanelProps, x as PropertyUIArray, y as PropertyScalar, z as PropertyUIProps } from "./types-P4MROouJ.js";
2
2
  export { BaseDefinition, CredentialDefinition, DataSourceDefinition, DisplayCondition, Feature, FilterOperators, I18nText, JsonValue, JsonValueSchema, ModelDefinition, PluginDefinition, Property, PropertyArray, PropertyBase, PropertyBoolean, PropertyCredentialId, PropertyDiscriminatedUnion, PropertyEncryptedString, PropertyNumber, PropertyObject, PropertyScalar, PropertyString, PropertyUIArray, PropertyUIArraySectionProps, PropertyUIBoolean, PropertyUICollapsiblePanelProps, PropertyUIColorPickerProps, PropertyUICommonProps, PropertyUIComponentType, PropertyUIContainer, PropertyUICredentialId, PropertyUIEmojiPickerProps, PropertyUIEncryptedInputProps, PropertyUIEncryptedString, PropertyUIInputProps, PropertyUIKeyValueEditorProps, PropertyUIMisc, PropertyUINumber, PropertyUIObject, PropertyUIOption, PropertyUIProps, PropertyUIRadioGroupProps, PropertyUISectionProps, PropertyUISingleSelectProps, PropertyUIString, PropertyUISwitchProps, ToolDefinition };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@choiceopen/atomemo-plugin-schema",
3
- "version": "0.1.5",
3
+ "version": "0.1.6",
4
4
  "description": "Schema for developing Choiceform atomemo plugins",
5
5
  "homepage": "https://github.com/choice-open/atomemo-plugin-schema#readme",
6
6
  "bugs": {