@stack0/sdk 0.5.11 → 0.5.14

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 (43) hide show
  1. package/dist/cdn/index.d.mts +62 -3
  2. package/dist/cdn/index.d.ts +62 -3
  3. package/dist/cdn/index.js +16 -0
  4. package/dist/cdn/index.js.map +1 -1
  5. package/dist/cdn/index.mjs +16 -0
  6. package/dist/cdn/index.mjs.map +1 -1
  7. package/dist/crawl/index.d.mts +206 -0
  8. package/dist/crawl/index.d.ts +206 -0
  9. package/dist/crawl/index.js +179 -0
  10. package/dist/crawl/index.js.map +1 -0
  11. package/dist/crawl/index.mjs +176 -0
  12. package/dist/crawl/index.mjs.map +1 -0
  13. package/dist/documents/index.d.mts +84 -0
  14. package/dist/documents/index.d.ts +84 -0
  15. package/dist/documents/index.js +144 -0
  16. package/dist/documents/index.js.map +1 -0
  17. package/dist/documents/index.mjs +142 -0
  18. package/dist/documents/index.mjs.map +1 -0
  19. package/dist/extraction/index.d.mts +1 -1
  20. package/dist/extraction/index.d.ts +1 -1
  21. package/dist/index.d.mts +40 -410
  22. package/dist/index.d.ts +40 -410
  23. package/dist/index.js +323 -271
  24. package/dist/index.js.map +1 -1
  25. package/dist/index.mjs +319 -268
  26. package/dist/index.mjs.map +1 -1
  27. package/dist/mail/index.d.mts +35 -2
  28. package/dist/mail/index.d.ts +35 -2
  29. package/dist/mail/index.js +46 -0
  30. package/dist/mail/index.js.map +1 -1
  31. package/dist/mail/index.mjs +46 -0
  32. package/dist/mail/index.mjs.map +1 -1
  33. package/dist/map/index.d.mts +93 -0
  34. package/dist/map/index.d.ts +93 -0
  35. package/dist/map/index.js +151 -0
  36. package/dist/map/index.js.map +1 -0
  37. package/dist/map/index.mjs +148 -0
  38. package/dist/map/index.mjs.map +1 -0
  39. package/dist/screenshots/index.d.mts +1 -1
  40. package/dist/screenshots/index.d.ts +1 -1
  41. package/dist/{shared-types-CjKSP5Xc.d.mts → shared-types-DKqZbnMq.d.mts} +1 -1
  42. package/dist/{shared-types-CjKSP5Xc.d.ts → shared-types-DKqZbnMq.d.ts} +1 -1
  43. package/package.json +21 -4
@@ -0,0 +1,142 @@
1
+ // src/lib/http-client.ts
2
+ var HttpClient = class {
3
+ apiKey;
4
+ baseUrl;
5
+ constructor(config) {
6
+ this.apiKey = config.apiKey;
7
+ this.baseUrl = config.baseUrl || "https://api.stack0.dev/v1";
8
+ }
9
+ getHeaders(includeContentType = true) {
10
+ const headers = {
11
+ Authorization: `Bearer ${this.apiKey}`
12
+ };
13
+ if (includeContentType) {
14
+ headers["Content-Type"] = "application/json";
15
+ }
16
+ return headers;
17
+ }
18
+ async request(method, path, body) {
19
+ const url = `${this.baseUrl}${path}`;
20
+ const bodyString = body === void 0 ? void 0 : JSON.stringify(body);
21
+ const hasBody = bodyString !== void 0;
22
+ try {
23
+ const response = await fetch(url, {
24
+ method,
25
+ headers: this.getHeaders(hasBody),
26
+ body: hasBody ? bodyString : void 0
27
+ });
28
+ if (!response.ok) {
29
+ await this.handleErrorResponse(response);
30
+ }
31
+ const data = await response.json();
32
+ return data;
33
+ } catch (error) {
34
+ if (error instanceof Error && "statusCode" in error) {
35
+ throw error;
36
+ }
37
+ throw this.createError("Network error", error);
38
+ }
39
+ }
40
+ async handleErrorResponse(response) {
41
+ let errorBody;
42
+ try {
43
+ errorBody = await response.json();
44
+ } catch {
45
+ errorBody = { message: response.statusText };
46
+ }
47
+ const error = new Error(errorBody?.message || `HTTP ${response.status}`);
48
+ error.statusCode = response.status;
49
+ error.code = errorBody?.code ?? "";
50
+ error.response = errorBody;
51
+ throw error;
52
+ }
53
+ createError(message, cause) {
54
+ const error = new Error(message);
55
+ error.cause = cause;
56
+ return error;
57
+ }
58
+ async get(path) {
59
+ return this.request("GET", path);
60
+ }
61
+ async post(path, body) {
62
+ return this.request("POST", path, body);
63
+ }
64
+ async put(path, body) {
65
+ return this.request("PUT", path, body);
66
+ }
67
+ async delete(path) {
68
+ return this.request("DELETE", path);
69
+ }
70
+ async deleteWithBody(path, body) {
71
+ return this.request("DELETE", path, body);
72
+ }
73
+ async patch(path, body) {
74
+ return this.request("PATCH", path, body);
75
+ }
76
+ };
77
+
78
+ // src/documents/client.ts
79
+ var Documents = class {
80
+ http;
81
+ constructor(config) {
82
+ this.http = new HttpClient(config);
83
+ }
84
+ /**
85
+ * Parse a document from a URL or a previously-uploaded file URL.
86
+ *
87
+ * @example
88
+ * ```typescript
89
+ * const { id } = await stack0.documents.parse({
90
+ * url: 'https://example.com/whitepaper.pdf',
91
+ * });
92
+ * ```
93
+ */
94
+ async parse(request) {
95
+ return this.http.post("/webdata/documents", request);
96
+ }
97
+ async get(request) {
98
+ const params = new URLSearchParams();
99
+ if (request.environment) params.set("environment", request.environment);
100
+ if (request.projectId) params.set("projectId", request.projectId);
101
+ const q = params.toString();
102
+ return this.http.get(`/webdata/documents/${request.id}${q ? `?${q}` : ""}`);
103
+ }
104
+ async list(request = {}) {
105
+ const params = new URLSearchParams();
106
+ if (request.environment) params.set("environment", request.environment);
107
+ if (request.projectId) params.set("projectId", request.projectId);
108
+ if (request.status) params.set("status", request.status);
109
+ if (request.limit) params.set("limit", String(request.limit));
110
+ if (request.cursor) params.set("cursor", request.cursor);
111
+ const q = params.toString();
112
+ return this.http.get(`/webdata/documents${q ? `?${q}` : ""}`);
113
+ }
114
+ async delete(request) {
115
+ const params = new URLSearchParams();
116
+ if (request.environment) params.set("environment", request.environment);
117
+ if (request.projectId) params.set("projectId", request.projectId);
118
+ const q = params.toString();
119
+ return this.http.deleteWithBody(
120
+ `/webdata/documents/${request.id}${q ? `?${q}` : ""}`,
121
+ request
122
+ );
123
+ }
124
+ async parseAndWait(request, options = {}) {
125
+ const { pollInterval = 2e3, timeout = 18e4 } = options;
126
+ const { id } = await this.parse(request);
127
+ const start = Date.now();
128
+ while (Date.now() - start < timeout) {
129
+ const doc = await this.get({ id, environment: request.environment, projectId: request.projectId });
130
+ if (doc.status === "completed" || doc.status === "failed") {
131
+ if (doc.status === "failed") throw new Error(doc.error || "Document parsing failed");
132
+ return doc;
133
+ }
134
+ await new Promise((r) => setTimeout(r, pollInterval));
135
+ }
136
+ throw new Error("Document parsing timed out");
137
+ }
138
+ };
139
+
140
+ export { Documents };
141
+ //# sourceMappingURL=index.mjs.map
142
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/lib/http-client.ts","../../src/documents/client.ts"],"names":[],"mappings":";AAUO,IAAM,aAAN,MAAiB;AAAA,EACd,MAAA;AAAA,EACA,OAAA;AAAA,EAER,YAAY,MAAA,EAA0B;AACpC,IAAA,IAAA,CAAK,SAAS,MAAA,CAAO,MAAA;AACrB,IAAA,IAAA,CAAK,OAAA,GAAU,OAAO,OAAA,IAAW,2BAAA;AAAA,EACnC;AAAA,EAEQ,UAAA,CAAW,qBAAqB,IAAA,EAA8B;AACpE,IAAA,MAAM,OAAA,GAAkC;AAAA,MACtC,aAAA,EAAe,CAAA,OAAA,EAAU,IAAA,CAAK,MAAM,CAAA;AAAA,KACtC;AACA,IAAA,IAAI,kBAAA,EAAoB;AACtB,MAAA,OAAA,CAAQ,cAAc,CAAA,GAAI,kBAAA;AAAA,IAC5B;AACA,IAAA,OAAO,OAAA;AAAA,EACT;AAAA,EAEA,MAAM,OAAA,CAAW,MAAA,EAAgB,IAAA,EAAc,IAAA,EAA4B;AACzE,IAAA,MAAM,GAAA,GAAM,CAAA,EAAG,IAAA,CAAK,OAAO,GAAG,IAAI,CAAA,CAAA;AAClC,IAAA,MAAM,aAAa,IAAA,KAAS,MAAA,GAAY,MAAA,GAAY,IAAA,CAAK,UAAU,IAAI,CAAA;AACvE,IAAA,MAAM,UAAU,UAAA,KAAe,MAAA;AAE/B,IAAA,IAAI;AACF,MAAA,MAAM,QAAA,GAAW,MAAM,KAAA,CAAM,GAAA,EAAK;AAAA,QAChC,MAAA;AAAA,QACA,OAAA,EAAS,IAAA,CAAK,UAAA,CAAW,OAAO,C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F,QAAA,OAAO,GAAA;AAAA,MACT;AACA,MAAA,MAAM,IAAI,OAAA,CAAQ,CAAC,MAAM,UAAA,CAAW,CAAA,EAAG,YAAY,CAAC,CAAA;AAAA,IACtD;AACA,IAAA,MAAM,IAAI,MAAM,4BAA4B,CAAA;AAAA,EAC9C;AACF","file":"index.mjs","sourcesContent":["/**\n * HTTP client for Stack0 API\n * Handles authentication, request/response formatting, and error handling\n */\n\nexport interface HttpClientConfig {\n apiKey: string;\n baseUrl?: string;\n}\n\nexport class HttpClient {\n private apiKey: string;\n private baseUrl: string;\n\n constructor(config: HttpClientConfig) {\n this.apiKey = config.apiKey;\n this.baseUrl = config.baseUrl || \"https://api.stack0.dev/v1\";\n }\n\n private getHeaders(includeContentType = true): Record<string, string> {\n const headers: Record<string, string> = {\n Authorization: `Bearer ${this.apiKey}`,\n };\n if (includeContentType) {\n headers[\"Content-Type\"] = \"application/json\";\n }\n return headers;\n }\n\n async request<T>(method: string, path: string, body?: unknown): Promise<T> {\n const url = `${this.baseUrl}${path}`;\n const bodyString = body === undefined ? undefined : JSON.stringify(body);\n const hasBody = bodyString !== undefined;\n\n try {\n const response = await fetch(url, {\n method,\n headers: this.getHeaders(hasBody),\n body: hasBody ? bodyString : undefined,\n });\n\n if (!response.ok) {\n await this.handleErrorResponse(response);\n }\n\n const data = await response.json();\n return data as T;\n } catch (error) {\n if (error instanceof Error && \"statusCode\" in error) {\n throw error; // Re-throw our custom errors\n }\n throw this.createError(\"Network error\", error);\n }\n }\n\n private async handleErrorResponse(response: Response): Promise<never> {\n let errorBody: { message: string } | undefined;\n try {\n errorBody = (await response.json()) as { message: string };\n } catch {\n errorBody = { message: response.statusText };\n }\n\n const error = new Error(errorBody?.message || `HTTP ${response.status}`) as Error & {\n statusCode: number;\n code: string;\n response: unknown;\n };\n error.statusCode = response.status;\n error.code = (errorBody as unknown as { code: string } | undefined)?.code ?? \"\";\n error.response = errorBody;\n throw error;\n }\n\n private createError(message: string, cause?: unknown): Error {\n const error = new Error(message) as Error & { cause: unknown };\n error.cause = cause;\n return error;\n }\n\n async get<T>(path: string): Promise<T> {\n return this.request<T>(\"GET\", path);\n }\n\n async post<T>(path: string, body: unknown): Promise<T> {\n return this.request<T>(\"POST\", path, body);\n }\n\n async put<T>(path: string, body: unknown): Promise<T> {\n return this.request<T>(\"PUT\", path, body);\n }\n\n async delete<T>(path: string): Promise<T> {\n return this.request<T>(\"DELETE\", path);\n }\n\n async deleteWithBody<T>(path: string, body: unknown): Promise<T> {\n return this.request<T>(\"DELETE\", path, body);\n }\n\n async patch<T>(path: string, body: unknown): Promise<T> {\n return this.request<T>(\"PATCH\", path, body);\n }\n}\n","/**\n * Stack0 Documents Client\n * Parse PDF and DOCX documents into clean markdown.\n */\n\nimport { HttpClient, type HttpClientConfig } from \"../lib/http-client\";\nimport type {\n CreateDocumentRequest,\n CreateDocumentResponse,\n GetDocumentRequest,\n ListDocumentsRequest,\n ListDocumentsResponse,\n WebdataDocument,\n} from \"./types\";\n\nexport class Documents {\n private http: HttpClient;\n\n constructor(config: HttpClientConfig) {\n this.http = new HttpClient(config);\n }\n\n /**\n * Parse a document from a URL or a previously-uploaded file URL.\n *\n * @example\n * ```typescript\n * const { id } = await stack0.documents.parse({\n * url: 'https://example.com/whitepaper.pdf',\n * });\n * ```\n */\n async parse(request: CreateDocumentRequest): Promise<CreateDocumentResponse> {\n return this.http.post<CreateDocumentResponse>(\"/webdata/documents\", request);\n }\n\n async get(request: GetDocumentRequest): Promise<WebdataDocument> {\n const params = new URLSearchParams();\n if (request.environment) params.set(\"environment\", request.environment);\n if (request.projectId) params.set(\"projectId\", request.projectId);\n const q = params.toString();\n return this.http.get<WebdataDocument>(`/webdata/documents/${request.id}${q ? `?${q}` : \"\"}`);\n }\n\n async list(request: ListDocumentsRequest = {}): Promise<ListDocumentsResponse> {\n const params = new URLSearchParams();\n if (request.environment) params.set(\"environment\", request.environment);\n if (request.projectId) params.set(\"projectId\", request.projectId);\n if (request.status) params.set(\"status\", request.status);\n if (request.limit) params.set(\"limit\", String(request.limit));\n if (request.cursor) params.set(\"cursor\", request.cursor);\n const q = params.toString();\n return this.http.get<ListDocumentsResponse>(`/webdata/documents${q ? `?${q}` : \"\"}`);\n }\n\n async delete(request: GetDocumentRequest): Promise<{ success: boolean }> {\n const params = new URLSearchParams();\n if (request.environment) params.set(\"environment\", request.environment);\n if (request.projectId) params.set(\"projectId\", request.projectId);\n const q = params.toString();\n return this.http.deleteWithBody<{ success: boolean }>(\n `/webdata/documents/${request.id}${q ? `?${q}` : \"\"}`,\n request,\n );\n }\n\n async parseAndWait(\n request: CreateDocumentRequest,\n options: { pollInterval?: number; timeout?: number } = {},\n ): Promise<WebdataDocument> {\n const { pollInterval = 2000, timeout = 180_000 } = options;\n const { id } = await this.parse(request);\n const start = Date.now();\n while (Date.now() - start < timeout) {\n const doc = await this.get({ id, environment: request.environment, projectId: request.projectId });\n if (doc.status === \"completed\" || doc.status === \"failed\") {\n if (doc.status === \"failed\") throw new Error(doc.error || \"Document parsing failed\");\n return doc;\n }\n await new Promise((r) => setTimeout(r, pollInterval));\n }\n throw new Error(\"Document parsing timed out\");\n }\n}\n"]}
@@ -1,5 +1,5 @@
1
1
  import { a as HttpClientConfig } from '../http-client-Cgie_Rv6.mjs';
2
- import { E as Environment, B as BatchJobStatus, b as ScheduleFrequency, C as CreateBatchResponse, G as GetBatchJobRequest, L as ListBatchJobsRequest, e as CreateScheduleResponse, c as GetScheduleRequest, d as ListSchedulesRequest } from '../shared-types-CjKSP5Xc.mjs';
2
+ import { E as Environment, B as BatchJobStatus, S as ScheduleFrequency, C as CreateBatchResponse, G as GetBatchJobRequest, L as ListBatchJobsRequest, a as CreateScheduleResponse, b as GetScheduleRequest, c as ListSchedulesRequest } from '../shared-types-DKqZbnMq.mjs';
3
3
 
4
4
  /**
5
5
  * Type definitions for Stack0 AI Extraction API
@@ -1,5 +1,5 @@
1
1
  import { a as HttpClientConfig } from '../http-client-Cgie_Rv6.js';
2
- import { E as Environment, B as BatchJobStatus, b as ScheduleFrequency, C as CreateBatchResponse, G as GetBatchJobRequest, L as ListBatchJobsRequest, e as CreateScheduleResponse, c as GetScheduleRequest, d as ListSchedulesRequest } from '../shared-types-CjKSP5Xc.js';
2
+ import { E as Environment, B as BatchJobStatus, S as ScheduleFrequency, C as CreateBatchResponse, G as GetBatchJobRequest, L as ListBatchJobsRequest, a as CreateScheduleResponse, b as GetScheduleRequest, c as ListSchedulesRequest } from '../shared-types-DKqZbnMq.js';
3
3
 
4
4
  /**
5
5
  * Type definitions for Stack0 AI Extraction API
package/dist/index.d.mts CHANGED
@@ -7,9 +7,14 @@ export { BatchScreenshotJob, Clip, CreateBatchScreenshotsRequest, CreateScreensh
7
7
  import { Extraction } from './extraction/index.mjs';
8
8
  export { BatchExtractionJob, CreateBatchExtractionsRequest, CreateExtractionRequest, CreateExtractionResponse, CreateExtractionScheduleRequest, DailyUsageItem, ExtractionBatchJobsResponse, ExtractionMode, ExtractionResult, ExtractionSchedule, ExtractionSchedulesResponse, ExtractionStatus, ExtractionUsage, GetDailyUsageResponse, GetExtractionRequest, GetUsageRequest, ListExtractionsRequest, ListExtractionsResponse, PageMetadata, UpdateExtractionScheduleRequest } from './extraction/index.mjs';
9
9
  import { Webdata } from './webdata/index.mjs';
10
+ import { Crawl as Crawl$ } from './crawl/index.mjs';
11
+ export { CancelCrawlRequest, CrawlPage, CrawlStatus, CreateCrawlRequest, CreateCrawlResponse, GetCrawlRequest, ListCrawlPagesRequest, ListCrawlPagesResponse, ListCrawlsRequest, ListCrawlsResponse, ProxyType, ScrapeAction, ScrapeActionType, ScrapeFormat, ScrapeOptions } from './crawl/index.mjs';
12
+ import { Map as Map$ } from './map/index.mjs';
13
+ export { CreateMapRequest, CreateMapResponse, GetMapRequest, ListMapsRequest, ListMapsResponse, MapStatus, WebdataMap } from './map/index.mjs';
14
+ import { Documents } from './documents/index.mjs';
15
+ export { CreateDocumentRequest, CreateDocumentResponse, DocumentStatus, GetDocumentRequest, ListDocumentsRequest, ListDocumentsResponse, WebdataDocument } from './documents/index.mjs';
10
16
  import { H as HttpClient, a as HttpClientConfig } from './http-client-Cgie_Rv6.mjs';
11
- import { E as Environment$1 } from './shared-types-CjKSP5Xc.mjs';
12
- export { B as BatchJobStatus, C as CreateBatchResponse, e as CreateScheduleResponse, G as GetBatchJobRequest, c as GetScheduleRequest, L as ListBatchJobsRequest, d as ListSchedulesRequest, P as PaginatedRequest, a as PaginatedResponse, b as ScheduleFrequency, S as Stack0Error } from './shared-types-CjKSP5Xc.mjs';
17
+ export { B as BatchJobStatus, C as CreateBatchResponse, a as CreateScheduleResponse, G as GetBatchJobRequest, b as GetScheduleRequest, L as ListBatchJobsRequest, c as ListSchedulesRequest, P as PaginatedRequest, d as PaginatedResponse, S as ScheduleFrequency, e as Stack0Error } from './shared-types-DKqZbnMq.mjs';
13
18
 
14
19
  /**
15
20
  * Stack0 Integrations SDK Types
@@ -2176,401 +2181,6 @@ declare class Workflows {
2176
2181
  private convertRunDates;
2177
2182
  }
2178
2183
 
2179
- /**
2180
- * Stack0 Memory SDK Types
2181
- * Type definitions for the Memory API (agent memory management)
2182
- */
2183
-
2184
- type MemoryType = "preference" | "fact" | "event" | "relationship" | "instruction" | "pattern";
2185
- interface AgentSettings {
2186
- autoClassify?: boolean;
2187
- autoExtractEntities?: boolean;
2188
- embeddingModel?: string;
2189
- }
2190
- interface CreateAgentRequest {
2191
- name: string;
2192
- description?: string;
2193
- settings?: AgentSettings;
2194
- environment?: Environment$1;
2195
- }
2196
- interface Agent {
2197
- id: string;
2198
- organizationId: string;
2199
- projectId?: string;
2200
- name: string;
2201
- description?: string;
2202
- metadata?: Record<string, unknown>;
2203
- environment: string;
2204
- settings?: Record<string, unknown>;
2205
- totalMemories: number;
2206
- totalCollections: number;
2207
- totalEntities: number;
2208
- createdAt: string;
2209
- updatedAt?: string;
2210
- }
2211
- interface UpdateAgentRequest {
2212
- name?: string;
2213
- description?: string;
2214
- settings?: AgentSettings;
2215
- environment?: Environment$1;
2216
- }
2217
- interface ListAgentsParams {
2218
- environment?: string;
2219
- }
2220
- interface StoreMemoryRequest {
2221
- agentId: string;
2222
- content: string;
2223
- collectionSlug?: string;
2224
- type?: MemoryType;
2225
- source?: string;
2226
- tags?: string[];
2227
- confidence?: number;
2228
- metadata?: Record<string, unknown>;
2229
- expiresAt?: string;
2230
- }
2231
- interface MemoryResponse {
2232
- id: string;
2233
- agentId: string;
2234
- collectionId: string;
2235
- content: string;
2236
- type?: string;
2237
- tier: string;
2238
- source?: string;
2239
- tags?: string[];
2240
- confidence: number;
2241
- metadata?: Record<string, unknown>;
2242
- expiresAt?: string;
2243
- compactedFrom?: string[];
2244
- hasEmbedding?: boolean;
2245
- createdAt: string;
2246
- updatedAt?: string;
2247
- }
2248
- interface StoreBatchRequest {
2249
- agentId: string;
2250
- memories: Omit<StoreMemoryRequest, "agentId">[];
2251
- }
2252
- interface RecallRequest {
2253
- agentId: string;
2254
- query: string;
2255
- collectionSlug?: string;
2256
- limit?: number;
2257
- types?: string[];
2258
- tiers?: string[];
2259
- minConfidence?: number;
2260
- tags?: string[];
2261
- }
2262
- interface RecallResult extends MemoryResponse {
2263
- score: number;
2264
- similarityMethod?: "vector" | "keyword";
2265
- }
2266
- interface SearchRequest {
2267
- agentId: string;
2268
- query: string;
2269
- collectionSlug?: string;
2270
- limit?: number;
2271
- offset?: number;
2272
- }
2273
- interface SearchResult {
2274
- memories: MemoryResponse[];
2275
- total: number;
2276
- limit: number;
2277
- offset: number;
2278
- }
2279
- interface ListMemoriesParams {
2280
- agentId: string;
2281
- collectionSlug?: string;
2282
- type?: string;
2283
- tier?: string;
2284
- limit?: number;
2285
- offset?: number;
2286
- sortBy?: string;
2287
- sortOrder?: "asc" | "desc";
2288
- }
2289
- interface UpdateMemoryRequest {
2290
- content?: string;
2291
- type?: string;
2292
- tier?: string;
2293
- tags?: string[];
2294
- confidence?: number;
2295
- metadata?: Record<string, unknown>;
2296
- expiresAt?: string;
2297
- }
2298
- interface DeleteManyRequest {
2299
- agentId: string;
2300
- memoryIds: string[];
2301
- }
2302
- interface CreateCollectionRequest {
2303
- agentId: string;
2304
- name: string;
2305
- slug: string;
2306
- description?: string;
2307
- compaction?: Record<string, unknown>;
2308
- retention?: Record<string, unknown>;
2309
- }
2310
- interface CollectionResponse {
2311
- id: string;
2312
- agentId: string;
2313
- slug: string;
2314
- name?: string;
2315
- description?: string;
2316
- compaction?: Record<string, unknown>;
2317
- retention?: Record<string, unknown>;
2318
- lastCompactionAt?: string;
2319
- nextCompactionAt?: string;
2320
- createdAt: string;
2321
- updatedAt?: string;
2322
- }
2323
- interface UpdateCollectionRequest {
2324
- name?: string;
2325
- description?: string;
2326
- compaction?: Record<string, unknown>;
2327
- retention?: Record<string, unknown>;
2328
- }
2329
- interface CollectionStats {
2330
- collectionId: string;
2331
- totalMemories: number;
2332
- byTier: Record<string, number>;
2333
- byType: Record<string, number>;
2334
- oldestMemory?: string;
2335
- newestMemory?: string;
2336
- }
2337
- interface CompactRequest {
2338
- tier?: string;
2339
- }
2340
- interface CompactionJob {
2341
- id: string;
2342
- agentId: string;
2343
- collectionId: string;
2344
- status: string;
2345
- tier: string;
2346
- memoriesQueued: number;
2347
- memoriesProcessed: number;
2348
- memoriesCreated: number;
2349
- memoriesArchived: number;
2350
- durationMs?: number;
2351
- creditsUsed?: number;
2352
- error?: string;
2353
- createdAt: string;
2354
- completedAt?: string;
2355
- }
2356
- type EntityType = "person" | "organization" | "place" | "concept" | "product" | "event";
2357
- interface Entity {
2358
- id: string;
2359
- agentId: string;
2360
- name: string;
2361
- type: EntityType;
2362
- metadata?: Record<string, unknown>;
2363
- firstSeenAt: string;
2364
- lastSeenAt: string;
2365
- mentionCount: number;
2366
- createdAt: string;
2367
- updatedAt?: string;
2368
- }
2369
- interface EntityRelation {
2370
- id: string;
2371
- agentId: string;
2372
- sourceEntityId: string;
2373
- targetEntityId: string;
2374
- sourceEntity?: Entity;
2375
- targetEntity?: Entity;
2376
- relationType: string;
2377
- strength: number;
2378
- metadata?: Record<string, unknown>;
2379
- createdAt: string;
2380
- updatedAt?: string;
2381
- }
2382
- interface ListEntitiesParams {
2383
- agentId: string;
2384
- type?: EntityType;
2385
- limit?: number;
2386
- offset?: number;
2387
- }
2388
- interface GetEntityParams {
2389
- entityId: string;
2390
- }
2391
- interface ListEntitiesResult {
2392
- entities: Entity[];
2393
- total: number;
2394
- }
2395
-
2396
- /**
2397
- * Memory Agents client for Stack0 Memory API
2398
- */
2399
-
2400
- declare class MemoryAgents {
2401
- private http;
2402
- constructor(http: HttpClient);
2403
- /**
2404
- * Create a new memory agent
2405
- */
2406
- create(request: CreateAgentRequest): Promise<Agent>;
2407
- /**
2408
- * List all memory agents
2409
- */
2410
- list(params?: ListAgentsParams): Promise<Agent[]>;
2411
- /**
2412
- * Get a memory agent by ID
2413
- */
2414
- get(agentId: string): Promise<Agent>;
2415
- /**
2416
- * Update a memory agent
2417
- */
2418
- update(agentId: string, request: UpdateAgentRequest): Promise<Agent>;
2419
- /**
2420
- * Delete a memory agent
2421
- */
2422
- delete(agentId: string): Promise<void>;
2423
- }
2424
-
2425
- /**
2426
- * Memory Collections client for Stack0 Memory API
2427
- */
2428
-
2429
- declare class MemoryCollections {
2430
- private http;
2431
- constructor(http: HttpClient);
2432
- /**
2433
- * Create a new collection for an agent
2434
- */
2435
- create(request: CreateCollectionRequest): Promise<CollectionResponse>;
2436
- /**
2437
- * List all collections for an agent
2438
- */
2439
- list(agentId: string): Promise<CollectionResponse[]>;
2440
- /**
2441
- * Get a collection by slug
2442
- */
2443
- get(agentId: string, collectionSlug: string): Promise<CollectionResponse>;
2444
- /**
2445
- * Update a collection
2446
- */
2447
- update(agentId: string, collectionSlug: string, request: UpdateCollectionRequest): Promise<CollectionResponse>;
2448
- /**
2449
- * Delete a collection
2450
- */
2451
- delete(agentId: string, collectionSlug: string): Promise<void>;
2452
- /**
2453
- * Get collection statistics
2454
- */
2455
- stats(agentId: string, collectionSlug: string): Promise<CollectionStats>;
2456
- /**
2457
- * Trigger compaction for a collection
2458
- */
2459
- compact(agentId: string, collectionSlug: string, request?: CompactRequest): Promise<CompactionJob>;
2460
- /**
2461
- * Get a compaction job by ID
2462
- */
2463
- getCompactionJob(agentId: string, collectionSlug: string, jobId: string): Promise<CompactionJob>;
2464
- }
2465
-
2466
- declare class MemoryEntities {
2467
- private http;
2468
- constructor(http: HttpClient);
2469
- list(params: ListEntitiesParams): Promise<ListEntitiesResult>;
2470
- get(entityId: string): Promise<Entity>;
2471
- getRelations(entityId: string): Promise<EntityRelation[]>;
2472
- }
2473
-
2474
- /**
2475
- * Stack0 Memory Client
2476
- * Agent memory management with collections, recall, and compaction
2477
- */
2478
-
2479
- declare class Memory {
2480
- private http;
2481
- /** Manage memory agents */
2482
- readonly agents: MemoryAgents;
2483
- /** Manage memory collections */
2484
- readonly collections: MemoryCollections;
2485
- /** Manage extracted entities */
2486
- readonly entities: MemoryEntities;
2487
- constructor(config: HttpClientConfig);
2488
- /**
2489
- * Store a memory
2490
- *
2491
- * @example
2492
- * ```typescript
2493
- * const memory = await stack0.memory.store({
2494
- * agentId: 'agent_123',
2495
- * content: 'User prefers dark mode',
2496
- * type: 'preference',
2497
- * tags: ['ui', 'settings'],
2498
- * });
2499
- * ```
2500
- */
2501
- store(request: StoreMemoryRequest): Promise<MemoryResponse>;
2502
- /**
2503
- * Store multiple memories in a batch
2504
- *
2505
- * @example
2506
- * ```typescript
2507
- * const results = await stack0.memory.storeBatch({
2508
- * agentId: 'agent_123',
2509
- * memories: [
2510
- * { content: 'User prefers dark mode', type: 'preference' },
2511
- * { content: 'User is based in NYC', type: 'fact' },
2512
- * ],
2513
- * });
2514
- * ```
2515
- */
2516
- storeBatch(request: StoreBatchRequest): Promise<MemoryResponse[]>;
2517
- /**
2518
- * Recall memories using semantic search (vector similarity)
2519
- *
2520
- * @example
2521
- * ```typescript
2522
- * const results = await stack0.memory.recall({
2523
- * agentId: 'agent_123',
2524
- * query: 'What are the user preferences?',
2525
- * limit: 10,
2526
- * });
2527
- * ```
2528
- */
2529
- recall(request: RecallRequest): Promise<RecallResult[]>;
2530
- /**
2531
- * Search memories using full-text search
2532
- *
2533
- * @example
2534
- * ```typescript
2535
- * const results = await stack0.memory.search({
2536
- * agentId: 'agent_123',
2537
- * query: 'dark mode',
2538
- * limit: 20,
2539
- * });
2540
- * ```
2541
- */
2542
- search(request: SearchRequest): Promise<SearchResult>;
2543
- /**
2544
- * Get a memory by ID
2545
- */
2546
- get(memoryId: string): Promise<MemoryResponse>;
2547
- /**
2548
- * List memories with optional filters
2549
- *
2550
- * @example
2551
- * ```typescript
2552
- * const memories = await stack0.memory.list({
2553
- * agentId: 'agent_123',
2554
- * type: 'preference',
2555
- * limit: 50,
2556
- * });
2557
- * ```
2558
- */
2559
- list(params: ListMemoriesParams): Promise<MemoryResponse[]>;
2560
- /**
2561
- * Update a memory
2562
- */
2563
- update(memoryId: string, request: UpdateMemoryRequest): Promise<MemoryResponse>;
2564
- /**
2565
- * Delete a memory by ID
2566
- */
2567
- delete(memoryId: string): Promise<void>;
2568
- /**
2569
- * Delete multiple memories
2570
- */
2571
- deleteMany(request: DeleteManyRequest): Promise<void>;
2572
- }
2573
-
2574
2184
  /**
2575
2185
  * Stack0 SDK
2576
2186
  * Official SDK for Stack0 services
@@ -2631,20 +2241,29 @@ declare class Memory {
2631
2241
  * variables: { topic: 'AI trends' },
2632
2242
  * });
2633
2243
  * console.log(run.output);
2634
- *
2635
- * // Store and recall agent memories
2636
- * await stack0.memory.store({
2637
- * agentId: 'agent_123',
2638
- * content: 'User prefers dark mode',
2639
- * type: 'preference',
2640
- * });
2641
- * const memories = await stack0.memory.recall({
2642
- * agentId: 'agent_123',
2643
- * query: 'user preferences',
2644
- * });
2645
2244
  * ```
2646
2245
  */
2647
2246
 
2247
+ interface Project {
2248
+ id: string;
2249
+ name: string;
2250
+ slug: string;
2251
+ description?: string | null;
2252
+ iconUrl?: string | null;
2253
+ organizationId: string;
2254
+ createdAt: Date | string;
2255
+ updatedAt?: Date | string | null;
2256
+ }
2257
+ interface CreateProjectRequest {
2258
+ name: string;
2259
+ description?: string;
2260
+ }
2261
+ interface UpdateProjectRequest {
2262
+ id: string;
2263
+ name?: string;
2264
+ description?: string;
2265
+ iconUrl?: string | null;
2266
+ }
2648
2267
  interface Stack0Config extends HttpClientConfig {
2649
2268
  apiKey: string;
2650
2269
  baseUrl?: string;
@@ -2659,19 +2278,30 @@ interface Stack0Config extends HttpClientConfig {
2659
2278
  * Provides access to all Stack0 services
2660
2279
  */
2661
2280
  declare class Stack0 {
2281
+ private http;
2662
2282
  mail: Mail$1;
2663
2283
  cdn: CDN;
2664
2284
  screenshots: Screenshots;
2665
2285
  extraction: Extraction;
2286
+ crawl: Crawl$;
2287
+ map: Map$;
2288
+ documents: Documents;
2666
2289
  integrations: Integrations;
2667
2290
  marketing: Marketing;
2668
2291
  workflows: Workflows;
2669
- memory: Memory;
2670
2292
  /**
2671
2293
  * @deprecated Use `screenshots` and `extraction` instead. Will be removed in a future version.
2672
2294
  */
2673
2295
  webdata: Webdata;
2674
2296
  constructor(config: Stack0Config);
2297
+ listProjects(): Promise<Project[]>;
2298
+ getProject(id: string): Promise<Project>;
2299
+ getProjectBySlug(slug: string): Promise<Project>;
2300
+ createProject(request: CreateProjectRequest): Promise<Project>;
2301
+ updateProject(request: UpdateProjectRequest): Promise<Project>;
2302
+ deleteProject(id: string): Promise<{
2303
+ success: boolean;
2304
+ }>;
2675
2305
  }
2676
2306
 
2677
- export { type Agent, type AgentSettings, type AnalyticsOverviewRequest, type AnalyticsOverviewResponse, type ApprovalStatus, type ApproveContentRequest, type AssetJob, type AssetJobStatus, type AssetJobType, CDN, type Calendar, type CalendarAttendee, type CalendarEntry, type CalendarEvent, type CancelAssetJobResponse, type CancelCalendarEntryResponse, type CancelRunRequest, type Channel, type CollectionResponse, type CollectionStats, type CommunicationUser, type CompactRequest, type CompactionJob, type Company, type Connection, type Connector, type ConnectorCategory, type Contact, type Content, type ContentPerformanceItem, type ContentPerformanceRequest, type ContentPerformanceResponse, type ContentStatus, type ContentType, type CreateAgentRequest, type CreateAssetJobRequest, type CreateCalendarEventInput, type CreateCollectionRequest, type CreateCompanyInput, type CreateConnectionSessionRequest, type CreateConnectionSessionResponse, type CreateContactInput, type CreateContentRequest, type CreateDealInput, type CreateScriptRequest, type CreateScriptVersionRequest, type CreateWorkflowRequest, type CreateWorkflowResponse, type CurrentUsageResponse, type Deal, type DeleteManyRequest, type DeleteScriptResponse, type DeleteWorkflowRequest, type DiscoverTrendsRequest, type DiscoverTrendsResponse, type DismissOpportunityRequest, type EmailAttachment, type EmailLabel, type EmailMessage, type EmailThread, type Entity, type EntityRelation, type EntityType, type Environment, Extraction, type GenerateOpportunitiesRequest, type GenerateOpportunitiesResponse, type GetCurrentUsageRequest, type GetEntityParams, type GetRunRequest, type GetSettingsRequest, type GetTotalUsageRequest, type GetUsageHistoryRequest, type GetWorkflowRequest, type Address as IntegrationAddress, type ColumnType as IntegrationColumnType, type CreateDocumentInput as IntegrationCreateDocumentInput, type CreateFolderInput as IntegrationCreateFolderInput, type CreateTableRowInput as IntegrationCreateTableRowInput, type Document as IntegrationDocument, type IntegrationEmailAddress, type File as IntegrationFile, type FilePermission as IntegrationFilePermission, type IntegrationFolder, type MessageAttachment as IntegrationMessageAttachment, type MessageReaction as IntegrationMessageReaction, type PhoneNumber as IntegrationPhoneNumber, type SelectOption as IntegrationSelectOption, type SendEmailInput as IntegrationSendEmailInput, type Table as IntegrationTable, type TableColumn as IntegrationTableColumn, type TableRow as IntegrationTableRow, type UpdateDocumentInput as IntegrationUpdateDocumentInput, type UpdateTableRowInput as IntegrationUpdateTableRowInput, Integrations, type ListOptions as IntegrationsListOptions, type PaginatedResult as IntegrationsPaginatedResult, type ListAgentsParams, type ListAssetJobsRequest, type ListAssetJobsResponse, type ListCalendarEntriesRequest, type ListCalendarEntriesResponse, type ListContentRequest, type ListContentResponse, type ListEmailMessagesOptions, type ListEntitiesParams, type ListEntitiesResult, type ListEventsOptions, type ListMemoriesParams, type ListOpportunitiesRequest, type ListOpportunitiesResponse, type ListRunsRequest, type ListRunsResponse, type ListScriptsRequest, type ListScriptsResponse, type ListTrendsRequest, type ListTrendsResponse, type ListWorkflowsRequest, type ListWorkflowsResponse, Mail$1 as Mail, type MarkPublishedRequest, Marketing, type MarketingEnvironment, type MarketingSettings, type MarketingUsage, Memory, MemoryAgents, MemoryCollections, MemoryEntities, type MemoryResponse, type MemoryType, type Message, type Opportunity, type OpportunityConversionRequest, type OpportunityConversionResponse, type PassthroughRequest, type Provider, type RecallRequest, type RecallResult, type RecordUsageRequest, type RejectContentRequest, type ResponseFormat, type RetryAssetJobResponse, type RetryConfig, type RunStatus, type RunWorkflowRequest, type RunWorkflowResponse, type ScheduleContentRequest, Screenshots, type Script, type ScriptSlide, type SearchRequest, type SearchResult, type SendMessageInput, Stack0, type Stack0Config, type StepConfig, type StepDefinition, type StepRunStatus, type StepState, type StepType, type StoreBatchRequest, type StoreMemoryRequest, type TotalUsageResponse, type Trend, type TrendAnalyticsRequest, type TrendAnalyticsResponse, type TrendStatus, type UpdateAgentRequest, type UpdateAssetJobStatusRequest, type UpdateCalendarEntryRequest, type UpdateCalendarEventInput, type UpdateCollectionRequest, type UpdateCompanyInput, type UpdateContactInput, type UpdateContentRequest, type UpdateDealInput, type UpdateMemoryRequest, type UpdateScriptRequest, type UpdateSettingsRequest, type UpdateSettingsResponse, type UpdateTrendStatusRequest, type UpdateTrendStatusResponse, type UpdateWorkflowRequest, type UploadFileInput, type UsageHistoryResponse, type VariableDefinition, Webdata, type WebhookConfig, type Workflow, type WorkflowRun, Workflows, Stack0 as default };
2307
+ export { type AnalyticsOverviewRequest, type AnalyticsOverviewResponse, type ApprovalStatus, type ApproveContentRequest, type AssetJob, type AssetJobStatus, type AssetJobType, CDN, type Calendar, type CalendarAttendee, type CalendarEntry, type CalendarEvent, type CancelAssetJobResponse, type CancelCalendarEntryResponse, type CancelRunRequest, type Channel, type CommunicationUser, type Company, type Connection, type Connector, type ConnectorCategory, type Contact, type Content, type ContentPerformanceItem, type ContentPerformanceRequest, type ContentPerformanceResponse, type ContentStatus, type ContentType, Crawl$ as Crawl, Crawl$, type CreateAssetJobRequest, type CreateCalendarEventInput, type CreateCompanyInput, type CreateConnectionSessionRequest, type CreateConnectionSessionResponse, type CreateContactInput, type CreateContentRequest, type CreateDealInput, type CreateProjectRequest, type CreateScriptRequest, type CreateScriptVersionRequest, type CreateWorkflowRequest, type CreateWorkflowResponse, type CurrentUsageResponse, type Deal, type DeleteScriptResponse, type DeleteWorkflowRequest, type DiscoverTrendsRequest, type DiscoverTrendsResponse, type DismissOpportunityRequest, Documents, type EmailAttachment, type EmailLabel, type EmailMessage, type EmailThread, type Environment, Extraction, type GenerateOpportunitiesRequest, type GenerateOpportunitiesResponse, type GetCurrentUsageRequest, type GetRunRequest, type GetSettingsRequest, type GetTotalUsageRequest, type GetUsageHistoryRequest, type GetWorkflowRequest, type Address as IntegrationAddress, type ColumnType as IntegrationColumnType, type CreateDocumentInput as IntegrationCreateDocumentInput, type CreateFolderInput as IntegrationCreateFolderInput, type CreateTableRowInput as IntegrationCreateTableRowInput, type Document as IntegrationDocument, type IntegrationEmailAddress, type File as IntegrationFile, type FilePermission as IntegrationFilePermission, type IntegrationFolder, type MessageAttachment as IntegrationMessageAttachment, type MessageReaction as IntegrationMessageReaction, type PhoneNumber as IntegrationPhoneNumber, type SelectOption as IntegrationSelectOption, type SendEmailInput as IntegrationSendEmailInput, type Table as IntegrationTable, type TableColumn as IntegrationTableColumn, type TableRow as IntegrationTableRow, type UpdateDocumentInput as IntegrationUpdateDocumentInput, type UpdateTableRowInput as IntegrationUpdateTableRowInput, Integrations, type ListOptions as IntegrationsListOptions, type PaginatedResult as IntegrationsPaginatedResult, type ListAssetJobsRequest, type ListAssetJobsResponse, type ListCalendarEntriesRequest, type ListCalendarEntriesResponse, type ListContentRequest, type ListContentResponse, type ListEmailMessagesOptions, type ListEventsOptions, type ListOpportunitiesRequest, type ListOpportunitiesResponse, type ListRunsRequest, type ListRunsResponse, type ListScriptsRequest, type ListScriptsResponse, type ListTrendsRequest, type ListTrendsResponse, type ListWorkflowsRequest, type ListWorkflowsResponse, Mail$1 as Mail, Map$ as Map, Map$, type MarkPublishedRequest, Marketing, type MarketingEnvironment, type MarketingSettings, type MarketingUsage, type Message, type Opportunity, type OpportunityConversionRequest, type OpportunityConversionResponse, type PassthroughRequest, type Project, type Provider, type RecordUsageRequest, type RejectContentRequest, type ResponseFormat, type RetryAssetJobResponse, type RetryConfig, type RunStatus, type RunWorkflowRequest, type RunWorkflowResponse, type ScheduleContentRequest, Screenshots, type Script, type ScriptSlide, type SendMessageInput, Stack0, type Stack0Config, type StepConfig, type StepDefinition, type StepRunStatus, type StepState, type StepType, type TotalUsageResponse, type Trend, type TrendAnalyticsRequest, type TrendAnalyticsResponse, type TrendStatus, type UpdateAssetJobStatusRequest, type UpdateCalendarEntryRequest, type UpdateCalendarEventInput, type UpdateCompanyInput, type UpdateContactInput, type UpdateContentRequest, type UpdateDealInput, type UpdateProjectRequest, type UpdateScriptRequest, type UpdateSettingsRequest, type UpdateSettingsResponse, type UpdateTrendStatusRequest, type UpdateTrendStatusResponse, type UpdateWorkflowRequest, type UploadFileInput, type UsageHistoryResponse, type VariableDefinition, Webdata, type WebhookConfig, type Workflow, type WorkflowRun, Workflows, Stack0 as default };