openpond-sdk 0.0.5 → 0.0.6

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,247 @@
1
+ // src/project-actions.ts
2
+ import { promises as fs } from "node:fs";
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/project-actions.ts
173
+ var OpenPondProjectActionsClient = class {
174
+ #apiKey;
175
+ #apiBaseUrl;
176
+ constructor(input) {
177
+ this.#apiKey = input.apiKey;
178
+ this.#apiBaseUrl = input.apiBaseUrl.replace(/\/+$/, "");
179
+ }
180
+ async list(input) {
181
+ const response = await apiFetch(
182
+ this.#apiBaseUrl,
183
+ this.#apiKey,
184
+ projectActionPath(input.projectId, "releases", input.teamId)
185
+ );
186
+ return (await readApiJson(response, "List Project Action releases")).releases;
187
+ }
188
+ async catalog(input) {
189
+ const response = await apiFetch(
190
+ this.#apiBaseUrl,
191
+ this.#apiKey,
192
+ projectActionPath(input.projectId, "catalog", input.teamId)
193
+ );
194
+ return (await readApiJson(response, "Get Project Action catalog")).catalog;
195
+ }
196
+ async publish(input) {
197
+ const [bundle, runner] = await Promise.all([
198
+ fs.readFile(input.build.bundlePath),
199
+ fs.readFile(input.build.runnerPath)
200
+ ]);
201
+ const response = await apiFetch(
202
+ this.#apiBaseUrl,
203
+ this.#apiKey,
204
+ projectActionPath(input.projectId, "releases", input.teamId),
205
+ {
206
+ method: "POST",
207
+ body: JSON.stringify({
208
+ sourceRef: input.sourceRef,
209
+ sourceCommitSha: input.sourceCommitSha,
210
+ bundleBase64: bundle.toString("base64"),
211
+ runnerBase64: runner.toString("base64"),
212
+ registry: input.build.registry,
213
+ manifest: input.build.manifest,
214
+ metadata: input.metadata
215
+ })
216
+ }
217
+ );
218
+ return (await readApiJson(response, "Publish Project Actions")).release;
219
+ }
220
+ async run(input) {
221
+ const response = await apiFetch(
222
+ this.#apiBaseUrl,
223
+ this.#apiKey,
224
+ projectActionPath(input.projectId, `actions/${encodeURIComponent(input.actionId)}`, input.teamId),
225
+ {
226
+ method: "POST",
227
+ body: JSON.stringify({
228
+ input: input.value ?? {},
229
+ releaseId: input.releaseId,
230
+ idempotencyKey: input.idempotencyKey,
231
+ callerType: input.callerType ?? "sdk",
232
+ callerId: input.callerId
233
+ }),
234
+ signal: input.signal,
235
+ timeoutMs: 15 * 60 * 1e3
236
+ }
237
+ );
238
+ return (await readApiJson(response, "Run Project Action")).invocation;
239
+ }
240
+ };
241
+ function projectActionPath(projectId, suffix, teamId) {
242
+ return `/v1/project-actions/${encodeURIComponent(projectId)}/${suffix}?teamId=${encodeURIComponent(teamId)}`;
243
+ }
244
+ export {
245
+ OpenPondProjectActionsClient
246
+ };
247
+ //# sourceMappingURL=project-actions.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../src/project-actions.ts", "../../cloud/src/api/vercel-protection.ts", "../../cloud/src/api/core.ts"],
4
+ "sourcesContent": ["import { promises as fs } from \"node:fs\";\n\nimport { apiFetch, readApiJson } from \"@openpond/cloud/api/core\";\n\nimport type { ProjectActionBuildResult, ProjectActionRegistry } from \"../../actions/src/types.js\";\n\nexport type ProjectActionRelease = {\n id: string;\n projectId: string;\n sourceCommitSha: string;\n bundleHash: string;\n registryHash: string;\n status: string;\n createdAt: string;\n};\n\nexport type HostedProjectActionCatalog = {\n releaseId: string;\n sourceCommitSha: string;\n bundleHash: string;\n registryHash: string;\n registry: ProjectActionRegistry;\n};\n\nexport type ProjectActionInvocation<TOutput = Record<string, unknown>> = {\n id: string;\n releaseId: string;\n projectId: string;\n actionId: string;\n status: \"running\" | \"succeeded\" | \"failed\";\n resultJson: TOutput;\n traceJson: Record<string, unknown>[];\n outputJson: Record<string, unknown>[];\n failureCode?: string | null;\n failureMessage?: string | null;\n};\n\ntype ProjectActionClientInput = {\n apiKey: string;\n apiBaseUrl: string;\n};\n\nexport class OpenPondProjectActionsClient {\n readonly #apiKey: string;\n readonly #apiBaseUrl: string;\n\n constructor(input: ProjectActionClientInput) {\n this.#apiKey = input.apiKey;\n this.#apiBaseUrl = input.apiBaseUrl.replace(/\\/+$/, \"\");\n }\n\n async list(input: { projectId: string; teamId: string }): Promise<ProjectActionRelease[]> {\n const response = await apiFetch(\n this.#apiBaseUrl,\n this.#apiKey,\n projectActionPath(input.projectId, \"releases\", input.teamId),\n );\n return (await readApiJson<{ releases: ProjectActionRelease[] }>(response, \"List Project Action releases\")).releases;\n }\n\n async catalog(input: { projectId: string; teamId: string }): Promise<HostedProjectActionCatalog> {\n const response = await apiFetch(\n this.#apiBaseUrl,\n this.#apiKey,\n projectActionPath(input.projectId, \"catalog\", input.teamId),\n );\n return (await readApiJson<{ catalog: HostedProjectActionCatalog }>(response, \"Get Project Action catalog\")).catalog;\n }\n\n async publish(input: {\n projectId: string;\n teamId: string;\n sourceRef: string;\n sourceCommitSha: string;\n build: ProjectActionBuildResult;\n metadata?: Record<string, unknown>;\n }): Promise<ProjectActionRelease> {\n const [bundle, runner] = await Promise.all([\n fs.readFile(input.build.bundlePath),\n fs.readFile(input.build.runnerPath),\n ]);\n const response = await apiFetch(\n this.#apiBaseUrl,\n this.#apiKey,\n projectActionPath(input.projectId, \"releases\", input.teamId),\n {\n method: \"POST\",\n body: JSON.stringify({\n sourceRef: input.sourceRef,\n sourceCommitSha: input.sourceCommitSha,\n bundleBase64: bundle.toString(\"base64\"),\n runnerBase64: runner.toString(\"base64\"),\n registry: input.build.registry,\n manifest: input.build.manifest,\n metadata: input.metadata,\n }),\n },\n );\n return (await readApiJson<{ release: ProjectActionRelease }>(response, \"Publish Project Actions\")).release;\n }\n\n async run<TOutput = Record<string, unknown>>(input: {\n projectId: string;\n teamId: string;\n actionId: string;\n value?: Record<string, unknown>;\n releaseId?: string;\n idempotencyKey?: string;\n callerType?: \"sdk\" | \"work\" | \"scheduled_work\" | \"website\" | \"internal\";\n callerId?: string;\n signal?: AbortSignal;\n }): Promise<ProjectActionInvocation<TOutput>> {\n const response = await apiFetch(\n this.#apiBaseUrl,\n this.#apiKey,\n projectActionPath(input.projectId, `actions/${encodeURIComponent(input.actionId)}`, input.teamId),\n {\n method: \"POST\",\n body: JSON.stringify({\n input: input.value ?? {},\n releaseId: input.releaseId,\n idempotencyKey: input.idempotencyKey,\n callerType: input.callerType ?? \"sdk\",\n callerId: input.callerId,\n }),\n signal: input.signal,\n timeoutMs: 15 * 60 * 1000,\n },\n );\n return (await readApiJson<{ invocation: ProjectActionInvocation<TOutput> }>(response, \"Run Project Action\")).invocation;\n }\n}\n\nfunction projectActionPath(projectId: string, suffix: string, teamId: string): string {\n return `/v1/project-actions/${encodeURIComponent(projectId)}/${suffix}?teamId=${encodeURIComponent(teamId)}`;\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,YAAY,UAAU;;;ACA/B,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;EAGn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AAM,MAAM;AAAA,MAChG;AAAA,QACE,QAAQ;AAAA,QACR,MAAM,KAAK,UAAU;AAAA,UACnB,OAAO,MAAM,SAAS,CAAC;AAAA,UACvB,WAAW,MAAM;AAAA,UACjB,gBAAgB,MAAM;AAAA,UACtB,YAAY,MAAM,cAAc;AAAA,UAChC,UAAU,MAAM;AAAA,QAClB,CAAC;AAAA,QACD,QAAQ,MAAM;AAAA,QACd,WAAW,KAAK,KAAK;AAAA,MACvB;AAAA,IACF;AACA,YAAQ,MAAM,YAA8D,UAAU,oBAAoB,GAAG;AAAA,EAC/G;AACF;AAEA,SAAS,kBAAkB,WAAmB,QAAgB,QAAwB;AACpF,SAAO,uBAAuB,mBAAmB,SAAS,CAAC,IAAI,MAAM,WAAW,mBAAmB,MAAM,CAAC;AAC5G;",
6
+ "names": []
7
+ }
@@ -1,14 +1,18 @@
1
1
  import { type OpenPondSandboxClient } from "@openpond/cloud/sandbox/client";
2
2
  import { OpenPondWorkClient } from "./work.js";
3
+ import { OpenPondProjectActionsClient } from "./project-actions.js";
3
4
  import type { OpenPondClientOptions } from "./types.js";
4
5
  export declare class OpenPondClient {
5
6
  readonly sandboxes: OpenPondSandboxClient;
6
7
  readonly work: OpenPondWorkClient;
8
+ readonly actions: OpenPondProjectActionsClient;
7
9
  constructor(options: OpenPondClientOptions);
8
10
  }
9
11
  export declare function createOpenPondClient(options: OpenPondClientOptions): OpenPondClient;
10
12
  export type { OpenPondClientOptions } from "./types.js";
11
13
  export { OpenPondWorkClient } from "./work.js";
14
+ export { OpenPondProjectActionsClient } from "./project-actions.js";
15
+ export type { HostedProjectActionCatalog, ProjectActionInvocation, ProjectActionRelease, } from "./project-actions.js";
12
16
  export { OpenPondApiError } from "@openpond/cloud/api/core";
13
17
  export type { OpenPondWorkEvent, OpenPondWorkCleanup, OpenPondWorkHistoryMessage, OpenPondWorkInputFile, OpenPondWorkLifecycle, OpenPondWorkOutput, OpenPondWorkOutputPersistenceContext, OpenPondWorkRunInput, OpenPondWorkRunResult, } from "./work.js";
14
18
  export * from "@openpond/cloud/sandbox/client";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,qBAAqB,EAC3B,MAAM,gCAAgC,CAAC;AAGxC,OAAO,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAC;AAC/C,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAC;AAExD,qBAAa,cAAc;IACzB,QAAQ,CAAC,SAAS,EAAE,qBAAqB,CAAC;IAC1C,QAAQ,CAAC,IAAI,EAAE,kBAAkB,CAAC;gBAEtB,OAAO,EAAE,qBAAqB;CAmB3C;AAED,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,qBAAqB,GAAG,cAAc,CAEnF;AAED,YAAY,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAC;AACxD,OAAO,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAC;AAC/C,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAC5D,YAAY,EACV,iBAAiB,EACjB,mBAAmB,EACnB,0BAA0B,EAC1B,qBAAqB,EACrB,qBAAqB,EACrB,kBAAkB,EAClB,oCAAoC,EACpC,oBAAoB,EACpB,qBAAqB,GACtB,MAAM,WAAW,CAAC;AAEnB,cAAc,gCAAgC,CAAC;AAC/C,cAAc,+BAA+B,CAAC;AAC9C,OAAO,EACL,cAAc,EACd,iBAAiB,EACjB,gBAAgB,EAChB,mBAAmB,EACnB,uBAAuB,EACvB,kBAAkB,EAClB,oBAAoB,GACrB,MAAM,6BAA6B,CAAC;AACrC,YAAY,EACV,oBAAoB,EACpB,iBAAiB,EACjB,qBAAqB,EACrB,cAAc,EACd,kBAAkB,EAClB,eAAe,EACf,WAAW,EACX,oBAAoB,EACpB,cAAc,EACd,uBAAuB,GACxB,MAAM,6BAA6B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sour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rB,cAAc,EACd,kBAAkB,EAClB,eAAe,EACf,WAAW,EACX,oBAAoB,EACpB,cAAc,EACd,uBAAuB,GACxB,MAAM,6BAA6B,CAAC"}
@@ -0,0 +1,66 @@
1
+ import type { ProjectActionBuildResult, ProjectActionRegistry } from "../../actions/src/types.js";
2
+ export type ProjectActionRelease = {
3
+ id: string;
4
+ projectId: string;
5
+ sourceCommitSha: string;
6
+ bundleHash: string;
7
+ registryHash: string;
8
+ status: string;
9
+ createdAt: string;
10
+ };
11
+ export type HostedProjectActionCatalog = {
12
+ releaseId: string;
13
+ sourceCommitSha: string;
14
+ bundleHash: string;
15
+ registryHash: string;
16
+ registry: ProjectActionRegistry;
17
+ };
18
+ export type ProjectActionInvocation<TOutput = Record<string, unknown>> = {
19
+ id: string;
20
+ releaseId: string;
21
+ projectId: string;
22
+ actionId: string;
23
+ status: "running" | "succeeded" | "failed";
24
+ resultJson: TOutput;
25
+ traceJson: Record<string, unknown>[];
26
+ outputJson: Record<string, unknown>[];
27
+ failureCode?: string | null;
28
+ failureMessage?: string | null;
29
+ };
30
+ type ProjectActionClientInput = {
31
+ apiKey: string;
32
+ apiBaseUrl: string;
33
+ };
34
+ export declare class OpenPondProjectActionsClient {
35
+ #private;
36
+ constructor(input: ProjectActionClientInput);
37
+ list(input: {
38
+ projectId: string;
39
+ teamId: string;
40
+ }): Promise<ProjectActionRelease[]>;
41
+ catalog(input: {
42
+ projectId: string;
43
+ teamId: string;
44
+ }): Promise<HostedProjectActionCatalog>;
45
+ publish(input: {
46
+ projectId: string;
47
+ teamId: string;
48
+ sourceRef: string;
49
+ sourceCommitSha: string;
50
+ build: ProjectActionBuildResult;
51
+ metadata?: Record<string, unknown>;
52
+ }): Promise<ProjectActionRelease>;
53
+ run<TOutput = Record<string, unknown>>(input: {
54
+ projectId: string;
55
+ teamId: string;
56
+ actionId: string;
57
+ value?: Record<string, unknown>;
58
+ releaseId?: string;
59
+ idempotencyKey?: string;
60
+ callerType?: "sdk" | "work" | "scheduled_work" | "website" | "internal";
61
+ callerId?: string;
62
+ signal?: AbortSignal;
63
+ }): Promise<ProjectActionInvocation<TOutput>>;
64
+ }
65
+ export {};
66
+ //# sourceMappingURL=project-actions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"project-actions.d.ts","sourceRoot":"","sources":["../../../../../src/project-actions.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,wBAAwB,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AAElG,MAAM,MAAM,oBAAoB,GAAG;IACjC,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,MAAM,CAAC;IAClB,eAAe,EAAE,MAAM,CAAC;IACxB,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,MAAM,CAAC;IACrB,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,0BAA0B,GAAG;IACvC,SAAS,EAAE,MAAM,CAAC;IAClB,eAAe,EAAE,MAAM,CAAC;IACxB,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,qBAAqB,CAAC;CACjC,CAAC;AAEF,MAAM,MAAM,uBAAuB,CAAC,OAAO,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,IAAI;IACvE,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,SAAS,GAAG,WAAW,GAAG,QAAQ,CAAC;IAC3C,UAAU,EAAE,OAAO,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,CAAC;IACrC,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,CAAC;IACtC,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC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AAC;KACtB,GAAG,OAAO,CAAC,uBAAuB,CAAC,OAAO,CAAC,CAAC;CAoB9C"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "openpond-sdk",
3
- "version": "0.0.5",
3
+ "version": "0.0.6",
4
4
  "description": "Server-side TypeScript SDK for OpenPond sandboxes and agentic work",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -24,6 +24,10 @@
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
+ },
27
31
  "./package.json": "./package.json"
28
32
  },
29
33
  "publishConfig": {