@droz-js/sdk 0.9.85 → 0.9.87

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.9.85",
4
+ "version": "0.9.87",
5
5
  "private": false,
6
6
  "exports": {
7
7
  ".": "./src/index.js",
package/src/drozbot.d.ts CHANGED
@@ -45,6 +45,21 @@ declare const DrozBot_base: new (options?: import("./client/http").HttpClientOpt
45
45
  predictIntent(variables: import("./sdks/drozbot").Exact<{
46
46
  input: import("./sdks/drozbot").PredictIntentInput;
47
47
  }>, options?: unknown): Promise<import("./sdks/drozbot").PredictIntentMutation>;
48
+ listWhatsAppBots(variables?: import("./sdks/drozbot").Exact<{
49
+ [key: string]: never;
50
+ }>, options?: unknown): Promise<import("./sdks/drozbot").ListWhatsAppBotsQuery>;
51
+ getWhatsAppBotDetails(variables: import("./sdks/drozbot").Exact<{
52
+ id: import("./sdks/drozbot").Scalars["ID"]["input"];
53
+ }>, options?: unknown): Promise<import("./sdks/drozbot").GetWhatsAppBotDetailsQuery>;
54
+ listWhatsAppBotTemplates(variables: import("./sdks/drozbot").Exact<{
55
+ id: import("./sdks/drozbot").Scalars["ID"]["input"];
56
+ }>, options?: unknown): Promise<import("./sdks/drozbot").ListWhatsAppBotTemplatesQuery>;
57
+ registerRootCredential(variables: import("./sdks/drozbot").Exact<{
58
+ input: import("./sdks/drozbot").DrozBotRootCredentialInput;
59
+ }>, options?: unknown): Promise<import("./sdks/drozbot").RegisterRootCredentialMutation>;
60
+ activeTrigger(variables: import("./sdks/drozbot").Exact<{
61
+ input: import("./sdks/drozbot").ActiveTriggerInput;
62
+ }>, options?: unknown): Promise<import("./sdks/drozbot").ActiveTriggerMutation>;
48
63
  };
49
64
  export declare class DrozBot extends DrozBot_base {
50
65
  }
@@ -122,6 +122,12 @@ export type Scalars = {
122
122
  output: void;
123
123
  };
124
124
  };
125
+ export type ActiveTriggerInput = {
126
+ botId: Scalars['ID']['input'];
127
+ templateContent: Scalars['String']['input'];
128
+ templateName: Scalars['String']['input'];
129
+ users: Array<DrozBotWhatsAppTemplateUser>;
130
+ };
125
131
  export type AgentInfo = {
126
132
  id: Scalars['ID']['output'];
127
133
  name: Scalars['String']['output'];
@@ -197,6 +203,9 @@ export declare enum DrozBotIntegrationType {
197
203
  Web = "Web",
198
204
  WhatsApp = "WhatsApp"
199
205
  }
206
+ export type DrozBotRootCredentialInput = {
207
+ credentialId: Scalars['ID']['input'];
208
+ };
200
209
  export type DrozBotTicket = {
201
210
  id: Scalars['ID']['output'];
202
211
  instanceId: Scalars['ID']['output'];
@@ -209,6 +218,39 @@ export declare enum DrozBotTicketMessageSender {
209
218
  Bot = "BOT",
210
219
  User = "USER"
211
220
  }
221
+ export type DrozBotWhatsAppBot = {
222
+ channel: Scalars['String']['output'];
223
+ deleted: Scalars['Boolean']['output'];
224
+ enabled: Scalars['Boolean']['output'];
225
+ id: Scalars['ID']['output'];
226
+ language: Scalars['String']['output'];
227
+ name: Scalars['String']['output'];
228
+ phone?: Maybe<Scalars['PhoneNumber']['output']>;
229
+ providerChannel: DrozBotWhatsAppBotProviders;
230
+ };
231
+ export declare enum DrozBotWhatsAppBotProviders {
232
+ Meta = "META"
233
+ }
234
+ export type DrozBotWhatsAppTemplate = {
235
+ approved: DrozBotWhatsAppTemplateStates;
236
+ content: Scalars['String']['output'];
237
+ contentButton?: Maybe<Scalars['String']['output']>;
238
+ deleted: Scalars['Boolean']['output'];
239
+ id: Scalars['ID']['output'];
240
+ language: Scalars['String']['output'];
241
+ templateName: Scalars['String']['output'];
242
+ type: DrozBotWhatsAppTemplateTypes;
243
+ };
244
+ export declare enum DrozBotWhatsAppTemplateStates {
245
+ Approved = "APPROVED"
246
+ }
247
+ export declare enum DrozBotWhatsAppTemplateTypes {
248
+ Text = "TEXT"
249
+ }
250
+ export type DrozBotWhatsAppTemplateUser = {
251
+ phone: Scalars['String']['input'];
252
+ vars: Array<Scalars['String']['input']>;
253
+ };
212
254
  export type I18nText = {
213
255
  lang: Scalars['Locale']['output'];
214
256
  value: Scalars['String']['output'];
@@ -236,17 +278,22 @@ export type IntentDictionaryEntityInput = {
236
278
  label: Scalars['String']['input'];
237
279
  };
238
280
  export type Mutation = {
281
+ activeTrigger?: Maybe<Scalars['Void']['output']>;
239
282
  createDrozBotInstance: DrozBotInstance;
240
283
  createDrozBotTicket: DrozBotTicket;
241
284
  createDrozBotTicketComment: DrozBotTicketComment;
242
285
  createDrozBotTicketComments: Array<DrozBotTicketComment>;
243
286
  predictIntent?: Maybe<Intent>;
287
+ registerRootCredential?: Maybe<Scalars['Void']['output']>;
244
288
  removeDrozBotInstance: DrozBotInstance;
245
289
  requestDrozBotAssess: Scalars['Boolean']['output'];
246
290
  updateDrozBotInstance: DrozBotInstance;
247
291
  upsertIntentDictionary?: Maybe<IntentDictionary>;
248
292
  version?: Maybe<Scalars['String']['output']>;
249
293
  };
294
+ export type MutationActiveTriggerArgs = {
295
+ input: ActiveTriggerInput;
296
+ };
250
297
  export type MutationCreateDrozBotInstanceArgs = {
251
298
  input: CreateDrozBotInstanceInput;
252
299
  };
@@ -262,6 +309,9 @@ export type MutationCreateDrozBotTicketCommentsArgs = {
262
309
  export type MutationPredictIntentArgs = {
263
310
  input: PredictIntentInput;
264
311
  };
312
+ export type MutationRegisterRootCredentialArgs = {
313
+ input: DrozBotRootCredentialInput;
314
+ };
265
315
  export type MutationRemoveDrozBotInstanceArgs = {
266
316
  input: RemoveDrozBotInstanceInput;
267
317
  };
@@ -306,8 +356,11 @@ export type Query = {
306
356
  getDrozBotInstance?: Maybe<DrozBotInstance>;
307
357
  getHttpEndpoint?: Maybe<Scalars['String']['output']>;
308
358
  getIntentDictionary?: Maybe<IntentDictionary>;
359
+ getWhatsAppBotDetails?: Maybe<DrozBotWhatsAppBot>;
309
360
  listDrozBotInstances: Array<Maybe<DrozBotInstance>>;
310
361
  listIntentDictionary: Array<IntentDictionary>;
362
+ listWhatsAppBotTemplates: Array<DrozBotWhatsAppTemplate>;
363
+ listWhatsAppBots: Array<DrozBotWhatsAppBot>;
311
364
  version?: Maybe<Scalars['String']['output']>;
312
365
  };
313
366
  export type QueryGetDrozBotInstanceArgs = {
@@ -316,6 +369,12 @@ export type QueryGetDrozBotInstanceArgs = {
316
369
  export type QueryGetIntentDictionaryArgs = {
317
370
  id: Scalars['ID']['input'];
318
371
  };
372
+ export type QueryGetWhatsAppBotDetailsArgs = {
373
+ id: Scalars['ID']['input'];
374
+ };
375
+ export type QueryListWhatsAppBotTemplatesArgs = {
376
+ id: Scalars['ID']['input'];
377
+ };
319
378
  export type RemoveDrozBotInstanceInput = {
320
379
  id: Scalars['ID']['input'];
321
380
  };
@@ -376,6 +435,7 @@ export declare enum Typenames {
376
435
  Any = "Any",
377
436
  DrozBotAssess = "DrozBotAssess",
378
437
  DrozBotInstance = "DrozBotInstance",
438
+ DrozBotRootAuth = "DrozBotRootAuth",
379
439
  DrozBotSession = "DrozBotSession",
380
440
  GraphqlConnections = "GraphqlConnections",
381
441
  GraphqlSubscriptions = "GraphqlSubscriptions",
@@ -474,10 +534,40 @@ export type PredictIntentMutationVariables = Exact<{
474
534
  export type PredictIntentMutation = {
475
535
  predictIntent?: Maybe<IntentFragment>;
476
536
  };
537
+ export type DrozBotWhatsAppBotFragment = Pick<DrozBotWhatsAppBot, 'id' | 'name' | 'enabled' | 'deleted' | 'channel' | 'providerChannel' | 'language' | 'phone'>;
538
+ export type DrozBotWhatsAppTemplateFragment = Pick<DrozBotWhatsAppTemplate, 'id' | 'templateName' | 'content' | 'contentButton' | 'language' | 'deleted' | 'approved' | 'type'>;
539
+ export type ListWhatsAppBotsQueryVariables = Exact<{
540
+ [key: string]: never;
541
+ }>;
542
+ export type ListWhatsAppBotsQuery = {
543
+ listWhatsAppBots: Array<DrozBotWhatsAppBotFragment>;
544
+ };
545
+ export type GetWhatsAppBotDetailsQueryVariables = Exact<{
546
+ id: Scalars['ID']['input'];
547
+ }>;
548
+ export type GetWhatsAppBotDetailsQuery = {
549
+ getWhatsAppBotDetails?: Maybe<DrozBotWhatsAppBotFragment>;
550
+ };
551
+ export type ListWhatsAppBotTemplatesQueryVariables = Exact<{
552
+ id: Scalars['ID']['input'];
553
+ }>;
554
+ export type ListWhatsAppBotTemplatesQuery = {
555
+ listWhatsAppBotTemplates: Array<DrozBotWhatsAppTemplateFragment>;
556
+ };
557
+ export type RegisterRootCredentialMutationVariables = Exact<{
558
+ input: DrozBotRootCredentialInput;
559
+ }>;
560
+ export type RegisterRootCredentialMutation = Pick<Mutation, 'registerRootCredential'>;
561
+ export type ActiveTriggerMutationVariables = Exact<{
562
+ input: ActiveTriggerInput;
563
+ }>;
564
+ export type ActiveTriggerMutation = Pick<Mutation, 'activeTrigger'>;
477
565
  export declare const DrozbotFragmentDoc = "\n fragment drozbot on DrozBotInstance {\n id\n name\n drn\n credentialId\n isTest\n integrationType\n createdAt\n updatedAt\n}\n ";
478
566
  export declare const DrozBotTicketCommentFragmentDoc = "\n fragment drozBotTicketComment on DrozBotTicketComment {\n id\n ticketId\n}\n ";
479
567
  export declare const IntentDictionaryFragmentDoc = "\n fragment intentDictionary on IntentDictionary {\n id\n entities {\n label\n keys\n }\n createdAt\n updatedAt\n}\n ";
480
568
  export declare const IntentFragmentDoc = "\n fragment intent on Intent {\n label\n score\n}\n ";
569
+ export declare const DrozBotWhatsAppBotFragmentDoc = "\n fragment drozBotWhatsAppBot on DrozBotWhatsAppBot {\n id\n name\n enabled\n deleted\n channel\n providerChannel\n language\n phone\n}\n ";
570
+ export declare const DrozBotWhatsAppTemplateFragmentDoc = "\n fragment drozBotWhatsAppTemplate on DrozBotWhatsAppTemplate {\n id\n templateName\n content\n contentButton\n language\n deleted\n approved\n type\n}\n ";
481
571
  export declare const GetDrozBotInstanceDocument = "\n query getDrozBotInstance($id: ID!) {\n getDrozBotInstance(id: $id) {\n ...drozbot\n }\n}\n \n fragment drozbot on DrozBotInstance {\n id\n name\n drn\n credentialId\n isTest\n integrationType\n createdAt\n updatedAt\n}\n ";
482
572
  export declare const ListDrozBotInstancesDocument = "\n query listDrozBotInstances {\n listDrozBotInstances {\n ...drozbot\n }\n}\n \n fragment drozbot on DrozBotInstance {\n id\n name\n drn\n credentialId\n isTest\n integrationType\n createdAt\n updatedAt\n}\n ";
483
573
  export declare const GetIntentDictionaryDocument = "\n query getIntentDictionary($id: ID!) {\n getIntentDictionary(id: $id) {\n ...intentDictionary\n }\n}\n \n fragment intentDictionary on IntentDictionary {\n id\n entities {\n label\n keys\n }\n createdAt\n updatedAt\n}\n ";
@@ -491,6 +581,11 @@ export declare const CreateDrozBotTicketCommentDocument = "\n mutation create
491
581
  export declare const RequestDrozBotAssessDocument = "\n mutation requestDrozBotAssess($input: RequestDrozBotAssessInput!) {\n requestDrozBotAssess(input: $input)\n}\n ";
492
582
  export declare const UpsertIntentDictionaryDocument = "\n mutation upsertIntentDictionary($input: UpsertIntentDictionaryInput!) {\n upsertIntentDictionary(input: $input) {\n ...intentDictionary\n }\n}\n \n fragment intentDictionary on IntentDictionary {\n id\n entities {\n label\n keys\n }\n createdAt\n updatedAt\n}\n ";
493
583
  export declare const PredictIntentDocument = "\n mutation predictIntent($input: PredictIntentInput!) {\n predictIntent(input: $input) {\n ...intent\n }\n}\n \n fragment intent on Intent {\n label\n score\n}\n ";
584
+ export declare const ListWhatsAppBotsDocument = "\n query listWhatsAppBots {\n listWhatsAppBots {\n ...drozBotWhatsAppBot\n }\n}\n \n fragment drozBotWhatsAppBot on DrozBotWhatsAppBot {\n id\n name\n enabled\n deleted\n channel\n providerChannel\n language\n phone\n}\n ";
585
+ export declare const GetWhatsAppBotDetailsDocument = "\n query getWhatsAppBotDetails($id: ID!) {\n getWhatsAppBotDetails(id: $id) {\n ...drozBotWhatsAppBot\n }\n}\n \n fragment drozBotWhatsAppBot on DrozBotWhatsAppBot {\n id\n name\n enabled\n deleted\n channel\n providerChannel\n language\n phone\n}\n ";
586
+ export declare const ListWhatsAppBotTemplatesDocument = "\n query listWhatsAppBotTemplates($id: ID!) {\n listWhatsAppBotTemplates(id: $id) {\n ...drozBotWhatsAppTemplate\n }\n}\n \n fragment drozBotWhatsAppTemplate on DrozBotWhatsAppTemplate {\n id\n templateName\n content\n contentButton\n language\n deleted\n approved\n type\n}\n ";
587
+ export declare const RegisterRootCredentialDocument = "\n mutation registerRootCredential($input: DrozBotRootCredentialInput!) {\n registerRootCredential(input: $input)\n}\n ";
588
+ export declare const ActiveTriggerDocument = "\n mutation activeTrigger($input: ActiveTriggerInput!) {\n activeTrigger(input: $input)\n}\n ";
494
589
  export type Requester<C = {}> = <R, V>(doc: string, vars?: V, options?: C) => Promise<R> | AsyncIterableIterator<R>;
495
590
  export declare function getSdk<C>(requester: Requester<C>): {
496
591
  getDrozBotInstance(variables: GetDrozBotInstanceQueryVariables, options?: C): Promise<GetDrozBotInstanceQuery>;
@@ -506,6 +601,11 @@ export declare function getSdk<C>(requester: Requester<C>): {
506
601
  requestDrozBotAssess(variables: RequestDrozBotAssessMutationVariables, options?: C): Promise<RequestDrozBotAssessMutation>;
507
602
  upsertIntentDictionary(variables: UpsertIntentDictionaryMutationVariables, options?: C): Promise<UpsertIntentDictionaryMutation>;
508
603
  predictIntent(variables: PredictIntentMutationVariables, options?: C): Promise<PredictIntentMutation>;
604
+ listWhatsAppBots(variables?: ListWhatsAppBotsQueryVariables, options?: C): Promise<ListWhatsAppBotsQuery>;
605
+ getWhatsAppBotDetails(variables: GetWhatsAppBotDetailsQueryVariables, options?: C): Promise<GetWhatsAppBotDetailsQuery>;
606
+ listWhatsAppBotTemplates(variables: ListWhatsAppBotTemplatesQueryVariables, options?: C): Promise<ListWhatsAppBotTemplatesQuery>;
607
+ registerRootCredential(variables: RegisterRootCredentialMutationVariables, options?: C): Promise<RegisterRootCredentialMutation>;
608
+ activeTrigger(variables: ActiveTriggerMutationVariables, options?: C): Promise<ActiveTriggerMutation>;
509
609
  };
510
610
  export type Sdk = ReturnType<typeof getSdk>;
511
611
  export declare const serviceName = "@droz/drozbot";
@@ -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.PredictIntentDocument = exports.UpsertIntentDictionaryDocument = exports.RequestDrozBotAssessDocument = exports.CreateDrozBotTicketCommentDocument = exports.CreateDrozBotTicketCommentsDocument = exports.CreateDrozBotTicketDocument = exports.RemoveDrozBotInstanceDocument = exports.UpdateDrozBotInstanceDocument = exports.CreateDrozBotInstanceDocument = exports.ListIntentDictionaryDocument = exports.GetIntentDictionaryDocument = exports.ListDrozBotInstancesDocument = exports.GetDrozBotInstanceDocument = exports.IntentFragmentDoc = exports.IntentDictionaryFragmentDoc = exports.DrozBotTicketCommentFragmentDoc = exports.DrozbotFragmentDoc = exports.Typenames = exports.DrozBotTicketMessageSender = exports.DrozBotIntegrationType = exports.DrozBotAssessType = exports.Can = exports.AppInstanceStatus = void 0;
4
+ exports.serviceName = exports.ActiveTriggerDocument = exports.RegisterRootCredentialDocument = exports.ListWhatsAppBotTemplatesDocument = exports.GetWhatsAppBotDetailsDocument = exports.ListWhatsAppBotsDocument = exports.PredictIntentDocument = exports.UpsertIntentDictionaryDocument = exports.RequestDrozBotAssessDocument = exports.CreateDrozBotTicketCommentDocument = exports.CreateDrozBotTicketCommentsDocument = exports.CreateDrozBotTicketDocument = exports.RemoveDrozBotInstanceDocument = exports.UpdateDrozBotInstanceDocument = exports.CreateDrozBotInstanceDocument = exports.ListIntentDictionaryDocument = exports.GetIntentDictionaryDocument = exports.ListDrozBotInstancesDocument = exports.GetDrozBotInstanceDocument = exports.DrozBotWhatsAppTemplateFragmentDoc = exports.DrozBotWhatsAppBotFragmentDoc = exports.IntentFragmentDoc = exports.IntentDictionaryFragmentDoc = exports.DrozBotTicketCommentFragmentDoc = exports.DrozbotFragmentDoc = exports.Typenames = exports.DrozBotWhatsAppTemplateTypes = exports.DrozBotWhatsAppTemplateStates = exports.DrozBotWhatsAppBotProviders = exports.DrozBotTicketMessageSender = exports.DrozBotIntegrationType = exports.DrozBotAssessType = exports.Can = exports.AppInstanceStatus = void 0;
5
5
  exports.getSdk = getSdk;
6
6
  var AppInstanceStatus;
7
7
  (function (AppInstanceStatus) {
@@ -30,11 +30,24 @@ var DrozBotTicketMessageSender;
30
30
  DrozBotTicketMessageSender["Bot"] = "BOT";
31
31
  DrozBotTicketMessageSender["User"] = "USER";
32
32
  })(DrozBotTicketMessageSender || (exports.DrozBotTicketMessageSender = DrozBotTicketMessageSender = {}));
33
+ var DrozBotWhatsAppBotProviders;
34
+ (function (DrozBotWhatsAppBotProviders) {
35
+ DrozBotWhatsAppBotProviders["Meta"] = "META";
36
+ })(DrozBotWhatsAppBotProviders || (exports.DrozBotWhatsAppBotProviders = DrozBotWhatsAppBotProviders = {}));
37
+ var DrozBotWhatsAppTemplateStates;
38
+ (function (DrozBotWhatsAppTemplateStates) {
39
+ DrozBotWhatsAppTemplateStates["Approved"] = "APPROVED";
40
+ })(DrozBotWhatsAppTemplateStates || (exports.DrozBotWhatsAppTemplateStates = DrozBotWhatsAppTemplateStates = {}));
41
+ var DrozBotWhatsAppTemplateTypes;
42
+ (function (DrozBotWhatsAppTemplateTypes) {
43
+ DrozBotWhatsAppTemplateTypes["Text"] = "TEXT";
44
+ })(DrozBotWhatsAppTemplateTypes || (exports.DrozBotWhatsAppTemplateTypes = DrozBotWhatsAppTemplateTypes = {}));
33
45
  var Typenames;
34
46
  (function (Typenames) {
35
47
  Typenames["Any"] = "Any";
36
48
  Typenames["DrozBotAssess"] = "DrozBotAssess";
37
49
  Typenames["DrozBotInstance"] = "DrozBotInstance";
50
+ Typenames["DrozBotRootAuth"] = "DrozBotRootAuth";
38
51
  Typenames["DrozBotSession"] = "DrozBotSession";
39
52
  Typenames["GraphqlConnections"] = "GraphqlConnections";
40
53
  Typenames["GraphqlSubscriptions"] = "GraphqlSubscriptions";
@@ -75,6 +88,30 @@ exports.IntentFragmentDoc = `
75
88
  score
76
89
  }
77
90
  `;
91
+ exports.DrozBotWhatsAppBotFragmentDoc = `
92
+ fragment drozBotWhatsAppBot on DrozBotWhatsAppBot {
93
+ id
94
+ name
95
+ enabled
96
+ deleted
97
+ channel
98
+ providerChannel
99
+ language
100
+ phone
101
+ }
102
+ `;
103
+ exports.DrozBotWhatsAppTemplateFragmentDoc = `
104
+ fragment drozBotWhatsAppTemplate on DrozBotWhatsAppTemplate {
105
+ id
106
+ templateName
107
+ content
108
+ contentButton
109
+ language
110
+ deleted
111
+ approved
112
+ type
113
+ }
114
+ `;
78
115
  exports.GetDrozBotInstanceDocument = `
79
116
  query getDrozBotInstance($id: ID!) {
80
117
  getDrozBotInstance(id: $id) {
@@ -166,6 +203,37 @@ exports.PredictIntentDocument = `
166
203
  }
167
204
  }
168
205
  ${exports.IntentFragmentDoc}`;
206
+ exports.ListWhatsAppBotsDocument = `
207
+ query listWhatsAppBots {
208
+ listWhatsAppBots {
209
+ ...drozBotWhatsAppBot
210
+ }
211
+ }
212
+ ${exports.DrozBotWhatsAppBotFragmentDoc}`;
213
+ exports.GetWhatsAppBotDetailsDocument = `
214
+ query getWhatsAppBotDetails($id: ID!) {
215
+ getWhatsAppBotDetails(id: $id) {
216
+ ...drozBotWhatsAppBot
217
+ }
218
+ }
219
+ ${exports.DrozBotWhatsAppBotFragmentDoc}`;
220
+ exports.ListWhatsAppBotTemplatesDocument = `
221
+ query listWhatsAppBotTemplates($id: ID!) {
222
+ listWhatsAppBotTemplates(id: $id) {
223
+ ...drozBotWhatsAppTemplate
224
+ }
225
+ }
226
+ ${exports.DrozBotWhatsAppTemplateFragmentDoc}`;
227
+ exports.RegisterRootCredentialDocument = `
228
+ mutation registerRootCredential($input: DrozBotRootCredentialInput!) {
229
+ registerRootCredential(input: $input)
230
+ }
231
+ `;
232
+ exports.ActiveTriggerDocument = `
233
+ mutation activeTrigger($input: ActiveTriggerInput!) {
234
+ activeTrigger(input: $input)
235
+ }
236
+ `;
169
237
  function getSdk(requester) {
170
238
  return {
171
239
  getDrozBotInstance(variables, options) {
@@ -206,6 +274,21 @@ function getSdk(requester) {
206
274
  },
207
275
  predictIntent(variables, options) {
208
276
  return requester(exports.PredictIntentDocument, variables, options);
277
+ },
278
+ listWhatsAppBots(variables, options) {
279
+ return requester(exports.ListWhatsAppBotsDocument, variables, options);
280
+ },
281
+ getWhatsAppBotDetails(variables, options) {
282
+ return requester(exports.GetWhatsAppBotDetailsDocument, variables, options);
283
+ },
284
+ listWhatsAppBotTemplates(variables, options) {
285
+ return requester(exports.ListWhatsAppBotTemplatesDocument, variables, options);
286
+ },
287
+ registerRootCredential(variables, options) {
288
+ return requester(exports.RegisterRootCredentialDocument, variables, options);
289
+ },
290
+ activeTrigger(variables, options) {
291
+ return requester(exports.ActiveTriggerDocument, variables, options);
209
292
  }
210
293
  };
211
294
  }
@@ -345,7 +345,7 @@ export type Customer = {
345
345
  externalId?: Maybe<Scalars['ID']['output']>;
346
346
  externalIds?: Maybe<Array<Scalars['ID']['output']>>;
347
347
  id: Scalars['ID']['output'];
348
- mergedIntoCustomerId?: Maybe<Scalars['ID']['output']>;
348
+ mergeHistory: Array<Scalars['ID']['output']>;
349
349
  name: Scalars['String']['output'];
350
350
  /** @deprecated Use phones instead */
351
351
  phone?: Maybe<Scalars['String']['output']>;
@@ -1434,7 +1434,7 @@ export type RemoveSystemCredentialsMutationVariables = Exact<{
1434
1434
  export type RemoveSystemCredentialsMutation = {
1435
1435
  removeSystemCredentials?: Maybe<SafeCredentialsFragment>;
1436
1436
  };
1437
- export type CustomerFragment = (Pick<Customer, 'id' | 'name' | 'alternateName' | 'email' | 'phone' | 'document' | 'externalId' | 'emails' | 'phones' | 'documents' | 'externalIds' | 'status' | 'createdAt' | 'updatedAt'> & {
1437
+ export type CustomerFragment = (Pick<Customer, 'id' | 'name' | 'alternateName' | 'email' | 'phone' | 'document' | 'externalId' | 'emails' | 'phones' | 'documents' | 'externalIds' | 'status' | 'mergeHistory' | 'createdAt' | 'updatedAt'> & {
1438
1438
  apps?: Maybe<Array<Pick<App, 'id' | 'name'>>>;
1439
1439
  });
1440
1440
  export type GetCustomerQueryVariables = Exact<{
@@ -1754,7 +1754,7 @@ export declare const AppInstanceFragmentDoc = "\n fragment appInstance on App
1754
1754
  export declare const AppWithInstancesFragmentDoc = "\n fragment appWithInstances on App {\n ...app\n instances {\n ...appInstance\n }\n}\n ";
1755
1755
  export declare const SafeCredentialsFragmentDoc = "\n fragment safeCredentials on SafeCredentials {\n id\n type\n description\n systemCredentials\n createdAt\n updatedAt\n}\n ";
1756
1756
  export declare const CredentialsWithSecretFragmentDoc = "\n fragment credentialsWithSecret on Credentials {\n ... on ICredentials {\n id\n type\n description\n systemCredentials\n createdAt\n updatedAt\n }\n ... on BasicCredentialsType {\n credentials {\n username\n password\n }\n }\n ... on ApiKeyCredentialsType {\n credentials {\n apiKey\n }\n }\n ... on OAuth2CredentialsType {\n credentials {\n clientId\n clientSecret\n }\n }\n ... on MetaCredentialsType {\n credentials {\n code\n accessToken\n wabaId\n }\n }\n ... on MercadoLivreCredentialsType {\n credentials {\n code\n }\n }\n}\n ";
1757
- export declare const CustomerFragmentDoc = "\n fragment customer on Customer {\n id\n name\n alternateName\n email\n phone\n document\n externalId\n emails\n phones\n documents\n externalIds\n apps {\n id\n name\n }\n status\n createdAt\n updatedAt\n}\n ";
1757
+ export declare const CustomerFragmentDoc = "\n fragment customer on Customer {\n id\n name\n alternateName\n email\n phone\n document\n externalId\n emails\n phones\n documents\n externalIds\n apps {\n id\n name\n }\n status\n mergeHistory\n createdAt\n updatedAt\n}\n ";
1758
1758
  export declare const CronJobFragmentDoc = "\n fragment cronJob on CronJob {\n appId\n id\n description\n expression\n event\n payload\n status\n timestamp\n times\n runs\n}\n ";
1759
1759
  export declare const PolicyFragmentDoc = "\n fragment policy on Policy {\n id\n action\n effect\n resource\n}\n ";
1760
1760
  export declare const RoleFragmentDoc = "\n fragment role on Role {\n id\n name\n policies {\n ...policy\n }\n}\n ";
@@ -1806,15 +1806,15 @@ export declare const CreateSystemCredentialsDocument = "\n mutation createSys
1806
1806
  export declare const UpdateCredentialsDocument = "\n mutation updateCredentials($input: UpdateCredentialsInput!) {\n updateCredentials(input: $input) {\n ...safeCredentials\n }\n}\n \n fragment safeCredentials on SafeCredentials {\n id\n type\n description\n systemCredentials\n createdAt\n updatedAt\n}\n ";
1807
1807
  export declare const RemoveCredentialsDocument = "\n mutation removeCredentials($input: RemoveCredentialsInput!) {\n removeCredentials(input: $input) {\n ...safeCredentials\n }\n}\n \n fragment safeCredentials on SafeCredentials {\n id\n type\n description\n systemCredentials\n createdAt\n updatedAt\n}\n ";
1808
1808
  export declare const RemoveSystemCredentialsDocument = "\n mutation removeSystemCredentials($input: RemoveCredentialsInput!) {\n removeSystemCredentials(input: $input) {\n ...safeCredentials\n }\n}\n \n fragment safeCredentials on SafeCredentials {\n id\n type\n description\n systemCredentials\n createdAt\n updatedAt\n}\n ";
1809
- export declare const GetCustomerDocument = "\n query getCustomer($identifier: ID!) {\n getCustomer(identifier: $identifier) {\n ...customer\n }\n}\n \n fragment customer on Customer {\n id\n name\n alternateName\n email\n phone\n document\n externalId\n emails\n phones\n documents\n externalIds\n apps {\n id\n name\n }\n status\n createdAt\n updatedAt\n}\n ";
1810
- export declare const BatchGetCustomersByIdDocument = "\n query batchGetCustomersById($ids: [ID!]!) {\n batchGetCustomersById(ids: $ids) {\n ...customer\n }\n}\n \n fragment customer on Customer {\n id\n name\n alternateName\n email\n phone\n document\n externalId\n emails\n phones\n documents\n externalIds\n apps {\n id\n name\n }\n status\n createdAt\n updatedAt\n}\n ";
1811
- export declare const ListCustomersDocument = "\n query listCustomers($next: Base64) {\n listCustomers(next: $next) {\n nodes {\n ...customer\n }\n pageInfo {\n hasNext\n next\n }\n }\n}\n \n fragment customer on Customer {\n id\n name\n alternateName\n email\n phone\n document\n externalId\n emails\n phones\n documents\n externalIds\n apps {\n id\n name\n }\n status\n createdAt\n updatedAt\n}\n ";
1812
- export declare const SearchCustomersDocument = "\n query searchCustomers($query: String, $page: Number) {\n searchCustomers(query: $query, page: $page) {\n nodes {\n ...customer\n }\n stats {\n found\n outOf\n page\n totalPages\n perPage\n searchTime\n }\n }\n}\n \n fragment customer on Customer {\n id\n name\n alternateName\n email\n phone\n document\n externalId\n emails\n phones\n documents\n externalIds\n apps {\n id\n name\n }\n status\n createdAt\n updatedAt\n}\n ";
1813
- export declare const CreateCustomerDocument = "\n mutation createCustomer($input: CreateCustomerInput) {\n createCustomer(input: $input) {\n ...customer\n }\n}\n \n fragment customer on Customer {\n id\n name\n alternateName\n email\n phone\n document\n externalId\n emails\n phones\n documents\n externalIds\n apps {\n id\n name\n }\n status\n createdAt\n updatedAt\n}\n ";
1814
- export declare const GetOrCreateCustomerDocument = "\n mutation getOrCreateCustomer($input: GetOrCreateCustomerInput!) {\n getOrCreateCustomer(input: $input) {\n ...customer\n }\n}\n \n fragment customer on Customer {\n id\n name\n alternateName\n email\n phone\n document\n externalId\n emails\n phones\n documents\n externalIds\n apps {\n id\n name\n }\n status\n createdAt\n updatedAt\n}\n ";
1815
- export declare const UpdateCustomerDocument = "\n mutation updateCustomer($input: UpdateCustomerInput!) {\n updateCustomer(input: $input) {\n ...customer\n }\n}\n \n fragment customer on Customer {\n id\n name\n alternateName\n email\n phone\n document\n externalId\n emails\n phones\n documents\n externalIds\n apps {\n id\n name\n }\n status\n createdAt\n updatedAt\n}\n ";
1809
+ export declare const GetCustomerDocument = "\n query getCustomer($identifier: ID!) {\n getCustomer(identifier: $identifier) {\n ...customer\n }\n}\n \n fragment customer on Customer {\n id\n name\n alternateName\n email\n phone\n document\n externalId\n emails\n phones\n documents\n externalIds\n apps {\n id\n name\n }\n status\n mergeHistory\n createdAt\n updatedAt\n}\n ";
1810
+ export declare const BatchGetCustomersByIdDocument = "\n query batchGetCustomersById($ids: [ID!]!) {\n batchGetCustomersById(ids: $ids) {\n ...customer\n }\n}\n \n fragment customer on Customer {\n id\n name\n alternateName\n email\n phone\n document\n externalId\n emails\n phones\n documents\n externalIds\n apps {\n id\n name\n }\n status\n mergeHistory\n createdAt\n updatedAt\n}\n ";
1811
+ export declare const ListCustomersDocument = "\n query listCustomers($next: Base64) {\n listCustomers(next: $next) {\n nodes {\n ...customer\n }\n pageInfo {\n hasNext\n next\n }\n }\n}\n \n fragment customer on Customer {\n id\n name\n alternateName\n email\n phone\n document\n externalId\n emails\n phones\n documents\n externalIds\n apps {\n id\n name\n }\n status\n mergeHistory\n createdAt\n updatedAt\n}\n ";
1812
+ export declare const SearchCustomersDocument = "\n query searchCustomers($query: String, $page: Number) {\n searchCustomers(query: $query, page: $page) {\n nodes {\n ...customer\n }\n stats {\n found\n outOf\n page\n totalPages\n perPage\n searchTime\n }\n }\n}\n \n fragment customer on Customer {\n id\n name\n alternateName\n email\n phone\n document\n externalId\n emails\n phones\n documents\n externalIds\n apps {\n id\n name\n }\n status\n mergeHistory\n createdAt\n updatedAt\n}\n ";
1813
+ export declare const CreateCustomerDocument = "\n mutation createCustomer($input: CreateCustomerInput) {\n createCustomer(input: $input) {\n ...customer\n }\n}\n \n fragment customer on Customer {\n id\n name\n alternateName\n email\n phone\n document\n externalId\n emails\n phones\n documents\n externalIds\n apps {\n id\n name\n }\n status\n mergeHistory\n createdAt\n updatedAt\n}\n ";
1814
+ export declare const GetOrCreateCustomerDocument = "\n mutation getOrCreateCustomer($input: GetOrCreateCustomerInput!) {\n getOrCreateCustomer(input: $input) {\n ...customer\n }\n}\n \n fragment customer on Customer {\n id\n name\n alternateName\n email\n phone\n document\n externalId\n emails\n phones\n documents\n externalIds\n apps {\n id\n name\n }\n status\n mergeHistory\n createdAt\n updatedAt\n}\n ";
1815
+ export declare const UpdateCustomerDocument = "\n mutation updateCustomer($input: UpdateCustomerInput!) {\n updateCustomer(input: $input) {\n ...customer\n }\n}\n \n fragment customer on Customer {\n id\n name\n alternateName\n email\n phone\n document\n externalId\n emails\n phones\n documents\n externalIds\n apps {\n id\n name\n }\n status\n mergeHistory\n createdAt\n updatedAt\n}\n ";
1816
1816
  export declare const DeleteCustomerDocument = "\n mutation deleteCustomer($id: ID!) {\n deleteCustomer(id: $id)\n}\n ";
1817
- export declare const MergeCustomersDocument = "\n mutation mergeCustomers($input: MergeCustomersInput!) {\n mergeCustomers(input: $input) {\n ...customer\n }\n}\n \n fragment customer on Customer {\n id\n name\n alternateName\n email\n phone\n document\n externalId\n emails\n phones\n documents\n externalIds\n apps {\n id\n name\n }\n status\n createdAt\n updatedAt\n}\n ";
1817
+ export declare const MergeCustomersDocument = "\n mutation mergeCustomers($input: MergeCustomersInput!) {\n mergeCustomers(input: $input) {\n ...customer\n }\n}\n \n fragment customer on Customer {\n id\n name\n alternateName\n email\n phone\n document\n externalId\n emails\n phones\n documents\n externalIds\n apps {\n id\n name\n }\n status\n mergeHistory\n createdAt\n updatedAt\n}\n ";
1818
1818
  export declare const GetCronJobDocument = "\n query getCronJob($id: ID!) {\n getCronJob(id: $id) {\n ...cronJob\n }\n}\n \n fragment cronJob on CronJob {\n appId\n id\n description\n expression\n event\n payload\n status\n timestamp\n times\n runs\n}\n ";
1819
1819
  export declare const ListCronJobsDocument = "\n query listCronJobs {\n listCronJobs {\n ...cronJob\n }\n}\n \n fragment cronJob on CronJob {\n appId\n id\n description\n expression\n event\n payload\n status\n timestamp\n times\n runs\n}\n ";
1820
1820
  export declare const CreateCronJobDocument = "\n mutation createCronJob($input: CreateCronJobInput!) {\n createCronJob(input: $input) {\n ...cronJob\n }\n}\n \n fragment cronJob on CronJob {\n appId\n id\n description\n expression\n event\n payload\n status\n timestamp\n times\n runs\n}\n ";
@@ -1823,9 +1823,9 @@ export declare const RemoveCronJobDocument = "\n mutation removeCronJob($inpu
1823
1823
  export declare const ListSystemRolesDocument = "\n query listSystemRoles {\n listSystemRoles {\n ...role\n }\n}\n \n fragment role on Role {\n id\n name\n policies {\n ...policy\n }\n}\n \n\n fragment policy on Policy {\n id\n action\n effect\n resource\n}\n ";
1824
1824
  export declare const GetSystemRoleDocument = "\n query getSystemRole($id: ID!) {\n getSystemRole(id: $id) {\n ...role\n }\n}\n \n fragment role on Role {\n id\n name\n policies {\n ...policy\n }\n}\n \n\n fragment policy on Policy {\n id\n action\n effect\n resource\n}\n ";
1825
1825
  export declare const CheckPermissionsDocument = "\n query checkPermissions($can: Can!, $resources: [String!]!) {\n checkPermissions(can: $can, resources: $resources)\n}\n ";
1826
- export declare const StartSessionDocument = "\n mutation startSession($input: StartSessionInput!, $withCustomer: Boolean = true) {\n startSession(input: $input) {\n ...session\n customer @include(if: $withCustomer) {\n ...customer\n }\n }\n}\n \n fragment session on Session {\n sessionId\n customerId\n stateMachineId\n triggerDrn\n status\n}\n \n\n fragment customer on Customer {\n id\n name\n alternateName\n email\n phone\n document\n externalId\n emails\n phones\n documents\n externalIds\n apps {\n id\n name\n }\n status\n createdAt\n updatedAt\n}\n ";
1826
+ export declare const StartSessionDocument = "\n mutation startSession($input: StartSessionInput!, $withCustomer: Boolean = true) {\n startSession(input: $input) {\n ...session\n customer @include(if: $withCustomer) {\n ...customer\n }\n }\n}\n \n fragment session on Session {\n sessionId\n customerId\n stateMachineId\n triggerDrn\n status\n}\n \n\n fragment customer on Customer {\n id\n name\n alternateName\n email\n phone\n document\n externalId\n emails\n phones\n documents\n externalIds\n apps {\n id\n name\n }\n status\n mergeHistory\n createdAt\n updatedAt\n}\n ";
1827
1827
  export declare const StartCustomSessionDocument = "\n mutation startCustomSession($input: StartSessionInput!) {\n startCustomSession(input: $input) {\n ...session\n }\n}\n \n fragment session on Session {\n sessionId\n customerId\n stateMachineId\n triggerDrn\n status\n}\n ";
1828
- export declare const GetSessionDocument = "\n query getSession($sessionId: ID!, $withCustomer: Boolean = true, $withAttributes: Boolean = true) {\n getSession(sessionId: $sessionId) {\n ...session\n customer @include(if: $withCustomer) {\n ...customer\n }\n attributes @include(if: $withAttributes)\n }\n}\n \n fragment session on Session {\n sessionId\n customerId\n stateMachineId\n triggerDrn\n status\n}\n \n\n fragment customer on Customer {\n id\n name\n alternateName\n email\n phone\n document\n externalId\n emails\n phones\n documents\n externalIds\n apps {\n id\n name\n }\n status\n createdAt\n updatedAt\n}\n ";
1828
+ export declare const GetSessionDocument = "\n query getSession($sessionId: ID!, $withCustomer: Boolean = true, $withAttributes: Boolean = true) {\n getSession(sessionId: $sessionId) {\n ...session\n customer @include(if: $withCustomer) {\n ...customer\n }\n attributes @include(if: $withAttributes)\n }\n}\n \n fragment session on Session {\n sessionId\n customerId\n stateMachineId\n triggerDrn\n status\n}\n \n\n fragment customer on Customer {\n id\n name\n alternateName\n email\n phone\n document\n externalId\n emails\n phones\n documents\n externalIds\n apps {\n id\n name\n }\n status\n mergeHistory\n createdAt\n updatedAt\n}\n ";
1829
1829
  export declare const GetSessionSchemaDocument = "\n query getSessionSchema($lang: String) {\n getSessionSchema(lang: $lang) {\n ...sessionSchema\n }\n}\n \n fragment sessionSchema on AppSessionSchemaFields {\n name\n fields {\n name\n description\n }\n}\n ";
1830
1830
  export declare const GetSessionSchemaForAppIdDocument = "\n query getSessionSchemaForAppId($appId: ID!, $lang: String) {\n getSessionSchemaForAppId(appId: $appId, lang: $lang) {\n ...sessionSchema\n }\n}\n \n fragment sessionSchema on AppSessionSchemaFields {\n name\n fields {\n name\n description\n }\n}\n ";
1831
1831
  export declare const SearchSessionsDocument = "\n query searchSessions($q: String) {\n searchSessions(q: $q) {\n sessionId\n customerId\n stateMachineId\n triggerDrn\n status\n customer\n attributes\n context\n messages\n }\n}\n ";
@@ -222,6 +222,7 @@ exports.CustomerFragmentDoc = `
222
222
  name
223
223
  }
224
224
  status
225
+ mergeHistory
225
226
  createdAt
226
227
  updatedAt
227
228
  }