@faiber/faiber-modules 0.2.0 → 0.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,2123 @@
1
+ import type { ApiEnvelope, JsonObject, JsonValue, QueryParams } from "@faiber/sdk-core";
2
+ /** Generated route contracts. Dynamic payload members remain JSON-safe and are documented with their Rust source type. */
3
+ /** Backend response type: response without a declared JSON model. */
4
+ export interface RouterStatusRouteGetResponse extends ApiEnvelope<JsonValue> {
5
+ }
6
+ /** Backend response type: response without a declared JSON model. */
7
+ export interface RouterBeautifiedOpenapiGetResponse extends ApiEnvelope<JsonValue> {
8
+ }
9
+ /** Backend response type: response without a declared JSON model. */
10
+ export interface RouterOpenapiJsonGetResponse extends ApiEnvelope<JsonValue> {
11
+ }
12
+ /** Backend response type: Vec<models::AccessResponseDTO>. */
13
+ export interface AccessListOnTargetGetResponseItem extends JsonObject {
14
+ "id": string;
15
+ "user_id": string;
16
+ "granted_by_user_id": string;
17
+ "target_id": string;
18
+ "access_level": JsonValue;
19
+ "created_at": string;
20
+ }
21
+ export interface AccessListOnTargetGetResponse extends ApiEnvelope<AccessListOnTargetGetResponseItem[]> {
22
+ }
23
+ /** Backend request type: models::AccessGrantRequest. */
24
+ export interface AccessGrantOnTargetPostInput extends JsonObject {
25
+ "user_id": string;
26
+ "access_level": JsonValue;
27
+ }
28
+ /** Backend response type: models::AccessResponseDTO. */
29
+ export interface AccessGrantOnTargetPostResponseData extends JsonObject {
30
+ "id": string;
31
+ "user_id": string;
32
+ "granted_by_user_id": string;
33
+ "target_id": string;
34
+ "access_level": JsonValue;
35
+ "created_at": string;
36
+ }
37
+ export interface AccessGrantOnTargetPostResponse extends ApiEnvelope<AccessGrantOnTargetPostResponseData> {
38
+ }
39
+ /** Backend response type: response without a declared JSON model. */
40
+ export interface AccessRevokeOnTargetDeleteResponse extends ApiEnvelope<JsonValue> {
41
+ }
42
+ /** Backend request type: models::AccessUpdateRequest. */
43
+ export interface AccessUpdateOnTargetPutInput extends JsonObject {
44
+ "access_level": JsonValue;
45
+ }
46
+ /** Backend response type: models::AccessResponseDTO. */
47
+ export interface AccessUpdateOnTargetPutResponseData extends JsonObject {
48
+ "id": string;
49
+ "user_id": string;
50
+ "granted_by_user_id": string;
51
+ "target_id": string;
52
+ "access_level": JsonValue;
53
+ "created_at": string;
54
+ }
55
+ export interface AccessUpdateOnTargetPutResponse extends ApiEnvelope<AccessUpdateOnTargetPutResponseData> {
56
+ }
57
+ /** Backend response type: Vec<models::AuditLogResponseDTO>. */
58
+ export interface AuditLogListOnTargetGetResponseItem extends JsonObject {
59
+ "id": string;
60
+ "user_id": string;
61
+ "action": string;
62
+ "target_id"?: string;
63
+ "metadata"?: JsonValue;
64
+ "created_at": string;
65
+ }
66
+ export interface AuditLogListOnTargetGetResponse extends ApiEnvelope<AuditLogListOnTargetGetResponseItem[]> {
67
+ }
68
+ /** Backend response type: SessionResponse. */
69
+ export interface SessionGetSelfGetResponseData extends JsonObject {
70
+ "user_id": string;
71
+ "roles": string[];
72
+ "permissions": string[];
73
+ }
74
+ export interface SessionGetSelfGetResponse extends ApiEnvelope<SessionGetSelfGetResponseData> {
75
+ }
76
+ /** Backend query type: PaginationQuery. */
77
+ export interface AuthorListAuthorsGetQuery extends QueryParams {
78
+ "page_number"?: number;
79
+ "page_size"?: number;
80
+ }
81
+ /** Backend response type: models::AuthorListResponse. */
82
+ export interface AuthorListAuthorsGetResponseData extends JsonObject {
83
+ "authors": JsonValue[];
84
+ "page_number": number;
85
+ "page_size": number;
86
+ "total_items": number;
87
+ }
88
+ export interface AuthorListAuthorsGetResponse extends ApiEnvelope<AuthorListAuthorsGetResponseData> {
89
+ }
90
+ /** Backend request type: models::AuthorCreateRequest. */
91
+ export interface AuthorCreateAuthorPostInput extends JsonObject {
92
+ "user_id": string;
93
+ "name": string;
94
+ "bio"?: string;
95
+ "avatar_url"?: string;
96
+ "social_links"?: JsonValue;
97
+ "website"?: string;
98
+ }
99
+ /** Backend response type: models::AuthorResponseDTO. */
100
+ export interface AuthorCreateAuthorPostResponseData extends JsonObject {
101
+ "id": string;
102
+ "user_id": string;
103
+ "name": string;
104
+ "bio"?: string;
105
+ "avatar_url"?: string;
106
+ "social_links"?: JsonValue;
107
+ "website"?: string;
108
+ "created_at": string;
109
+ "updated_at": string;
110
+ }
111
+ export interface AuthorCreateAuthorPostResponse extends ApiEnvelope<AuthorCreateAuthorPostResponseData> {
112
+ }
113
+ /** Backend response type: response without a declared JSON model. */
114
+ export interface AuthorDeleteAuthorDeleteResponse extends ApiEnvelope<JsonValue> {
115
+ }
116
+ /** Backend response type: models::AuthorResponseDTO. */
117
+ export interface AuthorShowAuthorGetResponseData extends JsonObject {
118
+ "id": string;
119
+ "user_id": string;
120
+ "name": string;
121
+ "bio"?: string;
122
+ "avatar_url"?: string;
123
+ "social_links"?: JsonValue;
124
+ "website"?: string;
125
+ "created_at": string;
126
+ "updated_at": string;
127
+ }
128
+ export interface AuthorShowAuthorGetResponse extends ApiEnvelope<AuthorShowAuthorGetResponseData> {
129
+ }
130
+ /** Backend request type: models::AuthorUpdateRequest. */
131
+ export interface AuthorUpdateAuthorPatchInput extends JsonObject {
132
+ "name"?: string;
133
+ "bio"?: string | null;
134
+ "avatar_url"?: string | null;
135
+ "social_links"?: JsonValue | null;
136
+ "website"?: string | null;
137
+ }
138
+ /** Backend response type: models::AuthorResponseDTO. */
139
+ export interface AuthorUpdateAuthorPatchResponseData extends JsonObject {
140
+ "id": string;
141
+ "user_id": string;
142
+ "name": string;
143
+ "bio"?: string;
144
+ "avatar_url"?: string;
145
+ "social_links"?: JsonValue;
146
+ "website"?: string;
147
+ "created_at": string;
148
+ "updated_at": string;
149
+ }
150
+ export interface AuthorUpdateAuthorPatchResponse extends ApiEnvelope<AuthorUpdateAuthorPatchResponseData> {
151
+ }
152
+ /** Backend request type: models::AuthorUpdateRequest. */
153
+ export interface AuthorUpdateAuthorPutInput extends JsonObject {
154
+ "name"?: string;
155
+ "bio"?: string | null;
156
+ "avatar_url"?: string | null;
157
+ "social_links"?: JsonValue | null;
158
+ "website"?: string | null;
159
+ }
160
+ /** Backend response type: models::AuthorResponseDTO. */
161
+ export interface AuthorUpdateAuthorPutResponseData extends JsonObject {
162
+ "id": string;
163
+ "user_id": string;
164
+ "name": string;
165
+ "bio"?: string;
166
+ "avatar_url"?: string;
167
+ "social_links"?: JsonValue;
168
+ "website"?: string;
169
+ "created_at": string;
170
+ "updated_at": string;
171
+ }
172
+ export interface AuthorUpdateAuthorPutResponse extends ApiEnvelope<AuthorUpdateAuthorPutResponseData> {
173
+ }
174
+ /** Backend query type: PaginationQuery. */
175
+ export interface BlogListPostsGetQuery extends QueryParams {
176
+ "page_number"?: number;
177
+ "page_size"?: number;
178
+ }
179
+ /** Backend response type: models::PostListResponse. */
180
+ export interface BlogListPostsGetResponseData extends JsonObject {
181
+ "posts": JsonValue[];
182
+ "page_number": number;
183
+ "page_size": number;
184
+ "total_items": number;
185
+ }
186
+ export interface BlogListPostsGetResponse extends ApiEnvelope<BlogListPostsGetResponseData> {
187
+ }
188
+ /** Backend request type: models::PostCreateRequest. */
189
+ export interface BlogCreatePostPostInput extends JsonObject {
190
+ "title": string;
191
+ "description"?: string;
192
+ "content"?: string;
193
+ "image_url"?: string;
194
+ "status"?: number;
195
+ }
196
+ /** Backend response type: models::PostResponseDTO. */
197
+ export interface BlogCreatePostPostResponseData extends JsonObject {
198
+ "id": string;
199
+ "title": string;
200
+ "description"?: string;
201
+ "content"?: string;
202
+ "image_url"?: string;
203
+ "status": number;
204
+ "created_at": string;
205
+ "updated_at": string;
206
+ }
207
+ export interface BlogCreatePostPostResponse extends ApiEnvelope<BlogCreatePostPostResponseData> {
208
+ }
209
+ /** Backend response type: response without a declared JSON model. */
210
+ export interface BlogDeletePostDeleteResponse extends ApiEnvelope<JsonValue> {
211
+ }
212
+ /** Backend response type: models::PostResponseDTO. */
213
+ export interface BlogShowPostGetResponseData extends JsonObject {
214
+ "id": string;
215
+ "title": string;
216
+ "description"?: string;
217
+ "content"?: string;
218
+ "image_url"?: string;
219
+ "status": number;
220
+ "created_at": string;
221
+ "updated_at": string;
222
+ }
223
+ export interface BlogShowPostGetResponse extends ApiEnvelope<BlogShowPostGetResponseData> {
224
+ }
225
+ /** Backend request type: models::PostUpdateRequest. */
226
+ export interface BlogUpdatePostPatchInput extends JsonObject {
227
+ "title"?: string;
228
+ "description"?: string;
229
+ "content"?: string;
230
+ "image_url"?: string;
231
+ "status"?: number;
232
+ }
233
+ /** Backend response type: models::PostResponseDTO. */
234
+ export interface BlogUpdatePostPatchResponseData extends JsonObject {
235
+ "id": string;
236
+ "title": string;
237
+ "description"?: string;
238
+ "content"?: string;
239
+ "image_url"?: string;
240
+ "status": number;
241
+ "created_at": string;
242
+ "updated_at": string;
243
+ }
244
+ export interface BlogUpdatePostPatchResponse extends ApiEnvelope<BlogUpdatePostPatchResponseData> {
245
+ }
246
+ /** Backend request type: models::PostUpdateRequest. */
247
+ export interface BlogUpdatePostPutInput extends JsonObject {
248
+ "title"?: string;
249
+ "description"?: string;
250
+ "content"?: string;
251
+ "image_url"?: string;
252
+ "status"?: number;
253
+ }
254
+ /** Backend response type: models::PostResponseDTO. */
255
+ export interface BlogUpdatePostPutResponseData extends JsonObject {
256
+ "id": string;
257
+ "title": string;
258
+ "description"?: string;
259
+ "content"?: string;
260
+ "image_url"?: string;
261
+ "status": number;
262
+ "created_at": string;
263
+ "updated_at": string;
264
+ }
265
+ export interface BlogUpdatePostPutResponse extends ApiEnvelope<BlogUpdatePostPutResponseData> {
266
+ }
267
+ /** Backend query type: PaginationQuery. */
268
+ export interface CategoryListCategoriesGetQuery extends QueryParams {
269
+ "page_number"?: number;
270
+ "page_size"?: number;
271
+ }
272
+ /** Backend response type: models::CategoryListResponse. */
273
+ export interface CategoryListCategoriesGetResponseData extends JsonObject {
274
+ "categories": JsonValue[];
275
+ "page_number": number;
276
+ "page_size": number;
277
+ "total_items": number;
278
+ }
279
+ export interface CategoryListCategoriesGetResponse extends ApiEnvelope<CategoryListCategoriesGetResponseData> {
280
+ }
281
+ /** Backend request type: models::CategoryCreateRequest. */
282
+ export interface CategoryCreateCategoryPostInput extends JsonObject {
283
+ "parent_id"?: string;
284
+ "name"?: string;
285
+ "description"?: string;
286
+ "status"?: number;
287
+ "requires_confirmation"?: boolean;
288
+ }
289
+ /** Backend response type: models::CategoryResponseDTO. */
290
+ export interface CategoryCreateCategoryPostResponseData extends JsonObject {
291
+ "id": string;
292
+ "parent_id"?: string;
293
+ "name"?: string;
294
+ "description"?: string;
295
+ "status": number;
296
+ "requires_confirmation": boolean;
297
+ "created_at": string;
298
+ "updated_at": string;
299
+ }
300
+ export interface CategoryCreateCategoryPostResponse extends ApiEnvelope<CategoryCreateCategoryPostResponseData> {
301
+ }
302
+ /** Backend query type: models::CategoryDetachQuery. */
303
+ export interface CategoryDetachFromTargetDeleteQuery extends QueryParams {
304
+ "junction_id": string;
305
+ }
306
+ /** Backend response type: response without a declared JSON model. */
307
+ export interface CategoryDetachFromTargetDeleteResponse extends ApiEnvelope<JsonValue> {
308
+ }
309
+ /** Backend response type: Vec<models::CategoryAttachmentDTO>. */
310
+ export interface CategoryListOnTargetGetResponseItem extends JsonObject {
311
+ "id": string;
312
+ "category_id": string;
313
+ "target_id": string;
314
+ "sort_order": number;
315
+ "created_at": string;
316
+ }
317
+ export interface CategoryListOnTargetGetResponse extends ApiEnvelope<CategoryListOnTargetGetResponseItem[]> {
318
+ }
319
+ /** Backend request type: models::CategoryAttachRequest. */
320
+ export interface CategoryAttachToTargetPostInput extends JsonObject {
321
+ "category_id": string;
322
+ "sort_order"?: number;
323
+ }
324
+ /** Backend response type: models::CategoryAttachmentDTO. */
325
+ export interface CategoryAttachToTargetPostResponseData extends JsonObject {
326
+ "id": string;
327
+ "category_id": string;
328
+ "target_id": string;
329
+ "sort_order": number;
330
+ "created_at": string;
331
+ }
332
+ export interface CategoryAttachToTargetPostResponse extends ApiEnvelope<CategoryAttachToTargetPostResponseData> {
333
+ }
334
+ /** Backend response type: response without a declared JSON model. */
335
+ export interface CategoryDeleteCategoryDeleteResponse extends ApiEnvelope<JsonValue> {
336
+ }
337
+ /** Backend response type: models::CategoryResponseDTO. */
338
+ export interface CategoryShowCategoryGetResponseData extends JsonObject {
339
+ "id": string;
340
+ "parent_id"?: string;
341
+ "name"?: string;
342
+ "description"?: string;
343
+ "status": number;
344
+ "requires_confirmation": boolean;
345
+ "created_at": string;
346
+ "updated_at": string;
347
+ }
348
+ export interface CategoryShowCategoryGetResponse extends ApiEnvelope<CategoryShowCategoryGetResponseData> {
349
+ }
350
+ /** Backend request type: models::CategoryUpdateRequest. */
351
+ export interface CategoryUpdateCategoryPatchInput extends JsonObject {
352
+ "parent_id"?: string | null;
353
+ "name"?: string | null;
354
+ "description"?: string | null;
355
+ "status"?: number;
356
+ "requires_confirmation"?: boolean;
357
+ }
358
+ /** Backend response type: models::CategoryResponseDTO. */
359
+ export interface CategoryUpdateCategoryPatchResponseData extends JsonObject {
360
+ "id": string;
361
+ "parent_id"?: string;
362
+ "name"?: string;
363
+ "description"?: string;
364
+ "status": number;
365
+ "requires_confirmation": boolean;
366
+ "created_at": string;
367
+ "updated_at": string;
368
+ }
369
+ export interface CategoryUpdateCategoryPatchResponse extends ApiEnvelope<CategoryUpdateCategoryPatchResponseData> {
370
+ }
371
+ /** Backend request type: models::CategoryUpdateRequest. */
372
+ export interface CategoryUpdateCategoryPutInput extends JsonObject {
373
+ "parent_id"?: string | null;
374
+ "name"?: string | null;
375
+ "description"?: string | null;
376
+ "status"?: number;
377
+ "requires_confirmation"?: boolean;
378
+ }
379
+ /** Backend response type: models::CategoryResponseDTO. */
380
+ export interface CategoryUpdateCategoryPutResponseData extends JsonObject {
381
+ "id": string;
382
+ "parent_id"?: string;
383
+ "name"?: string;
384
+ "description"?: string;
385
+ "status": number;
386
+ "requires_confirmation": boolean;
387
+ "created_at": string;
388
+ "updated_at": string;
389
+ }
390
+ export interface CategoryUpdateCategoryPutResponse extends ApiEnvelope<CategoryUpdateCategoryPutResponseData> {
391
+ }
392
+ /** Backend query type: PaginationQuery. */
393
+ export interface CommentListCommentsGetQuery extends QueryParams {
394
+ "page_number"?: number;
395
+ "page_size"?: number;
396
+ }
397
+ /** Backend response type: models::CommentListResponse. */
398
+ export interface CommentListCommentsGetResponseData extends JsonObject {
399
+ "comments": JsonValue[];
400
+ "page_number": number;
401
+ "page_size": number;
402
+ "total_items": number;
403
+ }
404
+ export interface CommentListCommentsGetResponse extends ApiEnvelope<CommentListCommentsGetResponseData> {
405
+ }
406
+ /** Backend request type: models::CommentCreateRequest. */
407
+ export interface CommentCreateCommentPostInput extends JsonObject {
408
+ "content": string;
409
+ "parent_id"?: string;
410
+ "author_id"?: string;
411
+ "status"?: number;
412
+ }
413
+ /** Backend response type: models::CommentResponseDTO. */
414
+ export interface CommentCreateCommentPostResponseData extends JsonObject {
415
+ "id": string;
416
+ "user_id": string;
417
+ "author_id"?: string;
418
+ "parent_id"?: string;
419
+ "content": string;
420
+ "status": number;
421
+ "created_at": string;
422
+ "updated_at": string;
423
+ }
424
+ export interface CommentCreateCommentPostResponse extends ApiEnvelope<CommentCreateCommentPostResponseData> {
425
+ }
426
+ /** Backend response type: Vec<models::CommentAttachmentDTO>. */
427
+ export interface CommentListOnTargetGetResponseItem extends JsonObject {
428
+ "id": string;
429
+ "comment_id": string;
430
+ "target_id": string;
431
+ "sort_order": number;
432
+ "created_at": string;
433
+ }
434
+ export interface CommentListOnTargetGetResponse extends ApiEnvelope<CommentListOnTargetGetResponseItem[]> {
435
+ }
436
+ /** Backend request type: models::CommentOnTargetRequest. */
437
+ export interface CommentCreateOnTargetPostInput extends JsonObject {
438
+ "content": string;
439
+ "parent_id"?: string;
440
+ "author_id"?: string;
441
+ "status"?: number;
442
+ "sort_order"?: number;
443
+ }
444
+ /** Backend response type: models::CommentAttachmentDTO. */
445
+ export interface CommentCreateOnTargetPostResponseData extends JsonObject {
446
+ "id": string;
447
+ "comment_id": string;
448
+ "target_id": string;
449
+ "sort_order": number;
450
+ "created_at": string;
451
+ }
452
+ export interface CommentCreateOnTargetPostResponse extends ApiEnvelope<CommentCreateOnTargetPostResponseData> {
453
+ }
454
+ /** Backend response type: response without a declared JSON model. */
455
+ export interface CommentDeleteCommentDeleteResponse extends ApiEnvelope<JsonValue> {
456
+ }
457
+ /** Backend response type: models::CommentResponseDTO. */
458
+ export interface CommentShowCommentGetResponseData extends JsonObject {
459
+ "id": string;
460
+ "user_id": string;
461
+ "author_id"?: string;
462
+ "parent_id"?: string;
463
+ "content": string;
464
+ "status": number;
465
+ "created_at": string;
466
+ "updated_at": string;
467
+ }
468
+ export interface CommentShowCommentGetResponse extends ApiEnvelope<CommentShowCommentGetResponseData> {
469
+ }
470
+ /** Backend request type: models::CommentUpdateRequest. */
471
+ export interface CommentUpdateCommentPatchInput extends JsonObject {
472
+ "content"?: string;
473
+ "status"?: number;
474
+ }
475
+ /** Backend response type: models::CommentResponseDTO. */
476
+ export interface CommentUpdateCommentPatchResponseData extends JsonObject {
477
+ "id": string;
478
+ "user_id": string;
479
+ "author_id"?: string;
480
+ "parent_id"?: string;
481
+ "content": string;
482
+ "status": number;
483
+ "created_at": string;
484
+ "updated_at": string;
485
+ }
486
+ export interface CommentUpdateCommentPatchResponse extends ApiEnvelope<CommentUpdateCommentPatchResponseData> {
487
+ }
488
+ /** Backend request type: models::CommentUpdateRequest. */
489
+ export interface CommentUpdateCommentPutInput extends JsonObject {
490
+ "content"?: string;
491
+ "status"?: number;
492
+ }
493
+ /** Backend response type: models::CommentResponseDTO. */
494
+ export interface CommentUpdateCommentPutResponseData extends JsonObject {
495
+ "id": string;
496
+ "user_id": string;
497
+ "author_id"?: string;
498
+ "parent_id"?: string;
499
+ "content": string;
500
+ "status": number;
501
+ "created_at": string;
502
+ "updated_at": string;
503
+ }
504
+ export interface CommentUpdateCommentPutResponse extends ApiEnvelope<CommentUpdateCommentPutResponseData> {
505
+ }
506
+ /** Backend query type: PaginationQuery. */
507
+ export interface ContentListContentsGetQuery extends QueryParams {
508
+ "page_number"?: number;
509
+ "page_size"?: number;
510
+ }
511
+ /** Backend response type: models::ContentListResponse. */
512
+ export interface ContentListContentsGetResponseData extends JsonObject {
513
+ "contents": JsonValue[];
514
+ "page_number": number;
515
+ "page_size": number;
516
+ "total_items": number;
517
+ }
518
+ export interface ContentListContentsGetResponse extends ApiEnvelope<ContentListContentsGetResponseData> {
519
+ }
520
+ /** Backend request type: models::ContentCreateRequest. */
521
+ export interface ContentCreateContentPostInput extends JsonObject {
522
+ "content"?: string;
523
+ "created_by_author_id"?: string;
524
+ }
525
+ /** Backend response type: models::ContentResponseDTO. */
526
+ export interface ContentCreateContentPostResponseData extends JsonObject {
527
+ "id": string;
528
+ "created_by_user_id": string;
529
+ "created_by_author_id"?: string;
530
+ "content"?: string;
531
+ "auto_saved_content"?: string;
532
+ "created_at": string;
533
+ "updated_at": string;
534
+ }
535
+ export interface ContentCreateContentPostResponse extends ApiEnvelope<ContentCreateContentPostResponseData> {
536
+ }
537
+ /** Backend query type: models::ContentDetachQuery. */
538
+ export interface ContentDetachFromTargetDeleteQuery extends QueryParams {
539
+ "junction_id": string;
540
+ }
541
+ /** Backend response type: response without a declared JSON model. */
542
+ export interface ContentDetachFromTargetDeleteResponse extends ApiEnvelope<JsonValue> {
543
+ }
544
+ /** Backend response type: Vec<models::ContentAttachmentDTO>. */
545
+ export interface ContentListOnTargetGetResponseItem extends JsonObject {
546
+ "id": string;
547
+ "content_id": string;
548
+ "target_id": string;
549
+ "content_type": JsonValue;
550
+ "sort_order": number;
551
+ "priority"?: number;
552
+ "created_at": string;
553
+ }
554
+ export interface ContentListOnTargetGetResponse extends ApiEnvelope<ContentListOnTargetGetResponseItem[]> {
555
+ }
556
+ /** Backend request type: models::ContentAttachRequest. */
557
+ export interface ContentAttachToTargetPostInput extends JsonObject {
558
+ "content_id": string;
559
+ "content_type": JsonValue;
560
+ "sort_order"?: number;
561
+ "priority"?: number;
562
+ }
563
+ /** Backend response type: models::ContentAttachmentDTO. */
564
+ export interface ContentAttachToTargetPostResponseData extends JsonObject {
565
+ "id": string;
566
+ "content_id": string;
567
+ "target_id": string;
568
+ "content_type": JsonValue;
569
+ "sort_order": number;
570
+ "priority"?: number;
571
+ "created_at": string;
572
+ }
573
+ export interface ContentAttachToTargetPostResponse extends ApiEnvelope<ContentAttachToTargetPostResponseData> {
574
+ }
575
+ /** Backend response type: response without a declared JSON model. */
576
+ export interface ContentDeleteContentDeleteResponse extends ApiEnvelope<JsonValue> {
577
+ }
578
+ /** Backend response type: models::ContentResponseDTO. */
579
+ export interface ContentShowContentGetResponseData extends JsonObject {
580
+ "id": string;
581
+ "created_by_user_id": string;
582
+ "created_by_author_id"?: string;
583
+ "content"?: string;
584
+ "auto_saved_content"?: string;
585
+ "created_at": string;
586
+ "updated_at": string;
587
+ }
588
+ export interface ContentShowContentGetResponse extends ApiEnvelope<ContentShowContentGetResponseData> {
589
+ }
590
+ /** Backend request type: models::ContentUpdateRequest. */
591
+ export interface ContentUpdateContentPatchInput extends JsonObject {
592
+ "content"?: string;
593
+ "auto_saved_content"?: string;
594
+ }
595
+ /** Backend query type: models::ContentUpdateQuery. */
596
+ export interface ContentUpdateContentPatchQuery extends QueryParams {
597
+ "autosave"?: boolean;
598
+ "host"?: string;
599
+ "target_id"?: string;
600
+ }
601
+ /** Backend response type: models::ContentResponseDTO. */
602
+ export interface ContentUpdateContentPatchResponseData extends JsonObject {
603
+ "id": string;
604
+ "created_by_user_id": string;
605
+ "created_by_author_id"?: string;
606
+ "content"?: string;
607
+ "auto_saved_content"?: string;
608
+ "created_at": string;
609
+ "updated_at": string;
610
+ }
611
+ export interface ContentUpdateContentPatchResponse extends ApiEnvelope<ContentUpdateContentPatchResponseData> {
612
+ }
613
+ /** Backend request type: models::ContentUpdateRequest. */
614
+ export interface ContentUpdateContentPutInput extends JsonObject {
615
+ "content"?: string;
616
+ "auto_saved_content"?: string;
617
+ }
618
+ /** Backend query type: models::ContentUpdateQuery. */
619
+ export interface ContentUpdateContentPutQuery extends QueryParams {
620
+ "autosave"?: boolean;
621
+ "host"?: string;
622
+ "target_id"?: string;
623
+ }
624
+ /** Backend response type: models::ContentResponseDTO. */
625
+ export interface ContentUpdateContentPutResponseData extends JsonObject {
626
+ "id": string;
627
+ "created_by_user_id": string;
628
+ "created_by_author_id"?: string;
629
+ "content"?: string;
630
+ "auto_saved_content"?: string;
631
+ "created_at": string;
632
+ "updated_at": string;
633
+ }
634
+ export interface ContentUpdateContentPutResponse extends ApiEnvelope<ContentUpdateContentPutResponseData> {
635
+ }
636
+ /** Backend response type: infera_flow_sdk::FlowIntegrationResponse. */
637
+ export interface IntegrationFlowIntegrationShowGetResponse extends ApiEnvelope<JsonValue> {
638
+ }
639
+ /** Backend query type: models::InventoryListQuery. */
640
+ export interface InventoryListInventoriesGetQuery extends QueryParams {
641
+ "variant_id"?: string;
642
+ "warehouse_id"?: string;
643
+ "page_number"?: number;
644
+ "page_size"?: number;
645
+ }
646
+ /** Backend response type: models::InventoryListResponse. */
647
+ export interface InventoryListInventoriesGetResponseData extends JsonObject {
648
+ "inventories": JsonValue[];
649
+ "page_number": number;
650
+ "page_size": number;
651
+ "total_items": number;
652
+ }
653
+ export interface InventoryListInventoriesGetResponse extends ApiEnvelope<InventoryListInventoriesGetResponseData> {
654
+ }
655
+ /** Backend request type: models::InventoryCreateRequest. */
656
+ export interface InventoryCreateInventoryPostInput extends JsonObject {
657
+ "variant_id": string;
658
+ "warehouse_id": string;
659
+ "priority"?: number;
660
+ "quantity": number;
661
+ }
662
+ /** Backend response type: models::InventoryResponseDTO. */
663
+ export interface InventoryCreateInventoryPostResponseData extends JsonObject {
664
+ "id": string;
665
+ "variant_id": string;
666
+ "warehouse_id": string;
667
+ "priority": number;
668
+ "quantity": number;
669
+ "reserved": number;
670
+ "available": number;
671
+ "created_at": string;
672
+ "updated_at": string;
673
+ }
674
+ export interface InventoryCreateInventoryPostResponse extends ApiEnvelope<InventoryCreateInventoryPostResponseData> {
675
+ }
676
+ /** Backend response type: response without a declared JSON model. */
677
+ export interface InventoryDeleteInventoryDeleteResponse extends ApiEnvelope<JsonValue> {
678
+ }
679
+ /** Backend response type: models::InventoryResponseDTO. */
680
+ export interface InventoryShowInventoryGetResponseData extends JsonObject {
681
+ "id": string;
682
+ "variant_id": string;
683
+ "warehouse_id": string;
684
+ "priority": number;
685
+ "quantity": number;
686
+ "reserved": number;
687
+ "available": number;
688
+ "created_at": string;
689
+ "updated_at": string;
690
+ }
691
+ export interface InventoryShowInventoryGetResponse extends ApiEnvelope<InventoryShowInventoryGetResponseData> {
692
+ }
693
+ /** Backend request type: models::InventoryUpdateRequest. */
694
+ export interface InventoryUpdateInventoryPatchInput extends JsonObject {
695
+ "priority"?: number;
696
+ "quantity"?: number;
697
+ "reserved"?: number;
698
+ }
699
+ /** Backend response type: models::InventoryResponseDTO. */
700
+ export interface InventoryUpdateInventoryPatchResponseData extends JsonObject {
701
+ "id": string;
702
+ "variant_id": string;
703
+ "warehouse_id": string;
704
+ "priority": number;
705
+ "quantity": number;
706
+ "reserved": number;
707
+ "available": number;
708
+ "created_at": string;
709
+ "updated_at": string;
710
+ }
711
+ export interface InventoryUpdateInventoryPatchResponse extends ApiEnvelope<InventoryUpdateInventoryPatchResponseData> {
712
+ }
713
+ /** Backend request type: models::InventoryUpdateRequest. */
714
+ export interface InventoryUpdateInventoryPutInput extends JsonObject {
715
+ "priority"?: number;
716
+ "quantity"?: number;
717
+ "reserved"?: number;
718
+ }
719
+ /** Backend response type: models::InventoryResponseDTO. */
720
+ export interface InventoryUpdateInventoryPutResponseData extends JsonObject {
721
+ "id": string;
722
+ "variant_id": string;
723
+ "warehouse_id": string;
724
+ "priority": number;
725
+ "quantity": number;
726
+ "reserved": number;
727
+ "available": number;
728
+ "created_at": string;
729
+ "updated_at": string;
730
+ }
731
+ export interface InventoryUpdateInventoryPutResponse extends ApiEnvelope<InventoryUpdateInventoryPutResponseData> {
732
+ }
733
+ /** Backend query type: models::StockMovementListQuery. */
734
+ export interface StockMovementListStockMovementsGetQuery extends QueryParams {
735
+ "variant_id"?: string;
736
+ "warehouse_id"?: string;
737
+ "page_number"?: number;
738
+ "page_size"?: number;
739
+ }
740
+ /** Backend response type: models::StockMovementListResponse. */
741
+ export interface StockMovementListStockMovementsGetResponseData extends JsonObject {
742
+ "stock_movements": JsonValue[];
743
+ "page_number": number;
744
+ "page_size": number;
745
+ "total_items": number;
746
+ }
747
+ export interface StockMovementListStockMovementsGetResponse extends ApiEnvelope<StockMovementListStockMovementsGetResponseData> {
748
+ }
749
+ /** Backend request type: models::StockMovementCreateRequest. */
750
+ export interface StockMovementCreateStockMovementPostInput extends JsonObject {
751
+ "variant_id": string;
752
+ "warehouse_id": string;
753
+ "quantity": number;
754
+ "reference_id"?: string;
755
+ "reason"?: string;
756
+ }
757
+ /** Backend response type: models::StockMovementResponseDTO. */
758
+ export interface StockMovementCreateStockMovementPostResponseData extends JsonObject {
759
+ "id": string;
760
+ "variant_id": string;
761
+ "warehouse_id": string;
762
+ "quantity": number;
763
+ "reference_id"?: string;
764
+ "reason"?: string;
765
+ "created_at": string;
766
+ }
767
+ export interface StockMovementCreateStockMovementPostResponse extends ApiEnvelope<StockMovementCreateStockMovementPostResponseData> {
768
+ }
769
+ /** Backend query type: PaginationQuery. */
770
+ export interface InventoryListWarehousesGetQuery extends QueryParams {
771
+ "page_number"?: number;
772
+ "page_size"?: number;
773
+ }
774
+ /** Backend response type: models::WarehouseListResponse. */
775
+ export interface InventoryListWarehousesGetResponseData extends JsonObject {
776
+ "warehouses": JsonValue[];
777
+ "page_number": number;
778
+ "page_size": number;
779
+ "total_items": number;
780
+ }
781
+ export interface InventoryListWarehousesGetResponse extends ApiEnvelope<InventoryListWarehousesGetResponseData> {
782
+ }
783
+ /** Backend request type: models::WarehouseCreateRequest. */
784
+ export interface InventoryCreateWarehousePostInput extends JsonObject {
785
+ "name": string;
786
+ "location": string;
787
+ "capacity": number;
788
+ }
789
+ /** Backend response type: models::WarehouseResponseDTO. */
790
+ export interface InventoryCreateWarehousePostResponseData extends JsonObject {
791
+ "id": string;
792
+ "name": string;
793
+ "location": string;
794
+ "capacity": number;
795
+ "created_at": string;
796
+ "updated_at": string;
797
+ }
798
+ export interface InventoryCreateWarehousePostResponse extends ApiEnvelope<InventoryCreateWarehousePostResponseData> {
799
+ }
800
+ /** Backend response type: response without a declared JSON model. */
801
+ export interface InventoryDeleteWarehouseDeleteResponse extends ApiEnvelope<JsonValue> {
802
+ }
803
+ /** Backend response type: models::WarehouseResponseDTO. */
804
+ export interface InventoryShowWarehouseGetResponseData extends JsonObject {
805
+ "id": string;
806
+ "name": string;
807
+ "location": string;
808
+ "capacity": number;
809
+ "created_at": string;
810
+ "updated_at": string;
811
+ }
812
+ export interface InventoryShowWarehouseGetResponse extends ApiEnvelope<InventoryShowWarehouseGetResponseData> {
813
+ }
814
+ /** Backend request type: models::WarehouseUpdateRequest. */
815
+ export interface InventoryUpdateWarehousePatchInput extends JsonObject {
816
+ "name"?: string;
817
+ "location"?: string;
818
+ "capacity"?: number;
819
+ }
820
+ /** Backend response type: models::WarehouseResponseDTO. */
821
+ export interface InventoryUpdateWarehousePatchResponseData extends JsonObject {
822
+ "id": string;
823
+ "name": string;
824
+ "location": string;
825
+ "capacity": number;
826
+ "created_at": string;
827
+ "updated_at": string;
828
+ }
829
+ export interface InventoryUpdateWarehousePatchResponse extends ApiEnvelope<InventoryUpdateWarehousePatchResponseData> {
830
+ }
831
+ /** Backend request type: models::WarehouseUpdateRequest. */
832
+ export interface InventoryUpdateWarehousePutInput extends JsonObject {
833
+ "name"?: string;
834
+ "location"?: string;
835
+ "capacity"?: number;
836
+ }
837
+ /** Backend response type: models::WarehouseResponseDTO. */
838
+ export interface InventoryUpdateWarehousePutResponseData extends JsonObject {
839
+ "id": string;
840
+ "name": string;
841
+ "location": string;
842
+ "capacity": number;
843
+ "created_at": string;
844
+ "updated_at": string;
845
+ }
846
+ export interface InventoryUpdateWarehousePutResponse extends ApiEnvelope<InventoryUpdateWarehousePutResponseData> {
847
+ }
848
+ /** Backend query type: PaginationQuery. */
849
+ export interface ServicePricingListPricingGetQuery extends QueryParams {
850
+ "page_number"?: number;
851
+ "page_size"?: number;
852
+ }
853
+ /** Backend response type: models::ServicePricingListResponse. */
854
+ export interface ServicePricingListPricingGetResponseData extends JsonObject {
855
+ "pricings": JsonValue[];
856
+ "page_number": number;
857
+ "page_size": number;
858
+ "total_items": number;
859
+ }
860
+ export interface ServicePricingListPricingGetResponse extends ApiEnvelope<ServicePricingListPricingGetResponseData> {
861
+ }
862
+ /** Backend request type: models::ServicePricingCreateRequest. */
863
+ export interface ServicePricingCreatePricingPostInput extends JsonObject {
864
+ "service_name": string;
865
+ "display_name"?: string;
866
+ "hourly_price": number;
867
+ "monthly_price": number;
868
+ "annual_price": number;
869
+ "currency"?: string;
870
+ "status"?: number;
871
+ }
872
+ /** Backend response type: models::ServicePricingResponseDTO. */
873
+ export interface ServicePricingCreatePricingPostResponseData extends JsonObject {
874
+ "id": string;
875
+ "service_name": string;
876
+ "display_name"?: string;
877
+ "hourly_price": number;
878
+ "monthly_price": number;
879
+ "annual_price": number;
880
+ "currency": string;
881
+ "status": number;
882
+ "created_at": string;
883
+ "updated_at": string;
884
+ }
885
+ export interface ServicePricingCreatePricingPostResponse extends ApiEnvelope<ServicePricingCreatePricingPostResponseData> {
886
+ }
887
+ /** Backend response type: response without a declared JSON model. */
888
+ export interface ServicePricingDeletePricingDeleteResponse extends ApiEnvelope<JsonValue> {
889
+ }
890
+ /** Backend response type: models::ServicePricingResponseDTO. */
891
+ export interface ServicePricingShowPricingGetResponseData extends JsonObject {
892
+ "id": string;
893
+ "service_name": string;
894
+ "display_name"?: string;
895
+ "hourly_price": number;
896
+ "monthly_price": number;
897
+ "annual_price": number;
898
+ "currency": string;
899
+ "status": number;
900
+ "created_at": string;
901
+ "updated_at": string;
902
+ }
903
+ export interface ServicePricingShowPricingGetResponse extends ApiEnvelope<ServicePricingShowPricingGetResponseData> {
904
+ }
905
+ /** Backend request type: models::ServicePricingUpdateRequest. */
906
+ export interface ServicePricingUpdatePricingPatchInput extends JsonObject {
907
+ "service_name"?: string;
908
+ "display_name"?: string | null;
909
+ "hourly_price"?: number;
910
+ "monthly_price"?: number;
911
+ "annual_price"?: number;
912
+ "currency"?: string;
913
+ "status"?: number;
914
+ }
915
+ /** Backend response type: models::ServicePricingResponseDTO. */
916
+ export interface ServicePricingUpdatePricingPatchResponseData extends JsonObject {
917
+ "id": string;
918
+ "service_name": string;
919
+ "display_name"?: string;
920
+ "hourly_price": number;
921
+ "monthly_price": number;
922
+ "annual_price": number;
923
+ "currency": string;
924
+ "status": number;
925
+ "created_at": string;
926
+ "updated_at": string;
927
+ }
928
+ export interface ServicePricingUpdatePricingPatchResponse extends ApiEnvelope<ServicePricingUpdatePricingPatchResponseData> {
929
+ }
930
+ /** Backend request type: models::ServicePricingUpdateRequest. */
931
+ export interface ServicePricingUpdatePricingPutInput extends JsonObject {
932
+ "service_name"?: string;
933
+ "display_name"?: string | null;
934
+ "hourly_price"?: number;
935
+ "monthly_price"?: number;
936
+ "annual_price"?: number;
937
+ "currency"?: string;
938
+ "status"?: number;
939
+ }
940
+ /** Backend response type: models::ServicePricingResponseDTO. */
941
+ export interface ServicePricingUpdatePricingPutResponseData extends JsonObject {
942
+ "id": string;
943
+ "service_name": string;
944
+ "display_name"?: string;
945
+ "hourly_price": number;
946
+ "monthly_price": number;
947
+ "annual_price": number;
948
+ "currency": string;
949
+ "status": number;
950
+ "created_at": string;
951
+ "updated_at": string;
952
+ }
953
+ export interface ServicePricingUpdatePricingPutResponse extends ApiEnvelope<ServicePricingUpdatePricingPutResponseData> {
954
+ }
955
+ /** Backend query type: models::ReactionDeleteQuery. */
956
+ export interface ReactionDeleteOnTargetDeleteQuery extends QueryParams {
957
+ "reaction_id": string;
958
+ }
959
+ /** Backend response type: response without a declared JSON model. */
960
+ export interface ReactionDeleteOnTargetDeleteResponse extends ApiEnvelope<JsonValue> {
961
+ }
962
+ /** Backend response type: Vec<models::ReactionResponseDTO>. */
963
+ export interface ReactionListOnTargetGetResponseItem extends JsonObject {
964
+ "id": string;
965
+ "user_id": string;
966
+ "target_id": string;
967
+ "reaction_type": JsonValue;
968
+ "created_at": string;
969
+ }
970
+ export interface ReactionListOnTargetGetResponse extends ApiEnvelope<ReactionListOnTargetGetResponseItem[]> {
971
+ }
972
+ /** Backend request type: models::ReactionCreateRequest. */
973
+ export interface ReactionCreateOnTargetPostInput extends JsonObject {
974
+ "reaction_type": JsonValue;
975
+ }
976
+ /** Backend response type: models::ReactionResponseDTO. */
977
+ export interface ReactionCreateOnTargetPostResponseData extends JsonObject {
978
+ "id": string;
979
+ "user_id": string;
980
+ "target_id": string;
981
+ "reaction_type": JsonValue;
982
+ "created_at": string;
983
+ }
984
+ export interface ReactionCreateOnTargetPostResponse extends ApiEnvelope<ReactionCreateOnTargetPostResponseData> {
985
+ }
986
+ /** Backend query type: PaginationQuery. */
987
+ export interface RequestListRequestsGetQuery extends QueryParams {
988
+ "page_number"?: number;
989
+ "page_size"?: number;
990
+ }
991
+ /** Backend response type: models::RequestListResponse. */
992
+ export interface RequestListRequestsGetResponseData extends JsonObject {
993
+ "requests": JsonValue[];
994
+ "page_number": number;
995
+ "page_size": number;
996
+ "total_items": number;
997
+ }
998
+ export interface RequestListRequestsGetResponse extends ApiEnvelope<RequestListRequestsGetResponseData> {
999
+ }
1000
+ /** Backend request type: models::RequestCreateRequest. */
1001
+ export interface RequestCreateRequestPostInput extends JsonObject {
1002
+ "key": string;
1003
+ "name": string;
1004
+ "description"?: string;
1005
+ "status"?: number;
1006
+ }
1007
+ /** Backend response type: models::RequestResponseDTO. */
1008
+ export interface RequestCreateRequestPostResponseData extends JsonObject {
1009
+ "id": string;
1010
+ "key": string;
1011
+ "name": string;
1012
+ "description"?: string;
1013
+ "status": number;
1014
+ "created_at": string;
1015
+ "updated_at": string;
1016
+ }
1017
+ export interface RequestCreateRequestPostResponse extends ApiEnvelope<RequestCreateRequestPostResponseData> {
1018
+ }
1019
+ /** Backend query type: models::RequestDetachQuery. */
1020
+ export interface RequestDetachFromTargetDeleteQuery extends QueryParams {
1021
+ "junction_id": string;
1022
+ }
1023
+ /** Backend response type: response without a declared JSON model. */
1024
+ export interface RequestDetachFromTargetDeleteResponse extends ApiEnvelope<JsonValue> {
1025
+ }
1026
+ /** Backend response type: Vec<models::RequestAttachmentDTO>. */
1027
+ export interface RequestListOnTargetGetResponseItem extends JsonObject {
1028
+ "id": string;
1029
+ "request_id": string;
1030
+ "target_id": string;
1031
+ "sort_order": number;
1032
+ "created_at": string;
1033
+ }
1034
+ export interface RequestListOnTargetGetResponse extends ApiEnvelope<RequestListOnTargetGetResponseItem[]> {
1035
+ }
1036
+ /** Backend request type: models::RequestAttachRequest. */
1037
+ export interface RequestAttachToTargetPostInput extends JsonObject {
1038
+ "request_id": string;
1039
+ "sort_order"?: number;
1040
+ }
1041
+ /** Backend response type: models::RequestAttachmentDTO. */
1042
+ export interface RequestAttachToTargetPostResponseData extends JsonObject {
1043
+ "id": string;
1044
+ "request_id": string;
1045
+ "target_id": string;
1046
+ "sort_order": number;
1047
+ "created_at": string;
1048
+ }
1049
+ export interface RequestAttachToTargetPostResponse extends ApiEnvelope<RequestAttachToTargetPostResponseData> {
1050
+ }
1051
+ /** Backend response type: response without a declared JSON model. */
1052
+ export interface RequestDeleteRequestDeleteResponse extends ApiEnvelope<JsonValue> {
1053
+ }
1054
+ /** Backend response type: models::RequestResponseDTO. */
1055
+ export interface RequestShowRequestGetResponseData extends JsonObject {
1056
+ "id": string;
1057
+ "key": string;
1058
+ "name": string;
1059
+ "description"?: string;
1060
+ "status": number;
1061
+ "created_at": string;
1062
+ "updated_at": string;
1063
+ }
1064
+ export interface RequestShowRequestGetResponse extends ApiEnvelope<RequestShowRequestGetResponseData> {
1065
+ }
1066
+ /** Backend request type: models::RequestUpdateRequest. */
1067
+ export interface RequestUpdateRequestPatchInput extends JsonObject {
1068
+ "key"?: string;
1069
+ "name"?: string;
1070
+ "description"?: string | null;
1071
+ "status"?: number;
1072
+ }
1073
+ /** Backend response type: models::RequestResponseDTO. */
1074
+ export interface RequestUpdateRequestPatchResponseData extends JsonObject {
1075
+ "id": string;
1076
+ "key": string;
1077
+ "name": string;
1078
+ "description"?: string;
1079
+ "status": number;
1080
+ "created_at": string;
1081
+ "updated_at": string;
1082
+ }
1083
+ export interface RequestUpdateRequestPatchResponse extends ApiEnvelope<RequestUpdateRequestPatchResponseData> {
1084
+ }
1085
+ /** Backend request type: models::RequestUpdateRequest. */
1086
+ export interface RequestUpdateRequestPutInput extends JsonObject {
1087
+ "key"?: string;
1088
+ "name"?: string;
1089
+ "description"?: string | null;
1090
+ "status"?: number;
1091
+ }
1092
+ /** Backend response type: models::RequestResponseDTO. */
1093
+ export interface RequestUpdateRequestPutResponseData extends JsonObject {
1094
+ "id": string;
1095
+ "key": string;
1096
+ "name": string;
1097
+ "description"?: string;
1098
+ "status": number;
1099
+ "created_at": string;
1100
+ "updated_at": string;
1101
+ }
1102
+ export interface RequestUpdateRequestPutResponse extends ApiEnvelope<RequestUpdateRequestPutResponseData> {
1103
+ }
1104
+ /** Backend response type: Vec<models::RequestLogResponseDTO>. */
1105
+ export interface RequestListLogsForRequestGetResponseItem extends JsonObject {
1106
+ "id": string;
1107
+ "user_id"?: string;
1108
+ "request_id": string;
1109
+ "data": JsonValue;
1110
+ "status": number;
1111
+ "created_at": string;
1112
+ }
1113
+ export interface RequestListLogsForRequestGetResponse extends ApiEnvelope<RequestListLogsForRequestGetResponseItem[]> {
1114
+ }
1115
+ /** Backend request type: models::RequestSubmitRequest. */
1116
+ export interface RequestSubmitPostInput extends JsonObject {
1117
+ "data": JsonValue;
1118
+ }
1119
+ /** Backend response type: models::RequestLogResponseDTO. */
1120
+ export interface RequestSubmitPostResponseData extends JsonObject {
1121
+ "id": string;
1122
+ "user_id"?: string;
1123
+ "request_id": string;
1124
+ "data": JsonValue;
1125
+ "status": number;
1126
+ "created_at": string;
1127
+ }
1128
+ export interface RequestSubmitPostResponse extends ApiEnvelope<RequestSubmitPostResponseData> {
1129
+ }
1130
+ /** Backend query type: models::RequestLogListQuery. */
1131
+ export interface RequestListLogsForCategoryGetQuery extends QueryParams {
1132
+ "request_id"?: string;
1133
+ }
1134
+ /** Backend response type: Vec<models::RequestLogResponseDTO>. */
1135
+ export interface RequestListLogsForCategoryGetResponseItem extends JsonObject {
1136
+ "id": string;
1137
+ "user_id"?: string;
1138
+ "request_id": string;
1139
+ "data": JsonValue;
1140
+ "status": number;
1141
+ "created_at": string;
1142
+ }
1143
+ export interface RequestListLogsForCategoryGetResponse extends ApiEnvelope<RequestListLogsForCategoryGetResponseItem[]> {
1144
+ }
1145
+ /** Backend query type: PaginationQuery. */
1146
+ export interface UserSampleListSamplesGetQuery extends QueryParams {
1147
+ "page_number"?: number;
1148
+ "page_size"?: number;
1149
+ }
1150
+ /** Backend response type: models::UserSampleListResponse. */
1151
+ export interface UserSampleListSamplesGetResponseData extends JsonObject {
1152
+ "samples": JsonValue[];
1153
+ "page_number": number;
1154
+ "page_size": number;
1155
+ "total_items": number;
1156
+ }
1157
+ export interface UserSampleListSamplesGetResponse extends ApiEnvelope<UserSampleListSamplesGetResponseData> {
1158
+ }
1159
+ /** Backend request type: models::UserSampleCreateRequest. */
1160
+ export interface UserSampleCreateSamplePostInput extends JsonObject {
1161
+ "slug": string;
1162
+ "name": string;
1163
+ "description"?: string;
1164
+ "project_slug"?: string;
1165
+ "preview_url"?: string;
1166
+ "thumbnail_url"?: string;
1167
+ "category"?: string;
1168
+ "status"?: number;
1169
+ }
1170
+ /** Backend response type: models::UserSampleResponseDTO. */
1171
+ export interface UserSampleCreateSamplePostResponseData extends JsonObject {
1172
+ "id": string;
1173
+ "slug": string;
1174
+ "name": string;
1175
+ "description"?: string;
1176
+ "project_slug"?: string;
1177
+ "preview_url"?: string;
1178
+ "thumbnail_url"?: string;
1179
+ "category"?: string;
1180
+ "status": number;
1181
+ "created_at": string;
1182
+ "updated_at": string;
1183
+ }
1184
+ export interface UserSampleCreateSamplePostResponse extends ApiEnvelope<UserSampleCreateSamplePostResponseData> {
1185
+ }
1186
+ /** Backend response type: response without a declared JSON model. */
1187
+ export interface UserSampleDeleteSampleDeleteResponse extends ApiEnvelope<JsonValue> {
1188
+ }
1189
+ /** Backend response type: models::UserSampleResponseDTO. */
1190
+ export interface UserSampleShowSampleGetResponseData extends JsonObject {
1191
+ "id": string;
1192
+ "slug": string;
1193
+ "name": string;
1194
+ "description"?: string;
1195
+ "project_slug"?: string;
1196
+ "preview_url"?: string;
1197
+ "thumbnail_url"?: string;
1198
+ "category"?: string;
1199
+ "status": number;
1200
+ "created_at": string;
1201
+ "updated_at": string;
1202
+ }
1203
+ export interface UserSampleShowSampleGetResponse extends ApiEnvelope<UserSampleShowSampleGetResponseData> {
1204
+ }
1205
+ /** Backend request type: models::UserSampleUpdateRequest. */
1206
+ export interface UserSampleUpdateSamplePatchInput extends JsonObject {
1207
+ "slug"?: string;
1208
+ "name"?: string;
1209
+ "description"?: string | null;
1210
+ "project_slug"?: string | null;
1211
+ "preview_url"?: string | null;
1212
+ "thumbnail_url"?: string | null;
1213
+ "category"?: string | null;
1214
+ "status"?: number;
1215
+ }
1216
+ /** Backend response type: models::UserSampleResponseDTO. */
1217
+ export interface UserSampleUpdateSamplePatchResponseData extends JsonObject {
1218
+ "id": string;
1219
+ "slug": string;
1220
+ "name": string;
1221
+ "description"?: string;
1222
+ "project_slug"?: string;
1223
+ "preview_url"?: string;
1224
+ "thumbnail_url"?: string;
1225
+ "category"?: string;
1226
+ "status": number;
1227
+ "created_at": string;
1228
+ "updated_at": string;
1229
+ }
1230
+ export interface UserSampleUpdateSamplePatchResponse extends ApiEnvelope<UserSampleUpdateSamplePatchResponseData> {
1231
+ }
1232
+ /** Backend request type: models::UserSampleUpdateRequest. */
1233
+ export interface UserSampleUpdateSamplePutInput extends JsonObject {
1234
+ "slug"?: string;
1235
+ "name"?: string;
1236
+ "description"?: string | null;
1237
+ "project_slug"?: string | null;
1238
+ "preview_url"?: string | null;
1239
+ "thumbnail_url"?: string | null;
1240
+ "category"?: string | null;
1241
+ "status"?: number;
1242
+ }
1243
+ /** Backend response type: models::UserSampleResponseDTO. */
1244
+ export interface UserSampleUpdateSamplePutResponseData extends JsonObject {
1245
+ "id": string;
1246
+ "slug": string;
1247
+ "name": string;
1248
+ "description"?: string;
1249
+ "project_slug"?: string;
1250
+ "preview_url"?: string;
1251
+ "thumbnail_url"?: string;
1252
+ "category"?: string;
1253
+ "status": number;
1254
+ "created_at": string;
1255
+ "updated_at": string;
1256
+ }
1257
+ export interface UserSampleUpdateSamplePutResponse extends ApiEnvelope<UserSampleUpdateSamplePutResponseData> {
1258
+ }
1259
+ /** Backend query type: PaginationQuery. */
1260
+ export interface UserSampleListSampleVariablesGetQuery extends QueryParams {
1261
+ "page_number"?: number;
1262
+ "page_size"?: number;
1263
+ }
1264
+ /** Backend response type: models::SampleVariableListResponse. */
1265
+ export interface UserSampleListSampleVariablesGetResponseData extends JsonObject {
1266
+ "variables": JsonValue[];
1267
+ "page_number": number;
1268
+ "page_size": number;
1269
+ "total_items": number;
1270
+ }
1271
+ export interface UserSampleListSampleVariablesGetResponse extends ApiEnvelope<UserSampleListSampleVariablesGetResponseData> {
1272
+ }
1273
+ /** Backend request type: models::SampleVariableCreateRequest. */
1274
+ export interface UserSampleCreateSampleVariablePostInput extends JsonObject {
1275
+ "key": string;
1276
+ "label": string;
1277
+ "value"?: string;
1278
+ "group_name"?: string;
1279
+ "variable_type"?: string;
1280
+ "description"?: string;
1281
+ "sort_order"?: number;
1282
+ }
1283
+ /** Backend response type: models::SampleVariableResponseDTO. */
1284
+ export interface UserSampleCreateSampleVariablePostResponseData extends JsonObject {
1285
+ "id": string;
1286
+ "sample_id": string;
1287
+ "sample_slug"?: string;
1288
+ "sample_name"?: string;
1289
+ "key": string;
1290
+ "label": string;
1291
+ "value"?: string;
1292
+ "group_name"?: string;
1293
+ "variable_type": string;
1294
+ "description"?: string;
1295
+ "sort_order": number;
1296
+ "created_at": string;
1297
+ "updated_at": string;
1298
+ }
1299
+ export interface UserSampleCreateSampleVariablePostResponse extends ApiEnvelope<UserSampleCreateSampleVariablePostResponseData> {
1300
+ }
1301
+ /** Backend response type: models::SampleVariablesMapResponse. */
1302
+ export interface UserSampleVariablesMapBySlugGetResponseData extends JsonObject {
1303
+ "sample_id": string;
1304
+ "sample_slug": string;
1305
+ "variables": Record<string, JsonValue>;
1306
+ }
1307
+ export interface UserSampleVariablesMapBySlugGetResponse extends ApiEnvelope<UserSampleVariablesMapBySlugGetResponseData> {
1308
+ }
1309
+ /** Backend query type: models::SampleVariableListQuery. */
1310
+ export interface UserSampleListAllVariablesGetQuery extends QueryParams {
1311
+ "sample_id"?: string;
1312
+ "page_number"?: number;
1313
+ "page_size"?: number;
1314
+ }
1315
+ /** Backend response type: models::SampleVariableListResponse. */
1316
+ export interface UserSampleListAllVariablesGetResponseData extends JsonObject {
1317
+ "variables": JsonValue[];
1318
+ "page_number": number;
1319
+ "page_size": number;
1320
+ "total_items": number;
1321
+ }
1322
+ export interface UserSampleListAllVariablesGetResponse extends ApiEnvelope<UserSampleListAllVariablesGetResponseData> {
1323
+ }
1324
+ /** Backend response type: response without a declared JSON model. */
1325
+ export interface UserSampleDeleteVariableDeleteResponse extends ApiEnvelope<JsonValue> {
1326
+ }
1327
+ /** Backend response type: models::SampleVariableResponseDTO. */
1328
+ export interface UserSampleShowVariableGetResponseData extends JsonObject {
1329
+ "id": string;
1330
+ "sample_id": string;
1331
+ "sample_slug"?: string;
1332
+ "sample_name"?: string;
1333
+ "key": string;
1334
+ "label": string;
1335
+ "value"?: string;
1336
+ "group_name"?: string;
1337
+ "variable_type": string;
1338
+ "description"?: string;
1339
+ "sort_order": number;
1340
+ "created_at": string;
1341
+ "updated_at": string;
1342
+ }
1343
+ export interface UserSampleShowVariableGetResponse extends ApiEnvelope<UserSampleShowVariableGetResponseData> {
1344
+ }
1345
+ /** Backend request type: models::SampleVariableUpdateRequest. */
1346
+ export interface UserSampleUpdateVariablePatchInput extends JsonObject {
1347
+ "key"?: string;
1348
+ "label"?: string;
1349
+ "value"?: string | null;
1350
+ "group_name"?: string | null;
1351
+ "variable_type"?: string;
1352
+ "description"?: string | null;
1353
+ "sort_order"?: number;
1354
+ }
1355
+ /** Backend response type: models::SampleVariableResponseDTO. */
1356
+ export interface UserSampleUpdateVariablePatchResponseData extends JsonObject {
1357
+ "id": string;
1358
+ "sample_id": string;
1359
+ "sample_slug"?: string;
1360
+ "sample_name"?: string;
1361
+ "key": string;
1362
+ "label": string;
1363
+ "value"?: string;
1364
+ "group_name"?: string;
1365
+ "variable_type": string;
1366
+ "description"?: string;
1367
+ "sort_order": number;
1368
+ "created_at": string;
1369
+ "updated_at": string;
1370
+ }
1371
+ export interface UserSampleUpdateVariablePatchResponse extends ApiEnvelope<UserSampleUpdateVariablePatchResponseData> {
1372
+ }
1373
+ /** Backend request type: models::SampleVariableUpdateRequest. */
1374
+ export interface UserSampleUpdateVariablePutInput extends JsonObject {
1375
+ "key"?: string;
1376
+ "label"?: string;
1377
+ "value"?: string | null;
1378
+ "group_name"?: string | null;
1379
+ "variable_type"?: string;
1380
+ "description"?: string | null;
1381
+ "sort_order"?: number;
1382
+ }
1383
+ /** Backend response type: models::SampleVariableResponseDTO. */
1384
+ export interface UserSampleUpdateVariablePutResponseData extends JsonObject {
1385
+ "id": string;
1386
+ "sample_id": string;
1387
+ "sample_slug"?: string;
1388
+ "sample_name"?: string;
1389
+ "key": string;
1390
+ "label": string;
1391
+ "value"?: string;
1392
+ "group_name"?: string;
1393
+ "variable_type": string;
1394
+ "description"?: string;
1395
+ "sort_order": number;
1396
+ "created_at": string;
1397
+ "updated_at": string;
1398
+ }
1399
+ export interface UserSampleUpdateVariablePutResponse extends ApiEnvelope<UserSampleUpdateVariablePutResponseData> {
1400
+ }
1401
+ /** Backend query type: PaginationQuery. */
1402
+ export interface SeoContentListSeoContentsGetQuery extends QueryParams {
1403
+ "page_number"?: number;
1404
+ "page_size"?: number;
1405
+ }
1406
+ /** Backend response type: models::SeoContentListResponse. */
1407
+ export interface SeoContentListSeoContentsGetResponseData extends JsonObject {
1408
+ "seo_contents": JsonValue[];
1409
+ "page_number": number;
1410
+ "page_size": number;
1411
+ "total_items": number;
1412
+ }
1413
+ export interface SeoContentListSeoContentsGetResponse extends ApiEnvelope<SeoContentListSeoContentsGetResponseData> {
1414
+ }
1415
+ /** Backend request type: models::SeoContentCreateRequest. */
1416
+ export interface SeoContentCreateSeoContentPostInput extends JsonObject {
1417
+ "meta_url"?: string;
1418
+ "meta_title"?: string;
1419
+ "meta_description"?: string;
1420
+ "meta_keyword"?: string;
1421
+ "meta_ld"?: JsonValue;
1422
+ }
1423
+ /** Backend response type: models::SeoContentResponseDTO. */
1424
+ export interface SeoContentCreateSeoContentPostResponseData extends JsonObject {
1425
+ "id": string;
1426
+ "meta_url"?: string;
1427
+ "meta_title"?: string;
1428
+ "meta_description"?: string;
1429
+ "meta_keyword"?: string;
1430
+ "meta_ld"?: JsonValue;
1431
+ "created_at": string;
1432
+ "updated_at": string;
1433
+ }
1434
+ export interface SeoContentCreateSeoContentPostResponse extends ApiEnvelope<SeoContentCreateSeoContentPostResponseData> {
1435
+ }
1436
+ /** Backend query type: models::SeoContentDetachQuery. */
1437
+ export interface SeoContentDetachFromTargetDeleteQuery extends QueryParams {
1438
+ "junction_id": string;
1439
+ }
1440
+ /** Backend response type: response without a declared JSON model. */
1441
+ export interface SeoContentDetachFromTargetDeleteResponse extends ApiEnvelope<JsonValue> {
1442
+ }
1443
+ /** Backend response type: Vec<models::SeoContentAttachmentDTO>. */
1444
+ export interface SeoContentListOnTargetGetResponseItem extends JsonObject {
1445
+ "id": string;
1446
+ "seo_content_id": string;
1447
+ "target_id": string;
1448
+ "created_at": string;
1449
+ }
1450
+ export interface SeoContentListOnTargetGetResponse extends ApiEnvelope<SeoContentListOnTargetGetResponseItem[]> {
1451
+ }
1452
+ /** Backend request type: models::SeoContentAttachRequest. */
1453
+ export interface SeoContentAttachToTargetPostInput extends JsonObject {
1454
+ "seo_content_id": string;
1455
+ }
1456
+ /** Backend response type: models::SeoContentAttachmentDTO. */
1457
+ export interface SeoContentAttachToTargetPostResponseData extends JsonObject {
1458
+ "id": string;
1459
+ "seo_content_id": string;
1460
+ "target_id": string;
1461
+ "created_at": string;
1462
+ }
1463
+ export interface SeoContentAttachToTargetPostResponse extends ApiEnvelope<SeoContentAttachToTargetPostResponseData> {
1464
+ }
1465
+ /** Backend response type: response without a declared JSON model. */
1466
+ export interface SeoContentDeleteSeoContentDeleteResponse extends ApiEnvelope<JsonValue> {
1467
+ }
1468
+ /** Backend response type: models::SeoContentResponseDTO. */
1469
+ export interface SeoContentShowSeoContentGetResponseData extends JsonObject {
1470
+ "id": string;
1471
+ "meta_url"?: string;
1472
+ "meta_title"?: string;
1473
+ "meta_description"?: string;
1474
+ "meta_keyword"?: string;
1475
+ "meta_ld"?: JsonValue;
1476
+ "created_at": string;
1477
+ "updated_at": string;
1478
+ }
1479
+ export interface SeoContentShowSeoContentGetResponse extends ApiEnvelope<SeoContentShowSeoContentGetResponseData> {
1480
+ }
1481
+ /** Backend request type: models::SeoContentUpdateRequest. */
1482
+ export interface SeoContentUpdateSeoContentPatchInput extends JsonObject {
1483
+ "meta_url"?: string | null;
1484
+ "meta_title"?: string | null;
1485
+ "meta_description"?: string | null;
1486
+ "meta_keyword"?: string | null;
1487
+ "meta_ld"?: JsonValue | null;
1488
+ }
1489
+ /** Backend response type: models::SeoContentResponseDTO. */
1490
+ export interface SeoContentUpdateSeoContentPatchResponseData extends JsonObject {
1491
+ "id": string;
1492
+ "meta_url"?: string;
1493
+ "meta_title"?: string;
1494
+ "meta_description"?: string;
1495
+ "meta_keyword"?: string;
1496
+ "meta_ld"?: JsonValue;
1497
+ "created_at": string;
1498
+ "updated_at": string;
1499
+ }
1500
+ export interface SeoContentUpdateSeoContentPatchResponse extends ApiEnvelope<SeoContentUpdateSeoContentPatchResponseData> {
1501
+ }
1502
+ /** Backend request type: models::SeoContentUpdateRequest. */
1503
+ export interface SeoContentUpdateSeoContentPutInput extends JsonObject {
1504
+ "meta_url"?: string | null;
1505
+ "meta_title"?: string | null;
1506
+ "meta_description"?: string | null;
1507
+ "meta_keyword"?: string | null;
1508
+ "meta_ld"?: JsonValue | null;
1509
+ }
1510
+ /** Backend response type: models::SeoContentResponseDTO. */
1511
+ export interface SeoContentUpdateSeoContentPutResponseData extends JsonObject {
1512
+ "id": string;
1513
+ "meta_url"?: string;
1514
+ "meta_title"?: string;
1515
+ "meta_description"?: string;
1516
+ "meta_keyword"?: string;
1517
+ "meta_ld"?: JsonValue;
1518
+ "created_at": string;
1519
+ "updated_at": string;
1520
+ }
1521
+ export interface SeoContentUpdateSeoContentPutResponse extends ApiEnvelope<SeoContentUpdateSeoContentPutResponseData> {
1522
+ }
1523
+ /** Backend response type: CartResponse. */
1524
+ export interface CartShowGetResponseData extends JsonObject {
1525
+ "id"?: string;
1526
+ "user_id": string;
1527
+ "items": JsonValue[];
1528
+ }
1529
+ export interface CartShowGetResponse extends ApiEnvelope<CartShowGetResponseData> {
1530
+ }
1531
+ /** Backend request type: CartUpdate. */
1532
+ export interface CartReplacePutInput extends JsonObject {
1533
+ "items": JsonValue[];
1534
+ }
1535
+ /** Backend response type: CartResponse. */
1536
+ export interface CartReplacePutResponseData extends JsonObject {
1537
+ "id"?: string;
1538
+ "user_id": string;
1539
+ "items": JsonValue[];
1540
+ }
1541
+ export interface CartReplacePutResponse extends ApiEnvelope<CartReplacePutResponseData> {
1542
+ }
1543
+ /** Backend query type: PaginationQuery. */
1544
+ export interface OrderListOrdersGetQuery extends QueryParams {
1545
+ "page_number"?: number;
1546
+ "page_size"?: number;
1547
+ }
1548
+ /** Backend response type: models::OrderListResponse. */
1549
+ export interface OrderListOrdersGetResponseData extends JsonObject {
1550
+ "orders": JsonValue[];
1551
+ "page_number": number;
1552
+ "page_size": number;
1553
+ "total_items": number;
1554
+ }
1555
+ export interface OrderListOrdersGetResponse extends ApiEnvelope<OrderListOrdersGetResponseData> {
1556
+ }
1557
+ /** Backend request type: models::OrderCreateRequest. */
1558
+ export interface OrderCreateOrderPostInput extends JsonObject {
1559
+ "status"?: number;
1560
+ "items": JsonValue[];
1561
+ }
1562
+ /** Backend response type: models::OrderResponseDTO. */
1563
+ export interface OrderCreateOrderPostResponseData extends JsonObject {
1564
+ "id": string;
1565
+ "user_id": string;
1566
+ "status": number;
1567
+ "total": number;
1568
+ "items": JsonValue[];
1569
+ "created_at": string;
1570
+ "updated_at": string;
1571
+ }
1572
+ export interface OrderCreateOrderPostResponse extends ApiEnvelope<OrderCreateOrderPostResponseData> {
1573
+ }
1574
+ /** Backend response type: response without a declared JSON model. */
1575
+ export interface OrderDeleteOrderDeleteResponse extends ApiEnvelope<JsonValue> {
1576
+ }
1577
+ /** Backend response type: models::OrderResponseDTO. */
1578
+ export interface OrderShowOrderGetResponseData extends JsonObject {
1579
+ "id": string;
1580
+ "user_id": string;
1581
+ "status": number;
1582
+ "total": number;
1583
+ "items": JsonValue[];
1584
+ "created_at": string;
1585
+ "updated_at": string;
1586
+ }
1587
+ export interface OrderShowOrderGetResponse extends ApiEnvelope<OrderShowOrderGetResponseData> {
1588
+ }
1589
+ /** Backend request type: models::OrderUpdateRequest. */
1590
+ export interface OrderUpdateOrderPatchInput extends JsonObject {
1591
+ "status"?: number;
1592
+ }
1593
+ /** Backend response type: models::OrderResponseDTO. */
1594
+ export interface OrderUpdateOrderPatchResponseData extends JsonObject {
1595
+ "id": string;
1596
+ "user_id": string;
1597
+ "status": number;
1598
+ "total": number;
1599
+ "items": JsonValue[];
1600
+ "created_at": string;
1601
+ "updated_at": string;
1602
+ }
1603
+ export interface OrderUpdateOrderPatchResponse extends ApiEnvelope<OrderUpdateOrderPatchResponseData> {
1604
+ }
1605
+ /** Backend request type: models::OrderUpdateRequest. */
1606
+ export interface OrderUpdateOrderPutInput extends JsonObject {
1607
+ "status"?: number;
1608
+ }
1609
+ /** Backend response type: models::OrderResponseDTO. */
1610
+ export interface OrderUpdateOrderPutResponseData extends JsonObject {
1611
+ "id": string;
1612
+ "user_id": string;
1613
+ "status": number;
1614
+ "total": number;
1615
+ "items": JsonValue[];
1616
+ "created_at": string;
1617
+ "updated_at": string;
1618
+ }
1619
+ export interface OrderUpdateOrderPutResponse extends ApiEnvelope<OrderUpdateOrderPutResponseData> {
1620
+ }
1621
+ /** Backend response type: Vec<models::OrderItemResponseDTO>. */
1622
+ export interface OrderListOrderItemsGetResponseItem extends JsonObject {
1623
+ "id": string;
1624
+ "order_id": string;
1625
+ "variant_id": string;
1626
+ "quantity": number;
1627
+ "unit_price": number;
1628
+ "total_price": number;
1629
+ "created_at": string;
1630
+ }
1631
+ export interface OrderListOrderItemsGetResponse extends ApiEnvelope<OrderListOrderItemsGetResponseItem[]> {
1632
+ }
1633
+ /** Backend request type: models::OrderItemCreateRequest. */
1634
+ export interface OrderAddOrderItemPostInput extends JsonObject {
1635
+ "variant_id": string;
1636
+ "quantity": number;
1637
+ "unit_price": number;
1638
+ }
1639
+ /** Backend response type: models::OrderResponseDTO. */
1640
+ export interface OrderAddOrderItemPostResponseData extends JsonObject {
1641
+ "id": string;
1642
+ "user_id": string;
1643
+ "status": number;
1644
+ "total": number;
1645
+ "items": JsonValue[];
1646
+ "created_at": string;
1647
+ "updated_at": string;
1648
+ }
1649
+ export interface OrderAddOrderItemPostResponse extends ApiEnvelope<OrderAddOrderItemPostResponseData> {
1650
+ }
1651
+ /** Backend query type: models::ProductListQuery. */
1652
+ export interface ProductListProductsGetQuery extends QueryParams {
1653
+ "page_number"?: number;
1654
+ "page_size"?: number;
1655
+ "category"?: string;
1656
+ "scope"?: string;
1657
+ "search"?: string;
1658
+ }
1659
+ /** Backend response type: models::ProductListResponse. */
1660
+ export interface ProductListProductsGetResponseData extends JsonObject {
1661
+ "products": JsonValue[];
1662
+ "page_number": number;
1663
+ "page_size": number;
1664
+ "total_items": number;
1665
+ }
1666
+ export interface ProductListProductsGetResponse extends ApiEnvelope<ProductListProductsGetResponseData> {
1667
+ }
1668
+ /** Backend request type: models::ProductCreateRequest. */
1669
+ export interface ProductCreateProductPostInput extends JsonObject {
1670
+ "name": string;
1671
+ "description"?: string;
1672
+ "sku"?: JsonValue;
1673
+ "status"?: number;
1674
+ "sort_order"?: number;
1675
+ }
1676
+ /** Backend response type: models::ProductResponseDTO. */
1677
+ export interface ProductCreateProductPostResponseData extends JsonObject {
1678
+ "id": string;
1679
+ "name": string;
1680
+ "description"?: string;
1681
+ "sku": JsonValue;
1682
+ "status": number;
1683
+ "sort_order": number;
1684
+ "created_at": string;
1685
+ "updated_at": string;
1686
+ }
1687
+ export interface ProductCreateProductPostResponse extends ApiEnvelope<ProductCreateProductPostResponseData> {
1688
+ }
1689
+ /** Backend response type: response without a declared JSON model. */
1690
+ export interface ProductDeleteProductDeleteResponse extends ApiEnvelope<JsonValue> {
1691
+ }
1692
+ /** Backend response type: models::ProductResponseDTO. */
1693
+ export interface ProductShowProductGetResponseData extends JsonObject {
1694
+ "id": string;
1695
+ "name": string;
1696
+ "description"?: string;
1697
+ "sku": JsonValue;
1698
+ "status": number;
1699
+ "sort_order": number;
1700
+ "created_at": string;
1701
+ "updated_at": string;
1702
+ }
1703
+ export interface ProductShowProductGetResponse extends ApiEnvelope<ProductShowProductGetResponseData> {
1704
+ }
1705
+ /** Backend request type: models::ProductUpdateRequest. */
1706
+ export interface ProductUpdateProductPatchInput extends JsonObject {
1707
+ "name"?: string;
1708
+ "description"?: string | null;
1709
+ "sku"?: JsonValue;
1710
+ "status"?: number;
1711
+ "sort_order"?: number;
1712
+ }
1713
+ /** Backend response type: models::ProductResponseDTO. */
1714
+ export interface ProductUpdateProductPatchResponseData extends JsonObject {
1715
+ "id": string;
1716
+ "name": string;
1717
+ "description"?: string;
1718
+ "sku": JsonValue;
1719
+ "status": number;
1720
+ "sort_order": number;
1721
+ "created_at": string;
1722
+ "updated_at": string;
1723
+ }
1724
+ export interface ProductUpdateProductPatchResponse extends ApiEnvelope<ProductUpdateProductPatchResponseData> {
1725
+ }
1726
+ /** Backend request type: models::ProductUpdateRequest. */
1727
+ export interface ProductUpdateProductPutInput extends JsonObject {
1728
+ "name"?: string;
1729
+ "description"?: string | null;
1730
+ "sku"?: JsonValue;
1731
+ "status"?: number;
1732
+ "sort_order"?: number;
1733
+ }
1734
+ /** Backend response type: models::ProductResponseDTO. */
1735
+ export interface ProductUpdateProductPutResponseData extends JsonObject {
1736
+ "id": string;
1737
+ "name": string;
1738
+ "description"?: string;
1739
+ "sku": JsonValue;
1740
+ "status": number;
1741
+ "sort_order": number;
1742
+ "created_at": string;
1743
+ "updated_at": string;
1744
+ }
1745
+ export interface ProductUpdateProductPutResponse extends ApiEnvelope<ProductUpdateProductPutResponseData> {
1746
+ }
1747
+ /** Backend query type: PaginationQuery. */
1748
+ export interface ProductListProductVariantsGetQuery extends QueryParams {
1749
+ "page_number"?: number;
1750
+ "page_size"?: number;
1751
+ }
1752
+ /** Backend response type: models::VariantListResponse. */
1753
+ export interface ProductListProductVariantsGetResponseData extends JsonObject {
1754
+ "variants": JsonValue[];
1755
+ "page_number": number;
1756
+ "page_size": number;
1757
+ "total_items": number;
1758
+ }
1759
+ export interface ProductListProductVariantsGetResponse extends ApiEnvelope<ProductListProductVariantsGetResponseData> {
1760
+ }
1761
+ /** Backend request type: models::VariantCreateRequest. */
1762
+ export interface ProductCreateVariantPostInput extends JsonObject {
1763
+ "name": string;
1764
+ "sku"?: JsonValue;
1765
+ "price": number;
1766
+ "cost"?: number;
1767
+ "weight"?: number;
1768
+ "stock_priority"?: number;
1769
+ "status"?: number;
1770
+ "sort_order"?: number;
1771
+ }
1772
+ /** Backend response type: models::VariantResponseDTO. */
1773
+ export interface ProductCreateVariantPostResponseData extends JsonObject {
1774
+ "id": string;
1775
+ "product_id": string;
1776
+ "name": string;
1777
+ "sku": JsonValue;
1778
+ "price": number;
1779
+ "cost": number;
1780
+ "weight": number;
1781
+ "stock_priority": number;
1782
+ "status": number;
1783
+ "sort_order": number;
1784
+ "created_at": string;
1785
+ "updated_at": string;
1786
+ }
1787
+ export interface ProductCreateVariantPostResponse extends ApiEnvelope<ProductCreateVariantPostResponseData> {
1788
+ }
1789
+ /** Backend query type: models::VariantListQuery. */
1790
+ export interface ProductListVariantsGetQuery extends QueryParams {
1791
+ "product_id"?: string;
1792
+ "page_number"?: number;
1793
+ "page_size"?: number;
1794
+ }
1795
+ /** Backend response type: models::VariantListResponse. */
1796
+ export interface ProductListVariantsGetResponseData extends JsonObject {
1797
+ "variants": JsonValue[];
1798
+ "page_number": number;
1799
+ "page_size": number;
1800
+ "total_items": number;
1801
+ }
1802
+ export interface ProductListVariantsGetResponse extends ApiEnvelope<ProductListVariantsGetResponseData> {
1803
+ }
1804
+ /** Backend response type: response without a declared JSON model. */
1805
+ export interface ProductDeleteVariantDeleteResponse extends ApiEnvelope<JsonValue> {
1806
+ }
1807
+ /** Backend response type: models::VariantResponseDTO. */
1808
+ export interface ProductShowVariantGetResponseData extends JsonObject {
1809
+ "id": string;
1810
+ "product_id": string;
1811
+ "name": string;
1812
+ "sku": JsonValue;
1813
+ "price": number;
1814
+ "cost": number;
1815
+ "weight": number;
1816
+ "stock_priority": number;
1817
+ "status": number;
1818
+ "sort_order": number;
1819
+ "created_at": string;
1820
+ "updated_at": string;
1821
+ }
1822
+ export interface ProductShowVariantGetResponse extends ApiEnvelope<ProductShowVariantGetResponseData> {
1823
+ }
1824
+ /** Backend request type: models::VariantUpdateRequest. */
1825
+ export interface ProductUpdateVariantPatchInput extends JsonObject {
1826
+ "name"?: string;
1827
+ "sku"?: JsonValue;
1828
+ "price"?: number;
1829
+ "cost"?: number;
1830
+ "weight"?: number;
1831
+ "stock_priority"?: number;
1832
+ "status"?: number;
1833
+ "sort_order"?: number;
1834
+ }
1835
+ /** Backend response type: models::VariantResponseDTO. */
1836
+ export interface ProductUpdateVariantPatchResponseData extends JsonObject {
1837
+ "id": string;
1838
+ "product_id": string;
1839
+ "name": string;
1840
+ "sku": JsonValue;
1841
+ "price": number;
1842
+ "cost": number;
1843
+ "weight": number;
1844
+ "stock_priority": number;
1845
+ "status": number;
1846
+ "sort_order": number;
1847
+ "created_at": string;
1848
+ "updated_at": string;
1849
+ }
1850
+ export interface ProductUpdateVariantPatchResponse extends ApiEnvelope<ProductUpdateVariantPatchResponseData> {
1851
+ }
1852
+ /** Backend request type: models::VariantUpdateRequest. */
1853
+ export interface ProductUpdateVariantPutInput extends JsonObject {
1854
+ "name"?: string;
1855
+ "sku"?: JsonValue;
1856
+ "price"?: number;
1857
+ "cost"?: number;
1858
+ "weight"?: number;
1859
+ "stock_priority"?: number;
1860
+ "status"?: number;
1861
+ "sort_order"?: number;
1862
+ }
1863
+ /** Backend response type: models::VariantResponseDTO. */
1864
+ export interface ProductUpdateVariantPutResponseData extends JsonObject {
1865
+ "id": string;
1866
+ "product_id": string;
1867
+ "name": string;
1868
+ "sku": JsonValue;
1869
+ "price": number;
1870
+ "cost": number;
1871
+ "weight": number;
1872
+ "stock_priority": number;
1873
+ "status": number;
1874
+ "sort_order": number;
1875
+ "created_at": string;
1876
+ "updated_at": string;
1877
+ }
1878
+ export interface ProductUpdateVariantPutResponse extends ApiEnvelope<ProductUpdateVariantPutResponseData> {
1879
+ }
1880
+ /** Backend query type: SocialPostListQuery. */
1881
+ export interface SocialListForModerationGetQuery extends QueryParams {
1882
+ "page_number"?: number;
1883
+ "page_size"?: number;
1884
+ "category_id"?: string;
1885
+ }
1886
+ /** Backend response type: SocialPostList. */
1887
+ export interface SocialListForModerationGetResponseData extends JsonObject {
1888
+ "posts": JsonValue[];
1889
+ "page_number": number;
1890
+ "page_size": number;
1891
+ "total_items": number;
1892
+ }
1893
+ export interface SocialListForModerationGetResponse extends ApiEnvelope<SocialListForModerationGetResponseData> {
1894
+ }
1895
+ /** Backend response type: serde_json::Value. */
1896
+ export interface SocialRemoveDeleteResponse extends ApiEnvelope<JsonValue> {
1897
+ }
1898
+ /** Backend request type: SocialPostUpdate. */
1899
+ export interface SocialManagePatchInput extends JsonObject {
1900
+ "title"?: string;
1901
+ "content"?: string;
1902
+ }
1903
+ /** Backend response type: SocialPostResponse. */
1904
+ export interface SocialManagePatchResponseData extends JsonObject {
1905
+ "id": string;
1906
+ "category_id": string;
1907
+ "creator_id": string;
1908
+ "title": string;
1909
+ "content"?: string;
1910
+ "moderation_status": string;
1911
+ "moderation_message"?: string;
1912
+ "published": boolean;
1913
+ "created_at": string;
1914
+ "updated_at": string;
1915
+ "comments_endpoint": string;
1916
+ "reactions_endpoint": string;
1917
+ }
1918
+ export interface SocialManagePatchResponse extends ApiEnvelope<SocialManagePatchResponseData> {
1919
+ }
1920
+ /** Backend query type: SocialPostListQuery. */
1921
+ export interface SocialListGetQuery extends QueryParams {
1922
+ "page_number"?: number;
1923
+ "page_size"?: number;
1924
+ "category_id"?: string;
1925
+ }
1926
+ /** Backend response type: SocialPostList. */
1927
+ export interface SocialListGetResponseData extends JsonObject {
1928
+ "posts": JsonValue[];
1929
+ "page_number": number;
1930
+ "page_size": number;
1931
+ "total_items": number;
1932
+ }
1933
+ export interface SocialListGetResponse extends ApiEnvelope<SocialListGetResponseData> {
1934
+ }
1935
+ /** Backend request type: SocialPostCreate. */
1936
+ export interface SocialCreatePostInput extends JsonObject {
1937
+ "category_id": string;
1938
+ "title": string;
1939
+ "content"?: string;
1940
+ }
1941
+ /** Backend response type: SocialPostResponse. */
1942
+ export interface SocialCreatePostResponseData extends JsonObject {
1943
+ "id": string;
1944
+ "category_id": string;
1945
+ "creator_id": string;
1946
+ "title": string;
1947
+ "content"?: string;
1948
+ "moderation_status": string;
1949
+ "moderation_message"?: string;
1950
+ "published": boolean;
1951
+ "created_at": string;
1952
+ "updated_at": string;
1953
+ "comments_endpoint": string;
1954
+ "reactions_endpoint": string;
1955
+ }
1956
+ export interface SocialCreatePostResponse extends ApiEnvelope<SocialCreatePostResponseData> {
1957
+ }
1958
+ /** Backend response type: SocialPostResponse. */
1959
+ export interface SocialShowGetResponseData extends JsonObject {
1960
+ "id": string;
1961
+ "category_id": string;
1962
+ "creator_id": string;
1963
+ "title": string;
1964
+ "content"?: string;
1965
+ "moderation_status": string;
1966
+ "moderation_message"?: string;
1967
+ "published": boolean;
1968
+ "created_at": string;
1969
+ "updated_at": string;
1970
+ "comments_endpoint": string;
1971
+ "reactions_endpoint": string;
1972
+ }
1973
+ export interface SocialShowGetResponse extends ApiEnvelope<SocialShowGetResponseData> {
1974
+ }
1975
+ /** Backend request type: SocialPostUpdate. */
1976
+ export interface SocialUpdatePatchInput extends JsonObject {
1977
+ "title"?: string;
1978
+ "content"?: string;
1979
+ }
1980
+ /** Backend response type: SocialPostResponse. */
1981
+ export interface SocialUpdatePatchResponseData extends JsonObject {
1982
+ "id": string;
1983
+ "category_id": string;
1984
+ "creator_id": string;
1985
+ "title": string;
1986
+ "content"?: string;
1987
+ "moderation_status": string;
1988
+ "moderation_message"?: string;
1989
+ "published": boolean;
1990
+ "created_at": string;
1991
+ "updated_at": string;
1992
+ "comments_endpoint": string;
1993
+ "reactions_endpoint": string;
1994
+ }
1995
+ export interface SocialUpdatePatchResponse extends ApiEnvelope<SocialUpdatePatchResponseData> {
1996
+ }
1997
+ /** Backend request type: SocialPostModerate. */
1998
+ export interface SocialModeratePatchInput extends JsonObject {
1999
+ "approved": boolean;
2000
+ "message"?: string;
2001
+ }
2002
+ /** Backend response type: SocialPostResponse. */
2003
+ export interface SocialModeratePatchResponseData extends JsonObject {
2004
+ "id": string;
2005
+ "category_id": string;
2006
+ "creator_id": string;
2007
+ "title": string;
2008
+ "content"?: string;
2009
+ "moderation_status": string;
2010
+ "moderation_message"?: string;
2011
+ "published": boolean;
2012
+ "created_at": string;
2013
+ "updated_at": string;
2014
+ "comments_endpoint": string;
2015
+ "reactions_endpoint": string;
2016
+ }
2017
+ export interface SocialModeratePatchResponse extends ApiEnvelope<SocialModeratePatchResponseData> {
2018
+ }
2019
+ /** Backend query type: PaginationQuery. */
2020
+ export interface TagListTagsGetQuery extends QueryParams {
2021
+ "page_number"?: number;
2022
+ "page_size"?: number;
2023
+ }
2024
+ /** Backend response type: models::TagListResponse. */
2025
+ export interface TagListTagsGetResponseData extends JsonObject {
2026
+ "tags": JsonValue[];
2027
+ "page_number": number;
2028
+ "page_size": number;
2029
+ "total_items": number;
2030
+ }
2031
+ export interface TagListTagsGetResponse extends ApiEnvelope<TagListTagsGetResponseData> {
2032
+ }
2033
+ /** Backend request type: models::TagCreateRequest. */
2034
+ export interface TagCreateTagPostInput extends JsonObject {
2035
+ "name": string;
2036
+ "status"?: number;
2037
+ }
2038
+ /** Backend response type: models::TagResponseDTO. */
2039
+ export interface TagCreateTagPostResponseData extends JsonObject {
2040
+ "id": string;
2041
+ "name": string;
2042
+ "status": number;
2043
+ "created_at": string;
2044
+ "updated_at": string;
2045
+ }
2046
+ export interface TagCreateTagPostResponse extends ApiEnvelope<TagCreateTagPostResponseData> {
2047
+ }
2048
+ /** Backend query type: models::TagDetachQuery. */
2049
+ export interface TagDetachFromTargetDeleteQuery extends QueryParams {
2050
+ "junction_id": string;
2051
+ }
2052
+ /** Backend response type: response without a declared JSON model. */
2053
+ export interface TagDetachFromTargetDeleteResponse extends ApiEnvelope<JsonValue> {
2054
+ }
2055
+ /** Backend response type: Vec<models::TagAttachmentDTO>. */
2056
+ export interface TagListOnTargetGetResponseItem extends JsonObject {
2057
+ "id": string;
2058
+ "tag_id": string;
2059
+ "target_id": string;
2060
+ "sort_order": number;
2061
+ "created_at": string;
2062
+ }
2063
+ export interface TagListOnTargetGetResponse extends ApiEnvelope<TagListOnTargetGetResponseItem[]> {
2064
+ }
2065
+ /** Backend request type: models::TagAttachRequest. */
2066
+ export interface TagAttachToTargetPostInput extends JsonObject {
2067
+ "tag_id": string;
2068
+ "sort_order"?: number;
2069
+ }
2070
+ /** Backend response type: models::TagAttachmentDTO. */
2071
+ export interface TagAttachToTargetPostResponseData extends JsonObject {
2072
+ "id": string;
2073
+ "tag_id": string;
2074
+ "target_id": string;
2075
+ "sort_order": number;
2076
+ "created_at": string;
2077
+ }
2078
+ export interface TagAttachToTargetPostResponse extends ApiEnvelope<TagAttachToTargetPostResponseData> {
2079
+ }
2080
+ /** Backend response type: response without a declared JSON model. */
2081
+ export interface TagDeleteTagDeleteResponse extends ApiEnvelope<JsonValue> {
2082
+ }
2083
+ /** Backend response type: models::TagResponseDTO. */
2084
+ export interface TagShowTagGetResponseData extends JsonObject {
2085
+ "id": string;
2086
+ "name": string;
2087
+ "status": number;
2088
+ "created_at": string;
2089
+ "updated_at": string;
2090
+ }
2091
+ export interface TagShowTagGetResponse extends ApiEnvelope<TagShowTagGetResponseData> {
2092
+ }
2093
+ /** Backend request type: models::TagUpdateRequest. */
2094
+ export interface TagUpdateTagPatchInput extends JsonObject {
2095
+ "name"?: string;
2096
+ "status"?: number;
2097
+ }
2098
+ /** Backend response type: models::TagResponseDTO. */
2099
+ export interface TagUpdateTagPatchResponseData extends JsonObject {
2100
+ "id": string;
2101
+ "name": string;
2102
+ "status": number;
2103
+ "created_at": string;
2104
+ "updated_at": string;
2105
+ }
2106
+ export interface TagUpdateTagPatchResponse extends ApiEnvelope<TagUpdateTagPatchResponseData> {
2107
+ }
2108
+ /** Backend request type: models::TagUpdateRequest. */
2109
+ export interface TagUpdateTagPutInput extends JsonObject {
2110
+ "name"?: string;
2111
+ "status"?: number;
2112
+ }
2113
+ /** Backend response type: models::TagResponseDTO. */
2114
+ export interface TagUpdateTagPutResponseData extends JsonObject {
2115
+ "id": string;
2116
+ "name": string;
2117
+ "status": number;
2118
+ "created_at": string;
2119
+ "updated_at": string;
2120
+ }
2121
+ export interface TagUpdateTagPutResponse extends ApiEnvelope<TagUpdateTagPutResponseData> {
2122
+ }
2123
+ //# sourceMappingURL=operations.types.d.ts.map