@swiss-ai-hub/web 0.320.0 → 0.321.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.
Files changed (38) hide show
  1. package/components/FormKit/AgentSelector.vue +20 -7
  2. package/components/FormKit/Repeater.vue +1 -4
  3. package/components/FormKit/VectorStoreInput.vue +43 -6
  4. package/components/Knowledge/Database/CreateModal.vue +315 -0
  5. package/components/Knowledge/Database/EmptyCard.vue +34 -0
  6. package/components/Knowledge/DeleteConfirmModal.vue +87 -0
  7. package/components/Knowledge/Namespace/Card.vue +18 -0
  8. package/components/Knowledge/Namespace/CreateModal.vue +11 -3
  9. package/components/Role/AccessCapabilities.vue +4 -4
  10. package/components/Role/AccessCapabilityGroup.vue +22 -6
  11. package/components/Role/AccessRulesEditor.vue +15 -12
  12. package/composables/app/useAppVersion.ts +31 -33
  13. package/composables/auth/useAuth.ts +3 -11
  14. package/composables/document/useCreateDatabase.ts +21 -0
  15. package/composables/document/useDeleteDatabase.ts +29 -0
  16. package/composables/document/useDeleteDocument.ts +1 -1
  17. package/composables/document/useDeleteDocuments.ts +1 -1
  18. package/composables/document/useDeleteNamespace.ts +30 -0
  19. package/composables/document/useIngestors.ts +23 -0
  20. package/composables/form/useCreateInstanceForm.ts +2 -2
  21. package/composables/form/useFormKitTransform.ts +44 -15
  22. package/formkit.config.ts +24 -1
  23. package/i18n/locales/de.yaml +60 -5
  24. package/i18n/locales/en.yaml +57 -3
  25. package/i18n/locales/fr.yaml +58 -3
  26. package/i18n/locales/it.yaml +60 -3
  27. package/middleware/agent-admin.ts +31 -0
  28. package/package.json +1 -1
  29. package/pages/[tenant]/service/agents.vue +3 -0
  30. package/pages/[tenant]/service/knowledge/[db]/[namespace]/[document_id].vue +12 -5
  31. package/pages/[tenant]/service/knowledge.vue +138 -0
  32. package/plugins/0.runtime-config.client.ts +5 -0
  33. package/plugins/oidc-client.ts +1 -1
  34. package/sdk/client/index.ts +29 -2
  35. package/sdk/client/schemas.gen.ts +641 -77
  36. package/sdk/client/sdk.gen.ts +159 -1
  37. package/sdk/client/types.gen.ts +543 -75
  38. package/plugins/keycloak-client.ts +0 -41
@@ -385,7 +385,7 @@ export type AgentClassDto = {
385
385
  /**
386
386
  * Validation specification including the JSON schema for form submissions. Used by ModelCreationService to create Pydantic models for validation.
387
387
  */
388
- agent_config_specs: AgentConfigSpecs;
388
+ agent_config_specs: ConfigSpecs;
389
389
  /**
390
390
  * Start Events
391
391
  *
@@ -518,35 +518,6 @@ export type AgentConfigDto = {
518
518
  > | null;
519
519
  };
520
520
 
521
- /**
522
- * AgentConfigSpecs
523
- *
524
- * Validation specification for agent configuration form submissions.
525
- *
526
- * Contains ONLY the agent class identifier and JSON schema for validation.
527
- * Instance-level fields (name, description, icon, agent_id) are stored
528
- * separately in AgentConfigEntityDocument and provided by the Agent class.
529
- *
530
- * The JSON schema is generated from the agent's configurable fields via
531
- * to_configurable_submission_model() and is used to validate form submissions.
532
- */
533
- export type AgentConfigSpecs = {
534
- /**
535
- * Agent Class
536
- *
537
- * The class name of the agent.
538
- */
539
- agent_class: string;
540
- /**
541
- * Agent Config Schema
542
- *
543
- * JSON schema for validating form submissions. Generated from the agent's configurable fields via to_configurable_submission_model().
544
- */
545
- agent_config_schema?: {
546
- [key: string]: unknown;
547
- };
548
- };
549
-
550
521
  /**
551
522
  * AgentEvent
552
523
  */
@@ -770,6 +741,12 @@ export type AgentInTheLoopExceptionEvent = {
770
741
  * The exception event from the delegated agent containing error details and failure context.
771
742
  */
772
743
  exception_event: ExceptionEvent;
744
+ /**
745
+ * Request Event Id
746
+ *
747
+ * `event_id` of the `AgentInTheLoopRequestEvent` that failed. Carried here for the same reason the response carries it — a fan-out caller that cannot attribute a failure cannot complete its batch.
748
+ */
749
+ request_event_id: string;
773
750
  /**
774
751
  * Event Name
775
752
  *
@@ -844,9 +821,15 @@ export type AgentInTheLoopRequestEvent = {
844
821
  /**
845
822
  * Share Run Id
846
823
  *
847
- * Whether to share the run context with the other agent. Warning: In almost all cases, you will not want to share the run!
824
+ * Whether to share the run context with the other agent. Warning: In almost all cases, you will not want to share the run! The response subscription is scoped to the delegated run id, so sharing it makes every subscriber of a fan-out fire on every delegate.
848
825
  */
849
826
  share_run_id?: boolean;
827
+ /**
828
+ * Timeout Seconds
829
+ *
830
+ * How long to wait for the delegated agent before synthesizing a failure. `None` (the default) waits forever, which is what a delegate that never starts — an offline agent, a mistyped agent_id — costs the caller: no stop event is ever published, so the caller's run never resumes. Set it when the caller cannot tolerate that, and note it only covers a delegate that does not answer: the timer lives in the caller's dispatcher process, so it dies with the response subscription it guards.
831
+ */
832
+ timeout_seconds?: number | null;
850
833
  /**
851
834
  * Event Name
852
835
  *
@@ -896,6 +879,12 @@ export type AgentInTheLoopResponseEvent = {
896
879
  * The stop event from the delegated agent containing the task results and marks the completion.
897
880
  */
898
881
  stop_event: StopEvent;
882
+ /**
883
+ * Request Event Id
884
+ *
885
+ * `event_id` of the `AgentInTheLoopRequestEvent` this answer belongs to. The only thing that tells a caller which delegated answer is which: a run that delegates once can infer it, but a fan-out receives N of these on one topic and nothing else on the payload distinguishes them.
886
+ */
887
+ request_event_id: string;
899
888
  /**
900
889
  * Event Name
901
890
  *
@@ -1041,6 +1030,11 @@ export type AgentProcessStepDto = {
1041
1030
  *
1042
1031
  * This is similar to ModelSelect's `mode` parameter for filtering by model type.
1043
1032
  *
1033
+ * ### Pinning to One Agent Class
1034
+ *
1035
+ * When `agent_class` is specified, the class dropdown is not rendered at all and the profile dropdown lists only
1036
+ * that class's profiles. `start_event` is redundant then — the class is already decided — so set one or the other.
1037
+ *
1044
1038
  * ### Form Duality
1045
1039
  *
1046
1040
  * When used with AgentRef, the form submission is validated directly into AgentRef:
@@ -1161,6 +1155,12 @@ export type AgentSelector = {
1161
1155
  * Optional filter: only show agent classes that accept this start event type. Matches against event_name or event_parents in the agent's start_events.
1162
1156
  */
1163
1157
  startEvent?: string | null;
1158
+ /**
1159
+ * Agentclass
1160
+ *
1161
+ * Pin the selection to one agent class. The class dropdown is not rendered and the profile dropdown lists only that class's profiles. Use it when the config already knows which blueprint answers — a dropdown offering one choice asks the admin to make a decision that was never theirs.
1162
+ */
1163
+ agentClass?: string | null;
1164
1164
  /**
1165
1165
  * Classplaceholder
1166
1166
  *
@@ -1181,6 +1181,13 @@ export type AgentSelector = {
1181
1181
  filter?: boolean;
1182
1182
  /**
1183
1183
  * Validation
1184
+ *
1185
+ * Emits `agentRefRequired` where other elements emit FormKit's `required`.
1186
+ *
1187
+ * FormKit's `required` rule only asks whether a value is present, and this element's value is
1188
+ * always an `{agent_class, agent_id}` object. Picking a class alone emits a non-empty object with
1189
+ * a blank `agent_id`, which passes `required` and then delegates to a NATS wildcard at runtime.
1190
+ * `agentRefRequired` (registered in the frontend FormKit config) looks at both halves.
1184
1191
  */
1185
1192
  readonly validation: string;
1186
1193
  [key: string]: unknown;
@@ -1752,6 +1759,12 @@ export type BaseStoreMemoryEvent = {
1752
1759
  * Deleted relations
1753
1760
  */
1754
1761
  deleted_relations: Array<MemoryRelation>;
1762
+ /**
1763
+ * Llm Model Name
1764
+ *
1765
+ * Model that extracted these memories (issue #1590), or None when the write stored verbatim text. Carried on this event only, for observability — it is not stored in mem0's metadata, so it cannot be recovered from the memory record itself once this event is gone.
1766
+ */
1767
+ llm_model_name?: string | null;
1755
1768
  /**
1756
1769
  * Event Name
1757
1770
  *
@@ -1960,10 +1973,22 @@ export type Capability = {
1960
1973
  * Exact access rule that grants this capability, or null for read-only capabilities.
1961
1974
  */
1962
1975
  rule: string | null;
1976
+ /**
1977
+ * Companion Rules
1978
+ *
1979
+ * Rules written *and* removed together with `rule`. A knowledge database's row carries `<rule>.>` here: its namespaces belong to it, and a `.>` rule never matches its own root, so the row needs both forms to mean 'this whole database'.
1980
+ */
1981
+ companion_rules?: Array<string>;
1982
+ /**
1983
+ * Revoked Rules
1984
+ *
1985
+ * Rules removed with `rule`, never written with it. An agent class's row carries `<rule>.>` here: granting it would hand over every profile of the class in the deployment, other tenants' included, but a ceiling written before that was understood still holds it.
1986
+ */
1987
+ revoked_rules?: Array<string>;
1963
1988
  /**
1964
1989
  * Granted
1965
1990
  *
1966
- * Whether the draft rules grant this capability.
1991
+ * Whether the draft rules grant `rule` and every `companion_rules` entry.
1967
1992
  */
1968
1993
  granted: boolean;
1969
1994
  /**
@@ -3625,6 +3650,31 @@ export type CompletionUsage = {
3625
3650
  [key: string]: unknown;
3626
3651
  };
3627
3652
 
3653
+ /**
3654
+ * ConfigSpecs
3655
+ *
3656
+ * Validation specification for a form-duality configuration, as announced by the service that owns it.
3657
+ *
3658
+ * Carries only the JSON schema the API validates submissions against, so a configuration class defined in
3659
+ * an agent, process or pipeline container can be enforced by the API without that class being installed there.
3660
+ */
3661
+ export type ConfigSpecs = {
3662
+ /**
3663
+ * Config Class
3664
+ *
3665
+ * The class name of the configuration this schema describes.
3666
+ */
3667
+ config_class?: string;
3668
+ /**
3669
+ * Config Schema
3670
+ *
3671
+ * JSON schema for validating form submissions. Generated from the configuration's configurable fields via to_configurable_submission_model().
3672
+ */
3673
+ config_schema?: {
3674
+ [key: string]: unknown;
3675
+ };
3676
+ };
3677
+
3628
3678
  /**
3629
3679
  * ContextInsufficientRejectEvent
3630
3680
  *
@@ -3989,6 +4039,26 @@ export type CreateAgentInstanceRequest = {
3989
4039
  };
3990
4040
  };
3991
4041
 
4042
+ /**
4043
+ * CreateDatabaseRequest
4044
+ */
4045
+ export type CreateDatabaseRequest = {
4046
+ /**
4047
+ * Ingestor
4048
+ *
4049
+ * The deployed ingestion pipeline that processes this database's documents. Valid values are served by GET /knowledge/ingestors.
4050
+ */
4051
+ ingestor?: string;
4052
+ /**
4053
+ * Configuration
4054
+ *
4055
+ * The database's configuration as submitted through the ingestor's announced form: its multilingual name and description plus every knob the pipeline declares. Validated against the ingestor's schema.
4056
+ */
4057
+ configuration?: {
4058
+ [key: string]: unknown;
4059
+ };
4060
+ };
4061
+
3992
4062
  /**
3993
4063
  * CreateNamespaceRequest
3994
4064
  */
@@ -4469,6 +4539,18 @@ export type DatabaseDto = {
4469
4539
  * Whether this database auto-syncs namespaces
4470
4540
  */
4471
4541
  auto_sync: boolean;
4542
+ /**
4543
+ * Deletable
4544
+ *
4545
+ * Whether the database itself may be deleted; false for auto-synced databases, whose content is owned by a source, and for the legacy default_rag/shared_rag databases, which are re-provisioned from deployment configuration. Namespaces and individual documents are governed separately and stay deletable.
4546
+ */
4547
+ deletable: boolean;
4548
+ /**
4549
+ * Ingestor
4550
+ *
4551
+ * Identifier of the ingestion pipeline that processes this database, as served by GET /knowledge/ingestors. Visible to anyone who can see the database, so a database-level rule holder learns how it is configured without seeing its namespaces.
4552
+ */
4553
+ ingestor: string;
4472
4554
  /**
4473
4555
  * Namespaces
4474
4556
  *
@@ -4477,6 +4559,50 @@ export type DatabaseDto = {
4477
4559
  namespaces: Array<NamespaceDto>;
4478
4560
  };
4479
4561
 
4562
+ /**
4563
+ * DatabaseResponse
4564
+ */
4565
+ export type DatabaseResponse = {
4566
+ /**
4567
+ * Name
4568
+ *
4569
+ * The database name (also the Milvus collection and Mongo store name).
4570
+ */
4571
+ name: string;
4572
+ /**
4573
+ * Bucket Name
4574
+ *
4575
+ * The S3 bucket / data lake container name.
4576
+ */
4577
+ bucket_name: string;
4578
+ /**
4579
+ * Ingestor
4580
+ *
4581
+ * The deployed ingestion pipeline that owns this database.
4582
+ */
4583
+ ingestor: string;
4584
+ /**
4585
+ * Configuration
4586
+ *
4587
+ * The ingestor's settings for this database, as validated against its announced schema.
4588
+ */
4589
+ configuration?: {
4590
+ [key: string]: unknown;
4591
+ };
4592
+ /**
4593
+ * Display Name
4594
+ *
4595
+ * A user-friendly display name for the database.
4596
+ */
4597
+ display_name?: string | null;
4598
+ /**
4599
+ * Description
4600
+ *
4601
+ * A brief description of the database's contents.
4602
+ */
4603
+ description?: string | null;
4604
+ };
4605
+
4480
4606
  /**
4481
4607
  * Dataset
4482
4608
  */
@@ -5947,7 +6073,7 @@ export type FullProcessInstanceDto = {
5947
6073
  /**
5948
6074
  * Configuration specifications of the process class, including schema and parameters.
5949
6075
  */
5950
- process_config_specs: ProcessConfigSpecs;
6076
+ process_config_specs: ConfigSpecs;
5951
6077
  /**
5952
6078
  * Form
5953
6079
  *
@@ -7749,6 +7875,69 @@ export type IngestedNode = {
7749
7875
  score?: number | null;
7750
7876
  };
7751
7877
 
7878
+ /**
7879
+ * IngestorDTO
7880
+ */
7881
+ export type IngestorDto = {
7882
+ /**
7883
+ * Name
7884
+ *
7885
+ * Ingestor identifier, as served by GET /knowledge/ingestors.
7886
+ */
7887
+ name: string;
7888
+ /**
7889
+ * Display Name
7890
+ *
7891
+ * Localized name of the ingestion pipeline.
7892
+ */
7893
+ display_name: string | null;
7894
+ /**
7895
+ * Description
7896
+ *
7897
+ * Localized description of what the pipeline does.
7898
+ */
7899
+ description: string | null;
7900
+ /**
7901
+ * Form
7902
+ *
7903
+ * FormKit elements a database of this ingestor is configured through, localized.
7904
+ */
7905
+ form?: Array<
7906
+ | HtmlElement
7907
+ | AgentSelector
7908
+ | CascadeSelect
7909
+ | Checkbox
7910
+ | ChipsInput
7911
+ | ColorPicker
7912
+ | CronInput
7913
+ | DatePicker
7914
+ | Group
7915
+ | IconSelector
7916
+ | InputMask
7917
+ | InputNumber
7918
+ | InputOtp
7919
+ | InputText
7920
+ | KnowledgeDatabaseSelector
7921
+ | Knob
7922
+ | Listbox
7923
+ | LocaleInput
7924
+ | ModelSelect
7925
+ | MultiSelect
7926
+ | Password
7927
+ | RadioButton
7928
+ | Rating
7929
+ | Repeater
7930
+ | Select
7931
+ | SelectButton
7932
+ | Slider
7933
+ | TenantSelect
7934
+ | Textarea
7935
+ | ToggleButton
7936
+ | ToggleSwitch
7937
+ | VectorStoreInput
7938
+ >;
7939
+ };
7940
+
7752
7941
  /**
7753
7942
  * InputAudio
7754
7943
  */
@@ -12008,7 +12197,7 @@ export type ProcessClassDto = {
12008
12197
  /**
12009
12198
  * Configuration specifications of the process class, including schema and parameters.
12010
12199
  */
12011
- process_config_specs: ProcessConfigSpecs;
12200
+ process_config_specs: ConfigSpecs;
12012
12201
  /**
12013
12202
  * Human Inputs
12014
12203
  *
@@ -12071,35 +12260,6 @@ export type ProcessConfigDto = {
12071
12260
  icon?: string;
12072
12261
  };
12073
12262
 
12074
- /**
12075
- * ProcessConfigSpecs
12076
- *
12077
- * Validation specification for process configuration form submissions.
12078
- *
12079
- * Contains the process class identifier and JSON schema for validation.
12080
- * Instance-level fields (name, description, icon, process_id) are stored
12081
- * separately in ProcessConfigEntityDocument and provided by the Process class.
12082
- *
12083
- * The JSON schema is generated from the process's configurable fields via
12084
- * to_configurable_submission_model() and is used to validate form submissions.
12085
- */
12086
- export type ProcessConfigSpecs = {
12087
- /**
12088
- * Process Class
12089
- *
12090
- * The class name of the process.
12091
- */
12092
- process_class?: string;
12093
- /**
12094
- * Process Config Schema
12095
- *
12096
- * JSON schema for validating form submissions. Generated from the process's configurable fields via to_configurable_submission_model().
12097
- */
12098
- process_config_schema?: {
12099
- [key: string]: unknown;
12100
- };
12101
- };
12102
-
12103
12263
  /**
12104
12264
  * ProcessHealthChecks
12105
12265
  *
@@ -12419,10 +12579,12 @@ export type PromptTokensDetails = {
12419
12579
  * Why a RAG run failed to produce a useful answer.
12420
12580
  */
12421
12581
  export const RagFailureReason = {
12582
+ CONDENSATION_EMPTY: "condensation_empty",
12422
12583
  CONTEXT_INSUFFICIENT: "context_insufficient",
12423
12584
  EXPERT_DECLINED: "expert_declined",
12424
12585
  EXPERT_ERRORED: "expert_errored",
12425
12586
  FEW_SHOT_REJECTED: "few_shot_rejected",
12587
+ INPUT_TOO_LARGE: "input_too_large",
12426
12588
  } as const;
12427
12589
 
12428
12590
  /**
@@ -12520,9 +12682,9 @@ export type RagStartEvent = {
12520
12682
  */
12521
12683
  locale?: string;
12522
12684
  /**
12523
- * User on whose behalf the RAG run is executed.
12685
+ * User on whose behalf the RAG run is executed, when there is one. Optional because a delegating agent forwards whatever identity its own start event carries, and a scheduled run carries none — there is no service account to substitute. The RAG agent's user-memory steps are what read it, and they are skipped without it rather than attributing one caller's memories to a shared identity.
12524
12686
  */
12525
- user: UserIdentity;
12687
+ user?: UserIdentity | null;
12526
12688
  /**
12527
12689
  * Messages
12528
12690
  *
@@ -14317,6 +14479,14 @@ export type SortOrder = (typeof SortOrder)[keyof typeof SortOrder];
14317
14479
  * StandaloneQuestionCondenserEvent
14318
14480
  *
14319
14481
  * Event to condense chat messages into a single standalone question as a chat message.
14482
+ *
14483
+ * A blank condensation is refused by `condense_standalone_question`, before an event of this type can be
14484
+ * built. The invariant is deliberately *not* also a `field_validator` here: a validator on an event is not
14485
+ * only a publish-time contract, it runs on every `model_validate`, which is how the immutable log is read
14486
+ * back — JetStream replays the whole stream on each agent start, and the API rebuilds a thread's timeline
14487
+ * from the persisted display copy. Blank condensations did occur before the producer-side raise existed, so
14488
+ * validating on read makes that history undeserializable: replay drops the event and
14489
+ * `EventService.get_events_in_thread` fails the whole thread.
14320
14490
  */
14321
14491
  export type StandaloneQuestionCondenserEvent = {
14322
14492
  /**
@@ -14525,6 +14695,12 @@ export type StoreOrganizationMemoryEvent = {
14525
14695
  * Deleted relations
14526
14696
  */
14527
14697
  deleted_relations: Array<MemoryRelation>;
14698
+ /**
14699
+ * Llm Model Name
14700
+ *
14701
+ * Model that extracted these memories (issue #1590), or None when the write stored verbatim text. Carried on this event only, for observability — it is not stored in mem0's metadata, so it cannot be recovered from the memory record itself once this event is gone.
14702
+ */
14703
+ llm_model_name?: string | null;
14528
14704
  /**
14529
14705
  * Event Name
14530
14706
  *
@@ -14599,6 +14775,12 @@ export type StoreUserMemoryEvent = {
14599
14775
  * Deleted relations
14600
14776
  */
14601
14777
  deleted_relations: Array<MemoryRelation>;
14778
+ /**
14779
+ * Llm Model Name
14780
+ *
14781
+ * Model that extracted these memories (issue #1590), or None when the write stored verbatim text. Carried on this event only, for observability — it is not stored in mem0's metadata, so it cannot be recovered from the memory record itself once this event is gone.
14782
+ */
14783
+ llm_model_name?: string | null;
14602
14784
  /**
14603
14785
  * Event Name
14604
14786
  *
@@ -16594,13 +16776,14 @@ export type ValidationError = {
16594
16776
  *
16595
16777
  * This element renders as three controls:
16596
16778
  * 1. Database dropdown (loads from /api/v1/knowledge/databases)
16597
- * 2. Namespace multi-select (populated based on selected database)
16779
+ * 2. "All namespaces" switch, or a namespace multi-select populated from the selected database
16598
16780
  * 3. Free-form chips input for `allowed_metadata_filter_fields`
16599
16781
  *
16600
- * The output matches the three configurable fields of `MilvusVectorStoreConfig`:
16782
+ * The output matches the configurable fields of `MilvusVectorStoreConfig`:
16601
16783
  * {
16602
16784
  * "collection_name": str,
16603
16785
  * "index_namespaces": list[str],
16786
+ * "all_namespaces": bool,
16604
16787
  * "allowed_metadata_filter_fields": list[str],
16605
16788
  * }
16606
16789
  *
@@ -17139,7 +17322,7 @@ export type AgentClassDtoWritable = {
17139
17322
  /**
17140
17323
  * Validation specification including the JSON schema for form submissions. Used by ModelCreationService to create Pydantic models for validation.
17141
17324
  */
17142
- agent_config_specs: AgentConfigSpecs;
17325
+ agent_config_specs: ConfigSpecs;
17143
17326
  /**
17144
17327
  * Start Events
17145
17328
  *
@@ -17331,6 +17514,12 @@ export type AgentInTheLoopExceptionEventWritable = {
17331
17514
  * The exception event from the delegated agent containing error details and failure context.
17332
17515
  */
17333
17516
  exception_event: ExceptionEventWritable;
17517
+ /**
17518
+ * Request Event Id
17519
+ *
17520
+ * `event_id` of the `AgentInTheLoopRequestEvent` that failed. Carried here for the same reason the response carries it — a fan-out caller that cannot attribute a failure cannot complete its batch.
17521
+ */
17522
+ request_event_id: string;
17334
17523
  [key: string]: unknown;
17335
17524
  };
17336
17525
 
@@ -17392,9 +17581,15 @@ export type AgentInTheLoopRequestEventWritable = {
17392
17581
  /**
17393
17582
  * Share Run Id
17394
17583
  *
17395
- * Whether to share the run context with the other agent. Warning: In almost all cases, you will not want to share the run!
17584
+ * Whether to share the run context with the other agent. Warning: In almost all cases, you will not want to share the run! The response subscription is scoped to the delegated run id, so sharing it makes every subscriber of a fan-out fire on every delegate.
17396
17585
  */
17397
17586
  share_run_id?: boolean;
17587
+ /**
17588
+ * Timeout Seconds
17589
+ *
17590
+ * How long to wait for the delegated agent before synthesizing a failure. `None` (the default) waits forever, which is what a delegate that never starts — an offline agent, a mistyped agent_id — costs the caller: no stop event is ever published, so the caller's run never resumes. Set it when the caller cannot tolerate that, and note it only covers a delegate that does not answer: the timer lives in the caller's dispatcher process, so it dies with the response subscription it guards.
17591
+ */
17592
+ timeout_seconds?: number | null;
17398
17593
  [key: string]: unknown;
17399
17594
  };
17400
17595
 
@@ -17431,6 +17626,12 @@ export type AgentInTheLoopResponseEventWritable = {
17431
17626
  * The stop event from the delegated agent containing the task results and marks the completion.
17432
17627
  */
17433
17628
  stop_event: StopEventWritable;
17629
+ /**
17630
+ * Request Event Id
17631
+ *
17632
+ * `event_id` of the `AgentInTheLoopRequestEvent` this answer belongs to. The only thing that tells a caller which delegated answer is which: a run that delegates once can infer it, but a fan-out receives N of these on one topic and nothing else on the payload distinguishes them.
17633
+ */
17634
+ request_event_id: string;
17434
17635
  [key: string]: unknown;
17435
17636
  };
17436
17637
 
@@ -17494,6 +17695,11 @@ export type AgentProcessStepDtoWritable = {
17494
17695
  *
17495
17696
  * This is similar to ModelSelect's `mode` parameter for filtering by model type.
17496
17697
  *
17698
+ * ### Pinning to One Agent Class
17699
+ *
17700
+ * When `agent_class` is specified, the class dropdown is not rendered at all and the profile dropdown lists only
17701
+ * that class's profiles. `start_event` is redundant then — the class is already decided — so set one or the other.
17702
+ *
17497
17703
  * ### Form Duality
17498
17704
  *
17499
17705
  * When used with AgentRef, the form submission is validated directly into AgentRef:
@@ -17614,6 +17820,12 @@ export type AgentSelectorWritable = {
17614
17820
  * Optional filter: only show agent classes that accept this start event type. Matches against event_name or event_parents in the agent's start_events.
17615
17821
  */
17616
17822
  startEvent?: string | null;
17823
+ /**
17824
+ * Agentclass
17825
+ *
17826
+ * Pin the selection to one agent class. The class dropdown is not rendered and the profile dropdown lists only that class's profiles. Use it when the config already knows which blueprint answers — a dropdown offering one choice asks the admin to make a decision that was never theirs.
17827
+ */
17828
+ agentClass?: string | null;
17617
17829
  /**
17618
17830
  * Classplaceholder
17619
17831
  *
@@ -17983,6 +18195,12 @@ export type BaseStoreMemoryEventWritable = {
17983
18195
  * Deleted relations
17984
18196
  */
17985
18197
  deleted_relations: Array<MemoryRelation>;
18198
+ /**
18199
+ * Llm Model Name
18200
+ *
18201
+ * Model that extracted these memories (issue #1590), or None when the write stored verbatim text. Carried on this event only, for observability — it is not stored in mem0's metadata, so it cannot be recovered from the memory record itself once this event is gone.
18202
+ */
18203
+ llm_model_name?: string | null;
17986
18204
  [key: string]: unknown;
17987
18205
  };
17988
18206
 
@@ -19654,7 +19872,7 @@ export type FullProcessInstanceDtoWritable = {
19654
19872
  /**
19655
19873
  * Configuration specifications of the process class, including schema and parameters.
19656
19874
  */
19657
- process_config_specs: ProcessConfigSpecs;
19875
+ process_config_specs: ConfigSpecs;
19658
19876
  /**
19659
19877
  * Form
19660
19878
  *
@@ -20575,6 +20793,69 @@ export type IconSelectorWritable = {
20575
20793
  [key: string]: unknown;
20576
20794
  };
20577
20795
 
20796
+ /**
20797
+ * IngestorDTO
20798
+ */
20799
+ export type IngestorDtoWritable = {
20800
+ /**
20801
+ * Name
20802
+ *
20803
+ * Ingestor identifier, as served by GET /knowledge/ingestors.
20804
+ */
20805
+ name: string;
20806
+ /**
20807
+ * Display Name
20808
+ *
20809
+ * Localized name of the ingestion pipeline.
20810
+ */
20811
+ display_name: string | null;
20812
+ /**
20813
+ * Description
20814
+ *
20815
+ * Localized description of what the pipeline does.
20816
+ */
20817
+ description: string | null;
20818
+ /**
20819
+ * Form
20820
+ *
20821
+ * FormKit elements a database of this ingestor is configured through, localized.
20822
+ */
20823
+ form?: Array<
20824
+ | HtmlElement
20825
+ | AgentSelectorWritable
20826
+ | CascadeSelectWritable
20827
+ | CheckboxWritable
20828
+ | ChipsInputWritable
20829
+ | ColorPickerWritable
20830
+ | CronInputWritable
20831
+ | DatePickerWritable
20832
+ | GroupWritable
20833
+ | IconSelectorWritable
20834
+ | InputMaskWritable
20835
+ | InputNumberWritable
20836
+ | InputOtpWritable
20837
+ | InputTextWritable
20838
+ | KnowledgeDatabaseSelectorWritable
20839
+ | KnobWritable
20840
+ | ListboxWritable
20841
+ | LocaleInputWritable
20842
+ | ModelSelectWritable
20843
+ | MultiSelectWritable
20844
+ | PasswordWritable
20845
+ | RadioButtonWritable
20846
+ | RatingWritable
20847
+ | RepeaterWritable
20848
+ | SelectWritable
20849
+ | SelectButtonWritable
20850
+ | SliderWritable
20851
+ | TenantSelectWritable
20852
+ | TextareaWritable
20853
+ | ToggleButtonWritable
20854
+ | ToggleSwitchWritable
20855
+ | VectorStoreInputWritable
20856
+ >;
20857
+ };
20858
+
20578
20859
  /**
20579
20860
  * InputMask
20580
20861
  *
@@ -23118,7 +23399,7 @@ export type ProcessClassDtoWritable = {
23118
23399
  /**
23119
23400
  * Configuration specifications of the process class, including schema and parameters.
23120
23401
  */
23121
- process_config_specs: ProcessConfigSpecs;
23402
+ process_config_specs: ConfigSpecs;
23122
23403
  /**
23123
23404
  * Human Inputs
23124
23405
  *
@@ -23301,9 +23582,9 @@ export type RagStartEventWritable = {
23301
23582
  */
23302
23583
  locale?: string;
23303
23584
  /**
23304
- * User on whose behalf the RAG run is executed.
23585
+ * User on whose behalf the RAG run is executed, when there is one. Optional because a delegating agent forwards whatever identity its own start event carries, and a scheduled run carries none — there is no service account to substitute. The RAG agent's user-memory steps are what read it, and they are skipped without it rather than attributing one caller's memories to a shared identity.
23305
23586
  */
23306
- user: UserIdentity;
23587
+ user?: UserIdentity | null;
23307
23588
  /**
23308
23589
  * Messages
23309
23590
  *
@@ -24718,6 +24999,14 @@ export type SliderWritable = {
24718
24999
  * StandaloneQuestionCondenserEvent
24719
25000
  *
24720
25001
  * Event to condense chat messages into a single standalone question as a chat message.
25002
+ *
25003
+ * A blank condensation is refused by `condense_standalone_question`, before an event of this type can be
25004
+ * built. The invariant is deliberately *not* also a `field_validator` here: a validator on an event is not
25005
+ * only a publish-time contract, it runs on every `model_validate`, which is how the immutable log is read
25006
+ * back — JetStream replays the whole stream on each agent start, and the API rebuilds a thread's timeline
25007
+ * from the persisted display copy. Blank condensations did occur before the producer-side raise existed, so
25008
+ * validating on read makes that history undeserializable: replay drops the event and
25009
+ * `EventService.get_events_in_thread` fails the whole thread.
24721
25010
  */
24722
25011
  export type StandaloneQuestionCondenserEventWritable = {
24723
25012
  /**
@@ -24887,6 +25176,12 @@ export type StoreOrganizationMemoryEventWritable = {
24887
25176
  * Deleted relations
24888
25177
  */
24889
25178
  deleted_relations: Array<MemoryRelation>;
25179
+ /**
25180
+ * Llm Model Name
25181
+ *
25182
+ * Model that extracted these memories (issue #1590), or None when the write stored verbatim text. Carried on this event only, for observability — it is not stored in mem0's metadata, so it cannot be recovered from the memory record itself once this event is gone.
25183
+ */
25184
+ llm_model_name?: string | null;
24890
25185
  [key: string]: unknown;
24891
25186
  };
24892
25187
 
@@ -24948,6 +25243,12 @@ export type StoreUserMemoryEventWritable = {
24948
25243
  * Deleted relations
24949
25244
  */
24950
25245
  deleted_relations: Array<MemoryRelation>;
25246
+ /**
25247
+ * Llm Model Name
25248
+ *
25249
+ * Model that extracted these memories (issue #1590), or None when the write stored verbatim text. Carried on this event only, for observability — it is not stored in mem0's metadata, so it cannot be recovered from the memory record itself once this event is gone.
25250
+ */
25251
+ llm_model_name?: string | null;
24951
25252
  [key: string]: unknown;
24952
25253
  };
24953
25254
 
@@ -25818,13 +26119,14 @@ export type UserMessageEventWritable = {
25818
26119
  *
25819
26120
  * This element renders as three controls:
25820
26121
  * 1. Database dropdown (loads from /api/v1/knowledge/databases)
25821
- * 2. Namespace multi-select (populated based on selected database)
26122
+ * 2. "All namespaces" switch, or a namespace multi-select populated from the selected database
25822
26123
  * 3. Free-form chips input for `allowed_metadata_filter_fields`
25823
26124
  *
25824
- * The output matches the three configurable fields of `MilvusVectorStoreConfig`:
26125
+ * The output matches the configurable fields of `MilvusVectorStoreConfig`:
25825
26126
  * {
25826
26127
  * "collection_name": str,
25827
26128
  * "index_namespaces": list[str],
26129
+ * "all_namespaces": bool,
25828
26130
  * "allowed_metadata_filter_fields": list[str],
25829
26131
  * }
25830
26132
  *
@@ -28492,6 +28794,32 @@ export type GetAccessPresetsResponses = {
28492
28794
  export type GetAccessPresetsResponse =
28493
28795
  GetAccessPresetsResponses[keyof GetAccessPresetsResponses];
28494
28796
 
28797
+ export type GetDefaultTenantRulesData = {
28798
+ body?: never;
28799
+ path: {
28800
+ /**
28801
+ * Tenant Id
28802
+ *
28803
+ * Tenant identifier: a name, ObjectId, or 'active'
28804
+ */
28805
+ tenant_id: string;
28806
+ };
28807
+ query?: never;
28808
+ url: "/{tenant_id}/access/default-tenant-rules";
28809
+ };
28810
+
28811
+ export type GetDefaultTenantRulesResponses = {
28812
+ /**
28813
+ * Response Get Default Tenant Rules Tenant Id Access Default Tenant Rules Get
28814
+ *
28815
+ * Successful Response
28816
+ */
28817
+ 200: Array<string>;
28818
+ };
28819
+
28820
+ export type GetDefaultTenantRulesResponse =
28821
+ GetDefaultTenantRulesResponses[keyof GetDefaultTenantRulesResponses];
28822
+
28495
28823
  export type GetModelsData = {
28496
28824
  body?: never;
28497
28825
  path: {
@@ -28855,6 +29183,146 @@ export type UpdateDatasetResponses = {
28855
29183
  export type UpdateDatasetResponse =
28856
29184
  UpdateDatasetResponses[keyof UpdateDatasetResponses];
28857
29185
 
29186
+ export type GetIngestorsData = {
29187
+ body?: never;
29188
+ path: {
29189
+ /**
29190
+ * Tenant Id
29191
+ *
29192
+ * Tenant identifier: a name, ObjectId, or 'active'
29193
+ */
29194
+ tenant_id: string;
29195
+ };
29196
+ query?: never;
29197
+ url: "/{tenant_id}/knowledge/ingestors";
29198
+ };
29199
+
29200
+ export type GetIngestorsResponses = {
29201
+ /**
29202
+ * Response Get Ingestors Tenant Id Knowledge Ingestors Get
29203
+ *
29204
+ * Successful Response
29205
+ */
29206
+ 200: Array<IngestorDto>;
29207
+ };
29208
+
29209
+ export type GetIngestorsResponse =
29210
+ GetIngestorsResponses[keyof GetIngestorsResponses];
29211
+
29212
+ export type DeleteDatabaseData = {
29213
+ body?: never;
29214
+ path: {
29215
+ /**
29216
+ * Tenant Id
29217
+ *
29218
+ * Tenant identifier: a name, ObjectId, or 'active'
29219
+ */
29220
+ tenant_id: string;
29221
+ /**
29222
+ * Database name
29223
+ */
29224
+ database: string;
29225
+ };
29226
+ query?: never;
29227
+ url: "/{tenant_id}/knowledge/databases/{database}";
29228
+ };
29229
+
29230
+ export type DeleteDatabaseErrors = {
29231
+ /**
29232
+ * Validation Error
29233
+ */
29234
+ 422: HttpValidationError;
29235
+ };
29236
+
29237
+ export type DeleteDatabaseError =
29238
+ DeleteDatabaseErrors[keyof DeleteDatabaseErrors];
29239
+
29240
+ export type DeleteDatabaseResponses = {
29241
+ /**
29242
+ * Successful Response
29243
+ */
29244
+ 202: unknown;
29245
+ };
29246
+
29247
+ export type CreateDatabaseData = {
29248
+ body: CreateDatabaseRequest;
29249
+ path: {
29250
+ /**
29251
+ * Tenant Id
29252
+ *
29253
+ * Tenant identifier: a name, ObjectId, or 'active'
29254
+ */
29255
+ tenant_id: string;
29256
+ /**
29257
+ * Database name
29258
+ *
29259
+ * Lowercase letters and digits, starting with a letter, 3 to 63 characters
29260
+ */
29261
+ database: string;
29262
+ };
29263
+ query?: never;
29264
+ url: "/{tenant_id}/knowledge/databases/{database}";
29265
+ };
29266
+
29267
+ export type CreateDatabaseErrors = {
29268
+ /**
29269
+ * Validation Error
29270
+ */
29271
+ 422: HttpValidationError;
29272
+ };
29273
+
29274
+ export type CreateDatabaseError =
29275
+ CreateDatabaseErrors[keyof CreateDatabaseErrors];
29276
+
29277
+ export type CreateDatabaseResponses = {
29278
+ /**
29279
+ * Successful Response
29280
+ */
29281
+ 200: DatabaseResponse;
29282
+ };
29283
+
29284
+ export type CreateDatabaseResponse =
29285
+ CreateDatabaseResponses[keyof CreateDatabaseResponses];
29286
+
29287
+ export type DeleteNamespaceData = {
29288
+ body?: never;
29289
+ path: {
29290
+ /**
29291
+ * Tenant Id
29292
+ *
29293
+ * Tenant identifier: a name, ObjectId, or 'active'
29294
+ */
29295
+ tenant_id: string;
29296
+ /**
29297
+ * Database name
29298
+ */
29299
+ database: string;
29300
+ /**
29301
+ * Namespace
29302
+ */
29303
+ namespace: string;
29304
+ };
29305
+ query?: never;
29306
+ url: "/{tenant_id}/knowledge/databases/{database}/namespaces/{namespace}";
29307
+ };
29308
+
29309
+ export type DeleteNamespaceErrors = {
29310
+ /**
29311
+ * Validation Error
29312
+ */
29313
+ 422: HttpValidationError;
29314
+ };
29315
+
29316
+ export type DeleteNamespaceError =
29317
+ DeleteNamespaceErrors[keyof DeleteNamespaceErrors];
29318
+
29319
+ export type DeleteNamespaceResponses = {
29320
+ /**
29321
+ * Successful Response
29322
+ */
29323
+ 202: unknown;
29324
+ };
29325
+
28858
29326
  export type CreateNamespaceData = {
28859
29327
  body: CreateNamespaceRequest;
28860
29328
  path: {