entity-client 1.0.7 → 1.0.8

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 (133) hide show
  1. package/README.md +362 -0
  2. package/dist/EntityAppServerApi.d.ts +1080 -0
  3. package/dist/EntityAppServerApi.js +2 -0
  4. package/dist/EntityAppServerApi.js.map +7 -0
  5. package/dist/{EntityServerClient.d.ts → EntityServerApi.d.ts} +114 -20
  6. package/dist/EntityServerApi.js +2 -0
  7. package/dist/EntityServerApi.js.map +7 -0
  8. package/dist/client/base.d.ts +13 -4
  9. package/dist/client/base.js +1 -1
  10. package/dist/client/base.js.map +3 -3
  11. package/dist/hooks/useEntityAppServer.d.ts +18 -0
  12. package/dist/hooks/useEntityAppServer.js +2 -0
  13. package/dist/hooks/useEntityAppServer.js.map +7 -0
  14. package/dist/hooks/useEntityClient.d.ts +74 -0
  15. package/dist/hooks/useEntityClient.js +2 -0
  16. package/dist/hooks/useEntityClient.js.map +7 -0
  17. package/dist/hooks/useEntityServer.d.ts +5 -88
  18. package/dist/hooks/useEntityServer.js +1 -1
  19. package/dist/hooks/useEntityServer.js.map +3 -3
  20. package/dist/index.d.ts +6 -6
  21. package/dist/index.js +1 -1
  22. package/dist/index.js.map +4 -4
  23. package/dist/mixins/app/index.d.ts +6 -6
  24. package/dist/mixins/app/index.js +1 -1
  25. package/dist/mixins/app/index.js.map +2 -2
  26. package/dist/mixins/app/plugins/alimtalk.d.ts +68 -0
  27. package/dist/mixins/app/plugins/alimtalk.js +2 -0
  28. package/dist/mixins/app/plugins/alimtalk.js.map +7 -0
  29. package/dist/mixins/app/plugins/friendtalk.d.ts +62 -0
  30. package/dist/mixins/app/plugins/friendtalk.js +2 -0
  31. package/dist/mixins/app/plugins/friendtalk.js.map +7 -0
  32. package/dist/mixins/app/plugins/holidays.d.ts +70 -0
  33. package/dist/mixins/app/plugins/holidays.js +2 -0
  34. package/dist/mixins/app/plugins/holidays.js.map +7 -0
  35. package/dist/mixins/app/plugins/identity.d.ts +68 -0
  36. package/dist/mixins/app/plugins/identity.js +2 -0
  37. package/dist/mixins/app/plugins/identity.js.map +7 -0
  38. package/dist/mixins/app/plugins/index.d.ts +10 -0
  39. package/dist/mixins/app/plugins/index.js +2 -0
  40. package/dist/mixins/app/plugins/index.js.map +7 -0
  41. package/dist/mixins/app/plugins/llm.d.ts +130 -0
  42. package/dist/mixins/app/plugins/llm.js +2 -0
  43. package/dist/mixins/app/plugins/llm.js.map +7 -0
  44. package/dist/mixins/app/plugins/ocr.d.ts +76 -0
  45. package/dist/mixins/app/plugins/ocr.js +2 -0
  46. package/dist/mixins/app/plugins/ocr.js.map +7 -0
  47. package/dist/mixins/app/plugins/pg.d.ts +74 -0
  48. package/dist/mixins/app/plugins/pg.js +2 -0
  49. package/dist/mixins/app/plugins/pg.js.map +7 -0
  50. package/dist/mixins/app/plugins/push.d.ts +70 -0
  51. package/dist/mixins/app/plugins/push.js +2 -0
  52. package/dist/mixins/app/plugins/push.js.map +7 -0
  53. package/dist/mixins/app/plugins/sms.d.ts +68 -0
  54. package/dist/mixins/app/plugins/sms.js +2 -0
  55. package/dist/mixins/app/plugins/sms.js.map +7 -0
  56. package/dist/mixins/app/plugins/taxinvoice.d.ts +72 -0
  57. package/dist/mixins/app/plugins/taxinvoice.js +2 -0
  58. package/dist/mixins/app/plugins/taxinvoice.js.map +7 -0
  59. package/dist/mixins/app/{account.d.ts → routes/account.d.ts} +11 -5
  60. package/dist/mixins/app/routes/account.js +2 -0
  61. package/dist/mixins/app/routes/account.js.map +7 -0
  62. package/dist/mixins/app/{board.d.ts → routes/board.d.ts} +11 -5
  63. package/dist/mixins/app/routes/board.js +2 -0
  64. package/dist/mixins/app/routes/board.js.map +7 -0
  65. package/dist/mixins/app/{email-verify.d.ts → routes/email-verify.d.ts} +11 -5
  66. package/dist/mixins/app/routes/email-verify.js +2 -0
  67. package/dist/mixins/app/routes/email-verify.js.map +7 -0
  68. package/dist/mixins/app/{oauth.d.ts → routes/oauth.d.ts} +11 -5
  69. package/dist/mixins/app/routes/oauth.js +2 -0
  70. package/dist/mixins/app/routes/oauth.js.map +7 -0
  71. package/dist/mixins/app/{password-reset.d.ts → routes/password-reset.d.ts} +11 -5
  72. package/dist/mixins/app/routes/password-reset.js +2 -0
  73. package/dist/mixins/app/routes/password-reset.js.map +7 -0
  74. package/dist/mixins/app/{two-factor.d.ts → routes/two-factor.d.ts} +11 -5
  75. package/dist/mixins/app/routes/two-factor.js +2 -0
  76. package/dist/mixins/app/routes/two-factor.js.map +7 -0
  77. package/dist/mixins/server/admin.d.ts +7 -1
  78. package/dist/mixins/server/admin.js +1 -1
  79. package/dist/mixins/server/admin.js.map +2 -2
  80. package/dist/mixins/{auth.d.ts → server/auth.d.ts} +12 -20
  81. package/dist/mixins/{auth.js → server/auth.js} +1 -1
  82. package/dist/mixins/server/auth.js.map +7 -0
  83. package/dist/mixins/{entity.d.ts → server/entity.d.ts} +12 -6
  84. package/dist/mixins/server/entity.js +2 -0
  85. package/dist/mixins/server/entity.js.map +7 -0
  86. package/dist/mixins/{file.d.ts → server/file.d.ts} +12 -6
  87. package/dist/mixins/server/file.js.map +7 -0
  88. package/dist/mixins/server/index.d.ts +7 -6
  89. package/dist/mixins/server/index.js +1 -1
  90. package/dist/mixins/server/index.js.map +3 -3
  91. package/dist/mixins/{push.d.ts → server/push.d.ts} +12 -6
  92. package/dist/mixins/server/push.js.map +7 -0
  93. package/dist/mixins/{smtp.d.ts → server/smtp.d.ts} +14 -6
  94. package/dist/mixins/server/smtp.js +2 -0
  95. package/dist/mixins/server/smtp.js.map +7 -0
  96. package/dist/mixins/server/transaction.d.ts +66 -0
  97. package/dist/mixins/server/transaction.js +2 -0
  98. package/dist/mixins/server/transaction.js.map +7 -0
  99. package/dist/mixins/{utils.d.ts → server/utils.d.ts} +12 -6
  100. package/dist/mixins/server/utils.js +2 -0
  101. package/dist/mixins/server/utils.js.map +7 -0
  102. package/dist/react.d.ts +2 -0
  103. package/dist/react.js +1 -1
  104. package/dist/react.js.map +4 -4
  105. package/package.json +2 -2
  106. package/dist/EntityAppServerClient.d.ts +0 -383
  107. package/dist/EntityAppServerClient.js +0 -2
  108. package/dist/EntityAppServerClient.js.map +0 -7
  109. package/dist/EntityServerClient.js +0 -2
  110. package/dist/EntityServerClient.js.map +0 -7
  111. package/dist/mixins/app/account.js +0 -2
  112. package/dist/mixins/app/account.js.map +0 -7
  113. package/dist/mixins/app/board.js +0 -2
  114. package/dist/mixins/app/board.js.map +0 -7
  115. package/dist/mixins/app/email-verify.js +0 -2
  116. package/dist/mixins/app/email-verify.js.map +0 -7
  117. package/dist/mixins/app/oauth.js +0 -2
  118. package/dist/mixins/app/oauth.js.map +0 -7
  119. package/dist/mixins/app/password-reset.js +0 -2
  120. package/dist/mixins/app/password-reset.js.map +0 -7
  121. package/dist/mixins/app/two-factor.js +0 -2
  122. package/dist/mixins/app/two-factor.js.map +0 -7
  123. package/dist/mixins/auth.js.map +0 -7
  124. package/dist/mixins/entity.js +0 -2
  125. package/dist/mixins/entity.js.map +0 -7
  126. package/dist/mixins/file.js.map +0 -7
  127. package/dist/mixins/push.js.map +0 -7
  128. package/dist/mixins/smtp.js +0 -2
  129. package/dist/mixins/smtp.js.map +0 -7
  130. package/dist/mixins/utils.js +0 -2
  131. package/dist/mixins/utils.js.map +0 -7
  132. /package/dist/mixins/{file.js → server/file.js} +0 -0
  133. /package/dist/mixins/{push.js → server/push.js} +0 -0
@@ -0,0 +1,1080 @@
1
+ import { EntityServerApi } from "./EntityServerApi.js";
2
+ declare const EntityAppServerApi_base: {
3
+ new (...args: any[]): {
4
+ alimtalkSend<T = unknown>(body: Record<string, unknown>): Promise<T>;
5
+ alimtalkStatus<T = unknown>(seq: number): Promise<T>;
6
+ listAlimtalkTemplates<T = unknown>(): Promise<T>;
7
+ alimtalkWebhook<T = unknown>(provider: string, body: Record<string, unknown>): Promise<T>;
8
+ baseUrl: string;
9
+ token: string;
10
+ anonymousPacketToken: string;
11
+ apiKey: string;
12
+ hmacSecret: string;
13
+ encryptRequests: boolean;
14
+ csrfEnabled: boolean;
15
+ csrfToken: string;
16
+ csrfHeaderName: string;
17
+ csrfRefreshPath: string;
18
+ csrfRefreshBuffer: number;
19
+ activeTxId: string | null;
20
+ keepSession: boolean;
21
+ refreshBuffer: number;
22
+ onTokenRefreshed?: (accessToken: string, expiresIn: number) => void;
23
+ onSessionExpired?: (error: Error) => void;
24
+ _sessionRefreshToken: string | null;
25
+ _refreshTimer: ReturnType<typeof setTimeout> | null;
26
+ _csrfRefreshTimer: ReturnType<typeof setTimeout> | null;
27
+ _csrfRefreshPromise: Promise<string> | null;
28
+ configure(options: Partial<import("./types.js").EntityServerClientOptions>): void;
29
+ setToken(token: string): void;
30
+ setAnonymousPacketToken(token: string): void;
31
+ setApiKey(apiKey: string): void;
32
+ setHmacSecret(secret: string): void;
33
+ setEncryptRequests(value: boolean): void;
34
+ setCsrfToken(token: string): void;
35
+ setCsrfEnabled(enabled: boolean): void;
36
+ _scheduleKeepSession(refreshToken: string, expiresIn: number, refreshFn: (rt: string) => Promise<{
37
+ access_token: string;
38
+ expires_in: number;
39
+ }>): void;
40
+ _clearRefreshTimer(): void;
41
+ stopKeepSession(): void;
42
+ _clearCsrfRefreshTimer(): void;
43
+ stopCsrfRefresh(): void;
44
+ _scheduleCsrfRefresh(expiresIn: number): void;
45
+ refreshCsrfToken(): Promise<string>;
46
+ _applyCsrfHealth(csrf?: import("./types.js").EntityServerClientHealthCsrf | null): void;
47
+ readRequestBody<T = Record<string, unknown>>(body: ArrayBuffer | Uint8Array | string | T | null | undefined, contentType?: string, requireEncrypted?: boolean): T;
48
+ get _reqOpts(): import("./client/request.js").RequestOptions;
49
+ get http(): {
50
+ get<T>(path: string, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
51
+ post<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
52
+ put<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
53
+ patch<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
54
+ delete<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
55
+ };
56
+ requestBinary(method: string, path: string, body?: unknown, withAuth?: boolean): Promise<ArrayBuffer>;
57
+ requestForm<T>(method: string, path: string, form: FormData, withAuth?: boolean): Promise<T>;
58
+ requestFormBinary(method: string, path: string, form: FormData, withAuth?: boolean): Promise<ArrayBuffer>;
59
+ _request<T>(method: string, path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
60
+ _requestBinary(method: string, path: string, body?: unknown, withAuth?: boolean): Promise<ArrayBuffer>;
61
+ _requestForm<T>(method: string, path: string, form: FormData, withAuth?: boolean): Promise<T>;
62
+ _requestFormBinary(method: string, path: string, form: FormData, withAuth?: boolean): Promise<ArrayBuffer>;
63
+ };
64
+ } & {
65
+ new (...args: any[]): {
66
+ friendtalkSend<T = unknown>(body: Record<string, unknown>): Promise<T>;
67
+ baseUrl: string;
68
+ token: string;
69
+ anonymousPacketToken: string;
70
+ apiKey: string;
71
+ hmacSecret: string;
72
+ encryptRequests: boolean;
73
+ csrfEnabled: boolean;
74
+ csrfToken: string;
75
+ csrfHeaderName: string;
76
+ csrfRefreshPath: string;
77
+ csrfRefreshBuffer: number;
78
+ activeTxId: string | null;
79
+ keepSession: boolean;
80
+ refreshBuffer: number;
81
+ onTokenRefreshed?: (accessToken: string, expiresIn: number) => void;
82
+ onSessionExpired?: (error: Error) => void;
83
+ _sessionRefreshToken: string | null;
84
+ _refreshTimer: ReturnType<typeof setTimeout> | null;
85
+ _csrfRefreshTimer: ReturnType<typeof setTimeout> | null;
86
+ _csrfRefreshPromise: Promise<string> | null;
87
+ configure(options: Partial<import("./types.js").EntityServerClientOptions>): void;
88
+ setToken(token: string): void;
89
+ setAnonymousPacketToken(token: string): void;
90
+ setApiKey(apiKey: string): void;
91
+ setHmacSecret(secret: string): void;
92
+ setEncryptRequests(value: boolean): void;
93
+ setCsrfToken(token: string): void;
94
+ setCsrfEnabled(enabled: boolean): void;
95
+ _scheduleKeepSession(refreshToken: string, expiresIn: number, refreshFn: (rt: string) => Promise<{
96
+ access_token: string;
97
+ expires_in: number;
98
+ }>): void;
99
+ _clearRefreshTimer(): void;
100
+ stopKeepSession(): void;
101
+ _clearCsrfRefreshTimer(): void;
102
+ stopCsrfRefresh(): void;
103
+ _scheduleCsrfRefresh(expiresIn: number): void;
104
+ refreshCsrfToken(): Promise<string>;
105
+ _applyCsrfHealth(csrf?: import("./types.js").EntityServerClientHealthCsrf | null): void;
106
+ readRequestBody<T = Record<string, unknown>>(body: ArrayBuffer | Uint8Array | string | T | null | undefined, contentType?: string, requireEncrypted?: boolean): T;
107
+ get _reqOpts(): import("./client/request.js").RequestOptions;
108
+ get http(): {
109
+ get<T>(path: string, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
110
+ post<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
111
+ put<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
112
+ patch<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
113
+ delete<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
114
+ };
115
+ requestBinary(method: string, path: string, body?: unknown, withAuth?: boolean): Promise<ArrayBuffer>;
116
+ requestForm<T>(method: string, path: string, form: FormData, withAuth?: boolean): Promise<T>;
117
+ requestFormBinary(method: string, path: string, form: FormData, withAuth?: boolean): Promise<ArrayBuffer>;
118
+ _request<T>(method: string, path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
119
+ _requestBinary(method: string, path: string, body?: unknown, withAuth?: boolean): Promise<ArrayBuffer>;
120
+ _requestForm<T>(method: string, path: string, form: FormData, withAuth?: boolean): Promise<T>;
121
+ _requestFormBinary(method: string, path: string, form: FormData, withAuth?: boolean): Promise<ArrayBuffer>;
122
+ };
123
+ } & {
124
+ new (...args: any[]): {
125
+ smsSend<T = unknown>(body: Record<string, unknown>): Promise<T>;
126
+ smsStatus<T = unknown>(seq: number): Promise<T>;
127
+ smsVerificationSend<T = unknown>(body: Record<string, unknown>): Promise<T>;
128
+ smsVerificationVerify<T = unknown>(body: Record<string, unknown>): Promise<T>;
129
+ baseUrl: string;
130
+ token: string;
131
+ anonymousPacketToken: string;
132
+ apiKey: string;
133
+ hmacSecret: string;
134
+ encryptRequests: boolean;
135
+ csrfEnabled: boolean;
136
+ csrfToken: string;
137
+ csrfHeaderName: string;
138
+ csrfRefreshPath: string;
139
+ csrfRefreshBuffer: number;
140
+ activeTxId: string | null;
141
+ keepSession: boolean;
142
+ refreshBuffer: number;
143
+ onTokenRefreshed?: (accessToken: string, expiresIn: number) => void;
144
+ onSessionExpired?: (error: Error) => void;
145
+ _sessionRefreshToken: string | null;
146
+ _refreshTimer: ReturnType<typeof setTimeout> | null;
147
+ _csrfRefreshTimer: ReturnType<typeof setTimeout> | null;
148
+ _csrfRefreshPromise: Promise<string> | null;
149
+ configure(options: Partial<import("./types.js").EntityServerClientOptions>): void;
150
+ setToken(token: string): void;
151
+ setAnonymousPacketToken(token: string): void;
152
+ setApiKey(apiKey: string): void;
153
+ setHmacSecret(secret: string): void;
154
+ setEncryptRequests(value: boolean): void;
155
+ setCsrfToken(token: string): void;
156
+ setCsrfEnabled(enabled: boolean): void;
157
+ _scheduleKeepSession(refreshToken: string, expiresIn: number, refreshFn: (rt: string) => Promise<{
158
+ access_token: string;
159
+ expires_in: number;
160
+ }>): void;
161
+ _clearRefreshTimer(): void;
162
+ stopKeepSession(): void;
163
+ _clearCsrfRefreshTimer(): void;
164
+ stopCsrfRefresh(): void;
165
+ _scheduleCsrfRefresh(expiresIn: number): void;
166
+ refreshCsrfToken(): Promise<string>;
167
+ _applyCsrfHealth(csrf?: import("./types.js").EntityServerClientHealthCsrf | null): void;
168
+ readRequestBody<T = Record<string, unknown>>(body: ArrayBuffer | Uint8Array | string | T | null | undefined, contentType?: string, requireEncrypted?: boolean): T;
169
+ get _reqOpts(): import("./client/request.js").RequestOptions;
170
+ get http(): {
171
+ get<T>(path: string, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
172
+ post<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
173
+ put<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
174
+ patch<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
175
+ delete<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
176
+ };
177
+ requestBinary(method: string, path: string, body?: unknown, withAuth?: boolean): Promise<ArrayBuffer>;
178
+ requestForm<T>(method: string, path: string, form: FormData, withAuth?: boolean): Promise<T>;
179
+ requestFormBinary(method: string, path: string, form: FormData, withAuth?: boolean): Promise<ArrayBuffer>;
180
+ _request<T>(method: string, path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
181
+ _requestBinary(method: string, path: string, body?: unknown, withAuth?: boolean): Promise<ArrayBuffer>;
182
+ _requestForm<T>(method: string, path: string, form: FormData, withAuth?: boolean): Promise<T>;
183
+ _requestFormBinary(method: string, path: string, form: FormData, withAuth?: boolean): Promise<ArrayBuffer>;
184
+ };
185
+ } & {
186
+ new (...args: any[]): {
187
+ appPushSend<T = unknown>(body: Record<string, unknown>): Promise<T>;
188
+ appPushBroadcast<T = unknown>(body: Record<string, unknown>): Promise<T>;
189
+ appPushStatus<T = unknown>(seq: number): Promise<T>;
190
+ appPushRegisterDevice<T = unknown>(body: Record<string, unknown>): Promise<T>;
191
+ appPushUnregisterDevice<T = unknown>(seq: number): Promise<T>;
192
+ baseUrl: string;
193
+ token: string;
194
+ anonymousPacketToken: string;
195
+ apiKey: string;
196
+ hmacSecret: string;
197
+ encryptRequests: boolean;
198
+ csrfEnabled: boolean;
199
+ csrfToken: string;
200
+ csrfHeaderName: string;
201
+ csrfRefreshPath: string;
202
+ csrfRefreshBuffer: number;
203
+ activeTxId: string | null;
204
+ keepSession: boolean;
205
+ refreshBuffer: number;
206
+ onTokenRefreshed?: (accessToken: string, expiresIn: number) => void;
207
+ onSessionExpired?: (error: Error) => void;
208
+ _sessionRefreshToken: string | null;
209
+ _refreshTimer: ReturnType<typeof setTimeout> | null;
210
+ _csrfRefreshTimer: ReturnType<typeof setTimeout> | null;
211
+ _csrfRefreshPromise: Promise<string> | null;
212
+ configure(options: Partial<import("./types.js").EntityServerClientOptions>): void;
213
+ setToken(token: string): void;
214
+ setAnonymousPacketToken(token: string): void;
215
+ setApiKey(apiKey: string): void;
216
+ setHmacSecret(secret: string): void;
217
+ setEncryptRequests(value: boolean): void;
218
+ setCsrfToken(token: string): void;
219
+ setCsrfEnabled(enabled: boolean): void;
220
+ _scheduleKeepSession(refreshToken: string, expiresIn: number, refreshFn: (rt: string) => Promise<{
221
+ access_token: string;
222
+ expires_in: number;
223
+ }>): void;
224
+ _clearRefreshTimer(): void;
225
+ stopKeepSession(): void;
226
+ _clearCsrfRefreshTimer(): void;
227
+ stopCsrfRefresh(): void;
228
+ _scheduleCsrfRefresh(expiresIn: number): void;
229
+ refreshCsrfToken(): Promise<string>;
230
+ _applyCsrfHealth(csrf?: import("./types.js").EntityServerClientHealthCsrf | null): void;
231
+ readRequestBody<T = Record<string, unknown>>(body: ArrayBuffer | Uint8Array | string | T | null | undefined, contentType?: string, requireEncrypted?: boolean): T;
232
+ get _reqOpts(): import("./client/request.js").RequestOptions;
233
+ get http(): {
234
+ get<T>(path: string, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
235
+ post<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
236
+ put<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
237
+ patch<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
238
+ delete<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
239
+ };
240
+ requestBinary(method: string, path: string, body?: unknown, withAuth?: boolean): Promise<ArrayBuffer>;
241
+ requestForm<T>(method: string, path: string, form: FormData, withAuth?: boolean): Promise<T>;
242
+ requestFormBinary(method: string, path: string, form: FormData, withAuth?: boolean): Promise<ArrayBuffer>;
243
+ _request<T>(method: string, path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
244
+ _requestBinary(method: string, path: string, body?: unknown, withAuth?: boolean): Promise<ArrayBuffer>;
245
+ _requestForm<T>(method: string, path: string, form: FormData, withAuth?: boolean): Promise<T>;
246
+ _requestFormBinary(method: string, path: string, form: FormData, withAuth?: boolean): Promise<ArrayBuffer>;
247
+ };
248
+ } & {
249
+ new (...args: any[]): {
250
+ pgCreateOrder<T = unknown>(body: Record<string, unknown>): Promise<T>;
251
+ pgGetOrder<T = unknown>(orderId: string): Promise<T>;
252
+ pgConfirmPayment<T = unknown>(body: Record<string, unknown>): Promise<T>;
253
+ pgCancelPayment<T = unknown>(orderId: string, body?: Record<string, unknown>): Promise<T>;
254
+ pgSyncPaymentStatus<T = unknown>(orderId: string, body?: Record<string, unknown>): Promise<T>;
255
+ pgWebhook<T = unknown>(body: Record<string, unknown>): Promise<T>;
256
+ pgGetClientConfig<T = unknown>(): Promise<T>;
257
+ baseUrl: string;
258
+ token: string;
259
+ anonymousPacketToken: string;
260
+ apiKey: string;
261
+ hmacSecret: string;
262
+ encryptRequests: boolean;
263
+ csrfEnabled: boolean;
264
+ csrfToken: string;
265
+ csrfHeaderName: string;
266
+ csrfRefreshPath: string;
267
+ csrfRefreshBuffer: number;
268
+ activeTxId: string | null;
269
+ keepSession: boolean;
270
+ refreshBuffer: number;
271
+ onTokenRefreshed?: (accessToken: string, expiresIn: number) => void;
272
+ onSessionExpired?: (error: Error) => void;
273
+ _sessionRefreshToken: string | null;
274
+ _refreshTimer: ReturnType<typeof setTimeout> | null;
275
+ _csrfRefreshTimer: ReturnType<typeof setTimeout> | null;
276
+ _csrfRefreshPromise: Promise<string> | null;
277
+ configure(options: Partial<import("./types.js").EntityServerClientOptions>): void;
278
+ setToken(token: string): void;
279
+ setAnonymousPacketToken(token: string): void;
280
+ setApiKey(apiKey: string): void;
281
+ setHmacSecret(secret: string): void;
282
+ setEncryptRequests(value: boolean): void;
283
+ setCsrfToken(token: string): void;
284
+ setCsrfEnabled(enabled: boolean): void;
285
+ _scheduleKeepSession(refreshToken: string, expiresIn: number, refreshFn: (rt: string) => Promise<{
286
+ access_token: string;
287
+ expires_in: number;
288
+ }>): void;
289
+ _clearRefreshTimer(): void;
290
+ stopKeepSession(): void;
291
+ _clearCsrfRefreshTimer(): void;
292
+ stopCsrfRefresh(): void;
293
+ _scheduleCsrfRefresh(expiresIn: number): void;
294
+ refreshCsrfToken(): Promise<string>;
295
+ _applyCsrfHealth(csrf?: import("./types.js").EntityServerClientHealthCsrf | null): void;
296
+ readRequestBody<T = Record<string, unknown>>(body: ArrayBuffer | Uint8Array | string | T | null | undefined, contentType?: string, requireEncrypted?: boolean): T;
297
+ get _reqOpts(): import("./client/request.js").RequestOptions;
298
+ get http(): {
299
+ get<T>(path: string, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
300
+ post<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
301
+ put<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
302
+ patch<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
303
+ delete<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
304
+ };
305
+ requestBinary(method: string, path: string, body?: unknown, withAuth?: boolean): Promise<ArrayBuffer>;
306
+ requestForm<T>(method: string, path: string, form: FormData, withAuth?: boolean): Promise<T>;
307
+ requestFormBinary(method: string, path: string, form: FormData, withAuth?: boolean): Promise<ArrayBuffer>;
308
+ _request<T>(method: string, path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
309
+ _requestBinary(method: string, path: string, body?: unknown, withAuth?: boolean): Promise<ArrayBuffer>;
310
+ _requestForm<T>(method: string, path: string, form: FormData, withAuth?: boolean): Promise<T>;
311
+ _requestFormBinary(method: string, path: string, form: FormData, withAuth?: boolean): Promise<ArrayBuffer>;
312
+ };
313
+ } & {
314
+ new (...args: any[]): {
315
+ taxinvoiceRegistIssue<T = unknown>(body: Record<string, unknown>): Promise<T>;
316
+ taxinvoiceRegister<T = unknown>(body: Record<string, unknown>): Promise<T>;
317
+ taxinvoiceIssue<T = unknown>(seq: number): Promise<T>;
318
+ taxinvoiceCancelIssue<T = unknown>(seq: number, body?: Record<string, unknown>): Promise<T>;
319
+ taxinvoiceGetState<T = unknown>(seq: number): Promise<T>;
320
+ taxinvoiceGetDetail<T = unknown>(seq: number): Promise<T>;
321
+ baseUrl: string;
322
+ token: string;
323
+ anonymousPacketToken: string;
324
+ apiKey: string;
325
+ hmacSecret: string;
326
+ encryptRequests: boolean;
327
+ csrfEnabled: boolean;
328
+ csrfToken: string;
329
+ csrfHeaderName: string;
330
+ csrfRefreshPath: string;
331
+ csrfRefreshBuffer: number;
332
+ activeTxId: string | null;
333
+ keepSession: boolean;
334
+ refreshBuffer: number;
335
+ onTokenRefreshed?: (accessToken: string, expiresIn: number) => void;
336
+ onSessionExpired?: (error: Error) => void;
337
+ _sessionRefreshToken: string | null;
338
+ _refreshTimer: ReturnType<typeof setTimeout> | null;
339
+ _csrfRefreshTimer: ReturnType<typeof setTimeout> | null;
340
+ _csrfRefreshPromise: Promise<string> | null;
341
+ configure(options: Partial<import("./types.js").EntityServerClientOptions>): void;
342
+ setToken(token: string): void;
343
+ setAnonymousPacketToken(token: string): void;
344
+ setApiKey(apiKey: string): void;
345
+ setHmacSecret(secret: string): void;
346
+ setEncryptRequests(value: boolean): void;
347
+ setCsrfToken(token: string): void;
348
+ setCsrfEnabled(enabled: boolean): void;
349
+ _scheduleKeepSession(refreshToken: string, expiresIn: number, refreshFn: (rt: string) => Promise<{
350
+ access_token: string;
351
+ expires_in: number;
352
+ }>): void;
353
+ _clearRefreshTimer(): void;
354
+ stopKeepSession(): void;
355
+ _clearCsrfRefreshTimer(): void;
356
+ stopCsrfRefresh(): void;
357
+ _scheduleCsrfRefresh(expiresIn: number): void;
358
+ refreshCsrfToken(): Promise<string>;
359
+ _applyCsrfHealth(csrf?: import("./types.js").EntityServerClientHealthCsrf | null): void;
360
+ readRequestBody<T = Record<string, unknown>>(body: ArrayBuffer | Uint8Array | string | T | null | undefined, contentType?: string, requireEncrypted?: boolean): T;
361
+ get _reqOpts(): import("./client/request.js").RequestOptions;
362
+ get http(): {
363
+ get<T>(path: string, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
364
+ post<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
365
+ put<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
366
+ patch<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
367
+ delete<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
368
+ };
369
+ requestBinary(method: string, path: string, body?: unknown, withAuth?: boolean): Promise<ArrayBuffer>;
370
+ requestForm<T>(method: string, path: string, form: FormData, withAuth?: boolean): Promise<T>;
371
+ requestFormBinary(method: string, path: string, form: FormData, withAuth?: boolean): Promise<ArrayBuffer>;
372
+ _request<T>(method: string, path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
373
+ _requestBinary(method: string, path: string, body?: unknown, withAuth?: boolean): Promise<ArrayBuffer>;
374
+ _requestForm<T>(method: string, path: string, form: FormData, withAuth?: boolean): Promise<T>;
375
+ _requestFormBinary(method: string, path: string, form: FormData, withAuth?: boolean): Promise<ArrayBuffer>;
376
+ };
377
+ } & {
378
+ new (...args: any[]): {
379
+ ocrRecognize<T = unknown>(form: FormData): Promise<T>;
380
+ ocrRecognizeAsync<T = unknown>(form: FormData): Promise<T>;
381
+ ocrRecognizeByDocType<T = unknown>(docType: string, form: FormData): Promise<T>;
382
+ listOcrResults<T = unknown>(query?: Record<string, unknown>): Promise<T>;
383
+ getOcrResult<T = unknown>(id: string): Promise<T>;
384
+ getOcrResultText<T = unknown>(id: string): Promise<T>;
385
+ deleteOcrResult<T = unknown>(id: string): Promise<T>;
386
+ getOcrQuota<T = unknown>(): Promise<T>;
387
+ baseUrl: string;
388
+ token: string;
389
+ anonymousPacketToken: string;
390
+ apiKey: string;
391
+ hmacSecret: string;
392
+ encryptRequests: boolean;
393
+ csrfEnabled: boolean;
394
+ csrfToken: string;
395
+ csrfHeaderName: string;
396
+ csrfRefreshPath: string;
397
+ csrfRefreshBuffer: number;
398
+ activeTxId: string | null;
399
+ keepSession: boolean;
400
+ refreshBuffer: number;
401
+ onTokenRefreshed?: (accessToken: string, expiresIn: number) => void;
402
+ onSessionExpired?: (error: Error) => void;
403
+ _sessionRefreshToken: string | null;
404
+ _refreshTimer: ReturnType<typeof setTimeout> | null;
405
+ _csrfRefreshTimer: ReturnType<typeof setTimeout> | null;
406
+ _csrfRefreshPromise: Promise<string> | null;
407
+ configure(options: Partial<import("./types.js").EntityServerClientOptions>): void;
408
+ setToken(token: string): void;
409
+ setAnonymousPacketToken(token: string): void;
410
+ setApiKey(apiKey: string): void;
411
+ setHmacSecret(secret: string): void;
412
+ setEncryptRequests(value: boolean): void;
413
+ setCsrfToken(token: string): void;
414
+ setCsrfEnabled(enabled: boolean): void;
415
+ _scheduleKeepSession(refreshToken: string, expiresIn: number, refreshFn: (rt: string) => Promise<{
416
+ access_token: string;
417
+ expires_in: number;
418
+ }>): void;
419
+ _clearRefreshTimer(): void;
420
+ stopKeepSession(): void;
421
+ _clearCsrfRefreshTimer(): void;
422
+ stopCsrfRefresh(): void;
423
+ _scheduleCsrfRefresh(expiresIn: number): void;
424
+ refreshCsrfToken(): Promise<string>;
425
+ _applyCsrfHealth(csrf?: import("./types.js").EntityServerClientHealthCsrf | null): void;
426
+ readRequestBody<T = Record<string, unknown>>(body: ArrayBuffer | Uint8Array | string | T | null | undefined, contentType?: string, requireEncrypted?: boolean): T;
427
+ get _reqOpts(): import("./client/request.js").RequestOptions;
428
+ get http(): {
429
+ get<T>(path: string, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
430
+ post<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
431
+ put<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
432
+ patch<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
433
+ delete<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
434
+ };
435
+ requestBinary(method: string, path: string, body?: unknown, withAuth?: boolean): Promise<ArrayBuffer>;
436
+ requestForm<T>(method: string, path: string, form: FormData, withAuth?: boolean): Promise<T>;
437
+ requestFormBinary(method: string, path: string, form: FormData, withAuth?: boolean): Promise<ArrayBuffer>;
438
+ _request<T>(method: string, path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
439
+ _requestBinary(method: string, path: string, body?: unknown, withAuth?: boolean): Promise<ArrayBuffer>;
440
+ _requestForm<T>(method: string, path: string, form: FormData, withAuth?: boolean): Promise<T>;
441
+ _requestFormBinary(method: string, path: string, form: FormData, withAuth?: boolean): Promise<ArrayBuffer>;
442
+ };
443
+ } & {
444
+ new (...args: any[]): {
445
+ llmChat<T = unknown>(body: Record<string, unknown>): Promise<T>;
446
+ llmChatStream<T = unknown>(body: Record<string, unknown>): Promise<T>;
447
+ createLlmConversation<T = unknown>(body: Record<string, unknown>): Promise<T>;
448
+ sendLlmMessage<T = unknown>(seq: number, body: Record<string, unknown>): Promise<T>;
449
+ listLlmConversations<T = unknown>(query?: Record<string, unknown>): Promise<T>;
450
+ getLlmConversation<T = unknown>(seq: number): Promise<T>;
451
+ updateLlmConversation<T = unknown>(seq: number, body: Record<string, unknown>): Promise<T>;
452
+ deleteLlmConversation<T = unknown>(seq: number): Promise<T>;
453
+ ragUploadDocument<T = unknown>(form: FormData): Promise<T>;
454
+ ragListDocuments<T = unknown>(query?: Record<string, unknown>): Promise<T>;
455
+ ragDeleteDocument<T = unknown>(id: string): Promise<T>;
456
+ ragSearch<T = unknown>(body: Record<string, unknown>): Promise<T>;
457
+ ragChat<T = unknown>(body: Record<string, unknown>): Promise<T>;
458
+ ragChatStream<T = unknown>(body: Record<string, unknown>): Promise<T>;
459
+ ragRebuildIndex<T = unknown>(body?: Record<string, unknown>): Promise<T>;
460
+ listLlmProviders<T = unknown>(): Promise<T>;
461
+ getLlmUsage<T = unknown>(query?: Record<string, unknown>): Promise<T>;
462
+ getLlmUsageSummary<T = unknown>(query?: Record<string, unknown>): Promise<T>;
463
+ getLlmCacheStats<T = unknown>(): Promise<T>;
464
+ clearLlmCache<T = unknown>(): Promise<T>;
465
+ listLlmTemplates<T = unknown>(): Promise<T>;
466
+ llmTemplateChat<T = unknown>(name: string, body: Record<string, unknown>): Promise<T>;
467
+ llmTemplateChatStream<T = unknown>(name: string, body: Record<string, unknown>): Promise<T>;
468
+ listLlmChatbots<T = unknown>(query?: Record<string, unknown>): Promise<T>;
469
+ createLlmChatbot<T = unknown>(body: Record<string, unknown>): Promise<T>;
470
+ getLlmChatbot<T = unknown>(seq: number): Promise<T>;
471
+ updateLlmChatbot<T = unknown>(seq: number, body: Record<string, unknown>): Promise<T>;
472
+ deleteLlmChatbot<T = unknown>(seq: number): Promise<T>;
473
+ llmChatbotChat<T = unknown>(seq: number, body: Record<string, unknown>): Promise<T>;
474
+ llmChatbotChatStream<T = unknown>(seq: number, body: Record<string, unknown>): Promise<T>;
475
+ listLlmChatbotSessions<T = unknown>(seq: number, query?: Record<string, unknown>): Promise<T>;
476
+ deleteLlmChatbotSession<T = unknown>(seq: number, sessionSeq: number): Promise<T>;
477
+ listLlmProfiles<T = unknown>(query?: Record<string, unknown>): Promise<T>;
478
+ upsertLlmProfile<T = unknown>(body: Record<string, unknown>): Promise<T>;
479
+ deleteLlmProfile<T = unknown>(seq: number): Promise<T>;
480
+ baseUrl: string;
481
+ token: string;
482
+ anonymousPacketToken: string;
483
+ apiKey: string;
484
+ hmacSecret: string;
485
+ encryptRequests: boolean;
486
+ csrfEnabled: boolean;
487
+ csrfToken: string;
488
+ csrfHeaderName: string;
489
+ csrfRefreshPath: string;
490
+ csrfRefreshBuffer: number;
491
+ activeTxId: string | null;
492
+ keepSession: boolean;
493
+ refreshBuffer: number;
494
+ onTokenRefreshed?: (accessToken: string, expiresIn: number) => void;
495
+ onSessionExpired?: (error: Error) => void;
496
+ _sessionRefreshToken: string | null;
497
+ _refreshTimer: ReturnType<typeof setTimeout> | null;
498
+ _csrfRefreshTimer: ReturnType<typeof setTimeout> | null;
499
+ _csrfRefreshPromise: Promise<string> | null;
500
+ configure(options: Partial<import("./types.js").EntityServerClientOptions>): void;
501
+ setToken(token: string): void;
502
+ setAnonymousPacketToken(token: string): void;
503
+ setApiKey(apiKey: string): void;
504
+ setHmacSecret(secret: string): void;
505
+ setEncryptRequests(value: boolean): void;
506
+ setCsrfToken(token: string): void;
507
+ setCsrfEnabled(enabled: boolean): void;
508
+ _scheduleKeepSession(refreshToken: string, expiresIn: number, refreshFn: (rt: string) => Promise<{
509
+ access_token: string;
510
+ expires_in: number;
511
+ }>): void;
512
+ _clearRefreshTimer(): void;
513
+ stopKeepSession(): void;
514
+ _clearCsrfRefreshTimer(): void;
515
+ stopCsrfRefresh(): void;
516
+ _scheduleCsrfRefresh(expiresIn: number): void;
517
+ refreshCsrfToken(): Promise<string>;
518
+ _applyCsrfHealth(csrf?: import("./types.js").EntityServerClientHealthCsrf | null): void;
519
+ readRequestBody<T = Record<string, unknown>>(body: ArrayBuffer | Uint8Array | string | T | null | undefined, contentType?: string, requireEncrypted?: boolean): T;
520
+ get _reqOpts(): import("./client/request.js").RequestOptions;
521
+ get http(): {
522
+ get<T>(path: string, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
523
+ post<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
524
+ put<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
525
+ patch<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
526
+ delete<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
527
+ };
528
+ requestBinary(method: string, path: string, body?: unknown, withAuth?: boolean): Promise<ArrayBuffer>;
529
+ requestForm<T>(method: string, path: string, form: FormData, withAuth?: boolean): Promise<T>;
530
+ requestFormBinary(method: string, path: string, form: FormData, withAuth?: boolean): Promise<ArrayBuffer>;
531
+ _request<T>(method: string, path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
532
+ _requestBinary(method: string, path: string, body?: unknown, withAuth?: boolean): Promise<ArrayBuffer>;
533
+ _requestForm<T>(method: string, path: string, form: FormData, withAuth?: boolean): Promise<T>;
534
+ _requestFormBinary(method: string, path: string, form: FormData, withAuth?: boolean): Promise<ArrayBuffer>;
535
+ };
536
+ } & {
537
+ new (...args: any[]): {
538
+ identityRequest<T = unknown>(body: Record<string, unknown>): Promise<T>;
539
+ identityCallback<T = unknown>(body: Record<string, unknown>): Promise<T>;
540
+ identityResult<T = unknown>(requestId: string): Promise<T>;
541
+ identityVerifyCI<T = unknown>(body: Record<string, unknown>): Promise<T>;
542
+ baseUrl: string;
543
+ token: string;
544
+ anonymousPacketToken: string;
545
+ apiKey: string;
546
+ hmacSecret: string;
547
+ encryptRequests: boolean;
548
+ csrfEnabled: boolean;
549
+ csrfToken: string;
550
+ csrfHeaderName: string;
551
+ csrfRefreshPath: string;
552
+ csrfRefreshBuffer: number;
553
+ activeTxId: string | null;
554
+ keepSession: boolean;
555
+ refreshBuffer: number;
556
+ onTokenRefreshed?: (accessToken: string, expiresIn: number) => void;
557
+ onSessionExpired?: (error: Error) => void;
558
+ _sessionRefreshToken: string | null;
559
+ _refreshTimer: ReturnType<typeof setTimeout> | null;
560
+ _csrfRefreshTimer: ReturnType<typeof setTimeout> | null;
561
+ _csrfRefreshPromise: Promise<string> | null;
562
+ configure(options: Partial<import("./types.js").EntityServerClientOptions>): void;
563
+ setToken(token: string): void;
564
+ setAnonymousPacketToken(token: string): void;
565
+ setApiKey(apiKey: string): void;
566
+ setHmacSecret(secret: string): void;
567
+ setEncryptRequests(value: boolean): void;
568
+ setCsrfToken(token: string): void;
569
+ setCsrfEnabled(enabled: boolean): void;
570
+ _scheduleKeepSession(refreshToken: string, expiresIn: number, refreshFn: (rt: string) => Promise<{
571
+ access_token: string;
572
+ expires_in: number;
573
+ }>): void;
574
+ _clearRefreshTimer(): void;
575
+ stopKeepSession(): void;
576
+ _clearCsrfRefreshTimer(): void;
577
+ stopCsrfRefresh(): void;
578
+ _scheduleCsrfRefresh(expiresIn: number): void;
579
+ refreshCsrfToken(): Promise<string>;
580
+ _applyCsrfHealth(csrf?: import("./types.js").EntityServerClientHealthCsrf | null): void;
581
+ readRequestBody<T = Record<string, unknown>>(body: ArrayBuffer | Uint8Array | string | T | null | undefined, contentType?: string, requireEncrypted?: boolean): T;
582
+ get _reqOpts(): import("./client/request.js").RequestOptions;
583
+ get http(): {
584
+ get<T>(path: string, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
585
+ post<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
586
+ put<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
587
+ patch<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
588
+ delete<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
589
+ };
590
+ requestBinary(method: string, path: string, body?: unknown, withAuth?: boolean): Promise<ArrayBuffer>;
591
+ requestForm<T>(method: string, path: string, form: FormData, withAuth?: boolean): Promise<T>;
592
+ requestFormBinary(method: string, path: string, form: FormData, withAuth?: boolean): Promise<ArrayBuffer>;
593
+ _request<T>(method: string, path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
594
+ _requestBinary(method: string, path: string, body?: unknown, withAuth?: boolean): Promise<ArrayBuffer>;
595
+ _requestForm<T>(method: string, path: string, form: FormData, withAuth?: boolean): Promise<T>;
596
+ _requestFormBinary(method: string, path: string, form: FormData, withAuth?: boolean): Promise<ArrayBuffer>;
597
+ };
598
+ } & {
599
+ new (...args: any[]): {
600
+ listHolidays<T = unknown>(query?: {
601
+ year?: number;
602
+ month?: number;
603
+ is_holiday?: "Y" | "N";
604
+ }): Promise<T>;
605
+ getHolidayByDate<T = unknown>(locdate: string): Promise<T>;
606
+ syncHolidays<T = unknown>(body?: Record<string, unknown>): Promise<T>;
607
+ baseUrl: string;
608
+ token: string;
609
+ anonymousPacketToken: string;
610
+ apiKey: string;
611
+ hmacSecret: string;
612
+ encryptRequests: boolean;
613
+ csrfEnabled: boolean;
614
+ csrfToken: string;
615
+ csrfHeaderName: string;
616
+ csrfRefreshPath: string;
617
+ csrfRefreshBuffer: number;
618
+ activeTxId: string | null;
619
+ keepSession: boolean;
620
+ refreshBuffer: number;
621
+ onTokenRefreshed?: (accessToken: string, expiresIn: number) => void;
622
+ onSessionExpired?: (error: Error) => void;
623
+ _sessionRefreshToken: string | null;
624
+ _refreshTimer: ReturnType<typeof setTimeout> | null;
625
+ _csrfRefreshTimer: ReturnType<typeof setTimeout> | null;
626
+ _csrfRefreshPromise: Promise<string> | null;
627
+ configure(options: Partial<import("./types.js").EntityServerClientOptions>): void;
628
+ setToken(token: string): void;
629
+ setAnonymousPacketToken(token: string): void;
630
+ setApiKey(apiKey: string): void;
631
+ setHmacSecret(secret: string): void;
632
+ setEncryptRequests(value: boolean): void;
633
+ setCsrfToken(token: string): void;
634
+ setCsrfEnabled(enabled: boolean): void;
635
+ _scheduleKeepSession(refreshToken: string, expiresIn: number, refreshFn: (rt: string) => Promise<{
636
+ access_token: string;
637
+ expires_in: number;
638
+ }>): void;
639
+ _clearRefreshTimer(): void;
640
+ stopKeepSession(): void;
641
+ _clearCsrfRefreshTimer(): void;
642
+ stopCsrfRefresh(): void;
643
+ _scheduleCsrfRefresh(expiresIn: number): void;
644
+ refreshCsrfToken(): Promise<string>;
645
+ _applyCsrfHealth(csrf?: import("./types.js").EntityServerClientHealthCsrf | null): void;
646
+ readRequestBody<T = Record<string, unknown>>(body: ArrayBuffer | Uint8Array | string | T | null | undefined, contentType?: string, requireEncrypted?: boolean): T;
647
+ get _reqOpts(): import("./client/request.js").RequestOptions;
648
+ get http(): {
649
+ get<T>(path: string, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
650
+ post<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
651
+ put<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
652
+ patch<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
653
+ delete<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
654
+ };
655
+ requestBinary(method: string, path: string, body?: unknown, withAuth?: boolean): Promise<ArrayBuffer>;
656
+ requestForm<T>(method: string, path: string, form: FormData, withAuth?: boolean): Promise<T>;
657
+ requestFormBinary(method: string, path: string, form: FormData, withAuth?: boolean): Promise<ArrayBuffer>;
658
+ _request<T>(method: string, path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
659
+ _requestBinary(method: string, path: string, body?: unknown, withAuth?: boolean): Promise<ArrayBuffer>;
660
+ _requestForm<T>(method: string, path: string, form: FormData, withAuth?: boolean): Promise<T>;
661
+ _requestFormBinary(method: string, path: string, form: FormData, withAuth?: boolean): Promise<ArrayBuffer>;
662
+ };
663
+ } & {
664
+ new (...args: any[]): {
665
+ oauthAuthorizeUrl(provider: string, query?: Record<string, unknown>): string;
666
+ oauthCallback<T = unknown>(provider: string, payload?: Record<string, unknown>, method?: "GET" | "POST"): Promise<T>;
667
+ linkOAuthAccount<T = unknown>(body: Record<string, unknown>): Promise<T>;
668
+ unlinkOAuthAccount<T = unknown>(provider: string): Promise<T>;
669
+ listOAuthProviders<T = unknown>(): Promise<T>;
670
+ refreshOAuthProviderToken<T = unknown>(provider: string, body?: Record<string, unknown>): Promise<T>;
671
+ baseUrl: string;
672
+ token: string;
673
+ anonymousPacketToken: string;
674
+ apiKey: string;
675
+ hmacSecret: string;
676
+ encryptRequests: boolean;
677
+ csrfEnabled: boolean;
678
+ csrfToken: string;
679
+ csrfHeaderName: string;
680
+ csrfRefreshPath: string;
681
+ csrfRefreshBuffer: number;
682
+ activeTxId: string | null;
683
+ keepSession: boolean;
684
+ refreshBuffer: number;
685
+ onTokenRefreshed?: (accessToken: string, expiresIn: number) => void;
686
+ onSessionExpired?: (error: Error) => void;
687
+ _sessionRefreshToken: string | null;
688
+ _refreshTimer: ReturnType<typeof setTimeout> | null;
689
+ _csrfRefreshTimer: ReturnType<typeof setTimeout> | null;
690
+ _csrfRefreshPromise: Promise<string> | null;
691
+ configure(options: Partial<import("./types.js").EntityServerClientOptions>): void;
692
+ setToken(token: string): void;
693
+ setAnonymousPacketToken(token: string): void;
694
+ setApiKey(apiKey: string): void;
695
+ setHmacSecret(secret: string): void;
696
+ setEncryptRequests(value: boolean): void;
697
+ setCsrfToken(token: string): void;
698
+ setCsrfEnabled(enabled: boolean): void;
699
+ _scheduleKeepSession(refreshToken: string, expiresIn: number, refreshFn: (rt: string) => Promise<{
700
+ access_token: string;
701
+ expires_in: number;
702
+ }>): void;
703
+ _clearRefreshTimer(): void;
704
+ stopKeepSession(): void;
705
+ _clearCsrfRefreshTimer(): void;
706
+ stopCsrfRefresh(): void;
707
+ _scheduleCsrfRefresh(expiresIn: number): void;
708
+ refreshCsrfToken(): Promise<string>;
709
+ _applyCsrfHealth(csrf?: import("./types.js").EntityServerClientHealthCsrf | null): void;
710
+ readRequestBody<T = Record<string, unknown>>(body: ArrayBuffer | Uint8Array | string | T | null | undefined, contentType?: string, requireEncrypted?: boolean): T;
711
+ get _reqOpts(): import("./client/request.js").RequestOptions;
712
+ get http(): {
713
+ get<T>(path: string, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
714
+ post<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
715
+ put<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
716
+ patch<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
717
+ delete<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
718
+ };
719
+ requestBinary(method: string, path: string, body?: unknown, withAuth?: boolean): Promise<ArrayBuffer>;
720
+ requestForm<T>(method: string, path: string, form: FormData, withAuth?: boolean): Promise<T>;
721
+ requestFormBinary(method: string, path: string, form: FormData, withAuth?: boolean): Promise<ArrayBuffer>;
722
+ _request<T>(method: string, path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
723
+ _requestBinary(method: string, path: string, body?: unknown, withAuth?: boolean): Promise<ArrayBuffer>;
724
+ _requestForm<T>(method: string, path: string, form: FormData, withAuth?: boolean): Promise<T>;
725
+ _requestFormBinary(method: string, path: string, form: FormData, withAuth?: boolean): Promise<ArrayBuffer>;
726
+ };
727
+ } & {
728
+ new (...args: any[]): {
729
+ setupTwoFactor<T = unknown>(body?: Record<string, unknown>): Promise<T>;
730
+ verifyTwoFactorSetup<T = unknown>(body: Record<string, unknown>): Promise<T>;
731
+ disableTwoFactor<T = unknown>(): Promise<T>;
732
+ getTwoFactorStatus<T = unknown>(): Promise<T>;
733
+ regenerateTwoFactorRecoveryCodes<T = unknown>(): Promise<T>;
734
+ verifyTwoFactor<T = unknown>(body: Record<string, unknown>): Promise<T>;
735
+ recoverTwoFactorAccess<T = unknown>(body: Record<string, unknown>): Promise<T>;
736
+ baseUrl: string;
737
+ token: string;
738
+ anonymousPacketToken: string;
739
+ apiKey: string;
740
+ hmacSecret: string;
741
+ encryptRequests: boolean;
742
+ csrfEnabled: boolean;
743
+ csrfToken: string;
744
+ csrfHeaderName: string;
745
+ csrfRefreshPath: string;
746
+ csrfRefreshBuffer: number;
747
+ activeTxId: string | null;
748
+ keepSession: boolean;
749
+ refreshBuffer: number;
750
+ onTokenRefreshed?: (accessToken: string, expiresIn: number) => void;
751
+ onSessionExpired?: (error: Error) => void;
752
+ _sessionRefreshToken: string | null;
753
+ _refreshTimer: ReturnType<typeof setTimeout> | null;
754
+ _csrfRefreshTimer: ReturnType<typeof setTimeout> | null;
755
+ _csrfRefreshPromise: Promise<string> | null;
756
+ configure(options: Partial<import("./types.js").EntityServerClientOptions>): void;
757
+ setToken(token: string): void;
758
+ setAnonymousPacketToken(token: string): void;
759
+ setApiKey(apiKey: string): void;
760
+ setHmacSecret(secret: string): void;
761
+ setEncryptRequests(value: boolean): void;
762
+ setCsrfToken(token: string): void;
763
+ setCsrfEnabled(enabled: boolean): void;
764
+ _scheduleKeepSession(refreshToken: string, expiresIn: number, refreshFn: (rt: string) => Promise<{
765
+ access_token: string;
766
+ expires_in: number;
767
+ }>): void;
768
+ _clearRefreshTimer(): void;
769
+ stopKeepSession(): void;
770
+ _clearCsrfRefreshTimer(): void;
771
+ stopCsrfRefresh(): void;
772
+ _scheduleCsrfRefresh(expiresIn: number): void;
773
+ refreshCsrfToken(): Promise<string>;
774
+ _applyCsrfHealth(csrf?: import("./types.js").EntityServerClientHealthCsrf | null): void;
775
+ readRequestBody<T = Record<string, unknown>>(body: ArrayBuffer | Uint8Array | string | T | null | undefined, contentType?: string, requireEncrypted?: boolean): T;
776
+ get _reqOpts(): import("./client/request.js").RequestOptions;
777
+ get http(): {
778
+ get<T>(path: string, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
779
+ post<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
780
+ put<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
781
+ patch<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
782
+ delete<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
783
+ };
784
+ requestBinary(method: string, path: string, body?: unknown, withAuth?: boolean): Promise<ArrayBuffer>;
785
+ requestForm<T>(method: string, path: string, form: FormData, withAuth?: boolean): Promise<T>;
786
+ requestFormBinary(method: string, path: string, form: FormData, withAuth?: boolean): Promise<ArrayBuffer>;
787
+ _request<T>(method: string, path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
788
+ _requestBinary(method: string, path: string, body?: unknown, withAuth?: boolean): Promise<ArrayBuffer>;
789
+ _requestForm<T>(method: string, path: string, form: FormData, withAuth?: boolean): Promise<T>;
790
+ _requestFormBinary(method: string, path: string, form: FormData, withAuth?: boolean): Promise<ArrayBuffer>;
791
+ };
792
+ } & {
793
+ new (...args: any[]): {
794
+ requestPasswordReset<T = unknown>(body: Record<string, unknown> | {
795
+ email: string;
796
+ }): Promise<T>;
797
+ validatePasswordResetToken<T = unknown>(token: string): Promise<T>;
798
+ verifyPasswordReset<T = unknown>(body: Record<string, unknown>): Promise<T>;
799
+ baseUrl: string;
800
+ token: string;
801
+ anonymousPacketToken: string;
802
+ apiKey: string;
803
+ hmacSecret: string;
804
+ encryptRequests: boolean;
805
+ csrfEnabled: boolean;
806
+ csrfToken: string;
807
+ csrfHeaderName: string;
808
+ csrfRefreshPath: string;
809
+ csrfRefreshBuffer: number;
810
+ activeTxId: string | null;
811
+ keepSession: boolean;
812
+ refreshBuffer: number;
813
+ onTokenRefreshed?: (accessToken: string, expiresIn: number) => void;
814
+ onSessionExpired?: (error: Error) => void;
815
+ _sessionRefreshToken: string | null;
816
+ _refreshTimer: ReturnType<typeof setTimeout> | null;
817
+ _csrfRefreshTimer: ReturnType<typeof setTimeout> | null;
818
+ _csrfRefreshPromise: Promise<string> | null;
819
+ configure(options: Partial<import("./types.js").EntityServerClientOptions>): void;
820
+ setToken(token: string): void;
821
+ setAnonymousPacketToken(token: string): void;
822
+ setApiKey(apiKey: string): void;
823
+ setHmacSecret(secret: string): void;
824
+ setEncryptRequests(value: boolean): void;
825
+ setCsrfToken(token: string): void;
826
+ setCsrfEnabled(enabled: boolean): void;
827
+ _scheduleKeepSession(refreshToken: string, expiresIn: number, refreshFn: (rt: string) => Promise<{
828
+ access_token: string;
829
+ expires_in: number;
830
+ }>): void;
831
+ _clearRefreshTimer(): void;
832
+ stopKeepSession(): void;
833
+ _clearCsrfRefreshTimer(): void;
834
+ stopCsrfRefresh(): void;
835
+ _scheduleCsrfRefresh(expiresIn: number): void;
836
+ refreshCsrfToken(): Promise<string>;
837
+ _applyCsrfHealth(csrf?: import("./types.js").EntityServerClientHealthCsrf | null): void;
838
+ readRequestBody<T = Record<string, unknown>>(body: ArrayBuffer | Uint8Array | string | T | null | undefined, contentType?: string, requireEncrypted?: boolean): T;
839
+ get _reqOpts(): import("./client/request.js").RequestOptions;
840
+ get http(): {
841
+ get<T>(path: string, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
842
+ post<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
843
+ put<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
844
+ patch<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
845
+ delete<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
846
+ };
847
+ requestBinary(method: string, path: string, body?: unknown, withAuth?: boolean): Promise<ArrayBuffer>;
848
+ requestForm<T>(method: string, path: string, form: FormData, withAuth?: boolean): Promise<T>;
849
+ requestFormBinary(method: string, path: string, form: FormData, withAuth?: boolean): Promise<ArrayBuffer>;
850
+ _request<T>(method: string, path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
851
+ _requestBinary(method: string, path: string, body?: unknown, withAuth?: boolean): Promise<ArrayBuffer>;
852
+ _requestForm<T>(method: string, path: string, form: FormData, withAuth?: boolean): Promise<T>;
853
+ _requestFormBinary(method: string, path: string, form: FormData, withAuth?: boolean): Promise<ArrayBuffer>;
854
+ };
855
+ } & {
856
+ new (...args: any[]): {
857
+ sendEmailVerification<T = unknown>(body: Record<string, unknown>): Promise<T>;
858
+ confirmEmailVerification<T = unknown>(body: Record<string, unknown>): Promise<T>;
859
+ activateEmailVerification<T = unknown>(query: Record<string, unknown>): Promise<T>;
860
+ getEmailVerificationStatus<T = unknown>(): Promise<T>;
861
+ changeVerifiedEmail<T = unknown>(body: Record<string, unknown>): Promise<T>;
862
+ baseUrl: string;
863
+ token: string;
864
+ anonymousPacketToken: string;
865
+ apiKey: string;
866
+ hmacSecret: string;
867
+ encryptRequests: boolean;
868
+ csrfEnabled: boolean;
869
+ csrfToken: string;
870
+ csrfHeaderName: string;
871
+ csrfRefreshPath: string;
872
+ csrfRefreshBuffer: number;
873
+ activeTxId: string | null;
874
+ keepSession: boolean;
875
+ refreshBuffer: number;
876
+ onTokenRefreshed?: (accessToken: string, expiresIn: number) => void;
877
+ onSessionExpired?: (error: Error) => void;
878
+ _sessionRefreshToken: string | null;
879
+ _refreshTimer: ReturnType<typeof setTimeout> | null;
880
+ _csrfRefreshTimer: ReturnType<typeof setTimeout> | null;
881
+ _csrfRefreshPromise: Promise<string> | null;
882
+ configure(options: Partial<import("./types.js").EntityServerClientOptions>): void;
883
+ setToken(token: string): void;
884
+ setAnonymousPacketToken(token: string): void;
885
+ setApiKey(apiKey: string): void;
886
+ setHmacSecret(secret: string): void;
887
+ setEncryptRequests(value: boolean): void;
888
+ setCsrfToken(token: string): void;
889
+ setCsrfEnabled(enabled: boolean): void;
890
+ _scheduleKeepSession(refreshToken: string, expiresIn: number, refreshFn: (rt: string) => Promise<{
891
+ access_token: string;
892
+ expires_in: number;
893
+ }>): void;
894
+ _clearRefreshTimer(): void;
895
+ stopKeepSession(): void;
896
+ _clearCsrfRefreshTimer(): void;
897
+ stopCsrfRefresh(): void;
898
+ _scheduleCsrfRefresh(expiresIn: number): void;
899
+ refreshCsrfToken(): Promise<string>;
900
+ _applyCsrfHealth(csrf?: import("./types.js").EntityServerClientHealthCsrf | null): void;
901
+ readRequestBody<T = Record<string, unknown>>(body: ArrayBuffer | Uint8Array | string | T | null | undefined, contentType?: string, requireEncrypted?: boolean): T;
902
+ get _reqOpts(): import("./client/request.js").RequestOptions;
903
+ get http(): {
904
+ get<T>(path: string, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
905
+ post<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
906
+ put<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
907
+ patch<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
908
+ delete<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
909
+ };
910
+ requestBinary(method: string, path: string, body?: unknown, withAuth?: boolean): Promise<ArrayBuffer>;
911
+ requestForm<T>(method: string, path: string, form: FormData, withAuth?: boolean): Promise<T>;
912
+ requestFormBinary(method: string, path: string, form: FormData, withAuth?: boolean): Promise<ArrayBuffer>;
913
+ _request<T>(method: string, path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
914
+ _requestBinary(method: string, path: string, body?: unknown, withAuth?: boolean): Promise<ArrayBuffer>;
915
+ _requestForm<T>(method: string, path: string, form: FormData, withAuth?: boolean): Promise<T>;
916
+ _requestFormBinary(method: string, path: string, form: FormData, withAuth?: boolean): Promise<ArrayBuffer>;
917
+ };
918
+ } & {
919
+ new (...args: any[]): {
920
+ listBoardCategories<T = unknown>(query?: Record<string, unknown>): Promise<T>;
921
+ getBoardCategory<T = unknown>(seq: number): Promise<T>;
922
+ createBoardCategory<T = unknown>(body: Record<string, unknown>): Promise<T>;
923
+ updateBoardCategory<T = unknown>(seq: number, body: Record<string, unknown>): Promise<T>;
924
+ deleteBoardCategory<T = unknown>(seq: number): Promise<T>;
925
+ listBoardPosts<T = unknown>(category: string, query?: Record<string, unknown>): Promise<T>;
926
+ getBoardPost<T = unknown>(seq: number): Promise<T>;
927
+ createBoardPost<T = unknown>(category: string, body: Record<string, unknown>): Promise<T>;
928
+ updateBoardPost<T = unknown>(seq: number, body: Record<string, unknown>): Promise<T>;
929
+ deleteBoardPost<T = unknown>(seq: number): Promise<T>;
930
+ listBoardComments<T = unknown>(postSeq: number, query?: Record<string, unknown>): Promise<T>;
931
+ createBoardComment<T = unknown>(postSeq: number, body: Record<string, unknown>): Promise<T>;
932
+ updateBoardComment<T = unknown>(seq: number, body: Record<string, unknown>): Promise<T>;
933
+ deleteBoardComment<T = unknown>(seq: number): Promise<T>;
934
+ listBoardFiles<T = unknown>(postSeq: number): Promise<T>;
935
+ uploadBoardFile<T = unknown>(postSeq: number, file: File | Blob): Promise<T>;
936
+ boardFileUrl(uuid: string): string;
937
+ deleteBoardFile<T = unknown>(uuid: string): Promise<T>;
938
+ createBoardGuestPost<T = unknown>(category: string, body: Record<string, unknown>): Promise<T>;
939
+ authenticateBoardGuestPost<T = unknown>(seq: number, body: Record<string, unknown>): Promise<T>;
940
+ toggleBoardPostLike<T = unknown>(seq: number): Promise<T>;
941
+ acceptBoardPost<T = unknown>(seq: number): Promise<T>;
942
+ rateBoardPost<T = unknown>(seq: number, body: Record<string, unknown>): Promise<T>;
943
+ rateBoardComment<T = unknown>(seq: number, body: Record<string, unknown>): Promise<T>;
944
+ listBoardTags<T = unknown>(query?: Record<string, unknown>): Promise<T>;
945
+ setBoardPostTags<T = unknown>(seq: number, body: Record<string, unknown>): Promise<T>;
946
+ reportBoardPost<T = unknown>(seq: number, body: Record<string, unknown>): Promise<T>;
947
+ reportBoardComment<T = unknown>(seq: number, body: Record<string, unknown>): Promise<T>;
948
+ listBoardReports<T = unknown>(query?: Record<string, unknown>): Promise<T>;
949
+ updateBoardReport<T = unknown>(seq: number, body: Record<string, unknown>): Promise<T>;
950
+ markBoardPostRead<T = unknown>(seq: number): Promise<T>;
951
+ listBoardMentions<T = unknown>(query?: Record<string, unknown>): Promise<T>;
952
+ markBoardMentionRead<T = unknown>(seq: number): Promise<T>;
953
+ baseUrl: string;
954
+ token: string;
955
+ anonymousPacketToken: string;
956
+ apiKey: string;
957
+ hmacSecret: string;
958
+ encryptRequests: boolean;
959
+ csrfEnabled: boolean;
960
+ csrfToken: string;
961
+ csrfHeaderName: string;
962
+ csrfRefreshPath: string;
963
+ csrfRefreshBuffer: number;
964
+ activeTxId: string | null;
965
+ keepSession: boolean;
966
+ refreshBuffer: number;
967
+ onTokenRefreshed?: (accessToken: string, expiresIn: number) => void;
968
+ onSessionExpired?: (error: Error) => void;
969
+ _sessionRefreshToken: string | null;
970
+ _refreshTimer: ReturnType<typeof setTimeout> | null;
971
+ _csrfRefreshTimer: ReturnType<typeof setTimeout> | null;
972
+ _csrfRefreshPromise: Promise<string> | null;
973
+ configure(options: Partial<import("./types.js").EntityServerClientOptions>): void;
974
+ setToken(token: string): void;
975
+ setAnonymousPacketToken(token: string): void;
976
+ setApiKey(apiKey: string): void;
977
+ setHmacSecret(secret: string): void;
978
+ setEncryptRequests(value: boolean): void;
979
+ setCsrfToken(token: string): void;
980
+ setCsrfEnabled(enabled: boolean): void;
981
+ _scheduleKeepSession(refreshToken: string, expiresIn: number, refreshFn: (rt: string) => Promise<{
982
+ access_token: string;
983
+ expires_in: number;
984
+ }>): void;
985
+ _clearRefreshTimer(): void;
986
+ stopKeepSession(): void;
987
+ _clearCsrfRefreshTimer(): void;
988
+ stopCsrfRefresh(): void;
989
+ _scheduleCsrfRefresh(expiresIn: number): void;
990
+ refreshCsrfToken(): Promise<string>;
991
+ _applyCsrfHealth(csrf?: import("./types.js").EntityServerClientHealthCsrf | null): void;
992
+ readRequestBody<T = Record<string, unknown>>(body: ArrayBuffer | Uint8Array | string | T | null | undefined, contentType?: string, requireEncrypted?: boolean): T;
993
+ get _reqOpts(): import("./client/request.js").RequestOptions;
994
+ get http(): {
995
+ get<T>(path: string, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
996
+ post<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
997
+ put<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
998
+ patch<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
999
+ delete<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
1000
+ };
1001
+ requestBinary(method: string, path: string, body?: unknown, withAuth?: boolean): Promise<ArrayBuffer>;
1002
+ requestForm<T>(method: string, path: string, form: FormData, withAuth?: boolean): Promise<T>;
1003
+ requestFormBinary(method: string, path: string, form: FormData, withAuth?: boolean): Promise<ArrayBuffer>;
1004
+ _request<T>(method: string, path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
1005
+ _requestBinary(method: string, path: string, body?: unknown, withAuth?: boolean): Promise<ArrayBuffer>;
1006
+ _requestForm<T>(method: string, path: string, form: FormData, withAuth?: boolean): Promise<T>;
1007
+ _requestFormBinary(method: string, path: string, form: FormData, withAuth?: boolean): Promise<ArrayBuffer>;
1008
+ };
1009
+ } & {
1010
+ new (...args: any[]): {
1011
+ accountRegister<T = unknown>(body: Record<string, unknown>): Promise<T>;
1012
+ accountWithdraw<T = unknown>(body?: Record<string, unknown>): Promise<T>;
1013
+ accountChangePassword<T = unknown>(body: {
1014
+ current_password: string;
1015
+ new_password: string;
1016
+ }): Promise<T>;
1017
+ accountReactivate<T = unknown>(body: Record<string, unknown>): Promise<T>;
1018
+ listAccountBiometrics<T = unknown>(): Promise<T>;
1019
+ registerAccountBiometric<T = unknown>(body: Record<string, unknown>): Promise<T>;
1020
+ deleteAccountBiometric<T = unknown>(seq: number): Promise<T>;
1021
+ baseUrl: string;
1022
+ token: string;
1023
+ anonymousPacketToken: string;
1024
+ apiKey: string;
1025
+ hmacSecret: string;
1026
+ encryptRequests: boolean;
1027
+ csrfEnabled: boolean;
1028
+ csrfToken: string;
1029
+ csrfHeaderName: string;
1030
+ csrfRefreshPath: string;
1031
+ csrfRefreshBuffer: number;
1032
+ activeTxId: string | null;
1033
+ keepSession: boolean;
1034
+ refreshBuffer: number;
1035
+ onTokenRefreshed?: (accessToken: string, expiresIn: number) => void;
1036
+ onSessionExpired?: (error: Error) => void;
1037
+ _sessionRefreshToken: string | null;
1038
+ _refreshTimer: ReturnType<typeof setTimeout> | null;
1039
+ _csrfRefreshTimer: ReturnType<typeof setTimeout> | null;
1040
+ _csrfRefreshPromise: Promise<string> | null;
1041
+ configure(options: Partial<import("./types.js").EntityServerClientOptions>): void;
1042
+ setToken(token: string): void;
1043
+ setAnonymousPacketToken(token: string): void;
1044
+ setApiKey(apiKey: string): void;
1045
+ setHmacSecret(secret: string): void;
1046
+ setEncryptRequests(value: boolean): void;
1047
+ setCsrfToken(token: string): void;
1048
+ setCsrfEnabled(enabled: boolean): void;
1049
+ _scheduleKeepSession(refreshToken: string, expiresIn: number, refreshFn: (rt: string) => Promise<{
1050
+ access_token: string;
1051
+ expires_in: number;
1052
+ }>): void;
1053
+ _clearRefreshTimer(): void;
1054
+ stopKeepSession(): void;
1055
+ _clearCsrfRefreshTimer(): void;
1056
+ stopCsrfRefresh(): void;
1057
+ _scheduleCsrfRefresh(expiresIn: number): void;
1058
+ refreshCsrfToken(): Promise<string>;
1059
+ _applyCsrfHealth(csrf?: import("./types.js").EntityServerClientHealthCsrf | null): void;
1060
+ readRequestBody<T = Record<string, unknown>>(body: ArrayBuffer | Uint8Array | string | T | null | undefined, contentType?: string, requireEncrypted?: boolean): T;
1061
+ get _reqOpts(): import("./client/request.js").RequestOptions;
1062
+ get http(): {
1063
+ get<T>(path: string, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
1064
+ post<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
1065
+ put<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
1066
+ patch<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
1067
+ delete<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
1068
+ };
1069
+ requestBinary(method: string, path: string, body?: unknown, withAuth?: boolean): Promise<ArrayBuffer>;
1070
+ requestForm<T>(method: string, path: string, form: FormData, withAuth?: boolean): Promise<T>;
1071
+ requestFormBinary(method: string, path: string, form: FormData, withAuth?: boolean): Promise<ArrayBuffer>;
1072
+ _request<T>(method: string, path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
1073
+ _requestBinary(method: string, path: string, body?: unknown, withAuth?: boolean): Promise<ArrayBuffer>;
1074
+ _requestForm<T>(method: string, path: string, form: FormData, withAuth?: boolean): Promise<T>;
1075
+ _requestFormBinary(method: string, path: string, form: FormData, withAuth?: boolean): Promise<ArrayBuffer>;
1076
+ };
1077
+ } & typeof EntityServerApi;
1078
+ export declare class EntityAppServerApi extends EntityAppServerApi_base {
1079
+ }
1080
+ export {};