@valkey/valkey-glide 2.1.1 → 2.2.0-rc1
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/build-ts/BaseClient.d.ts +58 -2
- package/build-ts/BaseClient.js +111 -14
- package/build-ts/Batch.d.ts +4 -0
- package/build-ts/Batch.js +4 -0
- package/build-ts/Commands.d.ts +2 -1
- package/build-ts/Commands.js +9 -4
- package/build-ts/GlideClient.d.ts +3 -1
- package/build-ts/GlideClient.js +50 -49
- package/build-ts/GlideClusterClient.d.ts +17 -2
- package/build-ts/GlideClusterClient.js +59 -51
- package/build-ts/ProtobufMessage.d.ts +193 -1
- package/build-ts/ProtobufMessage.js +436 -5
- package/package.json +8 -8
|
@@ -2870,6 +2870,131 @@ $root.command_request = (function() {
|
|
|
2870
2870
|
return UpdateConnectionPassword;
|
|
2871
2871
|
})();
|
|
2872
2872
|
|
|
2873
|
+
command_request.RefreshIamToken = (function() {
|
|
2874
|
+
|
|
2875
|
+
/**
|
|
2876
|
+
* Properties of a RefreshIamToken.
|
|
2877
|
+
* @memberof command_request
|
|
2878
|
+
* @interface IRefreshIamToken
|
|
2879
|
+
*/
|
|
2880
|
+
|
|
2881
|
+
/**
|
|
2882
|
+
* Constructs a new RefreshIamToken.
|
|
2883
|
+
* @memberof command_request
|
|
2884
|
+
* @classdesc Represents a RefreshIamToken.
|
|
2885
|
+
* @implements IRefreshIamToken
|
|
2886
|
+
* @constructor
|
|
2887
|
+
* @param {command_request.IRefreshIamToken=} [properties] Properties to set
|
|
2888
|
+
*/
|
|
2889
|
+
function RefreshIamToken(properties) {
|
|
2890
|
+
if (properties)
|
|
2891
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
2892
|
+
if (properties[keys[i]] != null)
|
|
2893
|
+
this[keys[i]] = properties[keys[i]];
|
|
2894
|
+
}
|
|
2895
|
+
|
|
2896
|
+
/**
|
|
2897
|
+
* Creates a new RefreshIamToken instance using the specified properties.
|
|
2898
|
+
* @function create
|
|
2899
|
+
* @memberof command_request.RefreshIamToken
|
|
2900
|
+
* @static
|
|
2901
|
+
* @param {command_request.IRefreshIamToken=} [properties] Properties to set
|
|
2902
|
+
* @returns {command_request.RefreshIamToken} RefreshIamToken instance
|
|
2903
|
+
*/
|
|
2904
|
+
RefreshIamToken.create = function create(properties) {
|
|
2905
|
+
return new RefreshIamToken(properties);
|
|
2906
|
+
};
|
|
2907
|
+
|
|
2908
|
+
/**
|
|
2909
|
+
* Encodes the specified RefreshIamToken message. Does not implicitly {@link command_request.RefreshIamToken.verify|verify} messages.
|
|
2910
|
+
* @function encode
|
|
2911
|
+
* @memberof command_request.RefreshIamToken
|
|
2912
|
+
* @static
|
|
2913
|
+
* @param {command_request.IRefreshIamToken} message RefreshIamToken message or plain object to encode
|
|
2914
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
2915
|
+
* @returns {$protobuf.Writer} Writer
|
|
2916
|
+
*/
|
|
2917
|
+
RefreshIamToken.encode = function encode(message, writer) {
|
|
2918
|
+
if (!writer)
|
|
2919
|
+
writer = $Writer.create();
|
|
2920
|
+
return writer;
|
|
2921
|
+
};
|
|
2922
|
+
|
|
2923
|
+
/**
|
|
2924
|
+
* Encodes the specified RefreshIamToken message, length delimited. Does not implicitly {@link command_request.RefreshIamToken.verify|verify} messages.
|
|
2925
|
+
* @function encodeDelimited
|
|
2926
|
+
* @memberof command_request.RefreshIamToken
|
|
2927
|
+
* @static
|
|
2928
|
+
* @param {command_request.IRefreshIamToken} message RefreshIamToken message or plain object to encode
|
|
2929
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
2930
|
+
* @returns {$protobuf.Writer} Writer
|
|
2931
|
+
*/
|
|
2932
|
+
RefreshIamToken.encodeDelimited = function encodeDelimited(message, writer) {
|
|
2933
|
+
return this.encode(message, writer && writer.len ? writer.fork() : writer).ldelim();
|
|
2934
|
+
};
|
|
2935
|
+
|
|
2936
|
+
/**
|
|
2937
|
+
* Decodes a RefreshIamToken message from the specified reader or buffer.
|
|
2938
|
+
* @function decode
|
|
2939
|
+
* @memberof command_request.RefreshIamToken
|
|
2940
|
+
* @static
|
|
2941
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
2942
|
+
* @param {number} [length] Message length if known beforehand
|
|
2943
|
+
* @returns {command_request.RefreshIamToken} RefreshIamToken
|
|
2944
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
2945
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
2946
|
+
*/
|
|
2947
|
+
RefreshIamToken.decode = function decode(reader, length, error) {
|
|
2948
|
+
if (!(reader instanceof $Reader))
|
|
2949
|
+
reader = $Reader.create(reader);
|
|
2950
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.command_request.RefreshIamToken();
|
|
2951
|
+
while (reader.pos < end) {
|
|
2952
|
+
var tag = reader.uint32();
|
|
2953
|
+
if (tag === error)
|
|
2954
|
+
break;
|
|
2955
|
+
switch (tag >>> 3) {
|
|
2956
|
+
default:
|
|
2957
|
+
reader.skipType(tag & 7);
|
|
2958
|
+
break;
|
|
2959
|
+
}
|
|
2960
|
+
}
|
|
2961
|
+
return message;
|
|
2962
|
+
};
|
|
2963
|
+
|
|
2964
|
+
/**
|
|
2965
|
+
* Decodes a RefreshIamToken message from the specified reader or buffer, length delimited.
|
|
2966
|
+
* @function decodeDelimited
|
|
2967
|
+
* @memberof command_request.RefreshIamToken
|
|
2968
|
+
* @static
|
|
2969
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
2970
|
+
* @returns {command_request.RefreshIamToken} RefreshIamToken
|
|
2971
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
2972
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
2973
|
+
*/
|
|
2974
|
+
RefreshIamToken.decodeDelimited = function decodeDelimited(reader) {
|
|
2975
|
+
if (!(reader instanceof $Reader))
|
|
2976
|
+
reader = new $Reader(reader);
|
|
2977
|
+
return this.decode(reader, reader.uint32());
|
|
2978
|
+
};
|
|
2979
|
+
|
|
2980
|
+
/**
|
|
2981
|
+
* Gets the default type url for RefreshIamToken
|
|
2982
|
+
* @function getTypeUrl
|
|
2983
|
+
* @memberof command_request.RefreshIamToken
|
|
2984
|
+
* @static
|
|
2985
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
2986
|
+
* @returns {string} The default type url
|
|
2987
|
+
*/
|
|
2988
|
+
RefreshIamToken.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
2989
|
+
if (typeUrlPrefix === undefined) {
|
|
2990
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
2991
|
+
}
|
|
2992
|
+
return typeUrlPrefix + "/command_request.RefreshIamToken";
|
|
2993
|
+
};
|
|
2994
|
+
|
|
2995
|
+
return RefreshIamToken;
|
|
2996
|
+
})();
|
|
2997
|
+
|
|
2873
2998
|
command_request.CommandRequest = (function() {
|
|
2874
2999
|
|
|
2875
3000
|
/**
|
|
@@ -2883,6 +3008,7 @@ $root.command_request = (function() {
|
|
|
2883
3008
|
* @property {command_request.IScriptInvocationPointers|null} [scriptInvocationPointers] CommandRequest scriptInvocationPointers
|
|
2884
3009
|
* @property {command_request.IClusterScan|null} [clusterScan] CommandRequest clusterScan
|
|
2885
3010
|
* @property {command_request.IUpdateConnectionPassword|null} [updateConnectionPassword] CommandRequest updateConnectionPassword
|
|
3011
|
+
* @property {command_request.IRefreshIamToken|null} [refreshIamToken] CommandRequest refreshIamToken
|
|
2886
3012
|
* @property {command_request.IRoutes|null} [route] CommandRequest route
|
|
2887
3013
|
* @property {number|Long|null} [rootSpanPtr] CommandRequest rootSpanPtr
|
|
2888
3014
|
*/
|
|
@@ -2958,6 +3084,14 @@ $root.command_request = (function() {
|
|
|
2958
3084
|
*/
|
|
2959
3085
|
CommandRequest.prototype.updateConnectionPassword = null;
|
|
2960
3086
|
|
|
3087
|
+
/**
|
|
3088
|
+
* CommandRequest refreshIamToken.
|
|
3089
|
+
* @member {command_request.IRefreshIamToken|null|undefined} refreshIamToken
|
|
3090
|
+
* @memberof command_request.CommandRequest
|
|
3091
|
+
* @instance
|
|
3092
|
+
*/
|
|
3093
|
+
CommandRequest.prototype.refreshIamToken = null;
|
|
3094
|
+
|
|
2961
3095
|
/**
|
|
2962
3096
|
* CommandRequest route.
|
|
2963
3097
|
* @member {command_request.IRoutes|null|undefined} route
|
|
@@ -2979,12 +3113,12 @@ $root.command_request = (function() {
|
|
|
2979
3113
|
|
|
2980
3114
|
/**
|
|
2981
3115
|
* CommandRequest command.
|
|
2982
|
-
* @member {"singleCommand"|"batch"|"scriptInvocation"|"scriptInvocationPointers"|"clusterScan"|"updateConnectionPassword"|undefined} command
|
|
3116
|
+
* @member {"singleCommand"|"batch"|"scriptInvocation"|"scriptInvocationPointers"|"clusterScan"|"updateConnectionPassword"|"refreshIamToken"|undefined} command
|
|
2983
3117
|
* @memberof command_request.CommandRequest
|
|
2984
3118
|
* @instance
|
|
2985
3119
|
*/
|
|
2986
3120
|
Object.defineProperty(CommandRequest.prototype, "command", {
|
|
2987
|
-
get: $util.oneOfGetter($oneOfFields = ["singleCommand", "batch", "scriptInvocation", "scriptInvocationPointers", "clusterScan", "updateConnectionPassword"]),
|
|
3121
|
+
get: $util.oneOfGetter($oneOfFields = ["singleCommand", "batch", "scriptInvocation", "scriptInvocationPointers", "clusterScan", "updateConnectionPassword", "refreshIamToken"]),
|
|
2988
3122
|
set: $util.oneOfSetter($oneOfFields)
|
|
2989
3123
|
});
|
|
2990
3124
|
|
|
@@ -3037,10 +3171,12 @@ $root.command_request = (function() {
|
|
|
3037
3171
|
$root.command_request.ClusterScan.encode(message.clusterScan, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim();
|
|
3038
3172
|
if (message.updateConnectionPassword != null && Object.hasOwnProperty.call(message, "updateConnectionPassword"))
|
|
3039
3173
|
$root.command_request.UpdateConnectionPassword.encode(message.updateConnectionPassword, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim();
|
|
3174
|
+
if (message.refreshIamToken != null && Object.hasOwnProperty.call(message, "refreshIamToken"))
|
|
3175
|
+
$root.command_request.RefreshIamToken.encode(message.refreshIamToken, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim();
|
|
3040
3176
|
if (message.route != null && Object.hasOwnProperty.call(message, "route"))
|
|
3041
|
-
$root.command_request.Routes.encode(message.route, writer.uint32(/* id
|
|
3177
|
+
$root.command_request.Routes.encode(message.route, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim();
|
|
3042
3178
|
if (message.rootSpanPtr != null && Object.hasOwnProperty.call(message, "rootSpanPtr"))
|
|
3043
|
-
writer.uint32(/* id
|
|
3179
|
+
writer.uint32(/* id 10, wireType 0 =*/80).uint64(message.rootSpanPtr);
|
|
3044
3180
|
return writer;
|
|
3045
3181
|
};
|
|
3046
3182
|
|
|
@@ -3106,10 +3242,14 @@ $root.command_request = (function() {
|
|
|
3106
3242
|
break;
|
|
3107
3243
|
}
|
|
3108
3244
|
case 8: {
|
|
3109
|
-
message.
|
|
3245
|
+
message.refreshIamToken = $root.command_request.RefreshIamToken.decode(reader, reader.uint32());
|
|
3110
3246
|
break;
|
|
3111
3247
|
}
|
|
3112
3248
|
case 9: {
|
|
3249
|
+
message.route = $root.command_request.Routes.decode(reader, reader.uint32());
|
|
3250
|
+
break;
|
|
3251
|
+
}
|
|
3252
|
+
case 10: {
|
|
3113
3253
|
message.rootSpanPtr = reader.uint64();
|
|
3114
3254
|
break;
|
|
3115
3255
|
}
|
|
@@ -3366,6 +3506,7 @@ $root.connection_request = (function() {
|
|
|
3366
3506
|
* @interface IAuthenticationInfo
|
|
3367
3507
|
* @property {string|null} [password] AuthenticationInfo password
|
|
3368
3508
|
* @property {string|null} [username] AuthenticationInfo username
|
|
3509
|
+
* @property {connection_request.IIamCredentials|null} [iamCredentials] AuthenticationInfo iamCredentials
|
|
3369
3510
|
*/
|
|
3370
3511
|
|
|
3371
3512
|
/**
|
|
@@ -3399,6 +3540,28 @@ $root.connection_request = (function() {
|
|
|
3399
3540
|
*/
|
|
3400
3541
|
AuthenticationInfo.prototype.username = "";
|
|
3401
3542
|
|
|
3543
|
+
/**
|
|
3544
|
+
* AuthenticationInfo iamCredentials.
|
|
3545
|
+
* @member {connection_request.IIamCredentials|null|undefined} iamCredentials
|
|
3546
|
+
* @memberof connection_request.AuthenticationInfo
|
|
3547
|
+
* @instance
|
|
3548
|
+
*/
|
|
3549
|
+
AuthenticationInfo.prototype.iamCredentials = null;
|
|
3550
|
+
|
|
3551
|
+
// OneOf field names bound to virtual getters and setters
|
|
3552
|
+
var $oneOfFields;
|
|
3553
|
+
|
|
3554
|
+
/**
|
|
3555
|
+
* AuthenticationInfo _iamCredentials.
|
|
3556
|
+
* @member {"iamCredentials"|undefined} _iamCredentials
|
|
3557
|
+
* @memberof connection_request.AuthenticationInfo
|
|
3558
|
+
* @instance
|
|
3559
|
+
*/
|
|
3560
|
+
Object.defineProperty(AuthenticationInfo.prototype, "_iamCredentials", {
|
|
3561
|
+
get: $util.oneOfGetter($oneOfFields = ["iamCredentials"]),
|
|
3562
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
3563
|
+
});
|
|
3564
|
+
|
|
3402
3565
|
/**
|
|
3403
3566
|
* Creates a new AuthenticationInfo instance using the specified properties.
|
|
3404
3567
|
* @function create
|
|
@@ -3427,6 +3590,8 @@ $root.connection_request = (function() {
|
|
|
3427
3590
|
writer.uint32(/* id 1, wireType 2 =*/10).string(message.password);
|
|
3428
3591
|
if (message.username != null && Object.hasOwnProperty.call(message, "username"))
|
|
3429
3592
|
writer.uint32(/* id 2, wireType 2 =*/18).string(message.username);
|
|
3593
|
+
if (message.iamCredentials != null && Object.hasOwnProperty.call(message, "iamCredentials"))
|
|
3594
|
+
$root.connection_request.IamCredentials.encode(message.iamCredentials, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
|
|
3430
3595
|
return writer;
|
|
3431
3596
|
};
|
|
3432
3597
|
|
|
@@ -3471,6 +3636,10 @@ $root.connection_request = (function() {
|
|
|
3471
3636
|
message.username = reader.string();
|
|
3472
3637
|
break;
|
|
3473
3638
|
}
|
|
3639
|
+
case 3: {
|
|
3640
|
+
message.iamCredentials = $root.connection_request.IamCredentials.decode(reader, reader.uint32());
|
|
3641
|
+
break;
|
|
3642
|
+
}
|
|
3474
3643
|
default:
|
|
3475
3644
|
reader.skipType(tag & 7);
|
|
3476
3645
|
break;
|
|
@@ -3513,6 +3682,219 @@ $root.connection_request = (function() {
|
|
|
3513
3682
|
return AuthenticationInfo;
|
|
3514
3683
|
})();
|
|
3515
3684
|
|
|
3685
|
+
/**
|
|
3686
|
+
* ServiceType enum.
|
|
3687
|
+
* @name connection_request.ServiceType
|
|
3688
|
+
* @enum {number}
|
|
3689
|
+
* @property {number} ELASTICACHE=0 ELASTICACHE value
|
|
3690
|
+
* @property {number} MEMORYDB=1 MEMORYDB value
|
|
3691
|
+
*/
|
|
3692
|
+
connection_request.ServiceType = (function() {
|
|
3693
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
3694
|
+
values[valuesById[0] = "ELASTICACHE"] = 0;
|
|
3695
|
+
values[valuesById[1] = "MEMORYDB"] = 1;
|
|
3696
|
+
return values;
|
|
3697
|
+
})();
|
|
3698
|
+
|
|
3699
|
+
connection_request.IamCredentials = (function() {
|
|
3700
|
+
|
|
3701
|
+
/**
|
|
3702
|
+
* Properties of an IamCredentials.
|
|
3703
|
+
* @memberof connection_request
|
|
3704
|
+
* @interface IIamCredentials
|
|
3705
|
+
* @property {string|null} [clusterName] IamCredentials clusterName
|
|
3706
|
+
* @property {string|null} [region] IamCredentials region
|
|
3707
|
+
* @property {connection_request.ServiceType|null} [serviceType] IamCredentials serviceType
|
|
3708
|
+
* @property {number|null} [refreshIntervalSeconds] IamCredentials refreshIntervalSeconds
|
|
3709
|
+
*/
|
|
3710
|
+
|
|
3711
|
+
/**
|
|
3712
|
+
* Constructs a new IamCredentials.
|
|
3713
|
+
* @memberof connection_request
|
|
3714
|
+
* @classdesc Represents an IamCredentials.
|
|
3715
|
+
* @implements IIamCredentials
|
|
3716
|
+
* @constructor
|
|
3717
|
+
* @param {connection_request.IIamCredentials=} [properties] Properties to set
|
|
3718
|
+
*/
|
|
3719
|
+
function IamCredentials(properties) {
|
|
3720
|
+
if (properties)
|
|
3721
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
3722
|
+
if (properties[keys[i]] != null)
|
|
3723
|
+
this[keys[i]] = properties[keys[i]];
|
|
3724
|
+
}
|
|
3725
|
+
|
|
3726
|
+
/**
|
|
3727
|
+
* IamCredentials clusterName.
|
|
3728
|
+
* @member {string} clusterName
|
|
3729
|
+
* @memberof connection_request.IamCredentials
|
|
3730
|
+
* @instance
|
|
3731
|
+
*/
|
|
3732
|
+
IamCredentials.prototype.clusterName = "";
|
|
3733
|
+
|
|
3734
|
+
/**
|
|
3735
|
+
* IamCredentials region.
|
|
3736
|
+
* @member {string} region
|
|
3737
|
+
* @memberof connection_request.IamCredentials
|
|
3738
|
+
* @instance
|
|
3739
|
+
*/
|
|
3740
|
+
IamCredentials.prototype.region = "";
|
|
3741
|
+
|
|
3742
|
+
/**
|
|
3743
|
+
* IamCredentials serviceType.
|
|
3744
|
+
* @member {connection_request.ServiceType} serviceType
|
|
3745
|
+
* @memberof connection_request.IamCredentials
|
|
3746
|
+
* @instance
|
|
3747
|
+
*/
|
|
3748
|
+
IamCredentials.prototype.serviceType = 0;
|
|
3749
|
+
|
|
3750
|
+
/**
|
|
3751
|
+
* IamCredentials refreshIntervalSeconds.
|
|
3752
|
+
* @member {number|null|undefined} refreshIntervalSeconds
|
|
3753
|
+
* @memberof connection_request.IamCredentials
|
|
3754
|
+
* @instance
|
|
3755
|
+
*/
|
|
3756
|
+
IamCredentials.prototype.refreshIntervalSeconds = null;
|
|
3757
|
+
|
|
3758
|
+
// OneOf field names bound to virtual getters and setters
|
|
3759
|
+
var $oneOfFields;
|
|
3760
|
+
|
|
3761
|
+
/**
|
|
3762
|
+
* IamCredentials _refreshIntervalSeconds.
|
|
3763
|
+
* @member {"refreshIntervalSeconds"|undefined} _refreshIntervalSeconds
|
|
3764
|
+
* @memberof connection_request.IamCredentials
|
|
3765
|
+
* @instance
|
|
3766
|
+
*/
|
|
3767
|
+
Object.defineProperty(IamCredentials.prototype, "_refreshIntervalSeconds", {
|
|
3768
|
+
get: $util.oneOfGetter($oneOfFields = ["refreshIntervalSeconds"]),
|
|
3769
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
3770
|
+
});
|
|
3771
|
+
|
|
3772
|
+
/**
|
|
3773
|
+
* Creates a new IamCredentials instance using the specified properties.
|
|
3774
|
+
* @function create
|
|
3775
|
+
* @memberof connection_request.IamCredentials
|
|
3776
|
+
* @static
|
|
3777
|
+
* @param {connection_request.IIamCredentials=} [properties] Properties to set
|
|
3778
|
+
* @returns {connection_request.IamCredentials} IamCredentials instance
|
|
3779
|
+
*/
|
|
3780
|
+
IamCredentials.create = function create(properties) {
|
|
3781
|
+
return new IamCredentials(properties);
|
|
3782
|
+
};
|
|
3783
|
+
|
|
3784
|
+
/**
|
|
3785
|
+
* Encodes the specified IamCredentials message. Does not implicitly {@link connection_request.IamCredentials.verify|verify} messages.
|
|
3786
|
+
* @function encode
|
|
3787
|
+
* @memberof connection_request.IamCredentials
|
|
3788
|
+
* @static
|
|
3789
|
+
* @param {connection_request.IIamCredentials} message IamCredentials message or plain object to encode
|
|
3790
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
3791
|
+
* @returns {$protobuf.Writer} Writer
|
|
3792
|
+
*/
|
|
3793
|
+
IamCredentials.encode = function encode(message, writer) {
|
|
3794
|
+
if (!writer)
|
|
3795
|
+
writer = $Writer.create();
|
|
3796
|
+
if (message.clusterName != null && Object.hasOwnProperty.call(message, "clusterName"))
|
|
3797
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.clusterName);
|
|
3798
|
+
if (message.region != null && Object.hasOwnProperty.call(message, "region"))
|
|
3799
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.region);
|
|
3800
|
+
if (message.serviceType != null && Object.hasOwnProperty.call(message, "serviceType"))
|
|
3801
|
+
writer.uint32(/* id 3, wireType 0 =*/24).int32(message.serviceType);
|
|
3802
|
+
if (message.refreshIntervalSeconds != null && Object.hasOwnProperty.call(message, "refreshIntervalSeconds"))
|
|
3803
|
+
writer.uint32(/* id 4, wireType 0 =*/32).uint32(message.refreshIntervalSeconds);
|
|
3804
|
+
return writer;
|
|
3805
|
+
};
|
|
3806
|
+
|
|
3807
|
+
/**
|
|
3808
|
+
* Encodes the specified IamCredentials message, length delimited. Does not implicitly {@link connection_request.IamCredentials.verify|verify} messages.
|
|
3809
|
+
* @function encodeDelimited
|
|
3810
|
+
* @memberof connection_request.IamCredentials
|
|
3811
|
+
* @static
|
|
3812
|
+
* @param {connection_request.IIamCredentials} message IamCredentials message or plain object to encode
|
|
3813
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
3814
|
+
* @returns {$protobuf.Writer} Writer
|
|
3815
|
+
*/
|
|
3816
|
+
IamCredentials.encodeDelimited = function encodeDelimited(message, writer) {
|
|
3817
|
+
return this.encode(message, writer && writer.len ? writer.fork() : writer).ldelim();
|
|
3818
|
+
};
|
|
3819
|
+
|
|
3820
|
+
/**
|
|
3821
|
+
* Decodes an IamCredentials message from the specified reader or buffer.
|
|
3822
|
+
* @function decode
|
|
3823
|
+
* @memberof connection_request.IamCredentials
|
|
3824
|
+
* @static
|
|
3825
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
3826
|
+
* @param {number} [length] Message length if known beforehand
|
|
3827
|
+
* @returns {connection_request.IamCredentials} IamCredentials
|
|
3828
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
3829
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
3830
|
+
*/
|
|
3831
|
+
IamCredentials.decode = function decode(reader, length, error) {
|
|
3832
|
+
if (!(reader instanceof $Reader))
|
|
3833
|
+
reader = $Reader.create(reader);
|
|
3834
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.connection_request.IamCredentials();
|
|
3835
|
+
while (reader.pos < end) {
|
|
3836
|
+
var tag = reader.uint32();
|
|
3837
|
+
if (tag === error)
|
|
3838
|
+
break;
|
|
3839
|
+
switch (tag >>> 3) {
|
|
3840
|
+
case 1: {
|
|
3841
|
+
message.clusterName = reader.string();
|
|
3842
|
+
break;
|
|
3843
|
+
}
|
|
3844
|
+
case 2: {
|
|
3845
|
+
message.region = reader.string();
|
|
3846
|
+
break;
|
|
3847
|
+
}
|
|
3848
|
+
case 3: {
|
|
3849
|
+
message.serviceType = reader.int32();
|
|
3850
|
+
break;
|
|
3851
|
+
}
|
|
3852
|
+
case 4: {
|
|
3853
|
+
message.refreshIntervalSeconds = reader.uint32();
|
|
3854
|
+
break;
|
|
3855
|
+
}
|
|
3856
|
+
default:
|
|
3857
|
+
reader.skipType(tag & 7);
|
|
3858
|
+
break;
|
|
3859
|
+
}
|
|
3860
|
+
}
|
|
3861
|
+
return message;
|
|
3862
|
+
};
|
|
3863
|
+
|
|
3864
|
+
/**
|
|
3865
|
+
* Decodes an IamCredentials message from the specified reader or buffer, length delimited.
|
|
3866
|
+
* @function decodeDelimited
|
|
3867
|
+
* @memberof connection_request.IamCredentials
|
|
3868
|
+
* @static
|
|
3869
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
3870
|
+
* @returns {connection_request.IamCredentials} IamCredentials
|
|
3871
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
3872
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
3873
|
+
*/
|
|
3874
|
+
IamCredentials.decodeDelimited = function decodeDelimited(reader) {
|
|
3875
|
+
if (!(reader instanceof $Reader))
|
|
3876
|
+
reader = new $Reader(reader);
|
|
3877
|
+
return this.decode(reader, reader.uint32());
|
|
3878
|
+
};
|
|
3879
|
+
|
|
3880
|
+
/**
|
|
3881
|
+
* Gets the default type url for IamCredentials
|
|
3882
|
+
* @function getTypeUrl
|
|
3883
|
+
* @memberof connection_request.IamCredentials
|
|
3884
|
+
* @static
|
|
3885
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
3886
|
+
* @returns {string} The default type url
|
|
3887
|
+
*/
|
|
3888
|
+
IamCredentials.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
3889
|
+
if (typeUrlPrefix === undefined) {
|
|
3890
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
3891
|
+
}
|
|
3892
|
+
return typeUrlPrefix + "/connection_request.IamCredentials";
|
|
3893
|
+
};
|
|
3894
|
+
|
|
3895
|
+
return IamCredentials;
|
|
3896
|
+
})();
|
|
3897
|
+
|
|
3516
3898
|
/**
|
|
3517
3899
|
* ProtocolVersion enum.
|
|
3518
3900
|
* @name connection_request.ProtocolVersion
|
|
@@ -4138,6 +4520,9 @@ $root.connection_request = (function() {
|
|
|
4138
4520
|
* @property {string|null} [clientAz] ConnectionRequest clientAz
|
|
4139
4521
|
* @property {number|null} [connectionTimeout] ConnectionRequest connectionTimeout
|
|
4140
4522
|
* @property {boolean|null} [lazyConnect] ConnectionRequest lazyConnect
|
|
4523
|
+
* @property {boolean|null} [refreshTopologyFromInitialNodes] ConnectionRequest refreshTopologyFromInitialNodes
|
|
4524
|
+
* @property {string|null} [libName] ConnectionRequest libName
|
|
4525
|
+
* @property {Array.<Uint8Array>|null} [rootCerts] ConnectionRequest rootCerts
|
|
4141
4526
|
*/
|
|
4142
4527
|
|
|
4143
4528
|
/**
|
|
@@ -4150,6 +4535,7 @@ $root.connection_request = (function() {
|
|
|
4150
4535
|
*/
|
|
4151
4536
|
function ConnectionRequest(properties) {
|
|
4152
4537
|
this.addresses = [];
|
|
4538
|
+
this.rootCerts = [];
|
|
4153
4539
|
if (properties)
|
|
4154
4540
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
4155
4541
|
if (properties[keys[i]] != null)
|
|
@@ -4292,6 +4678,30 @@ $root.connection_request = (function() {
|
|
|
4292
4678
|
*/
|
|
4293
4679
|
ConnectionRequest.prototype.lazyConnect = false;
|
|
4294
4680
|
|
|
4681
|
+
/**
|
|
4682
|
+
* ConnectionRequest refreshTopologyFromInitialNodes.
|
|
4683
|
+
* @member {boolean} refreshTopologyFromInitialNodes
|
|
4684
|
+
* @memberof connection_request.ConnectionRequest
|
|
4685
|
+
* @instance
|
|
4686
|
+
*/
|
|
4687
|
+
ConnectionRequest.prototype.refreshTopologyFromInitialNodes = false;
|
|
4688
|
+
|
|
4689
|
+
/**
|
|
4690
|
+
* ConnectionRequest libName.
|
|
4691
|
+
* @member {string} libName
|
|
4692
|
+
* @memberof connection_request.ConnectionRequest
|
|
4693
|
+
* @instance
|
|
4694
|
+
*/
|
|
4695
|
+
ConnectionRequest.prototype.libName = "";
|
|
4696
|
+
|
|
4697
|
+
/**
|
|
4698
|
+
* ConnectionRequest rootCerts.
|
|
4699
|
+
* @member {Array.<Uint8Array>} rootCerts
|
|
4700
|
+
* @memberof connection_request.ConnectionRequest
|
|
4701
|
+
* @instance
|
|
4702
|
+
*/
|
|
4703
|
+
ConnectionRequest.prototype.rootCerts = $util.emptyArray;
|
|
4704
|
+
|
|
4295
4705
|
// OneOf field names bound to virtual getters and setters
|
|
4296
4706
|
var $oneOfFields;
|
|
4297
4707
|
|
|
@@ -4365,6 +4775,13 @@ $root.connection_request = (function() {
|
|
|
4365
4775
|
writer.uint32(/* id 16, wireType 0 =*/128).uint32(message.connectionTimeout);
|
|
4366
4776
|
if (message.lazyConnect != null && Object.hasOwnProperty.call(message, "lazyConnect"))
|
|
4367
4777
|
writer.uint32(/* id 17, wireType 0 =*/136).bool(message.lazyConnect);
|
|
4778
|
+
if (message.refreshTopologyFromInitialNodes != null && Object.hasOwnProperty.call(message, "refreshTopologyFromInitialNodes"))
|
|
4779
|
+
writer.uint32(/* id 18, wireType 0 =*/144).bool(message.refreshTopologyFromInitialNodes);
|
|
4780
|
+
if (message.libName != null && Object.hasOwnProperty.call(message, "libName"))
|
|
4781
|
+
writer.uint32(/* id 19, wireType 2 =*/154).string(message.libName);
|
|
4782
|
+
if (message.rootCerts != null && message.rootCerts.length)
|
|
4783
|
+
for (var i = 0; i < message.rootCerts.length; ++i)
|
|
4784
|
+
writer.uint32(/* id 20, wireType 2 =*/162).bytes(message.rootCerts[i]);
|
|
4368
4785
|
return writer;
|
|
4369
4786
|
};
|
|
4370
4787
|
|
|
@@ -4471,6 +4888,20 @@ $root.connection_request = (function() {
|
|
|
4471
4888
|
message.lazyConnect = reader.bool();
|
|
4472
4889
|
break;
|
|
4473
4890
|
}
|
|
4891
|
+
case 18: {
|
|
4892
|
+
message.refreshTopologyFromInitialNodes = reader.bool();
|
|
4893
|
+
break;
|
|
4894
|
+
}
|
|
4895
|
+
case 19: {
|
|
4896
|
+
message.libName = reader.string();
|
|
4897
|
+
break;
|
|
4898
|
+
}
|
|
4899
|
+
case 20: {
|
|
4900
|
+
if (!(message.rootCerts && message.rootCerts.length))
|
|
4901
|
+
message.rootCerts = [];
|
|
4902
|
+
message.rootCerts.push(reader.bytes());
|
|
4903
|
+
break;
|
|
4904
|
+
}
|
|
4474
4905
|
default:
|
|
4475
4906
|
reader.skipType(tag & 7);
|
|
4476
4907
|
break;
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"main": "build-ts/index.js",
|
|
5
5
|
"module": "build-ts/index.js",
|
|
6
6
|
"types": "build-ts/index.d.ts",
|
|
7
|
-
"version": "2.
|
|
7
|
+
"version": "2.2.0-rc1",
|
|
8
8
|
"exports": {
|
|
9
9
|
".": {
|
|
10
10
|
"import": {
|
|
@@ -89,7 +89,7 @@
|
|
|
89
89
|
"@types/jest": "29",
|
|
90
90
|
"@types/minimist": "1",
|
|
91
91
|
"@types/semver": "7",
|
|
92
|
-
"@types/uuid": "
|
|
92
|
+
"@types/uuid": "11",
|
|
93
93
|
"find-free-port": "2",
|
|
94
94
|
"lint-staged": "16",
|
|
95
95
|
"jest": "29",
|
|
@@ -134,11 +134,11 @@
|
|
|
134
134
|
}
|
|
135
135
|
},
|
|
136
136
|
"optionalDependencies": {
|
|
137
|
-
"@valkey/valkey-glide-darwin-x64": "2.
|
|
138
|
-
"@valkey/valkey-glide-darwin-arm64": "2.
|
|
139
|
-
"@valkey/valkey-glide-linux-x64-gnu": "2.
|
|
140
|
-
"@valkey/valkey-glide-linux-arm64-gnu": "2.
|
|
141
|
-
"@valkey/valkey-glide-linux-x64-musl": "2.
|
|
142
|
-
"@valkey/valkey-glide-linux-arm64-musl": "2.
|
|
137
|
+
"@valkey/valkey-glide-darwin-x64": "2.2.0-rc1",
|
|
138
|
+
"@valkey/valkey-glide-darwin-arm64": "2.2.0-rc1",
|
|
139
|
+
"@valkey/valkey-glide-linux-x64-gnu": "2.2.0-rc1",
|
|
140
|
+
"@valkey/valkey-glide-linux-arm64-gnu": "2.2.0-rc1",
|
|
141
|
+
"@valkey/valkey-glide-linux-x64-musl": "2.2.0-rc1",
|
|
142
|
+
"@valkey/valkey-glide-linux-arm64-musl": "2.2.0-rc1"
|
|
143
143
|
}
|
|
144
144
|
}
|