openpond-sdk 0.0.5 → 0.0.7

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.
@@ -0,0 +1,121 @@
1
+ export type OpenPondWorkflowWeekday = "sunday" | "monday" | "tuesday" | "wednesday" | "thursday" | "friday" | "saturday";
2
+ export type OpenPondWorkflowRecurrence = {
3
+ version: 1;
4
+ kind: "once" | "daily" | "weekdays" | "weekly" | "monthly";
5
+ timeZone: string;
6
+ startDate: string;
7
+ localTime: string;
8
+ weekdays?: OpenPondWorkflowWeekday[];
9
+ dayOfMonth?: number;
10
+ end: {
11
+ kind: "never";
12
+ } | {
13
+ kind: "on_date";
14
+ date: string;
15
+ } | {
16
+ kind: "after_occurrences";
17
+ occurrences: number;
18
+ };
19
+ };
20
+ export type OpenPondWorkflowSchedule = {
21
+ id: string;
22
+ expression: string | null;
23
+ timeZone: string;
24
+ recurrence: OpenPondWorkflowRecurrence | null;
25
+ configurationVersion: number;
26
+ enabled: boolean;
27
+ nextRunAt: string | null;
28
+ lastTriggeredAt: string | null;
29
+ delivery: Record<string, unknown>;
30
+ };
31
+ export type OpenPondWorkflowDefinition = {
32
+ id: string;
33
+ definitionKey: string;
34
+ version: number;
35
+ name: string;
36
+ prompt: string;
37
+ modelId: string;
38
+ schedules: OpenPondWorkflowSchedule[];
39
+ };
40
+ export type OpenPondWorkflowRun = {
41
+ id: string;
42
+ definitionId: string;
43
+ scheduleId: string | null;
44
+ definitionName: string;
45
+ definitionVersion: number;
46
+ conversationId: string;
47
+ triggerKind: "manual" | "schedule" | "webhook" | "retry";
48
+ status: string;
49
+ notificationStatus: string;
50
+ deliveryStatus: string;
51
+ deliveryError: string | null;
52
+ createdAt: string;
53
+ };
54
+ export type OpenPondWorkflowCatalog = {
55
+ definitions: OpenPondWorkflowDefinition[];
56
+ runs: OpenPondWorkflowRun[];
57
+ asOf: string;
58
+ };
59
+ export type OpenPondWorkflowCreateInput = {
60
+ clientRequestId?: string;
61
+ sourceTurnId?: string | null;
62
+ name: string;
63
+ prompt: string;
64
+ recurrence: OpenPondWorkflowRecurrence;
65
+ modelId?: string;
66
+ };
67
+ export type OpenPondWorkflowCreateResult = {
68
+ created: boolean;
69
+ definitionId: string;
70
+ scheduleId: string;
71
+ name: string;
72
+ enabled: boolean;
73
+ nextRunAt: string | null;
74
+ recurrence: OpenPondWorkflowRecurrence | null;
75
+ timeZone: string;
76
+ };
77
+ export type OpenPondWorkflowUpdateInput = {
78
+ enabled: boolean;
79
+ } | {
80
+ name: string;
81
+ prompt: string;
82
+ recurrence: OpenPondWorkflowRecurrence;
83
+ };
84
+ export type OpenPondWorkflowUpdateResult = {
85
+ definitionId?: string;
86
+ schedule: {
87
+ id: string;
88
+ enabled: boolean;
89
+ nextRunAt: string | null;
90
+ };
91
+ };
92
+ export type OpenPondWorkflowDeleteResult = {
93
+ schedule: {
94
+ id: string;
95
+ archived: true;
96
+ };
97
+ };
98
+ export type OpenPondWorkflowRunNowResult = {
99
+ runId: string;
100
+ conversationId: string;
101
+ };
102
+ export type OpenPondWorkflowRequestOptions = {
103
+ signal?: AbortSignal;
104
+ };
105
+ type WorkflowsClientInput = {
106
+ apiKey: string;
107
+ apiBaseUrl: string;
108
+ };
109
+ export declare class OpenPondWorkflowsClient {
110
+ #private;
111
+ constructor(input: WorkflowsClientInput);
112
+ list(options?: OpenPondWorkflowRequestOptions): Promise<OpenPondWorkflowCatalog>;
113
+ create(input: OpenPondWorkflowCreateInput, options?: OpenPondWorkflowRequestOptions): Promise<OpenPondWorkflowCreateResult>;
114
+ update(scheduleId: string, input: OpenPondWorkflowUpdateInput, options?: OpenPondWorkflowRequestOptions): Promise<OpenPondWorkflowUpdateResult>;
115
+ delete(scheduleId: string, options?: OpenPondWorkflowRequestOptions): Promise<OpenPondWorkflowDeleteResult>;
116
+ runNow(scheduleId: string, input?: {
117
+ clientRequestId?: string;
118
+ }, options?: OpenPondWorkflowRequestOptions): Promise<OpenPondWorkflowRunNowResult>;
119
+ }
120
+ export {};
121
+ //# sourceMappingURL=workflows.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"workflows.d.ts","sourceRoot":"","sources":["../../../../../src/workflows.ts"],"names":[],"mappings":"AAIA,MAAM,MAAM,uBAAuB,GAC/B,QAAQ,GACR,QAAQ,GACR,SAAS,GACT,WAAW,GACX,UAAU,GACV,QAAQ,GACR,UAAU,CAAC;AAEf,MAAM,MAAM,0BAA0B,GAAG;IACvC,OAAO,EAAE,CAAC,CAAC;IACX,IAAI,EAAE,MAAM,GAAG,OAAO,GAAG,UAAU,GAAG,QAAQ,GAAG,SAAS,CAAC;IAC3D,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,uBAAuB,EAAE,CAAC;IACrC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,GAAG,EACC;QAAE,IAAI,EAAE,OAAO,CAAA;KAAE,GACjB;QAAE,IAAI,EAAE,SAAS,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,GACjC;QAAE,IAAI,EAAE,mBAAmB,CAAC;QAAC,WAAW,EAAE,MAAM,CAAA;KAAE,CAAC;CACxD,CAAC;AAEF,MAAM,MAAM,wBAAwB,GAAG;IACrC,EAAE,EAAE,MAAM,CAAC;IACX,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,0BAA0B,GAAG,IAAI,CAAC;IAC9C,oBAAoB,EAAE,MAAM,CAAC;IAC7B,OAAO,EAAE,OAAO,CAAC;IACjB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,eAAe,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACnC,CAAC;AAEF,MAAM,MAAM,0BAA0B,GAAG;IACvC,E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U,EAAE,MAAM,EAClB,KAAK,EAAE,2BAA2B,EAClC,OAAO,GAAE,8BAAmC,GAC3C,OAAO,CAAC,4BAA4B,CAAC;IAYlC,MAAM,CACV,UAAU,EAAE,MAAM,EAClB,OAAO,GAAE,8BAAmC,GAC3C,OAAO,CAAC,4BAA4B,CAAC;IAQlC,MAAM,CACV,UAAU,EAAE,MAAM,EAClB,KAAK,GAAE;QAAE,eAAe,CAAC,EAAE,MAAM,CAAA;KAAO,EACxC,OAAO,GAAE,8BAAmC,GAC3C,OAAO,CAAC,4BAA4B,CAAC;CA2BzC"}
@@ -0,0 +1,244 @@
1
+ // src/workflows.ts
2
+ import { randomUUID } from "node:crypto";
3
+
4
+ // ../cloud/dist/api/vercel-protection.js
5
+ var VERCEL_PROTECTION_BYPASS_HEADER = "x-vercel-protection-bypass";
6
+ function withVercelProtectionBypass(requestUrl, inputHeaders, env = typeof process === "undefined" ? {} : process.env) {
7
+ const headers = new Headers(inputHeaders);
8
+ const secret = env.VERCEL_AUTOMATION_BYPASS_SECRET?.trim();
9
+ if (!secret || !isOpenPondStagingUrl(requestUrl))
10
+ return headers;
11
+ headers.set(VERCEL_PROTECTION_BYPASS_HEADER, secret);
12
+ return headers;
13
+ }
14
+ function isOpenPondStagingUrl(requestUrl) {
15
+ try {
16
+ const hostname = new URL(requestUrl).hostname.toLowerCase();
17
+ return hostname === "staging.openpond.ai" || hostname === "staging-api.openpond.ai" || hostname.endsWith(".staging-api.openpond.ai");
18
+ } catch {
19
+ return false;
20
+ }
21
+ }
22
+
23
+ // ../cloud/dist/api/core.js
24
+ var DEFAULT_API_TIMEOUT_MS = 3e4;
25
+ var DEFAULT_API_RESPONSE_BYTES = 8 * 1024 * 1024;
26
+ var LONG_STREAM_API_OPTIONS = { timeoutMs: 15 * 60 * 1e3, maxResponseBytes: 64 * 1024 * 1024 };
27
+ var ApiTimeoutError = class extends Error {
28
+ timeoutMs;
29
+ requestUrl;
30
+ code = "OPENPOND_API_TIMEOUT";
31
+ constructor(timeoutMs, requestUrl) {
32
+ super(`API request timed out after ${timeoutMs}ms: ${requestUrl}`);
33
+ this.timeoutMs = timeoutMs;
34
+ this.requestUrl = requestUrl;
35
+ this.name = "ApiTimeoutError";
36
+ }
37
+ };
38
+ var ApiResponseTooLargeError = class extends Error {
39
+ maximumBytes;
40
+ requestUrl;
41
+ code = "OPENPOND_API_RESPONSE_TOO_LARGE";
42
+ constructor(maximumBytes, requestUrl) {
43
+ super(`API response exceeded ${maximumBytes} bytes: ${requestUrl}`);
44
+ this.maximumBytes = maximumBytes;
45
+ this.requestUrl = requestUrl;
46
+ this.name = "ApiResponseTooLargeError";
47
+ }
48
+ };
49
+ var OpenPondApiError = class extends Error {
50
+ status;
51
+ apiMessage;
52
+ code;
53
+ constructor(status, errorCode, label, apiMessage = null) {
54
+ const detail = apiMessage || errorCode;
55
+ super(`${label} failed: ${status}${detail ? ` ${detail}` : ""}`);
56
+ this.status = status;
57
+ this.apiMessage = apiMessage;
58
+ this.name = "OpenPondApiError";
59
+ this.code = errorCode || "OPENPOND_API_ERROR";
60
+ }
61
+ };
62
+ async function apiFetch(baseUrl, token, requestPath, options = {}) {
63
+ const { timeoutMs = DEFAULT_API_TIMEOUT_MS, maxResponseBytes = DEFAULT_API_RESPONSE_BYTES, ...init } = options;
64
+ const requestUrl = `${baseUrl}${requestPath}`;
65
+ const headers = withVercelProtectionBypass(requestUrl, init.headers);
66
+ headers.set("Content-Type", "application/json");
67
+ const apiKey = process.env.OPENPOND_API_KEY;
68
+ const trimmedToken = token?.trim() || "";
69
+ const tokenIsApiKey = trimmedToken.startsWith("opk_");
70
+ const effectiveApiKey = apiKey || (tokenIsApiKey ? trimmedToken : null);
71
+ if (effectiveApiKey && !headers.has("openpond-api-key"))
72
+ headers.set("openpond-api-key", effectiveApiKey);
73
+ if (token) {
74
+ headers.set("Authorization", tokenIsApiKey ? `ApiKey ${trimmedToken}` : `Bearer ${token}`);
75
+ } else if (apiKey && !headers.has("Authorization")) {
76
+ headers.set("Authorization", `ApiKey ${apiKey}`);
77
+ }
78
+ const timeoutController = new AbortController();
79
+ const timeoutError = new ApiTimeoutError(timeoutMs, requestUrl);
80
+ const timer = timeoutMs > 0 ? setTimeout(() => timeoutController.abort(timeoutError), timeoutMs) : null;
81
+ timer?.unref?.();
82
+ const signal = composedSignal(init.signal, timeoutController.signal, timeoutMs);
83
+ const cleanup = () => {
84
+ if (timer)
85
+ clearTimeout(timer);
86
+ };
87
+ try {
88
+ const response = await fetch(requestUrl, { ...init, headers, signal });
89
+ return boundedResponse(response, {
90
+ cleanup,
91
+ maximumBytes: maxResponseBytes,
92
+ requestUrl,
93
+ timeoutController,
94
+ timeoutError
95
+ });
96
+ } catch (error) {
97
+ cleanup();
98
+ if (timeoutController.signal.aborted)
99
+ throw timeoutError;
100
+ throw error;
101
+ }
102
+ }
103
+ async function readApiJson(response, label) {
104
+ let payload;
105
+ try {
106
+ const text = await response.text();
107
+ payload = text ? JSON.parse(text) : {};
108
+ } catch (error) {
109
+ if (error instanceof ApiTimeoutError || error instanceof ApiResponseTooLargeError)
110
+ throw error;
111
+ payload = {};
112
+ }
113
+ if (!response.ok) {
114
+ const errorCode = typeof payload.error === "string" ? payload.error : null;
115
+ const apiMessage = typeof payload.message === "string" ? payload.message : null;
116
+ throw new OpenPondApiError(response.status, errorCode, label, apiMessage);
117
+ }
118
+ return payload;
119
+ }
120
+ function boundedResponse(response, input) {
121
+ if (!response.body) {
122
+ input.cleanup();
123
+ return response;
124
+ }
125
+ const contentLength = Number(response.headers.get("content-length"));
126
+ if (input.maximumBytes > 0 && Number.isFinite(contentLength) && contentLength > input.maximumBytes) {
127
+ input.cleanup();
128
+ void response.body.cancel();
129
+ throw new ApiResponseTooLargeError(input.maximumBytes, input.requestUrl);
130
+ }
131
+ const reader = response.body.getReader();
132
+ let receivedBytes = 0;
133
+ const body = new ReadableStream({
134
+ async pull(controller) {
135
+ try {
136
+ const result = await reader.read();
137
+ if (result.done) {
138
+ input.cleanup();
139
+ controller.close();
140
+ return;
141
+ }
142
+ receivedBytes += result.value.byteLength;
143
+ if (input.maximumBytes > 0 && receivedBytes > input.maximumBytes) {
144
+ input.cleanup();
145
+ await reader.cancel();
146
+ controller.error(new ApiResponseTooLargeError(input.maximumBytes, input.requestUrl));
147
+ return;
148
+ }
149
+ controller.enqueue(result.value);
150
+ } catch (error) {
151
+ input.cleanup();
152
+ controller.error(input.timeoutController.signal.aborted ? input.timeoutError : error);
153
+ }
154
+ },
155
+ async cancel(reason) {
156
+ input.cleanup();
157
+ await reader.cancel(reason);
158
+ }
159
+ });
160
+ return new Response(body, {
161
+ headers: response.headers,
162
+ status: response.status,
163
+ statusText: response.statusText
164
+ });
165
+ }
166
+ function composedSignal(callerSignal, timeoutSignal, timeoutMs) {
167
+ if (timeoutMs <= 0)
168
+ return callerSignal ?? void 0;
169
+ return callerSignal ? AbortSignal.any([callerSignal, timeoutSignal]) : timeoutSignal;
170
+ }
171
+
172
+ // src/workflows.ts
173
+ var OpenPondWorkflowsClient = class {
174
+ #apiKey;
175
+ #apiBaseUrl;
176
+ constructor(input) {
177
+ this.#apiKey = input.apiKey;
178
+ this.#apiBaseUrl = input.apiBaseUrl.replace(/\/+$/, "");
179
+ }
180
+ async list(options = {}) {
181
+ return this.#request("", "List Workflows", {
182
+ signal: options.signal
183
+ });
184
+ }
185
+ async create(input, options = {}) {
186
+ return this.#request("", "Create Workflow", {
187
+ method: "POST",
188
+ body: JSON.stringify({
189
+ ...input,
190
+ clientRequestId: input.clientRequestId?.trim() || randomUUID()
191
+ }),
192
+ signal: options.signal
193
+ });
194
+ }
195
+ async update(scheduleId, input, options = {}) {
196
+ return this.#request(
197
+ `/schedules/${encodeURIComponent(requiredId(scheduleId, "scheduleId"))}`,
198
+ "Update Workflow",
199
+ {
200
+ method: "PATCH",
201
+ body: JSON.stringify(input),
202
+ signal: options.signal
203
+ }
204
+ );
205
+ }
206
+ async delete(scheduleId, options = {}) {
207
+ return this.#request(
208
+ `/schedules/${encodeURIComponent(requiredId(scheduleId, "scheduleId"))}`,
209
+ "Delete Workflow",
210
+ { method: "DELETE", signal: options.signal }
211
+ );
212
+ }
213
+ async runNow(scheduleId, input = {}, options = {}) {
214
+ return this.#request(
215
+ `/schedules/${encodeURIComponent(requiredId(scheduleId, "scheduleId"))}/run`,
216
+ "Run Workflow",
217
+ {
218
+ method: "POST",
219
+ body: JSON.stringify({
220
+ clientRequestId: input.clientRequestId?.trim() || randomUUID()
221
+ }),
222
+ signal: options.signal
223
+ }
224
+ );
225
+ }
226
+ async #request(suffix, label, options = {}) {
227
+ const response = await apiFetch(
228
+ this.#apiBaseUrl,
229
+ this.#apiKey,
230
+ `/v1/saved-work${suffix}`,
231
+ options
232
+ );
233
+ return readApiJson(response, label);
234
+ }
235
+ };
236
+ function requiredId(value, label) {
237
+ const normalized = value.trim();
238
+ if (!normalized) throw new Error(`${label} is required`);
239
+ return normalized;
240
+ }
241
+ export {
242
+ OpenPondWorkflowsClient
243
+ };
244
+ //# sourceMappingURL=workflows.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../src/workflows.ts", "../../cloud/src/api/vercel-protection.ts", "../../cloud/src/api/core.ts"],
4
+ "sourcesContent": ["import { randomUUID } from \"node:crypto\";\n\nimport { apiFetch, readApiJson } from \"@openpond/cloud/api/core\";\n\nexport type OpenPondWorkflowWeekday =\n | \"sunday\"\n | \"monday\"\n | \"tuesday\"\n | \"wednesday\"\n | \"thursday\"\n | \"friday\"\n | \"saturday\";\n\nexport type OpenPondWorkflowRecurrence = {\n version: 1;\n kind: \"once\" | \"daily\" | \"weekdays\" | \"weekly\" | \"monthly\";\n timeZone: string;\n startDate: string;\n localTime: string;\n weekdays?: OpenPondWorkflowWeekday[];\n dayOfMonth?: number;\n end:\n | { kind: \"never\" }\n | { kind: \"on_date\"; date: string }\n | { kind: \"after_occurrences\"; occurrences: number };\n};\n\nexport type OpenPondWorkflowSchedule = {\n id: string;\n expression: string | null;\n timeZone: string;\n recurrence: OpenPondWorkflowRecurrence | null;\n configurationVersion: number;\n enabled: boolean;\n nextRunAt: string | null;\n lastTriggeredAt: string | null;\n delivery: Record<string, unknown>;\n};\n\nexport type OpenPondWorkflowDefinition = {\n id: string;\n definitionKey: string;\n version: number;\n name: string;\n prompt: string;\n modelId: string;\n schedules: OpenPondWorkflowSchedule[];\n};\n\nexport type OpenPondWorkflowRun = {\n id: string;\n definitionId: string;\n scheduleId: string | null;\n definitionName: string;\n definitionVersion: number;\n conversationId: string;\n triggerKind: \"manual\" | \"schedule\" | \"webhook\" | \"retry\";\n status: string;\n notificationStatus: string;\n deliveryStatus: string;\n deliveryError: string | null;\n createdAt: string;\n};\n\nexport type OpenPondWorkflowCatalog = {\n definitions: OpenPondWorkflowDefinition[];\n runs: OpenPondWorkflowRun[];\n asOf: string;\n};\n\nexport type OpenPondWorkflowCreateInput = {\n clientRequestId?: string;\n sourceTurnId?: string | null;\n name: string;\n prompt: string;\n recurrence: OpenPondWorkflowRecurrence;\n modelId?: string;\n};\n\nexport type OpenPondWorkflowCreateResult = {\n created: boolean;\n definitionId: string;\n scheduleId: string;\n name: string;\n enabled: boolean;\n nextRunAt: string | null;\n recurrence: OpenPondWorkflowRecurrence | null;\n timeZone: string;\n};\n\nexport type OpenPondWorkflowUpdateInput =\n | { enabled: boolean }\n | {\n name: string;\n prompt: string;\n recurrence: OpenPondWorkflowRecurrence;\n };\n\nexport type OpenPondWorkflowUpdateResult = {\n definitionId?: string;\n schedule: {\n id: string;\n enabled: boolean;\n nextRunAt: string | null;\n };\n};\n\nexport type OpenPondWorkflowDeleteResult = {\n schedule: {\n id: string;\n archived: true;\n };\n};\n\nexport type OpenPondWorkflowRunNowResult = {\n runId: string;\n conversationId: string;\n};\n\nexport type OpenPondWorkflowRequestOptions = {\n signal?: AbortSignal;\n};\n\ntype WorkflowsClientInput = {\n apiKey: string;\n apiBaseUrl: string;\n};\n\nexport class OpenPondWorkflowsClient {\n readonly #apiKey: string;\n readonly #apiBaseUrl: string;\n\n constructor(input: WorkflowsClientInput) {\n this.#apiKey = input.apiKey;\n this.#apiBaseUrl = input.apiBaseUrl.replace(/\\/+$/, \"\");\n }\n\n async list(\n options: OpenPondWorkflowRequestOptions = {},\n ): Promise<OpenPondWorkflowCatalog> {\n return this.#request<OpenPondWorkflowCatalog>(\"\", \"List Workflows\", {\n signal: options.signal,\n });\n }\n\n async create(\n input: OpenPondWorkflowCreateInput,\n options: OpenPondWorkflowRequestOptions = {},\n ): Promise<OpenPondWorkflowCreateResult> {\n return this.#request<OpenPondWorkflowCreateResult>(\"\", \"Create Workflow\", {\n method: \"POST\",\n body: JSON.stringify({\n ...input,\n clientRequestId: input.clientRequestId?.trim() || randomUUID(),\n }),\n signal: options.signal,\n });\n }\n\n async update(\n scheduleId: string,\n input: OpenPondWorkflowUpdateInput,\n options: OpenPondWorkflowRequestOptions = {},\n ): Promise<OpenPondWorkflowUpdateResult> {\n return this.#request<OpenPondWorkflowUpdateResult>(\n `/schedules/${encodeURIComponent(requiredId(scheduleId, \"scheduleId\"))}`,\n \"Update Workflow\",\n {\n method: \"PATCH\",\n body: JSON.stringify(input),\n signal: options.signal,\n },\n );\n }\n\n async delete(\n scheduleId: string,\n options: OpenPondWorkflowRequestOptions = {},\n ): Promise<OpenPondWorkflowDeleteResult> {\n return this.#request<OpenPondWorkflowDeleteResult>(\n `/schedules/${encodeURIComponent(requiredId(scheduleId, \"scheduleId\"))}`,\n \"Delete Workflow\",\n { method: \"DELETE\", signal: options.signal },\n );\n }\n\n async runNow(\n scheduleId: string,\n input: { clientRequestId?: string } = {},\n options: OpenPondWorkflowRequestOptions = {},\n ): Promise<OpenPondWorkflowRunNowResult> {\n return this.#request<OpenPondWorkflowRunNowResult>(\n `/schedules/${encodeURIComponent(requiredId(scheduleId, \"scheduleId\"))}/run`,\n \"Run Workflow\",\n {\n method: \"POST\",\n body: JSON.stringify({\n clientRequestId: input.clientRequestId?.trim() || randomUUID(),\n }),\n signal: options.signal,\n },\n );\n }\n\n async #request<T>(\n suffix: string,\n label: string,\n options: RequestInit = {},\n ): Promise<T> {\n const response = await apiFetch(\n this.#apiBaseUrl,\n this.#apiKey,\n `/v1/saved-work${suffix}`,\n options,\n );\n return readApiJson<T>(response, label);\n }\n}\n\nfunction requiredId(value: string, label: string): string {\n const normalized = value.trim();\n if (!normalized) throw new Error(`${label} is required`);\n return normalized;\n}\n", "const VERCEL_PROTECTION_BYPASS_HEADER = \"x-vercel-protection-bypass\";\n\nexport function withVercelProtectionBypass(\n requestUrl: string,\n inputHeaders?: HeadersInit,\n env: Record<string, string | undefined> =\n typeof process === \"undefined\" ? {} : process.env,\n): Headers {\n const headers = new Headers(inputHeaders);\n const secret = env.VERCEL_AUTOMATION_BYPASS_SECRET?.trim();\n if (!secret || !isOpenPondStagingUrl(requestUrl)) return headers;\n headers.set(VERCEL_PROTECTION_BYPASS_HEADER, secret);\n return headers;\n}\n\nfunction isOpenPondStagingUrl(requestUrl: string): boolean {\n try {\n const hostname = new URL(requestUrl).hostname.toLowerCase();\n return (\n hostname === \"staging.openpond.ai\" ||\n hostname === \"staging-api.openpond.ai\" ||\n hostname.endsWith(\".staging-api.openpond.ai\")\n );\n } catch {\n return false;\n }\n}\n", "import { withVercelProtectionBypass } from \"./vercel-protection.js\";\n\nconst DEFAULT_API_TIMEOUT_MS = 30_000;\nconst DEFAULT_API_RESPONSE_BYTES = 8 * 1024 * 1024;\nexport const LONG_STREAM_API_OPTIONS = { timeoutMs: 15 * 60 * 1000, maxResponseBytes: 64 * 1024 * 1024 } as const;\n\nexport type ApiFetchOptions = RequestInit & {\n timeoutMs?: number;\n maxResponseBytes?: number;\n};\n\nexport class ApiTimeoutError extends Error {\n readonly code = \"OPENPOND_API_TIMEOUT\";\n\n constructor(readonly timeoutMs: number, readonly requestUrl: string) {\n super(`API request timed out after ${timeoutMs}ms: ${requestUrl}`);\n this.name = \"ApiTimeoutError\";\n }\n}\n\nexport class ApiResponseTooLargeError extends Error {\n readonly code = \"OPENPOND_API_RESPONSE_TOO_LARGE\";\n\n constructor(readonly maximumBytes: number, readonly requestUrl: string) {\n super(`API response exceeded ${maximumBytes} bytes: ${requestUrl}`);\n this.name = \"ApiResponseTooLargeError\";\n }\n}\n\nexport class OpenPondApiError extends Error {\n readonly code: string;\n\n constructor(\n readonly status: number,\n errorCode: string | null,\n label: string,\n readonly apiMessage: string | null = null,\n ) {\n const detail = apiMessage || errorCode;\n super(`${label} failed: ${status}${detail ? ` ${detail}` : \"\"}`);\n this.name = \"OpenPondApiError\";\n this.code = errorCode || \"OPENPOND_API_ERROR\";\n }\n}\n\nexport async function apiFetch(\n baseUrl: string,\n token: string | null,\n requestPath: string,\n options: ApiFetchOptions = {},\n): Promise<Response> {\n const { timeoutMs = DEFAULT_API_TIMEOUT_MS, maxResponseBytes = DEFAULT_API_RESPONSE_BYTES, ...init } = options;\n const requestUrl = `${baseUrl}${requestPath}`;\n const headers = withVercelProtectionBypass(requestUrl, init.headers);\n headers.set(\"Content-Type\", \"application/json\");\n const apiKey = process.env.OPENPOND_API_KEY;\n const trimmedToken = token?.trim() || \"\";\n const tokenIsApiKey = trimmedToken.startsWith(\"opk_\");\n const effectiveApiKey = apiKey || (tokenIsApiKey ? trimmedToken : null);\n if (effectiveApiKey && !headers.has(\"openpond-api-key\")) headers.set(\"openpond-api-key\", effectiveApiKey);\n if (token) {\n headers.set(\"Authorization\", tokenIsApiKey ? `ApiKey ${trimmedToken}` : `Bearer ${token}`);\n } else if (apiKey && !headers.has(\"Authorization\")) {\n headers.set(\"Authorization\", `ApiKey ${apiKey}`);\n }\n\n const timeoutController = new AbortController();\n const timeoutError = new ApiTimeoutError(timeoutMs, requestUrl);\n const timer = timeoutMs > 0\n ? setTimeout(() => timeoutController.abort(timeoutError), timeoutMs)\n : null;\n timer?.unref?.();\n const signal = composedSignal(init.signal, timeoutController.signal, timeoutMs);\n const cleanup = () => {\n if (timer) clearTimeout(timer);\n };\n\n try {\n const response = await fetch(requestUrl, { ...init, headers, signal });\n return boundedResponse(response, {\n cleanup,\n maximumBytes: maxResponseBytes,\n requestUrl,\n timeoutController,\n timeoutError,\n });\n } catch (error) {\n cleanup();\n if (timeoutController.signal.aborted) throw timeoutError;\n throw error;\n }\n}\n\nexport async function readApiJson<T>(response: Response, label: string): Promise<T> {\n let payload: T & { error?: unknown; message?: unknown };\n try {\n const text = await response.text();\n payload = (text ? JSON.parse(text) : {}) as T & { error?: unknown; message?: unknown };\n } catch (error) {\n if (error instanceof ApiTimeoutError || error instanceof ApiResponseTooLargeError) throw error;\n payload = {} as T & { error?: unknown; message?: unknown };\n }\n if (!response.ok) {\n const errorCode = typeof payload.error === \"string\" ? payload.error : null;\n const apiMessage =\n typeof payload.message === \"string\" ? payload.message : null;\n throw new OpenPondApiError(response.status, errorCode, label, apiMessage);\n }\n return payload as T;\n}\n\nfunction boundedResponse(\n response: Response,\n input: {\n cleanup: () => void;\n maximumBytes: number;\n requestUrl: string;\n timeoutController: AbortController;\n timeoutError: ApiTimeoutError;\n },\n): Response {\n if (!response.body) {\n input.cleanup();\n return response;\n }\n const contentLength = Number(response.headers.get(\"content-length\"));\n if (input.maximumBytes > 0 && Number.isFinite(contentLength) && contentLength > input.maximumBytes) {\n input.cleanup();\n void response.body.cancel();\n throw new ApiResponseTooLargeError(input.maximumBytes, input.requestUrl);\n }\n\n const reader = response.body.getReader();\n let receivedBytes = 0;\n const body = new ReadableStream<Uint8Array>({\n async pull(controller) {\n try {\n const result = await reader.read();\n if (result.done) {\n input.cleanup();\n controller.close();\n return;\n }\n receivedBytes += result.value.byteLength;\n if (input.maximumBytes > 0 && receivedBytes > input.maximumBytes) {\n input.cleanup();\n await reader.cancel();\n controller.error(new ApiResponseTooLargeError(input.maximumBytes, input.requestUrl));\n return;\n }\n controller.enqueue(result.value);\n } catch (error) {\n input.cleanup();\n controller.error(input.timeoutController.signal.aborted ? input.timeoutError : error);\n }\n },\n async cancel(reason) {\n input.cleanup();\n await reader.cancel(reason);\n },\n });\n return new Response(body, {\n headers: response.headers,\n status: response.status,\n statusText: response.statusText,\n });\n}\n\nfunction composedSignal(\n callerSignal: AbortSignal | null | undefined,\n timeoutSignal: AbortSignal,\n timeoutMs: number,\n): AbortSignal | undefined {\n if (timeoutMs <= 0) return callerSignal ?? undefined;\n return callerSignal ? AbortSignal.any([callerSignal, timeoutSignal]) : timeoutSignal;\n}\n"],
5
+ "mappings": ";AAAA,SAAS,kBAAkB;;;ACA3B,IAAM,kCAAkC;AAElC,SAAU,2BACd,YACA,cACA,MACE,OAAO,YAAY,cAAc,CAAA,IAAK,QAAQ,KAAG;AAEnD,QAAM,UAAU,IAAI,QAAQ,YAAY;AACxC,QAAM,SAAS,IAAI,iCAAiC,KAAI;AACxD,MAAI,CAAC,UAAU,CAAC,qBAAqB,UAAU;AAAG,WAAO;AACzD,UAAQ,IAAI,iCAAiC,MAAM;AACnD,SAAO;AACT;AAEA,SAAS,qBAAqB,YAAkB;AAC9C,MAAI;AACF,UAAM,WAAW,IAAI,IAAI,UAAU,EAAE,SAAS,YAAW;AACzD,WACE,aAAa,yBACb,aAAa,6BACb,SAAS,SAAS,0BAA0B;EAEhD,QAAQ;AACN,WAAO;EACT;AACF;;;ACxBA,IAAM,yBAAyB;AAC/B,IAAM,6BAA6B,IAAI,OAAO;AACvC,IAAM,0BAA0B,EAAE,WAAW,KAAK,KAAK,KAAM,kBAAkB,KAAK,OAAO,KAAI;AAOhG,IAAO,kBAAP,cAA+B,MAAK;EAGnB;EAA4B;EAFxC,OAAO;EAEhB,YAAqB,WAA4B,YAAkB;AACjE,UAAM,+BAA+B,SAAS,OAAO,UAAU,EAAE;AAD9C,SAAA,YAAA;AAA4B,SAAA,aAAA;AAE/C,SAAK,OAAO;EACd;;AAGI,IAAO,2BAAP,cAAwC,MAAK;EAG5B;EAA+B;EAF3C,OAAO;EAEhB,YAAqB,cAA+B,YAAkB;AACpE,UAAM,yBAAyB,YAAY,WAAW,UAAU,EAAE;AAD/C,SAAA,eAAA;AAA+B,SAAA,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"names": []
7
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "openpond-sdk",
3
- "version": "0.0.5",
3
+ "version": "0.0.7",
4
4
  "description": "Server-side TypeScript SDK for OpenPond sandboxes and agentic work",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -24,6 +24,14 @@
24
24
  "types": "./dist/types/packages/sdk/src/actions-local.d.ts",
25
25
  "import": "./dist/actions-local.js"
26
26
  },
27
+ "./project-actions": {
28
+ "types": "./dist/types/packages/sdk/src/project-actions.d.ts",
29
+ "import": "./dist/project-actions.js"
30
+ },
31
+ "./workflows": {
32
+ "types": "./dist/types/packages/sdk/src/workflows.d.ts",
33
+ "import": "./dist/workflows.js"
34
+ },
27
35
  "./package.json": "./package.json"
28
36
  },
29
37
  "publishConfig": {