studiocms 0.4.0 → 0.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +16 -0
- package/dist/client/apiClient.d.ts +826 -826
- package/dist/consts.js +8 -0
- package/dist/handlers/storage-manager/core/api-core.d.ts +3 -3
- package/dist/handlers/storage-manager/core/astro-context.d.ts +1 -1
- package/dist/handlers/storage-manager/core/database.d.ts +1 -1
- package/dist/handlers/storage-manager/core/effectify-astro-context.d.ts +1 -1
- package/dist/handlers/storage-manager/core/url-mapping.d.ts +1 -1
- package/dist/plugins/analytics/index.d.ts +1 -1
- package/dist/plugins/analytics/index.js +3 -3
- package/frontend/pages/studiocms_api/_handlers/sdk.ts +14 -1
- package/package.json +3 -3
|
@@ -14,7 +14,7 @@ export declare const authClient: Effect.Effect<{
|
|
|
14
14
|
readonly message: string;
|
|
15
15
|
}, import("@effect/platform/HttpClientResponse").HttpClientResponse] : {
|
|
16
16
|
readonly message: string;
|
|
17
|
-
}, import("effect/ParseResult").ParseError | import("@effect/platform/HttpApiError").NotFound |
|
|
17
|
+
}, import("effect/ParseResult").ParseError | AuthAPIError | import("@effect/platform/HttpApiError").NotFound | import("@effect/platform/HttpApiError").HttpApiDecodeError | import("@effect/platform/HttpClientError").HttpClientError, never>;
|
|
18
18
|
readonly login: <WithResponse extends boolean = false>(request: {
|
|
19
19
|
readonly payload: {
|
|
20
20
|
readonly username: string;
|
|
@@ -25,10 +25,10 @@ export declare const authClient: Effect.Effect<{
|
|
|
25
25
|
readonly ok: boolean;
|
|
26
26
|
}, import("@effect/platform/HttpClientResponse").HttpClientResponse] : {
|
|
27
27
|
readonly ok: boolean;
|
|
28
|
-
}, import("effect/ParseResult").ParseError | import("@effect/platform/HttpApiError").NotFound |
|
|
28
|
+
}, import("effect/ParseResult").ParseError | AuthAPIError | import("@effect/platform/HttpApiError").NotFound | import("@effect/platform/HttpApiError").HttpApiDecodeError | import("@effect/platform/HttpClientError").HttpClientError, never>;
|
|
29
29
|
readonly logout: <WithResponse extends boolean = false>(request: void | {
|
|
30
30
|
readonly withResponse?: WithResponse | undefined;
|
|
31
|
-
}) => Effect.Effect<WithResponse extends true ? [null, import("@effect/platform/HttpClientResponse").HttpClientResponse] : null, import("effect/ParseResult").ParseError | import("@effect/platform/HttpApiError").NotFound |
|
|
31
|
+
}) => Effect.Effect<WithResponse extends true ? [null, import("@effect/platform/HttpClientResponse").HttpClientResponse] : null, import("effect/ParseResult").ParseError | AuthAPIError | import("@effect/platform/HttpApiError").NotFound | import("@effect/platform/HttpApiError").HttpApiDecodeError | import("@effect/platform/HttpClientError").HttpClientError, never>;
|
|
32
32
|
readonly register: <WithResponse extends boolean = false>(request: {
|
|
33
33
|
readonly payload: {
|
|
34
34
|
readonly email: string;
|
|
@@ -41,7 +41,7 @@ export declare const authClient: Effect.Effect<{
|
|
|
41
41
|
readonly ok: boolean;
|
|
42
42
|
}, import("@effect/platform/HttpClientResponse").HttpClientResponse] : {
|
|
43
43
|
readonly ok: boolean;
|
|
44
|
-
}, import("effect/ParseResult").ParseError | import("@effect/platform/HttpApiError").NotFound |
|
|
44
|
+
}, import("effect/ParseResult").ParseError | AuthAPIError | import("@effect/platform/HttpApiError").NotFound | import("@effect/platform/HttpApiError").HttpApiDecodeError | import("@effect/platform/HttpClientError").HttpClientError, never>;
|
|
45
45
|
};
|
|
46
46
|
readonly oauth: {
|
|
47
47
|
readonly oAuthInit: <WithResponse extends boolean = false>(request: {
|
|
@@ -49,13 +49,13 @@ export declare const authClient: Effect.Effect<{
|
|
|
49
49
|
readonly provider: string;
|
|
50
50
|
};
|
|
51
51
|
readonly withResponse?: WithResponse | undefined;
|
|
52
|
-
}) => Effect.Effect<WithResponse extends true ? [null, import("@effect/platform/HttpClientResponse").HttpClientResponse] : null, import("effect/ParseResult").ParseError | import("@effect/platform/HttpApiError").NotFound |
|
|
52
|
+
}) => Effect.Effect<WithResponse extends true ? [null, import("@effect/platform/HttpClientResponse").HttpClientResponse] : null, import("effect/ParseResult").ParseError | AuthAPIError | import("@effect/platform/HttpApiError").NotFound | import("@effect/platform/HttpApiError").HttpApiDecodeError | import("@effect/platform/HttpClientError").HttpClientError, never>;
|
|
53
53
|
readonly oAuthCallback: <WithResponse extends boolean = false>(request: {
|
|
54
54
|
readonly path: {
|
|
55
55
|
readonly provider: string;
|
|
56
56
|
};
|
|
57
57
|
readonly withResponse?: WithResponse | undefined;
|
|
58
|
-
}) => Effect.Effect<WithResponse extends true ? [null, import("@effect/platform/HttpClientResponse").HttpClientResponse] : null, import("effect/ParseResult").ParseError | import("@effect/platform/HttpApiError").NotFound |
|
|
58
|
+
}) => Effect.Effect<WithResponse extends true ? [null, import("@effect/platform/HttpClientResponse").HttpClientResponse] : null, import("effect/ParseResult").ParseError | AuthAPIError | import("@effect/platform/HttpApiError").NotFound | import("@effect/platform/HttpApiError").HttpApiDecodeError | import("@effect/platform/HttpClientError").HttpClientError, never>;
|
|
59
59
|
};
|
|
60
60
|
}, never, never>;
|
|
61
61
|
/**
|
|
@@ -119,22 +119,22 @@ export declare const dashboardClient: Effect.Effect<{
|
|
|
119
119
|
readonly content: {
|
|
120
120
|
readonly createPage: <WithResponse extends boolean = false>(request: {
|
|
121
121
|
readonly payload: {
|
|
122
|
-
readonly updatedAt?: Date | undefined;
|
|
123
122
|
readonly description?: string | undefined;
|
|
123
|
+
readonly updatedAt?: Date | undefined;
|
|
124
124
|
readonly title?: string | undefined;
|
|
125
|
-
readonly categories?: readonly string[] | undefined;
|
|
126
|
-
readonly slug?: string | undefined;
|
|
127
|
-
readonly parentFolder?: string | null | undefined;
|
|
128
125
|
readonly package?: string | undefined;
|
|
129
126
|
readonly showOnNav?: boolean | undefined;
|
|
130
127
|
readonly publishedAt?: Date | undefined;
|
|
128
|
+
readonly slug?: string | undefined;
|
|
131
129
|
readonly contentLang?: string | undefined;
|
|
132
130
|
readonly heroImage?: string | null | undefined;
|
|
131
|
+
readonly categories?: readonly string[] | undefined;
|
|
133
132
|
readonly tags?: readonly string[] | undefined;
|
|
134
133
|
readonly authorId?: string | undefined;
|
|
135
134
|
readonly contributorIds?: readonly string[] | undefined;
|
|
136
135
|
readonly showAuthor?: boolean | undefined;
|
|
137
136
|
readonly showContributors?: boolean | undefined;
|
|
137
|
+
readonly parentFolder?: string | null | undefined;
|
|
138
138
|
readonly draft?: boolean | undefined;
|
|
139
139
|
readonly augments?: readonly string[] | undefined;
|
|
140
140
|
};
|
|
@@ -146,27 +146,27 @@ export declare const dashboardClient: Effect.Effect<{
|
|
|
146
146
|
}, import("effect/ParseResult").ParseError | import("@effect/platform/HttpApiError").HttpApiDecodeError | import("@withstudiocms/api-spec/astro-context").AstroLocalsMissing | import("@withstudiocms/api-spec/dashboard").DashboardAPIError | import("@effect/platform/HttpClientError").HttpClientError, never>;
|
|
147
147
|
readonly updatePage: <WithResponse extends boolean = false>(request: {
|
|
148
148
|
readonly payload: {
|
|
149
|
+
readonly description?: string | undefined;
|
|
149
150
|
readonly id: string;
|
|
150
151
|
readonly updatedAt?: Date | undefined;
|
|
151
|
-
readonly description?: string | undefined;
|
|
152
152
|
readonly title?: string | undefined;
|
|
153
|
-
readonly
|
|
154
|
-
readonly slug?: string | undefined;
|
|
155
|
-
readonly parentFolder?: string | null | undefined;
|
|
153
|
+
readonly content: string;
|
|
156
154
|
readonly package?: string | undefined;
|
|
157
155
|
readonly showOnNav?: boolean | undefined;
|
|
158
156
|
readonly publishedAt?: Date | undefined;
|
|
157
|
+
readonly slug?: string | undefined;
|
|
159
158
|
readonly contentLang?: string | undefined;
|
|
160
159
|
readonly heroImage?: string | null | undefined;
|
|
160
|
+
readonly categories?: readonly string[] | undefined;
|
|
161
161
|
readonly tags?: readonly string[] | undefined;
|
|
162
162
|
readonly authorId?: string | undefined;
|
|
163
163
|
readonly contributorIds?: readonly string[] | undefined;
|
|
164
164
|
readonly showAuthor?: boolean | undefined;
|
|
165
165
|
readonly showContributors?: boolean | undefined;
|
|
166
|
+
readonly parentFolder?: string | null | undefined;
|
|
166
167
|
readonly draft?: boolean | undefined;
|
|
167
168
|
readonly augments?: readonly string[] | undefined;
|
|
168
169
|
readonly contentId: string;
|
|
169
|
-
readonly content: string;
|
|
170
170
|
readonly pluginFields: {
|
|
171
171
|
readonly [x: string]: FormDataEntryValue | null;
|
|
172
172
|
};
|
|
@@ -301,7 +301,7 @@ export declare const dashboardClient: Effect.Effect<{
|
|
|
301
301
|
readonly email: string;
|
|
302
302
|
readonly username: string;
|
|
303
303
|
readonly displayname: string;
|
|
304
|
-
readonly rank: "
|
|
304
|
+
readonly rank: "editor" | "admin" | "owner" | "unknown" | "visitor";
|
|
305
305
|
readonly originalUrl: string;
|
|
306
306
|
};
|
|
307
307
|
readonly withResponse?: WithResponse | undefined;
|
|
@@ -316,7 +316,7 @@ export declare const dashboardClient: Effect.Effect<{
|
|
|
316
316
|
readonly username: string;
|
|
317
317
|
readonly password?: string | undefined;
|
|
318
318
|
readonly displayname: string;
|
|
319
|
-
readonly rank: "
|
|
319
|
+
readonly rank: "editor" | "admin" | "owner" | "unknown" | "visitor";
|
|
320
320
|
readonly originalUrl: string;
|
|
321
321
|
};
|
|
322
322
|
readonly withResponse?: WithResponse | undefined;
|
|
@@ -359,6 +359,7 @@ export declare const dashboardClient: Effect.Effect<{
|
|
|
359
359
|
readonly profile: {
|
|
360
360
|
readonly updateUserProfile: <WithResponse extends boolean = false>(request: {
|
|
361
361
|
readonly payload: {
|
|
362
|
+
readonly mode: "basic";
|
|
362
363
|
readonly data: {
|
|
363
364
|
readonly url?: string | null | undefined;
|
|
364
365
|
readonly name: string;
|
|
@@ -371,17 +372,16 @@ export declare const dashboardClient: Effect.Effect<{
|
|
|
371
372
|
readonly emailVerified: boolean;
|
|
372
373
|
readonly notifications?: string | null | undefined;
|
|
373
374
|
};
|
|
374
|
-
readonly mode: "basic";
|
|
375
375
|
};
|
|
376
376
|
readonly withResponse?: WithResponse | undefined;
|
|
377
377
|
} | {
|
|
378
378
|
readonly payload: {
|
|
379
|
+
readonly mode: "password";
|
|
379
380
|
readonly data: {
|
|
380
381
|
readonly currentPassword: string | null;
|
|
381
382
|
readonly newPassword: string;
|
|
382
383
|
readonly confirmNewPassword: string;
|
|
383
384
|
};
|
|
384
|
-
readonly mode: "password";
|
|
385
385
|
};
|
|
386
386
|
readonly withResponse?: WithResponse | undefined;
|
|
387
387
|
} | {
|
|
@@ -417,43 +417,43 @@ export declare const dashboardClient: Effect.Effect<{
|
|
|
417
417
|
}) => Effect.Effect<WithResponse extends true ? [readonly {
|
|
418
418
|
readonly id: string;
|
|
419
419
|
readonly name: string;
|
|
420
|
-
readonly type: "folder" | "page";
|
|
421
420
|
readonly slug?: string | undefined;
|
|
421
|
+
readonly type: "folder" | "page";
|
|
422
422
|
readonly isDraft?: boolean | null | undefined;
|
|
423
423
|
}[], import("@effect/platform/HttpClientResponse").HttpClientResponse] : readonly {
|
|
424
424
|
readonly id: string;
|
|
425
425
|
readonly name: string;
|
|
426
|
-
readonly type: "folder" | "page";
|
|
427
426
|
readonly slug?: string | undefined;
|
|
427
|
+
readonly type: "folder" | "page";
|
|
428
428
|
readonly isDraft?: boolean | null | undefined;
|
|
429
429
|
}[], import("effect/ParseResult").ParseError | import("@effect/platform/HttpApiError").HttpApiDecodeError | import("@withstudiocms/api-spec/astro-context").AstroLocalsMissing | import("@withstudiocms/api-spec/dashboard").DashboardAPIError | import("@effect/platform/HttpClientError").HttpClientError, never>;
|
|
430
430
|
};
|
|
431
431
|
readonly taxonomy: {
|
|
432
432
|
readonly taxonomy: <WithResponse extends boolean = false>(request: {
|
|
433
433
|
readonly payload: {
|
|
434
|
+
readonly description: string;
|
|
435
|
+
readonly mode: "create" | "edit";
|
|
434
436
|
readonly id: number;
|
|
435
437
|
readonly name: string;
|
|
436
|
-
readonly description: string;
|
|
437
|
-
readonly type: "tags";
|
|
438
438
|
readonly slug: string;
|
|
439
|
+
readonly type: "tags";
|
|
439
440
|
readonly meta: {
|
|
440
441
|
readonly [x: string]: unknown;
|
|
441
442
|
};
|
|
442
|
-
readonly mode: "create" | "edit";
|
|
443
443
|
};
|
|
444
444
|
readonly withResponse?: WithResponse | undefined;
|
|
445
445
|
} | {
|
|
446
446
|
readonly payload: {
|
|
447
|
+
readonly description: string;
|
|
448
|
+
readonly mode: "create" | "edit";
|
|
447
449
|
readonly id: number;
|
|
448
450
|
readonly name: string;
|
|
449
|
-
readonly description: string;
|
|
450
|
-
readonly type: "categories";
|
|
451
|
-
readonly parent?: number | null | undefined;
|
|
452
451
|
readonly slug: string;
|
|
452
|
+
readonly type: "categories";
|
|
453
453
|
readonly meta: {
|
|
454
454
|
readonly [x: string]: unknown;
|
|
455
455
|
};
|
|
456
|
-
readonly
|
|
456
|
+
readonly parent?: number | null | undefined;
|
|
457
457
|
};
|
|
458
458
|
readonly withResponse?: WithResponse | undefined;
|
|
459
459
|
}) => Effect.Effect<WithResponse extends true ? [{
|
|
@@ -475,26 +475,26 @@ export declare const dashboardClient: Effect.Effect<{
|
|
|
475
475
|
readonly taxonomySearch: <WithResponse extends boolean = false>(request: void | {
|
|
476
476
|
readonly withResponse?: WithResponse | undefined;
|
|
477
477
|
}) => Effect.Effect<WithResponse extends true ? [readonly {
|
|
478
|
+
readonly description: string;
|
|
478
479
|
readonly id: number;
|
|
479
480
|
readonly name: string;
|
|
480
|
-
readonly description: string;
|
|
481
|
-
readonly type: "tag" | "category";
|
|
482
|
-
readonly parent: number | null | undefined;
|
|
483
481
|
readonly slug: string;
|
|
482
|
+
readonly type: "tag" | "category";
|
|
484
483
|
readonly meta: {
|
|
485
484
|
readonly [x: string]: unknown;
|
|
486
485
|
};
|
|
486
|
+
readonly parent: number | null | undefined;
|
|
487
487
|
readonly children: readonly import("@withstudiocms/api-spec/dashboard").TaxonomyNode[];
|
|
488
488
|
}[], import("@effect/platform/HttpClientResponse").HttpClientResponse] : readonly {
|
|
489
|
+
readonly description: string;
|
|
489
490
|
readonly id: number;
|
|
490
491
|
readonly name: string;
|
|
491
|
-
readonly description: string;
|
|
492
|
-
readonly type: "tag" | "category";
|
|
493
|
-
readonly parent: number | null | undefined;
|
|
494
492
|
readonly slug: string;
|
|
493
|
+
readonly type: "tag" | "category";
|
|
495
494
|
readonly meta: {
|
|
496
495
|
readonly [x: string]: unknown;
|
|
497
496
|
};
|
|
497
|
+
readonly parent: number | null | undefined;
|
|
498
498
|
readonly children: readonly import("@withstudiocms/api-spec/dashboard").TaxonomyNode[];
|
|
499
499
|
}[], import("effect/ParseResult").ParseError | import("@effect/platform/HttpApiError").HttpApiDecodeError | import("@withstudiocms/api-spec/astro-context").AstroLocalsMissing | import("@withstudiocms/api-spec/dashboard").DashboardAPIError | import("@effect/platform/HttpClientError").HttpClientError, never>;
|
|
500
500
|
};
|
|
@@ -526,7 +526,7 @@ export declare const dashboardClient: Effect.Effect<{
|
|
|
526
526
|
readonly payload: {
|
|
527
527
|
readonly id: string;
|
|
528
528
|
readonly emailVerified: boolean;
|
|
529
|
-
readonly rank: "
|
|
529
|
+
readonly rank: "editor" | "admin" | "owner" | "unknown" | "visitor";
|
|
530
530
|
};
|
|
531
531
|
readonly withResponse?: WithResponse | undefined;
|
|
532
532
|
}) => Effect.Effect<WithResponse extends true ? [{
|
|
@@ -548,6 +548,23 @@ export declare const dashboardClient: Effect.Effect<{
|
|
|
548
548
|
}, import("effect/ParseResult").ParseError | import("@effect/platform/HttpApiError").HttpApiDecodeError | import("@withstudiocms/api-spec/astro-context").AstroLocalsMissing | import("@withstudiocms/api-spec/dashboard").DashboardAPIError | import("@effect/platform/HttpClientError").HttpClientError, never>;
|
|
549
549
|
};
|
|
550
550
|
readonly verifyEndpoints: {
|
|
551
|
+
readonly verifyEmail: <WithResponse extends boolean = false>(request: {
|
|
552
|
+
readonly urlParams: {
|
|
553
|
+
readonly token: string;
|
|
554
|
+
readonly userId: string;
|
|
555
|
+
};
|
|
556
|
+
readonly withResponse?: WithResponse | undefined;
|
|
557
|
+
}) => Effect.Effect<WithResponse extends true ? [null, import("@effect/platform/HttpClientResponse").HttpClientResponse] : null, import("effect/ParseResult").ParseError | import("@effect/platform/HttpApiError").HttpApiDecodeError | import("@withstudiocms/api-spec/astro-context").AstroLocalsMissing | import("@withstudiocms/api-spec/dashboard").DashboardAPIError | import("@effect/platform/HttpClientError").HttpClientError, never>;
|
|
558
|
+
readonly resendVerifyEmail: <WithResponse extends boolean = false>(request: {
|
|
559
|
+
readonly payload: {
|
|
560
|
+
readonly userId: string;
|
|
561
|
+
};
|
|
562
|
+
readonly withResponse?: WithResponse | undefined;
|
|
563
|
+
}) => Effect.Effect<WithResponse extends true ? [{
|
|
564
|
+
readonly message: string;
|
|
565
|
+
}, import("@effect/platform/HttpClientResponse").HttpClientResponse] : {
|
|
566
|
+
readonly message: string;
|
|
567
|
+
}, import("effect/ParseResult").ParseError | import("@effect/platform/HttpApiError").HttpApiDecodeError | import("@withstudiocms/api-spec/astro-context").AstroLocalsMissing | import("@withstudiocms/api-spec/dashboard").DashboardAPIError | import("@effect/platform/HttpClientError").HttpClientError, never>;
|
|
551
568
|
readonly verifySession: <WithResponse extends boolean = false>(request: {
|
|
552
569
|
readonly payload: {
|
|
553
570
|
readonly originPathname: string;
|
|
@@ -555,7 +572,6 @@ export declare const dashboardClient: Effect.Effect<{
|
|
|
555
572
|
readonly withResponse?: WithResponse | undefined;
|
|
556
573
|
}) => Effect.Effect<WithResponse extends true ? [{
|
|
557
574
|
readonly isLoggedIn: boolean;
|
|
558
|
-
readonly permissionLevel: "owner" | "admin" | "editor" | "visitor" | "unknown";
|
|
559
575
|
readonly user: {
|
|
560
576
|
readonly id: string;
|
|
561
577
|
readonly name: string;
|
|
@@ -563,6 +579,7 @@ export declare const dashboardClient: Effect.Effect<{
|
|
|
563
579
|
readonly avatar: string | null;
|
|
564
580
|
readonly username: string;
|
|
565
581
|
} | null;
|
|
582
|
+
readonly permissionLevel: "editor" | "admin" | "owner" | "unknown" | "visitor";
|
|
566
583
|
readonly routes: {
|
|
567
584
|
readonly logout: string;
|
|
568
585
|
readonly userProfile: string;
|
|
@@ -571,7 +588,6 @@ export declare const dashboardClient: Effect.Effect<{
|
|
|
571
588
|
};
|
|
572
589
|
}, import("@effect/platform/HttpClientResponse").HttpClientResponse] : {
|
|
573
590
|
readonly isLoggedIn: boolean;
|
|
574
|
-
readonly permissionLevel: "owner" | "admin" | "editor" | "visitor" | "unknown";
|
|
575
591
|
readonly user: {
|
|
576
592
|
readonly id: string;
|
|
577
593
|
readonly name: string;
|
|
@@ -579,6 +595,7 @@ export declare const dashboardClient: Effect.Effect<{
|
|
|
579
595
|
readonly avatar: string | null;
|
|
580
596
|
readonly username: string;
|
|
581
597
|
} | null;
|
|
598
|
+
readonly permissionLevel: "editor" | "admin" | "owner" | "unknown" | "visitor";
|
|
582
599
|
readonly routes: {
|
|
583
600
|
readonly logout: string;
|
|
584
601
|
readonly userProfile: string;
|
|
@@ -586,23 +603,6 @@ export declare const dashboardClient: Effect.Effect<{
|
|
|
586
603
|
readonly dashboardIndex: string;
|
|
587
604
|
};
|
|
588
605
|
}, import("effect/ParseResult").ParseError | import("@effect/platform/HttpApiError").HttpApiDecodeError | import("@withstudiocms/api-spec/astro-context").AstroLocalsMissing | import("@withstudiocms/api-spec/dashboard").DashboardAPIError | import("@effect/platform/HttpClientError").HttpClientError, never>;
|
|
589
|
-
readonly verifyEmail: <WithResponse extends boolean = false>(request: {
|
|
590
|
-
readonly urlParams: {
|
|
591
|
-
readonly token: string;
|
|
592
|
-
readonly userId: string;
|
|
593
|
-
};
|
|
594
|
-
readonly withResponse?: WithResponse | undefined;
|
|
595
|
-
}) => Effect.Effect<WithResponse extends true ? [null, import("@effect/platform/HttpClientResponse").HttpClientResponse] : null, import("effect/ParseResult").ParseError | import("@effect/platform/HttpApiError").HttpApiDecodeError | import("@withstudiocms/api-spec/astro-context").AstroLocalsMissing | import("@withstudiocms/api-spec/dashboard").DashboardAPIError | import("@effect/platform/HttpClientError").HttpClientError, never>;
|
|
596
|
-
readonly resendVerifyEmail: <WithResponse extends boolean = false>(request: {
|
|
597
|
-
readonly payload: {
|
|
598
|
-
readonly userId: string;
|
|
599
|
-
};
|
|
600
|
-
readonly withResponse?: WithResponse | undefined;
|
|
601
|
-
}) => Effect.Effect<WithResponse extends true ? [{
|
|
602
|
-
readonly message: string;
|
|
603
|
-
}, import("@effect/platform/HttpClientResponse").HttpClientResponse] : {
|
|
604
|
-
readonly message: string;
|
|
605
|
-
}, import("effect/ParseResult").ParseError | import("@effect/platform/HttpApiError").HttpApiDecodeError | import("@withstudiocms/api-spec/astro-context").AstroLocalsMissing | import("@withstudiocms/api-spec/dashboard").DashboardAPIError | import("@effect/platform/HttpClientError").HttpClientError, never>;
|
|
606
606
|
};
|
|
607
607
|
}, never, never>;
|
|
608
608
|
/**
|
|
@@ -626,7 +626,6 @@ export declare const integrationsClient: Effect.Effect<{
|
|
|
626
626
|
readonly withResponse?: WithResponse | undefined;
|
|
627
627
|
}) => Effect.Effect<WithResponse extends true ? [{
|
|
628
628
|
readonly id: number;
|
|
629
|
-
readonly type: "query";
|
|
630
629
|
readonly data: {
|
|
631
630
|
readonly rows: readonly {
|
|
632
631
|
readonly [x: string]: unknown;
|
|
@@ -645,9 +644,9 @@ export declare const integrationsClient: Effect.Effect<{
|
|
|
645
644
|
};
|
|
646
645
|
readonly lastInsertRowid?: number | undefined;
|
|
647
646
|
};
|
|
647
|
+
readonly type: "query";
|
|
648
648
|
} | {
|
|
649
649
|
readonly id: number;
|
|
650
|
-
readonly type: "transaction";
|
|
651
650
|
readonly data: readonly {
|
|
652
651
|
readonly rows: readonly {
|
|
653
652
|
readonly [x: string]: unknown;
|
|
@@ -666,13 +665,13 @@ export declare const integrationsClient: Effect.Effect<{
|
|
|
666
665
|
};
|
|
667
666
|
readonly lastInsertRowid?: number | undefined;
|
|
668
667
|
}[];
|
|
668
|
+
readonly type: "transaction";
|
|
669
669
|
} | {
|
|
670
|
-
readonly id: number;
|
|
671
670
|
readonly error: string;
|
|
671
|
+
readonly id: number;
|
|
672
672
|
readonly type: "query" | "transaction";
|
|
673
673
|
}, import("@effect/platform/HttpClientResponse").HttpClientResponse] : {
|
|
674
674
|
readonly id: number;
|
|
675
|
-
readonly type: "query";
|
|
676
675
|
readonly data: {
|
|
677
676
|
readonly rows: readonly {
|
|
678
677
|
readonly [x: string]: unknown;
|
|
@@ -691,9 +690,9 @@ export declare const integrationsClient: Effect.Effect<{
|
|
|
691
690
|
};
|
|
692
691
|
readonly lastInsertRowid?: number | undefined;
|
|
693
692
|
};
|
|
693
|
+
readonly type: "query";
|
|
694
694
|
} | {
|
|
695
695
|
readonly id: number;
|
|
696
|
-
readonly type: "transaction";
|
|
697
696
|
readonly data: readonly {
|
|
698
697
|
readonly rows: readonly {
|
|
699
698
|
readonly [x: string]: unknown;
|
|
@@ -712,17 +711,18 @@ export declare const integrationsClient: Effect.Effect<{
|
|
|
712
711
|
};
|
|
713
712
|
readonly lastInsertRowid?: number | undefined;
|
|
714
713
|
}[];
|
|
714
|
+
readonly type: "transaction";
|
|
715
715
|
} | {
|
|
716
|
-
readonly id: number;
|
|
717
716
|
readonly error: string;
|
|
717
|
+
readonly id: number;
|
|
718
718
|
readonly type: "query" | "transaction";
|
|
719
|
-
}, import("effect/ParseResult").ParseError | import("@effect/platform/HttpApiError").HttpApiDecodeError | import("@withstudiocms/api-spec/astro-context").AstroLocalsMissing | import("@
|
|
719
|
+
}, import("effect/ParseResult").ParseError | import("@effect/platform/HttpApiError").HttpApiDecodeError | import("@withstudiocms/api-spec/astro-context").AstroLocalsMissing | import("@withstudiocms/api-spec/integrations").IntegrationsAPIError | import("@effect/platform/HttpApiError").Unauthorized | import("@effect/platform/HttpClientError").HttpClientError, never>;
|
|
720
720
|
};
|
|
721
721
|
readonly storageManager: {
|
|
722
722
|
readonly storageManager: <WithResponse extends boolean = false>(request: {
|
|
723
723
|
readonly payload: {
|
|
724
|
-
readonly action: "resolveUrl";
|
|
725
724
|
readonly identifier: `storage-file://${string}`;
|
|
725
|
+
readonly action: "resolveUrl";
|
|
726
726
|
};
|
|
727
727
|
readonly withResponse?: WithResponse | undefined;
|
|
728
728
|
} | {
|
|
@@ -734,8 +734,8 @@ export declare const integrationsClient: Effect.Effect<{
|
|
|
734
734
|
} | {
|
|
735
735
|
readonly payload: {
|
|
736
736
|
readonly key: string;
|
|
737
|
-
readonly contentType: string;
|
|
738
737
|
readonly action: "upload";
|
|
738
|
+
readonly contentType: string;
|
|
739
739
|
};
|
|
740
740
|
readonly withResponse?: WithResponse | undefined;
|
|
741
741
|
} | {
|
|
@@ -800,8 +800,8 @@ export declare const integrationsClient: Effect.Effect<{
|
|
|
800
800
|
} | {
|
|
801
801
|
readonly success: boolean;
|
|
802
802
|
} | {
|
|
803
|
-
readonly success: boolean;
|
|
804
803
|
readonly newKey: string;
|
|
804
|
+
readonly success: boolean;
|
|
805
805
|
} | {
|
|
806
806
|
readonly url: string;
|
|
807
807
|
} | {
|
|
@@ -813,8 +813,8 @@ export declare const integrationsClient: Effect.Effect<{
|
|
|
813
813
|
readonly expiresAt?: number | undefined;
|
|
814
814
|
}[];
|
|
815
815
|
} | {
|
|
816
|
-
readonly success: boolean;
|
|
817
816
|
readonly message: string;
|
|
817
|
+
readonly success: boolean;
|
|
818
818
|
readonly provider: string;
|
|
819
819
|
}, import("@effect/platform/HttpClientResponse").HttpClientResponse] : {
|
|
820
820
|
readonly url: string;
|
|
@@ -837,8 +837,8 @@ export declare const integrationsClient: Effect.Effect<{
|
|
|
837
837
|
} | {
|
|
838
838
|
readonly success: boolean;
|
|
839
839
|
} | {
|
|
840
|
-
readonly success: boolean;
|
|
841
840
|
readonly newKey: string;
|
|
841
|
+
readonly success: boolean;
|
|
842
842
|
} | {
|
|
843
843
|
readonly url: string;
|
|
844
844
|
} | {
|
|
@@ -850,8 +850,8 @@ export declare const integrationsClient: Effect.Effect<{
|
|
|
850
850
|
readonly expiresAt?: number | undefined;
|
|
851
851
|
}[];
|
|
852
852
|
} | {
|
|
853
|
-
readonly success: boolean;
|
|
854
853
|
readonly message: string;
|
|
854
|
+
readonly success: boolean;
|
|
855
855
|
readonly provider: string;
|
|
856
856
|
}, import("effect/ParseResult").ParseError | import("@effect/platform/HttpApiError").HttpApiDecodeError | import("@withstudiocms/api-spec/astro-context").AstroLocalsMissing | import("@withstudiocms/api-spec/integrations").IntegrationsAPIError | import("@effect/platform/HttpClientError").HttpClientError, never>;
|
|
857
857
|
readonly storageManagerUpload: <WithResponse extends boolean = false>(request: {
|
|
@@ -874,118 +874,39 @@ export declare const integrationsClient: Effect.Effect<{
|
|
|
874
874
|
*/
|
|
875
875
|
export declare const restClient: Effect.Effect<{
|
|
876
876
|
readonly restV1Public: {
|
|
877
|
-
readonly getCategories: <WithResponse extends boolean = false>(request: {
|
|
878
|
-
readonly urlParams: {
|
|
879
|
-
readonly name?: string | undefined;
|
|
880
|
-
readonly parent?: number | undefined;
|
|
881
|
-
};
|
|
882
|
-
readonly withResponse?: WithResponse | undefined;
|
|
883
|
-
}) => Effect.Effect<WithResponse extends true ? [readonly {
|
|
884
|
-
readonly id: number;
|
|
885
|
-
readonly name: string;
|
|
886
|
-
readonly description: string;
|
|
887
|
-
readonly parent?: number | null | undefined;
|
|
888
|
-
readonly slug: string;
|
|
889
|
-
readonly meta: {
|
|
890
|
-
readonly [x: string]: unknown;
|
|
891
|
-
};
|
|
892
|
-
}[], import("@effect/platform/HttpClientResponse").HttpClientResponse] : readonly {
|
|
893
|
-
readonly id: number;
|
|
894
|
-
readonly name: string;
|
|
895
|
-
readonly description: string;
|
|
896
|
-
readonly parent?: number | null | undefined;
|
|
897
|
-
readonly slug: string;
|
|
898
|
-
readonly meta: {
|
|
899
|
-
readonly [x: string]: unknown;
|
|
900
|
-
};
|
|
901
|
-
}[], import("effect/ParseResult").ParseError | import("@effect/platform/HttpApiError").HttpApiDecodeError | import("node_modules/@withstudiocms/api-spec/dist/rest-api/errors.d.mts").RestAPIError | import("@effect/platform/HttpClientError").HttpClientError, never>;
|
|
902
|
-
readonly getCategory: <WithResponse extends boolean = false>(request: {
|
|
903
|
-
readonly path: {
|
|
904
|
-
readonly id: number;
|
|
905
|
-
};
|
|
906
|
-
readonly withResponse?: WithResponse | undefined;
|
|
907
|
-
}) => Effect.Effect<WithResponse extends true ? [{
|
|
908
|
-
readonly id: number;
|
|
909
|
-
readonly name: string;
|
|
910
|
-
readonly description: string;
|
|
911
|
-
readonly parent?: number | null | undefined;
|
|
912
|
-
readonly slug: string;
|
|
913
|
-
readonly meta: {
|
|
914
|
-
readonly [x: string]: unknown;
|
|
915
|
-
};
|
|
916
|
-
}, import("@effect/platform/HttpClientResponse").HttpClientResponse] : {
|
|
917
|
-
readonly id: number;
|
|
918
|
-
readonly name: string;
|
|
919
|
-
readonly description: string;
|
|
920
|
-
readonly parent?: number | null | undefined;
|
|
921
|
-
readonly slug: string;
|
|
922
|
-
readonly meta: {
|
|
923
|
-
readonly [x: string]: unknown;
|
|
924
|
-
};
|
|
925
|
-
}, import("effect/ParseResult").ParseError | import("@effect/platform/HttpApiError").HttpApiDecodeError | import("node_modules/@withstudiocms/api-spec/dist/rest-api/errors.d.mts").RestAPIError | import("@effect/platform/HttpClientError").HttpClientError, never>;
|
|
926
|
-
readonly getFolders: <WithResponse extends boolean = false>(request: {
|
|
927
|
-
readonly urlParams: {
|
|
928
|
-
readonly name?: string | undefined;
|
|
929
|
-
readonly parent?: string | undefined;
|
|
930
|
-
};
|
|
931
|
-
readonly withResponse?: WithResponse | undefined;
|
|
932
|
-
}) => Effect.Effect<WithResponse extends true ? [readonly {
|
|
933
|
-
readonly id: string;
|
|
934
|
-
readonly name: string;
|
|
935
|
-
readonly parent?: string | null | undefined;
|
|
936
|
-
}[], import("@effect/platform/HttpClientResponse").HttpClientResponse] : readonly {
|
|
937
|
-
readonly id: string;
|
|
938
|
-
readonly name: string;
|
|
939
|
-
readonly parent?: string | null | undefined;
|
|
940
|
-
}[], import("effect/ParseResult").ParseError | import("@effect/platform/HttpApiError").HttpApiDecodeError | import("node_modules/@withstudiocms/api-spec/dist/rest-api/errors.d.mts").RestAPIError | import("@effect/platform/HttpClientError").HttpClientError, never>;
|
|
941
|
-
readonly getFolder: <WithResponse extends boolean = false>(request: {
|
|
942
|
-
readonly path: {
|
|
943
|
-
readonly id: string;
|
|
944
|
-
};
|
|
945
|
-
readonly withResponse?: WithResponse | undefined;
|
|
946
|
-
}) => Effect.Effect<WithResponse extends true ? [{
|
|
947
|
-
readonly id: string;
|
|
948
|
-
readonly name: string;
|
|
949
|
-
readonly parent?: string | null | undefined;
|
|
950
|
-
}, import("@effect/platform/HttpClientResponse").HttpClientResponse] : {
|
|
951
|
-
readonly id: string;
|
|
952
|
-
readonly name: string;
|
|
953
|
-
readonly parent?: string | null | undefined;
|
|
954
|
-
}, import("effect/ParseResult").ParseError | import("@effect/platform/HttpApiError").HttpApiDecodeError | import("node_modules/@withstudiocms/api-spec/dist/rest-api/errors.d.mts").RestAPIError | import("@effect/platform/HttpClientError").HttpClientError, never>;
|
|
955
877
|
readonly getPages: <WithResponse extends boolean = false>(request: {
|
|
956
878
|
readonly urlParams: {
|
|
957
879
|
readonly title?: string | undefined;
|
|
958
880
|
readonly slug?: string | undefined;
|
|
959
|
-
readonly author?: string | undefined;
|
|
960
881
|
readonly parentFolder?: string | undefined;
|
|
882
|
+
readonly author?: string | undefined;
|
|
961
883
|
};
|
|
962
884
|
readonly withResponse?: WithResponse | undefined;
|
|
963
885
|
}) => Effect.Effect<WithResponse extends true ? [readonly {
|
|
886
|
+
readonly description: string;
|
|
964
887
|
readonly id: string;
|
|
965
888
|
readonly updatedAt: Date;
|
|
966
|
-
readonly description: string;
|
|
967
889
|
readonly title: string;
|
|
890
|
+
readonly package: string;
|
|
891
|
+
readonly showOnNav: boolean;
|
|
892
|
+
readonly publishedAt: Date;
|
|
893
|
+
readonly slug: string;
|
|
894
|
+
readonly contentLang: string;
|
|
895
|
+
readonly heroImage?: string | null | undefined;
|
|
968
896
|
readonly categories: readonly {
|
|
897
|
+
readonly description: string;
|
|
969
898
|
readonly id: number;
|
|
970
899
|
readonly name: string;
|
|
971
|
-
readonly description: string;
|
|
972
|
-
readonly parent?: number | null | undefined;
|
|
973
900
|
readonly slug: string;
|
|
974
901
|
readonly meta: {
|
|
975
902
|
readonly [x: string]: unknown;
|
|
976
903
|
};
|
|
904
|
+
readonly parent?: number | null | undefined;
|
|
977
905
|
}[];
|
|
978
|
-
readonly slug: string;
|
|
979
|
-
readonly parentFolder?: string | null | undefined;
|
|
980
|
-
readonly package: string;
|
|
981
|
-
readonly showOnNav: boolean;
|
|
982
|
-
readonly publishedAt: Date;
|
|
983
|
-
readonly contentLang: string;
|
|
984
|
-
readonly heroImage?: string | null | undefined;
|
|
985
906
|
readonly tags: readonly {
|
|
907
|
+
readonly description: string;
|
|
986
908
|
readonly id: number;
|
|
987
909
|
readonly name: string;
|
|
988
|
-
readonly description: string;
|
|
989
910
|
readonly slug: string;
|
|
990
911
|
readonly meta: {
|
|
991
912
|
readonly [x: string]: unknown;
|
|
@@ -995,19 +916,20 @@ export declare const restClient: Effect.Effect<{
|
|
|
995
916
|
readonly contributorIds: readonly string[];
|
|
996
917
|
readonly showAuthor: boolean;
|
|
997
918
|
readonly showContributors: boolean;
|
|
919
|
+
readonly parentFolder?: string | null | undefined;
|
|
998
920
|
readonly draft: boolean;
|
|
999
921
|
readonly augments: readonly string[];
|
|
1000
922
|
readonly multiLangContent: readonly {
|
|
1001
923
|
readonly id: string;
|
|
924
|
+
readonly content: string;
|
|
1002
925
|
readonly contentLang: string;
|
|
1003
926
|
readonly contentId: string;
|
|
1004
|
-
readonly content: string;
|
|
1005
927
|
}[];
|
|
1006
928
|
readonly defaultContent: {
|
|
1007
929
|
readonly id: string;
|
|
930
|
+
readonly content: string;
|
|
1008
931
|
readonly contentLang: string;
|
|
1009
932
|
readonly contentId: string;
|
|
1010
|
-
readonly content: string;
|
|
1011
933
|
} | undefined;
|
|
1012
934
|
readonly urlRoute: string;
|
|
1013
935
|
readonly authorData: {
|
|
@@ -1033,31 +955,30 @@ export declare const restClient: Effect.Effect<{
|
|
|
1033
955
|
readonly notifications?: string | null | undefined;
|
|
1034
956
|
}[];
|
|
1035
957
|
}[], import("@effect/platform/HttpClientResponse").HttpClientResponse] : readonly {
|
|
958
|
+
readonly description: string;
|
|
1036
959
|
readonly id: string;
|
|
1037
960
|
readonly updatedAt: Date;
|
|
1038
|
-
readonly description: string;
|
|
1039
961
|
readonly title: string;
|
|
962
|
+
readonly package: string;
|
|
963
|
+
readonly showOnNav: boolean;
|
|
964
|
+
readonly publishedAt: Date;
|
|
965
|
+
readonly slug: string;
|
|
966
|
+
readonly contentLang: string;
|
|
967
|
+
readonly heroImage?: string | null | undefined;
|
|
1040
968
|
readonly categories: readonly {
|
|
969
|
+
readonly description: string;
|
|
1041
970
|
readonly id: number;
|
|
1042
971
|
readonly name: string;
|
|
1043
|
-
readonly description: string;
|
|
1044
|
-
readonly parent?: number | null | undefined;
|
|
1045
972
|
readonly slug: string;
|
|
1046
973
|
readonly meta: {
|
|
1047
974
|
readonly [x: string]: unknown;
|
|
1048
975
|
};
|
|
976
|
+
readonly parent?: number | null | undefined;
|
|
1049
977
|
}[];
|
|
1050
|
-
readonly slug: string;
|
|
1051
|
-
readonly parentFolder?: string | null | undefined;
|
|
1052
|
-
readonly package: string;
|
|
1053
|
-
readonly showOnNav: boolean;
|
|
1054
|
-
readonly publishedAt: Date;
|
|
1055
|
-
readonly contentLang: string;
|
|
1056
|
-
readonly heroImage?: string | null | undefined;
|
|
1057
978
|
readonly tags: readonly {
|
|
979
|
+
readonly description: string;
|
|
1058
980
|
readonly id: number;
|
|
1059
981
|
readonly name: string;
|
|
1060
|
-
readonly description: string;
|
|
1061
982
|
readonly slug: string;
|
|
1062
983
|
readonly meta: {
|
|
1063
984
|
readonly [x: string]: unknown;
|
|
@@ -1067,19 +988,20 @@ export declare const restClient: Effect.Effect<{
|
|
|
1067
988
|
readonly contributorIds: readonly string[];
|
|
1068
989
|
readonly showAuthor: boolean;
|
|
1069
990
|
readonly showContributors: boolean;
|
|
991
|
+
readonly parentFolder?: string | null | undefined;
|
|
1070
992
|
readonly draft: boolean;
|
|
1071
993
|
readonly augments: readonly string[];
|
|
1072
994
|
readonly multiLangContent: readonly {
|
|
1073
995
|
readonly id: string;
|
|
996
|
+
readonly content: string;
|
|
1074
997
|
readonly contentLang: string;
|
|
1075
998
|
readonly contentId: string;
|
|
1076
|
-
readonly content: string;
|
|
1077
999
|
}[];
|
|
1078
1000
|
readonly defaultContent: {
|
|
1079
1001
|
readonly id: string;
|
|
1002
|
+
readonly content: string;
|
|
1080
1003
|
readonly contentLang: string;
|
|
1081
1004
|
readonly contentId: string;
|
|
1082
|
-
readonly content: string;
|
|
1083
1005
|
} | undefined;
|
|
1084
1006
|
readonly urlRoute: string;
|
|
1085
1007
|
readonly authorData: {
|
|
@@ -1111,31 +1033,30 @@ export declare const restClient: Effect.Effect<{
|
|
|
1111
1033
|
};
|
|
1112
1034
|
readonly withResponse?: WithResponse | undefined;
|
|
1113
1035
|
}) => Effect.Effect<WithResponse extends true ? [{
|
|
1036
|
+
readonly description: string;
|
|
1114
1037
|
readonly id: string;
|
|
1115
1038
|
readonly updatedAt: Date;
|
|
1116
|
-
readonly description: string;
|
|
1117
1039
|
readonly title: string;
|
|
1040
|
+
readonly package: string;
|
|
1041
|
+
readonly showOnNav: boolean;
|
|
1042
|
+
readonly publishedAt: Date;
|
|
1043
|
+
readonly slug: string;
|
|
1044
|
+
readonly contentLang: string;
|
|
1045
|
+
readonly heroImage?: string | null | undefined;
|
|
1118
1046
|
readonly categories: readonly {
|
|
1047
|
+
readonly description: string;
|
|
1119
1048
|
readonly id: number;
|
|
1120
1049
|
readonly name: string;
|
|
1121
|
-
readonly description: string;
|
|
1122
|
-
readonly parent?: number | null | undefined;
|
|
1123
1050
|
readonly slug: string;
|
|
1124
1051
|
readonly meta: {
|
|
1125
1052
|
readonly [x: string]: unknown;
|
|
1126
1053
|
};
|
|
1054
|
+
readonly parent?: number | null | undefined;
|
|
1127
1055
|
}[];
|
|
1128
|
-
readonly slug: string;
|
|
1129
|
-
readonly parentFolder?: string | null | undefined;
|
|
1130
|
-
readonly package: string;
|
|
1131
|
-
readonly showOnNav: boolean;
|
|
1132
|
-
readonly publishedAt: Date;
|
|
1133
|
-
readonly contentLang: string;
|
|
1134
|
-
readonly heroImage?: string | null | undefined;
|
|
1135
1056
|
readonly tags: readonly {
|
|
1057
|
+
readonly description: string;
|
|
1136
1058
|
readonly id: number;
|
|
1137
1059
|
readonly name: string;
|
|
1138
|
-
readonly description: string;
|
|
1139
1060
|
readonly slug: string;
|
|
1140
1061
|
readonly meta: {
|
|
1141
1062
|
readonly [x: string]: unknown;
|
|
@@ -1145,19 +1066,20 @@ export declare const restClient: Effect.Effect<{
|
|
|
1145
1066
|
readonly contributorIds: readonly string[];
|
|
1146
1067
|
readonly showAuthor: boolean;
|
|
1147
1068
|
readonly showContributors: boolean;
|
|
1069
|
+
readonly parentFolder?: string | null | undefined;
|
|
1148
1070
|
readonly draft: boolean;
|
|
1149
1071
|
readonly augments: readonly string[];
|
|
1150
1072
|
readonly multiLangContent: readonly {
|
|
1151
1073
|
readonly id: string;
|
|
1074
|
+
readonly content: string;
|
|
1152
1075
|
readonly contentLang: string;
|
|
1153
1076
|
readonly contentId: string;
|
|
1154
|
-
readonly content: string;
|
|
1155
1077
|
}[];
|
|
1156
1078
|
readonly defaultContent: {
|
|
1157
1079
|
readonly id: string;
|
|
1080
|
+
readonly content: string;
|
|
1158
1081
|
readonly contentLang: string;
|
|
1159
1082
|
readonly contentId: string;
|
|
1160
|
-
readonly content: string;
|
|
1161
1083
|
} | undefined;
|
|
1162
1084
|
readonly urlRoute: string;
|
|
1163
1085
|
readonly authorData: {
|
|
@@ -1183,31 +1105,30 @@ export declare const restClient: Effect.Effect<{
|
|
|
1183
1105
|
readonly notifications?: string | null | undefined;
|
|
1184
1106
|
}[];
|
|
1185
1107
|
}, import("@effect/platform/HttpClientResponse").HttpClientResponse] : {
|
|
1108
|
+
readonly description: string;
|
|
1186
1109
|
readonly id: string;
|
|
1187
1110
|
readonly updatedAt: Date;
|
|
1188
|
-
readonly description: string;
|
|
1189
1111
|
readonly title: string;
|
|
1112
|
+
readonly package: string;
|
|
1113
|
+
readonly showOnNav: boolean;
|
|
1114
|
+
readonly publishedAt: Date;
|
|
1115
|
+
readonly slug: string;
|
|
1116
|
+
readonly contentLang: string;
|
|
1117
|
+
readonly heroImage?: string | null | undefined;
|
|
1190
1118
|
readonly categories: readonly {
|
|
1119
|
+
readonly description: string;
|
|
1191
1120
|
readonly id: number;
|
|
1192
1121
|
readonly name: string;
|
|
1193
|
-
readonly description: string;
|
|
1194
|
-
readonly parent?: number | null | undefined;
|
|
1195
1122
|
readonly slug: string;
|
|
1196
1123
|
readonly meta: {
|
|
1197
1124
|
readonly [x: string]: unknown;
|
|
1198
1125
|
};
|
|
1126
|
+
readonly parent?: number | null | undefined;
|
|
1199
1127
|
}[];
|
|
1200
|
-
readonly slug: string;
|
|
1201
|
-
readonly parentFolder?: string | null | undefined;
|
|
1202
|
-
readonly package: string;
|
|
1203
|
-
readonly showOnNav: boolean;
|
|
1204
|
-
readonly publishedAt: Date;
|
|
1205
|
-
readonly contentLang: string;
|
|
1206
|
-
readonly heroImage?: string | null | undefined;
|
|
1207
1128
|
readonly tags: readonly {
|
|
1129
|
+
readonly description: string;
|
|
1208
1130
|
readonly id: number;
|
|
1209
1131
|
readonly name: string;
|
|
1210
|
-
readonly description: string;
|
|
1211
1132
|
readonly slug: string;
|
|
1212
1133
|
readonly meta: {
|
|
1213
1134
|
readonly [x: string]: unknown;
|
|
@@ -1217,19 +1138,20 @@ export declare const restClient: Effect.Effect<{
|
|
|
1217
1138
|
readonly contributorIds: readonly string[];
|
|
1218
1139
|
readonly showAuthor: boolean;
|
|
1219
1140
|
readonly showContributors: boolean;
|
|
1141
|
+
readonly parentFolder?: string | null | undefined;
|
|
1220
1142
|
readonly draft: boolean;
|
|
1221
1143
|
readonly augments: readonly string[];
|
|
1222
1144
|
readonly multiLangContent: readonly {
|
|
1223
1145
|
readonly id: string;
|
|
1146
|
+
readonly content: string;
|
|
1224
1147
|
readonly contentLang: string;
|
|
1225
1148
|
readonly contentId: string;
|
|
1226
|
-
readonly content: string;
|
|
1227
1149
|
}[];
|
|
1228
1150
|
readonly defaultContent: {
|
|
1229
1151
|
readonly id: string;
|
|
1152
|
+
readonly content: string;
|
|
1230
1153
|
readonly contentLang: string;
|
|
1231
1154
|
readonly contentId: string;
|
|
1232
|
-
readonly content: string;
|
|
1233
1155
|
} | undefined;
|
|
1234
1156
|
readonly urlRoute: string;
|
|
1235
1157
|
readonly authorData: {
|
|
@@ -1255,159 +1177,130 @@ export declare const restClient: Effect.Effect<{
|
|
|
1255
1177
|
readonly notifications?: string | null | undefined;
|
|
1256
1178
|
}[];
|
|
1257
1179
|
}, import("effect/ParseResult").ParseError | import("@effect/platform/HttpApiError").HttpApiDecodeError | import("node_modules/@withstudiocms/api-spec/dist/rest-api/errors.d.mts").RestAPIError | import("@effect/platform/HttpClientError").HttpClientError, never>;
|
|
1258
|
-
readonly
|
|
1180
|
+
readonly getCategories: <WithResponse extends boolean = false>(request: {
|
|
1259
1181
|
readonly urlParams: {
|
|
1260
1182
|
readonly name?: string | undefined;
|
|
1183
|
+
readonly parent?: number | undefined;
|
|
1261
1184
|
};
|
|
1262
1185
|
readonly withResponse?: WithResponse | undefined;
|
|
1263
1186
|
}) => Effect.Effect<WithResponse extends true ? [readonly {
|
|
1187
|
+
readonly description: string;
|
|
1264
1188
|
readonly id: number;
|
|
1265
1189
|
readonly name: string;
|
|
1266
|
-
readonly description: string;
|
|
1267
1190
|
readonly slug: string;
|
|
1268
1191
|
readonly meta: {
|
|
1269
1192
|
readonly [x: string]: unknown;
|
|
1270
1193
|
};
|
|
1194
|
+
readonly parent?: number | null | undefined;
|
|
1271
1195
|
}[], import("@effect/platform/HttpClientResponse").HttpClientResponse] : readonly {
|
|
1196
|
+
readonly description: string;
|
|
1272
1197
|
readonly id: number;
|
|
1273
1198
|
readonly name: string;
|
|
1274
|
-
readonly description: string;
|
|
1275
1199
|
readonly slug: string;
|
|
1276
1200
|
readonly meta: {
|
|
1277
1201
|
readonly [x: string]: unknown;
|
|
1278
1202
|
};
|
|
1203
|
+
readonly parent?: number | null | undefined;
|
|
1279
1204
|
}[], import("effect/ParseResult").ParseError | import("@effect/platform/HttpApiError").HttpApiDecodeError | import("node_modules/@withstudiocms/api-spec/dist/rest-api/errors.d.mts").RestAPIError | import("@effect/platform/HttpClientError").HttpClientError, never>;
|
|
1280
|
-
readonly
|
|
1205
|
+
readonly getCategory: <WithResponse extends boolean = false>(request: {
|
|
1281
1206
|
readonly path: {
|
|
1282
1207
|
readonly id: number;
|
|
1283
1208
|
};
|
|
1284
1209
|
readonly withResponse?: WithResponse | undefined;
|
|
1285
1210
|
}) => Effect.Effect<WithResponse extends true ? [{
|
|
1211
|
+
readonly description: string;
|
|
1286
1212
|
readonly id: number;
|
|
1287
1213
|
readonly name: string;
|
|
1288
|
-
readonly description: string;
|
|
1289
1214
|
readonly slug: string;
|
|
1290
1215
|
readonly meta: {
|
|
1291
1216
|
readonly [x: string]: unknown;
|
|
1292
1217
|
};
|
|
1218
|
+
readonly parent?: number | null | undefined;
|
|
1293
1219
|
}, import("@effect/platform/HttpClientResponse").HttpClientResponse] : {
|
|
1220
|
+
readonly description: string;
|
|
1294
1221
|
readonly id: number;
|
|
1295
1222
|
readonly name: string;
|
|
1296
|
-
readonly description: string;
|
|
1297
1223
|
readonly slug: string;
|
|
1298
1224
|
readonly meta: {
|
|
1299
1225
|
readonly [x: string]: unknown;
|
|
1300
1226
|
};
|
|
1227
|
+
readonly parent?: number | null | undefined;
|
|
1301
1228
|
}, import("effect/ParseResult").ParseError | import("@effect/platform/HttpApiError").HttpApiDecodeError | import("node_modules/@withstudiocms/api-spec/dist/rest-api/errors.d.mts").RestAPIError | import("@effect/platform/HttpClientError").HttpClientError, never>;
|
|
1302
|
-
|
|
1303
|
-
readonly restV1: {
|
|
1304
|
-
readonly getUsers: <WithResponse extends boolean = false>(request: {
|
|
1229
|
+
readonly getFolders: <WithResponse extends boolean = false>(request: {
|
|
1305
1230
|
readonly urlParams: {
|
|
1306
1231
|
readonly name?: string | undefined;
|
|
1307
|
-
readonly
|
|
1308
|
-
readonly rank?: string | undefined;
|
|
1232
|
+
readonly parent?: string | undefined;
|
|
1309
1233
|
};
|
|
1310
1234
|
readonly withResponse?: WithResponse | undefined;
|
|
1311
1235
|
}) => Effect.Effect<WithResponse extends true ? [readonly {
|
|
1312
1236
|
readonly id: string;
|
|
1313
|
-
readonly url?: string | null | undefined;
|
|
1314
1237
|
readonly name: string;
|
|
1315
|
-
readonly
|
|
1316
|
-
readonly avatar?: string | null | undefined;
|
|
1317
|
-
readonly username: string;
|
|
1318
|
-
readonly updatedAt: Date;
|
|
1319
|
-
readonly createdAt: Date;
|
|
1238
|
+
readonly parent?: string | null | undefined;
|
|
1320
1239
|
}[], import("@effect/platform/HttpClientResponse").HttpClientResponse] : readonly {
|
|
1321
1240
|
readonly id: string;
|
|
1322
|
-
readonly url?: string | null | undefined;
|
|
1323
|
-
readonly name: string;
|
|
1324
|
-
readonly email?: string | null | undefined;
|
|
1325
|
-
readonly avatar?: string | null | undefined;
|
|
1326
|
-
readonly username: string;
|
|
1327
|
-
readonly updatedAt: Date;
|
|
1328
|
-
readonly createdAt: Date;
|
|
1329
|
-
}[], import("effect/ParseResult").ParseError | import("@effect/platform/HttpApiError").HttpApiDecodeError | import("node_modules/@withstudiocms/api-spec/dist/rest-api/errors.d.mts").RestAPIError | import("node_modules/@withstudiocms/api-spec/dist/rest-api/middleware.d.mts").Unauthorized | import("@effect/platform/HttpClientError").HttpClientError, never>;
|
|
1330
|
-
readonly createUser: <WithResponse extends boolean = false>(request: {
|
|
1331
|
-
readonly payload: import("node_modules/@withstudiocms/api-spec/dist/rest-api/schemas.d.mts").RestUsersIndexJSONData;
|
|
1332
|
-
readonly withResponse?: WithResponse | undefined;
|
|
1333
|
-
}) => Effect.Effect<WithResponse extends true ? [{
|
|
1334
|
-
readonly id: string;
|
|
1335
|
-
readonly url?: string | null | undefined;
|
|
1336
|
-
readonly name: string;
|
|
1337
|
-
readonly email?: string | null | undefined;
|
|
1338
|
-
readonly avatar?: string | null | undefined;
|
|
1339
|
-
readonly username: string;
|
|
1340
|
-
readonly updatedAt: Date;
|
|
1341
|
-
readonly createdAt: Date;
|
|
1342
|
-
}, import("@effect/platform/HttpClientResponse").HttpClientResponse] : {
|
|
1343
|
-
readonly id: string;
|
|
1344
|
-
readonly url?: string | null | undefined;
|
|
1345
1241
|
readonly name: string;
|
|
1346
|
-
readonly
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
readonly updatedAt: Date;
|
|
1350
|
-
readonly createdAt: Date;
|
|
1351
|
-
}, import("effect/ParseResult").ParseError | import("@effect/platform/HttpApiError").HttpApiDecodeError | import("node_modules/@withstudiocms/api-spec/dist/rest-api/errors.d.mts").RestAPIError | import("node_modules/@withstudiocms/api-spec/dist/rest-api/middleware.d.mts").Unauthorized | import("@effect/platform/HttpClientError").HttpClientError, never>;
|
|
1352
|
-
readonly getUser: <WithResponse extends boolean = false>(request: {
|
|
1242
|
+
readonly parent?: string | null | undefined;
|
|
1243
|
+
}[], import("effect/ParseResult").ParseError | import("@effect/platform/HttpApiError").HttpApiDecodeError | import("node_modules/@withstudiocms/api-spec/dist/rest-api/errors.d.mts").RestAPIError | import("@effect/platform/HttpClientError").HttpClientError, never>;
|
|
1244
|
+
readonly getFolder: <WithResponse extends boolean = false>(request: {
|
|
1353
1245
|
readonly path: {
|
|
1354
1246
|
readonly id: string;
|
|
1355
1247
|
};
|
|
1356
1248
|
readonly withResponse?: WithResponse | undefined;
|
|
1357
1249
|
}) => Effect.Effect<WithResponse extends true ? [{
|
|
1358
1250
|
readonly id: string;
|
|
1359
|
-
readonly url?: string | null | undefined;
|
|
1360
1251
|
readonly name: string;
|
|
1361
|
-
readonly
|
|
1362
|
-
readonly avatar?: string | null | undefined;
|
|
1363
|
-
readonly username: string;
|
|
1364
|
-
readonly updatedAt: Date;
|
|
1365
|
-
readonly createdAt: Date;
|
|
1252
|
+
readonly parent?: string | null | undefined;
|
|
1366
1253
|
}, import("@effect/platform/HttpClientResponse").HttpClientResponse] : {
|
|
1367
1254
|
readonly id: string;
|
|
1368
|
-
readonly url?: string | null | undefined;
|
|
1369
1255
|
readonly name: string;
|
|
1370
|
-
readonly
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
readonly
|
|
1374
|
-
|
|
1375
|
-
}, import("effect/ParseResult").ParseError | import("@effect/platform/HttpApiError").HttpApiDecodeError | import("node_modules/@withstudiocms/api-spec/dist/rest-api/errors.d.mts").RestAPIError | import("node_modules/@withstudiocms/api-spec/dist/rest-api/middleware.d.mts").Unauthorized | import("@effect/platform/HttpClientError").HttpClientError, never>;
|
|
1376
|
-
readonly updateUser: <WithResponse extends boolean = false>(request: {
|
|
1377
|
-
readonly path: {
|
|
1378
|
-
readonly id: string;
|
|
1256
|
+
readonly parent?: string | null | undefined;
|
|
1257
|
+
}, import("effect/ParseResult").ParseError | import("@effect/platform/HttpApiError").HttpApiDecodeError | import("node_modules/@withstudiocms/api-spec/dist/rest-api/errors.d.mts").RestAPIError | import("@effect/platform/HttpClientError").HttpClientError, never>;
|
|
1258
|
+
readonly getTags: <WithResponse extends boolean = false>(request: {
|
|
1259
|
+
readonly urlParams: {
|
|
1260
|
+
readonly name?: string | undefined;
|
|
1379
1261
|
};
|
|
1380
|
-
readonly payload: import("node_modules/@withstudiocms/api-spec/dist/rest-api/schemas.d.mts").RestUsersIdJSONData;
|
|
1381
1262
|
readonly withResponse?: WithResponse | undefined;
|
|
1382
|
-
}) => Effect.Effect<WithResponse extends true ? [{
|
|
1383
|
-
readonly
|
|
1384
|
-
readonly
|
|
1263
|
+
}) => Effect.Effect<WithResponse extends true ? [readonly {
|
|
1264
|
+
readonly description: string;
|
|
1265
|
+
readonly id: number;
|
|
1385
1266
|
readonly name: string;
|
|
1386
|
-
readonly
|
|
1387
|
-
readonly
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
readonly id:
|
|
1393
|
-
readonly url?: string | null | undefined;
|
|
1267
|
+
readonly slug: string;
|
|
1268
|
+
readonly meta: {
|
|
1269
|
+
readonly [x: string]: unknown;
|
|
1270
|
+
};
|
|
1271
|
+
}[], import("@effect/platform/HttpClientResponse").HttpClientResponse] : readonly {
|
|
1272
|
+
readonly description: string;
|
|
1273
|
+
readonly id: number;
|
|
1394
1274
|
readonly name: string;
|
|
1395
|
-
readonly
|
|
1396
|
-
readonly
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
readonly deleteUser: <WithResponse extends boolean = false>(request: {
|
|
1275
|
+
readonly slug: string;
|
|
1276
|
+
readonly meta: {
|
|
1277
|
+
readonly [x: string]: unknown;
|
|
1278
|
+
};
|
|
1279
|
+
}[], import("effect/ParseResult").ParseError | import("@effect/platform/HttpApiError").HttpApiDecodeError | import("node_modules/@withstudiocms/api-spec/dist/rest-api/errors.d.mts").RestAPIError | import("@effect/platform/HttpClientError").HttpClientError, never>;
|
|
1280
|
+
readonly getTag: <WithResponse extends boolean = false>(request: {
|
|
1402
1281
|
readonly path: {
|
|
1403
|
-
readonly id:
|
|
1282
|
+
readonly id: number;
|
|
1404
1283
|
};
|
|
1405
1284
|
readonly withResponse?: WithResponse | undefined;
|
|
1406
1285
|
}) => Effect.Effect<WithResponse extends true ? [{
|
|
1407
|
-
readonly
|
|
1286
|
+
readonly description: string;
|
|
1287
|
+
readonly id: number;
|
|
1288
|
+
readonly name: string;
|
|
1289
|
+
readonly slug: string;
|
|
1290
|
+
readonly meta: {
|
|
1291
|
+
readonly [x: string]: unknown;
|
|
1292
|
+
};
|
|
1408
1293
|
}, import("@effect/platform/HttpClientResponse").HttpClientResponse] : {
|
|
1409
|
-
readonly
|
|
1410
|
-
|
|
1294
|
+
readonly description: string;
|
|
1295
|
+
readonly id: number;
|
|
1296
|
+
readonly name: string;
|
|
1297
|
+
readonly slug: string;
|
|
1298
|
+
readonly meta: {
|
|
1299
|
+
readonly [x: string]: unknown;
|
|
1300
|
+
};
|
|
1301
|
+
}, import("effect/ParseResult").ParseError | import("@effect/platform/HttpApiError").HttpApiDecodeError | import("node_modules/@withstudiocms/api-spec/dist/rest-api/errors.d.mts").RestAPIError | import("@effect/platform/HttpClientError").HttpClientError, never>;
|
|
1302
|
+
};
|
|
1303
|
+
readonly restV1: {
|
|
1411
1304
|
readonly deleteCategory: <WithResponse extends boolean = false>(request: {
|
|
1412
1305
|
readonly path: {
|
|
1413
1306
|
readonly id: number;
|
|
@@ -1424,57 +1317,57 @@ export declare const restClient: Effect.Effect<{
|
|
|
1424
1317
|
};
|
|
1425
1318
|
readonly withResponse?: WithResponse | undefined;
|
|
1426
1319
|
}) => Effect.Effect<WithResponse extends true ? [{
|
|
1320
|
+
readonly description: string;
|
|
1427
1321
|
readonly id: number;
|
|
1428
1322
|
readonly name: string;
|
|
1429
|
-
readonly description: string;
|
|
1430
|
-
readonly parent?: number | null | undefined;
|
|
1431
1323
|
readonly slug: string;
|
|
1432
1324
|
readonly meta: {
|
|
1433
1325
|
readonly [x: string]: unknown;
|
|
1434
1326
|
};
|
|
1327
|
+
readonly parent?: number | null | undefined;
|
|
1435
1328
|
}, import("@effect/platform/HttpClientResponse").HttpClientResponse] : {
|
|
1329
|
+
readonly description: string;
|
|
1436
1330
|
readonly id: number;
|
|
1437
1331
|
readonly name: string;
|
|
1438
|
-
readonly description: string;
|
|
1439
|
-
readonly parent?: number | null | undefined;
|
|
1440
1332
|
readonly slug: string;
|
|
1441
1333
|
readonly meta: {
|
|
1442
1334
|
readonly [x: string]: unknown;
|
|
1443
1335
|
};
|
|
1336
|
+
readonly parent?: number | null | undefined;
|
|
1444
1337
|
}, import("effect/ParseResult").ParseError | import("@effect/platform/HttpApiError").HttpApiDecodeError | import("node_modules/@withstudiocms/api-spec/dist/rest-api/errors.d.mts").RestAPIError | import("node_modules/@withstudiocms/api-spec/dist/rest-api/middleware.d.mts").Unauthorized | import("@effect/platform/HttpClientError").HttpClientError, never>;
|
|
1445
1338
|
readonly updateCategory: <WithResponse extends boolean = false>(request: {
|
|
1446
1339
|
readonly path: {
|
|
1447
1340
|
readonly id: number;
|
|
1448
1341
|
};
|
|
1449
1342
|
readonly payload: {
|
|
1343
|
+
readonly description?: string | undefined;
|
|
1450
1344
|
readonly id?: number | undefined;
|
|
1451
1345
|
readonly name?: string | undefined;
|
|
1452
|
-
readonly description?: string | undefined;
|
|
1453
|
-
readonly parent?: number | null | undefined;
|
|
1454
1346
|
readonly slug?: string | undefined;
|
|
1455
1347
|
readonly meta?: {
|
|
1456
1348
|
readonly [x: string]: unknown;
|
|
1457
1349
|
} | undefined;
|
|
1350
|
+
readonly parent?: number | null | undefined;
|
|
1458
1351
|
};
|
|
1459
1352
|
readonly withResponse?: WithResponse | undefined;
|
|
1460
1353
|
}) => Effect.Effect<WithResponse extends true ? [{
|
|
1354
|
+
readonly description: string;
|
|
1461
1355
|
readonly id: number;
|
|
1462
1356
|
readonly name: string;
|
|
1463
|
-
readonly description: string;
|
|
1464
|
-
readonly parent?: number | null | undefined;
|
|
1465
1357
|
readonly slug: string;
|
|
1466
1358
|
readonly meta: {
|
|
1467
1359
|
readonly [x: string]: unknown;
|
|
1468
1360
|
};
|
|
1361
|
+
readonly parent?: number | null | undefined;
|
|
1469
1362
|
}, import("@effect/platform/HttpClientResponse").HttpClientResponse] : {
|
|
1363
|
+
readonly description: string;
|
|
1470
1364
|
readonly id: number;
|
|
1471
1365
|
readonly name: string;
|
|
1472
|
-
readonly description: string;
|
|
1473
|
-
readonly parent?: number | null | undefined;
|
|
1474
1366
|
readonly slug: string;
|
|
1475
1367
|
readonly meta: {
|
|
1476
1368
|
readonly [x: string]: unknown;
|
|
1477
1369
|
};
|
|
1370
|
+
readonly parent?: number | null | undefined;
|
|
1478
1371
|
}, import("effect/ParseResult").ParseError | import("@effect/platform/HttpApiError").HttpApiDecodeError | import("node_modules/@withstudiocms/api-spec/dist/rest-api/errors.d.mts").RestAPIError | import("node_modules/@withstudiocms/api-spec/dist/rest-api/middleware.d.mts").Unauthorized | import("@effect/platform/HttpClientError").HttpClientError, never>;
|
|
1479
1372
|
readonly getCategories: <WithResponse extends boolean = false>(request: {
|
|
1480
1373
|
readonly urlParams: {
|
|
@@ -1483,51 +1376,51 @@ export declare const restClient: Effect.Effect<{
|
|
|
1483
1376
|
};
|
|
1484
1377
|
readonly withResponse?: WithResponse | undefined;
|
|
1485
1378
|
}) => Effect.Effect<WithResponse extends true ? [readonly {
|
|
1379
|
+
readonly description: string;
|
|
1486
1380
|
readonly id: number;
|
|
1487
1381
|
readonly name: string;
|
|
1488
|
-
readonly description: string;
|
|
1489
|
-
readonly parent?: number | null | undefined;
|
|
1490
1382
|
readonly slug: string;
|
|
1491
1383
|
readonly meta: {
|
|
1492
1384
|
readonly [x: string]: unknown;
|
|
1493
1385
|
};
|
|
1386
|
+
readonly parent?: number | null | undefined;
|
|
1494
1387
|
}[], import("@effect/platform/HttpClientResponse").HttpClientResponse] : readonly {
|
|
1388
|
+
readonly description: string;
|
|
1495
1389
|
readonly id: number;
|
|
1496
1390
|
readonly name: string;
|
|
1497
|
-
readonly description: string;
|
|
1498
|
-
readonly parent?: number | null | undefined;
|
|
1499
1391
|
readonly slug: string;
|
|
1500
1392
|
readonly meta: {
|
|
1501
1393
|
readonly [x: string]: unknown;
|
|
1502
1394
|
};
|
|
1395
|
+
readonly parent?: number | null | undefined;
|
|
1503
1396
|
}[], import("effect/ParseResult").ParseError | import("@effect/platform/HttpApiError").HttpApiDecodeError | import("node_modules/@withstudiocms/api-spec/dist/rest-api/errors.d.mts").RestAPIError | import("node_modules/@withstudiocms/api-spec/dist/rest-api/middleware.d.mts").Unauthorized | import("@effect/platform/HttpClientError").HttpClientError, never>;
|
|
1504
1397
|
readonly createCategory: <WithResponse extends boolean = false>(request: {
|
|
1505
1398
|
readonly payload: {
|
|
1506
|
-
readonly name: string;
|
|
1507
1399
|
readonly description: string;
|
|
1508
|
-
readonly
|
|
1400
|
+
readonly name: string;
|
|
1509
1401
|
readonly slug: string;
|
|
1510
1402
|
readonly meta: string;
|
|
1403
|
+
readonly parent?: number | null | undefined;
|
|
1511
1404
|
};
|
|
1512
1405
|
readonly withResponse?: WithResponse | undefined;
|
|
1513
1406
|
}) => Effect.Effect<WithResponse extends true ? [{
|
|
1407
|
+
readonly description: string;
|
|
1514
1408
|
readonly id: number;
|
|
1515
1409
|
readonly name: string;
|
|
1516
|
-
readonly description: string;
|
|
1517
|
-
readonly parent?: number | null | undefined;
|
|
1518
1410
|
readonly slug: string;
|
|
1519
1411
|
readonly meta: {
|
|
1520
1412
|
readonly [x: string]: unknown;
|
|
1521
1413
|
};
|
|
1414
|
+
readonly parent?: number | null | undefined;
|
|
1522
1415
|
}, import("@effect/platform/HttpClientResponse").HttpClientResponse] : {
|
|
1416
|
+
readonly description: string;
|
|
1523
1417
|
readonly id: number;
|
|
1524
1418
|
readonly name: string;
|
|
1525
|
-
readonly description: string;
|
|
1526
|
-
readonly parent?: number | null | undefined;
|
|
1527
1419
|
readonly slug: string;
|
|
1528
1420
|
readonly meta: {
|
|
1529
1421
|
readonly [x: string]: unknown;
|
|
1530
1422
|
};
|
|
1423
|
+
readonly parent?: number | null | undefined;
|
|
1531
1424
|
}, import("effect/ParseResult").ParseError | import("@effect/platform/HttpApiError").HttpApiDecodeError | import("node_modules/@withstudiocms/api-spec/dist/rest-api/errors.d.mts").RestAPIError | import("node_modules/@withstudiocms/api-spec/dist/rest-api/middleware.d.mts").Unauthorized | import("@effect/platform/HttpClientError").HttpClientError, never>;
|
|
1532
1425
|
readonly deleteFolder: <WithResponse extends boolean = false>(request: {
|
|
1533
1426
|
readonly path: {
|
|
@@ -1609,31 +1502,30 @@ export declare const restClient: Effect.Effect<{
|
|
|
1609
1502
|
};
|
|
1610
1503
|
readonly withResponse?: WithResponse | undefined;
|
|
1611
1504
|
}) => Effect.Effect<WithResponse extends true ? [{
|
|
1505
|
+
readonly description: string;
|
|
1612
1506
|
readonly id: string;
|
|
1613
1507
|
readonly updatedAt: Date;
|
|
1614
|
-
readonly description: string;
|
|
1615
1508
|
readonly title: string;
|
|
1509
|
+
readonly package: string;
|
|
1510
|
+
readonly showOnNav: boolean;
|
|
1511
|
+
readonly publishedAt: Date;
|
|
1512
|
+
readonly slug: string;
|
|
1513
|
+
readonly contentLang: string;
|
|
1514
|
+
readonly heroImage?: string | null | undefined;
|
|
1616
1515
|
readonly categories: readonly {
|
|
1516
|
+
readonly description: string;
|
|
1617
1517
|
readonly id: number;
|
|
1618
1518
|
readonly name: string;
|
|
1619
|
-
readonly description: string;
|
|
1620
|
-
readonly parent?: number | null | undefined;
|
|
1621
1519
|
readonly slug: string;
|
|
1622
1520
|
readonly meta: {
|
|
1623
1521
|
readonly [x: string]: unknown;
|
|
1624
1522
|
};
|
|
1523
|
+
readonly parent?: number | null | undefined;
|
|
1625
1524
|
}[];
|
|
1626
|
-
readonly slug: string;
|
|
1627
|
-
readonly parentFolder?: string | null | undefined;
|
|
1628
|
-
readonly package: string;
|
|
1629
|
-
readonly showOnNav: boolean;
|
|
1630
|
-
readonly publishedAt: Date;
|
|
1631
|
-
readonly contentLang: string;
|
|
1632
|
-
readonly heroImage?: string | null | undefined;
|
|
1633
1525
|
readonly tags: readonly {
|
|
1526
|
+
readonly description: string;
|
|
1634
1527
|
readonly id: number;
|
|
1635
1528
|
readonly name: string;
|
|
1636
|
-
readonly description: string;
|
|
1637
1529
|
readonly slug: string;
|
|
1638
1530
|
readonly meta: {
|
|
1639
1531
|
readonly [x: string]: unknown;
|
|
@@ -1643,19 +1535,20 @@ export declare const restClient: Effect.Effect<{
|
|
|
1643
1535
|
readonly contributorIds: readonly string[];
|
|
1644
1536
|
readonly showAuthor: boolean;
|
|
1645
1537
|
readonly showContributors: boolean;
|
|
1538
|
+
readonly parentFolder?: string | null | undefined;
|
|
1646
1539
|
readonly draft: boolean;
|
|
1647
1540
|
readonly augments: readonly string[];
|
|
1648
1541
|
readonly multiLangContent: readonly {
|
|
1649
1542
|
readonly id: string;
|
|
1543
|
+
readonly content: string;
|
|
1650
1544
|
readonly contentLang: string;
|
|
1651
1545
|
readonly contentId: string;
|
|
1652
|
-
readonly content: string;
|
|
1653
1546
|
}[];
|
|
1654
1547
|
readonly defaultContent: {
|
|
1655
1548
|
readonly id: string;
|
|
1549
|
+
readonly content: string;
|
|
1656
1550
|
readonly contentLang: string;
|
|
1657
1551
|
readonly contentId: string;
|
|
1658
|
-
readonly content: string;
|
|
1659
1552
|
} | undefined;
|
|
1660
1553
|
readonly urlRoute: string;
|
|
1661
1554
|
readonly authorData: {
|
|
@@ -1681,31 +1574,30 @@ export declare const restClient: Effect.Effect<{
|
|
|
1681
1574
|
readonly notifications?: string | null | undefined;
|
|
1682
1575
|
}[];
|
|
1683
1576
|
}, import("@effect/platform/HttpClientResponse").HttpClientResponse] : {
|
|
1577
|
+
readonly description: string;
|
|
1684
1578
|
readonly id: string;
|
|
1685
1579
|
readonly updatedAt: Date;
|
|
1686
|
-
readonly description: string;
|
|
1687
1580
|
readonly title: string;
|
|
1581
|
+
readonly package: string;
|
|
1582
|
+
readonly showOnNav: boolean;
|
|
1583
|
+
readonly publishedAt: Date;
|
|
1584
|
+
readonly slug: string;
|
|
1585
|
+
readonly contentLang: string;
|
|
1586
|
+
readonly heroImage?: string | null | undefined;
|
|
1688
1587
|
readonly categories: readonly {
|
|
1588
|
+
readonly description: string;
|
|
1689
1589
|
readonly id: number;
|
|
1690
1590
|
readonly name: string;
|
|
1691
|
-
readonly description: string;
|
|
1692
|
-
readonly parent?: number | null | undefined;
|
|
1693
1591
|
readonly slug: string;
|
|
1694
1592
|
readonly meta: {
|
|
1695
1593
|
readonly [x: string]: unknown;
|
|
1696
1594
|
};
|
|
1595
|
+
readonly parent?: number | null | undefined;
|
|
1697
1596
|
}[];
|
|
1698
|
-
readonly slug: string;
|
|
1699
|
-
readonly parentFolder?: string | null | undefined;
|
|
1700
|
-
readonly package: string;
|
|
1701
|
-
readonly showOnNav: boolean;
|
|
1702
|
-
readonly publishedAt: Date;
|
|
1703
|
-
readonly contentLang: string;
|
|
1704
|
-
readonly heroImage?: string | null | undefined;
|
|
1705
1597
|
readonly tags: readonly {
|
|
1598
|
+
readonly description: string;
|
|
1706
1599
|
readonly id: number;
|
|
1707
1600
|
readonly name: string;
|
|
1708
|
-
readonly description: string;
|
|
1709
1601
|
readonly slug: string;
|
|
1710
1602
|
readonly meta: {
|
|
1711
1603
|
readonly [x: string]: unknown;
|
|
@@ -1715,19 +1607,20 @@ export declare const restClient: Effect.Effect<{
|
|
|
1715
1607
|
readonly contributorIds: readonly string[];
|
|
1716
1608
|
readonly showAuthor: boolean;
|
|
1717
1609
|
readonly showContributors: boolean;
|
|
1610
|
+
readonly parentFolder?: string | null | undefined;
|
|
1718
1611
|
readonly draft: boolean;
|
|
1719
1612
|
readonly augments: readonly string[];
|
|
1720
1613
|
readonly multiLangContent: readonly {
|
|
1721
1614
|
readonly id: string;
|
|
1615
|
+
readonly content: string;
|
|
1722
1616
|
readonly contentLang: string;
|
|
1723
1617
|
readonly contentId: string;
|
|
1724
|
-
readonly content: string;
|
|
1725
1618
|
}[];
|
|
1726
1619
|
readonly defaultContent: {
|
|
1727
1620
|
readonly id: string;
|
|
1621
|
+
readonly content: string;
|
|
1728
1622
|
readonly contentLang: string;
|
|
1729
1623
|
readonly contentId: string;
|
|
1730
|
-
readonly content: string;
|
|
1731
1624
|
} | undefined;
|
|
1732
1625
|
readonly urlRoute: string;
|
|
1733
1626
|
readonly authorData: {
|
|
@@ -1768,44 +1661,44 @@ export declare const restClient: Effect.Effect<{
|
|
|
1768
1661
|
readonly diff: string | null;
|
|
1769
1662
|
readonly pageMetaData: {
|
|
1770
1663
|
readonly start: {
|
|
1664
|
+
readonly description: string;
|
|
1771
1665
|
readonly id: string;
|
|
1772
1666
|
readonly updatedAt: Date;
|
|
1773
|
-
readonly description: string;
|
|
1774
1667
|
readonly title: string;
|
|
1775
|
-
readonly categories: readonly string[];
|
|
1776
|
-
readonly slug: string;
|
|
1777
|
-
readonly parentFolder?: string | null | undefined;
|
|
1778
1668
|
readonly package: string;
|
|
1779
1669
|
readonly showOnNav: boolean;
|
|
1780
1670
|
readonly publishedAt: Date;
|
|
1671
|
+
readonly slug: string;
|
|
1781
1672
|
readonly contentLang: string;
|
|
1782
1673
|
readonly heroImage?: string | null | undefined;
|
|
1674
|
+
readonly categories: readonly string[];
|
|
1783
1675
|
readonly tags: readonly string[];
|
|
1784
1676
|
readonly authorId: string;
|
|
1785
1677
|
readonly contributorIds: readonly string[];
|
|
1786
1678
|
readonly showAuthor: boolean;
|
|
1787
1679
|
readonly showContributors: boolean;
|
|
1680
|
+
readonly parentFolder?: string | null | undefined;
|
|
1788
1681
|
readonly draft: boolean;
|
|
1789
1682
|
readonly augments: readonly string[];
|
|
1790
1683
|
};
|
|
1791
1684
|
readonly end: {
|
|
1685
|
+
readonly description: string;
|
|
1792
1686
|
readonly id: string;
|
|
1793
1687
|
readonly updatedAt: Date;
|
|
1794
|
-
readonly description: string;
|
|
1795
1688
|
readonly title: string;
|
|
1796
|
-
readonly categories: readonly string[];
|
|
1797
|
-
readonly slug: string;
|
|
1798
|
-
readonly parentFolder?: string | null | undefined;
|
|
1799
1689
|
readonly package: string;
|
|
1800
1690
|
readonly showOnNav: boolean;
|
|
1801
1691
|
readonly publishedAt: Date;
|
|
1692
|
+
readonly slug: string;
|
|
1802
1693
|
readonly contentLang: string;
|
|
1803
1694
|
readonly heroImage?: string | null | undefined;
|
|
1695
|
+
readonly categories: readonly string[];
|
|
1804
1696
|
readonly tags: readonly string[];
|
|
1805
1697
|
readonly authorId: string;
|
|
1806
1698
|
readonly contributorIds: readonly string[];
|
|
1807
1699
|
readonly showAuthor: boolean;
|
|
1808
1700
|
readonly showContributors: boolean;
|
|
1701
|
+
readonly parentFolder?: string | null | undefined;
|
|
1809
1702
|
readonly draft: boolean;
|
|
1810
1703
|
readonly augments: readonly string[];
|
|
1811
1704
|
};
|
|
@@ -1819,44 +1712,44 @@ export declare const restClient: Effect.Effect<{
|
|
|
1819
1712
|
readonly diff: string | null;
|
|
1820
1713
|
readonly pageMetaData: {
|
|
1821
1714
|
readonly start: {
|
|
1715
|
+
readonly description: string;
|
|
1822
1716
|
readonly id: string;
|
|
1823
1717
|
readonly updatedAt: Date;
|
|
1824
|
-
readonly description: string;
|
|
1825
1718
|
readonly title: string;
|
|
1826
|
-
readonly categories: readonly string[];
|
|
1827
|
-
readonly slug: string;
|
|
1828
|
-
readonly parentFolder?: string | null | undefined;
|
|
1829
1719
|
readonly package: string;
|
|
1830
1720
|
readonly showOnNav: boolean;
|
|
1831
1721
|
readonly publishedAt: Date;
|
|
1722
|
+
readonly slug: string;
|
|
1832
1723
|
readonly contentLang: string;
|
|
1833
1724
|
readonly heroImage?: string | null | undefined;
|
|
1725
|
+
readonly categories: readonly string[];
|
|
1834
1726
|
readonly tags: readonly string[];
|
|
1835
1727
|
readonly authorId: string;
|
|
1836
1728
|
readonly contributorIds: readonly string[];
|
|
1837
1729
|
readonly showAuthor: boolean;
|
|
1838
1730
|
readonly showContributors: boolean;
|
|
1731
|
+
readonly parentFolder?: string | null | undefined;
|
|
1839
1732
|
readonly draft: boolean;
|
|
1840
1733
|
readonly augments: readonly string[];
|
|
1841
1734
|
};
|
|
1842
1735
|
readonly end: {
|
|
1736
|
+
readonly description: string;
|
|
1843
1737
|
readonly id: string;
|
|
1844
1738
|
readonly updatedAt: Date;
|
|
1845
|
-
readonly description: string;
|
|
1846
1739
|
readonly title: string;
|
|
1847
|
-
readonly categories: readonly string[];
|
|
1848
|
-
readonly slug: string;
|
|
1849
|
-
readonly parentFolder?: string | null | undefined;
|
|
1850
1740
|
readonly package: string;
|
|
1851
1741
|
readonly showOnNav: boolean;
|
|
1852
1742
|
readonly publishedAt: Date;
|
|
1743
|
+
readonly slug: string;
|
|
1853
1744
|
readonly contentLang: string;
|
|
1854
1745
|
readonly heroImage?: string | null | undefined;
|
|
1746
|
+
readonly categories: readonly string[];
|
|
1855
1747
|
readonly tags: readonly string[];
|
|
1856
1748
|
readonly authorId: string;
|
|
1857
1749
|
readonly contributorIds: readonly string[];
|
|
1858
1750
|
readonly showAuthor: boolean;
|
|
1859
1751
|
readonly showContributors: boolean;
|
|
1752
|
+
readonly parentFolder?: string | null | undefined;
|
|
1860
1753
|
readonly draft: boolean;
|
|
1861
1754
|
readonly augments: readonly string[];
|
|
1862
1755
|
};
|
|
@@ -1879,44 +1772,44 @@ export declare const restClient: Effect.Effect<{
|
|
|
1879
1772
|
readonly diff: string | null;
|
|
1880
1773
|
readonly pageMetaData: {
|
|
1881
1774
|
readonly start: {
|
|
1775
|
+
readonly description: string;
|
|
1882
1776
|
readonly id: string;
|
|
1883
1777
|
readonly updatedAt: Date;
|
|
1884
|
-
readonly description: string;
|
|
1885
1778
|
readonly title: string;
|
|
1886
|
-
readonly categories: readonly string[];
|
|
1887
|
-
readonly slug: string;
|
|
1888
|
-
readonly parentFolder?: string | null | undefined;
|
|
1889
1779
|
readonly package: string;
|
|
1890
1780
|
readonly showOnNav: boolean;
|
|
1891
1781
|
readonly publishedAt: Date;
|
|
1782
|
+
readonly slug: string;
|
|
1892
1783
|
readonly contentLang: string;
|
|
1893
1784
|
readonly heroImage?: string | null | undefined;
|
|
1785
|
+
readonly categories: readonly string[];
|
|
1894
1786
|
readonly tags: readonly string[];
|
|
1895
1787
|
readonly authorId: string;
|
|
1896
1788
|
readonly contributorIds: readonly string[];
|
|
1897
1789
|
readonly showAuthor: boolean;
|
|
1898
1790
|
readonly showContributors: boolean;
|
|
1791
|
+
readonly parentFolder?: string | null | undefined;
|
|
1899
1792
|
readonly draft: boolean;
|
|
1900
1793
|
readonly augments: readonly string[];
|
|
1901
1794
|
};
|
|
1902
1795
|
readonly end: {
|
|
1796
|
+
readonly description: string;
|
|
1903
1797
|
readonly id: string;
|
|
1904
1798
|
readonly updatedAt: Date;
|
|
1905
|
-
readonly description: string;
|
|
1906
1799
|
readonly title: string;
|
|
1907
|
-
readonly categories: readonly string[];
|
|
1908
|
-
readonly slug: string;
|
|
1909
|
-
readonly parentFolder?: string | null | undefined;
|
|
1910
1800
|
readonly package: string;
|
|
1911
1801
|
readonly showOnNav: boolean;
|
|
1912
1802
|
readonly publishedAt: Date;
|
|
1803
|
+
readonly slug: string;
|
|
1913
1804
|
readonly contentLang: string;
|
|
1914
1805
|
readonly heroImage?: string | null | undefined;
|
|
1806
|
+
readonly categories: readonly string[];
|
|
1915
1807
|
readonly tags: readonly string[];
|
|
1916
1808
|
readonly authorId: string;
|
|
1917
1809
|
readonly contributorIds: readonly string[];
|
|
1918
1810
|
readonly showAuthor: boolean;
|
|
1919
1811
|
readonly showContributors: boolean;
|
|
1812
|
+
readonly parentFolder?: string | null | undefined;
|
|
1920
1813
|
readonly draft: boolean;
|
|
1921
1814
|
readonly augments: readonly string[];
|
|
1922
1815
|
};
|
|
@@ -1930,44 +1823,44 @@ export declare const restClient: Effect.Effect<{
|
|
|
1930
1823
|
readonly diff: string | null;
|
|
1931
1824
|
readonly pageMetaData: {
|
|
1932
1825
|
readonly start: {
|
|
1826
|
+
readonly description: string;
|
|
1933
1827
|
readonly id: string;
|
|
1934
1828
|
readonly updatedAt: Date;
|
|
1935
|
-
readonly description: string;
|
|
1936
1829
|
readonly title: string;
|
|
1937
|
-
readonly categories: readonly string[];
|
|
1938
|
-
readonly slug: string;
|
|
1939
|
-
readonly parentFolder?: string | null | undefined;
|
|
1940
1830
|
readonly package: string;
|
|
1941
1831
|
readonly showOnNav: boolean;
|
|
1942
1832
|
readonly publishedAt: Date;
|
|
1833
|
+
readonly slug: string;
|
|
1943
1834
|
readonly contentLang: string;
|
|
1944
1835
|
readonly heroImage?: string | null | undefined;
|
|
1836
|
+
readonly categories: readonly string[];
|
|
1945
1837
|
readonly tags: readonly string[];
|
|
1946
1838
|
readonly authorId: string;
|
|
1947
1839
|
readonly contributorIds: readonly string[];
|
|
1948
1840
|
readonly showAuthor: boolean;
|
|
1949
1841
|
readonly showContributors: boolean;
|
|
1842
|
+
readonly parentFolder?: string | null | undefined;
|
|
1950
1843
|
readonly draft: boolean;
|
|
1951
1844
|
readonly augments: readonly string[];
|
|
1952
1845
|
};
|
|
1953
1846
|
readonly end: {
|
|
1847
|
+
readonly description: string;
|
|
1954
1848
|
readonly id: string;
|
|
1955
1849
|
readonly updatedAt: Date;
|
|
1956
|
-
readonly description: string;
|
|
1957
1850
|
readonly title: string;
|
|
1958
|
-
readonly categories: readonly string[];
|
|
1959
|
-
readonly slug: string;
|
|
1960
|
-
readonly parentFolder?: string | null | undefined;
|
|
1961
1851
|
readonly package: string;
|
|
1962
1852
|
readonly showOnNav: boolean;
|
|
1963
1853
|
readonly publishedAt: Date;
|
|
1854
|
+
readonly slug: string;
|
|
1964
1855
|
readonly contentLang: string;
|
|
1965
1856
|
readonly heroImage?: string | null | undefined;
|
|
1857
|
+
readonly categories: readonly string[];
|
|
1966
1858
|
readonly tags: readonly string[];
|
|
1967
1859
|
readonly authorId: string;
|
|
1968
1860
|
readonly contributorIds: readonly string[];
|
|
1969
1861
|
readonly showAuthor: boolean;
|
|
1970
1862
|
readonly showContributors: boolean;
|
|
1863
|
+
readonly parentFolder?: string | null | undefined;
|
|
1971
1864
|
readonly draft: boolean;
|
|
1972
1865
|
readonly augments: readonly string[];
|
|
1973
1866
|
};
|
|
@@ -1979,31 +1872,31 @@ export declare const restClient: Effect.Effect<{
|
|
|
1979
1872
|
};
|
|
1980
1873
|
readonly payload: {
|
|
1981
1874
|
readonly data?: {
|
|
1875
|
+
readonly description?: string | undefined;
|
|
1982
1876
|
readonly id?: string | undefined;
|
|
1983
1877
|
readonly updatedAt?: Date | undefined;
|
|
1984
|
-
readonly description?: string | undefined;
|
|
1985
1878
|
readonly title?: string | undefined;
|
|
1986
|
-
readonly categories?: readonly string[] | undefined;
|
|
1987
|
-
readonly slug?: string | undefined;
|
|
1988
|
-
readonly parentFolder?: string | null | undefined;
|
|
1989
1879
|
readonly package?: string | undefined;
|
|
1990
1880
|
readonly showOnNav?: boolean | undefined;
|
|
1991
1881
|
readonly publishedAt?: Date | undefined;
|
|
1882
|
+
readonly slug?: string | undefined;
|
|
1992
1883
|
readonly contentLang?: string | undefined;
|
|
1993
1884
|
readonly heroImage?: string | null | undefined;
|
|
1885
|
+
readonly categories?: readonly string[] | undefined;
|
|
1994
1886
|
readonly tags?: readonly string[] | undefined;
|
|
1995
1887
|
readonly authorId?: string | undefined;
|
|
1996
1888
|
readonly contributorIds?: readonly string[] | undefined;
|
|
1997
1889
|
readonly showAuthor?: boolean | undefined;
|
|
1998
1890
|
readonly showContributors?: boolean | undefined;
|
|
1891
|
+
readonly parentFolder?: string | null | undefined;
|
|
1999
1892
|
readonly draft?: boolean | undefined;
|
|
2000
1893
|
readonly augments?: readonly string[] | undefined;
|
|
2001
1894
|
} | undefined;
|
|
2002
1895
|
readonly content?: {
|
|
2003
1896
|
readonly id?: string | undefined;
|
|
1897
|
+
readonly content?: string | undefined;
|
|
2004
1898
|
readonly contentLang?: string | undefined;
|
|
2005
1899
|
readonly contentId?: string | undefined;
|
|
2006
|
-
readonly content?: string | undefined;
|
|
2007
1900
|
} | undefined;
|
|
2008
1901
|
};
|
|
2009
1902
|
readonly withResponse?: WithResponse | undefined;
|
|
@@ -2016,38 +1909,37 @@ export declare const restClient: Effect.Effect<{
|
|
|
2016
1909
|
readonly urlParams: {
|
|
2017
1910
|
readonly title?: string | undefined;
|
|
2018
1911
|
readonly slug?: string | undefined;
|
|
2019
|
-
readonly author?: string | undefined;
|
|
2020
1912
|
readonly parentFolder?: string | undefined;
|
|
2021
1913
|
readonly draft?: boolean | undefined;
|
|
1914
|
+
readonly author?: string | undefined;
|
|
2022
1915
|
readonly published?: boolean | undefined;
|
|
2023
1916
|
};
|
|
2024
1917
|
readonly withResponse?: WithResponse | undefined;
|
|
2025
1918
|
}) => Effect.Effect<WithResponse extends true ? [readonly {
|
|
1919
|
+
readonly description: string;
|
|
2026
1920
|
readonly id: string;
|
|
2027
1921
|
readonly updatedAt: Date;
|
|
2028
|
-
readonly description: string;
|
|
2029
1922
|
readonly title: string;
|
|
1923
|
+
readonly package: string;
|
|
1924
|
+
readonly showOnNav: boolean;
|
|
1925
|
+
readonly publishedAt: Date;
|
|
1926
|
+
readonly slug: string;
|
|
1927
|
+
readonly contentLang: string;
|
|
1928
|
+
readonly heroImage?: string | null | undefined;
|
|
2030
1929
|
readonly categories: readonly {
|
|
1930
|
+
readonly description: string;
|
|
2031
1931
|
readonly id: number;
|
|
2032
1932
|
readonly name: string;
|
|
2033
|
-
readonly description: string;
|
|
2034
|
-
readonly parent?: number | null | undefined;
|
|
2035
1933
|
readonly slug: string;
|
|
2036
1934
|
readonly meta: {
|
|
2037
1935
|
readonly [x: string]: unknown;
|
|
2038
1936
|
};
|
|
1937
|
+
readonly parent?: number | null | undefined;
|
|
2039
1938
|
}[];
|
|
2040
|
-
readonly slug: string;
|
|
2041
|
-
readonly parentFolder?: string | null | undefined;
|
|
2042
|
-
readonly package: string;
|
|
2043
|
-
readonly showOnNav: boolean;
|
|
2044
|
-
readonly publishedAt: Date;
|
|
2045
|
-
readonly contentLang: string;
|
|
2046
|
-
readonly heroImage?: string | null | undefined;
|
|
2047
1939
|
readonly tags: readonly {
|
|
1940
|
+
readonly description: string;
|
|
2048
1941
|
readonly id: number;
|
|
2049
1942
|
readonly name: string;
|
|
2050
|
-
readonly description: string;
|
|
2051
1943
|
readonly slug: string;
|
|
2052
1944
|
readonly meta: {
|
|
2053
1945
|
readonly [x: string]: unknown;
|
|
@@ -2057,19 +1949,20 @@ export declare const restClient: Effect.Effect<{
|
|
|
2057
1949
|
readonly contributorIds: readonly string[];
|
|
2058
1950
|
readonly showAuthor: boolean;
|
|
2059
1951
|
readonly showContributors: boolean;
|
|
1952
|
+
readonly parentFolder?: string | null | undefined;
|
|
2060
1953
|
readonly draft: boolean;
|
|
2061
1954
|
readonly augments: readonly string[];
|
|
2062
1955
|
readonly multiLangContent: readonly {
|
|
2063
1956
|
readonly id: string;
|
|
1957
|
+
readonly content: string;
|
|
2064
1958
|
readonly contentLang: string;
|
|
2065
1959
|
readonly contentId: string;
|
|
2066
|
-
readonly content: string;
|
|
2067
1960
|
}[];
|
|
2068
1961
|
readonly defaultContent: {
|
|
2069
1962
|
readonly id: string;
|
|
1963
|
+
readonly content: string;
|
|
2070
1964
|
readonly contentLang: string;
|
|
2071
1965
|
readonly contentId: string;
|
|
2072
|
-
readonly content: string;
|
|
2073
1966
|
} | undefined;
|
|
2074
1967
|
readonly urlRoute: string;
|
|
2075
1968
|
readonly authorData: {
|
|
@@ -2095,31 +1988,30 @@ export declare const restClient: Effect.Effect<{
|
|
|
2095
1988
|
readonly notifications?: string | null | undefined;
|
|
2096
1989
|
}[];
|
|
2097
1990
|
}[], import("@effect/platform/HttpClientResponse").HttpClientResponse] : readonly {
|
|
1991
|
+
readonly description: string;
|
|
2098
1992
|
readonly id: string;
|
|
2099
1993
|
readonly updatedAt: Date;
|
|
2100
|
-
readonly description: string;
|
|
2101
1994
|
readonly title: string;
|
|
1995
|
+
readonly package: string;
|
|
1996
|
+
readonly showOnNav: boolean;
|
|
1997
|
+
readonly publishedAt: Date;
|
|
1998
|
+
readonly slug: string;
|
|
1999
|
+
readonly contentLang: string;
|
|
2000
|
+
readonly heroImage?: string | null | undefined;
|
|
2102
2001
|
readonly categories: readonly {
|
|
2002
|
+
readonly description: string;
|
|
2103
2003
|
readonly id: number;
|
|
2104
2004
|
readonly name: string;
|
|
2105
|
-
readonly description: string;
|
|
2106
|
-
readonly parent?: number | null | undefined;
|
|
2107
2005
|
readonly slug: string;
|
|
2108
2006
|
readonly meta: {
|
|
2109
2007
|
readonly [x: string]: unknown;
|
|
2110
2008
|
};
|
|
2009
|
+
readonly parent?: number | null | undefined;
|
|
2111
2010
|
}[];
|
|
2112
|
-
readonly slug: string;
|
|
2113
|
-
readonly parentFolder?: string | null | undefined;
|
|
2114
|
-
readonly package: string;
|
|
2115
|
-
readonly showOnNav: boolean;
|
|
2116
|
-
readonly publishedAt: Date;
|
|
2117
|
-
readonly contentLang: string;
|
|
2118
|
-
readonly heroImage?: string | null | undefined;
|
|
2119
2011
|
readonly tags: readonly {
|
|
2012
|
+
readonly description: string;
|
|
2120
2013
|
readonly id: number;
|
|
2121
2014
|
readonly name: string;
|
|
2122
|
-
readonly description: string;
|
|
2123
2015
|
readonly slug: string;
|
|
2124
2016
|
readonly meta: {
|
|
2125
2017
|
readonly [x: string]: unknown;
|
|
@@ -2129,19 +2021,20 @@ export declare const restClient: Effect.Effect<{
|
|
|
2129
2021
|
readonly contributorIds: readonly string[];
|
|
2130
2022
|
readonly showAuthor: boolean;
|
|
2131
2023
|
readonly showContributors: boolean;
|
|
2024
|
+
readonly parentFolder?: string | null | undefined;
|
|
2132
2025
|
readonly draft: boolean;
|
|
2133
2026
|
readonly augments: readonly string[];
|
|
2134
2027
|
readonly multiLangContent: readonly {
|
|
2135
2028
|
readonly id: string;
|
|
2029
|
+
readonly content: string;
|
|
2136
2030
|
readonly contentLang: string;
|
|
2137
2031
|
readonly contentId: string;
|
|
2138
|
-
readonly content: string;
|
|
2139
2032
|
}[];
|
|
2140
2033
|
readonly defaultContent: {
|
|
2141
2034
|
readonly id: string;
|
|
2035
|
+
readonly content: string;
|
|
2142
2036
|
readonly contentLang: string;
|
|
2143
2037
|
readonly contentId: string;
|
|
2144
|
-
readonly content: string;
|
|
2145
2038
|
} | undefined;
|
|
2146
2039
|
readonly urlRoute: string;
|
|
2147
2040
|
readonly authorData: {
|
|
@@ -2170,31 +2063,31 @@ export declare const restClient: Effect.Effect<{
|
|
|
2170
2063
|
readonly createPage: <WithResponse extends boolean = false>(request: {
|
|
2171
2064
|
readonly payload: {
|
|
2172
2065
|
readonly data?: {
|
|
2066
|
+
readonly description?: string | undefined;
|
|
2173
2067
|
readonly id?: string | undefined;
|
|
2174
2068
|
readonly updatedAt?: Date | undefined;
|
|
2175
|
-
readonly description?: string | undefined;
|
|
2176
2069
|
readonly title?: string | undefined;
|
|
2177
|
-
readonly categories?: readonly string[] | undefined;
|
|
2178
|
-
readonly slug?: string | undefined;
|
|
2179
|
-
readonly parentFolder?: string | null | undefined;
|
|
2180
2070
|
readonly package?: string | undefined;
|
|
2181
2071
|
readonly showOnNav?: boolean | undefined;
|
|
2182
2072
|
readonly publishedAt?: Date | undefined;
|
|
2073
|
+
readonly slug?: string | undefined;
|
|
2183
2074
|
readonly contentLang?: string | undefined;
|
|
2184
2075
|
readonly heroImage?: string | null | undefined;
|
|
2076
|
+
readonly categories?: readonly string[] | undefined;
|
|
2185
2077
|
readonly tags?: readonly string[] | undefined;
|
|
2186
2078
|
readonly authorId?: string | undefined;
|
|
2187
2079
|
readonly contributorIds?: readonly string[] | undefined;
|
|
2188
2080
|
readonly showAuthor?: boolean | undefined;
|
|
2189
2081
|
readonly showContributors?: boolean | undefined;
|
|
2082
|
+
readonly parentFolder?: string | null | undefined;
|
|
2190
2083
|
readonly draft?: boolean | undefined;
|
|
2191
2084
|
readonly augments?: readonly string[] | undefined;
|
|
2192
2085
|
} | undefined;
|
|
2193
2086
|
readonly content?: {
|
|
2194
2087
|
readonly id?: string | undefined;
|
|
2088
|
+
readonly content?: string | undefined;
|
|
2195
2089
|
readonly contentLang?: string | undefined;
|
|
2196
2090
|
readonly contentId?: string | undefined;
|
|
2197
|
-
readonly content?: string | undefined;
|
|
2198
2091
|
} | undefined;
|
|
2199
2092
|
};
|
|
2200
2093
|
readonly withResponse?: WithResponse | undefined;
|
|
@@ -2219,17 +2112,17 @@ export declare const restClient: Effect.Effect<{
|
|
|
2219
2112
|
};
|
|
2220
2113
|
readonly withResponse?: WithResponse | undefined;
|
|
2221
2114
|
}) => Effect.Effect<WithResponse extends true ? [{
|
|
2115
|
+
readonly description: string;
|
|
2222
2116
|
readonly id: number;
|
|
2223
2117
|
readonly name: string;
|
|
2224
|
-
readonly description: string;
|
|
2225
2118
|
readonly slug: string;
|
|
2226
2119
|
readonly meta: {
|
|
2227
2120
|
readonly [x: string]: unknown;
|
|
2228
2121
|
};
|
|
2229
2122
|
}, import("@effect/platform/HttpClientResponse").HttpClientResponse] : {
|
|
2123
|
+
readonly description: string;
|
|
2230
2124
|
readonly id: number;
|
|
2231
2125
|
readonly name: string;
|
|
2232
|
-
readonly description: string;
|
|
2233
2126
|
readonly slug: string;
|
|
2234
2127
|
readonly meta: {
|
|
2235
2128
|
readonly [x: string]: unknown;
|
|
@@ -2240,9 +2133,9 @@ export declare const restClient: Effect.Effect<{
|
|
|
2240
2133
|
readonly id: number;
|
|
2241
2134
|
};
|
|
2242
2135
|
readonly payload: {
|
|
2136
|
+
readonly description?: string | undefined;
|
|
2243
2137
|
readonly id?: number | undefined;
|
|
2244
2138
|
readonly name?: string | undefined;
|
|
2245
|
-
readonly description?: string | undefined;
|
|
2246
2139
|
readonly slug?: string | undefined;
|
|
2247
2140
|
readonly meta?: {
|
|
2248
2141
|
readonly [x: string]: unknown;
|
|
@@ -2250,17 +2143,17 @@ export declare const restClient: Effect.Effect<{
|
|
|
2250
2143
|
};
|
|
2251
2144
|
readonly withResponse?: WithResponse | undefined;
|
|
2252
2145
|
}) => Effect.Effect<WithResponse extends true ? [{
|
|
2146
|
+
readonly description: string;
|
|
2253
2147
|
readonly id: number;
|
|
2254
2148
|
readonly name: string;
|
|
2255
|
-
readonly description: string;
|
|
2256
2149
|
readonly slug: string;
|
|
2257
2150
|
readonly meta: {
|
|
2258
2151
|
readonly [x: string]: unknown;
|
|
2259
2152
|
};
|
|
2260
2153
|
}, import("@effect/platform/HttpClientResponse").HttpClientResponse] : {
|
|
2154
|
+
readonly description: string;
|
|
2261
2155
|
readonly id: number;
|
|
2262
2156
|
readonly name: string;
|
|
2263
|
-
readonly description: string;
|
|
2264
2157
|
readonly slug: string;
|
|
2265
2158
|
readonly meta: {
|
|
2266
2159
|
readonly [x: string]: unknown;
|
|
@@ -2272,17 +2165,17 @@ export declare const restClient: Effect.Effect<{
|
|
|
2272
2165
|
};
|
|
2273
2166
|
readonly withResponse?: WithResponse | undefined;
|
|
2274
2167
|
}) => Effect.Effect<WithResponse extends true ? [readonly {
|
|
2168
|
+
readonly description: string;
|
|
2275
2169
|
readonly id: number;
|
|
2276
2170
|
readonly name: string;
|
|
2277
|
-
readonly description: string;
|
|
2278
2171
|
readonly slug: string;
|
|
2279
2172
|
readonly meta: {
|
|
2280
2173
|
readonly [x: string]: unknown;
|
|
2281
2174
|
};
|
|
2282
2175
|
}[], import("@effect/platform/HttpClientResponse").HttpClientResponse] : readonly {
|
|
2176
|
+
readonly description: string;
|
|
2283
2177
|
readonly id: number;
|
|
2284
2178
|
readonly name: string;
|
|
2285
|
-
readonly description: string;
|
|
2286
2179
|
readonly slug: string;
|
|
2287
2180
|
readonly meta: {
|
|
2288
2181
|
readonly [x: string]: unknown;
|
|
@@ -2290,37 +2183,144 @@ export declare const restClient: Effect.Effect<{
|
|
|
2290
2183
|
}[], import("effect/ParseResult").ParseError | import("@effect/platform/HttpApiError").HttpApiDecodeError | import("node_modules/@withstudiocms/api-spec/dist/rest-api/errors.d.mts").RestAPIError | import("node_modules/@withstudiocms/api-spec/dist/rest-api/middleware.d.mts").Unauthorized | import("@effect/platform/HttpClientError").HttpClientError, never>;
|
|
2291
2184
|
readonly createTag: <WithResponse extends boolean = false>(request: {
|
|
2292
2185
|
readonly payload: {
|
|
2293
|
-
readonly name: string;
|
|
2294
2186
|
readonly description: string;
|
|
2187
|
+
readonly name: string;
|
|
2295
2188
|
readonly slug: string;
|
|
2296
2189
|
readonly meta: string;
|
|
2297
2190
|
};
|
|
2298
2191
|
readonly withResponse?: WithResponse | undefined;
|
|
2299
2192
|
}) => Effect.Effect<WithResponse extends true ? [{
|
|
2193
|
+
readonly description: string;
|
|
2300
2194
|
readonly id: number;
|
|
2301
2195
|
readonly name: string;
|
|
2302
|
-
readonly description: string;
|
|
2303
2196
|
readonly slug: string;
|
|
2304
2197
|
readonly meta: {
|
|
2305
2198
|
readonly [x: string]: unknown;
|
|
2306
2199
|
};
|
|
2307
2200
|
}, import("@effect/platform/HttpClientResponse").HttpClientResponse] : {
|
|
2201
|
+
readonly description: string;
|
|
2308
2202
|
readonly id: number;
|
|
2309
2203
|
readonly name: string;
|
|
2310
|
-
readonly description: string;
|
|
2311
2204
|
readonly slug: string;
|
|
2312
2205
|
readonly meta: {
|
|
2313
2206
|
readonly [x: string]: unknown;
|
|
2314
2207
|
};
|
|
2315
2208
|
}, import("effect/ParseResult").ParseError | import("@effect/platform/HttpApiError").HttpApiDecodeError | import("node_modules/@withstudiocms/api-spec/dist/rest-api/errors.d.mts").RestAPIError | import("node_modules/@withstudiocms/api-spec/dist/rest-api/middleware.d.mts").Unauthorized | import("@effect/platform/HttpClientError").HttpClientError, never>;
|
|
2209
|
+
readonly deleteUser: <WithResponse extends boolean = false>(request: {
|
|
2210
|
+
readonly path: {
|
|
2211
|
+
readonly id: string;
|
|
2212
|
+
};
|
|
2213
|
+
readonly withResponse?: WithResponse | undefined;
|
|
2214
|
+
}) => Effect.Effect<WithResponse extends true ? [{
|
|
2215
|
+
readonly message: string;
|
|
2216
|
+
}, import("@effect/platform/HttpClientResponse").HttpClientResponse] : {
|
|
2217
|
+
readonly message: string;
|
|
2218
|
+
}, import("effect/ParseResult").ParseError | import("@effect/platform/HttpApiError").HttpApiDecodeError | import("node_modules/@withstudiocms/api-spec/dist/rest-api/errors.d.mts").RestAPIError | import("node_modules/@withstudiocms/api-spec/dist/rest-api/middleware.d.mts").Unauthorized | import("@effect/platform/HttpClientError").HttpClientError, never>;
|
|
2219
|
+
readonly getUser: <WithResponse extends boolean = false>(request: {
|
|
2220
|
+
readonly path: {
|
|
2221
|
+
readonly id: string;
|
|
2222
|
+
};
|
|
2223
|
+
readonly withResponse?: WithResponse | undefined;
|
|
2224
|
+
}) => Effect.Effect<WithResponse extends true ? [{
|
|
2225
|
+
readonly id: string;
|
|
2226
|
+
readonly url?: string | null | undefined;
|
|
2227
|
+
readonly name: string;
|
|
2228
|
+
readonly email?: string | null | undefined;
|
|
2229
|
+
readonly avatar?: string | null | undefined;
|
|
2230
|
+
readonly username: string;
|
|
2231
|
+
readonly updatedAt: Date;
|
|
2232
|
+
readonly createdAt: Date;
|
|
2233
|
+
}, import("@effect/platform/HttpClientResponse").HttpClientResponse] : {
|
|
2234
|
+
readonly id: string;
|
|
2235
|
+
readonly url?: string | null | undefined;
|
|
2236
|
+
readonly name: string;
|
|
2237
|
+
readonly email?: string | null | undefined;
|
|
2238
|
+
readonly avatar?: string | null | undefined;
|
|
2239
|
+
readonly username: string;
|
|
2240
|
+
readonly updatedAt: Date;
|
|
2241
|
+
readonly createdAt: Date;
|
|
2242
|
+
}, import("effect/ParseResult").ParseError | import("@effect/platform/HttpApiError").HttpApiDecodeError | import("node_modules/@withstudiocms/api-spec/dist/rest-api/errors.d.mts").RestAPIError | import("node_modules/@withstudiocms/api-spec/dist/rest-api/middleware.d.mts").Unauthorized | import("@effect/platform/HttpClientError").HttpClientError, never>;
|
|
2243
|
+
readonly updateUser: <WithResponse extends boolean = false>(request: {
|
|
2244
|
+
readonly path: {
|
|
2245
|
+
readonly id: string;
|
|
2246
|
+
};
|
|
2247
|
+
readonly payload: import("node_modules/@withstudiocms/api-spec/dist/rest-api/schemas.d.mts").RestUsersIdJSONData;
|
|
2248
|
+
readonly withResponse?: WithResponse | undefined;
|
|
2249
|
+
}) => Effect.Effect<WithResponse extends true ? [{
|
|
2250
|
+
readonly id: string;
|
|
2251
|
+
readonly url?: string | null | undefined;
|
|
2252
|
+
readonly name: string;
|
|
2253
|
+
readonly email?: string | null | undefined;
|
|
2254
|
+
readonly avatar?: string | null | undefined;
|
|
2255
|
+
readonly username: string;
|
|
2256
|
+
readonly updatedAt: Date;
|
|
2257
|
+
readonly createdAt: Date;
|
|
2258
|
+
}, import("@effect/platform/HttpClientResponse").HttpClientResponse] : {
|
|
2259
|
+
readonly id: string;
|
|
2260
|
+
readonly url?: string | null | undefined;
|
|
2261
|
+
readonly name: string;
|
|
2262
|
+
readonly email?: string | null | undefined;
|
|
2263
|
+
readonly avatar?: string | null | undefined;
|
|
2264
|
+
readonly username: string;
|
|
2265
|
+
readonly updatedAt: Date;
|
|
2266
|
+
readonly createdAt: Date;
|
|
2267
|
+
}, import("effect/ParseResult").ParseError | import("@effect/platform/HttpApiError").HttpApiDecodeError | import("node_modules/@withstudiocms/api-spec/dist/rest-api/errors.d.mts").RestAPIError | import("node_modules/@withstudiocms/api-spec/dist/rest-api/middleware.d.mts").Unauthorized | import("@effect/platform/HttpClientError").HttpClientError, never>;
|
|
2268
|
+
readonly getUsers: <WithResponse extends boolean = false>(request: {
|
|
2269
|
+
readonly urlParams: {
|
|
2270
|
+
readonly name?: string | undefined;
|
|
2271
|
+
readonly username?: string | undefined;
|
|
2272
|
+
readonly rank?: string | undefined;
|
|
2273
|
+
};
|
|
2274
|
+
readonly withResponse?: WithResponse | undefined;
|
|
2275
|
+
}) => Effect.Effect<WithResponse extends true ? [readonly {
|
|
2276
|
+
readonly id: string;
|
|
2277
|
+
readonly url?: string | null | undefined;
|
|
2278
|
+
readonly name: string;
|
|
2279
|
+
readonly email?: string | null | undefined;
|
|
2280
|
+
readonly avatar?: string | null | undefined;
|
|
2281
|
+
readonly username: string;
|
|
2282
|
+
readonly updatedAt: Date;
|
|
2283
|
+
readonly createdAt: Date;
|
|
2284
|
+
}[], import("@effect/platform/HttpClientResponse").HttpClientResponse] : readonly {
|
|
2285
|
+
readonly id: string;
|
|
2286
|
+
readonly url?: string | null | undefined;
|
|
2287
|
+
readonly name: string;
|
|
2288
|
+
readonly email?: string | null | undefined;
|
|
2289
|
+
readonly avatar?: string | null | undefined;
|
|
2290
|
+
readonly username: string;
|
|
2291
|
+
readonly updatedAt: Date;
|
|
2292
|
+
readonly createdAt: Date;
|
|
2293
|
+
}[], import("effect/ParseResult").ParseError | import("@effect/platform/HttpApiError").HttpApiDecodeError | import("node_modules/@withstudiocms/api-spec/dist/rest-api/errors.d.mts").RestAPIError | import("node_modules/@withstudiocms/api-spec/dist/rest-api/middleware.d.mts").Unauthorized | import("@effect/platform/HttpClientError").HttpClientError, never>;
|
|
2294
|
+
readonly createUser: <WithResponse extends boolean = false>(request: {
|
|
2295
|
+
readonly payload: import("node_modules/@withstudiocms/api-spec/dist/rest-api/schemas.d.mts").RestUsersIndexJSONData;
|
|
2296
|
+
readonly withResponse?: WithResponse | undefined;
|
|
2297
|
+
}) => Effect.Effect<WithResponse extends true ? [{
|
|
2298
|
+
readonly id: string;
|
|
2299
|
+
readonly url?: string | null | undefined;
|
|
2300
|
+
readonly name: string;
|
|
2301
|
+
readonly email?: string | null | undefined;
|
|
2302
|
+
readonly avatar?: string | null | undefined;
|
|
2303
|
+
readonly username: string;
|
|
2304
|
+
readonly updatedAt: Date;
|
|
2305
|
+
readonly createdAt: Date;
|
|
2306
|
+
}, import("@effect/platform/HttpClientResponse").HttpClientResponse] : {
|
|
2307
|
+
readonly id: string;
|
|
2308
|
+
readonly url?: string | null | undefined;
|
|
2309
|
+
readonly name: string;
|
|
2310
|
+
readonly email?: string | null | undefined;
|
|
2311
|
+
readonly avatar?: string | null | undefined;
|
|
2312
|
+
readonly username: string;
|
|
2313
|
+
readonly updatedAt: Date;
|
|
2314
|
+
readonly createdAt: Date;
|
|
2315
|
+
}, import("effect/ParseResult").ParseError | import("@effect/platform/HttpApiError").HttpApiDecodeError | import("node_modules/@withstudiocms/api-spec/dist/rest-api/errors.d.mts").RestAPIError | import("node_modules/@withstudiocms/api-spec/dist/rest-api/middleware.d.mts").Unauthorized | import("@effect/platform/HttpClientError").HttpClientError, never>;
|
|
2316
2316
|
readonly getSettings: <WithResponse extends boolean = false>(request: void | {
|
|
2317
2317
|
readonly withResponse?: WithResponse | undefined;
|
|
2318
2318
|
}) => Effect.Effect<WithResponse extends true ? [{
|
|
2319
2319
|
readonly id: string;
|
|
2320
2320
|
readonly data: {
|
|
2321
2321
|
readonly description: string;
|
|
2322
|
-
readonly title: string;
|
|
2323
2322
|
readonly _config_version: string;
|
|
2323
|
+
readonly title: string;
|
|
2324
2324
|
readonly defaultOgImage?: string | null | undefined;
|
|
2325
2325
|
readonly siteIcon?: string | null | undefined;
|
|
2326
2326
|
readonly loginPageBackground?: string | undefined;
|
|
@@ -2334,8 +2334,8 @@ export declare const restClient: Effect.Effect<{
|
|
|
2334
2334
|
readonly id: string;
|
|
2335
2335
|
readonly data: {
|
|
2336
2336
|
readonly description: string;
|
|
2337
|
-
readonly title: string;
|
|
2338
2337
|
readonly _config_version: string;
|
|
2338
|
+
readonly title: string;
|
|
2339
2339
|
readonly defaultOgImage?: string | null | undefined;
|
|
2340
2340
|
readonly siteIcon?: string | null | undefined;
|
|
2341
2341
|
readonly loginPageBackground?: string | undefined;
|
|
@@ -2349,8 +2349,8 @@ export declare const restClient: Effect.Effect<{
|
|
|
2349
2349
|
readonly updateSettings: <WithResponse extends boolean = false>(request: {
|
|
2350
2350
|
readonly payload: {
|
|
2351
2351
|
description: string;
|
|
2352
|
-
title: string;
|
|
2353
2352
|
_config_version: string;
|
|
2353
|
+
title: string;
|
|
2354
2354
|
defaultOgImage?: string | null | undefined;
|
|
2355
2355
|
siteIcon?: string | null | undefined;
|
|
2356
2356
|
loginPageBackground?: string | undefined;
|
|
@@ -2396,8 +2396,8 @@ export declare const sdkClient: Effect.Effect<{
|
|
|
2396
2396
|
readonly avatar?: string | null | undefined;
|
|
2397
2397
|
readonly username: string;
|
|
2398
2398
|
readonly permissionsData: {
|
|
2399
|
+
readonly rank: "editor" | "admin" | "owner" | "unknown" | "visitor";
|
|
2399
2400
|
readonly user: string;
|
|
2400
|
-
readonly rank: "owner" | "admin" | "editor" | "visitor" | "unknown";
|
|
2401
2401
|
} | undefined;
|
|
2402
2402
|
}[];
|
|
2403
2403
|
readonly searchQuery?: string | undefined;
|
|
@@ -2454,7 +2454,7 @@ export declare const apiClients: {
|
|
|
2454
2454
|
readonly message: string;
|
|
2455
2455
|
}, import("@effect/platform/HttpClientResponse").HttpClientResponse] : {
|
|
2456
2456
|
readonly message: string;
|
|
2457
|
-
}, import("effect/ParseResult").ParseError | import("@effect/platform/HttpApiError").NotFound |
|
|
2457
|
+
}, import("effect/ParseResult").ParseError | AuthAPIError | import("@effect/platform/HttpApiError").NotFound | import("@effect/platform/HttpApiError").HttpApiDecodeError | import("@effect/platform/HttpClientError").HttpClientError, never>;
|
|
2458
2458
|
readonly login: <WithResponse extends boolean = false>(request: {
|
|
2459
2459
|
readonly payload: {
|
|
2460
2460
|
readonly username: string;
|
|
@@ -2465,10 +2465,10 @@ export declare const apiClients: {
|
|
|
2465
2465
|
readonly ok: boolean;
|
|
2466
2466
|
}, import("@effect/platform/HttpClientResponse").HttpClientResponse] : {
|
|
2467
2467
|
readonly ok: boolean;
|
|
2468
|
-
}, import("effect/ParseResult").ParseError | import("@effect/platform/HttpApiError").NotFound |
|
|
2468
|
+
}, import("effect/ParseResult").ParseError | AuthAPIError | import("@effect/platform/HttpApiError").NotFound | import("@effect/platform/HttpApiError").HttpApiDecodeError | import("@effect/platform/HttpClientError").HttpClientError, never>;
|
|
2469
2469
|
readonly logout: <WithResponse extends boolean = false>(request: void | {
|
|
2470
2470
|
readonly withResponse?: WithResponse | undefined;
|
|
2471
|
-
}) => Effect.Effect<WithResponse extends true ? [null, import("@effect/platform/HttpClientResponse").HttpClientResponse] : null, import("effect/ParseResult").ParseError | import("@effect/platform/HttpApiError").NotFound |
|
|
2471
|
+
}) => Effect.Effect<WithResponse extends true ? [null, import("@effect/platform/HttpClientResponse").HttpClientResponse] : null, import("effect/ParseResult").ParseError | AuthAPIError | import("@effect/platform/HttpApiError").NotFound | import("@effect/platform/HttpApiError").HttpApiDecodeError | import("@effect/platform/HttpClientError").HttpClientError, never>;
|
|
2472
2472
|
readonly register: <WithResponse extends boolean = false>(request: {
|
|
2473
2473
|
readonly payload: {
|
|
2474
2474
|
readonly email: string;
|
|
@@ -2481,7 +2481,7 @@ export declare const apiClients: {
|
|
|
2481
2481
|
readonly ok: boolean;
|
|
2482
2482
|
}, import("@effect/platform/HttpClientResponse").HttpClientResponse] : {
|
|
2483
2483
|
readonly ok: boolean;
|
|
2484
|
-
}, import("effect/ParseResult").ParseError | import("@effect/platform/HttpApiError").NotFound |
|
|
2484
|
+
}, import("effect/ParseResult").ParseError | AuthAPIError | import("@effect/platform/HttpApiError").NotFound | import("@effect/platform/HttpApiError").HttpApiDecodeError | import("@effect/platform/HttpClientError").HttpClientError, never>;
|
|
2485
2485
|
};
|
|
2486
2486
|
readonly oauth: {
|
|
2487
2487
|
readonly oAuthInit: <WithResponse extends boolean = false>(request: {
|
|
@@ -2489,13 +2489,13 @@ export declare const apiClients: {
|
|
|
2489
2489
|
readonly provider: string;
|
|
2490
2490
|
};
|
|
2491
2491
|
readonly withResponse?: WithResponse | undefined;
|
|
2492
|
-
}) => Effect.Effect<WithResponse extends true ? [null, import("@effect/platform/HttpClientResponse").HttpClientResponse] : null, import("effect/ParseResult").ParseError | import("@effect/platform/HttpApiError").NotFound |
|
|
2492
|
+
}) => Effect.Effect<WithResponse extends true ? [null, import("@effect/platform/HttpClientResponse").HttpClientResponse] : null, import("effect/ParseResult").ParseError | AuthAPIError | import("@effect/platform/HttpApiError").NotFound | import("@effect/platform/HttpApiError").HttpApiDecodeError | import("@effect/platform/HttpClientError").HttpClientError, never>;
|
|
2493
2493
|
readonly oAuthCallback: <WithResponse extends boolean = false>(request: {
|
|
2494
2494
|
readonly path: {
|
|
2495
2495
|
readonly provider: string;
|
|
2496
2496
|
};
|
|
2497
2497
|
readonly withResponse?: WithResponse | undefined;
|
|
2498
|
-
}) => Effect.Effect<WithResponse extends true ? [null, import("@effect/platform/HttpClientResponse").HttpClientResponse] : null, import("effect/ParseResult").ParseError | import("@effect/platform/HttpApiError").NotFound |
|
|
2498
|
+
}) => Effect.Effect<WithResponse extends true ? [null, import("@effect/platform/HttpClientResponse").HttpClientResponse] : null, import("effect/ParseResult").ParseError | AuthAPIError | import("@effect/platform/HttpApiError").NotFound | import("@effect/platform/HttpApiError").HttpApiDecodeError | import("@effect/platform/HttpClientError").HttpClientError, never>;
|
|
2499
2499
|
};
|
|
2500
2500
|
}, never, never>;
|
|
2501
2501
|
dashboard: Effect.Effect<{
|
|
@@ -2556,22 +2556,22 @@ export declare const apiClients: {
|
|
|
2556
2556
|
readonly content: {
|
|
2557
2557
|
readonly createPage: <WithResponse extends boolean = false>(request: {
|
|
2558
2558
|
readonly payload: {
|
|
2559
|
-
readonly updatedAt?: Date | undefined;
|
|
2560
2559
|
readonly description?: string | undefined;
|
|
2560
|
+
readonly updatedAt?: Date | undefined;
|
|
2561
2561
|
readonly title?: string | undefined;
|
|
2562
|
-
readonly categories?: readonly string[] | undefined;
|
|
2563
|
-
readonly slug?: string | undefined;
|
|
2564
|
-
readonly parentFolder?: string | null | undefined;
|
|
2565
2562
|
readonly package?: string | undefined;
|
|
2566
2563
|
readonly showOnNav?: boolean | undefined;
|
|
2567
2564
|
readonly publishedAt?: Date | undefined;
|
|
2565
|
+
readonly slug?: string | undefined;
|
|
2568
2566
|
readonly contentLang?: string | undefined;
|
|
2569
2567
|
readonly heroImage?: string | null | undefined;
|
|
2568
|
+
readonly categories?: readonly string[] | undefined;
|
|
2570
2569
|
readonly tags?: readonly string[] | undefined;
|
|
2571
2570
|
readonly authorId?: string | undefined;
|
|
2572
2571
|
readonly contributorIds?: readonly string[] | undefined;
|
|
2573
2572
|
readonly showAuthor?: boolean | undefined;
|
|
2574
2573
|
readonly showContributors?: boolean | undefined;
|
|
2574
|
+
readonly parentFolder?: string | null | undefined;
|
|
2575
2575
|
readonly draft?: boolean | undefined;
|
|
2576
2576
|
readonly augments?: readonly string[] | undefined;
|
|
2577
2577
|
};
|
|
@@ -2583,27 +2583,27 @@ export declare const apiClients: {
|
|
|
2583
2583
|
}, import("effect/ParseResult").ParseError | import("@effect/platform/HttpApiError").HttpApiDecodeError | import("@withstudiocms/api-spec/astro-context").AstroLocalsMissing | import("@withstudiocms/api-spec/dashboard").DashboardAPIError | import("@effect/platform/HttpClientError").HttpClientError, never>;
|
|
2584
2584
|
readonly updatePage: <WithResponse extends boolean = false>(request: {
|
|
2585
2585
|
readonly payload: {
|
|
2586
|
+
readonly description?: string | undefined;
|
|
2586
2587
|
readonly id: string;
|
|
2587
2588
|
readonly updatedAt?: Date | undefined;
|
|
2588
|
-
readonly description?: string | undefined;
|
|
2589
2589
|
readonly title?: string | undefined;
|
|
2590
|
-
readonly
|
|
2591
|
-
readonly slug?: string | undefined;
|
|
2592
|
-
readonly parentFolder?: string | null | undefined;
|
|
2590
|
+
readonly content: string;
|
|
2593
2591
|
readonly package?: string | undefined;
|
|
2594
2592
|
readonly showOnNav?: boolean | undefined;
|
|
2595
2593
|
readonly publishedAt?: Date | undefined;
|
|
2594
|
+
readonly slug?: string | undefined;
|
|
2596
2595
|
readonly contentLang?: string | undefined;
|
|
2597
2596
|
readonly heroImage?: string | null | undefined;
|
|
2597
|
+
readonly categories?: readonly string[] | undefined;
|
|
2598
2598
|
readonly tags?: readonly string[] | undefined;
|
|
2599
2599
|
readonly authorId?: string | undefined;
|
|
2600
2600
|
readonly contributorIds?: readonly string[] | undefined;
|
|
2601
2601
|
readonly showAuthor?: boolean | undefined;
|
|
2602
2602
|
readonly showContributors?: boolean | undefined;
|
|
2603
|
+
readonly parentFolder?: string | null | undefined;
|
|
2603
2604
|
readonly draft?: boolean | undefined;
|
|
2604
2605
|
readonly augments?: readonly string[] | undefined;
|
|
2605
2606
|
readonly contentId: string;
|
|
2606
|
-
readonly content: string;
|
|
2607
2607
|
readonly pluginFields: {
|
|
2608
2608
|
readonly [x: string]: FormDataEntryValue | null;
|
|
2609
2609
|
};
|
|
@@ -2738,7 +2738,7 @@ export declare const apiClients: {
|
|
|
2738
2738
|
readonly email: string;
|
|
2739
2739
|
readonly username: string;
|
|
2740
2740
|
readonly displayname: string;
|
|
2741
|
-
readonly rank: "
|
|
2741
|
+
readonly rank: "editor" | "admin" | "owner" | "unknown" | "visitor";
|
|
2742
2742
|
readonly originalUrl: string;
|
|
2743
2743
|
};
|
|
2744
2744
|
readonly withResponse?: WithResponse | undefined;
|
|
@@ -2753,7 +2753,7 @@ export declare const apiClients: {
|
|
|
2753
2753
|
readonly username: string;
|
|
2754
2754
|
readonly password?: string | undefined;
|
|
2755
2755
|
readonly displayname: string;
|
|
2756
|
-
readonly rank: "
|
|
2756
|
+
readonly rank: "editor" | "admin" | "owner" | "unknown" | "visitor";
|
|
2757
2757
|
readonly originalUrl: string;
|
|
2758
2758
|
};
|
|
2759
2759
|
readonly withResponse?: WithResponse | undefined;
|
|
@@ -2796,6 +2796,7 @@ export declare const apiClients: {
|
|
|
2796
2796
|
readonly profile: {
|
|
2797
2797
|
readonly updateUserProfile: <WithResponse extends boolean = false>(request: {
|
|
2798
2798
|
readonly payload: {
|
|
2799
|
+
readonly mode: "basic";
|
|
2799
2800
|
readonly data: {
|
|
2800
2801
|
readonly url?: string | null | undefined;
|
|
2801
2802
|
readonly name: string;
|
|
@@ -2808,17 +2809,16 @@ export declare const apiClients: {
|
|
|
2808
2809
|
readonly emailVerified: boolean;
|
|
2809
2810
|
readonly notifications?: string | null | undefined;
|
|
2810
2811
|
};
|
|
2811
|
-
readonly mode: "basic";
|
|
2812
2812
|
};
|
|
2813
2813
|
readonly withResponse?: WithResponse | undefined;
|
|
2814
2814
|
} | {
|
|
2815
2815
|
readonly payload: {
|
|
2816
|
+
readonly mode: "password";
|
|
2816
2817
|
readonly data: {
|
|
2817
2818
|
readonly currentPassword: string | null;
|
|
2818
2819
|
readonly newPassword: string;
|
|
2819
2820
|
readonly confirmNewPassword: string;
|
|
2820
2821
|
};
|
|
2821
|
-
readonly mode: "password";
|
|
2822
2822
|
};
|
|
2823
2823
|
readonly withResponse?: WithResponse | undefined;
|
|
2824
2824
|
} | {
|
|
@@ -2854,43 +2854,43 @@ export declare const apiClients: {
|
|
|
2854
2854
|
}) => Effect.Effect<WithResponse extends true ? [readonly {
|
|
2855
2855
|
readonly id: string;
|
|
2856
2856
|
readonly name: string;
|
|
2857
|
-
readonly type: "folder" | "page";
|
|
2858
2857
|
readonly slug?: string | undefined;
|
|
2858
|
+
readonly type: "folder" | "page";
|
|
2859
2859
|
readonly isDraft?: boolean | null | undefined;
|
|
2860
2860
|
}[], import("@effect/platform/HttpClientResponse").HttpClientResponse] : readonly {
|
|
2861
2861
|
readonly id: string;
|
|
2862
2862
|
readonly name: string;
|
|
2863
|
-
readonly type: "folder" | "page";
|
|
2864
2863
|
readonly slug?: string | undefined;
|
|
2864
|
+
readonly type: "folder" | "page";
|
|
2865
2865
|
readonly isDraft?: boolean | null | undefined;
|
|
2866
2866
|
}[], import("effect/ParseResult").ParseError | import("@effect/platform/HttpApiError").HttpApiDecodeError | import("@withstudiocms/api-spec/astro-context").AstroLocalsMissing | import("@withstudiocms/api-spec/dashboard").DashboardAPIError | import("@effect/platform/HttpClientError").HttpClientError, never>;
|
|
2867
2867
|
};
|
|
2868
2868
|
readonly taxonomy: {
|
|
2869
2869
|
readonly taxonomy: <WithResponse extends boolean = false>(request: {
|
|
2870
2870
|
readonly payload: {
|
|
2871
|
+
readonly description: string;
|
|
2872
|
+
readonly mode: "create" | "edit";
|
|
2871
2873
|
readonly id: number;
|
|
2872
2874
|
readonly name: string;
|
|
2873
|
-
readonly description: string;
|
|
2874
|
-
readonly type: "tags";
|
|
2875
2875
|
readonly slug: string;
|
|
2876
|
+
readonly type: "tags";
|
|
2876
2877
|
readonly meta: {
|
|
2877
2878
|
readonly [x: string]: unknown;
|
|
2878
2879
|
};
|
|
2879
|
-
readonly mode: "create" | "edit";
|
|
2880
2880
|
};
|
|
2881
2881
|
readonly withResponse?: WithResponse | undefined;
|
|
2882
2882
|
} | {
|
|
2883
2883
|
readonly payload: {
|
|
2884
|
+
readonly description: string;
|
|
2885
|
+
readonly mode: "create" | "edit";
|
|
2884
2886
|
readonly id: number;
|
|
2885
2887
|
readonly name: string;
|
|
2886
|
-
readonly description: string;
|
|
2887
|
-
readonly type: "categories";
|
|
2888
|
-
readonly parent?: number | null | undefined;
|
|
2889
2888
|
readonly slug: string;
|
|
2889
|
+
readonly type: "categories";
|
|
2890
2890
|
readonly meta: {
|
|
2891
2891
|
readonly [x: string]: unknown;
|
|
2892
2892
|
};
|
|
2893
|
-
readonly
|
|
2893
|
+
readonly parent?: number | null | undefined;
|
|
2894
2894
|
};
|
|
2895
2895
|
readonly withResponse?: WithResponse | undefined;
|
|
2896
2896
|
}) => Effect.Effect<WithResponse extends true ? [{
|
|
@@ -2912,26 +2912,26 @@ export declare const apiClients: {
|
|
|
2912
2912
|
readonly taxonomySearch: <WithResponse extends boolean = false>(request: void | {
|
|
2913
2913
|
readonly withResponse?: WithResponse | undefined;
|
|
2914
2914
|
}) => Effect.Effect<WithResponse extends true ? [readonly {
|
|
2915
|
+
readonly description: string;
|
|
2915
2916
|
readonly id: number;
|
|
2916
2917
|
readonly name: string;
|
|
2917
|
-
readonly description: string;
|
|
2918
|
-
readonly type: "tag" | "category";
|
|
2919
|
-
readonly parent: number | null | undefined;
|
|
2920
2918
|
readonly slug: string;
|
|
2919
|
+
readonly type: "tag" | "category";
|
|
2921
2920
|
readonly meta: {
|
|
2922
2921
|
readonly [x: string]: unknown;
|
|
2923
2922
|
};
|
|
2923
|
+
readonly parent: number | null | undefined;
|
|
2924
2924
|
readonly children: readonly import("@withstudiocms/api-spec/dashboard").TaxonomyNode[];
|
|
2925
2925
|
}[], import("@effect/platform/HttpClientResponse").HttpClientResponse] : readonly {
|
|
2926
|
+
readonly description: string;
|
|
2926
2927
|
readonly id: number;
|
|
2927
2928
|
readonly name: string;
|
|
2928
|
-
readonly description: string;
|
|
2929
|
-
readonly type: "tag" | "category";
|
|
2930
|
-
readonly parent: number | null | undefined;
|
|
2931
2929
|
readonly slug: string;
|
|
2930
|
+
readonly type: "tag" | "category";
|
|
2932
2931
|
readonly meta: {
|
|
2933
2932
|
readonly [x: string]: unknown;
|
|
2934
2933
|
};
|
|
2934
|
+
readonly parent: number | null | undefined;
|
|
2935
2935
|
readonly children: readonly import("@withstudiocms/api-spec/dashboard").TaxonomyNode[];
|
|
2936
2936
|
}[], import("effect/ParseResult").ParseError | import("@effect/platform/HttpApiError").HttpApiDecodeError | import("@withstudiocms/api-spec/astro-context").AstroLocalsMissing | import("@withstudiocms/api-spec/dashboard").DashboardAPIError | import("@effect/platform/HttpClientError").HttpClientError, never>;
|
|
2937
2937
|
};
|
|
@@ -2963,7 +2963,7 @@ export declare const apiClients: {
|
|
|
2963
2963
|
readonly payload: {
|
|
2964
2964
|
readonly id: string;
|
|
2965
2965
|
readonly emailVerified: boolean;
|
|
2966
|
-
readonly rank: "
|
|
2966
|
+
readonly rank: "editor" | "admin" | "owner" | "unknown" | "visitor";
|
|
2967
2967
|
};
|
|
2968
2968
|
readonly withResponse?: WithResponse | undefined;
|
|
2969
2969
|
}) => Effect.Effect<WithResponse extends true ? [{
|
|
@@ -2985,6 +2985,23 @@ export declare const apiClients: {
|
|
|
2985
2985
|
}, import("effect/ParseResult").ParseError | import("@effect/platform/HttpApiError").HttpApiDecodeError | import("@withstudiocms/api-spec/astro-context").AstroLocalsMissing | import("@withstudiocms/api-spec/dashboard").DashboardAPIError | import("@effect/platform/HttpClientError").HttpClientError, never>;
|
|
2986
2986
|
};
|
|
2987
2987
|
readonly verifyEndpoints: {
|
|
2988
|
+
readonly verifyEmail: <WithResponse extends boolean = false>(request: {
|
|
2989
|
+
readonly urlParams: {
|
|
2990
|
+
readonly token: string;
|
|
2991
|
+
readonly userId: string;
|
|
2992
|
+
};
|
|
2993
|
+
readonly withResponse?: WithResponse | undefined;
|
|
2994
|
+
}) => Effect.Effect<WithResponse extends true ? [null, import("@effect/platform/HttpClientResponse").HttpClientResponse] : null, import("effect/ParseResult").ParseError | import("@effect/platform/HttpApiError").HttpApiDecodeError | import("@withstudiocms/api-spec/astro-context").AstroLocalsMissing | import("@withstudiocms/api-spec/dashboard").DashboardAPIError | import("@effect/platform/HttpClientError").HttpClientError, never>;
|
|
2995
|
+
readonly resendVerifyEmail: <WithResponse extends boolean = false>(request: {
|
|
2996
|
+
readonly payload: {
|
|
2997
|
+
readonly userId: string;
|
|
2998
|
+
};
|
|
2999
|
+
readonly withResponse?: WithResponse | undefined;
|
|
3000
|
+
}) => Effect.Effect<WithResponse extends true ? [{
|
|
3001
|
+
readonly message: string;
|
|
3002
|
+
}, import("@effect/platform/HttpClientResponse").HttpClientResponse] : {
|
|
3003
|
+
readonly message: string;
|
|
3004
|
+
}, import("effect/ParseResult").ParseError | import("@effect/platform/HttpApiError").HttpApiDecodeError | import("@withstudiocms/api-spec/astro-context").AstroLocalsMissing | import("@withstudiocms/api-spec/dashboard").DashboardAPIError | import("@effect/platform/HttpClientError").HttpClientError, never>;
|
|
2988
3005
|
readonly verifySession: <WithResponse extends boolean = false>(request: {
|
|
2989
3006
|
readonly payload: {
|
|
2990
3007
|
readonly originPathname: string;
|
|
@@ -2992,7 +3009,6 @@ export declare const apiClients: {
|
|
|
2992
3009
|
readonly withResponse?: WithResponse | undefined;
|
|
2993
3010
|
}) => Effect.Effect<WithResponse extends true ? [{
|
|
2994
3011
|
readonly isLoggedIn: boolean;
|
|
2995
|
-
readonly permissionLevel: "owner" | "admin" | "editor" | "visitor" | "unknown";
|
|
2996
3012
|
readonly user: {
|
|
2997
3013
|
readonly id: string;
|
|
2998
3014
|
readonly name: string;
|
|
@@ -3000,6 +3016,7 @@ export declare const apiClients: {
|
|
|
3000
3016
|
readonly avatar: string | null;
|
|
3001
3017
|
readonly username: string;
|
|
3002
3018
|
} | null;
|
|
3019
|
+
readonly permissionLevel: "editor" | "admin" | "owner" | "unknown" | "visitor";
|
|
3003
3020
|
readonly routes: {
|
|
3004
3021
|
readonly logout: string;
|
|
3005
3022
|
readonly userProfile: string;
|
|
@@ -3008,7 +3025,6 @@ export declare const apiClients: {
|
|
|
3008
3025
|
};
|
|
3009
3026
|
}, import("@effect/platform/HttpClientResponse").HttpClientResponse] : {
|
|
3010
3027
|
readonly isLoggedIn: boolean;
|
|
3011
|
-
readonly permissionLevel: "owner" | "admin" | "editor" | "visitor" | "unknown";
|
|
3012
3028
|
readonly user: {
|
|
3013
3029
|
readonly id: string;
|
|
3014
3030
|
readonly name: string;
|
|
@@ -3016,6 +3032,7 @@ export declare const apiClients: {
|
|
|
3016
3032
|
readonly avatar: string | null;
|
|
3017
3033
|
readonly username: string;
|
|
3018
3034
|
} | null;
|
|
3035
|
+
readonly permissionLevel: "editor" | "admin" | "owner" | "unknown" | "visitor";
|
|
3019
3036
|
readonly routes: {
|
|
3020
3037
|
readonly logout: string;
|
|
3021
3038
|
readonly userProfile: string;
|
|
@@ -3023,23 +3040,6 @@ export declare const apiClients: {
|
|
|
3023
3040
|
readonly dashboardIndex: string;
|
|
3024
3041
|
};
|
|
3025
3042
|
}, import("effect/ParseResult").ParseError | import("@effect/platform/HttpApiError").HttpApiDecodeError | import("@withstudiocms/api-spec/astro-context").AstroLocalsMissing | import("@withstudiocms/api-spec/dashboard").DashboardAPIError | import("@effect/platform/HttpClientError").HttpClientError, never>;
|
|
3026
|
-
readonly verifyEmail: <WithResponse extends boolean = false>(request: {
|
|
3027
|
-
readonly urlParams: {
|
|
3028
|
-
readonly token: string;
|
|
3029
|
-
readonly userId: string;
|
|
3030
|
-
};
|
|
3031
|
-
readonly withResponse?: WithResponse | undefined;
|
|
3032
|
-
}) => Effect.Effect<WithResponse extends true ? [null, import("@effect/platform/HttpClientResponse").HttpClientResponse] : null, import("effect/ParseResult").ParseError | import("@effect/platform/HttpApiError").HttpApiDecodeError | import("@withstudiocms/api-spec/astro-context").AstroLocalsMissing | import("@withstudiocms/api-spec/dashboard").DashboardAPIError | import("@effect/platform/HttpClientError").HttpClientError, never>;
|
|
3033
|
-
readonly resendVerifyEmail: <WithResponse extends boolean = false>(request: {
|
|
3034
|
-
readonly payload: {
|
|
3035
|
-
readonly userId: string;
|
|
3036
|
-
};
|
|
3037
|
-
readonly withResponse?: WithResponse | undefined;
|
|
3038
|
-
}) => Effect.Effect<WithResponse extends true ? [{
|
|
3039
|
-
readonly message: string;
|
|
3040
|
-
}, import("@effect/platform/HttpClientResponse").HttpClientResponse] : {
|
|
3041
|
-
readonly message: string;
|
|
3042
|
-
}, import("effect/ParseResult").ParseError | import("@effect/platform/HttpApiError").HttpApiDecodeError | import("@withstudiocms/api-spec/astro-context").AstroLocalsMissing | import("@withstudiocms/api-spec/dashboard").DashboardAPIError | import("@effect/platform/HttpClientError").HttpClientError, never>;
|
|
3043
3043
|
};
|
|
3044
3044
|
}, never, never>;
|
|
3045
3045
|
integrations: Effect.Effect<{
|
|
@@ -3060,7 +3060,6 @@ export declare const apiClients: {
|
|
|
3060
3060
|
readonly withResponse?: WithResponse | undefined;
|
|
3061
3061
|
}) => Effect.Effect<WithResponse extends true ? [{
|
|
3062
3062
|
readonly id: number;
|
|
3063
|
-
readonly type: "query";
|
|
3064
3063
|
readonly data: {
|
|
3065
3064
|
readonly rows: readonly {
|
|
3066
3065
|
readonly [x: string]: unknown;
|
|
@@ -3079,9 +3078,9 @@ export declare const apiClients: {
|
|
|
3079
3078
|
};
|
|
3080
3079
|
readonly lastInsertRowid?: number | undefined;
|
|
3081
3080
|
};
|
|
3081
|
+
readonly type: "query";
|
|
3082
3082
|
} | {
|
|
3083
3083
|
readonly id: number;
|
|
3084
|
-
readonly type: "transaction";
|
|
3085
3084
|
readonly data: readonly {
|
|
3086
3085
|
readonly rows: readonly {
|
|
3087
3086
|
readonly [x: string]: unknown;
|
|
@@ -3100,13 +3099,13 @@ export declare const apiClients: {
|
|
|
3100
3099
|
};
|
|
3101
3100
|
readonly lastInsertRowid?: number | undefined;
|
|
3102
3101
|
}[];
|
|
3102
|
+
readonly type: "transaction";
|
|
3103
3103
|
} | {
|
|
3104
|
-
readonly id: number;
|
|
3105
3104
|
readonly error: string;
|
|
3105
|
+
readonly id: number;
|
|
3106
3106
|
readonly type: "query" | "transaction";
|
|
3107
3107
|
}, import("@effect/platform/HttpClientResponse").HttpClientResponse] : {
|
|
3108
3108
|
readonly id: number;
|
|
3109
|
-
readonly type: "query";
|
|
3110
3109
|
readonly data: {
|
|
3111
3110
|
readonly rows: readonly {
|
|
3112
3111
|
readonly [x: string]: unknown;
|
|
@@ -3125,9 +3124,9 @@ export declare const apiClients: {
|
|
|
3125
3124
|
};
|
|
3126
3125
|
readonly lastInsertRowid?: number | undefined;
|
|
3127
3126
|
};
|
|
3127
|
+
readonly type: "query";
|
|
3128
3128
|
} | {
|
|
3129
3129
|
readonly id: number;
|
|
3130
|
-
readonly type: "transaction";
|
|
3131
3130
|
readonly data: readonly {
|
|
3132
3131
|
readonly rows: readonly {
|
|
3133
3132
|
readonly [x: string]: unknown;
|
|
@@ -3146,17 +3145,18 @@ export declare const apiClients: {
|
|
|
3146
3145
|
};
|
|
3147
3146
|
readonly lastInsertRowid?: number | undefined;
|
|
3148
3147
|
}[];
|
|
3148
|
+
readonly type: "transaction";
|
|
3149
3149
|
} | {
|
|
3150
|
-
readonly id: number;
|
|
3151
3150
|
readonly error: string;
|
|
3151
|
+
readonly id: number;
|
|
3152
3152
|
readonly type: "query" | "transaction";
|
|
3153
|
-
}, import("effect/ParseResult").ParseError | import("@effect/platform/HttpApiError").HttpApiDecodeError | import("@withstudiocms/api-spec/astro-context").AstroLocalsMissing | import("@
|
|
3153
|
+
}, import("effect/ParseResult").ParseError | import("@effect/platform/HttpApiError").HttpApiDecodeError | import("@withstudiocms/api-spec/astro-context").AstroLocalsMissing | import("@withstudiocms/api-spec/integrations").IntegrationsAPIError | import("@effect/platform/HttpApiError").Unauthorized | import("@effect/platform/HttpClientError").HttpClientError, never>;
|
|
3154
3154
|
};
|
|
3155
3155
|
readonly storageManager: {
|
|
3156
3156
|
readonly storageManager: <WithResponse extends boolean = false>(request: {
|
|
3157
3157
|
readonly payload: {
|
|
3158
|
-
readonly action: "resolveUrl";
|
|
3159
3158
|
readonly identifier: `storage-file://${string}`;
|
|
3159
|
+
readonly action: "resolveUrl";
|
|
3160
3160
|
};
|
|
3161
3161
|
readonly withResponse?: WithResponse | undefined;
|
|
3162
3162
|
} | {
|
|
@@ -3168,8 +3168,8 @@ export declare const apiClients: {
|
|
|
3168
3168
|
} | {
|
|
3169
3169
|
readonly payload: {
|
|
3170
3170
|
readonly key: string;
|
|
3171
|
-
readonly contentType: string;
|
|
3172
3171
|
readonly action: "upload";
|
|
3172
|
+
readonly contentType: string;
|
|
3173
3173
|
};
|
|
3174
3174
|
readonly withResponse?: WithResponse | undefined;
|
|
3175
3175
|
} | {
|
|
@@ -3234,8 +3234,8 @@ export declare const apiClients: {
|
|
|
3234
3234
|
} | {
|
|
3235
3235
|
readonly success: boolean;
|
|
3236
3236
|
} | {
|
|
3237
|
-
readonly success: boolean;
|
|
3238
3237
|
readonly newKey: string;
|
|
3238
|
+
readonly success: boolean;
|
|
3239
3239
|
} | {
|
|
3240
3240
|
readonly url: string;
|
|
3241
3241
|
} | {
|
|
@@ -3247,8 +3247,8 @@ export declare const apiClients: {
|
|
|
3247
3247
|
readonly expiresAt?: number | undefined;
|
|
3248
3248
|
}[];
|
|
3249
3249
|
} | {
|
|
3250
|
-
readonly success: boolean;
|
|
3251
3250
|
readonly message: string;
|
|
3251
|
+
readonly success: boolean;
|
|
3252
3252
|
readonly provider: string;
|
|
3253
3253
|
}, import("@effect/platform/HttpClientResponse").HttpClientResponse] : {
|
|
3254
3254
|
readonly url: string;
|
|
@@ -3271,8 +3271,8 @@ export declare const apiClients: {
|
|
|
3271
3271
|
} | {
|
|
3272
3272
|
readonly success: boolean;
|
|
3273
3273
|
} | {
|
|
3274
|
-
readonly success: boolean;
|
|
3275
3274
|
readonly newKey: string;
|
|
3275
|
+
readonly success: boolean;
|
|
3276
3276
|
} | {
|
|
3277
3277
|
readonly url: string;
|
|
3278
3278
|
} | {
|
|
@@ -3284,8 +3284,8 @@ export declare const apiClients: {
|
|
|
3284
3284
|
readonly expiresAt?: number | undefined;
|
|
3285
3285
|
}[];
|
|
3286
3286
|
} | {
|
|
3287
|
-
readonly success: boolean;
|
|
3288
3287
|
readonly message: string;
|
|
3288
|
+
readonly success: boolean;
|
|
3289
3289
|
readonly provider: string;
|
|
3290
3290
|
}, import("effect/ParseResult").ParseError | import("@effect/platform/HttpApiError").HttpApiDecodeError | import("@withstudiocms/api-spec/astro-context").AstroLocalsMissing | import("@withstudiocms/api-spec/integrations").IntegrationsAPIError | import("@effect/platform/HttpClientError").HttpClientError, never>;
|
|
3291
3291
|
readonly storageManagerUpload: <WithResponse extends boolean = false>(request: {
|
|
@@ -3305,118 +3305,39 @@ export declare const apiClients: {
|
|
|
3305
3305
|
}, never, never>;
|
|
3306
3306
|
rest: Effect.Effect<{
|
|
3307
3307
|
readonly restV1Public: {
|
|
3308
|
-
readonly getCategories: <WithResponse extends boolean = false>(request: {
|
|
3309
|
-
readonly urlParams: {
|
|
3310
|
-
readonly name?: string | undefined;
|
|
3311
|
-
readonly parent?: number | undefined;
|
|
3312
|
-
};
|
|
3313
|
-
readonly withResponse?: WithResponse | undefined;
|
|
3314
|
-
}) => Effect.Effect<WithResponse extends true ? [readonly {
|
|
3315
|
-
readonly id: number;
|
|
3316
|
-
readonly name: string;
|
|
3317
|
-
readonly description: string;
|
|
3318
|
-
readonly parent?: number | null | undefined;
|
|
3319
|
-
readonly slug: string;
|
|
3320
|
-
readonly meta: {
|
|
3321
|
-
readonly [x: string]: unknown;
|
|
3322
|
-
};
|
|
3323
|
-
}[], import("@effect/platform/HttpClientResponse").HttpClientResponse] : readonly {
|
|
3324
|
-
readonly id: number;
|
|
3325
|
-
readonly name: string;
|
|
3326
|
-
readonly description: string;
|
|
3327
|
-
readonly parent?: number | null | undefined;
|
|
3328
|
-
readonly slug: string;
|
|
3329
|
-
readonly meta: {
|
|
3330
|
-
readonly [x: string]: unknown;
|
|
3331
|
-
};
|
|
3332
|
-
}[], import("effect/ParseResult").ParseError | import("@effect/platform/HttpApiError").HttpApiDecodeError | import("node_modules/@withstudiocms/api-spec/dist/rest-api/errors.d.mts").RestAPIError | import("@effect/platform/HttpClientError").HttpClientError, never>;
|
|
3333
|
-
readonly getCategory: <WithResponse extends boolean = false>(request: {
|
|
3334
|
-
readonly path: {
|
|
3335
|
-
readonly id: number;
|
|
3336
|
-
};
|
|
3337
|
-
readonly withResponse?: WithResponse | undefined;
|
|
3338
|
-
}) => Effect.Effect<WithResponse extends true ? [{
|
|
3339
|
-
readonly id: number;
|
|
3340
|
-
readonly name: string;
|
|
3341
|
-
readonly description: string;
|
|
3342
|
-
readonly parent?: number | null | undefined;
|
|
3343
|
-
readonly slug: string;
|
|
3344
|
-
readonly meta: {
|
|
3345
|
-
readonly [x: string]: unknown;
|
|
3346
|
-
};
|
|
3347
|
-
}, import("@effect/platform/HttpClientResponse").HttpClientResponse] : {
|
|
3348
|
-
readonly id: number;
|
|
3349
|
-
readonly name: string;
|
|
3350
|
-
readonly description: string;
|
|
3351
|
-
readonly parent?: number | null | undefined;
|
|
3352
|
-
readonly slug: string;
|
|
3353
|
-
readonly meta: {
|
|
3354
|
-
readonly [x: string]: unknown;
|
|
3355
|
-
};
|
|
3356
|
-
}, import("effect/ParseResult").ParseError | import("@effect/platform/HttpApiError").HttpApiDecodeError | import("node_modules/@withstudiocms/api-spec/dist/rest-api/errors.d.mts").RestAPIError | import("@effect/platform/HttpClientError").HttpClientError, never>;
|
|
3357
|
-
readonly getFolders: <WithResponse extends boolean = false>(request: {
|
|
3358
|
-
readonly urlParams: {
|
|
3359
|
-
readonly name?: string | undefined;
|
|
3360
|
-
readonly parent?: string | undefined;
|
|
3361
|
-
};
|
|
3362
|
-
readonly withResponse?: WithResponse | undefined;
|
|
3363
|
-
}) => Effect.Effect<WithResponse extends true ? [readonly {
|
|
3364
|
-
readonly id: string;
|
|
3365
|
-
readonly name: string;
|
|
3366
|
-
readonly parent?: string | null | undefined;
|
|
3367
|
-
}[], import("@effect/platform/HttpClientResponse").HttpClientResponse] : readonly {
|
|
3368
|
-
readonly id: string;
|
|
3369
|
-
readonly name: string;
|
|
3370
|
-
readonly parent?: string | null | undefined;
|
|
3371
|
-
}[], import("effect/ParseResult").ParseError | import("@effect/platform/HttpApiError").HttpApiDecodeError | import("node_modules/@withstudiocms/api-spec/dist/rest-api/errors.d.mts").RestAPIError | import("@effect/platform/HttpClientError").HttpClientError, never>;
|
|
3372
|
-
readonly getFolder: <WithResponse extends boolean = false>(request: {
|
|
3373
|
-
readonly path: {
|
|
3374
|
-
readonly id: string;
|
|
3375
|
-
};
|
|
3376
|
-
readonly withResponse?: WithResponse | undefined;
|
|
3377
|
-
}) => Effect.Effect<WithResponse extends true ? [{
|
|
3378
|
-
readonly id: string;
|
|
3379
|
-
readonly name: string;
|
|
3380
|
-
readonly parent?: string | null | undefined;
|
|
3381
|
-
}, import("@effect/platform/HttpClientResponse").HttpClientResponse] : {
|
|
3382
|
-
readonly id: string;
|
|
3383
|
-
readonly name: string;
|
|
3384
|
-
readonly parent?: string | null | undefined;
|
|
3385
|
-
}, import("effect/ParseResult").ParseError | import("@effect/platform/HttpApiError").HttpApiDecodeError | import("node_modules/@withstudiocms/api-spec/dist/rest-api/errors.d.mts").RestAPIError | import("@effect/platform/HttpClientError").HttpClientError, never>;
|
|
3386
3308
|
readonly getPages: <WithResponse extends boolean = false>(request: {
|
|
3387
3309
|
readonly urlParams: {
|
|
3388
3310
|
readonly title?: string | undefined;
|
|
3389
3311
|
readonly slug?: string | undefined;
|
|
3390
|
-
readonly author?: string | undefined;
|
|
3391
3312
|
readonly parentFolder?: string | undefined;
|
|
3313
|
+
readonly author?: string | undefined;
|
|
3392
3314
|
};
|
|
3393
3315
|
readonly withResponse?: WithResponse | undefined;
|
|
3394
3316
|
}) => Effect.Effect<WithResponse extends true ? [readonly {
|
|
3317
|
+
readonly description: string;
|
|
3395
3318
|
readonly id: string;
|
|
3396
3319
|
readonly updatedAt: Date;
|
|
3397
|
-
readonly description: string;
|
|
3398
3320
|
readonly title: string;
|
|
3321
|
+
readonly package: string;
|
|
3322
|
+
readonly showOnNav: boolean;
|
|
3323
|
+
readonly publishedAt: Date;
|
|
3324
|
+
readonly slug: string;
|
|
3325
|
+
readonly contentLang: string;
|
|
3326
|
+
readonly heroImage?: string | null | undefined;
|
|
3399
3327
|
readonly categories: readonly {
|
|
3328
|
+
readonly description: string;
|
|
3400
3329
|
readonly id: number;
|
|
3401
3330
|
readonly name: string;
|
|
3402
|
-
readonly description: string;
|
|
3403
|
-
readonly parent?: number | null | undefined;
|
|
3404
3331
|
readonly slug: string;
|
|
3405
3332
|
readonly meta: {
|
|
3406
3333
|
readonly [x: string]: unknown;
|
|
3407
3334
|
};
|
|
3335
|
+
readonly parent?: number | null | undefined;
|
|
3408
3336
|
}[];
|
|
3409
|
-
readonly slug: string;
|
|
3410
|
-
readonly parentFolder?: string | null | undefined;
|
|
3411
|
-
readonly package: string;
|
|
3412
|
-
readonly showOnNav: boolean;
|
|
3413
|
-
readonly publishedAt: Date;
|
|
3414
|
-
readonly contentLang: string;
|
|
3415
|
-
readonly heroImage?: string | null | undefined;
|
|
3416
3337
|
readonly tags: readonly {
|
|
3338
|
+
readonly description: string;
|
|
3417
3339
|
readonly id: number;
|
|
3418
3340
|
readonly name: string;
|
|
3419
|
-
readonly description: string;
|
|
3420
3341
|
readonly slug: string;
|
|
3421
3342
|
readonly meta: {
|
|
3422
3343
|
readonly [x: string]: unknown;
|
|
@@ -3426,19 +3347,20 @@ export declare const apiClients: {
|
|
|
3426
3347
|
readonly contributorIds: readonly string[];
|
|
3427
3348
|
readonly showAuthor: boolean;
|
|
3428
3349
|
readonly showContributors: boolean;
|
|
3350
|
+
readonly parentFolder?: string | null | undefined;
|
|
3429
3351
|
readonly draft: boolean;
|
|
3430
3352
|
readonly augments: readonly string[];
|
|
3431
3353
|
readonly multiLangContent: readonly {
|
|
3432
3354
|
readonly id: string;
|
|
3355
|
+
readonly content: string;
|
|
3433
3356
|
readonly contentLang: string;
|
|
3434
3357
|
readonly contentId: string;
|
|
3435
|
-
readonly content: string;
|
|
3436
3358
|
}[];
|
|
3437
3359
|
readonly defaultContent: {
|
|
3438
3360
|
readonly id: string;
|
|
3361
|
+
readonly content: string;
|
|
3439
3362
|
readonly contentLang: string;
|
|
3440
3363
|
readonly contentId: string;
|
|
3441
|
-
readonly content: string;
|
|
3442
3364
|
} | undefined;
|
|
3443
3365
|
readonly urlRoute: string;
|
|
3444
3366
|
readonly authorData: {
|
|
@@ -3464,31 +3386,30 @@ export declare const apiClients: {
|
|
|
3464
3386
|
readonly notifications?: string | null | undefined;
|
|
3465
3387
|
}[];
|
|
3466
3388
|
}[], import("@effect/platform/HttpClientResponse").HttpClientResponse] : readonly {
|
|
3389
|
+
readonly description: string;
|
|
3467
3390
|
readonly id: string;
|
|
3468
3391
|
readonly updatedAt: Date;
|
|
3469
|
-
readonly description: string;
|
|
3470
3392
|
readonly title: string;
|
|
3393
|
+
readonly package: string;
|
|
3394
|
+
readonly showOnNav: boolean;
|
|
3395
|
+
readonly publishedAt: Date;
|
|
3396
|
+
readonly slug: string;
|
|
3397
|
+
readonly contentLang: string;
|
|
3398
|
+
readonly heroImage?: string | null | undefined;
|
|
3471
3399
|
readonly categories: readonly {
|
|
3400
|
+
readonly description: string;
|
|
3472
3401
|
readonly id: number;
|
|
3473
3402
|
readonly name: string;
|
|
3474
|
-
readonly description: string;
|
|
3475
|
-
readonly parent?: number | null | undefined;
|
|
3476
3403
|
readonly slug: string;
|
|
3477
3404
|
readonly meta: {
|
|
3478
3405
|
readonly [x: string]: unknown;
|
|
3479
3406
|
};
|
|
3407
|
+
readonly parent?: number | null | undefined;
|
|
3480
3408
|
}[];
|
|
3481
|
-
readonly slug: string;
|
|
3482
|
-
readonly parentFolder?: string | null | undefined;
|
|
3483
|
-
readonly package: string;
|
|
3484
|
-
readonly showOnNav: boolean;
|
|
3485
|
-
readonly publishedAt: Date;
|
|
3486
|
-
readonly contentLang: string;
|
|
3487
|
-
readonly heroImage?: string | null | undefined;
|
|
3488
3409
|
readonly tags: readonly {
|
|
3410
|
+
readonly description: string;
|
|
3489
3411
|
readonly id: number;
|
|
3490
3412
|
readonly name: string;
|
|
3491
|
-
readonly description: string;
|
|
3492
3413
|
readonly slug: string;
|
|
3493
3414
|
readonly meta: {
|
|
3494
3415
|
readonly [x: string]: unknown;
|
|
@@ -3498,19 +3419,20 @@ export declare const apiClients: {
|
|
|
3498
3419
|
readonly contributorIds: readonly string[];
|
|
3499
3420
|
readonly showAuthor: boolean;
|
|
3500
3421
|
readonly showContributors: boolean;
|
|
3422
|
+
readonly parentFolder?: string | null | undefined;
|
|
3501
3423
|
readonly draft: boolean;
|
|
3502
3424
|
readonly augments: readonly string[];
|
|
3503
3425
|
readonly multiLangContent: readonly {
|
|
3504
3426
|
readonly id: string;
|
|
3427
|
+
readonly content: string;
|
|
3505
3428
|
readonly contentLang: string;
|
|
3506
3429
|
readonly contentId: string;
|
|
3507
|
-
readonly content: string;
|
|
3508
3430
|
}[];
|
|
3509
3431
|
readonly defaultContent: {
|
|
3510
3432
|
readonly id: string;
|
|
3433
|
+
readonly content: string;
|
|
3511
3434
|
readonly contentLang: string;
|
|
3512
3435
|
readonly contentId: string;
|
|
3513
|
-
readonly content: string;
|
|
3514
3436
|
} | undefined;
|
|
3515
3437
|
readonly urlRoute: string;
|
|
3516
3438
|
readonly authorData: {
|
|
@@ -3542,31 +3464,30 @@ export declare const apiClients: {
|
|
|
3542
3464
|
};
|
|
3543
3465
|
readonly withResponse?: WithResponse | undefined;
|
|
3544
3466
|
}) => Effect.Effect<WithResponse extends true ? [{
|
|
3467
|
+
readonly description: string;
|
|
3545
3468
|
readonly id: string;
|
|
3546
3469
|
readonly updatedAt: Date;
|
|
3547
|
-
readonly description: string;
|
|
3548
3470
|
readonly title: string;
|
|
3471
|
+
readonly package: string;
|
|
3472
|
+
readonly showOnNav: boolean;
|
|
3473
|
+
readonly publishedAt: Date;
|
|
3474
|
+
readonly slug: string;
|
|
3475
|
+
readonly contentLang: string;
|
|
3476
|
+
readonly heroImage?: string | null | undefined;
|
|
3549
3477
|
readonly categories: readonly {
|
|
3478
|
+
readonly description: string;
|
|
3550
3479
|
readonly id: number;
|
|
3551
3480
|
readonly name: string;
|
|
3552
|
-
readonly description: string;
|
|
3553
|
-
readonly parent?: number | null | undefined;
|
|
3554
3481
|
readonly slug: string;
|
|
3555
3482
|
readonly meta: {
|
|
3556
3483
|
readonly [x: string]: unknown;
|
|
3557
3484
|
};
|
|
3485
|
+
readonly parent?: number | null | undefined;
|
|
3558
3486
|
}[];
|
|
3559
|
-
readonly slug: string;
|
|
3560
|
-
readonly parentFolder?: string | null | undefined;
|
|
3561
|
-
readonly package: string;
|
|
3562
|
-
readonly showOnNav: boolean;
|
|
3563
|
-
readonly publishedAt: Date;
|
|
3564
|
-
readonly contentLang: string;
|
|
3565
|
-
readonly heroImage?: string | null | undefined;
|
|
3566
3487
|
readonly tags: readonly {
|
|
3488
|
+
readonly description: string;
|
|
3567
3489
|
readonly id: number;
|
|
3568
3490
|
readonly name: string;
|
|
3569
|
-
readonly description: string;
|
|
3570
3491
|
readonly slug: string;
|
|
3571
3492
|
readonly meta: {
|
|
3572
3493
|
readonly [x: string]: unknown;
|
|
@@ -3576,19 +3497,20 @@ export declare const apiClients: {
|
|
|
3576
3497
|
readonly contributorIds: readonly string[];
|
|
3577
3498
|
readonly showAuthor: boolean;
|
|
3578
3499
|
readonly showContributors: boolean;
|
|
3500
|
+
readonly parentFolder?: string | null | undefined;
|
|
3579
3501
|
readonly draft: boolean;
|
|
3580
3502
|
readonly augments: readonly string[];
|
|
3581
3503
|
readonly multiLangContent: readonly {
|
|
3582
3504
|
readonly id: string;
|
|
3505
|
+
readonly content: string;
|
|
3583
3506
|
readonly contentLang: string;
|
|
3584
3507
|
readonly contentId: string;
|
|
3585
|
-
readonly content: string;
|
|
3586
3508
|
}[];
|
|
3587
3509
|
readonly defaultContent: {
|
|
3588
3510
|
readonly id: string;
|
|
3511
|
+
readonly content: string;
|
|
3589
3512
|
readonly contentLang: string;
|
|
3590
3513
|
readonly contentId: string;
|
|
3591
|
-
readonly content: string;
|
|
3592
3514
|
} | undefined;
|
|
3593
3515
|
readonly urlRoute: string;
|
|
3594
3516
|
readonly authorData: {
|
|
@@ -3614,31 +3536,30 @@ export declare const apiClients: {
|
|
|
3614
3536
|
readonly notifications?: string | null | undefined;
|
|
3615
3537
|
}[];
|
|
3616
3538
|
}, import("@effect/platform/HttpClientResponse").HttpClientResponse] : {
|
|
3539
|
+
readonly description: string;
|
|
3617
3540
|
readonly id: string;
|
|
3618
3541
|
readonly updatedAt: Date;
|
|
3619
|
-
readonly description: string;
|
|
3620
3542
|
readonly title: string;
|
|
3543
|
+
readonly package: string;
|
|
3544
|
+
readonly showOnNav: boolean;
|
|
3545
|
+
readonly publishedAt: Date;
|
|
3546
|
+
readonly slug: string;
|
|
3547
|
+
readonly contentLang: string;
|
|
3548
|
+
readonly heroImage?: string | null | undefined;
|
|
3621
3549
|
readonly categories: readonly {
|
|
3550
|
+
readonly description: string;
|
|
3622
3551
|
readonly id: number;
|
|
3623
3552
|
readonly name: string;
|
|
3624
|
-
readonly description: string;
|
|
3625
|
-
readonly parent?: number | null | undefined;
|
|
3626
3553
|
readonly slug: string;
|
|
3627
3554
|
readonly meta: {
|
|
3628
3555
|
readonly [x: string]: unknown;
|
|
3629
3556
|
};
|
|
3557
|
+
readonly parent?: number | null | undefined;
|
|
3630
3558
|
}[];
|
|
3631
|
-
readonly slug: string;
|
|
3632
|
-
readonly parentFolder?: string | null | undefined;
|
|
3633
|
-
readonly package: string;
|
|
3634
|
-
readonly showOnNav: boolean;
|
|
3635
|
-
readonly publishedAt: Date;
|
|
3636
|
-
readonly contentLang: string;
|
|
3637
|
-
readonly heroImage?: string | null | undefined;
|
|
3638
3559
|
readonly tags: readonly {
|
|
3560
|
+
readonly description: string;
|
|
3639
3561
|
readonly id: number;
|
|
3640
3562
|
readonly name: string;
|
|
3641
|
-
readonly description: string;
|
|
3642
3563
|
readonly slug: string;
|
|
3643
3564
|
readonly meta: {
|
|
3644
3565
|
readonly [x: string]: unknown;
|
|
@@ -3648,19 +3569,20 @@ export declare const apiClients: {
|
|
|
3648
3569
|
readonly contributorIds: readonly string[];
|
|
3649
3570
|
readonly showAuthor: boolean;
|
|
3650
3571
|
readonly showContributors: boolean;
|
|
3572
|
+
readonly parentFolder?: string | null | undefined;
|
|
3651
3573
|
readonly draft: boolean;
|
|
3652
3574
|
readonly augments: readonly string[];
|
|
3653
3575
|
readonly multiLangContent: readonly {
|
|
3654
3576
|
readonly id: string;
|
|
3577
|
+
readonly content: string;
|
|
3655
3578
|
readonly contentLang: string;
|
|
3656
3579
|
readonly contentId: string;
|
|
3657
|
-
readonly content: string;
|
|
3658
3580
|
}[];
|
|
3659
3581
|
readonly defaultContent: {
|
|
3660
3582
|
readonly id: string;
|
|
3583
|
+
readonly content: string;
|
|
3661
3584
|
readonly contentLang: string;
|
|
3662
3585
|
readonly contentId: string;
|
|
3663
|
-
readonly content: string;
|
|
3664
3586
|
} | undefined;
|
|
3665
3587
|
readonly urlRoute: string;
|
|
3666
3588
|
readonly authorData: {
|
|
@@ -3686,159 +3608,130 @@ export declare const apiClients: {
|
|
|
3686
3608
|
readonly notifications?: string | null | undefined;
|
|
3687
3609
|
}[];
|
|
3688
3610
|
}, import("effect/ParseResult").ParseError | import("@effect/platform/HttpApiError").HttpApiDecodeError | import("node_modules/@withstudiocms/api-spec/dist/rest-api/errors.d.mts").RestAPIError | import("@effect/platform/HttpClientError").HttpClientError, never>;
|
|
3689
|
-
readonly
|
|
3611
|
+
readonly getCategories: <WithResponse extends boolean = false>(request: {
|
|
3690
3612
|
readonly urlParams: {
|
|
3691
3613
|
readonly name?: string | undefined;
|
|
3614
|
+
readonly parent?: number | undefined;
|
|
3692
3615
|
};
|
|
3693
3616
|
readonly withResponse?: WithResponse | undefined;
|
|
3694
3617
|
}) => Effect.Effect<WithResponse extends true ? [readonly {
|
|
3618
|
+
readonly description: string;
|
|
3695
3619
|
readonly id: number;
|
|
3696
3620
|
readonly name: string;
|
|
3697
|
-
readonly description: string;
|
|
3698
3621
|
readonly slug: string;
|
|
3699
3622
|
readonly meta: {
|
|
3700
3623
|
readonly [x: string]: unknown;
|
|
3701
3624
|
};
|
|
3625
|
+
readonly parent?: number | null | undefined;
|
|
3702
3626
|
}[], import("@effect/platform/HttpClientResponse").HttpClientResponse] : readonly {
|
|
3627
|
+
readonly description: string;
|
|
3703
3628
|
readonly id: number;
|
|
3704
3629
|
readonly name: string;
|
|
3705
|
-
readonly description: string;
|
|
3706
3630
|
readonly slug: string;
|
|
3707
3631
|
readonly meta: {
|
|
3708
3632
|
readonly [x: string]: unknown;
|
|
3709
3633
|
};
|
|
3634
|
+
readonly parent?: number | null | undefined;
|
|
3710
3635
|
}[], import("effect/ParseResult").ParseError | import("@effect/platform/HttpApiError").HttpApiDecodeError | import("node_modules/@withstudiocms/api-spec/dist/rest-api/errors.d.mts").RestAPIError | import("@effect/platform/HttpClientError").HttpClientError, never>;
|
|
3711
|
-
readonly
|
|
3636
|
+
readonly getCategory: <WithResponse extends boolean = false>(request: {
|
|
3712
3637
|
readonly path: {
|
|
3713
3638
|
readonly id: number;
|
|
3714
3639
|
};
|
|
3715
3640
|
readonly withResponse?: WithResponse | undefined;
|
|
3716
3641
|
}) => Effect.Effect<WithResponse extends true ? [{
|
|
3642
|
+
readonly description: string;
|
|
3717
3643
|
readonly id: number;
|
|
3718
3644
|
readonly name: string;
|
|
3719
|
-
readonly description: string;
|
|
3720
3645
|
readonly slug: string;
|
|
3721
3646
|
readonly meta: {
|
|
3722
3647
|
readonly [x: string]: unknown;
|
|
3723
3648
|
};
|
|
3649
|
+
readonly parent?: number | null | undefined;
|
|
3724
3650
|
}, import("@effect/platform/HttpClientResponse").HttpClientResponse] : {
|
|
3651
|
+
readonly description: string;
|
|
3725
3652
|
readonly id: number;
|
|
3726
3653
|
readonly name: string;
|
|
3727
|
-
readonly description: string;
|
|
3728
3654
|
readonly slug: string;
|
|
3729
3655
|
readonly meta: {
|
|
3730
3656
|
readonly [x: string]: unknown;
|
|
3731
3657
|
};
|
|
3658
|
+
readonly parent?: number | null | undefined;
|
|
3732
3659
|
}, import("effect/ParseResult").ParseError | import("@effect/platform/HttpApiError").HttpApiDecodeError | import("node_modules/@withstudiocms/api-spec/dist/rest-api/errors.d.mts").RestAPIError | import("@effect/platform/HttpClientError").HttpClientError, never>;
|
|
3733
|
-
|
|
3734
|
-
readonly restV1: {
|
|
3735
|
-
readonly getUsers: <WithResponse extends boolean = false>(request: {
|
|
3660
|
+
readonly getFolders: <WithResponse extends boolean = false>(request: {
|
|
3736
3661
|
readonly urlParams: {
|
|
3737
3662
|
readonly name?: string | undefined;
|
|
3738
|
-
readonly
|
|
3739
|
-
readonly rank?: string | undefined;
|
|
3663
|
+
readonly parent?: string | undefined;
|
|
3740
3664
|
};
|
|
3741
3665
|
readonly withResponse?: WithResponse | undefined;
|
|
3742
3666
|
}) => Effect.Effect<WithResponse extends true ? [readonly {
|
|
3743
3667
|
readonly id: string;
|
|
3744
|
-
readonly url?: string | null | undefined;
|
|
3745
3668
|
readonly name: string;
|
|
3746
|
-
readonly
|
|
3747
|
-
readonly avatar?: string | null | undefined;
|
|
3748
|
-
readonly username: string;
|
|
3749
|
-
readonly updatedAt: Date;
|
|
3750
|
-
readonly createdAt: Date;
|
|
3669
|
+
readonly parent?: string | null | undefined;
|
|
3751
3670
|
}[], import("@effect/platform/HttpClientResponse").HttpClientResponse] : readonly {
|
|
3752
3671
|
readonly id: string;
|
|
3753
|
-
readonly url?: string | null | undefined;
|
|
3754
|
-
readonly name: string;
|
|
3755
|
-
readonly email?: string | null | undefined;
|
|
3756
|
-
readonly avatar?: string | null | undefined;
|
|
3757
|
-
readonly username: string;
|
|
3758
|
-
readonly updatedAt: Date;
|
|
3759
|
-
readonly createdAt: Date;
|
|
3760
|
-
}[], import("effect/ParseResult").ParseError | import("@effect/platform/HttpApiError").HttpApiDecodeError | import("node_modules/@withstudiocms/api-spec/dist/rest-api/errors.d.mts").RestAPIError | import("node_modules/@withstudiocms/api-spec/dist/rest-api/middleware.d.mts").Unauthorized | import("@effect/platform/HttpClientError").HttpClientError, never>;
|
|
3761
|
-
readonly createUser: <WithResponse extends boolean = false>(request: {
|
|
3762
|
-
readonly payload: import("node_modules/@withstudiocms/api-spec/dist/rest-api/schemas.d.mts").RestUsersIndexJSONData;
|
|
3763
|
-
readonly withResponse?: WithResponse | undefined;
|
|
3764
|
-
}) => Effect.Effect<WithResponse extends true ? [{
|
|
3765
|
-
readonly id: string;
|
|
3766
|
-
readonly url?: string | null | undefined;
|
|
3767
|
-
readonly name: string;
|
|
3768
|
-
readonly email?: string | null | undefined;
|
|
3769
|
-
readonly avatar?: string | null | undefined;
|
|
3770
|
-
readonly username: string;
|
|
3771
|
-
readonly updatedAt: Date;
|
|
3772
|
-
readonly createdAt: Date;
|
|
3773
|
-
}, import("@effect/platform/HttpClientResponse").HttpClientResponse] : {
|
|
3774
|
-
readonly id: string;
|
|
3775
|
-
readonly url?: string | null | undefined;
|
|
3776
3672
|
readonly name: string;
|
|
3777
|
-
readonly
|
|
3778
|
-
|
|
3779
|
-
|
|
3780
|
-
readonly updatedAt: Date;
|
|
3781
|
-
readonly createdAt: Date;
|
|
3782
|
-
}, import("effect/ParseResult").ParseError | import("@effect/platform/HttpApiError").HttpApiDecodeError | import("node_modules/@withstudiocms/api-spec/dist/rest-api/errors.d.mts").RestAPIError | import("node_modules/@withstudiocms/api-spec/dist/rest-api/middleware.d.mts").Unauthorized | import("@effect/platform/HttpClientError").HttpClientError, never>;
|
|
3783
|
-
readonly getUser: <WithResponse extends boolean = false>(request: {
|
|
3673
|
+
readonly parent?: string | null | undefined;
|
|
3674
|
+
}[], import("effect/ParseResult").ParseError | import("@effect/platform/HttpApiError").HttpApiDecodeError | import("node_modules/@withstudiocms/api-spec/dist/rest-api/errors.d.mts").RestAPIError | import("@effect/platform/HttpClientError").HttpClientError, never>;
|
|
3675
|
+
readonly getFolder: <WithResponse extends boolean = false>(request: {
|
|
3784
3676
|
readonly path: {
|
|
3785
3677
|
readonly id: string;
|
|
3786
3678
|
};
|
|
3787
3679
|
readonly withResponse?: WithResponse | undefined;
|
|
3788
3680
|
}) => Effect.Effect<WithResponse extends true ? [{
|
|
3789
3681
|
readonly id: string;
|
|
3790
|
-
readonly url?: string | null | undefined;
|
|
3791
3682
|
readonly name: string;
|
|
3792
|
-
readonly
|
|
3793
|
-
readonly avatar?: string | null | undefined;
|
|
3794
|
-
readonly username: string;
|
|
3795
|
-
readonly updatedAt: Date;
|
|
3796
|
-
readonly createdAt: Date;
|
|
3683
|
+
readonly parent?: string | null | undefined;
|
|
3797
3684
|
}, import("@effect/platform/HttpClientResponse").HttpClientResponse] : {
|
|
3798
3685
|
readonly id: string;
|
|
3799
|
-
readonly url?: string | null | undefined;
|
|
3800
3686
|
readonly name: string;
|
|
3801
|
-
readonly
|
|
3802
|
-
|
|
3803
|
-
|
|
3804
|
-
readonly
|
|
3805
|
-
|
|
3806
|
-
}, import("effect/ParseResult").ParseError | import("@effect/platform/HttpApiError").HttpApiDecodeError | import("node_modules/@withstudiocms/api-spec/dist/rest-api/errors.d.mts").RestAPIError | import("node_modules/@withstudiocms/api-spec/dist/rest-api/middleware.d.mts").Unauthorized | import("@effect/platform/HttpClientError").HttpClientError, never>;
|
|
3807
|
-
readonly updateUser: <WithResponse extends boolean = false>(request: {
|
|
3808
|
-
readonly path: {
|
|
3809
|
-
readonly id: string;
|
|
3687
|
+
readonly parent?: string | null | undefined;
|
|
3688
|
+
}, import("effect/ParseResult").ParseError | import("@effect/platform/HttpApiError").HttpApiDecodeError | import("node_modules/@withstudiocms/api-spec/dist/rest-api/errors.d.mts").RestAPIError | import("@effect/platform/HttpClientError").HttpClientError, never>;
|
|
3689
|
+
readonly getTags: <WithResponse extends boolean = false>(request: {
|
|
3690
|
+
readonly urlParams: {
|
|
3691
|
+
readonly name?: string | undefined;
|
|
3810
3692
|
};
|
|
3811
|
-
readonly payload: import("node_modules/@withstudiocms/api-spec/dist/rest-api/schemas.d.mts").RestUsersIdJSONData;
|
|
3812
3693
|
readonly withResponse?: WithResponse | undefined;
|
|
3813
|
-
}) => Effect.Effect<WithResponse extends true ? [{
|
|
3814
|
-
readonly
|
|
3815
|
-
readonly
|
|
3694
|
+
}) => Effect.Effect<WithResponse extends true ? [readonly {
|
|
3695
|
+
readonly description: string;
|
|
3696
|
+
readonly id: number;
|
|
3816
3697
|
readonly name: string;
|
|
3817
|
-
readonly
|
|
3818
|
-
readonly
|
|
3819
|
-
|
|
3820
|
-
|
|
3821
|
-
|
|
3822
|
-
|
|
3823
|
-
readonly id:
|
|
3824
|
-
readonly url?: string | null | undefined;
|
|
3698
|
+
readonly slug: string;
|
|
3699
|
+
readonly meta: {
|
|
3700
|
+
readonly [x: string]: unknown;
|
|
3701
|
+
};
|
|
3702
|
+
}[], import("@effect/platform/HttpClientResponse").HttpClientResponse] : readonly {
|
|
3703
|
+
readonly description: string;
|
|
3704
|
+
readonly id: number;
|
|
3825
3705
|
readonly name: string;
|
|
3826
|
-
readonly
|
|
3827
|
-
readonly
|
|
3828
|
-
|
|
3829
|
-
|
|
3830
|
-
|
|
3831
|
-
|
|
3832
|
-
readonly deleteUser: <WithResponse extends boolean = false>(request: {
|
|
3706
|
+
readonly slug: string;
|
|
3707
|
+
readonly meta: {
|
|
3708
|
+
readonly [x: string]: unknown;
|
|
3709
|
+
};
|
|
3710
|
+
}[], import("effect/ParseResult").ParseError | import("@effect/platform/HttpApiError").HttpApiDecodeError | import("node_modules/@withstudiocms/api-spec/dist/rest-api/errors.d.mts").RestAPIError | import("@effect/platform/HttpClientError").HttpClientError, never>;
|
|
3711
|
+
readonly getTag: <WithResponse extends boolean = false>(request: {
|
|
3833
3712
|
readonly path: {
|
|
3834
|
-
readonly id:
|
|
3713
|
+
readonly id: number;
|
|
3835
3714
|
};
|
|
3836
3715
|
readonly withResponse?: WithResponse | undefined;
|
|
3837
3716
|
}) => Effect.Effect<WithResponse extends true ? [{
|
|
3838
|
-
readonly
|
|
3717
|
+
readonly description: string;
|
|
3718
|
+
readonly id: number;
|
|
3719
|
+
readonly name: string;
|
|
3720
|
+
readonly slug: string;
|
|
3721
|
+
readonly meta: {
|
|
3722
|
+
readonly [x: string]: unknown;
|
|
3723
|
+
};
|
|
3839
3724
|
}, import("@effect/platform/HttpClientResponse").HttpClientResponse] : {
|
|
3840
|
-
readonly
|
|
3841
|
-
|
|
3725
|
+
readonly description: string;
|
|
3726
|
+
readonly id: number;
|
|
3727
|
+
readonly name: string;
|
|
3728
|
+
readonly slug: string;
|
|
3729
|
+
readonly meta: {
|
|
3730
|
+
readonly [x: string]: unknown;
|
|
3731
|
+
};
|
|
3732
|
+
}, import("effect/ParseResult").ParseError | import("@effect/platform/HttpApiError").HttpApiDecodeError | import("node_modules/@withstudiocms/api-spec/dist/rest-api/errors.d.mts").RestAPIError | import("@effect/platform/HttpClientError").HttpClientError, never>;
|
|
3733
|
+
};
|
|
3734
|
+
readonly restV1: {
|
|
3842
3735
|
readonly deleteCategory: <WithResponse extends boolean = false>(request: {
|
|
3843
3736
|
readonly path: {
|
|
3844
3737
|
readonly id: number;
|
|
@@ -3855,57 +3748,57 @@ export declare const apiClients: {
|
|
|
3855
3748
|
};
|
|
3856
3749
|
readonly withResponse?: WithResponse | undefined;
|
|
3857
3750
|
}) => Effect.Effect<WithResponse extends true ? [{
|
|
3751
|
+
readonly description: string;
|
|
3858
3752
|
readonly id: number;
|
|
3859
3753
|
readonly name: string;
|
|
3860
|
-
readonly description: string;
|
|
3861
|
-
readonly parent?: number | null | undefined;
|
|
3862
3754
|
readonly slug: string;
|
|
3863
3755
|
readonly meta: {
|
|
3864
3756
|
readonly [x: string]: unknown;
|
|
3865
3757
|
};
|
|
3758
|
+
readonly parent?: number | null | undefined;
|
|
3866
3759
|
}, import("@effect/platform/HttpClientResponse").HttpClientResponse] : {
|
|
3760
|
+
readonly description: string;
|
|
3867
3761
|
readonly id: number;
|
|
3868
3762
|
readonly name: string;
|
|
3869
|
-
readonly description: string;
|
|
3870
|
-
readonly parent?: number | null | undefined;
|
|
3871
3763
|
readonly slug: string;
|
|
3872
3764
|
readonly meta: {
|
|
3873
3765
|
readonly [x: string]: unknown;
|
|
3874
3766
|
};
|
|
3767
|
+
readonly parent?: number | null | undefined;
|
|
3875
3768
|
}, import("effect/ParseResult").ParseError | import("@effect/platform/HttpApiError").HttpApiDecodeError | import("node_modules/@withstudiocms/api-spec/dist/rest-api/errors.d.mts").RestAPIError | import("node_modules/@withstudiocms/api-spec/dist/rest-api/middleware.d.mts").Unauthorized | import("@effect/platform/HttpClientError").HttpClientError, never>;
|
|
3876
3769
|
readonly updateCategory: <WithResponse extends boolean = false>(request: {
|
|
3877
3770
|
readonly path: {
|
|
3878
3771
|
readonly id: number;
|
|
3879
3772
|
};
|
|
3880
3773
|
readonly payload: {
|
|
3774
|
+
readonly description?: string | undefined;
|
|
3881
3775
|
readonly id?: number | undefined;
|
|
3882
3776
|
readonly name?: string | undefined;
|
|
3883
|
-
readonly description?: string | undefined;
|
|
3884
|
-
readonly parent?: number | null | undefined;
|
|
3885
3777
|
readonly slug?: string | undefined;
|
|
3886
3778
|
readonly meta?: {
|
|
3887
3779
|
readonly [x: string]: unknown;
|
|
3888
3780
|
} | undefined;
|
|
3781
|
+
readonly parent?: number | null | undefined;
|
|
3889
3782
|
};
|
|
3890
3783
|
readonly withResponse?: WithResponse | undefined;
|
|
3891
3784
|
}) => Effect.Effect<WithResponse extends true ? [{
|
|
3785
|
+
readonly description: string;
|
|
3892
3786
|
readonly id: number;
|
|
3893
3787
|
readonly name: string;
|
|
3894
|
-
readonly description: string;
|
|
3895
|
-
readonly parent?: number | null | undefined;
|
|
3896
3788
|
readonly slug: string;
|
|
3897
3789
|
readonly meta: {
|
|
3898
3790
|
readonly [x: string]: unknown;
|
|
3899
3791
|
};
|
|
3792
|
+
readonly parent?: number | null | undefined;
|
|
3900
3793
|
}, import("@effect/platform/HttpClientResponse").HttpClientResponse] : {
|
|
3794
|
+
readonly description: string;
|
|
3901
3795
|
readonly id: number;
|
|
3902
3796
|
readonly name: string;
|
|
3903
|
-
readonly description: string;
|
|
3904
|
-
readonly parent?: number | null | undefined;
|
|
3905
3797
|
readonly slug: string;
|
|
3906
3798
|
readonly meta: {
|
|
3907
3799
|
readonly [x: string]: unknown;
|
|
3908
3800
|
};
|
|
3801
|
+
readonly parent?: number | null | undefined;
|
|
3909
3802
|
}, import("effect/ParseResult").ParseError | import("@effect/platform/HttpApiError").HttpApiDecodeError | import("node_modules/@withstudiocms/api-spec/dist/rest-api/errors.d.mts").RestAPIError | import("node_modules/@withstudiocms/api-spec/dist/rest-api/middleware.d.mts").Unauthorized | import("@effect/platform/HttpClientError").HttpClientError, never>;
|
|
3910
3803
|
readonly getCategories: <WithResponse extends boolean = false>(request: {
|
|
3911
3804
|
readonly urlParams: {
|
|
@@ -3914,51 +3807,51 @@ export declare const apiClients: {
|
|
|
3914
3807
|
};
|
|
3915
3808
|
readonly withResponse?: WithResponse | undefined;
|
|
3916
3809
|
}) => Effect.Effect<WithResponse extends true ? [readonly {
|
|
3810
|
+
readonly description: string;
|
|
3917
3811
|
readonly id: number;
|
|
3918
3812
|
readonly name: string;
|
|
3919
|
-
readonly description: string;
|
|
3920
|
-
readonly parent?: number | null | undefined;
|
|
3921
3813
|
readonly slug: string;
|
|
3922
3814
|
readonly meta: {
|
|
3923
3815
|
readonly [x: string]: unknown;
|
|
3924
3816
|
};
|
|
3817
|
+
readonly parent?: number | null | undefined;
|
|
3925
3818
|
}[], import("@effect/platform/HttpClientResponse").HttpClientResponse] : readonly {
|
|
3819
|
+
readonly description: string;
|
|
3926
3820
|
readonly id: number;
|
|
3927
3821
|
readonly name: string;
|
|
3928
|
-
readonly description: string;
|
|
3929
|
-
readonly parent?: number | null | undefined;
|
|
3930
3822
|
readonly slug: string;
|
|
3931
3823
|
readonly meta: {
|
|
3932
3824
|
readonly [x: string]: unknown;
|
|
3933
3825
|
};
|
|
3826
|
+
readonly parent?: number | null | undefined;
|
|
3934
3827
|
}[], import("effect/ParseResult").ParseError | import("@effect/platform/HttpApiError").HttpApiDecodeError | import("node_modules/@withstudiocms/api-spec/dist/rest-api/errors.d.mts").RestAPIError | import("node_modules/@withstudiocms/api-spec/dist/rest-api/middleware.d.mts").Unauthorized | import("@effect/platform/HttpClientError").HttpClientError, never>;
|
|
3935
3828
|
readonly createCategory: <WithResponse extends boolean = false>(request: {
|
|
3936
3829
|
readonly payload: {
|
|
3937
|
-
readonly name: string;
|
|
3938
3830
|
readonly description: string;
|
|
3939
|
-
readonly
|
|
3831
|
+
readonly name: string;
|
|
3940
3832
|
readonly slug: string;
|
|
3941
3833
|
readonly meta: string;
|
|
3834
|
+
readonly parent?: number | null | undefined;
|
|
3942
3835
|
};
|
|
3943
3836
|
readonly withResponse?: WithResponse | undefined;
|
|
3944
3837
|
}) => Effect.Effect<WithResponse extends true ? [{
|
|
3838
|
+
readonly description: string;
|
|
3945
3839
|
readonly id: number;
|
|
3946
3840
|
readonly name: string;
|
|
3947
|
-
readonly description: string;
|
|
3948
|
-
readonly parent?: number | null | undefined;
|
|
3949
3841
|
readonly slug: string;
|
|
3950
3842
|
readonly meta: {
|
|
3951
3843
|
readonly [x: string]: unknown;
|
|
3952
3844
|
};
|
|
3845
|
+
readonly parent?: number | null | undefined;
|
|
3953
3846
|
}, import("@effect/platform/HttpClientResponse").HttpClientResponse] : {
|
|
3847
|
+
readonly description: string;
|
|
3954
3848
|
readonly id: number;
|
|
3955
3849
|
readonly name: string;
|
|
3956
|
-
readonly description: string;
|
|
3957
|
-
readonly parent?: number | null | undefined;
|
|
3958
3850
|
readonly slug: string;
|
|
3959
3851
|
readonly meta: {
|
|
3960
3852
|
readonly [x: string]: unknown;
|
|
3961
3853
|
};
|
|
3854
|
+
readonly parent?: number | null | undefined;
|
|
3962
3855
|
}, import("effect/ParseResult").ParseError | import("@effect/platform/HttpApiError").HttpApiDecodeError | import("node_modules/@withstudiocms/api-spec/dist/rest-api/errors.d.mts").RestAPIError | import("node_modules/@withstudiocms/api-spec/dist/rest-api/middleware.d.mts").Unauthorized | import("@effect/platform/HttpClientError").HttpClientError, never>;
|
|
3963
3856
|
readonly deleteFolder: <WithResponse extends boolean = false>(request: {
|
|
3964
3857
|
readonly path: {
|
|
@@ -4040,31 +3933,30 @@ export declare const apiClients: {
|
|
|
4040
3933
|
};
|
|
4041
3934
|
readonly withResponse?: WithResponse | undefined;
|
|
4042
3935
|
}) => Effect.Effect<WithResponse extends true ? [{
|
|
3936
|
+
readonly description: string;
|
|
4043
3937
|
readonly id: string;
|
|
4044
3938
|
readonly updatedAt: Date;
|
|
4045
|
-
readonly description: string;
|
|
4046
3939
|
readonly title: string;
|
|
3940
|
+
readonly package: string;
|
|
3941
|
+
readonly showOnNav: boolean;
|
|
3942
|
+
readonly publishedAt: Date;
|
|
3943
|
+
readonly slug: string;
|
|
3944
|
+
readonly contentLang: string;
|
|
3945
|
+
readonly heroImage?: string | null | undefined;
|
|
4047
3946
|
readonly categories: readonly {
|
|
3947
|
+
readonly description: string;
|
|
4048
3948
|
readonly id: number;
|
|
4049
3949
|
readonly name: string;
|
|
4050
|
-
readonly description: string;
|
|
4051
|
-
readonly parent?: number | null | undefined;
|
|
4052
3950
|
readonly slug: string;
|
|
4053
3951
|
readonly meta: {
|
|
4054
3952
|
readonly [x: string]: unknown;
|
|
4055
3953
|
};
|
|
3954
|
+
readonly parent?: number | null | undefined;
|
|
4056
3955
|
}[];
|
|
4057
|
-
readonly slug: string;
|
|
4058
|
-
readonly parentFolder?: string | null | undefined;
|
|
4059
|
-
readonly package: string;
|
|
4060
|
-
readonly showOnNav: boolean;
|
|
4061
|
-
readonly publishedAt: Date;
|
|
4062
|
-
readonly contentLang: string;
|
|
4063
|
-
readonly heroImage?: string | null | undefined;
|
|
4064
3956
|
readonly tags: readonly {
|
|
3957
|
+
readonly description: string;
|
|
4065
3958
|
readonly id: number;
|
|
4066
3959
|
readonly name: string;
|
|
4067
|
-
readonly description: string;
|
|
4068
3960
|
readonly slug: string;
|
|
4069
3961
|
readonly meta: {
|
|
4070
3962
|
readonly [x: string]: unknown;
|
|
@@ -4074,19 +3966,20 @@ export declare const apiClients: {
|
|
|
4074
3966
|
readonly contributorIds: readonly string[];
|
|
4075
3967
|
readonly showAuthor: boolean;
|
|
4076
3968
|
readonly showContributors: boolean;
|
|
3969
|
+
readonly parentFolder?: string | null | undefined;
|
|
4077
3970
|
readonly draft: boolean;
|
|
4078
3971
|
readonly augments: readonly string[];
|
|
4079
3972
|
readonly multiLangContent: readonly {
|
|
4080
3973
|
readonly id: string;
|
|
3974
|
+
readonly content: string;
|
|
4081
3975
|
readonly contentLang: string;
|
|
4082
3976
|
readonly contentId: string;
|
|
4083
|
-
readonly content: string;
|
|
4084
3977
|
}[];
|
|
4085
3978
|
readonly defaultContent: {
|
|
4086
3979
|
readonly id: string;
|
|
3980
|
+
readonly content: string;
|
|
4087
3981
|
readonly contentLang: string;
|
|
4088
3982
|
readonly contentId: string;
|
|
4089
|
-
readonly content: string;
|
|
4090
3983
|
} | undefined;
|
|
4091
3984
|
readonly urlRoute: string;
|
|
4092
3985
|
readonly authorData: {
|
|
@@ -4112,31 +4005,30 @@ export declare const apiClients: {
|
|
|
4112
4005
|
readonly notifications?: string | null | undefined;
|
|
4113
4006
|
}[];
|
|
4114
4007
|
}, import("@effect/platform/HttpClientResponse").HttpClientResponse] : {
|
|
4008
|
+
readonly description: string;
|
|
4115
4009
|
readonly id: string;
|
|
4116
4010
|
readonly updatedAt: Date;
|
|
4117
|
-
readonly description: string;
|
|
4118
4011
|
readonly title: string;
|
|
4012
|
+
readonly package: string;
|
|
4013
|
+
readonly showOnNav: boolean;
|
|
4014
|
+
readonly publishedAt: Date;
|
|
4015
|
+
readonly slug: string;
|
|
4016
|
+
readonly contentLang: string;
|
|
4017
|
+
readonly heroImage?: string | null | undefined;
|
|
4119
4018
|
readonly categories: readonly {
|
|
4019
|
+
readonly description: string;
|
|
4120
4020
|
readonly id: number;
|
|
4121
4021
|
readonly name: string;
|
|
4122
|
-
readonly description: string;
|
|
4123
|
-
readonly parent?: number | null | undefined;
|
|
4124
4022
|
readonly slug: string;
|
|
4125
4023
|
readonly meta: {
|
|
4126
4024
|
readonly [x: string]: unknown;
|
|
4127
4025
|
};
|
|
4026
|
+
readonly parent?: number | null | undefined;
|
|
4128
4027
|
}[];
|
|
4129
|
-
readonly slug: string;
|
|
4130
|
-
readonly parentFolder?: string | null | undefined;
|
|
4131
|
-
readonly package: string;
|
|
4132
|
-
readonly showOnNav: boolean;
|
|
4133
|
-
readonly publishedAt: Date;
|
|
4134
|
-
readonly contentLang: string;
|
|
4135
|
-
readonly heroImage?: string | null | undefined;
|
|
4136
4028
|
readonly tags: readonly {
|
|
4029
|
+
readonly description: string;
|
|
4137
4030
|
readonly id: number;
|
|
4138
4031
|
readonly name: string;
|
|
4139
|
-
readonly description: string;
|
|
4140
4032
|
readonly slug: string;
|
|
4141
4033
|
readonly meta: {
|
|
4142
4034
|
readonly [x: string]: unknown;
|
|
@@ -4146,19 +4038,20 @@ export declare const apiClients: {
|
|
|
4146
4038
|
readonly contributorIds: readonly string[];
|
|
4147
4039
|
readonly showAuthor: boolean;
|
|
4148
4040
|
readonly showContributors: boolean;
|
|
4041
|
+
readonly parentFolder?: string | null | undefined;
|
|
4149
4042
|
readonly draft: boolean;
|
|
4150
4043
|
readonly augments: readonly string[];
|
|
4151
4044
|
readonly multiLangContent: readonly {
|
|
4152
4045
|
readonly id: string;
|
|
4046
|
+
readonly content: string;
|
|
4153
4047
|
readonly contentLang: string;
|
|
4154
4048
|
readonly contentId: string;
|
|
4155
|
-
readonly content: string;
|
|
4156
4049
|
}[];
|
|
4157
4050
|
readonly defaultContent: {
|
|
4158
4051
|
readonly id: string;
|
|
4052
|
+
readonly content: string;
|
|
4159
4053
|
readonly contentLang: string;
|
|
4160
4054
|
readonly contentId: string;
|
|
4161
|
-
readonly content: string;
|
|
4162
4055
|
} | undefined;
|
|
4163
4056
|
readonly urlRoute: string;
|
|
4164
4057
|
readonly authorData: {
|
|
@@ -4199,44 +4092,44 @@ export declare const apiClients: {
|
|
|
4199
4092
|
readonly diff: string | null;
|
|
4200
4093
|
readonly pageMetaData: {
|
|
4201
4094
|
readonly start: {
|
|
4095
|
+
readonly description: string;
|
|
4202
4096
|
readonly id: string;
|
|
4203
4097
|
readonly updatedAt: Date;
|
|
4204
|
-
readonly description: string;
|
|
4205
4098
|
readonly title: string;
|
|
4206
|
-
readonly categories: readonly string[];
|
|
4207
|
-
readonly slug: string;
|
|
4208
|
-
readonly parentFolder?: string | null | undefined;
|
|
4209
4099
|
readonly package: string;
|
|
4210
4100
|
readonly showOnNav: boolean;
|
|
4211
4101
|
readonly publishedAt: Date;
|
|
4102
|
+
readonly slug: string;
|
|
4212
4103
|
readonly contentLang: string;
|
|
4213
4104
|
readonly heroImage?: string | null | undefined;
|
|
4105
|
+
readonly categories: readonly string[];
|
|
4214
4106
|
readonly tags: readonly string[];
|
|
4215
4107
|
readonly authorId: string;
|
|
4216
4108
|
readonly contributorIds: readonly string[];
|
|
4217
4109
|
readonly showAuthor: boolean;
|
|
4218
4110
|
readonly showContributors: boolean;
|
|
4111
|
+
readonly parentFolder?: string | null | undefined;
|
|
4219
4112
|
readonly draft: boolean;
|
|
4220
4113
|
readonly augments: readonly string[];
|
|
4221
4114
|
};
|
|
4222
4115
|
readonly end: {
|
|
4116
|
+
readonly description: string;
|
|
4223
4117
|
readonly id: string;
|
|
4224
4118
|
readonly updatedAt: Date;
|
|
4225
|
-
readonly description: string;
|
|
4226
4119
|
readonly title: string;
|
|
4227
|
-
readonly categories: readonly string[];
|
|
4228
|
-
readonly slug: string;
|
|
4229
|
-
readonly parentFolder?: string | null | undefined;
|
|
4230
4120
|
readonly package: string;
|
|
4231
4121
|
readonly showOnNav: boolean;
|
|
4232
4122
|
readonly publishedAt: Date;
|
|
4123
|
+
readonly slug: string;
|
|
4233
4124
|
readonly contentLang: string;
|
|
4234
4125
|
readonly heroImage?: string | null | undefined;
|
|
4126
|
+
readonly categories: readonly string[];
|
|
4235
4127
|
readonly tags: readonly string[];
|
|
4236
4128
|
readonly authorId: string;
|
|
4237
4129
|
readonly contributorIds: readonly string[];
|
|
4238
4130
|
readonly showAuthor: boolean;
|
|
4239
4131
|
readonly showContributors: boolean;
|
|
4132
|
+
readonly parentFolder?: string | null | undefined;
|
|
4240
4133
|
readonly draft: boolean;
|
|
4241
4134
|
readonly augments: readonly string[];
|
|
4242
4135
|
};
|
|
@@ -4250,44 +4143,44 @@ export declare const apiClients: {
|
|
|
4250
4143
|
readonly diff: string | null;
|
|
4251
4144
|
readonly pageMetaData: {
|
|
4252
4145
|
readonly start: {
|
|
4146
|
+
readonly description: string;
|
|
4253
4147
|
readonly id: string;
|
|
4254
4148
|
readonly updatedAt: Date;
|
|
4255
|
-
readonly description: string;
|
|
4256
4149
|
readonly title: string;
|
|
4257
|
-
readonly categories: readonly string[];
|
|
4258
|
-
readonly slug: string;
|
|
4259
|
-
readonly parentFolder?: string | null | undefined;
|
|
4260
4150
|
readonly package: string;
|
|
4261
4151
|
readonly showOnNav: boolean;
|
|
4262
4152
|
readonly publishedAt: Date;
|
|
4153
|
+
readonly slug: string;
|
|
4263
4154
|
readonly contentLang: string;
|
|
4264
4155
|
readonly heroImage?: string | null | undefined;
|
|
4156
|
+
readonly categories: readonly string[];
|
|
4265
4157
|
readonly tags: readonly string[];
|
|
4266
4158
|
readonly authorId: string;
|
|
4267
4159
|
readonly contributorIds: readonly string[];
|
|
4268
4160
|
readonly showAuthor: boolean;
|
|
4269
4161
|
readonly showContributors: boolean;
|
|
4162
|
+
readonly parentFolder?: string | null | undefined;
|
|
4270
4163
|
readonly draft: boolean;
|
|
4271
4164
|
readonly augments: readonly string[];
|
|
4272
4165
|
};
|
|
4273
4166
|
readonly end: {
|
|
4167
|
+
readonly description: string;
|
|
4274
4168
|
readonly id: string;
|
|
4275
4169
|
readonly updatedAt: Date;
|
|
4276
|
-
readonly description: string;
|
|
4277
4170
|
readonly title: string;
|
|
4278
|
-
readonly categories: readonly string[];
|
|
4279
|
-
readonly slug: string;
|
|
4280
|
-
readonly parentFolder?: string | null | undefined;
|
|
4281
4171
|
readonly package: string;
|
|
4282
4172
|
readonly showOnNav: boolean;
|
|
4283
4173
|
readonly publishedAt: Date;
|
|
4174
|
+
readonly slug: string;
|
|
4284
4175
|
readonly contentLang: string;
|
|
4285
4176
|
readonly heroImage?: string | null | undefined;
|
|
4177
|
+
readonly categories: readonly string[];
|
|
4286
4178
|
readonly tags: readonly string[];
|
|
4287
4179
|
readonly authorId: string;
|
|
4288
4180
|
readonly contributorIds: readonly string[];
|
|
4289
4181
|
readonly showAuthor: boolean;
|
|
4290
4182
|
readonly showContributors: boolean;
|
|
4183
|
+
readonly parentFolder?: string | null | undefined;
|
|
4291
4184
|
readonly draft: boolean;
|
|
4292
4185
|
readonly augments: readonly string[];
|
|
4293
4186
|
};
|
|
@@ -4310,44 +4203,44 @@ export declare const apiClients: {
|
|
|
4310
4203
|
readonly diff: string | null;
|
|
4311
4204
|
readonly pageMetaData: {
|
|
4312
4205
|
readonly start: {
|
|
4206
|
+
readonly description: string;
|
|
4313
4207
|
readonly id: string;
|
|
4314
4208
|
readonly updatedAt: Date;
|
|
4315
|
-
readonly description: string;
|
|
4316
4209
|
readonly title: string;
|
|
4317
|
-
readonly categories: readonly string[];
|
|
4318
|
-
readonly slug: string;
|
|
4319
|
-
readonly parentFolder?: string | null | undefined;
|
|
4320
4210
|
readonly package: string;
|
|
4321
4211
|
readonly showOnNav: boolean;
|
|
4322
4212
|
readonly publishedAt: Date;
|
|
4213
|
+
readonly slug: string;
|
|
4323
4214
|
readonly contentLang: string;
|
|
4324
4215
|
readonly heroImage?: string | null | undefined;
|
|
4216
|
+
readonly categories: readonly string[];
|
|
4325
4217
|
readonly tags: readonly string[];
|
|
4326
4218
|
readonly authorId: string;
|
|
4327
4219
|
readonly contributorIds: readonly string[];
|
|
4328
4220
|
readonly showAuthor: boolean;
|
|
4329
4221
|
readonly showContributors: boolean;
|
|
4222
|
+
readonly parentFolder?: string | null | undefined;
|
|
4330
4223
|
readonly draft: boolean;
|
|
4331
4224
|
readonly augments: readonly string[];
|
|
4332
4225
|
};
|
|
4333
4226
|
readonly end: {
|
|
4227
|
+
readonly description: string;
|
|
4334
4228
|
readonly id: string;
|
|
4335
4229
|
readonly updatedAt: Date;
|
|
4336
|
-
readonly description: string;
|
|
4337
4230
|
readonly title: string;
|
|
4338
|
-
readonly categories: readonly string[];
|
|
4339
|
-
readonly slug: string;
|
|
4340
|
-
readonly parentFolder?: string | null | undefined;
|
|
4341
4231
|
readonly package: string;
|
|
4342
4232
|
readonly showOnNav: boolean;
|
|
4343
4233
|
readonly publishedAt: Date;
|
|
4234
|
+
readonly slug: string;
|
|
4344
4235
|
readonly contentLang: string;
|
|
4345
4236
|
readonly heroImage?: string | null | undefined;
|
|
4237
|
+
readonly categories: readonly string[];
|
|
4346
4238
|
readonly tags: readonly string[];
|
|
4347
4239
|
readonly authorId: string;
|
|
4348
4240
|
readonly contributorIds: readonly string[];
|
|
4349
4241
|
readonly showAuthor: boolean;
|
|
4350
4242
|
readonly showContributors: boolean;
|
|
4243
|
+
readonly parentFolder?: string | null | undefined;
|
|
4351
4244
|
readonly draft: boolean;
|
|
4352
4245
|
readonly augments: readonly string[];
|
|
4353
4246
|
};
|
|
@@ -4361,44 +4254,44 @@ export declare const apiClients: {
|
|
|
4361
4254
|
readonly diff: string | null;
|
|
4362
4255
|
readonly pageMetaData: {
|
|
4363
4256
|
readonly start: {
|
|
4257
|
+
readonly description: string;
|
|
4364
4258
|
readonly id: string;
|
|
4365
4259
|
readonly updatedAt: Date;
|
|
4366
|
-
readonly description: string;
|
|
4367
4260
|
readonly title: string;
|
|
4368
|
-
readonly categories: readonly string[];
|
|
4369
|
-
readonly slug: string;
|
|
4370
|
-
readonly parentFolder?: string | null | undefined;
|
|
4371
4261
|
readonly package: string;
|
|
4372
4262
|
readonly showOnNav: boolean;
|
|
4373
4263
|
readonly publishedAt: Date;
|
|
4264
|
+
readonly slug: string;
|
|
4374
4265
|
readonly contentLang: string;
|
|
4375
4266
|
readonly heroImage?: string | null | undefined;
|
|
4267
|
+
readonly categories: readonly string[];
|
|
4376
4268
|
readonly tags: readonly string[];
|
|
4377
4269
|
readonly authorId: string;
|
|
4378
4270
|
readonly contributorIds: readonly string[];
|
|
4379
4271
|
readonly showAuthor: boolean;
|
|
4380
4272
|
readonly showContributors: boolean;
|
|
4273
|
+
readonly parentFolder?: string | null | undefined;
|
|
4381
4274
|
readonly draft: boolean;
|
|
4382
4275
|
readonly augments: readonly string[];
|
|
4383
4276
|
};
|
|
4384
4277
|
readonly end: {
|
|
4278
|
+
readonly description: string;
|
|
4385
4279
|
readonly id: string;
|
|
4386
4280
|
readonly updatedAt: Date;
|
|
4387
|
-
readonly description: string;
|
|
4388
4281
|
readonly title: string;
|
|
4389
|
-
readonly categories: readonly string[];
|
|
4390
|
-
readonly slug: string;
|
|
4391
|
-
readonly parentFolder?: string | null | undefined;
|
|
4392
4282
|
readonly package: string;
|
|
4393
4283
|
readonly showOnNav: boolean;
|
|
4394
4284
|
readonly publishedAt: Date;
|
|
4285
|
+
readonly slug: string;
|
|
4395
4286
|
readonly contentLang: string;
|
|
4396
4287
|
readonly heroImage?: string | null | undefined;
|
|
4288
|
+
readonly categories: readonly string[];
|
|
4397
4289
|
readonly tags: readonly string[];
|
|
4398
4290
|
readonly authorId: string;
|
|
4399
4291
|
readonly contributorIds: readonly string[];
|
|
4400
4292
|
readonly showAuthor: boolean;
|
|
4401
4293
|
readonly showContributors: boolean;
|
|
4294
|
+
readonly parentFolder?: string | null | undefined;
|
|
4402
4295
|
readonly draft: boolean;
|
|
4403
4296
|
readonly augments: readonly string[];
|
|
4404
4297
|
};
|
|
@@ -4410,31 +4303,31 @@ export declare const apiClients: {
|
|
|
4410
4303
|
};
|
|
4411
4304
|
readonly payload: {
|
|
4412
4305
|
readonly data?: {
|
|
4306
|
+
readonly description?: string | undefined;
|
|
4413
4307
|
readonly id?: string | undefined;
|
|
4414
4308
|
readonly updatedAt?: Date | undefined;
|
|
4415
|
-
readonly description?: string | undefined;
|
|
4416
4309
|
readonly title?: string | undefined;
|
|
4417
|
-
readonly categories?: readonly string[] | undefined;
|
|
4418
|
-
readonly slug?: string | undefined;
|
|
4419
|
-
readonly parentFolder?: string | null | undefined;
|
|
4420
4310
|
readonly package?: string | undefined;
|
|
4421
4311
|
readonly showOnNav?: boolean | undefined;
|
|
4422
4312
|
readonly publishedAt?: Date | undefined;
|
|
4313
|
+
readonly slug?: string | undefined;
|
|
4423
4314
|
readonly contentLang?: string | undefined;
|
|
4424
4315
|
readonly heroImage?: string | null | undefined;
|
|
4316
|
+
readonly categories?: readonly string[] | undefined;
|
|
4425
4317
|
readonly tags?: readonly string[] | undefined;
|
|
4426
4318
|
readonly authorId?: string | undefined;
|
|
4427
4319
|
readonly contributorIds?: readonly string[] | undefined;
|
|
4428
4320
|
readonly showAuthor?: boolean | undefined;
|
|
4429
4321
|
readonly showContributors?: boolean | undefined;
|
|
4322
|
+
readonly parentFolder?: string | null | undefined;
|
|
4430
4323
|
readonly draft?: boolean | undefined;
|
|
4431
4324
|
readonly augments?: readonly string[] | undefined;
|
|
4432
4325
|
} | undefined;
|
|
4433
4326
|
readonly content?: {
|
|
4434
4327
|
readonly id?: string | undefined;
|
|
4328
|
+
readonly content?: string | undefined;
|
|
4435
4329
|
readonly contentLang?: string | undefined;
|
|
4436
4330
|
readonly contentId?: string | undefined;
|
|
4437
|
-
readonly content?: string | undefined;
|
|
4438
4331
|
} | undefined;
|
|
4439
4332
|
};
|
|
4440
4333
|
readonly withResponse?: WithResponse | undefined;
|
|
@@ -4447,38 +4340,37 @@ export declare const apiClients: {
|
|
|
4447
4340
|
readonly urlParams: {
|
|
4448
4341
|
readonly title?: string | undefined;
|
|
4449
4342
|
readonly slug?: string | undefined;
|
|
4450
|
-
readonly author?: string | undefined;
|
|
4451
4343
|
readonly parentFolder?: string | undefined;
|
|
4452
4344
|
readonly draft?: boolean | undefined;
|
|
4345
|
+
readonly author?: string | undefined;
|
|
4453
4346
|
readonly published?: boolean | undefined;
|
|
4454
4347
|
};
|
|
4455
4348
|
readonly withResponse?: WithResponse | undefined;
|
|
4456
4349
|
}) => Effect.Effect<WithResponse extends true ? [readonly {
|
|
4350
|
+
readonly description: string;
|
|
4457
4351
|
readonly id: string;
|
|
4458
4352
|
readonly updatedAt: Date;
|
|
4459
|
-
readonly description: string;
|
|
4460
4353
|
readonly title: string;
|
|
4354
|
+
readonly package: string;
|
|
4355
|
+
readonly showOnNav: boolean;
|
|
4356
|
+
readonly publishedAt: Date;
|
|
4357
|
+
readonly slug: string;
|
|
4358
|
+
readonly contentLang: string;
|
|
4359
|
+
readonly heroImage?: string | null | undefined;
|
|
4461
4360
|
readonly categories: readonly {
|
|
4361
|
+
readonly description: string;
|
|
4462
4362
|
readonly id: number;
|
|
4463
4363
|
readonly name: string;
|
|
4464
|
-
readonly description: string;
|
|
4465
|
-
readonly parent?: number | null | undefined;
|
|
4466
4364
|
readonly slug: string;
|
|
4467
4365
|
readonly meta: {
|
|
4468
4366
|
readonly [x: string]: unknown;
|
|
4469
4367
|
};
|
|
4368
|
+
readonly parent?: number | null | undefined;
|
|
4470
4369
|
}[];
|
|
4471
|
-
readonly slug: string;
|
|
4472
|
-
readonly parentFolder?: string | null | undefined;
|
|
4473
|
-
readonly package: string;
|
|
4474
|
-
readonly showOnNav: boolean;
|
|
4475
|
-
readonly publishedAt: Date;
|
|
4476
|
-
readonly contentLang: string;
|
|
4477
|
-
readonly heroImage?: string | null | undefined;
|
|
4478
4370
|
readonly tags: readonly {
|
|
4371
|
+
readonly description: string;
|
|
4479
4372
|
readonly id: number;
|
|
4480
4373
|
readonly name: string;
|
|
4481
|
-
readonly description: string;
|
|
4482
4374
|
readonly slug: string;
|
|
4483
4375
|
readonly meta: {
|
|
4484
4376
|
readonly [x: string]: unknown;
|
|
@@ -4488,19 +4380,20 @@ export declare const apiClients: {
|
|
|
4488
4380
|
readonly contributorIds: readonly string[];
|
|
4489
4381
|
readonly showAuthor: boolean;
|
|
4490
4382
|
readonly showContributors: boolean;
|
|
4383
|
+
readonly parentFolder?: string | null | undefined;
|
|
4491
4384
|
readonly draft: boolean;
|
|
4492
4385
|
readonly augments: readonly string[];
|
|
4493
4386
|
readonly multiLangContent: readonly {
|
|
4494
4387
|
readonly id: string;
|
|
4388
|
+
readonly content: string;
|
|
4495
4389
|
readonly contentLang: string;
|
|
4496
4390
|
readonly contentId: string;
|
|
4497
|
-
readonly content: string;
|
|
4498
4391
|
}[];
|
|
4499
4392
|
readonly defaultContent: {
|
|
4500
4393
|
readonly id: string;
|
|
4394
|
+
readonly content: string;
|
|
4501
4395
|
readonly contentLang: string;
|
|
4502
4396
|
readonly contentId: string;
|
|
4503
|
-
readonly content: string;
|
|
4504
4397
|
} | undefined;
|
|
4505
4398
|
readonly urlRoute: string;
|
|
4506
4399
|
readonly authorData: {
|
|
@@ -4526,31 +4419,30 @@ export declare const apiClients: {
|
|
|
4526
4419
|
readonly notifications?: string | null | undefined;
|
|
4527
4420
|
}[];
|
|
4528
4421
|
}[], import("@effect/platform/HttpClientResponse").HttpClientResponse] : readonly {
|
|
4422
|
+
readonly description: string;
|
|
4529
4423
|
readonly id: string;
|
|
4530
4424
|
readonly updatedAt: Date;
|
|
4531
|
-
readonly description: string;
|
|
4532
4425
|
readonly title: string;
|
|
4426
|
+
readonly package: string;
|
|
4427
|
+
readonly showOnNav: boolean;
|
|
4428
|
+
readonly publishedAt: Date;
|
|
4429
|
+
readonly slug: string;
|
|
4430
|
+
readonly contentLang: string;
|
|
4431
|
+
readonly heroImage?: string | null | undefined;
|
|
4533
4432
|
readonly categories: readonly {
|
|
4433
|
+
readonly description: string;
|
|
4534
4434
|
readonly id: number;
|
|
4535
4435
|
readonly name: string;
|
|
4536
|
-
readonly description: string;
|
|
4537
|
-
readonly parent?: number | null | undefined;
|
|
4538
4436
|
readonly slug: string;
|
|
4539
4437
|
readonly meta: {
|
|
4540
4438
|
readonly [x: string]: unknown;
|
|
4541
4439
|
};
|
|
4440
|
+
readonly parent?: number | null | undefined;
|
|
4542
4441
|
}[];
|
|
4543
|
-
readonly slug: string;
|
|
4544
|
-
readonly parentFolder?: string | null | undefined;
|
|
4545
|
-
readonly package: string;
|
|
4546
|
-
readonly showOnNav: boolean;
|
|
4547
|
-
readonly publishedAt: Date;
|
|
4548
|
-
readonly contentLang: string;
|
|
4549
|
-
readonly heroImage?: string | null | undefined;
|
|
4550
4442
|
readonly tags: readonly {
|
|
4443
|
+
readonly description: string;
|
|
4551
4444
|
readonly id: number;
|
|
4552
4445
|
readonly name: string;
|
|
4553
|
-
readonly description: string;
|
|
4554
4446
|
readonly slug: string;
|
|
4555
4447
|
readonly meta: {
|
|
4556
4448
|
readonly [x: string]: unknown;
|
|
@@ -4560,19 +4452,20 @@ export declare const apiClients: {
|
|
|
4560
4452
|
readonly contributorIds: readonly string[];
|
|
4561
4453
|
readonly showAuthor: boolean;
|
|
4562
4454
|
readonly showContributors: boolean;
|
|
4455
|
+
readonly parentFolder?: string | null | undefined;
|
|
4563
4456
|
readonly draft: boolean;
|
|
4564
4457
|
readonly augments: readonly string[];
|
|
4565
4458
|
readonly multiLangContent: readonly {
|
|
4566
4459
|
readonly id: string;
|
|
4460
|
+
readonly content: string;
|
|
4567
4461
|
readonly contentLang: string;
|
|
4568
4462
|
readonly contentId: string;
|
|
4569
|
-
readonly content: string;
|
|
4570
4463
|
}[];
|
|
4571
4464
|
readonly defaultContent: {
|
|
4572
4465
|
readonly id: string;
|
|
4466
|
+
readonly content: string;
|
|
4573
4467
|
readonly contentLang: string;
|
|
4574
4468
|
readonly contentId: string;
|
|
4575
|
-
readonly content: string;
|
|
4576
4469
|
} | undefined;
|
|
4577
4470
|
readonly urlRoute: string;
|
|
4578
4471
|
readonly authorData: {
|
|
@@ -4601,31 +4494,31 @@ export declare const apiClients: {
|
|
|
4601
4494
|
readonly createPage: <WithResponse extends boolean = false>(request: {
|
|
4602
4495
|
readonly payload: {
|
|
4603
4496
|
readonly data?: {
|
|
4497
|
+
readonly description?: string | undefined;
|
|
4604
4498
|
readonly id?: string | undefined;
|
|
4605
4499
|
readonly updatedAt?: Date | undefined;
|
|
4606
|
-
readonly description?: string | undefined;
|
|
4607
4500
|
readonly title?: string | undefined;
|
|
4608
|
-
readonly categories?: readonly string[] | undefined;
|
|
4609
|
-
readonly slug?: string | undefined;
|
|
4610
|
-
readonly parentFolder?: string | null | undefined;
|
|
4611
4501
|
readonly package?: string | undefined;
|
|
4612
4502
|
readonly showOnNav?: boolean | undefined;
|
|
4613
4503
|
readonly publishedAt?: Date | undefined;
|
|
4504
|
+
readonly slug?: string | undefined;
|
|
4614
4505
|
readonly contentLang?: string | undefined;
|
|
4615
4506
|
readonly heroImage?: string | null | undefined;
|
|
4507
|
+
readonly categories?: readonly string[] | undefined;
|
|
4616
4508
|
readonly tags?: readonly string[] | undefined;
|
|
4617
4509
|
readonly authorId?: string | undefined;
|
|
4618
4510
|
readonly contributorIds?: readonly string[] | undefined;
|
|
4619
4511
|
readonly showAuthor?: boolean | undefined;
|
|
4620
4512
|
readonly showContributors?: boolean | undefined;
|
|
4513
|
+
readonly parentFolder?: string | null | undefined;
|
|
4621
4514
|
readonly draft?: boolean | undefined;
|
|
4622
4515
|
readonly augments?: readonly string[] | undefined;
|
|
4623
4516
|
} | undefined;
|
|
4624
4517
|
readonly content?: {
|
|
4625
4518
|
readonly id?: string | undefined;
|
|
4519
|
+
readonly content?: string | undefined;
|
|
4626
4520
|
readonly contentLang?: string | undefined;
|
|
4627
4521
|
readonly contentId?: string | undefined;
|
|
4628
|
-
readonly content?: string | undefined;
|
|
4629
4522
|
} | undefined;
|
|
4630
4523
|
};
|
|
4631
4524
|
readonly withResponse?: WithResponse | undefined;
|
|
@@ -4650,17 +4543,17 @@ export declare const apiClients: {
|
|
|
4650
4543
|
};
|
|
4651
4544
|
readonly withResponse?: WithResponse | undefined;
|
|
4652
4545
|
}) => Effect.Effect<WithResponse extends true ? [{
|
|
4546
|
+
readonly description: string;
|
|
4653
4547
|
readonly id: number;
|
|
4654
4548
|
readonly name: string;
|
|
4655
|
-
readonly description: string;
|
|
4656
4549
|
readonly slug: string;
|
|
4657
4550
|
readonly meta: {
|
|
4658
4551
|
readonly [x: string]: unknown;
|
|
4659
4552
|
};
|
|
4660
4553
|
}, import("@effect/platform/HttpClientResponse").HttpClientResponse] : {
|
|
4554
|
+
readonly description: string;
|
|
4661
4555
|
readonly id: number;
|
|
4662
4556
|
readonly name: string;
|
|
4663
|
-
readonly description: string;
|
|
4664
4557
|
readonly slug: string;
|
|
4665
4558
|
readonly meta: {
|
|
4666
4559
|
readonly [x: string]: unknown;
|
|
@@ -4671,9 +4564,9 @@ export declare const apiClients: {
|
|
|
4671
4564
|
readonly id: number;
|
|
4672
4565
|
};
|
|
4673
4566
|
readonly payload: {
|
|
4567
|
+
readonly description?: string | undefined;
|
|
4674
4568
|
readonly id?: number | undefined;
|
|
4675
4569
|
readonly name?: string | undefined;
|
|
4676
|
-
readonly description?: string | undefined;
|
|
4677
4570
|
readonly slug?: string | undefined;
|
|
4678
4571
|
readonly meta?: {
|
|
4679
4572
|
readonly [x: string]: unknown;
|
|
@@ -4681,17 +4574,17 @@ export declare const apiClients: {
|
|
|
4681
4574
|
};
|
|
4682
4575
|
readonly withResponse?: WithResponse | undefined;
|
|
4683
4576
|
}) => Effect.Effect<WithResponse extends true ? [{
|
|
4577
|
+
readonly description: string;
|
|
4684
4578
|
readonly id: number;
|
|
4685
4579
|
readonly name: string;
|
|
4686
|
-
readonly description: string;
|
|
4687
4580
|
readonly slug: string;
|
|
4688
4581
|
readonly meta: {
|
|
4689
4582
|
readonly [x: string]: unknown;
|
|
4690
4583
|
};
|
|
4691
4584
|
}, import("@effect/platform/HttpClientResponse").HttpClientResponse] : {
|
|
4585
|
+
readonly description: string;
|
|
4692
4586
|
readonly id: number;
|
|
4693
4587
|
readonly name: string;
|
|
4694
|
-
readonly description: string;
|
|
4695
4588
|
readonly slug: string;
|
|
4696
4589
|
readonly meta: {
|
|
4697
4590
|
readonly [x: string]: unknown;
|
|
@@ -4703,17 +4596,17 @@ export declare const apiClients: {
|
|
|
4703
4596
|
};
|
|
4704
4597
|
readonly withResponse?: WithResponse | undefined;
|
|
4705
4598
|
}) => Effect.Effect<WithResponse extends true ? [readonly {
|
|
4599
|
+
readonly description: string;
|
|
4706
4600
|
readonly id: number;
|
|
4707
4601
|
readonly name: string;
|
|
4708
|
-
readonly description: string;
|
|
4709
4602
|
readonly slug: string;
|
|
4710
4603
|
readonly meta: {
|
|
4711
4604
|
readonly [x: string]: unknown;
|
|
4712
4605
|
};
|
|
4713
4606
|
}[], import("@effect/platform/HttpClientResponse").HttpClientResponse] : readonly {
|
|
4607
|
+
readonly description: string;
|
|
4714
4608
|
readonly id: number;
|
|
4715
4609
|
readonly name: string;
|
|
4716
|
-
readonly description: string;
|
|
4717
4610
|
readonly slug: string;
|
|
4718
4611
|
readonly meta: {
|
|
4719
4612
|
readonly [x: string]: unknown;
|
|
@@ -4721,37 +4614,144 @@ export declare const apiClients: {
|
|
|
4721
4614
|
}[], import("effect/ParseResult").ParseError | import("@effect/platform/HttpApiError").HttpApiDecodeError | import("node_modules/@withstudiocms/api-spec/dist/rest-api/errors.d.mts").RestAPIError | import("node_modules/@withstudiocms/api-spec/dist/rest-api/middleware.d.mts").Unauthorized | import("@effect/platform/HttpClientError").HttpClientError, never>;
|
|
4722
4615
|
readonly createTag: <WithResponse extends boolean = false>(request: {
|
|
4723
4616
|
readonly payload: {
|
|
4724
|
-
readonly name: string;
|
|
4725
4617
|
readonly description: string;
|
|
4618
|
+
readonly name: string;
|
|
4726
4619
|
readonly slug: string;
|
|
4727
4620
|
readonly meta: string;
|
|
4728
4621
|
};
|
|
4729
4622
|
readonly withResponse?: WithResponse | undefined;
|
|
4730
4623
|
}) => Effect.Effect<WithResponse extends true ? [{
|
|
4624
|
+
readonly description: string;
|
|
4731
4625
|
readonly id: number;
|
|
4732
4626
|
readonly name: string;
|
|
4733
|
-
readonly description: string;
|
|
4734
4627
|
readonly slug: string;
|
|
4735
4628
|
readonly meta: {
|
|
4736
4629
|
readonly [x: string]: unknown;
|
|
4737
4630
|
};
|
|
4738
4631
|
}, import("@effect/platform/HttpClientResponse").HttpClientResponse] : {
|
|
4632
|
+
readonly description: string;
|
|
4739
4633
|
readonly id: number;
|
|
4740
4634
|
readonly name: string;
|
|
4741
|
-
readonly description: string;
|
|
4742
4635
|
readonly slug: string;
|
|
4743
4636
|
readonly meta: {
|
|
4744
4637
|
readonly [x: string]: unknown;
|
|
4745
4638
|
};
|
|
4746
4639
|
}, import("effect/ParseResult").ParseError | import("@effect/platform/HttpApiError").HttpApiDecodeError | import("node_modules/@withstudiocms/api-spec/dist/rest-api/errors.d.mts").RestAPIError | import("node_modules/@withstudiocms/api-spec/dist/rest-api/middleware.d.mts").Unauthorized | import("@effect/platform/HttpClientError").HttpClientError, never>;
|
|
4640
|
+
readonly deleteUser: <WithResponse extends boolean = false>(request: {
|
|
4641
|
+
readonly path: {
|
|
4642
|
+
readonly id: string;
|
|
4643
|
+
};
|
|
4644
|
+
readonly withResponse?: WithResponse | undefined;
|
|
4645
|
+
}) => Effect.Effect<WithResponse extends true ? [{
|
|
4646
|
+
readonly message: string;
|
|
4647
|
+
}, import("@effect/platform/HttpClientResponse").HttpClientResponse] : {
|
|
4648
|
+
readonly message: string;
|
|
4649
|
+
}, import("effect/ParseResult").ParseError | import("@effect/platform/HttpApiError").HttpApiDecodeError | import("node_modules/@withstudiocms/api-spec/dist/rest-api/errors.d.mts").RestAPIError | import("node_modules/@withstudiocms/api-spec/dist/rest-api/middleware.d.mts").Unauthorized | import("@effect/platform/HttpClientError").HttpClientError, never>;
|
|
4650
|
+
readonly getUser: <WithResponse extends boolean = false>(request: {
|
|
4651
|
+
readonly path: {
|
|
4652
|
+
readonly id: string;
|
|
4653
|
+
};
|
|
4654
|
+
readonly withResponse?: WithResponse | undefined;
|
|
4655
|
+
}) => Effect.Effect<WithResponse extends true ? [{
|
|
4656
|
+
readonly id: string;
|
|
4657
|
+
readonly url?: string | null | undefined;
|
|
4658
|
+
readonly name: string;
|
|
4659
|
+
readonly email?: string | null | undefined;
|
|
4660
|
+
readonly avatar?: string | null | undefined;
|
|
4661
|
+
readonly username: string;
|
|
4662
|
+
readonly updatedAt: Date;
|
|
4663
|
+
readonly createdAt: Date;
|
|
4664
|
+
}, import("@effect/platform/HttpClientResponse").HttpClientResponse] : {
|
|
4665
|
+
readonly id: string;
|
|
4666
|
+
readonly url?: string | null | undefined;
|
|
4667
|
+
readonly name: string;
|
|
4668
|
+
readonly email?: string | null | undefined;
|
|
4669
|
+
readonly avatar?: string | null | undefined;
|
|
4670
|
+
readonly username: string;
|
|
4671
|
+
readonly updatedAt: Date;
|
|
4672
|
+
readonly createdAt: Date;
|
|
4673
|
+
}, import("effect/ParseResult").ParseError | import("@effect/platform/HttpApiError").HttpApiDecodeError | import("node_modules/@withstudiocms/api-spec/dist/rest-api/errors.d.mts").RestAPIError | import("node_modules/@withstudiocms/api-spec/dist/rest-api/middleware.d.mts").Unauthorized | import("@effect/platform/HttpClientError").HttpClientError, never>;
|
|
4674
|
+
readonly updateUser: <WithResponse extends boolean = false>(request: {
|
|
4675
|
+
readonly path: {
|
|
4676
|
+
readonly id: string;
|
|
4677
|
+
};
|
|
4678
|
+
readonly payload: import("node_modules/@withstudiocms/api-spec/dist/rest-api/schemas.d.mts").RestUsersIdJSONData;
|
|
4679
|
+
readonly withResponse?: WithResponse | undefined;
|
|
4680
|
+
}) => Effect.Effect<WithResponse extends true ? [{
|
|
4681
|
+
readonly id: string;
|
|
4682
|
+
readonly url?: string | null | undefined;
|
|
4683
|
+
readonly name: string;
|
|
4684
|
+
readonly email?: string | null | undefined;
|
|
4685
|
+
readonly avatar?: string | null | undefined;
|
|
4686
|
+
readonly username: string;
|
|
4687
|
+
readonly updatedAt: Date;
|
|
4688
|
+
readonly createdAt: Date;
|
|
4689
|
+
}, import("@effect/platform/HttpClientResponse").HttpClientResponse] : {
|
|
4690
|
+
readonly id: string;
|
|
4691
|
+
readonly url?: string | null | undefined;
|
|
4692
|
+
readonly name: string;
|
|
4693
|
+
readonly email?: string | null | undefined;
|
|
4694
|
+
readonly avatar?: string | null | undefined;
|
|
4695
|
+
readonly username: string;
|
|
4696
|
+
readonly updatedAt: Date;
|
|
4697
|
+
readonly createdAt: Date;
|
|
4698
|
+
}, import("effect/ParseResult").ParseError | import("@effect/platform/HttpApiError").HttpApiDecodeError | import("node_modules/@withstudiocms/api-spec/dist/rest-api/errors.d.mts").RestAPIError | import("node_modules/@withstudiocms/api-spec/dist/rest-api/middleware.d.mts").Unauthorized | import("@effect/platform/HttpClientError").HttpClientError, never>;
|
|
4699
|
+
readonly getUsers: <WithResponse extends boolean = false>(request: {
|
|
4700
|
+
readonly urlParams: {
|
|
4701
|
+
readonly name?: string | undefined;
|
|
4702
|
+
readonly username?: string | undefined;
|
|
4703
|
+
readonly rank?: string | undefined;
|
|
4704
|
+
};
|
|
4705
|
+
readonly withResponse?: WithResponse | undefined;
|
|
4706
|
+
}) => Effect.Effect<WithResponse extends true ? [readonly {
|
|
4707
|
+
readonly id: string;
|
|
4708
|
+
readonly url?: string | null | undefined;
|
|
4709
|
+
readonly name: string;
|
|
4710
|
+
readonly email?: string | null | undefined;
|
|
4711
|
+
readonly avatar?: string | null | undefined;
|
|
4712
|
+
readonly username: string;
|
|
4713
|
+
readonly updatedAt: Date;
|
|
4714
|
+
readonly createdAt: Date;
|
|
4715
|
+
}[], import("@effect/platform/HttpClientResponse").HttpClientResponse] : readonly {
|
|
4716
|
+
readonly id: string;
|
|
4717
|
+
readonly url?: string | null | undefined;
|
|
4718
|
+
readonly name: string;
|
|
4719
|
+
readonly email?: string | null | undefined;
|
|
4720
|
+
readonly avatar?: string | null | undefined;
|
|
4721
|
+
readonly username: string;
|
|
4722
|
+
readonly updatedAt: Date;
|
|
4723
|
+
readonly createdAt: Date;
|
|
4724
|
+
}[], import("effect/ParseResult").ParseError | import("@effect/platform/HttpApiError").HttpApiDecodeError | import("node_modules/@withstudiocms/api-spec/dist/rest-api/errors.d.mts").RestAPIError | import("node_modules/@withstudiocms/api-spec/dist/rest-api/middleware.d.mts").Unauthorized | import("@effect/platform/HttpClientError").HttpClientError, never>;
|
|
4725
|
+
readonly createUser: <WithResponse extends boolean = false>(request: {
|
|
4726
|
+
readonly payload: import("node_modules/@withstudiocms/api-spec/dist/rest-api/schemas.d.mts").RestUsersIndexJSONData;
|
|
4727
|
+
readonly withResponse?: WithResponse | undefined;
|
|
4728
|
+
}) => Effect.Effect<WithResponse extends true ? [{
|
|
4729
|
+
readonly id: string;
|
|
4730
|
+
readonly url?: string | null | undefined;
|
|
4731
|
+
readonly name: string;
|
|
4732
|
+
readonly email?: string | null | undefined;
|
|
4733
|
+
readonly avatar?: string | null | undefined;
|
|
4734
|
+
readonly username: string;
|
|
4735
|
+
readonly updatedAt: Date;
|
|
4736
|
+
readonly createdAt: Date;
|
|
4737
|
+
}, import("@effect/platform/HttpClientResponse").HttpClientResponse] : {
|
|
4738
|
+
readonly id: string;
|
|
4739
|
+
readonly url?: string | null | undefined;
|
|
4740
|
+
readonly name: string;
|
|
4741
|
+
readonly email?: string | null | undefined;
|
|
4742
|
+
readonly avatar?: string | null | undefined;
|
|
4743
|
+
readonly username: string;
|
|
4744
|
+
readonly updatedAt: Date;
|
|
4745
|
+
readonly createdAt: Date;
|
|
4746
|
+
}, import("effect/ParseResult").ParseError | import("@effect/platform/HttpApiError").HttpApiDecodeError | import("node_modules/@withstudiocms/api-spec/dist/rest-api/errors.d.mts").RestAPIError | import("node_modules/@withstudiocms/api-spec/dist/rest-api/middleware.d.mts").Unauthorized | import("@effect/platform/HttpClientError").HttpClientError, never>;
|
|
4747
4747
|
readonly getSettings: <WithResponse extends boolean = false>(request: void | {
|
|
4748
4748
|
readonly withResponse?: WithResponse | undefined;
|
|
4749
4749
|
}) => Effect.Effect<WithResponse extends true ? [{
|
|
4750
4750
|
readonly id: string;
|
|
4751
4751
|
readonly data: {
|
|
4752
4752
|
readonly description: string;
|
|
4753
|
-
readonly title: string;
|
|
4754
4753
|
readonly _config_version: string;
|
|
4754
|
+
readonly title: string;
|
|
4755
4755
|
readonly defaultOgImage?: string | null | undefined;
|
|
4756
4756
|
readonly siteIcon?: string | null | undefined;
|
|
4757
4757
|
readonly loginPageBackground?: string | undefined;
|
|
@@ -4765,8 +4765,8 @@ export declare const apiClients: {
|
|
|
4765
4765
|
readonly id: string;
|
|
4766
4766
|
readonly data: {
|
|
4767
4767
|
readonly description: string;
|
|
4768
|
-
readonly title: string;
|
|
4769
4768
|
readonly _config_version: string;
|
|
4769
|
+
readonly title: string;
|
|
4770
4770
|
readonly defaultOgImage?: string | null | undefined;
|
|
4771
4771
|
readonly siteIcon?: string | null | undefined;
|
|
4772
4772
|
readonly loginPageBackground?: string | undefined;
|
|
@@ -4780,8 +4780,8 @@ export declare const apiClients: {
|
|
|
4780
4780
|
readonly updateSettings: <WithResponse extends boolean = false>(request: {
|
|
4781
4781
|
readonly payload: {
|
|
4782
4782
|
description: string;
|
|
4783
|
-
title: string;
|
|
4784
4783
|
_config_version: string;
|
|
4784
|
+
title: string;
|
|
4785
4785
|
defaultOgImage?: string | null | undefined;
|
|
4786
4786
|
siteIcon?: string | null | undefined;
|
|
4787
4787
|
loginPageBackground?: string | undefined;
|
|
@@ -4824,8 +4824,8 @@ export declare const apiClients: {
|
|
|
4824
4824
|
readonly avatar?: string | null | undefined;
|
|
4825
4825
|
readonly username: string;
|
|
4826
4826
|
readonly permissionsData: {
|
|
4827
|
+
readonly rank: "editor" | "admin" | "owner" | "unknown" | "visitor";
|
|
4827
4828
|
readonly user: string;
|
|
4828
|
-
readonly rank: "owner" | "admin" | "editor" | "visitor" | "unknown";
|
|
4829
4829
|
} | undefined;
|
|
4830
4830
|
}[];
|
|
4831
4831
|
readonly searchQuery?: string | undefined;
|