@faiber/faiber-modules 0.5.2 → 0.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -197,6 +197,7 @@ export interface BlogCreatePostPostInput extends JsonObject {
197
197
  "description"?: string | null;
198
198
  "content"?: string | null;
199
199
  "image_url"?: string | null;
200
+ "author_id"?: string | null;
200
201
  "status"?: number | null;
201
202
  }
202
203
  /** Backend response type: models::PostResponseDTO. */
@@ -206,6 +207,7 @@ export interface BlogCreatePostPostResponseData extends JsonObject {
206
207
  "description"?: string | null;
207
208
  "content"?: string | null;
208
209
  "image_url"?: string | null;
210
+ "author_id"?: string | null;
209
211
  "status": number;
210
212
  "created_at": string;
211
213
  "updated_at": string;
@@ -225,6 +227,7 @@ export interface BlogShowPostGetResponseData extends JsonObject {
225
227
  "description"?: string | null;
226
228
  "content"?: string | null;
227
229
  "image_url"?: string | null;
230
+ "author_id"?: string | null;
228
231
  "status": number;
229
232
  "created_at": string;
230
233
  "updated_at": string;
@@ -237,6 +240,7 @@ export interface BlogUpdatePostPatchInput extends JsonObject {
237
240
  "description"?: string | null;
238
241
  "content"?: string | null;
239
242
  "image_url"?: string | null;
243
+ "author_id"?: string | null;
240
244
  "status"?: number | null;
241
245
  }
242
246
  /** Backend response type: models::PostResponseDTO. */
@@ -246,6 +250,7 @@ export interface BlogUpdatePostPatchResponseData extends JsonObject {
246
250
  "description"?: string | null;
247
251
  "content"?: string | null;
248
252
  "image_url"?: string | null;
253
+ "author_id"?: string | null;
249
254
  "status": number;
250
255
  "created_at": string;
251
256
  "updated_at": string;
@@ -258,6 +263,7 @@ export interface BlogUpdatePostPutInput extends JsonObject {
258
263
  "description"?: string | null;
259
264
  "content"?: string | null;
260
265
  "image_url"?: string | null;
266
+ "author_id"?: string | null;
261
267
  "status"?: number | null;
262
268
  }
263
269
  /** Backend response type: models::PostResponseDTO. */
@@ -267,6 +273,7 @@ export interface BlogUpdatePostPutResponseData extends JsonObject {
267
273
  "description"?: string | null;
268
274
  "content"?: string | null;
269
275
  "image_url"?: string | null;
276
+ "author_id"?: string | null;
270
277
  "status": number;
271
278
  "created_at": string;
272
279
  "updated_at": string;
@@ -292,6 +299,8 @@ export interface CategoryCreateCategoryPostInput extends JsonObject {
292
299
  "parent_id"?: string | null;
293
300
  "name"?: string | null;
294
301
  "description"?: string | null;
302
+ "image_url"?: string | null;
303
+ "scope"?: string | null;
295
304
  "status"?: number | null;
296
305
  "requires_confirmation"?: boolean | null;
297
306
  }
@@ -301,6 +310,8 @@ export interface CategoryCreateCategoryPostResponseData extends JsonObject {
301
310
  "parent_id"?: string | null;
302
311
  "name"?: string | null;
303
312
  "description"?: string | null;
313
+ "image_url"?: string | null;
314
+ "scope": string;
304
315
  "status": number;
305
316
  "requires_confirmation": boolean;
306
317
  "created_at": string;
@@ -355,6 +366,8 @@ export interface CategoryShowCategoryGetResponseData extends JsonObject {
355
366
  "parent_id"?: string | null;
356
367
  "name"?: string | null;
357
368
  "description"?: string | null;
369
+ "image_url"?: string | null;
370
+ "scope": string;
358
371
  "status": number;
359
372
  "requires_confirmation": boolean;
360
373
  "created_at": string;
@@ -367,6 +380,8 @@ export interface CategoryUpdateCategoryPatchInput extends JsonObject {
367
380
  "parent_id"?: string | null;
368
381
  "name"?: string | null;
369
382
  "description"?: string | null;
383
+ "image_url"?: string | null;
384
+ "scope"?: string | null;
370
385
  "status"?: number | null;
371
386
  "requires_confirmation"?: boolean | null;
372
387
  }
@@ -376,6 +391,8 @@ export interface CategoryUpdateCategoryPatchResponseData extends JsonObject {
376
391
  "parent_id"?: string | null;
377
392
  "name"?: string | null;
378
393
  "description"?: string | null;
394
+ "image_url"?: string | null;
395
+ "scope": string;
379
396
  "status": number;
380
397
  "requires_confirmation": boolean;
381
398
  "created_at": string;
@@ -388,6 +405,8 @@ export interface CategoryUpdateCategoryPutInput extends JsonObject {
388
405
  "parent_id"?: string | null;
389
406
  "name"?: string | null;
390
407
  "description"?: string | null;
408
+ "image_url"?: string | null;
409
+ "scope"?: string | null;
391
410
  "status"?: number | null;
392
411
  "requires_confirmation"?: boolean | null;
393
412
  }
@@ -397,6 +416,8 @@ export interface CategoryUpdateCategoryPutResponseData extends JsonObject {
397
416
  "parent_id"?: string | null;
398
417
  "name"?: string | null;
399
418
  "description"?: string | null;
419
+ "image_url"?: string | null;
420
+ "scope": string;
400
421
  "status": number;
401
422
  "requires_confirmation": boolean;
402
423
  "created_at": string;
@@ -877,6 +898,294 @@ export interface InventoryUpdateWarehousePutResponseData extends JsonObject {
877
898
  }
878
899
  export interface InventoryUpdateWarehousePutResponse extends ApiEnvelope<InventoryUpdateWarehousePutResponseData> {
879
900
  }
901
+ /** Backend response type: Value. */
902
+ export type ManagementApiAgentModelsGetResponse = JsonValue;
903
+ /** Backend response type: Vec<ProposalRecord>. */
904
+ export interface ManagementApiListProposalsGetResponseItem extends JsonObject {
905
+ "id": string;
906
+ "agentic_run_id"?: string | null;
907
+ "actor_user_id": string;
908
+ "specialist": string;
909
+ "operation": string;
910
+ "target_type": string;
911
+ "target_id"?: string | null;
912
+ "expected_etag"?: string | null;
913
+ "diff": JsonValue;
914
+ "risk": string;
915
+ "status": string;
916
+ "idempotency_key": string;
917
+ "expires_at": string;
918
+ "approved_by"?: string | null;
919
+ "applied_at"?: string | null;
920
+ "created_at": string;
921
+ "updated_at": string;
922
+ }
923
+ export type ManagementApiListProposalsGetResponse = ManagementApiListProposalsGetResponseItem[];
924
+ /** Backend response type: ProposalRecord. */
925
+ export interface ManagementApiGetProposalGetResponseData extends JsonObject {
926
+ "id": string;
927
+ "agentic_run_id"?: string | null;
928
+ "actor_user_id": string;
929
+ "specialist": string;
930
+ "operation": string;
931
+ "target_type": string;
932
+ "target_id"?: string | null;
933
+ "expected_etag"?: string | null;
934
+ "diff": JsonValue;
935
+ "risk": string;
936
+ "status": string;
937
+ "idempotency_key": string;
938
+ "expires_at": string;
939
+ "approved_by"?: string | null;
940
+ "applied_at"?: string | null;
941
+ "created_at": string;
942
+ "updated_at": string;
943
+ }
944
+ export type ManagementApiGetProposalGetResponse = ManagementApiGetProposalGetResponseData;
945
+ /** Backend response type: ProposalRecord. */
946
+ export interface ManagementApiApproveProposalPostResponseData extends JsonObject {
947
+ "id": string;
948
+ "agentic_run_id"?: string | null;
949
+ "actor_user_id": string;
950
+ "specialist": string;
951
+ "operation": string;
952
+ "target_type": string;
953
+ "target_id"?: string | null;
954
+ "expected_etag"?: string | null;
955
+ "diff": JsonValue;
956
+ "risk": string;
957
+ "status": string;
958
+ "idempotency_key": string;
959
+ "expires_at": string;
960
+ "approved_by"?: string | null;
961
+ "applied_at"?: string | null;
962
+ "created_at": string;
963
+ "updated_at": string;
964
+ }
965
+ export type ManagementApiApproveProposalPostResponse = ManagementApiApproveProposalPostResponseData;
966
+ /** Backend response type: ProposalRecord. */
967
+ export interface ManagementApiRejectProposalPostResponseData extends JsonObject {
968
+ "id": string;
969
+ "agentic_run_id"?: string | null;
970
+ "actor_user_id": string;
971
+ "specialist": string;
972
+ "operation": string;
973
+ "target_type": string;
974
+ "target_id"?: string | null;
975
+ "expected_etag"?: string | null;
976
+ "diff": JsonValue;
977
+ "risk": string;
978
+ "status": string;
979
+ "idempotency_key": string;
980
+ "expires_at": string;
981
+ "approved_by"?: string | null;
982
+ "applied_at"?: string | null;
983
+ "created_at": string;
984
+ "updated_at": string;
985
+ }
986
+ export type ManagementApiRejectProposalPostResponse = ManagementApiRejectProposalPostResponseData;
987
+ /** Backend request type: AgentRunInput. */
988
+ export interface ManagementApiRunAgentPostInput extends JsonObject {
989
+ "operation": string;
990
+ "message": string;
991
+ "specialist": string;
992
+ "target_type": string;
993
+ "target_id"?: string | null;
994
+ "expected_etag"?: string | null;
995
+ "resource_ids"?: string[];
996
+ "context"?: JsonValue;
997
+ "model_ref"?: string | null;
998
+ "risk"?: string;
999
+ }
1000
+ /** Backend response type: raw-response. */
1001
+ export interface ManagementApiRunAgentPostResponse extends ApiEnvelope<JsonValue> {
1002
+ }
1003
+ /** Backend query type: ContentListQuery. */
1004
+ export interface ManagementApiListContentGetQuery extends QueryParams {
1005
+ "kind"?: string | null;
1006
+ "locale"?: string | null;
1007
+ "status"?: string | null;
1008
+ }
1009
+ /** Backend response type: Vec<ContentRecord>. */
1010
+ export interface ManagementApiListContentGetResponseItem extends JsonObject {
1011
+ "id": string;
1012
+ "kind": string;
1013
+ "legacy_host"?: string | null;
1014
+ "legacy_id"?: string | null;
1015
+ "slug": string;
1016
+ "locale": string;
1017
+ "title": string;
1018
+ "status": string;
1019
+ "editor_json": JsonValue;
1020
+ "sanitized_html": string;
1021
+ "plain_text": string;
1022
+ "current_revision": number;
1023
+ "etag": string;
1024
+ "publish_at"?: string | null;
1025
+ "published_at"?: string | null;
1026
+ "created_by": string;
1027
+ "updated_by": string;
1028
+ "created_at": string;
1029
+ "updated_at": string;
1030
+ }
1031
+ export type ManagementApiListContentGetResponse = ManagementApiListContentGetResponseItem[];
1032
+ /** Backend request type: ContentWrite. */
1033
+ export interface ManagementApiCreateContentPostInput extends JsonObject {
1034
+ "kind": string;
1035
+ "slug": string;
1036
+ "locale"?: string;
1037
+ "title": string;
1038
+ "editor_json"?: JsonValue;
1039
+ "publish_at"?: string | null;
1040
+ }
1041
+ /** Backend response type: raw-response. */
1042
+ export interface ManagementApiCreateContentPostResponse extends ApiEnvelope<JsonValue> {
1043
+ }
1044
+ /** Backend response type: raw-response. */
1045
+ export interface ManagementApiGetContentGetResponse extends ApiEnvelope<JsonValue> {
1046
+ }
1047
+ /** Backend request type: ContentWrite. */
1048
+ export interface ManagementApiUpdateContentPutInput extends JsonObject {
1049
+ "kind": string;
1050
+ "slug": string;
1051
+ "locale"?: string;
1052
+ "title": string;
1053
+ "editor_json"?: JsonValue;
1054
+ "publish_at"?: string | null;
1055
+ }
1056
+ /** Backend response type: raw-response. */
1057
+ export interface ManagementApiUpdateContentPutResponse extends ApiEnvelope<JsonValue> {
1058
+ }
1059
+ /** Backend response type: raw-response. */
1060
+ export interface ManagementApiPublishContentPostResponse extends ApiEnvelope<JsonValue> {
1061
+ }
1062
+ /** Backend response type: Vec<ContentRevisionRecord>. */
1063
+ export interface ManagementApiListContentRevisionsGetResponseItem extends JsonObject {
1064
+ "id": string;
1065
+ "document_id": string;
1066
+ "revision": number;
1067
+ "title": string;
1068
+ "editor_json": JsonValue;
1069
+ "sanitized_html": string;
1070
+ "plain_text": string;
1071
+ "actor_user_id": string;
1072
+ "provenance": JsonValue;
1073
+ "created_at": string;
1074
+ }
1075
+ export type ManagementApiListContentRevisionsGetResponse = ManagementApiListContentRevisionsGetResponseItem[];
1076
+ /** Backend response type: raw-response. */
1077
+ export interface ManagementApiRestoreContentRevisionPostResponse extends ApiEnvelope<JsonValue> {
1078
+ }
1079
+ /** Backend request type: CategoryImport. */
1080
+ export interface ContentTransferUpsertCategoryPutInput extends JsonObject {
1081
+ "parent_id"?: string | null;
1082
+ "legacy_host": string;
1083
+ "legacy_id": string;
1084
+ "slug": string;
1085
+ "locale"?: string;
1086
+ "name": string;
1087
+ "description"?: string | null;
1088
+ "image_url"?: string | null;
1089
+ "scope"?: string;
1090
+ "status"?: number;
1091
+ "seo"?: JsonValue;
1092
+ }
1093
+ /** Backend response type: CategoryRecord. */
1094
+ export interface ContentTransferUpsertCategoryPutResponseData extends JsonObject {
1095
+ "id": string;
1096
+ "parent_id"?: string | null;
1097
+ "legacy_host"?: string | null;
1098
+ "legacy_id"?: string | null;
1099
+ "slug"?: string | null;
1100
+ "locale": string;
1101
+ "name"?: string | null;
1102
+ "description"?: string | null;
1103
+ "image_url"?: string | null;
1104
+ "scope": string;
1105
+ "status": number;
1106
+ "seo": JsonValue;
1107
+ "created_at": string;
1108
+ "updated_at": string;
1109
+ }
1110
+ export type ContentTransferUpsertCategoryPutResponse = ContentTransferUpsertCategoryPutResponseData;
1111
+ /** Backend request type: ContentImport. */
1112
+ export interface ContentTransferUpsertContentPutInput extends JsonObject {
1113
+ "kind": string;
1114
+ "slug": string;
1115
+ "locale"?: string;
1116
+ "title": string;
1117
+ "legacy_host": string;
1118
+ "legacy_id": string;
1119
+ "source_checksum": string;
1120
+ "editor_json"?: JsonValue;
1121
+ "status"?: string;
1122
+ "publish_at"?: string | null;
1123
+ "published_at"?: string | null;
1124
+ "category_ids"?: string[];
1125
+ }
1126
+ /** Backend response type: ContentRecord. */
1127
+ export interface ContentTransferUpsertContentPutResponseData extends JsonObject {
1128
+ "id": string;
1129
+ "kind": string;
1130
+ "legacy_host"?: string | null;
1131
+ "legacy_id"?: string | null;
1132
+ "slug": string;
1133
+ "locale": string;
1134
+ "title": string;
1135
+ "status": string;
1136
+ "editor_json": JsonValue;
1137
+ "sanitized_html": string;
1138
+ "plain_text": string;
1139
+ "current_revision": number;
1140
+ "etag": string;
1141
+ "publish_at"?: string | null;
1142
+ "published_at"?: string | null;
1143
+ "created_by": string;
1144
+ "updated_by": string;
1145
+ "created_at": string;
1146
+ "updated_at": string;
1147
+ }
1148
+ export type ContentTransferUpsertContentPutResponse = ContentTransferUpsertContentPutResponseData;
1149
+ /** Backend response type: raw-response. */
1150
+ export interface ManagementApiGetSettingsGetResponse extends ApiEnvelope<JsonValue> {
1151
+ }
1152
+ /** Backend request type: SettingsUpdate. */
1153
+ export interface ManagementApiUpdateSettingsPutInput extends JsonObject {
1154
+ "title": string;
1155
+ "locales": JsonValue;
1156
+ "timezone": string;
1157
+ "currency": string;
1158
+ "contact"?: JsonValue;
1159
+ "seo_defaults"?: JsonValue;
1160
+ "checkout_rules"?: JsonValue;
1161
+ "delivery"?: JsonValue;
1162
+ }
1163
+ /** Backend response type: raw-response. */
1164
+ export interface ManagementApiUpdateSettingsPutResponse extends ApiEnvelope<JsonValue> {
1165
+ }
1166
+ /** Backend request type: multipart/form-data. */
1167
+ export type MediaUploadAssetPostInput = FormData;
1168
+ /** Backend response type: UploadResponse. */
1169
+ export interface MediaUploadAssetPostResponseData extends JsonObject {
1170
+ "url": string;
1171
+ "key": string;
1172
+ "content_type": string;
1173
+ "size": number;
1174
+ }
1175
+ export type MediaUploadAssetPostResponse = MediaUploadAssetPostResponseData;
1176
+ /** Backend response type: raw-response. */
1177
+ export interface MediaGetFileGetResponse extends ApiEnvelope<JsonValue> {
1178
+ }
1179
+ /** Backend request type: multipart/form-data. */
1180
+ export type MediaUploadImagePostInput = FormData;
1181
+ /** Backend response type: UploadResponse. */
1182
+ export interface MediaUploadImagePostResponseData extends JsonObject {
1183
+ "url": string;
1184
+ "key": string;
1185
+ "content_type": string;
1186
+ "size": number;
1187
+ }
1188
+ export type MediaUploadImagePostResponse = MediaUploadImagePostResponseData;
880
1189
  /** Backend response type: Vec<entity::podcast::Model>. */
881
1190
  export interface PodcastListGetResponseItem extends JsonObject {
882
1191
  "id": string;
@@ -1110,6 +1419,43 @@ export interface ServicePricingUpdatePricingPutResponseData extends JsonObject {
1110
1419
  }
1111
1420
  export interface ServicePricingUpdatePricingPutResponse extends ApiEnvelope<ServicePricingUpdatePricingPutResponseData> {
1112
1421
  }
1422
+ /** Backend response type: Vec<CategoryRecord>. */
1423
+ export interface ContentTransferListPublicCategoriesGetResponseItem extends JsonObject {
1424
+ "id": string;
1425
+ "parent_id"?: string | null;
1426
+ "legacy_host"?: string | null;
1427
+ "legacy_id"?: string | null;
1428
+ "slug"?: string | null;
1429
+ "locale": string;
1430
+ "name"?: string | null;
1431
+ "description"?: string | null;
1432
+ "image_url"?: string | null;
1433
+ "scope": string;
1434
+ "status": number;
1435
+ "seo": JsonValue;
1436
+ "created_at": string;
1437
+ "updated_at": string;
1438
+ }
1439
+ export type ContentTransferListPublicCategoriesGetResponse = ContentTransferListPublicCategoriesGetResponseItem[];
1440
+ /** Backend query type: PublicContentQuery. */
1441
+ export interface ContentTransferListPublicContentGetQuery extends QueryParams {
1442
+ "page_number"?: number | null;
1443
+ "page_size"?: number | null;
1444
+ "category"?: string | null;
1445
+ }
1446
+ /** Backend response type: PublicContentList. */
1447
+ export interface ContentTransferListPublicContentGetResponseData extends JsonObject {
1448
+ "items": BackendJson<"ContentRecord">[];
1449
+ "page_number": number;
1450
+ "page_size": number;
1451
+ "total_items": number;
1452
+ }
1453
+ export type ContentTransferListPublicContentGetResponse = ContentTransferListPublicContentGetResponseData;
1454
+ /** Backend response type: raw-response. */
1455
+ export interface ManagementApiPublicContentGetResponse extends ApiEnvelope<JsonValue> {
1456
+ }
1457
+ /** Backend response type: Value. */
1458
+ export type ManagementApiPublicRoutesGetResponse = JsonValue;
1113
1459
  /** Backend query type: models::ReactionDeleteQuery. */
1114
1460
  export interface ReactionDeleteOnTargetDeleteQuery extends QueryParams {
1115
1461
  "reaction_id": string;
@@ -1854,6 +2200,7 @@ export interface ProductListProductsGetResponse extends ApiEnvelope<ProductListP
1854
2200
  export interface ProductCreateProductPostInput extends JsonObject {
1855
2201
  "name": string;
1856
2202
  "description"?: string | null;
2203
+ "image_url"?: string | null;
1857
2204
  "sku"?: JsonValue | null;
1858
2205
  "status"?: number | null;
1859
2206
  "sort_order"?: number | null;
@@ -1866,6 +2213,7 @@ export interface ProductCreateProductPostResponseData extends JsonObject {
1866
2213
  "id": string;
1867
2214
  "name": string;
1868
2215
  "description"?: string | null;
2216
+ "image_url"?: string | null;
1869
2217
  "sku": JsonValue;
1870
2218
  "status": number;
1871
2219
  "sort_order": number;
@@ -1888,6 +2236,7 @@ export interface ProductShowProductGetResponseData extends JsonObject {
1888
2236
  "id": string;
1889
2237
  "name": string;
1890
2238
  "description"?: string | null;
2239
+ "image_url"?: string | null;
1891
2240
  "sku": JsonValue;
1892
2241
  "status": number;
1893
2242
  "sort_order": number;
@@ -1903,6 +2252,7 @@ export interface ProductShowProductGetResponse extends ApiEnvelope<ProductShowPr
1903
2252
  export interface ProductUpdateProductPatchInput extends JsonObject {
1904
2253
  "name"?: string | null;
1905
2254
  "description"?: string | null;
2255
+ "image_url"?: string | null;
1906
2256
  "sku"?: JsonValue | null;
1907
2257
  "status"?: number | null;
1908
2258
  "sort_order"?: number | null;
@@ -1915,6 +2265,7 @@ export interface ProductUpdateProductPatchResponseData extends JsonObject {
1915
2265
  "id": string;
1916
2266
  "name": string;
1917
2267
  "description"?: string | null;
2268
+ "image_url"?: string | null;
1918
2269
  "sku": JsonValue;
1919
2270
  "status": number;
1920
2271
  "sort_order": number;
@@ -1930,6 +2281,7 @@ export interface ProductUpdateProductPatchResponse extends ApiEnvelope<ProductUp
1930
2281
  export interface ProductUpdateProductPutInput extends JsonObject {
1931
2282
  "name"?: string | null;
1932
2283
  "description"?: string | null;
2284
+ "image_url"?: string | null;
1933
2285
  "sku"?: JsonValue | null;
1934
2286
  "status"?: number | null;
1935
2287
  "sort_order"?: number | null;
@@ -1942,6 +2294,7 @@ export interface ProductUpdateProductPutResponseData extends JsonObject {
1942
2294
  "id": string;
1943
2295
  "name": string;
1944
2296
  "description"?: string | null;
2297
+ "image_url"?: string | null;
1945
2298
  "sku": JsonValue;
1946
2299
  "status": number;
1947
2300
  "sort_order": number;