@vendasta/ai-assistants 0.1.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.
Files changed (69) hide show
  1. package/esm2020/lib/_generated/host.service.mjs +25 -0
  2. package/esm2020/lib/_generated/index.mjs +2 -0
  3. package/esm2020/lib/_internal/assistant.api.service.mjs +64 -0
  4. package/esm2020/lib/_internal/connection.api.service.mjs +53 -0
  5. package/esm2020/lib/_internal/enums/answer.enum.mjs +27 -0
  6. package/esm2020/lib/_internal/enums/assistant.enum.mjs +14 -0
  7. package/esm2020/lib/_internal/enums/index.mjs +9 -0
  8. package/esm2020/lib/_internal/index.mjs +13 -0
  9. package/esm2020/lib/_internal/interfaces/annotations.interface.mjs +8 -0
  10. package/esm2020/lib/_internal/interfaces/answer.interface.mjs +2 -0
  11. package/esm2020/lib/_internal/interfaces/api.interface.mjs +2 -0
  12. package/esm2020/lib/_internal/interfaces/assistant.interface.mjs +2 -0
  13. package/esm2020/lib/_internal/interfaces/common.interface.mjs +8 -0
  14. package/esm2020/lib/_internal/interfaces/connection.interface.mjs +2 -0
  15. package/esm2020/lib/_internal/interfaces/index.mjs +2 -0
  16. package/esm2020/lib/_internal/interfaces/namespace.interface.mjs +8 -0
  17. package/esm2020/lib/_internal/interfaces/paging.interface.mjs +8 -0
  18. package/esm2020/lib/_internal/interfaces/prompt.interface.mjs +8 -0
  19. package/esm2020/lib/_internal/objects/annotations.mjs +30 -0
  20. package/esm2020/lib/_internal/objects/answer.mjs +140 -0
  21. package/esm2020/lib/_internal/objects/api.mjs +841 -0
  22. package/esm2020/lib/_internal/objects/assistant.mjs +99 -0
  23. package/esm2020/lib/_internal/objects/common.mjs +30 -0
  24. package/esm2020/lib/_internal/objects/connection.mjs +78 -0
  25. package/esm2020/lib/_internal/objects/index.mjs +16 -0
  26. package/esm2020/lib/_internal/objects/namespace.mjs +102 -0
  27. package/esm2020/lib/_internal/objects/paging.mjs +62 -0
  28. package/esm2020/lib/_internal/objects/prompt.mjs +74 -0
  29. package/esm2020/lib/_internal/prompt.api.service.mjs +71 -0
  30. package/esm2020/lib/index.mjs +3 -0
  31. package/esm2020/public_api.mjs +2 -0
  32. package/esm2020/vendasta-ai-assistants.mjs +5 -0
  33. package/fesm2015/vendasta-ai-assistants.mjs +1707 -0
  34. package/fesm2015/vendasta-ai-assistants.mjs.map +1 -0
  35. package/fesm2020/vendasta-ai-assistants.mjs +1706 -0
  36. package/fesm2020/vendasta-ai-assistants.mjs.map +1 -0
  37. package/index.d.ts +5 -0
  38. package/lib/_generated/host.service.d.ts +7 -0
  39. package/lib/_generated/index.d.ts +1 -0
  40. package/lib/_internal/assistant.api.service.d.ts +19 -0
  41. package/lib/_internal/connection.api.service.d.ts +17 -0
  42. package/lib/_internal/enums/answer.enum.d.ts +17 -0
  43. package/lib/_internal/enums/assistant.enum.d.ts +6 -0
  44. package/lib/_internal/enums/index.d.ts +2 -0
  45. package/lib/_internal/index.d.ts +6 -0
  46. package/lib/_internal/interfaces/annotations.interface.d.ts +4 -0
  47. package/lib/_internal/interfaces/answer.interface.d.ts +27 -0
  48. package/lib/_internal/interfaces/api.interface.d.ts +131 -0
  49. package/lib/_internal/interfaces/assistant.interface.d.ts +17 -0
  50. package/lib/_internal/interfaces/common.interface.d.ts +4 -0
  51. package/lib/_internal/interfaces/connection.interface.d.ts +15 -0
  52. package/lib/_internal/interfaces/index.d.ts +9 -0
  53. package/lib/_internal/interfaces/namespace.interface.d.ts +14 -0
  54. package/lib/_internal/interfaces/paging.interface.d.ts +9 -0
  55. package/lib/_internal/interfaces/prompt.interface.d.ts +13 -0
  56. package/lib/_internal/objects/annotations.d.ts +9 -0
  57. package/lib/_internal/objects/answer.d.ts +41 -0
  58. package/lib/_internal/objects/api.d.ts +229 -0
  59. package/lib/_internal/objects/assistant.d.ts +28 -0
  60. package/lib/_internal/objects/common.d.ts +9 -0
  61. package/lib/_internal/objects/connection.d.ts +23 -0
  62. package/lib/_internal/objects/index.d.ts +9 -0
  63. package/lib/_internal/objects/namespace.d.ts +28 -0
  64. package/lib/_internal/objects/paging.d.ts +17 -0
  65. package/lib/_internal/objects/prompt.d.ts +21 -0
  66. package/lib/_internal/prompt.api.service.d.ts +21 -0
  67. package/lib/index.d.ts +2 -0
  68. package/package.json +35 -0
  69. package/public_api.d.ts +1 -0
@@ -0,0 +1,15 @@
1
+ import { NamespaceInterface } from './namespace.interface';
2
+ export interface ConnectionInterface {
3
+ id?: string;
4
+ namespace?: NamespaceInterface;
5
+ name?: string;
6
+ configurationUrl?: string;
7
+ connectionType?: string;
8
+ connectionTypeName?: string;
9
+ iconUrl?: string;
10
+ }
11
+ export interface ConnectionKeyInterface {
12
+ id?: string;
13
+ namespace?: NamespaceInterface;
14
+ connectionType?: string;
15
+ }
@@ -0,0 +1,9 @@
1
+ export { NamespaceAccountGroupNamespaceInterface, NamespaceInterface, NamespacePartnerNamespaceInterface, NamespaceSystemNamespaceInterface, } from './namespace.interface';
2
+ export { ConnectionInterface, ConnectionKeyInterface, } from './connection.interface';
3
+ export { AssistantInterface, ConfigInterface, ConfigInboxConfigInterface, } from './assistant.interface';
4
+ export { KeyValuePairInterface, } from './common.interface';
5
+ export { ChatAnswerFunctionExecutionJobInterface, ChatAnswerFunctionExecutionJobResultInterface, ChatMessageInterface, ChatUserInfoInterface, } from './answer.interface';
6
+ export { PromptInterface, PromptVersionInterface, } from './prompt.interface';
7
+ export { AccessInterface, } from './annotations.interface';
8
+ export { PagedRequestOptionsInterface, PagedResponseMetadataInterface, } from './paging.interface';
9
+ export { CreatePromptRequestInterface, DeleteAssistantRequestInterface, DeleteConnectionRequestInterface, DeletePromptRequestInterface, DeployPromptRequestInterface, ListAssistantRequestFiltersInterface, ListConnectionsRequestFiltersInterface, GenerateChatAnswerRequestInterface, GenerateChatAnswerResponseInterface, GetAssistantRequestInterface, GetAssistantResponseInterface, GetChatAnswerFunctionExecutionJobRequestInterface, GetChatAnswerFunctionExecutionJobResponseInterface, GetConnectionRequestInterface, GetConnectionResponseInterface, GetPromptRequestInterface, GetPromptResponseInterface, GetPromptVersionRequestInterface, GetPromptVersionResponseInterface, ListAssistantRequestInterface, ListAssistantResponseInterface, ListConnectionsRequestInterface, ListConnectionsResponseInterface, ListPromptRequestInterface, ListPromptResponseInterface, ListPromptVersionsRequestInterface, ListPromptVersionsResponseInterface, GenerateChatAnswerRequestOptionsInterface, UpdatePromptRequestInterface, UpsertAssistantRequestInterface, UpsertAssistantResponseInterface, UpsertConnectionRequestInterface, } from './api.interface';
@@ -0,0 +1,14 @@
1
+ export interface NamespaceAccountGroupNamespaceInterface {
2
+ accountGroupId?: string;
3
+ }
4
+ export interface NamespaceInterface {
5
+ accountGroupNamespace?: NamespaceAccountGroupNamespaceInterface;
6
+ partnerNamespace?: NamespacePartnerNamespaceInterface;
7
+ systemNamespace?: NamespaceSystemNamespaceInterface;
8
+ }
9
+ export interface NamespacePartnerNamespaceInterface {
10
+ partnerId?: string;
11
+ }
12
+ export interface NamespaceSystemNamespaceInterface {
13
+ contextId?: string;
14
+ }
@@ -0,0 +1,9 @@
1
+ export interface PagedRequestOptionsInterface {
2
+ cursor?: string;
3
+ pageSize?: number;
4
+ }
5
+ export interface PagedResponseMetadataInterface {
6
+ nextCursor?: string;
7
+ hasMore?: boolean;
8
+ totalResults?: number;
9
+ }
@@ -0,0 +1,13 @@
1
+ export interface PromptInterface {
2
+ id?: string;
3
+ deployedVersion?: string;
4
+ deployedBy?: string;
5
+ updated?: Date;
6
+ }
7
+ export interface PromptVersionInterface {
8
+ id?: string;
9
+ version?: string;
10
+ content?: string;
11
+ createdBy?: string;
12
+ created?: Date;
13
+ }
@@ -0,0 +1,9 @@
1
+ import * as i from '../interfaces';
2
+ export declare function enumStringToValue<E>(enumRef: any, value: string): E;
3
+ export declare class Access implements i.AccessInterface {
4
+ scope: string[];
5
+ public: boolean;
6
+ static fromProto(proto: any): Access;
7
+ constructor(kwargs?: i.AccessInterface);
8
+ toApiJson(): object;
9
+ }
@@ -0,0 +1,41 @@
1
+ import * as i from '../interfaces';
2
+ import { KeyValuePair } from './common';
3
+ import * as e from '../enums';
4
+ export declare function enumStringToValue<E>(enumRef: any, value: string): E;
5
+ export declare class ChatAnswerFunctionExecutionJob implements i.ChatAnswerFunctionExecutionJobInterface {
6
+ id: string;
7
+ status: e.ChatAnswerFunctionExecutionJobStatus;
8
+ result: ChatAnswerFunctionExecutionJobResult;
9
+ nextJobId: string;
10
+ static fromProto(proto: any): ChatAnswerFunctionExecutionJob;
11
+ constructor(kwargs?: i.ChatAnswerFunctionExecutionJobInterface);
12
+ toApiJson(): object;
13
+ }
14
+ export declare class ChatAnswerFunctionExecutionJobResult implements i.ChatAnswerFunctionExecutionJobResultInterface {
15
+ content: string;
16
+ metadata: KeyValuePair[];
17
+ static fromProto(proto: any): ChatAnswerFunctionExecutionJobResult;
18
+ constructor(kwargs?: i.ChatAnswerFunctionExecutionJobResultInterface);
19
+ toApiJson(): object;
20
+ }
21
+ export declare class ChatMessage implements i.ChatMessageInterface {
22
+ role: e.ChatMessageRole;
23
+ content: string;
24
+ static fromProto(proto: any): ChatMessage;
25
+ constructor(kwargs?: i.ChatMessageInterface);
26
+ toApiJson(): object;
27
+ }
28
+ export declare class ChatUserInfo implements i.ChatUserInfoInterface {
29
+ name: string;
30
+ email: string;
31
+ phone: string;
32
+ address1: string;
33
+ address2: string;
34
+ city: string;
35
+ state: string;
36
+ country: string;
37
+ zipCode: string;
38
+ static fromProto(proto: any): ChatUserInfo;
39
+ constructor(kwargs?: i.ChatUserInfoInterface);
40
+ toApiJson(): object;
41
+ }
@@ -0,0 +1,229 @@
1
+ import * as i from '../interfaces';
2
+ import { Assistant } from './assistant';
3
+ import { ChatMessage, ChatUserInfo, ChatAnswerFunctionExecutionJob } from './answer';
4
+ import { ConnectionKey, Connection } from './connection';
5
+ import { KeyValuePair } from './common';
6
+ import { Namespace } from './namespace';
7
+ import { PagedRequestOptions, PagedResponseMetadata } from './paging';
8
+ import { Prompt, PromptVersion } from './prompt';
9
+ import * as e from '../enums';
10
+ export declare function enumStringToValue<E>(enumRef: any, value: string): E;
11
+ export declare class CreatePromptRequest implements i.CreatePromptRequestInterface {
12
+ id: string;
13
+ content: string;
14
+ static fromProto(proto: any): CreatePromptRequest;
15
+ constructor(kwargs?: i.CreatePromptRequestInterface);
16
+ toApiJson(): object;
17
+ }
18
+ export declare class DeleteAssistantRequest implements i.DeleteAssistantRequestInterface {
19
+ id: string;
20
+ namespace: Namespace;
21
+ static fromProto(proto: any): DeleteAssistantRequest;
22
+ constructor(kwargs?: i.DeleteAssistantRequestInterface);
23
+ toApiJson(): object;
24
+ }
25
+ export declare class DeleteConnectionRequest implements i.DeleteConnectionRequestInterface {
26
+ id: string;
27
+ connectionType: string;
28
+ namespace: Namespace;
29
+ static fromProto(proto: any): DeleteConnectionRequest;
30
+ constructor(kwargs?: i.DeleteConnectionRequestInterface);
31
+ toApiJson(): object;
32
+ }
33
+ export declare class DeletePromptRequest implements i.DeletePromptRequestInterface {
34
+ id: string;
35
+ static fromProto(proto: any): DeletePromptRequest;
36
+ constructor(kwargs?: i.DeletePromptRequestInterface);
37
+ toApiJson(): object;
38
+ }
39
+ export declare class DeployPromptRequest implements i.DeployPromptRequestInterface {
40
+ id: string;
41
+ version: string;
42
+ static fromProto(proto: any): DeployPromptRequest;
43
+ constructor(kwargs?: i.DeployPromptRequestInterface);
44
+ toApiJson(): object;
45
+ }
46
+ export declare class ListAssistantRequestFilters implements i.ListAssistantRequestFiltersInterface {
47
+ namespace: Namespace;
48
+ type: e.AssistantType;
49
+ static fromProto(proto: any): ListAssistantRequestFilters;
50
+ constructor(kwargs?: i.ListAssistantRequestFiltersInterface);
51
+ toApiJson(): object;
52
+ }
53
+ export declare class ListConnectionsRequestFilters implements i.ListConnectionsRequestFiltersInterface {
54
+ namespace: Namespace;
55
+ static fromProto(proto: any): ListConnectionsRequestFilters;
56
+ constructor(kwargs?: i.ListConnectionsRequestFiltersInterface);
57
+ toApiJson(): object;
58
+ }
59
+ export declare class GenerateChatAnswerRequest implements i.GenerateChatAnswerRequestInterface {
60
+ connectionKey: ConnectionKey;
61
+ chatHistory: ChatMessage[];
62
+ chatUserInfo: ChatUserInfo;
63
+ chatChannel: e.ChatChannel;
64
+ options: GenerateChatAnswerRequestOptions;
65
+ static fromProto(proto: any): GenerateChatAnswerRequest;
66
+ constructor(kwargs?: i.GenerateChatAnswerRequestInterface);
67
+ toApiJson(): object;
68
+ }
69
+ export declare class GenerateChatAnswerResponse implements i.GenerateChatAnswerResponseInterface {
70
+ answer: string;
71
+ metadata: KeyValuePair[];
72
+ pendingJobId: string;
73
+ static fromProto(proto: any): GenerateChatAnswerResponse;
74
+ constructor(kwargs?: i.GenerateChatAnswerResponseInterface);
75
+ toApiJson(): object;
76
+ }
77
+ export declare class GetAssistantRequest implements i.GetAssistantRequestInterface {
78
+ id: string;
79
+ namespace: Namespace;
80
+ static fromProto(proto: any): GetAssistantRequest;
81
+ constructor(kwargs?: i.GetAssistantRequestInterface);
82
+ toApiJson(): object;
83
+ }
84
+ export declare class GetAssistantResponse implements i.GetAssistantResponseInterface {
85
+ assistant: Assistant;
86
+ static fromProto(proto: any): GetAssistantResponse;
87
+ constructor(kwargs?: i.GetAssistantResponseInterface);
88
+ toApiJson(): object;
89
+ }
90
+ export declare class GetChatAnswerFunctionExecutionJobRequest implements i.GetChatAnswerFunctionExecutionJobRequestInterface {
91
+ id: string;
92
+ static fromProto(proto: any): GetChatAnswerFunctionExecutionJobRequest;
93
+ constructor(kwargs?: i.GetChatAnswerFunctionExecutionJobRequestInterface);
94
+ toApiJson(): object;
95
+ }
96
+ export declare class GetChatAnswerFunctionExecutionJobResponse implements i.GetChatAnswerFunctionExecutionJobResponseInterface {
97
+ job: ChatAnswerFunctionExecutionJob;
98
+ static fromProto(proto: any): GetChatAnswerFunctionExecutionJobResponse;
99
+ constructor(kwargs?: i.GetChatAnswerFunctionExecutionJobResponseInterface);
100
+ toApiJson(): object;
101
+ }
102
+ export declare class GetConnectionRequest implements i.GetConnectionRequestInterface {
103
+ id: string;
104
+ connectionType: string;
105
+ namespace: Namespace;
106
+ includeAssistantKeys: boolean;
107
+ static fromProto(proto: any): GetConnectionRequest;
108
+ constructor(kwargs?: i.GetConnectionRequestInterface);
109
+ toApiJson(): object;
110
+ }
111
+ export declare class GetConnectionResponse implements i.GetConnectionResponseInterface {
112
+ connection: Connection;
113
+ static fromProto(proto: any): GetConnectionResponse;
114
+ constructor(kwargs?: i.GetConnectionResponseInterface);
115
+ toApiJson(): object;
116
+ }
117
+ export declare class GetPromptRequest implements i.GetPromptRequestInterface {
118
+ id: string;
119
+ static fromProto(proto: any): GetPromptRequest;
120
+ constructor(kwargs?: i.GetPromptRequestInterface);
121
+ toApiJson(): object;
122
+ }
123
+ export declare class GetPromptResponse implements i.GetPromptResponseInterface {
124
+ prompt: Prompt;
125
+ static fromProto(proto: any): GetPromptResponse;
126
+ constructor(kwargs?: i.GetPromptResponseInterface);
127
+ toApiJson(): object;
128
+ }
129
+ export declare class GetPromptVersionRequest implements i.GetPromptVersionRequestInterface {
130
+ id: string;
131
+ version: string;
132
+ static fromProto(proto: any): GetPromptVersionRequest;
133
+ constructor(kwargs?: i.GetPromptVersionRequestInterface);
134
+ toApiJson(): object;
135
+ }
136
+ export declare class GetPromptVersionResponse implements i.GetPromptVersionResponseInterface {
137
+ promptVersion: PromptVersion;
138
+ static fromProto(proto: any): GetPromptVersionResponse;
139
+ constructor(kwargs?: i.GetPromptVersionResponseInterface);
140
+ toApiJson(): object;
141
+ }
142
+ export declare class ListAssistantRequest implements i.ListAssistantRequestInterface {
143
+ filters: ListAssistantRequestFilters;
144
+ pagingOptions: PagedRequestOptions;
145
+ static fromProto(proto: any): ListAssistantRequest;
146
+ constructor(kwargs?: i.ListAssistantRequestInterface);
147
+ toApiJson(): object;
148
+ }
149
+ export declare class ListAssistantResponse implements i.ListAssistantResponseInterface {
150
+ assistants: Assistant[];
151
+ metadata: PagedResponseMetadata;
152
+ static fromProto(proto: any): ListAssistantResponse;
153
+ constructor(kwargs?: i.ListAssistantResponseInterface);
154
+ toApiJson(): object;
155
+ }
156
+ export declare class ListConnectionsRequest implements i.ListConnectionsRequestInterface {
157
+ filters: ListConnectionsRequestFilters;
158
+ pagingOptions: PagedRequestOptions;
159
+ includeAssistantKeys: boolean;
160
+ static fromProto(proto: any): ListConnectionsRequest;
161
+ constructor(kwargs?: i.ListConnectionsRequestInterface);
162
+ toApiJson(): object;
163
+ }
164
+ export declare class ListConnectionsResponse implements i.ListConnectionsResponseInterface {
165
+ connections: Connection[];
166
+ metadata: PagedResponseMetadata;
167
+ static fromProto(proto: any): ListConnectionsResponse;
168
+ constructor(kwargs?: i.ListConnectionsResponseInterface);
169
+ toApiJson(): object;
170
+ }
171
+ export declare class ListPromptRequest implements i.ListPromptRequestInterface {
172
+ pagingOptions: PagedRequestOptions;
173
+ static fromProto(proto: any): ListPromptRequest;
174
+ constructor(kwargs?: i.ListPromptRequestInterface);
175
+ toApiJson(): object;
176
+ }
177
+ export declare class ListPromptResponse implements i.ListPromptResponseInterface {
178
+ prompts: Prompt[];
179
+ metadata: PagedResponseMetadata;
180
+ static fromProto(proto: any): ListPromptResponse;
181
+ constructor(kwargs?: i.ListPromptResponseInterface);
182
+ toApiJson(): object;
183
+ }
184
+ export declare class ListPromptVersionsRequest implements i.ListPromptVersionsRequestInterface {
185
+ id: string;
186
+ pagingOptions: PagedRequestOptions;
187
+ static fromProto(proto: any): ListPromptVersionsRequest;
188
+ constructor(kwargs?: i.ListPromptVersionsRequestInterface);
189
+ toApiJson(): object;
190
+ }
191
+ export declare class ListPromptVersionsResponse implements i.ListPromptVersionsResponseInterface {
192
+ promptVersions: PromptVersion[];
193
+ metadata: PagedResponseMetadata;
194
+ static fromProto(proto: any): ListPromptVersionsResponse;
195
+ constructor(kwargs?: i.ListPromptVersionsResponseInterface);
196
+ toApiJson(): object;
197
+ }
198
+ export declare class GenerateChatAnswerRequestOptions implements i.GenerateChatAnswerRequestOptionsInterface {
199
+ includeAllCitations: boolean;
200
+ enableAsyncFunctions: boolean;
201
+ static fromProto(proto: any): GenerateChatAnswerRequestOptions;
202
+ constructor(kwargs?: i.GenerateChatAnswerRequestOptionsInterface);
203
+ toApiJson(): object;
204
+ }
205
+ export declare class UpdatePromptRequest implements i.UpdatePromptRequestInterface {
206
+ id: string;
207
+ content: string;
208
+ static fromProto(proto: any): UpdatePromptRequest;
209
+ constructor(kwargs?: i.UpdatePromptRequestInterface);
210
+ toApiJson(): object;
211
+ }
212
+ export declare class UpsertAssistantRequest implements i.UpsertAssistantRequestInterface {
213
+ assistant: Assistant;
214
+ static fromProto(proto: any): UpsertAssistantRequest;
215
+ constructor(kwargs?: i.UpsertAssistantRequestInterface);
216
+ toApiJson(): object;
217
+ }
218
+ export declare class UpsertAssistantResponse implements i.UpsertAssistantResponseInterface {
219
+ assistant: Assistant;
220
+ static fromProto(proto: any): UpsertAssistantResponse;
221
+ constructor(kwargs?: i.UpsertAssistantResponseInterface);
222
+ toApiJson(): object;
223
+ }
224
+ export declare class UpsertConnectionRequest implements i.UpsertConnectionRequestInterface {
225
+ connection: Connection;
226
+ static fromProto(proto: any): UpsertConnectionRequest;
227
+ constructor(kwargs?: i.UpsertConnectionRequestInterface);
228
+ toApiJson(): object;
229
+ }
@@ -0,0 +1,28 @@
1
+ import * as i from '../interfaces';
2
+ import { Namespace } from './namespace';
3
+ import * as e from '../enums';
4
+ export declare function enumStringToValue<E>(enumRef: any, value: string): E;
5
+ export declare class Assistant implements i.AssistantInterface {
6
+ id: string;
7
+ namespace: Namespace;
8
+ name: string;
9
+ type: e.AssistantType;
10
+ avatarUrl: string;
11
+ config: Config;
12
+ static fromProto(proto: any): Assistant;
13
+ constructor(kwargs?: i.AssistantInterface);
14
+ toApiJson(): object;
15
+ }
16
+ export declare class Config implements i.ConfigInterface {
17
+ inboxConfig: ConfigInboxConfig;
18
+ static fromProto(proto: any): Config;
19
+ constructor(kwargs?: i.ConfigInterface);
20
+ toApiJson(): object;
21
+ }
22
+ export declare class ConfigInboxConfig implements i.ConfigInboxConfigInterface {
23
+ leadCaptureEnabled: boolean;
24
+ additionalInstructions: string;
25
+ static fromProto(proto: any): ConfigInboxConfig;
26
+ constructor(kwargs?: i.ConfigInboxConfigInterface);
27
+ toApiJson(): object;
28
+ }
@@ -0,0 +1,9 @@
1
+ import * as i from '../interfaces';
2
+ export declare function enumStringToValue<E>(enumRef: any, value: string): E;
3
+ export declare class KeyValuePair implements i.KeyValuePairInterface {
4
+ key: string;
5
+ value: string;
6
+ static fromProto(proto: any): KeyValuePair;
7
+ constructor(kwargs?: i.KeyValuePairInterface);
8
+ toApiJson(): object;
9
+ }
@@ -0,0 +1,23 @@
1
+ import * as i from '../interfaces';
2
+ import { Namespace } from './namespace';
3
+ export declare function enumStringToValue<E>(enumRef: any, value: string): E;
4
+ export declare class Connection implements i.ConnectionInterface {
5
+ id: string;
6
+ namespace: Namespace;
7
+ name: string;
8
+ configurationUrl: string;
9
+ connectionType: string;
10
+ connectionTypeName: string;
11
+ iconUrl: string;
12
+ static fromProto(proto: any): Connection;
13
+ constructor(kwargs?: i.ConnectionInterface);
14
+ toApiJson(): object;
15
+ }
16
+ export declare class ConnectionKey implements i.ConnectionKeyInterface {
17
+ id: string;
18
+ namespace: Namespace;
19
+ connectionType: string;
20
+ static fromProto(proto: any): ConnectionKey;
21
+ constructor(kwargs?: i.ConnectionKeyInterface);
22
+ toApiJson(): object;
23
+ }
@@ -0,0 +1,9 @@
1
+ export { NamespaceAccountGroupNamespace, Namespace, NamespacePartnerNamespace, NamespaceSystemNamespace, } from './namespace';
2
+ export { Connection, ConnectionKey, } from './connection';
3
+ export { Assistant, Config, ConfigInboxConfig, } from './assistant';
4
+ export { KeyValuePair, } from './common';
5
+ export { ChatAnswerFunctionExecutionJob, ChatAnswerFunctionExecutionJobResult, ChatMessage, ChatUserInfo, } from './answer';
6
+ export { Prompt, PromptVersion, } from './prompt';
7
+ export { Access, } from './annotations';
8
+ export { PagedRequestOptions, PagedResponseMetadata, } from './paging';
9
+ export { CreatePromptRequest, DeleteAssistantRequest, DeleteConnectionRequest, DeletePromptRequest, DeployPromptRequest, ListAssistantRequestFilters, ListConnectionsRequestFilters, GenerateChatAnswerRequest, GenerateChatAnswerResponse, GetAssistantRequest, GetAssistantResponse, GetChatAnswerFunctionExecutionJobRequest, GetChatAnswerFunctionExecutionJobResponse, GetConnectionRequest, GetConnectionResponse, GetPromptRequest, GetPromptResponse, GetPromptVersionRequest, GetPromptVersionResponse, ListAssistantRequest, ListAssistantResponse, ListConnectionsRequest, ListConnectionsResponse, ListPromptRequest, ListPromptResponse, ListPromptVersionsRequest, ListPromptVersionsResponse, GenerateChatAnswerRequestOptions, UpdatePromptRequest, UpsertAssistantRequest, UpsertAssistantResponse, UpsertConnectionRequest, } from './api';
@@ -0,0 +1,28 @@
1
+ import * as i from '../interfaces';
2
+ export declare function enumStringToValue<E>(enumRef: any, value: string): E;
3
+ export declare class NamespaceAccountGroupNamespace implements i.NamespaceAccountGroupNamespaceInterface {
4
+ accountGroupId: string;
5
+ static fromProto(proto: any): NamespaceAccountGroupNamespace;
6
+ constructor(kwargs?: i.NamespaceAccountGroupNamespaceInterface);
7
+ toApiJson(): object;
8
+ }
9
+ export declare class Namespace implements i.NamespaceInterface {
10
+ accountGroupNamespace: NamespaceAccountGroupNamespace;
11
+ partnerNamespace: NamespacePartnerNamespace;
12
+ systemNamespace: NamespaceSystemNamespace;
13
+ static fromProto(proto: any): Namespace;
14
+ constructor(kwargs?: i.NamespaceInterface);
15
+ toApiJson(): object;
16
+ }
17
+ export declare class NamespacePartnerNamespace implements i.NamespacePartnerNamespaceInterface {
18
+ partnerId: string;
19
+ static fromProto(proto: any): NamespacePartnerNamespace;
20
+ constructor(kwargs?: i.NamespacePartnerNamespaceInterface);
21
+ toApiJson(): object;
22
+ }
23
+ export declare class NamespaceSystemNamespace implements i.NamespaceSystemNamespaceInterface {
24
+ contextId: string;
25
+ static fromProto(proto: any): NamespaceSystemNamespace;
26
+ constructor(kwargs?: i.NamespaceSystemNamespaceInterface);
27
+ toApiJson(): object;
28
+ }
@@ -0,0 +1,17 @@
1
+ import * as i from '../interfaces';
2
+ export declare function enumStringToValue<E>(enumRef: any, value: string): E;
3
+ export declare class PagedRequestOptions implements i.PagedRequestOptionsInterface {
4
+ cursor: string;
5
+ pageSize: number;
6
+ static fromProto(proto: any): PagedRequestOptions;
7
+ constructor(kwargs?: i.PagedRequestOptionsInterface);
8
+ toApiJson(): object;
9
+ }
10
+ export declare class PagedResponseMetadata implements i.PagedResponseMetadataInterface {
11
+ nextCursor: string;
12
+ hasMore: boolean;
13
+ totalResults: number;
14
+ static fromProto(proto: any): PagedResponseMetadata;
15
+ constructor(kwargs?: i.PagedResponseMetadataInterface);
16
+ toApiJson(): object;
17
+ }
@@ -0,0 +1,21 @@
1
+ import * as i from '../interfaces';
2
+ export declare function enumStringToValue<E>(enumRef: any, value: string): E;
3
+ export declare class Prompt implements i.PromptInterface {
4
+ id: string;
5
+ deployedVersion: string;
6
+ deployedBy: string;
7
+ updated: Date;
8
+ static fromProto(proto: any): Prompt;
9
+ constructor(kwargs?: i.PromptInterface);
10
+ toApiJson(): object;
11
+ }
12
+ export declare class PromptVersion implements i.PromptVersionInterface {
13
+ id: string;
14
+ version: string;
15
+ content: string;
16
+ createdBy: string;
17
+ created: Date;
18
+ static fromProto(proto: any): PromptVersion;
19
+ constructor(kwargs?: i.PromptVersionInterface);
20
+ toApiJson(): object;
21
+ }
@@ -0,0 +1,21 @@
1
+ import { CreatePromptRequest, DeletePromptRequest, DeployPromptRequest, GetPromptRequest, GetPromptResponse, GetPromptVersionRequest, GetPromptVersionResponse, ListPromptRequest, ListPromptResponse, ListPromptVersionsRequest, ListPromptVersionsResponse, UpdatePromptRequest } from './objects/';
2
+ import { CreatePromptRequestInterface, DeletePromptRequestInterface, DeployPromptRequestInterface, GetPromptRequestInterface, GetPromptVersionRequestInterface, ListPromptRequestInterface, ListPromptVersionsRequestInterface, UpdatePromptRequestInterface } from './interfaces/';
3
+ import { HttpResponse } from '@angular/common/http';
4
+ import { Observable } from 'rxjs';
5
+ import * as i0 from "@angular/core";
6
+ export declare class PromptApiService {
7
+ private readonly hostService;
8
+ private readonly http;
9
+ private _host;
10
+ private apiOptions;
11
+ create(r: CreatePromptRequest | CreatePromptRequestInterface): Observable<HttpResponse<null>>;
12
+ get(r: GetPromptRequest | GetPromptRequestInterface): Observable<GetPromptResponse>;
13
+ getVersion(r: GetPromptVersionRequest | GetPromptVersionRequestInterface): Observable<GetPromptVersionResponse>;
14
+ update(r: UpdatePromptRequest | UpdatePromptRequestInterface): Observable<HttpResponse<null>>;
15
+ deploy(r: DeployPromptRequest | DeployPromptRequestInterface): Observable<HttpResponse<null>>;
16
+ list(r: ListPromptRequest | ListPromptRequestInterface): Observable<ListPromptResponse>;
17
+ listVersions(r: ListPromptVersionsRequest | ListPromptVersionsRequestInterface): Observable<ListPromptVersionsResponse>;
18
+ delete(r: DeletePromptRequest | DeletePromptRequestInterface): Observable<HttpResponse<null>>;
19
+ static ɵfac: i0.ɵɵFactoryDeclaration<PromptApiService, never>;
20
+ static ɵprov: i0.ɵɵInjectableDeclaration<PromptApiService>;
21
+ }
package/lib/index.d.ts ADDED
@@ -0,0 +1,2 @@
1
+ export * from './_generated';
2
+ export * from './_internal';
package/package.json ADDED
@@ -0,0 +1,35 @@
1
+ {
2
+ "name": "@vendasta/ai-assistants",
3
+ "version": "0.1.0",
4
+ "peerDependencies": {
5
+ "@angular/common": "^15.1.0",
6
+ "@angular/core": "^15.1.0"
7
+ },
8
+ "author": "Vendasta R&D",
9
+ "description": "SDK to interact with the ai-assistants service",
10
+ "typings": "index.d.ts",
11
+ "license": "ISC",
12
+ "main": "index.js",
13
+ "module": "fesm2015/vendasta-ai-assistants.mjs",
14
+ "es2020": "fesm2020/vendasta-ai-assistants.mjs",
15
+ "esm2020": "esm2020/vendasta-ai-assistants.mjs",
16
+ "fesm2020": "fesm2020/vendasta-ai-assistants.mjs",
17
+ "fesm2015": "fesm2015/vendasta-ai-assistants.mjs",
18
+ "exports": {
19
+ "./package.json": {
20
+ "default": "./package.json"
21
+ },
22
+ ".": {
23
+ "types": "./index.d.ts",
24
+ "esm2020": "./esm2020/vendasta-ai-assistants.mjs",
25
+ "es2020": "./fesm2020/vendasta-ai-assistants.mjs",
26
+ "es2015": "./fesm2015/vendasta-ai-assistants.mjs",
27
+ "node": "./fesm2015/vendasta-ai-assistants.mjs",
28
+ "default": "./fesm2020/vendasta-ai-assistants.mjs"
29
+ }
30
+ },
31
+ "sideEffects": false,
32
+ "dependencies": {
33
+ "tslib": "^2.3.0"
34
+ }
35
+ }
@@ -0,0 +1 @@
1
+ export * from './lib/index';