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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rapida-partner",
3
- "version": "4.1.0",
3
+ "version": "5.0.0",
4
4
  "main": "dist/index.js",
5
5
  "module": "index.ts",
6
6
  "files": [
@@ -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 target backend also needs a dedicated user account for the bot to
103
- // authenticate against (see botCredentials below) — this is separate from
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 dedicated bot user on the target backend (written to
109
- // BOT_API_EMAIL/BOT_API_PASSWORD in the generated agent .env). The account
110
- // itself still has to be provisioned on the target backend. Import the
111
- // values from constants/secrets — never write them literally in a project.
112
- botCredentials?: {
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": {