@pushwoosh/rpc-gateway-ai-assistant 0.1.645 → 0.1.647
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 +194 -0
- package/package.json +1 -1
- package/pushwoosh_aibuilder_v1.d.ts +18 -2
- package/pushwoosh_uds_onyx_v1.d.ts +74 -0
package/data.js
CHANGED
|
@@ -1027,6 +1027,40 @@ export const data = {
|
|
|
1027
1027
|
}
|
|
1028
1028
|
}
|
|
1029
1029
|
},
|
|
1030
|
+
"pushwoosh.aibuilder.v1.InAppFormCheckbox": {
|
|
1031
|
+
"type": "I",
|
|
1032
|
+
"fields": {
|
|
1033
|
+
"text": {
|
|
1034
|
+
"type": "string"
|
|
1035
|
+
},
|
|
1036
|
+
"textTranslations": {
|
|
1037
|
+
"type": "string",
|
|
1038
|
+
"mapKeyType": "string"
|
|
1039
|
+
},
|
|
1040
|
+
"required": {
|
|
1041
|
+
"type": "boolean"
|
|
1042
|
+
},
|
|
1043
|
+
"linkText": {
|
|
1044
|
+
"type": "string"
|
|
1045
|
+
},
|
|
1046
|
+
"linkTextTranslations": {
|
|
1047
|
+
"type": "string",
|
|
1048
|
+
"mapKeyType": "string"
|
|
1049
|
+
},
|
|
1050
|
+
"linkUrl": {
|
|
1051
|
+
"type": "string"
|
|
1052
|
+
},
|
|
1053
|
+
"tag": {
|
|
1054
|
+
"type": "string"
|
|
1055
|
+
},
|
|
1056
|
+
"showLink": {
|
|
1057
|
+
"type": "boolean"
|
|
1058
|
+
},
|
|
1059
|
+
"saveToTag": {
|
|
1060
|
+
"type": "boolean"
|
|
1061
|
+
}
|
|
1062
|
+
}
|
|
1063
|
+
},
|
|
1030
1064
|
"pushwoosh.aibuilder.v1.InAppFormSuccess": {
|
|
1031
1065
|
"type": "I",
|
|
1032
1066
|
"fields": {
|
|
@@ -1071,6 +1105,10 @@ export const data = {
|
|
|
1071
1105
|
},
|
|
1072
1106
|
"confirmEmail": {
|
|
1073
1107
|
"type": "pushwoosh.aibuilder.v1.InAppFormSuccess"
|
|
1108
|
+
},
|
|
1109
|
+
"checkboxes": {
|
|
1110
|
+
"type": "pushwoosh.aibuilder.v1.InAppFormCheckbox",
|
|
1111
|
+
"array": true
|
|
1074
1112
|
}
|
|
1075
1113
|
}
|
|
1076
1114
|
},
|
|
@@ -5546,6 +5584,30 @@ export const data = {
|
|
|
5546
5584
|
"response": "pushwoosh.uds.onyx.v1.ResetAgentResponse",
|
|
5547
5585
|
"method": "post",
|
|
5548
5586
|
"path": "/api/v1/applications/{application}/agent/reset"
|
|
5587
|
+
},
|
|
5588
|
+
"ListAgentSkills": {
|
|
5589
|
+
"request": "pushwoosh.uds.onyx.v1.ListAgentSkillsRequest",
|
|
5590
|
+
"response": "pushwoosh.uds.onyx.v1.ListAgentSkillsResponse",
|
|
5591
|
+
"method": "get",
|
|
5592
|
+
"path": "/api/v1/applications/{application}/agent/skills"
|
|
5593
|
+
},
|
|
5594
|
+
"SaveAccountSkill": {
|
|
5595
|
+
"request": "pushwoosh.uds.onyx.v1.SaveAccountSkillRequest",
|
|
5596
|
+
"response": "pushwoosh.uds.onyx.v1.SaveAccountSkillResponse",
|
|
5597
|
+
"method": "post",
|
|
5598
|
+
"path": "/api/v1/applications/{application}/agent/skills/save"
|
|
5599
|
+
},
|
|
5600
|
+
"PublishAccountSkill": {
|
|
5601
|
+
"request": "pushwoosh.uds.onyx.v1.PublishAccountSkillRequest",
|
|
5602
|
+
"response": "pushwoosh.uds.onyx.v1.PublishAccountSkillResponse",
|
|
5603
|
+
"method": "post",
|
|
5604
|
+
"path": "/api/v1/applications/{application}/agent/skills/publish"
|
|
5605
|
+
},
|
|
5606
|
+
"ArchiveAccountSkill": {
|
|
5607
|
+
"request": "pushwoosh.uds.onyx.v1.ArchiveAccountSkillRequest",
|
|
5608
|
+
"response": "pushwoosh.uds.onyx.v1.ArchiveAccountSkillResponse",
|
|
5609
|
+
"method": "post",
|
|
5610
|
+
"path": "/api/v1/applications/{application}/agent/skills/archive"
|
|
5549
5611
|
}
|
|
5550
5612
|
}
|
|
5551
5613
|
},
|
|
@@ -6354,6 +6416,138 @@ export const data = {
|
|
|
6354
6416
|
}
|
|
6355
6417
|
}
|
|
6356
6418
|
},
|
|
6419
|
+
"pushwoosh.uds.onyx.v1.AgentSkillVersion": {
|
|
6420
|
+
"type": "I",
|
|
6421
|
+
"fields": {
|
|
6422
|
+
"version": {
|
|
6423
|
+
"type": "number"
|
|
6424
|
+
},
|
|
6425
|
+
"status": {
|
|
6426
|
+
"type": "string"
|
|
6427
|
+
},
|
|
6428
|
+
"body": {
|
|
6429
|
+
"type": "string"
|
|
6430
|
+
}
|
|
6431
|
+
}
|
|
6432
|
+
},
|
|
6433
|
+
"pushwoosh.uds.onyx.v1.AgentSkill": {
|
|
6434
|
+
"type": "I",
|
|
6435
|
+
"fields": {
|
|
6436
|
+
"name": {
|
|
6437
|
+
"type": "string"
|
|
6438
|
+
},
|
|
6439
|
+
"kind": {
|
|
6440
|
+
"type": "string"
|
|
6441
|
+
},
|
|
6442
|
+
"vertical": {
|
|
6443
|
+
"type": "string"
|
|
6444
|
+
},
|
|
6445
|
+
"slug": {
|
|
6446
|
+
"type": "string"
|
|
6447
|
+
},
|
|
6448
|
+
"source": {
|
|
6449
|
+
"type": "string"
|
|
6450
|
+
},
|
|
6451
|
+
"current": {
|
|
6452
|
+
"type": "pushwoosh.uds.onyx.v1.AgentSkillVersion"
|
|
6453
|
+
},
|
|
6454
|
+
"published": {
|
|
6455
|
+
"type": "pushwoosh.uds.onyx.v1.AgentSkillVersion"
|
|
6456
|
+
},
|
|
6457
|
+
"catalog": {
|
|
6458
|
+
"type": "pushwoosh.uds.onyx.v1.AgentSkillVersion"
|
|
6459
|
+
},
|
|
6460
|
+
"displayName": {
|
|
6461
|
+
"type": "string"
|
|
6462
|
+
}
|
|
6463
|
+
}
|
|
6464
|
+
},
|
|
6465
|
+
"pushwoosh.uds.onyx.v1.ListAgentSkillsRequest": {
|
|
6466
|
+
"type": "I",
|
|
6467
|
+
"fields": {
|
|
6468
|
+
"application": {
|
|
6469
|
+
"type": "string"
|
|
6470
|
+
},
|
|
6471
|
+
"vertical": {
|
|
6472
|
+
"type": "string"
|
|
6473
|
+
}
|
|
6474
|
+
}
|
|
6475
|
+
},
|
|
6476
|
+
"pushwoosh.uds.onyx.v1.ListAgentSkillsResponse": {
|
|
6477
|
+
"type": "I",
|
|
6478
|
+
"fields": {
|
|
6479
|
+
"vertical": {
|
|
6480
|
+
"type": "string"
|
|
6481
|
+
},
|
|
6482
|
+
"skills": {
|
|
6483
|
+
"type": "pushwoosh.uds.onyx.v1.AgentSkill",
|
|
6484
|
+
"array": true
|
|
6485
|
+
}
|
|
6486
|
+
}
|
|
6487
|
+
},
|
|
6488
|
+
"pushwoosh.uds.onyx.v1.SaveAccountSkillRequest": {
|
|
6489
|
+
"type": "I",
|
|
6490
|
+
"fields": {
|
|
6491
|
+
"application": {
|
|
6492
|
+
"type": "string"
|
|
6493
|
+
},
|
|
6494
|
+
"name": {
|
|
6495
|
+
"type": "string"
|
|
6496
|
+
},
|
|
6497
|
+
"body": {
|
|
6498
|
+
"type": "string"
|
|
6499
|
+
}
|
|
6500
|
+
}
|
|
6501
|
+
},
|
|
6502
|
+
"pushwoosh.uds.onyx.v1.SaveAccountSkillResponse": {
|
|
6503
|
+
"type": "I",
|
|
6504
|
+
"fields": {
|
|
6505
|
+
"skill": {
|
|
6506
|
+
"type": "pushwoosh.uds.onyx.v1.AgentSkill"
|
|
6507
|
+
}
|
|
6508
|
+
}
|
|
6509
|
+
},
|
|
6510
|
+
"pushwoosh.uds.onyx.v1.PublishAccountSkillRequest": {
|
|
6511
|
+
"type": "I",
|
|
6512
|
+
"fields": {
|
|
6513
|
+
"application": {
|
|
6514
|
+
"type": "string"
|
|
6515
|
+
},
|
|
6516
|
+
"name": {
|
|
6517
|
+
"type": "string"
|
|
6518
|
+
},
|
|
6519
|
+
"version": {
|
|
6520
|
+
"type": "number"
|
|
6521
|
+
}
|
|
6522
|
+
}
|
|
6523
|
+
},
|
|
6524
|
+
"pushwoosh.uds.onyx.v1.PublishAccountSkillResponse": {
|
|
6525
|
+
"type": "I",
|
|
6526
|
+
"fields": {
|
|
6527
|
+
"skill": {
|
|
6528
|
+
"type": "pushwoosh.uds.onyx.v1.AgentSkill"
|
|
6529
|
+
}
|
|
6530
|
+
}
|
|
6531
|
+
},
|
|
6532
|
+
"pushwoosh.uds.onyx.v1.ArchiveAccountSkillRequest": {
|
|
6533
|
+
"type": "I",
|
|
6534
|
+
"fields": {
|
|
6535
|
+
"application": {
|
|
6536
|
+
"type": "string"
|
|
6537
|
+
},
|
|
6538
|
+
"name": {
|
|
6539
|
+
"type": "string"
|
|
6540
|
+
}
|
|
6541
|
+
}
|
|
6542
|
+
},
|
|
6543
|
+
"pushwoosh.uds.onyx.v1.ArchiveAccountSkillResponse": {
|
|
6544
|
+
"type": "I",
|
|
6545
|
+
"fields": {
|
|
6546
|
+
"skill": {
|
|
6547
|
+
"type": "pushwoosh.uds.onyx.v1.AgentSkill"
|
|
6548
|
+
}
|
|
6549
|
+
}
|
|
6550
|
+
},
|
|
6357
6551
|
"pushwoosh.uds.onyx.v1.SkillCatalogService": {
|
|
6358
6552
|
"type": "S",
|
|
6359
6553
|
"key": "skillCatalog",
|
package/package.json
CHANGED
|
@@ -792,7 +792,7 @@ export type InAppFormFieldType =
|
|
|
792
792
|
| 'IN_APP_FORM_FIELD_TYPE_EMAIL'
|
|
793
793
|
/** registered as the user's SMS channel */
|
|
794
794
|
| 'IN_APP_FORM_FIELD_TYPE_PHONE' | 'IN_APP_FORM_FIELD_TYPE_NAME' | 'IN_APP_FORM_FIELD_TYPE_TEXT';
|
|
795
|
-
/**
|
|
795
|
+
/** Legacy marketing consent next to an email or phone field; read as a required InAppForm checkbox. */
|
|
796
796
|
export type InAppFormConsent = {
|
|
797
797
|
text: string;
|
|
798
798
|
textTranslations: Record<string, string>;
|
|
@@ -809,9 +809,23 @@ export type InAppFormField = {
|
|
|
809
809
|
required: boolean;
|
|
810
810
|
/** NAME / TEXT only: tag the value is written to; empty = none. */
|
|
811
811
|
tag: string;
|
|
812
|
-
/**
|
|
812
|
+
/** Legacy, superseded by InAppForm.checkboxes; still rendered when the form has none. */
|
|
813
813
|
consent?: InAppFormConsent;
|
|
814
814
|
};
|
|
815
|
+
/** Checkbox under the form's fields; a required one blocks the submit while unticked. */
|
|
816
|
+
export type InAppFormCheckbox = {
|
|
817
|
+
text: string;
|
|
818
|
+
textTranslations: Record<string, string>;
|
|
819
|
+
required: boolean;
|
|
820
|
+
/** Link under the text; shown with show_link when both link_text and a safe link_url are set. */
|
|
821
|
+
linkText: string;
|
|
822
|
+
linkTextTranslations: Record<string, string>;
|
|
823
|
+
linkUrl: string;
|
|
824
|
+
/** Boolean tag set to whether the box is ticked on submit; written with save_to_tag when not empty. */
|
|
825
|
+
tag: string;
|
|
826
|
+
showLink: boolean;
|
|
827
|
+
saveToTag: boolean;
|
|
828
|
+
};
|
|
815
829
|
/** What replaces the in-app after the form went out; its button closes the in-app. */
|
|
816
830
|
export type InAppFormSuccess = {
|
|
817
831
|
title: string;
|
|
@@ -834,6 +848,8 @@ export type InAppForm = {
|
|
|
834
848
|
subscribed: InAppFormSuccess;
|
|
835
849
|
/** Shown when the application's double opt-in sent a confirmation letter. */
|
|
836
850
|
confirmEmail: InAppFormSuccess;
|
|
851
|
+
/** Up to five, rendered after the fields in this order; empty = no checkboxes. */
|
|
852
|
+
checkboxes: InAppFormCheckbox[];
|
|
837
853
|
};
|
|
838
854
|
/**
|
|
839
855
|
* Countdown timer. Renders in email HTML as an animated GIF served by this
|
|
@@ -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.
|