@tailorkit/client-platform 0.1.0-beta.13 → 0.1.0-beta.16
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/dist/{chunk-QGZU6HXU.js → chunk-MFXQKOYT.js} +79 -23
- package/dist/chunk-RFNELX3J.js +107 -0
- package/dist/client/client/client.gen.d.ts +1 -1
- package/dist/client/client/index.d.ts +10 -10
- package/dist/client/client/types.gen.d.ts +4 -4
- package/dist/client/client/utils.gen.d.ts +2 -2
- package/dist/client/client.gen.d.ts +2 -2
- package/dist/client/core/bodySerializer.gen.d.ts +1 -1
- package/dist/client/core/serverSentEvents.gen.d.ts +1 -1
- package/dist/client/core/types.gen.d.ts +2 -2
- package/dist/client/core/utils.gen.d.ts +1 -1
- package/dist/client/index.d.ts +2 -2
- package/dist/client/index.js +11 -3
- package/dist/client/sdk.gen.d.ts +9 -5
- package/dist/client/sdk.gen.js +11 -3
- package/dist/client/types.gen.d.ts +357 -102
- package/dist/client.d.ts +1 -1
- package/dist/index.d.ts +3 -2
- package/dist/index.js +25 -3
- package/dist/preview.d.ts +91 -0
- package/dist/preview.js +16 -0
- package/package.json +11 -11
- package/dist/preview-tunnel.d.ts +0 -3
- package/dist/preview-tunnel.js +0 -9
|
@@ -3,9 +3,29 @@ import {
|
|
|
3
3
|
} from "./chunk-TZBKIIYQ.js";
|
|
4
4
|
|
|
5
5
|
// src/client/sdk.gen.ts
|
|
6
|
-
var
|
|
7
|
-
url: "/apps",
|
|
8
|
-
...options
|
|
6
|
+
var appsRuntimeSession = (options) => (options.client ?? client).post({
|
|
7
|
+
url: "/apps/{appId}/runtime/session",
|
|
8
|
+
...options,
|
|
9
|
+
headers: {
|
|
10
|
+
"Content-Type": "application/json",
|
|
11
|
+
...options.headers
|
|
12
|
+
}
|
|
13
|
+
});
|
|
14
|
+
var appsList = (options) => (options.client ?? client).post({
|
|
15
|
+
url: "/apps/list",
|
|
16
|
+
...options,
|
|
17
|
+
headers: {
|
|
18
|
+
"Content-Type": "application/json",
|
|
19
|
+
...options.headers
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
var appsGet = (options) => (options.client ?? client).post({
|
|
23
|
+
url: "/apps/{appId}/lookup",
|
|
24
|
+
...options,
|
|
25
|
+
headers: {
|
|
26
|
+
"Content-Type": "application/json",
|
|
27
|
+
...options.headers
|
|
28
|
+
}
|
|
9
29
|
});
|
|
10
30
|
var appsCreate = (options) => (options.client ?? client).post({
|
|
11
31
|
url: "/apps",
|
|
@@ -17,11 +37,11 @@ var appsCreate = (options) => (options.client ?? client).post({
|
|
|
17
37
|
});
|
|
18
38
|
var appsDelete = (options) => (options.client ?? client).delete({
|
|
19
39
|
url: "/apps/{appId}",
|
|
20
|
-
...options
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
40
|
+
...options,
|
|
41
|
+
headers: {
|
|
42
|
+
"Content-Type": "application/json",
|
|
43
|
+
...options.headers
|
|
44
|
+
}
|
|
25
45
|
});
|
|
26
46
|
var appsUpdate = (options) => (options.client ?? client).put({
|
|
27
47
|
url: "/apps/{appId}",
|
|
@@ -79,9 +99,21 @@ var cliAuthVerifyToken = (options) => (options.client ?? client).post({
|
|
|
79
99
|
...options.headers
|
|
80
100
|
}
|
|
81
101
|
});
|
|
82
|
-
var deploymentsList = (options) => (options.client ?? client).
|
|
83
|
-
url: "/deployments",
|
|
84
|
-
...options
|
|
102
|
+
var deploymentsList = (options) => (options.client ?? client).post({
|
|
103
|
+
url: "/deployments/list",
|
|
104
|
+
...options,
|
|
105
|
+
headers: {
|
|
106
|
+
"Content-Type": "application/json",
|
|
107
|
+
...options.headers
|
|
108
|
+
}
|
|
109
|
+
});
|
|
110
|
+
var deploymentsGet = (options) => (options.client ?? client).post({
|
|
111
|
+
url: "/deployments/{deploymentId}/lookup",
|
|
112
|
+
...options,
|
|
113
|
+
headers: {
|
|
114
|
+
"Content-Type": "application/json",
|
|
115
|
+
...options.headers
|
|
116
|
+
}
|
|
85
117
|
});
|
|
86
118
|
var deploymentsCreate = (options) => (options.client ?? client).post({
|
|
87
119
|
url: "/deployments",
|
|
@@ -91,10 +123,6 @@ var deploymentsCreate = (options) => (options.client ?? client).post({
|
|
|
91
123
|
...options.headers
|
|
92
124
|
}
|
|
93
125
|
});
|
|
94
|
-
var deploymentsGet = (options) => (options.client ?? client).get({
|
|
95
|
-
url: "/deployments/{deploymentId}",
|
|
96
|
-
...options
|
|
97
|
-
});
|
|
98
126
|
var deploymentsPublish = (options) => (options.client ?? client).post({
|
|
99
127
|
url: "/deployments/{deploymentId}",
|
|
100
128
|
...options,
|
|
@@ -103,6 +131,14 @@ var deploymentsPublish = (options) => (options.client ?? client).post({
|
|
|
103
131
|
...options.headers
|
|
104
132
|
}
|
|
105
133
|
});
|
|
134
|
+
var deploymentsRuntime = (options) => (options.client ?? client).post({
|
|
135
|
+
url: "/apps/{appId}/runtime",
|
|
136
|
+
...options,
|
|
137
|
+
headers: {
|
|
138
|
+
"Content-Type": "application/json",
|
|
139
|
+
...options.headers
|
|
140
|
+
}
|
|
141
|
+
});
|
|
106
142
|
var previewStart = (options) => (options.client ?? client).post({
|
|
107
143
|
url: "/preview/start",
|
|
108
144
|
...options,
|
|
@@ -111,10 +147,6 @@ var previewStart = (options) => (options.client ?? client).post({
|
|
|
111
147
|
...options.headers
|
|
112
148
|
}
|
|
113
149
|
});
|
|
114
|
-
var previewResolve = (options) => (options.client ?? client).get({
|
|
115
|
-
url: "/preview/{sessionId}",
|
|
116
|
-
...options
|
|
117
|
-
});
|
|
118
150
|
var previewStop = (options) => (options.client ?? client).post({
|
|
119
151
|
url: "/preview/{sessionId}/stop",
|
|
120
152
|
...options,
|
|
@@ -123,12 +155,33 @@ var previewStop = (options) => (options.client ?? client).post({
|
|
|
123
155
|
...options.headers
|
|
124
156
|
}
|
|
125
157
|
});
|
|
158
|
+
var previewInvitation = (options) => (options.client ?? client).get({
|
|
159
|
+
url: "/preview/shares/{shareId}",
|
|
160
|
+
...options
|
|
161
|
+
});
|
|
162
|
+
var previewAccept = (options) => (options.client ?? client).post({
|
|
163
|
+
url: "/preview/shares/{shareId}/accept",
|
|
164
|
+
...options,
|
|
165
|
+
headers: {
|
|
166
|
+
"Content-Type": "application/json",
|
|
167
|
+
...options.headers
|
|
168
|
+
}
|
|
169
|
+
});
|
|
170
|
+
var previewAccepted = (options) => (options.client ?? client).post({
|
|
171
|
+
url: "/preview/grants/resolve",
|
|
172
|
+
...options,
|
|
173
|
+
headers: {
|
|
174
|
+
"Content-Type": "application/json",
|
|
175
|
+
...options.headers
|
|
176
|
+
}
|
|
177
|
+
});
|
|
126
178
|
|
|
127
179
|
export {
|
|
180
|
+
appsRuntimeSession,
|
|
128
181
|
appsList,
|
|
182
|
+
appsGet,
|
|
129
183
|
appsCreate,
|
|
130
184
|
appsDelete,
|
|
131
|
-
appsGet,
|
|
132
185
|
appsUpdate,
|
|
133
186
|
appsDeploy,
|
|
134
187
|
cliAuthApprove,
|
|
@@ -137,10 +190,13 @@ export {
|
|
|
137
190
|
cliAuthStart,
|
|
138
191
|
cliAuthVerifyToken,
|
|
139
192
|
deploymentsList,
|
|
140
|
-
deploymentsCreate,
|
|
141
193
|
deploymentsGet,
|
|
194
|
+
deploymentsCreate,
|
|
142
195
|
deploymentsPublish,
|
|
196
|
+
deploymentsRuntime,
|
|
143
197
|
previewStart,
|
|
144
|
-
|
|
145
|
-
|
|
198
|
+
previewStop,
|
|
199
|
+
previewInvitation,
|
|
200
|
+
previewAccept,
|
|
201
|
+
previewAccepted
|
|
146
202
|
};
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
// src/preview.ts
|
|
2
|
+
import { createORPCClient } from "@orpc/client";
|
|
3
|
+
import { RPCLink } from "@orpc/client/websocket";
|
|
4
|
+
import { z } from "zod";
|
|
5
|
+
var ACTIVE_PREVIEW_CONFLICT_REASON = "ACTIVE_PREVIEW_EXISTS";
|
|
6
|
+
var identifier = z.string().regex(/^[A-Za-z0-9_-]{1,128}$/u);
|
|
7
|
+
var base64 = z.string().max(4 * Math.ceil(256 * 1024 / 3)).regex(/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/u);
|
|
8
|
+
var hasControlCharacters = (value) => [...value].some((character) => (character.codePointAt(0) ?? 0) < 32);
|
|
9
|
+
var previewFileManifestSchema = z.object({
|
|
10
|
+
path: z.string().min(1).max(1024).refine((path) => new TextEncoder().encode(path).byteLength <= 1024, {
|
|
11
|
+
message: "Preview path exceeds 1024 UTF-8 bytes"
|
|
12
|
+
}),
|
|
13
|
+
contentType: z.string().min(1).max(255).refine((contentType) => !/[\r\n]/u.test(contentType), {
|
|
14
|
+
message: "Invalid preview content type"
|
|
15
|
+
}),
|
|
16
|
+
size: z.number().int().min(0).max(1024 * 1024),
|
|
17
|
+
chunks: z.number().int().min(0).max(4),
|
|
18
|
+
sha256: z.string().regex(/^[a-f0-9]{64}$/u)
|
|
19
|
+
});
|
|
20
|
+
var previewBuildManifestSchema = z.object({
|
|
21
|
+
files: z.array(previewFileManifestSchema).max(100)
|
|
22
|
+
}).superRefine((manifest, context) => {
|
|
23
|
+
const paths = /* @__PURE__ */ new Set();
|
|
24
|
+
let total = 0;
|
|
25
|
+
for (const [index, file] of manifest.files.entries()) {
|
|
26
|
+
if (file.path.startsWith("/") || file.path.includes("\\") || file.path.split("/").some((part) => !part || part === "." || part === "..") || hasControlCharacters(file.path) || paths.has(file.path)) {
|
|
27
|
+
context.addIssue({
|
|
28
|
+
code: "custom",
|
|
29
|
+
message: "Invalid or duplicate preview path",
|
|
30
|
+
path: ["files", index, "path"]
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
if (file.chunks !== Math.ceil(file.size / (256 * 1024))) {
|
|
34
|
+
context.addIssue({
|
|
35
|
+
code: "custom",
|
|
36
|
+
message: "Invalid preview chunk count",
|
|
37
|
+
path: ["files", index, "chunks"]
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
paths.add(file.path);
|
|
41
|
+
total += file.size;
|
|
42
|
+
}
|
|
43
|
+
if (!paths.has("client.js")) context.addIssue({ code: "custom", message: "Missing client.js" });
|
|
44
|
+
if (total > 10 * 1024 * 1024)
|
|
45
|
+
context.addIssue({ code: "custom", message: "Preview build exceeds 10 MiB" });
|
|
46
|
+
});
|
|
47
|
+
var previewEventSchema = z.discriminatedUnion("type", [
|
|
48
|
+
z.object({
|
|
49
|
+
type: z.literal("begin"),
|
|
50
|
+
buildId: identifier,
|
|
51
|
+
revision: z.number().int().positive(),
|
|
52
|
+
manifest: previewBuildManifestSchema
|
|
53
|
+
}),
|
|
54
|
+
z.object({
|
|
55
|
+
type: z.literal("chunk"),
|
|
56
|
+
revision: z.number().int().positive(),
|
|
57
|
+
fileIndex: z.number().int().min(0).max(99),
|
|
58
|
+
chunkIndex: z.number().int().min(0).max(3),
|
|
59
|
+
base64
|
|
60
|
+
}),
|
|
61
|
+
z.object({ type: z.literal("complete"), revision: z.number().int().positive() }),
|
|
62
|
+
z.object({ type: z.literal("ended") })
|
|
63
|
+
]);
|
|
64
|
+
var previewMetadataSchema = z.object({
|
|
65
|
+
sessionId: z.uuid(),
|
|
66
|
+
expiresAt: z.string().min(1),
|
|
67
|
+
websocketUrl: z.url(),
|
|
68
|
+
token: z.string().min(1)
|
|
69
|
+
});
|
|
70
|
+
var beginInput = z.object({ manifest: previewBuildManifestSchema });
|
|
71
|
+
var uploadInput = z.object({
|
|
72
|
+
buildId: identifier,
|
|
73
|
+
fileIndex: z.number().int().min(0).max(99),
|
|
74
|
+
chunkIndex: z.number().int().min(0).max(3),
|
|
75
|
+
base64
|
|
76
|
+
});
|
|
77
|
+
var buildIdOutput = z.object({ buildId: identifier });
|
|
78
|
+
var acceptedOutput = z.object({ accepted: z.literal(true) });
|
|
79
|
+
var commitOutput = z.object({ revision: z.number().int().positive() });
|
|
80
|
+
function createPreviewWebSocketClient(websocket) {
|
|
81
|
+
const rpc = createORPCClient(
|
|
82
|
+
new RPCLink({ connect: () => websocket })
|
|
83
|
+
);
|
|
84
|
+
return {
|
|
85
|
+
beginBuild: async (input) => buildIdOutput.parse(await rpc.beginBuild(beginInput.parse(input))),
|
|
86
|
+
uploadChunk: async (input) => acceptedOutput.parse(await rpc.uploadChunk(uploadInput.parse(input))),
|
|
87
|
+
commitBuild: async (input) => commitOutput.parse(await rpc.commitBuild({ buildId: identifier.parse(input.buildId) })),
|
|
88
|
+
heartbeat: async () => acceptedOutput.parse(await rpc.heartbeat()),
|
|
89
|
+
subscribe: async () => {
|
|
90
|
+
const stream = await rpc.subscribe();
|
|
91
|
+
return (async function* () {
|
|
92
|
+
for await (const value of stream) {
|
|
93
|
+
yield previewEventSchema.parse(value);
|
|
94
|
+
}
|
|
95
|
+
})();
|
|
96
|
+
}
|
|
97
|
+
};
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
export {
|
|
101
|
+
ACTIVE_PREVIEW_CONFLICT_REASON,
|
|
102
|
+
previewFileManifestSchema,
|
|
103
|
+
previewBuildManifestSchema,
|
|
104
|
+
previewEventSchema,
|
|
105
|
+
previewMetadataSchema,
|
|
106
|
+
createPreviewWebSocketClient
|
|
107
|
+
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { Client, Config } from "./types.gen";
|
|
1
|
+
import type { Client, Config } from "./types.gen.js";
|
|
2
2
|
export declare const createClient: (config?: Config) => Client;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export type { Auth } from "../core/auth.gen";
|
|
2
|
-
export type { QuerySerializerOptions } from "../core/bodySerializer.gen";
|
|
3
|
-
export { formDataBodySerializer, jsonBodySerializer, urlSearchParamsBodySerializer, } from "../core/bodySerializer.gen";
|
|
4
|
-
export { buildClientParams } from "../core/params.gen";
|
|
5
|
-
export { serializeQueryKeyValue } from "../core/queryKeySerializer.gen";
|
|
6
|
-
export type { ServerSentEventsResult } from "../core/serverSentEvents.gen";
|
|
7
|
-
export type { ClientMeta } from "../core/types.gen";
|
|
8
|
-
export { createClient } from "./client.gen";
|
|
9
|
-
export type { Client, ClientOptions, Config, CreateClientConfig, Options, RequestOptions, RequestResult, ResolvedRequestOptions, ResponseStyle, TDataShape, } from "./types.gen";
|
|
10
|
-
export { createConfig, mergeHeaders } from "./utils.gen";
|
|
1
|
+
export type { Auth } from "../core/auth.gen.js";
|
|
2
|
+
export type { QuerySerializerOptions } from "../core/bodySerializer.gen.js";
|
|
3
|
+
export { formDataBodySerializer, jsonBodySerializer, urlSearchParamsBodySerializer, } from "../core/bodySerializer.gen.js";
|
|
4
|
+
export { buildClientParams } from "../core/params.gen.js";
|
|
5
|
+
export { serializeQueryKeyValue } from "../core/queryKeySerializer.gen.js";
|
|
6
|
+
export type { ServerSentEventsResult } from "../core/serverSentEvents.gen.js";
|
|
7
|
+
export type { ClientMeta } from "../core/types.gen.js";
|
|
8
|
+
export { createClient } from "./client.gen.js";
|
|
9
|
+
export type { Client, ClientOptions, Config, CreateClientConfig, Options, RequestOptions, RequestResult, ResolvedRequestOptions, ResponseStyle, TDataShape, } from "./types.gen.js";
|
|
10
|
+
export { createConfig, mergeHeaders } from "./utils.gen.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { Auth } from "../core/auth.gen";
|
|
2
|
-
import type { ServerSentEventsOptions, ServerSentEventsResult } from "../core/serverSentEvents.gen";
|
|
3
|
-
import type { Client as CoreClient, Config as CoreConfig } from "../core/types.gen";
|
|
4
|
-
import type { Middleware } from "./utils.gen";
|
|
1
|
+
import type { Auth } from "../core/auth.gen.js";
|
|
2
|
+
import type { ServerSentEventsOptions, ServerSentEventsResult } from "../core/serverSentEvents.gen.js";
|
|
3
|
+
import type { Client as CoreClient, Config as CoreConfig } from "../core/types.gen.js";
|
|
4
|
+
import type { Middleware } from "./utils.gen.js";
|
|
5
5
|
export type ResponseStyle = "data" | "fields";
|
|
6
6
|
export interface Config<T extends ClientOptions = ClientOptions> extends Omit<RequestInit, "body" | "headers" | "method">, CoreConfig {
|
|
7
7
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { QuerySerializerOptions } from "../core/bodySerializer.gen";
|
|
2
|
-
import type { Client, ClientOptions, Config, RequestOptions } from "./types.gen";
|
|
1
|
+
import type { QuerySerializerOptions } from "../core/bodySerializer.gen.js";
|
|
2
|
+
import type { Client, ClientOptions, Config, RequestOptions } from "./types.gen.js";
|
|
3
3
|
export declare const createQuerySerializer: <T = unknown>({ parameters, ...args }?: QuerySerializerOptions) => ((queryParams: T) => string);
|
|
4
4
|
/**
|
|
5
5
|
* Infers parseAs value from provided Content-Type header.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { type Client, type ClientOptions, type Config } from "./client";
|
|
2
|
-
import type { ClientOptions as ClientOptions2 } from "./types.gen";
|
|
1
|
+
import { type Client, type ClientOptions, type Config } from "./client/index.js";
|
|
2
|
+
import type { ClientOptions as ClientOptions2 } from "./types.gen.js";
|
|
3
3
|
/**
|
|
4
4
|
* The `createClientConfig()` function will be called on client initialization
|
|
5
5
|
* and the returned object will become the client's initial configuration.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ArrayStyle, ObjectStyle, SerializerOptions } from "./pathSerializer.gen";
|
|
1
|
+
import type { ArrayStyle, ObjectStyle, SerializerOptions } from "./pathSerializer.gen.js";
|
|
2
2
|
export type QuerySerializer = (query: Record<string, unknown>) => string;
|
|
3
3
|
export type BodySerializer = (body: unknown) => unknown;
|
|
4
4
|
type QuerySerializerOptionsObject = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Config } from "./types.gen";
|
|
1
|
+
import type { Config } from "./types.gen.js";
|
|
2
2
|
export type ServerSentEventsOptions<TData = unknown> = Omit<RequestInit, "method"> & Pick<Config, "method" | "responseTransformer" | "responseValidator"> & {
|
|
3
3
|
/**
|
|
4
4
|
* Fetch API implementation. You can use this option to provide a custom
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { Auth, AuthToken } from "./auth.gen";
|
|
2
|
-
import type { BodySerializer, QuerySerializer, QuerySerializerOptions } from "./bodySerializer.gen";
|
|
1
|
+
import type { Auth, AuthToken } from "./auth.gen.js";
|
|
2
|
+
import type { BodySerializer, QuerySerializer, QuerySerializerOptions } from "./bodySerializer.gen.js";
|
|
3
3
|
export type HttpMethod = "connect" | "delete" | "get" | "head" | "options" | "patch" | "post" | "put" | "trace";
|
|
4
4
|
export type Client<RequestFn = never, Config = unknown, MethodFn = never, BuildUrlFn = never, SseFn = never> = {
|
|
5
5
|
/**
|
package/dist/client/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { appsCreate, appsDelete, appsDeploy, appsGet, appsList, appsUpdate, cliAuthApprove, cliAuthDeny, cliAuthPoll, cliAuthStart, cliAuthVerifyToken, deploymentsCreate, deploymentsGet, deploymentsList, deploymentsPublish, type Options,
|
|
2
|
-
export type { AppsCreateData, AppsCreateResponse, AppsCreateResponses, AppsDeleteData, AppsDeleteResponse, AppsDeleteResponses, AppsDeployData, AppsDeployResponse, AppsDeployResponses, AppsGetData, AppsGetResponse, AppsGetResponses, AppsListData, AppsListResponse, AppsListResponses, AppsUpdateData, AppsUpdateResponse, AppsUpdateResponses, CliAuthApproveData, CliAuthApproveResponse, CliAuthApproveResponses, CliAuthDenyData, CliAuthDenyResponse, CliAuthDenyResponses, CliAuthPollData, CliAuthPollResponse, CliAuthPollResponses, CliAuthStartData, CliAuthStartResponse, CliAuthStartResponses, CliAuthVerifyTokenData, CliAuthVerifyTokenResponse, CliAuthVerifyTokenResponses, ClientOptions, DeploymentsCreateData, DeploymentsCreateResponse, DeploymentsCreateResponses, DeploymentsGetData, DeploymentsGetResponse, DeploymentsGetResponses, DeploymentsListData, DeploymentsListResponse, DeploymentsListResponses, DeploymentsPublishData, DeploymentsPublishResponse, DeploymentsPublishResponses,
|
|
1
|
+
export { appsCreate, appsDelete, appsDeploy, appsGet, appsList, appsRuntimeSession, appsUpdate, cliAuthApprove, cliAuthDeny, cliAuthPoll, cliAuthStart, cliAuthVerifyToken, deploymentsCreate, deploymentsGet, deploymentsList, deploymentsPublish, deploymentsRuntime, type Options, previewAccept, previewAccepted, previewInvitation, previewStart, previewStop, } from "./sdk.gen.js";
|
|
2
|
+
export type { AppsCreateData, AppsCreateResponse, AppsCreateResponses, AppsDeleteData, AppsDeleteResponse, AppsDeleteResponses, AppsDeployData, AppsDeployResponse, AppsDeployResponses, AppsGetData, AppsGetResponse, AppsGetResponses, AppsListData, AppsListResponse, AppsListResponses, AppsRuntimeSessionData, AppsRuntimeSessionResponse, AppsRuntimeSessionResponses, AppsUpdateData, AppsUpdateResponse, AppsUpdateResponses, CliAuthApproveData, CliAuthApproveResponse, CliAuthApproveResponses, CliAuthDenyData, CliAuthDenyResponse, CliAuthDenyResponses, CliAuthPollData, CliAuthPollResponse, CliAuthPollResponses, CliAuthStartData, CliAuthStartResponse, CliAuthStartResponses, CliAuthVerifyTokenData, CliAuthVerifyTokenResponse, CliAuthVerifyTokenResponses, ClientOptions, DeploymentsCreateData, DeploymentsCreateResponse, DeploymentsCreateResponses, DeploymentsGetData, DeploymentsGetResponse, DeploymentsGetResponses, DeploymentsListData, DeploymentsListResponse, DeploymentsListResponses, DeploymentsPublishData, DeploymentsPublishResponse, DeploymentsPublishResponses, DeploymentsRuntimeData, DeploymentsRuntimeResponse, DeploymentsRuntimeResponses, PreviewAcceptData, PreviewAcceptedData, PreviewAcceptedResponse, PreviewAcceptedResponses, PreviewAcceptResponse, PreviewAcceptResponses, PreviewInvitationData, PreviewInvitationResponse, PreviewInvitationResponses, PreviewStartData, PreviewStartResponse, PreviewStartResponses, PreviewStopData, PreviewStopResponse, PreviewStopResponses, Schema0, } from "./types.gen.js";
|
package/dist/client/index.js
CHANGED
|
@@ -5,6 +5,7 @@ import {
|
|
|
5
5
|
appsDeploy,
|
|
6
6
|
appsGet,
|
|
7
7
|
appsList,
|
|
8
|
+
appsRuntimeSession,
|
|
8
9
|
appsUpdate,
|
|
9
10
|
cliAuthApprove,
|
|
10
11
|
cliAuthDeny,
|
|
@@ -15,10 +16,13 @@ import {
|
|
|
15
16
|
deploymentsGet,
|
|
16
17
|
deploymentsList,
|
|
17
18
|
deploymentsPublish,
|
|
18
|
-
|
|
19
|
+
deploymentsRuntime,
|
|
20
|
+
previewAccept,
|
|
21
|
+
previewAccepted,
|
|
22
|
+
previewInvitation,
|
|
19
23
|
previewStart,
|
|
20
24
|
previewStop
|
|
21
|
-
} from "../chunk-
|
|
25
|
+
} from "../chunk-MFXQKOYT.js";
|
|
22
26
|
import "../chunk-TZBKIIYQ.js";
|
|
23
27
|
import "../chunk-X5TBL4RL.js";
|
|
24
28
|
import "../chunk-VUBA7FI4.js";
|
|
@@ -36,6 +40,7 @@ export {
|
|
|
36
40
|
appsDeploy,
|
|
37
41
|
appsGet,
|
|
38
42
|
appsList,
|
|
43
|
+
appsRuntimeSession,
|
|
39
44
|
appsUpdate,
|
|
40
45
|
cliAuthApprove,
|
|
41
46
|
cliAuthDeny,
|
|
@@ -46,7 +51,10 @@ export {
|
|
|
46
51
|
deploymentsGet,
|
|
47
52
|
deploymentsList,
|
|
48
53
|
deploymentsPublish,
|
|
49
|
-
|
|
54
|
+
deploymentsRuntime,
|
|
55
|
+
previewAccept,
|
|
56
|
+
previewAccepted,
|
|
57
|
+
previewInvitation,
|
|
50
58
|
previewStart,
|
|
51
59
|
previewStop
|
|
52
60
|
};
|
package/dist/client/sdk.gen.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { Client, ClientMeta, Options as Options2, RequestResult, TDataShape } from "./client";
|
|
2
|
-
import type { AppsCreateData, AppsCreateResponses, AppsDeleteData, AppsDeleteResponses, AppsDeployData, AppsDeployResponses, AppsGetData, AppsGetResponses, AppsListData, AppsListResponses, AppsUpdateData, AppsUpdateResponses, CliAuthApproveData, CliAuthApproveResponses, CliAuthDenyData, CliAuthDenyResponses, CliAuthPollData, CliAuthPollResponses, CliAuthStartData, CliAuthStartResponses, CliAuthVerifyTokenData, CliAuthVerifyTokenResponses, DeploymentsCreateData, DeploymentsCreateResponses, DeploymentsGetData, DeploymentsGetResponses, DeploymentsListData, DeploymentsListResponses, DeploymentsPublishData, DeploymentsPublishResponses,
|
|
1
|
+
import type { Client, ClientMeta, Options as Options2, RequestResult, TDataShape } from "./client/index.js";
|
|
2
|
+
import type { AppsCreateData, AppsCreateResponses, AppsDeleteData, AppsDeleteResponses, AppsDeployData, AppsDeployResponses, AppsGetData, AppsGetResponses, AppsListData, AppsListResponses, AppsRuntimeSessionData, AppsRuntimeSessionResponses, AppsUpdateData, AppsUpdateResponses, CliAuthApproveData, CliAuthApproveResponses, CliAuthDenyData, CliAuthDenyResponses, CliAuthPollData, CliAuthPollResponses, CliAuthStartData, CliAuthStartResponses, CliAuthVerifyTokenData, CliAuthVerifyTokenResponses, DeploymentsCreateData, DeploymentsCreateResponses, DeploymentsGetData, DeploymentsGetResponses, DeploymentsListData, DeploymentsListResponses, DeploymentsPublishData, DeploymentsPublishResponses, DeploymentsRuntimeData, DeploymentsRuntimeResponses, PreviewAcceptData, PreviewAcceptedData, PreviewAcceptedResponses, PreviewAcceptResponses, PreviewInvitationData, PreviewInvitationResponses, PreviewStartData, PreviewStartResponses, PreviewStopData, PreviewStopResponses } from "./types.gen.js";
|
|
3
3
|
export type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean, TResponse = unknown> = Options2<TData, ThrowOnError, TResponse> & {
|
|
4
4
|
/**
|
|
5
5
|
* You can provide a client instance returned by `createClient()` instead of
|
|
@@ -13,10 +13,11 @@ export type Options<TData extends TDataShape = TDataShape, ThrowOnError extends
|
|
|
13
13
|
*/
|
|
14
14
|
meta?: keyof ClientMeta extends never ? Record<string, unknown> : ClientMeta;
|
|
15
15
|
};
|
|
16
|
+
export declare const appsRuntimeSession: <ThrowOnError extends boolean = false>(options: Options<AppsRuntimeSessionData, ThrowOnError>) => RequestResult<AppsRuntimeSessionResponses, unknown, ThrowOnError>;
|
|
16
17
|
export declare const appsList: <ThrowOnError extends boolean = false>(options: Options<AppsListData, ThrowOnError>) => RequestResult<AppsListResponses, unknown, ThrowOnError>;
|
|
18
|
+
export declare const appsGet: <ThrowOnError extends boolean = false>(options: Options<AppsGetData, ThrowOnError>) => RequestResult<AppsGetResponses, unknown, ThrowOnError>;
|
|
17
19
|
export declare const appsCreate: <ThrowOnError extends boolean = false>(options: Options<AppsCreateData, ThrowOnError>) => RequestResult<AppsCreateResponses, unknown, ThrowOnError>;
|
|
18
20
|
export declare const appsDelete: <ThrowOnError extends boolean = false>(options: Options<AppsDeleteData, ThrowOnError>) => RequestResult<AppsDeleteResponses, unknown, ThrowOnError>;
|
|
19
|
-
export declare const appsGet: <ThrowOnError extends boolean = false>(options: Options<AppsGetData, ThrowOnError>) => RequestResult<AppsGetResponses, unknown, ThrowOnError>;
|
|
20
21
|
export declare const appsUpdate: <ThrowOnError extends boolean = false>(options: Options<AppsUpdateData, ThrowOnError>) => RequestResult<AppsUpdateResponses, unknown, ThrowOnError>;
|
|
21
22
|
export declare const appsDeploy: <ThrowOnError extends boolean = false>(options: Options<AppsDeployData, ThrowOnError>) => RequestResult<AppsDeployResponses, unknown, ThrowOnError>;
|
|
22
23
|
export declare const cliAuthApprove: <ThrowOnError extends boolean = false>(options: Options<CliAuthApproveData, ThrowOnError>) => RequestResult<CliAuthApproveResponses, unknown, ThrowOnError>;
|
|
@@ -25,9 +26,12 @@ export declare const cliAuthPoll: <ThrowOnError extends boolean = false>(options
|
|
|
25
26
|
export declare const cliAuthStart: <ThrowOnError extends boolean = false>(options: Options<CliAuthStartData, ThrowOnError>) => RequestResult<CliAuthStartResponses, unknown, ThrowOnError>;
|
|
26
27
|
export declare const cliAuthVerifyToken: <ThrowOnError extends boolean = false>(options: Options<CliAuthVerifyTokenData, ThrowOnError>) => RequestResult<CliAuthVerifyTokenResponses, unknown, ThrowOnError>;
|
|
27
28
|
export declare const deploymentsList: <ThrowOnError extends boolean = false>(options: Options<DeploymentsListData, ThrowOnError>) => RequestResult<DeploymentsListResponses, unknown, ThrowOnError>;
|
|
28
|
-
export declare const deploymentsCreate: <ThrowOnError extends boolean = false>(options: Options<DeploymentsCreateData, ThrowOnError>) => RequestResult<DeploymentsCreateResponses, unknown, ThrowOnError>;
|
|
29
29
|
export declare const deploymentsGet: <ThrowOnError extends boolean = false>(options: Options<DeploymentsGetData, ThrowOnError>) => RequestResult<DeploymentsGetResponses, unknown, ThrowOnError>;
|
|
30
|
+
export declare const deploymentsCreate: <ThrowOnError extends boolean = false>(options: Options<DeploymentsCreateData, ThrowOnError>) => RequestResult<DeploymentsCreateResponses, unknown, ThrowOnError>;
|
|
30
31
|
export declare const deploymentsPublish: <ThrowOnError extends boolean = false>(options: Options<DeploymentsPublishData, ThrowOnError>) => RequestResult<DeploymentsPublishResponses, unknown, ThrowOnError>;
|
|
32
|
+
export declare const deploymentsRuntime: <ThrowOnError extends boolean = false>(options: Options<DeploymentsRuntimeData, ThrowOnError>) => RequestResult<DeploymentsRuntimeResponses, unknown, ThrowOnError>;
|
|
31
33
|
export declare const previewStart: <ThrowOnError extends boolean = false>(options: Options<PreviewStartData, ThrowOnError>) => RequestResult<PreviewStartResponses, unknown, ThrowOnError>;
|
|
32
|
-
export declare const previewResolve: <ThrowOnError extends boolean = false>(options: Options<PreviewResolveData, ThrowOnError>) => RequestResult<PreviewResolveResponses, unknown, ThrowOnError>;
|
|
33
34
|
export declare const previewStop: <ThrowOnError extends boolean = false>(options: Options<PreviewStopData, ThrowOnError>) => RequestResult<PreviewStopResponses, unknown, ThrowOnError>;
|
|
35
|
+
export declare const previewInvitation: <ThrowOnError extends boolean = false>(options: Options<PreviewInvitationData, ThrowOnError>) => RequestResult<PreviewInvitationResponses, unknown, ThrowOnError>;
|
|
36
|
+
export declare const previewAccept: <ThrowOnError extends boolean = false>(options: Options<PreviewAcceptData, ThrowOnError>) => RequestResult<PreviewAcceptResponses, unknown, ThrowOnError>;
|
|
37
|
+
export declare const previewAccepted: <ThrowOnError extends boolean = false>(options: Options<PreviewAcceptedData, ThrowOnError>) => RequestResult<PreviewAcceptedResponses, unknown, ThrowOnError>;
|
package/dist/client/sdk.gen.js
CHANGED
|
@@ -4,6 +4,7 @@ import {
|
|
|
4
4
|
appsDeploy,
|
|
5
5
|
appsGet,
|
|
6
6
|
appsList,
|
|
7
|
+
appsRuntimeSession,
|
|
7
8
|
appsUpdate,
|
|
8
9
|
cliAuthApprove,
|
|
9
10
|
cliAuthDeny,
|
|
@@ -14,10 +15,13 @@ import {
|
|
|
14
15
|
deploymentsGet,
|
|
15
16
|
deploymentsList,
|
|
16
17
|
deploymentsPublish,
|
|
17
|
-
|
|
18
|
+
deploymentsRuntime,
|
|
19
|
+
previewAccept,
|
|
20
|
+
previewAccepted,
|
|
21
|
+
previewInvitation,
|
|
18
22
|
previewStart,
|
|
19
23
|
previewStop
|
|
20
|
-
} from "../chunk-
|
|
24
|
+
} from "../chunk-MFXQKOYT.js";
|
|
21
25
|
import "../chunk-TZBKIIYQ.js";
|
|
22
26
|
import "../chunk-X5TBL4RL.js";
|
|
23
27
|
import "../chunk-VUBA7FI4.js";
|
|
@@ -35,6 +39,7 @@ export {
|
|
|
35
39
|
appsDeploy,
|
|
36
40
|
appsGet,
|
|
37
41
|
appsList,
|
|
42
|
+
appsRuntimeSession,
|
|
38
43
|
appsUpdate,
|
|
39
44
|
cliAuthApprove,
|
|
40
45
|
cliAuthDeny,
|
|
@@ -45,7 +50,10 @@ export {
|
|
|
45
50
|
deploymentsGet,
|
|
46
51
|
deploymentsList,
|
|
47
52
|
deploymentsPublish,
|
|
48
|
-
|
|
53
|
+
deploymentsRuntime,
|
|
54
|
+
previewAccept,
|
|
55
|
+
previewAccepted,
|
|
56
|
+
previewInvitation,
|
|
49
57
|
previewStart,
|
|
50
58
|
previewStop
|
|
51
59
|
};
|