@scalekit-sdk/node 2.2.0-beta.1 → 2.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -5
- package/{reference.md → REFERENCE.md} +530 -748
- package/lib/auth.d.ts +9 -6
- package/lib/auth.js +4 -20
- package/lib/auth.js.map +1 -1
- package/lib/connect.d.ts +3 -3
- package/lib/connect.js +1 -2
- package/lib/connect.js.map +1 -1
- package/lib/connection.d.ts +2 -2
- package/lib/connection.js +4 -4
- package/lib/connection.js.map +1 -1
- package/lib/core.js +2 -2
- package/lib/core.js.map +1 -1
- package/lib/directory.d.ts +2 -2
- package/lib/directory.js +7 -7
- package/lib/directory.js.map +1 -1
- package/lib/domain.d.ts +6 -5
- package/lib/domain.js +4 -5
- package/lib/domain.js.map +1 -1
- package/lib/errors/base-exception.d.ts +1 -1
- package/lib/errors/base-exception.js +1 -1
- package/lib/errors/base-exception.js.map +1 -1
- package/lib/organization.d.ts +10 -9
- package/lib/organization.js +11 -9
- package/lib/organization.js.map +1 -1
- package/lib/passwordless.d.ts +2 -2
- package/lib/passwordless.js +8 -7
- package/lib/passwordless.js.map +1 -1
- package/lib/permission.d.ts +6 -5
- package/lib/permission.js +10 -11
- package/lib/permission.js.map +1 -1
- package/lib/pkg/grpc/buf/validate/validate_pb.d.ts +7 -0
- package/lib/pkg/grpc/buf/validate/validate_pb.js +25 -0
- package/lib/pkg/grpc/buf/validate/validate_pb.js.map +1 -0
- package/lib/pkg/grpc/google/api/annotations_pb.d.ts +7 -0
- package/lib/pkg/grpc/google/api/annotations_pb.js +25 -0
- package/lib/pkg/grpc/google/api/annotations_pb.js.map +1 -0
- package/lib/pkg/grpc/google/api/field_behavior_pb.d.ts +7 -0
- package/lib/pkg/grpc/google/api/field_behavior_pb.js +25 -0
- package/lib/pkg/grpc/google/api/field_behavior_pb.js.map +1 -0
- package/lib/pkg/grpc/google/api/visibility_pb.d.ts +7 -0
- package/lib/pkg/grpc/google/api/visibility_pb.js +25 -0
- package/lib/pkg/grpc/google/api/visibility_pb.js.map +1 -0
- package/lib/pkg/grpc/protoc-gen-openapiv2/options/annotations_pb.d.ts +7 -0
- package/lib/pkg/grpc/protoc-gen-openapiv2/options/annotations_pb.js +25 -0
- package/lib/pkg/grpc/protoc-gen-openapiv2/options/annotations_pb.js.map +1 -0
- package/lib/pkg/grpc/scalekit/v1/auditlogs/auditlogs_pb.d.ts +48 -42
- package/lib/pkg/grpc/scalekit/v1/auditlogs/auditlogs_pb.js +27 -263
- package/lib/pkg/grpc/scalekit/v1/auditlogs/auditlogs_pb.js.map +1 -1
- package/lib/pkg/grpc/scalekit/v1/auth/auth_pb.d.ts +371 -325
- package/lib/pkg/grpc/scalekit/v1/auth/auth_pb.js +132 -835
- package/lib/pkg/grpc/scalekit/v1/auth/auth_pb.js.map +1 -1
- package/lib/pkg/grpc/scalekit/v1/auth/passwordless_pb.d.ts +113 -87
- package/lib/pkg/grpc/scalekit/v1/auth/passwordless_pb.js +45 -201
- package/lib/pkg/grpc/scalekit/v1/auth/passwordless_pb.js.map +1 -1
- package/lib/pkg/grpc/scalekit/v1/auth/webauthn_pb.d.ts +262 -265
- package/lib/pkg/grpc/scalekit/v1/auth/webauthn_pb.js +92 -938
- package/lib/pkg/grpc/scalekit/v1/auth/webauthn_pb.js.map +1 -1
- package/lib/pkg/grpc/scalekit/v1/commons/commons_pb.d.ts +162 -157
- package/lib/pkg/grpc/scalekit/v1/commons/commons_pb.js +42 -313
- package/lib/pkg/grpc/scalekit/v1/commons/commons_pb.js.map +1 -1
- package/lib/pkg/grpc/scalekit/v1/connections/connections_pb.d.ts +1488 -1459
- package/lib/pkg/grpc/scalekit/v1/connections/connections_pb.js +353 -2362
- package/lib/pkg/grpc/scalekit/v1/connections/connections_pb.js.map +1 -1
- package/lib/pkg/grpc/scalekit/v1/directories/directories_pb.d.ts +520 -483
- package/lib/pkg/grpc/scalekit/v1/directories/directories_pb.js +224 -1555
- package/lib/pkg/grpc/scalekit/v1/directories/directories_pb.js.map +1 -1
- package/lib/pkg/grpc/scalekit/v1/domains/domains_pb.d.ts +219 -191
- package/lib/pkg/grpc/scalekit/v1/domains/domains_pb.js +96 -553
- package/lib/pkg/grpc/scalekit/v1/domains/domains_pb.js.map +1 -1
- package/lib/pkg/grpc/scalekit/v1/errdetails/errdetails_pb.d.ts +76 -102
- package/lib/pkg/grpc/scalekit/v1/errdetails/errdetails_pb.js +37 -393
- package/lib/pkg/grpc/scalekit/v1/errdetails/errdetails_pb.js.map +1 -1
- package/lib/pkg/grpc/scalekit/v1/options/options_pb.d.ts +36 -26
- package/lib/pkg/grpc/scalekit/v1/options/options_pb.js +20 -69
- package/lib/pkg/grpc/scalekit/v1/options/options_pb.js.map +1 -1
- package/lib/pkg/grpc/scalekit/v1/organizations/organizations_pb.d.ts +447 -400
- package/lib/pkg/grpc/scalekit/v1/organizations/organizations_pb.js +163 -1238
- package/lib/pkg/grpc/scalekit/v1/organizations/organizations_pb.js.map +1 -1
- package/lib/pkg/grpc/scalekit/v1/roles/roles_pb.d.ts +622 -556
- package/lib/pkg/grpc/scalekit/v1/roles/roles_pb.js +201 -1718
- package/lib/pkg/grpc/scalekit/v1/roles/roles_pb.js.map +1 -1
- package/lib/pkg/grpc/scalekit/v1/sessions/sessions_pb.d.ts +135 -132
- package/lib/pkg/grpc/scalekit/v1/sessions/sessions_pb.js +55 -518
- package/lib/pkg/grpc/scalekit/v1/sessions/sessions_pb.js.map +1 -1
- package/lib/pkg/grpc/scalekit/v1/users/users_pb.d.ts +445 -413
- package/lib/pkg/grpc/scalekit/v1/users/users_pb.js +142 -1490
- package/lib/pkg/grpc/scalekit/v1/users/users_pb.js.map +1 -1
- package/lib/role.d.ts +8 -7
- package/lib/role.js +14 -14
- package/lib/role.js.map +1 -1
- package/lib/scalekit.d.ts +0 -4
- package/lib/scalekit.js +0 -4
- package/lib/scalekit.js.map +1 -1
- package/lib/session.js +15 -24
- package/lib/session.js.map +1 -1
- package/lib/user.d.ts +6 -5
- package/lib/user.js +17 -20
- package/lib/user.js.map +1 -1
- package/lib/webauthn.js +6 -5
- package/lib/webauthn.js.map +1 -1
- package/package.json +12 -10
- package/.github/dependabot.yml +0 -10
- package/.nvmrc +0 -1
- package/buf.gen.yaml +0 -24
- package/jest.config.js +0 -15
- package/lib/connected-accounts.d.ts +0 -119
- package/lib/connected-accounts.js +0 -241
- package/lib/connected-accounts.js.map +0 -1
- package/lib/pkg/grpc/scalekit/v1/auditlogs/auditlogs_connect.d.ts +0 -19
- package/lib/pkg/grpc/scalekit/v1/auditlogs/auditlogs_connect.js +0 -27
- package/lib/pkg/grpc/scalekit/v1/auditlogs/auditlogs_connect.js.map +0 -1
- package/lib/pkg/grpc/scalekit/v1/auth/auth_connect.d.ts +0 -118
- package/lib/pkg/grpc/scalekit/v1/auth/auth_connect.js +0 -126
- package/lib/pkg/grpc/scalekit/v1/auth/auth_connect.js.map +0 -1
- package/lib/pkg/grpc/scalekit/v1/auth/passwordless_connect.d.ts +0 -37
- package/lib/pkg/grpc/scalekit/v1/auth/passwordless_connect.js +0 -45
- package/lib/pkg/grpc/scalekit/v1/auth/passwordless_connect.js.map +0 -1
- package/lib/pkg/grpc/scalekit/v1/auth/webauthn_connect.d.ts +0 -82
- package/lib/pkg/grpc/scalekit/v1/auth/webauthn_connect.js +0 -90
- package/lib/pkg/grpc/scalekit/v1/auth/webauthn_connect.js.map +0 -1
- package/lib/pkg/grpc/scalekit/v1/connected_accounts/connected_accounts_connect.d.ts +0 -87
- package/lib/pkg/grpc/scalekit/v1/connected_accounts/connected_accounts_connect.js +0 -95
- package/lib/pkg/grpc/scalekit/v1/connected_accounts/connected_accounts_connect.js.map +0 -1
- package/lib/pkg/grpc/scalekit/v1/connected_accounts/connected_accounts_pb.d.ts +0 -718
- package/lib/pkg/grpc/scalekit/v1/connected_accounts/connected_accounts_pb.js +0 -893
- package/lib/pkg/grpc/scalekit/v1/connected_accounts/connected_accounts_pb.js.map +0 -1
- package/lib/pkg/grpc/scalekit/v1/connections/connections_connect.d.ts +0 -172
- package/lib/pkg/grpc/scalekit/v1/connections/connections_connect.js +0 -180
- package/lib/pkg/grpc/scalekit/v1/connections/connections_connect.js.map +0 -1
- package/lib/pkg/grpc/scalekit/v1/directories/directories_connect.d.ts +0 -154
- package/lib/pkg/grpc/scalekit/v1/directories/directories_connect.js +0 -162
- package/lib/pkg/grpc/scalekit/v1/directories/directories_connect.js.map +0 -1
- package/lib/pkg/grpc/scalekit/v1/domains/domains_connect.d.ts +0 -73
- package/lib/pkg/grpc/scalekit/v1/domains/domains_connect.js +0 -81
- package/lib/pkg/grpc/scalekit/v1/domains/domains_connect.js.map +0 -1
- package/lib/pkg/grpc/scalekit/v1/organizations/organizations_connect.d.ts +0 -171
- package/lib/pkg/grpc/scalekit/v1/organizations/organizations_connect.js +0 -179
- package/lib/pkg/grpc/scalekit/v1/organizations/organizations_connect.js.map +0 -1
- package/lib/pkg/grpc/scalekit/v1/roles/roles_connect.d.ts +0 -250
- package/lib/pkg/grpc/scalekit/v1/roles/roles_connect.js +0 -258
- package/lib/pkg/grpc/scalekit/v1/roles/roles_connect.js.map +0 -1
- package/lib/pkg/grpc/scalekit/v1/sessions/sessions_connect.d.ts +0 -46
- package/lib/pkg/grpc/scalekit/v1/sessions/sessions_connect.js +0 -54
- package/lib/pkg/grpc/scalekit/v1/sessions/sessions_connect.js.map +0 -1
- package/lib/pkg/grpc/scalekit/v1/tools/tools_connect.d.ts +0 -75
- package/lib/pkg/grpc/scalekit/v1/tools/tools_connect.js +0 -83
- package/lib/pkg/grpc/scalekit/v1/tools/tools_connect.js.map +0 -1
- package/lib/pkg/grpc/scalekit/v1/tools/tools_pb.d.ts +0 -431
- package/lib/pkg/grpc/scalekit/v1/tools/tools_pb.js +0 -627
- package/lib/pkg/grpc/scalekit/v1/tools/tools_pb.js.map +0 -1
- package/lib/pkg/grpc/scalekit/v1/users/users_connect.d.ts +0 -173
- package/lib/pkg/grpc/scalekit/v1/users/users_connect.js +0 -181
- package/lib/pkg/grpc/scalekit/v1/users/users_connect.js.map +0 -1
- package/lib/tools.d.ts +0 -75
- package/lib/tools.js +0 -127
- package/lib/tools.js.map +0 -1
- package/src/auth.ts +0 -99
- package/src/connect.ts +0 -33
- package/src/connected-accounts.ts +0 -358
- package/src/connection.ts +0 -267
- package/src/constants/user.ts +0 -22
- package/src/core.ts +0 -139
- package/src/directory.ts +0 -431
- package/src/domain.ts +0 -272
- package/src/errors/base-exception.ts +0 -262
- package/src/errors/index.ts +0 -3
- package/src/errors/specific-exceptions.ts +0 -88
- package/src/index.ts +0 -10
- package/src/organization.ts +0 -568
- package/src/passwordless.ts +0 -138
- package/src/permission.ts +0 -310
- package/src/pkg/grpc/scalekit/v1/auditlogs/auditlogs_connect.ts +0 -26
- package/src/pkg/grpc/scalekit/v1/auditlogs/auditlogs_pb.ts +0 -342
- package/src/pkg/grpc/scalekit/v1/auth/auth_connect.ts +0 -125
- package/src/pkg/grpc/scalekit/v1/auth/auth_pb.ts +0 -1213
- package/src/pkg/grpc/scalekit/v1/auth/passwordless_connect.ts +0 -44
- package/src/pkg/grpc/scalekit/v1/auth/passwordless_pb.ts +0 -336
- package/src/pkg/grpc/scalekit/v1/auth/webauthn_connect.ts +0 -89
- package/src/pkg/grpc/scalekit/v1/auth/webauthn_pb.ts +0 -1263
- package/src/pkg/grpc/scalekit/v1/commons/commons_pb.ts +0 -573
- package/src/pkg/grpc/scalekit/v1/connected_accounts/connected_accounts_connect.ts +0 -94
- package/src/pkg/grpc/scalekit/v1/connected_accounts/connected_accounts_pb.ts +0 -1294
- package/src/pkg/grpc/scalekit/v1/connections/connections_connect.ts +0 -179
- package/src/pkg/grpc/scalekit/v1/connections/connections_pb.ts +0 -3846
- package/src/pkg/grpc/scalekit/v1/directories/directories_connect.ts +0 -161
- package/src/pkg/grpc/scalekit/v1/directories/directories_pb.ts +0 -2119
- package/src/pkg/grpc/scalekit/v1/domains/domains_connect.ts +0 -80
- package/src/pkg/grpc/scalekit/v1/domains/domains_pb.ts +0 -855
- package/src/pkg/grpc/scalekit/v1/errdetails/errdetails_pb.ts +0 -524
- package/src/pkg/grpc/scalekit/v1/options/options_pb.ts +0 -230
- package/src/pkg/grpc/scalekit/v1/organizations/organizations_connect.ts +0 -178
- package/src/pkg/grpc/scalekit/v1/organizations/organizations_pb.ts +0 -1766
- package/src/pkg/grpc/scalekit/v1/roles/roles_connect.ts +0 -257
- package/src/pkg/grpc/scalekit/v1/roles/roles_pb.ts +0 -2395
- package/src/pkg/grpc/scalekit/v1/sessions/sessions_connect.ts +0 -53
- package/src/pkg/grpc/scalekit/v1/sessions/sessions_pb.ts +0 -749
- package/src/pkg/grpc/scalekit/v1/tools/tools_connect.ts +0 -82
- package/src/pkg/grpc/scalekit/v1/tools/tools_pb.ts +0 -847
- package/src/pkg/grpc/scalekit/v1/users/users_connect.ts +0 -180
- package/src/pkg/grpc/scalekit/v1/users/users_pb.ts +0 -2151
- package/src/role.ts +0 -461
- package/src/scalekit.ts +0 -809
- package/src/session.ts +0 -337
- package/src/tools.ts +0 -166
- package/src/types/auth.ts +0 -73
- package/src/types/organization.ts +0 -12
- package/src/types/scalekit.ts +0 -50
- package/src/types/user.ts +0 -21
- package/src/user.ts +0 -825
- package/src/webauthn.ts +0 -98
- package/tests/README.md +0 -25
- package/tests/connected-accounts.test.ts +0 -472
- package/tests/connection.test.ts +0 -42
- package/tests/directory.test.ts +0 -46
- package/tests/domain.test.ts +0 -293
- package/tests/organization.test.ts +0 -81
- package/tests/passwordless.test.ts +0 -108
- package/tests/permission.test.ts +0 -399
- package/tests/role.test.ts +0 -323
- package/tests/scalekit.test.ts +0 -104
- package/tests/setup.ts +0 -34
- package/tests/tools.test.ts +0 -239
- package/tests/users.test.ts +0 -168
- package/tests/utils/test-data.ts +0 -481
- package/tsconfig.json +0 -19
|
@@ -1,2151 +0,0 @@
|
|
|
1
|
-
// @generated by protoc-gen-es v1.10.0 with parameter "target=ts"
|
|
2
|
-
// @generated from file scalekit/v1/users/users.proto (package scalekit.v1.users, 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, Timestamp } from "@bufbuild/protobuf";
|
|
8
|
-
import { OrganizationMembership, Role, UserProfile } from "../commons/commons_pb.js";
|
|
9
|
-
|
|
10
|
-
/**
|
|
11
|
-
* @generated from message scalekit.v1.users.User
|
|
12
|
-
*/
|
|
13
|
-
export class User extends Message<User> {
|
|
14
|
-
/**
|
|
15
|
-
* @generated from field: string id = 1;
|
|
16
|
-
*/
|
|
17
|
-
id = "";
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
* @generated from field: string environment_id = 2;
|
|
21
|
-
*/
|
|
22
|
-
environmentId = "";
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* @generated from field: google.protobuf.Timestamp create_time = 3;
|
|
26
|
-
*/
|
|
27
|
-
createTime?: Timestamp;
|
|
28
|
-
|
|
29
|
-
/**
|
|
30
|
-
* @generated from field: google.protobuf.Timestamp update_time = 4;
|
|
31
|
-
*/
|
|
32
|
-
updateTime?: Timestamp;
|
|
33
|
-
|
|
34
|
-
/**
|
|
35
|
-
* @generated from field: string email = 5;
|
|
36
|
-
*/
|
|
37
|
-
email = "";
|
|
38
|
-
|
|
39
|
-
/**
|
|
40
|
-
* @generated from field: optional string external_id = 6;
|
|
41
|
-
*/
|
|
42
|
-
externalId?: string;
|
|
43
|
-
|
|
44
|
-
/**
|
|
45
|
-
* @generated from field: repeated scalekit.v1.commons.OrganizationMembership memberships = 7;
|
|
46
|
-
*/
|
|
47
|
-
memberships: OrganizationMembership[] = [];
|
|
48
|
-
|
|
49
|
-
/**
|
|
50
|
-
* @generated from field: scalekit.v1.commons.UserProfile user_profile = 8;
|
|
51
|
-
*/
|
|
52
|
-
userProfile?: UserProfile;
|
|
53
|
-
|
|
54
|
-
/**
|
|
55
|
-
* @generated from field: map<string, string> metadata = 9;
|
|
56
|
-
*/
|
|
57
|
-
metadata: { [key: string]: string } = {};
|
|
58
|
-
|
|
59
|
-
/**
|
|
60
|
-
* @generated from field: google.protobuf.Timestamp last_login_time = 10;
|
|
61
|
-
*/
|
|
62
|
-
lastLoginTime?: Timestamp;
|
|
63
|
-
|
|
64
|
-
constructor(data?: PartialMessage<User>) {
|
|
65
|
-
super();
|
|
66
|
-
proto3.util.initPartial(data, this);
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
static readonly runtime: typeof proto3 = proto3;
|
|
70
|
-
static readonly typeName = "scalekit.v1.users.User";
|
|
71
|
-
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
72
|
-
{ no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
73
|
-
{ no: 2, name: "environment_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
74
|
-
{ no: 3, name: "create_time", kind: "message", T: Timestamp },
|
|
75
|
-
{ no: 4, name: "update_time", kind: "message", T: Timestamp },
|
|
76
|
-
{ no: 5, name: "email", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
77
|
-
{ no: 6, name: "external_id", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
78
|
-
{ no: 7, name: "memberships", kind: "message", T: OrganizationMembership, repeated: true },
|
|
79
|
-
{ no: 8, name: "user_profile", kind: "message", T: UserProfile },
|
|
80
|
-
{ no: 9, name: "metadata", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} },
|
|
81
|
-
{ no: 10, name: "last_login_time", kind: "message", T: Timestamp },
|
|
82
|
-
]);
|
|
83
|
-
|
|
84
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): User {
|
|
85
|
-
return new User().fromBinary(bytes, options);
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): User {
|
|
89
|
-
return new User().fromJson(jsonValue, options);
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): User {
|
|
93
|
-
return new User().fromJsonString(jsonString, options);
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
static equals(a: User | PlainMessage<User> | undefined, b: User | PlainMessage<User> | undefined): boolean {
|
|
97
|
-
return proto3.util.equals(User, a, b);
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
/**
|
|
102
|
-
* @generated from message scalekit.v1.users.CreateUserAndMembershipRequest
|
|
103
|
-
*/
|
|
104
|
-
export class CreateUserAndMembershipRequest extends Message<CreateUserAndMembershipRequest> {
|
|
105
|
-
/**
|
|
106
|
-
* @generated from field: string organization_id = 1;
|
|
107
|
-
*/
|
|
108
|
-
organizationId = "";
|
|
109
|
-
|
|
110
|
-
/**
|
|
111
|
-
* @generated from field: scalekit.v1.users.CreateUser user = 2;
|
|
112
|
-
*/
|
|
113
|
-
user?: CreateUser;
|
|
114
|
-
|
|
115
|
-
/**
|
|
116
|
-
* @generated from field: optional bool send_invitation_email = 3;
|
|
117
|
-
*/
|
|
118
|
-
sendInvitationEmail?: boolean;
|
|
119
|
-
|
|
120
|
-
constructor(data?: PartialMessage<CreateUserAndMembershipRequest>) {
|
|
121
|
-
super();
|
|
122
|
-
proto3.util.initPartial(data, this);
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
static readonly runtime: typeof proto3 = proto3;
|
|
126
|
-
static readonly typeName = "scalekit.v1.users.CreateUserAndMembershipRequest";
|
|
127
|
-
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
128
|
-
{ no: 1, name: "organization_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
129
|
-
{ no: 2, name: "user", kind: "message", T: CreateUser },
|
|
130
|
-
{ no: 3, name: "send_invitation_email", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
|
|
131
|
-
]);
|
|
132
|
-
|
|
133
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CreateUserAndMembershipRequest {
|
|
134
|
-
return new CreateUserAndMembershipRequest().fromBinary(bytes, options);
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CreateUserAndMembershipRequest {
|
|
138
|
-
return new CreateUserAndMembershipRequest().fromJson(jsonValue, options);
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CreateUserAndMembershipRequest {
|
|
142
|
-
return new CreateUserAndMembershipRequest().fromJsonString(jsonString, options);
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
static equals(a: CreateUserAndMembershipRequest | PlainMessage<CreateUserAndMembershipRequest> | undefined, b: CreateUserAndMembershipRequest | PlainMessage<CreateUserAndMembershipRequest> | undefined): boolean {
|
|
146
|
-
return proto3.util.equals(CreateUserAndMembershipRequest, a, b);
|
|
147
|
-
}
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
/**
|
|
151
|
-
* @generated from message scalekit.v1.users.CreateUserAndMembershipResponse
|
|
152
|
-
*/
|
|
153
|
-
export class CreateUserAndMembershipResponse extends Message<CreateUserAndMembershipResponse> {
|
|
154
|
-
/**
|
|
155
|
-
* @generated from field: scalekit.v1.users.User user = 1;
|
|
156
|
-
*/
|
|
157
|
-
user?: User;
|
|
158
|
-
|
|
159
|
-
constructor(data?: PartialMessage<CreateUserAndMembershipResponse>) {
|
|
160
|
-
super();
|
|
161
|
-
proto3.util.initPartial(data, this);
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
static readonly runtime: typeof proto3 = proto3;
|
|
165
|
-
static readonly typeName = "scalekit.v1.users.CreateUserAndMembershipResponse";
|
|
166
|
-
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
167
|
-
{ no: 1, name: "user", kind: "message", T: User },
|
|
168
|
-
]);
|
|
169
|
-
|
|
170
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CreateUserAndMembershipResponse {
|
|
171
|
-
return new CreateUserAndMembershipResponse().fromBinary(bytes, options);
|
|
172
|
-
}
|
|
173
|
-
|
|
174
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CreateUserAndMembershipResponse {
|
|
175
|
-
return new CreateUserAndMembershipResponse().fromJson(jsonValue, options);
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CreateUserAndMembershipResponse {
|
|
179
|
-
return new CreateUserAndMembershipResponse().fromJsonString(jsonString, options);
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
static equals(a: CreateUserAndMembershipResponse | PlainMessage<CreateUserAndMembershipResponse> | undefined, b: CreateUserAndMembershipResponse | PlainMessage<CreateUserAndMembershipResponse> | undefined): boolean {
|
|
183
|
-
return proto3.util.equals(CreateUserAndMembershipResponse, a, b);
|
|
184
|
-
}
|
|
185
|
-
}
|
|
186
|
-
|
|
187
|
-
/**
|
|
188
|
-
* @generated from message scalekit.v1.users.UpdateUser
|
|
189
|
-
*/
|
|
190
|
-
export class UpdateUser extends Message<UpdateUser> {
|
|
191
|
-
/**
|
|
192
|
-
* @generated from field: optional string external_id = 6;
|
|
193
|
-
*/
|
|
194
|
-
externalId?: string;
|
|
195
|
-
|
|
196
|
-
/**
|
|
197
|
-
* @generated from field: scalekit.v1.users.UpdateUserProfile user_profile = 8;
|
|
198
|
-
*/
|
|
199
|
-
userProfile?: UpdateUserProfile;
|
|
200
|
-
|
|
201
|
-
/**
|
|
202
|
-
* @generated from field: map<string, string> metadata = 9;
|
|
203
|
-
*/
|
|
204
|
-
metadata: { [key: string]: string } = {};
|
|
205
|
-
|
|
206
|
-
constructor(data?: PartialMessage<UpdateUser>) {
|
|
207
|
-
super();
|
|
208
|
-
proto3.util.initPartial(data, this);
|
|
209
|
-
}
|
|
210
|
-
|
|
211
|
-
static readonly runtime: typeof proto3 = proto3;
|
|
212
|
-
static readonly typeName = "scalekit.v1.users.UpdateUser";
|
|
213
|
-
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
214
|
-
{ no: 6, name: "external_id", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
215
|
-
{ no: 8, name: "user_profile", kind: "message", T: UpdateUserProfile },
|
|
216
|
-
{ no: 9, name: "metadata", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} },
|
|
217
|
-
]);
|
|
218
|
-
|
|
219
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UpdateUser {
|
|
220
|
-
return new UpdateUser().fromBinary(bytes, options);
|
|
221
|
-
}
|
|
222
|
-
|
|
223
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UpdateUser {
|
|
224
|
-
return new UpdateUser().fromJson(jsonValue, options);
|
|
225
|
-
}
|
|
226
|
-
|
|
227
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UpdateUser {
|
|
228
|
-
return new UpdateUser().fromJsonString(jsonString, options);
|
|
229
|
-
}
|
|
230
|
-
|
|
231
|
-
static equals(a: UpdateUser | PlainMessage<UpdateUser> | undefined, b: UpdateUser | PlainMessage<UpdateUser> | undefined): boolean {
|
|
232
|
-
return proto3.util.equals(UpdateUser, a, b);
|
|
233
|
-
}
|
|
234
|
-
}
|
|
235
|
-
|
|
236
|
-
/**
|
|
237
|
-
* @generated from message scalekit.v1.users.UpdateUserRequest
|
|
238
|
-
*/
|
|
239
|
-
export class UpdateUserRequest extends Message<UpdateUserRequest> {
|
|
240
|
-
/**
|
|
241
|
-
* @generated from oneof scalekit.v1.users.UpdateUserRequest.identities
|
|
242
|
-
*/
|
|
243
|
-
identities: {
|
|
244
|
-
/**
|
|
245
|
-
* @generated from field: string id = 1;
|
|
246
|
-
*/
|
|
247
|
-
value: string;
|
|
248
|
-
case: "id";
|
|
249
|
-
} | {
|
|
250
|
-
/**
|
|
251
|
-
* @generated from field: string external_id = 2;
|
|
252
|
-
*/
|
|
253
|
-
value: string;
|
|
254
|
-
case: "externalId";
|
|
255
|
-
} | { case: undefined; value?: undefined } = { case: undefined };
|
|
256
|
-
|
|
257
|
-
/**
|
|
258
|
-
* @generated from field: scalekit.v1.users.UpdateUser user = 3;
|
|
259
|
-
*/
|
|
260
|
-
user?: UpdateUser;
|
|
261
|
-
|
|
262
|
-
constructor(data?: PartialMessage<UpdateUserRequest>) {
|
|
263
|
-
super();
|
|
264
|
-
proto3.util.initPartial(data, this);
|
|
265
|
-
}
|
|
266
|
-
|
|
267
|
-
static readonly runtime: typeof proto3 = proto3;
|
|
268
|
-
static readonly typeName = "scalekit.v1.users.UpdateUserRequest";
|
|
269
|
-
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
270
|
-
{ no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "identities" },
|
|
271
|
-
{ no: 2, name: "external_id", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "identities" },
|
|
272
|
-
{ no: 3, name: "user", kind: "message", T: UpdateUser },
|
|
273
|
-
]);
|
|
274
|
-
|
|
275
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UpdateUserRequest {
|
|
276
|
-
return new UpdateUserRequest().fromBinary(bytes, options);
|
|
277
|
-
}
|
|
278
|
-
|
|
279
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UpdateUserRequest {
|
|
280
|
-
return new UpdateUserRequest().fromJson(jsonValue, options);
|
|
281
|
-
}
|
|
282
|
-
|
|
283
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UpdateUserRequest {
|
|
284
|
-
return new UpdateUserRequest().fromJsonString(jsonString, options);
|
|
285
|
-
}
|
|
286
|
-
|
|
287
|
-
static equals(a: UpdateUserRequest | PlainMessage<UpdateUserRequest> | undefined, b: UpdateUserRequest | PlainMessage<UpdateUserRequest> | undefined): boolean {
|
|
288
|
-
return proto3.util.equals(UpdateUserRequest, a, b);
|
|
289
|
-
}
|
|
290
|
-
}
|
|
291
|
-
|
|
292
|
-
/**
|
|
293
|
-
* @generated from message scalekit.v1.users.UpdateUserResponse
|
|
294
|
-
*/
|
|
295
|
-
export class UpdateUserResponse extends Message<UpdateUserResponse> {
|
|
296
|
-
/**
|
|
297
|
-
* @generated from field: scalekit.v1.users.User user = 1;
|
|
298
|
-
*/
|
|
299
|
-
user?: User;
|
|
300
|
-
|
|
301
|
-
constructor(data?: PartialMessage<UpdateUserResponse>) {
|
|
302
|
-
super();
|
|
303
|
-
proto3.util.initPartial(data, this);
|
|
304
|
-
}
|
|
305
|
-
|
|
306
|
-
static readonly runtime: typeof proto3 = proto3;
|
|
307
|
-
static readonly typeName = "scalekit.v1.users.UpdateUserResponse";
|
|
308
|
-
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
309
|
-
{ no: 1, name: "user", kind: "message", T: User },
|
|
310
|
-
]);
|
|
311
|
-
|
|
312
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UpdateUserResponse {
|
|
313
|
-
return new UpdateUserResponse().fromBinary(bytes, options);
|
|
314
|
-
}
|
|
315
|
-
|
|
316
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UpdateUserResponse {
|
|
317
|
-
return new UpdateUserResponse().fromJson(jsonValue, options);
|
|
318
|
-
}
|
|
319
|
-
|
|
320
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UpdateUserResponse {
|
|
321
|
-
return new UpdateUserResponse().fromJsonString(jsonString, options);
|
|
322
|
-
}
|
|
323
|
-
|
|
324
|
-
static equals(a: UpdateUserResponse | PlainMessage<UpdateUserResponse> | undefined, b: UpdateUserResponse | PlainMessage<UpdateUserResponse> | undefined): boolean {
|
|
325
|
-
return proto3.util.equals(UpdateUserResponse, a, b);
|
|
326
|
-
}
|
|
327
|
-
}
|
|
328
|
-
|
|
329
|
-
/**
|
|
330
|
-
* @generated from message scalekit.v1.users.GetUserRequest
|
|
331
|
-
*/
|
|
332
|
-
export class GetUserRequest extends Message<GetUserRequest> {
|
|
333
|
-
/**
|
|
334
|
-
* @generated from oneof scalekit.v1.users.GetUserRequest.identities
|
|
335
|
-
*/
|
|
336
|
-
identities: {
|
|
337
|
-
/**
|
|
338
|
-
* @generated from field: string id = 1;
|
|
339
|
-
*/
|
|
340
|
-
value: string;
|
|
341
|
-
case: "id";
|
|
342
|
-
} | {
|
|
343
|
-
/**
|
|
344
|
-
* @generated from field: string external_id = 2;
|
|
345
|
-
*/
|
|
346
|
-
value: string;
|
|
347
|
-
case: "externalId";
|
|
348
|
-
} | { case: undefined; value?: undefined } = { case: undefined };
|
|
349
|
-
|
|
350
|
-
constructor(data?: PartialMessage<GetUserRequest>) {
|
|
351
|
-
super();
|
|
352
|
-
proto3.util.initPartial(data, this);
|
|
353
|
-
}
|
|
354
|
-
|
|
355
|
-
static readonly runtime: typeof proto3 = proto3;
|
|
356
|
-
static readonly typeName = "scalekit.v1.users.GetUserRequest";
|
|
357
|
-
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
358
|
-
{ no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "identities" },
|
|
359
|
-
{ no: 2, name: "external_id", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "identities" },
|
|
360
|
-
]);
|
|
361
|
-
|
|
362
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetUserRequest {
|
|
363
|
-
return new GetUserRequest().fromBinary(bytes, options);
|
|
364
|
-
}
|
|
365
|
-
|
|
366
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetUserRequest {
|
|
367
|
-
return new GetUserRequest().fromJson(jsonValue, options);
|
|
368
|
-
}
|
|
369
|
-
|
|
370
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetUserRequest {
|
|
371
|
-
return new GetUserRequest().fromJsonString(jsonString, options);
|
|
372
|
-
}
|
|
373
|
-
|
|
374
|
-
static equals(a: GetUserRequest | PlainMessage<GetUserRequest> | undefined, b: GetUserRequest | PlainMessage<GetUserRequest> | undefined): boolean {
|
|
375
|
-
return proto3.util.equals(GetUserRequest, a, b);
|
|
376
|
-
}
|
|
377
|
-
}
|
|
378
|
-
|
|
379
|
-
/**
|
|
380
|
-
* @generated from message scalekit.v1.users.GetUserResponse
|
|
381
|
-
*/
|
|
382
|
-
export class GetUserResponse extends Message<GetUserResponse> {
|
|
383
|
-
/**
|
|
384
|
-
* @generated from field: scalekit.v1.users.User user = 1;
|
|
385
|
-
*/
|
|
386
|
-
user?: User;
|
|
387
|
-
|
|
388
|
-
constructor(data?: PartialMessage<GetUserResponse>) {
|
|
389
|
-
super();
|
|
390
|
-
proto3.util.initPartial(data, this);
|
|
391
|
-
}
|
|
392
|
-
|
|
393
|
-
static readonly runtime: typeof proto3 = proto3;
|
|
394
|
-
static readonly typeName = "scalekit.v1.users.GetUserResponse";
|
|
395
|
-
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
396
|
-
{ no: 1, name: "user", kind: "message", T: User },
|
|
397
|
-
]);
|
|
398
|
-
|
|
399
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetUserResponse {
|
|
400
|
-
return new GetUserResponse().fromBinary(bytes, options);
|
|
401
|
-
}
|
|
402
|
-
|
|
403
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetUserResponse {
|
|
404
|
-
return new GetUserResponse().fromJson(jsonValue, options);
|
|
405
|
-
}
|
|
406
|
-
|
|
407
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetUserResponse {
|
|
408
|
-
return new GetUserResponse().fromJsonString(jsonString, options);
|
|
409
|
-
}
|
|
410
|
-
|
|
411
|
-
static equals(a: GetUserResponse | PlainMessage<GetUserResponse> | undefined, b: GetUserResponse | PlainMessage<GetUserResponse> | undefined): boolean {
|
|
412
|
-
return proto3.util.equals(GetUserResponse, a, b);
|
|
413
|
-
}
|
|
414
|
-
}
|
|
415
|
-
|
|
416
|
-
/**
|
|
417
|
-
* @generated from message scalekit.v1.users.GetCurrentUserResponse
|
|
418
|
-
*/
|
|
419
|
-
export class GetCurrentUserResponse extends Message<GetCurrentUserResponse> {
|
|
420
|
-
/**
|
|
421
|
-
* @generated from field: scalekit.v1.users.User user = 1;
|
|
422
|
-
*/
|
|
423
|
-
user?: User;
|
|
424
|
-
|
|
425
|
-
/**
|
|
426
|
-
* @generated from field: string current_session_id = 2;
|
|
427
|
-
*/
|
|
428
|
-
currentSessionId = "";
|
|
429
|
-
|
|
430
|
-
constructor(data?: PartialMessage<GetCurrentUserResponse>) {
|
|
431
|
-
super();
|
|
432
|
-
proto3.util.initPartial(data, this);
|
|
433
|
-
}
|
|
434
|
-
|
|
435
|
-
static readonly runtime: typeof proto3 = proto3;
|
|
436
|
-
static readonly typeName = "scalekit.v1.users.GetCurrentUserResponse";
|
|
437
|
-
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
438
|
-
{ no: 1, name: "user", kind: "message", T: User },
|
|
439
|
-
{ no: 2, name: "current_session_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
440
|
-
]);
|
|
441
|
-
|
|
442
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetCurrentUserResponse {
|
|
443
|
-
return new GetCurrentUserResponse().fromBinary(bytes, options);
|
|
444
|
-
}
|
|
445
|
-
|
|
446
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetCurrentUserResponse {
|
|
447
|
-
return new GetCurrentUserResponse().fromJson(jsonValue, options);
|
|
448
|
-
}
|
|
449
|
-
|
|
450
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetCurrentUserResponse {
|
|
451
|
-
return new GetCurrentUserResponse().fromJsonString(jsonString, options);
|
|
452
|
-
}
|
|
453
|
-
|
|
454
|
-
static equals(a: GetCurrentUserResponse | PlainMessage<GetCurrentUserResponse> | undefined, b: GetCurrentUserResponse | PlainMessage<GetCurrentUserResponse> | undefined): boolean {
|
|
455
|
-
return proto3.util.equals(GetCurrentUserResponse, a, b);
|
|
456
|
-
}
|
|
457
|
-
}
|
|
458
|
-
|
|
459
|
-
/**
|
|
460
|
-
* Empty message - user ID extracted from authentication context
|
|
461
|
-
*
|
|
462
|
-
* @generated from message scalekit.v1.users.GetCurrentUserRequest
|
|
463
|
-
*/
|
|
464
|
-
export class GetCurrentUserRequest extends Message<GetCurrentUserRequest> {
|
|
465
|
-
constructor(data?: PartialMessage<GetCurrentUserRequest>) {
|
|
466
|
-
super();
|
|
467
|
-
proto3.util.initPartial(data, this);
|
|
468
|
-
}
|
|
469
|
-
|
|
470
|
-
static readonly runtime: typeof proto3 = proto3;
|
|
471
|
-
static readonly typeName = "scalekit.v1.users.GetCurrentUserRequest";
|
|
472
|
-
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
473
|
-
]);
|
|
474
|
-
|
|
475
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetCurrentUserRequest {
|
|
476
|
-
return new GetCurrentUserRequest().fromBinary(bytes, options);
|
|
477
|
-
}
|
|
478
|
-
|
|
479
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetCurrentUserRequest {
|
|
480
|
-
return new GetCurrentUserRequest().fromJson(jsonValue, options);
|
|
481
|
-
}
|
|
482
|
-
|
|
483
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetCurrentUserRequest {
|
|
484
|
-
return new GetCurrentUserRequest().fromJsonString(jsonString, options);
|
|
485
|
-
}
|
|
486
|
-
|
|
487
|
-
static equals(a: GetCurrentUserRequest | PlainMessage<GetCurrentUserRequest> | undefined, b: GetCurrentUserRequest | PlainMessage<GetCurrentUserRequest> | undefined): boolean {
|
|
488
|
-
return proto3.util.equals(GetCurrentUserRequest, a, b);
|
|
489
|
-
}
|
|
490
|
-
}
|
|
491
|
-
|
|
492
|
-
/**
|
|
493
|
-
* @generated from message scalekit.v1.users.ListOrganizationUsersRequest
|
|
494
|
-
*/
|
|
495
|
-
export class ListOrganizationUsersRequest extends Message<ListOrganizationUsersRequest> {
|
|
496
|
-
/**
|
|
497
|
-
* @generated from field: string organization_id = 1;
|
|
498
|
-
*/
|
|
499
|
-
organizationId = "";
|
|
500
|
-
|
|
501
|
-
/**
|
|
502
|
-
* @generated from field: uint32 page_size = 2;
|
|
503
|
-
*/
|
|
504
|
-
pageSize = 0;
|
|
505
|
-
|
|
506
|
-
/**
|
|
507
|
-
* @generated from field: string page_token = 3;
|
|
508
|
-
*/
|
|
509
|
-
pageToken = "";
|
|
510
|
-
|
|
511
|
-
constructor(data?: PartialMessage<ListOrganizationUsersRequest>) {
|
|
512
|
-
super();
|
|
513
|
-
proto3.util.initPartial(data, this);
|
|
514
|
-
}
|
|
515
|
-
|
|
516
|
-
static readonly runtime: typeof proto3 = proto3;
|
|
517
|
-
static readonly typeName = "scalekit.v1.users.ListOrganizationUsersRequest";
|
|
518
|
-
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
519
|
-
{ no: 1, name: "organization_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
520
|
-
{ no: 2, name: "page_size", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
521
|
-
{ no: 3, name: "page_token", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
522
|
-
]);
|
|
523
|
-
|
|
524
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListOrganizationUsersRequest {
|
|
525
|
-
return new ListOrganizationUsersRequest().fromBinary(bytes, options);
|
|
526
|
-
}
|
|
527
|
-
|
|
528
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListOrganizationUsersRequest {
|
|
529
|
-
return new ListOrganizationUsersRequest().fromJson(jsonValue, options);
|
|
530
|
-
}
|
|
531
|
-
|
|
532
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListOrganizationUsersRequest {
|
|
533
|
-
return new ListOrganizationUsersRequest().fromJsonString(jsonString, options);
|
|
534
|
-
}
|
|
535
|
-
|
|
536
|
-
static equals(a: ListOrganizationUsersRequest | PlainMessage<ListOrganizationUsersRequest> | undefined, b: ListOrganizationUsersRequest | PlainMessage<ListOrganizationUsersRequest> | undefined): boolean {
|
|
537
|
-
return proto3.util.equals(ListOrganizationUsersRequest, a, b);
|
|
538
|
-
}
|
|
539
|
-
}
|
|
540
|
-
|
|
541
|
-
/**
|
|
542
|
-
* @generated from message scalekit.v1.users.ListOrganizationUsersResponse
|
|
543
|
-
*/
|
|
544
|
-
export class ListOrganizationUsersResponse extends Message<ListOrganizationUsersResponse> {
|
|
545
|
-
/**
|
|
546
|
-
* @generated from field: string next_page_token = 1;
|
|
547
|
-
*/
|
|
548
|
-
nextPageToken = "";
|
|
549
|
-
|
|
550
|
-
/**
|
|
551
|
-
* @generated from field: uint32 total_size = 2;
|
|
552
|
-
*/
|
|
553
|
-
totalSize = 0;
|
|
554
|
-
|
|
555
|
-
/**
|
|
556
|
-
* @generated from field: repeated scalekit.v1.users.User users = 3;
|
|
557
|
-
*/
|
|
558
|
-
users: User[] = [];
|
|
559
|
-
|
|
560
|
-
/**
|
|
561
|
-
* @generated from field: string prev_page_token = 4;
|
|
562
|
-
*/
|
|
563
|
-
prevPageToken = "";
|
|
564
|
-
|
|
565
|
-
constructor(data?: PartialMessage<ListOrganizationUsersResponse>) {
|
|
566
|
-
super();
|
|
567
|
-
proto3.util.initPartial(data, this);
|
|
568
|
-
}
|
|
569
|
-
|
|
570
|
-
static readonly runtime: typeof proto3 = proto3;
|
|
571
|
-
static readonly typeName = "scalekit.v1.users.ListOrganizationUsersResponse";
|
|
572
|
-
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
573
|
-
{ no: 1, name: "next_page_token", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
574
|
-
{ no: 2, name: "total_size", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
575
|
-
{ no: 3, name: "users", kind: "message", T: User, repeated: true },
|
|
576
|
-
{ no: 4, name: "prev_page_token", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
577
|
-
]);
|
|
578
|
-
|
|
579
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListOrganizationUsersResponse {
|
|
580
|
-
return new ListOrganizationUsersResponse().fromBinary(bytes, options);
|
|
581
|
-
}
|
|
582
|
-
|
|
583
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListOrganizationUsersResponse {
|
|
584
|
-
return new ListOrganizationUsersResponse().fromJson(jsonValue, options);
|
|
585
|
-
}
|
|
586
|
-
|
|
587
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListOrganizationUsersResponse {
|
|
588
|
-
return new ListOrganizationUsersResponse().fromJsonString(jsonString, options);
|
|
589
|
-
}
|
|
590
|
-
|
|
591
|
-
static equals(a: ListOrganizationUsersResponse | PlainMessage<ListOrganizationUsersResponse> | undefined, b: ListOrganizationUsersResponse | PlainMessage<ListOrganizationUsersResponse> | undefined): boolean {
|
|
592
|
-
return proto3.util.equals(ListOrganizationUsersResponse, a, b);
|
|
593
|
-
}
|
|
594
|
-
}
|
|
595
|
-
|
|
596
|
-
/**
|
|
597
|
-
* @generated from message scalekit.v1.users.DeleteMembershipRequest
|
|
598
|
-
*/
|
|
599
|
-
export class DeleteMembershipRequest extends Message<DeleteMembershipRequest> {
|
|
600
|
-
/**
|
|
601
|
-
* @generated from field: string organization_id = 1;
|
|
602
|
-
*/
|
|
603
|
-
organizationId = "";
|
|
604
|
-
|
|
605
|
-
/**
|
|
606
|
-
* @generated from oneof scalekit.v1.users.DeleteMembershipRequest.identities
|
|
607
|
-
*/
|
|
608
|
-
identities: {
|
|
609
|
-
/**
|
|
610
|
-
* @generated from field: string id = 2;
|
|
611
|
-
*/
|
|
612
|
-
value: string;
|
|
613
|
-
case: "id";
|
|
614
|
-
} | {
|
|
615
|
-
/**
|
|
616
|
-
* @generated from field: string external_id = 3;
|
|
617
|
-
*/
|
|
618
|
-
value: string;
|
|
619
|
-
case: "externalId";
|
|
620
|
-
} | { case: undefined; value?: undefined } = { case: undefined };
|
|
621
|
-
|
|
622
|
-
/**
|
|
623
|
-
* @generated from field: optional bool cascade = 5;
|
|
624
|
-
*/
|
|
625
|
-
cascade?: boolean;
|
|
626
|
-
|
|
627
|
-
constructor(data?: PartialMessage<DeleteMembershipRequest>) {
|
|
628
|
-
super();
|
|
629
|
-
proto3.util.initPartial(data, this);
|
|
630
|
-
}
|
|
631
|
-
|
|
632
|
-
static readonly runtime: typeof proto3 = proto3;
|
|
633
|
-
static readonly typeName = "scalekit.v1.users.DeleteMembershipRequest";
|
|
634
|
-
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
635
|
-
{ no: 1, name: "organization_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
636
|
-
{ no: 2, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "identities" },
|
|
637
|
-
{ no: 3, name: "external_id", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "identities" },
|
|
638
|
-
{ no: 5, name: "cascade", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
|
|
639
|
-
]);
|
|
640
|
-
|
|
641
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DeleteMembershipRequest {
|
|
642
|
-
return new DeleteMembershipRequest().fromBinary(bytes, options);
|
|
643
|
-
}
|
|
644
|
-
|
|
645
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DeleteMembershipRequest {
|
|
646
|
-
return new DeleteMembershipRequest().fromJson(jsonValue, options);
|
|
647
|
-
}
|
|
648
|
-
|
|
649
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DeleteMembershipRequest {
|
|
650
|
-
return new DeleteMembershipRequest().fromJsonString(jsonString, options);
|
|
651
|
-
}
|
|
652
|
-
|
|
653
|
-
static equals(a: DeleteMembershipRequest | PlainMessage<DeleteMembershipRequest> | undefined, b: DeleteMembershipRequest | PlainMessage<DeleteMembershipRequest> | undefined): boolean {
|
|
654
|
-
return proto3.util.equals(DeleteMembershipRequest, a, b);
|
|
655
|
-
}
|
|
656
|
-
}
|
|
657
|
-
|
|
658
|
-
/**
|
|
659
|
-
* @generated from message scalekit.v1.users.CreateMembershipRequest
|
|
660
|
-
*/
|
|
661
|
-
export class CreateMembershipRequest extends Message<CreateMembershipRequest> {
|
|
662
|
-
/**
|
|
663
|
-
* @generated from field: string organization_id = 1;
|
|
664
|
-
*/
|
|
665
|
-
organizationId = "";
|
|
666
|
-
|
|
667
|
-
/**
|
|
668
|
-
* @generated from field: scalekit.v1.users.CreateMembership membership = 2;
|
|
669
|
-
*/
|
|
670
|
-
membership?: CreateMembership;
|
|
671
|
-
|
|
672
|
-
/**
|
|
673
|
-
* @generated from oneof scalekit.v1.users.CreateMembershipRequest.identities
|
|
674
|
-
*/
|
|
675
|
-
identities: {
|
|
676
|
-
/**
|
|
677
|
-
* @generated from field: string id = 3;
|
|
678
|
-
*/
|
|
679
|
-
value: string;
|
|
680
|
-
case: "id";
|
|
681
|
-
} | {
|
|
682
|
-
/**
|
|
683
|
-
* @generated from field: string external_id = 4;
|
|
684
|
-
*/
|
|
685
|
-
value: string;
|
|
686
|
-
case: "externalId";
|
|
687
|
-
} | { case: undefined; value?: undefined } = { case: undefined };
|
|
688
|
-
|
|
689
|
-
/**
|
|
690
|
-
* @generated from field: optional bool send_invitation_email = 5;
|
|
691
|
-
*/
|
|
692
|
-
sendInvitationEmail?: boolean;
|
|
693
|
-
|
|
694
|
-
constructor(data?: PartialMessage<CreateMembershipRequest>) {
|
|
695
|
-
super();
|
|
696
|
-
proto3.util.initPartial(data, this);
|
|
697
|
-
}
|
|
698
|
-
|
|
699
|
-
static readonly runtime: typeof proto3 = proto3;
|
|
700
|
-
static readonly typeName = "scalekit.v1.users.CreateMembershipRequest";
|
|
701
|
-
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
702
|
-
{ no: 1, name: "organization_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
703
|
-
{ no: 2, name: "membership", kind: "message", T: CreateMembership },
|
|
704
|
-
{ no: 3, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "identities" },
|
|
705
|
-
{ no: 4, name: "external_id", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "identities" },
|
|
706
|
-
{ no: 5, name: "send_invitation_email", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
|
|
707
|
-
]);
|
|
708
|
-
|
|
709
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CreateMembershipRequest {
|
|
710
|
-
return new CreateMembershipRequest().fromBinary(bytes, options);
|
|
711
|
-
}
|
|
712
|
-
|
|
713
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CreateMembershipRequest {
|
|
714
|
-
return new CreateMembershipRequest().fromJson(jsonValue, options);
|
|
715
|
-
}
|
|
716
|
-
|
|
717
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CreateMembershipRequest {
|
|
718
|
-
return new CreateMembershipRequest().fromJsonString(jsonString, options);
|
|
719
|
-
}
|
|
720
|
-
|
|
721
|
-
static equals(a: CreateMembershipRequest | PlainMessage<CreateMembershipRequest> | undefined, b: CreateMembershipRequest | PlainMessage<CreateMembershipRequest> | undefined): boolean {
|
|
722
|
-
return proto3.util.equals(CreateMembershipRequest, a, b);
|
|
723
|
-
}
|
|
724
|
-
}
|
|
725
|
-
|
|
726
|
-
/**
|
|
727
|
-
* @generated from message scalekit.v1.users.CreateMembershipResponse
|
|
728
|
-
*/
|
|
729
|
-
export class CreateMembershipResponse extends Message<CreateMembershipResponse> {
|
|
730
|
-
/**
|
|
731
|
-
* @generated from field: scalekit.v1.users.User user = 1;
|
|
732
|
-
*/
|
|
733
|
-
user?: User;
|
|
734
|
-
|
|
735
|
-
constructor(data?: PartialMessage<CreateMembershipResponse>) {
|
|
736
|
-
super();
|
|
737
|
-
proto3.util.initPartial(data, this);
|
|
738
|
-
}
|
|
739
|
-
|
|
740
|
-
static readonly runtime: typeof proto3 = proto3;
|
|
741
|
-
static readonly typeName = "scalekit.v1.users.CreateMembershipResponse";
|
|
742
|
-
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
743
|
-
{ no: 1, name: "user", kind: "message", T: User },
|
|
744
|
-
]);
|
|
745
|
-
|
|
746
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CreateMembershipResponse {
|
|
747
|
-
return new CreateMembershipResponse().fromBinary(bytes, options);
|
|
748
|
-
}
|
|
749
|
-
|
|
750
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CreateMembershipResponse {
|
|
751
|
-
return new CreateMembershipResponse().fromJson(jsonValue, options);
|
|
752
|
-
}
|
|
753
|
-
|
|
754
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CreateMembershipResponse {
|
|
755
|
-
return new CreateMembershipResponse().fromJsonString(jsonString, options);
|
|
756
|
-
}
|
|
757
|
-
|
|
758
|
-
static equals(a: CreateMembershipResponse | PlainMessage<CreateMembershipResponse> | undefined, b: CreateMembershipResponse | PlainMessage<CreateMembershipResponse> | undefined): boolean {
|
|
759
|
-
return proto3.util.equals(CreateMembershipResponse, a, b);
|
|
760
|
-
}
|
|
761
|
-
}
|
|
762
|
-
|
|
763
|
-
/**
|
|
764
|
-
* @generated from message scalekit.v1.users.ListUsersRequest
|
|
765
|
-
*/
|
|
766
|
-
export class ListUsersRequest extends Message<ListUsersRequest> {
|
|
767
|
-
/**
|
|
768
|
-
* @generated from field: uint32 page_size = 1;
|
|
769
|
-
*/
|
|
770
|
-
pageSize = 0;
|
|
771
|
-
|
|
772
|
-
/**
|
|
773
|
-
* @generated from field: string page_token = 2;
|
|
774
|
-
*/
|
|
775
|
-
pageToken = "";
|
|
776
|
-
|
|
777
|
-
constructor(data?: PartialMessage<ListUsersRequest>) {
|
|
778
|
-
super();
|
|
779
|
-
proto3.util.initPartial(data, this);
|
|
780
|
-
}
|
|
781
|
-
|
|
782
|
-
static readonly runtime: typeof proto3 = proto3;
|
|
783
|
-
static readonly typeName = "scalekit.v1.users.ListUsersRequest";
|
|
784
|
-
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
785
|
-
{ no: 1, name: "page_size", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
786
|
-
{ no: 2, name: "page_token", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
787
|
-
]);
|
|
788
|
-
|
|
789
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListUsersRequest {
|
|
790
|
-
return new ListUsersRequest().fromBinary(bytes, options);
|
|
791
|
-
}
|
|
792
|
-
|
|
793
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListUsersRequest {
|
|
794
|
-
return new ListUsersRequest().fromJson(jsonValue, options);
|
|
795
|
-
}
|
|
796
|
-
|
|
797
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListUsersRequest {
|
|
798
|
-
return new ListUsersRequest().fromJsonString(jsonString, options);
|
|
799
|
-
}
|
|
800
|
-
|
|
801
|
-
static equals(a: ListUsersRequest | PlainMessage<ListUsersRequest> | undefined, b: ListUsersRequest | PlainMessage<ListUsersRequest> | undefined): boolean {
|
|
802
|
-
return proto3.util.equals(ListUsersRequest, a, b);
|
|
803
|
-
}
|
|
804
|
-
}
|
|
805
|
-
|
|
806
|
-
/**
|
|
807
|
-
* @generated from message scalekit.v1.users.ListUsersResponse
|
|
808
|
-
*/
|
|
809
|
-
export class ListUsersResponse extends Message<ListUsersResponse> {
|
|
810
|
-
/**
|
|
811
|
-
* @generated from field: repeated scalekit.v1.users.User users = 1;
|
|
812
|
-
*/
|
|
813
|
-
users: User[] = [];
|
|
814
|
-
|
|
815
|
-
/**
|
|
816
|
-
* @generated from field: string next_page_token = 2;
|
|
817
|
-
*/
|
|
818
|
-
nextPageToken = "";
|
|
819
|
-
|
|
820
|
-
/**
|
|
821
|
-
* @generated from field: uint32 total_size = 3;
|
|
822
|
-
*/
|
|
823
|
-
totalSize = 0;
|
|
824
|
-
|
|
825
|
-
/**
|
|
826
|
-
* @generated from field: string prev_page_token = 4;
|
|
827
|
-
*/
|
|
828
|
-
prevPageToken = "";
|
|
829
|
-
|
|
830
|
-
constructor(data?: PartialMessage<ListUsersResponse>) {
|
|
831
|
-
super();
|
|
832
|
-
proto3.util.initPartial(data, this);
|
|
833
|
-
}
|
|
834
|
-
|
|
835
|
-
static readonly runtime: typeof proto3 = proto3;
|
|
836
|
-
static readonly typeName = "scalekit.v1.users.ListUsersResponse";
|
|
837
|
-
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
838
|
-
{ no: 1, name: "users", kind: "message", T: User, repeated: true },
|
|
839
|
-
{ no: 2, name: "next_page_token", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
840
|
-
{ no: 3, name: "total_size", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
841
|
-
{ no: 4, name: "prev_page_token", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
842
|
-
]);
|
|
843
|
-
|
|
844
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListUsersResponse {
|
|
845
|
-
return new ListUsersResponse().fromBinary(bytes, options);
|
|
846
|
-
}
|
|
847
|
-
|
|
848
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListUsersResponse {
|
|
849
|
-
return new ListUsersResponse().fromJson(jsonValue, options);
|
|
850
|
-
}
|
|
851
|
-
|
|
852
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListUsersResponse {
|
|
853
|
-
return new ListUsersResponse().fromJsonString(jsonString, options);
|
|
854
|
-
}
|
|
855
|
-
|
|
856
|
-
static equals(a: ListUsersResponse | PlainMessage<ListUsersResponse> | undefined, b: ListUsersResponse | PlainMessage<ListUsersResponse> | undefined): boolean {
|
|
857
|
-
return proto3.util.equals(ListUsersResponse, a, b);
|
|
858
|
-
}
|
|
859
|
-
}
|
|
860
|
-
|
|
861
|
-
/**
|
|
862
|
-
* @generated from message scalekit.v1.users.SearchUsersRequest
|
|
863
|
-
*/
|
|
864
|
-
export class SearchUsersRequest extends Message<SearchUsersRequest> {
|
|
865
|
-
/**
|
|
866
|
-
* @generated from field: string query = 1;
|
|
867
|
-
*/
|
|
868
|
-
query = "";
|
|
869
|
-
|
|
870
|
-
/**
|
|
871
|
-
* @generated from field: uint32 page_size = 2;
|
|
872
|
-
*/
|
|
873
|
-
pageSize = 0;
|
|
874
|
-
|
|
875
|
-
/**
|
|
876
|
-
* @generated from field: string page_token = 3;
|
|
877
|
-
*/
|
|
878
|
-
pageToken = "";
|
|
879
|
-
|
|
880
|
-
constructor(data?: PartialMessage<SearchUsersRequest>) {
|
|
881
|
-
super();
|
|
882
|
-
proto3.util.initPartial(data, this);
|
|
883
|
-
}
|
|
884
|
-
|
|
885
|
-
static readonly runtime: typeof proto3 = proto3;
|
|
886
|
-
static readonly typeName = "scalekit.v1.users.SearchUsersRequest";
|
|
887
|
-
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
888
|
-
{ no: 1, name: "query", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
889
|
-
{ no: 2, name: "page_size", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
890
|
-
{ no: 3, name: "page_token", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
891
|
-
]);
|
|
892
|
-
|
|
893
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SearchUsersRequest {
|
|
894
|
-
return new SearchUsersRequest().fromBinary(bytes, options);
|
|
895
|
-
}
|
|
896
|
-
|
|
897
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SearchUsersRequest {
|
|
898
|
-
return new SearchUsersRequest().fromJson(jsonValue, options);
|
|
899
|
-
}
|
|
900
|
-
|
|
901
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SearchUsersRequest {
|
|
902
|
-
return new SearchUsersRequest().fromJsonString(jsonString, options);
|
|
903
|
-
}
|
|
904
|
-
|
|
905
|
-
static equals(a: SearchUsersRequest | PlainMessage<SearchUsersRequest> | undefined, b: SearchUsersRequest | PlainMessage<SearchUsersRequest> | undefined): boolean {
|
|
906
|
-
return proto3.util.equals(SearchUsersRequest, a, b);
|
|
907
|
-
}
|
|
908
|
-
}
|
|
909
|
-
|
|
910
|
-
/**
|
|
911
|
-
* @generated from message scalekit.v1.users.SearchUsersResponse
|
|
912
|
-
*/
|
|
913
|
-
export class SearchUsersResponse extends Message<SearchUsersResponse> {
|
|
914
|
-
/**
|
|
915
|
-
* @generated from field: string next_page_token = 1;
|
|
916
|
-
*/
|
|
917
|
-
nextPageToken = "";
|
|
918
|
-
|
|
919
|
-
/**
|
|
920
|
-
* @generated from field: uint32 total_size = 2;
|
|
921
|
-
*/
|
|
922
|
-
totalSize = 0;
|
|
923
|
-
|
|
924
|
-
/**
|
|
925
|
-
* @generated from field: repeated scalekit.v1.users.User users = 3;
|
|
926
|
-
*/
|
|
927
|
-
users: User[] = [];
|
|
928
|
-
|
|
929
|
-
/**
|
|
930
|
-
* @generated from field: string prev_page_token = 4;
|
|
931
|
-
*/
|
|
932
|
-
prevPageToken = "";
|
|
933
|
-
|
|
934
|
-
constructor(data?: PartialMessage<SearchUsersResponse>) {
|
|
935
|
-
super();
|
|
936
|
-
proto3.util.initPartial(data, this);
|
|
937
|
-
}
|
|
938
|
-
|
|
939
|
-
static readonly runtime: typeof proto3 = proto3;
|
|
940
|
-
static readonly typeName = "scalekit.v1.users.SearchUsersResponse";
|
|
941
|
-
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
942
|
-
{ no: 1, name: "next_page_token", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
943
|
-
{ no: 2, name: "total_size", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
944
|
-
{ no: 3, name: "users", kind: "message", T: User, repeated: true },
|
|
945
|
-
{ no: 4, name: "prev_page_token", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
946
|
-
]);
|
|
947
|
-
|
|
948
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SearchUsersResponse {
|
|
949
|
-
return new SearchUsersResponse().fromBinary(bytes, options);
|
|
950
|
-
}
|
|
951
|
-
|
|
952
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SearchUsersResponse {
|
|
953
|
-
return new SearchUsersResponse().fromJson(jsonValue, options);
|
|
954
|
-
}
|
|
955
|
-
|
|
956
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SearchUsersResponse {
|
|
957
|
-
return new SearchUsersResponse().fromJsonString(jsonString, options);
|
|
958
|
-
}
|
|
959
|
-
|
|
960
|
-
static equals(a: SearchUsersResponse | PlainMessage<SearchUsersResponse> | undefined, b: SearchUsersResponse | PlainMessage<SearchUsersResponse> | undefined): boolean {
|
|
961
|
-
return proto3.util.equals(SearchUsersResponse, a, b);
|
|
962
|
-
}
|
|
963
|
-
}
|
|
964
|
-
|
|
965
|
-
/**
|
|
966
|
-
* @generated from message scalekit.v1.users.DeleteUserRequest
|
|
967
|
-
*/
|
|
968
|
-
export class DeleteUserRequest extends Message<DeleteUserRequest> {
|
|
969
|
-
/**
|
|
970
|
-
* @generated from oneof scalekit.v1.users.DeleteUserRequest.identities
|
|
971
|
-
*/
|
|
972
|
-
identities: {
|
|
973
|
-
/**
|
|
974
|
-
* @generated from field: string id = 1;
|
|
975
|
-
*/
|
|
976
|
-
value: string;
|
|
977
|
-
case: "id";
|
|
978
|
-
} | {
|
|
979
|
-
/**
|
|
980
|
-
* @generated from field: string external_id = 2;
|
|
981
|
-
*/
|
|
982
|
-
value: string;
|
|
983
|
-
case: "externalId";
|
|
984
|
-
} | { case: undefined; value?: undefined } = { case: undefined };
|
|
985
|
-
|
|
986
|
-
constructor(data?: PartialMessage<DeleteUserRequest>) {
|
|
987
|
-
super();
|
|
988
|
-
proto3.util.initPartial(data, this);
|
|
989
|
-
}
|
|
990
|
-
|
|
991
|
-
static readonly runtime: typeof proto3 = proto3;
|
|
992
|
-
static readonly typeName = "scalekit.v1.users.DeleteUserRequest";
|
|
993
|
-
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
994
|
-
{ no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "identities" },
|
|
995
|
-
{ no: 2, name: "external_id", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "identities" },
|
|
996
|
-
]);
|
|
997
|
-
|
|
998
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DeleteUserRequest {
|
|
999
|
-
return new DeleteUserRequest().fromBinary(bytes, options);
|
|
1000
|
-
}
|
|
1001
|
-
|
|
1002
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DeleteUserRequest {
|
|
1003
|
-
return new DeleteUserRequest().fromJson(jsonValue, options);
|
|
1004
|
-
}
|
|
1005
|
-
|
|
1006
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DeleteUserRequest {
|
|
1007
|
-
return new DeleteUserRequest().fromJsonString(jsonString, options);
|
|
1008
|
-
}
|
|
1009
|
-
|
|
1010
|
-
static equals(a: DeleteUserRequest | PlainMessage<DeleteUserRequest> | undefined, b: DeleteUserRequest | PlainMessage<DeleteUserRequest> | undefined): boolean {
|
|
1011
|
-
return proto3.util.equals(DeleteUserRequest, a, b);
|
|
1012
|
-
}
|
|
1013
|
-
}
|
|
1014
|
-
|
|
1015
|
-
/**
|
|
1016
|
-
* @generated from message scalekit.v1.users.UpdateMembershipRequest
|
|
1017
|
-
*/
|
|
1018
|
-
export class UpdateMembershipRequest extends Message<UpdateMembershipRequest> {
|
|
1019
|
-
/**
|
|
1020
|
-
* @generated from field: string organization_id = 1;
|
|
1021
|
-
*/
|
|
1022
|
-
organizationId = "";
|
|
1023
|
-
|
|
1024
|
-
/**
|
|
1025
|
-
* @generated from oneof scalekit.v1.users.UpdateMembershipRequest.identities
|
|
1026
|
-
*/
|
|
1027
|
-
identities: {
|
|
1028
|
-
/**
|
|
1029
|
-
* @generated from field: string id = 2;
|
|
1030
|
-
*/
|
|
1031
|
-
value: string;
|
|
1032
|
-
case: "id";
|
|
1033
|
-
} | {
|
|
1034
|
-
/**
|
|
1035
|
-
* @generated from field: string external_id = 3;
|
|
1036
|
-
*/
|
|
1037
|
-
value: string;
|
|
1038
|
-
case: "externalId";
|
|
1039
|
-
} | { case: undefined; value?: undefined } = { case: undefined };
|
|
1040
|
-
|
|
1041
|
-
/**
|
|
1042
|
-
* @generated from field: scalekit.v1.users.UpdateMembership membership = 5;
|
|
1043
|
-
*/
|
|
1044
|
-
membership?: UpdateMembership;
|
|
1045
|
-
|
|
1046
|
-
constructor(data?: PartialMessage<UpdateMembershipRequest>) {
|
|
1047
|
-
super();
|
|
1048
|
-
proto3.util.initPartial(data, this);
|
|
1049
|
-
}
|
|
1050
|
-
|
|
1051
|
-
static readonly runtime: typeof proto3 = proto3;
|
|
1052
|
-
static readonly typeName = "scalekit.v1.users.UpdateMembershipRequest";
|
|
1053
|
-
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
1054
|
-
{ no: 1, name: "organization_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1055
|
-
{ no: 2, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "identities" },
|
|
1056
|
-
{ no: 3, name: "external_id", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "identities" },
|
|
1057
|
-
{ no: 5, name: "membership", kind: "message", T: UpdateMembership },
|
|
1058
|
-
]);
|
|
1059
|
-
|
|
1060
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UpdateMembershipRequest {
|
|
1061
|
-
return new UpdateMembershipRequest().fromBinary(bytes, options);
|
|
1062
|
-
}
|
|
1063
|
-
|
|
1064
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UpdateMembershipRequest {
|
|
1065
|
-
return new UpdateMembershipRequest().fromJson(jsonValue, options);
|
|
1066
|
-
}
|
|
1067
|
-
|
|
1068
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UpdateMembershipRequest {
|
|
1069
|
-
return new UpdateMembershipRequest().fromJsonString(jsonString, options);
|
|
1070
|
-
}
|
|
1071
|
-
|
|
1072
|
-
static equals(a: UpdateMembershipRequest | PlainMessage<UpdateMembershipRequest> | undefined, b: UpdateMembershipRequest | PlainMessage<UpdateMembershipRequest> | undefined): boolean {
|
|
1073
|
-
return proto3.util.equals(UpdateMembershipRequest, a, b);
|
|
1074
|
-
}
|
|
1075
|
-
}
|
|
1076
|
-
|
|
1077
|
-
/**
|
|
1078
|
-
* @generated from message scalekit.v1.users.UpdateMembership
|
|
1079
|
-
*/
|
|
1080
|
-
export class UpdateMembership extends Message<UpdateMembership> {
|
|
1081
|
-
/**
|
|
1082
|
-
* @generated from field: repeated scalekit.v1.commons.Role roles = 4;
|
|
1083
|
-
*/
|
|
1084
|
-
roles: Role[] = [];
|
|
1085
|
-
|
|
1086
|
-
/**
|
|
1087
|
-
* @generated from field: map<string, string> metadata = 7;
|
|
1088
|
-
*/
|
|
1089
|
-
metadata: { [key: string]: string } = {};
|
|
1090
|
-
|
|
1091
|
-
constructor(data?: PartialMessage<UpdateMembership>) {
|
|
1092
|
-
super();
|
|
1093
|
-
proto3.util.initPartial(data, this);
|
|
1094
|
-
}
|
|
1095
|
-
|
|
1096
|
-
static readonly runtime: typeof proto3 = proto3;
|
|
1097
|
-
static readonly typeName = "scalekit.v1.users.UpdateMembership";
|
|
1098
|
-
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
1099
|
-
{ no: 4, name: "roles", kind: "message", T: Role, repeated: true },
|
|
1100
|
-
{ no: 7, name: "metadata", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} },
|
|
1101
|
-
]);
|
|
1102
|
-
|
|
1103
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UpdateMembership {
|
|
1104
|
-
return new UpdateMembership().fromBinary(bytes, options);
|
|
1105
|
-
}
|
|
1106
|
-
|
|
1107
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UpdateMembership {
|
|
1108
|
-
return new UpdateMembership().fromJson(jsonValue, options);
|
|
1109
|
-
}
|
|
1110
|
-
|
|
1111
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UpdateMembership {
|
|
1112
|
-
return new UpdateMembership().fromJsonString(jsonString, options);
|
|
1113
|
-
}
|
|
1114
|
-
|
|
1115
|
-
static equals(a: UpdateMembership | PlainMessage<UpdateMembership> | undefined, b: UpdateMembership | PlainMessage<UpdateMembership> | undefined): boolean {
|
|
1116
|
-
return proto3.util.equals(UpdateMembership, a, b);
|
|
1117
|
-
}
|
|
1118
|
-
}
|
|
1119
|
-
|
|
1120
|
-
/**
|
|
1121
|
-
* @generated from message scalekit.v1.users.CreateMembership
|
|
1122
|
-
*/
|
|
1123
|
-
export class CreateMembership extends Message<CreateMembership> {
|
|
1124
|
-
/**
|
|
1125
|
-
* @generated from field: repeated scalekit.v1.commons.Role roles = 4;
|
|
1126
|
-
*/
|
|
1127
|
-
roles: Role[] = [];
|
|
1128
|
-
|
|
1129
|
-
/**
|
|
1130
|
-
* @generated from field: map<string, string> metadata = 7;
|
|
1131
|
-
*/
|
|
1132
|
-
metadata: { [key: string]: string } = {};
|
|
1133
|
-
|
|
1134
|
-
/**
|
|
1135
|
-
* @generated from field: optional string inviter_email = 8;
|
|
1136
|
-
*/
|
|
1137
|
-
inviterEmail?: string;
|
|
1138
|
-
|
|
1139
|
-
constructor(data?: PartialMessage<CreateMembership>) {
|
|
1140
|
-
super();
|
|
1141
|
-
proto3.util.initPartial(data, this);
|
|
1142
|
-
}
|
|
1143
|
-
|
|
1144
|
-
static readonly runtime: typeof proto3 = proto3;
|
|
1145
|
-
static readonly typeName = "scalekit.v1.users.CreateMembership";
|
|
1146
|
-
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
1147
|
-
{ no: 4, name: "roles", kind: "message", T: Role, repeated: true },
|
|
1148
|
-
{ no: 7, name: "metadata", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} },
|
|
1149
|
-
{ no: 8, name: "inviter_email", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1150
|
-
]);
|
|
1151
|
-
|
|
1152
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CreateMembership {
|
|
1153
|
-
return new CreateMembership().fromBinary(bytes, options);
|
|
1154
|
-
}
|
|
1155
|
-
|
|
1156
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CreateMembership {
|
|
1157
|
-
return new CreateMembership().fromJson(jsonValue, options);
|
|
1158
|
-
}
|
|
1159
|
-
|
|
1160
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CreateMembership {
|
|
1161
|
-
return new CreateMembership().fromJsonString(jsonString, options);
|
|
1162
|
-
}
|
|
1163
|
-
|
|
1164
|
-
static equals(a: CreateMembership | PlainMessage<CreateMembership> | undefined, b: CreateMembership | PlainMessage<CreateMembership> | undefined): boolean {
|
|
1165
|
-
return proto3.util.equals(CreateMembership, a, b);
|
|
1166
|
-
}
|
|
1167
|
-
}
|
|
1168
|
-
|
|
1169
|
-
/**
|
|
1170
|
-
* @generated from message scalekit.v1.users.UpdateMembershipResponse
|
|
1171
|
-
*/
|
|
1172
|
-
export class UpdateMembershipResponse extends Message<UpdateMembershipResponse> {
|
|
1173
|
-
/**
|
|
1174
|
-
* @generated from field: scalekit.v1.users.User user = 1;
|
|
1175
|
-
*/
|
|
1176
|
-
user?: User;
|
|
1177
|
-
|
|
1178
|
-
constructor(data?: PartialMessage<UpdateMembershipResponse>) {
|
|
1179
|
-
super();
|
|
1180
|
-
proto3.util.initPartial(data, this);
|
|
1181
|
-
}
|
|
1182
|
-
|
|
1183
|
-
static readonly runtime: typeof proto3 = proto3;
|
|
1184
|
-
static readonly typeName = "scalekit.v1.users.UpdateMembershipResponse";
|
|
1185
|
-
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
1186
|
-
{ no: 1, name: "user", kind: "message", T: User },
|
|
1187
|
-
]);
|
|
1188
|
-
|
|
1189
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UpdateMembershipResponse {
|
|
1190
|
-
return new UpdateMembershipResponse().fromBinary(bytes, options);
|
|
1191
|
-
}
|
|
1192
|
-
|
|
1193
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UpdateMembershipResponse {
|
|
1194
|
-
return new UpdateMembershipResponse().fromJson(jsonValue, options);
|
|
1195
|
-
}
|
|
1196
|
-
|
|
1197
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UpdateMembershipResponse {
|
|
1198
|
-
return new UpdateMembershipResponse().fromJsonString(jsonString, options);
|
|
1199
|
-
}
|
|
1200
|
-
|
|
1201
|
-
static equals(a: UpdateMembershipResponse | PlainMessage<UpdateMembershipResponse> | undefined, b: UpdateMembershipResponse | PlainMessage<UpdateMembershipResponse> | undefined): boolean {
|
|
1202
|
-
return proto3.util.equals(UpdateMembershipResponse, a, b);
|
|
1203
|
-
}
|
|
1204
|
-
}
|
|
1205
|
-
|
|
1206
|
-
/**
|
|
1207
|
-
* @generated from message scalekit.v1.users.SearchOrganizationUsersRequest
|
|
1208
|
-
*/
|
|
1209
|
-
export class SearchOrganizationUsersRequest extends Message<SearchOrganizationUsersRequest> {
|
|
1210
|
-
/**
|
|
1211
|
-
* @generated from field: string organization_id = 1;
|
|
1212
|
-
*/
|
|
1213
|
-
organizationId = "";
|
|
1214
|
-
|
|
1215
|
-
/**
|
|
1216
|
-
* @generated from field: string query = 2;
|
|
1217
|
-
*/
|
|
1218
|
-
query = "";
|
|
1219
|
-
|
|
1220
|
-
/**
|
|
1221
|
-
* @generated from field: uint32 page_size = 3;
|
|
1222
|
-
*/
|
|
1223
|
-
pageSize = 0;
|
|
1224
|
-
|
|
1225
|
-
/**
|
|
1226
|
-
* @generated from field: string page_token = 4;
|
|
1227
|
-
*/
|
|
1228
|
-
pageToken = "";
|
|
1229
|
-
|
|
1230
|
-
constructor(data?: PartialMessage<SearchOrganizationUsersRequest>) {
|
|
1231
|
-
super();
|
|
1232
|
-
proto3.util.initPartial(data, this);
|
|
1233
|
-
}
|
|
1234
|
-
|
|
1235
|
-
static readonly runtime: typeof proto3 = proto3;
|
|
1236
|
-
static readonly typeName = "scalekit.v1.users.SearchOrganizationUsersRequest";
|
|
1237
|
-
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
1238
|
-
{ no: 1, name: "organization_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1239
|
-
{ no: 2, name: "query", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1240
|
-
{ no: 3, name: "page_size", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
1241
|
-
{ no: 4, name: "page_token", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1242
|
-
]);
|
|
1243
|
-
|
|
1244
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SearchOrganizationUsersRequest {
|
|
1245
|
-
return new SearchOrganizationUsersRequest().fromBinary(bytes, options);
|
|
1246
|
-
}
|
|
1247
|
-
|
|
1248
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SearchOrganizationUsersRequest {
|
|
1249
|
-
return new SearchOrganizationUsersRequest().fromJson(jsonValue, options);
|
|
1250
|
-
}
|
|
1251
|
-
|
|
1252
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SearchOrganizationUsersRequest {
|
|
1253
|
-
return new SearchOrganizationUsersRequest().fromJsonString(jsonString, options);
|
|
1254
|
-
}
|
|
1255
|
-
|
|
1256
|
-
static equals(a: SearchOrganizationUsersRequest | PlainMessage<SearchOrganizationUsersRequest> | undefined, b: SearchOrganizationUsersRequest | PlainMessage<SearchOrganizationUsersRequest> | undefined): boolean {
|
|
1257
|
-
return proto3.util.equals(SearchOrganizationUsersRequest, a, b);
|
|
1258
|
-
}
|
|
1259
|
-
}
|
|
1260
|
-
|
|
1261
|
-
/**
|
|
1262
|
-
* @generated from message scalekit.v1.users.SearchOrganizationUsersResponse
|
|
1263
|
-
*/
|
|
1264
|
-
export class SearchOrganizationUsersResponse extends Message<SearchOrganizationUsersResponse> {
|
|
1265
|
-
/**
|
|
1266
|
-
* @generated from field: string next_page_token = 1;
|
|
1267
|
-
*/
|
|
1268
|
-
nextPageToken = "";
|
|
1269
|
-
|
|
1270
|
-
/**
|
|
1271
|
-
* @generated from field: uint32 total_size = 2;
|
|
1272
|
-
*/
|
|
1273
|
-
totalSize = 0;
|
|
1274
|
-
|
|
1275
|
-
/**
|
|
1276
|
-
* @generated from field: repeated scalekit.v1.users.User users = 3;
|
|
1277
|
-
*/
|
|
1278
|
-
users: User[] = [];
|
|
1279
|
-
|
|
1280
|
-
/**
|
|
1281
|
-
* @generated from field: string prev_page_token = 4;
|
|
1282
|
-
*/
|
|
1283
|
-
prevPageToken = "";
|
|
1284
|
-
|
|
1285
|
-
constructor(data?: PartialMessage<SearchOrganizationUsersResponse>) {
|
|
1286
|
-
super();
|
|
1287
|
-
proto3.util.initPartial(data, this);
|
|
1288
|
-
}
|
|
1289
|
-
|
|
1290
|
-
static readonly runtime: typeof proto3 = proto3;
|
|
1291
|
-
static readonly typeName = "scalekit.v1.users.SearchOrganizationUsersResponse";
|
|
1292
|
-
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
1293
|
-
{ no: 1, name: "next_page_token", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1294
|
-
{ no: 2, name: "total_size", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
1295
|
-
{ no: 3, name: "users", kind: "message", T: User, repeated: true },
|
|
1296
|
-
{ no: 4, name: "prev_page_token", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1297
|
-
]);
|
|
1298
|
-
|
|
1299
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SearchOrganizationUsersResponse {
|
|
1300
|
-
return new SearchOrganizationUsersResponse().fromBinary(bytes, options);
|
|
1301
|
-
}
|
|
1302
|
-
|
|
1303
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SearchOrganizationUsersResponse {
|
|
1304
|
-
return new SearchOrganizationUsersResponse().fromJson(jsonValue, options);
|
|
1305
|
-
}
|
|
1306
|
-
|
|
1307
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SearchOrganizationUsersResponse {
|
|
1308
|
-
return new SearchOrganizationUsersResponse().fromJsonString(jsonString, options);
|
|
1309
|
-
}
|
|
1310
|
-
|
|
1311
|
-
static equals(a: SearchOrganizationUsersResponse | PlainMessage<SearchOrganizationUsersResponse> | undefined, b: SearchOrganizationUsersResponse | PlainMessage<SearchOrganizationUsersResponse> | undefined): boolean {
|
|
1312
|
-
return proto3.util.equals(SearchOrganizationUsersResponse, a, b);
|
|
1313
|
-
}
|
|
1314
|
-
}
|
|
1315
|
-
|
|
1316
|
-
/**
|
|
1317
|
-
* @generated from message scalekit.v1.users.CreateUser
|
|
1318
|
-
*/
|
|
1319
|
-
export class CreateUser extends Message<CreateUser> {
|
|
1320
|
-
/**
|
|
1321
|
-
* @generated from field: string email = 5;
|
|
1322
|
-
*/
|
|
1323
|
-
email = "";
|
|
1324
|
-
|
|
1325
|
-
/**
|
|
1326
|
-
* @generated from field: optional string external_id = 6;
|
|
1327
|
-
*/
|
|
1328
|
-
externalId?: string;
|
|
1329
|
-
|
|
1330
|
-
/**
|
|
1331
|
-
* @generated from field: scalekit.v1.users.CreateMembership membership = 7;
|
|
1332
|
-
*/
|
|
1333
|
-
membership?: CreateMembership;
|
|
1334
|
-
|
|
1335
|
-
/**
|
|
1336
|
-
* @generated from field: scalekit.v1.users.CreateUserProfile user_profile = 8;
|
|
1337
|
-
*/
|
|
1338
|
-
userProfile?: CreateUserProfile;
|
|
1339
|
-
|
|
1340
|
-
/**
|
|
1341
|
-
* @generated from field: map<string, string> metadata = 9;
|
|
1342
|
-
*/
|
|
1343
|
-
metadata: { [key: string]: string } = {};
|
|
1344
|
-
|
|
1345
|
-
constructor(data?: PartialMessage<CreateUser>) {
|
|
1346
|
-
super();
|
|
1347
|
-
proto3.util.initPartial(data, this);
|
|
1348
|
-
}
|
|
1349
|
-
|
|
1350
|
-
static readonly runtime: typeof proto3 = proto3;
|
|
1351
|
-
static readonly typeName = "scalekit.v1.users.CreateUser";
|
|
1352
|
-
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
1353
|
-
{ no: 5, name: "email", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1354
|
-
{ no: 6, name: "external_id", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1355
|
-
{ no: 7, name: "membership", kind: "message", T: CreateMembership },
|
|
1356
|
-
{ no: 8, name: "user_profile", kind: "message", T: CreateUserProfile },
|
|
1357
|
-
{ no: 9, name: "metadata", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} },
|
|
1358
|
-
]);
|
|
1359
|
-
|
|
1360
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CreateUser {
|
|
1361
|
-
return new CreateUser().fromBinary(bytes, options);
|
|
1362
|
-
}
|
|
1363
|
-
|
|
1364
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CreateUser {
|
|
1365
|
-
return new CreateUser().fromJson(jsonValue, options);
|
|
1366
|
-
}
|
|
1367
|
-
|
|
1368
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CreateUser {
|
|
1369
|
-
return new CreateUser().fromJsonString(jsonString, options);
|
|
1370
|
-
}
|
|
1371
|
-
|
|
1372
|
-
static equals(a: CreateUser | PlainMessage<CreateUser> | undefined, b: CreateUser | PlainMessage<CreateUser> | undefined): boolean {
|
|
1373
|
-
return proto3.util.equals(CreateUser, a, b);
|
|
1374
|
-
}
|
|
1375
|
-
}
|
|
1376
|
-
|
|
1377
|
-
/**
|
|
1378
|
-
* @generated from message scalekit.v1.users.CreateUserProfile
|
|
1379
|
-
*/
|
|
1380
|
-
export class CreateUserProfile extends Message<CreateUserProfile> {
|
|
1381
|
-
/**
|
|
1382
|
-
* @generated from field: string given_name = 2;
|
|
1383
|
-
*/
|
|
1384
|
-
givenName = "";
|
|
1385
|
-
|
|
1386
|
-
/**
|
|
1387
|
-
* @generated from field: string family_name = 3;
|
|
1388
|
-
*/
|
|
1389
|
-
familyName = "";
|
|
1390
|
-
|
|
1391
|
-
/**
|
|
1392
|
-
* @generated from field: string name = 4;
|
|
1393
|
-
*/
|
|
1394
|
-
name = "";
|
|
1395
|
-
|
|
1396
|
-
/**
|
|
1397
|
-
* @generated from field: string locale = 5;
|
|
1398
|
-
*/
|
|
1399
|
-
locale = "";
|
|
1400
|
-
|
|
1401
|
-
/**
|
|
1402
|
-
* @generated from field: string phone_number = 7;
|
|
1403
|
-
*/
|
|
1404
|
-
phoneNumber = "";
|
|
1405
|
-
|
|
1406
|
-
/**
|
|
1407
|
-
* @generated from field: map<string, string> metadata = 8;
|
|
1408
|
-
*/
|
|
1409
|
-
metadata: { [key: string]: string } = {};
|
|
1410
|
-
|
|
1411
|
-
/**
|
|
1412
|
-
* @generated from field: map<string, string> custom_attributes = 9;
|
|
1413
|
-
*/
|
|
1414
|
-
customAttributes: { [key: string]: string } = {};
|
|
1415
|
-
|
|
1416
|
-
/**
|
|
1417
|
-
* @generated from field: string preferred_username = 10;
|
|
1418
|
-
*/
|
|
1419
|
-
preferredUsername = "";
|
|
1420
|
-
|
|
1421
|
-
/**
|
|
1422
|
-
* @generated from field: optional string picture = 11;
|
|
1423
|
-
*/
|
|
1424
|
-
picture?: string;
|
|
1425
|
-
|
|
1426
|
-
/**
|
|
1427
|
-
* @generated from field: optional string gender = 12;
|
|
1428
|
-
*/
|
|
1429
|
-
gender?: string;
|
|
1430
|
-
|
|
1431
|
-
/**
|
|
1432
|
-
* @generated from field: repeated string groups = 13;
|
|
1433
|
-
*/
|
|
1434
|
-
groups: string[] = [];
|
|
1435
|
-
|
|
1436
|
-
/**
|
|
1437
|
-
* @generated from field: string first_name = 21 [deprecated = true];
|
|
1438
|
-
* @deprecated
|
|
1439
|
-
*/
|
|
1440
|
-
firstName = "";
|
|
1441
|
-
|
|
1442
|
-
/**
|
|
1443
|
-
* @generated from field: string last_name = 22 [deprecated = true];
|
|
1444
|
-
* @deprecated
|
|
1445
|
-
*/
|
|
1446
|
-
lastName = "";
|
|
1447
|
-
|
|
1448
|
-
constructor(data?: PartialMessage<CreateUserProfile>) {
|
|
1449
|
-
super();
|
|
1450
|
-
proto3.util.initPartial(data, this);
|
|
1451
|
-
}
|
|
1452
|
-
|
|
1453
|
-
static readonly runtime: typeof proto3 = proto3;
|
|
1454
|
-
static readonly typeName = "scalekit.v1.users.CreateUserProfile";
|
|
1455
|
-
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
1456
|
-
{ no: 2, name: "given_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1457
|
-
{ no: 3, name: "family_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1458
|
-
{ no: 4, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1459
|
-
{ no: 5, name: "locale", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1460
|
-
{ no: 7, name: "phone_number", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1461
|
-
{ no: 8, name: "metadata", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} },
|
|
1462
|
-
{ no: 9, name: "custom_attributes", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} },
|
|
1463
|
-
{ no: 10, name: "preferred_username", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1464
|
-
{ no: 11, name: "picture", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1465
|
-
{ no: 12, name: "gender", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1466
|
-
{ no: 13, name: "groups", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
|
|
1467
|
-
{ no: 21, name: "first_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1468
|
-
{ no: 22, name: "last_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1469
|
-
]);
|
|
1470
|
-
|
|
1471
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CreateUserProfile {
|
|
1472
|
-
return new CreateUserProfile().fromBinary(bytes, options);
|
|
1473
|
-
}
|
|
1474
|
-
|
|
1475
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CreateUserProfile {
|
|
1476
|
-
return new CreateUserProfile().fromJson(jsonValue, options);
|
|
1477
|
-
}
|
|
1478
|
-
|
|
1479
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CreateUserProfile {
|
|
1480
|
-
return new CreateUserProfile().fromJsonString(jsonString, options);
|
|
1481
|
-
}
|
|
1482
|
-
|
|
1483
|
-
static equals(a: CreateUserProfile | PlainMessage<CreateUserProfile> | undefined, b: CreateUserProfile | PlainMessage<CreateUserProfile> | undefined): boolean {
|
|
1484
|
-
return proto3.util.equals(CreateUserProfile, a, b);
|
|
1485
|
-
}
|
|
1486
|
-
}
|
|
1487
|
-
|
|
1488
|
-
/**
|
|
1489
|
-
* @generated from message scalekit.v1.users.UpdateUserProfile
|
|
1490
|
-
*/
|
|
1491
|
-
export class UpdateUserProfile extends Message<UpdateUserProfile> {
|
|
1492
|
-
/**
|
|
1493
|
-
* @generated from field: optional string given_name = 2;
|
|
1494
|
-
*/
|
|
1495
|
-
givenName?: string;
|
|
1496
|
-
|
|
1497
|
-
/**
|
|
1498
|
-
* @generated from field: optional string family_name = 3;
|
|
1499
|
-
*/
|
|
1500
|
-
familyName?: string;
|
|
1501
|
-
|
|
1502
|
-
/**
|
|
1503
|
-
* @generated from field: optional string name = 4;
|
|
1504
|
-
*/
|
|
1505
|
-
name?: string;
|
|
1506
|
-
|
|
1507
|
-
/**
|
|
1508
|
-
* @generated from field: optional string locale = 5;
|
|
1509
|
-
*/
|
|
1510
|
-
locale?: string;
|
|
1511
|
-
|
|
1512
|
-
/**
|
|
1513
|
-
* @generated from field: optional string phone_number = 7;
|
|
1514
|
-
*/
|
|
1515
|
-
phoneNumber?: string;
|
|
1516
|
-
|
|
1517
|
-
/**
|
|
1518
|
-
* @generated from field: map<string, string> metadata = 8;
|
|
1519
|
-
*/
|
|
1520
|
-
metadata: { [key: string]: string } = {};
|
|
1521
|
-
|
|
1522
|
-
/**
|
|
1523
|
-
* @generated from field: map<string, string> custom_attributes = 9;
|
|
1524
|
-
*/
|
|
1525
|
-
customAttributes: { [key: string]: string } = {};
|
|
1526
|
-
|
|
1527
|
-
/**
|
|
1528
|
-
* @generated from field: optional string first_name = 21 [deprecated = true];
|
|
1529
|
-
* @deprecated
|
|
1530
|
-
*/
|
|
1531
|
-
firstName?: string;
|
|
1532
|
-
|
|
1533
|
-
/**
|
|
1534
|
-
* @generated from field: optional string last_name = 22 [deprecated = true];
|
|
1535
|
-
* @deprecated
|
|
1536
|
-
*/
|
|
1537
|
-
lastName?: string;
|
|
1538
|
-
|
|
1539
|
-
/**
|
|
1540
|
-
* @generated from field: optional string preferred_username = 10;
|
|
1541
|
-
*/
|
|
1542
|
-
preferredUsername?: string;
|
|
1543
|
-
|
|
1544
|
-
/**
|
|
1545
|
-
* @generated from field: optional string picture = 11;
|
|
1546
|
-
*/
|
|
1547
|
-
picture?: string;
|
|
1548
|
-
|
|
1549
|
-
/**
|
|
1550
|
-
* @generated from field: optional string gender = 12;
|
|
1551
|
-
*/
|
|
1552
|
-
gender?: string;
|
|
1553
|
-
|
|
1554
|
-
/**
|
|
1555
|
-
* @generated from field: repeated string groups = 13;
|
|
1556
|
-
*/
|
|
1557
|
-
groups: string[] = [];
|
|
1558
|
-
|
|
1559
|
-
constructor(data?: PartialMessage<UpdateUserProfile>) {
|
|
1560
|
-
super();
|
|
1561
|
-
proto3.util.initPartial(data, this);
|
|
1562
|
-
}
|
|
1563
|
-
|
|
1564
|
-
static readonly runtime: typeof proto3 = proto3;
|
|
1565
|
-
static readonly typeName = "scalekit.v1.users.UpdateUserProfile";
|
|
1566
|
-
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
1567
|
-
{ no: 2, name: "given_name", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1568
|
-
{ no: 3, name: "family_name", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1569
|
-
{ no: 4, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1570
|
-
{ no: 5, name: "locale", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1571
|
-
{ no: 7, name: "phone_number", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1572
|
-
{ no: 8, name: "metadata", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} },
|
|
1573
|
-
{ no: 9, name: "custom_attributes", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} },
|
|
1574
|
-
{ no: 21, name: "first_name", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1575
|
-
{ no: 22, name: "last_name", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1576
|
-
{ no: 10, name: "preferred_username", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1577
|
-
{ no: 11, name: "picture", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1578
|
-
{ no: 12, name: "gender", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1579
|
-
{ no: 13, name: "groups", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
|
|
1580
|
-
]);
|
|
1581
|
-
|
|
1582
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UpdateUserProfile {
|
|
1583
|
-
return new UpdateUserProfile().fromBinary(bytes, options);
|
|
1584
|
-
}
|
|
1585
|
-
|
|
1586
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UpdateUserProfile {
|
|
1587
|
-
return new UpdateUserProfile().fromJson(jsonValue, options);
|
|
1588
|
-
}
|
|
1589
|
-
|
|
1590
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UpdateUserProfile {
|
|
1591
|
-
return new UpdateUserProfile().fromJsonString(jsonString, options);
|
|
1592
|
-
}
|
|
1593
|
-
|
|
1594
|
-
static equals(a: UpdateUserProfile | PlainMessage<UpdateUserProfile> | undefined, b: UpdateUserProfile | PlainMessage<UpdateUserProfile> | undefined): boolean {
|
|
1595
|
-
return proto3.util.equals(UpdateUserProfile, a, b);
|
|
1596
|
-
}
|
|
1597
|
-
}
|
|
1598
|
-
|
|
1599
|
-
/**
|
|
1600
|
-
* @generated from message scalekit.v1.users.Invite
|
|
1601
|
-
*/
|
|
1602
|
-
export class Invite extends Message<Invite> {
|
|
1603
|
-
/**
|
|
1604
|
-
* @generated from field: string organization_id = 1;
|
|
1605
|
-
*/
|
|
1606
|
-
organizationId = "";
|
|
1607
|
-
|
|
1608
|
-
/**
|
|
1609
|
-
* @generated from field: string user_id = 2;
|
|
1610
|
-
*/
|
|
1611
|
-
userId = "";
|
|
1612
|
-
|
|
1613
|
-
/**
|
|
1614
|
-
* @generated from field: optional string inviter_email = 3;
|
|
1615
|
-
*/
|
|
1616
|
-
inviterEmail?: string;
|
|
1617
|
-
|
|
1618
|
-
/**
|
|
1619
|
-
* @generated from field: string status = 4;
|
|
1620
|
-
*/
|
|
1621
|
-
status = "";
|
|
1622
|
-
|
|
1623
|
-
/**
|
|
1624
|
-
* @generated from field: google.protobuf.Timestamp created_at = 5;
|
|
1625
|
-
*/
|
|
1626
|
-
createdAt?: Timestamp;
|
|
1627
|
-
|
|
1628
|
-
/**
|
|
1629
|
-
* @generated from field: google.protobuf.Timestamp expires_at = 6;
|
|
1630
|
-
*/
|
|
1631
|
-
expiresAt?: Timestamp;
|
|
1632
|
-
|
|
1633
|
-
/**
|
|
1634
|
-
* @generated from field: google.protobuf.Timestamp resent_at = 7;
|
|
1635
|
-
*/
|
|
1636
|
-
resentAt?: Timestamp;
|
|
1637
|
-
|
|
1638
|
-
/**
|
|
1639
|
-
* @generated from field: int32 resent_count = 8;
|
|
1640
|
-
*/
|
|
1641
|
-
resentCount = 0;
|
|
1642
|
-
|
|
1643
|
-
constructor(data?: PartialMessage<Invite>) {
|
|
1644
|
-
super();
|
|
1645
|
-
proto3.util.initPartial(data, this);
|
|
1646
|
-
}
|
|
1647
|
-
|
|
1648
|
-
static readonly runtime: typeof proto3 = proto3;
|
|
1649
|
-
static readonly typeName = "scalekit.v1.users.Invite";
|
|
1650
|
-
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
1651
|
-
{ no: 1, name: "organization_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1652
|
-
{ no: 2, name: "user_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1653
|
-
{ no: 3, name: "inviter_email", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1654
|
-
{ no: 4, name: "status", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1655
|
-
{ no: 5, name: "created_at", kind: "message", T: Timestamp },
|
|
1656
|
-
{ no: 6, name: "expires_at", kind: "message", T: Timestamp },
|
|
1657
|
-
{ no: 7, name: "resent_at", kind: "message", T: Timestamp },
|
|
1658
|
-
{ no: 8, name: "resent_count", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
1659
|
-
]);
|
|
1660
|
-
|
|
1661
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Invite {
|
|
1662
|
-
return new Invite().fromBinary(bytes, options);
|
|
1663
|
-
}
|
|
1664
|
-
|
|
1665
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Invite {
|
|
1666
|
-
return new Invite().fromJson(jsonValue, options);
|
|
1667
|
-
}
|
|
1668
|
-
|
|
1669
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Invite {
|
|
1670
|
-
return new Invite().fromJsonString(jsonString, options);
|
|
1671
|
-
}
|
|
1672
|
-
|
|
1673
|
-
static equals(a: Invite | PlainMessage<Invite> | undefined, b: Invite | PlainMessage<Invite> | undefined): boolean {
|
|
1674
|
-
return proto3.util.equals(Invite, a, b);
|
|
1675
|
-
}
|
|
1676
|
-
}
|
|
1677
|
-
|
|
1678
|
-
/**
|
|
1679
|
-
* @generated from message scalekit.v1.users.ResendInviteRequest
|
|
1680
|
-
*/
|
|
1681
|
-
export class ResendInviteRequest extends Message<ResendInviteRequest> {
|
|
1682
|
-
/**
|
|
1683
|
-
* @generated from field: string organization_id = 1;
|
|
1684
|
-
*/
|
|
1685
|
-
organizationId = "";
|
|
1686
|
-
|
|
1687
|
-
/**
|
|
1688
|
-
* @generated from field: string id = 2;
|
|
1689
|
-
*/
|
|
1690
|
-
id = "";
|
|
1691
|
-
|
|
1692
|
-
constructor(data?: PartialMessage<ResendInviteRequest>) {
|
|
1693
|
-
super();
|
|
1694
|
-
proto3.util.initPartial(data, this);
|
|
1695
|
-
}
|
|
1696
|
-
|
|
1697
|
-
static readonly runtime: typeof proto3 = proto3;
|
|
1698
|
-
static readonly typeName = "scalekit.v1.users.ResendInviteRequest";
|
|
1699
|
-
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
1700
|
-
{ no: 1, name: "organization_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1701
|
-
{ no: 2, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1702
|
-
]);
|
|
1703
|
-
|
|
1704
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ResendInviteRequest {
|
|
1705
|
-
return new ResendInviteRequest().fromBinary(bytes, options);
|
|
1706
|
-
}
|
|
1707
|
-
|
|
1708
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ResendInviteRequest {
|
|
1709
|
-
return new ResendInviteRequest().fromJson(jsonValue, options);
|
|
1710
|
-
}
|
|
1711
|
-
|
|
1712
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ResendInviteRequest {
|
|
1713
|
-
return new ResendInviteRequest().fromJsonString(jsonString, options);
|
|
1714
|
-
}
|
|
1715
|
-
|
|
1716
|
-
static equals(a: ResendInviteRequest | PlainMessage<ResendInviteRequest> | undefined, b: ResendInviteRequest | PlainMessage<ResendInviteRequest> | undefined): boolean {
|
|
1717
|
-
return proto3.util.equals(ResendInviteRequest, a, b);
|
|
1718
|
-
}
|
|
1719
|
-
}
|
|
1720
|
-
|
|
1721
|
-
/**
|
|
1722
|
-
* @generated from message scalekit.v1.users.ResendInviteResponse
|
|
1723
|
-
*/
|
|
1724
|
-
export class ResendInviteResponse extends Message<ResendInviteResponse> {
|
|
1725
|
-
/**
|
|
1726
|
-
* @generated from field: scalekit.v1.users.Invite invite = 1;
|
|
1727
|
-
*/
|
|
1728
|
-
invite?: Invite;
|
|
1729
|
-
|
|
1730
|
-
constructor(data?: PartialMessage<ResendInviteResponse>) {
|
|
1731
|
-
super();
|
|
1732
|
-
proto3.util.initPartial(data, this);
|
|
1733
|
-
}
|
|
1734
|
-
|
|
1735
|
-
static readonly runtime: typeof proto3 = proto3;
|
|
1736
|
-
static readonly typeName = "scalekit.v1.users.ResendInviteResponse";
|
|
1737
|
-
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
1738
|
-
{ no: 1, name: "invite", kind: "message", T: Invite },
|
|
1739
|
-
]);
|
|
1740
|
-
|
|
1741
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ResendInviteResponse {
|
|
1742
|
-
return new ResendInviteResponse().fromBinary(bytes, options);
|
|
1743
|
-
}
|
|
1744
|
-
|
|
1745
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ResendInviteResponse {
|
|
1746
|
-
return new ResendInviteResponse().fromJson(jsonValue, options);
|
|
1747
|
-
}
|
|
1748
|
-
|
|
1749
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ResendInviteResponse {
|
|
1750
|
-
return new ResendInviteResponse().fromJsonString(jsonString, options);
|
|
1751
|
-
}
|
|
1752
|
-
|
|
1753
|
-
static equals(a: ResendInviteResponse | PlainMessage<ResendInviteResponse> | undefined, b: ResendInviteResponse | PlainMessage<ResendInviteResponse> | undefined): boolean {
|
|
1754
|
-
return proto3.util.equals(ResendInviteResponse, a, b);
|
|
1755
|
-
}
|
|
1756
|
-
}
|
|
1757
|
-
|
|
1758
|
-
/**
|
|
1759
|
-
* @generated from message scalekit.v1.users.ListUserRolesRequest
|
|
1760
|
-
*/
|
|
1761
|
-
export class ListUserRolesRequest extends Message<ListUserRolesRequest> {
|
|
1762
|
-
/**
|
|
1763
|
-
* @generated from field: string organization_id = 1;
|
|
1764
|
-
*/
|
|
1765
|
-
organizationId = "";
|
|
1766
|
-
|
|
1767
|
-
/**
|
|
1768
|
-
* @generated from field: string user_id = 2;
|
|
1769
|
-
*/
|
|
1770
|
-
userId = "";
|
|
1771
|
-
|
|
1772
|
-
constructor(data?: PartialMessage<ListUserRolesRequest>) {
|
|
1773
|
-
super();
|
|
1774
|
-
proto3.util.initPartial(data, this);
|
|
1775
|
-
}
|
|
1776
|
-
|
|
1777
|
-
static readonly runtime: typeof proto3 = proto3;
|
|
1778
|
-
static readonly typeName = "scalekit.v1.users.ListUserRolesRequest";
|
|
1779
|
-
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
1780
|
-
{ no: 1, name: "organization_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1781
|
-
{ no: 2, name: "user_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1782
|
-
]);
|
|
1783
|
-
|
|
1784
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListUserRolesRequest {
|
|
1785
|
-
return new ListUserRolesRequest().fromBinary(bytes, options);
|
|
1786
|
-
}
|
|
1787
|
-
|
|
1788
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListUserRolesRequest {
|
|
1789
|
-
return new ListUserRolesRequest().fromJson(jsonValue, options);
|
|
1790
|
-
}
|
|
1791
|
-
|
|
1792
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListUserRolesRequest {
|
|
1793
|
-
return new ListUserRolesRequest().fromJsonString(jsonString, options);
|
|
1794
|
-
}
|
|
1795
|
-
|
|
1796
|
-
static equals(a: ListUserRolesRequest | PlainMessage<ListUserRolesRequest> | undefined, b: ListUserRolesRequest | PlainMessage<ListUserRolesRequest> | undefined): boolean {
|
|
1797
|
-
return proto3.util.equals(ListUserRolesRequest, a, b);
|
|
1798
|
-
}
|
|
1799
|
-
}
|
|
1800
|
-
|
|
1801
|
-
/**
|
|
1802
|
-
* @generated from message scalekit.v1.users.ListUserRolesResponse
|
|
1803
|
-
*/
|
|
1804
|
-
export class ListUserRolesResponse extends Message<ListUserRolesResponse> {
|
|
1805
|
-
/**
|
|
1806
|
-
* @generated from field: repeated scalekit.v1.commons.Role roles = 1;
|
|
1807
|
-
*/
|
|
1808
|
-
roles: Role[] = [];
|
|
1809
|
-
|
|
1810
|
-
constructor(data?: PartialMessage<ListUserRolesResponse>) {
|
|
1811
|
-
super();
|
|
1812
|
-
proto3.util.initPartial(data, this);
|
|
1813
|
-
}
|
|
1814
|
-
|
|
1815
|
-
static readonly runtime: typeof proto3 = proto3;
|
|
1816
|
-
static readonly typeName = "scalekit.v1.users.ListUserRolesResponse";
|
|
1817
|
-
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
1818
|
-
{ no: 1, name: "roles", kind: "message", T: Role, repeated: true },
|
|
1819
|
-
]);
|
|
1820
|
-
|
|
1821
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListUserRolesResponse {
|
|
1822
|
-
return new ListUserRolesResponse().fromBinary(bytes, options);
|
|
1823
|
-
}
|
|
1824
|
-
|
|
1825
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListUserRolesResponse {
|
|
1826
|
-
return new ListUserRolesResponse().fromJson(jsonValue, options);
|
|
1827
|
-
}
|
|
1828
|
-
|
|
1829
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListUserRolesResponse {
|
|
1830
|
-
return new ListUserRolesResponse().fromJsonString(jsonString, options);
|
|
1831
|
-
}
|
|
1832
|
-
|
|
1833
|
-
static equals(a: ListUserRolesResponse | PlainMessage<ListUserRolesResponse> | undefined, b: ListUserRolesResponse | PlainMessage<ListUserRolesResponse> | undefined): boolean {
|
|
1834
|
-
return proto3.util.equals(ListUserRolesResponse, a, b);
|
|
1835
|
-
}
|
|
1836
|
-
}
|
|
1837
|
-
|
|
1838
|
-
/**
|
|
1839
|
-
* @generated from message scalekit.v1.users.AssignUserRolesRequest
|
|
1840
|
-
*/
|
|
1841
|
-
export class AssignUserRolesRequest extends Message<AssignUserRolesRequest> {
|
|
1842
|
-
/**
|
|
1843
|
-
* @generated from field: string organization_id = 1;
|
|
1844
|
-
*/
|
|
1845
|
-
organizationId = "";
|
|
1846
|
-
|
|
1847
|
-
/**
|
|
1848
|
-
* @generated from field: string user_id = 2;
|
|
1849
|
-
*/
|
|
1850
|
-
userId = "";
|
|
1851
|
-
|
|
1852
|
-
/**
|
|
1853
|
-
* @generated from field: repeated scalekit.v1.users.AssignRoleRequest roles = 3;
|
|
1854
|
-
*/
|
|
1855
|
-
roles: AssignRoleRequest[] = [];
|
|
1856
|
-
|
|
1857
|
-
constructor(data?: PartialMessage<AssignUserRolesRequest>) {
|
|
1858
|
-
super();
|
|
1859
|
-
proto3.util.initPartial(data, this);
|
|
1860
|
-
}
|
|
1861
|
-
|
|
1862
|
-
static readonly runtime: typeof proto3 = proto3;
|
|
1863
|
-
static readonly typeName = "scalekit.v1.users.AssignUserRolesRequest";
|
|
1864
|
-
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
1865
|
-
{ no: 1, name: "organization_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1866
|
-
{ no: 2, name: "user_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1867
|
-
{ no: 3, name: "roles", kind: "message", T: AssignRoleRequest, repeated: true },
|
|
1868
|
-
]);
|
|
1869
|
-
|
|
1870
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AssignUserRolesRequest {
|
|
1871
|
-
return new AssignUserRolesRequest().fromBinary(bytes, options);
|
|
1872
|
-
}
|
|
1873
|
-
|
|
1874
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AssignUserRolesRequest {
|
|
1875
|
-
return new AssignUserRolesRequest().fromJson(jsonValue, options);
|
|
1876
|
-
}
|
|
1877
|
-
|
|
1878
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AssignUserRolesRequest {
|
|
1879
|
-
return new AssignUserRolesRequest().fromJsonString(jsonString, options);
|
|
1880
|
-
}
|
|
1881
|
-
|
|
1882
|
-
static equals(a: AssignUserRolesRequest | PlainMessage<AssignUserRolesRequest> | undefined, b: AssignUserRolesRequest | PlainMessage<AssignUserRolesRequest> | undefined): boolean {
|
|
1883
|
-
return proto3.util.equals(AssignUserRolesRequest, a, b);
|
|
1884
|
-
}
|
|
1885
|
-
}
|
|
1886
|
-
|
|
1887
|
-
/**
|
|
1888
|
-
* @generated from message scalekit.v1.users.AssignRoleRequest
|
|
1889
|
-
*/
|
|
1890
|
-
export class AssignRoleRequest extends Message<AssignRoleRequest> {
|
|
1891
|
-
/**
|
|
1892
|
-
* @generated from field: string id = 1 [deprecated = true];
|
|
1893
|
-
* @deprecated
|
|
1894
|
-
*/
|
|
1895
|
-
id = "";
|
|
1896
|
-
|
|
1897
|
-
/**
|
|
1898
|
-
* @generated from field: string role_name = 2;
|
|
1899
|
-
*/
|
|
1900
|
-
roleName = "";
|
|
1901
|
-
|
|
1902
|
-
constructor(data?: PartialMessage<AssignRoleRequest>) {
|
|
1903
|
-
super();
|
|
1904
|
-
proto3.util.initPartial(data, this);
|
|
1905
|
-
}
|
|
1906
|
-
|
|
1907
|
-
static readonly runtime: typeof proto3 = proto3;
|
|
1908
|
-
static readonly typeName = "scalekit.v1.users.AssignRoleRequest";
|
|
1909
|
-
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
1910
|
-
{ no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1911
|
-
{ no: 2, name: "role_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1912
|
-
]);
|
|
1913
|
-
|
|
1914
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AssignRoleRequest {
|
|
1915
|
-
return new AssignRoleRequest().fromBinary(bytes, options);
|
|
1916
|
-
}
|
|
1917
|
-
|
|
1918
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AssignRoleRequest {
|
|
1919
|
-
return new AssignRoleRequest().fromJson(jsonValue, options);
|
|
1920
|
-
}
|
|
1921
|
-
|
|
1922
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AssignRoleRequest {
|
|
1923
|
-
return new AssignRoleRequest().fromJsonString(jsonString, options);
|
|
1924
|
-
}
|
|
1925
|
-
|
|
1926
|
-
static equals(a: AssignRoleRequest | PlainMessage<AssignRoleRequest> | undefined, b: AssignRoleRequest | PlainMessage<AssignRoleRequest> | undefined): boolean {
|
|
1927
|
-
return proto3.util.equals(AssignRoleRequest, a, b);
|
|
1928
|
-
}
|
|
1929
|
-
}
|
|
1930
|
-
|
|
1931
|
-
/**
|
|
1932
|
-
* @generated from message scalekit.v1.users.AssignUserRolesResponse
|
|
1933
|
-
*/
|
|
1934
|
-
export class AssignUserRolesResponse extends Message<AssignUserRolesResponse> {
|
|
1935
|
-
/**
|
|
1936
|
-
* @generated from field: repeated scalekit.v1.commons.Role roles = 1;
|
|
1937
|
-
*/
|
|
1938
|
-
roles: Role[] = [];
|
|
1939
|
-
|
|
1940
|
-
constructor(data?: PartialMessage<AssignUserRolesResponse>) {
|
|
1941
|
-
super();
|
|
1942
|
-
proto3.util.initPartial(data, this);
|
|
1943
|
-
}
|
|
1944
|
-
|
|
1945
|
-
static readonly runtime: typeof proto3 = proto3;
|
|
1946
|
-
static readonly typeName = "scalekit.v1.users.AssignUserRolesResponse";
|
|
1947
|
-
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
1948
|
-
{ no: 1, name: "roles", kind: "message", T: Role, repeated: true },
|
|
1949
|
-
]);
|
|
1950
|
-
|
|
1951
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AssignUserRolesResponse {
|
|
1952
|
-
return new AssignUserRolesResponse().fromBinary(bytes, options);
|
|
1953
|
-
}
|
|
1954
|
-
|
|
1955
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AssignUserRolesResponse {
|
|
1956
|
-
return new AssignUserRolesResponse().fromJson(jsonValue, options);
|
|
1957
|
-
}
|
|
1958
|
-
|
|
1959
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AssignUserRolesResponse {
|
|
1960
|
-
return new AssignUserRolesResponse().fromJsonString(jsonString, options);
|
|
1961
|
-
}
|
|
1962
|
-
|
|
1963
|
-
static equals(a: AssignUserRolesResponse | PlainMessage<AssignUserRolesResponse> | undefined, b: AssignUserRolesResponse | PlainMessage<AssignUserRolesResponse> | undefined): boolean {
|
|
1964
|
-
return proto3.util.equals(AssignUserRolesResponse, a, b);
|
|
1965
|
-
}
|
|
1966
|
-
}
|
|
1967
|
-
|
|
1968
|
-
/**
|
|
1969
|
-
* @generated from message scalekit.v1.users.RemoveUserRoleRequest
|
|
1970
|
-
*/
|
|
1971
|
-
export class RemoveUserRoleRequest extends Message<RemoveUserRoleRequest> {
|
|
1972
|
-
/**
|
|
1973
|
-
* @generated from field: string organization_id = 1;
|
|
1974
|
-
*/
|
|
1975
|
-
organizationId = "";
|
|
1976
|
-
|
|
1977
|
-
/**
|
|
1978
|
-
* @generated from field: string user_id = 2;
|
|
1979
|
-
*/
|
|
1980
|
-
userId = "";
|
|
1981
|
-
|
|
1982
|
-
/**
|
|
1983
|
-
* @generated from field: string role_name = 3;
|
|
1984
|
-
*/
|
|
1985
|
-
roleName = "";
|
|
1986
|
-
|
|
1987
|
-
constructor(data?: PartialMessage<RemoveUserRoleRequest>) {
|
|
1988
|
-
super();
|
|
1989
|
-
proto3.util.initPartial(data, this);
|
|
1990
|
-
}
|
|
1991
|
-
|
|
1992
|
-
static readonly runtime: typeof proto3 = proto3;
|
|
1993
|
-
static readonly typeName = "scalekit.v1.users.RemoveUserRoleRequest";
|
|
1994
|
-
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
1995
|
-
{ no: 1, name: "organization_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1996
|
-
{ no: 2, name: "user_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1997
|
-
{ no: 3, name: "role_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1998
|
-
]);
|
|
1999
|
-
|
|
2000
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RemoveUserRoleRequest {
|
|
2001
|
-
return new RemoveUserRoleRequest().fromBinary(bytes, options);
|
|
2002
|
-
}
|
|
2003
|
-
|
|
2004
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RemoveUserRoleRequest {
|
|
2005
|
-
return new RemoveUserRoleRequest().fromJson(jsonValue, options);
|
|
2006
|
-
}
|
|
2007
|
-
|
|
2008
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RemoveUserRoleRequest {
|
|
2009
|
-
return new RemoveUserRoleRequest().fromJsonString(jsonString, options);
|
|
2010
|
-
}
|
|
2011
|
-
|
|
2012
|
-
static equals(a: RemoveUserRoleRequest | PlainMessage<RemoveUserRoleRequest> | undefined, b: RemoveUserRoleRequest | PlainMessage<RemoveUserRoleRequest> | undefined): boolean {
|
|
2013
|
-
return proto3.util.equals(RemoveUserRoleRequest, a, b);
|
|
2014
|
-
}
|
|
2015
|
-
}
|
|
2016
|
-
|
|
2017
|
-
/**
|
|
2018
|
-
* @generated from message scalekit.v1.users.ListUserPermissionsRequest
|
|
2019
|
-
*/
|
|
2020
|
-
export class ListUserPermissionsRequest extends Message<ListUserPermissionsRequest> {
|
|
2021
|
-
/**
|
|
2022
|
-
* @generated from field: string organization_id = 1;
|
|
2023
|
-
*/
|
|
2024
|
-
organizationId = "";
|
|
2025
|
-
|
|
2026
|
-
/**
|
|
2027
|
-
* @generated from field: string user_id = 2;
|
|
2028
|
-
*/
|
|
2029
|
-
userId = "";
|
|
2030
|
-
|
|
2031
|
-
constructor(data?: PartialMessage<ListUserPermissionsRequest>) {
|
|
2032
|
-
super();
|
|
2033
|
-
proto3.util.initPartial(data, this);
|
|
2034
|
-
}
|
|
2035
|
-
|
|
2036
|
-
static readonly runtime: typeof proto3 = proto3;
|
|
2037
|
-
static readonly typeName = "scalekit.v1.users.ListUserPermissionsRequest";
|
|
2038
|
-
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
2039
|
-
{ no: 1, name: "organization_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
2040
|
-
{ no: 2, name: "user_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
2041
|
-
]);
|
|
2042
|
-
|
|
2043
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListUserPermissionsRequest {
|
|
2044
|
-
return new ListUserPermissionsRequest().fromBinary(bytes, options);
|
|
2045
|
-
}
|
|
2046
|
-
|
|
2047
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListUserPermissionsRequest {
|
|
2048
|
-
return new ListUserPermissionsRequest().fromJson(jsonValue, options);
|
|
2049
|
-
}
|
|
2050
|
-
|
|
2051
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListUserPermissionsRequest {
|
|
2052
|
-
return new ListUserPermissionsRequest().fromJsonString(jsonString, options);
|
|
2053
|
-
}
|
|
2054
|
-
|
|
2055
|
-
static equals(a: ListUserPermissionsRequest | PlainMessage<ListUserPermissionsRequest> | undefined, b: ListUserPermissionsRequest | PlainMessage<ListUserPermissionsRequest> | undefined): boolean {
|
|
2056
|
-
return proto3.util.equals(ListUserPermissionsRequest, a, b);
|
|
2057
|
-
}
|
|
2058
|
-
}
|
|
2059
|
-
|
|
2060
|
-
/**
|
|
2061
|
-
* @generated from message scalekit.v1.users.Permission
|
|
2062
|
-
*/
|
|
2063
|
-
export class Permission extends Message<Permission> {
|
|
2064
|
-
/**
|
|
2065
|
-
* @generated from field: string id = 1;
|
|
2066
|
-
*/
|
|
2067
|
-
id = "";
|
|
2068
|
-
|
|
2069
|
-
/**
|
|
2070
|
-
* @generated from field: string name = 2;
|
|
2071
|
-
*/
|
|
2072
|
-
name = "";
|
|
2073
|
-
|
|
2074
|
-
/**
|
|
2075
|
-
* @generated from field: string description = 3;
|
|
2076
|
-
*/
|
|
2077
|
-
description = "";
|
|
2078
|
-
|
|
2079
|
-
/**
|
|
2080
|
-
* @generated from field: repeated string tags = 4;
|
|
2081
|
-
*/
|
|
2082
|
-
tags: string[] = [];
|
|
2083
|
-
|
|
2084
|
-
constructor(data?: PartialMessage<Permission>) {
|
|
2085
|
-
super();
|
|
2086
|
-
proto3.util.initPartial(data, this);
|
|
2087
|
-
}
|
|
2088
|
-
|
|
2089
|
-
static readonly runtime: typeof proto3 = proto3;
|
|
2090
|
-
static readonly typeName = "scalekit.v1.users.Permission";
|
|
2091
|
-
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
2092
|
-
{ no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
2093
|
-
{ no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
2094
|
-
{ no: 3, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
2095
|
-
{ no: 4, name: "tags", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
|
|
2096
|
-
]);
|
|
2097
|
-
|
|
2098
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Permission {
|
|
2099
|
-
return new Permission().fromBinary(bytes, options);
|
|
2100
|
-
}
|
|
2101
|
-
|
|
2102
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Permission {
|
|
2103
|
-
return new Permission().fromJson(jsonValue, options);
|
|
2104
|
-
}
|
|
2105
|
-
|
|
2106
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Permission {
|
|
2107
|
-
return new Permission().fromJsonString(jsonString, options);
|
|
2108
|
-
}
|
|
2109
|
-
|
|
2110
|
-
static equals(a: Permission | PlainMessage<Permission> | undefined, b: Permission | PlainMessage<Permission> | undefined): boolean {
|
|
2111
|
-
return proto3.util.equals(Permission, a, b);
|
|
2112
|
-
}
|
|
2113
|
-
}
|
|
2114
|
-
|
|
2115
|
-
/**
|
|
2116
|
-
* @generated from message scalekit.v1.users.ListUserPermissionsResponse
|
|
2117
|
-
*/
|
|
2118
|
-
export class ListUserPermissionsResponse extends Message<ListUserPermissionsResponse> {
|
|
2119
|
-
/**
|
|
2120
|
-
* @generated from field: repeated scalekit.v1.users.Permission permissions = 1;
|
|
2121
|
-
*/
|
|
2122
|
-
permissions: Permission[] = [];
|
|
2123
|
-
|
|
2124
|
-
constructor(data?: PartialMessage<ListUserPermissionsResponse>) {
|
|
2125
|
-
super();
|
|
2126
|
-
proto3.util.initPartial(data, this);
|
|
2127
|
-
}
|
|
2128
|
-
|
|
2129
|
-
static readonly runtime: typeof proto3 = proto3;
|
|
2130
|
-
static readonly typeName = "scalekit.v1.users.ListUserPermissionsResponse";
|
|
2131
|
-
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
2132
|
-
{ no: 1, name: "permissions", kind: "message", T: Permission, repeated: true },
|
|
2133
|
-
]);
|
|
2134
|
-
|
|
2135
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListUserPermissionsResponse {
|
|
2136
|
-
return new ListUserPermissionsResponse().fromBinary(bytes, options);
|
|
2137
|
-
}
|
|
2138
|
-
|
|
2139
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListUserPermissionsResponse {
|
|
2140
|
-
return new ListUserPermissionsResponse().fromJson(jsonValue, options);
|
|
2141
|
-
}
|
|
2142
|
-
|
|
2143
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListUserPermissionsResponse {
|
|
2144
|
-
return new ListUserPermissionsResponse().fromJsonString(jsonString, options);
|
|
2145
|
-
}
|
|
2146
|
-
|
|
2147
|
-
static equals(a: ListUserPermissionsResponse | PlainMessage<ListUserPermissionsResponse> | undefined, b: ListUserPermissionsResponse | PlainMessage<ListUserPermissionsResponse> | undefined): boolean {
|
|
2148
|
-
return proto3.util.equals(ListUserPermissionsResponse, a, b);
|
|
2149
|
-
}
|
|
2150
|
-
}
|
|
2151
|
-
|