entity-client 1.0.15 → 1.0.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/EntityAppServerApi.d.ts +368 -416
- package/dist/EntityServerApi.d.ts +192 -216
- package/dist/client/base.d.ts +26 -40
- package/dist/client/base.js +1 -1
- package/dist/client/base.js.map +3 -3
- package/dist/index.js +1 -1
- package/dist/index.js.map +3 -3
- package/dist/mixins/app/plugins/alimtalk.d.ts +23 -26
- package/dist/mixins/app/plugins/friendtalk.d.ts +23 -26
- package/dist/mixins/app/plugins/holidays.d.ts +23 -26
- package/dist/mixins/app/plugins/identity.d.ts +23 -26
- package/dist/mixins/app/plugins/llm.d.ts +23 -26
- package/dist/mixins/app/plugins/ocr.d.ts +23 -26
- package/dist/mixins/app/plugins/pg.d.ts +23 -26
- package/dist/mixins/app/plugins/push.d.ts +23 -26
- package/dist/mixins/app/plugins/sms.d.ts +23 -26
- package/dist/mixins/app/plugins/taxinvoice.d.ts +23 -26
- package/dist/mixins/app/routes/account.d.ts +23 -26
- package/dist/mixins/app/routes/board.d.ts +23 -26
- package/dist/mixins/app/routes/board.js.map +2 -2
- package/dist/mixins/app/routes/email-verify.d.ts +23 -26
- package/dist/mixins/app/routes/oauth.d.ts +23 -26
- package/dist/mixins/app/routes/password-reset.d.ts +23 -26
- package/dist/mixins/app/routes/two-factor.d.ts +23 -26
- package/dist/mixins/server/admin.d.ts +29 -32
- package/dist/mixins/server/admin.js +1 -1
- package/dist/mixins/server/admin.js.map +2 -2
- package/dist/mixins/server/auth.d.ts +25 -28
- package/dist/mixins/server/auth.js +1 -1
- package/dist/mixins/server/auth.js.map +2 -2
- package/dist/mixins/server/entity.d.ts +23 -26
- package/dist/mixins/server/entity.js +1 -1
- package/dist/mixins/server/entity.js.map +2 -2
- package/dist/mixins/server/file.d.ts +23 -26
- package/dist/mixins/server/file.js +1 -1
- package/dist/mixins/server/file.js.map +2 -2
- package/dist/mixins/server/push.d.ts +23 -26
- package/dist/mixins/server/smtp.d.ts +23 -26
- package/dist/mixins/server/smtp.js +1 -1
- package/dist/mixins/server/smtp.js.map +2 -2
- package/dist/mixins/server/transaction.d.ts +23 -26
- package/dist/mixins/server/transaction.js +1 -1
- package/dist/mixins/server/transaction.js.map +2 -2
- package/dist/mixins/server/utils.d.ts +23 -26
- package/dist/mixins/server/utils.js +1 -1
- package/dist/mixins/server/utils.js.map +2 -2
- package/dist/react.js +1 -1
- package/dist/react.js.map +3 -3
- package/package.json +1 -1
|
@@ -14,30 +14,30 @@ declare const EntityAppServerApi_base: {
|
|
|
14
14
|
csrfEnabled: boolean;
|
|
15
15
|
csrfHeaderName: string;
|
|
16
16
|
csrfCookieName: string;
|
|
17
|
-
|
|
17
|
+
csrfRefresher: (() => Promise<void>) | null;
|
|
18
18
|
activeTxId: string | null;
|
|
19
19
|
keepSession: boolean;
|
|
20
20
|
refreshBuffer: number;
|
|
21
21
|
onTokenRefreshed?: (accessToken: string, expiresIn: number) => void;
|
|
22
22
|
onSessionExpired?: (error: Error) => void;
|
|
23
23
|
onHealthChange?: (online: boolean) => void;
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
24
|
+
sessionRefreshToken: string | null;
|
|
25
|
+
refreshTimer: ReturnType<typeof setTimeout> | null;
|
|
26
|
+
healthTickTimer: ReturnType<typeof setInterval> | null;
|
|
27
|
+
healthTickPromise: Promise<unknown> | null;
|
|
28
28
|
realtimeEnabled: boolean;
|
|
29
29
|
realtimePath: string;
|
|
30
30
|
realtimeAutoConnect: boolean;
|
|
31
31
|
realtimeAutoReconnect: boolean;
|
|
32
32
|
realtimeReconnectDelayMs: number;
|
|
33
33
|
realtimeStatus: import("./types.js").RealtimeConnectionStatus;
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
34
|
+
realtimeSocket: WebSocket | null;
|
|
35
|
+
realtimeConnectPromise: Promise<void> | null;
|
|
36
|
+
realtimeReconnectTimer: ReturnType<typeof setTimeout> | null;
|
|
37
|
+
realtimeShouldReconnect: boolean;
|
|
38
|
+
realtimeMessageListeners: Set<import("./types.js").RealtimeMessageListener>;
|
|
39
|
+
realtimeStatusListeners: Set<import("./types.js").RealtimeStatusListener>;
|
|
40
|
+
realtimeEventListeners: Map<string, Set<import("./types.js").RealtimeMessageListener>>;
|
|
41
41
|
configure(options: Partial<import("./types.js").EntityServerClientOptions>): void;
|
|
42
42
|
setToken(token: string): void;
|
|
43
43
|
setAnonymousPacketToken(token: string): void;
|
|
@@ -58,21 +58,21 @@ declare const EntityAppServerApi_base: {
|
|
|
58
58
|
unsubscribeRealtime(subscriptions: string[]): boolean;
|
|
59
59
|
startHealthTick(intervalMs?: number): void;
|
|
60
60
|
stopHealthTick(): void;
|
|
61
|
-
|
|
61
|
+
scheduleKeepSession(refreshToken: string, expiresIn: number, refreshFn: (rt: string) => Promise<{
|
|
62
62
|
access_token: string;
|
|
63
63
|
expires_in: number;
|
|
64
64
|
}>): void;
|
|
65
|
-
|
|
65
|
+
clearRefreshTimer(): void;
|
|
66
66
|
stopKeepSession(): void;
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
67
|
+
applyRealtimeOptions(options?: boolean | import("./types.js").RealtimeClientOptions): void;
|
|
68
|
+
buildRealtimeUrl(): string;
|
|
69
|
+
handleRealtimeMessage(payload: unknown): void;
|
|
70
|
+
scheduleRealtimeReconnect(reason: string): void;
|
|
71
|
+
clearRealtimeReconnectTimer(): void;
|
|
72
|
+
setRealtimeStatus(status: import("./types.js").RealtimeConnectionStatus, reason?: string, error?: Error): void;
|
|
73
|
+
applyCsrfHealth(): void;
|
|
74
74
|
readRequestBody<T = Record<string, unknown>>(body: ArrayBuffer | Uint8Array | string | T | null | undefined, contentType?: string, requireEncrypted?: boolean): T;
|
|
75
|
-
get
|
|
75
|
+
get reqOpts(): import("./client/request.js").RequestOptions;
|
|
76
76
|
get http(): {
|
|
77
77
|
get<T>(path: string, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
|
|
78
78
|
post<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
|
|
@@ -80,13 +80,10 @@ declare const EntityAppServerApi_base: {
|
|
|
80
80
|
patch<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
|
|
81
81
|
delete<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
|
|
82
82
|
};
|
|
83
|
+
request<T>(method: string, path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
|
|
83
84
|
requestBinary(method: string, path: string, body?: unknown, withAuth?: boolean): Promise<ArrayBuffer>;
|
|
84
85
|
requestForm<T>(method: string, path: string, form: FormData, withAuth?: boolean): Promise<T>;
|
|
85
86
|
requestFormBinary(method: string, path: string, form: FormData, withAuth?: boolean): Promise<ArrayBuffer>;
|
|
86
|
-
_request<T>(method: string, path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
|
|
87
|
-
_requestBinary(method: string, path: string, body?: unknown, withAuth?: boolean): Promise<ArrayBuffer>;
|
|
88
|
-
_requestForm<T>(method: string, path: string, form: FormData, withAuth?: boolean): Promise<T>;
|
|
89
|
-
_requestFormBinary(method: string, path: string, form: FormData, withAuth?: boolean): Promise<ArrayBuffer>;
|
|
90
87
|
};
|
|
91
88
|
} & {
|
|
92
89
|
new (...args: any[]): {
|
|
@@ -100,30 +97,30 @@ declare const EntityAppServerApi_base: {
|
|
|
100
97
|
csrfEnabled: boolean;
|
|
101
98
|
csrfHeaderName: string;
|
|
102
99
|
csrfCookieName: string;
|
|
103
|
-
|
|
100
|
+
csrfRefresher: (() => Promise<void>) | null;
|
|
104
101
|
activeTxId: string | null;
|
|
105
102
|
keepSession: boolean;
|
|
106
103
|
refreshBuffer: number;
|
|
107
104
|
onTokenRefreshed?: (accessToken: string, expiresIn: number) => void;
|
|
108
105
|
onSessionExpired?: (error: Error) => void;
|
|
109
106
|
onHealthChange?: (online: boolean) => void;
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
107
|
+
sessionRefreshToken: string | null;
|
|
108
|
+
refreshTimer: ReturnType<typeof setTimeout> | null;
|
|
109
|
+
healthTickTimer: ReturnType<typeof setInterval> | null;
|
|
110
|
+
healthTickPromise: Promise<unknown> | null;
|
|
114
111
|
realtimeEnabled: boolean;
|
|
115
112
|
realtimePath: string;
|
|
116
113
|
realtimeAutoConnect: boolean;
|
|
117
114
|
realtimeAutoReconnect: boolean;
|
|
118
115
|
realtimeReconnectDelayMs: number;
|
|
119
116
|
realtimeStatus: import("./types.js").RealtimeConnectionStatus;
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
117
|
+
realtimeSocket: WebSocket | null;
|
|
118
|
+
realtimeConnectPromise: Promise<void> | null;
|
|
119
|
+
realtimeReconnectTimer: ReturnType<typeof setTimeout> | null;
|
|
120
|
+
realtimeShouldReconnect: boolean;
|
|
121
|
+
realtimeMessageListeners: Set<import("./types.js").RealtimeMessageListener>;
|
|
122
|
+
realtimeStatusListeners: Set<import("./types.js").RealtimeStatusListener>;
|
|
123
|
+
realtimeEventListeners: Map<string, Set<import("./types.js").RealtimeMessageListener>>;
|
|
127
124
|
configure(options: Partial<import("./types.js").EntityServerClientOptions>): void;
|
|
128
125
|
setToken(token: string): void;
|
|
129
126
|
setAnonymousPacketToken(token: string): void;
|
|
@@ -144,21 +141,21 @@ declare const EntityAppServerApi_base: {
|
|
|
144
141
|
unsubscribeRealtime(subscriptions: string[]): boolean;
|
|
145
142
|
startHealthTick(intervalMs?: number): void;
|
|
146
143
|
stopHealthTick(): void;
|
|
147
|
-
|
|
144
|
+
scheduleKeepSession(refreshToken: string, expiresIn: number, refreshFn: (rt: string) => Promise<{
|
|
148
145
|
access_token: string;
|
|
149
146
|
expires_in: number;
|
|
150
147
|
}>): void;
|
|
151
|
-
|
|
148
|
+
clearRefreshTimer(): void;
|
|
152
149
|
stopKeepSession(): void;
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
150
|
+
applyRealtimeOptions(options?: boolean | import("./types.js").RealtimeClientOptions): void;
|
|
151
|
+
buildRealtimeUrl(): string;
|
|
152
|
+
handleRealtimeMessage(payload: unknown): void;
|
|
153
|
+
scheduleRealtimeReconnect(reason: string): void;
|
|
154
|
+
clearRealtimeReconnectTimer(): void;
|
|
155
|
+
setRealtimeStatus(status: import("./types.js").RealtimeConnectionStatus, reason?: string, error?: Error): void;
|
|
156
|
+
applyCsrfHealth(): void;
|
|
160
157
|
readRequestBody<T = Record<string, unknown>>(body: ArrayBuffer | Uint8Array | string | T | null | undefined, contentType?: string, requireEncrypted?: boolean): T;
|
|
161
|
-
get
|
|
158
|
+
get reqOpts(): import("./client/request.js").RequestOptions;
|
|
162
159
|
get http(): {
|
|
163
160
|
get<T>(path: string, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
|
|
164
161
|
post<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
|
|
@@ -166,13 +163,10 @@ declare const EntityAppServerApi_base: {
|
|
|
166
163
|
patch<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
|
|
167
164
|
delete<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
|
|
168
165
|
};
|
|
166
|
+
request<T>(method: string, path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
|
|
169
167
|
requestBinary(method: string, path: string, body?: unknown, withAuth?: boolean): Promise<ArrayBuffer>;
|
|
170
168
|
requestForm<T>(method: string, path: string, form: FormData, withAuth?: boolean): Promise<T>;
|
|
171
169
|
requestFormBinary(method: string, path: string, form: FormData, withAuth?: boolean): Promise<ArrayBuffer>;
|
|
172
|
-
_request<T>(method: string, path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
|
|
173
|
-
_requestBinary(method: string, path: string, body?: unknown, withAuth?: boolean): Promise<ArrayBuffer>;
|
|
174
|
-
_requestForm<T>(method: string, path: string, form: FormData, withAuth?: boolean): Promise<T>;
|
|
175
|
-
_requestFormBinary(method: string, path: string, form: FormData, withAuth?: boolean): Promise<ArrayBuffer>;
|
|
176
170
|
};
|
|
177
171
|
} & {
|
|
178
172
|
new (...args: any[]): {
|
|
@@ -189,30 +183,30 @@ declare const EntityAppServerApi_base: {
|
|
|
189
183
|
csrfEnabled: boolean;
|
|
190
184
|
csrfHeaderName: string;
|
|
191
185
|
csrfCookieName: string;
|
|
192
|
-
|
|
186
|
+
csrfRefresher: (() => Promise<void>) | null;
|
|
193
187
|
activeTxId: string | null;
|
|
194
188
|
keepSession: boolean;
|
|
195
189
|
refreshBuffer: number;
|
|
196
190
|
onTokenRefreshed?: (accessToken: string, expiresIn: number) => void;
|
|
197
191
|
onSessionExpired?: (error: Error) => void;
|
|
198
192
|
onHealthChange?: (online: boolean) => void;
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
193
|
+
sessionRefreshToken: string | null;
|
|
194
|
+
refreshTimer: ReturnType<typeof setTimeout> | null;
|
|
195
|
+
healthTickTimer: ReturnType<typeof setInterval> | null;
|
|
196
|
+
healthTickPromise: Promise<unknown> | null;
|
|
203
197
|
realtimeEnabled: boolean;
|
|
204
198
|
realtimePath: string;
|
|
205
199
|
realtimeAutoConnect: boolean;
|
|
206
200
|
realtimeAutoReconnect: boolean;
|
|
207
201
|
realtimeReconnectDelayMs: number;
|
|
208
202
|
realtimeStatus: import("./types.js").RealtimeConnectionStatus;
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
203
|
+
realtimeSocket: WebSocket | null;
|
|
204
|
+
realtimeConnectPromise: Promise<void> | null;
|
|
205
|
+
realtimeReconnectTimer: ReturnType<typeof setTimeout> | null;
|
|
206
|
+
realtimeShouldReconnect: boolean;
|
|
207
|
+
realtimeMessageListeners: Set<import("./types.js").RealtimeMessageListener>;
|
|
208
|
+
realtimeStatusListeners: Set<import("./types.js").RealtimeStatusListener>;
|
|
209
|
+
realtimeEventListeners: Map<string, Set<import("./types.js").RealtimeMessageListener>>;
|
|
216
210
|
configure(options: Partial<import("./types.js").EntityServerClientOptions>): void;
|
|
217
211
|
setToken(token: string): void;
|
|
218
212
|
setAnonymousPacketToken(token: string): void;
|
|
@@ -233,21 +227,21 @@ declare const EntityAppServerApi_base: {
|
|
|
233
227
|
unsubscribeRealtime(subscriptions: string[]): boolean;
|
|
234
228
|
startHealthTick(intervalMs?: number): void;
|
|
235
229
|
stopHealthTick(): void;
|
|
236
|
-
|
|
230
|
+
scheduleKeepSession(refreshToken: string, expiresIn: number, refreshFn: (rt: string) => Promise<{
|
|
237
231
|
access_token: string;
|
|
238
232
|
expires_in: number;
|
|
239
233
|
}>): void;
|
|
240
|
-
|
|
234
|
+
clearRefreshTimer(): void;
|
|
241
235
|
stopKeepSession(): void;
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
236
|
+
applyRealtimeOptions(options?: boolean | import("./types.js").RealtimeClientOptions): void;
|
|
237
|
+
buildRealtimeUrl(): string;
|
|
238
|
+
handleRealtimeMessage(payload: unknown): void;
|
|
239
|
+
scheduleRealtimeReconnect(reason: string): void;
|
|
240
|
+
clearRealtimeReconnectTimer(): void;
|
|
241
|
+
setRealtimeStatus(status: import("./types.js").RealtimeConnectionStatus, reason?: string, error?: Error): void;
|
|
242
|
+
applyCsrfHealth(): void;
|
|
249
243
|
readRequestBody<T = Record<string, unknown>>(body: ArrayBuffer | Uint8Array | string | T | null | undefined, contentType?: string, requireEncrypted?: boolean): T;
|
|
250
|
-
get
|
|
244
|
+
get reqOpts(): import("./client/request.js").RequestOptions;
|
|
251
245
|
get http(): {
|
|
252
246
|
get<T>(path: string, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
|
|
253
247
|
post<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
|
|
@@ -255,13 +249,10 @@ declare const EntityAppServerApi_base: {
|
|
|
255
249
|
patch<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
|
|
256
250
|
delete<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
|
|
257
251
|
};
|
|
252
|
+
request<T>(method: string, path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
|
|
258
253
|
requestBinary(method: string, path: string, body?: unknown, withAuth?: boolean): Promise<ArrayBuffer>;
|
|
259
254
|
requestForm<T>(method: string, path: string, form: FormData, withAuth?: boolean): Promise<T>;
|
|
260
255
|
requestFormBinary(method: string, path: string, form: FormData, withAuth?: boolean): Promise<ArrayBuffer>;
|
|
261
|
-
_request<T>(method: string, path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
|
|
262
|
-
_requestBinary(method: string, path: string, body?: unknown, withAuth?: boolean): Promise<ArrayBuffer>;
|
|
263
|
-
_requestForm<T>(method: string, path: string, form: FormData, withAuth?: boolean): Promise<T>;
|
|
264
|
-
_requestFormBinary(method: string, path: string, form: FormData, withAuth?: boolean): Promise<ArrayBuffer>;
|
|
265
256
|
};
|
|
266
257
|
} & {
|
|
267
258
|
new (...args: any[]): {
|
|
@@ -279,30 +270,30 @@ declare const EntityAppServerApi_base: {
|
|
|
279
270
|
csrfEnabled: boolean;
|
|
280
271
|
csrfHeaderName: string;
|
|
281
272
|
csrfCookieName: string;
|
|
282
|
-
|
|
273
|
+
csrfRefresher: (() => Promise<void>) | null;
|
|
283
274
|
activeTxId: string | null;
|
|
284
275
|
keepSession: boolean;
|
|
285
276
|
refreshBuffer: number;
|
|
286
277
|
onTokenRefreshed?: (accessToken: string, expiresIn: number) => void;
|
|
287
278
|
onSessionExpired?: (error: Error) => void;
|
|
288
279
|
onHealthChange?: (online: boolean) => void;
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
280
|
+
sessionRefreshToken: string | null;
|
|
281
|
+
refreshTimer: ReturnType<typeof setTimeout> | null;
|
|
282
|
+
healthTickTimer: ReturnType<typeof setInterval> | null;
|
|
283
|
+
healthTickPromise: Promise<unknown> | null;
|
|
293
284
|
realtimeEnabled: boolean;
|
|
294
285
|
realtimePath: string;
|
|
295
286
|
realtimeAutoConnect: boolean;
|
|
296
287
|
realtimeAutoReconnect: boolean;
|
|
297
288
|
realtimeReconnectDelayMs: number;
|
|
298
289
|
realtimeStatus: import("./types.js").RealtimeConnectionStatus;
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
290
|
+
realtimeSocket: WebSocket | null;
|
|
291
|
+
realtimeConnectPromise: Promise<void> | null;
|
|
292
|
+
realtimeReconnectTimer: ReturnType<typeof setTimeout> | null;
|
|
293
|
+
realtimeShouldReconnect: boolean;
|
|
294
|
+
realtimeMessageListeners: Set<import("./types.js").RealtimeMessageListener>;
|
|
295
|
+
realtimeStatusListeners: Set<import("./types.js").RealtimeStatusListener>;
|
|
296
|
+
realtimeEventListeners: Map<string, Set<import("./types.js").RealtimeMessageListener>>;
|
|
306
297
|
configure(options: Partial<import("./types.js").EntityServerClientOptions>): void;
|
|
307
298
|
setToken(token: string): void;
|
|
308
299
|
setAnonymousPacketToken(token: string): void;
|
|
@@ -323,21 +314,21 @@ declare const EntityAppServerApi_base: {
|
|
|
323
314
|
unsubscribeRealtime(subscriptions: string[]): boolean;
|
|
324
315
|
startHealthTick(intervalMs?: number): void;
|
|
325
316
|
stopHealthTick(): void;
|
|
326
|
-
|
|
317
|
+
scheduleKeepSession(refreshToken: string, expiresIn: number, refreshFn: (rt: string) => Promise<{
|
|
327
318
|
access_token: string;
|
|
328
319
|
expires_in: number;
|
|
329
320
|
}>): void;
|
|
330
|
-
|
|
321
|
+
clearRefreshTimer(): void;
|
|
331
322
|
stopKeepSession(): void;
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
323
|
+
applyRealtimeOptions(options?: boolean | import("./types.js").RealtimeClientOptions): void;
|
|
324
|
+
buildRealtimeUrl(): string;
|
|
325
|
+
handleRealtimeMessage(payload: unknown): void;
|
|
326
|
+
scheduleRealtimeReconnect(reason: string): void;
|
|
327
|
+
clearRealtimeReconnectTimer(): void;
|
|
328
|
+
setRealtimeStatus(status: import("./types.js").RealtimeConnectionStatus, reason?: string, error?: Error): void;
|
|
329
|
+
applyCsrfHealth(): void;
|
|
339
330
|
readRequestBody<T = Record<string, unknown>>(body: ArrayBuffer | Uint8Array | string | T | null | undefined, contentType?: string, requireEncrypted?: boolean): T;
|
|
340
|
-
get
|
|
331
|
+
get reqOpts(): import("./client/request.js").RequestOptions;
|
|
341
332
|
get http(): {
|
|
342
333
|
get<T>(path: string, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
|
|
343
334
|
post<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
|
|
@@ -345,13 +336,10 @@ declare const EntityAppServerApi_base: {
|
|
|
345
336
|
patch<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
|
|
346
337
|
delete<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
|
|
347
338
|
};
|
|
339
|
+
request<T>(method: string, path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
|
|
348
340
|
requestBinary(method: string, path: string, body?: unknown, withAuth?: boolean): Promise<ArrayBuffer>;
|
|
349
341
|
requestForm<T>(method: string, path: string, form: FormData, withAuth?: boolean): Promise<T>;
|
|
350
342
|
requestFormBinary(method: string, path: string, form: FormData, withAuth?: boolean): Promise<ArrayBuffer>;
|
|
351
|
-
_request<T>(method: string, path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
|
|
352
|
-
_requestBinary(method: string, path: string, body?: unknown, withAuth?: boolean): Promise<ArrayBuffer>;
|
|
353
|
-
_requestForm<T>(method: string, path: string, form: FormData, withAuth?: boolean): Promise<T>;
|
|
354
|
-
_requestFormBinary(method: string, path: string, form: FormData, withAuth?: boolean): Promise<ArrayBuffer>;
|
|
355
343
|
};
|
|
356
344
|
} & {
|
|
357
345
|
new (...args: any[]): {
|
|
@@ -371,30 +359,30 @@ declare const EntityAppServerApi_base: {
|
|
|
371
359
|
csrfEnabled: boolean;
|
|
372
360
|
csrfHeaderName: string;
|
|
373
361
|
csrfCookieName: string;
|
|
374
|
-
|
|
362
|
+
csrfRefresher: (() => Promise<void>) | null;
|
|
375
363
|
activeTxId: string | null;
|
|
376
364
|
keepSession: boolean;
|
|
377
365
|
refreshBuffer: number;
|
|
378
366
|
onTokenRefreshed?: (accessToken: string, expiresIn: number) => void;
|
|
379
367
|
onSessionExpired?: (error: Error) => void;
|
|
380
368
|
onHealthChange?: (online: boolean) => void;
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
369
|
+
sessionRefreshToken: string | null;
|
|
370
|
+
refreshTimer: ReturnType<typeof setTimeout> | null;
|
|
371
|
+
healthTickTimer: ReturnType<typeof setInterval> | null;
|
|
372
|
+
healthTickPromise: Promise<unknown> | null;
|
|
385
373
|
realtimeEnabled: boolean;
|
|
386
374
|
realtimePath: string;
|
|
387
375
|
realtimeAutoConnect: boolean;
|
|
388
376
|
realtimeAutoReconnect: boolean;
|
|
389
377
|
realtimeReconnectDelayMs: number;
|
|
390
378
|
realtimeStatus: import("./types.js").RealtimeConnectionStatus;
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
379
|
+
realtimeSocket: WebSocket | null;
|
|
380
|
+
realtimeConnectPromise: Promise<void> | null;
|
|
381
|
+
realtimeReconnectTimer: ReturnType<typeof setTimeout> | null;
|
|
382
|
+
realtimeShouldReconnect: boolean;
|
|
383
|
+
realtimeMessageListeners: Set<import("./types.js").RealtimeMessageListener>;
|
|
384
|
+
realtimeStatusListeners: Set<import("./types.js").RealtimeStatusListener>;
|
|
385
|
+
realtimeEventListeners: Map<string, Set<import("./types.js").RealtimeMessageListener>>;
|
|
398
386
|
configure(options: Partial<import("./types.js").EntityServerClientOptions>): void;
|
|
399
387
|
setToken(token: string): void;
|
|
400
388
|
setAnonymousPacketToken(token: string): void;
|
|
@@ -415,21 +403,21 @@ declare const EntityAppServerApi_base: {
|
|
|
415
403
|
unsubscribeRealtime(subscriptions: string[]): boolean;
|
|
416
404
|
startHealthTick(intervalMs?: number): void;
|
|
417
405
|
stopHealthTick(): void;
|
|
418
|
-
|
|
406
|
+
scheduleKeepSession(refreshToken: string, expiresIn: number, refreshFn: (rt: string) => Promise<{
|
|
419
407
|
access_token: string;
|
|
420
408
|
expires_in: number;
|
|
421
409
|
}>): void;
|
|
422
|
-
|
|
410
|
+
clearRefreshTimer(): void;
|
|
423
411
|
stopKeepSession(): void;
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
412
|
+
applyRealtimeOptions(options?: boolean | import("./types.js").RealtimeClientOptions): void;
|
|
413
|
+
buildRealtimeUrl(): string;
|
|
414
|
+
handleRealtimeMessage(payload: unknown): void;
|
|
415
|
+
scheduleRealtimeReconnect(reason: string): void;
|
|
416
|
+
clearRealtimeReconnectTimer(): void;
|
|
417
|
+
setRealtimeStatus(status: import("./types.js").RealtimeConnectionStatus, reason?: string, error?: Error): void;
|
|
418
|
+
applyCsrfHealth(): void;
|
|
431
419
|
readRequestBody<T = Record<string, unknown>>(body: ArrayBuffer | Uint8Array | string | T | null | undefined, contentType?: string, requireEncrypted?: boolean): T;
|
|
432
|
-
get
|
|
420
|
+
get reqOpts(): import("./client/request.js").RequestOptions;
|
|
433
421
|
get http(): {
|
|
434
422
|
get<T>(path: string, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
|
|
435
423
|
post<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
|
|
@@ -437,13 +425,10 @@ declare const EntityAppServerApi_base: {
|
|
|
437
425
|
patch<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
|
|
438
426
|
delete<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
|
|
439
427
|
};
|
|
428
|
+
request<T>(method: string, path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
|
|
440
429
|
requestBinary(method: string, path: string, body?: unknown, withAuth?: boolean): Promise<ArrayBuffer>;
|
|
441
430
|
requestForm<T>(method: string, path: string, form: FormData, withAuth?: boolean): Promise<T>;
|
|
442
431
|
requestFormBinary(method: string, path: string, form: FormData, withAuth?: boolean): Promise<ArrayBuffer>;
|
|
443
|
-
_request<T>(method: string, path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
|
|
444
|
-
_requestBinary(method: string, path: string, body?: unknown, withAuth?: boolean): Promise<ArrayBuffer>;
|
|
445
|
-
_requestForm<T>(method: string, path: string, form: FormData, withAuth?: boolean): Promise<T>;
|
|
446
|
-
_requestFormBinary(method: string, path: string, form: FormData, withAuth?: boolean): Promise<ArrayBuffer>;
|
|
447
432
|
};
|
|
448
433
|
} & {
|
|
449
434
|
new (...args: any[]): {
|
|
@@ -462,30 +447,30 @@ declare const EntityAppServerApi_base: {
|
|
|
462
447
|
csrfEnabled: boolean;
|
|
463
448
|
csrfHeaderName: string;
|
|
464
449
|
csrfCookieName: string;
|
|
465
|
-
|
|
450
|
+
csrfRefresher: (() => Promise<void>) | null;
|
|
466
451
|
activeTxId: string | null;
|
|
467
452
|
keepSession: boolean;
|
|
468
453
|
refreshBuffer: number;
|
|
469
454
|
onTokenRefreshed?: (accessToken: string, expiresIn: number) => void;
|
|
470
455
|
onSessionExpired?: (error: Error) => void;
|
|
471
456
|
onHealthChange?: (online: boolean) => void;
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
457
|
+
sessionRefreshToken: string | null;
|
|
458
|
+
refreshTimer: ReturnType<typeof setTimeout> | null;
|
|
459
|
+
healthTickTimer: ReturnType<typeof setInterval> | null;
|
|
460
|
+
healthTickPromise: Promise<unknown> | null;
|
|
476
461
|
realtimeEnabled: boolean;
|
|
477
462
|
realtimePath: string;
|
|
478
463
|
realtimeAutoConnect: boolean;
|
|
479
464
|
realtimeAutoReconnect: boolean;
|
|
480
465
|
realtimeReconnectDelayMs: number;
|
|
481
466
|
realtimeStatus: import("./types.js").RealtimeConnectionStatus;
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
467
|
+
realtimeSocket: WebSocket | null;
|
|
468
|
+
realtimeConnectPromise: Promise<void> | null;
|
|
469
|
+
realtimeReconnectTimer: ReturnType<typeof setTimeout> | null;
|
|
470
|
+
realtimeShouldReconnect: boolean;
|
|
471
|
+
realtimeMessageListeners: Set<import("./types.js").RealtimeMessageListener>;
|
|
472
|
+
realtimeStatusListeners: Set<import("./types.js").RealtimeStatusListener>;
|
|
473
|
+
realtimeEventListeners: Map<string, Set<import("./types.js").RealtimeMessageListener>>;
|
|
489
474
|
configure(options: Partial<import("./types.js").EntityServerClientOptions>): void;
|
|
490
475
|
setToken(token: string): void;
|
|
491
476
|
setAnonymousPacketToken(token: string): void;
|
|
@@ -506,21 +491,21 @@ declare const EntityAppServerApi_base: {
|
|
|
506
491
|
unsubscribeRealtime(subscriptions: string[]): boolean;
|
|
507
492
|
startHealthTick(intervalMs?: number): void;
|
|
508
493
|
stopHealthTick(): void;
|
|
509
|
-
|
|
494
|
+
scheduleKeepSession(refreshToken: string, expiresIn: number, refreshFn: (rt: string) => Promise<{
|
|
510
495
|
access_token: string;
|
|
511
496
|
expires_in: number;
|
|
512
497
|
}>): void;
|
|
513
|
-
|
|
498
|
+
clearRefreshTimer(): void;
|
|
514
499
|
stopKeepSession(): void;
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
500
|
+
applyRealtimeOptions(options?: boolean | import("./types.js").RealtimeClientOptions): void;
|
|
501
|
+
buildRealtimeUrl(): string;
|
|
502
|
+
handleRealtimeMessage(payload: unknown): void;
|
|
503
|
+
scheduleRealtimeReconnect(reason: string): void;
|
|
504
|
+
clearRealtimeReconnectTimer(): void;
|
|
505
|
+
setRealtimeStatus(status: import("./types.js").RealtimeConnectionStatus, reason?: string, error?: Error): void;
|
|
506
|
+
applyCsrfHealth(): void;
|
|
522
507
|
readRequestBody<T = Record<string, unknown>>(body: ArrayBuffer | Uint8Array | string | T | null | undefined, contentType?: string, requireEncrypted?: boolean): T;
|
|
523
|
-
get
|
|
508
|
+
get reqOpts(): import("./client/request.js").RequestOptions;
|
|
524
509
|
get http(): {
|
|
525
510
|
get<T>(path: string, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
|
|
526
511
|
post<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
|
|
@@ -528,13 +513,10 @@ declare const EntityAppServerApi_base: {
|
|
|
528
513
|
patch<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
|
|
529
514
|
delete<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
|
|
530
515
|
};
|
|
516
|
+
request<T>(method: string, path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
|
|
531
517
|
requestBinary(method: string, path: string, body?: unknown, withAuth?: boolean): Promise<ArrayBuffer>;
|
|
532
518
|
requestForm<T>(method: string, path: string, form: FormData, withAuth?: boolean): Promise<T>;
|
|
533
519
|
requestFormBinary(method: string, path: string, form: FormData, withAuth?: boolean): Promise<ArrayBuffer>;
|
|
534
|
-
_request<T>(method: string, path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
|
|
535
|
-
_requestBinary(method: string, path: string, body?: unknown, withAuth?: boolean): Promise<ArrayBuffer>;
|
|
536
|
-
_requestForm<T>(method: string, path: string, form: FormData, withAuth?: boolean): Promise<T>;
|
|
537
|
-
_requestFormBinary(method: string, path: string, form: FormData, withAuth?: boolean): Promise<ArrayBuffer>;
|
|
538
520
|
};
|
|
539
521
|
} & {
|
|
540
522
|
new (...args: any[]): {
|
|
@@ -555,30 +537,30 @@ declare const EntityAppServerApi_base: {
|
|
|
555
537
|
csrfEnabled: boolean;
|
|
556
538
|
csrfHeaderName: string;
|
|
557
539
|
csrfCookieName: string;
|
|
558
|
-
|
|
540
|
+
csrfRefresher: (() => Promise<void>) | null;
|
|
559
541
|
activeTxId: string | null;
|
|
560
542
|
keepSession: boolean;
|
|
561
543
|
refreshBuffer: number;
|
|
562
544
|
onTokenRefreshed?: (accessToken: string, expiresIn: number) => void;
|
|
563
545
|
onSessionExpired?: (error: Error) => void;
|
|
564
546
|
onHealthChange?: (online: boolean) => void;
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
547
|
+
sessionRefreshToken: string | null;
|
|
548
|
+
refreshTimer: ReturnType<typeof setTimeout> | null;
|
|
549
|
+
healthTickTimer: ReturnType<typeof setInterval> | null;
|
|
550
|
+
healthTickPromise: Promise<unknown> | null;
|
|
569
551
|
realtimeEnabled: boolean;
|
|
570
552
|
realtimePath: string;
|
|
571
553
|
realtimeAutoConnect: boolean;
|
|
572
554
|
realtimeAutoReconnect: boolean;
|
|
573
555
|
realtimeReconnectDelayMs: number;
|
|
574
556
|
realtimeStatus: import("./types.js").RealtimeConnectionStatus;
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
557
|
+
realtimeSocket: WebSocket | null;
|
|
558
|
+
realtimeConnectPromise: Promise<void> | null;
|
|
559
|
+
realtimeReconnectTimer: ReturnType<typeof setTimeout> | null;
|
|
560
|
+
realtimeShouldReconnect: boolean;
|
|
561
|
+
realtimeMessageListeners: Set<import("./types.js").RealtimeMessageListener>;
|
|
562
|
+
realtimeStatusListeners: Set<import("./types.js").RealtimeStatusListener>;
|
|
563
|
+
realtimeEventListeners: Map<string, Set<import("./types.js").RealtimeMessageListener>>;
|
|
582
564
|
configure(options: Partial<import("./types.js").EntityServerClientOptions>): void;
|
|
583
565
|
setToken(token: string): void;
|
|
584
566
|
setAnonymousPacketToken(token: string): void;
|
|
@@ -599,21 +581,21 @@ declare const EntityAppServerApi_base: {
|
|
|
599
581
|
unsubscribeRealtime(subscriptions: string[]): boolean;
|
|
600
582
|
startHealthTick(intervalMs?: number): void;
|
|
601
583
|
stopHealthTick(): void;
|
|
602
|
-
|
|
584
|
+
scheduleKeepSession(refreshToken: string, expiresIn: number, refreshFn: (rt: string) => Promise<{
|
|
603
585
|
access_token: string;
|
|
604
586
|
expires_in: number;
|
|
605
587
|
}>): void;
|
|
606
|
-
|
|
588
|
+
clearRefreshTimer(): void;
|
|
607
589
|
stopKeepSession(): void;
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
590
|
+
applyRealtimeOptions(options?: boolean | import("./types.js").RealtimeClientOptions): void;
|
|
591
|
+
buildRealtimeUrl(): string;
|
|
592
|
+
handleRealtimeMessage(payload: unknown): void;
|
|
593
|
+
scheduleRealtimeReconnect(reason: string): void;
|
|
594
|
+
clearRealtimeReconnectTimer(): void;
|
|
595
|
+
setRealtimeStatus(status: import("./types.js").RealtimeConnectionStatus, reason?: string, error?: Error): void;
|
|
596
|
+
applyCsrfHealth(): void;
|
|
615
597
|
readRequestBody<T = Record<string, unknown>>(body: ArrayBuffer | Uint8Array | string | T | null | undefined, contentType?: string, requireEncrypted?: boolean): T;
|
|
616
|
-
get
|
|
598
|
+
get reqOpts(): import("./client/request.js").RequestOptions;
|
|
617
599
|
get http(): {
|
|
618
600
|
get<T>(path: string, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
|
|
619
601
|
post<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
|
|
@@ -621,13 +603,10 @@ declare const EntityAppServerApi_base: {
|
|
|
621
603
|
patch<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
|
|
622
604
|
delete<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
|
|
623
605
|
};
|
|
606
|
+
request<T>(method: string, path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
|
|
624
607
|
requestBinary(method: string, path: string, body?: unknown, withAuth?: boolean): Promise<ArrayBuffer>;
|
|
625
608
|
requestForm<T>(method: string, path: string, form: FormData, withAuth?: boolean): Promise<T>;
|
|
626
609
|
requestFormBinary(method: string, path: string, form: FormData, withAuth?: boolean): Promise<ArrayBuffer>;
|
|
627
|
-
_request<T>(method: string, path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
|
|
628
|
-
_requestBinary(method: string, path: string, body?: unknown, withAuth?: boolean): Promise<ArrayBuffer>;
|
|
629
|
-
_requestForm<T>(method: string, path: string, form: FormData, withAuth?: boolean): Promise<T>;
|
|
630
|
-
_requestFormBinary(method: string, path: string, form: FormData, withAuth?: boolean): Promise<ArrayBuffer>;
|
|
631
610
|
};
|
|
632
611
|
} & {
|
|
633
612
|
new (...args: any[]): {
|
|
@@ -675,30 +654,30 @@ declare const EntityAppServerApi_base: {
|
|
|
675
654
|
csrfEnabled: boolean;
|
|
676
655
|
csrfHeaderName: string;
|
|
677
656
|
csrfCookieName: string;
|
|
678
|
-
|
|
657
|
+
csrfRefresher: (() => Promise<void>) | null;
|
|
679
658
|
activeTxId: string | null;
|
|
680
659
|
keepSession: boolean;
|
|
681
660
|
refreshBuffer: number;
|
|
682
661
|
onTokenRefreshed?: (accessToken: string, expiresIn: number) => void;
|
|
683
662
|
onSessionExpired?: (error: Error) => void;
|
|
684
663
|
onHealthChange?: (online: boolean) => void;
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
664
|
+
sessionRefreshToken: string | null;
|
|
665
|
+
refreshTimer: ReturnType<typeof setTimeout> | null;
|
|
666
|
+
healthTickTimer: ReturnType<typeof setInterval> | null;
|
|
667
|
+
healthTickPromise: Promise<unknown> | null;
|
|
689
668
|
realtimeEnabled: boolean;
|
|
690
669
|
realtimePath: string;
|
|
691
670
|
realtimeAutoConnect: boolean;
|
|
692
671
|
realtimeAutoReconnect: boolean;
|
|
693
672
|
realtimeReconnectDelayMs: number;
|
|
694
673
|
realtimeStatus: import("./types.js").RealtimeConnectionStatus;
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
674
|
+
realtimeSocket: WebSocket | null;
|
|
675
|
+
realtimeConnectPromise: Promise<void> | null;
|
|
676
|
+
realtimeReconnectTimer: ReturnType<typeof setTimeout> | null;
|
|
677
|
+
realtimeShouldReconnect: boolean;
|
|
678
|
+
realtimeMessageListeners: Set<import("./types.js").RealtimeMessageListener>;
|
|
679
|
+
realtimeStatusListeners: Set<import("./types.js").RealtimeStatusListener>;
|
|
680
|
+
realtimeEventListeners: Map<string, Set<import("./types.js").RealtimeMessageListener>>;
|
|
702
681
|
configure(options: Partial<import("./types.js").EntityServerClientOptions>): void;
|
|
703
682
|
setToken(token: string): void;
|
|
704
683
|
setAnonymousPacketToken(token: string): void;
|
|
@@ -719,21 +698,21 @@ declare const EntityAppServerApi_base: {
|
|
|
719
698
|
unsubscribeRealtime(subscriptions: string[]): boolean;
|
|
720
699
|
startHealthTick(intervalMs?: number): void;
|
|
721
700
|
stopHealthTick(): void;
|
|
722
|
-
|
|
701
|
+
scheduleKeepSession(refreshToken: string, expiresIn: number, refreshFn: (rt: string) => Promise<{
|
|
723
702
|
access_token: string;
|
|
724
703
|
expires_in: number;
|
|
725
704
|
}>): void;
|
|
726
|
-
|
|
705
|
+
clearRefreshTimer(): void;
|
|
727
706
|
stopKeepSession(): void;
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
707
|
+
applyRealtimeOptions(options?: boolean | import("./types.js").RealtimeClientOptions): void;
|
|
708
|
+
buildRealtimeUrl(): string;
|
|
709
|
+
handleRealtimeMessage(payload: unknown): void;
|
|
710
|
+
scheduleRealtimeReconnect(reason: string): void;
|
|
711
|
+
clearRealtimeReconnectTimer(): void;
|
|
712
|
+
setRealtimeStatus(status: import("./types.js").RealtimeConnectionStatus, reason?: string, error?: Error): void;
|
|
713
|
+
applyCsrfHealth(): void;
|
|
735
714
|
readRequestBody<T = Record<string, unknown>>(body: ArrayBuffer | Uint8Array | string | T | null | undefined, contentType?: string, requireEncrypted?: boolean): T;
|
|
736
|
-
get
|
|
715
|
+
get reqOpts(): import("./client/request.js").RequestOptions;
|
|
737
716
|
get http(): {
|
|
738
717
|
get<T>(path: string, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
|
|
739
718
|
post<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
|
|
@@ -741,13 +720,10 @@ declare const EntityAppServerApi_base: {
|
|
|
741
720
|
patch<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
|
|
742
721
|
delete<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
|
|
743
722
|
};
|
|
723
|
+
request<T>(method: string, path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
|
|
744
724
|
requestBinary(method: string, path: string, body?: unknown, withAuth?: boolean): Promise<ArrayBuffer>;
|
|
745
725
|
requestForm<T>(method: string, path: string, form: FormData, withAuth?: boolean): Promise<T>;
|
|
746
726
|
requestFormBinary(method: string, path: string, form: FormData, withAuth?: boolean): Promise<ArrayBuffer>;
|
|
747
|
-
_request<T>(method: string, path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
|
|
748
|
-
_requestBinary(method: string, path: string, body?: unknown, withAuth?: boolean): Promise<ArrayBuffer>;
|
|
749
|
-
_requestForm<T>(method: string, path: string, form: FormData, withAuth?: boolean): Promise<T>;
|
|
750
|
-
_requestFormBinary(method: string, path: string, form: FormData, withAuth?: boolean): Promise<ArrayBuffer>;
|
|
751
727
|
};
|
|
752
728
|
} & {
|
|
753
729
|
new (...args: any[]): {
|
|
@@ -764,30 +740,30 @@ declare const EntityAppServerApi_base: {
|
|
|
764
740
|
csrfEnabled: boolean;
|
|
765
741
|
csrfHeaderName: string;
|
|
766
742
|
csrfCookieName: string;
|
|
767
|
-
|
|
743
|
+
csrfRefresher: (() => Promise<void>) | null;
|
|
768
744
|
activeTxId: string | null;
|
|
769
745
|
keepSession: boolean;
|
|
770
746
|
refreshBuffer: number;
|
|
771
747
|
onTokenRefreshed?: (accessToken: string, expiresIn: number) => void;
|
|
772
748
|
onSessionExpired?: (error: Error) => void;
|
|
773
749
|
onHealthChange?: (online: boolean) => void;
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
750
|
+
sessionRefreshToken: string | null;
|
|
751
|
+
refreshTimer: ReturnType<typeof setTimeout> | null;
|
|
752
|
+
healthTickTimer: ReturnType<typeof setInterval> | null;
|
|
753
|
+
healthTickPromise: Promise<unknown> | null;
|
|
778
754
|
realtimeEnabled: boolean;
|
|
779
755
|
realtimePath: string;
|
|
780
756
|
realtimeAutoConnect: boolean;
|
|
781
757
|
realtimeAutoReconnect: boolean;
|
|
782
758
|
realtimeReconnectDelayMs: number;
|
|
783
759
|
realtimeStatus: import("./types.js").RealtimeConnectionStatus;
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
760
|
+
realtimeSocket: WebSocket | null;
|
|
761
|
+
realtimeConnectPromise: Promise<void> | null;
|
|
762
|
+
realtimeReconnectTimer: ReturnType<typeof setTimeout> | null;
|
|
763
|
+
realtimeShouldReconnect: boolean;
|
|
764
|
+
realtimeMessageListeners: Set<import("./types.js").RealtimeMessageListener>;
|
|
765
|
+
realtimeStatusListeners: Set<import("./types.js").RealtimeStatusListener>;
|
|
766
|
+
realtimeEventListeners: Map<string, Set<import("./types.js").RealtimeMessageListener>>;
|
|
791
767
|
configure(options: Partial<import("./types.js").EntityServerClientOptions>): void;
|
|
792
768
|
setToken(token: string): void;
|
|
793
769
|
setAnonymousPacketToken(token: string): void;
|
|
@@ -808,21 +784,21 @@ declare const EntityAppServerApi_base: {
|
|
|
808
784
|
unsubscribeRealtime(subscriptions: string[]): boolean;
|
|
809
785
|
startHealthTick(intervalMs?: number): void;
|
|
810
786
|
stopHealthTick(): void;
|
|
811
|
-
|
|
787
|
+
scheduleKeepSession(refreshToken: string, expiresIn: number, refreshFn: (rt: string) => Promise<{
|
|
812
788
|
access_token: string;
|
|
813
789
|
expires_in: number;
|
|
814
790
|
}>): void;
|
|
815
|
-
|
|
791
|
+
clearRefreshTimer(): void;
|
|
816
792
|
stopKeepSession(): void;
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
793
|
+
applyRealtimeOptions(options?: boolean | import("./types.js").RealtimeClientOptions): void;
|
|
794
|
+
buildRealtimeUrl(): string;
|
|
795
|
+
handleRealtimeMessage(payload: unknown): void;
|
|
796
|
+
scheduleRealtimeReconnect(reason: string): void;
|
|
797
|
+
clearRealtimeReconnectTimer(): void;
|
|
798
|
+
setRealtimeStatus(status: import("./types.js").RealtimeConnectionStatus, reason?: string, error?: Error): void;
|
|
799
|
+
applyCsrfHealth(): void;
|
|
824
800
|
readRequestBody<T = Record<string, unknown>>(body: ArrayBuffer | Uint8Array | string | T | null | undefined, contentType?: string, requireEncrypted?: boolean): T;
|
|
825
|
-
get
|
|
801
|
+
get reqOpts(): import("./client/request.js").RequestOptions;
|
|
826
802
|
get http(): {
|
|
827
803
|
get<T>(path: string, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
|
|
828
804
|
post<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
|
|
@@ -830,13 +806,10 @@ declare const EntityAppServerApi_base: {
|
|
|
830
806
|
patch<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
|
|
831
807
|
delete<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
|
|
832
808
|
};
|
|
809
|
+
request<T>(method: string, path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
|
|
833
810
|
requestBinary(method: string, path: string, body?: unknown, withAuth?: boolean): Promise<ArrayBuffer>;
|
|
834
811
|
requestForm<T>(method: string, path: string, form: FormData, withAuth?: boolean): Promise<T>;
|
|
835
812
|
requestFormBinary(method: string, path: string, form: FormData, withAuth?: boolean): Promise<ArrayBuffer>;
|
|
836
|
-
_request<T>(method: string, path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
|
|
837
|
-
_requestBinary(method: string, path: string, body?: unknown, withAuth?: boolean): Promise<ArrayBuffer>;
|
|
838
|
-
_requestForm<T>(method: string, path: string, form: FormData, withAuth?: boolean): Promise<T>;
|
|
839
|
-
_requestFormBinary(method: string, path: string, form: FormData, withAuth?: boolean): Promise<ArrayBuffer>;
|
|
840
813
|
};
|
|
841
814
|
} & {
|
|
842
815
|
new (...args: any[]): {
|
|
@@ -856,30 +829,30 @@ declare const EntityAppServerApi_base: {
|
|
|
856
829
|
csrfEnabled: boolean;
|
|
857
830
|
csrfHeaderName: string;
|
|
858
831
|
csrfCookieName: string;
|
|
859
|
-
|
|
832
|
+
csrfRefresher: (() => Promise<void>) | null;
|
|
860
833
|
activeTxId: string | null;
|
|
861
834
|
keepSession: boolean;
|
|
862
835
|
refreshBuffer: number;
|
|
863
836
|
onTokenRefreshed?: (accessToken: string, expiresIn: number) => void;
|
|
864
837
|
onSessionExpired?: (error: Error) => void;
|
|
865
838
|
onHealthChange?: (online: boolean) => void;
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
839
|
+
sessionRefreshToken: string | null;
|
|
840
|
+
refreshTimer: ReturnType<typeof setTimeout> | null;
|
|
841
|
+
healthTickTimer: ReturnType<typeof setInterval> | null;
|
|
842
|
+
healthTickPromise: Promise<unknown> | null;
|
|
870
843
|
realtimeEnabled: boolean;
|
|
871
844
|
realtimePath: string;
|
|
872
845
|
realtimeAutoConnect: boolean;
|
|
873
846
|
realtimeAutoReconnect: boolean;
|
|
874
847
|
realtimeReconnectDelayMs: number;
|
|
875
848
|
realtimeStatus: import("./types.js").RealtimeConnectionStatus;
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
849
|
+
realtimeSocket: WebSocket | null;
|
|
850
|
+
realtimeConnectPromise: Promise<void> | null;
|
|
851
|
+
realtimeReconnectTimer: ReturnType<typeof setTimeout> | null;
|
|
852
|
+
realtimeShouldReconnect: boolean;
|
|
853
|
+
realtimeMessageListeners: Set<import("./types.js").RealtimeMessageListener>;
|
|
854
|
+
realtimeStatusListeners: Set<import("./types.js").RealtimeStatusListener>;
|
|
855
|
+
realtimeEventListeners: Map<string, Set<import("./types.js").RealtimeMessageListener>>;
|
|
883
856
|
configure(options: Partial<import("./types.js").EntityServerClientOptions>): void;
|
|
884
857
|
setToken(token: string): void;
|
|
885
858
|
setAnonymousPacketToken(token: string): void;
|
|
@@ -900,21 +873,21 @@ declare const EntityAppServerApi_base: {
|
|
|
900
873
|
unsubscribeRealtime(subscriptions: string[]): boolean;
|
|
901
874
|
startHealthTick(intervalMs?: number): void;
|
|
902
875
|
stopHealthTick(): void;
|
|
903
|
-
|
|
876
|
+
scheduleKeepSession(refreshToken: string, expiresIn: number, refreshFn: (rt: string) => Promise<{
|
|
904
877
|
access_token: string;
|
|
905
878
|
expires_in: number;
|
|
906
879
|
}>): void;
|
|
907
|
-
|
|
880
|
+
clearRefreshTimer(): void;
|
|
908
881
|
stopKeepSession(): void;
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
882
|
+
applyRealtimeOptions(options?: boolean | import("./types.js").RealtimeClientOptions): void;
|
|
883
|
+
buildRealtimeUrl(): string;
|
|
884
|
+
handleRealtimeMessage(payload: unknown): void;
|
|
885
|
+
scheduleRealtimeReconnect(reason: string): void;
|
|
886
|
+
clearRealtimeReconnectTimer(): void;
|
|
887
|
+
setRealtimeStatus(status: import("./types.js").RealtimeConnectionStatus, reason?: string, error?: Error): void;
|
|
888
|
+
applyCsrfHealth(): void;
|
|
916
889
|
readRequestBody<T = Record<string, unknown>>(body: ArrayBuffer | Uint8Array | string | T | null | undefined, contentType?: string, requireEncrypted?: boolean): T;
|
|
917
|
-
get
|
|
890
|
+
get reqOpts(): import("./client/request.js").RequestOptions;
|
|
918
891
|
get http(): {
|
|
919
892
|
get<T>(path: string, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
|
|
920
893
|
post<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
|
|
@@ -922,13 +895,10 @@ declare const EntityAppServerApi_base: {
|
|
|
922
895
|
patch<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
|
|
923
896
|
delete<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
|
|
924
897
|
};
|
|
898
|
+
request<T>(method: string, path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
|
|
925
899
|
requestBinary(method: string, path: string, body?: unknown, withAuth?: boolean): Promise<ArrayBuffer>;
|
|
926
900
|
requestForm<T>(method: string, path: string, form: FormData, withAuth?: boolean): Promise<T>;
|
|
927
901
|
requestFormBinary(method: string, path: string, form: FormData, withAuth?: boolean): Promise<ArrayBuffer>;
|
|
928
|
-
_request<T>(method: string, path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
|
|
929
|
-
_requestBinary(method: string, path: string, body?: unknown, withAuth?: boolean): Promise<ArrayBuffer>;
|
|
930
|
-
_requestForm<T>(method: string, path: string, form: FormData, withAuth?: boolean): Promise<T>;
|
|
931
|
-
_requestFormBinary(method: string, path: string, form: FormData, withAuth?: boolean): Promise<ArrayBuffer>;
|
|
932
902
|
};
|
|
933
903
|
} & {
|
|
934
904
|
new (...args: any[]): {
|
|
@@ -947,30 +917,30 @@ declare const EntityAppServerApi_base: {
|
|
|
947
917
|
csrfEnabled: boolean;
|
|
948
918
|
csrfHeaderName: string;
|
|
949
919
|
csrfCookieName: string;
|
|
950
|
-
|
|
920
|
+
csrfRefresher: (() => Promise<void>) | null;
|
|
951
921
|
activeTxId: string | null;
|
|
952
922
|
keepSession: boolean;
|
|
953
923
|
refreshBuffer: number;
|
|
954
924
|
onTokenRefreshed?: (accessToken: string, expiresIn: number) => void;
|
|
955
925
|
onSessionExpired?: (error: Error) => void;
|
|
956
926
|
onHealthChange?: (online: boolean) => void;
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
927
|
+
sessionRefreshToken: string | null;
|
|
928
|
+
refreshTimer: ReturnType<typeof setTimeout> | null;
|
|
929
|
+
healthTickTimer: ReturnType<typeof setInterval> | null;
|
|
930
|
+
healthTickPromise: Promise<unknown> | null;
|
|
961
931
|
realtimeEnabled: boolean;
|
|
962
932
|
realtimePath: string;
|
|
963
933
|
realtimeAutoConnect: boolean;
|
|
964
934
|
realtimeAutoReconnect: boolean;
|
|
965
935
|
realtimeReconnectDelayMs: number;
|
|
966
936
|
realtimeStatus: import("./types.js").RealtimeConnectionStatus;
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
937
|
+
realtimeSocket: WebSocket | null;
|
|
938
|
+
realtimeConnectPromise: Promise<void> | null;
|
|
939
|
+
realtimeReconnectTimer: ReturnType<typeof setTimeout> | null;
|
|
940
|
+
realtimeShouldReconnect: boolean;
|
|
941
|
+
realtimeMessageListeners: Set<import("./types.js").RealtimeMessageListener>;
|
|
942
|
+
realtimeStatusListeners: Set<import("./types.js").RealtimeStatusListener>;
|
|
943
|
+
realtimeEventListeners: Map<string, Set<import("./types.js").RealtimeMessageListener>>;
|
|
974
944
|
configure(options: Partial<import("./types.js").EntityServerClientOptions>): void;
|
|
975
945
|
setToken(token: string): void;
|
|
976
946
|
setAnonymousPacketToken(token: string): void;
|
|
@@ -991,21 +961,21 @@ declare const EntityAppServerApi_base: {
|
|
|
991
961
|
unsubscribeRealtime(subscriptions: string[]): boolean;
|
|
992
962
|
startHealthTick(intervalMs?: number): void;
|
|
993
963
|
stopHealthTick(): void;
|
|
994
|
-
|
|
964
|
+
scheduleKeepSession(refreshToken: string, expiresIn: number, refreshFn: (rt: string) => Promise<{
|
|
995
965
|
access_token: string;
|
|
996
966
|
expires_in: number;
|
|
997
967
|
}>): void;
|
|
998
|
-
|
|
968
|
+
clearRefreshTimer(): void;
|
|
999
969
|
stopKeepSession(): void;
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
970
|
+
applyRealtimeOptions(options?: boolean | import("./types.js").RealtimeClientOptions): void;
|
|
971
|
+
buildRealtimeUrl(): string;
|
|
972
|
+
handleRealtimeMessage(payload: unknown): void;
|
|
973
|
+
scheduleRealtimeReconnect(reason: string): void;
|
|
974
|
+
clearRealtimeReconnectTimer(): void;
|
|
975
|
+
setRealtimeStatus(status: import("./types.js").RealtimeConnectionStatus, reason?: string, error?: Error): void;
|
|
976
|
+
applyCsrfHealth(): void;
|
|
1007
977
|
readRequestBody<T = Record<string, unknown>>(body: ArrayBuffer | Uint8Array | string | T | null | undefined, contentType?: string, requireEncrypted?: boolean): T;
|
|
1008
|
-
get
|
|
978
|
+
get reqOpts(): import("./client/request.js").RequestOptions;
|
|
1009
979
|
get http(): {
|
|
1010
980
|
get<T>(path: string, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
|
|
1011
981
|
post<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
|
|
@@ -1013,13 +983,10 @@ declare const EntityAppServerApi_base: {
|
|
|
1013
983
|
patch<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
|
|
1014
984
|
delete<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
|
|
1015
985
|
};
|
|
986
|
+
request<T>(method: string, path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
|
|
1016
987
|
requestBinary(method: string, path: string, body?: unknown, withAuth?: boolean): Promise<ArrayBuffer>;
|
|
1017
988
|
requestForm<T>(method: string, path: string, form: FormData, withAuth?: boolean): Promise<T>;
|
|
1018
989
|
requestFormBinary(method: string, path: string, form: FormData, withAuth?: boolean): Promise<ArrayBuffer>;
|
|
1019
|
-
_request<T>(method: string, path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
|
|
1020
|
-
_requestBinary(method: string, path: string, body?: unknown, withAuth?: boolean): Promise<ArrayBuffer>;
|
|
1021
|
-
_requestForm<T>(method: string, path: string, form: FormData, withAuth?: boolean): Promise<T>;
|
|
1022
|
-
_requestFormBinary(method: string, path: string, form: FormData, withAuth?: boolean): Promise<ArrayBuffer>;
|
|
1023
990
|
};
|
|
1024
991
|
} & {
|
|
1025
992
|
new (...args: any[]): {
|
|
@@ -1039,30 +1006,30 @@ declare const EntityAppServerApi_base: {
|
|
|
1039
1006
|
csrfEnabled: boolean;
|
|
1040
1007
|
csrfHeaderName: string;
|
|
1041
1008
|
csrfCookieName: string;
|
|
1042
|
-
|
|
1009
|
+
csrfRefresher: (() => Promise<void>) | null;
|
|
1043
1010
|
activeTxId: string | null;
|
|
1044
1011
|
keepSession: boolean;
|
|
1045
1012
|
refreshBuffer: number;
|
|
1046
1013
|
onTokenRefreshed?: (accessToken: string, expiresIn: number) => void;
|
|
1047
1014
|
onSessionExpired?: (error: Error) => void;
|
|
1048
1015
|
onHealthChange?: (online: boolean) => void;
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1016
|
+
sessionRefreshToken: string | null;
|
|
1017
|
+
refreshTimer: ReturnType<typeof setTimeout> | null;
|
|
1018
|
+
healthTickTimer: ReturnType<typeof setInterval> | null;
|
|
1019
|
+
healthTickPromise: Promise<unknown> | null;
|
|
1053
1020
|
realtimeEnabled: boolean;
|
|
1054
1021
|
realtimePath: string;
|
|
1055
1022
|
realtimeAutoConnect: boolean;
|
|
1056
1023
|
realtimeAutoReconnect: boolean;
|
|
1057
1024
|
realtimeReconnectDelayMs: number;
|
|
1058
1025
|
realtimeStatus: import("./types.js").RealtimeConnectionStatus;
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1026
|
+
realtimeSocket: WebSocket | null;
|
|
1027
|
+
realtimeConnectPromise: Promise<void> | null;
|
|
1028
|
+
realtimeReconnectTimer: ReturnType<typeof setTimeout> | null;
|
|
1029
|
+
realtimeShouldReconnect: boolean;
|
|
1030
|
+
realtimeMessageListeners: Set<import("./types.js").RealtimeMessageListener>;
|
|
1031
|
+
realtimeStatusListeners: Set<import("./types.js").RealtimeStatusListener>;
|
|
1032
|
+
realtimeEventListeners: Map<string, Set<import("./types.js").RealtimeMessageListener>>;
|
|
1066
1033
|
configure(options: Partial<import("./types.js").EntityServerClientOptions>): void;
|
|
1067
1034
|
setToken(token: string): void;
|
|
1068
1035
|
setAnonymousPacketToken(token: string): void;
|
|
@@ -1083,21 +1050,21 @@ declare const EntityAppServerApi_base: {
|
|
|
1083
1050
|
unsubscribeRealtime(subscriptions: string[]): boolean;
|
|
1084
1051
|
startHealthTick(intervalMs?: number): void;
|
|
1085
1052
|
stopHealthTick(): void;
|
|
1086
|
-
|
|
1053
|
+
scheduleKeepSession(refreshToken: string, expiresIn: number, refreshFn: (rt: string) => Promise<{
|
|
1087
1054
|
access_token: string;
|
|
1088
1055
|
expires_in: number;
|
|
1089
1056
|
}>): void;
|
|
1090
|
-
|
|
1057
|
+
clearRefreshTimer(): void;
|
|
1091
1058
|
stopKeepSession(): void;
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1059
|
+
applyRealtimeOptions(options?: boolean | import("./types.js").RealtimeClientOptions): void;
|
|
1060
|
+
buildRealtimeUrl(): string;
|
|
1061
|
+
handleRealtimeMessage(payload: unknown): void;
|
|
1062
|
+
scheduleRealtimeReconnect(reason: string): void;
|
|
1063
|
+
clearRealtimeReconnectTimer(): void;
|
|
1064
|
+
setRealtimeStatus(status: import("./types.js").RealtimeConnectionStatus, reason?: string, error?: Error): void;
|
|
1065
|
+
applyCsrfHealth(): void;
|
|
1099
1066
|
readRequestBody<T = Record<string, unknown>>(body: ArrayBuffer | Uint8Array | string | T | null | undefined, contentType?: string, requireEncrypted?: boolean): T;
|
|
1100
|
-
get
|
|
1067
|
+
get reqOpts(): import("./client/request.js").RequestOptions;
|
|
1101
1068
|
get http(): {
|
|
1102
1069
|
get<T>(path: string, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
|
|
1103
1070
|
post<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
|
|
@@ -1105,13 +1072,10 @@ declare const EntityAppServerApi_base: {
|
|
|
1105
1072
|
patch<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
|
|
1106
1073
|
delete<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
|
|
1107
1074
|
};
|
|
1075
|
+
request<T>(method: string, path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
|
|
1108
1076
|
requestBinary(method: string, path: string, body?: unknown, withAuth?: boolean): Promise<ArrayBuffer>;
|
|
1109
1077
|
requestForm<T>(method: string, path: string, form: FormData, withAuth?: boolean): Promise<T>;
|
|
1110
1078
|
requestFormBinary(method: string, path: string, form: FormData, withAuth?: boolean): Promise<ArrayBuffer>;
|
|
1111
|
-
_request<T>(method: string, path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
|
|
1112
|
-
_requestBinary(method: string, path: string, body?: unknown, withAuth?: boolean): Promise<ArrayBuffer>;
|
|
1113
|
-
_requestForm<T>(method: string, path: string, form: FormData, withAuth?: boolean): Promise<T>;
|
|
1114
|
-
_requestFormBinary(method: string, path: string, form: FormData, withAuth?: boolean): Promise<ArrayBuffer>;
|
|
1115
1079
|
};
|
|
1116
1080
|
} & {
|
|
1117
1081
|
new (...args: any[]): {
|
|
@@ -1129,30 +1093,30 @@ declare const EntityAppServerApi_base: {
|
|
|
1129
1093
|
csrfEnabled: boolean;
|
|
1130
1094
|
csrfHeaderName: string;
|
|
1131
1095
|
csrfCookieName: string;
|
|
1132
|
-
|
|
1096
|
+
csrfRefresher: (() => Promise<void>) | null;
|
|
1133
1097
|
activeTxId: string | null;
|
|
1134
1098
|
keepSession: boolean;
|
|
1135
1099
|
refreshBuffer: number;
|
|
1136
1100
|
onTokenRefreshed?: (accessToken: string, expiresIn: number) => void;
|
|
1137
1101
|
onSessionExpired?: (error: Error) => void;
|
|
1138
1102
|
onHealthChange?: (online: boolean) => void;
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1103
|
+
sessionRefreshToken: string | null;
|
|
1104
|
+
refreshTimer: ReturnType<typeof setTimeout> | null;
|
|
1105
|
+
healthTickTimer: ReturnType<typeof setInterval> | null;
|
|
1106
|
+
healthTickPromise: Promise<unknown> | null;
|
|
1143
1107
|
realtimeEnabled: boolean;
|
|
1144
1108
|
realtimePath: string;
|
|
1145
1109
|
realtimeAutoConnect: boolean;
|
|
1146
1110
|
realtimeAutoReconnect: boolean;
|
|
1147
1111
|
realtimeReconnectDelayMs: number;
|
|
1148
1112
|
realtimeStatus: import("./types.js").RealtimeConnectionStatus;
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1113
|
+
realtimeSocket: WebSocket | null;
|
|
1114
|
+
realtimeConnectPromise: Promise<void> | null;
|
|
1115
|
+
realtimeReconnectTimer: ReturnType<typeof setTimeout> | null;
|
|
1116
|
+
realtimeShouldReconnect: boolean;
|
|
1117
|
+
realtimeMessageListeners: Set<import("./types.js").RealtimeMessageListener>;
|
|
1118
|
+
realtimeStatusListeners: Set<import("./types.js").RealtimeStatusListener>;
|
|
1119
|
+
realtimeEventListeners: Map<string, Set<import("./types.js").RealtimeMessageListener>>;
|
|
1156
1120
|
configure(options: Partial<import("./types.js").EntityServerClientOptions>): void;
|
|
1157
1121
|
setToken(token: string): void;
|
|
1158
1122
|
setAnonymousPacketToken(token: string): void;
|
|
@@ -1173,21 +1137,21 @@ declare const EntityAppServerApi_base: {
|
|
|
1173
1137
|
unsubscribeRealtime(subscriptions: string[]): boolean;
|
|
1174
1138
|
startHealthTick(intervalMs?: number): void;
|
|
1175
1139
|
stopHealthTick(): void;
|
|
1176
|
-
|
|
1140
|
+
scheduleKeepSession(refreshToken: string, expiresIn: number, refreshFn: (rt: string) => Promise<{
|
|
1177
1141
|
access_token: string;
|
|
1178
1142
|
expires_in: number;
|
|
1179
1143
|
}>): void;
|
|
1180
|
-
|
|
1144
|
+
clearRefreshTimer(): void;
|
|
1181
1145
|
stopKeepSession(): void;
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1146
|
+
applyRealtimeOptions(options?: boolean | import("./types.js").RealtimeClientOptions): void;
|
|
1147
|
+
buildRealtimeUrl(): string;
|
|
1148
|
+
handleRealtimeMessage(payload: unknown): void;
|
|
1149
|
+
scheduleRealtimeReconnect(reason: string): void;
|
|
1150
|
+
clearRealtimeReconnectTimer(): void;
|
|
1151
|
+
setRealtimeStatus(status: import("./types.js").RealtimeConnectionStatus, reason?: string, error?: Error): void;
|
|
1152
|
+
applyCsrfHealth(): void;
|
|
1189
1153
|
readRequestBody<T = Record<string, unknown>>(body: ArrayBuffer | Uint8Array | string | T | null | undefined, contentType?: string, requireEncrypted?: boolean): T;
|
|
1190
|
-
get
|
|
1154
|
+
get reqOpts(): import("./client/request.js").RequestOptions;
|
|
1191
1155
|
get http(): {
|
|
1192
1156
|
get<T>(path: string, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
|
|
1193
1157
|
post<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
|
|
@@ -1195,13 +1159,10 @@ declare const EntityAppServerApi_base: {
|
|
|
1195
1159
|
patch<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
|
|
1196
1160
|
delete<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
|
|
1197
1161
|
};
|
|
1162
|
+
request<T>(method: string, path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
|
|
1198
1163
|
requestBinary(method: string, path: string, body?: unknown, withAuth?: boolean): Promise<ArrayBuffer>;
|
|
1199
1164
|
requestForm<T>(method: string, path: string, form: FormData, withAuth?: boolean): Promise<T>;
|
|
1200
1165
|
requestFormBinary(method: string, path: string, form: FormData, withAuth?: boolean): Promise<ArrayBuffer>;
|
|
1201
|
-
_request<T>(method: string, path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
|
|
1202
|
-
_requestBinary(method: string, path: string, body?: unknown, withAuth?: boolean): Promise<ArrayBuffer>;
|
|
1203
|
-
_requestForm<T>(method: string, path: string, form: FormData, withAuth?: boolean): Promise<T>;
|
|
1204
|
-
_requestFormBinary(method: string, path: string, form: FormData, withAuth?: boolean): Promise<ArrayBuffer>;
|
|
1205
1166
|
};
|
|
1206
1167
|
} & {
|
|
1207
1168
|
new (...args: any[]): {
|
|
@@ -1219,30 +1180,30 @@ declare const EntityAppServerApi_base: {
|
|
|
1219
1180
|
csrfEnabled: boolean;
|
|
1220
1181
|
csrfHeaderName: string;
|
|
1221
1182
|
csrfCookieName: string;
|
|
1222
|
-
|
|
1183
|
+
csrfRefresher: (() => Promise<void>) | null;
|
|
1223
1184
|
activeTxId: string | null;
|
|
1224
1185
|
keepSession: boolean;
|
|
1225
1186
|
refreshBuffer: number;
|
|
1226
1187
|
onTokenRefreshed?: (accessToken: string, expiresIn: number) => void;
|
|
1227
1188
|
onSessionExpired?: (error: Error) => void;
|
|
1228
1189
|
onHealthChange?: (online: boolean) => void;
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1190
|
+
sessionRefreshToken: string | null;
|
|
1191
|
+
refreshTimer: ReturnType<typeof setTimeout> | null;
|
|
1192
|
+
healthTickTimer: ReturnType<typeof setInterval> | null;
|
|
1193
|
+
healthTickPromise: Promise<unknown> | null;
|
|
1233
1194
|
realtimeEnabled: boolean;
|
|
1234
1195
|
realtimePath: string;
|
|
1235
1196
|
realtimeAutoConnect: boolean;
|
|
1236
1197
|
realtimeAutoReconnect: boolean;
|
|
1237
1198
|
realtimeReconnectDelayMs: number;
|
|
1238
1199
|
realtimeStatus: import("./types.js").RealtimeConnectionStatus;
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1200
|
+
realtimeSocket: WebSocket | null;
|
|
1201
|
+
realtimeConnectPromise: Promise<void> | null;
|
|
1202
|
+
realtimeReconnectTimer: ReturnType<typeof setTimeout> | null;
|
|
1203
|
+
realtimeShouldReconnect: boolean;
|
|
1204
|
+
realtimeMessageListeners: Set<import("./types.js").RealtimeMessageListener>;
|
|
1205
|
+
realtimeStatusListeners: Set<import("./types.js").RealtimeStatusListener>;
|
|
1206
|
+
realtimeEventListeners: Map<string, Set<import("./types.js").RealtimeMessageListener>>;
|
|
1246
1207
|
configure(options: Partial<import("./types.js").EntityServerClientOptions>): void;
|
|
1247
1208
|
setToken(token: string): void;
|
|
1248
1209
|
setAnonymousPacketToken(token: string): void;
|
|
@@ -1263,21 +1224,21 @@ declare const EntityAppServerApi_base: {
|
|
|
1263
1224
|
unsubscribeRealtime(subscriptions: string[]): boolean;
|
|
1264
1225
|
startHealthTick(intervalMs?: number): void;
|
|
1265
1226
|
stopHealthTick(): void;
|
|
1266
|
-
|
|
1227
|
+
scheduleKeepSession(refreshToken: string, expiresIn: number, refreshFn: (rt: string) => Promise<{
|
|
1267
1228
|
access_token: string;
|
|
1268
1229
|
expires_in: number;
|
|
1269
1230
|
}>): void;
|
|
1270
|
-
|
|
1231
|
+
clearRefreshTimer(): void;
|
|
1271
1232
|
stopKeepSession(): void;
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1233
|
+
applyRealtimeOptions(options?: boolean | import("./types.js").RealtimeClientOptions): void;
|
|
1234
|
+
buildRealtimeUrl(): string;
|
|
1235
|
+
handleRealtimeMessage(payload: unknown): void;
|
|
1236
|
+
scheduleRealtimeReconnect(reason: string): void;
|
|
1237
|
+
clearRealtimeReconnectTimer(): void;
|
|
1238
|
+
setRealtimeStatus(status: import("./types.js").RealtimeConnectionStatus, reason?: string, error?: Error): void;
|
|
1239
|
+
applyCsrfHealth(): void;
|
|
1279
1240
|
readRequestBody<T = Record<string, unknown>>(body: ArrayBuffer | Uint8Array | string | T | null | undefined, contentType?: string, requireEncrypted?: boolean): T;
|
|
1280
|
-
get
|
|
1241
|
+
get reqOpts(): import("./client/request.js").RequestOptions;
|
|
1281
1242
|
get http(): {
|
|
1282
1243
|
get<T>(path: string, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
|
|
1283
1244
|
post<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
|
|
@@ -1285,13 +1246,10 @@ declare const EntityAppServerApi_base: {
|
|
|
1285
1246
|
patch<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
|
|
1286
1247
|
delete<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
|
|
1287
1248
|
};
|
|
1249
|
+
request<T>(method: string, path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
|
|
1288
1250
|
requestBinary(method: string, path: string, body?: unknown, withAuth?: boolean): Promise<ArrayBuffer>;
|
|
1289
1251
|
requestForm<T>(method: string, path: string, form: FormData, withAuth?: boolean): Promise<T>;
|
|
1290
1252
|
requestFormBinary(method: string, path: string, form: FormData, withAuth?: boolean): Promise<ArrayBuffer>;
|
|
1291
|
-
_request<T>(method: string, path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
|
|
1292
|
-
_requestBinary(method: string, path: string, body?: unknown, withAuth?: boolean): Promise<ArrayBuffer>;
|
|
1293
|
-
_requestForm<T>(method: string, path: string, form: FormData, withAuth?: boolean): Promise<T>;
|
|
1294
|
-
_requestFormBinary(method: string, path: string, form: FormData, withAuth?: boolean): Promise<ArrayBuffer>;
|
|
1295
1253
|
};
|
|
1296
1254
|
} & {
|
|
1297
1255
|
new (...args: any[]): {
|
|
@@ -1337,30 +1295,30 @@ declare const EntityAppServerApi_base: {
|
|
|
1337
1295
|
csrfEnabled: boolean;
|
|
1338
1296
|
csrfHeaderName: string;
|
|
1339
1297
|
csrfCookieName: string;
|
|
1340
|
-
|
|
1298
|
+
csrfRefresher: (() => Promise<void>) | null;
|
|
1341
1299
|
activeTxId: string | null;
|
|
1342
1300
|
keepSession: boolean;
|
|
1343
1301
|
refreshBuffer: number;
|
|
1344
1302
|
onTokenRefreshed?: (accessToken: string, expiresIn: number) => void;
|
|
1345
1303
|
onSessionExpired?: (error: Error) => void;
|
|
1346
1304
|
onHealthChange?: (online: boolean) => void;
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1305
|
+
sessionRefreshToken: string | null;
|
|
1306
|
+
refreshTimer: ReturnType<typeof setTimeout> | null;
|
|
1307
|
+
healthTickTimer: ReturnType<typeof setInterval> | null;
|
|
1308
|
+
healthTickPromise: Promise<unknown> | null;
|
|
1351
1309
|
realtimeEnabled: boolean;
|
|
1352
1310
|
realtimePath: string;
|
|
1353
1311
|
realtimeAutoConnect: boolean;
|
|
1354
1312
|
realtimeAutoReconnect: boolean;
|
|
1355
1313
|
realtimeReconnectDelayMs: number;
|
|
1356
1314
|
realtimeStatus: import("./types.js").RealtimeConnectionStatus;
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1315
|
+
realtimeSocket: WebSocket | null;
|
|
1316
|
+
realtimeConnectPromise: Promise<void> | null;
|
|
1317
|
+
realtimeReconnectTimer: ReturnType<typeof setTimeout> | null;
|
|
1318
|
+
realtimeShouldReconnect: boolean;
|
|
1319
|
+
realtimeMessageListeners: Set<import("./types.js").RealtimeMessageListener>;
|
|
1320
|
+
realtimeStatusListeners: Set<import("./types.js").RealtimeStatusListener>;
|
|
1321
|
+
realtimeEventListeners: Map<string, Set<import("./types.js").RealtimeMessageListener>>;
|
|
1364
1322
|
configure(options: Partial<import("./types.js").EntityServerClientOptions>): void;
|
|
1365
1323
|
setToken(token: string): void;
|
|
1366
1324
|
setAnonymousPacketToken(token: string): void;
|
|
@@ -1381,21 +1339,21 @@ declare const EntityAppServerApi_base: {
|
|
|
1381
1339
|
unsubscribeRealtime(subscriptions: string[]): boolean;
|
|
1382
1340
|
startHealthTick(intervalMs?: number): void;
|
|
1383
1341
|
stopHealthTick(): void;
|
|
1384
|
-
|
|
1342
|
+
scheduleKeepSession(refreshToken: string, expiresIn: number, refreshFn: (rt: string) => Promise<{
|
|
1385
1343
|
access_token: string;
|
|
1386
1344
|
expires_in: number;
|
|
1387
1345
|
}>): void;
|
|
1388
|
-
|
|
1346
|
+
clearRefreshTimer(): void;
|
|
1389
1347
|
stopKeepSession(): void;
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1348
|
+
applyRealtimeOptions(options?: boolean | import("./types.js").RealtimeClientOptions): void;
|
|
1349
|
+
buildRealtimeUrl(): string;
|
|
1350
|
+
handleRealtimeMessage(payload: unknown): void;
|
|
1351
|
+
scheduleRealtimeReconnect(reason: string): void;
|
|
1352
|
+
clearRealtimeReconnectTimer(): void;
|
|
1353
|
+
setRealtimeStatus(status: import("./types.js").RealtimeConnectionStatus, reason?: string, error?: Error): void;
|
|
1354
|
+
applyCsrfHealth(): void;
|
|
1397
1355
|
readRequestBody<T = Record<string, unknown>>(body: ArrayBuffer | Uint8Array | string | T | null | undefined, contentType?: string, requireEncrypted?: boolean): T;
|
|
1398
|
-
get
|
|
1356
|
+
get reqOpts(): import("./client/request.js").RequestOptions;
|
|
1399
1357
|
get http(): {
|
|
1400
1358
|
get<T>(path: string, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
|
|
1401
1359
|
post<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
|
|
@@ -1403,13 +1361,10 @@ declare const EntityAppServerApi_base: {
|
|
|
1403
1361
|
patch<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
|
|
1404
1362
|
delete<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
|
|
1405
1363
|
};
|
|
1364
|
+
request<T>(method: string, path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
|
|
1406
1365
|
requestBinary(method: string, path: string, body?: unknown, withAuth?: boolean): Promise<ArrayBuffer>;
|
|
1407
1366
|
requestForm<T>(method: string, path: string, form: FormData, withAuth?: boolean): Promise<T>;
|
|
1408
1367
|
requestFormBinary(method: string, path: string, form: FormData, withAuth?: boolean): Promise<ArrayBuffer>;
|
|
1409
|
-
_request<T>(method: string, path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
|
|
1410
|
-
_requestBinary(method: string, path: string, body?: unknown, withAuth?: boolean): Promise<ArrayBuffer>;
|
|
1411
|
-
_requestForm<T>(method: string, path: string, form: FormData, withAuth?: boolean): Promise<T>;
|
|
1412
|
-
_requestFormBinary(method: string, path: string, form: FormData, withAuth?: boolean): Promise<ArrayBuffer>;
|
|
1413
1368
|
};
|
|
1414
1369
|
} & {
|
|
1415
1370
|
new (...args: any[]): {
|
|
@@ -1432,30 +1387,30 @@ declare const EntityAppServerApi_base: {
|
|
|
1432
1387
|
csrfEnabled: boolean;
|
|
1433
1388
|
csrfHeaderName: string;
|
|
1434
1389
|
csrfCookieName: string;
|
|
1435
|
-
|
|
1390
|
+
csrfRefresher: (() => Promise<void>) | null;
|
|
1436
1391
|
activeTxId: string | null;
|
|
1437
1392
|
keepSession: boolean;
|
|
1438
1393
|
refreshBuffer: number;
|
|
1439
1394
|
onTokenRefreshed?: (accessToken: string, expiresIn: number) => void;
|
|
1440
1395
|
onSessionExpired?: (error: Error) => void;
|
|
1441
1396
|
onHealthChange?: (online: boolean) => void;
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
1397
|
+
sessionRefreshToken: string | null;
|
|
1398
|
+
refreshTimer: ReturnType<typeof setTimeout> | null;
|
|
1399
|
+
healthTickTimer: ReturnType<typeof setInterval> | null;
|
|
1400
|
+
healthTickPromise: Promise<unknown> | null;
|
|
1446
1401
|
realtimeEnabled: boolean;
|
|
1447
1402
|
realtimePath: string;
|
|
1448
1403
|
realtimeAutoConnect: boolean;
|
|
1449
1404
|
realtimeAutoReconnect: boolean;
|
|
1450
1405
|
realtimeReconnectDelayMs: number;
|
|
1451
1406
|
realtimeStatus: import("./types.js").RealtimeConnectionStatus;
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1407
|
+
realtimeSocket: WebSocket | null;
|
|
1408
|
+
realtimeConnectPromise: Promise<void> | null;
|
|
1409
|
+
realtimeReconnectTimer: ReturnType<typeof setTimeout> | null;
|
|
1410
|
+
realtimeShouldReconnect: boolean;
|
|
1411
|
+
realtimeMessageListeners: Set<import("./types.js").RealtimeMessageListener>;
|
|
1412
|
+
realtimeStatusListeners: Set<import("./types.js").RealtimeStatusListener>;
|
|
1413
|
+
realtimeEventListeners: Map<string, Set<import("./types.js").RealtimeMessageListener>>;
|
|
1459
1414
|
configure(options: Partial<import("./types.js").EntityServerClientOptions>): void;
|
|
1460
1415
|
setToken(token: string): void;
|
|
1461
1416
|
setAnonymousPacketToken(token: string): void;
|
|
@@ -1476,21 +1431,21 @@ declare const EntityAppServerApi_base: {
|
|
|
1476
1431
|
unsubscribeRealtime(subscriptions: string[]): boolean;
|
|
1477
1432
|
startHealthTick(intervalMs?: number): void;
|
|
1478
1433
|
stopHealthTick(): void;
|
|
1479
|
-
|
|
1434
|
+
scheduleKeepSession(refreshToken: string, expiresIn: number, refreshFn: (rt: string) => Promise<{
|
|
1480
1435
|
access_token: string;
|
|
1481
1436
|
expires_in: number;
|
|
1482
1437
|
}>): void;
|
|
1483
|
-
|
|
1438
|
+
clearRefreshTimer(): void;
|
|
1484
1439
|
stopKeepSession(): void;
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
|
|
1440
|
+
applyRealtimeOptions(options?: boolean | import("./types.js").RealtimeClientOptions): void;
|
|
1441
|
+
buildRealtimeUrl(): string;
|
|
1442
|
+
handleRealtimeMessage(payload: unknown): void;
|
|
1443
|
+
scheduleRealtimeReconnect(reason: string): void;
|
|
1444
|
+
clearRealtimeReconnectTimer(): void;
|
|
1445
|
+
setRealtimeStatus(status: import("./types.js").RealtimeConnectionStatus, reason?: string, error?: Error): void;
|
|
1446
|
+
applyCsrfHealth(): void;
|
|
1492
1447
|
readRequestBody<T = Record<string, unknown>>(body: ArrayBuffer | Uint8Array | string | T | null | undefined, contentType?: string, requireEncrypted?: boolean): T;
|
|
1493
|
-
get
|
|
1448
|
+
get reqOpts(): import("./client/request.js").RequestOptions;
|
|
1494
1449
|
get http(): {
|
|
1495
1450
|
get<T>(path: string, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
|
|
1496
1451
|
post<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
|
|
@@ -1498,13 +1453,10 @@ declare const EntityAppServerApi_base: {
|
|
|
1498
1453
|
patch<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
|
|
1499
1454
|
delete<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
|
|
1500
1455
|
};
|
|
1456
|
+
request<T>(method: string, path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
|
|
1501
1457
|
requestBinary(method: string, path: string, body?: unknown, withAuth?: boolean): Promise<ArrayBuffer>;
|
|
1502
1458
|
requestForm<T>(method: string, path: string, form: FormData, withAuth?: boolean): Promise<T>;
|
|
1503
1459
|
requestFormBinary(method: string, path: string, form: FormData, withAuth?: boolean): Promise<ArrayBuffer>;
|
|
1504
|
-
_request<T>(method: string, path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
|
|
1505
|
-
_requestBinary(method: string, path: string, body?: unknown, withAuth?: boolean): Promise<ArrayBuffer>;
|
|
1506
|
-
_requestForm<T>(method: string, path: string, form: FormData, withAuth?: boolean): Promise<T>;
|
|
1507
|
-
_requestFormBinary(method: string, path: string, form: FormData, withAuth?: boolean): Promise<ArrayBuffer>;
|
|
1508
1460
|
};
|
|
1509
1461
|
} & typeof EntityServerApi;
|
|
1510
1462
|
export declare class EntityAppServerApi extends EntityAppServerApi_base {
|