diff --git a/packages/dui3/lib/common/generated/gql/graphql.ts b/packages/dui3/lib/common/generated/gql/graphql.ts index aa36a33fb..f3dce427d 100644 --- a/packages/dui3/lib/common/generated/gql/graphql.ts +++ b/packages/dui3/lib/common/generated/gql/graphql.ts @@ -18,7 +18,6 @@ export type Scalars = { 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: { 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: { input: {}; output: {}; } }; @@ -201,6 +200,8 @@ export type AutomateAuthCodePayloadTest = { 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']; @@ -373,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; @@ -452,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; @@ -529,7 +438,10 @@ export type BlobMetadataCollection = { export type Branch = { __typename?: 'Branch'; - /** All the recent activity on this branch in chronological order */ + /** + * All the recent activity on this branch in chronological order + * @deprecated Part of the old API surface and will be removed in the future. + */ activity?: Maybe; author?: Maybe; commits?: Maybe; @@ -744,7 +656,10 @@ export type CommentThreadActivityMessage = { export type Commit = { __typename?: 'Commit'; - /** All the recent activity on this commit in chronological order */ + /** + * All the recent activity on this commit in chronological order + * @deprecated Part of the old API surface and will be removed in the future. + */ activity?: Maybe; authorAvatar?: Maybe; authorId?: Maybe; @@ -760,6 +675,7 @@ export type Commit = { * ... * } * ``` + * @deprecated Part of the old API surface and will be removed in the future. */ commentCount: Scalars['Int']['output']; createdAt?: Maybe; @@ -881,6 +797,16 @@ export type CreateModelInput = { projectId: Scalars['ID']['input']; }; +export type CreateVersionInput = { + message?: InputMaybe; + modelId: Scalars['String']['input']; + objectId: Scalars['String']['input']; + parents?: InputMaybe>; + projectId: Scalars['String']['input']; + sourceApplication?: InputMaybe; + totalChildrenCount?: InputMaybe; +}; + export type DeleteModelInput = { id: Scalars['ID']['input']; projectId: Scalars['ID']['input']; @@ -934,27 +860,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; @@ -1013,21 +918,36 @@ export type LegacyCommentViewerData = { */ export type LimitedUser = { __typename?: 'LimitedUser'; - /** All the recent activity from this user in chronological order */ + /** + * All the recent activity from this user in chronological order + * @deprecated Part of the old API surface and will be removed in the future. + */ activity?: Maybe; avatar?: Maybe; bio?: Maybe; - /** Get public stream commits authored by the user */ + /** + * Get public stream commits authored by the user + * @deprecated Part of the old API surface and will be removed in the future. + */ commits?: Maybe; company?: Maybe; id: Scalars['ID']['output']; name: Scalars['String']['output']; role?: Maybe; - /** Returns all discoverable streams that the user is a collaborator on */ + /** + * Returns all discoverable streams that the user is a collaborator on + * @deprecated Part of the old API surface and will be removed in the future. + */ streams: StreamCollection; - /** The user's timeline in chronological order */ + /** + * The user's timeline in chronological order + * @deprecated Part of the old API surface and will be removed in the future. + */ timeline?: Maybe; - /** Total amount of favorites attached to streams owned by the user */ + /** + * Total amount of favorites attached to streams owned by the user + * @deprecated Part of the old API surface and will be removed in the future. + */ totalOwnedStreamsFavorites: Scalars['Int']['output']; verified?: Maybe; }; @@ -1077,10 +997,16 @@ export type LimitedUserTimelineArgs = { limit?: Scalars['Int']['input']; }; +export type MarkReceivedVersionInput = { + message?: InputMaybe; + projectId: Scalars['String']['input']; + sourceApplication: Scalars['String']['input']; + versionId: Scalars['String']['input']; +}; + export type Model = { __typename?: 'Model'; author: LimitedUser; - automationStatus?: Maybe; automationsStatus?: Maybe; /** Return a model tree of children */ childrenTree: Array; @@ -1213,9 +1139,11 @@ export type Mutation = { appUpdate: Scalars['Boolean']['output']; automateFunctionRunStatusReport: Scalars['Boolean']['output']; automateMutations: AutomateMutations; - automationMutations: AutomationMutations; + /** @deprecated Part of the old API surface and will be removed in the future. Use ModelMutations.create instead. */ branchCreate: Scalars['String']['output']; + /** @deprecated Part of the old API surface and will be removed in the future. Use ModelMutations.delete instead. */ branchDelete: Scalars['Boolean']['output']; + /** @deprecated Part of the old API surface and will be removed in the future. Use ModelMutations.update instead. */ branchUpdate: Scalars['Boolean']['output']; /** Broadcast user activity in the viewer */ broadcastViewerUserActivity: Scalars['Boolean']['output']; @@ -1245,13 +1173,23 @@ export type Mutation = { * @deprecated Use commentMutations version */ commentView: Scalars['Boolean']['output']; + /** @deprecated Part of the old API surface and will be removed in the future. Use VersionMutations.create instead. */ commitCreate: Scalars['String']['output']; + /** @deprecated Part of the old API surface and will be removed in the future. Use VersionMutations.delete instead. */ commitDelete: Scalars['Boolean']['output']; + /** @deprecated Part of the old API surface and will be removed in the future. Use VersionMutations.markReceived instead. */ commitReceive: Scalars['Boolean']['output']; + /** @deprecated Part of the old API surface and will be removed in the future. Use VersionMutations.update/moveToModel instead. */ commitUpdate: Scalars['Boolean']['output']; - /** Delete a batch of commits */ + /** + * Delete a batch of commits + * @deprecated Part of the old API surface and will be removed in the future. Use VersionMutations.delete instead. + */ commitsDelete: Scalars['Boolean']['output']; - /** Move a batch of commits to a new branch */ + /** + * Move a batch of commits to a new branch + * @deprecated Part of the old API surface and will be removed in the future. Use VersionMutations.moveToModel instead. + */ commitsMove: Scalars['Boolean']['output']; /** * Delete a pending invite @@ -1264,7 +1202,8 @@ export type Mutation = { */ inviteResend: Scalars['Boolean']['output']; modelMutations: ModelMutations; - objectCreate: Array>; + /** @deprecated Part of the old API surface and will be removed in the future. */ + objectCreate: Array; projectMutations: ProjectMutations; /** (Re-)send the account verification e-mail */ requestVerification: Scalars['Boolean']['output']; @@ -1274,37 +1213,71 @@ export type Mutation = { serverInviteBatchCreate: Scalars['Boolean']['output']; /** Invite a new user to the speckle server and return the invite ID */ serverInviteCreate: Scalars['Boolean']['output']; - /** Request access to a specific stream */ + /** + * Request access to a specific stream + * @deprecated Part of the old API surface and will be removed in the future. Use ProjectAccessRequestMutations.create instead. + */ streamAccessRequestCreate: StreamAccessRequest; - /** Accept or decline a stream access request. Must be a stream owner to invoke this. */ + /** + * Accept or decline a stream access request. Must be a stream owner to invoke this. + * @deprecated Part of the old API surface and will be removed in the future. Use ProjectAccessRequestMutations.use instead. + */ streamAccessRequestUse: Scalars['Boolean']['output']; - /** Creates a new stream. */ + /** + * Creates a new stream. + * @deprecated Part of the old API surface and will be removed in the future. Use ProjectMutations.create instead. + */ streamCreate?: Maybe; - /** Deletes an existing stream. */ + /** + * Deletes an existing stream. + * @deprecated Part of the old API surface and will be removed in the future. Use ProjectMutations.delete instead. + */ streamDelete: Scalars['Boolean']['output']; + /** @deprecated Part of the old API surface and will be removed in the future. */ streamFavorite?: Maybe; - /** Note: The required scope to invoke this is not given out to app or personal access tokens */ + /** + * Note: The required scope to invoke this is not given out to app or personal access tokens + * @deprecated Part of the old API surface and will be removed in the future. Use ProjectInviteMutations.batchCreate instead. + */ 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 + * @deprecated Part of the old API surface and will be removed in the future. Use ProjectInviteMutations.cancel instead. */ 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 + * @deprecated Part of the old API surface and will be removed in the future. Use ProjectInviteMutations.create instead. */ streamInviteCreate: Scalars['Boolean']['output']; - /** Accept or decline a stream invite */ + /** + * Accept or decline a stream invite + * @deprecated Part of the old API surface and will be removed in the future. Use ProjectInviteMutations.use instead. + */ streamInviteUse: Scalars['Boolean']['output']; - /** Remove yourself from stream collaborators (not possible for the owner) */ + /** + * Remove yourself from stream collaborators (not possible for the owner) + * @deprecated Part of the old API surface and will be removed in the future. Use ProjectMutations.leave instead. + */ streamLeave: Scalars['Boolean']['output']; - /** Revokes the permissions of a user on a given stream. */ + /** + * Revokes the permissions of a user on a given stream. + * @deprecated Part of the old API surface and will be removed in the future. Use ProjectMutations.updateRole instead. + */ streamRevokePermission?: Maybe; - /** Updates an existing stream. */ + /** + * Updates an existing stream. + * @deprecated Part of the old API surface and will be removed in the future. Use ProjectMutations.update instead. + */ streamUpdate: Scalars['Boolean']['output']; - /** Update permissions of a user on a given stream. */ + /** + * Update permissions of a user on a given stream. + * @deprecated Part of the old API surface and will be removed in the future. Use ProjectMutations.updateRole instead. + */ streamUpdatePermission?: Maybe; + /** @deprecated Part of the old API surface and will be removed in the future. Use ProjectMutations.batchDelete instead. */ streamsDelete: Scalars['Boolean']['output']; /** * Used for broadcasting real time typing status in comment threads. Does not persist any info. @@ -1621,6 +1594,7 @@ export type MutationWebhookUpdateArgs = { export type Object = { __typename?: 'Object'; + /** @deprecated Not implemented. */ applicationId?: Maybe; /** * Get any objects that this object references. In the case of commits, this will give you a commit's constituent objects. @@ -1636,6 +1610,7 @@ export type Object = { * ... * } * ``` + * @deprecated Part of the old API surface and will be removed in the future. */ commentCount: Scalars['Int']['output']; createdAt?: Maybe; @@ -1659,7 +1634,7 @@ export type ObjectChildrenArgs = { export type ObjectCollection = { __typename?: 'ObjectCollection'; cursor?: Maybe; - objects: Array>; + objects: Array; totalCount: Scalars['Int']['output']; }; @@ -1699,7 +1674,9 @@ export type PendingStreamCollaborator = { projectId: Scalars['String']['output']; projectName: Scalars['String']['output']; role: Scalars['String']['output']; + /** @deprecated Use projectId instead */ streamId: Scalars['String']['output']; + /** @deprecated Use projectName instead */ streamName: Scalars['String']['output']; /** E-mail address or name of the invited user */ title: Scalars['String']['output']; @@ -1718,6 +1695,8 @@ export type Project = { blob?: Maybe; /** Get the metadata collection of blobs stored for this stream. */ blobs?: Maybe; + /** Get specific project comment/thread by ID */ + comment?: Maybe; /** All comment threads in this project */ commentThreads: ProjectCommentCollection; createdAt: Scalars['DateTime']['output']; @@ -1727,6 +1706,8 @@ export type Project = { invitedTeam?: Maybe>; /** Returns a specific model by its ID */ model: Model; + /** Retrieve a specific project model by its ID */ + modelByName: Model; /** Return a model tree of children for the specified model name */ modelChildrenTree: Array; /** Returns a flat list of all models */ @@ -1737,6 +1718,9 @@ export type Project = { */ modelsTree: ModelsTreeItemCollection; name: Scalars['String']['output']; + object?: Maybe; + /** Pending project access requests */ + pendingAccessRequests?: Maybe>; /** 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. */ @@ -1780,6 +1764,11 @@ export type ProjectBlobsArgs = { }; +export type ProjectCommentArgs = { + id: Scalars['String']['input']; +}; + + export type ProjectCommentThreadsArgs = { cursor?: InputMaybe; filter?: InputMaybe; @@ -1792,6 +1781,11 @@ export type ProjectModelArgs = { }; +export type ProjectModelByNameArgs = { + name: Scalars['String']['input']; +}; + + export type ProjectModelChildrenTreeArgs = { fullName: Scalars['String']['input']; }; @@ -1811,6 +1805,11 @@ export type ProjectModelsTreeArgs = { }; +export type ProjectObjectArgs = { + id: Scalars['String']['input']; +}; + + export type ProjectPendingImportedModelsArgs = { limit?: InputMaybe; }; @@ -1837,6 +1836,38 @@ export type ProjectWebhooksArgs = { id?: InputMaybe; }; +/** Created when a user requests to become a contributor on a project */ +export type ProjectAccessRequest = { + __typename?: 'ProjectAccessRequest'; + createdAt: Scalars['DateTime']['output']; + id: Scalars['ID']['output']; + /** Can only be selected if authed user has proper access */ + project: Project; + projectId: Scalars['String']['output']; + requester: LimitedUser; + requesterId: Scalars['String']['output']; +}; + +export type ProjectAccessRequestMutations = { + __typename?: 'ProjectAccessRequestMutations'; + /** Request access to a specific project */ + create: ProjectAccessRequest; + /** Accept or decline a project access request. Must be a project owner to invoke this. */ + use: Project; +}; + + +export type ProjectAccessRequestMutationsCreateArgs = { + projectId: Scalars['String']['input']; +}; + + +export type ProjectAccessRequestMutationsUseArgs = { + accept: Scalars['Boolean']['input']; + requestId: Scalars['String']['input']; + role?: StreamRole; +}; + export type ProjectAutomationCreateInput = { enabled: Scalars['Boolean']['input']; name: Scalars['String']['input']; @@ -1899,14 +1930,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; @@ -1979,6 +2002,7 @@ export type ProjectCreateInput = { description?: InputMaybe; name?: InputMaybe; visibility?: InputMaybe; + workspaceId?: InputMaybe; }; export type ProjectFileImportUpdatedMessage = { @@ -2087,7 +2111,11 @@ export enum ProjectModelsUpdatedMessageType { export type ProjectMutations = { __typename?: 'ProjectMutations'; + /** Access request related mutations */ + accessRequestMutations: ProjectAccessRequestMutations; automationMutations: ProjectAutomationMutations; + /** Batch delete projects */ + batchDelete: Scalars['Boolean']['output']; /** Create new project */ create: Project; /** @@ -2113,6 +2141,11 @@ export type ProjectMutationsAutomationMutationsArgs = { }; +export type ProjectMutationsBatchDeleteArgs = { + ids: Array; +}; + + export type ProjectMutationsCreateArgs = { input?: InputMaybe; }; @@ -2264,7 +2297,10 @@ export type Query = { adminUsers?: Maybe; /** Gets a specific app from the server. */ app?: Maybe; - /** Returns all the publicly available apps on this server. */ + /** + * Returns all the publicly available apps on this server. + * @deprecated Part of the old API surface and will be removed in the future. + */ apps?: Maybe>>; /** If user is authenticated using an app token, this will describe the app */ authenticatedAsApp?: Maybe; @@ -2273,15 +2309,19 @@ export type Query = { automateFunctions: AutomateFunctionCollection; /** Part of the automation/function creation handshake mechanism */ automateValidateAuthCode: Scalars['Boolean']['output']; + /** @deprecated Part of the old API surface and will be removed in the future. Use Project.comment instead. */ comment?: Maybe; /** * This query can be used in the following ways: * - get all the comments for a stream: **do not pass in any resource identifiers**. * - get the comments targeting any of a set of provided resources (comments/objects): **pass in an array of resources.** - * @deprecated Use 'commentThreads' fields instead + * @deprecated Use Project/Version/Model 'commentThreads' fields instead */ comments?: Maybe; - /** All of the discoverable streams of the server */ + /** + * All of the discoverable streams of the server + * @deprecated Part of the old API surface and will be removed in the future. + */ discoverableStreams?: Maybe; /** Get the (limited) profile information of another server user */ otherUser?: Maybe; @@ -2303,20 +2343,29 @@ export type Query = { /** * Returns a specific stream. 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. + * @deprecated Part of the old API surface and will be removed in the future. Use Query.project instead. */ stream?: Maybe; - /** Get authed user's stream access request */ + /** + * Get authed user's stream access request + * @deprecated Part of the old API surface and will be removed in the future. Use User.projectAccessRequest instead. + */ streamAccessRequest?: Maybe; /** * Look for an invitation to a stream, for the current user (authed or not). If token * isn't specified, the server will look for any valid invite. + * @deprecated Part of the old API surface and will be removed in the future. Use Query.projectInvite instead. */ streamInvite?: Maybe; - /** Get all invitations to streams that the active user has */ + /** + * Get all invitations to streams that the active user has + * @deprecated Part of the old API surface and will be removed in the future. Use User.projectInvites instead. + */ streamInvites: Array; /** * Returns all streams that the active user is a collaborator on. * Pass in the `query` parameter to search by name, description or ID. + * @deprecated Part of the old API surface and will be removed in the future. Use User.projects instead. */ streams?: Maybe; /** @@ -2324,7 +2373,10 @@ export type Query = { * @deprecated To be removed in the near future! Use 'activeUser' to get info about the active user or 'otherUser' to get info about another user. */ user?: Maybe; - /** Validate password strength */ + /** + * Validate password strength + * @deprecated Part of the old API surface and will be removed in the future. + */ userPwdStrength: PasswordStrengthCheckResults; /** * Search for users and return limited metadata about them, if you have the server:user role. @@ -2648,13 +2700,22 @@ export enum SortDirection { export type Stream = { __typename?: 'Stream'; - /** All the recent activity on this stream in chronological order */ + /** + * All the recent activity on this stream in chronological order + * @deprecated Part of the old API surface and will be removed in the future. + */ activity?: Maybe; allowPublicComments: Scalars['Boolean']['output']; + /** @deprecated Part of the old API surface and will be removed in the future. Use Project.blob instead. */ blob?: Maybe; - /** Get the metadata collection of blobs stored for this stream. */ + /** + * Get the metadata collection of blobs stored for this stream. + * @deprecated Part of the old API surface and will be removed in the future. Use Project.blobs instead. + */ blobs?: Maybe; + /** @deprecated Part of the old API surface and will be removed in the future. Use Project.model or Project.modelByName instead. */ branch?: Maybe; + /** @deprecated Part of the old API surface and will be removed in the future. Use Project.models or Project.modelsTree instead. */ branches?: Maybe; collaborators: Array; /** @@ -2666,18 +2727,27 @@ export type Stream = { * ... * } * ``` + * @deprecated Part of the old API surface and will be removed in the future. */ commentCount: Scalars['Int']['output']; + /** @deprecated Part of the old API surface and will be removed in the future. Use Project.version instead. */ commit?: Maybe; + /** @deprecated Part of the old API surface and will be removed in the future. Use Project.versions instead. */ commits?: 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']['output']; - /** Returns a specific file upload that belongs to this stream. */ + /** + * Returns a specific file upload that belongs to this stream. + * @deprecated Part of the old API surface and will be removed in the future. Use Project.pendingImportedModels or Model.pendingImportedVersions instead. + */ fileUpload?: Maybe; - /** Returns a list of all the file uploads for this stream. */ + /** + * Returns a list of all the file uploads for this stream. + * @deprecated Part of the old API surface and will be removed in the future. Use Project.pendingImportedModels or Model.pendingImportedVersions instead. + */ fileUploads: Array; id: Scalars['String']['output']; /** @@ -2688,8 +2758,12 @@ export type Stream = { /** Whether the stream can be viewed by non-contributors */ isPublic: Scalars['Boolean']['output']; name: Scalars['String']['output']; + /** @deprecated Part of the old API surface and will be removed in the future. Use Project.object instead. */ object?: Maybe; - /** Pending stream access requests */ + /** + * Pending stream access requests + * @deprecated Part of the old API surface and will be removed in the future. Use Project.pendingAccessRequests instead. + */ pendingAccessRequests?: Maybe>; /** Collaborators who have been invited, but not yet accepted. */ pendingCollaborators?: Maybe>; @@ -2697,6 +2771,7 @@ export type Stream = { role?: Maybe; size?: Maybe; updatedAt: Scalars['DateTime']['output']; + /** @deprecated Part of the old API surface and will be removed in the future. Use Project.webhooks instead. */ webhooks: WebhookCollection; }; @@ -2799,6 +2874,7 @@ export type StreamCreateInput = { name?: InputMaybe; /** Optionally specify user IDs of users that you want to invite to be contributors to this stream */ withContributors?: InputMaybe>; + workspaceId?: InputMaybe; }; export type StreamInviteCreateInput = { @@ -2847,11 +2923,20 @@ export type Subscription = { __typename?: 'Subscription'; /** It's lonely in the void. */ _?: Maybe; - /** Subscribe to branch created event */ + /** + * Subscribe to branch created event + * @deprecated Part of the old API surface and will be removed in the future. Use 'projectModelsUpdated' instead. + */ branchCreated?: Maybe; - /** Subscribe to branch deleted event */ + /** + * Subscribe to branch deleted event + * @deprecated Part of the old API surface and will be removed in the future. Use 'projectModelsUpdated' instead. + */ branchDeleted?: Maybe; - /** Subscribe to branch updated event. */ + /** + * Subscribe to branch updated event. + * @deprecated Part of the old API surface and will be removed in the future. Use 'projectModelsUpdated' instead. + */ branchUpdated?: Maybe; /** * Subscribe to new comment events. There's two ways to use this subscription: @@ -2867,13 +2952,21 @@ export type Subscription = { * @deprecated Use projectCommentsUpdated or viewerUserActivityBroadcasted for reply status */ commentThreadActivity: CommentThreadActivityMessage; - /** Subscribe to commit created event */ + /** + * Subscribe to commit created event + * @deprecated Part of the old API surface and will be removed in the future. Use 'projectVersionsUpdated' instead. + */ commitCreated?: Maybe; - /** Subscribe to commit deleted event */ + /** + * Subscribe to commit deleted event + * @deprecated Part of the old API surface and will be removed in the future. Use 'projectVersionsUpdated' instead. + */ commitDeleted?: Maybe; - /** Subscribe to commit updated event. */ + /** + * Subscribe to commit updated event. + * @deprecated Part of the old API surface and will be removed in the future. Use 'projectVersionsUpdated' instead. + */ commitUpdated?: Maybe; - projectAutomationsStatusUpdated: ProjectAutomationsStatusUpdatedMessage; /** Subscribe to updates to automations in the project */ projectAutomationsUpdated: ProjectAutomationsUpdatedMessage; /** @@ -2881,7 +2974,10 @@ export type Subscription = { * updates regarding comments for those resources. */ projectCommentsUpdated: ProjectCommentsUpdatedMessage; - /** Subscribe to changes to any of a project's file imports */ + /** + * Subscribe to changes to any of a project's file imports + * @deprecated Part of the old API surface and will be removed in the future. Use projectPendingModelsUpdated or projectPendingVersionsUpdated instead. + */ projectFileImportUpdated: ProjectFileImportUpdatedMessage; /** Subscribe to changes to a project's models. Optionally specify modelIds to track. */ projectModelsUpdated: ProjectModelsUpdatedMessage; @@ -2899,20 +2995,28 @@ export type Subscription = { 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. */ + /** + * Subscribes to stream deleted event. Use this in clients/components that pertain only to this stream. + * @deprecated Part of the old API surface and will be removed in the future. Use projectUpdated instead. + */ streamDeleted?: Maybe; - /** Subscribes to stream updated event. Use this in clients/components that pertain only to this stream. */ + /** + * Subscribes to stream updated event. Use this in clients/components that pertain only to this stream. + * @deprecated Part of the old API surface and will be removed in the future. Use projectUpdated instead. + */ 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. + * @deprecated Part of the old API surface and will be removed in the future. Use userProjectsUpdated instead. */ 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. + * @deprecated Part of the old API surface and will be removed in the future. Use userProjectsUpdated instead. */ userStreamRemoved?: Maybe; /** @@ -2969,11 +3073,6 @@ export type SubscriptionCommitUpdatedArgs = { }; -export type SubscriptionProjectAutomationsStatusUpdatedArgs = { - projectId: Scalars['String']['input']; -}; - - export type SubscriptionProjectAutomationsUpdatedArgs = { projectId: Scalars['String']['input']; }; @@ -3130,7 +3229,10 @@ export type UpdateVersionInput = { */ export type User = { __typename?: 'User'; - /** All the recent activity from this user in chronological order */ + /** + * All the recent activity from this user in chronological order + * @deprecated Part of the old API surface and will be removed in the future. + */ activity?: Maybe; /** Returns a list of your personal api tokens. */ apiTokens: Array; @@ -3142,16 +3244,19 @@ export type User = { /** * Get commits authored by the user. If requested for another user, then only commits * from public streams will be returned. + * @deprecated Part of the old API surface and will be removed in the future. Use User.versions instead. */ commits?: Maybe; company?: Maybe; /** Returns the apps you have created. */ createdApps?: Maybe>; createdAt?: Maybe; + /** Only returned if API user is the user being requested or an admin */ email?: Maybe; /** * All the streams that a active user has favorited. * Note: You can't use this to retrieve another user's favorite streams. + * @deprecated Part of the old API surface and will be removed in the future. */ favoriteStreams: StreamCollection; /** Whether the user has a pending/active email verification token */ @@ -3162,6 +3267,8 @@ export type User = { name: Scalars['String']['output']; notificationPreferences: Scalars['JSONObject']['output']; profiles?: Maybe; + /** Get pending project access request, that the user made */ + projectAccessRequest?: Maybe; /** Get all invitations to projects that the active user has */ projectInvites: Array; /** Get projects that the user participates in */ @@ -3170,11 +3277,18 @@ export type User = { /** * 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. + * @deprecated Part of the old API surface and will be removed in the future. Use User.projects instead. */ streams: StreamCollection; - /** The user's timeline in chronological order */ + /** + * The user's timeline in chronological order + * @deprecated Part of the old API surface and will be removed in the future. + */ timeline?: Maybe; - /** Total amount of favorites attached to streams owned by the user */ + /** + * Total amount of favorites attached to streams owned by the user + * @deprecated Part of the old API surface and will be removed in the future. + */ totalOwnedStreamsFavorites: Scalars['Int']['output']; verified?: Maybe; /** @@ -3220,6 +3334,15 @@ export type UserFavoriteStreamsArgs = { }; +/** + * 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 UserProjectAccessRequestArgs = { + projectId: Scalars['String']['input']; +}; + + /** * Full user type, should only be used in the context of admin operations or * when a user is reading/writing info about himself @@ -3315,7 +3438,6 @@ export type UserUpdateInput = { export type Version = { __typename?: 'Version'; authorUser?: Maybe; - automationStatus?: Maybe; automationsStatus?: Maybe; /** All comment threads in this version */ commentThreads: CommentCollection; @@ -3365,18 +3487,30 @@ export type VersionCreatedTriggerDefinition = { export type VersionMutations = { __typename?: 'VersionMutations'; + create: Version; delete: Scalars['Boolean']['output']; + markReceived: Scalars['Boolean']['output']; moveToModel: Model; requestGendoAIRender: Scalars['Boolean']['output']; update: Version; }; +export type VersionMutationsCreateArgs = { + input: CreateVersionInput; +}; + + export type VersionMutationsDeleteArgs = { input: DeleteVersionsInput; }; +export type VersionMutationsMarkReceivedArgs = { + input: MarkReceivedVersionInput; +}; + + export type VersionMutationsMoveToModelArgs = { input: MoveVersionsInput; }; diff --git a/packages/frontend-2/components/header/NavUserMenu.vue b/packages/frontend-2/components/header/NavUserMenu.vue index 10c7344a3..dfcb85bdf 100644 --- a/packages/frontend-2/components/header/NavUserMenu.vue +++ b/packages/frontend-2/components/header/NavUserMenu.vue @@ -37,12 +37,12 @@ - - Edit profile + + Settings @@ -51,10 +51,10 @@ active ? 'bg-foundation-focus' : '', 'flex gap-3.5 items-center px-3 py-2.5 text-sm text-foreground cursor-pointer transition mx-1 rounded' ]" - @click="goToServerManagement()" + @click="toggleSettingsDialog(settingsQueries.server.general)" > - - Server management + + Server settings @@ -127,11 +127,16 @@ - - + + diff --git a/packages/frontend-2/components/onboarding/checklist/v1.vue b/packages/frontend-2/components/onboarding/checklist/v1.vue index d03d676ee..c381d8d6a 100644 --- a/packages/frontend-2/components/onboarding/checklist/v1.vue +++ b/packages/frontend-2/components/onboarding/checklist/v1.vue @@ -216,7 +216,7 @@ > - diff --git a/packages/frontend-2/components/server-management/Card.vue b/packages/frontend-2/components/server-management/Card.vue deleted file mode 100644 index 081891147..000000000 --- a/packages/frontend-2/components/server-management/Card.vue +++ /dev/null @@ -1,22 +0,0 @@ - - - diff --git a/packages/frontend-2/components/server-management/CardRow.vue b/packages/frontend-2/components/server-management/CardRow.vue deleted file mode 100644 index 6bf64d1f8..000000000 --- a/packages/frontend-2/components/server-management/CardRow.vue +++ /dev/null @@ -1,51 +0,0 @@ - - - diff --git a/packages/frontend-2/components/settings/Dialog.vue b/packages/frontend-2/components/settings/Dialog.vue new file mode 100644 index 000000000..6b25d91cb --- /dev/null +++ b/packages/frontend-2/components/settings/Dialog.vue @@ -0,0 +1,158 @@ + + + diff --git a/packages/frontend-2/components/developer-settings/SectionHeader.vue b/packages/frontend-2/components/settings/SectionHeader.vue similarity index 65% rename from packages/frontend-2/components/developer-settings/SectionHeader.vue rename to packages/frontend-2/components/settings/SectionHeader.vue index 9ea40ef41..587e4d058 100644 --- a/packages/frontend-2/components/developer-settings/SectionHeader.vue +++ b/packages/frontend-2/components/settings/SectionHeader.vue @@ -1,9 +1,11 @@ diff --git a/packages/frontend-2/components/settings/server/ActiveUsers.vue b/packages/frontend-2/components/settings/server/ActiveUsers.vue new file mode 100644 index 000000000..01fddfdc7 --- /dev/null +++ b/packages/frontend-2/components/settings/server/ActiveUsers.vue @@ -0,0 +1,218 @@ + + + diff --git a/packages/frontend-2/components/server-management/SettingsDialog.vue b/packages/frontend-2/components/settings/server/General.vue similarity index 59% rename from packages/frontend-2/components/server-management/SettingsDialog.vue rename to packages/frontend-2/components/settings/server/General.vue index 35f4aee94..df83fe5f4 100644 --- a/packages/frontend-2/components/server-management/SettingsDialog.vue +++ b/packages/frontend-2/components/settings/server/General.vue @@ -1,68 +1,78 @@ diff --git a/packages/frontend-2/components/settings/server/general/Version.vue b/packages/frontend-2/components/settings/server/general/Version.vue new file mode 100644 index 000000000..36b03dd06 --- /dev/null +++ b/packages/frontend-2/components/settings/server/general/Version.vue @@ -0,0 +1,78 @@ + + + diff --git a/packages/frontend-2/components/server-management/DeleteInvitationDialog.vue b/packages/frontend-2/components/settings/server/pending-invitations/DeleteDialog.vue similarity index 98% rename from packages/frontend-2/components/server-management/DeleteInvitationDialog.vue rename to packages/frontend-2/components/settings/server/pending-invitations/DeleteDialog.vue index 2aba3981c..238238b93 100644 --- a/packages/frontend-2/components/server-management/DeleteInvitationDialog.vue +++ b/packages/frontend-2/components/settings/server/pending-invitations/DeleteDialog.vue @@ -1,6 +1,6 @@