@fonoster/sdk 0.6.5 → 0.6.6

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 (61) hide show
  1. package/README.md +519 -454
  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 +39 -39
  9. package/dist/node/Applications.js +52 -40
  10. package/dist/node/Calls.d.ts +28 -29
  11. package/dist/node/Calls.js +32 -27
  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/IdentityClient.d.ts +2 -2
  31. package/dist/node/client/utils.js +6 -3
  32. package/dist/node/generated/node/agents_grpc_pb.js +0 -2
  33. package/dist/node/generated/node/agents_pb.js +444 -24
  34. package/dist/node/generated/node/applications_pb.js +6 -6
  35. package/dist/node/generated/node/credentials_pb.js +11 -41
  36. package/dist/node/generated/node/domains_pb.js +30 -30
  37. package/dist/node/generated/node/identity_grpc_pb.js +14 -14
  38. package/dist/node/generated/node/identity_pb.js +37 -37
  39. package/dist/node/generated/node/numbers_grpc_pb.js +0 -1
  40. package/dist/node/generated/node/numbers_pb.js +191 -11
  41. package/dist/node/generated/node/trunks_grpc_pb.js +0 -2
  42. package/dist/node/generated/node/trunks_pb.js +526 -31
  43. package/dist/node/generated/web/IdentityServiceClientPb.ts +5 -5
  44. package/dist/node/generated/web/agents_pb.d.ts +62 -10
  45. package/dist/node/generated/web/agents_pb.js +444 -24
  46. package/dist/node/generated/web/applications_pb.js +6 -6
  47. package/dist/node/generated/web/credentials_pb.d.ts +0 -4
  48. package/dist/node/generated/web/credentials_pb.js +11 -41
  49. package/dist/node/generated/web/domains_pb.js +30 -30
  50. package/dist/node/generated/web/identity_pb.d.ts +13 -13
  51. package/dist/node/generated/web/identity_pb.js +37 -37
  52. package/dist/node/generated/web/numbers_pb.d.ts +26 -4
  53. package/dist/node/generated/web/numbers_pb.js +191 -11
  54. package/dist/node/generated/web/trunks_pb.d.ts +71 -11
  55. package/dist/node/generated/web/trunks_pb.js +526 -31
  56. package/dist/node/tsconfig.node.tsbuildinfo +1 -1
  57. package/dist/node/utils.d.ts +4 -3
  58. package/dist/node/utils.js +36 -0
  59. package/dist/web/fonoster.min.js +1 -1
  60. package/dist/web/index.esm.js +1 -1
  61. 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) {
@@ -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:
@@ -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
636
+ );
637
+ }
638
+ f = message.getName();
639
+ if (f.length > 0) {
640
+ writer.writeString(
641
+ 2,
642
+ f
474
643
  );
475
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
 
@@ -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);
@@ -601,11 +601,11 @@ proto.fonoster.applications.v1beta2.Application.deserializeBinaryFromReader = fu
601
601
  msg.setConversation(value);
602
602
  break;
603
603
  case 8:
604
- var value = /** @type {number} */ (reader.readInt64());
604
+ var value = /** @type {number} */ (reader.readInt32());
605
605
  msg.setCreatedAt(value);
606
606
  break;
607
607
  case 9:
608
- var value = /** @type {number} */ (reader.readInt64());
608
+ var value = /** @type {number} */ (reader.readInt32());
609
609
  msg.setUpdatedAt(value);
610
610
  break;
611
611
  default:
@@ -691,14 +691,14 @@ proto.fonoster.applications.v1beta2.Application.serializeBinaryToWriter = functi
691
691
  }
692
692
  f = message.getCreatedAt();
693
693
  if (f !== 0) {
694
- writer.writeInt64(
694
+ writer.writeInt32(
695
695
  8,
696
696
  f
697
697
  );
698
698
  }
699
699
  f = message.getUpdatedAt();
700
700
  if (f !== 0) {
701
- writer.writeInt64(
701
+ writer.writeInt32(
702
702
  9,
703
703
  f
704
704
  );
@@ -890,7 +890,7 @@ proto.fonoster.applications.v1beta2.Application.prototype.hasConversation = func
890
890
 
891
891
 
892
892
  /**
893
- * optional int64 created_at = 8;
893
+ * optional int32 created_at = 8;
894
894
  * @return {number}
895
895
  */
896
896
  proto.fonoster.applications.v1beta2.Application.prototype.getCreatedAt = function() {
@@ -908,7 +908,7 @@ proto.fonoster.applications.v1beta2.Application.prototype.setCreatedAt = functio
908
908
 
909
909
 
910
910
  /**
911
- * optional int64 updated_at = 9;
911
+ * optional int32 updated_at = 9;
912
912
  * @return {number}
913
913
  */
914
914
  proto.fonoster.applications.v1beta2.Application.prototype.getUpdatedAt = function() {