@faiber/faiber-modules 0.5.0 → 0.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,60 +1,58 @@
1
- import type { ApiEnvelope, JsonObject, JsonValue, QueryParams } from "@faiber/sdk-core";
1
+ import type { ApiEnvelope, BackendJson, JsonObject, JsonValue, QueryParams } from "@faiber/sdk-core";
2
2
  /** Generated route contracts. Dynamic payload members remain JSON-safe and are documented with their Rust source type. */
3
- /** Backend response type: handler-defined response. */
3
+ /** Backend response type: api. */
4
4
  export interface RouterStatusRouteGetResponse extends ApiEnvelope<JsonValue> {
5
5
  }
6
- /** Backend response type: handler-defined response. */
6
+ /** Backend response type: api. */
7
7
  export interface RouterBeautifiedOpenapiGetResponse extends ApiEnvelope<JsonValue> {
8
8
  }
9
- /** Backend response type: handler-defined response. */
9
+ /** Backend response type: api. */
10
10
  export interface RouterOpenapiJsonGetResponse extends ApiEnvelope<JsonValue> {
11
11
  }
12
12
  /** Backend response type: Vec<models::AccessResponseDTO>. */
13
- export type AccessListOnTargetGetResponseItemAccessLevel = "Maintainer" | "Editor" | "Viewer";
14
13
  export interface AccessListOnTargetGetResponseItem extends JsonObject {
15
14
  "id": string;
16
15
  "user_id": string;
17
16
  "granted_by_user_id": string;
18
17
  "target_id": string;
19
- "access_level": AccessListOnTargetGetResponseItemAccessLevel;
18
+ "access_level": BackendJson<"AccessLevel">;
20
19
  "created_at": string;
21
20
  }
22
21
  export interface AccessListOnTargetGetResponse extends ApiEnvelope<AccessListOnTargetGetResponseItem[]> {
23
22
  }
24
23
  /** Backend request type: models::AccessGrantRequest. */
25
- export type AccessGrantOnTargetPostInputAccessLevel = "Maintainer" | "Editor" | "Viewer";
26
24
  export interface AccessGrantOnTargetPostInput extends JsonObject {
27
25
  "user_id": string;
28
- "access_level": AccessGrantOnTargetPostInputAccessLevel;
26
+ "access_level": BackendJson<"AccessLevel">;
29
27
  }
30
28
  /** Backend response type: models::AccessResponseDTO. */
31
- export type AccessGrantOnTargetPostResponseDataAccessLevel = "Maintainer" | "Editor" | "Viewer";
32
29
  export interface AccessGrantOnTargetPostResponseData extends JsonObject {
33
30
  "id": string;
34
31
  "user_id": string;
35
32
  "granted_by_user_id": string;
36
33
  "target_id": string;
37
- "access_level": AccessGrantOnTargetPostResponseDataAccessLevel;
34
+ "access_level": BackendJson<"AccessLevel">;
38
35
  "created_at": string;
39
36
  }
40
37
  export interface AccessGrantOnTargetPostResponse extends ApiEnvelope<AccessGrantOnTargetPostResponseData> {
41
38
  }
42
- /** Backend response type: handler-defined response. */
43
- export interface AccessRevokeOnTargetDeleteResponse extends ApiEnvelope<JsonValue> {
39
+ /** Backend response type: EmptyAPIResponse. */
40
+ export interface AccessRevokeOnTargetDeleteResponseData extends JsonObject {
41
+ "status": string;
42
+ "message": string;
44
43
  }
44
+ export type AccessRevokeOnTargetDeleteResponse = AccessRevokeOnTargetDeleteResponseData;
45
45
  /** Backend request type: models::AccessUpdateRequest. */
46
- export type AccessUpdateOnTargetPutInputAccessLevel = "Maintainer" | "Editor" | "Viewer";
47
46
  export interface AccessUpdateOnTargetPutInput extends JsonObject {
48
- "access_level": AccessUpdateOnTargetPutInputAccessLevel;
47
+ "access_level": BackendJson<"AccessLevel">;
49
48
  }
50
49
  /** Backend response type: models::AccessResponseDTO. */
51
- export type AccessUpdateOnTargetPutResponseDataAccessLevel = "Maintainer" | "Editor" | "Viewer";
52
50
  export interface AccessUpdateOnTargetPutResponseData extends JsonObject {
53
51
  "id": string;
54
52
  "user_id": string;
55
53
  "granted_by_user_id": string;
56
54
  "target_id": string;
57
- "access_level": AccessUpdateOnTargetPutResponseDataAccessLevel;
55
+ "access_level": BackendJson<"AccessLevel">;
58
56
  "created_at": string;
59
57
  }
60
58
  export interface AccessUpdateOnTargetPutResponse extends ApiEnvelope<AccessUpdateOnTargetPutResponseData> {
@@ -84,19 +82,8 @@ export interface AuthorListAuthorsGetQuery extends QueryParams {
84
82
  "page_size"?: number | null;
85
83
  }
86
84
  /** Backend response type: models::AuthorListResponse. */
87
- export interface AuthorListAuthorsGetResponseDataAuthors extends JsonObject {
88
- "id": string;
89
- "user_id": string;
90
- "name": string;
91
- "bio"?: string | null;
92
- "avatar_url"?: string | null;
93
- "social_links"?: JsonValue | null;
94
- "website"?: string | null;
95
- "created_at": string;
96
- "updated_at": string;
97
- }
98
85
  export interface AuthorListAuthorsGetResponseData extends JsonObject {
99
- "authors": AuthorListAuthorsGetResponseDataAuthors[];
86
+ "authors": BackendJson<"AuthorResponseDTO">[];
100
87
  "page_number": number;
101
88
  "page_size": number;
102
89
  "total_items": number;
@@ -126,9 +113,12 @@ export interface AuthorCreateAuthorPostResponseData extends JsonObject {
126
113
  }
127
114
  export interface AuthorCreateAuthorPostResponse extends ApiEnvelope<AuthorCreateAuthorPostResponseData> {
128
115
  }
129
- /** Backend response type: handler-defined response. */
130
- export interface AuthorDeleteAuthorDeleteResponse extends ApiEnvelope<JsonValue> {
116
+ /** Backend response type: EmptyAPIResponse. */
117
+ export interface AuthorDeleteAuthorDeleteResponseData extends JsonObject {
118
+ "status": string;
119
+ "message": string;
131
120
  }
121
+ export type AuthorDeleteAuthorDeleteResponse = AuthorDeleteAuthorDeleteResponseData;
132
122
  /** Backend response type: models::AuthorResponseDTO. */
133
123
  export interface AuthorShowAuthorGetResponseData extends JsonObject {
134
124
  "id": string;
@@ -193,18 +183,8 @@ export interface BlogListPostsGetQuery extends QueryParams {
193
183
  "page_size"?: number | null;
194
184
  }
195
185
  /** Backend response type: models::PostListResponse. */
196
- export interface BlogListPostsGetResponseDataPosts extends JsonObject {
197
- "id": string;
198
- "title": string;
199
- "description"?: string | null;
200
- "content"?: string | null;
201
- "image_url"?: string | null;
202
- "status": number;
203
- "created_at": string;
204
- "updated_at": string;
205
- }
206
186
  export interface BlogListPostsGetResponseData extends JsonObject {
207
- "posts": BlogListPostsGetResponseDataPosts[];
187
+ "posts": BackendJson<"PostResponseDTO">[];
208
188
  "page_number": number;
209
189
  "page_size": number;
210
190
  "total_items": number;
@@ -232,9 +212,12 @@ export interface BlogCreatePostPostResponseData extends JsonObject {
232
212
  }
233
213
  export interface BlogCreatePostPostResponse extends ApiEnvelope<BlogCreatePostPostResponseData> {
234
214
  }
235
- /** Backend response type: handler-defined response. */
236
- export interface BlogDeletePostDeleteResponse extends ApiEnvelope<JsonValue> {
215
+ /** Backend response type: EmptyAPIResponse. */
216
+ export interface BlogDeletePostDeleteResponseData extends JsonObject {
217
+ "status": string;
218
+ "message": string;
237
219
  }
220
+ export type BlogDeletePostDeleteResponse = BlogDeletePostDeleteResponseData;
238
221
  /** Backend response type: models::PostResponseDTO. */
239
222
  export interface BlogShowPostGetResponseData extends JsonObject {
240
223
  "id": string;
@@ -296,18 +279,8 @@ export interface CategoryListCategoriesGetQuery extends QueryParams {
296
279
  "page_size"?: number | null;
297
280
  }
298
281
  /** Backend response type: models::CategoryListResponse. */
299
- export interface CategoryListCategoriesGetResponseDataCategories extends JsonObject {
300
- "id": string;
301
- "parent_id"?: string | null;
302
- "name"?: string | null;
303
- "description"?: string | null;
304
- "status": number;
305
- "requires_confirmation": boolean;
306
- "created_at": string;
307
- "updated_at": string;
308
- }
309
282
  export interface CategoryListCategoriesGetResponseData extends JsonObject {
310
- "categories": CategoryListCategoriesGetResponseDataCategories[];
283
+ "categories": BackendJson<"CategoryResponseDTO">[];
311
284
  "page_number": number;
312
285
  "page_size": number;
313
286
  "total_items": number;
@@ -339,9 +312,12 @@ export interface CategoryCreateCategoryPostResponse extends ApiEnvelope<Category
339
312
  export interface CategoryDetachFromTargetDeleteQuery extends QueryParams {
340
313
  "junction_id": string;
341
314
  }
342
- /** Backend response type: handler-defined response. */
343
- export interface CategoryDetachFromTargetDeleteResponse extends ApiEnvelope<JsonValue> {
315
+ /** Backend response type: EmptyAPIResponse. */
316
+ export interface CategoryDetachFromTargetDeleteResponseData extends JsonObject {
317
+ "status": string;
318
+ "message": string;
344
319
  }
320
+ export type CategoryDetachFromTargetDeleteResponse = CategoryDetachFromTargetDeleteResponseData;
345
321
  /** Backend response type: Vec<models::CategoryAttachmentDTO>. */
346
322
  export interface CategoryListOnTargetGetResponseItem extends JsonObject {
347
323
  "id": string;
@@ -367,9 +343,12 @@ export interface CategoryAttachToTargetPostResponseData extends JsonObject {
367
343
  }
368
344
  export interface CategoryAttachToTargetPostResponse extends ApiEnvelope<CategoryAttachToTargetPostResponseData> {
369
345
  }
370
- /** Backend response type: handler-defined response. */
371
- export interface CategoryDeleteCategoryDeleteResponse extends ApiEnvelope<JsonValue> {
346
+ /** Backend response type: EmptyAPIResponse. */
347
+ export interface CategoryDeleteCategoryDeleteResponseData extends JsonObject {
348
+ "status": string;
349
+ "message": string;
372
350
  }
351
+ export type CategoryDeleteCategoryDeleteResponse = CategoryDeleteCategoryDeleteResponseData;
373
352
  /** Backend response type: models::CategoryResponseDTO. */
374
353
  export interface CategoryShowCategoryGetResponseData extends JsonObject {
375
354
  "id": string;
@@ -431,18 +410,8 @@ export interface CommentListCommentsGetQuery extends QueryParams {
431
410
  "page_size"?: number | null;
432
411
  }
433
412
  /** Backend response type: models::CommentListResponse. */
434
- export interface CommentListCommentsGetResponseDataComments extends JsonObject {
435
- "id": string;
436
- "user_id": string;
437
- "author_id"?: string | null;
438
- "parent_id"?: string | null;
439
- "content": string;
440
- "status": number;
441
- "created_at": string;
442
- "updated_at": string;
443
- }
444
413
  export interface CommentListCommentsGetResponseData extends JsonObject {
445
- "comments": CommentListCommentsGetResponseDataComments[];
414
+ "comments": BackendJson<"CommentResponseDTO">[];
446
415
  "page_number": number;
447
416
  "page_size": number;
448
417
  "total_items": number;
@@ -497,9 +466,12 @@ export interface CommentCreateOnTargetPostResponseData extends JsonObject {
497
466
  }
498
467
  export interface CommentCreateOnTargetPostResponse extends ApiEnvelope<CommentCreateOnTargetPostResponseData> {
499
468
  }
500
- /** Backend response type: handler-defined response. */
501
- export interface CommentDeleteCommentDeleteResponse extends ApiEnvelope<JsonValue> {
469
+ /** Backend response type: EmptyAPIResponse. */
470
+ export interface CommentDeleteCommentDeleteResponseData extends JsonObject {
471
+ "status": string;
472
+ "message": string;
502
473
  }
474
+ export type CommentDeleteCommentDeleteResponse = CommentDeleteCommentDeleteResponseData;
503
475
  /** Backend response type: models::CommentResponseDTO. */
504
476
  export interface CommentShowCommentGetResponseData extends JsonObject {
505
477
  "id": string;
@@ -555,17 +527,8 @@ export interface ContentListContentsGetQuery extends QueryParams {
555
527
  "page_size"?: number | null;
556
528
  }
557
529
  /** Backend response type: models::ContentListResponse. */
558
- export interface ContentListContentsGetResponseDataContents extends JsonObject {
559
- "id": string;
560
- "created_by_user_id": string;
561
- "created_by_author_id"?: string | null;
562
- "content"?: string | null;
563
- "auto_saved_content"?: string | null;
564
- "created_at": string;
565
- "updated_at": string;
566
- }
567
530
  export interface ContentListContentsGetResponseData extends JsonObject {
568
- "contents": ContentListContentsGetResponseDataContents[];
531
+ "contents": BackendJson<"ContentResponseDTO">[];
569
532
  "page_number": number;
570
533
  "page_size": number;
571
534
  "total_items": number;
@@ -593,16 +556,18 @@ export interface ContentCreateContentPostResponse extends ApiEnvelope<ContentCre
593
556
  export interface ContentDetachFromTargetDeleteQuery extends QueryParams {
594
557
  "junction_id": string;
595
558
  }
596
- /** Backend response type: handler-defined response. */
597
- export interface ContentDetachFromTargetDeleteResponse extends ApiEnvelope<JsonValue> {
559
+ /** Backend response type: EmptyAPIResponse. */
560
+ export interface ContentDetachFromTargetDeleteResponseData extends JsonObject {
561
+ "status": string;
562
+ "message": string;
598
563
  }
564
+ export type ContentDetachFromTargetDeleteResponse = ContentDetachFromTargetDeleteResponseData;
599
565
  /** Backend response type: Vec<models::ContentAttachmentDTO>. */
600
- export type ContentListOnTargetGetResponseItemContentType = "Primary" | "Secondary" | "Description" | "Complementary" | "Explanation" | "FullDetail";
601
566
  export interface ContentListOnTargetGetResponseItem extends JsonObject {
602
567
  "id": string;
603
568
  "content_id": string;
604
569
  "target_id": string;
605
- "content_type": ContentListOnTargetGetResponseItemContentType;
570
+ "content_type": BackendJson<"ContentType">;
606
571
  "sort_order": number;
607
572
  "priority"?: number | null;
608
573
  "created_at": string;
@@ -610,29 +575,30 @@ export interface ContentListOnTargetGetResponseItem extends JsonObject {
610
575
  export interface ContentListOnTargetGetResponse extends ApiEnvelope<ContentListOnTargetGetResponseItem[]> {
611
576
  }
612
577
  /** Backend request type: models::ContentAttachRequest. */
613
- export type ContentAttachToTargetPostInputContentType = "Primary" | "Secondary" | "Description" | "Complementary" | "Explanation" | "FullDetail";
614
578
  export interface ContentAttachToTargetPostInput extends JsonObject {
615
579
  "content_id": string;
616
- "content_type": ContentAttachToTargetPostInputContentType;
580
+ "content_type": BackendJson<"ContentType">;
617
581
  "sort_order"?: number | null;
618
582
  "priority"?: number | null;
619
583
  }
620
584
  /** Backend response type: models::ContentAttachmentDTO. */
621
- export type ContentAttachToTargetPostResponseDataContentType = "Primary" | "Secondary" | "Description" | "Complementary" | "Explanation" | "FullDetail";
622
585
  export interface ContentAttachToTargetPostResponseData extends JsonObject {
623
586
  "id": string;
624
587
  "content_id": string;
625
588
  "target_id": string;
626
- "content_type": ContentAttachToTargetPostResponseDataContentType;
589
+ "content_type": BackendJson<"ContentType">;
627
590
  "sort_order": number;
628
591
  "priority"?: number | null;
629
592
  "created_at": string;
630
593
  }
631
594
  export interface ContentAttachToTargetPostResponse extends ApiEnvelope<ContentAttachToTargetPostResponseData> {
632
595
  }
633
- /** Backend response type: handler-defined response. */
634
- export interface ContentDeleteContentDeleteResponse extends ApiEnvelope<JsonValue> {
596
+ /** Backend response type: EmptyAPIResponse. */
597
+ export interface ContentDeleteContentDeleteResponseData extends JsonObject {
598
+ "status": string;
599
+ "message": string;
635
600
  }
601
+ export type ContentDeleteContentDeleteResponse = ContentDeleteContentDeleteResponseData;
636
602
  /** Backend response type: models::ContentResponseDTO. */
637
603
  export interface ContentShowContentGetResponseData extends JsonObject {
638
604
  "id": string;
@@ -692,7 +658,7 @@ export interface ContentUpdateContentPutResponseData extends JsonObject {
692
658
  export interface ContentUpdateContentPutResponse extends ApiEnvelope<ContentUpdateContentPutResponseData> {
693
659
  }
694
660
  /** Backend response type: infera_flow_sdk::FlowIntegrationResponse. */
695
- export interface IntegrationFlowIntegrationShowGetResponse extends ApiEnvelope<JsonValue> {
661
+ export interface IntegrationFlowIntegrationShowGetResponse extends ApiEnvelope<BackendJson<"infera_flow_sdk::FlowIntegrationResponse">> {
696
662
  }
697
663
  /** Backend query type: models::InventoryListQuery. */
698
664
  export interface InventoryListInventoriesGetQuery extends QueryParams {
@@ -702,19 +668,8 @@ export interface InventoryListInventoriesGetQuery extends QueryParams {
702
668
  "page_size"?: number | null;
703
669
  }
704
670
  /** Backend response type: models::InventoryListResponse. */
705
- export interface InventoryListInventoriesGetResponseDataInventories extends JsonObject {
706
- "id": string;
707
- "variant_id": string;
708
- "warehouse_id": string;
709
- "priority": number;
710
- "quantity": number;
711
- "reserved": number;
712
- "available": number;
713
- "created_at": string;
714
- "updated_at": string;
715
- }
716
671
  export interface InventoryListInventoriesGetResponseData extends JsonObject {
717
- "inventories": InventoryListInventoriesGetResponseDataInventories[];
672
+ "inventories": BackendJson<"InventoryResponseDTO">[];
718
673
  "page_number": number;
719
674
  "page_size": number;
720
675
  "total_items": number;
@@ -742,9 +697,12 @@ export interface InventoryCreateInventoryPostResponseData extends JsonObject {
742
697
  }
743
698
  export interface InventoryCreateInventoryPostResponse extends ApiEnvelope<InventoryCreateInventoryPostResponseData> {
744
699
  }
745
- /** Backend response type: handler-defined response. */
746
- export interface InventoryDeleteInventoryDeleteResponse extends ApiEnvelope<JsonValue> {
700
+ /** Backend response type: EmptyAPIResponse. */
701
+ export interface InventoryDeleteInventoryDeleteResponseData extends JsonObject {
702
+ "status": string;
703
+ "message": string;
747
704
  }
705
+ export type InventoryDeleteInventoryDeleteResponse = InventoryDeleteInventoryDeleteResponseData;
748
706
  /** Backend response type: models::InventoryResponseDTO. */
749
707
  export interface InventoryShowInventoryGetResponseData extends JsonObject {
750
708
  "id": string;
@@ -807,18 +765,8 @@ export interface StockMovementListStockMovementsGetQuery extends QueryParams {
807
765
  "page_size"?: number | null;
808
766
  }
809
767
  /** Backend response type: models::StockMovementListResponse. */
810
- export interface StockMovementListStockMovementsGetResponseDataStockMovements extends JsonObject {
811
- "id": string;
812
- "variant_id": string;
813
- "warehouse_id": string;
814
- "type": string;
815
- "quantity": number;
816
- "reference_id"?: string | null;
817
- "reason"?: string | null;
818
- "created_at": string;
819
- }
820
768
  export interface StockMovementListStockMovementsGetResponseData extends JsonObject {
821
- "stock_movements": StockMovementListStockMovementsGetResponseDataStockMovements[];
769
+ "stock_movements": BackendJson<"StockMovementResponseDTO">[];
822
770
  "page_number": number;
823
771
  "page_size": number;
824
772
  "total_items": number;
@@ -853,16 +801,8 @@ export interface InventoryListWarehousesGetQuery extends QueryParams {
853
801
  "page_size"?: number | null;
854
802
  }
855
803
  /** Backend response type: models::WarehouseListResponse. */
856
- export interface InventoryListWarehousesGetResponseDataWarehouses extends JsonObject {
857
- "id": string;
858
- "name": string;
859
- "location": string;
860
- "capacity": number;
861
- "created_at": string;
862
- "updated_at": string;
863
- }
864
804
  export interface InventoryListWarehousesGetResponseData extends JsonObject {
865
- "warehouses": InventoryListWarehousesGetResponseDataWarehouses[];
805
+ "warehouses": BackendJson<"WarehouseResponseDTO">[];
866
806
  "page_number": number;
867
807
  "page_size": number;
868
808
  "total_items": number;
@@ -886,9 +826,12 @@ export interface InventoryCreateWarehousePostResponseData extends JsonObject {
886
826
  }
887
827
  export interface InventoryCreateWarehousePostResponse extends ApiEnvelope<InventoryCreateWarehousePostResponseData> {
888
828
  }
889
- /** Backend response type: handler-defined response. */
890
- export interface InventoryDeleteWarehouseDeleteResponse extends ApiEnvelope<JsonValue> {
829
+ /** Backend response type: EmptyAPIResponse. */
830
+ export interface InventoryDeleteWarehouseDeleteResponseData extends JsonObject {
831
+ "status": string;
832
+ "message": string;
891
833
  }
834
+ export type InventoryDeleteWarehouseDeleteResponse = InventoryDeleteWarehouseDeleteResponseData;
892
835
  /** Backend response type: models::WarehouseResponseDTO. */
893
836
  export interface InventoryShowWarehouseGetResponseData extends JsonObject {
894
837
  "id": string;
@@ -934,26 +877,137 @@ export interface InventoryUpdateWarehousePutResponseData extends JsonObject {
934
877
  }
935
878
  export interface InventoryUpdateWarehousePutResponse extends ApiEnvelope<InventoryUpdateWarehousePutResponseData> {
936
879
  }
880
+ /** Backend response type: Vec<entity::podcast::Model>. */
881
+ export interface PodcastListGetResponseItem extends JsonObject {
882
+ "id": string;
883
+ "user_id": string;
884
+ "granted_by_user_id": string;
885
+ "target_id": string;
886
+ "access_level": BackendJson<"AccessLevel">;
887
+ "created_at": string;
888
+ "deleted_at"?: string | null;
889
+ }
890
+ export interface PodcastListGetResponse extends ApiEnvelope<PodcastListGetResponseItem[]> {
891
+ }
892
+ /** Backend request type: models::PodcastInput. */
893
+ export interface PodcastCreatePostInput extends JsonObject {
894
+ "title": string;
895
+ "description"?: string | null;
896
+ "cover_image_url"?: string | null;
897
+ "status"?: number | null;
898
+ }
899
+ /** Backend response type: entity::podcast::Model. */
900
+ export interface PodcastCreatePostResponseData extends JsonObject {
901
+ "id": string;
902
+ "user_id": string;
903
+ "granted_by_user_id": string;
904
+ "target_id": string;
905
+ "access_level": BackendJson<"AccessLevel">;
906
+ "created_at": string;
907
+ "deleted_at"?: string | null;
908
+ }
909
+ export interface PodcastCreatePostResponse extends ApiEnvelope<PodcastCreatePostResponseData> {
910
+ }
911
+ /** Backend response type: EmptyAPIResponse. */
912
+ export interface PodcastRemoveDeleteResponseData extends JsonObject {
913
+ "status": string;
914
+ "message": string;
915
+ }
916
+ export type PodcastRemoveDeleteResponse = PodcastRemoveDeleteResponseData;
917
+ /** Backend response type: models::PodcastDetail. */
918
+ export interface PodcastShowGetResponseData extends JsonObject {
919
+ "id": string;
920
+ "user_id": string;
921
+ "granted_by_user_id": string;
922
+ "target_id": string;
923
+ "access_level": BackendJson<"AccessLevel">;
924
+ "created_at": string;
925
+ "deleted_at"?: string | null;
926
+ "episodes": BackendJson<"entity::podcast_episode::Model">[];
927
+ }
928
+ export interface PodcastShowGetResponse extends ApiEnvelope<PodcastShowGetResponseData> {
929
+ }
930
+ /** Backend request type: models::PodcastUpdate. */
931
+ export interface PodcastUpdatePatchInput extends JsonObject {
932
+ "title"?: string | null;
933
+ "description"?: string | null;
934
+ "cover_image_url"?: string | null;
935
+ "status"?: number | null;
936
+ }
937
+ /** Backend response type: entity::podcast::Model. */
938
+ export interface PodcastUpdatePatchResponseData extends JsonObject {
939
+ "id": string;
940
+ "user_id": string;
941
+ "granted_by_user_id": string;
942
+ "target_id": string;
943
+ "access_level": BackendJson<"AccessLevel">;
944
+ "created_at": string;
945
+ "deleted_at"?: string | null;
946
+ }
947
+ export interface PodcastUpdatePatchResponse extends ApiEnvelope<PodcastUpdatePatchResponseData> {
948
+ }
949
+ /** Backend request type: models::EpisodeInput. */
950
+ export interface PodcastCreateEpisodePostInput extends JsonObject {
951
+ "title": string;
952
+ "description"?: string | null;
953
+ "sort_order"?: number | null;
954
+ "audio_source": string;
955
+ "external_audio_url"?: string | null;
956
+ "drm_media_id"?: string | null;
957
+ "duration_seconds"?: number | null;
958
+ "status"?: number | null;
959
+ "published_at"?: string | null;
960
+ }
961
+ /** Backend response type: entity::podcast_episode::Model. */
962
+ export interface PodcastCreateEpisodePostResponseData extends JsonObject {
963
+ "id": string;
964
+ "user_id": string;
965
+ "granted_by_user_id": string;
966
+ "target_id": string;
967
+ "access_level": BackendJson<"AccessLevel">;
968
+ "created_at": string;
969
+ "deleted_at"?: string | null;
970
+ }
971
+ export interface PodcastCreateEpisodePostResponse extends ApiEnvelope<PodcastCreateEpisodePostResponseData> {
972
+ }
973
+ /** Backend response type: EmptyAPIResponse. */
974
+ export interface PodcastRemoveEpisodeDeleteResponseData extends JsonObject {
975
+ "status": string;
976
+ "message": string;
977
+ }
978
+ export type PodcastRemoveEpisodeDeleteResponse = PodcastRemoveEpisodeDeleteResponseData;
979
+ /** Backend request type: models::EpisodeUpdate. */
980
+ export interface PodcastUpdateEpisodePatchInput extends JsonObject {
981
+ "title"?: string | null;
982
+ "description"?: string | null;
983
+ "sort_order"?: number | null;
984
+ "audio_source"?: string | null;
985
+ "external_audio_url"?: string | null;
986
+ "drm_media_id"?: string | null;
987
+ "duration_seconds"?: number | null;
988
+ "status"?: number | null;
989
+ "published_at"?: string | null;
990
+ }
991
+ /** Backend response type: entity::podcast_episode::Model. */
992
+ export interface PodcastUpdateEpisodePatchResponseData extends JsonObject {
993
+ "id": string;
994
+ "user_id": string;
995
+ "granted_by_user_id": string;
996
+ "target_id": string;
997
+ "access_level": BackendJson<"AccessLevel">;
998
+ "created_at": string;
999
+ "deleted_at"?: string | null;
1000
+ }
1001
+ export interface PodcastUpdateEpisodePatchResponse extends ApiEnvelope<PodcastUpdateEpisodePatchResponseData> {
1002
+ }
937
1003
  /** Backend query type: PaginationQuery. */
938
1004
  export interface ServicePricingListPricingGetQuery extends QueryParams {
939
1005
  "page_number"?: number | null;
940
1006
  "page_size"?: number | null;
941
1007
  }
942
1008
  /** Backend response type: models::ServicePricingListResponse. */
943
- export interface ServicePricingListPricingGetResponseDataPricings extends JsonObject {
944
- "id": string;
945
- "service_name": string;
946
- "display_name"?: string | null;
947
- "hourly_price": number;
948
- "monthly_price": number;
949
- "annual_price": number;
950
- "currency": string;
951
- "status": number;
952
- "created_at": string;
953
- "updated_at": string;
954
- }
955
1009
  export interface ServicePricingListPricingGetResponseData extends JsonObject {
956
- "pricings": ServicePricingListPricingGetResponseDataPricings[];
1010
+ "pricings": BackendJson<"ServicePricingResponseDTO">[];
957
1011
  "page_number": number;
958
1012
  "page_size": number;
959
1013
  "total_items": number;
@@ -985,9 +1039,12 @@ export interface ServicePricingCreatePricingPostResponseData extends JsonObject
985
1039
  }
986
1040
  export interface ServicePricingCreatePricingPostResponse extends ApiEnvelope<ServicePricingCreatePricingPostResponseData> {
987
1041
  }
988
- /** Backend response type: handler-defined response. */
989
- export interface ServicePricingDeletePricingDeleteResponse extends ApiEnvelope<JsonValue> {
1042
+ /** Backend response type: EmptyAPIResponse. */
1043
+ export interface ServicePricingDeletePricingDeleteResponseData extends JsonObject {
1044
+ "status": string;
1045
+ "message": string;
990
1046
  }
1047
+ export type ServicePricingDeletePricingDeleteResponse = ServicePricingDeletePricingDeleteResponseData;
991
1048
  /** Backend response type: models::ServicePricingResponseDTO. */
992
1049
  export interface ServicePricingShowPricingGetResponseData extends JsonObject {
993
1050
  "id": string;
@@ -1057,32 +1114,32 @@ export interface ServicePricingUpdatePricingPutResponse extends ApiEnvelope<Serv
1057
1114
  export interface ReactionDeleteOnTargetDeleteQuery extends QueryParams {
1058
1115
  "reaction_id": string;
1059
1116
  }
1060
- /** Backend response type: handler-defined response. */
1061
- export interface ReactionDeleteOnTargetDeleteResponse extends ApiEnvelope<JsonValue> {
1117
+ /** Backend response type: EmptyAPIResponse. */
1118
+ export interface ReactionDeleteOnTargetDeleteResponseData extends JsonObject {
1119
+ "status": string;
1120
+ "message": string;
1062
1121
  }
1122
+ export type ReactionDeleteOnTargetDeleteResponse = ReactionDeleteOnTargetDeleteResponseData;
1063
1123
  /** Backend response type: Vec<models::ReactionResponseDTO>. */
1064
- export type ReactionListOnTargetGetResponseItemReactionType = "Like" | "Dislike" | "Favorite" | "Bookmark" | "Share";
1065
1124
  export interface ReactionListOnTargetGetResponseItem extends JsonObject {
1066
1125
  "id": string;
1067
1126
  "user_id": string;
1068
1127
  "target_id": string;
1069
- "reaction_type": ReactionListOnTargetGetResponseItemReactionType;
1128
+ "reaction_type": BackendJson<"ReactionType">;
1070
1129
  "created_at": string;
1071
1130
  }
1072
1131
  export interface ReactionListOnTargetGetResponse extends ApiEnvelope<ReactionListOnTargetGetResponseItem[]> {
1073
1132
  }
1074
1133
  /** Backend request type: models::ReactionCreateRequest. */
1075
- export type ReactionCreateOnTargetPostInputReactionType = "Like" | "Dislike" | "Favorite" | "Bookmark" | "Share";
1076
1134
  export interface ReactionCreateOnTargetPostInput extends JsonObject {
1077
- "reaction_type": ReactionCreateOnTargetPostInputReactionType;
1135
+ "reaction_type": BackendJson<"ReactionType">;
1078
1136
  }
1079
1137
  /** Backend response type: models::ReactionResponseDTO. */
1080
- export type ReactionCreateOnTargetPostResponseDataReactionType = "Like" | "Dislike" | "Favorite" | "Bookmark" | "Share";
1081
1138
  export interface ReactionCreateOnTargetPostResponseData extends JsonObject {
1082
1139
  "id": string;
1083
1140
  "user_id": string;
1084
1141
  "target_id": string;
1085
- "reaction_type": ReactionCreateOnTargetPostResponseDataReactionType;
1142
+ "reaction_type": BackendJson<"ReactionType">;
1086
1143
  "created_at": string;
1087
1144
  }
1088
1145
  export interface ReactionCreateOnTargetPostResponse extends ApiEnvelope<ReactionCreateOnTargetPostResponseData> {
@@ -1093,17 +1150,8 @@ export interface RequestListRequestsGetQuery extends QueryParams {
1093
1150
  "page_size"?: number | null;
1094
1151
  }
1095
1152
  /** Backend response type: models::RequestListResponse. */
1096
- export interface RequestListRequestsGetResponseDataRequests extends JsonObject {
1097
- "id": string;
1098
- "key": string;
1099
- "name": string;
1100
- "description"?: string | null;
1101
- "status": number;
1102
- "created_at": string;
1103
- "updated_at": string;
1104
- }
1105
1153
  export interface RequestListRequestsGetResponseData extends JsonObject {
1106
- "requests": RequestListRequestsGetResponseDataRequests[];
1154
+ "requests": BackendJson<"RequestResponseDTO">[];
1107
1155
  "page_number": number;
1108
1156
  "page_size": number;
1109
1157
  "total_items": number;
@@ -1133,9 +1181,12 @@ export interface RequestCreateRequestPostResponse extends ApiEnvelope<RequestCre
1133
1181
  export interface RequestDetachFromTargetDeleteQuery extends QueryParams {
1134
1182
  "junction_id": string;
1135
1183
  }
1136
- /** Backend response type: handler-defined response. */
1137
- export interface RequestDetachFromTargetDeleteResponse extends ApiEnvelope<JsonValue> {
1184
+ /** Backend response type: EmptyAPIResponse. */
1185
+ export interface RequestDetachFromTargetDeleteResponseData extends JsonObject {
1186
+ "status": string;
1187
+ "message": string;
1138
1188
  }
1189
+ export type RequestDetachFromTargetDeleteResponse = RequestDetachFromTargetDeleteResponseData;
1139
1190
  /** Backend response type: Vec<models::RequestAttachmentDTO>. */
1140
1191
  export interface RequestListOnTargetGetResponseItem extends JsonObject {
1141
1192
  "id": string;
@@ -1161,9 +1212,12 @@ export interface RequestAttachToTargetPostResponseData extends JsonObject {
1161
1212
  }
1162
1213
  export interface RequestAttachToTargetPostResponse extends ApiEnvelope<RequestAttachToTargetPostResponseData> {
1163
1214
  }
1164
- /** Backend response type: handler-defined response. */
1165
- export interface RequestDeleteRequestDeleteResponse extends ApiEnvelope<JsonValue> {
1215
+ /** Backend response type: EmptyAPIResponse. */
1216
+ export interface RequestDeleteRequestDeleteResponseData extends JsonObject {
1217
+ "status": string;
1218
+ "message": string;
1166
1219
  }
1220
+ export type RequestDeleteRequestDeleteResponse = RequestDeleteRequestDeleteResponseData;
1167
1221
  /** Backend response type: models::RequestResponseDTO. */
1168
1222
  export interface RequestShowRequestGetResponseData extends JsonObject {
1169
1223
  "id": string;
@@ -1261,21 +1315,8 @@ export interface UserSampleListSamplesGetQuery extends QueryParams {
1261
1315
  "page_size"?: number | null;
1262
1316
  }
1263
1317
  /** Backend response type: models::UserSampleListResponse. */
1264
- export interface UserSampleListSamplesGetResponseDataSamples extends JsonObject {
1265
- "id": string;
1266
- "slug": string;
1267
- "name": string;
1268
- "description"?: string | null;
1269
- "project_slug"?: string | null;
1270
- "preview_url"?: string | null;
1271
- "thumbnail_url"?: string | null;
1272
- "category"?: string | null;
1273
- "status": number;
1274
- "created_at": string;
1275
- "updated_at": string;
1276
- }
1277
1318
  export interface UserSampleListSamplesGetResponseData extends JsonObject {
1278
- "samples": UserSampleListSamplesGetResponseDataSamples[];
1319
+ "samples": BackendJson<"UserSampleResponseDTO">[];
1279
1320
  "page_number": number;
1280
1321
  "page_size": number;
1281
1322
  "total_items": number;
@@ -1309,9 +1350,12 @@ export interface UserSampleCreateSamplePostResponseData extends JsonObject {
1309
1350
  }
1310
1351
  export interface UserSampleCreateSamplePostResponse extends ApiEnvelope<UserSampleCreateSamplePostResponseData> {
1311
1352
  }
1312
- /** Backend response type: handler-defined response. */
1313
- export interface UserSampleDeleteSampleDeleteResponse extends ApiEnvelope<JsonValue> {
1353
+ /** Backend response type: EmptyAPIResponse. */
1354
+ export interface UserSampleDeleteSampleDeleteResponseData extends JsonObject {
1355
+ "status": string;
1356
+ "message": string;
1314
1357
  }
1358
+ export type UserSampleDeleteSampleDeleteResponse = UserSampleDeleteSampleDeleteResponseData;
1315
1359
  /** Backend response type: models::UserSampleResponseDTO. */
1316
1360
  export interface UserSampleShowSampleGetResponseData extends JsonObject {
1317
1361
  "id": string;
@@ -1388,23 +1432,8 @@ export interface UserSampleListSampleVariablesGetQuery extends QueryParams {
1388
1432
  "page_size"?: number | null;
1389
1433
  }
1390
1434
  /** Backend response type: models::SampleVariableListResponse. */
1391
- export interface UserSampleListSampleVariablesGetResponseDataVariables extends JsonObject {
1392
- "id": string;
1393
- "sample_id": string;
1394
- "sample_slug"?: string | null;
1395
- "sample_name"?: string | null;
1396
- "key": string;
1397
- "label": string;
1398
- "value"?: string | null;
1399
- "group_name"?: string | null;
1400
- "variable_type": string;
1401
- "description"?: string | null;
1402
- "sort_order": number;
1403
- "created_at": string;
1404
- "updated_at": string;
1405
- }
1406
1435
  export interface UserSampleListSampleVariablesGetResponseData extends JsonObject {
1407
- "variables": UserSampleListSampleVariablesGetResponseDataVariables[];
1436
+ "variables": BackendJson<"SampleVariableResponseDTO">[];
1408
1437
  "page_number": number;
1409
1438
  "page_size": number;
1410
1439
  "total_items": number;
@@ -1454,32 +1483,20 @@ export interface UserSampleListAllVariablesGetQuery extends QueryParams {
1454
1483
  "page_size"?: number | null;
1455
1484
  }
1456
1485
  /** Backend response type: models::SampleVariableListResponse. */
1457
- export interface UserSampleListAllVariablesGetResponseDataVariables extends JsonObject {
1458
- "id": string;
1459
- "sample_id": string;
1460
- "sample_slug"?: string | null;
1461
- "sample_name"?: string | null;
1462
- "key": string;
1463
- "label": string;
1464
- "value"?: string | null;
1465
- "group_name"?: string | null;
1466
- "variable_type": string;
1467
- "description"?: string | null;
1468
- "sort_order": number;
1469
- "created_at": string;
1470
- "updated_at": string;
1471
- }
1472
1486
  export interface UserSampleListAllVariablesGetResponseData extends JsonObject {
1473
- "variables": UserSampleListAllVariablesGetResponseDataVariables[];
1487
+ "variables": BackendJson<"SampleVariableResponseDTO">[];
1474
1488
  "page_number": number;
1475
1489
  "page_size": number;
1476
1490
  "total_items": number;
1477
1491
  }
1478
1492
  export interface UserSampleListAllVariablesGetResponse extends ApiEnvelope<UserSampleListAllVariablesGetResponseData> {
1479
1493
  }
1480
- /** Backend response type: handler-defined response. */
1481
- export interface UserSampleDeleteVariableDeleteResponse extends ApiEnvelope<JsonValue> {
1494
+ /** Backend response type: EmptyAPIResponse. */
1495
+ export interface UserSampleDeleteVariableDeleteResponseData extends JsonObject {
1496
+ "status": string;
1497
+ "message": string;
1482
1498
  }
1499
+ export type UserSampleDeleteVariableDeleteResponse = UserSampleDeleteVariableDeleteResponseData;
1483
1500
  /** Backend response type: models::SampleVariableResponseDTO. */
1484
1501
  export interface UserSampleShowVariableGetResponseData extends JsonObject {
1485
1502
  "id": string;
@@ -1560,18 +1577,8 @@ export interface SeoContentListSeoContentsGetQuery extends QueryParams {
1560
1577
  "page_size"?: number | null;
1561
1578
  }
1562
1579
  /** Backend response type: models::SeoContentListResponse. */
1563
- export interface SeoContentListSeoContentsGetResponseDataSeoContents extends JsonObject {
1564
- "id": string;
1565
- "meta_url"?: string | null;
1566
- "meta_title"?: string | null;
1567
- "meta_description"?: string | null;
1568
- "meta_keyword"?: string | null;
1569
- "meta_ld"?: JsonValue | null;
1570
- "created_at": string;
1571
- "updated_at": string;
1572
- }
1573
1580
  export interface SeoContentListSeoContentsGetResponseData extends JsonObject {
1574
- "seo_contents": SeoContentListSeoContentsGetResponseDataSeoContents[];
1581
+ "seo_contents": BackendJson<"SeoContentResponseDTO">[];
1575
1582
  "page_number": number;
1576
1583
  "page_size": number;
1577
1584
  "total_items": number;
@@ -1603,9 +1610,12 @@ export interface SeoContentCreateSeoContentPostResponse extends ApiEnvelope<SeoC
1603
1610
  export interface SeoContentDetachFromTargetDeleteQuery extends QueryParams {
1604
1611
  "junction_id": string;
1605
1612
  }
1606
- /** Backend response type: handler-defined response. */
1607
- export interface SeoContentDetachFromTargetDeleteResponse extends ApiEnvelope<JsonValue> {
1613
+ /** Backend response type: EmptyAPIResponse. */
1614
+ export interface SeoContentDetachFromTargetDeleteResponseData extends JsonObject {
1615
+ "status": string;
1616
+ "message": string;
1608
1617
  }
1618
+ export type SeoContentDetachFromTargetDeleteResponse = SeoContentDetachFromTargetDeleteResponseData;
1609
1619
  /** Backend response type: Vec<models::SeoContentAttachmentDTO>. */
1610
1620
  export interface SeoContentListOnTargetGetResponseItem extends JsonObject {
1611
1621
  "id": string;
@@ -1628,9 +1638,12 @@ export interface SeoContentAttachToTargetPostResponseData extends JsonObject {
1628
1638
  }
1629
1639
  export interface SeoContentAttachToTargetPostResponse extends ApiEnvelope<SeoContentAttachToTargetPostResponseData> {
1630
1640
  }
1631
- /** Backend response type: handler-defined response. */
1632
- export interface SeoContentDeleteSeoContentDeleteResponse extends ApiEnvelope<JsonValue> {
1641
+ /** Backend response type: EmptyAPIResponse. */
1642
+ export interface SeoContentDeleteSeoContentDeleteResponseData extends JsonObject {
1643
+ "status": string;
1644
+ "message": string;
1633
1645
  }
1646
+ export type SeoContentDeleteSeoContentDeleteResponse = SeoContentDeleteSeoContentDeleteResponseData;
1634
1647
  /** Backend response type: models::SeoContentResponseDTO. */
1635
1648
  export interface SeoContentShowSeoContentGetResponseData extends JsonObject {
1636
1649
  "id": string;
@@ -1712,26 +1725,8 @@ export interface OrderListOrdersGetQuery extends QueryParams {
1712
1725
  "page_size"?: number | null;
1713
1726
  }
1714
1727
  /** Backend response type: models::OrderListResponse. */
1715
- export interface OrderListOrdersGetResponseDataOrdersItems extends JsonObject {
1716
- "id": string;
1717
- "order_id": string;
1718
- "variant_id": string;
1719
- "quantity": number;
1720
- "unit_price": number;
1721
- "total_price": number;
1722
- "created_at": string;
1723
- }
1724
- export interface OrderListOrdersGetResponseDataOrders extends JsonObject {
1725
- "id": string;
1726
- "user_id": string;
1727
- "status": number;
1728
- "total": number;
1729
- "items": OrderListOrdersGetResponseDataOrdersItems[];
1730
- "created_at": string;
1731
- "updated_at": string;
1732
- }
1733
1728
  export interface OrderListOrdersGetResponseData extends JsonObject {
1734
- "orders": OrderListOrdersGetResponseDataOrders[];
1729
+ "orders": BackendJson<"OrderResponseDTO">[];
1735
1730
  "page_number": number;
1736
1731
  "page_size": number;
1737
1732
  "total_items": number;
@@ -1739,55 +1734,35 @@ export interface OrderListOrdersGetResponseData extends JsonObject {
1739
1734
  export interface OrderListOrdersGetResponse extends ApiEnvelope<OrderListOrdersGetResponseData> {
1740
1735
  }
1741
1736
  /** Backend request type: models::OrderCreateRequest. */
1742
- export interface OrderCreateOrderPostInputItems extends JsonObject {
1743
- "variant_id": string;
1744
- "quantity": number;
1745
- "unit_price": number;
1746
- }
1747
1737
  export interface OrderCreateOrderPostInput extends JsonObject {
1748
1738
  "status"?: number | null;
1749
- "items": OrderCreateOrderPostInputItems[];
1739
+ "items": BackendJson<"OrderItemInput">[];
1750
1740
  }
1751
1741
  /** Backend response type: models::OrderResponseDTO. */
1752
- export interface OrderCreateOrderPostResponseDataItems extends JsonObject {
1753
- "id": string;
1754
- "order_id": string;
1755
- "variant_id": string;
1756
- "quantity": number;
1757
- "unit_price": number;
1758
- "total_price": number;
1759
- "created_at": string;
1760
- }
1761
1742
  export interface OrderCreateOrderPostResponseData extends JsonObject {
1762
1743
  "id": string;
1763
1744
  "user_id": string;
1764
1745
  "status": number;
1765
1746
  "total": number;
1766
- "items": OrderCreateOrderPostResponseDataItems[];
1747
+ "items": BackendJson<"OrderItemResponseDTO">[];
1767
1748
  "created_at": string;
1768
1749
  "updated_at": string;
1769
1750
  }
1770
1751
  export interface OrderCreateOrderPostResponse extends ApiEnvelope<OrderCreateOrderPostResponseData> {
1771
1752
  }
1772
- /** Backend response type: handler-defined response. */
1773
- export interface OrderDeleteOrderDeleteResponse extends ApiEnvelope<JsonValue> {
1753
+ /** Backend response type: EmptyAPIResponse. */
1754
+ export interface OrderDeleteOrderDeleteResponseData extends JsonObject {
1755
+ "status": string;
1756
+ "message": string;
1774
1757
  }
1758
+ export type OrderDeleteOrderDeleteResponse = OrderDeleteOrderDeleteResponseData;
1775
1759
  /** Backend response type: models::OrderResponseDTO. */
1776
- export interface OrderShowOrderGetResponseDataItems extends JsonObject {
1777
- "id": string;
1778
- "order_id": string;
1779
- "variant_id": string;
1780
- "quantity": number;
1781
- "unit_price": number;
1782
- "total_price": number;
1783
- "created_at": string;
1784
- }
1785
1760
  export interface OrderShowOrderGetResponseData extends JsonObject {
1786
1761
  "id": string;
1787
1762
  "user_id": string;
1788
1763
  "status": number;
1789
1764
  "total": number;
1790
- "items": OrderShowOrderGetResponseDataItems[];
1765
+ "items": BackendJson<"OrderItemResponseDTO">[];
1791
1766
  "created_at": string;
1792
1767
  "updated_at": string;
1793
1768
  }
@@ -1798,21 +1773,12 @@ export interface OrderUpdateOrderPatchInput extends JsonObject {
1798
1773
  "status"?: number | null;
1799
1774
  }
1800
1775
  /** Backend response type: models::OrderResponseDTO. */
1801
- export interface OrderUpdateOrderPatchResponseDataItems extends JsonObject {
1802
- "id": string;
1803
- "order_id": string;
1804
- "variant_id": string;
1805
- "quantity": number;
1806
- "unit_price": number;
1807
- "total_price": number;
1808
- "created_at": string;
1809
- }
1810
1776
  export interface OrderUpdateOrderPatchResponseData extends JsonObject {
1811
1777
  "id": string;
1812
1778
  "user_id": string;
1813
1779
  "status": number;
1814
1780
  "total": number;
1815
- "items": OrderUpdateOrderPatchResponseDataItems[];
1781
+ "items": BackendJson<"OrderItemResponseDTO">[];
1816
1782
  "created_at": string;
1817
1783
  "updated_at": string;
1818
1784
  }
@@ -1823,21 +1789,12 @@ export interface OrderUpdateOrderPutInput extends JsonObject {
1823
1789
  "status"?: number | null;
1824
1790
  }
1825
1791
  /** Backend response type: models::OrderResponseDTO. */
1826
- export interface OrderUpdateOrderPutResponseDataItems extends JsonObject {
1827
- "id": string;
1828
- "order_id": string;
1829
- "variant_id": string;
1830
- "quantity": number;
1831
- "unit_price": number;
1832
- "total_price": number;
1833
- "created_at": string;
1834
- }
1835
1792
  export interface OrderUpdateOrderPutResponseData extends JsonObject {
1836
1793
  "id": string;
1837
1794
  "user_id": string;
1838
1795
  "status": number;
1839
1796
  "total": number;
1840
- "items": OrderUpdateOrderPutResponseDataItems[];
1797
+ "items": BackendJson<"OrderItemResponseDTO">[];
1841
1798
  "created_at": string;
1842
1799
  "updated_at": string;
1843
1800
  }
@@ -1862,21 +1819,12 @@ export interface OrderAddOrderItemPostInput extends JsonObject {
1862
1819
  "unit_price": number;
1863
1820
  }
1864
1821
  /** Backend response type: models::OrderResponseDTO. */
1865
- export interface OrderAddOrderItemPostResponseDataItems extends JsonObject {
1866
- "id": string;
1867
- "order_id": string;
1868
- "variant_id": string;
1869
- "quantity": number;
1870
- "unit_price": number;
1871
- "total_price": number;
1872
- "created_at": string;
1873
- }
1874
1822
  export interface OrderAddOrderItemPostResponseData extends JsonObject {
1875
1823
  "id": string;
1876
1824
  "user_id": string;
1877
1825
  "status": number;
1878
1826
  "total": number;
1879
- "items": OrderAddOrderItemPostResponseDataItems[];
1827
+ "items": BackendJson<"OrderItemResponseDTO">[];
1880
1828
  "created_at": string;
1881
1829
  "updated_at": string;
1882
1830
  }
@@ -1894,21 +1842,8 @@ export interface ProductListProductsGetQuery extends QueryParams {
1894
1842
  "city"?: string | null;
1895
1843
  }
1896
1844
  /** Backend response type: models::ProductListResponse. */
1897
- export interface ProductListProductsGetResponseDataProducts extends JsonObject {
1898
- "id": string;
1899
- "name": string;
1900
- "description"?: string | null;
1901
- "sku": JsonValue;
1902
- "status": number;
1903
- "sort_order": number;
1904
- "country_ids"?: string[] | null;
1905
- "province_ids"?: string[] | null;
1906
- "city_ids"?: string[] | null;
1907
- "created_at": string;
1908
- "updated_at": string;
1909
- }
1910
1845
  export interface ProductListProductsGetResponseData extends JsonObject {
1911
- "products": ProductListProductsGetResponseDataProducts[];
1846
+ "products": BackendJson<"ProductResponseDTO">[];
1912
1847
  "page_number": number;
1913
1848
  "page_size": number;
1914
1849
  "total_items": number;
@@ -1942,9 +1877,12 @@ export interface ProductCreateProductPostResponseData extends JsonObject {
1942
1877
  }
1943
1878
  export interface ProductCreateProductPostResponse extends ApiEnvelope<ProductCreateProductPostResponseData> {
1944
1879
  }
1945
- /** Backend response type: handler-defined response. */
1946
- export interface ProductDeleteProductDeleteResponse extends ApiEnvelope<JsonValue> {
1880
+ /** Backend response type: EmptyAPIResponse. */
1881
+ export interface ProductDeleteProductDeleteResponseData extends JsonObject {
1882
+ "status": string;
1883
+ "message": string;
1947
1884
  }
1885
+ export type ProductDeleteProductDeleteResponse = ProductDeleteProductDeleteResponseData;
1948
1886
  /** Backend response type: models::ProductResponseDTO. */
1949
1887
  export interface ProductShowProductGetResponseData extends JsonObject {
1950
1888
  "id": string;
@@ -2021,22 +1959,8 @@ export interface ProductListProductVariantsGetQuery extends QueryParams {
2021
1959
  "page_size"?: number | null;
2022
1960
  }
2023
1961
  /** Backend response type: models::VariantListResponse. */
2024
- export interface ProductListProductVariantsGetResponseDataVariants extends JsonObject {
2025
- "id": string;
2026
- "product_id": string;
2027
- "name": string;
2028
- "sku": JsonValue;
2029
- "price": number;
2030
- "cost": number;
2031
- "weight": number;
2032
- "stock_priority": number;
2033
- "status": number;
2034
- "sort_order": number;
2035
- "created_at": string;
2036
- "updated_at": string;
2037
- }
2038
1962
  export interface ProductListProductVariantsGetResponseData extends JsonObject {
2039
- "variants": ProductListProductVariantsGetResponseDataVariants[];
1963
+ "variants": BackendJson<"VariantResponseDTO">[];
2040
1964
  "page_number": number;
2041
1965
  "page_size": number;
2042
1966
  "total_items": number;
@@ -2078,31 +2002,20 @@ export interface ProductListVariantsGetQuery extends QueryParams {
2078
2002
  "page_size"?: number | null;
2079
2003
  }
2080
2004
  /** Backend response type: models::VariantListResponse. */
2081
- export interface ProductListVariantsGetResponseDataVariants extends JsonObject {
2082
- "id": string;
2083
- "product_id": string;
2084
- "name": string;
2085
- "sku": JsonValue;
2086
- "price": number;
2087
- "cost": number;
2088
- "weight": number;
2089
- "stock_priority": number;
2090
- "status": number;
2091
- "sort_order": number;
2092
- "created_at": string;
2093
- "updated_at": string;
2094
- }
2095
2005
  export interface ProductListVariantsGetResponseData extends JsonObject {
2096
- "variants": ProductListVariantsGetResponseDataVariants[];
2006
+ "variants": BackendJson<"VariantResponseDTO">[];
2097
2007
  "page_number": number;
2098
2008
  "page_size": number;
2099
2009
  "total_items": number;
2100
2010
  }
2101
2011
  export interface ProductListVariantsGetResponse extends ApiEnvelope<ProductListVariantsGetResponseData> {
2102
2012
  }
2103
- /** Backend response type: handler-defined response. */
2104
- export interface ProductDeleteVariantDeleteResponse extends ApiEnvelope<JsonValue> {
2013
+ /** Backend response type: EmptyAPIResponse. */
2014
+ export interface ProductDeleteVariantDeleteResponseData extends JsonObject {
2015
+ "status": string;
2016
+ "message": string;
2105
2017
  }
2018
+ export type ProductDeleteVariantDeleteResponse = ProductDeleteVariantDeleteResponseData;
2106
2019
  /** Backend response type: models::VariantResponseDTO. */
2107
2020
  export interface ProductShowVariantGetResponseData extends JsonObject {
2108
2021
  "id": string;
@@ -2182,15 +2095,8 @@ export interface TagListTagsGetQuery extends QueryParams {
2182
2095
  "page_size"?: number | null;
2183
2096
  }
2184
2097
  /** Backend response type: models::TagListResponse. */
2185
- export interface TagListTagsGetResponseDataTags extends JsonObject {
2186
- "id": string;
2187
- "name": string;
2188
- "status": number;
2189
- "created_at": string;
2190
- "updated_at": string;
2191
- }
2192
2098
  export interface TagListTagsGetResponseData extends JsonObject {
2193
- "tags": TagListTagsGetResponseDataTags[];
2099
+ "tags": BackendJson<"TagResponseDTO">[];
2194
2100
  "page_number": number;
2195
2101
  "page_size": number;
2196
2102
  "total_items": number;
@@ -2216,9 +2122,12 @@ export interface TagCreateTagPostResponse extends ApiEnvelope<TagCreateTagPostRe
2216
2122
  export interface TagDetachFromTargetDeleteQuery extends QueryParams {
2217
2123
  "junction_id": string;
2218
2124
  }
2219
- /** Backend response type: handler-defined response. */
2220
- export interface TagDetachFromTargetDeleteResponse extends ApiEnvelope<JsonValue> {
2125
+ /** Backend response type: EmptyAPIResponse. */
2126
+ export interface TagDetachFromTargetDeleteResponseData extends JsonObject {
2127
+ "status": string;
2128
+ "message": string;
2221
2129
  }
2130
+ export type TagDetachFromTargetDeleteResponse = TagDetachFromTargetDeleteResponseData;
2222
2131
  /** Backend response type: Vec<models::TagAttachmentDTO>. */
2223
2132
  export interface TagListOnTargetGetResponseItem extends JsonObject {
2224
2133
  "id": string;
@@ -2244,9 +2153,12 @@ export interface TagAttachToTargetPostResponseData extends JsonObject {
2244
2153
  }
2245
2154
  export interface TagAttachToTargetPostResponse extends ApiEnvelope<TagAttachToTargetPostResponseData> {
2246
2155
  }
2247
- /** Backend response type: handler-defined response. */
2248
- export interface TagDeleteTagDeleteResponse extends ApiEnvelope<JsonValue> {
2156
+ /** Backend response type: EmptyAPIResponse. */
2157
+ export interface TagDeleteTagDeleteResponseData extends JsonObject {
2158
+ "status": string;
2159
+ "message": string;
2249
2160
  }
2161
+ export type TagDeleteTagDeleteResponse = TagDeleteTagDeleteResponseData;
2250
2162
  /** Backend response type: models::TagResponseDTO. */
2251
2163
  export interface TagShowTagGetResponseData extends JsonObject {
2252
2164
  "id": string;