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.
Files changed (34) hide show
  1. package/dist/proto/micro/v1/chat/chat_messages_nest.d.ts +4 -0
  2. package/dist/proto/micro/v1/chat/chat_messages_pb.d.ts +4 -0
  3. package/dist/proto/micro/v1/chat/chat_messages_pb.js +8 -0
  4. package/dist/proto/micro/v1/index.d.ts +1 -0
  5. package/dist/proto/micro/v1/index.js +2 -1
  6. package/dist/proto/micro/v1/subscription/index.d.ts +3 -0
  7. package/dist/proto/micro/v1/subscription/index.js +7 -0
  8. package/dist/proto/micro/v1/subscription/services_connect.d.ts +56 -0
  9. package/dist/proto/micro/v1/subscription/services_connect.js +59 -0
  10. package/dist/proto/micro/v1/subscription/services_nest.d.ts +28 -0
  11. package/dist/proto/micro/v1/subscription/services_nest.js +31 -0
  12. package/dist/proto/micro/v1/subscription/subscription_messages_nest.d.ts +75 -0
  13. package/dist/proto/micro/v1/subscription/subscription_messages_nest.js +5 -0
  14. package/dist/proto/micro/v1/subscription/subscription_messages_pb.d.ts +163 -0
  15. package/dist/proto/micro/v1/subscription/subscription_messages_pb.js +358 -0
  16. package/dist/proto/micro/v1/user/services_connect.d.ts +7 -1
  17. package/dist/proto/micro/v1/user/services_connect.js +6 -0
  18. package/dist/proto/micro/v1/user/services_nest.d.ts +3 -1
  19. package/dist/proto/micro/v1/user/services_nest.js +1 -0
  20. package/dist/proto/micro/v1/user/user_messages_nest.d.ts +6 -0
  21. package/dist/proto/micro/v1/user/user_messages_pb.d.ts +14 -0
  22. package/dist/proto/micro/v1/user/user_messages_pb.js +32 -1
  23. package/dist/utils/constants.d.ts +1 -0
  24. package/dist/utils/constants.js +2 -1
  25. package/dist/utils/entitlements.d.ts +16 -0
  26. package/dist/utils/entitlements.js +41 -0
  27. package/dist/utils/index.d.ts +1 -0
  28. package/dist/utils/index.js +2 -1
  29. package/package.json +1 -1
  30. package/proto/micro/v1/chat/chat_messages.proto +10 -0
  31. package/proto/micro/v1/subscription/services.proto +28 -0
  32. package/proto/micro/v1/subscription/subscription_messages.proto +112 -0
  33. package/proto/micro/v1/user/services.proto +2 -0
  34. package/proto/micro/v1/user/user_messages.proto +11 -0
@@ -27,6 +27,8 @@ export interface ChatGroupDto {
27
27
  voice_policy: string;
28
28
  voice_reactions: boolean;
29
29
  list_visibility: string;
30
+ access: string;
31
+ theme: string;
30
32
  }
31
33
  export interface ChatGroupListResponse {
32
34
  status: ResponseStatus | undefined;
@@ -280,6 +282,8 @@ export interface GroupUpsertRequest {
280
282
  voice_policy: string;
281
283
  voice_reactions: string;
282
284
  list_visibility: string;
285
+ access: string;
286
+ theme: string;
283
287
  }
284
288
  export interface SanctionRequest {
285
289
  username: string;
@@ -28,6 +28,8 @@ export declare class ChatGroupDto extends Message<ChatGroupDto> {
28
28
  voicePolicy: string;
29
29
  voiceReactions: boolean;
30
30
  listVisibility: string;
31
+ access: string;
32
+ theme: string;
31
33
  constructor(data?: PartialMessage<ChatGroupDto>);
32
34
  static readonly runtime: typeof proto3;
33
35
  static readonly typeName = "micro.v1.chat.ChatGroupDto";
@@ -569,6 +571,8 @@ export declare class GroupUpsertRequest extends Message<GroupUpsertRequest> {
569
571
  voicePolicy: string;
570
572
  voiceReactions: string;
571
573
  listVisibility: string;
574
+ access: string;
575
+ theme: string;
572
576
  constructor(data?: PartialMessage<GroupUpsertRequest>);
573
577
  static readonly runtime: typeof proto3;
574
578
  static readonly typeName = "micro.v1.chat.GroupUpsertRequest";
@@ -31,6 +31,8 @@ class ChatGroupDto extends protobuf_1.Message {
31
31
  voicePolicy = "";
32
32
  voiceReactions = false;
33
33
  listVisibility = "";
34
+ access = "";
35
+ theme = "";
34
36
  constructor(data) {
35
37
  super();
36
38
  protobuf_1.proto3.util.initPartial(data, this);
@@ -64,6 +66,8 @@ class ChatGroupDto extends protobuf_1.Message {
64
66
  { no: 24, name: "voice_policy", kind: "scalar", T: 9 },
65
67
  { no: 25, name: "voice_reactions", kind: "scalar", T: 8 },
66
68
  { no: 26, name: "list_visibility", kind: "scalar", T: 9 },
69
+ { no: 27, name: "access", kind: "scalar", T: 9 },
70
+ { no: 28, name: "theme", kind: "scalar", T: 9 },
67
71
  ]);
68
72
  static fromBinary(bytes, options) {
69
73
  return new ChatGroupDto().fromBinary(bytes, options);
@@ -1233,6 +1237,8 @@ class GroupUpsertRequest extends protobuf_1.Message {
1233
1237
  voicePolicy = "";
1234
1238
  voiceReactions = "";
1235
1239
  listVisibility = "";
1240
+ access = "";
1241
+ theme = "";
1236
1242
  constructor(data) {
1237
1243
  super();
1238
1244
  protobuf_1.proto3.util.initPartial(data, this);
@@ -1254,6 +1260,8 @@ class GroupUpsertRequest extends protobuf_1.Message {
1254
1260
  { no: 12, name: "voice_policy", kind: "scalar", T: 9 },
1255
1261
  { no: 13, name: "voice_reactions", kind: "scalar", T: 9 },
1256
1262
  { no: 14, name: "list_visibility", kind: "scalar", T: 9 },
1263
+ { no: 15, name: "access", kind: "scalar", T: 9 },
1264
+ { no: 16, name: "theme", kind: "scalar", T: 9 },
1257
1265
  ]);
1258
1266
  static fromBinary(bytes, options) {
1259
1267
  return new GroupUpsertRequest().fromBinary(bytes, options);
@@ -8,5 +8,6 @@ export * as news from './news';
8
8
  export * as notification from './notification';
9
9
  export * as portfolio from './portfolio';
10
10
  export * as puppeteer from './puppeteer';
11
+ export * as subscription from './subscription';
11
12
  export * as user from './user';
12
13
  export * as voice from './voice';
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.voice = exports.user = exports.puppeteer = exports.portfolio = exports.notification = exports.news = exports.media = exports.general_nest = exports.education = exports.data = exports.coin = exports.chat = void 0;
3
+ exports.voice = exports.user = exports.subscription = exports.puppeteer = exports.portfolio = exports.notification = exports.news = exports.media = exports.general_nest = exports.education = exports.data = exports.coin = exports.chat = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  exports.chat = tslib_1.__importStar(require("./chat"));
6
6
  exports.coin = tslib_1.__importStar(require("./coin"));
@@ -12,5 +12,6 @@ exports.news = tslib_1.__importStar(require("./news"));
12
12
  exports.notification = tslib_1.__importStar(require("./notification"));
13
13
  exports.portfolio = tslib_1.__importStar(require("./portfolio"));
14
14
  exports.puppeteer = tslib_1.__importStar(require("./puppeteer"));
15
+ exports.subscription = tslib_1.__importStar(require("./subscription"));
15
16
  exports.user = tslib_1.__importStar(require("./user"));
16
17
  exports.voice = tslib_1.__importStar(require("./voice"));
@@ -0,0 +1,3 @@
1
+ export * as services_connect from './services_connect';
2
+ export * as services_nest from './services_nest';
3
+ export * as subscription_messages_nest from './subscription_messages_nest';
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.subscription_messages_nest = exports.services_nest = exports.services_connect = void 0;
4
+ const tslib_1 = require("tslib");
5
+ exports.services_connect = tslib_1.__importStar(require("./services_connect"));
6
+ exports.services_nest = tslib_1.__importStar(require("./services_nest"));
7
+ exports.subscription_messages_nest = tslib_1.__importStar(require("./subscription_messages_nest"));
@@ -0,0 +1,56 @@
1
+ import { ByIdRequest, EmptyRequest, EmptyResponse } from "../general_pb.js";
2
+ import { EntitlementsByIdsRequest, EntitlementsListResponse, SubscriptionAdminResponse, SubscriptionGrantRequest, SubscriptionMeResponse, SubscriptionRevokeRequest, SubscriptionWebhookRequest } from "./subscription_messages_pb.js";
3
+ import { MethodKind } from "@bufbuild/protobuf";
4
+ export declare const PSubscriptionService: {
5
+ readonly typeName: "micro.v1.subscription.PSubscriptionService";
6
+ readonly methods: {
7
+ readonly me: {
8
+ readonly name: "Me";
9
+ readonly I: typeof EmptyRequest;
10
+ readonly O: typeof SubscriptionMeResponse;
11
+ readonly kind: MethodKind.ServerStreaming;
12
+ };
13
+ readonly sync: {
14
+ readonly name: "Sync";
15
+ readonly I: typeof EmptyRequest;
16
+ readonly O: typeof SubscriptionMeResponse;
17
+ readonly kind: MethodKind.ServerStreaming;
18
+ };
19
+ readonly entitlementsByIds: {
20
+ readonly name: "EntitlementsByIds";
21
+ readonly I: typeof EntitlementsByIdsRequest;
22
+ readonly O: typeof EntitlementsListResponse;
23
+ readonly kind: MethodKind.ServerStreaming;
24
+ };
25
+ readonly webhook: {
26
+ readonly name: "Webhook";
27
+ readonly I: typeof SubscriptionWebhookRequest;
28
+ readonly O: typeof EmptyResponse;
29
+ readonly kind: MethodKind.ServerStreaming;
30
+ };
31
+ readonly adminRead: {
32
+ readonly name: "AdminRead";
33
+ readonly I: typeof ByIdRequest;
34
+ readonly O: typeof SubscriptionAdminResponse;
35
+ readonly kind: MethodKind.ServerStreaming;
36
+ };
37
+ readonly adminGrant: {
38
+ readonly name: "AdminGrant";
39
+ readonly I: typeof SubscriptionGrantRequest;
40
+ readonly O: typeof SubscriptionAdminResponse;
41
+ readonly kind: MethodKind.ServerStreaming;
42
+ };
43
+ readonly adminRevoke: {
44
+ readonly name: "AdminRevoke";
45
+ readonly I: typeof SubscriptionRevokeRequest;
46
+ readonly O: typeof SubscriptionAdminResponse;
47
+ readonly kind: MethodKind.ServerStreaming;
48
+ };
49
+ readonly removeUserData: {
50
+ readonly name: "RemoveUserData";
51
+ readonly I: typeof ByIdRequest;
52
+ readonly O: typeof EmptyResponse;
53
+ readonly kind: MethodKind.ServerStreaming;
54
+ };
55
+ };
56
+ };
@@ -0,0 +1,59 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PSubscriptionService = void 0;
4
+ const general_pb_js_1 = require("../general_pb.js");
5
+ const subscription_messages_pb_js_1 = require("./subscription_messages_pb.js");
6
+ const protobuf_1 = require("@bufbuild/protobuf");
7
+ exports.PSubscriptionService = {
8
+ typeName: "micro.v1.subscription.PSubscriptionService",
9
+ methods: {
10
+ me: {
11
+ name: "Me",
12
+ I: general_pb_js_1.EmptyRequest,
13
+ O: subscription_messages_pb_js_1.SubscriptionMeResponse,
14
+ kind: protobuf_1.MethodKind.ServerStreaming,
15
+ },
16
+ sync: {
17
+ name: "Sync",
18
+ I: general_pb_js_1.EmptyRequest,
19
+ O: subscription_messages_pb_js_1.SubscriptionMeResponse,
20
+ kind: protobuf_1.MethodKind.ServerStreaming,
21
+ },
22
+ entitlementsByIds: {
23
+ name: "EntitlementsByIds",
24
+ I: subscription_messages_pb_js_1.EntitlementsByIdsRequest,
25
+ O: subscription_messages_pb_js_1.EntitlementsListResponse,
26
+ kind: protobuf_1.MethodKind.ServerStreaming,
27
+ },
28
+ webhook: {
29
+ name: "Webhook",
30
+ I: subscription_messages_pb_js_1.SubscriptionWebhookRequest,
31
+ O: general_pb_js_1.EmptyResponse,
32
+ kind: protobuf_1.MethodKind.ServerStreaming,
33
+ },
34
+ adminRead: {
35
+ name: "AdminRead",
36
+ I: general_pb_js_1.ByIdRequest,
37
+ O: subscription_messages_pb_js_1.SubscriptionAdminResponse,
38
+ kind: protobuf_1.MethodKind.ServerStreaming,
39
+ },
40
+ adminGrant: {
41
+ name: "AdminGrant",
42
+ I: subscription_messages_pb_js_1.SubscriptionGrantRequest,
43
+ O: subscription_messages_pb_js_1.SubscriptionAdminResponse,
44
+ kind: protobuf_1.MethodKind.ServerStreaming,
45
+ },
46
+ adminRevoke: {
47
+ name: "AdminRevoke",
48
+ I: subscription_messages_pb_js_1.SubscriptionRevokeRequest,
49
+ O: subscription_messages_pb_js_1.SubscriptionAdminResponse,
50
+ kind: protobuf_1.MethodKind.ServerStreaming,
51
+ },
52
+ removeUserData: {
53
+ name: "RemoveUserData",
54
+ I: general_pb_js_1.ByIdRequest,
55
+ O: general_pb_js_1.EmptyResponse,
56
+ kind: protobuf_1.MethodKind.ServerStreaming,
57
+ },
58
+ }
59
+ };
@@ -0,0 +1,28 @@
1
+ import type { Metadata } from "@grpc/grpc-js";
2
+ import { Observable } from "rxjs";
3
+ import { ByIdRequest, EmptyRequest, EmptyResponse } from "../general_nest";
4
+ import { EntitlementsByIdsRequest, EntitlementsListResponse, SubscriptionAdminResponse, SubscriptionGrantRequest, SubscriptionMeResponse, SubscriptionRevokeRequest, SubscriptionWebhookRequest } from "./subscription_messages_nest";
5
+ export declare const protobufPackage = "micro.v1.subscription";
6
+ export declare const MICRO_V1_SUBSCRIPTION_PACKAGE_NAME = "micro.v1.subscription";
7
+ export interface PSubscriptionServiceClient {
8
+ me(request: EmptyRequest, metadata?: Metadata): Observable<SubscriptionMeResponse>;
9
+ sync(request: EmptyRequest, metadata?: Metadata): Observable<SubscriptionMeResponse>;
10
+ entitlementsByIds(request: EntitlementsByIdsRequest, metadata?: Metadata): Observable<EntitlementsListResponse>;
11
+ webhook(request: SubscriptionWebhookRequest, metadata?: Metadata): Observable<EmptyResponse>;
12
+ adminRead(request: ByIdRequest, metadata?: Metadata): Observable<SubscriptionAdminResponse>;
13
+ adminGrant(request: SubscriptionGrantRequest, metadata?: Metadata): Observable<SubscriptionAdminResponse>;
14
+ adminRevoke(request: SubscriptionRevokeRequest, metadata?: Metadata): Observable<SubscriptionAdminResponse>;
15
+ removeUserData(request: ByIdRequest, metadata?: Metadata): Observable<EmptyResponse>;
16
+ }
17
+ export interface PSubscriptionServiceController {
18
+ me(request: EmptyRequest, metadata?: Metadata): Observable<SubscriptionMeResponse>;
19
+ sync(request: EmptyRequest, metadata?: Metadata): Observable<SubscriptionMeResponse>;
20
+ entitlementsByIds(request: EntitlementsByIdsRequest, metadata?: Metadata): Observable<EntitlementsListResponse>;
21
+ webhook(request: SubscriptionWebhookRequest, metadata?: Metadata): Observable<EmptyResponse>;
22
+ adminRead(request: ByIdRequest, metadata?: Metadata): Observable<SubscriptionAdminResponse>;
23
+ adminGrant(request: SubscriptionGrantRequest, metadata?: Metadata): Observable<SubscriptionAdminResponse>;
24
+ adminRevoke(request: SubscriptionRevokeRequest, metadata?: Metadata): Observable<SubscriptionAdminResponse>;
25
+ removeUserData(request: ByIdRequest, metadata?: Metadata): Observable<EmptyResponse>;
26
+ }
27
+ export declare function PSubscriptionServiceControllerMethods(): (constructor: Function) => void;
28
+ export declare const P_SUBSCRIPTION_SERVICE_NAME = "PSubscriptionService";
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.P_SUBSCRIPTION_SERVICE_NAME = exports.MICRO_V1_SUBSCRIPTION_PACKAGE_NAME = exports.protobufPackage = void 0;
4
+ exports.PSubscriptionServiceControllerMethods = PSubscriptionServiceControllerMethods;
5
+ const microservices_1 = require("@nestjs/microservices");
6
+ exports.protobufPackage = "micro.v1.subscription";
7
+ exports.MICRO_V1_SUBSCRIPTION_PACKAGE_NAME = "micro.v1.subscription";
8
+ function PSubscriptionServiceControllerMethods() {
9
+ return function (constructor) {
10
+ const grpcMethods = [
11
+ "me",
12
+ "sync",
13
+ "entitlementsByIds",
14
+ "webhook",
15
+ "adminRead",
16
+ "adminGrant",
17
+ "adminRevoke",
18
+ "removeUserData",
19
+ ];
20
+ for (const method of grpcMethods) {
21
+ const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
22
+ (0, microservices_1.GrpcMethod)("PSubscriptionService", method)(constructor.prototype[method], method, descriptor);
23
+ }
24
+ const grpcStreamMethods = [];
25
+ for (const method of grpcStreamMethods) {
26
+ const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
27
+ (0, microservices_1.GrpcStreamMethod)("PSubscriptionService", method)(constructor.prototype[method], method, descriptor);
28
+ }
29
+ };
30
+ }
31
+ exports.P_SUBSCRIPTION_SERVICE_NAME = "PSubscriptionService";
@@ -0,0 +1,75 @@
1
+ import { ResponseStatus } from "../general_nest";
2
+ export declare const protobufPackage = "micro.v1.subscription";
3
+ export interface SubscriptionInfo {
4
+ plan: string;
5
+ status: string;
6
+ product_id: string;
7
+ store: string;
8
+ environment: string;
9
+ period_type: string;
10
+ purchased_at: string;
11
+ original_purchase_at: string;
12
+ expires_at: string;
13
+ grace_until: string;
14
+ access_until: string;
15
+ auto_renew: boolean;
16
+ ownership_type: string;
17
+ auto_resume_at: string;
18
+ management_url: string;
19
+ }
20
+ export interface EntitlementInfo {
21
+ key: string;
22
+ expires_at: string;
23
+ plan: string;
24
+ source: string;
25
+ }
26
+ export interface SubscriptionMeResponse {
27
+ status: ResponseStatus | undefined;
28
+ subscription?: SubscriptionInfo | undefined;
29
+ entitlements: EntitlementInfo[];
30
+ synced_at: string;
31
+ }
32
+ export interface EntitlementsByIdsRequest {
33
+ user_ids: string[];
34
+ }
35
+ export interface UserEntitlements {
36
+ user_id: string;
37
+ entitlements: EntitlementInfo[];
38
+ }
39
+ export interface EntitlementsListResponse {
40
+ status: ResponseStatus | undefined;
41
+ data: UserEntitlements[];
42
+ }
43
+ export interface SubscriptionWebhookRequest {
44
+ authorization: string;
45
+ signature: string;
46
+ raw_body: string;
47
+ }
48
+ export interface SubscriptionEventInfo {
49
+ id: string;
50
+ type: string;
51
+ store: string;
52
+ product_id: string;
53
+ environment: string;
54
+ received_at: string;
55
+ processed_at: string;
56
+ error: string;
57
+ }
58
+ export interface SubscriptionAdminResponse {
59
+ status: ResponseStatus | undefined;
60
+ subscriptions: SubscriptionInfo[];
61
+ entitlements: EntitlementInfo[];
62
+ events: SubscriptionEventInfo[];
63
+ synced_at: string;
64
+ }
65
+ export interface SubscriptionGrantRequest {
66
+ user_id: string;
67
+ plan: string;
68
+ duration: string;
69
+ note: string;
70
+ }
71
+ export interface SubscriptionRevokeRequest {
72
+ user_id: string;
73
+ plan: string;
74
+ }
75
+ export declare const MICRO_V1_SUBSCRIPTION_PACKAGE_NAME = "micro.v1.subscription";
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MICRO_V1_SUBSCRIPTION_PACKAGE_NAME = exports.protobufPackage = void 0;
4
+ exports.protobufPackage = "micro.v1.subscription";
5
+ exports.MICRO_V1_SUBSCRIPTION_PACKAGE_NAME = "micro.v1.subscription";
@@ -0,0 +1,163 @@
1
+ import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
2
+ import { Message, proto3 } from "@bufbuild/protobuf";
3
+ import { ResponseStatus } from "../general_pb.js";
4
+ export declare class SubscriptionInfo extends Message<SubscriptionInfo> {
5
+ plan: string;
6
+ status: string;
7
+ productId: string;
8
+ store: string;
9
+ environment: string;
10
+ periodType: string;
11
+ purchasedAt: string;
12
+ originalPurchaseAt: string;
13
+ expiresAt: string;
14
+ graceUntil: string;
15
+ accessUntil: string;
16
+ autoRenew: boolean;
17
+ ownershipType: string;
18
+ autoResumeAt: string;
19
+ managementUrl: string;
20
+ constructor(data?: PartialMessage<SubscriptionInfo>);
21
+ static readonly runtime: typeof proto3;
22
+ static readonly typeName = "micro.v1.subscription.SubscriptionInfo";
23
+ static readonly fields: FieldList;
24
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SubscriptionInfo;
25
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SubscriptionInfo;
26
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SubscriptionInfo;
27
+ static equals(a: SubscriptionInfo | PlainMessage<SubscriptionInfo> | undefined, b: SubscriptionInfo | PlainMessage<SubscriptionInfo> | undefined): boolean;
28
+ }
29
+ export declare class EntitlementInfo extends Message<EntitlementInfo> {
30
+ key: string;
31
+ expiresAt: string;
32
+ plan: string;
33
+ source: string;
34
+ constructor(data?: PartialMessage<EntitlementInfo>);
35
+ static readonly runtime: typeof proto3;
36
+ static readonly typeName = "micro.v1.subscription.EntitlementInfo";
37
+ static readonly fields: FieldList;
38
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): EntitlementInfo;
39
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): EntitlementInfo;
40
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): EntitlementInfo;
41
+ static equals(a: EntitlementInfo | PlainMessage<EntitlementInfo> | undefined, b: EntitlementInfo | PlainMessage<EntitlementInfo> | undefined): boolean;
42
+ }
43
+ export declare class SubscriptionMeResponse extends Message<SubscriptionMeResponse> {
44
+ status?: ResponseStatus;
45
+ subscription?: SubscriptionInfo;
46
+ entitlements: EntitlementInfo[];
47
+ syncedAt: string;
48
+ constructor(data?: PartialMessage<SubscriptionMeResponse>);
49
+ static readonly runtime: typeof proto3;
50
+ static readonly typeName = "micro.v1.subscription.SubscriptionMeResponse";
51
+ static readonly fields: FieldList;
52
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SubscriptionMeResponse;
53
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SubscriptionMeResponse;
54
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SubscriptionMeResponse;
55
+ static equals(a: SubscriptionMeResponse | PlainMessage<SubscriptionMeResponse> | undefined, b: SubscriptionMeResponse | PlainMessage<SubscriptionMeResponse> | undefined): boolean;
56
+ }
57
+ export declare class EntitlementsByIdsRequest extends Message<EntitlementsByIdsRequest> {
58
+ userIds: string[];
59
+ constructor(data?: PartialMessage<EntitlementsByIdsRequest>);
60
+ static readonly runtime: typeof proto3;
61
+ static readonly typeName = "micro.v1.subscription.EntitlementsByIdsRequest";
62
+ static readonly fields: FieldList;
63
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): EntitlementsByIdsRequest;
64
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): EntitlementsByIdsRequest;
65
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): EntitlementsByIdsRequest;
66
+ static equals(a: EntitlementsByIdsRequest | PlainMessage<EntitlementsByIdsRequest> | undefined, b: EntitlementsByIdsRequest | PlainMessage<EntitlementsByIdsRequest> | undefined): boolean;
67
+ }
68
+ export declare class UserEntitlements extends Message<UserEntitlements> {
69
+ userId: string;
70
+ entitlements: EntitlementInfo[];
71
+ constructor(data?: PartialMessage<UserEntitlements>);
72
+ static readonly runtime: typeof proto3;
73
+ static readonly typeName = "micro.v1.subscription.UserEntitlements";
74
+ static readonly fields: FieldList;
75
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UserEntitlements;
76
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UserEntitlements;
77
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UserEntitlements;
78
+ static equals(a: UserEntitlements | PlainMessage<UserEntitlements> | undefined, b: UserEntitlements | PlainMessage<UserEntitlements> | undefined): boolean;
79
+ }
80
+ export declare class EntitlementsListResponse extends Message<EntitlementsListResponse> {
81
+ status?: ResponseStatus;
82
+ data: UserEntitlements[];
83
+ constructor(data?: PartialMessage<EntitlementsListResponse>);
84
+ static readonly runtime: typeof proto3;
85
+ static readonly typeName = "micro.v1.subscription.EntitlementsListResponse";
86
+ static readonly fields: FieldList;
87
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): EntitlementsListResponse;
88
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): EntitlementsListResponse;
89
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): EntitlementsListResponse;
90
+ static equals(a: EntitlementsListResponse | PlainMessage<EntitlementsListResponse> | undefined, b: EntitlementsListResponse | PlainMessage<EntitlementsListResponse> | undefined): boolean;
91
+ }
92
+ export declare class SubscriptionWebhookRequest extends Message<SubscriptionWebhookRequest> {
93
+ authorization: string;
94
+ signature: string;
95
+ rawBody: string;
96
+ constructor(data?: PartialMessage<SubscriptionWebhookRequest>);
97
+ static readonly runtime: typeof proto3;
98
+ static readonly typeName = "micro.v1.subscription.SubscriptionWebhookRequest";
99
+ static readonly fields: FieldList;
100
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SubscriptionWebhookRequest;
101
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SubscriptionWebhookRequest;
102
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SubscriptionWebhookRequest;
103
+ static equals(a: SubscriptionWebhookRequest | PlainMessage<SubscriptionWebhookRequest> | undefined, b: SubscriptionWebhookRequest | PlainMessage<SubscriptionWebhookRequest> | undefined): boolean;
104
+ }
105
+ export declare class SubscriptionEventInfo extends Message<SubscriptionEventInfo> {
106
+ id: string;
107
+ type: string;
108
+ store: string;
109
+ productId: string;
110
+ environment: string;
111
+ receivedAt: string;
112
+ processedAt: string;
113
+ error: string;
114
+ constructor(data?: PartialMessage<SubscriptionEventInfo>);
115
+ static readonly runtime: typeof proto3;
116
+ static readonly typeName = "micro.v1.subscription.SubscriptionEventInfo";
117
+ static readonly fields: FieldList;
118
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SubscriptionEventInfo;
119
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SubscriptionEventInfo;
120
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SubscriptionEventInfo;
121
+ static equals(a: SubscriptionEventInfo | PlainMessage<SubscriptionEventInfo> | undefined, b: SubscriptionEventInfo | PlainMessage<SubscriptionEventInfo> | undefined): boolean;
122
+ }
123
+ export declare class SubscriptionAdminResponse extends Message<SubscriptionAdminResponse> {
124
+ status?: ResponseStatus;
125
+ subscriptions: SubscriptionInfo[];
126
+ entitlements: EntitlementInfo[];
127
+ events: SubscriptionEventInfo[];
128
+ syncedAt: string;
129
+ constructor(data?: PartialMessage<SubscriptionAdminResponse>);
130
+ static readonly runtime: typeof proto3;
131
+ static readonly typeName = "micro.v1.subscription.SubscriptionAdminResponse";
132
+ static readonly fields: FieldList;
133
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SubscriptionAdminResponse;
134
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SubscriptionAdminResponse;
135
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SubscriptionAdminResponse;
136
+ static equals(a: SubscriptionAdminResponse | PlainMessage<SubscriptionAdminResponse> | undefined, b: SubscriptionAdminResponse | PlainMessage<SubscriptionAdminResponse> | undefined): boolean;
137
+ }
138
+ export declare class SubscriptionGrantRequest extends Message<SubscriptionGrantRequest> {
139
+ userId: string;
140
+ plan: string;
141
+ duration: string;
142
+ note: string;
143
+ constructor(data?: PartialMessage<SubscriptionGrantRequest>);
144
+ static readonly runtime: typeof proto3;
145
+ static readonly typeName = "micro.v1.subscription.SubscriptionGrantRequest";
146
+ static readonly fields: FieldList;
147
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SubscriptionGrantRequest;
148
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SubscriptionGrantRequest;
149
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SubscriptionGrantRequest;
150
+ static equals(a: SubscriptionGrantRequest | PlainMessage<SubscriptionGrantRequest> | undefined, b: SubscriptionGrantRequest | PlainMessage<SubscriptionGrantRequest> | undefined): boolean;
151
+ }
152
+ export declare class SubscriptionRevokeRequest extends Message<SubscriptionRevokeRequest> {
153
+ userId: string;
154
+ plan: string;
155
+ constructor(data?: PartialMessage<SubscriptionRevokeRequest>);
156
+ static readonly runtime: typeof proto3;
157
+ static readonly typeName = "micro.v1.subscription.SubscriptionRevokeRequest";
158
+ static readonly fields: FieldList;
159
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SubscriptionRevokeRequest;
160
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SubscriptionRevokeRequest;
161
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SubscriptionRevokeRequest;
162
+ static equals(a: SubscriptionRevokeRequest | PlainMessage<SubscriptionRevokeRequest> | undefined, b: SubscriptionRevokeRequest | PlainMessage<SubscriptionRevokeRequest> | undefined): boolean;
163
+ }