@devvit/protos 0.11.8-next-2025-02-12-e4a7d52e8.0 → 0.11.8-next-2025-02-12-ce9f2981c.0
Sign up to get free protection for your applications and to get access to all the features.
- package/index.d.ts +1 -1
- package/index.d.ts.map +1 -1
- package/index.js +1 -1
- package/meta.min.json +6 -5
- package/package.json +6 -6
- package/protos.min.js +1 -1
- package/protos.min.js.map +3 -3
- package/schema/devvit/plugin/redis/redisapi.proto +50 -0
- package/schema/snootobuf.devenv.lock +1892 -725
- package/schema/snootobuf.lock +1892 -725
- package/schema/snootobuf.redditapi.lock +1892 -725
- package/schema/snootobuf.ts.lock +1892 -725
- package/types/devvit/plugin/redis/redisapi.d.ts +132 -0
- package/types/devvit/plugin/redis/redisapi.d.ts.map +1 -1
- package/types/devvit/plugin/redis/redisapi.js +591 -0
- package/types/devvit/plugin/redis/redisapi.twirp-client.d.ts +4 -1
- package/types/devvit/plugin/redis/redisapi.twirp-client.d.ts.map +1 -1
- package/types/devvit/plugin/redis/redisapi.twirp-client.js +13 -1
- package/types/devvit/plugin/redis/redisapi.twirp.d.ts +4 -2
- package/types/devvit/plugin/redis/redisapi.twirp.d.ts.map +1 -1
- package/types/devvit/plugin/redis/redisapi.twirp.js +67 -1
@@ -77,6 +77,9 @@ service RedisAPI {
|
|
77
77
|
rpc ZRank(ZRankRequest) returns (google.protobuf.Int64Value) {}
|
78
78
|
rpc ZIncrBy(ZIncrByRequest) returns (google.protobuf.DoubleValue) {}
|
79
79
|
rpc ZScan(ZScanRequest) returns (ZScanResponse);
|
80
|
+
|
81
|
+
// Bitfield
|
82
|
+
rpc Bitfield(BitfieldRequest) returns (BitfieldResponse) {}
|
80
83
|
}
|
81
84
|
|
82
85
|
// This key scope determines the key namespacing in Redis storage
|
@@ -346,3 +349,50 @@ message WatchRequest {
|
|
346
349
|
TransactionId transaction_id = 1;
|
347
350
|
repeated string keys = 2;
|
348
351
|
}
|
352
|
+
|
353
|
+
message BitfieldRequest {
|
354
|
+
string key = 1;
|
355
|
+
repeated BitfieldCommand commands = 2;
|
356
|
+
TransactionId transaction_id = 3; // Optional transaction id
|
357
|
+
}
|
358
|
+
|
359
|
+
message BitfieldCommand {
|
360
|
+
oneof command {
|
361
|
+
BitfieldGet get = 1;
|
362
|
+
BitfieldSet set = 2;
|
363
|
+
BitfieldIncrBy incr_by = 3;
|
364
|
+
BitfieldOverflow overflow = 4;
|
365
|
+
}
|
366
|
+
}
|
367
|
+
|
368
|
+
message BitfieldGet {
|
369
|
+
string encoding = 1;
|
370
|
+
string offset = 2;
|
371
|
+
}
|
372
|
+
|
373
|
+
message BitfieldSet {
|
374
|
+
string encoding = 1;
|
375
|
+
string offset = 2;
|
376
|
+
string value = 3;
|
377
|
+
}
|
378
|
+
|
379
|
+
message BitfieldIncrBy {
|
380
|
+
string encoding = 1;
|
381
|
+
string offset = 2;
|
382
|
+
string increment = 3;
|
383
|
+
}
|
384
|
+
|
385
|
+
message BitfieldOverflow {
|
386
|
+
BitfieldOverflowBehavior behavior = 1;
|
387
|
+
}
|
388
|
+
|
389
|
+
enum BitfieldOverflowBehavior {
|
390
|
+
BITFIELD_OVERFLOW_BEHAVIOR_UNSPECIFIED = 0;
|
391
|
+
BITFIELD_OVERFLOW_BEHAVIOR_WRAP = 1;
|
392
|
+
BITFIELD_OVERFLOW_BEHAVIOR_SAT = 2;
|
393
|
+
BITFIELD_OVERFLOW_BEHAVIOR_FAIL = 3;
|
394
|
+
}
|
395
|
+
|
396
|
+
message BitfieldResponse {
|
397
|
+
repeated int64 results = 1;
|
398
|
+
}
|