diff --git a/package.json b/package.json index 5a491c5bc..6195a6467 100644 --- a/package.json +++ b/package.json @@ -28,8 +28,8 @@ "dev:kind:helm:ci": "tilt ci --file ./.circleci/deployment/Tiltfile.helm --context kind-speckle-server --timeout 10m", "dev": "yarn workspaces foreach -pivW -j unlimited run dev", "dev:no-server": "yarn workspaces foreach --exclude @speckle/server -pivW -j unlimited run dev", - "dev:minimal": "yarn workspaces foreach -pivW -j unlimited --include '{@speckle/server,@speckle/frontend,@speckle/shared}' run dev", - "gqlgen": "yarn workspaces foreach -pivW -j unlimited --include '{@speckle/server,@speckle/frontend,@speckle/frontend-2}' run gqlgen", + "dev:minimal": "yarn workspaces foreach -pivW -j unlimited --include '{@speckle/server,@speckle/frontend-2}' run dev", + "gqlgen": "yarn workspaces foreach -pivW -j unlimited --include '{@speckle/server,@speckle/frontend,@speckle/frontend-2,@speckle/dui3}' run gqlgen", "dev:server": "yarn workspace @speckle/server dev", "dev:frontend": "yarn workspace @speckle/frontend dev", "dev:frontend-2": "yarn workspace @speckle/frontend-2 dev", diff --git a/packages/frontend-2/lib/common/generated/gql/graphql.ts b/packages/frontend-2/lib/common/generated/gql/graphql.ts index be7694819..ac1b09012 100644 --- a/packages/frontend-2/lib/common/generated/gql/graphql.ts +++ b/packages/frontend-2/lib/common/generated/gql/graphql.ts @@ -375,62 +375,6 @@ export type AutomationCollection = { totalCount: Scalars['Int']['output']; }; -export type AutomationCreateInput = { - automationId: Scalars['String']['input']; - automationName: Scalars['String']['input']; - automationRevisionId: Scalars['String']['input']; - modelId: Scalars['String']['input']; - projectId: Scalars['String']['input']; - webhookId?: InputMaybe; -}; - -export type AutomationFunctionRun = { - __typename?: 'AutomationFunctionRun'; - contextView?: Maybe; - elapsed: Scalars['Float']['output']; - functionId: Scalars['String']['output']; - functionLogo?: Maybe; - functionName: Scalars['String']['output']; - id: Scalars['ID']['output']; - resultVersions: Array; - /** - * NOTE: this is the schema for the results field below! - * Current schema: { - * version: "1.0.0", - * values: { - * objectResults: Record | null - * visualoverrides: Records | null - * }[]> - * blobIds?: string[] - * } - * } - */ - results?: Maybe; - status: AutomationRunStatus; - statusMessage?: Maybe; -}; - -export type AutomationMutations = { - __typename?: 'AutomationMutations'; - create: Scalars['Boolean']['output']; - functionRunStatusReport: Scalars['Boolean']['output']; -}; - - -export type AutomationMutationsCreateArgs = { - input: AutomationCreateInput; -}; - - -export type AutomationMutationsFunctionRunStatusReportArgs = { - input: AutomationRunStatusUpdateInput; -}; - export type AutomationRevision = { __typename?: 'AutomationRevision'; functions: Array; @@ -454,44 +398,8 @@ export type AutomationRevisionFunction = { export type AutomationRevisionTriggerDefinition = VersionCreatedTriggerDefinition; -export type AutomationRun = { - __typename?: 'AutomationRun'; - automationId: Scalars['String']['output']; - automationName: Scalars['String']['output']; - createdAt: Scalars['DateTime']['output']; - functionRuns: Array; - id: Scalars['ID']['output']; - /** Resolved from all function run statuses */ - status: AutomationRunStatus; - updatedAt: Scalars['DateTime']['output']; - versionId: Scalars['String']['output']; -}; - -export enum AutomationRunStatus { - Failed = 'FAILED', - Initializing = 'INITIALIZING', - Running = 'RUNNING', - Succeeded = 'SUCCEEDED' -} - -export type AutomationRunStatusUpdateInput = { - automationId: Scalars['String']['input']; - automationRevisionId: Scalars['String']['input']; - automationRunId: Scalars['String']['input']; - functionRuns: Array; - versionId: Scalars['String']['input']; -}; - export type AutomationRunTrigger = VersionCreatedTrigger; -export type AutomationsStatus = { - __typename?: 'AutomationsStatus'; - automationRuns: Array; - id: Scalars['ID']['output']; - status: AutomationRunStatus; - statusMessage?: Maybe; -}; - export type AvatarUser = { __typename?: 'AvatarUser'; avatar?: Maybe; @@ -936,27 +844,6 @@ export type FileUpload = { userId: Scalars['String']['output']; }; -export type FunctionRunStatusInput = { - contextView?: InputMaybe; - elapsed: Scalars['Float']['input']; - functionId: Scalars['String']['input']; - functionLogo?: InputMaybe; - functionName: Scalars['String']['input']; - resultVersionIds: Array; - /** - * Current schema: { - * version: "1.0.0", - * values: { - * speckleObjects: Record - * blobIds?: string[] - * } - * } - */ - results?: InputMaybe; - status: AutomationRunStatus; - statusMessage?: InputMaybe; -}; - export type GendoAiRender = { __typename?: 'GendoAIRender'; camera?: Maybe; @@ -1082,7 +969,6 @@ export type LimitedUserTimelineArgs = { export type Model = { __typename?: 'Model'; author: LimitedUser; - automationStatus?: Maybe; automationsStatus?: Maybe; /** Return a model tree of children */ childrenTree: Array; @@ -1215,7 +1101,6 @@ export type Mutation = { appUpdate: Scalars['Boolean']['output']; automateFunctionRunStatusReport: Scalars['Boolean']['output']; automateMutations: AutomateMutations; - automationMutations: AutomationMutations; branchCreate: Scalars['String']['output']; branchDelete: Scalars['Boolean']['output']; branchUpdate: Scalars['Boolean']['output']; @@ -1901,14 +1786,6 @@ export type ProjectAutomationUpdateInput = { name?: InputMaybe; }; -export type ProjectAutomationsStatusUpdatedMessage = { - __typename?: 'ProjectAutomationsStatusUpdatedMessage'; - model: Model; - project: Project; - status: AutomationsStatus; - version: Version; -}; - export type ProjectAutomationsUpdatedMessage = { __typename?: 'ProjectAutomationsUpdatedMessage'; automation?: Maybe; @@ -2875,7 +2752,6 @@ export type Subscription = { commitDeleted?: Maybe; /** Subscribe to commit updated event. */ commitUpdated?: Maybe; - projectAutomationsStatusUpdated: ProjectAutomationsStatusUpdatedMessage; /** Subscribe to updates to automations in the project */ projectAutomationsUpdated: ProjectAutomationsUpdatedMessage; /** @@ -2971,11 +2847,6 @@ export type SubscriptionCommitUpdatedArgs = { }; -export type SubscriptionProjectAutomationsStatusUpdatedArgs = { - projectId: Scalars['String']['input']; -}; - - export type SubscriptionProjectAutomationsUpdatedArgs = { projectId: Scalars['String']['input']; }; @@ -3317,7 +3188,6 @@ export type UserUpdateInput = { export type Version = { __typename?: 'Version'; authorUser?: Maybe; - automationStatus?: Maybe; automationsStatus?: Maybe; /** All comment threads in this version */ commentThreads: CommentCollection; diff --git a/packages/frontend/src/graphql/generated/graphql.ts b/packages/frontend/src/graphql/generated/graphql.ts index 80ae4f93b..cea571cc3 100644 --- a/packages/frontend/src/graphql/generated/graphql.ts +++ b/packages/frontend/src/graphql/generated/graphql.ts @@ -5,26 +5,28 @@ 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 }; +export type MakeEmpty = { [_ in K]?: never }; +export type Incremental = T | { [P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never }; /** All built-in and custom scalars, mapped to their actual values */ export type Scalars = { - ID: string; - String: string; - Boolean: boolean; - Int: number; - Float: number; + ID: { input: string; output: string; } + String: { input: string; output: string; } + Boolean: { input: boolean; output: boolean; } + Int: { input: number; output: number; } + Float: { input: number; output: number; } /** The `BigInt` scalar type represents non-fractional signed whole numeric values. */ - BigInt: any; + BigInt: { input: any; output: any; } /** A date-time string at UTC, such as 2007-12-03T10:15:30Z, compliant with the `date-time` format outlined in section 5.6 of the RFC 3339 profile of the ISO 8601 standard for representation of dates and times using the Gregorian calendar. */ - DateTime: string; - EmailAddress: any; + DateTime: { input: string; output: string; } + EmailAddress: { input: any; output: any; } /** The `JSONObject` scalar type represents JSON objects as specified by [ECMA-404](http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf). */ - JSONObject: Record; + JSONObject: { input: Record; output: Record; } }; export type ActiveUserMutations = { __typename?: 'ActiveUserMutations'; /** Mark onboarding as complete */ - finishOnboarding: Scalars['Boolean']; + finishOnboarding: Scalars['Boolean']['output']; /** Edit a user's profile */ update: User; }; @@ -36,29 +38,29 @@ export type ActiveUserMutationsUpdateArgs = { 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']; + actionType: Scalars['String']['output']; + id: Scalars['ID']['output']; + info: Scalars['JSONObject']['output']; + message: Scalars['String']['output']; + resourceId: Scalars['String']['output']; + resourceType: Scalars['String']['output']; + streamId?: Maybe; + time: Scalars['DateTime']['output']; + userId: Scalars['String']['output']; }; export type ActivityCollection = { __typename?: 'ActivityCollection'; - cursor?: Maybe; + cursor?: Maybe; items?: Maybe>>; - totalCount: Scalars['Int']; + totalCount: Scalars['Int']['output']; }; export type AdminInviteList = { __typename?: 'AdminInviteList'; - cursor?: Maybe; + cursor?: Maybe; items: Array; - totalCount: Scalars['Int']; + totalCount: Scalars['Int']['output']; }; export type AdminQueries = { @@ -71,50 +73,50 @@ export type AdminQueries = { export type AdminQueriesInviteListArgs = { - cursor?: InputMaybe; - limit?: Scalars['Int']; - query?: InputMaybe; + cursor?: InputMaybe; + limit?: Scalars['Int']['input']; + query?: InputMaybe; }; export type AdminQueriesProjectListArgs = { - cursor?: InputMaybe; - limit?: Scalars['Int']; - orderBy?: InputMaybe; - query?: InputMaybe; - visibility?: InputMaybe; + cursor?: InputMaybe; + limit?: Scalars['Int']['input']; + orderBy?: InputMaybe; + query?: InputMaybe; + visibility?: InputMaybe; }; export type AdminQueriesUserListArgs = { - cursor?: InputMaybe; - limit?: Scalars['Int']; - query?: InputMaybe; + cursor?: InputMaybe; + limit?: Scalars['Int']['input']; + query?: InputMaybe; role?: InputMaybe; }; export type AdminUserList = { __typename?: 'AdminUserList'; - cursor?: Maybe; + cursor?: Maybe; items: Array; - totalCount: Scalars['Int']; + totalCount: Scalars['Int']['output']; }; export type AdminUserListItem = { __typename?: 'AdminUserListItem'; - avatar?: Maybe; - company?: Maybe; - email?: Maybe; - id: Scalars['ID']; - name: Scalars['String']; - role?: Maybe; - verified?: Maybe; + avatar?: Maybe; + company?: Maybe; + email?: Maybe; + id: Scalars['ID']['output']; + name: Scalars['String']['output']; + role?: Maybe; + verified?: Maybe; }; export type AdminUsersListCollection = { __typename?: 'AdminUsersListCollection'; items: Array; - totalCount: Scalars['Int']; + totalCount: Scalars['Int']['output']; }; /** @@ -123,185 +125,316 @@ export type AdminUsersListCollection = { */ export type AdminUsersListItem = { __typename?: 'AdminUsersListItem'; - id: Scalars['String']; + id: Scalars['String']['output']; 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>; + createdAt: Scalars['DateTime']['output']; + id: Scalars['String']['output']; + lastChars: Scalars['String']['output']; + lastUsed: Scalars['DateTime']['output']; + lifespan: Scalars['BigInt']['output']; + name: Scalars['String']['output']; + scopes: Array>; }; export type ApiTokenCreateInput = { - lifespan?: InputMaybe; - name: Scalars['String']; - scopes: Array; + lifespan?: InputMaybe; + name: Scalars['String']['input']; + scopes: Array; }; export type AppAuthor = { __typename?: 'AppAuthor'; - avatar?: Maybe; - id: Scalars['String']; - name: Scalars['String']; + avatar?: Maybe; + id: Scalars['String']['output']; + name: Scalars['String']['output']; }; export type AppCreateInput = { - description: Scalars['String']; - logo?: InputMaybe; - name: Scalars['String']; - public?: InputMaybe; - redirectUrl: Scalars['String']; - scopes: Array>; - termsAndConditionsLink?: InputMaybe; + description: Scalars['String']['input']; + logo?: InputMaybe; + name: Scalars['String']['input']; + public?: InputMaybe; + redirectUrl: Scalars['String']['input']; + scopes: Array>; + termsAndConditionsLink?: InputMaybe; }; export type AppTokenCreateInput = { - lifespan?: InputMaybe; + lifespan?: InputMaybe; /** Optionally limit the token to only have access to specific resources */ limitResources?: InputMaybe>; - name: Scalars['String']; - scopes: Array; + name: Scalars['String']['input']; + scopes: Array; }; export type AppUpdateInput = { - description: Scalars['String']; - id: Scalars['String']; - logo?: InputMaybe; - name: Scalars['String']; - public?: InputMaybe; - redirectUrl: Scalars['String']; - scopes: Array>; - termsAndConditionsLink?: InputMaybe; + description: Scalars['String']['input']; + id: Scalars['String']['input']; + logo?: InputMaybe; + name: Scalars['String']['input']; + public?: InputMaybe; + redirectUrl: Scalars['String']['input']; + scopes: Array>; + termsAndConditionsLink?: InputMaybe; }; export type AuthStrategy = { __typename?: 'AuthStrategy'; - color?: Maybe; - icon: Scalars['String']; - id: Scalars['String']; - name: Scalars['String']; - url: Scalars['String']; + color?: Maybe; + icon: Scalars['String']['output']; + id: Scalars['String']['output']; + name: Scalars['String']['output']; + url: Scalars['String']['output']; }; -export type AutomationCreateInput = { - automationId: Scalars['String']; - automationName: Scalars['String']; - automationRevisionId: Scalars['String']; - modelId: Scalars['String']; - projectId: Scalars['String']; - webhookId?: InputMaybe; +export type AutomateAuthCodePayloadTest = { + action: Scalars['String']['input']; + code: Scalars['String']['input']; + userId: Scalars['String']['input']; }; -export type AutomationFunctionRun = { - __typename?: 'AutomationFunctionRun'; - contextView?: Maybe; - elapsed: Scalars['Float']; - functionId: Scalars['String']; - functionLogo?: Maybe; - functionName: Scalars['String']; - id: Scalars['ID']; - resultVersions: Array; - /** - * NOTE: this is the schema for the results field below! - * Current schema: { - * version: "1.0.0", - * values: { - * objectResults: Record | null - * visualoverrides: Records | null - * }[]> - * blobIds?: string[] - * } - * } - */ - results?: Maybe; - status: AutomationRunStatus; - statusMessage?: Maybe; -}; - -export type AutomationMutations = { - __typename?: 'AutomationMutations'; - create: Scalars['Boolean']; - functionRunStatusReport: Scalars['Boolean']; +export type AutomateFunction = { + __typename?: 'AutomateFunction'; + automationCount: Scalars['Int']['output']; + /** Only returned if user is a part of this speckle server */ + creator?: Maybe; + description: Scalars['String']['output']; + id: Scalars['ID']['output']; + isFeatured: Scalars['Boolean']['output']; + logo?: Maybe; + name: Scalars['String']['output']; + releases: AutomateFunctionReleaseCollection; + repo: BasicGitRepositoryMetadata; + /** SourceAppNames values from @speckle/shared. Empty array means - all of them */ + supportedSourceApps: Array; + tags: Array; }; -export type AutomationMutationsCreateArgs = { - input: AutomationCreateInput; +export type AutomateFunctionReleasesArgs = { + cursor?: InputMaybe; + filter?: InputMaybe; + limit?: InputMaybe; }; - -export type AutomationMutationsFunctionRunStatusReportArgs = { - input: AutomationRunStatusUpdateInput; +export type AutomateFunctionCollection = { + __typename?: 'AutomateFunctionCollection'; + cursor?: Maybe; + items: Array; + totalCount: Scalars['Int']['output']; }; -export type AutomationRun = { - __typename?: 'AutomationRun'; - automationId: Scalars['String']; - automationName: Scalars['String']; - createdAt: Scalars['DateTime']; - functionRuns: Array; - id: Scalars['ID']; - /** Resolved from all function run statuses */ - status: AutomationRunStatus; - updatedAt: Scalars['DateTime']; - versionId: Scalars['String']; +export type AutomateFunctionRelease = { + __typename?: 'AutomateFunctionRelease'; + commitId: Scalars['String']['output']; + createdAt: Scalars['DateTime']['output']; + function: AutomateFunction; + functionId: Scalars['String']['output']; + id: Scalars['ID']['output']; + inputSchema?: Maybe; + versionTag: Scalars['String']['output']; }; -export enum AutomationRunStatus { - Failed = 'FAILED', - Initializing = 'INITIALIZING', - Running = 'RUNNING', - Succeeded = 'SUCCEEDED' +export type AutomateFunctionReleaseCollection = { + __typename?: 'AutomateFunctionReleaseCollection'; + cursor?: Maybe; + items: Array; + totalCount: Scalars['Int']['output']; +}; + +export type AutomateFunctionReleasesFilter = { + search?: InputMaybe; +}; + +export type AutomateFunctionRun = { + __typename?: 'AutomateFunctionRun'; + contextView?: Maybe; + createdAt: Scalars['DateTime']['output']; + elapsed: Scalars['Float']['output']; + /** Nullable, in case the function is not retrievable due to poor network conditions */ + function?: Maybe; + functionId?: Maybe; + functionReleaseId?: Maybe; + id: Scalars['ID']['output']; + /** AutomateTypes.ResultsSchema type from @speckle/shared */ + results?: Maybe; + status: AutomateRunStatus; + statusMessage?: Maybe; + updatedAt: Scalars['DateTime']['output']; +}; + +export type AutomateFunctionRunStatusReportInput = { + contextView?: InputMaybe; + functionRunId: Scalars['String']['input']; + /** AutomateTypes.ResultsSchema type from @speckle/shared */ + results?: InputMaybe; + status: AutomateRunStatus; + statusMessage?: InputMaybe; +}; + +export type AutomateFunctionTemplate = { + __typename?: 'AutomateFunctionTemplate'; + id: AutomateFunctionTemplateLanguage; + logo: Scalars['String']['output']; + title: Scalars['String']['output']; + url: Scalars['String']['output']; +}; + +export enum AutomateFunctionTemplateLanguage { + DotNet = 'DOT_NET', + Python = 'PYTHON', + Typescript = 'TYPESCRIPT' } -export type AutomationRunStatusUpdateInput = { - automationId: Scalars['String']; - automationRevisionId: Scalars['String']; - automationRunId: Scalars['String']; - functionRuns: Array; - versionId: Scalars['String']; +export type AutomateFunctionsFilter = { + featuredFunctionsOnly?: InputMaybe; + /** By default we skip functions without releases. Set this to true to include them. */ + functionsWithoutReleases?: InputMaybe; + search?: InputMaybe; }; -export type AutomationsStatus = { - __typename?: 'AutomationsStatus'; - automationRuns: Array; - id: Scalars['ID']; - status: AutomationRunStatus; - statusMessage?: Maybe; +export type AutomateMutations = { + __typename?: 'AutomateMutations'; + createFunction: AutomateFunction; + updateFunction: AutomateFunction; +}; + + +export type AutomateMutationsCreateFunctionArgs = { + input: CreateAutomateFunctionInput; +}; + + +export type AutomateMutationsUpdateFunctionArgs = { + input: UpdateAutomateFunctionInput; +}; + +export type AutomateRun = { + __typename?: 'AutomateRun'; + automation: Automation; + automationId: Scalars['String']['output']; + createdAt: Scalars['DateTime']['output']; + functionRuns: Array; + id: Scalars['ID']['output']; + status: AutomateRunStatus; + trigger: AutomationRunTrigger; + updatedAt: Scalars['DateTime']['output']; +}; + +export type AutomateRunCollection = { + __typename?: 'AutomateRunCollection'; + cursor?: Maybe; + items: Array; + totalCount: Scalars['Int']['output']; +}; + +export enum AutomateRunStatus { + Canceled = 'CANCELED', + Exception = 'EXCEPTION', + Failed = 'FAILED', + Initializing = 'INITIALIZING', + Pending = 'PENDING', + Running = 'RUNNING', + Succeeded = 'SUCCEEDED', + Timeout = 'TIMEOUT' +} + +export enum AutomateRunTriggerType { + VersionCreated = 'VERSION_CREATED' +} + +export type Automation = { + __typename?: 'Automation'; + createdAt: Scalars['DateTime']['output']; + /** Only accessible to automation owners */ + creationPublicKeys: Array; + currentRevision?: Maybe; + enabled: Scalars['Boolean']['output']; + id: Scalars['ID']['output']; + isTestAutomation: Scalars['Boolean']['output']; + name: Scalars['String']['output']; + runs: AutomateRunCollection; + updatedAt: Scalars['DateTime']['output']; +}; + + +export type AutomationRunsArgs = { + cursor?: InputMaybe; + limit?: InputMaybe; +}; + +export type AutomationCollection = { + __typename?: 'AutomationCollection'; + cursor?: Maybe; + items: Array; + totalCount: Scalars['Int']['output']; +}; + +export type AutomationRevision = { + __typename?: 'AutomationRevision'; + functions: Array; + id: Scalars['ID']['output']; + triggerDefinitions: Array; +}; + +export type AutomationRevisionCreateFunctionInput = { + functionId: Scalars['String']['input']; + functionReleaseId: Scalars['String']['input']; + /** Should be encrypted from the client side */ + parameters?: InputMaybe; +}; + +export type AutomationRevisionFunction = { + __typename?: 'AutomationRevisionFunction'; + /** The secrets in parameters are redacted with six asterisks - ****** */ + parameters?: Maybe; + release: AutomateFunctionRelease; +}; + +export type AutomationRevisionTriggerDefinition = VersionCreatedTriggerDefinition; + +export type AutomationRunTrigger = VersionCreatedTrigger; + +export type AvatarUser = { + __typename?: 'AvatarUser'; + avatar?: Maybe; + id: Scalars['ID']['output']; + name: Scalars['String']['output']; +}; + +export type BasicGitRepositoryMetadata = { + __typename?: 'BasicGitRepositoryMetadata'; + id: Scalars['ID']['output']; + name: Scalars['String']['output']; + owner: Scalars['String']['output']; + url: Scalars['String']['output']; }; 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']; + createdAt: Scalars['DateTime']['output']; + fileHash?: Maybe; + fileName: Scalars['String']['output']; + fileSize?: Maybe; + fileType: Scalars['String']['output']; + id: Scalars['String']['output']; + streamId: Scalars['String']['output']; + uploadError?: Maybe; + uploadStatus: Scalars['Int']['output']; + userId: Scalars['String']['output']; }; export type BlobMetadataCollection = { __typename?: 'BlobMetadataCollection'; - cursor?: Maybe; + cursor?: Maybe; items?: Maybe>; - totalCount: Scalars['Int']; - totalSize: Scalars['Int']; + totalCount: Scalars['Int']['output']; + totalSize: Scalars['Int']['output']; }; export type Branch = { @@ -310,124 +443,124 @@ export type Branch = { activity?: Maybe; author?: Maybe; commits?: Maybe; - createdAt?: Maybe; - description?: Maybe; - id: Scalars['String']; - name: Scalars['String']; + createdAt?: Maybe; + description?: Maybe; + id: Scalars['String']['output']; + name: Scalars['String']['output']; }; export type BranchActivityArgs = { - actionType?: InputMaybe; - after?: InputMaybe; - before?: InputMaybe; - cursor?: InputMaybe; - limit?: Scalars['Int']; + actionType?: InputMaybe; + after?: InputMaybe; + before?: InputMaybe; + cursor?: InputMaybe; + limit?: Scalars['Int']['input']; }; export type BranchCommitsArgs = { - cursor?: InputMaybe; - limit?: Scalars['Int']; + cursor?: InputMaybe; + limit?: Scalars['Int']['input']; }; export type BranchCollection = { __typename?: 'BranchCollection'; - cursor?: Maybe; + cursor?: Maybe; items?: Maybe>; - totalCount: Scalars['Int']; + totalCount: Scalars['Int']['output']; }; export type BranchCreateInput = { - description?: InputMaybe; - name: Scalars['String']; - streamId: Scalars['String']; + description?: InputMaybe; + name: Scalars['String']['input']; + streamId: Scalars['String']['input']; }; export type BranchDeleteInput = { - id: Scalars['String']; - streamId: Scalars['String']; + id: Scalars['String']['input']; + streamId: Scalars['String']['input']; }; export type BranchUpdateInput = { - description?: InputMaybe; - id: Scalars['String']; - name?: InputMaybe; - streamId: Scalars['String']; + description?: InputMaybe; + id: Scalars['String']['input']; + name?: InputMaybe; + streamId: Scalars['String']['input']; }; export type Comment = { __typename?: 'Comment'; - archived: Scalars['Boolean']; + archived: Scalars['Boolean']['output']; author: LimitedUser; - authorId: Scalars['String']; - createdAt: Scalars['DateTime']; + authorId: Scalars['String']['output']; + createdAt: Scalars['DateTime']['output']; /** * Legacy comment viewer data field * @deprecated Use the new viewerState field instead */ - data?: Maybe; + data?: Maybe; /** Whether or not comment is a reply to another comment */ - hasParent: Scalars['Boolean']; - id: Scalars['String']; + hasParent: Scalars['Boolean']['output']; + id: Scalars['String']['output']; /** Parent thread, if there's any */ parent?: Maybe; /** Plain-text version of the comment text, ideal for previews */ - rawText: Scalars['String']; + rawText: Scalars['String']['output']; /** @deprecated Not actually implemented */ - reactions?: Maybe>>; + reactions?: Maybe>>; /** Gets the replies to this comment. */ replies: CommentCollection; /** Get authors of replies to this comment */ replyAuthors: CommentReplyAuthorCollection; /** Resources that this comment targets. Can be a mixture of either one stream, or multiple commits and objects. */ resources: Array; - screenshot?: Maybe; + screenshot?: Maybe; text: SmartTextEditorValue; /** The time this comment was last updated. Corresponds also to the latest reply to this comment, if any. */ - updatedAt: Scalars['DateTime']; + updatedAt: Scalars['DateTime']['output']; /** The last time you viewed this comment. Present only if an auth'ed request. Relevant only if a top level commit. */ - viewedAt?: Maybe; + viewedAt?: Maybe; /** Resource identifiers as defined and implemented in the Viewer of the new frontend */ viewerResources: Array; /** SerializedViewerState */ - viewerState?: Maybe; + viewerState?: Maybe; }; export type CommentRepliesArgs = { - cursor?: InputMaybe; - limit?: InputMaybe; + cursor?: InputMaybe; + limit?: InputMaybe; }; export type CommentReplyAuthorsArgs = { - limit?: Scalars['Int']; + limit?: Scalars['Int']['input']; }; export type CommentActivityMessage = { __typename?: 'CommentActivityMessage'; comment: Comment; - type: Scalars['String']; + type: Scalars['String']['output']; }; export type CommentCollection = { __typename?: 'CommentCollection'; - cursor?: Maybe; + cursor?: Maybe; items: Array; - totalCount: Scalars['Int']; + totalCount: Scalars['Int']['output']; }; export type CommentContentInput = { - blobIds?: InputMaybe>; - doc?: InputMaybe; + blobIds?: InputMaybe>; + doc?: InputMaybe; }; /** Deprecated: Used by old stream-based mutations */ export type CommentCreateInput = { /** IDs of uploaded blobs that should be attached to this comment */ - blobIds: Array; - data: Scalars['JSONObject']; + blobIds: Array; + data: Scalars['JSONObject']['input']; /** * Specifies the resources this comment is linked to. There are several use cases: * - a comment targets only one resource (commit or object) @@ -435,55 +568,55 @@ export type CommentCreateInput = { * - a comment targets only a stream */ resources: Array>; - screenshot?: InputMaybe; - streamId: Scalars['String']; + screenshot?: InputMaybe; + streamId: Scalars['String']['input']; /** ProseMirror document object */ - text?: InputMaybe; + text?: InputMaybe; }; export type CommentDataFilters = { __typename?: 'CommentDataFilters'; - hiddenIds?: Maybe>; - isolatedIds?: Maybe>; - passMax?: Maybe; - passMin?: Maybe; - propertyInfoKey?: Maybe; - sectionBox?: Maybe; + hiddenIds?: Maybe>; + isolatedIds?: Maybe>; + passMax?: Maybe; + passMin?: Maybe; + propertyInfoKey?: Maybe; + sectionBox?: Maybe; }; /** Equivalent to frontend-1's LocalFilterState */ export type CommentDataFiltersInput = { - hiddenIds?: InputMaybe>; - isolatedIds?: InputMaybe>; - passMax?: InputMaybe; - passMin?: InputMaybe; - propertyInfoKey?: InputMaybe; - sectionBox?: InputMaybe; + hiddenIds?: InputMaybe>; + isolatedIds?: InputMaybe>; + passMax?: InputMaybe; + passMin?: InputMaybe; + propertyInfoKey?: InputMaybe; + sectionBox?: InputMaybe; }; /** Deprecated: Used by old stream-based mutations */ export type CommentEditInput = { /** IDs of uploaded blobs that should be attached to this comment */ - blobIds: Array; - id: Scalars['String']; - streamId: Scalars['String']; + blobIds: Array; + id: Scalars['String']['input']; + streamId: Scalars['String']['input']; /** ProseMirror document object */ - text?: InputMaybe; + text?: InputMaybe; }; export type CommentMutations = { __typename?: 'CommentMutations'; - archive: Scalars['Boolean']; + archive: Scalars['Boolean']['output']; create: Comment; edit: Comment; - markViewed: Scalars['Boolean']; + markViewed: Scalars['Boolean']['output']; reply: Comment; }; export type CommentMutationsArchiveArgs = { - archived?: Scalars['Boolean']; - commentId: Scalars['String']; + archived?: Scalars['Boolean']['input']; + commentId: Scalars['String']['input']; }; @@ -498,7 +631,7 @@ export type CommentMutationsEditArgs = { export type CommentMutationsMarkViewedArgs = { - commentId: Scalars['String']; + commentId: Scalars['String']['input']; }; @@ -509,25 +642,25 @@ export type CommentMutationsReplyArgs = { export type CommentReplyAuthorCollection = { __typename?: 'CommentReplyAuthorCollection'; items: Array; - totalCount: Scalars['Int']; + totalCount: Scalars['Int']['output']; }; export type CommentThreadActivityMessage = { __typename?: 'CommentThreadActivityMessage'; - data?: Maybe; + data?: Maybe; reply?: Maybe; - type: Scalars['String']; + type: Scalars['String']['output']; }; export type Commit = { __typename?: 'Commit'; /** All the recent activity on this commit in chronological order */ activity?: Maybe; - authorAvatar?: Maybe; - authorId?: Maybe; - authorName?: Maybe; + authorAvatar?: Maybe; + authorId?: Maybe; + authorName?: Maybe; branch?: Maybe; - branchName?: Maybe; + branchName?: Maybe; /** * The total number of comments for this commit. To actually get the comments, use the comments query and pass in a resource array consisting of of this commit's id. * E.g., @@ -538,126 +671,148 @@ export type Commit = { * } * ``` */ - commentCount: Scalars['Int']; - createdAt?: Maybe; - id: Scalars['String']; - message?: Maybe; - parents?: Maybe>>; - referencedObject: Scalars['String']; - sourceApplication?: Maybe; + commentCount: Scalars['Int']['output']; + createdAt?: Maybe; + id: Scalars['String']['output']; + message?: Maybe; + parents?: Maybe>>; + referencedObject: Scalars['String']['output']; + sourceApplication?: Maybe; /** * Will throw an authorization error if active user isn't authorized to see it, for example, * if a stream isn't public and the user doesn't have the appropriate rights. */ stream: Stream; /** @deprecated Use the stream field instead */ - streamId?: Maybe; + streamId?: Maybe; /** @deprecated Use the stream field instead */ - streamName?: Maybe; - totalChildrenCount?: Maybe; + streamName?: Maybe; + totalChildrenCount?: Maybe; }; export type CommitActivityArgs = { - actionType?: InputMaybe; - after?: InputMaybe; - before?: InputMaybe; - cursor?: InputMaybe; - limit?: Scalars['Int']; + actionType?: InputMaybe; + after?: InputMaybe; + before?: InputMaybe; + cursor?: InputMaybe; + limit?: Scalars['Int']['input']; }; export type CommitCollection = { __typename?: 'CommitCollection'; - cursor?: Maybe; + cursor?: Maybe; items?: Maybe>; - totalCount: Scalars['Int']; + totalCount: Scalars['Int']['output']; }; export type CommitCreateInput = { - branchName: Scalars['String']; - message?: InputMaybe; - objectId: Scalars['String']; - parents?: InputMaybe>>; - sourceApplication?: InputMaybe; - streamId: Scalars['String']; - totalChildrenCount?: InputMaybe; + branchName: Scalars['String']['input']; + message?: InputMaybe; + objectId: Scalars['String']['input']; + parents?: InputMaybe>>; + sourceApplication?: InputMaybe; + streamId: Scalars['String']['input']; + totalChildrenCount?: InputMaybe; }; export type CommitDeleteInput = { - id: Scalars['String']; - streamId: Scalars['String']; + id: Scalars['String']['input']; + streamId: Scalars['String']['input']; }; export type CommitObjectViewerState = { __typename?: 'CommitObjectViewerState'; - addingComment: Scalars['Boolean']; - commentReactions: Array; - currentFilterState?: Maybe; - emojis: Array; - localFilterPropKey?: Maybe; - objectProperties?: Maybe>>; - preventCommentCollapse: Scalars['Boolean']; - sectionBox?: Maybe; + addingComment: Scalars['Boolean']['output']; + commentReactions: Array; + currentFilterState?: Maybe; + emojis: Array; + localFilterPropKey?: Maybe; + objectProperties?: Maybe>>; + preventCommentCollapse: Scalars['Boolean']['output']; + sectionBox?: Maybe; selectedCommentMetaData?: Maybe; - selectedObjects?: Maybe>>; - viewerBusy: Scalars['Boolean']; + selectedObjects?: Maybe>>; + viewerBusy: Scalars['Boolean']['output']; }; export type CommitReceivedInput = { - commitId: Scalars['String']; - message?: InputMaybe; - sourceApplication: Scalars['String']; - streamId: Scalars['String']; + commitId: Scalars['String']['input']; + message?: InputMaybe; + sourceApplication: Scalars['String']['input']; + streamId: Scalars['String']['input']; }; export type CommitUpdateInput = { - id: Scalars['String']; - message?: InputMaybe; + id: Scalars['String']['input']; + message?: InputMaybe; /** To move the commit to a different branch, please the name of the branch. */ - newBranchName?: InputMaybe; - streamId: Scalars['String']; + newBranchName?: InputMaybe; + streamId: Scalars['String']['input']; }; export type CommitsDeleteInput = { - commitIds: Array; + commitIds: Array; }; export type CommitsMoveInput = { - commitIds: Array; - targetBranch: Scalars['String']; + commitIds: Array; + targetBranch: Scalars['String']['input']; +}; + +/** + * Can be used instead of a full item collection, when the implementation doesn't call for it yet. Because + * of the structure, it can be swapped out to a full item collection in the future + */ +export type CountOnlyCollection = { + __typename?: 'CountOnlyCollection'; + totalCount: Scalars['Int']['output']; +}; + +export type CreateAutomateFunctionInput = { + description: Scalars['String']['input']; + /** Base64 encoded image data string */ + logo?: InputMaybe; + name: Scalars['String']['input']; + /** GitHub organization to create the repository in */ + org?: InputMaybe; + /** SourceAppNames values from @speckle/shared */ + supportedSourceApps: Array; + tags: Array; + template: AutomateFunctionTemplateLanguage; }; export type CreateCommentInput = { content: CommentContentInput; - projectId: Scalars['String']; + projectId: Scalars['String']['input']; /** Resources that this comment should be attached to */ - resourceIdString: Scalars['String']; - screenshot?: InputMaybe; + resourceIdString: Scalars['String']['input']; + screenshot?: InputMaybe; /** * SerializedViewerState. If omitted, comment won't render (correctly) inside the * viewer, but will still be retrievable through the API */ - viewerState?: InputMaybe; + viewerState?: InputMaybe; }; export type CreateCommentReplyInput = { content: CommentContentInput; - threadId: Scalars['String']; + threadId: Scalars['String']['input']; }; export type CreateModelInput = { - description?: InputMaybe; - name: Scalars['String']; - projectId: Scalars['ID']; + description?: InputMaybe; + name: Scalars['String']['input']; + projectId: Scalars['ID']['input']; }; export type DeleteModelInput = { - id: Scalars['ID']; - projectId: Scalars['ID']; + id: Scalars['ID']['input']; + projectId: Scalars['ID']['input']; }; export type DeleteVersionsInput = { - versionIds: Array; + versionIds: Array; }; export enum DiscoverableStreamsSortType { @@ -671,58 +826,72 @@ export type DiscoverableStreamsSortingInput = { }; export type EditCommentInput = { - commentId: Scalars['String']; + commentId: Scalars['String']['input']; content: CommentContentInput; }; export type FileUpload = { __typename?: 'FileUpload'; - branchName: Scalars['String']; + branchName: Scalars['String']['output']; /** If present, the conversion result is stored in this commit. */ - convertedCommitId?: Maybe; - convertedLastUpdate: Scalars['DateTime']; + convertedCommitId?: Maybe; + convertedLastUpdate: Scalars['DateTime']['output']; /** Holds any errors or info. */ - convertedMessage?: Maybe; + convertedMessage?: Maybe; /** 0 = queued, 1 = processing, 2 = success, 3 = error */ - convertedStatus: Scalars['Int']; + convertedStatus: Scalars['Int']['output']; /** Alias for convertedCommitId */ - convertedVersionId?: Maybe; - fileName: Scalars['String']; - fileSize: Scalars['Int']; - fileType: Scalars['String']; - id: Scalars['String']; + convertedVersionId?: Maybe; + fileName: Scalars['String']['output']; + fileSize: Scalars['Int']['output']; + fileType: Scalars['String']['output']; + id: Scalars['String']['output']; /** Model associated with the file upload, if it exists already */ model?: Maybe; /** Alias for branchName */ - modelName: Scalars['String']; + modelName: Scalars['String']['output']; /** Alias for streamId */ - projectId: Scalars['String']; - streamId: Scalars['String']; - uploadComplete: Scalars['Boolean']; - uploadDate: Scalars['DateTime']; + projectId: Scalars['String']['output']; + streamId: Scalars['String']['output']; + uploadComplete: Scalars['Boolean']['output']; + uploadDate: Scalars['DateTime']['output']; /** The user's id that uploaded this file. */ - userId: Scalars['String']; + userId: Scalars['String']['output']; }; -export type FunctionRunStatusInput = { - contextView?: InputMaybe; - elapsed: Scalars['Float']; - functionId: Scalars['String']; - functionLogo?: InputMaybe; - functionName: Scalars['String']; - resultVersionIds: Array; - /** - * Current schema: { - * version: "1.0.0", - * values: { - * speckleObjects: Record - * blobIds?: string[] - * } - * } - */ - results?: InputMaybe; - status: AutomationRunStatus; - statusMessage?: InputMaybe; +export type GendoAiRender = { + __typename?: 'GendoAIRender'; + camera?: Maybe; + createdAt: Scalars['String']['output']; + gendoGenerationId?: Maybe; + id: Scalars['ID']['output']; + modelId: Scalars['String']['output']; + projectId: Scalars['String']['output']; + prompt: Scalars['String']['output']; + /** This is a blob id. */ + responseImage?: Maybe; + status: Scalars['String']['output']; + updatedAt: Scalars['String']['output']; + user?: Maybe; + userId: Scalars['String']['output']; + versionId: Scalars['String']['output']; +}; + +export type GendoAiRenderCollection = { + __typename?: 'GendoAIRenderCollection'; + items: Array>; + totalCount: Scalars['Int']['output']; +}; + +export type GendoAiRenderInput = { + /** Base64 encoded image of the depthmap. */ + baseImage: Scalars['String']['input']; + camera: Scalars['JSONObject']['input']; + modelId: Scalars['ID']['input']; + projectId: Scalars['ID']['input']; + /** The generation prompt. */ + prompt: Scalars['String']['input']; + versionId: Scalars['ID']['input']; }; export type LegacyCommentViewerData = { @@ -731,15 +900,15 @@ export type LegacyCommentViewerData = { * An array representing a user's camera position: * [camPos.x, camPos.y, camPos.z, camTarget.x, camTarget.y, camTarget.z, isOrtho, zoomNumber] */ - camPos: Array; + camPos: Array; /** Old FE LocalFilterState type */ filters: CommentDataFilters; /** THREE.Vector3 {x, y, z} */ - location: Scalars['JSONObject']; + location: Scalars['JSONObject']['output']; /** Viewer.getCurrentSectionBox(): THREE.Box3 */ - sectionBox?: Maybe; + sectionBox?: Maybe; /** Currently unused. Ideally comments should keep track of selected objects. */ - selection?: Maybe; + selection?: Maybe; }; /** @@ -750,21 +919,21 @@ export type LimitedUser = { __typename?: 'LimitedUser'; /** All the recent activity from this user in chronological order */ activity?: Maybe; - avatar?: Maybe; - bio?: Maybe; + avatar?: Maybe; + bio?: Maybe; /** Get public stream commits authored by the user */ commits?: Maybe; - company?: Maybe; - id: Scalars['ID']; - name: Scalars['String']; - role?: Maybe; + company?: Maybe; + id: Scalars['ID']['output']; + name: Scalars['String']['output']; + role?: Maybe; /** Returns all discoverable streams that the user is a collaborator on */ streams: StreamCollection; /** The user's timeline in chronological order */ timeline?: Maybe; /** Total amount of favorites attached to streams owned by the user */ - totalOwnedStreamsFavorites: Scalars['Int']; - verified?: Maybe; + totalOwnedStreamsFavorites: Scalars['Int']['output']; + verified?: Maybe; }; @@ -773,11 +942,11 @@ export type LimitedUser = { * to another user */ export type LimitedUserActivityArgs = { - actionType?: InputMaybe; - after?: InputMaybe; - before?: InputMaybe; - cursor?: InputMaybe; - limit?: Scalars['Int']; + actionType?: InputMaybe; + after?: InputMaybe; + before?: InputMaybe; + cursor?: InputMaybe; + limit?: Scalars['Int']['input']; }; @@ -786,8 +955,8 @@ export type LimitedUserActivityArgs = { * to another user */ export type LimitedUserCommitsArgs = { - cursor?: InputMaybe; - limit?: Scalars['Int']; + cursor?: InputMaybe; + limit?: Scalars['Int']['input']; }; @@ -796,8 +965,8 @@ export type LimitedUserCommitsArgs = { * to another user */ export type LimitedUserStreamsArgs = { - cursor?: InputMaybe; - limit?: Scalars['Int']; + cursor?: InputMaybe; + limit?: Scalars['Int']['input']; }; @@ -806,69 +975,69 @@ export type LimitedUserStreamsArgs = { * to another user */ export type LimitedUserTimelineArgs = { - after?: InputMaybe; - before?: InputMaybe; - cursor?: InputMaybe; - limit?: Scalars['Int']; + after?: InputMaybe; + before?: InputMaybe; + cursor?: InputMaybe; + limit?: Scalars['Int']['input']; }; export type Model = { __typename?: 'Model'; author: LimitedUser; - automationStatus?: Maybe; + automationsStatus?: Maybe; /** Return a model tree of children */ childrenTree: Array; /** All comment threads in this model */ commentThreads: CommentCollection; - createdAt: Scalars['DateTime']; - description?: Maybe; + createdAt: Scalars['DateTime']['output']; + description?: Maybe; /** The shortened/display name that doesn't include the names of parent models */ - displayName: Scalars['String']; - id: Scalars['ID']; + displayName: Scalars['String']['output']; + id: Scalars['ID']['output']; /** Full name including the names of parent models delimited by forward slashes */ - name: Scalars['String']; + name: Scalars['String']['output']; /** Returns a list of versions that are being created from a file import */ pendingImportedVersions: Array; - previewUrl?: Maybe; - updatedAt: Scalars['DateTime']; + previewUrl?: Maybe; + updatedAt: Scalars['DateTime']['output']; version: Version; versions: VersionCollection; }; export type ModelCommentThreadsArgs = { - cursor?: InputMaybe; - limit?: Scalars['Int']; + cursor?: InputMaybe; + limit?: Scalars['Int']['input']; }; export type ModelPendingImportedVersionsArgs = { - limit?: InputMaybe; + limit?: InputMaybe; }; export type ModelVersionArgs = { - id: Scalars['String']; + id: Scalars['String']['input']; }; export type ModelVersionsArgs = { - cursor?: InputMaybe; + cursor?: InputMaybe; filter?: InputMaybe; - limit?: Scalars['Int']; + limit?: Scalars['Int']['input']; }; export type ModelCollection = { __typename?: 'ModelCollection'; - cursor?: Maybe; + cursor?: Maybe; items: Array; - totalCount: Scalars['Int']; + totalCount: Scalars['Int']['output']; }; export type ModelMutations = { __typename?: 'ModelMutations'; create: Model; - delete: Scalars['Boolean']; + delete: Scalars['Boolean']['output']; update: Model; }; @@ -889,167 +1058,182 @@ export type ModelMutationsUpdateArgs = { export type ModelVersionsFilter = { /** Make sure these specified versions are always loaded first */ - priorityIds?: InputMaybe>; + priorityIds?: InputMaybe>; /** Only return versions specified in `priorityIds` */ - priorityIdsOnly?: InputMaybe; + priorityIdsOnly?: InputMaybe; }; export type ModelsTreeItem = { __typename?: 'ModelsTreeItem'; children: Array; - fullName: Scalars['String']; + fullName: Scalars['String']['output']; /** Whether or not this item has nested children models */ - hasChildren: Scalars['Boolean']; - id: Scalars['ID']; + hasChildren: Scalars['Boolean']['output']; + id: Scalars['ID']['output']; /** * Nullable cause the item can represent a parent that doesn't actually exist as a model on its own. * E.g. A model named "foo/bar" is supposed to be a child of "foo" and will be represented as such, * even if "foo" doesn't exist as its own model. */ model?: Maybe; - name: Scalars['String']; - updatedAt: Scalars['DateTime']; + name: Scalars['String']['output']; + updatedAt: Scalars['DateTime']['output']; }; export type ModelsTreeItemCollection = { __typename?: 'ModelsTreeItemCollection'; - cursor?: Maybe; + cursor?: Maybe; items: Array; - totalCount: Scalars['Int']; + totalCount: Scalars['Int']['output']; }; export type MoveVersionsInput = { /** If the name references a nonexistant model, it will be created */ - targetModelName: Scalars['String']; - versionIds: Array; + targetModelName: Scalars['String']['input']; + versionIds: Array; }; export type Mutation = { __typename?: 'Mutation'; /** The void stares back. */ - _?: Maybe; + _?: Maybe; /** Various Active User oriented mutations */ activeUserMutations: ActiveUserMutations; - adminDeleteUser: Scalars['Boolean']; + adminDeleteUser: Scalars['Boolean']['output']; /** Creates an personal api token. */ - apiTokenCreate: Scalars['String']; + apiTokenCreate: Scalars['String']['output']; /** Revokes (deletes) an personal api token/app token. */ - apiTokenRevoke: Scalars['Boolean']; + apiTokenRevoke: Scalars['Boolean']['output']; /** Register a new third party application. */ - appCreate: Scalars['String']; + appCreate: Scalars['String']['output']; /** Deletes a thirty party application. */ - appDelete: Scalars['Boolean']; + appDelete: Scalars['Boolean']['output']; /** Revokes (de-authorizes) an application that you have previously authorized. */ - appRevokeAccess?: Maybe; + appRevokeAccess?: Maybe; /** Create an app token. Only apps can create app tokens and they don't show up under personal access tokens. */ - appTokenCreate: Scalars['String']; + appTokenCreate: Scalars['String']['output']; /** 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']; - automationMutations: AutomationMutations; - branchCreate: Scalars['String']; - branchDelete: Scalars['Boolean']; - branchUpdate: Scalars['Boolean']; + appUpdate: Scalars['Boolean']['output']; + automateFunctionRunStatusReport: Scalars['Boolean']['output']; + automateMutations: AutomateMutations; + branchCreate: Scalars['String']['output']; + branchDelete: Scalars['Boolean']['output']; + branchUpdate: Scalars['Boolean']['output']; /** Broadcast user activity in the viewer */ - broadcastViewerUserActivity: Scalars['Boolean']; + broadcastViewerUserActivity: Scalars['Boolean']['output']; /** * Archives a comment. * @deprecated Use commentMutations version */ - commentArchive: Scalars['Boolean']; + commentArchive: Scalars['Boolean']['output']; /** * Creates a comment * @deprecated Use commentMutations version */ - commentCreate: Scalars['String']; + commentCreate: Scalars['String']['output']; /** * Edits a comment. * @deprecated Use commentMutations version */ - commentEdit: Scalars['Boolean']; + commentEdit: Scalars['Boolean']['output']; commentMutations: CommentMutations; /** * Adds a reply to a comment. * @deprecated Use commentMutations version */ - commentReply: Scalars['String']; + commentReply: Scalars['String']['output']; /** * Flags a comment as viewed by you (the logged in user). * @deprecated Use commentMutations version */ - commentView: Scalars['Boolean']; - commitCreate: Scalars['String']; - commitDelete: Scalars['Boolean']; - commitReceive: Scalars['Boolean']; - commitUpdate: Scalars['Boolean']; + commentView: Scalars['Boolean']['output']; + commitCreate: Scalars['String']['output']; + commitDelete: Scalars['Boolean']['output']; + commitReceive: Scalars['Boolean']['output']; + commitUpdate: Scalars['Boolean']['output']; /** Delete a batch of commits */ - commitsDelete: Scalars['Boolean']; + commitsDelete: Scalars['Boolean']['output']; /** Move a batch of commits to a new branch */ - commitsMove: Scalars['Boolean']; - /** Delete a pending invite */ - inviteDelete: Scalars['Boolean']; - /** Re-send a pending invite */ - inviteResend: Scalars['Boolean']; + commitsMove: Scalars['Boolean']['output']; + /** + * Delete a pending invite + * Note: The required scope to invoke this is not given out to app or personal access tokens + */ + inviteDelete: Scalars['Boolean']['output']; + /** + * Re-send a pending invite + * Note: The required scope to invoke this is not given out to app or personal access tokens + */ + inviteResend: Scalars['Boolean']['output']; modelMutations: ModelMutations; - objectCreate: Array>; + objectCreate: Array>; projectMutations: ProjectMutations; /** (Re-)send the account verification e-mail */ - requestVerification: Scalars['Boolean']; - requestVerificationByEmail: Scalars['Boolean']; - serverInfoUpdate?: Maybe; - serverInviteBatchCreate: Scalars['Boolean']; + requestVerification: Scalars['Boolean']['output']; + requestVerificationByEmail: Scalars['Boolean']['output']; + serverInfoUpdate?: Maybe; + /** Note: The required scope to invoke this is not given out to app or personal access tokens */ + serverInviteBatchCreate: Scalars['Boolean']['output']; /** Invite a new user to the speckle server and return the invite ID */ - serverInviteCreate: Scalars['Boolean']; + serverInviteCreate: Scalars['Boolean']['output']; /** Request access to a specific stream */ streamAccessRequestCreate: StreamAccessRequest; /** Accept or decline a stream access request. Must be a stream owner to invoke this. */ - streamAccessRequestUse: Scalars['Boolean']; + streamAccessRequestUse: Scalars['Boolean']['output']; /** Creates a new stream. */ - streamCreate?: Maybe; + streamCreate?: Maybe; /** Deletes an existing stream. */ - streamDelete: Scalars['Boolean']; + streamDelete: Scalars['Boolean']['output']; 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']; + /** Note: The required scope to invoke this is not given out to app or personal access tokens */ + streamInviteBatchCreate: Scalars['Boolean']['output']; + /** + * Cancel a pending stream invite. Can only be invoked by a stream owner. + * Note: The required scope to invoke this is not given out to app or personal access tokens + */ + streamInviteCancel: Scalars['Boolean']['output']; + /** + * Invite a new or registered user to the specified stream + * Note: The required scope to invoke this is not given out to app or personal access tokens + */ + streamInviteCreate: Scalars['Boolean']['output']; /** Accept or decline a stream invite */ - streamInviteUse: Scalars['Boolean']; + streamInviteUse: Scalars['Boolean']['output']; /** Remove yourself from stream collaborators (not possible for the owner) */ - streamLeave: Scalars['Boolean']; + streamLeave: Scalars['Boolean']['output']; /** Revokes the permissions of a user on a given stream. */ - streamRevokePermission?: Maybe; + streamRevokePermission?: Maybe; /** Updates an existing stream. */ - streamUpdate: Scalars['Boolean']; + streamUpdate: Scalars['Boolean']['output']; /** Update permissions of a user on a given stream. */ - streamUpdatePermission?: Maybe; - streamsDelete: Scalars['Boolean']; + streamUpdatePermission?: Maybe; + streamsDelete: Scalars['Boolean']['output']; /** * Used for broadcasting real time typing status in comment threads. Does not persist any info. * @deprecated Use broadcastViewerUserActivity */ - userCommentThreadActivityBroadcast: Scalars['Boolean']; + userCommentThreadActivityBroadcast: Scalars['Boolean']['output']; /** Delete a user's account. */ - userDelete: Scalars['Boolean']; - userNotificationPreferencesUpdate?: Maybe; - userRoleChange: Scalars['Boolean']; + userDelete: Scalars['Boolean']['output']; + userNotificationPreferencesUpdate?: Maybe; + userRoleChange: Scalars['Boolean']['output']; /** * Edits a user's profile. * @deprecated Use activeUserMutations version */ - userUpdate: Scalars['Boolean']; + userUpdate: Scalars['Boolean']['output']; /** * Used for broadcasting real time chat head bubbles and status. Does not persist any info. * @deprecated Use broadcastViewerUserActivity */ - userViewerActivityBroadcast: Scalars['Boolean']; + userViewerActivityBroadcast: Scalars['Boolean']['output']; versionMutations: VersionMutations; /** Creates a new webhook on a stream */ - webhookCreate: Scalars['String']; + webhookCreate: Scalars['String']['output']; /** Deletes an existing webhook */ - webhookDelete: Scalars['String']; + webhookDelete: Scalars['String']['output']; /** Updates an existing webhook */ - webhookUpdate: Scalars['String']; + webhookUpdate: Scalars['String']['output']; }; @@ -1064,7 +1248,7 @@ export type MutationApiTokenCreateArgs = { export type MutationApiTokenRevokeArgs = { - token: Scalars['String']; + token: Scalars['String']['input']; }; @@ -1074,12 +1258,12 @@ export type MutationAppCreateArgs = { export type MutationAppDeleteArgs = { - appId: Scalars['String']; + appId: Scalars['String']['input']; }; export type MutationAppRevokeAccessArgs = { - appId: Scalars['String']; + appId: Scalars['String']['input']; }; @@ -1093,6 +1277,11 @@ export type MutationAppUpdateArgs = { }; +export type MutationAutomateFunctionRunStatusReportArgs = { + input: AutomateFunctionRunStatusReportInput; +}; + + export type MutationBranchCreateArgs = { branch: BranchCreateInput; }; @@ -1110,15 +1299,15 @@ export type MutationBranchUpdateArgs = { export type MutationBroadcastViewerUserActivityArgs = { message: ViewerUserActivityMessageInput; - projectId: Scalars['String']; - resourceIdString: Scalars['String']; + projectId: Scalars['String']['input']; + resourceIdString: Scalars['String']['input']; }; export type MutationCommentArchiveArgs = { - archived?: Scalars['Boolean']; - commentId: Scalars['String']; - streamId: Scalars['String']; + archived?: Scalars['Boolean']['input']; + commentId: Scalars['String']['input']; + streamId: Scalars['String']['input']; }; @@ -1138,8 +1327,8 @@ export type MutationCommentReplyArgs = { export type MutationCommentViewArgs = { - commentId: Scalars['String']; - streamId: Scalars['String']; + commentId: Scalars['String']['input']; + streamId: Scalars['String']['input']; }; @@ -1174,12 +1363,12 @@ export type MutationCommitsMoveArgs = { export type MutationInviteDeleteArgs = { - inviteId: Scalars['String']; + inviteId: Scalars['String']['input']; }; export type MutationInviteResendArgs = { - inviteId: Scalars['String']; + inviteId: Scalars['String']['input']; }; @@ -1189,7 +1378,7 @@ export type MutationObjectCreateArgs = { export type MutationRequestVerificationByEmailArgs = { - email: Scalars['String']; + email: Scalars['String']['input']; }; @@ -1209,13 +1398,13 @@ export type MutationServerInviteCreateArgs = { export type MutationStreamAccessRequestCreateArgs = { - streamId: Scalars['String']; + streamId: Scalars['String']['input']; }; export type MutationStreamAccessRequestUseArgs = { - accept: Scalars['Boolean']; - requestId: Scalars['String']; + accept: Scalars['Boolean']['input']; + requestId: Scalars['String']['input']; role?: StreamRole; }; @@ -1226,13 +1415,13 @@ export type MutationStreamCreateArgs = { export type MutationStreamDeleteArgs = { - id: Scalars['String']; + id: Scalars['String']['input']; }; export type MutationStreamFavoriteArgs = { - favorited: Scalars['Boolean']; - streamId: Scalars['String']; + favorited: Scalars['Boolean']['input']; + streamId: Scalars['String']['input']; }; @@ -1242,8 +1431,8 @@ export type MutationStreamInviteBatchCreateArgs = { export type MutationStreamInviteCancelArgs = { - inviteId: Scalars['String']; - streamId: Scalars['String']; + inviteId: Scalars['String']['input']; + streamId: Scalars['String']['input']; }; @@ -1253,14 +1442,14 @@ export type MutationStreamInviteCreateArgs = { export type MutationStreamInviteUseArgs = { - accept: Scalars['Boolean']; - streamId: Scalars['String']; - token: Scalars['String']; + accept: Scalars['Boolean']['input']; + streamId: Scalars['String']['input']; + token: Scalars['String']['input']; }; export type MutationStreamLeaveArgs = { - streamId: Scalars['String']; + streamId: Scalars['String']['input']; }; @@ -1280,14 +1469,14 @@ export type MutationStreamUpdatePermissionArgs = { export type MutationStreamsDeleteArgs = { - ids?: InputMaybe>; + ids?: InputMaybe>; }; export type MutationUserCommentThreadActivityBroadcastArgs = { - commentId: Scalars['String']; - data?: InputMaybe; - streamId: Scalars['String']; + commentId: Scalars['String']['input']; + data?: InputMaybe; + streamId: Scalars['String']['input']; }; @@ -1297,7 +1486,7 @@ export type MutationUserDeleteArgs = { export type MutationUserNotificationPreferencesUpdateArgs = { - preferences: Scalars['JSONObject']; + preferences: Scalars['JSONObject']['input']; }; @@ -1312,9 +1501,9 @@ export type MutationUserUpdateArgs = { export type MutationUserViewerActivityBroadcastArgs = { - data?: InputMaybe; - resourceId: Scalars['String']; - streamId: Scalars['String']; + data?: InputMaybe; + resourceId: Scalars['String']['input']; + streamId: Scalars['String']['input']; }; @@ -1334,7 +1523,7 @@ export type MutationWebhookUpdateArgs = { export type Object = { __typename?: 'Object'; - applicationId?: Maybe; + 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. @@ -1350,43 +1539,43 @@ export type Object = { * } * ``` */ - commentCount: Scalars['Int']; - createdAt?: Maybe; + commentCount: Scalars['Int']['output']; + 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; + data?: Maybe; + id: Scalars['String']['output']; + speckleType?: Maybe; + totalChildrenCount?: Maybe; }; export type ObjectChildrenArgs = { - cursor?: InputMaybe; - depth?: Scalars['Int']; - limit?: Scalars['Int']; - orderBy?: InputMaybe; - query?: InputMaybe>; - select?: InputMaybe>>; + cursor?: InputMaybe; + depth?: Scalars['Int']['input']; + limit?: Scalars['Int']['input']; + orderBy?: InputMaybe; + query?: InputMaybe>; + select?: InputMaybe>>; }; export type ObjectCollection = { __typename?: 'ObjectCollection'; - cursor?: Maybe; + cursor?: Maybe; objects: Array>; - totalCount: Scalars['Int']; + totalCount: Scalars['Int']['output']; }; export type ObjectCreateInput = { /** The objects you want to create. */ - objects: Array>; + objects: Array>; /** The stream against which these objects will be created. */ - streamId: Scalars['String']; + streamId: Scalars['String']['input']; }; export type PasswordStrengthCheckFeedback = { __typename?: 'PasswordStrengthCheckFeedback'; - suggestions: Array; - warning?: Maybe; + suggestions: Array; + warning?: Maybe; }; export type PasswordStrengthCheckResults = { @@ -1401,35 +1590,41 @@ export type PasswordStrengthCheckResults = { * 3 safely unguessable: moderate protection from offline slow-hash scenario. (guesses < 10^10) * 4 very unguessable: strong protection from offline slow-hash scenario. (guesses >= 10^10) */ - score: Scalars['Int']; + score: Scalars['Int']['output']; }; export type PendingStreamCollaborator = { __typename?: 'PendingStreamCollaborator'; - id: Scalars['String']; - inviteId: Scalars['String']; + id: Scalars['String']['output']; + inviteId: Scalars['String']['output']; invitedBy: LimitedUser; - projectId: Scalars['String']; - projectName: Scalars['String']; - role: Scalars['String']; - streamId: Scalars['String']; - streamName: Scalars['String']; + projectId: Scalars['String']['output']; + projectName: Scalars['String']['output']; + role: Scalars['String']['output']; + streamId: Scalars['String']['output']; + streamName: Scalars['String']['output']; /** E-mail address or name of the invited user */ - title: Scalars['String']; + title: Scalars['String']['output']; /** Only available if the active user is the pending stream collaborator */ - token?: Maybe; + token?: Maybe; /** Set only if user is registered */ user?: Maybe; }; export type Project = { __typename?: 'Project'; - allowPublicComments: Scalars['Boolean']; + allowPublicComments: Scalars['Boolean']['output']; + /** Get a single automation by id. Error will be thrown if automation is not found or inaccessible. */ + automation: Automation; + automations: AutomationCollection; + blob?: Maybe; + /** Get the metadata collection of blobs stored for this stream. */ + blobs?: Maybe; /** All comment threads in this project */ commentThreads: ProjectCommentCollection; - createdAt: Scalars['DateTime']; - description?: Maybe; - id: Scalars['ID']; + createdAt: Scalars['DateTime']['output']; + description?: Maybe; + id: Scalars['ID']['output']; /** Collaborators who have been invited, but not yet accepted. */ invitedTeam?: Maybe>; /** Returns a specific model by its ID */ @@ -1443,15 +1638,15 @@ export type Project = { * real or fake (e.g., with a foo/bar model, it will be nested under foo even if such a model doesn't actually exist) */ modelsTree: ModelsTreeItemCollection; - name: Scalars['String']; + name: Scalars['String']['output']; /** Returns a list models that are being created from a file import */ pendingImportedModels: Array; /** Active user's role for this project. `null` if request is not authenticated, or the project is not explicitly shared with you. */ - role?: Maybe; + role?: Maybe; /** Source apps used in any models of this project */ - sourceApps: Array; + sourceApps: Array; team: Array; - updatedAt: Scalars['DateTime']; + updatedAt: Scalars['DateTime']['output']; /** Retrieve a specific project version by its ID */ version?: Maybe; /** Returns a flat list of all project versions */ @@ -1463,113 +1658,207 @@ export type Project = { }; +export type ProjectAutomationArgs = { + id: Scalars['String']['input']; +}; + + +export type ProjectAutomationsArgs = { + cursor?: InputMaybe; + filter?: InputMaybe; + limit?: InputMaybe; +}; + + +export type ProjectBlobArgs = { + id: Scalars['String']['input']; +}; + + +export type ProjectBlobsArgs = { + cursor?: InputMaybe; + limit?: InputMaybe; + query?: InputMaybe; +}; + + export type ProjectCommentThreadsArgs = { - cursor?: InputMaybe; + cursor?: InputMaybe; filter?: InputMaybe; - limit?: Scalars['Int']; + limit?: Scalars['Int']['input']; }; export type ProjectModelArgs = { - id: Scalars['String']; + id: Scalars['String']['input']; }; export type ProjectModelChildrenTreeArgs = { - fullName: Scalars['String']; + fullName: Scalars['String']['input']; }; export type ProjectModelsArgs = { - cursor?: InputMaybe; + cursor?: InputMaybe; filter?: InputMaybe; - limit?: Scalars['Int']; + limit?: Scalars['Int']['input']; }; export type ProjectModelsTreeArgs = { - cursor?: InputMaybe; + cursor?: InputMaybe; filter?: InputMaybe; - limit?: Scalars['Int']; + limit?: Scalars['Int']['input']; }; export type ProjectPendingImportedModelsArgs = { - limit?: InputMaybe; + limit?: InputMaybe; }; export type ProjectVersionArgs = { - id: Scalars['String']; + id: Scalars['String']['input']; }; export type ProjectVersionsArgs = { - cursor?: InputMaybe; - limit?: Scalars['Int']; + cursor?: InputMaybe; + limit?: Scalars['Int']['input']; }; export type ProjectViewerResourcesArgs = { - loadedVersionsOnly?: InputMaybe; - resourceIdString: Scalars['String']; + loadedVersionsOnly?: InputMaybe; + resourceIdString: Scalars['String']['input']; }; export type ProjectWebhooksArgs = { - id?: InputMaybe; + id?: InputMaybe; }; -export type ProjectAutomationsStatusUpdatedMessage = { - __typename?: 'ProjectAutomationsStatusUpdatedMessage'; - model: Model; - project: Project; - status: AutomationsStatus; - version: Version; +export type ProjectAutomationCreateInput = { + enabled: Scalars['Boolean']['input']; + name: Scalars['String']['input']; }; +export type ProjectAutomationMutations = { + __typename?: 'ProjectAutomationMutations'; + create: Automation; + createRevision: AutomationRevision; + createTestAutomation: Automation; + createTestAutomationRun: TestAutomationRun; + /** + * Trigger an automation with a fake "version created" trigger. The "version created" will + * just refer to the last version of the model. + */ + trigger: Scalars['String']['output']; + update: Automation; +}; + + +export type ProjectAutomationMutationsCreateArgs = { + input: ProjectAutomationCreateInput; +}; + + +export type ProjectAutomationMutationsCreateRevisionArgs = { + input: ProjectAutomationRevisionCreateInput; +}; + + +export type ProjectAutomationMutationsCreateTestAutomationArgs = { + input: ProjectTestAutomationCreateInput; +}; + + +export type ProjectAutomationMutationsCreateTestAutomationRunArgs = { + automationId: Scalars['ID']['input']; +}; + + +export type ProjectAutomationMutationsTriggerArgs = { + automationId: Scalars['ID']['input']; +}; + + +export type ProjectAutomationMutationsUpdateArgs = { + input: ProjectAutomationUpdateInput; +}; + +export type ProjectAutomationRevisionCreateInput = { + automationId: Scalars['ID']['input']; + functions: Array; + /** AutomateTypes.TriggerDefinitionsSchema type from @speckle/shared */ + triggerDefinitions: Scalars['JSONObject']['input']; +}; + +export type ProjectAutomationUpdateInput = { + enabled?: InputMaybe; + id: Scalars['ID']['input']; + name?: InputMaybe; +}; + +export type ProjectAutomationsUpdatedMessage = { + __typename?: 'ProjectAutomationsUpdatedMessage'; + automation?: Maybe; + automationId: Scalars['String']['output']; + /** Only set if type === CREATED_REVISION */ + revision?: Maybe; + type: ProjectAutomationsUpdatedMessageType; +}; + +export enum ProjectAutomationsUpdatedMessageType { + Created = 'CREATED', + CreatedRevision = 'CREATED_REVISION', + Updated = 'UPDATED' +} + export type ProjectCollaborator = { __typename?: 'ProjectCollaborator'; - role: Scalars['String']; + id: Scalars['ID']['output']; + role: Scalars['String']['output']; user: LimitedUser; }; export type ProjectCollection = { __typename?: 'ProjectCollection'; - cursor?: Maybe; + cursor?: Maybe; items: Array; - totalCount: Scalars['Int']; + totalCount: Scalars['Int']['output']; }; export type ProjectCommentCollection = { __typename?: 'ProjectCommentCollection'; - cursor?: Maybe; + cursor?: Maybe; items: Array; - totalArchivedCount: Scalars['Int']; - totalCount: Scalars['Int']; + totalArchivedCount: Scalars['Int']['output']; + totalCount: Scalars['Int']['output']; }; export type ProjectCommentsFilter = { /** Whether or not to include archived/resolved threads */ - includeArchived?: InputMaybe; + includeArchived?: InputMaybe; /** * By default if resourceIdString is set, the "versionId" part of model resource identifiers will be ignored * and all comments of all versions of any of the referenced models will be returned. If `loadedVersionsOnly` is * enabled, then only comment threads of loaded/referenced versions in resourceIdString will be returned. */ - loadedVersionsOnly?: InputMaybe; + loadedVersionsOnly?: InputMaybe; /** * Only request comments belonging to the resources identified by this * comma-delimited resouce string (same format that's used in the viewer URL) */ - resourceIdString?: InputMaybe; + resourceIdString?: InputMaybe; }; export type ProjectCommentsUpdatedMessage = { __typename?: 'ProjectCommentsUpdatedMessage'; /** Null if deleted */ comment?: Maybe; - id: Scalars['String']; + id: Scalars['String']['output']; type: ProjectCommentsUpdatedMessageType; }; @@ -1581,15 +1870,15 @@ export enum ProjectCommentsUpdatedMessageType { /** Any values left null will be ignored */ export type ProjectCreateInput = { - description?: InputMaybe; - name?: InputMaybe; + description?: InputMaybe; + name?: InputMaybe; visibility?: InputMaybe; }; export type ProjectFileImportUpdatedMessage = { __typename?: 'ProjectFileImportUpdatedMessage'; /** Upload ID */ - id: Scalars['String']; + id: Scalars['String']['output']; type: ProjectFileImportUpdatedMessageType; upload: FileUpload; }; @@ -1601,13 +1890,13 @@ export enum ProjectFileImportUpdatedMessageType { export type ProjectInviteCreateInput = { /** Either this or userId must be filled */ - email?: InputMaybe; + email?: InputMaybe; /** Defaults to the contributor role, if not specified */ - role?: InputMaybe; + role?: InputMaybe; /** Can only be specified if guest mode is on or if the user is an admin */ - serverRole?: InputMaybe; + serverRole?: InputMaybe; /** Either this or email must be filled */ - userId?: InputMaybe; + userId?: InputMaybe; }; export type ProjectInviteMutations = { @@ -1619,25 +1908,25 @@ export type ProjectInviteMutations = { /** Invite a new or registered user to be a project collaborator. Can only be invoked by a project owner. */ create: Project; /** Accept or decline a project invite */ - use: Scalars['Boolean']; + use: Scalars['Boolean']['output']; }; export type ProjectInviteMutationsBatchCreateArgs = { input: Array; - projectId: Scalars['ID']; + projectId: Scalars['ID']['input']; }; export type ProjectInviteMutationsCancelArgs = { - inviteId: Scalars['String']; - projectId: Scalars['ID']; + inviteId: Scalars['String']['input']; + projectId: Scalars['ID']['input']; }; export type ProjectInviteMutationsCreateArgs = { input: ProjectInviteCreateInput; - projectId: Scalars['ID']; + projectId: Scalars['ID']['input']; }; @@ -1646,39 +1935,39 @@ export type ProjectInviteMutationsUseArgs = { }; export type ProjectInviteUseInput = { - accept: Scalars['Boolean']; - projectId: Scalars['ID']; - token: Scalars['String']; + accept: Scalars['Boolean']['input']; + projectId: Scalars['ID']['input']; + token: Scalars['String']['input']; }; export type ProjectModelsFilter = { /** Filter by IDs of contributors who participated in models */ - contributors?: InputMaybe>; + contributors?: InputMaybe>; /** Excldue models w/ the specified IDs */ - excludeIds?: InputMaybe>; + excludeIds?: InputMaybe>; /** Only select models w/ the specified IDs */ - ids?: InputMaybe>; + ids?: InputMaybe>; /** Filter out models that don't have any versions */ - onlyWithVersions?: InputMaybe; + onlyWithVersions?: InputMaybe; /** Filter by model names */ - search?: InputMaybe; + search?: InputMaybe; /** Filter by source apps used in models */ - sourceApps?: InputMaybe>; + sourceApps?: InputMaybe>; }; export type ProjectModelsTreeFilter = { /** Filter by IDs of contributors who participated in models */ - contributors?: InputMaybe>; + contributors?: InputMaybe>; /** Search for specific models. If used, tree items from different levels may be mixed. */ - search?: InputMaybe; + search?: InputMaybe; /** Filter by source apps used in models */ - sourceApps?: InputMaybe>; + sourceApps?: InputMaybe>; }; export type ProjectModelsUpdatedMessage = { __typename?: 'ProjectModelsUpdatedMessage'; /** Model ID */ - id: Scalars['String']; + id: Scalars['String']['output']; /** Null if model was deleted */ model?: Maybe; type: ProjectModelsUpdatedMessageType; @@ -1692,6 +1981,7 @@ export enum ProjectModelsUpdatedMessageType { export type ProjectMutations = { __typename?: 'ProjectMutations'; + automationMutations: ProjectAutomationMutations; /** Create new project */ create: Project; /** @@ -1700,11 +1990,11 @@ export type ProjectMutations = { */ createForOnboarding: Project; /** Delete an existing project */ - delete: Scalars['Boolean']; + delete: Scalars['Boolean']['output']; /** Invite related mutations */ invites: ProjectInviteMutations; /** Leave a project. Only possible if you're not the last remaining owner. */ - leave: Scalars['Boolean']; + leave: Scalars['Boolean']['output']; /** Updates an existing project */ update: Project; /** Update role for a collaborator */ @@ -1712,18 +2002,23 @@ export type ProjectMutations = { }; +export type ProjectMutationsAutomationMutationsArgs = { + projectId: Scalars['ID']['input']; +}; + + export type ProjectMutationsCreateArgs = { input?: InputMaybe; }; export type ProjectMutationsDeleteArgs = { - id: Scalars['String']; + id: Scalars['String']['input']; }; export type ProjectMutationsLeaveArgs = { - id: Scalars['String']; + id: Scalars['String']['input']; }; @@ -1739,7 +2034,7 @@ export type ProjectMutationsUpdateRoleArgs = { export type ProjectPendingModelsUpdatedMessage = { __typename?: 'ProjectPendingModelsUpdatedMessage'; /** Upload ID */ - id: Scalars['String']; + id: Scalars['String']['output']; model: FileUpload; type: ProjectPendingModelsUpdatedMessageType; }; @@ -1752,7 +2047,7 @@ export enum ProjectPendingModelsUpdatedMessageType { export type ProjectPendingVersionsUpdatedMessage = { __typename?: 'ProjectPendingVersionsUpdatedMessage'; /** Upload ID */ - id: Scalars['String']; + id: Scalars['String']['output']; type: ProjectPendingVersionsUpdatedMessageType; version: FileUpload; }; @@ -1762,26 +2057,46 @@ export enum ProjectPendingVersionsUpdatedMessageType { Updated = 'UPDATED' } +export type ProjectTestAutomationCreateInput = { + functionId: Scalars['String']['input']; + modelId: Scalars['String']['input']; + name: Scalars['String']['input']; +}; + +export type ProjectTriggeredAutomationsStatusUpdatedMessage = { + __typename?: 'ProjectTriggeredAutomationsStatusUpdatedMessage'; + model: Model; + project: Project; + run: AutomateRun; + type: ProjectTriggeredAutomationsStatusUpdatedMessageType; + version: Version; +}; + +export enum ProjectTriggeredAutomationsStatusUpdatedMessageType { + RunCreated = 'RUN_CREATED', + RunUpdated = 'RUN_UPDATED' +} + /** Any values left null will be ignored, so only set the properties that you want updated */ export type ProjectUpdateInput = { - allowPublicComments?: InputMaybe; - description?: InputMaybe; - id: Scalars['ID']; - name?: InputMaybe; + allowPublicComments?: InputMaybe; + description?: InputMaybe; + id: Scalars['ID']['input']; + name?: InputMaybe; visibility?: InputMaybe; }; export type ProjectUpdateRoleInput = { - projectId: Scalars['String']; + projectId: Scalars['String']['input']; /** Leave role as null to revoke access entirely */ - role?: InputMaybe; - userId: Scalars['String']; + role?: InputMaybe; + userId: Scalars['String']['input']; }; export type ProjectUpdatedMessage = { __typename?: 'ProjectUpdatedMessage'; /** Project ID */ - id: Scalars['String']; + id: Scalars['String']['output']; /** Project entity, null if project was deleted */ project?: Maybe; /** Message type */ @@ -1795,17 +2110,17 @@ export enum ProjectUpdatedMessageType { export type ProjectVersionsPreviewGeneratedMessage = { __typename?: 'ProjectVersionsPreviewGeneratedMessage'; - objectId: Scalars['String']; - projectId: Scalars['String']; - versionId: Scalars['String']; + objectId: Scalars['String']['output']; + projectId: Scalars['String']['output']; + versionId: Scalars['String']['output']; }; export type ProjectVersionsUpdatedMessage = { __typename?: 'ProjectVersionsUpdatedMessage'; /** Version ID */ - id: Scalars['String']; + id: Scalars['String']['output']; /** Only set if version was deleted, in other scenarios can be queried from 'version' */ - modelId?: Maybe; + modelId?: Maybe; type: ProjectVersionsUpdatedMessageType; /** Null if version was deleted */ version?: Maybe; @@ -1826,7 +2141,7 @@ export enum ProjectVisibility { export type Query = { __typename?: 'Query'; /** Stare into the void. */ - _?: Maybe; + _?: Maybe; /** Gets the profile of the authenticated user or null if not authenticated */ activeUser?: Maybe; admin: AdminQueries; @@ -1847,6 +2162,11 @@ export type Query = { apps?: Maybe>>; /** If user is authenticated using an app token, this will describe the app */ authenticatedAsApp?: Maybe; + /** Get a single automate function by id. Error will be thrown if function is not found or inaccessible. */ + automateFunction: AutomateFunction; + automateFunctions: AutomateFunctionCollection; + /** Part of the automation/function creation handshake mechanism */ + automateValidateAuthCode: Scalars['Boolean']['output']; comment?: Maybe; /** * This query can be used in the following ways: @@ -1911,129 +2231,146 @@ export type Query = { export type QueryAdminStreamsArgs = { - limit?: InputMaybe; - offset?: InputMaybe; - orderBy?: InputMaybe; - query?: InputMaybe; - visibility?: InputMaybe; + limit?: InputMaybe; + offset?: InputMaybe; + orderBy?: InputMaybe; + query?: InputMaybe; + visibility?: InputMaybe; }; export type QueryAdminUsersArgs = { - limit?: Scalars['Int']; - offset?: Scalars['Int']; - query?: InputMaybe; + limit?: Scalars['Int']['input']; + offset?: Scalars['Int']['input']; + query?: InputMaybe; }; export type QueryAppArgs = { - id: Scalars['String']; + id: Scalars['String']['input']; +}; + + +export type QueryAutomateFunctionArgs = { + id: Scalars['ID']['input']; +}; + + +export type QueryAutomateFunctionsArgs = { + cursor?: InputMaybe; + filter?: InputMaybe; + limit?: InputMaybe; +}; + + +export type QueryAutomateValidateAuthCodeArgs = { + payload: AutomateAuthCodePayloadTest; }; export type QueryCommentArgs = { - id: Scalars['String']; - streamId: Scalars['String']; + id: Scalars['String']['input']; + streamId: Scalars['String']['input']; }; export type QueryCommentsArgs = { - archived?: Scalars['Boolean']; - cursor?: InputMaybe; - limit?: InputMaybe; + archived?: Scalars['Boolean']['input']; + cursor?: InputMaybe; + limit?: InputMaybe; resources?: InputMaybe>>; - streamId: Scalars['String']; + streamId: Scalars['String']['input']; }; export type QueryDiscoverableStreamsArgs = { - cursor?: InputMaybe; - limit?: Scalars['Int']; + cursor?: InputMaybe; + limit?: Scalars['Int']['input']; sort?: InputMaybe; }; export type QueryOtherUserArgs = { - id: Scalars['String']; + id: Scalars['String']['input']; }; export type QueryProjectArgs = { - id: Scalars['String']; + id: Scalars['String']['input']; }; export type QueryProjectInviteArgs = { - projectId: Scalars['String']; - token?: InputMaybe; + projectId: Scalars['String']['input']; + token?: InputMaybe; }; export type QueryServerInviteByTokenArgs = { - token: Scalars['String']; + token: Scalars['String']['input']; }; export type QueryStreamArgs = { - id: Scalars['String']; + id: Scalars['String']['input']; }; export type QueryStreamAccessRequestArgs = { - streamId: Scalars['String']; + streamId: Scalars['String']['input']; }; export type QueryStreamInviteArgs = { - streamId: Scalars['String']; - token?: InputMaybe; + streamId: Scalars['String']['input']; + token?: InputMaybe; }; export type QueryStreamsArgs = { - cursor?: InputMaybe; - limit?: InputMaybe; - query?: InputMaybe; + cursor?: InputMaybe; + limit?: InputMaybe; + query?: InputMaybe; }; export type QueryUserArgs = { - id?: InputMaybe; + id?: InputMaybe; }; export type QueryUserPwdStrengthArgs = { - pwd: Scalars['String']; + pwd: Scalars['String']['input']; }; export type QueryUserSearchArgs = { - archived?: InputMaybe; - cursor?: InputMaybe; - emailOnly?: InputMaybe; - limit?: Scalars['Int']; - query: Scalars['String']; + archived?: InputMaybe; + cursor?: InputMaybe; + emailOnly?: InputMaybe; + limit?: Scalars['Int']['input']; + query: Scalars['String']['input']; }; /** Deprecated: Used by old stream-based mutations */ export type ReplyCreateInput = { /** IDs of uploaded blobs that should be attached to this reply */ - blobIds: Array; - data?: InputMaybe; - parentComment: Scalars['String']; - streamId: Scalars['String']; + blobIds: Array; + data?: InputMaybe; + parentComment: Scalars['String']['input']; + streamId: Scalars['String']['input']; /** ProseMirror document object */ - text?: InputMaybe; + text?: InputMaybe; }; export type ResourceIdentifier = { __typename?: 'ResourceIdentifier'; - resourceId: Scalars['String']; + resourceId: Scalars['String']['output']; resourceType: ResourceType; }; export type ResourceIdentifierInput = { - resourceId: Scalars['String']; + resourceId: Scalars['String']['input']; resourceType: ResourceType; }; @@ -2046,107 +2383,113 @@ export enum ResourceType { export type Role = { __typename?: 'Role'; - description: Scalars['String']; - name: Scalars['String']; - resourceTarget: Scalars['String']; + description: Scalars['String']['output']; + name: Scalars['String']['output']; + resourceTarget: Scalars['String']['output']; }; /** Available scopes. */ export type Scope = { __typename?: 'Scope'; - description: Scalars['String']; - name: Scalars['String']; + description: Scalars['String']['output']; + name: Scalars['String']['output']; }; export type SelectedCommentMetaData = { __typename?: 'SelectedCommentMetaData'; - id: Scalars['String']; - selectionLocation: Scalars['JSONObject']; + id: Scalars['String']['output']; + selectionLocation: Scalars['JSONObject']['output']; }; 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']; + createdAt: Scalars['DateTime']['output']; + description?: Maybe; + id: Scalars['String']['output']; + logo?: Maybe; + name: Scalars['String']['output']; + public?: Maybe; + redirectUrl: Scalars['String']['output']; scopes: Array; - secret?: Maybe; - termsAndConditionsLink?: Maybe; - trustByDefault?: Maybe; + 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; + description?: Maybe; + id: Scalars['String']['output']; + logo?: Maybe; + name: Scalars['String']['output']; + redirectUrl: Scalars['String']['output']; + termsAndConditionsLink?: Maybe; + trustByDefault?: Maybe; +}; + +export type ServerAutomateInfo = { + __typename?: 'ServerAutomateInfo'; + availableFunctionTemplates: Array; }; /** Information about this server. */ export type ServerInfo = { __typename?: 'ServerInfo'; - adminContact?: Maybe; + adminContact?: Maybe; /** The authentication strategies available on this server. */ authStrategies: Array; + automate: ServerAutomateInfo; /** Base URL of Speckle Automate, if set */ - automateUrl?: Maybe; - blobSizeLimitBytes: Scalars['Int']; - canonicalUrl?: Maybe; - company?: Maybe; - description?: Maybe; + automateUrl?: Maybe; + blobSizeLimitBytes: Scalars['Int']['output']; + canonicalUrl?: Maybe; + company?: Maybe; + description?: Maybe; /** Whether or not to show messaging about FE2 (banners etc.) */ - enableNewWebUiMessaging?: Maybe; - guestModeEnabled: Scalars['Boolean']; - inviteOnly?: Maybe; + enableNewWebUiMessaging?: Maybe; + guestModeEnabled: Scalars['Boolean']['output']; + inviteOnly?: Maybe; /** Server relocation / migration info */ migration?: Maybe; - name: Scalars['String']; + name: Scalars['String']['output']; /** @deprecated Use role constants from the @speckle/shared npm package instead */ roles: Array; scopes: Array; serverRoles: Array; - termsOfService?: Maybe; - version?: Maybe; + termsOfService?: Maybe; + version?: Maybe; }; export type ServerInfoUpdateInput = { - adminContact?: InputMaybe; - company?: InputMaybe; - description?: InputMaybe; - guestModeEnabled?: InputMaybe; - inviteOnly?: InputMaybe; - name: Scalars['String']; - termsOfService?: InputMaybe; + adminContact?: InputMaybe; + company?: InputMaybe; + description?: InputMaybe; + guestModeEnabled?: InputMaybe; + inviteOnly?: InputMaybe; + name: Scalars['String']['input']; + termsOfService?: InputMaybe; }; export type ServerInvite = { __typename?: 'ServerInvite'; - email: Scalars['String']; - id: Scalars['String']; + email: Scalars['String']['output']; + id: Scalars['String']['output']; invitedBy: LimitedUser; }; export type ServerInviteCreateInput = { - email: Scalars['String']; - message?: InputMaybe; + email: Scalars['String']['input']; + message?: InputMaybe; /** Can only be specified if guest mode is on or if the user is an admin */ - serverRole?: InputMaybe; + serverRole?: InputMaybe; }; export type ServerMigration = { __typename?: 'ServerMigration'; - movedFrom?: Maybe; - movedTo?: Maybe; + movedFrom?: Maybe; + movedTo?: Maybe; }; export enum ServerRole { @@ -2158,31 +2501,31 @@ export enum ServerRole { export type ServerRoleItem = { __typename?: 'ServerRoleItem'; - id: Scalars['String']; - title: Scalars['String']; + id: Scalars['String']['output']; + title: Scalars['String']['output']; }; export type ServerStatistics = { __typename?: 'ServerStatistics'; - totalPendingInvites: Scalars['Int']; - totalProjectCount: Scalars['Int']; - totalUserCount: Scalars['Int']; + totalPendingInvites: Scalars['Int']['output']; + totalProjectCount: Scalars['Int']['output']; + totalUserCount: Scalars['Int']['output']; }; export type ServerStats = { __typename?: 'ServerStats'; /** An array of objects currently structured as { created_month: Date, count: int }. */ - commitHistory?: Maybe>>; + commitHistory?: Maybe>>; /** An array of objects currently structured as { created_month: Date, count: int }. */ - objectHistory?: Maybe>>; + objectHistory?: Maybe>>; /** An array of objects currently structured as { created_month: Date, count: int }. */ - streamHistory?: Maybe>>; - totalCommitCount: Scalars['Int']; - totalObjectCount: Scalars['Int']; - totalStreamCount: Scalars['Int']; - totalUserCount: Scalars['Int']; + streamHistory?: Maybe>>; + totalCommitCount: Scalars['Int']['output']; + totalObjectCount: Scalars['Int']['output']; + totalStreamCount: Scalars['Int']['output']; + totalUserCount: Scalars['Int']['output']; /** An array of objects currently structured as { created_month: Date, count: int }. */ - userHistory?: Maybe>>; + userHistory?: Maybe>>; }; export type SmartTextEditorValue = { @@ -2193,11 +2536,11 @@ export type SmartTextEditorValue = { * The actual (ProseMirror) document representing the text. Can be empty, * if there are attachments. */ - doc?: Maybe; + doc?: Maybe; /** The type of editor value (comment, blog post etc.) */ - type: Scalars['String']; + type: Scalars['String']['output']; /** The version of the schema */ - version: Scalars['String']; + version: Scalars['String']['output']; }; export enum SortDirection { @@ -2209,7 +2552,7 @@ export type Stream = { __typename?: 'Stream'; /** All the recent activity on this stream in chronological order */ activity?: Maybe; - allowPublicComments: Scalars['Boolean']; + allowPublicComments: Scalars['Boolean']['output']; blob?: Maybe; /** Get the metadata collection of blobs stored for this stream. */ blobs?: Maybe; @@ -2226,154 +2569,154 @@ export type Stream = { * } * ``` */ - commentCount: Scalars['Int']; + commentCount: Scalars['Int']['output']; commit?: Maybe; commits?: Maybe; - createdAt: Scalars['DateTime']; - description?: Maybe; + createdAt: Scalars['DateTime']['output']; + 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']; + favoritedDate?: Maybe; + favoritesCount: Scalars['Int']['output']; /** Returns a specific file upload that belongs to this stream. */ fileUpload?: Maybe; /** Returns a list of all the file uploads for this stream. */ fileUploads: Array; - id: Scalars['String']; + id: Scalars['String']['output']; /** * Whether the stream (if public) can be found on public stream exploration pages * and searches */ - isDiscoverable: Scalars['Boolean']; + isDiscoverable: Scalars['Boolean']['output']; /** Whether the stream can be viewed by non-contributors */ - isPublic: Scalars['Boolean']; - name: Scalars['String']; + isPublic: Scalars['Boolean']['output']; + name: Scalars['String']['output']; object?: Maybe; /** Pending stream access requests */ pendingAccessRequests?: 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']; + role?: Maybe; + size?: Maybe; + updatedAt: Scalars['DateTime']['output']; webhooks: WebhookCollection; }; export type StreamActivityArgs = { - actionType?: InputMaybe; - after?: InputMaybe; - before?: InputMaybe; - cursor?: InputMaybe; - limit?: Scalars['Int']; + actionType?: InputMaybe; + after?: InputMaybe; + before?: InputMaybe; + cursor?: InputMaybe; + limit?: Scalars['Int']['input']; }; export type StreamBlobArgs = { - id: Scalars['String']; + id: Scalars['String']['input']; }; export type StreamBlobsArgs = { - cursor?: InputMaybe; - limit?: InputMaybe; - query?: InputMaybe; + cursor?: InputMaybe; + limit?: InputMaybe; + query?: InputMaybe; }; export type StreamBranchArgs = { - name?: InputMaybe; + name?: InputMaybe; }; export type StreamBranchesArgs = { - cursor?: InputMaybe; - limit?: Scalars['Int']; + cursor?: InputMaybe; + limit?: Scalars['Int']['input']; }; export type StreamCommitArgs = { - id?: InputMaybe; + id?: InputMaybe; }; export type StreamCommitsArgs = { - cursor?: InputMaybe; - limit?: Scalars['Int']; + cursor?: InputMaybe; + limit?: Scalars['Int']['input']; }; export type StreamFileUploadArgs = { - id: Scalars['String']; + id: Scalars['String']['input']; }; export type StreamObjectArgs = { - id: Scalars['String']; + id: Scalars['String']['input']; }; export type StreamWebhooksArgs = { - id?: InputMaybe; + id?: InputMaybe; }; /** Created when a user requests to become a contributor on a stream */ export type StreamAccessRequest = { __typename?: 'StreamAccessRequest'; - createdAt: Scalars['DateTime']; - id: Scalars['ID']; + createdAt: Scalars['DateTime']['output']; + id: Scalars['ID']['output']; requester: LimitedUser; - requesterId: Scalars['String']; + requesterId: Scalars['String']['output']; /** Can only be selected if authed user has proper access */ stream: Stream; - streamId: Scalars['String']; + streamId: Scalars['String']['output']; }; export type StreamCollaborator = { __typename?: 'StreamCollaborator'; - avatar?: Maybe; - company?: Maybe; - id: Scalars['String']; - name: Scalars['String']; - role: Scalars['String']; - serverRole: Scalars['String']; + avatar?: Maybe; + company?: Maybe; + id: Scalars['String']['output']; + name: Scalars['String']['output']; + role: Scalars['String']['output']; + serverRole: Scalars['String']['output']; }; export type StreamCollection = { __typename?: 'StreamCollection'; - cursor?: Maybe; + cursor?: Maybe; items?: Maybe>; - totalCount: Scalars['Int']; + totalCount: Scalars['Int']['output']; }; export type StreamCreateInput = { - description?: InputMaybe; + description?: InputMaybe; /** * Whether the stream (if public) can be found on public stream exploration pages * and searches */ - isDiscoverable?: InputMaybe; + isDiscoverable?: InputMaybe; /** Whether the stream can be viewed by non-contributors */ - isPublic?: InputMaybe; - name?: InputMaybe; + isPublic?: InputMaybe; + name?: InputMaybe; /** Optionally specify user IDs of users that you want to invite to be contributors to this stream */ - withContributors?: InputMaybe>; + withContributors?: InputMaybe>; }; export type StreamInviteCreateInput = { - email?: InputMaybe; - message?: InputMaybe; + email?: InputMaybe; + message?: InputMaybe; /** Defaults to the contributor role, if not specified */ - role?: InputMaybe; + role?: InputMaybe; /** Can only be specified if guest mode is on or if the user is an admin */ - serverRole?: InputMaybe; - streamId: Scalars['String']; - userId?: InputMaybe; + serverRole?: InputMaybe; + streamId: Scalars['String']['input']; + userId?: InputMaybe; }; export type StreamRevokePermissionInput = { - streamId: Scalars['String']; - userId: Scalars['String']; + streamId: Scalars['String']['input']; + userId: Scalars['String']['input']; }; export enum StreamRole { @@ -2383,35 +2726,35 @@ export enum StreamRole { } export type StreamUpdateInput = { - allowPublicComments?: InputMaybe; - description?: InputMaybe; - id: Scalars['String']; + allowPublicComments?: InputMaybe; + description?: InputMaybe; + id: Scalars['String']['input']; /** * Whether the stream (if public) can be found on public stream exploration pages * and searches */ - isDiscoverable?: InputMaybe; + isDiscoverable?: InputMaybe; /** Whether the stream can be viewed by non-contributors */ - isPublic?: InputMaybe; - name?: InputMaybe; + isPublic?: InputMaybe; + name?: InputMaybe; }; export type StreamUpdatePermissionInput = { - role: Scalars['String']; - streamId: Scalars['String']; - userId: Scalars['String']; + role: Scalars['String']['input']; + streamId: Scalars['String']['input']; + userId: Scalars['String']['input']; }; export type Subscription = { __typename?: 'Subscription'; /** It's lonely in the void. */ - _?: Maybe; + _?: Maybe; /** Subscribe to branch created event */ - branchCreated?: Maybe; + branchCreated?: Maybe; /** Subscribe to branch deleted event */ - branchDeleted?: Maybe; + branchDeleted?: Maybe; /** Subscribe to branch updated event. */ - branchUpdated?: Maybe; + branchUpdated?: Maybe; /** * Subscribe to new comment events. There's two ways to use this subscription: * - for a whole stream: do not pass in any resourceIds; this sub will get called whenever a comment (not reply) is added to any of the stream's resources. @@ -2427,12 +2770,13 @@ export type Subscription = { */ commentThreadActivity: CommentThreadActivityMessage; /** Subscribe to commit created event */ - commitCreated?: Maybe; + commitCreated?: Maybe; /** Subscribe to commit deleted event */ - commitDeleted?: Maybe; + commitDeleted?: Maybe; /** Subscribe to commit updated event. */ - commitUpdated?: Maybe; - projectAutomationsStatusUpdated: ProjectAutomationsStatusUpdatedMessage; + commitUpdated?: Maybe; + /** Subscribe to updates to automations in the project */ + projectAutomationsUpdated: ProjectAutomationsUpdatedMessage; /** * Subscribe to updates to resource comments/threads. Optionally specify resource ID string to only receive * updates regarding comments for those resources. @@ -2446,84 +2790,88 @@ export type Subscription = { projectPendingModelsUpdated: ProjectPendingModelsUpdatedMessage; /** Subscribe to changes to a project's pending versions */ projectPendingVersionsUpdated: ProjectPendingVersionsUpdatedMessage; + /** Subscribe to updates to any triggered automations statuses in the project */ + projectTriggeredAutomationsStatusUpdated: ProjectTriggeredAutomationsStatusUpdatedMessage; /** Track updates to a specific project */ projectUpdated: ProjectUpdatedMessage; + projectVersionGendoAIRenderCreated: GendoAiRender; + projectVersionGendoAIRenderUpdated: GendoAiRender; /** Subscribe to when a project's versions get their preview image fully generated. */ projectVersionsPreviewGenerated: ProjectVersionsPreviewGeneratedMessage; /** Subscribe to changes to a project's versions. */ projectVersionsUpdated: ProjectVersionsUpdatedMessage; /** Subscribes to stream deleted event. Use this in clients/components that pertain only to this stream. */ - streamDeleted?: Maybe; + streamDeleted?: Maybe; /** Subscribes to stream updated event. Use this in clients/components that pertain only to this stream. */ - streamUpdated?: Maybe; + streamUpdated?: Maybe; /** Track newly added or deleted projects owned by the active user */ userProjectsUpdated: UserProjectsUpdatedMessage; /** * 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; + 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; + userStreamRemoved?: Maybe; /** * Broadcasts "real-time" location data for viewer users. * @deprecated Use viewerUserActivityBroadcasted */ - userViewerActivity?: Maybe; + userViewerActivity?: Maybe; /** Track user activities in the viewer relating to the specified resources */ viewerUserActivityBroadcasted: ViewerUserActivityMessage; }; export type SubscriptionBranchCreatedArgs = { - streamId: Scalars['String']; + streamId: Scalars['String']['input']; }; export type SubscriptionBranchDeletedArgs = { - streamId: Scalars['String']; + streamId: Scalars['String']['input']; }; export type SubscriptionBranchUpdatedArgs = { - branchId?: InputMaybe; - streamId: Scalars['String']; + branchId?: InputMaybe; + streamId: Scalars['String']['input']; }; export type SubscriptionCommentActivityArgs = { - resourceIds?: InputMaybe>>; - streamId: Scalars['String']; + resourceIds?: InputMaybe>>; + streamId: Scalars['String']['input']; }; export type SubscriptionCommentThreadActivityArgs = { - commentId: Scalars['String']; - streamId: Scalars['String']; + commentId: Scalars['String']['input']; + streamId: Scalars['String']['input']; }; export type SubscriptionCommitCreatedArgs = { - streamId: Scalars['String']; + streamId: Scalars['String']['input']; }; export type SubscriptionCommitDeletedArgs = { - streamId: Scalars['String']; + streamId: Scalars['String']['input']; }; export type SubscriptionCommitUpdatedArgs = { - commitId?: InputMaybe; - streamId: Scalars['String']; + commitId?: InputMaybe; + streamId: Scalars['String']['input']; }; -export type SubscriptionProjectAutomationsStatusUpdatedArgs = { - projectId: Scalars['String']; +export type SubscriptionProjectAutomationsUpdatedArgs = { + projectId: Scalars['String']['input']; }; @@ -2533,70 +2881,106 @@ export type SubscriptionProjectCommentsUpdatedArgs = { export type SubscriptionProjectFileImportUpdatedArgs = { - id: Scalars['String']; + id: Scalars['String']['input']; }; export type SubscriptionProjectModelsUpdatedArgs = { - id: Scalars['String']; - modelIds?: InputMaybe>; + id: Scalars['String']['input']; + modelIds?: InputMaybe>; }; export type SubscriptionProjectPendingModelsUpdatedArgs = { - id: Scalars['String']; + id: Scalars['String']['input']; }; export type SubscriptionProjectPendingVersionsUpdatedArgs = { - id: Scalars['String']; + id: Scalars['String']['input']; +}; + + +export type SubscriptionProjectTriggeredAutomationsStatusUpdatedArgs = { + projectId: Scalars['String']['input']; }; export type SubscriptionProjectUpdatedArgs = { - id: Scalars['String']; + id: Scalars['String']['input']; +}; + + +export type SubscriptionProjectVersionGendoAiRenderCreatedArgs = { + id: Scalars['String']['input']; + versionId: Scalars['String']['input']; +}; + + +export type SubscriptionProjectVersionGendoAiRenderUpdatedArgs = { + id: Scalars['String']['input']; + versionId: Scalars['String']['input']; }; export type SubscriptionProjectVersionsPreviewGeneratedArgs = { - id: Scalars['String']; + id: Scalars['String']['input']; }; export type SubscriptionProjectVersionsUpdatedArgs = { - id: Scalars['String']; + id: Scalars['String']['input']; }; export type SubscriptionStreamDeletedArgs = { - streamId?: InputMaybe; + streamId?: InputMaybe; }; export type SubscriptionStreamUpdatedArgs = { - streamId?: InputMaybe; + streamId?: InputMaybe; }; export type SubscriptionUserViewerActivityArgs = { - resourceId: Scalars['String']; - streamId: Scalars['String']; + resourceId: Scalars['String']['input']; + streamId: Scalars['String']['input']; }; export type SubscriptionViewerUserActivityBroadcastedArgs = { - sessionId?: InputMaybe; + sessionId?: InputMaybe; target: ViewerUpdateTrackingTarget; }; +export type TestAutomationRun = { + __typename?: 'TestAutomationRun'; + automationRunId: Scalars['String']['output']; + functionRunId: Scalars['String']['output']; + triggers: Array; +}; + +export type TestAutomationRunTrigger = { + __typename?: 'TestAutomationRunTrigger'; + payload: TestAutomationRunTriggerPayload; + triggerType: Scalars['String']['output']; +}; + +export type TestAutomationRunTriggerPayload = { + __typename?: 'TestAutomationRunTriggerPayload'; + modelId: Scalars['String']['output']; + versionId: Scalars['String']['output']; +}; + export type TokenResourceIdentifier = { __typename?: 'TokenResourceIdentifier'; - id: Scalars['String']; + id: Scalars['String']['output']; type: TokenResourceIdentifierType; }; export type TokenResourceIdentifierInput = { - id: Scalars['String']; + id: Scalars['String']['input']; type: TokenResourceIdentifierType; }; @@ -2604,17 +2988,36 @@ export enum TokenResourceIdentifierType { Project = 'project' } +export type TriggeredAutomationsStatus = { + __typename?: 'TriggeredAutomationsStatus'; + automationRuns: Array; + id: Scalars['ID']['output']; + status: AutomateRunStatus; + statusMessage?: Maybe; +}; + +/** Any null values will be ignored */ +export type UpdateAutomateFunctionInput = { + description?: InputMaybe; + id: Scalars['ID']['input']; + logo?: InputMaybe; + name?: InputMaybe; + /** SourceAppNames values from @speckle/shared */ + supportedSourceApps?: InputMaybe>; + tags?: InputMaybe>; +}; + export type UpdateModelInput = { - description?: InputMaybe; - id: Scalars['ID']; - name?: InputMaybe; - projectId: Scalars['ID']; + description?: InputMaybe; + id: Scalars['ID']['input']; + name?: InputMaybe; + projectId: Scalars['ID']['input']; }; /** Only non-null values will be updated */ export type UpdateVersionInput = { - message?: InputMaybe; - versionId: Scalars['String']; + message?: InputMaybe; + versionId: Scalars['String']['input']; }; /** @@ -2629,36 +3032,37 @@ export type User = { apiTokens: Array; /** Returns the apps you have authorized. */ authorizedApps?: Maybe>; - avatar?: Maybe; - bio?: Maybe; + automateInfo: UserAutomateInfo; + avatar?: Maybe; + bio?: Maybe; /** * Get commits authored by the user. If requested for another user, then only commits * from public streams will be returned. */ commits?: Maybe; - company?: Maybe; + company?: Maybe; /** Returns the apps you have created. */ createdApps?: Maybe>; - createdAt?: Maybe; - email?: Maybe; + createdAt?: Maybe; + email?: Maybe; /** * All the streams that a active user has favorited. * Note: You can't use this to retrieve another user's favorite streams. */ favoriteStreams: StreamCollection; /** Whether the user has a pending/active email verification token */ - hasPendingVerification?: Maybe; - id: Scalars['ID']; + hasPendingVerification?: Maybe; + id: Scalars['ID']['output']; /** Whether post-sign up onboarding has been finished or skipped entirely */ - isOnboardingFinished?: Maybe; - name: Scalars['String']; - notificationPreferences: Scalars['JSONObject']; - profiles?: Maybe; + isOnboardingFinished?: Maybe; + name: Scalars['String']['output']; + notificationPreferences: Scalars['JSONObject']['output']; + profiles?: Maybe; /** Get all invitations to projects that the active user has */ projectInvites: Array; /** Get projects that the user participates in */ projects: ProjectCollection; - role?: Maybe; + role?: Maybe; /** * Returns all streams that the user is a collaborator on. If requested for a user, who isn't the * authenticated user, then this will only return discoverable streams. @@ -2667,8 +3071,15 @@ export type User = { /** The user's timeline in chronological order */ timeline?: Maybe; /** Total amount of favorites attached to streams owned by the user */ - totalOwnedStreamsFavorites: Scalars['Int']; - verified?: Maybe; + totalOwnedStreamsFavorites: Scalars['Int']['output']; + verified?: Maybe; + /** + * Get (count of) user's versions. By default gets all versions of all projects the user has access to. + * Set authoredOnly=true to only retrieve versions authored by the user. + * + * Note: Only count resolution is currently implemented + */ + versions: CountOnlyCollection; }; @@ -2677,11 +3088,11 @@ export type User = { * when a user is reading/writing info about himself */ export type UserActivityArgs = { - actionType?: InputMaybe; - after?: InputMaybe; - before?: InputMaybe; - cursor?: InputMaybe; - limit?: Scalars['Int']; + actionType?: InputMaybe; + after?: InputMaybe; + before?: InputMaybe; + cursor?: InputMaybe; + limit?: Scalars['Int']['input']; }; @@ -2690,8 +3101,8 @@ export type UserActivityArgs = { * when a user is reading/writing info about himself */ export type UserCommitsArgs = { - cursor?: InputMaybe; - limit?: Scalars['Int']; + cursor?: InputMaybe; + limit?: Scalars['Int']['input']; }; @@ -2700,8 +3111,8 @@ export type UserCommitsArgs = { * when a user is reading/writing info about himself */ export type UserFavoriteStreamsArgs = { - cursor?: InputMaybe; - limit?: Scalars['Int']; + cursor?: InputMaybe; + limit?: Scalars['Int']['input']; }; @@ -2710,9 +3121,9 @@ export type UserFavoriteStreamsArgs = { * when a user is reading/writing info about himself */ export type UserProjectsArgs = { - cursor?: InputMaybe; + cursor?: InputMaybe; filter?: InputMaybe; - limit?: Scalars['Int']; + limit?: Scalars['Int']['input']; }; @@ -2721,8 +3132,8 @@ export type UserProjectsArgs = { * when a user is reading/writing info about himself */ export type UserStreamsArgs = { - cursor?: InputMaybe; - limit?: Scalars['Int']; + cursor?: InputMaybe; + limit?: Scalars['Int']['input']; }; @@ -2731,27 +3142,43 @@ export type UserStreamsArgs = { * when a user is reading/writing info about himself */ export type UserTimelineArgs = { - after?: InputMaybe; - before?: InputMaybe; - cursor?: InputMaybe; - limit?: Scalars['Int']; + after?: InputMaybe; + before?: InputMaybe; + cursor?: InputMaybe; + limit?: Scalars['Int']['input']; +}; + + +/** + * 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 UserVersionsArgs = { + authoredOnly?: Scalars['Boolean']['input']; + limit?: Scalars['Int']['input']; +}; + +export type UserAutomateInfo = { + __typename?: 'UserAutomateInfo'; + availableGithubOrgs: Array; + hasAutomateGithubApp: Scalars['Boolean']['output']; }; export type UserDeleteInput = { - email: Scalars['String']; + email: Scalars['String']['input']; }; export type UserProjectsFilter = { /** Only include projects where user has the specified roles */ - onlyWithRoles?: InputMaybe>; + onlyWithRoles?: InputMaybe>; /** Filter out projects by name */ - search?: InputMaybe; + search?: InputMaybe; }; export type UserProjectsUpdatedMessage = { __typename?: 'UserProjectsUpdatedMessage'; /** Project ID */ - id: Scalars['String']; + id: Scalars['String']['output']; /** Project entity, null if project was deleted */ project?: Maybe; /** Message type */ @@ -2764,57 +3191,78 @@ export enum UserProjectsUpdatedMessageType { } export type UserRoleInput = { - id: Scalars['String']; - role: Scalars['String']; + id: Scalars['String']['input']; + role: Scalars['String']['input']; }; export type UserSearchResultCollection = { __typename?: 'UserSearchResultCollection'; - cursor?: Maybe; + cursor?: Maybe; items: Array; }; export type UserUpdateInput = { - avatar?: InputMaybe; - bio?: InputMaybe; - company?: InputMaybe; - name?: InputMaybe; + avatar?: InputMaybe; + bio?: InputMaybe; + company?: InputMaybe; + name?: InputMaybe; }; export type Version = { __typename?: 'Version'; authorUser?: Maybe; - automationStatus?: Maybe; + automationsStatus?: Maybe; /** All comment threads in this version */ commentThreads: CommentCollection; - createdAt: Scalars['DateTime']; - id: Scalars['ID']; - message?: Maybe; + createdAt: Scalars['DateTime']['output']; + gendoAIRender: GendoAiRender; + gendoAIRenders: GendoAiRenderCollection; + id: Scalars['ID']['output']; + message?: Maybe; model: Model; - parents?: Maybe>>; - previewUrl: Scalars['String']; - referencedObject: Scalars['String']; - sourceApplication?: Maybe; - totalChildrenCount?: Maybe; + parents?: Maybe>>; + previewUrl: Scalars['String']['output']; + referencedObject: Scalars['String']['output']; + sourceApplication?: Maybe; + totalChildrenCount?: Maybe; }; export type VersionCommentThreadsArgs = { - cursor?: InputMaybe; - limit?: Scalars['Int']; + cursor?: InputMaybe; + limit?: Scalars['Int']['input']; +}; + + +export type VersionGendoAiRenderArgs = { + id: Scalars['String']['input']; }; export type VersionCollection = { __typename?: 'VersionCollection'; - cursor?: Maybe; + cursor?: Maybe; items: Array; - totalCount: Scalars['Int']; + totalCount: Scalars['Int']['output']; +}; + +export type VersionCreatedTrigger = { + __typename?: 'VersionCreatedTrigger'; + model?: Maybe; + type: AutomateRunTriggerType; + version?: Maybe; +}; + +export type VersionCreatedTriggerDefinition = { + __typename?: 'VersionCreatedTriggerDefinition'; + model?: Maybe; + type: AutomateRunTriggerType; }; export type VersionMutations = { __typename?: 'VersionMutations'; - delete: Scalars['Boolean']; + delete: Scalars['Boolean']['output']; moveToModel: Model; + requestGendoAIRender: Scalars['Boolean']['output']; update: Version; }; @@ -2829,6 +3277,11 @@ export type VersionMutationsMoveToModelArgs = { }; +export type VersionMutationsRequestGendoAiRenderArgs = { + input: GendoAiRenderInput; +}; + + export type VersionMutationsUpdateArgs = { input: UpdateVersionInput; }; @@ -2836,7 +3289,7 @@ export type VersionMutationsUpdateArgs = { export type ViewerResourceGroup = { __typename?: 'ViewerResourceGroup'; /** Resource identifier used to refer to a collection of resource items */ - identifier: Scalars['String']; + identifier: Scalars['String']['output']; /** Viewer resources that the identifier refers to */ items: Array; }; @@ -2844,10 +3297,10 @@ export type ViewerResourceGroup = { export type ViewerResourceItem = { __typename?: 'ViewerResourceItem'; /** Null if resource represents an object */ - modelId?: Maybe; - objectId: Scalars['String']; + modelId?: Maybe; + objectId: Scalars['String']['output']; /** Null if resource represents an object */ - versionId?: Maybe; + versionId?: Maybe; }; export type ViewerUpdateTrackingTarget = { @@ -2856,33 +3309,33 @@ export type ViewerUpdateTrackingTarget = { * and all updates to of all versions of any of the referenced models will be returned. If `loadedVersionsOnly` is * enabled, then only updates of loaded/referenced versions in resourceIdString will be returned. */ - loadedVersionsOnly?: InputMaybe; - projectId: Scalars['String']; + loadedVersionsOnly?: InputMaybe; + projectId: Scalars['String']['input']; /** * Only request updates to the resources identified by this * comma-delimited resouce string (same format that's used in the viewer URL) */ - resourceIdString: Scalars['String']; + resourceIdString: Scalars['String']['input']; }; export type ViewerUserActivityMessage = { __typename?: 'ViewerUserActivityMessage'; - sessionId: Scalars['String']; + sessionId: Scalars['String']['output']; /** SerializedViewerState, only null if DISCONNECTED */ - state?: Maybe; + state?: Maybe; status: ViewerUserActivityStatus; user?: Maybe; - userId?: Maybe; - userName: Scalars['String']; + userId?: Maybe; + userName: Scalars['String']['output']; }; export type ViewerUserActivityMessageInput = { - sessionId: Scalars['String']; + sessionId: Scalars['String']['input']; /** SerializedViewerState, only null if DISCONNECTED */ - state?: InputMaybe; + state?: InputMaybe; status: ViewerUserActivityStatus; - userId?: InputMaybe; - userName: Scalars['String']; + userId?: InputMaybe; + userName: Scalars['String']['input']; }; export enum ViewerUserActivityStatus { @@ -2892,86 +3345,86 @@ export enum ViewerUserActivityStatus { export type Webhook = { __typename?: 'Webhook'; - description?: Maybe; - enabled?: Maybe; - hasSecret: Scalars['Boolean']; + description?: Maybe; + enabled?: Maybe; + hasSecret: Scalars['Boolean']['output']; history?: Maybe; - id: Scalars['String']; - projectId: Scalars['String']; - streamId: Scalars['String']; - triggers: Array; - url: Scalars['String']; + id: Scalars['String']['output']; + projectId: Scalars['String']['output']; + streamId: Scalars['String']['output']; + triggers: Array; + url: Scalars['String']['output']; }; export type WebhookHistoryArgs = { - limit?: Scalars['Int']; + limit?: Scalars['Int']['input']; }; export type WebhookCollection = { __typename?: 'WebhookCollection'; items: Array; - totalCount: Scalars['Int']; + totalCount: Scalars['Int']['output']; }; export type WebhookCreateInput = { - description?: InputMaybe; - enabled?: InputMaybe; - secret?: InputMaybe; - streamId: Scalars['String']; - triggers: Array>; - url: Scalars['String']; + description?: InputMaybe; + enabled?: InputMaybe; + secret?: InputMaybe; + streamId: Scalars['String']['input']; + triggers: Array>; + url: Scalars['String']['input']; }; export type WebhookDeleteInput = { - id: Scalars['String']; - streamId: Scalars['String']; + id: Scalars['String']['input']; + streamId: Scalars['String']['input']; }; 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']; + id: Scalars['String']['output']; + lastUpdate: Scalars['DateTime']['output']; + payload: Scalars['String']['output']; + retryCount: Scalars['Int']['output']; + status: Scalars['Int']['output']; + statusInfo: Scalars['String']['output']; + webhookId: Scalars['String']['output']; }; export type WebhookEventCollection = { __typename?: 'WebhookEventCollection'; items?: Maybe>>; - totalCount?: Maybe; + totalCount?: Maybe; }; export type WebhookUpdateInput = { - description?: InputMaybe; - enabled?: InputMaybe; - id: Scalars['String']; - secret?: InputMaybe; - streamId: Scalars['String']; - triggers?: InputMaybe>>; - url?: InputMaybe; + description?: InputMaybe; + enabled?: InputMaybe; + id: Scalars['String']['input']; + secret?: InputMaybe; + streamId: Scalars['String']['input']; + triggers?: InputMaybe>>; + url?: InputMaybe; }; export type GetStreamAccessRequestQueryVariables = Exact<{ - streamId: Scalars['String']; + streamId: Scalars['String']['input']; }>; export type GetStreamAccessRequestQuery = { __typename?: 'Query', streamAccessRequest?: { __typename?: 'StreamAccessRequest', id: string, streamId: string, createdAt: string } | null }; export type CreateStreamAccessRequestMutationVariables = Exact<{ - streamId: Scalars['String']; + streamId: Scalars['String']['input']; }>; export type CreateStreamAccessRequestMutation = { __typename?: 'Mutation', streamAccessRequestCreate: { __typename?: 'StreamAccessRequest', id: string, streamId: string, createdAt: string } }; export type UseStreamAccessRequestMutationVariables = Exact<{ - requestId: Scalars['String']; - accept: Scalars['Boolean']; + requestId: Scalars['String']['input']; + accept: Scalars['Boolean']['input']; role?: InputMaybe; }>; @@ -2979,24 +3432,24 @@ export type UseStreamAccessRequestMutationVariables = Exact<{ export type UseStreamAccessRequestMutation = { __typename?: 'Mutation', streamAccessRequestUse: boolean }; export type StreamWithBranchQueryVariables = Exact<{ - streamId: Scalars['String']; - branchName: Scalars['String']; - cursor?: InputMaybe; + streamId: Scalars['String']['input']; + branchName: Scalars['String']['input']; + cursor?: InputMaybe; }>; export type StreamWithBranchQuery = { __typename?: 'Query', stream?: { __typename?: 'Stream', id: string, name: string, role?: string | null, branch?: { __typename?: 'Branch', id: string, name: string, description?: string | null, commits?: { __typename?: 'CommitCollection', totalCount: number, cursor?: string | null, items?: Array<{ __typename?: 'Commit', id: string, authorName?: string | null, authorId?: string | null, authorAvatar?: string | null, sourceApplication?: string | null, message?: string | null, referencedObject: string, createdAt?: string | null, commentCount: number }> | null } | null } | null } | null }; export type BranchCreatedSubscriptionVariables = Exact<{ - streamId: Scalars['String']; + streamId: Scalars['String']['input']; }>; export type BranchCreatedSubscription = { __typename?: 'Subscription', branchCreated?: Record | null }; export type StreamAllBranchesQueryVariables = Exact<{ - streamId: Scalars['String']; - cursor?: InputMaybe; + streamId: Scalars['String']['input']; + cursor?: InputMaybe; }>; @@ -3005,15 +3458,15 @@ export type StreamAllBranchesQuery = { __typename?: 'Query', stream?: { __typena export type CommentFullInfoFragment = { __typename?: 'Comment', id: string, archived: boolean, authorId: string, data?: Record | null, screenshot?: string | null, createdAt: string, updatedAt: string, viewedAt?: string | null, text: { __typename?: 'SmartTextEditorValue', doc?: Record | null, attachments?: Array<{ __typename?: 'BlobMetadata', id: string, fileName: string, streamId: string, fileType: string, fileSize?: number | null }> | null }, replies: { __typename?: 'CommentCollection', totalCount: number }, resources: Array<{ __typename?: 'ResourceIdentifier', resourceId: string, resourceType: ResourceType }> }; export type StreamCommitQueryQueryVariables = Exact<{ - streamId: Scalars['String']; - id: Scalars['String']; + streamId: Scalars['String']['input']; + id: Scalars['String']['input']; }>; export type StreamCommitQueryQuery = { __typename?: 'Query', stream?: { __typename?: 'Stream', id: string, name: string, role?: string | null, commit?: { __typename?: 'Commit', id: string, message?: string | null, referencedObject: string, authorName?: string | null, authorId?: string | null, authorAvatar?: string | null, createdAt?: string | null, branchName?: string | null, sourceApplication?: string | null } | null } | null }; export type StreamBranchesSelectorQueryVariables = Exact<{ - streamId: Scalars['String']; + streamId: Scalars['String']['input']; }>; @@ -3052,8 +3505,8 @@ export type StreamCollaboratorFieldsFragment = { __typename?: 'StreamCollaborato export type UsersOwnInviteFieldsFragment = { __typename?: 'PendingStreamCollaborator', id: string, inviteId: string, streamId: string, streamName: string, token?: string | null, invitedBy: { __typename?: 'LimitedUser', id: string, name: string, bio?: string | null, company?: string | null, avatar?: string | null, verified?: boolean | null } }; export type StreamInviteQueryVariables = Exact<{ - streamId: Scalars['String']; - token?: InputMaybe; + streamId: Scalars['String']['input']; + token?: InputMaybe; }>; @@ -3065,31 +3518,31 @@ export type UserStreamInvitesQueryVariables = Exact<{ [key: string]: never; }>; export type UserStreamInvitesQuery = { __typename?: 'Query', streamInvites: Array<{ __typename?: 'PendingStreamCollaborator', id: string, inviteId: string, streamId: string, streamName: string, token?: string | null, invitedBy: { __typename?: 'LimitedUser', id: string, name: string, bio?: string | null, company?: string | null, avatar?: string | null, verified?: boolean | null } }> }; export type UseStreamInviteMutationVariables = Exact<{ - accept: Scalars['Boolean']; - streamId: Scalars['String']; - token: Scalars['String']; + accept: Scalars['Boolean']['input']; + streamId: Scalars['String']['input']; + token: Scalars['String']['input']; }>; export type UseStreamInviteMutation = { __typename?: 'Mutation', streamInviteUse: boolean }; export type CancelStreamInviteMutationVariables = Exact<{ - streamId: Scalars['String']; - inviteId: Scalars['String']; + streamId: Scalars['String']['input']; + inviteId: Scalars['String']['input']; }>; export type CancelStreamInviteMutation = { __typename?: 'Mutation', streamInviteCancel: boolean }; export type DeleteInviteMutationVariables = Exact<{ - inviteId: Scalars['String']; + inviteId: Scalars['String']['input']; }>; export type DeleteInviteMutation = { __typename?: 'Mutation', inviteDelete: boolean }; export type ResendInviteMutationVariables = Exact<{ - inviteId: Scalars['String']; + inviteId: Scalars['String']['input']; }>; @@ -3110,16 +3563,16 @@ export type BatchInviteToStreamsMutationVariables = Exact<{ export type BatchInviteToStreamsMutation = { __typename?: 'Mutation', streamInviteBatchCreate: boolean }; export type StreamObjectQueryVariables = Exact<{ - streamId: Scalars['String']; - id: Scalars['String']; + streamId: Scalars['String']['input']; + id: Scalars['String']['input']; }>; export type StreamObjectQuery = { __typename?: 'Query', stream?: { __typename?: 'Stream', id: string, object?: { __typename?: 'Object', totalChildrenCount?: number | null, id: string, speckleType?: string | null, data?: Record | null } | null } | null }; export type StreamObjectNoDataQueryVariables = Exact<{ - streamId: Scalars['String']; - id: Scalars['String']; + streamId: Scalars['String']['input']; + id: Scalars['String']['input']; }>; @@ -3154,14 +3607,14 @@ export type AvailableServerRolesQueryVariables = Exact<{ [key: string]: never; } export type AvailableServerRolesQuery = { __typename?: 'Query', serverInfo: { __typename?: 'ServerInfo', guestModeEnabled: boolean, serverRoles: Array<{ __typename?: 'ServerRoleItem', id: string, title: string }> } }; export type StreamCommitsQueryVariables = Exact<{ - id: Scalars['String']; + id: Scalars['String']['input']; }>; export type StreamCommitsQuery = { __typename?: 'Query', stream?: { __typename?: 'Stream', id: string, role?: string | null, commits?: { __typename?: 'CommitCollection', totalCount: number, items?: Array<{ __typename?: 'Commit', id: string, authorId?: string | null, authorName?: string | null, authorAvatar?: string | null, createdAt?: string | null, message?: string | null, referencedObject: string, branchName?: string | null, sourceApplication?: string | null }> | null } | null } | null }; export type StreamsQueryVariables = Exact<{ - cursor?: InputMaybe; + cursor?: InputMaybe; }>; @@ -3170,29 +3623,29 @@ export type StreamsQuery = { __typename?: 'Query', streams?: { __typename?: 'Str export type CommonStreamFieldsFragment = { __typename?: 'Stream', id: string, name: string, description?: string | null, role?: string | null, isPublic: boolean, createdAt: string, updatedAt: string, commentCount: number, favoritedDate?: string | null, favoritesCount: number, collaborators: Array<{ __typename?: 'StreamCollaborator', id: string, name: string, role: string, company?: string | null, avatar?: string | null, serverRole: string }>, commits?: { __typename?: 'CommitCollection', totalCount: number } | null, branches?: { __typename?: 'BranchCollection', totalCount: number } | null }; export type StreamQueryVariables = Exact<{ - id: Scalars['String']; + id: Scalars['String']['input']; }>; export type StreamQuery = { __typename?: 'Query', stream?: { __typename?: 'Stream', id: string, name: string, description?: string | null, role?: string | null, isPublic: boolean, createdAt: string, updatedAt: string, commentCount: number, favoritedDate?: string | null, favoritesCount: number, collaborators: Array<{ __typename?: 'StreamCollaborator', id: string, name: string, role: string, company?: string | null, avatar?: string | null, serverRole: string }>, commits?: { __typename?: 'CommitCollection', totalCount: number } | null, branches?: { __typename?: 'BranchCollection', totalCount: number } | null } | null }; export type StreamWithCollaboratorsQueryVariables = Exact<{ - id: Scalars['String']; + id: Scalars['String']['input']; }>; export type StreamWithCollaboratorsQuery = { __typename?: 'Query', stream?: { __typename?: 'Stream', id: string, name: string, isPublic: boolean, role?: string | null, collaborators: Array<{ __typename?: 'StreamCollaborator', id: string, name: string, role: string, company?: string | null, avatar?: string | null, serverRole: string }>, pendingCollaborators?: Array<{ __typename?: 'PendingStreamCollaborator', title: string, inviteId: string, role: string, user?: { __typename?: 'LimitedUser', id: string, name: string, bio?: string | null, company?: string | null, avatar?: string | null, verified?: boolean | null } | null }> | null, pendingAccessRequests?: Array<{ __typename?: 'StreamAccessRequest', id: string, streamId: string, createdAt: string, requester: { __typename?: 'LimitedUser', id: string, name: string, bio?: string | null, company?: string | null, avatar?: string | null, verified?: boolean | null } }> | null } | null }; export type StreamWithActivityQueryVariables = Exact<{ - id: Scalars['String']; - cursor?: InputMaybe; + id: Scalars['String']['input']; + cursor?: InputMaybe; }>; export type StreamWithActivityQuery = { __typename?: 'Query', stream?: { __typename?: 'Stream', id: string, name: string, createdAt: string, commits?: { __typename?: 'CommitCollection', totalCount: number } | null, branches?: { __typename?: 'BranchCollection', totalCount: number } | null, activity?: { __typename?: 'ActivityCollection', totalCount: number, cursor?: string | null, items?: Array<{ __typename?: 'Activity', id: string, actionType: string, info: Record, userId: string, streamId?: string | null, resourceId: string, resourceType: string, time: string, message: string } | null> | null } | null } | null }; export type LeaveStreamMutationVariables = Exact<{ - streamId: Scalars['String']; + streamId: Scalars['String']['input']; }>; @@ -3206,29 +3659,29 @@ export type UpdateStreamPermissionMutationVariables = Exact<{ export type UpdateStreamPermissionMutation = { __typename?: 'Mutation', streamUpdatePermission?: boolean | null }; export type StreamFirstCommitQueryVariables = Exact<{ - id: Scalars['String']; + id: Scalars['String']['input']; }>; export type StreamFirstCommitQuery = { __typename?: 'Query', stream?: { __typename?: 'Stream', id: string, commits?: { __typename?: 'CommitCollection', totalCount: number, items?: Array<{ __typename?: 'Commit', id: string, referencedObject: string }> | null } | null } | null }; export type StreamBranchFirstCommitQueryVariables = Exact<{ - id: Scalars['String']; - branch: Scalars['String']; + id: Scalars['String']['input']; + branch: Scalars['String']['input']; }>; export type StreamBranchFirstCommitQuery = { __typename?: 'Query', stream?: { __typename?: 'Stream', id: string, branch?: { __typename?: 'Branch', commits?: { __typename?: 'CommitCollection', totalCount: number, items?: Array<{ __typename?: 'Commit', id: string, referencedObject: string }> | null } | null } | null } | null }; export type StreamSettingsQueryVariables = Exact<{ - id: Scalars['String']; + id: Scalars['String']['input']; }>; export type StreamSettingsQuery = { __typename?: 'Query', stream?: { __typename?: 'Stream', id: string, name: string, description?: string | null, isPublic: boolean, isDiscoverable: boolean, allowPublicComments: boolean, role?: string | null } | null }; export type SearchStreamsQueryVariables = Exact<{ - query?: InputMaybe; + query?: InputMaybe; }>; @@ -3242,21 +3695,21 @@ export type UpdateStreamSettingsMutationVariables = Exact<{ export type UpdateStreamSettingsMutation = { __typename?: 'Mutation', streamUpdate: boolean }; export type DeleteStreamMutationVariables = Exact<{ - id: Scalars['String']; + id: Scalars['String']['input']; }>; export type DeleteStreamMutation = { __typename?: 'Mutation', streamDelete: boolean }; export type ShareableStreamQueryVariables = Exact<{ - id: Scalars['String']; + id: Scalars['String']['input']; }>; export type ShareableStreamQuery = { __typename?: 'Query', stream?: { __typename?: 'Stream', id: string, isPublic: boolean, role?: string | null, collaborators: Array<{ __typename?: 'StreamCollaborator', id: string, name: string, role: string, company?: string | null, avatar?: string | null, serverRole: string }> } | null }; export type StreamFileUploadsUpdatedSubscriptionVariables = Exact<{ - id: Scalars['String']; + id: Scalars['String']['input']; }>; @@ -3265,7 +3718,7 @@ export type StreamFileUploadsUpdatedSubscription = { __typename?: 'Subscription' export type CommonUserFieldsFragment = { __typename?: 'User', id: string, email?: string | null, name: string, bio?: string | null, company?: string | null, avatar?: string | null, verified?: boolean | null, hasPendingVerification?: boolean | null, profiles?: Record | null, role?: string | null, streams: { __typename?: 'StreamCollection', totalCount: number }, commits?: { __typename?: 'CommitCollection', totalCount: number, items?: Array<{ __typename?: 'Commit', id: string, createdAt?: string | null }> | null } | null }; export type UserFavoriteStreamsQueryVariables = Exact<{ - cursor?: InputMaybe; + cursor?: InputMaybe; }>; @@ -3282,10 +3735,10 @@ export type ProfileSelfQueryVariables = Exact<{ [key: string]: never; }>; export type ProfileSelfQuery = { __typename?: 'Query', activeUser?: { __typename?: 'User', totalOwnedStreamsFavorites: number, notificationPreferences: Record, id: string, email?: string | null, name: string, bio?: string | null, company?: string | null, avatar?: string | null, verified?: boolean | null, hasPendingVerification?: boolean | null, profiles?: Record | null, role?: string | null, streams: { __typename?: 'StreamCollection', totalCount: number }, commits?: { __typename?: 'CommitCollection', totalCount: number, items?: Array<{ __typename?: 'Commit', id: string, createdAt?: string | null }> | null } | null } | null }; export type UserSearchQueryVariables = Exact<{ - query: Scalars['String']; - limit: Scalars['Int']; - cursor?: InputMaybe; - archived?: InputMaybe; + query: Scalars['String']['input']; + limit: Scalars['Int']['input']; + cursor?: InputMaybe; + archived?: InputMaybe; }>; @@ -3297,23 +3750,23 @@ export type IsLoggedInQueryVariables = Exact<{ [key: string]: never; }>; export type IsLoggedInQuery = { __typename?: 'Query', activeUser?: { __typename?: 'User', id: string } | null }; export type AdminUsersListQueryVariables = Exact<{ - limit?: InputMaybe; - offset?: InputMaybe; - query?: InputMaybe; + limit?: InputMaybe; + offset?: InputMaybe; + query?: InputMaybe; }>; export type AdminUsersListQuery = { __typename?: 'Query', adminUsers?: { __typename?: 'AdminUsersListCollection', totalCount: number, items: Array<{ __typename?: 'AdminUsersListItem', id: string, registeredUser?: { __typename?: 'User', id: string, email?: string | null, name: string, bio?: string | null, company?: string | null, avatar?: string | null, verified?: boolean | null, profiles?: Record | null, role?: string | null, authorizedApps?: Array<{ __typename?: 'ServerAppListItem', name: string }> | null } | null, invitedUser?: { __typename?: 'ServerInvite', id: string, email: string, invitedBy: { __typename?: 'LimitedUser', id: string, name: string } } | null }> } | null }; export type UserTimelineQueryVariables = Exact<{ - cursor?: InputMaybe; + cursor?: InputMaybe; }>; export type UserTimelineQuery = { __typename?: 'Query', activeUser?: { __typename?: 'User', id: string, timeline?: { __typename?: 'ActivityCollection', totalCount: number, cursor?: string | null, items?: Array<{ __typename?: 'Activity', id: string, actionType: string, info: Record, userId: string, streamId?: string | null, resourceId: string, resourceType: string, time: string, message: string } | null> | null } | null } | null }; export type ValidatePasswordStrengthQueryVariables = Exact<{ - pwd: Scalars['String']; + pwd: Scalars['String']['input']; }>; @@ -3330,36 +3783,36 @@ export type RequestVerificationMutationVariables = Exact<{ [key: string]: never; export type RequestVerificationMutation = { __typename?: 'Mutation', requestVerification: boolean }; export type UpdateUserNotificationPreferencesMutationVariables = Exact<{ - preferences: Scalars['JSONObject']; + preferences: Scalars['JSONObject']['input']; }>; export type UpdateUserNotificationPreferencesMutation = { __typename?: 'Mutation', userNotificationPreferencesUpdate?: boolean | null }; export type UserByIdQueryVariables = Exact<{ - id: Scalars['String']; + id: Scalars['String']['input']; }>; export type UserByIdQuery = { __typename?: 'Query', otherUser?: { __typename?: 'LimitedUser', id: string, name: string, bio?: string | null, company?: string | null, avatar?: string | null, verified?: boolean | null } | null }; export type UserProfileQueryVariables = Exact<{ - id: Scalars['String']; + id: Scalars['String']['input']; }>; export type UserProfileQuery = { __typename?: 'Query', otherUser?: { __typename?: 'LimitedUser', id: string, name: string, bio?: string | null, company?: string | null, avatar?: string | null, verified?: boolean | null } | null }; export type WebhookQueryVariables = Exact<{ - streamId: Scalars['String']; - webhookId: Scalars['String']; + streamId: Scalars['String']['input']; + webhookId: Scalars['String']['input']; }>; export type WebhookQuery = { __typename?: 'Query', stream?: { __typename?: 'Stream', id: string, role?: string | null, webhooks: { __typename?: 'WebhookCollection', items: Array<{ __typename?: 'Webhook', id: string, streamId: string, url: string, description?: string | null, triggers: Array, enabled?: boolean | null, history?: { __typename?: 'WebhookEventCollection', items?: Array<{ __typename?: 'WebhookEvent', status: number, statusInfo: string } | null> | null } | null }> } } | null }; export type WebhooksQueryVariables = Exact<{ - streamId: Scalars['String']; + streamId: Scalars['String']['input']; }>; @@ -4224,19 +4677,19 @@ export const ActivityMainFieldsFragmentDoc = {"kind":"Document","definitions":[{ export const LimitedCommitActivityFieldsFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"LimitedCommitActivityFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Activity"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"info"}},{"kind":"Field","name":{"kind":"Name","value":"time"}},{"kind":"Field","name":{"kind":"Name","value":"userId"}},{"kind":"Field","name":{"kind":"Name","value":"message"}}]}}]} as unknown as DocumentNode; export const BasicStreamAccessRequestFieldsFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"BasicStreamAccessRequestFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"StreamAccessRequest"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"streamId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}}]}}]} as unknown as DocumentNode; export const LimitedUserFieldsFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"LimitedUserFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"LimitedUser"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"bio"}},{"kind":"Field","name":{"kind":"Name","value":"company"}},{"kind":"Field","name":{"kind":"Name","value":"avatar"}},{"kind":"Field","name":{"kind":"Name","value":"verified"}}]}}]} as unknown as DocumentNode; -export const FullStreamAccessRequestFieldsFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"FullStreamAccessRequestFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"StreamAccessRequest"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"BasicStreamAccessRequestFields"}},{"kind":"Field","name":{"kind":"Name","value":"requester"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"LimitedUserFields"}}]}}]}}]} as unknown as DocumentNode; -export const StreamPendingAccessRequestsFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"StreamPendingAccessRequests"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Stream"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"pendingAccessRequests"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"FullStreamAccessRequestFields"}}]}}]}}]} as unknown as DocumentNode; +export const FullStreamAccessRequestFieldsFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"FullStreamAccessRequestFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"StreamAccessRequest"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"BasicStreamAccessRequestFields"}},{"kind":"Field","name":{"kind":"Name","value":"requester"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"LimitedUserFields"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"BasicStreamAccessRequestFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"StreamAccessRequest"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"streamId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"LimitedUserFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"LimitedUser"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"bio"}},{"kind":"Field","name":{"kind":"Name","value":"company"}},{"kind":"Field","name":{"kind":"Name","value":"avatar"}},{"kind":"Field","name":{"kind":"Name","value":"verified"}}]}}]} as unknown as DocumentNode; +export const StreamPendingAccessRequestsFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"StreamPendingAccessRequests"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Stream"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"pendingAccessRequests"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"FullStreamAccessRequestFields"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"BasicStreamAccessRequestFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"StreamAccessRequest"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"streamId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"LimitedUserFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"LimitedUser"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"bio"}},{"kind":"Field","name":{"kind":"Name","value":"company"}},{"kind":"Field","name":{"kind":"Name","value":"avatar"}},{"kind":"Field","name":{"kind":"Name","value":"verified"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"FullStreamAccessRequestFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"StreamAccessRequest"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"BasicStreamAccessRequestFields"}},{"kind":"Field","name":{"kind":"Name","value":"requester"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"LimitedUserFields"}}]}}]}}]} as unknown as DocumentNode; export const StreamFileUploadFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"StreamFileUpload"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FileUpload"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"convertedCommitId"}},{"kind":"Field","name":{"kind":"Name","value":"userId"}},{"kind":"Field","name":{"kind":"Name","value":"convertedStatus"}},{"kind":"Field","name":{"kind":"Name","value":"convertedMessage"}},{"kind":"Field","name":{"kind":"Name","value":"fileName"}},{"kind":"Field","name":{"kind":"Name","value":"fileType"}},{"kind":"Field","name":{"kind":"Name","value":"uploadComplete"}},{"kind":"Field","name":{"kind":"Name","value":"uploadDate"}},{"kind":"Field","name":{"kind":"Name","value":"convertedLastUpdate"}}]}}]} as unknown as DocumentNode; -export const UsersOwnInviteFieldsFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"UsersOwnInviteFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PendingStreamCollaborator"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"inviteId"}},{"kind":"Field","name":{"kind":"Name","value":"streamId"}},{"kind":"Field","name":{"kind":"Name","value":"streamName"}},{"kind":"Field","name":{"kind":"Name","value":"token"}},{"kind":"Field","name":{"kind":"Name","value":"invitedBy"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"LimitedUserFields"}}]}}]}}]} as unknown as DocumentNode; +export const UsersOwnInviteFieldsFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"UsersOwnInviteFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PendingStreamCollaborator"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"inviteId"}},{"kind":"Field","name":{"kind":"Name","value":"streamId"}},{"kind":"Field","name":{"kind":"Name","value":"streamName"}},{"kind":"Field","name":{"kind":"Name","value":"token"}},{"kind":"Field","name":{"kind":"Name","value":"invitedBy"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"LimitedUserFields"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"LimitedUserFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"LimitedUser"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"bio"}},{"kind":"Field","name":{"kind":"Name","value":"company"}},{"kind":"Field","name":{"kind":"Name","value":"avatar"}},{"kind":"Field","name":{"kind":"Name","value":"verified"}}]}}]} as unknown as DocumentNode; export const ServerInfoBlobSizeFieldsFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ServerInfoBlobSizeFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ServerInfo"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"blobSizeLimitBytes"}}]}}]} as unknown as DocumentNode; export const MainServerInfoFieldsFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"MainServerInfoFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ServerInfo"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"company"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"adminContact"}},{"kind":"Field","name":{"kind":"Name","value":"canonicalUrl"}},{"kind":"Field","name":{"kind":"Name","value":"termsOfService"}},{"kind":"Field","name":{"kind":"Name","value":"inviteOnly"}},{"kind":"Field","name":{"kind":"Name","value":"version"}},{"kind":"Field","name":{"kind":"Name","value":"guestModeEnabled"}},{"kind":"Field","name":{"kind":"Name","value":"enableNewWebUiMessaging"}},{"kind":"Field","name":{"kind":"Name","value":"migration"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"movedTo"}}]}}]}}]} as unknown as DocumentNode; export const ServerInfoRolesFieldsFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ServerInfoRolesFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ServerInfo"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"serverRoles"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"title"}}]}}]}}]} as unknown as DocumentNode; export const ServerInfoScopesFieldsFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ServerInfoScopesFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ServerInfo"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"scopes"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"description"}}]}}]}}]} as unknown as DocumentNode; export const StreamCollaboratorFieldsFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"StreamCollaboratorFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"StreamCollaborator"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"role"}},{"kind":"Field","name":{"kind":"Name","value":"company"}},{"kind":"Field","name":{"kind":"Name","value":"avatar"}},{"kind":"Field","name":{"kind":"Name","value":"serverRole"}}]}}]} as unknown as DocumentNode; -export const CommonStreamFieldsFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"CommonStreamFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Stream"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"role"}},{"kind":"Field","name":{"kind":"Name","value":"isPublic"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"commentCount"}},{"kind":"Field","name":{"kind":"Name","value":"collaborators"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"StreamCollaboratorFields"}}]}},{"kind":"Field","name":{"kind":"Name","value":"commits"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"limit"},"value":{"kind":"IntValue","value":"1"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"totalCount"}}]}},{"kind":"Field","name":{"kind":"Name","value":"branches"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"totalCount"}}]}},{"kind":"Field","name":{"kind":"Name","value":"favoritedDate"}},{"kind":"Field","name":{"kind":"Name","value":"favoritesCount"}}]}}]} as unknown as DocumentNode; +export const CommonStreamFieldsFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"CommonStreamFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Stream"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"role"}},{"kind":"Field","name":{"kind":"Name","value":"isPublic"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"commentCount"}},{"kind":"Field","name":{"kind":"Name","value":"collaborators"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"StreamCollaboratorFields"}}]}},{"kind":"Field","name":{"kind":"Name","value":"commits"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"limit"},"value":{"kind":"IntValue","value":"1"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"totalCount"}}]}},{"kind":"Field","name":{"kind":"Name","value":"branches"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"totalCount"}}]}},{"kind":"Field","name":{"kind":"Name","value":"favoritedDate"}},{"kind":"Field","name":{"kind":"Name","value":"favoritesCount"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"StreamCollaboratorFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"StreamCollaborator"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"role"}},{"kind":"Field","name":{"kind":"Name","value":"company"}},{"kind":"Field","name":{"kind":"Name","value":"avatar"}},{"kind":"Field","name":{"kind":"Name","value":"serverRole"}}]}}]} as unknown as DocumentNode; export const CommonUserFieldsFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"CommonUserFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"User"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"email"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"bio"}},{"kind":"Field","name":{"kind":"Name","value":"company"}},{"kind":"Field","name":{"kind":"Name","value":"avatar"}},{"kind":"Field","name":{"kind":"Name","value":"verified"}},{"kind":"Field","name":{"kind":"Name","value":"hasPendingVerification"}},{"kind":"Field","name":{"kind":"Name","value":"profiles"}},{"kind":"Field","name":{"kind":"Name","value":"role"}},{"kind":"Field","name":{"kind":"Name","value":"streams"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"totalCount"}}]}},{"kind":"Field","name":{"kind":"Name","value":"commits"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"limit"},"value":{"kind":"IntValue","value":"1"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"totalCount"}},{"kind":"Field","name":{"kind":"Name","value":"items"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}}]}}]}}]}}]} as unknown as DocumentNode; -export const GetStreamAccessRequestDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"GetStreamAccessRequest"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"streamId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"streamAccessRequest"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"streamId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"streamId"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"BasicStreamAccessRequestFields"}}]}}]}},...BasicStreamAccessRequestFieldsFragmentDoc.definitions]} as unknown as DocumentNode; -export const CreateStreamAccessRequestDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"CreateStreamAccessRequest"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"streamId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"streamAccessRequestCreate"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"streamId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"streamId"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"BasicStreamAccessRequestFields"}}]}}]}},...BasicStreamAccessRequestFieldsFragmentDoc.definitions]} as unknown as DocumentNode; +export const GetStreamAccessRequestDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"GetStreamAccessRequest"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"streamId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"streamAccessRequest"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"streamId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"streamId"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"BasicStreamAccessRequestFields"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"BasicStreamAccessRequestFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"StreamAccessRequest"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"streamId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}}]}}]} as unknown as DocumentNode; +export const CreateStreamAccessRequestDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"CreateStreamAccessRequest"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"streamId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"streamAccessRequestCreate"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"streamId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"streamId"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"BasicStreamAccessRequestFields"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"BasicStreamAccessRequestFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"StreamAccessRequest"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"streamId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}}]}}]} as unknown as DocumentNode; export const UseStreamAccessRequestDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"UseStreamAccessRequest"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"requestId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"accept"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"Boolean"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"role"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"StreamRole"}},"defaultValue":{"kind":"EnumValue","value":"STREAM_CONTRIBUTOR"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"streamAccessRequestUse"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"requestId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"requestId"}}},{"kind":"Argument","name":{"kind":"Name","value":"accept"},"value":{"kind":"Variable","name":{"kind":"Name","value":"accept"}}},{"kind":"Argument","name":{"kind":"Name","value":"role"},"value":{"kind":"Variable","name":{"kind":"Name","value":"role"}}}]}]}}]} as unknown as DocumentNode; export const StreamWithBranchDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"StreamWithBranch"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"streamId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"branchName"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"cursor"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"stream"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"streamId"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"role"}},{"kind":"Field","name":{"kind":"Name","value":"branch"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"name"},"value":{"kind":"Variable","name":{"kind":"Name","value":"branchName"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"commits"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"cursor"},"value":{"kind":"Variable","name":{"kind":"Name","value":"cursor"}}},{"kind":"Argument","name":{"kind":"Name","value":"limit"},"value":{"kind":"IntValue","value":"4"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"totalCount"}},{"kind":"Field","name":{"kind":"Name","value":"cursor"}},{"kind":"Field","name":{"kind":"Name","value":"items"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"authorName"}},{"kind":"Field","name":{"kind":"Name","value":"authorId"}},{"kind":"Field","name":{"kind":"Name","value":"authorAvatar"}},{"kind":"Field","name":{"kind":"Name","value":"sourceApplication"}},{"kind":"Field","name":{"kind":"Name","value":"message"}},{"kind":"Field","name":{"kind":"Name","value":"referencedObject"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"commentCount"}}]}}]}}]}}]}}]}}]} as unknown as DocumentNode; export const BranchCreatedDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"subscription","name":{"kind":"Name","value":"BranchCreated"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"streamId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"branchCreated"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"streamId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"streamId"}}}]}]}}]} as unknown as DocumentNode; @@ -4245,8 +4698,8 @@ export const StreamCommitQueryDocument = {"kind":"Document","definitions":[{"kin export const StreamBranchesSelectorDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"StreamBranchesSelector"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"streamId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"stream"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"streamId"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"branches"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"limit"},"value":{"kind":"IntValue","value":"100"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"items"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"name"}}]}}]}}]}}]}}]} as unknown as DocumentNode; export const MoveCommitsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"MoveCommits"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"CommitsMoveInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"commitsMove"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"Variable","name":{"kind":"Name","value":"input"}}}]}]}}]} as unknown as DocumentNode; export const DeleteCommitsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"DeleteCommits"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"CommitsDeleteInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"commitsDelete"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"Variable","name":{"kind":"Name","value":"input"}}}]}]}}]} as unknown as DocumentNode; -export const StreamInviteDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"StreamInvite"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"streamId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"token"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"streamInvite"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"streamId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"streamId"}}},{"kind":"Argument","name":{"kind":"Name","value":"token"},"value":{"kind":"Variable","name":{"kind":"Name","value":"token"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"UsersOwnInviteFields"}}]}}]}},...UsersOwnInviteFieldsFragmentDoc.definitions,...LimitedUserFieldsFragmentDoc.definitions]} as unknown as DocumentNode; -export const UserStreamInvitesDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"UserStreamInvites"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"streamInvites"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"UsersOwnInviteFields"}}]}}]}},...UsersOwnInviteFieldsFragmentDoc.definitions,...LimitedUserFieldsFragmentDoc.definitions]} as unknown as DocumentNode; +export const StreamInviteDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"StreamInvite"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"streamId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"token"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"streamInvite"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"streamId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"streamId"}}},{"kind":"Argument","name":{"kind":"Name","value":"token"},"value":{"kind":"Variable","name":{"kind":"Name","value":"token"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"UsersOwnInviteFields"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"LimitedUserFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"LimitedUser"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"bio"}},{"kind":"Field","name":{"kind":"Name","value":"company"}},{"kind":"Field","name":{"kind":"Name","value":"avatar"}},{"kind":"Field","name":{"kind":"Name","value":"verified"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"UsersOwnInviteFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PendingStreamCollaborator"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"inviteId"}},{"kind":"Field","name":{"kind":"Name","value":"streamId"}},{"kind":"Field","name":{"kind":"Name","value":"streamName"}},{"kind":"Field","name":{"kind":"Name","value":"token"}},{"kind":"Field","name":{"kind":"Name","value":"invitedBy"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"LimitedUserFields"}}]}}]}}]} as unknown as DocumentNode; +export const UserStreamInvitesDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"UserStreamInvites"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"streamInvites"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"UsersOwnInviteFields"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"LimitedUserFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"LimitedUser"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"bio"}},{"kind":"Field","name":{"kind":"Name","value":"company"}},{"kind":"Field","name":{"kind":"Name","value":"avatar"}},{"kind":"Field","name":{"kind":"Name","value":"verified"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"UsersOwnInviteFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PendingStreamCollaborator"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"inviteId"}},{"kind":"Field","name":{"kind":"Name","value":"streamId"}},{"kind":"Field","name":{"kind":"Name","value":"streamName"}},{"kind":"Field","name":{"kind":"Name","value":"token"}},{"kind":"Field","name":{"kind":"Name","value":"invitedBy"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"LimitedUserFields"}}]}}]}}]} as unknown as DocumentNode; export const UseStreamInviteDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"UseStreamInvite"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"accept"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"Boolean"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"streamId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"token"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"streamInviteUse"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"accept"},"value":{"kind":"Variable","name":{"kind":"Name","value":"accept"}}},{"kind":"Argument","name":{"kind":"Name","value":"streamId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"streamId"}}},{"kind":"Argument","name":{"kind":"Name","value":"token"},"value":{"kind":"Variable","name":{"kind":"Name","value":"token"}}}]}]}}]} as unknown as DocumentNode; export const CancelStreamInviteDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"CancelStreamInvite"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"streamId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"inviteId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"streamInviteCancel"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"streamId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"streamId"}}},{"kind":"Argument","name":{"kind":"Name","value":"inviteId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"inviteId"}}}]}]}}]} as unknown as DocumentNode; export const DeleteInviteDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"DeleteInvite"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"inviteId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"inviteDelete"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"inviteId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"inviteId"}}}]}]}}]} as unknown as DocumentNode; @@ -4255,15 +4708,15 @@ export const BatchInviteToServerDocument = {"kind":"Document","definitions":[{"k export const BatchInviteToStreamsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"BatchInviteToStreams"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"paramsArray"}},"type":{"kind":"NonNullType","type":{"kind":"ListType","type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"StreamInviteCreateInput"}}}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"streamInviteBatchCreate"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"Variable","name":{"kind":"Name","value":"paramsArray"}}}]}]}}]} as unknown as DocumentNode; export const StreamObjectDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"StreamObject"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"streamId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"stream"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"streamId"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"object"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"id"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"totalChildrenCount"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"speckleType"}},{"kind":"Field","name":{"kind":"Name","value":"data"}}]}}]}}]}}]} as unknown as DocumentNode; export const StreamObjectNoDataDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"StreamObjectNoData"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"streamId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"stream"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"streamId"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"object"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"id"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"totalChildrenCount"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"speckleType"}}]}}]}}]}}]} as unknown as DocumentNode; -export const MainServerInfoDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"MainServerInfo"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"serverInfo"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"MainServerInfoFields"}}]}}]}},...MainServerInfoFieldsFragmentDoc.definitions]} as unknown as DocumentNode; -export const FullServerInfoDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"FullServerInfo"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"serverInfo"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"MainServerInfoFields"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"ServerInfoRolesFields"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"ServerInfoScopesFields"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"ServerInfoBlobSizeFields"}}]}}]}},...MainServerInfoFieldsFragmentDoc.definitions,...ServerInfoRolesFieldsFragmentDoc.definitions,...ServerInfoScopesFieldsFragmentDoc.definitions,...ServerInfoBlobSizeFieldsFragmentDoc.definitions]} as unknown as DocumentNode; -export const ServerInfoBlobSizeLimitDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"ServerInfoBlobSizeLimit"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"serverInfo"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ServerInfoBlobSizeFields"}}]}}]}},...ServerInfoBlobSizeFieldsFragmentDoc.definitions]} as unknown as DocumentNode; +export const MainServerInfoDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"MainServerInfo"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"serverInfo"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"MainServerInfoFields"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"MainServerInfoFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ServerInfo"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"company"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"adminContact"}},{"kind":"Field","name":{"kind":"Name","value":"canonicalUrl"}},{"kind":"Field","name":{"kind":"Name","value":"termsOfService"}},{"kind":"Field","name":{"kind":"Name","value":"inviteOnly"}},{"kind":"Field","name":{"kind":"Name","value":"version"}},{"kind":"Field","name":{"kind":"Name","value":"guestModeEnabled"}},{"kind":"Field","name":{"kind":"Name","value":"enableNewWebUiMessaging"}},{"kind":"Field","name":{"kind":"Name","value":"migration"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"movedTo"}}]}}]}}]} as unknown as DocumentNode; +export const FullServerInfoDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"FullServerInfo"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"serverInfo"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"MainServerInfoFields"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"ServerInfoRolesFields"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"ServerInfoScopesFields"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"ServerInfoBlobSizeFields"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"MainServerInfoFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ServerInfo"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"company"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"adminContact"}},{"kind":"Field","name":{"kind":"Name","value":"canonicalUrl"}},{"kind":"Field","name":{"kind":"Name","value":"termsOfService"}},{"kind":"Field","name":{"kind":"Name","value":"inviteOnly"}},{"kind":"Field","name":{"kind":"Name","value":"version"}},{"kind":"Field","name":{"kind":"Name","value":"guestModeEnabled"}},{"kind":"Field","name":{"kind":"Name","value":"enableNewWebUiMessaging"}},{"kind":"Field","name":{"kind":"Name","value":"migration"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"movedTo"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ServerInfoRolesFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ServerInfo"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"serverRoles"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"title"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ServerInfoScopesFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ServerInfo"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"scopes"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"description"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ServerInfoBlobSizeFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ServerInfo"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"blobSizeLimitBytes"}}]}}]} as unknown as DocumentNode; +export const ServerInfoBlobSizeLimitDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"ServerInfoBlobSizeLimit"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"serverInfo"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ServerInfoBlobSizeFields"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ServerInfoBlobSizeFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ServerInfo"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"blobSizeLimitBytes"}}]}}]} as unknown as DocumentNode; export const AvailableServerRolesDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"AvailableServerRoles"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"serverInfo"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"serverRoles"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"title"}}]}},{"kind":"Field","name":{"kind":"Name","value":"guestModeEnabled"}}]}}]}}]} as unknown as DocumentNode; export const StreamCommitsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"StreamCommits"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"stream"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"id"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"role"}},{"kind":"Field","name":{"kind":"Name","value":"commits"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"totalCount"}},{"kind":"Field","name":{"kind":"Name","value":"items"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"authorId"}},{"kind":"Field","name":{"kind":"Name","value":"authorName"}},{"kind":"Field","name":{"kind":"Name","value":"authorAvatar"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"message"}},{"kind":"Field","name":{"kind":"Name","value":"referencedObject"}},{"kind":"Field","name":{"kind":"Name","value":"branchName"}},{"kind":"Field","name":{"kind":"Name","value":"sourceApplication"}}]}}]}}]}}]}}]} as unknown as DocumentNode; export const StreamsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"Streams"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"cursor"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"streams"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"cursor"},"value":{"kind":"Variable","name":{"kind":"Name","value":"cursor"}}},{"kind":"Argument","name":{"kind":"Name","value":"limit"},"value":{"kind":"IntValue","value":"10"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"totalCount"}},{"kind":"Field","name":{"kind":"Name","value":"cursor"}},{"kind":"Field","name":{"kind":"Name","value":"items"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"role"}},{"kind":"Field","name":{"kind":"Name","value":"isPublic"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"commentCount"}},{"kind":"Field","name":{"kind":"Name","value":"collaborators"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"company"}},{"kind":"Field","name":{"kind":"Name","value":"avatar"}},{"kind":"Field","name":{"kind":"Name","value":"role"}}]}},{"kind":"Field","name":{"kind":"Name","value":"commits"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"limit"},"value":{"kind":"IntValue","value":"1"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"totalCount"}},{"kind":"Field","name":{"kind":"Name","value":"items"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"message"}},{"kind":"Field","name":{"kind":"Name","value":"authorId"}},{"kind":"Field","name":{"kind":"Name","value":"branchName"}},{"kind":"Field","name":{"kind":"Name","value":"authorName"}},{"kind":"Field","name":{"kind":"Name","value":"authorAvatar"}},{"kind":"Field","name":{"kind":"Name","value":"referencedObject"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"branches"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"totalCount"}}]}},{"kind":"Field","name":{"kind":"Name","value":"favoritedDate"}},{"kind":"Field","name":{"kind":"Name","value":"favoritesCount"}}]}}]}}]}}]} as unknown as DocumentNode; -export const StreamDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"Stream"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"stream"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"id"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"CommonStreamFields"}}]}}]}},...CommonStreamFieldsFragmentDoc.definitions,...StreamCollaboratorFieldsFragmentDoc.definitions]} as unknown as DocumentNode; -export const StreamWithCollaboratorsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"StreamWithCollaborators"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"stream"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"id"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"isPublic"}},{"kind":"Field","name":{"kind":"Name","value":"role"}},{"kind":"Field","name":{"kind":"Name","value":"collaborators"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"StreamCollaboratorFields"}}]}},{"kind":"Field","name":{"kind":"Name","value":"pendingCollaborators"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"inviteId"}},{"kind":"Field","name":{"kind":"Name","value":"role"}},{"kind":"Field","name":{"kind":"Name","value":"user"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"LimitedUserFields"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"pendingAccessRequests"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"FullStreamAccessRequestFields"}}]}}]}}]}},...StreamCollaboratorFieldsFragmentDoc.definitions,...LimitedUserFieldsFragmentDoc.definitions,...FullStreamAccessRequestFieldsFragmentDoc.definitions,...BasicStreamAccessRequestFieldsFragmentDoc.definitions]} as unknown as DocumentNode; -export const StreamWithActivityDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"StreamWithActivity"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"cursor"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"DateTime"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"stream"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"id"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"commits"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"totalCount"}}]}},{"kind":"Field","name":{"kind":"Name","value":"branches"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"totalCount"}}]}},{"kind":"Field","name":{"kind":"Name","value":"activity"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"cursor"},"value":{"kind":"Variable","name":{"kind":"Name","value":"cursor"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"totalCount"}},{"kind":"Field","name":{"kind":"Name","value":"cursor"}},{"kind":"Field","name":{"kind":"Name","value":"items"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ActivityMainFields"}}]}}]}}]}}]}},...ActivityMainFieldsFragmentDoc.definitions]} as unknown as DocumentNode; +export const StreamDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"Stream"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"stream"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"id"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"CommonStreamFields"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"StreamCollaboratorFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"StreamCollaborator"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"role"}},{"kind":"Field","name":{"kind":"Name","value":"company"}},{"kind":"Field","name":{"kind":"Name","value":"avatar"}},{"kind":"Field","name":{"kind":"Name","value":"serverRole"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"CommonStreamFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Stream"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"role"}},{"kind":"Field","name":{"kind":"Name","value":"isPublic"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"commentCount"}},{"kind":"Field","name":{"kind":"Name","value":"collaborators"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"StreamCollaboratorFields"}}]}},{"kind":"Field","name":{"kind":"Name","value":"commits"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"limit"},"value":{"kind":"IntValue","value":"1"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"totalCount"}}]}},{"kind":"Field","name":{"kind":"Name","value":"branches"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"totalCount"}}]}},{"kind":"Field","name":{"kind":"Name","value":"favoritedDate"}},{"kind":"Field","name":{"kind":"Name","value":"favoritesCount"}}]}}]} as unknown as DocumentNode; +export const StreamWithCollaboratorsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"StreamWithCollaborators"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"stream"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"id"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"isPublic"}},{"kind":"Field","name":{"kind":"Name","value":"role"}},{"kind":"Field","name":{"kind":"Name","value":"collaborators"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"StreamCollaboratorFields"}}]}},{"kind":"Field","name":{"kind":"Name","value":"pendingCollaborators"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"inviteId"}},{"kind":"Field","name":{"kind":"Name","value":"role"}},{"kind":"Field","name":{"kind":"Name","value":"user"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"LimitedUserFields"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"pendingAccessRequests"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"FullStreamAccessRequestFields"}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"BasicStreamAccessRequestFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"StreamAccessRequest"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"streamId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"LimitedUserFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"LimitedUser"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"bio"}},{"kind":"Field","name":{"kind":"Name","value":"company"}},{"kind":"Field","name":{"kind":"Name","value":"avatar"}},{"kind":"Field","name":{"kind":"Name","value":"verified"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"StreamCollaboratorFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"StreamCollaborator"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"role"}},{"kind":"Field","name":{"kind":"Name","value":"company"}},{"kind":"Field","name":{"kind":"Name","value":"avatar"}},{"kind":"Field","name":{"kind":"Name","value":"serverRole"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"FullStreamAccessRequestFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"StreamAccessRequest"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"BasicStreamAccessRequestFields"}},{"kind":"Field","name":{"kind":"Name","value":"requester"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"LimitedUserFields"}}]}}]}}]} as unknown as DocumentNode; +export const StreamWithActivityDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"StreamWithActivity"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"cursor"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"DateTime"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"stream"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"id"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"commits"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"totalCount"}}]}},{"kind":"Field","name":{"kind":"Name","value":"branches"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"totalCount"}}]}},{"kind":"Field","name":{"kind":"Name","value":"activity"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"cursor"},"value":{"kind":"Variable","name":{"kind":"Name","value":"cursor"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"totalCount"}},{"kind":"Field","name":{"kind":"Name","value":"cursor"}},{"kind":"Field","name":{"kind":"Name","value":"items"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ActivityMainFields"}}]}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ActivityMainFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Activity"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"actionType"}},{"kind":"Field","name":{"kind":"Name","value":"info"}},{"kind":"Field","name":{"kind":"Name","value":"userId"}},{"kind":"Field","name":{"kind":"Name","value":"streamId"}},{"kind":"Field","name":{"kind":"Name","value":"resourceId"}},{"kind":"Field","name":{"kind":"Name","value":"resourceType"}},{"kind":"Field","name":{"kind":"Name","value":"time"}},{"kind":"Field","name":{"kind":"Name","value":"message"}}]}}]} as unknown as DocumentNode; export const LeaveStreamDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"LeaveStream"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"streamId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"streamLeave"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"streamId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"streamId"}}}]}]}}]} as unknown as DocumentNode; export const UpdateStreamPermissionDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"UpdateStreamPermission"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"params"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"StreamUpdatePermissionInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"streamUpdatePermission"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"permissionParams"},"value":{"kind":"Variable","name":{"kind":"Name","value":"params"}}}]}]}}]} as unknown as DocumentNode; export const StreamFirstCommitDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"StreamFirstCommit"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"stream"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"id"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"commits"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"limit"},"value":{"kind":"IntValue","value":"1"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"totalCount"}},{"kind":"Field","name":{"kind":"Name","value":"items"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"referencedObject"}}]}}]}}]}}]}}]} as unknown as DocumentNode; @@ -4272,15 +4725,15 @@ export const StreamSettingsDocument = {"kind":"Document","definitions":[{"kind": export const SearchStreamsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"SearchStreams"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"query"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"streams"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"query"},"value":{"kind":"Variable","name":{"kind":"Name","value":"query"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"totalCount"}},{"kind":"Field","name":{"kind":"Name","value":"cursor"}},{"kind":"Field","name":{"kind":"Name","value":"items"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}}]}}]}}]} as unknown as DocumentNode; export const UpdateStreamSettingsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"UpdateStreamSettings"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"StreamUpdateInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"streamUpdate"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"stream"},"value":{"kind":"Variable","name":{"kind":"Name","value":"input"}}}]}]}}]} as unknown as DocumentNode; export const DeleteStreamDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"DeleteStream"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"streamDelete"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"id"}}}]}]}}]} as unknown as DocumentNode; -export const ShareableStreamDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"ShareableStream"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"stream"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"id"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"isPublic"}},{"kind":"Field","name":{"kind":"Name","value":"role"}},{"kind":"Field","name":{"kind":"Name","value":"collaborators"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"StreamCollaboratorFields"}}]}}]}}]}},...StreamCollaboratorFieldsFragmentDoc.definitions]} as unknown as DocumentNode; -export const StreamFileUploadsUpdatedDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"subscription","name":{"kind":"Name","value":"StreamFileUploadsUpdated"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"projectFileImportUpdated"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"id"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"upload"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"StreamFileUpload"}}]}}]}}]}},...StreamFileUploadFragmentDoc.definitions]} as unknown as DocumentNode; -export const UserFavoriteStreamsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"UserFavoriteStreams"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"cursor"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"activeUser"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"CommonUserFields"}},{"kind":"Field","name":{"kind":"Name","value":"favoriteStreams"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"cursor"},"value":{"kind":"Variable","name":{"kind":"Name","value":"cursor"}}},{"kind":"Argument","name":{"kind":"Name","value":"limit"},"value":{"kind":"IntValue","value":"10"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"totalCount"}},{"kind":"Field","name":{"kind":"Name","value":"cursor"}},{"kind":"Field","name":{"kind":"Name","value":"items"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"CommonStreamFields"}}]}}]}}]}}]}},...CommonUserFieldsFragmentDoc.definitions,...CommonStreamFieldsFragmentDoc.definitions,...StreamCollaboratorFieldsFragmentDoc.definitions]} as unknown as DocumentNode; -export const MainUserDataDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"MainUserData"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"activeUser"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"CommonUserFields"}}]}}]}},...CommonUserFieldsFragmentDoc.definitions]} as unknown as DocumentNode; -export const ProfileSelfDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"ProfileSelf"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"activeUser"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"CommonUserFields"}},{"kind":"Field","name":{"kind":"Name","value":"totalOwnedStreamsFavorites"}},{"kind":"Field","name":{"kind":"Name","value":"notificationPreferences"}}]}}]}},...CommonUserFieldsFragmentDoc.definitions]} as unknown as DocumentNode; -export const UserSearchDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"UserSearch"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"query"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"limit"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"Int"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"cursor"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"archived"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"Boolean"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"userSearch"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"query"},"value":{"kind":"Variable","name":{"kind":"Name","value":"query"}}},{"kind":"Argument","name":{"kind":"Name","value":"limit"},"value":{"kind":"Variable","name":{"kind":"Name","value":"limit"}}},{"kind":"Argument","name":{"kind":"Name","value":"cursor"},"value":{"kind":"Variable","name":{"kind":"Name","value":"cursor"}}},{"kind":"Argument","name":{"kind":"Name","value":"archived"},"value":{"kind":"Variable","name":{"kind":"Name","value":"archived"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"cursor"}},{"kind":"Field","name":{"kind":"Name","value":"items"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"LimitedUserFields"}}]}}]}}]}},...LimitedUserFieldsFragmentDoc.definitions]} as unknown as DocumentNode; +export const ShareableStreamDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"ShareableStream"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"stream"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"id"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"isPublic"}},{"kind":"Field","name":{"kind":"Name","value":"role"}},{"kind":"Field","name":{"kind":"Name","value":"collaborators"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"StreamCollaboratorFields"}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"StreamCollaboratorFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"StreamCollaborator"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"role"}},{"kind":"Field","name":{"kind":"Name","value":"company"}},{"kind":"Field","name":{"kind":"Name","value":"avatar"}},{"kind":"Field","name":{"kind":"Name","value":"serverRole"}}]}}]} as unknown as DocumentNode; +export const StreamFileUploadsUpdatedDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"subscription","name":{"kind":"Name","value":"StreamFileUploadsUpdated"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"projectFileImportUpdated"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"id"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"upload"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"StreamFileUpload"}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"StreamFileUpload"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FileUpload"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"convertedCommitId"}},{"kind":"Field","name":{"kind":"Name","value":"userId"}},{"kind":"Field","name":{"kind":"Name","value":"convertedStatus"}},{"kind":"Field","name":{"kind":"Name","value":"convertedMessage"}},{"kind":"Field","name":{"kind":"Name","value":"fileName"}},{"kind":"Field","name":{"kind":"Name","value":"fileType"}},{"kind":"Field","name":{"kind":"Name","value":"uploadComplete"}},{"kind":"Field","name":{"kind":"Name","value":"uploadDate"}},{"kind":"Field","name":{"kind":"Name","value":"convertedLastUpdate"}}]}}]} as unknown as DocumentNode; +export const UserFavoriteStreamsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"UserFavoriteStreams"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"cursor"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"activeUser"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"CommonUserFields"}},{"kind":"Field","name":{"kind":"Name","value":"favoriteStreams"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"cursor"},"value":{"kind":"Variable","name":{"kind":"Name","value":"cursor"}}},{"kind":"Argument","name":{"kind":"Name","value":"limit"},"value":{"kind":"IntValue","value":"10"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"totalCount"}},{"kind":"Field","name":{"kind":"Name","value":"cursor"}},{"kind":"Field","name":{"kind":"Name","value":"items"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"CommonStreamFields"}}]}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"StreamCollaboratorFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"StreamCollaborator"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"role"}},{"kind":"Field","name":{"kind":"Name","value":"company"}},{"kind":"Field","name":{"kind":"Name","value":"avatar"}},{"kind":"Field","name":{"kind":"Name","value":"serverRole"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"CommonUserFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"User"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"email"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"bio"}},{"kind":"Field","name":{"kind":"Name","value":"company"}},{"kind":"Field","name":{"kind":"Name","value":"avatar"}},{"kind":"Field","name":{"kind":"Name","value":"verified"}},{"kind":"Field","name":{"kind":"Name","value":"hasPendingVerification"}},{"kind":"Field","name":{"kind":"Name","value":"profiles"}},{"kind":"Field","name":{"kind":"Name","value":"role"}},{"kind":"Field","name":{"kind":"Name","value":"streams"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"totalCount"}}]}},{"kind":"Field","name":{"kind":"Name","value":"commits"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"limit"},"value":{"kind":"IntValue","value":"1"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"totalCount"}},{"kind":"Field","name":{"kind":"Name","value":"items"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"CommonStreamFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Stream"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"role"}},{"kind":"Field","name":{"kind":"Name","value":"isPublic"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"commentCount"}},{"kind":"Field","name":{"kind":"Name","value":"collaborators"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"StreamCollaboratorFields"}}]}},{"kind":"Field","name":{"kind":"Name","value":"commits"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"limit"},"value":{"kind":"IntValue","value":"1"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"totalCount"}}]}},{"kind":"Field","name":{"kind":"Name","value":"branches"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"totalCount"}}]}},{"kind":"Field","name":{"kind":"Name","value":"favoritedDate"}},{"kind":"Field","name":{"kind":"Name","value":"favoritesCount"}}]}}]} as unknown as DocumentNode; +export const MainUserDataDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"MainUserData"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"activeUser"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"CommonUserFields"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"CommonUserFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"User"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"email"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"bio"}},{"kind":"Field","name":{"kind":"Name","value":"company"}},{"kind":"Field","name":{"kind":"Name","value":"avatar"}},{"kind":"Field","name":{"kind":"Name","value":"verified"}},{"kind":"Field","name":{"kind":"Name","value":"hasPendingVerification"}},{"kind":"Field","name":{"kind":"Name","value":"profiles"}},{"kind":"Field","name":{"kind":"Name","value":"role"}},{"kind":"Field","name":{"kind":"Name","value":"streams"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"totalCount"}}]}},{"kind":"Field","name":{"kind":"Name","value":"commits"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"limit"},"value":{"kind":"IntValue","value":"1"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"totalCount"}},{"kind":"Field","name":{"kind":"Name","value":"items"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}}]}}]}}]}}]} as unknown as DocumentNode; +export const ProfileSelfDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"ProfileSelf"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"activeUser"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"CommonUserFields"}},{"kind":"Field","name":{"kind":"Name","value":"totalOwnedStreamsFavorites"}},{"kind":"Field","name":{"kind":"Name","value":"notificationPreferences"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"CommonUserFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"User"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"email"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"bio"}},{"kind":"Field","name":{"kind":"Name","value":"company"}},{"kind":"Field","name":{"kind":"Name","value":"avatar"}},{"kind":"Field","name":{"kind":"Name","value":"verified"}},{"kind":"Field","name":{"kind":"Name","value":"hasPendingVerification"}},{"kind":"Field","name":{"kind":"Name","value":"profiles"}},{"kind":"Field","name":{"kind":"Name","value":"role"}},{"kind":"Field","name":{"kind":"Name","value":"streams"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"totalCount"}}]}},{"kind":"Field","name":{"kind":"Name","value":"commits"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"limit"},"value":{"kind":"IntValue","value":"1"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"totalCount"}},{"kind":"Field","name":{"kind":"Name","value":"items"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}}]}}]}}]}}]} as unknown as DocumentNode; +export const UserSearchDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"UserSearch"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"query"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"limit"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"Int"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"cursor"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"archived"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"Boolean"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"userSearch"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"query"},"value":{"kind":"Variable","name":{"kind":"Name","value":"query"}}},{"kind":"Argument","name":{"kind":"Name","value":"limit"},"value":{"kind":"Variable","name":{"kind":"Name","value":"limit"}}},{"kind":"Argument","name":{"kind":"Name","value":"cursor"},"value":{"kind":"Variable","name":{"kind":"Name","value":"cursor"}}},{"kind":"Argument","name":{"kind":"Name","value":"archived"},"value":{"kind":"Variable","name":{"kind":"Name","value":"archived"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"cursor"}},{"kind":"Field","name":{"kind":"Name","value":"items"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"LimitedUserFields"}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"LimitedUserFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"LimitedUser"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"bio"}},{"kind":"Field","name":{"kind":"Name","value":"company"}},{"kind":"Field","name":{"kind":"Name","value":"avatar"}},{"kind":"Field","name":{"kind":"Name","value":"verified"}}]}}]} as unknown as DocumentNode; export const IsLoggedInDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"IsLoggedIn"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"activeUser"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}}]}}]} as unknown as DocumentNode; export const AdminUsersListDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"AdminUsersList"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"limit"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"Int"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"offset"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"Int"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"query"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"adminUsers"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"limit"},"value":{"kind":"Variable","name":{"kind":"Name","value":"limit"}}},{"kind":"Argument","name":{"kind":"Name","value":"offset"},"value":{"kind":"Variable","name":{"kind":"Name","value":"offset"}}},{"kind":"Argument","name":{"kind":"Name","value":"query"},"value":{"kind":"Variable","name":{"kind":"Name","value":"query"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"totalCount"}},{"kind":"Field","name":{"kind":"Name","value":"items"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"registeredUser"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"email"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"bio"}},{"kind":"Field","name":{"kind":"Name","value":"company"}},{"kind":"Field","name":{"kind":"Name","value":"avatar"}},{"kind":"Field","name":{"kind":"Name","value":"verified"}},{"kind":"Field","name":{"kind":"Name","value":"profiles"}},{"kind":"Field","name":{"kind":"Name","value":"role"}},{"kind":"Field","name":{"kind":"Name","value":"authorizedApps"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"name"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"invitedUser"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"email"}},{"kind":"Field","name":{"kind":"Name","value":"invitedBy"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}}]}}]}}]}}]}}]} as unknown as DocumentNode; -export const UserTimelineDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"UserTimeline"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"cursor"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"DateTime"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"activeUser"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"timeline"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"cursor"},"value":{"kind":"Variable","name":{"kind":"Name","value":"cursor"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"totalCount"}},{"kind":"Field","name":{"kind":"Name","value":"cursor"}},{"kind":"Field","name":{"kind":"Name","value":"items"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ActivityMainFields"}}]}}]}}]}}]}},...ActivityMainFieldsFragmentDoc.definitions]} as unknown as DocumentNode; +export const UserTimelineDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"UserTimeline"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"cursor"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"DateTime"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"activeUser"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"timeline"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"cursor"},"value":{"kind":"Variable","name":{"kind":"Name","value":"cursor"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"totalCount"}},{"kind":"Field","name":{"kind":"Name","value":"cursor"}},{"kind":"Field","name":{"kind":"Name","value":"items"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ActivityMainFields"}}]}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ActivityMainFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Activity"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"actionType"}},{"kind":"Field","name":{"kind":"Name","value":"info"}},{"kind":"Field","name":{"kind":"Name","value":"userId"}},{"kind":"Field","name":{"kind":"Name","value":"streamId"}},{"kind":"Field","name":{"kind":"Name","value":"resourceId"}},{"kind":"Field","name":{"kind":"Name","value":"resourceType"}},{"kind":"Field","name":{"kind":"Name","value":"time"}},{"kind":"Field","name":{"kind":"Name","value":"message"}}]}}]} as unknown as DocumentNode; export const ValidatePasswordStrengthDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"ValidatePasswordStrength"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"pwd"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"userPwdStrength"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"pwd"},"value":{"kind":"Variable","name":{"kind":"Name","value":"pwd"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"score"}},{"kind":"Field","name":{"kind":"Name","value":"feedback"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"warning"}},{"kind":"Field","name":{"kind":"Name","value":"suggestions"}}]}}]}}]}}]} as unknown as DocumentNode; export const EmailVerificationBannerStateDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"EmailVerificationBannerState"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"activeUser"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"email"}},{"kind":"Field","name":{"kind":"Name","value":"verified"}},{"kind":"Field","name":{"kind":"Name","value":"hasPendingVerification"}}]}}]}}]} as unknown as DocumentNode; export const RequestVerificationDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"RequestVerification"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"requestVerification"}}]}}]} as unknown as DocumentNode; diff --git a/packages/server/assets/betaAutomations/typedefs/betaAutomations.graphql b/packages/server/assets/betaAutomations/typedefs/betaAutomations.graphql deleted file mode 100644 index 3b8e374f1..000000000 --- a/packages/server/assets/betaAutomations/typedefs/betaAutomations.graphql +++ /dev/null @@ -1,147 +0,0 @@ -enum AutomationRunStatus { - INITIALIZING - RUNNING - SUCCEEDED - FAILED -} - -extend type Model { - automationStatus: AutomationsStatus -} - -extend type Version { - automationStatus: AutomationsStatus -} - -type AutomationsStatus { - id: ID! - status: AutomationRunStatus! - statusMessage: String - automationRuns: [AutomationRun!]! -} - -# TODO: Currently not needed -# type Automation { -# automationName: String! -# automationId: String! -# automationRevisionId: String! -# createdAt: DateTime! -# runs(cursor: String, limit: Int! = 25): AutomationRunsCollection! -# } - -# type AutomationRunsCollection { -# totalCount: Int! -# cursor: String -# items: [AutomationRun!]! -# } - -type AutomationRun { - id: ID! - automationId: String! - automationName: String! - versionId: String! - createdAt: DateTime! - updatedAt: DateTime! - functionRuns: [AutomationFunctionRun!]! - """ - Resolved from all function run statuses - """ - status: AutomationRunStatus! -} - -type AutomationFunctionRun { - id: ID! - functionId: String! - functionName: String! - functionLogo: String - elapsed: Float! - status: AutomationRunStatus! - # Context view is just a url (most likely overlaid models) - contextView: String - resultVersions: [Version!]! - statusMessage: String - """ - NOTE: this is the schema for the results field below! - Current schema: { - version: "1.0.0", - values: { - objectResults: Record | null - visualoverrides: Records | null - }[]> - blobIds?: string[] - } - } - """ - results: JSONObject # blobIds are in here -} - -input AutomationCreateInput { - projectId: String! - modelId: String! - automationName: String! - automationId: String! - automationRevisionId: String! - webhookId: String -} - -input FunctionRunStatusInput { - # we cannot strictly require these values, cause local testers of function, wont have it... - # Or should we? - functionId: String! - functionName: String! - functionLogo: String - elapsed: Float! - status: AutomationRunStatus! - contextView: String - resultVersionIds: [String!]! - statusMessage: String - """ - Current schema: { - version: "1.0.0", - values: { - speckleObjects: Record - blobIds?: string[] - } - } - """ - results: JSONObject -} - -input AutomationRunStatusUpdateInput { - versionId: String! - automationId: String! - automationRevisionId: String! - automationRunId: String! - functionRuns: [FunctionRunStatusInput!]! -} - -type AutomationMutations { - functionRunStatusReport(input: AutomationRunStatusUpdateInput!): Boolean! - @hasServerRole(role: SERVER_USER) - @hasScope(scope: "automate:report-results") - create(input: AutomationCreateInput!): Boolean! - @hasServerRole(role: SERVER_USER) - @hasScope(scope: "automate:report-results") -} - -extend type Mutation { - automationMutations: AutomationMutations! -} - -type ProjectAutomationsStatusUpdatedMessage { - status: AutomationsStatus! - version: Version! - model: Model! - project: Project! -} - -extend type Subscription { - projectAutomationsStatusUpdated( - projectId: String! - ): ProjectAutomationsStatusUpdatedMessage! -} diff --git a/packages/server/codegen.yml b/packages/server/codegen.yml index 7ed6dabc3..8341f73f1 100644 --- a/packages/server/codegen.yml +++ b/packages/server/codegen.yml @@ -32,8 +32,6 @@ generates: Comment: '@/modules/comments/helpers/graphTypes#CommentGraphQLReturn' PendingStreamCollaborator: '@/modules/serverinvites/helpers/graphTypes#PendingStreamCollaboratorGraphQLReturn' FileUpload: '@/modules/fileuploads/helpers/types#FileUploadGraphQLReturn' - AutomationMutations: '@/modules/core/helpers/graphTypes#MutationsObjectGraphQLReturn' - AutomationFunctionRun: '@/modules/betaAutomations/helpers/graphTypes#AutomationFunctionRunGraphQLReturn' AutomateFunction: '@/modules/automate/helpers/graphTypes#AutomateFunctionGraphQLReturn' AutomateFunctionRelease: '@/modules/automate/helpers/graphTypes#AutomateFunctionReleaseGraphQLReturn' Automation: '@/modules/automate/helpers/graphTypes#AutomationGraphQLReturn' diff --git a/packages/server/modules/betaAutomations/migrations/20230905162038_automations.ts b/packages/server/modules/automate/migrations/20230905162038_automations.ts similarity index 100% rename from packages/server/modules/betaAutomations/migrations/20230905162038_automations.ts rename to packages/server/modules/automate/migrations/20230905162038_automations.ts diff --git a/packages/server/modules/betaAutomations/migrations/20230912114629_automations_tables_normalization.ts b/packages/server/modules/automate/migrations/20230912114629_automations_tables_normalization.ts similarity index 100% rename from packages/server/modules/betaAutomations/migrations/20230912114629_automations_tables_normalization.ts rename to packages/server/modules/automate/migrations/20230912114629_automations_tables_normalization.ts diff --git a/packages/server/modules/betaAutomations/migrations/20230914071540_make_function_run_results_nullable.ts b/packages/server/modules/automate/migrations/20230914071540_make_function_run_results_nullable.ts similarity index 100% rename from packages/server/modules/betaAutomations/migrations/20230914071540_make_function_run_results_nullable.ts rename to packages/server/modules/automate/migrations/20230914071540_make_function_run_results_nullable.ts diff --git a/packages/server/modules/betaAutomations/migrations/20230920130032_fix_project_delete_cascade.ts b/packages/server/modules/automate/migrations/20230920130032_fix_project_delete_cascade.ts similarity index 100% rename from packages/server/modules/betaAutomations/migrations/20230920130032_fix_project_delete_cascade.ts rename to packages/server/modules/automate/migrations/20230920130032_fix_project_delete_cascade.ts diff --git a/packages/server/modules/betaAutomations/migrations/20231025100054_automation_function_name_and_logo.ts b/packages/server/modules/automate/migrations/20231025100054_automation_function_name_and_logo.ts similarity index 100% rename from packages/server/modules/betaAutomations/migrations/20231025100054_automation_function_name_and_logo.ts rename to packages/server/modules/automate/migrations/20231025100054_automation_function_name_and_logo.ts diff --git a/packages/server/modules/betaAutomations/migrations/20240304143445_rename_tables.ts b/packages/server/modules/automate/migrations/20240304143445_rename_tables.ts similarity index 100% rename from packages/server/modules/betaAutomations/migrations/20240304143445_rename_tables.ts rename to packages/server/modules/automate/migrations/20240304143445_rename_tables.ts diff --git a/packages/server/modules/automate/migrations/20240620105859_drop_beta_tables.ts b/packages/server/modules/automate/migrations/20240620105859_drop_beta_tables.ts new file mode 100644 index 000000000..29b8421dd --- /dev/null +++ b/packages/server/modules/automate/migrations/20240620105859_drop_beta_tables.ts @@ -0,0 +1,102 @@ +import { Knex } from 'knex' + +const AUTOMATIONS_TABLE_NAME_NEW = 'beta_automations' +const AUTOMATION_RUNS_TABLE_NAME_NEW = 'beta_automation_runs' +const AUTOMATION_FUNCTION_RUNS_TABLE_NAME_NEW = 'beta_automation_function_runs' +const AUTOMATION_FUNCTION_RUNS_RESULT_VERSIONS_TABLE_NAME_NEW = + 'beta_automation_function_runs_result_versions' + +const tableNames = [ + AUTOMATION_FUNCTION_RUNS_RESULT_VERSIONS_TABLE_NAME_NEW, + AUTOMATION_FUNCTION_RUNS_TABLE_NAME_NEW, + AUTOMATION_RUNS_TABLE_NAME_NEW, + AUTOMATIONS_TABLE_NAME_NEW +] + +const currentBetaTableCreationScript = ` +create table beta_automations +( + "automationId" varchar(255) not null, + "automationRevisionId" varchar(255) not null, + "automationName" varchar(255) not null, + "projectId" varchar(255) not null + constraint automations_projectid_foreign + references streams + on delete cascade, + "modelId" varchar(255) not null + constraint automations_modelid_foreign + references branches + on delete cascade, + "createdAt" timestamp(3) with time zone default CURRENT_TIMESTAMP not null, + "updatedAt" timestamp(3) with time zone default CURRENT_TIMESTAMP not null, + "webhookId" varchar(255) + constraint automations_webhookid_foreign + references webhooks_config + on delete set null, + constraint automations_pkey + primary key ("automationId", "automationRevisionId") +); + +create table beta_automation_runs +( + "automationId" varchar(255) not null, + "automationRevisionId" varchar(255) not null, + "versionId" varchar(255) not null + constraint automation_runs_versionid_foreign + references commits + on delete cascade, + "automationRunId" varchar(255) not null + constraint automation_runs_pkey + primary key, + "createdAt" timestamp(3) with time zone default CURRENT_TIMESTAMP not null, + "updatedAt" timestamp(3) with time zone default CURRENT_TIMESTAMP not null, + constraint automation_runs_automationid_automationrevisionid_foreign + foreign key ("automationId", "automationRevisionId") references beta_automations + on delete cascade +); + +create table beta_automation_function_runs +( + "automationRunId" varchar(255) not null + constraint automation_function_runs_automationrunid_foreign + references beta_automation_runs + on delete cascade, + "functionId" varchar(255) not null, + elapsed real not null, + status varchar(255) not null, + "contextView" varchar(255), + "statusMessage" varchar(255), + results jsonb, + "functionName" varchar(255) default 'majestic function'::character varying not null, + "functionLogo" text, + constraint automation_function_runs_pkey + primary key ("automationRunId", "functionId") +); + +create table beta_automation_function_runs_result_versions +( + "automationRunId" varchar(255) not null, + "functionId" varchar(255) not null, + "resultVersionId" varchar(255) not null + constraint automation_function_runs_result_versions_resultversionid_foreig + references commits + on delete cascade, + constraint automation_function_runs_result_versions_pkey + primary key ("automationRunId", "functionId", "resultVersionId"), + constraint automation_function_runs_result_versions_automationrunid_functi + foreign key ("automationRunId", "functionId") references beta_automation_function_runs + on delete cascade +); +` + +export async function up(knex: Knex): Promise { + // Delete in order + for (const tableName of tableNames) { + await knex.schema.dropTableIfExists(tableName) + } +} + +export async function down(knex: Knex): Promise { + // recreate tables from script + await knex.raw(currentBetaTableCreationScript) +} diff --git a/packages/server/modules/betaAutomations/errors/automations.ts b/packages/server/modules/betaAutomations/errors/automations.ts deleted file mode 100644 index eebe99048..000000000 --- a/packages/server/modules/betaAutomations/errors/automations.ts +++ /dev/null @@ -1,6 +0,0 @@ -import { BaseError } from '@/modules/shared/errors/base' - -export class AutomationNotFoundError extends BaseError { - static defaultMessage = 'Attempting to work with a non-existant automation' - static code = 'AUTOMATION_NOT_FOUND' -} diff --git a/packages/server/modules/betaAutomations/graph/resolvers/automations.ts b/packages/server/modules/betaAutomations/graph/resolvers/automations.ts deleted file mode 100644 index 86b41e35b..000000000 --- a/packages/server/modules/betaAutomations/graph/resolvers/automations.ts +++ /dev/null @@ -1,100 +0,0 @@ -import { - createModelAutomation, - getAutomationsStatus, - upsertModelAutomationRunResult -} from '@/modules/betaAutomations/services/management' -import { formatResults } from '@/modules/betaAutomations/services/results' -import { Resolvers } from '@/modules/core/graph/generated/graphql' -import { getStream } from '@/modules/core/repositories/streams' -import { - ProjectSubscriptions, - filteredSubscribe -} from '@/modules/shared/utils/subscriptions' -import { ForbiddenError } from 'apollo-server-express' - -export = { - Model: { - async automationStatus(parent, _, ctx) { - const modelId = parent.id - const projectId = parent.streamId - const latestCommit = await ctx.loaders.branches.getLatestCommit.load(parent.id) - - // if the model has no versions, no automations could have run - if (!latestCommit) return null - - return await getAutomationsStatus({ - projectId, - modelId, - versionId: latestCommit.id - }) - } - }, - Version: { - async automationStatus(parent, _, ctx) { - const versionId = parent.id - const branch = await ctx.loaders.commits.getCommitBranch.load(versionId) - if (!branch) throw Error('Invalid version Id') - - const projectId = branch.streamId - const modelId = branch.id - return await getAutomationsStatus({ - projectId, - modelId, - versionId - }) - } - }, - AutomationFunctionRun: { - async resultVersions(parent, _, ctx) { - return ctx.loaders.automationFunctionRuns.getResultVersions.load([ - parent.automationRunId, - parent.functionId - ]) - }, - async results(parent) { - const originalResults = parent.results - if (!originalResults) return null - return formatResults(originalResults) - }, - id(parent) { - return `${parent.automationRunId}-${parent.functionId}` - } - }, - Mutation: { - automationMutations: () => ({}) - }, - AutomationMutations: { - async create(_, args, context) { - await createModelAutomation(args.input, context.userId) - return true - }, - async functionRunStatusReport(_, args, context) { - const { userId, log } = context - await upsertModelAutomationRunResult({ userId, input: args.input, logger: log }) - return true - } - }, - Subscription: { - projectAutomationsStatusUpdated: { - subscribe: filteredSubscribe( - ProjectSubscriptions.ProjectAutomationStatusUpdated, - async (payload, variables, context) => { - if (payload.projectId !== variables.projectId) return false - - const stream = await getStream({ - streamId: variables.projectId, - userId: context.userId - }) - if ( - !stream || - (!(stream.isDiscoverable || stream.isPublic) && !stream.role) - ) { - throw new ForbiddenError('You are not authorized.') - } - - return true - } - ) - } - } -} as Resolvers diff --git a/packages/server/modules/betaAutomations/helpers/graphTypes.ts b/packages/server/modules/betaAutomations/helpers/graphTypes.ts deleted file mode 100644 index 0e48c2715..000000000 --- a/packages/server/modules/betaAutomations/helpers/graphTypes.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { AutomationFunctionRunRecord } from '@/modules/betaAutomations/helpers/types' - -export type AutomationFunctionRunGraphQLReturn = AutomationFunctionRunRecord diff --git a/packages/server/modules/betaAutomations/helpers/inputTypes.ts b/packages/server/modules/betaAutomations/helpers/inputTypes.ts deleted file mode 100644 index a5ff8cbc5..000000000 --- a/packages/server/modules/betaAutomations/helpers/inputTypes.ts +++ /dev/null @@ -1,79 +0,0 @@ -import { AutomationRunStatus } from '@/modules/core/graph/generated/graphql' -import { z } from 'zod' - -const CurrentObjectResultsVersion = '1.0.0' - -const SupportedObjectResultsVersions = [CurrentObjectResultsVersion] as const - -const ObjectResultLevel = ['INFO', 'WARNING', 'ERROR'] as const - -const ObjectResultLevelEnum = z.enum(ObjectResultLevel) - -const ObjectResultValuesSchema = z.object({ - level: ObjectResultLevelEnum, - message: z.string().nullable(), - category: z.string(), - objectIds: z.string().array().nonempty(), - metadata: z.record(z.string(), z.unknown()).nullable(), - visualOverrides: z.record(z.string(), z.unknown()).nullable() -}) - -const FirstVersionResultsSchema = z.object({ - version: z.enum(SupportedObjectResultsVersions), - values: z.object({ - objectResults: ObjectResultValuesSchema.array(), - blobIds: z.string().array().optional() - }) -}) - -export type FirstVersionResults = z.infer - -export type CurrentVersionResults = FirstVersionResults - -// As new versions are added, add the type to this union -export type Results = FirstVersionResults // | SecondVersionResults | ThirdVersionResults - -const FunctionRunStatusSchema = z - .object({ - functionId: z.string().min(1), - functionName: z.string().min(1), - functionLogo: z.string().nullable(), - elapsed: z.number(), - status: z.nativeEnum(AutomationRunStatus), - contextView: z - .string() - .nullable() - .default(null) - .refine( - (v) => { - if (v === null) return true - return !!/^\/projects\/[a-zA-Z0-9]+\/models\//i.exec(v) - }, - { message: 'Invalid relative viewer URL' } - ), - resultVersionIds: z.string().array(), - statusMessage: z.string().nullable().default(null), - results: FirstVersionResultsSchema.nullable().default(null) - }) - .refine( - (schema) => { - if (schema.status === AutomationRunStatus.Succeeded && !schema.results) { - return false - } - - return true - }, - { message: 'Results must be provided for successful runs' } - ) - -export const AutomationRunSchema = z.object({ - automationId: z.string().min(1), - automationRevisionId: z.string().min(1), - automationRunId: z.string().min(1), - versionId: z.string().min(1), - createdAt: z.date(), - updatedAt: z.date(), - functionRuns: z.array(FunctionRunStatusSchema).min(1) -}) - -export type AutomationRun = z.infer diff --git a/packages/server/modules/betaAutomations/helpers/types.ts b/packages/server/modules/betaAutomations/helpers/types.ts deleted file mode 100644 index 00677f91b..000000000 --- a/packages/server/modules/betaAutomations/helpers/types.ts +++ /dev/null @@ -1,41 +0,0 @@ -import { Results } from '@/modules/betaAutomations/helpers/inputTypes' -import { AutomationRunStatus } from '@/modules/core/graph/generated/graphql' -import { Nullable } from '@speckle/shared' - -export type AutomationRecord = { - automationId: string - projectId: string - modelId: string - createdAt: Date - updatedAt: Date - automationRevisionId: string - automationName: string -} - -export type AutomationRunRecord = { - automationId: string - automationRevisionId: string - automationRunId: string - versionId: string - createdAt: Date - updatedAt: Date - automationName: string -} - -export type AutomationFunctionRunRecord = { - automationRunId: string - functionId: string - functionName: string - functionLogo: string | null - elapsed: number - status: AutomationRunStatus - contextView: Nullable - statusMessage: Nullable - results: Nullable -} - -export type AutomationFunctionRunsResultVersionRecord = { - automationRunId: string - functionId: string - resultVersionId: string -} diff --git a/packages/server/modules/betaAutomations/index.ts b/packages/server/modules/betaAutomations/index.ts deleted file mode 100644 index dce46ad34..000000000 --- a/packages/server/modules/betaAutomations/index.ts +++ /dev/null @@ -1,28 +0,0 @@ -import { moduleLogger } from '@/logging/logging' -import { ScopeRecord } from '@/modules/auth/helpers/types' -import { registerOrUpdateScope } from '@/modules/shared' -import { SpeckleModule } from '@/modules/shared/helpers/typeHelper' -import { Scopes } from '@speckle/shared' - -async function initScopes() { - const scopes: ScopeRecord[] = [ - { - name: Scopes.Automate.ReportResults, - description: 'Report automation results to the server.', - public: true - } - ] - - for (const scope of scopes) { - await registerOrUpdateScope(scope) - } -} - -const automationModule: SpeckleModule = { - async init() { - moduleLogger.info('🤖 Init BETA automate module') - await initScopes() - } -} - -export = automationModule diff --git a/packages/server/modules/betaAutomations/repositories/automations.ts b/packages/server/modules/betaAutomations/repositories/automations.ts deleted file mode 100644 index cdb5c4dd3..000000000 --- a/packages/server/modules/betaAutomations/repositories/automations.ts +++ /dev/null @@ -1,216 +0,0 @@ -import { Logger } from '@/logging/logging' -import { - AutomationFunctionRunRecord, - AutomationFunctionRunsResultVersionRecord, - AutomationRecord, - AutomationRunRecord -} from '@/modules/betaAutomations/helpers/types' -import { - BetaAutomations, - BetaAutomationRuns, - BetaAutomationFunctionRuns, - BetaAutomationFunctionRunsResultVersions, - Commits -} from '@/modules/core/dbSchema' -import { CommitRecord } from '@/modules/core/helpers/types' -import { Optional } from '@speckle/shared' -import { isArray, pick } from 'lodash' -import { SetOptional } from 'type-fest' - -export const upsertAutomation = async ( - automation: SetOptional -) => - await BetaAutomations.knex() - .insert(pick(automation, BetaAutomations.withoutTablePrefix.cols)) - .onConflict([ - BetaAutomations.withoutTablePrefix.col.automationId, - BetaAutomations.withoutTablePrefix.col.automationRevisionId - ]) - .merge( - BetaAutomations.withoutTablePrefix.cols.filter( - (c) => c !== BetaAutomations.withoutTablePrefix.col.createdAt - ) - ) - -export const getAutomation = async ( - automationId: string -): Promise> => { - return await BetaAutomations.knex() - .where({ [BetaAutomations.col.automationId]: automationId }) - .first() -} - -export const upsertAutomationRunData = async (automationRun: AutomationRunRecord) => { - const insertModel = pick( - automationRun, - BetaAutomationRuns.withoutTablePrefix.cols - ) as AutomationRunRecord - - return await BetaAutomationRuns.knex() - .insert(insertModel) - .onConflict(BetaAutomationRuns.withoutTablePrefix.col.automationRunId) - .merge() -} - -export const upsertAutomationFunctionRunData = async ( - automationFunctionRuns: AutomationFunctionRunRecord | AutomationFunctionRunRecord[], - logger: Logger -) => { - const runs = isArray(automationFunctionRuns) - ? automationFunctionRuns - : [automationFunctionRuns] - - logger.info({ runs }, 'Upserting runs.') - const normalizedModels = runs.map((run) => { - return pick( - run, - BetaAutomationFunctionRuns.withoutTablePrefix.cols - ) as AutomationFunctionRunRecord - }) - - logger.info({ normalizedModels }, 'Normalized runs.') - return await BetaAutomationFunctionRuns.knex() - .insert(normalizedModels) - .onConflict([ - BetaAutomationFunctionRuns.withoutTablePrefix.col.automationRunId, - BetaAutomationFunctionRuns.withoutTablePrefix.col.functionId - ]) - .merge() -} - -export const insertAutomationFunctionRunResultVersion = async ( - functionRunVersions: - | AutomationFunctionRunsResultVersionRecord - | AutomationFunctionRunsResultVersionRecord[] -) => { - const versions = isArray(functionRunVersions) - ? functionRunVersions - : [functionRunVersions] - if (!versions.length) return - - const normalizedModels = versions.map((run) => { - return pick( - run, - BetaAutomationFunctionRunsResultVersions.withoutTablePrefix.cols - ) as AutomationFunctionRunsResultVersionRecord - }) - - return await BetaAutomationFunctionRunsResultVersions.knex().insert(normalizedModels) -} - -export const deleteResultVersionsForRuns = async ( - keyPairs: [functionId: string, automationRunId: string][] -) => { - return await BetaAutomationFunctionRunsResultVersions.knex() - .whereIn( - [ - BetaAutomationFunctionRunsResultVersions.col.functionId, - BetaAutomationFunctionRunsResultVersions.col.automationRunId - ], - keyPairs - ) - .del() -} - -export const getAutomationRun = async ( - automationRunId: string -): Promise> => { - return await BetaAutomationRuns.knex() - .where({ [BetaAutomationRuns.col.automationRunId]: automationRunId }) - .first() -} - -export const getLatestAutomationRunsFor = async ( - params: { - projectId: string - modelId: string - versionId: string - }, - options?: Partial<{ - limit: number - }> -): Promise => { - const { projectId, modelId, versionId } = params - const { limit = 20 } = options || {} - - const runs = await BetaAutomationRuns.knex() - .select([ - ...BetaAutomationRuns.cols, - `${BetaAutomations.name}.${BetaAutomations.withoutTablePrefix.col.automationName}` - ]) - .join( - BetaAutomations.name, - BetaAutomationRuns.col.automationId, - BetaAutomations.col.automationId - ) - .where({ [BetaAutomations.col.projectId]: projectId }) - .andWhere({ [BetaAutomations.col.modelId]: modelId }) - .andWhere({ [BetaAutomationRuns.col.versionId]: versionId }) - .distinctOn(BetaAutomationRuns.col.automationId) - .orderBy([ - { column: BetaAutomationRuns.col.automationId }, - { column: BetaAutomationRuns.col.createdAt, order: 'desc' } - ]) - .limit(limit) - - return runs -} - -/** - * Get function runs for automation runs. The result is an object keyed by automationRunId, - * with each value being a map between functionId and function run. - */ -export const getFunctionRunsForAutomationRuns = async ( - automationRunids: string[] -): Promise>> => { - const runs = await BetaAutomationFunctionRuns.knex() - .select(BetaAutomationFunctionRuns.cols) - .whereIn(BetaAutomationFunctionRuns.col.automationRunId, automationRunids) - - const grouped = runs.reduce((acc, run) => { - if (!acc[run.automationRunId]) acc[run.automationRunId] = {} - acc[run.automationRunId][run.functionId] = run - return acc - }, {} as Record>) - - return grouped -} - -/** - * Get versions/commits for specified function runs. The result is an object keyed by automationRunId, - * with each value being a map between functionId and a commit. - */ -export const getAutomationFunctionRunResultVersions = async ( - idPairs: Array<[automationRunId: string, functionId: string]> -): Promise>> => { - const q = BetaAutomationFunctionRunsResultVersions.knex() - .select>( - ...Commits.cols, - ...BetaAutomationFunctionRunsResultVersions.cols - ) - .innerJoin( - Commits.name, - BetaAutomationFunctionRunsResultVersions.col.resultVersionId, - Commits.col.id - ) - .whereIn( - [ - BetaAutomationFunctionRunsResultVersions.col.automationRunId, - BetaAutomationFunctionRunsResultVersions.col.functionId - ], - idPairs - ) - - const versions = await q - - const grouped = versions.reduce((acc, version) => { - if (!acc[version.automationRunId]) acc[version.automationRunId] = {} - if (!acc[version.automationRunId][version.functionId]) - acc[version.automationRunId][version.functionId] = [] - - acc[version.automationRunId][version.functionId].push(version) - return acc - }, {} as Record>) - - return grouped -} diff --git a/packages/server/modules/betaAutomations/services/management.ts b/packages/server/modules/betaAutomations/services/management.ts deleted file mode 100644 index 0a2ff2a08..000000000 --- a/packages/server/modules/betaAutomations/services/management.ts +++ /dev/null @@ -1,283 +0,0 @@ -import { getBranchById } from '@/modules/core/repositories/branches' -import { getStream } from '@/modules/core/repositories/streams' -import { MaybeNullOrUndefined, Roles } from '@speckle/shared' -import { - getAutomationRun, - getAutomation, - upsertAutomation, - upsertAutomationFunctionRunData, - insertAutomationFunctionRunResultVersion, - getLatestAutomationRunsFor, - getFunctionRunsForAutomationRuns, - deleteResultVersionsForRuns -} from '@/modules/betaAutomations/repositories/automations' -import _, { flatMap, uniqBy } from 'lodash' -import { - AutomationCreateInput, - AutomationRunStatusUpdateInput, - AutomationRunStatus, - AutomationRun -} from '@/modules/core/graph/generated/graphql' -import { upsertAutomationRunData } from '@/modules/betaAutomations/repositories/automations' -import { - AutomationFunctionRunRecord, - AutomationFunctionRunsResultVersionRecord, - AutomationRunRecord -} from '@/modules/betaAutomations/helpers/types' -import { ForbiddenError } from '@/modules/shared/errors' -import { Merge } from 'type-fest' -import { AutomationFunctionRunGraphQLReturn } from '@/modules/betaAutomations/helpers/graphTypes' -import { AutomationRunSchema } from '@/modules/betaAutomations/helpers/inputTypes' -import { StreamNotFoundError } from '@/modules/core/errors/stream' -import { BranchNotFoundError } from '@/modules/core/errors/branch' -import { - getCommits, - getCommit, - getCommitBranch -} from '@/modules/core/repositories/commits' -import { AutomationNotFoundError } from '@/modules/betaAutomations/errors/automations' -import { CommitNotFoundError } from '@/modules/core/errors/commit' -import { ProjectSubscriptions, publish } from '@/modules/shared/utils/subscriptions' -import { Logger } from '@/logging/logging' - -type AutomationRunWithFunctionRunsRecord = AutomationRunRecord & { - functionRuns: AutomationFunctionRunRecord[] -} - -export const createModelAutomation = async ( - automation: AutomationCreateInput, - userId?: string -) => { - // stream acl for user - const stream = await getStream({ userId, streamId: automation.projectId }) - if (!stream) throw new StreamNotFoundError('Project not found') - if (stream.role !== Roles.Stream.Owner) - throw new ForbiddenError('Only project owners are allowed.') - - const branch = await getBranchById(automation.modelId, { - streamId: automation.projectId - }) - if (!branch) throw new BranchNotFoundError('Model not found') - - const insertModel = { ...automation, modelId: branch.id, createdAt: new Date() } - await upsertAutomation(insertModel) -} - -export async function upsertModelAutomationRunResult({ - userId, - input, - logger -}: { - userId: MaybeNullOrUndefined - input: AutomationRunStatusUpdateInput - logger: Logger -}) { - logger.info({ input }, 'Received automation run result data') - // validate input against schema - const validatedInput = AutomationRunSchema.parse({ - ...input, - createdAt: new Date(), - updatedAt: new Date() - }) - - logger.info({ validatedInput }, 'Validated automation run result data') - - // get the automation from the DB - const automation = await getAutomation(input.automationId) - if (!automation) throw new AutomationNotFoundError() - - const [stream, version, model] = await Promise.all([ - getStream({ - userId: userId || undefined, - streamId: automation.projectId - }), - getCommit(validatedInput.versionId, { - streamId: automation.projectId - }), - getCommitBranch(validatedInput.versionId) - ]) - - // this is never going to happen, cause the automation has an FK to the streamId - if (!stream) throw new StreamNotFoundError('Project not found') - if (stream.role !== Roles.Stream.Owner) - throw new ForbiddenError('Only project owners are allowed') - if (!version) throw new CommitNotFoundError() - if (!model) throw new BranchNotFoundError() - - // store the result of the run, if it already exists, patch it - const maybeAutomationRun = await getAutomationRun(input.automationRunId) - if (maybeAutomationRun) { - // some bits we do not allow overriding - validatedInput.createdAt = maybeAutomationRun.createdAt - validatedInput.versionId = maybeAutomationRun.versionId - validatedInput.automationId = maybeAutomationRun.automationId - validatedInput.automationRevisionId = maybeAutomationRun.automationRevisionId - } - - await upsertAutomationRunData({ ...validatedInput, automationName: 'pasta' }) - - // upsert run function runs - const runs = uniqBy( - validatedInput.functionRuns.map( - (s): AutomationFunctionRunRecord => ({ - ...s, - automationRunId: validatedInput.automationRunId - }) - ), - (v) => `${v.automationRunId}-${v.functionId}` - ) - logger.info({ runs }, 'Uniqued automation run result data') - await upsertAutomationFunctionRunData(runs, logger) - - // create new result version records - const versionsRecords: AutomationFunctionRunsResultVersionRecord[] = flatMap( - validatedInput.functionRuns - .filter((s) => s.resultVersionIds?.length) - .map((s) => ({ - functionId: s.functionId, - automationRunId: validatedInput.automationRunId, - resultVersionIds: s.resultVersionIds - })), - (i) => { - return i.resultVersionIds.map((v) => ({ - functionId: i.functionId, - automationRunId: i.automationRunId, - resultVersionId: v - })) - } - ) - logger.info({ versionsRecords }, 'Version records flat mapped') - const validatedVersions = await getCommits( - versionsRecords.map((r) => r.resultVersionId) - ) - const validVersionsRecords = uniqBy( - versionsRecords.filter((r) => - validatedVersions.find( - (vv) => vv.id === r.resultVersionId && vv.streamId === stream.id - ) - ), - (v) => `${v.automationRunId}-${v.functionId}-${v.resultVersionId}` - ) - - // delete old/stale versions and re-insert new valid ones (in case this is an update to an existing run) - await deleteResultVersionsForRuns( - validatedInput.functionRuns.map((s) => [ - s.functionId, - validatedInput.automationRunId - ]) - ) - await insertAutomationFunctionRunResultVersion(validVersionsRecords) - - // Emit subscription - const newStatus = await getAutomationsStatus({ - modelId: version.branchId, - projectId: stream.id, - versionId: version.id - }) - logger.info({ newStatus }, 'Emiting new status event') - if (newStatus) { - await publish(ProjectSubscriptions.ProjectAutomationStatusUpdated, { - projectId: stream.id, - projectAutomationsStatusUpdated: { - status: newStatus, - version, - project: stream, - model - } - }) - } -} - -const anyFunctionRunsHaveStatus = ( - ar: AutomationRunWithFunctionRunsRecord, - status: AutomationRunStatus -) => ar.functionRuns.some((st) => st.status === status) - -const anyFunctionRunsHaveFailed = (ar: AutomationRunWithFunctionRunsRecord): boolean => - anyFunctionRunsHaveStatus(ar, AutomationRunStatus.Failed) - -const anyFunctionRunsRunning = (ar: AutomationRunWithFunctionRunsRecord): boolean => - anyFunctionRunsHaveStatus(ar, AutomationRunStatus.Running) - -const anyFunctionRunsInitializing = ( - ar: AutomationRunWithFunctionRunsRecord -): boolean => anyFunctionRunsHaveStatus(ar, AutomationRunStatus.Initializing) - -export const getAutomationsStatus = async ({ - projectId, - modelId, - versionId -}: { - projectId: string - modelId: string - versionId: string -}) => { - const automationRunRecords = await getLatestAutomationRunsFor({ - projectId, - modelId, - versionId - }) - if (!automationRunRecords.length) return null - - const functionRuns = await getFunctionRunsForAutomationRuns( - automationRunRecords.map((r) => r.automationRunId) - ) - const runsWithFunctionRuns: AutomationRunWithFunctionRunsRecord[] = - automationRunRecords.map((ar) => { - return { - ...ar, - functionRuns: Object.values(functionRuns[ar.automationRunId] || {}) - } - }) - - const automationRuns: Array< - Merge - > = runsWithFunctionRuns.map((ar) => { - let status: AutomationRunStatus = AutomationRunStatus.Succeeded - if (anyFunctionRunsHaveFailed(ar)) { - status = AutomationRunStatus.Failed - } else if (anyFunctionRunsRunning(ar)) { - status = AutomationRunStatus.Running - } else if (anyFunctionRunsInitializing(ar)) { - status = AutomationRunStatus.Initializing - } - return { ..._.cloneDeep(ar), status, id: ar.automationRunId } - }) - - const failedAutomations = automationRuns.filter( - (a) => a.status === AutomationRunStatus.Failed - ) - - const runningAutomations = automationRuns.filter( - (a) => a.status === AutomationRunStatus.Running - ) - const initializingAutomations = automationRuns.filter( - (a) => a.status === AutomationRunStatus.Initializing - ) - - let status = AutomationRunStatus.Succeeded - let statusMessage = 'All automations have succeeded' - - if (failedAutomations.length) { - status = AutomationRunStatus.Failed - statusMessage = 'Some automations have failed:' - for (const fa of failedAutomations) { - for (const functionRunStatus of fa.functionRuns) { - if (functionRunStatus.status === AutomationRunStatus.Failed) - statusMessage += `\n${functionRunStatus.statusMessage}` - } - } - } else if (runningAutomations.length) { - status = AutomationRunStatus.Running - statusMessage = 'Some automations are running' - } else if (initializingAutomations.length) { - status = AutomationRunStatus.Initializing - statusMessage = 'Some automations are initializing' - } - return { - status, - automationRuns, - statusMessage, - id: versionId - } -} diff --git a/packages/server/modules/betaAutomations/services/results.ts b/packages/server/modules/betaAutomations/services/results.ts deleted file mode 100644 index e96bfa220..000000000 --- a/packages/server/modules/betaAutomations/services/results.ts +++ /dev/null @@ -1,10 +0,0 @@ -import { - Results, - CurrentVersionResults -} from '@/modules/betaAutomations/helpers/inputTypes' - -export const formatResults = (results: Results): CurrentVersionResults => { - // TODO: As new versions are introduced, make sure this function is updated - // and able to convert all of them to `CurrentVersionResults` - return results -} diff --git a/packages/server/modules/core/dbSchema.ts b/packages/server/modules/core/dbSchema.ts index ba559d89b..09a1cfebd 100644 --- a/packages/server/modules/core/dbSchema.ts +++ b/packages/server/modules/core/dbSchema.ts @@ -489,46 +489,6 @@ export const FileUploads = buildTableHelper('file_uploads', [ 'convertedCommitId' ]) -export const BetaAutomations = buildTableHelper('beta_automations', [ - 'automationId', - 'automationRevisionId', - 'automationName', - 'projectId', - 'modelId', - 'createdAt', - 'updatedAt', - 'webhookId' -]) - -export const BetaAutomationRuns = buildTableHelper('beta_automation_runs', [ - 'automationId', - 'automationRevisionId', - 'automationRunId', - 'versionId', - 'createdAt', - 'updatedAt' -]) - -export const BetaAutomationFunctionRuns = buildTableHelper( - 'beta_automation_function_runs', - [ - 'automationRunId', - 'functionId', - 'functionName', - 'functionLogo', - 'elapsed', - 'status', - 'contextView', - 'statusMessage', - 'results' - ] -) - -export const BetaAutomationFunctionRunsResultVersions = buildTableHelper( - 'beta_automation_function_runs_result_versions', - ['automationRunId', 'functionId', 'resultVersionId'] -) - export const ServerAppsScopes = buildTableHelper('server_apps_scopes', [ 'appId', 'scopeName' diff --git a/packages/server/modules/core/graph/generated/graphql.ts b/packages/server/modules/core/graph/generated/graphql.ts index 55ac15129..53ffaf7f9 100644 --- a/packages/server/modules/core/graph/generated/graphql.ts +++ b/packages/server/modules/core/graph/generated/graphql.ts @@ -4,7 +4,6 @@ import { StreamAccessRequestGraphQLReturn } from '@/modules/accessrequests/helpe import { CommentReplyAuthorCollectionGraphQLReturn, CommentGraphQLReturn } from '@/modules/comments/helpers/graphTypes'; import { PendingStreamCollaboratorGraphQLReturn } from '@/modules/serverinvites/helpers/graphTypes'; import { FileUploadGraphQLReturn } from '@/modules/fileuploads/helpers/types'; -import { AutomationFunctionRunGraphQLReturn } from '@/modules/betaAutomations/helpers/graphTypes'; import { AutomateFunctionGraphQLReturn, AutomateFunctionReleaseGraphQLReturn, AutomationGraphQLReturn, AutomationRevisionGraphQLReturn, AutomationRevisionFunctionGraphQLReturn, AutomateRunGraphQLReturn, AutomationRunTriggerGraphQLReturn, AutomationRevisionTriggerDefinitionGraphQLReturn, AutomateFunctionRunGraphQLReturn, TriggeredAutomationsStatusGraphQLReturn, ProjectAutomationMutationsGraphQLReturn, ProjectTriggeredAutomationsStatusUpdatedMessageGraphQLReturn, ProjectAutomationsUpdatedMessageGraphQLReturn, UserAutomateInfoGraphQLReturn } from '@/modules/automate/helpers/graphTypes'; import { GraphQLContext } from '@/modules/shared/helpers/typeHelper'; export type Maybe = T | null; @@ -384,62 +383,6 @@ export type AutomationCollection = { totalCount: Scalars['Int']['output']; }; -export type AutomationCreateInput = { - automationId: Scalars['String']['input']; - automationName: Scalars['String']['input']; - automationRevisionId: Scalars['String']['input']; - modelId: Scalars['String']['input']; - projectId: Scalars['String']['input']; - webhookId?: InputMaybe; -}; - -export type AutomationFunctionRun = { - __typename?: 'AutomationFunctionRun'; - contextView?: Maybe; - elapsed: Scalars['Float']['output']; - functionId: Scalars['String']['output']; - functionLogo?: Maybe; - functionName: Scalars['String']['output']; - id: Scalars['ID']['output']; - resultVersions: Array; - /** - * NOTE: this is the schema for the results field below! - * Current schema: { - * version: "1.0.0", - * values: { - * objectResults: Record | null - * visualoverrides: Records | null - * }[]> - * blobIds?: string[] - * } - * } - */ - results?: Maybe; - status: AutomationRunStatus; - statusMessage?: Maybe; -}; - -export type AutomationMutations = { - __typename?: 'AutomationMutations'; - create: Scalars['Boolean']['output']; - functionRunStatusReport: Scalars['Boolean']['output']; -}; - - -export type AutomationMutationsCreateArgs = { - input: AutomationCreateInput; -}; - - -export type AutomationMutationsFunctionRunStatusReportArgs = { - input: AutomationRunStatusUpdateInput; -}; - export type AutomationRevision = { __typename?: 'AutomationRevision'; functions: Array; @@ -463,44 +406,8 @@ export type AutomationRevisionFunction = { export type AutomationRevisionTriggerDefinition = VersionCreatedTriggerDefinition; -export type AutomationRun = { - __typename?: 'AutomationRun'; - automationId: Scalars['String']['output']; - automationName: Scalars['String']['output']; - createdAt: Scalars['DateTime']['output']; - functionRuns: Array; - id: Scalars['ID']['output']; - /** Resolved from all function run statuses */ - status: AutomationRunStatus; - updatedAt: Scalars['DateTime']['output']; - versionId: Scalars['String']['output']; -}; - -export enum AutomationRunStatus { - Failed = 'FAILED', - Initializing = 'INITIALIZING', - Running = 'RUNNING', - Succeeded = 'SUCCEEDED' -} - -export type AutomationRunStatusUpdateInput = { - automationId: Scalars['String']['input']; - automationRevisionId: Scalars['String']['input']; - automationRunId: Scalars['String']['input']; - functionRuns: Array; - versionId: Scalars['String']['input']; -}; - export type AutomationRunTrigger = VersionCreatedTrigger; -export type AutomationsStatus = { - __typename?: 'AutomationsStatus'; - automationRuns: Array; - id: Scalars['ID']['output']; - status: AutomationRunStatus; - statusMessage?: Maybe; -}; - export type AvatarUser = { __typename?: 'AvatarUser'; avatar?: Maybe; @@ -950,27 +857,6 @@ export type FileUpload = { userId: Scalars['String']['output']; }; -export type FunctionRunStatusInput = { - contextView?: InputMaybe; - elapsed: Scalars['Float']['input']; - functionId: Scalars['String']['input']; - functionLogo?: InputMaybe; - functionName: Scalars['String']['input']; - resultVersionIds: Array; - /** - * Current schema: { - * version: "1.0.0", - * values: { - * speckleObjects: Record - * blobIds?: string[] - * } - * } - */ - results?: InputMaybe; - status: AutomationRunStatus; - statusMessage?: InputMaybe; -}; - export type GendoAiRender = { __typename?: 'GendoAIRender'; camera?: Maybe; @@ -1096,7 +982,6 @@ export type LimitedUserTimelineArgs = { export type Model = { __typename?: 'Model'; author: LimitedUser; - automationStatus?: Maybe; automationsStatus?: Maybe; /** Return a model tree of children */ childrenTree: Array; @@ -1229,7 +1114,6 @@ export type Mutation = { appUpdate: Scalars['Boolean']['output']; automateFunctionRunStatusReport: Scalars['Boolean']['output']; automateMutations: AutomateMutations; - automationMutations: AutomationMutations; branchCreate: Scalars['String']['output']; branchDelete: Scalars['Boolean']['output']; branchUpdate: Scalars['Boolean']['output']; @@ -1915,14 +1799,6 @@ export type ProjectAutomationUpdateInput = { name?: InputMaybe; }; -export type ProjectAutomationsStatusUpdatedMessage = { - __typename?: 'ProjectAutomationsStatusUpdatedMessage'; - model: Model; - project: Project; - status: AutomationsStatus; - version: Version; -}; - export type ProjectAutomationsUpdatedMessage = { __typename?: 'ProjectAutomationsUpdatedMessage'; automation?: Maybe; @@ -2889,7 +2765,6 @@ export type Subscription = { commitDeleted?: Maybe; /** Subscribe to commit updated event. */ commitUpdated?: Maybe; - projectAutomationsStatusUpdated: ProjectAutomationsStatusUpdatedMessage; /** Subscribe to updates to automations in the project */ projectAutomationsUpdated: ProjectAutomationsUpdatedMessage; /** @@ -2985,11 +2860,6 @@ export type SubscriptionCommitUpdatedArgs = { }; -export type SubscriptionProjectAutomationsStatusUpdatedArgs = { - projectId: Scalars['String']['input']; -}; - - export type SubscriptionProjectAutomationsUpdatedArgs = { projectId: Scalars['String']['input']; }; @@ -3331,7 +3201,6 @@ export type UserUpdateInput = { export type Version = { __typename?: 'Version'; authorUser?: Maybe; - automationStatus?: Maybe; automationsStatus?: Maybe; /** All comment threads in this version */ commentThreads: CommentCollection; @@ -3634,18 +3503,11 @@ export type ResolversTypes = { AutomateRunTriggerType: AutomateRunTriggerType; Automation: ResolverTypeWrapper; AutomationCollection: ResolverTypeWrapper & { items: Array }>; - AutomationCreateInput: AutomationCreateInput; - AutomationFunctionRun: ResolverTypeWrapper; - AutomationMutations: ResolverTypeWrapper; AutomationRevision: ResolverTypeWrapper; AutomationRevisionCreateFunctionInput: AutomationRevisionCreateFunctionInput; AutomationRevisionFunction: ResolverTypeWrapper; AutomationRevisionTriggerDefinition: ResolverTypeWrapper; - AutomationRun: ResolverTypeWrapper & { functionRuns: Array }>; - AutomationRunStatus: AutomationRunStatus; - AutomationRunStatusUpdateInput: AutomationRunStatusUpdateInput; AutomationRunTrigger: ResolverTypeWrapper; - AutomationsStatus: ResolverTypeWrapper & { automationRuns: Array }>; AvatarUser: ResolverTypeWrapper; BasicGitRepositoryMetadata: ResolverTypeWrapper; BigInt: ResolverTypeWrapper; @@ -3690,7 +3552,6 @@ export type ResolversTypes = { EmailAddress: ResolverTypeWrapper; FileUpload: ResolverTypeWrapper; Float: ResolverTypeWrapper; - FunctionRunStatusInput: FunctionRunStatusInput; GendoAIRender: ResolverTypeWrapper; GendoAIRenderCollection: ResolverTypeWrapper; GendoAIRenderInput: GendoAiRenderInput; @@ -3718,7 +3579,6 @@ export type ResolversTypes = { ProjectAutomationMutations: ResolverTypeWrapper; ProjectAutomationRevisionCreateInput: ProjectAutomationRevisionCreateInput; ProjectAutomationUpdateInput: ProjectAutomationUpdateInput; - ProjectAutomationsStatusUpdatedMessage: ResolverTypeWrapper & { model: ResolversTypes['Model'], project: ResolversTypes['Project'], status: ResolversTypes['AutomationsStatus'], version: ResolversTypes['Version'] }>; ProjectAutomationsUpdatedMessage: ResolverTypeWrapper; ProjectAutomationsUpdatedMessageType: ProjectAutomationsUpdatedMessageType; ProjectCollaborator: ResolverTypeWrapper & { user: ResolversTypes['LimitedUser'] }>; @@ -3858,17 +3718,11 @@ export type ResolversParentTypes = { AutomateRunCollection: Omit & { items: Array }; Automation: AutomationGraphQLReturn; AutomationCollection: Omit & { items: Array }; - AutomationCreateInput: AutomationCreateInput; - AutomationFunctionRun: AutomationFunctionRunGraphQLReturn; - AutomationMutations: MutationsObjectGraphQLReturn; AutomationRevision: AutomationRevisionGraphQLReturn; AutomationRevisionCreateFunctionInput: AutomationRevisionCreateFunctionInput; AutomationRevisionFunction: AutomationRevisionFunctionGraphQLReturn; AutomationRevisionTriggerDefinition: AutomationRevisionTriggerDefinitionGraphQLReturn; - AutomationRun: Omit & { functionRuns: Array }; - AutomationRunStatusUpdateInput: AutomationRunStatusUpdateInput; AutomationRunTrigger: AutomationRunTriggerGraphQLReturn; - AutomationsStatus: Omit & { automationRuns: Array }; AvatarUser: AvatarUser; BasicGitRepositoryMetadata: BasicGitRepositoryMetadata; BigInt: Scalars['BigInt']['output']; @@ -3912,7 +3766,6 @@ export type ResolversParentTypes = { EmailAddress: Scalars['EmailAddress']['output']; FileUpload: FileUploadGraphQLReturn; Float: Scalars['Float']['output']; - FunctionRunStatusInput: FunctionRunStatusInput; GendoAIRender: GendoAiRender; GendoAIRenderCollection: GendoAiRenderCollection; GendoAIRenderInput: GendoAiRenderInput; @@ -3940,7 +3793,6 @@ export type ResolversParentTypes = { ProjectAutomationMutations: ProjectAutomationMutationsGraphQLReturn; ProjectAutomationRevisionCreateInput: ProjectAutomationRevisionCreateInput; ProjectAutomationUpdateInput: ProjectAutomationUpdateInput; - ProjectAutomationsStatusUpdatedMessage: Omit & { model: ResolversParentTypes['Model'], project: ResolversParentTypes['Project'], status: ResolversParentTypes['AutomationsStatus'], version: ResolversParentTypes['Version'] }; ProjectAutomationsUpdatedMessage: ProjectAutomationsUpdatedMessageGraphQLReturn; ProjectCollaborator: Omit & { user: ResolversParentTypes['LimitedUser'] }; ProjectCollection: Omit & { items: Array }; @@ -4265,26 +4117,6 @@ export type AutomationCollectionResolvers; }; -export type AutomationFunctionRunResolvers = { - contextView?: Resolver, ParentType, ContextType>; - elapsed?: Resolver; - functionId?: Resolver; - functionLogo?: Resolver, ParentType, ContextType>; - functionName?: Resolver; - id?: Resolver; - resultVersions?: Resolver, ParentType, ContextType>; - results?: Resolver, ParentType, ContextType>; - status?: Resolver; - statusMessage?: Resolver, ParentType, ContextType>; - __isTypeOf?: IsTypeOfResolverFn; -}; - -export type AutomationMutationsResolvers = { - create?: Resolver>; - functionRunStatusReport?: Resolver>; - __isTypeOf?: IsTypeOfResolverFn; -}; - export type AutomationRevisionResolvers = { functions?: Resolver, ParentType, ContextType>; id?: Resolver; @@ -4302,30 +4134,10 @@ export type AutomationRevisionTriggerDefinitionResolvers; }; -export type AutomationRunResolvers = { - automationId?: Resolver; - automationName?: Resolver; - createdAt?: Resolver; - functionRuns?: Resolver, ParentType, ContextType>; - id?: Resolver; - status?: Resolver; - updatedAt?: Resolver; - versionId?: Resolver; - __isTypeOf?: IsTypeOfResolverFn; -}; - export type AutomationRunTriggerResolvers = { __resolveType: TypeResolveFn<'VersionCreatedTrigger', ParentType, ContextType>; }; -export type AutomationsStatusResolvers = { - automationRuns?: Resolver, ParentType, ContextType>; - id?: Resolver; - status?: Resolver; - statusMessage?: Resolver, ParentType, ContextType>; - __isTypeOf?: IsTypeOfResolverFn; -}; - export type AvatarUserResolvers = { avatar?: Resolver, ParentType, ContextType>; id?: Resolver; @@ -4569,7 +4381,6 @@ export type LimitedUserResolvers = { author?: Resolver; - automationStatus?: Resolver, ParentType, ContextType>; automationsStatus?: Resolver, ParentType, ContextType>; childrenTree?: Resolver, ParentType, ContextType>; commentThreads?: Resolver>; @@ -4631,7 +4442,6 @@ export type MutationResolvers>; automateFunctionRunStatusReport?: Resolver>; automateMutations?: Resolver; - automationMutations?: Resolver; branchCreate?: Resolver>; branchDelete?: Resolver>; branchUpdate?: Resolver>; @@ -4769,14 +4579,6 @@ export type ProjectAutomationMutationsResolvers; }; -export type ProjectAutomationsStatusUpdatedMessageResolvers = { - model?: Resolver; - project?: Resolver; - status?: Resolver; - version?: Resolver; - __isTypeOf?: IsTypeOfResolverFn; -}; - export type ProjectAutomationsUpdatedMessageResolvers = { automation?: Resolver, ParentType, ContextType>; automationId?: Resolver; @@ -5112,7 +4914,6 @@ export type SubscriptionResolvers, "commitCreated", ParentType, ContextType, RequireFields>; commitDeleted?: SubscriptionResolver, "commitDeleted", ParentType, ContextType, RequireFields>; commitUpdated?: SubscriptionResolver, "commitUpdated", ParentType, ContextType, RequireFields>; - projectAutomationsStatusUpdated?: SubscriptionResolver>; projectAutomationsUpdated?: SubscriptionResolver>; projectCommentsUpdated?: SubscriptionResolver>; projectFileImportUpdated?: SubscriptionResolver>; @@ -5218,7 +5019,6 @@ export type UserSearchResultCollectionResolvers = { authorUser?: Resolver, ParentType, ContextType>; - automationStatus?: Resolver, ParentType, ContextType>; automationsStatus?: Resolver, ParentType, ContextType>; commentThreads?: Resolver>; createdAt?: Resolver; @@ -5346,14 +5146,10 @@ export type Resolvers = { AutomateRunCollection?: AutomateRunCollectionResolvers; Automation?: AutomationResolvers; AutomationCollection?: AutomationCollectionResolvers; - AutomationFunctionRun?: AutomationFunctionRunResolvers; - AutomationMutations?: AutomationMutationsResolvers; AutomationRevision?: AutomationRevisionResolvers; AutomationRevisionFunction?: AutomationRevisionFunctionResolvers; AutomationRevisionTriggerDefinition?: AutomationRevisionTriggerDefinitionResolvers; - AutomationRun?: AutomationRunResolvers; AutomationRunTrigger?: AutomationRunTriggerResolvers; - AutomationsStatus?: AutomationsStatusResolvers; AvatarUser?: AvatarUserResolvers; BasicGitRepositoryMetadata?: BasicGitRepositoryMetadataResolvers; BigInt?: GraphQLScalarType; @@ -5392,7 +5188,6 @@ export type Resolvers = { PendingStreamCollaborator?: PendingStreamCollaboratorResolvers; Project?: ProjectResolvers; ProjectAutomationMutations?: ProjectAutomationMutationsResolvers; - ProjectAutomationsStatusUpdatedMessage?: ProjectAutomationsStatusUpdatedMessageResolvers; ProjectAutomationsUpdatedMessage?: ProjectAutomationsUpdatedMessageResolvers; ProjectCollaborator?: ProjectCollaboratorResolvers; ProjectCollection?: ProjectCollectionResolvers; diff --git a/packages/server/modules/core/loaders.ts b/packages/server/modules/core/loaders.ts index 8f0ea4ebe..5bbcd32e3 100644 --- a/packages/server/modules/core/loaders.ts +++ b/packages/server/modules/core/loaders.ts @@ -55,7 +55,6 @@ import { metaHelpers } from '@/modules/core/helpers/meta' import { Users } from '@/modules/core/dbSchema' import { getStreamPendingModels } from '@/modules/fileuploads/repositories/fileUploads' import { FileUploadRecord } from '@/modules/fileuploads/helpers/types' -import { getAutomationFunctionRunResultVersions } from '@/modules/betaAutomations/repositories/automations' import { getAppScopes } from '@/modules/auth/repositories' import { AutomateRevisionFunctionRecord, @@ -530,25 +529,6 @@ export function buildRequestLoaders( return appIds.map((i) => results[i] || []) }) }, - automationFunctionRuns: { - /** - * Get result versions/commits from function runs - */ - getResultVersions: createLoader< - [automationRunId: string, functionId: string], - CommitRecord[], - string - >( - async (ids) => { - const results = await getAutomationFunctionRunResultVersions(ids.slice()) - return ids.map((i) => { - const [automationRunId, functionId] = i - return results[automationRunId]?.[functionId] || [] - }) - }, - { cacheKeyFn: (key) => `${key[0]}:${key[1]}` } - ) - }, automations: { getFunctionAutomationCount: createLoader(async (functionIds) => { const results = await getFunctionAutomationCounts({ diff --git a/packages/server/modules/cross-server-sync/graph/generated/graphql.ts b/packages/server/modules/cross-server-sync/graph/generated/graphql.ts index e3b54f267..3edd92793 100644 --- a/packages/server/modules/cross-server-sync/graph/generated/graphql.ts +++ b/packages/server/modules/cross-server-sync/graph/generated/graphql.ts @@ -373,62 +373,6 @@ export type AutomationCollection = { totalCount: Scalars['Int']['output']; }; -export type AutomationCreateInput = { - automationId: Scalars['String']['input']; - automationName: Scalars['String']['input']; - automationRevisionId: Scalars['String']['input']; - modelId: Scalars['String']['input']; - projectId: Scalars['String']['input']; - webhookId?: InputMaybe; -}; - -export type AutomationFunctionRun = { - __typename?: 'AutomationFunctionRun'; - contextView?: Maybe; - elapsed: Scalars['Float']['output']; - functionId: Scalars['String']['output']; - functionLogo?: Maybe; - functionName: Scalars['String']['output']; - id: Scalars['ID']['output']; - resultVersions: Array; - /** - * NOTE: this is the schema for the results field below! - * Current schema: { - * version: "1.0.0", - * values: { - * objectResults: Record | null - * visualoverrides: Records | null - * }[]> - * blobIds?: string[] - * } - * } - */ - results?: Maybe; - status: AutomationRunStatus; - statusMessage?: Maybe; -}; - -export type AutomationMutations = { - __typename?: 'AutomationMutations'; - create: Scalars['Boolean']['output']; - functionRunStatusReport: Scalars['Boolean']['output']; -}; - - -export type AutomationMutationsCreateArgs = { - input: AutomationCreateInput; -}; - - -export type AutomationMutationsFunctionRunStatusReportArgs = { - input: AutomationRunStatusUpdateInput; -}; - export type AutomationRevision = { __typename?: 'AutomationRevision'; functions: Array; @@ -452,44 +396,8 @@ export type AutomationRevisionFunction = { export type AutomationRevisionTriggerDefinition = VersionCreatedTriggerDefinition; -export type AutomationRun = { - __typename?: 'AutomationRun'; - automationId: Scalars['String']['output']; - automationName: Scalars['String']['output']; - createdAt: Scalars['DateTime']['output']; - functionRuns: Array; - id: Scalars['ID']['output']; - /** Resolved from all function run statuses */ - status: AutomationRunStatus; - updatedAt: Scalars['DateTime']['output']; - versionId: Scalars['String']['output']; -}; - -export enum AutomationRunStatus { - Failed = 'FAILED', - Initializing = 'INITIALIZING', - Running = 'RUNNING', - Succeeded = 'SUCCEEDED' -} - -export type AutomationRunStatusUpdateInput = { - automationId: Scalars['String']['input']; - automationRevisionId: Scalars['String']['input']; - automationRunId: Scalars['String']['input']; - functionRuns: Array; - versionId: Scalars['String']['input']; -}; - export type AutomationRunTrigger = VersionCreatedTrigger; -export type AutomationsStatus = { - __typename?: 'AutomationsStatus'; - automationRuns: Array; - id: Scalars['ID']['output']; - status: AutomationRunStatus; - statusMessage?: Maybe; -}; - export type AvatarUser = { __typename?: 'AvatarUser'; avatar?: Maybe; @@ -939,27 +847,6 @@ export type FileUpload = { userId: Scalars['String']['output']; }; -export type FunctionRunStatusInput = { - contextView?: InputMaybe; - elapsed: Scalars['Float']['input']; - functionId: Scalars['String']['input']; - functionLogo?: InputMaybe; - functionName: Scalars['String']['input']; - resultVersionIds: Array; - /** - * Current schema: { - * version: "1.0.0", - * values: { - * speckleObjects: Record - * blobIds?: string[] - * } - * } - */ - results?: InputMaybe; - status: AutomationRunStatus; - statusMessage?: InputMaybe; -}; - export type GendoAiRender = { __typename?: 'GendoAIRender'; camera?: Maybe; @@ -1085,7 +972,6 @@ export type LimitedUserTimelineArgs = { export type Model = { __typename?: 'Model'; author: LimitedUser; - automationStatus?: Maybe; automationsStatus?: Maybe; /** Return a model tree of children */ childrenTree: Array; @@ -1218,7 +1104,6 @@ export type Mutation = { appUpdate: Scalars['Boolean']['output']; automateFunctionRunStatusReport: Scalars['Boolean']['output']; automateMutations: AutomateMutations; - automationMutations: AutomationMutations; branchCreate: Scalars['String']['output']; branchDelete: Scalars['Boolean']['output']; branchUpdate: Scalars['Boolean']['output']; @@ -1904,14 +1789,6 @@ export type ProjectAutomationUpdateInput = { name?: InputMaybe; }; -export type ProjectAutomationsStatusUpdatedMessage = { - __typename?: 'ProjectAutomationsStatusUpdatedMessage'; - model: Model; - project: Project; - status: AutomationsStatus; - version: Version; -}; - export type ProjectAutomationsUpdatedMessage = { __typename?: 'ProjectAutomationsUpdatedMessage'; automation?: Maybe; @@ -2878,7 +2755,6 @@ export type Subscription = { commitDeleted?: Maybe; /** Subscribe to commit updated event. */ commitUpdated?: Maybe; - projectAutomationsStatusUpdated: ProjectAutomationsStatusUpdatedMessage; /** Subscribe to updates to automations in the project */ projectAutomationsUpdated: ProjectAutomationsUpdatedMessage; /** @@ -2974,11 +2850,6 @@ export type SubscriptionCommitUpdatedArgs = { }; -export type SubscriptionProjectAutomationsStatusUpdatedArgs = { - projectId: Scalars['String']['input']; -}; - - export type SubscriptionProjectAutomationsUpdatedArgs = { projectId: Scalars['String']['input']; }; @@ -3320,7 +3191,6 @@ export type UserUpdateInput = { export type Version = { __typename?: 'Version'; authorUser?: Maybe; - automationStatus?: Maybe; automationsStatus?: Maybe; /** All comment threads in this version */ commentThreads: CommentCollection; diff --git a/packages/server/modules/index.js b/packages/server/modules/index.js index f05775d36..394a3df8f 100644 --- a/packages/server/modules/index.js +++ b/packages/server/modules/index.js @@ -48,7 +48,6 @@ const getEnabledModuleNames = () => { 'activitystream', 'apiexplorer', 'auth', - 'betaAutomations', 'blobstorage', 'comments', 'core', diff --git a/packages/server/modules/shared/utils/subscriptions.ts b/packages/server/modules/shared/utils/subscriptions.ts index 0b824e207..be03ecfc0 100644 --- a/packages/server/modules/shared/utils/subscriptions.ts +++ b/packages/server/modules/shared/utils/subscriptions.ts @@ -5,9 +5,6 @@ import Redis from 'ioredis' import { withFilter } from 'graphql-subscriptions' import { GraphQLContext } from '@/modules/shared/helpers/typeHelper' import { - AutomationRun, - AutomationsStatus, - ProjectAutomationsStatusUpdatedMessage, ProjectCommentsUpdatedMessage, ProjectFileImportUpdatedMessage, ProjectModelsUpdatedMessage, @@ -16,7 +13,6 @@ import { ProjectUpdatedMessage, ProjectVersionsPreviewGeneratedMessage, ProjectVersionsUpdatedMessage, - SubscriptionProjectAutomationsStatusUpdatedArgs, SubscriptionProjectAutomationsUpdatedArgs, SubscriptionProjectCommentsUpdatedArgs, SubscriptionProjectFileImportUpdatedArgs, @@ -44,7 +40,6 @@ import { } from '@/modules/core/helpers/graphTypes' import { CommentGraphQLReturn } from '@/modules/comments/helpers/graphTypes' import { FileUploadGraphQLReturn } from '@/modules/fileuploads/helpers/types' -import { AutomationFunctionRunGraphQLReturn } from '@/modules/betaAutomations/helpers/graphTypes' import { ProjectTriggeredAutomationsStatusUpdatedMessageGraphQLReturn, ProjectAutomationsUpdatedMessageGraphQLReturn @@ -100,7 +95,6 @@ export enum ProjectSubscriptions { ProjectVersionsPreviewGenerated = 'PROJECT_VERSIONS_PREVIEW_GENERATED', ProjectCommentsUpdated = 'PROJECT_COMMENTS_UPDATED', // old beta subscription: - ProjectAutomationStatusUpdated = 'PROJECT_AUTOMATION_STATUS_UPDATED', ProjectTriggeredAutomationsStatusUpdated = 'PROJECT_TRIGGERED_AUTOMATION_STATUS_UPDATED', ProjectAutomationsUpdated = 'PROJECT_AUTOMATIONS_UPDATED', ProjectVersionGendoAIRenderUpdated = 'PROJECT_VERSION_GENDO_AI_RENDER_UPDATED', @@ -229,31 +223,6 @@ type SubscriptionTypeMap = { } variables: SubscriptionProjectFileImportUpdatedArgs } - [ProjectSubscriptions.ProjectAutomationStatusUpdated]: { - payload: { - projectAutomationsStatusUpdated: Merge< - ProjectAutomationsStatusUpdatedMessage, - { - version: VersionGraphQLReturn - model: ModelGraphQLReturn - project: ProjectGraphQLReturn - status: Merge< - AutomationsStatus, - { - automationRuns: Array< - Merge< - AutomationRun, - { functionRuns: AutomationFunctionRunGraphQLReturn[] } - > - > - } - > - } - > - projectId: string - } - variables: SubscriptionProjectAutomationsStatusUpdatedArgs - } [ProjectSubscriptions.ProjectTriggeredAutomationsStatusUpdated]: { payload: { projectTriggeredAutomationsStatusUpdated: ProjectTriggeredAutomationsStatusUpdatedMessageGraphQLReturn diff --git a/packages/server/test/graphql/generated/graphql.ts b/packages/server/test/graphql/generated/graphql.ts index 9d8edbb83..6236283e9 100644 --- a/packages/server/test/graphql/generated/graphql.ts +++ b/packages/server/test/graphql/generated/graphql.ts @@ -374,62 +374,6 @@ export type AutomationCollection = { totalCount: Scalars['Int']['output']; }; -export type AutomationCreateInput = { - automationId: Scalars['String']['input']; - automationName: Scalars['String']['input']; - automationRevisionId: Scalars['String']['input']; - modelId: Scalars['String']['input']; - projectId: Scalars['String']['input']; - webhookId?: InputMaybe; -}; - -export type AutomationFunctionRun = { - __typename?: 'AutomationFunctionRun'; - contextView?: Maybe; - elapsed: Scalars['Float']['output']; - functionId: Scalars['String']['output']; - functionLogo?: Maybe; - functionName: Scalars['String']['output']; - id: Scalars['ID']['output']; - resultVersions: Array; - /** - * NOTE: this is the schema for the results field below! - * Current schema: { - * version: "1.0.0", - * values: { - * objectResults: Record | null - * visualoverrides: Records | null - * }[]> - * blobIds?: string[] - * } - * } - */ - results?: Maybe; - status: AutomationRunStatus; - statusMessage?: Maybe; -}; - -export type AutomationMutations = { - __typename?: 'AutomationMutations'; - create: Scalars['Boolean']['output']; - functionRunStatusReport: Scalars['Boolean']['output']; -}; - - -export type AutomationMutationsCreateArgs = { - input: AutomationCreateInput; -}; - - -export type AutomationMutationsFunctionRunStatusReportArgs = { - input: AutomationRunStatusUpdateInput; -}; - export type AutomationRevision = { __typename?: 'AutomationRevision'; functions: Array; @@ -453,44 +397,8 @@ export type AutomationRevisionFunction = { export type AutomationRevisionTriggerDefinition = VersionCreatedTriggerDefinition; -export type AutomationRun = { - __typename?: 'AutomationRun'; - automationId: Scalars['String']['output']; - automationName: Scalars['String']['output']; - createdAt: Scalars['DateTime']['output']; - functionRuns: Array; - id: Scalars['ID']['output']; - /** Resolved from all function run statuses */ - status: AutomationRunStatus; - updatedAt: Scalars['DateTime']['output']; - versionId: Scalars['String']['output']; -}; - -export enum AutomationRunStatus { - Failed = 'FAILED', - Initializing = 'INITIALIZING', - Running = 'RUNNING', - Succeeded = 'SUCCEEDED' -} - -export type AutomationRunStatusUpdateInput = { - automationId: Scalars['String']['input']; - automationRevisionId: Scalars['String']['input']; - automationRunId: Scalars['String']['input']; - functionRuns: Array; - versionId: Scalars['String']['input']; -}; - export type AutomationRunTrigger = VersionCreatedTrigger; -export type AutomationsStatus = { - __typename?: 'AutomationsStatus'; - automationRuns: Array; - id: Scalars['ID']['output']; - status: AutomationRunStatus; - statusMessage?: Maybe; -}; - export type AvatarUser = { __typename?: 'AvatarUser'; avatar?: Maybe; @@ -940,27 +848,6 @@ export type FileUpload = { userId: Scalars['String']['output']; }; -export type FunctionRunStatusInput = { - contextView?: InputMaybe; - elapsed: Scalars['Float']['input']; - functionId: Scalars['String']['input']; - functionLogo?: InputMaybe; - functionName: Scalars['String']['input']; - resultVersionIds: Array; - /** - * Current schema: { - * version: "1.0.0", - * values: { - * speckleObjects: Record - * blobIds?: string[] - * } - * } - */ - results?: InputMaybe; - status: AutomationRunStatus; - statusMessage?: InputMaybe; -}; - export type GendoAiRender = { __typename?: 'GendoAIRender'; camera?: Maybe; @@ -1086,7 +973,6 @@ export type LimitedUserTimelineArgs = { export type Model = { __typename?: 'Model'; author: LimitedUser; - automationStatus?: Maybe; automationsStatus?: Maybe; /** Return a model tree of children */ childrenTree: Array; @@ -1219,7 +1105,6 @@ export type Mutation = { appUpdate: Scalars['Boolean']['output']; automateFunctionRunStatusReport: Scalars['Boolean']['output']; automateMutations: AutomateMutations; - automationMutations: AutomationMutations; branchCreate: Scalars['String']['output']; branchDelete: Scalars['Boolean']['output']; branchUpdate: Scalars['Boolean']['output']; @@ -1905,14 +1790,6 @@ export type ProjectAutomationUpdateInput = { name?: InputMaybe; }; -export type ProjectAutomationsStatusUpdatedMessage = { - __typename?: 'ProjectAutomationsStatusUpdatedMessage'; - model: Model; - project: Project; - status: AutomationsStatus; - version: Version; -}; - export type ProjectAutomationsUpdatedMessage = { __typename?: 'ProjectAutomationsUpdatedMessage'; automation?: Maybe; @@ -2879,7 +2756,6 @@ export type Subscription = { commitDeleted?: Maybe; /** Subscribe to commit updated event. */ commitUpdated?: Maybe; - projectAutomationsStatusUpdated: ProjectAutomationsStatusUpdatedMessage; /** Subscribe to updates to automations in the project */ projectAutomationsUpdated: ProjectAutomationsUpdatedMessage; /** @@ -2975,11 +2851,6 @@ export type SubscriptionCommitUpdatedArgs = { }; -export type SubscriptionProjectAutomationsStatusUpdatedArgs = { - projectId: Scalars['String']['input']; -}; - - export type SubscriptionProjectAutomationsUpdatedArgs = { projectId: Scalars['String']['input']; }; @@ -3321,7 +3192,6 @@ export type UserUpdateInput = { export type Version = { __typename?: 'Version'; authorUser?: Maybe; - automationStatus?: Maybe; automationsStatus?: Maybe; /** All comment threads in this version */ commentThreads: CommentCollection;