@reduck-ai/sdk 1.1.21 → 2.0.1

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.
Files changed (57) hide show
  1. package/README.md +102 -204
  2. package/dist/client.d.ts +11 -20
  3. package/dist/client.js +19 -107
  4. package/dist/generated/client/client.gen.d.ts +2 -0
  5. package/dist/generated/client/client.gen.js +216 -0
  6. package/dist/generated/client/index.d.ts +10 -0
  7. package/dist/generated/client/index.js +6 -0
  8. package/dist/generated/client/types.gen.d.ts +120 -0
  9. package/dist/generated/client/types.gen.js +2 -0
  10. package/dist/generated/client/utils.gen.d.ts +37 -0
  11. package/dist/generated/client/utils.gen.js +228 -0
  12. package/dist/generated/client.gen.d.ts +12 -0
  13. package/dist/generated/client.gen.js +3 -0
  14. package/dist/generated/core/auth.gen.d.ts +25 -0
  15. package/dist/generated/core/auth.gen.js +14 -0
  16. package/dist/generated/core/bodySerializer.gen.d.ts +25 -0
  17. package/dist/generated/core/bodySerializer.gen.js +57 -0
  18. package/dist/generated/core/params.gen.d.ts +43 -0
  19. package/dist/generated/core/params.gen.js +109 -0
  20. package/dist/generated/core/pathSerializer.gen.d.ts +33 -0
  21. package/dist/generated/core/pathSerializer.gen.js +106 -0
  22. package/dist/generated/core/queryKeySerializer.gen.d.ts +18 -0
  23. package/dist/generated/core/queryKeySerializer.gen.js +92 -0
  24. package/dist/generated/core/serverSentEvents.gen.d.ts +71 -0
  25. package/dist/generated/core/serverSentEvents.gen.js +132 -0
  26. package/dist/generated/core/types.gen.d.ts +83 -0
  27. package/dist/generated/core/types.gen.js +2 -0
  28. package/dist/generated/core/utils.gen.d.ts +19 -0
  29. package/dist/generated/core/utils.gen.js +87 -0
  30. package/dist/generated/index.d.ts +2 -0
  31. package/dist/generated/index.js +3 -0
  32. package/dist/generated/sdk.gen.d.ts +471 -0
  33. package/dist/generated/sdk.gen.js +862 -0
  34. package/dist/generated/types.gen.d.ts +5489 -0
  35. package/dist/generated/types.gen.js +56 -0
  36. package/dist/index.d.ts +3 -5
  37. package/dist/index.js +4 -4
  38. package/openapi.json +16668 -0
  39. package/package.json +23 -25
  40. package/dist/build-env.generated.d.ts +0 -3
  41. package/dist/build-env.generated.js +0 -4
  42. package/dist/device.d.ts +0 -3
  43. package/dist/device.js +0 -7
  44. package/dist/errors.d.ts +0 -9
  45. package/dist/errors.js +0 -21
  46. package/dist/method.d.ts +0 -3
  47. package/dist/method.js +0 -23
  48. package/dist/run.d.ts +0 -12
  49. package/dist/run.js +0 -73
  50. package/dist/schemas.d.ts +0 -597
  51. package/dist/schemas.js +0 -106
  52. package/dist/session.d.ts +0 -3
  53. package/dist/session.js +0 -14
  54. package/dist/site.d.ts +0 -3
  55. package/dist/site.js +0 -21
  56. package/dist/types.d.ts +0 -43
  57. package/dist/types.js +0 -8
@@ -0,0 +1,471 @@
1
+ import type { Client, ClientMeta, Options as Options2, RequestResult, TDataShape } from './client/index.js';
2
+ import type { AddScriptEvalsData, AddScriptEvalsErrors, AddScriptEvalsResponses, ArchiveAppImageData, ArchiveAppImageErrors, ArchiveAppImageResponses, ArchiveScriptData, ArchiveScriptErrors, ArchiveScriptResponses, BatchDeleteRunsData, BatchDeleteRunsErrors, BatchDeleteRunsResponses, CreateAppData, CreateAppErrors, CreateAppImageData, CreateAppImageErrors, CreateAppImageResponses, CreateAppResponses, CreateConnectorData, CreateConnectorErrors, CreateConnectorResponses, CreateDraftScriptVersionData, CreateDraftScriptVersionErrors, CreateDraftScriptVersionResponses, CreateScriptData, CreateScriptErrors, CreateScriptResponses, DeleteConnectorByIdData, DeleteConnectorByIdErrors, DeleteConnectorByIdResponses, DeleteConnectorData, DeleteConnectorErrors, DeleteConnectorResponses, DeleteDraftScriptVersionData, DeleteDraftScriptVersionErrors, DeleteDraftScriptVersionResponses, DeleteHostReadmeData, DeleteHostReadmeErrors, DeleteHostReadmeResponses, DeleteRunData, DeleteRunErrors, DeleteRunResponses, FinishConnectorLoginData, FinishConnectorLoginErrors, FinishConnectorLoginResponses, GetAppData, GetAppErrors, GetAppImageData, GetAppImageErrors, GetAppImageReleaseData, GetAppImageReleaseErrors, GetAppImageReleaseResponses, GetAppImageResponses, GetAppResponses, GetAppSecretsData, GetAppSecretsErrors, GetAppSecretsResponses, GetAppToolsData, GetAppToolsErrors, GetAppToolsResponses, GetConnectorData, GetConnectorErrors, GetConnectorLoginData, GetConnectorLoginErrors, GetConnectorLoginResponses, GetConnectorResponses, GetHostReadmeData, GetHostReadmeErrors, GetHostReadmeResponses, GetMeData, GetMeErrors, GetMeResponses, GetPingData, GetPingResponses, GetRunData, GetRunErrors, GetRunResponses, GetRunTraceData, GetRunTraceErrors, GetRunTraceResponses, GetScriptData, GetScriptErrors, GetScriptLibData, GetScriptLibErrors, GetScriptLibResponses, GetScriptLibVersionData, GetScriptLibVersionErrors, GetScriptLibVersionResponses, GetScriptResponses, GetScriptVersionData, GetScriptVersionErrors, GetScriptVersionResponses, GetVersionData, GetVersionResponses, ListAllAppImagesData, ListAllAppImagesErrors, ListAllAppImagesResponses, ListAllAppsData, ListAllAppsErrors, ListAllAppsResponses, ListAllScriptsData, ListAllScriptsErrors, ListAllScriptsResponses, ListAppImageReleasesData, ListAppImageReleasesErrors, ListAppImageReleasesResponses, ListAppImagesData, ListAppImagesErrors, ListAppImagesResponses, ListAppsData, ListAppsErrors, ListAppsResponses, ListAppUpdatesData, ListAppUpdatesErrors, ListAppUpdatesResponses, ListConnectorProfilesData, ListConnectorProfilesErrors, ListConnectorProfilesResponses, ListConnectorsData, ListConnectorsErrors, ListConnectorsResponses, ListDevicesData, ListDevicesErrors, ListDevicesResponses, ListRunsData, ListRunsErrors, ListRunsResponses, ListScriptEvalsData, ListScriptEvalsErrors, ListScriptEvalsResponses, ListScriptLibVersionsData, ListScriptLibVersionsErrors, ListScriptLibVersionsResponses, ListScriptRunsData, ListScriptRunsErrors, ListScriptRunsResponses, ListScriptsData, ListScriptsErrors, ListScriptsResponses, ListScriptTransferTargetsData, ListScriptTransferTargetsErrors, ListScriptTransferTargetsResponses, ListScriptVersionsData, ListScriptVersionsErrors, ListScriptVersionsResponses, PatchConnectorData, PatchConnectorErrors, PatchConnectorResponses, PatchDraftScriptVersionData, PatchDraftScriptVersionErrors, PatchDraftScriptVersionResponses, PatchScriptData, PatchScriptErrors, PatchScriptResponses, PromoteScriptLibVersionData, PromoteScriptLibVersionErrors, PromoteScriptLibVersionResponses, PromoteScriptVersionData, PromoteScriptVersionErrors, PromoteScriptVersionResponses, PublishAppImageReleaseData, PublishAppImageReleaseErrors, PublishAppImageReleaseResponses, PublishScriptData, PublishScriptErrors, PublishScriptLibVersionData, PublishScriptLibVersionErrors, PublishScriptLibVersionResponses, PublishScriptResponses, PutConnectorByIdData, PutConnectorByIdErrors, PutConnectorByIdResponses, PutConnectorData, PutConnectorErrors, PutConnectorResponses, RecordScriptEvalRunsData, RecordScriptEvalRunsErrors, RecordScriptEvalRunsResponses, RestoreAppImageData, RestoreAppImageErrors, RestoreAppImageResponses, RestoreScriptData, RestoreScriptErrors, RestoreScriptResponses, RollbackAppImageData, RollbackAppImageErrors, RollbackAppImageResponses, RunScriptData, RunScriptErrors, RunScriptResponses, RunScriptsData, RunScriptsErrors, RunScriptsResponses, SetHostReadmeData, SetHostReadmeErrors, SetHostReadmeResponses, SetScriptEvalsActiveData, SetScriptEvalsActiveErrors, SetScriptEvalsActiveResponses, StartAppImageReleaseData, StartAppImageReleaseErrors, StartAppImageReleaseResponses, StartConnectorLoginData, StartConnectorLoginErrors, StartConnectorLoginResponses, TransferScriptData, TransferScriptErrors, TransferScriptResponses, UninstallAppData, UninstallAppErrors, UninstallAppResponses, UnpublishScriptData, UnpublishScriptErrors, UnpublishScriptResponses, UpdateAppData, UpdateAppErrors, UpdateAppImageData, UpdateAppImageErrors, UpdateAppImageResponses, UpdateAppResponses, UpdateAppSecretsData, UpdateAppSecretsErrors, UpdateAppSecretsResponses, UpdateDeviceData, UpdateDeviceErrors, UpdateDeviceResponses } from './types.gen.js';
3
+ export type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean, TResponse = unknown> = Options2<TData, ThrowOnError, TResponse> & {
4
+ /**
5
+ * You can provide a client instance returned by `createClient()` instead of
6
+ * individual options. This might be also useful if you want to implement a
7
+ * custom client.
8
+ */
9
+ client?: Client;
10
+ /**
11
+ * You can pass arbitrary values through the `meta` object. This can be
12
+ * used to access values that aren't defined as part of the SDK function.
13
+ */
14
+ meta?: keyof ClientMeta extends never ? Record<string, unknown> : ClientMeta;
15
+ };
16
+ /**
17
+ * List all app images
18
+ *
19
+ * Every installable app you can reach: your own, your projects', and the public catalogue. `catalogue_only=true` is the catalogue alone.
20
+ */
21
+ export declare const listAllAppImages: <ThrowOnError extends boolean = false>(options?: Options<ListAllAppImagesData, ThrowOnError>) => RequestResult<ListAllAppImagesResponses, ListAllAppImagesErrors, ThrowOnError>;
22
+ /**
23
+ * List app images
24
+ *
25
+ * The installable apps owned by one handle, private ones included. Members only — another scope's public ones are reachable through the catalogue instead.
26
+ */
27
+ export declare const listAppImages: <ThrowOnError extends boolean = false>(options: Options<ListAppImagesData, ThrowOnError>) => RequestResult<ListAppImagesResponses, ListAppImagesErrors, ThrowOnError>;
28
+ /**
29
+ * Create app image
30
+ *
31
+ * Create an installable app in the scope of one handle. It starts private and with no release, so nothing can be installed from it until one is deployed.
32
+ */
33
+ export declare const createAppImage: <ThrowOnError extends boolean = false>(options: Options<CreateAppImageData, ThrowOnError>) => RequestResult<CreateAppImageResponses, CreateAppImageErrors, ThrowOnError>;
34
+ /**
35
+ * Get app image
36
+ *
37
+ * Read one installable app, with the install contract of the release it currently serves.
38
+ */
39
+ export declare const getAppImage: <ThrowOnError extends boolean = false>(options: Options<GetAppImageData, ThrowOnError>) => RequestResult<GetAppImageResponses, GetAppImageErrors, ThrowOnError>;
40
+ /**
41
+ * Update app image
42
+ *
43
+ * Update an installable app's name, its texts, or whether it is in the public catalogue. The slug is the address and cannot be changed.
44
+ */
45
+ export declare const updateAppImage: <ThrowOnError extends boolean = false>(options: Options<UpdateAppImageData, ThrowOnError>) => RequestResult<UpdateAppImageResponses, UpdateAppImageErrors, ThrowOnError>;
46
+ /**
47
+ * Archive app image
48
+ *
49
+ * Withdraw an installable app. Apps already installed from it keep running; what stops is new installs, new releases, and being listed anywhere.
50
+ */
51
+ export declare const archiveAppImage: <ThrowOnError extends boolean = false>(options: Options<ArchiveAppImageData, ThrowOnError>) => RequestResult<ArchiveAppImageResponses, ArchiveAppImageErrors, ThrowOnError>;
52
+ /**
53
+ * Restore app image
54
+ *
55
+ * Put a withdrawn app back. Nothing was destroyed, so this restores it entire.
56
+ */
57
+ export declare const restoreAppImage: <ThrowOnError extends boolean = false>(options: Options<RestoreAppImageData, ThrowOnError>) => RequestResult<RestoreAppImageResponses, RestoreAppImageErrors, ThrowOnError>;
58
+ /**
59
+ * List app image releases
60
+ *
61
+ * An installable app's deploy history, newest first.
62
+ */
63
+ export declare const listAppImageReleases: <ThrowOnError extends boolean = false>(options: Options<ListAppImageReleasesData, ThrowOnError>) => RequestResult<ListAppImageReleasesResponses, ListAppImageReleasesErrors, ThrowOnError>;
64
+ /**
65
+ * Start app image release
66
+ *
67
+ * Begin a deploy: reserve the release number and answer with a presigned upload per file. The bytes go straight to storage rather than through this API, and nothing serves the release until you publish it.
68
+ */
69
+ export declare const startAppImageRelease: <ThrowOnError extends boolean = false>(options: Options<StartAppImageReleaseData, ThrowOnError>) => RequestResult<StartAppImageReleaseResponses, StartAppImageReleaseErrors, ThrowOnError>;
70
+ /**
71
+ * Get app image release
72
+ *
73
+ * Read one release by its number: the files it shipped, the hosts it may reach, its authored settings and its install contract.
74
+ */
75
+ export declare const getAppImageRelease: <ThrowOnError extends boolean = false>(options: Options<GetAppImageReleaseData, ThrowOnError>) => RequestResult<GetAppImageReleaseResponses, GetAppImageReleaseErrors, ThrowOnError>;
76
+ /**
77
+ * Publish app image release
78
+ *
79
+ * Finish a deploy: check every file arrived, then serve it. Every app installed from this image picks it up on its next load. Publishing twice answers the same way, so a lost response can be retried.
80
+ */
81
+ export declare const publishAppImageRelease: <ThrowOnError extends boolean = false>(options: Options<PublishAppImageReleaseData, ThrowOnError>) => RequestResult<PublishAppImageReleaseResponses, PublishAppImageReleaseErrors, ThrowOnError>;
82
+ /**
83
+ * Rollback app image
84
+ *
85
+ * Serve one of the earlier releases, by number. Releases are immutable and never removed, so this is reversible by rolling forward to the number you came from — and it reaches every installed app at once.
86
+ */
87
+ export declare const rollbackAppImage: <ThrowOnError extends boolean = false>(options: Options<RollbackAppImageData, ThrowOnError>) => RequestResult<RollbackAppImageResponses, RollbackAppImageErrors, ThrowOnError>;
88
+ /**
89
+ * List all apps
90
+ *
91
+ * List every app you can reach, newest first: your own, plus those owned by a project you belong to.
92
+ */
93
+ export declare const listAllApps: <ThrowOnError extends boolean = false>(options?: Options<ListAllAppsData, ThrowOnError>) => RequestResult<ListAllAppsResponses, ListAllAppsErrors, ThrowOnError>;
94
+ /**
95
+ * List apps
96
+ *
97
+ * List the apps owned by one handle, newest first.
98
+ */
99
+ export declare const listApps: <ThrowOnError extends boolean = false>(options: Options<ListAppsData, ThrowOnError>) => RequestResult<ListAppsResponses, ListAppsErrors, ThrowOnError>;
100
+ /**
101
+ * Create app
102
+ *
103
+ * Install an app from an image, in the scope of one handle. It is a fresh instance — its own database, its own blobs, its own secret values — and it serves whatever release that image points at, now and after every later deploy.
104
+ */
105
+ export declare const createApp: <ThrowOnError extends boolean = false>(options: Options<CreateAppData, ThrowOnError>) => RequestResult<CreateAppResponses, CreateAppErrors, ThrowOnError>;
106
+ /**
107
+ * Uninstall app
108
+ *
109
+ * Uninstall an app: its records, its files and its secrets go with it.
110
+ */
111
+ export declare const uninstallApp: <ThrowOnError extends boolean = false>(options: Options<UninstallAppData, ThrowOnError>) => RequestResult<UninstallAppResponses, UninstallAppErrors, ThrowOnError>;
112
+ /**
113
+ * Get app
114
+ *
115
+ * Read one app, including the release it is serving.
116
+ */
117
+ export declare const getApp: <ThrowOnError extends boolean = false>(options: Options<GetAppData, ThrowOnError>) => RequestResult<GetAppResponses, GetAppErrors, ThrowOnError>;
118
+ /**
119
+ * Update app
120
+ *
121
+ * Rename an app. That is the whole of what an install owns: what the app says about itself belongs to the image it came from, and who may open it is the scope it lives in.
122
+ */
123
+ export declare const updateApp: <ThrowOnError extends boolean = false>(options: Options<UpdateAppData, ThrowOnError>) => RequestResult<UpdateAppResponses, UpdateAppErrors, ThrowOnError>;
124
+ /**
125
+ * Get app secrets
126
+ *
127
+ * List an app's secrets by name. Values are write-only: no endpoint ever gives one back.
128
+ */
129
+ export declare const getAppSecrets: <ThrowOnError extends boolean = false>(options: Options<GetAppSecretsData, ThrowOnError>) => RequestResult<GetAppSecretsResponses, GetAppSecretsErrors, ThrowOnError>;
130
+ /**
131
+ * Update app secrets
132
+ *
133
+ * Set or unset an app's secrets, several at a time.
134
+ */
135
+ export declare const updateAppSecrets: <ThrowOnError extends boolean = false>(options: Options<UpdateAppSecretsData, ThrowOnError>) => RequestResult<UpdateAppSecretsResponses, UpdateAppSecretsErrors, ThrowOnError>;
136
+ /**
137
+ * Get app tools
138
+ *
139
+ * The tasks this app offers an agent, as its running release declares them under `tools` in its manifest: each one's name, what it does, and JSON Schemas for its arguments and its answer. An app serving an older release than its image answers what THAT release ships, because those are the tasks actually there to launch. An empty list is an answer — this app offers none. `skill` is the release's `SKILL.md`, its author's account of how to combine the tools for a purpose, or null when it ships none.
140
+ */
141
+ export declare const getAppTools: <ThrowOnError extends boolean = false>(options: Options<GetAppToolsData, ThrowOnError>) => RequestResult<GetAppToolsResponses, GetAppToolsErrors, ThrowOnError>;
142
+ /**
143
+ * List app updates
144
+ *
145
+ * Every version of the app you installed, newest first, saying what this install did with each: `installed` for one it runs, `pending` for one it has not reached, `failed` when a version's schema change could not be applied and the install stayed where it was. An app has no versions of its own — it follows what it was installed from — so this is that history read through one install.
146
+ */
147
+ export declare const listAppUpdates: <ThrowOnError extends boolean = false>(options: Options<ListAppUpdatesData, ThrowOnError>) => RequestResult<ListAppUpdatesResponses, ListAppUpdatesErrors, ThrowOnError>;
148
+ /**
149
+ * List connectors
150
+ *
151
+ * List your connectors for one profile (your own account when `profile` is omitted), by website. Summaries only: cookies are never part of a listing.
152
+ */
153
+ export declare const listConnectors: <ThrowOnError extends boolean = false>(options?: Options<ListConnectorsData, ThrowOnError>) => RequestResult<ListConnectorsResponses, ListConnectorsErrors, ThrowOnError>;
154
+ /**
155
+ * Create connector
156
+ *
157
+ * Store a new connector for a website, beside any the site already holds for that profile. Every cookie has to belong to that host. A connector gets its account only from a probe script, so a second connector for the same site and profile needs a label to tell it apart.
158
+ */
159
+ export declare const createConnector: <ThrowOnError extends boolean = false>(options: Options<CreateConnectorData, ThrowOnError>) => RequestResult<CreateConnectorResponses, CreateConnectorErrors, ThrowOnError>;
160
+ /**
161
+ * Delete connector by id
162
+ *
163
+ * Delete one connector, by id, and the cookies it holds.
164
+ */
165
+ export declare const deleteConnectorById: <ThrowOnError extends boolean = false>(options: Options<DeleteConnectorByIdData, ThrowOnError>) => RequestResult<DeleteConnectorByIdResponses, DeleteConnectorByIdErrors, ThrowOnError>;
166
+ /**
167
+ * Patch connector
168
+ *
169
+ * Rename a connector, or remove its label.
170
+ */
171
+ export declare const patchConnector: <ThrowOnError extends boolean = false>(options: Options<PatchConnectorData, ThrowOnError>) => RequestResult<PatchConnectorResponses, PatchConnectorErrors, ThrowOnError>;
172
+ /**
173
+ * Put connector by id
174
+ *
175
+ * Replace one connector's cookies, by id. This is how a run writes the cookies it refreshed back to the connector it used.
176
+ */
177
+ export declare const putConnectorById: <ThrowOnError extends boolean = false>(options: Options<PutConnectorByIdData, ThrowOnError>) => RequestResult<PutConnectorByIdResponses, PutConnectorByIdErrors, ThrowOnError>;
178
+ /**
179
+ * Start connector login
180
+ *
181
+ * Open a Reduck cloud browser at a site's sign-in page for a PERSON to sign into. Returns `signInUrl`, a Reduck page that shows the live browser — hand it to whoever holds the account on that site. When they sign in, the connector for each host is stored on its own; poll `getConnectorLogin` to see it land. Use this when there is no Reduck extension to upload cookies from. `hosts` defaults to the login URL's own site. The browser is created when the page is opened and lives ~10 minutes from then. With `profile`, the connectors are stored for that end-user; `endUserLink` then also answers `endUserUrl`, a page the end-user signs in on without a Reduck account. An end-user's sign-in never answers what they typed.
182
+ */
183
+ export declare const startConnectorLogin: <ThrowOnError extends boolean = false>(options: Options<StartConnectorLoginData, ThrowOnError>) => RequestResult<StartConnectorLoginResponses, StartConnectorLoginErrors, ThrowOnError>;
184
+ /**
185
+ * Get connector login
186
+ *
187
+ * How a sign-in started by `startConnectorLogin` is going: `waiting` (browser open, not signed in yet), `stored` (cookies saved, may still be refreshing), `done` (finished), `failed` (ended with nothing saved). `hosts` says how many cookies each site has so far.
188
+ */
189
+ export declare const getConnectorLogin: <ThrowOnError extends boolean = false>(options: Options<GetConnectorLoginData, ThrowOnError>) => RequestResult<GetConnectorLoginResponses, GetConnectorLoginErrors, ThrowOnError>;
190
+ /**
191
+ * Finish connector login
192
+ *
193
+ * End a sign-in now instead of waiting out its window: harvest whatever cookies are there, store them, release the browser. Returns the final state. A sign-in also ends on its own when the person is done or the window closes, so this is only a shortcut.
194
+ */
195
+ export declare const finishConnectorLogin: <ThrowOnError extends boolean = false>(options: Options<FinishConnectorLoginData, ThrowOnError>) => RequestResult<FinishConnectorLoginResponses, FinishConnectorLoginErrors, ThrowOnError>;
196
+ /**
197
+ * List connector profiles
198
+ *
199
+ * List the end-user profiles you hold connectors for, with how many each has. Your own account's connectors are not a profile and are not listed.
200
+ */
201
+ export declare const listConnectorProfiles: <ThrowOnError extends boolean = false>(options?: Options<ListConnectorProfilesData, ThrowOnError>) => RequestResult<ListConnectorProfilesResponses, ListConnectorProfilesErrors, ThrowOnError>;
202
+ /**
203
+ * Delete connector
204
+ *
205
+ * Delete the connector you name on a host, and the cookies it holds. With no name, the site's only connector for the profile.
206
+ */
207
+ export declare const deleteConnector: <ThrowOnError extends boolean = false>(options: Options<DeleteConnectorData, ThrowOnError>) => RequestResult<DeleteConnectorResponses, DeleteConnectorErrors, ThrowOnError>;
208
+ /**
209
+ * Get connector
210
+ *
211
+ * Fetch the connector for a host, cookies included, ready for a run to inject. A host with no connector of its own is served by its nearest parent's, and a host with neither is a 404. When the site holds several connectors for the profile, name one with `account` or `label` (an empty `label` for the one without a label).
212
+ */
213
+ export declare const getConnector: <ThrowOnError extends boolean = false>(options: Options<GetConnectorData, ThrowOnError>) => RequestResult<GetConnectorResponses, GetConnectorErrors, ThrowOnError>;
214
+ /**
215
+ * Put connector
216
+ *
217
+ * Replace the cookies of the connector you name on a host, creating it when none matches. With no name, the site's only connector for the profile is replaced, or created when there is none. Every cookie has to belong to that host. This is how the extension uploads a site's cookies.
218
+ */
219
+ export declare const putConnector: <ThrowOnError extends boolean = false>(options: Options<PutConnectorData, ThrowOnError>) => RequestResult<PutConnectorResponses, PutConnectorErrors, ThrowOnError>;
220
+ /**
221
+ * List devices
222
+ *
223
+ * List the devices registered to your account.
224
+ */
225
+ export declare const listDevices: <ThrowOnError extends boolean = false>(options?: Options<ListDevicesData, ThrowOnError>) => RequestResult<ListDevicesResponses, ListDevicesErrors, ThrowOnError>;
226
+ /**
227
+ * Update device
228
+ *
229
+ * Update one of your devices. A new concurrency budget applies to the runs that start after the change. Runs that are already in progress continue.
230
+ */
231
+ export declare const updateDevice: <ThrowOnError extends boolean = false>(options: Options<UpdateDeviceData, ThrowOnError>) => RequestResult<UpdateDeviceResponses, UpdateDeviceErrors, ThrowOnError>;
232
+ /**
233
+ * Get me
234
+ *
235
+ * Identify the account these credentials belong to, and the projects it can act in. Its handle is null until the account picks a username, and its personal scope cannot be addressed until it does.
236
+ */
237
+ export declare const getMe: <ThrowOnError extends boolean = false>(options?: Options<GetMeData, ThrowOnError>) => RequestResult<GetMeResponses, GetMeErrors, ThrowOnError>;
238
+ /**
239
+ * Get ping
240
+ *
241
+ * Liveness probe: always answers `{ message: "pong" }`. Open endpoint; no authentication.
242
+ */
243
+ export declare const getPing: <ThrowOnError extends boolean = false>(options?: Options<GetPingData, ThrowOnError>) => RequestResult<GetPingResponses, unknown, ThrowOnError>;
244
+ /**
245
+ * List runs
246
+ *
247
+ * List your automation runs, most recent first.
248
+ */
249
+ export declare const listRuns: <ThrowOnError extends boolean = false>(options?: Options<ListRunsData, ThrowOnError>) => RequestResult<ListRunsResponses, ListRunsErrors, ThrowOnError>;
250
+ /**
251
+ * Run scripts
252
+ *
253
+ * Run a batch of scripts, at the same time in a browser each, or one after the other in the same browser.
254
+ */
255
+ export declare const runScripts: <ThrowOnError extends boolean = false>(options: Options<RunScriptsData, ThrowOnError>) => RequestResult<RunScriptsResponses, RunScriptsErrors, ThrowOnError>;
256
+ /**
257
+ * Batch delete runs
258
+ *
259
+ * Delete up to 100 runs by id in one call. An id it cannot delete is reported as skipped instead of failing the whole batch.
260
+ */
261
+ export declare const batchDeleteRuns: <ThrowOnError extends boolean = false>(options: Options<BatchDeleteRunsData, ThrowOnError>) => RequestResult<BatchDeleteRunsResponses, BatchDeleteRunsErrors, ThrowOnError>;
262
+ /**
263
+ * Delete run
264
+ *
265
+ * Delete a finished run and the trace it recorded.
266
+ */
267
+ export declare const deleteRun: <ThrowOnError extends boolean = false>(options: Options<DeleteRunData, ThrowOnError>) => RequestResult<DeleteRunResponses, DeleteRunErrors, ThrowOnError>;
268
+ /**
269
+ * Get run
270
+ *
271
+ * Fetch one of your runs by id.
272
+ */
273
+ export declare const getRun: <ThrowOnError extends boolean = false>(options: Options<GetRunData, ThrowOnError>) => RequestResult<GetRunResponses, GetRunErrors, ThrowOnError>;
274
+ /**
275
+ * Get run trace
276
+ *
277
+ * Fetch the trace a run recorded.
278
+ */
279
+ export declare const getRunTrace: <ThrowOnError extends boolean = false>(options: Options<GetRunTraceData, ThrowOnError>) => RequestResult<GetRunTraceResponses, GetRunTraceErrors, ThrowOnError>;
280
+ /**
281
+ * List all scripts
282
+ *
283
+ * List all scripts. Authenticated callers get a cross-owner list across their own scripts, member projects, and the official catalogue. Anonymous callers get the official catalogue only.
284
+ */
285
+ export declare const listAllScripts: <ThrowOnError extends boolean = false>(options?: Options<ListAllScriptsData, ThrowOnError>) => RequestResult<ListAllScriptsResponses, ListAllScriptsErrors, ThrowOnError>;
286
+ /**
287
+ * List scripts
288
+ *
289
+ * List the scripts owned by one handle. The owner, and any member of the project when the handle names one, sees every script under it; everyone else sees only that owner's public scripts.
290
+ */
291
+ export declare const listScripts: <ThrowOnError extends boolean = false>(options: Options<ListScriptsData, ThrowOnError>) => RequestResult<ListScriptsResponses, ListScriptsErrors, ThrowOnError>;
292
+ /**
293
+ * Create script
294
+ *
295
+ * Create a script under an owner handle, together with its first version, in one call. A first version that is not a draft and is TypeScript must pass the type check, or the script is not created.
296
+ */
297
+ export declare const createScript: <ThrowOnError extends boolean = false>(options: Options<CreateScriptData, ThrowOnError>) => RequestResult<CreateScriptResponses, CreateScriptErrors, ThrowOnError>;
298
+ /**
299
+ * Get script lib
300
+ *
301
+ * Read a host's lib: the TypeScript an owner's scripts import as `lib:<host>`, from any host. Returns its latest version (the one every import loads) with its code, and the owner's scripts that import it. Readable by whoever can read the owner's scripts on the host; an official owner's source is limited to its members.
302
+ */
303
+ export declare const getScriptLib: <ThrowOnError extends boolean = false>(options: Options<GetScriptLibData, ThrowOnError>) => RequestResult<GetScriptLibResponses, GetScriptLibErrors, ThrowOnError>;
304
+ /**
305
+ * List script lib versions
306
+ *
307
+ * List a host's lib versions, newest first, with their notes. Read a version on its own to get its code.
308
+ */
309
+ export declare const listScriptLibVersions: <ThrowOnError extends boolean = false>(options: Options<ListScriptLibVersionsData, ThrowOnError>) => RequestResult<ListScriptLibVersionsResponses, ListScriptLibVersionsErrors, ThrowOnError>;
310
+ /**
311
+ * Publish script lib version
312
+ *
313
+ * Publish the next version of a host's lib, creating the lib with its first version. The version must pass the type check of a library. A version never changes once published. It becomes the latest, the one every import loads, only when promoted, except a lib's first version, which is the latest at once. The owner can, and so can a project member allowed to update its scripts.
314
+ */
315
+ export declare const publishScriptLibVersion: <ThrowOnError extends boolean = false>(options: Options<PublishScriptLibVersionData, ThrowOnError>) => RequestResult<PublishScriptLibVersionResponses, PublishScriptLibVersionErrors, ThrowOnError>;
316
+ /**
317
+ * Get script lib version
318
+ *
319
+ * Read one version of a host's lib, its code included; with `diff`, the changes from another version.
320
+ */
321
+ export declare const getScriptLibVersion: <ThrowOnError extends boolean = false>(options: Options<GetScriptLibVersionData, ThrowOnError>) => RequestResult<GetScriptLibVersionResponses, GetScriptLibVersionErrors, ThrowOnError>;
322
+ /**
323
+ * Promote script lib version
324
+ *
325
+ * Make a version of a host's lib the latest: every script of the owner that imports `lib:<host>` loads it from its next run. Promoting an older version is the rollback. The version must pass the type check of a library. The owner can, and so can a project member allowed to update its scripts.
326
+ */
327
+ export declare const promoteScriptLibVersion: <ThrowOnError extends boolean = false>(options: Options<PromoteScriptLibVersionData, ThrowOnError>) => RequestResult<PromoteScriptLibVersionResponses, PromoteScriptLibVersionErrors, ThrowOnError>;
328
+ /**
329
+ * Delete host readme
330
+ *
331
+ * Delete a host's README. The owner can, and so can a project member allowed to update its scripts.
332
+ */
333
+ export declare const deleteHostReadme: <ThrowOnError extends boolean = false>(options: Options<DeleteHostReadmeData, ThrowOnError>) => RequestResult<DeleteHostReadmeResponses, DeleteHostReadmeErrors, ThrowOnError>;
334
+ /**
335
+ * Get host readme
336
+ *
337
+ * Read the README for a host: the notes an owner shares across every script they own for that site, like rate limits, login quirks, or ordering rules. Anyone can read it while that owner has a public, unarchived script on the host; otherwise only the owner, or a member of the project that owns it.
338
+ */
339
+ export declare const getHostReadme: <ThrowOnError extends boolean = false>(options: Options<GetHostReadmeData, ThrowOnError>) => RequestResult<GetHostReadmeResponses, GetHostReadmeErrors, ThrowOnError>;
340
+ /**
341
+ * Set host readme
342
+ *
343
+ * Write the README for a host, the guidance shared across every script that owner has for the site. Calling it again replaces the previous text. The owner can, and so can a project member allowed to update its scripts.
344
+ */
345
+ export declare const setHostReadme: <ThrowOnError extends boolean = false>(options: Options<SetHostReadmeData, ThrowOnError>) => RequestResult<SetHostReadmeResponses, SetHostReadmeErrors, ThrowOnError>;
346
+ /**
347
+ * Get script
348
+ *
349
+ * Read one script by its canonical identity, including the version it currently runs. A public script is readable by anyone, signed in or not; a private one only by its owner, or a member of the project that owns it.
350
+ */
351
+ export declare const getScript: <ThrowOnError extends boolean = false>(options: Options<GetScriptData, ThrowOnError>) => RequestResult<GetScriptResponses, GetScriptErrors, ThrowOnError>;
352
+ /**
353
+ * Patch script
354
+ *
355
+ * Update a script's editable metadata.
356
+ */
357
+ export declare const patchScript: <ThrowOnError extends boolean = false>(options: Options<PatchScriptData, ThrowOnError>) => RequestResult<PatchScriptResponses, PatchScriptErrors, ThrowOnError>;
358
+ /**
359
+ * Archive script
360
+ *
361
+ * Archive a script. It vanishes from the cross-owner listing, though a listing scoped to its owner still shows it unless you filter archived ones out. Archiving never frees its host and slug, so no other script can take that identity while it exists, and a public one stays readable by its own.
362
+ */
363
+ export declare const archiveScript: <ThrowOnError extends boolean = false>(options: Options<ArchiveScriptData, ThrowOnError>) => RequestResult<ArchiveScriptResponses, ArchiveScriptErrors, ThrowOnError>;
364
+ /**
365
+ * List script evals
366
+ *
367
+ * List a script's evals, each with the verdict of its latest run, or of its latest run on `version_id`.
368
+ */
369
+ export declare const listScriptEvals: <ThrowOnError extends boolean = false>(options: Options<ListScriptEvalsData, ThrowOnError>) => RequestResult<ListScriptEvalsResponses, ListScriptEvalsErrors, ThrowOnError>;
370
+ /**
371
+ * Add script evals
372
+ *
373
+ * Add evals to a script: frozen args on a browser setup, with an optional check of the output. An eval that exists is answered as it is, active again.
374
+ */
375
+ export declare const addScriptEvals: <ThrowOnError extends boolean = false>(options: Options<AddScriptEvalsData, ThrowOnError>) => RequestResult<AddScriptEvalsResponses, AddScriptEvalsErrors, ThrowOnError>;
376
+ /**
377
+ * Set script evals active
378
+ *
379
+ * Switch evals on or off. An inactive eval is kept with its history, but it is not run and does not gate a promote.
380
+ */
381
+ export declare const setScriptEvalsActive: <ThrowOnError extends boolean = false>(options: Options<SetScriptEvalsActiveData, ThrowOnError>) => RequestResult<SetScriptEvalsActiveResponses, SetScriptEvalsActiveErrors, ThrowOnError>;
382
+ /**
383
+ * Record script eval runs
384
+ *
385
+ * Link runs to the evals they executed, with each verdict once the run has ended, so they count for a promote. Each run must be your own run of this script, on the eval's browser. The first verdict recorded for a run stays.
386
+ */
387
+ export declare const recordScriptEvalRuns: <ThrowOnError extends boolean = false>(options: Options<RecordScriptEvalRunsData, ThrowOnError>) => RequestResult<RecordScriptEvalRunsResponses, RecordScriptEvalRunsErrors, ThrowOnError>;
388
+ /**
389
+ * Publish script
390
+ *
391
+ * Publish a script, making it readable by anyone.
392
+ */
393
+ export declare const publishScript: <ThrowOnError extends boolean = false>(options: Options<PublishScriptData, ThrowOnError>) => RequestResult<PublishScriptResponses, PublishScriptErrors, ThrowOnError>;
394
+ /**
395
+ * Restore script
396
+ *
397
+ * Restore an archived script.
398
+ */
399
+ export declare const restoreScript: <ThrowOnError extends boolean = false>(options: Options<RestoreScriptData, ThrowOnError>) => RequestResult<RestoreScriptResponses, RestoreScriptErrors, ThrowOnError>;
400
+ /**
401
+ * List script runs
402
+ *
403
+ * List your runs of a script, most recent first. A script that you never ran gives an empty list.
404
+ */
405
+ export declare const listScriptRuns: <ThrowOnError extends boolean = false>(options: Options<ListScriptRunsData, ThrowOnError>) => RequestResult<ListScriptRunsResponses, ListScriptRunsErrors, ThrowOnError>;
406
+ /**
407
+ * Run script
408
+ *
409
+ * Run a script in a managed browser or in your own paired browser.
410
+ */
411
+ export declare const runScript: <ThrowOnError extends boolean = false>(options: Options<RunScriptData, ThrowOnError>) => RequestResult<RunScriptResponses, RunScriptErrors, ThrowOnError>;
412
+ /**
413
+ * List script transfer targets
414
+ *
415
+ * List the scopes this script could move into: your personal scope, plus the projects where you may create scripts.
416
+ */
417
+ export declare const listScriptTransferTargets: <ThrowOnError extends boolean = false>(options: Options<ListScriptTransferTargetsData, ThrowOnError>) => RequestResult<ListScriptTransferTargetsResponses, ListScriptTransferTargetsErrors, ThrowOnError>;
418
+ /**
419
+ * Transfer script
420
+ *
421
+ * Move a script to another scope: your personal one, or a project where you may create scripts.
422
+ */
423
+ export declare const transferScript: <ThrowOnError extends boolean = false>(options: Options<TransferScriptData, ThrowOnError>) => RequestResult<TransferScriptResponses, TransferScriptErrors, ThrowOnError>;
424
+ /**
425
+ * Unpublish script
426
+ *
427
+ * Unpublish a script, making it private again. Works on an archived script too.
428
+ */
429
+ export declare const unpublishScript: <ThrowOnError extends boolean = false>(options: Options<UnpublishScriptData, ThrowOnError>) => RequestResult<UnpublishScriptResponses, UnpublishScriptErrors, ThrowOnError>;
430
+ /**
431
+ * List script versions
432
+ *
433
+ * List a script's versions, newest first. Read a version on its own to get its code.
434
+ */
435
+ export declare const listScriptVersions: <ThrowOnError extends boolean = false>(options: Options<ListScriptVersionsData, ThrowOnError>) => RequestResult<ListScriptVersionsResponses, ListScriptVersionsErrors, ThrowOnError>;
436
+ /**
437
+ * Create draft script version
438
+ *
439
+ * Add a version to a script as a draft: it does not become the version the script runs until you promote it.
440
+ */
441
+ export declare const createDraftScriptVersion: <ThrowOnError extends boolean = false>(options: Options<CreateDraftScriptVersionData, ThrowOnError>) => RequestResult<CreateDraftScriptVersionResponses, CreateDraftScriptVersionErrors, ThrowOnError>;
442
+ /**
443
+ * Delete draft script version
444
+ *
445
+ * Discard a draft version.
446
+ */
447
+ export declare const deleteDraftScriptVersion: <ThrowOnError extends boolean = false>(options: Options<DeleteDraftScriptVersionData, ThrowOnError>) => RequestResult<DeleteDraftScriptVersionResponses, DeleteDraftScriptVersionErrors, ThrowOnError>;
448
+ /**
449
+ * Get script version
450
+ *
451
+ * Read one version of a script, its code and its contract included.
452
+ */
453
+ export declare const getScriptVersion: <ThrowOnError extends boolean = false>(options: Options<GetScriptVersionData, ThrowOnError>) => RequestResult<GetScriptVersionResponses, GetScriptVersionErrors, ThrowOnError>;
454
+ /**
455
+ * Patch draft script version
456
+ *
457
+ * Update a draft version.
458
+ */
459
+ export declare const patchDraftScriptVersion: <ThrowOnError extends boolean = false>(options: Options<PatchDraftScriptVersionData, ThrowOnError>) => RequestResult<PatchDraftScriptVersionResponses, PatchDraftScriptVersionErrors, ThrowOnError>;
460
+ /**
461
+ * Promote script version
462
+ *
463
+ * Make a version the one the script runs, which is also how you roll back to an older one. A draft stops being a draft. A TypeScript draft must pass the type check first.
464
+ */
465
+ export declare const promoteScriptVersion: <ThrowOnError extends boolean = false>(options: Options<PromoteScriptVersionData, ThrowOnError>) => RequestResult<PromoteScriptVersionResponses, PromoteScriptVersionErrors, ThrowOnError>;
466
+ /**
467
+ * Get version
468
+ *
469
+ * Get the current Reduck CLI version. Open endpoint; no authentication.
470
+ */
471
+ export declare const getVersion: <ThrowOnError extends boolean = false>(options?: Options<GetVersionData, ThrowOnError>) => RequestResult<GetVersionResponses, unknown, ThrowOnError>;