export type Maybe = T | null; export type InputMaybe = Maybe; export type Exact = { [K in keyof T]: T[K] }; export type MakeOptional = Omit & { [SubKey in K]?: Maybe }; export type MakeMaybe = Omit & { [SubKey in K]: Maybe }; /** All built-in and custom scalars, mapped to their actual values */ export type Scalars = { ID: string; String: string; Boolean: boolean; Int: number; Float: number; BigInt: any; DateTime: any; EmailAddress: any; JSONObject: any; }; export type Activity = { __typename?: 'Activity'; actionType: Scalars['String']; id: Scalars['ID']; info: Scalars['JSONObject']; message: Scalars['String']; resourceId: Scalars['String']; resourceType: Scalars['String']; streamId?: Maybe; time: Scalars['DateTime']; userId: Scalars['String']; }; export type ActivityCollection = { __typename?: 'ActivityCollection'; cursor?: Maybe; items?: Maybe>>; totalCount: Scalars['Int']; }; export type AdminUsersListCollection = { __typename?: 'AdminUsersListCollection'; items: Array; totalCount: Scalars['Int']; }; /** * A representation of a registered or invited user in the admin users list. Either registeredUser * or invitedUser will always be set, both values can't be null. */ export type AdminUsersListItem = { __typename?: 'AdminUsersListItem'; id: Scalars['String']; invitedUser?: Maybe; registeredUser?: Maybe; }; export type ApiToken = { __typename?: 'ApiToken'; createdAt: Scalars['DateTime']; id: Scalars['String']; lastChars: Scalars['String']; lastUsed: Scalars['DateTime']; lifespan: Scalars['BigInt']; name: Scalars['String']; scopes: Array>; }; export type ApiTokenCreateInput = { lifespan?: InputMaybe; name: Scalars['String']; scopes: Array; }; export type AppAuthor = { __typename?: 'AppAuthor'; avatar?: Maybe; id?: Maybe; name?: Maybe; }; export type AppCreateInput = { description: Scalars['String']; logo?: InputMaybe; name: Scalars['String']; public?: InputMaybe; redirectUrl: Scalars['String']; scopes: Array>; termsAndConditionsLink?: InputMaybe; }; export type AppUpdateInput = { description: Scalars['String']; id: Scalars['String']; logo?: InputMaybe; name: Scalars['String']; public?: InputMaybe; redirectUrl: Scalars['String']; scopes: Array>; termsAndConditionsLink?: InputMaybe; }; export type AuthStrategy = { __typename?: 'AuthStrategy'; color?: Maybe; icon: Scalars['String']; id: Scalars['String']; name: Scalars['String']; url: Scalars['String']; }; export type BlobMetadata = { __typename?: 'BlobMetadata'; createdAt: Scalars['DateTime']; fileHash?: Maybe; fileName: Scalars['String']; fileSize?: Maybe; fileType: Scalars['String']; id: Scalars['String']; streamId: Scalars['String']; uploadError?: Maybe; uploadStatus: Scalars['Int']; userId: Scalars['String']; }; export type BlobMetadataCollection = { __typename?: 'BlobMetadataCollection'; cursor?: Maybe; items?: Maybe>; totalCount: Scalars['Int']; totalSize: Scalars['Int']; }; export type Branch = { __typename?: 'Branch'; /** All the recent activity on this branch in chronological order */ activity?: Maybe; author?: Maybe; commits?: Maybe; createdAt?: Maybe; description?: Maybe; id: Scalars['String']; name: Scalars['String']; }; export type BranchActivityArgs = { actionType?: InputMaybe; after?: InputMaybe; before?: InputMaybe; cursor?: InputMaybe; limit?: Scalars['Int']; }; export type BranchCommitsArgs = { cursor?: InputMaybe; limit?: Scalars['Int']; }; export type BranchCollection = { __typename?: 'BranchCollection'; cursor?: Maybe; items?: Maybe>>; totalCount: Scalars['Int']; }; export type BranchCreateInput = { description?: InputMaybe; name: Scalars['String']; streamId: Scalars['String']; }; export type BranchDeleteInput = { id: Scalars['String']; streamId: Scalars['String']; }; export type BranchUpdateInput = { description?: InputMaybe; id: Scalars['String']; name?: InputMaybe; streamId: Scalars['String']; }; export type Commit = { __typename?: 'Commit'; /** All the recent activity on this commit in chronological order */ activity?: Maybe; authorAvatar?: Maybe; authorId?: Maybe; authorName?: Maybe; branchName?: Maybe; createdAt?: Maybe; id: Scalars['String']; message?: Maybe; parents?: Maybe>>; referencedObject: Scalars['String']; sourceApplication?: Maybe; totalChildrenCount?: Maybe; }; export type CommitActivityArgs = { actionType?: InputMaybe; after?: InputMaybe; before?: InputMaybe; cursor?: InputMaybe; limit?: Scalars['Int']; }; export type CommitCollection = { __typename?: 'CommitCollection'; cursor?: Maybe; items?: Maybe>>; totalCount: Scalars['Int']; }; export type CommitCollectionUser = { __typename?: 'CommitCollectionUser'; cursor?: Maybe; items?: Maybe>>; totalCount: Scalars['Int']; }; export type CommitCollectionUserNode = { __typename?: 'CommitCollectionUserNode'; branchName?: Maybe; createdAt?: Maybe; id: Scalars['String']; message?: Maybe; parents?: Maybe>>; referencedObject: Scalars['String']; sourceApplication?: Maybe; streamId?: Maybe; streamName?: Maybe; totalChildrenCount?: Maybe; }; export type CommitCreateInput = { branchName: Scalars['String']; message?: InputMaybe; objectId: Scalars['String']; parents?: InputMaybe>>; /** **DEPRECATED** Use the `parents` field. */ previousCommitIds?: InputMaybe>>; sourceApplication?: InputMaybe; streamId: Scalars['String']; totalChildrenCount?: InputMaybe; }; export type CommitDeleteInput = { id: Scalars['String']; streamId: Scalars['String']; }; export type CommitReceivedInput = { commitId: Scalars['String']; message?: InputMaybe; sourceApplication: Scalars['String']; streamId: Scalars['String']; }; export type CommitUpdateInput = { id: Scalars['String']; message?: InputMaybe; /** To move the commit to a different branch, please the name of the branch. */ newBranchName?: InputMaybe; streamId: Scalars['String']; }; export type FileUpload = { __typename?: 'FileUpload'; branchName?: Maybe; /** If present, the conversion result is stored in this commit. */ convertedCommitId?: Maybe; convertedLastUpdate: Scalars['DateTime']; /** Holds any errors or info. */ convertedMessage?: Maybe; /** 0 = queued, 1 = processing, 2 = success, 3 = error */ convertedStatus: Scalars['Int']; fileName: Scalars['String']; fileSize: Scalars['Int']; fileType: Scalars['String']; id: Scalars['String']; streamId: Scalars['String']; uploadComplete: Scalars['Boolean']; uploadDate: Scalars['DateTime']; /** The user's id that uploaded this file. */ userId: Scalars['String']; }; /** * Limited user type, for showing public info about a user * to another user */ export type LimitedUser = { __typename?: 'LimitedUser'; avatar?: Maybe; bio?: Maybe; company?: Maybe; id: Scalars['String']; name?: Maybe; verified?: Maybe; }; export type Mutation = { __typename?: 'Mutation'; /** The void stares back. */ _?: Maybe; adminDeleteUser: Scalars['Boolean']; /** Creates an personal api token. */ apiTokenCreate: Scalars['String']; /** Revokes (deletes) an personal api token. */ apiTokenRevoke: Scalars['Boolean']; /** Register a new third party application. */ appCreate: Scalars['String']; /** Deletes a thirty party application. */ appDelete: Scalars['Boolean']; /** Revokes (de-authorizes) an application that you have previously authorized. */ appRevokeAccess?: Maybe; /** Update an existing third party application. **Note: This will invalidate all existing tokens, refresh tokens and access codes and will require existing users to re-authorize it.** */ appUpdate: Scalars['Boolean']; branchCreate: Scalars['String']; branchDelete: Scalars['Boolean']; branchUpdate: Scalars['Boolean']; commitCreate: Scalars['String']; commitDelete: Scalars['Boolean']; commitReceive: Scalars['Boolean']; commitUpdate: Scalars['Boolean']; /** Delete a pending invite */ inviteDelete: Scalars['Boolean']; /** Re-send a pending invite */ inviteResend: Scalars['Boolean']; objectCreate: Array>; serverInfoUpdate?: Maybe; serverInviteBatchCreate: Scalars['Boolean']; /** Invite a new user to the speckle server and return the invite ID */ serverInviteCreate: Scalars['Boolean']; /** Creates a new stream. */ streamCreate?: Maybe; /** Deletes an existing stream. */ streamDelete: Scalars['Boolean']; streamFavorite?: Maybe; streamInviteBatchCreate: Scalars['Boolean']; /** Cancel a pending stream invite. Can only be invoked by a stream owner. */ streamInviteCancel: Scalars['Boolean']; /** Invite a new or registered user to the specified stream */ streamInviteCreate: Scalars['Boolean']; /** Accept or decline a stream invite */ streamInviteUse: Scalars['Boolean']; /** Remove yourself from stream collaborators (not possible for the owner) */ streamLeave: Scalars['Boolean']; /** Revokes the permissions of a user on a given stream. */ streamRevokePermission?: Maybe; /** Updates an existing stream. */ streamUpdate: Scalars['Boolean']; /** Update permissions of a user on a given stream. */ streamUpdatePermission?: Maybe; streamsDelete: Scalars['Boolean']; /** Delete a user's account. */ userDelete: Scalars['Boolean']; userRoleChange: Scalars['Boolean']; /** Edits a user's profile. */ userUpdate: Scalars['Boolean']; /** Creates a new webhook on a stream */ webhookCreate: Scalars['String']; /** Deletes an existing webhook */ webhookDelete: Scalars['String']; /** Updates an existing webhook */ webhookUpdate: Scalars['String']; }; export type MutationAdminDeleteUserArgs = { userConfirmation: UserDeleteInput; }; export type MutationApiTokenCreateArgs = { token: ApiTokenCreateInput; }; export type MutationApiTokenRevokeArgs = { token: Scalars['String']; }; export type MutationAppCreateArgs = { app: AppCreateInput; }; export type MutationAppDeleteArgs = { appId: Scalars['String']; }; export type MutationAppRevokeAccessArgs = { appId: Scalars['String']; }; export type MutationAppUpdateArgs = { app: AppUpdateInput; }; export type MutationBranchCreateArgs = { branch: BranchCreateInput; }; export type MutationBranchDeleteArgs = { branch: BranchDeleteInput; }; export type MutationBranchUpdateArgs = { branch: BranchUpdateInput; }; export type MutationCommitCreateArgs = { commit: CommitCreateInput; }; export type MutationCommitDeleteArgs = { commit: CommitDeleteInput; }; export type MutationCommitReceiveArgs = { input: CommitReceivedInput; }; export type MutationCommitUpdateArgs = { commit: CommitUpdateInput; }; export type MutationInviteDeleteArgs = { inviteId: Scalars['String']; }; export type MutationInviteResendArgs = { inviteId: Scalars['String']; }; export type MutationObjectCreateArgs = { objectInput: ObjectCreateInput; }; export type MutationServerInfoUpdateArgs = { info: ServerInfoUpdateInput; }; export type MutationServerInviteBatchCreateArgs = { input: Array; }; export type MutationServerInviteCreateArgs = { input: ServerInviteCreateInput; }; export type MutationStreamCreateArgs = { stream: StreamCreateInput; }; export type MutationStreamDeleteArgs = { id: Scalars['String']; }; export type MutationStreamFavoriteArgs = { favorited: Scalars['Boolean']; streamId: Scalars['String']; }; export type MutationStreamInviteBatchCreateArgs = { input: Array; }; export type MutationStreamInviteCancelArgs = { inviteId: Scalars['String']; streamId: Scalars['String']; }; export type MutationStreamInviteCreateArgs = { input: StreamInviteCreateInput; }; export type MutationStreamInviteUseArgs = { accept: Scalars['Boolean']; streamId: Scalars['String']; token: Scalars['String']; }; export type MutationStreamLeaveArgs = { streamId: Scalars['String']; }; export type MutationStreamRevokePermissionArgs = { permissionParams: StreamRevokePermissionInput; }; export type MutationStreamUpdateArgs = { stream: StreamUpdateInput; }; export type MutationStreamUpdatePermissionArgs = { permissionParams: StreamUpdatePermissionInput; }; export type MutationStreamsDeleteArgs = { ids?: InputMaybe>; }; export type MutationUserDeleteArgs = { userConfirmation: UserDeleteInput; }; export type MutationUserRoleChangeArgs = { userRoleInput: UserRoleInput; }; export type MutationUserUpdateArgs = { user: UserUpdateInput; }; export type MutationWebhookCreateArgs = { webhook: WebhookCreateInput; }; export type MutationWebhookDeleteArgs = { webhook: WebhookDeleteInput; }; export type MutationWebhookUpdateArgs = { webhook: WebhookUpdateInput; }; export type Object = { __typename?: 'Object'; applicationId?: Maybe; /** * Get any objects that this object references. In the case of commits, this will give you a commit's constituent objects. * **NOTE**: Providing any of the two last arguments ( `query`, `orderBy` ) will trigger a different code branch that executes a much more expensive SQL query. It is not recommended to do so for basic clients that are interested in purely getting all the objects of a given commit. */ children: ObjectCollection; createdAt?: Maybe; /** The full object, with all its props & other things. **NOTE:** If you're requesting objects for the purpose of recreating & displaying, you probably only want to request this specific field. */ data?: Maybe; id: Scalars['String']; speckleType?: Maybe; totalChildrenCount?: Maybe; }; export type ObjectChildrenArgs = { cursor?: InputMaybe; depth?: Scalars['Int']; limit?: Scalars['Int']; orderBy?: InputMaybe; query?: InputMaybe>; select?: InputMaybe>>; }; export type ObjectCollection = { __typename?: 'ObjectCollection'; cursor?: Maybe; objects: Array>; totalCount: Scalars['Int']; }; export type ObjectCreateInput = { /** The objects you want to create. */ objects: Array>; /** The stream against which these objects will be created. */ streamId: Scalars['String']; }; export type PendingStreamCollaborator = { __typename?: 'PendingStreamCollaborator'; id: Scalars['String']; inviteId: Scalars['String']; invitedBy: LimitedUser; role: Scalars['String']; streamId: Scalars['String']; streamName: Scalars['String']; /** E-mail address or name of the invited user */ title: Scalars['String']; /** Only available if the active user is the pending stream collaborator */ token?: Maybe; /** Set only if user is registered */ user?: Maybe; }; export type Query = { __typename?: 'Query'; /** Stare into the void. */ _?: Maybe; adminStreams?: Maybe; /** * Get all (or search for specific) users, registered or invited, from the server in a paginated view. * The query looks for matches in name, company and email. */ adminUsers?: Maybe; /** Gets a specific app from the server. */ app?: Maybe; /** Returns all the publicly available apps on this server. */ apps?: Maybe>>; serverInfo: ServerInfo; /** * Returns a specific stream. Will throw an authorization error if active user isn't authorized * to see it. */ stream?: Maybe; /** * Look for an invitation to a stream, for the current user (authed or not). If token * isn't specified, the server will look for any valid invite. */ streamInvite?: Maybe; /** Get all invitations to streams that the active user has */ streamInvites: Array; /** All the streams of the current user, pass in the `query` parameter to search by name, description or ID. */ streams?: Maybe; /** * Gets the profile of a user. If no id argument is provided, will return the current authenticated user's profile (as extracted from the authorization header). * If ID is provided, admin access is required */ user?: Maybe; userPwdStrength?: Maybe; /** * Search for users and return limited metadata about them, if you have the server:user role. * The query looks for matches in name & email */ userSearch?: Maybe; }; export type QueryAdminStreamsArgs = { limit?: InputMaybe; offset?: InputMaybe; orderBy?: InputMaybe; query?: InputMaybe; visibility?: InputMaybe; }; export type QueryAdminUsersArgs = { limit?: Scalars['Int']; offset?: Scalars['Int']; query?: InputMaybe; }; export type QueryAppArgs = { id: Scalars['String']; }; export type QueryStreamArgs = { id: Scalars['String']; }; export type QueryStreamInviteArgs = { streamId: Scalars['String']; token?: InputMaybe; }; export type QueryStreamsArgs = { cursor?: InputMaybe; limit?: InputMaybe; query?: InputMaybe; }; export type QueryUserArgs = { id?: InputMaybe; }; export type QueryUserPwdStrengthArgs = { pwd: Scalars['String']; }; export type QueryUserSearchArgs = { archived?: InputMaybe; cursor?: InputMaybe; limit?: Scalars['Int']; query: Scalars['String']; }; /** Available roles. */ export type Role = { __typename?: 'Role'; description: Scalars['String']; name: Scalars['String']; resourceTarget: Scalars['String']; }; /** Available scopes. */ export type Scope = { __typename?: 'Scope'; description: Scalars['String']; name: Scalars['String']; }; export type ServerApp = { __typename?: 'ServerApp'; author?: Maybe; createdAt: Scalars['DateTime']; description?: Maybe; id: Scalars['String']; logo?: Maybe; name: Scalars['String']; public?: Maybe; redirectUrl: Scalars['String']; scopes: Array>; secret?: Maybe; termsAndConditionsLink?: Maybe; trustByDefault?: Maybe; }; export type ServerAppListItem = { __typename?: 'ServerAppListItem'; author?: Maybe; description?: Maybe; id: Scalars['String']; logo?: Maybe; name: Scalars['String']; redirectUrl: Scalars['String']; termsAndConditionsLink?: Maybe; trustByDefault?: Maybe; }; /** Information about this server. */ export type ServerInfo = { __typename?: 'ServerInfo'; adminContact?: Maybe; /** The authentication strategies available on this server. */ authStrategies?: Maybe>>; blobSizeLimitBytes: Scalars['Int']; canonicalUrl?: Maybe; company?: Maybe; description?: Maybe; inviteOnly?: Maybe; name: Scalars['String']; roles: Array>; scopes: Array>; termsOfService?: Maybe; version?: Maybe; }; export type ServerInfoUpdateInput = { adminContact?: InputMaybe; company?: InputMaybe; description?: InputMaybe; inviteOnly?: InputMaybe; name: Scalars['String']; termsOfService?: InputMaybe; }; export type ServerInvite = { __typename?: 'ServerInvite'; email: Scalars['String']; id: Scalars['String']; invitedBy: LimitedUser; }; export type ServerInviteCreateInput = { email: Scalars['String']; message?: InputMaybe; }; export type SmartTextEditorValue = { __typename?: 'SmartTextEditorValue'; /** File attachments, if any */ attachments?: Maybe>; /** * The actual (ProseMirror) document representing the text. Can be empty, * if there are attachments. */ doc?: Maybe; /** The type of editor value (comment, blog post etc.) */ type: Scalars['String']; /** The version of the schema */ version: Scalars['String']; }; export type Stream = { __typename?: 'Stream'; /** All the recent activity on this stream in chronological order */ activity?: Maybe; allowPublicComments: Scalars['Boolean']; blob?: Maybe; /** Get the metadata collection of blobs stored for this stream. */ blobs?: Maybe; branch?: Maybe; branches?: Maybe; collaborators: Array; commit?: Maybe; commits?: Maybe; createdAt: Scalars['DateTime']; description?: Maybe; /** Date when you favorited this stream. `null` if stream isn't viewed from a specific user's perspective or if it isn't favorited. */ favoritedDate?: Maybe; favoritesCount: Scalars['Int']; /** Returns a specific file upload that belongs to this stream. */ fileUpload?: Maybe; /** Returns a list of all the file uploads for this stream. */ fileUploads?: Maybe>>; id: Scalars['String']; isPublic: Scalars['Boolean']; name: Scalars['String']; object?: Maybe; /** Collaborators who have been invited, but not yet accepted. */ pendingCollaborators?: Maybe>; /** Your role for this stream. `null` if request is not authenticated, or the stream is not explicitly shared with you. */ role?: Maybe; size?: Maybe; updatedAt: Scalars['DateTime']; webhooks?: Maybe; }; export type StreamActivityArgs = { actionType?: InputMaybe; after?: InputMaybe; before?: InputMaybe; cursor?: InputMaybe; limit?: Scalars['Int']; }; export type StreamBlobArgs = { id: Scalars['String']; }; export type StreamBlobsArgs = { cursor?: InputMaybe; limit?: InputMaybe; query?: InputMaybe; }; export type StreamBranchArgs = { name?: InputMaybe; }; export type StreamBranchesArgs = { cursor?: InputMaybe; limit?: Scalars['Int']; }; export type StreamCommitArgs = { id?: InputMaybe; }; export type StreamCommitsArgs = { cursor?: InputMaybe; limit?: Scalars['Int']; }; export type StreamFileUploadArgs = { id: Scalars['String']; }; export type StreamObjectArgs = { id: Scalars['String']; }; export type StreamWebhooksArgs = { id?: InputMaybe; }; export type StreamCollaborator = { __typename?: 'StreamCollaborator'; avatar?: Maybe; company?: Maybe; id: Scalars['String']; name: Scalars['String']; role: Scalars['String']; }; export type StreamCollection = { __typename?: 'StreamCollection'; cursor?: Maybe; items?: Maybe>; totalCount: Scalars['Int']; }; export type StreamCreateInput = { description?: InputMaybe; isPublic?: InputMaybe; name?: InputMaybe; /** Optionally specify user IDs of users that you want to invite to be contributors to this stream */ withContributors?: InputMaybe>; }; export type StreamInviteCreateInput = { email?: InputMaybe; message?: InputMaybe; /** Defaults to the contributor role, if not specified */ role?: InputMaybe; streamId: Scalars['String']; userId?: InputMaybe; }; export type StreamRevokePermissionInput = { streamId: Scalars['String']; userId: Scalars['String']; }; export enum StreamRole { StreamContributor = 'STREAM_CONTRIBUTOR', StreamOwner = 'STREAM_OWNER', StreamReviewer = 'STREAM_REVIEWER' } export type StreamUpdateInput = { allowPublicComments?: InputMaybe; description?: InputMaybe; id: Scalars['String']; isPublic?: InputMaybe; name?: InputMaybe; }; export type StreamUpdatePermissionInput = { role: Scalars['String']; streamId: Scalars['String']; userId: Scalars['String']; }; export type Subscription = { __typename?: 'Subscription'; /** It's lonely in the void. */ _?: Maybe; /** Subscribe to branch created event */ branchCreated?: Maybe; /** Subscribe to branch deleted event */ branchDeleted?: Maybe; /** Subscribe to branch updated event. */ branchUpdated?: Maybe; /** Subscribe to commit created event */ commitCreated?: Maybe; /** Subscribe to commit deleted event */ commitDeleted?: Maybe; /** Subscribe to commit updated event. */ commitUpdated?: Maybe; /** Subscribes to stream deleted event. Use this in clients/components that pertain only to this stream. */ streamDeleted?: Maybe; /** Subscribes to stream updated event. Use this in clients/components that pertain only to this stream. */ streamUpdated?: Maybe; /** * Subscribes to new stream added event for your profile. Use this to display an up-to-date list of streams. * **NOTE**: If someone shares a stream with you, this subscription will be triggered with an extra value of `sharedBy` in the payload. */ userStreamAdded?: Maybe; /** * Subscribes to stream removed event for your profile. Use this to display an up-to-date list of streams for your profile. * **NOTE**: If someone revokes your permissions on a stream, this subscription will be triggered with an extra value of `revokedBy` in the payload. */ userStreamRemoved?: Maybe; }; export type SubscriptionBranchCreatedArgs = { streamId: Scalars['String']; }; export type SubscriptionBranchDeletedArgs = { streamId: Scalars['String']; }; export type SubscriptionBranchUpdatedArgs = { branchId?: InputMaybe; streamId: Scalars['String']; }; export type SubscriptionCommitCreatedArgs = { streamId: Scalars['String']; }; export type SubscriptionCommitDeletedArgs = { streamId: Scalars['String']; }; export type SubscriptionCommitUpdatedArgs = { commitId?: InputMaybe; streamId: Scalars['String']; }; export type SubscriptionStreamDeletedArgs = { streamId?: InputMaybe; }; export type SubscriptionStreamUpdatedArgs = { streamId?: InputMaybe; }; /** * Full user type, should only be used in the context of admin operations or * when a user is reading/writing info about himself */ export type User = { __typename?: 'User'; /** All the recent activity from this user in chronological order */ activity?: Maybe; /** Returns a list of your personal api tokens. */ apiTokens?: Maybe>>; /** Returns the apps you have authorized. */ authorizedApps?: Maybe>>; avatar?: Maybe; bio?: Maybe; commits?: Maybe; company?: Maybe; /** Returns the apps you have created. */ createdApps?: Maybe>>; /** * E-mail can be null, if it's requested for a user other than the authenticated one * and the user isn't an admin */ email?: Maybe; /** All the streams that a user has favorited */ favoriteStreams?: Maybe; id: Scalars['String']; name?: Maybe; profiles?: Maybe; role?: Maybe; /** All the streams that a user has access to. */ streams?: Maybe; suuid?: Maybe; timeline?: Maybe; /** Total amount of favorites attached to streams owned by the user */ totalOwnedStreamsFavorites: Scalars['Int']; verified?: Maybe; }; /** * Full user type, should only be used in the context of admin operations or * when a user is reading/writing info about himself */ export type UserActivityArgs = { actionType?: InputMaybe; after?: InputMaybe; before?: InputMaybe; cursor?: InputMaybe; limit?: Scalars['Int']; }; /** * Full user type, should only be used in the context of admin operations or * when a user is reading/writing info about himself */ export type UserCommitsArgs = { cursor?: InputMaybe; limit?: Scalars['Int']; }; /** * Full user type, should only be used in the context of admin operations or * when a user is reading/writing info about himself */ export type UserFavoriteStreamsArgs = { cursor?: InputMaybe; limit?: Scalars['Int']; }; /** * Full user type, should only be used in the context of admin operations or * when a user is reading/writing info about himself */ export type UserStreamsArgs = { cursor?: InputMaybe; limit?: Scalars['Int']; }; /** * Full user type, should only be used in the context of admin operations or * when a user is reading/writing info about himself */ export type UserTimelineArgs = { after?: InputMaybe; before?: InputMaybe; cursor?: InputMaybe; limit?: Scalars['Int']; }; export type UserDeleteInput = { email?: InputMaybe; }; export type UserRoleInput = { id: Scalars['String']; role: Scalars['String']; }; export type UserSearchResultCollection = { __typename?: 'UserSearchResultCollection'; cursor?: Maybe; items?: Maybe>>; }; export type UserUpdateInput = { avatar?: InputMaybe; bio?: InputMaybe; company?: InputMaybe; name?: InputMaybe; }; export type Webhook = { __typename?: 'Webhook'; description?: Maybe; enabled?: Maybe; history?: Maybe; id: Scalars['String']; streamId: Scalars['String']; triggers: Array>; url: Scalars['String']; }; export type WebhookHistoryArgs = { limit?: Scalars['Int']; }; export type WebhookCollection = { __typename?: 'WebhookCollection'; items?: Maybe>>; totalCount?: Maybe; }; export type WebhookCreateInput = { description?: InputMaybe; enabled?: InputMaybe; secret?: InputMaybe; streamId: Scalars['String']; triggers: Array>; url: Scalars['String']; }; export type WebhookDeleteInput = { id: Scalars['String']; streamId: Scalars['String']; }; export type WebhookEvent = { __typename?: 'WebhookEvent'; id: Scalars['String']; lastUpdate: Scalars['DateTime']; payload: Scalars['String']; retryCount: Scalars['Int']; status: Scalars['Int']; statusInfo: Scalars['String']; webhookId: Scalars['String']; }; export type WebhookEventCollection = { __typename?: 'WebhookEventCollection'; items?: Maybe>>; totalCount?: Maybe; }; export type WebhookUpdateInput = { description?: InputMaybe; enabled?: InputMaybe; id: Scalars['String']; secret?: InputMaybe; streamId: Scalars['String']; triggers?: InputMaybe>>; url?: InputMaybe; }; export type CreateServerInviteMutationVariables = Exact<{ input: ServerInviteCreateInput; }>; export type CreateServerInviteMutation = { __typename?: 'Mutation', serverInviteCreate: boolean }; export type CreateStreamInviteMutationVariables = Exact<{ input: StreamInviteCreateInput; }>; export type CreateStreamInviteMutation = { __typename?: 'Mutation', streamInviteCreate: boolean }; export type ResendInviteMutationVariables = Exact<{ inviteId: Scalars['String']; }>; export type ResendInviteMutation = { __typename?: 'Mutation', inviteResend: boolean }; export type BatchCreateServerInviteMutationVariables = Exact<{ input: Array | ServerInviteCreateInput; }>; export type BatchCreateServerInviteMutation = { __typename?: 'Mutation', serverInviteBatchCreate: boolean }; export type BatchCreateStreamInviteMutationVariables = Exact<{ input: Array | StreamInviteCreateInput; }>; export type BatchCreateStreamInviteMutation = { __typename?: 'Mutation', streamInviteBatchCreate: boolean }; export type DeleteInviteMutationVariables = Exact<{ inviteId: Scalars['String']; }>; export type DeleteInviteMutation = { __typename?: 'Mutation', inviteDelete: boolean }; export type StreamInviteDataFragment = { __typename?: 'PendingStreamCollaborator', id: string, inviteId: string, streamId: string, title: string, role: string, token?: string | null, invitedBy: { __typename?: 'LimitedUser', id: string, name?: string | null, bio?: string | null, company?: string | null, avatar?: string | null, verified?: boolean | null }, user?: { __typename?: 'LimitedUser', id: string, name?: string | null, bio?: string | null, company?: string | null, avatar?: string | null, verified?: boolean | null } | null }; export type GetStreamInviteQueryVariables = Exact<{ streamId: Scalars['String']; token?: InputMaybe; }>; export type GetStreamInviteQuery = { __typename?: 'Query', streamInvite?: { __typename?: 'PendingStreamCollaborator', id: string, inviteId: string, streamId: string, title: string, role: string, token?: string | null, invitedBy: { __typename?: 'LimitedUser', id: string, name?: string | null, bio?: string | null, company?: string | null, avatar?: string | null, verified?: boolean | null }, user?: { __typename?: 'LimitedUser', id: string, name?: string | null, bio?: string | null, company?: string | null, avatar?: string | null, verified?: boolean | null } | null } | null }; export type GetStreamInvitesQueryVariables = Exact<{ [key: string]: never; }>; export type GetStreamInvitesQuery = { __typename?: 'Query', streamInvites: Array<{ __typename?: 'PendingStreamCollaborator', id: string, inviteId: string, streamId: string, title: string, role: string, token?: string | null, invitedBy: { __typename?: 'LimitedUser', id: string, name?: string | null, bio?: string | null, company?: string | null, avatar?: string | null, verified?: boolean | null }, user?: { __typename?: 'LimitedUser', id: string, name?: string | null, bio?: string | null, company?: string | null, avatar?: string | null, verified?: boolean | null } | null }> }; export type UseStreamInviteMutationVariables = Exact<{ accept: Scalars['Boolean']; streamId: Scalars['String']; token: Scalars['String']; }>; export type UseStreamInviteMutation = { __typename?: 'Mutation', streamInviteUse: boolean }; export type CancelStreamInviteMutationVariables = Exact<{ streamId: Scalars['String']; inviteId: Scalars['String']; }>; export type CancelStreamInviteMutation = { __typename?: 'Mutation', streamInviteCancel: boolean }; export type GetStreamPendingCollaboratorsQueryVariables = Exact<{ streamId: Scalars['String']; }>; export type GetStreamPendingCollaboratorsQuery = { __typename?: 'Query', stream?: { __typename?: 'Stream', id: string, pendingCollaborators?: Array<{ __typename?: 'PendingStreamCollaborator', inviteId: string, title: string, token?: string | null, user?: { __typename?: 'LimitedUser', id: string, name?: string | null } | null }> | null } | null }; export type LeaveStreamMutationVariables = Exact<{ streamId: Scalars['String']; }>; export type LeaveStreamMutation = { __typename?: 'Mutation', streamLeave: boolean }; export type GetAdminUsersQueryVariables = Exact<{ limit?: Scalars['Int']; offset?: Scalars['Int']; query?: InputMaybe; }>; export type GetAdminUsersQuery = { __typename?: 'Query', adminUsers?: { __typename?: 'AdminUsersListCollection', totalCount: number, items: Array<{ __typename?: 'AdminUsersListItem', id: string, registeredUser?: { __typename?: 'User', id: string, email?: string | null, name?: string | null } | null, invitedUser?: { __typename?: 'ServerInvite', id: string, email: string, invitedBy: { __typename?: 'LimitedUser', id: string, name?: string | null } } | null }> } | null };