@fivenet-app/gen 2025.9.1 → 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 (134) hide show
  1. package/README.md +1 -1
  2. package/clients.ts +36 -0
  3. package/codegen/perms/perms.ts +186 -15
  4. package/codegen/sanitizer/sanitizer.ts +34 -1
  5. package/package.json +2 -2
  6. package/perms.ts +140 -8
  7. package/resources/accounts/accounts.ts +98 -31
  8. package/resources/accounts/{oauth2.ts → oauth2/oauth2.ts} +20 -20
  9. package/resources/audit/audit.ts +156 -38
  10. package/resources/calendar/{access.ts → access/access.ts} +30 -30
  11. package/resources/calendar/calendar.ts +17 -477
  12. package/resources/calendar/entries/entries.ts +474 -0
  13. package/resources/centrum/{access.ts → access/access.ts} +22 -22
  14. package/resources/centrum/{dispatchers.ts → dispatchers/dispatchers.ts} +14 -14
  15. package/resources/centrum/{dispatches.ts → dispatches/dispatches.ts} +151 -185
  16. package/resources/centrum/joblist.ts +136 -0
  17. package/resources/centrum/{settings.ts → settings/settings.ts} +70 -70
  18. package/resources/centrum/{units_access.ts → units/access/access.ts} +30 -30
  19. package/resources/centrum/{units.ts → units/units.ts} +131 -51
  20. package/resources/citizens/labels/labels.ts +526 -0
  21. package/resources/{users → citizens/licenses}/licenses.ts +17 -17
  22. package/resources/clientconfig/clientconfig.ts +126 -258
  23. package/resources/collab/collab.ts +4 -16
  24. package/resources/common/content/content.ts +108 -85
  25. package/resources/common/content/diff_activity.ts +267 -0
  26. package/resources/common/i18n.ts +2 -2
  27. package/resources/{common/cron → cron}/cron.ts +43 -43
  28. package/resources/documents/{access.ts → access/access.ts} +29 -52
  29. package/resources/documents/{activity.ts → activity/activity.ts} +171 -123
  30. package/resources/documents/approval/approval.ts +945 -0
  31. package/resources/documents/{category.ts → category/category.ts} +7 -7
  32. package/resources/documents/{comment.ts → comment/comment.ts} +10 -10
  33. package/resources/documents/data/data.ts +303 -0
  34. package/resources/documents/documents.ts +282 -667
  35. package/resources/{common/uuid.ts → documents/forms/forms.ts} +20 -20
  36. package/resources/documents/{pins.ts → pins/pins.ts} +5 -5
  37. package/resources/documents/references/references.ts +187 -0
  38. package/resources/documents/relations/relations.ts +184 -0
  39. package/resources/documents/{requests.ts → requests/requests.ts} +18 -18
  40. package/resources/documents/stamps/stamp.ts +355 -0
  41. package/resources/documents/{templates.ts → templates/templates.ts} +426 -84
  42. package/resources/documents/{workflow.ts → workflow/workflow.ts} +264 -26
  43. package/resources/file/filestore.ts +1 -1
  44. package/resources/{common/grpcws → grpcws}/grpcws.ts +52 -52
  45. package/resources/jobs/{activity.ts → colleagues/activity/activity.ts} +54 -54
  46. package/resources/jobs/{colleagues.ts → colleagues/colleagues.ts} +17 -28
  47. package/resources/jobs/{conduct.ts → conduct/conduct.ts} +70 -45
  48. package/resources/jobs/{labels.ts → labels/labels.ts} +34 -23
  49. package/resources/jobs/{job_props.ts → props/props.ts} +26 -38
  50. package/resources/jobs/{job_settings.ts → settings/settings.ts} +53 -53
  51. package/resources/jobs/{timeclock.ts → timeclock/timeclock.ts} +17 -17
  52. package/resources/livemap/{heatmap.ts → heatmap/heatmap.ts} +4 -4
  53. package/resources/livemap/{marker_marker.ts → markers/marker_marker.ts} +35 -35
  54. package/resources/livemap/{user_marker.ts → markers/user_marker.ts} +115 -36
  55. package/resources/mailer/{access.ts → access/access.ts} +67 -67
  56. package/resources/mailer/{email.ts → emails/email.ts} +19 -19
  57. package/resources/mailer/{events.ts → events/events.ts} +24 -24
  58. package/resources/mailer/{message.ts → messages/message.ts} +29 -29
  59. package/resources/mailer/{settings.ts → settings/settings.ts} +14 -13
  60. package/resources/mailer/{template.ts → templates/template.ts} +15 -15
  61. package/resources/mailer/{thread.ts → threads/thread.ts} +29 -29
  62. package/resources/notifications/{client_view.ts → clientview/clientview.ts} +22 -22
  63. package/resources/notifications/{events.ts → events/events.ts} +20 -20
  64. package/resources/notifications/notifications.ts +4 -4
  65. package/resources/permissions/{attributes.ts → attributes/attributes.ts} +42 -42
  66. package/resources/permissions/{events.ts → events/events.ts} +7 -7
  67. package/resources/permissions/{permissions.ts → permissions/permissions.ts} +30 -19
  68. package/resources/qualifications/{access.ts → access/access.ts} +19 -19
  69. package/resources/qualifications/{exam.ts → exam/exam.ts} +269 -141
  70. package/resources/qualifications/qualifications.ts +51 -179
  71. package/resources/settings/banner.ts +3 -3
  72. package/resources/settings/config.ts +527 -25
  73. package/resources/{documents/state.ts → settings/data.ts} +41 -20
  74. package/resources/settings/perms.ts +14 -14
  75. package/resources/stats/stats.ts +379 -0
  76. package/resources/sync/{activity.ts → activity/activity.ts} +104 -25
  77. package/resources/sync/{data.ts → data/data.ts} +405 -59
  78. package/resources/userinfo/{user_info.ts → userinfo.ts} +71 -93
  79. package/resources/users/{activity.ts → activity/activity.ts} +242 -101
  80. package/resources/users/{props.ts → props/props.ts} +91 -69
  81. package/resources/users/short/user.ts +184 -0
  82. package/resources/users/{users.ts → user.ts} +266 -195
  83. package/resources/vehicles/{activity.ts → activity/activity.ts} +20 -20
  84. package/resources/vehicles/{props.ts → props/props.ts} +28 -6
  85. package/resources/vehicles/vehicles.ts +20 -8
  86. package/resources/wiki/{access.ts → access/access.ts} +30 -30
  87. package/resources/wiki/{activity.ts → activity/activity.ts} +104 -70
  88. package/resources/wiki/page.ts +39 -15
  89. package/services/auth/auth.client.ts +23 -10
  90. package/services/auth/auth.ts +445 -262
  91. package/services/calendar/calendar.ts +56 -34
  92. package/services/centrum/centrum.ts +127 -127
  93. package/services/citizens/citizens.client.ts +0 -13
  94. package/services/citizens/citizens.ts +44 -134
  95. package/services/citizens/labels.client.ts +77 -0
  96. package/services/citizens/labels.ts +455 -0
  97. package/services/completor/completor.ts +36 -16
  98. package/services/documents/approval.client.ts +188 -0
  99. package/services/documents/approval.ts +1776 -0
  100. package/services/documents/documents.ts +164 -186
  101. package/services/documents/forms.client.ts +51 -0
  102. package/services/documents/forms.ts +232 -0
  103. package/services/documents/stamps.client.ts +77 -0
  104. package/services/documents/stamps.ts +481 -0
  105. package/services/documents/stats.client.ts +38 -0
  106. package/services/documents/stats.ts +245 -0
  107. package/services/jobs/conduct.client.ts +30 -3
  108. package/services/jobs/conduct.ts +159 -33
  109. package/services/jobs/jobs.ts +43 -43
  110. package/services/jobs/stats.client.ts +38 -0
  111. package/services/jobs/stats.ts +207 -0
  112. package/services/jobs/timeclock.ts +39 -39
  113. package/services/livemap/livemap.ts +18 -18
  114. package/services/mailer/mailer.ts +78 -78
  115. package/services/notifications/notifications.ts +35 -35
  116. package/services/qualifications/qualifications.ts +81 -46
  117. package/services/settings/accounts.client.ts +23 -10
  118. package/services/settings/accounts.ts +191 -30
  119. package/services/settings/cron.client.ts +13 -0
  120. package/services/settings/cron.ts +118 -5
  121. package/services/settings/laws.ts +1 -1
  122. package/services/settings/settings.ts +73 -52
  123. package/services/settings/system.client.ts +13 -0
  124. package/services/settings/system.ts +115 -15
  125. package/services/stats/stats.client.ts +7 -7
  126. package/services/stats/stats.ts +24 -24
  127. package/services/sync/sync.client.ts +271 -37
  128. package/services/sync/sync.ts +1525 -421
  129. package/services/vehicles/vehicles.ts +8 -8
  130. package/services/wiki/wiki.ts +8 -8
  131. package/svcs.ts +100 -6
  132. package/resources/centrum/attributes.ts +0 -183
  133. package/resources/documents/signoff.ts +0 -55
  134. package/resources/users/labels.ts +0 -160
@@ -0,0 +1,51 @@
1
+ // @generated by protobuf-ts 2.11.1 with parameter force_server_none,long_type_number,optimize_speed,ts_nocheck
2
+ // @generated from protobuf file "services/documents/forms.proto" (package "services.documents", syntax proto3)
3
+ // tslint:disable
4
+ // @ts-nocheck
5
+ import type { RpcTransport } from "@protobuf-ts/runtime-rpc";
6
+ import type { ServiceInfo } from "@protobuf-ts/runtime-rpc";
7
+ import { FormsService } from "./forms";
8
+ import type { ListFormsResponse } from "./forms";
9
+ import type { ListFormsRequest } from "./forms";
10
+ import { stackIntercept } from "@protobuf-ts/runtime-rpc";
11
+ import type { GetFormResponse } from "./forms";
12
+ import type { GetFormRequest } from "./forms";
13
+ import type { UnaryCall } from "@protobuf-ts/runtime-rpc";
14
+ import type { RpcOptions } from "@protobuf-ts/runtime-rpc";
15
+ /**
16
+ * @generated from protobuf service services.documents.FormsService
17
+ */
18
+ export interface IFormsServiceClient {
19
+ /**
20
+ * @generated from protobuf rpc: GetForm
21
+ */
22
+ getForm(input: GetFormRequest, options?: RpcOptions): UnaryCall<GetFormRequest, GetFormResponse>;
23
+ /**
24
+ * @generated from protobuf rpc: ListForms
25
+ */
26
+ listForms(input: ListFormsRequest, options?: RpcOptions): UnaryCall<ListFormsRequest, ListFormsResponse>;
27
+ }
28
+ /**
29
+ * @generated from protobuf service services.documents.FormsService
30
+ */
31
+ export class FormsServiceClient implements IFormsServiceClient, ServiceInfo {
32
+ typeName = FormsService.typeName;
33
+ methods = FormsService.methods;
34
+ options = FormsService.options;
35
+ constructor(private readonly _transport: RpcTransport) {
36
+ }
37
+ /**
38
+ * @generated from protobuf rpc: GetForm
39
+ */
40
+ getForm(input: GetFormRequest, options?: RpcOptions): UnaryCall<GetFormRequest, GetFormResponse> {
41
+ const method = this.methods[0], opt = this._transport.mergeOptions(options);
42
+ return stackIntercept<GetFormRequest, GetFormResponse>("unary", this._transport, method, opt, input);
43
+ }
44
+ /**
45
+ * @generated from protobuf rpc: ListForms
46
+ */
47
+ listForms(input: ListFormsRequest, options?: RpcOptions): UnaryCall<ListFormsRequest, ListFormsResponse> {
48
+ const method = this.methods[1], opt = this._transport.mergeOptions(options);
49
+ return stackIntercept<ListFormsRequest, ListFormsResponse>("unary", this._transport, method, opt, input);
50
+ }
51
+ }
@@ -0,0 +1,232 @@
1
+ // @generated by protobuf-ts 2.11.1 with parameter force_server_none,long_type_number,optimize_speed,ts_nocheck
2
+ // @generated from protobuf file "services/documents/forms.proto" (package "services.documents", syntax proto3)
3
+ // tslint:disable
4
+ // @ts-nocheck
5
+ import { ServiceType } from "@protobuf-ts/runtime-rpc";
6
+ import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
7
+ import type { IBinaryWriter } from "@protobuf-ts/runtime";
8
+ import { WireType } from "@protobuf-ts/runtime";
9
+ import type { BinaryReadOptions } from "@protobuf-ts/runtime";
10
+ import type { IBinaryReader } from "@protobuf-ts/runtime";
11
+ import { UnknownFieldHandler } from "@protobuf-ts/runtime";
12
+ import type { PartialMessage } from "@protobuf-ts/runtime";
13
+ import { reflectionMergePartial } from "@protobuf-ts/runtime";
14
+ import { MessageType } from "@protobuf-ts/runtime";
15
+ import { Form } from "../../resources/documents/forms/forms";
16
+ /**
17
+ * @generated from protobuf message services.documents.GetFormRequest
18
+ */
19
+ export interface GetFormRequest {
20
+ /**
21
+ * @generated from protobuf field: int64 form_id = 1
22
+ */
23
+ formId: number;
24
+ }
25
+ /**
26
+ * @generated from protobuf message services.documents.GetFormResponse
27
+ */
28
+ export interface GetFormResponse {
29
+ /**
30
+ * @generated from protobuf field: resources.documents.forms.Form form = 1
31
+ */
32
+ form?: Form;
33
+ }
34
+ /**
35
+ * @generated from protobuf message services.documents.ListFormsRequest
36
+ */
37
+ export interface ListFormsRequest {
38
+ }
39
+ /**
40
+ * @generated from protobuf message services.documents.ListFormsResponse
41
+ */
42
+ export interface ListFormsResponse {
43
+ /**
44
+ * @generated from protobuf field: repeated resources.documents.forms.Form forms = 1
45
+ */
46
+ forms: Form[];
47
+ }
48
+ // @generated message type with reflection information, may provide speed optimized methods
49
+ class GetFormRequest$Type extends MessageType<GetFormRequest> {
50
+ constructor() {
51
+ super("services.documents.GetFormRequest", [
52
+ { no: 1, name: "form_id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 2 /*LongType.NUMBER*/ }
53
+ ]);
54
+ }
55
+ create(value?: PartialMessage<GetFormRequest>): GetFormRequest {
56
+ const message = globalThis.Object.create((this.messagePrototype!));
57
+ message.formId = 0;
58
+ if (value !== undefined)
59
+ reflectionMergePartial<GetFormRequest>(this, message, value);
60
+ return message;
61
+ }
62
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetFormRequest): GetFormRequest {
63
+ let message = target ?? this.create(), end = reader.pos + length;
64
+ while (reader.pos < end) {
65
+ let [fieldNo, wireType] = reader.tag();
66
+ switch (fieldNo) {
67
+ case /* int64 form_id */ 1:
68
+ message.formId = reader.int64().toNumber();
69
+ break;
70
+ default:
71
+ let u = options.readUnknownField;
72
+ if (u === "throw")
73
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
74
+ let d = reader.skip(wireType);
75
+ if (u !== false)
76
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
77
+ }
78
+ }
79
+ return message;
80
+ }
81
+ internalBinaryWrite(message: GetFormRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
82
+ /* int64 form_id = 1; */
83
+ if (message.formId !== 0)
84
+ writer.tag(1, WireType.Varint).int64(message.formId);
85
+ let u = options.writeUnknownFields;
86
+ if (u !== false)
87
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
88
+ return writer;
89
+ }
90
+ }
91
+ /**
92
+ * @generated MessageType for protobuf message services.documents.GetFormRequest
93
+ */
94
+ export const GetFormRequest = new GetFormRequest$Type();
95
+ // @generated message type with reflection information, may provide speed optimized methods
96
+ class GetFormResponse$Type extends MessageType<GetFormResponse> {
97
+ constructor() {
98
+ super("services.documents.GetFormResponse", [
99
+ { no: 1, name: "form", kind: "message", T: () => Form }
100
+ ]);
101
+ }
102
+ create(value?: PartialMessage<GetFormResponse>): GetFormResponse {
103
+ const message = globalThis.Object.create((this.messagePrototype!));
104
+ if (value !== undefined)
105
+ reflectionMergePartial<GetFormResponse>(this, message, value);
106
+ return message;
107
+ }
108
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetFormResponse): GetFormResponse {
109
+ let message = target ?? this.create(), end = reader.pos + length;
110
+ while (reader.pos < end) {
111
+ let [fieldNo, wireType] = reader.tag();
112
+ switch (fieldNo) {
113
+ case /* resources.documents.forms.Form form */ 1:
114
+ message.form = Form.internalBinaryRead(reader, reader.uint32(), options, message.form);
115
+ break;
116
+ default:
117
+ let u = options.readUnknownField;
118
+ if (u === "throw")
119
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
120
+ let d = reader.skip(wireType);
121
+ if (u !== false)
122
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
123
+ }
124
+ }
125
+ return message;
126
+ }
127
+ internalBinaryWrite(message: GetFormResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
128
+ /* resources.documents.forms.Form form = 1; */
129
+ if (message.form)
130
+ Form.internalBinaryWrite(message.form, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
131
+ let u = options.writeUnknownFields;
132
+ if (u !== false)
133
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
134
+ return writer;
135
+ }
136
+ }
137
+ /**
138
+ * @generated MessageType for protobuf message services.documents.GetFormResponse
139
+ */
140
+ export const GetFormResponse = new GetFormResponse$Type();
141
+ // @generated message type with reflection information, may provide speed optimized methods
142
+ class ListFormsRequest$Type extends MessageType<ListFormsRequest> {
143
+ constructor() {
144
+ super("services.documents.ListFormsRequest", []);
145
+ }
146
+ create(value?: PartialMessage<ListFormsRequest>): ListFormsRequest {
147
+ const message = globalThis.Object.create((this.messagePrototype!));
148
+ if (value !== undefined)
149
+ reflectionMergePartial<ListFormsRequest>(this, message, value);
150
+ return message;
151
+ }
152
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ListFormsRequest): ListFormsRequest {
153
+ let message = target ?? this.create(), end = reader.pos + length;
154
+ while (reader.pos < end) {
155
+ let [fieldNo, wireType] = reader.tag();
156
+ switch (fieldNo) {
157
+ default:
158
+ let u = options.readUnknownField;
159
+ if (u === "throw")
160
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
161
+ let d = reader.skip(wireType);
162
+ if (u !== false)
163
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
164
+ }
165
+ }
166
+ return message;
167
+ }
168
+ internalBinaryWrite(message: ListFormsRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
169
+ let u = options.writeUnknownFields;
170
+ if (u !== false)
171
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
172
+ return writer;
173
+ }
174
+ }
175
+ /**
176
+ * @generated MessageType for protobuf message services.documents.ListFormsRequest
177
+ */
178
+ export const ListFormsRequest = new ListFormsRequest$Type();
179
+ // @generated message type with reflection information, may provide speed optimized methods
180
+ class ListFormsResponse$Type extends MessageType<ListFormsResponse> {
181
+ constructor() {
182
+ super("services.documents.ListFormsResponse", [
183
+ { no: 1, name: "forms", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Form }
184
+ ]);
185
+ }
186
+ create(value?: PartialMessage<ListFormsResponse>): ListFormsResponse {
187
+ const message = globalThis.Object.create((this.messagePrototype!));
188
+ message.forms = [];
189
+ if (value !== undefined)
190
+ reflectionMergePartial<ListFormsResponse>(this, message, value);
191
+ return message;
192
+ }
193
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ListFormsResponse): ListFormsResponse {
194
+ let message = target ?? this.create(), end = reader.pos + length;
195
+ while (reader.pos < end) {
196
+ let [fieldNo, wireType] = reader.tag();
197
+ switch (fieldNo) {
198
+ case /* repeated resources.documents.forms.Form forms */ 1:
199
+ message.forms.push(Form.internalBinaryRead(reader, reader.uint32(), options));
200
+ break;
201
+ default:
202
+ let u = options.readUnknownField;
203
+ if (u === "throw")
204
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
205
+ let d = reader.skip(wireType);
206
+ if (u !== false)
207
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
208
+ }
209
+ }
210
+ return message;
211
+ }
212
+ internalBinaryWrite(message: ListFormsResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
213
+ /* repeated resources.documents.forms.Form forms = 1; */
214
+ for (let i = 0; i < message.forms.length; i++)
215
+ Form.internalBinaryWrite(message.forms[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
216
+ let u = options.writeUnknownFields;
217
+ if (u !== false)
218
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
219
+ return writer;
220
+ }
221
+ }
222
+ /**
223
+ * @generated MessageType for protobuf message services.documents.ListFormsResponse
224
+ */
225
+ export const ListFormsResponse = new ListFormsResponse$Type();
226
+ /**
227
+ * @generated ServiceType for protobuf service services.documents.FormsService
228
+ */
229
+ export const FormsService = new ServiceType("services.documents.FormsService", [
230
+ { name: "GetForm", options: {}, I: GetFormRequest, O: GetFormResponse },
231
+ { name: "ListForms", options: {}, I: ListFormsRequest, O: ListFormsResponse }
232
+ ]);
@@ -0,0 +1,77 @@
1
+ // @generated by protobuf-ts 2.11.1 with parameter force_server_none,long_type_number,optimize_speed,ts_nocheck
2
+ // @generated from protobuf file "services/documents/stamps.proto" (package "services.documents", syntax proto3)
3
+ // tslint:disable
4
+ // @ts-nocheck
5
+ import type { RpcTransport } from "@protobuf-ts/runtime-rpc";
6
+ import type { ServiceInfo } from "@protobuf-ts/runtime-rpc";
7
+ import { StampsService } from "./stamps";
8
+ import type { DeleteStampResponse } from "./stamps";
9
+ import type { DeleteStampRequest } from "./stamps";
10
+ import type { UpsertStampResponse } from "./stamps";
11
+ import type { UpsertStampRequest } from "./stamps";
12
+ import type { GetStampResponse } from "./stamps";
13
+ import type { GetStampRequest } from "./stamps";
14
+ import { stackIntercept } from "@protobuf-ts/runtime-rpc";
15
+ import type { ListUsableStampsResponse } from "./stamps";
16
+ import type { ListUsableStampsRequest } from "./stamps";
17
+ import type { UnaryCall } from "@protobuf-ts/runtime-rpc";
18
+ import type { RpcOptions } from "@protobuf-ts/runtime-rpc";
19
+ /**
20
+ * @generated from protobuf service services.documents.StampsService
21
+ */
22
+ export interface IStampsServiceClient {
23
+ /**
24
+ * @generated from protobuf rpc: ListUsableStamps
25
+ */
26
+ listUsableStamps(input: ListUsableStampsRequest, options?: RpcOptions): UnaryCall<ListUsableStampsRequest, ListUsableStampsResponse>;
27
+ /**
28
+ * @generated from protobuf rpc: GetStamp
29
+ */
30
+ getStamp(input: GetStampRequest, options?: RpcOptions): UnaryCall<GetStampRequest, GetStampResponse>;
31
+ /**
32
+ * @generated from protobuf rpc: UpsertStamp
33
+ */
34
+ upsertStamp(input: UpsertStampRequest, options?: RpcOptions): UnaryCall<UpsertStampRequest, UpsertStampResponse>;
35
+ /**
36
+ * @generated from protobuf rpc: DeleteStamp
37
+ */
38
+ deleteStamp(input: DeleteStampRequest, options?: RpcOptions): UnaryCall<DeleteStampRequest, DeleteStampResponse>;
39
+ }
40
+ /**
41
+ * @generated from protobuf service services.documents.StampsService
42
+ */
43
+ export class StampsServiceClient implements IStampsServiceClient, ServiceInfo {
44
+ typeName = StampsService.typeName;
45
+ methods = StampsService.methods;
46
+ options = StampsService.options;
47
+ constructor(private readonly _transport: RpcTransport) {
48
+ }
49
+ /**
50
+ * @generated from protobuf rpc: ListUsableStamps
51
+ */
52
+ listUsableStamps(input: ListUsableStampsRequest, options?: RpcOptions): UnaryCall<ListUsableStampsRequest, ListUsableStampsResponse> {
53
+ const method = this.methods[0], opt = this._transport.mergeOptions(options);
54
+ return stackIntercept<ListUsableStampsRequest, ListUsableStampsResponse>("unary", this._transport, method, opt, input);
55
+ }
56
+ /**
57
+ * @generated from protobuf rpc: GetStamp
58
+ */
59
+ getStamp(input: GetStampRequest, options?: RpcOptions): UnaryCall<GetStampRequest, GetStampResponse> {
60
+ const method = this.methods[1], opt = this._transport.mergeOptions(options);
61
+ return stackIntercept<GetStampRequest, GetStampResponse>("unary", this._transport, method, opt, input);
62
+ }
63
+ /**
64
+ * @generated from protobuf rpc: UpsertStamp
65
+ */
66
+ upsertStamp(input: UpsertStampRequest, options?: RpcOptions): UnaryCall<UpsertStampRequest, UpsertStampResponse> {
67
+ const method = this.methods[2], opt = this._transport.mergeOptions(options);
68
+ return stackIntercept<UpsertStampRequest, UpsertStampResponse>("unary", this._transport, method, opt, input);
69
+ }
70
+ /**
71
+ * @generated from protobuf rpc: DeleteStamp
72
+ */
73
+ deleteStamp(input: DeleteStampRequest, options?: RpcOptions): UnaryCall<DeleteStampRequest, DeleteStampResponse> {
74
+ const method = this.methods[3], opt = this._transport.mergeOptions(options);
75
+ return stackIntercept<DeleteStampRequest, DeleteStampResponse>("unary", this._transport, method, opt, input);
76
+ }
77
+ }