@infinitetoken/lumber-kit 0.3.8 → 0.4.1

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 (79) hide show
  1. package/dist/cjs/constants/index.d.ts +2 -42
  2. package/dist/cjs/constants/index.d.ts.map +1 -1
  3. package/dist/cjs/constants/index.js +16 -53
  4. package/dist/cjs/constants/logLevel.d.ts +17 -0
  5. package/dist/cjs/constants/logLevel.d.ts.map +1 -0
  6. package/dist/cjs/constants/logLevel.js +31 -0
  7. package/dist/cjs/constants/subscription.d.ts +27 -0
  8. package/dist/cjs/constants/subscription.d.ts.map +1 -0
  9. package/dist/cjs/constants/subscription.js +28 -0
  10. package/dist/cjs/types/app.d.ts +61 -0
  11. package/dist/cjs/types/app.d.ts.map +1 -0
  12. package/dist/cjs/types/app.js +2 -0
  13. package/dist/cjs/types/deviceLink.d.ts +19 -0
  14. package/dist/cjs/types/deviceLink.d.ts.map +1 -0
  15. package/dist/cjs/types/deviceLink.js +2 -0
  16. package/dist/cjs/types/index.d.ts +8 -177
  17. package/dist/cjs/types/index.d.ts.map +1 -1
  18. package/dist/cjs/types/index.js +22 -0
  19. package/dist/cjs/types/log.d.ts +57 -0
  20. package/dist/cjs/types/log.d.ts.map +1 -0
  21. package/dist/cjs/types/log.js +2 -0
  22. package/dist/cjs/types/note.d.ts +38 -0
  23. package/dist/cjs/types/note.d.ts.map +1 -0
  24. package/dist/cjs/types/note.js +2 -0
  25. package/dist/cjs/types/response.d.ts +14 -0
  26. package/dist/cjs/types/response.d.ts.map +1 -0
  27. package/dist/cjs/types/response.js +2 -0
  28. package/dist/cjs/types/team.d.ts +34 -0
  29. package/dist/cjs/types/team.d.ts.map +1 -0
  30. package/dist/cjs/types/team.js +2 -0
  31. package/dist/cjs/types/timeseries.d.ts +30 -0
  32. package/dist/cjs/types/timeseries.d.ts.map +1 -0
  33. package/dist/cjs/types/timeseries.js +2 -0
  34. package/dist/cjs/types/user.d.ts +33 -0
  35. package/dist/cjs/types/user.d.ts.map +1 -0
  36. package/dist/cjs/types/user.js +2 -0
  37. package/dist/cjs/utils/index.d.ts +4 -1
  38. package/dist/cjs/utils/index.d.ts.map +1 -1
  39. package/dist/cjs/utils/index.js +17 -1
  40. package/dist/esm/constants/index.d.ts +2 -42
  41. package/dist/esm/constants/index.d.ts.map +1 -1
  42. package/dist/esm/constants/index.js +2 -52
  43. package/dist/esm/constants/logLevel.d.ts +17 -0
  44. package/dist/esm/constants/logLevel.d.ts.map +1 -0
  45. package/dist/esm/constants/logLevel.js +28 -0
  46. package/dist/esm/constants/subscription.d.ts +27 -0
  47. package/dist/esm/constants/subscription.d.ts.map +1 -0
  48. package/dist/esm/constants/subscription.js +25 -0
  49. package/dist/esm/types/app.d.ts +61 -0
  50. package/dist/esm/types/app.d.ts.map +1 -0
  51. package/dist/esm/types/app.js +1 -0
  52. package/dist/esm/types/deviceLink.d.ts +19 -0
  53. package/dist/esm/types/deviceLink.d.ts.map +1 -0
  54. package/dist/esm/types/deviceLink.js +1 -0
  55. package/dist/esm/types/index.d.ts +8 -177
  56. package/dist/esm/types/index.d.ts.map +1 -1
  57. package/dist/esm/types/index.js +8 -1
  58. package/dist/esm/types/log.d.ts +57 -0
  59. package/dist/esm/types/log.d.ts.map +1 -0
  60. package/dist/esm/types/log.js +1 -0
  61. package/dist/esm/types/note.d.ts +38 -0
  62. package/dist/esm/types/note.d.ts.map +1 -0
  63. package/dist/esm/types/note.js +1 -0
  64. package/dist/esm/types/response.d.ts +14 -0
  65. package/dist/esm/types/response.d.ts.map +1 -0
  66. package/dist/esm/types/response.js +1 -0
  67. package/dist/esm/types/team.d.ts +34 -0
  68. package/dist/esm/types/team.d.ts.map +1 -0
  69. package/dist/esm/types/team.js +1 -0
  70. package/dist/esm/types/timeseries.d.ts +30 -0
  71. package/dist/esm/types/timeseries.d.ts.map +1 -0
  72. package/dist/esm/types/timeseries.js +1 -0
  73. package/dist/esm/types/user.d.ts +33 -0
  74. package/dist/esm/types/user.d.ts.map +1 -0
  75. package/dist/esm/types/user.js +1 -0
  76. package/dist/esm/utils/index.d.ts +4 -1
  77. package/dist/esm/utils/index.d.ts.map +1 -1
  78. package/dist/esm/utils/index.js +14 -0
  79. package/package.json +1 -1
@@ -1,43 +1,3 @@
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
- /** 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
- memberships: 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":"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;AAE5H,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,WAAW,EAAE,MAAM,CAAA;IACnB,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"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/constants/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAA;AAC1B,cAAc,gBAAgB,CAAA"}
@@ -1,55 +1,18 @@
1
1
  "use strict";
2
- // Source: D-01, D-02 (locked decisions — do not change numeric values without a semver major bump)
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.subscriptionLimits = exports.subscriptionLevels = exports.subscriptionLevelToName = exports.SubscriptionLevel = exports.logLevels = exports.logLevelNameToLevel = exports.logLevelToName = exports.LogLevel = void 0;
5
- /** Log severity level. Numeric values match the existing Lumber-API level field. */
6
- var LogLevel;
7
- (function (LogLevel) {
8
- LogLevel[LogLevel["Debug"] = 0] = "Debug";
9
- LogLevel[LogLevel["Info"] = 1] = "Info";
10
- LogLevel[LogLevel["Warn"] = 2] = "Warn";
11
- LogLevel[LogLevel["Error"] = 3] = "Error";
12
- LogLevel[LogLevel["Fatal"] = 4] = "Fatal";
13
- })(LogLevel || (exports.LogLevel = LogLevel = {}));
14
- /** Maps numeric log level to its lowercase string name. */
15
- exports.logLevelToName = {
16
- [0 /* LogLevel.Debug */]: 'debug',
17
- [1 /* LogLevel.Info */]: 'info',
18
- [2 /* LogLevel.Warn */]: 'warn',
19
- [3 /* LogLevel.Error */]: 'error',
20
- [4 /* LogLevel.Fatal */]: 'fatal'
21
- };
22
- /** Maps lowercase log level name to its numeric value. */
23
- exports.logLevelNameToLevel = {
24
- debug: 0 /* LogLevel.Debug */,
25
- info: 1 /* LogLevel.Info */,
26
- warn: 2 /* LogLevel.Warn */,
27
- error: 3 /* LogLevel.Error */,
28
- fatal: 4 /* LogLevel.Fatal */
29
- };
30
- /** All valid log levels, ordered from least to most severe. */
31
- exports.logLevels = [0 /* LogLevel.Debug */, 1 /* LogLevel.Info */, 2 /* LogLevel.Warn */, 3 /* LogLevel.Error */, 4 /* LogLevel.Fatal */];
32
- /** User subscription level. Mirrors User.subscriptionLevel in Lumber-API. */
33
- var SubscriptionLevel;
34
- (function (SubscriptionLevel) {
35
- SubscriptionLevel[SubscriptionLevel["Hobby"] = 0] = "Hobby";
36
- SubscriptionLevel[SubscriptionLevel["Dev"] = 1] = "Dev";
37
- SubscriptionLevel[SubscriptionLevel["Pro"] = 2] = "Pro";
38
- SubscriptionLevel[SubscriptionLevel["Enterprise"] = 3] = "Enterprise";
39
- })(SubscriptionLevel || (exports.SubscriptionLevel = SubscriptionLevel = {}));
40
- /** Maps numeric subscription level to its string level name. */
41
- exports.subscriptionLevelToName = {
42
- [0 /* SubscriptionLevel.Hobby */]: 'hobby',
43
- [1 /* SubscriptionLevel.Dev */]: 'dev',
44
- [2 /* SubscriptionLevel.Pro */]: 'pro',
45
- [3 /* SubscriptionLevel.Enterprise */]: 'enterprise'
46
- };
47
- /** All valid subscription levels, ordered from least to most severe. */
48
- exports.subscriptionLevels = [0 /* SubscriptionLevel.Hobby */, 1 /* SubscriptionLevel.Dev */, 2 /* SubscriptionLevel.Pro */, 3 /* SubscriptionLevel.Enterprise */];
49
- /** Per-level resource limits. Use Infinity to mean unlimited or disabled. */
50
- exports.subscriptionLimits = {
51
- [0 /* SubscriptionLevel.Hobby */]: { apps: 1, memberships: 1, apiKeys: 1, logRetentionDays: 7, monthlyLogs: 10000, realtimeLogs: false, minPushLevel: Infinity },
52
- [1 /* SubscriptionLevel.Dev */]: { apps: 5, memberships: 5, apiKeys: 10, logRetentionDays: 30, monthlyLogs: 250000, realtimeLogs: true, minPushLevel: 3 /* LogLevel.Error */ },
53
- [2 /* SubscriptionLevel.Pro */]: { apps: 15, memberships: 15, apiKeys: 30, logRetentionDays: 90, monthlyLogs: 2000000, realtimeLogs: true, minPushLevel: 2 /* LogLevel.Warn */ },
54
- [3 /* SubscriptionLevel.Enterprise */]: { apps: Infinity, memberships: Infinity, apiKeys: Infinity, logRetentionDays: Infinity, monthlyLogs: Infinity, realtimeLogs: true, minPushLevel: 0 /* LogLevel.Debug */ }
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
55
15
  };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./logLevel"), exports);
18
+ __exportStar(require("./subscription"), exports);
@@ -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,31 @@
1
+ "use strict";
2
+ // Source: D-01 (locked decision — do not change numeric values without a semver major bump)
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.logLevels = exports.logLevelNameToLevel = exports.logLevelToName = exports.LogLevel = void 0;
5
+ /** Log severity level. Numeric values match the existing Lumber-API level field. */
6
+ var LogLevel;
7
+ (function (LogLevel) {
8
+ LogLevel[LogLevel["Debug"] = 0] = "Debug";
9
+ LogLevel[LogLevel["Info"] = 1] = "Info";
10
+ LogLevel[LogLevel["Warn"] = 2] = "Warn";
11
+ LogLevel[LogLevel["Error"] = 3] = "Error";
12
+ LogLevel[LogLevel["Fatal"] = 4] = "Fatal";
13
+ })(LogLevel || (exports.LogLevel = LogLevel = {}));
14
+ /** Maps numeric log level to its lowercase string name. */
15
+ exports.logLevelToName = {
16
+ [0 /* LogLevel.Debug */]: 'debug',
17
+ [1 /* LogLevel.Info */]: 'info',
18
+ [2 /* LogLevel.Warn */]: 'warn',
19
+ [3 /* LogLevel.Error */]: 'error',
20
+ [4 /* LogLevel.Fatal */]: 'fatal'
21
+ };
22
+ /** Maps lowercase log level name to its numeric value. */
23
+ exports.logLevelNameToLevel = {
24
+ debug: 0 /* LogLevel.Debug */,
25
+ info: 1 /* LogLevel.Info */,
26
+ warn: 2 /* LogLevel.Warn */,
27
+ error: 3 /* LogLevel.Error */,
28
+ fatal: 4 /* LogLevel.Fatal */
29
+ };
30
+ /** All valid log levels, ordered from least to most severe. */
31
+ exports.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,28 @@
1
+ "use strict";
2
+ // Source: D-02 (locked decision — do not change numeric values without a semver major bump)
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.subscriptionLimits = exports.subscriptionLevels = exports.subscriptionLevelToName = exports.SubscriptionLevel = void 0;
5
+ /** User subscription level. Mirrors User.subscriptionLevel in Lumber-API. */
6
+ var SubscriptionLevel;
7
+ (function (SubscriptionLevel) {
8
+ SubscriptionLevel[SubscriptionLevel["Hobby"] = 0] = "Hobby";
9
+ SubscriptionLevel[SubscriptionLevel["Dev"] = 1] = "Dev";
10
+ SubscriptionLevel[SubscriptionLevel["Pro"] = 2] = "Pro";
11
+ SubscriptionLevel[SubscriptionLevel["Enterprise"] = 3] = "Enterprise";
12
+ })(SubscriptionLevel || (exports.SubscriptionLevel = SubscriptionLevel = {}));
13
+ /** Maps numeric subscription level to its string level name. */
14
+ exports.subscriptionLevelToName = {
15
+ [0 /* SubscriptionLevel.Hobby */]: 'hobby',
16
+ [1 /* SubscriptionLevel.Dev */]: 'dev',
17
+ [2 /* SubscriptionLevel.Pro */]: 'pro',
18
+ [3 /* SubscriptionLevel.Enterprise */]: 'enterprise'
19
+ };
20
+ /** All valid subscription levels, ordered from least to most severe. */
21
+ exports.subscriptionLevels = [0 /* SubscriptionLevel.Hobby */, 1 /* SubscriptionLevel.Dev */, 2 /* SubscriptionLevel.Pro */, 3 /* SubscriptionLevel.Enterprise */];
22
+ /** Per-level resource limits. Use Infinity to mean unlimited or disabled. */
23
+ exports.subscriptionLimits = {
24
+ [0 /* SubscriptionLevel.Hobby */]: { apps: 5, seats: 1, apiKeys: 1, logRetentionDays: 7, monthlyLogs: 10000, realtimeLogs: false, minPushLevel: Infinity },
25
+ [1 /* SubscriptionLevel.Dev */]: { apps: 10, seats: 5, apiKeys: 5, logRetentionDays: 30, monthlyLogs: 250000, realtimeLogs: true, minPushLevel: 3 /* LogLevel.Error */ },
26
+ [2 /* SubscriptionLevel.Pro */]: { apps: 20, seats: 20, apiKeys: 15, logRetentionDays: 90, monthlyLogs: 2000000, realtimeLogs: true, minPushLevel: 2 /* LogLevel.Warn */ },
27
+ [3 /* SubscriptionLevel.Enterprise */]: { apps: Infinity, seats: Infinity, apiKeys: Infinity, logRetentionDays: Infinity, monthlyLogs: Infinity, realtimeLogs: true, minPushLevel: 0 /* LogLevel.Debug */ }
28
+ };
@@ -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,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,178 +1,9 @@
1
- import { LogLevel, SubscriptionLevel } from '../constants';
2
- export type Appearance = 'system' | 'dark' | 'light';
3
- /**
4
- * Structured log context content.
5
- */
6
- export interface LogContext {
7
- requestId?: string;
8
- traceId?: string;
9
- code?: string;
10
- method?: string;
11
- line?: number;
12
- column?: number;
13
- note?: string;
14
- [key: string]: unknown;
15
- }
16
- /**
17
- * Encrypted private container.
18
- * payload = base64(authTag + ciphertext)
19
- * nonce = base64(random IV)
20
- * keyVersion enables future rotation support.
21
- */
22
- export interface LogPrivate {
23
- payload: string;
24
- nonce: string;
25
- keyVersion: number;
26
- }
27
- /**
28
- * API response shape for a stored log.
29
- */
30
- export interface LogRecord {
31
- id: string;
32
- createdAt: string;
33
- updatedAt: string;
34
- appId: string;
35
- requestId?: string;
36
- traceId?: string;
37
- level: LogLevel;
38
- message: string;
39
- flagged: boolean;
40
- context?: LogContext;
41
- metadata?: Record<string, unknown>;
42
- private?: LogPrivate;
43
- }
44
- /**
45
- * Wrapped application encryption key for a specific user.
46
- */
47
- export interface AppEncryptedKey {
48
- userId: string;
49
- encryptedKey: string;
50
- keyVersion: number;
51
- }
52
- /**
53
- * API response shape for a listed or fetched app.
54
- * encryptedKey is the requesting user's wrapped copy of the app key, or null if none exists.
55
- */
56
- export interface AppRecord {
57
- id: string;
58
- createdAt: string;
59
- updatedAt: string;
60
- name: string;
61
- color?: string;
62
- logoUrl?: string;
63
- encryptedKey: string | null;
64
- }
65
- /**
66
- * App creation response.
67
- * Initial wrapped encryption key may optionally be returned.
68
- */
69
- export interface AppCreatedRecord extends AppRecord {
70
- apiKey?: string;
71
- }
72
- /**
73
- * Machine authentication credential.
74
- */
75
- export interface ApiKeyRecord {
76
- id: string;
77
- createdAt: string;
78
- updatedAt: string;
79
- appId: string;
80
- name?: string;
81
- }
82
- /**
83
- * App membership / authorization.
84
- */
85
- export interface MembershipRecord {
86
- id: string;
87
- createdAt: string;
88
- updatedAt: string;
89
- appId: string;
90
- userId: string;
91
- role: 'owner' | 'admin' | 'read' | 'write';
92
- }
93
- export interface PushToken {
94
- token: string;
95
- deviceId?: string;
96
- platform?: 'ios' | 'android' | 'web';
97
- }
98
- export interface NotificationPreference {
99
- enabled?: boolean;
100
- minimumLevel?: number;
101
- }
102
- export interface NotificationPreferences {
103
- enabled?: boolean;
104
- minimumLevel?: number;
105
- perApp?: Record<string, NotificationPreference>;
106
- }
107
- /**
108
- * Public user profile returned from API.
109
- */
110
- export interface UserRecord {
111
- id: string;
112
- createdAt: string;
113
- updatedAt: string;
114
- email: string;
115
- publicKey?: string;
116
- appearance?: Appearance;
117
- color?: string;
118
- subscriptionLevel: SubscriptionLevel;
119
- agreedToTermsVersion?: string;
120
- notificationPreferences: NotificationPreferences;
121
- pushTokens: PushToken[];
122
- }
123
- export interface ResponseMetadata {
124
- requestId: string;
125
- durationMs: number;
126
- warnings?: string[];
127
- cursor?: string | null;
128
- hasMore?: boolean;
129
- count?: number;
130
- hiddenCount?: number;
131
- }
132
- export interface ApiResponse<T> {
133
- data: T;
134
- metadata: ResponseMetadata;
135
- }
136
- /**
137
- * Filter params for GET /logs.
138
- */
139
- export interface LogsQuery {
140
- appIds?: string[];
141
- levels?: LogLevel[];
142
- text?: string;
143
- flagged?: boolean;
144
- from?: string;
145
- to?: string;
146
- sort?: string;
147
- limit?: number;
148
- cursor?: string;
149
- }
150
- /**
151
- * Filter params for GET /apps.
152
- */
153
- export interface AppsQuery {
154
- limit?: number;
155
- cursor?: string;
156
- sort?: string;
157
- from?: string;
158
- to?: string;
159
- }
160
- export type DeviceLinkStatus = 'pending' | 'approved' | 'denied';
161
- /**
162
- * Response from POST /device-links.
163
- */
164
- export interface DeviceLinkCreatedRecord {
165
- id: string;
166
- expiresAt: string;
167
- }
168
- /**
169
- * Response from GET /device-links/:id.
170
- * encryptedKey is present only when status is 'approved'.
171
- */
172
- export interface DeviceLinkRecord {
173
- id: string;
174
- status: DeviceLinkStatus;
175
- encryptedKey?: string;
176
- expiresAt: string;
177
- }
1
+ export * from './app';
2
+ export * from './deviceLink';
3
+ export * from './log';
4
+ export * from './note';
5
+ export * from './response';
6
+ export * from './team';
7
+ export * from './timeseries';
8
+ export * from './user';
178
9
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/types/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAA;AAE1D,MAAM,MAAM,UAAU,GAAG,QAAQ,GAAG,MAAM,GAAG,OAAO,CAAA;AAEpD;;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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AAA;AACtB,cAAc,cAAc,CAAA;AAC5B,cAAc,QAAQ,CAAA"}
@@ -1,2 +1,24 @@
1
1
  "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
2
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./app"), exports);
18
+ __exportStar(require("./deviceLink"), exports);
19
+ __exportStar(require("./log"), exports);
20
+ __exportStar(require("./note"), exports);
21
+ __exportStar(require("./response"), exports);
22
+ __exportStar(require("./team"), exports);
23
+ __exportStar(require("./timeseries"), exports);
24
+ __exportStar(require("./user"), exports);
@@ -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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