@robosystems/client 0.1.20 → 0.1.21
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/LICENSE +1 -1
- package/README.md +10 -423
- package/bin/create-feature +7 -17
- package/package.json +2 -2
- package/sdk/sdk.gen.d.ts +40 -15
- package/sdk/sdk.gen.js +100 -33
- package/sdk/sdk.gen.ts +99 -32
- package/sdk/types.gen.d.ts +252 -38
- package/sdk/types.gen.ts +289 -46
- package/sdk.gen.d.ts +40 -15
- package/sdk.gen.js +100 -33
- package/sdk.gen.ts +99 -32
- package/types.gen.d.ts +252 -38
- package/types.gen.ts +289 -46
package/sdk/types.gen.ts
CHANGED
|
@@ -1501,6 +1501,18 @@ export type DetailedTransactionsResponse = {
|
|
|
1501
1501
|
};
|
|
1502
1502
|
};
|
|
1503
1503
|
|
|
1504
|
+
/**
|
|
1505
|
+
* EmailVerificationRequest
|
|
1506
|
+
* Email verification request model.
|
|
1507
|
+
*/
|
|
1508
|
+
export type EmailVerificationRequest = {
|
|
1509
|
+
/**
|
|
1510
|
+
* Token
|
|
1511
|
+
* Email verification token from email link
|
|
1512
|
+
*/
|
|
1513
|
+
token: string;
|
|
1514
|
+
};
|
|
1515
|
+
|
|
1504
1516
|
/**
|
|
1505
1517
|
* EnhancedCreditTransactionResponse
|
|
1506
1518
|
* Enhanced credit transaction response with more details.
|
|
@@ -1604,6 +1616,18 @@ export type ExchangeTokenRequest = {
|
|
|
1604
1616
|
} | null;
|
|
1605
1617
|
};
|
|
1606
1618
|
|
|
1619
|
+
/**
|
|
1620
|
+
* ForgotPasswordRequest
|
|
1621
|
+
* Forgot password request model.
|
|
1622
|
+
*/
|
|
1623
|
+
export type ForgotPasswordRequest = {
|
|
1624
|
+
/**
|
|
1625
|
+
* Email
|
|
1626
|
+
* Email address to send reset link
|
|
1627
|
+
*/
|
|
1628
|
+
email: string;
|
|
1629
|
+
};
|
|
1630
|
+
|
|
1607
1631
|
/**
|
|
1608
1632
|
* GraphInfo
|
|
1609
1633
|
* Graph information for user.
|
|
@@ -2244,6 +2268,40 @@ export type RepositoryPlan = 'starter' | 'advanced' | 'unlimited';
|
|
|
2244
2268
|
*/
|
|
2245
2269
|
export type RepositoryType = 'sec' | 'industry' | 'economic';
|
|
2246
2270
|
|
|
2271
|
+
/**
|
|
2272
|
+
* ResetPasswordRequest
|
|
2273
|
+
* Reset password request model.
|
|
2274
|
+
*/
|
|
2275
|
+
export type ResetPasswordRequest = {
|
|
2276
|
+
/**
|
|
2277
|
+
* Token
|
|
2278
|
+
* Password reset token from email link
|
|
2279
|
+
*/
|
|
2280
|
+
token: string;
|
|
2281
|
+
/**
|
|
2282
|
+
* New Password
|
|
2283
|
+
* New password (must meet security requirements)
|
|
2284
|
+
*/
|
|
2285
|
+
new_password: string;
|
|
2286
|
+
};
|
|
2287
|
+
|
|
2288
|
+
/**
|
|
2289
|
+
* ResetPasswordValidateResponse
|
|
2290
|
+
* Password reset token validation response model.
|
|
2291
|
+
*/
|
|
2292
|
+
export type ResetPasswordValidateResponse = {
|
|
2293
|
+
/**
|
|
2294
|
+
* Valid
|
|
2295
|
+
* Whether the token is valid
|
|
2296
|
+
*/
|
|
2297
|
+
valid: boolean;
|
|
2298
|
+
/**
|
|
2299
|
+
* Email
|
|
2300
|
+
* Masked email address if token is valid
|
|
2301
|
+
*/
|
|
2302
|
+
email?: string | null;
|
|
2303
|
+
};
|
|
2304
|
+
|
|
2247
2305
|
/**
|
|
2248
2306
|
* ResponseMode
|
|
2249
2307
|
* Response modes for execution.
|
|
@@ -3449,6 +3507,12 @@ export type LoginUserResponse = LoginUserResponses[keyof LoginUserResponses];
|
|
|
3449
3507
|
|
|
3450
3508
|
export type LogoutUserData = {
|
|
3451
3509
|
body?: never;
|
|
3510
|
+
headers?: {
|
|
3511
|
+
/**
|
|
3512
|
+
* Authorization
|
|
3513
|
+
*/
|
|
3514
|
+
authorization?: string | null;
|
|
3515
|
+
};
|
|
3452
3516
|
path?: never;
|
|
3453
3517
|
query?: never;
|
|
3454
3518
|
url: '/v1/auth/logout';
|
|
@@ -3513,14 +3577,20 @@ export type GetCurrentAuthUserResponses = {
|
|
|
3513
3577
|
|
|
3514
3578
|
export type GetCurrentAuthUserResponse = GetCurrentAuthUserResponses[keyof GetCurrentAuthUserResponses];
|
|
3515
3579
|
|
|
3516
|
-
export type
|
|
3580
|
+
export type RefreshAuthSessionData = {
|
|
3517
3581
|
body?: never;
|
|
3582
|
+
headers?: {
|
|
3583
|
+
/**
|
|
3584
|
+
* Authorization
|
|
3585
|
+
*/
|
|
3586
|
+
authorization?: string | null;
|
|
3587
|
+
};
|
|
3518
3588
|
path?: never;
|
|
3519
3589
|
query?: never;
|
|
3520
3590
|
url: '/v1/auth/refresh';
|
|
3521
3591
|
};
|
|
3522
3592
|
|
|
3523
|
-
export type
|
|
3593
|
+
export type RefreshAuthSessionErrors = {
|
|
3524
3594
|
/**
|
|
3525
3595
|
* Not authenticated
|
|
3526
3596
|
*/
|
|
@@ -3531,19 +3601,233 @@ export type RefreshSessionErrors = {
|
|
|
3531
3601
|
422: HttpValidationError;
|
|
3532
3602
|
};
|
|
3533
3603
|
|
|
3534
|
-
export type
|
|
3604
|
+
export type RefreshAuthSessionError = RefreshAuthSessionErrors[keyof RefreshAuthSessionErrors];
|
|
3605
|
+
|
|
3606
|
+
export type RefreshAuthSessionResponses = {
|
|
3607
|
+
/**
|
|
3608
|
+
* Successful Response
|
|
3609
|
+
*/
|
|
3610
|
+
200: AuthResponse;
|
|
3611
|
+
};
|
|
3612
|
+
|
|
3613
|
+
export type RefreshAuthSessionResponse = RefreshAuthSessionResponses[keyof RefreshAuthSessionResponses];
|
|
3614
|
+
|
|
3615
|
+
export type ResendVerificationEmailData = {
|
|
3616
|
+
body?: never;
|
|
3617
|
+
headers?: {
|
|
3618
|
+
/**
|
|
3619
|
+
* Authorization
|
|
3620
|
+
*/
|
|
3621
|
+
authorization?: string | null;
|
|
3622
|
+
};
|
|
3623
|
+
path?: never;
|
|
3624
|
+
query?: never;
|
|
3625
|
+
url: '/v1/auth/email/resend';
|
|
3626
|
+
};
|
|
3627
|
+
|
|
3628
|
+
export type ResendVerificationEmailErrors = {
|
|
3629
|
+
/**
|
|
3630
|
+
* Email already verified
|
|
3631
|
+
*/
|
|
3632
|
+
400: ErrorResponse;
|
|
3633
|
+
/**
|
|
3634
|
+
* Validation Error
|
|
3635
|
+
*/
|
|
3636
|
+
422: HttpValidationError;
|
|
3637
|
+
/**
|
|
3638
|
+
* Rate limit exceeded
|
|
3639
|
+
*/
|
|
3640
|
+
429: ErrorResponse;
|
|
3641
|
+
/**
|
|
3642
|
+
* Email service unavailable
|
|
3643
|
+
*/
|
|
3644
|
+
503: ErrorResponse;
|
|
3645
|
+
};
|
|
3646
|
+
|
|
3647
|
+
export type ResendVerificationEmailError = ResendVerificationEmailErrors[keyof ResendVerificationEmailErrors];
|
|
3648
|
+
|
|
3649
|
+
export type ResendVerificationEmailResponses = {
|
|
3650
|
+
/**
|
|
3651
|
+
* Response Resendverificationemail
|
|
3652
|
+
* Successful Response
|
|
3653
|
+
*/
|
|
3654
|
+
200: {
|
|
3655
|
+
[key: string]: unknown;
|
|
3656
|
+
};
|
|
3657
|
+
};
|
|
3658
|
+
|
|
3659
|
+
export type ResendVerificationEmailResponse = ResendVerificationEmailResponses[keyof ResendVerificationEmailResponses];
|
|
3660
|
+
|
|
3661
|
+
export type VerifyEmailData = {
|
|
3662
|
+
body: EmailVerificationRequest;
|
|
3663
|
+
path?: never;
|
|
3664
|
+
query?: never;
|
|
3665
|
+
url: '/v1/auth/email/verify';
|
|
3666
|
+
};
|
|
3667
|
+
|
|
3668
|
+
export type VerifyEmailErrors = {
|
|
3669
|
+
/**
|
|
3670
|
+
* Invalid or expired token
|
|
3671
|
+
*/
|
|
3672
|
+
400: ErrorResponse;
|
|
3673
|
+
/**
|
|
3674
|
+
* Validation Error
|
|
3675
|
+
*/
|
|
3676
|
+
422: HttpValidationError;
|
|
3677
|
+
};
|
|
3678
|
+
|
|
3679
|
+
export type VerifyEmailError = VerifyEmailErrors[keyof VerifyEmailErrors];
|
|
3680
|
+
|
|
3681
|
+
export type VerifyEmailResponses = {
|
|
3682
|
+
/**
|
|
3683
|
+
* Successful Response
|
|
3684
|
+
*/
|
|
3685
|
+
200: AuthResponse;
|
|
3686
|
+
};
|
|
3687
|
+
|
|
3688
|
+
export type VerifyEmailResponse = VerifyEmailResponses[keyof VerifyEmailResponses];
|
|
3689
|
+
|
|
3690
|
+
export type GetPasswordPolicyData = {
|
|
3691
|
+
body?: never;
|
|
3692
|
+
path?: never;
|
|
3693
|
+
query?: never;
|
|
3694
|
+
url: '/v1/auth/password/policy';
|
|
3695
|
+
};
|
|
3696
|
+
|
|
3697
|
+
export type GetPasswordPolicyResponses = {
|
|
3698
|
+
/**
|
|
3699
|
+
* Password policy requirements
|
|
3700
|
+
*/
|
|
3701
|
+
200: PasswordPolicyResponse;
|
|
3702
|
+
};
|
|
3703
|
+
|
|
3704
|
+
export type GetPasswordPolicyResponse = GetPasswordPolicyResponses[keyof GetPasswordPolicyResponses];
|
|
3705
|
+
|
|
3706
|
+
export type CheckPasswordStrengthData = {
|
|
3707
|
+
body: PasswordCheckRequest;
|
|
3708
|
+
path?: never;
|
|
3709
|
+
query?: never;
|
|
3710
|
+
url: '/v1/auth/password/check';
|
|
3711
|
+
};
|
|
3712
|
+
|
|
3713
|
+
export type CheckPasswordStrengthErrors = {
|
|
3714
|
+
/**
|
|
3715
|
+
* Validation Error
|
|
3716
|
+
*/
|
|
3717
|
+
422: HttpValidationError;
|
|
3718
|
+
};
|
|
3719
|
+
|
|
3720
|
+
export type CheckPasswordStrengthError = CheckPasswordStrengthErrors[keyof CheckPasswordStrengthErrors];
|
|
3721
|
+
|
|
3722
|
+
export type CheckPasswordStrengthResponses = {
|
|
3723
|
+
/**
|
|
3724
|
+
* Password strength analysis
|
|
3725
|
+
*/
|
|
3726
|
+
200: PasswordCheckResponse;
|
|
3727
|
+
};
|
|
3728
|
+
|
|
3729
|
+
export type CheckPasswordStrengthResponse = CheckPasswordStrengthResponses[keyof CheckPasswordStrengthResponses];
|
|
3730
|
+
|
|
3731
|
+
export type ForgotPasswordData = {
|
|
3732
|
+
body: ForgotPasswordRequest;
|
|
3733
|
+
path?: never;
|
|
3734
|
+
query?: never;
|
|
3735
|
+
url: '/v1/auth/password/forgot';
|
|
3736
|
+
};
|
|
3737
|
+
|
|
3738
|
+
export type ForgotPasswordErrors = {
|
|
3739
|
+
/**
|
|
3740
|
+
* Validation Error
|
|
3741
|
+
*/
|
|
3742
|
+
422: HttpValidationError;
|
|
3743
|
+
/**
|
|
3744
|
+
* Rate limit exceeded
|
|
3745
|
+
*/
|
|
3746
|
+
429: ErrorResponse;
|
|
3747
|
+
};
|
|
3748
|
+
|
|
3749
|
+
export type ForgotPasswordError = ForgotPasswordErrors[keyof ForgotPasswordErrors];
|
|
3750
|
+
|
|
3751
|
+
export type ForgotPasswordResponses = {
|
|
3752
|
+
/**
|
|
3753
|
+
* Response Forgotpassword
|
|
3754
|
+
* Successful Response
|
|
3755
|
+
*/
|
|
3756
|
+
200: {
|
|
3757
|
+
[key: string]: unknown;
|
|
3758
|
+
};
|
|
3759
|
+
};
|
|
3760
|
+
|
|
3761
|
+
export type ForgotPasswordResponse = ForgotPasswordResponses[keyof ForgotPasswordResponses];
|
|
3762
|
+
|
|
3763
|
+
export type ValidateResetTokenData = {
|
|
3764
|
+
body?: never;
|
|
3765
|
+
path?: never;
|
|
3766
|
+
query: {
|
|
3767
|
+
/**
|
|
3768
|
+
* Token
|
|
3769
|
+
* Password reset token
|
|
3770
|
+
*/
|
|
3771
|
+
token: string;
|
|
3772
|
+
};
|
|
3773
|
+
url: '/v1/auth/password/reset/validate';
|
|
3774
|
+
};
|
|
3775
|
+
|
|
3776
|
+
export type ValidateResetTokenErrors = {
|
|
3777
|
+
/**
|
|
3778
|
+
* Validation Error
|
|
3779
|
+
*/
|
|
3780
|
+
422: HttpValidationError;
|
|
3781
|
+
};
|
|
3782
|
+
|
|
3783
|
+
export type ValidateResetTokenError = ValidateResetTokenErrors[keyof ValidateResetTokenErrors];
|
|
3784
|
+
|
|
3785
|
+
export type ValidateResetTokenResponses = {
|
|
3786
|
+
/**
|
|
3787
|
+
* Successful Response
|
|
3788
|
+
*/
|
|
3789
|
+
200: ResetPasswordValidateResponse;
|
|
3790
|
+
};
|
|
3791
|
+
|
|
3792
|
+
export type ValidateResetTokenResponse = ValidateResetTokenResponses[keyof ValidateResetTokenResponses];
|
|
3793
|
+
|
|
3794
|
+
export type ResetPasswordData = {
|
|
3795
|
+
body: ResetPasswordRequest;
|
|
3796
|
+
path?: never;
|
|
3797
|
+
query?: never;
|
|
3798
|
+
url: '/v1/auth/password/reset';
|
|
3799
|
+
};
|
|
3800
|
+
|
|
3801
|
+
export type ResetPasswordErrors = {
|
|
3802
|
+
/**
|
|
3803
|
+
* Invalid token or password
|
|
3804
|
+
*/
|
|
3805
|
+
400: ErrorResponse;
|
|
3806
|
+
/**
|
|
3807
|
+
* Validation Error
|
|
3808
|
+
*/
|
|
3809
|
+
422: HttpValidationError;
|
|
3810
|
+
};
|
|
3811
|
+
|
|
3812
|
+
export type ResetPasswordError = ResetPasswordErrors[keyof ResetPasswordErrors];
|
|
3535
3813
|
|
|
3536
|
-
export type
|
|
3814
|
+
export type ResetPasswordResponses = {
|
|
3537
3815
|
/**
|
|
3538
3816
|
* Successful Response
|
|
3539
3817
|
*/
|
|
3540
3818
|
200: AuthResponse;
|
|
3541
3819
|
};
|
|
3542
3820
|
|
|
3543
|
-
export type
|
|
3821
|
+
export type ResetPasswordResponse = ResetPasswordResponses[keyof ResetPasswordResponses];
|
|
3544
3822
|
|
|
3545
3823
|
export type GenerateSsoTokenData = {
|
|
3546
3824
|
body?: never;
|
|
3825
|
+
headers?: {
|
|
3826
|
+
/**
|
|
3827
|
+
* Authorization
|
|
3828
|
+
*/
|
|
3829
|
+
authorization?: string | null;
|
|
3830
|
+
};
|
|
3547
3831
|
path?: never;
|
|
3548
3832
|
query?: never;
|
|
3549
3833
|
url: '/v1/auth/sso-token';
|
|
@@ -3662,47 +3946,6 @@ export type CompleteSsoAuthResponses = {
|
|
|
3662
3946
|
|
|
3663
3947
|
export type CompleteSsoAuthResponse = CompleteSsoAuthResponses[keyof CompleteSsoAuthResponses];
|
|
3664
3948
|
|
|
3665
|
-
export type GetPasswordPolicyData = {
|
|
3666
|
-
body?: never;
|
|
3667
|
-
path?: never;
|
|
3668
|
-
query?: never;
|
|
3669
|
-
url: '/v1/auth/password/policy';
|
|
3670
|
-
};
|
|
3671
|
-
|
|
3672
|
-
export type GetPasswordPolicyResponses = {
|
|
3673
|
-
/**
|
|
3674
|
-
* Password policy requirements
|
|
3675
|
-
*/
|
|
3676
|
-
200: PasswordPolicyResponse;
|
|
3677
|
-
};
|
|
3678
|
-
|
|
3679
|
-
export type GetPasswordPolicyResponse = GetPasswordPolicyResponses[keyof GetPasswordPolicyResponses];
|
|
3680
|
-
|
|
3681
|
-
export type CheckPasswordStrengthData = {
|
|
3682
|
-
body: PasswordCheckRequest;
|
|
3683
|
-
path?: never;
|
|
3684
|
-
query?: never;
|
|
3685
|
-
url: '/v1/auth/password/check';
|
|
3686
|
-
};
|
|
3687
|
-
|
|
3688
|
-
export type CheckPasswordStrengthErrors = {
|
|
3689
|
-
/**
|
|
3690
|
-
* Validation Error
|
|
3691
|
-
*/
|
|
3692
|
-
422: HttpValidationError;
|
|
3693
|
-
};
|
|
3694
|
-
|
|
3695
|
-
export type CheckPasswordStrengthError = CheckPasswordStrengthErrors[keyof CheckPasswordStrengthErrors];
|
|
3696
|
-
|
|
3697
|
-
export type CheckPasswordStrengthResponses = {
|
|
3698
|
-
/**
|
|
3699
|
-
* Password strength analysis
|
|
3700
|
-
*/
|
|
3701
|
-
200: PasswordCheckResponse;
|
|
3702
|
-
};
|
|
3703
|
-
|
|
3704
|
-
export type CheckPasswordStrengthResponse = CheckPasswordStrengthResponses[keyof CheckPasswordStrengthResponses];
|
|
3705
|
-
|
|
3706
3949
|
export type GetCaptchaConfigData = {
|
|
3707
3950
|
body?: never;
|
|
3708
3951
|
path?: never;
|
package/sdk.gen.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Options as ClientOptions, TDataShape, Client } from './client';
|
|
2
|
-
import type { RegisterUserData, RegisterUserResponses, RegisterUserErrors, LoginUserData, LoginUserResponses, LoginUserErrors, LogoutUserData, LogoutUserResponses, LogoutUserErrors, GetCurrentAuthUserData, GetCurrentAuthUserResponses, GetCurrentAuthUserErrors,
|
|
2
|
+
import type { RegisterUserData, RegisterUserResponses, RegisterUserErrors, LoginUserData, LoginUserResponses, LoginUserErrors, LogoutUserData, LogoutUserResponses, LogoutUserErrors, GetCurrentAuthUserData, GetCurrentAuthUserResponses, GetCurrentAuthUserErrors, RefreshAuthSessionData, RefreshAuthSessionResponses, RefreshAuthSessionErrors, ResendVerificationEmailData, ResendVerificationEmailResponses, ResendVerificationEmailErrors, VerifyEmailData, VerifyEmailResponses, VerifyEmailErrors, GetPasswordPolicyData, GetPasswordPolicyResponses, CheckPasswordStrengthData, CheckPasswordStrengthResponses, CheckPasswordStrengthErrors, ForgotPasswordData, ForgotPasswordResponses, ForgotPasswordErrors, ValidateResetTokenData, ValidateResetTokenResponses, ValidateResetTokenErrors, ResetPasswordData, ResetPasswordResponses, ResetPasswordErrors, GenerateSsoTokenData, GenerateSsoTokenResponses, GenerateSsoTokenErrors, SsoLoginData, SsoLoginResponses, SsoLoginErrors, SsoTokenExchangeData, SsoTokenExchangeResponses, SsoTokenExchangeErrors, CompleteSsoAuthData, CompleteSsoAuthResponses, CompleteSsoAuthErrors, GetCaptchaConfigData, GetCaptchaConfigResponses, GetServiceStatusData, GetServiceStatusResponses, GetCurrentUserData, GetCurrentUserResponses, GetCurrentUserErrors, UpdateUserData, UpdateUserResponses, UpdateUserErrors, GetUserGraphsData, GetUserGraphsResponses, GetUserGraphsErrors, SelectUserGraphData, SelectUserGraphResponses, SelectUserGraphErrors, GetAllCreditSummariesData, GetAllCreditSummariesResponses, GetAllCreditSummariesErrors, UpdateUserPasswordData, UpdateUserPasswordResponses, UpdateUserPasswordErrors, ListUserApiKeysData, ListUserApiKeysResponses, ListUserApiKeysErrors, CreateUserApiKeyData, CreateUserApiKeyResponses, CreateUserApiKeyErrors, RevokeUserApiKeyData, RevokeUserApiKeyResponses, RevokeUserApiKeyErrors, UpdateUserApiKeyData, UpdateUserApiKeyResponses, UpdateUserApiKeyErrors, GetUserLimitsData, GetUserLimitsResponses, GetUserLimitsErrors, GetUserUsageData, GetUserUsageResponses, GetUserUsageErrors, GetAllSharedRepositoryLimitsData, GetAllSharedRepositoryLimitsResponses, GetAllSharedRepositoryLimitsErrors, GetSharedRepositoryLimitsData, GetSharedRepositoryLimitsResponses, GetSharedRepositoryLimitsErrors, GetUserUsageOverviewData, GetUserUsageOverviewResponses, GetUserUsageOverviewErrors, GetDetailedUserAnalyticsData, GetDetailedUserAnalyticsResponses, GetDetailedUserAnalyticsErrors, GetUserSharedSubscriptionsData, GetUserSharedSubscriptionsResponses, GetUserSharedSubscriptionsErrors, SubscribeToSharedRepositoryData, SubscribeToSharedRepositoryResponses, SubscribeToSharedRepositoryErrors, UpgradeSharedRepositorySubscriptionData, UpgradeSharedRepositorySubscriptionResponses, UpgradeSharedRepositorySubscriptionErrors, CancelSharedRepositorySubscriptionData, CancelSharedRepositorySubscriptionResponses, CancelSharedRepositorySubscriptionErrors, GetSharedRepositoryCreditsData, GetSharedRepositoryCreditsResponses, GetSharedRepositoryCreditsErrors, GetRepositoryCreditsData, GetRepositoryCreditsResponses, GetRepositoryCreditsErrors, GetConnectionOptionsData, GetConnectionOptionsResponses, GetConnectionOptionsErrors, SyncConnectionData, SyncConnectionResponses, SyncConnectionErrors, CreateLinkTokenData, CreateLinkTokenResponses, CreateLinkTokenErrors, ExchangeLinkTokenData, ExchangeLinkTokenResponses, ExchangeLinkTokenErrors, InitOAuthData, InitOAuthResponses, InitOAuthErrors, OauthCallbackData, OauthCallbackResponses, OauthCallbackErrors, ListConnectionsData, ListConnectionsResponses, ListConnectionsErrors, CreateConnectionData, CreateConnectionResponses, CreateConnectionErrors, DeleteConnectionData, DeleteConnectionResponses, DeleteConnectionErrors, GetConnectionData, GetConnectionResponses, GetConnectionErrors, AutoSelectAgentData, AutoSelectAgentResponses, AutoSelectAgentErrors, ExecuteSpecificAgentData, ExecuteSpecificAgentResponses, ExecuteSpecificAgentErrors, BatchProcessQueriesData, BatchProcessQueriesResponses, BatchProcessQueriesErrors, ListAgentsData, ListAgentsResponses, ListAgentsErrors, GetAgentMetadataData, GetAgentMetadataResponses, GetAgentMetadataErrors, RecommendAgentData, RecommendAgentResponses, RecommendAgentErrors, ListMcpToolsData, ListMcpToolsResponses, ListMcpToolsErrors, CallMcpToolData, CallMcpToolResponses, CallMcpToolErrors, ListBackupsData, ListBackupsResponses, ListBackupsErrors, CreateBackupData, CreateBackupResponses, CreateBackupErrors, ExportBackupData, ExportBackupResponses, ExportBackupErrors, GetBackupDownloadUrlData, GetBackupDownloadUrlResponses, GetBackupDownloadUrlErrors, RestoreBackupData, RestoreBackupResponses, RestoreBackupErrors, GetBackupStatsData, GetBackupStatsResponses, GetBackupStatsErrors, GetGraphMetricsData, GetGraphMetricsResponses, GetGraphMetricsErrors, GetGraphUsageStatsData, GetGraphUsageStatsResponses, GetGraphUsageStatsErrors, ExecuteCypherQueryData, ExecuteCypherQueryResponses, ExecuteCypherQueryErrors, GetGraphSchemaInfoData, GetGraphSchemaInfoResponses, GetGraphSchemaInfoErrors, ValidateSchemaData, ValidateSchemaResponses, ValidateSchemaErrors, ExportGraphSchemaData, ExportGraphSchemaResponses, ExportGraphSchemaErrors, ListSchemaExtensionsData, ListSchemaExtensionsResponses, ListSchemaExtensionsErrors, GetCurrentGraphBillData, GetCurrentGraphBillResponses, GetCurrentGraphBillErrors, GetGraphUsageDetailsData, GetGraphUsageDetailsResponses, GetGraphUsageDetailsErrors, GetGraphBillingHistoryData, GetGraphBillingHistoryResponses, GetGraphBillingHistoryErrors, GetGraphMonthlyBillData, GetGraphMonthlyBillResponses, GetGraphMonthlyBillErrors, GetCreditSummaryData, GetCreditSummaryResponses, GetCreditSummaryErrors, ListCreditTransactionsData, ListCreditTransactionsResponses, ListCreditTransactionsErrors, CheckCreditBalanceData, CheckCreditBalanceResponses, CheckCreditBalanceErrors, GetStorageUsageData, GetStorageUsageResponses, GetStorageUsageErrors, CheckStorageLimitsData, CheckStorageLimitsResponses, CheckStorageLimitsErrors, GetDatabaseHealthData, GetDatabaseHealthResponses, GetDatabaseHealthErrors, GetDatabaseInfoData, GetDatabaseInfoResponses, GetDatabaseInfoErrors, GetGraphLimitsData, GetGraphLimitsResponses, GetGraphLimitsErrors, ListSubgraphsData, ListSubgraphsResponses, ListSubgraphsErrors, CreateSubgraphData, CreateSubgraphResponses, CreateSubgraphErrors, DeleteSubgraphData, DeleteSubgraphResponses, DeleteSubgraphErrors, GetSubgraphInfoData, GetSubgraphInfoResponses, GetSubgraphInfoErrors, GetSubgraphQuotaData, GetSubgraphQuotaResponses, GetSubgraphQuotaErrors, CopyDataToGraphData, CopyDataToGraphResponses, CopyDataToGraphErrors, CreateGraphData, CreateGraphResponses, CreateGraphErrors, GetAvailableExtensionsData, GetAvailableExtensionsResponses, GetServiceOfferingsData, GetServiceOfferingsResponses, GetServiceOfferingsErrors, StreamOperationEventsData, StreamOperationEventsResponses, StreamOperationEventsErrors, GetOperationStatusData, GetOperationStatusResponses, GetOperationStatusErrors, CancelOperationData, CancelOperationResponses, CancelOperationErrors } from './types.gen';
|
|
3
3
|
export type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean> = ClientOptions<TData, ThrowOnError> & {
|
|
4
4
|
/**
|
|
5
5
|
* You can provide a client instance returned by `createClient()` instead of
|
|
@@ -30,14 +30,49 @@ export declare const loginUser: <ThrowOnError extends boolean = false>(options:
|
|
|
30
30
|
export declare const logoutUser: <ThrowOnError extends boolean = false>(options?: Options<LogoutUserData, ThrowOnError>) => import("./client").RequestResult<LogoutUserResponses, LogoutUserErrors, ThrowOnError, "fields">;
|
|
31
31
|
/**
|
|
32
32
|
* Get Current User
|
|
33
|
-
* Get
|
|
33
|
+
* Get the currently authenticated user.
|
|
34
34
|
*/
|
|
35
35
|
export declare const getCurrentAuthUser: <ThrowOnError extends boolean = false>(options?: Options<GetCurrentAuthUserData, ThrowOnError>) => import("./client").RequestResult<GetCurrentAuthUserResponses, GetCurrentAuthUserErrors, ThrowOnError, "fields">;
|
|
36
36
|
/**
|
|
37
37
|
* Refresh Session
|
|
38
|
-
* Refresh
|
|
38
|
+
* Refresh authentication session with a new JWT token.
|
|
39
39
|
*/
|
|
40
|
-
export declare const
|
|
40
|
+
export declare const refreshAuthSession: <ThrowOnError extends boolean = false>(options?: Options<RefreshAuthSessionData, ThrowOnError>) => import("./client").RequestResult<RefreshAuthSessionResponses, RefreshAuthSessionErrors, ThrowOnError, "fields">;
|
|
41
|
+
/**
|
|
42
|
+
* Resend Email Verification
|
|
43
|
+
* Resend verification email to the authenticated user. Rate limited to 3 per hour.
|
|
44
|
+
*/
|
|
45
|
+
export declare const resendVerificationEmail: <ThrowOnError extends boolean = false>(options?: Options<ResendVerificationEmailData, ThrowOnError>) => import("./client").RequestResult<ResendVerificationEmailResponses, ResendVerificationEmailErrors, ThrowOnError, "fields">;
|
|
46
|
+
/**
|
|
47
|
+
* Verify Email
|
|
48
|
+
* Verify email address with token from email link. Returns JWT for auto-login.
|
|
49
|
+
*/
|
|
50
|
+
export declare const verifyEmail: <ThrowOnError extends boolean = false>(options: Options<VerifyEmailData, ThrowOnError>) => import("./client").RequestResult<VerifyEmailResponses, VerifyEmailErrors, ThrowOnError, "fields">;
|
|
51
|
+
/**
|
|
52
|
+
* Get Password Policy
|
|
53
|
+
* Get current password policy requirements for frontend validation
|
|
54
|
+
*/
|
|
55
|
+
export declare const getPasswordPolicy: <ThrowOnError extends boolean = false>(options?: Options<GetPasswordPolicyData, ThrowOnError>) => import("./client").RequestResult<GetPasswordPolicyResponses, unknown, ThrowOnError, "fields">;
|
|
56
|
+
/**
|
|
57
|
+
* Check Password Strength
|
|
58
|
+
* Check password strength and get validation feedback
|
|
59
|
+
*/
|
|
60
|
+
export declare const checkPasswordStrength: <ThrowOnError extends boolean = false>(options: Options<CheckPasswordStrengthData, ThrowOnError>) => import("./client").RequestResult<CheckPasswordStrengthResponses, CheckPasswordStrengthErrors, ThrowOnError, "fields">;
|
|
61
|
+
/**
|
|
62
|
+
* Forgot Password
|
|
63
|
+
* Request password reset email. Always returns success to prevent email enumeration.
|
|
64
|
+
*/
|
|
65
|
+
export declare const forgotPassword: <ThrowOnError extends boolean = false>(options: Options<ForgotPasswordData, ThrowOnError>) => import("./client").RequestResult<ForgotPasswordResponses, ForgotPasswordErrors, ThrowOnError, "fields">;
|
|
66
|
+
/**
|
|
67
|
+
* Validate Reset Token
|
|
68
|
+
* Check if a password reset token is valid without consuming it.
|
|
69
|
+
*/
|
|
70
|
+
export declare const validateResetToken: <ThrowOnError extends boolean = false>(options: Options<ValidateResetTokenData, ThrowOnError>) => import("./client").RequestResult<ValidateResetTokenResponses, ValidateResetTokenErrors, ThrowOnError, "fields">;
|
|
71
|
+
/**
|
|
72
|
+
* Reset Password
|
|
73
|
+
* Reset password with token from email. Returns JWT for auto-login.
|
|
74
|
+
*/
|
|
75
|
+
export declare const resetPassword: <ThrowOnError extends boolean = false>(options: Options<ResetPasswordData, ThrowOnError>) => import("./client").RequestResult<ResetPasswordResponses, ResetPasswordErrors, ThrowOnError, "fields">;
|
|
41
76
|
/**
|
|
42
77
|
* Generate SSO Token
|
|
43
78
|
* Generate a temporary SSO token for cross-app authentication.
|
|
@@ -58,16 +93,6 @@ export declare const ssoTokenExchange: <ThrowOnError extends boolean = false>(op
|
|
|
58
93
|
* Complete SSO authentication using session ID from secure handoff.
|
|
59
94
|
*/
|
|
60
95
|
export declare const completeSsoAuth: <ThrowOnError extends boolean = false>(options: Options<CompleteSsoAuthData, ThrowOnError>) => import("./client").RequestResult<CompleteSsoAuthResponses, CompleteSsoAuthErrors, ThrowOnError, "fields">;
|
|
61
|
-
/**
|
|
62
|
-
* Get Password Policy
|
|
63
|
-
* Get current password policy requirements for frontend validation
|
|
64
|
-
*/
|
|
65
|
-
export declare const getPasswordPolicy: <ThrowOnError extends boolean = false>(options?: Options<GetPasswordPolicyData, ThrowOnError>) => import("./client").RequestResult<GetPasswordPolicyResponses, unknown, ThrowOnError, "fields">;
|
|
66
|
-
/**
|
|
67
|
-
* Check Password Strength
|
|
68
|
-
* Check password strength and get validation feedback
|
|
69
|
-
*/
|
|
70
|
-
export declare const checkPasswordStrength: <ThrowOnError extends boolean = false>(options: Options<CheckPasswordStrengthData, ThrowOnError>) => import("./client").RequestResult<CheckPasswordStrengthResponses, CheckPasswordStrengthErrors, ThrowOnError, "fields">;
|
|
71
96
|
/**
|
|
72
97
|
* Get CAPTCHA Configuration
|
|
73
98
|
* Get CAPTCHA configuration including site key and whether CAPTCHA is required.
|
|
@@ -318,7 +343,7 @@ export declare const initOAuth: <ThrowOnError extends boolean = false>(options:
|
|
|
318
343
|
* - **QuickBooks**: Accounting data integration
|
|
319
344
|
*
|
|
320
345
|
* Security measures:
|
|
321
|
-
* - State validation prevents
|
|
346
|
+
* - State validation prevents session hijacking
|
|
322
347
|
* - User context is verified
|
|
323
348
|
* - Tokens are encrypted before storage
|
|
324
349
|
* - Full audit trail is maintained
|
package/sdk.gen.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// This file is auto-generated by @hey-api/openapi-ts
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.
|
|
5
|
-
exports.cancelOperation = exports.getOperationStatus = exports.streamOperationEvents = exports.getServiceOfferings = exports.getAvailableExtensions = exports.createGraph = exports.copyDataToGraph = exports.getSubgraphQuota = exports.getSubgraphInfo = exports.deleteSubgraph = exports.createSubgraph = exports.listSubgraphs = exports.getGraphLimits = exports.getDatabaseInfo = exports.getDatabaseHealth = exports.checkStorageLimits = exports.getStorageUsage = exports.checkCreditBalance = exports.listCreditTransactions = exports.getCreditSummary = exports.getGraphMonthlyBill = exports.getGraphBillingHistory = exports.getGraphUsageDetails = exports.getCurrentGraphBill = exports.listSchemaExtensions = exports.exportGraphSchema = exports.validateSchema = exports.getGraphSchemaInfo = exports.executeCypherQuery = exports.getGraphUsageStats = exports.getGraphMetrics = exports.getBackupStats = exports.restoreBackup = exports.getBackupDownloadUrl = exports.exportBackup = exports.createBackup = exports.listBackups = exports.callMcpTool = exports.listMcpTools = exports.recommendAgent = void 0;
|
|
4
|
+
exports.getConnection = exports.deleteConnection = exports.createConnection = exports.listConnections = exports.oauthCallback = exports.initOAuth = exports.exchangeLinkToken = exports.createLinkToken = exports.syncConnection = exports.getConnectionOptions = exports.getRepositoryCredits = exports.getSharedRepositoryCredits = exports.cancelSharedRepositorySubscription = exports.upgradeSharedRepositorySubscription = exports.subscribeToSharedRepository = exports.getUserSharedSubscriptions = exports.getDetailedUserAnalytics = exports.getUserUsageOverview = exports.getSharedRepositoryLimits = exports.getAllSharedRepositoryLimits = exports.getUserUsage = exports.getUserLimits = exports.updateUserApiKey = exports.revokeUserApiKey = exports.createUserApiKey = exports.listUserApiKeys = exports.updateUserPassword = exports.getAllCreditSummaries = exports.selectUserGraph = exports.getUserGraphs = exports.updateUser = exports.getCurrentUser = exports.getServiceStatus = exports.getCaptchaConfig = exports.completeSsoAuth = exports.ssoTokenExchange = exports.ssoLogin = exports.generateSsoToken = exports.resetPassword = exports.validateResetToken = exports.forgotPassword = exports.checkPasswordStrength = exports.getPasswordPolicy = exports.verifyEmail = exports.resendVerificationEmail = exports.refreshAuthSession = exports.getCurrentAuthUser = exports.logoutUser = exports.loginUser = exports.registerUser = void 0;
|
|
5
|
+
exports.cancelOperation = exports.getOperationStatus = exports.streamOperationEvents = exports.getServiceOfferings = exports.getAvailableExtensions = exports.createGraph = exports.copyDataToGraph = exports.getSubgraphQuota = exports.getSubgraphInfo = exports.deleteSubgraph = exports.createSubgraph = exports.listSubgraphs = exports.getGraphLimits = exports.getDatabaseInfo = exports.getDatabaseHealth = exports.checkStorageLimits = exports.getStorageUsage = exports.checkCreditBalance = exports.listCreditTransactions = exports.getCreditSummary = exports.getGraphMonthlyBill = exports.getGraphBillingHistory = exports.getGraphUsageDetails = exports.getCurrentGraphBill = exports.listSchemaExtensions = exports.exportGraphSchema = exports.validateSchema = exports.getGraphSchemaInfo = exports.executeCypherQuery = exports.getGraphUsageStats = exports.getGraphMetrics = exports.getBackupStats = exports.restoreBackup = exports.getBackupDownloadUrl = exports.exportBackup = exports.createBackup = exports.listBackups = exports.callMcpTool = exports.listMcpTools = exports.recommendAgent = exports.getAgentMetadata = exports.listAgents = exports.batchProcessQueries = exports.executeSpecificAgent = exports.autoSelectAgent = void 0;
|
|
6
6
|
const client_gen_1 = require("./client.gen");
|
|
7
7
|
/**
|
|
8
8
|
* Register New User
|
|
@@ -47,7 +47,7 @@ const logoutUser = (options) => {
|
|
|
47
47
|
exports.logoutUser = logoutUser;
|
|
48
48
|
/**
|
|
49
49
|
* Get Current User
|
|
50
|
-
* Get
|
|
50
|
+
* Get the currently authenticated user.
|
|
51
51
|
*/
|
|
52
52
|
const getCurrentAuthUser = (options) => {
|
|
53
53
|
return (options?.client ?? client_gen_1.client).get({
|
|
@@ -58,15 +58,108 @@ const getCurrentAuthUser = (options) => {
|
|
|
58
58
|
exports.getCurrentAuthUser = getCurrentAuthUser;
|
|
59
59
|
/**
|
|
60
60
|
* Refresh Session
|
|
61
|
-
* Refresh
|
|
61
|
+
* Refresh authentication session with a new JWT token.
|
|
62
62
|
*/
|
|
63
|
-
const
|
|
63
|
+
const refreshAuthSession = (options) => {
|
|
64
64
|
return (options?.client ?? client_gen_1.client).post({
|
|
65
65
|
url: '/v1/auth/refresh',
|
|
66
66
|
...options
|
|
67
67
|
});
|
|
68
68
|
};
|
|
69
|
-
exports.
|
|
69
|
+
exports.refreshAuthSession = refreshAuthSession;
|
|
70
|
+
/**
|
|
71
|
+
* Resend Email Verification
|
|
72
|
+
* Resend verification email to the authenticated user. Rate limited to 3 per hour.
|
|
73
|
+
*/
|
|
74
|
+
const resendVerificationEmail = (options) => {
|
|
75
|
+
return (options?.client ?? client_gen_1.client).post({
|
|
76
|
+
url: '/v1/auth/email/resend',
|
|
77
|
+
...options
|
|
78
|
+
});
|
|
79
|
+
};
|
|
80
|
+
exports.resendVerificationEmail = resendVerificationEmail;
|
|
81
|
+
/**
|
|
82
|
+
* Verify Email
|
|
83
|
+
* Verify email address with token from email link. Returns JWT for auto-login.
|
|
84
|
+
*/
|
|
85
|
+
const verifyEmail = (options) => {
|
|
86
|
+
return (options.client ?? client_gen_1.client).post({
|
|
87
|
+
url: '/v1/auth/email/verify',
|
|
88
|
+
...options,
|
|
89
|
+
headers: {
|
|
90
|
+
'Content-Type': 'application/json',
|
|
91
|
+
...options.headers
|
|
92
|
+
}
|
|
93
|
+
});
|
|
94
|
+
};
|
|
95
|
+
exports.verifyEmail = verifyEmail;
|
|
96
|
+
/**
|
|
97
|
+
* Get Password Policy
|
|
98
|
+
* Get current password policy requirements for frontend validation
|
|
99
|
+
*/
|
|
100
|
+
const getPasswordPolicy = (options) => {
|
|
101
|
+
return (options?.client ?? client_gen_1.client).get({
|
|
102
|
+
url: '/v1/auth/password/policy',
|
|
103
|
+
...options
|
|
104
|
+
});
|
|
105
|
+
};
|
|
106
|
+
exports.getPasswordPolicy = getPasswordPolicy;
|
|
107
|
+
/**
|
|
108
|
+
* Check Password Strength
|
|
109
|
+
* Check password strength and get validation feedback
|
|
110
|
+
*/
|
|
111
|
+
const checkPasswordStrength = (options) => {
|
|
112
|
+
return (options.client ?? client_gen_1.client).post({
|
|
113
|
+
url: '/v1/auth/password/check',
|
|
114
|
+
...options,
|
|
115
|
+
headers: {
|
|
116
|
+
'Content-Type': 'application/json',
|
|
117
|
+
...options.headers
|
|
118
|
+
}
|
|
119
|
+
});
|
|
120
|
+
};
|
|
121
|
+
exports.checkPasswordStrength = checkPasswordStrength;
|
|
122
|
+
/**
|
|
123
|
+
* Forgot Password
|
|
124
|
+
* Request password reset email. Always returns success to prevent email enumeration.
|
|
125
|
+
*/
|
|
126
|
+
const forgotPassword = (options) => {
|
|
127
|
+
return (options.client ?? client_gen_1.client).post({
|
|
128
|
+
url: '/v1/auth/password/forgot',
|
|
129
|
+
...options,
|
|
130
|
+
headers: {
|
|
131
|
+
'Content-Type': 'application/json',
|
|
132
|
+
...options.headers
|
|
133
|
+
}
|
|
134
|
+
});
|
|
135
|
+
};
|
|
136
|
+
exports.forgotPassword = forgotPassword;
|
|
137
|
+
/**
|
|
138
|
+
* Validate Reset Token
|
|
139
|
+
* Check if a password reset token is valid without consuming it.
|
|
140
|
+
*/
|
|
141
|
+
const validateResetToken = (options) => {
|
|
142
|
+
return (options.client ?? client_gen_1.client).get({
|
|
143
|
+
url: '/v1/auth/password/reset/validate',
|
|
144
|
+
...options
|
|
145
|
+
});
|
|
146
|
+
};
|
|
147
|
+
exports.validateResetToken = validateResetToken;
|
|
148
|
+
/**
|
|
149
|
+
* Reset Password
|
|
150
|
+
* Reset password with token from email. Returns JWT for auto-login.
|
|
151
|
+
*/
|
|
152
|
+
const resetPassword = (options) => {
|
|
153
|
+
return (options.client ?? client_gen_1.client).post({
|
|
154
|
+
url: '/v1/auth/password/reset',
|
|
155
|
+
...options,
|
|
156
|
+
headers: {
|
|
157
|
+
'Content-Type': 'application/json',
|
|
158
|
+
...options.headers
|
|
159
|
+
}
|
|
160
|
+
});
|
|
161
|
+
};
|
|
162
|
+
exports.resetPassword = resetPassword;
|
|
70
163
|
/**
|
|
71
164
|
* Generate SSO Token
|
|
72
165
|
* Generate a temporary SSO token for cross-app authentication.
|
|
@@ -123,32 +216,6 @@ const completeSsoAuth = (options) => {
|
|
|
123
216
|
});
|
|
124
217
|
};
|
|
125
218
|
exports.completeSsoAuth = completeSsoAuth;
|
|
126
|
-
/**
|
|
127
|
-
* Get Password Policy
|
|
128
|
-
* Get current password policy requirements for frontend validation
|
|
129
|
-
*/
|
|
130
|
-
const getPasswordPolicy = (options) => {
|
|
131
|
-
return (options?.client ?? client_gen_1.client).get({
|
|
132
|
-
url: '/v1/auth/password/policy',
|
|
133
|
-
...options
|
|
134
|
-
});
|
|
135
|
-
};
|
|
136
|
-
exports.getPasswordPolicy = getPasswordPolicy;
|
|
137
|
-
/**
|
|
138
|
-
* Check Password Strength
|
|
139
|
-
* Check password strength and get validation feedback
|
|
140
|
-
*/
|
|
141
|
-
const checkPasswordStrength = (options) => {
|
|
142
|
-
return (options.client ?? client_gen_1.client).post({
|
|
143
|
-
url: '/v1/auth/password/check',
|
|
144
|
-
...options,
|
|
145
|
-
headers: {
|
|
146
|
-
'Content-Type': 'application/json',
|
|
147
|
-
...options.headers
|
|
148
|
-
}
|
|
149
|
-
});
|
|
150
|
-
};
|
|
151
|
-
exports.checkPasswordStrength = checkPasswordStrength;
|
|
152
219
|
/**
|
|
153
220
|
* Get CAPTCHA Configuration
|
|
154
221
|
* Get CAPTCHA configuration including site key and whether CAPTCHA is required.
|
|
@@ -883,7 +950,7 @@ exports.initOAuth = initOAuth;
|
|
|
883
950
|
* - **QuickBooks**: Accounting data integration
|
|
884
951
|
*
|
|
885
952
|
* Security measures:
|
|
886
|
-
* - State validation prevents
|
|
953
|
+
* - State validation prevents session hijacking
|
|
887
954
|
* - User context is verified
|
|
888
955
|
* - Tokens are encrypted before storage
|
|
889
956
|
* - Full audit trail is maintained
|