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