@fivenet-app/gen 2025.5.3 → 2026.3.0
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 +1 -1
- package/buf/validate/validate.ts +11301 -0
- package/clients.ts +193 -154
- package/codegen/dbscanner/dbscanner.ts +91 -0
- package/codegen/perms/perms.ts +287 -0
- package/codegen/sanitizer/sanitizer.ts +113 -0
- package/google/protobuf/any.ts +4 -3
- package/google/protobuf/descriptor.ts +393 -239
- package/google/protobuf/duration.ts +4 -3
- package/google/protobuf/struct.ts +485 -0
- package/google/protobuf/timestamp.ts +4 -3
- package/package.json +3 -3
- package/perms.ts +217 -160
- package/resources/accounts/accounts.ts +115 -47
- package/resources/accounts/{oauth2.ts → oauth2/oauth2.ts} +33 -32
- package/resources/audit/audit.ts +172 -53
- package/resources/calendar/{access.ts → access/access.ts} +72 -71
- package/resources/calendar/calendar.ts +79 -543
- package/resources/calendar/entries/entries.ts +474 -0
- package/resources/centrum/access/access.ts +345 -0
- package/resources/centrum/dispatchers/dispatchers.ts +149 -0
- package/resources/centrum/{dispatches.ts → dispatches/dispatches.ts} +267 -164
- package/resources/centrum/joblist.ts +136 -0
- package/resources/centrum/settings/settings.ts +657 -0
- package/resources/centrum/{units_access.ts → units/access/access.ts} +78 -79
- package/resources/centrum/{units.ts → units/units.ts} +230 -130
- package/resources/clientconfig/clientconfig.ts +1015 -0
- package/resources/collab/collab.ts +805 -0
- package/resources/common/content/content.ts +169 -63
- package/resources/common/content/diff_activity.ts +267 -0
- package/resources/common/database/database.ts +92 -35
- package/resources/common/error.ts +17 -16
- package/resources/common/i18n.ts +20 -24
- package/resources/common/id_mapping.ts +69 -0
- package/resources/common/tests/objects.ts +4 -3
- package/resources/{common/cron → cron}/cron.ts +77 -65
- package/resources/discord/discord.ts +209 -0
- package/resources/documents/{access.ts → access/access.ts} +75 -76
- package/resources/documents/{activity.ts → activity/activity.ts} +349 -124
- package/resources/documents/approval/approval.ts +945 -0
- package/resources/documents/{category.ts → category/category.ts} +25 -32
- package/resources/documents/{comment.ts → comment/comment.ts} +35 -34
- package/resources/documents/data/data.ts +303 -0
- package/resources/documents/documents.ts +374 -686
- package/resources/{common/uuid.ts → documents/forms/forms.ts} +22 -21
- package/resources/documents/pins/pins.ts +127 -0
- package/resources/documents/references/references.ts +187 -0
- package/resources/documents/relations/relations.ts +184 -0
- package/resources/documents/{requests.ts → requests/requests.ts} +45 -44
- package/resources/documents/stamps/stamp.ts +355 -0
- package/resources/documents/{templates.ts → templates/templates.ts} +524 -199
- package/resources/documents/workflow/workflow.ts +600 -0
- package/resources/file/file.ts +152 -0
- package/{services/settings → resources/file}/filestore.ts +179 -165
- package/resources/file/meta.ts +148 -0
- package/resources/{common/grpcws → grpcws}/grpcws.ts +66 -65
- package/resources/jobs/{activity.ts → colleagues/activity/activity.ts} +83 -86
- package/resources/jobs/{colleagues.ts → colleagues/colleagues.ts} +76 -80
- package/resources/jobs/{conduct.ts → conduct/conduct.ts} +86 -62
- package/resources/jobs/jobs.ts +14 -13
- package/resources/jobs/{labels.ts → labels/labels.ts} +36 -37
- package/resources/jobs/{job_props.ts → props/props.ts} +63 -65
- package/resources/jobs/{job_settings.ts → settings/settings.ts} +89 -96
- package/resources/jobs/{timeclock.ts → timeclock/timeclock.ts} +42 -41
- package/resources/laws/laws.ts +40 -49
- package/resources/livemap/coords.ts +81 -0
- package/resources/livemap/heatmap/heatmap.ts +93 -0
- package/resources/livemap/{livemap.ts → markers/marker_marker.ts} +68 -335
- package/resources/livemap/markers/user_marker.ts +377 -0
- package/resources/mailer/{access.ts → access/access.ts} +119 -118
- package/resources/mailer/{email.ts → emails/email.ts} +38 -41
- package/resources/mailer/{events.ts → events/events.ts} +44 -43
- package/resources/mailer/{message.ts → messages/message.ts} +69 -74
- package/resources/mailer/{settings.ts → settings/settings.ts} +23 -25
- package/resources/mailer/{template.ts → templates/template.ts} +37 -40
- package/resources/mailer/{thread.ts → threads/thread.ts} +93 -94
- package/resources/notifications/clientview/clientview.ts +239 -0
- package/resources/notifications/{events.ts → events/events.ts} +67 -130
- package/resources/notifications/notifications.ts +55 -60
- package/resources/permissions/{attributes.ts → attributes/attributes.ts} +94 -237
- package/resources/permissions/events/events.ts +149 -0
- package/resources/permissions/{permissions.ts → permissions/permissions.ts} +127 -47
- package/resources/qualifications/{access.ts → access/access.ts} +43 -42
- package/resources/qualifications/{exam.ts → exam/exam.ts} +419 -229
- package/resources/qualifications/qualifications.ts +327 -388
- package/resources/settings/banner.ts +14 -21
- package/resources/settings/config.ts +663 -79
- package/resources/settings/data.ts +90 -0
- package/resources/settings/perms.ts +151 -0
- package/resources/settings/status.ts +533 -0
- package/resources/stats/stats.ts +382 -2
- package/resources/sync/{activity.ts → activity/activity.ts} +126 -46
- package/resources/sync/data/data.ts +1001 -0
- package/resources/sync/data/v2/data.ts +220 -0
- package/resources/timestamp/timestamp.ts +3 -2
- package/resources/{centrum/user_unit.ts → tracker/mapping.ts} +44 -44
- package/resources/userinfo/userinfo.ts +442 -0
- package/resources/users/{activity.ts → activity/activity.ts} +182 -166
- package/resources/users/{labels.ts → labels/labels.ts} +27 -30
- package/resources/users/{licenses.ts → licenses/licenses.ts} +18 -17
- package/resources/users/{props.ts → props/props.ts} +109 -77
- package/resources/users/short/user.ts +184 -0
- package/resources/users/user.ts +528 -0
- package/resources/vehicles/activity/activity.ts +231 -0
- package/resources/vehicles/props/props.ts +125 -0
- package/resources/vehicles/vehicles.ts +43 -18
- package/resources/wiki/{access.ts → access/access.ts} +72 -71
- package/resources/wiki/{activity.ts → activity/activity.ts} +218 -102
- package/resources/wiki/page.ts +164 -93
- package/services/auth/auth.client.ts +45 -35
- package/services/auth/auth.ts +498 -288
- package/services/calendar/calendar.client.ts +32 -91
- package/services/calendar/calendar.ts +157 -134
- package/services/centrum/centrum.client.ts +97 -137
- package/services/centrum/centrum.ts +755 -352
- package/services/citizens/citizens.client.ts +70 -39
- package/services/citizens/citizens.ts +226 -112
- package/services/completor/completor.client.ts +16 -35
- package/services/completor/completor.ts +95 -54
- package/services/documents/approval.client.ts +188 -0
- package/services/documents/approval.ts +1776 -0
- package/services/documents/collab.client.ts +46 -0
- package/services/documents/collab.ts +13 -0
- package/services/documents/documents.client.ts +88 -217
- package/services/documents/documents.ts +579 -619
- package/services/documents/forms.client.ts +51 -0
- package/services/documents/forms.ts +232 -0
- package/services/documents/stamps.client.ts +77 -0
- package/services/documents/stamps.ts +481 -0
- package/services/documents/stats.client.ts +38 -0
- package/services/documents/stats.ts +245 -0
- package/services/filestore/filestore.client.ts +86 -0
- package/services/filestore/filestore.ts +262 -0
- package/services/jobs/conduct.client.ts +40 -28
- package/services/jobs/conduct.ts +183 -56
- package/services/jobs/jobs.client.ts +22 -61
- package/services/jobs/jobs.ts +138 -121
- package/services/jobs/stats.client.ts +38 -0
- package/services/jobs/stats.ts +207 -0
- package/services/jobs/timeclock.client.ts +8 -19
- package/services/jobs/timeclock.ts +76 -75
- package/services/livemap/livemap.client.ts +8 -19
- package/services/livemap/livemap.ts +297 -126
- package/services/mailer/mailer.client.ts +44 -127
- package/services/mailer/mailer.ts +266 -269
- package/services/notifications/notifications.client.ts +65 -0
- package/services/{notificator/notificator.ts → notifications/notifications.ts} +126 -83
- package/services/qualifications/qualifications.client.ts +46 -91
- package/services/qualifications/qualifications.ts +250 -209
- package/services/settings/accounts.client.ts +31 -33
- package/services/settings/accounts.ts +251 -67
- package/services/settings/config.client.ts +6 -13
- package/services/settings/config.ts +8 -7
- package/services/settings/cron.client.ts +4 -7
- package/services/settings/cron.ts +7 -6
- package/services/settings/laws.client.ts +10 -25
- package/services/settings/laws.ts +30 -29
- package/services/settings/settings.client.ts +57 -103
- package/services/settings/settings.ts +237 -633
- package/services/settings/system.client.ts +103 -0
- package/services/settings/system.ts +718 -0
- package/services/stats/stats.client.ts +9 -8
- package/services/stats/stats.ts +27 -26
- package/services/sync/sync.client.ts +16 -15
- package/services/sync/sync.ts +174 -97
- package/services/sync/v2/sync.client.ts +331 -0
- package/services/sync/v2/sync.ts +1766 -0
- package/services/vehicles/vehicles.client.ts +17 -7
- package/services/vehicles/vehicles.ts +170 -25
- package/services/wiki/collab.client.ts +46 -0
- package/services/wiki/collab.ts +13 -0
- package/services/wiki/wiki.client.ts +28 -37
- package/services/wiki/wiki.ts +97 -67
- package/svcs.ts +174 -106
- package/resources/centrum/attributes.ts +0 -186
- package/resources/centrum/disponents.ts +0 -81
- package/resources/centrum/settings.ts +0 -307
- package/resources/documents/workflow.ts +0 -351
- package/resources/filestore/file.ts +0 -204
- package/resources/internet/access.ts +0 -358
- package/resources/internet/ads.ts +0 -257
- package/resources/internet/domain.ts +0 -328
- package/resources/internet/page.ts +0 -428
- package/resources/internet/search.ts +0 -128
- package/resources/livemap/tracker.ts +0 -81
- package/resources/sync/data.ts +0 -587
- package/resources/users/users.ts +0 -435
- package/services/internet/ads.client.ts +0 -41
- package/services/internet/ads.ts +0 -145
- package/services/internet/domain.client.ts +0 -109
- package/services/internet/domain.ts +0 -658
- package/services/internet/internet.client.ts +0 -58
- package/services/internet/internet.ts +0 -268
- package/services/notificator/notificator.client.ts +0 -76
- package/services/settings/filestore.client.ts +0 -75
|
@@ -1,15 +1,18 @@
|
|
|
1
|
-
// @generated by protobuf-ts 2.
|
|
1
|
+
// @generated by protobuf-ts 2.11.1 with parameter force_server_none,long_type_number,optimize_speed,ts_nocheck
|
|
2
2
|
// @generated from protobuf file "services/settings/accounts.proto" (package "services.settings", syntax proto3)
|
|
3
|
+
// tslint:disable
|
|
3
4
|
// @ts-nocheck
|
|
4
5
|
import type { RpcTransport } from "@protobuf-ts/runtime-rpc";
|
|
5
6
|
import type { ServiceInfo } from "@protobuf-ts/runtime-rpc";
|
|
6
7
|
import { AccountsService } from "./accounts";
|
|
7
8
|
import type { DeleteAccountResponse } from "./accounts";
|
|
8
9
|
import type { DeleteAccountRequest } from "./accounts";
|
|
9
|
-
import type {
|
|
10
|
-
import type {
|
|
10
|
+
import type { DisconnectSocialLoginResponse } from "./accounts";
|
|
11
|
+
import type { DisconnectSocialLoginRequest } from "./accounts";
|
|
11
12
|
import type { UpdateAccountResponse } from "./accounts";
|
|
12
13
|
import type { UpdateAccountRequest } from "./accounts";
|
|
14
|
+
import type { CreateAccountResponse } from "./accounts";
|
|
15
|
+
import type { CreateAccountRequest } from "./accounts";
|
|
13
16
|
import { stackIntercept } from "@protobuf-ts/runtime-rpc";
|
|
14
17
|
import type { ListAccountsResponse } from "./accounts";
|
|
15
18
|
import type { ListAccountsRequest } from "./accounts";
|
|
@@ -20,27 +23,23 @@ import type { RpcOptions } from "@protobuf-ts/runtime-rpc";
|
|
|
20
23
|
*/
|
|
21
24
|
export interface IAccountsServiceClient {
|
|
22
25
|
/**
|
|
23
|
-
* @
|
|
24
|
-
*
|
|
25
|
-
* @generated from protobuf rpc: ListAccounts(services.settings.ListAccountsRequest) returns (services.settings.ListAccountsResponse);
|
|
26
|
+
* @generated from protobuf rpc: ListAccounts
|
|
26
27
|
*/
|
|
27
28
|
listAccounts(input: ListAccountsRequest, options?: RpcOptions): UnaryCall<ListAccountsRequest, ListAccountsResponse>;
|
|
28
29
|
/**
|
|
29
|
-
* @
|
|
30
|
-
|
|
31
|
-
|
|
30
|
+
* @generated from protobuf rpc: CreateAccount
|
|
31
|
+
*/
|
|
32
|
+
createAccount(input: CreateAccountRequest, options?: RpcOptions): UnaryCall<CreateAccountRequest, CreateAccountResponse>;
|
|
33
|
+
/**
|
|
34
|
+
* @generated from protobuf rpc: UpdateAccount
|
|
32
35
|
*/
|
|
33
36
|
updateAccount(input: UpdateAccountRequest, options?: RpcOptions): UnaryCall<UpdateAccountRequest, UpdateAccountResponse>;
|
|
34
37
|
/**
|
|
35
|
-
* @
|
|
36
|
-
*
|
|
37
|
-
* @generated from protobuf rpc: DisconnectOAuth2Connection(services.settings.DisconnectOAuth2ConnectionRequest) returns (services.settings.DisconnectOAuth2ConnectionResponse);
|
|
38
|
+
* @generated from protobuf rpc: DisconnectSocialLogin
|
|
38
39
|
*/
|
|
39
|
-
|
|
40
|
+
disconnectSocialLogin(input: DisconnectSocialLoginRequest, options?: RpcOptions): UnaryCall<DisconnectSocialLoginRequest, DisconnectSocialLoginResponse>;
|
|
40
41
|
/**
|
|
41
|
-
* @
|
|
42
|
-
*
|
|
43
|
-
* @generated from protobuf rpc: DeleteAccount(services.settings.DeleteAccountRequest) returns (services.settings.DeleteAccountResponse);
|
|
42
|
+
* @generated from protobuf rpc: DeleteAccount
|
|
44
43
|
*/
|
|
45
44
|
deleteAccount(input: DeleteAccountRequest, options?: RpcOptions): UnaryCall<DeleteAccountRequest, DeleteAccountResponse>;
|
|
46
45
|
}
|
|
@@ -54,39 +53,38 @@ export class AccountsServiceClient implements IAccountsServiceClient, ServiceInf
|
|
|
54
53
|
constructor(private readonly _transport: RpcTransport) {
|
|
55
54
|
}
|
|
56
55
|
/**
|
|
57
|
-
* @
|
|
58
|
-
*
|
|
59
|
-
* @generated from protobuf rpc: ListAccounts(services.settings.ListAccountsRequest) returns (services.settings.ListAccountsResponse);
|
|
56
|
+
* @generated from protobuf rpc: ListAccounts
|
|
60
57
|
*/
|
|
61
58
|
listAccounts(input: ListAccountsRequest, options?: RpcOptions): UnaryCall<ListAccountsRequest, ListAccountsResponse> {
|
|
62
59
|
const method = this.methods[0], opt = this._transport.mergeOptions(options);
|
|
63
60
|
return stackIntercept<ListAccountsRequest, ListAccountsResponse>("unary", this._transport, method, opt, input);
|
|
64
61
|
}
|
|
65
62
|
/**
|
|
66
|
-
* @
|
|
67
|
-
*
|
|
68
|
-
* @generated from protobuf rpc: UpdateAccount(services.settings.UpdateAccountRequest) returns (services.settings.UpdateAccountResponse);
|
|
63
|
+
* @generated from protobuf rpc: CreateAccount
|
|
69
64
|
*/
|
|
70
|
-
|
|
65
|
+
createAccount(input: CreateAccountRequest, options?: RpcOptions): UnaryCall<CreateAccountRequest, CreateAccountResponse> {
|
|
71
66
|
const method = this.methods[1], opt = this._transport.mergeOptions(options);
|
|
72
|
-
return stackIntercept<
|
|
67
|
+
return stackIntercept<CreateAccountRequest, CreateAccountResponse>("unary", this._transport, method, opt, input);
|
|
73
68
|
}
|
|
74
69
|
/**
|
|
75
|
-
* @
|
|
76
|
-
*
|
|
77
|
-
* @generated from protobuf rpc: DisconnectOAuth2Connection(services.settings.DisconnectOAuth2ConnectionRequest) returns (services.settings.DisconnectOAuth2ConnectionResponse);
|
|
70
|
+
* @generated from protobuf rpc: UpdateAccount
|
|
78
71
|
*/
|
|
79
|
-
|
|
72
|
+
updateAccount(input: UpdateAccountRequest, options?: RpcOptions): UnaryCall<UpdateAccountRequest, UpdateAccountResponse> {
|
|
80
73
|
const method = this.methods[2], opt = this._transport.mergeOptions(options);
|
|
81
|
-
return stackIntercept<
|
|
74
|
+
return stackIntercept<UpdateAccountRequest, UpdateAccountResponse>("unary", this._transport, method, opt, input);
|
|
82
75
|
}
|
|
83
76
|
/**
|
|
84
|
-
* @
|
|
85
|
-
*
|
|
86
|
-
* @generated from protobuf rpc: DeleteAccount(services.settings.DeleteAccountRequest) returns (services.settings.DeleteAccountResponse);
|
|
77
|
+
* @generated from protobuf rpc: DisconnectSocialLogin
|
|
87
78
|
*/
|
|
88
|
-
|
|
79
|
+
disconnectSocialLogin(input: DisconnectSocialLoginRequest, options?: RpcOptions): UnaryCall<DisconnectSocialLoginRequest, DisconnectSocialLoginResponse> {
|
|
89
80
|
const method = this.methods[3], opt = this._transport.mergeOptions(options);
|
|
81
|
+
return stackIntercept<DisconnectSocialLoginRequest, DisconnectSocialLoginResponse>("unary", this._transport, method, opt, input);
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* @generated from protobuf rpc: DeleteAccount
|
|
85
|
+
*/
|
|
86
|
+
deleteAccount(input: DeleteAccountRequest, options?: RpcOptions): UnaryCall<DeleteAccountRequest, DeleteAccountResponse> {
|
|
87
|
+
const method = this.methods[4], opt = this._transport.mergeOptions(options);
|
|
90
88
|
return stackIntercept<DeleteAccountRequest, DeleteAccountResponse>("unary", this._transport, method, opt, input);
|
|
91
89
|
}
|
|
92
90
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
// @generated by protobuf-ts 2.
|
|
1
|
+
// @generated by protobuf-ts 2.11.1 with parameter force_server_none,long_type_number,optimize_speed,ts_nocheck
|
|
2
2
|
// @generated from protobuf file "services/settings/accounts.proto" (package "services.settings", syntax proto3)
|
|
3
|
+
// tslint:disable
|
|
3
4
|
// @ts-nocheck
|
|
4
5
|
import { ServiceType } from "@protobuf-ts/runtime-rpc";
|
|
5
6
|
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
|
|
@@ -11,6 +12,7 @@ import { UnknownFieldHandler } from "@protobuf-ts/runtime";
|
|
|
11
12
|
import type { PartialMessage } from "@protobuf-ts/runtime";
|
|
12
13
|
import { reflectionMergePartial } from "@protobuf-ts/runtime";
|
|
13
14
|
import { MessageType } from "@protobuf-ts/runtime";
|
|
15
|
+
import { UserShort } from "../../resources/users/short/user";
|
|
14
16
|
import { Account } from "../../resources/accounts/accounts";
|
|
15
17
|
import { PaginationResponse } from "../../resources/common/database/database";
|
|
16
18
|
import { Sort } from "../../resources/common/database/database";
|
|
@@ -20,51 +22,95 @@ import { PaginationRequest } from "../../resources/common/database/database";
|
|
|
20
22
|
*/
|
|
21
23
|
export interface ListAccountsRequest {
|
|
22
24
|
/**
|
|
23
|
-
* @generated from protobuf field: resources.common.database.PaginationRequest pagination = 1
|
|
25
|
+
* @generated from protobuf field: resources.common.database.PaginationRequest pagination = 1
|
|
24
26
|
*/
|
|
25
27
|
pagination?: PaginationRequest;
|
|
26
28
|
/**
|
|
27
|
-
* @generated from protobuf field: optional resources.common.database.Sort sort = 2
|
|
29
|
+
* @generated from protobuf field: optional resources.common.database.Sort sort = 2
|
|
28
30
|
*/
|
|
29
31
|
sort?: Sort;
|
|
30
32
|
/**
|
|
31
33
|
* Search params
|
|
32
34
|
*
|
|
33
|
-
* @generated from protobuf field: optional string license = 3
|
|
35
|
+
* @generated from protobuf field: optional string license = 3
|
|
34
36
|
*/
|
|
35
37
|
license?: string;
|
|
36
38
|
/**
|
|
37
|
-
* @generated from protobuf field: optional bool
|
|
39
|
+
* @generated from protobuf field: optional bool only_disabled = 4
|
|
38
40
|
*/
|
|
39
|
-
|
|
41
|
+
onlyDisabled?: boolean;
|
|
42
|
+
/**
|
|
43
|
+
* @generated from protobuf field: optional string username = 5
|
|
44
|
+
*/
|
|
45
|
+
username?: string;
|
|
46
|
+
/**
|
|
47
|
+
* @generated from protobuf field: optional string external_id = 6
|
|
48
|
+
*/
|
|
49
|
+
externalId?: string;
|
|
50
|
+
/**
|
|
51
|
+
* @generated from protobuf field: optional string group = 7
|
|
52
|
+
*/
|
|
53
|
+
group?: string;
|
|
40
54
|
}
|
|
41
55
|
/**
|
|
42
56
|
* @generated from protobuf message services.settings.ListAccountsResponse
|
|
43
57
|
*/
|
|
44
58
|
export interface ListAccountsResponse {
|
|
45
59
|
/**
|
|
46
|
-
* @generated from protobuf field: resources.common.database.PaginationResponse pagination = 1
|
|
60
|
+
* @generated from protobuf field: resources.common.database.PaginationResponse pagination = 1
|
|
47
61
|
*/
|
|
48
62
|
pagination?: PaginationResponse;
|
|
49
63
|
/**
|
|
50
|
-
* @generated from protobuf field: repeated resources.accounts.Account accounts = 2
|
|
64
|
+
* @generated from protobuf field: repeated resources.accounts.Account accounts = 2
|
|
51
65
|
*/
|
|
52
66
|
accounts: Account[];
|
|
53
67
|
}
|
|
68
|
+
/**
|
|
69
|
+
* @generated from protobuf message services.settings.CreateAccountRequest
|
|
70
|
+
*/
|
|
71
|
+
export interface CreateAccountRequest {
|
|
72
|
+
/**
|
|
73
|
+
* @generated from protobuf field: string license = 1
|
|
74
|
+
*/
|
|
75
|
+
license: string;
|
|
76
|
+
/**
|
|
77
|
+
* @generated from protobuf field: string username = 2
|
|
78
|
+
*/
|
|
79
|
+
username: string;
|
|
80
|
+
/**
|
|
81
|
+
* @generated from protobuf field: optional int32 last_char = 3
|
|
82
|
+
*/
|
|
83
|
+
lastChar?: number;
|
|
84
|
+
/**
|
|
85
|
+
* Allow creating a char at the same time (only when dbsync is used)
|
|
86
|
+
*
|
|
87
|
+
* @generated from protobuf field: optional resources.users.short.UserShort char = 4
|
|
88
|
+
*/
|
|
89
|
+
char?: UserShort;
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* @generated from protobuf message services.settings.CreateAccountResponse
|
|
93
|
+
*/
|
|
94
|
+
export interface CreateAccountResponse {
|
|
95
|
+
/**
|
|
96
|
+
* @generated from protobuf field: string reg_token = 1
|
|
97
|
+
*/
|
|
98
|
+
regToken: string;
|
|
99
|
+
}
|
|
54
100
|
/**
|
|
55
101
|
* @generated from protobuf message services.settings.UpdateAccountRequest
|
|
56
102
|
*/
|
|
57
103
|
export interface UpdateAccountRequest {
|
|
58
104
|
/**
|
|
59
|
-
* @generated from protobuf field:
|
|
105
|
+
* @generated from protobuf field: int64 id = 1
|
|
60
106
|
*/
|
|
61
107
|
id: number;
|
|
62
108
|
/**
|
|
63
|
-
* @generated from protobuf field: optional bool enabled = 2
|
|
109
|
+
* @generated from protobuf field: optional bool enabled = 2
|
|
64
110
|
*/
|
|
65
111
|
enabled?: boolean;
|
|
66
112
|
/**
|
|
67
|
-
* @generated from protobuf field: optional int32 last_char = 3
|
|
113
|
+
* @generated from protobuf field: optional int32 last_char = 3
|
|
68
114
|
*/
|
|
69
115
|
lastChar?: number;
|
|
70
116
|
}
|
|
@@ -73,34 +119,34 @@ export interface UpdateAccountRequest {
|
|
|
73
119
|
*/
|
|
74
120
|
export interface UpdateAccountResponse {
|
|
75
121
|
/**
|
|
76
|
-
* @generated from protobuf field: resources.accounts.Account account = 1
|
|
122
|
+
* @generated from protobuf field: resources.accounts.Account account = 1
|
|
77
123
|
*/
|
|
78
124
|
account?: Account;
|
|
79
125
|
}
|
|
80
126
|
/**
|
|
81
|
-
* @generated from protobuf message services.settings.
|
|
127
|
+
* @generated from protobuf message services.settings.DisconnectSocialLoginRequest
|
|
82
128
|
*/
|
|
83
|
-
export interface
|
|
129
|
+
export interface DisconnectSocialLoginRequest {
|
|
84
130
|
/**
|
|
85
|
-
* @generated from protobuf field:
|
|
131
|
+
* @generated from protobuf field: int64 id = 1
|
|
86
132
|
*/
|
|
87
133
|
id: number;
|
|
88
134
|
/**
|
|
89
|
-
* @generated from protobuf field: string
|
|
135
|
+
* @generated from protobuf field: string provider_name = 2
|
|
90
136
|
*/
|
|
91
137
|
providerName: string;
|
|
92
138
|
}
|
|
93
139
|
/**
|
|
94
|
-
* @generated from protobuf message services.settings.
|
|
140
|
+
* @generated from protobuf message services.settings.DisconnectSocialLoginResponse
|
|
95
141
|
*/
|
|
96
|
-
export interface
|
|
142
|
+
export interface DisconnectSocialLoginResponse {
|
|
97
143
|
}
|
|
98
144
|
/**
|
|
99
145
|
* @generated from protobuf message services.settings.DeleteAccountRequest
|
|
100
146
|
*/
|
|
101
147
|
export interface DeleteAccountRequest {
|
|
102
148
|
/**
|
|
103
|
-
* @generated from protobuf field:
|
|
149
|
+
* @generated from protobuf field: int64 id = 1
|
|
104
150
|
*/
|
|
105
151
|
id: number;
|
|
106
152
|
}
|
|
@@ -113,10 +159,13 @@ export interface DeleteAccountResponse {
|
|
|
113
159
|
class ListAccountsRequest$Type extends MessageType<ListAccountsRequest> {
|
|
114
160
|
constructor() {
|
|
115
161
|
super("services.settings.ListAccountsRequest", [
|
|
116
|
-
{ no: 1, name: "pagination", kind: "message", T: () => PaginationRequest, options: { "validate.
|
|
162
|
+
{ no: 1, name: "pagination", kind: "message", T: () => PaginationRequest, options: { "buf.validate.field": { required: true } } },
|
|
117
163
|
{ no: 2, name: "sort", kind: "message", T: () => Sort },
|
|
118
|
-
{ no: 3, name: "license", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "validate.
|
|
119
|
-
{ no: 4, name: "
|
|
164
|
+
{ no: 3, name: "license", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "64" } } } },
|
|
165
|
+
{ no: 4, name: "only_disabled", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ },
|
|
166
|
+
{ no: 5, name: "username", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "64" } } } },
|
|
167
|
+
{ no: 6, name: "external_id", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "128" } } } },
|
|
168
|
+
{ no: 7, name: "group", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "64" } } } }
|
|
120
169
|
]);
|
|
121
170
|
}
|
|
122
171
|
create(value?: PartialMessage<ListAccountsRequest>): ListAccountsRequest {
|
|
@@ -139,8 +188,17 @@ class ListAccountsRequest$Type extends MessageType<ListAccountsRequest> {
|
|
|
139
188
|
case /* optional string license */ 3:
|
|
140
189
|
message.license = reader.string();
|
|
141
190
|
break;
|
|
142
|
-
case /* optional bool
|
|
143
|
-
message.
|
|
191
|
+
case /* optional bool only_disabled */ 4:
|
|
192
|
+
message.onlyDisabled = reader.bool();
|
|
193
|
+
break;
|
|
194
|
+
case /* optional string username */ 5:
|
|
195
|
+
message.username = reader.string();
|
|
196
|
+
break;
|
|
197
|
+
case /* optional string external_id */ 6:
|
|
198
|
+
message.externalId = reader.string();
|
|
199
|
+
break;
|
|
200
|
+
case /* optional string group */ 7:
|
|
201
|
+
message.group = reader.string();
|
|
144
202
|
break;
|
|
145
203
|
default:
|
|
146
204
|
let u = options.readUnknownField;
|
|
@@ -163,9 +221,18 @@ class ListAccountsRequest$Type extends MessageType<ListAccountsRequest> {
|
|
|
163
221
|
/* optional string license = 3; */
|
|
164
222
|
if (message.license !== undefined)
|
|
165
223
|
writer.tag(3, WireType.LengthDelimited).string(message.license);
|
|
166
|
-
/* optional bool
|
|
167
|
-
if (message.
|
|
168
|
-
writer.tag(4, WireType.Varint).bool(message.
|
|
224
|
+
/* optional bool only_disabled = 4; */
|
|
225
|
+
if (message.onlyDisabled !== undefined)
|
|
226
|
+
writer.tag(4, WireType.Varint).bool(message.onlyDisabled);
|
|
227
|
+
/* optional string username = 5; */
|
|
228
|
+
if (message.username !== undefined)
|
|
229
|
+
writer.tag(5, WireType.LengthDelimited).string(message.username);
|
|
230
|
+
/* optional string external_id = 6; */
|
|
231
|
+
if (message.externalId !== undefined)
|
|
232
|
+
writer.tag(6, WireType.LengthDelimited).string(message.externalId);
|
|
233
|
+
/* optional string group = 7; */
|
|
234
|
+
if (message.group !== undefined)
|
|
235
|
+
writer.tag(7, WireType.LengthDelimited).string(message.group);
|
|
169
236
|
let u = options.writeUnknownFields;
|
|
170
237
|
if (u !== false)
|
|
171
238
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -180,8 +247,8 @@ export const ListAccountsRequest = new ListAccountsRequest$Type();
|
|
|
180
247
|
class ListAccountsResponse$Type extends MessageType<ListAccountsResponse> {
|
|
181
248
|
constructor() {
|
|
182
249
|
super("services.settings.ListAccountsResponse", [
|
|
183
|
-
{ no: 1, name: "pagination", kind: "message", T: () => PaginationResponse },
|
|
184
|
-
{ no: 2, name: "accounts", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Account }
|
|
250
|
+
{ no: 1, name: "pagination", kind: "message", T: () => PaginationResponse, options: { "buf.validate.field": { required: true } } },
|
|
251
|
+
{ no: 2, name: "accounts", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Account, options: { "codegen.itemslen.enabled": true } }
|
|
185
252
|
]);
|
|
186
253
|
}
|
|
187
254
|
create(value?: PartialMessage<ListAccountsResponse>): ListAccountsResponse {
|
|
@@ -231,10 +298,126 @@ class ListAccountsResponse$Type extends MessageType<ListAccountsResponse> {
|
|
|
231
298
|
*/
|
|
232
299
|
export const ListAccountsResponse = new ListAccountsResponse$Type();
|
|
233
300
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
301
|
+
class CreateAccountRequest$Type extends MessageType<CreateAccountRequest> {
|
|
302
|
+
constructor() {
|
|
303
|
+
super("services.settings.CreateAccountRequest", [
|
|
304
|
+
{ no: 1, name: "license", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "64" } } } },
|
|
305
|
+
{ no: 2, name: "username", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "64" } } } },
|
|
306
|
+
{ no: 3, name: "last_char", kind: "scalar", opt: true, T: 5 /*ScalarType.INT32*/ },
|
|
307
|
+
{ no: 4, name: "char", kind: "message", T: () => UserShort }
|
|
308
|
+
]);
|
|
309
|
+
}
|
|
310
|
+
create(value?: PartialMessage<CreateAccountRequest>): CreateAccountRequest {
|
|
311
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
312
|
+
message.license = "";
|
|
313
|
+
message.username = "";
|
|
314
|
+
if (value !== undefined)
|
|
315
|
+
reflectionMergePartial<CreateAccountRequest>(this, message, value);
|
|
316
|
+
return message;
|
|
317
|
+
}
|
|
318
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CreateAccountRequest): CreateAccountRequest {
|
|
319
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
320
|
+
while (reader.pos < end) {
|
|
321
|
+
let [fieldNo, wireType] = reader.tag();
|
|
322
|
+
switch (fieldNo) {
|
|
323
|
+
case /* string license */ 1:
|
|
324
|
+
message.license = reader.string();
|
|
325
|
+
break;
|
|
326
|
+
case /* string username */ 2:
|
|
327
|
+
message.username = reader.string();
|
|
328
|
+
break;
|
|
329
|
+
case /* optional int32 last_char */ 3:
|
|
330
|
+
message.lastChar = reader.int32();
|
|
331
|
+
break;
|
|
332
|
+
case /* optional resources.users.short.UserShort char */ 4:
|
|
333
|
+
message.char = UserShort.internalBinaryRead(reader, reader.uint32(), options, message.char);
|
|
334
|
+
break;
|
|
335
|
+
default:
|
|
336
|
+
let u = options.readUnknownField;
|
|
337
|
+
if (u === "throw")
|
|
338
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
339
|
+
let d = reader.skip(wireType);
|
|
340
|
+
if (u !== false)
|
|
341
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
342
|
+
}
|
|
343
|
+
}
|
|
344
|
+
return message;
|
|
345
|
+
}
|
|
346
|
+
internalBinaryWrite(message: CreateAccountRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
347
|
+
/* string license = 1; */
|
|
348
|
+
if (message.license !== "")
|
|
349
|
+
writer.tag(1, WireType.LengthDelimited).string(message.license);
|
|
350
|
+
/* string username = 2; */
|
|
351
|
+
if (message.username !== "")
|
|
352
|
+
writer.tag(2, WireType.LengthDelimited).string(message.username);
|
|
353
|
+
/* optional int32 last_char = 3; */
|
|
354
|
+
if (message.lastChar !== undefined)
|
|
355
|
+
writer.tag(3, WireType.Varint).int32(message.lastChar);
|
|
356
|
+
/* optional resources.users.short.UserShort char = 4; */
|
|
357
|
+
if (message.char)
|
|
358
|
+
UserShort.internalBinaryWrite(message.char, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
|
359
|
+
let u = options.writeUnknownFields;
|
|
360
|
+
if (u !== false)
|
|
361
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
362
|
+
return writer;
|
|
363
|
+
}
|
|
364
|
+
}
|
|
365
|
+
/**
|
|
366
|
+
* @generated MessageType for protobuf message services.settings.CreateAccountRequest
|
|
367
|
+
*/
|
|
368
|
+
export const CreateAccountRequest = new CreateAccountRequest$Type();
|
|
369
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
370
|
+
class CreateAccountResponse$Type extends MessageType<CreateAccountResponse> {
|
|
371
|
+
constructor() {
|
|
372
|
+
super("services.settings.CreateAccountResponse", [
|
|
373
|
+
{ no: 1, name: "reg_token", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { len: "6" } } } }
|
|
374
|
+
]);
|
|
375
|
+
}
|
|
376
|
+
create(value?: PartialMessage<CreateAccountResponse>): CreateAccountResponse {
|
|
377
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
378
|
+
message.regToken = "";
|
|
379
|
+
if (value !== undefined)
|
|
380
|
+
reflectionMergePartial<CreateAccountResponse>(this, message, value);
|
|
381
|
+
return message;
|
|
382
|
+
}
|
|
383
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CreateAccountResponse): CreateAccountResponse {
|
|
384
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
385
|
+
while (reader.pos < end) {
|
|
386
|
+
let [fieldNo, wireType] = reader.tag();
|
|
387
|
+
switch (fieldNo) {
|
|
388
|
+
case /* string reg_token */ 1:
|
|
389
|
+
message.regToken = reader.string();
|
|
390
|
+
break;
|
|
391
|
+
default:
|
|
392
|
+
let u = options.readUnknownField;
|
|
393
|
+
if (u === "throw")
|
|
394
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
395
|
+
let d = reader.skip(wireType);
|
|
396
|
+
if (u !== false)
|
|
397
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
398
|
+
}
|
|
399
|
+
}
|
|
400
|
+
return message;
|
|
401
|
+
}
|
|
402
|
+
internalBinaryWrite(message: CreateAccountResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
403
|
+
/* string reg_token = 1; */
|
|
404
|
+
if (message.regToken !== "")
|
|
405
|
+
writer.tag(1, WireType.LengthDelimited).string(message.regToken);
|
|
406
|
+
let u = options.writeUnknownFields;
|
|
407
|
+
if (u !== false)
|
|
408
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
409
|
+
return writer;
|
|
410
|
+
}
|
|
411
|
+
}
|
|
412
|
+
/**
|
|
413
|
+
* @generated MessageType for protobuf message services.settings.CreateAccountResponse
|
|
414
|
+
*/
|
|
415
|
+
export const CreateAccountResponse = new CreateAccountResponse$Type();
|
|
416
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
234
417
|
class UpdateAccountRequest$Type extends MessageType<UpdateAccountRequest> {
|
|
235
418
|
constructor() {
|
|
236
419
|
super("services.settings.UpdateAccountRequest", [
|
|
237
|
-
{ no: 1, name: "id", kind: "scalar", T:
|
|
420
|
+
{ no: 1, name: "id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/, options: { "buf.validate.field": { int64: { gt: "0" } } } },
|
|
238
421
|
{ no: 2, name: "enabled", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ },
|
|
239
422
|
{ no: 3, name: "last_char", kind: "scalar", opt: true, T: 5 /*ScalarType.INT32*/ }
|
|
240
423
|
]);
|
|
@@ -251,8 +434,8 @@ class UpdateAccountRequest$Type extends MessageType<UpdateAccountRequest> {
|
|
|
251
434
|
while (reader.pos < end) {
|
|
252
435
|
let [fieldNo, wireType] = reader.tag();
|
|
253
436
|
switch (fieldNo) {
|
|
254
|
-
case /*
|
|
255
|
-
message.id = reader.
|
|
437
|
+
case /* int64 id */ 1:
|
|
438
|
+
message.id = reader.int64().toNumber();
|
|
256
439
|
break;
|
|
257
440
|
case /* optional bool enabled */ 2:
|
|
258
441
|
message.enabled = reader.bool();
|
|
@@ -272,9 +455,9 @@ class UpdateAccountRequest$Type extends MessageType<UpdateAccountRequest> {
|
|
|
272
455
|
return message;
|
|
273
456
|
}
|
|
274
457
|
internalBinaryWrite(message: UpdateAccountRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
275
|
-
/*
|
|
458
|
+
/* int64 id = 1; */
|
|
276
459
|
if (message.id !== 0)
|
|
277
|
-
writer.tag(1, WireType.Varint).
|
|
460
|
+
writer.tag(1, WireType.Varint).int64(message.id);
|
|
278
461
|
/* optional bool enabled = 2; */
|
|
279
462
|
if (message.enabled !== undefined)
|
|
280
463
|
writer.tag(2, WireType.Varint).bool(message.enabled);
|
|
@@ -338,30 +521,30 @@ class UpdateAccountResponse$Type extends MessageType<UpdateAccountResponse> {
|
|
|
338
521
|
*/
|
|
339
522
|
export const UpdateAccountResponse = new UpdateAccountResponse$Type();
|
|
340
523
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
341
|
-
class
|
|
524
|
+
class DisconnectSocialLoginRequest$Type extends MessageType<DisconnectSocialLoginRequest> {
|
|
342
525
|
constructor() {
|
|
343
|
-
super("services.settings.
|
|
344
|
-
{ no: 1, name: "id", kind: "scalar", T:
|
|
345
|
-
{ no: 2, name: "
|
|
526
|
+
super("services.settings.DisconnectSocialLoginRequest", [
|
|
527
|
+
{ no: 1, name: "id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/, options: { "buf.validate.field": { int64: { gt: "0" } } } },
|
|
528
|
+
{ no: 2, name: "provider_name", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { maxLen: "255" } } } }
|
|
346
529
|
]);
|
|
347
530
|
}
|
|
348
|
-
create(value?: PartialMessage<
|
|
531
|
+
create(value?: PartialMessage<DisconnectSocialLoginRequest>): DisconnectSocialLoginRequest {
|
|
349
532
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
350
533
|
message.id = 0;
|
|
351
534
|
message.providerName = "";
|
|
352
535
|
if (value !== undefined)
|
|
353
|
-
reflectionMergePartial<
|
|
536
|
+
reflectionMergePartial<DisconnectSocialLoginRequest>(this, message, value);
|
|
354
537
|
return message;
|
|
355
538
|
}
|
|
356
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?:
|
|
539
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DisconnectSocialLoginRequest): DisconnectSocialLoginRequest {
|
|
357
540
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
358
541
|
while (reader.pos < end) {
|
|
359
542
|
let [fieldNo, wireType] = reader.tag();
|
|
360
543
|
switch (fieldNo) {
|
|
361
|
-
case /*
|
|
362
|
-
message.id = reader.
|
|
544
|
+
case /* int64 id */ 1:
|
|
545
|
+
message.id = reader.int64().toNumber();
|
|
363
546
|
break;
|
|
364
|
-
case /* string
|
|
547
|
+
case /* string provider_name */ 2:
|
|
365
548
|
message.providerName = reader.string();
|
|
366
549
|
break;
|
|
367
550
|
default:
|
|
@@ -375,11 +558,11 @@ class DisconnectOAuth2ConnectionRequest$Type extends MessageType<DisconnectOAuth
|
|
|
375
558
|
}
|
|
376
559
|
return message;
|
|
377
560
|
}
|
|
378
|
-
internalBinaryWrite(message:
|
|
379
|
-
/*
|
|
561
|
+
internalBinaryWrite(message: DisconnectSocialLoginRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
562
|
+
/* int64 id = 1; */
|
|
380
563
|
if (message.id !== 0)
|
|
381
|
-
writer.tag(1, WireType.Varint).
|
|
382
|
-
/* string
|
|
564
|
+
writer.tag(1, WireType.Varint).int64(message.id);
|
|
565
|
+
/* string provider_name = 2; */
|
|
383
566
|
if (message.providerName !== "")
|
|
384
567
|
writer.tag(2, WireType.LengthDelimited).string(message.providerName);
|
|
385
568
|
let u = options.writeUnknownFields;
|
|
@@ -389,21 +572,21 @@ class DisconnectOAuth2ConnectionRequest$Type extends MessageType<DisconnectOAuth
|
|
|
389
572
|
}
|
|
390
573
|
}
|
|
391
574
|
/**
|
|
392
|
-
* @generated MessageType for protobuf message services.settings.
|
|
575
|
+
* @generated MessageType for protobuf message services.settings.DisconnectSocialLoginRequest
|
|
393
576
|
*/
|
|
394
|
-
export const
|
|
577
|
+
export const DisconnectSocialLoginRequest = new DisconnectSocialLoginRequest$Type();
|
|
395
578
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
396
|
-
class
|
|
579
|
+
class DisconnectSocialLoginResponse$Type extends MessageType<DisconnectSocialLoginResponse> {
|
|
397
580
|
constructor() {
|
|
398
|
-
super("services.settings.
|
|
581
|
+
super("services.settings.DisconnectSocialLoginResponse", []);
|
|
399
582
|
}
|
|
400
|
-
create(value?: PartialMessage<
|
|
583
|
+
create(value?: PartialMessage<DisconnectSocialLoginResponse>): DisconnectSocialLoginResponse {
|
|
401
584
|
const message = globalThis.Object.create((this.messagePrototype!));
|
|
402
585
|
if (value !== undefined)
|
|
403
|
-
reflectionMergePartial<
|
|
586
|
+
reflectionMergePartial<DisconnectSocialLoginResponse>(this, message, value);
|
|
404
587
|
return message;
|
|
405
588
|
}
|
|
406
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?:
|
|
589
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DisconnectSocialLoginResponse): DisconnectSocialLoginResponse {
|
|
407
590
|
let message = target ?? this.create(), end = reader.pos + length;
|
|
408
591
|
while (reader.pos < end) {
|
|
409
592
|
let [fieldNo, wireType] = reader.tag();
|
|
@@ -419,7 +602,7 @@ class DisconnectOAuth2ConnectionResponse$Type extends MessageType<DisconnectOAut
|
|
|
419
602
|
}
|
|
420
603
|
return message;
|
|
421
604
|
}
|
|
422
|
-
internalBinaryWrite(message:
|
|
605
|
+
internalBinaryWrite(message: DisconnectSocialLoginResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
423
606
|
let u = options.writeUnknownFields;
|
|
424
607
|
if (u !== false)
|
|
425
608
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -427,14 +610,14 @@ class DisconnectOAuth2ConnectionResponse$Type extends MessageType<DisconnectOAut
|
|
|
427
610
|
}
|
|
428
611
|
}
|
|
429
612
|
/**
|
|
430
|
-
* @generated MessageType for protobuf message services.settings.
|
|
613
|
+
* @generated MessageType for protobuf message services.settings.DisconnectSocialLoginResponse
|
|
431
614
|
*/
|
|
432
|
-
export const
|
|
615
|
+
export const DisconnectSocialLoginResponse = new DisconnectSocialLoginResponse$Type();
|
|
433
616
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
434
617
|
class DeleteAccountRequest$Type extends MessageType<DeleteAccountRequest> {
|
|
435
618
|
constructor() {
|
|
436
619
|
super("services.settings.DeleteAccountRequest", [
|
|
437
|
-
{ no: 1, name: "id", kind: "scalar", T:
|
|
620
|
+
{ no: 1, name: "id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/, options: { "buf.validate.field": { int64: { gt: "0" } } } }
|
|
438
621
|
]);
|
|
439
622
|
}
|
|
440
623
|
create(value?: PartialMessage<DeleteAccountRequest>): DeleteAccountRequest {
|
|
@@ -449,8 +632,8 @@ class DeleteAccountRequest$Type extends MessageType<DeleteAccountRequest> {
|
|
|
449
632
|
while (reader.pos < end) {
|
|
450
633
|
let [fieldNo, wireType] = reader.tag();
|
|
451
634
|
switch (fieldNo) {
|
|
452
|
-
case /*
|
|
453
|
-
message.id = reader.
|
|
635
|
+
case /* int64 id */ 1:
|
|
636
|
+
message.id = reader.int64().toNumber();
|
|
454
637
|
break;
|
|
455
638
|
default:
|
|
456
639
|
let u = options.readUnknownField;
|
|
@@ -464,9 +647,9 @@ class DeleteAccountRequest$Type extends MessageType<DeleteAccountRequest> {
|
|
|
464
647
|
return message;
|
|
465
648
|
}
|
|
466
649
|
internalBinaryWrite(message: DeleteAccountRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
467
|
-
/*
|
|
650
|
+
/* int64 id = 1; */
|
|
468
651
|
if (message.id !== 0)
|
|
469
|
-
writer.tag(1, WireType.Varint).
|
|
652
|
+
writer.tag(1, WireType.Varint).int64(message.id);
|
|
470
653
|
let u = options.writeUnknownFields;
|
|
471
654
|
if (u !== false)
|
|
472
655
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -519,8 +702,9 @@ export const DeleteAccountResponse = new DeleteAccountResponse$Type();
|
|
|
519
702
|
* @generated ServiceType for protobuf service services.settings.AccountsService
|
|
520
703
|
*/
|
|
521
704
|
export const AccountsService = new ServiceType("services.settings.AccountsService", [
|
|
522
|
-
{ name: "ListAccounts", options: {}, I: ListAccountsRequest, O: ListAccountsResponse },
|
|
523
|
-
{ name: "
|
|
524
|
-
{ name: "
|
|
525
|
-
{ name: "
|
|
705
|
+
{ name: "ListAccounts", options: { "codegen.perms.perms": { enabled: true, name: "Superuser" } }, I: ListAccountsRequest, O: ListAccountsResponse },
|
|
706
|
+
{ name: "CreateAccount", options: { "codegen.perms.perms": { enabled: true, name: "Superuser" } }, I: CreateAccountRequest, O: CreateAccountResponse },
|
|
707
|
+
{ name: "UpdateAccount", options: { "codegen.perms.perms": { enabled: true, name: "Superuser" } }, I: UpdateAccountRequest, O: UpdateAccountResponse },
|
|
708
|
+
{ name: "DisconnectSocialLogin", options: { "codegen.perms.perms": { enabled: true, name: "Superuser" } }, I: DisconnectSocialLoginRequest, O: DisconnectSocialLoginResponse },
|
|
709
|
+
{ name: "DeleteAccount", options: { "codegen.perms.perms": { enabled: true, name: "Superuser" } }, I: DeleteAccountRequest, O: DeleteAccountResponse }
|
|
526
710
|
]);
|