@pushwoosh/rpc-gateway-ai-assistant 0.1.643 → 0.1.645
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/data.js +213 -0
- package/package.json +1 -1
- package/pushwoosh_uds_onyx_v1.d.ts +104 -1
package/data.js
CHANGED
|
@@ -5522,6 +5522,30 @@ export const data = {
|
|
|
5522
5522
|
"response": "pushwoosh.uds.onyx.v1.GetAgentAccessResponse",
|
|
5523
5523
|
"method": "get",
|
|
5524
5524
|
"path": "/api/v1/applications/{application}/board/access"
|
|
5525
|
+
},
|
|
5526
|
+
"GetAgentSetup": {
|
|
5527
|
+
"request": "pushwoosh.uds.onyx.v1.GetAgentSetupRequest",
|
|
5528
|
+
"response": "pushwoosh.uds.onyx.v1.GetAgentSetupResponse",
|
|
5529
|
+
"method": "get",
|
|
5530
|
+
"path": "/api/v1/applications/{application}/agent/setup"
|
|
5531
|
+
},
|
|
5532
|
+
"ActivateAgent": {
|
|
5533
|
+
"request": "pushwoosh.uds.onyx.v1.ActivateAgentRequest",
|
|
5534
|
+
"response": "pushwoosh.uds.onyx.v1.ActivateAgentResponse",
|
|
5535
|
+
"method": "post",
|
|
5536
|
+
"path": "/api/v1/applications/{application}/agent/activate"
|
|
5537
|
+
},
|
|
5538
|
+
"SetAgentMode": {
|
|
5539
|
+
"request": "pushwoosh.uds.onyx.v1.SetAgentModeRequest",
|
|
5540
|
+
"response": "pushwoosh.uds.onyx.v1.SetAgentModeResponse",
|
|
5541
|
+
"method": "post",
|
|
5542
|
+
"path": "/api/v1/applications/{application}/agent/mode"
|
|
5543
|
+
},
|
|
5544
|
+
"ResetAgent": {
|
|
5545
|
+
"request": "pushwoosh.uds.onyx.v1.ResetAgentRequest",
|
|
5546
|
+
"response": "pushwoosh.uds.onyx.v1.ResetAgentResponse",
|
|
5547
|
+
"method": "post",
|
|
5548
|
+
"path": "/api/v1/applications/{application}/agent/reset"
|
|
5525
5549
|
}
|
|
5526
5550
|
}
|
|
5527
5551
|
},
|
|
@@ -6121,6 +6145,9 @@ export const data = {
|
|
|
6121
6145
|
"focuses": {
|
|
6122
6146
|
"type": "pushwoosh.uds.onyx.v1.AgentFocus",
|
|
6123
6147
|
"array": true
|
|
6148
|
+
},
|
|
6149
|
+
"autonomy": {
|
|
6150
|
+
"type": "string"
|
|
6124
6151
|
}
|
|
6125
6152
|
}
|
|
6126
6153
|
},
|
|
@@ -6141,6 +6168,192 @@ export const data = {
|
|
|
6141
6168
|
}
|
|
6142
6169
|
}
|
|
6143
6170
|
},
|
|
6171
|
+
"pushwoosh.uds.onyx.v1.AgentSkillSet": {
|
|
6172
|
+
"type": "I",
|
|
6173
|
+
"fields": {
|
|
6174
|
+
"on": {
|
|
6175
|
+
"type": "string",
|
|
6176
|
+
"array": true
|
|
6177
|
+
},
|
|
6178
|
+
"off": {
|
|
6179
|
+
"type": "string",
|
|
6180
|
+
"array": true
|
|
6181
|
+
}
|
|
6182
|
+
}
|
|
6183
|
+
},
|
|
6184
|
+
"pushwoosh.uds.onyx.v1.AgentSetupProfile": {
|
|
6185
|
+
"type": "I",
|
|
6186
|
+
"fields": {
|
|
6187
|
+
"enabled": {
|
|
6188
|
+
"type": "boolean"
|
|
6189
|
+
},
|
|
6190
|
+
"vertical": {
|
|
6191
|
+
"type": "string"
|
|
6192
|
+
},
|
|
6193
|
+
"autonomy": {
|
|
6194
|
+
"type": "string"
|
|
6195
|
+
},
|
|
6196
|
+
"skills": {
|
|
6197
|
+
"type": "pushwoosh.uds.onyx.v1.AgentSkillSet"
|
|
6198
|
+
}
|
|
6199
|
+
}
|
|
6200
|
+
},
|
|
6201
|
+
"pushwoosh.uds.onyx.v1.AgentJob": {
|
|
6202
|
+
"type": "I",
|
|
6203
|
+
"fields": {
|
|
6204
|
+
"slug": {
|
|
6205
|
+
"type": "string"
|
|
6206
|
+
},
|
|
6207
|
+
"name": {
|
|
6208
|
+
"type": "string"
|
|
6209
|
+
},
|
|
6210
|
+
"description": {
|
|
6211
|
+
"type": "string"
|
|
6212
|
+
}
|
|
6213
|
+
}
|
|
6214
|
+
},
|
|
6215
|
+
"pushwoosh.uds.onyx.v1.AgentVertical": {
|
|
6216
|
+
"type": "I",
|
|
6217
|
+
"fields": {
|
|
6218
|
+
"vertical": {
|
|
6219
|
+
"type": "string"
|
|
6220
|
+
},
|
|
6221
|
+
"name": {
|
|
6222
|
+
"type": "string"
|
|
6223
|
+
},
|
|
6224
|
+
"jobs": {
|
|
6225
|
+
"type": "pushwoosh.uds.onyx.v1.AgentJob",
|
|
6226
|
+
"array": true
|
|
6227
|
+
}
|
|
6228
|
+
}
|
|
6229
|
+
},
|
|
6230
|
+
"pushwoosh.uds.onyx.v1.GetAgentSetupRequest": {
|
|
6231
|
+
"type": "I",
|
|
6232
|
+
"fields": {
|
|
6233
|
+
"application": {
|
|
6234
|
+
"type": "string"
|
|
6235
|
+
}
|
|
6236
|
+
}
|
|
6237
|
+
},
|
|
6238
|
+
"pushwoosh.uds.onyx.v1.GetAgentSetupResponse": {
|
|
6239
|
+
"type": "I",
|
|
6240
|
+
"fields": {
|
|
6241
|
+
"profile": {
|
|
6242
|
+
"type": "pushwoosh.uds.onyx.v1.AgentSetupProfile"
|
|
6243
|
+
},
|
|
6244
|
+
"verticals": {
|
|
6245
|
+
"type": "pushwoosh.uds.onyx.v1.AgentVertical",
|
|
6246
|
+
"array": true
|
|
6247
|
+
}
|
|
6248
|
+
}
|
|
6249
|
+
},
|
|
6250
|
+
"pushwoosh.uds.onyx.v1.ActivateAgentRequest": {
|
|
6251
|
+
"type": "I",
|
|
6252
|
+
"fields": {
|
|
6253
|
+
"application": {
|
|
6254
|
+
"type": "string"
|
|
6255
|
+
},
|
|
6256
|
+
"vertical": {
|
|
6257
|
+
"type": "string"
|
|
6258
|
+
},
|
|
6259
|
+
"autonomy": {
|
|
6260
|
+
"type": "string"
|
|
6261
|
+
},
|
|
6262
|
+
"skills": {
|
|
6263
|
+
"type": "pushwoosh.uds.onyx.v1.AgentSkillSet"
|
|
6264
|
+
}
|
|
6265
|
+
}
|
|
6266
|
+
},
|
|
6267
|
+
"pushwoosh.uds.onyx.v1.ActivateAgentResponse": {
|
|
6268
|
+
"type": "I",
|
|
6269
|
+
"fields": {
|
|
6270
|
+
"profile": {
|
|
6271
|
+
"type": "pushwoosh.uds.onyx.v1.AgentSetupProfile"
|
|
6272
|
+
}
|
|
6273
|
+
}
|
|
6274
|
+
},
|
|
6275
|
+
"pushwoosh.uds.onyx.v1.SetAgentModeRequest": {
|
|
6276
|
+
"type": "I",
|
|
6277
|
+
"fields": {
|
|
6278
|
+
"application": {
|
|
6279
|
+
"type": "string"
|
|
6280
|
+
},
|
|
6281
|
+
"autonomy": {
|
|
6282
|
+
"type": "string"
|
|
6283
|
+
}
|
|
6284
|
+
}
|
|
6285
|
+
},
|
|
6286
|
+
"pushwoosh.uds.onyx.v1.SetAgentModeResponse": {
|
|
6287
|
+
"type": "I",
|
|
6288
|
+
"fields": {
|
|
6289
|
+
"profile": {
|
|
6290
|
+
"type": "pushwoosh.uds.onyx.v1.AgentSetupProfile"
|
|
6291
|
+
}
|
|
6292
|
+
}
|
|
6293
|
+
},
|
|
6294
|
+
"pushwoosh.uds.onyx.v1.ResetAgentRequest": {
|
|
6295
|
+
"type": "I",
|
|
6296
|
+
"fields": {
|
|
6297
|
+
"application": {
|
|
6298
|
+
"type": "string"
|
|
6299
|
+
},
|
|
6300
|
+
"purgeObjects": {
|
|
6301
|
+
"type": "boolean"
|
|
6302
|
+
}
|
|
6303
|
+
}
|
|
6304
|
+
},
|
|
6305
|
+
"pushwoosh.uds.onyx.v1.AgentBuiltObject": {
|
|
6306
|
+
"type": "I",
|
|
6307
|
+
"fields": {
|
|
6308
|
+
"cardId": {
|
|
6309
|
+
"type": "number"
|
|
6310
|
+
},
|
|
6311
|
+
"type": {
|
|
6312
|
+
"type": "string"
|
|
6313
|
+
},
|
|
6314
|
+
"code": {
|
|
6315
|
+
"type": "string"
|
|
6316
|
+
},
|
|
6317
|
+
"url": {
|
|
6318
|
+
"type": "string"
|
|
6319
|
+
},
|
|
6320
|
+
"reason": {
|
|
6321
|
+
"type": "string"
|
|
6322
|
+
}
|
|
6323
|
+
}
|
|
6324
|
+
},
|
|
6325
|
+
"pushwoosh.uds.onyx.v1.ResetAgentResponse": {
|
|
6326
|
+
"type": "I",
|
|
6327
|
+
"fields": {
|
|
6328
|
+
"goalsDeleted": {
|
|
6329
|
+
"type": "number"
|
|
6330
|
+
},
|
|
6331
|
+
"cardsClosed": {
|
|
6332
|
+
"type": "number"
|
|
6333
|
+
},
|
|
6334
|
+
"rulesRemoved": {
|
|
6335
|
+
"type": "number"
|
|
6336
|
+
},
|
|
6337
|
+
"chatsCleared": {
|
|
6338
|
+
"type": "number"
|
|
6339
|
+
},
|
|
6340
|
+
"snapshotDeleted": {
|
|
6341
|
+
"type": "boolean"
|
|
6342
|
+
},
|
|
6343
|
+
"objects": {
|
|
6344
|
+
"type": "pushwoosh.uds.onyx.v1.AgentBuiltObject",
|
|
6345
|
+
"array": true
|
|
6346
|
+
},
|
|
6347
|
+
"purged": {
|
|
6348
|
+
"type": "pushwoosh.uds.onyx.v1.AgentBuiltObject",
|
|
6349
|
+
"array": true
|
|
6350
|
+
},
|
|
6351
|
+
"kept": {
|
|
6352
|
+
"type": "pushwoosh.uds.onyx.v1.AgentBuiltObject",
|
|
6353
|
+
"array": true
|
|
6354
|
+
}
|
|
6355
|
+
}
|
|
6356
|
+
},
|
|
6144
6357
|
"pushwoosh.uds.onyx.v1.SkillCatalogService": {
|
|
6145
6358
|
"type": "S",
|
|
6146
6359
|
"key": "skillCatalog",
|
package/package.json
CHANGED
|
@@ -12,6 +12,10 @@ export type BoardService_OpenCardChat = RpcMethod<OpenCardChatRequest, OpenCardC
|
|
|
12
12
|
export type BoardService_GetCardTimeline = RpcMethod<GetCardTimelineRequest, GetCardTimelineResponse>;
|
|
13
13
|
export type BoardService_ListGoals = RpcMethod<ListGoalsRequest, ListGoalsResponse>;
|
|
14
14
|
export type BoardService_GetAgentAccess = RpcMethod<GetAgentAccessRequest, GetAgentAccessResponse>;
|
|
15
|
+
export type BoardService_GetAgentSetup = RpcMethod<GetAgentSetupRequest, GetAgentSetupResponse>;
|
|
16
|
+
export type BoardService_ActivateAgent = RpcMethod<ActivateAgentRequest, ActivateAgentResponse>;
|
|
17
|
+
export type BoardService_SetAgentMode = RpcMethod<SetAgentModeRequest, SetAgentModeResponse>;
|
|
18
|
+
export type BoardService_ResetAgent = RpcMethod<ResetAgentRequest, ResetAgentResponse>;
|
|
15
19
|
/**
|
|
16
20
|
* BoardService is the marketing agent's board: cards laid out in columns, each rendered by its kind.
|
|
17
21
|
* Public port; the account and application come from the caller's auth.
|
|
@@ -27,6 +31,20 @@ export interface BoardService {
|
|
|
27
31
|
/** The application's last 5 goals, newest first, each with its result: the board's versions. */
|
|
28
32
|
ListGoals: BoardService_ListGoals;
|
|
29
33
|
GetAgentAccess: BoardService_GetAgentAccess;
|
|
34
|
+
/**
|
|
35
|
+
* The four below need the X-Agency-Key header (meta_agent.access_key), else PermissionDenied.
|
|
36
|
+
* The application's passport and the verticals with a published passport and their published jobs.
|
|
37
|
+
*/
|
|
38
|
+
GetAgentSetup: BoardService_GetAgentSetup;
|
|
39
|
+
/** Switches the agent on in a mode: the passport is written whole (template by vertical, every module). */
|
|
40
|
+
ActivateAgent: BoardService_ActivateAgent;
|
|
41
|
+
/** Changes the mode only; proposes_only → readonly with a card accepted or building is FailedPrecondition. */
|
|
42
|
+
SetAgentMode: BoardService_SetAgentMode;
|
|
43
|
+
/**
|
|
44
|
+
* Back to no goal: goals deleted, open cards closed, rules removed, the agent's chats and snapshot gone.
|
|
45
|
+
* The passport, card history and project skills stay; what the platform holds is listed, never touched.
|
|
46
|
+
*/
|
|
47
|
+
ResetAgent: BoardService_ResetAgent;
|
|
30
48
|
}
|
|
31
49
|
export type Card = {
|
|
32
50
|
id: number;
|
|
@@ -298,15 +316,100 @@ export type GetAgentAccessResponse = {
|
|
|
298
316
|
* or the vertical has no passport.
|
|
299
317
|
*/
|
|
300
318
|
focuses: AgentFocus[];
|
|
319
|
+
/** readonly | proposes_only; empty when the agent is off. */
|
|
320
|
+
autonomy: string;
|
|
301
321
|
};
|
|
302
322
|
/** A kind of goal the client may pick, from the vertical passport. */
|
|
303
323
|
export type AgentFocus = {
|
|
304
324
|
id: string;
|
|
305
325
|
name: string;
|
|
306
326
|
description: string;
|
|
307
|
-
/** revenue | returns | first_purchases | purchases | conversions | active_users | subscribers */
|
|
327
|
+
/** revenue | returns | first_purchases | purchases | conversions | active_users | subscribers | levels */
|
|
308
328
|
metric: string;
|
|
309
329
|
};
|
|
330
|
+
export type AgentSkillSet = {
|
|
331
|
+
on: string[];
|
|
332
|
+
off: string[];
|
|
333
|
+
};
|
|
334
|
+
/** The passport as the setup screen edits it. */
|
|
335
|
+
export type AgentSetupProfile = {
|
|
336
|
+
enabled: boolean;
|
|
337
|
+
vertical: string;
|
|
338
|
+
/** readonly | proposes_only */
|
|
339
|
+
autonomy: string;
|
|
340
|
+
skills: AgentSkillSet;
|
|
341
|
+
};
|
|
342
|
+
export type AgentJob = {
|
|
343
|
+
/** The job's slug inside its vertical (win-back), what skills.on/off name as <vertical>/<slug>. */
|
|
344
|
+
slug: string;
|
|
345
|
+
name: string;
|
|
346
|
+
description: string;
|
|
347
|
+
};
|
|
348
|
+
export type AgentVertical = {
|
|
349
|
+
vertical: string;
|
|
350
|
+
name: string;
|
|
351
|
+
jobs: AgentJob[];
|
|
352
|
+
};
|
|
353
|
+
export type GetAgentSetupRequest = {
|
|
354
|
+
application: string;
|
|
355
|
+
};
|
|
356
|
+
export type GetAgentSetupResponse = {
|
|
357
|
+
/** Unset when the application has no passport. */
|
|
358
|
+
profile: AgentSetupProfile;
|
|
359
|
+
/** Only verticals with a published passport. */
|
|
360
|
+
verticals: AgentVertical[];
|
|
361
|
+
};
|
|
362
|
+
export type ActivateAgentRequest = {
|
|
363
|
+
application: string;
|
|
364
|
+
vertical: string;
|
|
365
|
+
/** readonly | proposes_only */
|
|
366
|
+
autonomy: string;
|
|
367
|
+
skills: AgentSkillSet;
|
|
368
|
+
};
|
|
369
|
+
export type ActivateAgentResponse = {
|
|
370
|
+
profile: AgentSetupProfile;
|
|
371
|
+
};
|
|
372
|
+
export type SetAgentModeRequest = {
|
|
373
|
+
application: string;
|
|
374
|
+
/** readonly | proposes_only */
|
|
375
|
+
autonomy: string;
|
|
376
|
+
};
|
|
377
|
+
export type SetAgentModeResponse = {
|
|
378
|
+
profile: AgentSetupProfile;
|
|
379
|
+
};
|
|
380
|
+
export type ResetAgentRequest = {
|
|
381
|
+
application: string;
|
|
382
|
+
/**
|
|
383
|
+
* Delete what the cards built before the board is cleared: journeys paused then deleted, segments, presets,
|
|
384
|
+
* templates and control groups deleted; an object already gone counts as purged.
|
|
385
|
+
*/
|
|
386
|
+
purgeObjects: boolean;
|
|
387
|
+
};
|
|
388
|
+
/** An object a card built in the platform; reset leaves it running, the client removes it by hand. */
|
|
389
|
+
export type AgentBuiltObject = {
|
|
390
|
+
cardId: number;
|
|
391
|
+
/** journey | segment | preset | sms_preset | email_template | control_group | ... */
|
|
392
|
+
type: string;
|
|
393
|
+
code: string;
|
|
394
|
+
/** The object's page in the panel. */
|
|
395
|
+
url: string;
|
|
396
|
+
/** Why purge_objects left it in place; empty otherwise. */
|
|
397
|
+
reason: string;
|
|
398
|
+
};
|
|
399
|
+
export type ResetAgentResponse = {
|
|
400
|
+
goalsDeleted: number;
|
|
401
|
+
cardsClosed: number;
|
|
402
|
+
rulesRemoved: number;
|
|
403
|
+
/** The agency chat and the card chats emptied of their messages and files. */
|
|
404
|
+
chatsCleared: number;
|
|
405
|
+
snapshotDeleted: boolean;
|
|
406
|
+
/** What is left for manual cleanup: everything built without purge_objects, what the purge could not delete with it. */
|
|
407
|
+
objects: AgentBuiltObject[];
|
|
408
|
+
/** purge_objects: deleted in the platform (or already gone). */
|
|
409
|
+
purged: AgentBuiltObject[];
|
|
410
|
+
/** purge_objects: left in place, with the reason. */
|
|
411
|
+
kept: AgentBuiltObject[];
|
|
412
|
+
};
|
|
310
413
|
/**
|
|
311
414
|
* SkillCatalogService edits the agent's skills catalog (ai_agent_skills, scope catalog): agent skills,
|
|
312
415
|
* vertical passports and vertical jobs. Private port :9191 only; project skills are not served here.
|