Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update sdk #169

Merged
merged 10 commits into from
Apr 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions sdk/bindings/ClientConnectInitEvent.ts

This file was deleted.

2 changes: 1 addition & 1 deletion sdk/bindings/CloudApiErrors.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.

export type CloudApiErrors = "TeamDoesNotExist" | "UserDoesNotExist" | "CloudFeatureDisabled" | "InsufficientPermissions" | "TeamHasNoRegisteredApps" | "DatabaseError" | "MaximumUsersPerTeamReached" | "UserAlreadyBelongsToTheTeam" | "IncorrectPassword" | "AccessTokenFailure" | "RefreshTokenFailure" | "AppAlreadyExists" | "MaximumAppsPerTeamReached" | "TeamAlreadyExists" | "PersonalTeamAlreadyExists" | "EmailAlreadyExists" | "InternalServerError" | "UserDoesNotBelongsToTheTeam" | "InvalidName" | "UnauthorizedOriginError" | "AppDoesNotExist" | "UserAlreadyInvitedToTheTeam" | "MaximumInvitesPerTeamReached" | "InviteNotFound" | "ActionForbiddenForPersonalTeam" | "InviteDoesNotExist" | "InvalidPaginationCursor";
export type CloudApiErrors = "TeamDoesNotExist" | "UserDoesNotExist" | "CloudFeatureDisabled" | "InsufficientPermissions" | "TeamHasNoRegisteredApps" | "DatabaseError" | "MaximumUsersPerTeamReached" | "UserAlreadyBelongsToTheTeam" | "IncorrectPassword" | "AccessTokenFailure" | "RefreshTokenFailure" | "AppAlreadyExists" | "MaximumAppsPerTeamReached" | "TeamAlreadyExists" | "PersonalTeamAlreadyExists" | "EmailAlreadyExists" | "InternalServerError" | "UserDoesNotBelongsToTheTeam" | "InvalidName" | "UnauthorizedOriginError" | "AppDoesNotExist" | "UserAlreadyInvitedToTheTeam" | "MaximumInvitesPerTeamReached" | "InviteNotFound" | "ActionForbiddenForPersonalTeam" | "InviteDoesNotExist" | "InvalidPaginationCursor" | "InvalidVerificationCode" | "InvalidDomainName" | "DomainAlreadyVerified" | "DomainVerificationFailure" | "DomainNotFound" | "DomainVerificationNotStarted" | "WebAuthnError" | "PasswordNotSet" | "UserDoesNotHavePasskey" | "PasskeyAlreadyExists" | "InvalidPasskeyCredential" | "PasskeyDoesNotExist";
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.

export type HttpAddUserToTeamResponse = null;
export type HttpAddPasskeyFinishResponse = null;
4 changes: 4 additions & 0 deletions sdk/bindings/HttpChangeUsersPrivilegesRequest.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
import type { PrivilegeChange } from "./PrivilegeChange";

export interface HttpChangeUsersPrivilegesRequest { teamId: string, privilegesChanges: Array<PrivilegeChange>, }
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.

export type HttpRegisterWithPasswordResponse = null;
export type HttpChangeUsersPrivilegesResponse = null;
2 changes: 1 addition & 1 deletion sdk/bindings/HttpCloudEndpoint.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.

export type HttpCloudEndpoint = "/register_new_app" | "/register_with_password" | "/login_with_password" | "/login_with_google" | "/register_new_team" | "/remove_user_from_team" | "/get_user_joined_teams" | "/events" | "/invite_user_to_team" | "/accept_team_invite" | "/get_team_user_invites" | "/get_user_team_invites" | "/cancel_team_user_invite" | "/cancel_user_team_invite" | "/get_app_events";
export type HttpCloudEndpoint = "/register_new_app" | "/register_with_password_start" | "/register_with_password_finish" | "/login_with_password" | "/login_with_google" | "/register_new_team" | "/remove_user_from_team" | "/get_user_joined_teams" | "/events" | "/invite_user_to_team" | "/accept_team_invite" | "/get_team_user_invites" | "/get_user_team_invites" | "/cancel_team_user_invite" | "/cancel_user_team_invite" | "/get_app_events" | "/reset_password_start" | "/reset_password_finish" | "/verify_domain_start" | "/verify_domain_finish" | "/remove_whitelisted_domain" | "/register_with_passkey_start" | "/register_with_passkey_finish" | "/reset_passkey_start" | "/reset_passkey_finish" | "/get_passkey_challenge" | "/delete_passkey" | "/add_passkey_start" | "/add_passkey_finish" | "/get_user_metadata" | "/get_team_metadata" | "/get_team_users_privileges" | "/change_user_privileges" | "/login_with_passkey_start" | "/login_with_passkey_finish";
7 changes: 0 additions & 7 deletions sdk/bindings/HttpGetAppEventsEventRequest.ts

This file was deleted.

3 changes: 3 additions & 0 deletions sdk/bindings/HttpGetTeamMetadataRequest.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.

export interface HttpGetTeamMetadataRequest { teamId: string, }
5 changes: 5 additions & 0 deletions sdk/bindings/HttpGetTeamMetadataResponse.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
import type { AppInfo } from "./AppInfo";
import type { TeamMetadata } from "./TeamMetadata";

export interface HttpGetTeamMetadataResponse { teamMetadata: TeamMetadata, teamApps: Array<AppInfo>, teamMembers: Array<string>, }
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.

export interface MessageToSign { message: string, metadata?: string, }
export interface HttpGetTeamUsersPrivilegesRequest { teamId: string, }
4 changes: 4 additions & 0 deletions sdk/bindings/HttpGetTeamUsersPrivilegesResponse.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
import type { TeamUserPrivilege } from "./TeamUserPrivilege";

export interface HttpGetTeamUsersPrivilegesResponse { usersPrivileges: Array<TeamUserPrivilege>, }
3 changes: 3 additions & 0 deletions sdk/bindings/HttpLoginWithPasskeyFinishResponse.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.

export interface HttpLoginWithPasskeyFinishResponse { userId: string, authToken: string, refreshToken: string, }
3 changes: 3 additions & 0 deletions sdk/bindings/HttpLoginWithPasskeyStartRequest.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.

export interface HttpLoginWithPasskeyStartRequest { email: string, }
2 changes: 1 addition & 1 deletion sdk/bindings/HttpRegisterNewAppRequest.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.

export interface HttpRegisterNewAppRequest { teamId: string, appName: string, whitelistedDomains: Array<string>, ackPublicKeys: Array<string>, }
export interface HttpRegisterNewAppRequest { teamId: string, appName: string, }
3 changes: 3 additions & 0 deletions sdk/bindings/HttpRegisterWithPasskeyFinishResponse.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.

export type HttpRegisterWithPasskeyFinishResponse = null;
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.

export interface HttpRegisterWithPasswordResponse { userId: string, }
export interface HttpRegisterWithPasskeyStartRequest { email: string, }
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.

export interface HttpVerifyRegisterWithPasswordRequest { email: string, code: string, }
export interface HttpRegisterWithPasswordFinishRequest { email: string, code: string, }
3 changes: 3 additions & 0 deletions sdk/bindings/HttpRegisterWithPasswordFinishResponse.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.

export type HttpRegisterWithPasswordFinishResponse = null;
3 changes: 3 additions & 0 deletions sdk/bindings/HttpRegisterWithPasswordStartRequest.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.

export interface HttpRegisterWithPasswordStartRequest { email: string, password: string, }
3 changes: 3 additions & 0 deletions sdk/bindings/HttpRegisterWithPasswordStartResponse.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.

export type HttpRegisterWithPasswordStartResponse = null;
3 changes: 3 additions & 0 deletions sdk/bindings/HttpRemoveWhitelistedDomainRequest.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.

export interface HttpRemoveWhitelistedDomainRequest { appId: string, domainName: string, }
3 changes: 3 additions & 0 deletions sdk/bindings/HttpRemoveWhitelistedDomainResponse.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.

export type HttpRemoveWhitelistedDomainResponse = null;
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.

export type HttpResetPasswordResponse = null;
export type HttpResetPasskeyFinishResponse = null;
3 changes: 3 additions & 0 deletions sdk/bindings/HttpResetPasskeyStartRequest.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.

export interface HttpResetPasskeyStartRequest { email: string, }
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.

export interface HttpVerifyPasswordResetRequest { email: string, code: string, }
export interface HttpResetPasswordFinishRequest { email: string, code: string, }
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.

export type HttpVerifyPasswordResetResponse = null;
export type HttpResetPasswordFinishResponse = null;
3 changes: 3 additions & 0 deletions sdk/bindings/HttpResetPasswordStartRequest.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.

export interface HttpResetPasswordStartRequest { email: string, newPassword: string, }
3 changes: 3 additions & 0 deletions sdk/bindings/HttpResetPasswordStartResponse.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.

export type HttpResetPasswordStartResponse = null;
3 changes: 3 additions & 0 deletions sdk/bindings/HttpUserMetadataResponse.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.

export interface HttpUserMetadataResponse { userId: string, email: string, passwordSet: boolean, passkeyIds: Array<string>, }
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.

export interface HttpRegisterWithPasswordRequest { email: string, password: string, }
export interface HttpVerifyDomainFinishRequest { appId: string, domainName: string, }
3 changes: 3 additions & 0 deletions sdk/bindings/HttpVerifyDomainFinishResponse.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.

export type HttpVerifyDomainFinishResponse = null;
3 changes: 3 additions & 0 deletions sdk/bindings/HttpVerifyDomainStartRequest.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.

export interface HttpVerifyDomainStartRequest { appId: string, domainName: string, }
3 changes: 3 additions & 0 deletions sdk/bindings/HttpVerifyDomainStartResponse.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.

export interface HttpVerifyDomainStartResponse { code: string, }
3 changes: 0 additions & 3 deletions sdk/bindings/LoginWithGoogleResponse.ts

This file was deleted.

4 changes: 0 additions & 4 deletions sdk/bindings/NewRequestEvent.ts

This file was deleted.

3 changes: 3 additions & 0 deletions sdk/bindings/NewUserPrivilegeLevel.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.

export type NewUserPrivilegeLevel = "read" | "edit" | "noAccess";
4 changes: 4 additions & 0 deletions sdk/bindings/PrivilegeChange.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
import type { NewUserPrivilegeLevel } from "./NewUserPrivilegeLevel";

export interface PrivilegeChange { appId: string, userEmail: string, newPrivilegeLevel: NewUserPrivilegeLevel, }
4 changes: 0 additions & 4 deletions sdk/bindings/RequestResolvedEvent.ts

This file was deleted.

3 changes: 3 additions & 0 deletions sdk/bindings/TeamMetadata.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.

export interface TeamMetadata { creatorEmail: string, teamId: string, teamName: string, personalTeam: boolean, createdAt: string, }
4 changes: 4 additions & 0 deletions sdk/bindings/TeamUserPrivilege.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
import type { PrivilegeLevel } from "./PrivilegeLevel";

export interface TeamUserPrivilege { appId: string, userEmail: string, privilege: PrivilegeLevel, }
3 changes: 0 additions & 3 deletions sdk/bindings/TransactionToSign.ts

This file was deleted.

Loading
Loading