@usestatemachines/sdk 0.6.1 → 0.7.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.
@@ -4,8 +4,7 @@ import { Result as SafeParseResult } from "../types/fp.js";
4
4
  import { SDKValidationError } from "./errors/sdk-validation-error.js";
5
5
  export declare const EnvironmentFailureCode: {
6
6
  readonly StartFailed: "start_failed";
7
- readonly RestartFailed: "restart_failed";
8
- readonly ResumeFailed: "resume_failed";
7
+ readonly PauseRemoved: "pause_removed";
9
8
  readonly VersionUnavailable: "version_unavailable";
10
9
  readonly InvalidSettings: "invalid_settings";
11
10
  };
@@ -7,8 +7,7 @@ import * as openEnums from "../types/enums.js";
7
7
  import * as types from "../types/primitives.js";
8
8
  export const EnvironmentFailureCode = {
9
9
  StartFailed: "start_failed",
10
- RestartFailed: "restart_failed",
11
- ResumeFailed: "resume_failed",
10
+ PauseRemoved: "pause_removed",
12
11
  VersionUnavailable: "version_unavailable",
13
12
  InvalidSettings: "invalid_settings",
14
13
  };
@@ -3,7 +3,6 @@ import { OpenEnum } from "../types/enums.js";
3
3
  export declare const EnvironmentStatus: {
4
4
  readonly Starting: "starting";
5
5
  readonly Running: "running";
6
- readonly Paused: "paused";
7
6
  readonly Failed: "failed";
8
7
  readonly Deleted: "deleted";
9
8
  };
@@ -5,7 +5,6 @@ import * as openEnums from "../types/enums.js";
5
5
  export const EnvironmentStatus = {
6
6
  Starting: "starting",
7
7
  Running: "running",
8
- Paused: "paused",
9
8
  Failed: "failed",
10
9
  Deleted: "deleted",
11
10
  };
@@ -33,7 +33,6 @@ export type Environment = {
33
33
  [k: string]: string;
34
34
  };
35
35
  name: string | null;
36
- pausedAt: Date | null;
37
36
  reason: Reason | null;
38
37
  snapshotId: string | null;
39
38
  startedAt: Date | null;
@@ -40,7 +40,6 @@ export const Environment$inboundSchema = z
40
40
  id: types.string(),
41
41
  labels: z.record(z.string(), types.string()),
42
42
  name: types.nullable(types.string()),
43
- pausedAt: types.nullable(types.date()),
44
43
  reason: types.nullable(Reason$inboundSchema),
45
44
  snapshotId: types.nullable(types.string()),
46
45
  startedAt: types.nullable(types.date()),
@@ -16,7 +16,5 @@ export * from "./list-requests.js";
16
16
  export * from "./list-snapshots.js";
17
17
  export * from "./list-versions.js";
18
18
  export * from "./list-workspaces.js";
19
- export * from "./pause-environment.js";
20
- export * from "./resume-environment.js";
21
19
  export * from "./update-environment.js";
22
20
  export * from "./update-snapshot.js";
@@ -19,7 +19,5 @@ export * from "./list-requests.js";
19
19
  export * from "./list-snapshots.js";
20
20
  export * from "./list-versions.js";
21
21
  export * from "./list-workspaces.js";
22
- export * from "./pause-environment.js";
23
- export * from "./resume-environment.js";
24
22
  export * from "./update-environment.js";
25
23
  export * from "./update-snapshot.js";
@@ -8,6 +8,4 @@ export declare class Environments extends ClientSDK {
8
8
  get(request: operations.GetEnvironmentRequest, options?: RequestOptions): Promise<models.Environment>;
9
9
  update(request: operations.UpdateEnvironmentRequest, options?: RequestOptions): Promise<models.Environment>;
10
10
  connect(request: operations.CreateCredentialsRequest, options?: RequestOptions): Promise<models.Credentials>;
11
- pause(request: operations.PauseEnvironmentRequest, options?: RequestOptions): Promise<models.Environment>;
12
- resume(request: operations.ResumeEnvironmentRequest, options?: RequestOptions): Promise<models.Environment>;
13
11
  }
@@ -6,8 +6,6 @@ import { environmentsCreate } from "../funcs/environments-create.js";
6
6
  import { environmentsDelete } from "../funcs/environments-delete.js";
7
7
  import { environmentsGet } from "../funcs/environments-get.js";
8
8
  import { environmentsList } from "../funcs/environments-list.js";
9
- import { environmentsPause } from "../funcs/environments-pause.js";
10
- import { environmentsResume } from "../funcs/environments-resume.js";
11
9
  import { environmentsUpdate } from "../funcs/environments-update.js";
12
10
  import { ClientSDK } from "../lib/sdks.js";
13
11
  import { unwrapAsync } from "../types/fp.js";
@@ -30,10 +28,4 @@ export class Environments extends ClientSDK {
30
28
  async connect(request, options) {
31
29
  return unwrapAsync(environmentsConnect(this, request, options));
32
30
  }
33
- async pause(request, options) {
34
- return unwrapAsync(environmentsPause(this, request, options));
35
- }
36
- async resume(request, options) {
37
- return unwrapAsync(environmentsResume(this, request, options));
38
- }
39
31
  }
package/openapi.json CHANGED
@@ -406,10 +406,6 @@
406
406
  "name": {
407
407
  "type": ["string", "null"]
408
408
  },
409
- "pausedAt": {
410
- "format": "date-time",
411
- "type": ["string", "null"]
412
- },
413
409
  "reason": {
414
410
  "enum": ["cancelled", "expired", "failed", null],
415
411
  "type": ["string", "null"]
@@ -451,7 +447,6 @@
451
447
  "createdBy",
452
448
  "createdAt",
453
449
  "startedAt",
454
- "pausedAt",
455
450
  "deletedAt",
456
451
  "expiresAt"
457
452
  ],
@@ -465,8 +460,7 @@
465
460
  "code": {
466
461
  "enum": [
467
462
  "start_failed",
468
- "restart_failed",
469
- "resume_failed",
463
+ "pause_removed",
470
464
  "version_unavailable",
471
465
  "invalid_settings"
472
466
  ],
@@ -480,7 +474,7 @@
480
474
  "type": ["object", "null"]
481
475
  },
482
476
  "EnvironmentStatus": {
483
- "enum": ["starting", "running", "paused", "failed", "deleted"],
477
+ "enum": ["starting", "running", "failed", "deleted"],
484
478
  "type": "string"
485
479
  },
486
480
  "Error": {
@@ -2498,294 +2492,6 @@
2498
2492
  ]
2499
2493
  }
2500
2494
  },
2501
- "/v1/environments/{environmentId}/pause": {
2502
- "post": {
2503
- "operationId": "pauseEnvironment",
2504
- "parameters": [
2505
- {
2506
- "in": "path",
2507
- "name": "environmentId",
2508
- "required": true,
2509
- "schema": {
2510
- "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]{0,127}$",
2511
- "type": "string"
2512
- }
2513
- },
2514
- {
2515
- "in": "header",
2516
- "name": "idempotency-key",
2517
- "required": false,
2518
- "schema": {
2519
- "maxLength": 128,
2520
- "minLength": 8,
2521
- "pattern": "^[A-Za-z0-9._:-]+$",
2522
- "type": "string"
2523
- }
2524
- }
2525
- ],
2526
- "responses": {
2527
- "200": {
2528
- "content": {
2529
- "application/json": {
2530
- "schema": {
2531
- "$ref": "#/components/schemas/Environment"
2532
- }
2533
- }
2534
- },
2535
- "description": "Environment paused; the gateway refuses calls from now on"
2536
- },
2537
- "400": {
2538
- "content": {
2539
- "application/json": {
2540
- "schema": {
2541
- "$ref": "#/components/schemas/Error"
2542
- }
2543
- }
2544
- },
2545
- "description": "Invalid request"
2546
- },
2547
- "401": {
2548
- "content": {
2549
- "application/json": {
2550
- "schema": {
2551
- "$ref": "#/components/schemas/Error"
2552
- }
2553
- }
2554
- },
2555
- "description": "Authentication required"
2556
- },
2557
- "403": {
2558
- "content": {
2559
- "application/json": {
2560
- "schema": {
2561
- "$ref": "#/components/schemas/Error"
2562
- }
2563
- }
2564
- },
2565
- "description": "Permission denied"
2566
- },
2567
- "404": {
2568
- "content": {
2569
- "application/json": {
2570
- "schema": {
2571
- "$ref": "#/components/schemas/Error"
2572
- }
2573
- }
2574
- },
2575
- "description": "Resource not found"
2576
- },
2577
- "409": {
2578
- "content": {
2579
- "application/json": {
2580
- "schema": {
2581
- "$ref": "#/components/schemas/Error"
2582
- }
2583
- }
2584
- },
2585
- "description": "Conflicting request"
2586
- },
2587
- "413": {
2588
- "content": {
2589
- "application/json": {
2590
- "schema": {
2591
- "$ref": "#/components/schemas/Error"
2592
- }
2593
- }
2594
- },
2595
- "description": "Request body too large"
2596
- },
2597
- "422": {
2598
- "content": {
2599
- "application/json": {
2600
- "schema": {
2601
- "$ref": "#/components/schemas/Error"
2602
- }
2603
- }
2604
- },
2605
- "description": "Version unavailable"
2606
- },
2607
- "429": {
2608
- "content": {
2609
- "application/json": {
2610
- "schema": {
2611
- "$ref": "#/components/schemas/Error"
2612
- }
2613
- }
2614
- },
2615
- "description": "Limit reached"
2616
- },
2617
- "500": {
2618
- "content": {
2619
- "application/json": {
2620
- "schema": {
2621
- "$ref": "#/components/schemas/Error"
2622
- }
2623
- }
2624
- },
2625
- "description": "Unexpected failure"
2626
- },
2627
- "503": {
2628
- "content": {
2629
- "application/json": {
2630
- "schema": {
2631
- "$ref": "#/components/schemas/Error"
2632
- }
2633
- }
2634
- },
2635
- "description": "Dependency unavailable"
2636
- }
2637
- },
2638
- "security": [
2639
- {
2640
- "bearerAuth": []
2641
- }
2642
- ]
2643
- }
2644
- },
2645
- "/v1/environments/{environmentId}/resume": {
2646
- "post": {
2647
- "operationId": "resumeEnvironment",
2648
- "parameters": [
2649
- {
2650
- "in": "path",
2651
- "name": "environmentId",
2652
- "required": true,
2653
- "schema": {
2654
- "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]{0,127}$",
2655
- "type": "string"
2656
- }
2657
- },
2658
- {
2659
- "in": "header",
2660
- "name": "idempotency-key",
2661
- "required": false,
2662
- "schema": {
2663
- "maxLength": 128,
2664
- "minLength": 8,
2665
- "pattern": "^[A-Za-z0-9._:-]+$",
2666
- "type": "string"
2667
- }
2668
- }
2669
- ],
2670
- "responses": {
2671
- "200": {
2672
- "content": {
2673
- "application/json": {
2674
- "schema": {
2675
- "$ref": "#/components/schemas/Environment"
2676
- }
2677
- }
2678
- },
2679
- "description": "Environment starting again"
2680
- },
2681
- "400": {
2682
- "content": {
2683
- "application/json": {
2684
- "schema": {
2685
- "$ref": "#/components/schemas/Error"
2686
- }
2687
- }
2688
- },
2689
- "description": "Invalid request"
2690
- },
2691
- "401": {
2692
- "content": {
2693
- "application/json": {
2694
- "schema": {
2695
- "$ref": "#/components/schemas/Error"
2696
- }
2697
- }
2698
- },
2699
- "description": "Authentication required"
2700
- },
2701
- "403": {
2702
- "content": {
2703
- "application/json": {
2704
- "schema": {
2705
- "$ref": "#/components/schemas/Error"
2706
- }
2707
- }
2708
- },
2709
- "description": "Permission denied"
2710
- },
2711
- "404": {
2712
- "content": {
2713
- "application/json": {
2714
- "schema": {
2715
- "$ref": "#/components/schemas/Error"
2716
- }
2717
- }
2718
- },
2719
- "description": "Resource not found"
2720
- },
2721
- "409": {
2722
- "content": {
2723
- "application/json": {
2724
- "schema": {
2725
- "$ref": "#/components/schemas/Error"
2726
- }
2727
- }
2728
- },
2729
- "description": "Conflicting request"
2730
- },
2731
- "413": {
2732
- "content": {
2733
- "application/json": {
2734
- "schema": {
2735
- "$ref": "#/components/schemas/Error"
2736
- }
2737
- }
2738
- },
2739
- "description": "Request body too large"
2740
- },
2741
- "422": {
2742
- "content": {
2743
- "application/json": {
2744
- "schema": {
2745
- "$ref": "#/components/schemas/Error"
2746
- }
2747
- }
2748
- },
2749
- "description": "Version unavailable"
2750
- },
2751
- "429": {
2752
- "content": {
2753
- "application/json": {
2754
- "schema": {
2755
- "$ref": "#/components/schemas/Error"
2756
- }
2757
- }
2758
- },
2759
- "description": "Limit reached"
2760
- },
2761
- "500": {
2762
- "content": {
2763
- "application/json": {
2764
- "schema": {
2765
- "$ref": "#/components/schemas/Error"
2766
- }
2767
- }
2768
- },
2769
- "description": "Unexpected failure"
2770
- },
2771
- "503": {
2772
- "content": {
2773
- "application/json": {
2774
- "schema": {
2775
- "$ref": "#/components/schemas/Error"
2776
- }
2777
- }
2778
- },
2779
- "description": "Dependency unavailable"
2780
- }
2781
- },
2782
- "security": [
2783
- {
2784
- "bearerAuth": []
2785
- }
2786
- ]
2787
- }
2788
- },
2789
2495
  "/v1/me": {
2790
2496
  "get": {
2791
2497
  "operationId": "getMe",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@usestatemachines/sdk",
3
- "version": "0.6.1",
3
+ "version": "0.7.0",
4
4
  "description": "TypeScript SDK for State Machines environments",
5
5
  "license": "MIT",
6
6
  "homepage": "https://usestatemachines.com",
@@ -1,12 +0,0 @@
1
- import { StateMachinesCore } from "../core.js";
2
- import { RequestOptions } from "../lib/sdks.js";
3
- import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../models/errors/http-client-errors.js";
4
- import * as errors from "../models/errors/index.js";
5
- import { ResponseValidationError } from "../models/errors/response-validation-error.js";
6
- import { SDKValidationError } from "../models/errors/sdk-validation-error.js";
7
- import { StateMachinesHTTPError } from "../models/errors/state-machines-http-error.js";
8
- import * as models from "../models/index.js";
9
- import * as operations from "../models/operations/index.js";
10
- import { APIPromise } from "../types/async.js";
11
- import { Result } from "../types/fp.js";
12
- export declare function environmentsPause(client: StateMachinesCore, request: operations.PauseEnvironmentRequest, options?: RequestOptions): APIPromise<Result<models.Environment, errors.ErrorT | StateMachinesHTTPError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
@@ -1,94 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
- import * as z from "zod/v4-mini";
5
- import { encodeSimple } from "../lib/encodings.js";
6
- import { matchStatusCode } from "../lib/http.js";
7
- import * as M from "../lib/matchers.js";
8
- import { compactMap } from "../lib/primitives.js";
9
- import { safeParse } from "../lib/schemas.js";
10
- import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
11
- import { pathToFunc } from "../lib/url.js";
12
- import * as errors from "../models/errors/index.js";
13
- import * as models from "../models/index.js";
14
- import * as operations from "../models/operations/index.js";
15
- import { APIPromise } from "../types/async.js";
16
- export function environmentsPause(client, request, options) {
17
- return new APIPromise($do(client, request, options));
18
- }
19
- async function $do(client, request, options) {
20
- const parsed = safeParse(request, (value) => z.parse(operations.PauseEnvironmentRequest$outboundSchema, value), "Input validation failed");
21
- if (!parsed.ok) {
22
- return [parsed, { status: "invalid" }];
23
- }
24
- const payload = parsed.value;
25
- const body = null;
26
- const pathParams = {
27
- environmentId: encodeSimple("environmentId", payload.environmentId, {
28
- explode: false,
29
- charEncoding: "percent",
30
- }),
31
- };
32
- const path = pathToFunc("/v1/environments/{environmentId}/pause")(pathParams);
33
- const headers = new Headers(compactMap({
34
- Accept: "application/json",
35
- "idempotency-key": encodeSimple("idempotency-key", payload["idempotency-key"], { explode: false, charEncoding: "none" }),
36
- }));
37
- const secConfig = await extractSecurity(client._options.apiKey);
38
- const securityInput = secConfig == null ? {} : { apiKey: secConfig };
39
- const requestSecurity = resolveGlobalSecurity(securityInput);
40
- const context = {
41
- options: client._options,
42
- baseURL: options?.serverURL ?? client._baseURL ?? "",
43
- operationID: "pauseEnvironment",
44
- oAuth2Scopes: null,
45
- resolvedSecurity: requestSecurity,
46
- securitySource: client._options.apiKey,
47
- retryConfig: options?.retries
48
- || client._options.retryConfig
49
- || {
50
- strategy: "backoff",
51
- backoff: {
52
- initialInterval: 1000,
53
- maxInterval: 5000,
54
- exponent: 1.5,
55
- maxElapsedTime: 600000,
56
- },
57
- retryConnectionErrors: true,
58
- }
59
- || { strategy: "none" },
60
- retryCodes: options?.retryCodes || ["502", "503", "504"],
61
- };
62
- const requestRes = client._createRequest(context, {
63
- security: requestSecurity,
64
- method: "POST",
65
- baseURL: options?.serverURL,
66
- path: path,
67
- headers: headers,
68
- body: body,
69
- userAgent: client._options.userAgent,
70
- timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
71
- }, options);
72
- if (!requestRes.ok) {
73
- return [requestRes, { status: "invalid" }];
74
- }
75
- const req = requestRes.value;
76
- const doResult = await client._do(req, {
77
- context,
78
- isErrorStatusCode: (statusCode) => matchStatusCode({ status: statusCode }, ["4XX", "5XX"]),
79
- retryConfig: context.retryConfig,
80
- retryCodes: context.retryCodes,
81
- });
82
- if (!doResult.ok) {
83
- return [doResult, { status: "request-error", request: req }];
84
- }
85
- const response = doResult.value;
86
- const responseFields = {
87
- HttpMeta: { Response: response, Request: req },
88
- };
89
- const [result] = await M.match(M.json(200, models.Environment$inboundSchema), M.jsonErr([400, 401, 403, 404, 409, 413, 422, 429], errors.ErrorT$inboundSchema), M.jsonErr([500, 503], errors.ErrorT$inboundSchema), M.fail("4XX"), M.fail("5XX"))(response, req, { extraFields: responseFields });
90
- if (!result.ok) {
91
- return [result, { status: "complete", request: req, response }];
92
- }
93
- return [result, { status: "complete", request: req, response }];
94
- }
@@ -1,12 +0,0 @@
1
- import { StateMachinesCore } from "../core.js";
2
- import { RequestOptions } from "../lib/sdks.js";
3
- import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../models/errors/http-client-errors.js";
4
- import * as errors from "../models/errors/index.js";
5
- import { ResponseValidationError } from "../models/errors/response-validation-error.js";
6
- import { SDKValidationError } from "../models/errors/sdk-validation-error.js";
7
- import { StateMachinesHTTPError } from "../models/errors/state-machines-http-error.js";
8
- import * as models from "../models/index.js";
9
- import * as operations from "../models/operations/index.js";
10
- import { APIPromise } from "../types/async.js";
11
- import { Result } from "../types/fp.js";
12
- export declare function environmentsResume(client: StateMachinesCore, request: operations.ResumeEnvironmentRequest, options?: RequestOptions): APIPromise<Result<models.Environment, errors.ErrorT | StateMachinesHTTPError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
@@ -1,94 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
- import * as z from "zod/v4-mini";
5
- import { encodeSimple } from "../lib/encodings.js";
6
- import { matchStatusCode } from "../lib/http.js";
7
- import * as M from "../lib/matchers.js";
8
- import { compactMap } from "../lib/primitives.js";
9
- import { safeParse } from "../lib/schemas.js";
10
- import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
11
- import { pathToFunc } from "../lib/url.js";
12
- import * as errors from "../models/errors/index.js";
13
- import * as models from "../models/index.js";
14
- import * as operations from "../models/operations/index.js";
15
- import { APIPromise } from "../types/async.js";
16
- export function environmentsResume(client, request, options) {
17
- return new APIPromise($do(client, request, options));
18
- }
19
- async function $do(client, request, options) {
20
- const parsed = safeParse(request, (value) => z.parse(operations.ResumeEnvironmentRequest$outboundSchema, value), "Input validation failed");
21
- if (!parsed.ok) {
22
- return [parsed, { status: "invalid" }];
23
- }
24
- const payload = parsed.value;
25
- const body = null;
26
- const pathParams = {
27
- environmentId: encodeSimple("environmentId", payload.environmentId, {
28
- explode: false,
29
- charEncoding: "percent",
30
- }),
31
- };
32
- const path = pathToFunc("/v1/environments/{environmentId}/resume")(pathParams);
33
- const headers = new Headers(compactMap({
34
- Accept: "application/json",
35
- "idempotency-key": encodeSimple("idempotency-key", payload["idempotency-key"], { explode: false, charEncoding: "none" }),
36
- }));
37
- const secConfig = await extractSecurity(client._options.apiKey);
38
- const securityInput = secConfig == null ? {} : { apiKey: secConfig };
39
- const requestSecurity = resolveGlobalSecurity(securityInput);
40
- const context = {
41
- options: client._options,
42
- baseURL: options?.serverURL ?? client._baseURL ?? "",
43
- operationID: "resumeEnvironment",
44
- oAuth2Scopes: null,
45
- resolvedSecurity: requestSecurity,
46
- securitySource: client._options.apiKey,
47
- retryConfig: options?.retries
48
- || client._options.retryConfig
49
- || {
50
- strategy: "backoff",
51
- backoff: {
52
- initialInterval: 1000,
53
- maxInterval: 5000,
54
- exponent: 1.5,
55
- maxElapsedTime: 600000,
56
- },
57
- retryConnectionErrors: true,
58
- }
59
- || { strategy: "none" },
60
- retryCodes: options?.retryCodes || ["502", "503", "504"],
61
- };
62
- const requestRes = client._createRequest(context, {
63
- security: requestSecurity,
64
- method: "POST",
65
- baseURL: options?.serverURL,
66
- path: path,
67
- headers: headers,
68
- body: body,
69
- userAgent: client._options.userAgent,
70
- timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
71
- }, options);
72
- if (!requestRes.ok) {
73
- return [requestRes, { status: "invalid" }];
74
- }
75
- const req = requestRes.value;
76
- const doResult = await client._do(req, {
77
- context,
78
- isErrorStatusCode: (statusCode) => matchStatusCode({ status: statusCode }, ["4XX", "5XX"]),
79
- retryConfig: context.retryConfig,
80
- retryCodes: context.retryCodes,
81
- });
82
- if (!doResult.ok) {
83
- return [doResult, { status: "request-error", request: req }];
84
- }
85
- const response = doResult.value;
86
- const responseFields = {
87
- HttpMeta: { Response: response, Request: req },
88
- };
89
- const [result] = await M.match(M.json(200, models.Environment$inboundSchema), M.jsonErr([400, 401, 403, 404, 409, 413, 422, 429], errors.ErrorT$inboundSchema), M.jsonErr([500, 503], errors.ErrorT$inboundSchema), M.fail("4XX"), M.fail("5XX"))(response, req, { extraFields: responseFields });
90
- if (!result.ok) {
91
- return [result, { status: "complete", request: req, response }];
92
- }
93
- return [result, { status: "complete", request: req, response }];
94
- }