@droz-js/sdk 0.6.10 → 0.6.12

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@droz-js/sdk",
3
3
  "description": "Droz SDK",
4
- "version": "0.6.10",
4
+ "version": "0.6.12",
5
5
  "private": false,
6
6
  "exports": {
7
7
  ".": "./src/index.js",
package/src/drozai.d.ts CHANGED
@@ -25,4 +25,24 @@ export declare const DrozAi: new (options?: import("./client/http").HttpClientOp
25
25
  id: string;
26
26
  sample: string;
27
27
  }>, options?: unknown): Promise<import("./sdks/ai").TestNlpInstanceQuery>;
28
+ getQnAInstance(variables: import("./sdks/ai").Exact<{
29
+ id: string;
30
+ }>, options?: unknown): Promise<import("./sdks/ai").GetQnAInstanceQuery>;
31
+ listQnAInstances(variables?: import("./sdks/ai").Exact<{
32
+ [key: string]: never;
33
+ }>, options?: unknown): Promise<import("./sdks/ai").ListQnAInstancesQuery>;
34
+ testQnAInstance(variables: import("./sdks/ai").Exact<{
35
+ id: string;
36
+ input: string;
37
+ history?: string;
38
+ }>, options?: unknown): Promise<import("./sdks/ai").TestQnAInstanceQuery>;
39
+ createQnAInstance(variables: import("./sdks/ai").Exact<{
40
+ input: import("./sdks/ai").CreateQnAInstanceInput;
41
+ }>, options?: unknown): Promise<import("./sdks/ai").CreateQnAInstanceMutation>;
42
+ updateQnAInstance(variables: import("./sdks/ai").Exact<{
43
+ input: import("./sdks/ai").UpdateQnAInstanceInput;
44
+ }>, options?: unknown): Promise<import("./sdks/ai").UpdateQnAInstanceMutation>;
45
+ removeQnAInstance(variables: import("./sdks/ai").Exact<{
46
+ input: import("./sdks/ai").RemoveQnAInstanceInput;
47
+ }>, options?: unknown): Promise<import("./sdks/ai").RemoveQnAInstanceMutation>;
28
48
  };
package/src/logger.d.ts CHANGED
@@ -6,8 +6,15 @@ export declare const Logger: new (options?: import("./client/http").HttpClientOp
6
6
  withCustomHeaders(headers: () => Record<string, string>): any;
7
7
  withHttpRequestExecutor(httpRequestExecutor: import("./client/http").HttpRequestExecutor): any;
8
8
  } & {
9
+ getLastMessage(variables: import("./sdks/logger").Exact<{
10
+ sessionId: string;
11
+ type?: string;
12
+ }>, options?: unknown): Promise<import("./sdks/logger").GetLastMessageQuery>;
9
13
  listMessages(variables: import("./sdks/logger").Exact<{
10
14
  sessionId: string;
15
+ type?: string;
16
+ limit?: number;
17
+ order?: import("./sdks/logger").Order;
11
18
  next?: object;
12
19
  }>, options?: unknown): Promise<import("./sdks/logger").ListMessagesQuery>;
13
20
  };
@@ -0,0 +1,24 @@
1
+ export * from './sdks/mercadolivre';
2
+ export declare const MercadoLivre: new (options?: import("./client/http").HttpClientOptions) => {
3
+ readonly http: any;
4
+ forTenant(tenant: string): any;
5
+ withAuthorization(authorization: import("./client/helpers").AuthorizationProvider): any;
6
+ withCustomHeaders(headers: () => Record<string, string>): any;
7
+ withHttpRequestExecutor(httpRequestExecutor: import("./client/http").HttpRequestExecutor): any;
8
+ } & {
9
+ getMercadoLivreInstance(variables: import("./sdks/mercadolivre").Exact<{
10
+ id: string;
11
+ }>, options?: unknown): Promise<import("./sdks/mercadolivre").GetMercadoLivreInstanceQuery>;
12
+ listMercadoLivreInstances(variables?: import("./sdks/mercadolivre").Exact<{
13
+ [key: string]: never;
14
+ }>, options?: unknown): Promise<import("./sdks/mercadolivre").ListMercadoLivreInstancesQuery>;
15
+ createMercadoLivreInstance(variables: import("./sdks/mercadolivre").Exact<{
16
+ input: import("./sdks/mercadolivre").CreateMercadoLivreInstanceInput;
17
+ }>, options?: unknown): Promise<import("./sdks/mercadolivre").CreateMercadoLivreInstanceMutation>;
18
+ updateMercadoLivreInstance(variables: import("./sdks/mercadolivre").Exact<{
19
+ input: import("./sdks/mercadolivre").UpdateMercadoLivreInstanceInput;
20
+ }>, options?: unknown): Promise<import("./sdks/mercadolivre").UpdateMercadoLivreInstanceMutation>;
21
+ removeMercadoLivreInstance(variables: import("./sdks/mercadolivre").Exact<{
22
+ input: import("./sdks/mercadolivre").RemoveMercadoLivreInstanceInput;
23
+ }>, options?: unknown): Promise<import("./sdks/mercadolivre").RemoveMercadoLivreInstanceMutation>;
24
+ };
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ exports.MercadoLivre = void 0;
18
+ const http_1 = require("./client/http");
19
+ const mercadolivre_1 = require("./sdks/mercadolivre");
20
+ __exportStar(require("./sdks/mercadolivre"), exports);
21
+ exports.MercadoLivre = (0, http_1.HttpClientBuilder)(mercadolivre_1.serviceName, mercadolivre_1.getSdk);
package/src/nucleus.d.ts CHANGED
@@ -90,12 +90,18 @@ declare const Nucleus_base: new (options?: import("./client/http").HttpClientOpt
90
90
  getCredentialsSecret(variables: import("./sdks/nucleus").Exact<{
91
91
  id: string;
92
92
  }>, options?: unknown): Promise<import("./sdks/nucleus").GetCredentialsSecretQuery>;
93
+ getMetaAuthInfo(variables?: import("./sdks/nucleus").Exact<{
94
+ [key: string]: never;
95
+ }>, options?: unknown): Promise<import("./sdks/nucleus").GetMetaAuthInfoQuery>;
93
96
  listCredentials(variables?: import("./sdks/nucleus").Exact<{
94
97
  type?: import("./sdks/nucleus").CredentialsType;
95
98
  }>, options?: unknown): Promise<import("./sdks/nucleus").ListCredentialsQuery>;
96
99
  countCredentials(variables?: import("./sdks/nucleus").Exact<{
97
100
  [key: string]: never;
98
101
  }>, options?: unknown): Promise<import("./sdks/nucleus").CountCredentialsQuery>;
102
+ getMercadoLivreAuthInfo(variables?: import("./sdks/nucleus").Exact<{
103
+ [key: string]: never;
104
+ }>, options?: unknown): Promise<import("./sdks/nucleus").GetMercadoLivreAuthInfoQuery>;
99
105
  createCredentials(variables: import("./sdks/nucleus").Exact<{
100
106
  input: import("./sdks/nucleus").CreateCredentialsInput;
101
107
  }>, options?: unknown): Promise<import("./sdks/nucleus").CreateCredentialsMutation>;
package/src/sdks/ai.d.ts CHANGED
@@ -133,6 +133,12 @@ export type CreateNlpInstanceInput = {
133
133
  name: Scalars['String']['input'];
134
134
  options: Array<NlpOptionInput>;
135
135
  };
136
+ export type CreateQnAInstanceInput = {
137
+ name: Scalars['String']['input'];
138
+ prompt: Scalars['String']['input'];
139
+ retrieverCredentialsId: Scalars['ID']['input'];
140
+ retrieverTenantId: Scalars['String']['input'];
141
+ };
136
142
  export type I18nText = {
137
143
  lang: Scalars['Locale']['output'];
138
144
  value: Scalars['String']['output'];
@@ -143,19 +149,31 @@ export type I18nTextInput = {
143
149
  };
144
150
  export type Mutation = {
145
151
  createNlpInstance?: Maybe<NlpInstance>;
152
+ createQnAInstance?: Maybe<QnAInstance>;
146
153
  removeNlpInstance?: Maybe<NlpInstance>;
154
+ removeQnAInstance?: Maybe<QnAInstance>;
147
155
  updateNlpInstance?: Maybe<NlpInstance>;
156
+ updateQnAInstance?: Maybe<QnAInstance>;
148
157
  version?: Maybe<Scalars['String']['output']>;
149
158
  };
150
159
  export type MutationCreateNlpInstanceArgs = {
151
160
  input: CreateNlpInstanceInput;
152
161
  };
162
+ export type MutationCreateQnAInstanceArgs = {
163
+ input: CreateQnAInstanceInput;
164
+ };
153
165
  export type MutationRemoveNlpInstanceArgs = {
154
166
  input: RemoveNlpInstanceInput;
155
167
  };
168
+ export type MutationRemoveQnAInstanceArgs = {
169
+ input: RemoveQnAInstanceInput;
170
+ };
156
171
  export type MutationUpdateNlpInstanceArgs = {
157
172
  input: UpdateNlpInstanceInput;
158
173
  };
174
+ export type MutationUpdateQnAInstanceArgs = {
175
+ input: UpdateQnAInstanceInput;
176
+ };
159
177
  export type NlpInstance = {
160
178
  createdAt: Scalars['DateTime']['output'];
161
179
  id: Scalars['ID']['output'];
@@ -193,24 +211,47 @@ export type PageInfo = {
193
211
  hasNext: Scalars['Boolean']['output'];
194
212
  next?: Maybe<Scalars['Base64']['output']>;
195
213
  };
214
+ export type QnAInstance = {
215
+ createdAt: Scalars['DateTime']['output'];
216
+ id: Scalars['ID']['output'];
217
+ name: Scalars['String']['output'];
218
+ prompt: Scalars['String']['output'];
219
+ retrieverCredentialsId: Scalars['ID']['output'];
220
+ retrieverTenantId: Scalars['String']['output'];
221
+ updatedAt: Scalars['DateTime']['output'];
222
+ };
196
223
  export type Query = {
197
224
  app?: Maybe<Scalars['DRN']['output']>;
198
225
  getHttpEndpoint?: Maybe<Scalars['String']['output']>;
199
226
  getNlpInstance?: Maybe<NlpInstance>;
227
+ getQnAInstance?: Maybe<QnAInstance>;
200
228
  listNlpInstances: Array<NlpInstance>;
229
+ listQnAInstances: Array<QnAInstance>;
201
230
  testNlpInstance?: Maybe<TestNlpInstanceResult>;
231
+ testQnAInstance?: Maybe<TestQnAInstanceResult>;
202
232
  version?: Maybe<Scalars['String']['output']>;
203
233
  };
204
234
  export type QueryGetNlpInstanceArgs = {
205
235
  id: Scalars['ID']['input'];
206
236
  };
237
+ export type QueryGetQnAInstanceArgs = {
238
+ id: Scalars['ID']['input'];
239
+ };
207
240
  export type QueryTestNlpInstanceArgs = {
208
241
  id: Scalars['ID']['input'];
209
242
  sample: Scalars['String']['input'];
210
243
  };
244
+ export type QueryTestQnAInstanceArgs = {
245
+ history?: InputMaybe<Scalars['String']['input']>;
246
+ id: Scalars['ID']['input'];
247
+ input: Scalars['String']['input'];
248
+ };
211
249
  export type RemoveNlpInstanceInput = {
212
250
  id: Scalars['ID']['input'];
213
251
  };
252
+ export type RemoveQnAInstanceInput = {
253
+ id: Scalars['ID']['input'];
254
+ };
214
255
  export type SearchResultsFacet = {
215
256
  name: Scalars['String']['output'];
216
257
  stats?: Maybe<SearchResultsFacetStats>;
@@ -260,19 +301,39 @@ export type StringMatcherInput = {
260
301
  };
261
302
  export type TestNlpInstanceResult = {
262
303
  confidence?: Maybe<Scalars['Float']['output']>;
304
+ sample?: Maybe<Scalars['String']['output']>;
263
305
  transition?: Maybe<Scalars['VariableName']['output']>;
264
306
  };
307
+ export type TestQnAInstanceContext = {
308
+ content: Scalars['String']['output'];
309
+ id: Scalars['ID']['output'];
310
+ title: Scalars['String']['output'];
311
+ url: Scalars['String']['output'];
312
+ };
313
+ export type TestQnAInstanceResult = {
314
+ answer?: Maybe<Scalars['String']['output']>;
315
+ context?: Maybe<Array<TestQnAInstanceContext>>;
316
+ };
265
317
  export declare enum Typenames {
266
318
  Any = "Any",
267
319
  GraphqlConnections = "GraphqlConnections",
268
320
  GraphqlSubscriptions = "GraphqlSubscriptions",
269
- Nlp = "Nlp"
321
+ Nlp = "Nlp",
322
+ NlpEmbeddings = "NlpEmbeddings",
323
+ QnA = "QnA"
270
324
  }
271
325
  export type UpdateNlpInstanceInput = {
272
326
  id: Scalars['ID']['input'];
273
327
  name?: InputMaybe<Scalars['String']['input']>;
274
328
  options: Array<NlpOptionInput>;
275
329
  };
330
+ export type UpdateQnAInstanceInput = {
331
+ id: Scalars['ID']['input'];
332
+ name?: InputMaybe<Scalars['String']['input']>;
333
+ prompt?: InputMaybe<Scalars['String']['input']>;
334
+ retrieverCredentialsId?: InputMaybe<Scalars['ID']['input']>;
335
+ retrieverTenantId?: InputMaybe<Scalars['String']['input']>;
336
+ };
276
337
  export type NlpInstanceFragment = (Pick<NlpInstance, 'id' | 'name' | 'createdAt' | 'updatedAt'> & {
277
338
  options: Array<Pick<NlpOption, 'transition' | 'samples'>>;
278
339
  });
@@ -313,13 +374,61 @@ export type TestNlpInstanceQueryVariables = Exact<{
313
374
  export type TestNlpInstanceQuery = {
314
375
  testNlpInstance?: Maybe<Pick<TestNlpInstanceResult, 'transition' | 'confidence'>>;
315
376
  };
377
+ export type QnaFragmentFragment = Pick<QnAInstance, 'id' | 'name' | 'createdAt' | 'updatedAt'>;
378
+ export type GetQnAInstanceQueryVariables = Exact<{
379
+ id: Scalars['ID']['input'];
380
+ }>;
381
+ export type GetQnAInstanceQuery = {
382
+ getQnAInstance?: Maybe<QnaFragmentFragment>;
383
+ };
384
+ export type ListQnAInstancesQueryVariables = Exact<{
385
+ [key: string]: never;
386
+ }>;
387
+ export type ListQnAInstancesQuery = {
388
+ listQnAInstances: Array<QnaFragmentFragment>;
389
+ };
390
+ export type TestQnAInstanceQueryVariables = Exact<{
391
+ id: Scalars['ID']['input'];
392
+ input: Scalars['String']['input'];
393
+ history?: InputMaybe<Scalars['String']['input']>;
394
+ }>;
395
+ export type TestQnAInstanceQuery = {
396
+ testQnAInstance?: Maybe<(Pick<TestQnAInstanceResult, 'answer'> & {
397
+ context?: Maybe<Array<Pick<TestQnAInstanceContext, 'id' | 'title' | 'url' | 'content'>>>;
398
+ })>;
399
+ };
400
+ export type CreateQnAInstanceMutationVariables = Exact<{
401
+ input: CreateQnAInstanceInput;
402
+ }>;
403
+ export type CreateQnAInstanceMutation = {
404
+ createQnAInstance?: Maybe<QnaFragmentFragment>;
405
+ };
406
+ export type UpdateQnAInstanceMutationVariables = Exact<{
407
+ input: UpdateQnAInstanceInput;
408
+ }>;
409
+ export type UpdateQnAInstanceMutation = {
410
+ updateQnAInstance?: Maybe<QnaFragmentFragment>;
411
+ };
412
+ export type RemoveQnAInstanceMutationVariables = Exact<{
413
+ input: RemoveQnAInstanceInput;
414
+ }>;
415
+ export type RemoveQnAInstanceMutation = {
416
+ removeQnAInstance?: Maybe<QnaFragmentFragment>;
417
+ };
316
418
  export declare const NlpInstanceFragmentDoc = "\n fragment nlpInstance on NlpInstance {\n id\n name\n options {\n transition\n samples\n }\n createdAt\n updatedAt\n}\n ";
419
+ export declare const QnaFragmentFragmentDoc = "\n fragment qnaFragment on QnAInstance {\n id\n name\n createdAt\n updatedAt\n}\n ";
317
420
  export declare const GetNlpInstanceDocument = "\n query getNlpInstance($id: ID!) {\n getNlpInstance(id: $id) {\n ...nlpInstance\n }\n}\n \n fragment nlpInstance on NlpInstance {\n id\n name\n options {\n transition\n samples\n }\n createdAt\n updatedAt\n}\n ";
318
421
  export declare const ListNlpInstancesDocument = "\n query listNlpInstances {\n listNlpInstances {\n ...nlpInstance\n }\n}\n \n fragment nlpInstance on NlpInstance {\n id\n name\n options {\n transition\n samples\n }\n createdAt\n updatedAt\n}\n ";
319
422
  export declare const CreateNlpInstanceDocument = "\n mutation createNlpInstance($input: CreateNlpInstanceInput!) {\n createNlpInstance(input: $input) {\n ...nlpInstance\n }\n}\n \n fragment nlpInstance on NlpInstance {\n id\n name\n options {\n transition\n samples\n }\n createdAt\n updatedAt\n}\n ";
320
423
  export declare const UpdateNlpInstanceDocument = "\n mutation updateNlpInstance($input: UpdateNlpInstanceInput!) {\n updateNlpInstance(input: $input) {\n ...nlpInstance\n }\n}\n \n fragment nlpInstance on NlpInstance {\n id\n name\n options {\n transition\n samples\n }\n createdAt\n updatedAt\n}\n ";
321
424
  export declare const RemoveNlpInstanceDocument = "\n mutation removeNlpInstance($input: RemoveNlpInstanceInput!) {\n removeNlpInstance(input: $input) {\n ...nlpInstance\n }\n}\n \n fragment nlpInstance on NlpInstance {\n id\n name\n options {\n transition\n samples\n }\n createdAt\n updatedAt\n}\n ";
322
425
  export declare const TestNlpInstanceDocument = "\n query testNlpInstance($id: ID!, $sample: String!) {\n testNlpInstance(id: $id, sample: $sample) {\n transition\n confidence\n }\n}\n ";
426
+ export declare const GetQnAInstanceDocument = "\n query getQnAInstance($id: ID!) {\n getQnAInstance(id: $id) {\n ...qnaFragment\n }\n}\n \n fragment qnaFragment on QnAInstance {\n id\n name\n createdAt\n updatedAt\n}\n ";
427
+ export declare const ListQnAInstancesDocument = "\n query listQnAInstances {\n listQnAInstances {\n ...qnaFragment\n }\n}\n \n fragment qnaFragment on QnAInstance {\n id\n name\n createdAt\n updatedAt\n}\n ";
428
+ export declare const TestQnAInstanceDocument = "\n query testQnAInstance($id: ID!, $input: String!, $history: String) {\n testQnAInstance(id: $id, input: $input, history: $history) {\n answer\n context {\n id\n title\n url\n content\n }\n }\n}\n ";
429
+ export declare const CreateQnAInstanceDocument = "\n mutation createQnAInstance($input: CreateQnAInstanceInput!) {\n createQnAInstance(input: $input) {\n ...qnaFragment\n }\n}\n \n fragment qnaFragment on QnAInstance {\n id\n name\n createdAt\n updatedAt\n}\n ";
430
+ export declare const UpdateQnAInstanceDocument = "\n mutation updateQnAInstance($input: UpdateQnAInstanceInput!) {\n updateQnAInstance(input: $input) {\n ...qnaFragment\n }\n}\n \n fragment qnaFragment on QnAInstance {\n id\n name\n createdAt\n updatedAt\n}\n ";
431
+ export declare const RemoveQnAInstanceDocument = "\n mutation removeQnAInstance($input: RemoveQnAInstanceInput!) {\n removeQnAInstance(input: $input) {\n ...qnaFragment\n }\n}\n \n fragment qnaFragment on QnAInstance {\n id\n name\n createdAt\n updatedAt\n}\n ";
323
432
  export type Requester<C = {}> = <R, V>(doc: string, vars?: V, options?: C) => Promise<R> | AsyncIterableIterator<R>;
324
433
  export declare function getSdk<C>(requester: Requester<C>): {
325
434
  getNlpInstance(variables: GetNlpInstanceQueryVariables, options?: C): Promise<GetNlpInstanceQuery>;
@@ -328,6 +437,12 @@ export declare function getSdk<C>(requester: Requester<C>): {
328
437
  updateNlpInstance(variables: UpdateNlpInstanceMutationVariables, options?: C): Promise<UpdateNlpInstanceMutation>;
329
438
  removeNlpInstance(variables: RemoveNlpInstanceMutationVariables, options?: C): Promise<RemoveNlpInstanceMutation>;
330
439
  testNlpInstance(variables: TestNlpInstanceQueryVariables, options?: C): Promise<TestNlpInstanceQuery>;
440
+ getQnAInstance(variables: GetQnAInstanceQueryVariables, options?: C): Promise<GetQnAInstanceQuery>;
441
+ listQnAInstances(variables?: ListQnAInstancesQueryVariables, options?: C): Promise<ListQnAInstancesQuery>;
442
+ testQnAInstance(variables: TestQnAInstanceQueryVariables, options?: C): Promise<TestQnAInstanceQuery>;
443
+ createQnAInstance(variables: CreateQnAInstanceMutationVariables, options?: C): Promise<CreateQnAInstanceMutation>;
444
+ updateQnAInstance(variables: UpdateQnAInstanceMutationVariables, options?: C): Promise<UpdateQnAInstanceMutation>;
445
+ removeQnAInstance(variables: RemoveQnAInstanceMutationVariables, options?: C): Promise<RemoveQnAInstanceMutation>;
331
446
  };
332
447
  export type Sdk = ReturnType<typeof getSdk>;
333
448
  export declare const serviceName = "@droz/ai";
package/src/sdks/ai.js CHANGED
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  /* istanbul ignore file */
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.serviceName = exports.getSdk = exports.TestNlpInstanceDocument = exports.RemoveNlpInstanceDocument = exports.UpdateNlpInstanceDocument = exports.CreateNlpInstanceDocument = exports.ListNlpInstancesDocument = exports.GetNlpInstanceDocument = exports.NlpInstanceFragmentDoc = exports.Typenames = exports.Can = exports.AppInstanceStatus = void 0;
4
+ exports.serviceName = exports.getSdk = exports.RemoveQnAInstanceDocument = exports.UpdateQnAInstanceDocument = exports.CreateQnAInstanceDocument = exports.TestQnAInstanceDocument = exports.ListQnAInstancesDocument = exports.GetQnAInstanceDocument = exports.TestNlpInstanceDocument = exports.RemoveNlpInstanceDocument = exports.UpdateNlpInstanceDocument = exports.CreateNlpInstanceDocument = exports.ListNlpInstancesDocument = exports.GetNlpInstanceDocument = exports.QnaFragmentFragmentDoc = exports.NlpInstanceFragmentDoc = exports.Typenames = exports.Can = exports.AppInstanceStatus = void 0;
5
5
  var AppInstanceStatus;
6
6
  (function (AppInstanceStatus) {
7
7
  AppInstanceStatus["Active"] = "Active";
@@ -21,6 +21,8 @@ var Typenames;
21
21
  Typenames["GraphqlConnections"] = "GraphqlConnections";
22
22
  Typenames["GraphqlSubscriptions"] = "GraphqlSubscriptions";
23
23
  Typenames["Nlp"] = "Nlp";
24
+ Typenames["NlpEmbeddings"] = "NlpEmbeddings";
25
+ Typenames["QnA"] = "QnA";
24
26
  })(Typenames || (exports.Typenames = Typenames = {}));
25
27
  exports.NlpInstanceFragmentDoc = `
26
28
  fragment nlpInstance on NlpInstance {
@@ -34,6 +36,14 @@ exports.NlpInstanceFragmentDoc = `
34
36
  updatedAt
35
37
  }
36
38
  `;
39
+ exports.QnaFragmentFragmentDoc = `
40
+ fragment qnaFragment on QnAInstance {
41
+ id
42
+ name
43
+ createdAt
44
+ updatedAt
45
+ }
46
+ `;
37
47
  exports.GetNlpInstanceDocument = `
38
48
  query getNlpInstance($id: ID!) {
39
49
  getNlpInstance(id: $id) {
@@ -77,6 +87,54 @@ exports.TestNlpInstanceDocument = `
77
87
  }
78
88
  }
79
89
  `;
90
+ exports.GetQnAInstanceDocument = `
91
+ query getQnAInstance($id: ID!) {
92
+ getQnAInstance(id: $id) {
93
+ ...qnaFragment
94
+ }
95
+ }
96
+ ${exports.QnaFragmentFragmentDoc}`;
97
+ exports.ListQnAInstancesDocument = `
98
+ query listQnAInstances {
99
+ listQnAInstances {
100
+ ...qnaFragment
101
+ }
102
+ }
103
+ ${exports.QnaFragmentFragmentDoc}`;
104
+ exports.TestQnAInstanceDocument = `
105
+ query testQnAInstance($id: ID!, $input: String!, $history: String) {
106
+ testQnAInstance(id: $id, input: $input, history: $history) {
107
+ answer
108
+ context {
109
+ id
110
+ title
111
+ url
112
+ content
113
+ }
114
+ }
115
+ }
116
+ `;
117
+ exports.CreateQnAInstanceDocument = `
118
+ mutation createQnAInstance($input: CreateQnAInstanceInput!) {
119
+ createQnAInstance(input: $input) {
120
+ ...qnaFragment
121
+ }
122
+ }
123
+ ${exports.QnaFragmentFragmentDoc}`;
124
+ exports.UpdateQnAInstanceDocument = `
125
+ mutation updateQnAInstance($input: UpdateQnAInstanceInput!) {
126
+ updateQnAInstance(input: $input) {
127
+ ...qnaFragment
128
+ }
129
+ }
130
+ ${exports.QnaFragmentFragmentDoc}`;
131
+ exports.RemoveQnAInstanceDocument = `
132
+ mutation removeQnAInstance($input: RemoveQnAInstanceInput!) {
133
+ removeQnAInstance(input: $input) {
134
+ ...qnaFragment
135
+ }
136
+ }
137
+ ${exports.QnaFragmentFragmentDoc}`;
80
138
  function getSdk(requester) {
81
139
  return {
82
140
  getNlpInstance(variables, options) {
@@ -96,6 +154,24 @@ function getSdk(requester) {
96
154
  },
97
155
  testNlpInstance(variables, options) {
98
156
  return requester(exports.TestNlpInstanceDocument, variables, options);
157
+ },
158
+ getQnAInstance(variables, options) {
159
+ return requester(exports.GetQnAInstanceDocument, variables, options);
160
+ },
161
+ listQnAInstances(variables, options) {
162
+ return requester(exports.ListQnAInstancesDocument, variables, options);
163
+ },
164
+ testQnAInstance(variables, options) {
165
+ return requester(exports.TestQnAInstanceDocument, variables, options);
166
+ },
167
+ createQnAInstance(variables, options) {
168
+ return requester(exports.CreateQnAInstanceDocument, variables, options);
169
+ },
170
+ updateQnAInstance(variables, options) {
171
+ return requester(exports.UpdateQnAInstanceDocument, variables, options);
172
+ },
173
+ removeQnAInstance(variables, options) {
174
+ return requester(exports.RemoveQnAInstanceDocument, variables, options);
99
175
  }
100
176
  };
101
177
  }
@@ -534,6 +534,7 @@ export type TicketSearchFilterInput = {
534
534
  assigneeId?: InputMaybe<StringMatcherInput>;
535
535
  channelId?: InputMaybe<StringMatcherInput>;
536
536
  createdAt?: InputMaybe<NumberMatcherInput>;
537
+ customerId?: InputMaybe<StringMatcherInput>;
537
538
  priority?: InputMaybe<StringMatcherInput>;
538
539
  state?: InputMaybe<StringMatcherInput>;
539
540
  status?: InputMaybe<StringMatcherInput>;
@@ -139,9 +139,13 @@ export type AwsAccount = {
139
139
  tenantsCount: Scalars['Int']['output'];
140
140
  };
141
141
  export type AwsAccountParameters = {
142
+ mercadoLivreClientId?: Maybe<Scalars['String']['output']>;
143
+ mercadoLivreClientSecret?: Maybe<Scalars['String']['output']>;
142
144
  metaAppId?: Maybe<Scalars['String']['output']>;
143
145
  metaClientSecret?: Maybe<Scalars['String']['output']>;
144
146
  metaConfigurationId?: Maybe<Scalars['String']['output']>;
147
+ metaSystemUserId?: Maybe<Scalars['String']['output']>;
148
+ metaSystemUserToken?: Maybe<Scalars['String']['output']>;
145
149
  metaWebhookVerificationToken?: Maybe<Scalars['String']['output']>;
146
150
  openAIApiKey?: Maybe<Scalars['String']['output']>;
147
151
  typesenseApiKey?: Maybe<Scalars['String']['output']>;
@@ -171,7 +175,7 @@ export type CreateTenantInput = {
171
175
  billing?: InputMaybe<TenantBillingInput>;
172
176
  name?: InputMaybe<Scalars['String']['input']>;
173
177
  region?: InputMaybe<Scalars['String']['input']>;
174
- tenantId: Scalars['ID']['input'];
178
+ tenantId: Scalars['Tag']['input'];
175
179
  };
176
180
  export type DeployInput = {
177
181
  branch: Scalars['String']['input'];
@@ -314,7 +318,7 @@ export type QueryGetDeploymentArgs = {
314
318
  tenantId: Scalars['ID']['input'];
315
319
  };
316
320
  export type QueryGetTenantArgs = {
317
- tenantId: Scalars['ID']['input'];
321
+ tenantId: Scalars['Tag']['input'];
318
322
  };
319
323
  export type QueryListDeploymentsArgs = {
320
324
  limit?: InputMaybe<Scalars['Int']['input']>;
@@ -336,7 +340,7 @@ export type Region = {
336
340
  name: Scalars['String']['output'];
337
341
  };
338
342
  export type RemoveTenantInput = {
339
- tenantId: Scalars['ID']['input'];
343
+ tenantId: Scalars['Tag']['input'];
340
344
  };
341
345
  export type SearchResultsFacet = {
342
346
  name: Scalars['String']['output'];
@@ -403,7 +407,7 @@ export type Tenant = {
403
407
  name?: Maybe<Scalars['String']['output']>;
404
408
  region: Scalars['String']['output'];
405
409
  services: Array<Maybe<Service>>;
406
- tenantId: Scalars['ID']['output'];
410
+ tenantId: Scalars['Tag']['output'];
407
411
  updatedAt: Scalars['DateTime']['output'];
408
412
  };
409
413
  export type TenantBillingInput = {
@@ -416,9 +420,13 @@ export declare enum Typenames {
416
420
  }
417
421
  export type UpdateAccountParametersInput = {
418
422
  id: Scalars['ID']['input'];
423
+ mercadoLivreClientId?: InputMaybe<Scalars['String']['input']>;
424
+ mercadoLivreClientSecret?: InputMaybe<Scalars['String']['input']>;
419
425
  metaAppId?: InputMaybe<Scalars['String']['input']>;
420
426
  metaClientSecret?: InputMaybe<Scalars['String']['input']>;
421
427
  metaConfigurationId?: InputMaybe<Scalars['String']['input']>;
428
+ metaSystemUserId?: InputMaybe<Scalars['String']['input']>;
429
+ metaSystemUserToken?: InputMaybe<Scalars['String']['input']>;
422
430
  metaWebhookVerificationToken?: InputMaybe<Scalars['String']['input']>;
423
431
  openAIApiKey?: InputMaybe<Scalars['String']['input']>;
424
432
  typesenseApiKey?: InputMaybe<Scalars['String']['input']>;
@@ -427,11 +435,11 @@ export type UpdateAccountParametersInput = {
427
435
  export type UpdateTenantInput = {
428
436
  billing?: InputMaybe<TenantBillingInput>;
429
437
  name?: InputMaybe<Scalars['String']['input']>;
430
- tenantId: Scalars['ID']['input'];
438
+ tenantId: Scalars['Tag']['input'];
431
439
  };
432
440
  export type AwsAccountFragment = (Pick<AwsAccount, 'id' | 'name' | 'tenantsCount'> & {
433
441
  availableRegions: Array<RegionFragment>;
434
- parameters: Pick<AwsAccountParameters, 'typesenseNodes' | 'typesenseApiKey' | 'openAIApiKey' | 'metaAppId' | 'metaClientSecret' | 'metaConfigurationId' | 'metaWebhookVerificationToken'>;
442
+ parameters: Pick<AwsAccountParameters, 'typesenseNodes' | 'typesenseApiKey' | 'openAIApiKey' | 'metaAppId' | 'metaClientSecret' | 'metaConfigurationId' | 'metaWebhookVerificationToken' | 'metaSystemUserId' | 'metaSystemUserToken' | 'mercadoLivreClientId' | 'mercadoLivreClientSecret'>;
435
443
  });
436
444
  export type RegionFragment = Pick<Region, 'name'>;
437
445
  export type ListAccountsQueryVariables = Exact<{
@@ -538,7 +546,7 @@ export type TenantFragment = (Pick<Tenant, 'accountId' | 'tenantId' | 'name' | '
538
546
  account: Pick<AwsAccount, 'id' | 'name'>;
539
547
  });
540
548
  export type GetTenantQueryVariables = Exact<{
541
- tenantId: Scalars['ID']['input'];
549
+ tenantId: Scalars['Tag']['input'];
542
550
  withServices?: InputMaybe<Scalars['Boolean']['input']>;
543
551
  withDeployments?: InputMaybe<Scalars['Boolean']['input']>;
544
552
  }>;
@@ -577,15 +585,15 @@ export type RemoveTenantMutation = {
577
585
  removeTenant: TenantFragment;
578
586
  };
579
587
  export declare const RegionFragmentDoc = "\n fragment region on Region {\n name\n}\n ";
580
- export declare const AwsAccountFragmentDoc = "\n fragment awsAccount on AwsAccount {\n id\n name\n tenantsCount\n availableRegions {\n ...region\n }\n parameters {\n typesenseNodes\n typesenseApiKey\n openAIApiKey\n metaAppId\n metaClientSecret\n metaConfigurationId\n metaWebhookVerificationToken\n }\n}\n ";
588
+ export declare const AwsAccountFragmentDoc = "\n fragment awsAccount on AwsAccount {\n id\n name\n tenantsCount\n availableRegions {\n ...region\n }\n parameters {\n typesenseNodes\n typesenseApiKey\n openAIApiKey\n metaAppId\n metaClientSecret\n metaConfigurationId\n metaWebhookVerificationToken\n metaSystemUserId\n metaSystemUserToken\n mercadoLivreClientId\n mercadoLivreClientSecret\n }\n}\n ";
581
589
  export declare const DeploymentFragmentDoc = "\n fragment deployment on Deployment {\n id\n tenantId\n command\n gitRepository\n branch\n status\n message\n deployedVersion\n createdAt\n updatedAt\n}\n ";
582
590
  export declare const GitBranchFragmentDoc = "\n fragment gitBranch on GitBranch {\n name\n}\n ";
583
591
  export declare const GitRepositoryFragmentDoc = "\n fragment gitRepository on GitRepository {\n id\n name\n branches {\n ...gitBranch\n }\n}\n ";
584
592
  export declare const ServiceFragmentDoc = "\n fragment service on Service {\n accountId\n tenantId\n serviceId\n type\n endpoint\n}\n ";
585
593
  export declare const TenantFragmentDoc = "\n fragment tenant on Tenant {\n accountId\n tenantId\n name\n deployedVersions\n disabled\n createdAt\n updatedAt\n billing {\n reclameaqui {\n cutoffSyncDays\n }\n }\n account {\n id\n name\n }\n}\n ";
586
- export declare const ListAccountsDocument = "\n query listAccounts {\n listAccounts {\n ...awsAccount\n }\n}\n \n fragment awsAccount on AwsAccount {\n id\n name\n tenantsCount\n availableRegions {\n ...region\n }\n parameters {\n typesenseNodes\n typesenseApiKey\n openAIApiKey\n metaAppId\n metaClientSecret\n metaConfigurationId\n metaWebhookVerificationToken\n }\n}\n \n\n fragment region on Region {\n name\n}\n ";
594
+ export declare const ListAccountsDocument = "\n query listAccounts {\n listAccounts {\n ...awsAccount\n }\n}\n \n fragment awsAccount on AwsAccount {\n id\n name\n tenantsCount\n availableRegions {\n ...region\n }\n parameters {\n typesenseNodes\n typesenseApiKey\n openAIApiKey\n metaAppId\n metaClientSecret\n metaConfigurationId\n metaWebhookVerificationToken\n metaSystemUserId\n metaSystemUserToken\n mercadoLivreClientId\n mercadoLivreClientSecret\n }\n}\n \n\n fragment region on Region {\n name\n}\n ";
587
595
  export declare const ListRegionsDocument = "\n query listRegions {\n listRegions {\n ...region\n }\n}\n \n fragment region on Region {\n name\n}\n ";
588
- export declare const UpdateAccountParametersDocument = "\n mutation updateAccountParameters($input: UpdateAccountParametersInput!) {\n updateAccountParameters(input: $input) {\n ...awsAccount\n }\n}\n \n fragment awsAccount on AwsAccount {\n id\n name\n tenantsCount\n availableRegions {\n ...region\n }\n parameters {\n typesenseNodes\n typesenseApiKey\n openAIApiKey\n metaAppId\n metaClientSecret\n metaConfigurationId\n metaWebhookVerificationToken\n }\n}\n \n\n fragment region on Region {\n name\n}\n ";
596
+ export declare const UpdateAccountParametersDocument = "\n mutation updateAccountParameters($input: UpdateAccountParametersInput!) {\n updateAccountParameters(input: $input) {\n ...awsAccount\n }\n}\n \n fragment awsAccount on AwsAccount {\n id\n name\n tenantsCount\n availableRegions {\n ...region\n }\n parameters {\n typesenseNodes\n typesenseApiKey\n openAIApiKey\n metaAppId\n metaClientSecret\n metaConfigurationId\n metaWebhookVerificationToken\n metaSystemUserId\n metaSystemUserToken\n mercadoLivreClientId\n mercadoLivreClientSecret\n }\n}\n \n\n fragment region on Region {\n name\n}\n ";
589
597
  export declare const GetAmplifyConfigDocument = "\n query getAmplifyConfig($forDev: Boolean) {\n amplifyConfig(forDev: $forDev)\n}\n ";
590
598
  export declare const GetAuthInfoDocument = "\n query getAuthInfo {\n authInfo {\n authenticationEndpoint\n jwtIssuer\n loginUrl\n logoutUrl\n cognitoConfig {\n region\n userPoolId\n userPoolWebClientId\n }\n }\n}\n ";
591
599
  export declare const ListGitRepositoriesDocument = "\n query listGitRepositories {\n listGitRepositories {\n ...gitRepository\n }\n}\n \n fragment gitRepository on GitRepository {\n id\n name\n branches {\n ...gitBranch\n }\n}\n \n\n fragment gitBranch on GitBranch {\n name\n}\n ";
@@ -597,7 +605,7 @@ export declare const DeployDocument = "\n mutation deploy($input: DeployInput
597
605
  export declare const DestroyDocument = "\n mutation destroy($input: DestroyInput!) {\n destroy(input: $input) {\n ...deployment\n }\n}\n \n fragment deployment on Deployment {\n id\n tenantId\n command\n gitRepository\n branch\n status\n message\n deployedVersion\n createdAt\n updatedAt\n}\n ";
598
606
  export declare const BatchDeployDocument = "\n mutation batchDeploy($input: BatchDeployInput!) {\n batchDeploy(input: $input) {\n ...deployment\n }\n}\n \n fragment deployment on Deployment {\n id\n tenantId\n command\n gitRepository\n branch\n status\n message\n deployedVersion\n createdAt\n updatedAt\n}\n ";
599
607
  export declare const ListServicesDocument = "\n query listServices($tenantId: ID!) {\n listServices(tenantId: $tenantId) {\n ...service\n }\n}\n \n fragment service on Service {\n accountId\n tenantId\n serviceId\n type\n endpoint\n}\n ";
600
- export declare const GetTenantDocument = "\n query getTenant($tenantId: ID!, $withServices: Boolean = true, $withDeployments: Boolean = true) {\n getTenant(tenantId: $tenantId) {\n ...tenant\n services @include(if: $withServices) {\n ...service\n }\n deployments @include(if: $withDeployments) {\n ...deployment\n }\n }\n}\n \n fragment tenant on Tenant {\n accountId\n tenantId\n name\n deployedVersions\n disabled\n createdAt\n updatedAt\n billing {\n reclameaqui {\n cutoffSyncDays\n }\n }\n account {\n id\n name\n }\n}\n \n\n fragment service on Service {\n accountId\n tenantId\n serviceId\n type\n endpoint\n}\n \n\n fragment deployment on Deployment {\n id\n tenantId\n command\n gitRepository\n branch\n status\n message\n deployedVersion\n createdAt\n updatedAt\n}\n ";
608
+ export declare const GetTenantDocument = "\n query getTenant($tenantId: Tag!, $withServices: Boolean = true, $withDeployments: Boolean = true) {\n getTenant(tenantId: $tenantId) {\n ...tenant\n services @include(if: $withServices) {\n ...service\n }\n deployments @include(if: $withDeployments) {\n ...deployment\n }\n }\n}\n \n fragment tenant on Tenant {\n accountId\n tenantId\n name\n deployedVersions\n disabled\n createdAt\n updatedAt\n billing {\n reclameaqui {\n cutoffSyncDays\n }\n }\n account {\n id\n name\n }\n}\n \n\n fragment service on Service {\n accountId\n tenantId\n serviceId\n type\n endpoint\n}\n \n\n fragment deployment on Deployment {\n id\n tenantId\n command\n gitRepository\n branch\n status\n message\n deployedVersion\n createdAt\n updatedAt\n}\n ";
601
609
  export declare const ListTenantsDocument = "\n query listTenants($withServices: Boolean = false, $withDeployments: Boolean = false) {\n listTenants {\n ...tenant\n services @include(if: $withServices) {\n ...service\n }\n deployments @include(if: $withDeployments) {\n ...deployment\n }\n }\n}\n \n fragment tenant on Tenant {\n accountId\n tenantId\n name\n deployedVersions\n disabled\n createdAt\n updatedAt\n billing {\n reclameaqui {\n cutoffSyncDays\n }\n }\n account {\n id\n name\n }\n}\n \n\n fragment service on Service {\n accountId\n tenantId\n serviceId\n type\n endpoint\n}\n \n\n fragment deployment on Deployment {\n id\n tenantId\n command\n gitRepository\n branch\n status\n message\n deployedVersion\n createdAt\n updatedAt\n}\n ";
602
610
  export declare const CreateTenantDocument = "\n mutation createTenant($input: CreateTenantInput!) {\n createTenant(input: $input) {\n ...tenant\n }\n}\n \n fragment tenant on Tenant {\n accountId\n tenantId\n name\n deployedVersions\n disabled\n createdAt\n updatedAt\n billing {\n reclameaqui {\n cutoffSyncDays\n }\n }\n account {\n id\n name\n }\n}\n ";
603
611
  export declare const UpdateTenantDocument = "\n mutation updateTenant($input: UpdateTenantInput!) {\n updateTenant(input: $input) {\n ...tenant\n }\n}\n \n fragment tenant on Tenant {\n accountId\n tenantId\n name\n deployedVersions\n disabled\n createdAt\n updatedAt\n billing {\n reclameaqui {\n cutoffSyncDays\n }\n }\n account {\n id\n name\n }\n}\n ";
@@ -54,6 +54,10 @@ exports.AwsAccountFragmentDoc = `
54
54
  metaClientSecret
55
55
  metaConfigurationId
56
56
  metaWebhookVerificationToken
57
+ metaSystemUserId
58
+ metaSystemUserToken
59
+ mercadoLivreClientId
60
+ mercadoLivreClientSecret
57
61
  }
58
62
  }
59
63
  `;
@@ -231,7 +235,7 @@ exports.ListServicesDocument = `
231
235
  }
232
236
  ${exports.ServiceFragmentDoc}`;
233
237
  exports.GetTenantDocument = `
234
- query getTenant($tenantId: ID!, $withServices: Boolean = true, $withDeployments: Boolean = true) {
238
+ query getTenant($tenantId: Tag!, $withServices: Boolean = true, $withDeployments: Boolean = true) {
235
239
  getTenant(tenantId: $tenantId) {
236
240
  ...tenant
237
241
  services @include(if: $withServices) {