@lacneu/wix-openclaw 0.2.2 → 0.3.1

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.
@@ -0,0 +1,199 @@
1
+ import type { WixClient } from "../wix-client.js";
2
+ /** A single SEO tag, in Wix's shape. Left permissive on purpose: which `type`
3
+ * values an endpoint accepts differs per endpoint, and the API rejects the
4
+ * wrong ones with a named error that reaches the model intact. */
5
+ declare const SeoTagSchema: import("@sinclair/typebox").TObject<{
6
+ type: import("@sinclair/typebox").TString;
7
+ props: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TUnknown>>;
8
+ children: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
9
+ custom: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
10
+ disabled: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
11
+ }>;
12
+ /** TEST ONLY: how many per-site write chains are still retained.
13
+ *
14
+ * Retention is a COST, not a behaviour — no sequence of tool calls tells a map
15
+ * that grows for ever apart from one that is emptied, so the guard needs a
16
+ * window into the module rather than an assertion about output. */
17
+ export declare function seoWriteQueueDepth(): number;
18
+ export declare function buildSeoTools(client: WixClient): ({
19
+ name: string;
20
+ description: string;
21
+ label: string;
22
+ parameters: import("@sinclair/typebox").TObject<{
23
+ siteId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
24
+ itemType: import("@sinclair/typebox").TString;
25
+ paging: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
26
+ limit: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
27
+ cursor: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
28
+ }>>;
29
+ }>;
30
+ execute: (toolCallId: string, params: {
31
+ siteId?: string | undefined;
32
+ paging?: {
33
+ limit?: number | undefined;
34
+ cursor?: string | undefined;
35
+ } | undefined;
36
+ itemType: string;
37
+ }, signal?: AbortSignal) => Promise<import("./_factory.js").WixToolResult<{
38
+ status: "ok" | "failed";
39
+ data?: unknown;
40
+ error?: string;
41
+ }>>;
42
+ } | {
43
+ name: string;
44
+ description: string;
45
+ label: string;
46
+ parameters: import("@sinclair/typebox").TObject<{
47
+ siteId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
48
+ itemType: import("@sinclair/typebox").TString;
49
+ itemId: import("@sinclair/typebox").TString;
50
+ }>;
51
+ execute: (toolCallId: string, params: {
52
+ siteId?: string | undefined;
53
+ itemType: string;
54
+ itemId: string;
55
+ }, signal?: AbortSignal) => Promise<import("./_factory.js").WixToolResult<{
56
+ status: "ok" | "failed";
57
+ data?: unknown;
58
+ error?: string;
59
+ }>>;
60
+ } | {
61
+ name: string;
62
+ description: string;
63
+ label: string;
64
+ parameters: import("@sinclair/typebox").TObject<{
65
+ siteId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
66
+ }>;
67
+ execute: (toolCallId: string, params: {
68
+ siteId?: string | undefined;
69
+ }, signal?: AbortSignal) => Promise<import("./_factory.js").WixToolResult<{
70
+ status: "ok" | "failed";
71
+ data?: unknown;
72
+ error?: string;
73
+ }>>;
74
+ } | {
75
+ name: string;
76
+ description: string;
77
+ label: string;
78
+ parameters: import("@sinclair/typebox").TObject<{
79
+ siteId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
80
+ redirectId: import("@sinclair/typebox").TString;
81
+ }>;
82
+ execute: (toolCallId: string, params: {
83
+ siteId?: string | undefined;
84
+ redirectId: string;
85
+ }, signal?: AbortSignal) => Promise<import("./_factory.js").WixToolResult<{
86
+ status: "ok" | "failed";
87
+ data?: unknown;
88
+ error?: string;
89
+ }>>;
90
+ } | {
91
+ name: string;
92
+ description: string;
93
+ label: string;
94
+ parameters: import("@sinclair/typebox").TObject<{
95
+ siteId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
96
+ redirect: import("@sinclair/typebox").TObject<{
97
+ from: import("@sinclair/typebox").TString;
98
+ to: import("@sinclair/typebox").TString;
99
+ options: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
100
+ groupRedirect: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
101
+ }>>;
102
+ language: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
103
+ id: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
104
+ }>;
105
+ forceReplace: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
106
+ acknowledgeDeletions: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>>;
107
+ }>;
108
+ execute: (toolCallId: string, params: {
109
+ forceReplace?: boolean | undefined;
110
+ siteId?: string | undefined;
111
+ acknowledgeDeletions?: string[] | undefined;
112
+ redirect: {
113
+ options?: {
114
+ groupRedirect?: boolean | undefined;
115
+ } | undefined;
116
+ language?: string | undefined;
117
+ id?: string | undefined;
118
+ from: string;
119
+ to: string;
120
+ };
121
+ }, signal?: AbortSignal) => Promise<import("./_factory.js").WixToolResult<{
122
+ status: "ok" | "failed";
123
+ data?: unknown;
124
+ error?: string;
125
+ }>>;
126
+ } | {
127
+ name: string;
128
+ description: string;
129
+ label: string;
130
+ parameters: import("@sinclair/typebox").TObject<{
131
+ siteId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
132
+ redirectId: import("@sinclair/typebox").TString;
133
+ acknowledgeDeletions: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>>;
134
+ }>;
135
+ execute: (toolCallId: string, params: {
136
+ siteId?: string | undefined;
137
+ acknowledgeDeletions?: string[] | undefined;
138
+ redirectId: string;
139
+ }, signal?: AbortSignal) => Promise<import("./_factory.js").WixToolResult<{
140
+ status: "ok" | "failed";
141
+ data?: unknown;
142
+ error?: string;
143
+ }>>;
144
+ } | {
145
+ name: string;
146
+ description: string;
147
+ label: string;
148
+ parameters: import("@sinclair/typebox").TObject<{
149
+ siteId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
150
+ redirects: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
151
+ from: import("@sinclair/typebox").TString;
152
+ to: import("@sinclair/typebox").TString;
153
+ options: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
154
+ groupRedirect: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
155
+ }>>;
156
+ language: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
157
+ id: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
158
+ }>>;
159
+ returnFullEntity: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
160
+ acknowledgeDeletions: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>>;
161
+ }>;
162
+ execute: (toolCallId: string, params: {
163
+ siteId?: string | undefined;
164
+ acknowledgeDeletions?: string[] | undefined;
165
+ returnFullEntity?: boolean | undefined;
166
+ redirects: {
167
+ options?: {
168
+ groupRedirect?: boolean | undefined;
169
+ } | undefined;
170
+ language?: string | undefined;
171
+ id?: string | undefined;
172
+ from: string;
173
+ to: string;
174
+ }[];
175
+ }, signal?: AbortSignal) => Promise<import("./_factory.js").WixToolResult<{
176
+ status: "ok" | "failed";
177
+ data?: unknown;
178
+ error?: string;
179
+ }>>;
180
+ } | {
181
+ name: string;
182
+ description: string;
183
+ label: string;
184
+ parameters: import("@sinclair/typebox").TObject<{
185
+ siteId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
186
+ redirectIds: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>;
187
+ acknowledgeDeletions: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>>;
188
+ }>;
189
+ execute: (toolCallId: string, params: {
190
+ siteId?: string | undefined;
191
+ acknowledgeDeletions?: string[] | undefined;
192
+ redirectIds: string[];
193
+ }, signal?: AbortSignal) => Promise<import("./_factory.js").WixToolResult<{
194
+ status: "ok" | "failed";
195
+ data?: unknown;
196
+ error?: string;
197
+ }>>;
198
+ })[];
199
+ export { SeoTagSchema };