@pushwoosh/rpc-gateway-ai-assistant 0.1.645 → 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 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
  },
@@ -6354,6 +6378,138 @@ export const data = {
6354
6378
  }
6355
6379
  }
6356
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"
6510
+ }
6511
+ }
6512
+ },
6357
6513
  "pushwoosh.uds.onyx.v1.SkillCatalogService": {
6358
6514
  "type": "S",
6359
6515
  "key": "skillCatalog",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushwoosh/rpc-gateway-ai-assistant",
3
- "version": "0.1.645",
3
+ "version": "0.1.646",
4
4
  "description": "AI Assistant api gateway HTTP API Types and Data",
5
5
  "main": "index.js",
6
6
  "module": "index.js",
@@ -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;
@@ -410,6 +426,64 @@ export type ResetAgentResponse = {
410
426
  /** purge_objects: left in place, with the reason. */
411
427
  kept: AgentBuiltObject[];
412
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;
486
+ };
413
487
  /**
414
488
  * SkillCatalogService edits the agent's skills catalog (ai_agent_skills, scope catalog): agent skills,
415
489
  * vertical passports and vertical jobs. Private port :9191 only; project skills are not served here.