Debian Codegraph @

js/svc/organization/v1/service_pb.ts

raw symbols SCIP
1 // @generated by protoc-gen-es v1.10.0 with parameter "target=ts,import_extension=none"
2 // @generated from file svc/organization/v1/service.proto (package svc.organization.v1, syntax proto3)
3 /* eslint-disable */
4 // @ts-nocheck
5
6 import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
7 import { Message, proto3, protoInt64 } from "@bufbuild/protobuf";
8 import { Environment } from "../../../types/v1/environment_pb";
9 import { Cursor } from "../../../types/v1/cursor_pb";
10 import { Product } from "../../../types/v1/product_pb";
11 import { User } from "../../../types/v1/user_pb";
12 import { Subscription } from "../../../types/v1/subscription_pb";
13 import { PaymentMethod } from "../../../types/v1/payment_method_pb";
14
15 /**
16 * @generated from message svc.organization.v1.CreateEnvironmentRequest
17 */
18 export class CreateEnvironmentRequest extends Message<CreateEnvironmentRequest> {
19 /**
20 * @generated from field: string environment_name = 1;
21 */
22 environmentName = "";
23
24 /**
25 * @generated from oneof svc.organization.v1.CreateEnvironmentRequest.payment
26 */
27 payment: {
28 /**
29 * @generated from field: svc.organization.v1.CreateEnvironmentRequest.Stripe stripe = 201;
30 */
31 value: CreateEnvironmentRequest_Stripe;
32 case: "stripe";
33 } | { case: undefined; value?: undefined } = { case: undefined };
34
35 constructor(data?: PartialMessage<CreateEnvironmentRequest>) {
36 super();
37 proto3.util.initPartial(data, this);
38 }
39
40 static readonly runtime: typeof proto3 = proto3;
41 static readonly typeName = "svc.organization.v1.CreateEnvironmentRequest";
42 static readonly fields: FieldList = proto3.util.newFieldList(() => [
43 { no: 1, name: "environment_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
44 { no: 201, name: "stripe", kind: "message", T: CreateEnvironmentRequest_Stripe, oneof: "payment" },
45 ]);
46
47 static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CreateEnvironmentRequest {
48 return new CreateEnvironmentRequest().fromBinary(bytes, options);
49 }
50
51 static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CreateEnvironmentRequest {
52 return new CreateEnvironmentRequest().fromJson(jsonValue, options);
53 }
54
55 static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CreateEnvironmentRequest {
56 return new CreateEnvironmentRequest().fromJsonString(jsonString, options);
57 }
58
59 static equals(a: CreateEnvironmentRequest | PlainMessage<CreateEnvironmentRequest> | undefined, b: CreateEnvironmentRequest | PlainMessage<CreateEnvironmentRequest> | undefined): boolean {
60 return proto3.util.equals(CreateEnvironmentRequest, a, b);
61 }
62 }
63
64 /**
65 * @generated from message svc.organization.v1.CreateEnvironmentRequest.Stripe
66 */
67 export class CreateEnvironmentRequest_Stripe extends Message<CreateEnvironmentRequest_Stripe> {
68 /**
69 * @generated from field: string confirmation_token = 1;
70 */
71 confirmationToken = "";
72
73 /**
74 * @generated from field: string price_id = 2;
75 */
76 priceId = "";
77
78 constructor(data?: PartialMessage<CreateEnvironmentRequest_Stripe>) {
79 super();
80 proto3.util.initPartial(data, this);
81 }
82
83 static readonly runtime: typeof proto3 = proto3;
84 static readonly typeName = "svc.organization.v1.CreateEnvironmentRequest.Stripe";
85 static readonly fields: FieldList = proto3.util.newFieldList(() => [
86 { no: 1, name: "confirmation_token", kind: "scalar", T: 9 /* ScalarType.STRING */ },
87 { no: 2, name: "price_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
88 ]);
89
90 static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CreateEnvironmentRequest_Stripe {
91 return new CreateEnvironmentRequest_Stripe().fromBinary(bytes, options);
92 }
93
94 static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CreateEnvironmentRequest_Stripe {
95 return new CreateEnvironmentRequest_Stripe().fromJson(jsonValue, options);
96 }
97
98 static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CreateEnvironmentRequest_Stripe {
99 return new CreateEnvironmentRequest_Stripe().fromJsonString(jsonString, options);
100 }
101
102 static equals(a: CreateEnvironmentRequest_Stripe | PlainMessage<CreateEnvironmentRequest_Stripe> | undefined, b: CreateEnvironmentRequest_Stripe | PlainMessage<CreateEnvironmentRequest_Stripe> | undefined): boolean {
103 return proto3.util.equals(CreateEnvironmentRequest_Stripe, a, b);
104 }
105 }
106
107 /**
108 * @generated from message svc.organization.v1.CreateEnvironmentResponse
109 */
110 export class CreateEnvironmentResponse extends Message<CreateEnvironmentResponse> {
111 /**
112 * @generated from field: types.v1.Environment environment = 1;
113 */
114 environment?: Environment;
115
116 /**
117 * @generated from oneof svc.organization.v1.CreateEnvironmentResponse.payment
118 */
119 payment: {
120 /**
121 * @generated from field: svc.organization.v1.CreateEnvironmentResponse.Stripe stripe = 201;
122 */
123 value: CreateEnvironmentResponse_Stripe;
124 case: "stripe";
125 } | { case: undefined; value?: undefined } = { case: undefined };
126
127 constructor(data?: PartialMessage<CreateEnvironmentResponse>) {
128 super();
129 proto3.util.initPartial(data, this);
130 }
131
132 static readonly runtime: typeof proto3 = proto3;
133 static readonly typeName = "svc.organization.v1.CreateEnvironmentResponse";
134 static readonly fields: FieldList = proto3.util.newFieldList(() => [
135 { no: 1, name: "environment", kind: "message", T: Environment },
136 { no: 201, name: "stripe", kind: "message", T: CreateEnvironmentResponse_Stripe, oneof: "payment" },
137 ]);
138
139 static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CreateEnvironmentResponse {
140 return new CreateEnvironmentResponse().fromBinary(bytes, options);
141 }
142
143 static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CreateEnvironmentResponse {
144 return new CreateEnvironmentResponse().fromJson(jsonValue, options);
145 }
146
147 static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CreateEnvironmentResponse {
148 return new CreateEnvironmentResponse().fromJsonString(jsonString, options);
149 }
150
151 static equals(a: CreateEnvironmentResponse | PlainMessage<CreateEnvironmentResponse> | undefined, b: CreateEnvironmentResponse | PlainMessage<CreateEnvironmentResponse> | undefined): boolean {
152 return proto3.util.equals(CreateEnvironmentResponse, a, b);
153 }
154 }
155
156 /**
157 * @generated from message svc.organization.v1.CreateEnvironmentResponse.Stripe
158 */
159 export class CreateEnvironmentResponse_Stripe extends Message<CreateEnvironmentResponse_Stripe> {
160 /**
161 * @generated from field: string status = 1;
162 */
163 status = "";
164
165 /**
166 * @generated from field: string client_secret = 2;
167 */
168 clientSecret = "";
169
170 constructor(data?: PartialMessage<CreateEnvironmentResponse_Stripe>) {
171 super();
172 proto3.util.initPartial(data, this);
173 }
174
175 static readonly runtime: typeof proto3 = proto3;
176 static readonly typeName = "svc.organization.v1.CreateEnvironmentResponse.Stripe";
177 static readonly fields: FieldList = proto3.util.newFieldList(() => [
178 { no: 1, name: "status", kind: "scalar", T: 9 /* ScalarType.STRING */ },
179 { no: 2, name: "client_secret", kind: "scalar", T: 9 /* ScalarType.STRING */ },
180 ]);
181
182 static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CreateEnvironmentResponse_Stripe {
183 return new CreateEnvironmentResponse_Stripe().fromBinary(bytes, options);
184 }
185
186 static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CreateEnvironmentResponse_Stripe {
187 return new CreateEnvironmentResponse_Stripe().fromJson(jsonValue, options);
188 }
189
190 static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CreateEnvironmentResponse_Stripe {
191 return new CreateEnvironmentResponse_Stripe().fromJsonString(jsonString, options);
192 }
193
194 static equals(a: CreateEnvironmentResponse_Stripe | PlainMessage<CreateEnvironmentResponse_Stripe> | undefined, b: CreateEnvironmentResponse_Stripe | PlainMessage<CreateEnvironmentResponse_Stripe> | undefined): boolean {
195 return proto3.util.equals(CreateEnvironmentResponse_Stripe, a, b);
196 }
197 }
198
199 /**
200 * @generated from message svc.organization.v1.GetEnvironmentRequest
201 */
202 export class GetEnvironmentRequest extends Message<GetEnvironmentRequest> {
203 /**
204 * @generated from oneof svc.organization.v1.GetEnvironmentRequest.by
205 */
206 by: {
207 /**
208 * @generated from field: int64 id = 1;
209 */
210 value: bigint;
211 case: "id";
212 } | {
213 /**
214 * @generated from field: string name = 2;
215 */
216 value: string;
217 case: "name";
218 } | { case: undefined; value?: undefined } = { case: undefined };
219
220 constructor(data?: PartialMessage<GetEnvironmentRequest>) {
221 super();
222 proto3.util.initPartial(data, this);
223 }
224
225 static readonly runtime: typeof proto3 = proto3;
226 static readonly typeName = "svc.organization.v1.GetEnvironmentRequest";
227 static readonly fields: FieldList = proto3.util.newFieldList(() => [
228 { no: 1, name: "id", kind: "scalar", T: 3 /* ScalarType.INT64 */, oneof: "by" },
229 { no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "by" },
230 ]);
231
232 static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetEnvironmentRequest {
233 return new GetEnvironmentRequest().fromBinary(bytes, options);
234 }
235
236 static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetEnvironmentRequest {
237 return new GetEnvironmentRequest().fromJson(jsonValue, options);
238 }
239
240 static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetEnvironmentRequest {
241 return new GetEnvironmentRequest().fromJsonString(jsonString, options);
242 }
243
244 static equals(a: GetEnvironmentRequest | PlainMessage<GetEnvironmentRequest> | undefined, b: GetEnvironmentRequest | PlainMessage<GetEnvironmentRequest> | undefined): boolean {
245 return proto3.util.equals(GetEnvironmentRequest, a, b);
246 }
247 }
248
249 /**
250 * @generated from message svc.organization.v1.GetEnvironmentResponse
251 */
252 export class GetEnvironmentResponse extends Message<GetEnvironmentResponse> {
253 /**
254 * @generated from field: types.v1.Environment environment = 1;
255 */
256 environment?: Environment;
257
258 constructor(data?: PartialMessage<GetEnvironmentResponse>) {
259 super();
260 proto3.util.initPartial(data, this);
261 }
262
263 static readonly runtime: typeof proto3 = proto3;
264 static readonly typeName = "svc.organization.v1.GetEnvironmentResponse";
265 static readonly fields: FieldList = proto3.util.newFieldList(() => [
266 { no: 1, name: "environment", kind: "message", T: Environment },
267 ]);
268
269 static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetEnvironmentResponse {
270 return new GetEnvironmentResponse().fromBinary(bytes, options);
271 }
272
273 static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetEnvironmentResponse {
274 return new GetEnvironmentResponse().fromJson(jsonValue, options);
275 }
276
277 static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetEnvironmentResponse {
278 return new GetEnvironmentResponse().fromJsonString(jsonString, options);
279 }
280
281 static equals(a: GetEnvironmentResponse | PlainMessage<GetEnvironmentResponse> | undefined, b: GetEnvironmentResponse | PlainMessage<GetEnvironmentResponse> | undefined): boolean {
282 return proto3.util.equals(GetEnvironmentResponse, a, b);
283 }
284 }
285
286 /**
287 * @generated from message svc.organization.v1.ListEnvironmentRequest
288 */
289 export class ListEnvironmentRequest extends Message<ListEnvironmentRequest> {
290 /**
291 * @generated from field: types.v1.Cursor cursor = 1;
292 */
293 cursor?: Cursor;
294
295 /**
296 * @generated from field: int32 limit = 2;
297 */
298 limit = 0;
299
300 constructor(data?: PartialMessage<ListEnvironmentRequest>) {
301 super();
302 proto3.util.initPartial(data, this);
303 }
304
305 static readonly runtime: typeof proto3 = proto3;
306 static readonly typeName = "svc.organization.v1.ListEnvironmentRequest";
307 static readonly fields: FieldList = proto3.util.newFieldList(() => [
308 { no: 1, name: "cursor", kind: "message", T: Cursor },
309 { no: 2, name: "limit", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
310 ]);
311
312 static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListEnvironmentRequest {
313 return new ListEnvironmentRequest().fromBinary(bytes, options);
314 }
315
316 static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListEnvironmentRequest {
317 return new ListEnvironmentRequest().fromJson(jsonValue, options);
318 }
319
320 static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListEnvironmentRequest {
321 return new ListEnvironmentRequest().fromJsonString(jsonString, options);
322 }
323
324 static equals(a: ListEnvironmentRequest | PlainMessage<ListEnvironmentRequest> | undefined, b: ListEnvironmentRequest | PlainMessage<ListEnvironmentRequest> | undefined): boolean {
325 return proto3.util.equals(ListEnvironmentRequest, a, b);
326 }
327 }
328
329 /**
330 * @generated from message svc.organization.v1.ListEnvironmentResponse
331 */
332 export class ListEnvironmentResponse extends Message<ListEnvironmentResponse> {
333 /**
334 * @generated from field: types.v1.Cursor next = 1;
335 */
336 next?: Cursor;
337
338 /**
339 * @generated from field: repeated svc.organization.v1.ListEnvironmentResponse.ListItem items = 2;
340 */
341 items: ListEnvironmentResponse_ListItem[] = [];
342
343 constructor(data?: PartialMessage<ListEnvironmentResponse>) {
344 super();
345 proto3.util.initPartial(data, this);
346 }
347
348 static readonly runtime: typeof proto3 = proto3;
349 static readonly typeName = "svc.organization.v1.ListEnvironmentResponse";
350 static readonly fields: FieldList = proto3.util.newFieldList(() => [
351 { no: 1, name: "next", kind: "message", T: Cursor },
352 { no: 2, name: "items", kind: "message", T: ListEnvironmentResponse_ListItem, repeated: true },
353 ]);
354
355 static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListEnvironmentResponse {
356 return new ListEnvironmentResponse().fromBinary(bytes, options);
357 }
358
359 static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListEnvironmentResponse {
360 return new ListEnvironmentResponse().fromJson(jsonValue, options);
361 }
362
363 static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListEnvironmentResponse {
364 return new ListEnvironmentResponse().fromJsonString(jsonString, options);
365 }
366
367 static equals(a: ListEnvironmentResponse | PlainMessage<ListEnvironmentResponse> | undefined, b: ListEnvironmentResponse | PlainMessage<ListEnvironmentResponse> | undefined): boolean {
368 return proto3.util.equals(ListEnvironmentResponse, a, b);
369 }
370 }
371
372 /**
373 * @generated from message svc.organization.v1.ListEnvironmentResponse.ListItem
374 */
375 export class ListEnvironmentResponse_ListItem extends Message<ListEnvironmentResponse_ListItem> {
376 /**
377 * @generated from field: types.v1.Environment environment = 1;
378 */
379 environment?: Environment;
380
381 /**
382 * @generated from field: types.v1.Product product = 2;
383 */
384 product?: Product;
385
386 constructor(data?: PartialMessage<ListEnvironmentResponse_ListItem>) {
387 super();
388 proto3.util.initPartial(data, this);
389 }
390
391 static readonly runtime: typeof proto3 = proto3;
392 static readonly typeName = "svc.organization.v1.ListEnvironmentResponse.ListItem";
393 static readonly fields: FieldList = proto3.util.newFieldList(() => [
394 { no: 1, name: "environment", kind: "message", T: Environment },
395 { no: 2, name: "product", kind: "message", T: Product },
396 ]);
397
398 static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListEnvironmentResponse_ListItem {
399 return new ListEnvironmentResponse_ListItem().fromBinary(bytes, options);
400 }
401
402 static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListEnvironmentResponse_ListItem {
403 return new ListEnvironmentResponse_ListItem().fromJson(jsonValue, options);
404 }
405
406 static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListEnvironmentResponse_ListItem {
407 return new ListEnvironmentResponse_ListItem().fromJsonString(jsonString, options);
408 }
409
410 static equals(a: ListEnvironmentResponse_ListItem | PlainMessage<ListEnvironmentResponse_ListItem> | undefined, b: ListEnvironmentResponse_ListItem | PlainMessage<ListEnvironmentResponse_ListItem> | undefined): boolean {
411 return proto3.util.equals(ListEnvironmentResponse_ListItem, a, b);
412 }
413 }
414
415 /**
416 * @generated from message svc.organization.v1.ListUserRequest
417 */
418 export class ListUserRequest extends Message<ListUserRequest> {
419 /**
420 * @generated from field: types.v1.Cursor cursor = 1;
421 */
422 cursor?: Cursor;
423
424 /**
425 * @generated from field: int32 limit = 2;
426 */
427 limit = 0;
428
429 constructor(data?: PartialMessage<ListUserRequest>) {
430 super();
431 proto3.util.initPartial(data, this);
432 }
433
434 static readonly runtime: typeof proto3 = proto3;
435 static readonly typeName = "svc.organization.v1.ListUserRequest";
436 static readonly fields: FieldList = proto3.util.newFieldList(() => [
437 { no: 1, name: "cursor", kind: "message", T: Cursor },
438 { no: 2, name: "limit", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
439 ]);
440
441 static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListUserRequest {
442 return new ListUserRequest().fromBinary(bytes, options);
443 }
444
445 static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListUserRequest {
446 return new ListUserRequest().fromJson(jsonValue, options);
447 }
448
449 static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListUserRequest {
450 return new ListUserRequest().fromJsonString(jsonString, options);
451 }
452
453 static equals(a: ListUserRequest | PlainMessage<ListUserRequest> | undefined, b: ListUserRequest | PlainMessage<ListUserRequest> | undefined): boolean {
454 return proto3.util.equals(ListUserRequest, a, b);
455 }
456 }
457
458 /**
459 * @generated from message svc.organization.v1.ListUserResponse
460 */
461 export class ListUserResponse extends Message<ListUserResponse> {
462 /**
463 * @generated from field: types.v1.Cursor next = 1;
464 */
465 next?: Cursor;
466
467 /**
468 * @generated from field: repeated svc.organization.v1.ListUserResponse.ListItem items = 2;
469 */
470 items: ListUserResponse_ListItem[] = [];
471
472 constructor(data?: PartialMessage<ListUserResponse>) {
473 super();
474 proto3.util.initPartial(data, this);
475 }
476
477 static readonly runtime: typeof proto3 = proto3;
478 static readonly typeName = "svc.organization.v1.ListUserResponse";
479 static readonly fields: FieldList = proto3.util.newFieldList(() => [
480 { no: 1, name: "next", kind: "message", T: Cursor },
481 { no: 2, name: "items", kind: "message", T: ListUserResponse_ListItem, repeated: true },
482 ]);
483
484 static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListUserResponse {
485 return new ListUserResponse().fromBinary(bytes, options);
486 }
487
488 static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListUserResponse {
489 return new ListUserResponse().fromJson(jsonValue, options);
490 }
491
492 static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListUserResponse {
493 return new ListUserResponse().fromJsonString(jsonString, options);
494 }
495
496 static equals(a: ListUserResponse | PlainMessage<ListUserResponse> | undefined, b: ListUserResponse | PlainMessage<ListUserResponse> | undefined): boolean {
497 return proto3.util.equals(ListUserResponse, a, b);
498 }
499 }
500
501 /**
502 * @generated from message svc.organization.v1.ListUserResponse.ListItem
503 */
504 export class ListUserResponse_ListItem extends Message<ListUserResponse_ListItem> {
505 /**
506 * @generated from field: types.v1.User user = 1;
507 */
508 user?: User;
509
510 constructor(data?: PartialMessage<ListUserResponse_ListItem>) {
511 super();
512 proto3.util.initPartial(data, this);
513 }
514
515 static readonly runtime: typeof proto3 = proto3;
516 static readonly typeName = "svc.organization.v1.ListUserResponse.ListItem";
517 static readonly fields: FieldList = proto3.util.newFieldList(() => [
518 { no: 1, name: "user", kind: "message", T: User },
519 ]);
520
521 static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListUserResponse_ListItem {
522 return new ListUserResponse_ListItem().fromBinary(bytes, options);
523 }
524
525 static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListUserResponse_ListItem {
526 return new ListUserResponse_ListItem().fromJson(jsonValue, options);
527 }
528
529 static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListUserResponse_ListItem {
530 return new ListUserResponse_ListItem().fromJsonString(jsonString, options);
531 }
532
533 static equals(a: ListUserResponse_ListItem | PlainMessage<ListUserResponse_ListItem> | undefined, b: ListUserResponse_ListItem | PlainMessage<ListUserResponse_ListItem> | undefined): boolean {
534 return proto3.util.equals(ListUserResponse_ListItem, a, b);
535 }
536 }
537
538 /**
539 * @generated from message svc.organization.v1.InviteUserRequest
540 */
541 export class InviteUserRequest extends Message<InviteUserRequest> {
542 /**
543 * @generated from field: int64 user_email = 1;
544 */
545 userEmail = protoInt64.zero;
546
547 constructor(data?: PartialMessage<InviteUserRequest>) {
548 super();
549 proto3.util.initPartial(data, this);
550 }
551
552 static readonly runtime: typeof proto3 = proto3;
553 static readonly typeName = "svc.organization.v1.InviteUserRequest";
554 static readonly fields: FieldList = proto3.util.newFieldList(() => [
555 { no: 1, name: "user_email", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
556 ]);
557
558 static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): InviteUserRequest {
559 return new InviteUserRequest().fromBinary(bytes, options);
560 }
561
562 static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): InviteUserRequest {
563 return new InviteUserRequest().fromJson(jsonValue, options);
564 }
565
566 static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): InviteUserRequest {
567 return new InviteUserRequest().fromJsonString(jsonString, options);
568 }
569
570 static equals(a: InviteUserRequest | PlainMessage<InviteUserRequest> | undefined, b: InviteUserRequest | PlainMessage<InviteUserRequest> | undefined): boolean {
571 return proto3.util.equals(InviteUserRequest, a, b);
572 }
573 }
574
575 /**
576 * @generated from message svc.organization.v1.InviteUserResponse
577 */
578 export class InviteUserResponse extends Message<InviteUserResponse> {
579 constructor(data?: PartialMessage<InviteUserResponse>) {
580 super();
581 proto3.util.initPartial(data, this);
582 }
583
584 static readonly runtime: typeof proto3 = proto3;
585 static readonly typeName = "svc.organization.v1.InviteUserResponse";
586 static readonly fields: FieldList = proto3.util.newFieldList(() => [
587 ]);
588
589 static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): InviteUserResponse {
590 return new InviteUserResponse().fromBinary(bytes, options);
591 }
592
593 static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): InviteUserResponse {
594 return new InviteUserResponse().fromJson(jsonValue, options);
595 }
596
597 static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): InviteUserResponse {
598 return new InviteUserResponse().fromJsonString(jsonString, options);
599 }
600
601 static equals(a: InviteUserResponse | PlainMessage<InviteUserResponse> | undefined, b: InviteUserResponse | PlainMessage<InviteUserResponse> | undefined): boolean {
602 return proto3.util.equals(InviteUserResponse, a, b);
603 }
604 }
605
606 /**
607 * @generated from message svc.organization.v1.RevokeUserRequest
608 */
609 export class RevokeUserRequest extends Message<RevokeUserRequest> {
610 /**
611 * @generated from field: int64 user_id = 1;
612 */
613 userId = protoInt64.zero;
614
615 constructor(data?: PartialMessage<RevokeUserRequest>) {
616 super();
617 proto3.util.initPartial(data, this);
618 }
619
620 static readonly runtime: typeof proto3 = proto3;
621 static readonly typeName = "svc.organization.v1.RevokeUserRequest";
622 static readonly fields: FieldList = proto3.util.newFieldList(() => [
623 { no: 1, name: "user_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
624 ]);
625
626 static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RevokeUserRequest {
627 return new RevokeUserRequest().fromBinary(bytes, options);
628 }
629
630 static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RevokeUserRequest {
631 return new RevokeUserRequest().fromJson(jsonValue, options);
632 }
633
634 static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RevokeUserRequest {
635 return new RevokeUserRequest().fromJsonString(jsonString, options);
636 }
637
638 static equals(a: RevokeUserRequest | PlainMessage<RevokeUserRequest> | undefined, b: RevokeUserRequest | PlainMessage<RevokeUserRequest> | undefined): boolean {
639 return proto3.util.equals(RevokeUserRequest, a, b);
640 }
641 }
642
643 /**
644 * @generated from message svc.organization.v1.RevokeUserResponse
645 */
646 export class RevokeUserResponse extends Message<RevokeUserResponse> {
647 constructor(data?: PartialMessage<RevokeUserResponse>) {
648 super();
649 proto3.util.initPartial(data, this);
650 }
651
652 static readonly runtime: typeof proto3 = proto3;
653 static readonly typeName = "svc.organization.v1.RevokeUserResponse";
654 static readonly fields: FieldList = proto3.util.newFieldList(() => [
655 ]);
656
657 static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RevokeUserResponse {
658 return new RevokeUserResponse().fromBinary(bytes, options);
659 }
660
661 static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RevokeUserResponse {
662 return new RevokeUserResponse().fromJson(jsonValue, options);
663 }
664
665 static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RevokeUserResponse {
666 return new RevokeUserResponse().fromJsonString(jsonString, options);
667 }
668
669 static equals(a: RevokeUserResponse | PlainMessage<RevokeUserResponse> | undefined, b: RevokeUserResponse | PlainMessage<RevokeUserResponse> | undefined): boolean {
670 return proto3.util.equals(RevokeUserResponse, a, b);
671 }
672 }
673
674 /**
675 * @generated from message svc.organization.v1.CreateAddonSubscriptionRequest
676 */
677 export class CreateAddonSubscriptionRequest extends Message<CreateAddonSubscriptionRequest> {
678 /**
679 * @generated from oneof svc.organization.v1.CreateAddonSubscriptionRequest.payment
680 */
681 payment: {
682 /**
683 * @generated from field: svc.organization.v1.CreateAddonSubscriptionRequest.Stripe stripe = 201;
684 */
685 value: CreateAddonSubscriptionRequest_Stripe;
686 case: "stripe";
687 } | { case: undefined; value?: undefined } = { case: undefined };
688
689 constructor(data?: PartialMessage<CreateAddonSubscriptionRequest>) {
690 super();
691 proto3.util.initPartial(data, this);
692 }
693
694 static readonly runtime: typeof proto3 = proto3;
695 static readonly typeName = "svc.organization.v1.CreateAddonSubscriptionRequest";
696 static readonly fields: FieldList = proto3.util.newFieldList(() => [
697 { no: 201, name: "stripe", kind: "message", T: CreateAddonSubscriptionRequest_Stripe, oneof: "payment" },
698 ]);
699
700 static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CreateAddonSubscriptionRequest {
701 return new CreateAddonSubscriptionRequest().fromBinary(bytes, options);
702 }
703
704 static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CreateAddonSubscriptionRequest {
705 return new CreateAddonSubscriptionRequest().fromJson(jsonValue, options);
706 }
707
708 static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CreateAddonSubscriptionRequest {
709 return new CreateAddonSubscriptionRequest().fromJsonString(jsonString, options);
710 }
711
712 static equals(a: CreateAddonSubscriptionRequest | PlainMessage<CreateAddonSubscriptionRequest> | undefined, b: CreateAddonSubscriptionRequest | PlainMessage<CreateAddonSubscriptionRequest> | undefined): boolean {
713 return proto3.util.equals(CreateAddonSubscriptionRequest, a, b);
714 }
715 }
716
717 /**
718 * @generated from message svc.organization.v1.CreateAddonSubscriptionRequest.Stripe
719 */
720 export class CreateAddonSubscriptionRequest_Stripe extends Message<CreateAddonSubscriptionRequest_Stripe> {
721 /**
722 * @generated from field: string confirmation_token = 1;
723 */
724 confirmationToken = "";
725
726 /**
727 * @generated from field: string price_id = 2;
728 */
729 priceId = "";
730
731 constructor(data?: PartialMessage<CreateAddonSubscriptionRequest_Stripe>) {
732 super();
733 proto3.util.initPartial(data, this);
734 }
735
736 static readonly runtime: typeof proto3 = proto3;
737 static readonly typeName = "svc.organization.v1.CreateAddonSubscriptionRequest.Stripe";
738 static readonly fields: FieldList = proto3.util.newFieldList(() => [
739 { no: 1, name: "confirmation_token", kind: "scalar", T: 9 /* ScalarType.STRING */ },
740 { no: 2, name: "price_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
741 ]);
742
743 static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CreateAddonSubscriptionRequest_Stripe {
744 return new CreateAddonSubscriptionRequest_Stripe().fromBinary(bytes, options);
745 }
746
747 static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CreateAddonSubscriptionRequest_Stripe {
748 return new CreateAddonSubscriptionRequest_Stripe().fromJson(jsonValue, options);
749 }
750
751 static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CreateAddonSubscriptionRequest_Stripe {
752 return new CreateAddonSubscriptionRequest_Stripe().fromJsonString(jsonString, options);
753 }
754
755 static equals(a: CreateAddonSubscriptionRequest_Stripe | PlainMessage<CreateAddonSubscriptionRequest_Stripe> | undefined, b: CreateAddonSubscriptionRequest_Stripe | PlainMessage<CreateAddonSubscriptionRequest_Stripe> | undefined): boolean {
756 return proto3.util.equals(CreateAddonSubscriptionRequest_Stripe, a, b);
757 }
758 }
759
760 /**
761 * @generated from message svc.organization.v1.CreateAddonSubscriptionResponse
762 */
763 export class CreateAddonSubscriptionResponse extends Message<CreateAddonSubscriptionResponse> {
764 /**
765 * @generated from oneof svc.organization.v1.CreateAddonSubscriptionResponse.payment
766 */
767 payment: {
768 /**
769 * @generated from field: svc.organization.v1.CreateAddonSubscriptionResponse.Stripe stripe = 201;
770 */
771 value: CreateAddonSubscriptionResponse_Stripe;
772 case: "stripe";
773 } | { case: undefined; value?: undefined } = { case: undefined };
774
775 constructor(data?: PartialMessage<CreateAddonSubscriptionResponse>) {
776 super();
777 proto3.util.initPartial(data, this);
778 }
779
780 static readonly runtime: typeof proto3 = proto3;
781 static readonly typeName = "svc.organization.v1.CreateAddonSubscriptionResponse";
782 static readonly fields: FieldList = proto3.util.newFieldList(() => [
783 { no: 201, name: "stripe", kind: "message", T: CreateAddonSubscriptionResponse_Stripe, oneof: "payment" },
784 ]);
785
786 static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CreateAddonSubscriptionResponse {
787 return new CreateAddonSubscriptionResponse().fromBinary(bytes, options);
788 }
789
790 static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CreateAddonSubscriptionResponse {
791 return new CreateAddonSubscriptionResponse().fromJson(jsonValue, options);
792 }
793
794 static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CreateAddonSubscriptionResponse {
795 return new CreateAddonSubscriptionResponse().fromJsonString(jsonString, options);
796 }
797
798 static equals(a: CreateAddonSubscriptionResponse | PlainMessage<CreateAddonSubscriptionResponse> | undefined, b: CreateAddonSubscriptionResponse | PlainMessage<CreateAddonSubscriptionResponse> | undefined): boolean {
799 return proto3.util.equals(CreateAddonSubscriptionResponse, a, b);
800 }
801 }
802
803 /**
804 * @generated from message svc.organization.v1.CreateAddonSubscriptionResponse.Stripe
805 */
806 export class CreateAddonSubscriptionResponse_Stripe extends Message<CreateAddonSubscriptionResponse_Stripe> {
807 /**
808 * @generated from field: string status = 1;
809 */
810 status = "";
811
812 /**
813 * @generated from field: string client_secret = 2;
814 */
815 clientSecret = "";
816
817 constructor(data?: PartialMessage<CreateAddonSubscriptionResponse_Stripe>) {
818 super();
819 proto3.util.initPartial(data, this);
820 }
821
822 static readonly runtime: typeof proto3 = proto3;
823 static readonly typeName = "svc.organization.v1.CreateAddonSubscriptionResponse.Stripe";
824 static readonly fields: FieldList = proto3.util.newFieldList(() => [
825 { no: 1, name: "status", kind: "scalar", T: 9 /* ScalarType.STRING */ },
826 { no: 2, name: "client_secret", kind: "scalar", T: 9 /* ScalarType.STRING */ },
827 ]);
828
829 static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CreateAddonSubscriptionResponse_Stripe {
830 return new CreateAddonSubscriptionResponse_Stripe().fromBinary(bytes, options);
831 }
832
833 static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CreateAddonSubscriptionResponse_Stripe {
834 return new CreateAddonSubscriptionResponse_Stripe().fromJson(jsonValue, options);
835 }
836
837 static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CreateAddonSubscriptionResponse_Stripe {
838 return new CreateAddonSubscriptionResponse_Stripe().fromJsonString(jsonString, options);
839 }
840
841 static equals(a: CreateAddonSubscriptionResponse_Stripe | PlainMessage<CreateAddonSubscriptionResponse_Stripe> | undefined, b: CreateAddonSubscriptionResponse_Stripe | PlainMessage<CreateAddonSubscriptionResponse_Stripe> | undefined): boolean {
842 return proto3.util.equals(CreateAddonSubscriptionResponse_Stripe, a, b);
843 }
844 }
845
846 /**
847 * @generated from message svc.organization.v1.ListAddonSubscriptionRequest
848 */
849 export class ListAddonSubscriptionRequest extends Message<ListAddonSubscriptionRequest> {
850 /**
851 * @generated from field: types.v1.Cursor cursor = 1;
852 */
853 cursor?: Cursor;
854
855 /**
856 * @generated from field: int32 limit = 2;
857 */
858 limit = 0;
859
860 constructor(data?: PartialMessage<ListAddonSubscriptionRequest>) {
861 super();
862 proto3.util.initPartial(data, this);
863 }
864
865 static readonly runtime: typeof proto3 = proto3;
866 static readonly typeName = "svc.organization.v1.ListAddonSubscriptionRequest";
867 static readonly fields: FieldList = proto3.util.newFieldList(() => [
868 { no: 1, name: "cursor", kind: "message", T: Cursor },
869 { no: 2, name: "limit", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
870 ]);
871
872 static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListAddonSubscriptionRequest {
873 return new ListAddonSubscriptionRequest().fromBinary(bytes, options);
874 }
875
876 static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListAddonSubscriptionRequest {
877 return new ListAddonSubscriptionRequest().fromJson(jsonValue, options);
878 }
879
880 static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListAddonSubscriptionRequest {
881 return new ListAddonSubscriptionRequest().fromJsonString(jsonString, options);
882 }
883
884 static equals(a: ListAddonSubscriptionRequest | PlainMessage<ListAddonSubscriptionRequest> | undefined, b: ListAddonSubscriptionRequest | PlainMessage<ListAddonSubscriptionRequest> | undefined): boolean {
885 return proto3.util.equals(ListAddonSubscriptionRequest, a, b);
886 }
887 }
888
889 /**
890 * @generated from message svc.organization.v1.ListAddonSubscriptionResponse
891 */
892 export class ListAddonSubscriptionResponse extends Message<ListAddonSubscriptionResponse> {
893 /**
894 * @generated from field: types.v1.Cursor next = 1;
895 */
896 next?: Cursor;
897
898 /**
899 * @generated from field: repeated svc.organization.v1.ListAddonSubscriptionResponse.ListItem items = 2;
900 */
901 items: ListAddonSubscriptionResponse_ListItem[] = [];
902
903 constructor(data?: PartialMessage<ListAddonSubscriptionResponse>) {
904 super();
905 proto3.util.initPartial(data, this);
906 }
907
908 static readonly runtime: typeof proto3 = proto3;
909 static readonly typeName = "svc.organization.v1.ListAddonSubscriptionResponse";
910 static readonly fields: FieldList = proto3.util.newFieldList(() => [
911 { no: 1, name: "next", kind: "message", T: Cursor },
912 { no: 2, name: "items", kind: "message", T: ListAddonSubscriptionResponse_ListItem, repeated: true },
913 ]);
914
915 static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListAddonSubscriptionResponse {
916 return new ListAddonSubscriptionResponse().fromBinary(bytes, options);
917 }
918
919 static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListAddonSubscriptionResponse {
920 return new ListAddonSubscriptionResponse().fromJson(jsonValue, options);
921 }
922
923 static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListAddonSubscriptionResponse {
924 return new ListAddonSubscriptionResponse().fromJsonString(jsonString, options);
925 }
926
927 static equals(a: ListAddonSubscriptionResponse | PlainMessage<ListAddonSubscriptionResponse> | undefined, b: ListAddonSubscriptionResponse | PlainMessage<ListAddonSubscriptionResponse> | undefined): boolean {
928 return proto3.util.equals(ListAddonSubscriptionResponse, a, b);
929 }
930 }
931
932 /**
933 * @generated from message svc.organization.v1.ListAddonSubscriptionResponse.ListItem
934 */
935 export class ListAddonSubscriptionResponse_ListItem extends Message<ListAddonSubscriptionResponse_ListItem> {
936 /**
937 * @generated from field: types.v1.Product product = 1;
938 */
939 product?: Product;
940
941 /**
942 * @generated from field: types.v1.Subscription subscription = 2;
943 */
944 subscription?: Subscription;
945
946 constructor(data?: PartialMessage<ListAddonSubscriptionResponse_ListItem>) {
947 super();
948 proto3.util.initPartial(data, this);
949 }
950
951 static readonly runtime: typeof proto3 = proto3;
952 static readonly typeName = "svc.organization.v1.ListAddonSubscriptionResponse.ListItem";
953 static readonly fields: FieldList = proto3.util.newFieldList(() => [
954 { no: 1, name: "product", kind: "message", T: Product },
955 { no: 2, name: "subscription", kind: "message", T: Subscription },
956 ]);
957
958 static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListAddonSubscriptionResponse_ListItem {
959 return new ListAddonSubscriptionResponse_ListItem().fromBinary(bytes, options);
960 }
961
962 static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListAddonSubscriptionResponse_ListItem {
963 return new ListAddonSubscriptionResponse_ListItem().fromJson(jsonValue, options);
964 }
965
966 static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListAddonSubscriptionResponse_ListItem {
967 return new ListAddonSubscriptionResponse_ListItem().fromJsonString(jsonString, options);
968 }
969
970 static equals(a: ListAddonSubscriptionResponse_ListItem | PlainMessage<ListAddonSubscriptionResponse_ListItem> | undefined, b: ListAddonSubscriptionResponse_ListItem | PlainMessage<ListAddonSubscriptionResponse_ListItem> | undefined): boolean {
971 return proto3.util.equals(ListAddonSubscriptionResponse_ListItem, a, b);
972 }
973 }
974
975 /**
976 * @generated from message svc.organization.v1.RemoveAddonSubscriptionRequest
977 */
978 export class RemoveAddonSubscriptionRequest extends Message<RemoveAddonSubscriptionRequest> {
979 /**
980 * @generated from field: types.v1.Product product = 1;
981 */
982 product?: Product;
983
984 /**
985 * @generated from field: optional svc.organization.v1.RemoveAddonSubscriptionRequest.Reason cancel_reason = 2;
986 */
987 cancelReason?: RemoveAddonSubscriptionRequest_Reason;
988
989 constructor(data?: PartialMessage<RemoveAddonSubscriptionRequest>) {
990 super();
991 proto3.util.initPartial(data, this);
992 }
993
994 static readonly runtime: typeof proto3 = proto3;
995 static readonly typeName = "svc.organization.v1.RemoveAddonSubscriptionRequest";
996 static readonly fields: FieldList = proto3.util.newFieldList(() => [
997 { no: 1, name: "product", kind: "message", T: Product },
998 { no: 2, name: "cancel_reason", kind: "message", T: RemoveAddonSubscriptionRequest_Reason, opt: true },
999 ]);
1000
1001 static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RemoveAddonSubscriptionRequest {
1002 return new RemoveAddonSubscriptionRequest().fromBinary(bytes, options);
1003 }
1004
1005 static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RemoveAddonSubscriptionRequest {
1006 return new RemoveAddonSubscriptionRequest().fromJson(jsonValue, options);
1007 }
1008
1009 static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RemoveAddonSubscriptionRequest {
1010 return new RemoveAddonSubscriptionRequest().fromJsonString(jsonString, options);
1011 }
1012
1013 static equals(a: RemoveAddonSubscriptionRequest | PlainMessage<RemoveAddonSubscriptionRequest> | undefined, b: RemoveAddonSubscriptionRequest | PlainMessage<RemoveAddonSubscriptionRequest> | undefined): boolean {
1014 return proto3.util.equals(RemoveAddonSubscriptionRequest, a, b);
1015 }
1016 }
1017
1018 /**
1019 * @generated from message svc.organization.v1.RemoveAddonSubscriptionRequest.Reason
1020 */
1021 export class RemoveAddonSubscriptionRequest_Reason extends Message<RemoveAddonSubscriptionRequest_Reason> {
1022 /**
1023 * @generated from field: string comment = 1;
1024 */
1025 comment = "";
1026
1027 /**
1028 * @generated from field: string feedback = 2;
1029 */
1030 feedback = "";
1031
1032 constructor(data?: PartialMessage<RemoveAddonSubscriptionRequest_Reason>) {
1033 super();
1034 proto3.util.initPartial(data, this);
1035 }
1036
1037 static readonly runtime: typeof proto3 = proto3;
1038 static readonly typeName = "svc.organization.v1.RemoveAddonSubscriptionRequest.Reason";
1039 static readonly fields: FieldList = proto3.util.newFieldList(() => [
1040 { no: 1, name: "comment", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1041 { no: 2, name: "feedback", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1042 ]);
1043
1044 static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RemoveAddonSubscriptionRequest_Reason {
1045 return new RemoveAddonSubscriptionRequest_Reason().fromBinary(bytes, options);
1046 }
1047
1048 static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RemoveAddonSubscriptionRequest_Reason {
1049 return new RemoveAddonSubscriptionRequest_Reason().fromJson(jsonValue, options);
1050 }
1051
1052 static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RemoveAddonSubscriptionRequest_Reason {
1053 return new RemoveAddonSubscriptionRequest_Reason().fromJsonString(jsonString, options);
1054 }
1055
1056 static equals(a: RemoveAddonSubscriptionRequest_Reason | PlainMessage<RemoveAddonSubscriptionRequest_Reason> | undefined, b: RemoveAddonSubscriptionRequest_Reason | PlainMessage<RemoveAddonSubscriptionRequest_Reason> | undefined): boolean {
1057 return proto3.util.equals(RemoveAddonSubscriptionRequest_Reason, a, b);
1058 }
1059 }
1060
1061 /**
1062 * @generated from message svc.organization.v1.RemoveAddonSubscriptionResponse
1063 */
1064 export class RemoveAddonSubscriptionResponse extends Message<RemoveAddonSubscriptionResponse> {
1065 constructor(data?: PartialMessage<RemoveAddonSubscriptionResponse>) {
1066 super();
1067 proto3.util.initPartial(data, this);
1068 }
1069
1070 static readonly runtime: typeof proto3 = proto3;
1071 static readonly typeName = "svc.organization.v1.RemoveAddonSubscriptionResponse";
1072 static readonly fields: FieldList = proto3.util.newFieldList(() => [
1073 ]);
1074
1075 static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RemoveAddonSubscriptionResponse {
1076 return new RemoveAddonSubscriptionResponse().fromBinary(bytes, options);
1077 }
1078
1079 static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RemoveAddonSubscriptionResponse {
1080 return new RemoveAddonSubscriptionResponse().fromJson(jsonValue, options);
1081 }
1082
1083 static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RemoveAddonSubscriptionResponse {
1084 return new RemoveAddonSubscriptionResponse().fromJsonString(jsonString, options);
1085 }
1086
1087 static equals(a: RemoveAddonSubscriptionResponse | PlainMessage<RemoveAddonSubscriptionResponse> | undefined, b: RemoveAddonSubscriptionResponse | PlainMessage<RemoveAddonSubscriptionResponse> | undefined): boolean {
1088 return proto3.util.equals(RemoveAddonSubscriptionResponse, a, b);
1089 }
1090 }
1091
1092 /**
1093 * @generated from message svc.organization.v1.GetStripePublishableKeyRequest
1094 */
1095 export class GetStripePublishableKeyRequest extends Message<GetStripePublishableKeyRequest> {
1096 constructor(data?: PartialMessage<GetStripePublishableKeyRequest>) {
1097 super();
1098 proto3.util.initPartial(data, this);
1099 }
1100
1101 static readonly runtime: typeof proto3 = proto3;
1102 static readonly typeName = "svc.organization.v1.GetStripePublishableKeyRequest";
1103 static readonly fields: FieldList = proto3.util.newFieldList(() => [
1104 ]);
1105
1106 static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetStripePublishableKeyRequest {
1107 return new GetStripePublishableKeyRequest().fromBinary(bytes, options);
1108 }
1109
1110 static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetStripePublishableKeyRequest {
1111 return new GetStripePublishableKeyRequest().fromJson(jsonValue, options);
1112 }
1113
1114 static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetStripePublishableKeyRequest {
1115 return new GetStripePublishableKeyRequest().fromJsonString(jsonString, options);
1116 }
1117
1118 static equals(a: GetStripePublishableKeyRequest | PlainMessage<GetStripePublishableKeyRequest> | undefined, b: GetStripePublishableKeyRequest | PlainMessage<GetStripePublishableKeyRequest> | undefined): boolean {
1119 return proto3.util.equals(GetStripePublishableKeyRequest, a, b);
1120 }
1121 }
1122
1123 /**
1124 * @generated from message svc.organization.v1.GetStripePublishableKeyResponse
1125 */
1126 export class GetStripePublishableKeyResponse extends Message<GetStripePublishableKeyResponse> {
1127 /**
1128 * @generated from field: string stripe_publishable_key = 2;
1129 */
1130 stripePublishableKey = "";
1131
1132 constructor(data?: PartialMessage<GetStripePublishableKeyResponse>) {
1133 super();
1134 proto3.util.initPartial(data, this);
1135 }
1136
1137 static readonly runtime: typeof proto3 = proto3;
1138 static readonly typeName = "svc.organization.v1.GetStripePublishableKeyResponse";
1139 static readonly fields: FieldList = proto3.util.newFieldList(() => [
1140 { no: 2, name: "stripe_publishable_key", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1141 ]);
1142
1143 static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetStripePublishableKeyResponse {
1144 return new GetStripePublishableKeyResponse().fromBinary(bytes, options);
1145 }
1146
1147 static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetStripePublishableKeyResponse {
1148 return new GetStripePublishableKeyResponse().fromJson(jsonValue, options);
1149 }
1150
1151 static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetStripePublishableKeyResponse {
1152 return new GetStripePublishableKeyResponse().fromJsonString(jsonString, options);
1153 }
1154
1155 static equals(a: GetStripePublishableKeyResponse | PlainMessage<GetStripePublishableKeyResponse> | undefined, b: GetStripePublishableKeyResponse | PlainMessage<GetStripePublishableKeyResponse> | undefined): boolean {
1156 return proto3.util.equals(GetStripePublishableKeyResponse, a, b);
1157 }
1158 }
1159
1160 /**
1161 * @generated from message svc.organization.v1.GetStripeBillingPortalRequest
1162 */
1163 export class GetStripeBillingPortalRequest extends Message<GetStripeBillingPortalRequest> {
1164 /**
1165 * @generated from field: string return_to_url = 1;
1166 */
1167 returnToUrl = "";
1168
1169 constructor(data?: PartialMessage<GetStripeBillingPortalRequest>) {
1170 super();
1171 proto3.util.initPartial(data, this);
1172 }
1173
1174 static readonly runtime: typeof proto3 = proto3;
1175 static readonly typeName = "svc.organization.v1.GetStripeBillingPortalRequest";
1176 static readonly fields: FieldList = proto3.util.newFieldList(() => [
1177 { no: 1, name: "return_to_url", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1178 ]);
1179
1180 static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetStripeBillingPortalRequest {
1181 return new GetStripeBillingPortalRequest().fromBinary(bytes, options);
1182 }
1183
1184 static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetStripeBillingPortalRequest {
1185 return new GetStripeBillingPortalRequest().fromJson(jsonValue, options);
1186 }
1187
1188 static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetStripeBillingPortalRequest {
1189 return new GetStripeBillingPortalRequest().fromJsonString(jsonString, options);
1190 }
1191
1192 static equals(a: GetStripeBillingPortalRequest | PlainMessage<GetStripeBillingPortalRequest> | undefined, b: GetStripeBillingPortalRequest | PlainMessage<GetStripeBillingPortalRequest> | undefined): boolean {
1193 return proto3.util.equals(GetStripeBillingPortalRequest, a, b);
1194 }
1195 }
1196
1197 /**
1198 * @generated from message svc.organization.v1.GetStripeBillingPortalResponse
1199 */
1200 export class GetStripeBillingPortalResponse extends Message<GetStripeBillingPortalResponse> {
1201 /**
1202 * @generated from field: string return_to_url = 1;
1203 */
1204 returnToUrl = "";
1205
1206 /**
1207 * @generated from field: string portal_url = 2;
1208 */
1209 portalUrl = "";
1210
1211 constructor(data?: PartialMessage<GetStripeBillingPortalResponse>) {
1212 super();
1213 proto3.util.initPartial(data, this);
1214 }
1215
1216 static readonly runtime: typeof proto3 = proto3;
1217 static readonly typeName = "svc.organization.v1.GetStripeBillingPortalResponse";
1218 static readonly fields: FieldList = proto3.util.newFieldList(() => [
1219 { no: 1, name: "return_to_url", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1220 { no: 2, name: "portal_url", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1221 ]);
1222
1223 static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetStripeBillingPortalResponse {
1224 return new GetStripeBillingPortalResponse().fromBinary(bytes, options);
1225 }
1226
1227 static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetStripeBillingPortalResponse {
1228 return new GetStripeBillingPortalResponse().fromJson(jsonValue, options);
1229 }
1230
1231 static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetStripeBillingPortalResponse {
1232 return new GetStripeBillingPortalResponse().fromJsonString(jsonString, options);
1233 }
1234
1235 static equals(a: GetStripeBillingPortalResponse | PlainMessage<GetStripeBillingPortalResponse> | undefined, b: GetStripeBillingPortalResponse | PlainMessage<GetStripeBillingPortalResponse> | undefined): boolean {
1236 return proto3.util.equals(GetStripeBillingPortalResponse, a, b);
1237 }
1238 }
1239
1240 /**
1241 * @generated from message svc.organization.v1.CreateStripeCustomerSessionRequest
1242 */
1243 export class CreateStripeCustomerSessionRequest extends Message<CreateStripeCustomerSessionRequest> {
1244 constructor(data?: PartialMessage<CreateStripeCustomerSessionRequest>) {
1245 super();
1246 proto3.util.initPartial(data, this);
1247 }
1248
1249 static readonly runtime: typeof proto3 = proto3;
1250 static readonly typeName = "svc.organization.v1.CreateStripeCustomerSessionRequest";
1251 static readonly fields: FieldList = proto3.util.newFieldList(() => [
1252 ]);
1253
1254 static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CreateStripeCustomerSessionRequest {
1255 return new CreateStripeCustomerSessionRequest().fromBinary(bytes, options);
1256 }
1257
1258 static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CreateStripeCustomerSessionRequest {
1259 return new CreateStripeCustomerSessionRequest().fromJson(jsonValue, options);
1260 }
1261
1262 static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CreateStripeCustomerSessionRequest {
1263 return new CreateStripeCustomerSessionRequest().fromJsonString(jsonString, options);
1264 }
1265
1266 static equals(a: CreateStripeCustomerSessionRequest | PlainMessage<CreateStripeCustomerSessionRequest> | undefined, b: CreateStripeCustomerSessionRequest | PlainMessage<CreateStripeCustomerSessionRequest> | undefined): boolean {
1267 return proto3.util.equals(CreateStripeCustomerSessionRequest, a, b);
1268 }
1269 }
1270
1271 /**
1272 * @generated from message svc.organization.v1.CreateStripeCustomerSessionResponse
1273 */
1274 export class CreateStripeCustomerSessionResponse extends Message<CreateStripeCustomerSessionResponse> {
1275 /**
1276 * @generated from field: string customer_session_client_secret = 1;
1277 */
1278 customerSessionClientSecret = "";
1279
1280 constructor(data?: PartialMessage<CreateStripeCustomerSessionResponse>) {
1281 super();
1282 proto3.util.initPartial(data, this);
1283 }
1284
1285 static readonly runtime: typeof proto3 = proto3;
1286 static readonly typeName = "svc.organization.v1.CreateStripeCustomerSessionResponse";
1287 static readonly fields: FieldList = proto3.util.newFieldList(() => [
1288 { no: 1, name: "customer_session_client_secret", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1289 ]);
1290
1291 static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CreateStripeCustomerSessionResponse {
1292 return new CreateStripeCustomerSessionResponse().fromBinary(bytes, options);
1293 }
1294
1295 static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CreateStripeCustomerSessionResponse {
1296 return new CreateStripeCustomerSessionResponse().fromJson(jsonValue, options);
1297 }
1298
1299 static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CreateStripeCustomerSessionResponse {
1300 return new CreateStripeCustomerSessionResponse().fromJsonString(jsonString, options);
1301 }
1302
1303 static equals(a: CreateStripeCustomerSessionResponse | PlainMessage<CreateStripeCustomerSessionResponse> | undefined, b: CreateStripeCustomerSessionResponse | PlainMessage<CreateStripeCustomerSessionResponse> | undefined): boolean {
1304 return proto3.util.equals(CreateStripeCustomerSessionResponse, a, b);
1305 }
1306 }
1307
1308 /**
1309 * @generated from message svc.organization.v1.ListPaymentMethodRequest
1310 */
1311 export class ListPaymentMethodRequest extends Message<ListPaymentMethodRequest> {
1312 /**
1313 * @generated from field: types.v1.Cursor cursor = 1;
1314 */
1315 cursor?: Cursor;
1316
1317 /**
1318 * @generated from field: int32 limit = 2;
1319 */
1320 limit = 0;
1321
1322 constructor(data?: PartialMessage<ListPaymentMethodRequest>) {
1323 super();
1324 proto3.util.initPartial(data, this);
1325 }
1326
1327 static readonly runtime: typeof proto3 = proto3;
1328 static readonly typeName = "svc.organization.v1.ListPaymentMethodRequest";
1329 static readonly fields: FieldList = proto3.util.newFieldList(() => [
1330 { no: 1, name: "cursor", kind: "message", T: Cursor },
1331 { no: 2, name: "limit", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
1332 ]);
1333
1334 static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListPaymentMethodRequest {
1335 return new ListPaymentMethodRequest().fromBinary(bytes, options);
1336 }
1337
1338 static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListPaymentMethodRequest {
1339 return new ListPaymentMethodRequest().fromJson(jsonValue, options);
1340 }
1341
1342 static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListPaymentMethodRequest {
1343 return new ListPaymentMethodRequest().fromJsonString(jsonString, options);
1344 }
1345
1346 static equals(a: ListPaymentMethodRequest | PlainMessage<ListPaymentMethodRequest> | undefined, b: ListPaymentMethodRequest | PlainMessage<ListPaymentMethodRequest> | undefined): boolean {
1347 return proto3.util.equals(ListPaymentMethodRequest, a, b);
1348 }
1349 }
1350
1351 /**
1352 * @generated from message svc.organization.v1.ListPaymentMethodResponse
1353 */
1354 export class ListPaymentMethodResponse extends Message<ListPaymentMethodResponse> {
1355 /**
1356 * @generated from field: types.v1.Cursor next = 1;
1357 */
1358 next?: Cursor;
1359
1360 /**
1361 * @generated from field: repeated svc.organization.v1.ListPaymentMethodResponse.ListItem items = 2;
1362 */
1363 items: ListPaymentMethodResponse_ListItem[] = [];
1364
1365 constructor(data?: PartialMessage<ListPaymentMethodResponse>) {
1366 super();
1367 proto3.util.initPartial(data, this);
1368 }
1369
1370 static readonly runtime: typeof proto3 = proto3;
1371 static readonly typeName = "svc.organization.v1.ListPaymentMethodResponse";
1372 static readonly fields: FieldList = proto3.util.newFieldList(() => [
1373 { no: 1, name: "next", kind: "message", T: Cursor },
1374 { no: 2, name: "items", kind: "message", T: ListPaymentMethodResponse_ListItem, repeated: true },
1375 ]);
1376
1377 static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListPaymentMethodResponse {
1378 return new ListPaymentMethodResponse().fromBinary(bytes, options);
1379 }
1380
1381 static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListPaymentMethodResponse {
1382 return new ListPaymentMethodResponse().fromJson(jsonValue, options);
1383 }
1384
1385 static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListPaymentMethodResponse {
1386 return new ListPaymentMethodResponse().fromJsonString(jsonString, options);
1387 }
1388
1389 static equals(a: ListPaymentMethodResponse | PlainMessage<ListPaymentMethodResponse> | undefined, b: ListPaymentMethodResponse | PlainMessage<ListPaymentMethodResponse> | undefined): boolean {
1390 return proto3.util.equals(ListPaymentMethodResponse, a, b);
1391 }
1392 }
1393
1394 /**
1395 * @generated from message svc.organization.v1.ListPaymentMethodResponse.ListItem
1396 */
1397 export class ListPaymentMethodResponse_ListItem extends Message<ListPaymentMethodResponse_ListItem> {
1398 /**
1399 * @generated from field: types.v1.PaymentMethod payment_method = 1;
1400 */
1401 paymentMethod?: PaymentMethod;
1402
1403 constructor(data?: PartialMessage<ListPaymentMethodResponse_ListItem>) {
1404 super();
1405 proto3.util.initPartial(data, this);
1406 }
1407
1408 static readonly runtime: typeof proto3 = proto3;
1409 static readonly typeName = "svc.organization.v1.ListPaymentMethodResponse.ListItem";
1410 static readonly fields: FieldList = proto3.util.newFieldList(() => [
1411 { no: 1, name: "payment_method", kind: "message", T: PaymentMethod },
1412 ]);
1413
1414 static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListPaymentMethodResponse_ListItem {
1415 return new ListPaymentMethodResponse_ListItem().fromBinary(bytes, options);
1416 }
1417
1418 static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListPaymentMethodResponse_ListItem {
1419 return new ListPaymentMethodResponse_ListItem().fromJson(jsonValue, options);
1420 }
1421
1422 static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListPaymentMethodResponse_ListItem {
1423 return new ListPaymentMethodResponse_ListItem().fromJsonString(jsonString, options);
1424 }
1425
1426 static equals(a: ListPaymentMethodResponse_ListItem | PlainMessage<ListPaymentMethodResponse_ListItem> | undefined, b: ListPaymentMethodResponse_ListItem | PlainMessage<ListPaymentMethodResponse_ListItem> | undefined): boolean {
1427 return proto3.util.equals(ListPaymentMethodResponse_ListItem, a, b);
1428 }
1429 }
1430