@puckeditor/cloud-client 0.1.0-canary.a00e2d3c → 0.1.0-canary.a2742ff6
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/index.d.mts +4 -7
- package/dist/index.d.ts +4 -7
- package/dist/index.js +35 -19605
- package/dist/index.mjs +34 -19605
- package/package.json +6 -4
package/dist/index.d.mts
CHANGED
|
@@ -15,12 +15,9 @@ type UserTool<INPUT extends z.ZodTypeAny = z.ZodTypeAny, OUTPUT extends z.ZodTyp
|
|
|
15
15
|
};
|
|
16
16
|
declare const tool: <INPUT extends z.ZodTypeAny, OUTPUT extends z.ZodTypeAny>(t: UserTool<INPUT, OUTPUT>) => UserTool<INPUT, OUTPUT>;
|
|
17
17
|
type UserToolRegistry = Record<string, UserTool>;
|
|
18
|
-
declare const endpoints: readonly ["chat"];
|
|
19
|
-
type Endpoint = (typeof endpoints)[number];
|
|
20
|
-
type PuckCatchAll = [Endpoint | string, ...string[]];
|
|
21
18
|
type ApiParams = {
|
|
22
19
|
chat: {
|
|
23
|
-
|
|
20
|
+
instructions?: string;
|
|
24
21
|
chatId?: string;
|
|
25
22
|
messages: UIMessage[];
|
|
26
23
|
config: Config;
|
|
@@ -32,10 +29,10 @@ declare const createPuckApi: ({ apiKey, host, }?: {
|
|
|
32
29
|
host?: string;
|
|
33
30
|
apiKey?: string;
|
|
34
31
|
}) => {
|
|
35
|
-
|
|
32
|
+
auto: (path: string[], request: Request) => Promise<Response>;
|
|
36
33
|
ai: {
|
|
37
|
-
chat: ({ chatId,
|
|
34
|
+
chat: ({ chatId, instructions, messages: initialMessages, config, pageData, tools, }: ApiParams["chat"]) => Promise<Response>;
|
|
38
35
|
};
|
|
39
36
|
};
|
|
40
37
|
|
|
41
|
-
export { type ApiParams,
|
|
38
|
+
export { type ApiParams, createPuckApi, streamingFetch, tool };
|
package/dist/index.d.ts
CHANGED
|
@@ -15,12 +15,9 @@ type UserTool<INPUT extends z.ZodTypeAny = z.ZodTypeAny, OUTPUT extends z.ZodTyp
|
|
|
15
15
|
};
|
|
16
16
|
declare const tool: <INPUT extends z.ZodTypeAny, OUTPUT extends z.ZodTypeAny>(t: UserTool<INPUT, OUTPUT>) => UserTool<INPUT, OUTPUT>;
|
|
17
17
|
type UserToolRegistry = Record<string, UserTool>;
|
|
18
|
-
declare const endpoints: readonly ["chat"];
|
|
19
|
-
type Endpoint = (typeof endpoints)[number];
|
|
20
|
-
type PuckCatchAll = [Endpoint | string, ...string[]];
|
|
21
18
|
type ApiParams = {
|
|
22
19
|
chat: {
|
|
23
|
-
|
|
20
|
+
instructions?: string;
|
|
24
21
|
chatId?: string;
|
|
25
22
|
messages: UIMessage[];
|
|
26
23
|
config: Config;
|
|
@@ -32,10 +29,10 @@ declare const createPuckApi: ({ apiKey, host, }?: {
|
|
|
32
29
|
host?: string;
|
|
33
30
|
apiKey?: string;
|
|
34
31
|
}) => {
|
|
35
|
-
|
|
32
|
+
auto: (path: string[], request: Request) => Promise<Response>;
|
|
36
33
|
ai: {
|
|
37
|
-
chat: ({ chatId,
|
|
34
|
+
chat: ({ chatId, instructions, messages: initialMessages, config, pageData, tools, }: ApiParams["chat"]) => Promise<Response>;
|
|
38
35
|
};
|
|
39
36
|
};
|
|
40
37
|
|
|
41
|
-
export { type ApiParams,
|
|
38
|
+
export { type ApiParams, createPuckApi, streamingFetch, tool };
|