@sentio/protos 3.0.0-rc.8 → 3.0.0-rc.9
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/lib/processor/protos/processor.d.ts +1 -0
- package/lib/processor/protos/processor.d.ts.map +1 -1
- package/lib/processor/protos/processor.js +15 -1
- package/lib/processor/protos/processor.js.map +1 -1
- package/lib/service/common/protos/common.d.ts +43 -0
- package/lib/service/common/protos/common.d.ts.map +1 -1
- package/lib/service/common/protos/common.js +310 -1
- package/lib/service/common/protos/common.js.map +1 -1
- package/package.json +1 -1
- package/src/processor/protos/processor.ts +17 -1
- package/src/service/common/protos/common.ts +356 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
2
|
import Long from "long";
|
|
3
3
|
import _m0 from "protobufjs/minimal.js";
|
|
4
|
-
import { Struct } from "../../../google/protobuf/struct.js";
|
|
4
|
+
import { ListValue, Struct } from "../../../google/protobuf/struct.js";
|
|
5
5
|
import { Timestamp } from "../../../google/protobuf/timestamp.js";
|
|
6
6
|
import { Money } from "../../../google/type/money.js";
|
|
7
7
|
export var Tier;
|
|
@@ -298,6 +298,43 @@ export function notificationTypeToJSON(object) {
|
|
|
298
298
|
return "UNRECOGNIZED";
|
|
299
299
|
}
|
|
300
300
|
}
|
|
301
|
+
export var ChatType;
|
|
302
|
+
(function (ChatType) {
|
|
303
|
+
ChatType[ChatType["CHAT_TYPE_UNSPECIFIED"] = 0] = "CHAT_TYPE_UNSPECIFIED";
|
|
304
|
+
ChatType[ChatType["CHAT_TYPE_CHAT"] = 1] = "CHAT_TYPE_CHAT";
|
|
305
|
+
ChatType[ChatType["CHAT_TYPE_ACTION"] = 2] = "CHAT_TYPE_ACTION";
|
|
306
|
+
ChatType[ChatType["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
307
|
+
})(ChatType || (ChatType = {}));
|
|
308
|
+
export function chatTypeFromJSON(object) {
|
|
309
|
+
switch (object) {
|
|
310
|
+
case 0:
|
|
311
|
+
case "CHAT_TYPE_UNSPECIFIED":
|
|
312
|
+
return ChatType.CHAT_TYPE_UNSPECIFIED;
|
|
313
|
+
case 1:
|
|
314
|
+
case "CHAT_TYPE_CHAT":
|
|
315
|
+
return ChatType.CHAT_TYPE_CHAT;
|
|
316
|
+
case 2:
|
|
317
|
+
case "CHAT_TYPE_ACTION":
|
|
318
|
+
return ChatType.CHAT_TYPE_ACTION;
|
|
319
|
+
case -1:
|
|
320
|
+
case "UNRECOGNIZED":
|
|
321
|
+
default:
|
|
322
|
+
return ChatType.UNRECOGNIZED;
|
|
323
|
+
}
|
|
324
|
+
}
|
|
325
|
+
export function chatTypeToJSON(object) {
|
|
326
|
+
switch (object) {
|
|
327
|
+
case ChatType.CHAT_TYPE_UNSPECIFIED:
|
|
328
|
+
return "CHAT_TYPE_UNSPECIFIED";
|
|
329
|
+
case ChatType.CHAT_TYPE_CHAT:
|
|
330
|
+
return "CHAT_TYPE_CHAT";
|
|
331
|
+
case ChatType.CHAT_TYPE_ACTION:
|
|
332
|
+
return "CHAT_TYPE_ACTION";
|
|
333
|
+
case ChatType.UNRECOGNIZED:
|
|
334
|
+
default:
|
|
335
|
+
return "UNRECOGNIZED";
|
|
336
|
+
}
|
|
337
|
+
}
|
|
301
338
|
export var UsageTracker_CustomSkus_SkuOp;
|
|
302
339
|
(function (UsageTracker_CustomSkus_SkuOp) {
|
|
303
340
|
UsageTracker_CustomSkus_SkuOp[UsageTracker_CustomSkus_SkuOp["MIN"] = 0] = "MIN";
|
|
@@ -1877,6 +1914,8 @@ function createBaseUser() {
|
|
|
1877
1914
|
accountStatus: 0,
|
|
1878
1915
|
tier: 0,
|
|
1879
1916
|
isOrganization: false,
|
|
1917
|
+
walletAddress: "",
|
|
1918
|
+
identities: [],
|
|
1880
1919
|
};
|
|
1881
1920
|
}
|
|
1882
1921
|
export const User = {
|
|
@@ -1932,6 +1971,12 @@ export const User = {
|
|
|
1932
1971
|
if (message.isOrganization !== false) {
|
|
1933
1972
|
writer.uint32(128).bool(message.isOrganization);
|
|
1934
1973
|
}
|
|
1974
|
+
if (message.walletAddress !== "") {
|
|
1975
|
+
writer.uint32(138).string(message.walletAddress);
|
|
1976
|
+
}
|
|
1977
|
+
for (const v of message.identities) {
|
|
1978
|
+
writer.uint32(146).string(v);
|
|
1979
|
+
}
|
|
1935
1980
|
return writer;
|
|
1936
1981
|
},
|
|
1937
1982
|
decode(input, length) {
|
|
@@ -2031,6 +2076,18 @@ export const User = {
|
|
|
2031
2076
|
}
|
|
2032
2077
|
message.isOrganization = reader.bool();
|
|
2033
2078
|
continue;
|
|
2079
|
+
case 17:
|
|
2080
|
+
if (tag !== 138) {
|
|
2081
|
+
break;
|
|
2082
|
+
}
|
|
2083
|
+
message.walletAddress = reader.string();
|
|
2084
|
+
continue;
|
|
2085
|
+
case 18:
|
|
2086
|
+
if (tag !== 146) {
|
|
2087
|
+
break;
|
|
2088
|
+
}
|
|
2089
|
+
message.identities.push(reader.string());
|
|
2090
|
+
continue;
|
|
2034
2091
|
}
|
|
2035
2092
|
if ((tag & 7) === 4 || tag === 0) {
|
|
2036
2093
|
break;
|
|
@@ -2056,6 +2113,10 @@ export const User = {
|
|
|
2056
2113
|
accountStatus: isSet(object.accountStatus) ? user_AccountStatusFromJSON(object.accountStatus) : 0,
|
|
2057
2114
|
tier: isSet(object.tier) ? tierFromJSON(object.tier) : 0,
|
|
2058
2115
|
isOrganization: isSet(object.isOrganization) ? globalThis.Boolean(object.isOrganization) : false,
|
|
2116
|
+
walletAddress: isSet(object.walletAddress) ? globalThis.String(object.walletAddress) : "",
|
|
2117
|
+
identities: globalThis.Array.isArray(object?.identities)
|
|
2118
|
+
? object.identities.map((e) => globalThis.String(e))
|
|
2119
|
+
: [],
|
|
2059
2120
|
};
|
|
2060
2121
|
},
|
|
2061
2122
|
toJSON(message) {
|
|
@@ -2105,6 +2166,12 @@ export const User = {
|
|
|
2105
2166
|
if (message.isOrganization !== false) {
|
|
2106
2167
|
obj.isOrganization = message.isOrganization;
|
|
2107
2168
|
}
|
|
2169
|
+
if (message.walletAddress !== "") {
|
|
2170
|
+
obj.walletAddress = message.walletAddress;
|
|
2171
|
+
}
|
|
2172
|
+
if (message.identities?.length) {
|
|
2173
|
+
obj.identities = message.identities;
|
|
2174
|
+
}
|
|
2108
2175
|
return obj;
|
|
2109
2176
|
},
|
|
2110
2177
|
create(base) {
|
|
@@ -2127,6 +2194,8 @@ export const User = {
|
|
|
2127
2194
|
message.accountStatus = object.accountStatus ?? 0;
|
|
2128
2195
|
message.tier = object.tier ?? 0;
|
|
2129
2196
|
message.isOrganization = object.isOrganization ?? false;
|
|
2197
|
+
message.walletAddress = object.walletAddress ?? "";
|
|
2198
|
+
message.identities = object.identities?.map((e) => e) || [];
|
|
2130
2199
|
return message;
|
|
2131
2200
|
},
|
|
2132
2201
|
};
|
|
@@ -12662,6 +12731,246 @@ export const RequestLog = {
|
|
|
12662
12731
|
return message;
|
|
12663
12732
|
},
|
|
12664
12733
|
};
|
|
12734
|
+
function createBaseHistoryChat() {
|
|
12735
|
+
return {
|
|
12736
|
+
id: "",
|
|
12737
|
+
title: "",
|
|
12738
|
+
messages: undefined,
|
|
12739
|
+
type: 0,
|
|
12740
|
+
meta: undefined,
|
|
12741
|
+
createdAt: undefined,
|
|
12742
|
+
updatedAt: undefined,
|
|
12743
|
+
projectOwner: undefined,
|
|
12744
|
+
projectSlug: undefined,
|
|
12745
|
+
};
|
|
12746
|
+
}
|
|
12747
|
+
export const HistoryChat = {
|
|
12748
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
12749
|
+
if (message.id !== "") {
|
|
12750
|
+
writer.uint32(10).string(message.id);
|
|
12751
|
+
}
|
|
12752
|
+
if (message.title !== "") {
|
|
12753
|
+
writer.uint32(18).string(message.title);
|
|
12754
|
+
}
|
|
12755
|
+
if (message.messages !== undefined) {
|
|
12756
|
+
ListValue.encode(ListValue.wrap(message.messages), writer.uint32(34).fork()).ldelim();
|
|
12757
|
+
}
|
|
12758
|
+
if (message.type !== 0) {
|
|
12759
|
+
writer.uint32(40).int32(message.type);
|
|
12760
|
+
}
|
|
12761
|
+
if (message.meta !== undefined) {
|
|
12762
|
+
Struct.encode(Struct.wrap(message.meta), writer.uint32(50).fork()).ldelim();
|
|
12763
|
+
}
|
|
12764
|
+
if (message.createdAt !== undefined) {
|
|
12765
|
+
Timestamp.encode(toTimestamp(message.createdAt), writer.uint32(58).fork()).ldelim();
|
|
12766
|
+
}
|
|
12767
|
+
if (message.updatedAt !== undefined) {
|
|
12768
|
+
Timestamp.encode(toTimestamp(message.updatedAt), writer.uint32(66).fork()).ldelim();
|
|
12769
|
+
}
|
|
12770
|
+
if (message.projectOwner !== undefined) {
|
|
12771
|
+
writer.uint32(74).string(message.projectOwner);
|
|
12772
|
+
}
|
|
12773
|
+
if (message.projectSlug !== undefined) {
|
|
12774
|
+
writer.uint32(82).string(message.projectSlug);
|
|
12775
|
+
}
|
|
12776
|
+
return writer;
|
|
12777
|
+
},
|
|
12778
|
+
decode(input, length) {
|
|
12779
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
12780
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
12781
|
+
const message = createBaseHistoryChat();
|
|
12782
|
+
while (reader.pos < end) {
|
|
12783
|
+
const tag = reader.uint32();
|
|
12784
|
+
switch (tag >>> 3) {
|
|
12785
|
+
case 1:
|
|
12786
|
+
if (tag !== 10) {
|
|
12787
|
+
break;
|
|
12788
|
+
}
|
|
12789
|
+
message.id = reader.string();
|
|
12790
|
+
continue;
|
|
12791
|
+
case 2:
|
|
12792
|
+
if (tag !== 18) {
|
|
12793
|
+
break;
|
|
12794
|
+
}
|
|
12795
|
+
message.title = reader.string();
|
|
12796
|
+
continue;
|
|
12797
|
+
case 4:
|
|
12798
|
+
if (tag !== 34) {
|
|
12799
|
+
break;
|
|
12800
|
+
}
|
|
12801
|
+
message.messages = ListValue.unwrap(ListValue.decode(reader, reader.uint32()));
|
|
12802
|
+
continue;
|
|
12803
|
+
case 5:
|
|
12804
|
+
if (tag !== 40) {
|
|
12805
|
+
break;
|
|
12806
|
+
}
|
|
12807
|
+
message.type = reader.int32();
|
|
12808
|
+
continue;
|
|
12809
|
+
case 6:
|
|
12810
|
+
if (tag !== 50) {
|
|
12811
|
+
break;
|
|
12812
|
+
}
|
|
12813
|
+
message.meta = Struct.unwrap(Struct.decode(reader, reader.uint32()));
|
|
12814
|
+
continue;
|
|
12815
|
+
case 7:
|
|
12816
|
+
if (tag !== 58) {
|
|
12817
|
+
break;
|
|
12818
|
+
}
|
|
12819
|
+
message.createdAt = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
12820
|
+
continue;
|
|
12821
|
+
case 8:
|
|
12822
|
+
if (tag !== 66) {
|
|
12823
|
+
break;
|
|
12824
|
+
}
|
|
12825
|
+
message.updatedAt = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
12826
|
+
continue;
|
|
12827
|
+
case 9:
|
|
12828
|
+
if (tag !== 74) {
|
|
12829
|
+
break;
|
|
12830
|
+
}
|
|
12831
|
+
message.projectOwner = reader.string();
|
|
12832
|
+
continue;
|
|
12833
|
+
case 10:
|
|
12834
|
+
if (tag !== 82) {
|
|
12835
|
+
break;
|
|
12836
|
+
}
|
|
12837
|
+
message.projectSlug = reader.string();
|
|
12838
|
+
continue;
|
|
12839
|
+
}
|
|
12840
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
12841
|
+
break;
|
|
12842
|
+
}
|
|
12843
|
+
reader.skipType(tag & 7);
|
|
12844
|
+
}
|
|
12845
|
+
return message;
|
|
12846
|
+
},
|
|
12847
|
+
fromJSON(object) {
|
|
12848
|
+
return {
|
|
12849
|
+
id: isSet(object.id) ? globalThis.String(object.id) : "",
|
|
12850
|
+
title: isSet(object.title) ? globalThis.String(object.title) : "",
|
|
12851
|
+
messages: globalThis.Array.isArray(object.messages) ? [...object.messages] : undefined,
|
|
12852
|
+
type: isSet(object.type) ? chatTypeFromJSON(object.type) : 0,
|
|
12853
|
+
meta: isObject(object.meta) ? object.meta : undefined,
|
|
12854
|
+
createdAt: isSet(object.createdAt) ? fromJsonTimestamp(object.createdAt) : undefined,
|
|
12855
|
+
updatedAt: isSet(object.updatedAt) ? fromJsonTimestamp(object.updatedAt) : undefined,
|
|
12856
|
+
projectOwner: isSet(object.projectOwner) ? globalThis.String(object.projectOwner) : undefined,
|
|
12857
|
+
projectSlug: isSet(object.projectSlug) ? globalThis.String(object.projectSlug) : undefined,
|
|
12858
|
+
};
|
|
12859
|
+
},
|
|
12860
|
+
toJSON(message) {
|
|
12861
|
+
const obj = {};
|
|
12862
|
+
if (message.id !== "") {
|
|
12863
|
+
obj.id = message.id;
|
|
12864
|
+
}
|
|
12865
|
+
if (message.title !== "") {
|
|
12866
|
+
obj.title = message.title;
|
|
12867
|
+
}
|
|
12868
|
+
if (message.messages !== undefined) {
|
|
12869
|
+
obj.messages = message.messages;
|
|
12870
|
+
}
|
|
12871
|
+
if (message.type !== 0) {
|
|
12872
|
+
obj.type = chatTypeToJSON(message.type);
|
|
12873
|
+
}
|
|
12874
|
+
if (message.meta !== undefined) {
|
|
12875
|
+
obj.meta = message.meta;
|
|
12876
|
+
}
|
|
12877
|
+
if (message.createdAt !== undefined) {
|
|
12878
|
+
obj.createdAt = message.createdAt.toISOString();
|
|
12879
|
+
}
|
|
12880
|
+
if (message.updatedAt !== undefined) {
|
|
12881
|
+
obj.updatedAt = message.updatedAt.toISOString();
|
|
12882
|
+
}
|
|
12883
|
+
if (message.projectOwner !== undefined) {
|
|
12884
|
+
obj.projectOwner = message.projectOwner;
|
|
12885
|
+
}
|
|
12886
|
+
if (message.projectSlug !== undefined) {
|
|
12887
|
+
obj.projectSlug = message.projectSlug;
|
|
12888
|
+
}
|
|
12889
|
+
return obj;
|
|
12890
|
+
},
|
|
12891
|
+
create(base) {
|
|
12892
|
+
return HistoryChat.fromPartial(base ?? {});
|
|
12893
|
+
},
|
|
12894
|
+
fromPartial(object) {
|
|
12895
|
+
const message = createBaseHistoryChat();
|
|
12896
|
+
message.id = object.id ?? "";
|
|
12897
|
+
message.title = object.title ?? "";
|
|
12898
|
+
message.messages = object.messages ?? undefined;
|
|
12899
|
+
message.type = object.type ?? 0;
|
|
12900
|
+
message.meta = object.meta ?? undefined;
|
|
12901
|
+
message.createdAt = object.createdAt ?? undefined;
|
|
12902
|
+
message.updatedAt = object.updatedAt ?? undefined;
|
|
12903
|
+
message.projectOwner = object.projectOwner ?? undefined;
|
|
12904
|
+
message.projectSlug = object.projectSlug ?? undefined;
|
|
12905
|
+
return message;
|
|
12906
|
+
},
|
|
12907
|
+
};
|
|
12908
|
+
function createBaseProjectOwnerAndSlug() {
|
|
12909
|
+
return { ownerName: "", slug: "" };
|
|
12910
|
+
}
|
|
12911
|
+
export const ProjectOwnerAndSlug = {
|
|
12912
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
12913
|
+
if (message.ownerName !== "") {
|
|
12914
|
+
writer.uint32(10).string(message.ownerName);
|
|
12915
|
+
}
|
|
12916
|
+
if (message.slug !== "") {
|
|
12917
|
+
writer.uint32(18).string(message.slug);
|
|
12918
|
+
}
|
|
12919
|
+
return writer;
|
|
12920
|
+
},
|
|
12921
|
+
decode(input, length) {
|
|
12922
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
12923
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
12924
|
+
const message = createBaseProjectOwnerAndSlug();
|
|
12925
|
+
while (reader.pos < end) {
|
|
12926
|
+
const tag = reader.uint32();
|
|
12927
|
+
switch (tag >>> 3) {
|
|
12928
|
+
case 1:
|
|
12929
|
+
if (tag !== 10) {
|
|
12930
|
+
break;
|
|
12931
|
+
}
|
|
12932
|
+
message.ownerName = reader.string();
|
|
12933
|
+
continue;
|
|
12934
|
+
case 2:
|
|
12935
|
+
if (tag !== 18) {
|
|
12936
|
+
break;
|
|
12937
|
+
}
|
|
12938
|
+
message.slug = reader.string();
|
|
12939
|
+
continue;
|
|
12940
|
+
}
|
|
12941
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
12942
|
+
break;
|
|
12943
|
+
}
|
|
12944
|
+
reader.skipType(tag & 7);
|
|
12945
|
+
}
|
|
12946
|
+
return message;
|
|
12947
|
+
},
|
|
12948
|
+
fromJSON(object) {
|
|
12949
|
+
return {
|
|
12950
|
+
ownerName: isSet(object.ownerName) ? globalThis.String(object.ownerName) : "",
|
|
12951
|
+
slug: isSet(object.slug) ? globalThis.String(object.slug) : "",
|
|
12952
|
+
};
|
|
12953
|
+
},
|
|
12954
|
+
toJSON(message) {
|
|
12955
|
+
const obj = {};
|
|
12956
|
+
if (message.ownerName !== "") {
|
|
12957
|
+
obj.ownerName = message.ownerName;
|
|
12958
|
+
}
|
|
12959
|
+
if (message.slug !== "") {
|
|
12960
|
+
obj.slug = message.slug;
|
|
12961
|
+
}
|
|
12962
|
+
return obj;
|
|
12963
|
+
},
|
|
12964
|
+
create(base) {
|
|
12965
|
+
return ProjectOwnerAndSlug.fromPartial(base ?? {});
|
|
12966
|
+
},
|
|
12967
|
+
fromPartial(object) {
|
|
12968
|
+
const message = createBaseProjectOwnerAndSlug();
|
|
12969
|
+
message.ownerName = object.ownerName ?? "";
|
|
12970
|
+
message.slug = object.slug ?? "";
|
|
12971
|
+
return message;
|
|
12972
|
+
},
|
|
12973
|
+
};
|
|
12665
12974
|
function bytesFromBase64(b64) {
|
|
12666
12975
|
if (globalThis.Buffer) {
|
|
12667
12976
|
return Uint8Array.from(globalThis.Buffer.from(b64, "base64"));
|