@limrun/api 0.48.4 → 0.49.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.
Files changed (170) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/client.d.mts +6 -3
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +6 -3
  5. package/client.d.ts.map +1 -1
  6. package/client.js +4 -4
  7. package/client.js.map +1 -1
  8. package/client.mjs +2 -2
  9. package/client.mjs.map +1 -1
  10. package/destination-tunnel-dialer.d.mts +30 -2
  11. package/destination-tunnel-dialer.d.mts.map +1 -1
  12. package/destination-tunnel-dialer.d.ts +30 -2
  13. package/destination-tunnel-dialer.d.ts.map +1 -1
  14. package/destination-tunnel-dialer.js +349 -65
  15. package/destination-tunnel-dialer.js.map +1 -1
  16. package/destination-tunnel-dialer.mjs +345 -64
  17. package/destination-tunnel-dialer.mjs.map +1 -1
  18. package/destination-tunnel-har.d.mts +23 -0
  19. package/destination-tunnel-har.d.mts.map +1 -0
  20. package/destination-tunnel-har.d.ts +23 -0
  21. package/destination-tunnel-har.d.ts.map +1 -0
  22. package/destination-tunnel-har.js +164 -0
  23. package/destination-tunnel-har.js.map +1 -0
  24. package/destination-tunnel-har.mjs +160 -0
  25. package/destination-tunnel-har.mjs.map +1 -0
  26. package/destination-tunnel-inspection.d.mts +71 -0
  27. package/destination-tunnel-inspection.d.mts.map +1 -0
  28. package/destination-tunnel-inspection.d.ts +71 -0
  29. package/destination-tunnel-inspection.d.ts.map +1 -0
  30. package/destination-tunnel-inspection.js +267 -0
  31. package/destination-tunnel-inspection.js.map +1 -0
  32. package/destination-tunnel-inspection.mjs +261 -0
  33. package/destination-tunnel-inspection.mjs.map +1 -0
  34. package/destination-tunnel.d.mts +119 -14
  35. package/destination-tunnel.d.mts.map +1 -1
  36. package/destination-tunnel.d.ts +119 -14
  37. package/destination-tunnel.d.ts.map +1 -1
  38. package/destination-tunnel.js +407 -98
  39. package/destination-tunnel.js.map +1 -1
  40. package/destination-tunnel.mjs +374 -73
  41. package/destination-tunnel.mjs.map +1 -1
  42. package/index.d.mts +6 -0
  43. package/index.d.mts.map +1 -1
  44. package/index.d.ts +6 -0
  45. package/index.d.ts.map +1 -1
  46. package/index.js +23 -2
  47. package/index.js.map +1 -1
  48. package/index.mjs +5 -0
  49. package/index.mjs.map +1 -1
  50. package/instance-client.d.mts +105 -1
  51. package/instance-client.d.mts.map +1 -1
  52. package/instance-client.d.ts +105 -1
  53. package/instance-client.d.ts.map +1 -1
  54. package/instance-client.js +83 -1
  55. package/instance-client.js.map +1 -1
  56. package/instance-client.mjs +83 -1
  57. package/instance-client.mjs.map +1 -1
  58. package/internal/destination-tunnel-management.d.mts +4 -3
  59. package/internal/destination-tunnel-management.d.mts.map +1 -1
  60. package/internal/destination-tunnel-management.d.ts +4 -3
  61. package/internal/destination-tunnel-management.d.ts.map +1 -1
  62. package/internal/destination-tunnel-management.js +64 -46
  63. package/internal/destination-tunnel-management.js.map +1 -1
  64. package/internal/destination-tunnel-management.mjs +55 -37
  65. package/internal/destination-tunnel-management.mjs.map +1 -1
  66. package/internal/destination-tunnel-url.d.mts +2 -0
  67. package/internal/destination-tunnel-url.d.mts.map +1 -1
  68. package/internal/destination-tunnel-url.d.ts +2 -0
  69. package/internal/destination-tunnel-url.d.ts.map +1 -1
  70. package/internal/destination-tunnel-url.js +45 -5
  71. package/internal/destination-tunnel-url.js.map +1 -1
  72. package/internal/destination-tunnel-url.mjs +44 -5
  73. package/internal/destination-tunnel-url.mjs.map +1 -1
  74. package/internal/destination-tunnel-wire-reader.d.mts +23 -0
  75. package/internal/destination-tunnel-wire-reader.d.mts.map +1 -0
  76. package/internal/destination-tunnel-wire-reader.d.ts +23 -0
  77. package/internal/destination-tunnel-wire-reader.d.ts.map +1 -0
  78. package/internal/destination-tunnel-wire-reader.js +110 -0
  79. package/internal/destination-tunnel-wire-reader.js.map +1 -0
  80. package/internal/destination-tunnel-wire-reader.mjs +93 -0
  81. package/internal/destination-tunnel-wire-reader.mjs.map +1 -0
  82. package/internal/persist-option.d.mts +14 -0
  83. package/internal/persist-option.d.mts.map +1 -0
  84. package/internal/persist-option.d.ts +14 -0
  85. package/internal/persist-option.d.ts.map +1 -0
  86. package/internal/persist-option.js +18 -0
  87. package/internal/persist-option.js.map +1 -0
  88. package/internal/persist-option.mjs +15 -0
  89. package/internal/persist-option.mjs.map +1 -0
  90. package/internal/proxy-transport.d.mts +27 -0
  91. package/internal/proxy-transport.d.mts.map +1 -1
  92. package/internal/proxy-transport.d.ts +27 -0
  93. package/internal/proxy-transport.d.ts.map +1 -1
  94. package/internal/proxy-transport.js +206 -0
  95. package/internal/proxy-transport.js.map +1 -1
  96. package/internal/proxy-transport.mjs +205 -0
  97. package/internal/proxy-transport.mjs.map +1 -1
  98. package/internal/session-stream.d.mts +39 -0
  99. package/internal/session-stream.d.mts.map +1 -0
  100. package/internal/session-stream.d.ts +39 -0
  101. package/internal/session-stream.d.ts.map +1 -0
  102. package/internal/session-stream.js +144 -0
  103. package/internal/session-stream.js.map +1 -0
  104. package/internal/session-stream.mjs +139 -0
  105. package/internal/session-stream.mjs.map +1 -0
  106. package/internal/tslib.js +4 -4
  107. package/ios-client.d.mts +61 -4
  108. package/ios-client.d.mts.map +1 -1
  109. package/ios-client.d.ts +61 -4
  110. package/ios-client.d.ts.map +1 -1
  111. package/ios-client.js +48 -2
  112. package/ios-client.js.map +1 -1
  113. package/ios-client.mjs +48 -2
  114. package/ios-client.mjs.map +1 -1
  115. package/package.json +22 -1
  116. package/resources/android-instances-helpers.d.mts +25 -0
  117. package/resources/android-instances-helpers.d.mts.map +1 -0
  118. package/resources/android-instances-helpers.d.ts +25 -0
  119. package/resources/android-instances-helpers.d.ts.map +1 -0
  120. package/resources/android-instances-helpers.js +37 -0
  121. package/resources/android-instances-helpers.js.map +1 -0
  122. package/resources/android-instances-helpers.mjs +33 -0
  123. package/resources/android-instances-helpers.mjs.map +1 -0
  124. package/resources/index.d.mts +5 -2
  125. package/resources/index.d.mts.map +1 -1
  126. package/resources/index.d.ts +5 -2
  127. package/resources/index.d.ts.map +1 -1
  128. package/resources/index.js +5 -5
  129. package/resources/index.js.map +1 -1
  130. package/resources/index.mjs +2 -2
  131. package/resources/index.mjs.map +1 -1
  132. package/resources/ios-instances-helpers.d.mts +25 -0
  133. package/resources/ios-instances-helpers.d.mts.map +1 -0
  134. package/resources/ios-instances-helpers.d.ts +25 -0
  135. package/resources/ios-instances-helpers.d.ts.map +1 -0
  136. package/resources/ios-instances-helpers.js +37 -0
  137. package/resources/ios-instances-helpers.js.map +1 -0
  138. package/resources/ios-instances-helpers.mjs +33 -0
  139. package/resources/ios-instances-helpers.mjs.map +1 -0
  140. package/resources/session-artifacts.d.mts +70 -0
  141. package/resources/session-artifacts.d.mts.map +1 -0
  142. package/resources/session-artifacts.d.ts +70 -0
  143. package/resources/session-artifacts.d.ts.map +1 -0
  144. package/resources/session-artifacts.js +8 -0
  145. package/resources/session-artifacts.js.map +1 -0
  146. package/resources/session-artifacts.mjs +7 -0
  147. package/resources/session-artifacts.mjs.map +1 -0
  148. package/src/client.ts +4 -2
  149. package/src/destination-tunnel-dialer.ts +403 -64
  150. package/src/destination-tunnel-har.ts +200 -0
  151. package/src/destination-tunnel-inspection.ts +367 -0
  152. package/src/destination-tunnel.ts +510 -88
  153. package/src/index.ts +52 -0
  154. package/src/instance-client.ts +271 -5
  155. package/src/internal/destination-tunnel-management.ts +67 -43
  156. package/src/internal/destination-tunnel-url.ts +61 -5
  157. package/src/internal/destination-tunnel-wire-reader.ts +109 -0
  158. package/src/internal/persist-option.ts +26 -0
  159. package/src/internal/proxy-transport.ts +248 -0
  160. package/src/internal/session-stream.ts +157 -0
  161. package/src/ios-client.ts +127 -8
  162. package/src/resources/android-instances-helpers.ts +45 -0
  163. package/src/resources/index.ts +9 -2
  164. package/src/resources/ios-instances-helpers.ts +45 -0
  165. package/src/resources/session-artifacts.ts +95 -0
  166. package/src/version.ts +1 -1
  167. package/version.d.mts +1 -1
  168. package/version.d.ts +1 -1
  169. package/version.js +1 -1
  170. package/version.mjs +1 -1
@@ -0,0 +1,37 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.IosInstances = void 0;
4
+ const ios_instances_1 = require("./ios-instances.js");
5
+ const path_1 = require("../internal/utils/path.js");
6
+ class IosInstances extends ios_instances_1.IosInstances {
7
+ /**
8
+ * List the instance's persisted session artifacts, optionally narrowed to
9
+ * one kind.
10
+ */
11
+ listSessionArtifacts(id, kind, options) {
12
+ return this._client.get((0, path_1.path) `/v1/ios_instances/${id}/session_artifacts`, {
13
+ query: kind ? { kind } : undefined,
14
+ ...options,
15
+ });
16
+ }
17
+ /**
18
+ * List the instance's persisted session recordings.
19
+ */
20
+ listRecordings(id, options) {
21
+ return this.listSessionArtifacts(id, 'recording', options);
22
+ }
23
+ /**
24
+ * List the instance's persisted app log captures.
25
+ */
26
+ listAppLogs(id, options) {
27
+ return this.listSessionArtifacts(id, 'appLog', options);
28
+ }
29
+ /**
30
+ * List the instance's persisted event log captures.
31
+ */
32
+ listEvents(id, options) {
33
+ return this.listSessionArtifacts(id, 'eventLog', options);
34
+ }
35
+ }
36
+ exports.IosInstances = IosInstances;
37
+ //# sourceMappingURL=ios-instances-helpers.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ios-instances-helpers.js","sourceRoot":"","sources":["../src/resources/ios-instances-helpers.ts"],"names":[],"mappings":";;;AAAA,sDAAwE;AAIxE,oDAA8C;AAI9C,MAAa,YAAa,SAAQ,4BAAqB;IACrD;;;OAGG;IACH,oBAAoB,CAClB,EAAU,EACV,IAA0B,EAC1B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,qBAAqB,EAAE,oBAAoB,EAAE;YACvE,KAAK,EAAE,IAAI,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,SAAS;YAClC,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,cAAc,CAAC,EAAU,EAAE,OAAwB;QACjD,OAAO,IAAI,CAAC,oBAAoB,CAAC,EAAE,EAAE,WAAW,EAAE,OAAO,CAAC,CAAC;IAC7D,CAAC;IAED;;OAEG;IACH,WAAW,CAAC,EAAU,EAAE,OAAwB;QAC9C,OAAO,IAAI,CAAC,oBAAoB,CAAC,EAAE,EAAE,QAAQ,EAAE,OAAO,CAAC,CAAC;IAC1D,CAAC;IAED;;OAEG;IACH,UAAU,CAAC,EAAU,EAAE,OAAwB;QAC7C,OAAO,IAAI,CAAC,oBAAoB,CAAC,EAAE,EAAE,UAAU,EAAE,OAAO,CAAC,CAAC;IAC5D,CAAC;CACF;AApCD,oCAoCC"}
@@ -0,0 +1,33 @@
1
+ import { IosInstances as GeneratedIosInstances } from "./ios-instances.mjs";
2
+ import { path } from "../internal/utils/path.mjs";
3
+ export class IosInstances extends GeneratedIosInstances {
4
+ /**
5
+ * List the instance's persisted session artifacts, optionally narrowed to
6
+ * one kind.
7
+ */
8
+ listSessionArtifacts(id, kind, options) {
9
+ return this._client.get(path `/v1/ios_instances/${id}/session_artifacts`, {
10
+ query: kind ? { kind } : undefined,
11
+ ...options,
12
+ });
13
+ }
14
+ /**
15
+ * List the instance's persisted session recordings.
16
+ */
17
+ listRecordings(id, options) {
18
+ return this.listSessionArtifacts(id, 'recording', options);
19
+ }
20
+ /**
21
+ * List the instance's persisted app log captures.
22
+ */
23
+ listAppLogs(id, options) {
24
+ return this.listSessionArtifacts(id, 'appLog', options);
25
+ }
26
+ /**
27
+ * List the instance's persisted event log captures.
28
+ */
29
+ listEvents(id, options) {
30
+ return this.listSessionArtifacts(id, 'eventLog', options);
31
+ }
32
+ }
33
+ //# sourceMappingURL=ios-instances-helpers.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ios-instances-helpers.mjs","sourceRoot":"","sources":["../src/resources/ios-instances-helpers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,IAAI,qBAAqB,EAAE,4BAAwB;AAIxE,OAAO,EAAE,IAAI,EAAE,mCAA+B;AAI9C,MAAM,OAAO,YAAa,SAAQ,qBAAqB;IACrD;;;OAGG;IACH,oBAAoB,CAClB,EAAU,EACV,IAA0B,EAC1B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,qBAAqB,EAAE,oBAAoB,EAAE;YACvE,KAAK,EAAE,IAAI,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,SAAS;YAClC,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,cAAc,CAAC,EAAU,EAAE,OAAwB;QACjD,OAAO,IAAI,CAAC,oBAAoB,CAAC,EAAE,EAAE,WAAW,EAAE,OAAO,CAAC,CAAC;IAC7D,CAAC;IAED;;OAEG;IACH,WAAW,CAAC,EAAU,EAAE,OAAwB;QAC9C,OAAO,IAAI,CAAC,oBAAoB,CAAC,EAAE,EAAE,QAAQ,EAAE,OAAO,CAAC,CAAC;IAC1D,CAAC;IAED;;OAEG;IACH,UAAU,CAAC,EAAU,EAAE,OAAwB;QAC7C,OAAO,IAAI,CAAC,oBAAoB,CAAC,EAAE,EAAE,UAAU,EAAE,OAAO,CAAC,CAAC;IAC5D,CAAC;CACF"}
@@ -0,0 +1,70 @@
1
+ /** The kind of a persisted session capture. */
2
+ export type SessionArtifactKind = 'recording' | 'appLog' | 'eventLog' | 'networkLog';
3
+ /**
4
+ * One persisted session capture of an instance: a video recording, an app log
5
+ * capture, a coalesced event log, or a HAR network log. Returned by the
6
+ * director's GET /v1/{ios,android}_instances/{id}/session_artifacts endpoint,
7
+ * optionally narrowed with its kind query parameter.
8
+ */
9
+ export interface SessionArtifact {
10
+ id: string;
11
+ kind: SessionArtifactKind;
12
+ /** Bundle id (iOS) or package name (Android) for app log captures. */
13
+ bundleId?: string;
14
+ /** Destination tunnel that produced a networkLog artifact. */
15
+ tunnelId?: string;
16
+ /** Canonical selectors captured by a networkLog artifact. */
17
+ selectors?: string[];
18
+ startedAt?: string;
19
+ stoppedAt?: string;
20
+ /** When the artifact is deleted from storage. */
21
+ expiresAt?: string;
22
+ sizeBytes?: number;
23
+ /**
24
+ * Short-lived presigned GET URL for the raw artifact: MP4 for recordings,
25
+ * JSONL for app logs and event logs, HAR for network logs.
26
+ */
27
+ downloadUrl: string;
28
+ }
29
+ /**
30
+ * One captured app log line, delivered live by `streamAppLogCapture` and stored
31
+ * one-per-line in `appLog` artifacts.
32
+ */
33
+ export interface SessionLogLine {
34
+ /**
35
+ * Epoch milliseconds: logcat's own timestamp on Android, receipt time on
36
+ * iOS. Shares the clock of the recording artifact's `startedAt`, so lines
37
+ * can be aligned with video playback offsets.
38
+ */
39
+ ts: number;
40
+ line: string;
41
+ }
42
+ export type SessionEventType = 'tap' | 'drag' | 'scroll' | 'key' | 'text' | 'command';
43
+ /**
44
+ * One coalesced user or agent action, delivered live by `streamEventCapture` and
45
+ * stored one-per-line in `eventLog` artifacts. The runtime logs semantic
46
+ * actions, never raw HID frames: a pointer sequence becomes one tap or drag,
47
+ * scroll and keystroke bursts merge into one event, and typed text is never
48
+ * included.
49
+ */
50
+ export interface SessionEvent {
51
+ /** The action's start in epoch milliseconds, same clock as SessionLogLine. */
52
+ ts: number;
53
+ type: SessionEventType;
54
+ /** Touch point for tap, start point for drag, anchor for scroll. */
55
+ x?: number;
56
+ y?: number;
57
+ /** Drag end point; for scroll they carry the burst's summed deltas instead. */
58
+ toX?: number;
59
+ toY?: number;
60
+ /** Duration of the whole gesture or burst. */
61
+ durationMs?: number;
62
+ /** Number of merged actions in a scroll or text burst. */
63
+ count?: number;
64
+ /**
65
+ * Short human-readable label, e.g. "launchApp com.example". Never carries
66
+ * typed text or request payloads.
67
+ */
68
+ summary?: string;
69
+ }
70
+ //# sourceMappingURL=session-artifacts.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"session-artifacts.d.mts","sourceRoot":"","sources":["../src/resources/session-artifacts.ts"],"names":[],"mappings":"AAMA,+CAA+C;AAC/C,MAAM,MAAM,mBAAmB,GAAG,WAAW,GAAG,QAAQ,GAAG,UAAU,GAAG,YAAY,CAAC;AAErF;;;;;GAKG;AACH,MAAM,WAAW,eAAe;IAC9B,EAAE,EAAE,MAAM,CAAC;IAEX,IAAI,EAAE,mBAAmB,CAAC;IAE1B,sEAAsE;IACtE,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB,8DAA8D;IAC9D,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB,6DAA6D;IAC7D,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;IAErB,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB,iDAAiD;IACjD,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;;OAGG;IACH,WAAW,EAAE,MAAM,CAAC;CACrB;AAED;;;GAGG;AACH,MAAM,WAAW,cAAc;IAC7B;;;;OAIG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,MAAM,gBAAgB,GAAG,KAAK,GAAG,MAAM,GAAG,QAAQ,GAAG,KAAK,GAAG,MAAM,GAAG,SAAS,CAAC;AAEtF;;;;;;GAMG;AACH,MAAM,WAAW,YAAY;IAC3B,8EAA8E;IAC9E,EAAE,EAAE,MAAM,CAAC;IAEX,IAAI,EAAE,gBAAgB,CAAC;IAEvB,oEAAoE;IACpE,CAAC,CAAC,EAAE,MAAM,CAAC;IACX,CAAC,CAAC,EAAE,MAAM,CAAC;IAEX,+EAA+E;IAC/E,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;IAEb,8CAA8C;IAC9C,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB,0DAA0D;IAC1D,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB"}
@@ -0,0 +1,70 @@
1
+ /** The kind of a persisted session capture. */
2
+ export type SessionArtifactKind = 'recording' | 'appLog' | 'eventLog' | 'networkLog';
3
+ /**
4
+ * One persisted session capture of an instance: a video recording, an app log
5
+ * capture, a coalesced event log, or a HAR network log. Returned by the
6
+ * director's GET /v1/{ios,android}_instances/{id}/session_artifacts endpoint,
7
+ * optionally narrowed with its kind query parameter.
8
+ */
9
+ export interface SessionArtifact {
10
+ id: string;
11
+ kind: SessionArtifactKind;
12
+ /** Bundle id (iOS) or package name (Android) for app log captures. */
13
+ bundleId?: string;
14
+ /** Destination tunnel that produced a networkLog artifact. */
15
+ tunnelId?: string;
16
+ /** Canonical selectors captured by a networkLog artifact. */
17
+ selectors?: string[];
18
+ startedAt?: string;
19
+ stoppedAt?: string;
20
+ /** When the artifact is deleted from storage. */
21
+ expiresAt?: string;
22
+ sizeBytes?: number;
23
+ /**
24
+ * Short-lived presigned GET URL for the raw artifact: MP4 for recordings,
25
+ * JSONL for app logs and event logs, HAR for network logs.
26
+ */
27
+ downloadUrl: string;
28
+ }
29
+ /**
30
+ * One captured app log line, delivered live by `streamAppLogCapture` and stored
31
+ * one-per-line in `appLog` artifacts.
32
+ */
33
+ export interface SessionLogLine {
34
+ /**
35
+ * Epoch milliseconds: logcat's own timestamp on Android, receipt time on
36
+ * iOS. Shares the clock of the recording artifact's `startedAt`, so lines
37
+ * can be aligned with video playback offsets.
38
+ */
39
+ ts: number;
40
+ line: string;
41
+ }
42
+ export type SessionEventType = 'tap' | 'drag' | 'scroll' | 'key' | 'text' | 'command';
43
+ /**
44
+ * One coalesced user or agent action, delivered live by `streamEventCapture` and
45
+ * stored one-per-line in `eventLog` artifacts. The runtime logs semantic
46
+ * actions, never raw HID frames: a pointer sequence becomes one tap or drag,
47
+ * scroll and keystroke bursts merge into one event, and typed text is never
48
+ * included.
49
+ */
50
+ export interface SessionEvent {
51
+ /** The action's start in epoch milliseconds, same clock as SessionLogLine. */
52
+ ts: number;
53
+ type: SessionEventType;
54
+ /** Touch point for tap, start point for drag, anchor for scroll. */
55
+ x?: number;
56
+ y?: number;
57
+ /** Drag end point; for scroll they carry the burst's summed deltas instead. */
58
+ toX?: number;
59
+ toY?: number;
60
+ /** Duration of the whole gesture or burst. */
61
+ durationMs?: number;
62
+ /** Number of merged actions in a scroll or text burst. */
63
+ count?: number;
64
+ /**
65
+ * Short human-readable label, e.g. "launchApp com.example". Never carries
66
+ * typed text or request payloads.
67
+ */
68
+ summary?: string;
69
+ }
70
+ //# sourceMappingURL=session-artifacts.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"session-artifacts.d.ts","sourceRoot":"","sources":["../src/resources/session-artifacts.ts"],"names":[],"mappings":"AAMA,+CAA+C;AAC/C,MAAM,MAAM,mBAAmB,GAAG,WAAW,GAAG,QAAQ,GAAG,UAAU,GAAG,YAAY,CAAC;AAErF;;;;;GAKG;AACH,MAAM,WAAW,eAAe;IAC9B,EAAE,EAAE,MAAM,CAAC;IAEX,IAAI,EAAE,mBAAmB,CAAC;IAE1B,sEAAsE;IACtE,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB,8DAA8D;IAC9D,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB,6DAA6D;IAC7D,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;IAErB,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB,iDAAiD;IACjD,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;;OAGG;IACH,WAAW,EAAE,MAAM,CAAC;CACrB;AAED;;;GAGG;AACH,MAAM,WAAW,cAAc;IAC7B;;;;OAIG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,MAAM,gBAAgB,GAAG,KAAK,GAAG,MAAM,GAAG,QAAQ,GAAG,KAAK,GAAG,MAAM,GAAG,SAAS,CAAC;AAEtF;;;;;;GAMG;AACH,MAAM,WAAW,YAAY;IAC3B,8EAA8E;IAC9E,EAAE,EAAE,MAAM,CAAC;IAEX,IAAI,EAAE,gBAAgB,CAAC;IAEvB,oEAAoE;IACpE,CAAC,CAAC,EAAE,MAAM,CAAC;IACX,CAAC,CAAC,EAAE,MAAM,CAAC;IAEX,+EAA+E;IAC/E,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;IAEb,8CAA8C;IAC9C,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB,0DAA0D;IAC1D,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB"}
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ // Hand-written: the session-artifact list endpoint is not in the generated
3
+ // OpenAPI surface yet. Shared by the iOS and Android instance helpers.
4
+ // SessionLogLine and SessionEvent mirror pkg/artifacts/contract.go in the
5
+ // limrun repo; the runtimes emit the same JSON over live SSE and into the
6
+ // persisted JSONL artifacts.
7
+ Object.defineProperty(exports, "__esModule", { value: true });
8
+ //# sourceMappingURL=session-artifacts.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"session-artifacts.js","sourceRoot":"","sources":["../src/resources/session-artifacts.ts"],"names":[],"mappings":";AAAA,2EAA2E;AAC3E,uEAAuE;AACvE,0EAA0E;AAC1E,0EAA0E;AAC1E,6BAA6B"}
@@ -0,0 +1,7 @@
1
+ // Hand-written: the session-artifact list endpoint is not in the generated
2
+ // OpenAPI surface yet. Shared by the iOS and Android instance helpers.
3
+ // SessionLogLine and SessionEvent mirror pkg/artifacts/contract.go in the
4
+ // limrun repo; the runtimes emit the same JSON over live SSE and into the
5
+ // persisted JSONL artifacts.
6
+ export {};
7
+ //# sourceMappingURL=session-artifacts.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"session-artifacts.mjs","sourceRoot":"","sources":["../src/resources/session-artifacts.ts"],"names":[],"mappings":"AAAA,2EAA2E;AAC3E,uEAAuE;AACvE,0EAA0E;AAC1E,0EAA0E;AAC1E,6BAA6B"}
package/src/client.ts CHANGED
@@ -28,11 +28,11 @@ import {
28
28
  } from './resources/analytics';
29
29
  import {
30
30
  AndroidInstance,
31
- AndroidInstances,
32
31
  AndroidInstanceCreateParams,
33
32
  AndroidInstanceListParams,
34
33
  AndroidInstancesItems,
35
34
  } from './resources/android-instances';
35
+ import { AndroidInstances } from './resources/android-instances-helpers';
36
36
  import {
37
37
  Asset,
38
38
  AssetGetOrCreateParams,
@@ -52,9 +52,10 @@ import {
52
52
  IosInstance,
53
53
  IosInstanceCreateParams,
54
54
  IosInstanceListParams,
55
- IosInstances,
56
55
  IosInstancesItems,
57
56
  } from './resources/ios-instances';
57
+ import { IosInstances } from './resources/ios-instances-helpers';
58
+ import { SessionArtifact } from './resources/session-artifacts';
58
59
  import { ScopedToken, ScopedTokenCreateParams, ScopedTokens } from './resources/scoped-tokens';
59
60
  import {
60
61
  XcodeInstance,
@@ -877,6 +878,7 @@ export declare namespace Limrun {
877
878
  type IosInstancesItems as IosInstancesItems,
878
879
  type IosInstanceCreateParams as IosInstanceCreateParams,
879
880
  type IosInstanceListParams as IosInstanceListParams,
881
+ type SessionArtifact as SessionArtifact,
880
882
  };
881
883
 
882
884
  export {