@operator-labs/sdk 0.1.6 → 0.1.8
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 +78 -7
- package/dist/index.d.ts +4 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -0
- package/dist/index.js.map +1 -1
- package/dist/resources/secrets.d.ts +60 -0
- package/dist/resources/secrets.d.ts.map +1 -0
- package/dist/resources/secrets.js +83 -0
- package/dist/resources/secrets.js.map +1 -0
- package/dist/types.d.ts +23 -0
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
# @operator-labs/sdk
|
|
2
2
|
|
|
3
|
-
TypeScript SDK for [Operator.io](https://operator.io).
|
|
3
|
+
TypeScript SDK for [Operator.io](https://operator.io).
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
[Operator.io](https://operator.io) is the API for building, managing, and hosting [OpenClaw](https://openclaw.ai) agents using AI.
|
|
6
|
+
|
|
7
|
+
Use `op.chat` when you want [Operator.io](https://operator.io) to create agents, update files and skills, inspect instances, run web searches, or handle multi-step work.
|
|
8
|
+
|
|
9
|
+
Use the typed methods for direct control over instances, config, automations, and webhooks.
|
|
6
10
|
|
|
7
11
|
## Installation
|
|
8
12
|
|
|
@@ -21,12 +25,17 @@ const op = new Operator({ apiKey: "ck_live_..." });
|
|
|
21
25
|
const status = await op.health();
|
|
22
26
|
console.log(status.planName, status.email);
|
|
23
27
|
|
|
24
|
-
//
|
|
25
|
-
const { chatId, text } = await op.chat.send(
|
|
28
|
+
// Ask Operator.io to build and manage agents for you
|
|
29
|
+
const { chatId, text } = await op.chat.send(
|
|
30
|
+
"Create a new OpenClaw agent for outbound sales research and install the skills it needs."
|
|
31
|
+
);
|
|
26
32
|
console.log(text);
|
|
27
33
|
|
|
28
34
|
// Continue the conversation
|
|
29
|
-
const followUp = await op.chat.send(
|
|
35
|
+
const followUp = await op.chat.send(
|
|
36
|
+
"Now update its state files so it posts a daily summary at 9am Bangkok time.",
|
|
37
|
+
{ chatId }
|
|
38
|
+
);
|
|
30
39
|
console.log(followUp.text);
|
|
31
40
|
```
|
|
32
41
|
|
|
@@ -34,13 +43,13 @@ console.log(followUp.text);
|
|
|
34
43
|
|
|
35
44
|
```ts
|
|
36
45
|
const op = new Operator({
|
|
37
|
-
apiKey: "ck_live_...",
|
|
46
|
+
apiKey: "ck_live_...", // Required: Chat API key from the dashboard
|
|
38
47
|
});
|
|
39
48
|
```
|
|
40
49
|
|
|
41
50
|
## Getting an API Key
|
|
42
51
|
|
|
43
|
-
1. Go to **Settings > API Keys** in the Operator dashboard
|
|
52
|
+
1. Go to **Settings > API Keys** in the [Operator.io](https://operator.io) dashboard
|
|
44
53
|
2. Click **Create Key**
|
|
45
54
|
3. Copy the key (starts with `ck_live_` or `ck_dev_`)
|
|
46
55
|
|
|
@@ -55,6 +64,8 @@ const status = await op.health();
|
|
|
55
64
|
|
|
56
65
|
### Chat
|
|
57
66
|
|
|
67
|
+
`op.chat` is the main agent surface. Use it when you want [Operator.io](https://operator.io) to create agents, inspect an instance, read or mutate files, install or author skills, change agent behavior, run web research, or coordinate multi-step work. Use the typed resources below when you want direct control over common API objects.
|
|
68
|
+
|
|
58
69
|
```ts
|
|
59
70
|
// List all chats
|
|
60
71
|
const chats = await op.chat.list();
|
|
@@ -66,10 +77,31 @@ const detail = await op.chat.get("chat-uuid");
|
|
|
66
77
|
const { chatId, text } = await op.chat.send("Create a new instance called my-agent");
|
|
67
78
|
console.log(text);
|
|
68
79
|
|
|
80
|
+
// Update agent files and skills through the agent
|
|
81
|
+
const edit = await op.chat.send(
|
|
82
|
+
"Open the my-agent instance, update its core files for a stricter review style, install any missing skills, and summarize what changed."
|
|
83
|
+
);
|
|
84
|
+
console.log(edit.text);
|
|
85
|
+
|
|
69
86
|
// Continue a conversation
|
|
70
87
|
const followUp = await op.chat.send("Now check its logs", { chatId });
|
|
71
88
|
console.log(followUp.text);
|
|
72
89
|
|
|
90
|
+
// Stream a response token by token
|
|
91
|
+
const stream = await op.chat.stream("List my instances and their status");
|
|
92
|
+
for await (const event of stream) {
|
|
93
|
+
if (event.type === "text-delta") process.stdout.write(event.text);
|
|
94
|
+
if (event.type === "tool-call") console.log(`\n[Tool: ${event.toolName}]`);
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
// Collect the full streamed response as a string
|
|
98
|
+
const text = await (await op.chat.stream("Summarize my setup")).toText();
|
|
99
|
+
|
|
100
|
+
// Iterate over text chunks only
|
|
101
|
+
for await (const chunk of (await op.chat.stream("Hello")).textStream()) {
|
|
102
|
+
process.stdout.write(chunk);
|
|
103
|
+
}
|
|
104
|
+
|
|
73
105
|
// Update title / delete
|
|
74
106
|
await op.chat.updateTitle("chat-uuid", "Deployment Chat");
|
|
75
107
|
await op.chat.delete("chat-uuid");
|
|
@@ -77,6 +109,8 @@ await op.chat.delete("chat-uuid");
|
|
|
77
109
|
|
|
78
110
|
### Instances
|
|
79
111
|
|
|
112
|
+
Use `op.instances` for direct lifecycle and config management. If you want [Operator.io](https://operator.io) to inspect or evolve an instance filesystem or state, use `op.chat.send(...)`.
|
|
113
|
+
|
|
80
114
|
```ts
|
|
81
115
|
// List instances
|
|
82
116
|
const instances = await op.instances.list();
|
|
@@ -153,6 +187,43 @@ await op.webhooks.update(webhook.id, { enabled: false });
|
|
|
153
187
|
await op.webhooks.delete(webhook.id);
|
|
154
188
|
```
|
|
155
189
|
|
|
190
|
+
### Secrets (Environment Variables)
|
|
191
|
+
|
|
192
|
+
Secrets are encrypted environment variables stored in Azure Key Vault. Your agents can access them at runtime. The raw value is only returned once, at creation time.
|
|
193
|
+
|
|
194
|
+
```ts
|
|
195
|
+
// List all secrets (metadata only, no raw values)
|
|
196
|
+
const secrets = await op.secrets.list();
|
|
197
|
+
|
|
198
|
+
// Create a new secret (raw value returned only here)
|
|
199
|
+
const secret = await op.secrets.create({
|
|
200
|
+
name: "GITHUB_TOKEN",
|
|
201
|
+
value: "ghp_xxxxxxxxxxxx",
|
|
202
|
+
description: "GitHub personal access token",
|
|
203
|
+
});
|
|
204
|
+
console.log(secret.value); // only visible on create
|
|
205
|
+
|
|
206
|
+
// Get secret metadata
|
|
207
|
+
const meta = await op.secrets.get(secret.id);
|
|
208
|
+
console.log(meta.maskedPreview); // "ghp_****xxx"
|
|
209
|
+
|
|
210
|
+
// Update description (value cannot be changed, delete and recreate instead)
|
|
211
|
+
await op.secrets.update(secret.id, { description: "Updated description" });
|
|
212
|
+
|
|
213
|
+
// Toggle global access (available to all instances)
|
|
214
|
+
await op.secrets.setGlobal(secret.id, true);
|
|
215
|
+
|
|
216
|
+
// Grant/revoke access for a specific instance
|
|
217
|
+
await op.secrets.grantAccess(secret.id, "instance-uuid");
|
|
218
|
+
await op.secrets.revokeAccess(secret.id, "instance-uuid");
|
|
219
|
+
|
|
220
|
+
// List which instances have access
|
|
221
|
+
const { granted, available } = await op.secrets.listAccess(secret.id);
|
|
222
|
+
|
|
223
|
+
// Delete (removes from Key Vault and database)
|
|
224
|
+
await op.secrets.delete(secret.id);
|
|
225
|
+
```
|
|
226
|
+
|
|
156
227
|
## Error Handling
|
|
157
228
|
|
|
158
229
|
All API errors throw `OperatorApiError` with `status` and `body`:
|
package/dist/index.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import { ChatResource } from "./resources/chat.js";
|
|
|
2
2
|
import { InstancesResource } from "./resources/instances.js";
|
|
3
3
|
import { AutomationsResource } from "./resources/automations.js";
|
|
4
4
|
import { WebhooksResource } from "./resources/webhooks.js";
|
|
5
|
+
import { SecretsResource } from "./resources/secrets.js";
|
|
5
6
|
import type { OperatorOptions, HealthResponse } from "./types.js";
|
|
6
7
|
export declare class Operator {
|
|
7
8
|
private readonly http;
|
|
@@ -13,6 +14,8 @@ export declare class Operator {
|
|
|
13
14
|
readonly automations: AutomationsResource;
|
|
14
15
|
/** HTTP webhooks that trigger AI processing */
|
|
15
16
|
readonly webhooks: WebhooksResource;
|
|
17
|
+
/** Secrets (environment variables) — create, list, manage access */
|
|
18
|
+
readonly secrets: SecretsResource;
|
|
16
19
|
private readonly healthResource;
|
|
17
20
|
constructor(options: OperatorOptions);
|
|
18
21
|
/**
|
|
@@ -26,7 +29,7 @@ export declare class Operator {
|
|
|
26
29
|
*/
|
|
27
30
|
health(): Promise<HealthResponse>;
|
|
28
31
|
}
|
|
29
|
-
export type { OperatorOptions, HealthResponse, Chat, ChatMessage, ChatDetail, MessagePart, SendMessageOptions, SendMessageResponse, StreamEvent, Instance, CreateInstanceOptions, LogEntry, Automation, CreateAutomationOptions, UpdateAutomationOptions, Webhook, CreateWebhookOptions, UpdateWebhookOptions, } from "./types.js";
|
|
32
|
+
export type { OperatorOptions, HealthResponse, Chat, ChatMessage, ChatDetail, MessagePart, SendMessageOptions, SendMessageResponse, StreamEvent, Instance, CreateInstanceOptions, LogEntry, Automation, CreateAutomationOptions, UpdateAutomationOptions, Webhook, CreateWebhookOptions, UpdateWebhookOptions, Secret, SecretWithValue, CreateSecretOptions, SecretAccess, } from "./types.js";
|
|
30
33
|
export { OperatorApiError } from "./types.js";
|
|
31
34
|
export { ChatStream } from "./stream.js";
|
|
32
35
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AACjE,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAC3D,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAElE,qBAAa,QAAQ;IACnB,OAAO,CAAC,QA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cAAc,CAAC;CAGxC;AAGD,YAAY,EACV,eAAe,EACf,cAAc,EACd,IAAI,EACJ,WAAW,EACX,UAAU,EACV,WAAW,EACX,kBAAkB,EAClB,mBAAmB,EACnB,WAAW,EACX,QAAQ,EACR,qBAAqB,EACrB,QAAQ,EACR,UAAU,EACV,uBAAuB,EACvB,uBAAuB,EACvB,OAAO,EACP,oBAAoB,EACpB,oBAAoB,EACpB,MAAM,EACN,eAAe,EACf,mBAAmB,EACnB,YAAY,GACb,MAAM,YAAY,CAAC;AAEpB,OAAO,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAC9C,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -4,6 +4,7 @@ import { ChatResource } from "./resources/chat.js";
|
|
|
4
4
|
import { InstancesResource } from "./resources/instances.js";
|
|
5
5
|
import { AutomationsResource } from "./resources/automations.js";
|
|
6
6
|
import { WebhooksResource } from "./resources/webhooks.js";
|
|
7
|
+
import { SecretsResource } from "./resources/secrets.js";
|
|
7
8
|
export class Operator {
|
|
8
9
|
http;
|
|
9
10
|
/** Chat conversations — send messages, list history, manage threads */
|
|
@@ -14,6 +15,8 @@ export class Operator {
|
|
|
14
15
|
automations;
|
|
15
16
|
/** HTTP webhooks that trigger AI processing */
|
|
16
17
|
webhooks;
|
|
18
|
+
/** Secrets (environment variables) — create, list, manage access */
|
|
19
|
+
secrets;
|
|
17
20
|
healthResource;
|
|
18
21
|
constructor(options) {
|
|
19
22
|
this.http = new HttpClient(options);
|
|
@@ -21,6 +24,7 @@ export class Operator {
|
|
|
21
24
|
this.instances = new InstancesResource(this.http);
|
|
22
25
|
this.automations = new AutomationsResource(this.http);
|
|
23
26
|
this.webhooks = new WebhooksResource(this.http);
|
|
27
|
+
this.secrets = new SecretsResource(this.http);
|
|
24
28
|
this.healthResource = new HealthResource(this.http);
|
|
25
29
|
}
|
|
26
30
|
/**
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AACvD,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AACjE,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AACvD,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AACjE,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAC3D,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAGzD,MAAM,OAAO,QAAQ;IACF,IAAI,CAAa;IAElC,uEAAuE;IAC9D,IAAI,CAAe;IAE5B,8DAA8D;IACrD,SAAS,CAAoB;IAEtC,iCAAiC;IACxB,WAAW,CAAsB;IAE1C,+CAA+C;IACtC,QAAQ,CAAmB;IAEpC,oEAAoE;IAC3D,OAAO,CAAkB;IAEjB,cAAc,CAAiB;IAEhD,YAAY,OAAwB;QAClC,IAAI,CAAC,IAAI,GAAG,IAAI,UAAU,CAAC,OAAO,CAAC,CAAC;QACpC,IAAI,CAAC,IAAI,GAAG,IAAI,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACxC,IAAI,CAAC,SAAS,GAAG,IAAI,iBAAiB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAClD,IAAI,CAAC,WAAW,GAAG,IAAI,mBAAmB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACtD,IAAI,CAAC,QAAQ,GAAG,IAAI,gBAAgB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAChD,IAAI,CAAC,OAAO,GAAG,IAAI,eAAe,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAC9C,IAAI,CAAC,cAAc,GAAG,IAAI,cAAc,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACtD,CAAC;IAED;;;;;;;;OAQG;IACH,KAAK,CAAC,MAAM;QACV,OAAO,IAAI,CAAC,cAAc,CAAC,KAAK,EAAE,CAAC;IACrC,CAAC;CACF;AA4BD,OAAO,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAC9C,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC"}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import type { HttpClient } from "../client.js";
|
|
2
|
+
import type { Secret, SecretWithValue, CreateSecretOptions, SecretAccess } from "../types.js";
|
|
3
|
+
export declare class SecretsResource {
|
|
4
|
+
private readonly http;
|
|
5
|
+
constructor(http: HttpClient);
|
|
6
|
+
/**
|
|
7
|
+
* List all secrets (environment variables) for the authenticated user.
|
|
8
|
+
* Returns metadata only — raw values are never returned after creation.
|
|
9
|
+
*/
|
|
10
|
+
list(): Promise<Secret[]>;
|
|
11
|
+
/**
|
|
12
|
+
* Get a single secret's metadata by ID. Does not return the raw value.
|
|
13
|
+
*/
|
|
14
|
+
get(secretId: string): Promise<Secret>;
|
|
15
|
+
/**
|
|
16
|
+
* Create a new secret. The raw value is returned ONLY in this response.
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* ```ts
|
|
20
|
+
* const secret = await op.secrets.create({
|
|
21
|
+
* name: "GITHUB_TOKEN",
|
|
22
|
+
* value: "ghp_xxxxxxxxxxxx",
|
|
23
|
+
* description: "GitHub personal access token",
|
|
24
|
+
* });
|
|
25
|
+
* console.log(secret.value); // only visible now
|
|
26
|
+
* ```
|
|
27
|
+
*/
|
|
28
|
+
create(options: CreateSecretOptions): Promise<SecretWithValue>;
|
|
29
|
+
/**
|
|
30
|
+
* Update a secret's description. The value cannot be updated — delete
|
|
31
|
+
* and recreate the secret to change it.
|
|
32
|
+
*/
|
|
33
|
+
update(secretId: string, updates: {
|
|
34
|
+
description?: string;
|
|
35
|
+
}): Promise<Secret>;
|
|
36
|
+
/**
|
|
37
|
+
* Delete a secret. Removes it from Azure Key Vault and the database.
|
|
38
|
+
*/
|
|
39
|
+
delete(secretId: string): Promise<void>;
|
|
40
|
+
/**
|
|
41
|
+
* Toggle whether a secret is globally available to all instances.
|
|
42
|
+
*/
|
|
43
|
+
setGlobal(secretId: string, isGlobal: boolean): Promise<Secret>;
|
|
44
|
+
/**
|
|
45
|
+
* List instances that have access to a secret, and those available to grant.
|
|
46
|
+
*/
|
|
47
|
+
listAccess(secretId: string): Promise<{
|
|
48
|
+
granted: SecretAccess[];
|
|
49
|
+
available: SecretAccess[];
|
|
50
|
+
}>;
|
|
51
|
+
/**
|
|
52
|
+
* Grant an instance access to a secret.
|
|
53
|
+
*/
|
|
54
|
+
grantAccess(secretId: string, instanceId: string): Promise<void>;
|
|
55
|
+
/**
|
|
56
|
+
* Revoke an instance's access to a secret.
|
|
57
|
+
*/
|
|
58
|
+
revokeAccess(secretId: string, instanceId: string): Promise<void>;
|
|
59
|
+
}
|
|
60
|
+
//# sourceMappingURL=secrets.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"secrets.d.ts","sourceRoot":"","sources":["../../src/resources/secrets.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,KAAK,EACV,MAAM,EACN,eAAe,EACf,mBAAmB,EACnB,YAAY,EACb,MAAM,aAAa,CAAC;AAErB,qBAAa,eAAe;IACd,OAAO,CAAC,QAAQ,CAAC,IAAI;gBAAJ,IAAI,EAAE,UAAU;IAE7C;;;OAGG;IACG,IAAI,IAAI,OAAO,CAAC,MAAM,EAAE,CAAC;IAK/B;;OAEG;IACG,GAAG,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IAO5C;;;;;;;;;;;;OAYG;IACG,MAAM,CAAC,OAAO,EAAE,mBAAmB,GAAG,OAAO,CAAC,eAAe,CAAC;IAapE;;;OAGG;IACG,MAAM,CACV,QAAQ,EAAE,MAAM,EAChB,OAAO,EAAE;QAAE,WAAW,CAAC,EAAE,MAAM,CAAA;KAAE,GAChC,OAAO,CAAC,MAAM,CAAC;IAQlB;;OAEG;IACG,MAAM,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAI7C;;OAEG;IACG,SAAS,CAAC,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,OAAO,GAAG,OAAO,CAAC,MAAM,CAAC;IAQrE;;OAEG;IACG,UAAU,CACd,QAAQ,EAAE,MAAM,GACf,OAAO,CAAC;QAAE,OAAO,EAAE,YAAY,EAAE,CAAC;QAAC,SAAS,EAAE,YAAY,EAAE,CAAA;KAAE,CAAC;IAIlE;;OAEG;IACG,WAAW,CAAC,QAAQ,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAItE;;OAEG;IACG,YAAY,CAAC,QAAQ,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;CAGxE"}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
export class SecretsResource {
|
|
2
|
+
http;
|
|
3
|
+
constructor(http) {
|
|
4
|
+
this.http = http;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* List all secrets (environment variables) for the authenticated user.
|
|
8
|
+
* Returns metadata only — raw values are never returned after creation.
|
|
9
|
+
*/
|
|
10
|
+
async list() {
|
|
11
|
+
const data = await this.http.get("/api/secrets");
|
|
12
|
+
return data.secrets;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Get a single secret's metadata by ID. Does not return the raw value.
|
|
16
|
+
*/
|
|
17
|
+
async get(secretId) {
|
|
18
|
+
const data = await this.http.get(`/api/secrets/${secretId}`);
|
|
19
|
+
return data.secret;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Create a new secret. The raw value is returned ONLY in this response.
|
|
23
|
+
*
|
|
24
|
+
* @example
|
|
25
|
+
* ```ts
|
|
26
|
+
* const secret = await op.secrets.create({
|
|
27
|
+
* name: "GITHUB_TOKEN",
|
|
28
|
+
* value: "ghp_xxxxxxxxxxxx",
|
|
29
|
+
* description: "GitHub personal access token",
|
|
30
|
+
* });
|
|
31
|
+
* console.log(secret.value); // only visible now
|
|
32
|
+
* ```
|
|
33
|
+
*/
|
|
34
|
+
async create(options) {
|
|
35
|
+
const data = await this.http.post("/api/secrets", {
|
|
36
|
+
name: options.name,
|
|
37
|
+
value: options.value,
|
|
38
|
+
description: options.description,
|
|
39
|
+
isGlobal: options.isGlobal,
|
|
40
|
+
});
|
|
41
|
+
return data.secret;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Update a secret's description. The value cannot be updated — delete
|
|
45
|
+
* and recreate the secret to change it.
|
|
46
|
+
*/
|
|
47
|
+
async update(secretId, updates) {
|
|
48
|
+
const data = await this.http.patch(`/api/secrets/${secretId}`, updates);
|
|
49
|
+
return data.secret;
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Delete a secret. Removes it from Azure Key Vault and the database.
|
|
53
|
+
*/
|
|
54
|
+
async delete(secretId) {
|
|
55
|
+
await this.http.delete(`/api/secrets/${secretId}`);
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Toggle whether a secret is globally available to all instances.
|
|
59
|
+
*/
|
|
60
|
+
async setGlobal(secretId, isGlobal) {
|
|
61
|
+
const data = await this.http.patch(`/api/secrets/${secretId}/global`, { isGlobal });
|
|
62
|
+
return data.secret;
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* List instances that have access to a secret, and those available to grant.
|
|
66
|
+
*/
|
|
67
|
+
async listAccess(secretId) {
|
|
68
|
+
return this.http.get(`/api/secrets/${secretId}/access`);
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* Grant an instance access to a secret.
|
|
72
|
+
*/
|
|
73
|
+
async grantAccess(secretId, instanceId) {
|
|
74
|
+
await this.http.post(`/api/secrets/${secretId}/access`, { instanceId });
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* Revoke an instance's access to a secret.
|
|
78
|
+
*/
|
|
79
|
+
async revokeAccess(secretId, instanceId) {
|
|
80
|
+
await this.http.delete(`/api/secrets/${secretId}/access/${instanceId}`);
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
//# sourceMappingURL=secrets.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"secrets.js","sourceRoot":"","sources":["../../src/resources/secrets.ts"],"names":[],"mappings":"AAQA,MAAM,OAAO,eAAe;IACG;IAA7B,YAA6B,IAAgB;QAAhB,SAAI,GAAJ,IAAI,CAAY;IAAG,CAAC;IAEjD;;;OAGG;IACH,KAAK,CAAC,IAAI;QACR,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,IAAI,CAAC,GAAG,CAAwB,cAAc,CAAC,CAAC;QACxE,OAAO,IAAI,CAAC,OAAO,CAAC;IACtB,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,GAAG,CAAC,QAAgB;QACxB,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,IAAI,CAAC,GAAG,CAC9B,gBAAgB,QAAQ,EAAE,CAC3B,CAAC;QACF,OAAO,IAAI,CAAC,MAAM,CAAC;IACrB,CAAC;IAED;;;;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,EAAE,CAAC,CAAC;IAC1E,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,YAAY,CAAC,QAAgB,EAAE,UAAkB;QACrD,MAAM,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,gBAAgB,QAAQ,WAAW,UAAU,EAAE,CAAC,CAAC;IAC1E,CAAC;CACF"}
|
package/dist/types.d.ts
CHANGED
|
@@ -140,6 +140,29 @@ export interface UpdateWebhookOptions {
|
|
|
140
140
|
promptTemplate?: string;
|
|
141
141
|
enabled?: boolean;
|
|
142
142
|
}
|
|
143
|
+
export interface Secret {
|
|
144
|
+
id: string;
|
|
145
|
+
name: string;
|
|
146
|
+
maskedPreview: string;
|
|
147
|
+
description?: string | null;
|
|
148
|
+
isGlobal?: boolean;
|
|
149
|
+
createdAt: string;
|
|
150
|
+
updatedAt?: string;
|
|
151
|
+
}
|
|
152
|
+
export interface SecretWithValue extends Secret {
|
|
153
|
+
value: string;
|
|
154
|
+
}
|
|
155
|
+
export interface CreateSecretOptions {
|
|
156
|
+
name: string;
|
|
157
|
+
value: string;
|
|
158
|
+
description?: string;
|
|
159
|
+
isGlobal?: boolean;
|
|
160
|
+
}
|
|
161
|
+
export interface SecretAccess {
|
|
162
|
+
instanceId: string;
|
|
163
|
+
instanceName: string;
|
|
164
|
+
grantedAt?: string;
|
|
165
|
+
}
|
|
143
166
|
export declare class OperatorApiError extends Error {
|
|
144
167
|
readonly status: number;
|
|
145
168
|
readonly body?: unknown | undefined;
|
package/dist/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,eAAe;IAC9B,+CAA+C;IAC/C,MAAM,EAAE,MAAM,CAAC;IACf,qEAAqE;IACrE,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAID,MAAM,WAAW,cAAc;IAC7B,aAAa,EAAE,OAAO,CAAC;IACvB,MAAM,CAAC,EAAE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;CACpB;AAED,MAAM,WAAW,YAAY;IAC3B,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAID,qBAAa,gBAAiB,SAAQ,KAAK;aAGvB,MAAM,EAAE,MAAM;aACd,IAAI,CAAC,EAAE,OAAO;gBAF9B,OAAO,EAAE,MAAM,EACC,MAAM,EAAE,MAAM,EACd,IAAI,CAAC,EAAE,OAAO,YAAA;CAKjC"}
|
package/dist/types.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,4DAA4D;
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,4DAA4D;AA4L5D,4DAA4D;AAE5D,MAAM,OAAO,gBAAiB,SAAQ,KAAK;IAGvB;IACA;IAHlB,YACE,OAAe,EACC,MAAc,EACd,IAAc;QAE9B,KAAK,CAAC,OAAO,CAAC,CAAC;QAHC,WAAM,GAAN,MAAM,CAAQ;QACd,SAAI,GAAJ,IAAI,CAAU;QAG9B,IAAI,CAAC,IAAI,GAAG,kBAAkB,CAAC;IACjC,CAAC;CACF"}
|
package/package.json
CHANGED