@pushwoosh/rpc-gateway-ai-assistant 0.1.644 → 0.1.646
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 +170 -0
- package/package.json +1 -1
- package/pushwoosh_uds_onyx_v1.d.ts +87 -1
package/data.js
CHANGED
|
@@ -5546,6 +5546,30 @@ export const data = {
|
|
|
5546
5546
|
"response": "pushwoosh.uds.onyx.v1.ResetAgentResponse",
|
|
5547
5547
|
"method": "post",
|
|
5548
5548
|
"path": "/api/v1/applications/{application}/agent/reset"
|
|
5549
|
+
},
|
|
5550
|
+
"ListAgentSkills": {
|
|
5551
|
+
"request": "pushwoosh.uds.onyx.v1.ListAgentSkillsRequest",
|
|
5552
|
+
"response": "pushwoosh.uds.onyx.v1.ListAgentSkillsResponse",
|
|
5553
|
+
"method": "get",
|
|
5554
|
+
"path": "/api/v1/applications/{application}/agent/skills"
|
|
5555
|
+
},
|
|
5556
|
+
"SaveAccountSkill": {
|
|
5557
|
+
"request": "pushwoosh.uds.onyx.v1.SaveAccountSkillRequest",
|
|
5558
|
+
"response": "pushwoosh.uds.onyx.v1.SaveAccountSkillResponse",
|
|
5559
|
+
"method": "post",
|
|
5560
|
+
"path": "/api/v1/applications/{application}/agent/skills/save"
|
|
5561
|
+
},
|
|
5562
|
+
"PublishAccountSkill": {
|
|
5563
|
+
"request": "pushwoosh.uds.onyx.v1.PublishAccountSkillRequest",
|
|
5564
|
+
"response": "pushwoosh.uds.onyx.v1.PublishAccountSkillResponse",
|
|
5565
|
+
"method": "post",
|
|
5566
|
+
"path": "/api/v1/applications/{application}/agent/skills/publish"
|
|
5567
|
+
},
|
|
5568
|
+
"ArchiveAccountSkill": {
|
|
5569
|
+
"request": "pushwoosh.uds.onyx.v1.ArchiveAccountSkillRequest",
|
|
5570
|
+
"response": "pushwoosh.uds.onyx.v1.ArchiveAccountSkillResponse",
|
|
5571
|
+
"method": "post",
|
|
5572
|
+
"path": "/api/v1/applications/{application}/agent/skills/archive"
|
|
5549
5573
|
}
|
|
5550
5574
|
}
|
|
5551
5575
|
},
|
|
@@ -6296,6 +6320,9 @@ export const data = {
|
|
|
6296
6320
|
"fields": {
|
|
6297
6321
|
"application": {
|
|
6298
6322
|
"type": "string"
|
|
6323
|
+
},
|
|
6324
|
+
"purgeObjects": {
|
|
6325
|
+
"type": "boolean"
|
|
6299
6326
|
}
|
|
6300
6327
|
}
|
|
6301
6328
|
},
|
|
@@ -6313,6 +6340,9 @@ export const data = {
|
|
|
6313
6340
|
},
|
|
6314
6341
|
"url": {
|
|
6315
6342
|
"type": "string"
|
|
6343
|
+
},
|
|
6344
|
+
"reason": {
|
|
6345
|
+
"type": "string"
|
|
6316
6346
|
}
|
|
6317
6347
|
}
|
|
6318
6348
|
},
|
|
@@ -6337,6 +6367,146 @@ export const data = {
|
|
|
6337
6367
|
"objects": {
|
|
6338
6368
|
"type": "pushwoosh.uds.onyx.v1.AgentBuiltObject",
|
|
6339
6369
|
"array": true
|
|
6370
|
+
},
|
|
6371
|
+
"purged": {
|
|
6372
|
+
"type": "pushwoosh.uds.onyx.v1.AgentBuiltObject",
|
|
6373
|
+
"array": true
|
|
6374
|
+
},
|
|
6375
|
+
"kept": {
|
|
6376
|
+
"type": "pushwoosh.uds.onyx.v1.AgentBuiltObject",
|
|
6377
|
+
"array": true
|
|
6378
|
+
}
|
|
6379
|
+
}
|
|
6380
|
+
},
|
|
6381
|
+
"pushwoosh.uds.onyx.v1.AgentSkillVersion": {
|
|
6382
|
+
"type": "I",
|
|
6383
|
+
"fields": {
|
|
6384
|
+
"version": {
|
|
6385
|
+
"type": "number"
|
|
6386
|
+
},
|
|
6387
|
+
"status": {
|
|
6388
|
+
"type": "string"
|
|
6389
|
+
},
|
|
6390
|
+
"body": {
|
|
6391
|
+
"type": "string"
|
|
6392
|
+
}
|
|
6393
|
+
}
|
|
6394
|
+
},
|
|
6395
|
+
"pushwoosh.uds.onyx.v1.AgentSkill": {
|
|
6396
|
+
"type": "I",
|
|
6397
|
+
"fields": {
|
|
6398
|
+
"name": {
|
|
6399
|
+
"type": "string"
|
|
6400
|
+
},
|
|
6401
|
+
"kind": {
|
|
6402
|
+
"type": "string"
|
|
6403
|
+
},
|
|
6404
|
+
"vertical": {
|
|
6405
|
+
"type": "string"
|
|
6406
|
+
},
|
|
6407
|
+
"slug": {
|
|
6408
|
+
"type": "string"
|
|
6409
|
+
},
|
|
6410
|
+
"source": {
|
|
6411
|
+
"type": "string"
|
|
6412
|
+
},
|
|
6413
|
+
"current": {
|
|
6414
|
+
"type": "pushwoosh.uds.onyx.v1.AgentSkillVersion"
|
|
6415
|
+
},
|
|
6416
|
+
"published": {
|
|
6417
|
+
"type": "pushwoosh.uds.onyx.v1.AgentSkillVersion"
|
|
6418
|
+
},
|
|
6419
|
+
"catalog": {
|
|
6420
|
+
"type": "pushwoosh.uds.onyx.v1.AgentSkillVersion"
|
|
6421
|
+
},
|
|
6422
|
+
"displayName": {
|
|
6423
|
+
"type": "string"
|
|
6424
|
+
}
|
|
6425
|
+
}
|
|
6426
|
+
},
|
|
6427
|
+
"pushwoosh.uds.onyx.v1.ListAgentSkillsRequest": {
|
|
6428
|
+
"type": "I",
|
|
6429
|
+
"fields": {
|
|
6430
|
+
"application": {
|
|
6431
|
+
"type": "string"
|
|
6432
|
+
},
|
|
6433
|
+
"vertical": {
|
|
6434
|
+
"type": "string"
|
|
6435
|
+
}
|
|
6436
|
+
}
|
|
6437
|
+
},
|
|
6438
|
+
"pushwoosh.uds.onyx.v1.ListAgentSkillsResponse": {
|
|
6439
|
+
"type": "I",
|
|
6440
|
+
"fields": {
|
|
6441
|
+
"vertical": {
|
|
6442
|
+
"type": "string"
|
|
6443
|
+
},
|
|
6444
|
+
"skills": {
|
|
6445
|
+
"type": "pushwoosh.uds.onyx.v1.AgentSkill",
|
|
6446
|
+
"array": true
|
|
6447
|
+
}
|
|
6448
|
+
}
|
|
6449
|
+
},
|
|
6450
|
+
"pushwoosh.uds.onyx.v1.SaveAccountSkillRequest": {
|
|
6451
|
+
"type": "I",
|
|
6452
|
+
"fields": {
|
|
6453
|
+
"application": {
|
|
6454
|
+
"type": "string"
|
|
6455
|
+
},
|
|
6456
|
+
"name": {
|
|
6457
|
+
"type": "string"
|
|
6458
|
+
},
|
|
6459
|
+
"body": {
|
|
6460
|
+
"type": "string"
|
|
6461
|
+
}
|
|
6462
|
+
}
|
|
6463
|
+
},
|
|
6464
|
+
"pushwoosh.uds.onyx.v1.SaveAccountSkillResponse": {
|
|
6465
|
+
"type": "I",
|
|
6466
|
+
"fields": {
|
|
6467
|
+
"skill": {
|
|
6468
|
+
"type": "pushwoosh.uds.onyx.v1.AgentSkill"
|
|
6469
|
+
}
|
|
6470
|
+
}
|
|
6471
|
+
},
|
|
6472
|
+
"pushwoosh.uds.onyx.v1.PublishAccountSkillRequest": {
|
|
6473
|
+
"type": "I",
|
|
6474
|
+
"fields": {
|
|
6475
|
+
"application": {
|
|
6476
|
+
"type": "string"
|
|
6477
|
+
},
|
|
6478
|
+
"name": {
|
|
6479
|
+
"type": "string"
|
|
6480
|
+
},
|
|
6481
|
+
"version": {
|
|
6482
|
+
"type": "number"
|
|
6483
|
+
}
|
|
6484
|
+
}
|
|
6485
|
+
},
|
|
6486
|
+
"pushwoosh.uds.onyx.v1.PublishAccountSkillResponse": {
|
|
6487
|
+
"type": "I",
|
|
6488
|
+
"fields": {
|
|
6489
|
+
"skill": {
|
|
6490
|
+
"type": "pushwoosh.uds.onyx.v1.AgentSkill"
|
|
6491
|
+
}
|
|
6492
|
+
}
|
|
6493
|
+
},
|
|
6494
|
+
"pushwoosh.uds.onyx.v1.ArchiveAccountSkillRequest": {
|
|
6495
|
+
"type": "I",
|
|
6496
|
+
"fields": {
|
|
6497
|
+
"application": {
|
|
6498
|
+
"type": "string"
|
|
6499
|
+
},
|
|
6500
|
+
"name": {
|
|
6501
|
+
"type": "string"
|
|
6502
|
+
}
|
|
6503
|
+
}
|
|
6504
|
+
},
|
|
6505
|
+
"pushwoosh.uds.onyx.v1.ArchiveAccountSkillResponse": {
|
|
6506
|
+
"type": "I",
|
|
6507
|
+
"fields": {
|
|
6508
|
+
"skill": {
|
|
6509
|
+
"type": "pushwoosh.uds.onyx.v1.AgentSkill"
|
|
6340
6510
|
}
|
|
6341
6511
|
}
|
|
6342
6512
|
},
|
package/package.json
CHANGED
|
@@ -16,6 +16,10 @@ export type BoardService_GetAgentSetup = RpcMethod<GetAgentSetupRequest, GetAgen
|
|
|
16
16
|
export type BoardService_ActivateAgent = RpcMethod<ActivateAgentRequest, ActivateAgentResponse>;
|
|
17
17
|
export type BoardService_SetAgentMode = RpcMethod<SetAgentModeRequest, SetAgentModeResponse>;
|
|
18
18
|
export type BoardService_ResetAgent = RpcMethod<ResetAgentRequest, ResetAgentResponse>;
|
|
19
|
+
export type BoardService_ListAgentSkills = RpcMethod<ListAgentSkillsRequest, ListAgentSkillsResponse>;
|
|
20
|
+
export type BoardService_SaveAccountSkill = RpcMethod<SaveAccountSkillRequest, SaveAccountSkillResponse>;
|
|
21
|
+
export type BoardService_PublishAccountSkill = RpcMethod<PublishAccountSkillRequest, PublishAccountSkillResponse>;
|
|
22
|
+
export type BoardService_ArchiveAccountSkill = RpcMethod<ArchiveAccountSkillRequest, ArchiveAccountSkillResponse>;
|
|
19
23
|
/**
|
|
20
24
|
* BoardService is the marketing agent's board: cards laid out in columns, each rendered by its kind.
|
|
21
25
|
* Public port; the account and application come from the caller's auth.
|
|
@@ -45,6 +49,18 @@ export interface BoardService {
|
|
|
45
49
|
* The passport, card history and project skills stay; what the platform holds is listed, never touched.
|
|
46
50
|
*/
|
|
47
51
|
ResetAgent: BoardService_ResetAgent;
|
|
52
|
+
/**
|
|
53
|
+
* The four below edit the account's overrides of catalog skills, also behind X-Agency-Key: an account row with the
|
|
54
|
+
* catalog skill's (kind, vertical, slug) replaces it for every application of the account. The catalog is read-only here.
|
|
55
|
+
* The agent skills and the skills of the profile's vertical (or the asked one), each from the catalog or the account.
|
|
56
|
+
*/
|
|
57
|
+
ListAgentSkills: BoardService_ListAgentSkills;
|
|
58
|
+
/** A new draft version of the account's skill; the body is validated by kind, the error names what fails. */
|
|
59
|
+
SaveAccountSkill: BoardService_SaveAccountSkill;
|
|
60
|
+
/** Publishes a draft (the newest without version), the account's previous published version archived. */
|
|
61
|
+
PublishAccountSkill: BoardService_PublishAccountSkill;
|
|
62
|
+
/** Reset to catalog: every version of the account's skill archived. */
|
|
63
|
+
ArchiveAccountSkill: BoardService_ArchiveAccountSkill;
|
|
48
64
|
}
|
|
49
65
|
export type Card = {
|
|
50
66
|
id: number;
|
|
@@ -324,7 +340,7 @@ export type AgentFocus = {
|
|
|
324
340
|
id: string;
|
|
325
341
|
name: string;
|
|
326
342
|
description: string;
|
|
327
|
-
/** revenue | returns | first_purchases | purchases | conversions | active_users | subscribers */
|
|
343
|
+
/** revenue | returns | first_purchases | purchases | conversions | active_users | subscribers | levels */
|
|
328
344
|
metric: string;
|
|
329
345
|
};
|
|
330
346
|
export type AgentSkillSet = {
|
|
@@ -379,6 +395,11 @@ export type SetAgentModeResponse = {
|
|
|
379
395
|
};
|
|
380
396
|
export type ResetAgentRequest = {
|
|
381
397
|
application: string;
|
|
398
|
+
/**
|
|
399
|
+
* Delete what the cards built before the board is cleared: journeys paused then deleted, segments, presets,
|
|
400
|
+
* templates and control groups deleted; an object already gone counts as purged.
|
|
401
|
+
*/
|
|
402
|
+
purgeObjects: boolean;
|
|
382
403
|
};
|
|
383
404
|
/** An object a card built in the platform; reset leaves it running, the client removes it by hand. */
|
|
384
405
|
export type AgentBuiltObject = {
|
|
@@ -388,6 +409,8 @@ export type AgentBuiltObject = {
|
|
|
388
409
|
code: string;
|
|
389
410
|
/** The object's page in the panel. */
|
|
390
411
|
url: string;
|
|
412
|
+
/** Why purge_objects left it in place; empty otherwise. */
|
|
413
|
+
reason: string;
|
|
391
414
|
};
|
|
392
415
|
export type ResetAgentResponse = {
|
|
393
416
|
goalsDeleted: number;
|
|
@@ -396,7 +419,70 @@ export type ResetAgentResponse = {
|
|
|
396
419
|
/** The agency chat and the card chats emptied of their messages and files. */
|
|
397
420
|
chatsCleared: number;
|
|
398
421
|
snapshotDeleted: boolean;
|
|
422
|
+
/** What is left for manual cleanup: everything built without purge_objects, what the purge could not delete with it. */
|
|
399
423
|
objects: AgentBuiltObject[];
|
|
424
|
+
/** purge_objects: deleted in the platform (or already gone). */
|
|
425
|
+
purged: AgentBuiltObject[];
|
|
426
|
+
/** purge_objects: left in place, with the reason. */
|
|
427
|
+
kept: AgentBuiltObject[];
|
|
428
|
+
};
|
|
429
|
+
export type AgentSkillVersion = {
|
|
430
|
+
version: number;
|
|
431
|
+
/** draft | published */
|
|
432
|
+
status: string;
|
|
433
|
+
body: string;
|
|
434
|
+
};
|
|
435
|
+
export type AgentSkill = {
|
|
436
|
+
/** <vertical>/<slug>, or the slug of an agent skill. */
|
|
437
|
+
name: string;
|
|
438
|
+
/** agent | vertical | job */
|
|
439
|
+
kind: string;
|
|
440
|
+
vertical: string;
|
|
441
|
+
slug: string;
|
|
442
|
+
/** catalog | account */
|
|
443
|
+
source: string;
|
|
444
|
+
/** The version shown: the account's newest draft or published one, else the catalog's published one. */
|
|
445
|
+
current: AgentSkillVersion;
|
|
446
|
+
/** account: the published version when current is a newer draft; unset otherwise. */
|
|
447
|
+
published: AgentSkillVersion;
|
|
448
|
+
/** account: the catalog's published version it overrides; unset for a catalog skill and an account-only one. */
|
|
449
|
+
catalog: AgentSkillVersion;
|
|
450
|
+
displayName: string;
|
|
451
|
+
};
|
|
452
|
+
export type ListAgentSkillsRequest = {
|
|
453
|
+
application: string;
|
|
454
|
+
/** Empty: the profile's vertical; no profile and no vertical lists the agent skills only. */
|
|
455
|
+
vertical: string;
|
|
456
|
+
};
|
|
457
|
+
export type ListAgentSkillsResponse = {
|
|
458
|
+
vertical: string;
|
|
459
|
+
/** Agent skills first, then the passport and the jobs, by name. */
|
|
460
|
+
skills: AgentSkill[];
|
|
461
|
+
};
|
|
462
|
+
export type SaveAccountSkillRequest = {
|
|
463
|
+
application: string;
|
|
464
|
+
name: string;
|
|
465
|
+
body: string;
|
|
466
|
+
};
|
|
467
|
+
export type SaveAccountSkillResponse = {
|
|
468
|
+
skill: AgentSkill;
|
|
469
|
+
};
|
|
470
|
+
export type PublishAccountSkillRequest = {
|
|
471
|
+
application: string;
|
|
472
|
+
name: string;
|
|
473
|
+
/** 0: the newest draft. */
|
|
474
|
+
version: number;
|
|
475
|
+
};
|
|
476
|
+
export type PublishAccountSkillResponse = {
|
|
477
|
+
skill: AgentSkill;
|
|
478
|
+
};
|
|
479
|
+
export type ArchiveAccountSkillRequest = {
|
|
480
|
+
application: string;
|
|
481
|
+
name: string;
|
|
482
|
+
};
|
|
483
|
+
export type ArchiveAccountSkillResponse = {
|
|
484
|
+
/** The skill as it reads now: from the catalog, or none for an account-only skill. */
|
|
485
|
+
skill: AgentSkill;
|
|
400
486
|
};
|
|
401
487
|
/**
|
|
402
488
|
* SkillCatalogService edits the agent's skills catalog (ai_agent_skills, scope catalog): agent skills,
|