@airstore/sdk 0.1.1 → 0.1.3

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 (73) hide show
  1. package/README.md +52 -12
  2. package/dist/cjs/airstore.js +30 -69
  3. package/dist/cjs/airstore.js.map +1 -1
  4. package/dist/cjs/index.js +18 -3
  5. package/dist/cjs/index.js.map +1 -1
  6. package/dist/cjs/resources/access-log.js +101 -0
  7. package/dist/cjs/resources/access-log.js.map +1 -0
  8. package/dist/cjs/resources/filesystem.js +5 -2
  9. package/dist/cjs/resources/filesystem.js.map +1 -1
  10. package/dist/cjs/resources/index.js +3 -3
  11. package/dist/cjs/resources/index.js.map +1 -1
  12. package/dist/cjs/resources/views.js +107 -0
  13. package/dist/cjs/resources/views.js.map +1 -0
  14. package/dist/cjs/resources/workspaces.js +1 -1
  15. package/dist/cjs/types/{smart-folders.js → access-log.js} +1 -1
  16. package/dist/cjs/types/access-log.js.map +1 -0
  17. package/dist/cjs/types/index.js +1 -1
  18. package/dist/cjs/types/index.js.map +1 -1
  19. package/dist/cjs/types/views.js +29 -0
  20. package/dist/cjs/types/views.js.map +1 -0
  21. package/dist/esm/airstore.js +30 -69
  22. package/dist/esm/airstore.js.map +1 -1
  23. package/dist/esm/index.js +3 -1
  24. package/dist/esm/index.js.map +1 -1
  25. package/dist/esm/resources/access-log.js +97 -0
  26. package/dist/esm/resources/access-log.js.map +1 -0
  27. package/dist/esm/resources/filesystem.js +5 -2
  28. package/dist/esm/resources/filesystem.js.map +1 -1
  29. package/dist/esm/resources/index.js +1 -1
  30. package/dist/esm/resources/index.js.map +1 -1
  31. package/dist/esm/resources/views.js +103 -0
  32. package/dist/esm/resources/views.js.map +1 -0
  33. package/dist/esm/resources/workspaces.js +1 -1
  34. package/dist/esm/types/access-log.js +2 -0
  35. package/dist/esm/types/access-log.js.map +1 -0
  36. package/dist/esm/types/index.js +1 -1
  37. package/dist/esm/types/index.js.map +1 -1
  38. package/dist/esm/types/views.js +26 -0
  39. package/dist/esm/types/views.js.map +1 -0
  40. package/dist/types/airstore.d.ts +28 -68
  41. package/dist/types/airstore.d.ts.map +1 -1
  42. package/dist/types/index.d.ts +5 -2
  43. package/dist/types/index.d.ts.map +1 -1
  44. package/dist/types/resources/access-log.d.ts +72 -0
  45. package/dist/types/resources/access-log.d.ts.map +1 -0
  46. package/dist/types/resources/filesystem.d.ts +4 -2
  47. package/dist/types/resources/filesystem.d.ts.map +1 -1
  48. package/dist/types/resources/index.d.ts +1 -1
  49. package/dist/types/resources/index.d.ts.map +1 -1
  50. package/dist/types/resources/views.d.ts +66 -0
  51. package/dist/types/resources/views.d.ts.map +1 -0
  52. package/dist/types/resources/workspaces.d.ts +1 -1
  53. package/dist/types/types/access-log.d.ts +123 -0
  54. package/dist/types/types/access-log.d.ts.map +1 -0
  55. package/dist/types/types/index.d.ts +1 -1
  56. package/dist/types/types/index.d.ts.map +1 -1
  57. package/dist/types/types/shared.d.ts +1 -1
  58. package/dist/types/types/shared.d.ts.map +1 -1
  59. package/dist/types/types/views.d.ts +207 -0
  60. package/dist/types/types/views.d.ts.map +1 -0
  61. package/dist/types/types/workspaces.d.ts +1 -1
  62. package/package.json +1 -1
  63. package/dist/cjs/resources/smart-folders.js +0 -102
  64. package/dist/cjs/resources/smart-folders.js.map +0 -1
  65. package/dist/cjs/types/smart-folders.js.map +0 -1
  66. package/dist/esm/resources/smart-folders.js +0 -98
  67. package/dist/esm/resources/smart-folders.js.map +0 -1
  68. package/dist/esm/types/smart-folders.js +0 -2
  69. package/dist/esm/types/smart-folders.js.map +0 -1
  70. package/dist/types/resources/smart-folders.d.ts +0 -70
  71. package/dist/types/resources/smart-folders.d.ts.map +0 -1
  72. package/dist/types/types/smart-folders.d.ts +0 -45
  73. package/dist/types/types/smart-folders.d.ts.map +0 -1
@@ -1,113 +1,73 @@
1
1
  import { CoreClient, type ClientOptions } from './client.js';
2
2
  import { Workspaces } from './resources/workspaces.js';
3
3
  import { Connections } from './resources/connections.js';
4
- import { SmartFolders } from './resources/smart-folders.js';
4
+ import { Views } from './resources/views.js';
5
5
  import { Tokens } from './resources/tokens.js';
6
6
  import { Members } from './resources/members.js';
7
7
  import { OAuth } from './resources/oauth.js';
8
8
  import { Filesystem } from './resources/filesystem.js';
9
+ import { AccessLog } from './resources/access-log.js';
9
10
  /**
10
11
  * The Airstore SDK client.
11
12
  *
12
- * Create an instance with your API key to interact with workspaces,
13
- * connections, smart folders, tokens, members, the virtual filesystem,
14
- * and OAuth sessions.
15
- *
16
13
  * @example Basic provisioning flow
17
14
  * ```ts
18
15
  * import Airstore from '@airstore/sdk';
19
16
  *
20
17
  * const airstore = new Airstore({ apiKey: 'org_...' });
21
18
  *
22
- * // 1. Create a workspace for a new user
19
+ * // 1. Create a workspace
23
20
  * const ws = await airstore.workspaces.create({ name: 'user-123' });
24
21
  *
25
- * // 2. Connect their Gmail with existing OAuth tokens
22
+ * // 2. Connect Gmail
26
23
  * await airstore.connections.create(ws.external_id, {
27
24
  * integrationType: 'gmail',
28
25
  * accessToken: existingAccessToken,
29
26
  * refreshToken: existingRefreshToken,
30
27
  * });
31
28
  *
32
- * // 3. Set up a smart folder
33
- * await airstore.smartFolders.create(ws.external_id, {
29
+ * // 3. Create a source view (smart mode — LLM-inferred)
30
+ * const view = await airstore.views.create(ws.external_id, {
34
31
  * integration: 'gmail',
35
32
  * name: 'Recent Emails',
36
33
  * guidance: 'Last 7 days of emails from the inbox',
37
34
  * });
38
35
  *
39
- * // 4. Generate a mount token for the user's VM
36
+ * // 4. Or create a source view (query mode structured filter)
37
+ * await airstore.views.create(ws.external_id, {
38
+ * integration: 'gmail',
39
+ * name: 'Unread from boss',
40
+ * filter: { from: 'boss@company.com', is_unread: true },
41
+ * });
42
+ *
43
+ * // 5. Sync a view to refresh its metadata
44
+ * const result = await airstore.views.sync(ws.external_id, view.external_id);
45
+ * console.log(result.results_count, result.new_results);
46
+ *
47
+ * // 6. Generate a mount token
40
48
  * const token = await airstore.tokens.create(ws.external_id, {
41
49
  * email: 'agent@internal',
42
50
  * name: 'vm-mount',
43
51
  * });
44
- * // Pass token.token to: airstore start --token <token>
45
- * ```
46
- *
47
- * @example Per-request options
48
- * ```ts
49
- * const ws = await airstore.workspaces.list({
50
- * timeout: 10_000,
51
- * maxRetries: 5,
52
- * });
53
52
  * ```
54
53
  */
55
54
  export declare class Airstore extends CoreClient {
56
- /**
57
- * Manage workspaces.
58
- *
59
- * Workspaces are the top-level container for connections, smart folders,
60
- * members, and the virtual filesystem.
61
- */
55
+ /** Manage workspaces. */
62
56
  readonly workspaces: Workspaces;
63
- /**
64
- * Manage connections (integrations) within a workspace.
65
- *
66
- * Pass existing OAuth tokens or API keys to connect external services
67
- * like Gmail, GitHub, Notion, etc.
68
- */
57
+ /** Manage connections (integrations) within a workspace. */
69
58
  readonly connections: Connections;
70
- /**
71
- * Manage smart folders (filesystem queries).
72
- *
73
- * Smart folders use LLM inference to automatically organize and filter
74
- * data from connected integrations into virtual folders or files.
75
- */
76
- readonly smartFolders: SmartFolders;
77
- /**
78
- * Manage workspace-scoped authentication tokens.
79
- *
80
- * Tokens are used for CLI mounting and per-workspace programmatic access.
81
- */
59
+ /** Manage source views — materialized queries over connected data sources. */
60
+ readonly views: Views;
61
+ /** Manage workspace-scoped authentication tokens. */
82
62
  readonly tokens: Tokens;
83
- /**
84
- * Manage workspace members.
85
- *
86
- * Members are users with roles (admin, member, viewer) in a workspace.
87
- */
63
+ /** Manage workspace members. */
88
64
  readonly members: Members;
89
- /**
90
- * OAuth session management for interactive connection setup.
91
- *
92
- * Use this for browser-redirect flows where users authorize
93
- * integrations themselves.
94
- */
65
+ /** OAuth session management for interactive connection setup. */
95
66
  readonly oauth: OAuth;
96
- /**
97
- * Read-only access to the workspace virtual filesystem.
98
- *
99
- * Browse directories, read files, and inspect metadata across
100
- * all connected integrations.
101
- */
67
+ /** Read-only access to the workspace virtual filesystem. */
102
68
  readonly fs: Filesystem;
103
- /**
104
- * Create a new Airstore SDK client.
105
- *
106
- * @param opts - Client configuration. At minimum, provide an `apiKey`
107
- * or set the `AIRSTORE_API_KEY` environment variable.
108
- *
109
- * @throws {AirstoreError} If no API key is provided.
110
- */
69
+ /** Query the workspace access log. */
70
+ readonly accessLog: AccessLog;
111
71
  constructor(opts?: ClientOptions);
112
72
  }
113
73
  export default Airstore;
@@ -1 +1 @@
1
- {"version":3,"file":"airstore.d.ts","sourceRoot":"","sources":["../../src/airstore.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,KAAK,aAAa,EAAE,MAAM,aAAa,CAAC;AAC7D,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACvD,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AACzD,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAC5D,OAAO,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAC/C,OAAO,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAC7C,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAEvD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6CG;AACH,qBAAa,QAAS,SAAQ,UAAU;IACtC;;;;;OAKG;IACH,QAAQ,CAAC,UAAU,EAAE,UAAU,CAAC;IAEhC;;;;;OAKG;IACH,QAAQ,CAAC,WAAW,EAAE,WAAW,CAAC;IAElC;;;;;OAKG;IACH,QAAQ,CAAC,YAAY,EAAE,YAAY,CAAC;IAEpC;;;;OAIG;IACH,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IAExB;;;;OAIG;IACH,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC;IAE1B;;;;;OAKG;IACH,QAAQ,CAAC,KAAK,EAAE,KAAK,CAAC;IAEtB;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,EAAE,UAAU,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WjC;AAED,eAAe,QAAQ,CAAC"}
@@ -4,18 +4,21 @@ export type { ClientOptions, RequestOptions, ResponseMeta } from './client.js';
4
4
  export { AirstoreError, APIError, AuthenticationError, PermissionDeniedError, NotFoundError, ConflictError, UnprocessableEntityError, RateLimitError, InternalServerError, APIConnectionError, APIConnectionTimeoutError, } from './errors.js';
5
5
  export { Workspaces } from './resources/workspaces.js';
6
6
  export { Connections } from './resources/connections.js';
7
- export { SmartFolders } from './resources/smart-folders.js';
7
+ export { Views } from './resources/views.js';
8
8
  export { Tokens } from './resources/tokens.js';
9
9
  export { Members } from './resources/members.js';
10
10
  export { OAuth } from './resources/oauth.js';
11
11
  export { Filesystem } from './resources/filesystem.js';
12
+ export { AccessLog } from './resources/access-log.js';
12
13
  export type { PaginatedList, IntegrationType, MemberRole, OutputFormat } from './types/shared.js';
13
14
  export type { Workspace, WorkspaceCreateParams } from './types/workspaces.js';
14
15
  export type { Connection, ConnectionCreateParams } from './types/connections.js';
15
- export type { SmartFolder, SmartFolderCreateParams, SmartFolderUpdateParams } from './types/smart-folders.js';
16
+ export type { SourceView, ViewCreateParams, ViewUpdateParams, ViewMode, ViewFilter, SyncResult, Integration, GmailFilter, GmailLabel, GitHubFilter, GitHubResourceType, GitHubState, GitHubContentType, GDriveFilter, GDriveMimeType, NotionFilter, SlackFilter, LinearFilter, LinearResourceType, LinearState, LinearPriority, PostHogFilter, PostHogResourceType, WebFilter, WebMode, IntegrationResource, } from './types/views.js';
17
+ export { ViewModes, Integrations, GmailLabels, GitHubResourceTypes, GitHubStates, GitHubContentTypes, GDriveMimeTypes, LinearResourceTypes, LinearStates, LinearPriorities, PostHogResourceTypes, WebModes, } from './types/views.js';
16
18
  export type { Token, TokenCreateParams, TokenCreated } from './types/tokens.js';
17
19
  export type { Member, MemberCreateParams } from './types/members.js';
18
20
  export type { OAuthSession, OAuthSessionCreateParams, OAuthSessionStatus, OAuthPollOptions } from './types/oauth.js';
19
21
  export type { VirtualFile, DirectoryListing, TreeListing } from './types/filesystem.js';
22
+ export type { AccessLogRead, AccessLogListParams, AccessLogListResponse, AccessLogSummaryParams, AccessLogSummary, IntegrationStats, PathStats, } from './types/access-log.js';
20
23
  export { VERSION } from './version.js';
21
24
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,4BAA4B;AAG5B,OAAO,EAAE,QAAQ,EAAE,QAAQ,IAAI,OAAO,EAAE,MAAM,eAAe,CAAC;AAC9D,YAAY,EAAE,aAAa,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAG/E,OAAO,EACL,aAAa,EACb,QAAQ,EACR,mBAAmB,EACnB,qBAAqB,EACrB,aAAa,EACb,aAAa,EACb,wBAAwB,EACxB,cAAc,EACd,mBAAmB,EACnB,kBAAkB,EAClB,yBAAyB,GAC1B,MAAM,aAAa,CAAC;AAGrB,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACvD,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AACzD,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAC5D,OAAO,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAC/C,OAAO,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAC7C,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAGvD,YAAY,EAAE,aAAa,EAAE,eAAe,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAClG,YAAY,EAAE,SAAS,EAAE,qBAAqB,EAAE,MAAM,uBAAuB,CAAC;AAC9E,YAAY,EAAE,UAAU,EAAE,sBAAsB,EAAE,MAAM,wBAAwB,CAAC;AACjF,YAAY,EAAE,WAAW,EAAE,uBAAuB,EAAE,uBAAuB,EAAE,MAAM,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 +1,72 @@
1
+ import type { CoreClient, RequestOptions } from '../client.js';
2
+ import type { AccessLogListParams, AccessLogListResponse, AccessLogSummaryParams, AccessLogSummary } from '../types/access-log.js';
3
+ /**
4
+ * Query the workspace access log.
5
+ *
6
+ * Every file read through the virtual filesystem is recorded with token
7
+ * counts, compression outcome, timing, and a `source_uri` that pins
8
+ * the content back to its upstream origin.
9
+ *
10
+ * @example List recent reads
11
+ * ```ts
12
+ * const page = await airstore.accessLog.list("ws-abc", {
13
+ * start: Date.now() - 3600_000, // last hour
14
+ * limit: 50,
15
+ * });
16
+ * for (const r of page.reads) {
17
+ * console.log(r.source_uri, r.original_tokens, "->", r.compressed_tokens);
18
+ * }
19
+ * ```
20
+ *
21
+ * @example Get a summary
22
+ * ```ts
23
+ * const s = await airstore.accessLog.summary("ws-abc", {
24
+ * start: Date.now() - 86400_000,
25
+ * });
26
+ * console.log(`${s.total_reads} reads, ${s.compression_ratio} ratio`);
27
+ * ```
28
+ *
29
+ * @example Replay a read by source URI
30
+ * ```ts
31
+ * const content = await airstore.accessLog.read("ws-abc", "github://abc123");
32
+ * ```
33
+ */
34
+ export declare class AccessLog {
35
+ private readonly client;
36
+ constructor(client: CoreClient);
37
+ /**
38
+ * List access log reads for a workspace.
39
+ *
40
+ * Supports cursor-based pagination and optional time-window filtering.
41
+ *
42
+ * @param workspaceId - Workspace external ID (UUID).
43
+ * @param params - Filtering and pagination options.
44
+ * @param options - Per-request overrides.
45
+ */
46
+ list(workspaceId: string, params?: AccessLogListParams, options?: RequestOptions): Promise<AccessLogListResponse>;
47
+ /**
48
+ * Get an aggregated summary of access log reads.
49
+ *
50
+ * Returns totals, compression ratio, per-integration breakdown,
51
+ * outcome distribution, and top paths by token consumption.
52
+ *
53
+ * @param workspaceId - Workspace external ID (UUID).
54
+ * @param params - Time window and session options.
55
+ * @param options - Per-request overrides.
56
+ */
57
+ summary(workspaceId: string, params?: AccessLogSummaryParams, options?: RequestOptions): Promise<AccessLogSummary>;
58
+ /**
59
+ * Read content directly from an upstream source using a `source_uri`.
60
+ *
61
+ * This bypasses the source-view/query layer entirely. Even if the
62
+ * materialized view has changed, the source_uri lets you pull the
63
+ * exact content that was originally read.
64
+ *
65
+ * @param workspaceId - Workspace external ID (UUID).
66
+ * @param sourceUri - Source URI from an access log entry (e.g., "github://abc123").
67
+ * @param options - Per-request overrides.
68
+ * @returns The raw content as an ArrayBuffer.
69
+ */
70
+ read(workspaceId: string, sourceUri: string, options?: RequestOptions): Promise<ArrayBuffer>;
71
+ }
72
+ //# sourceMappingURL=access-log.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"access-log.d.ts","sourceRoot":"","sources":["../../../src/resources/access-log.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAC/D,OAAO,KAAK,EACV,mBAAmB,EACnB,qBAAqB,EACrB,sBAAsB,EACtB,gBAAgB,EACjB,MAAM,wBAAwB,CAAC;AAEhC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,qBAAa,SAAS;IACR,OAAO,CAAC,QAAQ,CAAC,MAAM;gBAAN,MAAM,EAAE,UAAU;IAE/C;;;;;;;;OAQG;IACG,IAAI,CACR,WAAW,EAAE,MAAM,EACnB,MAAM,CAAC,EAAE,mBAAmB,EAC5B,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,qBAAqB,CAAC;IAiBjC;;;;;;;;;OASG;IACG,OAAO,CACX,WAAW,EAAE,MAAM,EACnB,MAAM,CAAC,EAAE,sBAAsB,EAC/B,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,gBAAgB,CAAC;IAe5B;;;;;;;;;;;OAWG;IACG,IAAI,CACR,WAAW,EAAE,MAAM,EACnB,SAAS,EAAE,MAAM,EACjB,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,WAAW,CAAC;CAQxB"}
@@ -4,13 +4,13 @@ import type { VirtualFile, TreeListing } from '../types/filesystem.js';
4
4
  * Read-only access to the workspace virtual filesystem.
5
5
  *
6
6
  * The filesystem provides a unified view of all connected integrations,
7
- * smart folders, tools, and user-uploaded files.
7
+ * source views, tools, and user-uploaded files.
8
8
  *
9
9
  * @example
10
10
  * ```ts
11
11
  * const listing = await airstore.fs.list("ws_abc", { path: "/" });
12
12
  * const content = await airstore.fs.read("ws_abc", {
13
- * path: "/Sources/gmail/inbox/email.txt",
13
+ * path: "/sources/gmail/inbox/email.txt",
14
14
  * });
15
15
  * ```
16
16
  */
@@ -37,6 +37,7 @@ export declare class Filesystem {
37
37
  * @param opts.path - File path to read.
38
38
  * @param opts.offset - Byte offset to start reading from.
39
39
  * @param opts.length - Number of bytes to read.
40
+ * @param opts.compression - Compression strategy: 'strip', 'distill', or 'chain'. Omit to disable.
40
41
  * @param options - Per-request overrides.
41
42
  * @returns File contents as a string.
42
43
  *
@@ -46,6 +47,7 @@ export declare class Filesystem {
46
47
  path: string;
47
48
  offset?: number;
48
49
  length?: number;
50
+ compression?: 'strip' | 'distill' | 'chain';
49
51
  }, options?: RequestOptions): Promise<string>;
50
52
  /**
51
53
  * Get a directory tree for efficient prefetching.
@@ -1 +1 @@
1
- {"version":3,"file":"filesystem.d.ts","sourceRoot":"","sources":["../../../src/resources/filesystem.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAC/D,OAAO,KAAK,EAAE,WAAW,EAAoB,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAEzF;;;;;;;;;;;;;GAaG;AACH,qBAAa,UAAU;IACT,OAAO,CAAC,QAAQ,CAAC,MAAM;gBAAN,MAAM,EAAE,UAAU;IAE/C;;;;;;;;OAQG;IACG,IAAI,CACR,WAAW,EAAE,MAAM,EACnB,IAAI,GAAE;QAAE,IAAI,CAAC,EAAE,MAAM,CAAA;KAAO,EAC5B,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC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AM,EACnB,IAAI,EAAE;QACJ,IAAI,EAAE,MAAM,CAAC;QACb,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,WAAW,CAAC,EAAE,OAAO,GAAG,SAAS,GAAG,OAAO,CAAC;KAC7C,EACD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,MAAM,CAAC;IAclB;;;;;;;;;;;;;OAaG;IACG,IAAI,CACR,WAAW,EAAE,MAAM,EACnB,IAAI,GAAE;QAAE,IAAI,CAAC,EAAE,MAAM,CAAC;QAAC,OAAO,CAAC,EAAE,MAAM,CAAC;QAAC,iBAAiB,CAAC,EAAE,MAAM,CAAA;KAAO,EAC1E,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,WAAW,CAAC;IAiBvB;;;;;;;;;OASG;IACG,IAAI,CACR,WAAW,EAAE,MAAM,EACnB,IAAI,EAAE,MAAM,EACZ,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,WAAW,CAAC;CASxB"}
@@ -1,6 +1,6 @@
1
1
  export { Workspaces } from './workspaces.js';
2
2
  export { Connections } from './connections.js';
3
- export { SmartFolders } from './smart-folders.js';
3
+ export { Views } from './views.js';
4
4
  export { Tokens } from './tokens.js';
5
5
  export { Members } from './members.js';
6
6
  export { OAuth } from './oauth.js';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/resources/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AACnC,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/resources/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AACnC,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AACnC,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC"}
@@ -0,0 +1,66 @@
1
+ import type { CoreClient, RequestOptions } from '../client.js';
2
+ import type { SourceView, ViewCreateParams, ViewUpdateParams, SyncResult, IntegrationResource } from '../types/views.js';
3
+ /**
4
+ * Manage source views within a workspace.
5
+ *
6
+ * Source views are materialized queries over connected data sources.
7
+ * In **smart** mode the query is LLM-inferred from natural language guidance;
8
+ * in **query** mode the query is built from a structured per-integration filter.
9
+ *
10
+ * @example Smart mode (LLM-inferred)
11
+ * ```ts
12
+ * await airstore.views.create("ws_abc", {
13
+ * integration: "gmail",
14
+ * name: "Recent Emails",
15
+ * guidance: "Last 7 days of emails",
16
+ * });
17
+ * ```
18
+ *
19
+ * @example Query mode (structured filter)
20
+ * ```ts
21
+ * await airstore.views.create("ws_abc", {
22
+ * integration: "gmail",
23
+ * name: "Unread from boss",
24
+ * filter: { from: "boss@company.com", is_unread: true },
25
+ * });
26
+ * ```
27
+ */
28
+ export declare class Views {
29
+ private readonly client;
30
+ constructor(client: CoreClient);
31
+ /**
32
+ * Create a new source view.
33
+ *
34
+ * If `filter` is provided the view is created in query mode;
35
+ * otherwise it uses smart mode with LLM inference from `guidance`.
36
+ */
37
+ create(workspaceId: string, params: ViewCreateParams, options?: RequestOptions): Promise<SourceView>;
38
+ /** List all source views in a workspace. */
39
+ list(workspaceId: string, options?: RequestOptions): Promise<SourceView[]>;
40
+ /** Retrieve a source view by its virtual filesystem path. */
41
+ retrieve(workspaceId: string, viewPath: string, options?: RequestOptions): Promise<SourceView>;
42
+ /** Update an existing source view. */
43
+ update(workspaceId: string, viewId: string, params: ViewUpdateParams, options?: RequestOptions): Promise<SourceView>;
44
+ /** Delete a source view. */
45
+ del(workspaceId: string, viewId: string, options?: RequestOptions): Promise<void>;
46
+ /**
47
+ * Sync a source view — re-execute its query and refresh cached metadata.
48
+ *
49
+ * Idempotent and safe to call repeatedly. Returns the count of total
50
+ * and newly discovered results.
51
+ */
52
+ sync(workspaceId: string, viewId: string, options?: RequestOptions): Promise<SyncResult>;
53
+ /**
54
+ * List available resources for an integration (repos, channels, etc.).
55
+ *
56
+ * Used to populate filter dropdowns with real data from connected sources.
57
+ *
58
+ * @example
59
+ * ```ts
60
+ * const repos = await airstore.views.listResources("ws_abc", "github");
61
+ * // [{ id: "owner/repo", name: "owner/repo" }, ...]
62
+ * ```
63
+ */
64
+ listResources(workspaceId: string, integration: string, resourceType?: string, options?: RequestOptions): Promise<IntegrationResource[]>;
65
+ }
66
+ //# sourceMappingURL=views.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"views.d.ts","sourceRoot":"","sources":["../../../src/resources/views.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAC/D,OAAO,KAAK,EACV,UAAU,EACV,gBAAgB,EAChB,gBAAgB,EAChB,UAAU,EACV,mBAAmB,EACpB,MAAM,mBAAmB,CAAC;AAE3B;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,qBAAa,KAAK;IACJ,OAAO,CAAC,QAAQ,CAAC,MAAM;gBAAN,MAAM,EAAE,UAAU;IAE/C;;;;;OAKG;IACG,MAAM,CACV,WAAW,EAAE,MAAM,EACnB,MAAM,EAAE,gBAAgB,EACxB,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC;IAmBtB,4CAA4C;IACtC,IAAI,CACR,WAAW,EAAE,MAAM,EACnB,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,EAAE,CAAC;IAWxB,6DAA6D;IACvD,QAAQ,CACZ,WAAW,EAAE,MAAM,EACnB,QAAQ,EAAE,MAAM,EAChB,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC;IAUtB,sCAAsC;IAChC,MAAM,CACV,WAAW,EAAE,MAAM,EACnB,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,gBAAgB,EACxB,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC;IAetB,4BAA4B;IACtB,GAAG,CACP,WAAW,EAAE,MAAM,EACnB,MAAM,EAAE,MAAM,EACd,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,IAAI,CAAC;IAUhB;;;;;OAKG;IACG,IAAI,CACR,WAAW,EAAE,MAAM,EACnB,MAAM,EAAE,MAAM,EACd,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC;IAUtB;;;;;;;;;;OAUG;IACG,aAAa,CACjB,WAAW,EAAE,MAAM,EACnB,WAAW,EAAE,MAAM,EACnB,YAAY,CAAC,EAAE,MAAM,EACrB,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,mBAAmB,EAAE,CAAC;CAalC"}
@@ -3,7 +3,7 @@ import type { Workspace, WorkspaceCreateParams } from '../types/workspaces.js';
3
3
  /**
4
4
  * Manage workspaces.
5
5
  *
6
- * Workspaces are the top-level container for connections, smart folders,
6
+ * Workspaces are the top-level container for connections, source views,
7
7
  * members, and the virtual filesystem. When using an organization token,
8
8
  * workspaces are automatically scoped to the token's tenant.
9
9
  *
@@ -0,0 +1,123 @@
1
+ /**
2
+ * A single read recorded in the access log.
3
+ */
4
+ export interface AccessLogRead {
5
+ /** Client-generated event ID (for dedupe/retry safety). */
6
+ event_id?: string;
7
+ /** Unix millisecond timestamp of the read. */
8
+ ts: number;
9
+ /** Workspace external ID. */
10
+ workspace_id: string;
11
+ /** Session ID (defaults to workspace ID). */
12
+ session_id: string;
13
+ /** Virtual filesystem path that was read. */
14
+ path: string;
15
+ /** Where read data came from ("backend_rpc", "open_content", "content_cache", etc.). */
16
+ cache_source?: string;
17
+ /** Requested read offset. */
18
+ offset?: number;
19
+ /** Requested bytes in this read call. */
20
+ requested_bytes?: number;
21
+ /** Returned bytes in this read call. */
22
+ read_bytes?: number;
23
+ /** End-to-end read latency in milliseconds. */
24
+ latency_ms?: number;
25
+ /** Mount identifier for client-emitted events. */
26
+ mount_id?: string;
27
+ /** Event origin (e.g., "fuse"). */
28
+ access_origin?: string;
29
+ /** Integration that served the content (e.g., "github", "gmail"). */
30
+ integration: string;
31
+ /** Canonical upstream reference (e.g., "github://abc123", "gmail://msg-id"). */
32
+ source_uri: string;
33
+ /** Query path within the integration. */
34
+ query_path?: string;
35
+ /** Provider-specific result ID. */
36
+ result_id?: string;
37
+ /** Original content size in bytes. */
38
+ original_bytes: number;
39
+ /** Compressed content size in bytes. */
40
+ compressed_bytes: number;
41
+ /** Original token count. */
42
+ original_tokens: number;
43
+ /** Compressed token count. */
44
+ compressed_tokens: number;
45
+ /** Compression strategy used (e.g., "strip", "distill", "chain"). */
46
+ strategy: string;
47
+ /** Outcome ("compressed", "cache_hit", "passthrough", "timeout", "error", "skipped"). */
48
+ outcome: string;
49
+ /** Time spent on compression in milliseconds. */
50
+ compression_ms: number;
51
+ /** Error message, if any. */
52
+ error_msg?: string;
53
+ }
54
+ /**
55
+ * Parameters for listing access log reads.
56
+ */
57
+ export interface AccessLogListParams {
58
+ /** Start of time window (unix ms). */
59
+ start?: number;
60
+ /** End of time window (unix ms). */
61
+ end?: number;
62
+ /** Pagination cursor (S2 sequence number). */
63
+ cursor?: string;
64
+ /** Maximum reads to return (1-1000, default 100). */
65
+ limit?: number;
66
+ /** Custom session ID. Defaults to workspace ID. */
67
+ session?: string;
68
+ }
69
+ /**
70
+ * Response from listing access log reads.
71
+ */
72
+ export interface AccessLogListResponse {
73
+ /** The reads in this page. */
74
+ reads: AccessLogRead[];
75
+ /** Cursor for the next page. */
76
+ next_cursor: string;
77
+ /** Whether more reads exist beyond this page. */
78
+ has_more: boolean;
79
+ }
80
+ /**
81
+ * Per-integration breakdown.
82
+ */
83
+ export interface IntegrationStats {
84
+ events: number;
85
+ original_tokens: number;
86
+ compressed_tokens: number;
87
+ }
88
+ /**
89
+ * A path ranked by total token consumption.
90
+ */
91
+ export interface PathStats {
92
+ path: string;
93
+ source_uri: string;
94
+ events: number;
95
+ total_tokens: number;
96
+ }
97
+ /**
98
+ * Parameters for the access log summary.
99
+ */
100
+ export interface AccessLogSummaryParams {
101
+ /** Start of time window (unix ms). */
102
+ start?: number;
103
+ /** End of time window (unix ms). */
104
+ end?: number;
105
+ /** Custom session ID. Defaults to workspace ID. */
106
+ session?: string;
107
+ }
108
+ /**
109
+ * Aggregated summary of access log reads within a time window.
110
+ */
111
+ export interface AccessLogSummary {
112
+ total_reads: number;
113
+ backend_reads: number;
114
+ cache_served_reads: number;
115
+ total_original_tokens: number;
116
+ total_compressed_tokens: number;
117
+ compression_ratio: number;
118
+ by_integration: Record<string, IntegrationStats>;
119
+ by_outcome: Record<string, number>;
120
+ by_cache_source: Record<string, number>;
121
+ top_paths: PathStats[];
122
+ }
123
+ //# sourceMappingURL=access-log.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"access-log.d.ts","sourceRoot":"","sources":["../../../src/types/access-log.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B,2DAA2D;IAC3D,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,8CAA8C;IAC9C,EAAE,EAAE,MAAM,CAAC;IACX,6BAA6B;IAC7B,YAAY,EAAE,MAAM,CAAC;IACrB,6CAA6C;IAC7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2
  export * from './workspaces.js';
3
3
  export * from './connections.js';
4
- export * from './smart-folders.js';
4
+ export * from './views.js';
5
5
  export * from './tokens.js';
6
6
  export * from './members.js';
7
7
  export * from './oauth.js';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AACnC,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AACjC,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC"}
@@ -22,6 +22,6 @@ export interface PaginatedList<T> {
22
22
  export type IntegrationType = 'gmail' | 'gdrive' | 'github' | 'notion' | 'linear' | 'slack' | 'posthog';
23
23
  /** Workspace member roles. */
24
24
  export type MemberRole = 'admin' | 'member' | 'viewer';
25
- /** Smart folder output format. */
25
+ /** Source view output format. */
26
26
  export type OutputFormat = 'folder' | 'file';
27
27
  //# sourceMappingURL=shared.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"shared.d.ts","sourceRoot":"","sources":["../../../src/types/shared.ts"],"names":[],"mappings":"AAAA,sEAAsE;AACtE,YAAY,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAEjE;;;;;GAKG;AACH,MAAM,WAAW,aAAa,CAAC,CAAC;IAC9B,iCAAiC;IACjC,IAAI,EAAE,CAAC,EAAE,CAAC;IACV,yDAAyD;IACzD,OAAO,EAAE,OAAO,CAAC;IACjB,iEAAiE;IACjE,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED;;;;GAIG;AACH,MAAM,MAAM,eAAe,GACvB,OAAO,GACP,QAAQ,GACR,QAAQ,GACR,QAAQ,GACR,QAAQ,GACR,OAAO,GACP,SAAS,CAAC;AAEd,8BAA8B;AAC9B,MAAM,MAAM,UAAU,GAAG,OAAO,GAAG,QAAQ,GAAG,QAAQ,CAAC;AAEvD,kCAAkC;AAClC,MAAM,MAAM,YAAY,GAAG,QAAQ,GAAG,MAAM,CAAC"}
1
+ {"version":3,"file":"shared.d.ts","sourceRoot":"","sources":["../../../src/types/shared.ts"],"names":[],"mappings":"AAAA,sEAAsE;AACtE,YAAY,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAEjE;;;;;GAKG;AACH,MAAM,WAAW,aAAa,CAAC,CAAC;IAC9B,iCAAiC;IACjC,IAAI,EAAE,CAAC,EAAE,CAAC;IACV,yDAAyD;IACzD,OAAO,EAAE,OAAO,CAAC;IACjB,iEAAiE;IACjE,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED;;;;GAIG;AACH,MAAM,MAAM,eAAe,GACvB,OAAO,GACP,QAAQ,GACR,QAAQ,GACR,QAAQ,GACR,QAAQ,GACR,OAAO,GACP,SAAS,CAAC;AAEd,8BAA8B;AAC9B,MAAM,MAAM,UAAU,GAAG,OAAO,GAAG,QAAQ,GAAG,QAAQ,CAAC;AAEvD,iCAAiC;AACjC,MAAM,MAAM,YAAY,GAAG,QAAQ,GAAG,MAAM,CAAC"}