@run402/sdk 4.117.1 → 4.117.2
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
CHANGED
|
@@ -284,7 +284,7 @@ const status = await r.credentials.projectKeys.status(projectId); // redacted
|
|
|
284
284
|
const serviceKey = process.env.RUN402_SERVICE_KEY!;
|
|
285
285
|
await r.credentials.projectKeys.import(projectId, { serviceKey });
|
|
286
286
|
const keys = await r.credentials.projectKeys.export(projectId, { reveal: true });
|
|
287
|
-
await r.credentials.projectKeys.
|
|
287
|
+
await r.credentials.projectKeys.delete(projectId);
|
|
288
288
|
```
|
|
289
289
|
|
|
290
290
|
`status`/`list` report `source: "local_cache"`, profile/cache-path provenance, key presence, prefixes, and fingerprints without full secrets. `export(..., { reveal: true })` is the only SDK helper that emits cached secret key material.
|
|
@@ -314,7 +314,7 @@ The `CredentialsProvider` interface has two required methods (`getAuth`, `getPro
|
|
|
314
314
|
| `projects` | `provision`, `delete`, `list`, `get`, `use`, `active`, `sql`, `rest`, `validateExpose`, `applyExpose`, `getExpose`, `getUsage`, `getSchema`, `info`, `keys`, `pin`, `getQuote`. `list`/`get`/`use` are server-authoritative; local key reads are moving to `credentials.projectKeys`. |
|
|
315
315
|
| `snapshots` | Internal project restore points: `create`, `list`, `get`, `restorePlan`, `restore`, `delete`. Restore is a two-step plan/confirm handshake. |
|
|
316
316
|
| `branches` | Contained project data branches: `create`, `list`, `renew`, `delete`. Branches default to expiring, noindex, sandboxed-email copies. |
|
|
317
|
-
| `credentials` | `projectKeys.list`, `projectKeys.status`, `projectKeys.import`, `projectKeys.export`, `projectKeys.
|
|
317
|
+
| `credentials` | `projectKeys.list`, `projectKeys.status`, `projectKeys.import`, `projectKeys.export`, `projectKeys.delete` for explicit local project-key cache management. |
|
|
318
318
|
| `r.project(id).apply` | **The unified apply primitive.** Resolve `const project = await r.project(id)`, then use `project.apply(spec)` for staged multi-resource writes (release slices + assets slice). Sub-methods: `.plan`, `.start`, `.resume`, `.upload`, `.commit`, `.rehearse`, `.status`, `.list`, `.events`, `.resolve`, `.getRelease`, `.getActiveRelease`, `.diff`. Underlying engine routes to `/apply/v1/*`. |
|
|
319
319
|
| `ci` | GitHub Actions OIDC federation over `/ci/v1/*`: `createBinding`, `listBindings`, `getBinding`, `revokeBinding`, `exchangeToken`; plus canonical delegation helpers. `createBinding` accepts `asset_key_scopes` for per-key CI write authorization. |
|
|
320
320
|
| `r.project(id).sites` | `deployDir` — Node entry only (`@run402/sdk/node`); thin wrapper over `r.project(id).apply({ site: dir(...) })` |
|
|
@@ -112,6 +112,6 @@ export declare class ProjectKeysCache {
|
|
|
112
112
|
status(projectId: string): Promise<ProjectKeyCacheStatus>;
|
|
113
113
|
import(projectId: string, opts: ProjectKeyCacheImportOptions): Promise<ProjectKeyCacheMutationResult>;
|
|
114
114
|
export(projectId: string, opts?: ProjectKeyCacheExportOptions): Promise<ProjectKeyCacheExportResult>;
|
|
115
|
-
|
|
115
|
+
delete(projectId: string): Promise<ProjectKeyCacheMutationResult>;
|
|
116
116
|
}
|
|
117
117
|
//# sourceMappingURL=credentials.d.ts.map
|
package/dist/namespaces/org.d.ts
CHANGED
|
@@ -281,8 +281,8 @@ export declare class OrgLightningReceiver {
|
|
|
281
281
|
get(input: {
|
|
282
282
|
orgId: string;
|
|
283
283
|
}): Promise<LightningReceiver>;
|
|
284
|
-
/**
|
|
285
|
-
|
|
284
|
+
/** Delete the receiver (`DELETE …/lightning-receiver`); admin/owner plus step-up. Warns about releases still priced on Lightning. */
|
|
285
|
+
delete(input: {
|
|
286
286
|
orgId: string;
|
|
287
287
|
}): Promise<LightningReceiverRemoved>;
|
|
288
288
|
}
|
package/dist/namespaces/org.js
CHANGED
|
@@ -328,10 +328,10 @@ export class OrgLightningReceiver {
|
|
|
328
328
|
context: "reading org Lightning receiver",
|
|
329
329
|
});
|
|
330
330
|
}
|
|
331
|
-
/**
|
|
332
|
-
async
|
|
331
|
+
/** Delete the receiver (`DELETE …/lightning-receiver`); admin/owner plus step-up. Warns about releases still priced on Lightning. */
|
|
332
|
+
async delete(input) {
|
|
333
333
|
if (!input?.orgId)
|
|
334
|
-
throw new LocalError("orgs.lightningReceiver.
|
|
334
|
+
throw new LocalError("orgs.lightningReceiver.delete requires { orgId }", "deleting org Lightning receiver");
|
|
335
335
|
return this.client.request(`/orgs/v1/${encodeURIComponent(input.orgId)}/lightning-receiver`, {
|
|
336
336
|
method: "DELETE",
|
|
337
337
|
context: "removing org Lightning receiver",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@run402/sdk",
|
|
3
|
-
"version": "4.117.
|
|
3
|
+
"version": "4.117.2",
|
|
4
4
|
"description": "Typed TypeScript client for the Run402 API. Kernel shared by the run402-mcp server, the run402 CLI, and user-deployed run402 functions.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|