@ssoeasy-dev/proto 1.1.0-beta.1

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.
@@ -0,0 +1,326 @@
1
+ // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
2
+ // versions:
3
+ // protoc-gen-ts_proto v2.11.5
4
+ // protoc unknown
5
+ // source: companies/v1/owner.proto
6
+
7
+ /* eslint-disable */
8
+ import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
9
+ import type { CallContext, CallOptions } from "nice-grpc-common";
10
+ import { StatusResponse } from "../../common/v1/types";
11
+
12
+ export interface RegisterOwnerRequest {
13
+ $type: "companies.v1.RegisterOwnerRequest";
14
+ email: string;
15
+ firstname: string;
16
+ lastname: string;
17
+ }
18
+
19
+ export interface RegisterOwnerResponse {
20
+ $type: "companies.v1.RegisterOwnerResponse";
21
+ companyId: string;
22
+ employeeId: string;
23
+ subscriptionId: string;
24
+ employeeCompanyId: string;
25
+ }
26
+
27
+ function createBaseRegisterOwnerRequest(): RegisterOwnerRequest {
28
+ return { $type: "companies.v1.RegisterOwnerRequest", email: "", firstname: "", lastname: "" };
29
+ }
30
+
31
+ export const RegisterOwnerRequest: MessageFns<RegisterOwnerRequest, "companies.v1.RegisterOwnerRequest"> = {
32
+ $type: "companies.v1.RegisterOwnerRequest" as const,
33
+
34
+ encode(message: RegisterOwnerRequest, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
35
+ if (message.email !== "") {
36
+ writer.uint32(10).string(message.email);
37
+ }
38
+ if (message.firstname !== "") {
39
+ writer.uint32(18).string(message.firstname);
40
+ }
41
+ if (message.lastname !== "") {
42
+ writer.uint32(26).string(message.lastname);
43
+ }
44
+ return writer;
45
+ },
46
+
47
+ decode(input: BinaryReader | Uint8Array, length?: number): RegisterOwnerRequest {
48
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
49
+ const end = length === undefined ? reader.len : reader.pos + length;
50
+ const message = createBaseRegisterOwnerRequest();
51
+ while (reader.pos < end) {
52
+ const tag = reader.uint32();
53
+ switch (tag >>> 3) {
54
+ case 1: {
55
+ if (tag !== 10) {
56
+ break;
57
+ }
58
+
59
+ message.email = reader.string();
60
+ continue;
61
+ }
62
+ case 2: {
63
+ if (tag !== 18) {
64
+ break;
65
+ }
66
+
67
+ message.firstname = reader.string();
68
+ continue;
69
+ }
70
+ case 3: {
71
+ if (tag !== 26) {
72
+ break;
73
+ }
74
+
75
+ message.lastname = reader.string();
76
+ continue;
77
+ }
78
+ }
79
+ if ((tag & 7) === 4 || tag === 0) {
80
+ break;
81
+ }
82
+ reader.skip(tag & 7);
83
+ }
84
+ return message;
85
+ },
86
+
87
+ fromJSON(object: any): RegisterOwnerRequest {
88
+ return {
89
+ $type: RegisterOwnerRequest.$type,
90
+ email: isSet(object.email) ? globalThis.String(object.email) : "",
91
+ firstname: isSet(object.firstname) ? globalThis.String(object.firstname) : "",
92
+ lastname: isSet(object.lastname) ? globalThis.String(object.lastname) : "",
93
+ };
94
+ },
95
+
96
+ toJSON(message: RegisterOwnerRequest): unknown {
97
+ const obj: any = {};
98
+ if (message.email !== "") {
99
+ obj.email = message.email;
100
+ }
101
+ if (message.firstname !== "") {
102
+ obj.firstname = message.firstname;
103
+ }
104
+ if (message.lastname !== "") {
105
+ obj.lastname = message.lastname;
106
+ }
107
+ return obj;
108
+ },
109
+
110
+ create<I extends Exact<DeepPartial<RegisterOwnerRequest>, I>>(base?: I): RegisterOwnerRequest {
111
+ return RegisterOwnerRequest.fromPartial(base ?? ({} as any));
112
+ },
113
+ fromPartial<I extends Exact<DeepPartial<RegisterOwnerRequest>, I>>(object: I): RegisterOwnerRequest {
114
+ const message = createBaseRegisterOwnerRequest();
115
+ message.email = object.email ?? "";
116
+ message.firstname = object.firstname ?? "";
117
+ message.lastname = object.lastname ?? "";
118
+ return message;
119
+ },
120
+ };
121
+
122
+ function createBaseRegisterOwnerResponse(): RegisterOwnerResponse {
123
+ return {
124
+ $type: "companies.v1.RegisterOwnerResponse",
125
+ companyId: "",
126
+ employeeId: "",
127
+ subscriptionId: "",
128
+ employeeCompanyId: "",
129
+ };
130
+ }
131
+
132
+ export const RegisterOwnerResponse: MessageFns<RegisterOwnerResponse, "companies.v1.RegisterOwnerResponse"> = {
133
+ $type: "companies.v1.RegisterOwnerResponse" as const,
134
+
135
+ encode(message: RegisterOwnerResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
136
+ if (message.companyId !== "") {
137
+ writer.uint32(10).string(message.companyId);
138
+ }
139
+ if (message.employeeId !== "") {
140
+ writer.uint32(18).string(message.employeeId);
141
+ }
142
+ if (message.subscriptionId !== "") {
143
+ writer.uint32(26).string(message.subscriptionId);
144
+ }
145
+ if (message.employeeCompanyId !== "") {
146
+ writer.uint32(34).string(message.employeeCompanyId);
147
+ }
148
+ return writer;
149
+ },
150
+
151
+ decode(input: BinaryReader | Uint8Array, length?: number): RegisterOwnerResponse {
152
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
153
+ const end = length === undefined ? reader.len : reader.pos + length;
154
+ const message = createBaseRegisterOwnerResponse();
155
+ while (reader.pos < end) {
156
+ const tag = reader.uint32();
157
+ switch (tag >>> 3) {
158
+ case 1: {
159
+ if (tag !== 10) {
160
+ break;
161
+ }
162
+
163
+ message.companyId = reader.string();
164
+ continue;
165
+ }
166
+ case 2: {
167
+ if (tag !== 18) {
168
+ break;
169
+ }
170
+
171
+ message.employeeId = reader.string();
172
+ continue;
173
+ }
174
+ case 3: {
175
+ if (tag !== 26) {
176
+ break;
177
+ }
178
+
179
+ message.subscriptionId = reader.string();
180
+ continue;
181
+ }
182
+ case 4: {
183
+ if (tag !== 34) {
184
+ break;
185
+ }
186
+
187
+ message.employeeCompanyId = reader.string();
188
+ continue;
189
+ }
190
+ }
191
+ if ((tag & 7) === 4 || tag === 0) {
192
+ break;
193
+ }
194
+ reader.skip(tag & 7);
195
+ }
196
+ return message;
197
+ },
198
+
199
+ fromJSON(object: any): RegisterOwnerResponse {
200
+ return {
201
+ $type: RegisterOwnerResponse.$type,
202
+ companyId: isSet(object.companyId)
203
+ ? globalThis.String(object.companyId)
204
+ : isSet(object.company_id)
205
+ ? globalThis.String(object.company_id)
206
+ : "",
207
+ employeeId: isSet(object.employeeId)
208
+ ? globalThis.String(object.employeeId)
209
+ : isSet(object.employee_id)
210
+ ? globalThis.String(object.employee_id)
211
+ : "",
212
+ subscriptionId: isSet(object.subscriptionId)
213
+ ? globalThis.String(object.subscriptionId)
214
+ : isSet(object.subscription_id)
215
+ ? globalThis.String(object.subscription_id)
216
+ : "",
217
+ employeeCompanyId: isSet(object.employeeCompanyId)
218
+ ? globalThis.String(object.employeeCompanyId)
219
+ : isSet(object.employee_company_id)
220
+ ? globalThis.String(object.employee_company_id)
221
+ : "",
222
+ };
223
+ },
224
+
225
+ toJSON(message: RegisterOwnerResponse): unknown {
226
+ const obj: any = {};
227
+ if (message.companyId !== "") {
228
+ obj.companyId = message.companyId;
229
+ }
230
+ if (message.employeeId !== "") {
231
+ obj.employeeId = message.employeeId;
232
+ }
233
+ if (message.subscriptionId !== "") {
234
+ obj.subscriptionId = message.subscriptionId;
235
+ }
236
+ if (message.employeeCompanyId !== "") {
237
+ obj.employeeCompanyId = message.employeeCompanyId;
238
+ }
239
+ return obj;
240
+ },
241
+
242
+ create<I extends Exact<DeepPartial<RegisterOwnerResponse>, I>>(base?: I): RegisterOwnerResponse {
243
+ return RegisterOwnerResponse.fromPartial(base ?? ({} as any));
244
+ },
245
+ fromPartial<I extends Exact<DeepPartial<RegisterOwnerResponse>, I>>(object: I): RegisterOwnerResponse {
246
+ const message = createBaseRegisterOwnerResponse();
247
+ message.companyId = object.companyId ?? "";
248
+ message.employeeId = object.employeeId ?? "";
249
+ message.subscriptionId = object.subscriptionId ?? "";
250
+ message.employeeCompanyId = object.employeeCompanyId ?? "";
251
+ return message;
252
+ },
253
+ };
254
+
255
+ export type OwnerServiceDefinition = typeof OwnerServiceDefinition;
256
+ export const OwnerServiceDefinition = {
257
+ name: "OwnerService",
258
+ fullName: "companies.v1.OwnerService",
259
+ methods: {
260
+ registerOwner: {
261
+ name: "RegisterOwner",
262
+ requestType: RegisterOwnerRequest as typeof RegisterOwnerRequest,
263
+ requestStream: false,
264
+ responseType: RegisterOwnerResponse as typeof RegisterOwnerResponse,
265
+ responseStream: false,
266
+ options: {},
267
+ },
268
+ registerOwnerCompensate: {
269
+ name: "RegisterOwnerCompensate",
270
+ requestType: RegisterOwnerResponse as typeof RegisterOwnerResponse,
271
+ requestStream: false,
272
+ responseType: StatusResponse as typeof StatusResponse,
273
+ responseStream: false,
274
+ options: {},
275
+ },
276
+ },
277
+ } as const;
278
+
279
+ export interface OwnerServiceImplementation<CallContextExt = {}> {
280
+ registerOwner(
281
+ request: RegisterOwnerRequest,
282
+ context: CallContext & CallContextExt,
283
+ ): Promise<DeepPartial<RegisterOwnerResponse>>;
284
+ registerOwnerCompensate(
285
+ request: RegisterOwnerResponse,
286
+ context: CallContext & CallContextExt,
287
+ ): Promise<DeepPartial<StatusResponse>>;
288
+ }
289
+
290
+ export interface OwnerServiceClient<CallOptionsExt = {}> {
291
+ registerOwner(
292
+ request: DeepPartial<RegisterOwnerRequest>,
293
+ options?: CallOptions & CallOptionsExt,
294
+ ): Promise<RegisterOwnerResponse>;
295
+ registerOwnerCompensate(
296
+ request: DeepPartial<RegisterOwnerResponse>,
297
+ options?: CallOptions & CallOptionsExt,
298
+ ): Promise<StatusResponse>;
299
+ }
300
+
301
+ type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
302
+
303
+ type DeepPartial<T> = T extends Builtin ? T
304
+ : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>>
305
+ : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>
306
+ : T extends { $case: string } ? { [K in keyof Omit<T, "$case">]?: DeepPartial<T[K]> } & { $case: T["$case"] }
307
+ : T extends {} ? { [K in Exclude<keyof T, "$type">]?: DeepPartial<T[K]> }
308
+ : Partial<T>;
309
+
310
+ type KeysOfUnion<T> = T extends T ? keyof T : never;
311
+ type Exact<P, I extends P> = P extends Builtin ? P
312
+ : P & { [K in keyof P]: Exact<P[K], I[K]> } & { [K in Exclude<keyof I, KeysOfUnion<P> | "$type">]: never };
313
+
314
+ function isSet(value: any): boolean {
315
+ return value !== null && value !== undefined;
316
+ }
317
+
318
+ interface MessageFns<T, V extends string> {
319
+ readonly $type: V;
320
+ encode(message: T, writer?: BinaryWriter): BinaryWriter;
321
+ decode(input: BinaryReader | Uint8Array, length?: number): T;
322
+ fromJSON(object: any): T;
323
+ toJSON(message: T): unknown;
324
+ create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
325
+ fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
326
+ }
@@ -0,0 +1,150 @@
1
+ // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
2
+ // versions:
3
+ // protoc-gen-ts_proto v2.11.5
4
+ // protoc unknown
5
+ // source: companies/v1/service.proto
6
+
7
+ /* eslint-disable */
8
+ import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
9
+ import type { CallContext, CallOptions } from "nice-grpc-common";
10
+ import { StatusResponse } from "../../common/v1/types";
11
+
12
+ export interface CheckUriRequest {
13
+ $type: "companies.v1.CheckUriRequest";
14
+ uri: string;
15
+ serviceId: string;
16
+ }
17
+
18
+ function createBaseCheckUriRequest(): CheckUriRequest {
19
+ return { $type: "companies.v1.CheckUriRequest", uri: "", serviceId: "" };
20
+ }
21
+
22
+ export const CheckUriRequest: MessageFns<CheckUriRequest, "companies.v1.CheckUriRequest"> = {
23
+ $type: "companies.v1.CheckUriRequest" as const,
24
+
25
+ encode(message: CheckUriRequest, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
26
+ if (message.uri !== "") {
27
+ writer.uint32(10).string(message.uri);
28
+ }
29
+ if (message.serviceId !== "") {
30
+ writer.uint32(18).string(message.serviceId);
31
+ }
32
+ return writer;
33
+ },
34
+
35
+ decode(input: BinaryReader | Uint8Array, length?: number): CheckUriRequest {
36
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
37
+ const end = length === undefined ? reader.len : reader.pos + length;
38
+ const message = createBaseCheckUriRequest();
39
+ while (reader.pos < end) {
40
+ const tag = reader.uint32();
41
+ switch (tag >>> 3) {
42
+ case 1: {
43
+ if (tag !== 10) {
44
+ break;
45
+ }
46
+
47
+ message.uri = reader.string();
48
+ continue;
49
+ }
50
+ case 2: {
51
+ if (tag !== 18) {
52
+ break;
53
+ }
54
+
55
+ message.serviceId = reader.string();
56
+ continue;
57
+ }
58
+ }
59
+ if ((tag & 7) === 4 || tag === 0) {
60
+ break;
61
+ }
62
+ reader.skip(tag & 7);
63
+ }
64
+ return message;
65
+ },
66
+
67
+ fromJSON(object: any): CheckUriRequest {
68
+ return {
69
+ $type: CheckUriRequest.$type,
70
+ uri: isSet(object.uri) ? globalThis.String(object.uri) : "",
71
+ serviceId: isSet(object.serviceId)
72
+ ? globalThis.String(object.serviceId)
73
+ : isSet(object.service_id)
74
+ ? globalThis.String(object.service_id)
75
+ : "",
76
+ };
77
+ },
78
+
79
+ toJSON(message: CheckUriRequest): unknown {
80
+ const obj: any = {};
81
+ if (message.uri !== "") {
82
+ obj.uri = message.uri;
83
+ }
84
+ if (message.serviceId !== "") {
85
+ obj.serviceId = message.serviceId;
86
+ }
87
+ return obj;
88
+ },
89
+
90
+ create<I extends Exact<DeepPartial<CheckUriRequest>, I>>(base?: I): CheckUriRequest {
91
+ return CheckUriRequest.fromPartial(base ?? ({} as any));
92
+ },
93
+ fromPartial<I extends Exact<DeepPartial<CheckUriRequest>, I>>(object: I): CheckUriRequest {
94
+ const message = createBaseCheckUriRequest();
95
+ message.uri = object.uri ?? "";
96
+ message.serviceId = object.serviceId ?? "";
97
+ return message;
98
+ },
99
+ };
100
+
101
+ export type ServiceServiceDefinition = typeof ServiceServiceDefinition;
102
+ export const ServiceServiceDefinition = {
103
+ name: "ServiceService",
104
+ fullName: "companies.v1.ServiceService",
105
+ methods: {
106
+ checkUri: {
107
+ name: "CheckUri",
108
+ requestType: CheckUriRequest as typeof CheckUriRequest,
109
+ requestStream: false,
110
+ responseType: StatusResponse as typeof StatusResponse,
111
+ responseStream: false,
112
+ options: {},
113
+ },
114
+ },
115
+ } as const;
116
+
117
+ export interface ServiceServiceImplementation<CallContextExt = {}> {
118
+ checkUri(request: CheckUriRequest, context: CallContext & CallContextExt): Promise<DeepPartial<StatusResponse>>;
119
+ }
120
+
121
+ export interface ServiceServiceClient<CallOptionsExt = {}> {
122
+ checkUri(request: DeepPartial<CheckUriRequest>, options?: CallOptions & CallOptionsExt): Promise<StatusResponse>;
123
+ }
124
+
125
+ type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
126
+
127
+ type DeepPartial<T> = T extends Builtin ? T
128
+ : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>>
129
+ : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>
130
+ : T extends { $case: string } ? { [K in keyof Omit<T, "$case">]?: DeepPartial<T[K]> } & { $case: T["$case"] }
131
+ : T extends {} ? { [K in Exclude<keyof T, "$type">]?: DeepPartial<T[K]> }
132
+ : Partial<T>;
133
+
134
+ type KeysOfUnion<T> = T extends T ? keyof T : never;
135
+ type Exact<P, I extends P> = P extends Builtin ? P
136
+ : P & { [K in keyof P]: Exact<P[K], I[K]> } & { [K in Exclude<keyof I, KeysOfUnion<P> | "$type">]: never };
137
+
138
+ function isSet(value: any): boolean {
139
+ return value !== null && value !== undefined;
140
+ }
141
+
142
+ interface MessageFns<T, V extends string> {
143
+ readonly $type: V;
144
+ encode(message: T, writer?: BinaryWriter): BinaryWriter;
145
+ decode(input: BinaryReader | Uint8Array, length?: number): T;
146
+ fromJSON(object: any): T;
147
+ toJSON(message: T): unknown;
148
+ create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
149
+ fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
150
+ }
@@ -0,0 +1,160 @@
1
+ // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
2
+ // versions:
3
+ // protoc-gen-ts_proto v2.11.5
4
+ // protoc unknown
5
+ // source: companies/v1/subscription.proto
6
+
7
+ /* eslint-disable */
8
+ import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
9
+ import type { CallContext, CallOptions } from "nice-grpc-common";
10
+ import { StatusResponse } from "../../common/v1/types";
11
+
12
+ export interface CheckSubscriptionRequest {
13
+ $type: "companies.v1.CheckSubscriptionRequest";
14
+ companyId: string;
15
+ serviceId: string;
16
+ }
17
+
18
+ function createBaseCheckSubscriptionRequest(): CheckSubscriptionRequest {
19
+ return { $type: "companies.v1.CheckSubscriptionRequest", companyId: "", serviceId: "" };
20
+ }
21
+
22
+ export const CheckSubscriptionRequest: MessageFns<CheckSubscriptionRequest, "companies.v1.CheckSubscriptionRequest"> = {
23
+ $type: "companies.v1.CheckSubscriptionRequest" as const,
24
+
25
+ encode(message: CheckSubscriptionRequest, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
26
+ if (message.companyId !== "") {
27
+ writer.uint32(10).string(message.companyId);
28
+ }
29
+ if (message.serviceId !== "") {
30
+ writer.uint32(18).string(message.serviceId);
31
+ }
32
+ return writer;
33
+ },
34
+
35
+ decode(input: BinaryReader | Uint8Array, length?: number): CheckSubscriptionRequest {
36
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
37
+ const end = length === undefined ? reader.len : reader.pos + length;
38
+ const message = createBaseCheckSubscriptionRequest();
39
+ while (reader.pos < end) {
40
+ const tag = reader.uint32();
41
+ switch (tag >>> 3) {
42
+ case 1: {
43
+ if (tag !== 10) {
44
+ break;
45
+ }
46
+
47
+ message.companyId = reader.string();
48
+ continue;
49
+ }
50
+ case 2: {
51
+ if (tag !== 18) {
52
+ break;
53
+ }
54
+
55
+ message.serviceId = reader.string();
56
+ continue;
57
+ }
58
+ }
59
+ if ((tag & 7) === 4 || tag === 0) {
60
+ break;
61
+ }
62
+ reader.skip(tag & 7);
63
+ }
64
+ return message;
65
+ },
66
+
67
+ fromJSON(object: any): CheckSubscriptionRequest {
68
+ return {
69
+ $type: CheckSubscriptionRequest.$type,
70
+ companyId: isSet(object.companyId)
71
+ ? globalThis.String(object.companyId)
72
+ : isSet(object.company_id)
73
+ ? globalThis.String(object.company_id)
74
+ : "",
75
+ serviceId: isSet(object.serviceId)
76
+ ? globalThis.String(object.serviceId)
77
+ : isSet(object.service_id)
78
+ ? globalThis.String(object.service_id)
79
+ : "",
80
+ };
81
+ },
82
+
83
+ toJSON(message: CheckSubscriptionRequest): unknown {
84
+ const obj: any = {};
85
+ if (message.companyId !== "") {
86
+ obj.companyId = message.companyId;
87
+ }
88
+ if (message.serviceId !== "") {
89
+ obj.serviceId = message.serviceId;
90
+ }
91
+ return obj;
92
+ },
93
+
94
+ create<I extends Exact<DeepPartial<CheckSubscriptionRequest>, I>>(base?: I): CheckSubscriptionRequest {
95
+ return CheckSubscriptionRequest.fromPartial(base ?? ({} as any));
96
+ },
97
+ fromPartial<I extends Exact<DeepPartial<CheckSubscriptionRequest>, I>>(object: I): CheckSubscriptionRequest {
98
+ const message = createBaseCheckSubscriptionRequest();
99
+ message.companyId = object.companyId ?? "";
100
+ message.serviceId = object.serviceId ?? "";
101
+ return message;
102
+ },
103
+ };
104
+
105
+ export type SubscriptionServiceDefinition = typeof SubscriptionServiceDefinition;
106
+ export const SubscriptionServiceDefinition = {
107
+ name: "SubscriptionService",
108
+ fullName: "companies.v1.SubscriptionService",
109
+ methods: {
110
+ checkSubscription: {
111
+ name: "CheckSubscription",
112
+ requestType: CheckSubscriptionRequest as typeof CheckSubscriptionRequest,
113
+ requestStream: false,
114
+ responseType: StatusResponse as typeof StatusResponse,
115
+ responseStream: false,
116
+ options: {},
117
+ },
118
+ },
119
+ } as const;
120
+
121
+ export interface SubscriptionServiceImplementation<CallContextExt = {}> {
122
+ checkSubscription(
123
+ request: CheckSubscriptionRequest,
124
+ context: CallContext & CallContextExt,
125
+ ): Promise<DeepPartial<StatusResponse>>;
126
+ }
127
+
128
+ export interface SubscriptionServiceClient<CallOptionsExt = {}> {
129
+ checkSubscription(
130
+ request: DeepPartial<CheckSubscriptionRequest>,
131
+ options?: CallOptions & CallOptionsExt,
132
+ ): Promise<StatusResponse>;
133
+ }
134
+
135
+ type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
136
+
137
+ type DeepPartial<T> = T extends Builtin ? T
138
+ : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>>
139
+ : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>
140
+ : T extends { $case: string } ? { [K in keyof Omit<T, "$case">]?: DeepPartial<T[K]> } & { $case: T["$case"] }
141
+ : T extends {} ? { [K in Exclude<keyof T, "$type">]?: DeepPartial<T[K]> }
142
+ : Partial<T>;
143
+
144
+ type KeysOfUnion<T> = T extends T ? keyof T : never;
145
+ type Exact<P, I extends P> = P extends Builtin ? P
146
+ : P & { [K in keyof P]: Exact<P[K], I[K]> } & { [K in Exclude<keyof I, KeysOfUnion<P> | "$type">]: never };
147
+
148
+ function isSet(value: any): boolean {
149
+ return value !== null && value !== undefined;
150
+ }
151
+
152
+ interface MessageFns<T, V extends string> {
153
+ readonly $type: V;
154
+ encode(message: T, writer?: BinaryWriter): BinaryWriter;
155
+ decode(input: BinaryReader | Uint8Array, length?: number): T;
156
+ fromJSON(object: any): T;
157
+ toJSON(message: T): unknown;
158
+ create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
159
+ fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
160
+ }
@@ -0,0 +1,8 @@
1
+ // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
2
+ // versions:
3
+ // protoc-gen-ts_proto v2.11.5
4
+ // protoc unknown
5
+
6
+ /* eslint-disable */
7
+
8
+ export * as v1 from "./index.auth.v1";
@@ -0,0 +1,12 @@
1
+ // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
2
+ // versions:
3
+ // protoc-gen-ts_proto v2.11.5
4
+ // protoc unknown
5
+
6
+ /* eslint-disable */
7
+
8
+ export * from "./auth/v1/common";
9
+ export * from "./auth/v1/user_policy";
10
+ export * from "./auth/v1/verification";
11
+ export * from "./auth/v1/auth";
12
+ export * from "./auth/v1/permission";
@@ -0,0 +1,8 @@
1
+ // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
2
+ // versions:
3
+ // protoc-gen-ts_proto v2.11.5
4
+ // protoc unknown
5
+
6
+ /* eslint-disable */
7
+
8
+ export * as v1 from "./index.common.v1";
@@ -0,0 +1,8 @@
1
+ // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
2
+ // versions:
3
+ // protoc-gen-ts_proto v2.11.5
4
+ // protoc unknown
5
+
6
+ /* eslint-disable */
7
+
8
+ export * from "./common/v1/types";
@@ -0,0 +1,8 @@
1
+ // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
2
+ // versions:
3
+ // protoc-gen-ts_proto v2.11.5
4
+ // protoc unknown
5
+
6
+ /* eslint-disable */
7
+
8
+ export * as v1 from "./index.companies.v1";
@@ -0,0 +1,11 @@
1
+ // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
2
+ // versions:
3
+ // protoc-gen-ts_proto v2.11.5
4
+ // protoc unknown
5
+
6
+ /* eslint-disable */
7
+
8
+ export * from "./companies/v1/employee";
9
+ export * from "./companies/v1/owner";
10
+ export * from "./companies/v1/service";
11
+ export * from "./companies/v1/subscription";