@tak-ps/cloudtak 13.25.4 → 13.26.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  type __VLS_Props = {
2
2
  session: {
3
- id: number;
3
+ id: string;
4
4
  username: string;
5
5
  created: string;
6
6
  ip: string;
@@ -36,9 +36,9 @@ declare const __VLS_export: import("vue").DefineComponent<Props, {
36
36
  }) => any) | undefined;
37
37
  }>, {
38
38
  method: string;
39
+ cancel: boolean;
39
40
  headers: Record<string, string>;
40
41
  label: string;
41
- cancel: boolean;
42
42
  format: "formdata" | "raw";
43
43
  autoupload: boolean;
44
44
  mimetype: string;
@@ -0,0 +1,20 @@
1
+ /**
2
+ * Fire-and-forget report of an error to the backend `/api/error` endpoint.
3
+ *
4
+ * Uses `fetch` with `keepalive: true` rather than `navigator.sendBeacon`:
5
+ * beacons cannot set an `Authorization` header (and our API requires Bearer
6
+ * auth), whereas a keepalive fetch keeps the request alive across page unload
7
+ * while still allowing custom headers.
8
+ */
9
+ export declare function reportError(message: string, trace?: string): void;
10
+ /**
11
+ * Register page-level handlers that surface otherwise-uncaught errors to the
12
+ * backend `/api/error` endpoint. Idempotent and safe to call from every app
13
+ * entrypoint.
14
+ */
15
+ export declare function initGlobalErrorReporting(): void;
16
+ /**
17
+ * Vue `app.config.errorHandler` that reports render/lifecycle errors while
18
+ * preserving Vue's default console logging.
19
+ */
20
+ export declare function vueErrorHandler(err: unknown, _instance: unknown, info: string): void;
@@ -19,9 +19,9 @@ export { NetworkStatus } from './device/network.ts';
19
19
  export declare const useDeviceStore: import("pinia").StoreDefinition<"device", Pick<{
20
20
  permissions: {
21
21
  notification: BrowserPermissionState;
22
+ storage: BrowserPermissionState;
22
23
  orientation: BrowserPermissionState;
23
24
  location: BrowserPermissionState;
24
- storage: BrowserPermissionState;
25
25
  camera: BrowserPermissionState;
26
26
  wakeLock: BrowserPermissionState;
27
27
  fileSystem: BrowserPermissionState;
@@ -57,12 +57,12 @@ export declare const useDeviceStore: import("pinia").StoreDefinition<"device", P
57
57
  requestWakeLockPermission: () => Promise<void>;
58
58
  requestFileSystemPermission: () => Promise<void>;
59
59
  releaseWakeLockSentinel: () => Promise<void>;
60
- }, "notification" | "orientation" | "storage" | "camera" | "wakeLock" | "fileSystem" | "permissions" | "geolocation" | "network">, Pick<{
60
+ }, "notification" | "storage" | "orientation" | "camera" | "wakeLock" | "fileSystem" | "permissions" | "geolocation" | "network">, Pick<{
61
61
  permissions: {
62
62
  notification: BrowserPermissionState;
63
+ storage: BrowserPermissionState;
63
64
  orientation: BrowserPermissionState;
64
65
  location: BrowserPermissionState;
65
- storage: BrowserPermissionState;
66
66
  camera: BrowserPermissionState;
67
67
  wakeLock: BrowserPermissionState;
68
68
  fileSystem: BrowserPermissionState;
@@ -101,9 +101,9 @@ export declare const useDeviceStore: import("pinia").StoreDefinition<"device", P
101
101
  }, never>, Pick<{
102
102
  permissions: {
103
103
  notification: BrowserPermissionState;
104
+ storage: BrowserPermissionState;
104
105
  orientation: BrowserPermissionState;
105
106
  location: BrowserPermissionState;
106
- storage: BrowserPermissionState;
107
107
  camera: BrowserPermissionState;
108
108
  wakeLock: BrowserPermissionState;
109
109
  fileSystem: BrowserPermissionState;
@@ -26,6 +26,8 @@ export type GroupChannel = Omit<Group, 'direction'> & {
26
26
  };
27
27
  export type User = paths["/api/user/{:username}"]["get"]["responses"]["200"]["content"]["application/json"];
28
28
  export type UserList = paths["/api/user"]["get"]["responses"]["200"]["content"]["application/json"];
29
+ export type ErrorReport = paths["/api/error/{:errorid}"]["get"]["responses"]["200"]["content"]["application/json"];
30
+ export type ErrorReportList = paths["/api/error"]["get"]["responses"]["200"]["content"]["application/json"];
29
31
  export type Contact = paths["/api/marti/api/contacts/all"]["get"]["responses"]["200"]["content"]["application/json"][0];
30
32
  export type ContactList = paths["/api/marti/api/contacts/all"]["get"]["responses"]["200"]["content"]["application/json"];
31
33
  export type Content = paths["/api/marti/package"]["put"]["responses"]["200"]["content"]["application/json"];
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tak-ps/cloudtak",
3
3
  "type": "module",
4
- "version": "13.25.4",
4
+ "version": "13.26.0",
5
5
  "types": "dist/types/plugin.d.ts",
6
6
  "files": [
7
7
  "dist/types"