rapida-partner 4.1.0 → 5.0.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.
package/package.json
CHANGED
|
@@ -99,17 +99,17 @@ export interface IAiAgentConfig {
|
|
|
99
99
|
// usually whatsappModule from rapida-projects. Code generation fails
|
|
100
100
|
// without it.
|
|
101
101
|
//
|
|
102
|
-
// The
|
|
103
|
-
//
|
|
104
|
-
// flows.invitation.mainUserEmail and must be provisioned manually on the
|
|
105
|
-
// target backend.
|
|
102
|
+
// The agent authenticates on the backend with a dedicated service user
|
|
103
|
+
// (botCredentials below), separate from flows.invitation.mainUserEmail.
|
|
106
104
|
exposedContracts: IAgentContractBinding[];
|
|
107
105
|
|
|
108
|
-
// Credentials of the
|
|
109
|
-
//
|
|
110
|
-
//
|
|
111
|
-
//
|
|
112
|
-
|
|
106
|
+
// Credentials of the agent's service user (BOT_API_EMAIL/BOT_API_PASSWORD
|
|
107
|
+
// in the generated agent and backend .env). The generated Nest backend
|
|
108
|
+
// creates this user on startup — idempotently, aligning the password with
|
|
109
|
+
// the .env — inside the workspace of flows.invitation.mainUserEmail, with
|
|
110
|
+
// an "aiAgent" role limited to the entities the agent's tools use. Import
|
|
111
|
+
// the values from constants/secrets — never write them literally.
|
|
112
|
+
botCredentials: {
|
|
113
113
|
email: string;
|
|
114
114
|
password: string;
|
|
115
115
|
};
|
|
@@ -157,17 +157,19 @@
|
|
|
157
157
|
"description": "Credentials of the dedicated bot user on the target backend (BOT_API_EMAIL/BOT_API_PASSWORD in the generated agent .env).",
|
|
158
158
|
"properties": {
|
|
159
159
|
"email": {
|
|
160
|
-
"type": "string"
|
|
160
|
+
"type": "string",
|
|
161
|
+
"minLength": 3
|
|
161
162
|
},
|
|
162
163
|
"password": {
|
|
163
|
-
"type": "string"
|
|
164
|
+
"type": "string",
|
|
165
|
+
"minLength": 8
|
|
164
166
|
}
|
|
165
167
|
},
|
|
166
168
|
"required": ["email", "password"],
|
|
167
169
|
"additionalProperties": false
|
|
168
170
|
}
|
|
169
171
|
},
|
|
170
|
-
"required": ["exposedContracts"],
|
|
172
|
+
"required": ["exposedContracts", "botCredentials"],
|
|
171
173
|
"additionalProperties": false
|
|
172
174
|
},
|
|
173
175
|
"capabilities": {
|