@fonoster/sdk 0.6.6 → 0.7.2

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 (36) hide show
  1. package/README.md +10 -10
  2. package/dist/node/Applications.d.ts +8 -8
  3. package/dist/node/Applications.js +8 -8
  4. package/dist/node/Calls.d.ts +22 -9
  5. package/dist/node/Calls.js +56 -37
  6. package/dist/node/client/types/CallsClient.d.ts +3 -2
  7. package/dist/node/client/types/common.d.ts +8 -1
  8. package/dist/node/generated/node/acls_pb.js +6 -6
  9. package/dist/node/generated/node/agents_pb.js +6 -6
  10. package/dist/node/generated/node/applications_pb.js +18 -18
  11. package/dist/node/generated/node/calls_grpc_pb.js +0 -3
  12. package/dist/node/generated/node/calls_pb.js +103 -104
  13. package/dist/node/generated/node/credentials_pb.js +6 -6
  14. package/dist/node/generated/node/domains_pb.js +6 -6
  15. package/dist/node/generated/node/identity_pb.js +18 -18
  16. package/dist/node/generated/node/numbers_pb.js +6 -6
  17. package/dist/node/generated/node/secrets_pb.js +6 -6
  18. package/dist/node/generated/node/trunks_pb.js +6 -6
  19. package/dist/node/generated/web/acls_pb.js +6 -6
  20. package/dist/node/generated/web/agents_pb.js +6 -6
  21. package/dist/node/generated/web/applications_pb.d.ts +9 -9
  22. package/dist/node/generated/web/applications_pb.js +18 -18
  23. package/dist/node/generated/web/calls_pb.d.ts +37 -37
  24. package/dist/node/generated/web/calls_pb.js +103 -104
  25. package/dist/node/generated/web/credentials_pb.js +6 -6
  26. package/dist/node/generated/web/domains_pb.js +6 -6
  27. package/dist/node/generated/web/identity_pb.js +18 -18
  28. package/dist/node/generated/web/numbers_pb.js +6 -6
  29. package/dist/node/generated/web/secrets_pb.js +6 -6
  30. package/dist/node/generated/web/trunks_pb.js +6 -6
  31. package/dist/node/tsconfig.node.tsbuildinfo +1 -1
  32. package/dist/node/utils.d.ts +2 -1
  33. package/dist/node/utils.js +20 -0
  34. package/dist/web/fonoster.min.js +1 -1
  35. package/dist/web/index.esm.js +1 -1
  36. package/package.json +4 -4
@@ -390,11 +390,11 @@ proto.fonoster.numbers.v1beta2.Number.deserializeBinaryFromReader = function(msg
390
390
  msg.setCountryIsoCode(value);
391
391
  break;
392
392
  case 7:
393
- var value = /** @type {number} */ (reader.readInt64());
393
+ var value = /** @type {number} */ (reader.readInt32());
394
394
  msg.setCreatedAt(value);
395
395
  break;
396
396
  case 8:
397
- var value = /** @type {number} */ (reader.readInt64());
397
+ var value = /** @type {number} */ (reader.readInt32());
398
398
  msg.setUpdatedAt(value);
399
399
  break;
400
400
  case 9:
@@ -483,14 +483,14 @@ proto.fonoster.numbers.v1beta2.Number.serializeBinaryToWriter = function(message
483
483
  }
484
484
  f = message.getCreatedAt();
485
485
  if (f !== 0) {
486
- writer.writeInt64(
486
+ writer.writeInt32(
487
487
  7,
488
488
  f
489
489
  );
490
490
  }
491
491
  f = message.getUpdatedAt();
492
492
  if (f !== 0) {
493
- writer.writeInt64(
493
+ writer.writeInt32(
494
494
  8,
495
495
  f
496
496
  );
@@ -789,7 +789,7 @@ proto.fonoster.numbers.v1beta2.Number.prototype.setCountryIsoCode = function(val
789
789
 
790
790
 
791
791
  /**
792
- * optional int64 created_at = 7;
792
+ * optional int32 created_at = 7;
793
793
  * @return {number}
794
794
  */
795
795
  proto.fonoster.numbers.v1beta2.Number.prototype.getCreatedAt = function() {
@@ -807,7 +807,7 @@ proto.fonoster.numbers.v1beta2.Number.prototype.setCreatedAt = function(value) {
807
807
 
808
808
 
809
809
  /**
810
- * optional int64 updated_at = 8;
810
+ * optional int32 updated_at = 8;
811
811
  * @return {number}
812
812
  */
813
813
  proto.fonoster.numbers.v1beta2.Number.prototype.getUpdatedAt = function() {
@@ -321,11 +321,11 @@ proto.fonoster.secrets.v1beta2.Secret.deserializeBinaryFromReader = function(msg
321
321
  msg.setSecret(value);
322
322
  break;
323
323
  case 4:
324
- var value = /** @type {number} */ (reader.readInt64());
324
+ var value = /** @type {number} */ (reader.readInt32());
325
325
  msg.setCreatedAt(value);
326
326
  break;
327
327
  case 5:
328
- var value = /** @type {number} */ (reader.readInt64());
328
+ var value = /** @type {number} */ (reader.readInt32());
329
329
  msg.setUpdatedAt(value);
330
330
  break;
331
331
  default:
@@ -380,14 +380,14 @@ proto.fonoster.secrets.v1beta2.Secret.serializeBinaryToWriter = function(message
380
380
  }
381
381
  f = message.getCreatedAt();
382
382
  if (f !== 0) {
383
- writer.writeInt64(
383
+ writer.writeInt32(
384
384
  4,
385
385
  f
386
386
  );
387
387
  }
388
388
  f = message.getUpdatedAt();
389
389
  if (f !== 0) {
390
- writer.writeInt64(
390
+ writer.writeInt32(
391
391
  5,
392
392
  f
393
393
  );
@@ -450,7 +450,7 @@ proto.fonoster.secrets.v1beta2.Secret.prototype.setSecret = function(value) {
450
450
 
451
451
 
452
452
  /**
453
- * optional int64 created_at = 4;
453
+ * optional int32 created_at = 4;
454
454
  * @return {number}
455
455
  */
456
456
  proto.fonoster.secrets.v1beta2.Secret.prototype.getCreatedAt = function() {
@@ -468,7 +468,7 @@ proto.fonoster.secrets.v1beta2.Secret.prototype.setCreatedAt = function(value) {
468
468
 
469
469
 
470
470
  /**
471
- * optional int64 updated_at = 5;
471
+ * optional int32 updated_at = 5;
472
472
  * @return {number}
473
473
  */
474
474
  proto.fonoster.secrets.v1beta2.Secret.prototype.getUpdatedAt = function() {
@@ -714,11 +714,11 @@ proto.fonoster.trunks.v1beta2.Trunk.deserializeBinaryFromReader = function(msg,
714
714
  msg.setInboundUri(value);
715
715
  break;
716
716
  case 5:
717
- var value = /** @type {number} */ (reader.readInt64());
717
+ var value = /** @type {number} */ (reader.readInt32());
718
718
  msg.setCreatedAt(value);
719
719
  break;
720
720
  case 6:
721
- var value = /** @type {number} */ (reader.readInt64());
721
+ var value = /** @type {number} */ (reader.readInt32());
722
722
  msg.setUpdatedAt(value);
723
723
  break;
724
724
  case 7:
@@ -800,14 +800,14 @@ proto.fonoster.trunks.v1beta2.Trunk.serializeBinaryToWriter = function(message,
800
800
  }
801
801
  f = message.getCreatedAt();
802
802
  if (f !== 0) {
803
- writer.writeInt64(
803
+ writer.writeInt32(
804
804
  5,
805
805
  f
806
806
  );
807
807
  }
808
808
  f = message.getUpdatedAt();
809
809
  if (f !== 0) {
810
- writer.writeInt64(
810
+ writer.writeInt32(
811
811
  6,
812
812
  f
813
813
  );
@@ -1375,7 +1375,7 @@ proto.fonoster.trunks.v1beta2.Trunk.prototype.setInboundUri = function(value) {
1375
1375
 
1376
1376
 
1377
1377
  /**
1378
- * optional int64 created_at = 5;
1378
+ * optional int32 created_at = 5;
1379
1379
  * @return {number}
1380
1380
  */
1381
1381
  proto.fonoster.trunks.v1beta2.Trunk.prototype.getCreatedAt = function() {
@@ -1393,7 +1393,7 @@ proto.fonoster.trunks.v1beta2.Trunk.prototype.setCreatedAt = function(value) {
1393
1393
 
1394
1394
 
1395
1395
  /**
1396
- * optional int64 updated_at = 6;
1396
+ * optional int32 updated_at = 6;
1397
1397
  * @return {number}
1398
1398
  */
1399
1399
  proto.fonoster.trunks.v1beta2.Trunk.prototype.getUpdatedAt = function() {
@@ -333,11 +333,11 @@ proto.fonoster.acls.v1beta2.Acl.deserializeBinaryFromReader = function(msg, read
333
333
  msg.addDeny(value);
334
334
  break;
335
335
  case 5:
336
- var value = /** @type {number} */ (reader.readInt64());
336
+ var value = /** @type {number} */ (reader.readInt32());
337
337
  msg.setCreatedAt(value);
338
338
  break;
339
339
  case 6:
340
- var value = /** @type {number} */ (reader.readInt64());
340
+ var value = /** @type {number} */ (reader.readInt32());
341
341
  msg.setUpdatedAt(value);
342
342
  break;
343
343
  default:
@@ -399,14 +399,14 @@ proto.fonoster.acls.v1beta2.Acl.serializeBinaryToWriter = function(message, writ
399
399
  }
400
400
  f = message.getCreatedAt();
401
401
  if (f !== 0) {
402
- writer.writeInt64(
402
+ writer.writeInt32(
403
403
  5,
404
404
  f
405
405
  );
406
406
  }
407
407
  f = message.getUpdatedAt();
408
408
  if (f !== 0) {
409
- writer.writeInt64(
409
+ writer.writeInt32(
410
410
  6,
411
411
  f
412
412
  );
@@ -525,7 +525,7 @@ proto.fonoster.acls.v1beta2.Acl.prototype.clearDenyList = function() {
525
525
 
526
526
 
527
527
  /**
528
- * optional int64 created_at = 5;
528
+ * optional int32 created_at = 5;
529
529
  * @return {number}
530
530
  */
531
531
  proto.fonoster.acls.v1beta2.Acl.prototype.getCreatedAt = function() {
@@ -543,7 +543,7 @@ proto.fonoster.acls.v1beta2.Acl.prototype.setCreatedAt = function(value) {
543
543
 
544
544
 
545
545
  /**
546
- * optional int64 updated_at = 6;
546
+ * optional int32 updated_at = 6;
547
547
  * @return {number}
548
548
  */
549
549
  proto.fonoster.acls.v1beta2.Acl.prototype.getUpdatedAt = function() {
@@ -380,11 +380,11 @@ proto.fonoster.agents.v1beta2.Agent.deserializeBinaryFromReader = function(msg,
380
380
  msg.setEnabled(value);
381
381
  break;
382
382
  case 6:
383
- var value = /** @type {number} */ (reader.readInt64());
383
+ var value = /** @type {number} */ (reader.readInt32());
384
384
  msg.setCreatedAt(value);
385
385
  break;
386
386
  case 7:
387
- var value = /** @type {number} */ (reader.readInt64());
387
+ var value = /** @type {number} */ (reader.readInt32());
388
388
  msg.setUpdatedAt(value);
389
389
  break;
390
390
  case 8:
@@ -471,14 +471,14 @@ proto.fonoster.agents.v1beta2.Agent.serializeBinaryToWriter = function(message,
471
471
  }
472
472
  f = message.getCreatedAt();
473
473
  if (f !== 0) {
474
- writer.writeInt64(
474
+ writer.writeInt32(
475
475
  6,
476
476
  f
477
477
  );
478
478
  }
479
479
  f = message.getUpdatedAt();
480
480
  if (f !== 0) {
481
- writer.writeInt64(
481
+ writer.writeInt32(
482
482
  7,
483
483
  f
484
484
  );
@@ -987,7 +987,7 @@ proto.fonoster.agents.v1beta2.Agent.prototype.setEnabled = function(value) {
987
987
 
988
988
 
989
989
  /**
990
- * optional int64 created_at = 6;
990
+ * optional int32 created_at = 6;
991
991
  * @return {number}
992
992
  */
993
993
  proto.fonoster.agents.v1beta2.Agent.prototype.getCreatedAt = function() {
@@ -1005,7 +1005,7 @@ proto.fonoster.agents.v1beta2.Agent.prototype.setCreatedAt = function(value) {
1005
1005
 
1006
1006
 
1007
1007
  /**
1008
- * optional int64 updated_at = 7;
1008
+ * optional int32 updated_at = 7;
1009
1009
  * @return {number}
1010
1010
  */
1011
1011
  proto.fonoster.agents.v1beta2.Agent.prototype.getUpdatedAt = function() {
@@ -43,8 +43,8 @@ export class Application extends jspb.Message {
43
43
  getType(): ApplicationType;
44
44
  setType(value: ApplicationType): Application;
45
45
 
46
- getAppEndpoint(): string;
47
- setAppEndpoint(value: string): Application;
46
+ getEndpoint(): string;
47
+ setEndpoint(value: string): Application;
48
48
 
49
49
  getTextToSpeech(): ProductContainer | undefined;
50
50
  setTextToSpeech(value?: ProductContainer): Application;
@@ -80,7 +80,7 @@ export namespace Application {
80
80
  ref: string,
81
81
  name: string,
82
82
  type: ApplicationType,
83
- appEndpoint: string,
83
+ endpoint: string,
84
84
  textToSpeech?: ProductContainer.AsObject,
85
85
  speechToText?: ProductContainer.AsObject,
86
86
  conversation?: ProductContainer.AsObject,
@@ -96,8 +96,8 @@ export class CreateApplicationRequest extends jspb.Message {
96
96
  getType(): ApplicationType;
97
97
  setType(value: ApplicationType): CreateApplicationRequest;
98
98
 
99
- getAppEndpoint(): string;
100
- setAppEndpoint(value: string): CreateApplicationRequest;
99
+ getEndpoint(): string;
100
+ setEndpoint(value: string): CreateApplicationRequest;
101
101
 
102
102
  getTextToSpeech(): ProductContainer | undefined;
103
103
  setTextToSpeech(value?: ProductContainer): CreateApplicationRequest;
@@ -126,7 +126,7 @@ export namespace CreateApplicationRequest {
126
126
  export type AsObject = {
127
127
  name: string,
128
128
  type: ApplicationType,
129
- appEndpoint: string,
129
+ endpoint: string,
130
130
  textToSpeech?: ProductContainer.AsObject,
131
131
  speechToText?: ProductContainer.AsObject,
132
132
  intelligence?: ProductContainer.AsObject,
@@ -225,8 +225,8 @@ export class UpdateApplicationRequest extends jspb.Message {
225
225
  getType(): ApplicationType;
226
226
  setType(value: ApplicationType): UpdateApplicationRequest;
227
227
 
228
- getAppEndpoint(): string;
229
- setAppEndpoint(value: string): UpdateApplicationRequest;
228
+ getEndpoint(): string;
229
+ setEndpoint(value: string): UpdateApplicationRequest;
230
230
 
231
231
  getTextToSpeech(): ProductContainer | undefined;
232
232
  setTextToSpeech(value?: ProductContainer): UpdateApplicationRequest;
@@ -256,7 +256,7 @@ export namespace UpdateApplicationRequest {
256
256
  ref: string,
257
257
  name: string,
258
258
  type: ApplicationType,
259
- appEndpoint: string,
259
+ endpoint: string,
260
260
  textToSpeech?: ProductContainer.AsObject,
261
261
  speechToText?: ProductContainer.AsObject,
262
262
  intelligence?: ProductContainer.AsObject,
@@ -527,7 +527,7 @@ proto.fonoster.applications.v1beta2.Application.toObject = function(includeInsta
527
527
  ref: jspb.Message.getFieldWithDefault(msg, 1, ""),
528
528
  name: jspb.Message.getFieldWithDefault(msg, 2, ""),
529
529
  type: jspb.Message.getFieldWithDefault(msg, 3, 0),
530
- appEndpoint: jspb.Message.getFieldWithDefault(msg, 4, ""),
530
+ endpoint: jspb.Message.getFieldWithDefault(msg, 4, ""),
531
531
  textToSpeech: (f = msg.getTextToSpeech()) && proto.fonoster.applications.v1beta2.ProductContainer.toObject(includeInstance, f),
532
532
  speechToText: (f = msg.getSpeechToText()) && proto.fonoster.applications.v1beta2.ProductContainer.toObject(includeInstance, f),
533
533
  conversation: (f = msg.getConversation()) && proto.fonoster.applications.v1beta2.ProductContainer.toObject(includeInstance, f),
@@ -583,7 +583,7 @@ proto.fonoster.applications.v1beta2.Application.deserializeBinaryFromReader = fu
583
583
  break;
584
584
  case 4:
585
585
  var value = /** @type {string} */ (reader.readString());
586
- msg.setAppEndpoint(value);
586
+ msg.setEndpoint(value);
587
587
  break;
588
588
  case 5:
589
589
  var value = new proto.fonoster.applications.v1beta2.ProductContainer;
@@ -658,7 +658,7 @@ proto.fonoster.applications.v1beta2.Application.serializeBinaryToWriter = functi
658
658
  f
659
659
  );
660
660
  }
661
- f = message.getAppEndpoint();
661
+ f = message.getEndpoint();
662
662
  if (f.length > 0) {
663
663
  writer.writeString(
664
664
  4,
@@ -761,10 +761,10 @@ proto.fonoster.applications.v1beta2.Application.prototype.setType = function(val
761
761
 
762
762
 
763
763
  /**
764
- * optional string app_endpoint = 4;
764
+ * optional string endpoint = 4;
765
765
  * @return {string}
766
766
  */
767
- proto.fonoster.applications.v1beta2.Application.prototype.getAppEndpoint = function() {
767
+ proto.fonoster.applications.v1beta2.Application.prototype.getEndpoint = function() {
768
768
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
769
769
  };
770
770
 
@@ -773,7 +773,7 @@ proto.fonoster.applications.v1beta2.Application.prototype.getAppEndpoint = funct
773
773
  * @param {string} value
774
774
  * @return {!proto.fonoster.applications.v1beta2.Application} returns this
775
775
  */
776
- proto.fonoster.applications.v1beta2.Application.prototype.setAppEndpoint = function(value) {
776
+ proto.fonoster.applications.v1beta2.Application.prototype.setEndpoint = function(value) {
777
777
  return jspb.Message.setProto3StringField(this, 4, value);
778
778
  };
779
779
 
@@ -959,7 +959,7 @@ proto.fonoster.applications.v1beta2.CreateApplicationRequest.toObject = function
959
959
  var f, obj = {
960
960
  name: jspb.Message.getFieldWithDefault(msg, 1, ""),
961
961
  type: jspb.Message.getFieldWithDefault(msg, 2, 0),
962
- appEndpoint: jspb.Message.getFieldWithDefault(msg, 3, ""),
962
+ endpoint: jspb.Message.getFieldWithDefault(msg, 3, ""),
963
963
  textToSpeech: (f = msg.getTextToSpeech()) && proto.fonoster.applications.v1beta2.ProductContainer.toObject(includeInstance, f),
964
964
  speechToText: (f = msg.getSpeechToText()) && proto.fonoster.applications.v1beta2.ProductContainer.toObject(includeInstance, f),
965
965
  intelligence: (f = msg.getIntelligence()) && proto.fonoster.applications.v1beta2.ProductContainer.toObject(includeInstance, f)
@@ -1009,7 +1009,7 @@ proto.fonoster.applications.v1beta2.CreateApplicationRequest.deserializeBinaryFr
1009
1009
  break;
1010
1010
  case 3:
1011
1011
  var value = /** @type {string} */ (reader.readString());
1012
- msg.setAppEndpoint(value);
1012
+ msg.setEndpoint(value);
1013
1013
  break;
1014
1014
  case 4:
1015
1015
  var value = new proto.fonoster.applications.v1beta2.ProductContainer;
@@ -1069,7 +1069,7 @@ proto.fonoster.applications.v1beta2.CreateApplicationRequest.serializeBinaryToWr
1069
1069
  f
1070
1070
  );
1071
1071
  }
1072
- f = message.getAppEndpoint();
1072
+ f = message.getEndpoint();
1073
1073
  if (f.length > 0) {
1074
1074
  writer.writeString(
1075
1075
  3,
@@ -1140,10 +1140,10 @@ proto.fonoster.applications.v1beta2.CreateApplicationRequest.prototype.setType =
1140
1140
 
1141
1141
 
1142
1142
  /**
1143
- * optional string app_endpoint = 3;
1143
+ * optional string endpoint = 3;
1144
1144
  * @return {string}
1145
1145
  */
1146
- proto.fonoster.applications.v1beta2.CreateApplicationRequest.prototype.getAppEndpoint = function() {
1146
+ proto.fonoster.applications.v1beta2.CreateApplicationRequest.prototype.getEndpoint = function() {
1147
1147
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
1148
1148
  };
1149
1149
 
@@ -1152,7 +1152,7 @@ proto.fonoster.applications.v1beta2.CreateApplicationRequest.prototype.getAppEnd
1152
1152
  * @param {string} value
1153
1153
  * @return {!proto.fonoster.applications.v1beta2.CreateApplicationRequest} returns this
1154
1154
  */
1155
- proto.fonoster.applications.v1beta2.CreateApplicationRequest.prototype.setAppEndpoint = function(value) {
1155
+ proto.fonoster.applications.v1beta2.CreateApplicationRequest.prototype.setEndpoint = function(value) {
1156
1156
  return jspb.Message.setProto3StringField(this, 3, value);
1157
1157
  };
1158
1158
 
@@ -1913,7 +1913,7 @@ proto.fonoster.applications.v1beta2.UpdateApplicationRequest.toObject = function
1913
1913
  ref: jspb.Message.getFieldWithDefault(msg, 1, ""),
1914
1914
  name: jspb.Message.getFieldWithDefault(msg, 2, ""),
1915
1915
  type: jspb.Message.getFieldWithDefault(msg, 3, 0),
1916
- appEndpoint: jspb.Message.getFieldWithDefault(msg, 4, ""),
1916
+ endpoint: jspb.Message.getFieldWithDefault(msg, 4, ""),
1917
1917
  textToSpeech: (f = msg.getTextToSpeech()) && proto.fonoster.applications.v1beta2.ProductContainer.toObject(includeInstance, f),
1918
1918
  speechToText: (f = msg.getSpeechToText()) && proto.fonoster.applications.v1beta2.ProductContainer.toObject(includeInstance, f),
1919
1919
  intelligence: (f = msg.getIntelligence()) && proto.fonoster.applications.v1beta2.ProductContainer.toObject(includeInstance, f)
@@ -1967,7 +1967,7 @@ proto.fonoster.applications.v1beta2.UpdateApplicationRequest.deserializeBinaryFr
1967
1967
  break;
1968
1968
  case 4:
1969
1969
  var value = /** @type {string} */ (reader.readString());
1970
- msg.setAppEndpoint(value);
1970
+ msg.setEndpoint(value);
1971
1971
  break;
1972
1972
  case 5:
1973
1973
  var value = new proto.fonoster.applications.v1beta2.ProductContainer;
@@ -2034,7 +2034,7 @@ proto.fonoster.applications.v1beta2.UpdateApplicationRequest.serializeBinaryToWr
2034
2034
  f
2035
2035
  );
2036
2036
  }
2037
- f = message.getAppEndpoint();
2037
+ f = message.getEndpoint();
2038
2038
  if (f.length > 0) {
2039
2039
  writer.writeString(
2040
2040
  4,
@@ -2123,10 +2123,10 @@ proto.fonoster.applications.v1beta2.UpdateApplicationRequest.prototype.setType =
2123
2123
 
2124
2124
 
2125
2125
  /**
2126
- * optional string app_endpoint = 4;
2126
+ * optional string endpoint = 4;
2127
2127
  * @return {string}
2128
2128
  */
2129
- proto.fonoster.applications.v1beta2.UpdateApplicationRequest.prototype.getAppEndpoint = function() {
2129
+ proto.fonoster.applications.v1beta2.UpdateApplicationRequest.prototype.getEndpoint = function() {
2130
2130
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
2131
2131
  };
2132
2132
 
@@ -2135,7 +2135,7 @@ proto.fonoster.applications.v1beta2.UpdateApplicationRequest.prototype.getAppEnd
2135
2135
  * @param {string} value
2136
2136
  * @return {!proto.fonoster.applications.v1beta2.UpdateApplicationRequest} returns this
2137
2137
  */
2138
- proto.fonoster.applications.v1beta2.UpdateApplicationRequest.prototype.setAppEndpoint = function(value) {
2138
+ proto.fonoster.applications.v1beta2.UpdateApplicationRequest.prototype.setEndpoint = function(value) {
2139
2139
  return jspb.Message.setProto3StringField(this, 4, value);
2140
2140
  };
2141
2141
 
@@ -6,15 +6,15 @@ export class CallDetailRecord extends jspb.Message {
6
6
  getRef(): string;
7
7
  setRef(value: string): CallDetailRecord;
8
8
 
9
+ getCallId(): string;
10
+ setCallId(value: string): CallDetailRecord;
11
+
9
12
  getType(): CallType;
10
13
  setType(value: CallType): CallDetailRecord;
11
14
 
12
15
  getStatus(): CallStatus;
13
16
  setStatus(value: CallStatus): CallDetailRecord;
14
17
 
15
- getHangupCause(): HangupCause;
16
- setHangupCause(value: HangupCause): CallDetailRecord;
17
-
18
18
  getStartedAt(): number;
19
19
  setStartedAt(value: number): CallDetailRecord;
20
20
 
@@ -44,9 +44,9 @@ export class CallDetailRecord extends jspb.Message {
44
44
  export namespace CallDetailRecord {
45
45
  export type AsObject = {
46
46
  ref: string,
47
+ callId: string,
47
48
  type: CallType,
48
49
  status: CallStatus,
49
- hangupCause: HangupCause,
50
50
  startedAt: number,
51
51
  endedAt: number,
52
52
  from: string,
@@ -66,6 +66,9 @@ export class CreateCallRequest extends jspb.Message {
66
66
  getAppRef(): string;
67
67
  setAppRef(value: string): CreateCallRequest;
68
68
 
69
+ getTimeout(): number;
70
+ setTimeout(value: number): CreateCallRequest;
71
+
69
72
  serializeBinary(): Uint8Array;
70
73
  toObject(includeInstance?: boolean): CreateCallRequest.AsObject;
71
74
  static toObject(includeInstance: boolean, msg: CreateCallRequest): CreateCallRequest.AsObject;
@@ -79,6 +82,7 @@ export namespace CreateCallRequest {
79
82
  from: string,
80
83
  to: string,
81
84
  appRef: string,
85
+ timeout: number,
82
86
  }
83
87
  }
84
88
 
@@ -207,11 +211,8 @@ export namespace TrackCallRequest {
207
211
  }
208
212
 
209
213
  export class TrackCallResponse extends jspb.Message {
210
- getRef(): string;
211
- setRef(value: string): TrackCallResponse;
212
-
213
- getStatus(): CallStatus;
214
- setStatus(value: CallStatus): TrackCallResponse;
214
+ getStatus(): TrackCallResponse.Status;
215
+ setStatus(value: TrackCallResponse.Status): TrackCallResponse;
215
216
 
216
217
  serializeBinary(): Uint8Array;
217
218
  toObject(includeInstance?: boolean): TrackCallResponse.AsObject;
@@ -223,40 +224,39 @@ export class TrackCallResponse extends jspb.Message {
223
224
 
224
225
  export namespace TrackCallResponse {
225
226
  export type AsObject = {
226
- ref: string,
227
- status: CallStatus,
227
+ status: TrackCallResponse.Status,
228
+ }
229
+
230
+ export enum Status {
231
+ TRYING = 0,
232
+ CANCEL = 1,
233
+ ANSWER = 2,
234
+ BUSY = 3,
235
+ PROGRESS = 4,
236
+ NOANSWER = 5,
237
+ FAILED = 6,
228
238
  }
229
239
  }
230
240
 
231
241
  export enum CallType {
232
- PROGRAMMABLE = 0,
233
- SIP_TRUNKING = 1,
234
- }
235
- export enum HangupCause {
236
- NORMAL_CLEARING = 0,
237
- CALL_REJECTED = 1,
238
- UNALLOCATED = 2,
239
- NO_USER_RESPONSE = 3,
240
- NO_ROUTE_DESTINATION = 4,
241
- NO_ANSWER = 5,
242
- USER_BUSY = 6,
243
- NOT_ACCEPTABLE_HERE = 7,
244
- SERVICE_UNAVAILABLE = 8,
245
- INVALID_NUMBER_FORMAT = 9,
246
- UNKNOWN = 10,
242
+ SIP_ORIGINATED = 0,
243
+ API_ORIGINATED = 1,
247
244
  }
248
245
  export enum CallStatus {
249
- QUEUED = 0,
250
- RINGING = 1,
251
- IN_PROGRESS = 2,
252
- COMPLETED = 3,
253
- FAILED = 4,
254
- BUSY = 5,
255
- CANCELED = 7,
256
- REJECTED = 8,
257
- TIMEOUT = 9,
246
+ UNKNOWN = 0,
247
+ NORMAL_CLEARING = 1,
248
+ CALL_REJECTED = 2,
249
+ UNALLOCATED = 3,
250
+ NO_USER_RESPONSE = 4,
251
+ NO_ROUTE_DESTINATION = 5,
252
+ NO_ANSWER = 6,
253
+ USER_BUSY = 7,
254
+ NOT_ACCEPTABLE_HERE = 8,
255
+ SERVICE_UNAVAILABLE = 9,
256
+ INVALID_NUMBER_FORMAT = 10,
258
257
  }
259
258
  export enum CallDirection {
260
- INBOUND = 0,
261
- OUTBOUND = 1,
259
+ FROM_PSTN = 0,
260
+ TO_PSTN = 1,
261
+ INTRA_NETWORK = 2,
262
262
  }