@fonoster/sdk 0.6.4 → 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.
- package/README.md +519 -454
- package/dist/node/Acls.d.ts +43 -44
- package/dist/node/Acls.js +62 -49
- package/dist/node/Agents.d.ts +44 -45
- package/dist/node/Agents.js +47 -46
- package/dist/node/ApiKeys.d.ts +29 -29
- package/dist/node/ApiKeys.js +29 -29
- package/dist/node/Applications.d.ts +39 -39
- package/dist/node/Applications.js +52 -40
- package/dist/node/Calls.d.ts +28 -29
- package/dist/node/Calls.js +32 -27
- package/dist/node/Credentials.d.ts +39 -39
- package/dist/node/Credentials.js +39 -39
- package/dist/node/Domains.d.ts +37 -37
- package/dist/node/Domains.js +37 -37
- package/dist/node/Numbers.d.ts +40 -40
- package/dist/node/Numbers.js +40 -40
- package/dist/node/Secrets.d.ts +37 -37
- package/dist/node/Secrets.js +37 -37
- package/dist/node/Trunks.d.ts +58 -52
- package/dist/node/Trunks.js +104 -70
- package/dist/node/Users.d.ts +34 -34
- package/dist/node/Users.js +34 -34
- package/dist/node/Workspaces.d.ts +55 -54
- package/dist/node/Workspaces.js +61 -54
- package/dist/node/client/jsonToObject.js +1 -1
- package/dist/node/client/makeRpcRequest.js +1 -1
- package/dist/node/client/objectToJson.d.ts +1 -1
- package/dist/node/client/objectToJson.js +12 -2
- package/dist/node/client/types/IdentityClient.d.ts +2 -2
- package/dist/node/client/utils.js +6 -3
- package/dist/node/generated/node/agents_grpc_pb.js +0 -2
- package/dist/node/generated/node/agents_pb.js +444 -24
- package/dist/node/generated/node/applications_pb.js +6 -6
- package/dist/node/generated/node/credentials_pb.js +11 -41
- package/dist/node/generated/node/domains_pb.js +30 -30
- package/dist/node/generated/node/identity_grpc_pb.js +14 -14
- package/dist/node/generated/node/identity_pb.js +37 -37
- package/dist/node/generated/node/numbers_grpc_pb.js +0 -1
- package/dist/node/generated/node/numbers_pb.js +191 -11
- package/dist/node/generated/node/trunks_grpc_pb.js +0 -2
- package/dist/node/generated/node/trunks_pb.js +526 -31
- package/dist/node/generated/web/IdentityServiceClientPb.ts +5 -5
- package/dist/node/generated/web/agents_pb.d.ts +62 -10
- package/dist/node/generated/web/agents_pb.js +444 -24
- package/dist/node/generated/web/applications_pb.js +6 -6
- package/dist/node/generated/web/credentials_pb.d.ts +0 -4
- package/dist/node/generated/web/credentials_pb.js +11 -41
- package/dist/node/generated/web/domains_pb.js +30 -30
- package/dist/node/generated/web/identity_pb.d.ts +13 -13
- package/dist/node/generated/web/identity_pb.js +37 -37
- package/dist/node/generated/web/numbers_pb.d.ts +26 -4
- package/dist/node/generated/web/numbers_pb.js +191 -11
- package/dist/node/generated/web/trunks_pb.d.ts +71 -11
- package/dist/node/generated/web/trunks_pb.js +526 -31
- package/dist/node/tsconfig.node.tsbuildinfo +1 -1
- package/dist/node/utils.d.ts +4 -3
- package/dist/node/utils.js +36 -0
- package/dist/web/fonoster.min.js +1 -1
- package/dist/web/index.esm.js +1 -1
- package/package.json +5 -4
|
@@ -15,10 +15,6 @@ 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 acls_pb = require('./acls_pb.js');
|
|
19
|
-
goog.object.extend(proto, acls_pb);
|
|
20
|
-
var credentials_pb = require('./credentials_pb.js');
|
|
21
|
-
goog.object.extend(proto, credentials_pb);
|
|
22
18
|
goog.exportSymbol('proto.fonoster.trunks.v1beta2.CreateTrunkRequest', null, global);
|
|
23
19
|
goog.exportSymbol('proto.fonoster.trunks.v1beta2.CreateTrunkResponse', null, global);
|
|
24
20
|
goog.exportSymbol('proto.fonoster.trunks.v1beta2.DeleteTrunkRequest', null, global);
|
|
@@ -27,6 +23,8 @@ goog.exportSymbol('proto.fonoster.trunks.v1beta2.GetTrunkRequest', null, global)
|
|
|
27
23
|
goog.exportSymbol('proto.fonoster.trunks.v1beta2.ListTrunksRequest', null, global);
|
|
28
24
|
goog.exportSymbol('proto.fonoster.trunks.v1beta2.ListTrunksResponse', null, global);
|
|
29
25
|
goog.exportSymbol('proto.fonoster.trunks.v1beta2.Trunk', null, global);
|
|
26
|
+
goog.exportSymbol('proto.fonoster.trunks.v1beta2.Trunk.Acl', null, global);
|
|
27
|
+
goog.exportSymbol('proto.fonoster.trunks.v1beta2.Trunk.Credentials', null, global);
|
|
30
28
|
goog.exportSymbol('proto.fonoster.trunks.v1beta2.TrunkURI', null, global);
|
|
31
29
|
goog.exportSymbol('proto.fonoster.trunks.v1beta2.UpdateTrunkRequest', null, global);
|
|
32
30
|
goog.exportSymbol('proto.fonoster.trunks.v1beta2.UpdateTrunkResponse', null, global);
|
|
@@ -72,6 +70,48 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
72
70
|
*/
|
|
73
71
|
proto.fonoster.trunks.v1beta2.Trunk.displayName = 'proto.fonoster.trunks.v1beta2.Trunk';
|
|
74
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.trunks.v1beta2.Trunk.Acl = function(opt_data) {
|
|
84
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.fonoster.trunks.v1beta2.Trunk.Acl.repeatedFields_, null);
|
|
85
|
+
};
|
|
86
|
+
goog.inherits(proto.fonoster.trunks.v1beta2.Trunk.Acl, jspb.Message);
|
|
87
|
+
if (goog.DEBUG && !COMPILED) {
|
|
88
|
+
/**
|
|
89
|
+
* @public
|
|
90
|
+
* @override
|
|
91
|
+
*/
|
|
92
|
+
proto.fonoster.trunks.v1beta2.Trunk.Acl.displayName = 'proto.fonoster.trunks.v1beta2.Trunk.Acl';
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* Generated by JsPbCodeGenerator.
|
|
96
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
97
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
98
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
99
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
100
|
+
* valid.
|
|
101
|
+
* @extends {jspb.Message}
|
|
102
|
+
* @constructor
|
|
103
|
+
*/
|
|
104
|
+
proto.fonoster.trunks.v1beta2.Trunk.Credentials = function(opt_data) {
|
|
105
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
106
|
+
};
|
|
107
|
+
goog.inherits(proto.fonoster.trunks.v1beta2.Trunk.Credentials, jspb.Message);
|
|
108
|
+
if (goog.DEBUG && !COMPILED) {
|
|
109
|
+
/**
|
|
110
|
+
* @public
|
|
111
|
+
* @override
|
|
112
|
+
*/
|
|
113
|
+
proto.fonoster.trunks.v1beta2.Trunk.Credentials.displayName = 'proto.fonoster.trunks.v1beta2.Trunk.Credentials';
|
|
114
|
+
}
|
|
75
115
|
/**
|
|
76
116
|
* Generated by JsPbCodeGenerator.
|
|
77
117
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -616,9 +656,9 @@ proto.fonoster.trunks.v1beta2.Trunk.toObject = function(includeInstance, msg) {
|
|
|
616
656
|
inboundUri: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
617
657
|
createdAt: jspb.Message.getFieldWithDefault(msg, 5, 0),
|
|
618
658
|
updatedAt: jspb.Message.getFieldWithDefault(msg, 6, 0),
|
|
619
|
-
accessControlList: (f = msg.getAccessControlList()) &&
|
|
620
|
-
inboundCredentials: (f = msg.getInboundCredentials()) &&
|
|
621
|
-
outboundCredentials: (f = msg.getOutboundCredentials()) &&
|
|
659
|
+
accessControlList: (f = msg.getAccessControlList()) && proto.fonoster.trunks.v1beta2.Trunk.Acl.toObject(includeInstance, f),
|
|
660
|
+
inboundCredentials: (f = msg.getInboundCredentials()) && proto.fonoster.trunks.v1beta2.Trunk.Credentials.toObject(includeInstance, f),
|
|
661
|
+
outboundCredentials: (f = msg.getOutboundCredentials()) && proto.fonoster.trunks.v1beta2.Trunk.Credentials.toObject(includeInstance, f),
|
|
622
662
|
urisList: jspb.Message.toObjectList(msg.getUrisList(),
|
|
623
663
|
proto.fonoster.trunks.v1beta2.TrunkURI.toObject, includeInstance)
|
|
624
664
|
};
|
|
@@ -682,18 +722,18 @@ proto.fonoster.trunks.v1beta2.Trunk.deserializeBinaryFromReader = function(msg,
|
|
|
682
722
|
msg.setUpdatedAt(value);
|
|
683
723
|
break;
|
|
684
724
|
case 7:
|
|
685
|
-
var value = new
|
|
686
|
-
reader.readMessage(value,
|
|
725
|
+
var value = new proto.fonoster.trunks.v1beta2.Trunk.Acl;
|
|
726
|
+
reader.readMessage(value,proto.fonoster.trunks.v1beta2.Trunk.Acl.deserializeBinaryFromReader);
|
|
687
727
|
msg.setAccessControlList(value);
|
|
688
728
|
break;
|
|
689
729
|
case 8:
|
|
690
|
-
var value = new
|
|
691
|
-
reader.readMessage(value,
|
|
730
|
+
var value = new proto.fonoster.trunks.v1beta2.Trunk.Credentials;
|
|
731
|
+
reader.readMessage(value,proto.fonoster.trunks.v1beta2.Trunk.Credentials.deserializeBinaryFromReader);
|
|
692
732
|
msg.setInboundCredentials(value);
|
|
693
733
|
break;
|
|
694
734
|
case 9:
|
|
695
|
-
var value = new
|
|
696
|
-
reader.readMessage(value,
|
|
735
|
+
var value = new proto.fonoster.trunks.v1beta2.Trunk.Credentials;
|
|
736
|
+
reader.readMessage(value,proto.fonoster.trunks.v1beta2.Trunk.Credentials.deserializeBinaryFromReader);
|
|
697
737
|
msg.setOutboundCredentials(value);
|
|
698
738
|
break;
|
|
699
739
|
case 10:
|
|
@@ -777,7 +817,7 @@ proto.fonoster.trunks.v1beta2.Trunk.serializeBinaryToWriter = function(message,
|
|
|
777
817
|
writer.writeMessage(
|
|
778
818
|
7,
|
|
779
819
|
f,
|
|
780
|
-
|
|
820
|
+
proto.fonoster.trunks.v1beta2.Trunk.Acl.serializeBinaryToWriter
|
|
781
821
|
);
|
|
782
822
|
}
|
|
783
823
|
f = message.getInboundCredentials();
|
|
@@ -785,7 +825,7 @@ proto.fonoster.trunks.v1beta2.Trunk.serializeBinaryToWriter = function(message,
|
|
|
785
825
|
writer.writeMessage(
|
|
786
826
|
8,
|
|
787
827
|
f,
|
|
788
|
-
|
|
828
|
+
proto.fonoster.trunks.v1beta2.Trunk.Credentials.serializeBinaryToWriter
|
|
789
829
|
);
|
|
790
830
|
}
|
|
791
831
|
f = message.getOutboundCredentials();
|
|
@@ -793,7 +833,7 @@ proto.fonoster.trunks.v1beta2.Trunk.serializeBinaryToWriter = function(message,
|
|
|
793
833
|
writer.writeMessage(
|
|
794
834
|
9,
|
|
795
835
|
f,
|
|
796
|
-
|
|
836
|
+
proto.fonoster.trunks.v1beta2.Trunk.Credentials.serializeBinaryToWriter
|
|
797
837
|
);
|
|
798
838
|
}
|
|
799
839
|
f = message.getUrisList();
|
|
@@ -807,6 +847,461 @@ proto.fonoster.trunks.v1beta2.Trunk.serializeBinaryToWriter = function(message,
|
|
|
807
847
|
};
|
|
808
848
|
|
|
809
849
|
|
|
850
|
+
|
|
851
|
+
/**
|
|
852
|
+
* List of repeated fields within this message type.
|
|
853
|
+
* @private {!Array<number>}
|
|
854
|
+
* @const
|
|
855
|
+
*/
|
|
856
|
+
proto.fonoster.trunks.v1beta2.Trunk.Acl.repeatedFields_ = [3,4];
|
|
857
|
+
|
|
858
|
+
|
|
859
|
+
|
|
860
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
861
|
+
/**
|
|
862
|
+
* Creates an object representation of this proto.
|
|
863
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
864
|
+
* Optional fields that are not set will be set to undefined.
|
|
865
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
866
|
+
* For the list of reserved names please see:
|
|
867
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
868
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
869
|
+
* JSPB instance for transitional soy proto support:
|
|
870
|
+
* http://goto/soy-param-migration
|
|
871
|
+
* @return {!Object}
|
|
872
|
+
*/
|
|
873
|
+
proto.fonoster.trunks.v1beta2.Trunk.Acl.prototype.toObject = function(opt_includeInstance) {
|
|
874
|
+
return proto.fonoster.trunks.v1beta2.Trunk.Acl.toObject(opt_includeInstance, this);
|
|
875
|
+
};
|
|
876
|
+
|
|
877
|
+
|
|
878
|
+
/**
|
|
879
|
+
* Static version of the {@see toObject} method.
|
|
880
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
881
|
+
* the JSPB instance for transitional soy proto support:
|
|
882
|
+
* http://goto/soy-param-migration
|
|
883
|
+
* @param {!proto.fonoster.trunks.v1beta2.Trunk.Acl} msg The msg instance to transform.
|
|
884
|
+
* @return {!Object}
|
|
885
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
886
|
+
*/
|
|
887
|
+
proto.fonoster.trunks.v1beta2.Trunk.Acl.toObject = function(includeInstance, msg) {
|
|
888
|
+
var f, obj = {
|
|
889
|
+
ref: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
890
|
+
name: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
891
|
+
allowList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f,
|
|
892
|
+
denyList: (f = jspb.Message.getRepeatedField(msg, 4)) == null ? undefined : f
|
|
893
|
+
};
|
|
894
|
+
|
|
895
|
+
if (includeInstance) {
|
|
896
|
+
obj.$jspbMessageInstance = msg;
|
|
897
|
+
}
|
|
898
|
+
return obj;
|
|
899
|
+
};
|
|
900
|
+
}
|
|
901
|
+
|
|
902
|
+
|
|
903
|
+
/**
|
|
904
|
+
* Deserializes binary data (in protobuf wire format).
|
|
905
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
906
|
+
* @return {!proto.fonoster.trunks.v1beta2.Trunk.Acl}
|
|
907
|
+
*/
|
|
908
|
+
proto.fonoster.trunks.v1beta2.Trunk.Acl.deserializeBinary = function(bytes) {
|
|
909
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
910
|
+
var msg = new proto.fonoster.trunks.v1beta2.Trunk.Acl;
|
|
911
|
+
return proto.fonoster.trunks.v1beta2.Trunk.Acl.deserializeBinaryFromReader(msg, reader);
|
|
912
|
+
};
|
|
913
|
+
|
|
914
|
+
|
|
915
|
+
/**
|
|
916
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
917
|
+
* given reader into the given message object.
|
|
918
|
+
* @param {!proto.fonoster.trunks.v1beta2.Trunk.Acl} msg The message object to deserialize into.
|
|
919
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
920
|
+
* @return {!proto.fonoster.trunks.v1beta2.Trunk.Acl}
|
|
921
|
+
*/
|
|
922
|
+
proto.fonoster.trunks.v1beta2.Trunk.Acl.deserializeBinaryFromReader = function(msg, reader) {
|
|
923
|
+
while (reader.nextField()) {
|
|
924
|
+
if (reader.isEndGroup()) {
|
|
925
|
+
break;
|
|
926
|
+
}
|
|
927
|
+
var field = reader.getFieldNumber();
|
|
928
|
+
switch (field) {
|
|
929
|
+
case 1:
|
|
930
|
+
var value = /** @type {string} */ (reader.readString());
|
|
931
|
+
msg.setRef(value);
|
|
932
|
+
break;
|
|
933
|
+
case 2:
|
|
934
|
+
var value = /** @type {string} */ (reader.readString());
|
|
935
|
+
msg.setName(value);
|
|
936
|
+
break;
|
|
937
|
+
case 3:
|
|
938
|
+
var value = /** @type {string} */ (reader.readString());
|
|
939
|
+
msg.addAllow(value);
|
|
940
|
+
break;
|
|
941
|
+
case 4:
|
|
942
|
+
var value = /** @type {string} */ (reader.readString());
|
|
943
|
+
msg.addDeny(value);
|
|
944
|
+
break;
|
|
945
|
+
default:
|
|
946
|
+
reader.skipField();
|
|
947
|
+
break;
|
|
948
|
+
}
|
|
949
|
+
}
|
|
950
|
+
return msg;
|
|
951
|
+
};
|
|
952
|
+
|
|
953
|
+
|
|
954
|
+
/**
|
|
955
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
956
|
+
* @return {!Uint8Array}
|
|
957
|
+
*/
|
|
958
|
+
proto.fonoster.trunks.v1beta2.Trunk.Acl.prototype.serializeBinary = function() {
|
|
959
|
+
var writer = new jspb.BinaryWriter();
|
|
960
|
+
proto.fonoster.trunks.v1beta2.Trunk.Acl.serializeBinaryToWriter(this, writer);
|
|
961
|
+
return writer.getResultBuffer();
|
|
962
|
+
};
|
|
963
|
+
|
|
964
|
+
|
|
965
|
+
/**
|
|
966
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
967
|
+
* format), writing to the given BinaryWriter.
|
|
968
|
+
* @param {!proto.fonoster.trunks.v1beta2.Trunk.Acl} message
|
|
969
|
+
* @param {!jspb.BinaryWriter} writer
|
|
970
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
971
|
+
*/
|
|
972
|
+
proto.fonoster.trunks.v1beta2.Trunk.Acl.serializeBinaryToWriter = function(message, writer) {
|
|
973
|
+
var f = undefined;
|
|
974
|
+
f = message.getRef();
|
|
975
|
+
if (f.length > 0) {
|
|
976
|
+
writer.writeString(
|
|
977
|
+
1,
|
|
978
|
+
f
|
|
979
|
+
);
|
|
980
|
+
}
|
|
981
|
+
f = message.getName();
|
|
982
|
+
if (f.length > 0) {
|
|
983
|
+
writer.writeString(
|
|
984
|
+
2,
|
|
985
|
+
f
|
|
986
|
+
);
|
|
987
|
+
}
|
|
988
|
+
f = message.getAllowList();
|
|
989
|
+
if (f.length > 0) {
|
|
990
|
+
writer.writeRepeatedString(
|
|
991
|
+
3,
|
|
992
|
+
f
|
|
993
|
+
);
|
|
994
|
+
}
|
|
995
|
+
f = message.getDenyList();
|
|
996
|
+
if (f.length > 0) {
|
|
997
|
+
writer.writeRepeatedString(
|
|
998
|
+
4,
|
|
999
|
+
f
|
|
1000
|
+
);
|
|
1001
|
+
}
|
|
1002
|
+
};
|
|
1003
|
+
|
|
1004
|
+
|
|
1005
|
+
/**
|
|
1006
|
+
* optional string ref = 1;
|
|
1007
|
+
* @return {string}
|
|
1008
|
+
*/
|
|
1009
|
+
proto.fonoster.trunks.v1beta2.Trunk.Acl.prototype.getRef = function() {
|
|
1010
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
1011
|
+
};
|
|
1012
|
+
|
|
1013
|
+
|
|
1014
|
+
/**
|
|
1015
|
+
* @param {string} value
|
|
1016
|
+
* @return {!proto.fonoster.trunks.v1beta2.Trunk.Acl} returns this
|
|
1017
|
+
*/
|
|
1018
|
+
proto.fonoster.trunks.v1beta2.Trunk.Acl.prototype.setRef = function(value) {
|
|
1019
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
1020
|
+
};
|
|
1021
|
+
|
|
1022
|
+
|
|
1023
|
+
/**
|
|
1024
|
+
* optional string name = 2;
|
|
1025
|
+
* @return {string}
|
|
1026
|
+
*/
|
|
1027
|
+
proto.fonoster.trunks.v1beta2.Trunk.Acl.prototype.getName = function() {
|
|
1028
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
1029
|
+
};
|
|
1030
|
+
|
|
1031
|
+
|
|
1032
|
+
/**
|
|
1033
|
+
* @param {string} value
|
|
1034
|
+
* @return {!proto.fonoster.trunks.v1beta2.Trunk.Acl} returns this
|
|
1035
|
+
*/
|
|
1036
|
+
proto.fonoster.trunks.v1beta2.Trunk.Acl.prototype.setName = function(value) {
|
|
1037
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
1038
|
+
};
|
|
1039
|
+
|
|
1040
|
+
|
|
1041
|
+
/**
|
|
1042
|
+
* repeated string allow = 3;
|
|
1043
|
+
* @return {!Array<string>}
|
|
1044
|
+
*/
|
|
1045
|
+
proto.fonoster.trunks.v1beta2.Trunk.Acl.prototype.getAllowList = function() {
|
|
1046
|
+
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 3));
|
|
1047
|
+
};
|
|
1048
|
+
|
|
1049
|
+
|
|
1050
|
+
/**
|
|
1051
|
+
* @param {!Array<string>} value
|
|
1052
|
+
* @return {!proto.fonoster.trunks.v1beta2.Trunk.Acl} returns this
|
|
1053
|
+
*/
|
|
1054
|
+
proto.fonoster.trunks.v1beta2.Trunk.Acl.prototype.setAllowList = function(value) {
|
|
1055
|
+
return jspb.Message.setField(this, 3, value || []);
|
|
1056
|
+
};
|
|
1057
|
+
|
|
1058
|
+
|
|
1059
|
+
/**
|
|
1060
|
+
* @param {string} value
|
|
1061
|
+
* @param {number=} opt_index
|
|
1062
|
+
* @return {!proto.fonoster.trunks.v1beta2.Trunk.Acl} returns this
|
|
1063
|
+
*/
|
|
1064
|
+
proto.fonoster.trunks.v1beta2.Trunk.Acl.prototype.addAllow = function(value, opt_index) {
|
|
1065
|
+
return jspb.Message.addToRepeatedField(this, 3, value, opt_index);
|
|
1066
|
+
};
|
|
1067
|
+
|
|
1068
|
+
|
|
1069
|
+
/**
|
|
1070
|
+
* Clears the list making it empty but non-null.
|
|
1071
|
+
* @return {!proto.fonoster.trunks.v1beta2.Trunk.Acl} returns this
|
|
1072
|
+
*/
|
|
1073
|
+
proto.fonoster.trunks.v1beta2.Trunk.Acl.prototype.clearAllowList = function() {
|
|
1074
|
+
return this.setAllowList([]);
|
|
1075
|
+
};
|
|
1076
|
+
|
|
1077
|
+
|
|
1078
|
+
/**
|
|
1079
|
+
* repeated string deny = 4;
|
|
1080
|
+
* @return {!Array<string>}
|
|
1081
|
+
*/
|
|
1082
|
+
proto.fonoster.trunks.v1beta2.Trunk.Acl.prototype.getDenyList = function() {
|
|
1083
|
+
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 4));
|
|
1084
|
+
};
|
|
1085
|
+
|
|
1086
|
+
|
|
1087
|
+
/**
|
|
1088
|
+
* @param {!Array<string>} value
|
|
1089
|
+
* @return {!proto.fonoster.trunks.v1beta2.Trunk.Acl} returns this
|
|
1090
|
+
*/
|
|
1091
|
+
proto.fonoster.trunks.v1beta2.Trunk.Acl.prototype.setDenyList = function(value) {
|
|
1092
|
+
return jspb.Message.setField(this, 4, value || []);
|
|
1093
|
+
};
|
|
1094
|
+
|
|
1095
|
+
|
|
1096
|
+
/**
|
|
1097
|
+
* @param {string} value
|
|
1098
|
+
* @param {number=} opt_index
|
|
1099
|
+
* @return {!proto.fonoster.trunks.v1beta2.Trunk.Acl} returns this
|
|
1100
|
+
*/
|
|
1101
|
+
proto.fonoster.trunks.v1beta2.Trunk.Acl.prototype.addDeny = function(value, opt_index) {
|
|
1102
|
+
return jspb.Message.addToRepeatedField(this, 4, value, opt_index);
|
|
1103
|
+
};
|
|
1104
|
+
|
|
1105
|
+
|
|
1106
|
+
/**
|
|
1107
|
+
* Clears the list making it empty but non-null.
|
|
1108
|
+
* @return {!proto.fonoster.trunks.v1beta2.Trunk.Acl} returns this
|
|
1109
|
+
*/
|
|
1110
|
+
proto.fonoster.trunks.v1beta2.Trunk.Acl.prototype.clearDenyList = function() {
|
|
1111
|
+
return this.setDenyList([]);
|
|
1112
|
+
};
|
|
1113
|
+
|
|
1114
|
+
|
|
1115
|
+
|
|
1116
|
+
|
|
1117
|
+
|
|
1118
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
1119
|
+
/**
|
|
1120
|
+
* Creates an object representation of this proto.
|
|
1121
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
1122
|
+
* Optional fields that are not set will be set to undefined.
|
|
1123
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
1124
|
+
* For the list of reserved names please see:
|
|
1125
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
1126
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
1127
|
+
* JSPB instance for transitional soy proto support:
|
|
1128
|
+
* http://goto/soy-param-migration
|
|
1129
|
+
* @return {!Object}
|
|
1130
|
+
*/
|
|
1131
|
+
proto.fonoster.trunks.v1beta2.Trunk.Credentials.prototype.toObject = function(opt_includeInstance) {
|
|
1132
|
+
return proto.fonoster.trunks.v1beta2.Trunk.Credentials.toObject(opt_includeInstance, this);
|
|
1133
|
+
};
|
|
1134
|
+
|
|
1135
|
+
|
|
1136
|
+
/**
|
|
1137
|
+
* Static version of the {@see toObject} method.
|
|
1138
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
1139
|
+
* the JSPB instance for transitional soy proto support:
|
|
1140
|
+
* http://goto/soy-param-migration
|
|
1141
|
+
* @param {!proto.fonoster.trunks.v1beta2.Trunk.Credentials} msg The msg instance to transform.
|
|
1142
|
+
* @return {!Object}
|
|
1143
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1144
|
+
*/
|
|
1145
|
+
proto.fonoster.trunks.v1beta2.Trunk.Credentials.toObject = function(includeInstance, msg) {
|
|
1146
|
+
var f, obj = {
|
|
1147
|
+
ref: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
1148
|
+
name: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
1149
|
+
username: jspb.Message.getFieldWithDefault(msg, 3, "")
|
|
1150
|
+
};
|
|
1151
|
+
|
|
1152
|
+
if (includeInstance) {
|
|
1153
|
+
obj.$jspbMessageInstance = msg;
|
|
1154
|
+
}
|
|
1155
|
+
return obj;
|
|
1156
|
+
};
|
|
1157
|
+
}
|
|
1158
|
+
|
|
1159
|
+
|
|
1160
|
+
/**
|
|
1161
|
+
* Deserializes binary data (in protobuf wire format).
|
|
1162
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
1163
|
+
* @return {!proto.fonoster.trunks.v1beta2.Trunk.Credentials}
|
|
1164
|
+
*/
|
|
1165
|
+
proto.fonoster.trunks.v1beta2.Trunk.Credentials.deserializeBinary = function(bytes) {
|
|
1166
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
1167
|
+
var msg = new proto.fonoster.trunks.v1beta2.Trunk.Credentials;
|
|
1168
|
+
return proto.fonoster.trunks.v1beta2.Trunk.Credentials.deserializeBinaryFromReader(msg, reader);
|
|
1169
|
+
};
|
|
1170
|
+
|
|
1171
|
+
|
|
1172
|
+
/**
|
|
1173
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
1174
|
+
* given reader into the given message object.
|
|
1175
|
+
* @param {!proto.fonoster.trunks.v1beta2.Trunk.Credentials} msg The message object to deserialize into.
|
|
1176
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
1177
|
+
* @return {!proto.fonoster.trunks.v1beta2.Trunk.Credentials}
|
|
1178
|
+
*/
|
|
1179
|
+
proto.fonoster.trunks.v1beta2.Trunk.Credentials.deserializeBinaryFromReader = function(msg, reader) {
|
|
1180
|
+
while (reader.nextField()) {
|
|
1181
|
+
if (reader.isEndGroup()) {
|
|
1182
|
+
break;
|
|
1183
|
+
}
|
|
1184
|
+
var field = reader.getFieldNumber();
|
|
1185
|
+
switch (field) {
|
|
1186
|
+
case 1:
|
|
1187
|
+
var value = /** @type {string} */ (reader.readString());
|
|
1188
|
+
msg.setRef(value);
|
|
1189
|
+
break;
|
|
1190
|
+
case 2:
|
|
1191
|
+
var value = /** @type {string} */ (reader.readString());
|
|
1192
|
+
msg.setName(value);
|
|
1193
|
+
break;
|
|
1194
|
+
case 3:
|
|
1195
|
+
var value = /** @type {string} */ (reader.readString());
|
|
1196
|
+
msg.setUsername(value);
|
|
1197
|
+
break;
|
|
1198
|
+
default:
|
|
1199
|
+
reader.skipField();
|
|
1200
|
+
break;
|
|
1201
|
+
}
|
|
1202
|
+
}
|
|
1203
|
+
return msg;
|
|
1204
|
+
};
|
|
1205
|
+
|
|
1206
|
+
|
|
1207
|
+
/**
|
|
1208
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
1209
|
+
* @return {!Uint8Array}
|
|
1210
|
+
*/
|
|
1211
|
+
proto.fonoster.trunks.v1beta2.Trunk.Credentials.prototype.serializeBinary = function() {
|
|
1212
|
+
var writer = new jspb.BinaryWriter();
|
|
1213
|
+
proto.fonoster.trunks.v1beta2.Trunk.Credentials.serializeBinaryToWriter(this, writer);
|
|
1214
|
+
return writer.getResultBuffer();
|
|
1215
|
+
};
|
|
1216
|
+
|
|
1217
|
+
|
|
1218
|
+
/**
|
|
1219
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
1220
|
+
* format), writing to the given BinaryWriter.
|
|
1221
|
+
* @param {!proto.fonoster.trunks.v1beta2.Trunk.Credentials} message
|
|
1222
|
+
* @param {!jspb.BinaryWriter} writer
|
|
1223
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1224
|
+
*/
|
|
1225
|
+
proto.fonoster.trunks.v1beta2.Trunk.Credentials.serializeBinaryToWriter = function(message, writer) {
|
|
1226
|
+
var f = undefined;
|
|
1227
|
+
f = message.getRef();
|
|
1228
|
+
if (f.length > 0) {
|
|
1229
|
+
writer.writeString(
|
|
1230
|
+
1,
|
|
1231
|
+
f
|
|
1232
|
+
);
|
|
1233
|
+
}
|
|
1234
|
+
f = message.getName();
|
|
1235
|
+
if (f.length > 0) {
|
|
1236
|
+
writer.writeString(
|
|
1237
|
+
2,
|
|
1238
|
+
f
|
|
1239
|
+
);
|
|
1240
|
+
}
|
|
1241
|
+
f = message.getUsername();
|
|
1242
|
+
if (f.length > 0) {
|
|
1243
|
+
writer.writeString(
|
|
1244
|
+
3,
|
|
1245
|
+
f
|
|
1246
|
+
);
|
|
1247
|
+
}
|
|
1248
|
+
};
|
|
1249
|
+
|
|
1250
|
+
|
|
1251
|
+
/**
|
|
1252
|
+
* optional string ref = 1;
|
|
1253
|
+
* @return {string}
|
|
1254
|
+
*/
|
|
1255
|
+
proto.fonoster.trunks.v1beta2.Trunk.Credentials.prototype.getRef = function() {
|
|
1256
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
1257
|
+
};
|
|
1258
|
+
|
|
1259
|
+
|
|
1260
|
+
/**
|
|
1261
|
+
* @param {string} value
|
|
1262
|
+
* @return {!proto.fonoster.trunks.v1beta2.Trunk.Credentials} returns this
|
|
1263
|
+
*/
|
|
1264
|
+
proto.fonoster.trunks.v1beta2.Trunk.Credentials.prototype.setRef = function(value) {
|
|
1265
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
1266
|
+
};
|
|
1267
|
+
|
|
1268
|
+
|
|
1269
|
+
/**
|
|
1270
|
+
* optional string name = 2;
|
|
1271
|
+
* @return {string}
|
|
1272
|
+
*/
|
|
1273
|
+
proto.fonoster.trunks.v1beta2.Trunk.Credentials.prototype.getName = function() {
|
|
1274
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
1275
|
+
};
|
|
1276
|
+
|
|
1277
|
+
|
|
1278
|
+
/**
|
|
1279
|
+
* @param {string} value
|
|
1280
|
+
* @return {!proto.fonoster.trunks.v1beta2.Trunk.Credentials} returns this
|
|
1281
|
+
*/
|
|
1282
|
+
proto.fonoster.trunks.v1beta2.Trunk.Credentials.prototype.setName = function(value) {
|
|
1283
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
1284
|
+
};
|
|
1285
|
+
|
|
1286
|
+
|
|
1287
|
+
/**
|
|
1288
|
+
* optional string username = 3;
|
|
1289
|
+
* @return {string}
|
|
1290
|
+
*/
|
|
1291
|
+
proto.fonoster.trunks.v1beta2.Trunk.Credentials.prototype.getUsername = function() {
|
|
1292
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
1293
|
+
};
|
|
1294
|
+
|
|
1295
|
+
|
|
1296
|
+
/**
|
|
1297
|
+
* @param {string} value
|
|
1298
|
+
* @return {!proto.fonoster.trunks.v1beta2.Trunk.Credentials} returns this
|
|
1299
|
+
*/
|
|
1300
|
+
proto.fonoster.trunks.v1beta2.Trunk.Credentials.prototype.setUsername = function(value) {
|
|
1301
|
+
return jspb.Message.setProto3StringField(this, 3, value);
|
|
1302
|
+
};
|
|
1303
|
+
|
|
1304
|
+
|
|
810
1305
|
/**
|
|
811
1306
|
* optional string ref = 1;
|
|
812
1307
|
* @return {string}
|
|
@@ -916,17 +1411,17 @@ proto.fonoster.trunks.v1beta2.Trunk.prototype.setUpdatedAt = function(value) {
|
|
|
916
1411
|
|
|
917
1412
|
|
|
918
1413
|
/**
|
|
919
|
-
* optional
|
|
920
|
-
* @return {?proto.fonoster.
|
|
1414
|
+
* optional Acl access_control_list = 7;
|
|
1415
|
+
* @return {?proto.fonoster.trunks.v1beta2.Trunk.Acl}
|
|
921
1416
|
*/
|
|
922
1417
|
proto.fonoster.trunks.v1beta2.Trunk.prototype.getAccessControlList = function() {
|
|
923
|
-
return /** @type{?proto.fonoster.
|
|
924
|
-
jspb.Message.getWrapperField(this,
|
|
1418
|
+
return /** @type{?proto.fonoster.trunks.v1beta2.Trunk.Acl} */ (
|
|
1419
|
+
jspb.Message.getWrapperField(this, proto.fonoster.trunks.v1beta2.Trunk.Acl, 7));
|
|
925
1420
|
};
|
|
926
1421
|
|
|
927
1422
|
|
|
928
1423
|
/**
|
|
929
|
-
* @param {?proto.fonoster.
|
|
1424
|
+
* @param {?proto.fonoster.trunks.v1beta2.Trunk.Acl|undefined} value
|
|
930
1425
|
* @return {!proto.fonoster.trunks.v1beta2.Trunk} returns this
|
|
931
1426
|
*/
|
|
932
1427
|
proto.fonoster.trunks.v1beta2.Trunk.prototype.setAccessControlList = function(value) {
|
|
@@ -953,17 +1448,17 @@ proto.fonoster.trunks.v1beta2.Trunk.prototype.hasAccessControlList = function()
|
|
|
953
1448
|
|
|
954
1449
|
|
|
955
1450
|
/**
|
|
956
|
-
* optional
|
|
957
|
-
* @return {?proto.fonoster.
|
|
1451
|
+
* optional Credentials inbound_credentials = 8;
|
|
1452
|
+
* @return {?proto.fonoster.trunks.v1beta2.Trunk.Credentials}
|
|
958
1453
|
*/
|
|
959
1454
|
proto.fonoster.trunks.v1beta2.Trunk.prototype.getInboundCredentials = function() {
|
|
960
|
-
return /** @type{?proto.fonoster.
|
|
961
|
-
jspb.Message.getWrapperField(this,
|
|
1455
|
+
return /** @type{?proto.fonoster.trunks.v1beta2.Trunk.Credentials} */ (
|
|
1456
|
+
jspb.Message.getWrapperField(this, proto.fonoster.trunks.v1beta2.Trunk.Credentials, 8));
|
|
962
1457
|
};
|
|
963
1458
|
|
|
964
1459
|
|
|
965
1460
|
/**
|
|
966
|
-
* @param {?proto.fonoster.
|
|
1461
|
+
* @param {?proto.fonoster.trunks.v1beta2.Trunk.Credentials|undefined} value
|
|
967
1462
|
* @return {!proto.fonoster.trunks.v1beta2.Trunk} returns this
|
|
968
1463
|
*/
|
|
969
1464
|
proto.fonoster.trunks.v1beta2.Trunk.prototype.setInboundCredentials = function(value) {
|
|
@@ -990,17 +1485,17 @@ proto.fonoster.trunks.v1beta2.Trunk.prototype.hasInboundCredentials = function()
|
|
|
990
1485
|
|
|
991
1486
|
|
|
992
1487
|
/**
|
|
993
|
-
* optional
|
|
994
|
-
* @return {?proto.fonoster.
|
|
1488
|
+
* optional Credentials outbound_credentials = 9;
|
|
1489
|
+
* @return {?proto.fonoster.trunks.v1beta2.Trunk.Credentials}
|
|
995
1490
|
*/
|
|
996
1491
|
proto.fonoster.trunks.v1beta2.Trunk.prototype.getOutboundCredentials = function() {
|
|
997
|
-
return /** @type{?proto.fonoster.
|
|
998
|
-
jspb.Message.getWrapperField(this,
|
|
1492
|
+
return /** @type{?proto.fonoster.trunks.v1beta2.Trunk.Credentials} */ (
|
|
1493
|
+
jspb.Message.getWrapperField(this, proto.fonoster.trunks.v1beta2.Trunk.Credentials, 9));
|
|
999
1494
|
};
|
|
1000
1495
|
|
|
1001
1496
|
|
|
1002
1497
|
/**
|
|
1003
|
-
* @param {?proto.fonoster.
|
|
1498
|
+
* @param {?proto.fonoster.trunks.v1beta2.Trunk.Credentials|undefined} value
|
|
1004
1499
|
* @return {!proto.fonoster.trunks.v1beta2.Trunk} returns this
|
|
1005
1500
|
*/
|
|
1006
1501
|
proto.fonoster.trunks.v1beta2.Trunk.prototype.setOutboundCredentials = function(value) {
|
|
@@ -431,28 +431,28 @@ export class IdentityClient {
|
|
|
431
431
|
'/fonoster.identity.v1beta2.Identity/GetUser',
|
|
432
432
|
grpcWeb.MethodType.UNARY,
|
|
433
433
|
identity_pb.GetUserRequest,
|
|
434
|
-
identity_pb.
|
|
434
|
+
identity_pb.User,
|
|
435
435
|
(request: identity_pb.GetUserRequest) => {
|
|
436
436
|
return request.serializeBinary();
|
|
437
437
|
},
|
|
438
|
-
identity_pb.
|
|
438
|
+
identity_pb.User.deserializeBinary
|
|
439
439
|
);
|
|
440
440
|
|
|
441
441
|
getUser(
|
|
442
442
|
request: identity_pb.GetUserRequest,
|
|
443
|
-
metadata?: grpcWeb.Metadata | null): Promise<identity_pb.
|
|
443
|
+
metadata?: grpcWeb.Metadata | null): Promise<identity_pb.User>;
|
|
444
444
|
|
|
445
445
|
getUser(
|
|
446
446
|
request: identity_pb.GetUserRequest,
|
|
447
447
|
metadata: grpcWeb.Metadata | null,
|
|
448
448
|
callback: (err: grpcWeb.RpcError,
|
|
449
|
-
response: identity_pb.
|
|
449
|
+
response: identity_pb.User) => void): grpcWeb.ClientReadableStream<identity_pb.User>;
|
|
450
450
|
|
|
451
451
|
getUser(
|
|
452
452
|
request: identity_pb.GetUserRequest,
|
|
453
453
|
metadata?: grpcWeb.Metadata | null,
|
|
454
454
|
callback?: (err: grpcWeb.RpcError,
|
|
455
|
-
response: identity_pb.
|
|
455
|
+
response: identity_pb.User) => void) {
|
|
456
456
|
if (callback !== undefined) {
|
|
457
457
|
return this.client_.rpcCall(
|
|
458
458
|
this.hostname_ +
|