@fonoster/sdk 0.6.5 → 0.7.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 (72) hide show
  1. package/README.md +524 -459
  2. package/dist/node/Acls.d.ts +43 -44
  3. package/dist/node/Acls.js +62 -49
  4. package/dist/node/Agents.d.ts +44 -45
  5. package/dist/node/Agents.js +47 -46
  6. package/dist/node/ApiKeys.d.ts +29 -29
  7. package/dist/node/ApiKeys.js +29 -29
  8. package/dist/node/Applications.d.ts +43 -43
  9. package/dist/node/Applications.js +56 -44
  10. package/dist/node/Calls.d.ts +42 -30
  11. package/dist/node/Calls.js +78 -54
  12. package/dist/node/Credentials.d.ts +39 -39
  13. package/dist/node/Credentials.js +39 -39
  14. package/dist/node/Domains.d.ts +37 -37
  15. package/dist/node/Domains.js +37 -37
  16. package/dist/node/Numbers.d.ts +40 -40
  17. package/dist/node/Numbers.js +40 -40
  18. package/dist/node/Secrets.d.ts +37 -37
  19. package/dist/node/Secrets.js +37 -37
  20. package/dist/node/Trunks.d.ts +58 -52
  21. package/dist/node/Trunks.js +104 -70
  22. package/dist/node/Users.d.ts +34 -34
  23. package/dist/node/Users.js +34 -34
  24. package/dist/node/Workspaces.d.ts +55 -54
  25. package/dist/node/Workspaces.js +61 -54
  26. package/dist/node/client/jsonToObject.js +1 -1
  27. package/dist/node/client/makeRpcRequest.js +1 -1
  28. package/dist/node/client/objectToJson.d.ts +1 -1
  29. package/dist/node/client/objectToJson.js +12 -2
  30. package/dist/node/client/types/CallsClient.d.ts +3 -2
  31. package/dist/node/client/types/IdentityClient.d.ts +2 -2
  32. package/dist/node/client/types/common.d.ts +8 -1
  33. package/dist/node/client/utils.js +6 -3
  34. package/dist/node/generated/node/acls_pb.js +6 -6
  35. package/dist/node/generated/node/agents_grpc_pb.js +0 -2
  36. package/dist/node/generated/node/agents_pb.js +450 -30
  37. package/dist/node/generated/node/applications_pb.js +24 -24
  38. package/dist/node/generated/node/calls_grpc_pb.js +0 -3
  39. package/dist/node/generated/node/calls_pb.js +103 -104
  40. package/dist/node/generated/node/credentials_pb.js +15 -45
  41. package/dist/node/generated/node/domains_pb.js +34 -34
  42. package/dist/node/generated/node/identity_grpc_pb.js +14 -14
  43. package/dist/node/generated/node/identity_pb.js +55 -55
  44. package/dist/node/generated/node/numbers_grpc_pb.js +0 -1
  45. package/dist/node/generated/node/numbers_pb.js +197 -17
  46. package/dist/node/generated/node/secrets_pb.js +6 -6
  47. package/dist/node/generated/node/trunks_grpc_pb.js +0 -2
  48. package/dist/node/generated/node/trunks_pb.js +532 -37
  49. package/dist/node/generated/web/IdentityServiceClientPb.ts +5 -5
  50. package/dist/node/generated/web/acls_pb.js +6 -6
  51. package/dist/node/generated/web/agents_pb.d.ts +62 -10
  52. package/dist/node/generated/web/agents_pb.js +450 -30
  53. package/dist/node/generated/web/applications_pb.d.ts +9 -9
  54. package/dist/node/generated/web/applications_pb.js +24 -24
  55. package/dist/node/generated/web/calls_pb.d.ts +37 -37
  56. package/dist/node/generated/web/calls_pb.js +103 -104
  57. package/dist/node/generated/web/credentials_pb.d.ts +0 -4
  58. package/dist/node/generated/web/credentials_pb.js +15 -45
  59. package/dist/node/generated/web/domains_pb.js +34 -34
  60. package/dist/node/generated/web/identity_pb.d.ts +13 -13
  61. package/dist/node/generated/web/identity_pb.js +55 -55
  62. package/dist/node/generated/web/numbers_pb.d.ts +26 -4
  63. package/dist/node/generated/web/numbers_pb.js +197 -17
  64. package/dist/node/generated/web/secrets_pb.js +6 -6
  65. package/dist/node/generated/web/trunks_pb.d.ts +71 -11
  66. package/dist/node/generated/web/trunks_pb.js +532 -37
  67. package/dist/node/tsconfig.node.tsbuildinfo +1 -1
  68. package/dist/node/utils.d.ts +5 -3
  69. package/dist/node/utils.js +56 -0
  70. package/dist/web/fonoster.min.js +1 -1
  71. package/dist/web/index.esm.js +1 -1
  72. package/package.json +4 -4
@@ -15,11 +15,9 @@ var jspb = require('google-protobuf');
15
15
  var goog = jspb;
16
16
  var global = (function() { return this || window || global || self || Function('return this')(); }).call(null);
17
17
 
18
- var domains_pb = require('./domains_pb.js');
19
- goog.object.extend(proto, domains_pb);
20
- var credentials_pb = require('./credentials_pb.js');
21
- goog.object.extend(proto, credentials_pb);
22
18
  goog.exportSymbol('proto.fonoster.agents.v1beta2.Agent', null, global);
19
+ goog.exportSymbol('proto.fonoster.agents.v1beta2.Agent.Credentials', null, global);
20
+ goog.exportSymbol('proto.fonoster.agents.v1beta2.Agent.Domain', null, global);
23
21
  goog.exportSymbol('proto.fonoster.agents.v1beta2.CreateAgentRequest', null, global);
24
22
  goog.exportSymbol('proto.fonoster.agents.v1beta2.CreateAgentResponse', null, global);
25
23
  goog.exportSymbol('proto.fonoster.agents.v1beta2.DeleteAgentRequest', null, global);
@@ -51,6 +49,48 @@ if (goog.DEBUG && !COMPILED) {
51
49
  */
52
50
  proto.fonoster.agents.v1beta2.Agent.displayName = 'proto.fonoster.agents.v1beta2.Agent';
53
51
  }
52
+ /**
53
+ * Generated by JsPbCodeGenerator.
54
+ * @param {Array=} opt_data Optional initial data array, typically from a
55
+ * server response, or constructed directly in Javascript. The array is used
56
+ * in place and becomes part of the constructed object. It is not cloned.
57
+ * If no data is provided, the constructed object will be empty, but still
58
+ * valid.
59
+ * @extends {jspb.Message}
60
+ * @constructor
61
+ */
62
+ proto.fonoster.agents.v1beta2.Agent.Domain = function(opt_data) {
63
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
64
+ };
65
+ goog.inherits(proto.fonoster.agents.v1beta2.Agent.Domain, jspb.Message);
66
+ if (goog.DEBUG && !COMPILED) {
67
+ /**
68
+ * @public
69
+ * @override
70
+ */
71
+ proto.fonoster.agents.v1beta2.Agent.Domain.displayName = 'proto.fonoster.agents.v1beta2.Agent.Domain';
72
+ }
73
+ /**
74
+ * Generated by JsPbCodeGenerator.
75
+ * @param {Array=} opt_data Optional initial data array, typically from a
76
+ * server response, or constructed directly in Javascript. The array is used
77
+ * in place and becomes part of the constructed object. It is not cloned.
78
+ * If no data is provided, the constructed object will be empty, but still
79
+ * valid.
80
+ * @extends {jspb.Message}
81
+ * @constructor
82
+ */
83
+ proto.fonoster.agents.v1beta2.Agent.Credentials = function(opt_data) {
84
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
85
+ };
86
+ goog.inherits(proto.fonoster.agents.v1beta2.Agent.Credentials, jspb.Message);
87
+ if (goog.DEBUG && !COMPILED) {
88
+ /**
89
+ * @public
90
+ * @override
91
+ */
92
+ proto.fonoster.agents.v1beta2.Agent.Credentials.displayName = 'proto.fonoster.agents.v1beta2.Agent.Credentials';
93
+ }
54
94
  /**
55
95
  * Generated by JsPbCodeGenerator.
56
96
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -281,8 +321,8 @@ proto.fonoster.agents.v1beta2.Agent.toObject = function(includeInstance, msg) {
281
321
  updatedAt: jspb.Message.getFieldWithDefault(msg, 7, 0),
282
322
  maxContacts: jspb.Message.getFieldWithDefault(msg, 8, 0),
283
323
  expires: jspb.Message.getFieldWithDefault(msg, 9, 0),
284
- domain: (f = msg.getDomain()) && domains_pb.Domain.toObject(includeInstance, f),
285
- credentials: (f = msg.getCredentials()) && credentials_pb.Credentials.toObject(includeInstance, f)
324
+ domain: (f = msg.getDomain()) && proto.fonoster.agents.v1beta2.Agent.Domain.toObject(includeInstance, f),
325
+ credentials: (f = msg.getCredentials()) && proto.fonoster.agents.v1beta2.Agent.Credentials.toObject(includeInstance, f)
286
326
  };
287
327
 
288
328
  if (includeInstance) {
@@ -340,11 +380,11 @@ proto.fonoster.agents.v1beta2.Agent.deserializeBinaryFromReader = function(msg,
340
380
  msg.setEnabled(value);
341
381
  break;
342
382
  case 6:
343
- var value = /** @type {number} */ (reader.readInt64());
383
+ var value = /** @type {number} */ (reader.readInt32());
344
384
  msg.setCreatedAt(value);
345
385
  break;
346
386
  case 7:
347
- var value = /** @type {number} */ (reader.readInt64());
387
+ var value = /** @type {number} */ (reader.readInt32());
348
388
  msg.setUpdatedAt(value);
349
389
  break;
350
390
  case 8:
@@ -356,13 +396,13 @@ proto.fonoster.agents.v1beta2.Agent.deserializeBinaryFromReader = function(msg,
356
396
  msg.setExpires(value);
357
397
  break;
358
398
  case 10:
359
- var value = new domains_pb.Domain;
360
- reader.readMessage(value,domains_pb.Domain.deserializeBinaryFromReader);
399
+ var value = new proto.fonoster.agents.v1beta2.Agent.Domain;
400
+ reader.readMessage(value,proto.fonoster.agents.v1beta2.Agent.Domain.deserializeBinaryFromReader);
361
401
  msg.setDomain(value);
362
402
  break;
363
403
  case 11:
364
- var value = new credentials_pb.Credentials;
365
- reader.readMessage(value,credentials_pb.Credentials.deserializeBinaryFromReader);
404
+ var value = new proto.fonoster.agents.v1beta2.Agent.Credentials;
405
+ reader.readMessage(value,proto.fonoster.agents.v1beta2.Agent.Credentials.deserializeBinaryFromReader);
366
406
  msg.setCredentials(value);
367
407
  break;
368
408
  default:
@@ -431,14 +471,14 @@ proto.fonoster.agents.v1beta2.Agent.serializeBinaryToWriter = function(message,
431
471
  }
432
472
  f = message.getCreatedAt();
433
473
  if (f !== 0) {
434
- writer.writeInt64(
474
+ writer.writeInt32(
435
475
  6,
436
476
  f
437
477
  );
438
478
  }
439
479
  f = message.getUpdatedAt();
440
480
  if (f !== 0) {
441
- writer.writeInt64(
481
+ writer.writeInt32(
442
482
  7,
443
483
  f
444
484
  );
@@ -462,7 +502,7 @@ proto.fonoster.agents.v1beta2.Agent.serializeBinaryToWriter = function(message,
462
502
  writer.writeMessage(
463
503
  10,
464
504
  f,
465
- domains_pb.Domain.serializeBinaryToWriter
505
+ proto.fonoster.agents.v1beta2.Agent.Domain.serializeBinaryToWriter
466
506
  );
467
507
  }
468
508
  f = message.getCredentials();
@@ -470,9 +510,389 @@ proto.fonoster.agents.v1beta2.Agent.serializeBinaryToWriter = function(message,
470
510
  writer.writeMessage(
471
511
  11,
472
512
  f,
473
- credentials_pb.Credentials.serializeBinaryToWriter
513
+ proto.fonoster.agents.v1beta2.Agent.Credentials.serializeBinaryToWriter
514
+ );
515
+ }
516
+ };
517
+
518
+
519
+
520
+
521
+
522
+ if (jspb.Message.GENERATE_TO_OBJECT) {
523
+ /**
524
+ * Creates an object representation of this proto.
525
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
526
+ * Optional fields that are not set will be set to undefined.
527
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
528
+ * For the list of reserved names please see:
529
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
530
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
531
+ * JSPB instance for transitional soy proto support:
532
+ * http://goto/soy-param-migration
533
+ * @return {!Object}
534
+ */
535
+ proto.fonoster.agents.v1beta2.Agent.Domain.prototype.toObject = function(opt_includeInstance) {
536
+ return proto.fonoster.agents.v1beta2.Agent.Domain.toObject(opt_includeInstance, this);
537
+ };
538
+
539
+
540
+ /**
541
+ * Static version of the {@see toObject} method.
542
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
543
+ * the JSPB instance for transitional soy proto support:
544
+ * http://goto/soy-param-migration
545
+ * @param {!proto.fonoster.agents.v1beta2.Agent.Domain} msg The msg instance to transform.
546
+ * @return {!Object}
547
+ * @suppress {unusedLocalVariables} f is only used for nested messages
548
+ */
549
+ proto.fonoster.agents.v1beta2.Agent.Domain.toObject = function(includeInstance, msg) {
550
+ var f, obj = {
551
+ ref: jspb.Message.getFieldWithDefault(msg, 1, ""),
552
+ name: jspb.Message.getFieldWithDefault(msg, 2, ""),
553
+ domainUri: jspb.Message.getFieldWithDefault(msg, 3, "")
554
+ };
555
+
556
+ if (includeInstance) {
557
+ obj.$jspbMessageInstance = msg;
558
+ }
559
+ return obj;
560
+ };
561
+ }
562
+
563
+
564
+ /**
565
+ * Deserializes binary data (in protobuf wire format).
566
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
567
+ * @return {!proto.fonoster.agents.v1beta2.Agent.Domain}
568
+ */
569
+ proto.fonoster.agents.v1beta2.Agent.Domain.deserializeBinary = function(bytes) {
570
+ var reader = new jspb.BinaryReader(bytes);
571
+ var msg = new proto.fonoster.agents.v1beta2.Agent.Domain;
572
+ return proto.fonoster.agents.v1beta2.Agent.Domain.deserializeBinaryFromReader(msg, reader);
573
+ };
574
+
575
+
576
+ /**
577
+ * Deserializes binary data (in protobuf wire format) from the
578
+ * given reader into the given message object.
579
+ * @param {!proto.fonoster.agents.v1beta2.Agent.Domain} msg The message object to deserialize into.
580
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
581
+ * @return {!proto.fonoster.agents.v1beta2.Agent.Domain}
582
+ */
583
+ proto.fonoster.agents.v1beta2.Agent.Domain.deserializeBinaryFromReader = function(msg, reader) {
584
+ while (reader.nextField()) {
585
+ if (reader.isEndGroup()) {
586
+ break;
587
+ }
588
+ var field = reader.getFieldNumber();
589
+ switch (field) {
590
+ case 1:
591
+ var value = /** @type {string} */ (reader.readString());
592
+ msg.setRef(value);
593
+ break;
594
+ case 2:
595
+ var value = /** @type {string} */ (reader.readString());
596
+ msg.setName(value);
597
+ break;
598
+ case 3:
599
+ var value = /** @type {string} */ (reader.readString());
600
+ msg.setDomainUri(value);
601
+ break;
602
+ default:
603
+ reader.skipField();
604
+ break;
605
+ }
606
+ }
607
+ return msg;
608
+ };
609
+
610
+
611
+ /**
612
+ * Serializes the message to binary data (in protobuf wire format).
613
+ * @return {!Uint8Array}
614
+ */
615
+ proto.fonoster.agents.v1beta2.Agent.Domain.prototype.serializeBinary = function() {
616
+ var writer = new jspb.BinaryWriter();
617
+ proto.fonoster.agents.v1beta2.Agent.Domain.serializeBinaryToWriter(this, writer);
618
+ return writer.getResultBuffer();
619
+ };
620
+
621
+
622
+ /**
623
+ * Serializes the given message to binary data (in protobuf wire
624
+ * format), writing to the given BinaryWriter.
625
+ * @param {!proto.fonoster.agents.v1beta2.Agent.Domain} message
626
+ * @param {!jspb.BinaryWriter} writer
627
+ * @suppress {unusedLocalVariables} f is only used for nested messages
628
+ */
629
+ proto.fonoster.agents.v1beta2.Agent.Domain.serializeBinaryToWriter = function(message, writer) {
630
+ var f = undefined;
631
+ f = message.getRef();
632
+ if (f.length > 0) {
633
+ writer.writeString(
634
+ 1,
635
+ f
474
636
  );
475
637
  }
638
+ f = message.getName();
639
+ if (f.length > 0) {
640
+ writer.writeString(
641
+ 2,
642
+ f
643
+ );
644
+ }
645
+ f = message.getDomainUri();
646
+ if (f.length > 0) {
647
+ writer.writeString(
648
+ 3,
649
+ f
650
+ );
651
+ }
652
+ };
653
+
654
+
655
+ /**
656
+ * optional string ref = 1;
657
+ * @return {string}
658
+ */
659
+ proto.fonoster.agents.v1beta2.Agent.Domain.prototype.getRef = function() {
660
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
661
+ };
662
+
663
+
664
+ /**
665
+ * @param {string} value
666
+ * @return {!proto.fonoster.agents.v1beta2.Agent.Domain} returns this
667
+ */
668
+ proto.fonoster.agents.v1beta2.Agent.Domain.prototype.setRef = function(value) {
669
+ return jspb.Message.setProto3StringField(this, 1, value);
670
+ };
671
+
672
+
673
+ /**
674
+ * optional string name = 2;
675
+ * @return {string}
676
+ */
677
+ proto.fonoster.agents.v1beta2.Agent.Domain.prototype.getName = function() {
678
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
679
+ };
680
+
681
+
682
+ /**
683
+ * @param {string} value
684
+ * @return {!proto.fonoster.agents.v1beta2.Agent.Domain} returns this
685
+ */
686
+ proto.fonoster.agents.v1beta2.Agent.Domain.prototype.setName = function(value) {
687
+ return jspb.Message.setProto3StringField(this, 2, value);
688
+ };
689
+
690
+
691
+ /**
692
+ * optional string domain_uri = 3;
693
+ * @return {string}
694
+ */
695
+ proto.fonoster.agents.v1beta2.Agent.Domain.prototype.getDomainUri = function() {
696
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
697
+ };
698
+
699
+
700
+ /**
701
+ * @param {string} value
702
+ * @return {!proto.fonoster.agents.v1beta2.Agent.Domain} returns this
703
+ */
704
+ proto.fonoster.agents.v1beta2.Agent.Domain.prototype.setDomainUri = function(value) {
705
+ return jspb.Message.setProto3StringField(this, 3, value);
706
+ };
707
+
708
+
709
+
710
+
711
+
712
+ if (jspb.Message.GENERATE_TO_OBJECT) {
713
+ /**
714
+ * Creates an object representation of this proto.
715
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
716
+ * Optional fields that are not set will be set to undefined.
717
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
718
+ * For the list of reserved names please see:
719
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
720
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
721
+ * JSPB instance for transitional soy proto support:
722
+ * http://goto/soy-param-migration
723
+ * @return {!Object}
724
+ */
725
+ proto.fonoster.agents.v1beta2.Agent.Credentials.prototype.toObject = function(opt_includeInstance) {
726
+ return proto.fonoster.agents.v1beta2.Agent.Credentials.toObject(opt_includeInstance, this);
727
+ };
728
+
729
+
730
+ /**
731
+ * Static version of the {@see toObject} method.
732
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
733
+ * the JSPB instance for transitional soy proto support:
734
+ * http://goto/soy-param-migration
735
+ * @param {!proto.fonoster.agents.v1beta2.Agent.Credentials} msg The msg instance to transform.
736
+ * @return {!Object}
737
+ * @suppress {unusedLocalVariables} f is only used for nested messages
738
+ */
739
+ proto.fonoster.agents.v1beta2.Agent.Credentials.toObject = function(includeInstance, msg) {
740
+ var f, obj = {
741
+ ref: jspb.Message.getFieldWithDefault(msg, 1, ""),
742
+ name: jspb.Message.getFieldWithDefault(msg, 2, ""),
743
+ username: jspb.Message.getFieldWithDefault(msg, 3, "")
744
+ };
745
+
746
+ if (includeInstance) {
747
+ obj.$jspbMessageInstance = msg;
748
+ }
749
+ return obj;
750
+ };
751
+ }
752
+
753
+
754
+ /**
755
+ * Deserializes binary data (in protobuf wire format).
756
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
757
+ * @return {!proto.fonoster.agents.v1beta2.Agent.Credentials}
758
+ */
759
+ proto.fonoster.agents.v1beta2.Agent.Credentials.deserializeBinary = function(bytes) {
760
+ var reader = new jspb.BinaryReader(bytes);
761
+ var msg = new proto.fonoster.agents.v1beta2.Agent.Credentials;
762
+ return proto.fonoster.agents.v1beta2.Agent.Credentials.deserializeBinaryFromReader(msg, reader);
763
+ };
764
+
765
+
766
+ /**
767
+ * Deserializes binary data (in protobuf wire format) from the
768
+ * given reader into the given message object.
769
+ * @param {!proto.fonoster.agents.v1beta2.Agent.Credentials} msg The message object to deserialize into.
770
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
771
+ * @return {!proto.fonoster.agents.v1beta2.Agent.Credentials}
772
+ */
773
+ proto.fonoster.agents.v1beta2.Agent.Credentials.deserializeBinaryFromReader = function(msg, reader) {
774
+ while (reader.nextField()) {
775
+ if (reader.isEndGroup()) {
776
+ break;
777
+ }
778
+ var field = reader.getFieldNumber();
779
+ switch (field) {
780
+ case 1:
781
+ var value = /** @type {string} */ (reader.readString());
782
+ msg.setRef(value);
783
+ break;
784
+ case 2:
785
+ var value = /** @type {string} */ (reader.readString());
786
+ msg.setName(value);
787
+ break;
788
+ case 3:
789
+ var value = /** @type {string} */ (reader.readString());
790
+ msg.setUsername(value);
791
+ break;
792
+ default:
793
+ reader.skipField();
794
+ break;
795
+ }
796
+ }
797
+ return msg;
798
+ };
799
+
800
+
801
+ /**
802
+ * Serializes the message to binary data (in protobuf wire format).
803
+ * @return {!Uint8Array}
804
+ */
805
+ proto.fonoster.agents.v1beta2.Agent.Credentials.prototype.serializeBinary = function() {
806
+ var writer = new jspb.BinaryWriter();
807
+ proto.fonoster.agents.v1beta2.Agent.Credentials.serializeBinaryToWriter(this, writer);
808
+ return writer.getResultBuffer();
809
+ };
810
+
811
+
812
+ /**
813
+ * Serializes the given message to binary data (in protobuf wire
814
+ * format), writing to the given BinaryWriter.
815
+ * @param {!proto.fonoster.agents.v1beta2.Agent.Credentials} message
816
+ * @param {!jspb.BinaryWriter} writer
817
+ * @suppress {unusedLocalVariables} f is only used for nested messages
818
+ */
819
+ proto.fonoster.agents.v1beta2.Agent.Credentials.serializeBinaryToWriter = function(message, writer) {
820
+ var f = undefined;
821
+ f = message.getRef();
822
+ if (f.length > 0) {
823
+ writer.writeString(
824
+ 1,
825
+ f
826
+ );
827
+ }
828
+ f = message.getName();
829
+ if (f.length > 0) {
830
+ writer.writeString(
831
+ 2,
832
+ f
833
+ );
834
+ }
835
+ f = message.getUsername();
836
+ if (f.length > 0) {
837
+ writer.writeString(
838
+ 3,
839
+ f
840
+ );
841
+ }
842
+ };
843
+
844
+
845
+ /**
846
+ * optional string ref = 1;
847
+ * @return {string}
848
+ */
849
+ proto.fonoster.agents.v1beta2.Agent.Credentials.prototype.getRef = function() {
850
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
851
+ };
852
+
853
+
854
+ /**
855
+ * @param {string} value
856
+ * @return {!proto.fonoster.agents.v1beta2.Agent.Credentials} returns this
857
+ */
858
+ proto.fonoster.agents.v1beta2.Agent.Credentials.prototype.setRef = function(value) {
859
+ return jspb.Message.setProto3StringField(this, 1, value);
860
+ };
861
+
862
+
863
+ /**
864
+ * optional string name = 2;
865
+ * @return {string}
866
+ */
867
+ proto.fonoster.agents.v1beta2.Agent.Credentials.prototype.getName = function() {
868
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
869
+ };
870
+
871
+
872
+ /**
873
+ * @param {string} value
874
+ * @return {!proto.fonoster.agents.v1beta2.Agent.Credentials} returns this
875
+ */
876
+ proto.fonoster.agents.v1beta2.Agent.Credentials.prototype.setName = function(value) {
877
+ return jspb.Message.setProto3StringField(this, 2, value);
878
+ };
879
+
880
+
881
+ /**
882
+ * optional string username = 3;
883
+ * @return {string}
884
+ */
885
+ proto.fonoster.agents.v1beta2.Agent.Credentials.prototype.getUsername = function() {
886
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
887
+ };
888
+
889
+
890
+ /**
891
+ * @param {string} value
892
+ * @return {!proto.fonoster.agents.v1beta2.Agent.Credentials} returns this
893
+ */
894
+ proto.fonoster.agents.v1beta2.Agent.Credentials.prototype.setUsername = function(value) {
895
+ return jspb.Message.setProto3StringField(this, 3, value);
476
896
  };
477
897
 
478
898
 
@@ -567,7 +987,7 @@ proto.fonoster.agents.v1beta2.Agent.prototype.setEnabled = function(value) {
567
987
 
568
988
 
569
989
  /**
570
- * optional int64 created_at = 6;
990
+ * optional int32 created_at = 6;
571
991
  * @return {number}
572
992
  */
573
993
  proto.fonoster.agents.v1beta2.Agent.prototype.getCreatedAt = function() {
@@ -585,7 +1005,7 @@ proto.fonoster.agents.v1beta2.Agent.prototype.setCreatedAt = function(value) {
585
1005
 
586
1006
 
587
1007
  /**
588
- * optional int64 updated_at = 7;
1008
+ * optional int32 updated_at = 7;
589
1009
  * @return {number}
590
1010
  */
591
1011
  proto.fonoster.agents.v1beta2.Agent.prototype.getUpdatedAt = function() {
@@ -639,17 +1059,17 @@ proto.fonoster.agents.v1beta2.Agent.prototype.setExpires = function(value) {
639
1059
 
640
1060
 
641
1061
  /**
642
- * optional fonoster.domains.v1beta2.Domain domain = 10;
643
- * @return {?proto.fonoster.domains.v1beta2.Domain}
1062
+ * optional Domain domain = 10;
1063
+ * @return {?proto.fonoster.agents.v1beta2.Agent.Domain}
644
1064
  */
645
1065
  proto.fonoster.agents.v1beta2.Agent.prototype.getDomain = function() {
646
- return /** @type{?proto.fonoster.domains.v1beta2.Domain} */ (
647
- jspb.Message.getWrapperField(this, domains_pb.Domain, 10));
1066
+ return /** @type{?proto.fonoster.agents.v1beta2.Agent.Domain} */ (
1067
+ jspb.Message.getWrapperField(this, proto.fonoster.agents.v1beta2.Agent.Domain, 10));
648
1068
  };
649
1069
 
650
1070
 
651
1071
  /**
652
- * @param {?proto.fonoster.domains.v1beta2.Domain|undefined} value
1072
+ * @param {?proto.fonoster.agents.v1beta2.Agent.Domain|undefined} value
653
1073
  * @return {!proto.fonoster.agents.v1beta2.Agent} returns this
654
1074
  */
655
1075
  proto.fonoster.agents.v1beta2.Agent.prototype.setDomain = function(value) {
@@ -676,17 +1096,17 @@ proto.fonoster.agents.v1beta2.Agent.prototype.hasDomain = function() {
676
1096
 
677
1097
 
678
1098
  /**
679
- * optional fonoster.credentials.v1beta2.Credentials credentials = 11;
680
- * @return {?proto.fonoster.credentials.v1beta2.Credentials}
1099
+ * optional Credentials credentials = 11;
1100
+ * @return {?proto.fonoster.agents.v1beta2.Agent.Credentials}
681
1101
  */
682
1102
  proto.fonoster.agents.v1beta2.Agent.prototype.getCredentials = function() {
683
- return /** @type{?proto.fonoster.credentials.v1beta2.Credentials} */ (
684
- jspb.Message.getWrapperField(this, credentials_pb.Credentials, 11));
1103
+ return /** @type{?proto.fonoster.agents.v1beta2.Agent.Credentials} */ (
1104
+ jspb.Message.getWrapperField(this, proto.fonoster.agents.v1beta2.Agent.Credentials, 11));
685
1105
  };
686
1106
 
687
1107
 
688
1108
  /**
689
- * @param {?proto.fonoster.credentials.v1beta2.Credentials|undefined} value
1109
+ * @param {?proto.fonoster.agents.v1beta2.Agent.Credentials|undefined} value
690
1110
  * @return {!proto.fonoster.agents.v1beta2.Agent} returns this
691
1111
  */
692
1112
  proto.fonoster.agents.v1beta2.Agent.prototype.setCredentials = function(value) {
@@ -2396,8 +2816,8 @@ proto.fonoster.agents.v1beta2.ListAgentsResponse.prototype.setNextPageToken = fu
2396
2816
  * @enum {number}
2397
2817
  */
2398
2818
  proto.fonoster.agents.v1beta2.Privacy = {
2399
- PRIVATE: 0,
2400
- NONE: 1
2819
+ NONE: 0,
2820
+ PRIVATE: 1
2401
2821
  };
2402
2822
 
2403
2823
  goog.object.extend(exports, proto.fonoster.agents.v1beta2);
@@ -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,