mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-14 05:14:54 +00:00
chore(core): doc role telemetry (#10822)
This commit is contained in:
@@ -379,6 +379,7 @@ export enum DocRole {
|
||||
Editor = 'Editor',
|
||||
External = 'External',
|
||||
Manager = 'Manager',
|
||||
None = 'None',
|
||||
Owner = 'Owner',
|
||||
Reader = 'Reader',
|
||||
}
|
||||
@@ -510,6 +511,7 @@ export enum ErrorNames {
|
||||
FAILED_TO_UPSERT_SNAPSHOT = 'FAILED_TO_UPSERT_SNAPSHOT',
|
||||
GRAPHQL_BAD_REQUEST = 'GRAPHQL_BAD_REQUEST',
|
||||
INTERNAL_SERVER_ERROR = 'INTERNAL_SERVER_ERROR',
|
||||
INVALID_AUTH_STATE = 'INVALID_AUTH_STATE',
|
||||
INVALID_CHECKOUT_PARAMETERS = 'INVALID_CHECKOUT_PARAMETERS',
|
||||
INVALID_EMAIL = 'INVALID_EMAIL',
|
||||
INVALID_EMAIL_TOKEN = 'INVALID_EMAIL_TOKEN',
|
||||
@@ -636,6 +638,10 @@ export interface GraphqlBadRequestDataType {
|
||||
message: Scalars['String']['output'];
|
||||
}
|
||||
|
||||
export interface ImportUsersInput {
|
||||
users: Array<CreateUserInput>;
|
||||
}
|
||||
|
||||
export interface InvalidEmailDataType {
|
||||
__typename?: 'InvalidEmailDataType';
|
||||
email: Scalars['String']['output'];
|
||||
@@ -750,6 +756,8 @@ export interface InviteUserType {
|
||||
* @deprecated useless
|
||||
*/
|
||||
createdAt: Maybe<Scalars['DateTime']['output']>;
|
||||
/** User is disabled */
|
||||
disabled: Maybe<Scalars['Boolean']['output']>;
|
||||
/** User email */
|
||||
email: Maybe<Scalars['String']['output']>;
|
||||
/** User email verified */
|
||||
@@ -891,6 +899,8 @@ export interface Mutation {
|
||||
addContextDoc: Array<CopilotContextListItem>;
|
||||
addWorkspaceFeature: Scalars['Boolean']['output'];
|
||||
approveMember: Scalars['Boolean']['output'];
|
||||
/** Ban an user */
|
||||
banUser: UserType;
|
||||
cancelSubscription: SubscriptionType;
|
||||
changeEmail: UserType;
|
||||
changePassword: Scalars['Boolean']['output'];
|
||||
@@ -922,11 +932,15 @@ export interface Mutation {
|
||||
/** Delete a user account */
|
||||
deleteUser: DeleteAccount;
|
||||
deleteWorkspace: Scalars['Boolean']['output'];
|
||||
/** Reenable an banned user */
|
||||
enableUser: UserType;
|
||||
/** Create a chat session */
|
||||
forkCopilotSession: Scalars['String']['output'];
|
||||
generateLicenseKey: Scalars['String']['output'];
|
||||
grantDocUserRoles: Scalars['Boolean']['output'];
|
||||
grantMember: Scalars['Boolean']['output'];
|
||||
/** import users */
|
||||
importUsers: Array<UserImportResultType>;
|
||||
invite: Scalars['String']['output'];
|
||||
inviteBatch: Array<InviteResult>;
|
||||
leaveWorkspace: Scalars['Boolean']['output'];
|
||||
@@ -969,7 +983,7 @@ export interface Mutation {
|
||||
/** update multiple server runtime configurable settings */
|
||||
updateRuntimeConfigs: Array<ServerRuntimeConfigType>;
|
||||
updateSubscriptionRecurring: SubscriptionType;
|
||||
/** Update a user */
|
||||
/** Update an user */
|
||||
updateUser: UserType;
|
||||
/** update user enabled feature */
|
||||
updateUserFeatures: Array<FeatureType>;
|
||||
@@ -1005,6 +1019,10 @@ export interface MutationApproveMemberArgs {
|
||||
workspaceId: Scalars['String']['input'];
|
||||
}
|
||||
|
||||
export interface MutationBanUserArgs {
|
||||
id: Scalars['String']['input'];
|
||||
}
|
||||
|
||||
export interface MutationCancelSubscriptionArgs {
|
||||
idempotencyKey?: InputMaybe<Scalars['String']['input']>;
|
||||
plan?: InputMaybe<SubscriptionPlan>;
|
||||
@@ -1088,6 +1106,10 @@ export interface MutationDeleteWorkspaceArgs {
|
||||
id: Scalars['String']['input'];
|
||||
}
|
||||
|
||||
export interface MutationEnableUserArgs {
|
||||
id: Scalars['String']['input'];
|
||||
}
|
||||
|
||||
export interface MutationForkCopilotSessionArgs {
|
||||
options: ForkChatSessionInput;
|
||||
}
|
||||
@@ -1106,6 +1128,10 @@ export interface MutationGrantMemberArgs {
|
||||
workspaceId: Scalars['String']['input'];
|
||||
}
|
||||
|
||||
export interface MutationImportUsersArgs {
|
||||
input: ImportUsersInput;
|
||||
}
|
||||
|
||||
export interface MutationInviteArgs {
|
||||
email: Scalars['String']['input'];
|
||||
permission?: InputMaybe<Permission>;
|
||||
@@ -1517,6 +1543,14 @@ export interface QueryTooLongDataType {
|
||||
max: Scalars['Int']['output'];
|
||||
}
|
||||
|
||||
export interface ReleaseVersionType {
|
||||
__typename?: 'ReleaseVersionType';
|
||||
changelog: Scalars['String']['output'];
|
||||
publishedAt: Scalars['DateTime']['output'];
|
||||
url: Scalars['String']['output'];
|
||||
version: Scalars['String']['output'];
|
||||
}
|
||||
|
||||
export interface RemoveAvatar {
|
||||
__typename?: 'RemoveAvatar';
|
||||
success: Scalars['Boolean']['output'];
|
||||
@@ -1553,6 +1587,8 @@ export interface SameSubscriptionRecurringDataType {
|
||||
|
||||
export interface ServerConfigType {
|
||||
__typename?: 'ServerConfigType';
|
||||
/** fetch latest available upgradable release of server */
|
||||
availableUpgrade: ReleaseVersionType;
|
||||
/** Features for user that can be configured */
|
||||
availableUserFeatures: Array<FeatureType>;
|
||||
/** server base url */
|
||||
@@ -1772,6 +1808,14 @@ export interface UpdateWorkspaceInput {
|
||||
public?: InputMaybe<Scalars['Boolean']['input']>;
|
||||
}
|
||||
|
||||
export interface UserImportFailedType {
|
||||
__typename?: 'UserImportFailedType';
|
||||
email: Scalars['String']['output'];
|
||||
error: Scalars['String']['output'];
|
||||
}
|
||||
|
||||
export type UserImportResultType = UserImportFailedType | UserType;
|
||||
|
||||
export type UserOrLimitedUser = LimitedUserType | UserType;
|
||||
|
||||
export interface UserQuotaHumanReadableType {
|
||||
@@ -1813,6 +1857,8 @@ export interface UserType {
|
||||
* @deprecated useless
|
||||
*/
|
||||
createdAt: Maybe<Scalars['DateTime']['output']>;
|
||||
/** User is disabled */
|
||||
disabled: Scalars['Boolean']['output'];
|
||||
/** User email */
|
||||
email: Scalars['String']['output'];
|
||||
/** User email verified */
|
||||
|
||||
Reference in New Issue
Block a user