@usestatemachines/sdk 0.5.0 → 0.6.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.
- package/README.md +176 -522
- package/agents/SKILL.md +38 -47
- package/agents/index.js +7 -7
- package/agents/llms.txt +49 -46
- package/agents/prompt.md +11 -11
- package/esm/extensions/client.d.ts +104 -127
- package/esm/extensions/client.js +162 -322
- package/esm/extensions/credentials.d.ts +13 -0
- package/esm/extensions/credentials.js +73 -0
- package/esm/extensions/environment.d.ts +25 -0
- package/esm/extensions/environment.js +1 -0
- package/esm/extensions/errors.d.ts +42 -75
- package/esm/extensions/errors.js +125 -110
- package/esm/extensions/index.d.ts +6 -11
- package/esm/extensions/index.js +2 -7
- package/esm/extensions/wait.d.ts +17 -18
- package/esm/extensions/wait.js +60 -56
- package/esm/extensions/yaml.d.ts +6 -0
- package/esm/extensions/yaml.js +137 -0
- package/esm/funcs/{catalog-release.d.ts → apps-list.d.ts} +1 -1
- package/esm/funcs/{environments-get-connection.js → apps-list.js} +11 -16
- package/esm/funcs/{credential-get.d.ts → apps-versions.d.ts} +1 -1
- package/esm/funcs/{workspaces-events.js → apps-versions.js} +6 -7
- package/esm/funcs/{environments-get-connection.d.ts → audit-events-list.d.ts} +1 -1
- package/esm/funcs/audit-events-list.js +93 -0
- package/esm/funcs/{workspaces-events.d.ts → environments-connect.d.ts} +1 -1
- package/esm/funcs/{environments-reveal.js → environments-connect.js} +7 -6
- package/esm/funcs/environments-create.d.ts +2 -1
- package/esm/funcs/environments-create.js +5 -10
- package/esm/funcs/{environments-events.d.ts → environments-delete.d.ts} +1 -1
- package/esm/funcs/{environments-stop.js → environments-delete.js} +7 -6
- package/esm/funcs/environments-get.d.ts +2 -1
- package/esm/funcs/environments-get.js +2 -1
- package/esm/funcs/environments-list.d.ts +1 -1
- package/esm/funcs/environments-list.js +11 -16
- package/esm/funcs/environments-pause.d.ts +12 -0
- package/esm/funcs/{environments-suspend.js → environments-pause.js} +6 -5
- package/esm/funcs/environments-resume.d.ts +2 -1
- package/esm/funcs/environments-resume.js +2 -1
- package/esm/funcs/environments-update.d.ts +12 -0
- package/esm/funcs/{environments-events.js → environments-update.js} +9 -13
- package/esm/funcs/me.d.ts +11 -0
- package/esm/funcs/{catalog-get.js → me.js} +5 -5
- package/esm/funcs/{catalog-get.d.ts → requests-body.d.ts} +1 -1
- package/esm/funcs/{environments-get-request-payload.js → requests-body.js} +5 -9
- package/esm/funcs/{environments-get-request-stats.d.ts → requests-get.d.ts} +2 -1
- package/esm/funcs/{catalog-release.js → requests-get.js} +7 -6
- package/esm/funcs/{environments-stop.d.ts → requests-list.d.ts} +1 -1
- package/esm/funcs/{environments-list-requests.js → requests-list.js} +9 -14
- package/esm/funcs/requests-stats.d.ts +12 -0
- package/esm/funcs/{environments-get-request-stats.js → requests-stats.js} +10 -14
- package/esm/funcs/snapshots-create.d.ts +12 -0
- package/esm/funcs/{snapshots-capture.js → snapshots-create.js} +6 -11
- package/esm/funcs/snapshots-delete.d.ts +2 -1
- package/esm/funcs/snapshots-delete.js +2 -1
- package/esm/funcs/snapshots-get.d.ts +2 -1
- package/esm/funcs/snapshots-get.js +2 -1
- package/esm/funcs/snapshots-list.d.ts +1 -1
- package/esm/funcs/snapshots-list.js +9 -13
- package/esm/funcs/snapshots-update.d.ts +2 -1
- package/esm/funcs/snapshots-update.js +2 -1
- package/esm/funcs/workspaces-get.d.ts +2 -1
- package/esm/funcs/workspaces-get.js +2 -1
- package/esm/funcs/workspaces-list.d.ts +1 -1
- package/esm/funcs/workspaces-list.js +3 -1
- package/esm/lib/config.d.ts +3 -3
- package/esm/lib/config.js +3 -3
- package/esm/models/actor.d.ts +2 -3
- package/esm/models/actor.js +2 -3
- package/esm/models/{api-profile.d.ts → api.d.ts} +4 -4
- package/esm/models/{api-profile.js → api.js} +4 -5
- package/esm/models/app.d.ts +9 -1
- package/esm/models/app.js +7 -1
- package/esm/models/{event.d.ts → audit-event.d.ts} +6 -6
- package/esm/models/{event.js → audit-event.js} +7 -6
- package/esm/models/{request-payload-preview.d.ts → body-preview.d.ts} +4 -4
- package/esm/models/{request-payload-preview.js → body-preview.js} +5 -4
- package/esm/models/create-environment.d.ts +51 -0
- package/esm/models/create-environment.js +35 -0
- package/esm/models/credentials.d.ts +31 -0
- package/esm/models/credentials.js +31 -0
- package/esm/models/environment-failure.d.ts +22 -0
- package/esm/models/environment-failure.js +25 -0
- package/esm/models/environment-status.d.ts +14 -0
- package/esm/models/environment-status.js +15 -0
- package/esm/models/environment.d.ts +27 -27
- package/esm/models/environment.js +28 -27
- package/esm/models/error.d.ts +38 -0
- package/esm/models/error.js +39 -0
- package/esm/models/errors/{error-response.d.ts → error.d.ts} +5 -5
- package/esm/models/errors/{error-response.js → error.js} +4 -4
- package/esm/models/errors/index.d.ts +1 -1
- package/esm/models/errors/index.js +1 -1
- package/esm/models/index.d.ts +17 -20
- package/esm/models/index.js +17 -20
- package/esm/models/me.d.ts +66 -0
- package/esm/models/me.js +75 -0
- package/esm/models/operations/create-credentials.d.ts +25 -0
- package/esm/models/operations/create-credentials.js +20 -0
- package/esm/models/operations/create-environment.d.ts +14 -0
- package/esm/models/operations/create-environment.js +18 -0
- package/esm/models/operations/create-snapshot.d.ts +25 -0
- package/esm/models/operations/create-snapshot.js +25 -0
- package/esm/models/operations/delete-environment.d.ts +13 -0
- package/esm/models/operations/delete-environment.js +17 -0
- package/esm/models/operations/delete-snapshot.d.ts +0 -12
- package/esm/models/operations/delete-snapshot.js +0 -9
- package/esm/models/operations/get-environment.d.ts +0 -12
- package/esm/models/operations/get-environment.js +0 -9
- package/esm/models/operations/get-request-body.d.ts +21 -0
- package/esm/models/operations/{get-environment-request-payload.js → get-request-body.js} +3 -4
- package/esm/models/operations/get-request-stats.d.ts +51 -0
- package/esm/models/operations/get-request-stats.js +40 -0
- package/esm/models/operations/get-request.d.ts +11 -0
- package/esm/models/operations/get-request.js +11 -0
- package/esm/models/operations/get-snapshot.d.ts +0 -12
- package/esm/models/operations/get-snapshot.js +0 -9
- package/esm/models/operations/get-workspace.d.ts +0 -12
- package/esm/models/operations/get-workspace.js +0 -9
- package/esm/models/operations/index.d.ts +13 -16
- package/esm/models/operations/index.js +13 -16
- package/esm/models/operations/list-apps.d.ts +26 -0
- package/esm/models/operations/list-apps.js +23 -0
- package/esm/models/operations/list-audit-events.d.ts +30 -0
- package/esm/models/operations/list-audit-events.js +25 -0
- package/esm/models/operations/list-environments.d.ts +6 -21
- package/esm/models/operations/list-environments.js +3 -16
- package/esm/models/operations/list-requests.d.ts +68 -0
- package/esm/models/operations/list-requests.js +53 -0
- package/esm/models/operations/list-snapshots.d.ts +8 -6
- package/esm/models/operations/list-snapshots.js +4 -3
- package/esm/models/operations/list-versions.d.ts +28 -0
- package/esm/models/operations/list-versions.js +24 -0
- package/esm/models/operations/list-workspaces.d.ts +8 -4
- package/esm/models/operations/list-workspaces.js +7 -4
- package/esm/models/operations/pause-environment.d.ts +13 -0
- package/esm/models/operations/pause-environment.js +17 -0
- package/esm/models/operations/resume-environment.d.ts +0 -12
- package/esm/models/operations/resume-environment.js +0 -9
- package/esm/models/operations/update-environment.d.ts +29 -0
- package/esm/models/operations/update-environment.js +20 -0
- package/esm/models/operations/update-snapshot.d.ts +0 -14
- package/esm/models/operations/update-snapshot.js +0 -10
- package/esm/models/permission.d.ts +17 -0
- package/esm/models/permission.js +18 -0
- package/esm/models/principal.d.ts +20 -0
- package/esm/models/principal.js +24 -0
- package/esm/models/request-detail.d.ts +39 -0
- package/esm/models/request-detail.js +38 -0
- package/esm/models/{environment-request-stats.d.ts → request-stats.d.ts} +3 -3
- package/esm/models/{environment-request-stats.js → request-stats.js} +3 -3
- package/esm/models/request.d.ts +30 -0
- package/esm/models/{environment-request.js → request.js} +11 -11
- package/esm/models/snapshot-status.d.ts +13 -0
- package/esm/models/snapshot-status.js +14 -0
- package/esm/models/snapshot.d.ts +47 -0
- package/esm/models/snapshot.js +54 -0
- package/esm/models/version.d.ts +27 -0
- package/esm/models/version.js +31 -0
- package/esm/models/workspace.d.ts +2 -4
- package/esm/models/workspace.js +2 -4
- package/esm/sdk/apps.d.ts +6 -0
- package/esm/sdk/apps.js +15 -0
- package/esm/sdk/audit-events.d.ts +5 -0
- package/esm/sdk/audit-events.js +11 -0
- package/esm/sdk/environments.d.ts +8 -13
- package/esm/sdk/environments.js +18 -38
- package/esm/sdk/requests.d.ts +9 -0
- package/esm/sdk/requests.js +23 -0
- package/esm/sdk/sdk.d.ts +11 -8
- package/esm/sdk/sdk.js +16 -11
- package/esm/sdk/snapshots.d.ts +6 -5
- package/esm/sdk/snapshots.js +7 -7
- package/esm/sdk/workspaces.d.ts +1 -2
- package/esm/sdk/workspaces.js +0 -4
- package/openapi.json +1697 -2507
- package/package.json +15 -13
- package/esm/extensions/apps.d.ts +0 -18
- package/esm/extensions/apps.js +0 -39
- package/esm/extensions/connection.d.ts +0 -42
- package/esm/extensions/connection.js +0 -133
- package/esm/extensions/running-environment.d.ts +0 -46
- package/esm/extensions/running-environment.js +0 -66
- package/esm/funcs/create-environment-definition.d.ts +0 -11
- package/esm/funcs/create-environment-definition.js +0 -94
- package/esm/funcs/credential-get.js +0 -76
- package/esm/funcs/environments-get-request-payload.d.ts +0 -11
- package/esm/funcs/environments-get-request.d.ts +0 -11
- package/esm/funcs/environments-get-request.js +0 -96
- package/esm/funcs/environments-list-requests.d.ts +0 -11
- package/esm/funcs/environments-reveal.d.ts +0 -11
- package/esm/funcs/environments-suspend.d.ts +0 -11
- package/esm/funcs/snapshots-capture.d.ts +0 -11
- package/esm/models/app-instance-snapshot.d.ts +0 -15
- package/esm/models/app-instance-snapshot.js +0 -19
- package/esm/models/catalog.d.ts +0 -12
- package/esm/models/catalog.js +0 -15
- package/esm/models/connection-secret.d.ts +0 -30
- package/esm/models/connection-secret.js +0 -31
- package/esm/models/connection.d.ts +0 -40
- package/esm/models/connection.js +0 -44
- package/esm/models/create-environment-input.d.ts +0 -39
- package/esm/models/create-environment-input.js +0 -25
- package/esm/models/credential-kind.d.ts +0 -9
- package/esm/models/credential-kind.js +0 -10
- package/esm/models/credential.d.ts +0 -48
- package/esm/models/credential.js +0 -44
- package/esm/models/environment-app.d.ts +0 -45
- package/esm/models/environment-app.js +0 -47
- package/esm/models/environment-lifetime.d.ts +0 -10
- package/esm/models/environment-lifetime.js +0 -14
- package/esm/models/environment-request-detail.d.ts +0 -40
- package/esm/models/environment-request-detail.js +0 -39
- package/esm/models/environment-request.d.ts +0 -31
- package/esm/models/environment-snapshot.d.ts +0 -40
- package/esm/models/environment-snapshot.js +0 -42
- package/esm/models/error-response.d.ts +0 -57
- package/esm/models/error-response.js +0 -59
- package/esm/models/event-page.d.ts +0 -11
- package/esm/models/event-page.js +0 -16
- package/esm/models/operations/capture-snapshot.d.ts +0 -41
- package/esm/models/operations/capture-snapshot.js +0 -36
- package/esm/models/operations/create-environment-definition.d.ts +0 -153
- package/esm/models/operations/create-environment-definition.js +0 -93
- package/esm/models/operations/create-environments.d.ts +0 -27
- package/esm/models/operations/create-environments.js +0 -27
- package/esm/models/operations/get-catalog.d.ts +0 -13
- package/esm/models/operations/get-catalog.js +0 -13
- package/esm/models/operations/get-connection.d.ts +0 -25
- package/esm/models/operations/get-connection.js +0 -21
- package/esm/models/operations/get-credential.d.ts +0 -13
- package/esm/models/operations/get-credential.js +0 -13
- package/esm/models/operations/get-environment-request-payload.d.ts +0 -23
- package/esm/models/operations/get-environment-request-stats.d.ts +0 -70
- package/esm/models/operations/get-environment-request-stats.js +0 -55
- package/esm/models/operations/get-environment-request.d.ts +0 -25
- package/esm/models/operations/get-environment-request.js +0 -21
- package/esm/models/operations/get-release.d.ts +0 -23
- package/esm/models/operations/get-release.js +0 -20
- package/esm/models/operations/list-environment-events.d.ts +0 -15
- package/esm/models/operations/list-environment-events.js +0 -13
- package/esm/models/operations/list-environment-requests.d.ts +0 -75
- package/esm/models/operations/list-environment-requests.js +0 -59
- package/esm/models/operations/list-workspace-events.d.ts +0 -15
- package/esm/models/operations/list-workspace-events.js +0 -13
- package/esm/models/operations/reveal-connection.d.ts +0 -59
- package/esm/models/operations/reveal-connection.js +0 -55
- package/esm/models/operations/stop-environment.d.ts +0 -25
- package/esm/models/operations/stop-environment.js +0 -26
- package/esm/models/operations/suspend-environment.d.ts +0 -25
- package/esm/models/operations/suspend-environment.js +0 -26
- package/esm/models/release-actor.d.ts +0 -11
- package/esm/models/release-actor.js +0 -15
- package/esm/models/release.d.ts +0 -37
- package/esm/models/release.js +0 -39
- package/esm/sdk/catalog.d.ts +0 -6
- package/esm/sdk/catalog.js +0 -15
- package/esm/sdk/credential.d.ts +0 -5
- package/esm/sdk/credential.js +0 -11
|
@@ -1,93 +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 { remap as remap$ } from "../../lib/primitives.js";
|
|
6
|
-
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
-
import { smartUnion } from "../../types/smart-union.js";
|
|
8
|
-
import * as models from "../index.js";
|
|
9
|
-
/** @internal */
|
|
10
|
-
export const From$outboundSchema = z.object({
|
|
11
|
-
snapshot: z.string(),
|
|
12
|
-
});
|
|
13
|
-
export function fromToJSON(from) {
|
|
14
|
-
return JSON.stringify(From$outboundSchema.parse(from));
|
|
15
|
-
}
|
|
16
|
-
/** @internal */
|
|
17
|
-
export const CreateEnvironmentDefinitionRequestBody2$outboundSchema = z.object({
|
|
18
|
-
from: z.lazy(() => From$outboundSchema),
|
|
19
|
-
labels: z.optional(z.record(z.string(), z.string())),
|
|
20
|
-
lifetimeMinutes: z.optional(z.int()),
|
|
21
|
-
name: z.optional(z.string()),
|
|
22
|
-
version: z._default(z.number(), 1),
|
|
23
|
-
});
|
|
24
|
-
export function createEnvironmentDefinitionRequestBody2ToJSON(createEnvironmentDefinitionRequestBody2) {
|
|
25
|
-
return JSON.stringify(CreateEnvironmentDefinitionRequestBody2$outboundSchema.parse(createEnvironmentDefinitionRequestBody2));
|
|
26
|
-
}
|
|
27
|
-
/** @internal */
|
|
28
|
-
export const Apps$outboundSchema = z.object({
|
|
29
|
-
app: z.string(),
|
|
30
|
-
configure: z.optional(z.record(z.string(), z.any())),
|
|
31
|
-
connections: z.optional(z.record(z.string(), z.any())),
|
|
32
|
-
defaultConnection: z.optional(z.string()),
|
|
33
|
-
preset: z.optional(z.string()),
|
|
34
|
-
release: z.optional(z.string()),
|
|
35
|
-
resources: z.optional(z.record(z.string(), z.any())),
|
|
36
|
-
settings: z.optional(z.record(z.string(), z.any())),
|
|
37
|
-
});
|
|
38
|
-
export function appsToJSON(apps) {
|
|
39
|
-
return JSON.stringify(Apps$outboundSchema.parse(apps));
|
|
40
|
-
}
|
|
41
|
-
/** @internal */
|
|
42
|
-
export const AppsUnion$outboundSchema = smartUnion([
|
|
43
|
-
z.array(z.string()),
|
|
44
|
-
z.record(z.string(), z.lazy(() => Apps$outboundSchema)),
|
|
45
|
-
]);
|
|
46
|
-
export function appsUnionToJSON(appsUnion) {
|
|
47
|
-
return JSON.stringify(AppsUnion$outboundSchema.parse(appsUnion));
|
|
48
|
-
}
|
|
49
|
-
/** @internal */
|
|
50
|
-
export const CreateEnvironmentDefinitionRequestBody1$outboundSchema = z.object({
|
|
51
|
-
apps: smartUnion([
|
|
52
|
-
z.array(z.string()),
|
|
53
|
-
z.record(z.string(), z.lazy(() => Apps$outboundSchema)),
|
|
54
|
-
]),
|
|
55
|
-
labels: z.optional(z.record(z.string(), z.string())),
|
|
56
|
-
lifetimeMinutes: z.optional(z.int()),
|
|
57
|
-
name: z.optional(z.string()),
|
|
58
|
-
version: z._default(z.number(), 1),
|
|
59
|
-
});
|
|
60
|
-
export function createEnvironmentDefinitionRequestBody1ToJSON(createEnvironmentDefinitionRequestBody1) {
|
|
61
|
-
return JSON.stringify(CreateEnvironmentDefinitionRequestBody1$outboundSchema.parse(createEnvironmentDefinitionRequestBody1));
|
|
62
|
-
}
|
|
63
|
-
/** @internal */
|
|
64
|
-
export const CreateEnvironmentDefinitionRequestBody$outboundSchema = smartUnion([
|
|
65
|
-
z.lazy(() => CreateEnvironmentDefinitionRequestBody1$outboundSchema),
|
|
66
|
-
z.lazy(() => CreateEnvironmentDefinitionRequestBody2$outboundSchema),
|
|
67
|
-
]);
|
|
68
|
-
export function createEnvironmentDefinitionRequestBodyToJSON(createEnvironmentDefinitionRequestBody) {
|
|
69
|
-
return JSON.stringify(CreateEnvironmentDefinitionRequestBody$outboundSchema.parse(createEnvironmentDefinitionRequestBody));
|
|
70
|
-
}
|
|
71
|
-
/** @internal */
|
|
72
|
-
export const CreateEnvironmentDefinitionRequest$outboundSchema = z.pipe(z.object({
|
|
73
|
-
workspaceId: z.string(),
|
|
74
|
-
idempotencyKey: z.string(),
|
|
75
|
-
body: smartUnion([
|
|
76
|
-
z.lazy(() => CreateEnvironmentDefinitionRequestBody1$outboundSchema),
|
|
77
|
-
z.lazy(() => CreateEnvironmentDefinitionRequestBody2$outboundSchema),
|
|
78
|
-
]),
|
|
79
|
-
}), z.transform((v) => {
|
|
80
|
-
return remap$(v, {
|
|
81
|
-
idempotencyKey: "idempotency-key",
|
|
82
|
-
});
|
|
83
|
-
}));
|
|
84
|
-
export function createEnvironmentDefinitionRequestToJSON(createEnvironmentDefinitionRequest) {
|
|
85
|
-
return JSON.stringify(CreateEnvironmentDefinitionRequest$outboundSchema.parse(createEnvironmentDefinitionRequest));
|
|
86
|
-
}
|
|
87
|
-
/** @internal */
|
|
88
|
-
export const CreateEnvironmentDefinitionResponse$inboundSchema = z.object({
|
|
89
|
-
data: models.Environment$inboundSchema,
|
|
90
|
-
});
|
|
91
|
-
export function createEnvironmentDefinitionResponseFromJSON(jsonString) {
|
|
92
|
-
return safeParse(jsonString, (x) => CreateEnvironmentDefinitionResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateEnvironmentDefinitionResponse' from JSON`);
|
|
93
|
-
}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import * as z from "zod/v4-mini";
|
|
2
|
-
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
|
-
import { SDKValidationError } from "../errors/sdk-validation-error.js";
|
|
4
|
-
import * as models from "../index.js";
|
|
5
|
-
export type CreateEnvironmentsRequest = {
|
|
6
|
-
workspaceId: string;
|
|
7
|
-
idempotencyKey: string;
|
|
8
|
-
body: models.CreateEnvironmentInput;
|
|
9
|
-
};
|
|
10
|
-
/**
|
|
11
|
-
* Environments accepted; each app starts in its own sandbox
|
|
12
|
-
*/
|
|
13
|
-
export type CreateEnvironmentsResponse = {
|
|
14
|
-
data: Array<models.Environment>;
|
|
15
|
-
};
|
|
16
|
-
/** @internal */
|
|
17
|
-
export type CreateEnvironmentsRequest$Outbound = {
|
|
18
|
-
workspaceId: string;
|
|
19
|
-
"idempotency-key": string;
|
|
20
|
-
body: models.CreateEnvironmentInput$Outbound;
|
|
21
|
-
};
|
|
22
|
-
/** @internal */
|
|
23
|
-
export declare const CreateEnvironmentsRequest$outboundSchema: z.ZodMiniType<CreateEnvironmentsRequest$Outbound, CreateEnvironmentsRequest>;
|
|
24
|
-
export declare function createEnvironmentsRequestToJSON(createEnvironmentsRequest: CreateEnvironmentsRequest): string;
|
|
25
|
-
/** @internal */
|
|
26
|
-
export declare const CreateEnvironmentsResponse$inboundSchema: z.ZodMiniType<CreateEnvironmentsResponse, unknown>;
|
|
27
|
-
export declare function createEnvironmentsResponseFromJSON(jsonString: string): SafeParseResult<CreateEnvironmentsResponse, SDKValidationError>;
|
|
@@ -1,27 +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 { remap as remap$ } from "../../lib/primitives.js";
|
|
6
|
-
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
-
import * as models from "../index.js";
|
|
8
|
-
/** @internal */
|
|
9
|
-
export const CreateEnvironmentsRequest$outboundSchema = z.pipe(z.object({
|
|
10
|
-
workspaceId: z.string(),
|
|
11
|
-
idempotencyKey: z.string(),
|
|
12
|
-
body: models.CreateEnvironmentInput$outboundSchema,
|
|
13
|
-
}), z.transform((v) => {
|
|
14
|
-
return remap$(v, {
|
|
15
|
-
idempotencyKey: "idempotency-key",
|
|
16
|
-
});
|
|
17
|
-
}));
|
|
18
|
-
export function createEnvironmentsRequestToJSON(createEnvironmentsRequest) {
|
|
19
|
-
return JSON.stringify(CreateEnvironmentsRequest$outboundSchema.parse(createEnvironmentsRequest));
|
|
20
|
-
}
|
|
21
|
-
/** @internal */
|
|
22
|
-
export const CreateEnvironmentsResponse$inboundSchema = z.object({
|
|
23
|
-
data: z.array(models.Environment$inboundSchema),
|
|
24
|
-
});
|
|
25
|
-
export function createEnvironmentsResponseFromJSON(jsonString) {
|
|
26
|
-
return safeParse(jsonString, (x) => CreateEnvironmentsResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateEnvironmentsResponse' from JSON`);
|
|
27
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import * as z from "zod/v4-mini";
|
|
2
|
-
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
|
-
import { SDKValidationError } from "../errors/sdk-validation-error.js";
|
|
4
|
-
import * as models from "../index.js";
|
|
5
|
-
/**
|
|
6
|
-
* Admitted application catalog
|
|
7
|
-
*/
|
|
8
|
-
export type GetCatalogResponse = {
|
|
9
|
-
data: models.Catalog;
|
|
10
|
-
};
|
|
11
|
-
/** @internal */
|
|
12
|
-
export declare const GetCatalogResponse$inboundSchema: z.ZodMiniType<GetCatalogResponse, unknown>;
|
|
13
|
-
export declare function getCatalogResponseFromJSON(jsonString: string): SafeParseResult<GetCatalogResponse, SDKValidationError>;
|
|
@@ -1,13 +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 { safeParse } from "../../lib/schemas.js";
|
|
6
|
-
import * as models from "../index.js";
|
|
7
|
-
/** @internal */
|
|
8
|
-
export const GetCatalogResponse$inboundSchema = z.object({
|
|
9
|
-
data: models.Catalog$inboundSchema,
|
|
10
|
-
});
|
|
11
|
-
export function getCatalogResponseFromJSON(jsonString) {
|
|
12
|
-
return safeParse(jsonString, (x) => GetCatalogResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetCatalogResponse' from JSON`);
|
|
13
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import * as z from "zod/v4-mini";
|
|
2
|
-
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
|
-
import { SDKValidationError } from "../errors/sdk-validation-error.js";
|
|
4
|
-
import * as models from "../index.js";
|
|
5
|
-
export type GetConnectionRequest = {
|
|
6
|
-
environmentId: string;
|
|
7
|
-
appKey: string;
|
|
8
|
-
};
|
|
9
|
-
/**
|
|
10
|
-
* How to reach one app; never contains secrets
|
|
11
|
-
*/
|
|
12
|
-
export type GetConnectionResponse = {
|
|
13
|
-
data: models.Connection;
|
|
14
|
-
};
|
|
15
|
-
/** @internal */
|
|
16
|
-
export type GetConnectionRequest$Outbound = {
|
|
17
|
-
environmentId: string;
|
|
18
|
-
appKey: string;
|
|
19
|
-
};
|
|
20
|
-
/** @internal */
|
|
21
|
-
export declare const GetConnectionRequest$outboundSchema: z.ZodMiniType<GetConnectionRequest$Outbound, GetConnectionRequest>;
|
|
22
|
-
export declare function getConnectionRequestToJSON(getConnectionRequest: GetConnectionRequest): string;
|
|
23
|
-
/** @internal */
|
|
24
|
-
export declare const GetConnectionResponse$inboundSchema: z.ZodMiniType<GetConnectionResponse, unknown>;
|
|
25
|
-
export declare function getConnectionResponseFromJSON(jsonString: string): SafeParseResult<GetConnectionResponse, SDKValidationError>;
|
|
@@ -1,21 +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 { safeParse } from "../../lib/schemas.js";
|
|
6
|
-
import * as models from "../index.js";
|
|
7
|
-
/** @internal */
|
|
8
|
-
export const GetConnectionRequest$outboundSchema = z.object({
|
|
9
|
-
environmentId: z.string(),
|
|
10
|
-
appKey: z.string(),
|
|
11
|
-
});
|
|
12
|
-
export function getConnectionRequestToJSON(getConnectionRequest) {
|
|
13
|
-
return JSON.stringify(GetConnectionRequest$outboundSchema.parse(getConnectionRequest));
|
|
14
|
-
}
|
|
15
|
-
/** @internal */
|
|
16
|
-
export const GetConnectionResponse$inboundSchema = z.object({
|
|
17
|
-
data: models.Connection$inboundSchema,
|
|
18
|
-
});
|
|
19
|
-
export function getConnectionResponseFromJSON(jsonString) {
|
|
20
|
-
return safeParse(jsonString, (x) => GetConnectionResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetConnectionResponse' from JSON`);
|
|
21
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import * as z from "zod/v4-mini";
|
|
2
|
-
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
|
-
import { SDKValidationError } from "../errors/sdk-validation-error.js";
|
|
4
|
-
import * as models from "../index.js";
|
|
5
|
-
/**
|
|
6
|
-
* The calling credential, its workspace and its limits
|
|
7
|
-
*/
|
|
8
|
-
export type GetCredentialResponse = {
|
|
9
|
-
data: models.Credential;
|
|
10
|
-
};
|
|
11
|
-
/** @internal */
|
|
12
|
-
export declare const GetCredentialResponse$inboundSchema: z.ZodMiniType<GetCredentialResponse, unknown>;
|
|
13
|
-
export declare function getCredentialResponseFromJSON(jsonString: string): SafeParseResult<GetCredentialResponse, SDKValidationError>;
|
|
@@ -1,13 +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 { safeParse } from "../../lib/schemas.js";
|
|
6
|
-
import * as models from "../index.js";
|
|
7
|
-
/** @internal */
|
|
8
|
-
export const GetCredentialResponse$inboundSchema = z.object({
|
|
9
|
-
data: models.Credential$inboundSchema,
|
|
10
|
-
});
|
|
11
|
-
export function getCredentialResponseFromJSON(jsonString) {
|
|
12
|
-
return safeParse(jsonString, (x) => GetCredentialResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetCredentialResponse' from JSON`);
|
|
13
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import * as z from "zod/v4-mini";
|
|
2
|
-
import { ClosedEnum } from "../../types/enums.js";
|
|
3
|
-
export declare const Direction: {
|
|
4
|
-
readonly Request: "request";
|
|
5
|
-
readonly Response: "response";
|
|
6
|
-
};
|
|
7
|
-
export type Direction = ClosedEnum<typeof Direction>;
|
|
8
|
-
export type GetEnvironmentRequestPayloadRequest = {
|
|
9
|
-
environmentId: string;
|
|
10
|
-
requestId: string;
|
|
11
|
-
direction: Direction;
|
|
12
|
-
};
|
|
13
|
-
/** @internal */
|
|
14
|
-
export declare const Direction$outboundSchema: z.ZodMiniEnum<typeof Direction>;
|
|
15
|
-
/** @internal */
|
|
16
|
-
export type GetEnvironmentRequestPayloadRequest$Outbound = {
|
|
17
|
-
environmentId: string;
|
|
18
|
-
requestId: string;
|
|
19
|
-
direction: string;
|
|
20
|
-
};
|
|
21
|
-
/** @internal */
|
|
22
|
-
export declare const GetEnvironmentRequestPayloadRequest$outboundSchema: z.ZodMiniType<GetEnvironmentRequestPayloadRequest$Outbound, GetEnvironmentRequestPayloadRequest>;
|
|
23
|
-
export declare function getEnvironmentRequestPayloadRequestToJSON(getEnvironmentRequestPayloadRequest: GetEnvironmentRequestPayloadRequest): string;
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
import * as z from "zod/v4-mini";
|
|
2
|
-
import { ClosedEnum } from "../../types/enums.js";
|
|
3
|
-
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
4
|
-
import { SDKValidationError } from "../errors/sdk-validation-error.js";
|
|
5
|
-
import * as models from "../index.js";
|
|
6
|
-
export declare const GetEnvironmentRequestStatsStatusClass: {
|
|
7
|
-
readonly Twoxx: "2xx";
|
|
8
|
-
readonly Threexx: "3xx";
|
|
9
|
-
readonly Fourxx: "4xx";
|
|
10
|
-
readonly Fivexx: "5xx";
|
|
11
|
-
};
|
|
12
|
-
export type GetEnvironmentRequestStatsStatusClass = ClosedEnum<typeof GetEnvironmentRequestStatsStatusClass>;
|
|
13
|
-
export declare const GetEnvironmentRequestStatsMethod: {
|
|
14
|
-
readonly Get: "GET";
|
|
15
|
-
readonly Head: "HEAD";
|
|
16
|
-
readonly Post: "POST";
|
|
17
|
-
readonly Put: "PUT";
|
|
18
|
-
readonly Patch: "PATCH";
|
|
19
|
-
readonly Delete: "DELETE";
|
|
20
|
-
readonly Options: "OPTIONS";
|
|
21
|
-
readonly Connect: "CONNECT";
|
|
22
|
-
readonly Trace: "TRACE";
|
|
23
|
-
};
|
|
24
|
-
export type GetEnvironmentRequestStatsMethod = ClosedEnum<typeof GetEnvironmentRequestStatsMethod>;
|
|
25
|
-
export declare const GetEnvironmentRequestStatsWritesOnly: {
|
|
26
|
-
readonly True: "true";
|
|
27
|
-
readonly False: "false";
|
|
28
|
-
};
|
|
29
|
-
export type GetEnvironmentRequestStatsWritesOnly = ClosedEnum<typeof GetEnvironmentRequestStatsWritesOnly>;
|
|
30
|
-
export type GetEnvironmentRequestStatsRequest = {
|
|
31
|
-
environmentId: string;
|
|
32
|
-
appKey?: string | undefined;
|
|
33
|
-
status?: number | undefined;
|
|
34
|
-
statusClass?: GetEnvironmentRequestStatsStatusClass | undefined;
|
|
35
|
-
method?: GetEnvironmentRequestStatsMethod | undefined;
|
|
36
|
-
search?: string | undefined;
|
|
37
|
-
writesOnly?: GetEnvironmentRequestStatsWritesOnly | undefined;
|
|
38
|
-
from: Date;
|
|
39
|
-
to: Date;
|
|
40
|
-
};
|
|
41
|
-
/**
|
|
42
|
-
* Recorded request statistics across the selected time window
|
|
43
|
-
*/
|
|
44
|
-
export type GetEnvironmentRequestStatsResponse = {
|
|
45
|
-
data: models.EnvironmentRequestStats;
|
|
46
|
-
};
|
|
47
|
-
/** @internal */
|
|
48
|
-
export declare const GetEnvironmentRequestStatsStatusClass$outboundSchema: z.ZodMiniEnum<typeof GetEnvironmentRequestStatsStatusClass>;
|
|
49
|
-
/** @internal */
|
|
50
|
-
export declare const GetEnvironmentRequestStatsMethod$outboundSchema: z.ZodMiniEnum<typeof GetEnvironmentRequestStatsMethod>;
|
|
51
|
-
/** @internal */
|
|
52
|
-
export declare const GetEnvironmentRequestStatsWritesOnly$outboundSchema: z.ZodMiniEnum<typeof GetEnvironmentRequestStatsWritesOnly>;
|
|
53
|
-
/** @internal */
|
|
54
|
-
export type GetEnvironmentRequestStatsRequest$Outbound = {
|
|
55
|
-
environmentId: string;
|
|
56
|
-
appKey?: string | undefined;
|
|
57
|
-
status?: number | undefined;
|
|
58
|
-
statusClass?: string | undefined;
|
|
59
|
-
method?: string | undefined;
|
|
60
|
-
search?: string | undefined;
|
|
61
|
-
writesOnly?: string | undefined;
|
|
62
|
-
from: string;
|
|
63
|
-
to: string;
|
|
64
|
-
};
|
|
65
|
-
/** @internal */
|
|
66
|
-
export declare const GetEnvironmentRequestStatsRequest$outboundSchema: z.ZodMiniType<GetEnvironmentRequestStatsRequest$Outbound, GetEnvironmentRequestStatsRequest>;
|
|
67
|
-
export declare function getEnvironmentRequestStatsRequestToJSON(getEnvironmentRequestStatsRequest: GetEnvironmentRequestStatsRequest): string;
|
|
68
|
-
/** @internal */
|
|
69
|
-
export declare const GetEnvironmentRequestStatsResponse$inboundSchema: z.ZodMiniType<GetEnvironmentRequestStatsResponse, unknown>;
|
|
70
|
-
export declare function getEnvironmentRequestStatsResponseFromJSON(jsonString: string): SafeParseResult<GetEnvironmentRequestStatsResponse, SDKValidationError>;
|
|
@@ -1,55 +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 { safeParse } from "../../lib/schemas.js";
|
|
6
|
-
import * as models from "../index.js";
|
|
7
|
-
export const GetEnvironmentRequestStatsStatusClass = {
|
|
8
|
-
Twoxx: "2xx",
|
|
9
|
-
Threexx: "3xx",
|
|
10
|
-
Fourxx: "4xx",
|
|
11
|
-
Fivexx: "5xx",
|
|
12
|
-
};
|
|
13
|
-
export const GetEnvironmentRequestStatsMethod = {
|
|
14
|
-
Get: "GET",
|
|
15
|
-
Head: "HEAD",
|
|
16
|
-
Post: "POST",
|
|
17
|
-
Put: "PUT",
|
|
18
|
-
Patch: "PATCH",
|
|
19
|
-
Delete: "DELETE",
|
|
20
|
-
Options: "OPTIONS",
|
|
21
|
-
Connect: "CONNECT",
|
|
22
|
-
Trace: "TRACE",
|
|
23
|
-
};
|
|
24
|
-
export const GetEnvironmentRequestStatsWritesOnly = {
|
|
25
|
-
True: "true",
|
|
26
|
-
False: "false",
|
|
27
|
-
};
|
|
28
|
-
/** @internal */
|
|
29
|
-
export const GetEnvironmentRequestStatsStatusClass$outboundSchema = z.enum(GetEnvironmentRequestStatsStatusClass);
|
|
30
|
-
/** @internal */
|
|
31
|
-
export const GetEnvironmentRequestStatsMethod$outboundSchema = z.enum(GetEnvironmentRequestStatsMethod);
|
|
32
|
-
/** @internal */
|
|
33
|
-
export const GetEnvironmentRequestStatsWritesOnly$outboundSchema = z.enum(GetEnvironmentRequestStatsWritesOnly);
|
|
34
|
-
/** @internal */
|
|
35
|
-
export const GetEnvironmentRequestStatsRequest$outboundSchema = z.object({
|
|
36
|
-
environmentId: z.string(),
|
|
37
|
-
appKey: z.optional(z.string()),
|
|
38
|
-
status: z.optional(z.int()),
|
|
39
|
-
statusClass: z.optional(GetEnvironmentRequestStatsStatusClass$outboundSchema),
|
|
40
|
-
method: z.optional(GetEnvironmentRequestStatsMethod$outboundSchema),
|
|
41
|
-
search: z.optional(z.string()),
|
|
42
|
-
writesOnly: z.optional(GetEnvironmentRequestStatsWritesOnly$outboundSchema),
|
|
43
|
-
from: z.pipe(z.date(), z.transform(v => v.toISOString())),
|
|
44
|
-
to: z.pipe(z.date(), z.transform(v => v.toISOString())),
|
|
45
|
-
});
|
|
46
|
-
export function getEnvironmentRequestStatsRequestToJSON(getEnvironmentRequestStatsRequest) {
|
|
47
|
-
return JSON.stringify(GetEnvironmentRequestStatsRequest$outboundSchema.parse(getEnvironmentRequestStatsRequest));
|
|
48
|
-
}
|
|
49
|
-
/** @internal */
|
|
50
|
-
export const GetEnvironmentRequestStatsResponse$inboundSchema = z.object({
|
|
51
|
-
data: models.EnvironmentRequestStats$inboundSchema,
|
|
52
|
-
});
|
|
53
|
-
export function getEnvironmentRequestStatsResponseFromJSON(jsonString) {
|
|
54
|
-
return safeParse(jsonString, (x) => GetEnvironmentRequestStatsResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetEnvironmentRequestStatsResponse' from JSON`);
|
|
55
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import * as z from "zod/v4-mini";
|
|
2
|
-
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
|
-
import { SDKValidationError } from "../errors/sdk-validation-error.js";
|
|
4
|
-
import * as models from "../index.js";
|
|
5
|
-
export type GetEnvironmentRequestRequest = {
|
|
6
|
-
environmentId: string;
|
|
7
|
-
requestId: string;
|
|
8
|
-
};
|
|
9
|
-
/**
|
|
10
|
-
* Recorded request with bounded payload previews
|
|
11
|
-
*/
|
|
12
|
-
export type GetEnvironmentRequestResponse = {
|
|
13
|
-
data: models.EnvironmentRequestDetail;
|
|
14
|
-
};
|
|
15
|
-
/** @internal */
|
|
16
|
-
export type GetEnvironmentRequestRequest$Outbound = {
|
|
17
|
-
environmentId: string;
|
|
18
|
-
requestId: string;
|
|
19
|
-
};
|
|
20
|
-
/** @internal */
|
|
21
|
-
export declare const GetEnvironmentRequestRequest$outboundSchema: z.ZodMiniType<GetEnvironmentRequestRequest$Outbound, GetEnvironmentRequestRequest>;
|
|
22
|
-
export declare function getEnvironmentRequestRequestToJSON(getEnvironmentRequestRequest: GetEnvironmentRequestRequest): string;
|
|
23
|
-
/** @internal */
|
|
24
|
-
export declare const GetEnvironmentRequestResponse$inboundSchema: z.ZodMiniType<GetEnvironmentRequestResponse, unknown>;
|
|
25
|
-
export declare function getEnvironmentRequestResponseFromJSON(jsonString: string): SafeParseResult<GetEnvironmentRequestResponse, SDKValidationError>;
|
|
@@ -1,21 +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 { safeParse } from "../../lib/schemas.js";
|
|
6
|
-
import * as models from "../index.js";
|
|
7
|
-
/** @internal */
|
|
8
|
-
export const GetEnvironmentRequestRequest$outboundSchema = z.object({
|
|
9
|
-
environmentId: z.string(),
|
|
10
|
-
requestId: z.string(),
|
|
11
|
-
});
|
|
12
|
-
export function getEnvironmentRequestRequestToJSON(getEnvironmentRequestRequest) {
|
|
13
|
-
return JSON.stringify(GetEnvironmentRequestRequest$outboundSchema.parse(getEnvironmentRequestRequest));
|
|
14
|
-
}
|
|
15
|
-
/** @internal */
|
|
16
|
-
export const GetEnvironmentRequestResponse$inboundSchema = z.object({
|
|
17
|
-
data: models.EnvironmentRequestDetail$inboundSchema,
|
|
18
|
-
});
|
|
19
|
-
export function getEnvironmentRequestResponseFromJSON(jsonString) {
|
|
20
|
-
return safeParse(jsonString, (x) => GetEnvironmentRequestResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetEnvironmentRequestResponse' from JSON`);
|
|
21
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import * as z from "zod/v4-mini";
|
|
2
|
-
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
|
-
import { SDKValidationError } from "../errors/sdk-validation-error.js";
|
|
4
|
-
import * as models from "../index.js";
|
|
5
|
-
export type GetReleaseRequest = {
|
|
6
|
-
releaseId: string;
|
|
7
|
-
};
|
|
8
|
-
/**
|
|
9
|
-
* Pinned application release
|
|
10
|
-
*/
|
|
11
|
-
export type GetReleaseResponse = {
|
|
12
|
-
data: models.Release;
|
|
13
|
-
};
|
|
14
|
-
/** @internal */
|
|
15
|
-
export type GetReleaseRequest$Outbound = {
|
|
16
|
-
releaseId: string;
|
|
17
|
-
};
|
|
18
|
-
/** @internal */
|
|
19
|
-
export declare const GetReleaseRequest$outboundSchema: z.ZodMiniType<GetReleaseRequest$Outbound, GetReleaseRequest>;
|
|
20
|
-
export declare function getReleaseRequestToJSON(getReleaseRequest: GetReleaseRequest): string;
|
|
21
|
-
/** @internal */
|
|
22
|
-
export declare const GetReleaseResponse$inboundSchema: z.ZodMiniType<GetReleaseResponse, unknown>;
|
|
23
|
-
export declare function getReleaseResponseFromJSON(jsonString: string): SafeParseResult<GetReleaseResponse, SDKValidationError>;
|
|
@@ -1,20 +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 { safeParse } from "../../lib/schemas.js";
|
|
6
|
-
import * as models from "../index.js";
|
|
7
|
-
/** @internal */
|
|
8
|
-
export const GetReleaseRequest$outboundSchema = z.object({
|
|
9
|
-
releaseId: z.string(),
|
|
10
|
-
});
|
|
11
|
-
export function getReleaseRequestToJSON(getReleaseRequest) {
|
|
12
|
-
return JSON.stringify(GetReleaseRequest$outboundSchema.parse(getReleaseRequest));
|
|
13
|
-
}
|
|
14
|
-
/** @internal */
|
|
15
|
-
export const GetReleaseResponse$inboundSchema = z.object({
|
|
16
|
-
data: models.Release$inboundSchema,
|
|
17
|
-
});
|
|
18
|
-
export function getReleaseResponseFromJSON(jsonString) {
|
|
19
|
-
return safeParse(jsonString, (x) => GetReleaseResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetReleaseResponse' from JSON`);
|
|
20
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import * as z from "zod/v4-mini";
|
|
2
|
-
export type ListEnvironmentEventsRequest = {
|
|
3
|
-
environmentId: string;
|
|
4
|
-
limit?: number | undefined;
|
|
5
|
-
cursor?: string | undefined;
|
|
6
|
-
};
|
|
7
|
-
/** @internal */
|
|
8
|
-
export type ListEnvironmentEventsRequest$Outbound = {
|
|
9
|
-
environmentId: string;
|
|
10
|
-
limit: number;
|
|
11
|
-
cursor?: string | undefined;
|
|
12
|
-
};
|
|
13
|
-
/** @internal */
|
|
14
|
-
export declare const ListEnvironmentEventsRequest$outboundSchema: z.ZodMiniType<ListEnvironmentEventsRequest$Outbound, ListEnvironmentEventsRequest>;
|
|
15
|
-
export declare function listEnvironmentEventsRequestToJSON(listEnvironmentEventsRequest: ListEnvironmentEventsRequest): string;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
import * as z from "zod/v4-mini";
|
|
5
|
-
/** @internal */
|
|
6
|
-
export const ListEnvironmentEventsRequest$outboundSchema = z.object({
|
|
7
|
-
environmentId: z.string(),
|
|
8
|
-
limit: z._default(z.int(), 50),
|
|
9
|
-
cursor: z.optional(z.string()),
|
|
10
|
-
});
|
|
11
|
-
export function listEnvironmentEventsRequestToJSON(listEnvironmentEventsRequest) {
|
|
12
|
-
return JSON.stringify(ListEnvironmentEventsRequest$outboundSchema.parse(listEnvironmentEventsRequest));
|
|
13
|
-
}
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
import * as z from "zod/v4-mini";
|
|
2
|
-
import { ClosedEnum } from "../../types/enums.js";
|
|
3
|
-
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
4
|
-
import { SDKValidationError } from "../errors/sdk-validation-error.js";
|
|
5
|
-
import * as models from "../index.js";
|
|
6
|
-
export declare const ListEnvironmentRequestsStatusClass: {
|
|
7
|
-
readonly Twoxx: "2xx";
|
|
8
|
-
readonly Threexx: "3xx";
|
|
9
|
-
readonly Fourxx: "4xx";
|
|
10
|
-
readonly Fivexx: "5xx";
|
|
11
|
-
};
|
|
12
|
-
export type ListEnvironmentRequestsStatusClass = ClosedEnum<typeof ListEnvironmentRequestsStatusClass>;
|
|
13
|
-
export declare const ListEnvironmentRequestsMethod: {
|
|
14
|
-
readonly Get: "GET";
|
|
15
|
-
readonly Head: "HEAD";
|
|
16
|
-
readonly Post: "POST";
|
|
17
|
-
readonly Put: "PUT";
|
|
18
|
-
readonly Patch: "PATCH";
|
|
19
|
-
readonly Delete: "DELETE";
|
|
20
|
-
readonly Options: "OPTIONS";
|
|
21
|
-
readonly Connect: "CONNECT";
|
|
22
|
-
readonly Trace: "TRACE";
|
|
23
|
-
};
|
|
24
|
-
export type ListEnvironmentRequestsMethod = ClosedEnum<typeof ListEnvironmentRequestsMethod>;
|
|
25
|
-
export declare const ListEnvironmentRequestsWritesOnly: {
|
|
26
|
-
readonly True: "true";
|
|
27
|
-
readonly False: "false";
|
|
28
|
-
};
|
|
29
|
-
export type ListEnvironmentRequestsWritesOnly = ClosedEnum<typeof ListEnvironmentRequestsWritesOnly>;
|
|
30
|
-
export type ListEnvironmentRequestsRequest = {
|
|
31
|
-
environmentId: string;
|
|
32
|
-
limit?: number | undefined;
|
|
33
|
-
cursor?: string | undefined;
|
|
34
|
-
appKey?: string | undefined;
|
|
35
|
-
status?: number | undefined;
|
|
36
|
-
statusClass?: ListEnvironmentRequestsStatusClass | undefined;
|
|
37
|
-
method?: ListEnvironmentRequestsMethod | undefined;
|
|
38
|
-
search?: string | undefined;
|
|
39
|
-
writesOnly?: ListEnvironmentRequestsWritesOnly | undefined;
|
|
40
|
-
from?: Date | undefined;
|
|
41
|
-
to?: Date | undefined;
|
|
42
|
-
};
|
|
43
|
-
/**
|
|
44
|
-
* Best-effort recorded replica requests, newest first
|
|
45
|
-
*/
|
|
46
|
-
export type ListEnvironmentRequestsResponse = {
|
|
47
|
-
data: Array<models.EnvironmentRequest>;
|
|
48
|
-
nextCursor: string | null;
|
|
49
|
-
};
|
|
50
|
-
/** @internal */
|
|
51
|
-
export declare const ListEnvironmentRequestsStatusClass$outboundSchema: z.ZodMiniEnum<typeof ListEnvironmentRequestsStatusClass>;
|
|
52
|
-
/** @internal */
|
|
53
|
-
export declare const ListEnvironmentRequestsMethod$outboundSchema: z.ZodMiniEnum<typeof ListEnvironmentRequestsMethod>;
|
|
54
|
-
/** @internal */
|
|
55
|
-
export declare const ListEnvironmentRequestsWritesOnly$outboundSchema: z.ZodMiniEnum<typeof ListEnvironmentRequestsWritesOnly>;
|
|
56
|
-
/** @internal */
|
|
57
|
-
export type ListEnvironmentRequestsRequest$Outbound = {
|
|
58
|
-
environmentId: string;
|
|
59
|
-
limit: number;
|
|
60
|
-
cursor?: string | undefined;
|
|
61
|
-
appKey?: string | undefined;
|
|
62
|
-
status?: number | undefined;
|
|
63
|
-
statusClass?: string | undefined;
|
|
64
|
-
method?: string | undefined;
|
|
65
|
-
search?: string | undefined;
|
|
66
|
-
writesOnly?: string | undefined;
|
|
67
|
-
from?: string | undefined;
|
|
68
|
-
to?: string | undefined;
|
|
69
|
-
};
|
|
70
|
-
/** @internal */
|
|
71
|
-
export declare const ListEnvironmentRequestsRequest$outboundSchema: z.ZodMiniType<ListEnvironmentRequestsRequest$Outbound, ListEnvironmentRequestsRequest>;
|
|
72
|
-
export declare function listEnvironmentRequestsRequestToJSON(listEnvironmentRequestsRequest: ListEnvironmentRequestsRequest): string;
|
|
73
|
-
/** @internal */
|
|
74
|
-
export declare const ListEnvironmentRequestsResponse$inboundSchema: z.ZodMiniType<ListEnvironmentRequestsResponse, unknown>;
|
|
75
|
-
export declare function listEnvironmentRequestsResponseFromJSON(jsonString: string): SafeParseResult<ListEnvironmentRequestsResponse, SDKValidationError>;
|