@swiss-ai-hub/web 0.316.2 → 0.317.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -368,7 +368,6 @@ export type AgentClassDto = {
368
368
  | LocaleInput
369
369
  | ModelSelect
370
370
  | MultiSelect
371
- | OrgMemoryTenantInput
372
371
  | Password
373
372
  | RadioButton
374
373
  | Rating
@@ -376,6 +375,7 @@ export type AgentClassDto = {
376
375
  | Select
377
376
  | SelectButton
378
377
  | Slider
378
+ | TenantSelect
379
379
  | Textarea
380
380
  | ToggleButton
381
381
  | ToggleSwitch
@@ -495,7 +495,6 @@ export type AgentConfigDto = {
495
495
  | LocaleInput
496
496
  | ModelSelect
497
497
  | MultiSelect
498
- | OrgMemoryTenantInput
499
498
  | Password
500
499
  | RadioButton
501
500
  | Rating
@@ -503,6 +502,7 @@ export type AgentConfigDto = {
503
502
  | Select
504
503
  | SelectButton
505
504
  | Slider
505
+ | TenantSelect
506
506
  | Textarea
507
507
  | ToggleButton
508
508
  | ToggleSwitch
@@ -5762,7 +5762,6 @@ export type FullProcessInstanceDto = {
5762
5762
  | LocaleInput
5763
5763
  | ModelSelect
5764
5764
  | MultiSelect
5765
- | OrgMemoryTenantInput
5766
5765
  | Password
5767
5766
  | RadioButton
5768
5767
  | Rating
@@ -5770,6 +5769,7 @@ export type FullProcessInstanceDto = {
5770
5769
  | Select
5771
5770
  | SelectButton
5772
5771
  | Slider
5772
+ | TenantSelect
5773
5773
  | Textarea
5774
5774
  | ToggleButton
5775
5775
  | ToggleSwitch
@@ -5942,7 +5942,6 @@ export type Group = {
5942
5942
  | LocaleInput
5943
5943
  | ModelSelect
5944
5944
  | MultiSelect
5945
- | OrgMemoryTenantInput
5946
5945
  | Password
5947
5946
  | RadioButton
5948
5947
  | Rating
@@ -5950,11 +5949,24 @@ export type Group = {
5950
5949
  | Select
5951
5950
  | SelectButton
5952
5951
  | Slider
5952
+ | TenantSelect
5953
5953
  | Textarea
5954
5954
  | ToggleButton
5955
5955
  | ToggleSwitch
5956
5956
  | VectorStoreInput
5957
5957
  >;
5958
+ /**
5959
+ * Accessrule
5960
+ *
5961
+ * Access rule the user must satisfy to submit this section as enabled
5962
+ */
5963
+ accessRule?: string | null;
5964
+ /**
5965
+ * Accessdeniedmessagepath
5966
+ *
5967
+ * i18n path for the message shown when access_rule is not satisfied
5968
+ */
5969
+ accessDeniedMessagePath?: string;
5958
5970
  [key: string]: unknown;
5959
5971
  };
5960
5972
 
@@ -6285,7 +6297,6 @@ export type HumanInDto = {
6285
6297
  | LocaleInput
6286
6298
  | ModelSelect
6287
6299
  | MultiSelect
6288
- | OrgMemoryTenantInput
6289
6300
  | Password
6290
6301
  | RadioButton
6291
6302
  | Rating
@@ -6293,6 +6304,7 @@ export type HumanInDto = {
6293
6304
  | Select
6294
6305
  | SelectButton
6295
6306
  | Slider
6307
+ | TenantSelect
6296
6308
  | Textarea
6297
6309
  | ToggleButton
6298
6310
  | ToggleSwitch
@@ -6365,7 +6377,6 @@ export type HumanInSpecs = {
6365
6377
  | LocaleInput
6366
6378
  | ModelSelect
6367
6379
  | MultiSelect
6368
- | OrgMemoryTenantInput
6369
6380
  | Password
6370
6381
  | RadioButton
6371
6382
  | Rating
@@ -6373,6 +6384,7 @@ export type HumanInSpecs = {
6373
6384
  | Select
6374
6385
  | SelectButton
6375
6386
  | Slider
6387
+ | TenantSelect
6376
6388
  | Textarea
6377
6389
  | ToggleButton
6378
6390
  | ToggleSwitch
@@ -11008,148 +11020,6 @@ export type OpenWebuiWebhookUser = {
11008
11020
  [key: string]: unknown;
11009
11021
  };
11010
11022
 
11011
- /**
11012
- * OrgMemoryTenantInput
11013
- *
11014
- * Text input for the organization-memory `tenant_id` field that also enforces
11015
- * config-time access control.
11016
- *
11017
- * Renders identically to a plain `InputText` (same UI), but its presence in a
11018
- * submitted config means the section is enabled — so we require the configuring user
11019
- * to hold `aihub.user.memory.organization`. When the parent `org_memory` section is
11020
- * null the walker never reaches this element, so no check fires.
11021
- */
11022
- export type OrgMemoryTenantInput = {
11023
- /**
11024
- * Is Formkit Element
11025
- *
11026
- * Indicates that this element is a FormKit element
11027
- */
11028
- is_formkit_element?: true;
11029
- /**
11030
- * If
11031
- *
11032
- * Conditional expression to show this element
11033
- */
11034
- if?: string | null;
11035
- /**
11036
- * Id
11037
- *
11038
- * Unique identifier for this element
11039
- */
11040
- id?: string | null;
11041
- /**
11042
- * Nullable
11043
- *
11044
- * Render with a sibling toggle that sets this field to null when off
11045
- */
11046
- nullable?: boolean;
11047
- /**
11048
- * Defaultenabled
11049
- *
11050
- * For a nullable element, whether its toggle should start enabled on a fresh form (i.e. the field's data default is non-null). Ignored for non-nullable elements.
11051
- */
11052
- defaultEnabled?: boolean | null;
11053
- /**
11054
- * Formkit
11055
- *
11056
- * Organization-memory tenant_id input element.
11057
- */
11058
- formkit?: "orgMemoryTenantInput";
11059
- /**
11060
- * Name
11061
- *
11062
- * Name of this field
11063
- */
11064
- name?: string | null;
11065
- /**
11066
- * Label
11067
- *
11068
- * Label of this field
11069
- */
11070
- label: LocaleString | string;
11071
- /**
11072
- * Help
11073
- *
11074
- * Help text of this field
11075
- */
11076
- help?: LocaleString | string | null;
11077
- /**
11078
- * Value
11079
- *
11080
- * Default value for this field
11081
- */
11082
- value?:
11083
- | string
11084
- | number
11085
- | number
11086
- | boolean
11087
- | Array<string>
11088
- | {
11089
- [key: string]: string;
11090
- }
11091
- | null;
11092
- /**
11093
- * Required
11094
- *
11095
- * Whether this field is required
11096
- */
11097
- required?: boolean;
11098
- /**
11099
- * Additional Validation Rules
11100
- *
11101
- * Validation expression
11102
- */
11103
- additional_validation_rules?: string | null;
11104
- /**
11105
- * Disabled
11106
- *
11107
- * Whether the input is disabled
11108
- */
11109
- disabled?: boolean;
11110
- /**
11111
- * Readonly
11112
- *
11113
- * Whether the input is readonly
11114
- */
11115
- readonly?: boolean;
11116
- /**
11117
- * Placeholder
11118
- *
11119
- * Placeholder text
11120
- */
11121
- placeholder?: LocaleString | string | null;
11122
- /**
11123
- * Prefix
11124
- *
11125
- * Prefix text
11126
- */
11127
- prefix?: LocaleString | string | null;
11128
- /**
11129
- * Suffix
11130
- *
11131
- * Suffix text
11132
- */
11133
- suffix?: LocaleString | string | null;
11134
- /**
11135
- * Iconprefix
11136
- *
11137
- * Icon prefix
11138
- */
11139
- iconPrefix?: string | null;
11140
- /**
11141
- * Iconsuffix
11142
- *
11143
- * Icon suffix
11144
- */
11145
- iconSuffix?: string | null;
11146
- /**
11147
- * Validation
11148
- */
11149
- readonly validation: string;
11150
- [key: string]: unknown;
11151
- };
11152
-
11153
11023
  /**
11154
11024
  * PaginatedDocumentsResponse
11155
11025
  */
@@ -11619,7 +11489,6 @@ export type ProcessClassDto = {
11619
11489
  | LocaleInput
11620
11490
  | ModelSelect
11621
11491
  | MultiSelect
11622
- | OrgMemoryTenantInput
11623
11492
  | Password
11624
11493
  | RadioButton
11625
11494
  | Rating
@@ -11627,6 +11496,7 @@ export type ProcessClassDto = {
11627
11496
  | Select
11628
11497
  | SelectButton
11629
11498
  | Slider
11499
+ | TenantSelect
11630
11500
  | Textarea
11631
11501
  | ToggleButton
11632
11502
  | ToggleSwitch
@@ -12653,7 +12523,6 @@ export type Repeater = {
12653
12523
  | LocaleInput
12654
12524
  | ModelSelect
12655
12525
  | MultiSelect
12656
- | OrgMemoryTenantInput
12657
12526
  | Password
12658
12527
  | RadioButton
12659
12528
  | Rating
@@ -12661,6 +12530,7 @@ export type Repeater = {
12661
12530
  | Select
12662
12531
  | SelectButton
12663
12532
  | Slider
12533
+ | TenantSelect
12664
12534
  | Textarea
12665
12535
  | ToggleButton
12666
12536
  | ToggleSwitch
@@ -14355,6 +14225,137 @@ export type TenantMembershipDto = {
14355
14225
  description: string;
14356
14226
  };
14357
14227
 
14228
+ /**
14229
+ * TenantSelect
14230
+ *
14231
+ * A FormKit element for selecting one of the tenants the user belongs to.
14232
+ *
14233
+ * Renders as a select dropdown listing tenant *names*, while the submitted value is the
14234
+ * tenant *id*. The frontend populates the options from the user's memberships and
14235
+ * pre-selects their active tenant.
14236
+ *
14237
+ * ### Form Duality
14238
+ *
14239
+ * ```python
14240
+ * class MyConfig(Form):
14241
+ * tenant_id: Annotated[
14242
+ * str | TenantSelect,
14243
+ * Field(description="Tenant to scope against"),
14244
+ * ]
14245
+ *
14246
+ * @classmethod
14247
+ * def as_form(cls) -> "MyConfig":
14248
+ * return cls(
14249
+ * tenant_id=TenantSelect(
14250
+ * label=LocaleString(en="Tenant"),
14251
+ * ),
14252
+ * )
14253
+ *
14254
+ * # Data mode - from submission:
14255
+ * config = MyConfig(tenant_id="507f1f77bcf86cd799439011")
14256
+ * ```
14257
+ */
14258
+ export type TenantSelect = {
14259
+ /**
14260
+ * Is Formkit Element
14261
+ *
14262
+ * Indicates that this element is a FormKit element
14263
+ */
14264
+ is_formkit_element?: true;
14265
+ /**
14266
+ * If
14267
+ *
14268
+ * Conditional expression to show this element
14269
+ */
14270
+ if?: string | null;
14271
+ /**
14272
+ * Id
14273
+ *
14274
+ * Unique identifier for this element
14275
+ */
14276
+ id?: string | null;
14277
+ /**
14278
+ * Nullable
14279
+ *
14280
+ * Render with a sibling toggle that sets this field to null when off
14281
+ */
14282
+ nullable?: boolean;
14283
+ /**
14284
+ * Defaultenabled
14285
+ *
14286
+ * For a nullable element, whether its toggle should start enabled on a fresh form (i.e. the field's data default is non-null). Ignored for non-nullable elements.
14287
+ */
14288
+ defaultEnabled?: boolean | null;
14289
+ /**
14290
+ * Formkit
14291
+ *
14292
+ * Tenant select element.
14293
+ */
14294
+ formkit?: "tenantSelect";
14295
+ /**
14296
+ * Name
14297
+ *
14298
+ * Name of this field
14299
+ */
14300
+ name?: string | null;
14301
+ /**
14302
+ * Label
14303
+ *
14304
+ * Label of this field
14305
+ */
14306
+ label: LocaleString | string;
14307
+ /**
14308
+ * Help
14309
+ *
14310
+ * Help text of this field
14311
+ */
14312
+ help?: LocaleString | string | null;
14313
+ /**
14314
+ * Value
14315
+ *
14316
+ * Default value for this field
14317
+ */
14318
+ value?:
14319
+ | string
14320
+ | number
14321
+ | number
14322
+ | boolean
14323
+ | Array<string>
14324
+ | {
14325
+ [key: string]: string;
14326
+ }
14327
+ | null;
14328
+ /**
14329
+ * Required
14330
+ *
14331
+ * Whether this field is required
14332
+ */
14333
+ required?: boolean;
14334
+ /**
14335
+ * Additional Validation Rules
14336
+ *
14337
+ * Validation expression
14338
+ */
14339
+ additional_validation_rules?: string | null;
14340
+ /**
14341
+ * Placeholder
14342
+ *
14343
+ * Placeholder text
14344
+ */
14345
+ placeholder?: LocaleString | string | null;
14346
+ /**
14347
+ * Filter
14348
+ *
14349
+ * Whether to enable filtering/search
14350
+ */
14351
+ filter?: boolean;
14352
+ /**
14353
+ * Validation
14354
+ */
14355
+ readonly validation: string;
14356
+ [key: string]: unknown;
14357
+ };
14358
+
14358
14359
  /**
14359
14360
  * TextBlock
14360
14361
  *
@@ -16617,7 +16618,6 @@ export type AgentClassDtoWritable = {
16617
16618
  | LocaleInputWritable
16618
16619
  | ModelSelectWritable
16619
16620
  | MultiSelectWritable
16620
- | OrgMemoryTenantInputWritable
16621
16621
  | PasswordWritable
16622
16622
  | RadioButtonWritable
16623
16623
  | RatingWritable
@@ -16625,6 +16625,7 @@ export type AgentClassDtoWritable = {
16625
16625
  | SelectWritable
16626
16626
  | SelectButtonWritable
16627
16627
  | SliderWritable
16628
+ | TenantSelectWritable
16628
16629
  | TextareaWritable
16629
16630
  | ToggleButtonWritable
16630
16631
  | ToggleSwitchWritable
@@ -16744,7 +16745,6 @@ export type AgentConfigDtoWritable = {
16744
16745
  | LocaleInputWritable
16745
16746
  | ModelSelectWritable
16746
16747
  | MultiSelectWritable
16747
- | OrgMemoryTenantInputWritable
16748
16748
  | PasswordWritable
16749
16749
  | RadioButtonWritable
16750
16750
  | RatingWritable
@@ -16752,6 +16752,7 @@ export type AgentConfigDtoWritable = {
16752
16752
  | SelectWritable
16753
16753
  | SelectButtonWritable
16754
16754
  | SliderWritable
16755
+ | TenantSelectWritable
16755
16756
  | TextareaWritable
16756
16757
  | ToggleButtonWritable
16757
16758
  | ToggleSwitchWritable
@@ -18974,7 +18975,6 @@ export type FullProcessInstanceDtoWritable = {
18974
18975
  | LocaleInputWritable
18975
18976
  | ModelSelectWritable
18976
18977
  | MultiSelectWritable
18977
- | OrgMemoryTenantInputWritable
18978
18978
  | PasswordWritable
18979
18979
  | RadioButtonWritable
18980
18980
  | RatingWritable
@@ -18982,6 +18982,7 @@ export type FullProcessInstanceDtoWritable = {
18982
18982
  | SelectWritable
18983
18983
  | SelectButtonWritable
18984
18984
  | SliderWritable
18985
+ | TenantSelectWritable
18985
18986
  | TextareaWritable
18986
18987
  | ToggleButtonWritable
18987
18988
  | ToggleSwitchWritable
@@ -19093,7 +19094,6 @@ export type GroupWritable = {
19093
19094
  | LocaleInputWritable
19094
19095
  | ModelSelectWritable
19095
19096
  | MultiSelectWritable
19096
- | OrgMemoryTenantInputWritable
19097
19097
  | PasswordWritable
19098
19098
  | RadioButtonWritable
19099
19099
  | RatingWritable
@@ -19101,11 +19101,24 @@ export type GroupWritable = {
19101
19101
  | SelectWritable
19102
19102
  | SelectButtonWritable
19103
19103
  | SliderWritable
19104
+ | TenantSelectWritable
19104
19105
  | TextareaWritable
19105
19106
  | ToggleButtonWritable
19106
19107
  | ToggleSwitchWritable
19107
19108
  | VectorStoreInputWritable
19108
19109
  >;
19110
+ /**
19111
+ * Accessrule
19112
+ *
19113
+ * Access rule the user must satisfy to submit this section as enabled
19114
+ */
19115
+ accessRule?: string | null;
19116
+ /**
19117
+ * Accessdeniedmessagepath
19118
+ *
19119
+ * i18n path for the message shown when access_rule is not satisfied
19120
+ */
19121
+ accessDeniedMessagePath?: string;
19109
19122
  [key: string]: unknown;
19110
19123
  };
19111
19124
 
@@ -19284,7 +19297,6 @@ export type HumanInDtoWritable = {
19284
19297
  | LocaleInputWritable
19285
19298
  | ModelSelectWritable
19286
19299
  | MultiSelectWritable
19287
- | OrgMemoryTenantInputWritable
19288
19300
  | PasswordWritable
19289
19301
  | RadioButtonWritable
19290
19302
  | RatingWritable
@@ -19292,6 +19304,7 @@ export type HumanInDtoWritable = {
19292
19304
  | SelectWritable
19293
19305
  | SelectButtonWritable
19294
19306
  | SliderWritable
19307
+ | TenantSelectWritable
19295
19308
  | TextareaWritable
19296
19309
  | ToggleButtonWritable
19297
19310
  | ToggleSwitchWritable
@@ -19364,7 +19377,6 @@ export type HumanInSpecsWritable = {
19364
19377
  | LocaleInputWritable
19365
19378
  | ModelSelectWritable
19366
19379
  | MultiSelectWritable
19367
- | OrgMemoryTenantInputWritable
19368
19380
  | PasswordWritable
19369
19381
  | RadioButtonWritable
19370
19382
  | RatingWritable
@@ -19372,6 +19384,7 @@ export type HumanInSpecsWritable = {
19372
19384
  | SelectWritable
19373
19385
  | SelectButtonWritable
19374
19386
  | SliderWritable
19387
+ | TenantSelectWritable
19375
19388
  | TextareaWritable
19376
19389
  | ToggleButtonWritable
19377
19390
  | ToggleSwitchWritable
@@ -21980,144 +21993,6 @@ export type OpenChatHitlResponseWritable = {
21980
21993
  hitl_request?: HumanInTheLoopRequestEventWritable | null;
21981
21994
  };
21982
21995
 
21983
- /**
21984
- * OrgMemoryTenantInput
21985
- *
21986
- * Text input for the organization-memory `tenant_id` field that also enforces
21987
- * config-time access control.
21988
- *
21989
- * Renders identically to a plain `InputText` (same UI), but its presence in a
21990
- * submitted config means the section is enabled — so we require the configuring user
21991
- * to hold `aihub.user.memory.organization`. When the parent `org_memory` section is
21992
- * null the walker never reaches this element, so no check fires.
21993
- */
21994
- export type OrgMemoryTenantInputWritable = {
21995
- /**
21996
- * Is Formkit Element
21997
- *
21998
- * Indicates that this element is a FormKit element
21999
- */
22000
- is_formkit_element?: true;
22001
- /**
22002
- * If
22003
- *
22004
- * Conditional expression to show this element
22005
- */
22006
- if?: string | null;
22007
- /**
22008
- * Id
22009
- *
22010
- * Unique identifier for this element
22011
- */
22012
- id?: string | null;
22013
- /**
22014
- * Nullable
22015
- *
22016
- * Render with a sibling toggle that sets this field to null when off
22017
- */
22018
- nullable?: boolean;
22019
- /**
22020
- * Defaultenabled
22021
- *
22022
- * For a nullable element, whether its toggle should start enabled on a fresh form (i.e. the field's data default is non-null). Ignored for non-nullable elements.
22023
- */
22024
- defaultEnabled?: boolean | null;
22025
- /**
22026
- * Formkit
22027
- *
22028
- * Organization-memory tenant_id input element.
22029
- */
22030
- formkit?: "orgMemoryTenantInput";
22031
- /**
22032
- * Name
22033
- *
22034
- * Name of this field
22035
- */
22036
- name?: string | null;
22037
- /**
22038
- * Label
22039
- *
22040
- * Label of this field
22041
- */
22042
- label: LocaleString | string;
22043
- /**
22044
- * Help
22045
- *
22046
- * Help text of this field
22047
- */
22048
- help?: LocaleString | string | null;
22049
- /**
22050
- * Value
22051
- *
22052
- * Default value for this field
22053
- */
22054
- value?:
22055
- | string
22056
- | number
22057
- | number
22058
- | boolean
22059
- | Array<string>
22060
- | {
22061
- [key: string]: string;
22062
- }
22063
- | null;
22064
- /**
22065
- * Required
22066
- *
22067
- * Whether this field is required
22068
- */
22069
- required?: boolean;
22070
- /**
22071
- * Additional Validation Rules
22072
- *
22073
- * Validation expression
22074
- */
22075
- additional_validation_rules?: string | null;
22076
- /**
22077
- * Disabled
22078
- *
22079
- * Whether the input is disabled
22080
- */
22081
- disabled?: boolean;
22082
- /**
22083
- * Readonly
22084
- *
22085
- * Whether the input is readonly
22086
- */
22087
- readonly?: boolean;
22088
- /**
22089
- * Placeholder
22090
- *
22091
- * Placeholder text
22092
- */
22093
- placeholder?: LocaleString | string | null;
22094
- /**
22095
- * Prefix
22096
- *
22097
- * Prefix text
22098
- */
22099
- prefix?: LocaleString | string | null;
22100
- /**
22101
- * Suffix
22102
- *
22103
- * Suffix text
22104
- */
22105
- suffix?: LocaleString | string | null;
22106
- /**
22107
- * Iconprefix
22108
- *
22109
- * Icon prefix
22110
- */
22111
- iconPrefix?: string | null;
22112
- /**
22113
- * Iconsuffix
22114
- *
22115
- * Icon suffix
22116
- */
22117
- iconSuffix?: string | null;
22118
- [key: string]: unknown;
22119
- };
22120
-
22121
21996
  /**
22122
21997
  * PaginatedProcessWalkthroughsResponse
22123
21998
  *
@@ -22400,7 +22275,6 @@ export type ProcessClassDtoWritable = {
22400
22275
  | LocaleInputWritable
22401
22276
  | ModelSelectWritable
22402
22277
  | MultiSelectWritable
22403
- | OrgMemoryTenantInputWritable
22404
22278
  | PasswordWritable
22405
22279
  | RadioButtonWritable
22406
22280
  | RatingWritable
@@ -22408,6 +22282,7 @@ export type ProcessClassDtoWritable = {
22408
22282
  | SelectWritable
22409
22283
  | SelectButtonWritable
22410
22284
  | SliderWritable
22285
+ | TenantSelectWritable
22411
22286
  | TextareaWritable
22412
22287
  | ToggleButtonWritable
22413
22288
  | ToggleSwitchWritable
@@ -23071,7 +22946,6 @@ export type RepeaterWritable = {
23071
22946
  | LocaleInputWritable
23072
22947
  | ModelSelectWritable
23073
22948
  | MultiSelectWritable
23074
- | OrgMemoryTenantInputWritable
23075
22949
  | PasswordWritable
23076
22950
  | RadioButtonWritable
23077
22951
  | RatingWritable
@@ -23079,6 +22953,7 @@ export type RepeaterWritable = {
23079
22953
  | SelectWritable
23080
22954
  | SelectButtonWritable
23081
22955
  | SliderWritable
22956
+ | TenantSelectWritable
23082
22957
  | TextareaWritable
23083
22958
  | ToggleButtonWritable
23084
22959
  | ToggleSwitchWritable
@@ -24248,6 +24123,133 @@ export type StoreUserMemoryEventWritable = {
24248
24123
  [key: string]: unknown;
24249
24124
  };
24250
24125
 
24126
+ /**
24127
+ * TenantSelect
24128
+ *
24129
+ * A FormKit element for selecting one of the tenants the user belongs to.
24130
+ *
24131
+ * Renders as a select dropdown listing tenant *names*, while the submitted value is the
24132
+ * tenant *id*. The frontend populates the options from the user's memberships and
24133
+ * pre-selects their active tenant.
24134
+ *
24135
+ * ### Form Duality
24136
+ *
24137
+ * ```python
24138
+ * class MyConfig(Form):
24139
+ * tenant_id: Annotated[
24140
+ * str | TenantSelect,
24141
+ * Field(description="Tenant to scope against"),
24142
+ * ]
24143
+ *
24144
+ * @classmethod
24145
+ * def as_form(cls) -> "MyConfig":
24146
+ * return cls(
24147
+ * tenant_id=TenantSelect(
24148
+ * label=LocaleString(en="Tenant"),
24149
+ * ),
24150
+ * )
24151
+ *
24152
+ * # Data mode - from submission:
24153
+ * config = MyConfig(tenant_id="507f1f77bcf86cd799439011")
24154
+ * ```
24155
+ */
24156
+ export type TenantSelectWritable = {
24157
+ /**
24158
+ * Is Formkit Element
24159
+ *
24160
+ * Indicates that this element is a FormKit element
24161
+ */
24162
+ is_formkit_element?: true;
24163
+ /**
24164
+ * If
24165
+ *
24166
+ * Conditional expression to show this element
24167
+ */
24168
+ if?: string | null;
24169
+ /**
24170
+ * Id
24171
+ *
24172
+ * Unique identifier for this element
24173
+ */
24174
+ id?: string | null;
24175
+ /**
24176
+ * Nullable
24177
+ *
24178
+ * Render with a sibling toggle that sets this field to null when off
24179
+ */
24180
+ nullable?: boolean;
24181
+ /**
24182
+ * Defaultenabled
24183
+ *
24184
+ * For a nullable element, whether its toggle should start enabled on a fresh form (i.e. the field's data default is non-null). Ignored for non-nullable elements.
24185
+ */
24186
+ defaultEnabled?: boolean | null;
24187
+ /**
24188
+ * Formkit
24189
+ *
24190
+ * Tenant select element.
24191
+ */
24192
+ formkit?: "tenantSelect";
24193
+ /**
24194
+ * Name
24195
+ *
24196
+ * Name of this field
24197
+ */
24198
+ name?: string | null;
24199
+ /**
24200
+ * Label
24201
+ *
24202
+ * Label of this field
24203
+ */
24204
+ label: LocaleString | string;
24205
+ /**
24206
+ * Help
24207
+ *
24208
+ * Help text of this field
24209
+ */
24210
+ help?: LocaleString | string | null;
24211
+ /**
24212
+ * Value
24213
+ *
24214
+ * Default value for this field
24215
+ */
24216
+ value?:
24217
+ | string
24218
+ | number
24219
+ | number
24220
+ | boolean
24221
+ | Array<string>
24222
+ | {
24223
+ [key: string]: string;
24224
+ }
24225
+ | null;
24226
+ /**
24227
+ * Required
24228
+ *
24229
+ * Whether this field is required
24230
+ */
24231
+ required?: boolean;
24232
+ /**
24233
+ * Additional Validation Rules
24234
+ *
24235
+ * Validation expression
24236
+ */
24237
+ additional_validation_rules?: string | null;
24238
+ /**
24239
+ * Placeholder
24240
+ *
24241
+ * Placeholder text
24242
+ */
24243
+ placeholder?: LocaleString | string | null;
24244
+ /**
24245
+ * Filter
24246
+ *
24247
+ * Whether to enable filtering/search
24248
+ */
24249
+ filter?: boolean;
24250
+ [key: string]: unknown;
24251
+ };
24252
+
24251
24253
  /**
24252
24254
  * Textarea
24253
24255
  *
@@ -28481,7 +28483,14 @@ export type GetDocumentUrlData = {
28481
28483
  */
28482
28484
  document_id: string;
28483
28485
  };
28484
- query?: never;
28486
+ query?: {
28487
+ /**
28488
+ * Download
28489
+ *
28490
+ * Force a browser download (Content-Disposition: attachment) instead of preview
28491
+ */
28492
+ download?: boolean;
28493
+ };
28485
28494
  url: "/{tenant_id}/knowledge/databases/{database}/namespaces/{namespace}/documents/{document_id}/url";
28486
28495
  };
28487
28496