@opencode-ai/sdk 0.1.0-alpha.10 → 0.1.0-alpha.12

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 (63) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/client.d.mts +5 -2
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +5 -2
  5. package/client.d.ts.map +1 -1
  6. package/client.js +3 -0
  7. package/client.js.map +1 -1
  8. package/client.mjs +3 -0
  9. package/client.mjs.map +1 -1
  10. package/package.json +1 -1
  11. package/resources/app.d.mts +0 -1
  12. package/resources/app.d.mts.map +1 -1
  13. package/resources/app.d.ts +0 -1
  14. package/resources/app.d.ts.map +1 -1
  15. package/resources/config.d.mts +10 -0
  16. package/resources/config.d.mts.map +1 -1
  17. package/resources/config.d.ts +10 -0
  18. package/resources/config.d.ts.map +1 -1
  19. package/resources/event.d.mts +48 -20
  20. package/resources/event.d.mts.map +1 -1
  21. package/resources/event.d.ts +48 -20
  22. package/resources/event.d.ts.map +1 -1
  23. package/resources/file.d.mts +22 -6
  24. package/resources/file.d.mts.map +1 -1
  25. package/resources/file.d.ts +22 -6
  26. package/resources/file.d.ts.map +1 -1
  27. package/resources/file.js +8 -2
  28. package/resources/file.js.map +1 -1
  29. package/resources/file.mjs +8 -2
  30. package/resources/file.mjs.map +1 -1
  31. package/resources/find.d.mts +60 -0
  32. package/resources/find.d.mts.map +1 -0
  33. package/resources/find.d.ts +60 -0
  34. package/resources/find.d.ts.map +1 -0
  35. package/resources/find.js +27 -0
  36. package/resources/find.js.map +1 -0
  37. package/resources/find.mjs +23 -0
  38. package/resources/find.mjs.map +1 -0
  39. package/resources/index.d.mts +2 -1
  40. package/resources/index.d.mts.map +1 -1
  41. package/resources/index.d.ts +2 -1
  42. package/resources/index.d.ts.map +1 -1
  43. package/resources/index.js +3 -1
  44. package/resources/index.js.map +1 -1
  45. package/resources/index.mjs +1 -0
  46. package/resources/index.mjs.map +1 -1
  47. package/resources/session.d.mts +4 -0
  48. package/resources/session.d.mts.map +1 -1
  49. package/resources/session.d.ts +4 -0
  50. package/resources/session.d.ts.map +1 -1
  51. package/src/client.ts +25 -3
  52. package/src/resources/app.ts +0 -2
  53. package/src/resources/config.ts +14 -0
  54. package/src/resources/event.ts +70 -29
  55. package/src/resources/file.ts +35 -6
  56. package/src/resources/find.ts +95 -0
  57. package/src/resources/index.ts +10 -1
  58. package/src/resources/session.ts +6 -0
  59. package/src/version.ts +1 -1
  60. package/version.d.mts +1 -1
  61. package/version.d.ts +1 -1
  62. package/version.js +1 -1
  63. package/version.mjs +1 -1
@@ -10,27 +10,8 @@ export declare class Event extends APIResource {
10
10
  */
11
11
  list(options?: RequestOptions): APIPromise<Stream<EventListResponse>>;
12
12
  }
13
- export type EventListResponse = EventListResponse.EventStorageWrite | EventListResponse.EventInstallationUpdated | EventListResponse.EventLspClientDiagnostics | EventListResponse.EventPermissionUpdated | EventListResponse.EventMessageUpdated | EventListResponse.EventMessagePartUpdated | EventListResponse.EventSessionUpdated | EventListResponse.EventSessionDeleted | EventListResponse.EventSessionError;
13
+ export type EventListResponse = EventListResponse.EventLspClientDiagnostics | EventListResponse.EventPermissionUpdated | EventListResponse.EventFileEdited | EventListResponse.EventStorageWrite | EventListResponse.EventInstallationUpdated | EventListResponse.EventMessageUpdated | EventListResponse.EventMessagePartUpdated | EventListResponse.EventSessionUpdated | EventListResponse.EventSessionDeleted | EventListResponse.EventSessionIdle | EventListResponse.EventSessionError | EventListResponse.EventFileWatcherUpdated;
14
14
  export declare namespace EventListResponse {
15
- interface EventStorageWrite {
16
- properties: EventStorageWrite.Properties;
17
- type: 'storage.write';
18
- }
19
- namespace EventStorageWrite {
20
- interface Properties {
21
- key: string;
22
- content?: unknown;
23
- }
24
- }
25
- interface EventInstallationUpdated {
26
- properties: EventInstallationUpdated.Properties;
27
- type: 'installation.updated';
28
- }
29
- namespace EventInstallationUpdated {
30
- interface Properties {
31
- version: string;
32
- }
33
- }
34
15
  interface EventLspClientDiagnostics {
35
16
  properties: EventLspClientDiagnostics.Properties;
36
17
  type: 'lsp.client.diagnostics';
@@ -61,6 +42,34 @@ export declare namespace EventListResponse {
61
42
  }
62
43
  }
63
44
  }
45
+ interface EventFileEdited {
46
+ properties: EventFileEdited.Properties;
47
+ type: 'file.edited';
48
+ }
49
+ namespace EventFileEdited {
50
+ interface Properties {
51
+ file: string;
52
+ }
53
+ }
54
+ interface EventStorageWrite {
55
+ properties: EventStorageWrite.Properties;
56
+ type: 'storage.write';
57
+ }
58
+ namespace EventStorageWrite {
59
+ interface Properties {
60
+ key: string;
61
+ content?: unknown;
62
+ }
63
+ }
64
+ interface EventInstallationUpdated {
65
+ properties: EventInstallationUpdated.Properties;
66
+ type: 'installation.updated';
67
+ }
68
+ namespace EventInstallationUpdated {
69
+ interface Properties {
70
+ version: string;
71
+ }
72
+ }
64
73
  interface EventMessageUpdated {
65
74
  properties: EventMessageUpdated.Properties;
66
75
  type: 'message.updated';
@@ -99,6 +108,15 @@ export declare namespace EventListResponse {
99
108
  info: SessionAPI.Session;
100
109
  }
101
110
  }
111
+ interface EventSessionIdle {
112
+ properties: EventSessionIdle.Properties;
113
+ type: 'session.idle';
114
+ }
115
+ namespace EventSessionIdle {
116
+ interface Properties {
117
+ sessionID: string;
118
+ }
119
+ }
102
120
  interface EventSessionError {
103
121
  properties: EventSessionError.Properties;
104
122
  type: 'session.error';
@@ -114,6 +132,16 @@ export declare namespace EventListResponse {
114
132
  }
115
133
  }
116
134
  }
135
+ interface EventFileWatcherUpdated {
136
+ properties: EventFileWatcherUpdated.Properties;
137
+ type: 'file.watcher.updated';
138
+ }
139
+ namespace EventFileWatcherUpdated {
140
+ interface Properties {
141
+ event: 'rename' | 'change';
142
+ file: string;
143
+ }
144
+ }
117
145
  }
118
146
  export declare namespace Event {
119
147
  export { type EventListResponse as EventListResponse };
@@ -1 +1 @@
1
- {"version":3,"file":"event.d.mts","sourceRoot":"","sources":["../src/resources/event.ts"],"names":[],"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AE,MAAM,CAAC;SACnB;KACF;IAED,UAAiB,iBAAiB;QAChC,UAAU,EAAE,iBAAiB,CAAC,UAAU,CAAC;QAEzC,IAAI,EAAE,eAAe,CAAC;KACvB;IAED,UAAiB,iBAAiB,CAAC;QACjC,UAAiB,UAAU;YACzB,KAAK,CAAC,EAAE,MAAM,CAAC,iBAAiB,GAAG,MAAM,CAAC,YAAY,GAAG,UAAU,CAAC,wBAAwB,CAAC;SAC9F;QAED,UAAiB,UAAU,CAAC;YAC1B,UAAiB,wBAAwB;gBACvC,IAAI,EAAE,OAAO,CAAC;gBAEd,IAAI,EAAE,0BAA0B,CAAC;aAClC;SACF;KACF;IAED,UAAiB,uBAAuB;QACtC,UAAU,EAAE,uBAAuB,CAAC,UAAU,CAAC;QAE/C,IAAI,EAAE,sBAAsB,CAAC;KAC9B;IAED,UAAiB,uBAAuB,CAAC;QACvC,UAAiB,UAAU;YACzB,KAAK,EAAE,QAAQ,GAAG,QAAQ,CAAC;YAE3B,IAAI,EAAE,MAAM,CAAC;SACd;KACF;CACF;AAED,MAAM,CAAC,OAAO,WAAW,KAAK,CAAC;IAC7B,OAAO,EAAE,KAAK,iBAAiB,IAAI,iBAAiB,EAAE,CAAC;CACxD"}
@@ -10,27 +10,8 @@ export declare class Event extends APIResource {
10
10
  */
11
11
  list(options?: RequestOptions): APIPromise<Stream<EventListResponse>>;
12
12
  }
13
- export type EventListResponse = EventListResponse.EventStorageWrite | EventListResponse.EventInstallationUpdated | EventListResponse.EventLspClientDiagnostics | EventListResponse.EventPermissionUpdated | EventListResponse.EventMessageUpdated | EventListResponse.EventMessagePartUpdated | EventListResponse.EventSessionUpdated | EventListResponse.EventSessionDeleted | EventListResponse.EventSessionError;
13
+ export type EventListResponse = EventListResponse.EventLspClientDiagnostics | EventListResponse.EventPermissionUpdated | EventListResponse.EventFileEdited | EventListResponse.EventStorageWrite | EventListResponse.EventInstallationUpdated | EventListResponse.EventMessageUpdated | EventListResponse.EventMessagePartUpdated | EventListResponse.EventSessionUpdated | EventListResponse.EventSessionDeleted | EventListResponse.EventSessionIdle | EventListResponse.EventSessionError | EventListResponse.EventFileWatcherUpdated;
14
14
  export declare namespace EventListResponse {
15
- interface EventStorageWrite {
16
- properties: EventStorageWrite.Properties;
17
- type: 'storage.write';
18
- }
19
- namespace EventStorageWrite {
20
- interface Properties {
21
- key: string;
22
- content?: unknown;
23
- }
24
- }
25
- interface EventInstallationUpdated {
26
- properties: EventInstallationUpdated.Properties;
27
- type: 'installation.updated';
28
- }
29
- namespace EventInstallationUpdated {
30
- interface Properties {
31
- version: string;
32
- }
33
- }
34
15
  interface EventLspClientDiagnostics {
35
16
  properties: EventLspClientDiagnostics.Properties;
36
17
  type: 'lsp.client.diagnostics';
@@ -61,6 +42,34 @@ export declare namespace EventListResponse {
61
42
  }
62
43
  }
63
44
  }
45
+ interface EventFileEdited {
46
+ properties: EventFileEdited.Properties;
47
+ type: 'file.edited';
48
+ }
49
+ namespace EventFileEdited {
50
+ interface Properties {
51
+ file: string;
52
+ }
53
+ }
54
+ interface EventStorageWrite {
55
+ properties: EventStorageWrite.Properties;
56
+ type: 'storage.write';
57
+ }
58
+ namespace EventStorageWrite {
59
+ interface Properties {
60
+ key: string;
61
+ content?: unknown;
62
+ }
63
+ }
64
+ interface EventInstallationUpdated {
65
+ properties: EventInstallationUpdated.Properties;
66
+ type: 'installation.updated';
67
+ }
68
+ namespace EventInstallationUpdated {
69
+ interface Properties {
70
+ version: string;
71
+ }
72
+ }
64
73
  interface EventMessageUpdated {
65
74
  properties: EventMessageUpdated.Properties;
66
75
  type: 'message.updated';
@@ -99,6 +108,15 @@ export declare namespace EventListResponse {
99
108
  info: SessionAPI.Session;
100
109
  }
101
110
  }
111
+ interface EventSessionIdle {
112
+ properties: EventSessionIdle.Properties;
113
+ type: 'session.idle';
114
+ }
115
+ namespace EventSessionIdle {
116
+ interface Properties {
117
+ sessionID: string;
118
+ }
119
+ }
102
120
  interface EventSessionError {
103
121
  properties: EventSessionError.Properties;
104
122
  type: 'session.error';
@@ -114,6 +132,16 @@ export declare namespace EventListResponse {
114
132
  }
115
133
  }
116
134
  }
135
+ interface EventFileWatcherUpdated {
136
+ properties: EventFileWatcherUpdated.Properties;
137
+ type: 'file.watcher.updated';
138
+ }
139
+ namespace EventFileWatcherUpdated {
140
+ interface Properties {
141
+ event: 'rename' | 'change';
142
+ file: string;
143
+ }
144
+ }
117
145
  }
118
146
  export declare namespace Event {
119
147
  export { type EventListResponse as EventListResponse };
@@ -1 +1 @@
1
- {"version":3,"file":"event.d.ts","sourceRoot":"","sources":["../src/resources/event.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,UAAU;OACf,KAAK,MAAM;OACX,EAAE,UAAU,EAAE;OACd,EAAE,MAAM,EAAE;OACV,EAAE,cAAc,EAAE;AAEzB,qBAAa,KAAM,SAAQ,WAAW;IACpC;;OAEG;IACH,IAAI,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,MAAM,CAAC,iBAAiB,CAAC,CAAC;CAGtE;AAED,MAAM,MAAM,iBAAiB,GACzB,iBAAiB,CAAC,iBAAiB,GACnC,iBAAiB,CAAC,wBAAwB,GAC1C,iBAAiB,CAAC,yBAAyB,GAC3C,iBAAiB,CAAC,sBAAsB,GACxC,iBAAiB,CAAC,mBAAmB,GACrC,iBAAiB,CAAC,uBAAuB,GACzC,iBAAiB,CAAC,mBAAmB,GACrC,iBAAiB,CAAC,mBAAmB,GACrC,iBAAiB,CAAC,iBAAiB,CAAC;AAExC,yBAAiB,iBAAiB,CAAC;IACjC,UAAiB,iBAAiB;QAChC,UAAU,EAAE,iBAAiB,CAAC,UAAU,CAAC;QAEzC,IAAI,EAAE,eAAe,CAAC;KACvB;IAED,UAAiB,iBAAiB,CAAC;QACjC,UAAiB,UAAU;YACzB,GAAG,EAAE,MAAM,CAAC;YAEZ,OAAO,CAAC,EAAE,OAAO,CAAC;SACnB;KACF;IAED,UAAiB,wBAAwB;QACvC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SAC1B;KACF;IAED,UAAiB,mBAAmB;QAClC,UAAU,EAAE,mBAAmB,CAAC,UAAU,CAAC;QAE3C,IAAI,EAAE,iBAAiB,CAAC;KACzB;IAED,UAAiB,mBAAmB,CAAC;QACnC,UAAiB,UAAU;YACzB,IAAI,EAAE,UAAU,CAAC,OAAO,CAAC;SAC1B;KACF;IAED,UAAiB,gBAAgB;QAC/B,UAAU,EAAE,gBAAgB,CAAC,UAAU,CAAC;QAExC,IAAI,EAAE,cAAc,CAAC;KACtB;IAED,UAAiB,gBAAgB,CAAC;QAChC,UAAiB,UAAU;YACzB,SAAS,EAAE,MAAM,CAAC;SACnB;KACF;IAED,UAAiB,iBAAiB;QAChC,UAAU,EAAE,iBAAiB,CAAC,UAAU,CAAC;QAEzC,IAAI,EAAE,eAAe,CAAC;KACvB;IAED,UAAiB,iBAAiB,CAAC;QACjC,UAAiB,UAAU;YACzB,KAAK,CAAC,EAAE,MAAM,CAAC,iBAAiB,GAAG,MAAM,CAAC,YAAY,GAAG,UAAU,CAAC,wBAAwB,CAAC;SAC9F;QAED,UAAiB,UAAU,CAAC;YAC1B,UAAiB,wBAAwB;gBACvC,IAAI,EAAE,OAAO,CAAC;gBAEd,IAAI,EAAE,0BAA0B,CAAC;aAClC;SACF;KACF;IAED,UAAiB,uBAAuB;QACtC,UAAU,EAAE,uBAAuB,CAAC,UAAU,CAAC;QAE/C,IAAI,EAAE,sBAAsB,CAAC;KAC9B;IAED,UAAiB,uBAAuB,CAAC;QACvC,UAAiB,UAAU;YACzB,KAAK,EAAE,QAAQ,GAAG,QAAQ,CAAC;YAE3B,IAAI,EAAE,MAAM,CAAC;SACd;KACF;CACF;AAED,MAAM,CAAC,OAAO,WAAW,KAAK,CAAC;IAC7B,OAAO,EAAE,KAAK,iBAAiB,IAAI,iBAAiB,EAAE,CAAC;CACxD"}
@@ -3,15 +3,31 @@ import { APIPromise } from "../core/api-promise.mjs";
3
3
  import { RequestOptions } from "../internal/request-options.mjs";
4
4
  export declare class File extends APIResource {
5
5
  /**
6
- * Search for files
6
+ * Read a file
7
7
  */
8
- search(query: FileSearchParams, options?: RequestOptions): APIPromise<FileSearchResponse>;
8
+ read(query: FileReadParams, options?: RequestOptions): APIPromise<FileReadResponse>;
9
+ /**
10
+ * Get file status
11
+ */
12
+ status(options?: RequestOptions): APIPromise<FileStatusResponse>;
13
+ }
14
+ export interface FileReadResponse {
15
+ content: string;
16
+ type: 'raw' | 'patch';
17
+ }
18
+ export type FileStatusResponse = Array<FileStatusResponse.FileStatusResponseItem>;
19
+ export declare namespace FileStatusResponse {
20
+ interface FileStatusResponseItem {
21
+ added: number;
22
+ file: string;
23
+ removed: number;
24
+ status: 'added' | 'deleted' | 'modified';
25
+ }
9
26
  }
10
- export type FileSearchResponse = Array<string>;
11
- export interface FileSearchParams {
12
- query: string;
27
+ export interface FileReadParams {
28
+ path: string;
13
29
  }
14
30
  export declare namespace File {
15
- export { type FileSearchResponse as FileSearchResponse, type FileSearchParams as FileSearchParams };
31
+ export { type FileReadResponse as FileReadResponse, type FileStatusResponse as FileStatusResponse, type FileReadParams as FileReadParams, };
16
32
  }
17
33
  //# sourceMappingURL=file.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"file.d.mts","sourceRoot":"","sources":["../src/resources/file.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,IAAK,SAAQ,WAAW;IACnC;;OAEG;IACH,MAAM,CAAC,KAAK,EAAE,gBAAgB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,kBAAkB,CAAC;CAG1F;AAED,MAAM,MAAM,kBAAkB,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC;AAE/C,MAAM,WAAW,gBAAgB;IAC/B,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,CAAC,OAAO,WAAW,IAAI,CAAC;IAC5B,OAAO,EAAE,KAAK,kBAAkB,IAAI,kBAAkB,EAAE,KAAK,gBAAgB,IAAI,gBAAgB,EAAE,CAAC;CACrG"}
1
+ {"version":3,"file":"file.d.mts","sourceRoot":"","sources":["../src/resources/file.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,IAAK,SAAQ,WAAW;IACnC;;OAEG;IACH,IAAI,CAAC,KAAK,EAAE,cAAc,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,gBAAgB,CAAC;IAInF;;OAEG;IACH,MAAM,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,kBAAkB,CAAC;CAGjE;AAED,MAAM,WAAW,gBAAgB;IAC/B,OAAO,EAAE,MAAM,CAAC;IAEhB,IAAI,EAAE,KAAK,GAAG,OAAO,CAAC;CACvB;AAED,MAAM,MAAM,kBAAkB,GAAG,KAAK,CAAC,kBAAkB,CAAC,sBAAsB,CAAC,CAAC;AAElF,yBAAiB,kBAAkB,CAAC;IAClC,UAAiB,sBAAsB;QACrC,KAAK,EAAE,MAAM,CAAC;QAEd,IAAI,EAAE,MAAM,CAAC;QAEb,OAAO,EAAE,MAAM,CAAC;QAEhB,MAAM,EAAE,OAAO,GAAG,SAAS,GAAG,UAAU,CAAC;KAC1C;CACF;AAED,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,CAAC,OAAO,WAAW,IAAI,CAAC;IAC5B,OAAO,EACL,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,cAAc,IAAI,cAAc,GACtC,CAAC;CACH"}
@@ -3,15 +3,31 @@ import { APIPromise } from "../core/api-promise.js";
3
3
  import { RequestOptions } from "../internal/request-options.js";
4
4
  export declare class File extends APIResource {
5
5
  /**
6
- * Search for files
6
+ * Read a file
7
7
  */
8
- search(query: FileSearchParams, options?: RequestOptions): APIPromise<FileSearchResponse>;
8
+ read(query: FileReadParams, options?: RequestOptions): APIPromise<FileReadResponse>;
9
+ /**
10
+ * Get file status
11
+ */
12
+ status(options?: RequestOptions): APIPromise<FileStatusResponse>;
13
+ }
14
+ export interface FileReadResponse {
15
+ content: string;
16
+ type: 'raw' | 'patch';
17
+ }
18
+ export type FileStatusResponse = Array<FileStatusResponse.FileStatusResponseItem>;
19
+ export declare namespace FileStatusResponse {
20
+ interface FileStatusResponseItem {
21
+ added: number;
22
+ file: string;
23
+ removed: number;
24
+ status: 'added' | 'deleted' | 'modified';
25
+ }
9
26
  }
10
- export type FileSearchResponse = Array<string>;
11
- export interface FileSearchParams {
12
- query: string;
27
+ export interface FileReadParams {
28
+ path: string;
13
29
  }
14
30
  export declare namespace File {
15
- export { type FileSearchResponse as FileSearchResponse, type FileSearchParams as FileSearchParams };
31
+ export { type FileReadResponse as FileReadResponse, type FileStatusResponse as FileStatusResponse, type FileReadParams as FileReadParams, };
16
32
  }
17
33
  //# sourceMappingURL=file.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"file.d.ts","sourceRoot":"","sources":["../src/resources/file.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,IAAK,SAAQ,WAAW;IACnC;;OAEG;IACH,MAAM,CAAC,KAAK,EAAE,gBAAgB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,kBAAkB,CAAC;CAG1F;AAED,MAAM,MAAM,kBAAkB,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC;AAE/C,MAAM,WAAW,gBAAgB;IAC/B,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,CAAC,OAAO,WAAW,IAAI,CAAC;IAC5B,OAAO,EAAE,KAAK,kBAAkB,IAAI,kBAAkB,EAAE,KAAK,gBAAgB,IAAI,gBAAgB,EAAE,CAAC;CACrG"}
1
+ {"version":3,"file":"file.d.ts","sourceRoot":"","sources":["../src/resources/file.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,IAAK,SAAQ,WAAW;IACnC;;OAEG;IACH,IAAI,CAAC,KAAK,EAAE,cAAc,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,gBAAgB,CAAC;IAInF;;OAEG;IACH,MAAM,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,kBAAkB,CAAC;CAGjE;AAED,MAAM,WAAW,gBAAgB;IAC/B,OAAO,EAAE,MAAM,CAAC;IAEhB,IAAI,EAAE,KAAK,GAAG,OAAO,CAAC;CACvB;AAED,MAAM,MAAM,kBAAkB,GAAG,KAAK,CAAC,kBAAkB,CAAC,sBAAsB,CAAC,CAAC;AAElF,yBAAiB,kBAAkB,CAAC;IAClC,UAAiB,sBAAsB;QACrC,KAAK,EAAE,MAAM,CAAC;QAEd,IAAI,EAAE,MAAM,CAAC;QAEb,OAAO,EAAE,MAAM,CAAC;QAEhB,MAAM,EAAE,OAAO,GAAG,SAAS,GAAG,UAAU,CAAC;KAC1C;CACF;AAED,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,CAAC,OAAO,WAAW,IAAI,CAAC;IAC5B,OAAO,EACL,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,cAAc,IAAI,cAAc,GACtC,CAAC;CACH"}
package/resources/file.js CHANGED
@@ -5,11 +5,17 @@ exports.File = void 0;
5
5
  const resource_1 = require("../core/resource.js");
6
6
  class File extends resource_1.APIResource {
7
7
  /**
8
- * Search for files
8
+ * Read a file
9
9
  */
10
- search(query, options) {
10
+ read(query, options) {
11
11
  return this._client.get('/file', { query, ...options });
12
12
  }
13
+ /**
14
+ * Get file status
15
+ */
16
+ status(options) {
17
+ return this._client.get('/file/status', options);
18
+ }
13
19
  }
14
20
  exports.File = File;
15
21
  //# sourceMappingURL=file.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"file.js","sourceRoot":"","sources":["../src/resources/file.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAI/C,MAAa,IAAK,SAAQ,sBAAW;IACnC;;OAEG;IACH,MAAM,CAAC,KAAuB,EAAE,OAAwB;QACtD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,OAAO,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC1D,CAAC;CACF;AAPD,oBAOC"}
1
+ {"version":3,"file":"file.js","sourceRoot":"","sources":["../src/resources/file.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAI/C,MAAa,IAAK,SAAQ,sBAAW;IACnC;;OAEG;IACH,IAAI,CAAC,KAAqB,EAAE,OAAwB;QAClD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,OAAO,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC1D,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,OAAwB;QAC7B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,cAAc,EAAE,OAAO,CAAC,CAAC;IACnD,CAAC;CACF;AAdD,oBAcC"}
@@ -2,10 +2,16 @@
2
2
  import { APIResource } from "../core/resource.mjs";
3
3
  export class File extends APIResource {
4
4
  /**
5
- * Search for files
5
+ * Read a file
6
6
  */
7
- search(query, options) {
7
+ read(query, options) {
8
8
  return this._client.get('/file', { query, ...options });
9
9
  }
10
+ /**
11
+ * Get file status
12
+ */
13
+ status(options) {
14
+ return this._client.get('/file/status', options);
15
+ }
10
16
  }
11
17
  //# sourceMappingURL=file.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"file.mjs","sourceRoot":"","sources":["../src/resources/file.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAItB,MAAM,OAAO,IAAK,SAAQ,WAAW;IACnC;;OAEG;IACH,MAAM,CAAC,KAAuB,EAAE,OAAwB;QACtD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,OAAO,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC1D,CAAC;CACF"}
1
+ {"version":3,"file":"file.mjs","sourceRoot":"","sources":["../src/resources/file.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAItB,MAAM,OAAO,IAAK,SAAQ,WAAW;IACnC;;OAEG;IACH,IAAI,CAAC,KAAqB,EAAE,OAAwB;QAClD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,OAAO,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC1D,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,OAAwB;QAC7B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,cAAc,EAAE,OAAO,CAAC,CAAC;IACnD,CAAC;CACF"}
@@ -0,0 +1,60 @@
1
+ import { APIResource } from "../core/resource.mjs";
2
+ import { APIPromise } from "../core/api-promise.mjs";
3
+ import { RequestOptions } from "../internal/request-options.mjs";
4
+ export declare class Find extends APIResource {
5
+ /**
6
+ * Find files
7
+ */
8
+ files(query: FindFilesParams, options?: RequestOptions): APIPromise<FindFilesResponse>;
9
+ /**
10
+ * Find workspace symbols
11
+ */
12
+ symbols(query: FindSymbolsParams, options?: RequestOptions): APIPromise<FindSymbolsResponse>;
13
+ /**
14
+ * Find text in files
15
+ */
16
+ text(query: FindTextParams, options?: RequestOptions): APIPromise<FindTextResponse>;
17
+ }
18
+ export type FindFilesResponse = Array<string>;
19
+ export type FindSymbolsResponse = Array<unknown>;
20
+ export type FindTextResponse = Array<FindTextResponse.FindTextResponseItem>;
21
+ export declare namespace FindTextResponse {
22
+ interface FindTextResponseItem {
23
+ absolute_offset: number;
24
+ line_number: number;
25
+ lines: FindTextResponseItem.Lines;
26
+ path: FindTextResponseItem.Path;
27
+ submatches: Array<FindTextResponseItem.Submatch>;
28
+ }
29
+ namespace FindTextResponseItem {
30
+ interface Lines {
31
+ text: string;
32
+ }
33
+ interface Path {
34
+ text: string;
35
+ }
36
+ interface Submatch {
37
+ end: number;
38
+ match: Submatch.Match;
39
+ start: number;
40
+ }
41
+ namespace Submatch {
42
+ interface Match {
43
+ text: string;
44
+ }
45
+ }
46
+ }
47
+ }
48
+ export interface FindFilesParams {
49
+ query: string;
50
+ }
51
+ export interface FindSymbolsParams {
52
+ query: string;
53
+ }
54
+ export interface FindTextParams {
55
+ pattern: string;
56
+ }
57
+ export declare namespace Find {
58
+ export { type FindFilesResponse as FindFilesResponse, type FindSymbolsResponse as FindSymbolsResponse, type FindTextResponse as FindTextResponse, type FindFilesParams as FindFilesParams, type FindSymbolsParams as FindSymbolsParams, type FindTextParams as FindTextParams, };
59
+ }
60
+ //# sourceMappingURL=find.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"find.d.mts","sourceRoot":"","sources":["../src/resources/find.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,IAAK,SAAQ,WAAW;IACnC;;OAEG;IACH,KAAK,CAAC,KAAK,EAAE,eAAe,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,iBAAiB,CAAC;IAItF;;OAEG;IACH,OAAO,CAAC,KAAK,EAAE,iBAAiB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,mBAAmB,CAAC;IAI5F;;OAEG;IACH,IAAI,CAAC,KAAK,EAAE,cAAc,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,gBAAgB,CAAC;CAGpF;AAED,MAAM,MAAM,iBAAiB,GAAG,KAAK,C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c,GACtC,CAAC;CACH"}
@@ -0,0 +1,60 @@
1
+ import { APIResource } from "../core/resource.js";
2
+ import { APIPromise } from "../core/api-promise.js";
3
+ import { RequestOptions } from "../internal/request-options.js";
4
+ export declare class Find extends APIResource {
5
+ /**
6
+ * Find files
7
+ */
8
+ files(query: FindFilesParams, options?: RequestOptions): APIPromise<FindFilesResponse>;
9
+ /**
10
+ * Find workspace symbols
11
+ */
12
+ symbols(query: FindSymbolsParams, options?: RequestOptions): APIPromise<FindSymbolsResponse>;
13
+ /**
14
+ * Find text in files
15
+ */
16
+ text(query: FindTextParams, options?: RequestOptions): APIPromise<FindTextResponse>;
17
+ }
18
+ export type FindFilesResponse = Array<string>;
19
+ export type FindSymbolsResponse = Array<unknown>;
20
+ export type FindTextResponse = Array<FindTextResponse.FindTextResponseItem>;
21
+ export declare namespace FindTextResponse {
22
+ interface FindTextResponseItem {
23
+ absolute_offset: number;
24
+ line_number: number;
25
+ lines: FindTextResponseItem.Lines;
26
+ path: FindTextResponseItem.Path;
27
+ submatches: Array<FindTextResponseItem.Submatch>;
28
+ }
29
+ namespace FindTextResponseItem {
30
+ interface Lines {
31
+ text: string;
32
+ }
33
+ interface Path {
34
+ text: string;
35
+ }
36
+ interface Submatch {
37
+ end: number;
38
+ match: Submatch.Match;
39
+ start: number;
40
+ }
41
+ namespace Submatch {
42
+ interface Match {
43
+ text: string;
44
+ }
45
+ }
46
+ }
47
+ }
48
+ export interface FindFilesParams {
49
+ query: string;
50
+ }
51
+ export interface FindSymbolsParams {
52
+ query: string;
53
+ }
54
+ export interface FindTextParams {
55
+ pattern: string;
56
+ }
57
+ export declare namespace Find {
58
+ export { type FindFilesResponse as FindFilesResponse, type FindSymbolsResponse as FindSymbolsResponse, type FindTextResponse as FindTextResponse, type FindFilesParams as FindFilesParams, type FindSymbolsParams as FindSymbolsParams, type FindTextParams as FindTextParams, };
59
+ }
60
+ //# sourceMappingURL=find.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"find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C;SACf;QAED,UAAiB,QAAQ,CAAC;YACxB,UAAiB,KAAK;gBACpB,IAAI,EAAE,MAAM,CAAC;aACd;SACF;KACF;CACF;AAED,MAAM,WAAW,eAAe;IAC9B,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,iBAAiB;IAChC,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,cAAc;IAC7B,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,CAAC,OAAO,WAAW,IAAI,CAAC;IAC5B,OAAO,EACL,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,cAAc,IAAI,cAAc,GACtC,CAAC;CACH"}
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.Find = void 0;
5
+ const resource_1 = require("../core/resource.js");
6
+ class Find extends resource_1.APIResource {
7
+ /**
8
+ * Find files
9
+ */
10
+ files(query, options) {
11
+ return this._client.get('/find/file', { query, ...options });
12
+ }
13
+ /**
14
+ * Find workspace symbols
15
+ */
16
+ symbols(query, options) {
17
+ return this._client.get('/find/symbol', { query, ...options });
18
+ }
19
+ /**
20
+ * Find text in files
21
+ */
22
+ text(query, options) {
23
+ return this._client.get('/find', { query, ...options });
24
+ }
25
+ }
26
+ exports.Find = Find;
27
+ //# sourceMappingURL=find.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"find.js","sourceRoot":"","sources":["../src/resources/find.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAI/C,MAAa,IAAK,SAAQ,sBAAW;IACnC;;OAEG;IACH,KAAK,CAAC,KAAsB,EAAE,OAAwB;QACpD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,YAAY,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC/D,CAAC;IAED;;OAEG;IACH,OAAO,CAAC,KAAwB,EAAE,OAAwB;QACxD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,cAAc,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACjE,CAAC;IAED;;OAEG;IACH,IAAI,CAAC,KAAqB,EAAE,OAAwB;QAClD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,OAAO,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC1D,CAAC;CACF;AArBD,oBAqBC"}
@@ -0,0 +1,23 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ import { APIResource } from "../core/resource.mjs";
3
+ export class Find extends APIResource {
4
+ /**
5
+ * Find files
6
+ */
7
+ files(query, options) {
8
+ return this._client.get('/find/file', { query, ...options });
9
+ }
10
+ /**
11
+ * Find workspace symbols
12
+ */
13
+ symbols(query, options) {
14
+ return this._client.get('/find/symbol', { query, ...options });
15
+ }
16
+ /**
17
+ * Find text in files
18
+ */
19
+ text(query, options) {
20
+ return this._client.get('/find', { query, ...options });
21
+ }
22
+ }
23
+ //# sourceMappingURL=find.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"find.mjs","sourceRoot":"","sources":["../src/resources/find.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAItB,MAAM,OAAO,IAAK,SAAQ,WAAW;IACnC;;OAEG;IACH,KAAK,CAAC,KAAsB,EAAE,OAAwB;QACpD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,YAAY,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC/D,CAAC;IAED;;OAEG;IACH,OAAO,CAAC,KAAwB,EAAE,OAAwB;QACxD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,cAAc,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACjE,CAAC;IAED;;OAEG;IACH,IAAI,CAAC,KAAqB,EAAE,OAAwB;QAClD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,OAAO,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC1D,CAAC;CACF"}
@@ -2,6 +2,7 @@ export * from "./shared.mjs";
2
2
  export { AppResource, type App, type AppInitResponse } from "./app.mjs";
3
3
  export { ConfigResource, type Config, type Keybinds, type McpLocal, type McpRemote, type Model, type Provider, type ConfigProvidersResponse, } from "./config.mjs";
4
4
  export { Event, type EventListResponse } from "./event.mjs";
5
- export { File, type FileSearchResponse, type FileSearchParams } from "./file.mjs";
5
+ export { File, type FileReadResponse, type FileStatusResponse, type FileReadParams } from "./file.mjs";
6
+ export { Find, type FindFilesResponse, type FindSymbolsResponse, type FindTextResponse, type FindFilesParams, type FindSymbolsParams, type FindTextParams, } from "./find.mjs";
6
7
  export { SessionResource, type FilePart, type Message, type MessagePart, type ReasoningPart, type Session, type SourceURLPart, type StepStartPart, type TextPart, type ToolCall, type ToolInvocationPart, type ToolPartialCall, type ToolResult, type SessionListResponse, type SessionDeleteResponse, type SessionAbortResponse, type SessionInitResponse, type SessionMessagesResponse, type SessionSummarizeResponse, type SessionChatParams, type SessionInitParams, type SessionSummarizeParams, } from "./session.mjs";
7
8
  //# sourceMappingURL=index.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";OAGO,EAAE,WAAW,EAAE,KAAK,GAAG,EAAE,KAAK,eAAe,EAAE;OAC/C,EACL,cAAc,EACd,KAAK,MAAM,EACX,KAAK,QAAQ,EACb,KAAK,QAAQ,EACb,KAAK,SAAS,EACd,KAAK,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K,OAAO,EACZ,KAAK,aAAa,EAClB,KAAK,aAAa,EAClB,KAAK,QAAQ,EACb,KAAK,QAAQ,EACb,KAAK,kBAAkB,EACvB,KAAK,eAAe,EACpB,KAAK,UAAU,EACf,KAAK,mBAAmB,EACxB,KAAK,qBAAqB,EAC1B,KAAK,oBAAoB,EACzB,KAAK,mBAAmB,EACxB,KAAK,uBAAuB,EAC5B,KAAK,wBAAwB,EAC7B,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EACtB,KAAK,sBAAsB,GAC5B"}
@@ -2,6 +2,7 @@ export * from "./shared.js";
2
2
  export { AppResource, type App, type AppInitResponse } from "./app.js";
3
3
  export { ConfigResource, type Config, type Keybinds, type McpLocal, type McpRemote, type Model, type Provider, type ConfigProvidersResponse, } from "./config.js";
4
4
  export { Event, type EventListResponse } from "./event.js";
5
- export { File, type FileSearchResponse, type FileSearchParams } from "./file.js";
5
+ export { File, type FileReadResponse, type FileStatusResponse, type FileReadParams } from "./file.js";
6
+ export { Find, type FindFilesResponse, type FindSymbolsResponse, type FindTextResponse, type FindFilesParams, type FindSymbolsParams, type FindTextParams, } from "./find.js";
6
7
  export { SessionResource, type FilePart, type Message, type MessagePart, type ReasoningPart, type Session, type SourceURLPart, type StepStartPart, type TextPart, type ToolCall, type ToolInvocationPart, type ToolPartialCall, type ToolResult, type SessionListResponse, type SessionDeleteResponse, type SessionAbortResponse, type SessionInitResponse, type SessionMessagesResponse, type SessionSummarizeResponse, type SessionChatParams, type SessionInitParams, type SessionSummarizeParams, } from "./session.js";
7
8
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";OAGO,EAAE,WAAW,EAAE,KAAK,GAAG,EAAE,KAAK,eAAe,EAAE;OAC/C,EACL,cAAc,EACd,KAAK,MAAM,EACX,KAAK,QAAQ,EACb,KAAK,QAAQ,EACb,KAAK,SAAS,EACd,KAAK,KAAK,E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,EACZ,KAAK,aAAa,EAClB,KAAK,aAAa,EAClB,KAAK,QAAQ,EACb,KAAK,QAAQ,EACb,KAAK,kBAAkB,EACvB,KAAK,eAAe,EACpB,KAAK,UAAU,EACf,KAAK,mBAAmB,EACxB,KAAK,qBAAqB,EAC1B,KAAK,oBAAoB,EACzB,KAAK,mBAAmB,EACxB,KAAK,uBAAuB,EAC5B,KAAK,wBAAwB,EAC7B,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EACtB,KAAK,sBAAsB,GAC5B"}
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.SessionResource = exports.File = exports.Event = exports.ConfigResource = exports.AppResource = void 0;
4
+ exports.SessionResource = exports.Find = exports.File = exports.Event = exports.ConfigResource = exports.AppResource = void 0;
5
5
  const tslib_1 = require("../internal/tslib.js");
6
6
  tslib_1.__exportStar(require("./shared.js"), exports);
7
7
  var app_1 = require("./app.js");
@@ -12,6 +12,8 @@ var event_1 = require("./event.js");
12
12
  Object.defineProperty(exports, "Event", { enumerable: true, get: function () { return event_1.Event; } });
13
13
  var file_1 = require("./file.js");
14
14
  Object.defineProperty(exports, "File", { enumerable: true, get: function () { return file_1.File; } });
15
+ var find_1 = require("./find.js");
16
+ Object.defineProperty(exports, "Find", { enumerable: true, get: function () { return find_1.Find; } });
15
17
  var session_1 = require("./session.js");
16
18
  Object.defineProperty(exports, "SessionResource", { enumerable: true, get: function () { return session_1.SessionResource; } });
17
19
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,sDAAyB;AACzB,gCAAoE;AAA3D,kGAAA,WAAW,OAAA;AACpB,sCASkB;AARhB,wGAAA,cAAc,OAAA;AAShB,oCAAwD;AAA/C,8FAAA,KAAK,OAAA;AACd,kCAA8E;AAArE,4FAAA,IAAI,OAAA;AACb,wCAuBmB;AAtBjB,0GAAA,eAAe,OAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,sDAAyB;AACzB,gCAAoE;AAA3D,kGAAA,WAAW,OAAA;AACpB,sCASkB;AARhB,wGAAA,cAAc,OAAA;AAShB,oCAAwD;AAA/C,8FAAA,KAAK,OAAA;AACd,kCAAmG;AAA1F,4FAAA,IAAI,OAAA;AACb,kCAQgB;AAPd,4FAAA,IAAI,OAAA;AAQN,wCAuBmB;AAtBjB,0GAAA,eAAe,OAAA"}