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

chore(gqlgen): update output of gqlgen #2736

Merged
merged 1 commit into from
Aug 23, 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
151 changes: 145 additions & 6 deletions packages/dui3/lib/common/generated/gql/graphql.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ export type Scalars = {

export type ActiveUserMutations = {
__typename?: 'ActiveUserMutations';
emailMutations: UserEmailMutations;
/** Mark onboarding as complete */
finishOnboarding: Scalars['Boolean']['output'];
/** Edit a user's profile */
Expand Down Expand Up @@ -805,6 +806,10 @@ export type CreateModelInput = {
projectId: Scalars['ID']['input'];
};

export type CreateUserEmailInput = {
email: Scalars['String']['input'];
};

export type CreateVersionInput = {
message?: InputMaybe<Scalars['String']['input']>;
modelId: Scalars['String']['input'];
Expand All @@ -820,6 +825,10 @@ export type DeleteModelInput = {
projectId: Scalars['ID']['input'];
};

export type DeleteUserEmailInput = {
id: Scalars['ID']['input'];
};

export type DeleteVersionsInput = {
versionIds: Array<Scalars['String']['input']>;
};
Expand All @@ -839,6 +848,10 @@ export type EditCommentInput = {
content: CommentContentInput;
};

export type EmailVerificationRequestInput = {
id: Scalars['ID']['input'];
};

export type FileUpload = {
__typename?: 'FileUpload';
branchName: Scalars['String']['output'];
Expand Down Expand Up @@ -1697,21 +1710,34 @@ export type PendingStreamCollaborator = {

export type PendingWorkspaceCollaborator = {
__typename?: 'PendingWorkspaceCollaborator';
/**
* E-mail address if target is unregistered or primary e-mail of target registered user
* if token was specified to retrieve this invite
*/
email?: Maybe<Scalars['String']['output']>;
id: Scalars['ID']['output'];
inviteId: Scalars['String']['output'];
invitedBy: LimitedUser;
/** Target workspace role */
role: Scalars['String']['output'];
/** E-mail address or name of the invited user */
title: Scalars['String']['output'];
/** Only available if the active user is the pending workspace collaborator */
/**
* Only available if the active user is the pending workspace collaborator or if it was already
* specified when retrieving this invite
*/
token?: Maybe<Scalars['String']['output']>;
updatedAt: Scalars['DateTime']['output'];
/** Set only if user is registered */
user?: Maybe<LimitedUser>;
workspaceId: Scalars['String']['output'];
workspaceName: Scalars['String']['output'];
};

export type PendingWorkspaceCollaboratorsFilter = {
search?: InputMaybe<Scalars['String']['input']>;
};

export type Project = {
__typename?: 'Project';
allowPublicComments: Scalars['Boolean']['output'];
Expand Down Expand Up @@ -1764,6 +1790,7 @@ export type Project = {
visibility: ProjectVisibility;
webhooks: WebhookCollection;
workspace?: Maybe<Workspace>;
workspaceId?: Maybe<Scalars['String']['output']>;
};


Expand Down Expand Up @@ -2064,6 +2091,11 @@ export type ProjectInviteMutations = {
cancel: Project;
/** Invite a new or registered user to be a project collaborator. Can only be invoked by a project owner. */
create: Project;
/**
* Create invite(-s) for a project in a workspace. Unlike the base create() mutation, this allows
* configuring the workspace role.
*/
createForWorkspace: Project;
/** Accept or decline a project invite */
use: Scalars['Boolean']['output'];
};
Expand All @@ -2087,6 +2119,12 @@ export type ProjectInviteMutationsCreateArgs = {
};


export type ProjectInviteMutationsCreateForWorkspaceArgs = {
inputs: Array<WorkspaceProjectInviteCreateInput>;
projectId: Scalars['ID']['input'];
};


export type ProjectInviteMutationsUseArgs = {
input: ProjectInviteUseInput;
};
Expand Down Expand Up @@ -2412,10 +2450,11 @@ export type Query = {
userSearch: UserSearchResultCollection;
workspace: Workspace;
/**
* Look for an invitation to a workspace, for the current user (authed or not). If token
* isn't specified, the server will look for any valid invite.
* Look for an invitation to a workspace, for the current user (authed or not).
*
* If token is specified, it will return the corresponding invite even if it belongs to a different user.
*
* Either token or workspaceId must be specified, or both
*/
workspaceInvite?: Maybe<PendingWorkspaceCollaborator>;
};
Expand Down Expand Up @@ -2498,7 +2537,7 @@ export type QueryProjectInviteArgs = {


export type QueryServerInviteByTokenArgs = {
token: Scalars['String']['input'];
token?: InputMaybe<Scalars['String']['input']>;
};


Expand Down Expand Up @@ -2551,7 +2590,7 @@ export type QueryWorkspaceArgs = {

export type QueryWorkspaceInviteArgs = {
token?: InputMaybe<Scalars['String']['input']>;
workspaceId: Scalars['String']['input'];
workspaceId?: InputMaybe<Scalars['String']['input']>;
};

/** Deprecated: Used by old stream-based mutations */
Expand Down Expand Up @@ -2734,6 +2773,10 @@ export type ServerWorkspacesInfo = {
workspacesEnabled: Scalars['Boolean']['output'];
};

export type SetPrimaryUserEmailInput = {
id: Scalars['ID']['input'];
};

export type SmartTextEditorValue = {
__typename?: 'SmartTextEditorValue';
/** File attachments, if any */
Expand Down Expand Up @@ -3309,6 +3352,7 @@ export type User = {
createdAt?: Maybe<Scalars['DateTime']['output']>;
/** Only returned if API user is the user being requested or an admin */
email?: Maybe<Scalars['String']['output']>;
emails: Array<UserEmail>;
/**
* All the streams that a active user has favorited.
* Note: You can't use this to retrieve another user's favorite streams.
Expand Down Expand Up @@ -3466,6 +3510,43 @@ export type UserDeleteInput = {
email: Scalars['String']['input'];
};

export type UserEmail = {
__typename?: 'UserEmail';
email: Scalars['String']['output'];
id: Scalars['ID']['output'];
primary: Scalars['Boolean']['output'];
userId: Scalars['ID']['output'];
verified: Scalars['Boolean']['output'];
};

export type UserEmailMutations = {
__typename?: 'UserEmailMutations';
create: User;
delete: User;
requestNewEmailVerification?: Maybe<Scalars['Boolean']['output']>;
setPrimary: User;
};


export type UserEmailMutationsCreateArgs = {
input: CreateUserEmailInput;
};


export type UserEmailMutationsDeleteArgs = {
input: DeleteUserEmailInput;
};


export type UserEmailMutationsRequestNewEmailVerificationArgs = {
input: EmailVerificationRequestInput;
};


export type UserEmailMutationsSetPrimaryArgs = {
input: SetPrimaryUserEmailInput;
};

export type UserProjectsFilter = {
/** Only include projects where user has the specified roles */
onlyWithRoles?: InputMaybe<Array<Scalars['String']['input']>>;
Expand Down Expand Up @@ -3686,7 +3767,7 @@ export type WebhookCreateInput = {
enabled?: InputMaybe<Scalars['Boolean']['input']>;
secret?: InputMaybe<Scalars['String']['input']>;
streamId: Scalars['String']['input'];
triggers: Array<InputMaybe<Scalars['String']['input']>>;
triggers: Array<Scalars['String']['input']>;
url: Scalars['String']['input'];
};

Expand Down Expand Up @@ -3725,6 +3806,8 @@ export type WebhookUpdateInput = {
export type Workspace = {
__typename?: 'Workspace';
createdAt: Scalars['DateTime']['output'];
/** Selected fallback when `logo` not set */
defaultLogoIndex: Scalars['Int']['output'];
description?: Maybe<Scalars['String']['output']>;
id: Scalars['ID']['output'];
/** Only available to workspace owners */
Expand All @@ -3740,12 +3823,22 @@ export type Workspace = {
};


export type WorkspaceInvitedTeamArgs = {
filter?: InputMaybe<PendingWorkspaceCollaboratorsFilter>;
};


export type WorkspaceProjectsArgs = {
cursor?: InputMaybe<Scalars['String']['input']>;
filter?: InputMaybe<WorkspaceProjectsFilter>;
limit?: Scalars['Int']['input'];
};


export type WorkspaceTeamArgs = {
filter?: InputMaybe<WorkspaceTeamFilter>;
};

export type WorkspaceCollaborator = {
__typename?: 'WorkspaceCollaborator';
id: Scalars['ID']['output'];
Expand All @@ -3761,6 +3854,7 @@ export type WorkspaceCollection = {
};

export type WorkspaceCreateInput = {
defaultLogoIndex?: InputMaybe<Scalars['Int']['input']>;
description?: InputMaybe<Scalars['String']['input']>;
name: Scalars['String']['input'];
};
Expand All @@ -3770,6 +3864,8 @@ export type WorkspaceInviteCreateInput = {
email?: InputMaybe<Scalars['String']['input']>;
/** Defaults to the member role, if not specified */
role?: InputMaybe<WorkspaceRole>;
/** Defaults to User, if not specified */
serverRole?: InputMaybe<ServerRole>;
/** Either this or email must be filled */
userId?: InputMaybe<Scalars['String']['input']>;
};
Expand All @@ -3779,6 +3875,7 @@ export type WorkspaceInviteMutations = {
batchCreate: Workspace;
cancel: Workspace;
create: Workspace;
resend: Scalars['Boolean']['output'];
use: Scalars['Boolean']['output'];
};

Expand All @@ -3801,12 +3898,27 @@ export type WorkspaceInviteMutationsCreateArgs = {
};


export type WorkspaceInviteMutationsResendArgs = {
input: WorkspaceInviteResendInput;
};


export type WorkspaceInviteMutationsUseArgs = {
input: WorkspaceInviteUseInput;
};

export type WorkspaceInviteResendInput = {
inviteId: Scalars['String']['input'];
workspaceId: Scalars['String']['input'];
};

export type WorkspaceInviteUseInput = {
accept: Scalars['Boolean']['input'];
/**
* If invite is attached to an unregistered email, the invite can only be used if this is set to true.
* Upon accepting such an invite, the unregistered email will be added to the user's account as well.
*/
addNewEmail?: InputMaybe<Scalars['Boolean']['input']>;
token: Scalars['String']['input'];
};

Expand All @@ -3815,6 +3927,7 @@ export type WorkspaceMutations = {
create: Workspace;
delete: Scalars['Boolean']['output'];
invites: WorkspaceInviteMutations;
leave: Scalars['Boolean']['output'];
update: Workspace;
updateRole: Workspace;
};
Expand All @@ -3830,6 +3943,11 @@ export type WorkspaceMutationsDeleteArgs = {
};


export type WorkspaceMutationsLeaveArgs = {
id: Scalars['ID']['input'];
};


export type WorkspaceMutationsUpdateArgs = {
input: WorkspaceUpdateInput;
};
Expand All @@ -3839,6 +3957,19 @@ export type WorkspaceMutationsUpdateRoleArgs = {
input: WorkspaceRoleUpdateInput;
};

export type WorkspaceProjectInviteCreateInput = {
/** Either this or userId must be filled */
email?: InputMaybe<Scalars['String']['input']>;
/** Defaults to the contributor role, if not specified */
role?: InputMaybe<Scalars['String']['input']>;
/** Can only be specified if guest mode is on or if the user is an admin */
serverRole?: InputMaybe<Scalars['String']['input']>;
/** Either this or email must be filled */
userId?: InputMaybe<Scalars['String']['input']>;
/** Only taken into account, if project belongs to a workspace. Defaults to guest access. */
workspaceRole?: InputMaybe<Scalars['String']['input']>;
};

export type WorkspaceProjectsFilter = {
/** Filter out projects by name */
search?: InputMaybe<Scalars['String']['input']>;
Expand All @@ -3862,7 +3993,15 @@ export type WorkspaceRoleUpdateInput = {
workspaceId: Scalars['String']['input'];
};

export type WorkspaceTeamFilter = {
/** Limit team members to provided role */
role?: InputMaybe<Scalars['String']['input']>;
/** Search for team members by name or email */
search?: InputMaybe<Scalars['String']['input']>;
};

export type WorkspaceUpdateInput = {
defaultLogoIndex?: InputMaybe<Scalars['Int']['input']>;
description?: InputMaybe<Scalars['String']['input']>;
id: Scalars['String']['input'];
/** Logo image as base64-encoded string */
Expand Down
Loading