@awell-health/awell-extensions 2.0.229 → 2.0.231

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 (67) hide show
  1. package/dist/extensions/bland/actions/getCallDetails/config/dataPoints.d.ts +48 -0
  2. package/dist/extensions/bland/actions/getCallDetails/config/dataPoints.js +48 -0
  3. package/dist/extensions/bland/actions/getCallDetails/config/dataPoints.js.map +1 -1
  4. package/dist/extensions/bland/actions/getCallDetails/config/fields.js +1 -1
  5. package/dist/extensions/bland/actions/getCallDetails/config/fields.js.map +1 -1
  6. package/dist/extensions/bland/actions/getCallDetails/getCallDetails.js +24 -8
  7. package/dist/extensions/bland/actions/getCallDetails/getCallDetails.js.map +1 -1
  8. package/dist/extensions/bland/actions/index.d.ts +542 -1
  9. package/dist/extensions/bland/actions/sendCall/config/dataPoints.js +0 -2
  10. package/dist/extensions/bland/actions/sendCall/config/dataPoints.js.map +1 -1
  11. package/dist/extensions/bland/actions/sendCall/config/fields.d.ts +360 -2
  12. package/dist/extensions/bland/actions/sendCall/config/fields.js +291 -36
  13. package/dist/extensions/bland/actions/sendCall/config/fields.js.map +1 -1
  14. package/dist/extensions/bland/actions/sendCall/sendCall.js +23 -40
  15. package/dist/extensions/bland/actions/sendCall/sendCall.js.map +1 -1
  16. package/dist/extensions/bland/actions/sendCallWithPathway/config/dataPoints.js +0 -2
  17. package/dist/extensions/bland/actions/sendCallWithPathway/config/dataPoints.js.map +1 -1
  18. package/dist/extensions/bland/actions/sendCallWithPathway/config/fields.d.ts +370 -2
  19. package/dist/extensions/bland/actions/sendCallWithPathway/config/fields.js +300 -37
  20. package/dist/extensions/bland/actions/sendCallWithPathway/config/fields.js.map +1 -1
  21. package/dist/extensions/bland/actions/sendCallWithPathway/sendCallWithPathway.js +23 -40
  22. package/dist/extensions/bland/actions/sendCallWithPathway/sendCallWithPathway.js.map +1 -1
  23. package/dist/extensions/bland/api/schema/GetCallDetails.schema.d.ts +20 -29
  24. package/dist/extensions/bland/api/schema/GetCallDetails.schema.js +8 -9
  25. package/dist/extensions/bland/api/schema/GetCallDetails.schema.js.map +1 -1
  26. package/dist/extensions/bland/api/schema/SendCall.schema.d.ts +281 -34
  27. package/dist/extensions/bland/api/schema/SendCall.schema.js +53 -15
  28. package/dist/extensions/bland/api/schema/SendCall.schema.js.map +1 -1
  29. package/dist/extensions/bland/api/schema/atoms/BackgroundTrackSchema.d.ts +8 -0
  30. package/dist/extensions/bland/api/schema/atoms/BackgroundTrackSchema.js +26 -0
  31. package/dist/extensions/bland/api/schema/atoms/BackgroundTrackSchema.js.map +1 -0
  32. package/dist/extensions/bland/api/schema/atoms/ModelSchema.d.ts +2 -0
  33. package/dist/extensions/bland/api/schema/atoms/ModelSchema.js +6 -0
  34. package/dist/extensions/bland/api/schema/atoms/ModelSchema.js.map +1 -0
  35. package/dist/extensions/bland/api/schema/atoms/VoicemailActionSchema.d.ts +2 -0
  36. package/dist/extensions/bland/api/schema/atoms/VoicemailActionSchema.js +10 -0
  37. package/dist/extensions/bland/api/schema/atoms/VoicemailActionSchema.js.map +1 -0
  38. package/dist/extensions/bland/api/schema/atoms/WebhookEventsSchema.d.ts +2 -0
  39. package/dist/extensions/bland/api/schema/atoms/WebhookEventsSchema.js +6 -0
  40. package/dist/extensions/bland/api/schema/atoms/WebhookEventsSchema.js.map +1 -0
  41. package/dist/extensions/bland/api/schema/atoms/index.d.ts +4 -0
  42. package/dist/extensions/bland/api/schema/atoms/index.js +21 -0
  43. package/dist/extensions/bland/api/schema/atoms/index.js.map +1 -0
  44. package/dist/extensions/bland/index.js +2 -0
  45. package/dist/extensions/bland/index.js.map +1 -1
  46. package/dist/extensions/bland/lib/sharedActionFields.d.ts +8 -0
  47. package/dist/extensions/bland/lib/sharedActionFields.js +59 -0
  48. package/dist/extensions/bland/lib/sharedActionFields.js.map +1 -0
  49. package/dist/extensions/bland/webhooks/CallCompleted/__testdata__/callCompleted.mock.d.ts +68 -0
  50. package/dist/extensions/bland/webhooks/CallCompleted/__testdata__/callCompleted.mock.js +108 -0
  51. package/dist/extensions/bland/webhooks/CallCompleted/__testdata__/callCompleted.mock.js.map +1 -0
  52. package/dist/extensions/bland/webhooks/CallCompleted/callCompleted.d.ts +12 -0
  53. package/dist/extensions/bland/webhooks/CallCompleted/callCompleted.js +31 -0
  54. package/dist/extensions/bland/webhooks/CallCompleted/callCompleted.js.map +1 -0
  55. package/dist/extensions/bland/webhooks/CallCompleted/index.d.ts +1 -0
  56. package/dist/extensions/bland/webhooks/CallCompleted/index.js +18 -0
  57. package/dist/extensions/bland/webhooks/CallCompleted/index.js.map +1 -0
  58. package/dist/extensions/bland/webhooks/CallCompleted/types.d.ts +37 -0
  59. package/dist/extensions/bland/webhooks/CallCompleted/types.js +3 -0
  60. package/dist/extensions/bland/webhooks/CallCompleted/types.js.map +1 -0
  61. package/dist/extensions/bland/webhooks/index.d.ts +9 -0
  62. package/dist/extensions/bland/webhooks/index.js +6 -0
  63. package/dist/extensions/bland/webhooks/index.js.map +1 -0
  64. package/dist/extensions/markdown.json +1 -1
  65. package/dist/extensions/text-em-all/actions/createCallBroadcast/config.d.ts +20 -20
  66. package/dist/extensions/text-em-all/actions/types.d.ts +14 -14
  67. package/package.json +1 -1
@@ -1,4 +1,5 @@
1
1
  import { FieldType, StringType } from '@awell-health/extensions-core';
2
+ import { BackgroundTrackEnum } from '../../../api/schema/atoms';
2
3
  import z from 'zod';
3
4
  export declare const fields: {
4
5
  phoneNumber: {
@@ -16,6 +17,280 @@ export declare const fields: {
16
17
  type: FieldType.TEXT;
17
18
  required: true;
18
19
  };
20
+ pathwayVersion: {
21
+ id: string;
22
+ label: string;
23
+ description: string;
24
+ type: FieldType.NUMERIC;
25
+ required: false;
26
+ };
27
+ voice: {
28
+ id: string;
29
+ label: string;
30
+ description: string;
31
+ type: FieldType.STRING;
32
+ required: false;
33
+ };
34
+ background_track: {
35
+ id: string;
36
+ label: string;
37
+ description: string;
38
+ type: FieldType.STRING;
39
+ required: false;
40
+ options: {
41
+ dropdownOptions: {
42
+ value: z.TypeOf<typeof BackgroundTrackEnum>;
43
+ label: string;
44
+ }[];
45
+ };
46
+ };
47
+ first_sentence: {
48
+ id: string;
49
+ label: string;
50
+ description: string;
51
+ type: FieldType.STRING;
52
+ required: false;
53
+ };
54
+ wait_for_greeting: {
55
+ id: string;
56
+ label: string;
57
+ description: string;
58
+ type: FieldType.STRING;
59
+ required: false;
60
+ options: {
61
+ dropdownOptions: {
62
+ value: string;
63
+ label: string;
64
+ }[];
65
+ };
66
+ };
67
+ block_interruptions: {
68
+ id: string;
69
+ label: string;
70
+ description: string;
71
+ type: FieldType.STRING;
72
+ required: false;
73
+ options: {
74
+ dropdownOptions: {
75
+ value: string;
76
+ label: string;
77
+ }[];
78
+ };
79
+ };
80
+ interruption_threshold: {
81
+ id: string;
82
+ label: string;
83
+ description: string;
84
+ type: FieldType.NUMERIC;
85
+ required: false;
86
+ };
87
+ model: {
88
+ id: string;
89
+ label: string;
90
+ description: string;
91
+ type: FieldType.STRING;
92
+ required: false;
93
+ options: {
94
+ dropdownOptions: {
95
+ label: "base" | "turbo";
96
+ value: "base" | "turbo";
97
+ }[];
98
+ };
99
+ };
100
+ temperature: {
101
+ id: string;
102
+ label: string;
103
+ description: string;
104
+ type: FieldType.NUMERIC;
105
+ required: false;
106
+ };
107
+ dynamic_data: {
108
+ id: string;
109
+ label: string;
110
+ description: string;
111
+ type: FieldType.JSON;
112
+ required: false;
113
+ };
114
+ keywords: {
115
+ id: string;
116
+ label: string;
117
+ description: string;
118
+ type: FieldType.STRING;
119
+ required: false;
120
+ };
121
+ pronunciation_guide: {
122
+ id: string;
123
+ label: string;
124
+ description: string;
125
+ type: FieldType.JSON;
126
+ required: false;
127
+ };
128
+ language: {
129
+ id: string;
130
+ label: string;
131
+ description: string;
132
+ type: FieldType.STRING;
133
+ required: false;
134
+ };
135
+ local_dialing: {
136
+ id: string;
137
+ label: string;
138
+ description: string;
139
+ type: FieldType.STRING;
140
+ required: false;
141
+ options: {
142
+ dropdownOptions: {
143
+ value: string;
144
+ label: string;
145
+ }[];
146
+ };
147
+ };
148
+ voicemail_sms: {
149
+ id: string;
150
+ label: string;
151
+ description: string;
152
+ type: FieldType.JSON;
153
+ required: false;
154
+ };
155
+ dispatch_hours: {
156
+ id: string;
157
+ label: string;
158
+ description: string;
159
+ type: FieldType.JSON;
160
+ required: false;
161
+ };
162
+ sensitive_voicemail_detection: {
163
+ id: string;
164
+ label: string;
165
+ description: string;
166
+ type: FieldType.STRING;
167
+ required: false;
168
+ options: {
169
+ dropdownOptions: {
170
+ value: string;
171
+ label: string;
172
+ }[];
173
+ };
174
+ };
175
+ noise_cancellation: {
176
+ id: string;
177
+ label: string;
178
+ description: string;
179
+ type: FieldType.STRING;
180
+ required: false;
181
+ options: {
182
+ dropdownOptions: {
183
+ value: string;
184
+ label: string;
185
+ }[];
186
+ };
187
+ };
188
+ ignore_button_press: {
189
+ id: string;
190
+ label: string;
191
+ description: string;
192
+ type: FieldType.STRING;
193
+ required: false;
194
+ options: {
195
+ dropdownOptions: {
196
+ value: string;
197
+ label: string;
198
+ }[];
199
+ };
200
+ };
201
+ timezone: {
202
+ id: string;
203
+ label: string;
204
+ description: string;
205
+ type: FieldType.STRING;
206
+ required: false;
207
+ options: {
208
+ dropdownOptions: import("../../../../awell/v1/actions/updatePatient/config/getTimezones").OptionProps[];
209
+ };
210
+ };
211
+ tools: {
212
+ id: string;
213
+ label: string;
214
+ description: string;
215
+ type: FieldType.JSON;
216
+ required: false;
217
+ };
218
+ voicemail_message: {
219
+ id: string;
220
+ label: string;
221
+ description: string;
222
+ type: FieldType.STRING;
223
+ required: false;
224
+ };
225
+ voicemail_action: {
226
+ id: string;
227
+ label: string;
228
+ description: string;
229
+ type: FieldType.JSON;
230
+ required: false;
231
+ };
232
+ retry: {
233
+ id: string;
234
+ label: string;
235
+ description: string;
236
+ type: FieldType.JSON;
237
+ required: false;
238
+ };
239
+ max_duration: {
240
+ id: string;
241
+ label: string;
242
+ description: string;
243
+ type: FieldType.NUMERIC;
244
+ required: false;
245
+ };
246
+ record: {
247
+ id: string;
248
+ label: string;
249
+ description: string;
250
+ type: FieldType.STRING;
251
+ required: false;
252
+ options: {
253
+ dropdownOptions: {
254
+ value: string;
255
+ label: string;
256
+ }[];
257
+ };
258
+ };
259
+ metadata: {
260
+ id: string;
261
+ label: string;
262
+ description: string;
263
+ type: FieldType.JSON;
264
+ required: false;
265
+ };
266
+ analysis_preset: {
267
+ id: string;
268
+ label: string;
269
+ description: string;
270
+ type: FieldType.STRING;
271
+ required: false;
272
+ };
273
+ available_tags: {
274
+ id: string;
275
+ label: string;
276
+ description: string;
277
+ type: FieldType.STRING;
278
+ required: false;
279
+ };
280
+ geospatial_dialing: {
281
+ id: string;
282
+ label: string;
283
+ description: string;
284
+ type: FieldType.STRING;
285
+ required: false;
286
+ };
287
+ precall_dtmf_sequence: {
288
+ id: string;
289
+ label: string;
290
+ description: string;
291
+ type: FieldType.STRING;
292
+ required: false;
293
+ };
19
294
  requestData: {
20
295
  id: string;
21
296
  label: string;
@@ -34,16 +309,109 @@ export declare const fields: {
34
309
  export declare const FieldsValidationSchema: z.ZodObject<{
35
310
  phoneNumber: z.ZodString;
36
311
  pathwayId: z.ZodString;
37
- requestData: z.ZodEffects<z.ZodOptional<z.ZodString>, Record<string, unknown> | undefined, string | undefined>;
38
- analysisSchema: z.ZodEffects<z.ZodOptional<z.ZodString>, Record<string, unknown> | undefined, string | undefined>;
312
+ pathwayVersion: z.ZodOptional<z.ZodNumber>;
313
+ voice: z.ZodOptional<z.ZodString>;
314
+ background_track: z.ZodOptional<z.ZodEnum<["null", "office", "cafe", "restaurant", "none"]>>;
315
+ first_sentence: z.ZodOptional<z.ZodString>;
316
+ wait_for_greeting: z.ZodOptional<z.ZodEffects<z.ZodEnum<["true", "false"]>, boolean, "true" | "false">>;
317
+ block_interruptions: z.ZodOptional<z.ZodEffects<z.ZodEnum<["true", "false"]>, boolean, "true" | "false">>;
318
+ interruption_threshold: z.ZodOptional<z.ZodNumber>;
319
+ model: z.ZodOptional<z.ZodEnum<["base", "turbo"]>>;
320
+ temperature: z.ZodOptional<z.ZodNumber>;
321
+ dynamic_data: z.ZodOptional<z.ZodEffects<z.ZodOptional<z.ZodString>, Record<string, string>[], string | undefined>>;
322
+ keywords: z.ZodOptional<z.ZodEffects<z.ZodString, string[], string>>;
323
+ pronunciation_guide: z.ZodOptional<z.ZodEffects<z.ZodOptional<z.ZodString>, Record<string, string>[], string | undefined>>;
324
+ language: z.ZodOptional<z.ZodString>;
325
+ local_dialing: z.ZodOptional<z.ZodEffects<z.ZodEnum<["true", "false"]>, boolean, "true" | "false">>;
326
+ voicemail_sms: z.ZodOptional<z.ZodEffects<z.ZodOptional<z.ZodString>, Record<string, unknown>, string | undefined>>;
327
+ dispatch_hours: z.ZodOptional<z.ZodEffects<z.ZodOptional<z.ZodString>, Record<string, unknown>, string | undefined>>;
328
+ sensitive_voicemail_detection: z.ZodOptional<z.ZodEffects<z.ZodEnum<["true", "false"]>, boolean, "true" | "false">>;
329
+ noise_cancellation: z.ZodOptional<z.ZodEffects<z.ZodEnum<["true", "false"]>, boolean, "true" | "false">>;
330
+ ignore_button_press: z.ZodOptional<z.ZodEffects<z.ZodEnum<["true", "false"]>, boolean, "true" | "false">>;
331
+ timezone: z.ZodOptional<z.ZodString>;
332
+ tools: z.ZodOptional<z.ZodEffects<z.ZodOptional<z.ZodString>, Record<string, string>[], string | undefined>>;
333
+ voicemail_message: z.ZodOptional<z.ZodString>;
334
+ voicemail_action: z.ZodOptional<z.ZodEnum<["hangup", "leave_message", "ignore"]>>;
335
+ retry: z.ZodOptional<z.ZodEffects<z.ZodOptional<z.ZodString>, Record<string, unknown>, string | undefined>>;
336
+ max_duration: z.ZodOptional<z.ZodNumber>;
337
+ record: z.ZodOptional<z.ZodEffects<z.ZodEnum<["true", "false"]>, boolean, "true" | "false">>;
338
+ metadata: z.ZodOptional<z.ZodEffects<z.ZodOptional<z.ZodString>, Record<string, unknown>, string | undefined>>;
339
+ analysis_preset: z.ZodOptional<z.ZodString>;
340
+ available_tags: z.ZodOptional<z.ZodEffects<z.ZodString, string[], string>>;
341
+ geospatial_dialing: z.ZodOptional<z.ZodString>;
342
+ precall_dtmf_sequence: z.ZodOptional<z.ZodString>;
343
+ requestData: z.ZodOptional<z.ZodEffects<z.ZodOptional<z.ZodString>, Record<string, unknown>, string | undefined>>;
344
+ analysisSchema: z.ZodOptional<z.ZodEffects<z.ZodOptional<z.ZodString>, Record<string, unknown>, string | undefined>>;
39
345
  }, "strip", z.ZodTypeAny, {
40
346
  phoneNumber: string;
41
347
  pathwayId: string;
348
+ language?: string | undefined;
349
+ dynamic_data?: Record<string, string>[] | undefined;
350
+ voice?: string | undefined;
351
+ background_track?: "null" | "office" | "cafe" | "restaurant" | "none" | undefined;
352
+ first_sentence?: string | undefined;
353
+ wait_for_greeting?: boolean | undefined;
354
+ block_interruptions?: boolean | undefined;
355
+ interruption_threshold?: number | undefined;
356
+ model?: "base" | "turbo" | undefined;
357
+ temperature?: number | undefined;
358
+ keywords?: string[] | undefined;
359
+ pronunciation_guide?: Record<string, string>[] | undefined;
360
+ local_dialing?: boolean | undefined;
361
+ voicemail_sms?: Record<string, unknown> | undefined;
362
+ dispatch_hours?: Record<string, unknown> | undefined;
363
+ sensitive_voicemail_detection?: boolean | undefined;
364
+ noise_cancellation?: boolean | undefined;
365
+ ignore_button_press?: boolean | undefined;
366
+ timezone?: string | undefined;
367
+ tools?: Record<string, string>[] | undefined;
368
+ voicemail_message?: string | undefined;
369
+ voicemail_action?: "hangup" | "leave_message" | "ignore" | undefined;
370
+ retry?: Record<string, unknown> | undefined;
371
+ max_duration?: number | undefined;
372
+ record?: boolean | undefined;
373
+ metadata?: Record<string, unknown> | undefined;
374
+ analysis_preset?: string | undefined;
375
+ available_tags?: string[] | undefined;
376
+ geospatial_dialing?: string | undefined;
377
+ precall_dtmf_sequence?: string | undefined;
42
378
  requestData?: Record<string, unknown> | undefined;
43
379
  analysisSchema?: Record<string, unknown> | undefined;
380
+ pathwayVersion?: number | undefined;
44
381
  }, {
45
382
  phoneNumber: string;
46
383
  pathwayId: string;
384
+ language?: string | undefined;
385
+ dynamic_data?: string | undefined;
386
+ voice?: string | undefined;
387
+ background_track?: "null" | "office" | "cafe" | "restaurant" | "none" | undefined;
388
+ first_sentence?: string | undefined;
389
+ wait_for_greeting?: "true" | "false" | undefined;
390
+ block_interruptions?: "true" | "false" | undefined;
391
+ interruption_threshold?: number | undefined;
392
+ model?: "base" | "turbo" | undefined;
393
+ temperature?: number | undefined;
394
+ keywords?: string | undefined;
395
+ pronunciation_guide?: string | undefined;
396
+ local_dialing?: "true" | "false" | undefined;
397
+ voicemail_sms?: string | undefined;
398
+ dispatch_hours?: string | undefined;
399
+ sensitive_voicemail_detection?: "true" | "false" | undefined;
400
+ noise_cancellation?: "true" | "false" | undefined;
401
+ ignore_button_press?: "true" | "false" | undefined;
402
+ timezone?: string | undefined;
403
+ tools?: string | undefined;
404
+ voicemail_message?: string | undefined;
405
+ voicemail_action?: "hangup" | "leave_message" | "ignore" | undefined;
406
+ retry?: string | undefined;
407
+ max_duration?: number | undefined;
408
+ record?: "true" | "false" | undefined;
409
+ metadata?: string | undefined;
410
+ analysis_preset?: string | undefined;
411
+ available_tags?: string | undefined;
412
+ geospatial_dialing?: string | undefined;
413
+ precall_dtmf_sequence?: string | undefined;
47
414
  requestData?: string | undefined;
48
415
  analysisSchema?: string | undefined;
416
+ pathwayVersion?: number | undefined;
49
417
  }>;