@maxischmaxi/maxforms-api-client 0.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/gen/auth/v1/auth_connect.d.ts +232 -0
- package/dist/gen/auth/v1/auth_connect.d.ts.map +1 -0
- package/dist/gen/auth/v1/auth_connect.js +236 -0
- package/dist/gen/auth/v1/auth_connect.js.map +1 -0
- package/dist/gen/auth/v1/auth_pb.d.ts +1072 -0
- package/dist/gen/auth/v1/auth_pb.d.ts.map +1 -0
- package/dist/gen/auth/v1/auth_pb.js +1779 -0
- package/dist/gen/auth/v1/auth_pb.js.map +1 -0
- package/dist/gen/forms/v1/forms_connect.d.ts +200 -0
- package/dist/gen/forms/v1/forms_connect.d.ts.map +1 -0
- package/dist/gen/forms/v1/forms_connect.js +204 -0
- package/dist/gen/forms/v1/forms_connect.js.map +1 -0
- package/dist/gen/forms/v1/forms_pb.d.ts +1154 -0
- package/dist/gen/forms/v1/forms_pb.d.ts.map +1 -0
- package/dist/gen/forms/v1/forms_pb.js +1779 -0
- package/dist/gen/forms/v1/forms_pb.js.map +1 -0
- package/dist/index.d.ts +27 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +39 -0
- package/dist/index.js.map +1 -0
- package/package.json +57 -0
|
@@ -0,0 +1,1779 @@
|
|
|
1
|
+
// @generated by protoc-gen-es v1.10.0 with parameter "target=ts"
|
|
2
|
+
// @generated from file auth/v1/auth.proto (package auth.v1, syntax proto3)
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
// @ts-nocheck
|
|
5
|
+
import { Message, proto3, Timestamp } from "@bufbuild/protobuf";
|
|
6
|
+
/**
|
|
7
|
+
* @generated from enum auth.v1.Role
|
|
8
|
+
*/
|
|
9
|
+
export var Role;
|
|
10
|
+
(function (Role) {
|
|
11
|
+
/**
|
|
12
|
+
* @generated from enum value: ROLE_UNSPECIFIED = 0;
|
|
13
|
+
*/
|
|
14
|
+
Role[Role["UNSPECIFIED"] = 0] = "UNSPECIFIED";
|
|
15
|
+
/**
|
|
16
|
+
* @generated from enum value: ROLE_OWNER = 1;
|
|
17
|
+
*/
|
|
18
|
+
Role[Role["OWNER"] = 1] = "OWNER";
|
|
19
|
+
/**
|
|
20
|
+
* @generated from enum value: ROLE_MEMBER = 2;
|
|
21
|
+
*/
|
|
22
|
+
Role[Role["MEMBER"] = 2] = "MEMBER";
|
|
23
|
+
})(Role || (Role = {}));
|
|
24
|
+
// Retrieve enum metadata with: proto3.getEnumType(Role)
|
|
25
|
+
proto3.util.setEnumType(Role, "auth.v1.Role", [
|
|
26
|
+
{ no: 0, name: "ROLE_UNSPECIFIED" },
|
|
27
|
+
{ no: 1, name: "ROLE_OWNER" },
|
|
28
|
+
{ no: 2, name: "ROLE_MEMBER" },
|
|
29
|
+
]);
|
|
30
|
+
/**
|
|
31
|
+
* @generated from enum auth.v1.ApiKeyScope
|
|
32
|
+
*/
|
|
33
|
+
export var ApiKeyScope;
|
|
34
|
+
(function (ApiKeyScope) {
|
|
35
|
+
/**
|
|
36
|
+
* @generated from enum value: API_KEY_SCOPE_UNSPECIFIED = 0;
|
|
37
|
+
*/
|
|
38
|
+
ApiKeyScope[ApiKeyScope["UNSPECIFIED"] = 0] = "UNSPECIFIED";
|
|
39
|
+
/**
|
|
40
|
+
* @generated from enum value: API_KEY_SCOPE_FORMS_READ = 1;
|
|
41
|
+
*/
|
|
42
|
+
ApiKeyScope[ApiKeyScope["FORMS_READ"] = 1] = "FORMS_READ";
|
|
43
|
+
/**
|
|
44
|
+
* @generated from enum value: API_KEY_SCOPE_FORMS_SUBMIT = 2;
|
|
45
|
+
*/
|
|
46
|
+
ApiKeyScope[ApiKeyScope["FORMS_SUBMIT"] = 2] = "FORMS_SUBMIT";
|
|
47
|
+
})(ApiKeyScope || (ApiKeyScope = {}));
|
|
48
|
+
// Retrieve enum metadata with: proto3.getEnumType(ApiKeyScope)
|
|
49
|
+
proto3.util.setEnumType(ApiKeyScope, "auth.v1.ApiKeyScope", [
|
|
50
|
+
{ no: 0, name: "API_KEY_SCOPE_UNSPECIFIED" },
|
|
51
|
+
{ no: 1, name: "API_KEY_SCOPE_FORMS_READ" },
|
|
52
|
+
{ no: 2, name: "API_KEY_SCOPE_FORMS_SUBMIT" },
|
|
53
|
+
]);
|
|
54
|
+
/**
|
|
55
|
+
* @generated from message auth.v1.User
|
|
56
|
+
*/
|
|
57
|
+
export class User extends Message {
|
|
58
|
+
/**
|
|
59
|
+
* @generated from field: string id = 1;
|
|
60
|
+
*/
|
|
61
|
+
id = "";
|
|
62
|
+
/**
|
|
63
|
+
* @generated from field: string email = 2;
|
|
64
|
+
*/
|
|
65
|
+
email = "";
|
|
66
|
+
/**
|
|
67
|
+
* @generated from field: string name = 3;
|
|
68
|
+
*/
|
|
69
|
+
name = "";
|
|
70
|
+
/**
|
|
71
|
+
* @generated from field: bool email_verified = 4;
|
|
72
|
+
*/
|
|
73
|
+
emailVerified = false;
|
|
74
|
+
/**
|
|
75
|
+
* @generated from field: bool blocked = 5;
|
|
76
|
+
*/
|
|
77
|
+
blocked = false;
|
|
78
|
+
/**
|
|
79
|
+
* @generated from field: string blocked_reason = 6;
|
|
80
|
+
*/
|
|
81
|
+
blockedReason = "";
|
|
82
|
+
/**
|
|
83
|
+
* @generated from field: google.protobuf.Timestamp created_at = 7;
|
|
84
|
+
*/
|
|
85
|
+
createdAt;
|
|
86
|
+
/**
|
|
87
|
+
* @generated from field: google.protobuf.Timestamp updated_at = 8;
|
|
88
|
+
*/
|
|
89
|
+
updatedAt;
|
|
90
|
+
/**
|
|
91
|
+
* Timestamp when last verification email was sent (for rate-limiting)
|
|
92
|
+
*
|
|
93
|
+
* @generated from field: google.protobuf.Timestamp verification_email_sent_at = 9;
|
|
94
|
+
*/
|
|
95
|
+
verificationEmailSentAt;
|
|
96
|
+
constructor(data) {
|
|
97
|
+
super();
|
|
98
|
+
proto3.util.initPartial(data, this);
|
|
99
|
+
}
|
|
100
|
+
static runtime = proto3;
|
|
101
|
+
static typeName = "auth.v1.User";
|
|
102
|
+
static fields = proto3.util.newFieldList(() => [
|
|
103
|
+
{ no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
104
|
+
{ no: 2, name: "email", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
105
|
+
{ no: 3, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
106
|
+
{ no: 4, name: "email_verified", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
107
|
+
{ no: 5, name: "blocked", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
108
|
+
{ no: 6, name: "blocked_reason", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
109
|
+
{ no: 7, name: "created_at", kind: "message", T: Timestamp },
|
|
110
|
+
{ no: 8, name: "updated_at", kind: "message", T: Timestamp },
|
|
111
|
+
{ no: 9, name: "verification_email_sent_at", kind: "message", T: Timestamp },
|
|
112
|
+
]);
|
|
113
|
+
static fromBinary(bytes, options) {
|
|
114
|
+
return new User().fromBinary(bytes, options);
|
|
115
|
+
}
|
|
116
|
+
static fromJson(jsonValue, options) {
|
|
117
|
+
return new User().fromJson(jsonValue, options);
|
|
118
|
+
}
|
|
119
|
+
static fromJsonString(jsonString, options) {
|
|
120
|
+
return new User().fromJsonString(jsonString, options);
|
|
121
|
+
}
|
|
122
|
+
static equals(a, b) {
|
|
123
|
+
return proto3.util.equals(User, a, b);
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
/**
|
|
127
|
+
* @generated from message auth.v1.Organization
|
|
128
|
+
*/
|
|
129
|
+
export class Organization extends Message {
|
|
130
|
+
/**
|
|
131
|
+
* @generated from field: string id = 1;
|
|
132
|
+
*/
|
|
133
|
+
id = "";
|
|
134
|
+
/**
|
|
135
|
+
* @generated from field: string name = 2;
|
|
136
|
+
*/
|
|
137
|
+
name = "";
|
|
138
|
+
/**
|
|
139
|
+
* @generated from field: string slug = 3;
|
|
140
|
+
*/
|
|
141
|
+
slug = "";
|
|
142
|
+
/**
|
|
143
|
+
* @generated from field: bool personal = 4;
|
|
144
|
+
*/
|
|
145
|
+
personal = false;
|
|
146
|
+
/**
|
|
147
|
+
* @generated from field: auth.v1.Role current_user_role = 5;
|
|
148
|
+
*/
|
|
149
|
+
currentUserRole = Role.UNSPECIFIED;
|
|
150
|
+
/**
|
|
151
|
+
* @generated from field: google.protobuf.Timestamp created_at = 6;
|
|
152
|
+
*/
|
|
153
|
+
createdAt;
|
|
154
|
+
/**
|
|
155
|
+
* @generated from field: google.protobuf.Timestamp updated_at = 7;
|
|
156
|
+
*/
|
|
157
|
+
updatedAt;
|
|
158
|
+
constructor(data) {
|
|
159
|
+
super();
|
|
160
|
+
proto3.util.initPartial(data, this);
|
|
161
|
+
}
|
|
162
|
+
static runtime = proto3;
|
|
163
|
+
static typeName = "auth.v1.Organization";
|
|
164
|
+
static fields = proto3.util.newFieldList(() => [
|
|
165
|
+
{ no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
166
|
+
{ no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
167
|
+
{ no: 3, name: "slug", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
168
|
+
{ no: 4, name: "personal", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
169
|
+
{ no: 5, name: "current_user_role", kind: "enum", T: proto3.getEnumType(Role) },
|
|
170
|
+
{ no: 6, name: "created_at", kind: "message", T: Timestamp },
|
|
171
|
+
{ no: 7, name: "updated_at", kind: "message", T: Timestamp },
|
|
172
|
+
]);
|
|
173
|
+
static fromBinary(bytes, options) {
|
|
174
|
+
return new Organization().fromBinary(bytes, options);
|
|
175
|
+
}
|
|
176
|
+
static fromJson(jsonValue, options) {
|
|
177
|
+
return new Organization().fromJson(jsonValue, options);
|
|
178
|
+
}
|
|
179
|
+
static fromJsonString(jsonString, options) {
|
|
180
|
+
return new Organization().fromJsonString(jsonString, options);
|
|
181
|
+
}
|
|
182
|
+
static equals(a, b) {
|
|
183
|
+
return proto3.util.equals(Organization, a, b);
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
/**
|
|
187
|
+
* @generated from message auth.v1.Member
|
|
188
|
+
*/
|
|
189
|
+
export class Member extends Message {
|
|
190
|
+
/**
|
|
191
|
+
* @generated from field: string id = 1;
|
|
192
|
+
*/
|
|
193
|
+
id = "";
|
|
194
|
+
/**
|
|
195
|
+
* @generated from field: string user_id = 2;
|
|
196
|
+
*/
|
|
197
|
+
userId = "";
|
|
198
|
+
/**
|
|
199
|
+
* @generated from field: string email = 3;
|
|
200
|
+
*/
|
|
201
|
+
email = "";
|
|
202
|
+
/**
|
|
203
|
+
* @generated from field: string name = 4;
|
|
204
|
+
*/
|
|
205
|
+
name = "";
|
|
206
|
+
/**
|
|
207
|
+
* @generated from field: auth.v1.Role role = 5;
|
|
208
|
+
*/
|
|
209
|
+
role = Role.UNSPECIFIED;
|
|
210
|
+
/**
|
|
211
|
+
* @generated from field: google.protobuf.Timestamp joined_at = 6;
|
|
212
|
+
*/
|
|
213
|
+
joinedAt;
|
|
214
|
+
constructor(data) {
|
|
215
|
+
super();
|
|
216
|
+
proto3.util.initPartial(data, this);
|
|
217
|
+
}
|
|
218
|
+
static runtime = proto3;
|
|
219
|
+
static typeName = "auth.v1.Member";
|
|
220
|
+
static fields = proto3.util.newFieldList(() => [
|
|
221
|
+
{ no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
222
|
+
{ no: 2, name: "user_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
223
|
+
{ no: 3, name: "email", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
224
|
+
{ no: 4, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
225
|
+
{ no: 5, name: "role", kind: "enum", T: proto3.getEnumType(Role) },
|
|
226
|
+
{ no: 6, name: "joined_at", kind: "message", T: Timestamp },
|
|
227
|
+
]);
|
|
228
|
+
static fromBinary(bytes, options) {
|
|
229
|
+
return new Member().fromBinary(bytes, options);
|
|
230
|
+
}
|
|
231
|
+
static fromJson(jsonValue, options) {
|
|
232
|
+
return new Member().fromJson(jsonValue, options);
|
|
233
|
+
}
|
|
234
|
+
static fromJsonString(jsonString, options) {
|
|
235
|
+
return new Member().fromJsonString(jsonString, options);
|
|
236
|
+
}
|
|
237
|
+
static equals(a, b) {
|
|
238
|
+
return proto3.util.equals(Member, a, b);
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
/**
|
|
242
|
+
* @generated from message auth.v1.Invitation
|
|
243
|
+
*/
|
|
244
|
+
export class Invitation extends Message {
|
|
245
|
+
/**
|
|
246
|
+
* @generated from field: string id = 1;
|
|
247
|
+
*/
|
|
248
|
+
id = "";
|
|
249
|
+
/**
|
|
250
|
+
* @generated from field: string email = 2;
|
|
251
|
+
*/
|
|
252
|
+
email = "";
|
|
253
|
+
/**
|
|
254
|
+
* @generated from field: auth.v1.Role role = 3;
|
|
255
|
+
*/
|
|
256
|
+
role = Role.UNSPECIFIED;
|
|
257
|
+
/**
|
|
258
|
+
* @generated from field: string invited_by_name = 4;
|
|
259
|
+
*/
|
|
260
|
+
invitedByName = "";
|
|
261
|
+
/**
|
|
262
|
+
* @generated from field: google.protobuf.Timestamp expires_at = 5;
|
|
263
|
+
*/
|
|
264
|
+
expiresAt;
|
|
265
|
+
/**
|
|
266
|
+
* @generated from field: google.protobuf.Timestamp created_at = 6;
|
|
267
|
+
*/
|
|
268
|
+
createdAt;
|
|
269
|
+
constructor(data) {
|
|
270
|
+
super();
|
|
271
|
+
proto3.util.initPartial(data, this);
|
|
272
|
+
}
|
|
273
|
+
static runtime = proto3;
|
|
274
|
+
static typeName = "auth.v1.Invitation";
|
|
275
|
+
static fields = proto3.util.newFieldList(() => [
|
|
276
|
+
{ no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
277
|
+
{ no: 2, name: "email", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
278
|
+
{ no: 3, name: "role", kind: "enum", T: proto3.getEnumType(Role) },
|
|
279
|
+
{ no: 4, name: "invited_by_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
280
|
+
{ no: 5, name: "expires_at", kind: "message", T: Timestamp },
|
|
281
|
+
{ no: 6, name: "created_at", kind: "message", T: Timestamp },
|
|
282
|
+
]);
|
|
283
|
+
static fromBinary(bytes, options) {
|
|
284
|
+
return new Invitation().fromBinary(bytes, options);
|
|
285
|
+
}
|
|
286
|
+
static fromJson(jsonValue, options) {
|
|
287
|
+
return new Invitation().fromJson(jsonValue, options);
|
|
288
|
+
}
|
|
289
|
+
static fromJsonString(jsonString, options) {
|
|
290
|
+
return new Invitation().fromJsonString(jsonString, options);
|
|
291
|
+
}
|
|
292
|
+
static equals(a, b) {
|
|
293
|
+
return proto3.util.equals(Invitation, a, b);
|
|
294
|
+
}
|
|
295
|
+
}
|
|
296
|
+
/**
|
|
297
|
+
* @generated from message auth.v1.RegisterRequest
|
|
298
|
+
*/
|
|
299
|
+
export class RegisterRequest extends Message {
|
|
300
|
+
/**
|
|
301
|
+
* @generated from field: string email = 1;
|
|
302
|
+
*/
|
|
303
|
+
email = "";
|
|
304
|
+
/**
|
|
305
|
+
* @generated from field: string password = 2;
|
|
306
|
+
*/
|
|
307
|
+
password = "";
|
|
308
|
+
/**
|
|
309
|
+
* @generated from field: string name = 3;
|
|
310
|
+
*/
|
|
311
|
+
name = "";
|
|
312
|
+
constructor(data) {
|
|
313
|
+
super();
|
|
314
|
+
proto3.util.initPartial(data, this);
|
|
315
|
+
}
|
|
316
|
+
static runtime = proto3;
|
|
317
|
+
static typeName = "auth.v1.RegisterRequest";
|
|
318
|
+
static fields = proto3.util.newFieldList(() => [
|
|
319
|
+
{ no: 1, name: "email", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
320
|
+
{ no: 2, name: "password", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
321
|
+
{ no: 3, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
322
|
+
]);
|
|
323
|
+
static fromBinary(bytes, options) {
|
|
324
|
+
return new RegisterRequest().fromBinary(bytes, options);
|
|
325
|
+
}
|
|
326
|
+
static fromJson(jsonValue, options) {
|
|
327
|
+
return new RegisterRequest().fromJson(jsonValue, options);
|
|
328
|
+
}
|
|
329
|
+
static fromJsonString(jsonString, options) {
|
|
330
|
+
return new RegisterRequest().fromJsonString(jsonString, options);
|
|
331
|
+
}
|
|
332
|
+
static equals(a, b) {
|
|
333
|
+
return proto3.util.equals(RegisterRequest, a, b);
|
|
334
|
+
}
|
|
335
|
+
}
|
|
336
|
+
/**
|
|
337
|
+
* @generated from message auth.v1.RegisterResponse
|
|
338
|
+
*/
|
|
339
|
+
export class RegisterResponse extends Message {
|
|
340
|
+
/**
|
|
341
|
+
* Note: Session cookie is set via HTTP header, not in response body
|
|
342
|
+
*
|
|
343
|
+
* @generated from field: auth.v1.User user = 1;
|
|
344
|
+
*/
|
|
345
|
+
user;
|
|
346
|
+
constructor(data) {
|
|
347
|
+
super();
|
|
348
|
+
proto3.util.initPartial(data, this);
|
|
349
|
+
}
|
|
350
|
+
static runtime = proto3;
|
|
351
|
+
static typeName = "auth.v1.RegisterResponse";
|
|
352
|
+
static fields = proto3.util.newFieldList(() => [
|
|
353
|
+
{ no: 1, name: "user", kind: "message", T: User },
|
|
354
|
+
]);
|
|
355
|
+
static fromBinary(bytes, options) {
|
|
356
|
+
return new RegisterResponse().fromBinary(bytes, options);
|
|
357
|
+
}
|
|
358
|
+
static fromJson(jsonValue, options) {
|
|
359
|
+
return new RegisterResponse().fromJson(jsonValue, options);
|
|
360
|
+
}
|
|
361
|
+
static fromJsonString(jsonString, options) {
|
|
362
|
+
return new RegisterResponse().fromJsonString(jsonString, options);
|
|
363
|
+
}
|
|
364
|
+
static equals(a, b) {
|
|
365
|
+
return proto3.util.equals(RegisterResponse, a, b);
|
|
366
|
+
}
|
|
367
|
+
}
|
|
368
|
+
/**
|
|
369
|
+
* @generated from message auth.v1.LoginRequest
|
|
370
|
+
*/
|
|
371
|
+
export class LoginRequest extends Message {
|
|
372
|
+
/**
|
|
373
|
+
* @generated from field: string email = 1;
|
|
374
|
+
*/
|
|
375
|
+
email = "";
|
|
376
|
+
/**
|
|
377
|
+
* @generated from field: string password = 2;
|
|
378
|
+
*/
|
|
379
|
+
password = "";
|
|
380
|
+
constructor(data) {
|
|
381
|
+
super();
|
|
382
|
+
proto3.util.initPartial(data, this);
|
|
383
|
+
}
|
|
384
|
+
static runtime = proto3;
|
|
385
|
+
static typeName = "auth.v1.LoginRequest";
|
|
386
|
+
static fields = proto3.util.newFieldList(() => [
|
|
387
|
+
{ no: 1, name: "email", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
388
|
+
{ no: 2, name: "password", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
389
|
+
]);
|
|
390
|
+
static fromBinary(bytes, options) {
|
|
391
|
+
return new LoginRequest().fromBinary(bytes, options);
|
|
392
|
+
}
|
|
393
|
+
static fromJson(jsonValue, options) {
|
|
394
|
+
return new LoginRequest().fromJson(jsonValue, options);
|
|
395
|
+
}
|
|
396
|
+
static fromJsonString(jsonString, options) {
|
|
397
|
+
return new LoginRequest().fromJsonString(jsonString, options);
|
|
398
|
+
}
|
|
399
|
+
static equals(a, b) {
|
|
400
|
+
return proto3.util.equals(LoginRequest, a, b);
|
|
401
|
+
}
|
|
402
|
+
}
|
|
403
|
+
/**
|
|
404
|
+
* @generated from message auth.v1.LoginResponse
|
|
405
|
+
*/
|
|
406
|
+
export class LoginResponse extends Message {
|
|
407
|
+
/**
|
|
408
|
+
* @generated from field: auth.v1.User user = 1;
|
|
409
|
+
*/
|
|
410
|
+
user;
|
|
411
|
+
/**
|
|
412
|
+
* Note: Session cookie is set via HTTP header
|
|
413
|
+
*
|
|
414
|
+
* @generated from field: auth.v1.Organization current_organization = 2;
|
|
415
|
+
*/
|
|
416
|
+
currentOrganization;
|
|
417
|
+
constructor(data) {
|
|
418
|
+
super();
|
|
419
|
+
proto3.util.initPartial(data, this);
|
|
420
|
+
}
|
|
421
|
+
static runtime = proto3;
|
|
422
|
+
static typeName = "auth.v1.LoginResponse";
|
|
423
|
+
static fields = proto3.util.newFieldList(() => [
|
|
424
|
+
{ no: 1, name: "user", kind: "message", T: User },
|
|
425
|
+
{ no: 2, name: "current_organization", kind: "message", T: Organization },
|
|
426
|
+
]);
|
|
427
|
+
static fromBinary(bytes, options) {
|
|
428
|
+
return new LoginResponse().fromBinary(bytes, options);
|
|
429
|
+
}
|
|
430
|
+
static fromJson(jsonValue, options) {
|
|
431
|
+
return new LoginResponse().fromJson(jsonValue, options);
|
|
432
|
+
}
|
|
433
|
+
static fromJsonString(jsonString, options) {
|
|
434
|
+
return new LoginResponse().fromJsonString(jsonString, options);
|
|
435
|
+
}
|
|
436
|
+
static equals(a, b) {
|
|
437
|
+
return proto3.util.equals(LoginResponse, a, b);
|
|
438
|
+
}
|
|
439
|
+
}
|
|
440
|
+
/**
|
|
441
|
+
* @generated from message auth.v1.LogoutRequest
|
|
442
|
+
*/
|
|
443
|
+
export class LogoutRequest extends Message {
|
|
444
|
+
constructor(data) {
|
|
445
|
+
super();
|
|
446
|
+
proto3.util.initPartial(data, this);
|
|
447
|
+
}
|
|
448
|
+
static runtime = proto3;
|
|
449
|
+
static typeName = "auth.v1.LogoutRequest";
|
|
450
|
+
static fields = proto3.util.newFieldList(() => []);
|
|
451
|
+
static fromBinary(bytes, options) {
|
|
452
|
+
return new LogoutRequest().fromBinary(bytes, options);
|
|
453
|
+
}
|
|
454
|
+
static fromJson(jsonValue, options) {
|
|
455
|
+
return new LogoutRequest().fromJson(jsonValue, options);
|
|
456
|
+
}
|
|
457
|
+
static fromJsonString(jsonString, options) {
|
|
458
|
+
return new LogoutRequest().fromJsonString(jsonString, options);
|
|
459
|
+
}
|
|
460
|
+
static equals(a, b) {
|
|
461
|
+
return proto3.util.equals(LogoutRequest, a, b);
|
|
462
|
+
}
|
|
463
|
+
}
|
|
464
|
+
/**
|
|
465
|
+
* @generated from message auth.v1.LogoutResponse
|
|
466
|
+
*/
|
|
467
|
+
export class LogoutResponse extends Message {
|
|
468
|
+
constructor(data) {
|
|
469
|
+
super();
|
|
470
|
+
proto3.util.initPartial(data, this);
|
|
471
|
+
}
|
|
472
|
+
static runtime = proto3;
|
|
473
|
+
static typeName = "auth.v1.LogoutResponse";
|
|
474
|
+
static fields = proto3.util.newFieldList(() => []);
|
|
475
|
+
static fromBinary(bytes, options) {
|
|
476
|
+
return new LogoutResponse().fromBinary(bytes, options);
|
|
477
|
+
}
|
|
478
|
+
static fromJson(jsonValue, options) {
|
|
479
|
+
return new LogoutResponse().fromJson(jsonValue, options);
|
|
480
|
+
}
|
|
481
|
+
static fromJsonString(jsonString, options) {
|
|
482
|
+
return new LogoutResponse().fromJsonString(jsonString, options);
|
|
483
|
+
}
|
|
484
|
+
static equals(a, b) {
|
|
485
|
+
return proto3.util.equals(LogoutResponse, a, b);
|
|
486
|
+
}
|
|
487
|
+
}
|
|
488
|
+
/**
|
|
489
|
+
* @generated from message auth.v1.GetCurrentUserRequest
|
|
490
|
+
*/
|
|
491
|
+
export class GetCurrentUserRequest extends Message {
|
|
492
|
+
constructor(data) {
|
|
493
|
+
super();
|
|
494
|
+
proto3.util.initPartial(data, this);
|
|
495
|
+
}
|
|
496
|
+
static runtime = proto3;
|
|
497
|
+
static typeName = "auth.v1.GetCurrentUserRequest";
|
|
498
|
+
static fields = proto3.util.newFieldList(() => []);
|
|
499
|
+
static fromBinary(bytes, options) {
|
|
500
|
+
return new GetCurrentUserRequest().fromBinary(bytes, options);
|
|
501
|
+
}
|
|
502
|
+
static fromJson(jsonValue, options) {
|
|
503
|
+
return new GetCurrentUserRequest().fromJson(jsonValue, options);
|
|
504
|
+
}
|
|
505
|
+
static fromJsonString(jsonString, options) {
|
|
506
|
+
return new GetCurrentUserRequest().fromJsonString(jsonString, options);
|
|
507
|
+
}
|
|
508
|
+
static equals(a, b) {
|
|
509
|
+
return proto3.util.equals(GetCurrentUserRequest, a, b);
|
|
510
|
+
}
|
|
511
|
+
}
|
|
512
|
+
/**
|
|
513
|
+
* @generated from message auth.v1.GetCurrentUserResponse
|
|
514
|
+
*/
|
|
515
|
+
export class GetCurrentUserResponse extends Message {
|
|
516
|
+
/**
|
|
517
|
+
* @generated from field: auth.v1.User user = 1;
|
|
518
|
+
*/
|
|
519
|
+
user;
|
|
520
|
+
/**
|
|
521
|
+
* @generated from field: auth.v1.Organization current_organization = 2;
|
|
522
|
+
*/
|
|
523
|
+
currentOrganization;
|
|
524
|
+
constructor(data) {
|
|
525
|
+
super();
|
|
526
|
+
proto3.util.initPartial(data, this);
|
|
527
|
+
}
|
|
528
|
+
static runtime = proto3;
|
|
529
|
+
static typeName = "auth.v1.GetCurrentUserResponse";
|
|
530
|
+
static fields = proto3.util.newFieldList(() => [
|
|
531
|
+
{ no: 1, name: "user", kind: "message", T: User },
|
|
532
|
+
{ no: 2, name: "current_organization", kind: "message", T: Organization },
|
|
533
|
+
]);
|
|
534
|
+
static fromBinary(bytes, options) {
|
|
535
|
+
return new GetCurrentUserResponse().fromBinary(bytes, options);
|
|
536
|
+
}
|
|
537
|
+
static fromJson(jsonValue, options) {
|
|
538
|
+
return new GetCurrentUserResponse().fromJson(jsonValue, options);
|
|
539
|
+
}
|
|
540
|
+
static fromJsonString(jsonString, options) {
|
|
541
|
+
return new GetCurrentUserResponse().fromJsonString(jsonString, options);
|
|
542
|
+
}
|
|
543
|
+
static equals(a, b) {
|
|
544
|
+
return proto3.util.equals(GetCurrentUserResponse, a, b);
|
|
545
|
+
}
|
|
546
|
+
}
|
|
547
|
+
/**
|
|
548
|
+
* @generated from message auth.v1.VerifyEmailRequest
|
|
549
|
+
*/
|
|
550
|
+
export class VerifyEmailRequest extends Message {
|
|
551
|
+
/**
|
|
552
|
+
* @generated from field: string token = 1;
|
|
553
|
+
*/
|
|
554
|
+
token = "";
|
|
555
|
+
constructor(data) {
|
|
556
|
+
super();
|
|
557
|
+
proto3.util.initPartial(data, this);
|
|
558
|
+
}
|
|
559
|
+
static runtime = proto3;
|
|
560
|
+
static typeName = "auth.v1.VerifyEmailRequest";
|
|
561
|
+
static fields = proto3.util.newFieldList(() => [
|
|
562
|
+
{ no: 1, name: "token", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
563
|
+
]);
|
|
564
|
+
static fromBinary(bytes, options) {
|
|
565
|
+
return new VerifyEmailRequest().fromBinary(bytes, options);
|
|
566
|
+
}
|
|
567
|
+
static fromJson(jsonValue, options) {
|
|
568
|
+
return new VerifyEmailRequest().fromJson(jsonValue, options);
|
|
569
|
+
}
|
|
570
|
+
static fromJsonString(jsonString, options) {
|
|
571
|
+
return new VerifyEmailRequest().fromJsonString(jsonString, options);
|
|
572
|
+
}
|
|
573
|
+
static equals(a, b) {
|
|
574
|
+
return proto3.util.equals(VerifyEmailRequest, a, b);
|
|
575
|
+
}
|
|
576
|
+
}
|
|
577
|
+
/**
|
|
578
|
+
* @generated from message auth.v1.VerifyEmailResponse
|
|
579
|
+
*/
|
|
580
|
+
export class VerifyEmailResponse extends Message {
|
|
581
|
+
/**
|
|
582
|
+
* @generated from field: auth.v1.User user = 1;
|
|
583
|
+
*/
|
|
584
|
+
user;
|
|
585
|
+
constructor(data) {
|
|
586
|
+
super();
|
|
587
|
+
proto3.util.initPartial(data, this);
|
|
588
|
+
}
|
|
589
|
+
static runtime = proto3;
|
|
590
|
+
static typeName = "auth.v1.VerifyEmailResponse";
|
|
591
|
+
static fields = proto3.util.newFieldList(() => [
|
|
592
|
+
{ no: 1, name: "user", kind: "message", T: User },
|
|
593
|
+
]);
|
|
594
|
+
static fromBinary(bytes, options) {
|
|
595
|
+
return new VerifyEmailResponse().fromBinary(bytes, options);
|
|
596
|
+
}
|
|
597
|
+
static fromJson(jsonValue, options) {
|
|
598
|
+
return new VerifyEmailResponse().fromJson(jsonValue, options);
|
|
599
|
+
}
|
|
600
|
+
static fromJsonString(jsonString, options) {
|
|
601
|
+
return new VerifyEmailResponse().fromJsonString(jsonString, options);
|
|
602
|
+
}
|
|
603
|
+
static equals(a, b) {
|
|
604
|
+
return proto3.util.equals(VerifyEmailResponse, a, b);
|
|
605
|
+
}
|
|
606
|
+
}
|
|
607
|
+
/**
|
|
608
|
+
* @generated from message auth.v1.ResendVerificationEmailRequest
|
|
609
|
+
*/
|
|
610
|
+
export class ResendVerificationEmailRequest extends Message {
|
|
611
|
+
constructor(data) {
|
|
612
|
+
super();
|
|
613
|
+
proto3.util.initPartial(data, this);
|
|
614
|
+
}
|
|
615
|
+
static runtime = proto3;
|
|
616
|
+
static typeName = "auth.v1.ResendVerificationEmailRequest";
|
|
617
|
+
static fields = proto3.util.newFieldList(() => []);
|
|
618
|
+
static fromBinary(bytes, options) {
|
|
619
|
+
return new ResendVerificationEmailRequest().fromBinary(bytes, options);
|
|
620
|
+
}
|
|
621
|
+
static fromJson(jsonValue, options) {
|
|
622
|
+
return new ResendVerificationEmailRequest().fromJson(jsonValue, options);
|
|
623
|
+
}
|
|
624
|
+
static fromJsonString(jsonString, options) {
|
|
625
|
+
return new ResendVerificationEmailRequest().fromJsonString(jsonString, options);
|
|
626
|
+
}
|
|
627
|
+
static equals(a, b) {
|
|
628
|
+
return proto3.util.equals(ResendVerificationEmailRequest, a, b);
|
|
629
|
+
}
|
|
630
|
+
}
|
|
631
|
+
/**
|
|
632
|
+
* @generated from message auth.v1.ResendVerificationEmailResponse
|
|
633
|
+
*/
|
|
634
|
+
export class ResendVerificationEmailResponse extends Message {
|
|
635
|
+
constructor(data) {
|
|
636
|
+
super();
|
|
637
|
+
proto3.util.initPartial(data, this);
|
|
638
|
+
}
|
|
639
|
+
static runtime = proto3;
|
|
640
|
+
static typeName = "auth.v1.ResendVerificationEmailResponse";
|
|
641
|
+
static fields = proto3.util.newFieldList(() => []);
|
|
642
|
+
static fromBinary(bytes, options) {
|
|
643
|
+
return new ResendVerificationEmailResponse().fromBinary(bytes, options);
|
|
644
|
+
}
|
|
645
|
+
static fromJson(jsonValue, options) {
|
|
646
|
+
return new ResendVerificationEmailResponse().fromJson(jsonValue, options);
|
|
647
|
+
}
|
|
648
|
+
static fromJsonString(jsonString, options) {
|
|
649
|
+
return new ResendVerificationEmailResponse().fromJsonString(jsonString, options);
|
|
650
|
+
}
|
|
651
|
+
static equals(a, b) {
|
|
652
|
+
return proto3.util.equals(ResendVerificationEmailResponse, a, b);
|
|
653
|
+
}
|
|
654
|
+
}
|
|
655
|
+
/**
|
|
656
|
+
* @generated from message auth.v1.RequestPasswordResetRequest
|
|
657
|
+
*/
|
|
658
|
+
export class RequestPasswordResetRequest extends Message {
|
|
659
|
+
/**
|
|
660
|
+
* @generated from field: string email = 1;
|
|
661
|
+
*/
|
|
662
|
+
email = "";
|
|
663
|
+
constructor(data) {
|
|
664
|
+
super();
|
|
665
|
+
proto3.util.initPartial(data, this);
|
|
666
|
+
}
|
|
667
|
+
static runtime = proto3;
|
|
668
|
+
static typeName = "auth.v1.RequestPasswordResetRequest";
|
|
669
|
+
static fields = proto3.util.newFieldList(() => [
|
|
670
|
+
{ no: 1, name: "email", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
671
|
+
]);
|
|
672
|
+
static fromBinary(bytes, options) {
|
|
673
|
+
return new RequestPasswordResetRequest().fromBinary(bytes, options);
|
|
674
|
+
}
|
|
675
|
+
static fromJson(jsonValue, options) {
|
|
676
|
+
return new RequestPasswordResetRequest().fromJson(jsonValue, options);
|
|
677
|
+
}
|
|
678
|
+
static fromJsonString(jsonString, options) {
|
|
679
|
+
return new RequestPasswordResetRequest().fromJsonString(jsonString, options);
|
|
680
|
+
}
|
|
681
|
+
static equals(a, b) {
|
|
682
|
+
return proto3.util.equals(RequestPasswordResetRequest, a, b);
|
|
683
|
+
}
|
|
684
|
+
}
|
|
685
|
+
/**
|
|
686
|
+
* Always returns success to prevent email enumeration
|
|
687
|
+
*
|
|
688
|
+
* @generated from message auth.v1.RequestPasswordResetResponse
|
|
689
|
+
*/
|
|
690
|
+
export class RequestPasswordResetResponse extends Message {
|
|
691
|
+
constructor(data) {
|
|
692
|
+
super();
|
|
693
|
+
proto3.util.initPartial(data, this);
|
|
694
|
+
}
|
|
695
|
+
static runtime = proto3;
|
|
696
|
+
static typeName = "auth.v1.RequestPasswordResetResponse";
|
|
697
|
+
static fields = proto3.util.newFieldList(() => []);
|
|
698
|
+
static fromBinary(bytes, options) {
|
|
699
|
+
return new RequestPasswordResetResponse().fromBinary(bytes, options);
|
|
700
|
+
}
|
|
701
|
+
static fromJson(jsonValue, options) {
|
|
702
|
+
return new RequestPasswordResetResponse().fromJson(jsonValue, options);
|
|
703
|
+
}
|
|
704
|
+
static fromJsonString(jsonString, options) {
|
|
705
|
+
return new RequestPasswordResetResponse().fromJsonString(jsonString, options);
|
|
706
|
+
}
|
|
707
|
+
static equals(a, b) {
|
|
708
|
+
return proto3.util.equals(RequestPasswordResetResponse, a, b);
|
|
709
|
+
}
|
|
710
|
+
}
|
|
711
|
+
/**
|
|
712
|
+
* @generated from message auth.v1.ResetPasswordRequest
|
|
713
|
+
*/
|
|
714
|
+
export class ResetPasswordRequest extends Message {
|
|
715
|
+
/**
|
|
716
|
+
* @generated from field: string token = 1;
|
|
717
|
+
*/
|
|
718
|
+
token = "";
|
|
719
|
+
/**
|
|
720
|
+
* @generated from field: string new_password = 2;
|
|
721
|
+
*/
|
|
722
|
+
newPassword = "";
|
|
723
|
+
constructor(data) {
|
|
724
|
+
super();
|
|
725
|
+
proto3.util.initPartial(data, this);
|
|
726
|
+
}
|
|
727
|
+
static runtime = proto3;
|
|
728
|
+
static typeName = "auth.v1.ResetPasswordRequest";
|
|
729
|
+
static fields = proto3.util.newFieldList(() => [
|
|
730
|
+
{ no: 1, name: "token", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
731
|
+
{ no: 2, name: "new_password", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
732
|
+
]);
|
|
733
|
+
static fromBinary(bytes, options) {
|
|
734
|
+
return new ResetPasswordRequest().fromBinary(bytes, options);
|
|
735
|
+
}
|
|
736
|
+
static fromJson(jsonValue, options) {
|
|
737
|
+
return new ResetPasswordRequest().fromJson(jsonValue, options);
|
|
738
|
+
}
|
|
739
|
+
static fromJsonString(jsonString, options) {
|
|
740
|
+
return new ResetPasswordRequest().fromJsonString(jsonString, options);
|
|
741
|
+
}
|
|
742
|
+
static equals(a, b) {
|
|
743
|
+
return proto3.util.equals(ResetPasswordRequest, a, b);
|
|
744
|
+
}
|
|
745
|
+
}
|
|
746
|
+
/**
|
|
747
|
+
* @generated from message auth.v1.ResetPasswordResponse
|
|
748
|
+
*/
|
|
749
|
+
export class ResetPasswordResponse extends Message {
|
|
750
|
+
/**
|
|
751
|
+
* @generated from field: auth.v1.User user = 1;
|
|
752
|
+
*/
|
|
753
|
+
user;
|
|
754
|
+
constructor(data) {
|
|
755
|
+
super();
|
|
756
|
+
proto3.util.initPartial(data, this);
|
|
757
|
+
}
|
|
758
|
+
static runtime = proto3;
|
|
759
|
+
static typeName = "auth.v1.ResetPasswordResponse";
|
|
760
|
+
static fields = proto3.util.newFieldList(() => [
|
|
761
|
+
{ no: 1, name: "user", kind: "message", T: User },
|
|
762
|
+
]);
|
|
763
|
+
static fromBinary(bytes, options) {
|
|
764
|
+
return new ResetPasswordResponse().fromBinary(bytes, options);
|
|
765
|
+
}
|
|
766
|
+
static fromJson(jsonValue, options) {
|
|
767
|
+
return new ResetPasswordResponse().fromJson(jsonValue, options);
|
|
768
|
+
}
|
|
769
|
+
static fromJsonString(jsonString, options) {
|
|
770
|
+
return new ResetPasswordResponse().fromJsonString(jsonString, options);
|
|
771
|
+
}
|
|
772
|
+
static equals(a, b) {
|
|
773
|
+
return proto3.util.equals(ResetPasswordResponse, a, b);
|
|
774
|
+
}
|
|
775
|
+
}
|
|
776
|
+
/**
|
|
777
|
+
* @generated from message auth.v1.CreateOrganizationRequest
|
|
778
|
+
*/
|
|
779
|
+
export class CreateOrganizationRequest extends Message {
|
|
780
|
+
/**
|
|
781
|
+
* @generated from field: string name = 1;
|
|
782
|
+
*/
|
|
783
|
+
name = "";
|
|
784
|
+
/**
|
|
785
|
+
* @generated from field: string slug = 2;
|
|
786
|
+
*/
|
|
787
|
+
slug = "";
|
|
788
|
+
constructor(data) {
|
|
789
|
+
super();
|
|
790
|
+
proto3.util.initPartial(data, this);
|
|
791
|
+
}
|
|
792
|
+
static runtime = proto3;
|
|
793
|
+
static typeName = "auth.v1.CreateOrganizationRequest";
|
|
794
|
+
static fields = proto3.util.newFieldList(() => [
|
|
795
|
+
{ no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
796
|
+
{ no: 2, name: "slug", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
797
|
+
]);
|
|
798
|
+
static fromBinary(bytes, options) {
|
|
799
|
+
return new CreateOrganizationRequest().fromBinary(bytes, options);
|
|
800
|
+
}
|
|
801
|
+
static fromJson(jsonValue, options) {
|
|
802
|
+
return new CreateOrganizationRequest().fromJson(jsonValue, options);
|
|
803
|
+
}
|
|
804
|
+
static fromJsonString(jsonString, options) {
|
|
805
|
+
return new CreateOrganizationRequest().fromJsonString(jsonString, options);
|
|
806
|
+
}
|
|
807
|
+
static equals(a, b) {
|
|
808
|
+
return proto3.util.equals(CreateOrganizationRequest, a, b);
|
|
809
|
+
}
|
|
810
|
+
}
|
|
811
|
+
/**
|
|
812
|
+
* @generated from message auth.v1.CreateOrganizationResponse
|
|
813
|
+
*/
|
|
814
|
+
export class CreateOrganizationResponse extends Message {
|
|
815
|
+
/**
|
|
816
|
+
* @generated from field: auth.v1.Organization organization = 1;
|
|
817
|
+
*/
|
|
818
|
+
organization;
|
|
819
|
+
constructor(data) {
|
|
820
|
+
super();
|
|
821
|
+
proto3.util.initPartial(data, this);
|
|
822
|
+
}
|
|
823
|
+
static runtime = proto3;
|
|
824
|
+
static typeName = "auth.v1.CreateOrganizationResponse";
|
|
825
|
+
static fields = proto3.util.newFieldList(() => [
|
|
826
|
+
{ no: 1, name: "organization", kind: "message", T: Organization },
|
|
827
|
+
]);
|
|
828
|
+
static fromBinary(bytes, options) {
|
|
829
|
+
return new CreateOrganizationResponse().fromBinary(bytes, options);
|
|
830
|
+
}
|
|
831
|
+
static fromJson(jsonValue, options) {
|
|
832
|
+
return new CreateOrganizationResponse().fromJson(jsonValue, options);
|
|
833
|
+
}
|
|
834
|
+
static fromJsonString(jsonString, options) {
|
|
835
|
+
return new CreateOrganizationResponse().fromJsonString(jsonString, options);
|
|
836
|
+
}
|
|
837
|
+
static equals(a, b) {
|
|
838
|
+
return proto3.util.equals(CreateOrganizationResponse, a, b);
|
|
839
|
+
}
|
|
840
|
+
}
|
|
841
|
+
/**
|
|
842
|
+
* @generated from message auth.v1.GetOrganizationRequest
|
|
843
|
+
*/
|
|
844
|
+
export class GetOrganizationRequest extends Message {
|
|
845
|
+
/**
|
|
846
|
+
* @generated from field: string id = 1;
|
|
847
|
+
*/
|
|
848
|
+
id = "";
|
|
849
|
+
constructor(data) {
|
|
850
|
+
super();
|
|
851
|
+
proto3.util.initPartial(data, this);
|
|
852
|
+
}
|
|
853
|
+
static runtime = proto3;
|
|
854
|
+
static typeName = "auth.v1.GetOrganizationRequest";
|
|
855
|
+
static fields = proto3.util.newFieldList(() => [
|
|
856
|
+
{ no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
857
|
+
]);
|
|
858
|
+
static fromBinary(bytes, options) {
|
|
859
|
+
return new GetOrganizationRequest().fromBinary(bytes, options);
|
|
860
|
+
}
|
|
861
|
+
static fromJson(jsonValue, options) {
|
|
862
|
+
return new GetOrganizationRequest().fromJson(jsonValue, options);
|
|
863
|
+
}
|
|
864
|
+
static fromJsonString(jsonString, options) {
|
|
865
|
+
return new GetOrganizationRequest().fromJsonString(jsonString, options);
|
|
866
|
+
}
|
|
867
|
+
static equals(a, b) {
|
|
868
|
+
return proto3.util.equals(GetOrganizationRequest, a, b);
|
|
869
|
+
}
|
|
870
|
+
}
|
|
871
|
+
/**
|
|
872
|
+
* @generated from message auth.v1.GetOrganizationResponse
|
|
873
|
+
*/
|
|
874
|
+
export class GetOrganizationResponse extends Message {
|
|
875
|
+
/**
|
|
876
|
+
* @generated from field: auth.v1.Organization organization = 1;
|
|
877
|
+
*/
|
|
878
|
+
organization;
|
|
879
|
+
constructor(data) {
|
|
880
|
+
super();
|
|
881
|
+
proto3.util.initPartial(data, this);
|
|
882
|
+
}
|
|
883
|
+
static runtime = proto3;
|
|
884
|
+
static typeName = "auth.v1.GetOrganizationResponse";
|
|
885
|
+
static fields = proto3.util.newFieldList(() => [
|
|
886
|
+
{ no: 1, name: "organization", kind: "message", T: Organization },
|
|
887
|
+
]);
|
|
888
|
+
static fromBinary(bytes, options) {
|
|
889
|
+
return new GetOrganizationResponse().fromBinary(bytes, options);
|
|
890
|
+
}
|
|
891
|
+
static fromJson(jsonValue, options) {
|
|
892
|
+
return new GetOrganizationResponse().fromJson(jsonValue, options);
|
|
893
|
+
}
|
|
894
|
+
static fromJsonString(jsonString, options) {
|
|
895
|
+
return new GetOrganizationResponse().fromJsonString(jsonString, options);
|
|
896
|
+
}
|
|
897
|
+
static equals(a, b) {
|
|
898
|
+
return proto3.util.equals(GetOrganizationResponse, a, b);
|
|
899
|
+
}
|
|
900
|
+
}
|
|
901
|
+
/**
|
|
902
|
+
* @generated from message auth.v1.ListOrganizationsRequest
|
|
903
|
+
*/
|
|
904
|
+
export class ListOrganizationsRequest extends Message {
|
|
905
|
+
constructor(data) {
|
|
906
|
+
super();
|
|
907
|
+
proto3.util.initPartial(data, this);
|
|
908
|
+
}
|
|
909
|
+
static runtime = proto3;
|
|
910
|
+
static typeName = "auth.v1.ListOrganizationsRequest";
|
|
911
|
+
static fields = proto3.util.newFieldList(() => []);
|
|
912
|
+
static fromBinary(bytes, options) {
|
|
913
|
+
return new ListOrganizationsRequest().fromBinary(bytes, options);
|
|
914
|
+
}
|
|
915
|
+
static fromJson(jsonValue, options) {
|
|
916
|
+
return new ListOrganizationsRequest().fromJson(jsonValue, options);
|
|
917
|
+
}
|
|
918
|
+
static fromJsonString(jsonString, options) {
|
|
919
|
+
return new ListOrganizationsRequest().fromJsonString(jsonString, options);
|
|
920
|
+
}
|
|
921
|
+
static equals(a, b) {
|
|
922
|
+
return proto3.util.equals(ListOrganizationsRequest, a, b);
|
|
923
|
+
}
|
|
924
|
+
}
|
|
925
|
+
/**
|
|
926
|
+
* @generated from message auth.v1.ListOrganizationsResponse
|
|
927
|
+
*/
|
|
928
|
+
export class ListOrganizationsResponse extends Message {
|
|
929
|
+
/**
|
|
930
|
+
* @generated from field: repeated auth.v1.Organization organizations = 1;
|
|
931
|
+
*/
|
|
932
|
+
organizations = [];
|
|
933
|
+
constructor(data) {
|
|
934
|
+
super();
|
|
935
|
+
proto3.util.initPartial(data, this);
|
|
936
|
+
}
|
|
937
|
+
static runtime = proto3;
|
|
938
|
+
static typeName = "auth.v1.ListOrganizationsResponse";
|
|
939
|
+
static fields = proto3.util.newFieldList(() => [
|
|
940
|
+
{ no: 1, name: "organizations", kind: "message", T: Organization, repeated: true },
|
|
941
|
+
]);
|
|
942
|
+
static fromBinary(bytes, options) {
|
|
943
|
+
return new ListOrganizationsResponse().fromBinary(bytes, options);
|
|
944
|
+
}
|
|
945
|
+
static fromJson(jsonValue, options) {
|
|
946
|
+
return new ListOrganizationsResponse().fromJson(jsonValue, options);
|
|
947
|
+
}
|
|
948
|
+
static fromJsonString(jsonString, options) {
|
|
949
|
+
return new ListOrganizationsResponse().fromJsonString(jsonString, options);
|
|
950
|
+
}
|
|
951
|
+
static equals(a, b) {
|
|
952
|
+
return proto3.util.equals(ListOrganizationsResponse, a, b);
|
|
953
|
+
}
|
|
954
|
+
}
|
|
955
|
+
/**
|
|
956
|
+
* @generated from message auth.v1.UpdateOrganizationRequest
|
|
957
|
+
*/
|
|
958
|
+
export class UpdateOrganizationRequest extends Message {
|
|
959
|
+
/**
|
|
960
|
+
* @generated from field: string id = 1;
|
|
961
|
+
*/
|
|
962
|
+
id = "";
|
|
963
|
+
/**
|
|
964
|
+
* @generated from field: string name = 2;
|
|
965
|
+
*/
|
|
966
|
+
name = "";
|
|
967
|
+
/**
|
|
968
|
+
* @generated from field: string slug = 3;
|
|
969
|
+
*/
|
|
970
|
+
slug = "";
|
|
971
|
+
constructor(data) {
|
|
972
|
+
super();
|
|
973
|
+
proto3.util.initPartial(data, this);
|
|
974
|
+
}
|
|
975
|
+
static runtime = proto3;
|
|
976
|
+
static typeName = "auth.v1.UpdateOrganizationRequest";
|
|
977
|
+
static fields = proto3.util.newFieldList(() => [
|
|
978
|
+
{ no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
979
|
+
{ no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
980
|
+
{ no: 3, name: "slug", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
981
|
+
]);
|
|
982
|
+
static fromBinary(bytes, options) {
|
|
983
|
+
return new UpdateOrganizationRequest().fromBinary(bytes, options);
|
|
984
|
+
}
|
|
985
|
+
static fromJson(jsonValue, options) {
|
|
986
|
+
return new UpdateOrganizationRequest().fromJson(jsonValue, options);
|
|
987
|
+
}
|
|
988
|
+
static fromJsonString(jsonString, options) {
|
|
989
|
+
return new UpdateOrganizationRequest().fromJsonString(jsonString, options);
|
|
990
|
+
}
|
|
991
|
+
static equals(a, b) {
|
|
992
|
+
return proto3.util.equals(UpdateOrganizationRequest, a, b);
|
|
993
|
+
}
|
|
994
|
+
}
|
|
995
|
+
/**
|
|
996
|
+
* @generated from message auth.v1.UpdateOrganizationResponse
|
|
997
|
+
*/
|
|
998
|
+
export class UpdateOrganizationResponse extends Message {
|
|
999
|
+
/**
|
|
1000
|
+
* @generated from field: auth.v1.Organization organization = 1;
|
|
1001
|
+
*/
|
|
1002
|
+
organization;
|
|
1003
|
+
constructor(data) {
|
|
1004
|
+
super();
|
|
1005
|
+
proto3.util.initPartial(data, this);
|
|
1006
|
+
}
|
|
1007
|
+
static runtime = proto3;
|
|
1008
|
+
static typeName = "auth.v1.UpdateOrganizationResponse";
|
|
1009
|
+
static fields = proto3.util.newFieldList(() => [
|
|
1010
|
+
{ no: 1, name: "organization", kind: "message", T: Organization },
|
|
1011
|
+
]);
|
|
1012
|
+
static fromBinary(bytes, options) {
|
|
1013
|
+
return new UpdateOrganizationResponse().fromBinary(bytes, options);
|
|
1014
|
+
}
|
|
1015
|
+
static fromJson(jsonValue, options) {
|
|
1016
|
+
return new UpdateOrganizationResponse().fromJson(jsonValue, options);
|
|
1017
|
+
}
|
|
1018
|
+
static fromJsonString(jsonString, options) {
|
|
1019
|
+
return new UpdateOrganizationResponse().fromJsonString(jsonString, options);
|
|
1020
|
+
}
|
|
1021
|
+
static equals(a, b) {
|
|
1022
|
+
return proto3.util.equals(UpdateOrganizationResponse, a, b);
|
|
1023
|
+
}
|
|
1024
|
+
}
|
|
1025
|
+
/**
|
|
1026
|
+
* @generated from message auth.v1.DeleteOrganizationRequest
|
|
1027
|
+
*/
|
|
1028
|
+
export class DeleteOrganizationRequest extends Message {
|
|
1029
|
+
/**
|
|
1030
|
+
* @generated from field: string id = 1;
|
|
1031
|
+
*/
|
|
1032
|
+
id = "";
|
|
1033
|
+
constructor(data) {
|
|
1034
|
+
super();
|
|
1035
|
+
proto3.util.initPartial(data, this);
|
|
1036
|
+
}
|
|
1037
|
+
static runtime = proto3;
|
|
1038
|
+
static typeName = "auth.v1.DeleteOrganizationRequest";
|
|
1039
|
+
static fields = proto3.util.newFieldList(() => [
|
|
1040
|
+
{ no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1041
|
+
]);
|
|
1042
|
+
static fromBinary(bytes, options) {
|
|
1043
|
+
return new DeleteOrganizationRequest().fromBinary(bytes, options);
|
|
1044
|
+
}
|
|
1045
|
+
static fromJson(jsonValue, options) {
|
|
1046
|
+
return new DeleteOrganizationRequest().fromJson(jsonValue, options);
|
|
1047
|
+
}
|
|
1048
|
+
static fromJsonString(jsonString, options) {
|
|
1049
|
+
return new DeleteOrganizationRequest().fromJsonString(jsonString, options);
|
|
1050
|
+
}
|
|
1051
|
+
static equals(a, b) {
|
|
1052
|
+
return proto3.util.equals(DeleteOrganizationRequest, a, b);
|
|
1053
|
+
}
|
|
1054
|
+
}
|
|
1055
|
+
/**
|
|
1056
|
+
* @generated from message auth.v1.DeleteOrganizationResponse
|
|
1057
|
+
*/
|
|
1058
|
+
export class DeleteOrganizationResponse extends Message {
|
|
1059
|
+
constructor(data) {
|
|
1060
|
+
super();
|
|
1061
|
+
proto3.util.initPartial(data, this);
|
|
1062
|
+
}
|
|
1063
|
+
static runtime = proto3;
|
|
1064
|
+
static typeName = "auth.v1.DeleteOrganizationResponse";
|
|
1065
|
+
static fields = proto3.util.newFieldList(() => []);
|
|
1066
|
+
static fromBinary(bytes, options) {
|
|
1067
|
+
return new DeleteOrganizationResponse().fromBinary(bytes, options);
|
|
1068
|
+
}
|
|
1069
|
+
static fromJson(jsonValue, options) {
|
|
1070
|
+
return new DeleteOrganizationResponse().fromJson(jsonValue, options);
|
|
1071
|
+
}
|
|
1072
|
+
static fromJsonString(jsonString, options) {
|
|
1073
|
+
return new DeleteOrganizationResponse().fromJsonString(jsonString, options);
|
|
1074
|
+
}
|
|
1075
|
+
static equals(a, b) {
|
|
1076
|
+
return proto3.util.equals(DeleteOrganizationResponse, a, b);
|
|
1077
|
+
}
|
|
1078
|
+
}
|
|
1079
|
+
/**
|
|
1080
|
+
* @generated from message auth.v1.SwitchOrganizationRequest
|
|
1081
|
+
*/
|
|
1082
|
+
export class SwitchOrganizationRequest extends Message {
|
|
1083
|
+
/**
|
|
1084
|
+
* @generated from field: string organization_id = 1;
|
|
1085
|
+
*/
|
|
1086
|
+
organizationId = "";
|
|
1087
|
+
constructor(data) {
|
|
1088
|
+
super();
|
|
1089
|
+
proto3.util.initPartial(data, this);
|
|
1090
|
+
}
|
|
1091
|
+
static runtime = proto3;
|
|
1092
|
+
static typeName = "auth.v1.SwitchOrganizationRequest";
|
|
1093
|
+
static fields = proto3.util.newFieldList(() => [
|
|
1094
|
+
{ no: 1, name: "organization_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1095
|
+
]);
|
|
1096
|
+
static fromBinary(bytes, options) {
|
|
1097
|
+
return new SwitchOrganizationRequest().fromBinary(bytes, options);
|
|
1098
|
+
}
|
|
1099
|
+
static fromJson(jsonValue, options) {
|
|
1100
|
+
return new SwitchOrganizationRequest().fromJson(jsonValue, options);
|
|
1101
|
+
}
|
|
1102
|
+
static fromJsonString(jsonString, options) {
|
|
1103
|
+
return new SwitchOrganizationRequest().fromJsonString(jsonString, options);
|
|
1104
|
+
}
|
|
1105
|
+
static equals(a, b) {
|
|
1106
|
+
return proto3.util.equals(SwitchOrganizationRequest, a, b);
|
|
1107
|
+
}
|
|
1108
|
+
}
|
|
1109
|
+
/**
|
|
1110
|
+
* @generated from message auth.v1.SwitchOrganizationResponse
|
|
1111
|
+
*/
|
|
1112
|
+
export class SwitchOrganizationResponse extends Message {
|
|
1113
|
+
/**
|
|
1114
|
+
* @generated from field: auth.v1.Organization organization = 1;
|
|
1115
|
+
*/
|
|
1116
|
+
organization;
|
|
1117
|
+
constructor(data) {
|
|
1118
|
+
super();
|
|
1119
|
+
proto3.util.initPartial(data, this);
|
|
1120
|
+
}
|
|
1121
|
+
static runtime = proto3;
|
|
1122
|
+
static typeName = "auth.v1.SwitchOrganizationResponse";
|
|
1123
|
+
static fields = proto3.util.newFieldList(() => [
|
|
1124
|
+
{ no: 1, name: "organization", kind: "message", T: Organization },
|
|
1125
|
+
]);
|
|
1126
|
+
static fromBinary(bytes, options) {
|
|
1127
|
+
return new SwitchOrganizationResponse().fromBinary(bytes, options);
|
|
1128
|
+
}
|
|
1129
|
+
static fromJson(jsonValue, options) {
|
|
1130
|
+
return new SwitchOrganizationResponse().fromJson(jsonValue, options);
|
|
1131
|
+
}
|
|
1132
|
+
static fromJsonString(jsonString, options) {
|
|
1133
|
+
return new SwitchOrganizationResponse().fromJsonString(jsonString, options);
|
|
1134
|
+
}
|
|
1135
|
+
static equals(a, b) {
|
|
1136
|
+
return proto3.util.equals(SwitchOrganizationResponse, a, b);
|
|
1137
|
+
}
|
|
1138
|
+
}
|
|
1139
|
+
/**
|
|
1140
|
+
* @generated from message auth.v1.InviteMemberRequest
|
|
1141
|
+
*/
|
|
1142
|
+
export class InviteMemberRequest extends Message {
|
|
1143
|
+
/**
|
|
1144
|
+
* @generated from field: string organization_id = 1;
|
|
1145
|
+
*/
|
|
1146
|
+
organizationId = "";
|
|
1147
|
+
/**
|
|
1148
|
+
* @generated from field: string email = 2;
|
|
1149
|
+
*/
|
|
1150
|
+
email = "";
|
|
1151
|
+
/**
|
|
1152
|
+
* @generated from field: auth.v1.Role role = 3;
|
|
1153
|
+
*/
|
|
1154
|
+
role = Role.UNSPECIFIED;
|
|
1155
|
+
constructor(data) {
|
|
1156
|
+
super();
|
|
1157
|
+
proto3.util.initPartial(data, this);
|
|
1158
|
+
}
|
|
1159
|
+
static runtime = proto3;
|
|
1160
|
+
static typeName = "auth.v1.InviteMemberRequest";
|
|
1161
|
+
static fields = proto3.util.newFieldList(() => [
|
|
1162
|
+
{ no: 1, name: "organization_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1163
|
+
{ no: 2, name: "email", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1164
|
+
{ no: 3, name: "role", kind: "enum", T: proto3.getEnumType(Role) },
|
|
1165
|
+
]);
|
|
1166
|
+
static fromBinary(bytes, options) {
|
|
1167
|
+
return new InviteMemberRequest().fromBinary(bytes, options);
|
|
1168
|
+
}
|
|
1169
|
+
static fromJson(jsonValue, options) {
|
|
1170
|
+
return new InviteMemberRequest().fromJson(jsonValue, options);
|
|
1171
|
+
}
|
|
1172
|
+
static fromJsonString(jsonString, options) {
|
|
1173
|
+
return new InviteMemberRequest().fromJsonString(jsonString, options);
|
|
1174
|
+
}
|
|
1175
|
+
static equals(a, b) {
|
|
1176
|
+
return proto3.util.equals(InviteMemberRequest, a, b);
|
|
1177
|
+
}
|
|
1178
|
+
}
|
|
1179
|
+
/**
|
|
1180
|
+
* @generated from message auth.v1.InviteMemberResponse
|
|
1181
|
+
*/
|
|
1182
|
+
export class InviteMemberResponse extends Message {
|
|
1183
|
+
/**
|
|
1184
|
+
* @generated from field: auth.v1.Invitation invitation = 1;
|
|
1185
|
+
*/
|
|
1186
|
+
invitation;
|
|
1187
|
+
constructor(data) {
|
|
1188
|
+
super();
|
|
1189
|
+
proto3.util.initPartial(data, this);
|
|
1190
|
+
}
|
|
1191
|
+
static runtime = proto3;
|
|
1192
|
+
static typeName = "auth.v1.InviteMemberResponse";
|
|
1193
|
+
static fields = proto3.util.newFieldList(() => [
|
|
1194
|
+
{ no: 1, name: "invitation", kind: "message", T: Invitation },
|
|
1195
|
+
]);
|
|
1196
|
+
static fromBinary(bytes, options) {
|
|
1197
|
+
return new InviteMemberResponse().fromBinary(bytes, options);
|
|
1198
|
+
}
|
|
1199
|
+
static fromJson(jsonValue, options) {
|
|
1200
|
+
return new InviteMemberResponse().fromJson(jsonValue, options);
|
|
1201
|
+
}
|
|
1202
|
+
static fromJsonString(jsonString, options) {
|
|
1203
|
+
return new InviteMemberResponse().fromJsonString(jsonString, options);
|
|
1204
|
+
}
|
|
1205
|
+
static equals(a, b) {
|
|
1206
|
+
return proto3.util.equals(InviteMemberResponse, a, b);
|
|
1207
|
+
}
|
|
1208
|
+
}
|
|
1209
|
+
/**
|
|
1210
|
+
* @generated from message auth.v1.AcceptInvitationRequest
|
|
1211
|
+
*/
|
|
1212
|
+
export class AcceptInvitationRequest extends Message {
|
|
1213
|
+
/**
|
|
1214
|
+
* @generated from field: string token = 1;
|
|
1215
|
+
*/
|
|
1216
|
+
token = "";
|
|
1217
|
+
constructor(data) {
|
|
1218
|
+
super();
|
|
1219
|
+
proto3.util.initPartial(data, this);
|
|
1220
|
+
}
|
|
1221
|
+
static runtime = proto3;
|
|
1222
|
+
static typeName = "auth.v1.AcceptInvitationRequest";
|
|
1223
|
+
static fields = proto3.util.newFieldList(() => [
|
|
1224
|
+
{ no: 1, name: "token", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1225
|
+
]);
|
|
1226
|
+
static fromBinary(bytes, options) {
|
|
1227
|
+
return new AcceptInvitationRequest().fromBinary(bytes, options);
|
|
1228
|
+
}
|
|
1229
|
+
static fromJson(jsonValue, options) {
|
|
1230
|
+
return new AcceptInvitationRequest().fromJson(jsonValue, options);
|
|
1231
|
+
}
|
|
1232
|
+
static fromJsonString(jsonString, options) {
|
|
1233
|
+
return new AcceptInvitationRequest().fromJsonString(jsonString, options);
|
|
1234
|
+
}
|
|
1235
|
+
static equals(a, b) {
|
|
1236
|
+
return proto3.util.equals(AcceptInvitationRequest, a, b);
|
|
1237
|
+
}
|
|
1238
|
+
}
|
|
1239
|
+
/**
|
|
1240
|
+
* @generated from message auth.v1.AcceptInvitationResponse
|
|
1241
|
+
*/
|
|
1242
|
+
export class AcceptInvitationResponse extends Message {
|
|
1243
|
+
/**
|
|
1244
|
+
* @generated from field: auth.v1.Organization organization = 1;
|
|
1245
|
+
*/
|
|
1246
|
+
organization;
|
|
1247
|
+
constructor(data) {
|
|
1248
|
+
super();
|
|
1249
|
+
proto3.util.initPartial(data, this);
|
|
1250
|
+
}
|
|
1251
|
+
static runtime = proto3;
|
|
1252
|
+
static typeName = "auth.v1.AcceptInvitationResponse";
|
|
1253
|
+
static fields = proto3.util.newFieldList(() => [
|
|
1254
|
+
{ no: 1, name: "organization", kind: "message", T: Organization },
|
|
1255
|
+
]);
|
|
1256
|
+
static fromBinary(bytes, options) {
|
|
1257
|
+
return new AcceptInvitationResponse().fromBinary(bytes, options);
|
|
1258
|
+
}
|
|
1259
|
+
static fromJson(jsonValue, options) {
|
|
1260
|
+
return new AcceptInvitationResponse().fromJson(jsonValue, options);
|
|
1261
|
+
}
|
|
1262
|
+
static fromJsonString(jsonString, options) {
|
|
1263
|
+
return new AcceptInvitationResponse().fromJsonString(jsonString, options);
|
|
1264
|
+
}
|
|
1265
|
+
static equals(a, b) {
|
|
1266
|
+
return proto3.util.equals(AcceptInvitationResponse, a, b);
|
|
1267
|
+
}
|
|
1268
|
+
}
|
|
1269
|
+
/**
|
|
1270
|
+
* @generated from message auth.v1.ListMembersRequest
|
|
1271
|
+
*/
|
|
1272
|
+
export class ListMembersRequest extends Message {
|
|
1273
|
+
/**
|
|
1274
|
+
* @generated from field: string organization_id = 1;
|
|
1275
|
+
*/
|
|
1276
|
+
organizationId = "";
|
|
1277
|
+
constructor(data) {
|
|
1278
|
+
super();
|
|
1279
|
+
proto3.util.initPartial(data, this);
|
|
1280
|
+
}
|
|
1281
|
+
static runtime = proto3;
|
|
1282
|
+
static typeName = "auth.v1.ListMembersRequest";
|
|
1283
|
+
static fields = proto3.util.newFieldList(() => [
|
|
1284
|
+
{ no: 1, name: "organization_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1285
|
+
]);
|
|
1286
|
+
static fromBinary(bytes, options) {
|
|
1287
|
+
return new ListMembersRequest().fromBinary(bytes, options);
|
|
1288
|
+
}
|
|
1289
|
+
static fromJson(jsonValue, options) {
|
|
1290
|
+
return new ListMembersRequest().fromJson(jsonValue, options);
|
|
1291
|
+
}
|
|
1292
|
+
static fromJsonString(jsonString, options) {
|
|
1293
|
+
return new ListMembersRequest().fromJsonString(jsonString, options);
|
|
1294
|
+
}
|
|
1295
|
+
static equals(a, b) {
|
|
1296
|
+
return proto3.util.equals(ListMembersRequest, a, b);
|
|
1297
|
+
}
|
|
1298
|
+
}
|
|
1299
|
+
/**
|
|
1300
|
+
* @generated from message auth.v1.ListMembersResponse
|
|
1301
|
+
*/
|
|
1302
|
+
export class ListMembersResponse extends Message {
|
|
1303
|
+
/**
|
|
1304
|
+
* @generated from field: repeated auth.v1.Member members = 1;
|
|
1305
|
+
*/
|
|
1306
|
+
members = [];
|
|
1307
|
+
/**
|
|
1308
|
+
* @generated from field: repeated auth.v1.Invitation pending_invitations = 2;
|
|
1309
|
+
*/
|
|
1310
|
+
pendingInvitations = [];
|
|
1311
|
+
constructor(data) {
|
|
1312
|
+
super();
|
|
1313
|
+
proto3.util.initPartial(data, this);
|
|
1314
|
+
}
|
|
1315
|
+
static runtime = proto3;
|
|
1316
|
+
static typeName = "auth.v1.ListMembersResponse";
|
|
1317
|
+
static fields = proto3.util.newFieldList(() => [
|
|
1318
|
+
{ no: 1, name: "members", kind: "message", T: Member, repeated: true },
|
|
1319
|
+
{ no: 2, name: "pending_invitations", kind: "message", T: Invitation, repeated: true },
|
|
1320
|
+
]);
|
|
1321
|
+
static fromBinary(bytes, options) {
|
|
1322
|
+
return new ListMembersResponse().fromBinary(bytes, options);
|
|
1323
|
+
}
|
|
1324
|
+
static fromJson(jsonValue, options) {
|
|
1325
|
+
return new ListMembersResponse().fromJson(jsonValue, options);
|
|
1326
|
+
}
|
|
1327
|
+
static fromJsonString(jsonString, options) {
|
|
1328
|
+
return new ListMembersResponse().fromJsonString(jsonString, options);
|
|
1329
|
+
}
|
|
1330
|
+
static equals(a, b) {
|
|
1331
|
+
return proto3.util.equals(ListMembersResponse, a, b);
|
|
1332
|
+
}
|
|
1333
|
+
}
|
|
1334
|
+
/**
|
|
1335
|
+
* @generated from message auth.v1.UpdateMemberRoleRequest
|
|
1336
|
+
*/
|
|
1337
|
+
export class UpdateMemberRoleRequest extends Message {
|
|
1338
|
+
/**
|
|
1339
|
+
* @generated from field: string organization_id = 1;
|
|
1340
|
+
*/
|
|
1341
|
+
organizationId = "";
|
|
1342
|
+
/**
|
|
1343
|
+
* @generated from field: string user_id = 2;
|
|
1344
|
+
*/
|
|
1345
|
+
userId = "";
|
|
1346
|
+
/**
|
|
1347
|
+
* @generated from field: auth.v1.Role role = 3;
|
|
1348
|
+
*/
|
|
1349
|
+
role = Role.UNSPECIFIED;
|
|
1350
|
+
constructor(data) {
|
|
1351
|
+
super();
|
|
1352
|
+
proto3.util.initPartial(data, this);
|
|
1353
|
+
}
|
|
1354
|
+
static runtime = proto3;
|
|
1355
|
+
static typeName = "auth.v1.UpdateMemberRoleRequest";
|
|
1356
|
+
static fields = proto3.util.newFieldList(() => [
|
|
1357
|
+
{ no: 1, name: "organization_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1358
|
+
{ no: 2, name: "user_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1359
|
+
{ no: 3, name: "role", kind: "enum", T: proto3.getEnumType(Role) },
|
|
1360
|
+
]);
|
|
1361
|
+
static fromBinary(bytes, options) {
|
|
1362
|
+
return new UpdateMemberRoleRequest().fromBinary(bytes, options);
|
|
1363
|
+
}
|
|
1364
|
+
static fromJson(jsonValue, options) {
|
|
1365
|
+
return new UpdateMemberRoleRequest().fromJson(jsonValue, options);
|
|
1366
|
+
}
|
|
1367
|
+
static fromJsonString(jsonString, options) {
|
|
1368
|
+
return new UpdateMemberRoleRequest().fromJsonString(jsonString, options);
|
|
1369
|
+
}
|
|
1370
|
+
static equals(a, b) {
|
|
1371
|
+
return proto3.util.equals(UpdateMemberRoleRequest, a, b);
|
|
1372
|
+
}
|
|
1373
|
+
}
|
|
1374
|
+
/**
|
|
1375
|
+
* @generated from message auth.v1.UpdateMemberRoleResponse
|
|
1376
|
+
*/
|
|
1377
|
+
export class UpdateMemberRoleResponse extends Message {
|
|
1378
|
+
/**
|
|
1379
|
+
* @generated from field: auth.v1.Member member = 1;
|
|
1380
|
+
*/
|
|
1381
|
+
member;
|
|
1382
|
+
constructor(data) {
|
|
1383
|
+
super();
|
|
1384
|
+
proto3.util.initPartial(data, this);
|
|
1385
|
+
}
|
|
1386
|
+
static runtime = proto3;
|
|
1387
|
+
static typeName = "auth.v1.UpdateMemberRoleResponse";
|
|
1388
|
+
static fields = proto3.util.newFieldList(() => [
|
|
1389
|
+
{ no: 1, name: "member", kind: "message", T: Member },
|
|
1390
|
+
]);
|
|
1391
|
+
static fromBinary(bytes, options) {
|
|
1392
|
+
return new UpdateMemberRoleResponse().fromBinary(bytes, options);
|
|
1393
|
+
}
|
|
1394
|
+
static fromJson(jsonValue, options) {
|
|
1395
|
+
return new UpdateMemberRoleResponse().fromJson(jsonValue, options);
|
|
1396
|
+
}
|
|
1397
|
+
static fromJsonString(jsonString, options) {
|
|
1398
|
+
return new UpdateMemberRoleResponse().fromJsonString(jsonString, options);
|
|
1399
|
+
}
|
|
1400
|
+
static equals(a, b) {
|
|
1401
|
+
return proto3.util.equals(UpdateMemberRoleResponse, a, b);
|
|
1402
|
+
}
|
|
1403
|
+
}
|
|
1404
|
+
/**
|
|
1405
|
+
* @generated from message auth.v1.RemoveMemberRequest
|
|
1406
|
+
*/
|
|
1407
|
+
export class RemoveMemberRequest extends Message {
|
|
1408
|
+
/**
|
|
1409
|
+
* @generated from field: string organization_id = 1;
|
|
1410
|
+
*/
|
|
1411
|
+
organizationId = "";
|
|
1412
|
+
/**
|
|
1413
|
+
* @generated from field: string user_id = 2;
|
|
1414
|
+
*/
|
|
1415
|
+
userId = "";
|
|
1416
|
+
constructor(data) {
|
|
1417
|
+
super();
|
|
1418
|
+
proto3.util.initPartial(data, this);
|
|
1419
|
+
}
|
|
1420
|
+
static runtime = proto3;
|
|
1421
|
+
static typeName = "auth.v1.RemoveMemberRequest";
|
|
1422
|
+
static fields = proto3.util.newFieldList(() => [
|
|
1423
|
+
{ no: 1, name: "organization_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1424
|
+
{ no: 2, name: "user_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1425
|
+
]);
|
|
1426
|
+
static fromBinary(bytes, options) {
|
|
1427
|
+
return new RemoveMemberRequest().fromBinary(bytes, options);
|
|
1428
|
+
}
|
|
1429
|
+
static fromJson(jsonValue, options) {
|
|
1430
|
+
return new RemoveMemberRequest().fromJson(jsonValue, options);
|
|
1431
|
+
}
|
|
1432
|
+
static fromJsonString(jsonString, options) {
|
|
1433
|
+
return new RemoveMemberRequest().fromJsonString(jsonString, options);
|
|
1434
|
+
}
|
|
1435
|
+
static equals(a, b) {
|
|
1436
|
+
return proto3.util.equals(RemoveMemberRequest, a, b);
|
|
1437
|
+
}
|
|
1438
|
+
}
|
|
1439
|
+
/**
|
|
1440
|
+
* @generated from message auth.v1.RemoveMemberResponse
|
|
1441
|
+
*/
|
|
1442
|
+
export class RemoveMemberResponse extends Message {
|
|
1443
|
+
constructor(data) {
|
|
1444
|
+
super();
|
|
1445
|
+
proto3.util.initPartial(data, this);
|
|
1446
|
+
}
|
|
1447
|
+
static runtime = proto3;
|
|
1448
|
+
static typeName = "auth.v1.RemoveMemberResponse";
|
|
1449
|
+
static fields = proto3.util.newFieldList(() => []);
|
|
1450
|
+
static fromBinary(bytes, options) {
|
|
1451
|
+
return new RemoveMemberResponse().fromBinary(bytes, options);
|
|
1452
|
+
}
|
|
1453
|
+
static fromJson(jsonValue, options) {
|
|
1454
|
+
return new RemoveMemberResponse().fromJson(jsonValue, options);
|
|
1455
|
+
}
|
|
1456
|
+
static fromJsonString(jsonString, options) {
|
|
1457
|
+
return new RemoveMemberResponse().fromJsonString(jsonString, options);
|
|
1458
|
+
}
|
|
1459
|
+
static equals(a, b) {
|
|
1460
|
+
return proto3.util.equals(RemoveMemberResponse, a, b);
|
|
1461
|
+
}
|
|
1462
|
+
}
|
|
1463
|
+
/**
|
|
1464
|
+
* @generated from message auth.v1.LeaveOrganizationRequest
|
|
1465
|
+
*/
|
|
1466
|
+
export class LeaveOrganizationRequest extends Message {
|
|
1467
|
+
/**
|
|
1468
|
+
* @generated from field: string organization_id = 1;
|
|
1469
|
+
*/
|
|
1470
|
+
organizationId = "";
|
|
1471
|
+
constructor(data) {
|
|
1472
|
+
super();
|
|
1473
|
+
proto3.util.initPartial(data, this);
|
|
1474
|
+
}
|
|
1475
|
+
static runtime = proto3;
|
|
1476
|
+
static typeName = "auth.v1.LeaveOrganizationRequest";
|
|
1477
|
+
static fields = proto3.util.newFieldList(() => [
|
|
1478
|
+
{ no: 1, name: "organization_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1479
|
+
]);
|
|
1480
|
+
static fromBinary(bytes, options) {
|
|
1481
|
+
return new LeaveOrganizationRequest().fromBinary(bytes, options);
|
|
1482
|
+
}
|
|
1483
|
+
static fromJson(jsonValue, options) {
|
|
1484
|
+
return new LeaveOrganizationRequest().fromJson(jsonValue, options);
|
|
1485
|
+
}
|
|
1486
|
+
static fromJsonString(jsonString, options) {
|
|
1487
|
+
return new LeaveOrganizationRequest().fromJsonString(jsonString, options);
|
|
1488
|
+
}
|
|
1489
|
+
static equals(a, b) {
|
|
1490
|
+
return proto3.util.equals(LeaveOrganizationRequest, a, b);
|
|
1491
|
+
}
|
|
1492
|
+
}
|
|
1493
|
+
/**
|
|
1494
|
+
* @generated from message auth.v1.LeaveOrganizationResponse
|
|
1495
|
+
*/
|
|
1496
|
+
export class LeaveOrganizationResponse extends Message {
|
|
1497
|
+
constructor(data) {
|
|
1498
|
+
super();
|
|
1499
|
+
proto3.util.initPartial(data, this);
|
|
1500
|
+
}
|
|
1501
|
+
static runtime = proto3;
|
|
1502
|
+
static typeName = "auth.v1.LeaveOrganizationResponse";
|
|
1503
|
+
static fields = proto3.util.newFieldList(() => []);
|
|
1504
|
+
static fromBinary(bytes, options) {
|
|
1505
|
+
return new LeaveOrganizationResponse().fromBinary(bytes, options);
|
|
1506
|
+
}
|
|
1507
|
+
static fromJson(jsonValue, options) {
|
|
1508
|
+
return new LeaveOrganizationResponse().fromJson(jsonValue, options);
|
|
1509
|
+
}
|
|
1510
|
+
static fromJsonString(jsonString, options) {
|
|
1511
|
+
return new LeaveOrganizationResponse().fromJsonString(jsonString, options);
|
|
1512
|
+
}
|
|
1513
|
+
static equals(a, b) {
|
|
1514
|
+
return proto3.util.equals(LeaveOrganizationResponse, a, b);
|
|
1515
|
+
}
|
|
1516
|
+
}
|
|
1517
|
+
/**
|
|
1518
|
+
* @generated from message auth.v1.ApiKey
|
|
1519
|
+
*/
|
|
1520
|
+
export class ApiKey extends Message {
|
|
1521
|
+
/**
|
|
1522
|
+
* @generated from field: string id = 1;
|
|
1523
|
+
*/
|
|
1524
|
+
id = "";
|
|
1525
|
+
/**
|
|
1526
|
+
* @generated from field: string org_id = 2;
|
|
1527
|
+
*/
|
|
1528
|
+
orgId = "";
|
|
1529
|
+
/**
|
|
1530
|
+
* @generated from field: string name = 3;
|
|
1531
|
+
*/
|
|
1532
|
+
name = "";
|
|
1533
|
+
/**
|
|
1534
|
+
* @generated from field: string key_prefix = 4;
|
|
1535
|
+
*/
|
|
1536
|
+
keyPrefix = "";
|
|
1537
|
+
/**
|
|
1538
|
+
* @generated from field: repeated auth.v1.ApiKeyScope scopes = 5;
|
|
1539
|
+
*/
|
|
1540
|
+
scopes = [];
|
|
1541
|
+
/**
|
|
1542
|
+
* @generated from field: google.protobuf.Timestamp last_used_at = 6;
|
|
1543
|
+
*/
|
|
1544
|
+
lastUsedAt;
|
|
1545
|
+
/**
|
|
1546
|
+
* @generated from field: google.protobuf.Timestamp expires_at = 7;
|
|
1547
|
+
*/
|
|
1548
|
+
expiresAt;
|
|
1549
|
+
/**
|
|
1550
|
+
* @generated from field: google.protobuf.Timestamp revoked_at = 8;
|
|
1551
|
+
*/
|
|
1552
|
+
revokedAt;
|
|
1553
|
+
/**
|
|
1554
|
+
* @generated from field: string created_by = 9;
|
|
1555
|
+
*/
|
|
1556
|
+
createdBy = "";
|
|
1557
|
+
/**
|
|
1558
|
+
* @generated from field: google.protobuf.Timestamp created_at = 10;
|
|
1559
|
+
*/
|
|
1560
|
+
createdAt;
|
|
1561
|
+
constructor(data) {
|
|
1562
|
+
super();
|
|
1563
|
+
proto3.util.initPartial(data, this);
|
|
1564
|
+
}
|
|
1565
|
+
static runtime = proto3;
|
|
1566
|
+
static typeName = "auth.v1.ApiKey";
|
|
1567
|
+
static fields = proto3.util.newFieldList(() => [
|
|
1568
|
+
{ no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1569
|
+
{ no: 2, name: "org_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1570
|
+
{ no: 3, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1571
|
+
{ no: 4, name: "key_prefix", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1572
|
+
{ no: 5, name: "scopes", kind: "enum", T: proto3.getEnumType(ApiKeyScope), repeated: true },
|
|
1573
|
+
{ no: 6, name: "last_used_at", kind: "message", T: Timestamp },
|
|
1574
|
+
{ no: 7, name: "expires_at", kind: "message", T: Timestamp },
|
|
1575
|
+
{ no: 8, name: "revoked_at", kind: "message", T: Timestamp },
|
|
1576
|
+
{ no: 9, name: "created_by", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1577
|
+
{ no: 10, name: "created_at", kind: "message", T: Timestamp },
|
|
1578
|
+
]);
|
|
1579
|
+
static fromBinary(bytes, options) {
|
|
1580
|
+
return new ApiKey().fromBinary(bytes, options);
|
|
1581
|
+
}
|
|
1582
|
+
static fromJson(jsonValue, options) {
|
|
1583
|
+
return new ApiKey().fromJson(jsonValue, options);
|
|
1584
|
+
}
|
|
1585
|
+
static fromJsonString(jsonString, options) {
|
|
1586
|
+
return new ApiKey().fromJsonString(jsonString, options);
|
|
1587
|
+
}
|
|
1588
|
+
static equals(a, b) {
|
|
1589
|
+
return proto3.util.equals(ApiKey, a, b);
|
|
1590
|
+
}
|
|
1591
|
+
}
|
|
1592
|
+
/**
|
|
1593
|
+
* @generated from message auth.v1.CreateApiKeyRequest
|
|
1594
|
+
*/
|
|
1595
|
+
export class CreateApiKeyRequest extends Message {
|
|
1596
|
+
/**
|
|
1597
|
+
* @generated from field: string name = 1;
|
|
1598
|
+
*/
|
|
1599
|
+
name = "";
|
|
1600
|
+
/**
|
|
1601
|
+
* @generated from field: repeated auth.v1.ApiKeyScope scopes = 2;
|
|
1602
|
+
*/
|
|
1603
|
+
scopes = [];
|
|
1604
|
+
/**
|
|
1605
|
+
* Optional: expiration in days (0 = no expiration)
|
|
1606
|
+
*
|
|
1607
|
+
* @generated from field: int32 expires_in_days = 3;
|
|
1608
|
+
*/
|
|
1609
|
+
expiresInDays = 0;
|
|
1610
|
+
constructor(data) {
|
|
1611
|
+
super();
|
|
1612
|
+
proto3.util.initPartial(data, this);
|
|
1613
|
+
}
|
|
1614
|
+
static runtime = proto3;
|
|
1615
|
+
static typeName = "auth.v1.CreateApiKeyRequest";
|
|
1616
|
+
static fields = proto3.util.newFieldList(() => [
|
|
1617
|
+
{ no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1618
|
+
{ no: 2, name: "scopes", kind: "enum", T: proto3.getEnumType(ApiKeyScope), repeated: true },
|
|
1619
|
+
{ no: 3, name: "expires_in_days", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
1620
|
+
]);
|
|
1621
|
+
static fromBinary(bytes, options) {
|
|
1622
|
+
return new CreateApiKeyRequest().fromBinary(bytes, options);
|
|
1623
|
+
}
|
|
1624
|
+
static fromJson(jsonValue, options) {
|
|
1625
|
+
return new CreateApiKeyRequest().fromJson(jsonValue, options);
|
|
1626
|
+
}
|
|
1627
|
+
static fromJsonString(jsonString, options) {
|
|
1628
|
+
return new CreateApiKeyRequest().fromJsonString(jsonString, options);
|
|
1629
|
+
}
|
|
1630
|
+
static equals(a, b) {
|
|
1631
|
+
return proto3.util.equals(CreateApiKeyRequest, a, b);
|
|
1632
|
+
}
|
|
1633
|
+
}
|
|
1634
|
+
/**
|
|
1635
|
+
* @generated from message auth.v1.CreateApiKeyResponse
|
|
1636
|
+
*/
|
|
1637
|
+
export class CreateApiKeyResponse extends Message {
|
|
1638
|
+
/**
|
|
1639
|
+
* @generated from field: auth.v1.ApiKey api_key = 1;
|
|
1640
|
+
*/
|
|
1641
|
+
apiKey;
|
|
1642
|
+
/**
|
|
1643
|
+
* The plain API key - only shown once!
|
|
1644
|
+
*
|
|
1645
|
+
* @generated from field: string plain_key = 2;
|
|
1646
|
+
*/
|
|
1647
|
+
plainKey = "";
|
|
1648
|
+
constructor(data) {
|
|
1649
|
+
super();
|
|
1650
|
+
proto3.util.initPartial(data, this);
|
|
1651
|
+
}
|
|
1652
|
+
static runtime = proto3;
|
|
1653
|
+
static typeName = "auth.v1.CreateApiKeyResponse";
|
|
1654
|
+
static fields = proto3.util.newFieldList(() => [
|
|
1655
|
+
{ no: 1, name: "api_key", kind: "message", T: ApiKey },
|
|
1656
|
+
{ no: 2, name: "plain_key", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1657
|
+
]);
|
|
1658
|
+
static fromBinary(bytes, options) {
|
|
1659
|
+
return new CreateApiKeyResponse().fromBinary(bytes, options);
|
|
1660
|
+
}
|
|
1661
|
+
static fromJson(jsonValue, options) {
|
|
1662
|
+
return new CreateApiKeyResponse().fromJson(jsonValue, options);
|
|
1663
|
+
}
|
|
1664
|
+
static fromJsonString(jsonString, options) {
|
|
1665
|
+
return new CreateApiKeyResponse().fromJsonString(jsonString, options);
|
|
1666
|
+
}
|
|
1667
|
+
static equals(a, b) {
|
|
1668
|
+
return proto3.util.equals(CreateApiKeyResponse, a, b);
|
|
1669
|
+
}
|
|
1670
|
+
}
|
|
1671
|
+
/**
|
|
1672
|
+
* @generated from message auth.v1.ListApiKeysRequest
|
|
1673
|
+
*/
|
|
1674
|
+
export class ListApiKeysRequest extends Message {
|
|
1675
|
+
constructor(data) {
|
|
1676
|
+
super();
|
|
1677
|
+
proto3.util.initPartial(data, this);
|
|
1678
|
+
}
|
|
1679
|
+
static runtime = proto3;
|
|
1680
|
+
static typeName = "auth.v1.ListApiKeysRequest";
|
|
1681
|
+
static fields = proto3.util.newFieldList(() => []);
|
|
1682
|
+
static fromBinary(bytes, options) {
|
|
1683
|
+
return new ListApiKeysRequest().fromBinary(bytes, options);
|
|
1684
|
+
}
|
|
1685
|
+
static fromJson(jsonValue, options) {
|
|
1686
|
+
return new ListApiKeysRequest().fromJson(jsonValue, options);
|
|
1687
|
+
}
|
|
1688
|
+
static fromJsonString(jsonString, options) {
|
|
1689
|
+
return new ListApiKeysRequest().fromJsonString(jsonString, options);
|
|
1690
|
+
}
|
|
1691
|
+
static equals(a, b) {
|
|
1692
|
+
return proto3.util.equals(ListApiKeysRequest, a, b);
|
|
1693
|
+
}
|
|
1694
|
+
}
|
|
1695
|
+
/**
|
|
1696
|
+
* @generated from message auth.v1.ListApiKeysResponse
|
|
1697
|
+
*/
|
|
1698
|
+
export class ListApiKeysResponse extends Message {
|
|
1699
|
+
/**
|
|
1700
|
+
* @generated from field: repeated auth.v1.ApiKey api_keys = 1;
|
|
1701
|
+
*/
|
|
1702
|
+
apiKeys = [];
|
|
1703
|
+
constructor(data) {
|
|
1704
|
+
super();
|
|
1705
|
+
proto3.util.initPartial(data, this);
|
|
1706
|
+
}
|
|
1707
|
+
static runtime = proto3;
|
|
1708
|
+
static typeName = "auth.v1.ListApiKeysResponse";
|
|
1709
|
+
static fields = proto3.util.newFieldList(() => [
|
|
1710
|
+
{ no: 1, name: "api_keys", kind: "message", T: ApiKey, repeated: true },
|
|
1711
|
+
]);
|
|
1712
|
+
static fromBinary(bytes, options) {
|
|
1713
|
+
return new ListApiKeysResponse().fromBinary(bytes, options);
|
|
1714
|
+
}
|
|
1715
|
+
static fromJson(jsonValue, options) {
|
|
1716
|
+
return new ListApiKeysResponse().fromJson(jsonValue, options);
|
|
1717
|
+
}
|
|
1718
|
+
static fromJsonString(jsonString, options) {
|
|
1719
|
+
return new ListApiKeysResponse().fromJsonString(jsonString, options);
|
|
1720
|
+
}
|
|
1721
|
+
static equals(a, b) {
|
|
1722
|
+
return proto3.util.equals(ListApiKeysResponse, a, b);
|
|
1723
|
+
}
|
|
1724
|
+
}
|
|
1725
|
+
/**
|
|
1726
|
+
* @generated from message auth.v1.RevokeApiKeyRequest
|
|
1727
|
+
*/
|
|
1728
|
+
export class RevokeApiKeyRequest extends Message {
|
|
1729
|
+
/**
|
|
1730
|
+
* @generated from field: string id = 1;
|
|
1731
|
+
*/
|
|
1732
|
+
id = "";
|
|
1733
|
+
constructor(data) {
|
|
1734
|
+
super();
|
|
1735
|
+
proto3.util.initPartial(data, this);
|
|
1736
|
+
}
|
|
1737
|
+
static runtime = proto3;
|
|
1738
|
+
static typeName = "auth.v1.RevokeApiKeyRequest";
|
|
1739
|
+
static fields = proto3.util.newFieldList(() => [
|
|
1740
|
+
{ no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1741
|
+
]);
|
|
1742
|
+
static fromBinary(bytes, options) {
|
|
1743
|
+
return new RevokeApiKeyRequest().fromBinary(bytes, options);
|
|
1744
|
+
}
|
|
1745
|
+
static fromJson(jsonValue, options) {
|
|
1746
|
+
return new RevokeApiKeyRequest().fromJson(jsonValue, options);
|
|
1747
|
+
}
|
|
1748
|
+
static fromJsonString(jsonString, options) {
|
|
1749
|
+
return new RevokeApiKeyRequest().fromJsonString(jsonString, options);
|
|
1750
|
+
}
|
|
1751
|
+
static equals(a, b) {
|
|
1752
|
+
return proto3.util.equals(RevokeApiKeyRequest, a, b);
|
|
1753
|
+
}
|
|
1754
|
+
}
|
|
1755
|
+
/**
|
|
1756
|
+
* @generated from message auth.v1.RevokeApiKeyResponse
|
|
1757
|
+
*/
|
|
1758
|
+
export class RevokeApiKeyResponse extends Message {
|
|
1759
|
+
constructor(data) {
|
|
1760
|
+
super();
|
|
1761
|
+
proto3.util.initPartial(data, this);
|
|
1762
|
+
}
|
|
1763
|
+
static runtime = proto3;
|
|
1764
|
+
static typeName = "auth.v1.RevokeApiKeyResponse";
|
|
1765
|
+
static fields = proto3.util.newFieldList(() => []);
|
|
1766
|
+
static fromBinary(bytes, options) {
|
|
1767
|
+
return new RevokeApiKeyResponse().fromBinary(bytes, options);
|
|
1768
|
+
}
|
|
1769
|
+
static fromJson(jsonValue, options) {
|
|
1770
|
+
return new RevokeApiKeyResponse().fromJson(jsonValue, options);
|
|
1771
|
+
}
|
|
1772
|
+
static fromJsonString(jsonString, options) {
|
|
1773
|
+
return new RevokeApiKeyResponse().fromJsonString(jsonString, options);
|
|
1774
|
+
}
|
|
1775
|
+
static equals(a, b) {
|
|
1776
|
+
return proto3.util.equals(RevokeApiKeyResponse, a, b);
|
|
1777
|
+
}
|
|
1778
|
+
}
|
|
1779
|
+
//# sourceMappingURL=auth_pb.js.map
|