@dazl/internal-api-client 1.5.9 → 1.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/sdk.gen.d.ts +23 -1
- package/dist/sdk.gen.d.ts.map +1 -1
- package/dist/sdk.gen.js +67 -0
- package/dist/sdk.gen.js.map +1 -1
- package/dist/types.gen.d.ts +319 -0
- package/dist/types.gen.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/index.ts +2 -2
- package/src/sdk.gen.ts +73 -1
- package/src/types.gen.ts +349 -0
package/src/types.gen.ts
CHANGED
|
@@ -278,6 +278,81 @@ export type UserRaw = {
|
|
|
278
278
|
picture?: string | null;
|
|
279
279
|
};
|
|
280
280
|
|
|
281
|
+
export type DeleteProjectInput = {
|
|
282
|
+
/**
|
|
283
|
+
* The admin user's internal ID
|
|
284
|
+
*/
|
|
285
|
+
adminUserId: number;
|
|
286
|
+
/**
|
|
287
|
+
* The owner of the project being deleted
|
|
288
|
+
*/
|
|
289
|
+
targetUserId: number;
|
|
290
|
+
/**
|
|
291
|
+
* The name of the project being deleted
|
|
292
|
+
*/
|
|
293
|
+
projectName: string;
|
|
294
|
+
};
|
|
295
|
+
|
|
296
|
+
export type CloneProjectCreateInput = {
|
|
297
|
+
/**
|
|
298
|
+
* The name of the original project
|
|
299
|
+
*/
|
|
300
|
+
originalProjectName: string;
|
|
301
|
+
/**
|
|
302
|
+
* The admin user's internal ID
|
|
303
|
+
*/
|
|
304
|
+
adminUserId: number;
|
|
305
|
+
};
|
|
306
|
+
|
|
307
|
+
export type CloneProjectLogInput = {
|
|
308
|
+
/**
|
|
309
|
+
* The admin user's internal ID
|
|
310
|
+
*/
|
|
311
|
+
adminUserId: number;
|
|
312
|
+
/**
|
|
313
|
+
* The internal ID of the original project owner
|
|
314
|
+
*/
|
|
315
|
+
originalProjectOwnerId: number;
|
|
316
|
+
/**
|
|
317
|
+
* The ID of the original project
|
|
318
|
+
*/
|
|
319
|
+
originalProjectId: string;
|
|
320
|
+
/**
|
|
321
|
+
* The name of the original project
|
|
322
|
+
*/
|
|
323
|
+
originalProjectName: string;
|
|
324
|
+
};
|
|
325
|
+
|
|
326
|
+
export type CleanupProjectInput = {
|
|
327
|
+
/**
|
|
328
|
+
* The ID of the project to delete
|
|
329
|
+
*/
|
|
330
|
+
newProjectId: string;
|
|
331
|
+
};
|
|
332
|
+
|
|
333
|
+
export type UpdateCreditsInput = {
|
|
334
|
+
/**
|
|
335
|
+
* The user whose credits are being updated
|
|
336
|
+
*/
|
|
337
|
+
targetUserId: number;
|
|
338
|
+
/**
|
|
339
|
+
* The new credit balance
|
|
340
|
+
*/
|
|
341
|
+
newBalance: number;
|
|
342
|
+
/**
|
|
343
|
+
* The previous credit balance
|
|
344
|
+
*/
|
|
345
|
+
oldBalance: number;
|
|
346
|
+
/**
|
|
347
|
+
* The admin user's internal ID
|
|
348
|
+
*/
|
|
349
|
+
adminUserId: number;
|
|
350
|
+
/**
|
|
351
|
+
* Optional reason for the credit change
|
|
352
|
+
*/
|
|
353
|
+
reason?: string | null;
|
|
354
|
+
};
|
|
355
|
+
|
|
281
356
|
export type GetByDazlIdData = {
|
|
282
357
|
body?: never;
|
|
283
358
|
path: {
|
|
@@ -3487,3 +3562,277 @@ export type SearchWebResponses = {
|
|
|
3487
3562
|
};
|
|
3488
3563
|
|
|
3489
3564
|
export type SearchWebResponse = SearchWebResponses[keyof SearchWebResponses];
|
|
3565
|
+
|
|
3566
|
+
export type AdminDeleteProjectData = {
|
|
3567
|
+
body: DeleteProjectInput;
|
|
3568
|
+
path: {
|
|
3569
|
+
projectId: string;
|
|
3570
|
+
};
|
|
3571
|
+
query?: never;
|
|
3572
|
+
url: '/admin/project/{projectId}';
|
|
3573
|
+
};
|
|
3574
|
+
|
|
3575
|
+
export type AdminDeleteProjectErrors = {
|
|
3576
|
+
/**
|
|
3577
|
+
* Bad request - Invalid parameters or malformed JSON
|
|
3578
|
+
*/
|
|
3579
|
+
400: {
|
|
3580
|
+
message: string;
|
|
3581
|
+
issues?: string;
|
|
3582
|
+
};
|
|
3583
|
+
/**
|
|
3584
|
+
* Unauthorized
|
|
3585
|
+
*/
|
|
3586
|
+
401: ErrorResponse;
|
|
3587
|
+
/**
|
|
3588
|
+
* Forbidden
|
|
3589
|
+
*/
|
|
3590
|
+
403: ErrorResponse;
|
|
3591
|
+
/**
|
|
3592
|
+
* Not Found
|
|
3593
|
+
*/
|
|
3594
|
+
404: ErrorResponse;
|
|
3595
|
+
/**
|
|
3596
|
+
* Conflict
|
|
3597
|
+
*/
|
|
3598
|
+
409: ErrorResponse;
|
|
3599
|
+
/**
|
|
3600
|
+
* Internal server error
|
|
3601
|
+
*/
|
|
3602
|
+
500: ErrorResponse;
|
|
3603
|
+
/**
|
|
3604
|
+
* Service Unavailable
|
|
3605
|
+
*/
|
|
3606
|
+
503: ErrorResponse;
|
|
3607
|
+
};
|
|
3608
|
+
|
|
3609
|
+
export type AdminDeleteProjectError = AdminDeleteProjectErrors[keyof AdminDeleteProjectErrors];
|
|
3610
|
+
|
|
3611
|
+
export type AdminDeleteProjectResponses = {
|
|
3612
|
+
/**
|
|
3613
|
+
* Project deleted successfully
|
|
3614
|
+
*/
|
|
3615
|
+
200: {
|
|
3616
|
+
success: boolean;
|
|
3617
|
+
projectId: string;
|
|
3618
|
+
};
|
|
3619
|
+
};
|
|
3620
|
+
|
|
3621
|
+
export type AdminDeleteProjectResponse = AdminDeleteProjectResponses[keyof AdminDeleteProjectResponses];
|
|
3622
|
+
|
|
3623
|
+
export type AdminCloneProjectCreateData = {
|
|
3624
|
+
body: CloneProjectCreateInput;
|
|
3625
|
+
path?: never;
|
|
3626
|
+
query?: never;
|
|
3627
|
+
url: '/admin/project/clone';
|
|
3628
|
+
};
|
|
3629
|
+
|
|
3630
|
+
export type AdminCloneProjectCreateErrors = {
|
|
3631
|
+
/**
|
|
3632
|
+
* Bad request - Invalid parameters or malformed JSON
|
|
3633
|
+
*/
|
|
3634
|
+
400: {
|
|
3635
|
+
message: string;
|
|
3636
|
+
issues?: string;
|
|
3637
|
+
};
|
|
3638
|
+
/**
|
|
3639
|
+
* Unauthorized
|
|
3640
|
+
*/
|
|
3641
|
+
401: ErrorResponse;
|
|
3642
|
+
/**
|
|
3643
|
+
* Forbidden
|
|
3644
|
+
*/
|
|
3645
|
+
403: ErrorResponse;
|
|
3646
|
+
/**
|
|
3647
|
+
* Not Found
|
|
3648
|
+
*/
|
|
3649
|
+
404: ErrorResponse;
|
|
3650
|
+
/**
|
|
3651
|
+
* Conflict
|
|
3652
|
+
*/
|
|
3653
|
+
409: ErrorResponse;
|
|
3654
|
+
/**
|
|
3655
|
+
* Internal server error
|
|
3656
|
+
*/
|
|
3657
|
+
500: ErrorResponse;
|
|
3658
|
+
/**
|
|
3659
|
+
* Service Unavailable
|
|
3660
|
+
*/
|
|
3661
|
+
503: ErrorResponse;
|
|
3662
|
+
};
|
|
3663
|
+
|
|
3664
|
+
export type AdminCloneProjectCreateError = AdminCloneProjectCreateErrors[keyof AdminCloneProjectCreateErrors];
|
|
3665
|
+
|
|
3666
|
+
export type AdminCloneProjectCreateResponses = {
|
|
3667
|
+
/**
|
|
3668
|
+
* Returns the ID of the newly created clone project record
|
|
3669
|
+
*/
|
|
3670
|
+
200: {
|
|
3671
|
+
newProjectId: string;
|
|
3672
|
+
};
|
|
3673
|
+
};
|
|
3674
|
+
|
|
3675
|
+
export type AdminCloneProjectCreateResponse = AdminCloneProjectCreateResponses[keyof AdminCloneProjectCreateResponses];
|
|
3676
|
+
|
|
3677
|
+
export type AdminCloneProjectLogData = {
|
|
3678
|
+
body: CloneProjectLogInput;
|
|
3679
|
+
path?: never;
|
|
3680
|
+
query?: never;
|
|
3681
|
+
url: '/admin/project/clone/log';
|
|
3682
|
+
};
|
|
3683
|
+
|
|
3684
|
+
export type AdminCloneProjectLogErrors = {
|
|
3685
|
+
/**
|
|
3686
|
+
* Bad request - Invalid parameters or malformed JSON
|
|
3687
|
+
*/
|
|
3688
|
+
400: {
|
|
3689
|
+
message: string;
|
|
3690
|
+
issues?: string;
|
|
3691
|
+
};
|
|
3692
|
+
/**
|
|
3693
|
+
* Unauthorized
|
|
3694
|
+
*/
|
|
3695
|
+
401: ErrorResponse;
|
|
3696
|
+
/**
|
|
3697
|
+
* Forbidden
|
|
3698
|
+
*/
|
|
3699
|
+
403: ErrorResponse;
|
|
3700
|
+
/**
|
|
3701
|
+
* Not Found
|
|
3702
|
+
*/
|
|
3703
|
+
404: ErrorResponse;
|
|
3704
|
+
/**
|
|
3705
|
+
* Conflict
|
|
3706
|
+
*/
|
|
3707
|
+
409: ErrorResponse;
|
|
3708
|
+
/**
|
|
3709
|
+
* Internal server error
|
|
3710
|
+
*/
|
|
3711
|
+
500: ErrorResponse;
|
|
3712
|
+
/**
|
|
3713
|
+
* Service Unavailable
|
|
3714
|
+
*/
|
|
3715
|
+
503: ErrorResponse;
|
|
3716
|
+
};
|
|
3717
|
+
|
|
3718
|
+
export type AdminCloneProjectLogError = AdminCloneProjectLogErrors[keyof AdminCloneProjectLogErrors];
|
|
3719
|
+
|
|
3720
|
+
export type AdminCloneProjectLogResponses = {
|
|
3721
|
+
/**
|
|
3722
|
+
* Admin action logged successfully
|
|
3723
|
+
*/
|
|
3724
|
+
200: {
|
|
3725
|
+
success: boolean;
|
|
3726
|
+
};
|
|
3727
|
+
};
|
|
3728
|
+
|
|
3729
|
+
export type AdminCloneProjectLogResponse = AdminCloneProjectLogResponses[keyof AdminCloneProjectLogResponses];
|
|
3730
|
+
|
|
3731
|
+
export type AdminCleanupProjectData = {
|
|
3732
|
+
body: CleanupProjectInput;
|
|
3733
|
+
path?: never;
|
|
3734
|
+
query?: never;
|
|
3735
|
+
url: '/admin/project/cleanup';
|
|
3736
|
+
};
|
|
3737
|
+
|
|
3738
|
+
export type AdminCleanupProjectErrors = {
|
|
3739
|
+
/**
|
|
3740
|
+
* Bad request - Invalid parameters or malformed JSON
|
|
3741
|
+
*/
|
|
3742
|
+
400: {
|
|
3743
|
+
message: string;
|
|
3744
|
+
issues?: string;
|
|
3745
|
+
};
|
|
3746
|
+
/**
|
|
3747
|
+
* Unauthorized
|
|
3748
|
+
*/
|
|
3749
|
+
401: ErrorResponse;
|
|
3750
|
+
/**
|
|
3751
|
+
* Forbidden
|
|
3752
|
+
*/
|
|
3753
|
+
403: ErrorResponse;
|
|
3754
|
+
/**
|
|
3755
|
+
* Not Found
|
|
3756
|
+
*/
|
|
3757
|
+
404: ErrorResponse;
|
|
3758
|
+
/**
|
|
3759
|
+
* Conflict
|
|
3760
|
+
*/
|
|
3761
|
+
409: ErrorResponse;
|
|
3762
|
+
/**
|
|
3763
|
+
* Internal server error
|
|
3764
|
+
*/
|
|
3765
|
+
500: ErrorResponse;
|
|
3766
|
+
/**
|
|
3767
|
+
* Service Unavailable
|
|
3768
|
+
*/
|
|
3769
|
+
503: ErrorResponse;
|
|
3770
|
+
};
|
|
3771
|
+
|
|
3772
|
+
export type AdminCleanupProjectError = AdminCleanupProjectErrors[keyof AdminCleanupProjectErrors];
|
|
3773
|
+
|
|
3774
|
+
export type AdminCleanupProjectResponses = {
|
|
3775
|
+
/**
|
|
3776
|
+
* Project cleaned up successfully
|
|
3777
|
+
*/
|
|
3778
|
+
200: {
|
|
3779
|
+
success: boolean;
|
|
3780
|
+
};
|
|
3781
|
+
};
|
|
3782
|
+
|
|
3783
|
+
export type AdminCleanupProjectResponse = AdminCleanupProjectResponses[keyof AdminCleanupProjectResponses];
|
|
3784
|
+
|
|
3785
|
+
export type AdminUpdateCreditsData = {
|
|
3786
|
+
body: UpdateCreditsInput;
|
|
3787
|
+
path?: never;
|
|
3788
|
+
query?: never;
|
|
3789
|
+
url: '/admin/credits';
|
|
3790
|
+
};
|
|
3791
|
+
|
|
3792
|
+
export type AdminUpdateCreditsErrors = {
|
|
3793
|
+
/**
|
|
3794
|
+
* Bad request - Invalid parameters or malformed JSON
|
|
3795
|
+
*/
|
|
3796
|
+
400: {
|
|
3797
|
+
message: string;
|
|
3798
|
+
issues?: string;
|
|
3799
|
+
};
|
|
3800
|
+
/**
|
|
3801
|
+
* Unauthorized
|
|
3802
|
+
*/
|
|
3803
|
+
401: ErrorResponse;
|
|
3804
|
+
/**
|
|
3805
|
+
* Forbidden
|
|
3806
|
+
*/
|
|
3807
|
+
403: ErrorResponse;
|
|
3808
|
+
/**
|
|
3809
|
+
* Not Found
|
|
3810
|
+
*/
|
|
3811
|
+
404: ErrorResponse;
|
|
3812
|
+
/**
|
|
3813
|
+
* Conflict
|
|
3814
|
+
*/
|
|
3815
|
+
409: ErrorResponse;
|
|
3816
|
+
/**
|
|
3817
|
+
* Internal server error
|
|
3818
|
+
*/
|
|
3819
|
+
500: ErrorResponse;
|
|
3820
|
+
/**
|
|
3821
|
+
* Service Unavailable
|
|
3822
|
+
*/
|
|
3823
|
+
503: ErrorResponse;
|
|
3824
|
+
};
|
|
3825
|
+
|
|
3826
|
+
export type AdminUpdateCreditsError = AdminUpdateCreditsErrors[keyof AdminUpdateCreditsErrors];
|
|
3827
|
+
|
|
3828
|
+
export type AdminUpdateCreditsResponses = {
|
|
3829
|
+
/**
|
|
3830
|
+
* Credits updated successfully
|
|
3831
|
+
*/
|
|
3832
|
+
200: {
|
|
3833
|
+
success: boolean;
|
|
3834
|
+
newBalance: number;
|
|
3835
|
+
};
|
|
3836
|
+
};
|
|
3837
|
+
|
|
3838
|
+
export type AdminUpdateCreditsResponse = AdminUpdateCreditsResponses[keyof AdminUpdateCreditsResponses];
|