@breign/client 1.0.5 → 1.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/apis/AgentApi.d.ts +5 -4
- package/dist/apis/AgentApi.js +6 -3
- package/dist/apis/EngineApi.d.ts +6 -5
- package/dist/apis/EngineApi.js +13 -7
- package/dist/apis/FilesApi.d.ts +21 -21
- package/dist/apis/FilesApi.js +42 -42
- package/dist/apis/GeneralApi.d.ts +2 -2
- package/dist/apis/GeneralApi.js +3 -3
- package/dist/apis/GuardiansApi.d.ts +54 -54
- package/dist/apis/GuardiansApi.js +91 -91
- package/dist/apis/KnowledgeApi.d.ts +72 -72
- package/dist/apis/KnowledgeApi.js +152 -152
- package/dist/apis/ManifestsApi.d.ts +28 -28
- package/dist/apis/ManifestsApi.js +45 -45
- package/dist/apis/MetricsApi.d.ts +14 -14
- package/dist/apis/MetricsApi.js +18 -18
- package/dist/apis/OrganizationsApi.d.ts +3 -3
- package/dist/apis/OrganizationsApi.js +4 -4
- package/dist/apis/PromptsApi.d.ts +31 -31
- package/dist/apis/PromptsApi.js +60 -60
- package/dist/apis/RemotesApi.d.ts +3 -3
- package/dist/apis/RemotesApi.js +4 -4
- package/dist/apis/ToolsApi.d.ts +6 -6
- package/dist/apis/ToolsApi.js +8 -8
- package/dist/models/AgentPatchEngineUio.d.ts +38 -0
- package/dist/models/AgentPatchEngineUio.js +54 -0
- package/dist/models/AgentPatchUio.d.ts +4 -4
- package/dist/models/AgentPatchUio.js +3 -3
- package/dist/models/AgentRequestUio.d.ts +1 -1
- package/dist/models/AgentRequestUio.js +1 -3
- package/dist/models/ChatMessageAudioInnerUio.d.ts +38 -0
- package/dist/models/ChatMessageAudioInnerUio.js +54 -0
- package/dist/models/ChatMessageUio.d.ts +7 -0
- package/dist/models/ChatMessageUio.js +3 -0
- package/dist/models/ChatMessageWithFlowNodeUio.d.ts +129 -0
- package/dist/models/ChatMessageWithFlowNodeUio.js +95 -0
- package/dist/models/ChatUio.d.ts +3 -3
- package/dist/models/ChatUio.js +3 -3
- package/dist/models/DefaultEngineRequestUio.d.ts +1 -7
- package/dist/models/DefaultEngineRequestUio.js +3 -7
- package/dist/models/EngineUio.d.ts +4 -7
- package/dist/models/EngineUio.js +6 -7
- package/dist/models/GuardianCreateRequestUio.d.ts +7 -0
- package/dist/models/GuardianCreateRequestUio.js +5 -0
- package/dist/models/GuardianEngineUio.d.ts +0 -7
- package/dist/models/GuardianEngineUio.js +0 -5
- package/dist/models/GuardianPutRequestUio.d.ts +7 -0
- package/dist/models/GuardianPutRequestUio.js +3 -0
- package/dist/models/GuardianTypeUio.d.ts +26 -0
- package/dist/models/GuardianTypeUio.js +52 -0
- package/dist/models/GuardianUio.d.ts +7 -0
- package/dist/models/GuardianUio.js +5 -0
- package/dist/models/ImportFileToAgentKnowledge200ResponseUio.d.ts +56 -0
- package/dist/models/ImportFileToAgentKnowledge200ResponseUio.js +56 -0
- package/dist/models/ProviderCreateRequestUio.d.ts +4 -9
- package/dist/models/ProviderCreateRequestUio.js +4 -9
- package/dist/models/ProviderTypeUio.d.ts +27 -0
- package/dist/models/ProviderTypeUio.js +53 -0
- package/dist/models/ProviderUio.d.ts +4 -9
- package/dist/models/ProviderUio.js +4 -9
- package/dist/models/index.d.ts +6 -5
- package/dist/models/index.js +6 -5
- package/dist/openapi.json +171 -81
- package/package.json +1 -1
- package/dist/models/AgentsAgentIdKnowledgeFileImportsPost200ResponseUio.d.ts +0 -56
- package/dist/models/AgentsAgentIdKnowledgeFileImportsPost200ResponseUio.js +0 -56
- package/dist/models/DuplicateAgent201ResponseUio.d.ts +0 -32
- package/dist/models/DuplicateAgent201ResponseUio.js +0 -50
- package/dist/models/EngineTypeUio.d.ts +0 -25
- package/dist/models/EngineTypeUio.js +0 -51
- package/dist/models/GuardianEngineTypeUio.d.ts +0 -26
- package/dist/models/GuardianEngineTypeUio.js +0 -52
- package/dist/models/GuardianExcludedAgentsRequestUio.d.ts +0 -32
- package/dist/models/GuardianExcludedAgentsRequestUio.js +0 -50
package/dist/openapi.json
CHANGED
|
@@ -71,6 +71,7 @@
|
|
|
71
71
|
"/health" : {
|
|
72
72
|
"get" : {
|
|
73
73
|
"description" : "Comprehensive health check that verifies system components",
|
|
74
|
+
"operationId" : "getHealth",
|
|
74
75
|
"responses" : {
|
|
75
76
|
"200" : {
|
|
76
77
|
"content" : {
|
|
@@ -1024,7 +1025,7 @@
|
|
|
1024
1025
|
"content" : {
|
|
1025
1026
|
"application/json" : {
|
|
1026
1027
|
"schema" : {
|
|
1027
|
-
"$ref" : "#/components/schemas/
|
|
1028
|
+
"$ref" : "#/components/schemas/BodyWithId"
|
|
1028
1029
|
}
|
|
1029
1030
|
}
|
|
1030
1031
|
},
|
|
@@ -1100,6 +1101,13 @@
|
|
|
1100
1101
|
"schema" : {
|
|
1101
1102
|
"type" : "string"
|
|
1102
1103
|
}
|
|
1104
|
+
}, {
|
|
1105
|
+
"description" : "Page number",
|
|
1106
|
+
"in" : "query",
|
|
1107
|
+
"name" : "page",
|
|
1108
|
+
"schema" : {
|
|
1109
|
+
"type" : "integer"
|
|
1110
|
+
}
|
|
1103
1111
|
} ],
|
|
1104
1112
|
"responses" : {
|
|
1105
1113
|
"200" : {
|
|
@@ -2815,14 +2823,15 @@
|
|
|
2815
2823
|
"tags" : [ "engine" ]
|
|
2816
2824
|
}
|
|
2817
2825
|
},
|
|
2818
|
-
"/engines/providers" : {
|
|
2826
|
+
"/organizations/{organizationId}/engines/providers" : {
|
|
2819
2827
|
"get" : {
|
|
2820
2828
|
"description" : "Get providers for an organization",
|
|
2821
2829
|
"operationId" : "getProviders",
|
|
2822
2830
|
"parameters" : [ {
|
|
2823
|
-
"description" : "
|
|
2824
|
-
"in" : "
|
|
2831
|
+
"description" : "ID of the organization",
|
|
2832
|
+
"in" : "path",
|
|
2825
2833
|
"name" : "organizationId",
|
|
2834
|
+
"required" : true,
|
|
2826
2835
|
"schema" : {
|
|
2827
2836
|
"type" : "string"
|
|
2828
2837
|
}
|
|
@@ -2848,6 +2857,15 @@
|
|
|
2848
2857
|
"post" : {
|
|
2849
2858
|
"description" : "Create a provider for an organization",
|
|
2850
2859
|
"operationId" : "createProvider",
|
|
2860
|
+
"parameters" : [ {
|
|
2861
|
+
"description" : "ID of the organization",
|
|
2862
|
+
"in" : "path",
|
|
2863
|
+
"name" : "organizationId",
|
|
2864
|
+
"required" : true,
|
|
2865
|
+
"schema" : {
|
|
2866
|
+
"type" : "string"
|
|
2867
|
+
}
|
|
2868
|
+
} ],
|
|
2851
2869
|
"requestBody" : {
|
|
2852
2870
|
"content" : {
|
|
2853
2871
|
"application/json" : {
|
|
@@ -2890,6 +2908,7 @@
|
|
|
2890
2908
|
"description" : "Organization ID",
|
|
2891
2909
|
"in" : "query",
|
|
2892
2910
|
"name" : "organizationId",
|
|
2911
|
+
"required" : true,
|
|
2893
2912
|
"schema" : {
|
|
2894
2913
|
"type" : "string"
|
|
2895
2914
|
}
|
|
@@ -3018,6 +3037,7 @@
|
|
|
3018
3037
|
"/files" : {
|
|
3019
3038
|
"get" : {
|
|
3020
3039
|
"description" : "Retrieves a list of all files (admin only)",
|
|
3040
|
+
"operationId" : "getFiles",
|
|
3021
3041
|
"responses" : {
|
|
3022
3042
|
"206" : {
|
|
3023
3043
|
"content" : {
|
|
@@ -3044,6 +3064,7 @@
|
|
|
3044
3064
|
},
|
|
3045
3065
|
"post" : {
|
|
3046
3066
|
"description" : "Creates a new file record and returns an upload URL (admin only)",
|
|
3067
|
+
"operationId" : "createFile",
|
|
3047
3068
|
"requestBody" : {
|
|
3048
3069
|
"content" : {
|
|
3049
3070
|
"application/json" : {
|
|
@@ -3082,6 +3103,7 @@
|
|
|
3082
3103
|
"/files/{fileId}" : {
|
|
3083
3104
|
"delete" : {
|
|
3084
3105
|
"description" : "Deletes a file by ID (admin only)",
|
|
3106
|
+
"operationId" : "deleteFileById",
|
|
3085
3107
|
"parameters" : [ {
|
|
3086
3108
|
"description" : "The ID of the file",
|
|
3087
3109
|
"in" : "path",
|
|
@@ -3110,6 +3132,7 @@
|
|
|
3110
3132
|
},
|
|
3111
3133
|
"get" : {
|
|
3112
3134
|
"description" : "Retrieves a specific file by ID and generates a download URL (admin only)",
|
|
3135
|
+
"operationId" : "getFileById",
|
|
3113
3136
|
"parameters" : [ {
|
|
3114
3137
|
"description" : "The ID of the file",
|
|
3115
3138
|
"in" : "path",
|
|
@@ -3147,6 +3170,7 @@
|
|
|
3147
3170
|
"/metrics" : {
|
|
3148
3171
|
"get" : {
|
|
3149
3172
|
"description" : "Retrieves usage metrics for all agents within a date range (admin only)",
|
|
3173
|
+
"operationId" : "getMetrics",
|
|
3150
3174
|
"parameters" : [ {
|
|
3151
3175
|
"description" : "Start date for metrics (ISO format)",
|
|
3152
3176
|
"in" : "query",
|
|
@@ -3198,6 +3222,7 @@
|
|
|
3198
3222
|
"/metrics/agents" : {
|
|
3199
3223
|
"get" : {
|
|
3200
3224
|
"description" : "Retrieves usage metrics broken down by agent within a date range (admin only)",
|
|
3225
|
+
"operationId" : "getMetricsAgents",
|
|
3201
3226
|
"parameters" : [ {
|
|
3202
3227
|
"description" : "Start date for metrics (ISO format)",
|
|
3203
3228
|
"in" : "query",
|
|
@@ -3248,6 +3273,7 @@
|
|
|
3248
3273
|
},
|
|
3249
3274
|
"/agents/{agentId}/guardians" : {
|
|
3250
3275
|
"get" : {
|
|
3276
|
+
"operationId" : "getGuardiansForAgent",
|
|
3251
3277
|
"parameters" : [ {
|
|
3252
3278
|
"description" : "ID of the agent",
|
|
3253
3279
|
"in" : "path",
|
|
@@ -3286,6 +3312,7 @@
|
|
|
3286
3312
|
},
|
|
3287
3313
|
"post" : {
|
|
3288
3314
|
"description" : "Creates a new guardian for content moderation",
|
|
3315
|
+
"operationId" : "createGuardianForAgent",
|
|
3289
3316
|
"parameters" : [ {
|
|
3290
3317
|
"description" : "ID of the agent",
|
|
3291
3318
|
"in" : "path",
|
|
@@ -3336,6 +3363,7 @@
|
|
|
3336
3363
|
"/organizations/{organizationId}/guardians" : {
|
|
3337
3364
|
"get" : {
|
|
3338
3365
|
"description" : "Retrieves all guardians associated with the specified organization",
|
|
3366
|
+
"operationId" : "getGuardiansForOrganization",
|
|
3339
3367
|
"parameters" : [ {
|
|
3340
3368
|
"description" : "ID of the organization",
|
|
3341
3369
|
"in" : "path",
|
|
@@ -3374,6 +3402,7 @@
|
|
|
3374
3402
|
},
|
|
3375
3403
|
"post" : {
|
|
3376
3404
|
"description" : "Creates a new organisation-level guardian for content moderation",
|
|
3405
|
+
"operationId" : "createGuardianForOrganization",
|
|
3377
3406
|
"parameters" : [ {
|
|
3378
3407
|
"description" : "ID of the organization",
|
|
3379
3408
|
"in" : "path",
|
|
@@ -3424,6 +3453,7 @@
|
|
|
3424
3453
|
"/guardians/{guardianId}" : {
|
|
3425
3454
|
"delete" : {
|
|
3426
3455
|
"description" : "Deletes a guardian by ID",
|
|
3456
|
+
"operationId" : "deleteGuardian",
|
|
3427
3457
|
"parameters" : [ {
|
|
3428
3458
|
"description" : "ID of the guardian",
|
|
3429
3459
|
"in" : "path",
|
|
@@ -3454,6 +3484,7 @@
|
|
|
3454
3484
|
"tags" : [ "guardians" ]
|
|
3455
3485
|
},
|
|
3456
3486
|
"get" : {
|
|
3487
|
+
"operationId" : "getGuardian",
|
|
3457
3488
|
"parameters" : [ {
|
|
3458
3489
|
"description" : "ID of the guardian",
|
|
3459
3490
|
"in" : "path",
|
|
@@ -3492,6 +3523,7 @@
|
|
|
3492
3523
|
},
|
|
3493
3524
|
"put" : {
|
|
3494
3525
|
"description" : "Updates an existing guardian's configuration",
|
|
3526
|
+
"operationId" : "updateGuardian",
|
|
3495
3527
|
"parameters" : [ {
|
|
3496
3528
|
"description" : "ID of the guardian",
|
|
3497
3529
|
"in" : "path",
|
|
@@ -3545,6 +3577,7 @@
|
|
|
3545
3577
|
"/guardians/{guardianId}/excluded-agents" : {
|
|
3546
3578
|
"put" : {
|
|
3547
3579
|
"description" : "Updates the excluded agents for a guardian",
|
|
3580
|
+
"operationId" : "updateExcludedAgents",
|
|
3548
3581
|
"parameters" : [ {
|
|
3549
3582
|
"description" : "ID of the guardian",
|
|
3550
3583
|
"in" : "path",
|
|
@@ -3558,7 +3591,10 @@
|
|
|
3558
3591
|
"content" : {
|
|
3559
3592
|
"application/json" : {
|
|
3560
3593
|
"schema" : {
|
|
3561
|
-
"
|
|
3594
|
+
"items" : {
|
|
3595
|
+
"type" : "string"
|
|
3596
|
+
},
|
|
3597
|
+
"type" : "array"
|
|
3562
3598
|
}
|
|
3563
3599
|
}
|
|
3564
3600
|
},
|
|
@@ -3598,6 +3634,7 @@
|
|
|
3598
3634
|
"/organizations/{organizationId}" : {
|
|
3599
3635
|
"get" : {
|
|
3600
3636
|
"description" : "Retrieves an organization by its ID",
|
|
3637
|
+
"operationId" : "getOrganizationById",
|
|
3601
3638
|
"parameters" : [ {
|
|
3602
3639
|
"description" : "ID of the organization",
|
|
3603
3640
|
"in" : "path",
|
|
@@ -3638,6 +3675,7 @@
|
|
|
3638
3675
|
"/manifests" : {
|
|
3639
3676
|
"get" : {
|
|
3640
3677
|
"description" : "Retrieves manifests, filtered by user ID for non-admin users",
|
|
3678
|
+
"operationId" : "getManifests",
|
|
3641
3679
|
"responses" : {
|
|
3642
3680
|
"206" : {
|
|
3643
3681
|
"content" : {
|
|
@@ -3664,6 +3702,7 @@
|
|
|
3664
3702
|
},
|
|
3665
3703
|
"post" : {
|
|
3666
3704
|
"description" : "Creates a new manifest document",
|
|
3705
|
+
"operationId" : "createManifest",
|
|
3667
3706
|
"requestBody" : {
|
|
3668
3707
|
"content" : {
|
|
3669
3708
|
"application/json" : {
|
|
@@ -3702,6 +3741,7 @@
|
|
|
3702
3741
|
"/manifests/{manifestId}" : {
|
|
3703
3742
|
"delete" : {
|
|
3704
3743
|
"description" : "Deletes a manifest by ID",
|
|
3744
|
+
"operationId" : "deleteManifestById",
|
|
3705
3745
|
"parameters" : [ {
|
|
3706
3746
|
"description" : "ID of the manifest",
|
|
3707
3747
|
"in" : "path",
|
|
@@ -3733,6 +3773,7 @@
|
|
|
3733
3773
|
},
|
|
3734
3774
|
"get" : {
|
|
3735
3775
|
"description" : "Retrieves a specific manifest by its ID",
|
|
3776
|
+
"operationId" : "getManifestById",
|
|
3736
3777
|
"parameters" : [ {
|
|
3737
3778
|
"description" : "ID of the manifest",
|
|
3738
3779
|
"in" : "path",
|
|
@@ -3771,6 +3812,7 @@
|
|
|
3771
3812
|
},
|
|
3772
3813
|
"put" : {
|
|
3773
3814
|
"description" : "Updates a manifest by ID",
|
|
3815
|
+
"operationId" : "updateManifestById",
|
|
3774
3816
|
"parameters" : [ {
|
|
3775
3817
|
"description" : "ID of the manifest",
|
|
3776
3818
|
"in" : "path",
|
|
@@ -3824,6 +3866,7 @@
|
|
|
3824
3866
|
"/agents/{agentId}/knowledge/resets" : {
|
|
3825
3867
|
"post" : {
|
|
3826
3868
|
"description" : "Deletes all knowledge embeddings and files associated with an agent",
|
|
3869
|
+
"operationId" : "resetAgentKnowledge",
|
|
3827
3870
|
"parameters" : [ {
|
|
3828
3871
|
"description" : "ID of the agent",
|
|
3829
3872
|
"in" : "path",
|
|
@@ -3857,6 +3900,7 @@
|
|
|
3857
3900
|
"/agents/{agentId}/knowledge/project-imports" : {
|
|
3858
3901
|
"post" : {
|
|
3859
3902
|
"description" : "Imports project data from a local JSON file into the agent's knowledge base",
|
|
3903
|
+
"operationId" : "importProjectsToAgentKnowledge",
|
|
3860
3904
|
"parameters" : [ {
|
|
3861
3905
|
"description" : "ID of the agent",
|
|
3862
3906
|
"in" : "path",
|
|
@@ -3890,6 +3934,7 @@
|
|
|
3890
3934
|
"/agents/{agentId}/knowledge/documents" : {
|
|
3891
3935
|
"post" : {
|
|
3892
3936
|
"description" : "Adds a text document to the agent's knowledge base, splitting it into chunks if necessary",
|
|
3937
|
+
"operationId" : "addDocumentToKnowledgeBase",
|
|
3893
3938
|
"parameters" : [ {
|
|
3894
3939
|
"description" : "ID of the agent",
|
|
3895
3940
|
"in" : "path",
|
|
@@ -3943,6 +3988,7 @@
|
|
|
3943
3988
|
"/agents/{agentId}/knowledge/file-imports" : {
|
|
3944
3989
|
"post" : {
|
|
3945
3990
|
"description" : "Processes documents like PDFs, CSVs, and text files, and adds them to the brain's knowledge base",
|
|
3991
|
+
"operationId" : "importFileToAgentKnowledge",
|
|
3946
3992
|
"parameters" : [ {
|
|
3947
3993
|
"description" : "ID of the agent",
|
|
3948
3994
|
"in" : "path",
|
|
@@ -3956,7 +4002,7 @@
|
|
|
3956
4002
|
"content" : {
|
|
3957
4003
|
"multipart/form-data" : {
|
|
3958
4004
|
"schema" : {
|
|
3959
|
-
"$ref" : "#/components/schemas/
|
|
4005
|
+
"$ref" : "#/components/schemas/importFileToAgentKnowledge_request"
|
|
3960
4006
|
}
|
|
3961
4007
|
}
|
|
3962
4008
|
},
|
|
@@ -3967,7 +4013,7 @@
|
|
|
3967
4013
|
"content" : {
|
|
3968
4014
|
"application/json" : {
|
|
3969
4015
|
"schema" : {
|
|
3970
|
-
"$ref" : "#/components/schemas/
|
|
4016
|
+
"$ref" : "#/components/schemas/importFileToAgentKnowledge_200_response"
|
|
3971
4017
|
}
|
|
3972
4018
|
}
|
|
3973
4019
|
},
|
|
@@ -3996,6 +4042,7 @@
|
|
|
3996
4042
|
"/agents/{agentId}/knowledge/files" : {
|
|
3997
4043
|
"post" : {
|
|
3998
4044
|
"description" : "Registers a file for upload to the brain's knowledge base and returns an upload URL",
|
|
4045
|
+
"operationId" : "prepareFileUpload",
|
|
3999
4046
|
"parameters" : [ {
|
|
4000
4047
|
"description" : "ID of the agent",
|
|
4001
4048
|
"in" : "path",
|
|
@@ -4049,6 +4096,7 @@
|
|
|
4049
4096
|
"/agents/{agentId}/knowledge/files/{fileId}/status" : {
|
|
4050
4097
|
"post" : {
|
|
4051
4098
|
"description" : "Updates the status of a knowledge file and triggers the indexing process if the file is uploaded",
|
|
4099
|
+
"operationId" : "updateFileStatus",
|
|
4052
4100
|
"parameters" : [ {
|
|
4053
4101
|
"description" : "ID of the agent",
|
|
4054
4102
|
"in" : "path",
|
|
@@ -4110,6 +4158,7 @@
|
|
|
4110
4158
|
"/agents/{agentId}/knowledge/files/{fileId}" : {
|
|
4111
4159
|
"delete" : {
|
|
4112
4160
|
"description" : "Removes a file and its associated chunks from the agent's knowledge base",
|
|
4161
|
+
"operationId" : "deleteFileFromAgentKnowledge",
|
|
4113
4162
|
"parameters" : [ {
|
|
4114
4163
|
"description" : "ID of the agent",
|
|
4115
4164
|
"in" : "path",
|
|
@@ -4149,6 +4198,7 @@
|
|
|
4149
4198
|
},
|
|
4150
4199
|
"get" : {
|
|
4151
4200
|
"description" : "Retrieves metadata for a file that has been imported into the agent's knowledge base",
|
|
4201
|
+
"operationId" : "getFileFromAgentKnowledge",
|
|
4152
4202
|
"parameters" : [ {
|
|
4153
4203
|
"description" : "ID of the agent",
|
|
4154
4204
|
"in" : "path",
|
|
@@ -4310,6 +4360,7 @@
|
|
|
4310
4360
|
"/tools/text-to-speech" : {
|
|
4311
4361
|
"post" : {
|
|
4312
4362
|
"description" : "Converts text to speech using the specified provider",
|
|
4363
|
+
"operationId" : "convertTextToSpeech",
|
|
4313
4364
|
"parameters" : [ {
|
|
4314
4365
|
"description" : "If true, returns a mock transcription without processing the file",
|
|
4315
4366
|
"in" : "query",
|
|
@@ -4356,6 +4407,7 @@
|
|
|
4356
4407
|
"/tools/speech-to-text" : {
|
|
4357
4408
|
"post" : {
|
|
4358
4409
|
"description" : "Transcribes audio files to text using OpenAI's Whisper model",
|
|
4410
|
+
"operationId" : "convertSpeechToText",
|
|
4359
4411
|
"parameters" : [ {
|
|
4360
4412
|
"description" : "Language code for transcription (optional)",
|
|
4361
4413
|
"in" : "query",
|
|
@@ -4434,6 +4486,7 @@
|
|
|
4434
4486
|
"/remote/pin-requests" : {
|
|
4435
4487
|
"post" : {
|
|
4436
4488
|
"description" : "Creates a PIN request for remote access",
|
|
4489
|
+
"operationId" : "createPinRequest",
|
|
4437
4490
|
"requestBody" : {
|
|
4438
4491
|
"content" : {
|
|
4439
4492
|
"application/json" : {
|
|
@@ -4472,6 +4525,7 @@
|
|
|
4472
4525
|
"/agents/{agentId}/prompts/flows" : {
|
|
4473
4526
|
"post" : {
|
|
4474
4527
|
"description" : "Starts a new conversation session for the specified agent with flow management",
|
|
4528
|
+
"operationId" : "createConversationWithFlowManagement",
|
|
4475
4529
|
"parameters" : [ {
|
|
4476
4530
|
"description" : "ID of the agent",
|
|
4477
4531
|
"in" : "path",
|
|
@@ -4525,6 +4579,7 @@
|
|
|
4525
4579
|
"/agents/{agentId}/prompts" : {
|
|
4526
4580
|
"post" : {
|
|
4527
4581
|
"description" : "Starts a new conversation session for the specified agent",
|
|
4582
|
+
"operationId" : "createPrompt",
|
|
4528
4583
|
"parameters" : [ {
|
|
4529
4584
|
"description" : "ID of the agent",
|
|
4530
4585
|
"in" : "path",
|
|
@@ -4553,7 +4608,7 @@
|
|
|
4553
4608
|
}
|
|
4554
4609
|
}
|
|
4555
4610
|
},
|
|
4556
|
-
"description" : "
|
|
4611
|
+
"description" : "Prompt created successfully"
|
|
4557
4612
|
},
|
|
4558
4613
|
"400" : {
|
|
4559
4614
|
"description" : "Invalid request"
|
|
@@ -4571,13 +4626,14 @@
|
|
|
4571
4626
|
"description" : "Server error"
|
|
4572
4627
|
}
|
|
4573
4628
|
},
|
|
4574
|
-
"summary" : "Create a new
|
|
4629
|
+
"summary" : "Create a new prompt",
|
|
4575
4630
|
"tags" : [ "prompts" ]
|
|
4576
4631
|
}
|
|
4577
4632
|
},
|
|
4578
4633
|
"/conversations" : {
|
|
4579
4634
|
"post" : {
|
|
4580
4635
|
"description" : "Create a new empty conversation for the specified agent.",
|
|
4636
|
+
"operationId" : "createConversation",
|
|
4581
4637
|
"parameters" : [ {
|
|
4582
4638
|
"description" : "ID of the agent",
|
|
4583
4639
|
"in" : "path",
|
|
@@ -4631,6 +4687,7 @@
|
|
|
4631
4687
|
"/conversations/{conversationId}" : {
|
|
4632
4688
|
"get" : {
|
|
4633
4689
|
"description" : "Retrieves details of a specific conversation including all messages",
|
|
4690
|
+
"operationId" : "getConversationById",
|
|
4634
4691
|
"parameters" : [ {
|
|
4635
4692
|
"description" : "The ID of the conversation",
|
|
4636
4693
|
"in" : "path",
|
|
@@ -4668,6 +4725,7 @@
|
|
|
4668
4725
|
"/conversations/{conversationId}/prompts" : {
|
|
4669
4726
|
"post" : {
|
|
4670
4727
|
"description" : "Adds a new message to an existing conversation and gets the AI response",
|
|
4728
|
+
"operationId" : "sendMessageToConversation",
|
|
4671
4729
|
"parameters" : [ {
|
|
4672
4730
|
"description" : "The ID of the conversation",
|
|
4673
4731
|
"in" : "path",
|
|
@@ -4721,6 +4779,7 @@
|
|
|
4721
4779
|
"/conversations/{conversationId}/messages/{messageId}" : {
|
|
4722
4780
|
"get" : {
|
|
4723
4781
|
"description" : "Retrieves a specific message by ID from a conversation",
|
|
4782
|
+
"operationId" : "getMessageById",
|
|
4724
4783
|
"parameters" : [ {
|
|
4725
4784
|
"description" : "The ID of the conversation",
|
|
4726
4785
|
"in" : "path",
|
|
@@ -4803,6 +4862,14 @@
|
|
|
4803
4862
|
"type" : "string"
|
|
4804
4863
|
}
|
|
4805
4864
|
},
|
|
4865
|
+
"page" : {
|
|
4866
|
+
"description" : "Page number",
|
|
4867
|
+
"in" : "query",
|
|
4868
|
+
"name" : "page",
|
|
4869
|
+
"schema" : {
|
|
4870
|
+
"type" : "integer"
|
|
4871
|
+
}
|
|
4872
|
+
},
|
|
4806
4873
|
"instanceId" : {
|
|
4807
4874
|
"description" : "Instance id",
|
|
4808
4875
|
"in" : "query",
|
|
@@ -4919,10 +4986,11 @@
|
|
|
4919
4986
|
"type" : "string"
|
|
4920
4987
|
}
|
|
4921
4988
|
},
|
|
4922
|
-
"
|
|
4923
|
-
"description" : "
|
|
4924
|
-
"in" : "
|
|
4989
|
+
"organizationIdPath" : {
|
|
4990
|
+
"description" : "ID of the organization",
|
|
4991
|
+
"in" : "path",
|
|
4925
4992
|
"name" : "organizationId",
|
|
4993
|
+
"required" : true,
|
|
4926
4994
|
"schema" : {
|
|
4927
4995
|
"type" : "string"
|
|
4928
4996
|
}
|
|
@@ -4936,9 +5004,9 @@
|
|
|
4936
5004
|
"type" : "string"
|
|
4937
5005
|
}
|
|
4938
5006
|
},
|
|
4939
|
-
"
|
|
4940
|
-
"description" : "ID
|
|
4941
|
-
"in" : "
|
|
5007
|
+
"organizationId" : {
|
|
5008
|
+
"description" : "Organization ID",
|
|
5009
|
+
"in" : "query",
|
|
4942
5010
|
"name" : "organizationId",
|
|
4943
5011
|
"required" : true,
|
|
4944
5012
|
"schema" : {
|
|
@@ -5285,7 +5353,7 @@
|
|
|
5285
5353
|
"type" : "boolean"
|
|
5286
5354
|
}
|
|
5287
5355
|
},
|
|
5288
|
-
"required" : [ "
|
|
5356
|
+
"required" : [ "name", "organisationId", "persona", "promptInit" ],
|
|
5289
5357
|
"type" : "object"
|
|
5290
5358
|
},
|
|
5291
5359
|
"AgentPatch" : {
|
|
@@ -5297,7 +5365,7 @@
|
|
|
5297
5365
|
"type" : "string"
|
|
5298
5366
|
},
|
|
5299
5367
|
"engine" : {
|
|
5300
|
-
"$ref" : "#/components/schemas/
|
|
5368
|
+
"$ref" : "#/components/schemas/AgentPatch_engine"
|
|
5301
5369
|
},
|
|
5302
5370
|
"modules" : {
|
|
5303
5371
|
"additionalProperties" : true,
|
|
@@ -5311,6 +5379,7 @@
|
|
|
5311
5379
|
},
|
|
5312
5380
|
"flow" : {
|
|
5313
5381
|
"format" : "uuid",
|
|
5382
|
+
"nullable" : true,
|
|
5314
5383
|
"type" : "string"
|
|
5315
5384
|
},
|
|
5316
5385
|
"subscription" : {
|
|
@@ -5756,6 +5825,15 @@
|
|
|
5756
5825
|
"required" : [ "organisationId" ],
|
|
5757
5826
|
"type" : "object"
|
|
5758
5827
|
},
|
|
5828
|
+
"BodyWithId" : {
|
|
5829
|
+
"properties" : {
|
|
5830
|
+
"id" : {
|
|
5831
|
+
"type" : "string"
|
|
5832
|
+
}
|
|
5833
|
+
},
|
|
5834
|
+
"required" : [ "id" ],
|
|
5835
|
+
"type" : "object"
|
|
5836
|
+
},
|
|
5759
5837
|
"S3UploadBody" : {
|
|
5760
5838
|
"properties" : {
|
|
5761
5839
|
"postURL" : {
|
|
@@ -5797,7 +5875,7 @@
|
|
|
5797
5875
|
},
|
|
5798
5876
|
"messages" : {
|
|
5799
5877
|
"items" : {
|
|
5800
|
-
"$ref" : "#/components/schemas/
|
|
5878
|
+
"$ref" : "#/components/schemas/ChatMessageWithFlowNode"
|
|
5801
5879
|
},
|
|
5802
5880
|
"type" : "array"
|
|
5803
5881
|
},
|
|
@@ -5814,6 +5892,19 @@
|
|
|
5814
5892
|
"required" : [ "agentId", "context", "createdAt", "id", "lang", "messages", "updatedAt" ],
|
|
5815
5893
|
"type" : "object"
|
|
5816
5894
|
},
|
|
5895
|
+
"ChatMessageWithFlowNode" : {
|
|
5896
|
+
"allOf" : [ {
|
|
5897
|
+
"$ref" : "#/components/schemas/ChatMessage"
|
|
5898
|
+
}, {
|
|
5899
|
+
"properties" : {
|
|
5900
|
+
"flowNode" : {
|
|
5901
|
+
"$ref" : "#/components/schemas/AgentFlow"
|
|
5902
|
+
}
|
|
5903
|
+
},
|
|
5904
|
+
"required" : [ "flowNode" ],
|
|
5905
|
+
"type" : "object"
|
|
5906
|
+
} ]
|
|
5907
|
+
},
|
|
5817
5908
|
"ChatMessage" : {
|
|
5818
5909
|
"properties" : {
|
|
5819
5910
|
"id" : {
|
|
@@ -5845,7 +5936,6 @@
|
|
|
5845
5936
|
"type" : "array"
|
|
5846
5937
|
},
|
|
5847
5938
|
"flowNode" : {
|
|
5848
|
-
"format" : "uuid",
|
|
5849
5939
|
"type" : "string"
|
|
5850
5940
|
},
|
|
5851
5941
|
"flowNodeRequirementsChecked" : {
|
|
@@ -5874,6 +5964,12 @@
|
|
|
5874
5964
|
"$ref" : "#/components/schemas/FileAttachment"
|
|
5875
5965
|
},
|
|
5876
5966
|
"type" : "array"
|
|
5967
|
+
},
|
|
5968
|
+
"audio" : {
|
|
5969
|
+
"items" : {
|
|
5970
|
+
"$ref" : "#/components/schemas/ChatMessage_audio_inner"
|
|
5971
|
+
},
|
|
5972
|
+
"type" : "array"
|
|
5877
5973
|
}
|
|
5878
5974
|
},
|
|
5879
5975
|
"required" : [ "content", "id", "role", "timestamp" ],
|
|
@@ -6363,15 +6459,6 @@
|
|
|
6363
6459
|
},
|
|
6364
6460
|
"type" : "object"
|
|
6365
6461
|
},
|
|
6366
|
-
"BodyWithId" : {
|
|
6367
|
-
"properties" : {
|
|
6368
|
-
"id" : {
|
|
6369
|
-
"type" : "string"
|
|
6370
|
-
}
|
|
6371
|
-
},
|
|
6372
|
-
"required" : [ "id" ],
|
|
6373
|
-
"type" : "object"
|
|
6374
|
-
},
|
|
6375
6462
|
"AppTextToSpeechRequest" : {
|
|
6376
6463
|
"properties" : {
|
|
6377
6464
|
"text" : {
|
|
@@ -6748,17 +6835,14 @@
|
|
|
6748
6835
|
"organizationId" : {
|
|
6749
6836
|
"type" : "string"
|
|
6750
6837
|
},
|
|
6751
|
-
"
|
|
6752
|
-
"type" : "string"
|
|
6753
|
-
},
|
|
6754
|
-
"provider" : {
|
|
6838
|
+
"providerId" : {
|
|
6755
6839
|
"type" : "string"
|
|
6756
6840
|
},
|
|
6757
6841
|
"model" : {
|
|
6758
6842
|
"type" : "string"
|
|
6759
6843
|
}
|
|
6760
6844
|
},
|
|
6761
|
-
"required" : [ "model", "organizationId", "
|
|
6845
|
+
"required" : [ "model", "organizationId", "providerId" ],
|
|
6762
6846
|
"type" : "object"
|
|
6763
6847
|
},
|
|
6764
6848
|
"Provider" : {
|
|
@@ -6784,7 +6868,7 @@
|
|
|
6784
6868
|
"type" : "string"
|
|
6785
6869
|
},
|
|
6786
6870
|
"providerType" : {
|
|
6787
|
-
"
|
|
6871
|
+
"$ref" : "#/components/schemas/ProviderType"
|
|
6788
6872
|
},
|
|
6789
6873
|
"models" : {
|
|
6790
6874
|
"items" : {
|
|
@@ -6797,12 +6881,9 @@
|
|
|
6797
6881
|
},
|
|
6798
6882
|
"endpoint" : {
|
|
6799
6883
|
"type" : "string"
|
|
6800
|
-
},
|
|
6801
|
-
"organizationId" : {
|
|
6802
|
-
"type" : "string"
|
|
6803
6884
|
}
|
|
6804
6885
|
},
|
|
6805
|
-
"required" : [ "
|
|
6886
|
+
"required" : [ "models", "name", "providerType" ],
|
|
6806
6887
|
"type" : "object"
|
|
6807
6888
|
},
|
|
6808
6889
|
"ProviderSimple" : {
|
|
@@ -6967,6 +7048,9 @@
|
|
|
6967
7048
|
"name" : {
|
|
6968
7049
|
"type" : "string"
|
|
6969
7050
|
},
|
|
7051
|
+
"type" : {
|
|
7052
|
+
"$ref" : "#/components/schemas/GuardianType"
|
|
7053
|
+
},
|
|
6970
7054
|
"description" : {
|
|
6971
7055
|
"type" : "string"
|
|
6972
7056
|
},
|
|
@@ -7016,7 +7100,7 @@
|
|
|
7016
7100
|
"type" : "array"
|
|
7017
7101
|
}
|
|
7018
7102
|
},
|
|
7019
|
-
"required" : [ "createdAt", "engine", "id", "role" ],
|
|
7103
|
+
"required" : [ "createdAt", "engine", "id", "role", "type" ],
|
|
7020
7104
|
"type" : "object"
|
|
7021
7105
|
},
|
|
7022
7106
|
"GuardianCreateRequest" : {
|
|
@@ -7036,6 +7120,9 @@
|
|
|
7036
7120
|
},
|
|
7037
7121
|
"type" : "object"
|
|
7038
7122
|
},
|
|
7123
|
+
"type" : {
|
|
7124
|
+
"$ref" : "#/components/schemas/GuardianType"
|
|
7125
|
+
},
|
|
7039
7126
|
"forbiddenMessages" : {
|
|
7040
7127
|
"items" : {
|
|
7041
7128
|
"type" : "string"
|
|
@@ -7046,7 +7133,7 @@
|
|
|
7046
7133
|
"$ref" : "#/components/schemas/GuardianEngine"
|
|
7047
7134
|
}
|
|
7048
7135
|
},
|
|
7049
|
-
"required" : [ "engine", "role" ],
|
|
7136
|
+
"required" : [ "engine", "role", "type" ],
|
|
7050
7137
|
"type" : "object"
|
|
7051
7138
|
},
|
|
7052
7139
|
"GuardianPutRequest" : {
|
|
@@ -7057,6 +7144,9 @@
|
|
|
7057
7144
|
"name" : {
|
|
7058
7145
|
"type" : "string"
|
|
7059
7146
|
},
|
|
7147
|
+
"type" : {
|
|
7148
|
+
"$ref" : "#/components/schemas/GuardianType"
|
|
7149
|
+
},
|
|
7060
7150
|
"description" : {
|
|
7061
7151
|
"type" : "string"
|
|
7062
7152
|
},
|
|
@@ -7081,18 +7171,6 @@
|
|
|
7081
7171
|
},
|
|
7082
7172
|
"type" : "object"
|
|
7083
7173
|
},
|
|
7084
|
-
"GuardianExcludedAgentsRequest" : {
|
|
7085
|
-
"properties" : {
|
|
7086
|
-
"excludedAgents" : {
|
|
7087
|
-
"items" : {
|
|
7088
|
-
"type" : "string"
|
|
7089
|
-
},
|
|
7090
|
-
"type" : "array"
|
|
7091
|
-
}
|
|
7092
|
-
},
|
|
7093
|
-
"required" : [ "excludedAgents" ],
|
|
7094
|
-
"type" : "object"
|
|
7095
|
-
},
|
|
7096
7174
|
"Organization" : {
|
|
7097
7175
|
"properties" : {
|
|
7098
7176
|
"id" : {
|
|
@@ -7351,15 +7429,14 @@
|
|
|
7351
7429
|
},
|
|
7352
7430
|
"Engine" : {
|
|
7353
7431
|
"properties" : {
|
|
7354
|
-
"
|
|
7355
|
-
"
|
|
7432
|
+
"providerId" : {
|
|
7433
|
+
"type" : "string"
|
|
7356
7434
|
},
|
|
7357
|
-
"
|
|
7358
|
-
"
|
|
7359
|
-
"type" : "object"
|
|
7435
|
+
"model" : {
|
|
7436
|
+
"type" : "string"
|
|
7360
7437
|
}
|
|
7361
7438
|
},
|
|
7362
|
-
"required" : [ "
|
|
7439
|
+
"required" : [ "model", "providerId" ],
|
|
7363
7440
|
"type" : "object"
|
|
7364
7441
|
},
|
|
7365
7442
|
"AgentType" : {
|
|
@@ -7430,21 +7507,26 @@
|
|
|
7430
7507
|
"enum" : [ "reference" ],
|
|
7431
7508
|
"type" : "string"
|
|
7432
7509
|
},
|
|
7510
|
+
"ProviderType" : {
|
|
7511
|
+
"enum" : [ "llamacpp", "openai", "mistral", "other" ],
|
|
7512
|
+
"type" : "string"
|
|
7513
|
+
},
|
|
7514
|
+
"GuardianType" : {
|
|
7515
|
+
"enum" : [ "node", "openai", "llmguards" ],
|
|
7516
|
+
"type" : "string"
|
|
7517
|
+
},
|
|
7433
7518
|
"GuardianRole" : {
|
|
7434
7519
|
"enum" : [ "PROMPTCHECK", "WORDCHECK", "INTENTIONCHECK", "ATTACKCHECK", "ANONIMIZE" ],
|
|
7435
7520
|
"type" : "string"
|
|
7436
7521
|
},
|
|
7437
7522
|
"GuardianEngine" : {
|
|
7438
7523
|
"properties" : {
|
|
7439
|
-
"type" : {
|
|
7440
|
-
"$ref" : "#/components/schemas/GuardianEngineType"
|
|
7441
|
-
},
|
|
7442
7524
|
"configuration" : {
|
|
7443
7525
|
"additionalProperties" : true,
|
|
7444
7526
|
"type" : "object"
|
|
7445
7527
|
}
|
|
7446
7528
|
},
|
|
7447
|
-
"required" : [ "configuration"
|
|
7529
|
+
"required" : [ "configuration" ],
|
|
7448
7530
|
"type" : "object"
|
|
7449
7531
|
},
|
|
7450
7532
|
"GuardianPosition" : {
|
|
@@ -7455,24 +7537,7 @@
|
|
|
7455
7537
|
"enum" : [ "ELEVENLABS" ],
|
|
7456
7538
|
"type" : "string"
|
|
7457
7539
|
},
|
|
7458
|
-
"
|
|
7459
|
-
"enum" : [ "llamacpp", "openai" ],
|
|
7460
|
-
"type" : "string"
|
|
7461
|
-
},
|
|
7462
|
-
"GuardianEngineType" : {
|
|
7463
|
-
"enum" : [ "node", "openai", "llmguards" ],
|
|
7464
|
-
"type" : "string"
|
|
7465
|
-
},
|
|
7466
|
-
"duplicateAgent_201_response" : {
|
|
7467
|
-
"properties" : {
|
|
7468
|
-
"id" : {
|
|
7469
|
-
"type" : "string"
|
|
7470
|
-
}
|
|
7471
|
-
},
|
|
7472
|
-
"required" : [ "id" ],
|
|
7473
|
-
"type" : "object"
|
|
7474
|
-
},
|
|
7475
|
-
"_agents__agentId__knowledge_file_imports_post_request" : {
|
|
7540
|
+
"importFileToAgentKnowledge_request" : {
|
|
7476
7541
|
"properties" : {
|
|
7477
7542
|
"file" : {
|
|
7478
7543
|
"description" : "The file to import (PDF, CSV, TXT supported)",
|
|
@@ -7483,7 +7548,7 @@
|
|
|
7483
7548
|
"required" : [ "file" ],
|
|
7484
7549
|
"type" : "object"
|
|
7485
7550
|
},
|
|
7486
|
-
"
|
|
7551
|
+
"importFileToAgentKnowledge_200_response" : {
|
|
7487
7552
|
"properties" : {
|
|
7488
7553
|
"id" : {
|
|
7489
7554
|
"type" : "string"
|
|
@@ -7552,6 +7617,31 @@
|
|
|
7552
7617
|
"required" : [ "contentType", "ext", "hash", "size" ],
|
|
7553
7618
|
"type" : "object"
|
|
7554
7619
|
},
|
|
7620
|
+
"AgentPatch_engine" : {
|
|
7621
|
+
"nullable" : true,
|
|
7622
|
+
"properties" : {
|
|
7623
|
+
"providerId" : {
|
|
7624
|
+
"type" : "string"
|
|
7625
|
+
},
|
|
7626
|
+
"model" : {
|
|
7627
|
+
"type" : "string"
|
|
7628
|
+
}
|
|
7629
|
+
},
|
|
7630
|
+
"required" : [ "model", "providerId" ],
|
|
7631
|
+
"type" : "object"
|
|
7632
|
+
},
|
|
7633
|
+
"ChatMessage_audio_inner" : {
|
|
7634
|
+
"properties" : {
|
|
7635
|
+
"sequence" : {
|
|
7636
|
+
"type" : "number"
|
|
7637
|
+
},
|
|
7638
|
+
"audioFileId" : {
|
|
7639
|
+
"type" : "string"
|
|
7640
|
+
}
|
|
7641
|
+
},
|
|
7642
|
+
"required" : [ "audioFileId", "sequence" ],
|
|
7643
|
+
"type" : "object"
|
|
7644
|
+
},
|
|
7555
7645
|
"ToolResults_tool" : {
|
|
7556
7646
|
"properties" : {
|
|
7557
7647
|
"tool" : {
|