modifywithai 1.8.1 → 1.10.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/dist/index-Dp00MJvS.d.ts +391 -0
- package/dist/index.d.ts +2 -3
- package/dist/index.js +1 -1
- package/dist/nextjs/api.d.ts +13 -13
- package/dist/nextjs/api.js +1 -1
- package/dist/nextjs/shims.js +1 -78
- package/dist/react/index.d.ts +3 -402
- package/dist/react/index.js +1 -1
- package/dist/react-CREl6aTM.js +1 -0
- package/dist/remix/api.d.ts +45 -0
- package/dist/remix/api.js +1 -0
- package/dist/remix/index.d.ts +38 -0
- package/dist/remix/index.js +1 -0
- package/dist/remix/shims.d.ts +14 -0
- package/dist/remix/shims.js +1 -0
- package/dist/shims-C5D8K0uz.js +191 -0
- package/dist/tanstack-start/api.d.ts +43 -0
- package/dist/tanstack-start/api.js +1 -0
- package/dist/tanstack-start/index.d.ts +33 -0
- package/dist/tanstack-start/index.js +1 -0
- package/dist/tanstack-start/shims.d.ts +15 -0
- package/dist/tanstack-start/shims.js +1 -0
- package/dist/types-D83LZSks.d.ts +190 -0
- package/dist/types-V6wytIkL.js +1 -0
- package/package.json +45 -13
- package/dist/types-B-V0OtIq.js +0 -1
- package/dist/types-DP2zKGqL.d.ts +0 -135
package/dist/types-DP2zKGqL.d.ts
DELETED
|
@@ -1,135 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
|
|
3
|
-
//#region src/types.d.ts
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* Schema for a modification in the ModifyWithAI system
|
|
7
|
-
*/
|
|
8
|
-
declare const ModificationSchema: z.ZodObject<{
|
|
9
|
-
id: z.ZodString;
|
|
10
|
-
title: z.ZodNullable<z.ZodString>;
|
|
11
|
-
description: z.ZodNullable<z.ZodString>;
|
|
12
|
-
status: z.ZodEnum<{
|
|
13
|
-
error: "error";
|
|
14
|
-
pending: "pending";
|
|
15
|
-
success: "success";
|
|
16
|
-
}>;
|
|
17
|
-
createdAt: z.ZodNumber;
|
|
18
|
-
updatedAt: z.ZodNumber;
|
|
19
|
-
enabled: z.ZodNullable<z.ZodBoolean>;
|
|
20
|
-
}, z.core.$strip>;
|
|
21
|
-
/**
|
|
22
|
-
* Schema for the list modifications API response
|
|
23
|
-
*/
|
|
24
|
-
declare const ModificationsListSchema: z.ZodArray<z.ZodObject<{
|
|
25
|
-
id: z.ZodString;
|
|
26
|
-
title: z.ZodNullable<z.ZodString>;
|
|
27
|
-
description: z.ZodNullable<z.ZodString>;
|
|
28
|
-
status: z.ZodEnum<{
|
|
29
|
-
error: "error";
|
|
30
|
-
pending: "pending";
|
|
31
|
-
success: "success";
|
|
32
|
-
}>;
|
|
33
|
-
createdAt: z.ZodNumber;
|
|
34
|
-
updatedAt: z.ZodNumber;
|
|
35
|
-
enabled: z.ZodNullable<z.ZodBoolean>;
|
|
36
|
-
}, z.core.$strip>>;
|
|
37
|
-
/**
|
|
38
|
-
* Schema for the modify API response
|
|
39
|
-
*/
|
|
40
|
-
declare const ModifyResponseSchema: z.ZodObject<{
|
|
41
|
-
success: z.ZodBoolean;
|
|
42
|
-
}, z.core.$strip>;
|
|
43
|
-
/**
|
|
44
|
-
* Schema for the enable API response
|
|
45
|
-
*/
|
|
46
|
-
declare const EnableResponseSchema: z.ZodObject<{
|
|
47
|
-
message: z.ZodString;
|
|
48
|
-
modificationId: z.ZodString;
|
|
49
|
-
endUserId: z.ZodString;
|
|
50
|
-
}, z.core.$strip>;
|
|
51
|
-
/**
|
|
52
|
-
* Schema for the disable API response
|
|
53
|
-
*/
|
|
54
|
-
declare const DisableResponseSchema: z.ZodObject<{
|
|
55
|
-
message: z.ZodString;
|
|
56
|
-
modificationId: z.ZodString;
|
|
57
|
-
endUserId: z.ZodString;
|
|
58
|
-
}, z.core.$strip>;
|
|
59
|
-
/**
|
|
60
|
-
* Schema for API error responses
|
|
61
|
-
*/
|
|
62
|
-
declare const ApiErrorSchema: z.ZodObject<{
|
|
63
|
-
message: z.ZodOptional<z.ZodString>;
|
|
64
|
-
error: z.ZodOptional<z.ZodString>;
|
|
65
|
-
}, z.core.$strip>;
|
|
66
|
-
/**
|
|
67
|
-
* Represents a modification in the ModifyWithAI system
|
|
68
|
-
*/
|
|
69
|
-
type Modification = z.infer<typeof ModificationSchema>;
|
|
70
|
-
/**
|
|
71
|
-
* Response from a modification request
|
|
72
|
-
*/
|
|
73
|
-
type ModifyResponse = z.infer<typeof ModifyResponseSchema>;
|
|
74
|
-
/**
|
|
75
|
-
* Response from enabling a modification
|
|
76
|
-
*/
|
|
77
|
-
type EnableResponse = z.infer<typeof EnableResponseSchema>;
|
|
78
|
-
/**
|
|
79
|
-
* Response from disabling a modification
|
|
80
|
-
*/
|
|
81
|
-
type DisableResponse = z.infer<typeof DisableResponseSchema>;
|
|
82
|
-
/**
|
|
83
|
-
* API error response
|
|
84
|
-
*/
|
|
85
|
-
type ApiError = z.infer<typeof ApiErrorSchema>;
|
|
86
|
-
/**
|
|
87
|
-
* Options for modification requests
|
|
88
|
-
*/
|
|
89
|
-
type ModifyWithAIOptions = {
|
|
90
|
-
/** Called when modification submission succeeds */
|
|
91
|
-
onSuccess?: () => void;
|
|
92
|
-
/** Called when modification submission fails */
|
|
93
|
-
onError?: (error: Error) => void;
|
|
94
|
-
};
|
|
95
|
-
/**
|
|
96
|
-
* Arguments for listModifications function
|
|
97
|
-
*/
|
|
98
|
-
type ListModificationsArgs = {
|
|
99
|
-
/** The MWAI instance ID */
|
|
100
|
-
id: string;
|
|
101
|
-
};
|
|
102
|
-
/**
|
|
103
|
-
* Arguments for modifyWithAI function
|
|
104
|
-
*/
|
|
105
|
-
type ModifyWithAIArgs = {
|
|
106
|
-
/** The MWAI instance ID */
|
|
107
|
-
id: string;
|
|
108
|
-
/** The modification prompt */
|
|
109
|
-
prompt: string;
|
|
110
|
-
};
|
|
111
|
-
/**
|
|
112
|
-
* Arguments for enableModification function
|
|
113
|
-
*/
|
|
114
|
-
type EnableModificationArgs = {
|
|
115
|
-
/** The ID of the modification to enable */
|
|
116
|
-
modificationId: string;
|
|
117
|
-
};
|
|
118
|
-
/**
|
|
119
|
-
* Arguments for disableModification function
|
|
120
|
-
*/
|
|
121
|
-
type DisableModificationArgs = {
|
|
122
|
-
/** The ID of the modification to disable */
|
|
123
|
-
modificationId: string;
|
|
124
|
-
};
|
|
125
|
-
/**
|
|
126
|
-
* Options for enable/disable modification requests
|
|
127
|
-
*/
|
|
128
|
-
type ModificationToggleOptions = {
|
|
129
|
-
/** Called when the operation succeeds */
|
|
130
|
-
onSuccess?: () => void;
|
|
131
|
-
/** Called when the operation fails */
|
|
132
|
-
onError?: (error: Error) => void;
|
|
133
|
-
};
|
|
134
|
-
//#endregion
|
|
135
|
-
export { ModifyWithAIOptions as _, DisableResponseSchema as a, EnableResponseSchema as c, ModificationSchema as d, ModificationToggleOptions as f, ModifyWithAIArgs as g, ModifyResponseSchema as h, DisableResponse as i, ListModificationsArgs as l, ModifyResponse as m, ApiErrorSchema as n, EnableModificationArgs as o, ModificationsListSchema as p, DisableModificationArgs as r, EnableResponse as s, ApiError as t, Modification as u };
|