jr-common-micro 1.1.93 → 1.1.95
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/dist/proto/micro/v1/chat/chat_messages_nest.d.ts +4 -0
- package/dist/proto/micro/v1/chat/chat_messages_pb.d.ts +4 -0
- package/dist/proto/micro/v1/chat/chat_messages_pb.js +8 -0
- package/dist/proto/micro/v1/index.d.ts +1 -0
- package/dist/proto/micro/v1/index.js +2 -1
- package/dist/proto/micro/v1/subscription/index.d.ts +3 -0
- package/dist/proto/micro/v1/subscription/index.js +7 -0
- package/dist/proto/micro/v1/subscription/services_connect.d.ts +56 -0
- package/dist/proto/micro/v1/subscription/services_connect.js +59 -0
- package/dist/proto/micro/v1/subscription/services_nest.d.ts +28 -0
- package/dist/proto/micro/v1/subscription/services_nest.js +31 -0
- package/dist/proto/micro/v1/subscription/subscription_messages_nest.d.ts +75 -0
- package/dist/proto/micro/v1/subscription/subscription_messages_nest.js +5 -0
- package/dist/proto/micro/v1/subscription/subscription_messages_pb.d.ts +163 -0
- package/dist/proto/micro/v1/subscription/subscription_messages_pb.js +358 -0
- package/dist/proto/micro/v1/user/services_connect.d.ts +7 -1
- package/dist/proto/micro/v1/user/services_connect.js +6 -0
- package/dist/proto/micro/v1/user/services_nest.d.ts +3 -1
- package/dist/proto/micro/v1/user/services_nest.js +1 -0
- package/dist/proto/micro/v1/user/user_messages_nest.d.ts +6 -0
- package/dist/proto/micro/v1/user/user_messages_pb.d.ts +14 -0
- package/dist/proto/micro/v1/user/user_messages_pb.js +32 -1
- package/dist/utils/constants.d.ts +1 -0
- package/dist/utils/constants.js +2 -1
- package/dist/utils/entitlements.d.ts +16 -0
- package/dist/utils/entitlements.js +41 -0
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.js +2 -1
- package/package.json +1 -1
- package/proto/micro/v1/chat/chat_messages.proto +10 -0
- package/proto/micro/v1/subscription/services.proto +28 -0
- package/proto/micro/v1/subscription/subscription_messages.proto +112 -0
- package/proto/micro/v1/user/services.proto +2 -0
- package/proto/micro/v1/user/user_messages.proto +11 -0
|
@@ -0,0 +1,358 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SubscriptionRevokeRequest = exports.SubscriptionGrantRequest = exports.SubscriptionAdminResponse = exports.SubscriptionEventInfo = exports.SubscriptionWebhookRequest = exports.EntitlementsListResponse = exports.UserEntitlements = exports.EntitlementsByIdsRequest = exports.SubscriptionMeResponse = exports.EntitlementInfo = exports.SubscriptionInfo = void 0;
|
|
4
|
+
const protobuf_1 = require("@bufbuild/protobuf");
|
|
5
|
+
const general_pb_js_1 = require("../general_pb.js");
|
|
6
|
+
class SubscriptionInfo extends protobuf_1.Message {
|
|
7
|
+
plan = "";
|
|
8
|
+
status = "";
|
|
9
|
+
productId = "";
|
|
10
|
+
store = "";
|
|
11
|
+
environment = "";
|
|
12
|
+
periodType = "";
|
|
13
|
+
purchasedAt = "";
|
|
14
|
+
originalPurchaseAt = "";
|
|
15
|
+
expiresAt = "";
|
|
16
|
+
graceUntil = "";
|
|
17
|
+
accessUntil = "";
|
|
18
|
+
autoRenew = false;
|
|
19
|
+
ownershipType = "";
|
|
20
|
+
autoResumeAt = "";
|
|
21
|
+
managementUrl = "";
|
|
22
|
+
constructor(data) {
|
|
23
|
+
super();
|
|
24
|
+
protobuf_1.proto3.util.initPartial(data, this);
|
|
25
|
+
}
|
|
26
|
+
static runtime = protobuf_1.proto3;
|
|
27
|
+
static typeName = "micro.v1.subscription.SubscriptionInfo";
|
|
28
|
+
static fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
29
|
+
{ no: 1, name: "plan", kind: "scalar", T: 9 },
|
|
30
|
+
{ no: 2, name: "status", kind: "scalar", T: 9 },
|
|
31
|
+
{ no: 3, name: "product_id", kind: "scalar", T: 9 },
|
|
32
|
+
{ no: 4, name: "store", kind: "scalar", T: 9 },
|
|
33
|
+
{ no: 5, name: "environment", kind: "scalar", T: 9 },
|
|
34
|
+
{ no: 6, name: "period_type", kind: "scalar", T: 9 },
|
|
35
|
+
{ no: 7, name: "purchased_at", kind: "scalar", T: 9 },
|
|
36
|
+
{ no: 8, name: "original_purchase_at", kind: "scalar", T: 9 },
|
|
37
|
+
{ no: 9, name: "expires_at", kind: "scalar", T: 9 },
|
|
38
|
+
{ no: 10, name: "grace_until", kind: "scalar", T: 9 },
|
|
39
|
+
{ no: 11, name: "access_until", kind: "scalar", T: 9 },
|
|
40
|
+
{ no: 12, name: "auto_renew", kind: "scalar", T: 8 },
|
|
41
|
+
{ no: 13, name: "ownership_type", kind: "scalar", T: 9 },
|
|
42
|
+
{ no: 14, name: "auto_resume_at", kind: "scalar", T: 9 },
|
|
43
|
+
{ no: 15, name: "management_url", kind: "scalar", T: 9 },
|
|
44
|
+
]);
|
|
45
|
+
static fromBinary(bytes, options) {
|
|
46
|
+
return new SubscriptionInfo().fromBinary(bytes, options);
|
|
47
|
+
}
|
|
48
|
+
static fromJson(jsonValue, options) {
|
|
49
|
+
return new SubscriptionInfo().fromJson(jsonValue, options);
|
|
50
|
+
}
|
|
51
|
+
static fromJsonString(jsonString, options) {
|
|
52
|
+
return new SubscriptionInfo().fromJsonString(jsonString, options);
|
|
53
|
+
}
|
|
54
|
+
static equals(a, b) {
|
|
55
|
+
return protobuf_1.proto3.util.equals(SubscriptionInfo, a, b);
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
exports.SubscriptionInfo = SubscriptionInfo;
|
|
59
|
+
class EntitlementInfo extends protobuf_1.Message {
|
|
60
|
+
key = "";
|
|
61
|
+
expiresAt = "";
|
|
62
|
+
plan = "";
|
|
63
|
+
source = "";
|
|
64
|
+
constructor(data) {
|
|
65
|
+
super();
|
|
66
|
+
protobuf_1.proto3.util.initPartial(data, this);
|
|
67
|
+
}
|
|
68
|
+
static runtime = protobuf_1.proto3;
|
|
69
|
+
static typeName = "micro.v1.subscription.EntitlementInfo";
|
|
70
|
+
static fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
71
|
+
{ no: 1, name: "key", kind: "scalar", T: 9 },
|
|
72
|
+
{ no: 2, name: "expires_at", kind: "scalar", T: 9 },
|
|
73
|
+
{ no: 3, name: "plan", kind: "scalar", T: 9 },
|
|
74
|
+
{ no: 4, name: "source", kind: "scalar", T: 9 },
|
|
75
|
+
]);
|
|
76
|
+
static fromBinary(bytes, options) {
|
|
77
|
+
return new EntitlementInfo().fromBinary(bytes, options);
|
|
78
|
+
}
|
|
79
|
+
static fromJson(jsonValue, options) {
|
|
80
|
+
return new EntitlementInfo().fromJson(jsonValue, options);
|
|
81
|
+
}
|
|
82
|
+
static fromJsonString(jsonString, options) {
|
|
83
|
+
return new EntitlementInfo().fromJsonString(jsonString, options);
|
|
84
|
+
}
|
|
85
|
+
static equals(a, b) {
|
|
86
|
+
return protobuf_1.proto3.util.equals(EntitlementInfo, a, b);
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
exports.EntitlementInfo = EntitlementInfo;
|
|
90
|
+
class SubscriptionMeResponse extends protobuf_1.Message {
|
|
91
|
+
status;
|
|
92
|
+
subscription;
|
|
93
|
+
entitlements = [];
|
|
94
|
+
syncedAt = "";
|
|
95
|
+
constructor(data) {
|
|
96
|
+
super();
|
|
97
|
+
protobuf_1.proto3.util.initPartial(data, this);
|
|
98
|
+
}
|
|
99
|
+
static runtime = protobuf_1.proto3;
|
|
100
|
+
static typeName = "micro.v1.subscription.SubscriptionMeResponse";
|
|
101
|
+
static fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
102
|
+
{ no: 1, name: "status", kind: "message", T: general_pb_js_1.ResponseStatus },
|
|
103
|
+
{ no: 2, name: "subscription", kind: "message", T: SubscriptionInfo, opt: true },
|
|
104
|
+
{ no: 3, name: "entitlements", kind: "message", T: EntitlementInfo, repeated: true },
|
|
105
|
+
{ no: 4, name: "synced_at", kind: "scalar", T: 9 },
|
|
106
|
+
]);
|
|
107
|
+
static fromBinary(bytes, options) {
|
|
108
|
+
return new SubscriptionMeResponse().fromBinary(bytes, options);
|
|
109
|
+
}
|
|
110
|
+
static fromJson(jsonValue, options) {
|
|
111
|
+
return new SubscriptionMeResponse().fromJson(jsonValue, options);
|
|
112
|
+
}
|
|
113
|
+
static fromJsonString(jsonString, options) {
|
|
114
|
+
return new SubscriptionMeResponse().fromJsonString(jsonString, options);
|
|
115
|
+
}
|
|
116
|
+
static equals(a, b) {
|
|
117
|
+
return protobuf_1.proto3.util.equals(SubscriptionMeResponse, a, b);
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
exports.SubscriptionMeResponse = SubscriptionMeResponse;
|
|
121
|
+
class EntitlementsByIdsRequest extends protobuf_1.Message {
|
|
122
|
+
userIds = [];
|
|
123
|
+
constructor(data) {
|
|
124
|
+
super();
|
|
125
|
+
protobuf_1.proto3.util.initPartial(data, this);
|
|
126
|
+
}
|
|
127
|
+
static runtime = protobuf_1.proto3;
|
|
128
|
+
static typeName = "micro.v1.subscription.EntitlementsByIdsRequest";
|
|
129
|
+
static fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
130
|
+
{ no: 1, name: "user_ids", kind: "scalar", T: 9, repeated: true },
|
|
131
|
+
]);
|
|
132
|
+
static fromBinary(bytes, options) {
|
|
133
|
+
return new EntitlementsByIdsRequest().fromBinary(bytes, options);
|
|
134
|
+
}
|
|
135
|
+
static fromJson(jsonValue, options) {
|
|
136
|
+
return new EntitlementsByIdsRequest().fromJson(jsonValue, options);
|
|
137
|
+
}
|
|
138
|
+
static fromJsonString(jsonString, options) {
|
|
139
|
+
return new EntitlementsByIdsRequest().fromJsonString(jsonString, options);
|
|
140
|
+
}
|
|
141
|
+
static equals(a, b) {
|
|
142
|
+
return protobuf_1.proto3.util.equals(EntitlementsByIdsRequest, a, b);
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
exports.EntitlementsByIdsRequest = EntitlementsByIdsRequest;
|
|
146
|
+
class UserEntitlements extends protobuf_1.Message {
|
|
147
|
+
userId = "";
|
|
148
|
+
entitlements = [];
|
|
149
|
+
constructor(data) {
|
|
150
|
+
super();
|
|
151
|
+
protobuf_1.proto3.util.initPartial(data, this);
|
|
152
|
+
}
|
|
153
|
+
static runtime = protobuf_1.proto3;
|
|
154
|
+
static typeName = "micro.v1.subscription.UserEntitlements";
|
|
155
|
+
static fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
156
|
+
{ no: 1, name: "user_id", kind: "scalar", T: 9 },
|
|
157
|
+
{ no: 2, name: "entitlements", kind: "message", T: EntitlementInfo, repeated: true },
|
|
158
|
+
]);
|
|
159
|
+
static fromBinary(bytes, options) {
|
|
160
|
+
return new UserEntitlements().fromBinary(bytes, options);
|
|
161
|
+
}
|
|
162
|
+
static fromJson(jsonValue, options) {
|
|
163
|
+
return new UserEntitlements().fromJson(jsonValue, options);
|
|
164
|
+
}
|
|
165
|
+
static fromJsonString(jsonString, options) {
|
|
166
|
+
return new UserEntitlements().fromJsonString(jsonString, options);
|
|
167
|
+
}
|
|
168
|
+
static equals(a, b) {
|
|
169
|
+
return protobuf_1.proto3.util.equals(UserEntitlements, a, b);
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
exports.UserEntitlements = UserEntitlements;
|
|
173
|
+
class EntitlementsListResponse extends protobuf_1.Message {
|
|
174
|
+
status;
|
|
175
|
+
data = [];
|
|
176
|
+
constructor(data) {
|
|
177
|
+
super();
|
|
178
|
+
protobuf_1.proto3.util.initPartial(data, this);
|
|
179
|
+
}
|
|
180
|
+
static runtime = protobuf_1.proto3;
|
|
181
|
+
static typeName = "micro.v1.subscription.EntitlementsListResponse";
|
|
182
|
+
static fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
183
|
+
{ no: 1, name: "status", kind: "message", T: general_pb_js_1.ResponseStatus },
|
|
184
|
+
{ no: 2, name: "data", kind: "message", T: UserEntitlements, repeated: true },
|
|
185
|
+
]);
|
|
186
|
+
static fromBinary(bytes, options) {
|
|
187
|
+
return new EntitlementsListResponse().fromBinary(bytes, options);
|
|
188
|
+
}
|
|
189
|
+
static fromJson(jsonValue, options) {
|
|
190
|
+
return new EntitlementsListResponse().fromJson(jsonValue, options);
|
|
191
|
+
}
|
|
192
|
+
static fromJsonString(jsonString, options) {
|
|
193
|
+
return new EntitlementsListResponse().fromJsonString(jsonString, options);
|
|
194
|
+
}
|
|
195
|
+
static equals(a, b) {
|
|
196
|
+
return protobuf_1.proto3.util.equals(EntitlementsListResponse, a, b);
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
exports.EntitlementsListResponse = EntitlementsListResponse;
|
|
200
|
+
class SubscriptionWebhookRequest extends protobuf_1.Message {
|
|
201
|
+
authorization = "";
|
|
202
|
+
signature = "";
|
|
203
|
+
rawBody = "";
|
|
204
|
+
constructor(data) {
|
|
205
|
+
super();
|
|
206
|
+
protobuf_1.proto3.util.initPartial(data, this);
|
|
207
|
+
}
|
|
208
|
+
static runtime = protobuf_1.proto3;
|
|
209
|
+
static typeName = "micro.v1.subscription.SubscriptionWebhookRequest";
|
|
210
|
+
static fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
211
|
+
{ no: 1, name: "authorization", kind: "scalar", T: 9 },
|
|
212
|
+
{ no: 2, name: "signature", kind: "scalar", T: 9 },
|
|
213
|
+
{ no: 3, name: "raw_body", kind: "scalar", T: 9 },
|
|
214
|
+
]);
|
|
215
|
+
static fromBinary(bytes, options) {
|
|
216
|
+
return new SubscriptionWebhookRequest().fromBinary(bytes, options);
|
|
217
|
+
}
|
|
218
|
+
static fromJson(jsonValue, options) {
|
|
219
|
+
return new SubscriptionWebhookRequest().fromJson(jsonValue, options);
|
|
220
|
+
}
|
|
221
|
+
static fromJsonString(jsonString, options) {
|
|
222
|
+
return new SubscriptionWebhookRequest().fromJsonString(jsonString, options);
|
|
223
|
+
}
|
|
224
|
+
static equals(a, b) {
|
|
225
|
+
return protobuf_1.proto3.util.equals(SubscriptionWebhookRequest, a, b);
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
exports.SubscriptionWebhookRequest = SubscriptionWebhookRequest;
|
|
229
|
+
class SubscriptionEventInfo extends protobuf_1.Message {
|
|
230
|
+
id = "";
|
|
231
|
+
type = "";
|
|
232
|
+
store = "";
|
|
233
|
+
productId = "";
|
|
234
|
+
environment = "";
|
|
235
|
+
receivedAt = "";
|
|
236
|
+
processedAt = "";
|
|
237
|
+
error = "";
|
|
238
|
+
constructor(data) {
|
|
239
|
+
super();
|
|
240
|
+
protobuf_1.proto3.util.initPartial(data, this);
|
|
241
|
+
}
|
|
242
|
+
static runtime = protobuf_1.proto3;
|
|
243
|
+
static typeName = "micro.v1.subscription.SubscriptionEventInfo";
|
|
244
|
+
static fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
245
|
+
{ no: 1, name: "id", kind: "scalar", T: 9 },
|
|
246
|
+
{ no: 2, name: "type", kind: "scalar", T: 9 },
|
|
247
|
+
{ no: 3, name: "store", kind: "scalar", T: 9 },
|
|
248
|
+
{ no: 4, name: "product_id", kind: "scalar", T: 9 },
|
|
249
|
+
{ no: 5, name: "environment", kind: "scalar", T: 9 },
|
|
250
|
+
{ no: 6, name: "received_at", kind: "scalar", T: 9 },
|
|
251
|
+
{ no: 7, name: "processed_at", kind: "scalar", T: 9 },
|
|
252
|
+
{ no: 8, name: "error", kind: "scalar", T: 9 },
|
|
253
|
+
]);
|
|
254
|
+
static fromBinary(bytes, options) {
|
|
255
|
+
return new SubscriptionEventInfo().fromBinary(bytes, options);
|
|
256
|
+
}
|
|
257
|
+
static fromJson(jsonValue, options) {
|
|
258
|
+
return new SubscriptionEventInfo().fromJson(jsonValue, options);
|
|
259
|
+
}
|
|
260
|
+
static fromJsonString(jsonString, options) {
|
|
261
|
+
return new SubscriptionEventInfo().fromJsonString(jsonString, options);
|
|
262
|
+
}
|
|
263
|
+
static equals(a, b) {
|
|
264
|
+
return protobuf_1.proto3.util.equals(SubscriptionEventInfo, a, b);
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
exports.SubscriptionEventInfo = SubscriptionEventInfo;
|
|
268
|
+
class SubscriptionAdminResponse extends protobuf_1.Message {
|
|
269
|
+
status;
|
|
270
|
+
subscriptions = [];
|
|
271
|
+
entitlements = [];
|
|
272
|
+
events = [];
|
|
273
|
+
syncedAt = "";
|
|
274
|
+
constructor(data) {
|
|
275
|
+
super();
|
|
276
|
+
protobuf_1.proto3.util.initPartial(data, this);
|
|
277
|
+
}
|
|
278
|
+
static runtime = protobuf_1.proto3;
|
|
279
|
+
static typeName = "micro.v1.subscription.SubscriptionAdminResponse";
|
|
280
|
+
static fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
281
|
+
{ no: 1, name: "status", kind: "message", T: general_pb_js_1.ResponseStatus },
|
|
282
|
+
{ no: 2, name: "subscriptions", kind: "message", T: SubscriptionInfo, repeated: true },
|
|
283
|
+
{ no: 3, name: "entitlements", kind: "message", T: EntitlementInfo, repeated: true },
|
|
284
|
+
{ no: 4, name: "events", kind: "message", T: SubscriptionEventInfo, repeated: true },
|
|
285
|
+
{ no: 5, name: "synced_at", kind: "scalar", T: 9 },
|
|
286
|
+
]);
|
|
287
|
+
static fromBinary(bytes, options) {
|
|
288
|
+
return new SubscriptionAdminResponse().fromBinary(bytes, options);
|
|
289
|
+
}
|
|
290
|
+
static fromJson(jsonValue, options) {
|
|
291
|
+
return new SubscriptionAdminResponse().fromJson(jsonValue, options);
|
|
292
|
+
}
|
|
293
|
+
static fromJsonString(jsonString, options) {
|
|
294
|
+
return new SubscriptionAdminResponse().fromJsonString(jsonString, options);
|
|
295
|
+
}
|
|
296
|
+
static equals(a, b) {
|
|
297
|
+
return protobuf_1.proto3.util.equals(SubscriptionAdminResponse, a, b);
|
|
298
|
+
}
|
|
299
|
+
}
|
|
300
|
+
exports.SubscriptionAdminResponse = SubscriptionAdminResponse;
|
|
301
|
+
class SubscriptionGrantRequest extends protobuf_1.Message {
|
|
302
|
+
userId = "";
|
|
303
|
+
plan = "";
|
|
304
|
+
duration = "";
|
|
305
|
+
note = "";
|
|
306
|
+
constructor(data) {
|
|
307
|
+
super();
|
|
308
|
+
protobuf_1.proto3.util.initPartial(data, this);
|
|
309
|
+
}
|
|
310
|
+
static runtime = protobuf_1.proto3;
|
|
311
|
+
static typeName = "micro.v1.subscription.SubscriptionGrantRequest";
|
|
312
|
+
static fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
313
|
+
{ no: 1, name: "user_id", kind: "scalar", T: 9 },
|
|
314
|
+
{ no: 2, name: "plan", kind: "scalar", T: 9 },
|
|
315
|
+
{ no: 3, name: "duration", kind: "scalar", T: 9 },
|
|
316
|
+
{ no: 4, name: "note", kind: "scalar", T: 9 },
|
|
317
|
+
]);
|
|
318
|
+
static fromBinary(bytes, options) {
|
|
319
|
+
return new SubscriptionGrantRequest().fromBinary(bytes, options);
|
|
320
|
+
}
|
|
321
|
+
static fromJson(jsonValue, options) {
|
|
322
|
+
return new SubscriptionGrantRequest().fromJson(jsonValue, options);
|
|
323
|
+
}
|
|
324
|
+
static fromJsonString(jsonString, options) {
|
|
325
|
+
return new SubscriptionGrantRequest().fromJsonString(jsonString, options);
|
|
326
|
+
}
|
|
327
|
+
static equals(a, b) {
|
|
328
|
+
return protobuf_1.proto3.util.equals(SubscriptionGrantRequest, a, b);
|
|
329
|
+
}
|
|
330
|
+
}
|
|
331
|
+
exports.SubscriptionGrantRequest = SubscriptionGrantRequest;
|
|
332
|
+
class SubscriptionRevokeRequest extends protobuf_1.Message {
|
|
333
|
+
userId = "";
|
|
334
|
+
plan = "";
|
|
335
|
+
constructor(data) {
|
|
336
|
+
super();
|
|
337
|
+
protobuf_1.proto3.util.initPartial(data, this);
|
|
338
|
+
}
|
|
339
|
+
static runtime = protobuf_1.proto3;
|
|
340
|
+
static typeName = "micro.v1.subscription.SubscriptionRevokeRequest";
|
|
341
|
+
static fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
342
|
+
{ no: 1, name: "user_id", kind: "scalar", T: 9 },
|
|
343
|
+
{ no: 2, name: "plan", kind: "scalar", T: 9 },
|
|
344
|
+
]);
|
|
345
|
+
static fromBinary(bytes, options) {
|
|
346
|
+
return new SubscriptionRevokeRequest().fromBinary(bytes, options);
|
|
347
|
+
}
|
|
348
|
+
static fromJson(jsonValue, options) {
|
|
349
|
+
return new SubscriptionRevokeRequest().fromJson(jsonValue, options);
|
|
350
|
+
}
|
|
351
|
+
static fromJsonString(jsonString, options) {
|
|
352
|
+
return new SubscriptionRevokeRequest().fromJsonString(jsonString, options);
|
|
353
|
+
}
|
|
354
|
+
static equals(a, b) {
|
|
355
|
+
return protobuf_1.proto3.util.equals(SubscriptionRevokeRequest, a, b);
|
|
356
|
+
}
|
|
357
|
+
}
|
|
358
|
+
exports.SubscriptionRevokeRequest = SubscriptionRevokeRequest;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AppleRequest, GoogleRequest, LoginRequest, LoginResponse, LostPasswordChangePasswordRequest, LostPasswordChangePasswordResponse, LostPasswordHashCheckRequest, LostPasswordHashCheckResponse, LostPasswordStartRequest, LostPasswordStartResponse, RegisterRequest, RegisterResponse, RemoveUserDataRequest, ResendVerificationEmailRequest, ResendVerificationEmailResponse, TfaRequest, TfaResponse, UserVerificationRequest, UserVerificationResponse, VerifyTokenRequest, VerifyTokenResponse } from "./auth_messages_pb.js";
|
|
2
2
|
import { MethodKind } from "@bufbuild/protobuf";
|
|
3
3
|
import { ByIdRequest, EmptyRequest, EmptyResponse, PaginateFromRequest, PaginateRequest } from "../general_pb.js";
|
|
4
|
-
import { BetaCodePaginateResponse, BetaCodeSingleResponse, BetaCodeStoreRequest, BetaCodeUpdateRequest, ContactPaginationResponse, ContactRequest, ContactResponse, PreviewResponse, PublicUserPreviewResponse, UpdatePasswordRequest, UserAdminStoreRequest, UserBadgeSetRequest, UserBadgesResponse, UserPaginationResponse, UserSingleResponse, UserUpdateRequest } from "./user_messages_pb.js";
|
|
4
|
+
import { BetaCodePaginateResponse, BetaCodeSingleResponse, BetaCodeStoreRequest, BetaCodeUpdateRequest, ContactPaginationResponse, ContactRequest, ContactResponse, PreviewResponse, PublicUserPreviewResponse, SubscriptionBadgeRequest, UpdatePasswordRequest, UserAdminStoreRequest, UserBadgeSetRequest, UserBadgesResponse, UserPaginationResponse, UserSingleResponse, UserUpdateRequest } from "./user_messages_pb.js";
|
|
5
5
|
import { SiteSettingsRequest, SiteSettingsResponse } from "./site_settings_messages_pb.js";
|
|
6
6
|
import { AvatarPhotoResponse, AvatarPhotoSetRequest, ClaimUsernameRequest, FollowRequest, LikeRequest, ProfileByUsernameRequest, ProfileIdListResponse, ProfileListResponse, ProfilesByIdsRequest, ProfileSingleResponse, ProfileUpdateRequest, SearchProfilesRequest, UsernameAvailableRequest, UsernameAvailableResponse } from "./profile_messages_pb.js";
|
|
7
7
|
import { RoleAdminStoreRequest, RoleAdminUpdateRequest, RolePaginationResponse, RoleSingleResponse } from "./authorization_messages_pb.js";
|
|
@@ -289,6 +289,12 @@ export declare const PProfileService: {
|
|
|
289
289
|
readonly O: typeof ProfileListResponse;
|
|
290
290
|
readonly kind: MethodKind.ServerStreaming;
|
|
291
291
|
};
|
|
292
|
+
readonly setSubscriptionBadge: {
|
|
293
|
+
readonly name: "SetSubscriptionBadge";
|
|
294
|
+
readonly I: typeof SubscriptionBadgeRequest;
|
|
295
|
+
readonly O: typeof UserBadgesResponse;
|
|
296
|
+
readonly kind: MethodKind.ServerStreaming;
|
|
297
|
+
};
|
|
292
298
|
};
|
|
293
299
|
};
|
|
294
300
|
export declare const PUserAdminService: {
|
|
@@ -292,6 +292,12 @@ exports.PProfileService = {
|
|
|
292
292
|
O: profile_messages_pb_js_1.ProfileListResponse,
|
|
293
293
|
kind: protobuf_1.MethodKind.ServerStreaming,
|
|
294
294
|
},
|
|
295
|
+
setSubscriptionBadge: {
|
|
296
|
+
name: "SetSubscriptionBadge",
|
|
297
|
+
I: user_messages_pb_js_1.SubscriptionBadgeRequest,
|
|
298
|
+
O: user_messages_pb_js_1.UserBadgesResponse,
|
|
299
|
+
kind: protobuf_1.MethodKind.ServerStreaming,
|
|
300
|
+
},
|
|
295
301
|
}
|
|
296
302
|
};
|
|
297
303
|
exports.PUserAdminService = {
|
|
@@ -5,7 +5,7 @@ import { AppleRequest, GoogleRequest, LoginRequest, LoginResponse, LostPasswordC
|
|
|
5
5
|
import { RoleAdminStoreRequest, RoleAdminUpdateRequest, RolePaginationResponse, RoleSingleResponse } from "./authorization_messages_nest";
|
|
6
6
|
import { AvatarPhotoResponse, AvatarPhotoSetRequest, ClaimUsernameRequest, FollowRequest, LikeRequest, ProfileByUsernameRequest, ProfileIdListResponse, ProfileListResponse, ProfilesByIdsRequest, ProfileSingleResponse, ProfileUpdateRequest, SearchProfilesRequest, UsernameAvailableRequest, UsernameAvailableResponse } from "./profile_messages_nest";
|
|
7
7
|
import { SiteSettingsRequest, SiteSettingsResponse } from "./site_settings_messages_nest";
|
|
8
|
-
import { BetaCodePaginateResponse, BetaCodeSingleResponse, BetaCodeStoreRequest, BetaCodeUpdateRequest, ContactPaginationResponse, ContactRequest, ContactResponse, PreviewResponse, PublicUserPreviewResponse, UpdatePasswordRequest, UserAdminStoreRequest, UserBadgeSetRequest, UserBadgesResponse, UserPaginationResponse, UserSingleResponse, UserUpdateRequest } from "./user_messages_nest";
|
|
8
|
+
import { BetaCodePaginateResponse, BetaCodeSingleResponse, BetaCodeStoreRequest, BetaCodeUpdateRequest, ContactPaginationResponse, ContactRequest, ContactResponse, PreviewResponse, PublicUserPreviewResponse, SubscriptionBadgeRequest, UpdatePasswordRequest, UserAdminStoreRequest, UserBadgeSetRequest, UserBadgesResponse, UserPaginationResponse, UserSingleResponse, UserUpdateRequest } from "./user_messages_nest";
|
|
9
9
|
export declare const protobufPackage = "micro.v1.user";
|
|
10
10
|
export declare const MICRO_V1_USER_PACKAGE_NAME = "micro.v1.user";
|
|
11
11
|
export interface PAuthServiceClient {
|
|
@@ -117,6 +117,7 @@ export interface PProfileServiceClient {
|
|
|
117
117
|
followers(request: PaginateRequest, metadata?: Metadata): Observable<ProfileListResponse>;
|
|
118
118
|
profilesByIds(request: ProfilesByIdsRequest, metadata?: Metadata): Observable<ProfileListResponse>;
|
|
119
119
|
following(request: PaginateRequest, metadata?: Metadata): Observable<ProfileListResponse>;
|
|
120
|
+
setSubscriptionBadge(request: SubscriptionBadgeRequest, metadata?: Metadata): Observable<UserBadgesResponse>;
|
|
120
121
|
}
|
|
121
122
|
export interface PProfileServiceController {
|
|
122
123
|
usernameAvailable(request: UsernameAvailableRequest, metadata?: Metadata): Observable<UsernameAvailableResponse>;
|
|
@@ -135,6 +136,7 @@ export interface PProfileServiceController {
|
|
|
135
136
|
followers(request: PaginateRequest, metadata?: Metadata): Observable<ProfileListResponse>;
|
|
136
137
|
profilesByIds(request: ProfilesByIdsRequest, metadata?: Metadata): Observable<ProfileListResponse>;
|
|
137
138
|
following(request: PaginateRequest, metadata?: Metadata): Observable<ProfileListResponse>;
|
|
139
|
+
setSubscriptionBadge(request: SubscriptionBadgeRequest, metadata?: Metadata): Observable<UserBadgesResponse>;
|
|
138
140
|
}
|
|
139
141
|
export declare function PProfileServiceControllerMethods(): (constructor: Function) => void;
|
|
140
142
|
export declare const P_PROFILE_SERVICE_NAME = "PProfileService";
|
|
@@ -151,6 +151,7 @@ function PProfileServiceControllerMethods() {
|
|
|
151
151
|
"followers",
|
|
152
152
|
"profilesByIds",
|
|
153
153
|
"following",
|
|
154
|
+
"setSubscriptionBadge",
|
|
154
155
|
];
|
|
155
156
|
for (const method of grpcMethods) {
|
|
156
157
|
const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
|
@@ -33,6 +33,12 @@ export interface UserBadgesResponse {
|
|
|
33
33
|
status: ResponseStatus | undefined;
|
|
34
34
|
badges: string[];
|
|
35
35
|
}
|
|
36
|
+
export interface SubscriptionBadgeRequest {
|
|
37
|
+
user_id: string;
|
|
38
|
+
badge: string;
|
|
39
|
+
active: boolean;
|
|
40
|
+
expires_at: string;
|
|
41
|
+
}
|
|
36
42
|
export interface UserProfileDto {
|
|
37
43
|
id: string;
|
|
38
44
|
user_id: string;
|
|
@@ -57,6 +57,20 @@ export declare class UserBadgesResponse extends Message<UserBadgesResponse> {
|
|
|
57
57
|
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UserBadgesResponse;
|
|
58
58
|
static equals(a: UserBadgesResponse | PlainMessage<UserBadgesResponse> | undefined, b: UserBadgesResponse | PlainMessage<UserBadgesResponse> | undefined): boolean;
|
|
59
59
|
}
|
|
60
|
+
export declare class SubscriptionBadgeRequest extends Message<SubscriptionBadgeRequest> {
|
|
61
|
+
userId: string;
|
|
62
|
+
badge: string;
|
|
63
|
+
active: boolean;
|
|
64
|
+
expiresAt: string;
|
|
65
|
+
constructor(data?: PartialMessage<SubscriptionBadgeRequest>);
|
|
66
|
+
static readonly runtime: typeof proto3;
|
|
67
|
+
static readonly typeName = "micro.v1.user.SubscriptionBadgeRequest";
|
|
68
|
+
static readonly fields: FieldList;
|
|
69
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SubscriptionBadgeRequest;
|
|
70
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SubscriptionBadgeRequest;
|
|
71
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SubscriptionBadgeRequest;
|
|
72
|
+
static equals(a: SubscriptionBadgeRequest | PlainMessage<SubscriptionBadgeRequest> | undefined, b: SubscriptionBadgeRequest | PlainMessage<SubscriptionBadgeRequest> | undefined): boolean;
|
|
73
|
+
}
|
|
60
74
|
export declare class UserProfileDto extends Message<UserProfileDto> {
|
|
61
75
|
id: string;
|
|
62
76
|
userId: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PublicUserPreviewResponse = exports.PublicUserPreviewDto = exports.removeUserDataRequest = exports.ContactDto = exports.ContactResponse = exports.ContactRequest = exports.BetaCodePaginateResponse = exports.BetaCodeUpdateRequest = exports.BetaCodeSingleResponse = exports.BetaCodeDto = exports.BetaCodeStoreRequest = exports.UserProfileAdminStoreRequest = exports.UserAdminStoreRequest = exports.PreviewResponse = exports.PreviewDto = exports.ContactPaginationResponse = exports.UserPaginationResponse = exports.UserSingleResponse = exports.UserUpdateRequest = exports.UpdatePasswordRequest = exports.UserStoreRequest = exports.UserProfileDto = exports.UserBadgesResponse = exports.UserBadgeSetRequest = exports.UserDto = exports.TfaSelectionEnum = void 0;
|
|
3
|
+
exports.PublicUserPreviewResponse = exports.PublicUserPreviewDto = exports.removeUserDataRequest = exports.ContactDto = exports.ContactResponse = exports.ContactRequest = exports.BetaCodePaginateResponse = exports.BetaCodeUpdateRequest = exports.BetaCodeSingleResponse = exports.BetaCodeDto = exports.BetaCodeStoreRequest = exports.UserProfileAdminStoreRequest = exports.UserAdminStoreRequest = exports.PreviewResponse = exports.PreviewDto = exports.ContactPaginationResponse = exports.UserPaginationResponse = exports.UserSingleResponse = exports.UserUpdateRequest = exports.UpdatePasswordRequest = exports.UserStoreRequest = exports.UserProfileDto = exports.SubscriptionBadgeRequest = exports.UserBadgesResponse = exports.UserBadgeSetRequest = exports.UserDto = exports.TfaSelectionEnum = void 0;
|
|
4
4
|
const protobuf_1 = require("@bufbuild/protobuf");
|
|
5
5
|
const general_pb_js_1 = require("../general_pb.js");
|
|
6
6
|
const authorization_messages_pb_js_1 = require("./authorization_messages_pb.js");
|
|
@@ -124,6 +124,37 @@ class UserBadgesResponse extends protobuf_1.Message {
|
|
|
124
124
|
}
|
|
125
125
|
}
|
|
126
126
|
exports.UserBadgesResponse = UserBadgesResponse;
|
|
127
|
+
class SubscriptionBadgeRequest extends protobuf_1.Message {
|
|
128
|
+
userId = "";
|
|
129
|
+
badge = "";
|
|
130
|
+
active = false;
|
|
131
|
+
expiresAt = "";
|
|
132
|
+
constructor(data) {
|
|
133
|
+
super();
|
|
134
|
+
protobuf_1.proto3.util.initPartial(data, this);
|
|
135
|
+
}
|
|
136
|
+
static runtime = protobuf_1.proto3;
|
|
137
|
+
static typeName = "micro.v1.user.SubscriptionBadgeRequest";
|
|
138
|
+
static fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
139
|
+
{ no: 1, name: "user_id", kind: "scalar", T: 9 },
|
|
140
|
+
{ no: 2, name: "badge", kind: "scalar", T: 9 },
|
|
141
|
+
{ no: 3, name: "active", kind: "scalar", T: 8 },
|
|
142
|
+
{ no: 4, name: "expires_at", kind: "scalar", T: 9 },
|
|
143
|
+
]);
|
|
144
|
+
static fromBinary(bytes, options) {
|
|
145
|
+
return new SubscriptionBadgeRequest().fromBinary(bytes, options);
|
|
146
|
+
}
|
|
147
|
+
static fromJson(jsonValue, options) {
|
|
148
|
+
return new SubscriptionBadgeRequest().fromJson(jsonValue, options);
|
|
149
|
+
}
|
|
150
|
+
static fromJsonString(jsonString, options) {
|
|
151
|
+
return new SubscriptionBadgeRequest().fromJsonString(jsonString, options);
|
|
152
|
+
}
|
|
153
|
+
static equals(a, b) {
|
|
154
|
+
return protobuf_1.proto3.util.equals(SubscriptionBadgeRequest, a, b);
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
exports.SubscriptionBadgeRequest = SubscriptionBadgeRequest;
|
|
127
158
|
class UserProfileDto extends protobuf_1.Message {
|
|
128
159
|
id = "";
|
|
129
160
|
userId = "";
|
|
@@ -9,6 +9,7 @@ export declare const PUPPETEER_MICRO = "PUPPETEER_MICRO";
|
|
|
9
9
|
export declare const MEDIA_MICRO = "MEDIA_MICRO";
|
|
10
10
|
export declare const CHAT_MICRO = "CHAT_MICRO";
|
|
11
11
|
export declare const VOICE_MICRO = "VOICE_MICRO";
|
|
12
|
+
export declare const SUBSCRIPTION_MICRO = "SUBSCRIPTION_MICRO";
|
|
12
13
|
export declare const X_INTERNAL_HASH = "x-internal-hash";
|
|
13
14
|
export declare const FILTER_SEPARATOR = "_|_";
|
|
14
15
|
export declare const KAFKA_KEYS: {
|
package/dist/utils/constants.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.MEDIA_UPLOADS_PATH = exports.KEYS = exports.KAFKA_KEYS = exports.FILTER_SEPARATOR = exports.X_INTERNAL_HASH = exports.VOICE_MICRO = exports.CHAT_MICRO = exports.MEDIA_MICRO = exports.PUPPETEER_MICRO = exports.EDUCATION_MICRO = exports.DATA_MICRO = exports.PORTFOLIO_MICRO = exports.USER_MICRO = exports.NOTIFICATION_MICRO = exports.NEWS_MICRO = exports.COIN_MICRO = void 0;
|
|
3
|
+
exports.MEDIA_UPLOADS_PATH = exports.KEYS = exports.KAFKA_KEYS = exports.FILTER_SEPARATOR = exports.X_INTERNAL_HASH = exports.SUBSCRIPTION_MICRO = exports.VOICE_MICRO = exports.CHAT_MICRO = exports.MEDIA_MICRO = exports.PUPPETEER_MICRO = exports.EDUCATION_MICRO = exports.DATA_MICRO = exports.PORTFOLIO_MICRO = exports.USER_MICRO = exports.NOTIFICATION_MICRO = exports.NEWS_MICRO = exports.COIN_MICRO = void 0;
|
|
4
4
|
exports.COIN_MICRO = 'COIN_MICRO';
|
|
5
5
|
exports.NEWS_MICRO = 'NEWS_MICRO';
|
|
6
6
|
exports.NOTIFICATION_MICRO = 'NOTIFICATION_MICRO';
|
|
@@ -12,6 +12,7 @@ exports.PUPPETEER_MICRO = 'PUPPETEER_MICRO';
|
|
|
12
12
|
exports.MEDIA_MICRO = 'MEDIA_MICRO';
|
|
13
13
|
exports.CHAT_MICRO = 'CHAT_MICRO';
|
|
14
14
|
exports.VOICE_MICRO = 'VOICE_MICRO';
|
|
15
|
+
exports.SUBSCRIPTION_MICRO = 'SUBSCRIPTION_MICRO';
|
|
15
16
|
exports.X_INTERNAL_HASH = 'x-internal-hash';
|
|
16
17
|
exports.FILTER_SEPARATOR = '_|_';
|
|
17
18
|
exports.KAFKA_KEYS = {
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { BadgeKey } from './badges';
|
|
2
|
+
export declare const PLAN_CODES: readonly ["premium"];
|
|
3
|
+
export type PlanCode = (typeof PLAN_CODES)[number];
|
|
4
|
+
export declare const FEATURE_KEYS: readonly ["badge.premium", "chat.premium_group", "data.premium"];
|
|
5
|
+
export type FeatureKey = (typeof FEATURE_KEYS)[number];
|
|
6
|
+
export declare const PLAN_FEATURES: Record<PlanCode, readonly FeatureKey[]>;
|
|
7
|
+
export declare const PLAN_BADGE: Record<PlanCode, BadgeKey | null>;
|
|
8
|
+
export declare function isPlanCode(value: string): value is PlanCode;
|
|
9
|
+
export declare function isFeatureKey(value: string): value is FeatureKey;
|
|
10
|
+
export type EntitlementMap = Partial<Record<FeatureKey, Date | null>>;
|
|
11
|
+
export declare function hasEntitlement(entitlements: EntitlementMap | undefined, key: FeatureKey, now?: Date): boolean;
|
|
12
|
+
export declare function entitlementMapFromWire(items: readonly {
|
|
13
|
+
key: string;
|
|
14
|
+
expires_at?: string;
|
|
15
|
+
}[] | undefined): EntitlementMap;
|
|
16
|
+
export declare const ENTITLEMENT_CHANGED_CHANNEL = "subscription:entitlement-changed";
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ENTITLEMENT_CHANGED_CHANNEL = exports.PLAN_BADGE = exports.PLAN_FEATURES = exports.FEATURE_KEYS = exports.PLAN_CODES = void 0;
|
|
4
|
+
exports.isPlanCode = isPlanCode;
|
|
5
|
+
exports.isFeatureKey = isFeatureKey;
|
|
6
|
+
exports.hasEntitlement = hasEntitlement;
|
|
7
|
+
exports.entitlementMapFromWire = entitlementMapFromWire;
|
|
8
|
+
exports.PLAN_CODES = ['premium'];
|
|
9
|
+
exports.FEATURE_KEYS = [
|
|
10
|
+
'badge.premium',
|
|
11
|
+
'chat.premium_group',
|
|
12
|
+
'data.premium',
|
|
13
|
+
];
|
|
14
|
+
exports.PLAN_FEATURES = {
|
|
15
|
+
premium: ['badge.premium', 'chat.premium_group', 'data.premium'],
|
|
16
|
+
};
|
|
17
|
+
exports.PLAN_BADGE = {
|
|
18
|
+
premium: 'premium',
|
|
19
|
+
};
|
|
20
|
+
function isPlanCode(value) {
|
|
21
|
+
return exports.PLAN_CODES.includes(value);
|
|
22
|
+
}
|
|
23
|
+
function isFeatureKey(value) {
|
|
24
|
+
return exports.FEATURE_KEYS.includes(value);
|
|
25
|
+
}
|
|
26
|
+
function hasEntitlement(entitlements, key, now = new Date()) {
|
|
27
|
+
if (!entitlements || !(key in entitlements))
|
|
28
|
+
return false;
|
|
29
|
+
const until = entitlements[key];
|
|
30
|
+
return until === null || until === undefined || until.getTime() > now.getTime();
|
|
31
|
+
}
|
|
32
|
+
function entitlementMapFromWire(items) {
|
|
33
|
+
const map = {};
|
|
34
|
+
for (const item of items ?? []) {
|
|
35
|
+
if (!isFeatureKey(item.key))
|
|
36
|
+
continue;
|
|
37
|
+
map[item.key] = item.expires_at ? new Date(item.expires_at) : null;
|
|
38
|
+
}
|
|
39
|
+
return map;
|
|
40
|
+
}
|
|
41
|
+
exports.ENTITLEMENT_CHANGED_CHANNEL = 'subscription:entitlement-changed';
|
package/dist/utils/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export * as badges from './badges';
|
|
2
2
|
export * as constants from './constants';
|
|
3
|
+
export * as entitlements from './entitlements';
|
|
3
4
|
export * as functions from './functions';
|
|
4
5
|
export * as logger_names from './logger_names';
|
|
5
6
|
export * as puppeteer_constants from './puppeteer_constants';
|
package/dist/utils/index.js
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.walk_sync = exports.types = exports.puppeteer_constants = exports.logger_names = exports.functions = exports.constants = exports.badges = void 0;
|
|
3
|
+
exports.walk_sync = exports.types = exports.puppeteer_constants = exports.logger_names = exports.functions = exports.entitlements = exports.constants = exports.badges = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
exports.badges = tslib_1.__importStar(require("./badges"));
|
|
6
6
|
exports.constants = tslib_1.__importStar(require("./constants"));
|
|
7
|
+
exports.entitlements = tslib_1.__importStar(require("./entitlements"));
|
|
7
8
|
exports.functions = tslib_1.__importStar(require("./functions"));
|
|
8
9
|
exports.logger_names = tslib_1.__importStar(require("./logger_names"));
|
|
9
10
|
exports.puppeteer_constants = tslib_1.__importStar(require("./puppeteer_constants"));
|
package/package.json
CHANGED
|
@@ -47,6 +47,11 @@ message ChatGroupDto {
|
|
|
47
47
|
// Who sees the group in the chat list: everyone (default) | members
|
|
48
48
|
// (only its approved members; it stays reachable by its link).
|
|
49
49
|
string list_visibility = 26;
|
|
50
|
+
// Who may enter: everyone | vip (role) | premium (paid plan). Replaces
|
|
51
|
+
// is_vip_only, which is kept as `access == vip` for older builds.
|
|
52
|
+
string access = 27;
|
|
53
|
+
// Look of the group's row and header: default | gold.
|
|
54
|
+
string theme = 28;
|
|
50
55
|
}
|
|
51
56
|
|
|
52
57
|
message ChatGroupListResponse {
|
|
@@ -424,6 +429,11 @@ message GroupUpsertRequest {
|
|
|
424
429
|
string voice_reactions = 13;
|
|
425
430
|
// everyone | members (empty = keep/default everyone)
|
|
426
431
|
string list_visibility = 14;
|
|
432
|
+
// everyone | vip | premium (empty = keep; a build without this field
|
|
433
|
+
// still sets vip through is_vip_only)
|
|
434
|
+
string access = 15;
|
|
435
|
+
// default | gold (empty = keep/default)
|
|
436
|
+
string theme = 16;
|
|
427
437
|
}
|
|
428
438
|
|
|
429
439
|
message SanctionRequest {
|