@fonoster/sdk 0.26.0 → 0.30.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (66) hide show
  1. package/README.md +6 -5
  2. package/dist/node/Applications.d.ts +21 -85
  3. package/dist/node/Applications.js +55 -73
  4. package/dist/node/CallRecords.d.ts +92 -0
  5. package/dist/node/CallRecords.js +124 -0
  6. package/dist/node/Domains.js +4 -2
  7. package/dist/node/Providers.d.ts +49 -0
  8. package/dist/node/Providers.js +107 -0
  9. package/dist/node/Regions.d.ts +91 -0
  10. package/dist/node/Regions.js +124 -0
  11. package/dist/node/Users.d.ts +4 -2
  12. package/dist/node/Users.js +4 -2
  13. package/dist/node/Webhooks.d.ts +56 -0
  14. package/dist/node/Webhooks.js +139 -0
  15. package/dist/node/Workspaces.d.ts +22 -3
  16. package/dist/node/Workspaces.js +29 -2
  17. package/dist/node/client/AbstractClient.d.ts +83 -3
  18. package/dist/node/client/AbstractClient.js +97 -1
  19. package/dist/node/client/Client.d.ts +7 -0
  20. package/dist/node/client/Client.js +21 -0
  21. package/dist/node/client/jsonToObject.js +17 -0
  22. package/dist/node/client/objectToJson.js +35 -0
  23. package/dist/node/client/types/ApplicationsClient.d.ts +2 -1
  24. package/dist/node/client/types/CapabilitiesClient.d.ts +24 -0
  25. package/dist/node/client/types/CapabilitiesClient.js +2 -0
  26. package/dist/node/client/types/FonosterClient.d.ts +8 -0
  27. package/dist/node/client/types/IdentityClient.d.ts +3 -1
  28. package/dist/node/client/types/ProvidersClient.d.ts +28 -0
  29. package/dist/node/client/types/ProvidersClient.js +2 -0
  30. package/dist/node/client/types/WebhooksClient.d.ts +31 -0
  31. package/dist/node/client/types/WebhooksClient.js +2 -0
  32. package/dist/node/client/types/index.d.ts +3 -0
  33. package/dist/node/client/types/index.js +3 -0
  34. package/dist/node/generated/node/applications_grpc_pb.js +34 -0
  35. package/dist/node/generated/node/applications_pb.js +2657 -206
  36. package/dist/node/generated/node/capabilities_grpc_pb.js +66 -0
  37. package/dist/node/generated/node/capabilities_pb.js +2085 -0
  38. package/dist/node/generated/node/identity_grpc_pb.js +34 -0
  39. package/dist/node/generated/node/identity_pb.js +609 -5
  40. package/dist/node/generated/node/providers_grpc_pb.js +200 -0
  41. package/dist/node/generated/node/providers_pb.js +3034 -0
  42. package/dist/node/generated/node/webhooks_grpc_pb.js +302 -0
  43. package/dist/node/generated/node/webhooks_pb.js +3314 -0
  44. package/dist/node/generated/web/ApplicationsServiceClientPb.ts +43 -0
  45. package/dist/node/generated/web/CapabilitiesServiceClientPb.ts +87 -0
  46. package/dist/node/generated/web/IdentityServiceClientPb.ts +43 -0
  47. package/dist/node/generated/web/ProvidersServiceClientPb.ts +258 -0
  48. package/dist/node/generated/web/WebhooksServiceClientPb.ts +387 -0
  49. package/dist/node/generated/web/applications_pb.d.ts +301 -1
  50. package/dist/node/generated/web/applications_pb.js +2657 -206
  51. package/dist/node/generated/web/capabilities_pb.d.ts +249 -0
  52. package/dist/node/generated/web/capabilities_pb.js +2085 -0
  53. package/dist/node/generated/web/identity_pb.d.ts +76 -0
  54. package/dist/node/generated/web/identity_pb.js +609 -5
  55. package/dist/node/generated/web/providers_pb.d.ts +364 -0
  56. package/dist/node/generated/web/providers_pb.js +3034 -0
  57. package/dist/node/generated/web/webhooks_pb.d.ts +398 -0
  58. package/dist/node/generated/web/webhooks_pb.js +3314 -0
  59. package/dist/node/node.d.ts +5 -0
  60. package/dist/node/node.js +4 -0
  61. package/dist/node/tsconfig.tsbuildinfo +1 -1
  62. package/dist/node/utils.d.ts +1 -13
  63. package/dist/node/utils.js +1 -38
  64. package/dist/web/fonoster.min.js +1 -1
  65. package/dist/web/index.esm.js +1 -1
  66. package/package.json +5 -5
@@ -4,6 +4,154 @@ import * as google_protobuf_struct_pb from 'google-protobuf/google/protobuf/stru
4
4
  import * as google_protobuf_empty_pb from 'google-protobuf/google/protobuf/empty_pb'; // proto import: "google/protobuf/empty.proto"
5
5
 
6
6
 
7
+ export class SpeechDefaults extends jspb.Message {
8
+ getVoice(): string;
9
+ setVoice(value: string): SpeechDefaults;
10
+
11
+ getLanguage(): string;
12
+ setLanguage(value: string): SpeechDefaults;
13
+
14
+ getSttModel(): string;
15
+ setSttModel(value: string): SpeechDefaults;
16
+
17
+ getTtsModel(): string;
18
+ setTtsModel(value: string): SpeechDefaults;
19
+
20
+ getSilenceTimeoutMs(): number;
21
+ setSilenceTimeoutMs(value: number): SpeechDefaults;
22
+
23
+ getPatience(): string;
24
+ setPatience(value: string): SpeechDefaults;
25
+
26
+ serializeBinary(): Uint8Array;
27
+ toObject(includeInstance?: boolean): SpeechDefaults.AsObject;
28
+ static toObject(includeInstance: boolean, msg: SpeechDefaults): SpeechDefaults.AsObject;
29
+ static serializeBinaryToWriter(message: SpeechDefaults, writer: jspb.BinaryWriter): void;
30
+ static deserializeBinary(bytes: Uint8Array): SpeechDefaults;
31
+ static deserializeBinaryFromReader(message: SpeechDefaults, reader: jspb.BinaryReader): SpeechDefaults;
32
+ }
33
+
34
+ export namespace SpeechDefaults {
35
+ export type AsObject = {
36
+ voice: string,
37
+ language: string,
38
+ sttModel: string,
39
+ ttsModel: string,
40
+ silenceTimeoutMs: number,
41
+ patience: string,
42
+ }
43
+ }
44
+
45
+ export class AudioFormat extends jspb.Message {
46
+ getCodec(): string;
47
+ setCodec(value: string): AudioFormat;
48
+
49
+ getRate(): number;
50
+ setRate(value: number): AudioFormat;
51
+
52
+ serializeBinary(): Uint8Array;
53
+ toObject(includeInstance?: boolean): AudioFormat.AsObject;
54
+ static toObject(includeInstance: boolean, msg: AudioFormat): AudioFormat.AsObject;
55
+ static serializeBinaryToWriter(message: AudioFormat, writer: jspb.BinaryWriter): void;
56
+ static deserializeBinary(bytes: Uint8Array): AudioFormat;
57
+ static deserializeBinaryFromReader(message: AudioFormat, reader: jspb.BinaryReader): AudioFormat;
58
+ }
59
+
60
+ export namespace AudioFormat {
61
+ export type AsObject = {
62
+ codec: string,
63
+ rate: number,
64
+ }
65
+ }
66
+
67
+ export class AmdSettings extends jspb.Message {
68
+ getEnabled(): boolean;
69
+ setEnabled(value: boolean): AmdSettings;
70
+
71
+ getWindowMs(): number;
72
+ setWindowMs(value: number): AmdSettings;
73
+
74
+ serializeBinary(): Uint8Array;
75
+ toObject(includeInstance?: boolean): AmdSettings.AsObject;
76
+ static toObject(includeInstance: boolean, msg: AmdSettings): AmdSettings.AsObject;
77
+ static serializeBinaryToWriter(message: AmdSettings, writer: jspb.BinaryWriter): void;
78
+ static deserializeBinary(bytes: Uint8Array): AmdSettings;
79
+ static deserializeBinaryFromReader(message: AmdSettings, reader: jspb.BinaryReader): AmdSettings;
80
+ }
81
+
82
+ export namespace AmdSettings {
83
+ export type AsObject = {
84
+ enabled: boolean,
85
+ windowMs: number,
86
+ }
87
+ }
88
+
89
+ export class Listener extends jspb.Message {
90
+ getUrl(): string;
91
+ setUrl(value: string): Listener;
92
+
93
+ getTracks(): string;
94
+ setTracks(value: string): Listener;
95
+
96
+ serializeBinary(): Uint8Array;
97
+ toObject(includeInstance?: boolean): Listener.AsObject;
98
+ static toObject(includeInstance: boolean, msg: Listener): Listener.AsObject;
99
+ static serializeBinaryToWriter(message: Listener, writer: jspb.BinaryWriter): void;
100
+ static deserializeBinary(bytes: Uint8Array): Listener;
101
+ static deserializeBinaryFromReader(message: Listener, reader: jspb.BinaryReader): Listener;
102
+ }
103
+
104
+ export namespace Listener {
105
+ export type AsObject = {
106
+ url: string,
107
+ tracks: string,
108
+ }
109
+ }
110
+
111
+ export class RotateSigningSecretRequest extends jspb.Message {
112
+ getRef(): string;
113
+ setRef(value: string): RotateSigningSecretRequest;
114
+
115
+ serializeBinary(): Uint8Array;
116
+ toObject(includeInstance?: boolean): RotateSigningSecretRequest.AsObject;
117
+ static toObject(includeInstance: boolean, msg: RotateSigningSecretRequest): RotateSigningSecretRequest.AsObject;
118
+ static serializeBinaryToWriter(message: RotateSigningSecretRequest, writer: jspb.BinaryWriter): void;
119
+ static deserializeBinary(bytes: Uint8Array): RotateSigningSecretRequest;
120
+ static deserializeBinaryFromReader(message: RotateSigningSecretRequest, reader: jspb.BinaryReader): RotateSigningSecretRequest;
121
+ }
122
+
123
+ export namespace RotateSigningSecretRequest {
124
+ export type AsObject = {
125
+ ref: string,
126
+ }
127
+ }
128
+
129
+ export class RotateSigningSecretResponse extends jspb.Message {
130
+ getRef(): string;
131
+ setRef(value: string): RotateSigningSecretResponse;
132
+
133
+ getSigningSecret(): string;
134
+ setSigningSecret(value: string): RotateSigningSecretResponse;
135
+
136
+ getSigningSecretHint(): string;
137
+ setSigningSecretHint(value: string): RotateSigningSecretResponse;
138
+
139
+ serializeBinary(): Uint8Array;
140
+ toObject(includeInstance?: boolean): RotateSigningSecretResponse.AsObject;
141
+ static toObject(includeInstance: boolean, msg: RotateSigningSecretResponse): RotateSigningSecretResponse.AsObject;
142
+ static serializeBinaryToWriter(message: RotateSigningSecretResponse, writer: jspb.BinaryWriter): void;
143
+ static deserializeBinary(bytes: Uint8Array): RotateSigningSecretResponse;
144
+ static deserializeBinaryFromReader(message: RotateSigningSecretResponse, reader: jspb.BinaryReader): RotateSigningSecretResponse;
145
+ }
146
+
147
+ export namespace RotateSigningSecretResponse {
148
+ export type AsObject = {
149
+ ref: string,
150
+ signingSecret: string,
151
+ signingSecretHint: string,
152
+ }
153
+ }
154
+
7
155
  export class ProductContainer extends jspb.Message {
8
156
  getProductRef(): string;
9
157
  setProductRef(value: string): ProductContainer;
@@ -68,6 +216,44 @@ export class Application extends jspb.Message {
68
216
  getUpdatedAt(): number;
69
217
  setUpdatedAt(value: number): Application;
70
218
 
219
+ getUrl(): string;
220
+ setUrl(value: string): Application;
221
+
222
+ getProtocol(): string;
223
+ setProtocol(value: string): Application;
224
+
225
+ getSigningSecretHint(): string;
226
+ setSigningSecretHint(value: string): Application;
227
+
228
+ getSpeech(): SpeechDefaults | undefined;
229
+ setSpeech(value?: SpeechDefaults): Application;
230
+ hasSpeech(): boolean;
231
+ clearSpeech(): Application;
232
+
233
+ getAudio(): AudioFormat | undefined;
234
+ setAudio(value?: AudioFormat): Application;
235
+ hasAudio(): boolean;
236
+ clearAudio(): Application;
237
+
238
+ getFallbackAppRef(): string;
239
+ setFallbackAppRef(value: string): Application;
240
+
241
+ getFallbackMessage(): string;
242
+ setFallbackMessage(value: string): Application;
243
+
244
+ getListenersList(): Array<Listener>;
245
+ setListenersList(value: Array<Listener>): Application;
246
+ clearListenersList(): Application;
247
+ addListeners(value?: Listener, index?: number): Listener;
248
+
249
+ getRecording(): string;
250
+ setRecording(value: string): Application;
251
+
252
+ getAmd(): AmdSettings | undefined;
253
+ setAmd(value?: AmdSettings): Application;
254
+ hasAmd(): boolean;
255
+ clearAmd(): Application;
256
+
71
257
  serializeBinary(): Uint8Array;
72
258
  toObject(includeInstance?: boolean): Application.AsObject;
73
259
  static toObject(includeInstance: boolean, msg: Application): Application.AsObject;
@@ -87,6 +273,16 @@ export namespace Application {
87
273
  intelligence?: ProductContainer.AsObject,
88
274
  createdAt: number,
89
275
  updatedAt: number,
276
+ url: string,
277
+ protocol: string,
278
+ signingSecretHint: string,
279
+ speech?: SpeechDefaults.AsObject,
280
+ audio?: AudioFormat.AsObject,
281
+ fallbackAppRef: string,
282
+ fallbackMessage: string,
283
+ listenersList: Array<Listener.AsObject>,
284
+ recording: string,
285
+ amd?: AmdSettings.AsObject,
90
286
  }
91
287
  }
92
288
 
@@ -115,6 +311,41 @@ export class CreateApplicationRequest extends jspb.Message {
115
311
  hasIntelligence(): boolean;
116
312
  clearIntelligence(): CreateApplicationRequest;
117
313
 
314
+ getUrl(): string;
315
+ setUrl(value: string): CreateApplicationRequest;
316
+
317
+ getProtocol(): string;
318
+ setProtocol(value: string): CreateApplicationRequest;
319
+
320
+ getSpeech(): SpeechDefaults | undefined;
321
+ setSpeech(value?: SpeechDefaults): CreateApplicationRequest;
322
+ hasSpeech(): boolean;
323
+ clearSpeech(): CreateApplicationRequest;
324
+
325
+ getAudio(): AudioFormat | undefined;
326
+ setAudio(value?: AudioFormat): CreateApplicationRequest;
327
+ hasAudio(): boolean;
328
+ clearAudio(): CreateApplicationRequest;
329
+
330
+ getFallbackAppRef(): string;
331
+ setFallbackAppRef(value: string): CreateApplicationRequest;
332
+
333
+ getFallbackMessage(): string;
334
+ setFallbackMessage(value: string): CreateApplicationRequest;
335
+
336
+ getListenersList(): Array<Listener>;
337
+ setListenersList(value: Array<Listener>): CreateApplicationRequest;
338
+ clearListenersList(): CreateApplicationRequest;
339
+ addListeners(value?: Listener, index?: number): Listener;
340
+
341
+ getRecording(): string;
342
+ setRecording(value: string): CreateApplicationRequest;
343
+
344
+ getAmd(): AmdSettings | undefined;
345
+ setAmd(value?: AmdSettings): CreateApplicationRequest;
346
+ hasAmd(): boolean;
347
+ clearAmd(): CreateApplicationRequest;
348
+
118
349
  serializeBinary(): Uint8Array;
119
350
  toObject(includeInstance?: boolean): CreateApplicationRequest.AsObject;
120
351
  static toObject(includeInstance: boolean, msg: CreateApplicationRequest): CreateApplicationRequest.AsObject;
@@ -131,6 +362,15 @@ export namespace CreateApplicationRequest {
131
362
  textToSpeech?: ProductContainer.AsObject,
132
363
  speechToText?: ProductContainer.AsObject,
133
364
  intelligence?: ProductContainer.AsObject,
365
+ url: string,
366
+ protocol: string,
367
+ speech?: SpeechDefaults.AsObject,
368
+ audio?: AudioFormat.AsObject,
369
+ fallbackAppRef: string,
370
+ fallbackMessage: string,
371
+ listenersList: Array<Listener.AsObject>,
372
+ recording: string,
373
+ amd?: AmdSettings.AsObject,
134
374
  }
135
375
  }
136
376
 
@@ -138,6 +378,12 @@ export class CreateApplicationResponse extends jspb.Message {
138
378
  getRef(): string;
139
379
  setRef(value: string): CreateApplicationResponse;
140
380
 
381
+ getSigningSecret(): string;
382
+ setSigningSecret(value: string): CreateApplicationResponse;
383
+
384
+ getSigningSecretHint(): string;
385
+ setSigningSecretHint(value: string): CreateApplicationResponse;
386
+
141
387
  serializeBinary(): Uint8Array;
142
388
  toObject(includeInstance?: boolean): CreateApplicationResponse.AsObject;
143
389
  static toObject(includeInstance: boolean, msg: CreateApplicationResponse): CreateApplicationResponse.AsObject;
@@ -149,6 +395,8 @@ export class CreateApplicationResponse extends jspb.Message {
149
395
  export namespace CreateApplicationResponse {
150
396
  export type AsObject = {
151
397
  ref: string,
398
+ signingSecret: string,
399
+ signingSecretHint: string,
152
400
  }
153
401
  }
154
402
 
@@ -244,6 +492,41 @@ export class UpdateApplicationRequest extends jspb.Message {
244
492
  hasIntelligence(): boolean;
245
493
  clearIntelligence(): UpdateApplicationRequest;
246
494
 
495
+ getUrl(): string;
496
+ setUrl(value: string): UpdateApplicationRequest;
497
+
498
+ getProtocol(): string;
499
+ setProtocol(value: string): UpdateApplicationRequest;
500
+
501
+ getSpeech(): SpeechDefaults | undefined;
502
+ setSpeech(value?: SpeechDefaults): UpdateApplicationRequest;
503
+ hasSpeech(): boolean;
504
+ clearSpeech(): UpdateApplicationRequest;
505
+
506
+ getAudio(): AudioFormat | undefined;
507
+ setAudio(value?: AudioFormat): UpdateApplicationRequest;
508
+ hasAudio(): boolean;
509
+ clearAudio(): UpdateApplicationRequest;
510
+
511
+ getFallbackAppRef(): string;
512
+ setFallbackAppRef(value: string): UpdateApplicationRequest;
513
+
514
+ getFallbackMessage(): string;
515
+ setFallbackMessage(value: string): UpdateApplicationRequest;
516
+
517
+ getListenersList(): Array<Listener>;
518
+ setListenersList(value: Array<Listener>): UpdateApplicationRequest;
519
+ clearListenersList(): UpdateApplicationRequest;
520
+ addListeners(value?: Listener, index?: number): Listener;
521
+
522
+ getRecording(): string;
523
+ setRecording(value: string): UpdateApplicationRequest;
524
+
525
+ getAmd(): AmdSettings | undefined;
526
+ setAmd(value?: AmdSettings): UpdateApplicationRequest;
527
+ hasAmd(): boolean;
528
+ clearAmd(): UpdateApplicationRequest;
529
+
247
530
  serializeBinary(): Uint8Array;
248
531
  toObject(includeInstance?: boolean): UpdateApplicationRequest.AsObject;
249
532
  static toObject(includeInstance: boolean, msg: UpdateApplicationRequest): UpdateApplicationRequest.AsObject;
@@ -261,6 +544,15 @@ export namespace UpdateApplicationRequest {
261
544
  textToSpeech?: ProductContainer.AsObject,
262
545
  speechToText?: ProductContainer.AsObject,
263
546
  intelligence?: ProductContainer.AsObject,
547
+ url: string,
548
+ protocol: string,
549
+ speech?: SpeechDefaults.AsObject,
550
+ audio?: AudioFormat.AsObject,
551
+ fallbackAppRef: string,
552
+ fallbackMessage: string,
553
+ listenersList: Array<Listener.AsObject>,
554
+ recording: string,
555
+ amd?: AmdSettings.AsObject,
264
556
  }
265
557
  }
266
558
 
@@ -268,6 +560,12 @@ export class UpdateApplicationResponse extends jspb.Message {
268
560
  getRef(): string;
269
561
  setRef(value: string): UpdateApplicationResponse;
270
562
 
563
+ getSigningSecret(): string;
564
+ setSigningSecret(value: string): UpdateApplicationResponse;
565
+
566
+ getSigningSecretHint(): string;
567
+ setSigningSecretHint(value: string): UpdateApplicationResponse;
568
+
271
569
  serializeBinary(): Uint8Array;
272
570
  toObject(includeInstance?: boolean): UpdateApplicationResponse.AsObject;
273
571
  static toObject(includeInstance: boolean, msg: UpdateApplicationResponse): UpdateApplicationResponse.AsObject;
@@ -279,6 +577,8 @@ export class UpdateApplicationResponse extends jspb.Message {
279
577
  export namespace UpdateApplicationResponse {
280
578
  export type AsObject = {
281
579
  ref: string,
580
+ signingSecret: string,
581
+ signingSecretHint: string,
282
582
  }
283
583
  }
284
584
 
@@ -596,7 +896,7 @@ export namespace TestTokenResponse {
596
896
  }
597
897
 
598
898
  export enum ApplicationType {
599
- EXTERNAL = 0,
899
+ STREAM = 0,
600
900
  AUTOPILOT = 1,
601
901
  }
602
902
  export enum ExpectedTextType {