entity-client 1.0.16 → 1.0.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (40) hide show
  1. package/dist/EntityAppServerApi.d.ts +112 -96
  2. package/dist/EntityServerApi.d.ts +60 -48
  3. package/dist/client/base.d.ts +8 -7
  4. package/dist/client/base.js +1 -1
  5. package/dist/client/base.js.map +3 -3
  6. package/dist/client/request.d.ts +1 -0
  7. package/dist/client/request.js +1 -1
  8. package/dist/client/request.js.map +3 -3
  9. package/dist/index.js +1 -1
  10. package/dist/index.js.map +3 -3
  11. package/dist/mixins/app/plugins/alimtalk.d.ts +7 -6
  12. package/dist/mixins/app/plugins/friendtalk.d.ts +7 -6
  13. package/dist/mixins/app/plugins/holidays.d.ts +7 -6
  14. package/dist/mixins/app/plugins/identity.d.ts +7 -6
  15. package/dist/mixins/app/plugins/llm.d.ts +7 -6
  16. package/dist/mixins/app/plugins/ocr.d.ts +7 -6
  17. package/dist/mixins/app/plugins/pg.d.ts +7 -6
  18. package/dist/mixins/app/plugins/push.d.ts +7 -6
  19. package/dist/mixins/app/plugins/sms.d.ts +7 -6
  20. package/dist/mixins/app/plugins/taxinvoice.d.ts +7 -6
  21. package/dist/mixins/app/routes/account.d.ts +7 -6
  22. package/dist/mixins/app/routes/board.d.ts +7 -6
  23. package/dist/mixins/app/routes/email-verify.d.ts +7 -6
  24. package/dist/mixins/app/routes/oauth.d.ts +7 -6
  25. package/dist/mixins/app/routes/password-reset.d.ts +7 -6
  26. package/dist/mixins/app/routes/two-factor.d.ts +7 -6
  27. package/dist/mixins/server/admin.d.ts +7 -6
  28. package/dist/mixins/server/auth.d.ts +11 -6
  29. package/dist/mixins/server/auth.js +1 -1
  30. package/dist/mixins/server/auth.js.map +3 -3
  31. package/dist/mixins/server/entity.d.ts +7 -6
  32. package/dist/mixins/server/file.d.ts +7 -6
  33. package/dist/mixins/server/push.d.ts +7 -6
  34. package/dist/mixins/server/smtp.d.ts +7 -6
  35. package/dist/mixins/server/transaction.d.ts +7 -6
  36. package/dist/mixins/server/utils.d.ts +7 -6
  37. package/dist/react.js +1 -1
  38. package/dist/react.js.map +3 -3
  39. package/dist/types.d.ts +1 -1
  40. package/package.json +1 -1
@@ -77,14 +77,15 @@ export declare function AlimtalkMixin<TBase extends GConstructor<EntityServerCli
77
77
  applyCsrfHealth(): void;
78
78
  readRequestBody<T = Record<string, unknown>>(body: ArrayBuffer | Uint8Array | string | T | null | undefined, contentType?: string, requireEncrypted?: boolean): T;
79
79
  get reqOpts(): import("../../../client/request.js").RequestOptions;
80
+ prepareRequest(_withAuth: boolean): Promise<void>;
80
81
  get http(): {
81
- get<T>(path: string, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
82
- post<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
83
- put<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
84
- patch<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
85
- delete<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
82
+ get<T>(path: string, withAuth?: boolean, extraHeaders?: Record<string, string>, requestConfig?: import("../../../client/request.js").EntityRequestConfig): Promise<T>;
83
+ post<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>, requestConfig?: import("../../../client/request.js").EntityRequestConfig): Promise<T>;
84
+ put<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>, requestConfig?: import("../../../client/request.js").EntityRequestConfig): Promise<T>;
85
+ patch<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>, requestConfig?: import("../../../client/request.js").EntityRequestConfig): Promise<T>;
86
+ delete<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>, requestConfig?: import("../../../client/request.js").EntityRequestConfig): Promise<T>;
86
87
  };
87
- request<T>(method: string, path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
88
+ request<T>(method: string, path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>, requestConfig?: import("../../../client/request.js").EntityRequestConfig): Promise<T>;
88
89
  requestBinary(method: string, path: string, body?: unknown, withAuth?: boolean): Promise<ArrayBuffer>;
89
90
  requestForm<T>(method: string, path: string, form: FormData, withAuth?: boolean): Promise<T>;
90
91
  requestFormBinary(method: string, path: string, form: FormData, withAuth?: boolean): Promise<ArrayBuffer>;
@@ -71,14 +71,15 @@ export declare function FriendtalkMixin<TBase extends GConstructor<EntityServerC
71
71
  applyCsrfHealth(): void;
72
72
  readRequestBody<T = Record<string, unknown>>(body: ArrayBuffer | Uint8Array | string | T | null | undefined, contentType?: string, requireEncrypted?: boolean): T;
73
73
  get reqOpts(): import("../../../client/request.js").RequestOptions;
74
+ prepareRequest(_withAuth: boolean): Promise<void>;
74
75
  get http(): {
75
- get<T>(path: string, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
76
- post<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
77
- put<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
78
- patch<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
79
- delete<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
76
+ get<T>(path: string, withAuth?: boolean, extraHeaders?: Record<string, string>, requestConfig?: import("../../../client/request.js").EntityRequestConfig): Promise<T>;
77
+ post<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>, requestConfig?: import("../../../client/request.js").EntityRequestConfig): Promise<T>;
78
+ put<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>, requestConfig?: import("../../../client/request.js").EntityRequestConfig): Promise<T>;
79
+ patch<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>, requestConfig?: import("../../../client/request.js").EntityRequestConfig): Promise<T>;
80
+ delete<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>, requestConfig?: import("../../../client/request.js").EntityRequestConfig): Promise<T>;
80
81
  };
81
- request<T>(method: string, path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
82
+ request<T>(method: string, path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>, requestConfig?: import("../../../client/request.js").EntityRequestConfig): Promise<T>;
82
83
  requestBinary(method: string, path: string, body?: unknown, withAuth?: boolean): Promise<ArrayBuffer>;
83
84
  requestForm<T>(method: string, path: string, form: FormData, withAuth?: boolean): Promise<T>;
84
85
  requestFormBinary(method: string, path: string, form: FormData, withAuth?: boolean): Promise<ArrayBuffer>;
@@ -79,14 +79,15 @@ export declare function HolidaysMixin<TBase extends GConstructor<EntityServerCli
79
79
  applyCsrfHealth(): void;
80
80
  readRequestBody<T = Record<string, unknown>>(body: ArrayBuffer | Uint8Array | string | T | null | undefined, contentType?: string, requireEncrypted?: boolean): T;
81
81
  get reqOpts(): import("../../../client/request.js").RequestOptions;
82
+ prepareRequest(_withAuth: boolean): Promise<void>;
82
83
  get http(): {
83
- get<T>(path: string, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
84
- post<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
85
- put<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
86
- patch<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
87
- delete<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
84
+ get<T>(path: string, withAuth?: boolean, extraHeaders?: Record<string, string>, requestConfig?: import("../../../client/request.js").EntityRequestConfig): Promise<T>;
85
+ post<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>, requestConfig?: import("../../../client/request.js").EntityRequestConfig): Promise<T>;
86
+ put<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>, requestConfig?: import("../../../client/request.js").EntityRequestConfig): Promise<T>;
87
+ patch<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>, requestConfig?: import("../../../client/request.js").EntityRequestConfig): Promise<T>;
88
+ delete<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>, requestConfig?: import("../../../client/request.js").EntityRequestConfig): Promise<T>;
88
89
  };
89
- request<T>(method: string, path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
90
+ request<T>(method: string, path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>, requestConfig?: import("../../../client/request.js").EntityRequestConfig): Promise<T>;
90
91
  requestBinary(method: string, path: string, body?: unknown, withAuth?: boolean): Promise<ArrayBuffer>;
91
92
  requestForm<T>(method: string, path: string, form: FormData, withAuth?: boolean): Promise<T>;
92
93
  requestFormBinary(method: string, path: string, form: FormData, withAuth?: boolean): Promise<ArrayBuffer>;
@@ -77,14 +77,15 @@ export declare function IdentityMixin<TBase extends GConstructor<EntityServerCli
77
77
  applyCsrfHealth(): void;
78
78
  readRequestBody<T = Record<string, unknown>>(body: ArrayBuffer | Uint8Array | string | T | null | undefined, contentType?: string, requireEncrypted?: boolean): T;
79
79
  get reqOpts(): import("../../../client/request.js").RequestOptions;
80
+ prepareRequest(_withAuth: boolean): Promise<void>;
80
81
  get http(): {
81
- get<T>(path: string, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
82
- post<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
83
- put<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
84
- patch<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
85
- delete<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
82
+ get<T>(path: string, withAuth?: boolean, extraHeaders?: Record<string, string>, requestConfig?: import("../../../client/request.js").EntityRequestConfig): Promise<T>;
83
+ post<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>, requestConfig?: import("../../../client/request.js").EntityRequestConfig): Promise<T>;
84
+ put<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>, requestConfig?: import("../../../client/request.js").EntityRequestConfig): Promise<T>;
85
+ patch<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>, requestConfig?: import("../../../client/request.js").EntityRequestConfig): Promise<T>;
86
+ delete<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>, requestConfig?: import("../../../client/request.js").EntityRequestConfig): Promise<T>;
86
87
  };
87
- request<T>(method: string, path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
88
+ request<T>(method: string, path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>, requestConfig?: import("../../../client/request.js").EntityRequestConfig): Promise<T>;
88
89
  requestBinary(method: string, path: string, body?: unknown, withAuth?: boolean): Promise<ArrayBuffer>;
89
90
  requestForm<T>(method: string, path: string, form: FormData, withAuth?: boolean): Promise<T>;
90
91
  requestFormBinary(method: string, path: string, form: FormData, withAuth?: boolean): Promise<ArrayBuffer>;
@@ -139,14 +139,15 @@ export declare function LlmMixin<TBase extends GConstructor<EntityServerClientBa
139
139
  applyCsrfHealth(): void;
140
140
  readRequestBody<T = Record<string, unknown>>(body: ArrayBuffer | Uint8Array | string | T | null | undefined, contentType?: string, requireEncrypted?: boolean): T;
141
141
  get reqOpts(): import("../../../client/request.js").RequestOptions;
142
+ prepareRequest(_withAuth: boolean): Promise<void>;
142
143
  get http(): {
143
- get<T>(path: string, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
144
- post<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
145
- put<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
146
- patch<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
147
- delete<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
144
+ get<T>(path: string, withAuth?: boolean, extraHeaders?: Record<string, string>, requestConfig?: import("../../../client/request.js").EntityRequestConfig): Promise<T>;
145
+ post<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>, requestConfig?: import("../../../client/request.js").EntityRequestConfig): Promise<T>;
146
+ put<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>, requestConfig?: import("../../../client/request.js").EntityRequestConfig): Promise<T>;
147
+ patch<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>, requestConfig?: import("../../../client/request.js").EntityRequestConfig): Promise<T>;
148
+ delete<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>, requestConfig?: import("../../../client/request.js").EntityRequestConfig): Promise<T>;
148
149
  };
149
- request<T>(method: string, path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
150
+ request<T>(method: string, path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>, requestConfig?: import("../../../client/request.js").EntityRequestConfig): Promise<T>;
150
151
  requestBinary(method: string, path: string, body?: unknown, withAuth?: boolean): Promise<ArrayBuffer>;
151
152
  requestForm<T>(method: string, path: string, form: FormData, withAuth?: boolean): Promise<T>;
152
153
  requestFormBinary(method: string, path: string, form: FormData, withAuth?: boolean): Promise<ArrayBuffer>;
@@ -85,14 +85,15 @@ export declare function OcrMixin<TBase extends GConstructor<EntityServerClientBa
85
85
  applyCsrfHealth(): void;
86
86
  readRequestBody<T = Record<string, unknown>>(body: ArrayBuffer | Uint8Array | string | T | null | undefined, contentType?: string, requireEncrypted?: boolean): T;
87
87
  get reqOpts(): import("../../../client/request.js").RequestOptions;
88
+ prepareRequest(_withAuth: boolean): Promise<void>;
88
89
  get http(): {
89
- get<T>(path: string, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
90
- post<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
91
- put<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
92
- patch<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
93
- delete<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
90
+ get<T>(path: string, withAuth?: boolean, extraHeaders?: Record<string, string>, requestConfig?: import("../../../client/request.js").EntityRequestConfig): Promise<T>;
91
+ post<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>, requestConfig?: import("../../../client/request.js").EntityRequestConfig): Promise<T>;
92
+ put<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>, requestConfig?: import("../../../client/request.js").EntityRequestConfig): Promise<T>;
93
+ patch<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>, requestConfig?: import("../../../client/request.js").EntityRequestConfig): Promise<T>;
94
+ delete<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>, requestConfig?: import("../../../client/request.js").EntityRequestConfig): Promise<T>;
94
95
  };
95
- request<T>(method: string, path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
96
+ request<T>(method: string, path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>, requestConfig?: import("../../../client/request.js").EntityRequestConfig): Promise<T>;
96
97
  requestBinary(method: string, path: string, body?: unknown, withAuth?: boolean): Promise<ArrayBuffer>;
97
98
  requestForm<T>(method: string, path: string, form: FormData, withAuth?: boolean): Promise<T>;
98
99
  requestFormBinary(method: string, path: string, form: FormData, withAuth?: boolean): Promise<ArrayBuffer>;
@@ -83,14 +83,15 @@ export declare function PgMixin<TBase extends GConstructor<EntityServerClientBas
83
83
  applyCsrfHealth(): void;
84
84
  readRequestBody<T = Record<string, unknown>>(body: ArrayBuffer | Uint8Array | string | T | null | undefined, contentType?: string, requireEncrypted?: boolean): T;
85
85
  get reqOpts(): import("../../../client/request.js").RequestOptions;
86
+ prepareRequest(_withAuth: boolean): Promise<void>;
86
87
  get http(): {
87
- get<T>(path: string, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
88
- post<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
89
- put<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
90
- patch<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
91
- delete<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
88
+ get<T>(path: string, withAuth?: boolean, extraHeaders?: Record<string, string>, requestConfig?: import("../../../client/request.js").EntityRequestConfig): Promise<T>;
89
+ post<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>, requestConfig?: import("../../../client/request.js").EntityRequestConfig): Promise<T>;
90
+ put<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>, requestConfig?: import("../../../client/request.js").EntityRequestConfig): Promise<T>;
91
+ patch<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>, requestConfig?: import("../../../client/request.js").EntityRequestConfig): Promise<T>;
92
+ delete<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>, requestConfig?: import("../../../client/request.js").EntityRequestConfig): Promise<T>;
92
93
  };
93
- request<T>(method: string, path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
94
+ request<T>(method: string, path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>, requestConfig?: import("../../../client/request.js").EntityRequestConfig): Promise<T>;
94
95
  requestBinary(method: string, path: string, body?: unknown, withAuth?: boolean): Promise<ArrayBuffer>;
95
96
  requestForm<T>(method: string, path: string, form: FormData, withAuth?: boolean): Promise<T>;
96
97
  requestFormBinary(method: string, path: string, form: FormData, withAuth?: boolean): Promise<ArrayBuffer>;
@@ -79,14 +79,15 @@ export declare function AppPushMixin<TBase extends GConstructor<EntityServerClie
79
79
  applyCsrfHealth(): void;
80
80
  readRequestBody<T = Record<string, unknown>>(body: ArrayBuffer | Uint8Array | string | T | null | undefined, contentType?: string, requireEncrypted?: boolean): T;
81
81
  get reqOpts(): import("../../../client/request.js").RequestOptions;
82
+ prepareRequest(_withAuth: boolean): Promise<void>;
82
83
  get http(): {
83
- get<T>(path: string, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
84
- post<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
85
- put<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
86
- patch<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
87
- delete<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
84
+ get<T>(path: string, withAuth?: boolean, extraHeaders?: Record<string, string>, requestConfig?: import("../../../client/request.js").EntityRequestConfig): Promise<T>;
85
+ post<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>, requestConfig?: import("../../../client/request.js").EntityRequestConfig): Promise<T>;
86
+ put<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>, requestConfig?: import("../../../client/request.js").EntityRequestConfig): Promise<T>;
87
+ patch<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>, requestConfig?: import("../../../client/request.js").EntityRequestConfig): Promise<T>;
88
+ delete<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>, requestConfig?: import("../../../client/request.js").EntityRequestConfig): Promise<T>;
88
89
  };
89
- request<T>(method: string, path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
90
+ request<T>(method: string, path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>, requestConfig?: import("../../../client/request.js").EntityRequestConfig): Promise<T>;
90
91
  requestBinary(method: string, path: string, body?: unknown, withAuth?: boolean): Promise<ArrayBuffer>;
91
92
  requestForm<T>(method: string, path: string, form: FormData, withAuth?: boolean): Promise<T>;
92
93
  requestFormBinary(method: string, path: string, form: FormData, withAuth?: boolean): Promise<ArrayBuffer>;
@@ -77,14 +77,15 @@ export declare function SmsMixin<TBase extends GConstructor<EntityServerClientBa
77
77
  applyCsrfHealth(): void;
78
78
  readRequestBody<T = Record<string, unknown>>(body: ArrayBuffer | Uint8Array | string | T | null | undefined, contentType?: string, requireEncrypted?: boolean): T;
79
79
  get reqOpts(): import("../../../client/request.js").RequestOptions;
80
+ prepareRequest(_withAuth: boolean): Promise<void>;
80
81
  get http(): {
81
- get<T>(path: string, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
82
- post<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
83
- put<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
84
- patch<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
85
- delete<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
82
+ get<T>(path: string, withAuth?: boolean, extraHeaders?: Record<string, string>, requestConfig?: import("../../../client/request.js").EntityRequestConfig): Promise<T>;
83
+ post<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>, requestConfig?: import("../../../client/request.js").EntityRequestConfig): Promise<T>;
84
+ put<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>, requestConfig?: import("../../../client/request.js").EntityRequestConfig): Promise<T>;
85
+ patch<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>, requestConfig?: import("../../../client/request.js").EntityRequestConfig): Promise<T>;
86
+ delete<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>, requestConfig?: import("../../../client/request.js").EntityRequestConfig): Promise<T>;
86
87
  };
87
- request<T>(method: string, path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
88
+ request<T>(method: string, path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>, requestConfig?: import("../../../client/request.js").EntityRequestConfig): Promise<T>;
88
89
  requestBinary(method: string, path: string, body?: unknown, withAuth?: boolean): Promise<ArrayBuffer>;
89
90
  requestForm<T>(method: string, path: string, form: FormData, withAuth?: boolean): Promise<T>;
90
91
  requestFormBinary(method: string, path: string, form: FormData, withAuth?: boolean): Promise<ArrayBuffer>;
@@ -81,14 +81,15 @@ export declare function TaxinvoiceMixin<TBase extends GConstructor<EntityServerC
81
81
  applyCsrfHealth(): void;
82
82
  readRequestBody<T = Record<string, unknown>>(body: ArrayBuffer | Uint8Array | string | T | null | undefined, contentType?: string, requireEncrypted?: boolean): T;
83
83
  get reqOpts(): import("../../../client/request.js").RequestOptions;
84
+ prepareRequest(_withAuth: boolean): Promise<void>;
84
85
  get http(): {
85
- get<T>(path: string, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
86
- post<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
87
- put<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
88
- patch<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
89
- delete<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
86
+ get<T>(path: string, withAuth?: boolean, extraHeaders?: Record<string, string>, requestConfig?: import("../../../client/request.js").EntityRequestConfig): Promise<T>;
87
+ post<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>, requestConfig?: import("../../../client/request.js").EntityRequestConfig): Promise<T>;
88
+ put<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>, requestConfig?: import("../../../client/request.js").EntityRequestConfig): Promise<T>;
89
+ patch<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>, requestConfig?: import("../../../client/request.js").EntityRequestConfig): Promise<T>;
90
+ delete<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>, requestConfig?: import("../../../client/request.js").EntityRequestConfig): Promise<T>;
90
91
  };
91
- request<T>(method: string, path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
92
+ request<T>(method: string, path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>, requestConfig?: import("../../../client/request.js").EntityRequestConfig): Promise<T>;
92
93
  requestBinary(method: string, path: string, body?: unknown, withAuth?: boolean): Promise<ArrayBuffer>;
93
94
  requestForm<T>(method: string, path: string, form: FormData, withAuth?: boolean): Promise<T>;
94
95
  requestFormBinary(method: string, path: string, form: FormData, withAuth?: boolean): Promise<ArrayBuffer>;
@@ -79,14 +79,15 @@ export declare function AccountAppMixin<TBase extends GConstructor<EntityServerC
79
79
  applyCsrfHealth(): void;
80
80
  readRequestBody<T = Record<string, unknown>>(body: ArrayBuffer | Uint8Array | string | T | null | undefined, contentType?: string, requireEncrypted?: boolean): T;
81
81
  get reqOpts(): import("../../../client/request.js").RequestOptions;
82
+ prepareRequest(_withAuth: boolean): Promise<void>;
82
83
  get http(): {
83
- get<T>(path: string, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
84
- post<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
85
- put<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
86
- patch<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
87
- delete<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
84
+ get<T>(path: string, withAuth?: boolean, extraHeaders?: Record<string, string>, requestConfig?: import("../../../client/request.js").EntityRequestConfig): Promise<T>;
85
+ post<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>, requestConfig?: import("../../../client/request.js").EntityRequestConfig): Promise<T>;
86
+ put<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>, requestConfig?: import("../../../client/request.js").EntityRequestConfig): Promise<T>;
87
+ patch<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>, requestConfig?: import("../../../client/request.js").EntityRequestConfig): Promise<T>;
88
+ delete<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>, requestConfig?: import("../../../client/request.js").EntityRequestConfig): Promise<T>;
88
89
  };
89
- request<T>(method: string, path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
90
+ request<T>(method: string, path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>, requestConfig?: import("../../../client/request.js").EntityRequestConfig): Promise<T>;
90
91
  requestBinary(method: string, path: string, body?: unknown, withAuth?: boolean): Promise<ArrayBuffer>;
91
92
  requestForm<T>(method: string, path: string, form: FormData, withAuth?: boolean): Promise<T>;
92
93
  requestFormBinary(method: string, path: string, form: FormData, withAuth?: boolean): Promise<ArrayBuffer>;
@@ -102,14 +102,15 @@ export declare function BoardMixin<TBase extends GConstructor<EntityServerClient
102
102
  applyCsrfHealth(): void;
103
103
  readRequestBody<T = Record<string, unknown>>(body: ArrayBuffer | Uint8Array | string | T | null | undefined, contentType?: string, requireEncrypted?: boolean): T;
104
104
  get reqOpts(): import("../../../client/request.js").RequestOptions;
105
+ prepareRequest(_withAuth: boolean): Promise<void>;
105
106
  get http(): {
106
- get<T>(path: string, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
107
- post<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
108
- put<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
109
- patch<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
110
- delete<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
107
+ get<T>(path: string, withAuth?: boolean, extraHeaders?: Record<string, string>, requestConfig?: import("../../../client/request.js").EntityRequestConfig): Promise<T>;
108
+ post<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>, requestConfig?: import("../../../client/request.js").EntityRequestConfig): Promise<T>;
109
+ put<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>, requestConfig?: import("../../../client/request.js").EntityRequestConfig): Promise<T>;
110
+ patch<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>, requestConfig?: import("../../../client/request.js").EntityRequestConfig): Promise<T>;
111
+ delete<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>, requestConfig?: import("../../../client/request.js").EntityRequestConfig): Promise<T>;
111
112
  };
112
- request<T>(method: string, path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
113
+ request<T>(method: string, path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>, requestConfig?: import("../../../client/request.js").EntityRequestConfig): Promise<T>;
113
114
  requestBinary(method: string, path: string, body?: unknown, withAuth?: boolean): Promise<ArrayBuffer>;
114
115
  requestForm<T>(method: string, path: string, form: FormData, withAuth?: boolean): Promise<T>;
115
116
  requestFormBinary(method: string, path: string, form: FormData, withAuth?: boolean): Promise<ArrayBuffer>;
@@ -74,14 +74,15 @@ export declare function EmailVerifyMixin<TBase extends GConstructor<EntityServer
74
74
  applyCsrfHealth(): void;
75
75
  readRequestBody<T = Record<string, unknown>>(body: ArrayBuffer | Uint8Array | string | T | null | undefined, contentType?: string, requireEncrypted?: boolean): T;
76
76
  get reqOpts(): import("../../../client/request.js").RequestOptions;
77
+ prepareRequest(_withAuth: boolean): Promise<void>;
77
78
  get http(): {
78
- get<T>(path: string, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
79
- post<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
80
- put<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
81
- patch<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
82
- delete<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
79
+ get<T>(path: string, withAuth?: boolean, extraHeaders?: Record<string, string>, requestConfig?: import("../../../client/request.js").EntityRequestConfig): Promise<T>;
80
+ post<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>, requestConfig?: import("../../../client/request.js").EntityRequestConfig): Promise<T>;
81
+ put<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>, requestConfig?: import("../../../client/request.js").EntityRequestConfig): Promise<T>;
82
+ patch<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>, requestConfig?: import("../../../client/request.js").EntityRequestConfig): Promise<T>;
83
+ delete<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>, requestConfig?: import("../../../client/request.js").EntityRequestConfig): Promise<T>;
83
84
  };
84
- request<T>(method: string, path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
85
+ request<T>(method: string, path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>, requestConfig?: import("../../../client/request.js").EntityRequestConfig): Promise<T>;
85
86
  requestBinary(method: string, path: string, body?: unknown, withAuth?: boolean): Promise<ArrayBuffer>;
86
87
  requestForm<T>(method: string, path: string, form: FormData, withAuth?: boolean): Promise<T>;
87
88
  requestFormBinary(method: string, path: string, form: FormData, withAuth?: boolean): Promise<ArrayBuffer>;
@@ -75,14 +75,15 @@ export declare function OAuthMixin<TBase extends GConstructor<EntityServerClient
75
75
  applyCsrfHealth(): void;
76
76
  readRequestBody<T = Record<string, unknown>>(body: ArrayBuffer | Uint8Array | string | T | null | undefined, contentType?: string, requireEncrypted?: boolean): T;
77
77
  get reqOpts(): import("../../../client/request.js").RequestOptions;
78
+ prepareRequest(_withAuth: boolean): Promise<void>;
78
79
  get http(): {
79
- get<T>(path: string, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
80
- post<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
81
- put<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
82
- patch<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
83
- delete<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
80
+ get<T>(path: string, withAuth?: boolean, extraHeaders?: Record<string, string>, requestConfig?: import("../../../client/request.js").EntityRequestConfig): Promise<T>;
81
+ post<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>, requestConfig?: import("../../../client/request.js").EntityRequestConfig): Promise<T>;
82
+ put<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>, requestConfig?: import("../../../client/request.js").EntityRequestConfig): Promise<T>;
83
+ patch<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>, requestConfig?: import("../../../client/request.js").EntityRequestConfig): Promise<T>;
84
+ delete<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>, requestConfig?: import("../../../client/request.js").EntityRequestConfig): Promise<T>;
84
85
  };
85
- request<T>(method: string, path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
86
+ request<T>(method: string, path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>, requestConfig?: import("../../../client/request.js").EntityRequestConfig): Promise<T>;
86
87
  requestBinary(method: string, path: string, body?: unknown, withAuth?: boolean): Promise<ArrayBuffer>;
87
88
  requestForm<T>(method: string, path: string, form: FormData, withAuth?: boolean): Promise<T>;
88
89
  requestFormBinary(method: string, path: string, form: FormData, withAuth?: boolean): Promise<ArrayBuffer>;
@@ -74,14 +74,15 @@ export declare function PasswordResetMixin<TBase extends GConstructor<EntityServ
74
74
  applyCsrfHealth(): void;
75
75
  readRequestBody<T = Record<string, unknown>>(body: ArrayBuffer | Uint8Array | string | T | null | undefined, contentType?: string, requireEncrypted?: boolean): T;
76
76
  get reqOpts(): import("../../../client/request.js").RequestOptions;
77
+ prepareRequest(_withAuth: boolean): Promise<void>;
77
78
  get http(): {
78
- get<T>(path: string, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
79
- post<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
80
- put<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
81
- patch<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
82
- delete<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
79
+ get<T>(path: string, withAuth?: boolean, extraHeaders?: Record<string, string>, requestConfig?: import("../../../client/request.js").EntityRequestConfig): Promise<T>;
80
+ post<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>, requestConfig?: import("../../../client/request.js").EntityRequestConfig): Promise<T>;
81
+ put<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>, requestConfig?: import("../../../client/request.js").EntityRequestConfig): Promise<T>;
82
+ patch<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>, requestConfig?: import("../../../client/request.js").EntityRequestConfig): Promise<T>;
83
+ delete<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>, requestConfig?: import("../../../client/request.js").EntityRequestConfig): Promise<T>;
83
84
  };
84
- request<T>(method: string, path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
85
+ request<T>(method: string, path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>, requestConfig?: import("../../../client/request.js").EntityRequestConfig): Promise<T>;
85
86
  requestBinary(method: string, path: string, body?: unknown, withAuth?: boolean): Promise<ArrayBuffer>;
86
87
  requestForm<T>(method: string, path: string, form: FormData, withAuth?: boolean): Promise<T>;
87
88
  requestFormBinary(method: string, path: string, form: FormData, withAuth?: boolean): Promise<ArrayBuffer>;
@@ -76,14 +76,15 @@ export declare function TwoFactorMixin<TBase extends GConstructor<EntityServerCl
76
76
  applyCsrfHealth(): void;
77
77
  readRequestBody<T = Record<string, unknown>>(body: ArrayBuffer | Uint8Array | string | T | null | undefined, contentType?: string, requireEncrypted?: boolean): T;
78
78
  get reqOpts(): import("../../../client/request.js").RequestOptions;
79
+ prepareRequest(_withAuth: boolean): Promise<void>;
79
80
  get http(): {
80
- get<T>(path: string, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
81
- post<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
82
- put<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
83
- patch<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
84
- delete<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
81
+ get<T>(path: string, withAuth?: boolean, extraHeaders?: Record<string, string>, requestConfig?: import("../../../client/request.js").EntityRequestConfig): Promise<T>;
82
+ post<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>, requestConfig?: import("../../../client/request.js").EntityRequestConfig): Promise<T>;
83
+ put<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>, requestConfig?: import("../../../client/request.js").EntityRequestConfig): Promise<T>;
84
+ patch<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>, requestConfig?: import("../../../client/request.js").EntityRequestConfig): Promise<T>;
85
+ delete<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>, requestConfig?: import("../../../client/request.js").EntityRequestConfig): Promise<T>;
85
86
  };
86
- request<T>(method: string, path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
87
+ request<T>(method: string, path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>, requestConfig?: import("../../../client/request.js").EntityRequestConfig): Promise<T>;
87
88
  requestBinary(method: string, path: string, body?: unknown, withAuth?: boolean): Promise<ArrayBuffer>;
88
89
  requestForm<T>(method: string, path: string, form: FormData, withAuth?: boolean): Promise<T>;
89
90
  requestFormBinary(method: string, path: string, form: FormData, withAuth?: boolean): Promise<ArrayBuffer>;
@@ -120,14 +120,15 @@ export declare function AdminMixin<TBase extends GConstructor<EntityServerClient
120
120
  applyCsrfHealth(): void;
121
121
  readRequestBody<T = Record<string, unknown>>(body: ArrayBuffer | Uint8Array | string | T | null | undefined, contentType?: string, requireEncrypted?: boolean): T;
122
122
  get reqOpts(): import("../../client/request.js").RequestOptions;
123
+ prepareRequest(_withAuth: boolean): Promise<void>;
123
124
  get http(): {
124
- get<T>(path: string, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
125
- post<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
126
- put<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
127
- patch<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
128
- delete<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
125
+ get<T>(path: string, withAuth?: boolean, extraHeaders?: Record<string, string>, requestConfig?: import("../../client/request.js").EntityRequestConfig): Promise<T>;
126
+ post<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>, requestConfig?: import("../../client/request.js").EntityRequestConfig): Promise<T>;
127
+ put<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>, requestConfig?: import("../../client/request.js").EntityRequestConfig): Promise<T>;
128
+ patch<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>, requestConfig?: import("../../client/request.js").EntityRequestConfig): Promise<T>;
129
+ delete<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>, requestConfig?: import("../../client/request.js").EntityRequestConfig): Promise<T>;
129
130
  };
130
- request<T>(method: string, path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
131
+ request<T>(method: string, path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>, requestConfig?: import("../../client/request.js").EntityRequestConfig): Promise<T>;
131
132
  requestBinary(method: string, path: string, body?: unknown, withAuth?: boolean): Promise<ArrayBuffer>;
132
133
  requestForm<T>(method: string, path: string, form: FormData, withAuth?: boolean): Promise<T>;
133
134
  requestFormBinary(method: string, path: string, form: FormData, withAuth?: boolean): Promise<ArrayBuffer>;
@@ -33,6 +33,9 @@ export type AuthLoginResponse = AuthLoginSuccessResponse | AuthLoginRequiresTwoF
33
33
  export declare function isAuthLoginSuccessResponse(response: AuthLoginResponse): response is AuthLoginSuccessResponse;
34
34
  export declare function AuthMixin<TBase extends GConstructor<EntityServerClientBase>>(Base: TBase): {
35
35
  new (...args: any[]): {
36
+ authBootstrapPromise: Promise<void> | null;
37
+ authBootstrapToken: string;
38
+ authBootstrapAnonymousCompleted: boolean;
36
39
  csrfRefresher: () => Promise<void>;
37
40
  /**
38
41
  * 서버 헬스 체크를 수행하고 패킷 암호화 활성 여부를 자동으로 감지합니다.
@@ -52,6 +55,8 @@ export declare function AuthMixin<TBase extends GConstructor<EntityServerClientB
52
55
  /** document.cookie 또는 Node 환경에서 쿠키 값 읽기 (SSR 대응) */
53
56
  readCookie(name: string): string | null;
54
57
  ensurePublicAuthBootstrap(): Promise<void>;
58
+ ensureAuthenticatedRequestBootstrap(): Promise<void>;
59
+ prepareRequest(withAuth: boolean): Promise<void>;
55
60
  /** 로그인 응답을 반환합니다. 성공 시에만 `access_token`을 내부 상태에 저장합니다. */
56
61
  login(email: string, password: string): Promise<AuthLoginResponse>;
57
62
  /** HttpOnly refresh cookie로 Access Token을 재발급받아 내부 토큰을 교체합니다. */
@@ -150,13 +155,13 @@ export declare function AuthMixin<TBase extends GConstructor<EntityServerClientB
150
155
  readRequestBody<T = Record<string, unknown>>(body: ArrayBuffer | Uint8Array | string | T | null | undefined, contentType?: string, requireEncrypted?: boolean): T;
151
156
  get reqOpts(): import("../../client/request.js").RequestOptions;
152
157
  get http(): {
153
- get<T>(path: string, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
154
- post<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
155
- put<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
156
- patch<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
157
- delete<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
158
+ get<T>(path: string, withAuth?: boolean, extraHeaders?: Record<string, string>, requestConfig?: import("../../client/request.js").EntityRequestConfig): Promise<T>;
159
+ post<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>, requestConfig?: import("../../client/request.js").EntityRequestConfig): Promise<T>;
160
+ put<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>, requestConfig?: import("../../client/request.js").EntityRequestConfig): Promise<T>;
161
+ patch<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>, requestConfig?: import("../../client/request.js").EntityRequestConfig): Promise<T>;
162
+ delete<T>(path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>, requestConfig?: import("../../client/request.js").EntityRequestConfig): Promise<T>;
158
163
  };
159
- request<T>(method: string, path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>): Promise<T>;
164
+ request<T>(method: string, path: string, body?: unknown, withAuth?: boolean, extraHeaders?: Record<string, string>, requestConfig?: import("../../client/request.js").EntityRequestConfig): Promise<T>;
160
165
  requestBinary(method: string, path: string, body?: unknown, withAuth?: boolean): Promise<ArrayBuffer>;
161
166
  requestForm<T>(method: string, path: string, form: FormData, withAuth?: boolean): Promise<T>;
162
167
  requestFormBinary(method: string, path: string, form: FormData, withAuth?: boolean): Promise<ArrayBuffer>;
@@ -1,2 +1,2 @@
1
- import{entityRequest as c}from"../../client/request.js";function h(n){return n.ok===!0&&n.requires_2fa!==!0&&typeof n.data=="object"&&n.data!==null&&"access_token"in n.data}function d(n){return class extends n{csrfRefresher=()=>this.checkHealth(this.keepSession).then(()=>{});async checkHealth(e=!1){const t=this.token,s={};e&&(s["X-Session-Bootstrap"]="1");const r=await fetch(`${this.baseUrl}/v1/health`,{signal:AbortSignal.timeout(3e3),credentials:"include",headers:s}),i=await r.json(),o=r.headers.get("X-Access-Token");o&&(this.token=o,e&&o!==t&&this.onTokenRefreshed?.(o,0),e&&i.authenticated===!0&&this.realtimeEnabled&&this.realtimeAutoConnect&&this.connectRealtime().catch(()=>{}));const a=this.readCookie("anon_token");return i.packet_encryption===!0&&a&&(this.anonymousPacketToken=a,this.encryptRequests=!0),this.applyCsrfHealth(),e&&i.authenticated===!1&&t&&(this.disconnectRealtime("session_expired"),this.onSessionExpired?.(new Error("Session expired"))),i}readCookie(e){if(typeof document>"u")return null;const t=document.cookie.split(";").map(s=>s.trim()).find(s=>s.startsWith(`${e}=`));if(!t)return null;try{return decodeURIComponent(t.slice(e.length+1))}catch{return t.slice(e.length+1)}}async ensurePublicAuthBootstrap(){if(typeof document>"u"||this.apiKey&&this.hmacSecret)return;const e=!!this.anonymousPacketToken||!!this.readCookie("anon_token"),t=!!this.readCookie(this.csrfCookieName);e&&t&&this.csrfEnabled||await this.checkHealth(!1)}async login(e,t){await this.ensurePublicAuthBootstrap();const s=await c(this.reqOpts,"POST","/v1/auth/login",{email:e,passwd:t},!1,{},{requireOkShape:!1,allowStatuses:[403]});return h(s)&&(this.token=s.data.access_token,this.applyCsrfHealth(),this.keepSession&&this.healthTickTimer===null&&this.startHealthTick(),this.realtimeEnabled&&this.realtimeAutoConnect&&this.connectRealtime().catch(()=>{})),s}async tokenRefresh(){const e=await this.request("POST","/v1/auth/token_refresh",void 0,!1);return this.token=e.data.access_token,this.applyCsrfHealth(),e.data}async refreshToken(e){if(!e)return this.tokenRefresh();const t=await this.request("POST","/v1/auth/refresh",{refresh_token:e},!1);return this.token=t.data.access_token,this.applyCsrfHealth(),t.data}async logout(e){this.stopKeepSession(),this.stopHealthTick(),this.disconnectRealtime("logout");const t=await this.request("POST","/v1/auth/logout",e?{refresh_token:e}:void 0,!1);return this.token="",this.applyCsrfHealth(),t}me(){return this.request("GET","/v1/auth/me")}withdraw(e){return this.request("POST","/v1/auth/withdraw",e?{passwd:e}:{})}}}export{d as AuthMixin,h as isAuthLoginSuccessResponse};
1
+ import{entityRequest as h}from"../../client/request.js";function u(n){return n.ok===!0&&n.requires_2fa!==!0&&typeof n.data=="object"&&n.data!==null&&"access_token"in n.data}function f(n){return class extends n{authBootstrapPromise=null;authBootstrapToken="";authBootstrapAnonymousCompleted=!1;csrfRefresher=()=>this.checkHealth(this.keepSession).then(()=>{});async checkHealth(e=!1){try{const t=this.token,s={};e&&(s["X-Session-Bootstrap"]="1");const r=await fetch(`${this.baseUrl}/v1/health`,{signal:AbortSignal.timeout(3e3),credentials:"include",headers:s}),o=await r.json(),i=r.headers.get("X-Access-Token");i&&(this.token=i,e&&i!==t&&this.onTokenRefreshed?.(i,0),e&&o.authenticated===!0&&this.realtimeEnabled&&this.realtimeAutoConnect&&this.connectRealtime().catch(()=>{}));const a=this.readCookie("anon_token");return o.packet_encryption===!0&&a&&(this.anonymousPacketToken=a,this.encryptRequests=!0),this.applyCsrfHealth(),this.onHealthChange?.(!0),e&&o.authenticated===!1&&t&&(this.disconnectRealtime("session_expired"),this.onSessionExpired?.(new Error("Session expired"))),o}catch(t){throw this.onHealthChange?.(!1),t}}readCookie(e){if(typeof document>"u")return null;const t=document.cookie.split(";").map(s=>s.trim()).find(s=>s.startsWith(`${e}=`));if(!t)return null;try{return decodeURIComponent(t.slice(e.length+1))}catch{return t.slice(e.length+1)}}async ensurePublicAuthBootstrap(){if(typeof document>"u"||this.apiKey&&this.hmacSecret)return;const e=!!this.anonymousPacketToken||!!this.readCookie("anon_token"),t=!!this.readCookie(this.csrfCookieName);e&&t&&this.csrfEnabled||await this.checkHealth(!1)}async ensureAuthenticatedRequestBootstrap(){if(!(typeof document>"u")&&!(this.apiKey&&this.hmacSecret)){if(this.token){if(this.authBootstrapToken===this.token)return}else if(this.authBootstrapAnonymousCompleted)return;return this.authBootstrapPromise?this.authBootstrapPromise:(this.authBootstrapPromise=this.checkHealth(!0).then(()=>{this.token?this.authBootstrapToken=this.token:this.authBootstrapAnonymousCompleted=!0}).finally(()=>{this.authBootstrapPromise=null}),this.authBootstrapPromise)}}async prepareRequest(e){await super.prepareRequest(e),e&&await this.ensureAuthenticatedRequestBootstrap()}async login(e,t){await this.ensurePublicAuthBootstrap();const s=await h(this.reqOpts,"POST","/v1/auth/login",{email:e,passwd:t},!1,{},{requireOkShape:!1,allowStatuses:[403]});return u(s)&&(this.token=s.data.access_token,this.applyCsrfHealth(),this.keepSession&&this.healthTickTimer===null&&this.startHealthTick(),this.realtimeEnabled&&this.realtimeAutoConnect&&this.connectRealtime().catch(()=>{})),s}async tokenRefresh(){const e=await this.request("POST","/v1/auth/token_refresh",void 0,!1);return this.token=e.data.access_token,this.applyCsrfHealth(),e.data}async refreshToken(e){if(!e)return this.tokenRefresh();const t=await this.request("POST","/v1/auth/refresh",{refresh_token:e},!1);return this.token=t.data.access_token,this.applyCsrfHealth(),t.data}async logout(e){this.stopKeepSession(),this.stopHealthTick(),this.disconnectRealtime("logout");const t=await this.request("POST","/v1/auth/logout",e?{refresh_token:e}:void 0,!1);return this.token="",this.applyCsrfHealth(),t}me(){return this.request("GET","/v1/auth/me")}withdraw(e){return this.request("POST","/v1/auth/withdraw",e?{passwd:e}:{})}}}export{f as AuthMixin,u as isAuthLoginSuccessResponse};
2
2
  //# sourceMappingURL=auth.js.map