studiocms 0.4.1 → 0.4.3
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 +22 -0
- package/dist/client/apiClient.d.ts +756 -756
- 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/frontend/pages/studiocms_api/_handlers/dashboard/create.ts +27 -5
- package/frontend/pages/studiocms_api/_handlers/dashboard/users.ts +6 -0
- package/frontend/pages/studiocms_api/_handlers/rest-api/v1/secure.ts +5 -8
- package/frontend/pages/studiocms_api/_handlers/sdk.ts +14 -1
- package/package.json +17 -4
|
@@ -119,12 +119,13 @@ 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;
|
|
122
123
|
readonly description?: string | undefined;
|
|
123
|
-
readonly
|
|
124
|
+
readonly title?: string | undefined;
|
|
124
125
|
readonly tags?: readonly string[] | undefined;
|
|
126
|
+
readonly slug?: string | undefined;
|
|
125
127
|
readonly categories?: readonly string[] | undefined;
|
|
126
|
-
readonly
|
|
127
|
-
readonly updatedAt?: Date | undefined;
|
|
128
|
+
readonly parentFolder?: string | null | undefined;
|
|
128
129
|
readonly package?: string | undefined;
|
|
129
130
|
readonly showOnNav?: boolean | undefined;
|
|
130
131
|
readonly publishedAt?: Date | undefined;
|
|
@@ -134,7 +135,6 @@ export declare const dashboardClient: Effect.Effect<{
|
|
|
134
135
|
readonly contributorIds?: readonly string[] | undefined;
|
|
135
136
|
readonly showAuthor?: boolean | undefined;
|
|
136
137
|
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,14 +146,15 @@ 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;
|
|
150
149
|
readonly id: string;
|
|
151
|
-
readonly slug?: string | undefined;
|
|
152
|
-
readonly tags?: readonly string[] | undefined;
|
|
153
|
-
readonly categories?: readonly string[] | undefined;
|
|
154
|
-
readonly title?: string | undefined;
|
|
155
150
|
readonly updatedAt?: Date | undefined;
|
|
151
|
+
readonly description?: string | undefined;
|
|
156
152
|
readonly content: string;
|
|
153
|
+
readonly title?: string | undefined;
|
|
154
|
+
readonly tags?: readonly string[] | undefined;
|
|
155
|
+
readonly slug?: string | undefined;
|
|
156
|
+
readonly categories?: readonly string[] | undefined;
|
|
157
|
+
readonly parentFolder?: string | null | undefined;
|
|
157
158
|
readonly package?: string | undefined;
|
|
158
159
|
readonly showOnNav?: boolean | undefined;
|
|
159
160
|
readonly publishedAt?: Date | undefined;
|
|
@@ -163,7 +164,6 @@ export declare const dashboardClient: Effect.Effect<{
|
|
|
163
164
|
readonly contributorIds?: readonly string[] | undefined;
|
|
164
165
|
readonly showAuthor?: boolean | undefined;
|
|
165
166
|
readonly showContributors?: boolean | undefined;
|
|
166
|
-
readonly parentFolder?: string | null | undefined;
|
|
167
167
|
readonly draft?: boolean | undefined;
|
|
168
168
|
readonly augments?: readonly string[] | undefined;
|
|
169
169
|
readonly contentId: string;
|
|
@@ -224,7 +224,7 @@ export declare const dashboardClient: Effect.Effect<{
|
|
|
224
224
|
readonly revertToDiff: <WithResponse extends boolean = false>(request: {
|
|
225
225
|
readonly payload: {
|
|
226
226
|
readonly id: string;
|
|
227
|
-
readonly type: "
|
|
227
|
+
readonly type: "content" | "data" | "both";
|
|
228
228
|
};
|
|
229
229
|
readonly withResponse?: WithResponse | undefined;
|
|
230
230
|
}) => Effect.Effect<WithResponse extends true ? [{
|
|
@@ -359,10 +359,9 @@ 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";
|
|
363
362
|
readonly data: {
|
|
364
|
-
readonly name: string;
|
|
365
363
|
readonly url?: string | null | undefined;
|
|
364
|
+
readonly name: string;
|
|
366
365
|
readonly email?: string | null | undefined;
|
|
367
366
|
readonly avatar?: string | null | undefined;
|
|
368
367
|
readonly username: string;
|
|
@@ -372,16 +371,17 @@ export declare const dashboardClient: Effect.Effect<{
|
|
|
372
371
|
readonly emailVerified: boolean;
|
|
373
372
|
readonly notifications?: string | null | undefined;
|
|
374
373
|
};
|
|
374
|
+
readonly mode: "basic";
|
|
375
375
|
};
|
|
376
376
|
readonly withResponse?: WithResponse | undefined;
|
|
377
377
|
} | {
|
|
378
378
|
readonly payload: {
|
|
379
|
-
readonly mode: "password";
|
|
380
379
|
readonly data: {
|
|
381
380
|
readonly currentPassword: string | null;
|
|
382
381
|
readonly newPassword: string;
|
|
383
382
|
readonly confirmNewPassword: string;
|
|
384
383
|
};
|
|
384
|
+
readonly mode: "password";
|
|
385
385
|
};
|
|
386
386
|
readonly withResponse?: WithResponse | undefined;
|
|
387
387
|
} | {
|
|
@@ -431,29 +431,29 @@ export declare const dashboardClient: Effect.Effect<{
|
|
|
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";
|
|
436
434
|
readonly id: number;
|
|
437
435
|
readonly name: string;
|
|
436
|
+
readonly description: string;
|
|
438
437
|
readonly slug: string;
|
|
439
438
|
readonly meta: {
|
|
440
439
|
readonly [x: string]: unknown;
|
|
441
440
|
};
|
|
442
441
|
readonly type: "tags";
|
|
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";
|
|
449
447
|
readonly id: number;
|
|
450
448
|
readonly name: string;
|
|
449
|
+
readonly description: string;
|
|
451
450
|
readonly slug: string;
|
|
452
451
|
readonly meta: {
|
|
453
452
|
readonly [x: string]: unknown;
|
|
454
453
|
};
|
|
455
|
-
readonly type: "categories";
|
|
456
454
|
readonly parent?: number | null | undefined;
|
|
455
|
+
readonly type: "categories";
|
|
456
|
+
readonly mode: "create" | "edit";
|
|
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;
|
|
479
478
|
readonly id: number;
|
|
480
479
|
readonly name: string;
|
|
480
|
+
readonly description: string;
|
|
481
481
|
readonly slug: string;
|
|
482
482
|
readonly meta: {
|
|
483
483
|
readonly [x: string]: unknown;
|
|
484
484
|
};
|
|
485
|
-
readonly type: "tag" | "category";
|
|
486
485
|
readonly parent: number | null | undefined;
|
|
486
|
+
readonly type: "tag" | "category";
|
|
487
487
|
readonly children: readonly import("@withstudiocms/api-spec/dashboard").TaxonomyNode[];
|
|
488
488
|
}[], import("@effect/platform/HttpClientResponse").HttpClientResponse] : readonly {
|
|
489
|
-
readonly description: string;
|
|
490
489
|
readonly id: number;
|
|
491
490
|
readonly name: string;
|
|
491
|
+
readonly description: string;
|
|
492
492
|
readonly slug: string;
|
|
493
493
|
readonly meta: {
|
|
494
494
|
readonly [x: string]: unknown;
|
|
495
495
|
};
|
|
496
|
-
readonly type: "tag" | "category";
|
|
497
496
|
readonly parent: number | null | undefined;
|
|
497
|
+
readonly type: "tag" | "category";
|
|
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
|
};
|
|
@@ -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
670
|
readonly id: number;
|
|
671
|
-
readonly type: "query" | "transaction";
|
|
672
671
|
readonly error: string;
|
|
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
716
|
readonly id: number;
|
|
717
|
-
readonly type: "query" | "transaction";
|
|
718
717
|
readonly error: string;
|
|
718
|
+
readonly type: "query" | "transaction";
|
|
719
719
|
}, import("effect/ParseResult").ParseError | import("@effect/platform/HttpApiError").HttpApiDecodeError | import("@withstudiocms/api-spec/astro-context").AstroLocalsMissing | import("@effect/platform/HttpApiError").Unauthorized | import("@withstudiocms/api-spec/integrations").IntegrationsAPIError | 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 identifier: `storage-file://${string}`;
|
|
725
724
|
readonly action: "resolveUrl";
|
|
725
|
+
readonly identifier: `storage-file://${string}`;
|
|
726
726
|
};
|
|
727
727
|
readonly withResponse?: WithResponse | undefined;
|
|
728
728
|
} | {
|
|
@@ -784,13 +784,13 @@ export declare const integrationsClient: Effect.Effect<{
|
|
|
784
784
|
readonly isPermanent: boolean;
|
|
785
785
|
readonly expiresAt?: number | undefined;
|
|
786
786
|
} | {
|
|
787
|
-
readonly identifier: `storage-file://${string}`;
|
|
788
787
|
readonly url: string;
|
|
788
|
+
readonly identifier: `storage-file://${string}`;
|
|
789
789
|
readonly isPermanent: boolean;
|
|
790
790
|
readonly expiresAt?: number | undefined;
|
|
791
791
|
} | {
|
|
792
|
-
readonly key: string;
|
|
793
792
|
readonly url: string;
|
|
793
|
+
readonly key: string;
|
|
794
794
|
} | {
|
|
795
795
|
readonly files: readonly {
|
|
796
796
|
readonly key?: string | undefined;
|
|
@@ -814,20 +814,20 @@ export declare const integrationsClient: Effect.Effect<{
|
|
|
814
814
|
}[];
|
|
815
815
|
} | {
|
|
816
816
|
readonly message: string;
|
|
817
|
-
readonly provider: string;
|
|
818
817
|
readonly success: boolean;
|
|
818
|
+
readonly provider: string;
|
|
819
819
|
}, import("@effect/platform/HttpClientResponse").HttpClientResponse] : {
|
|
820
820
|
readonly url: string;
|
|
821
821
|
readonly isPermanent: boolean;
|
|
822
822
|
readonly expiresAt?: number | undefined;
|
|
823
823
|
} | {
|
|
824
|
-
readonly identifier: `storage-file://${string}`;
|
|
825
824
|
readonly url: string;
|
|
825
|
+
readonly identifier: `storage-file://${string}`;
|
|
826
826
|
readonly isPermanent: boolean;
|
|
827
827
|
readonly expiresAt?: number | undefined;
|
|
828
828
|
} | {
|
|
829
|
-
readonly key: string;
|
|
830
829
|
readonly url: string;
|
|
830
|
+
readonly key: string;
|
|
831
831
|
} | {
|
|
832
832
|
readonly files: readonly {
|
|
833
833
|
readonly key?: string | undefined;
|
|
@@ -851,8 +851,8 @@ export declare const integrationsClient: Effect.Effect<{
|
|
|
851
851
|
}[];
|
|
852
852
|
} | {
|
|
853
853
|
readonly message: string;
|
|
854
|
-
readonly provider: string;
|
|
855
854
|
readonly success: boolean;
|
|
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: {
|
|
858
858
|
readonly headers: {
|
|
@@ -861,11 +861,11 @@ export declare const integrationsClient: Effect.Effect<{
|
|
|
861
861
|
readonly payload: Uint8Array<ArrayBufferLike>;
|
|
862
862
|
readonly withResponse?: WithResponse | undefined;
|
|
863
863
|
}) => Effect.Effect<WithResponse extends true ? [{
|
|
864
|
-
readonly message: string;
|
|
865
864
|
readonly key: string;
|
|
866
|
-
}, import("@effect/platform/HttpClientResponse").HttpClientResponse] : {
|
|
867
865
|
readonly message: string;
|
|
866
|
+
}, import("@effect/platform/HttpClientResponse").HttpClientResponse] : {
|
|
868
867
|
readonly key: string;
|
|
868
|
+
readonly message: string;
|
|
869
869
|
}, 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>;
|
|
870
870
|
};
|
|
871
871
|
}, never, never>;
|
|
@@ -874,6 +874,50 @@ export declare const integrationsClient: Effect.Effect<{
|
|
|
874
874
|
*/
|
|
875
875
|
export declare const restClient: Effect.Effect<{
|
|
876
876
|
readonly restV1Public: {
|
|
877
|
+
readonly getTags: <WithResponse extends boolean = false>(request: {
|
|
878
|
+
readonly urlParams: {
|
|
879
|
+
readonly name?: string | undefined;
|
|
880
|
+
};
|
|
881
|
+
readonly withResponse?: WithResponse | undefined;
|
|
882
|
+
}) => Effect.Effect<WithResponse extends true ? [readonly {
|
|
883
|
+
readonly id: number;
|
|
884
|
+
readonly name: string;
|
|
885
|
+
readonly description: string;
|
|
886
|
+
readonly slug: string;
|
|
887
|
+
readonly meta: {
|
|
888
|
+
readonly [x: string]: unknown;
|
|
889
|
+
};
|
|
890
|
+
}[], import("@effect/platform/HttpClientResponse").HttpClientResponse] : readonly {
|
|
891
|
+
readonly id: number;
|
|
892
|
+
readonly name: string;
|
|
893
|
+
readonly description: string;
|
|
894
|
+
readonly slug: string;
|
|
895
|
+
readonly meta: {
|
|
896
|
+
readonly [x: string]: unknown;
|
|
897
|
+
};
|
|
898
|
+
}[], 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>;
|
|
899
|
+
readonly getTag: <WithResponse extends boolean = false>(request: {
|
|
900
|
+
readonly path: {
|
|
901
|
+
readonly id: number;
|
|
902
|
+
};
|
|
903
|
+
readonly withResponse?: WithResponse | undefined;
|
|
904
|
+
}) => Effect.Effect<WithResponse extends true ? [{
|
|
905
|
+
readonly id: number;
|
|
906
|
+
readonly name: string;
|
|
907
|
+
readonly description: string;
|
|
908
|
+
readonly slug: string;
|
|
909
|
+
readonly meta: {
|
|
910
|
+
readonly [x: string]: unknown;
|
|
911
|
+
};
|
|
912
|
+
}, import("@effect/platform/HttpClientResponse").HttpClientResponse] : {
|
|
913
|
+
readonly id: number;
|
|
914
|
+
readonly name: string;
|
|
915
|
+
readonly description: string;
|
|
916
|
+
readonly slug: string;
|
|
917
|
+
readonly meta: {
|
|
918
|
+
readonly [x: string]: unknown;
|
|
919
|
+
};
|
|
920
|
+
}, 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>;
|
|
877
921
|
readonly getCategories: <WithResponse extends boolean = false>(request: {
|
|
878
922
|
readonly urlParams: {
|
|
879
923
|
readonly name?: string | undefined;
|
|
@@ -881,18 +925,18 @@ export declare const restClient: Effect.Effect<{
|
|
|
881
925
|
};
|
|
882
926
|
readonly withResponse?: WithResponse | undefined;
|
|
883
927
|
}) => Effect.Effect<WithResponse extends true ? [readonly {
|
|
884
|
-
readonly description: string;
|
|
885
928
|
readonly id: number;
|
|
886
929
|
readonly name: string;
|
|
930
|
+
readonly description: string;
|
|
887
931
|
readonly slug: string;
|
|
888
932
|
readonly meta: {
|
|
889
933
|
readonly [x: string]: unknown;
|
|
890
934
|
};
|
|
891
935
|
readonly parent?: number | null | undefined;
|
|
892
936
|
}[], import("@effect/platform/HttpClientResponse").HttpClientResponse] : readonly {
|
|
893
|
-
readonly description: string;
|
|
894
937
|
readonly id: number;
|
|
895
938
|
readonly name: string;
|
|
939
|
+
readonly description: string;
|
|
896
940
|
readonly slug: string;
|
|
897
941
|
readonly meta: {
|
|
898
942
|
readonly [x: string]: unknown;
|
|
@@ -905,18 +949,18 @@ export declare const restClient: Effect.Effect<{
|
|
|
905
949
|
};
|
|
906
950
|
readonly withResponse?: WithResponse | undefined;
|
|
907
951
|
}) => Effect.Effect<WithResponse extends true ? [{
|
|
908
|
-
readonly description: string;
|
|
909
952
|
readonly id: number;
|
|
910
953
|
readonly name: string;
|
|
954
|
+
readonly description: string;
|
|
911
955
|
readonly slug: string;
|
|
912
956
|
readonly meta: {
|
|
913
957
|
readonly [x: string]: unknown;
|
|
914
958
|
};
|
|
915
959
|
readonly parent?: number | null | undefined;
|
|
916
960
|
}, import("@effect/platform/HttpClientResponse").HttpClientResponse] : {
|
|
917
|
-
readonly description: string;
|
|
918
961
|
readonly id: number;
|
|
919
962
|
readonly name: string;
|
|
963
|
+
readonly description: string;
|
|
920
964
|
readonly slug: string;
|
|
921
965
|
readonly meta: {
|
|
922
966
|
readonly [x: string]: unknown;
|
|
@@ -954,37 +998,38 @@ export declare const restClient: Effect.Effect<{
|
|
|
954
998
|
}, 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
999
|
readonly getPages: <WithResponse extends boolean = false>(request: {
|
|
956
1000
|
readonly urlParams: {
|
|
957
|
-
readonly slug?: string | undefined;
|
|
958
1001
|
readonly title?: string | undefined;
|
|
959
|
-
readonly
|
|
1002
|
+
readonly slug?: string | undefined;
|
|
960
1003
|
readonly author?: string | undefined;
|
|
1004
|
+
readonly parentFolder?: string | undefined;
|
|
961
1005
|
};
|
|
962
1006
|
readonly withResponse?: WithResponse | undefined;
|
|
963
1007
|
}) => Effect.Effect<WithResponse extends true ? [readonly {
|
|
964
|
-
readonly description: string;
|
|
965
1008
|
readonly id: string;
|
|
966
|
-
readonly
|
|
1009
|
+
readonly updatedAt: Date;
|
|
1010
|
+
readonly description: string;
|
|
1011
|
+
readonly title: string;
|
|
967
1012
|
readonly tags: readonly {
|
|
968
|
-
readonly description: string;
|
|
969
1013
|
readonly id: number;
|
|
970
1014
|
readonly name: string;
|
|
1015
|
+
readonly description: string;
|
|
971
1016
|
readonly slug: string;
|
|
972
1017
|
readonly meta: {
|
|
973
1018
|
readonly [x: string]: unknown;
|
|
974
1019
|
};
|
|
975
1020
|
}[];
|
|
1021
|
+
readonly slug: string;
|
|
976
1022
|
readonly categories: readonly {
|
|
977
|
-
readonly description: string;
|
|
978
1023
|
readonly id: number;
|
|
979
1024
|
readonly name: string;
|
|
1025
|
+
readonly description: string;
|
|
980
1026
|
readonly slug: string;
|
|
981
1027
|
readonly meta: {
|
|
982
1028
|
readonly [x: string]: unknown;
|
|
983
1029
|
};
|
|
984
1030
|
readonly parent?: number | null | undefined;
|
|
985
1031
|
}[];
|
|
986
|
-
readonly
|
|
987
|
-
readonly updatedAt: Date;
|
|
1032
|
+
readonly parentFolder?: string | null | undefined;
|
|
988
1033
|
readonly package: string;
|
|
989
1034
|
readonly showOnNav: boolean;
|
|
990
1035
|
readonly publishedAt: Date;
|
|
@@ -994,7 +1039,6 @@ export declare const restClient: Effect.Effect<{
|
|
|
994
1039
|
readonly contributorIds: readonly string[];
|
|
995
1040
|
readonly showAuthor: boolean;
|
|
996
1041
|
readonly showContributors: boolean;
|
|
997
|
-
readonly parentFolder?: string | null | undefined;
|
|
998
1042
|
readonly draft: boolean;
|
|
999
1043
|
readonly augments: readonly string[];
|
|
1000
1044
|
readonly multiLangContent: readonly {
|
|
@@ -1012,8 +1056,8 @@ export declare const restClient: Effect.Effect<{
|
|
|
1012
1056
|
readonly urlRoute: string;
|
|
1013
1057
|
readonly authorData: {
|
|
1014
1058
|
readonly id: string;
|
|
1015
|
-
readonly name: string;
|
|
1016
1059
|
readonly url?: string | null | undefined;
|
|
1060
|
+
readonly name: string;
|
|
1017
1061
|
readonly avatar?: string | null | undefined;
|
|
1018
1062
|
readonly username: string;
|
|
1019
1063
|
readonly updatedAt: Date;
|
|
@@ -1023,8 +1067,8 @@ export declare const restClient: Effect.Effect<{
|
|
|
1023
1067
|
} | undefined;
|
|
1024
1068
|
readonly contributorsData: readonly {
|
|
1025
1069
|
readonly id: string;
|
|
1026
|
-
readonly name: string;
|
|
1027
1070
|
readonly url?: string | null | undefined;
|
|
1071
|
+
readonly name: string;
|
|
1028
1072
|
readonly avatar?: string | null | undefined;
|
|
1029
1073
|
readonly username: string;
|
|
1030
1074
|
readonly updatedAt: Date;
|
|
@@ -1033,30 +1077,31 @@ export declare const restClient: Effect.Effect<{
|
|
|
1033
1077
|
readonly notifications?: string | null | undefined;
|
|
1034
1078
|
}[];
|
|
1035
1079
|
}[], import("@effect/platform/HttpClientResponse").HttpClientResponse] : readonly {
|
|
1036
|
-
readonly description: string;
|
|
1037
1080
|
readonly id: string;
|
|
1038
|
-
readonly
|
|
1081
|
+
readonly updatedAt: Date;
|
|
1082
|
+
readonly description: string;
|
|
1083
|
+
readonly title: string;
|
|
1039
1084
|
readonly tags: readonly {
|
|
1040
|
-
readonly description: string;
|
|
1041
1085
|
readonly id: number;
|
|
1042
1086
|
readonly name: string;
|
|
1087
|
+
readonly description: string;
|
|
1043
1088
|
readonly slug: string;
|
|
1044
1089
|
readonly meta: {
|
|
1045
1090
|
readonly [x: string]: unknown;
|
|
1046
1091
|
};
|
|
1047
1092
|
}[];
|
|
1093
|
+
readonly slug: string;
|
|
1048
1094
|
readonly categories: readonly {
|
|
1049
|
-
readonly description: string;
|
|
1050
1095
|
readonly id: number;
|
|
1051
1096
|
readonly name: string;
|
|
1097
|
+
readonly description: string;
|
|
1052
1098
|
readonly slug: string;
|
|
1053
1099
|
readonly meta: {
|
|
1054
1100
|
readonly [x: string]: unknown;
|
|
1055
1101
|
};
|
|
1056
1102
|
readonly parent?: number | null | undefined;
|
|
1057
1103
|
}[];
|
|
1058
|
-
readonly
|
|
1059
|
-
readonly updatedAt: Date;
|
|
1104
|
+
readonly parentFolder?: string | null | undefined;
|
|
1060
1105
|
readonly package: string;
|
|
1061
1106
|
readonly showOnNav: boolean;
|
|
1062
1107
|
readonly publishedAt: Date;
|
|
@@ -1066,7 +1111,6 @@ export declare const restClient: Effect.Effect<{
|
|
|
1066
1111
|
readonly contributorIds: readonly string[];
|
|
1067
1112
|
readonly showAuthor: boolean;
|
|
1068
1113
|
readonly showContributors: boolean;
|
|
1069
|
-
readonly parentFolder?: string | null | undefined;
|
|
1070
1114
|
readonly draft: boolean;
|
|
1071
1115
|
readonly augments: readonly string[];
|
|
1072
1116
|
readonly multiLangContent: readonly {
|
|
@@ -1084,8 +1128,8 @@ export declare const restClient: Effect.Effect<{
|
|
|
1084
1128
|
readonly urlRoute: string;
|
|
1085
1129
|
readonly authorData: {
|
|
1086
1130
|
readonly id: string;
|
|
1087
|
-
readonly name: string;
|
|
1088
1131
|
readonly url?: string | null | undefined;
|
|
1132
|
+
readonly name: string;
|
|
1089
1133
|
readonly avatar?: string | null | undefined;
|
|
1090
1134
|
readonly username: string;
|
|
1091
1135
|
readonly updatedAt: Date;
|
|
@@ -1095,8 +1139,8 @@ export declare const restClient: Effect.Effect<{
|
|
|
1095
1139
|
} | undefined;
|
|
1096
1140
|
readonly contributorsData: readonly {
|
|
1097
1141
|
readonly id: string;
|
|
1098
|
-
readonly name: string;
|
|
1099
1142
|
readonly url?: string | null | undefined;
|
|
1143
|
+
readonly name: string;
|
|
1100
1144
|
readonly avatar?: string | null | undefined;
|
|
1101
1145
|
readonly username: string;
|
|
1102
1146
|
readonly updatedAt: Date;
|
|
@@ -1111,30 +1155,31 @@ export declare const restClient: Effect.Effect<{
|
|
|
1111
1155
|
};
|
|
1112
1156
|
readonly withResponse?: WithResponse | undefined;
|
|
1113
1157
|
}) => Effect.Effect<WithResponse extends true ? [{
|
|
1114
|
-
readonly description: string;
|
|
1115
1158
|
readonly id: string;
|
|
1116
|
-
readonly
|
|
1159
|
+
readonly updatedAt: Date;
|
|
1160
|
+
readonly description: string;
|
|
1161
|
+
readonly title: string;
|
|
1117
1162
|
readonly tags: readonly {
|
|
1118
|
-
readonly description: string;
|
|
1119
1163
|
readonly id: number;
|
|
1120
1164
|
readonly name: string;
|
|
1165
|
+
readonly description: string;
|
|
1121
1166
|
readonly slug: string;
|
|
1122
1167
|
readonly meta: {
|
|
1123
1168
|
readonly [x: string]: unknown;
|
|
1124
1169
|
};
|
|
1125
1170
|
}[];
|
|
1171
|
+
readonly slug: string;
|
|
1126
1172
|
readonly categories: readonly {
|
|
1127
|
-
readonly description: string;
|
|
1128
1173
|
readonly id: number;
|
|
1129
1174
|
readonly name: string;
|
|
1175
|
+
readonly description: string;
|
|
1130
1176
|
readonly slug: string;
|
|
1131
1177
|
readonly meta: {
|
|
1132
1178
|
readonly [x: string]: unknown;
|
|
1133
1179
|
};
|
|
1134
1180
|
readonly parent?: number | null | undefined;
|
|
1135
1181
|
}[];
|
|
1136
|
-
readonly
|
|
1137
|
-
readonly updatedAt: Date;
|
|
1182
|
+
readonly parentFolder?: string | null | undefined;
|
|
1138
1183
|
readonly package: string;
|
|
1139
1184
|
readonly showOnNav: boolean;
|
|
1140
1185
|
readonly publishedAt: Date;
|
|
@@ -1144,7 +1189,6 @@ export declare const restClient: Effect.Effect<{
|
|
|
1144
1189
|
readonly contributorIds: readonly string[];
|
|
1145
1190
|
readonly showAuthor: boolean;
|
|
1146
1191
|
readonly showContributors: boolean;
|
|
1147
|
-
readonly parentFolder?: string | null | undefined;
|
|
1148
1192
|
readonly draft: boolean;
|
|
1149
1193
|
readonly augments: readonly string[];
|
|
1150
1194
|
readonly multiLangContent: readonly {
|
|
@@ -1162,8 +1206,8 @@ export declare const restClient: Effect.Effect<{
|
|
|
1162
1206
|
readonly urlRoute: string;
|
|
1163
1207
|
readonly authorData: {
|
|
1164
1208
|
readonly id: string;
|
|
1165
|
-
readonly name: string;
|
|
1166
1209
|
readonly url?: string | null | undefined;
|
|
1210
|
+
readonly name: string;
|
|
1167
1211
|
readonly avatar?: string | null | undefined;
|
|
1168
1212
|
readonly username: string;
|
|
1169
1213
|
readonly updatedAt: Date;
|
|
@@ -1173,8 +1217,8 @@ export declare const restClient: Effect.Effect<{
|
|
|
1173
1217
|
} | undefined;
|
|
1174
1218
|
readonly contributorsData: readonly {
|
|
1175
1219
|
readonly id: string;
|
|
1176
|
-
readonly name: string;
|
|
1177
1220
|
readonly url?: string | null | undefined;
|
|
1221
|
+
readonly name: string;
|
|
1178
1222
|
readonly avatar?: string | null | undefined;
|
|
1179
1223
|
readonly username: string;
|
|
1180
1224
|
readonly updatedAt: Date;
|
|
@@ -1183,30 +1227,31 @@ export declare const restClient: Effect.Effect<{
|
|
|
1183
1227
|
readonly notifications?: string | null | undefined;
|
|
1184
1228
|
}[];
|
|
1185
1229
|
}, import("@effect/platform/HttpClientResponse").HttpClientResponse] : {
|
|
1186
|
-
readonly description: string;
|
|
1187
1230
|
readonly id: string;
|
|
1188
|
-
readonly
|
|
1231
|
+
readonly updatedAt: Date;
|
|
1232
|
+
readonly description: string;
|
|
1233
|
+
readonly title: string;
|
|
1189
1234
|
readonly tags: readonly {
|
|
1190
|
-
readonly description: string;
|
|
1191
1235
|
readonly id: number;
|
|
1192
1236
|
readonly name: string;
|
|
1237
|
+
readonly description: string;
|
|
1193
1238
|
readonly slug: string;
|
|
1194
1239
|
readonly meta: {
|
|
1195
1240
|
readonly [x: string]: unknown;
|
|
1196
1241
|
};
|
|
1197
1242
|
}[];
|
|
1243
|
+
readonly slug: string;
|
|
1198
1244
|
readonly categories: readonly {
|
|
1199
|
-
readonly description: string;
|
|
1200
1245
|
readonly id: number;
|
|
1201
1246
|
readonly name: string;
|
|
1247
|
+
readonly description: string;
|
|
1202
1248
|
readonly slug: string;
|
|
1203
1249
|
readonly meta: {
|
|
1204
1250
|
readonly [x: string]: unknown;
|
|
1205
1251
|
};
|
|
1206
1252
|
readonly parent?: number | null | undefined;
|
|
1207
1253
|
}[];
|
|
1208
|
-
readonly
|
|
1209
|
-
readonly updatedAt: Date;
|
|
1254
|
+
readonly parentFolder?: string | null | undefined;
|
|
1210
1255
|
readonly package: string;
|
|
1211
1256
|
readonly showOnNav: boolean;
|
|
1212
1257
|
readonly publishedAt: Date;
|
|
@@ -1216,7 +1261,6 @@ export declare const restClient: Effect.Effect<{
|
|
|
1216
1261
|
readonly contributorIds: readonly string[];
|
|
1217
1262
|
readonly showAuthor: boolean;
|
|
1218
1263
|
readonly showContributors: boolean;
|
|
1219
|
-
readonly parentFolder?: string | null | undefined;
|
|
1220
1264
|
readonly draft: boolean;
|
|
1221
1265
|
readonly augments: readonly string[];
|
|
1222
1266
|
readonly multiLangContent: readonly {
|
|
@@ -1234,8 +1278,8 @@ export declare const restClient: Effect.Effect<{
|
|
|
1234
1278
|
readonly urlRoute: string;
|
|
1235
1279
|
readonly authorData: {
|
|
1236
1280
|
readonly id: string;
|
|
1237
|
-
readonly name: string;
|
|
1238
1281
|
readonly url?: string | null | undefined;
|
|
1282
|
+
readonly name: string;
|
|
1239
1283
|
readonly avatar?: string | null | undefined;
|
|
1240
1284
|
readonly username: string;
|
|
1241
1285
|
readonly updatedAt: Date;
|
|
@@ -1245,8 +1289,8 @@ export declare const restClient: Effect.Effect<{
|
|
|
1245
1289
|
} | undefined;
|
|
1246
1290
|
readonly contributorsData: readonly {
|
|
1247
1291
|
readonly id: string;
|
|
1248
|
-
readonly name: string;
|
|
1249
1292
|
readonly url?: string | null | undefined;
|
|
1293
|
+
readonly name: string;
|
|
1250
1294
|
readonly avatar?: string | null | undefined;
|
|
1251
1295
|
readonly username: string;
|
|
1252
1296
|
readonly updatedAt: Date;
|
|
@@ -1255,173 +1299,236 @@ export declare const restClient: Effect.Effect<{
|
|
|
1255
1299
|
readonly notifications?: string | null | undefined;
|
|
1256
1300
|
}[];
|
|
1257
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>;
|
|
1258
|
-
|
|
1302
|
+
};
|
|
1303
|
+
readonly restV1: {
|
|
1304
|
+
readonly getUsers: <WithResponse extends boolean = false>(request: {
|
|
1259
1305
|
readonly urlParams: {
|
|
1260
1306
|
readonly name?: string | undefined;
|
|
1307
|
+
readonly username?: string | undefined;
|
|
1308
|
+
readonly rank?: string | undefined;
|
|
1261
1309
|
};
|
|
1262
1310
|
readonly withResponse?: WithResponse | undefined;
|
|
1263
1311
|
}) => Effect.Effect<WithResponse extends true ? [readonly {
|
|
1264
|
-
readonly
|
|
1265
|
-
readonly
|
|
1312
|
+
readonly id: string;
|
|
1313
|
+
readonly url?: string | null | undefined;
|
|
1266
1314
|
readonly name: string;
|
|
1267
|
-
readonly
|
|
1268
|
-
readonly
|
|
1269
|
-
|
|
1270
|
-
|
|
1315
|
+
readonly email?: string | null | undefined;
|
|
1316
|
+
readonly avatar?: string | null | undefined;
|
|
1317
|
+
readonly username: string;
|
|
1318
|
+
readonly updatedAt: Date;
|
|
1319
|
+
readonly createdAt: Date;
|
|
1271
1320
|
}[], import("@effect/platform/HttpClientResponse").HttpClientResponse] : readonly {
|
|
1272
|
-
readonly
|
|
1273
|
-
readonly
|
|
1321
|
+
readonly id: string;
|
|
1322
|
+
readonly url?: string | null | undefined;
|
|
1274
1323
|
readonly name: string;
|
|
1275
|
-
readonly
|
|
1276
|
-
readonly
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
};
|
|
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;
|
|
1284
1332
|
readonly withResponse?: WithResponse | undefined;
|
|
1285
1333
|
}) => Effect.Effect<WithResponse extends true ? [{
|
|
1286
|
-
readonly
|
|
1287
|
-
readonly
|
|
1334
|
+
readonly id: string;
|
|
1335
|
+
readonly url?: string | null | undefined;
|
|
1288
1336
|
readonly name: string;
|
|
1289
|
-
readonly
|
|
1290
|
-
readonly
|
|
1291
|
-
|
|
1292
|
-
|
|
1337
|
+
readonly email?: string | null | undefined;
|
|
1338
|
+
readonly avatar?: string | null | undefined;
|
|
1339
|
+
readonly username: string;
|
|
1340
|
+
readonly updatedAt: Date;
|
|
1341
|
+
readonly createdAt: Date;
|
|
1293
1342
|
}, import("@effect/platform/HttpClientResponse").HttpClientResponse] : {
|
|
1294
|
-
readonly
|
|
1295
|
-
readonly
|
|
1343
|
+
readonly id: string;
|
|
1344
|
+
readonly url?: string | null | undefined;
|
|
1296
1345
|
readonly name: string;
|
|
1297
|
-
readonly
|
|
1298
|
-
readonly
|
|
1299
|
-
|
|
1346
|
+
readonly email?: string | null | undefined;
|
|
1347
|
+
readonly avatar?: string | null | undefined;
|
|
1348
|
+
readonly username: string;
|
|
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: {
|
|
1353
|
+
readonly path: {
|
|
1354
|
+
readonly id: string;
|
|
1300
1355
|
};
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
readonly
|
|
1306
|
-
|
|
1307
|
-
|
|
1356
|
+
readonly withResponse?: WithResponse | undefined;
|
|
1357
|
+
}) => Effect.Effect<WithResponse extends true ? [{
|
|
1358
|
+
readonly id: string;
|
|
1359
|
+
readonly url?: string | null | undefined;
|
|
1360
|
+
readonly name: string;
|
|
1361
|
+
readonly email?: string | null | undefined;
|
|
1362
|
+
readonly avatar?: string | null | undefined;
|
|
1363
|
+
readonly username: string;
|
|
1364
|
+
readonly updatedAt: Date;
|
|
1365
|
+
readonly createdAt: Date;
|
|
1366
|
+
}, import("@effect/platform/HttpClientResponse").HttpClientResponse] : {
|
|
1367
|
+
readonly id: string;
|
|
1368
|
+
readonly url?: string | null | undefined;
|
|
1369
|
+
readonly name: string;
|
|
1370
|
+
readonly email?: string | null | undefined;
|
|
1371
|
+
readonly avatar?: string | null | undefined;
|
|
1372
|
+
readonly username: string;
|
|
1373
|
+
readonly updatedAt: Date;
|
|
1374
|
+
readonly createdAt: Date;
|
|
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;
|
|
1308
1379
|
};
|
|
1380
|
+
readonly payload: import("node_modules/@withstudiocms/api-spec/dist/rest-api/schemas.d.mts").RestUsersIdJSONData;
|
|
1309
1381
|
readonly withResponse?: WithResponse | undefined;
|
|
1310
|
-
}) => Effect.Effect<WithResponse extends true ? [
|
|
1311
|
-
readonly
|
|
1382
|
+
}) => Effect.Effect<WithResponse extends true ? [{
|
|
1383
|
+
readonly id: string;
|
|
1384
|
+
readonly url?: string | null | undefined;
|
|
1385
|
+
readonly name: string;
|
|
1386
|
+
readonly email?: string | null | undefined;
|
|
1387
|
+
readonly avatar?: string | null | undefined;
|
|
1388
|
+
readonly username: string;
|
|
1389
|
+
readonly updatedAt: Date;
|
|
1390
|
+
readonly createdAt: Date;
|
|
1391
|
+
}, import("@effect/platform/HttpClientResponse").HttpClientResponse] : {
|
|
1392
|
+
readonly id: string;
|
|
1393
|
+
readonly url?: string | null | undefined;
|
|
1394
|
+
readonly name: string;
|
|
1395
|
+
readonly email?: string | null | undefined;
|
|
1396
|
+
readonly avatar?: string | null | undefined;
|
|
1397
|
+
readonly username: string;
|
|
1398
|
+
readonly updatedAt: Date;
|
|
1399
|
+
readonly createdAt: Date;
|
|
1400
|
+
}, 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>;
|
|
1401
|
+
readonly deleteUser: <WithResponse extends boolean = false>(request: {
|
|
1402
|
+
readonly path: {
|
|
1403
|
+
readonly id: string;
|
|
1404
|
+
};
|
|
1405
|
+
readonly withResponse?: WithResponse | undefined;
|
|
1406
|
+
}) => Effect.Effect<WithResponse extends true ? [{
|
|
1407
|
+
readonly message: string;
|
|
1408
|
+
}, import("@effect/platform/HttpClientResponse").HttpClientResponse] : {
|
|
1409
|
+
readonly message: string;
|
|
1410
|
+
}, 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>;
|
|
1411
|
+
readonly deleteCategory: <WithResponse extends boolean = false>(request: {
|
|
1412
|
+
readonly path: {
|
|
1413
|
+
readonly id: number;
|
|
1414
|
+
};
|
|
1415
|
+
readonly withResponse?: WithResponse | undefined;
|
|
1416
|
+
}) => Effect.Effect<WithResponse extends true ? [{
|
|
1417
|
+
readonly success: boolean;
|
|
1418
|
+
}, import("@effect/platform/HttpClientResponse").HttpClientResponse] : {
|
|
1419
|
+
readonly success: boolean;
|
|
1420
|
+
}, 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>;
|
|
1421
|
+
readonly getCategory: <WithResponse extends boolean = false>(request: {
|
|
1422
|
+
readonly path: {
|
|
1423
|
+
readonly id: number;
|
|
1424
|
+
};
|
|
1425
|
+
readonly withResponse?: WithResponse | undefined;
|
|
1426
|
+
}) => Effect.Effect<WithResponse extends true ? [{
|
|
1312
1427
|
readonly id: number;
|
|
1313
1428
|
readonly name: string;
|
|
1429
|
+
readonly description: string;
|
|
1314
1430
|
readonly slug: string;
|
|
1315
1431
|
readonly meta: {
|
|
1316
1432
|
readonly [x: string]: unknown;
|
|
1317
1433
|
};
|
|
1318
1434
|
readonly parent?: number | null | undefined;
|
|
1319
|
-
}
|
|
1320
|
-
readonly description: string;
|
|
1435
|
+
}, import("@effect/platform/HttpClientResponse").HttpClientResponse] : {
|
|
1321
1436
|
readonly id: number;
|
|
1322
1437
|
readonly name: string;
|
|
1438
|
+
readonly description: string;
|
|
1323
1439
|
readonly slug: string;
|
|
1324
1440
|
readonly meta: {
|
|
1325
1441
|
readonly [x: string]: unknown;
|
|
1326
1442
|
};
|
|
1327
1443
|
readonly parent?: number | null | undefined;
|
|
1328
|
-
}
|
|
1329
|
-
readonly
|
|
1444
|
+
}, 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
|
+
readonly updateCategory: <WithResponse extends boolean = false>(request: {
|
|
1446
|
+
readonly path: {
|
|
1447
|
+
readonly id: number;
|
|
1448
|
+
};
|
|
1330
1449
|
readonly payload: {
|
|
1331
|
-
readonly
|
|
1332
|
-
readonly name
|
|
1333
|
-
readonly
|
|
1334
|
-
readonly
|
|
1450
|
+
readonly id?: number | undefined;
|
|
1451
|
+
readonly name?: string | undefined;
|
|
1452
|
+
readonly description?: string | undefined;
|
|
1453
|
+
readonly slug?: string | undefined;
|
|
1454
|
+
readonly meta?: {
|
|
1455
|
+
readonly [x: string]: unknown;
|
|
1456
|
+
} | undefined;
|
|
1335
1457
|
readonly parent?: number | null | undefined;
|
|
1336
1458
|
};
|
|
1337
1459
|
readonly withResponse?: WithResponse | undefined;
|
|
1338
1460
|
}) => Effect.Effect<WithResponse extends true ? [{
|
|
1339
|
-
readonly description: string;
|
|
1340
1461
|
readonly id: number;
|
|
1341
1462
|
readonly name: string;
|
|
1463
|
+
readonly description: string;
|
|
1342
1464
|
readonly slug: string;
|
|
1343
1465
|
readonly meta: {
|
|
1344
1466
|
readonly [x: string]: unknown;
|
|
1345
1467
|
};
|
|
1346
1468
|
readonly parent?: number | null | undefined;
|
|
1347
1469
|
}, import("@effect/platform/HttpClientResponse").HttpClientResponse] : {
|
|
1348
|
-
readonly description: string;
|
|
1349
1470
|
readonly id: number;
|
|
1350
1471
|
readonly name: string;
|
|
1472
|
+
readonly description: string;
|
|
1351
1473
|
readonly slug: string;
|
|
1352
1474
|
readonly meta: {
|
|
1353
1475
|
readonly [x: string]: unknown;
|
|
1354
1476
|
};
|
|
1355
1477
|
readonly parent?: number | null | undefined;
|
|
1356
1478
|
}, 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>;
|
|
1357
|
-
readonly
|
|
1358
|
-
readonly
|
|
1359
|
-
readonly
|
|
1479
|
+
readonly getCategories: <WithResponse extends boolean = false>(request: {
|
|
1480
|
+
readonly urlParams: {
|
|
1481
|
+
readonly name?: string | undefined;
|
|
1482
|
+
readonly parent?: number | undefined;
|
|
1360
1483
|
};
|
|
1361
1484
|
readonly withResponse?: WithResponse | undefined;
|
|
1362
|
-
}) => Effect.Effect<WithResponse extends true ? [{
|
|
1363
|
-
readonly description: string;
|
|
1485
|
+
}) => Effect.Effect<WithResponse extends true ? [readonly {
|
|
1364
1486
|
readonly id: number;
|
|
1365
1487
|
readonly name: string;
|
|
1488
|
+
readonly description: string;
|
|
1366
1489
|
readonly slug: string;
|
|
1367
1490
|
readonly meta: {
|
|
1368
1491
|
readonly [x: string]: unknown;
|
|
1369
1492
|
};
|
|
1370
1493
|
readonly parent?: number | null | undefined;
|
|
1371
|
-
}, import("@effect/platform/HttpClientResponse").HttpClientResponse] : {
|
|
1372
|
-
readonly description: string;
|
|
1494
|
+
}[], import("@effect/platform/HttpClientResponse").HttpClientResponse] : readonly {
|
|
1373
1495
|
readonly id: number;
|
|
1374
1496
|
readonly name: string;
|
|
1497
|
+
readonly description: string;
|
|
1375
1498
|
readonly slug: string;
|
|
1376
1499
|
readonly meta: {
|
|
1377
1500
|
readonly [x: string]: unknown;
|
|
1378
1501
|
};
|
|
1379
1502
|
readonly parent?: number | null | undefined;
|
|
1380
|
-
}, 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>;
|
|
1381
|
-
readonly
|
|
1382
|
-
readonly path: {
|
|
1383
|
-
readonly id: number;
|
|
1384
|
-
};
|
|
1503
|
+
}[], 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
|
+
readonly createCategory: <WithResponse extends boolean = false>(request: {
|
|
1385
1505
|
readonly payload: {
|
|
1386
|
-
readonly
|
|
1387
|
-
readonly
|
|
1388
|
-
readonly
|
|
1389
|
-
readonly
|
|
1390
|
-
readonly meta?: {
|
|
1391
|
-
readonly [x: string]: unknown;
|
|
1392
|
-
} | undefined;
|
|
1506
|
+
readonly name: string;
|
|
1507
|
+
readonly description: string;
|
|
1508
|
+
readonly slug: string;
|
|
1509
|
+
readonly meta: string;
|
|
1393
1510
|
readonly parent?: number | null | undefined;
|
|
1394
1511
|
};
|
|
1395
1512
|
readonly withResponse?: WithResponse | undefined;
|
|
1396
1513
|
}) => Effect.Effect<WithResponse extends true ? [{
|
|
1397
|
-
readonly description: string;
|
|
1398
1514
|
readonly id: number;
|
|
1399
1515
|
readonly name: string;
|
|
1516
|
+
readonly description: string;
|
|
1400
1517
|
readonly slug: string;
|
|
1401
1518
|
readonly meta: {
|
|
1402
1519
|
readonly [x: string]: unknown;
|
|
1403
1520
|
};
|
|
1404
1521
|
readonly parent?: number | null | undefined;
|
|
1405
1522
|
}, import("@effect/platform/HttpClientResponse").HttpClientResponse] : {
|
|
1406
|
-
readonly description: string;
|
|
1407
1523
|
readonly id: number;
|
|
1408
1524
|
readonly name: string;
|
|
1525
|
+
readonly description: string;
|
|
1409
1526
|
readonly slug: string;
|
|
1410
1527
|
readonly meta: {
|
|
1411
1528
|
readonly [x: string]: unknown;
|
|
1412
1529
|
};
|
|
1413
1530
|
readonly parent?: number | null | undefined;
|
|
1414
1531
|
}, 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>;
|
|
1415
|
-
readonly deleteCategory: <WithResponse extends boolean = false>(request: {
|
|
1416
|
-
readonly path: {
|
|
1417
|
-
readonly id: number;
|
|
1418
|
-
};
|
|
1419
|
-
readonly withResponse?: WithResponse | undefined;
|
|
1420
|
-
}) => Effect.Effect<WithResponse extends true ? [{
|
|
1421
|
-
readonly success: boolean;
|
|
1422
|
-
}, import("@effect/platform/HttpClientResponse").HttpClientResponse] : {
|
|
1423
|
-
readonly success: boolean;
|
|
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>;
|
|
1425
1532
|
readonly deleteFolder: <WithResponse extends boolean = false>(request: {
|
|
1426
1533
|
readonly path: {
|
|
1427
1534
|
readonly id: string;
|
|
@@ -1502,30 +1609,31 @@ export declare const restClient: Effect.Effect<{
|
|
|
1502
1609
|
};
|
|
1503
1610
|
readonly withResponse?: WithResponse | undefined;
|
|
1504
1611
|
}) => Effect.Effect<WithResponse extends true ? [{
|
|
1505
|
-
readonly description: string;
|
|
1506
1612
|
readonly id: string;
|
|
1507
|
-
readonly
|
|
1613
|
+
readonly updatedAt: Date;
|
|
1614
|
+
readonly description: string;
|
|
1615
|
+
readonly title: string;
|
|
1508
1616
|
readonly tags: readonly {
|
|
1509
|
-
readonly description: string;
|
|
1510
1617
|
readonly id: number;
|
|
1511
1618
|
readonly name: string;
|
|
1619
|
+
readonly description: string;
|
|
1512
1620
|
readonly slug: string;
|
|
1513
1621
|
readonly meta: {
|
|
1514
1622
|
readonly [x: string]: unknown;
|
|
1515
1623
|
};
|
|
1516
1624
|
}[];
|
|
1625
|
+
readonly slug: string;
|
|
1517
1626
|
readonly categories: readonly {
|
|
1518
|
-
readonly description: string;
|
|
1519
1627
|
readonly id: number;
|
|
1520
1628
|
readonly name: string;
|
|
1629
|
+
readonly description: string;
|
|
1521
1630
|
readonly slug: string;
|
|
1522
1631
|
readonly meta: {
|
|
1523
1632
|
readonly [x: string]: unknown;
|
|
1524
1633
|
};
|
|
1525
1634
|
readonly parent?: number | null | undefined;
|
|
1526
1635
|
}[];
|
|
1527
|
-
readonly
|
|
1528
|
-
readonly updatedAt: Date;
|
|
1636
|
+
readonly parentFolder?: string | null | undefined;
|
|
1529
1637
|
readonly package: string;
|
|
1530
1638
|
readonly showOnNav: boolean;
|
|
1531
1639
|
readonly publishedAt: Date;
|
|
@@ -1535,7 +1643,6 @@ export declare const restClient: Effect.Effect<{
|
|
|
1535
1643
|
readonly contributorIds: readonly string[];
|
|
1536
1644
|
readonly showAuthor: boolean;
|
|
1537
1645
|
readonly showContributors: boolean;
|
|
1538
|
-
readonly parentFolder?: string | null | undefined;
|
|
1539
1646
|
readonly draft: boolean;
|
|
1540
1647
|
readonly augments: readonly string[];
|
|
1541
1648
|
readonly multiLangContent: readonly {
|
|
@@ -1553,8 +1660,8 @@ export declare const restClient: Effect.Effect<{
|
|
|
1553
1660
|
readonly urlRoute: string;
|
|
1554
1661
|
readonly authorData: {
|
|
1555
1662
|
readonly id: string;
|
|
1556
|
-
readonly name: string;
|
|
1557
1663
|
readonly url?: string | null | undefined;
|
|
1664
|
+
readonly name: string;
|
|
1558
1665
|
readonly avatar?: string | null | undefined;
|
|
1559
1666
|
readonly username: string;
|
|
1560
1667
|
readonly updatedAt: Date;
|
|
@@ -1564,8 +1671,8 @@ export declare const restClient: Effect.Effect<{
|
|
|
1564
1671
|
} | undefined;
|
|
1565
1672
|
readonly contributorsData: readonly {
|
|
1566
1673
|
readonly id: string;
|
|
1567
|
-
readonly name: string;
|
|
1568
1674
|
readonly url?: string | null | undefined;
|
|
1675
|
+
readonly name: string;
|
|
1569
1676
|
readonly avatar?: string | null | undefined;
|
|
1570
1677
|
readonly username: string;
|
|
1571
1678
|
readonly updatedAt: Date;
|
|
@@ -1574,30 +1681,31 @@ export declare const restClient: Effect.Effect<{
|
|
|
1574
1681
|
readonly notifications?: string | null | undefined;
|
|
1575
1682
|
}[];
|
|
1576
1683
|
}, import("@effect/platform/HttpClientResponse").HttpClientResponse] : {
|
|
1577
|
-
readonly description: string;
|
|
1578
1684
|
readonly id: string;
|
|
1579
|
-
readonly
|
|
1685
|
+
readonly updatedAt: Date;
|
|
1686
|
+
readonly description: string;
|
|
1687
|
+
readonly title: string;
|
|
1580
1688
|
readonly tags: readonly {
|
|
1581
|
-
readonly description: string;
|
|
1582
1689
|
readonly id: number;
|
|
1583
1690
|
readonly name: string;
|
|
1691
|
+
readonly description: string;
|
|
1584
1692
|
readonly slug: string;
|
|
1585
1693
|
readonly meta: {
|
|
1586
1694
|
readonly [x: string]: unknown;
|
|
1587
1695
|
};
|
|
1588
1696
|
}[];
|
|
1697
|
+
readonly slug: string;
|
|
1589
1698
|
readonly categories: readonly {
|
|
1590
|
-
readonly description: string;
|
|
1591
1699
|
readonly id: number;
|
|
1592
1700
|
readonly name: string;
|
|
1701
|
+
readonly description: string;
|
|
1593
1702
|
readonly slug: string;
|
|
1594
1703
|
readonly meta: {
|
|
1595
1704
|
readonly [x: string]: unknown;
|
|
1596
1705
|
};
|
|
1597
1706
|
readonly parent?: number | null | undefined;
|
|
1598
1707
|
}[];
|
|
1599
|
-
readonly
|
|
1600
|
-
readonly updatedAt: Date;
|
|
1708
|
+
readonly parentFolder?: string | null | undefined;
|
|
1601
1709
|
readonly package: string;
|
|
1602
1710
|
readonly showOnNav: boolean;
|
|
1603
1711
|
readonly publishedAt: Date;
|
|
@@ -1607,7 +1715,6 @@ export declare const restClient: Effect.Effect<{
|
|
|
1607
1715
|
readonly contributorIds: readonly string[];
|
|
1608
1716
|
readonly showAuthor: boolean;
|
|
1609
1717
|
readonly showContributors: boolean;
|
|
1610
|
-
readonly parentFolder?: string | null | undefined;
|
|
1611
1718
|
readonly draft: boolean;
|
|
1612
1719
|
readonly augments: readonly string[];
|
|
1613
1720
|
readonly multiLangContent: readonly {
|
|
@@ -1625,8 +1732,8 @@ export declare const restClient: Effect.Effect<{
|
|
|
1625
1732
|
readonly urlRoute: string;
|
|
1626
1733
|
readonly authorData: {
|
|
1627
1734
|
readonly id: string;
|
|
1628
|
-
readonly name: string;
|
|
1629
1735
|
readonly url?: string | null | undefined;
|
|
1736
|
+
readonly name: string;
|
|
1630
1737
|
readonly avatar?: string | null | undefined;
|
|
1631
1738
|
readonly username: string;
|
|
1632
1739
|
readonly updatedAt: Date;
|
|
@@ -1636,8 +1743,8 @@ export declare const restClient: Effect.Effect<{
|
|
|
1636
1743
|
} | undefined;
|
|
1637
1744
|
readonly contributorsData: readonly {
|
|
1638
1745
|
readonly id: string;
|
|
1639
|
-
readonly name: string;
|
|
1640
1746
|
readonly url?: string | null | undefined;
|
|
1747
|
+
readonly name: string;
|
|
1641
1748
|
readonly avatar?: string | null | undefined;
|
|
1642
1749
|
readonly username: string;
|
|
1643
1750
|
readonly updatedAt: Date;
|
|
@@ -1661,13 +1768,14 @@ export declare const restClient: Effect.Effect<{
|
|
|
1661
1768
|
readonly diff: string | null;
|
|
1662
1769
|
readonly pageMetaData: {
|
|
1663
1770
|
readonly start: {
|
|
1664
|
-
readonly description: string;
|
|
1665
1771
|
readonly id: string;
|
|
1666
|
-
readonly
|
|
1772
|
+
readonly updatedAt: Date;
|
|
1773
|
+
readonly description: string;
|
|
1774
|
+
readonly title: string;
|
|
1667
1775
|
readonly tags: readonly string[];
|
|
1776
|
+
readonly slug: string;
|
|
1668
1777
|
readonly categories: readonly string[];
|
|
1669
|
-
readonly
|
|
1670
|
-
readonly updatedAt: Date;
|
|
1778
|
+
readonly parentFolder?: string | null | undefined;
|
|
1671
1779
|
readonly package: string;
|
|
1672
1780
|
readonly showOnNav: boolean;
|
|
1673
1781
|
readonly publishedAt: Date;
|
|
@@ -1677,18 +1785,18 @@ export declare const restClient: Effect.Effect<{
|
|
|
1677
1785
|
readonly contributorIds: readonly string[];
|
|
1678
1786
|
readonly showAuthor: boolean;
|
|
1679
1787
|
readonly showContributors: boolean;
|
|
1680
|
-
readonly parentFolder?: string | null | undefined;
|
|
1681
1788
|
readonly draft: boolean;
|
|
1682
1789
|
readonly augments: readonly string[];
|
|
1683
1790
|
};
|
|
1684
1791
|
readonly end: {
|
|
1685
|
-
readonly description: string;
|
|
1686
1792
|
readonly id: string;
|
|
1687
|
-
readonly
|
|
1793
|
+
readonly updatedAt: Date;
|
|
1794
|
+
readonly description: string;
|
|
1795
|
+
readonly title: string;
|
|
1688
1796
|
readonly tags: readonly string[];
|
|
1797
|
+
readonly slug: string;
|
|
1689
1798
|
readonly categories: readonly string[];
|
|
1690
|
-
readonly
|
|
1691
|
-
readonly updatedAt: Date;
|
|
1799
|
+
readonly parentFolder?: string | null | undefined;
|
|
1692
1800
|
readonly package: string;
|
|
1693
1801
|
readonly showOnNav: boolean;
|
|
1694
1802
|
readonly publishedAt: Date;
|
|
@@ -1698,7 +1806,6 @@ export declare const restClient: Effect.Effect<{
|
|
|
1698
1806
|
readonly contributorIds: readonly string[];
|
|
1699
1807
|
readonly showAuthor: boolean;
|
|
1700
1808
|
readonly showContributors: boolean;
|
|
1701
|
-
readonly parentFolder?: string | null | undefined;
|
|
1702
1809
|
readonly draft: boolean;
|
|
1703
1810
|
readonly augments: readonly string[];
|
|
1704
1811
|
};
|
|
@@ -1712,13 +1819,14 @@ export declare const restClient: Effect.Effect<{
|
|
|
1712
1819
|
readonly diff: string | null;
|
|
1713
1820
|
readonly pageMetaData: {
|
|
1714
1821
|
readonly start: {
|
|
1715
|
-
readonly description: string;
|
|
1716
1822
|
readonly id: string;
|
|
1717
|
-
readonly
|
|
1823
|
+
readonly updatedAt: Date;
|
|
1824
|
+
readonly description: string;
|
|
1825
|
+
readonly title: string;
|
|
1718
1826
|
readonly tags: readonly string[];
|
|
1827
|
+
readonly slug: string;
|
|
1719
1828
|
readonly categories: readonly string[];
|
|
1720
|
-
readonly
|
|
1721
|
-
readonly updatedAt: Date;
|
|
1829
|
+
readonly parentFolder?: string | null | undefined;
|
|
1722
1830
|
readonly package: string;
|
|
1723
1831
|
readonly showOnNav: boolean;
|
|
1724
1832
|
readonly publishedAt: Date;
|
|
@@ -1728,18 +1836,18 @@ export declare const restClient: Effect.Effect<{
|
|
|
1728
1836
|
readonly contributorIds: readonly string[];
|
|
1729
1837
|
readonly showAuthor: boolean;
|
|
1730
1838
|
readonly showContributors: boolean;
|
|
1731
|
-
readonly parentFolder?: string | null | undefined;
|
|
1732
1839
|
readonly draft: boolean;
|
|
1733
1840
|
readonly augments: readonly string[];
|
|
1734
1841
|
};
|
|
1735
1842
|
readonly end: {
|
|
1736
|
-
readonly description: string;
|
|
1737
1843
|
readonly id: string;
|
|
1738
|
-
readonly
|
|
1844
|
+
readonly updatedAt: Date;
|
|
1845
|
+
readonly description: string;
|
|
1846
|
+
readonly title: string;
|
|
1739
1847
|
readonly tags: readonly string[];
|
|
1848
|
+
readonly slug: string;
|
|
1740
1849
|
readonly categories: readonly string[];
|
|
1741
|
-
readonly
|
|
1742
|
-
readonly updatedAt: Date;
|
|
1850
|
+
readonly parentFolder?: string | null | undefined;
|
|
1743
1851
|
readonly package: string;
|
|
1744
1852
|
readonly showOnNav: boolean;
|
|
1745
1853
|
readonly publishedAt: Date;
|
|
@@ -1749,7 +1857,6 @@ export declare const restClient: Effect.Effect<{
|
|
|
1749
1857
|
readonly contributorIds: readonly string[];
|
|
1750
1858
|
readonly showAuthor: boolean;
|
|
1751
1859
|
readonly showContributors: boolean;
|
|
1752
|
-
readonly parentFolder?: string | null | undefined;
|
|
1753
1860
|
readonly draft: boolean;
|
|
1754
1861
|
readonly augments: readonly string[];
|
|
1755
1862
|
};
|
|
@@ -1772,13 +1879,14 @@ export declare const restClient: Effect.Effect<{
|
|
|
1772
1879
|
readonly diff: string | null;
|
|
1773
1880
|
readonly pageMetaData: {
|
|
1774
1881
|
readonly start: {
|
|
1775
|
-
readonly description: string;
|
|
1776
1882
|
readonly id: string;
|
|
1777
|
-
readonly
|
|
1883
|
+
readonly updatedAt: Date;
|
|
1884
|
+
readonly description: string;
|
|
1885
|
+
readonly title: string;
|
|
1778
1886
|
readonly tags: readonly string[];
|
|
1887
|
+
readonly slug: string;
|
|
1779
1888
|
readonly categories: readonly string[];
|
|
1780
|
-
readonly
|
|
1781
|
-
readonly updatedAt: Date;
|
|
1889
|
+
readonly parentFolder?: string | null | undefined;
|
|
1782
1890
|
readonly package: string;
|
|
1783
1891
|
readonly showOnNav: boolean;
|
|
1784
1892
|
readonly publishedAt: Date;
|
|
@@ -1788,18 +1896,18 @@ export declare const restClient: Effect.Effect<{
|
|
|
1788
1896
|
readonly contributorIds: readonly string[];
|
|
1789
1897
|
readonly showAuthor: boolean;
|
|
1790
1898
|
readonly showContributors: boolean;
|
|
1791
|
-
readonly parentFolder?: string | null | undefined;
|
|
1792
1899
|
readonly draft: boolean;
|
|
1793
1900
|
readonly augments: readonly string[];
|
|
1794
1901
|
};
|
|
1795
1902
|
readonly end: {
|
|
1796
|
-
readonly description: string;
|
|
1797
1903
|
readonly id: string;
|
|
1798
|
-
readonly slug: string;
|
|
1799
|
-
readonly tags: readonly string[];
|
|
1800
|
-
readonly categories: readonly string[];
|
|
1801
|
-
readonly title: string;
|
|
1802
1904
|
readonly updatedAt: Date;
|
|
1905
|
+
readonly description: string;
|
|
1906
|
+
readonly title: string;
|
|
1907
|
+
readonly tags: readonly string[];
|
|
1908
|
+
readonly slug: string;
|
|
1909
|
+
readonly categories: readonly string[];
|
|
1910
|
+
readonly parentFolder?: string | null | undefined;
|
|
1803
1911
|
readonly package: string;
|
|
1804
1912
|
readonly showOnNav: boolean;
|
|
1805
1913
|
readonly publishedAt: Date;
|
|
@@ -1809,7 +1917,6 @@ export declare const restClient: Effect.Effect<{
|
|
|
1809
1917
|
readonly contributorIds: readonly string[];
|
|
1810
1918
|
readonly showAuthor: boolean;
|
|
1811
1919
|
readonly showContributors: boolean;
|
|
1812
|
-
readonly parentFolder?: string | null | undefined;
|
|
1813
1920
|
readonly draft: boolean;
|
|
1814
1921
|
readonly augments: readonly string[];
|
|
1815
1922
|
};
|
|
@@ -1823,13 +1930,14 @@ export declare const restClient: Effect.Effect<{
|
|
|
1823
1930
|
readonly diff: string | null;
|
|
1824
1931
|
readonly pageMetaData: {
|
|
1825
1932
|
readonly start: {
|
|
1826
|
-
readonly description: string;
|
|
1827
1933
|
readonly id: string;
|
|
1828
|
-
readonly
|
|
1934
|
+
readonly updatedAt: Date;
|
|
1935
|
+
readonly description: string;
|
|
1936
|
+
readonly title: string;
|
|
1829
1937
|
readonly tags: readonly string[];
|
|
1938
|
+
readonly slug: string;
|
|
1830
1939
|
readonly categories: readonly string[];
|
|
1831
|
-
readonly
|
|
1832
|
-
readonly updatedAt: Date;
|
|
1940
|
+
readonly parentFolder?: string | null | undefined;
|
|
1833
1941
|
readonly package: string;
|
|
1834
1942
|
readonly showOnNav: boolean;
|
|
1835
1943
|
readonly publishedAt: Date;
|
|
@@ -1839,18 +1947,18 @@ export declare const restClient: Effect.Effect<{
|
|
|
1839
1947
|
readonly contributorIds: readonly string[];
|
|
1840
1948
|
readonly showAuthor: boolean;
|
|
1841
1949
|
readonly showContributors: boolean;
|
|
1842
|
-
readonly parentFolder?: string | null | undefined;
|
|
1843
1950
|
readonly draft: boolean;
|
|
1844
1951
|
readonly augments: readonly string[];
|
|
1845
1952
|
};
|
|
1846
1953
|
readonly end: {
|
|
1847
|
-
readonly description: string;
|
|
1848
1954
|
readonly id: string;
|
|
1849
|
-
readonly
|
|
1955
|
+
readonly updatedAt: Date;
|
|
1956
|
+
readonly description: string;
|
|
1957
|
+
readonly title: string;
|
|
1850
1958
|
readonly tags: readonly string[];
|
|
1959
|
+
readonly slug: string;
|
|
1851
1960
|
readonly categories: readonly string[];
|
|
1852
|
-
readonly
|
|
1853
|
-
readonly updatedAt: Date;
|
|
1961
|
+
readonly parentFolder?: string | null | undefined;
|
|
1854
1962
|
readonly package: string;
|
|
1855
1963
|
readonly showOnNav: boolean;
|
|
1856
1964
|
readonly publishedAt: Date;
|
|
@@ -1860,7 +1968,6 @@ export declare const restClient: Effect.Effect<{
|
|
|
1860
1968
|
readonly contributorIds: readonly string[];
|
|
1861
1969
|
readonly showAuthor: boolean;
|
|
1862
1970
|
readonly showContributors: boolean;
|
|
1863
|
-
readonly parentFolder?: string | null | undefined;
|
|
1864
1971
|
readonly draft: boolean;
|
|
1865
1972
|
readonly augments: readonly string[];
|
|
1866
1973
|
};
|
|
@@ -1871,14 +1978,21 @@ export declare const restClient: Effect.Effect<{
|
|
|
1871
1978
|
readonly id: string;
|
|
1872
1979
|
};
|
|
1873
1980
|
readonly payload: {
|
|
1981
|
+
readonly content?: {
|
|
1982
|
+
readonly id?: string | undefined;
|
|
1983
|
+
readonly content?: string | undefined;
|
|
1984
|
+
readonly contentLang?: string | undefined;
|
|
1985
|
+
readonly contentId?: string | undefined;
|
|
1986
|
+
} | undefined;
|
|
1874
1987
|
readonly data?: {
|
|
1875
|
-
readonly description?: string | undefined;
|
|
1876
1988
|
readonly id?: string | undefined;
|
|
1877
|
-
readonly
|
|
1989
|
+
readonly updatedAt?: Date | undefined;
|
|
1990
|
+
readonly description?: string | undefined;
|
|
1991
|
+
readonly title?: string | undefined;
|
|
1878
1992
|
readonly tags?: readonly string[] | undefined;
|
|
1993
|
+
readonly slug?: string | undefined;
|
|
1879
1994
|
readonly categories?: readonly string[] | undefined;
|
|
1880
|
-
readonly
|
|
1881
|
-
readonly updatedAt?: Date | undefined;
|
|
1995
|
+
readonly parentFolder?: string | null | undefined;
|
|
1882
1996
|
readonly package?: string | undefined;
|
|
1883
1997
|
readonly showOnNav?: boolean | undefined;
|
|
1884
1998
|
readonly publishedAt?: Date | undefined;
|
|
@@ -1888,16 +2002,9 @@ export declare const restClient: Effect.Effect<{
|
|
|
1888
2002
|
readonly contributorIds?: readonly string[] | undefined;
|
|
1889
2003
|
readonly showAuthor?: boolean | undefined;
|
|
1890
2004
|
readonly showContributors?: boolean | undefined;
|
|
1891
|
-
readonly parentFolder?: string | null | undefined;
|
|
1892
2005
|
readonly draft?: boolean | undefined;
|
|
1893
2006
|
readonly augments?: readonly string[] | undefined;
|
|
1894
2007
|
} | undefined;
|
|
1895
|
-
readonly content?: {
|
|
1896
|
-
readonly id?: string | undefined;
|
|
1897
|
-
readonly content?: string | undefined;
|
|
1898
|
-
readonly contentLang?: string | undefined;
|
|
1899
|
-
readonly contentId?: string | undefined;
|
|
1900
|
-
} | undefined;
|
|
1901
2008
|
};
|
|
1902
2009
|
readonly withResponse?: WithResponse | undefined;
|
|
1903
2010
|
}) => Effect.Effect<WithResponse extends true ? [{
|
|
@@ -1907,39 +2014,40 @@ export declare const restClient: Effect.Effect<{
|
|
|
1907
2014
|
}, 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>;
|
|
1908
2015
|
readonly getPages: <WithResponse extends boolean = false>(request: {
|
|
1909
2016
|
readonly urlParams: {
|
|
1910
|
-
readonly slug?: string | undefined;
|
|
1911
2017
|
readonly title?: string | undefined;
|
|
2018
|
+
readonly slug?: string | undefined;
|
|
2019
|
+
readonly author?: string | undefined;
|
|
1912
2020
|
readonly parentFolder?: string | undefined;
|
|
1913
2021
|
readonly draft?: boolean | undefined;
|
|
1914
|
-
readonly author?: string | undefined;
|
|
1915
2022
|
readonly published?: boolean | undefined;
|
|
1916
2023
|
};
|
|
1917
2024
|
readonly withResponse?: WithResponse | undefined;
|
|
1918
2025
|
}) => Effect.Effect<WithResponse extends true ? [readonly {
|
|
1919
|
-
readonly description: string;
|
|
1920
2026
|
readonly id: string;
|
|
1921
|
-
readonly
|
|
2027
|
+
readonly updatedAt: Date;
|
|
2028
|
+
readonly description: string;
|
|
2029
|
+
readonly title: string;
|
|
1922
2030
|
readonly tags: readonly {
|
|
1923
|
-
readonly description: string;
|
|
1924
2031
|
readonly id: number;
|
|
1925
2032
|
readonly name: string;
|
|
2033
|
+
readonly description: string;
|
|
1926
2034
|
readonly slug: string;
|
|
1927
2035
|
readonly meta: {
|
|
1928
2036
|
readonly [x: string]: unknown;
|
|
1929
2037
|
};
|
|
1930
2038
|
}[];
|
|
2039
|
+
readonly slug: string;
|
|
1931
2040
|
readonly categories: readonly {
|
|
1932
|
-
readonly description: string;
|
|
1933
2041
|
readonly id: number;
|
|
1934
2042
|
readonly name: string;
|
|
2043
|
+
readonly description: string;
|
|
1935
2044
|
readonly slug: string;
|
|
1936
2045
|
readonly meta: {
|
|
1937
2046
|
readonly [x: string]: unknown;
|
|
1938
2047
|
};
|
|
1939
2048
|
readonly parent?: number | null | undefined;
|
|
1940
2049
|
}[];
|
|
1941
|
-
readonly
|
|
1942
|
-
readonly updatedAt: Date;
|
|
2050
|
+
readonly parentFolder?: string | null | undefined;
|
|
1943
2051
|
readonly package: string;
|
|
1944
2052
|
readonly showOnNav: boolean;
|
|
1945
2053
|
readonly publishedAt: Date;
|
|
@@ -1949,7 +2057,6 @@ export declare const restClient: Effect.Effect<{
|
|
|
1949
2057
|
readonly contributorIds: readonly string[];
|
|
1950
2058
|
readonly showAuthor: boolean;
|
|
1951
2059
|
readonly showContributors: boolean;
|
|
1952
|
-
readonly parentFolder?: string | null | undefined;
|
|
1953
2060
|
readonly draft: boolean;
|
|
1954
2061
|
readonly augments: readonly string[];
|
|
1955
2062
|
readonly multiLangContent: readonly {
|
|
@@ -1967,8 +2074,8 @@ export declare const restClient: Effect.Effect<{
|
|
|
1967
2074
|
readonly urlRoute: string;
|
|
1968
2075
|
readonly authorData: {
|
|
1969
2076
|
readonly id: string;
|
|
1970
|
-
readonly name: string;
|
|
1971
2077
|
readonly url?: string | null | undefined;
|
|
2078
|
+
readonly name: string;
|
|
1972
2079
|
readonly avatar?: string | null | undefined;
|
|
1973
2080
|
readonly username: string;
|
|
1974
2081
|
readonly updatedAt: Date;
|
|
@@ -1978,8 +2085,8 @@ export declare const restClient: Effect.Effect<{
|
|
|
1978
2085
|
} | undefined;
|
|
1979
2086
|
readonly contributorsData: readonly {
|
|
1980
2087
|
readonly id: string;
|
|
1981
|
-
readonly name: string;
|
|
1982
2088
|
readonly url?: string | null | undefined;
|
|
2089
|
+
readonly name: string;
|
|
1983
2090
|
readonly avatar?: string | null | undefined;
|
|
1984
2091
|
readonly username: string;
|
|
1985
2092
|
readonly updatedAt: Date;
|
|
@@ -1988,30 +2095,31 @@ export declare const restClient: Effect.Effect<{
|
|
|
1988
2095
|
readonly notifications?: string | null | undefined;
|
|
1989
2096
|
}[];
|
|
1990
2097
|
}[], import("@effect/platform/HttpClientResponse").HttpClientResponse] : readonly {
|
|
1991
|
-
readonly description: string;
|
|
1992
2098
|
readonly id: string;
|
|
1993
|
-
readonly
|
|
2099
|
+
readonly updatedAt: Date;
|
|
2100
|
+
readonly description: string;
|
|
2101
|
+
readonly title: string;
|
|
1994
2102
|
readonly tags: readonly {
|
|
1995
|
-
readonly description: string;
|
|
1996
2103
|
readonly id: number;
|
|
1997
2104
|
readonly name: string;
|
|
2105
|
+
readonly description: string;
|
|
1998
2106
|
readonly slug: string;
|
|
1999
2107
|
readonly meta: {
|
|
2000
2108
|
readonly [x: string]: unknown;
|
|
2001
2109
|
};
|
|
2002
2110
|
}[];
|
|
2111
|
+
readonly slug: string;
|
|
2003
2112
|
readonly categories: readonly {
|
|
2004
|
-
readonly description: string;
|
|
2005
2113
|
readonly id: number;
|
|
2006
2114
|
readonly name: string;
|
|
2115
|
+
readonly description: string;
|
|
2007
2116
|
readonly slug: string;
|
|
2008
2117
|
readonly meta: {
|
|
2009
2118
|
readonly [x: string]: unknown;
|
|
2010
2119
|
};
|
|
2011
2120
|
readonly parent?: number | null | undefined;
|
|
2012
2121
|
}[];
|
|
2013
|
-
readonly
|
|
2014
|
-
readonly updatedAt: Date;
|
|
2122
|
+
readonly parentFolder?: string | null | undefined;
|
|
2015
2123
|
readonly package: string;
|
|
2016
2124
|
readonly showOnNav: boolean;
|
|
2017
2125
|
readonly publishedAt: Date;
|
|
@@ -2021,7 +2129,6 @@ export declare const restClient: Effect.Effect<{
|
|
|
2021
2129
|
readonly contributorIds: readonly string[];
|
|
2022
2130
|
readonly showAuthor: boolean;
|
|
2023
2131
|
readonly showContributors: boolean;
|
|
2024
|
-
readonly parentFolder?: string | null | undefined;
|
|
2025
2132
|
readonly draft: boolean;
|
|
2026
2133
|
readonly augments: readonly string[];
|
|
2027
2134
|
readonly multiLangContent: readonly {
|
|
@@ -2039,8 +2146,8 @@ export declare const restClient: Effect.Effect<{
|
|
|
2039
2146
|
readonly urlRoute: string;
|
|
2040
2147
|
readonly authorData: {
|
|
2041
2148
|
readonly id: string;
|
|
2042
|
-
readonly name: string;
|
|
2043
2149
|
readonly url?: string | null | undefined;
|
|
2150
|
+
readonly name: string;
|
|
2044
2151
|
readonly avatar?: string | null | undefined;
|
|
2045
2152
|
readonly username: string;
|
|
2046
2153
|
readonly updatedAt: Date;
|
|
@@ -2050,8 +2157,8 @@ export declare const restClient: Effect.Effect<{
|
|
|
2050
2157
|
} | undefined;
|
|
2051
2158
|
readonly contributorsData: readonly {
|
|
2052
2159
|
readonly id: string;
|
|
2053
|
-
readonly name: string;
|
|
2054
2160
|
readonly url?: string | null | undefined;
|
|
2161
|
+
readonly name: string;
|
|
2055
2162
|
readonly avatar?: string | null | undefined;
|
|
2056
2163
|
readonly username: string;
|
|
2057
2164
|
readonly updatedAt: Date;
|
|
@@ -2062,14 +2169,21 @@ export declare const restClient: Effect.Effect<{
|
|
|
2062
2169
|
}[], 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>;
|
|
2063
2170
|
readonly createPage: <WithResponse extends boolean = false>(request: {
|
|
2064
2171
|
readonly payload: {
|
|
2172
|
+
readonly content?: {
|
|
2173
|
+
readonly id?: string | undefined;
|
|
2174
|
+
readonly content?: string | undefined;
|
|
2175
|
+
readonly contentLang?: string | undefined;
|
|
2176
|
+
readonly contentId?: string | undefined;
|
|
2177
|
+
} | undefined;
|
|
2065
2178
|
readonly data?: {
|
|
2066
|
-
readonly description?: string | undefined;
|
|
2067
2179
|
readonly id?: string | undefined;
|
|
2068
|
-
readonly
|
|
2180
|
+
readonly updatedAt?: Date | undefined;
|
|
2181
|
+
readonly description?: string | undefined;
|
|
2182
|
+
readonly title?: string | undefined;
|
|
2069
2183
|
readonly tags?: readonly string[] | undefined;
|
|
2184
|
+
readonly slug?: string | undefined;
|
|
2070
2185
|
readonly categories?: readonly string[] | undefined;
|
|
2071
|
-
readonly
|
|
2072
|
-
readonly updatedAt?: Date | undefined;
|
|
2186
|
+
readonly parentFolder?: string | null | undefined;
|
|
2073
2187
|
readonly package?: string | undefined;
|
|
2074
2188
|
readonly showOnNav?: boolean | undefined;
|
|
2075
2189
|
readonly publishedAt?: Date | undefined;
|
|
@@ -2079,16 +2193,9 @@ export declare const restClient: Effect.Effect<{
|
|
|
2079
2193
|
readonly contributorIds?: readonly string[] | undefined;
|
|
2080
2194
|
readonly showAuthor?: boolean | undefined;
|
|
2081
2195
|
readonly showContributors?: boolean | undefined;
|
|
2082
|
-
readonly parentFolder?: string | null | undefined;
|
|
2083
2196
|
readonly draft?: boolean | undefined;
|
|
2084
2197
|
readonly augments?: readonly string[] | undefined;
|
|
2085
2198
|
} | undefined;
|
|
2086
|
-
readonly content?: {
|
|
2087
|
-
readonly id?: string | undefined;
|
|
2088
|
-
readonly content?: string | undefined;
|
|
2089
|
-
readonly contentLang?: string | undefined;
|
|
2090
|
-
readonly contentId?: string | undefined;
|
|
2091
|
-
} | undefined;
|
|
2092
2199
|
};
|
|
2093
2200
|
readonly withResponse?: WithResponse | undefined;
|
|
2094
2201
|
}) => Effect.Effect<WithResponse extends true ? [{
|
|
@@ -2112,17 +2219,17 @@ export declare const restClient: Effect.Effect<{
|
|
|
2112
2219
|
};
|
|
2113
2220
|
readonly withResponse?: WithResponse | undefined;
|
|
2114
2221
|
}) => Effect.Effect<WithResponse extends true ? [{
|
|
2115
|
-
readonly description: string;
|
|
2116
2222
|
readonly id: number;
|
|
2117
2223
|
readonly name: string;
|
|
2224
|
+
readonly description: string;
|
|
2118
2225
|
readonly slug: string;
|
|
2119
2226
|
readonly meta: {
|
|
2120
2227
|
readonly [x: string]: unknown;
|
|
2121
2228
|
};
|
|
2122
2229
|
}, import("@effect/platform/HttpClientResponse").HttpClientResponse] : {
|
|
2123
|
-
readonly description: string;
|
|
2124
2230
|
readonly id: number;
|
|
2125
2231
|
readonly name: string;
|
|
2232
|
+
readonly description: string;
|
|
2126
2233
|
readonly slug: string;
|
|
2127
2234
|
readonly meta: {
|
|
2128
2235
|
readonly [x: string]: unknown;
|
|
@@ -2133,9 +2240,9 @@ export declare const restClient: Effect.Effect<{
|
|
|
2133
2240
|
readonly id: number;
|
|
2134
2241
|
};
|
|
2135
2242
|
readonly payload: {
|
|
2136
|
-
readonly description?: string | undefined;
|
|
2137
2243
|
readonly id?: number | undefined;
|
|
2138
2244
|
readonly name?: string | undefined;
|
|
2245
|
+
readonly description?: string | undefined;
|
|
2139
2246
|
readonly slug?: string | undefined;
|
|
2140
2247
|
readonly meta?: {
|
|
2141
2248
|
readonly [x: string]: unknown;
|
|
@@ -2143,17 +2250,17 @@ export declare const restClient: Effect.Effect<{
|
|
|
2143
2250
|
};
|
|
2144
2251
|
readonly withResponse?: WithResponse | undefined;
|
|
2145
2252
|
}) => Effect.Effect<WithResponse extends true ? [{
|
|
2146
|
-
readonly description: string;
|
|
2147
2253
|
readonly id: number;
|
|
2148
2254
|
readonly name: string;
|
|
2255
|
+
readonly description: string;
|
|
2149
2256
|
readonly slug: string;
|
|
2150
2257
|
readonly meta: {
|
|
2151
2258
|
readonly [x: string]: unknown;
|
|
2152
2259
|
};
|
|
2153
2260
|
}, import("@effect/platform/HttpClientResponse").HttpClientResponse] : {
|
|
2154
|
-
readonly description: string;
|
|
2155
2261
|
readonly id: number;
|
|
2156
2262
|
readonly name: string;
|
|
2263
|
+
readonly description: string;
|
|
2157
2264
|
readonly slug: string;
|
|
2158
2265
|
readonly meta: {
|
|
2159
2266
|
readonly [x: string]: unknown;
|
|
@@ -2165,17 +2272,17 @@ export declare const restClient: Effect.Effect<{
|
|
|
2165
2272
|
};
|
|
2166
2273
|
readonly withResponse?: WithResponse | undefined;
|
|
2167
2274
|
}) => Effect.Effect<WithResponse extends true ? [readonly {
|
|
2168
|
-
readonly description: string;
|
|
2169
2275
|
readonly id: number;
|
|
2170
2276
|
readonly name: string;
|
|
2277
|
+
readonly description: string;
|
|
2171
2278
|
readonly slug: string;
|
|
2172
2279
|
readonly meta: {
|
|
2173
2280
|
readonly [x: string]: unknown;
|
|
2174
2281
|
};
|
|
2175
2282
|
}[], import("@effect/platform/HttpClientResponse").HttpClientResponse] : readonly {
|
|
2176
|
-
readonly description: string;
|
|
2177
2283
|
readonly id: number;
|
|
2178
2284
|
readonly name: string;
|
|
2285
|
+
readonly description: string;
|
|
2179
2286
|
readonly slug: string;
|
|
2180
2287
|
readonly meta: {
|
|
2181
2288
|
readonly [x: string]: unknown;
|
|
@@ -2183,136 +2290,29 @@ export declare const restClient: Effect.Effect<{
|
|
|
2183
2290
|
}[], 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>;
|
|
2184
2291
|
readonly createTag: <WithResponse extends boolean = false>(request: {
|
|
2185
2292
|
readonly payload: {
|
|
2186
|
-
readonly description: string;
|
|
2187
2293
|
readonly name: string;
|
|
2294
|
+
readonly description: string;
|
|
2188
2295
|
readonly slug: string;
|
|
2189
2296
|
readonly meta: string;
|
|
2190
2297
|
};
|
|
2191
2298
|
readonly withResponse?: WithResponse | undefined;
|
|
2192
2299
|
}) => Effect.Effect<WithResponse extends true ? [{
|
|
2193
|
-
readonly description: string;
|
|
2194
2300
|
readonly id: number;
|
|
2195
2301
|
readonly name: string;
|
|
2302
|
+
readonly description: string;
|
|
2196
2303
|
readonly slug: string;
|
|
2197
2304
|
readonly meta: {
|
|
2198
2305
|
readonly [x: string]: unknown;
|
|
2199
2306
|
};
|
|
2200
2307
|
}, import("@effect/platform/HttpClientResponse").HttpClientResponse] : {
|
|
2201
|
-
readonly description: string;
|
|
2202
2308
|
readonly id: number;
|
|
2203
2309
|
readonly name: string;
|
|
2310
|
+
readonly description: string;
|
|
2204
2311
|
readonly slug: string;
|
|
2205
2312
|
readonly meta: {
|
|
2206
2313
|
readonly [x: string]: unknown;
|
|
2207
2314
|
};
|
|
2208
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>;
|
|
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 name: string;
|
|
2227
|
-
readonly url?: string | null | undefined;
|
|
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 name: string;
|
|
2236
|
-
readonly url?: string | null | undefined;
|
|
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 name: string;
|
|
2252
|
-
readonly url?: string | null | undefined;
|
|
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 name: string;
|
|
2261
|
-
readonly url?: string | null | undefined;
|
|
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 name: string;
|
|
2278
|
-
readonly url?: string | null | undefined;
|
|
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 name: string;
|
|
2287
|
-
readonly url?: string | null | undefined;
|
|
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 name: string;
|
|
2300
|
-
readonly url?: string | null | undefined;
|
|
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 name: string;
|
|
2309
|
-
readonly url?: string | null | undefined;
|
|
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 ? [{
|
|
@@ -2556,12 +2556,13 @@ 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;
|
|
2559
2560
|
readonly description?: string | undefined;
|
|
2560
|
-
readonly
|
|
2561
|
+
readonly title?: string | undefined;
|
|
2561
2562
|
readonly tags?: readonly string[] | undefined;
|
|
2563
|
+
readonly slug?: string | undefined;
|
|
2562
2564
|
readonly categories?: readonly string[] | undefined;
|
|
2563
|
-
readonly
|
|
2564
|
-
readonly updatedAt?: Date | undefined;
|
|
2565
|
+
readonly parentFolder?: string | null | undefined;
|
|
2565
2566
|
readonly package?: string | undefined;
|
|
2566
2567
|
readonly showOnNav?: boolean | undefined;
|
|
2567
2568
|
readonly publishedAt?: Date | undefined;
|
|
@@ -2571,7 +2572,6 @@ export declare const apiClients: {
|
|
|
2571
2572
|
readonly contributorIds?: readonly string[] | undefined;
|
|
2572
2573
|
readonly showAuthor?: boolean | undefined;
|
|
2573
2574
|
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,16 +2583,17 @@ 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;
|
|
2587
2586
|
readonly id: string;
|
|
2588
|
-
readonly slug?: string | undefined;
|
|
2589
|
-
readonly tags?: readonly string[] | undefined;
|
|
2590
|
-
readonly categories?: readonly string[] | undefined;
|
|
2591
|
-
readonly title?: string | undefined;
|
|
2592
2587
|
readonly updatedAt?: Date | undefined;
|
|
2588
|
+
readonly description?: string | undefined;
|
|
2593
2589
|
readonly content: string;
|
|
2594
|
-
readonly
|
|
2595
|
-
readonly
|
|
2590
|
+
readonly title?: string | undefined;
|
|
2591
|
+
readonly tags?: readonly string[] | undefined;
|
|
2592
|
+
readonly slug?: string | undefined;
|
|
2593
|
+
readonly categories?: readonly string[] | undefined;
|
|
2594
|
+
readonly parentFolder?: string | null | undefined;
|
|
2595
|
+
readonly package?: string | undefined;
|
|
2596
|
+
readonly showOnNav?: boolean | undefined;
|
|
2596
2597
|
readonly publishedAt?: Date | undefined;
|
|
2597
2598
|
readonly contentLang?: string | undefined;
|
|
2598
2599
|
readonly heroImage?: string | null | undefined;
|
|
@@ -2600,7 +2601,6 @@ export declare const apiClients: {
|
|
|
2600
2601
|
readonly contributorIds?: readonly string[] | undefined;
|
|
2601
2602
|
readonly showAuthor?: boolean | undefined;
|
|
2602
2603
|
readonly showContributors?: boolean | undefined;
|
|
2603
|
-
readonly parentFolder?: string | null | undefined;
|
|
2604
2604
|
readonly draft?: boolean | undefined;
|
|
2605
2605
|
readonly augments?: readonly string[] | undefined;
|
|
2606
2606
|
readonly contentId: string;
|
|
@@ -2661,7 +2661,7 @@ export declare const apiClients: {
|
|
|
2661
2661
|
readonly revertToDiff: <WithResponse extends boolean = false>(request: {
|
|
2662
2662
|
readonly payload: {
|
|
2663
2663
|
readonly id: string;
|
|
2664
|
-
readonly type: "
|
|
2664
|
+
readonly type: "content" | "data" | "both";
|
|
2665
2665
|
};
|
|
2666
2666
|
readonly withResponse?: WithResponse | undefined;
|
|
2667
2667
|
}) => Effect.Effect<WithResponse extends true ? [{
|
|
@@ -2796,10 +2796,9 @@ 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";
|
|
2800
2799
|
readonly data: {
|
|
2801
|
-
readonly name: string;
|
|
2802
2800
|
readonly url?: string | null | undefined;
|
|
2801
|
+
readonly name: string;
|
|
2803
2802
|
readonly email?: string | null | undefined;
|
|
2804
2803
|
readonly avatar?: string | null | undefined;
|
|
2805
2804
|
readonly username: string;
|
|
@@ -2809,16 +2808,17 @@ export declare const apiClients: {
|
|
|
2809
2808
|
readonly emailVerified: boolean;
|
|
2810
2809
|
readonly notifications?: string | null | undefined;
|
|
2811
2810
|
};
|
|
2811
|
+
readonly mode: "basic";
|
|
2812
2812
|
};
|
|
2813
2813
|
readonly withResponse?: WithResponse | undefined;
|
|
2814
2814
|
} | {
|
|
2815
2815
|
readonly payload: {
|
|
2816
|
-
readonly mode: "password";
|
|
2817
2816
|
readonly data: {
|
|
2818
2817
|
readonly currentPassword: string | null;
|
|
2819
2818
|
readonly newPassword: string;
|
|
2820
2819
|
readonly confirmNewPassword: string;
|
|
2821
2820
|
};
|
|
2821
|
+
readonly mode: "password";
|
|
2822
2822
|
};
|
|
2823
2823
|
readonly withResponse?: WithResponse | undefined;
|
|
2824
2824
|
} | {
|
|
@@ -2868,29 +2868,29 @@ export declare const apiClients: {
|
|
|
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";
|
|
2873
2871
|
readonly id: number;
|
|
2874
2872
|
readonly name: string;
|
|
2873
|
+
readonly description: string;
|
|
2875
2874
|
readonly slug: string;
|
|
2876
2875
|
readonly meta: {
|
|
2877
2876
|
readonly [x: string]: unknown;
|
|
2878
2877
|
};
|
|
2879
2878
|
readonly type: "tags";
|
|
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";
|
|
2886
2884
|
readonly id: number;
|
|
2887
2885
|
readonly name: string;
|
|
2886
|
+
readonly description: string;
|
|
2888
2887
|
readonly slug: string;
|
|
2889
2888
|
readonly meta: {
|
|
2890
2889
|
readonly [x: string]: unknown;
|
|
2891
2890
|
};
|
|
2892
|
-
readonly type: "categories";
|
|
2893
2891
|
readonly parent?: number | null | undefined;
|
|
2892
|
+
readonly type: "categories";
|
|
2893
|
+
readonly mode: "create" | "edit";
|
|
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;
|
|
2916
2915
|
readonly id: number;
|
|
2917
2916
|
readonly name: string;
|
|
2917
|
+
readonly description: string;
|
|
2918
2918
|
readonly slug: string;
|
|
2919
2919
|
readonly meta: {
|
|
2920
2920
|
readonly [x: string]: unknown;
|
|
2921
2921
|
};
|
|
2922
|
-
readonly type: "tag" | "category";
|
|
2923
2922
|
readonly parent: number | null | undefined;
|
|
2923
|
+
readonly type: "tag" | "category";
|
|
2924
2924
|
readonly children: readonly import("@withstudiocms/api-spec/dashboard").TaxonomyNode[];
|
|
2925
2925
|
}[], import("@effect/platform/HttpClientResponse").HttpClientResponse] : readonly {
|
|
2926
|
-
readonly description: string;
|
|
2927
2926
|
readonly id: number;
|
|
2928
2927
|
readonly name: string;
|
|
2928
|
+
readonly description: string;
|
|
2929
2929
|
readonly slug: string;
|
|
2930
2930
|
readonly meta: {
|
|
2931
2931
|
readonly [x: string]: unknown;
|
|
2932
2932
|
};
|
|
2933
|
-
readonly type: "tag" | "category";
|
|
2934
2933
|
readonly parent: number | null | undefined;
|
|
2934
|
+
readonly type: "tag" | "category";
|
|
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
|
};
|
|
@@ -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
3104
|
readonly id: number;
|
|
3105
|
-
readonly type: "query" | "transaction";
|
|
3106
3105
|
readonly error: string;
|
|
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
3150
|
readonly id: number;
|
|
3151
|
-
readonly type: "query" | "transaction";
|
|
3152
3151
|
readonly error: string;
|
|
3152
|
+
readonly type: "query" | "transaction";
|
|
3153
3153
|
}, import("effect/ParseResult").ParseError | import("@effect/platform/HttpApiError").HttpApiDecodeError | import("@withstudiocms/api-spec/astro-context").AstroLocalsMissing | import("@effect/platform/HttpApiError").Unauthorized | import("@withstudiocms/api-spec/integrations").IntegrationsAPIError | 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 identifier: `storage-file://${string}`;
|
|
3159
3158
|
readonly action: "resolveUrl";
|
|
3159
|
+
readonly identifier: `storage-file://${string}`;
|
|
3160
3160
|
};
|
|
3161
3161
|
readonly withResponse?: WithResponse | undefined;
|
|
3162
3162
|
} | {
|
|
@@ -3218,13 +3218,13 @@ export declare const apiClients: {
|
|
|
3218
3218
|
readonly isPermanent: boolean;
|
|
3219
3219
|
readonly expiresAt?: number | undefined;
|
|
3220
3220
|
} | {
|
|
3221
|
-
readonly identifier: `storage-file://${string}`;
|
|
3222
3221
|
readonly url: string;
|
|
3222
|
+
readonly identifier: `storage-file://${string}`;
|
|
3223
3223
|
readonly isPermanent: boolean;
|
|
3224
3224
|
readonly expiresAt?: number | undefined;
|
|
3225
3225
|
} | {
|
|
3226
|
-
readonly key: string;
|
|
3227
3226
|
readonly url: string;
|
|
3227
|
+
readonly key: string;
|
|
3228
3228
|
} | {
|
|
3229
3229
|
readonly files: readonly {
|
|
3230
3230
|
readonly key?: string | undefined;
|
|
@@ -3248,20 +3248,20 @@ export declare const apiClients: {
|
|
|
3248
3248
|
}[];
|
|
3249
3249
|
} | {
|
|
3250
3250
|
readonly message: string;
|
|
3251
|
-
readonly provider: string;
|
|
3252
3251
|
readonly success: boolean;
|
|
3252
|
+
readonly provider: string;
|
|
3253
3253
|
}, import("@effect/platform/HttpClientResponse").HttpClientResponse] : {
|
|
3254
3254
|
readonly url: string;
|
|
3255
3255
|
readonly isPermanent: boolean;
|
|
3256
3256
|
readonly expiresAt?: number | undefined;
|
|
3257
3257
|
} | {
|
|
3258
|
-
readonly identifier: `storage-file://${string}`;
|
|
3259
3258
|
readonly url: string;
|
|
3259
|
+
readonly identifier: `storage-file://${string}`;
|
|
3260
3260
|
readonly isPermanent: boolean;
|
|
3261
3261
|
readonly expiresAt?: number | undefined;
|
|
3262
3262
|
} | {
|
|
3263
|
-
readonly key: string;
|
|
3264
3263
|
readonly url: string;
|
|
3264
|
+
readonly key: string;
|
|
3265
3265
|
} | {
|
|
3266
3266
|
readonly files: readonly {
|
|
3267
3267
|
readonly key?: string | undefined;
|
|
@@ -3285,8 +3285,8 @@ export declare const apiClients: {
|
|
|
3285
3285
|
}[];
|
|
3286
3286
|
} | {
|
|
3287
3287
|
readonly message: string;
|
|
3288
|
-
readonly provider: string;
|
|
3289
3288
|
readonly success: boolean;
|
|
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: {
|
|
3292
3292
|
readonly headers: {
|
|
@@ -3295,16 +3295,60 @@ export declare const apiClients: {
|
|
|
3295
3295
|
readonly payload: Uint8Array<ArrayBufferLike>;
|
|
3296
3296
|
readonly withResponse?: WithResponse | undefined;
|
|
3297
3297
|
}) => Effect.Effect<WithResponse extends true ? [{
|
|
3298
|
-
readonly message: string;
|
|
3299
3298
|
readonly key: string;
|
|
3300
|
-
}, import("@effect/platform/HttpClientResponse").HttpClientResponse] : {
|
|
3301
3299
|
readonly message: string;
|
|
3300
|
+
}, import("@effect/platform/HttpClientResponse").HttpClientResponse] : {
|
|
3302
3301
|
readonly key: string;
|
|
3302
|
+
readonly message: string;
|
|
3303
3303
|
}, 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>;
|
|
3304
3304
|
};
|
|
3305
3305
|
}, never, never>;
|
|
3306
3306
|
rest: Effect.Effect<{
|
|
3307
3307
|
readonly restV1Public: {
|
|
3308
|
+
readonly getTags: <WithResponse extends boolean = false>(request: {
|
|
3309
|
+
readonly urlParams: {
|
|
3310
|
+
readonly name?: string | undefined;
|
|
3311
|
+
};
|
|
3312
|
+
readonly withResponse?: WithResponse | undefined;
|
|
3313
|
+
}) => Effect.Effect<WithResponse extends true ? [readonly {
|
|
3314
|
+
readonly id: number;
|
|
3315
|
+
readonly name: string;
|
|
3316
|
+
readonly description: string;
|
|
3317
|
+
readonly slug: string;
|
|
3318
|
+
readonly meta: {
|
|
3319
|
+
readonly [x: string]: unknown;
|
|
3320
|
+
};
|
|
3321
|
+
}[], import("@effect/platform/HttpClientResponse").HttpClientResponse] : readonly {
|
|
3322
|
+
readonly id: number;
|
|
3323
|
+
readonly name: string;
|
|
3324
|
+
readonly description: string;
|
|
3325
|
+
readonly slug: string;
|
|
3326
|
+
readonly meta: {
|
|
3327
|
+
readonly [x: string]: unknown;
|
|
3328
|
+
};
|
|
3329
|
+
}[], 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>;
|
|
3330
|
+
readonly getTag: <WithResponse extends boolean = false>(request: {
|
|
3331
|
+
readonly path: {
|
|
3332
|
+
readonly id: number;
|
|
3333
|
+
};
|
|
3334
|
+
readonly withResponse?: WithResponse | undefined;
|
|
3335
|
+
}) => Effect.Effect<WithResponse extends true ? [{
|
|
3336
|
+
readonly id: number;
|
|
3337
|
+
readonly name: string;
|
|
3338
|
+
readonly description: string;
|
|
3339
|
+
readonly slug: string;
|
|
3340
|
+
readonly meta: {
|
|
3341
|
+
readonly [x: string]: unknown;
|
|
3342
|
+
};
|
|
3343
|
+
}, import("@effect/platform/HttpClientResponse").HttpClientResponse] : {
|
|
3344
|
+
readonly id: number;
|
|
3345
|
+
readonly name: string;
|
|
3346
|
+
readonly description: string;
|
|
3347
|
+
readonly slug: string;
|
|
3348
|
+
readonly meta: {
|
|
3349
|
+
readonly [x: string]: unknown;
|
|
3350
|
+
};
|
|
3351
|
+
}, 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>;
|
|
3308
3352
|
readonly getCategories: <WithResponse extends boolean = false>(request: {
|
|
3309
3353
|
readonly urlParams: {
|
|
3310
3354
|
readonly name?: string | undefined;
|
|
@@ -3312,18 +3356,18 @@ export declare const apiClients: {
|
|
|
3312
3356
|
};
|
|
3313
3357
|
readonly withResponse?: WithResponse | undefined;
|
|
3314
3358
|
}) => Effect.Effect<WithResponse extends true ? [readonly {
|
|
3315
|
-
readonly description: string;
|
|
3316
3359
|
readonly id: number;
|
|
3317
3360
|
readonly name: string;
|
|
3361
|
+
readonly description: string;
|
|
3318
3362
|
readonly slug: string;
|
|
3319
3363
|
readonly meta: {
|
|
3320
3364
|
readonly [x: string]: unknown;
|
|
3321
3365
|
};
|
|
3322
3366
|
readonly parent?: number | null | undefined;
|
|
3323
3367
|
}[], import("@effect/platform/HttpClientResponse").HttpClientResponse] : readonly {
|
|
3324
|
-
readonly description: string;
|
|
3325
3368
|
readonly id: number;
|
|
3326
3369
|
readonly name: string;
|
|
3370
|
+
readonly description: string;
|
|
3327
3371
|
readonly slug: string;
|
|
3328
3372
|
readonly meta: {
|
|
3329
3373
|
readonly [x: string]: unknown;
|
|
@@ -3336,18 +3380,18 @@ export declare const apiClients: {
|
|
|
3336
3380
|
};
|
|
3337
3381
|
readonly withResponse?: WithResponse | undefined;
|
|
3338
3382
|
}) => Effect.Effect<WithResponse extends true ? [{
|
|
3339
|
-
readonly description: string;
|
|
3340
3383
|
readonly id: number;
|
|
3341
3384
|
readonly name: string;
|
|
3385
|
+
readonly description: string;
|
|
3342
3386
|
readonly slug: string;
|
|
3343
3387
|
readonly meta: {
|
|
3344
3388
|
readonly [x: string]: unknown;
|
|
3345
3389
|
};
|
|
3346
3390
|
readonly parent?: number | null | undefined;
|
|
3347
3391
|
}, import("@effect/platform/HttpClientResponse").HttpClientResponse] : {
|
|
3348
|
-
readonly description: string;
|
|
3349
3392
|
readonly id: number;
|
|
3350
3393
|
readonly name: string;
|
|
3394
|
+
readonly description: string;
|
|
3351
3395
|
readonly slug: string;
|
|
3352
3396
|
readonly meta: {
|
|
3353
3397
|
readonly [x: string]: unknown;
|
|
@@ -3385,37 +3429,38 @@ export declare const apiClients: {
|
|
|
3385
3429
|
}, 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
3430
|
readonly getPages: <WithResponse extends boolean = false>(request: {
|
|
3387
3431
|
readonly urlParams: {
|
|
3388
|
-
readonly slug?: string | undefined;
|
|
3389
3432
|
readonly title?: string | undefined;
|
|
3390
|
-
readonly
|
|
3433
|
+
readonly slug?: string | undefined;
|
|
3391
3434
|
readonly author?: string | undefined;
|
|
3435
|
+
readonly parentFolder?: string | undefined;
|
|
3392
3436
|
};
|
|
3393
3437
|
readonly withResponse?: WithResponse | undefined;
|
|
3394
3438
|
}) => Effect.Effect<WithResponse extends true ? [readonly {
|
|
3395
|
-
readonly description: string;
|
|
3396
3439
|
readonly id: string;
|
|
3397
|
-
readonly
|
|
3440
|
+
readonly updatedAt: Date;
|
|
3441
|
+
readonly description: string;
|
|
3442
|
+
readonly title: string;
|
|
3398
3443
|
readonly tags: readonly {
|
|
3399
|
-
readonly description: string;
|
|
3400
3444
|
readonly id: number;
|
|
3401
3445
|
readonly name: string;
|
|
3446
|
+
readonly description: string;
|
|
3402
3447
|
readonly slug: string;
|
|
3403
3448
|
readonly meta: {
|
|
3404
3449
|
readonly [x: string]: unknown;
|
|
3405
3450
|
};
|
|
3406
3451
|
}[];
|
|
3452
|
+
readonly slug: string;
|
|
3407
3453
|
readonly categories: readonly {
|
|
3408
|
-
readonly description: string;
|
|
3409
3454
|
readonly id: number;
|
|
3410
3455
|
readonly name: string;
|
|
3456
|
+
readonly description: string;
|
|
3411
3457
|
readonly slug: string;
|
|
3412
3458
|
readonly meta: {
|
|
3413
3459
|
readonly [x: string]: unknown;
|
|
3414
3460
|
};
|
|
3415
3461
|
readonly parent?: number | null | undefined;
|
|
3416
3462
|
}[];
|
|
3417
|
-
readonly
|
|
3418
|
-
readonly updatedAt: Date;
|
|
3463
|
+
readonly parentFolder?: string | null | undefined;
|
|
3419
3464
|
readonly package: string;
|
|
3420
3465
|
readonly showOnNav: boolean;
|
|
3421
3466
|
readonly publishedAt: Date;
|
|
@@ -3425,7 +3470,6 @@ export declare const apiClients: {
|
|
|
3425
3470
|
readonly contributorIds: readonly string[];
|
|
3426
3471
|
readonly showAuthor: boolean;
|
|
3427
3472
|
readonly showContributors: boolean;
|
|
3428
|
-
readonly parentFolder?: string | null | undefined;
|
|
3429
3473
|
readonly draft: boolean;
|
|
3430
3474
|
readonly augments: readonly string[];
|
|
3431
3475
|
readonly multiLangContent: readonly {
|
|
@@ -3443,8 +3487,8 @@ export declare const apiClients: {
|
|
|
3443
3487
|
readonly urlRoute: string;
|
|
3444
3488
|
readonly authorData: {
|
|
3445
3489
|
readonly id: string;
|
|
3446
|
-
readonly name: string;
|
|
3447
3490
|
readonly url?: string | null | undefined;
|
|
3491
|
+
readonly name: string;
|
|
3448
3492
|
readonly avatar?: string | null | undefined;
|
|
3449
3493
|
readonly username: string;
|
|
3450
3494
|
readonly updatedAt: Date;
|
|
@@ -3454,8 +3498,8 @@ export declare const apiClients: {
|
|
|
3454
3498
|
} | undefined;
|
|
3455
3499
|
readonly contributorsData: readonly {
|
|
3456
3500
|
readonly id: string;
|
|
3457
|
-
readonly name: string;
|
|
3458
3501
|
readonly url?: string | null | undefined;
|
|
3502
|
+
readonly name: string;
|
|
3459
3503
|
readonly avatar?: string | null | undefined;
|
|
3460
3504
|
readonly username: string;
|
|
3461
3505
|
readonly updatedAt: Date;
|
|
@@ -3464,30 +3508,31 @@ export declare const apiClients: {
|
|
|
3464
3508
|
readonly notifications?: string | null | undefined;
|
|
3465
3509
|
}[];
|
|
3466
3510
|
}[], import("@effect/platform/HttpClientResponse").HttpClientResponse] : readonly {
|
|
3467
|
-
readonly description: string;
|
|
3468
3511
|
readonly id: string;
|
|
3469
|
-
readonly
|
|
3512
|
+
readonly updatedAt: Date;
|
|
3513
|
+
readonly description: string;
|
|
3514
|
+
readonly title: string;
|
|
3470
3515
|
readonly tags: readonly {
|
|
3471
|
-
readonly description: string;
|
|
3472
3516
|
readonly id: number;
|
|
3473
3517
|
readonly name: string;
|
|
3518
|
+
readonly description: string;
|
|
3474
3519
|
readonly slug: string;
|
|
3475
3520
|
readonly meta: {
|
|
3476
3521
|
readonly [x: string]: unknown;
|
|
3477
3522
|
};
|
|
3478
3523
|
}[];
|
|
3524
|
+
readonly slug: string;
|
|
3479
3525
|
readonly categories: readonly {
|
|
3480
|
-
readonly description: string;
|
|
3481
3526
|
readonly id: number;
|
|
3482
3527
|
readonly name: string;
|
|
3528
|
+
readonly description: string;
|
|
3483
3529
|
readonly slug: string;
|
|
3484
3530
|
readonly meta: {
|
|
3485
3531
|
readonly [x: string]: unknown;
|
|
3486
3532
|
};
|
|
3487
3533
|
readonly parent?: number | null | undefined;
|
|
3488
3534
|
}[];
|
|
3489
|
-
readonly
|
|
3490
|
-
readonly updatedAt: Date;
|
|
3535
|
+
readonly parentFolder?: string | null | undefined;
|
|
3491
3536
|
readonly package: string;
|
|
3492
3537
|
readonly showOnNav: boolean;
|
|
3493
3538
|
readonly publishedAt: Date;
|
|
@@ -3497,7 +3542,6 @@ export declare const apiClients: {
|
|
|
3497
3542
|
readonly contributorIds: readonly string[];
|
|
3498
3543
|
readonly showAuthor: boolean;
|
|
3499
3544
|
readonly showContributors: boolean;
|
|
3500
|
-
readonly parentFolder?: string | null | undefined;
|
|
3501
3545
|
readonly draft: boolean;
|
|
3502
3546
|
readonly augments: readonly string[];
|
|
3503
3547
|
readonly multiLangContent: readonly {
|
|
@@ -3515,8 +3559,8 @@ export declare const apiClients: {
|
|
|
3515
3559
|
readonly urlRoute: string;
|
|
3516
3560
|
readonly authorData: {
|
|
3517
3561
|
readonly id: string;
|
|
3518
|
-
readonly name: string;
|
|
3519
3562
|
readonly url?: string | null | undefined;
|
|
3563
|
+
readonly name: string;
|
|
3520
3564
|
readonly avatar?: string | null | undefined;
|
|
3521
3565
|
readonly username: string;
|
|
3522
3566
|
readonly updatedAt: Date;
|
|
@@ -3526,8 +3570,8 @@ export declare const apiClients: {
|
|
|
3526
3570
|
} | undefined;
|
|
3527
3571
|
readonly contributorsData: readonly {
|
|
3528
3572
|
readonly id: string;
|
|
3529
|
-
readonly name: string;
|
|
3530
3573
|
readonly url?: string | null | undefined;
|
|
3574
|
+
readonly name: string;
|
|
3531
3575
|
readonly avatar?: string | null | undefined;
|
|
3532
3576
|
readonly username: string;
|
|
3533
3577
|
readonly updatedAt: Date;
|
|
@@ -3542,30 +3586,31 @@ export declare const apiClients: {
|
|
|
3542
3586
|
};
|
|
3543
3587
|
readonly withResponse?: WithResponse | undefined;
|
|
3544
3588
|
}) => Effect.Effect<WithResponse extends true ? [{
|
|
3545
|
-
readonly description: string;
|
|
3546
3589
|
readonly id: string;
|
|
3547
|
-
readonly
|
|
3590
|
+
readonly updatedAt: Date;
|
|
3591
|
+
readonly description: string;
|
|
3592
|
+
readonly title: string;
|
|
3548
3593
|
readonly tags: readonly {
|
|
3549
|
-
readonly description: string;
|
|
3550
3594
|
readonly id: number;
|
|
3551
3595
|
readonly name: string;
|
|
3596
|
+
readonly description: string;
|
|
3552
3597
|
readonly slug: string;
|
|
3553
3598
|
readonly meta: {
|
|
3554
3599
|
readonly [x: string]: unknown;
|
|
3555
3600
|
};
|
|
3556
3601
|
}[];
|
|
3602
|
+
readonly slug: string;
|
|
3557
3603
|
readonly categories: readonly {
|
|
3558
|
-
readonly description: string;
|
|
3559
3604
|
readonly id: number;
|
|
3560
3605
|
readonly name: string;
|
|
3606
|
+
readonly description: string;
|
|
3561
3607
|
readonly slug: string;
|
|
3562
3608
|
readonly meta: {
|
|
3563
3609
|
readonly [x: string]: unknown;
|
|
3564
3610
|
};
|
|
3565
3611
|
readonly parent?: number | null | undefined;
|
|
3566
3612
|
}[];
|
|
3567
|
-
readonly
|
|
3568
|
-
readonly updatedAt: Date;
|
|
3613
|
+
readonly parentFolder?: string | null | undefined;
|
|
3569
3614
|
readonly package: string;
|
|
3570
3615
|
readonly showOnNav: boolean;
|
|
3571
3616
|
readonly publishedAt: Date;
|
|
@@ -3575,7 +3620,6 @@ export declare const apiClients: {
|
|
|
3575
3620
|
readonly contributorIds: readonly string[];
|
|
3576
3621
|
readonly showAuthor: boolean;
|
|
3577
3622
|
readonly showContributors: boolean;
|
|
3578
|
-
readonly parentFolder?: string | null | undefined;
|
|
3579
3623
|
readonly draft: boolean;
|
|
3580
3624
|
readonly augments: readonly string[];
|
|
3581
3625
|
readonly multiLangContent: readonly {
|
|
@@ -3593,8 +3637,8 @@ export declare const apiClients: {
|
|
|
3593
3637
|
readonly urlRoute: string;
|
|
3594
3638
|
readonly authorData: {
|
|
3595
3639
|
readonly id: string;
|
|
3596
|
-
readonly name: string;
|
|
3597
3640
|
readonly url?: string | null | undefined;
|
|
3641
|
+
readonly name: string;
|
|
3598
3642
|
readonly avatar?: string | null | undefined;
|
|
3599
3643
|
readonly username: string;
|
|
3600
3644
|
readonly updatedAt: Date;
|
|
@@ -3604,8 +3648,8 @@ export declare const apiClients: {
|
|
|
3604
3648
|
} | undefined;
|
|
3605
3649
|
readonly contributorsData: readonly {
|
|
3606
3650
|
readonly id: string;
|
|
3607
|
-
readonly name: string;
|
|
3608
3651
|
readonly url?: string | null | undefined;
|
|
3652
|
+
readonly name: string;
|
|
3609
3653
|
readonly avatar?: string | null | undefined;
|
|
3610
3654
|
readonly username: string;
|
|
3611
3655
|
readonly updatedAt: Date;
|
|
@@ -3614,30 +3658,31 @@ export declare const apiClients: {
|
|
|
3614
3658
|
readonly notifications?: string | null | undefined;
|
|
3615
3659
|
}[];
|
|
3616
3660
|
}, import("@effect/platform/HttpClientResponse").HttpClientResponse] : {
|
|
3617
|
-
readonly description: string;
|
|
3618
3661
|
readonly id: string;
|
|
3619
|
-
readonly
|
|
3662
|
+
readonly updatedAt: Date;
|
|
3663
|
+
readonly description: string;
|
|
3664
|
+
readonly title: string;
|
|
3620
3665
|
readonly tags: readonly {
|
|
3621
|
-
readonly description: string;
|
|
3622
3666
|
readonly id: number;
|
|
3623
3667
|
readonly name: string;
|
|
3668
|
+
readonly description: string;
|
|
3624
3669
|
readonly slug: string;
|
|
3625
3670
|
readonly meta: {
|
|
3626
3671
|
readonly [x: string]: unknown;
|
|
3627
3672
|
};
|
|
3628
3673
|
}[];
|
|
3674
|
+
readonly slug: string;
|
|
3629
3675
|
readonly categories: readonly {
|
|
3630
|
-
readonly description: string;
|
|
3631
3676
|
readonly id: number;
|
|
3632
3677
|
readonly name: string;
|
|
3678
|
+
readonly description: string;
|
|
3633
3679
|
readonly slug: string;
|
|
3634
3680
|
readonly meta: {
|
|
3635
3681
|
readonly [x: string]: unknown;
|
|
3636
3682
|
};
|
|
3637
3683
|
readonly parent?: number | null | undefined;
|
|
3638
3684
|
}[];
|
|
3639
|
-
readonly
|
|
3640
|
-
readonly updatedAt: Date;
|
|
3685
|
+
readonly parentFolder?: string | null | undefined;
|
|
3641
3686
|
readonly package: string;
|
|
3642
3687
|
readonly showOnNav: boolean;
|
|
3643
3688
|
readonly publishedAt: Date;
|
|
@@ -3647,7 +3692,6 @@ export declare const apiClients: {
|
|
|
3647
3692
|
readonly contributorIds: readonly string[];
|
|
3648
3693
|
readonly showAuthor: boolean;
|
|
3649
3694
|
readonly showContributors: boolean;
|
|
3650
|
-
readonly parentFolder?: string | null | undefined;
|
|
3651
3695
|
readonly draft: boolean;
|
|
3652
3696
|
readonly augments: readonly string[];
|
|
3653
3697
|
readonly multiLangContent: readonly {
|
|
@@ -3665,8 +3709,8 @@ export declare const apiClients: {
|
|
|
3665
3709
|
readonly urlRoute: string;
|
|
3666
3710
|
readonly authorData: {
|
|
3667
3711
|
readonly id: string;
|
|
3668
|
-
readonly name: string;
|
|
3669
3712
|
readonly url?: string | null | undefined;
|
|
3713
|
+
readonly name: string;
|
|
3670
3714
|
readonly avatar?: string | null | undefined;
|
|
3671
3715
|
readonly username: string;
|
|
3672
3716
|
readonly updatedAt: Date;
|
|
@@ -3676,8 +3720,8 @@ export declare const apiClients: {
|
|
|
3676
3720
|
} | undefined;
|
|
3677
3721
|
readonly contributorsData: readonly {
|
|
3678
3722
|
readonly id: string;
|
|
3679
|
-
readonly name: string;
|
|
3680
3723
|
readonly url?: string | null | undefined;
|
|
3724
|
+
readonly name: string;
|
|
3681
3725
|
readonly avatar?: string | null | undefined;
|
|
3682
3726
|
readonly username: string;
|
|
3683
3727
|
readonly updatedAt: Date;
|
|
@@ -3686,173 +3730,236 @@ export declare const apiClients: {
|
|
|
3686
3730
|
readonly notifications?: string | null | undefined;
|
|
3687
3731
|
}[];
|
|
3688
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>;
|
|
3689
|
-
|
|
3733
|
+
};
|
|
3734
|
+
readonly restV1: {
|
|
3735
|
+
readonly getUsers: <WithResponse extends boolean = false>(request: {
|
|
3690
3736
|
readonly urlParams: {
|
|
3691
3737
|
readonly name?: string | undefined;
|
|
3738
|
+
readonly username?: string | undefined;
|
|
3739
|
+
readonly rank?: string | undefined;
|
|
3692
3740
|
};
|
|
3693
3741
|
readonly withResponse?: WithResponse | undefined;
|
|
3694
3742
|
}) => Effect.Effect<WithResponse extends true ? [readonly {
|
|
3695
|
-
readonly
|
|
3696
|
-
readonly
|
|
3743
|
+
readonly id: string;
|
|
3744
|
+
readonly url?: string | null | undefined;
|
|
3697
3745
|
readonly name: string;
|
|
3698
|
-
readonly
|
|
3699
|
-
readonly
|
|
3700
|
-
|
|
3701
|
-
|
|
3746
|
+
readonly email?: string | null | undefined;
|
|
3747
|
+
readonly avatar?: string | null | undefined;
|
|
3748
|
+
readonly username: string;
|
|
3749
|
+
readonly updatedAt: Date;
|
|
3750
|
+
readonly createdAt: Date;
|
|
3702
3751
|
}[], import("@effect/platform/HttpClientResponse").HttpClientResponse] : readonly {
|
|
3703
|
-
readonly
|
|
3704
|
-
readonly
|
|
3752
|
+
readonly id: string;
|
|
3753
|
+
readonly url?: string | null | undefined;
|
|
3705
3754
|
readonly name: string;
|
|
3706
|
-
readonly
|
|
3707
|
-
readonly
|
|
3708
|
-
|
|
3709
|
-
|
|
3710
|
-
|
|
3711
|
-
|
|
3712
|
-
|
|
3713
|
-
|
|
3714
|
-
};
|
|
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;
|
|
3715
3763
|
readonly withResponse?: WithResponse | undefined;
|
|
3716
3764
|
}) => Effect.Effect<WithResponse extends true ? [{
|
|
3717
|
-
readonly
|
|
3718
|
-
readonly
|
|
3765
|
+
readonly id: string;
|
|
3766
|
+
readonly url?: string | null | undefined;
|
|
3719
3767
|
readonly name: string;
|
|
3720
|
-
readonly
|
|
3721
|
-
readonly
|
|
3722
|
-
|
|
3723
|
-
|
|
3768
|
+
readonly email?: string | null | undefined;
|
|
3769
|
+
readonly avatar?: string | null | undefined;
|
|
3770
|
+
readonly username: string;
|
|
3771
|
+
readonly updatedAt: Date;
|
|
3772
|
+
readonly createdAt: Date;
|
|
3724
3773
|
}, import("@effect/platform/HttpClientResponse").HttpClientResponse] : {
|
|
3725
|
-
readonly
|
|
3726
|
-
readonly
|
|
3774
|
+
readonly id: string;
|
|
3775
|
+
readonly url?: string | null | undefined;
|
|
3727
3776
|
readonly name: string;
|
|
3728
|
-
readonly
|
|
3729
|
-
readonly
|
|
3730
|
-
|
|
3731
|
-
|
|
3732
|
-
|
|
3733
|
-
|
|
3734
|
-
|
|
3735
|
-
|
|
3736
|
-
|
|
3737
|
-
readonly name?: string | undefined;
|
|
3738
|
-
readonly parent?: number | undefined;
|
|
3777
|
+
readonly email?: string | null | undefined;
|
|
3778
|
+
readonly avatar?: string | null | undefined;
|
|
3779
|
+
readonly username: string;
|
|
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: {
|
|
3784
|
+
readonly path: {
|
|
3785
|
+
readonly id: string;
|
|
3739
3786
|
};
|
|
3740
3787
|
readonly withResponse?: WithResponse | undefined;
|
|
3741
|
-
}) => Effect.Effect<WithResponse extends true ? [
|
|
3742
|
-
readonly
|
|
3788
|
+
}) => Effect.Effect<WithResponse extends true ? [{
|
|
3789
|
+
readonly id: string;
|
|
3790
|
+
readonly url?: string | null | undefined;
|
|
3791
|
+
readonly name: string;
|
|
3792
|
+
readonly email?: string | null | undefined;
|
|
3793
|
+
readonly avatar?: string | null | undefined;
|
|
3794
|
+
readonly username: string;
|
|
3795
|
+
readonly updatedAt: Date;
|
|
3796
|
+
readonly createdAt: Date;
|
|
3797
|
+
}, import("@effect/platform/HttpClientResponse").HttpClientResponse] : {
|
|
3798
|
+
readonly id: string;
|
|
3799
|
+
readonly url?: string | null | undefined;
|
|
3800
|
+
readonly name: string;
|
|
3801
|
+
readonly email?: string | null | undefined;
|
|
3802
|
+
readonly avatar?: string | null | undefined;
|
|
3803
|
+
readonly username: string;
|
|
3804
|
+
readonly updatedAt: Date;
|
|
3805
|
+
readonly createdAt: Date;
|
|
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;
|
|
3810
|
+
};
|
|
3811
|
+
readonly payload: import("node_modules/@withstudiocms/api-spec/dist/rest-api/schemas.d.mts").RestUsersIdJSONData;
|
|
3812
|
+
readonly withResponse?: WithResponse | undefined;
|
|
3813
|
+
}) => Effect.Effect<WithResponse extends true ? [{
|
|
3814
|
+
readonly id: string;
|
|
3815
|
+
readonly url?: string | null | undefined;
|
|
3816
|
+
readonly name: string;
|
|
3817
|
+
readonly email?: string | null | undefined;
|
|
3818
|
+
readonly avatar?: string | null | undefined;
|
|
3819
|
+
readonly username: string;
|
|
3820
|
+
readonly updatedAt: Date;
|
|
3821
|
+
readonly createdAt: Date;
|
|
3822
|
+
}, import("@effect/platform/HttpClientResponse").HttpClientResponse] : {
|
|
3823
|
+
readonly id: string;
|
|
3824
|
+
readonly url?: string | null | undefined;
|
|
3825
|
+
readonly name: string;
|
|
3826
|
+
readonly email?: string | null | undefined;
|
|
3827
|
+
readonly avatar?: string | null | undefined;
|
|
3828
|
+
readonly username: string;
|
|
3829
|
+
readonly updatedAt: Date;
|
|
3830
|
+
readonly createdAt: Date;
|
|
3831
|
+
}, 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>;
|
|
3832
|
+
readonly deleteUser: <WithResponse extends boolean = false>(request: {
|
|
3833
|
+
readonly path: {
|
|
3834
|
+
readonly id: string;
|
|
3835
|
+
};
|
|
3836
|
+
readonly withResponse?: WithResponse | undefined;
|
|
3837
|
+
}) => Effect.Effect<WithResponse extends true ? [{
|
|
3838
|
+
readonly message: string;
|
|
3839
|
+
}, import("@effect/platform/HttpClientResponse").HttpClientResponse] : {
|
|
3840
|
+
readonly message: string;
|
|
3841
|
+
}, 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>;
|
|
3842
|
+
readonly deleteCategory: <WithResponse extends boolean = false>(request: {
|
|
3843
|
+
readonly path: {
|
|
3844
|
+
readonly id: number;
|
|
3845
|
+
};
|
|
3846
|
+
readonly withResponse?: WithResponse | undefined;
|
|
3847
|
+
}) => Effect.Effect<WithResponse extends true ? [{
|
|
3848
|
+
readonly success: boolean;
|
|
3849
|
+
}, import("@effect/platform/HttpClientResponse").HttpClientResponse] : {
|
|
3850
|
+
readonly success: boolean;
|
|
3851
|
+
}, 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>;
|
|
3852
|
+
readonly getCategory: <WithResponse extends boolean = false>(request: {
|
|
3853
|
+
readonly path: {
|
|
3854
|
+
readonly id: number;
|
|
3855
|
+
};
|
|
3856
|
+
readonly withResponse?: WithResponse | undefined;
|
|
3857
|
+
}) => Effect.Effect<WithResponse extends true ? [{
|
|
3743
3858
|
readonly id: number;
|
|
3744
3859
|
readonly name: string;
|
|
3860
|
+
readonly description: string;
|
|
3745
3861
|
readonly slug: string;
|
|
3746
3862
|
readonly meta: {
|
|
3747
3863
|
readonly [x: string]: unknown;
|
|
3748
3864
|
};
|
|
3749
3865
|
readonly parent?: number | null | undefined;
|
|
3750
|
-
}
|
|
3751
|
-
readonly description: string;
|
|
3866
|
+
}, import("@effect/platform/HttpClientResponse").HttpClientResponse] : {
|
|
3752
3867
|
readonly id: number;
|
|
3753
3868
|
readonly name: string;
|
|
3869
|
+
readonly description: string;
|
|
3754
3870
|
readonly slug: string;
|
|
3755
3871
|
readonly meta: {
|
|
3756
3872
|
readonly [x: string]: unknown;
|
|
3757
3873
|
};
|
|
3758
3874
|
readonly parent?: number | null | undefined;
|
|
3759
|
-
}
|
|
3760
|
-
readonly
|
|
3875
|
+
}, 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
|
+
readonly updateCategory: <WithResponse extends boolean = false>(request: {
|
|
3877
|
+
readonly path: {
|
|
3878
|
+
readonly id: number;
|
|
3879
|
+
};
|
|
3761
3880
|
readonly payload: {
|
|
3762
|
-
readonly
|
|
3763
|
-
readonly name
|
|
3764
|
-
readonly
|
|
3765
|
-
readonly
|
|
3881
|
+
readonly id?: number | undefined;
|
|
3882
|
+
readonly name?: string | undefined;
|
|
3883
|
+
readonly description?: string | undefined;
|
|
3884
|
+
readonly slug?: string | undefined;
|
|
3885
|
+
readonly meta?: {
|
|
3886
|
+
readonly [x: string]: unknown;
|
|
3887
|
+
} | undefined;
|
|
3766
3888
|
readonly parent?: number | null | undefined;
|
|
3767
3889
|
};
|
|
3768
3890
|
readonly withResponse?: WithResponse | undefined;
|
|
3769
3891
|
}) => Effect.Effect<WithResponse extends true ? [{
|
|
3770
|
-
readonly description: string;
|
|
3771
3892
|
readonly id: number;
|
|
3772
3893
|
readonly name: string;
|
|
3894
|
+
readonly description: string;
|
|
3773
3895
|
readonly slug: string;
|
|
3774
3896
|
readonly meta: {
|
|
3775
3897
|
readonly [x: string]: unknown;
|
|
3776
3898
|
};
|
|
3777
3899
|
readonly parent?: number | null | undefined;
|
|
3778
3900
|
}, import("@effect/platform/HttpClientResponse").HttpClientResponse] : {
|
|
3779
|
-
readonly description: string;
|
|
3780
3901
|
readonly id: number;
|
|
3781
3902
|
readonly name: string;
|
|
3903
|
+
readonly description: string;
|
|
3782
3904
|
readonly slug: string;
|
|
3783
3905
|
readonly meta: {
|
|
3784
3906
|
readonly [x: string]: unknown;
|
|
3785
3907
|
};
|
|
3786
3908
|
readonly parent?: number | null | undefined;
|
|
3787
3909
|
}, 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>;
|
|
3788
|
-
readonly
|
|
3789
|
-
readonly
|
|
3790
|
-
readonly
|
|
3910
|
+
readonly getCategories: <WithResponse extends boolean = false>(request: {
|
|
3911
|
+
readonly urlParams: {
|
|
3912
|
+
readonly name?: string | undefined;
|
|
3913
|
+
readonly parent?: number | undefined;
|
|
3791
3914
|
};
|
|
3792
3915
|
readonly withResponse?: WithResponse | undefined;
|
|
3793
|
-
}) => Effect.Effect<WithResponse extends true ? [{
|
|
3794
|
-
readonly description: string;
|
|
3916
|
+
}) => Effect.Effect<WithResponse extends true ? [readonly {
|
|
3795
3917
|
readonly id: number;
|
|
3796
3918
|
readonly name: string;
|
|
3919
|
+
readonly description: string;
|
|
3797
3920
|
readonly slug: string;
|
|
3798
3921
|
readonly meta: {
|
|
3799
3922
|
readonly [x: string]: unknown;
|
|
3800
3923
|
};
|
|
3801
3924
|
readonly parent?: number | null | undefined;
|
|
3802
|
-
}, import("@effect/platform/HttpClientResponse").HttpClientResponse] : {
|
|
3803
|
-
readonly description: string;
|
|
3925
|
+
}[], import("@effect/platform/HttpClientResponse").HttpClientResponse] : readonly {
|
|
3804
3926
|
readonly id: number;
|
|
3805
3927
|
readonly name: string;
|
|
3928
|
+
readonly description: string;
|
|
3806
3929
|
readonly slug: string;
|
|
3807
3930
|
readonly meta: {
|
|
3808
3931
|
readonly [x: string]: unknown;
|
|
3809
3932
|
};
|
|
3810
3933
|
readonly parent?: number | null | undefined;
|
|
3811
|
-
}, 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>;
|
|
3812
|
-
readonly
|
|
3813
|
-
readonly path: {
|
|
3814
|
-
readonly id: number;
|
|
3815
|
-
};
|
|
3934
|
+
}[], 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
|
+
readonly createCategory: <WithResponse extends boolean = false>(request: {
|
|
3816
3936
|
readonly payload: {
|
|
3817
|
-
readonly
|
|
3818
|
-
readonly
|
|
3819
|
-
readonly
|
|
3820
|
-
readonly
|
|
3821
|
-
readonly meta?: {
|
|
3822
|
-
readonly [x: string]: unknown;
|
|
3823
|
-
} | undefined;
|
|
3937
|
+
readonly name: string;
|
|
3938
|
+
readonly description: string;
|
|
3939
|
+
readonly slug: string;
|
|
3940
|
+
readonly meta: string;
|
|
3824
3941
|
readonly parent?: number | null | undefined;
|
|
3825
3942
|
};
|
|
3826
3943
|
readonly withResponse?: WithResponse | undefined;
|
|
3827
3944
|
}) => Effect.Effect<WithResponse extends true ? [{
|
|
3828
|
-
readonly description: string;
|
|
3829
3945
|
readonly id: number;
|
|
3830
3946
|
readonly name: string;
|
|
3947
|
+
readonly description: string;
|
|
3831
3948
|
readonly slug: string;
|
|
3832
3949
|
readonly meta: {
|
|
3833
3950
|
readonly [x: string]: unknown;
|
|
3834
3951
|
};
|
|
3835
3952
|
readonly parent?: number | null | undefined;
|
|
3836
3953
|
}, import("@effect/platform/HttpClientResponse").HttpClientResponse] : {
|
|
3837
|
-
readonly description: string;
|
|
3838
3954
|
readonly id: number;
|
|
3839
3955
|
readonly name: string;
|
|
3956
|
+
readonly description: string;
|
|
3840
3957
|
readonly slug: string;
|
|
3841
3958
|
readonly meta: {
|
|
3842
3959
|
readonly [x: string]: unknown;
|
|
3843
3960
|
};
|
|
3844
3961
|
readonly parent?: number | null | undefined;
|
|
3845
3962
|
}, 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>;
|
|
3846
|
-
readonly deleteCategory: <WithResponse extends boolean = false>(request: {
|
|
3847
|
-
readonly path: {
|
|
3848
|
-
readonly id: number;
|
|
3849
|
-
};
|
|
3850
|
-
readonly withResponse?: WithResponse | undefined;
|
|
3851
|
-
}) => Effect.Effect<WithResponse extends true ? [{
|
|
3852
|
-
readonly success: boolean;
|
|
3853
|
-
}, import("@effect/platform/HttpClientResponse").HttpClientResponse] : {
|
|
3854
|
-
readonly success: boolean;
|
|
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>;
|
|
3856
3963
|
readonly deleteFolder: <WithResponse extends boolean = false>(request: {
|
|
3857
3964
|
readonly path: {
|
|
3858
3965
|
readonly id: string;
|
|
@@ -3933,30 +4040,31 @@ export declare const apiClients: {
|
|
|
3933
4040
|
};
|
|
3934
4041
|
readonly withResponse?: WithResponse | undefined;
|
|
3935
4042
|
}) => Effect.Effect<WithResponse extends true ? [{
|
|
3936
|
-
readonly description: string;
|
|
3937
4043
|
readonly id: string;
|
|
3938
|
-
readonly
|
|
4044
|
+
readonly updatedAt: Date;
|
|
4045
|
+
readonly description: string;
|
|
4046
|
+
readonly title: string;
|
|
3939
4047
|
readonly tags: readonly {
|
|
3940
|
-
readonly description: string;
|
|
3941
4048
|
readonly id: number;
|
|
3942
4049
|
readonly name: string;
|
|
4050
|
+
readonly description: string;
|
|
3943
4051
|
readonly slug: string;
|
|
3944
4052
|
readonly meta: {
|
|
3945
4053
|
readonly [x: string]: unknown;
|
|
3946
4054
|
};
|
|
3947
4055
|
}[];
|
|
4056
|
+
readonly slug: string;
|
|
3948
4057
|
readonly categories: readonly {
|
|
3949
|
-
readonly description: string;
|
|
3950
4058
|
readonly id: number;
|
|
3951
4059
|
readonly name: string;
|
|
4060
|
+
readonly description: string;
|
|
3952
4061
|
readonly slug: string;
|
|
3953
4062
|
readonly meta: {
|
|
3954
4063
|
readonly [x: string]: unknown;
|
|
3955
4064
|
};
|
|
3956
4065
|
readonly parent?: number | null | undefined;
|
|
3957
4066
|
}[];
|
|
3958
|
-
readonly
|
|
3959
|
-
readonly updatedAt: Date;
|
|
4067
|
+
readonly parentFolder?: string | null | undefined;
|
|
3960
4068
|
readonly package: string;
|
|
3961
4069
|
readonly showOnNav: boolean;
|
|
3962
4070
|
readonly publishedAt: Date;
|
|
@@ -3966,7 +4074,6 @@ export declare const apiClients: {
|
|
|
3966
4074
|
readonly contributorIds: readonly string[];
|
|
3967
4075
|
readonly showAuthor: boolean;
|
|
3968
4076
|
readonly showContributors: boolean;
|
|
3969
|
-
readonly parentFolder?: string | null | undefined;
|
|
3970
4077
|
readonly draft: boolean;
|
|
3971
4078
|
readonly augments: readonly string[];
|
|
3972
4079
|
readonly multiLangContent: readonly {
|
|
@@ -3984,8 +4091,8 @@ export declare const apiClients: {
|
|
|
3984
4091
|
readonly urlRoute: string;
|
|
3985
4092
|
readonly authorData: {
|
|
3986
4093
|
readonly id: string;
|
|
3987
|
-
readonly name: string;
|
|
3988
4094
|
readonly url?: string | null | undefined;
|
|
4095
|
+
readonly name: string;
|
|
3989
4096
|
readonly avatar?: string | null | undefined;
|
|
3990
4097
|
readonly username: string;
|
|
3991
4098
|
readonly updatedAt: Date;
|
|
@@ -3995,8 +4102,8 @@ export declare const apiClients: {
|
|
|
3995
4102
|
} | undefined;
|
|
3996
4103
|
readonly contributorsData: readonly {
|
|
3997
4104
|
readonly id: string;
|
|
3998
|
-
readonly name: string;
|
|
3999
4105
|
readonly url?: string | null | undefined;
|
|
4106
|
+
readonly name: string;
|
|
4000
4107
|
readonly avatar?: string | null | undefined;
|
|
4001
4108
|
readonly username: string;
|
|
4002
4109
|
readonly updatedAt: Date;
|
|
@@ -4005,30 +4112,31 @@ export declare const apiClients: {
|
|
|
4005
4112
|
readonly notifications?: string | null | undefined;
|
|
4006
4113
|
}[];
|
|
4007
4114
|
}, import("@effect/platform/HttpClientResponse").HttpClientResponse] : {
|
|
4008
|
-
readonly description: string;
|
|
4009
4115
|
readonly id: string;
|
|
4010
|
-
readonly
|
|
4116
|
+
readonly updatedAt: Date;
|
|
4117
|
+
readonly description: string;
|
|
4118
|
+
readonly title: string;
|
|
4011
4119
|
readonly tags: readonly {
|
|
4012
|
-
readonly description: string;
|
|
4013
4120
|
readonly id: number;
|
|
4014
4121
|
readonly name: string;
|
|
4122
|
+
readonly description: string;
|
|
4015
4123
|
readonly slug: string;
|
|
4016
4124
|
readonly meta: {
|
|
4017
4125
|
readonly [x: string]: unknown;
|
|
4018
4126
|
};
|
|
4019
4127
|
}[];
|
|
4128
|
+
readonly slug: string;
|
|
4020
4129
|
readonly categories: readonly {
|
|
4021
|
-
readonly description: string;
|
|
4022
4130
|
readonly id: number;
|
|
4023
4131
|
readonly name: string;
|
|
4132
|
+
readonly description: string;
|
|
4024
4133
|
readonly slug: string;
|
|
4025
4134
|
readonly meta: {
|
|
4026
4135
|
readonly [x: string]: unknown;
|
|
4027
4136
|
};
|
|
4028
4137
|
readonly parent?: number | null | undefined;
|
|
4029
4138
|
}[];
|
|
4030
|
-
readonly
|
|
4031
|
-
readonly updatedAt: Date;
|
|
4139
|
+
readonly parentFolder?: string | null | undefined;
|
|
4032
4140
|
readonly package: string;
|
|
4033
4141
|
readonly showOnNav: boolean;
|
|
4034
4142
|
readonly publishedAt: Date;
|
|
@@ -4038,7 +4146,6 @@ export declare const apiClients: {
|
|
|
4038
4146
|
readonly contributorIds: readonly string[];
|
|
4039
4147
|
readonly showAuthor: boolean;
|
|
4040
4148
|
readonly showContributors: boolean;
|
|
4041
|
-
readonly parentFolder?: string | null | undefined;
|
|
4042
4149
|
readonly draft: boolean;
|
|
4043
4150
|
readonly augments: readonly string[];
|
|
4044
4151
|
readonly multiLangContent: readonly {
|
|
@@ -4056,8 +4163,8 @@ export declare const apiClients: {
|
|
|
4056
4163
|
readonly urlRoute: string;
|
|
4057
4164
|
readonly authorData: {
|
|
4058
4165
|
readonly id: string;
|
|
4059
|
-
readonly name: string;
|
|
4060
4166
|
readonly url?: string | null | undefined;
|
|
4167
|
+
readonly name: string;
|
|
4061
4168
|
readonly avatar?: string | null | undefined;
|
|
4062
4169
|
readonly username: string;
|
|
4063
4170
|
readonly updatedAt: Date;
|
|
@@ -4067,8 +4174,8 @@ export declare const apiClients: {
|
|
|
4067
4174
|
} | undefined;
|
|
4068
4175
|
readonly contributorsData: readonly {
|
|
4069
4176
|
readonly id: string;
|
|
4070
|
-
readonly name: string;
|
|
4071
4177
|
readonly url?: string | null | undefined;
|
|
4178
|
+
readonly name: string;
|
|
4072
4179
|
readonly avatar?: string | null | undefined;
|
|
4073
4180
|
readonly username: string;
|
|
4074
4181
|
readonly updatedAt: Date;
|
|
@@ -4092,13 +4199,14 @@ export declare const apiClients: {
|
|
|
4092
4199
|
readonly diff: string | null;
|
|
4093
4200
|
readonly pageMetaData: {
|
|
4094
4201
|
readonly start: {
|
|
4095
|
-
readonly description: string;
|
|
4096
4202
|
readonly id: string;
|
|
4097
|
-
readonly
|
|
4203
|
+
readonly updatedAt: Date;
|
|
4204
|
+
readonly description: string;
|
|
4205
|
+
readonly title: string;
|
|
4098
4206
|
readonly tags: readonly string[];
|
|
4207
|
+
readonly slug: string;
|
|
4099
4208
|
readonly categories: readonly string[];
|
|
4100
|
-
readonly
|
|
4101
|
-
readonly updatedAt: Date;
|
|
4209
|
+
readonly parentFolder?: string | null | undefined;
|
|
4102
4210
|
readonly package: string;
|
|
4103
4211
|
readonly showOnNav: boolean;
|
|
4104
4212
|
readonly publishedAt: Date;
|
|
@@ -4108,18 +4216,18 @@ export declare const apiClients: {
|
|
|
4108
4216
|
readonly contributorIds: readonly string[];
|
|
4109
4217
|
readonly showAuthor: boolean;
|
|
4110
4218
|
readonly showContributors: boolean;
|
|
4111
|
-
readonly parentFolder?: string | null | undefined;
|
|
4112
4219
|
readonly draft: boolean;
|
|
4113
4220
|
readonly augments: readonly string[];
|
|
4114
4221
|
};
|
|
4115
4222
|
readonly end: {
|
|
4116
|
-
readonly description: string;
|
|
4117
4223
|
readonly id: string;
|
|
4118
|
-
readonly
|
|
4224
|
+
readonly updatedAt: Date;
|
|
4225
|
+
readonly description: string;
|
|
4226
|
+
readonly title: string;
|
|
4119
4227
|
readonly tags: readonly string[];
|
|
4228
|
+
readonly slug: string;
|
|
4120
4229
|
readonly categories: readonly string[];
|
|
4121
|
-
readonly
|
|
4122
|
-
readonly updatedAt: Date;
|
|
4230
|
+
readonly parentFolder?: string | null | undefined;
|
|
4123
4231
|
readonly package: string;
|
|
4124
4232
|
readonly showOnNav: boolean;
|
|
4125
4233
|
readonly publishedAt: Date;
|
|
@@ -4129,7 +4237,6 @@ export declare const apiClients: {
|
|
|
4129
4237
|
readonly contributorIds: readonly string[];
|
|
4130
4238
|
readonly showAuthor: boolean;
|
|
4131
4239
|
readonly showContributors: boolean;
|
|
4132
|
-
readonly parentFolder?: string | null | undefined;
|
|
4133
4240
|
readonly draft: boolean;
|
|
4134
4241
|
readonly augments: readonly string[];
|
|
4135
4242
|
};
|
|
@@ -4143,13 +4250,14 @@ export declare const apiClients: {
|
|
|
4143
4250
|
readonly diff: string | null;
|
|
4144
4251
|
readonly pageMetaData: {
|
|
4145
4252
|
readonly start: {
|
|
4146
|
-
readonly description: string;
|
|
4147
4253
|
readonly id: string;
|
|
4148
|
-
readonly
|
|
4254
|
+
readonly updatedAt: Date;
|
|
4255
|
+
readonly description: string;
|
|
4256
|
+
readonly title: string;
|
|
4149
4257
|
readonly tags: readonly string[];
|
|
4258
|
+
readonly slug: string;
|
|
4150
4259
|
readonly categories: readonly string[];
|
|
4151
|
-
readonly
|
|
4152
|
-
readonly updatedAt: Date;
|
|
4260
|
+
readonly parentFolder?: string | null | undefined;
|
|
4153
4261
|
readonly package: string;
|
|
4154
4262
|
readonly showOnNav: boolean;
|
|
4155
4263
|
readonly publishedAt: Date;
|
|
@@ -4159,18 +4267,18 @@ export declare const apiClients: {
|
|
|
4159
4267
|
readonly contributorIds: readonly string[];
|
|
4160
4268
|
readonly showAuthor: boolean;
|
|
4161
4269
|
readonly showContributors: boolean;
|
|
4162
|
-
readonly parentFolder?: string | null | undefined;
|
|
4163
4270
|
readonly draft: boolean;
|
|
4164
4271
|
readonly augments: readonly string[];
|
|
4165
4272
|
};
|
|
4166
4273
|
readonly end: {
|
|
4167
|
-
readonly description: string;
|
|
4168
4274
|
readonly id: string;
|
|
4169
|
-
readonly
|
|
4275
|
+
readonly updatedAt: Date;
|
|
4276
|
+
readonly description: string;
|
|
4277
|
+
readonly title: string;
|
|
4170
4278
|
readonly tags: readonly string[];
|
|
4279
|
+
readonly slug: string;
|
|
4171
4280
|
readonly categories: readonly string[];
|
|
4172
|
-
readonly
|
|
4173
|
-
readonly updatedAt: Date;
|
|
4281
|
+
readonly parentFolder?: string | null | undefined;
|
|
4174
4282
|
readonly package: string;
|
|
4175
4283
|
readonly showOnNav: boolean;
|
|
4176
4284
|
readonly publishedAt: Date;
|
|
@@ -4180,7 +4288,6 @@ export declare const apiClients: {
|
|
|
4180
4288
|
readonly contributorIds: readonly string[];
|
|
4181
4289
|
readonly showAuthor: boolean;
|
|
4182
4290
|
readonly showContributors: boolean;
|
|
4183
|
-
readonly parentFolder?: string | null | undefined;
|
|
4184
4291
|
readonly draft: boolean;
|
|
4185
4292
|
readonly augments: readonly string[];
|
|
4186
4293
|
};
|
|
@@ -4203,13 +4310,14 @@ export declare const apiClients: {
|
|
|
4203
4310
|
readonly diff: string | null;
|
|
4204
4311
|
readonly pageMetaData: {
|
|
4205
4312
|
readonly start: {
|
|
4206
|
-
readonly description: string;
|
|
4207
4313
|
readonly id: string;
|
|
4208
|
-
readonly
|
|
4314
|
+
readonly updatedAt: Date;
|
|
4315
|
+
readonly description: string;
|
|
4316
|
+
readonly title: string;
|
|
4209
4317
|
readonly tags: readonly string[];
|
|
4318
|
+
readonly slug: string;
|
|
4210
4319
|
readonly categories: readonly string[];
|
|
4211
|
-
readonly
|
|
4212
|
-
readonly updatedAt: Date;
|
|
4320
|
+
readonly parentFolder?: string | null | undefined;
|
|
4213
4321
|
readonly package: string;
|
|
4214
4322
|
readonly showOnNav: boolean;
|
|
4215
4323
|
readonly publishedAt: Date;
|
|
@@ -4219,18 +4327,18 @@ export declare const apiClients: {
|
|
|
4219
4327
|
readonly contributorIds: readonly string[];
|
|
4220
4328
|
readonly showAuthor: boolean;
|
|
4221
4329
|
readonly showContributors: boolean;
|
|
4222
|
-
readonly parentFolder?: string | null | undefined;
|
|
4223
4330
|
readonly draft: boolean;
|
|
4224
4331
|
readonly augments: readonly string[];
|
|
4225
4332
|
};
|
|
4226
4333
|
readonly end: {
|
|
4227
|
-
readonly description: string;
|
|
4228
4334
|
readonly id: string;
|
|
4229
|
-
readonly
|
|
4335
|
+
readonly updatedAt: Date;
|
|
4336
|
+
readonly description: string;
|
|
4337
|
+
readonly title: string;
|
|
4230
4338
|
readonly tags: readonly string[];
|
|
4339
|
+
readonly slug: string;
|
|
4231
4340
|
readonly categories: readonly string[];
|
|
4232
|
-
readonly
|
|
4233
|
-
readonly updatedAt: Date;
|
|
4341
|
+
readonly parentFolder?: string | null | undefined;
|
|
4234
4342
|
readonly package: string;
|
|
4235
4343
|
readonly showOnNav: boolean;
|
|
4236
4344
|
readonly publishedAt: Date;
|
|
@@ -4240,7 +4348,6 @@ export declare const apiClients: {
|
|
|
4240
4348
|
readonly contributorIds: readonly string[];
|
|
4241
4349
|
readonly showAuthor: boolean;
|
|
4242
4350
|
readonly showContributors: boolean;
|
|
4243
|
-
readonly parentFolder?: string | null | undefined;
|
|
4244
4351
|
readonly draft: boolean;
|
|
4245
4352
|
readonly augments: readonly string[];
|
|
4246
4353
|
};
|
|
@@ -4254,13 +4361,14 @@ export declare const apiClients: {
|
|
|
4254
4361
|
readonly diff: string | null;
|
|
4255
4362
|
readonly pageMetaData: {
|
|
4256
4363
|
readonly start: {
|
|
4257
|
-
readonly description: string;
|
|
4258
4364
|
readonly id: string;
|
|
4259
|
-
readonly
|
|
4365
|
+
readonly updatedAt: Date;
|
|
4366
|
+
readonly description: string;
|
|
4367
|
+
readonly title: string;
|
|
4260
4368
|
readonly tags: readonly string[];
|
|
4369
|
+
readonly slug: string;
|
|
4261
4370
|
readonly categories: readonly string[];
|
|
4262
|
-
readonly
|
|
4263
|
-
readonly updatedAt: Date;
|
|
4371
|
+
readonly parentFolder?: string | null | undefined;
|
|
4264
4372
|
readonly package: string;
|
|
4265
4373
|
readonly showOnNav: boolean;
|
|
4266
4374
|
readonly publishedAt: Date;
|
|
@@ -4270,18 +4378,18 @@ export declare const apiClients: {
|
|
|
4270
4378
|
readonly contributorIds: readonly string[];
|
|
4271
4379
|
readonly showAuthor: boolean;
|
|
4272
4380
|
readonly showContributors: boolean;
|
|
4273
|
-
readonly parentFolder?: string | null | undefined;
|
|
4274
4381
|
readonly draft: boolean;
|
|
4275
4382
|
readonly augments: readonly string[];
|
|
4276
4383
|
};
|
|
4277
4384
|
readonly end: {
|
|
4278
|
-
readonly description: string;
|
|
4279
4385
|
readonly id: string;
|
|
4280
|
-
readonly
|
|
4386
|
+
readonly updatedAt: Date;
|
|
4387
|
+
readonly description: string;
|
|
4388
|
+
readonly title: string;
|
|
4281
4389
|
readonly tags: readonly string[];
|
|
4390
|
+
readonly slug: string;
|
|
4282
4391
|
readonly categories: readonly string[];
|
|
4283
|
-
readonly
|
|
4284
|
-
readonly updatedAt: Date;
|
|
4392
|
+
readonly parentFolder?: string | null | undefined;
|
|
4285
4393
|
readonly package: string;
|
|
4286
4394
|
readonly showOnNav: boolean;
|
|
4287
4395
|
readonly publishedAt: Date;
|
|
@@ -4291,7 +4399,6 @@ export declare const apiClients: {
|
|
|
4291
4399
|
readonly contributorIds: readonly string[];
|
|
4292
4400
|
readonly showAuthor: boolean;
|
|
4293
4401
|
readonly showContributors: boolean;
|
|
4294
|
-
readonly parentFolder?: string | null | undefined;
|
|
4295
4402
|
readonly draft: boolean;
|
|
4296
4403
|
readonly augments: readonly string[];
|
|
4297
4404
|
};
|
|
@@ -4302,14 +4409,21 @@ export declare const apiClients: {
|
|
|
4302
4409
|
readonly id: string;
|
|
4303
4410
|
};
|
|
4304
4411
|
readonly payload: {
|
|
4412
|
+
readonly content?: {
|
|
4413
|
+
readonly id?: string | undefined;
|
|
4414
|
+
readonly content?: string | undefined;
|
|
4415
|
+
readonly contentLang?: string | undefined;
|
|
4416
|
+
readonly contentId?: string | undefined;
|
|
4417
|
+
} | undefined;
|
|
4305
4418
|
readonly data?: {
|
|
4306
|
-
readonly description?: string | undefined;
|
|
4307
4419
|
readonly id?: string | undefined;
|
|
4308
|
-
readonly
|
|
4420
|
+
readonly updatedAt?: Date | undefined;
|
|
4421
|
+
readonly description?: string | undefined;
|
|
4422
|
+
readonly title?: string | undefined;
|
|
4309
4423
|
readonly tags?: readonly string[] | undefined;
|
|
4424
|
+
readonly slug?: string | undefined;
|
|
4310
4425
|
readonly categories?: readonly string[] | undefined;
|
|
4311
|
-
readonly
|
|
4312
|
-
readonly updatedAt?: Date | undefined;
|
|
4426
|
+
readonly parentFolder?: string | null | undefined;
|
|
4313
4427
|
readonly package?: string | undefined;
|
|
4314
4428
|
readonly showOnNav?: boolean | undefined;
|
|
4315
4429
|
readonly publishedAt?: Date | undefined;
|
|
@@ -4319,16 +4433,9 @@ export declare const apiClients: {
|
|
|
4319
4433
|
readonly contributorIds?: readonly string[] | undefined;
|
|
4320
4434
|
readonly showAuthor?: boolean | undefined;
|
|
4321
4435
|
readonly showContributors?: boolean | undefined;
|
|
4322
|
-
readonly parentFolder?: string | null | undefined;
|
|
4323
4436
|
readonly draft?: boolean | undefined;
|
|
4324
4437
|
readonly augments?: readonly string[] | undefined;
|
|
4325
4438
|
} | undefined;
|
|
4326
|
-
readonly content?: {
|
|
4327
|
-
readonly id?: string | undefined;
|
|
4328
|
-
readonly content?: string | undefined;
|
|
4329
|
-
readonly contentLang?: string | undefined;
|
|
4330
|
-
readonly contentId?: string | undefined;
|
|
4331
|
-
} | undefined;
|
|
4332
4439
|
};
|
|
4333
4440
|
readonly withResponse?: WithResponse | undefined;
|
|
4334
4441
|
}) => Effect.Effect<WithResponse extends true ? [{
|
|
@@ -4338,39 +4445,40 @@ export declare const apiClients: {
|
|
|
4338
4445
|
}, 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>;
|
|
4339
4446
|
readonly getPages: <WithResponse extends boolean = false>(request: {
|
|
4340
4447
|
readonly urlParams: {
|
|
4341
|
-
readonly slug?: string | undefined;
|
|
4342
4448
|
readonly title?: string | undefined;
|
|
4449
|
+
readonly slug?: string | undefined;
|
|
4450
|
+
readonly author?: string | undefined;
|
|
4343
4451
|
readonly parentFolder?: string | undefined;
|
|
4344
4452
|
readonly draft?: boolean | undefined;
|
|
4345
|
-
readonly author?: string | undefined;
|
|
4346
4453
|
readonly published?: boolean | undefined;
|
|
4347
4454
|
};
|
|
4348
4455
|
readonly withResponse?: WithResponse | undefined;
|
|
4349
4456
|
}) => Effect.Effect<WithResponse extends true ? [readonly {
|
|
4350
|
-
readonly description: string;
|
|
4351
4457
|
readonly id: string;
|
|
4352
|
-
readonly
|
|
4458
|
+
readonly updatedAt: Date;
|
|
4459
|
+
readonly description: string;
|
|
4460
|
+
readonly title: string;
|
|
4353
4461
|
readonly tags: readonly {
|
|
4354
|
-
readonly description: string;
|
|
4355
4462
|
readonly id: number;
|
|
4356
4463
|
readonly name: string;
|
|
4464
|
+
readonly description: string;
|
|
4357
4465
|
readonly slug: string;
|
|
4358
4466
|
readonly meta: {
|
|
4359
4467
|
readonly [x: string]: unknown;
|
|
4360
4468
|
};
|
|
4361
4469
|
}[];
|
|
4470
|
+
readonly slug: string;
|
|
4362
4471
|
readonly categories: readonly {
|
|
4363
|
-
readonly description: string;
|
|
4364
4472
|
readonly id: number;
|
|
4365
4473
|
readonly name: string;
|
|
4474
|
+
readonly description: string;
|
|
4366
4475
|
readonly slug: string;
|
|
4367
4476
|
readonly meta: {
|
|
4368
4477
|
readonly [x: string]: unknown;
|
|
4369
4478
|
};
|
|
4370
4479
|
readonly parent?: number | null | undefined;
|
|
4371
4480
|
}[];
|
|
4372
|
-
readonly
|
|
4373
|
-
readonly updatedAt: Date;
|
|
4481
|
+
readonly parentFolder?: string | null | undefined;
|
|
4374
4482
|
readonly package: string;
|
|
4375
4483
|
readonly showOnNav: boolean;
|
|
4376
4484
|
readonly publishedAt: Date;
|
|
@@ -4380,7 +4488,6 @@ export declare const apiClients: {
|
|
|
4380
4488
|
readonly contributorIds: readonly string[];
|
|
4381
4489
|
readonly showAuthor: boolean;
|
|
4382
4490
|
readonly showContributors: boolean;
|
|
4383
|
-
readonly parentFolder?: string | null | undefined;
|
|
4384
4491
|
readonly draft: boolean;
|
|
4385
4492
|
readonly augments: readonly string[];
|
|
4386
4493
|
readonly multiLangContent: readonly {
|
|
@@ -4398,8 +4505,8 @@ export declare const apiClients: {
|
|
|
4398
4505
|
readonly urlRoute: string;
|
|
4399
4506
|
readonly authorData: {
|
|
4400
4507
|
readonly id: string;
|
|
4401
|
-
readonly name: string;
|
|
4402
4508
|
readonly url?: string | null | undefined;
|
|
4509
|
+
readonly name: string;
|
|
4403
4510
|
readonly avatar?: string | null | undefined;
|
|
4404
4511
|
readonly username: string;
|
|
4405
4512
|
readonly updatedAt: Date;
|
|
@@ -4409,8 +4516,8 @@ export declare const apiClients: {
|
|
|
4409
4516
|
} | undefined;
|
|
4410
4517
|
readonly contributorsData: readonly {
|
|
4411
4518
|
readonly id: string;
|
|
4412
|
-
readonly name: string;
|
|
4413
4519
|
readonly url?: string | null | undefined;
|
|
4520
|
+
readonly name: string;
|
|
4414
4521
|
readonly avatar?: string | null | undefined;
|
|
4415
4522
|
readonly username: string;
|
|
4416
4523
|
readonly updatedAt: Date;
|
|
@@ -4419,30 +4526,31 @@ export declare const apiClients: {
|
|
|
4419
4526
|
readonly notifications?: string | null | undefined;
|
|
4420
4527
|
}[];
|
|
4421
4528
|
}[], import("@effect/platform/HttpClientResponse").HttpClientResponse] : readonly {
|
|
4422
|
-
readonly description: string;
|
|
4423
4529
|
readonly id: string;
|
|
4424
|
-
readonly
|
|
4530
|
+
readonly updatedAt: Date;
|
|
4531
|
+
readonly description: string;
|
|
4532
|
+
readonly title: string;
|
|
4425
4533
|
readonly tags: readonly {
|
|
4426
|
-
readonly description: string;
|
|
4427
4534
|
readonly id: number;
|
|
4428
4535
|
readonly name: string;
|
|
4536
|
+
readonly description: string;
|
|
4429
4537
|
readonly slug: string;
|
|
4430
4538
|
readonly meta: {
|
|
4431
4539
|
readonly [x: string]: unknown;
|
|
4432
4540
|
};
|
|
4433
4541
|
}[];
|
|
4542
|
+
readonly slug: string;
|
|
4434
4543
|
readonly categories: readonly {
|
|
4435
|
-
readonly description: string;
|
|
4436
4544
|
readonly id: number;
|
|
4437
4545
|
readonly name: string;
|
|
4546
|
+
readonly description: string;
|
|
4438
4547
|
readonly slug: string;
|
|
4439
4548
|
readonly meta: {
|
|
4440
4549
|
readonly [x: string]: unknown;
|
|
4441
4550
|
};
|
|
4442
4551
|
readonly parent?: number | null | undefined;
|
|
4443
4552
|
}[];
|
|
4444
|
-
readonly
|
|
4445
|
-
readonly updatedAt: Date;
|
|
4553
|
+
readonly parentFolder?: string | null | undefined;
|
|
4446
4554
|
readonly package: string;
|
|
4447
4555
|
readonly showOnNav: boolean;
|
|
4448
4556
|
readonly publishedAt: Date;
|
|
@@ -4452,7 +4560,6 @@ export declare const apiClients: {
|
|
|
4452
4560
|
readonly contributorIds: readonly string[];
|
|
4453
4561
|
readonly showAuthor: boolean;
|
|
4454
4562
|
readonly showContributors: boolean;
|
|
4455
|
-
readonly parentFolder?: string | null | undefined;
|
|
4456
4563
|
readonly draft: boolean;
|
|
4457
4564
|
readonly augments: readonly string[];
|
|
4458
4565
|
readonly multiLangContent: readonly {
|
|
@@ -4470,8 +4577,8 @@ export declare const apiClients: {
|
|
|
4470
4577
|
readonly urlRoute: string;
|
|
4471
4578
|
readonly authorData: {
|
|
4472
4579
|
readonly id: string;
|
|
4473
|
-
readonly name: string;
|
|
4474
4580
|
readonly url?: string | null | undefined;
|
|
4581
|
+
readonly name: string;
|
|
4475
4582
|
readonly avatar?: string | null | undefined;
|
|
4476
4583
|
readonly username: string;
|
|
4477
4584
|
readonly updatedAt: Date;
|
|
@@ -4481,8 +4588,8 @@ export declare const apiClients: {
|
|
|
4481
4588
|
} | undefined;
|
|
4482
4589
|
readonly contributorsData: readonly {
|
|
4483
4590
|
readonly id: string;
|
|
4484
|
-
readonly name: string;
|
|
4485
4591
|
readonly url?: string | null | undefined;
|
|
4592
|
+
readonly name: string;
|
|
4486
4593
|
readonly avatar?: string | null | undefined;
|
|
4487
4594
|
readonly username: string;
|
|
4488
4595
|
readonly updatedAt: Date;
|
|
@@ -4493,14 +4600,21 @@ export declare const apiClients: {
|
|
|
4493
4600
|
}[], 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>;
|
|
4494
4601
|
readonly createPage: <WithResponse extends boolean = false>(request: {
|
|
4495
4602
|
readonly payload: {
|
|
4603
|
+
readonly content?: {
|
|
4604
|
+
readonly id?: string | undefined;
|
|
4605
|
+
readonly content?: string | undefined;
|
|
4606
|
+
readonly contentLang?: string | undefined;
|
|
4607
|
+
readonly contentId?: string | undefined;
|
|
4608
|
+
} | undefined;
|
|
4496
4609
|
readonly data?: {
|
|
4497
|
-
readonly description?: string | undefined;
|
|
4498
4610
|
readonly id?: string | undefined;
|
|
4499
|
-
readonly
|
|
4611
|
+
readonly updatedAt?: Date | undefined;
|
|
4612
|
+
readonly description?: string | undefined;
|
|
4613
|
+
readonly title?: string | undefined;
|
|
4500
4614
|
readonly tags?: readonly string[] | undefined;
|
|
4615
|
+
readonly slug?: string | undefined;
|
|
4501
4616
|
readonly categories?: readonly string[] | undefined;
|
|
4502
|
-
readonly
|
|
4503
|
-
readonly updatedAt?: Date | undefined;
|
|
4617
|
+
readonly parentFolder?: string | null | undefined;
|
|
4504
4618
|
readonly package?: string | undefined;
|
|
4505
4619
|
readonly showOnNav?: boolean | undefined;
|
|
4506
4620
|
readonly publishedAt?: Date | undefined;
|
|
@@ -4510,16 +4624,9 @@ export declare const apiClients: {
|
|
|
4510
4624
|
readonly contributorIds?: readonly string[] | undefined;
|
|
4511
4625
|
readonly showAuthor?: boolean | undefined;
|
|
4512
4626
|
readonly showContributors?: boolean | undefined;
|
|
4513
|
-
readonly parentFolder?: string | null | undefined;
|
|
4514
4627
|
readonly draft?: boolean | undefined;
|
|
4515
4628
|
readonly augments?: readonly string[] | undefined;
|
|
4516
4629
|
} | undefined;
|
|
4517
|
-
readonly content?: {
|
|
4518
|
-
readonly id?: string | undefined;
|
|
4519
|
-
readonly content?: string | undefined;
|
|
4520
|
-
readonly contentLang?: string | undefined;
|
|
4521
|
-
readonly contentId?: string | undefined;
|
|
4522
|
-
} | undefined;
|
|
4523
4630
|
};
|
|
4524
4631
|
readonly withResponse?: WithResponse | undefined;
|
|
4525
4632
|
}) => Effect.Effect<WithResponse extends true ? [{
|
|
@@ -4543,17 +4650,17 @@ export declare const apiClients: {
|
|
|
4543
4650
|
};
|
|
4544
4651
|
readonly withResponse?: WithResponse | undefined;
|
|
4545
4652
|
}) => Effect.Effect<WithResponse extends true ? [{
|
|
4546
|
-
readonly description: string;
|
|
4547
4653
|
readonly id: number;
|
|
4548
4654
|
readonly name: string;
|
|
4655
|
+
readonly description: string;
|
|
4549
4656
|
readonly slug: string;
|
|
4550
4657
|
readonly meta: {
|
|
4551
4658
|
readonly [x: string]: unknown;
|
|
4552
4659
|
};
|
|
4553
4660
|
}, import("@effect/platform/HttpClientResponse").HttpClientResponse] : {
|
|
4554
|
-
readonly description: string;
|
|
4555
4661
|
readonly id: number;
|
|
4556
4662
|
readonly name: string;
|
|
4663
|
+
readonly description: string;
|
|
4557
4664
|
readonly slug: string;
|
|
4558
4665
|
readonly meta: {
|
|
4559
4666
|
readonly [x: string]: unknown;
|
|
@@ -4564,9 +4671,9 @@ export declare const apiClients: {
|
|
|
4564
4671
|
readonly id: number;
|
|
4565
4672
|
};
|
|
4566
4673
|
readonly payload: {
|
|
4567
|
-
readonly description?: string | undefined;
|
|
4568
4674
|
readonly id?: number | undefined;
|
|
4569
4675
|
readonly name?: string | undefined;
|
|
4676
|
+
readonly description?: string | undefined;
|
|
4570
4677
|
readonly slug?: string | undefined;
|
|
4571
4678
|
readonly meta?: {
|
|
4572
4679
|
readonly [x: string]: unknown;
|
|
@@ -4574,17 +4681,17 @@ export declare const apiClients: {
|
|
|
4574
4681
|
};
|
|
4575
4682
|
readonly withResponse?: WithResponse | undefined;
|
|
4576
4683
|
}) => Effect.Effect<WithResponse extends true ? [{
|
|
4577
|
-
readonly description: string;
|
|
4578
4684
|
readonly id: number;
|
|
4579
4685
|
readonly name: string;
|
|
4686
|
+
readonly description: string;
|
|
4580
4687
|
readonly slug: string;
|
|
4581
4688
|
readonly meta: {
|
|
4582
4689
|
readonly [x: string]: unknown;
|
|
4583
4690
|
};
|
|
4584
4691
|
}, import("@effect/platform/HttpClientResponse").HttpClientResponse] : {
|
|
4585
|
-
readonly description: string;
|
|
4586
4692
|
readonly id: number;
|
|
4587
4693
|
readonly name: string;
|
|
4694
|
+
readonly description: string;
|
|
4588
4695
|
readonly slug: string;
|
|
4589
4696
|
readonly meta: {
|
|
4590
4697
|
readonly [x: string]: unknown;
|
|
@@ -4596,17 +4703,17 @@ export declare const apiClients: {
|
|
|
4596
4703
|
};
|
|
4597
4704
|
readonly withResponse?: WithResponse | undefined;
|
|
4598
4705
|
}) => Effect.Effect<WithResponse extends true ? [readonly {
|
|
4599
|
-
readonly description: string;
|
|
4600
4706
|
readonly id: number;
|
|
4601
4707
|
readonly name: string;
|
|
4708
|
+
readonly description: string;
|
|
4602
4709
|
readonly slug: string;
|
|
4603
4710
|
readonly meta: {
|
|
4604
4711
|
readonly [x: string]: unknown;
|
|
4605
4712
|
};
|
|
4606
4713
|
}[], import("@effect/platform/HttpClientResponse").HttpClientResponse] : readonly {
|
|
4607
|
-
readonly description: string;
|
|
4608
4714
|
readonly id: number;
|
|
4609
4715
|
readonly name: string;
|
|
4716
|
+
readonly description: string;
|
|
4610
4717
|
readonly slug: string;
|
|
4611
4718
|
readonly meta: {
|
|
4612
4719
|
readonly [x: string]: unknown;
|
|
@@ -4614,136 +4721,29 @@ export declare const apiClients: {
|
|
|
4614
4721
|
}[], 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>;
|
|
4615
4722
|
readonly createTag: <WithResponse extends boolean = false>(request: {
|
|
4616
4723
|
readonly payload: {
|
|
4617
|
-
readonly description: string;
|
|
4618
4724
|
readonly name: string;
|
|
4725
|
+
readonly description: string;
|
|
4619
4726
|
readonly slug: string;
|
|
4620
4727
|
readonly meta: string;
|
|
4621
4728
|
};
|
|
4622
4729
|
readonly withResponse?: WithResponse | undefined;
|
|
4623
4730
|
}) => Effect.Effect<WithResponse extends true ? [{
|
|
4624
|
-
readonly description: string;
|
|
4625
4731
|
readonly id: number;
|
|
4626
4732
|
readonly name: string;
|
|
4733
|
+
readonly description: string;
|
|
4627
4734
|
readonly slug: string;
|
|
4628
4735
|
readonly meta: {
|
|
4629
4736
|
readonly [x: string]: unknown;
|
|
4630
4737
|
};
|
|
4631
4738
|
}, import("@effect/platform/HttpClientResponse").HttpClientResponse] : {
|
|
4632
|
-
readonly description: string;
|
|
4633
4739
|
readonly id: number;
|
|
4634
4740
|
readonly name: string;
|
|
4741
|
+
readonly description: string;
|
|
4635
4742
|
readonly slug: string;
|
|
4636
4743
|
readonly meta: {
|
|
4637
4744
|
readonly [x: string]: unknown;
|
|
4638
4745
|
};
|
|
4639
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>;
|
|
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 name: string;
|
|
4658
|
-
readonly url?: string | null | undefined;
|
|
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 name: string;
|
|
4667
|
-
readonly url?: string | null | undefined;
|
|
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 name: string;
|
|
4683
|
-
readonly url?: string | null | undefined;
|
|
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 name: string;
|
|
4692
|
-
readonly url?: string | null | undefined;
|
|
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 name: string;
|
|
4709
|
-
readonly url?: string | null | undefined;
|
|
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 name: string;
|
|
4718
|
-
readonly url?: string | null | undefined;
|
|
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 name: string;
|
|
4731
|
-
readonly url?: string | null | undefined;
|
|
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 name: string;
|
|
4740
|
-
readonly url?: string | null | undefined;
|
|
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 ? [{
|