@prisma/compute-sdk 0.5.0 → 0.7.0
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.
- package/README.md +90 -55
- package/dist/compute-client.d.ts +2 -2
- package/dist/compute-client.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/compute-client.ts +2 -2
package/README.md
CHANGED
|
@@ -106,11 +106,15 @@ const result = await compute.deploy({
|
|
|
106
106
|
// Optional
|
|
107
107
|
envVars: { DATABASE_URL: "postgresql://..." },
|
|
108
108
|
portMapping: { http: 3000 },
|
|
109
|
-
timeoutSeconds: 120,
|
|
110
|
-
pollIntervalMs: 1000,
|
|
109
|
+
timeoutSeconds: 120, // max time to wait for "running" status
|
|
110
|
+
pollIntervalMs: 1000, // how often to check status
|
|
111
111
|
signal: abortController.signal,
|
|
112
|
-
progress: {
|
|
113
|
-
|
|
112
|
+
progress: {
|
|
113
|
+
/* DeployProgress callbacks */
|
|
114
|
+
},
|
|
115
|
+
interaction: {
|
|
116
|
+
/* DeployInteraction callbacks */
|
|
117
|
+
},
|
|
114
118
|
});
|
|
115
119
|
|
|
116
120
|
if (result.isOk()) {
|
|
@@ -120,15 +124,15 @@ if (result.isOk()) {
|
|
|
120
124
|
|
|
121
125
|
**Returns** `DeployResult`:
|
|
122
126
|
|
|
123
|
-
| Field | Type | Description
|
|
124
|
-
| ---------------- | ---------------- |
|
|
125
|
-
| `projectId` | `string` | Project ID
|
|
126
|
-
| `serviceId` | `string` | Service ID
|
|
127
|
-
| `serviceName` | `string` | Service display name
|
|
128
|
-
| `region` | `string` | Region identifier
|
|
129
|
-
| `versionId` | `string` | Created version ID
|
|
130
|
-
| `deploymentUrl` | `string` | Live URL of the deployment
|
|
131
|
-
| `resolvedConfig` | `ResolvedConfig` | Final resolved configuration
|
|
127
|
+
| Field | Type | Description |
|
|
128
|
+
| ---------------- | ---------------- | ---------------------------- |
|
|
129
|
+
| `projectId` | `string` | Project ID |
|
|
130
|
+
| `serviceId` | `string` | Service ID |
|
|
131
|
+
| `serviceName` | `string` | Service display name |
|
|
132
|
+
| `region` | `string` | Region identifier |
|
|
133
|
+
| `versionId` | `string` | Created version ID |
|
|
134
|
+
| `deploymentUrl` | `string` | Live URL of the deployment |
|
|
135
|
+
| `resolvedConfig` | `ResolvedConfig` | Final resolved configuration |
|
|
132
136
|
|
|
133
137
|
---
|
|
134
138
|
|
|
@@ -144,6 +148,18 @@ const result = await compute.updateEnv({
|
|
|
144
148
|
});
|
|
145
149
|
```
|
|
146
150
|
|
|
151
|
+
To remove an environment variable, set its value to `null`:
|
|
152
|
+
|
|
153
|
+
```ts
|
|
154
|
+
const result = await compute.updateEnv({
|
|
155
|
+
serviceId: "svc_xyz",
|
|
156
|
+
envVars: {
|
|
157
|
+
DATABASE_URL: "postgresql://new-url...", // set or update
|
|
158
|
+
OLD_SECRET: null, // remove
|
|
159
|
+
},
|
|
160
|
+
});
|
|
161
|
+
```
|
|
162
|
+
|
|
147
163
|
The service must have at least one existing version. If not, this returns a `NoExistingVersionError`.
|
|
148
164
|
|
|
149
165
|
---
|
|
@@ -161,12 +177,12 @@ const result = await compute.destroyVersion({
|
|
|
161
177
|
|
|
162
178
|
**Returns** `DestroyVersionResult`:
|
|
163
179
|
|
|
164
|
-
| Field | Type | Description
|
|
165
|
-
| ---------------- | --------- |
|
|
166
|
-
| `versionId` | `string` | The destroyed version ID
|
|
167
|
-
| `previousStatus` | `string` | Status before destruction
|
|
168
|
-
| `stopped` | `boolean` | Whether a stop was required
|
|
169
|
-
| `deleted` | `boolean` | Whether deletion succeeded
|
|
180
|
+
| Field | Type | Description |
|
|
181
|
+
| ---------------- | --------- | --------------------------- |
|
|
182
|
+
| `versionId` | `string` | The destroyed version ID |
|
|
183
|
+
| `previousStatus` | `string` | Status before destruction |
|
|
184
|
+
| `stopped` | `boolean` | Whether a stop was required |
|
|
185
|
+
| `deleted` | `boolean` | Whether deletion succeeded |
|
|
170
186
|
|
|
171
187
|
---
|
|
172
188
|
|
|
@@ -293,8 +309,8 @@ Use when your application is already built (e.g., output of `tsc`, `esbuild`, or
|
|
|
293
309
|
import { PreBuilt } from "@prisma/compute-sdk";
|
|
294
310
|
|
|
295
311
|
const strategy = new PreBuilt({
|
|
296
|
-
appPath: "./dist",
|
|
297
|
-
entrypoint: "index.js",
|
|
312
|
+
appPath: "./dist", // absolute or relative path to the build output
|
|
313
|
+
entrypoint: "index.js", // relative to appPath
|
|
298
314
|
});
|
|
299
315
|
```
|
|
300
316
|
|
|
@@ -308,8 +324,8 @@ Use when you want the SDK to bundle your application using [Bun](https://bun.sh)
|
|
|
308
324
|
import { BunBuild } from "@prisma/compute-sdk";
|
|
309
325
|
|
|
310
326
|
const strategy = new BunBuild({
|
|
311
|
-
appPath: "./my-app",
|
|
312
|
-
entrypoint: "src/index.ts",
|
|
327
|
+
appPath: "./my-app", // path to your application source
|
|
328
|
+
entrypoint: "src/index.ts", // optional: resolved from package.json "main" if omitted
|
|
313
329
|
});
|
|
314
330
|
```
|
|
315
331
|
|
|
@@ -326,9 +342,10 @@ class MyCustomBuild implements BuildStrategy {
|
|
|
326
342
|
async execute(): Promise<BuildArtifact> {
|
|
327
343
|
// Run your build process...
|
|
328
344
|
return {
|
|
329
|
-
directory: "/path/to/output",
|
|
330
|
-
entrypoint: "index.js",
|
|
331
|
-
cleanup: async () => {
|
|
345
|
+
directory: "/path/to/output", // absolute path to the built files
|
|
346
|
+
entrypoint: "index.js", // relative to directory, posix separators
|
|
347
|
+
cleanup: async () => {
|
|
348
|
+
// optional: called after archiving
|
|
332
349
|
// clean up temp files
|
|
333
350
|
},
|
|
334
351
|
};
|
|
@@ -343,7 +360,9 @@ All `ComputeClient` methods return `Result<T, E>` from the [`better-result`](htt
|
|
|
343
360
|
### Checking results
|
|
344
361
|
|
|
345
362
|
```ts
|
|
346
|
-
const result = await compute.deploy({
|
|
363
|
+
const result = await compute.deploy({
|
|
364
|
+
/* ... */
|
|
365
|
+
});
|
|
347
366
|
|
|
348
367
|
// Pattern 1: isOk / isErr
|
|
349
368
|
if (result.isOk()) {
|
|
@@ -363,25 +382,27 @@ result.match({
|
|
|
363
382
|
|
|
364
383
|
Every error extends `TaggedError` and has a `_tag` discriminant for pattern matching:
|
|
365
384
|
|
|
366
|
-
| Error class | `_tag`
|
|
367
|
-
| ------------------------ |
|
|
368
|
-
| `AuthenticationError` | `"AuthenticationError"`
|
|
369
|
-
| `ApiError` | `"ApiError"`
|
|
370
|
-
| `MissingArgumentError` | `"MissingArgumentError"`
|
|
371
|
-
| `BuildError` | `"BuildError"`
|
|
372
|
-
| `ArtifactError` | `"ArtifactError"`
|
|
373
|
-
| `TimeoutError` | `"TimeoutError"`
|
|
374
|
-
| `VersionFailedError` | `"VersionFailedError"`
|
|
375
|
-
| `NoExistingVersionError` | `"NoExistingVersionError"
|
|
376
|
-
| `CancelledError` | `"CancelledError"`
|
|
377
|
-
| `DestroyAggregateError` | `"DestroyAggregateError"`
|
|
385
|
+
| Error class | `_tag` | Description |
|
|
386
|
+
| ------------------------ | -------------------------- | --------------------------------------------------------- |
|
|
387
|
+
| `AuthenticationError` | `"AuthenticationError"` | API returned HTTP 401 |
|
|
388
|
+
| `ApiError` | `"ApiError"` | API returned a non-401 error |
|
|
389
|
+
| `MissingArgumentError` | `"MissingArgumentError"` | A required argument was not provided |
|
|
390
|
+
| `BuildError` | `"BuildError"` | Build strategy failed |
|
|
391
|
+
| `ArtifactError` | `"ArtifactError"` | Archive creation or upload failed |
|
|
392
|
+
| `TimeoutError` | `"TimeoutError"` | Version didn't reach target status in time |
|
|
393
|
+
| `VersionFailedError` | `"VersionFailedError"` | Version transitioned to `"failed"` status |
|
|
394
|
+
| `NoExistingVersionError` | `"NoExistingVersionError"` | `updateEnv` called on a service with no prior deployments |
|
|
395
|
+
| `CancelledError` | `"CancelledError"` | Operation cancelled via `AbortSignal` |
|
|
396
|
+
| `DestroyAggregateError` | `"DestroyAggregateError"` | Some versions failed during `destroyService` |
|
|
378
397
|
|
|
379
398
|
### Matching specific errors
|
|
380
399
|
|
|
381
400
|
```ts
|
|
382
401
|
import { matchError, ApiError, AuthenticationError } from "@prisma/compute-sdk";
|
|
383
402
|
|
|
384
|
-
const result = await compute.deploy({
|
|
403
|
+
const result = await compute.deploy({
|
|
404
|
+
/* ... */
|
|
405
|
+
});
|
|
385
406
|
|
|
386
407
|
if (result.isErr()) {
|
|
387
408
|
matchError(result.error, {
|
|
@@ -496,13 +517,27 @@ await compute.deploy({
|
|
|
496
517
|
await compute.destroyService({
|
|
497
518
|
serviceId: "svc_xyz",
|
|
498
519
|
progress: {
|
|
499
|
-
onStoppingVersions(versionIds) {
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
520
|
+
onStoppingVersions(versionIds) {
|
|
521
|
+
/* ... */
|
|
522
|
+
},
|
|
523
|
+
onVersionStopped(versionId) {
|
|
524
|
+
/* ... */
|
|
525
|
+
},
|
|
526
|
+
onAllVersionsStopped() {
|
|
527
|
+
/* ... */
|
|
528
|
+
},
|
|
529
|
+
onDeletingVersions(versionIds) {
|
|
530
|
+
/* ... */
|
|
531
|
+
},
|
|
532
|
+
onVersionDeleted(versionId) {
|
|
533
|
+
/* ... */
|
|
534
|
+
},
|
|
535
|
+
onAllVersionsDeleted() {
|
|
536
|
+
/* ... */
|
|
537
|
+
},
|
|
538
|
+
onServiceDeleted(serviceId) {
|
|
539
|
+
/* ... */
|
|
540
|
+
},
|
|
506
541
|
},
|
|
507
542
|
});
|
|
508
543
|
```
|
|
@@ -532,14 +567,14 @@ if (result.isErr() && result.error._tag === "CancelledError") {
|
|
|
532
567
|
|
|
533
568
|
```ts
|
|
534
569
|
import type {
|
|
535
|
-
ProjectInfo,
|
|
536
|
-
ServiceInfo,
|
|
537
|
-
ServiceDetail,
|
|
538
|
-
VersionInfo,
|
|
539
|
-
VersionDetail,
|
|
540
|
-
RegionInfo,
|
|
541
|
-
ResolvedConfig,
|
|
542
|
-
PortMapping,
|
|
570
|
+
ProjectInfo, // { id, name, defaultRegion? }
|
|
571
|
+
ServiceInfo, // { id, name, region, projectId, createdAt? }
|
|
572
|
+
ServiceDetail, // ServiceInfo & { latestVersionId? }
|
|
573
|
+
VersionInfo, // { id, status, createdAt, previewDomain? }
|
|
574
|
+
VersionDetail, // VersionInfo & { envVars? }
|
|
575
|
+
RegionInfo, // { id, displayName }
|
|
576
|
+
ResolvedConfig, // { projectId, serviceId, serviceName, region, portMapping? }
|
|
577
|
+
PortMapping, // { http?: number | null }
|
|
543
578
|
} from "@prisma/compute-sdk";
|
|
544
579
|
```
|
|
545
580
|
|
package/dist/compute-client.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ export interface DeployOptions {
|
|
|
10
10
|
serviceId?: string;
|
|
11
11
|
serviceName?: string;
|
|
12
12
|
region?: string;
|
|
13
|
-
envVars?: Record<string, string>;
|
|
13
|
+
envVars?: Record<string, string | null>;
|
|
14
14
|
portMapping?: PortMapping;
|
|
15
15
|
timeoutSeconds?: number;
|
|
16
16
|
pollIntervalMs?: number;
|
|
@@ -23,7 +23,7 @@ export interface DeployOptions {
|
|
|
23
23
|
export interface UpdateEnvOptions {
|
|
24
24
|
projectId?: string;
|
|
25
25
|
serviceId?: string;
|
|
26
|
-
envVars?: Record<string, string>;
|
|
26
|
+
envVars?: Record<string, string | null>;
|
|
27
27
|
portMapping?: PortMapping;
|
|
28
28
|
timeoutSeconds?: number;
|
|
29
29
|
pollIntervalMs?: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compute-client.d.ts","sourceRoot":"","sources":["../src/compute-client.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AACtE,OAAO,EAAgB,MAAM,EAAE,MAAM,eAAe,CAAC;AAQrD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACzD,OAAO,KAAK,EACV,iBAAiB,EACjB,cAAc,EAC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AC;IAoB5C,aAAa,CACjB,OAAO,EAAE,oBAAoB,GAC5B,OAAO,CAAC,MAAM,CAAC,WAAW,EAAE,eAAe,CAAC,CAAC;IAuB1C,WAAW,CACf,OAAO,EAAE,kBAAkB,GAC1B,OAAO,CAAC,MAAM,CAAC,aAAa,EAAE,eAAe,CAAC,CAAC;IAkB5C,aAAa,CACjB,OAAO,EAAE,oBAAoB,GAC5B,OAAO,CAAC,MAAM,CAAC,IAAI,EAAE,eAAe,CAAC,CAAC;IAWnC,YAAY,CAChB,OAAO,EAAE,mBAAmB,GAC3B,OAAO,CAAC,MAAM,CAAC,WAAW,EAAE,EAAE,eAAe,CAAC,CAAC;IAkC5C,WAAW,CACf,OAAO,EAAE,kBAAkB,GAC1B,OAAO,CAAC,MAAM,CAAC,aAAa,EAAE,eAAe,CAAC,CAAC;IAiB5C,YAAY,CAChB,OAAO,EAAE,mBAAmB,GAC3B,OAAO,CAAC,MAAM,CAAC,IAAI,EAAE,eAAe,CAAC,CAAC;IAWnC,WAAW,CACf,OAAO,EAAE,kBAAkB,GAC1B,OAAO,CAAC,MAAM,CAAC,IAAI,EAAE,eAAe,CAAC,CAAC;IAWnC,aAAa,CACjB,OAAO,EAAE,oBAAoB,GAC5B,OAAO,CAAC,MAAM,CAAC,IAAI,EAAE,eAAe,CAAC,CAAC;IAWnC,OAAO,CACX,OAAO,EAAE,cAAc,GACtB,OAAO,CAAC,MAAM,CAAC,aAAa,EAAE,YAAY,CAAC,CAAC;CAmZhD"}
|
package/package.json
CHANGED
package/src/compute-client.ts
CHANGED
|
@@ -59,7 +59,7 @@ export interface DeployOptions {
|
|
|
59
59
|
serviceId?: string;
|
|
60
60
|
serviceName?: string;
|
|
61
61
|
region?: string;
|
|
62
|
-
envVars?: Record<string, string>;
|
|
62
|
+
envVars?: Record<string, string | null>;
|
|
63
63
|
portMapping?: PortMapping;
|
|
64
64
|
timeoutSeconds?: number;
|
|
65
65
|
pollIntervalMs?: number;
|
|
@@ -73,7 +73,7 @@ export interface DeployOptions {
|
|
|
73
73
|
export interface UpdateEnvOptions {
|
|
74
74
|
projectId?: string;
|
|
75
75
|
serviceId?: string;
|
|
76
|
-
envVars?: Record<string, string>;
|
|
76
|
+
envVars?: Record<string, string | null>;
|
|
77
77
|
portMapping?: PortMapping;
|
|
78
78
|
timeoutSeconds?: number;
|
|
79
79
|
pollIntervalMs?: number;
|