@fivenet-app/gen 2026.3.0 → 2026.4.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.
Files changed (37) hide show
  1. package/clients.ts +6 -6
  2. package/codegen/perms/perms.ts +93 -1
  3. package/package.json +1 -1
  4. package/perms.ts +6 -5
  5. package/resources/centrum/settings/settings.ts +1 -1
  6. package/resources/centrum/units/units.ts +1 -1
  7. package/resources/citizens/labels/labels.ts +526 -0
  8. package/resources/{users → citizens}/licenses/licenses.ts +17 -17
  9. package/resources/clientconfig/clientconfig.ts +32 -289
  10. package/resources/cron/cron.ts +2 -2
  11. package/resources/documents/access/access.ts +0 -23
  12. package/resources/documents/category/category.ts +1 -1
  13. package/resources/documents/templates/templates.ts +2 -2
  14. package/resources/jobs/labels/labels.ts +16 -5
  15. package/resources/livemap/markers/marker_marker.ts +1 -1
  16. package/resources/settings/banner.ts +1 -1
  17. package/resources/settings/config.ts +16 -14
  18. package/resources/sync/data/data.ts +9 -9
  19. package/resources/users/activity/activity.ts +132 -12
  20. package/resources/users/props/props.ts +4 -4
  21. package/resources/users/user.ts +4 -4
  22. package/services/citizens/citizens.client.ts +0 -13
  23. package/services/citizens/citizens.ts +1 -115
  24. package/services/citizens/labels.client.ts +77 -0
  25. package/services/citizens/labels.ts +455 -0
  26. package/services/completor/completor.ts +5 -5
  27. package/services/documents/documents.ts +1 -1
  28. package/services/qualifications/qualifications.ts +1 -1
  29. package/services/settings/cron.client.ts +13 -0
  30. package/services/settings/cron.ts +114 -1
  31. package/services/sync/sync.client.ts +271 -37
  32. package/services/sync/sync.ts +1438 -381
  33. package/svcs.ts +29 -27
  34. package/resources/sync/data/v2/data.ts +0 -220
  35. package/resources/users/labels/labels.ts +0 -160
  36. package/services/sync/v2/sync.client.ts +0 -331
  37. package/services/sync/v2/sync.ts +0 -1766
@@ -12,7 +12,7 @@ import { WireType } from "@protobuf-ts/runtime";
12
12
  import type { PartialMessage } from "@protobuf-ts/runtime";
13
13
  import { reflectionMergePartial } from "@protobuf-ts/runtime";
14
14
  import { MessageType } from "@protobuf-ts/runtime";
15
- import { Label } from "../../resources/users/labels/labels";
15
+ import { Label } from "../../resources/citizens/labels/labels";
16
16
  import { LawBook } from "../../resources/laws/laws";
17
17
  import { Category } from "../../resources/documents/category/category";
18
18
  import { Job } from "../../resources/jobs/jobs";
@@ -127,7 +127,7 @@ export interface CompleteCitizenLabelsRequest {
127
127
  */
128
128
  export interface CompleteCitizenLabelsResponse {
129
129
  /**
130
- * @generated from protobuf field: repeated resources.users.labels.Label labels = 1
130
+ * @generated from protobuf field: repeated resources.citizens.labels.Label labels = 1
131
131
  */
132
132
  labels: Label[];
133
133
  }
@@ -630,7 +630,7 @@ class CompleteCitizenLabelsResponse$Type extends MessageType<CompleteCitizenLabe
630
630
  while (reader.pos < end) {
631
631
  let [fieldNo, wireType] = reader.tag();
632
632
  switch (fieldNo) {
633
- case /* repeated resources.users.labels.Label labels */ 1:
633
+ case /* repeated resources.citizens.labels.Label labels */ 1:
634
634
  message.labels.push(Label.internalBinaryRead(reader, reader.uint32(), options));
635
635
  break;
636
636
  default:
@@ -645,7 +645,7 @@ class CompleteCitizenLabelsResponse$Type extends MessageType<CompleteCitizenLabe
645
645
  return message;
646
646
  }
647
647
  internalBinaryWrite(message: CompleteCitizenLabelsResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
648
- /* repeated resources.users.labels.Label labels = 1; */
648
+ /* repeated resources.citizens.labels.Label labels = 1; */
649
649
  for (let i = 0; i < message.labels.length; i++)
650
650
  Label.internalBinaryWrite(message.labels[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
651
651
  let u = options.writeUnknownFields;
@@ -664,7 +664,7 @@ export const CompleteCitizenLabelsResponse = new CompleteCitizenLabelsResponse$T
664
664
  export const CompletorService = new ServiceType("services.completor.CompletorService", [
665
665
  { name: "CompleteCitizens", options: { "codegen.perms.perms": { enabled: true, name: "Any" } }, I: CompleteCitizensRequest, O: CompleteCitizensResponse },
666
666
  { name: "CompleteJobs", options: { "codegen.perms.perms": { enabled: true, name: "Any" } }, I: CompleteJobsRequest, O: CompleteJobsResponse },
667
- { name: "CompleteDocumentCategories", options: { "codegen.perms.perms": { enabled: true, attrs: [{ key: "Jobs", type: "ATTRIBUTE_TYPE_JOB_LIST" }] } }, I: CompleteDocumentCategoriesRequest, O: CompleteDocumentCategoriesResponse },
667
+ { name: "CompleteDocumentCategories", options: { "codegen.perms.perms": { enabled: true, service: "documents.DocumentsService", name: "ListCategories" } }, I: CompleteDocumentCategoriesRequest, O: CompleteDocumentCategoriesResponse },
668
668
  { name: "ListLawBooks", options: { "codegen.perms.perms": { enabled: true, name: "Any" } }, I: ListLawBooksRequest, O: ListLawBooksResponse },
669
669
  { name: "CompleteCitizenLabels", options: { "codegen.perms.perms": { enabled: true, attrs: [{ key: "Jobs", type: "ATTRIBUTE_TYPE_JOB_LIST" }] } }, I: CompleteCitizenLabelsRequest, O: CompleteCitizenLabelsResponse }
670
670
  ], { "codegen.perms.perms_svc": { order: 10, icon: "i-mdi-keyboard-tab" } });
@@ -4619,7 +4619,7 @@ export const DocumentsService = new ServiceType("services.documents.DocumentsSer
4619
4619
  { name: "UpdateDocumentReq", options: { "codegen.perms.perms": { enabled: true, name: "CreateDocumentReq" } }, I: UpdateDocumentReqRequest, O: UpdateDocumentReqResponse },
4620
4620
  { name: "DeleteDocumentReq", options: { "codegen.perms.perms": { enabled: true } }, I: DeleteDocumentReqRequest, O: DeleteDocumentReqResponse },
4621
4621
  { name: "ListUserDocuments", options: { "codegen.perms.perms": { enabled: true } }, I: ListUserDocumentsRequest, O: ListUserDocumentsResponse },
4622
- { name: "ListCategories", options: { "codegen.perms.perms": { enabled: true } }, I: ListCategoriesRequest, O: ListCategoriesResponse },
4622
+ { name: "ListCategories", options: { "codegen.perms.perms": { enabled: true, attrs: [{ key: "Jobs", type: "ATTRIBUTE_TYPE_JOB_LIST" }] } }, I: ListCategoriesRequest, O: ListCategoriesResponse },
4623
4623
  { name: "CreateOrUpdateCategory", options: { "codegen.perms.perms": { enabled: true } }, I: CreateOrUpdateCategoryRequest, O: CreateOrUpdateCategoryResponse },
4624
4624
  { name: "DeleteCategory", options: { "codegen.perms.perms": { enabled: true } }, I: DeleteCategoryRequest, O: DeleteCategoryResponse },
4625
4625
  { name: "ListDocumentPins", options: { "codegen.perms.perms": { enabled: true, name: "ListDocuments" } }, I: ListDocumentPinsRequest, O: ListDocumentPinsResponse },
@@ -2071,7 +2071,7 @@ export const SubmitExamRequest = new SubmitExamRequest$Type();
2071
2071
  class SubmitExamResponse$Type extends MessageType<SubmitExamResponse> {
2072
2072
  constructor() {
2073
2073
  super("services.qualifications.SubmitExamResponse", [
2074
- { no: 1, name: "duration", kind: "message", T: () => Duration }
2074
+ { no: 1, name: "duration", kind: "message", T: () => Duration, options: { "buf.validate.field": { duration: { gte: {} } } } }
2075
2075
  ]);
2076
2076
  }
2077
2077
  create(value?: PartialMessage<SubmitExamResponse>): SubmitExamResponse {
@@ -5,6 +5,8 @@
5
5
  import type { RpcTransport } from "@protobuf-ts/runtime-rpc";
6
6
  import type { ServiceInfo } from "@protobuf-ts/runtime-rpc";
7
7
  import { CronService } from "./cron";
8
+ import type { RunCronjobResponse } from "./cron";
9
+ import type { RunCronjobRequest } from "./cron";
8
10
  import { stackIntercept } from "@protobuf-ts/runtime-rpc";
9
11
  import type { ListCronjobsResponse } from "./cron";
10
12
  import type { ListCronjobsRequest } from "./cron";
@@ -18,6 +20,10 @@ export interface ICronServiceClient {
18
20
  * @generated from protobuf rpc: ListCronjobs
19
21
  */
20
22
  listCronjobs(input: ListCronjobsRequest, options?: RpcOptions): UnaryCall<ListCronjobsRequest, ListCronjobsResponse>;
23
+ /**
24
+ * @generated from protobuf rpc: RunCronjob
25
+ */
26
+ runCronjob(input: RunCronjobRequest, options?: RpcOptions): UnaryCall<RunCronjobRequest, RunCronjobResponse>;
21
27
  }
22
28
  /**
23
29
  * @generated from protobuf service services.settings.CronService
@@ -35,4 +41,11 @@ export class CronServiceClient implements ICronServiceClient, ServiceInfo {
35
41
  const method = this.methods[0], opt = this._transport.mergeOptions(options);
36
42
  return stackIntercept<ListCronjobsRequest, ListCronjobsResponse>("unary", this._transport, method, opt, input);
37
43
  }
44
+ /**
45
+ * @generated from protobuf rpc: RunCronjob
46
+ */
47
+ runCronjob(input: RunCronjobRequest, options?: RpcOptions): UnaryCall<RunCronjobRequest, RunCronjobResponse> {
48
+ const method = this.methods[1], opt = this._transport.mergeOptions(options);
49
+ return stackIntercept<RunCronjobRequest, RunCronjobResponse>("unary", this._transport, method, opt, input);
50
+ }
38
51
  }
@@ -27,6 +27,24 @@ export interface ListCronjobsResponse {
27
27
  */
28
28
  jobs: Cronjob[];
29
29
  }
30
+ /**
31
+ * @generated from protobuf message services.settings.RunCronjobRequest
32
+ */
33
+ export interface RunCronjobRequest {
34
+ /**
35
+ * @generated from protobuf field: string name = 1
36
+ */
37
+ name: string;
38
+ }
39
+ /**
40
+ * @generated from protobuf message services.settings.RunCronjobResponse
41
+ */
42
+ export interface RunCronjobResponse {
43
+ /**
44
+ * @generated from protobuf field: uint64 sequence = 1
45
+ */
46
+ sequence: number;
47
+ }
30
48
  // @generated message type with reflection information, may provide speed optimized methods
31
49
  class ListCronjobsRequest$Type extends MessageType<ListCronjobsRequest> {
32
50
  constructor() {
@@ -112,9 +130,104 @@ class ListCronjobsResponse$Type extends MessageType<ListCronjobsResponse> {
112
130
  * @generated MessageType for protobuf message services.settings.ListCronjobsResponse
113
131
  */
114
132
  export const ListCronjobsResponse = new ListCronjobsResponse$Type();
133
+ // @generated message type with reflection information, may provide speed optimized methods
134
+ class RunCronjobRequest$Type extends MessageType<RunCronjobRequest> {
135
+ constructor() {
136
+ super("services.settings.RunCronjobRequest", [
137
+ { no: 1, name: "name", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
138
+ ]);
139
+ }
140
+ create(value?: PartialMessage<RunCronjobRequest>): RunCronjobRequest {
141
+ const message = globalThis.Object.create((this.messagePrototype!));
142
+ message.name = "";
143
+ if (value !== undefined)
144
+ reflectionMergePartial<RunCronjobRequest>(this, message, value);
145
+ return message;
146
+ }
147
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: RunCronjobRequest): RunCronjobRequest {
148
+ let message = target ?? this.create(), end = reader.pos + length;
149
+ while (reader.pos < end) {
150
+ let [fieldNo, wireType] = reader.tag();
151
+ switch (fieldNo) {
152
+ case /* string name */ 1:
153
+ message.name = reader.string();
154
+ break;
155
+ default:
156
+ let u = options.readUnknownField;
157
+ if (u === "throw")
158
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
159
+ let d = reader.skip(wireType);
160
+ if (u !== false)
161
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
162
+ }
163
+ }
164
+ return message;
165
+ }
166
+ internalBinaryWrite(message: RunCronjobRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
167
+ /* string name = 1; */
168
+ if (message.name !== "")
169
+ writer.tag(1, WireType.LengthDelimited).string(message.name);
170
+ let u = options.writeUnknownFields;
171
+ if (u !== false)
172
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
173
+ return writer;
174
+ }
175
+ }
176
+ /**
177
+ * @generated MessageType for protobuf message services.settings.RunCronjobRequest
178
+ */
179
+ export const RunCronjobRequest = new RunCronjobRequest$Type();
180
+ // @generated message type with reflection information, may provide speed optimized methods
181
+ class RunCronjobResponse$Type extends MessageType<RunCronjobResponse> {
182
+ constructor() {
183
+ super("services.settings.RunCronjobResponse", [
184
+ { no: 1, name: "sequence", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ }
185
+ ]);
186
+ }
187
+ create(value?: PartialMessage<RunCronjobResponse>): RunCronjobResponse {
188
+ const message = globalThis.Object.create((this.messagePrototype!));
189
+ message.sequence = 0;
190
+ if (value !== undefined)
191
+ reflectionMergePartial<RunCronjobResponse>(this, message, value);
192
+ return message;
193
+ }
194
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: RunCronjobResponse): RunCronjobResponse {
195
+ let message = target ?? this.create(), end = reader.pos + length;
196
+ while (reader.pos < end) {
197
+ let [fieldNo, wireType] = reader.tag();
198
+ switch (fieldNo) {
199
+ case /* uint64 sequence */ 1:
200
+ message.sequence = reader.uint64().toNumber();
201
+ break;
202
+ default:
203
+ let u = options.readUnknownField;
204
+ if (u === "throw")
205
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
206
+ let d = reader.skip(wireType);
207
+ if (u !== false)
208
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
209
+ }
210
+ }
211
+ return message;
212
+ }
213
+ internalBinaryWrite(message: RunCronjobResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
214
+ /* uint64 sequence = 1; */
215
+ if (message.sequence !== 0)
216
+ writer.tag(1, WireType.Varint).uint64(message.sequence);
217
+ let u = options.writeUnknownFields;
218
+ if (u !== false)
219
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
220
+ return writer;
221
+ }
222
+ }
223
+ /**
224
+ * @generated MessageType for protobuf message services.settings.RunCronjobResponse
225
+ */
226
+ export const RunCronjobResponse = new RunCronjobResponse$Type();
115
227
  /**
116
228
  * @generated ServiceType for protobuf service services.settings.CronService
117
229
  */
118
230
  export const CronService = new ServiceType("services.settings.CronService", [
119
- { name: "ListCronjobs", options: { "codegen.perms.perms": { enabled: true, name: "Superuser" } }, I: ListCronjobsRequest, O: ListCronjobsResponse }
231
+ { name: "ListCronjobs", options: { "codegen.perms.perms": { enabled: true, name: "Superuser" } }, I: ListCronjobsRequest, O: ListCronjobsResponse },
232
+ { name: "RunCronjob", options: { "codegen.perms.perms": { enabled: true, name: "Superuser" } }, I: RunCronjobRequest, O: RunCronjobResponse }
120
233
  ]);
@@ -5,19 +5,37 @@
5
5
  import type { RpcTransport } from "@protobuf-ts/runtime-rpc";
6
6
  import type { ServiceInfo } from "@protobuf-ts/runtime-rpc";
7
7
  import { SyncService } from "./sync";
8
+ import type { DeleteDataRequest } from "./sync";
9
+ import type { SendDataRequest } from "./sync";
10
+ import type { AddActivityRequest } from "./sync";
8
11
  import type { StreamResponse } from "./sync";
9
12
  import type { StreamRequest } from "./sync";
10
13
  import type { ServerStreamingCall } from "@protobuf-ts/runtime-rpc";
14
+ import type { DeleteVehiclesRequest } from "./sync";
11
15
  import type { DeleteDataResponse } from "./sync";
12
- import type { DeleteDataRequest } from "./sync";
16
+ import type { DeleteUsersRequest } from "./sync";
17
+ import type { SetLastCharIDRequest } from "./sync";
18
+ import type { SendUserLocationsRequest } from "./sync";
19
+ import type { SendVehiclesRequest } from "./sync";
20
+ import type { SendUsersRequest } from "./sync";
21
+ import type { SendAccountsRequest } from "./sync";
22
+ import type { SendLicensesRequest } from "./sync";
13
23
  import type { SendDataResponse } from "./sync";
14
- import type { SendDataRequest } from "./sync";
24
+ import type { SendJobsRequest } from "./sync";
25
+ import type { AddDispatchRequest } from "./sync";
26
+ import type { AddJobTimeclockRequest } from "./sync";
27
+ import type { AddColleaguePropsRequest } from "./sync";
28
+ import type { AddColleagueActivityRequest } from "./sync";
29
+ import type { AddUserPropsRequest } from "./sync";
30
+ import type { AddUserActivityRequest } from "./sync";
31
+ import type { AddUserUpdateRequest } from "./sync";
32
+ import type { AddAccountUpdateRequest } from "./sync";
33
+ import type { AddActivityResponse } from "./sync";
34
+ import type { AddUserOAuth2ConnRequest } from "./sync";
15
35
  import type { TransferAccountResponse } from "./sync";
16
36
  import type { TransferAccountRequest } from "./sync";
17
37
  import type { RegisterAccountResponse } from "./sync";
18
38
  import type { RegisterAccountRequest } from "./sync";
19
- import type { AddActivityResponse } from "./sync";
20
- import type { AddActivityRequest } from "./sync";
21
39
  import { stackIntercept } from "@protobuf-ts/runtime-rpc";
22
40
  import type { GetStatusResponse } from "./sync";
23
41
  import type { GetStatusRequest } from "./sync";
@@ -36,12 +54,6 @@ export interface ISyncServiceClient {
36
54
  * @generated from protobuf rpc: GetStatus
37
55
  */
38
56
  getStatus(input: GetStatusRequest, options?: RpcOptions): UnaryCall<GetStatusRequest, GetStatusResponse>;
39
- /**
40
- * For "tracking" activity such as "user received traffic infraction points", timeclock entries, etc.
41
- *
42
- * @generated from protobuf rpc: AddActivity
43
- */
44
- addActivity(input: AddActivityRequest, options?: RpcOptions): UnaryCall<AddActivityRequest, AddActivityResponse>;
45
57
  /**
46
58
  * Get registration token for a new user account or return the account id and username, for a given identifier/license.
47
59
  *
@@ -55,23 +67,110 @@ export interface ISyncServiceClient {
55
67
  */
56
68
  transferAccount(input: TransferAccountRequest, options?: RpcOptions): UnaryCall<TransferAccountRequest, TransferAccountResponse>;
57
69
  /**
58
- * DBSync's method of sending (mass) data to the FiveNet server for storing.
70
+ * Individual AddActivity methods
59
71
  *
60
- * @generated from protobuf rpc: SendData
72
+ * @generated from protobuf rpc: AddUserOAuth2Conn
61
73
  */
62
- sendData(input: SendDataRequest, options?: RpcOptions): UnaryCall<SendDataRequest, SendDataResponse>;
74
+ addUserOAuth2Conn(input: AddUserOAuth2ConnRequest, options?: RpcOptions): UnaryCall<AddUserOAuth2ConnRequest, AddActivityResponse>;
75
+ /**
76
+ * @generated from protobuf rpc: AddAccountUpdate
77
+ */
78
+ addAccountUpdate(input: AddAccountUpdateRequest, options?: RpcOptions): UnaryCall<AddAccountUpdateRequest, AddActivityResponse>;
79
+ /**
80
+ * @generated from protobuf rpc: AddUserUpdate
81
+ */
82
+ addUserUpdate(input: AddUserUpdateRequest, options?: RpcOptions): UnaryCall<AddUserUpdateRequest, AddActivityResponse>;
83
+ /**
84
+ * @generated from protobuf rpc: AddUserActivity
85
+ */
86
+ addUserActivity(input: AddUserActivityRequest, options?: RpcOptions): UnaryCall<AddUserActivityRequest, AddActivityResponse>;
87
+ /**
88
+ * @generated from protobuf rpc: AddUserProps
89
+ */
90
+ addUserProps(input: AddUserPropsRequest, options?: RpcOptions): UnaryCall<AddUserPropsRequest, AddActivityResponse>;
91
+ /**
92
+ * @generated from protobuf rpc: AddColleagueActivity
93
+ */
94
+ addColleagueActivity(input: AddColleagueActivityRequest, options?: RpcOptions): UnaryCall<AddColleagueActivityRequest, AddActivityResponse>;
95
+ /**
96
+ * @generated from protobuf rpc: AddColleagueProps
97
+ */
98
+ addColleagueProps(input: AddColleaguePropsRequest, options?: RpcOptions): UnaryCall<AddColleaguePropsRequest, AddActivityResponse>;
99
+ /**
100
+ * @generated from protobuf rpc: AddJobTimeclock
101
+ */
102
+ addJobTimeclock(input: AddJobTimeclockRequest, options?: RpcOptions): UnaryCall<AddJobTimeclockRequest, AddActivityResponse>;
103
+ /**
104
+ * @generated from protobuf rpc: AddDispatch
105
+ */
106
+ addDispatch(input: AddDispatchRequest, options?: RpcOptions): UnaryCall<AddDispatchRequest, AddActivityResponse>;
63
107
  /**
64
- * Way for the gameserver to delete certain data as well
108
+ * Individual SendData methods
65
109
  *
66
- * @generated from protobuf rpc: DeleteData
110
+ * @generated from protobuf rpc: SendJobs
67
111
  */
68
- deleteData(input: DeleteDataRequest, options?: RpcOptions): UnaryCall<DeleteDataRequest, DeleteDataResponse>;
112
+ sendJobs(input: SendJobsRequest, options?: RpcOptions): UnaryCall<SendJobsRequest, SendDataResponse>;
113
+ /**
114
+ * @generated from protobuf rpc: SendLicenses
115
+ */
116
+ sendLicenses(input: SendLicensesRequest, options?: RpcOptions): UnaryCall<SendLicensesRequest, SendDataResponse>;
117
+ /**
118
+ * @generated from protobuf rpc: SendAccounts
119
+ */
120
+ sendAccounts(input: SendAccountsRequest, options?: RpcOptions): UnaryCall<SendAccountsRequest, SendDataResponse>;
121
+ /**
122
+ * @generated from protobuf rpc: SendUsers
123
+ */
124
+ sendUsers(input: SendUsersRequest, options?: RpcOptions): UnaryCall<SendUsersRequest, SendDataResponse>;
125
+ /**
126
+ * @generated from protobuf rpc: SendVehicles
127
+ */
128
+ sendVehicles(input: SendVehiclesRequest, options?: RpcOptions): UnaryCall<SendVehiclesRequest, SendDataResponse>;
129
+ /**
130
+ * @generated from protobuf rpc: SendUserLocations
131
+ */
132
+ sendUserLocations(input: SendUserLocationsRequest, options?: RpcOptions): UnaryCall<SendUserLocationsRequest, SendDataResponse>;
133
+ /**
134
+ * @generated from protobuf rpc: SetLastCharID
135
+ */
136
+ setLastCharID(input: SetLastCharIDRequest, options?: RpcOptions): UnaryCall<SetLastCharIDRequest, SendDataResponse>;
137
+ /**
138
+ * Individual DeleteData methods
139
+ *
140
+ * @generated from protobuf rpc: DeleteUsers
141
+ */
142
+ deleteUsers(input: DeleteUsersRequest, options?: RpcOptions): UnaryCall<DeleteUsersRequest, DeleteDataResponse>;
143
+ /**
144
+ * @generated from protobuf rpc: DeleteVehicles
145
+ */
146
+ deleteVehicles(input: DeleteVehiclesRequest, options?: RpcOptions): UnaryCall<DeleteVehiclesRequest, DeleteDataResponse>;
69
147
  /**
70
148
  * Used for the server to stream events to the dbsync (e.g., "refresh" of user/char data)
71
149
  *
72
150
  * @generated from protobuf rpc: Stream
73
151
  */
74
152
  stream(input: StreamRequest, options?: RpcOptions): ServerStreamingCall<StreamRequest, StreamResponse>;
153
+ /**
154
+ * DEPRECATED: For "tracking" activity such as "user received traffic infraction points", timeclock entries, etc.
155
+ *
156
+ * @deprecated
157
+ * @generated from protobuf rpc: AddActivity
158
+ */
159
+ addActivity(input: AddActivityRequest, options?: RpcOptions): UnaryCall<AddActivityRequest, AddActivityResponse>;
160
+ /**
161
+ * DEPRECATED:DBSync's method of sending (mass) data to the FiveNet server for storing.
162
+ *
163
+ * @deprecated
164
+ * @generated from protobuf rpc: SendData
165
+ */
166
+ sendData(input: SendDataRequest, options?: RpcOptions): UnaryCall<SendDataRequest, SendDataResponse>;
167
+ /**
168
+ * DEPRECATED:Way for the gameserver to delete certain data as well
169
+ *
170
+ * @deprecated
171
+ * @generated from protobuf rpc: DeleteData
172
+ */
173
+ deleteData(input: DeleteDataRequest, options?: RpcOptions): UnaryCall<DeleteDataRequest, DeleteDataResponse>;
75
174
  }
76
175
  /**
77
176
  * Sync Service handles the sync of data (e.g., users, jobs) to this FiveNet instance and API calls
@@ -94,22 +193,13 @@ export class SyncServiceClient implements ISyncServiceClient, ServiceInfo {
94
193
  const method = this.methods[0], opt = this._transport.mergeOptions(options);
95
194
  return stackIntercept<GetStatusRequest, GetStatusResponse>("unary", this._transport, method, opt, input);
96
195
  }
97
- /**
98
- * For "tracking" activity such as "user received traffic infraction points", timeclock entries, etc.
99
- *
100
- * @generated from protobuf rpc: AddActivity
101
- */
102
- addActivity(input: AddActivityRequest, options?: RpcOptions): UnaryCall<AddActivityRequest, AddActivityResponse> {
103
- const method = this.methods[1], opt = this._transport.mergeOptions(options);
104
- return stackIntercept<AddActivityRequest, AddActivityResponse>("unary", this._transport, method, opt, input);
105
- }
106
196
  /**
107
197
  * Get registration token for a new user account or return the account id and username, for a given identifier/license.
108
198
  *
109
199
  * @generated from protobuf rpc: RegisterAccount
110
200
  */
111
201
  registerAccount(input: RegisterAccountRequest, options?: RpcOptions): UnaryCall<RegisterAccountRequest, RegisterAccountResponse> {
112
- const method = this.methods[2], opt = this._transport.mergeOptions(options);
202
+ const method = this.methods[1], opt = this._transport.mergeOptions(options);
113
203
  return stackIntercept<RegisterAccountRequest, RegisterAccountResponse>("unary", this._transport, method, opt, input);
114
204
  }
115
205
  /**
@@ -118,26 +208,140 @@ export class SyncServiceClient implements ISyncServiceClient, ServiceInfo {
118
208
  * @generated from protobuf rpc: TransferAccount
119
209
  */
120
210
  transferAccount(input: TransferAccountRequest, options?: RpcOptions): UnaryCall<TransferAccountRequest, TransferAccountResponse> {
121
- const method = this.methods[3], opt = this._transport.mergeOptions(options);
211
+ const method = this.methods[2], opt = this._transport.mergeOptions(options);
122
212
  return stackIntercept<TransferAccountRequest, TransferAccountResponse>("unary", this._transport, method, opt, input);
123
213
  }
124
214
  /**
125
- * DBSync's method of sending (mass) data to the FiveNet server for storing.
215
+ * Individual AddActivity methods
126
216
  *
127
- * @generated from protobuf rpc: SendData
217
+ * @generated from protobuf rpc: AddUserOAuth2Conn
128
218
  */
129
- sendData(input: SendDataRequest, options?: RpcOptions): UnaryCall<SendDataRequest, SendDataResponse> {
219
+ addUserOAuth2Conn(input: AddUserOAuth2ConnRequest, options?: RpcOptions): UnaryCall<AddUserOAuth2ConnRequest, AddActivityResponse> {
220
+ const method = this.methods[3], opt = this._transport.mergeOptions(options);
221
+ return stackIntercept<AddUserOAuth2ConnRequest, AddActivityResponse>("unary", this._transport, method, opt, input);
222
+ }
223
+ /**
224
+ * @generated from protobuf rpc: AddAccountUpdate
225
+ */
226
+ addAccountUpdate(input: AddAccountUpdateRequest, options?: RpcOptions): UnaryCall<AddAccountUpdateRequest, AddActivityResponse> {
130
227
  const method = this.methods[4], opt = this._transport.mergeOptions(options);
131
- return stackIntercept<SendDataRequest, SendDataResponse>("unary", this._transport, method, opt, input);
228
+ return stackIntercept<AddAccountUpdateRequest, AddActivityResponse>("unary", this._transport, method, opt, input);
132
229
  }
133
230
  /**
134
- * Way for the gameserver to delete certain data as well
135
- *
136
- * @generated from protobuf rpc: DeleteData
231
+ * @generated from protobuf rpc: AddUserUpdate
137
232
  */
138
- deleteData(input: DeleteDataRequest, options?: RpcOptions): UnaryCall<DeleteDataRequest, DeleteDataResponse> {
233
+ addUserUpdate(input: AddUserUpdateRequest, options?: RpcOptions): UnaryCall<AddUserUpdateRequest, AddActivityResponse> {
139
234
  const method = this.methods[5], opt = this._transport.mergeOptions(options);
140
- return stackIntercept<DeleteDataRequest, DeleteDataResponse>("unary", this._transport, method, opt, input);
235
+ return stackIntercept<AddUserUpdateRequest, AddActivityResponse>("unary", this._transport, method, opt, input);
236
+ }
237
+ /**
238
+ * @generated from protobuf rpc: AddUserActivity
239
+ */
240
+ addUserActivity(input: AddUserActivityRequest, options?: RpcOptions): UnaryCall<AddUserActivityRequest, AddActivityResponse> {
241
+ const method = this.methods[6], opt = this._transport.mergeOptions(options);
242
+ return stackIntercept<AddUserActivityRequest, AddActivityResponse>("unary", this._transport, method, opt, input);
243
+ }
244
+ /**
245
+ * @generated from protobuf rpc: AddUserProps
246
+ */
247
+ addUserProps(input: AddUserPropsRequest, options?: RpcOptions): UnaryCall<AddUserPropsRequest, AddActivityResponse> {
248
+ const method = this.methods[7], opt = this._transport.mergeOptions(options);
249
+ return stackIntercept<AddUserPropsRequest, AddActivityResponse>("unary", this._transport, method, opt, input);
250
+ }
251
+ /**
252
+ * @generated from protobuf rpc: AddColleagueActivity
253
+ */
254
+ addColleagueActivity(input: AddColleagueActivityRequest, options?: RpcOptions): UnaryCall<AddColleagueActivityRequest, AddActivityResponse> {
255
+ const method = this.methods[8], opt = this._transport.mergeOptions(options);
256
+ return stackIntercept<AddColleagueActivityRequest, AddActivityResponse>("unary", this._transport, method, opt, input);
257
+ }
258
+ /**
259
+ * @generated from protobuf rpc: AddColleagueProps
260
+ */
261
+ addColleagueProps(input: AddColleaguePropsRequest, options?: RpcOptions): UnaryCall<AddColleaguePropsRequest, AddActivityResponse> {
262
+ const method = this.methods[9], opt = this._transport.mergeOptions(options);
263
+ return stackIntercept<AddColleaguePropsRequest, AddActivityResponse>("unary", this._transport, method, opt, input);
264
+ }
265
+ /**
266
+ * @generated from protobuf rpc: AddJobTimeclock
267
+ */
268
+ addJobTimeclock(input: AddJobTimeclockRequest, options?: RpcOptions): UnaryCall<AddJobTimeclockRequest, AddActivityResponse> {
269
+ const method = this.methods[10], opt = this._transport.mergeOptions(options);
270
+ return stackIntercept<AddJobTimeclockRequest, AddActivityResponse>("unary", this._transport, method, opt, input);
271
+ }
272
+ /**
273
+ * @generated from protobuf rpc: AddDispatch
274
+ */
275
+ addDispatch(input: AddDispatchRequest, options?: RpcOptions): UnaryCall<AddDispatchRequest, AddActivityResponse> {
276
+ const method = this.methods[11], opt = this._transport.mergeOptions(options);
277
+ return stackIntercept<AddDispatchRequest, AddActivityResponse>("unary", this._transport, method, opt, input);
278
+ }
279
+ /**
280
+ * Individual SendData methods
281
+ *
282
+ * @generated from protobuf rpc: SendJobs
283
+ */
284
+ sendJobs(input: SendJobsRequest, options?: RpcOptions): UnaryCall<SendJobsRequest, SendDataResponse> {
285
+ const method = this.methods[12], opt = this._transport.mergeOptions(options);
286
+ return stackIntercept<SendJobsRequest, SendDataResponse>("unary", this._transport, method, opt, input);
287
+ }
288
+ /**
289
+ * @generated from protobuf rpc: SendLicenses
290
+ */
291
+ sendLicenses(input: SendLicensesRequest, options?: RpcOptions): UnaryCall<SendLicensesRequest, SendDataResponse> {
292
+ const method = this.methods[13], opt = this._transport.mergeOptions(options);
293
+ return stackIntercept<SendLicensesRequest, SendDataResponse>("unary", this._transport, method, opt, input);
294
+ }
295
+ /**
296
+ * @generated from protobuf rpc: SendAccounts
297
+ */
298
+ sendAccounts(input: SendAccountsRequest, options?: RpcOptions): UnaryCall<SendAccountsRequest, SendDataResponse> {
299
+ const method = this.methods[14], opt = this._transport.mergeOptions(options);
300
+ return stackIntercept<SendAccountsRequest, SendDataResponse>("unary", this._transport, method, opt, input);
301
+ }
302
+ /**
303
+ * @generated from protobuf rpc: SendUsers
304
+ */
305
+ sendUsers(input: SendUsersRequest, options?: RpcOptions): UnaryCall<SendUsersRequest, SendDataResponse> {
306
+ const method = this.methods[15], opt = this._transport.mergeOptions(options);
307
+ return stackIntercept<SendUsersRequest, SendDataResponse>("unary", this._transport, method, opt, input);
308
+ }
309
+ /**
310
+ * @generated from protobuf rpc: SendVehicles
311
+ */
312
+ sendVehicles(input: SendVehiclesRequest, options?: RpcOptions): UnaryCall<SendVehiclesRequest, SendDataResponse> {
313
+ const method = this.methods[16], opt = this._transport.mergeOptions(options);
314
+ return stackIntercept<SendVehiclesRequest, SendDataResponse>("unary", this._transport, method, opt, input);
315
+ }
316
+ /**
317
+ * @generated from protobuf rpc: SendUserLocations
318
+ */
319
+ sendUserLocations(input: SendUserLocationsRequest, options?: RpcOptions): UnaryCall<SendUserLocationsRequest, SendDataResponse> {
320
+ const method = this.methods[17], opt = this._transport.mergeOptions(options);
321
+ return stackIntercept<SendUserLocationsRequest, SendDataResponse>("unary", this._transport, method, opt, input);
322
+ }
323
+ /**
324
+ * @generated from protobuf rpc: SetLastCharID
325
+ */
326
+ setLastCharID(input: SetLastCharIDRequest, options?: RpcOptions): UnaryCall<SetLastCharIDRequest, SendDataResponse> {
327
+ const method = this.methods[18], opt = this._transport.mergeOptions(options);
328
+ return stackIntercept<SetLastCharIDRequest, SendDataResponse>("unary", this._transport, method, opt, input);
329
+ }
330
+ /**
331
+ * Individual DeleteData methods
332
+ *
333
+ * @generated from protobuf rpc: DeleteUsers
334
+ */
335
+ deleteUsers(input: DeleteUsersRequest, options?: RpcOptions): UnaryCall<DeleteUsersRequest, DeleteDataResponse> {
336
+ const method = this.methods[19], opt = this._transport.mergeOptions(options);
337
+ return stackIntercept<DeleteUsersRequest, DeleteDataResponse>("unary", this._transport, method, opt, input);
338
+ }
339
+ /**
340
+ * @generated from protobuf rpc: DeleteVehicles
341
+ */
342
+ deleteVehicles(input: DeleteVehiclesRequest, options?: RpcOptions): UnaryCall<DeleteVehiclesRequest, DeleteDataResponse> {
343
+ const method = this.methods[20], opt = this._transport.mergeOptions(options);
344
+ return stackIntercept<DeleteVehiclesRequest, DeleteDataResponse>("unary", this._transport, method, opt, input);
141
345
  }
142
346
  /**
143
347
  * Used for the server to stream events to the dbsync (e.g., "refresh" of user/char data)
@@ -145,7 +349,37 @@ export class SyncServiceClient implements ISyncServiceClient, ServiceInfo {
145
349
  * @generated from protobuf rpc: Stream
146
350
  */
147
351
  stream(input: StreamRequest, options?: RpcOptions): ServerStreamingCall<StreamRequest, StreamResponse> {
148
- const method = this.methods[6], opt = this._transport.mergeOptions(options);
352
+ const method = this.methods[21], opt = this._transport.mergeOptions(options);
149
353
  return stackIntercept<StreamRequest, StreamResponse>("serverStreaming", this._transport, method, opt, input);
150
354
  }
355
+ /**
356
+ * DEPRECATED: For "tracking" activity such as "user received traffic infraction points", timeclock entries, etc.
357
+ *
358
+ * @deprecated
359
+ * @generated from protobuf rpc: AddActivity
360
+ */
361
+ addActivity(input: AddActivityRequest, options?: RpcOptions): UnaryCall<AddActivityRequest, AddActivityResponse> {
362
+ const method = this.methods[22], opt = this._transport.mergeOptions(options);
363
+ return stackIntercept<AddActivityRequest, AddActivityResponse>("unary", this._transport, method, opt, input);
364
+ }
365
+ /**
366
+ * DEPRECATED:DBSync's method of sending (mass) data to the FiveNet server for storing.
367
+ *
368
+ * @deprecated
369
+ * @generated from protobuf rpc: SendData
370
+ */
371
+ sendData(input: SendDataRequest, options?: RpcOptions): UnaryCall<SendDataRequest, SendDataResponse> {
372
+ const method = this.methods[23], opt = this._transport.mergeOptions(options);
373
+ return stackIntercept<SendDataRequest, SendDataResponse>("unary", this._transport, method, opt, input);
374
+ }
375
+ /**
376
+ * DEPRECATED:Way for the gameserver to delete certain data as well
377
+ *
378
+ * @deprecated
379
+ * @generated from protobuf rpc: DeleteData
380
+ */
381
+ deleteData(input: DeleteDataRequest, options?: RpcOptions): UnaryCall<DeleteDataRequest, DeleteDataResponse> {
382
+ const method = this.methods[24], opt = this._transport.mergeOptions(options);
383
+ return stackIntercept<DeleteDataRequest, DeleteDataResponse>("unary", this._transport, method, opt, input);
384
+ }
151
385
  }