@withstudiocms/sdk 0.1.0-beta.1 → 0.1.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.
Files changed (55) hide show
  1. package/dist/consts.d.ts +10 -1
  2. package/dist/consts.js +12 -3
  3. package/dist/context.d.ts +36 -16
  4. package/dist/context.js +8 -1
  5. package/dist/errors.d.ts +9 -0
  6. package/dist/errors.js +6 -0
  7. package/dist/index.d.ts +341 -453
  8. package/dist/lib/pluginUtils.d.ts +4 -3
  9. package/dist/lib/pluginUtils.js +17 -10
  10. package/dist/lib/storage-manager.d.ts +10 -0
  11. package/dist/lib/storage-manager.js +17 -0
  12. package/dist/migrations/20251025T040912_init.d.ts +17 -0
  13. package/dist/migrations/20251025T040912_init.js +260 -0
  14. package/dist/migrations/20251130T150847_drop_deprecated.d.ts +13 -0
  15. package/dist/migrations/20251130T150847_drop_deprecated.js +262 -0
  16. package/dist/migrations/20251221T002125_url-mapping.d.ts +13 -0
  17. package/dist/migrations/20251221T002125_url-mapping.js +228 -0
  18. package/dist/migrator.d.ts +25 -0
  19. package/dist/migrator.js +21 -0
  20. package/dist/modules/auth/index.d.ts +60 -104
  21. package/dist/modules/auth/index.js +33 -9
  22. package/dist/modules/config/index.d.ts +5 -5
  23. package/dist/modules/config/index.js +26 -7
  24. package/dist/modules/delete/index.d.ts +2 -1
  25. package/dist/modules/delete/index.js +7 -2
  26. package/dist/modules/diffTracking/index.d.ts +8 -8
  27. package/dist/modules/diffTracking/index.js +7 -6
  28. package/dist/modules/get/index.d.ts +116 -16
  29. package/dist/modules/get/index.js +135 -22
  30. package/dist/modules/index.d.ts +326 -446
  31. package/dist/modules/init/index.d.ts +9 -9
  32. package/dist/modules/middleware/index.d.ts +2 -2
  33. package/dist/modules/notificationSettings/index.d.ts +3 -3
  34. package/dist/modules/plugins/index.d.ts +9 -8
  35. package/dist/modules/plugins/index.js +17 -6
  36. package/dist/modules/post/index.d.ts +29 -28
  37. package/dist/modules/post/index.js +47 -15
  38. package/dist/modules/resetTokenBucket/index.d.ts +1 -1
  39. package/dist/modules/resetTokenBucket/index.js +5 -2
  40. package/dist/modules/rest_api/index.d.ts +8 -8
  41. package/dist/modules/rest_api/index.js +7 -3
  42. package/dist/modules/update/index.d.ts +25 -25
  43. package/dist/modules/update/index.js +28 -10
  44. package/dist/modules/util/collectors.d.ts +14 -150
  45. package/dist/modules/util/collectors.js +41 -14
  46. package/dist/modules/util/folderTree.d.ts +4 -4
  47. package/dist/modules/util/folderTree.js +1 -1
  48. package/dist/modules/util/getFromNPM.d.ts +13 -5
  49. package/dist/modules/util/getFromNPM.js +8 -2
  50. package/dist/modules/util/index.d.ts +30 -166
  51. package/dist/modules/util/users.d.ts +7 -7
  52. package/dist/tables.d.ts +433 -0
  53. package/dist/tables.js +169 -0
  54. package/dist/types.d.ts +6 -7
  55. package/package.json +17 -5
package/dist/index.d.ts CHANGED
@@ -21,16 +21,16 @@ export declare const StudioCMSSDKCore: Effect.Effect<{
21
21
  get: (input: string) => Effect.Effect<{
22
22
  readonly id: string;
23
23
  readonly userId: string;
24
- readonly token: string;
25
24
  readonly expiresAt: Date;
26
- } | undefined, import("@withstudiocms/kysely").DBCallbackFailure | import("@withstudiocms/kysely/core/errors").DatabaseError, never>;
25
+ readonly token: string;
26
+ } | undefined, import("@withstudiocms/kysely/client").DBCallbackFailure | import("@withstudiocms/kysely/core/errors").DatabaseError, never>;
27
27
  create: (userId: string) => Effect.Effect<{
28
28
  readonly id: string;
29
29
  readonly userId: string;
30
- readonly token: string;
31
30
  readonly expiresAt: Date;
32
- }, import("@withstudiocms/kysely").DBCallbackFailure | import("@withstudiocms/kysely/core/errors").DatabaseError | import("./modules/util/generators.js").GeneratorError, never>;
33
- delete: (input: string) => Effect.Effect<import("kysely").DeleteResult, import("@withstudiocms/kysely").DBCallbackFailure | import("@withstudiocms/kysely/core/errors").DatabaseError, never>;
31
+ readonly token: string;
32
+ }, import("@withstudiocms/kysely/client").DBCallbackFailure | import("@withstudiocms/kysely/core/errors").DatabaseError | import("./modules/util/generators.js").GeneratorError, never>;
33
+ delete: (input: string) => Effect.Effect<import("kysely").DeleteResult, import("@withstudiocms/kysely/client").DBCallbackFailure | import("@withstudiocms/kysely/core/errors").DatabaseError, never>;
34
34
  };
35
35
  oAuth: {
36
36
  create: (input: {
@@ -41,7 +41,7 @@ export declare const StudioCMSSDKCore: Effect.Effect<{
41
41
  readonly providerUserId: string;
42
42
  readonly provider: string;
43
43
  readonly userId: string;
44
- }, import("@withstudiocms/kysely").DBCallbackFailure | import("@withstudiocms/kysely/core/errors").DatabaseError, never>;
44
+ }, import("@withstudiocms/kysely/client").DBCallbackFailure | import("@withstudiocms/kysely/core/errors").DatabaseError, never>;
45
45
  delete: (input: {
46
46
  readonly userId: string;
47
47
  readonly provider: string;
@@ -53,7 +53,7 @@ export declare const StudioCMSSDKCore: Effect.Effect<{
53
53
  readonly providerUserId: string;
54
54
  readonly provider: string;
55
55
  readonly userId: string;
56
- } | undefined, import("@withstudiocms/kysely").DBCallbackFailure | import("@withstudiocms/kysely/core/errors").DatabaseError, never>;
56
+ } | undefined, import("@withstudiocms/kysely/client").DBCallbackFailure | import("@withstudiocms/kysely/core/errors").DatabaseError, never>;
57
57
  searchProvidersForId: (input: {
58
58
  readonly userId: string;
59
59
  readonly providerId: string;
@@ -61,13 +61,13 @@ export declare const StudioCMSSDKCore: Effect.Effect<{
61
61
  readonly providerUserId: string;
62
62
  readonly provider: string;
63
63
  readonly userId: string;
64
- } | undefined, import("@withstudiocms/kysely").DBCallbackFailure | import("@withstudiocms/kysely/core/errors").DatabaseError, never>;
64
+ } | undefined, import("@withstudiocms/kysely/client").DBCallbackFailure | import("@withstudiocms/kysely/core/errors").DatabaseError, never>;
65
65
  };
66
66
  permission: {
67
67
  currentStatus: (input: string) => Effect.Effect<{
68
68
  readonly user: string;
69
69
  readonly rank: "owner" | "admin" | "editor" | "visitor" | "unknown";
70
- } | undefined, import("@withstudiocms/kysely").DBCallbackFailure | import("@withstudiocms/kysely/core/errors").DatabaseError, never>;
70
+ } | undefined, import("@withstudiocms/kysely/client").DBCallbackFailure | import("@withstudiocms/kysely/core/errors").DatabaseError, never>;
71
71
  };
72
72
  session: {
73
73
  create: (input: {
@@ -78,12 +78,12 @@ export declare const StudioCMSSDKCore: Effect.Effect<{
78
78
  readonly id: string;
79
79
  readonly userId: string;
80
80
  readonly expiresAt: Date;
81
- }, import("@withstudiocms/kysely").DBCallbackFailure | import("@withstudiocms/kysely/core/errors").DatabaseError, never>;
81
+ }, import("@withstudiocms/kysely/client").DBCallbackFailure | import("@withstudiocms/kysely/core/errors").DatabaseError, never>;
82
82
  getById: (input: string) => Effect.Effect<{
83
83
  readonly id: string;
84
84
  readonly userId: string;
85
85
  readonly expiresAt: Date;
86
- } | undefined, import("@withstudiocms/kysely").DBCallbackFailure | import("@withstudiocms/kysely/core/errors").DatabaseError, never>;
86
+ } | undefined, import("@withstudiocms/kysely/client").DBCallbackFailure | import("@withstudiocms/kysely/core/errors").DatabaseError, never>;
87
87
  sessionWithUser: (sessionId: string) => Effect.Effect<{
88
88
  session: {
89
89
  readonly id: string;
@@ -91,184 +91,139 @@ export declare const StudioCMSSDKCore: Effect.Effect<{
91
91
  readonly expiresAt: Date;
92
92
  };
93
93
  user: {
94
- readonly name: string;
95
94
  readonly id: string;
96
- readonly url: string | null | undefined;
97
- readonly email: string | null | undefined;
98
- readonly avatar: string | null | undefined;
95
+ readonly url?: string | null | undefined;
96
+ readonly name: string;
97
+ readonly email?: string | null | undefined;
98
+ readonly avatar?: string | null | undefined;
99
99
  readonly username: string;
100
- readonly password: string | null | undefined;
100
+ readonly password?: string | null | undefined;
101
101
  readonly updatedAt: Date;
102
102
  readonly createdAt: Date;
103
103
  readonly emailVerified: boolean;
104
- readonly notifications: string | null | undefined;
104
+ readonly notifications?: string | null | undefined;
105
105
  };
106
- } | undefined, import("@withstudiocms/kysely").DBCallbackFailure | import("@withstudiocms/kysely/core/errors").DatabaseError, never>;
106
+ } | undefined, import("@withstudiocms/kysely/client").DBCallbackFailure | import("@withstudiocms/kysely/core/errors").DatabaseError, never>;
107
107
  delete: (input: string) => import("./types.js").AuthDeletionResponse;
108
108
  update: (input: {
109
109
  readonly id: string;
110
- readonly newDate: {
111
- toString: {};
112
- toDateString: {};
113
- toTimeString: {};
114
- toLocaleString: {};
115
- toLocaleDateString: {};
116
- toLocaleTimeString: {};
117
- valueOf: {};
118
- getTime: {};
119
- getFullYear: {};
120
- getUTCFullYear: {};
121
- getMonth: {};
122
- getUTCMonth: {};
123
- getDate: {};
124
- getUTCDate: {};
125
- getDay: {};
126
- getUTCDay: {};
127
- getHours: {};
128
- getUTCHours: {};
129
- getMinutes: {};
130
- getUTCMinutes: {};
131
- getSeconds: {};
132
- getUTCSeconds: {};
133
- getMilliseconds: {};
134
- getUTCMilliseconds: {};
135
- getTimezoneOffset: {};
136
- setTime: {};
137
- setMilliseconds: {};
138
- setUTCMilliseconds: {};
139
- setSeconds: {};
140
- setUTCSeconds: {};
141
- setMinutes: {};
142
- setUTCMinutes: {};
143
- setHours: {};
144
- setUTCHours: {};
145
- setDate: {};
146
- setUTCDate: {};
147
- setMonth: {};
148
- setUTCMonth: {};
149
- setFullYear: {};
150
- setUTCFullYear: {};
151
- toUTCString: {};
152
- toISOString: {};
153
- toJSON: {};
154
- getVarDate: {};
155
- [Symbol.toPrimitive]: {};
156
- };
110
+ readonly newDate: Date;
157
111
  }) => Effect.Effect<{
158
112
  readonly id: string;
159
113
  readonly userId: string;
160
114
  readonly expiresAt: Date;
161
- }, import("@withstudiocms/kysely").DBCallbackFailure | import("@withstudiocms/kysely/core/errors").DatabaseError, never>;
115
+ }, import("@withstudiocms/kysely/client").DBCallbackFailure | import("@withstudiocms/kysely/core/errors").DatabaseError, never>;
162
116
  };
163
117
  user: {
164
118
  create: (userData: {
165
- readonly name: string;
166
119
  readonly id: string;
167
- readonly url: string | null | undefined;
168
- readonly email: string | null | undefined;
169
- readonly avatar: string | null | undefined;
120
+ readonly url?: string | null | undefined;
121
+ readonly name: string;
122
+ readonly email?: string | null | undefined;
123
+ readonly avatar?: string | null | undefined;
170
124
  readonly username: string;
171
- readonly password: string | null | undefined;
125
+ readonly password?: string | null | undefined;
172
126
  readonly updatedAt: string;
173
127
  readonly createdAt: string | undefined;
174
128
  readonly emailVerified: boolean;
175
- readonly notifications: string | null | undefined;
129
+ readonly notifications?: string | null | undefined;
176
130
  }, rank: "owner" | "admin" | "editor" | "visitor" | "unknown") => Effect.Effect<{
177
- readonly name: string;
178
131
  readonly id: string;
179
- readonly url: string | null | undefined;
180
- readonly email: string | null | undefined;
181
- readonly avatar: string | null | undefined;
132
+ readonly url?: string | null | undefined;
133
+ readonly name: string;
134
+ readonly email?: string | null | undefined;
135
+ readonly avatar?: string | null | undefined;
182
136
  readonly username: string;
183
- readonly password: string | null | undefined;
137
+ readonly password?: string | null | undefined;
184
138
  readonly updatedAt: Date;
185
139
  readonly createdAt: Date;
186
140
  readonly emailVerified: boolean;
187
- readonly notifications: string | null | undefined;
188
- }, import("@withstudiocms/kysely").DBCallbackFailure | import("@withstudiocms/kysely/core/errors").DatabaseError, never>;
141
+ readonly notifications?: string | null | undefined;
142
+ }, import("@withstudiocms/kysely/client").DBCallbackFailure | import("@withstudiocms/kysely/core/errors").DatabaseError, never>;
189
143
  update: (input: {
190
144
  readonly userId: string;
191
145
  readonly userData: {
146
+ readonly id: string;
192
147
  readonly url?: string | null | undefined;
148
+ readonly name: string;
193
149
  readonly email?: string | null | undefined;
194
150
  readonly avatar?: string | null | undefined;
195
- readonly password?: string | null | undefined;
196
- readonly notifications?: string | null | undefined;
197
- readonly name: string;
198
- readonly id: string;
199
151
  readonly username: string;
152
+ readonly password?: string | null | undefined;
200
153
  readonly updatedAt: string;
154
+ readonly createdAt: undefined;
201
155
  readonly emailVerified: boolean;
156
+ readonly notifications?: string | null | undefined;
202
157
  };
203
158
  }) => Effect.Effect<{
204
- readonly name: string;
205
159
  readonly id: string;
206
- readonly url: string | null | undefined;
207
- readonly email: string | null | undefined;
208
- readonly avatar: string | null | undefined;
160
+ readonly url?: string | null | undefined;
161
+ readonly name: string;
162
+ readonly email?: string | null | undefined;
163
+ readonly avatar?: string | null | undefined;
209
164
  readonly username: string;
210
- readonly password: string | null | undefined;
165
+ readonly password?: string | null | undefined;
211
166
  readonly updatedAt: Date;
212
167
  readonly createdAt: Date;
213
168
  readonly emailVerified: boolean;
214
- readonly notifications: string | null | undefined;
215
- }, import("@withstudiocms/kysely").DBCallbackFailure | import("@withstudiocms/kysely/core/errors").DatabaseError, never>;
169
+ readonly notifications?: string | null | undefined;
170
+ }, import("@withstudiocms/kysely/client").DBCallbackFailure | import("@withstudiocms/kysely/core/errors").DatabaseError, never>;
216
171
  searchUsersForUsernameOrEmail: (username?: string | undefined, email?: string | undefined) => Effect.Effect<{
217
172
  usernameSearch: {
218
- readonly name: string;
219
173
  readonly id: string;
220
- readonly url: string | null | undefined;
221
- readonly email: string | null | undefined;
222
- readonly avatar: string | null | undefined;
174
+ readonly url?: string | null | undefined;
175
+ readonly name: string;
176
+ readonly email?: string | null | undefined;
177
+ readonly avatar?: string | null | undefined;
223
178
  readonly username: string;
224
- readonly password: string | null | undefined;
179
+ readonly password?: string | null | undefined;
225
180
  readonly updatedAt: Date;
226
181
  readonly createdAt: Date;
227
182
  readonly emailVerified: boolean;
228
- readonly notifications: string | null | undefined;
183
+ readonly notifications?: string | null | undefined;
229
184
  }[];
230
185
  emailSearch: {
231
- readonly name: string;
232
186
  readonly id: string;
233
- readonly url: string | null | undefined;
234
- readonly email: string | null | undefined;
235
- readonly avatar: string | null | undefined;
187
+ readonly url?: string | null | undefined;
188
+ readonly name: string;
189
+ readonly email?: string | null | undefined;
190
+ readonly avatar?: string | null | undefined;
236
191
  readonly username: string;
237
- readonly password: string | null | undefined;
192
+ readonly password?: string | null | undefined;
238
193
  readonly updatedAt: Date;
239
194
  readonly createdAt: Date;
240
195
  readonly emailVerified: boolean;
241
- readonly notifications: string | null | undefined;
196
+ readonly notifications?: string | null | undefined;
242
197
  }[];
243
- }, import("@withstudiocms/kysely").DBCallbackFailure | import("@withstudiocms/kysely/core/errors").DatabaseError, never>;
198
+ }, import("@withstudiocms/kysely/client").DBCallbackFailure | import("@withstudiocms/kysely/core/errors").DatabaseError, never>;
244
199
  ghost: {
245
- verifyExists: () => Effect.Effect<boolean, import("@withstudiocms/kysely").DBCallbackFailure | import("@withstudiocms/kysely/core/errors").DatabaseError, never>;
200
+ verifyExists: () => Effect.Effect<boolean, import("@withstudiocms/kysely/client").DBCallbackFailure | import("@withstudiocms/kysely/core/errors").DatabaseError, never>;
246
201
  create: () => Effect.Effect<{
247
- readonly name: string;
248
202
  readonly id: string;
249
- readonly url: string | null | undefined;
250
- readonly email: string | null | undefined;
251
- readonly avatar: string | null | undefined;
203
+ readonly url?: string | null | undefined;
204
+ readonly name: string;
205
+ readonly email?: string | null | undefined;
206
+ readonly avatar?: string | null | undefined;
252
207
  readonly username: string;
253
- readonly password: string | null | undefined;
208
+ readonly password?: string | null | undefined;
254
209
  readonly updatedAt: Date;
255
210
  readonly createdAt: Date;
256
211
  readonly emailVerified: boolean;
257
- readonly notifications: string | null | undefined;
258
- }, import("@withstudiocms/kysely").DBCallbackFailure | import("@withstudiocms/kysely/core/errors").DatabaseError, never>;
212
+ readonly notifications?: string | null | undefined;
213
+ }, import("@withstudiocms/kysely/client").DBCallbackFailure | import("@withstudiocms/kysely/core/errors").DatabaseError, never>;
259
214
  get: () => Effect.Effect<{
260
- readonly name: string;
261
215
  readonly id: string;
262
- readonly url: string | null | undefined;
263
- readonly email: string | null | undefined;
264
- readonly avatar: string | null | undefined;
216
+ readonly url?: string | null | undefined;
217
+ readonly name: string;
218
+ readonly email?: string | null | undefined;
219
+ readonly avatar?: string | null | undefined;
265
220
  readonly username: string;
266
- readonly password: string | null | undefined;
221
+ readonly password?: string | null | undefined;
267
222
  readonly updatedAt: Date;
268
223
  readonly createdAt: Date;
269
224
  readonly emailVerified: boolean;
270
- readonly notifications: string | null | undefined;
271
- }, import("@withstudiocms/kysely").DBCallbackFailure | import("@withstudiocms/kysely/core/errors").DatabaseError, never>;
225
+ readonly notifications?: string | null | undefined;
226
+ }, import("@withstudiocms/kysely/client").DBCallbackFailure | import("@withstudiocms/kysely/core/errors").DatabaseError, never>;
272
227
  };
273
228
  };
274
229
  };
@@ -283,24 +238,24 @@ export declare const StudioCMSSDKCore: Effect.Effect<{
283
238
  };
284
239
  CONFIG: {
285
240
  siteConfig: {
286
- get: () => Effect.Effect<import("./types.js").DynamicConfigEntry<import("./types.js").StudioCMSSiteConfig> | undefined, import("@withstudiocms/kysely").DBCallbackFailure | import("@withstudiocms/kysely/core/errors").DatabaseError, never>;
287
- update: (data: import("./types.js").ConfigFinal<import("./types.js").StudioCMSSiteConfig>) => Effect.Effect<import("./types.js").DynamicConfigEntry<import("./types.js").StudioCMSSiteConfig>, import("@withstudiocms/kysely").DBCallbackFailure | import("@withstudiocms/kysely/core/errors").DatabaseError, never>;
288
- init: (data: import("./types.js").ConfigFinal<import("./types.js").StudioCMSSiteConfig>) => Effect.Effect<import("./types.js").DynamicConfigEntry<import("./types.js").StudioCMSSiteConfig>, import("@withstudiocms/kysely").DBCallbackFailure | import("@withstudiocms/kysely/core/errors").DatabaseError, never>;
241
+ get: <T extends import("./types.js").StudioCMSSiteConfig>() => Effect.Effect<import("./types.js").DynamicConfigEntry<T> | undefined, import("effect/Cause").UnknownException | import("@withstudiocms/kysely/client").DBCallbackFailure | import("@withstudiocms/kysely/core/errors").DatabaseError, never>;
242
+ update: (data: import("./types.js").ConfigFinal<import("./types.js").StudioCMSSiteConfig>) => Effect.Effect<import("./types.js").DynamicConfigEntry<import("./types.js").StudioCMSSiteConfig>, import("@withstudiocms/kysely/client").DBCallbackFailure | import("@withstudiocms/kysely/core/errors").DatabaseError, never>;
243
+ init: (data: import("./types.js").ConfigFinal<import("./types.js").StudioCMSSiteConfig>) => Effect.Effect<import("./types.js").DynamicConfigEntry<import("./types.js").StudioCMSSiteConfig>, import("@withstudiocms/kysely/client").DBCallbackFailure | import("@withstudiocms/kysely/core/errors").DatabaseError, never>;
289
244
  };
290
245
  mailerConfig: {
291
- get: () => Effect.Effect<import("./types.js").DynamicConfigEntry<import("./types.js").StudioCMSMailerConfig> | undefined, import("@withstudiocms/kysely").DBCallbackFailure | import("@withstudiocms/kysely/core/errors").DatabaseError, never>;
292
- update: (data: import("./types.js").ConfigFinal<import("./types.js").StudioCMSMailerConfig>) => Effect.Effect<import("./types.js").DynamicConfigEntry<import("./types.js").StudioCMSMailerConfig>, import("@withstudiocms/kysely").DBCallbackFailure | import("@withstudiocms/kysely/core/errors").DatabaseError, never>;
293
- init: (data: import("./types.js").ConfigFinal<import("./types.js").StudioCMSMailerConfig>) => Effect.Effect<import("./types.js").DynamicConfigEntry<import("./types.js").StudioCMSMailerConfig>, import("@withstudiocms/kysely").DBCallbackFailure | import("@withstudiocms/kysely/core/errors").DatabaseError, never>;
246
+ get: () => Effect.Effect<import("./types.js").DynamicConfigEntry<import("./types.js").StudioCMSMailerConfig> | undefined, import("@withstudiocms/kysely/client").DBCallbackFailure | import("@withstudiocms/kysely/core/errors").DatabaseError, never>;
247
+ update: (data: import("./types.js").ConfigFinal<import("./types.js").StudioCMSMailerConfig>) => Effect.Effect<import("./types.js").DynamicConfigEntry<import("./types.js").StudioCMSMailerConfig>, import("@withstudiocms/kysely/client").DBCallbackFailure | import("@withstudiocms/kysely/core/errors").DatabaseError, never>;
248
+ init: (data: import("./types.js").ConfigFinal<import("./types.js").StudioCMSMailerConfig>) => Effect.Effect<import("./types.js").DynamicConfigEntry<import("./types.js").StudioCMSMailerConfig>, import("@withstudiocms/kysely/client").DBCallbackFailure | import("@withstudiocms/kysely/core/errors").DatabaseError, never>;
294
249
  };
295
250
  notificationConfig: {
296
- get: () => Effect.Effect<import("./types.js").DynamicConfigEntry<import("./types.js").StudioCMSNotificationSettings> | undefined, import("@withstudiocms/kysely").DBCallbackFailure | import("@withstudiocms/kysely/core/errors").DatabaseError, never>;
297
- update: (data: import("./types.js").ConfigFinal<import("./types.js").StudioCMSNotificationSettings>) => Effect.Effect<import("./types.js").DynamicConfigEntry<import("./types.js").StudioCMSNotificationSettings>, import("@withstudiocms/kysely").DBCallbackFailure | import("@withstudiocms/kysely/core/errors").DatabaseError, never>;
298
- init: (data: import("./types.js").ConfigFinal<import("./types.js").StudioCMSNotificationSettings>) => Effect.Effect<import("./types.js").DynamicConfigEntry<import("./types.js").StudioCMSNotificationSettings>, import("@withstudiocms/kysely").DBCallbackFailure | import("@withstudiocms/kysely/core/errors").DatabaseError, never>;
251
+ get: () => Effect.Effect<import("./types.js").DynamicConfigEntry<import("./types.js").StudioCMSNotificationSettings> | undefined, import("@withstudiocms/kysely/client").DBCallbackFailure | import("@withstudiocms/kysely/core/errors").DatabaseError, never>;
252
+ update: (data: import("./types.js").ConfigFinal<import("./types.js").StudioCMSNotificationSettings>) => Effect.Effect<import("./types.js").DynamicConfigEntry<import("./types.js").StudioCMSNotificationSettings>, import("@withstudiocms/kysely/client").DBCallbackFailure | import("@withstudiocms/kysely/core/errors").DatabaseError, never>;
253
+ init: (data: import("./types.js").ConfigFinal<import("./types.js").StudioCMSNotificationSettings>) => Effect.Effect<import("./types.js").DynamicConfigEntry<import("./types.js").StudioCMSNotificationSettings>, import("@withstudiocms/kysely/client").DBCallbackFailure | import("@withstudiocms/kysely/core/errors").DatabaseError, never>;
299
254
  };
300
255
  templateConfig: {
301
- get: () => Effect.Effect<import("./types.js").DynamicConfigEntry<import("./types.js").StudioCMSTemplateConfig> | undefined, import("@withstudiocms/kysely").DBCallbackFailure | import("@withstudiocms/kysely/core/errors").DatabaseError, never>;
302
- update: (data: import("./types.js").ConfigFinal<import("./types.js").StudioCMSTemplateConfig>) => Effect.Effect<import("./types.js").DynamicConfigEntry<import("./types.js").StudioCMSTemplateConfig>, Error, never>;
303
- init: (data: import("./types.js").ConfigFinal<import("./types.js").StudioCMSTemplateConfig>) => Effect.Effect<import("./types.js").DynamicConfigEntry<import("./types.js").StudioCMSTemplateConfig>, import("@withstudiocms/kysely").DBCallbackFailure | import("@withstudiocms/kysely/core/errors").DatabaseError, never>;
256
+ get: () => Effect.Effect<import("./types.js").DynamicConfigEntry<import("./types.js").StudioCMSTemplateConfig> | undefined, import("@withstudiocms/kysely/client").DBCallbackFailure | import("@withstudiocms/kysely/core/errors").DatabaseError, never>;
257
+ update: (data: import("./types.js").ConfigFinal<import("./types.js").StudioCMSTemplateConfig>) => Effect.Effect<import("./types.js").DynamicConfigEntry<import("./types.js").StudioCMSTemplateConfig>, import("@withstudiocms/kysely/client").DBCallbackFailure | import("@withstudiocms/kysely/core/errors").DatabaseError | import("@withstudiocms/effect").DeepmergeError, never>;
258
+ init: (data: import("./types.js").ConfigFinal<import("./types.js").StudioCMSTemplateConfig>) => Effect.Effect<import("./types.js").DynamicConfigEntry<import("./types.js").StudioCMSTemplateConfig>, import("@withstudiocms/kysely/client").DBCallbackFailure | import("@withstudiocms/kysely/core/errors").DatabaseError, never>;
304
259
  };
305
260
  };
306
261
  DELETE: {
@@ -351,20 +306,20 @@ export declare const StudioCMSSDKCore: Effect.Effect<{
351
306
  start: Partial<import("./types.js").tsPageDataSelect>;
352
307
  end: Partial<import("./types.js").tsPageDataSelect>;
353
308
  };
354
- }, diffLength: number) => Effect.Effect<import("./types.js").diffReturn, import("@withstudiocms/kysely").DBCallbackFailure | import("@withstudiocms/kysely/core/errors").DatabaseError | import("./modules/util/parsers.js").ParsersError | import("./lib/diff.js").DiffError, never>;
355
- clear: (input: string) => Effect.Effect<import("kysely").DeleteResult[], import("@withstudiocms/kysely").DBCallbackFailure | import("@withstudiocms/kysely/core/errors").DatabaseError, never>;
309
+ }, diffLength: number) => Effect.Effect<import("./types.js").diffReturn, import("@withstudiocms/kysely/client").DBCallbackFailure | import("@withstudiocms/kysely/core/errors").DatabaseError | import("./modules/util/parsers.js").ParsersError | import("./lib/diff.js").DiffError, never>;
310
+ clear: (input: string) => Effect.Effect<import("kysely").DeleteResult[], import("@withstudiocms/kysely/client").DBCallbackFailure | import("@withstudiocms/kysely/core/errors").DatabaseError, never>;
356
311
  get: {
357
312
  byPageId: {
358
- all: (pageId: string) => Effect.Effect<import("./types.js").diffReturn[], import("@withstudiocms/kysely").DBCallbackFailure | import("@withstudiocms/kysely/core/errors").DatabaseError | import("./modules/util/parsers.js").ParsersError, never>;
359
- latest: (pageId: string, count: number) => Effect.Effect<import("./types.js").diffReturn[], import("@withstudiocms/kysely").DBCallbackFailure | import("@withstudiocms/kysely/core/errors").DatabaseError | import("./modules/util/parsers.js").ParsersError, never>;
313
+ all: (pageId: string) => Effect.Effect<import("./types.js").diffReturn[], import("@withstudiocms/kysely/client").DBCallbackFailure | import("@withstudiocms/kysely/core/errors").DatabaseError | import("./modules/util/parsers.js").ParsersError, never>;
314
+ latest: (pageId: string, count: number) => Effect.Effect<import("./types.js").diffReturn[], import("@withstudiocms/kysely/client").DBCallbackFailure | import("@withstudiocms/kysely/core/errors").DatabaseError | import("./modules/util/parsers.js").ParsersError, never>;
360
315
  };
361
316
  byUserId: {
362
- all: (userId: string) => Effect.Effect<import("./types.js").diffReturn[], import("@withstudiocms/kysely").DBCallbackFailure | import("@withstudiocms/kysely/core/errors").DatabaseError | import("./modules/util/parsers.js").ParsersError, never>;
363
- latest: (userId: string, count: number) => Effect.Effect<import("./types.js").diffReturn[], import("@withstudiocms/kysely").DBCallbackFailure | import("@withstudiocms/kysely/core/errors").DatabaseError | import("./modules/util/parsers.js").ParsersError, never>;
317
+ all: (userId: string) => Effect.Effect<import("./types.js").diffReturn[], import("@withstudiocms/kysely/client").DBCallbackFailure | import("@withstudiocms/kysely/core/errors").DatabaseError | import("./modules/util/parsers.js").ParsersError, never>;
318
+ latest: (userId: string, count: number) => Effect.Effect<import("./types.js").diffReturn[], import("@withstudiocms/kysely/client").DBCallbackFailure | import("@withstudiocms/kysely/core/errors").DatabaseError | import("./modules/util/parsers.js").ParsersError, never>;
364
319
  };
365
- single: (diffId: string) => Effect.Effect<import("./types.js").diffReturn | undefined, import("@withstudiocms/kysely").DBCallbackFailure | import("@withstudiocms/kysely/core/errors").DatabaseError | import("./modules/util/parsers.js").ParsersError, never>;
320
+ single: (diffId: string) => Effect.Effect<import("./types.js").diffReturn | undefined, import("@withstudiocms/kysely/client").DBCallbackFailure | import("@withstudiocms/kysely/core/errors").DatabaseError | import("./modules/util/parsers.js").ParsersError, never>;
366
321
  };
367
- revertToDiff: (id: string, type: "data" | "content" | "both") => Effect.Effect<import("./types.js").diffReturn, import("effect/ParseResult").ParseError | import("@withstudiocms/kysely").DBCallbackFailure | import("@withstudiocms/kysely/core/errors").DatabaseError | import("./modules/util/parsers.js").ParsersError | import("./modules/diffTracking/index.js").DiffTrackingError, never>;
322
+ revertToDiff: (id: string, type: "content" | "data" | "both") => Effect.Effect<import("./types.js").diffReturn, import("effect/ParseResult").ParseError | import("@withstudiocms/kysely/client").DBCallbackFailure | import("@withstudiocms/kysely/core/errors").DatabaseError | import("./modules/util/parsers.js").ParsersError | import("./modules/diffTracking/index.js").DiffTrackingError, never>;
368
323
  utils: {
369
324
  getMetaDataDifferences: <T extends Record<string, unknown>>(obj1: T, obj2: T) => Effect.Effect<{
370
325
  label: string;
@@ -376,98 +331,159 @@ export declare const StudioCMSSDKCore: Effect.Effect<{
376
331
  };
377
332
  GET: {
378
333
  permissionsLists: {
379
- owners: () => Effect.Effect<import("./types.js").SingleRank[], import("./modules/util/users.js").UsersError | import("@withstudiocms/kysely").DBCallbackFailure | import("@withstudiocms/kysely/core/errors").DatabaseError, never>;
380
- admins: () => Effect.Effect<import("./types.js").SingleRank[], import("./modules/util/users.js").UsersError | import("@withstudiocms/kysely").DBCallbackFailure | import("@withstudiocms/kysely/core/errors").DatabaseError, never>;
381
- editors: () => Effect.Effect<import("./types.js").SingleRank[], import("./modules/util/users.js").UsersError | import("@withstudiocms/kysely").DBCallbackFailure | import("@withstudiocms/kysely/core/errors").DatabaseError, never>;
382
- visitors: () => Effect.Effect<import("./types.js").SingleRank[], import("./modules/util/users.js").UsersError | import("@withstudiocms/kysely").DBCallbackFailure | import("@withstudiocms/kysely/core/errors").DatabaseError, never>;
383
- all: () => Effect.Effect<import("./types.js").CombinedRank[], import("@withstudiocms/kysely").DBCallbackFailure | import("@withstudiocms/kysely/core/errors").DatabaseError | import("./modules/util/users.js").UsersError, never>;
334
+ owners: () => Effect.Effect<import("./types.js").SingleRank[], import("./modules/util/users.js").UsersError | import("@withstudiocms/kysely/client").DBCallbackFailure | import("@withstudiocms/kysely/core/errors").DatabaseError, never>;
335
+ admins: () => Effect.Effect<import("./types.js").SingleRank[], import("./modules/util/users.js").UsersError | import("@withstudiocms/kysely/client").DBCallbackFailure | import("@withstudiocms/kysely/core/errors").DatabaseError, never>;
336
+ editors: () => Effect.Effect<import("./types.js").SingleRank[], import("./modules/util/users.js").UsersError | import("@withstudiocms/kysely/client").DBCallbackFailure | import("@withstudiocms/kysely/core/errors").DatabaseError, never>;
337
+ visitors: () => Effect.Effect<import("./types.js").SingleRank[], import("./modules/util/users.js").UsersError | import("@withstudiocms/kysely/client").DBCallbackFailure | import("@withstudiocms/kysely/core/errors").DatabaseError, never>;
338
+ all: () => Effect.Effect<import("./types.js").CombinedRank[], import("@withstudiocms/kysely/client").DBCallbackFailure | import("@withstudiocms/kysely/core/errors").DatabaseError | import("./modules/util/users.js").UsersError, never>;
384
339
  };
385
340
  users: {
386
- all: () => Effect.Effect<import("./types.js").CombinedUserData[], import("@withstudiocms/kysely").DBCallbackFailure | import("@withstudiocms/kysely/core/errors").DatabaseError, never>;
387
- byId: (userId: string) => Effect.Effect<import("./types.js").CombinedUserData | undefined, import("@withstudiocms/kysely").DBCallbackFailure | import("@withstudiocms/kysely/core/errors").DatabaseError, never>;
388
- byUsername: (username: string) => Effect.Effect<import("./types.js").CombinedUserData | undefined, import("@withstudiocms/kysely").DBCallbackFailure | import("@withstudiocms/kysely/core/errors").DatabaseError, never>;
389
- byEmail: (email: string) => Effect.Effect<import("./types.js").CombinedUserData | undefined, import("@withstudiocms/kysely").DBCallbackFailure | import("@withstudiocms/kysely/core/errors").DatabaseError, never>;
341
+ all: () => Effect.Effect<import("./types.js").CombinedUserData[], import("@withstudiocms/kysely/client").DBCallbackFailure | import("@withstudiocms/kysely/core/errors").DatabaseError, never>;
342
+ byId: (userId: string) => Effect.Effect<import("./types.js").CombinedUserData | undefined, import("@withstudiocms/kysely/client").DBCallbackFailure | import("@withstudiocms/kysely/core/errors").DatabaseError, never>;
343
+ byUsername: (username: string) => Effect.Effect<import("./types.js").CombinedUserData | undefined, import("@withstudiocms/kysely/client").DBCallbackFailure | import("@withstudiocms/kysely/core/errors").DatabaseError, never>;
344
+ byEmail: (email: string) => Effect.Effect<import("./types.js").CombinedUserData | undefined, import("@withstudiocms/kysely/client").DBCallbackFailure | import("@withstudiocms/kysely/core/errors").DatabaseError, never>;
390
345
  };
391
346
  folder: (folderId: string) => Effect.Effect<{
392
- readonly name: string;
393
347
  readonly id: string;
394
- readonly parent: string | null | undefined;
395
- } | undefined, import("@withstudiocms/kysely").DBCallbackFailure | import("@withstudiocms/kysely/core/errors").DatabaseError, never>;
396
- folderTree: () => Effect.Effect<import("./types.js").FolderNode[], import("@withstudiocms/kysely").DBCallbackFailure | import("@withstudiocms/kysely/core/errors").DatabaseError | import("./modules/util/folderTree.js").FolderTreeError, never>;
397
- folderList: () => Effect.Effect<import("./types.js").FolderListItem[], import("@withstudiocms/kysely").DBCallbackFailure | import("@withstudiocms/kysely/core/errors").DatabaseError, never>;
398
- siteConfig: () => Effect.Effect<import("./types.js").DynamicConfigEntry<import("./types.js").StudioCMSSiteConfig> | undefined, import("@withstudiocms/kysely").DBCallbackFailure | import("@withstudiocms/kysely/core/errors").DatabaseError, never>;
348
+ readonly name: string;
349
+ readonly parent?: string | null | undefined;
350
+ } | undefined, import("@withstudiocms/kysely/client").DBCallbackFailure | import("@withstudiocms/kysely/core/errors").DatabaseError, never>;
351
+ folderTree: () => Effect.Effect<import("./types.js").FolderNode[], import("@withstudiocms/kysely/client").DBCallbackFailure | import("@withstudiocms/kysely/core/errors").DatabaseError | import("./modules/util/folderTree.js").FolderTreeError, never>;
352
+ folderList: () => Effect.Effect<import("./types.js").FolderListItem[], import("@withstudiocms/kysely/client").DBCallbackFailure | import("@withstudiocms/kysely/core/errors").DatabaseError, never>;
353
+ siteConfig: <T extends import("./types.js").StudioCMSSiteConfig>() => Effect.Effect<import("./types.js").DynamicConfigEntry<T> | undefined, import("effect/Cause").UnknownException | import("@withstudiocms/kysely/client").DBCallbackFailure | import("@withstudiocms/kysely/core/errors").DatabaseError, never>;
399
354
  latestVersion: () => Effect.Effect<{
400
355
  version: string;
401
356
  lastCacheUpdate: Date;
402
- }, import("effect/Cause").UnknownException | Error | import("effect/ParseResult").ParseError, never>;
357
+ }, import("effect/Cause").UnknownException | import("effect/ParseResult").ParseError | import("./modules/util/getFromNPM.js").GetFromNPMError, never>;
403
358
  pages: {
404
- (includeDrafts?: boolean, hideDefaultIndex?: boolean, metaOnly?: false, paginate?: import("./modules/get/index.js").PaginateInput): Effect.Effect<import("./types.js").CombinedPageData[], import("effect/ParseResult").ParseError | import("@withstudiocms/kysely").DBCallbackFailure | import("@withstudiocms/kysely/core/errors").DatabaseError | import("./modules/util/folderTree.js").FolderTreeError | import("./modules/util/collectors.js").CollectorError | import("./modules/get/index.js").PaginateError, never>;
405
- (includeDrafts?: boolean, hideDefaultIndex?: boolean, metaOnly?: true, paginate?: import("./modules/get/index.js").PaginateInput): Effect.Effect<import("./types.js").MetaOnlyPageData[], import("effect/ParseResult").ParseError | import("@withstudiocms/kysely").DBCallbackFailure | import("@withstudiocms/kysely/core/errors").DatabaseError | import("./modules/util/folderTree.js").FolderTreeError | import("./modules/util/collectors.js").CollectorError | import("./modules/get/index.js").PaginateError, never>;
359
+ (includeDrafts?: boolean, metaOnly?: false, paginate?: import("./modules/get/index.js").PaginateInput): Effect.Effect<import("./types.js").CombinedPageData[], import("effect/ParseResult").ParseError | import("@withstudiocms/kysely/client").DBCallbackFailure | import("@withstudiocms/kysely/core/errors").DatabaseError | import("./modules/util/folderTree.js").FolderTreeError | import("./modules/util/collectors.js").CollectorError | import("./modules/get/index.js").PaginateError, never>;
360
+ (includeDrafts?: boolean, metaOnly?: true, paginate?: import("./modules/get/index.js").PaginateInput): Effect.Effect<import("./types.js").MetaOnlyPageData[], import("effect/ParseResult").ParseError | import("@withstudiocms/kysely/client").DBCallbackFailure | import("@withstudiocms/kysely/core/errors").DatabaseError | import("./modules/util/folderTree.js").FolderTreeError | import("./modules/util/collectors.js").CollectorError | import("./modules/get/index.js").PaginateError, never>;
406
361
  };
407
362
  page: {
408
363
  byId: {
409
- (id: string): Effect.Effect<import("./types.js").CombinedPageData | undefined, import("effect/ParseResult").ParseError | import("@withstudiocms/kysely").DBCallbackFailure | import("@withstudiocms/kysely/core/errors").DatabaseError | import("./modules/util/folderTree.js").FolderTreeError | import("./modules/util/collectors.js").CollectorError | import("./modules/get/index.js").PaginateError, never>;
410
- (id: string, metaOnly?: boolean): Effect.Effect<import("./types.js").MetaOnlyPageData | undefined, import("effect/ParseResult").ParseError | import("@withstudiocms/kysely").DBCallbackFailure | import("@withstudiocms/kysely/core/errors").DatabaseError | import("./modules/util/folderTree.js").FolderTreeError | import("./modules/util/collectors.js").CollectorError | import("./modules/get/index.js").PaginateError, never>;
364
+ (id: string): Effect.Effect<import("./types.js").CombinedPageData | undefined, import("effect/ParseResult").ParseError | import("@withstudiocms/kysely/client").DBCallbackFailure | import("@withstudiocms/kysely/core/errors").DatabaseError | import("./modules/util/folderTree.js").FolderTreeError | import("./modules/util/collectors.js").CollectorError | import("./modules/get/index.js").PaginateError, never>;
365
+ (id: string, metaOnly?: boolean): Effect.Effect<import("./types.js").MetaOnlyPageData | undefined, import("effect/ParseResult").ParseError | import("@withstudiocms/kysely/client").DBCallbackFailure | import("@withstudiocms/kysely/core/errors").DatabaseError | import("./modules/util/folderTree.js").FolderTreeError | import("./modules/util/collectors.js").CollectorError | import("./modules/get/index.js").PaginateError, never>;
411
366
  };
412
367
  bySlug: {
413
- (slug: string): Effect.Effect<import("./types.js").CombinedPageData | undefined, import("effect/ParseResult").ParseError | import("@withstudiocms/kysely").DBCallbackFailure | import("@withstudiocms/kysely/core/errors").DatabaseError | import("./modules/util/folderTree.js").FolderTreeError | import("./modules/util/collectors.js").CollectorError | import("./modules/get/index.js").PaginateError, never>;
414
- (slug: string, metaOnly?: boolean): Effect.Effect<import("./types.js").MetaOnlyPageData | undefined, import("effect/ParseResult").ParseError | import("@withstudiocms/kysely").DBCallbackFailure | import("@withstudiocms/kysely/core/errors").DatabaseError | import("./modules/util/folderTree.js").FolderTreeError | import("./modules/util/collectors.js").CollectorError | import("./modules/get/index.js").PaginateError, never>;
368
+ (slug: string): Effect.Effect<import("./types.js").CombinedPageData | undefined, import("effect/ParseResult").ParseError | import("@withstudiocms/kysely/client").DBCallbackFailure | import("@withstudiocms/kysely/core/errors").DatabaseError | import("./modules/util/folderTree.js").FolderTreeError | import("./modules/util/collectors.js").CollectorError | import("./modules/get/index.js").PaginateError, never>;
369
+ (slug: string, metaOnly?: boolean): Effect.Effect<import("./types.js").MetaOnlyPageData | undefined, import("effect/ParseResult").ParseError | import("@withstudiocms/kysely/client").DBCallbackFailure | import("@withstudiocms/kysely/core/errors").DatabaseError | import("./modules/util/folderTree.js").FolderTreeError | import("./modules/util/collectors.js").CollectorError | import("./modules/get/index.js").PaginateError, never>;
415
370
  };
416
371
  };
417
372
  packagePages: {
418
- (packageName: string): Effect.Effect<import("./types.js").CombinedPageData[], import("effect/ParseResult").ParseError | import("@withstudiocms/kysely").DBCallbackFailure | import("@withstudiocms/kysely/core/errors").DatabaseError | import("./modules/util/folderTree.js").FolderTreeError | import("./modules/util/collectors.js").CollectorError | import("./modules/get/index.js").PaginateError, never>;
419
- (packageName: string, metaOnly?: boolean): Effect.Effect<import("./types.js").MetaOnlyPageData[], import("effect/ParseResult").ParseError | import("@withstudiocms/kysely").DBCallbackFailure | import("@withstudiocms/kysely/core/errors").DatabaseError | import("./modules/util/folderTree.js").FolderTreeError | import("./modules/util/collectors.js").CollectorError | import("./modules/get/index.js").PaginateError, never>;
373
+ (packageName: string): Effect.Effect<import("./types.js").CombinedPageData[], import("effect/ParseResult").ParseError | import("@withstudiocms/kysely/client").DBCallbackFailure | import("@withstudiocms/kysely/core/errors").DatabaseError | import("./modules/util/folderTree.js").FolderTreeError | import("./modules/util/collectors.js").CollectorError | import("./modules/get/index.js").PaginateError, never>;
374
+ (packageName: string, metaOnly?: boolean): Effect.Effect<import("./types.js").MetaOnlyPageData[], import("effect/ParseResult").ParseError | import("@withstudiocms/kysely/client").DBCallbackFailure | import("@withstudiocms/kysely/core/errors").DatabaseError | import("./modules/util/folderTree.js").FolderTreeError | import("./modules/util/collectors.js").CollectorError | import("./modules/get/index.js").PaginateError, never>;
420
375
  };
421
376
  folderPages: {
422
- (idOrName: string, includeDrafts?: boolean, hideDefaultIndex?: boolean, metaOnly?: false, paginate?: import("./modules/get/index.js").PaginateInput): Effect.Effect<import("./types.js").CombinedPageData[], import("effect/ParseResult").ParseError | import("@withstudiocms/kysely").DBCallbackFailure | import("@withstudiocms/kysely/core/errors").DatabaseError | import("./modules/util/folderTree.js").FolderTreeError | import("./modules/util/collectors.js").CollectorError | import("./modules/get/index.js").PaginateError, never>;
423
- (idOrName: string, includeDrafts?: boolean, hideDefaultIndex?: boolean, metaOnly?: true, paginate?: import("./modules/get/index.js").PaginateInput): Effect.Effect<import("./types.js").MetaOnlyPageData[], import("effect/ParseResult").ParseError | import("@withstudiocms/kysely").DBCallbackFailure | import("@withstudiocms/kysely/core/errors").DatabaseError | import("./modules/util/folderTree.js").FolderTreeError | import("./modules/util/collectors.js").CollectorError | import("./modules/get/index.js").PaginateError, never>;
377
+ (idOrName: string, includeDrafts?: boolean, metaOnly?: false, paginate?: import("./modules/get/index.js").PaginateInput): Effect.Effect<import("./types.js").CombinedPageData[], import("effect/ParseResult").ParseError | import("@withstudiocms/kysely/client").DBCallbackFailure | import("@withstudiocms/kysely/core/errors").DatabaseError | import("./modules/util/folderTree.js").FolderTreeError | import("./modules/util/collectors.js").CollectorError | import("./modules/get/index.js").PaginateError, never>;
378
+ (idOrName: string, includeDrafts?: boolean, metaOnly?: true, paginate?: import("./modules/get/index.js").PaginateInput): Effect.Effect<import("./types.js").MetaOnlyPageData[], import("effect/ParseResult").ParseError | import("@withstudiocms/kysely/client").DBCallbackFailure | import("@withstudiocms/kysely/core/errors").DatabaseError | import("./modules/util/folderTree.js").FolderTreeError | import("./modules/util/collectors.js").CollectorError | import("./modules/get/index.js").PaginateError, never>;
379
+ };
380
+ pageFolderTree: (excludeDrafts?: boolean) => Effect.Effect<import("./types.js").FolderNode[], import("effect/ParseResult").ParseError | import("@withstudiocms/kysely/client").DBCallbackFailure | import("@withstudiocms/kysely/core/errors").QueryParseError | import("@withstudiocms/kysely/core/errors").QueryError | import("@withstudiocms/kysely/core/errors").NotFoundError | import("./modules/util/folderTree.js").FolderTreeError | import("./modules/util/collectors.js").CollectorError | import("./modules/get/index.js").PaginateError, never>;
381
+ categories: {
382
+ getAll: () => Effect.Effect<readonly {
383
+ readonly id: number;
384
+ readonly name: string;
385
+ readonly description: string;
386
+ readonly parent?: number | null | undefined;
387
+ readonly slug: string;
388
+ readonly meta: {
389
+ readonly [x: string]: unknown;
390
+ };
391
+ }[], import("@withstudiocms/kysely/client").DBCallbackFailure | import("@withstudiocms/kysely/core/errors").DatabaseError, never>;
392
+ byId: (categoryId: number) => Effect.Effect<{
393
+ readonly id: number;
394
+ readonly name: string;
395
+ readonly description: string;
396
+ readonly parent?: number | null | undefined;
397
+ readonly slug: string;
398
+ readonly meta: {
399
+ readonly [x: string]: unknown;
400
+ };
401
+ } | undefined, import("@withstudiocms/kysely/client").DBCallbackFailure | import("@withstudiocms/kysely/core/errors").DatabaseError, never>;
402
+ bySlug: (slug: string) => Effect.Effect<{
403
+ readonly id: number;
404
+ readonly name: string;
405
+ readonly description: string;
406
+ readonly parent?: number | null | undefined;
407
+ readonly slug: string;
408
+ readonly meta: {
409
+ readonly [x: string]: unknown;
410
+ };
411
+ } | undefined, import("@withstudiocms/kysely/client").DBCallbackFailure | import("@withstudiocms/kysely/core/errors").DatabaseError, never>;
412
+ };
413
+ tags: {
414
+ getAll: () => Effect.Effect<readonly {
415
+ readonly id: number;
416
+ readonly name: string;
417
+ readonly description: string;
418
+ readonly slug: string;
419
+ readonly meta: {
420
+ readonly [x: string]: unknown;
421
+ };
422
+ }[], import("@withstudiocms/kysely/client").DBCallbackFailure | import("@withstudiocms/kysely/core/errors").DatabaseError, never>;
423
+ byId: (tagId: number) => Effect.Effect<{
424
+ readonly id: number;
425
+ readonly name: string;
426
+ readonly description: string;
427
+ readonly slug: string;
428
+ readonly meta: {
429
+ readonly [x: string]: unknown;
430
+ };
431
+ } | undefined, import("@withstudiocms/kysely/client").DBCallbackFailure | import("@withstudiocms/kysely/core/errors").DatabaseError, never>;
432
+ bySlug: (slug: string) => Effect.Effect<{
433
+ readonly id: number;
434
+ readonly name: string;
435
+ readonly description: string;
436
+ readonly slug: string;
437
+ readonly meta: {
438
+ readonly [x: string]: unknown;
439
+ };
440
+ } | undefined, import("@withstudiocms/kysely/client").DBCallbackFailure | import("@withstudiocms/kysely/core/errors").DatabaseError, never>;
424
441
  };
425
- pageFolderTree: (hideDefaultIndex?: boolean) => Effect.Effect<import("./types.js").FolderNode[], import("effect/ParseResult").ParseError | import("@withstudiocms/kysely").DBCallbackFailure | import("@withstudiocms/kysely/core/errors").QueryParseError | import("@withstudiocms/kysely/core/errors").QueryError | import("@withstudiocms/kysely/core/errors").NotFoundError | import("./modules/util/folderTree.js").FolderTreeError | import("./modules/util/collectors.js").CollectorError | import("./modules/get/index.js").PaginateError, never>;
426
442
  };
427
443
  INIT: {
428
- siteConfig: (data: import("./types.js").ConfigFinal<import("./types.js").StudioCMSSiteConfig>) => Effect.Effect<import("./types.js").DynamicConfigEntry<import("./types.js").StudioCMSSiteConfig>, import("@withstudiocms/kysely").DBCallbackFailure | import("@withstudiocms/kysely/core/errors").DatabaseError, never>;
444
+ siteConfig: (data: import("./types.js").ConfigFinal<import("./types.js").StudioCMSSiteConfig>) => Effect.Effect<import("./types.js").DynamicConfigEntry<import("./types.js").StudioCMSSiteConfig>, import("@withstudiocms/kysely/client").DBCallbackFailure | import("@withstudiocms/kysely/core/errors").DatabaseError, never>;
429
445
  ghostUser: () => Effect.Effect<{
430
- readonly name: string;
431
446
  readonly id: string;
432
- readonly url: string | null | undefined;
433
- readonly email: string | null | undefined;
434
- readonly avatar: string | null | undefined;
447
+ readonly url?: string | null | undefined;
448
+ readonly name: string;
449
+ readonly email?: string | null | undefined;
450
+ readonly avatar?: string | null | undefined;
435
451
  readonly username: string;
436
- readonly password: string | null | undefined;
452
+ readonly password?: string | null | undefined;
437
453
  readonly updatedAt: Date;
438
454
  readonly createdAt: Date;
439
455
  readonly emailVerified: boolean;
440
- readonly notifications: string | null | undefined;
441
- }, import("@withstudiocms/kysely").DBCallbackFailure | import("@withstudiocms/kysely/core/errors").DatabaseError, never>;
456
+ readonly notifications?: string | null | undefined;
457
+ }, import("@withstudiocms/kysely/client").DBCallbackFailure | import("@withstudiocms/kysely/core/errors").DatabaseError, never>;
442
458
  };
443
459
  MIDDLEWARES: {
444
- verifyCache: () => Effect.Effect<void, import("effect/ParseResult").ParseError | import("@withstudiocms/kysely").DBCallbackFailure | import("@withstudiocms/kysely/core/errors").QueryParseError | import("@withstudiocms/kysely/core/errors").QueryError | import("@withstudiocms/kysely/core/errors").NotFoundError | import("./modules/util/folderTree.js").FolderTreeError | import("./modules/util/collectors.js").CollectorError | import("./modules/get/index.js").PaginateError, never>;
460
+ verifyCache: () => Effect.Effect<void, import("effect/Cause").UnknownException | import("effect/ParseResult").ParseError | import("@withstudiocms/kysely/client").DBCallbackFailure | import("@withstudiocms/kysely/core/errors").QueryParseError | import("@withstudiocms/kysely/core/errors").QueryError | import("@withstudiocms/kysely/core/errors").NotFoundError | import("./modules/util/folderTree.js").FolderTreeError | import("./modules/util/collectors.js").CollectorError | import("./modules/get/index.js").PaginateError, never>;
445
461
  };
446
462
  notificationSettings: {
447
463
  site: {
448
- get: () => Effect.Effect<import("./types.js").DynamicConfigEntry<import("./types.js").StudioCMSNotificationSettings>, import("@withstudiocms/kysely").DBCallbackFailure | import("@withstudiocms/kysely/core/errors").DatabaseError, never>;
449
- update: (settings: Omit<import("./types.js").StudioCMSNotificationSettings, "_config_version">) => Effect.Effect<import("./types.js").DynamicConfigEntry<import("./types.js").StudioCMSNotificationSettings>, import("@withstudiocms/kysely").DBCallbackFailure | import("@withstudiocms/kysely/core/errors").DatabaseError, never>;
464
+ get: () => Effect.Effect<import("./types.js").DynamicConfigEntry<import("./types.js").StudioCMSNotificationSettings>, import("@withstudiocms/kysely/client").DBCallbackFailure | import("@withstudiocms/kysely/core/errors").DatabaseError, never>;
465
+ update: (settings: Omit<import("./types.js").StudioCMSNotificationSettings, "_config_version">) => Effect.Effect<import("./types.js").DynamicConfigEntry<import("./types.js").StudioCMSNotificationSettings>, import("@withstudiocms/kysely/client").DBCallbackFailure | import("@withstudiocms/kysely/core/errors").DatabaseError, never>;
450
466
  };
451
467
  };
452
468
  PLUGINS: {
453
469
  usePluginData: {
454
470
  <T extends import("effect/Schema").Struct<import("effect/Schema").Struct.Fields> | object, R extends object = T extends import("effect/Schema").Struct<any> ? import("./types.js").RecursiveSimplifyMutable<T["Type"]> : T>(pluginId: string, opts?: import("./types.js").UsePluginDataOptsBase<T>): {
455
- getEntries: (filter?: (data: import("./types.js").PluginDataEntry<R>[]) => import("./types.js").PluginDataEntry<R>[]) => Effect.Effect<import("./types.js").PluginDataEntry<R>[], Error, never>;
471
+ getEntries: (filter?: (data: import("./types.js").PluginDataEntry<R>[]) => import("./types.js").PluginDataEntry<R>[]) => Effect.Effect<import("./types.js").PluginDataEntry<R>[], import("./errors.js").StudioCMSSDKError, never>;
456
472
  getEntry: (id: string) => {
457
473
  generatedId: () => Effect.Effect<string, never, never>;
458
- select: () => Effect.Effect<import("./types.js").PluginDataEntry<R> | undefined, Error, never>;
459
- insert: (data: R) => Effect.Effect<import("./types.js").PluginDataEntry<R>, Error, never>;
460
- update: (data: R) => Effect.Effect<import("./types.js").PluginDataEntry<R>, Error, never>;
474
+ select: () => Effect.Effect<import("./types.js").PluginDataEntry<R> | undefined, import("./errors.js").StudioCMSSDKError, never>;
475
+ insert: (data: R) => Effect.Effect<import("./types.js").PluginDataEntry<R>, import("./errors.js").StudioCMSSDKError, never>;
476
+ update: (data: R) => Effect.Effect<import("./types.js").PluginDataEntry<R>, import("./errors.js").StudioCMSSDKError, never>;
461
477
  };
462
478
  };
463
479
  <T extends import("effect/Schema").Struct<import("effect/Schema").Struct.Fields> | object, R extends object = T extends import("effect/Schema").Struct<any> ? import("./types.js").RecursiveSimplifyMutable<T["Type"]> : T>(pluginId: string, opts?: import("./types.js").UsePluginDataOpts<T>): {
464
480
  generatedId: () => Effect.Effect<string, never, never>;
465
- select: () => Effect.Effect<import("./types.js").PluginDataEntry<R> | undefined, Error, never>;
466
- insert: (data: R) => Effect.Effect<import("./types.js").PluginDataEntry<R>, Error, never>;
467
- update: (data: R) => Effect.Effect<import("./types.js").PluginDataEntry<R>, Error, never>;
481
+ select: () => Effect.Effect<import("./types.js").PluginDataEntry<R> | undefined, import("./errors.js").StudioCMSSDKError, never>;
482
+ insert: (data: R) => Effect.Effect<import("./types.js").PluginDataEntry<R>, import("./errors.js").StudioCMSSDKError, never>;
483
+ update: (data: R) => Effect.Effect<import("./types.js").PluginDataEntry<R>, import("./errors.js").StudioCMSSDKError, never>;
468
484
  };
469
485
  };
470
- initPluginDataCache: (BATCH_SIZE?: number | undefined) => Effect.Effect<void, import("@withstudiocms/kysely").DBCallbackFailure | import("@withstudiocms/kysely/core/errors").DatabaseError, never>;
486
+ initPluginDataCache: (BATCH_SIZE?: number | undefined) => Effect.Effect<void, import("@withstudiocms/kysely/client").DBCallbackFailure | import("@withstudiocms/kysely/core/errors").DatabaseError, never>;
471
487
  clearPluginDataCache: () => Effect.Effect<void, never, never>;
472
488
  InferType: {
473
489
  new <S extends import("effect/Schema").Struct<any>, R = import("./types.js").RecursiveSimplifyMutable<S["Type"]>>(schema: S): {
@@ -480,23 +496,23 @@ export declare const StudioCMSSDKCore: Effect.Effect<{
480
496
  POST: {
481
497
  databaseEntry: {
482
498
  pages: (pageData: import("./modules/post/index.js").OptionalId<string, {
483
- readonly tags: string;
484
499
  readonly id: string;
485
- readonly description: string;
486
- readonly slug: string;
487
- readonly contentLang: string;
488
500
  readonly updatedAt: string;
501
+ readonly description: string;
489
502
  readonly package: string;
490
503
  readonly title: string;
491
504
  readonly showOnNav: boolean;
492
505
  readonly publishedAt: string;
493
- readonly heroImage: string | null | undefined;
506
+ readonly slug: string;
507
+ readonly contentLang: string;
508
+ readonly heroImage?: string | null | undefined;
494
509
  readonly categories: string;
510
+ readonly tags: string;
495
511
  readonly authorId: string;
496
512
  readonly contributorIds: string;
497
513
  readonly showAuthor: boolean;
498
514
  readonly showContributors: boolean;
499
- readonly parentFolder: string | null | undefined;
515
+ readonly parentFolder?: string | null | undefined;
500
516
  readonly draft: boolean;
501
517
  readonly augments: string;
502
518
  }>, pageContent: import("./types.js").CombinedInsertContent) => Effect.Effect<{
@@ -506,94 +522,94 @@ export declare const StudioCMSSDKCore: Effect.Effect<{
506
522
  pageContent: {
507
523
  readonly id: string;
508
524
  };
509
- }, import("@withstudiocms/kysely").DBCallbackFailure | import("@withstudiocms/kysely/core/errors").DatabaseError, never>;
525
+ }, import("@withstudiocms/kysely/client").DBCallbackFailure | import("@withstudiocms/kysely/core/errors").DatabaseError, never>;
510
526
  pageContent: (input: {
511
527
  readonly id: string;
512
- readonly contentId: string;
513
528
  readonly contentLang: string;
529
+ readonly contentId: string;
514
530
  readonly content: string;
515
531
  }) => Effect.Effect<{
516
532
  readonly id: string;
517
- }, import("@withstudiocms/kysely").DBCallbackFailure | import("@withstudiocms/kysely/core/errors").DatabaseError, never>;
533
+ }, import("@withstudiocms/kysely/client").DBCallbackFailure | import("@withstudiocms/kysely/core/errors").DatabaseError, never>;
518
534
  tags: (tag: import("./modules/post/index.js").OptionalId<number, {
519
- readonly name: string;
520
535
  readonly id: number;
536
+ readonly name: string;
521
537
  readonly description: string;
522
538
  readonly slug: string;
523
539
  readonly meta: string;
524
540
  }>) => Effect.Effect<{
525
541
  readonly id: number;
526
- }, import("@withstudiocms/kysely").DBCallbackFailure | import("@withstudiocms/kysely/core/errors").DatabaseError | import("./modules/util/generators.js").GeneratorError, never>;
542
+ }, import("@withstudiocms/kysely/client").DBCallbackFailure | import("@withstudiocms/kysely/core/errors").DatabaseError | import("./modules/util/generators.js").GeneratorError, never>;
527
543
  categories: (category: import("./modules/post/index.js").OptionalId<number, {
528
- readonly name: string;
529
544
  readonly id: number;
530
- readonly parent: number | null | undefined;
545
+ readonly name: string;
531
546
  readonly description: string;
547
+ readonly parent?: number | null | undefined;
532
548
  readonly slug: string;
533
549
  readonly meta: string;
534
550
  }>) => Effect.Effect<{
535
551
  readonly id: number;
536
- }, import("@withstudiocms/kysely").DBCallbackFailure | import("@withstudiocms/kysely/core/errors").DatabaseError | import("./modules/util/generators.js").GeneratorError, never>;
552
+ }, import("@withstudiocms/kysely/client").DBCallbackFailure | import("@withstudiocms/kysely/core/errors").DatabaseError | import("./modules/util/generators.js").GeneratorError, never>;
537
553
  permissions: (userId: string, rank: "owner" | "admin" | "editor" | "visitor" | "unknown") => Effect.Effect<{
538
554
  readonly user: string;
539
555
  readonly rank: "owner" | "admin" | "editor" | "visitor" | "unknown";
540
- }, import("@withstudiocms/kysely").DBCallbackFailure | import("@withstudiocms/kysely/core/errors").DatabaseError, never>;
556
+ }, import("@withstudiocms/kysely/client").DBCallbackFailure | import("@withstudiocms/kysely/core/errors").DatabaseError, never>;
541
557
  diffTracking: (data: import("./modules/post/index.js").OptionalId<string, {
542
558
  readonly id: string;
543
559
  readonly userId: string;
544
- readonly pageMetaData: string;
545
560
  readonly pageId: string;
546
561
  readonly timestamp: string | undefined;
562
+ readonly pageMetaData: string;
547
563
  readonly pageContentStart: string;
548
- readonly diff: string | null | undefined;
564
+ readonly diff?: string | null | undefined;
549
565
  }>) => Effect.Effect<{
550
566
  readonly id: string;
551
567
  readonly userId: string;
568
+ readonly pageId: string;
569
+ readonly timestamp: Date;
552
570
  readonly pageMetaData: {
553
571
  readonly [x: string]: unknown;
554
572
  };
555
- readonly pageId: string;
556
- readonly timestamp: Date;
557
573
  readonly pageContentStart: string;
558
- readonly diff: string | null | undefined;
559
- }, import("@withstudiocms/kysely").DBCallbackFailure | import("@withstudiocms/kysely/core/errors").DatabaseError, never>;
574
+ readonly diff?: string | null | undefined;
575
+ }, import("@withstudiocms/kysely/client").DBCallbackFailure | import("@withstudiocms/kysely/core/errors").DatabaseError, never>;
560
576
  folder: (data: import("./modules/post/index.js").OptionalId<string, {
561
- readonly name: string;
562
577
  readonly id: string;
563
- readonly parent: string | null | undefined;
564
- }>) => Effect.Effect<{
565
578
  readonly name: string;
579
+ readonly parent?: string | null | undefined;
580
+ }>) => Effect.Effect<{
566
581
  readonly id: string;
567
- readonly parent: string | null | undefined;
568
- }, import("@withstudiocms/kysely").DBCallbackFailure | import("@withstudiocms/kysely/core/errors").DatabaseError, never>;
582
+ readonly name: string;
583
+ readonly parent?: string | null | undefined;
584
+ }, import("@withstudiocms/kysely/client").DBCallbackFailure | import("@withstudiocms/kysely/core/errors").DatabaseError, never>;
569
585
  };
570
586
  databaseEntries: {
571
587
  tags: (tags: import("./modules/post/index.js").OptionalId<number, {
572
- readonly name: string;
573
588
  readonly id: number;
589
+ readonly name: string;
574
590
  readonly description: string;
575
591
  readonly slug: string;
576
592
  readonly meta: string;
577
593
  }>[]) => Effect.Effect<{
578
594
  readonly id: number;
579
- }[], import("@withstudiocms/kysely").DBCallbackFailure | import("@withstudiocms/kysely/core/errors").DatabaseError | import("./modules/util/generators.js").GeneratorError, never>;
595
+ }[], import("@withstudiocms/kysely/client").DBCallbackFailure | import("@withstudiocms/kysely/core/errors").DatabaseError | import("./modules/util/generators.js").GeneratorError, never>;
580
596
  categories: (categories: import("./modules/post/index.js").OptionalId<number, {
581
- readonly name: string;
582
597
  readonly id: number;
583
- readonly parent: number | null | undefined;
598
+ readonly name: string;
584
599
  readonly description: string;
600
+ readonly parent?: number | null | undefined;
585
601
  readonly slug: string;
586
602
  readonly meta: string;
587
603
  }>[]) => Effect.Effect<{
588
604
  readonly id: number;
589
- }[], import("@withstudiocms/kysely").DBCallbackFailure | import("@withstudiocms/kysely/core/errors").DatabaseError | import("./modules/util/generators.js").GeneratorError, never>;
605
+ }[], import("@withstudiocms/kysely/client").DBCallbackFailure | import("@withstudiocms/kysely/core/errors").DatabaseError | import("./modules/util/generators.js").GeneratorError, never>;
590
606
  permissions: (permissions: {
591
607
  userId: string;
592
608
  rank: "owner" | "admin" | "editor" | "visitor" | "unknown";
593
609
  }[]) => Effect.Effect<{
594
610
  readonly user: string;
595
611
  readonly rank: "owner" | "admin" | "editor" | "visitor" | "unknown";
596
- }[], import("@withstudiocms/kysely").DBCallbackFailure | import("@withstudiocms/kysely/core/errors").DatabaseError, never>;
612
+ }[], import("@withstudiocms/kysely/client").DBCallbackFailure | import("@withstudiocms/kysely/core/errors").DatabaseError, never>;
597
613
  pages: (pages: import("./modules/post/index.js").MultiPageInsert) => Effect.Effect<{
598
614
  pageData: {
599
615
  readonly id: string;
@@ -601,366 +617,230 @@ export declare const StudioCMSSDKCore: Effect.Effect<{
601
617
  pageContent: {
602
618
  readonly id: string;
603
619
  };
604
- }[], import("@withstudiocms/kysely").DBCallbackFailure | import("@withstudiocms/kysely/core/errors").DatabaseError, never>;
620
+ }[], import("@withstudiocms/kysely/client").DBCallbackFailure | import("@withstudiocms/kysely/core/errors").DatabaseError, never>;
605
621
  };
606
622
  folder: (data: import("./modules/post/index.js").OptionalId<string, {
607
- readonly name: string;
608
623
  readonly id: string;
609
- readonly parent: string | null | undefined;
610
- }>) => Effect.Effect<{
611
624
  readonly name: string;
625
+ readonly parent?: string | null | undefined;
626
+ }>) => Effect.Effect<{
612
627
  readonly id: string;
613
- readonly parent: string | null | undefined;
614
- }, import("@withstudiocms/kysely").DBCallbackFailure | import("@withstudiocms/kysely/core/errors").DatabaseError | import("./modules/util/folderTree.js").FolderTreeError, never>;
628
+ readonly name: string;
629
+ readonly parent?: string | null | undefined;
630
+ }, import("@withstudiocms/kysely/client").DBCallbackFailure | import("@withstudiocms/kysely/core/errors").DatabaseError | import("./modules/util/folderTree.js").FolderTreeError, never>;
615
631
  page: (args_0: {
616
- pageData: import("./modules/post/index.js").OptionalId<string, typeof import("@withstudiocms/kysely").StudioCMSPageData["Insert"]["Type"]>;
632
+ pageData: import("./modules/post/index.js").OptionalId<string, typeof import("./tables.js").StudioCMSPageData["Insert"]["Type"]>;
617
633
  pageContent: import("./types.js").CombinedInsertContent;
618
- }) => Effect.Effect<import("./types.js").CombinedPageData | undefined, import("effect/ParseResult").ParseError | import("@withstudiocms/kysely").DBCallbackFailure | import("@withstudiocms/kysely/core/errors").QueryParseError | import("@withstudiocms/kysely/core/errors").QueryError | import("@withstudiocms/kysely/core/errors").NotFoundError | import("./modules/util/folderTree.js").FolderTreeError | import("./modules/util/collectors.js").CollectorError | import("./modules/get/index.js").PaginateError, never>;
634
+ }) => Effect.Effect<import("./types.js").CombinedPageData | undefined, import("effect/ParseResult").ParseError | import("@withstudiocms/kysely/client").DBCallbackFailure | import("@withstudiocms/kysely/core/errors").QueryParseError | import("@withstudiocms/kysely/core/errors").QueryError | import("@withstudiocms/kysely/core/errors").NotFoundError | import("./modules/util/folderTree.js").FolderTreeError | import("./modules/util/collectors.js").CollectorError | import("./modules/get/index.js").PaginateError, never>;
619
635
  };
620
636
  resetTokenBucket: {
621
637
  new: (userId: string) => Effect.Effect<{
622
638
  readonly id: string;
623
639
  readonly userId: string;
624
640
  readonly token: string;
625
- }, import("@withstudiocms/kysely").DBCallbackFailure | import("@withstudiocms/kysely/core/errors").DatabaseError | import("./modules/util/generators.js").GeneratorError, never>;
626
- delete: (input: string) => Effect.Effect<import("kysely").DeleteResult[], import("@withstudiocms/kysely").DBCallbackFailure | import("@withstudiocms/kysely/core/errors").DatabaseError, never>;
627
- check: (token: string) => Effect.Effect<boolean, import("@withstudiocms/kysely").DBCallbackFailure | import("@withstudiocms/kysely/core/errors").DatabaseError | import("./modules/util/generators.js").GeneratorError, never>;
641
+ }, import("@withstudiocms/kysely/client").DBCallbackFailure | import("@withstudiocms/kysely/core/errors").DatabaseError | import("./modules/util/generators.js").GeneratorError, never>;
642
+ delete: (input: string) => Effect.Effect<import("kysely").DeleteResult[], import("@withstudiocms/kysely/client").DBCallbackFailure | import("@withstudiocms/kysely/core/errors").DatabaseError, never>;
643
+ check: (token: string) => Effect.Effect<boolean, import("@withstudiocms/kysely/client").DBCallbackFailure | import("@withstudiocms/kysely/core/errors").DatabaseError | import("./modules/util/generators.js").GeneratorError, never>;
628
644
  };
629
645
  REST_API: {
630
646
  tokens: {
631
647
  get: (input: string) => Effect.Effect<readonly {
632
- readonly key: string;
633
648
  readonly id: string;
634
- readonly description: string | null | undefined;
635
649
  readonly userId: string;
650
+ readonly key: string;
636
651
  readonly creationDate: Date;
637
- }[], import("@withstudiocms/kysely").DBCallbackFailure | import("@withstudiocms/kysely/core/errors").DatabaseError, never>;
652
+ readonly description?: string | null | undefined;
653
+ }[], import("@withstudiocms/kysely/client").DBCallbackFailure | import("@withstudiocms/kysely/core/errors").DatabaseError, never>;
638
654
  new: (userId: string, description: string) => Effect.Effect<{
639
- readonly key: string;
640
655
  readonly id: string;
641
- readonly description: string | null | undefined;
642
656
  readonly userId: string;
657
+ readonly key: string;
643
658
  readonly creationDate: Date;
644
- }, import("@withstudiocms/kysely").DBCallbackFailure | import("@withstudiocms/kysely/core/errors").DatabaseError | import("./modules/util/generators.js").GeneratorError, never>;
659
+ readonly description?: string | null | undefined;
660
+ }, import("@withstudiocms/kysely/client").DBCallbackFailure | import("@withstudiocms/kysely/core/errors").DatabaseError | import("./modules/util/generators.js").GeneratorError, never>;
645
661
  delete: (input: {
646
662
  readonly userId: string;
647
663
  readonly tokenId: string;
648
- }) => Effect.Effect<import("kysely").DeleteResult[], import("@withstudiocms/kysely").DBCallbackFailure | import("@withstudiocms/kysely/core/errors").DatabaseError, never>;
664
+ }) => Effect.Effect<import("kysely").DeleteResult[], import("@withstudiocms/kysely/client").DBCallbackFailure | import("@withstudiocms/kysely/core/errors").DatabaseError, never>;
649
665
  verify: (key: string) => Effect.Effect<false | {
650
666
  userId: string;
651
667
  key: string;
652
668
  rank: "owner" | "admin" | "editor" | "visitor" | "unknown";
653
- }, import("@withstudiocms/kysely").DBCallbackFailure | import("@withstudiocms/kysely/core/errors").DatabaseError, never>;
669
+ }, import("@withstudiocms/kysely/client").DBCallbackFailure | import("@withstudiocms/kysely/core/errors").DatabaseError, never>;
654
670
  };
655
671
  };
656
672
  UPDATE: {
657
673
  pageContent: (input: {
658
674
  readonly id: string;
659
- readonly contentId: string;
660
675
  readonly contentLang: string;
676
+ readonly contentId: string;
661
677
  readonly content: string;
662
678
  }) => Effect.Effect<{
663
679
  readonly id: string;
664
- readonly contentId: string;
665
680
  readonly contentLang: string;
681
+ readonly contentId: string;
666
682
  readonly content: string;
667
- }, import("@withstudiocms/kysely").DBCallbackFailure | import("@withstudiocms/kysely/core/errors").DatabaseError, never>;
683
+ }, import("@withstudiocms/kysely/client").DBCallbackFailure | import("@withstudiocms/kysely/core/errors").DatabaseError, never>;
668
684
  tags: (input: {
669
- readonly name: string;
670
685
  readonly id: number;
686
+ readonly name: string;
671
687
  readonly description: string;
672
688
  readonly slug: string;
673
689
  readonly meta: string;
674
690
  }) => Effect.Effect<{
675
- readonly name: string;
676
691
  readonly id: number;
692
+ readonly name: string;
677
693
  readonly description: string;
678
694
  readonly slug: string;
679
695
  readonly meta: {
680
696
  readonly [x: string]: unknown;
681
697
  };
682
- }, import("@withstudiocms/kysely").DBCallbackFailure | import("@withstudiocms/kysely/core/errors").DatabaseError, never>;
698
+ }, import("@withstudiocms/kysely/client").DBCallbackFailure | import("@withstudiocms/kysely/core/errors").DatabaseError, never>;
683
699
  categories: (input: {
684
- readonly parent?: number | null | undefined;
685
- readonly name: string;
686
700
  readonly id: number;
701
+ readonly name: string;
687
702
  readonly description: string;
703
+ readonly parent?: number | null | undefined;
688
704
  readonly slug: string;
689
705
  readonly meta: string;
690
706
  }) => Effect.Effect<{
691
- readonly name: string;
692
707
  readonly id: number;
693
- readonly parent: number | null | undefined;
708
+ readonly name: string;
694
709
  readonly description: string;
710
+ readonly parent?: number | null | undefined;
695
711
  readonly slug: string;
696
712
  readonly meta: {
697
713
  readonly [x: string]: unknown;
698
714
  };
699
- }, import("@withstudiocms/kysely").DBCallbackFailure | import("@withstudiocms/kysely/core/errors").DatabaseError, never>;
715
+ }, import("@withstudiocms/kysely/client").DBCallbackFailure | import("@withstudiocms/kysely/core/errors").DatabaseError, never>;
700
716
  permissions: (input: {
701
717
  readonly user: string;
702
718
  readonly rank: "owner" | "admin" | "editor" | "visitor" | "unknown";
703
719
  }) => Effect.Effect<{
704
720
  readonly user: string;
705
721
  readonly rank: "owner" | "admin" | "editor" | "visitor" | "unknown";
706
- }, import("@withstudiocms/kysely").DBCallbackFailure | import("@withstudiocms/kysely/core/errors").DatabaseError, never>;
707
- folderTree: Effect.Effect<import("./types.js").FolderNode[], import("@withstudiocms/kysely").DBCallbackFailure | import("@withstudiocms/kysely/core/errors").DatabaseError | import("./modules/util/folderTree.js").FolderTreeError, never>;
708
- folderList: Effect.Effect<import("./types.js").FolderListItem[], import("@withstudiocms/kysely").DBCallbackFailure | import("@withstudiocms/kysely/core/errors").DatabaseError, never>;
722
+ }, import("@withstudiocms/kysely/client").DBCallbackFailure | import("@withstudiocms/kysely/core/errors").DatabaseError, never>;
723
+ folderTree: Effect.Effect<import("./types.js").FolderNode[], import("@withstudiocms/kysely/client").DBCallbackFailure | import("@withstudiocms/kysely/core/errors").DatabaseError | import("./modules/util/folderTree.js").FolderTreeError, never>;
724
+ folderList: Effect.Effect<import("./types.js").FolderListItem[], import("@withstudiocms/kysely/client").DBCallbackFailure | import("@withstudiocms/kysely/core/errors").DatabaseError, never>;
709
725
  folder: (data: {
710
- readonly name: string;
711
726
  readonly id: string;
712
- readonly parent: string | null | undefined;
713
- }) => Effect.Effect<{
714
727
  readonly name: string;
728
+ readonly parent?: string | null | undefined;
729
+ }) => Effect.Effect<{
715
730
  readonly id: string;
716
- readonly parent: string | null | undefined;
717
- }, import("@withstudiocms/kysely").DBCallbackFailure | import("@withstudiocms/kysely/core/errors").DatabaseError | import("./modules/util/folderTree.js").FolderTreeError, never>;
731
+ readonly name: string;
732
+ readonly parent?: string | null | undefined;
733
+ }, import("@withstudiocms/kysely/client").DBCallbackFailure | import("@withstudiocms/kysely/core/errors").DatabaseError | import("./modules/util/folderTree.js").FolderTreeError, never>;
718
734
  latestVersion: () => Effect.Effect<{
719
735
  version: string;
720
736
  lastCacheUpdate: Date;
721
- }, import("effect/Cause").UnknownException | Error | import("effect/ParseResult").ParseError, never>;
722
- siteConfig: (data: import("./types.js").ConfigFinal<import("./types.js").StudioCMSSiteConfig>) => Effect.Effect<import("./types.js").DynamicConfigEntry<import("./types.js").StudioCMSSiteConfig>, import("@withstudiocms/kysely").DBCallbackFailure | import("@withstudiocms/kysely/core/errors").DatabaseError, never>;
737
+ }, import("effect/Cause").UnknownException | import("effect/ParseResult").ParseError | import("./modules/util/getFromNPM.js").GetFromNPMError, never>;
738
+ siteConfig: (data: import("./types.js").ConfigFinal<import("./types.js").StudioCMSSiteConfig>) => Effect.Effect<import("./types.js").DynamicConfigEntry<import("./types.js").StudioCMSSiteConfig>, import("@withstudiocms/kysely/client").DBCallbackFailure | import("@withstudiocms/kysely/core/errors").DatabaseError, never>;
723
739
  page: {
724
740
  byId: (pageId: string, data: {
725
741
  pageData: {
726
- readonly tags: string;
727
742
  readonly id: string;
728
- readonly description: string;
729
- readonly slug: string;
730
- readonly contentLang: string;
731
743
  readonly updatedAt: string;
744
+ readonly description: string;
732
745
  readonly package: string;
733
746
  readonly title: string;
734
747
  readonly showOnNav: boolean;
735
748
  readonly publishedAt: string;
736
- readonly heroImage: string | null | undefined;
749
+ readonly slug: string;
750
+ readonly contentLang: string;
751
+ readonly heroImage?: string | null | undefined;
737
752
  readonly categories: string;
753
+ readonly tags: string;
738
754
  readonly authorId: string;
739
755
  readonly contributorIds: string;
740
756
  readonly showAuthor: boolean;
741
757
  readonly showContributors: boolean;
742
- readonly parentFolder: string | null | undefined;
758
+ readonly parentFolder?: string | null | undefined;
743
759
  readonly draft: boolean;
744
760
  readonly augments: string;
745
761
  };
746
762
  pageContent: {
747
763
  readonly id: string;
748
- readonly contentId: string;
749
764
  readonly contentLang: string;
765
+ readonly contentId: string;
750
766
  readonly content: string;
751
767
  };
752
- }) => Effect.Effect<import("./types.js").CombinedPageData | undefined, import("effect/ParseResult").ParseError | import("@withstudiocms/kysely").DBCallbackFailure | import("@withstudiocms/kysely/core/errors").QueryParseError | import("@withstudiocms/kysely/core/errors").QueryError | import("@withstudiocms/kysely/core/errors").NotFoundError | import("./modules/util/folderTree.js").FolderTreeError | import("./modules/util/collectors.js").CollectorError | import("./modules/get/index.js").PaginateError, never>;
768
+ }) => Effect.Effect<import("./types.js").CombinedPageData | undefined, import("effect/ParseResult").ParseError | import("@withstudiocms/kysely/client").DBCallbackFailure | import("@withstudiocms/kysely/core/errors").QueryParseError | import("@withstudiocms/kysely/core/errors").QueryError | import("@withstudiocms/kysely/core/errors").NotFoundError | import("./modules/util/folderTree.js").FolderTreeError | import("./modules/util/collectors.js").CollectorError | import("./modules/get/index.js").PaginateError, never>;
753
769
  bySlug: (slug: string, data: {
754
770
  pageData: {
755
- readonly tags: string;
756
771
  readonly id: string;
757
- readonly description: string;
758
- readonly slug: string;
759
- readonly contentLang: string;
760
772
  readonly updatedAt: string;
773
+ readonly description: string;
761
774
  readonly package: string;
762
775
  readonly title: string;
763
776
  readonly showOnNav: boolean;
764
777
  readonly publishedAt: string;
765
- readonly heroImage: string | null | undefined;
778
+ readonly slug: string;
779
+ readonly contentLang: string;
780
+ readonly heroImage?: string | null | undefined;
766
781
  readonly categories: string;
782
+ readonly tags: string;
767
783
  readonly authorId: string;
768
784
  readonly contributorIds: string;
769
785
  readonly showAuthor: boolean;
770
786
  readonly showContributors: boolean;
771
- readonly parentFolder: string | null | undefined;
787
+ readonly parentFolder?: string | null | undefined;
772
788
  readonly draft: boolean;
773
789
  readonly augments: string;
774
790
  };
775
791
  pageContent: {
776
792
  readonly id: string;
777
- readonly contentId: string;
778
793
  readonly contentLang: string;
794
+ readonly contentId: string;
779
795
  readonly content: string;
780
796
  };
781
- }) => Effect.Effect<import("./types.js").CombinedPageData | undefined, import("effect/ParseResult").ParseError | import("@withstudiocms/kysely").DBCallbackFailure | import("@withstudiocms/kysely/core/errors").DatabaseError | import("./modules/util/folderTree.js").FolderTreeError | import("./modules/util/collectors.js").CollectorError | import("./modules/get/index.js").PaginateError, never>;
797
+ }) => Effect.Effect<import("./types.js").CombinedPageData | undefined, import("effect/ParseResult").ParseError | import("@withstudiocms/kysely/client").DBCallbackFailure | import("@withstudiocms/kysely/core/errors").DatabaseError | import("./modules/util/folderTree.js").FolderTreeError | import("./modules/util/collectors.js").CollectorError | import("./modules/get/index.js").PaginateError, never>;
782
798
  };
783
799
  };
784
800
  UTIL: {
785
801
  Collectors: {
786
- collectCategories: (input: {
787
- readonly [x: number]: number;
788
- readonly length: number;
789
- toString: {};
790
- toLocaleString: {};
791
- concat: {};
792
- join: {};
793
- slice: {};
794
- indexOf: {};
795
- lastIndexOf: {};
796
- every: {};
797
- some: {};
798
- forEach: {};
799
- map: {};
800
- filter: {};
801
- reduce: {};
802
- reduceRight: {};
803
- find: {};
804
- findIndex: {};
805
- entries: {};
806
- keys: {};
807
- values: {};
808
- includes: {};
809
- flatMap: {};
810
- flat: {};
811
- at: {};
812
- findLast: {};
813
- findLastIndex: {};
814
- toReversed: {};
815
- toSorted: {};
816
- toSpliced: {};
817
- with: {};
818
- [Symbol.iterator]: {};
819
- readonly [Symbol.unscopables]: {
820
- readonly [x: number]: boolean | undefined;
821
- readonly length?: boolean | undefined;
822
- toString?: boolean | undefined;
823
- toLocaleString?: boolean | undefined;
824
- concat?: boolean | undefined;
825
- join?: boolean | undefined;
826
- slice?: boolean | undefined;
827
- indexOf?: boolean | undefined;
828
- lastIndexOf?: boolean | undefined;
829
- every?: boolean | undefined;
830
- some?: boolean | undefined;
831
- forEach?: boolean | undefined;
832
- map?: boolean | undefined;
833
- filter?: boolean | undefined;
834
- reduce?: boolean | undefined;
835
- reduceRight?: boolean | undefined;
836
- find?: boolean | undefined;
837
- findIndex?: boolean | undefined;
838
- entries?: boolean | undefined;
839
- keys?: boolean | undefined;
840
- values?: boolean | undefined;
841
- includes?: boolean | undefined;
842
- flatMap?: boolean | undefined;
843
- flat?: boolean | undefined;
844
- at?: boolean | undefined;
845
- findLast?: boolean | undefined;
846
- findLastIndex?: boolean | undefined;
847
- toReversed?: boolean | undefined;
848
- toSorted?: boolean | undefined;
849
- toSpliced?: boolean | undefined;
850
- with?: boolean | undefined;
851
- [Symbol.iterator]?: boolean | undefined;
852
- readonly [Symbol.unscopables]?: boolean | undefined;
853
- };
854
- }) => Effect.Effect<readonly {
855
- readonly name: string;
802
+ collectCategories: (input: readonly number[]) => Effect.Effect<readonly {
856
803
  readonly id: number;
857
- readonly parent: number | null | undefined;
804
+ readonly name: string;
858
805
  readonly description: string;
806
+ readonly parent?: number | null | undefined;
859
807
  readonly slug: string;
860
808
  readonly meta: {
861
809
  readonly [x: string]: unknown;
862
810
  };
863
- }[], import("@withstudiocms/kysely").DBCallbackFailure | import("@withstudiocms/kysely/core/errors").DatabaseError, never>;
864
- collectTags: (input: {
865
- readonly [x: number]: number;
866
- readonly length: number;
867
- toString: {};
868
- toLocaleString: {};
869
- concat: {};
870
- join: {};
871
- slice: {};
872
- indexOf: {};
873
- lastIndexOf: {};
874
- every: {};
875
- some: {};
876
- forEach: {};
877
- map: {};
878
- filter: {};
879
- reduce: {};
880
- reduceRight: {};
881
- find: {};
882
- findIndex: {};
883
- entries: {};
884
- keys: {};
885
- values: {};
886
- includes: {};
887
- flatMap: {};
888
- flat: {};
889
- at: {};
890
- findLast: {};
891
- findLastIndex: {};
892
- toReversed: {};
893
- toSorted: {};
894
- toSpliced: {};
895
- with: {};
896
- [Symbol.iterator]: {};
897
- readonly [Symbol.unscopables]: {
898
- readonly [x: number]: boolean | undefined;
899
- readonly length?: boolean | undefined;
900
- toString?: boolean | undefined;
901
- toLocaleString?: boolean | undefined;
902
- concat?: boolean | undefined;
903
- join?: boolean | undefined;
904
- slice?: boolean | undefined;
905
- indexOf?: boolean | undefined;
906
- lastIndexOf?: boolean | undefined;
907
- every?: boolean | undefined;
908
- some?: boolean | undefined;
909
- forEach?: boolean | undefined;
910
- map?: boolean | undefined;
911
- filter?: boolean | undefined;
912
- reduce?: boolean | undefined;
913
- reduceRight?: boolean | undefined;
914
- find?: boolean | undefined;
915
- findIndex?: boolean | undefined;
916
- entries?: boolean | undefined;
917
- keys?: boolean | undefined;
918
- values?: boolean | undefined;
919
- includes?: boolean | undefined;
920
- flatMap?: boolean | undefined;
921
- flat?: boolean | undefined;
922
- at?: boolean | undefined;
923
- findLast?: boolean | undefined;
924
- findLastIndex?: boolean | undefined;
925
- toReversed?: boolean | undefined;
926
- toSorted?: boolean | undefined;
927
- toSpliced?: boolean | undefined;
928
- with?: boolean | undefined;
929
- [Symbol.iterator]?: boolean | undefined;
930
- readonly [Symbol.unscopables]?: boolean | undefined;
931
- };
932
- }) => Effect.Effect<readonly {
933
- readonly name: string;
811
+ }[], import("@withstudiocms/kysely/client").DBCallbackFailure | import("@withstudiocms/kysely/core/errors").DatabaseError, never>;
812
+ collectTags: (input: readonly number[]) => Effect.Effect<readonly {
934
813
  readonly id: number;
814
+ readonly name: string;
935
815
  readonly description: string;
936
816
  readonly slug: string;
937
817
  readonly meta: {
938
818
  readonly [x: string]: unknown;
939
819
  };
940
- }[], import("@withstudiocms/kysely").DBCallbackFailure | import("@withstudiocms/kysely/core/errors").DatabaseError, never>;
820
+ }[], import("@withstudiocms/kysely/client").DBCallbackFailure | import("@withstudiocms/kysely/core/errors").DatabaseError, never>;
941
821
  collectPageData: {
942
- (page: import("./types.js").tsPageDataSelect, tree: import("./types.js").FolderNode[]): Effect.Effect<import("./types.js").CombinedPageData, import("./modules/util/collectors.js").CollectorError | import("./modules/util/folderTree.js").FolderTreeError | import("@withstudiocms/kysely").DBCallbackFailure | import("@withstudiocms/kysely/core/errors").DatabaseError | import("effect/ParseResult").ParseError, never>;
943
- (page: import("./types.js").tsPageDataSelect, tree: import("./types.js").FolderNode[], metaOnly: boolean): Effect.Effect<import("./types.js").MetaOnlyPageData, import("./modules/util/collectors.js").CollectorError | import("./modules/util/folderTree.js").FolderTreeError | import("@withstudiocms/kysely").DBCallbackFailure | import("@withstudiocms/kysely/core/errors").DatabaseError | import("effect/ParseResult").ParseError, never>;
822
+ (page: import("./types.js").tsPageDataSelect, tree: import("./types.js").FolderNode[]): Effect.Effect<import("./types.js").CombinedPageData, import("./modules/util/collectors.js").CollectorError | import("./modules/util/folderTree.js").FolderTreeError | import("@withstudiocms/kysely/client").DBCallbackFailure | import("@withstudiocms/kysely/core/errors").DatabaseError | import("effect/ParseResult").ParseError, never>;
823
+ (page: import("./types.js").tsPageDataSelect, tree: import("./types.js").FolderNode[], metaOnly: boolean): Effect.Effect<import("./types.js").MetaOnlyPageData, import("./modules/util/collectors.js").CollectorError | import("./modules/util/folderTree.js").FolderTreeError | import("@withstudiocms/kysely/client").DBCallbackFailure | import("@withstudiocms/kysely/core/errors").DatabaseError | import("effect/ParseResult").ParseError, never>;
944
824
  };
945
825
  collectUserData: (user: {
946
- readonly name: string;
947
826
  readonly id: string;
948
- readonly url: string | null | undefined;
949
- readonly email: string | null | undefined;
950
- readonly avatar: string | null | undefined;
827
+ readonly url?: string | null | undefined;
828
+ readonly name: string;
829
+ readonly email?: string | null | undefined;
830
+ readonly avatar?: string | null | undefined;
951
831
  readonly username: string;
952
- readonly password: string | null | undefined;
832
+ readonly password?: string | null | undefined;
953
833
  readonly updatedAt: Date;
954
834
  readonly createdAt: Date;
955
835
  readonly emailVerified: boolean;
956
- readonly notifications: string | null | undefined;
957
- }) => Effect.Effect<import("./types.js").CombinedUserData, import("@withstudiocms/kysely").DBCallbackFailure | import("@withstudiocms/kysely/core/errors").DatabaseError, never>;
836
+ readonly notifications?: string | null | undefined;
837
+ }) => Effect.Effect<import("./types.js").CombinedUserData, import("@withstudiocms/kysely/client").DBCallbackFailure | import("@withstudiocms/kysely/core/errors").DatabaseError, never>;
958
838
  };
959
839
  FolderTree: {
960
840
  generateFolderTree: (folders: readonly {
961
- readonly name: string;
962
841
  readonly id: string;
963
- readonly parent: string | null | undefined;
842
+ readonly name: string;
843
+ readonly parent?: string | null | undefined;
964
844
  }[]) => Effect.Effect<import("./types.js").FolderNode[], import("./modules/util/folderTree.js").FolderTreeError, never>;
965
845
  getFullPath: (tree: import("./types.js").FolderNode[], path: string[]) => Effect.Effect<string[], import("./modules/util/folderTree.js").FolderTreeError, never>;
966
846
  findNodeByPath: (tree: import("./types.js").FolderNode[], path: string[]) => Effect.Effect<import("./types.js").FolderNode | null, import("./modules/util/folderTree.js").FolderTreeError, never>;
@@ -968,8 +848,8 @@ export declare const StudioCMSSDKCore: Effect.Effect<{
968
848
  findNodesAlongPathToId: (tree: import("./types.js").FolderNode[], id: string) => Effect.Effect<import("./types.js").FolderNode[], import("./modules/util/folderTree.js").FolderTreeError, never>;
969
849
  findNodeById: (tree: import("./types.js").FolderNode[], id: string) => Effect.Effect<import("./types.js").FolderNode | null, import("./modules/util/folderTree.js").FolderTreeError, never>;
970
850
  addPageToFolderTree: (tree: import("./types.js").FolderNode[], folderId: string, newPage: import("./types.js").FolderNode) => Effect.Effect<import("./types.js").FolderNode[], import("./modules/util/folderTree.js").FolderTreeError, never>;
971
- buildFolderTree: Effect.Effect<import("./types.js").FolderNode[], import("@withstudiocms/kysely").DBCallbackFailure | import("@withstudiocms/kysely/core/errors").DatabaseError | import("./modules/util/folderTree.js").FolderTreeError, never>;
972
- getAvailableFolders: Effect.Effect<import("./types.js").FolderListItem[], import("@withstudiocms/kysely").DBCallbackFailure | import("@withstudiocms/kysely/core/errors").DatabaseError, never>;
851
+ buildFolderTree: Effect.Effect<import("./types.js").FolderNode[], import("@withstudiocms/kysely/client").DBCallbackFailure | import("@withstudiocms/kysely/core/errors").DatabaseError | import("./modules/util/folderTree.js").FolderTreeError, never>;
852
+ getAvailableFolders: Effect.Effect<import("./types.js").FolderListItem[], import("@withstudiocms/kysely/client").DBCallbackFailure | import("@withstudiocms/kysely/core/errors").DatabaseError, never>;
973
853
  };
974
854
  Generators: {
975
855
  generateRandomIDNumber: (length: number) => Effect.Effect<number, import("./modules/util/generators.js").GeneratorError, never>;
@@ -981,8 +861,8 @@ export declare const StudioCMSSDKCore: Effect.Effect<{
981
861
  getVersion: (pkg: string, ver?: string | undefined) => Effect.Effect<{
982
862
  version: string;
983
863
  lastCacheUpdate: Date;
984
- }, import("effect/Cause").UnknownException | Error | import("effect/ParseResult").ParseError, never>;
985
- getDataFromNPM: (pkg: string, ver?: string | undefined) => Effect.Effect<import("./modules/util/getFromNPM.js").NpmRegistryResponseSchema, import("effect/Cause").UnknownException | Error | import("effect/ParseResult").ParseError, never>;
864
+ }, import("effect/Cause").UnknownException | import("effect/ParseResult").ParseError | import("./modules/util/getFromNPM.js").GetFromNPMError, never>;
865
+ getDataFromNPM: (pkg: string, ver?: string | undefined) => Effect.Effect<import("./modules/util/getFromNPM.js").NpmRegistryResponseSchema, import("effect/Cause").UnknownException | import("effect/ParseResult").ParseError | import("./modules/util/getFromNPM.js").GetFromNPMError, never>;
986
866
  };
987
867
  Parsers: {
988
868
  parseIdNumberArray: (ids: unknown) => Effect.Effect<readonly number[], import("effect/ParseResult").ParseError, never>;
@@ -991,38 +871,38 @@ export declare const StudioCMSSDKCore: Effect.Effect<{
991
871
  };
992
872
  Users: {
993
873
  verifyRank: (users: readonly {
994
- readonly name: string;
995
874
  readonly id: string;
996
- readonly url: string | null | undefined;
997
- readonly email: string | null | undefined;
998
- readonly avatar: string | null | undefined;
875
+ readonly url?: string | null | undefined;
876
+ readonly name: string;
877
+ readonly email?: string | null | undefined;
878
+ readonly avatar?: string | null | undefined;
999
879
  readonly username: string;
1000
- readonly password: string | null | undefined;
880
+ readonly password?: string | null | undefined;
1001
881
  readonly updatedAt: Date;
1002
882
  readonly createdAt: Date;
1003
883
  readonly emailVerified: boolean;
1004
- readonly notifications: string | null | undefined;
884
+ readonly notifications?: string | null | undefined;
1005
885
  }[], permissions: readonly {
1006
886
  readonly user: string;
1007
887
  readonly rank: "owner" | "admin" | "editor" | "visitor" | "unknown";
1008
888
  }[], rank: string) => Effect.Effect<import("./types.js").SingleRank[], import("./modules/util/users.js").UsersError, never>;
1009
889
  combineRanks: (rank: string, users: import("./types.js").SingleRank[]) => Effect.Effect<import("./types.js").CombinedRank[], import("./modules/util/users.js").UsersError, never>;
1010
- clearUserReferences: (userId: string) => Effect.Effect<boolean, import("@withstudiocms/kysely").DBCallbackFailure | import("@withstudiocms/kysely/core/errors").QueryError | import("@withstudiocms/kysely/core/errors").NotFoundError, never>;
890
+ clearUserReferences: (userId: string) => Effect.Effect<boolean, import("@withstudiocms/kysely/client").DBCallbackFailure | import("@withstudiocms/kysely/core/errors").QueryError | import("@withstudiocms/kysely/core/errors").NotFoundError, never>;
1011
891
  };
1012
892
  };
1013
- dbService: import("@withstudiocms/kysely").DBClientInterface<{
893
+ dbService: import("@withstudiocms/kysely/client").DBClientInterface<{
1014
894
  readonly StudioCMSUsersTable: {
1015
895
  readonly id: string;
1016
- readonly url: string | null | undefined;
1017
896
  readonly name: string;
1018
- readonly email: string | null | undefined;
1019
- readonly avatar: string | null | undefined;
1020
897
  readonly username: string;
1021
- readonly password: string | null | undefined;
1022
898
  readonly updatedAt: import("kysely").ColumnType<string, string, string>;
1023
- readonly createdAt: import("kysely").ColumnType<string, string | undefined, never>;
899
+ readonly createdAt: import("kysely").ColumnType<string, string | undefined, undefined>;
1024
900
  readonly emailVerified: number;
1025
- readonly notifications: string | null | undefined;
901
+ readonly url?: string | null | undefined;
902
+ readonly email?: string | null | undefined;
903
+ readonly avatar?: string | null | undefined;
904
+ readonly password?: string | null | undefined;
905
+ readonly notifications?: string | null | undefined;
1026
906
  };
1027
907
  readonly StudioCMSOAuthAccounts: {
1028
908
  readonly providerUserId: string;
@@ -1038,8 +918,8 @@ export declare const StudioCMSSDKCore: Effect.Effect<{
1038
918
  readonly id: string;
1039
919
  readonly userId: string;
1040
920
  readonly key: string;
1041
- readonly creationDate: import("kysely").ColumnType<string, string | undefined, never>;
1042
- readonly description: string | null | undefined;
921
+ readonly creationDate: import("kysely").ColumnType<string, string | undefined, undefined>;
922
+ readonly description?: string | null | undefined;
1043
923
  };
1044
924
  readonly StudioCMSUserResetTokens: {
1045
925
  readonly id: string;
@@ -1053,7 +933,7 @@ export declare const StudioCMSSDKCore: Effect.Effect<{
1053
933
  readonly StudioCMSPageFolderStructure: {
1054
934
  readonly id: string;
1055
935
  readonly name: string;
1056
- readonly parent: string | null | undefined;
936
+ readonly parent?: string | null | undefined;
1057
937
  };
1058
938
  readonly StudioCMSPageData: {
1059
939
  readonly id: string;
@@ -1065,25 +945,25 @@ export declare const StudioCMSSDKCore: Effect.Effect<{
1065
945
  readonly publishedAt: import("kysely").ColumnType<string, string, string>;
1066
946
  readonly slug: string;
1067
947
  readonly contentLang: string;
1068
- readonly heroImage: string | null | undefined;
1069
948
  readonly categories: import("kysely").ColumnType<string, string, string>;
1070
949
  readonly tags: import("kysely").ColumnType<string, string, string>;
1071
950
  readonly authorId: string;
1072
951
  readonly contributorIds: import("kysely").ColumnType<string, string, string>;
1073
952
  readonly showAuthor: number;
1074
953
  readonly showContributors: number;
1075
- readonly parentFolder: string | null | undefined;
1076
954
  readonly draft: number;
1077
955
  readonly augments: import("kysely").ColumnType<string, string, string>;
956
+ readonly heroImage?: string | null | undefined;
957
+ readonly parentFolder?: string | null | undefined;
1078
958
  };
1079
959
  readonly StudioCMSDiffTracking: {
1080
960
  readonly id: string;
1081
961
  readonly userId: string;
1082
962
  readonly pageId: string;
1083
- readonly timestamp: import("kysely").ColumnType<string, string | undefined, never>;
963
+ readonly timestamp: import("kysely").ColumnType<string, string | undefined, undefined>;
1084
964
  readonly pageMetaData: import("kysely").ColumnType<string, string, string>;
1085
965
  readonly pageContentStart: string;
1086
- readonly diff: string | null | undefined;
966
+ readonly diff?: string | null | undefined;
1087
967
  };
1088
968
  readonly StudioCMSPageDataTags: {
1089
969
  readonly id: number;
@@ -1096,9 +976,9 @@ export declare const StudioCMSSDKCore: Effect.Effect<{
1096
976
  readonly id: number;
1097
977
  readonly name: string;
1098
978
  readonly description: string;
1099
- readonly parent: number | null | undefined;
1100
979
  readonly slug: string;
1101
980
  readonly meta: import("kysely").ColumnType<string, string, string>;
981
+ readonly parent?: number | null | undefined;
1102
982
  };
1103
983
  readonly StudioCMSPageContent: {
1104
984
  readonly id: string;
@@ -1120,9 +1000,17 @@ export declare const StudioCMSSDKCore: Effect.Effect<{
1120
1000
  readonly id: string;
1121
1001
  readonly data: import("kysely").ColumnType<string, string, string>;
1122
1002
  };
1003
+ readonly StudioCMSStorageManagerUrlMappings: {
1004
+ readonly url: string;
1005
+ readonly updatedAt: number;
1006
+ readonly createdAt: import("kysely").ColumnType<number, number | undefined, undefined>;
1007
+ readonly identifier: string;
1008
+ readonly isPermanent: import("kysely").ColumnType<number, boolean, boolean>;
1009
+ readonly expiresAt?: number | null | undefined;
1010
+ };
1123
1011
  }>;
1124
1012
  cache: CacheService;
1125
- }, import("effect/ConfigError").ConfigError, DBClientLive | import("./context.js").SDKDefaults | import("./context.js").CacheStores>;
1013
+ }, import("effect/ConfigError").ConfigError, DBClientLive | import("./context.js").SDKDefaults | import("./context.js").CacheStores | import("./context.js").StorageManagerResolver>;
1126
1014
  /**
1127
1015
  * Type representing the live StudioCMS SDK Core Effect without requirements.
1128
1016
  */