@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.
- package/README.md +524 -459
- 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 +43 -43
- package/dist/node/Applications.js +56 -44
- package/dist/node/Calls.d.ts +42 -30
- package/dist/node/Calls.js +78 -54
- 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/CallsClient.d.ts +3 -2
- package/dist/node/client/types/IdentityClient.d.ts +2 -2
- package/dist/node/client/types/common.d.ts +8 -1
- package/dist/node/client/utils.js +6 -3
- package/dist/node/generated/node/acls_pb.js +6 -6
- package/dist/node/generated/node/agents_grpc_pb.js +0 -2
- package/dist/node/generated/node/agents_pb.js +450 -30
- package/dist/node/generated/node/applications_pb.js +24 -24
- package/dist/node/generated/node/calls_grpc_pb.js +0 -3
- package/dist/node/generated/node/calls_pb.js +103 -104
- package/dist/node/generated/node/credentials_pb.js +15 -45
- package/dist/node/generated/node/domains_pb.js +34 -34
- package/dist/node/generated/node/identity_grpc_pb.js +14 -14
- package/dist/node/generated/node/identity_pb.js +55 -55
- package/dist/node/generated/node/numbers_grpc_pb.js +0 -1
- package/dist/node/generated/node/numbers_pb.js +197 -17
- package/dist/node/generated/node/secrets_pb.js +6 -6
- package/dist/node/generated/node/trunks_grpc_pb.js +0 -2
- package/dist/node/generated/node/trunks_pb.js +532 -37
- package/dist/node/generated/web/IdentityServiceClientPb.ts +5 -5
- package/dist/node/generated/web/acls_pb.js +6 -6
- package/dist/node/generated/web/agents_pb.d.ts +62 -10
- package/dist/node/generated/web/agents_pb.js +450 -30
- package/dist/node/generated/web/applications_pb.d.ts +9 -9
- package/dist/node/generated/web/applications_pb.js +24 -24
- package/dist/node/generated/web/calls_pb.d.ts +37 -37
- package/dist/node/generated/web/calls_pb.js +103 -104
- package/dist/node/generated/web/credentials_pb.d.ts +0 -4
- package/dist/node/generated/web/credentials_pb.js +15 -45
- package/dist/node/generated/web/domains_pb.js +34 -34
- package/dist/node/generated/web/identity_pb.d.ts +13 -13
- package/dist/node/generated/web/identity_pb.js +55 -55
- package/dist/node/generated/web/numbers_pb.d.ts +26 -4
- package/dist/node/generated/web/numbers_pb.js +197 -17
- package/dist/node/generated/web/secrets_pb.js +6 -6
- package/dist/node/generated/web/trunks_pb.d.ts +71 -11
- package/dist/node/generated/web/trunks_pb.js +532 -37
- package/dist/node/tsconfig.node.tsbuildinfo +1 -1
- package/dist/node/utils.d.ts +5 -3
- package/dist/node/utils.js +56 -0
- package/dist/web/fonoster.min.js +1 -1
- package/dist/web/index.esm.js +1 -1
- package/package.json +4 -4
|
@@ -40,7 +40,6 @@ goog.exportSymbol('proto.fonoster.identity.v1beta2.ExchangeRefreshTokenRequest',
|
|
|
40
40
|
goog.exportSymbol('proto.fonoster.identity.v1beta2.ExchangeRefreshTokenResponse', null, global);
|
|
41
41
|
goog.exportSymbol('proto.fonoster.identity.v1beta2.GetPublicKeyResponse', null, global);
|
|
42
42
|
goog.exportSymbol('proto.fonoster.identity.v1beta2.GetUserRequest', null, global);
|
|
43
|
-
goog.exportSymbol('proto.fonoster.identity.v1beta2.GetUserResponse', null, global);
|
|
44
43
|
goog.exportSymbol('proto.fonoster.identity.v1beta2.GetWorkspaceRequest', null, global);
|
|
45
44
|
goog.exportSymbol('proto.fonoster.identity.v1beta2.InviteUserToWorkspaceRequest', null, global);
|
|
46
45
|
goog.exportSymbol('proto.fonoster.identity.v1beta2.InviteUserToWorkspaceResponse', null, global);
|
|
@@ -60,6 +59,7 @@ goog.exportSymbol('proto.fonoster.identity.v1beta2.UpdateUserRequest', null, glo
|
|
|
60
59
|
goog.exportSymbol('proto.fonoster.identity.v1beta2.UpdateUserResponse', null, global);
|
|
61
60
|
goog.exportSymbol('proto.fonoster.identity.v1beta2.UpdateWorkspaceRequest', null, global);
|
|
62
61
|
goog.exportSymbol('proto.fonoster.identity.v1beta2.UpdateWorkspaceResponse', null, global);
|
|
62
|
+
goog.exportSymbol('proto.fonoster.identity.v1beta2.User', null, global);
|
|
63
63
|
goog.exportSymbol('proto.fonoster.identity.v1beta2.Workspace', null, global);
|
|
64
64
|
/**
|
|
65
65
|
* Generated by JsPbCodeGenerator.
|
|
@@ -449,16 +449,16 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
449
449
|
* @extends {jspb.Message}
|
|
450
450
|
* @constructor
|
|
451
451
|
*/
|
|
452
|
-
proto.fonoster.identity.v1beta2.
|
|
452
|
+
proto.fonoster.identity.v1beta2.User = function(opt_data) {
|
|
453
453
|
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
454
454
|
};
|
|
455
|
-
goog.inherits(proto.fonoster.identity.v1beta2.
|
|
455
|
+
goog.inherits(proto.fonoster.identity.v1beta2.User, jspb.Message);
|
|
456
456
|
if (goog.DEBUG && !COMPILED) {
|
|
457
457
|
/**
|
|
458
458
|
* @public
|
|
459
459
|
* @override
|
|
460
460
|
*/
|
|
461
|
-
proto.fonoster.identity.v1beta2.
|
|
461
|
+
proto.fonoster.identity.v1beta2.User.displayName = 'proto.fonoster.identity.v1beta2.User';
|
|
462
462
|
}
|
|
463
463
|
/**
|
|
464
464
|
* Generated by JsPbCodeGenerator.
|
|
@@ -3611,8 +3611,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
3611
3611
|
* http://goto/soy-param-migration
|
|
3612
3612
|
* @return {!Object}
|
|
3613
3613
|
*/
|
|
3614
|
-
proto.fonoster.identity.v1beta2.
|
|
3615
|
-
return proto.fonoster.identity.v1beta2.
|
|
3614
|
+
proto.fonoster.identity.v1beta2.User.prototype.toObject = function(opt_includeInstance) {
|
|
3615
|
+
return proto.fonoster.identity.v1beta2.User.toObject(opt_includeInstance, this);
|
|
3616
3616
|
};
|
|
3617
3617
|
|
|
3618
3618
|
|
|
@@ -3621,11 +3621,11 @@ proto.fonoster.identity.v1beta2.GetUserResponse.prototype.toObject = function(op
|
|
|
3621
3621
|
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
3622
3622
|
* the JSPB instance for transitional soy proto support:
|
|
3623
3623
|
* http://goto/soy-param-migration
|
|
3624
|
-
* @param {!proto.fonoster.identity.v1beta2.
|
|
3624
|
+
* @param {!proto.fonoster.identity.v1beta2.User} msg The msg instance to transform.
|
|
3625
3625
|
* @return {!Object}
|
|
3626
3626
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3627
3627
|
*/
|
|
3628
|
-
proto.fonoster.identity.v1beta2.
|
|
3628
|
+
proto.fonoster.identity.v1beta2.User.toObject = function(includeInstance, msg) {
|
|
3629
3629
|
var f, obj = {
|
|
3630
3630
|
ref: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
3631
3631
|
email: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
@@ -3646,23 +3646,23 @@ proto.fonoster.identity.v1beta2.GetUserResponse.toObject = function(includeInsta
|
|
|
3646
3646
|
/**
|
|
3647
3647
|
* Deserializes binary data (in protobuf wire format).
|
|
3648
3648
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
3649
|
-
* @return {!proto.fonoster.identity.v1beta2.
|
|
3649
|
+
* @return {!proto.fonoster.identity.v1beta2.User}
|
|
3650
3650
|
*/
|
|
3651
|
-
proto.fonoster.identity.v1beta2.
|
|
3651
|
+
proto.fonoster.identity.v1beta2.User.deserializeBinary = function(bytes) {
|
|
3652
3652
|
var reader = new jspb.BinaryReader(bytes);
|
|
3653
|
-
var msg = new proto.fonoster.identity.v1beta2.
|
|
3654
|
-
return proto.fonoster.identity.v1beta2.
|
|
3653
|
+
var msg = new proto.fonoster.identity.v1beta2.User;
|
|
3654
|
+
return proto.fonoster.identity.v1beta2.User.deserializeBinaryFromReader(msg, reader);
|
|
3655
3655
|
};
|
|
3656
3656
|
|
|
3657
3657
|
|
|
3658
3658
|
/**
|
|
3659
3659
|
* Deserializes binary data (in protobuf wire format) from the
|
|
3660
3660
|
* given reader into the given message object.
|
|
3661
|
-
* @param {!proto.fonoster.identity.v1beta2.
|
|
3661
|
+
* @param {!proto.fonoster.identity.v1beta2.User} msg The message object to deserialize into.
|
|
3662
3662
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
3663
|
-
* @return {!proto.fonoster.identity.v1beta2.
|
|
3663
|
+
* @return {!proto.fonoster.identity.v1beta2.User}
|
|
3664
3664
|
*/
|
|
3665
|
-
proto.fonoster.identity.v1beta2.
|
|
3665
|
+
proto.fonoster.identity.v1beta2.User.deserializeBinaryFromReader = function(msg, reader) {
|
|
3666
3666
|
while (reader.nextField()) {
|
|
3667
3667
|
if (reader.isEndGroup()) {
|
|
3668
3668
|
break;
|
|
@@ -3686,11 +3686,11 @@ proto.fonoster.identity.v1beta2.GetUserResponse.deserializeBinaryFromReader = fu
|
|
|
3686
3686
|
msg.setAvatar(value);
|
|
3687
3687
|
break;
|
|
3688
3688
|
case 5:
|
|
3689
|
-
var value = /** @type {number} */ (reader.
|
|
3689
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
3690
3690
|
msg.setCreatedAt(value);
|
|
3691
3691
|
break;
|
|
3692
3692
|
case 6:
|
|
3693
|
-
var value = /** @type {number} */ (reader.
|
|
3693
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
3694
3694
|
msg.setUpdatedAt(value);
|
|
3695
3695
|
break;
|
|
3696
3696
|
default:
|
|
@@ -3706,9 +3706,9 @@ proto.fonoster.identity.v1beta2.GetUserResponse.deserializeBinaryFromReader = fu
|
|
|
3706
3706
|
* Serializes the message to binary data (in protobuf wire format).
|
|
3707
3707
|
* @return {!Uint8Array}
|
|
3708
3708
|
*/
|
|
3709
|
-
proto.fonoster.identity.v1beta2.
|
|
3709
|
+
proto.fonoster.identity.v1beta2.User.prototype.serializeBinary = function() {
|
|
3710
3710
|
var writer = new jspb.BinaryWriter();
|
|
3711
|
-
proto.fonoster.identity.v1beta2.
|
|
3711
|
+
proto.fonoster.identity.v1beta2.User.serializeBinaryToWriter(this, writer);
|
|
3712
3712
|
return writer.getResultBuffer();
|
|
3713
3713
|
};
|
|
3714
3714
|
|
|
@@ -3716,11 +3716,11 @@ proto.fonoster.identity.v1beta2.GetUserResponse.prototype.serializeBinary = func
|
|
|
3716
3716
|
/**
|
|
3717
3717
|
* Serializes the given message to binary data (in protobuf wire
|
|
3718
3718
|
* format), writing to the given BinaryWriter.
|
|
3719
|
-
* @param {!proto.fonoster.identity.v1beta2.
|
|
3719
|
+
* @param {!proto.fonoster.identity.v1beta2.User} message
|
|
3720
3720
|
* @param {!jspb.BinaryWriter} writer
|
|
3721
3721
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3722
3722
|
*/
|
|
3723
|
-
proto.fonoster.identity.v1beta2.
|
|
3723
|
+
proto.fonoster.identity.v1beta2.User.serializeBinaryToWriter = function(message, writer) {
|
|
3724
3724
|
var f = undefined;
|
|
3725
3725
|
f = message.getRef();
|
|
3726
3726
|
if (f.length > 0) {
|
|
@@ -3752,14 +3752,14 @@ proto.fonoster.identity.v1beta2.GetUserResponse.serializeBinaryToWriter = functi
|
|
|
3752
3752
|
}
|
|
3753
3753
|
f = message.getCreatedAt();
|
|
3754
3754
|
if (f !== 0) {
|
|
3755
|
-
writer.
|
|
3755
|
+
writer.writeInt32(
|
|
3756
3756
|
5,
|
|
3757
3757
|
f
|
|
3758
3758
|
);
|
|
3759
3759
|
}
|
|
3760
3760
|
f = message.getUpdatedAt();
|
|
3761
3761
|
if (f !== 0) {
|
|
3762
|
-
writer.
|
|
3762
|
+
writer.writeInt32(
|
|
3763
3763
|
6,
|
|
3764
3764
|
f
|
|
3765
3765
|
);
|
|
@@ -3771,16 +3771,16 @@ proto.fonoster.identity.v1beta2.GetUserResponse.serializeBinaryToWriter = functi
|
|
|
3771
3771
|
* optional string ref = 1;
|
|
3772
3772
|
* @return {string}
|
|
3773
3773
|
*/
|
|
3774
|
-
proto.fonoster.identity.v1beta2.
|
|
3774
|
+
proto.fonoster.identity.v1beta2.User.prototype.getRef = function() {
|
|
3775
3775
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
3776
3776
|
};
|
|
3777
3777
|
|
|
3778
3778
|
|
|
3779
3779
|
/**
|
|
3780
3780
|
* @param {string} value
|
|
3781
|
-
* @return {!proto.fonoster.identity.v1beta2.
|
|
3781
|
+
* @return {!proto.fonoster.identity.v1beta2.User} returns this
|
|
3782
3782
|
*/
|
|
3783
|
-
proto.fonoster.identity.v1beta2.
|
|
3783
|
+
proto.fonoster.identity.v1beta2.User.prototype.setRef = function(value) {
|
|
3784
3784
|
return jspb.Message.setProto3StringField(this, 1, value);
|
|
3785
3785
|
};
|
|
3786
3786
|
|
|
@@ -3789,16 +3789,16 @@ proto.fonoster.identity.v1beta2.GetUserResponse.prototype.setRef = function(valu
|
|
|
3789
3789
|
* optional string email = 2;
|
|
3790
3790
|
* @return {string}
|
|
3791
3791
|
*/
|
|
3792
|
-
proto.fonoster.identity.v1beta2.
|
|
3792
|
+
proto.fonoster.identity.v1beta2.User.prototype.getEmail = function() {
|
|
3793
3793
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
3794
3794
|
};
|
|
3795
3795
|
|
|
3796
3796
|
|
|
3797
3797
|
/**
|
|
3798
3798
|
* @param {string} value
|
|
3799
|
-
* @return {!proto.fonoster.identity.v1beta2.
|
|
3799
|
+
* @return {!proto.fonoster.identity.v1beta2.User} returns this
|
|
3800
3800
|
*/
|
|
3801
|
-
proto.fonoster.identity.v1beta2.
|
|
3801
|
+
proto.fonoster.identity.v1beta2.User.prototype.setEmail = function(value) {
|
|
3802
3802
|
return jspb.Message.setProto3StringField(this, 2, value);
|
|
3803
3803
|
};
|
|
3804
3804
|
|
|
@@ -3807,16 +3807,16 @@ proto.fonoster.identity.v1beta2.GetUserResponse.prototype.setEmail = function(va
|
|
|
3807
3807
|
* optional string name = 3;
|
|
3808
3808
|
* @return {string}
|
|
3809
3809
|
*/
|
|
3810
|
-
proto.fonoster.identity.v1beta2.
|
|
3810
|
+
proto.fonoster.identity.v1beta2.User.prototype.getName = function() {
|
|
3811
3811
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
3812
3812
|
};
|
|
3813
3813
|
|
|
3814
3814
|
|
|
3815
3815
|
/**
|
|
3816
3816
|
* @param {string} value
|
|
3817
|
-
* @return {!proto.fonoster.identity.v1beta2.
|
|
3817
|
+
* @return {!proto.fonoster.identity.v1beta2.User} returns this
|
|
3818
3818
|
*/
|
|
3819
|
-
proto.fonoster.identity.v1beta2.
|
|
3819
|
+
proto.fonoster.identity.v1beta2.User.prototype.setName = function(value) {
|
|
3820
3820
|
return jspb.Message.setProto3StringField(this, 3, value);
|
|
3821
3821
|
};
|
|
3822
3822
|
|
|
@@ -3825,52 +3825,52 @@ proto.fonoster.identity.v1beta2.GetUserResponse.prototype.setName = function(val
|
|
|
3825
3825
|
* optional string avatar = 4;
|
|
3826
3826
|
* @return {string}
|
|
3827
3827
|
*/
|
|
3828
|
-
proto.fonoster.identity.v1beta2.
|
|
3828
|
+
proto.fonoster.identity.v1beta2.User.prototype.getAvatar = function() {
|
|
3829
3829
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
|
3830
3830
|
};
|
|
3831
3831
|
|
|
3832
3832
|
|
|
3833
3833
|
/**
|
|
3834
3834
|
* @param {string} value
|
|
3835
|
-
* @return {!proto.fonoster.identity.v1beta2.
|
|
3835
|
+
* @return {!proto.fonoster.identity.v1beta2.User} returns this
|
|
3836
3836
|
*/
|
|
3837
|
-
proto.fonoster.identity.v1beta2.
|
|
3837
|
+
proto.fonoster.identity.v1beta2.User.prototype.setAvatar = function(value) {
|
|
3838
3838
|
return jspb.Message.setProto3StringField(this, 4, value);
|
|
3839
3839
|
};
|
|
3840
3840
|
|
|
3841
3841
|
|
|
3842
3842
|
/**
|
|
3843
|
-
* optional
|
|
3843
|
+
* optional int32 created_at = 5;
|
|
3844
3844
|
* @return {number}
|
|
3845
3845
|
*/
|
|
3846
|
-
proto.fonoster.identity.v1beta2.
|
|
3846
|
+
proto.fonoster.identity.v1beta2.User.prototype.getCreatedAt = function() {
|
|
3847
3847
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
|
|
3848
3848
|
};
|
|
3849
3849
|
|
|
3850
3850
|
|
|
3851
3851
|
/**
|
|
3852
3852
|
* @param {number} value
|
|
3853
|
-
* @return {!proto.fonoster.identity.v1beta2.
|
|
3853
|
+
* @return {!proto.fonoster.identity.v1beta2.User} returns this
|
|
3854
3854
|
*/
|
|
3855
|
-
proto.fonoster.identity.v1beta2.
|
|
3855
|
+
proto.fonoster.identity.v1beta2.User.prototype.setCreatedAt = function(value) {
|
|
3856
3856
|
return jspb.Message.setProto3IntField(this, 5, value);
|
|
3857
3857
|
};
|
|
3858
3858
|
|
|
3859
3859
|
|
|
3860
3860
|
/**
|
|
3861
|
-
* optional
|
|
3861
|
+
* optional int32 updated_at = 6;
|
|
3862
3862
|
* @return {number}
|
|
3863
3863
|
*/
|
|
3864
|
-
proto.fonoster.identity.v1beta2.
|
|
3864
|
+
proto.fonoster.identity.v1beta2.User.prototype.getUpdatedAt = function() {
|
|
3865
3865
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
|
|
3866
3866
|
};
|
|
3867
3867
|
|
|
3868
3868
|
|
|
3869
3869
|
/**
|
|
3870
3870
|
* @param {number} value
|
|
3871
|
-
* @return {!proto.fonoster.identity.v1beta2.
|
|
3871
|
+
* @return {!proto.fonoster.identity.v1beta2.User} returns this
|
|
3872
3872
|
*/
|
|
3873
|
-
proto.fonoster.identity.v1beta2.
|
|
3873
|
+
proto.fonoster.identity.v1beta2.User.prototype.setUpdatedAt = function(value) {
|
|
3874
3874
|
return jspb.Message.setProto3IntField(this, 6, value);
|
|
3875
3875
|
};
|
|
3876
3876
|
|
|
@@ -4571,11 +4571,11 @@ proto.fonoster.identity.v1beta2.Workspace.deserializeBinaryFromReader = function
|
|
|
4571
4571
|
msg.setOwnerRef(value);
|
|
4572
4572
|
break;
|
|
4573
4573
|
case 4:
|
|
4574
|
-
var value = /** @type {number} */ (reader.
|
|
4574
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
4575
4575
|
msg.setCreatedAt(value);
|
|
4576
4576
|
break;
|
|
4577
4577
|
case 5:
|
|
4578
|
-
var value = /** @type {number} */ (reader.
|
|
4578
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
4579
4579
|
msg.setUpdatedAt(value);
|
|
4580
4580
|
break;
|
|
4581
4581
|
default:
|
|
@@ -4630,14 +4630,14 @@ proto.fonoster.identity.v1beta2.Workspace.serializeBinaryToWriter = function(mes
|
|
|
4630
4630
|
}
|
|
4631
4631
|
f = message.getCreatedAt();
|
|
4632
4632
|
if (f !== 0) {
|
|
4633
|
-
writer.
|
|
4633
|
+
writer.writeInt32(
|
|
4634
4634
|
4,
|
|
4635
4635
|
f
|
|
4636
4636
|
);
|
|
4637
4637
|
}
|
|
4638
4638
|
f = message.getUpdatedAt();
|
|
4639
4639
|
if (f !== 0) {
|
|
4640
|
-
writer.
|
|
4640
|
+
writer.writeInt32(
|
|
4641
4641
|
5,
|
|
4642
4642
|
f
|
|
4643
4643
|
);
|
|
@@ -4700,7 +4700,7 @@ proto.fonoster.identity.v1beta2.Workspace.prototype.setOwnerRef = function(value
|
|
|
4700
4700
|
|
|
4701
4701
|
|
|
4702
4702
|
/**
|
|
4703
|
-
* optional
|
|
4703
|
+
* optional int32 created_at = 4;
|
|
4704
4704
|
* @return {number}
|
|
4705
4705
|
*/
|
|
4706
4706
|
proto.fonoster.identity.v1beta2.Workspace.prototype.getCreatedAt = function() {
|
|
@@ -4718,7 +4718,7 @@ proto.fonoster.identity.v1beta2.Workspace.prototype.setCreatedAt = function(valu
|
|
|
4718
4718
|
|
|
4719
4719
|
|
|
4720
4720
|
/**
|
|
4721
|
-
* optional
|
|
4721
|
+
* optional int32 updated_at = 5;
|
|
4722
4722
|
* @return {number}
|
|
4723
4723
|
*/
|
|
4724
4724
|
proto.fonoster.identity.v1beta2.Workspace.prototype.getUpdatedAt = function() {
|
|
@@ -6106,11 +6106,11 @@ proto.fonoster.identity.v1beta2.ApiKey.deserializeBinaryFromReader = function(ms
|
|
|
6106
6106
|
msg.setExpiresAt(value);
|
|
6107
6107
|
break;
|
|
6108
6108
|
case 5:
|
|
6109
|
-
var value = /** @type {number} */ (reader.
|
|
6109
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
6110
6110
|
msg.setCreatedAt(value);
|
|
6111
6111
|
break;
|
|
6112
6112
|
case 6:
|
|
6113
|
-
var value = /** @type {number} */ (reader.
|
|
6113
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
6114
6114
|
msg.setUpdatedAt(value);
|
|
6115
6115
|
break;
|
|
6116
6116
|
default:
|
|
@@ -6172,14 +6172,14 @@ proto.fonoster.identity.v1beta2.ApiKey.serializeBinaryToWriter = function(messag
|
|
|
6172
6172
|
}
|
|
6173
6173
|
f = message.getCreatedAt();
|
|
6174
6174
|
if (f !== 0) {
|
|
6175
|
-
writer.
|
|
6175
|
+
writer.writeInt32(
|
|
6176
6176
|
5,
|
|
6177
6177
|
f
|
|
6178
6178
|
);
|
|
6179
6179
|
}
|
|
6180
6180
|
f = message.getUpdatedAt();
|
|
6181
6181
|
if (f !== 0) {
|
|
6182
|
-
writer.
|
|
6182
|
+
writer.writeInt32(
|
|
6183
6183
|
6,
|
|
6184
6184
|
f
|
|
6185
6185
|
);
|
|
@@ -6260,7 +6260,7 @@ proto.fonoster.identity.v1beta2.ApiKey.prototype.setExpiresAt = function(value)
|
|
|
6260
6260
|
|
|
6261
6261
|
|
|
6262
6262
|
/**
|
|
6263
|
-
* optional
|
|
6263
|
+
* optional int32 created_at = 5;
|
|
6264
6264
|
* @return {number}
|
|
6265
6265
|
*/
|
|
6266
6266
|
proto.fonoster.identity.v1beta2.ApiKey.prototype.getCreatedAt = function() {
|
|
@@ -6278,7 +6278,7 @@ proto.fonoster.identity.v1beta2.ApiKey.prototype.setCreatedAt = function(value)
|
|
|
6278
6278
|
|
|
6279
6279
|
|
|
6280
6280
|
/**
|
|
6281
|
-
* optional
|
|
6281
|
+
* optional int32 updated_at = 6;
|
|
6282
6282
|
* @return {number}
|
|
6283
6283
|
*/
|
|
6284
6284
|
proto.fonoster.identity.v1beta2.ApiKey.prototype.getUpdatedAt = function() {
|
|
@@ -21,7 +21,6 @@
|
|
|
21
21
|
'use strict';
|
|
22
22
|
var grpc = require('@grpc/grpc-js');
|
|
23
23
|
var numbers_pb = require('./numbers_pb.js');
|
|
24
|
-
var trunks_pb = require('./trunks_pb.js');
|
|
25
24
|
|
|
26
25
|
function serialize_fonoster_numbers_v1beta2_CreateNumberRequest(arg) {
|
|
27
26
|
if (!(arg instanceof numbers_pb.CreateNumberRequest)) {
|
|
@@ -15,8 +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 trunks_pb = require('./trunks_pb.js');
|
|
19
|
-
goog.object.extend(proto, trunks_pb);
|
|
20
18
|
goog.exportSymbol('proto.fonoster.numbers.v1beta2.CreateNumberRequest', null, global);
|
|
21
19
|
goog.exportSymbol('proto.fonoster.numbers.v1beta2.CreateNumberRequest.IngressHandlerCase', null, global);
|
|
22
20
|
goog.exportSymbol('proto.fonoster.numbers.v1beta2.CreateNumberResponse', null, global);
|
|
@@ -27,6 +25,7 @@ goog.exportSymbol('proto.fonoster.numbers.v1beta2.ListNumbersRequest', null, glo
|
|
|
27
25
|
goog.exportSymbol('proto.fonoster.numbers.v1beta2.ListNumbersResponse', null, global);
|
|
28
26
|
goog.exportSymbol('proto.fonoster.numbers.v1beta2.Number', null, global);
|
|
29
27
|
goog.exportSymbol('proto.fonoster.numbers.v1beta2.Number.IngressHandlerCase', null, global);
|
|
28
|
+
goog.exportSymbol('proto.fonoster.numbers.v1beta2.Number.Trunk', null, global);
|
|
30
29
|
goog.exportSymbol('proto.fonoster.numbers.v1beta2.UpdateNumberRequest', null, global);
|
|
31
30
|
goog.exportSymbol('proto.fonoster.numbers.v1beta2.UpdateNumberRequest.IngressHandlerCase', null, global);
|
|
32
31
|
goog.exportSymbol('proto.fonoster.numbers.v1beta2.UpdateNumberResponse', null, global);
|
|
@@ -51,6 +50,27 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
51
50
|
*/
|
|
52
51
|
proto.fonoster.numbers.v1beta2.Number.displayName = 'proto.fonoster.numbers.v1beta2.Number';
|
|
53
52
|
}
|
|
53
|
+
/**
|
|
54
|
+
* Generated by JsPbCodeGenerator.
|
|
55
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
56
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
57
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
58
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
59
|
+
* valid.
|
|
60
|
+
* @extends {jspb.Message}
|
|
61
|
+
* @constructor
|
|
62
|
+
*/
|
|
63
|
+
proto.fonoster.numbers.v1beta2.Number.Trunk = function(opt_data) {
|
|
64
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
65
|
+
};
|
|
66
|
+
goog.inherits(proto.fonoster.numbers.v1beta2.Number.Trunk, jspb.Message);
|
|
67
|
+
if (goog.DEBUG && !COMPILED) {
|
|
68
|
+
/**
|
|
69
|
+
* @public
|
|
70
|
+
* @override
|
|
71
|
+
*/
|
|
72
|
+
proto.fonoster.numbers.v1beta2.Number.Trunk.displayName = 'proto.fonoster.numbers.v1beta2.Number.Trunk';
|
|
73
|
+
}
|
|
54
74
|
/**
|
|
55
75
|
* Generated by JsPbCodeGenerator.
|
|
56
76
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -306,7 +326,7 @@ proto.fonoster.numbers.v1beta2.Number.toObject = function(includeInstance, msg)
|
|
|
306
326
|
countryIsoCode: jspb.Message.getFieldWithDefault(msg, 6, ""),
|
|
307
327
|
createdAt: jspb.Message.getFieldWithDefault(msg, 7, 0),
|
|
308
328
|
updatedAt: jspb.Message.getFieldWithDefault(msg, 8, 0),
|
|
309
|
-
trunk: (f = msg.getTrunk()) &&
|
|
329
|
+
trunk: (f = msg.getTrunk()) && proto.fonoster.numbers.v1beta2.Number.Trunk.toObject(includeInstance, f),
|
|
310
330
|
agentAor: jspb.Message.getFieldWithDefault(msg, 10, ""),
|
|
311
331
|
appRef: jspb.Message.getFieldWithDefault(msg, 11, "")
|
|
312
332
|
};
|
|
@@ -370,16 +390,16 @@ proto.fonoster.numbers.v1beta2.Number.deserializeBinaryFromReader = function(msg
|
|
|
370
390
|
msg.setCountryIsoCode(value);
|
|
371
391
|
break;
|
|
372
392
|
case 7:
|
|
373
|
-
var value = /** @type {number} */ (reader.
|
|
393
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
374
394
|
msg.setCreatedAt(value);
|
|
375
395
|
break;
|
|
376
396
|
case 8:
|
|
377
|
-
var value = /** @type {number} */ (reader.
|
|
397
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
378
398
|
msg.setUpdatedAt(value);
|
|
379
399
|
break;
|
|
380
400
|
case 9:
|
|
381
|
-
var value = new
|
|
382
|
-
reader.readMessage(value,
|
|
401
|
+
var value = new proto.fonoster.numbers.v1beta2.Number.Trunk;
|
|
402
|
+
reader.readMessage(value,proto.fonoster.numbers.v1beta2.Number.Trunk.deserializeBinaryFromReader);
|
|
383
403
|
msg.setTrunk(value);
|
|
384
404
|
break;
|
|
385
405
|
case 10:
|
|
@@ -463,14 +483,14 @@ proto.fonoster.numbers.v1beta2.Number.serializeBinaryToWriter = function(message
|
|
|
463
483
|
}
|
|
464
484
|
f = message.getCreatedAt();
|
|
465
485
|
if (f !== 0) {
|
|
466
|
-
writer.
|
|
486
|
+
writer.writeInt32(
|
|
467
487
|
7,
|
|
468
488
|
f
|
|
469
489
|
);
|
|
470
490
|
}
|
|
471
491
|
f = message.getUpdatedAt();
|
|
472
492
|
if (f !== 0) {
|
|
473
|
-
writer.
|
|
493
|
+
writer.writeInt32(
|
|
474
494
|
8,
|
|
475
495
|
f
|
|
476
496
|
);
|
|
@@ -480,7 +500,7 @@ proto.fonoster.numbers.v1beta2.Number.serializeBinaryToWriter = function(message
|
|
|
480
500
|
writer.writeMessage(
|
|
481
501
|
9,
|
|
482
502
|
f,
|
|
483
|
-
|
|
503
|
+
proto.fonoster.numbers.v1beta2.Number.Trunk.serializeBinaryToWriter
|
|
484
504
|
);
|
|
485
505
|
}
|
|
486
506
|
f = /** @type {string} */ (jspb.Message.getField(message, 10));
|
|
@@ -500,6 +520,166 @@ proto.fonoster.numbers.v1beta2.Number.serializeBinaryToWriter = function(message
|
|
|
500
520
|
};
|
|
501
521
|
|
|
502
522
|
|
|
523
|
+
|
|
524
|
+
|
|
525
|
+
|
|
526
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
527
|
+
/**
|
|
528
|
+
* Creates an object representation of this proto.
|
|
529
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
530
|
+
* Optional fields that are not set will be set to undefined.
|
|
531
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
532
|
+
* For the list of reserved names please see:
|
|
533
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
534
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
535
|
+
* JSPB instance for transitional soy proto support:
|
|
536
|
+
* http://goto/soy-param-migration
|
|
537
|
+
* @return {!Object}
|
|
538
|
+
*/
|
|
539
|
+
proto.fonoster.numbers.v1beta2.Number.Trunk.prototype.toObject = function(opt_includeInstance) {
|
|
540
|
+
return proto.fonoster.numbers.v1beta2.Number.Trunk.toObject(opt_includeInstance, this);
|
|
541
|
+
};
|
|
542
|
+
|
|
543
|
+
|
|
544
|
+
/**
|
|
545
|
+
* Static version of the {@see toObject} method.
|
|
546
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
547
|
+
* the JSPB instance for transitional soy proto support:
|
|
548
|
+
* http://goto/soy-param-migration
|
|
549
|
+
* @param {!proto.fonoster.numbers.v1beta2.Number.Trunk} msg The msg instance to transform.
|
|
550
|
+
* @return {!Object}
|
|
551
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
552
|
+
*/
|
|
553
|
+
proto.fonoster.numbers.v1beta2.Number.Trunk.toObject = function(includeInstance, msg) {
|
|
554
|
+
var f, obj = {
|
|
555
|
+
ref: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
556
|
+
name: jspb.Message.getFieldWithDefault(msg, 2, "")
|
|
557
|
+
};
|
|
558
|
+
|
|
559
|
+
if (includeInstance) {
|
|
560
|
+
obj.$jspbMessageInstance = msg;
|
|
561
|
+
}
|
|
562
|
+
return obj;
|
|
563
|
+
};
|
|
564
|
+
}
|
|
565
|
+
|
|
566
|
+
|
|
567
|
+
/**
|
|
568
|
+
* Deserializes binary data (in protobuf wire format).
|
|
569
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
570
|
+
* @return {!proto.fonoster.numbers.v1beta2.Number.Trunk}
|
|
571
|
+
*/
|
|
572
|
+
proto.fonoster.numbers.v1beta2.Number.Trunk.deserializeBinary = function(bytes) {
|
|
573
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
574
|
+
var msg = new proto.fonoster.numbers.v1beta2.Number.Trunk;
|
|
575
|
+
return proto.fonoster.numbers.v1beta2.Number.Trunk.deserializeBinaryFromReader(msg, reader);
|
|
576
|
+
};
|
|
577
|
+
|
|
578
|
+
|
|
579
|
+
/**
|
|
580
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
581
|
+
* given reader into the given message object.
|
|
582
|
+
* @param {!proto.fonoster.numbers.v1beta2.Number.Trunk} msg The message object to deserialize into.
|
|
583
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
584
|
+
* @return {!proto.fonoster.numbers.v1beta2.Number.Trunk}
|
|
585
|
+
*/
|
|
586
|
+
proto.fonoster.numbers.v1beta2.Number.Trunk.deserializeBinaryFromReader = function(msg, reader) {
|
|
587
|
+
while (reader.nextField()) {
|
|
588
|
+
if (reader.isEndGroup()) {
|
|
589
|
+
break;
|
|
590
|
+
}
|
|
591
|
+
var field = reader.getFieldNumber();
|
|
592
|
+
switch (field) {
|
|
593
|
+
case 1:
|
|
594
|
+
var value = /** @type {string} */ (reader.readString());
|
|
595
|
+
msg.setRef(value);
|
|
596
|
+
break;
|
|
597
|
+
case 2:
|
|
598
|
+
var value = /** @type {string} */ (reader.readString());
|
|
599
|
+
msg.setName(value);
|
|
600
|
+
break;
|
|
601
|
+
default:
|
|
602
|
+
reader.skipField();
|
|
603
|
+
break;
|
|
604
|
+
}
|
|
605
|
+
}
|
|
606
|
+
return msg;
|
|
607
|
+
};
|
|
608
|
+
|
|
609
|
+
|
|
610
|
+
/**
|
|
611
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
612
|
+
* @return {!Uint8Array}
|
|
613
|
+
*/
|
|
614
|
+
proto.fonoster.numbers.v1beta2.Number.Trunk.prototype.serializeBinary = function() {
|
|
615
|
+
var writer = new jspb.BinaryWriter();
|
|
616
|
+
proto.fonoster.numbers.v1beta2.Number.Trunk.serializeBinaryToWriter(this, writer);
|
|
617
|
+
return writer.getResultBuffer();
|
|
618
|
+
};
|
|
619
|
+
|
|
620
|
+
|
|
621
|
+
/**
|
|
622
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
623
|
+
* format), writing to the given BinaryWriter.
|
|
624
|
+
* @param {!proto.fonoster.numbers.v1beta2.Number.Trunk} message
|
|
625
|
+
* @param {!jspb.BinaryWriter} writer
|
|
626
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
627
|
+
*/
|
|
628
|
+
proto.fonoster.numbers.v1beta2.Number.Trunk.serializeBinaryToWriter = function(message, writer) {
|
|
629
|
+
var f = undefined;
|
|
630
|
+
f = message.getRef();
|
|
631
|
+
if (f.length > 0) {
|
|
632
|
+
writer.writeString(
|
|
633
|
+
1,
|
|
634
|
+
f
|
|
635
|
+
);
|
|
636
|
+
}
|
|
637
|
+
f = message.getName();
|
|
638
|
+
if (f.length > 0) {
|
|
639
|
+
writer.writeString(
|
|
640
|
+
2,
|
|
641
|
+
f
|
|
642
|
+
);
|
|
643
|
+
}
|
|
644
|
+
};
|
|
645
|
+
|
|
646
|
+
|
|
647
|
+
/**
|
|
648
|
+
* optional string ref = 1;
|
|
649
|
+
* @return {string}
|
|
650
|
+
*/
|
|
651
|
+
proto.fonoster.numbers.v1beta2.Number.Trunk.prototype.getRef = function() {
|
|
652
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
653
|
+
};
|
|
654
|
+
|
|
655
|
+
|
|
656
|
+
/**
|
|
657
|
+
* @param {string} value
|
|
658
|
+
* @return {!proto.fonoster.numbers.v1beta2.Number.Trunk} returns this
|
|
659
|
+
*/
|
|
660
|
+
proto.fonoster.numbers.v1beta2.Number.Trunk.prototype.setRef = function(value) {
|
|
661
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
662
|
+
};
|
|
663
|
+
|
|
664
|
+
|
|
665
|
+
/**
|
|
666
|
+
* optional string name = 2;
|
|
667
|
+
* @return {string}
|
|
668
|
+
*/
|
|
669
|
+
proto.fonoster.numbers.v1beta2.Number.Trunk.prototype.getName = function() {
|
|
670
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
671
|
+
};
|
|
672
|
+
|
|
673
|
+
|
|
674
|
+
/**
|
|
675
|
+
* @param {string} value
|
|
676
|
+
* @return {!proto.fonoster.numbers.v1beta2.Number.Trunk} returns this
|
|
677
|
+
*/
|
|
678
|
+
proto.fonoster.numbers.v1beta2.Number.Trunk.prototype.setName = function(value) {
|
|
679
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
680
|
+
};
|
|
681
|
+
|
|
682
|
+
|
|
503
683
|
/**
|
|
504
684
|
* optional string ref = 1;
|
|
505
685
|
* @return {string}
|
|
@@ -609,7 +789,7 @@ proto.fonoster.numbers.v1beta2.Number.prototype.setCountryIsoCode = function(val
|
|
|
609
789
|
|
|
610
790
|
|
|
611
791
|
/**
|
|
612
|
-
* optional
|
|
792
|
+
* optional int32 created_at = 7;
|
|
613
793
|
* @return {number}
|
|
614
794
|
*/
|
|
615
795
|
proto.fonoster.numbers.v1beta2.Number.prototype.getCreatedAt = function() {
|
|
@@ -627,7 +807,7 @@ proto.fonoster.numbers.v1beta2.Number.prototype.setCreatedAt = function(value) {
|
|
|
627
807
|
|
|
628
808
|
|
|
629
809
|
/**
|
|
630
|
-
* optional
|
|
810
|
+
* optional int32 updated_at = 8;
|
|
631
811
|
* @return {number}
|
|
632
812
|
*/
|
|
633
813
|
proto.fonoster.numbers.v1beta2.Number.prototype.getUpdatedAt = function() {
|
|
@@ -645,17 +825,17 @@ proto.fonoster.numbers.v1beta2.Number.prototype.setUpdatedAt = function(value) {
|
|
|
645
825
|
|
|
646
826
|
|
|
647
827
|
/**
|
|
648
|
-
* optional
|
|
649
|
-
* @return {?proto.fonoster.
|
|
828
|
+
* optional Trunk trunk = 9;
|
|
829
|
+
* @return {?proto.fonoster.numbers.v1beta2.Number.Trunk}
|
|
650
830
|
*/
|
|
651
831
|
proto.fonoster.numbers.v1beta2.Number.prototype.getTrunk = function() {
|
|
652
|
-
return /** @type{?proto.fonoster.
|
|
653
|
-
jspb.Message.getWrapperField(this,
|
|
832
|
+
return /** @type{?proto.fonoster.numbers.v1beta2.Number.Trunk} */ (
|
|
833
|
+
jspb.Message.getWrapperField(this, proto.fonoster.numbers.v1beta2.Number.Trunk, 9));
|
|
654
834
|
};
|
|
655
835
|
|
|
656
836
|
|
|
657
837
|
/**
|
|
658
|
-
* @param {?proto.fonoster.
|
|
838
|
+
* @param {?proto.fonoster.numbers.v1beta2.Number.Trunk|undefined} value
|
|
659
839
|
* @return {!proto.fonoster.numbers.v1beta2.Number} returns this
|
|
660
840
|
*/
|
|
661
841
|
proto.fonoster.numbers.v1beta2.Number.prototype.setTrunk = function(value) {
|