@boatdev/sdk 1.0.1 → 1.1.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.
@@ -36,6 +36,7 @@ docs/CreateScopedApiKeyRequest.md
36
36
  docs/DataRetentionPolicyResponse.md
37
37
  docs/DataRetentionUpdateRequest.md
38
38
  docs/DeletionOperation.md
39
+ docs/DeletionOperationListResponse.md
39
40
  docs/DeletionOperationResponse.md
40
41
  docs/DesktopRequest.md
41
42
  docs/DesktopResponse.md
@@ -173,6 +174,7 @@ src/models/CreateScopedApiKeyRequest.ts
173
174
  src/models/DataRetentionPolicyResponse.ts
174
175
  src/models/DataRetentionUpdateRequest.ts
175
176
  src/models/DeletionOperation.ts
177
+ src/models/DeletionOperationListResponse.ts
176
178
  src/models/DeletionOperationResponse.ts
177
179
  src/models/DesktopRequest.ts
178
180
  src/models/DesktopResponse.ts
package/README.md CHANGED
@@ -50,18 +50,11 @@ async function main() {
50
50
  let sandboxId: string | undefined;
51
51
 
52
52
  try {
53
- const created = await sandbox.create({
54
- createSandboxRequest: {
55
- ttlSeconds: 1800,
56
- },
57
- });
53
+ const created = await sandbox.create({ ttlSeconds: 1800 });
58
54
 
59
55
  sandboxId = created.sandbox.id;
60
56
 
61
- await sandbox.update({
62
- sandboxId,
63
- updateSandboxRequest: { name: "sdk-demo" },
64
- });
57
+ await sandbox.update({ sandboxId, name: "sdk-demo" });
65
58
 
66
59
  while (!["ready", "idle"].includes((await sandbox.get({ sandboxId })).sandbox.state)) {
67
60
  await new Promise((resolve) => setTimeout(resolve, 2000));
@@ -69,10 +62,8 @@ async function main() {
69
62
 
70
63
  await sandbox.prompt({
71
64
  sandboxId,
72
- promptRequest: {
73
- prompt: "Inspect the repository and summarize the test command.",
74
- provider: "codex",
75
- },
65
+ prompt: "Inspect the repository and summarize the test command.",
66
+ provider: "codex",
76
67
  });
77
68
 
78
69
  const events = await sandbox.events({ sandboxId });
@@ -106,18 +97,11 @@ async function main() {
106
97
  let sandboxId;
107
98
 
108
99
  try {
109
- const created = await sandbox.create({
110
- createSandboxRequest: {
111
- ttlSeconds: 1800,
112
- },
113
- });
100
+ const created = await sandbox.create({ ttlSeconds: 1800 });
114
101
 
115
102
  sandboxId = created.sandbox.id;
116
103
 
117
- await sandbox.update({
118
- sandboxId,
119
- updateSandboxRequest: { name: "sdk-demo" },
120
- });
104
+ await sandbox.update({ sandboxId, name: "sdk-demo" });
121
105
 
122
106
  while (!["ready", "idle"].includes((await sandbox.get({ sandboxId })).sandbox.state)) {
123
107
  await new Promise((resolve) => setTimeout(resolve, 2000));
@@ -125,10 +109,8 @@ async function main() {
125
109
 
126
110
  await sandbox.prompt({
127
111
  sandboxId,
128
- promptRequest: {
129
- prompt: "Inspect the repository and summarize the test command.",
130
- provider: "codex",
131
- },
112
+ prompt: "Inspect the repository and summarize the test command.",
113
+ provider: "codex",
132
114
  });
133
115
 
134
116
  const events = await sandbox.events({ sandboxId });