@vendasta/ai-assistants 0.12.0 → 0.13.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/esm2020/lib/_internal/interfaces/api.interface.mjs +1 -1
- package/esm2020/lib/_internal/interfaces/index.mjs +1 -1
- package/esm2020/lib/_internal/objects/api.mjs +45 -19
- package/esm2020/lib/_internal/objects/index.mjs +2 -2
- package/fesm2015/vendasta-ai-assistants.mjs +45 -19
- package/fesm2015/vendasta-ai-assistants.mjs.map +1 -1
- package/fesm2020/vendasta-ai-assistants.mjs +45 -19
- package/fesm2020/vendasta-ai-assistants.mjs.map +1 -1
- package/lib/_internal/interfaces/api.interface.d.ts +10 -6
- package/lib/_internal/interfaces/index.d.ts +1 -1
- package/lib/_internal/objects/api.d.ts +19 -12
- package/lib/_internal/objects/index.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1276,6 +1276,9 @@ class CreatePromptModuleVersionRequest {
|
|
|
1276
1276
|
if (proto.namespace) {
|
|
1277
1277
|
m.namespace = Namespace.fromProto(proto.namespace);
|
|
1278
1278
|
}
|
|
1279
|
+
if (proto.options) {
|
|
1280
|
+
m.options = CreatePromptModuleVersionRequestOptions.fromProto(proto.options);
|
|
1281
|
+
}
|
|
1279
1282
|
return m;
|
|
1280
1283
|
}
|
|
1281
1284
|
constructor(kwargs) {
|
|
@@ -1295,6 +1298,9 @@ class CreatePromptModuleVersionRequest {
|
|
|
1295
1298
|
if (typeof this.content !== 'undefined') {
|
|
1296
1299
|
toReturn['content'] = this.content;
|
|
1297
1300
|
}
|
|
1301
|
+
if (typeof this.options !== 'undefined' && this.options !== null) {
|
|
1302
|
+
toReturn['options'] = 'toApiJson' in this.options ? this.options.toApiJson() : this.options;
|
|
1303
|
+
}
|
|
1298
1304
|
return toReturn;
|
|
1299
1305
|
}
|
|
1300
1306
|
}
|
|
@@ -1564,9 +1570,9 @@ class ListGoalsRequestFilters {
|
|
|
1564
1570
|
return toReturn;
|
|
1565
1571
|
}
|
|
1566
1572
|
}
|
|
1567
|
-
class
|
|
1573
|
+
class ListFunctionRequestFilters {
|
|
1568
1574
|
static fromProto(proto) {
|
|
1569
|
-
let m = new
|
|
1575
|
+
let m = new ListFunctionRequestFilters();
|
|
1570
1576
|
m = Object.assign(m, proto);
|
|
1571
1577
|
if (proto.namespace) {
|
|
1572
1578
|
m.namespace = Namespace.fromProto(proto.namespace);
|
|
@@ -1587,13 +1593,16 @@ class ListPromptModuleRequestFilters {
|
|
|
1587
1593
|
return toReturn;
|
|
1588
1594
|
}
|
|
1589
1595
|
}
|
|
1590
|
-
class
|
|
1596
|
+
class ListAssistantRequestFilters {
|
|
1591
1597
|
static fromProto(proto) {
|
|
1592
|
-
let m = new
|
|
1598
|
+
let m = new ListAssistantRequestFilters();
|
|
1593
1599
|
m = Object.assign(m, proto);
|
|
1594
1600
|
if (proto.namespace) {
|
|
1595
1601
|
m.namespace = Namespace.fromProto(proto.namespace);
|
|
1596
1602
|
}
|
|
1603
|
+
if (proto.type) {
|
|
1604
|
+
m.type = enumStringToValue(AssistantType, proto.type);
|
|
1605
|
+
}
|
|
1597
1606
|
return m;
|
|
1598
1607
|
}
|
|
1599
1608
|
constructor(kwargs) {
|
|
@@ -1607,6 +1616,9 @@ class ListFunctionRequestFilters {
|
|
|
1607
1616
|
if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
|
|
1608
1617
|
toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
|
|
1609
1618
|
}
|
|
1619
|
+
if (typeof this.type !== 'undefined') {
|
|
1620
|
+
toReturn['type'] = this.type;
|
|
1621
|
+
}
|
|
1610
1622
|
return toReturn;
|
|
1611
1623
|
}
|
|
1612
1624
|
}
|
|
@@ -1633,15 +1645,15 @@ class ListAllAssistantsAssociatedToConnectionRequestFilters {
|
|
|
1633
1645
|
return toReturn;
|
|
1634
1646
|
}
|
|
1635
1647
|
}
|
|
1636
|
-
class
|
|
1648
|
+
class ListConnectionsRequestFilters {
|
|
1637
1649
|
static fromProto(proto) {
|
|
1638
|
-
let m = new
|
|
1650
|
+
let m = new ListConnectionsRequestFilters();
|
|
1639
1651
|
m = Object.assign(m, proto);
|
|
1640
1652
|
if (proto.namespace) {
|
|
1641
1653
|
m.namespace = Namespace.fromProto(proto.namespace);
|
|
1642
1654
|
}
|
|
1643
|
-
if (proto.
|
|
1644
|
-
m.
|
|
1655
|
+
if (proto.assistantType) {
|
|
1656
|
+
m.assistantType = enumStringToValue(AssistantType, proto.assistantType);
|
|
1645
1657
|
}
|
|
1646
1658
|
return m;
|
|
1647
1659
|
}
|
|
@@ -1656,22 +1668,19 @@ class ListAssistantRequestFilters {
|
|
|
1656
1668
|
if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
|
|
1657
1669
|
toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
|
|
1658
1670
|
}
|
|
1659
|
-
if (typeof this.
|
|
1660
|
-
toReturn['
|
|
1671
|
+
if (typeof this.assistantType !== 'undefined') {
|
|
1672
|
+
toReturn['assistantType'] = this.assistantType;
|
|
1661
1673
|
}
|
|
1662
1674
|
return toReturn;
|
|
1663
1675
|
}
|
|
1664
1676
|
}
|
|
1665
|
-
class
|
|
1677
|
+
class ListPromptModuleRequestFilters {
|
|
1666
1678
|
static fromProto(proto) {
|
|
1667
|
-
let m = new
|
|
1679
|
+
let m = new ListPromptModuleRequestFilters();
|
|
1668
1680
|
m = Object.assign(m, proto);
|
|
1669
1681
|
if (proto.namespace) {
|
|
1670
1682
|
m.namespace = Namespace.fromProto(proto.namespace);
|
|
1671
1683
|
}
|
|
1672
|
-
if (proto.assistantType) {
|
|
1673
|
-
m.assistantType = enumStringToValue(AssistantType, proto.assistantType);
|
|
1674
|
-
}
|
|
1675
1684
|
return m;
|
|
1676
1685
|
}
|
|
1677
1686
|
constructor(kwargs) {
|
|
@@ -1685,9 +1694,6 @@ class ListConnectionsRequestFilters {
|
|
|
1685
1694
|
if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
|
|
1686
1695
|
toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
|
|
1687
1696
|
}
|
|
1688
|
-
if (typeof this.assistantType !== 'undefined') {
|
|
1689
|
-
toReturn['assistantType'] = this.assistantType;
|
|
1690
|
-
}
|
|
1691
1697
|
return toReturn;
|
|
1692
1698
|
}
|
|
1693
1699
|
}
|
|
@@ -3096,6 +3102,26 @@ class GenerateChatAnswerRequestOptions {
|
|
|
3096
3102
|
return toReturn;
|
|
3097
3103
|
}
|
|
3098
3104
|
}
|
|
3105
|
+
class CreatePromptModuleVersionRequestOptions {
|
|
3106
|
+
static fromProto(proto) {
|
|
3107
|
+
let m = new CreatePromptModuleVersionRequestOptions();
|
|
3108
|
+
m = Object.assign(m, proto);
|
|
3109
|
+
return m;
|
|
3110
|
+
}
|
|
3111
|
+
constructor(kwargs) {
|
|
3112
|
+
if (!kwargs) {
|
|
3113
|
+
return;
|
|
3114
|
+
}
|
|
3115
|
+
Object.assign(this, kwargs);
|
|
3116
|
+
}
|
|
3117
|
+
toApiJson() {
|
|
3118
|
+
const toReturn = {};
|
|
3119
|
+
if (typeof this.shouldDeploy !== 'undefined') {
|
|
3120
|
+
toReturn['shouldDeploy'] = this.shouldDeploy;
|
|
3121
|
+
}
|
|
3122
|
+
return toReturn;
|
|
3123
|
+
}
|
|
3124
|
+
}
|
|
3099
3125
|
class SetAssistantConnectionsRequest {
|
|
3100
3126
|
static fromProto(proto) {
|
|
3101
3127
|
let m = new SetAssistantConnectionsRequest();
|
|
@@ -3688,5 +3714,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
3688
3714
|
* Generated bundle index. Do not edit.
|
|
3689
3715
|
*/
|
|
3690
3716
|
|
|
3691
|
-
export { Access, Assistant, AssistantApiService, AssistantKey, AssistantType, ChatAnswerFunctionExecutionJob, ChatAnswerFunctionExecutionJobResult, ChatAnswerFunctionExecutionJobStatus, ChatChannel, ChatMessage, ChatMessageRole, ChatUserInfo, Config, ConfigInboxConfig, ConfigurableGoal, Connection, ConnectionApiService, ConnectionKey, CreatePromptModuleRequest, CreatePromptModuleVersionRequest, CreatePromptRequest, DeleteAssistantRequest, DeleteConnectionRequest, DeleteFunctionRequest, DeleteGoalRequest, DeletePromptModuleRequest, DeletePromptRequest, DeployPromptModuleRequest, DeployPromptRequest, Function, FunctionApiService, FunctionKey, FunctionParameter, GenerateChatAnswerRequest, GenerateChatAnswerRequestOptions, GenerateChatAnswerResponse, GetAssistantRequest, GetAssistantResponse, GetChatAnswerFunctionExecutionJobRequest, GetChatAnswerFunctionExecutionJobResponse, GetConnectionRequest, GetConnectionResponse, GetDeployedPromptModuleVersionRequest, GetDeployedPromptModuleVersionResponse, GetDeployedPromptVersionRequest, GetDeployedPromptVersionResponse, GetFunctionRequest, GetFunctionResponse, GetGoalRequest, GetGoalResponse, GetHydratedDeployedPromptModuleVersionRequest, GetHydratedDeployedPromptModuleVersionResponse, GetMultiDeployedPromptVersionRequest, GetMultiDeployedPromptVersionResponse, GetMultiFunctionRequest, GetMultiFunctionResponse, GetMultiGoalRequest, GetMultiGoalResponse, GetMultiHydratedDeployedPromptModuleVersionRequest, GetMultiHydratedDeployedPromptModuleVersionResponse, GetPromptModuleRequest, GetPromptModuleResponse, GetPromptModuleVersionRequest, GetPromptModuleVersionResponse, GetPromptRequest, GetPromptResponse, GetPromptVersionRequest, GetPromptVersionResponse, Goal, GoalApiService, GoalChannel, GoalKey, GoalType, HostService, KeyValuePair, ListAllAssistantsAssociatedToConnectionRequest, ListAllAssistantsAssociatedToConnectionRequestFilters, ListAllAssistantsAssociatedToConnectionResponse, ListAssistantRequest, ListAssistantRequestFilters, ListAssistantResponse, ListConnectionsRequest, ListConnectionsRequestFilters, ListConnectionsResponse, ListFunctionRequest, ListFunctionRequestFilters, ListFunctionResponse, ListGoalsRequest, ListGoalsRequestFilters, ListGoalsResponse, ListPromptModuleRequest, ListPromptModuleRequestFilters, ListPromptModuleResponse, ListPromptModuleVersionsRequest, ListPromptModuleVersionsResponse, ListPromptRequest, ListPromptResponse, ListPromptVersionsRequest, ListPromptVersionsResponse, Namespace, NamespaceAccountGroupNamespace, NamespaceAccountGroupsForGroupNamespace, NamespaceAccountGroupsForPartnerNamespace, NamespaceGlobalNamespace, NamespacePartnerNamespace, NamespaceSystemNamespace, PagedRequestOptions, PagedResponseMetadata, Prompt, PromptApiService, PromptModule, PromptModuleApiService, PromptModuleKey, PromptModuleVersion, PromptVersion, SetAssistantConnectionsRequest, SetAssistantConnectionsRequestConnectionState, UpdatePromptModuleRequest, UpdatePromptRequest, UpsertAssistantRequest, UpsertAssistantResponse, UpsertConnectionRequest, UpsertFunctionRequest, UpsertGoalRequest };
|
|
3717
|
+
export { Access, Assistant, AssistantApiService, AssistantKey, AssistantType, ChatAnswerFunctionExecutionJob, ChatAnswerFunctionExecutionJobResult, ChatAnswerFunctionExecutionJobStatus, ChatChannel, ChatMessage, ChatMessageRole, ChatUserInfo, Config, ConfigInboxConfig, ConfigurableGoal, Connection, ConnectionApiService, ConnectionKey, CreatePromptModuleRequest, CreatePromptModuleVersionRequest, CreatePromptModuleVersionRequestOptions, CreatePromptRequest, DeleteAssistantRequest, DeleteConnectionRequest, DeleteFunctionRequest, DeleteGoalRequest, DeletePromptModuleRequest, DeletePromptRequest, DeployPromptModuleRequest, DeployPromptRequest, Function, FunctionApiService, FunctionKey, FunctionParameter, GenerateChatAnswerRequest, GenerateChatAnswerRequestOptions, GenerateChatAnswerResponse, GetAssistantRequest, GetAssistantResponse, GetChatAnswerFunctionExecutionJobRequest, GetChatAnswerFunctionExecutionJobResponse, GetConnectionRequest, GetConnectionResponse, GetDeployedPromptModuleVersionRequest, GetDeployedPromptModuleVersionResponse, GetDeployedPromptVersionRequest, GetDeployedPromptVersionResponse, GetFunctionRequest, GetFunctionResponse, GetGoalRequest, GetGoalResponse, GetHydratedDeployedPromptModuleVersionRequest, GetHydratedDeployedPromptModuleVersionResponse, GetMultiDeployedPromptVersionRequest, GetMultiDeployedPromptVersionResponse, GetMultiFunctionRequest, GetMultiFunctionResponse, GetMultiGoalRequest, GetMultiGoalResponse, GetMultiHydratedDeployedPromptModuleVersionRequest, GetMultiHydratedDeployedPromptModuleVersionResponse, GetPromptModuleRequest, GetPromptModuleResponse, GetPromptModuleVersionRequest, GetPromptModuleVersionResponse, GetPromptRequest, GetPromptResponse, GetPromptVersionRequest, GetPromptVersionResponse, Goal, GoalApiService, GoalChannel, GoalKey, GoalType, HostService, KeyValuePair, ListAllAssistantsAssociatedToConnectionRequest, ListAllAssistantsAssociatedToConnectionRequestFilters, ListAllAssistantsAssociatedToConnectionResponse, ListAssistantRequest, ListAssistantRequestFilters, ListAssistantResponse, ListConnectionsRequest, ListConnectionsRequestFilters, ListConnectionsResponse, ListFunctionRequest, ListFunctionRequestFilters, ListFunctionResponse, ListGoalsRequest, ListGoalsRequestFilters, ListGoalsResponse, ListPromptModuleRequest, ListPromptModuleRequestFilters, ListPromptModuleResponse, ListPromptModuleVersionsRequest, ListPromptModuleVersionsResponse, ListPromptRequest, ListPromptResponse, ListPromptVersionsRequest, ListPromptVersionsResponse, Namespace, NamespaceAccountGroupNamespace, NamespaceAccountGroupsForGroupNamespace, NamespaceAccountGroupsForPartnerNamespace, NamespaceGlobalNamespace, NamespacePartnerNamespace, NamespaceSystemNamespace, PagedRequestOptions, PagedResponseMetadata, Prompt, PromptApiService, PromptModule, PromptModuleApiService, PromptModuleKey, PromptModuleVersion, PromptVersion, SetAssistantConnectionsRequest, SetAssistantConnectionsRequestConnectionState, UpdatePromptModuleRequest, UpdatePromptRequest, UpsertAssistantRequest, UpsertAssistantResponse, UpsertConnectionRequest, UpsertFunctionRequest, UpsertGoalRequest };
|
|
3692
3718
|
//# sourceMappingURL=vendasta-ai-assistants.mjs.map
|