@distilled.cloud/steel 1.0.0-rc.20 → 1.0.0-rc.21

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 (91) hide show
  1. package/README.md +9 -6
  2. package/lib/.lazy.json +1 -1
  3. package/lib/_bundle/sdk.js +1 -1
  4. package/lib/_bundle/sdk.js.map +1 -1
  5. package/lib/credentials.d.ts +8 -3
  6. package/lib/credentials.d.ts.map +1 -1
  7. package/lib/errors.d.ts +7 -0
  8. package/lib/errors.d.ts.map +1 -1
  9. package/lib/errors.js +1 -1
  10. package/lib/index.d.ts +2 -3
  11. package/lib/index.d.ts.map +1 -1
  12. package/lib/index.js +0 -1
  13. package/lib/pagination.d.ts.map +1 -1
  14. package/lib/protocol.d.ts +9 -12
  15. package/lib/protocol.d.ts.map +1 -1
  16. package/lib/retry.d.ts.map +1 -1
  17. package/lib/services/api_keys.d.ts +38 -0
  18. package/lib/services/api_keys.d.ts.map +1 -1
  19. package/lib/services/api_keys.js +1 -1
  20. package/lib/services/api_keys.js.map +1 -1
  21. package/lib/services/auth.d.ts.map +1 -1
  22. package/lib/services/auth.js +1 -1
  23. package/lib/services/auth.js.map +1 -1
  24. package/lib/services/browser_tools.d.ts +35 -0
  25. package/lib/services/browser_tools.d.ts.map +1 -1
  26. package/lib/services/browser_tools.js +1 -1
  27. package/lib/services/browser_tools.js.map +1 -1
  28. package/lib/services/captchas.d.ts +32 -0
  29. package/lib/services/captchas.d.ts.map +1 -1
  30. package/lib/services/captchas.js +1 -1
  31. package/lib/services/captchas.js.map +1 -1
  32. package/lib/services/credentials.d.ts +54 -0
  33. package/lib/services/credentials.d.ts.map +1 -1
  34. package/lib/services/credentials.js +1 -1
  35. package/lib/services/credentials.js.map +1 -1
  36. package/lib/services/extensions.d.ts +47 -1
  37. package/lib/services/extensions.d.ts.map +1 -1
  38. package/lib/services/extensions.js +1 -1
  39. package/lib/services/extensions.js.map +1 -1
  40. package/lib/services/files.d.ts +57 -3
  41. package/lib/services/files.d.ts.map +1 -1
  42. package/lib/services/files.js +1 -1
  43. package/lib/services/files.js.map +1 -1
  44. package/lib/services/index.d.ts +2 -0
  45. package/lib/services/index.d.ts.map +1 -1
  46. package/lib/services/index.js +2 -0
  47. package/lib/services/profiles.d.ts +64 -5
  48. package/lib/services/profiles.d.ts.map +1 -1
  49. package/lib/services/profiles.js +1 -1
  50. package/lib/services/profiles.js.map +1 -1
  51. package/lib/services/projects.d.ts +32 -0
  52. package/lib/services/projects.d.ts.map +1 -1
  53. package/lib/services/projects.js +1 -1
  54. package/lib/services/projects.js.map +1 -1
  55. package/lib/services/secret_connections.d.ts +233 -0
  56. package/lib/services/secret_connections.d.ts.map +1 -0
  57. package/lib/services/secret_connections.js +2 -0
  58. package/lib/services/secret_connections.js.map +1 -0
  59. package/lib/services/sessions.d.ts +526 -233
  60. package/lib/services/sessions.d.ts.map +1 -1
  61. package/lib/services/sessions.js +50 -41
  62. package/lib/services/sessions.js.map +1 -1
  63. package/lib/services/vaults.d.ts +149 -0
  64. package/lib/services/vaults.d.ts.map +1 -0
  65. package/lib/services/vaults.js +2 -0
  66. package/lib/services/vaults.js.map +1 -0
  67. package/lib/services.lazy/index.js +2 -2
  68. package/lib/services.lazy/secret_connections.js +1 -0
  69. package/lib/services.lazy/sessions.js +2 -2
  70. package/lib/services.lazy/vaults.js +1 -0
  71. package/lib/traits.d.ts.map +1 -1
  72. package/package.json +5 -6
  73. package/src/credentials.ts +18 -12
  74. package/src/errors.ts +9 -1
  75. package/src/index.ts +2 -3
  76. package/src/protocol.ts +13 -24
  77. package/src/services/api_keys.ts +87 -7
  78. package/src/services/auth.ts +3 -2
  79. package/src/services/browser_tools.ts +101 -28
  80. package/src/services/captchas.ts +85 -17
  81. package/src/services/credentials.ts +129 -25
  82. package/src/services/extensions.ts +136 -34
  83. package/src/services/files.ts +172 -58
  84. package/src/services/index.ts +2 -0
  85. package/src/services/profiles.ts +198 -60
  86. package/src/services/projects.ts +79 -12
  87. package/src/services/secret_connections.ts +538 -0
  88. package/src/services/sessions.ts +1384 -794
  89. package/src/services/vaults.ts +369 -0
  90. package/lib/index.lazy.js +0 -7
  91. package/lib/index.lazy.js.map +0 -1
@@ -3,7 +3,7 @@ import * as C from "@distilled.cloud/core/category";
3
3
  // AUTO-GENERATED by scripts/generate.ts from .generated-specs (specs/spec-mirror-steel/specs/openapi.json). Do not edit.
4
4
  import * as S from "@distilled.cloud/core/schema-lite";
5
5
  import * as __L from "@distilled.cloud/core/schema-lite";
6
- import { UnknownSteelError } from "../errors.ts";
6
+ import { SteelServiceErrors } from "../errors.ts";
7
7
  import { SteelProtocol, type SteelOpError, type SteelOpContext } from "../protocol.ts";
8
8
  import * as Retry from "../retry.ts";
9
9
  import * as T from "../traits.ts";
@@ -29,18 +29,32 @@ export class BadRequest
29
29
  /*@__PURE__*/ S.TaggedError<BadRequest>()("BadRequest", {
30
30
  code: S.Number,
31
31
  message: S.String,
32
+ body: /*@__PURE__*/ S.optional(
33
+ /*@__PURE__*/ S.Union([/*@__PURE__*/ S.suspend(() => __S(3, __c0, 3)), S.String]),
34
+ ),
35
+ headers: /*@__PURE__*/ S.optional(/*@__PURE__*/ S.Record(S.String, S.String)),
32
36
  }).pipe(C.withBadRequestError),
33
37
  [{ status: 400 }],
34
- ) {}
38
+ )
39
+ {
40
+ declare readonly body?: ErrorResponse | string;
41
+ }
35
42
 
36
43
  export class UnprocessableEntity
37
44
  extends /*@__PURE__*/ T.applyErrorMatchers(
38
45
  /*@__PURE__*/ S.TaggedError<UnprocessableEntity>()("UnprocessableEntity", {
39
46
  code: S.Number,
40
47
  message: S.String,
48
+ body: /*@__PURE__*/ S.optional(
49
+ /*@__PURE__*/ S.Union([/*@__PURE__*/ S.suspend(() => __S(3, __c0, 3)), S.String]),
50
+ ),
51
+ headers: /*@__PURE__*/ S.optional(/*@__PURE__*/ S.Record(S.String, S.String)),
41
52
  }).pipe(C.withBadRequestError),
42
53
  [{ status: 422 }],
43
- ) {}
54
+ )
55
+ {
56
+ declare readonly body?: ErrorResponse | string;
57
+ }
44
58
 
45
59
  export interface PdfRequest {
46
60
  /** Delay before generating the PDF (in milliseconds) */
@@ -172,13 +186,41 @@ export interface ScreenshotResponse {
172
186
  /** URL where the screenshot is hosted */
173
187
  url: string;
174
188
  }
189
+ export interface ErrorResponseContextItem {
190
+ keyword: string;
191
+ message: string;
192
+ params: unknown;
193
+ }
194
+ export type ErrorResponseContextList = Array<ErrorResponseContextItem>;
195
+ /** Structured data about the error for the caller, e.g. `candidates` for credential_ambiguous. Never contains secret values. */
196
+ export type ErrorResponseDetailsMap = { [key: string]: unknown | undefined };
197
+ /** An error response from the API */
198
+ export interface ErrorResponse {
199
+ /** Stable machine-readable reason, e.g. 'budget_exceeded' or 'profile_not_ready'. Branch on this instead of parsing the message. */
200
+ code?: string | undefined;
201
+ context?: ErrorResponseContextList | undefined;
202
+ /** Structured data about the error for the caller, e.g. `candidates` for credential_ambiguous. Never contains secret values. */
203
+ details?: ErrorResponseDetailsMap | undefined;
204
+ error?: string | undefined;
205
+ linkToDocs?: string | undefined;
206
+ message: string;
207
+ /** The request field that caused the error, if any. */
208
+ param?: string | undefined;
209
+ /** Seconds to wait before retrying. Also sent as the Retry-After header. */
210
+ retryAfterSeconds?: number | undefined;
211
+ /** Whether the same request can succeed later without changes. False means fix the request or the account first. */
212
+ retryable?: boolean | undefined;
213
+ /** Where a person turns on the refused feature, e.g. verifying the account. Pass it to your user. */
214
+ unlockUrl?: string | undefined;
215
+ }
175
216
  export type PdfError = BadRequest | UnprocessableEntity | SteelOpError;
176
217
  /** Convert webpage to PDF Generates a PDF from a specified webpage. */
177
218
  export const pdf: API.OperationMethod<PdfRequest, PdfResponse, PdfError, SteelOpContext> =
178
219
  /*@__PURE__*/ API.make(() => ({
179
- input: __S(0, __c0, 0) as any as S.Schema<PdfRequest>,
180
- output: __S(8, __c1, 0) as any as S.Schema<PdfResponse>,
181
- errors: [BadRequest, UnprocessableEntity, UnknownSteelError],
220
+ input: __S(8, __c1, 0) as any as S.Schema<PdfRequest>,
221
+ output: __S(16, __c2, 0) as any as S.Schema<PdfResponse>,
222
+ errors: [BadRequest, UnprocessableEntity],
223
+ serviceErrors: SteelServiceErrors,
182
224
  protocol: SteelProtocol,
183
225
  retry: Retry.Retry,
184
226
  telemetry: TELEMETRY,
@@ -193,9 +235,10 @@ export const scrape: API.OperationMethod<
193
235
  ScrapeError,
194
236
  SteelOpContext
195
237
  > = /*@__PURE__*/ API.make(() => ({
196
- input: __S(17, __c2, 1) as any as S.Schema<ScrapeRequest>,
197
- output: __S(23, __c2, 7) as any as S.Schema<ScrapeResponse>,
198
- errors: [BadRequest, UnprocessableEntity, UnknownSteelError],
238
+ input: __S(25, __c3, 1) as any as S.Schema<ScrapeRequest>,
239
+ output: __S(30, __c3, 6) as any as S.Schema<ScrapeResponse>,
240
+ errors: [BadRequest, UnprocessableEntity],
241
+ serviceErrors: SteelServiceErrors,
199
242
  protocol: SteelProtocol,
200
243
  retry: Retry.Retry,
201
244
  telemetry: TELEMETRY,
@@ -210,9 +253,10 @@ export const screenshot: API.OperationMethod<
210
253
  ScreenshotError,
211
254
  SteelOpContext
212
255
  > = /*@__PURE__*/ API.make(() => ({
213
- input: __S(24, __c3, 0) as any as S.Schema<ScreenshotRequest>,
214
- output: __S(8, __c1, 0) as any as S.Schema<ScreenshotResponse>,
215
- errors: [BadRequest, UnprocessableEntity, UnknownSteelError],
256
+ input: __S(32, __c4, 0) as any as S.Schema<ScreenshotRequest>,
257
+ output: __S(16, __c2, 0) as any as S.Schema<ScreenshotResponse>,
258
+ errors: [BadRequest, UnprocessableEntity],
259
+ serviceErrors: SteelServiceErrors,
216
260
  protocol: SteelProtocol,
217
261
  retry: Retry.Retry,
218
262
  telemetry: TELEMETRY,
@@ -221,6 +265,37 @@ export const screenshot: API.OperationMethod<
221
265
 
222
266
  // Schema builders: each runs one schema initializer, on that schema's first use.
223
267
  function __c0(j: number): any {
268
+ switch (j) {
269
+ case 0:
270
+ return S.Record(S.String, S.Unknown);
271
+ case 1:
272
+ return S.suspend(() =>
273
+ S.Struct({
274
+ keyword: S.String,
275
+ message: S.String,
276
+ params: S.Unknown,
277
+ }),
278
+ ).annotate({ identifier: "ErrorResponseContextItem" });
279
+ case 2:
280
+ return S.Array(__S(1, __c0, 1));
281
+ case 3:
282
+ return S.suspend(() =>
283
+ S.Struct({
284
+ code: S.optional(S.String),
285
+ context: S.optional(__S(2, __c0, 2)),
286
+ details: S.optional(__S(0, __c0, 0)),
287
+ error: S.optional(S.String),
288
+ linkToDocs: S.optional(S.String),
289
+ message: S.String,
290
+ param: S.optional(S.String),
291
+ retryAfterSeconds: S.optional(S.Number),
292
+ retryable: S.optional(S.Boolean),
293
+ unlockUrl: S.optional(S.String),
294
+ }),
295
+ ).annotate({ identifier: "ErrorResponse" });
296
+ }
297
+ }
298
+ function __c1(j: number): any {
224
299
  switch (j) {
225
300
  case 0:
226
301
  return S.suspend(() =>
@@ -234,7 +309,7 @@ function __c0(j: number): any {
234
309
  ).annotate({ identifier: "PdfRequest" });
235
310
  }
236
311
  }
237
- function __c1(j: number): any {
312
+ function __c2(j: number): any {
238
313
  switch (j) {
239
314
  case 0:
240
315
  return S.suspend(() =>
@@ -244,7 +319,7 @@ function __c1(j: number): any {
244
319
  ).annotate({ identifier: "PdfResponse" });
245
320
  }
246
321
  }
247
- function __c2(j: number): any {
322
+ function __c3(j: number): any {
248
323
  switch (j) {
249
324
  case 0:
250
325
  return S.Array(S.String);
@@ -252,7 +327,7 @@ function __c2(j: number): any {
252
327
  return S.suspend(() =>
253
328
  S.Struct({
254
329
  delay: S.optional(S.Number),
255
- format: S.optional(__S(16, __c2, 0)),
330
+ format: S.optional(__S(24, __c3, 0)),
256
331
  pdf: S.optional(S.Boolean),
257
332
  projectId: S.optional(S.String),
258
333
  region: S.optional(S.Unknown),
@@ -262,26 +337,24 @@ function __c2(j: number): any {
262
337
  }).pipe(T.Http({ method: "POST", uri: "/v1/scrape", code: 200 })),
263
338
  ).annotate({ identifier: "ScrapeRequest" });
264
339
  case 2:
265
- return S.Record(S.String, S.Unknown);
266
- case 3:
267
340
  return S.suspend(() =>
268
341
  S.Struct({
269
342
  cleaned_html: S.optional(S.String),
270
343
  html: S.optional(S.String),
271
344
  markdown: S.optional(S.String),
272
- readability: S.optional(__S(18, __c2, 2)),
345
+ readability: S.optional(__S(0, __c0, 0)),
273
346
  }),
274
347
  ).annotate({ identifier: "ScrapeResponseContent" });
275
- case 4:
348
+ case 3:
276
349
  return S.suspend(() =>
277
350
  S.Struct({
278
351
  text: S.String,
279
352
  url: S.String,
280
353
  }),
281
354
  ).annotate({ identifier: "ScrapeResponseLinksItem" });
355
+ case 4:
356
+ return S.Array(__S(27, __c3, 3));
282
357
  case 5:
283
- return S.Array(__S(20, __c2, 4));
284
- case 6:
285
358
  return S.suspend(() =>
286
359
  S.Struct({
287
360
  articleAuthor: S.optional(S.String),
@@ -305,19 +378,19 @@ function __c2(j: number): any {
305
378
  urlSource: S.optional(S.String),
306
379
  }),
307
380
  ).annotate({ identifier: "ScrapeResponseMetadata" });
308
- case 7:
381
+ case 6:
309
382
  return S.suspend(() =>
310
383
  S.Struct({
311
- content: __S(19, __c2, 3),
312
- links: __S(21, __c2, 5),
313
- metadata: __S(22, __c2, 6),
314
- pdf: S.optional(__S(8, __c1, 0)),
315
- screenshot: S.optional(__S(8, __c1, 0)),
384
+ content: __S(26, __c3, 2),
385
+ links: __S(28, __c3, 4),
386
+ metadata: __S(29, __c3, 5),
387
+ pdf: S.optional(__S(16, __c2, 0)),
388
+ screenshot: S.optional(__S(16, __c2, 0)),
316
389
  }),
317
390
  ).annotate({ identifier: "ScrapeResponse" });
318
391
  }
319
392
  }
320
- function __c3(j: number): any {
393
+ function __c4(j: number): any {
321
394
  switch (j) {
322
395
  case 0:
323
396
  return S.suspend(() =>
@@ -3,7 +3,7 @@ import * as C from "@distilled.cloud/core/category";
3
3
  // AUTO-GENERATED by scripts/generate.ts from .generated-specs (specs/spec-mirror-steel/specs/openapi.json). Do not edit.
4
4
  import * as S from "@distilled.cloud/core/schema-lite";
5
5
  import * as __L from "@distilled.cloud/core/schema-lite";
6
- import { UnknownSteelError } from "../errors.ts";
6
+ import { SteelServiceErrors } from "../errors.ts";
7
7
  import { SteelProtocol, type SteelOpError, type SteelOpContext } from "../protocol.ts";
8
8
  import * as Retry from "../retry.ts";
9
9
  import * as T from "../traits.ts";
@@ -30,9 +30,16 @@ export class BadRequest
30
30
  /*@__PURE__*/ S.TaggedError<BadRequest>()("BadRequest", {
31
31
  code: S.Number,
32
32
  message: S.String,
33
+ body: /*@__PURE__*/ S.optional(
34
+ /*@__PURE__*/ S.Union([/*@__PURE__*/ S.suspend(() => __S(3, __c0, 3)), S.String]),
35
+ ),
36
+ headers: /*@__PURE__*/ S.optional(/*@__PURE__*/ S.Record(S.String, S.String)),
33
37
  }).pipe(C.withBadRequestError),
34
38
  [{ status: 400 }],
35
- ) {}
39
+ )
40
+ {
41
+ declare readonly body?: ErrorResponse | string;
42
+ }
36
43
 
37
44
  export interface GetCaptchaStatusRequest {
38
45
  /** Session ID */
@@ -82,6 +89,33 @@ export interface SolveImageCaptchaRequest {
82
89
  /** URL where the captcha is located. Defaults to the current page URL */
83
90
  url?: string | undefined;
84
91
  }
92
+ export interface ErrorResponseContextItem {
93
+ keyword: string;
94
+ message: string;
95
+ params: unknown;
96
+ }
97
+ export type ErrorResponseContextList = Array<ErrorResponseContextItem>;
98
+ /** Structured data about the error for the caller, e.g. `candidates` for credential_ambiguous. Never contains secret values. */
99
+ export type ErrorResponseDetailsMap = { [key: string]: unknown | undefined };
100
+ /** An error response from the API */
101
+ export interface ErrorResponse {
102
+ /** Stable machine-readable reason, e.g. 'budget_exceeded' or 'profile_not_ready'. Branch on this instead of parsing the message. */
103
+ code?: string | undefined;
104
+ context?: ErrorResponseContextList | undefined;
105
+ /** Structured data about the error for the caller, e.g. `candidates` for credential_ambiguous. Never contains secret values. */
106
+ details?: ErrorResponseDetailsMap | undefined;
107
+ error?: string | undefined;
108
+ linkToDocs?: string | undefined;
109
+ message: string;
110
+ /** The request field that caused the error, if any. */
111
+ param?: string | undefined;
112
+ /** Seconds to wait before retrying. Also sent as the Retry-After header. */
113
+ retryAfterSeconds?: number | undefined;
114
+ /** Whether the same request can succeed later without changes. False means fix the request or the account first. */
115
+ retryable?: boolean | undefined;
116
+ /** Where a person turns on the refused feature, e.g. verifying the account. Pass it to your user. */
117
+ unlockUrl?: string | undefined;
118
+ }
85
119
  export type GetCaptchaStatusError = BadRequest | SteelOpError;
86
120
  /** Get captcha status Gets the current captcha status for a session */
87
121
  export const getCaptchaStatus: API.OperationMethod<
@@ -90,9 +124,10 @@ export const getCaptchaStatus: API.OperationMethod<
90
124
  GetCaptchaStatusError,
91
125
  SteelOpContext
92
126
  > = /*@__PURE__*/ API.make(() => ({
93
- input: __S(0, __c0, 0) as any as S.Schema<GetCaptchaStatusRequest>,
94
- output: __S(4, __c0, 4) as any as S.Schema<GetCaptchaStatusResponse>,
95
- errors: [BadRequest, UnknownSteelError],
127
+ input: __S(8, __c1, 0) as any as S.Schema<GetCaptchaStatusRequest>,
128
+ output: __S(12, __c1, 4) as any as S.Schema<GetCaptchaStatusResponse>,
129
+ errors: [BadRequest],
130
+ serviceErrors: SteelServiceErrors,
96
131
  protocol: SteelProtocol,
97
132
  retry: Retry.Retry,
98
133
  telemetry: TELEMETRY,
@@ -107,9 +142,10 @@ export const solveCaptcha: API.OperationMethod<
107
142
  SolveCaptchaError,
108
143
  SteelOpContext
109
144
  > = /*@__PURE__*/ API.make(() => ({
110
- input: __S(8, __c1, 0) as any as S.Schema<SolveCaptchaRequest>,
111
- output: __S(16, __c2, 0) as any as S.Schema<CaptchaActionResponse>,
112
- errors: [BadRequest, UnknownSteelError],
145
+ input: __S(16, __c2, 0) as any as S.Schema<SolveCaptchaRequest>,
146
+ output: __S(24, __c3, 0) as any as S.Schema<CaptchaActionResponse>,
147
+ errors: [BadRequest],
148
+ serviceErrors: SteelServiceErrors,
113
149
  protocol: SteelProtocol,
114
150
  retry: Retry.Retry,
115
151
  telemetry: TELEMETRY,
@@ -124,9 +160,10 @@ export const solveImageCaptcha: API.OperationMethod<
124
160
  SolveImageCaptchaError,
125
161
  SteelOpContext
126
162
  > = /*@__PURE__*/ API.make(() => ({
127
- input: __S(24, __c3, 0) as any as S.Schema<SolveImageCaptchaRequest>,
128
- output: __S(16, __c2, 0) as any as S.Schema<CaptchaActionResponse>,
129
- errors: [BadRequest, UnknownSteelError],
163
+ input: __S(32, __c4, 0) as any as S.Schema<SolveImageCaptchaRequest>,
164
+ output: __S(24, __c3, 0) as any as S.Schema<CaptchaActionResponse>,
165
+ errors: [BadRequest],
166
+ serviceErrors: SteelServiceErrors,
130
167
  protocol: SteelProtocol,
131
168
  retry: Retry.Retry,
132
169
  telemetry: TELEMETRY,
@@ -135,6 +172,37 @@ export const solveImageCaptcha: API.OperationMethod<
135
172
 
136
173
  // Schema builders: each runs one schema initializer, on that schema's first use.
137
174
  function __c0(j: number): any {
175
+ switch (j) {
176
+ case 0:
177
+ return S.suspend(() =>
178
+ S.Struct({
179
+ keyword: S.String,
180
+ message: S.String,
181
+ params: S.Unknown,
182
+ }),
183
+ ).annotate({ identifier: "ErrorResponseContextItem" });
184
+ case 1:
185
+ return S.Array(__S(0, __c0, 0));
186
+ case 2:
187
+ return S.Record(S.String, S.Unknown);
188
+ case 3:
189
+ return S.suspend(() =>
190
+ S.Struct({
191
+ code: S.optional(S.String),
192
+ context: S.optional(__S(1, __c0, 1)),
193
+ details: S.optional(__S(2, __c0, 2)),
194
+ error: S.optional(S.String),
195
+ linkToDocs: S.optional(S.String),
196
+ message: S.String,
197
+ param: S.optional(S.String),
198
+ retryAfterSeconds: S.optional(S.Number),
199
+ retryable: S.optional(S.Boolean),
200
+ unlockUrl: S.optional(S.String),
201
+ }),
202
+ ).annotate({ identifier: "ErrorResponse" });
203
+ }
204
+ }
205
+ function __c1(j: number): any {
138
206
  switch (j) {
139
207
  case 0:
140
208
  return S.suspend(() =>
@@ -153,19 +221,19 @@ function __c0(j: number): any {
153
221
  isSolvingCaptcha: S.Boolean,
154
222
  lastUpdated: S.optional(S.Number),
155
223
  pageId: S.String,
156
- tasks: __S(1, __c0, 1),
224
+ tasks: __S(9, __c1, 1),
157
225
  url: S.String,
158
226
  }),
159
227
  ).annotate({ identifier: "CaptchaStateResponseItem" });
160
228
  case 3:
161
- return S.Array(__S(2, __c0, 2));
229
+ return S.Array(__S(10, __c1, 2));
162
230
  case 4:
163
- return S.suspend(() => __S(3, __c0, 3).pipe(T.RawResponseRoot())).annotate({
231
+ return S.suspend(() => __S(11, __c1, 3).pipe(T.RawResponseRoot())).annotate({
164
232
  identifier: "GetCaptchaStatusResponse",
165
233
  });
166
234
  }
167
235
  }
168
- function __c1(j: number): any {
236
+ function __c2(j: number): any {
169
237
  switch (j) {
170
238
  case 0:
171
239
  return S.suspend(() =>
@@ -180,7 +248,7 @@ function __c1(j: number): any {
180
248
  ).annotate({ identifier: "SolveCaptchaRequest" });
181
249
  }
182
250
  }
183
- function __c2(j: number): any {
251
+ function __c3(j: number): any {
184
252
  switch (j) {
185
253
  case 0:
186
254
  return S.suspend(() =>
@@ -191,7 +259,7 @@ function __c2(j: number): any {
191
259
  ).annotate({ identifier: "CaptchaActionResponse" });
192
260
  }
193
261
  }
194
- function __c3(j: number): any {
262
+ function __c4(j: number): any {
195
263
  switch (j) {
196
264
  case 0:
197
265
  return S.suspend(() =>