@infinitetoken/lumber-kit 0.4.0 → 0.4.2
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/cjs/constants/index.d.ts +2 -42
- package/dist/cjs/constants/index.d.ts.map +1 -1
- package/dist/cjs/constants/index.js +16 -53
- package/dist/cjs/constants/logLevel.d.ts +17 -0
- package/dist/cjs/constants/logLevel.d.ts.map +1 -0
- package/dist/cjs/constants/logLevel.js +31 -0
- package/dist/cjs/constants/subscription.d.ts +27 -0
- package/dist/cjs/constants/subscription.d.ts.map +1 -0
- package/dist/cjs/constants/subscription.js +28 -0
- package/dist/cjs/types/app.d.ts +61 -0
- package/dist/cjs/types/app.d.ts.map +1 -0
- package/dist/cjs/types/app.js +2 -0
- package/dist/cjs/types/deviceLink.d.ts +19 -0
- package/dist/cjs/types/deviceLink.d.ts.map +1 -0
- package/dist/cjs/types/deviceLink.js +2 -0
- package/dist/cjs/types/index.d.ts +8 -247
- package/dist/cjs/types/index.d.ts.map +1 -1
- package/dist/cjs/types/index.js +22 -0
- package/dist/cjs/types/log.d.ts +57 -0
- package/dist/cjs/types/log.d.ts.map +1 -0
- package/dist/cjs/types/log.js +2 -0
- package/dist/cjs/types/note.d.ts +38 -0
- package/dist/cjs/types/note.d.ts.map +1 -0
- package/dist/cjs/types/note.js +2 -0
- package/dist/cjs/types/response.d.ts +14 -0
- package/dist/cjs/types/response.d.ts.map +1 -0
- package/dist/cjs/types/response.js +2 -0
- package/dist/cjs/types/team.d.ts +34 -0
- package/dist/cjs/types/team.d.ts.map +1 -0
- package/dist/cjs/types/team.js +2 -0
- package/dist/cjs/types/timeseries.d.ts +30 -0
- package/dist/cjs/types/timeseries.d.ts.map +1 -0
- package/dist/cjs/types/timeseries.js +2 -0
- package/dist/cjs/types/user.d.ts +39 -0
- package/dist/cjs/types/user.d.ts.map +1 -0
- package/dist/cjs/types/user.js +2 -0
- package/dist/esm/constants/index.d.ts +2 -42
- package/dist/esm/constants/index.d.ts.map +1 -1
- package/dist/esm/constants/index.js +2 -52
- package/dist/esm/constants/logLevel.d.ts +17 -0
- package/dist/esm/constants/logLevel.d.ts.map +1 -0
- package/dist/esm/constants/logLevel.js +28 -0
- package/dist/esm/constants/subscription.d.ts +27 -0
- package/dist/esm/constants/subscription.d.ts.map +1 -0
- package/dist/esm/constants/subscription.js +25 -0
- package/dist/esm/types/app.d.ts +61 -0
- package/dist/esm/types/app.d.ts.map +1 -0
- package/dist/esm/types/app.js +1 -0
- package/dist/esm/types/deviceLink.d.ts +19 -0
- package/dist/esm/types/deviceLink.d.ts.map +1 -0
- package/dist/esm/types/deviceLink.js +1 -0
- package/dist/esm/types/index.d.ts +8 -247
- package/dist/esm/types/index.d.ts.map +1 -1
- package/dist/esm/types/index.js +8 -1
- package/dist/esm/types/log.d.ts +57 -0
- package/dist/esm/types/log.d.ts.map +1 -0
- package/dist/esm/types/log.js +1 -0
- package/dist/esm/types/note.d.ts +38 -0
- package/dist/esm/types/note.d.ts.map +1 -0
- package/dist/esm/types/note.js +1 -0
- package/dist/esm/types/response.d.ts +14 -0
- package/dist/esm/types/response.d.ts.map +1 -0
- package/dist/esm/types/response.js +1 -0
- package/dist/esm/types/team.d.ts +34 -0
- package/dist/esm/types/team.d.ts.map +1 -0
- package/dist/esm/types/team.js +1 -0
- package/dist/esm/types/timeseries.d.ts +30 -0
- package/dist/esm/types/timeseries.d.ts.map +1 -0
- package/dist/esm/types/timeseries.js +1 -0
- package/dist/esm/types/user.d.ts +39 -0
- package/dist/esm/types/user.d.ts.map +1 -0
- package/dist/esm/types/user.js +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { LogLevel } from '../constants';
|
|
2
|
+
/**
|
|
3
|
+
* Structured log context content.
|
|
4
|
+
*/
|
|
5
|
+
export interface LogContext {
|
|
6
|
+
requestId?: string;
|
|
7
|
+
traceId?: string;
|
|
8
|
+
code?: string;
|
|
9
|
+
method?: string;
|
|
10
|
+
line?: number;
|
|
11
|
+
column?: number;
|
|
12
|
+
note?: string;
|
|
13
|
+
[key: string]: unknown;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Encrypted private container.
|
|
17
|
+
* payload = base64(authTag + ciphertext)
|
|
18
|
+
* nonce = base64(random IV)
|
|
19
|
+
* keyVersion enables future rotation support.
|
|
20
|
+
*/
|
|
21
|
+
export interface LogPrivate {
|
|
22
|
+
payload: string;
|
|
23
|
+
nonce: string;
|
|
24
|
+
keyVersion: number;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* API response shape for a stored log.
|
|
28
|
+
*/
|
|
29
|
+
export interface LogRecord {
|
|
30
|
+
id: string;
|
|
31
|
+
createdAt: string;
|
|
32
|
+
updatedAt: string;
|
|
33
|
+
appId: string;
|
|
34
|
+
requestId?: string;
|
|
35
|
+
traceId?: string;
|
|
36
|
+
level: LogLevel;
|
|
37
|
+
message: string;
|
|
38
|
+
flagged: boolean;
|
|
39
|
+
context?: LogContext;
|
|
40
|
+
metadata?: Record<string, unknown>;
|
|
41
|
+
private?: LogPrivate;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Filter params for GET /logs.
|
|
45
|
+
*/
|
|
46
|
+
export interface LogsQuery {
|
|
47
|
+
appIds?: string[];
|
|
48
|
+
levels?: LogLevel[];
|
|
49
|
+
text?: string;
|
|
50
|
+
flagged?: boolean;
|
|
51
|
+
from?: string;
|
|
52
|
+
to?: string;
|
|
53
|
+
sort?: string;
|
|
54
|
+
limit?: number;
|
|
55
|
+
cursor?: string;
|
|
56
|
+
}
|
|
57
|
+
//# sourceMappingURL=log.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"log.d.ts","sourceRoot":"","sources":["../../../src/types/log.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAA;AAEvC;;GAEG;AACH,MAAM,WAAW,UAAU;IACzB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,OAAO,CAAC,EAAE,MAAM,CAAA;IAEhB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,MAAM,CAAC,EAAE,MAAM,CAAA;IAEf,IAAI,CAAC,EAAE,MAAM,CAAA;IAEb,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;CACvB;AAED;;;;;GAKG;AACH,MAAM,WAAW,UAAU;IACzB,OAAO,EAAE,MAAM,CAAA;IACf,KAAK,EAAE,MAAM,CAAA;IACb,UAAU,EAAE,MAAM,CAAA;CACnB;AAED;;GAEG;AACH,MAAM,WAAW,SAAS;IACxB,EAAE,EAAE,MAAM,CAAA;IACV,SAAS,EAAE,MAAM,CAAA;IACjB,SAAS,EAAE,MAAM,CAAA;IAEjB,KAAK,EAAE,MAAM,CAAA;IACb,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,OAAO,CAAC,EAAE,MAAM,CAAA;IAEhB,KAAK,EAAE,QAAQ,CAAA;IACf,OAAO,EAAE,MAAM,CAAA;IAEf,OAAO,EAAE,OAAO,CAAA;IAEhB,OAAO,CAAC,EAAE,UAAU,CAAA;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IAElC,OAAO,CAAC,EAAE,UAAU,CAAA;CACrB;AAED;;GAEG;AACH,MAAM,WAAW,SAAS;IACxB,MAAM,CAAC,EAAE,MAAM,EAAE,CAAA;IACjB,MAAM,CAAC,EAAE,QAAQ,EAAE,CAAA;IACnB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Encrypted note content.
|
|
3
|
+
* payload = base64(authTag + ciphertext)
|
|
4
|
+
* nonce = base64(random IV)
|
|
5
|
+
* keyVersion enables future key rotation.
|
|
6
|
+
*/
|
|
7
|
+
export interface NotePrivate {
|
|
8
|
+
payload: string;
|
|
9
|
+
nonce: string;
|
|
10
|
+
keyVersion: number;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* A short user-authored note, encrypted with the app key.
|
|
14
|
+
* Visible to all members of the associated app.
|
|
15
|
+
* Query by teamId in NotesQuery to build a cross-app team feed.
|
|
16
|
+
*/
|
|
17
|
+
export interface NoteRecord {
|
|
18
|
+
id: string;
|
|
19
|
+
createdAt: string;
|
|
20
|
+
updatedAt: string;
|
|
21
|
+
appId: string;
|
|
22
|
+
userId: string;
|
|
23
|
+
private: NotePrivate;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Filter params for GET /notes.
|
|
27
|
+
*/
|
|
28
|
+
export interface NotesQuery {
|
|
29
|
+
appId?: string;
|
|
30
|
+
teamId?: string;
|
|
31
|
+
userId?: string;
|
|
32
|
+
from?: string;
|
|
33
|
+
to?: string;
|
|
34
|
+
sort?: string;
|
|
35
|
+
limit?: number;
|
|
36
|
+
cursor?: string;
|
|
37
|
+
}
|
|
38
|
+
//# sourceMappingURL=note.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"note.d.ts","sourceRoot":"","sources":["../../../src/types/note.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,MAAM,WAAW,WAAW;IAC1B,OAAO,EAAE,MAAM,CAAA;IACf,KAAK,EAAE,MAAM,CAAA;IACb,UAAU,EAAE,MAAM,CAAA;CACnB;AAED;;;;GAIG;AACH,MAAM,WAAW,UAAU;IACzB,EAAE,EAAE,MAAM,CAAA;IACV,SAAS,EAAE,MAAM,CAAA;IACjB,SAAS,EAAE,MAAM,CAAA;IAEjB,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,EAAE,MAAM,CAAA;IAEd,OAAO,EAAE,WAAW,CAAA;CACrB;AAED;;GAEG;AACH,MAAM,WAAW,UAAU;IACzB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export interface ResponseMetadata {
|
|
2
|
+
requestId: string;
|
|
3
|
+
durationMs: number;
|
|
4
|
+
warnings?: string[];
|
|
5
|
+
cursor?: string | null;
|
|
6
|
+
hasMore?: boolean;
|
|
7
|
+
count?: number;
|
|
8
|
+
hiddenCount?: number;
|
|
9
|
+
}
|
|
10
|
+
export interface ApiResponse<T> {
|
|
11
|
+
data: T;
|
|
12
|
+
metadata: ResponseMetadata;
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=response.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"response.d.ts","sourceRoot":"","sources":["../../../src/types/response.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,gBAAgB;IAC/B,SAAS,EAAE,MAAM,CAAA;IACjB,UAAU,EAAE,MAAM,CAAA;IAClB,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAA;IACnB,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACtB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,WAAW,CAAC,EAAE,MAAM,CAAA;CACrB;AAED,MAAM,WAAW,WAAW,CAAC,CAAC;IAC5B,IAAI,EAAE,CAAC,CAAA;IACP,QAAQ,EAAE,gBAAgB,CAAA;CAC3B"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { SubscriptionLevel } from '../constants';
|
|
2
|
+
/**
|
|
3
|
+
* An organization that owns apps and pays for member usage.
|
|
4
|
+
* Team subscriptionLevel takes precedence over individual member levels.
|
|
5
|
+
*/
|
|
6
|
+
export interface TeamRecord {
|
|
7
|
+
id: string;
|
|
8
|
+
createdAt: string;
|
|
9
|
+
updatedAt: string;
|
|
10
|
+
name: string;
|
|
11
|
+
color?: string;
|
|
12
|
+
imageUrl?: string;
|
|
13
|
+
subscriptionLevel: SubscriptionLevel;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Membership of a user in a team.
|
|
17
|
+
*/
|
|
18
|
+
export interface TeamMemberRecord {
|
|
19
|
+
id: string;
|
|
20
|
+
createdAt: string;
|
|
21
|
+
updatedAt: string;
|
|
22
|
+
teamId: string;
|
|
23
|
+
userId: string;
|
|
24
|
+
role: 'owner' | 'admin' | 'member';
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Filter params for GET /teams.
|
|
28
|
+
*/
|
|
29
|
+
export interface TeamsQuery {
|
|
30
|
+
limit?: number;
|
|
31
|
+
cursor?: string;
|
|
32
|
+
sort?: string;
|
|
33
|
+
}
|
|
34
|
+
//# sourceMappingURL=team.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"team.d.ts","sourceRoot":"","sources":["../../../src/types/team.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAA;AAEhD;;;GAGG;AACH,MAAM,WAAW,UAAU;IACzB,EAAE,EAAE,MAAM,CAAA;IACV,SAAS,EAAE,MAAM,CAAA;IACjB,SAAS,EAAE,MAAM,CAAA;IAEjB,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,iBAAiB,EAAE,iBAAiB,CAAA;CACrC;AAED;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B,EAAE,EAAE,MAAM,CAAA;IACV,SAAS,EAAE,MAAM,CAAA;IACjB,SAAS,EAAE,MAAM,CAAA;IAEjB,MAAM,EAAE,MAAM,CAAA;IACd,MAAM,EAAE,MAAM,CAAA;IAEd,IAAI,EAAE,OAAO,GAAG,OAAO,GAAG,QAAQ,CAAA;CACnC;AAED;;GAEG;AACH,MAAM,WAAW,UAAU;IACzB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,IAAI,CAAC,EAAE,MAAM,CAAA;CACd"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A single time bucket in a timeseries response.
|
|
3
|
+
* date is an ISO date string (YYYY-MM-DD for 'day', ISO datetime for 'hour').
|
|
4
|
+
* byLevel optionally breaks down the count per LogLevel for severity-tinted rendering.
|
|
5
|
+
*/
|
|
6
|
+
export interface TimeseriesBucket {
|
|
7
|
+
date: string;
|
|
8
|
+
count: number;
|
|
9
|
+
byLevel?: Partial<Record<number, number>>;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Generic timeseries aggregate response. Reusable across logs, notifications, messages, etc.
|
|
13
|
+
*/
|
|
14
|
+
export interface TimeseriesResponse {
|
|
15
|
+
buckets: TimeseriesBucket[];
|
|
16
|
+
from: string;
|
|
17
|
+
to: string;
|
|
18
|
+
interval: 'day' | 'hour';
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Filter params for GET /logs/timeseries.
|
|
22
|
+
*/
|
|
23
|
+
export interface LogTimeseriesQuery {
|
|
24
|
+
appIds?: string[];
|
|
25
|
+
levels?: number[];
|
|
26
|
+
from?: string;
|
|
27
|
+
to?: string;
|
|
28
|
+
interval?: 'day' | 'hour';
|
|
29
|
+
}
|
|
30
|
+
//# sourceMappingURL=timeseries.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"timeseries.d.ts","sourceRoot":"","sources":["../../../src/types/timeseries.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,EAAE,MAAM,CAAA;IACb,OAAO,CAAC,EAAE,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAA;CAC1C;AAED;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC,OAAO,EAAE,gBAAgB,EAAE,CAAA;IAC3B,IAAI,EAAE,MAAM,CAAA;IACZ,EAAE,EAAE,MAAM,CAAA;IACV,QAAQ,EAAE,KAAK,GAAG,MAAM,CAAA;CACzB;AAED;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC,MAAM,CAAC,EAAE,MAAM,EAAE,CAAA;IACjB,MAAM,CAAC,EAAE,MAAM,EAAE,CAAA;IACjB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,QAAQ,CAAC,EAAE,KAAK,GAAG,MAAM,CAAA;CAC1B"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
export type Appearance = 'system' | 'dark' | 'light';
|
|
2
|
+
export interface PushToken {
|
|
3
|
+
token: string;
|
|
4
|
+
deviceId?: string;
|
|
5
|
+
platform?: 'ios' | 'android' | 'web';
|
|
6
|
+
}
|
|
7
|
+
export interface NotificationPreference {
|
|
8
|
+
enabled?: boolean;
|
|
9
|
+
minimumLevel?: number;
|
|
10
|
+
lastReadAt?: string;
|
|
11
|
+
}
|
|
12
|
+
export interface NotificationPreferences {
|
|
13
|
+
enabled?: boolean;
|
|
14
|
+
minimumLevel?: number;
|
|
15
|
+
perApp?: Record<string, NotificationPreference>;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Public user profile returned from API.
|
|
19
|
+
*/
|
|
20
|
+
export interface UserRecord {
|
|
21
|
+
id: string;
|
|
22
|
+
createdAt: string;
|
|
23
|
+
updatedAt: string;
|
|
24
|
+
email: string;
|
|
25
|
+
publicKey?: string;
|
|
26
|
+
appearance?: Appearance;
|
|
27
|
+
color?: string;
|
|
28
|
+
imageUrl?: string;
|
|
29
|
+
agreedToTermsVersion?: string;
|
|
30
|
+
notificationPreferences: NotificationPreferences;
|
|
31
|
+
pushTokens: PushToken[];
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Authenticated user returned from GET /me — UserRecord plus subscription context.
|
|
35
|
+
*/
|
|
36
|
+
export interface MeResponse extends UserRecord {
|
|
37
|
+
subscriptionLevel: number;
|
|
38
|
+
}
|
|
39
|
+
//# sourceMappingURL=user.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"user.d.ts","sourceRoot":"","sources":["../../../src/types/user.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,UAAU,GAAG,QAAQ,GAAG,MAAM,GAAG,OAAO,CAAA;AAEpD,MAAM,WAAW,SAAS;IACxB,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,QAAQ,CAAC,EAAE,KAAK,GAAG,SAAS,GAAG,KAAK,CAAA;CACrC;AAED,MAAM,WAAW,sBAAsB;IACrC,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,UAAU,CAAC,EAAE,MAAM,CAAA;CACpB;AAED,MAAM,WAAW,uBAAuB;IACtC,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,sBAAsB,CAAC,CAAA;CAChD;AAED;;GAEG;AACH,MAAM,WAAW,UAAU;IACzB,EAAE,EAAE,MAAM,CAAA;IACV,SAAS,EAAE,MAAM,CAAA;IACjB,SAAS,EAAE,MAAM,CAAA;IAEjB,KAAK,EAAE,MAAM,CAAA;IACb,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,UAAU,CAAC,EAAE,UAAU,CAAA;IACvB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,oBAAoB,CAAC,EAAE,MAAM,CAAA;IAC7B,uBAAuB,EAAE,uBAAuB,CAAA;IAChD,UAAU,EAAE,SAAS,EAAE,CAAA;CACxB;AAED;;GAEG;AACH,MAAM,WAAW,UAAW,SAAQ,UAAU;IAC5C,iBAAiB,EAAE,MAAM,CAAA;CAC1B"}
|
|
@@ -1,43 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
export
|
|
3
|
-
Debug = 0,
|
|
4
|
-
Info = 1,
|
|
5
|
-
Warn = 2,
|
|
6
|
-
Error = 3,
|
|
7
|
-
Fatal = 4
|
|
8
|
-
}
|
|
9
|
-
/** String name for each log level. */
|
|
10
|
-
export type LogLevelName = 'debug' | 'info' | 'warn' | 'error' | 'fatal';
|
|
11
|
-
/** Maps numeric log level to its lowercase string name. */
|
|
12
|
-
export declare const logLevelToName: Record<number, LogLevelName>;
|
|
13
|
-
/** Maps lowercase log level name to its numeric value. */
|
|
14
|
-
export declare const logLevelNameToLevel: Record<LogLevelName, LogLevel>;
|
|
15
|
-
/** All valid log levels, ordered from least to most severe. */
|
|
16
|
-
export declare const logLevels: readonly LogLevel[];
|
|
17
|
-
/** User subscription level. Mirrors User.subscriptionLevel in Lumber-API. */
|
|
18
|
-
export declare const enum SubscriptionLevel {
|
|
19
|
-
Hobby = 0,
|
|
20
|
-
Dev = 1,
|
|
21
|
-
Pro = 2,
|
|
22
|
-
Enterprise = 3
|
|
23
|
-
}
|
|
24
|
-
/** String name for each subscription level, suitable for display and Redux state. */
|
|
25
|
-
export type SubscriptionLevelName = 'hobby' | 'dev' | 'pro' | 'enterprise';
|
|
26
|
-
/** Maps numeric subscription level to its string level name. */
|
|
27
|
-
export declare const subscriptionLevelToName: Record<SubscriptionLevel, SubscriptionLevelName>;
|
|
28
|
-
/** All valid subscription levels, ordered from least to most severe. */
|
|
29
|
-
export declare const subscriptionLevels: readonly SubscriptionLevel[];
|
|
30
|
-
export type SubscriptionLimits = {
|
|
31
|
-
apps: number;
|
|
32
|
-
seats: number;
|
|
33
|
-
apiKeys: number;
|
|
34
|
-
logRetentionDays: number;
|
|
35
|
-
monthlyLogs: number;
|
|
36
|
-
/** Whether real-time WebSocket log streaming is available. */
|
|
37
|
-
realtimeLogs: boolean;
|
|
38
|
-
/** Minimum log level that triggers a push notification. Infinity means push is disabled. */
|
|
39
|
-
minPushLevel: number;
|
|
40
|
-
};
|
|
41
|
-
/** Per-level resource limits. Use Infinity to mean unlimited or disabled. */
|
|
42
|
-
export declare const subscriptionLimits: Record<SubscriptionLevel, SubscriptionLimits>;
|
|
1
|
+
export * from './logLevel';
|
|
2
|
+
export * from './subscription';
|
|
43
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/constants/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/constants/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAA;AAC1B,cAAc,gBAAgB,CAAA"}
|
|
@@ -1,52 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export var LogLevel;
|
|
4
|
-
(function (LogLevel) {
|
|
5
|
-
LogLevel[LogLevel["Debug"] = 0] = "Debug";
|
|
6
|
-
LogLevel[LogLevel["Info"] = 1] = "Info";
|
|
7
|
-
LogLevel[LogLevel["Warn"] = 2] = "Warn";
|
|
8
|
-
LogLevel[LogLevel["Error"] = 3] = "Error";
|
|
9
|
-
LogLevel[LogLevel["Fatal"] = 4] = "Fatal";
|
|
10
|
-
})(LogLevel || (LogLevel = {}));
|
|
11
|
-
/** Maps numeric log level to its lowercase string name. */
|
|
12
|
-
export const logLevelToName = {
|
|
13
|
-
[0 /* LogLevel.Debug */]: 'debug',
|
|
14
|
-
[1 /* LogLevel.Info */]: 'info',
|
|
15
|
-
[2 /* LogLevel.Warn */]: 'warn',
|
|
16
|
-
[3 /* LogLevel.Error */]: 'error',
|
|
17
|
-
[4 /* LogLevel.Fatal */]: 'fatal'
|
|
18
|
-
};
|
|
19
|
-
/** Maps lowercase log level name to its numeric value. */
|
|
20
|
-
export const logLevelNameToLevel = {
|
|
21
|
-
debug: 0 /* LogLevel.Debug */,
|
|
22
|
-
info: 1 /* LogLevel.Info */,
|
|
23
|
-
warn: 2 /* LogLevel.Warn */,
|
|
24
|
-
error: 3 /* LogLevel.Error */,
|
|
25
|
-
fatal: 4 /* LogLevel.Fatal */
|
|
26
|
-
};
|
|
27
|
-
/** All valid log levels, ordered from least to most severe. */
|
|
28
|
-
export const logLevels = [0 /* LogLevel.Debug */, 1 /* LogLevel.Info */, 2 /* LogLevel.Warn */, 3 /* LogLevel.Error */, 4 /* LogLevel.Fatal */];
|
|
29
|
-
/** User subscription level. Mirrors User.subscriptionLevel in Lumber-API. */
|
|
30
|
-
export var SubscriptionLevel;
|
|
31
|
-
(function (SubscriptionLevel) {
|
|
32
|
-
SubscriptionLevel[SubscriptionLevel["Hobby"] = 0] = "Hobby";
|
|
33
|
-
SubscriptionLevel[SubscriptionLevel["Dev"] = 1] = "Dev";
|
|
34
|
-
SubscriptionLevel[SubscriptionLevel["Pro"] = 2] = "Pro";
|
|
35
|
-
SubscriptionLevel[SubscriptionLevel["Enterprise"] = 3] = "Enterprise";
|
|
36
|
-
})(SubscriptionLevel || (SubscriptionLevel = {}));
|
|
37
|
-
/** Maps numeric subscription level to its string level name. */
|
|
38
|
-
export const subscriptionLevelToName = {
|
|
39
|
-
[0 /* SubscriptionLevel.Hobby */]: 'hobby',
|
|
40
|
-
[1 /* SubscriptionLevel.Dev */]: 'dev',
|
|
41
|
-
[2 /* SubscriptionLevel.Pro */]: 'pro',
|
|
42
|
-
[3 /* SubscriptionLevel.Enterprise */]: 'enterprise'
|
|
43
|
-
};
|
|
44
|
-
/** All valid subscription levels, ordered from least to most severe. */
|
|
45
|
-
export const subscriptionLevels = [0 /* SubscriptionLevel.Hobby */, 1 /* SubscriptionLevel.Dev */, 2 /* SubscriptionLevel.Pro */, 3 /* SubscriptionLevel.Enterprise */];
|
|
46
|
-
/** Per-level resource limits. Use Infinity to mean unlimited or disabled. */
|
|
47
|
-
export const subscriptionLimits = {
|
|
48
|
-
[0 /* SubscriptionLevel.Hobby */]: { apps: 5, seats: 1, apiKeys: 1, logRetentionDays: 7, monthlyLogs: 10000, realtimeLogs: false, minPushLevel: Infinity },
|
|
49
|
-
[1 /* SubscriptionLevel.Dev */]: { apps: 10, seats: 5, apiKeys: 5, logRetentionDays: 30, monthlyLogs: 250000, realtimeLogs: true, minPushLevel: 3 /* LogLevel.Error */ },
|
|
50
|
-
[2 /* SubscriptionLevel.Pro */]: { apps: 20, seats: 20, apiKeys: 15, logRetentionDays: 90, monthlyLogs: 2000000, realtimeLogs: true, minPushLevel: 2 /* LogLevel.Warn */ },
|
|
51
|
-
[3 /* SubscriptionLevel.Enterprise */]: { apps: Infinity, seats: Infinity, apiKeys: Infinity, logRetentionDays: Infinity, monthlyLogs: Infinity, realtimeLogs: true, minPushLevel: 0 /* LogLevel.Debug */ }
|
|
52
|
-
};
|
|
1
|
+
export * from './logLevel.js';
|
|
2
|
+
export * from './subscription.js';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/** Log severity level. Numeric values match the existing Lumber-API level field. */
|
|
2
|
+
export declare const enum LogLevel {
|
|
3
|
+
Debug = 0,
|
|
4
|
+
Info = 1,
|
|
5
|
+
Warn = 2,
|
|
6
|
+
Error = 3,
|
|
7
|
+
Fatal = 4
|
|
8
|
+
}
|
|
9
|
+
/** String name for each log level. */
|
|
10
|
+
export type LogLevelName = 'debug' | 'info' | 'warn' | 'error' | 'fatal';
|
|
11
|
+
/** Maps numeric log level to its lowercase string name. */
|
|
12
|
+
export declare const logLevelToName: Record<number, LogLevelName>;
|
|
13
|
+
/** Maps lowercase log level name to its numeric value. */
|
|
14
|
+
export declare const logLevelNameToLevel: Record<LogLevelName, LogLevel>;
|
|
15
|
+
/** All valid log levels, ordered from least to most severe. */
|
|
16
|
+
export declare const logLevels: readonly LogLevel[];
|
|
17
|
+
//# sourceMappingURL=logLevel.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"logLevel.d.ts","sourceRoot":"","sources":["../../../src/constants/logLevel.ts"],"names":[],"mappings":"AAEA,oFAAoF;AACpF,0BAAkB,QAAQ;IACxB,KAAK,IAAI;IACT,IAAI,IAAI;IACR,IAAI,IAAI;IACR,KAAK,IAAI;IACT,KAAK,IAAI;CACV;AAED,sCAAsC;AACtC,MAAM,MAAM,YAAY,GAAG,OAAO,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,OAAO,CAAA;AAExE,2DAA2D;AAC3D,eAAO,MAAM,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,YAAY,CAMvD,CAAA;AAED,0DAA0D;AAC1D,eAAO,MAAM,mBAAmB,EAAE,MAAM,CAAC,YAAY,EAAE,QAAQ,CAM9D,CAAA;AAED,+DAA+D;AAC/D,eAAO,MAAM,SAAS,EAAE,SAAS,QAAQ,EAAmF,CAAA"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
// Source: D-01 (locked decision — do not change numeric values without a semver major bump)
|
|
2
|
+
/** Log severity level. Numeric values match the existing Lumber-API level field. */
|
|
3
|
+
export var LogLevel;
|
|
4
|
+
(function (LogLevel) {
|
|
5
|
+
LogLevel[LogLevel["Debug"] = 0] = "Debug";
|
|
6
|
+
LogLevel[LogLevel["Info"] = 1] = "Info";
|
|
7
|
+
LogLevel[LogLevel["Warn"] = 2] = "Warn";
|
|
8
|
+
LogLevel[LogLevel["Error"] = 3] = "Error";
|
|
9
|
+
LogLevel[LogLevel["Fatal"] = 4] = "Fatal";
|
|
10
|
+
})(LogLevel || (LogLevel = {}));
|
|
11
|
+
/** Maps numeric log level to its lowercase string name. */
|
|
12
|
+
export const logLevelToName = {
|
|
13
|
+
[0 /* LogLevel.Debug */]: 'debug',
|
|
14
|
+
[1 /* LogLevel.Info */]: 'info',
|
|
15
|
+
[2 /* LogLevel.Warn */]: 'warn',
|
|
16
|
+
[3 /* LogLevel.Error */]: 'error',
|
|
17
|
+
[4 /* LogLevel.Fatal */]: 'fatal'
|
|
18
|
+
};
|
|
19
|
+
/** Maps lowercase log level name to its numeric value. */
|
|
20
|
+
export const logLevelNameToLevel = {
|
|
21
|
+
debug: 0 /* LogLevel.Debug */,
|
|
22
|
+
info: 1 /* LogLevel.Info */,
|
|
23
|
+
warn: 2 /* LogLevel.Warn */,
|
|
24
|
+
error: 3 /* LogLevel.Error */,
|
|
25
|
+
fatal: 4 /* LogLevel.Fatal */
|
|
26
|
+
};
|
|
27
|
+
/** All valid log levels, ordered from least to most severe. */
|
|
28
|
+
export const logLevels = [0 /* LogLevel.Debug */, 1 /* LogLevel.Info */, 2 /* LogLevel.Warn */, 3 /* LogLevel.Error */, 4 /* LogLevel.Fatal */];
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/** User subscription level. Mirrors User.subscriptionLevel in Lumber-API. */
|
|
2
|
+
export declare const enum SubscriptionLevel {
|
|
3
|
+
Hobby = 0,
|
|
4
|
+
Dev = 1,
|
|
5
|
+
Pro = 2,
|
|
6
|
+
Enterprise = 3
|
|
7
|
+
}
|
|
8
|
+
/** String name for each subscription level, suitable for display and Redux state. */
|
|
9
|
+
export type SubscriptionLevelName = 'hobby' | 'dev' | 'pro' | 'enterprise';
|
|
10
|
+
/** Maps numeric subscription level to its string level name. */
|
|
11
|
+
export declare const subscriptionLevelToName: Record<SubscriptionLevel, SubscriptionLevelName>;
|
|
12
|
+
/** All valid subscription levels, ordered from least to most severe. */
|
|
13
|
+
export declare const subscriptionLevels: readonly SubscriptionLevel[];
|
|
14
|
+
export type SubscriptionLimits = {
|
|
15
|
+
apps: number;
|
|
16
|
+
seats: number;
|
|
17
|
+
apiKeys: number;
|
|
18
|
+
logRetentionDays: number;
|
|
19
|
+
monthlyLogs: number;
|
|
20
|
+
/** Whether real-time WebSocket log streaming is available. */
|
|
21
|
+
realtimeLogs: boolean;
|
|
22
|
+
/** Minimum log level that triggers a push notification. Infinity means push is disabled. */
|
|
23
|
+
minPushLevel: number;
|
|
24
|
+
};
|
|
25
|
+
/** Per-level resource limits. Use Infinity to mean unlimited or disabled. */
|
|
26
|
+
export declare const subscriptionLimits: Record<SubscriptionLevel, SubscriptionLimits>;
|
|
27
|
+
//# sourceMappingURL=subscription.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"subscription.d.ts","sourceRoot":"","sources":["../../../src/constants/subscription.ts"],"names":[],"mappings":"AAIA,6EAA6E;AAC7E,0BAAkB,iBAAiB;IACjC,KAAK,IAAI;IACT,GAAG,IAAI;IACP,GAAG,IAAI;IACP,UAAU,IAAI;CACf;AAED,qFAAqF;AACrF,MAAM,MAAM,qBAAqB,GAAG,OAAO,GAAG,KAAK,GAAG,KAAK,GAAG,YAAY,CAAA;AAE1E,gEAAgE;AAChE,eAAO,MAAM,uBAAuB,EAAE,MAAM,CAAC,iBAAiB,EAAE,qBAAqB,CAKpF,CAAA;AAED,wEAAwE;AACxE,eAAO,MAAM,kBAAkB,EAAE,SAAS,iBAAiB,EAA0G,CAAA;AAErK,MAAM,MAAM,kBAAkB,GAAG;IAC/B,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,EAAE,MAAM,CAAA;IACb,OAAO,EAAE,MAAM,CAAA;IACf,gBAAgB,EAAE,MAAM,CAAA;IACxB,WAAW,EAAE,MAAM,CAAA;IACnB,8DAA8D;IAC9D,YAAY,EAAE,OAAO,CAAA;IACrB,4FAA4F;IAC5F,YAAY,EAAE,MAAM,CAAA;CACrB,CAAA;AAED,6EAA6E;AAC7E,eAAO,MAAM,kBAAkB,EAAE,MAAM,CAAC,iBAAiB,EAAE,kBAAkB,CAK5E,CAAA"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
// Source: D-02 (locked decision — do not change numeric values without a semver major bump)
|
|
2
|
+
/** User subscription level. Mirrors User.subscriptionLevel in Lumber-API. */
|
|
3
|
+
export var SubscriptionLevel;
|
|
4
|
+
(function (SubscriptionLevel) {
|
|
5
|
+
SubscriptionLevel[SubscriptionLevel["Hobby"] = 0] = "Hobby";
|
|
6
|
+
SubscriptionLevel[SubscriptionLevel["Dev"] = 1] = "Dev";
|
|
7
|
+
SubscriptionLevel[SubscriptionLevel["Pro"] = 2] = "Pro";
|
|
8
|
+
SubscriptionLevel[SubscriptionLevel["Enterprise"] = 3] = "Enterprise";
|
|
9
|
+
})(SubscriptionLevel || (SubscriptionLevel = {}));
|
|
10
|
+
/** Maps numeric subscription level to its string level name. */
|
|
11
|
+
export const subscriptionLevelToName = {
|
|
12
|
+
[0 /* SubscriptionLevel.Hobby */]: 'hobby',
|
|
13
|
+
[1 /* SubscriptionLevel.Dev */]: 'dev',
|
|
14
|
+
[2 /* SubscriptionLevel.Pro */]: 'pro',
|
|
15
|
+
[3 /* SubscriptionLevel.Enterprise */]: 'enterprise'
|
|
16
|
+
};
|
|
17
|
+
/** All valid subscription levels, ordered from least to most severe. */
|
|
18
|
+
export const subscriptionLevels = [0 /* SubscriptionLevel.Hobby */, 1 /* SubscriptionLevel.Dev */, 2 /* SubscriptionLevel.Pro */, 3 /* SubscriptionLevel.Enterprise */];
|
|
19
|
+
/** Per-level resource limits. Use Infinity to mean unlimited or disabled. */
|
|
20
|
+
export const subscriptionLimits = {
|
|
21
|
+
[0 /* SubscriptionLevel.Hobby */]: { apps: 5, seats: 1, apiKeys: 1, logRetentionDays: 7, monthlyLogs: 10000, realtimeLogs: false, minPushLevel: Infinity },
|
|
22
|
+
[1 /* SubscriptionLevel.Dev */]: { apps: 10, seats: 5, apiKeys: 5, logRetentionDays: 30, monthlyLogs: 250000, realtimeLogs: true, minPushLevel: 3 /* LogLevel.Error */ },
|
|
23
|
+
[2 /* SubscriptionLevel.Pro */]: { apps: 20, seats: 20, apiKeys: 15, logRetentionDays: 90, monthlyLogs: 2000000, realtimeLogs: true, minPushLevel: 2 /* LogLevel.Warn */ },
|
|
24
|
+
[3 /* SubscriptionLevel.Enterprise */]: { apps: Infinity, seats: Infinity, apiKeys: Infinity, logRetentionDays: Infinity, monthlyLogs: Infinity, realtimeLogs: true, minPushLevel: 0 /* LogLevel.Debug */ }
|
|
25
|
+
};
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Wrapped application encryption key for a specific user.
|
|
3
|
+
*/
|
|
4
|
+
export interface AppEncryptedKey {
|
|
5
|
+
userId: string;
|
|
6
|
+
encryptedKey: string;
|
|
7
|
+
keyVersion: number;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* API response shape for a listed or fetched app.
|
|
11
|
+
* encryptedKey is the requesting user's wrapped copy of the app key, or null if none exists.
|
|
12
|
+
*/
|
|
13
|
+
export interface AppRecord {
|
|
14
|
+
id: string;
|
|
15
|
+
createdAt: string;
|
|
16
|
+
updatedAt: string;
|
|
17
|
+
name: string;
|
|
18
|
+
color?: string;
|
|
19
|
+
imageUrl?: string;
|
|
20
|
+
teamId?: string;
|
|
21
|
+
encryptedKey: string | null;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* App creation response.
|
|
25
|
+
* Initial wrapped encryption key may optionally be returned.
|
|
26
|
+
*/
|
|
27
|
+
export interface AppCreatedRecord extends AppRecord {
|
|
28
|
+
apiKey?: string;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Machine authentication credential.
|
|
32
|
+
*/
|
|
33
|
+
export interface ApiKeyRecord {
|
|
34
|
+
id: string;
|
|
35
|
+
createdAt: string;
|
|
36
|
+
updatedAt: string;
|
|
37
|
+
appId: string;
|
|
38
|
+
name?: string;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* External guest granted access to a specific app without being a team member.
|
|
42
|
+
*/
|
|
43
|
+
export interface GuestRecord {
|
|
44
|
+
id: string;
|
|
45
|
+
createdAt: string;
|
|
46
|
+
updatedAt: string;
|
|
47
|
+
appId: string;
|
|
48
|
+
userId: string;
|
|
49
|
+
role: 'owner' | 'admin' | 'read' | 'write';
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Filter params for GET /apps.
|
|
53
|
+
*/
|
|
54
|
+
export interface AppsQuery {
|
|
55
|
+
limit?: number;
|
|
56
|
+
cursor?: string;
|
|
57
|
+
sort?: string;
|
|
58
|
+
from?: string;
|
|
59
|
+
to?: string;
|
|
60
|
+
}
|
|
61
|
+
//# sourceMappingURL=app.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app.d.ts","sourceRoot":"","sources":["../../../src/types/app.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B,MAAM,EAAE,MAAM,CAAA;IACd,YAAY,EAAE,MAAM,CAAA;IACpB,UAAU,EAAE,MAAM,CAAA;CACnB;AAED;;;GAGG;AACH,MAAM,WAAW,SAAS;IACxB,EAAE,EAAE,MAAM,CAAA;IACV,SAAS,EAAE,MAAM,CAAA;IACjB,SAAS,EAAE,MAAM,CAAA;IAEjB,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,YAAY,EAAE,MAAM,GAAG,IAAI,CAAA;CAC5B;AAED;;;GAGG;AACH,MAAM,WAAW,gBAAiB,SAAQ,SAAS;IACjD,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB;AAED;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B,EAAE,EAAE,MAAM,CAAA;IACV,SAAS,EAAE,MAAM,CAAA;IACjB,SAAS,EAAE,MAAM,CAAA;IAEjB,KAAK,EAAE,MAAM,CAAA;IAEb,IAAI,CAAC,EAAE,MAAM,CAAA;CACd;AAED;;GAEG;AACH,MAAM,WAAW,WAAW;IAC1B,EAAE,EAAE,MAAM,CAAA;IACV,SAAS,EAAE,MAAM,CAAA;IACjB,SAAS,EAAE,MAAM,CAAA;IAEjB,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,EAAE,MAAM,CAAA;IAEd,IAAI,EAAE,OAAO,GAAG,OAAO,GAAG,MAAM,GAAG,OAAO,CAAA;CAC3C;AAED;;GAEG;AACH,MAAM,WAAW,SAAS;IACxB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,EAAE,CAAC,EAAE,MAAM,CAAA;CACZ"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export type DeviceLinkStatus = 'pending' | 'approved' | 'denied';
|
|
2
|
+
/**
|
|
3
|
+
* Response from POST /device-links.
|
|
4
|
+
*/
|
|
5
|
+
export interface DeviceLinkCreatedRecord {
|
|
6
|
+
id: string;
|
|
7
|
+
expiresAt: string;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Response from GET /device-links/:id.
|
|
11
|
+
* encryptedKey is present only when status is 'approved'.
|
|
12
|
+
*/
|
|
13
|
+
export interface DeviceLinkRecord {
|
|
14
|
+
id: string;
|
|
15
|
+
status: DeviceLinkStatus;
|
|
16
|
+
encryptedKey?: string;
|
|
17
|
+
expiresAt: string;
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=deviceLink.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deviceLink.d.ts","sourceRoot":"","sources":["../../../src/types/deviceLink.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,gBAAgB,GAAG,SAAS,GAAG,UAAU,GAAG,QAAQ,CAAA;AAEhE;;GAEG;AACH,MAAM,WAAW,uBAAuB;IACtC,EAAE,EAAE,MAAM,CAAA;IACV,SAAS,EAAE,MAAM,CAAA;CAClB;AAED;;;GAGG;AACH,MAAM,WAAW,gBAAgB;IAC/B,EAAE,EAAE,MAAM,CAAA;IACV,MAAM,EAAE,gBAAgB,CAAA;IACxB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,SAAS,EAAE,MAAM,CAAA;CAClB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|