agentstack-sdk 0.6.2 → 0.7.0-rc11

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/server.js CHANGED
@@ -126,13 +126,18 @@ var checkboxFieldSchema = baseFieldSchema.extend({
126
126
  content: z7.string(),
127
127
  default_value: z7.boolean().nullish()
128
128
  });
129
+ var checkboxGroupFieldSchema = baseFieldSchema.extend({
130
+ type: z7.literal("checkbox_group"),
131
+ fields: z7.array(checkboxFieldSchema)
132
+ });
129
133
  var formFieldSchema = z7.discriminatedUnion("type", [
130
134
  textFieldSchema,
131
135
  dateFieldSchema,
132
136
  fileFieldSchema,
133
137
  singleSelectFieldSchema,
134
138
  multiSelectFieldSchema,
135
- checkboxFieldSchema
139
+ checkboxFieldSchema,
140
+ checkboxGroupFieldSchema
136
141
  ]);
137
142
  var textFieldValueSchema = z7.object({
138
143
  type: textFieldSchema.shape.type,
@@ -164,13 +169,18 @@ var checkboxFieldValueSchema = z7.object({
164
169
  type: checkboxFieldSchema.shape.type,
165
170
  value: z7.boolean().nullish()
166
171
  });
172
+ var checkboxGroupFieldValueSchema = z7.object({
173
+ type: checkboxGroupFieldSchema.shape.type,
174
+ value: z7.record(z7.string(), z7.boolean().nullish()).nullish()
175
+ });
167
176
  var formFieldValueSchema = z7.discriminatedUnion("type", [
168
177
  textFieldValueSchema,
169
178
  dateFieldValueSchema,
170
179
  fileFieldValueSchema,
171
180
  singleSelectFieldValueSchema,
172
181
  multiSelectFieldValueSchema,
173
- checkboxFieldValueSchema
182
+ checkboxFieldValueSchema,
183
+ checkboxGroupFieldValueSchema
174
184
  ]);
175
185
  var formRenderSchema = z7.object({
176
186
  fields: z7.array(formFieldSchema).nonempty(),
@@ -205,13 +215,32 @@ var embeddingFulfillmentsSchema = z8.object({
205
215
 
206
216
  // src/client/a2a/extensions/services/form/schemas.ts
207
217
  import z9 from "zod";
218
+ var settingsFormFieldSchema = z9.discriminatedUnion("type", [
219
+ checkboxGroupFieldSchema,
220
+ singleSelectFieldSchema
221
+ ]);
222
+ var settingsFormFieldValueSchema = z9.discriminatedUnion("type", [
223
+ checkboxGroupFieldValueSchema,
224
+ singleSelectFieldValueSchema
225
+ ]);
226
+ var settingsFormRenderSchema = formRenderSchema.extend({
227
+ fields: z9.array(settingsFormFieldSchema).nonempty()
228
+ });
229
+ var settingsFormValuesSchema = z9.record(z9.string(), settingsFormFieldValueSchema);
230
+ var settingsFormResponseSchema = formResponseSchema.extend({
231
+ values: settingsFormValuesSchema
232
+ });
208
233
  var formDemandsSchema = z9.object({
209
234
  form_demands: z9.object({
210
- initial_form: formRenderSchema
211
- }).partial()
235
+ initial_form: formRenderSchema,
236
+ settings_form: settingsFormRenderSchema
237
+ }).partial().catchall(formRenderSchema)
212
238
  });
213
239
  var formFulfillmentsSchema = z9.object({
214
- form_fulfillments: z9.record(z9.string(), formResponseSchema)
240
+ form_fulfillments: z9.object({
241
+ initial_form: formResponseSchema,
242
+ settings_form: settingsFormResponseSchema
243
+ }).partial().catchall(formResponseSchema)
215
244
  });
216
245
 
217
246
  // src/client/a2a/extensions/services/llm/schemas.ts
@@ -157,6 +157,22 @@ declare const checkboxFieldSchema: z__default.ZodObject<{
157
157
  content: z__default.ZodString;
158
158
  default_value: z__default.ZodOptional<z__default.ZodNullable<z__default.ZodBoolean>>;
159
159
  }, z__default.core.$strip>;
160
+ declare const checkboxGroupFieldSchema: z__default.ZodObject<{
161
+ id: z__default.ZodString;
162
+ label: z__default.ZodString;
163
+ required: z__default.ZodOptional<z__default.ZodNullable<z__default.ZodBoolean>>;
164
+ col_span: z__default.ZodOptional<z__default.ZodNullable<z__default.ZodInt>>;
165
+ type: z__default.ZodLiteral<"checkbox_group">;
166
+ fields: z__default.ZodArray<z__default.ZodObject<{
167
+ id: z__default.ZodString;
168
+ label: z__default.ZodString;
169
+ required: z__default.ZodOptional<z__default.ZodNullable<z__default.ZodBoolean>>;
170
+ col_span: z__default.ZodOptional<z__default.ZodNullable<z__default.ZodInt>>;
171
+ type: z__default.ZodLiteral<"checkbox">;
172
+ content: z__default.ZodString;
173
+ default_value: z__default.ZodOptional<z__default.ZodNullable<z__default.ZodBoolean>>;
174
+ }, z__default.core.$strip>>;
175
+ }, z__default.core.$strip>;
160
176
  declare const formFieldSchema: z__default.ZodDiscriminatedUnion<[z__default.ZodObject<{
161
177
  id: z__default.ZodString;
162
178
  label: z__default.ZodString;
@@ -211,6 +227,21 @@ declare const formFieldSchema: z__default.ZodDiscriminatedUnion<[z__default.ZodO
211
227
  type: z__default.ZodLiteral<"checkbox">;
212
228
  content: z__default.ZodString;
213
229
  default_value: z__default.ZodOptional<z__default.ZodNullable<z__default.ZodBoolean>>;
230
+ }, z__default.core.$strip>, z__default.ZodObject<{
231
+ id: z__default.ZodString;
232
+ label: z__default.ZodString;
233
+ required: z__default.ZodOptional<z__default.ZodNullable<z__default.ZodBoolean>>;
234
+ col_span: z__default.ZodOptional<z__default.ZodNullable<z__default.ZodInt>>;
235
+ type: z__default.ZodLiteral<"checkbox_group">;
236
+ fields: z__default.ZodArray<z__default.ZodObject<{
237
+ id: z__default.ZodString;
238
+ label: z__default.ZodString;
239
+ required: z__default.ZodOptional<z__default.ZodNullable<z__default.ZodBoolean>>;
240
+ col_span: z__default.ZodOptional<z__default.ZodNullable<z__default.ZodInt>>;
241
+ type: z__default.ZodLiteral<"checkbox">;
242
+ content: z__default.ZodString;
243
+ default_value: z__default.ZodOptional<z__default.ZodNullable<z__default.ZodBoolean>>;
244
+ }, z__default.core.$strip>>;
214
245
  }, z__default.core.$strip>], "type">;
215
246
  declare const textFieldValueSchema: z__default.ZodObject<{
216
247
  type: z__default.ZodLiteral<"text">;
@@ -240,6 +271,10 @@ declare const checkboxFieldValueSchema: z__default.ZodObject<{
240
271
  type: z__default.ZodLiteral<"checkbox">;
241
272
  value: z__default.ZodOptional<z__default.ZodNullable<z__default.ZodBoolean>>;
242
273
  }, z__default.core.$strip>;
274
+ declare const checkboxGroupFieldValueSchema: z__default.ZodObject<{
275
+ type: z__default.ZodLiteral<"checkbox_group">;
276
+ value: z__default.ZodOptional<z__default.ZodNullable<z__default.ZodRecord<z__default.ZodString, z__default.ZodOptional<z__default.ZodNullable<z__default.ZodBoolean>>>>>;
277
+ }, z__default.core.$strip>;
243
278
  declare const formFieldValueSchema: z__default.ZodDiscriminatedUnion<[z__default.ZodObject<{
244
279
  type: z__default.ZodLiteral<"text">;
245
280
  value: z__default.ZodOptional<z__default.ZodNullable<z__default.ZodString>>;
@@ -262,6 +297,9 @@ declare const formFieldValueSchema: z__default.ZodDiscriminatedUnion<[z__default
262
297
  }, z__default.core.$strip>, z__default.ZodObject<{
263
298
  type: z__default.ZodLiteral<"checkbox">;
264
299
  value: z__default.ZodOptional<z__default.ZodNullable<z__default.ZodBoolean>>;
300
+ }, z__default.core.$strip>, z__default.ZodObject<{
301
+ type: z__default.ZodLiteral<"checkbox_group">;
302
+ value: z__default.ZodOptional<z__default.ZodNullable<z__default.ZodRecord<z__default.ZodString, z__default.ZodOptional<z__default.ZodNullable<z__default.ZodBoolean>>>>>;
265
303
  }, z__default.core.$strip>], "type">;
266
304
  declare const formRenderSchema: z__default.ZodObject<{
267
305
  fields: z__default.ZodArray<z__default.ZodDiscriminatedUnion<[z__default.ZodObject<{
@@ -318,6 +356,21 @@ declare const formRenderSchema: z__default.ZodObject<{
318
356
  type: z__default.ZodLiteral<"checkbox">;
319
357
  content: z__default.ZodString;
320
358
  default_value: z__default.ZodOptional<z__default.ZodNullable<z__default.ZodBoolean>>;
359
+ }, z__default.core.$strip>, z__default.ZodObject<{
360
+ id: z__default.ZodString;
361
+ label: z__default.ZodString;
362
+ required: z__default.ZodOptional<z__default.ZodNullable<z__default.ZodBoolean>>;
363
+ col_span: z__default.ZodOptional<z__default.ZodNullable<z__default.ZodInt>>;
364
+ type: z__default.ZodLiteral<"checkbox_group">;
365
+ fields: z__default.ZodArray<z__default.ZodObject<{
366
+ id: z__default.ZodString;
367
+ label: z__default.ZodString;
368
+ required: z__default.ZodOptional<z__default.ZodNullable<z__default.ZodBoolean>>;
369
+ col_span: z__default.ZodOptional<z__default.ZodNullable<z__default.ZodInt>>;
370
+ type: z__default.ZodLiteral<"checkbox">;
371
+ content: z__default.ZodString;
372
+ default_value: z__default.ZodOptional<z__default.ZodNullable<z__default.ZodBoolean>>;
373
+ }, z__default.core.$strip>>;
321
374
  }, z__default.core.$strip>], "type">>;
322
375
  title: z__default.ZodOptional<z__default.ZodNullable<z__default.ZodString>>;
323
376
  description: z__default.ZodOptional<z__default.ZodNullable<z__default.ZodString>>;
@@ -346,6 +399,9 @@ declare const formValuesSchema: z__default.ZodRecord<z__default.ZodString, z__de
346
399
  }, z__default.core.$strip>, z__default.ZodObject<{
347
400
  type: z__default.ZodLiteral<"checkbox">;
348
401
  value: z__default.ZodOptional<z__default.ZodNullable<z__default.ZodBoolean>>;
402
+ }, z__default.core.$strip>, z__default.ZodObject<{
403
+ type: z__default.ZodLiteral<"checkbox_group">;
404
+ value: z__default.ZodOptional<z__default.ZodNullable<z__default.ZodRecord<z__default.ZodString, z__default.ZodOptional<z__default.ZodNullable<z__default.ZodBoolean>>>>>;
349
405
  }, z__default.core.$strip>], "type">>;
350
406
  declare const formResponseSchema: z__default.ZodObject<{
351
407
  values: z__default.ZodRecord<z__default.ZodString, z__default.ZodDiscriminatedUnion<[z__default.ZodObject<{
@@ -370,6 +426,9 @@ declare const formResponseSchema: z__default.ZodObject<{
370
426
  }, z__default.core.$strip>, z__default.ZodObject<{
371
427
  type: z__default.ZodLiteral<"checkbox">;
372
428
  value: z__default.ZodOptional<z__default.ZodNullable<z__default.ZodBoolean>>;
429
+ }, z__default.core.$strip>, z__default.ZodObject<{
430
+ type: z__default.ZodLiteral<"checkbox_group">;
431
+ value: z__default.ZodOptional<z__default.ZodNullable<z__default.ZodRecord<z__default.ZodString, z__default.ZodOptional<z__default.ZodNullable<z__default.ZodBoolean>>>>>;
373
432
  }, z__default.core.$strip>], "type">>;
374
433
  }, z__default.core.$strip>;
375
434
 
@@ -385,6 +444,7 @@ type SelectFieldOption = z__default.infer<typeof selectFieldOptionSchema>;
385
444
  type SingleSelectField = z__default.infer<typeof singleSelectFieldSchema>;
386
445
  type MultiSelectField = z__default.infer<typeof multiSelectFieldSchema>;
387
446
  type CheckboxField = z__default.infer<typeof checkboxFieldSchema>;
447
+ type CheckboxGroupField = z__default.infer<typeof checkboxGroupFieldSchema>;
388
448
  type FormField = z__default.infer<typeof formFieldSchema>;
389
449
  type TextFieldValue = z__default.infer<typeof textFieldValueSchema>;
390
450
  type DateFieldValue = z__default.infer<typeof dateFieldValueSchema>;
@@ -392,6 +452,7 @@ type FileFieldValue = z__default.infer<typeof fileFieldValueSchema>;
392
452
  type SingleSelectFieldValue = z__default.infer<typeof singleSelectFieldValueSchema>;
393
453
  type MultiSelectFieldValue = z__default.infer<typeof multiSelectFieldValueSchema>;
394
454
  type CheckboxFieldValue = z__default.infer<typeof checkboxFieldValueSchema>;
455
+ type CheckboxGroupFieldValue = z__default.infer<typeof checkboxGroupFieldValueSchema>;
395
456
  type FormFieldValue = z__default.infer<typeof formFieldValueSchema>;
396
457
  type FormRender = z__default.infer<typeof formRenderSchema>;
397
458
  type FormValues = z__default.infer<typeof formValuesSchema>;
@@ -499,6 +560,89 @@ type EmbeddingFulfillments = z__default.infer<typeof embeddingFulfillmentsSchema
499
560
  * SPDX-License-Identifier: Apache-2.0
500
561
  */
501
562
 
563
+ declare const settingsFormFieldSchema: z__default.ZodDiscriminatedUnion<[z__default.ZodObject<{
564
+ id: z__default.ZodString;
565
+ label: z__default.ZodString;
566
+ required: z__default.ZodOptional<z__default.ZodNullable<z__default.ZodBoolean>>;
567
+ col_span: z__default.ZodOptional<z__default.ZodNullable<z__default.ZodInt>>;
568
+ type: z__default.ZodLiteral<"checkbox_group">;
569
+ fields: z__default.ZodArray<z__default.ZodObject<{
570
+ id: z__default.ZodString;
571
+ label: z__default.ZodString;
572
+ required: z__default.ZodOptional<z__default.ZodNullable<z__default.ZodBoolean>>;
573
+ col_span: z__default.ZodOptional<z__default.ZodNullable<z__default.ZodInt>>;
574
+ type: z__default.ZodLiteral<"checkbox">;
575
+ content: z__default.ZodString;
576
+ default_value: z__default.ZodOptional<z__default.ZodNullable<z__default.ZodBoolean>>;
577
+ }, z__default.core.$strip>>;
578
+ }, z__default.core.$strip>, z__default.ZodObject<{
579
+ id: z__default.ZodString;
580
+ label: z__default.ZodString;
581
+ required: z__default.ZodOptional<z__default.ZodNullable<z__default.ZodBoolean>>;
582
+ col_span: z__default.ZodOptional<z__default.ZodNullable<z__default.ZodInt>>;
583
+ type: z__default.ZodLiteral<"singleselect">;
584
+ options: z__default.ZodArray<z__default.ZodObject<{
585
+ id: z__default.ZodString;
586
+ label: z__default.ZodString;
587
+ }, z__default.core.$strip>>;
588
+ default_value: z__default.ZodOptional<z__default.ZodNullable<z__default.ZodString>>;
589
+ }, z__default.core.$strip>], "type">;
590
+ declare const settingsFormFieldValueSchema: z__default.ZodDiscriminatedUnion<[z__default.ZodObject<{
591
+ type: z__default.ZodLiteral<"checkbox_group">;
592
+ value: z__default.ZodOptional<z__default.ZodNullable<z__default.ZodRecord<z__default.ZodString, z__default.ZodOptional<z__default.ZodNullable<z__default.ZodBoolean>>>>>;
593
+ }, z__default.core.$strip>, z__default.ZodObject<{
594
+ type: z__default.ZodLiteral<"singleselect">;
595
+ value: z__default.ZodOptional<z__default.ZodNullable<z__default.ZodString>>;
596
+ }, z__default.core.$strip>], "type">;
597
+ declare const settingsFormRenderSchema: z__default.ZodObject<{
598
+ title: z__default.ZodOptional<z__default.ZodNullable<z__default.ZodString>>;
599
+ description: z__default.ZodOptional<z__default.ZodNullable<z__default.ZodString>>;
600
+ columns: z__default.ZodOptional<z__default.ZodNullable<z__default.ZodInt>>;
601
+ submit_label: z__default.ZodOptional<z__default.ZodNullable<z__default.ZodString>>;
602
+ fields: z__default.ZodArray<z__default.ZodDiscriminatedUnion<[z__default.ZodObject<{
603
+ id: z__default.ZodString;
604
+ label: z__default.ZodString;
605
+ required: z__default.ZodOptional<z__default.ZodNullable<z__default.ZodBoolean>>;
606
+ col_span: z__default.ZodOptional<z__default.ZodNullable<z__default.ZodInt>>;
607
+ type: z__default.ZodLiteral<"checkbox_group">;
608
+ fields: z__default.ZodArray<z__default.ZodObject<{
609
+ id: z__default.ZodString;
610
+ label: z__default.ZodString;
611
+ required: z__default.ZodOptional<z__default.ZodNullable<z__default.ZodBoolean>>;
612
+ col_span: z__default.ZodOptional<z__default.ZodNullable<z__default.ZodInt>>;
613
+ type: z__default.ZodLiteral<"checkbox">;
614
+ content: z__default.ZodString;
615
+ default_value: z__default.ZodOptional<z__default.ZodNullable<z__default.ZodBoolean>>;
616
+ }, z__default.core.$strip>>;
617
+ }, z__default.core.$strip>, z__default.ZodObject<{
618
+ id: z__default.ZodString;
619
+ label: z__default.ZodString;
620
+ required: z__default.ZodOptional<z__default.ZodNullable<z__default.ZodBoolean>>;
621
+ col_span: z__default.ZodOptional<z__default.ZodNullable<z__default.ZodInt>>;
622
+ type: z__default.ZodLiteral<"singleselect">;
623
+ options: z__default.ZodArray<z__default.ZodObject<{
624
+ id: z__default.ZodString;
625
+ label: z__default.ZodString;
626
+ }, z__default.core.$strip>>;
627
+ default_value: z__default.ZodOptional<z__default.ZodNullable<z__default.ZodString>>;
628
+ }, z__default.core.$strip>], "type">>;
629
+ }, z__default.core.$strip>;
630
+ declare const settingsFormValuesSchema: z__default.ZodRecord<z__default.ZodString, z__default.ZodDiscriminatedUnion<[z__default.ZodObject<{
631
+ type: z__default.ZodLiteral<"checkbox_group">;
632
+ value: z__default.ZodOptional<z__default.ZodNullable<z__default.ZodRecord<z__default.ZodString, z__default.ZodOptional<z__default.ZodNullable<z__default.ZodBoolean>>>>>;
633
+ }, z__default.core.$strip>, z__default.ZodObject<{
634
+ type: z__default.ZodLiteral<"singleselect">;
635
+ value: z__default.ZodOptional<z__default.ZodNullable<z__default.ZodString>>;
636
+ }, z__default.core.$strip>], "type">>;
637
+ declare const settingsFormResponseSchema: z__default.ZodObject<{
638
+ values: z__default.ZodRecord<z__default.ZodString, z__default.ZodDiscriminatedUnion<[z__default.ZodObject<{
639
+ type: z__default.ZodLiteral<"checkbox_group">;
640
+ value: z__default.ZodOptional<z__default.ZodNullable<z__default.ZodRecord<z__default.ZodString, z__default.ZodOptional<z__default.ZodNullable<z__default.ZodBoolean>>>>>;
641
+ }, z__default.core.$strip>, z__default.ZodObject<{
642
+ type: z__default.ZodLiteral<"singleselect">;
643
+ value: z__default.ZodOptional<z__default.ZodNullable<z__default.ZodString>>;
644
+ }, z__default.core.$strip>], "type">>;
645
+ }, z__default.core.$strip>;
502
646
  declare const formDemandsSchema: z__default.ZodObject<{
503
647
  form_demands: z__default.ZodObject<{
504
648
  initial_form: z__default.ZodOptional<z__default.ZodObject<{
@@ -556,16 +700,177 @@ declare const formDemandsSchema: z__default.ZodObject<{
556
700
  type: z__default.ZodLiteral<"checkbox">;
557
701
  content: z__default.ZodString;
558
702
  default_value: z__default.ZodOptional<z__default.ZodNullable<z__default.ZodBoolean>>;
703
+ }, z__default.core.$strip>, z__default.ZodObject<{
704
+ id: z__default.ZodString;
705
+ label: z__default.ZodString;
706
+ required: z__default.ZodOptional<z__default.ZodNullable<z__default.ZodBoolean>>;
707
+ col_span: z__default.ZodOptional<z__default.ZodNullable<z__default.ZodInt>>;
708
+ type: z__default.ZodLiteral<"checkbox_group">;
709
+ fields: z__default.ZodArray<z__default.ZodObject<{
710
+ id: z__default.ZodString;
711
+ label: z__default.ZodString;
712
+ required: z__default.ZodOptional<z__default.ZodNullable<z__default.ZodBoolean>>;
713
+ col_span: z__default.ZodOptional<z__default.ZodNullable<z__default.ZodInt>>;
714
+ type: z__default.ZodLiteral<"checkbox">;
715
+ content: z__default.ZodString;
716
+ default_value: z__default.ZodOptional<z__default.ZodNullable<z__default.ZodBoolean>>;
717
+ }, z__default.core.$strip>>;
559
718
  }, z__default.core.$strip>], "type">>;
560
719
  title: z__default.ZodOptional<z__default.ZodNullable<z__default.ZodString>>;
561
720
  description: z__default.ZodOptional<z__default.ZodNullable<z__default.ZodString>>;
562
721
  columns: z__default.ZodOptional<z__default.ZodNullable<z__default.ZodInt>>;
563
722
  submit_label: z__default.ZodOptional<z__default.ZodNullable<z__default.ZodString>>;
564
723
  }, z__default.core.$strip>>;
565
- }, z__default.core.$strip>;
724
+ settings_form: z__default.ZodOptional<z__default.ZodObject<{
725
+ title: z__default.ZodOptional<z__default.ZodNullable<z__default.ZodString>>;
726
+ description: z__default.ZodOptional<z__default.ZodNullable<z__default.ZodString>>;
727
+ columns: z__default.ZodOptional<z__default.ZodNullable<z__default.ZodInt>>;
728
+ submit_label: z__default.ZodOptional<z__default.ZodNullable<z__default.ZodString>>;
729
+ fields: z__default.ZodArray<z__default.ZodDiscriminatedUnion<[z__default.ZodObject<{
730
+ id: z__default.ZodString;
731
+ label: z__default.ZodString;
732
+ required: z__default.ZodOptional<z__default.ZodNullable<z__default.ZodBoolean>>;
733
+ col_span: z__default.ZodOptional<z__default.ZodNullable<z__default.ZodInt>>;
734
+ type: z__default.ZodLiteral<"checkbox_group">;
735
+ fields: z__default.ZodArray<z__default.ZodObject<{
736
+ id: z__default.ZodString;
737
+ label: z__default.ZodString;
738
+ required: z__default.ZodOptional<z__default.ZodNullable<z__default.ZodBoolean>>;
739
+ col_span: z__default.ZodOptional<z__default.ZodNullable<z__default.ZodInt>>;
740
+ type: z__default.ZodLiteral<"checkbox">;
741
+ content: z__default.ZodString;
742
+ default_value: z__default.ZodOptional<z__default.ZodNullable<z__default.ZodBoolean>>;
743
+ }, z__default.core.$strip>>;
744
+ }, z__default.core.$strip>, z__default.ZodObject<{
745
+ id: z__default.ZodString;
746
+ label: z__default.ZodString;
747
+ required: z__default.ZodOptional<z__default.ZodNullable<z__default.ZodBoolean>>;
748
+ col_span: z__default.ZodOptional<z__default.ZodNullable<z__default.ZodInt>>;
749
+ type: z__default.ZodLiteral<"singleselect">;
750
+ options: z__default.ZodArray<z__default.ZodObject<{
751
+ id: z__default.ZodString;
752
+ label: z__default.ZodString;
753
+ }, z__default.core.$strip>>;
754
+ default_value: z__default.ZodOptional<z__default.ZodNullable<z__default.ZodString>>;
755
+ }, z__default.core.$strip>], "type">>;
756
+ }, z__default.core.$strip>>;
757
+ }, z__default.core.$catchall<z__default.ZodObject<{
758
+ fields: z__default.ZodArray<z__default.ZodDiscriminatedUnion<[z__default.ZodObject<{
759
+ id: z__default.ZodString;
760
+ label: z__default.ZodString;
761
+ required: z__default.ZodOptional<z__default.ZodNullable<z__default.ZodBoolean>>;
762
+ col_span: z__default.ZodOptional<z__default.ZodNullable<z__default.ZodInt>>;
763
+ type: z__default.ZodLiteral<"text">;
764
+ placeholder: z__default.ZodOptional<z__default.ZodNullable<z__default.ZodString>>;
765
+ default_value: z__default.ZodOptional<z__default.ZodNullable<z__default.ZodString>>;
766
+ auto_resize: z__default.ZodOptional<z__default.ZodNullable<z__default.ZodDefault<z__default.ZodBoolean>>>;
767
+ }, z__default.core.$strip>, z__default.ZodObject<{
768
+ id: z__default.ZodString;
769
+ label: z__default.ZodString;
770
+ required: z__default.ZodOptional<z__default.ZodNullable<z__default.ZodBoolean>>;
771
+ col_span: z__default.ZodOptional<z__default.ZodNullable<z__default.ZodInt>>;
772
+ type: z__default.ZodLiteral<"date">;
773
+ placeholder: z__default.ZodOptional<z__default.ZodNullable<z__default.ZodString>>;
774
+ default_value: z__default.ZodOptional<z__default.ZodNullable<z__default.ZodString>>;
775
+ }, z__default.core.$strip>, z__default.ZodObject<{
776
+ id: z__default.ZodString;
777
+ label: z__default.ZodString;
778
+ required: z__default.ZodOptional<z__default.ZodNullable<z__default.ZodBoolean>>;
779
+ col_span: z__default.ZodOptional<z__default.ZodNullable<z__default.ZodInt>>;
780
+ type: z__default.ZodLiteral<"file">;
781
+ accept: z__default.ZodArray<z__default.ZodString>;
782
+ }, z__default.core.$strip>, z__default.ZodObject<{
783
+ id: z__default.ZodString;
784
+ label: z__default.ZodString;
785
+ required: z__default.ZodOptional<z__default.ZodNullable<z__default.ZodBoolean>>;
786
+ col_span: z__default.ZodOptional<z__default.ZodNullable<z__default.ZodInt>>;
787
+ type: z__default.ZodLiteral<"singleselect">;
788
+ options: z__default.ZodArray<z__default.ZodObject<{
789
+ id: z__default.ZodString;
790
+ label: z__default.ZodString;
791
+ }, z__default.core.$strip>>;
792
+ default_value: z__default.ZodOptional<z__default.ZodNullable<z__default.ZodString>>;
793
+ }, z__default.core.$strip>, z__default.ZodObject<{
794
+ id: z__default.ZodString;
795
+ label: z__default.ZodString;
796
+ required: z__default.ZodOptional<z__default.ZodNullable<z__default.ZodBoolean>>;
797
+ col_span: z__default.ZodOptional<z__default.ZodNullable<z__default.ZodInt>>;
798
+ type: z__default.ZodLiteral<"multiselect">;
799
+ options: z__default.ZodArray<z__default.ZodObject<{
800
+ id: z__default.ZodString;
801
+ label: z__default.ZodString;
802
+ }, z__default.core.$strip>>;
803
+ default_value: z__default.ZodOptional<z__default.ZodNullable<z__default.ZodArray<z__default.ZodString>>>;
804
+ }, z__default.core.$strip>, z__default.ZodObject<{
805
+ id: z__default.ZodString;
806
+ label: z__default.ZodString;
807
+ required: z__default.ZodOptional<z__default.ZodNullable<z__default.ZodBoolean>>;
808
+ col_span: z__default.ZodOptional<z__default.ZodNullable<z__default.ZodInt>>;
809
+ type: z__default.ZodLiteral<"checkbox">;
810
+ content: z__default.ZodString;
811
+ default_value: z__default.ZodOptional<z__default.ZodNullable<z__default.ZodBoolean>>;
812
+ }, z__default.core.$strip>, z__default.ZodObject<{
813
+ id: z__default.ZodString;
814
+ label: z__default.ZodString;
815
+ required: z__default.ZodOptional<z__default.ZodNullable<z__default.ZodBoolean>>;
816
+ col_span: z__default.ZodOptional<z__default.ZodNullable<z__default.ZodInt>>;
817
+ type: z__default.ZodLiteral<"checkbox_group">;
818
+ fields: z__default.ZodArray<z__default.ZodObject<{
819
+ id: z__default.ZodString;
820
+ label: z__default.ZodString;
821
+ required: z__default.ZodOptional<z__default.ZodNullable<z__default.ZodBoolean>>;
822
+ col_span: z__default.ZodOptional<z__default.ZodNullable<z__default.ZodInt>>;
823
+ type: z__default.ZodLiteral<"checkbox">;
824
+ content: z__default.ZodString;
825
+ default_value: z__default.ZodOptional<z__default.ZodNullable<z__default.ZodBoolean>>;
826
+ }, z__default.core.$strip>>;
827
+ }, z__default.core.$strip>], "type">>;
828
+ title: z__default.ZodOptional<z__default.ZodNullable<z__default.ZodString>>;
829
+ description: z__default.ZodOptional<z__default.ZodNullable<z__default.ZodString>>;
830
+ columns: z__default.ZodOptional<z__default.ZodNullable<z__default.ZodInt>>;
831
+ submit_label: z__default.ZodOptional<z__default.ZodNullable<z__default.ZodString>>;
832
+ }, z__default.core.$strip>>>;
566
833
  }, z__default.core.$strip>;
567
834
  declare const formFulfillmentsSchema: z__default.ZodObject<{
568
- form_fulfillments: z__default.ZodRecord<z__default.ZodString, z__default.ZodObject<{
835
+ form_fulfillments: z__default.ZodObject<{
836
+ initial_form: z__default.ZodOptional<z__default.ZodObject<{
837
+ values: z__default.ZodRecord<z__default.ZodString, z__default.ZodDiscriminatedUnion<[z__default.ZodObject<{
838
+ type: z__default.ZodLiteral<"text">;
839
+ value: z__default.ZodOptional<z__default.ZodNullable<z__default.ZodString>>;
840
+ }, z__default.core.$strip>, z__default.ZodObject<{
841
+ type: z__default.ZodLiteral<"date">;
842
+ value: z__default.ZodOptional<z__default.ZodNullable<z__default.ZodString>>;
843
+ }, z__default.core.$strip>, z__default.ZodObject<{
844
+ type: z__default.ZodLiteral<"file">;
845
+ value: z__default.ZodOptional<z__default.ZodNullable<z__default.ZodArray<z__default.ZodObject<{
846
+ uri: z__default.ZodString;
847
+ name: z__default.ZodOptional<z__default.ZodNullable<z__default.ZodString>>;
848
+ mime_type: z__default.ZodOptional<z__default.ZodNullable<z__default.ZodString>>;
849
+ }, z__default.core.$strip>>>>;
850
+ }, z__default.core.$strip>, z__default.ZodObject<{
851
+ type: z__default.ZodLiteral<"singleselect">;
852
+ value: z__default.ZodOptional<z__default.ZodNullable<z__default.ZodString>>;
853
+ }, z__default.core.$strip>, z__default.ZodObject<{
854
+ type: z__default.ZodLiteral<"multiselect">;
855
+ value: z__default.ZodOptional<z__default.ZodNullable<z__default.ZodArray<z__default.ZodString>>>;
856
+ }, z__default.core.$strip>, z__default.ZodObject<{
857
+ type: z__default.ZodLiteral<"checkbox">;
858
+ value: z__default.ZodOptional<z__default.ZodNullable<z__default.ZodBoolean>>;
859
+ }, z__default.core.$strip>, z__default.ZodObject<{
860
+ type: z__default.ZodLiteral<"checkbox_group">;
861
+ value: z__default.ZodOptional<z__default.ZodNullable<z__default.ZodRecord<z__default.ZodString, z__default.ZodOptional<z__default.ZodNullable<z__default.ZodBoolean>>>>>;
862
+ }, z__default.core.$strip>], "type">>;
863
+ }, z__default.core.$strip>>;
864
+ settings_form: z__default.ZodOptional<z__default.ZodObject<{
865
+ values: z__default.ZodRecord<z__default.ZodString, z__default.ZodDiscriminatedUnion<[z__default.ZodObject<{
866
+ type: z__default.ZodLiteral<"checkbox_group">;
867
+ value: z__default.ZodOptional<z__default.ZodNullable<z__default.ZodRecord<z__default.ZodString, z__default.ZodOptional<z__default.ZodNullable<z__default.ZodBoolean>>>>>;
868
+ }, z__default.core.$strip>, z__default.ZodObject<{
869
+ type: z__default.ZodLiteral<"singleselect">;
870
+ value: z__default.ZodOptional<z__default.ZodNullable<z__default.ZodString>>;
871
+ }, z__default.core.$strip>], "type">>;
872
+ }, z__default.core.$strip>>;
873
+ }, z__default.core.$catchall<z__default.ZodObject<{
569
874
  values: z__default.ZodRecord<z__default.ZodString, z__default.ZodDiscriminatedUnion<[z__default.ZodObject<{
570
875
  type: z__default.ZodLiteral<"text">;
571
876
  value: z__default.ZodOptional<z__default.ZodNullable<z__default.ZodString>>;
@@ -588,8 +893,11 @@ declare const formFulfillmentsSchema: z__default.ZodObject<{
588
893
  }, z__default.core.$strip>, z__default.ZodObject<{
589
894
  type: z__default.ZodLiteral<"checkbox">;
590
895
  value: z__default.ZodOptional<z__default.ZodNullable<z__default.ZodBoolean>>;
896
+ }, z__default.core.$strip>, z__default.ZodObject<{
897
+ type: z__default.ZodLiteral<"checkbox_group">;
898
+ value: z__default.ZodOptional<z__default.ZodNullable<z__default.ZodRecord<z__default.ZodString, z__default.ZodOptional<z__default.ZodNullable<z__default.ZodBoolean>>>>>;
591
899
  }, z__default.core.$strip>], "type">>;
592
- }, z__default.core.$strip>>;
900
+ }, z__default.core.$strip>>>;
593
901
  }, z__default.core.$strip>;
594
902
 
595
903
  /**
@@ -597,6 +905,11 @@ declare const formFulfillmentsSchema: z__default.ZodObject<{
597
905
  * SPDX-License-Identifier: Apache-2.0
598
906
  */
599
907
 
908
+ type SettingsFormField = z__default.infer<typeof settingsFormFieldSchema>;
909
+ type SettingsFormFieldValue = z__default.infer<typeof settingsFormFieldValueSchema>;
910
+ type SettingsFormRender = z__default.infer<typeof settingsFormRenderSchema>;
911
+ type SettingsFormValues = z__default.infer<typeof settingsFormValuesSchema>;
912
+ type SettingsFormResponse = z__default.infer<typeof settingsFormResponseSchema>;
600
913
  type FormDemands = z__default.infer<typeof formDemandsSchema>;
601
914
  type FormFulfillments = z__default.infer<typeof formFulfillmentsSchema>;
602
915
 
@@ -820,6 +1133,9 @@ type Fulfillments = Partial<{
820
1133
  embedding: (demand: EmbeddingDemands) => Promise<EmbeddingFulfillments>;
821
1134
  mcp: (demand: MCPDemands) => Promise<MCPFulfillments>;
822
1135
  oauth: (demand: OAuthDemands) => Promise<OAuthFulfillments>;
1136
+ /**
1137
+ * @deprecated - keeping this for backwards compatibility, use form extension with "settings_form" demand instead
1138
+ */
823
1139
  settings: (demand: SettingsDemands) => Promise<SettingsFulfillments>;
824
1140
  secrets: (demand: SecretDemands) => Promise<SecretFulfillments>;
825
1141
  form: (demand: FormDemands) => Promise<FormFulfillments>;
@@ -863,4 +1179,4 @@ interface TextInputRequiredResult {
863
1179
  }
864
1180
  type TaskStatusUpdateResult = SecretRequiredResult | FormRequiredResult | OAuthRequiredResult | ApprovalRequiredResult | TextInputRequiredResult;
865
1181
 
866
- export { type SettingsDemands as $, type A2AExtension as A, type MultiSelectField as B, type CanvasEditRequest as C, type DateField as D, type EmbeddingDemand as E, type FileField as F, type GenericApprovalRequest as G, type MultiSelectFieldValue as H, type OAuthDemands as I, type OAuthFulfillment as J, type OAuthFulfillments as K, type OAuthMessage as L, type MCPDemand as M, type OAuthRequest as N, type OAuthDemand as O, type OAuthRequiredResult as P, type OAuthResponse as Q, type SecretDemands as R, type SecretDemand as S, type SecretFulfillment as T, type SecretFulfillments as U, type SecretRequiredResult as V, type SelectFieldOption as W, type SettingsCheckboxField as X, type SettingsCheckboxFieldValue as Y, type SettingsCheckboxGroupField as Z, type SettingsCheckboxGroupFieldValue as _, type A2AServiceExtension as a, settingsFieldSchema as a$, type SettingsField as a0, type SettingsFieldValue as a1, type SettingsFulfillments as a2, type SettingsOptionItem as a3, type SettingsSingleSelectField as a4, type SettingsSingleSelectFieldValue as a5, type SettingsValues as a6, type SingleSelectField as a7, type SingleSelectFieldValue as a8, type TaskStatusUpdateResult as a9, formResponseSchema as aA, formValuesSchema as aB, genericApprovalRequestSchema as aC, mcpDemandSchema as aD, mcpDemandsSchema as aE, mcpFulfillmentSchema as aF, mcpFulfillmentsSchema as aG, mcpTransportTypeSchema as aH, multiSelectFieldSchema as aI, multiSelectFieldValueSchema as aJ, oauthDemandSchema as aK, oauthDemandsSchema as aL, oauthFulfillmentSchema as aM, oauthFulfillmentsSchema as aN, oauthMessageSchema as aO, oauthRequestSchema as aP, oauthResponseSchema as aQ, secretDemandSchema as aR, secretDemandsSchema as aS, secretFulfillmentSchema as aT, secretFulfillmentsSchema as aU, selectFieldOptionSchema as aV, settingsCheckboxFieldSchema as aW, settingsCheckboxFieldValueSchema as aX, settingsCheckboxGroupFieldSchema as aY, settingsCheckboxGroupFieldValueSchema as aZ, settingsDemandsSchema as a_, TaskStatusUpdateType as aa, type TextField as ab, type TextFieldValue as ac, type TextInputRequiredResult as ad, type ToolCallApprovalRequest as ae, type UserMetadataInputs as af, approvalDecisionSchema as ag, approvalRequestSchema as ah, approvalResponseSchema as ai, baseFieldSchema as aj, canvasEditRequestSchema as ak, checkboxFieldSchema as al, checkboxFieldValueSchema as am, dateFieldSchema as an, dateFieldValueSchema as ao, embeddingDemandSchema as ap, embeddingDemandsSchema as aq, embeddingFulfillmentSchema as ar, embeddingFulfillmentsSchema as as, fileFieldSchema as at, fileFieldValueSchema as au, formDemandsSchema as av, formFieldSchema as aw, formFieldValueSchema as ax, formFulfillmentsSchema as ay, formRenderSchema as az, type A2AUiExtension as b, settingsFieldValueSchema as b0, settingsFulfillmentsSchema as b1, settingsOptionItemSchema as b2, settingsSingleSelectFieldSchema as b3, settingsSingleSelectFieldValueSchema as b4, settingsValuesSchema as b5, singleSelectFieldSchema as b6, singleSelectFieldValueSchema as b7, textFieldSchema as b8, textFieldValueSchema as b9, toolCallApprovalRequestSchema as ba, ApprovalDecision as c, type ApprovalRequest as d, type ApprovalRequiredResult as e, type ApprovalResponse as f, type CheckboxField as g, type CheckboxFieldValue as h, type DateFieldValue as i, type EmbeddingDemands as j, type EmbeddingFulfillment as k, type EmbeddingFulfillments as l, type FileFieldValue as m, type FormDemands as n, type FormField as o, type FormFieldValue as p, type FormFulfillments as q, type FormRender as r, type FormRequiredResult as s, type FormResponse as t, type FormValues as u, type Fulfillments as v, type MCPDemands as w, type MCPFulfillment as x, type MCPFulfillments as y, MCPTransportType as z };
1182
+ export { type SettingsCheckboxGroupField as $, type A2AExtension as A, type MCPFulfillments as B, type CanvasEditRequest as C, type DateField as D, type EmbeddingDemand as E, type FileField as F, type GenericApprovalRequest as G, MCPTransportType as H, type MultiSelectField as I, type MultiSelectFieldValue as J, type OAuthDemands as K, type OAuthFulfillment as L, type MCPDemand as M, type OAuthFulfillments as N, type OAuthDemand as O, type OAuthMessage as P, type OAuthRequest as Q, type OAuthRequiredResult as R, type OAuthResponse as S, type SecretDemand as T, type SecretDemands as U, type SecretFulfillment as V, type SecretFulfillments as W, type SecretRequiredResult as X, type SelectFieldOption as Y, type SettingsCheckboxField as Z, type SettingsCheckboxFieldValue as _, type A2AServiceExtension as a, secretDemandsSchema as a$, type SettingsCheckboxGroupFieldValue as a0, type SettingsDemands as a1, type SettingsField as a2, type SettingsFieldValue as a3, type SettingsFormField as a4, type SettingsFormFieldValue as a5, type SettingsFormRender as a6, type SettingsFormResponse as a7, type SettingsFormValues as a8, type SettingsFulfillments as a9, embeddingFulfillmentSchema as aA, embeddingFulfillmentsSchema as aB, fileFieldSchema as aC, fileFieldValueSchema as aD, formDemandsSchema as aE, formFieldSchema as aF, formFieldValueSchema as aG, formFulfillmentsSchema as aH, formRenderSchema as aI, formResponseSchema as aJ, formValuesSchema as aK, genericApprovalRequestSchema as aL, mcpDemandSchema as aM, mcpDemandsSchema as aN, mcpFulfillmentSchema as aO, mcpFulfillmentsSchema as aP, mcpTransportTypeSchema as aQ, multiSelectFieldSchema as aR, multiSelectFieldValueSchema as aS, oauthDemandSchema as aT, oauthDemandsSchema as aU, oauthFulfillmentSchema as aV, oauthFulfillmentsSchema as aW, oauthMessageSchema as aX, oauthRequestSchema as aY, oauthResponseSchema as aZ, secretDemandSchema as a_, type SettingsOptionItem as aa, type SettingsSingleSelectField as ab, type SettingsSingleSelectFieldValue as ac, type SettingsValues as ad, type SingleSelectField as ae, type SingleSelectFieldValue as af, type TaskStatusUpdateResult as ag, TaskStatusUpdateType as ah, type TextField as ai, type TextFieldValue as aj, type TextInputRequiredResult as ak, type ToolCallApprovalRequest as al, type UserMetadataInputs as am, approvalDecisionSchema as an, approvalRequestSchema as ao, approvalResponseSchema as ap, baseFieldSchema as aq, canvasEditRequestSchema as ar, checkboxFieldSchema as as, checkboxFieldValueSchema as at, checkboxGroupFieldSchema as au, checkboxGroupFieldValueSchema as av, dateFieldSchema as aw, dateFieldValueSchema as ax, embeddingDemandSchema as ay, embeddingDemandsSchema as az, type A2AUiExtension as b, secretFulfillmentSchema as b0, secretFulfillmentsSchema as b1, selectFieldOptionSchema as b2, settingsCheckboxFieldSchema as b3, settingsCheckboxFieldValueSchema as b4, settingsCheckboxGroupFieldSchema as b5, settingsCheckboxGroupFieldValueSchema as b6, settingsDemandsSchema as b7, settingsFieldSchema as b8, settingsFieldValueSchema as b9, settingsFormFieldSchema as ba, settingsFormFieldValueSchema as bb, settingsFormRenderSchema as bc, settingsFormResponseSchema as bd, settingsFormValuesSchema as be, settingsFulfillmentsSchema as bf, settingsOptionItemSchema as bg, settingsSingleSelectFieldSchema as bh, settingsSingleSelectFieldValueSchema as bi, settingsValuesSchema as bj, singleSelectFieldSchema as bk, singleSelectFieldValueSchema as bl, textFieldSchema as bm, textFieldValueSchema as bn, toolCallApprovalRequestSchema as bo, ApprovalDecision as c, type ApprovalRequest as d, type ApprovalRequiredResult as e, type ApprovalResponse as f, type CheckboxField as g, type CheckboxFieldValue as h, type CheckboxGroupField as i, type CheckboxGroupFieldValue as j, type DateFieldValue as k, type EmbeddingDemands as l, type EmbeddingFulfillment as m, type EmbeddingFulfillments as n, type FileFieldValue as o, type FormDemands as p, type FormField as q, type FormFieldValue as r, type FormFulfillments as s, type FormRender as t, type FormRequiredResult as u, type FormResponse as v, type FormValues as w, type Fulfillments as x, type MCPDemands as y, type MCPFulfillment as z };