entity-client 1.0.22 → 1.0.23
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 +48 -32
- package/dist/EntityServerApi.d.ts +24 -16
- package/dist/client/base.d.ts +5 -2
- package/dist/client/base.js +1 -1
- package/dist/client/base.js.map +3 -3
- package/dist/client/request.d.ts +2 -0
- package/dist/client/request.js +1 -1
- package/dist/client/request.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 +3 -2
- package/dist/mixins/app/plugins/friendtalk.d.ts +3 -2
- package/dist/mixins/app/plugins/holidays.d.ts +3 -2
- package/dist/mixins/app/plugins/identity.d.ts +3 -2
- package/dist/mixins/app/plugins/llm.d.ts +3 -2
- package/dist/mixins/app/plugins/ocr.d.ts +3 -2
- package/dist/mixins/app/plugins/pg.d.ts +3 -2
- package/dist/mixins/app/plugins/push.d.ts +3 -2
- package/dist/mixins/app/plugins/sms.d.ts +3 -2
- package/dist/mixins/app/plugins/taxinvoice.d.ts +3 -2
- package/dist/mixins/app/routes/account.d.ts +3 -2
- package/dist/mixins/app/routes/board.d.ts +3 -2
- package/dist/mixins/app/routes/email-verify.d.ts +3 -2
- package/dist/mixins/app/routes/oauth.d.ts +3 -2
- package/dist/mixins/app/routes/password-reset.d.ts +3 -2
- package/dist/mixins/app/routes/two-factor.d.ts +3 -2
- package/dist/mixins/server/admin.d.ts +3 -2
- package/dist/mixins/server/auth.d.ts +4 -2
- package/dist/mixins/server/auth.js +1 -1
- package/dist/mixins/server/auth.js.map +3 -3
- package/dist/mixins/server/entity.d.ts +3 -2
- package/dist/mixins/server/file.d.ts +3 -2
- package/dist/mixins/server/push.d.ts +3 -2
- package/dist/mixins/server/smtp.d.ts +3 -2
- package/dist/mixins/server/transaction.d.ts +3 -2
- package/dist/mixins/server/utils.d.ts +3 -2
- package/dist/react.js +1 -1
- package/dist/react.js.map +3 -3
- package/dist/types.d.ts +0 -1
- package/package.json +1 -1
|
@@ -15,6 +15,7 @@ declare const EntityAppServerApi_base: {
|
|
|
15
15
|
csrfHeaderName: string;
|
|
16
16
|
csrfCookieName: string;
|
|
17
17
|
csrfRefresher: (() => Promise<void>) | null;
|
|
18
|
+
requestAbortControllers: Map<string, AbortController>;
|
|
18
19
|
activeTxId: string | null;
|
|
19
20
|
keepSession: boolean;
|
|
20
21
|
refreshBuffer: number;
|
|
@@ -27,7 +28,6 @@ declare const EntityAppServerApi_base: {
|
|
|
27
28
|
healthTickPromise: Promise<unknown> | null;
|
|
28
29
|
realtimeEnabled: boolean;
|
|
29
30
|
realtimePath: string;
|
|
30
|
-
realtimeAutoConnect: boolean;
|
|
31
31
|
realtimeAutoReconnect: boolean;
|
|
32
32
|
realtimeReconnectDelayMs: number;
|
|
33
33
|
realtimeStatus: import("./types.js").RealtimeConnectionStatus;
|
|
@@ -40,6 +40,7 @@ declare const EntityAppServerApi_base: {
|
|
|
40
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
|
+
setAccessTokenFromResponse(token: string): void;
|
|
43
44
|
setAnonymousPacketToken(token: string): void;
|
|
44
45
|
setApiKey(apiKey: string): void;
|
|
45
46
|
setHmacSecret(secret: string): void;
|
|
@@ -56,7 +57,7 @@ declare const EntityAppServerApi_base: {
|
|
|
56
57
|
sendRealtime(message: import("./types.js").RealtimeEnvelope | Record<string, unknown>): boolean;
|
|
57
58
|
subscribeRealtime(subscriptions: string[]): boolean;
|
|
58
59
|
unsubscribeRealtime(subscriptions: string[]): boolean;
|
|
59
|
-
startHealthTick(intervalMs?: number): void;
|
|
60
|
+
startHealthTick(intervalMs?: number, runImmediately?: boolean): void;
|
|
60
61
|
stopHealthTick(): void;
|
|
61
62
|
scheduleKeepSession(refreshToken: string, expiresIn: number, refreshFn: (rt: string) => Promise<{
|
|
62
63
|
access_token: string;
|
|
@@ -99,6 +100,7 @@ declare const EntityAppServerApi_base: {
|
|
|
99
100
|
csrfHeaderName: string;
|
|
100
101
|
csrfCookieName: string;
|
|
101
102
|
csrfRefresher: (() => Promise<void>) | null;
|
|
103
|
+
requestAbortControllers: Map<string, AbortController>;
|
|
102
104
|
activeTxId: string | null;
|
|
103
105
|
keepSession: boolean;
|
|
104
106
|
refreshBuffer: number;
|
|
@@ -111,7 +113,6 @@ declare const EntityAppServerApi_base: {
|
|
|
111
113
|
healthTickPromise: Promise<unknown> | null;
|
|
112
114
|
realtimeEnabled: boolean;
|
|
113
115
|
realtimePath: string;
|
|
114
|
-
realtimeAutoConnect: boolean;
|
|
115
116
|
realtimeAutoReconnect: boolean;
|
|
116
117
|
realtimeReconnectDelayMs: number;
|
|
117
118
|
realtimeStatus: import("./types.js").RealtimeConnectionStatus;
|
|
@@ -124,6 +125,7 @@ declare const EntityAppServerApi_base: {
|
|
|
124
125
|
realtimeEventListeners: Map<string, Set<import("./types.js").RealtimeMessageListener>>;
|
|
125
126
|
configure(options: Partial<import("./types.js").EntityServerClientOptions>): void;
|
|
126
127
|
setToken(token: string): void;
|
|
128
|
+
setAccessTokenFromResponse(token: string): void;
|
|
127
129
|
setAnonymousPacketToken(token: string): void;
|
|
128
130
|
setApiKey(apiKey: string): void;
|
|
129
131
|
setHmacSecret(secret: string): void;
|
|
@@ -140,7 +142,7 @@ declare const EntityAppServerApi_base: {
|
|
|
140
142
|
sendRealtime(message: import("./types.js").RealtimeEnvelope | Record<string, unknown>): boolean;
|
|
141
143
|
subscribeRealtime(subscriptions: string[]): boolean;
|
|
142
144
|
unsubscribeRealtime(subscriptions: string[]): boolean;
|
|
143
|
-
startHealthTick(intervalMs?: number): void;
|
|
145
|
+
startHealthTick(intervalMs?: number, runImmediately?: boolean): void;
|
|
144
146
|
stopHealthTick(): void;
|
|
145
147
|
scheduleKeepSession(refreshToken: string, expiresIn: number, refreshFn: (rt: string) => Promise<{
|
|
146
148
|
access_token: string;
|
|
@@ -186,6 +188,7 @@ declare const EntityAppServerApi_base: {
|
|
|
186
188
|
csrfHeaderName: string;
|
|
187
189
|
csrfCookieName: string;
|
|
188
190
|
csrfRefresher: (() => Promise<void>) | null;
|
|
191
|
+
requestAbortControllers: Map<string, AbortController>;
|
|
189
192
|
activeTxId: string | null;
|
|
190
193
|
keepSession: boolean;
|
|
191
194
|
refreshBuffer: number;
|
|
@@ -198,7 +201,6 @@ declare const EntityAppServerApi_base: {
|
|
|
198
201
|
healthTickPromise: Promise<unknown> | null;
|
|
199
202
|
realtimeEnabled: boolean;
|
|
200
203
|
realtimePath: string;
|
|
201
|
-
realtimeAutoConnect: boolean;
|
|
202
204
|
realtimeAutoReconnect: boolean;
|
|
203
205
|
realtimeReconnectDelayMs: number;
|
|
204
206
|
realtimeStatus: import("./types.js").RealtimeConnectionStatus;
|
|
@@ -211,6 +213,7 @@ declare const EntityAppServerApi_base: {
|
|
|
211
213
|
realtimeEventListeners: Map<string, Set<import("./types.js").RealtimeMessageListener>>;
|
|
212
214
|
configure(options: Partial<import("./types.js").EntityServerClientOptions>): void;
|
|
213
215
|
setToken(token: string): void;
|
|
216
|
+
setAccessTokenFromResponse(token: string): void;
|
|
214
217
|
setAnonymousPacketToken(token: string): void;
|
|
215
218
|
setApiKey(apiKey: string): void;
|
|
216
219
|
setHmacSecret(secret: string): void;
|
|
@@ -227,7 +230,7 @@ declare const EntityAppServerApi_base: {
|
|
|
227
230
|
sendRealtime(message: import("./types.js").RealtimeEnvelope | Record<string, unknown>): boolean;
|
|
228
231
|
subscribeRealtime(subscriptions: string[]): boolean;
|
|
229
232
|
unsubscribeRealtime(subscriptions: string[]): boolean;
|
|
230
|
-
startHealthTick(intervalMs?: number): void;
|
|
233
|
+
startHealthTick(intervalMs?: number, runImmediately?: boolean): void;
|
|
231
234
|
stopHealthTick(): void;
|
|
232
235
|
scheduleKeepSession(refreshToken: string, expiresIn: number, refreshFn: (rt: string) => Promise<{
|
|
233
236
|
access_token: string;
|
|
@@ -274,6 +277,7 @@ declare const EntityAppServerApi_base: {
|
|
|
274
277
|
csrfHeaderName: string;
|
|
275
278
|
csrfCookieName: string;
|
|
276
279
|
csrfRefresher: (() => Promise<void>) | null;
|
|
280
|
+
requestAbortControllers: Map<string, AbortController>;
|
|
277
281
|
activeTxId: string | null;
|
|
278
282
|
keepSession: boolean;
|
|
279
283
|
refreshBuffer: number;
|
|
@@ -286,7 +290,6 @@ declare const EntityAppServerApi_base: {
|
|
|
286
290
|
healthTickPromise: Promise<unknown> | null;
|
|
287
291
|
realtimeEnabled: boolean;
|
|
288
292
|
realtimePath: string;
|
|
289
|
-
realtimeAutoConnect: boolean;
|
|
290
293
|
realtimeAutoReconnect: boolean;
|
|
291
294
|
realtimeReconnectDelayMs: number;
|
|
292
295
|
realtimeStatus: import("./types.js").RealtimeConnectionStatus;
|
|
@@ -299,6 +302,7 @@ declare const EntityAppServerApi_base: {
|
|
|
299
302
|
realtimeEventListeners: Map<string, Set<import("./types.js").RealtimeMessageListener>>;
|
|
300
303
|
configure(options: Partial<import("./types.js").EntityServerClientOptions>): void;
|
|
301
304
|
setToken(token: string): void;
|
|
305
|
+
setAccessTokenFromResponse(token: string): void;
|
|
302
306
|
setAnonymousPacketToken(token: string): void;
|
|
303
307
|
setApiKey(apiKey: string): void;
|
|
304
308
|
setHmacSecret(secret: string): void;
|
|
@@ -315,7 +319,7 @@ declare const EntityAppServerApi_base: {
|
|
|
315
319
|
sendRealtime(message: import("./types.js").RealtimeEnvelope | Record<string, unknown>): boolean;
|
|
316
320
|
subscribeRealtime(subscriptions: string[]): boolean;
|
|
317
321
|
unsubscribeRealtime(subscriptions: string[]): boolean;
|
|
318
|
-
startHealthTick(intervalMs?: number): void;
|
|
322
|
+
startHealthTick(intervalMs?: number, runImmediately?: boolean): void;
|
|
319
323
|
stopHealthTick(): void;
|
|
320
324
|
scheduleKeepSession(refreshToken: string, expiresIn: number, refreshFn: (rt: string) => Promise<{
|
|
321
325
|
access_token: string;
|
|
@@ -364,6 +368,7 @@ declare const EntityAppServerApi_base: {
|
|
|
364
368
|
csrfHeaderName: string;
|
|
365
369
|
csrfCookieName: string;
|
|
366
370
|
csrfRefresher: (() => Promise<void>) | null;
|
|
371
|
+
requestAbortControllers: Map<string, AbortController>;
|
|
367
372
|
activeTxId: string | null;
|
|
368
373
|
keepSession: boolean;
|
|
369
374
|
refreshBuffer: number;
|
|
@@ -376,7 +381,6 @@ declare const EntityAppServerApi_base: {
|
|
|
376
381
|
healthTickPromise: Promise<unknown> | null;
|
|
377
382
|
realtimeEnabled: boolean;
|
|
378
383
|
realtimePath: string;
|
|
379
|
-
realtimeAutoConnect: boolean;
|
|
380
384
|
realtimeAutoReconnect: boolean;
|
|
381
385
|
realtimeReconnectDelayMs: number;
|
|
382
386
|
realtimeStatus: import("./types.js").RealtimeConnectionStatus;
|
|
@@ -389,6 +393,7 @@ declare const EntityAppServerApi_base: {
|
|
|
389
393
|
realtimeEventListeners: Map<string, Set<import("./types.js").RealtimeMessageListener>>;
|
|
390
394
|
configure(options: Partial<import("./types.js").EntityServerClientOptions>): void;
|
|
391
395
|
setToken(token: string): void;
|
|
396
|
+
setAccessTokenFromResponse(token: string): void;
|
|
392
397
|
setAnonymousPacketToken(token: string): void;
|
|
393
398
|
setApiKey(apiKey: string): void;
|
|
394
399
|
setHmacSecret(secret: string): void;
|
|
@@ -405,7 +410,7 @@ declare const EntityAppServerApi_base: {
|
|
|
405
410
|
sendRealtime(message: import("./types.js").RealtimeEnvelope | Record<string, unknown>): boolean;
|
|
406
411
|
subscribeRealtime(subscriptions: string[]): boolean;
|
|
407
412
|
unsubscribeRealtime(subscriptions: string[]): boolean;
|
|
408
|
-
startHealthTick(intervalMs?: number): void;
|
|
413
|
+
startHealthTick(intervalMs?: number, runImmediately?: boolean): void;
|
|
409
414
|
stopHealthTick(): void;
|
|
410
415
|
scheduleKeepSession(refreshToken: string, expiresIn: number, refreshFn: (rt: string) => Promise<{
|
|
411
416
|
access_token: string;
|
|
@@ -453,6 +458,7 @@ declare const EntityAppServerApi_base: {
|
|
|
453
458
|
csrfHeaderName: string;
|
|
454
459
|
csrfCookieName: string;
|
|
455
460
|
csrfRefresher: (() => Promise<void>) | null;
|
|
461
|
+
requestAbortControllers: Map<string, AbortController>;
|
|
456
462
|
activeTxId: string | null;
|
|
457
463
|
keepSession: boolean;
|
|
458
464
|
refreshBuffer: number;
|
|
@@ -465,7 +471,6 @@ declare const EntityAppServerApi_base: {
|
|
|
465
471
|
healthTickPromise: Promise<unknown> | null;
|
|
466
472
|
realtimeEnabled: boolean;
|
|
467
473
|
realtimePath: string;
|
|
468
|
-
realtimeAutoConnect: boolean;
|
|
469
474
|
realtimeAutoReconnect: boolean;
|
|
470
475
|
realtimeReconnectDelayMs: number;
|
|
471
476
|
realtimeStatus: import("./types.js").RealtimeConnectionStatus;
|
|
@@ -478,6 +483,7 @@ declare const EntityAppServerApi_base: {
|
|
|
478
483
|
realtimeEventListeners: Map<string, Set<import("./types.js").RealtimeMessageListener>>;
|
|
479
484
|
configure(options: Partial<import("./types.js").EntityServerClientOptions>): void;
|
|
480
485
|
setToken(token: string): void;
|
|
486
|
+
setAccessTokenFromResponse(token: string): void;
|
|
481
487
|
setAnonymousPacketToken(token: string): void;
|
|
482
488
|
setApiKey(apiKey: string): void;
|
|
483
489
|
setHmacSecret(secret: string): void;
|
|
@@ -494,7 +500,7 @@ declare const EntityAppServerApi_base: {
|
|
|
494
500
|
sendRealtime(message: import("./types.js").RealtimeEnvelope | Record<string, unknown>): boolean;
|
|
495
501
|
subscribeRealtime(subscriptions: string[]): boolean;
|
|
496
502
|
unsubscribeRealtime(subscriptions: string[]): boolean;
|
|
497
|
-
startHealthTick(intervalMs?: number): void;
|
|
503
|
+
startHealthTick(intervalMs?: number, runImmediately?: boolean): void;
|
|
498
504
|
stopHealthTick(): void;
|
|
499
505
|
scheduleKeepSession(refreshToken: string, expiresIn: number, refreshFn: (rt: string) => Promise<{
|
|
500
506
|
access_token: string;
|
|
@@ -544,6 +550,7 @@ declare const EntityAppServerApi_base: {
|
|
|
544
550
|
csrfHeaderName: string;
|
|
545
551
|
csrfCookieName: string;
|
|
546
552
|
csrfRefresher: (() => Promise<void>) | null;
|
|
553
|
+
requestAbortControllers: Map<string, AbortController>;
|
|
547
554
|
activeTxId: string | null;
|
|
548
555
|
keepSession: boolean;
|
|
549
556
|
refreshBuffer: number;
|
|
@@ -556,7 +563,6 @@ declare const EntityAppServerApi_base: {
|
|
|
556
563
|
healthTickPromise: Promise<unknown> | null;
|
|
557
564
|
realtimeEnabled: boolean;
|
|
558
565
|
realtimePath: string;
|
|
559
|
-
realtimeAutoConnect: boolean;
|
|
560
566
|
realtimeAutoReconnect: boolean;
|
|
561
567
|
realtimeReconnectDelayMs: number;
|
|
562
568
|
realtimeStatus: import("./types.js").RealtimeConnectionStatus;
|
|
@@ -569,6 +575,7 @@ declare const EntityAppServerApi_base: {
|
|
|
569
575
|
realtimeEventListeners: Map<string, Set<import("./types.js").RealtimeMessageListener>>;
|
|
570
576
|
configure(options: Partial<import("./types.js").EntityServerClientOptions>): void;
|
|
571
577
|
setToken(token: string): void;
|
|
578
|
+
setAccessTokenFromResponse(token: string): void;
|
|
572
579
|
setAnonymousPacketToken(token: string): void;
|
|
573
580
|
setApiKey(apiKey: string): void;
|
|
574
581
|
setHmacSecret(secret: string): void;
|
|
@@ -585,7 +592,7 @@ declare const EntityAppServerApi_base: {
|
|
|
585
592
|
sendRealtime(message: import("./types.js").RealtimeEnvelope | Record<string, unknown>): boolean;
|
|
586
593
|
subscribeRealtime(subscriptions: string[]): boolean;
|
|
587
594
|
unsubscribeRealtime(subscriptions: string[]): boolean;
|
|
588
|
-
startHealthTick(intervalMs?: number): void;
|
|
595
|
+
startHealthTick(intervalMs?: number, runImmediately?: boolean): void;
|
|
589
596
|
stopHealthTick(): void;
|
|
590
597
|
scheduleKeepSession(refreshToken: string, expiresIn: number, refreshFn: (rt: string) => Promise<{
|
|
591
598
|
access_token: string;
|
|
@@ -662,6 +669,7 @@ declare const EntityAppServerApi_base: {
|
|
|
662
669
|
csrfHeaderName: string;
|
|
663
670
|
csrfCookieName: string;
|
|
664
671
|
csrfRefresher: (() => Promise<void>) | null;
|
|
672
|
+
requestAbortControllers: Map<string, AbortController>;
|
|
665
673
|
activeTxId: string | null;
|
|
666
674
|
keepSession: boolean;
|
|
667
675
|
refreshBuffer: number;
|
|
@@ -674,7 +682,6 @@ declare const EntityAppServerApi_base: {
|
|
|
674
682
|
healthTickPromise: Promise<unknown> | null;
|
|
675
683
|
realtimeEnabled: boolean;
|
|
676
684
|
realtimePath: string;
|
|
677
|
-
realtimeAutoConnect: boolean;
|
|
678
685
|
realtimeAutoReconnect: boolean;
|
|
679
686
|
realtimeReconnectDelayMs: number;
|
|
680
687
|
realtimeStatus: import("./types.js").RealtimeConnectionStatus;
|
|
@@ -687,6 +694,7 @@ declare const EntityAppServerApi_base: {
|
|
|
687
694
|
realtimeEventListeners: Map<string, Set<import("./types.js").RealtimeMessageListener>>;
|
|
688
695
|
configure(options: Partial<import("./types.js").EntityServerClientOptions>): void;
|
|
689
696
|
setToken(token: string): void;
|
|
697
|
+
setAccessTokenFromResponse(token: string): void;
|
|
690
698
|
setAnonymousPacketToken(token: string): void;
|
|
691
699
|
setApiKey(apiKey: string): void;
|
|
692
700
|
setHmacSecret(secret: string): void;
|
|
@@ -703,7 +711,7 @@ declare const EntityAppServerApi_base: {
|
|
|
703
711
|
sendRealtime(message: import("./types.js").RealtimeEnvelope | Record<string, unknown>): boolean;
|
|
704
712
|
subscribeRealtime(subscriptions: string[]): boolean;
|
|
705
713
|
unsubscribeRealtime(subscriptions: string[]): boolean;
|
|
706
|
-
startHealthTick(intervalMs?: number): void;
|
|
714
|
+
startHealthTick(intervalMs?: number, runImmediately?: boolean): void;
|
|
707
715
|
stopHealthTick(): void;
|
|
708
716
|
scheduleKeepSession(refreshToken: string, expiresIn: number, refreshFn: (rt: string) => Promise<{
|
|
709
717
|
access_token: string;
|
|
@@ -749,6 +757,7 @@ declare const EntityAppServerApi_base: {
|
|
|
749
757
|
csrfHeaderName: string;
|
|
750
758
|
csrfCookieName: string;
|
|
751
759
|
csrfRefresher: (() => Promise<void>) | null;
|
|
760
|
+
requestAbortControllers: Map<string, AbortController>;
|
|
752
761
|
activeTxId: string | null;
|
|
753
762
|
keepSession: boolean;
|
|
754
763
|
refreshBuffer: number;
|
|
@@ -761,7 +770,6 @@ declare const EntityAppServerApi_base: {
|
|
|
761
770
|
healthTickPromise: Promise<unknown> | null;
|
|
762
771
|
realtimeEnabled: boolean;
|
|
763
772
|
realtimePath: string;
|
|
764
|
-
realtimeAutoConnect: boolean;
|
|
765
773
|
realtimeAutoReconnect: boolean;
|
|
766
774
|
realtimeReconnectDelayMs: number;
|
|
767
775
|
realtimeStatus: import("./types.js").RealtimeConnectionStatus;
|
|
@@ -774,6 +782,7 @@ declare const EntityAppServerApi_base: {
|
|
|
774
782
|
realtimeEventListeners: Map<string, Set<import("./types.js").RealtimeMessageListener>>;
|
|
775
783
|
configure(options: Partial<import("./types.js").EntityServerClientOptions>): void;
|
|
776
784
|
setToken(token: string): void;
|
|
785
|
+
setAccessTokenFromResponse(token: string): void;
|
|
777
786
|
setAnonymousPacketToken(token: string): void;
|
|
778
787
|
setApiKey(apiKey: string): void;
|
|
779
788
|
setHmacSecret(secret: string): void;
|
|
@@ -790,7 +799,7 @@ declare const EntityAppServerApi_base: {
|
|
|
790
799
|
sendRealtime(message: import("./types.js").RealtimeEnvelope | Record<string, unknown>): boolean;
|
|
791
800
|
subscribeRealtime(subscriptions: string[]): boolean;
|
|
792
801
|
unsubscribeRealtime(subscriptions: string[]): boolean;
|
|
793
|
-
startHealthTick(intervalMs?: number): void;
|
|
802
|
+
startHealthTick(intervalMs?: number, runImmediately?: boolean): void;
|
|
794
803
|
stopHealthTick(): void;
|
|
795
804
|
scheduleKeepSession(refreshToken: string, expiresIn: number, refreshFn: (rt: string) => Promise<{
|
|
796
805
|
access_token: string;
|
|
@@ -839,6 +848,7 @@ declare const EntityAppServerApi_base: {
|
|
|
839
848
|
csrfHeaderName: string;
|
|
840
849
|
csrfCookieName: string;
|
|
841
850
|
csrfRefresher: (() => Promise<void>) | null;
|
|
851
|
+
requestAbortControllers: Map<string, AbortController>;
|
|
842
852
|
activeTxId: string | null;
|
|
843
853
|
keepSession: boolean;
|
|
844
854
|
refreshBuffer: number;
|
|
@@ -851,7 +861,6 @@ declare const EntityAppServerApi_base: {
|
|
|
851
861
|
healthTickPromise: Promise<unknown> | null;
|
|
852
862
|
realtimeEnabled: boolean;
|
|
853
863
|
realtimePath: string;
|
|
854
|
-
realtimeAutoConnect: boolean;
|
|
855
864
|
realtimeAutoReconnect: boolean;
|
|
856
865
|
realtimeReconnectDelayMs: number;
|
|
857
866
|
realtimeStatus: import("./types.js").RealtimeConnectionStatus;
|
|
@@ -864,6 +873,7 @@ declare const EntityAppServerApi_base: {
|
|
|
864
873
|
realtimeEventListeners: Map<string, Set<import("./types.js").RealtimeMessageListener>>;
|
|
865
874
|
configure(options: Partial<import("./types.js").EntityServerClientOptions>): void;
|
|
866
875
|
setToken(token: string): void;
|
|
876
|
+
setAccessTokenFromResponse(token: string): void;
|
|
867
877
|
setAnonymousPacketToken(token: string): void;
|
|
868
878
|
setApiKey(apiKey: string): void;
|
|
869
879
|
setHmacSecret(secret: string): void;
|
|
@@ -880,7 +890,7 @@ declare const EntityAppServerApi_base: {
|
|
|
880
890
|
sendRealtime(message: import("./types.js").RealtimeEnvelope | Record<string, unknown>): boolean;
|
|
881
891
|
subscribeRealtime(subscriptions: string[]): boolean;
|
|
882
892
|
unsubscribeRealtime(subscriptions: string[]): boolean;
|
|
883
|
-
startHealthTick(intervalMs?: number): void;
|
|
893
|
+
startHealthTick(intervalMs?: number, runImmediately?: boolean): void;
|
|
884
894
|
stopHealthTick(): void;
|
|
885
895
|
scheduleKeepSession(refreshToken: string, expiresIn: number, refreshFn: (rt: string) => Promise<{
|
|
886
896
|
access_token: string;
|
|
@@ -928,6 +938,7 @@ declare const EntityAppServerApi_base: {
|
|
|
928
938
|
csrfHeaderName: string;
|
|
929
939
|
csrfCookieName: string;
|
|
930
940
|
csrfRefresher: (() => Promise<void>) | null;
|
|
941
|
+
requestAbortControllers: Map<string, AbortController>;
|
|
931
942
|
activeTxId: string | null;
|
|
932
943
|
keepSession: boolean;
|
|
933
944
|
refreshBuffer: number;
|
|
@@ -940,7 +951,6 @@ declare const EntityAppServerApi_base: {
|
|
|
940
951
|
healthTickPromise: Promise<unknown> | null;
|
|
941
952
|
realtimeEnabled: boolean;
|
|
942
953
|
realtimePath: string;
|
|
943
|
-
realtimeAutoConnect: boolean;
|
|
944
954
|
realtimeAutoReconnect: boolean;
|
|
945
955
|
realtimeReconnectDelayMs: number;
|
|
946
956
|
realtimeStatus: import("./types.js").RealtimeConnectionStatus;
|
|
@@ -953,6 +963,7 @@ declare const EntityAppServerApi_base: {
|
|
|
953
963
|
realtimeEventListeners: Map<string, Set<import("./types.js").RealtimeMessageListener>>;
|
|
954
964
|
configure(options: Partial<import("./types.js").EntityServerClientOptions>): void;
|
|
955
965
|
setToken(token: string): void;
|
|
966
|
+
setAccessTokenFromResponse(token: string): void;
|
|
956
967
|
setAnonymousPacketToken(token: string): void;
|
|
957
968
|
setApiKey(apiKey: string): void;
|
|
958
969
|
setHmacSecret(secret: string): void;
|
|
@@ -969,7 +980,7 @@ declare const EntityAppServerApi_base: {
|
|
|
969
980
|
sendRealtime(message: import("./types.js").RealtimeEnvelope | Record<string, unknown>): boolean;
|
|
970
981
|
subscribeRealtime(subscriptions: string[]): boolean;
|
|
971
982
|
unsubscribeRealtime(subscriptions: string[]): boolean;
|
|
972
|
-
startHealthTick(intervalMs?: number): void;
|
|
983
|
+
startHealthTick(intervalMs?: number, runImmediately?: boolean): void;
|
|
973
984
|
stopHealthTick(): void;
|
|
974
985
|
scheduleKeepSession(refreshToken: string, expiresIn: number, refreshFn: (rt: string) => Promise<{
|
|
975
986
|
access_token: string;
|
|
@@ -1018,6 +1029,7 @@ declare const EntityAppServerApi_base: {
|
|
|
1018
1029
|
csrfHeaderName: string;
|
|
1019
1030
|
csrfCookieName: string;
|
|
1020
1031
|
csrfRefresher: (() => Promise<void>) | null;
|
|
1032
|
+
requestAbortControllers: Map<string, AbortController>;
|
|
1021
1033
|
activeTxId: string | null;
|
|
1022
1034
|
keepSession: boolean;
|
|
1023
1035
|
refreshBuffer: number;
|
|
@@ -1030,7 +1042,6 @@ declare const EntityAppServerApi_base: {
|
|
|
1030
1042
|
healthTickPromise: Promise<unknown> | null;
|
|
1031
1043
|
realtimeEnabled: boolean;
|
|
1032
1044
|
realtimePath: string;
|
|
1033
|
-
realtimeAutoConnect: boolean;
|
|
1034
1045
|
realtimeAutoReconnect: boolean;
|
|
1035
1046
|
realtimeReconnectDelayMs: number;
|
|
1036
1047
|
realtimeStatus: import("./types.js").RealtimeConnectionStatus;
|
|
@@ -1043,6 +1054,7 @@ declare const EntityAppServerApi_base: {
|
|
|
1043
1054
|
realtimeEventListeners: Map<string, Set<import("./types.js").RealtimeMessageListener>>;
|
|
1044
1055
|
configure(options: Partial<import("./types.js").EntityServerClientOptions>): void;
|
|
1045
1056
|
setToken(token: string): void;
|
|
1057
|
+
setAccessTokenFromResponse(token: string): void;
|
|
1046
1058
|
setAnonymousPacketToken(token: string): void;
|
|
1047
1059
|
setApiKey(apiKey: string): void;
|
|
1048
1060
|
setHmacSecret(secret: string): void;
|
|
@@ -1059,7 +1071,7 @@ declare const EntityAppServerApi_base: {
|
|
|
1059
1071
|
sendRealtime(message: import("./types.js").RealtimeEnvelope | Record<string, unknown>): boolean;
|
|
1060
1072
|
subscribeRealtime(subscriptions: string[]): boolean;
|
|
1061
1073
|
unsubscribeRealtime(subscriptions: string[]): boolean;
|
|
1062
|
-
startHealthTick(intervalMs?: number): void;
|
|
1074
|
+
startHealthTick(intervalMs?: number, runImmediately?: boolean): void;
|
|
1063
1075
|
stopHealthTick(): void;
|
|
1064
1076
|
scheduleKeepSession(refreshToken: string, expiresIn: number, refreshFn: (rt: string) => Promise<{
|
|
1065
1077
|
access_token: string;
|
|
@@ -1106,6 +1118,7 @@ declare const EntityAppServerApi_base: {
|
|
|
1106
1118
|
csrfHeaderName: string;
|
|
1107
1119
|
csrfCookieName: string;
|
|
1108
1120
|
csrfRefresher: (() => Promise<void>) | null;
|
|
1121
|
+
requestAbortControllers: Map<string, AbortController>;
|
|
1109
1122
|
activeTxId: string | null;
|
|
1110
1123
|
keepSession: boolean;
|
|
1111
1124
|
refreshBuffer: number;
|
|
@@ -1118,7 +1131,6 @@ declare const EntityAppServerApi_base: {
|
|
|
1118
1131
|
healthTickPromise: Promise<unknown> | null;
|
|
1119
1132
|
realtimeEnabled: boolean;
|
|
1120
1133
|
realtimePath: string;
|
|
1121
|
-
realtimeAutoConnect: boolean;
|
|
1122
1134
|
realtimeAutoReconnect: boolean;
|
|
1123
1135
|
realtimeReconnectDelayMs: number;
|
|
1124
1136
|
realtimeStatus: import("./types.js").RealtimeConnectionStatus;
|
|
@@ -1131,6 +1143,7 @@ declare const EntityAppServerApi_base: {
|
|
|
1131
1143
|
realtimeEventListeners: Map<string, Set<import("./types.js").RealtimeMessageListener>>;
|
|
1132
1144
|
configure(options: Partial<import("./types.js").EntityServerClientOptions>): void;
|
|
1133
1145
|
setToken(token: string): void;
|
|
1146
|
+
setAccessTokenFromResponse(token: string): void;
|
|
1134
1147
|
setAnonymousPacketToken(token: string): void;
|
|
1135
1148
|
setApiKey(apiKey: string): void;
|
|
1136
1149
|
setHmacSecret(secret: string): void;
|
|
@@ -1147,7 +1160,7 @@ declare const EntityAppServerApi_base: {
|
|
|
1147
1160
|
sendRealtime(message: import("./types.js").RealtimeEnvelope | Record<string, unknown>): boolean;
|
|
1148
1161
|
subscribeRealtime(subscriptions: string[]): boolean;
|
|
1149
1162
|
unsubscribeRealtime(subscriptions: string[]): boolean;
|
|
1150
|
-
startHealthTick(intervalMs?: number): void;
|
|
1163
|
+
startHealthTick(intervalMs?: number, runImmediately?: boolean): void;
|
|
1151
1164
|
stopHealthTick(): void;
|
|
1152
1165
|
scheduleKeepSession(refreshToken: string, expiresIn: number, refreshFn: (rt: string) => Promise<{
|
|
1153
1166
|
access_token: string;
|
|
@@ -1194,6 +1207,7 @@ declare const EntityAppServerApi_base: {
|
|
|
1194
1207
|
csrfHeaderName: string;
|
|
1195
1208
|
csrfCookieName: string;
|
|
1196
1209
|
csrfRefresher: (() => Promise<void>) | null;
|
|
1210
|
+
requestAbortControllers: Map<string, AbortController>;
|
|
1197
1211
|
activeTxId: string | null;
|
|
1198
1212
|
keepSession: boolean;
|
|
1199
1213
|
refreshBuffer: number;
|
|
@@ -1206,7 +1220,6 @@ declare const EntityAppServerApi_base: {
|
|
|
1206
1220
|
healthTickPromise: Promise<unknown> | null;
|
|
1207
1221
|
realtimeEnabled: boolean;
|
|
1208
1222
|
realtimePath: string;
|
|
1209
|
-
realtimeAutoConnect: boolean;
|
|
1210
1223
|
realtimeAutoReconnect: boolean;
|
|
1211
1224
|
realtimeReconnectDelayMs: number;
|
|
1212
1225
|
realtimeStatus: import("./types.js").RealtimeConnectionStatus;
|
|
@@ -1219,6 +1232,7 @@ declare const EntityAppServerApi_base: {
|
|
|
1219
1232
|
realtimeEventListeners: Map<string, Set<import("./types.js").RealtimeMessageListener>>;
|
|
1220
1233
|
configure(options: Partial<import("./types.js").EntityServerClientOptions>): void;
|
|
1221
1234
|
setToken(token: string): void;
|
|
1235
|
+
setAccessTokenFromResponse(token: string): void;
|
|
1222
1236
|
setAnonymousPacketToken(token: string): void;
|
|
1223
1237
|
setApiKey(apiKey: string): void;
|
|
1224
1238
|
setHmacSecret(secret: string): void;
|
|
@@ -1235,7 +1249,7 @@ declare const EntityAppServerApi_base: {
|
|
|
1235
1249
|
sendRealtime(message: import("./types.js").RealtimeEnvelope | Record<string, unknown>): boolean;
|
|
1236
1250
|
subscribeRealtime(subscriptions: string[]): boolean;
|
|
1237
1251
|
unsubscribeRealtime(subscriptions: string[]): boolean;
|
|
1238
|
-
startHealthTick(intervalMs?: number): void;
|
|
1252
|
+
startHealthTick(intervalMs?: number, runImmediately?: boolean): void;
|
|
1239
1253
|
stopHealthTick(): void;
|
|
1240
1254
|
scheduleKeepSession(refreshToken: string, expiresIn: number, refreshFn: (rt: string) => Promise<{
|
|
1241
1255
|
access_token: string;
|
|
@@ -1310,6 +1324,7 @@ declare const EntityAppServerApi_base: {
|
|
|
1310
1324
|
csrfHeaderName: string;
|
|
1311
1325
|
csrfCookieName: string;
|
|
1312
1326
|
csrfRefresher: (() => Promise<void>) | null;
|
|
1327
|
+
requestAbortControllers: Map<string, AbortController>;
|
|
1313
1328
|
activeTxId: string | null;
|
|
1314
1329
|
keepSession: boolean;
|
|
1315
1330
|
refreshBuffer: number;
|
|
@@ -1322,7 +1337,6 @@ declare const EntityAppServerApi_base: {
|
|
|
1322
1337
|
healthTickPromise: Promise<unknown> | null;
|
|
1323
1338
|
realtimeEnabled: boolean;
|
|
1324
1339
|
realtimePath: string;
|
|
1325
|
-
realtimeAutoConnect: boolean;
|
|
1326
1340
|
realtimeAutoReconnect: boolean;
|
|
1327
1341
|
realtimeReconnectDelayMs: number;
|
|
1328
1342
|
realtimeStatus: import("./types.js").RealtimeConnectionStatus;
|
|
@@ -1335,6 +1349,7 @@ declare const EntityAppServerApi_base: {
|
|
|
1335
1349
|
realtimeEventListeners: Map<string, Set<import("./types.js").RealtimeMessageListener>>;
|
|
1336
1350
|
configure(options: Partial<import("./types.js").EntityServerClientOptions>): void;
|
|
1337
1351
|
setToken(token: string): void;
|
|
1352
|
+
setAccessTokenFromResponse(token: string): void;
|
|
1338
1353
|
setAnonymousPacketToken(token: string): void;
|
|
1339
1354
|
setApiKey(apiKey: string): void;
|
|
1340
1355
|
setHmacSecret(secret: string): void;
|
|
@@ -1351,7 +1366,7 @@ declare const EntityAppServerApi_base: {
|
|
|
1351
1366
|
sendRealtime(message: import("./types.js").RealtimeEnvelope | Record<string, unknown>): boolean;
|
|
1352
1367
|
subscribeRealtime(subscriptions: string[]): boolean;
|
|
1353
1368
|
unsubscribeRealtime(subscriptions: string[]): boolean;
|
|
1354
|
-
startHealthTick(intervalMs?: number): void;
|
|
1369
|
+
startHealthTick(intervalMs?: number, runImmediately?: boolean): void;
|
|
1355
1370
|
stopHealthTick(): void;
|
|
1356
1371
|
scheduleKeepSession(refreshToken: string, expiresIn: number, refreshFn: (rt: string) => Promise<{
|
|
1357
1372
|
access_token: string;
|
|
@@ -1403,6 +1418,7 @@ declare const EntityAppServerApi_base: {
|
|
|
1403
1418
|
csrfHeaderName: string;
|
|
1404
1419
|
csrfCookieName: string;
|
|
1405
1420
|
csrfRefresher: (() => Promise<void>) | null;
|
|
1421
|
+
requestAbortControllers: Map<string, AbortController>;
|
|
1406
1422
|
activeTxId: string | null;
|
|
1407
1423
|
keepSession: boolean;
|
|
1408
1424
|
refreshBuffer: number;
|
|
@@ -1415,7 +1431,6 @@ declare const EntityAppServerApi_base: {
|
|
|
1415
1431
|
healthTickPromise: Promise<unknown> | null;
|
|
1416
1432
|
realtimeEnabled: boolean;
|
|
1417
1433
|
realtimePath: string;
|
|
1418
|
-
realtimeAutoConnect: boolean;
|
|
1419
1434
|
realtimeAutoReconnect: boolean;
|
|
1420
1435
|
realtimeReconnectDelayMs: number;
|
|
1421
1436
|
realtimeStatus: import("./types.js").RealtimeConnectionStatus;
|
|
@@ -1428,6 +1443,7 @@ declare const EntityAppServerApi_base: {
|
|
|
1428
1443
|
realtimeEventListeners: Map<string, Set<import("./types.js").RealtimeMessageListener>>;
|
|
1429
1444
|
configure(options: Partial<import("./types.js").EntityServerClientOptions>): void;
|
|
1430
1445
|
setToken(token: string): void;
|
|
1446
|
+
setAccessTokenFromResponse(token: string): void;
|
|
1431
1447
|
setAnonymousPacketToken(token: string): void;
|
|
1432
1448
|
setApiKey(apiKey: string): void;
|
|
1433
1449
|
setHmacSecret(secret: string): void;
|
|
@@ -1444,7 +1460,7 @@ declare const EntityAppServerApi_base: {
|
|
|
1444
1460
|
sendRealtime(message: import("./types.js").RealtimeEnvelope | Record<string, unknown>): boolean;
|
|
1445
1461
|
subscribeRealtime(subscriptions: string[]): boolean;
|
|
1446
1462
|
unsubscribeRealtime(subscriptions: string[]): boolean;
|
|
1447
|
-
startHealthTick(intervalMs?: number): void;
|
|
1463
|
+
startHealthTick(intervalMs?: number, runImmediately?: boolean): void;
|
|
1448
1464
|
stopHealthTick(): void;
|
|
1449
1465
|
scheduleKeepSession(refreshToken: string, expiresIn: number, refreshFn: (rt: string) => Promise<{
|
|
1450
1466
|
access_token: string;
|