Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

feat(activity): user and entity activity queries (#5566)

teod0f90155e417
diff --git a/.github/workspace-dep-closures.json b/.github/workspace-dep-closures.json
index be2b51758a..6e8fd4b576 100644
--- a/.github/workspace-dep-closures.json
+++ b/.github/workspace-dep-closures.json
@@ -1005,6 +1005,7 @@
"crates/filter_ast",
"crates/foreign_entity",
"crates/frecency",
+ "crates/graphql_activity",
"crates/graphql_channel",
"crates/graphql_common",
"crates/graphql_email",
@@ -1659,6 +1660,7 @@
"crates/fusionauth",
"crates/generic_email_domains",
"crates/github",
+ "crates/graphql_activity",
"crates/graphql_channel",
"crates/graphql_common",
"crates/graphql_email",
@@ -2830,6 +2832,34 @@
"crates/models_pagination",
"crates/workspace-hack"
],
+ "graphql_activity": [
+ "crates/activity",
+ "crates/bot_id",
+ "crates/channel_sender",
+ "crates/cowlike",
+ "crates/document_sub_type",
+ "crates/filter_ast",
+ "crates/graphql_activity",
+ "crates/graphql_common",
+ "crates/item_filters",
+ "crates/kafka_util",
+ "crates/macro_auth",
+ "crates/macro_authorization",
+ "crates/macro_env",
+ "crates/macro_env_var",
+ "crates/macro_event_broker",
+ "crates/macro_event_topics",
+ "crates/macro_user_id",
+ "crates/model-entity",
+ "crates/model-error-response",
+ "crates/model_file_type",
+ "crates/model_user",
+ "crates/models_pagination",
+ "crates/models_properties",
+ "crates/non_empty",
+ "crates/remote_env_var",
+ "crates/workspace-hack"
+ ],
"graphql_channel": [
"crates/activity",
"crates/agent",
diff --git a/.sqlx/query-283b0b2adabca5459246bb424a01fb7cfa158c6a310ecffd52fbba9ec1ce6694.json b/.sqlx/query-283b0b2adabca5459246bb424a01fb7cfa158c6a310ecffd52fbba9ec1ce6694.json
new file mode 100644
index 0000000000..4c4b6bdcb8
--- /dev/null
+++ b/.sqlx/query-283b0b2adabca5459246bb424a01fb7cfa158c6a310ecffd52fbba9ec1ce6694.json
@@ -0,0 +1,67 @@
+{
+ "db_name": "PostgreSQL",
+ "query": "\n SELECT id, actor_id, action, action_payload,\n subject_id, entity_type, entity_id, occurred_at\n FROM activity_events\n WHERE subject_id = $1 AND (occurred_at, id) < ($2, $3)\n ORDER BY occurred_at DESC, id DESC\n LIMIT $4\n ",
+ "describe": {
+ "columns": [
+ {
+ "ordinal": 0,
+ "name": "id",
+ "type_info": "Uuid"
+ },
+ {
+ "ordinal": 1,
+ "name": "actor_id",
+ "type_info": "Text"
+ },
+ {
+ "ordinal": 2,
+ "name": "action",
+ "type_info": "Text"
+ },
+ {
+ "ordinal": 3,
+ "name": "action_payload",
+ "type_info": "Jsonb"
+ },
+ {
+ "ordinal": 4,
+ "name": "subject_id",
+ "type_info": "Text"
+ },
+ {
+ "ordinal": 5,
+ "name": "entity_type",
+ "type_info": "Text"
+ },
+ {
+ "ordinal": 6,
+ "name": "entity_id",
+ "type_info": "Text"
+ },
+ {
+ "ordinal": 7,
+ "name": "occurred_at",
+ "type_info": "Timestamptz"
+ }
+ ],
+ "parameters": {
+ "Left": [
+ "Text",
+ "Timestamptz",
+ "Uuid",
+ "Int8"
+ ]
+ },
+ "nullable": [
+ false,
+ false,
+ false,
+ true,
+ false,
+ false,
+ false,
+ false
+ ]
+ },
+ "hash": "283b0b2adabca5459246bb424a01fb7cfa158c6a310ecffd52fbba9ec1ce6694"
+}
diff --git a/.sqlx/query-2c85606cfd85f04433c60549ff5332d854fa30f8fb472937be7c78d9a8a83290.json b/.sqlx/query-2c85606cfd85f04433c60549ff5332d854fa30f8fb472937be7c78d9a8a83290.json
new file mode 100644
index 0000000000..ccab9bf581
--- /dev/null
+++ b/.sqlx/query-2c85606cfd85f04433c60549ff5332d854fa30f8fb472937be7c78d9a8a83290.json
@@ -0,0 +1,66 @@
+{
+ "db_name": "PostgreSQL",
+ "query": "\n SELECT a.id AS \"id!\", a.actor_id AS \"actor_id!\",\n a.action AS \"action!\", a.action_payload,\n a.subject_id AS \"subject_id!\",\n a.entity_type AS \"entity_type!\", a.entity_id AS \"entity_id!\",\n a.occurred_at AS \"occurred_at!\"\n FROM UNNEST($1::text[], $2::text[]) AS k(entity_type, entity_id)\n JOIN LATERAL (\n SELECT * FROM activity_events e\n WHERE e.entity_type = k.entity_type AND e.entity_id = k.entity_id\n ORDER BY e.occurred_at DESC, e.id DESC\n LIMIT $3\n ) a ON TRUE\n ORDER BY a.occurred_at DESC, a.id DESC\n ",
+ "describe": {
+ "columns": [
+ {
+ "ordinal": 0,
+ "name": "id!",
+ "type_info": "Uuid"
+ },
+ {
+ "ordinal": 1,
+ "name": "actor_id!",
+ "type_info": "Text"
+ },
+ {
+ "ordinal": 2,
+ "name": "action!",
+ "type_info": "Text"
+ },
+ {
+ "ordinal": 3,
+ "name": "action_payload",
+ "type_info": "Jsonb"
+ },
+ {
+ "ordinal": 4,
+ "name": "subject_id!",
+ "type_info": "Text"
+ },
+ {
+ "ordinal": 5,
+ "name": "entity_type!",
+ "type_info": "Text"
+ },
+ {
+ "ordinal": 6,
+ "name": "entity_id!",
+ "type_info": "Text"
+ },
+ {
+ "ordinal": 7,
+ "name": "occurred_at!",
+ "type_info": "Timestamptz"
+ }
+ ],
+ "parameters": {
+ "Left": [
+ "TextArray",
+ "TextArray",
+ "Int8"
+ ]
+ },
+ "nullable": [
+ false,
+ false,
+ false,
+ true,
+ false,
+ false,
+ false,
+ false
+ ]
+ },
+ "hash": "2c85606cfd85f04433c60549ff5332d854fa30f8fb472937be7c78d9a8a83290"
+}
diff --git a/.sqlx/query-72f271d631f1aed6643a5f5ab371dcc65982ba1efdfd0f9b3c43c3336a965dd5.json b/.sqlx/query-72f271d631f1aed6643a5f5ab371dcc65982ba1efdfd0f9b3c43c3336a965dd5.json
new file mode 100644
index 0000000000..7b940cb981
--- /dev/null
+++ b/.sqlx/query-72f271d631f1aed6643a5f5ab371dcc65982ba1efdfd0f9b3c43c3336a965dd5.json
@@ -0,0 +1,65 @@
+{
+ "db_name": "PostgreSQL",
+ "query": "\n SELECT id, actor_id, action, action_payload,\n subject_id, entity_type, entity_id, occurred_at\n FROM activity_events\n WHERE subject_id = $1\n ORDER BY occurred_at DESC, id DESC\n LIMIT $2\n ",
+ "describe": {
+ "columns": [
+ {
+ "ordinal": 0,
+ "name": "id",
+ "type_info": "Uuid"
+ },
+ {
+ "ordinal": 1,
+ "name": "actor_id",
+ "type_info": "Text"
+ },
+ {
+ "ordinal": 2,
+ "name": "action",
+ "type_info": "Text"
+ },
+ {
+ "ordinal": 3,
+ "name": "action_payload",
+ "type_info": "Jsonb"
+ },
+ {
+ "ordinal": 4,
+ "name": "subject_id",
+ "type_info": "Text"
+ },
+ {
+ "ordinal": 5,
+ "name": "entity_type",
+ "type_info": "Text"
+ },
+ {
+ "ordinal": 6,
+ "name": "entity_id",
+ "type_info": "Text"
+ },
+ {
+ "ordinal": 7,
+ "name": "occurred_at",
+ "type_info": "Timestamptz"
+ }
+ ],
+ "parameters": {
+ "Left": [
+ "Text",
+ "Int8"
+ ]
+ },
+ "nullable": [
+ false,
+ false,
+ false,
+ true,
+ false,
+ false,
+ false,
+ false
+ ]
+ },
+ "hash": "72f271d631f1aed6643a5f5ab371dcc65982ba1efdfd0f9b3c43c3336a965dd5"
+}
diff --git a/Cargo.lock b/Cargo.lock
index 61082bb360..a351a5b3b2 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -3092,13 +3092,16 @@ dependencies = [
name = "complete_graph"
version = "0.1.0"
dependencies = [
+ "activity",
"anyhow",
"apollo-compiler",
"async-graphql",
"axum",
+ "chrono",
"email",
"entity_access",
"entity_mutation",
+ "graphql_activity",
"graphql_channel",
"graphql_common",
"graphql_email",
@@ -6310,6 +6313,26 @@ dependencies = [
"workspace-hack",
]
+[[package]]
+name = "graphql_activity"
+version = "0.1.0"
+dependencies = [
+ "activity",
+ "async-graphql",
+ "chrono",
+ "futures",
+ "graphql_common",
+ "macro_user_id",
+ "model-entity",
+ "models_pagination",
+ "serde",
+ "serde_json",
+ "tokio",
+ "tracing",
+ "uuid",
+ "workspace-hack",
+]
+
[[package]]
name = "graphql_channel"
version = "0.1.0"
diff --git a/Cargo.toml b/Cargo.toml
index 89f525ac47..b59dd8dd8e 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -26,6 +26,7 @@ members = [
"crates/foreign_entity",
"crates/generic_email_domains",
"crates/gmail_client",
+ "crates/graphql_activity",
"crates/graphql_channel",
"crates/graphql_common",
"crates/graphql_email",
diff --git a/apps/web/src/lib/service-clients/service-storage/graphql/activity.graphql b/apps/web/src/lib/service-clients/service-storage/graphql/activity.graphql
new file mode 100644
index 0000000000..b4c304518f
--- /dev/null
+++ b/apps/web/src/lib/service-clients/service-storage/graphql/activity.graphql
@@ -0,0 +1,61 @@
+query MyActivity($input: ActivityFeedInput!) {
+ user {
+ id
+ activity(input: $input) {
+ items {
+ ...ActivityEventFields
+ }
+ nextCursor
+ }
+ }
+}
+
+query EntityActivity($input: SoupInput!, $limit: Int) {
+ user {
+ id
+ soup(input: $input) {
+ items {
+ ...EntityActivityFields
+ }
+ }
+ }
+}
+
+fragment EntityActivityFields on GraphqlSoupEntity {
+ __typename
+ id
+ activity(limit: $limit) {
+ ...ActivityEventFields
+ }
+}
+
+fragment ActivityEventFields on GraphqlActivityEvent {
+ __typename
+ id
+ actorId
+ subjectId
+ entityType
+ entityId
+ occurredAt
+ action {
+ __typename
+ ... on GraphqlActivityPropertyChanged {
+ property
+ from
+ to
+ }
+ ... on GraphqlActivityParticipantAdded {
+ participant
+ }
+ ... on GraphqlActivityParticipantRemoved {
+ participant
+ }
+ ... on GraphqlActivityCallStarted {
+ callId
+ }
+ ... on GraphqlActivityUnknownAction {
+ tag
+ payload
+ }
+ }
+}
diff --git a/apps/web/src/lib/service-clients/service-storage/graphql/generated/graphql.ts b/apps/web/src/lib/service-clients/service-storage/graphql/generated/graphql.ts
index 1395f601d7..3bf27597f1 100644
--- a/apps/web/src/lib/service-clients/service-storage/graphql/generated/graphql.ts
+++ b/apps/web/src/lib/service-clients/service-storage/graphql/generated/graphql.ts
@@ -3,6 +3,17 @@ type Exact<T extends { [key: string]: unknown }> = { [K in keyof T]: T[K] };
/** Internal type. DO NOT USE DIRECTLY. */
export type Incremental<T> = T | { [P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never };
import type { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/core';
+/** Page request for the authenticated user's activity feed. */
+export type ActivityFeedInput = {
+ /**
+ * Opaque cursor from the previous page's `nextCursor`; absent for the
+ * first page.
+ */
+ cursor?: string | null | undefined;
+ /** Page size; defaults to 25, capped at 100. */
+ limit?: number | null | undefined;
+};
+
/** Channel activity operation exposed by GraphQL. */
export type ChannelActivityType =
/** Record that the user interacted with the channel. */
@@ -1086,6 +1097,359 @@ export type UpdateNotificationsInput = {
operation: NotificationUpdateOperation;
};
+export type MyActivityQueryVariables = Exact<{
+ input: ActivityFeedInput;
+}>;
+
+
+export type MyActivityQuery = { user: { id: string, activity: { nextCursor: string | null, items: Array<{ __typename: 'GraphqlActivityEvent', id: string, actorId: string, subjectId: string, entityType: GraphqlEntityType, entityId: string, occurredAt: string, action:
+ | { __typename: 'GraphqlActivityCallStarted', callId: string }
+ | { __typename: 'GraphqlActivityCreated' }
+ | { __typename: 'GraphqlActivityDeleted' }
+ | { __typename: 'GraphqlActivityEdited' }
+ | { __typename: 'GraphqlActivityMessaged' }
+ | { __typename: 'GraphqlActivityOpened' }
+ | { __typename: 'GraphqlActivityParticipantAdded', participant: string }
+ | { __typename: 'GraphqlActivityParticipantRemoved', participant: string }
+ | { __typename: 'GraphqlActivityPropertyChanged', property: string, from: unknown, to: unknown }
+ | { __typename: 'GraphqlActivitySent' }
+ | { __typename: 'GraphqlActivityUnknownAction', tag: string, payload: unknown }
+ }> } } };
+
+export type EntityActivityQueryVariables = Exact<{
+ input: SoupInput;
+ limit?: number | null | undefined;
+}>;
+
+
+export type EntityActivityQuery = { user: { id: string, soup: { items: Array<
+ | { __typename: 'GraphqlSoupCalendarEvent', id: string, activity: Array<{ __typename: 'GraphqlActivityEvent', id: string, actorId: string, subjectId: string, entityType: GraphqlEntityType, entityId: string, occurredAt: string, action:
+ | { __typename: 'GraphqlActivityCallStarted', callId: string }
+ | { __typename: 'GraphqlActivityCreated' }
+ | { __typename: 'GraphqlActivityDeleted' }
+ | { __typename: 'GraphqlActivityEdited' }
+ | { __typename: 'GraphqlActivityMessaged' }
+ | { __typename: 'GraphqlActivityOpened' }
+ | { __typename: 'GraphqlActivityParticipantAdded', participant: string }
+ | { __typename: 'GraphqlActivityParticipantRemoved', participant: string }
+ | { __typename: 'GraphqlActivityPropertyChanged', property: string, from: unknown, to: unknown }
+ | { __typename: 'GraphqlActivitySent' }
+ | { __typename: 'GraphqlActivityUnknownAction', tag: string, payload: unknown }
+ }> }
+ | { __typename: 'GraphqlSoupCall', id: string, activity: Array<{ __typename: 'GraphqlActivityEvent', id: string, actorId: string, subjectId: string, entityType: GraphqlEntityType, entityId: string, occurredAt: string, action:
+ | { __typename: 'GraphqlActivityCallStarted', callId: string }
+ | { __typename: 'GraphqlActivityCreated' }
+ | { __typename: 'GraphqlActivityDeleted' }
+ | { __typename: 'GraphqlActivityEdited' }
+ | { __typename: 'GraphqlActivityMessaged' }
+ | { __typename: 'GraphqlActivityOpened' }
+ | { __typename: 'GraphqlActivityParticipantAdded', participant: string }
+ | { __typename: 'GraphqlActivityParticipantRemoved', participant: string }
+ | { __typename: 'GraphqlActivityPropertyChanged', property: string, from: unknown, to: unknown }
+ | { __typename: 'GraphqlActivitySent' }
+ | { __typename: 'GraphqlActivityUnknownAction', tag: string, payload: unknown }
+ }> }
+ | { __typename: 'GraphqlSoupChannel', id: string, activity: Array<{ __typename: 'GraphqlActivityEvent', id: string, actorId: string, subjectId: string, entityType: GraphqlEntityType, entityId: string, occurredAt: string, action:
+ | { __typename: 'GraphqlActivityCallStarted', callId: string }
+ | { __typename: 'GraphqlActivityCreated' }
+ | { __typename: 'GraphqlActivityDeleted' }
+ | { __typename: 'GraphqlActivityEdited' }
+ | { __typename: 'GraphqlActivityMessaged' }
+ | { __typename: 'GraphqlActivityOpened' }
+ | { __typename: 'GraphqlActivityParticipantAdded', participant: string }
+ | { __typename: 'GraphqlActivityParticipantRemoved', participant: string }
+ | { __typename: 'GraphqlActivityPropertyChanged', property: string, from: unknown, to: unknown }
+ | { __typename: 'GraphqlActivitySent' }
+ | { __typename: 'GraphqlActivityUnknownAction', tag: string, payload: unknown }
+ }> }
+ | { __typename: 'GraphqlSoupChannelMessage', id: string, activity: Array<{ __typename: 'GraphqlActivityEvent', id: string, actorId: string, subjectId: string, entityType: GraphqlEntityType, entityId: string, occurredAt: string, action:
+ | { __typename: 'GraphqlActivityCallStarted', callId: string }
+ | { __typename: 'GraphqlActivityCreated' }
+ | { __typename: 'GraphqlActivityDeleted' }
+ | { __typename: 'GraphqlActivityEdited' }
+ | { __typename: 'GraphqlActivityMessaged' }
+ | { __typename: 'GraphqlActivityOpened' }
+ | { __typename: 'GraphqlActivityParticipantAdded', participant: string }
+ | { __typename: 'GraphqlActivityParticipantRemoved', participant: string }
+ | { __typename: 'GraphqlActivityPropertyChanged', property: string, from: unknown, to: unknown }
+ | { __typename: 'GraphqlActivitySent' }
+ | { __typename: 'GraphqlActivityUnknownAction', tag: string, payload: unknown }
+ }> }
+ | { __typename: 'GraphqlSoupChat', id: string, activity: Array<{ __typename: 'GraphqlActivityEvent', id: string, actorId: string, subjectId: string, entityType: GraphqlEntityType, entityId: string, occurredAt: string, action:
+ | { __typename: 'GraphqlActivityCallStarted', callId: string }
+ | { __typename: 'GraphqlActivityCreated' }
+ | { __typename: 'GraphqlActivityDeleted' }
+ | { __typename: 'GraphqlActivityEdited' }
+ | { __typename: 'GraphqlActivityMessaged' }
+ | { __typename: 'GraphqlActivityOpened' }
+ | { __typename: 'GraphqlActivityParticipantAdded', participant: string }
+ | { __typename: 'GraphqlActivityParticipantRemoved', participant: string }
+ | { __typename: 'GraphqlActivityPropertyChanged', property: string, from: unknown, to: unknown }
+ | { __typename: 'GraphqlActivitySent' }
+ | { __typename: 'GraphqlActivityUnknownAction', tag: string, payload: unknown }
+ }> }
+ | { __typename: 'GraphqlSoupCrmCompany', id: string, activity: Array<{ __typename: 'GraphqlActivityEvent', id: string, actorId: string, subjectId: string, entityType: GraphqlEntityType, entityId: string, occurredAt: string, action:
+ | { __typename: 'GraphqlActivityCallStarted', callId: string }
+ | { __typename: 'GraphqlActivityCreated' }
+ | { __typename: 'GraphqlActivityDeleted' }
+ | { __typename: 'GraphqlActivityEdited' }
+ | { __typename: 'GraphqlActivityMessaged' }
+ | { __typename: 'GraphqlActivityOpened' }
+ | { __typename: 'GraphqlActivityParticipantAdded', participant: string }
+ | { __typename: 'GraphqlActivityParticipantRemoved', participant: string }
+ | { __typename: 'GraphqlActivityPropertyChanged', property: string, from: unknown, to: unknown }
+ | { __typename: 'GraphqlActivitySent' }
+ | { __typename: 'GraphqlActivityUnknownAction', tag: string, payload: unknown }
+ }> }
+ | { __typename: 'GraphqlSoupDocument', id: string, activity: Array<{ __typename: 'GraphqlActivityEvent', id: string, actorId: string, subjectId: string, entityType: GraphqlEntityType, entityId: string, occurredAt: string, action:
+ | { __typename: 'GraphqlActivityCallStarted', callId: string }
+ | { __typename: 'GraphqlActivityCreated' }
+ | { __typename: 'GraphqlActivityDeleted' }
+ | { __typename: 'GraphqlActivityEdited' }
+ | { __typename: 'GraphqlActivityMessaged' }
+ | { __typename: 'GraphqlActivityOpened' }
+ | { __typename: 'GraphqlActivityParticipantAdded', participant: string }
+ | { __typename: 'GraphqlActivityParticipantRemoved', participant: string }
+ | { __typename: 'GraphqlActivityPropertyChanged', property: string, from: unknown, to: unknown }
+ | { __typename: 'GraphqlActivitySent' }
+ | { __typename: 'GraphqlActivityUnknownAction', tag: string, payload: unknown }
+ }> }
+ | { __typename: 'GraphqlSoupEmailThread', id: string, activity: Array<{ __typename: 'GraphqlActivityEvent', id: string, actorId: string, subjectId: string, entityType: GraphqlEntityType, entityId: string, occurredAt: string, action:
+ | { __typename: 'GraphqlActivityCallStarted', callId: string }
+ | { __typename: 'GraphqlActivityCreated' }
+ | { __typename: 'GraphqlActivityDeleted' }
+ | { __typename: 'GraphqlActivityEdited' }
+ | { __typename: 'GraphqlActivityMessaged' }
+ | { __typename: 'GraphqlActivityOpened' }
+ | { __typename: 'GraphqlActivityParticipantAdded', participant: string }
+ | { __typename: 'GraphqlActivityParticipantRemoved', participant: string }
+ | { __typename: 'GraphqlActivityPropertyChanged', property: string, from: unknown, to: unknown }
+ | { __typename: 'GraphqlActivitySent' }
+ | { __typename: 'GraphqlActivityUnknownAction', tag: string, payload: unknown }
+ }> }
+ | { __typename: 'GraphqlSoupForeignEntity', id: string, activity: Array<{ __typename: 'GraphqlActivityEvent', id: string, actorId: string, subjectId: string, entityType: GraphqlEntityType, entityId: string, occurredAt: string, action:
+ | { __typename: 'GraphqlActivityCallStarted', callId: string }
+ | { __typename: 'GraphqlActivityCreated' }
+ | { __typename: 'GraphqlActivityDeleted' }
+ | { __typename: 'GraphqlActivityEdited' }
+ | { __typename: 'GraphqlActivityMessaged' }
+ | { __typename: 'GraphqlActivityOpened' }
+ | { __typename: 'GraphqlActivityParticipantAdded', participant: string }
+ | { __typename: 'GraphqlActivityParticipantRemoved', participant: string }
+ | { __typename: 'GraphqlActivityPropertyChanged', property: string, from: unknown, to: unknown }
+ | { __typename: 'GraphqlActivitySent' }
+ | { __typename: 'GraphqlActivityUnknownAction', tag: string, payload: unknown }
+ }> }
+ | { __typename: 'GraphqlSoupProject', id: string, activity: Array<{ __typename: 'GraphqlActivityEvent', id: string, actorId: string, subjectId: string, entityType: GraphqlEntityType, entityId: string, occurredAt: string, action:
+ | { __typename: 'GraphqlActivityCallStarted', callId: string }
+ | { __typename: 'GraphqlActivityCreated' }
+ | { __typename: 'GraphqlActivityDeleted' }
+ | { __typename: 'GraphqlActivityEdited' }
+ | { __typename: 'GraphqlActivityMessaged' }
+ | { __typename: 'GraphqlActivityOpened' }
+ | { __typename: 'GraphqlActivityParticipantAdded', participant: string }
+ | { __typename: 'GraphqlActivityParticipantRemoved', participant: string }
+ | { __typename: 'GraphqlActivityPropertyChanged', property: string, from: unknown, to: unknown }
+ | { __typename: 'GraphqlActivitySent' }
+ | { __typename: 'GraphqlActivityUnknownAction', tag: string, payload: unknown }
+ }> }
+ | { __typename: 'GraphqlSoupReminder', id: string, activity: Array<{ __typename: 'GraphqlActivityEvent', id: string, actorId: string, subjectId: string, entityType: GraphqlEntityType, entityId: string, occurredAt: string, action:
+ | { __typename: 'GraphqlActivityCallStarted', callId: string }
+ | { __typename: 'GraphqlActivityCreated' }
+ | { __typename: 'GraphqlActivityDeleted' }
+ | { __typename: 'GraphqlActivityEdited' }
+ | { __typename: 'GraphqlActivityMessaged' }
+ | { __typename: 'GraphqlActivityOpened' }
+ | { __typename: 'GraphqlActivityParticipantAdded', participant: string }
+ | { __typename: 'GraphqlActivityParticipantRemoved', participant: string }
+ | { __typename: 'GraphqlActivityPropertyChanged', property: string, from: unknown, to: unknown }
+ | { __typename: 'GraphqlActivitySent' }
+ | { __typename: 'GraphqlActivityUnknownAction', tag: string, payload: unknown }
+ }> }
+ > } } };
+
+type EntityActivityFields_GraphqlSoupCalendarEvent_Fragment = { __typename: 'GraphqlSoupCalendarEvent', id: string, activity: Array<{ __typename: 'GraphqlActivityEvent', id: string, actorId: string, subjectId: string, entityType: GraphqlEntityType, entityId: string, occurredAt: string, action:
+ | { __typename: 'GraphqlActivityCallStarted', callId: string }
+ | { __typename: 'GraphqlActivityCreated' }
+ | { __typename: 'GraphqlActivityDeleted' }
+ | { __typename: 'GraphqlActivityEdited' }
+ | { __typename: 'GraphqlActivityMessaged' }
+ | { __typename: 'GraphqlActivityOpened' }
+ | { __typename: 'GraphqlActivityParticipantAdded', participant: string }
+ | { __typename: 'GraphqlActivityParticipantRemoved', participant: string }
+ | { __typename: 'GraphqlActivityPropertyChanged', property: string, from: unknown, to: unknown }
+ | { __typename: 'GraphqlActivitySent' }
+ | { __typename: 'GraphqlActivityUnknownAction', tag: string, payload: unknown }
+ }> };
+
+type EntityActivityFields_GraphqlSoupCall_Fragment = { __typename: 'GraphqlSoupCall', id: string, activity: Array<{ __typename: 'GraphqlActivityEvent', id: string, actorId: string, subjectId: string, entityType: GraphqlEntityType, entityId: string, occurredAt: string, action:
+ | { __typename: 'GraphqlActivityCallStarted', callId: string }
+ | { __typename: 'GraphqlActivityCreated' }
+ | { __typename: 'GraphqlActivityDeleted' }
+ | { __typename: 'GraphqlActivityEdited' }
+ | { __typename: 'GraphqlActivityMessaged' }
+ | { __typename: 'GraphqlActivityOpened' }
+ | { __typename: 'GraphqlActivityParticipantAdded', participant: string }
+ | { __typename: 'GraphqlActivityParticipantRemoved', participant: string }
+ | { __typename: 'GraphqlActivityPropertyChanged', property: string, from: unknown, to: unknown }
+ | { __typename: 'GraphqlActivitySent' }
+ | { __typename: 'GraphqlActivityUnknownAction', tag: string, payload: unknown }
+ }> };
+
+type EntityActivityFields_GraphqlSoupChannel_Fragment = { __typename: 'GraphqlSoupChannel', id: string, activity: Array<{ __typename: 'GraphqlActivityEvent', id: string, actorId: string, subjectId: string, entityType: GraphqlEntityType, entityId: string, occurredAt: string, action:
+ | { __typename: 'GraphqlActivityCallStarted', callId: string }
+ | { __typename: 'GraphqlActivityCreated' }
+ | { __typename: 'GraphqlActivityDeleted' }
+ | { __typename: 'GraphqlActivityEdited' }
+ | { __typename: 'GraphqlActivityMessaged' }
+ | { __typename: 'GraphqlActivityOpened' }
+ | { __typename: 'GraphqlActivityParticipantAdded', participant: string }
+ | { __typename: 'GraphqlActivityParticipantRemoved', participant: string }
+ | { __typename: 'GraphqlActivityPropertyChanged', property: string, from: unknown, to: unknown }
+ | { __typename: 'GraphqlActivitySent' }
+ | { __typename: 'GraphqlActivityUnknownAction', tag: string, payload: unknown }
+ }> };
+
+type EntityActivityFields_GraphqlSoupChannelMessage_Fragment = { __typename: 'GraphqlSoupChannelMessage', id: string, activity: Array<{ __typename: 'GraphqlActivityEvent', id: string, actorId: string, subjectId: string, entityType: GraphqlEntityType, entityId: string, occurredAt: string, action:
+ | { __typename: 'GraphqlActivityCallStarted', callId: string }
+ | { __typename: 'GraphqlActivityCreated' }
+ | { __typename: 'GraphqlActivityDeleted' }
+ | { __typename: 'GraphqlActivityEdited' }
+ | { __typename: 'GraphqlActivityMessaged' }
+ | { __typename: 'GraphqlActivityOpened' }
+ | { __typename: 'GraphqlActivityParticipantAdded', participant: string }
+ | { __typename: 'GraphqlActivityParticipantRemoved', participant: string }
+ | { __typename: 'GraphqlActivityPropertyChanged', property: string, from: unknown, to: unknown }
+ | { __typename: 'GraphqlActivitySent' }
+ | { __typename: 'GraphqlActivityUnknownAction', tag: string, payload: unknown }
+ }> };
+
+type EntityActivityFields_GraphqlSoupChat_Fragment = { __typename: 'GraphqlSoupChat', id: string, activity: Array<{ __typename: 'GraphqlActivityEvent', id: string, actorId: string, subjectId: string, entityType: GraphqlEntityType, entityId: string, occurredAt: string, action:
+ | { __typename: 'GraphqlActivityCallStarted', callId: string }
+ | { __typename: 'GraphqlActivityCreated' }
+ | { __typename: 'GraphqlActivityDeleted' }
+ | { __typename: 'GraphqlActivityEdited' }
+ | { __typename: 'GraphqlActivityMessaged' }
+ | { __typename: 'GraphqlActivityOpened' }
+ | { __typename: 'GraphqlActivityParticipantAdded', participant: string }
+ | { __typename: 'GraphqlActivityParticipantRemoved', participant: string }
+ | { __typename: 'GraphqlActivityPropertyChanged', property: string, from: unknown, to: unknown }
+ | { __typename: 'GraphqlActivitySent' }
+ | { __typename: 'GraphqlActivityUnknownAction', tag: string, payload: unknown }
+ }> };
+
+type EntityActivityFields_GraphqlSoupCrmCompany_Fragment = { __typename: 'GraphqlSoupCrmCompany', id: string, activity: Array<{ __typename: 'GraphqlActivityEvent', id: string, actorId: string, subjectId: string, entityType: GraphqlEntityType, entityId: string, occurredAt: string, action:
+ | { __typename: 'GraphqlActivityCallStarted', callId: string }
+ | { __typename: 'GraphqlActivityCreated' }
+ | { __typename: 'GraphqlActivityDeleted' }
+ | { __typename: 'GraphqlActivityEdited' }
+ | { __typename: 'GraphqlActivityMessaged' }
+ | { __typename: 'GraphqlActivityOpened' }
+ | { __typename: 'GraphqlActivityParticipantAdded', participant: string }
+ | { __typename: 'GraphqlActivityParticipantRemoved', participant: string }
+ | { __typename: 'GraphqlActivityPropertyChanged', property: string, from: unknown, to: unknown }
+ | { __typename: 'GraphqlActivitySent' }
+ | { __typename: 'GraphqlActivityUnknownAction', tag: string, payload: unknown }
+ }> };
+
+type EntityActivityFields_GraphqlSoupDocument_Fragment = { __typename: 'GraphqlSoupDocument', id: string, activity: Array<{ __typename: 'GraphqlActivityEvent', id: string, actorId: string, subjectId: string, entityType: GraphqlEntityType, entityId: string, occurredAt: string, action:
+ | { __typename: 'GraphqlActivityCallStarted', callId: string }
+ | { __typename: 'GraphqlActivityCreated' }
+ | { __typename: 'GraphqlActivityDeleted' }
+ | { __typename: 'GraphqlActivityEdited' }
+ | { __typename: 'GraphqlActivityMessaged' }
+ | { __typename: 'GraphqlActivityOpened' }
+ | { __typename: 'GraphqlActivityParticipantAdded', participant: string }
+ | { __typename: 'GraphqlActivityParticipantRemoved', participant: string }
+ | { __typename: 'GraphqlActivityPropertyChanged', property: string, from: unknown, to: unknown }
+ | { __typename: 'GraphqlActivitySent' }
+ | { __typename: 'GraphqlActivityUnknownAction', tag: string, payload: unknown }
+ }> };
+
+type EntityActivityFields_GraphqlSoupEmailThread_Fragment = { __typename: 'GraphqlSoupEmailThread', id: string, activity: Array<{ __typename: 'GraphqlActivityEvent', id: string, actorId: string, subjectId: string, entityType: GraphqlEntityType, entityId: string, occurredAt: string, action:
+ | { __typename: 'GraphqlActivityCallStarted', callId: string }
+ | { __typename: 'GraphqlActivityCreated' }
+ | { __typename: 'GraphqlActivityDeleted' }
+ | { __typename: 'GraphqlActivityEdited' }
+ | { __typename: 'GraphqlActivityMessaged' }
+ | { __typename: 'GraphqlActivityOpened' }
+ | { __typename: 'GraphqlActivityParticipantAdded', participant: string }
+ | { __typename: 'GraphqlActivityParticipantRemoved', participant: string }
+ | { __typename: 'GraphqlActivityPropertyChanged', property: string, from: unknown, to: unknown }
+ | { __typename: 'GraphqlActivitySent' }
+ | { __typename: 'GraphqlActivityUnknownAction', tag: string, payload: unknown }
+ }> };
+
+type EntityActivityFields_GraphqlSoupForeignEntity_Fragment = { __typename: 'GraphqlSoupForeignEntity', id: string, activity: Array<{ __typename: 'GraphqlActivityEvent', id: string, actorId: string, subjectId: string, entityType: GraphqlEntityType, entityId: string, occurredAt: string, action:
+ | { __typename: 'GraphqlActivityCallStarted', callId: string }
+ | { __typename: 'GraphqlActivityCreated' }
+ | { __typename: 'GraphqlActivityDeleted' }
+ | { __typename: 'GraphqlActivityEdited' }
+ | { __typename: 'GraphqlActivityMessaged' }
+ | { __typename: 'GraphqlActivityOpened' }
+ | { __typename: 'GraphqlActivityParticipantAdded', participant: string }
+ | { __typename: 'GraphqlActivityParticipantRemoved', participant: string }
+ | { __typename: 'GraphqlActivityPropertyChanged', property: string, from: unknown, to: unknown }
+ | { __typename: 'GraphqlActivitySent' }
+ | { __typename: 'GraphqlActivityUnknownAction', tag: string, payload: unknown }
+ }> };
+
+type EntityActivityFields_GraphqlSoupProject_Fragment = { __typename: 'GraphqlSoupProject', id: string, activity: Array<{ __typename: 'GraphqlActivityEvent', id: string, actorId: string, subjectId: string, entityType: GraphqlEntityType, entityId: string, occurredAt: string, action:
+ | { __typename: 'GraphqlActivityCallStarted', callId: string }
+ | { __typename: 'GraphqlActivityCreated' }
+ | { __typename: 'GraphqlActivityDeleted' }
+ | { __typename: 'GraphqlActivityEdited' }
+ | { __typename: 'GraphqlActivityMessaged' }
+ | { __typename: 'GraphqlActivityOpened' }
+ | { __typename: 'GraphqlActivityParticipantAdded', participant: string }
+ | { __typename: 'GraphqlActivityParticipantRemoved', participant: string }
+ | { __typename: 'GraphqlActivityPropertyChanged', property: string, from: unknown, to: unknown }
+ | { __typename: 'GraphqlActivitySent' }
+ | { __typename: 'GraphqlActivityUnknownAction', tag: string, payload: unknown }
+ }> };
+
+type EntityActivityFields_GraphqlSoupReminder_Fragment = { __typename: 'GraphqlSoupReminder', id: string, activity: Array<{ __typename: 'GraphqlActivityEvent', id: string, actorId: string, subjectId: string, entityType: GraphqlEntityType, entityId: string, occurredAt: string, action:
+ | { __typename: 'GraphqlActivityCallStarted', callId: string }
+ | { __typename: 'GraphqlActivityCreated' }
+ | { __typename: 'GraphqlActivityDeleted' }
+ | { __typename: 'GraphqlActivityEdited' }
+ | { __typename: 'GraphqlActivityMessaged' }
+ | { __typename: 'GraphqlActivityOpened' }
+ | { __typename: 'GraphqlActivityParticipantAdded', participant: string }
+ | { __typename: 'GraphqlActivityParticipantRemoved', participant: string }
+ | { __typename: 'GraphqlActivityPropertyChanged', property: string, from: unknown, to: unknown }
+ | { __typename: 'GraphqlActivitySent' }
+ | { __typename: 'GraphqlActivityUnknownAction', tag: string, payload: unknown }
+ }> };
+
+export type EntityActivityFieldsFragment =
+ | EntityActivityFields_GraphqlSoupCalendarEvent_Fragment
+ | EntityActivityFields_GraphqlSoupCall_Fragment
+ | EntityActivityFields_GraphqlSoupChannel_Fragment
+ | EntityActivityFields_GraphqlSoupChannelMessage_Fragment
+ | EntityActivityFields_GraphqlSoupChat_Fragment
+ | EntityActivityFields_GraphqlSoupCrmCompany_Fragment
+ | EntityActivityFields_GraphqlSoupDocument_Fragment
+ | EntityActivityFields_GraphqlSoupEmailThread_Fragment
+ | EntityActivityFields_GraphqlSoupForeignEntity_Fragment
+ | EntityActivityFields_GraphqlSoupProject_Fragment
+ | EntityActivityFields_GraphqlSoupReminder_Fragment
+;
+
+export type ActivityEventFieldsFragment = { __typename: 'GraphqlActivityEvent', id: string, actorId: string, subjectId: string, entityType: GraphqlEntityType, entityId: string, occurredAt: string, action:
+ | { __typename: 'GraphqlActivityCallStarted', callId: string }
+ | { __typename: 'GraphqlActivityCreated' }
+ | { __typename: 'GraphqlActivityDeleted' }
+ | { __typename: 'GraphqlActivityEdited' }
+ | { __typename: 'GraphqlActivityMessaged' }
+ | { __typename: 'GraphqlActivityOpened' }
+ | { __typename: 'GraphqlActivityParticipantAdded', participant: string }
+ | { __typename: 'GraphqlActivityParticipantRemoved', participant: string }
+ | { __typename: 'GraphqlActivityPropertyChanged', property: string, from: unknown, to: unknown }
+ | { __typename: 'GraphqlActivitySent' }
+ | { __typename: 'GraphqlActivityUnknownAction', tag: string, payload: unknown }
+ };
+
export type RecordChannelActivityMutationVariables = Exact<{
input: RecordChannelActivityInput;
}>;
@@ -8058,6 +8422,8 @@ export type SoupNotificationsEntityFieldsFragment =
| SoupNotificationsEntityFields_GraphqlSoupReminder_Fragment
;
+export const ActivityEventFieldsFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ActivityEventFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlActivityEvent"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"actorId"}},{"kind":"Field","name":{"kind":"Name","value":"subjectId"}},{"kind":"Field","name":{"kind":"Name","value":"entityType"}},{"kind":"Field","name":{"kind":"Name","value":"entityId"}},{"kind":"Field","name":{"kind":"Name","value":"occurredAt"}},{"kind":"Field","name":{"kind":"Name","value":"action"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlActivityPropertyChanged"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"property"}},{"kind":"Field","name":{"kind":"Name","value":"from"}},{"kind":"Field","name":{"kind":"Name","value":"to"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlActivityParticipantAdded"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"participant"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlActivityParticipantRemoved"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"participant"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlActivityCallStarted"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"callId"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlActivityUnknownAction"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"tag"}},{"kind":"Field","name":{"kind":"Name","value":"payload"}}]}}]}}]}}]} as unknown as DocumentNode<ActivityEventFieldsFragment, unknown>;
+export const EntityActivityFieldsFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"EntityActivityFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSoupEntity"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"activity"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"limit"},"value":{"kind":"Variable","name":{"kind":"Name","value":"limit"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ActivityEventFields"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ActivityEventFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlActivityEvent"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"actorId"}},{"kind":"Field","name":{"kind":"Name","value":"subjectId"}},{"kind":"Field","name":{"kind":"Name","value":"entityType"}},{"kind":"Field","name":{"kind":"Name","value":"entityId"}},{"kind":"Field","name":{"kind":"Name","value":"occurredAt"}},{"kind":"Field","name":{"kind":"Name","value":"action"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlActivityPropertyChanged"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"property"}},{"kind":"Field","name":{"kind":"Name","value":"from"}},{"kind":"Field","name":{"kind":"Name","value":"to"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlActivityParticipantAdded"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"participant"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlActivityParticipantRemoved"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"participant"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlActivityCallStarted"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"callId"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlActivityUnknownAction"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"tag"}},{"kind":"Field","name":{"kind":"Name","value":"payload"}}]}}]}}]}}]} as unknown as DocumentNode<EntityActivityFieldsFragment, unknown>;
export const EmailThreadMessageFieldsFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"EmailThreadMessageFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSoupEmailMessage"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"providerId"}},{"kind":"Field","name":{"kind":"Name","value":"threadId"}},{"kind":"Field","name":{"kind":"Name","value":"replyingToId"}},{"kind":"Field","name":{"kind":"Name","value":"linkId"}},{"kind":"Field","name":{"kind":"Name","value":"subject"}},{"kind":"Field","name":{"kind":"Name","value":"snippet"}},{"kind":"Field","name":{"kind":"Name","value":"internalDateTs"}},{"kind":"Field","name":{"kind":"Name","value":"sentAt"}},{"kind":"Field","name":{"kind":"Name","value":"isRead"}},{"kind":"Field","name":{"kind":"Name","value":"isStarred"}},{"kind":"Field","name":{"kind":"Name","value":"isSent"}},{"kind":"Field","name":{"kind":"Name","value":"isDraft"}},{"kind":"Field","name":{"kind":"Name","value":"hasAttachments"}},{"kind":"Field","name":{"kind":"Name","value":"scheduledSendTime"}},{"kind":"Field","name":{"kind":"Name","value":"from"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"email"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"photoUrl"}}]}},{"kind":"Field","name":{"kind":"Name","value":"to"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"email"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"photoUrl"}}]}},{"kind":"Field","name":{"kind":"Name","value":"cc"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"email"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"photoUrl"}}]}},{"kind":"Field","name":{"kind":"Name","value":"bcc"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"email"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"photoUrl"}}]}},{"kind":"Field","name":{"kind":"Name","value":"labels"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"providerLabelId"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"Field","name":{"kind":"Name","value":"bodyText"}},{"kind":"Field","name":{"kind":"Name","value":"bodyHtmlSanitized"}},{"kind":"Field","name":{"kind":"Name","value":"bodyMacro"}},{"kind":"Field","name":{"kind":"Name","value":"bodyReplyless"}},{"kind":"Field","name":{"kind":"Name","value":"attachments"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"providerId"}},{"kind":"Field","name":{"kind":"Name","value":"filename"}},{"kind":"Field","name":{"kind":"Name","value":"mimeType"}},{"kind":"Field","name":{"kind":"Name","value":"sizeBytes"}},{"kind":"Field","name":{"kind":"Name","value":"sfsId"}},{"kind":"Field","name":{"kind":"Name","value":"contentId"}}]}},{"kind":"Field","name":{"kind":"Name","value":"attachmentsDraft"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"draftId"}},{"kind":"Field","name":{"kind":"Name","value":"fileName"}},{"kind":"Field","name":{"kind":"Name","value":"contentType"}},{"kind":"Field","name":{"kind":"Name","value":"sha"}},{"kind":"Field","name":{"kind":"Name","value":"size"}},{"kind":"Field","name":{"kind":"Name","value":"s3Key"}}]}},{"kind":"Field","name":{"kind":"Name","value":"attachmentsForwarded"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"attachmentId"}},{"kind":"Field","name":{"kind":"Name","value":"draftId"}},{"kind":"Field","name":{"kind":"Name","value":"providerAttachmentId"}},{"kind":"Field","name":{"kind":"Name","value":"messageProviderId"}},{"kind":"Field","name":{"kind":"Name","value":"filename"}},{"kind":"Field","name":{"kind":"Name","value":"mimeType"}},{"kind":"Field","name":{"kind":"Name","value":"sizeBytes"}}]}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}}]} as unknown as DocumentNode<EmailThreadMessageFieldsFragment, unknown>;
export const EmailThreadPageFieldsFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"EmailThreadPageFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSoupEmailThread"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"providerId"}},{"kind":"Field","name":{"kind":"Name","value":"linkId"}},{"kind":"Field","name":{"kind":"Name","value":"inboxVisible"}},{"kind":"Field","name":{"kind":"Name","value":"isRead"}},{"kind":"Field","name":{"kind":"Name","value":"projectId"}},{"kind":"Field","name":{"kind":"Name","value":"latestInboundMessageTs"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"viewerPermission"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlAccessLevelPermission"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"accessLevel"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"labels"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"linkId"}},{"kind":"Field","name":{"kind":"Name","value":"providerLabelId"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"messageListVisibility"}},{"kind":"Field","name":{"kind":"Name","value":"labelListVisibility"}},{"kind":"Field","name":{"kind":"Name","value":"type"}}]}},{"kind":"Field","name":{"kind":"Name","value":"messages"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"offset"},"value":{"kind":"Variable","name":{"kind":"Name","value":"offset"}}},{"kind":"Argument","name":{"kind":"Name","value":"limit"},"value":{"kind":"Variable","name":{"kind":"Name","value":"limit"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"EmailThreadMessageFields"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"EmailThreadMessageFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSoupEmailMessage"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"providerId"}},{"kind":"Field","name":{"kind":"Name","value":"threadId"}},{"kind":"Field","name":{"kind":"Name","value":"replyingToId"}},{"kind":"Field","name":{"kind":"Name","value":"linkId"}},{"kind":"Field","name":{"kind":"Name","value":"subject"}},{"kind":"Field","name":{"kind":"Name","value":"snippet"}},{"kind":"Field","name":{"kind":"Name","value":"internalDateTs"}},{"kind":"Field","name":{"kind":"Name","value":"sentAt"}},{"kind":"Field","name":{"kind":"Name","value":"isRead"}},{"kind":"Field","name":{"kind":"Name","value":"isStarred"}},{"kind":"Field","name":{"kind":"Name","value":"isSent"}},{"kind":"Field","name":{"kind":"Name","value":"isDraft"}},{"kind":"Field","name":{"kind":"Name","value":"hasAttachments"}},{"kind":"Field","name":{"kind":"Name","value":"scheduledSendTime"}},{"kind":"Field","name":{"kind":"Name","value":"from"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"email"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"photoUrl"}}]}},{"kind":"Field","name":{"kind":"Name","value":"to"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"email"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"photoUrl"}}]}},{"kind":"Field","name":{"kind":"Name","value":"cc"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"email"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"photoUrl"}}]}},{"kind":"Field","name":{"kind":"Name","value":"bcc"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"email"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"photoUrl"}}]}},{"kind":"Field","name":{"kind":"Name","value":"labels"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"providerLabelId"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"Field","name":{"kind":"Name","value":"bodyText"}},{"kind":"Field","name":{"kind":"Name","value":"bodyHtmlSanitized"}},{"kind":"Field","name":{"kind":"Name","value":"bodyMacro"}},{"kind":"Field","name":{"kind":"Name","value":"bodyReplyless"}},{"kind":"Field","name":{"kind":"Name","value":"attachments"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"providerId"}},{"kind":"Field","name":{"kind":"Name","value":"filename"}},{"kind":"Field","name":{"kind":"Name","value":"mimeType"}},{"kind":"Field","name":{"kind":"Name","value":"sizeBytes"}},{"kind":"Field","name":{"kind":"Name","value":"sfsId"}},{"kind":"Field","name":{"kind":"Name","value":"contentId"}}]}},{"kind":"Field","name":{"kind":"Name","value":"attachmentsDraft"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"draftId"}},{"kind":"Field","name":{"kind":"Name","value":"fileName"}},{"kind":"Field","name":{"kind":"Name","value":"contentType"}},{"kind":"Field","name":{"kind":"Name","value":"sha"}},{"kind":"Field","name":{"kind":"Name","value":"size"}},{"kind":"Field","name":{"kind":"Name","value":"s3Key"}}]}},{"kind":"Field","name":{"kind":"Name","value":"attachmentsForwarded"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"attachmentId"}},{"kind":"Field","name":{"kind":"Name","value":"draftId"}},{"kind":"Field","name":{"kind":"Name","value":"providerAttachmentId"}},{"kind":"Field","name":{"kind":"Name","value":"messageProviderId"}},{"kind":"Field","name":{"kind":"Name","value":"filename"}},{"kind":"Field","name":{"kind":"Name","value":"mimeType"}},{"kind":"Field","name":{"kind":"Name","value":"sizeBytes"}}]}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}}]} as unknown as DocumentNode<EmailThreadPageFieldsFragment, unknown>;
export const SoupNotificationMetadataFieldsFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"SoupNotificationMetadataFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlNotifEvent"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlChannelMentionMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"channelMentionMessageId"},"name":{"kind":"Name","value":"messageId"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMentionMessageContent"},"name":{"kind":"Name","value":"messageContent"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMentionHasAttachments"},"name":{"kind":"Name","value":"hasAttachments"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMentionThreadId"},"name":{"kind":"Name","value":"threadId"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMentionSenderDisplayName"},"name":{"kind":"Name","value":"senderDisplayName"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMentionChannelType"},"name":{"kind":"Name","value":"channelType"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMentionChannelName"},"name":{"kind":"Name","value":"channelName"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMentionSenderProfilePictureUrl"},"name":{"kind":"Name","value":"senderProfilePictureUrl"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlDocumentMentionMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"documentMentionDocumentName"},"name":{"kind":"Name","value":"documentName"}},{"kind":"Field","alias":{"kind":"Name","value":"documentMentionOwner"},"name":{"kind":"Name","value":"owner"}},{"kind":"Field","alias":{"kind":"Name","value":"documentMentionFileType"},"name":{"kind":"Name","value":"fileType"}},{"kind":"Field","alias":{"kind":"Name","value":"documentMentionSubType"},"name":{"kind":"Name","value":"subType"}},{"kind":"Field","alias":{"kind":"Name","value":"documentMentionMessageId"},"name":{"kind":"Name","value":"messageId"}},{"kind":"Field","alias":{"kind":"Name","value":"documentMentionMessageContent"},"name":{"kind":"Name","value":"messageContent"}},{"kind":"Field","alias":{"kind":"Name","value":"documentMentionHasAttachments"},"name":{"kind":"Name","value":"hasAttachments"}},{"kind":"Field","alias":{"kind":"Name","value":"documentMentionThreadId"},"name":{"kind":"Name","value":"threadId"}},{"kind":"Field","alias":{"kind":"Name","value":"documentMentionSenderDisplayName"},"name":{"kind":"Name","value":"senderDisplayName"}},{"kind":"Field","alias":{"kind":"Name","value":"documentMentionChannelType"},"name":{"kind":"Name","value":"channelType"}},{"kind":"Field","alias":{"kind":"Name","value":"documentMentionChannelName"},"name":{"kind":"Name","value":"channelName"}},{"kind":"Field","alias":{"kind":"Name","value":"documentMentionSenderProfilePictureUrl"},"name":{"kind":"Name","value":"senderProfilePictureUrl"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlMentionedInDocumentCommentMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"mentionedInDocumentCommentDocumentName"},"name":{"kind":"Name","value":"documentName"}},{"kind":"Field","alias":{"kind":"Name","value":"mentionedInDocumentCommentOwner"},"name":{"kind":"Name","value":"owner"}},{"kind":"Field","alias":{"kind":"Name","value":"mentionedInDocumentCommentFileType"},"name":{"kind":"Name","value":"fileType"}},{"kind":"Field","alias":{"kind":"Name","value":"mentionedInDocumentCommentSubType"},"name":{"kind":"Name","value":"subType"}},{"kind":"Field","alias":{"kind":"Name","value":"mentionedInDocumentCommentMentionId"},"name":{"kind":"Name","value":"mentionId"}},{"kind":"Field","alias":{"kind":"Name","value":"mentionedInDocumentCommentCommentId"},"name":{"kind":"Name","value":"commentId"}},{"kind":"Field","alias":{"kind":"Name","value":"mentionedInDocumentCommentThreadId"},"name":{"kind":"Name","value":"threadId"}},{"kind":"Field","alias":{"kind":"Name","value":"mentionedInDocumentCommentText"},"name":{"kind":"Name","value":"text"}},{"kind":"Field","alias":{"kind":"Name","value":"mentionedInDocumentCommentSenderProfilePictureUrl"},"name":{"kind":"Name","value":"senderProfilePictureUrl"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlRepliedToDocumentCommentThreadMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"repliedToDocumentCommentThreadDocumentName"},"name":{"kind":"Name","value":"documentName"}},{"kind":"Field","alias":{"kind":"Name","value":"repliedToDocumentCommentThreadOwner"},"name":{"kind":"Name","value":"owner"}},{"kind":"Field","alias":{"kind":"Name","value":"repliedToDocumentCommentThreadFileType"},"name":{"kind":"Name","value":"fileType"}},{"kind":"Field","alias":{"kind":"Name","value":"repliedToDocumentCommentThreadSubType"},"name":{"kind":"Name","value":"subType"}},{"kind":"Field","alias":{"kind":"Name","value":"repliedToDocumentCommentThreadCommentId"},"name":{"kind":"Name","value":"commentId"}},{"kind":"Field","alias":{"kind":"Name","value":"repliedToDocumentCommentThreadThreadId"},"name":{"kind":"Name","value":"threadId"}},{"kind":"Field","alias":{"kind":"Name","value":"repliedToDocumentCommentThreadText"},"name":{"kind":"Name","value":"text"}},{"kind":"Field","alias":{"kind":"Name","value":"repliedToDocumentCommentThreadSenderProfilePictureUrl"},"name":{"kind":"Name","value":"senderProfilePictureUrl"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlCommentedOnDocumentMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"commentedOnDocumentDocumentName"},"name":{"kind":"Name","value":"documentName"}},{"kind":"Field","alias":{"kind":"Name","value":"commentedOnDocumentOwner"},"name":{"kind":"Name","value":"owner"}},{"kind":"Field","alias":{"kind":"Name","value":"commentedOnDocumentFileType"},"name":{"kind":"Name","value":"fileType"}},{"kind":"Field","alias":{"kind":"Name","value":"commentedOnDocumentSubType"},"name":{"kind":"Name","value":"subType"}},{"kind":"Field","alias":{"kind":"Name","value":"commentedOnDocumentCommentId"},"name":{"kind":"Name","value":"commentId"}},{"kind":"Field","alias":{"kind":"Name","value":"commentedOnDocumentThreadId"},"name":{"kind":"Name","value":"threadId"}},{"kind":"Field","alias":{"kind":"Name","value":"commentedOnDocumentText"},"name":{"kind":"Name","value":"text"}},{"kind":"Field","alias":{"kind":"Name","value":"commentedOnDocumentSenderProfilePictureUrl"},"name":{"kind":"Name","value":"senderProfilePictureUrl"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlChannelInviteMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"channelInviteInvitedBy"},"name":{"kind":"Name","value":"invitedBy"}},{"kind":"Field","alias":{"kind":"Name","value":"channelInviteChannelName"},"name":{"kind":"Name","value":"channelName"}},{"kind":"Field","alias":{"kind":"Name","value":"channelInviteMessageContent"},"name":{"kind":"Name","value":"messageContent"}},{"kind":"Field","alias":{"kind":"Name","value":"channelInviteSenderProfilePictureUrl"},"name":{"kind":"Name","value":"senderProfilePictureUrl"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlChannelMessageSendMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"channelMessageSendSender"},"name":{"kind":"Name","value":"sender"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMessageSendSenderDisplayName"},"name":{"kind":"Name","value":"senderDisplayName"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMessageSendMessageContent"},"name":{"kind":"Name","value":"messageContent"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMessageSendMessageId"},"name":{"kind":"Name","value":"messageId"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMessageSendHasAttachments"},"name":{"kind":"Name","value":"hasAttachments"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMessageSendChannelType"},"name":{"kind":"Name","value":"channelType"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMessageSendChannelName"},"name":{"kind":"Name","value":"channelName"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMessageSendSenderProfilePictureUrl"},"name":{"kind":"Name","value":"senderProfilePictureUrl"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlChannelReplyMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"channelReplyThreadId"},"name":{"kind":"Name","value":"threadId"}},{"kind":"Field","alias":{"kind":"Name","value":"channelReplyMessageId"},"name":{"kind":"Name","value":"messageId"}},{"kind":"Field","alias":{"kind":"Name","value":"channelReplyUserId"},"name":{"kind":"Name","value":"userId"}},{"kind":"Field","alias":{"kind":"Name","value":"channelReplySenderDisplayName"},"name":{"kind":"Name","value":"senderDisplayName"}},{"kind":"Field","alias":{"kind":"Name","value":"channelReplyMessageContent"},"name":{"kind":"Name","value":"messageContent"}},{"kind":"Field","alias":{"kind":"Name","value":"channelReplyHasAttachments"},"name":{"kind":"Name","value":"hasAttachments"}},{"kind":"Field","alias":{"kind":"Name","value":"channelReplyThreadParentSenderId"},"name":{"kind":"Name","value":"threadParentSenderId"}},{"kind":"Field","alias":{"kind":"Name","value":"channelReplyChannelType"},"name":{"kind":"Name","value":"channelType"}},{"kind":"Field","alias":{"kind":"Name","value":"channelReplyChannelName"},"name":{"kind":"Name","value":"channelName"}},{"kind":"Field","alias":{"kind":"Name","value":"channelReplySenderProfilePictureUrl"},"name":{"kind":"Name","value":"senderProfilePictureUrl"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlCallStartedMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"callStartedChannelName"},"name":{"kind":"Name","value":"channelName"}},{"kind":"Field","alias":{"kind":"Name","value":"callStartedSenderProfilePictureUrl"},"name":{"kind":"Name","value":"senderProfilePictureUrl"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlNewEmailMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"newEmailSender"},"name":{"kind":"Name","value":"sender"}},{"kind":"Field","alias":{"kind":"Name","value":"newEmailToEmail"},"name":{"kind":"Name","value":"toEmail"}},{"kind":"Field","alias":{"kind":"Name","value":"newEmailThreadId"},"name":{"kind":"Name","value":"threadId"}},{"kind":"Field","alias":{"kind":"Name","value":"newEmailSubject"},"name":{"kind":"Name","value":"subject"}},{"kind":"Field","alias":{"kind":"Name","value":"newEmailSnippet"},"name":{"kind":"Name","value":"snippet"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlInboxReauthRequiredMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"inboxReauthRequiredEmailAddress"},"name":{"kind":"Name","value":"emailAddress"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlInviteToTeamMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"inviteToTeamTeamName"},"name":{"kind":"Name","value":"teamName"}},{"kind":"Field","alias":{"kind":"Name","value":"inviteToTeamTeamId"},"name":{"kind":"Name","value":"teamId"}},{"kind":"Field","alias":{"kind":"Name","value":"inviteToTeamTeamInviteId"},"name":{"kind":"Name","value":"teamInviteId"}},{"kind":"Field","alias":{"kind":"Name","value":"inviteToTeamInvitedBy"},"name":{"kind":"Name","value":"invitedBy"}},{"kind":"Field","alias":{"kind":"Name","value":"inviteToTeamRole"},"name":{"kind":"Name","value":"role"}},{"kind":"Field","alias":{"kind":"Name","value":"inviteToTeamSenderProfilePictureUrl"},"name":{"kind":"Name","value":"senderProfilePictureUrl"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlTaskAssignedMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"taskAssignedTaskId"},"name":{"kind":"Name","value":"taskId"}},{"kind":"Field","alias":{"kind":"Name","value":"taskAssignedTaskName"},"name":{"kind":"Name","value":"taskName"}},{"kind":"Field","alias":{"kind":"Name","value":"taskAssignedSubType"},"name":{"kind":"Name","value":"subType"}},{"kind":"Field","alias":{"kind":"Name","value":"taskAssignedAssignedBy"},"name":{"kind":"Name","value":"assignedBy"}},{"kind":"Field","alias":{"kind":"Name","value":"taskAssignedSenderProfilePictureUrl"},"name":{"kind":"Name","value":"senderProfilePictureUrl"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlReminderMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"reminderReminderId"},"name":{"kind":"Name","value":"reminderId"}},{"kind":"Field","alias":{"kind":"Name","value":"reminderDescription"},"name":{"kind":"Name","value":"description"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlCalendarEventReminderMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"calendarEventReminderEventId"},"name":{"kind":"Name","value":"eventId"}},{"kind":"Field","alias":{"kind":"Name","value":"calendarEventReminderOccurrenceKey"},"name":{"kind":"Name","value":"occurrenceKey"}},{"kind":"Field","alias":{"kind":"Name","value":"calendarEventReminderTitle"},"name":{"kind":"Name","value":"title"}},{"kind":"Field","alias":{"kind":"Name","value":"calendarEventReminderStartsAt"},"name":{"kind":"Name","value":"startsAt"}},{"kind":"Field","alias":{"kind":"Name","value":"calendarEventReminderEndsAt"},"name":{"kind":"Name","value":"endsAt"}},{"kind":"Field","alias":{"kind":"Name","value":"calendarEventReminderStartDate"},"name":{"kind":"Name","value":"startDate"}},{"kind":"Field","alias":{"kind":"Name","value":"calendarEventReminderTimeZone"},"name":{"kind":"Name","value":"timeZone"}},{"kind":"Field","alias":{"kind":"Name","value":"calendarEventReminderMinutesBefore"},"name":{"kind":"Name","value":"minutesBefore"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlAiResponseMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"aiResponseSummary"},"name":{"kind":"Name","value":"summary"}},{"kind":"Field","alias":{"kind":"Name","value":"aiResponseMessageId"},"name":{"kind":"Name","value":"messageId"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlGithubPrStatusChangedMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedForeignEntityId"},"name":{"kind":"Name","value":"foreignEntityId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedGithubKey"},"name":{"kind":"Name","value":"githubKey"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedOwner"},"name":{"kind":"Name","value":"owner"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedRepo"},"name":{"kind":"Name","value":"repo"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedNumber"},"name":{"kind":"Name","value":"number"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedUrl"},"name":{"kind":"Name","value":"url"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedDisplayName"},"name":{"kind":"Name","value":"displayName"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedTitle"},"name":{"kind":"Name","value":"title"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedSenderGithubLogin"},"name":{"kind":"Name","value":"senderGithubLogin"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedSenderGithubUserId"},"name":{"kind":"Name","value":"senderGithubUserId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedSenderGithubAvatarUrl"},"name":{"kind":"Name","value":"senderGithubAvatarUrl"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedStatus"},"name":{"kind":"Name","value":"status"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedAction"},"name":{"kind":"Name","value":"action"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedPreviousStatus"},"name":{"kind":"Name","value":"previousStatus"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedHeadBranch"},"name":{"kind":"Name","value":"headBranch"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedBaseBranch"},"name":{"kind":"Name","value":"baseBranch"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedMergedAt"},"name":{"kind":"Name","value":"mergedAt"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlGithubPrCheckRunMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunForeignEntityId"},"name":{"kind":"Name","value":"foreignEntityId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunGithubKey"},"name":{"kind":"Name","value":"githubKey"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunOwner"},"name":{"kind":"Name","value":"owner"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunRepo"},"name":{"kind":"Name","value":"repo"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunNumber"},"name":{"kind":"Name","value":"number"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunUrl"},"name":{"kind":"Name","value":"url"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunDisplayName"},"name":{"kind":"Name","value":"displayName"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunTitle"},"name":{"kind":"Name","value":"title"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunSenderGithubLogin"},"name":{"kind":"Name","value":"senderGithubLogin"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunSenderGithubUserId"},"name":{"kind":"Name","value":"senderGithubUserId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunSenderGithubAvatarUrl"},"name":{"kind":"Name","value":"senderGithubAvatarUrl"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunCheckRunGithubId"},"name":{"kind":"Name","value":"checkRunGithubId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunCheckName"},"name":{"kind":"Name","value":"checkName"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunCheckStatus"},"name":{"kind":"Name","value":"checkStatus"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunConclusion"},"name":{"kind":"Name","value":"conclusion"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunState"},"name":{"kind":"Name","value":"state"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunCheckUrl"},"name":{"kind":"Name","value":"checkUrl"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunCompletedAt"},"name":{"kind":"Name","value":"completedAt"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlGithubReviewRequestedMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"githubReviewRequestedForeignEntityId"},"name":{"kind":"Name","value":"foreignEntityId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubReviewRequestedGithubKey"},"name":{"kind":"Name","value":"githubKey"}},{"kind":"Field","alias":{"kind":"Name","value":"githubReviewRequestedOwner"},"name":{"kind":"Name","value":"owner"}},{"kind":"Field","alias":{"kind":"Name","value":"githubReviewRequestedRepo"},"name":{"kind":"Name","value":"repo"}},{"kind":"Field","alias":{"kind":"Name","value":"githubReviewRequestedNumber"},"name":{"kind":"Name","value":"number"}},{"kind":"Field","alias":{"kind":"Name","value":"githubReviewRequestedUrl"},"name":{"kind":"Name","value":"url"}},{"kind":"Field","alias":{"kind":"Name","value":"githubReviewRequestedDisplayName"},"name":{"kind":"Name","value":"displayName"}},{"kind":"Field","alias":{"kind":"Name","value":"githubReviewRequestedTitle"},"name":{"kind":"Name","value":"title"}},{"kind":"Field","alias":{"kind":"Name","value":"githubReviewRequestedSenderGithubLogin"},"name":{"kind":"Name","value":"senderGithubLogin"}},{"kind":"Field","alias":{"kind":"Name","value":"githubReviewRequestedSenderGithubUserId"},"name":{"kind":"Name","value":"senderGithubUserId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubReviewRequestedSenderGithubAvatarUrl"},"name":{"kind":"Name","value":"senderGithubAvatarUrl"}},{"kind":"Field","alias":{"kind":"Name","value":"githubReviewRequestedRequestedReviewerGithubLogin"},"name":{"kind":"Name","value":"requestedReviewerGithubLogin"}},{"kind":"Field","alias":{"kind":"Name","value":"githubReviewRequestedRequestedReviewerGithubUserId"},"name":{"kind":"Name","value":"requestedReviewerGithubUserId"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlGithubPrCommentMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentForeignEntityId"},"name":{"kind":"Name","value":"foreignEntityId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentGithubKey"},"name":{"kind":"Name","value":"githubKey"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentOwner"},"name":{"kind":"Name","value":"owner"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentRepo"},"name":{"kind":"Name","value":"repo"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentNumber"},"name":{"kind":"Name","value":"number"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentUrl"},"name":{"kind":"Name","value":"url"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentDisplayName"},"name":{"kind":"Name","value":"displayName"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentTitle"},"name":{"kind":"Name","value":"title"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentSenderGithubLogin"},"name":{"kind":"Name","value":"senderGithubLogin"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentSenderGithubUserId"},"name":{"kind":"Name","value":"senderGithubUserId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentSenderGithubAvatarUrl"},"name":{"kind":"Name","value":"senderGithubAvatarUrl"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentCommentKind"},"name":{"kind":"Name","value":"commentKind"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentCommentGithubId"},"name":{"kind":"Name","value":"commentGithubId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentCommentUrl"},"name":{"kind":"Name","value":"commentUrl"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentCommentSnippet"},"name":{"kind":"Name","value":"commentSnippet"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlGithubPrMentionMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionForeignEntityId"},"name":{"kind":"Name","value":"foreignEntityId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionGithubKey"},"name":{"kind":"Name","value":"githubKey"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionOwner"},"name":{"kind":"Name","value":"owner"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionRepo"},"name":{"kind":"Name","value":"repo"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionNumber"},"name":{"kind":"Name","value":"number"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionUrl"},"name":{"kind":"Name","value":"url"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionDisplayName"},"name":{"kind":"Name","value":"displayName"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionTitle"},"name":{"kind":"Name","value":"title"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionSenderGithubLogin"},"name":{"kind":"Name","value":"senderGithubLogin"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionSenderGithubUserId"},"name":{"kind":"Name","value":"senderGithubUserId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionSenderGithubAvatarUrl"},"name":{"kind":"Name","value":"senderGithubAvatarUrl"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionLocation"},"name":{"kind":"Name","value":"location"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionCommentGithubId"},"name":{"kind":"Name","value":"commentGithubId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionCommentUrl"},"name":{"kind":"Name","value":"commentUrl"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionTextSnippet"},"name":{"kind":"Name","value":"textSnippet"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlGithubPrReviewMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewForeignEntityId"},"name":{"kind":"Name","value":"foreignEntityId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewGithubKey"},"name":{"kind":"Name","value":"githubKey"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewOwner"},"name":{"kind":"Name","value":"owner"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewRepo"},"name":{"kind":"Name","value":"repo"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewNumber"},"name":{"kind":"Name","value":"number"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewUrl"},"name":{"kind":"Name","value":"url"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewDisplayName"},"name":{"kind":"Name","value":"displayName"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewTitle"},"name":{"kind":"Name","value":"title"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewSenderGithubLogin"},"name":{"kind":"Name","value":"senderGithubLogin"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewSenderGithubUserId"},"name":{"kind":"Name","value":"senderGithubUserId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewSenderGithubAvatarUrl"},"name":{"kind":"Name","value":"senderGithubAvatarUrl"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewReviewGithubId"},"name":{"kind":"Name","value":"reviewGithubId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewReviewUrl"},"name":{"kind":"Name","value":"reviewUrl"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewState"},"name":{"kind":"Name","value":"state"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewReviewSnippet"},"name":{"kind":"Name","value":"reviewSnippet"}}]}}]}}]} as unknown as DocumentNode<SoupNotificationMetadataFieldsFragment, unknown>;
@@ -8071,6 +8437,8 @@ export const EntityMutationResultFieldsFragmentDoc = {"kind":"Document","definit
export const EntityMutationPayloadFieldsFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"EntityMutationPayloadFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"EntityMutationPayload"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"results"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"EntityMutationResultFields"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"SoupNotificationMetadataFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlNotifEvent"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlChannelMentionMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"channelMentionMessageId"},"name":{"kind":"Name","value":"messageId"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMentionMessageContent"},"name":{"kind":"Name","value":"messageContent"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMentionHasAttachments"},"name":{"kind":"Name","value":"hasAttachments"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMentionThreadId"},"name":{"kind":"Name","value":"threadId"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMentionSenderDisplayName"},"name":{"kind":"Name","value":"senderDisplayName"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMentionChannelType"},"name":{"kind":"Name","value":"channelType"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMentionChannelName"},"name":{"kind":"Name","value":"channelName"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMentionSenderProfilePictureUrl"},"name":{"kind":"Name","value":"senderProfilePictureUrl"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlDocumentMentionMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"documentMentionDocumentName"},"name":{"kind":"Name","value":"documentName"}},{"kind":"Field","alias":{"kind":"Name","value":"documentMentionOwner"},"name":{"kind":"Name","value":"owner"}},{"kind":"Field","alias":{"kind":"Name","value":"documentMentionFileType"},"name":{"kind":"Name","value":"fileType"}},{"kind":"Field","alias":{"kind":"Name","value":"documentMentionSubType"},"name":{"kind":"Name","value":"subType"}},{"kind":"Field","alias":{"kind":"Name","value":"documentMentionMessageId"},"name":{"kind":"Name","value":"messageId"}},{"kind":"Field","alias":{"kind":"Name","value":"documentMentionMessageContent"},"name":{"kind":"Name","value":"messageContent"}},{"kind":"Field","alias":{"kind":"Name","value":"documentMentionHasAttachments"},"name":{"kind":"Name","value":"hasAttachments"}},{"kind":"Field","alias":{"kind":"Name","value":"documentMentionThreadId"},"name":{"kind":"Name","value":"threadId"}},{"kind":"Field","alias":{"kind":"Name","value":"documentMentionSenderDisplayName"},"name":{"kind":"Name","value":"senderDisplayName"}},{"kind":"Field","alias":{"kind":"Name","value":"documentMentionChannelType"},"name":{"kind":"Name","value":"channelType"}},{"kind":"Field","alias":{"kind":"Name","value":"documentMentionChannelName"},"name":{"kind":"Name","value":"channelName"}},{"kind":"Field","alias":{"kind":"Name","value":"documentMentionSenderProfilePictureUrl"},"name":{"kind":"Name","value":"senderProfilePictureUrl"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlMentionedInDocumentCommentMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"mentionedInDocumentCommentDocumentName"},"name":{"kind":"Name","value":"documentName"}},{"kind":"Field","alias":{"kind":"Name","value":"mentionedInDocumentCommentOwner"},"name":{"kind":"Name","value":"owner"}},{"kind":"Field","alias":{"kind":"Name","value":"mentionedInDocumentCommentFileType"},"name":{"kind":"Name","value":"fileType"}},{"kind":"Field","alias":{"kind":"Name","value":"mentionedInDocumentCommentSubType"},"name":{"kind":"Name","value":"subType"}},{"kind":"Field","alias":{"kind":"Name","value":"mentionedInDocumentCommentMentionId"},"name":{"kind":"Name","value":"mentionId"}},{"kind":"Field","alias":{"kind":"Name","value":"mentionedInDocumentCommentCommentId"},"name":{"kind":"Name","value":"commentId"}},{"kind":"Field","alias":{"kind":"Name","value":"mentionedInDocumentCommentThreadId"},"name":{"kind":"Name","value":"threadId"}},{"kind":"Field","alias":{"kind":"Name","value":"mentionedInDocumentCommentText"},"name":{"kind":"Name","value":"text"}},{"kind":"Field","alias":{"kind":"Name","value":"mentionedInDocumentCommentSenderProfilePictureUrl"},"name":{"kind":"Name","value":"senderProfilePictureUrl"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlRepliedToDocumentCommentThreadMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"repliedToDocumentCommentThreadDocumentName"},"name":{"kind":"Name","value":"documentName"}},{"kind":"Field","alias":{"kind":"Name","value":"repliedToDocumentCommentThreadOwner"},"name":{"kind":"Name","value":"owner"}},{"kind":"Field","alias":{"kind":"Name","value":"repliedToDocumentCommentThreadFileType"},"name":{"kind":"Name","value":"fileType"}},{"kind":"Field","alias":{"kind":"Name","value":"repliedToDocumentCommentThreadSubType"},"name":{"kind":"Name","value":"subType"}},{"kind":"Field","alias":{"kind":"Name","value":"repliedToDocumentCommentThreadCommentId"},"name":{"kind":"Name","value":"commentId"}},{"kind":"Field","alias":{"kind":"Name","value":"repliedToDocumentCommentThreadThreadId"},"name":{"kind":"Name","value":"threadId"}},{"kind":"Field","alias":{"kind":"Name","value":"repliedToDocumentCommentThreadText"},"name":{"kind":"Name","value":"text"}},{"kind":"Field","alias":{"kind":"Name","value":"repliedToDocumentCommentThreadSenderProfilePictureUrl"},"name":{"kind":"Name","value":"senderProfilePictureUrl"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlCommentedOnDocumentMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"commentedOnDocumentDocumentName"},"name":{"kind":"Name","value":"documentName"}},{"kind":"Field","alias":{"kind":"Name","value":"commentedOnDocumentOwner"},"name":{"kind":"Name","value":"owner"}},{"kind":"Field","alias":{"kind":"Name","value":"commentedOnDocumentFileType"},"name":{"kind":"Name","value":"fileType"}},{"kind":"Field","alias":{"kind":"Name","value":"commentedOnDocumentSubType"},"name":{"kind":"Name","value":"subType"}},{"kind":"Field","alias":{"kind":"Name","value":"commentedOnDocumentCommentId"},"name":{"kind":"Name","value":"commentId"}},{"kind":"Field","alias":{"kind":"Name","value":"commentedOnDocumentThreadId"},"name":{"kind":"Name","value":"threadId"}},{"kind":"Field","alias":{"kind":"Name","value":"commentedOnDocumentText"},"name":{"kind":"Name","value":"text"}},{"kind":"Field","alias":{"kind":"Name","value":"commentedOnDocumentSenderProfilePictureUrl"},"name":{"kind":"Name","value":"senderProfilePictureUrl"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlChannelInviteMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"channelInviteInvitedBy"},"name":{"kind":"Name","value":"invitedBy"}},{"kind":"Field","alias":{"kind":"Name","value":"channelInviteChannelName"},"name":{"kind":"Name","value":"channelName"}},{"kind":"Field","alias":{"kind":"Name","value":"channelInviteMessageContent"},"name":{"kind":"Name","value":"messageContent"}},{"kind":"Field","alias":{"kind":"Name","value":"channelInviteSenderProfilePictureUrl"},"name":{"kind":"Name","value":"senderProfilePictureUrl"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlChannelMessageSendMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"channelMessageSendSender"},"name":{"kind":"Name","value":"sender"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMessageSendSenderDisplayName"},"name":{"kind":"Name","value":"senderDisplayName"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMessageSendMessageContent"},"name":{"kind":"Name","value":"messageContent"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMessageSendMessageId"},"name":{"kind":"Name","value":"messageId"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMessageSendHasAttachments"},"name":{"kind":"Name","value":"hasAttachments"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMessageSendChannelType"},"name":{"kind":"Name","value":"channelType"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMessageSendChannelName"},"name":{"kind":"Name","value":"channelName"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMessageSendSenderProfilePictureUrl"},"name":{"kind":"Name","value":"senderProfilePictureUrl"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlChannelReplyMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"channelReplyThreadId"},"name":{"kind":"Name","value":"threadId"}},{"kind":"Field","alias":{"kind":"Name","value":"channelReplyMessageId"},"name":{"kind":"Name","value":"messageId"}},{"kind":"Field","alias":{"kind":"Name","value":"channelReplyUserId"},"name":{"kind":"Name","value":"userId"}},{"kind":"Field","alias":{"kind":"Name","value":"channelReplySenderDisplayName"},"name":{"kind":"Name","value":"senderDisplayName"}},{"kind":"Field","alias":{"kind":"Name","value":"channelReplyMessageContent"},"name":{"kind":"Name","value":"messageContent"}},{"kind":"Field","alias":{"kind":"Name","value":"channelReplyHasAttachments"},"name":{"kind":"Name","value":"hasAttachments"}},{"kind":"Field","alias":{"kind":"Name","value":"channelReplyThreadParentSenderId"},"name":{"kind":"Name","value":"threadParentSenderId"}},{"kind":"Field","alias":{"kind":"Name","value":"channelReplyChannelType"},"name":{"kind":"Name","value":"channelType"}},{"kind":"Field","alias":{"kind":"Name","value":"channelReplyChannelName"},"name":{"kind":"Name","value":"channelName"}},{"kind":"Field","alias":{"kind":"Name","value":"channelReplySenderProfilePictureUrl"},"name":{"kind":"Name","value":"senderProfilePictureUrl"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlCallStartedMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"callStartedChannelName"},"name":{"kind":"Name","value":"channelName"}},{"kind":"Field","alias":{"kind":"Name","value":"callStartedSenderProfilePictureUrl"},"name":{"kind":"Name","value":"senderProfilePictureUrl"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlNewEmailMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"newEmailSender"},"name":{"kind":"Name","value":"sender"}},{"kind":"Field","alias":{"kind":"Name","value":"newEmailToEmail"},"name":{"kind":"Name","value":"toEmail"}},{"kind":"Field","alias":{"kind":"Name","value":"newEmailThreadId"},"name":{"kind":"Name","value":"threadId"}},{"kind":"Field","alias":{"kind":"Name","value":"newEmailSubject"},"name":{"kind":"Name","value":"subject"}},{"kind":"Field","alias":{"kind":"Name","value":"newEmailSnippet"},"name":{"kind":"Name","value":"snippet"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlInboxReauthRequiredMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"inboxReauthRequiredEmailAddress"},"name":{"kind":"Name","value":"emailAddress"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlInviteToTeamMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"inviteToTeamTeamName"},"name":{"kind":"Name","value":"teamName"}},{"kind":"Field","alias":{"kind":"Name","value":"inviteToTeamTeamId"},"name":{"kind":"Name","value":"teamId"}},{"kind":"Field","alias":{"kind":"Name","value":"inviteToTeamTeamInviteId"},"name":{"kind":"Name","value":"teamInviteId"}},{"kind":"Field","alias":{"kind":"Name","value":"inviteToTeamInvitedBy"},"name":{"kind":"Name","value":"invitedBy"}},{"kind":"Field","alias":{"kind":"Name","value":"inviteToTeamRole"},"name":{"kind":"Name","value":"role"}},{"kind":"Field","alias":{"kind":"Name","value":"inviteToTeamSenderProfilePictureUrl"},"name":{"kind":"Name","value":"senderProfilePictureUrl"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlTaskAssignedMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"taskAssignedTaskId"},"name":{"kind":"Name","value":"taskId"}},{"kind":"Field","alias":{"kind":"Name","value":"taskAssignedTaskName"},"name":{"kind":"Name","value":"taskName"}},{"kind":"Field","alias":{"kind":"Name","value":"taskAssignedSubType"},"name":{"kind":"Name","value":"subType"}},{"kind":"Field","alias":{"kind":"Name","value":"taskAssignedAssignedBy"},"name":{"kind":"Name","value":"assignedBy"}},{"kind":"Field","alias":{"kind":"Name","value":"taskAssignedSenderProfilePictureUrl"},"name":{"kind":"Name","value":"senderProfilePictureUrl"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlReminderMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"reminderReminderId"},"name":{"kind":"Name","value":"reminderId"}},{"kind":"Field","alias":{"kind":"Name","value":"reminderDescription"},"name":{"kind":"Name","value":"description"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlCalendarEventReminderMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"calendarEventReminderEventId"},"name":{"kind":"Name","value":"eventId"}},{"kind":"Field","alias":{"kind":"Name","value":"calendarEventReminderOccurrenceKey"},"name":{"kind":"Name","value":"occurrenceKey"}},{"kind":"Field","alias":{"kind":"Name","value":"calendarEventReminderTitle"},"name":{"kind":"Name","value":"title"}},{"kind":"Field","alias":{"kind":"Name","value":"calendarEventReminderStartsAt"},"name":{"kind":"Name","value":"startsAt"}},{"kind":"Field","alias":{"kind":"Name","value":"calendarEventReminderEndsAt"},"name":{"kind":"Name","value":"endsAt"}},{"kind":"Field","alias":{"kind":"Name","value":"calendarEventReminderStartDate"},"name":{"kind":"Name","value":"startDate"}},{"kind":"Field","alias":{"kind":"Name","value":"calendarEventReminderTimeZone"},"name":{"kind":"Name","value":"timeZone"}},{"kind":"Field","alias":{"kind":"Name","value":"calendarEventReminderMinutesBefore"},"name":{"kind":"Name","value":"minutesBefore"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlAiResponseMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"aiResponseSummary"},"name":{"kind":"Name","value":"summary"}},{"kind":"Field","alias":{"kind":"Name","value":"aiResponseMessageId"},"name":{"kind":"Name","value":"messageId"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlGithubPrStatusChangedMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedForeignEntityId"},"name":{"kind":"Name","value":"foreignEntityId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedGithubKey"},"name":{"kind":"Name","value":"githubKey"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedOwner"},"name":{"kind":"Name","value":"owner"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedRepo"},"name":{"kind":"Name","value":"repo"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedNumber"},"name":{"kind":"Name","value":"number"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedUrl"},"name":{"kind":"Name","value":"url"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedDisplayName"},"name":{"kind":"Name","value":"displayName"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedTitle"},"name":{"kind":"Name","value":"title"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedSenderGithubLogin"},"name":{"kind":"Name","value":"senderGithubLogin"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedSenderGithubUserId"},"name":{"kind":"Name","value":"senderGithubUserId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedSenderGithubAvatarUrl"},"name":{"kind":"Name","value":"senderGithubAvatarUrl"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedStatus"},"name":{"kind":"Name","value":"status"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedAction"},"name":{"kind":"Name","value":"action"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedPreviousStatus"},"name":{"kind":"Name","value":"previousStatus"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedHeadBranch"},"name":{"kind":"Name","value":"headBranch"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedBaseBranch"},"name":{"kind":"Name","value":"baseBranch"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedMergedAt"},"name":{"kind":"Name","value":"mergedAt"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlGithubPrCheckRunMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunForeignEntityId"},"name":{"kind":"Name","value":"foreignEntityId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunGithubKey"},"name":{"kind":"Name","value":"githubKey"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunOwner"},"name":{"kind":"Name","value":"owner"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunRepo"},"name":{"kind":"Name","value":"repo"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunNumber"},"name":{"kind":"Name","value":"number"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunUrl"},"name":{"kind":"Name","value":"url"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunDisplayName"},"name":{"kind":"Name","value":"displayName"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunTitle"},"name":{"kind":"Name","value":"title"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunSenderGithubLogin"},"name":{"kind":"Name","value":"senderGithubLogin"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunSenderGithubUserId"},"name":{"kind":"Name","value":"senderGithubUserId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunSenderGithubAvatarUrl"},"name":{"kind":"Name","value":"senderGithubAvatarUrl"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunCheckRunGithubId"},"name":{"kind":"Name","value":"checkRunGithubId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunCheckName"},"name":{"kind":"Name","value":"checkName"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunCheckStatus"},"name":{"kind":"Name","value":"checkStatus"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunConclusion"},"name":{"kind":"Name","value":"conclusion"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunState"},"name":{"kind":"Name","value":"state"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunCheckUrl"},"name":{"kind":"Name","value":"checkUrl"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunCompletedAt"},"name":{"kind":"Name","value":"completedAt"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlGithubReviewRequestedMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"githubReviewRequestedForeignEntityId"},"name":{"kind":"Name","value":"foreignEntityId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubReviewRequestedGithubKey"},"name":{"kind":"Name","value":"githubKey"}},{"kind":"Field","alias":{"kind":"Name","value":"githubReviewRequestedOwner"},"name":{"kind":"Name","value":"owner"}},{"kind":"Field","alias":{"kind":"Name","value":"githubReviewRequestedRepo"},"name":{"kind":"Name","value":"repo"}},{"kind":"Field","alias":{"kind":"Name","value":"githubReviewRequestedNumber"},"name":{"kind":"Name","value":"number"}},{"kind":"Field","alias":{"kind":"Name","value":"githubReviewRequestedUrl"},"name":{"kind":"Name","value":"url"}},{"kind":"Field","alias":{"kind":"Name","value":"githubReviewRequestedDisplayName"},"name":{"kind":"Name","value":"displayName"}},{"kind":"Field","alias":{"kind":"Name","value":"githubReviewRequestedTitle"},"name":{"kind":"Name","value":"title"}},{"kind":"Field","alias":{"kind":"Name","value":"githubReviewRequestedSenderGithubLogin"},"name":{"kind":"Name","value":"senderGithubLogin"}},{"kind":"Field","alias":{"kind":"Name","value":"githubReviewRequestedSenderGithubUserId"},"name":{"kind":"Name","value":"senderGithubUserId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubReviewRequestedSenderGithubAvatarUrl"},"name":{"kind":"Name","value":"senderGithubAvatarUrl"}},{"kind":"Field","alias":{"kind":"Name","value":"githubReviewRequestedRequestedReviewerGithubLogin"},"name":{"kind":"Name","value":"requestedReviewerGithubLogin"}},{"kind":"Field","alias":{"kind":"Name","value":"githubReviewRequestedRequestedReviewerGithubUserId"},"name":{"kind":"Name","value":"requestedReviewerGithubUserId"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlGithubPrCommentMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentForeignEntityId"},"name":{"kind":"Name","value":"foreignEntityId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentGithubKey"},"name":{"kind":"Name","value":"githubKey"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentOwner"},"name":{"kind":"Name","value":"owner"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentRepo"},"name":{"kind":"Name","value":"repo"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentNumber"},"name":{"kind":"Name","value":"number"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentUrl"},"name":{"kind":"Name","value":"url"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentDisplayName"},"name":{"kind":"Name","value":"displayName"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentTitle"},"name":{"kind":"Name","value":"title"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentSenderGithubLogin"},"name":{"kind":"Name","value":"senderGithubLogin"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentSenderGithubUserId"},"name":{"kind":"Name","value":"senderGithubUserId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentSenderGithubAvatarUrl"},"name":{"kind":"Name","value":"senderGithubAvatarUrl"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentCommentKind"},"name":{"kind":"Name","value":"commentKind"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentCommentGithubId"},"name":{"kind":"Name","value":"commentGithubId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentCommentUrl"},"name":{"kind":"Name","value":"commentUrl"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentCommentSnippet"},"name":{"kind":"Name","value":"commentSnippet"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlGithubPrMentionMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionForeignEntityId"},"name":{"kind":"Name","value":"foreignEntityId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionGithubKey"},"name":{"kind":"Name","value":"githubKey"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionOwner"},"name":{"kind":"Name","value":"owner"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionRepo"},"name":{"kind":"Name","value":"repo"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionNumber"},"name":{"kind":"Name","value":"number"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionUrl"},"name":{"kind":"Name","value":"url"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionDisplayName"},"name":{"kind":"Name","value":"displayName"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionTitle"},"name":{"kind":"Name","value":"title"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionSenderGithubLogin"},"name":{"kind":"Name","value":"senderGithubLogin"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionSenderGithubUserId"},"name":{"kind":"Name","value":"senderGithubUserId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionSenderGithubAvatarUrl"},"name":{"kind":"Name","value":"senderGithubAvatarUrl"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionLocation"},"name":{"kind":"Name","value":"location"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionCommentGithubId"},"name":{"kind":"Name","value":"commentGithubId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionCommentUrl"},"name":{"kind":"Name","value":"commentUrl"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionTextSnippet"},"name":{"kind":"Name","value":"textSnippet"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlGithubPrReviewMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewForeignEntityId"},"name":{"kind":"Name","value":"foreignEntityId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewGithubKey"},"name":{"kind":"Name","value":"githubKey"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewOwner"},"name":{"kind":"Name","value":"owner"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewRepo"},"name":{"kind":"Name","value":"repo"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewNumber"},"name":{"kind":"Name","value":"number"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewUrl"},"name":{"kind":"Name","value":"url"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewDisplayName"},"name":{"kind":"Name","value":"displayName"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewTitle"},"name":{"kind":"Name","value":"title"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewSenderGithubLogin"},"name":{"kind":"Name","value":"senderGithubLogin"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewSenderGithubUserId"},"name":{"kind":"Name","value":"senderGithubUserId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewSenderGithubAvatarUrl"},"name":{"kind":"Name","value":"senderGithubAvatarUrl"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewReviewGithubId"},"name":{"kind":"Name","value":"reviewGithubId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewReviewUrl"},"name":{"kind":"Name","value":"reviewUrl"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewState"},"name":{"kind":"Name","value":"state"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewReviewSnippet"},"name":{"kind":"Name","value":"reviewSnippet"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"SoupNotificationFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlNotification"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"eventType"}},{"kind":"Field","name":{"kind":"Name","value":"entityType"}},{"kind":"Field","name":{"kind":"Name","value":"entityId"}},{"kind":"Field","name":{"kind":"Name","value":"sent"}},{"kind":"Field","name":{"kind":"Name","value":"done"}},{"kind":"Field","name":{"kind":"Name","value":"seen"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"viewedAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"senderId"}},{"kind":"Field","name":{"kind":"Name","value":"metadata"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"SoupNotificationMetadataFields"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"SoupEntityCoreFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSoupEntity"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"entityType"}},{"kind":"Field","name":{"kind":"Name","value":"displayName"}},{"kind":"Field","name":{"kind":"Name","value":"isFavorited"}},{"kind":"Field","name":{"kind":"Name","value":"notifications"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"SoupNotificationFields"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"SoupPropertyFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlProperty"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"propertyDefinitionId"}},{"kind":"Field","name":{"kind":"Name","value":"displayName"}},{"kind":"Field","name":{"kind":"Name","value":"dataType"}},{"kind":"Field","name":{"kind":"Name","value":"isMultiSelect"}},{"kind":"Field","name":{"kind":"Name","value":"specificEntityType"}},{"kind":"Field","name":{"kind":"Name","value":"isSystem"}},{"kind":"Field","name":{"kind":"Name","value":"isMetadata"}},{"kind":"Field","name":{"kind":"Name","value":"value"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlBooleanPropertyValue"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"boolValue"},"name":{"kind":"Name","value":"value"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlNumberPropertyValue"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"numberValue"},"name":{"kind":"Name","value":"value"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlStringPropertyValue"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"stringValue"},"name":{"kind":"Name","value":"value"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlDatePropertyValue"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"dateValue"},"name":{"kind":"Name","value":"value"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSelectOptionPropertyValue"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"optionIds"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlEntityReferencePropertyValue"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"references"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"entityId"}},{"kind":"Field","name":{"kind":"Name","value":"entityType"}},{"kind":"Field","name":{"kind":"Name","value":"specificMessageId"}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlLinkPropertyValue"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"urls"}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"SoupChannelMessageFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSoupChannelMessagePreview"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"messageId"}},{"kind":"Field","name":{"kind":"Name","value":"channelId"}},{"kind":"Field","name":{"kind":"Name","value":"threadId"}},{"kind":"Field","name":{"kind":"Name","value":"senderId"}},{"kind":"Field","name":{"kind":"Name","value":"content"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}},{"kind":"Field","name":{"kind":"Name","value":"mentions"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"SoupItemFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSoupEntity"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"SoupEntityCoreFields"}},{"kind":"Field","name":{"kind":"Name","value":"frecencyScore"}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSoupDocument"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"documentName"},"name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"ownerId"}},{"kind":"Field","name":{"kind":"Name","value":"fileType"}},{"kind":"Field","name":{"kind":"Name","value":"projectId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"viewedAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}},{"kind":"Field","name":{"kind":"Name","value":"subType"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlTaskSubType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"isCompleted"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"properties"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"SoupPropertyFields"}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSoupChat"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"chatName"},"name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"ownerId"}},{"kind":"Field","name":{"kind":"Name","value":"projectId"}},{"kind":"Field","name":{"kind":"Name","value":"isPersistent"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"viewedAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}},{"kind":"Field","name":{"kind":"Name","value":"properties"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"SoupPropertyFields"}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSoupProject"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"projectName"},"name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"ownerId"}},{"kind":"Field","name":{"kind":"Name","value":"parentId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"viewedAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}},{"kind":"Field","name":{"kind":"Name","value":"properties"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"SoupPropertyFields"}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSoupEmailThread"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"providerId"}},{"kind":"Field","name":{"kind":"Name","value":"ownerId"}},{"kind":"Field","name":{"kind":"Name","value":"inboxVisible"}},{"kind":"Field","name":{"kind":"Name","value":"linkId"}},{"kind":"Field","name":{"kind":"Name","value":"latestInboundMessageTs"}},{"kind":"Field","alias":{"kind":"Name","value":"emailName"},"name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"snippet"}},{"kind":"Field","name":{"kind":"Name","value":"senderEmail"}},{"kind":"Field","name":{"kind":"Name","value":"senderName"}},{"kind":"Field","name":{"kind":"Name","value":"senderPhotoUrl"}},{"kind":"Field","name":{"kind":"Name","value":"isRead"}},{"kind":"Field","name":{"kind":"Name","value":"isDraft"}},{"kind":"Field","name":{"kind":"Name","value":"isImportant"}},{"kind":"Field","name":{"kind":"Name","value":"projectId"}},{"kind":"Field","name":{"kind":"Name","value":"sortTs"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"viewedAt"}},{"kind":"Field","name":{"kind":"Name","value":"participants"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"linkId"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"email"}},{"kind":"Field","name":{"kind":"Name","value":"sfsPhotoUrl"}}]}},{"kind":"Field","name":{"kind":"Name","value":"attachments"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"messageId"}},{"kind":"Field","name":{"kind":"Name","value":"providerAttachmentId"}},{"kind":"Field","name":{"kind":"Name","value":"filename"}},{"kind":"Field","name":{"kind":"Name","value":"mimeType"}},{"kind":"Field","name":{"kind":"Name","value":"sizeBytes"}},{"kind":"Field","name":{"kind":"Name","value":"contentId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}}]}},{"kind":"Field","name":{"kind":"Name","value":"labels"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"linkId"}},{"kind":"Field","name":{"kind":"Name","value":"providerLabelId"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"messageListVisibility"}},{"kind":"Field","name":{"kind":"Name","value":"labelListVisibility"}},{"kind":"Field","name":{"kind":"Name","value":"type"}}]}},{"kind":"Field","name":{"kind":"Name","value":"properties"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"SoupPropertyFields"}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSoupChannel"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"channelName"},"name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"channelType"}},{"kind":"Field","name":{"kind":"Name","value":"ownerId"}},{"kind":"Field","name":{"kind":"Name","value":"organizationId"}},{"kind":"Field","alias":{"kind":"Name","value":"channelTeamId"},"name":{"kind":"Name","value":"teamId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"viewedAt"}},{"kind":"Field","name":{"kind":"Name","value":"interactedAt"}},{"kind":"Field","name":{"kind":"Name","value":"isParticipant"}},{"kind":"Field","name":{"kind":"Name","value":"participants"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"channelId"}},{"kind":"Field","name":{"kind":"Name","value":"userId"}},{"kind":"Field","name":{"kind":"Name","value":"role"}},{"kind":"Field","name":{"kind":"Name","value":"joinedAt"}},{"kind":"Field","name":{"kind":"Name","value":"leftAt"}}]}},{"kind":"Field","name":{"kind":"Name","value":"latestMessage"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"SoupChannelMessageFields"}}]}},{"kind":"Field","name":{"kind":"Name","value":"latestNonThreadMessage"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"SoupChannelMessageFields"}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSoupChannelMessage"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"channelId"}},{"kind":"Field","name":{"kind":"Name","value":"senderId"}},{"kind":"Field","name":{"kind":"Name","value":"content"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"effectiveUpdatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"replyCount"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSoupCall"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"channelId"}},{"kind":"Field","name":{"kind":"Name","value":"channelName"}},{"kind":"Field","name":{"kind":"Name","value":"createdBy"}},{"kind":"Field","name":{"kind":"Name","value":"customName"}},{"kind":"Field","name":{"kind":"Name","value":"summary"}},{"kind":"Field","name":{"kind":"Name","value":"startedAt"}},{"kind":"Field","name":{"kind":"Name","value":"endedAt"}},{"kind":"Field","name":{"kind":"Name","value":"durationMs"}},{"kind":"Field","name":{"kind":"Name","value":"isActive"}},{"kind":"Field","name":{"kind":"Name","value":"status"}},{"kind":"Field","name":{"kind":"Name","value":"attended"}},{"kind":"Field","name":{"kind":"Name","value":"participants"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"userId"}},{"kind":"Field","name":{"kind":"Name","value":"joinedAt"}},{"kind":"Field","name":{"kind":"Name","value":"leftAt"}}]}},{"kind":"Field","name":{"kind":"Name","value":"properties"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"SoupPropertyFields"}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSoupCrmCompany"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"crmTeamId"},"name":{"kind":"Name","value":"teamId"}},{"kind":"Field","alias":{"kind":"Name","value":"crmCompanyName"},"name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"emailSync"}},{"kind":"Field","name":{"kind":"Name","value":"hidden"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"viewedAt"}},{"kind":"Field","name":{"kind":"Name","value":"domains"}},{"kind":"Field","name":{"kind":"Name","value":"properties"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"SoupPropertyFields"}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSoupForeignEntity"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"foreignEntityId"}},{"kind":"Field","name":{"kind":"Name","value":"foreignEntitySource"}},{"kind":"Field","name":{"kind":"Name","value":"storedForId"}},{"kind":"Field","name":{"kind":"Name","value":"storedForAuthEntity"}},{"kind":"Field","name":{"kind":"Name","value":"sourceMetadata"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSoupReminder"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"reminderDescription"},"name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"scheduleType"}},{"kind":"Field","name":{"kind":"Name","value":"remindAt"}},{"kind":"Field","name":{"kind":"Name","value":"cron"}},{"kind":"Field","name":{"kind":"Name","value":"timezone"}},{"kind":"Field","name":{"kind":"Name","value":"nextRunAt"}},{"kind":"Field","name":{"kind":"Name","value":"enabled"}},{"kind":"Field","name":{"kind":"Name","value":"completedAt"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"referencedEntity"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"entityType"}},{"kind":"Field","name":{"kind":"Name","value":"fileType"}},{"kind":"Field","name":{"kind":"Name","value":"subType"}}]}},{"kind":"Field","name":{"kind":"Name","value":"properties"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"SoupPropertyFields"}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSoupCalendarEvent"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"calendarEventTitle"},"name":{"kind":"Name","value":"title"}},{"kind":"Field","alias":{"kind":"Name","value":"calendarEventStatus"},"name":{"kind":"Name","value":"status"}},{"kind":"Field","name":{"kind":"Name","value":"time"}},{"kind":"Field","name":{"kind":"Name","value":"conferenceUrl"}},{"kind":"Field","name":{"kind":"Name","value":"isReadOnly"}},{"kind":"Field","name":{"kind":"Name","value":"ownerId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"properties"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"SoupPropertyFields"}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"SoupPatchFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"SoupPatch"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"SoupUpdated"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"item"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"SoupItemFields"}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlCacheDeletion"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"graphqlTypeName"}},{"kind":"Field","name":{"kind":"Name","value":"entityId"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"EntityMutationResultFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlEntityMutationResult"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlMutationSuccess"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"effects"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"SoupPatchFields"}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlMutationError"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"errorCode"}},{"kind":"Field","name":{"kind":"Name","value":"message"}}]}}]}}]} as unknown as DocumentNode<EntityMutationPayloadFieldsFragment, unknown>;
export const GraphqlHistoryItemFieldsFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"GraphqlHistoryItemFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSoupEntity"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"entityType"}},{"kind":"Field","name":{"kind":"Name","value":"frecencyScore"}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSoupDocument"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","alias":{"kind":"Name","value":"documentName"},"name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"ownerId"}},{"kind":"Field","name":{"kind":"Name","value":"fileType"}},{"kind":"Field","name":{"kind":"Name","value":"projectId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"viewedAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}},{"kind":"Field","name":{"kind":"Name","value":"subType"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlTaskSubType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"isCompleted"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"properties"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"SoupPropertyFields"}}]}},{"kind":"Field","name":{"kind":"Name","value":"notifications"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"SoupNotificationFields"}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSoupChat"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","alias":{"kind":"Name","value":"chatName"},"name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"ownerId"}},{"kind":"Field","name":{"kind":"Name","value":"projectId"}},{"kind":"Field","name":{"kind":"Name","value":"isPersistent"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"viewedAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}},{"kind":"Field","name":{"kind":"Name","value":"properties"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"SoupPropertyFields"}}]}},{"kind":"Field","name":{"kind":"Name","value":"notifications"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"SoupNotificationFields"}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSoupProject"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","alias":{"kind":"Name","value":"projectName"},"name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"ownerId"}},{"kind":"Field","name":{"kind":"Name","value":"parentId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"viewedAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}},{"kind":"Field","name":{"kind":"Name","value":"properties"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"SoupPropertyFields"}}]}},{"kind":"Field","name":{"kind":"Name","value":"notifications"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"SoupNotificationFields"}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSoupEmailThread"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"attachmentCount"}},{"kind":"Field","name":{"kind":"Name","value":"participantCount"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSoupChannel"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","alias":{"kind":"Name","value":"channelName"},"name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"channelType"}},{"kind":"Field","name":{"kind":"Name","value":"ownerId"}},{"kind":"Field","name":{"kind":"Name","value":"organizationId"}},{"kind":"Field","alias":{"kind":"Name","value":"channelTeamId"},"name":{"kind":"Name","value":"teamId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"viewedAt"}},{"kind":"Field","name":{"kind":"Name","value":"interactedAt"}},{"kind":"Field","name":{"kind":"Name","value":"participants"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"channelId"}},{"kind":"Field","name":{"kind":"Name","value":"userId"}},{"kind":"Field","name":{"kind":"Name","value":"role"}},{"kind":"Field","name":{"kind":"Name","value":"joinedAt"}},{"kind":"Field","name":{"kind":"Name","value":"leftAt"}}]}},{"kind":"Field","name":{"kind":"Name","value":"latestMessage"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"SoupChannelMessageFields"}}]}},{"kind":"Field","name":{"kind":"Name","value":"latestNonThreadMessage"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"SoupChannelMessageFields"}}]}},{"kind":"Field","name":{"kind":"Name","value":"notifications"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"SoupNotificationFields"}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSoupChannelMessage"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"channelId"}},{"kind":"Field","name":{"kind":"Name","value":"senderId"}},{"kind":"Field","name":{"kind":"Name","value":"content"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"effectiveUpdatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"replyCount"}},{"kind":"Field","name":{"kind":"Name","value":"notifications"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"SoupNotificationFields"}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSoupCall"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"channelId"}},{"kind":"Field","name":{"kind":"Name","value":"channelName"}},{"kind":"Field","name":{"kind":"Name","value":"createdBy"}},{"kind":"Field","name":{"kind":"Name","value":"customName"}},{"kind":"Field","name":{"kind":"Name","value":"summary"}},{"kind":"Field","name":{"kind":"Name","value":"startedAt"}},{"kind":"Field","name":{"kind":"Name","value":"endedAt"}},{"kind":"Field","name":{"kind":"Name","value":"durationMs"}},{"kind":"Field","name":{"kind":"Name","value":"isActive"}},{"kind":"Field","name":{"kind":"Name","value":"status"}},{"kind":"Field","name":{"kind":"Name","value":"attended"}},{"kind":"Field","name":{"kind":"Name","value":"participants"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"userId"}},{"kind":"Field","name":{"kind":"Name","value":"joinedAt"}},{"kind":"Field","name":{"kind":"Name","value":"leftAt"}}]}},{"kind":"Field","name":{"kind":"Name","value":"properties"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"SoupPropertyFields"}}]}},{"kind":"Field","name":{"kind":"Name","value":"notifications"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"SoupNotificationFields"}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSoupCrmCompany"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","alias":{"kind":"Name","value":"crmTeamId"},"name":{"kind":"Name","value":"teamId"}},{"kind":"Field","alias":{"kind":"Name","value":"crmCompanyName"},"name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"emailSync"}},{"kind":"Field","name":{"kind":"Name","value":"hidden"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"viewedAt"}},{"kind":"Field","name":{"kind":"Name","value":"domains"}},{"kind":"Field","name":{"kind":"Name","value":"properties"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"SoupPropertyFields"}}]}},{"kind":"Field","name":{"kind":"Name","value":"notifications"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"SoupNotificationFields"}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSoupForeignEntity"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"foreignEntityId"}},{"kind":"Field","name":{"kind":"Name","value":"foreignEntitySource"}},{"kind":"Field","name":{"kind":"Name","value":"storedForId"}},{"kind":"Field","name":{"kind":"Name","value":"storedForAuthEntity"}},{"kind":"Field","name":{"kind":"Name","value":"sourceMetadata"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"notifications"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"SoupNotificationFields"}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"SoupNotificationMetadataFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlNotifEvent"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlChannelMentionMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"channelMentionMessageId"},"name":{"kind":"Name","value":"messageId"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMentionMessageContent"},"name":{"kind":"Name","value":"messageContent"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMentionHasAttachments"},"name":{"kind":"Name","value":"hasAttachments"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMentionThreadId"},"name":{"kind":"Name","value":"threadId"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMentionSenderDisplayName"},"name":{"kind":"Name","value":"senderDisplayName"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMentionChannelType"},"name":{"kind":"Name","value":"channelType"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMentionChannelName"},"name":{"kind":"Name","value":"channelName"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMentionSenderProfilePictureUrl"},"name":{"kind":"Name","value":"senderProfilePictureUrl"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlDocumentMentionMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"documentMentionDocumentName"},"name":{"kind":"Name","value":"documentName"}},{"kind":"Field","alias":{"kind":"Name","value":"documentMentionOwner"},"name":{"kind":"Name","value":"owner"}},{"kind":"Field","alias":{"kind":"Name","value":"documentMentionFileType"},"name":{"kind":"Name","value":"fileType"}},{"kind":"Field","alias":{"kind":"Name","value":"documentMentionSubType"},"name":{"kind":"Name","value":"subType"}},{"kind":"Field","alias":{"kind":"Name","value":"documentMentionMessageId"},"name":{"kind":"Name","value":"messageId"}},{"kind":"Field","alias":{"kind":"Name","value":"documentMentionMessageContent"},"name":{"kind":"Name","value":"messageContent"}},{"kind":"Field","alias":{"kind":"Name","value":"documentMentionHasAttachments"},"name":{"kind":"Name","value":"hasAttachments"}},{"kind":"Field","alias":{"kind":"Name","value":"documentMentionThreadId"},"name":{"kind":"Name","value":"threadId"}},{"kind":"Field","alias":{"kind":"Name","value":"documentMentionSenderDisplayName"},"name":{"kind":"Name","value":"senderDisplayName"}},{"kind":"Field","alias":{"kind":"Name","value":"documentMentionChannelType"},"name":{"kind":"Name","value":"channelType"}},{"kind":"Field","alias":{"kind":"Name","value":"documentMentionChannelName"},"name":{"kind":"Name","value":"channelName"}},{"kind":"Field","alias":{"kind":"Name","value":"documentMentionSenderProfilePictureUrl"},"name":{"kind":"Name","value":"senderProfilePictureUrl"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlMentionedInDocumentCommentMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"mentionedInDocumentCommentDocumentName"},"name":{"kind":"Name","value":"documentName"}},{"kind":"Field","alias":{"kind":"Name","value":"mentionedInDocumentCommentOwner"},"name":{"kind":"Name","value":"owner"}},{"kind":"Field","alias":{"kind":"Name","value":"mentionedInDocumentCommentFileType"},"name":{"kind":"Name","value":"fileType"}},{"kind":"Field","alias":{"kind":"Name","value":"mentionedInDocumentCommentSubType"},"name":{"kind":"Name","value":"subType"}},{"kind":"Field","alias":{"kind":"Name","value":"mentionedInDocumentCommentMentionId"},"name":{"kind":"Name","value":"mentionId"}},{"kind":"Field","alias":{"kind":"Name","value":"mentionedInDocumentCommentCommentId"},"name":{"kind":"Name","value":"commentId"}},{"kind":"Field","alias":{"kind":"Name","value":"mentionedInDocumentCommentThreadId"},"name":{"kind":"Name","value":"threadId"}},{"kind":"Field","alias":{"kind":"Name","value":"mentionedInDocumentCommentText"},"name":{"kind":"Name","value":"text"}},{"kind":"Field","alias":{"kind":"Name","value":"mentionedInDocumentCommentSenderProfilePictureUrl"},"name":{"kind":"Name","value":"senderProfilePictureUrl"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlRepliedToDocumentCommentThreadMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"repliedToDocumentCommentThreadDocumentName"},"name":{"kind":"Name","value":"documentName"}},{"kind":"Field","alias":{"kind":"Name","value":"repliedToDocumentCommentThreadOwner"},"name":{"kind":"Name","value":"owner"}},{"kind":"Field","alias":{"kind":"Name","value":"repliedToDocumentCommentThreadFileType"},"name":{"kind":"Name","value":"fileType"}},{"kind":"Field","alias":{"kind":"Name","value":"repliedToDocumentCommentThreadSubType"},"name":{"kind":"Name","value":"subType"}},{"kind":"Field","alias":{"kind":"Name","value":"repliedToDocumentCommentThreadCommentId"},"name":{"kind":"Name","value":"commentId"}},{"kind":"Field","alias":{"kind":"Name","value":"repliedToDocumentCommentThreadThreadId"},"name":{"kind":"Name","value":"threadId"}},{"kind":"Field","alias":{"kind":"Name","value":"repliedToDocumentCommentThreadText"},"name":{"kind":"Name","value":"text"}},{"kind":"Field","alias":{"kind":"Name","value":"repliedToDocumentCommentThreadSenderProfilePictureUrl"},"name":{"kind":"Name","value":"senderProfilePictureUrl"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlCommentedOnDocumentMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"commentedOnDocumentDocumentName"},"name":{"kind":"Name","value":"documentName"}},{"kind":"Field","alias":{"kind":"Name","value":"commentedOnDocumentOwner"},"name":{"kind":"Name","value":"owner"}},{"kind":"Field","alias":{"kind":"Name","value":"commentedOnDocumentFileType"},"name":{"kind":"Name","value":"fileType"}},{"kind":"Field","alias":{"kind":"Name","value":"commentedOnDocumentSubType"},"name":{"kind":"Name","value":"subType"}},{"kind":"Field","alias":{"kind":"Name","value":"commentedOnDocumentCommentId"},"name":{"kind":"Name","value":"commentId"}},{"kind":"Field","alias":{"kind":"Name","value":"commentedOnDocumentThreadId"},"name":{"kind":"Name","value":"threadId"}},{"kind":"Field","alias":{"kind":"Name","value":"commentedOnDocumentText"},"name":{"kind":"Name","value":"text"}},{"kind":"Field","alias":{"kind":"Name","value":"commentedOnDocumentSenderProfilePictureUrl"},"name":{"kind":"Name","value":"senderProfilePictureUrl"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlChannelInviteMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"channelInviteInvitedBy"},"name":{"kind":"Name","value":"invitedBy"}},{"kind":"Field","alias":{"kind":"Name","value":"channelInviteChannelName"},"name":{"kind":"Name","value":"channelName"}},{"kind":"Field","alias":{"kind":"Name","value":"channelInviteMessageContent"},"name":{"kind":"Name","value":"messageContent"}},{"kind":"Field","alias":{"kind":"Name","value":"channelInviteSenderProfilePictureUrl"},"name":{"kind":"Name","value":"senderProfilePictureUrl"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlChannelMessageSendMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"channelMessageSendSender"},"name":{"kind":"Name","value":"sender"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMessageSendSenderDisplayName"},"name":{"kind":"Name","value":"senderDisplayName"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMessageSendMessageContent"},"name":{"kind":"Name","value":"messageContent"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMessageSendMessageId"},"name":{"kind":"Name","value":"messageId"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMessageSendHasAttachments"},"name":{"kind":"Name","value":"hasAttachments"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMessageSendChannelType"},"name":{"kind":"Name","value":"channelType"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMessageSendChannelName"},"name":{"kind":"Name","value":"channelName"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMessageSendSenderProfilePictureUrl"},"name":{"kind":"Name","value":"senderProfilePictureUrl"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlChannelReplyMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"channelReplyThreadId"},"name":{"kind":"Name","value":"threadId"}},{"kind":"Field","alias":{"kind":"Name","value":"channelReplyMessageId"},"name":{"kind":"Name","value":"messageId"}},{"kind":"Field","alias":{"kind":"Name","value":"channelReplyUserId"},"name":{"kind":"Name","value":"userId"}},{"kind":"Field","alias":{"kind":"Name","value":"channelReplySenderDisplayName"},"name":{"kind":"Name","value":"senderDisplayName"}},{"kind":"Field","alias":{"kind":"Name","value":"channelReplyMessageContent"},"name":{"kind":"Name","value":"messageContent"}},{"kind":"Field","alias":{"kind":"Name","value":"channelReplyHasAttachments"},"name":{"kind":"Name","value":"hasAttachments"}},{"kind":"Field","alias":{"kind":"Name","value":"channelReplyThreadParentSenderId"},"name":{"kind":"Name","value":"threadParentSenderId"}},{"kind":"Field","alias":{"kind":"Name","value":"channelReplyChannelType"},"name":{"kind":"Name","value":"channelType"}},{"kind":"Field","alias":{"kind":"Name","value":"channelReplyChannelName"},"name":{"kind":"Name","value":"channelName"}},{"kind":"Field","alias":{"kind":"Name","value":"channelReplySenderProfilePictureUrl"},"name":{"kind":"Name","value":"senderProfilePictureUrl"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlCallStartedMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"callStartedChannelName"},"name":{"kind":"Name","value":"channelName"}},{"kind":"Field","alias":{"kind":"Name","value":"callStartedSenderProfilePictureUrl"},"name":{"kind":"Name","value":"senderProfilePictureUrl"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlNewEmailMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"newEmailSender"},"name":{"kind":"Name","value":"sender"}},{"kind":"Field","alias":{"kind":"Name","value":"newEmailToEmail"},"name":{"kind":"Name","value":"toEmail"}},{"kind":"Field","alias":{"kind":"Name","value":"newEmailThreadId"},"name":{"kind":"Name","value":"threadId"}},{"kind":"Field","alias":{"kind":"Name","value":"newEmailSubject"},"name":{"kind":"Name","value":"subject"}},{"kind":"Field","alias":{"kind":"Name","value":"newEmailSnippet"},"name":{"kind":"Name","value":"snippet"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlInboxReauthRequiredMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"inboxReauthRequiredEmailAddress"},"name":{"kind":"Name","value":"emailAddress"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlInviteToTeamMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"inviteToTeamTeamName"},"name":{"kind":"Name","value":"teamName"}},{"kind":"Field","alias":{"kind":"Name","value":"inviteToTeamTeamId"},"name":{"kind":"Name","value":"teamId"}},{"kind":"Field","alias":{"kind":"Name","value":"inviteToTeamTeamInviteId"},"name":{"kind":"Name","value":"teamInviteId"}},{"kind":"Field","alias":{"kind":"Name","value":"inviteToTeamInvitedBy"},"name":{"kind":"Name","value":"invitedBy"}},{"kind":"Field","alias":{"kind":"Name","value":"inviteToTeamRole"},"name":{"kind":"Name","value":"role"}},{"kind":"Field","alias":{"kind":"Name","value":"inviteToTeamSenderProfilePictureUrl"},"name":{"kind":"Name","value":"senderProfilePictureUrl"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlTaskAssignedMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"taskAssignedTaskId"},"name":{"kind":"Name","value":"taskId"}},{"kind":"Field","alias":{"kind":"Name","value":"taskAssignedTaskName"},"name":{"kind":"Name","value":"taskName"}},{"kind":"Field","alias":{"kind":"Name","value":"taskAssignedSubType"},"name":{"kind":"Name","value":"subType"}},{"kind":"Field","alias":{"kind":"Name","value":"taskAssignedAssignedBy"},"name":{"kind":"Name","value":"assignedBy"}},{"kind":"Field","alias":{"kind":"Name","value":"taskAssignedSenderProfilePictureUrl"},"name":{"kind":"Name","value":"senderProfilePictureUrl"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlReminderMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"reminderReminderId"},"name":{"kind":"Name","value":"reminderId"}},{"kind":"Field","alias":{"kind":"Name","value":"reminderDescription"},"name":{"kind":"Name","value":"description"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlCalendarEventReminderMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"calendarEventReminderEventId"},"name":{"kind":"Name","value":"eventId"}},{"kind":"Field","alias":{"kind":"Name","value":"calendarEventReminderOccurrenceKey"},"name":{"kind":"Name","value":"occurrenceKey"}},{"kind":"Field","alias":{"kind":"Name","value":"calendarEventReminderTitle"},"name":{"kind":"Name","value":"title"}},{"kind":"Field","alias":{"kind":"Name","value":"calendarEventReminderStartsAt"},"name":{"kind":"Name","value":"startsAt"}},{"kind":"Field","alias":{"kind":"Name","value":"calendarEventReminderEndsAt"},"name":{"kind":"Name","value":"endsAt"}},{"kind":"Field","alias":{"kind":"Name","value":"calendarEventReminderStartDate"},"name":{"kind":"Name","value":"startDate"}},{"kind":"Field","alias":{"kind":"Name","value":"calendarEventReminderTimeZone"},"name":{"kind":"Name","value":"timeZone"}},{"kind":"Field","alias":{"kind":"Name","value":"calendarEventReminderMinutesBefore"},"name":{"kind":"Name","value":"minutesBefore"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlAiResponseMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"aiResponseSummary"},"name":{"kind":"Name","value":"summary"}},{"kind":"Field","alias":{"kind":"Name","value":"aiResponseMessageId"},"name":{"kind":"Name","value":"messageId"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlGithubPrStatusChangedMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedForeignEntityId"},"name":{"kind":"Name","value":"foreignEntityId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedGithubKey"},"name":{"kind":"Name","value":"githubKey"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedOwner"},"name":{"kind":"Name","value":"owner"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedRepo"},"name":{"kind":"Name","value":"repo"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedNumber"},"name":{"kind":"Name","value":"number"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedUrl"},"name":{"kind":"Name","value":"url"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedDisplayName"},"name":{"kind":"Name","value":"displayName"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedTitle"},"name":{"kind":"Name","value":"title"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedSenderGithubLogin"},"name":{"kind":"Name","value":"senderGithubLogin"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedSenderGithubUserId"},"name":{"kind":"Name","value":"senderGithubUserId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedSenderGithubAvatarUrl"},"name":{"kind":"Name","value":"senderGithubAvatarUrl"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedStatus"},"name":{"kind":"Name","value":"status"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedAction"},"name":{"kind":"Name","value":"action"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedPreviousStatus"},"name":{"kind":"Name","value":"previousStatus"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedHeadBranch"},"name":{"kind":"Name","value":"headBranch"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedBaseBranch"},"name":{"kind":"Name","value":"baseBranch"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedMergedAt"},"name":{"kind":"Name","value":"mergedAt"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlGithubPrCheckRunMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunForeignEntityId"},"name":{"kind":"Name","value":"foreignEntityId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunGithubKey"},"name":{"kind":"Name","value":"githubKey"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunOwner"},"name":{"kind":"Name","value":"owner"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunRepo"},"name":{"kind":"Name","value":"repo"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunNumber"},"name":{"kind":"Name","value":"number"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunUrl"},"name":{"kind":"Name","value":"url"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunDisplayName"},"name":{"kind":"Name","value":"displayName"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunTitle"},"name":{"kind":"Name","value":"title"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunSenderGithubLogin"},"name":{"kind":"Name","value":"senderGithubLogin"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunSenderGithubUserId"},"name":{"kind":"Name","value":"senderGithubUserId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunSenderGithubAvatarUrl"},"name":{"kind":"Name","value":"senderGithubAvatarUrl"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunCheckRunGithubId"},"name":{"kind":"Name","value":"checkRunGithubId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunCheckName"},"name":{"kind":"Name","value":"checkName"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunCheckStatus"},"name":{"kind":"Name","value":"checkStatus"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunConclusion"},"name":{"kind":"Name","value":"conclusion"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunState"},"name":{"kind":"Name","value":"state"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunCheckUrl"},"name":{"kind":"Name","value":"checkUrl"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunCompletedAt"},"name":{"kind":"Name","value":"completedAt"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlGithubReviewRequestedMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"githubReviewRequestedForeignEntityId"},"name":{"kind":"Name","value":"foreignEntityId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubReviewRequestedGithubKey"},"name":{"kind":"Name","value":"githubKey"}},{"kind":"Field","alias":{"kind":"Name","value":"githubReviewRequestedOwner"},"name":{"kind":"Name","value":"owner"}},{"kind":"Field","alias":{"kind":"Name","value":"githubReviewRequestedRepo"},"name":{"kind":"Name","value":"repo"}},{"kind":"Field","alias":{"kind":"Name","value":"githubReviewRequestedNumber"},"name":{"kind":"Name","value":"number"}},{"kind":"Field","alias":{"kind":"Name","value":"githubReviewRequestedUrl"},"name":{"kind":"Name","value":"url"}},{"kind":"Field","alias":{"kind":"Name","value":"githubReviewRequestedDisplayName"},"name":{"kind":"Name","value":"displayName"}},{"kind":"Field","alias":{"kind":"Name","value":"githubReviewRequestedTitle"},"name":{"kind":"Name","value":"title"}},{"kind":"Field","alias":{"kind":"Name","value":"githubReviewRequestedSenderGithubLogin"},"name":{"kind":"Name","value":"senderGithubLogin"}},{"kind":"Field","alias":{"kind":"Name","value":"githubReviewRequestedSenderGithubUserId"},"name":{"kind":"Name","value":"senderGithubUserId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubReviewRequestedSenderGithubAvatarUrl"},"name":{"kind":"Name","value":"senderGithubAvatarUrl"}},{"kind":"Field","alias":{"kind":"Name","value":"githubReviewRequestedRequestedReviewerGithubLogin"},"name":{"kind":"Name","value":"requestedReviewerGithubLogin"}},{"kind":"Field","alias":{"kind":"Name","value":"githubReviewRequestedRequestedReviewerGithubUserId"},"name":{"kind":"Name","value":"requestedReviewerGithubUserId"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlGithubPrCommentMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentForeignEntityId"},"name":{"kind":"Name","value":"foreignEntityId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentGithubKey"},"name":{"kind":"Name","value":"githubKey"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentOwner"},"name":{"kind":"Name","value":"owner"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentRepo"},"name":{"kind":"Name","value":"repo"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentNumber"},"name":{"kind":"Name","value":"number"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentUrl"},"name":{"kind":"Name","value":"url"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentDisplayName"},"name":{"kind":"Name","value":"displayName"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentTitle"},"name":{"kind":"Name","value":"title"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentSenderGithubLogin"},"name":{"kind":"Name","value":"senderGithubLogin"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentSenderGithubUserId"},"name":{"kind":"Name","value":"senderGithubUserId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentSenderGithubAvatarUrl"},"name":{"kind":"Name","value":"senderGithubAvatarUrl"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentCommentKind"},"name":{"kind":"Name","value":"commentKind"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentCommentGithubId"},"name":{"kind":"Name","value":"commentGithubId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentCommentUrl"},"name":{"kind":"Name","value":"commentUrl"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentCommentSnippet"},"name":{"kind":"Name","value":"commentSnippet"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlGithubPrMentionMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionForeignEntityId"},"name":{"kind":"Name","value":"foreignEntityId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionGithubKey"},"name":{"kind":"Name","value":"githubKey"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionOwner"},"name":{"kind":"Name","value":"owner"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionRepo"},"name":{"kind":"Name","value":"repo"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionNumber"},"name":{"kind":"Name","value":"number"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionUrl"},"name":{"kind":"Name","value":"url"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionDisplayName"},"name":{"kind":"Name","value":"displayName"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionTitle"},"name":{"kind":"Name","value":"title"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionSenderGithubLogin"},"name":{"kind":"Name","value":"senderGithubLogin"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionSenderGithubUserId"},"name":{"kind":"Name","value":"senderGithubUserId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionSenderGithubAvatarUrl"},"name":{"kind":"Name","value":"senderGithubAvatarUrl"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionLocation"},"name":{"kind":"Name","value":"location"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionCommentGithubId"},"name":{"kind":"Name","value":"commentGithubId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionCommentUrl"},"name":{"kind":"Name","value":"commentUrl"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionTextSnippet"},"name":{"kind":"Name","value":"textSnippet"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlGithubPrReviewMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewForeignEntityId"},"name":{"kind":"Name","value":"foreignEntityId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewGithubKey"},"name":{"kind":"Name","value":"githubKey"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewOwner"},"name":{"kind":"Name","value":"owner"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewRepo"},"name":{"kind":"Name","value":"repo"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewNumber"},"name":{"kind":"Name","value":"number"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewUrl"},"name":{"kind":"Name","value":"url"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewDisplayName"},"name":{"kind":"Name","value":"displayName"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewTitle"},"name":{"kind":"Name","value":"title"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewSenderGithubLogin"},"name":{"kind":"Name","value":"senderGithubLogin"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewSenderGithubUserId"},"name":{"kind":"Name","value":"senderGithubUserId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewSenderGithubAvatarUrl"},"name":{"kind":"Name","value":"senderGithubAvatarUrl"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewReviewGithubId"},"name":{"kind":"Name","value":"reviewGithubId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewReviewUrl"},"name":{"kind":"Name","value":"reviewUrl"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewState"},"name":{"kind":"Name","value":"state"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewReviewSnippet"},"name":{"kind":"Name","value":"reviewSnippet"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"SoupPropertyFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlProperty"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"propertyDefinitionId"}},{"kind":"Field","name":{"kind":"Name","value":"displayName"}},{"kind":"Field","name":{"kind":"Name","value":"dataType"}},{"kind":"Field","name":{"kind":"Name","value":"isMultiSelect"}},{"kind":"Field","name":{"kind":"Name","value":"specificEntityType"}},{"kind":"Field","name":{"kind":"Name","value":"isSystem"}},{"kind":"Field","name":{"kind":"Name","value":"isMetadata"}},{"kind":"Field","name":{"kind":"Name","value":"value"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlBooleanPropertyValue"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"boolValue"},"name":{"kind":"Name","value":"value"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlNumberPropertyValue"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"numberValue"},"name":{"kind":"Name","value":"value"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlStringPropertyValue"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"stringValue"},"name":{"kind":"Name","value":"value"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlDatePropertyValue"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"dateValue"},"name":{"kind":"Name","value":"value"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSelectOptionPropertyValue"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"optionIds"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlEntityReferencePropertyValue"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"references"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"entityId"}},{"kind":"Field","name":{"kind":"Name","value":"entityType"}},{"kind":"Field","name":{"kind":"Name","value":"specificMessageId"}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlLinkPropertyValue"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"urls"}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"SoupNotificationFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlNotification"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"eventType"}},{"kind":"Field","name":{"kind":"Name","value":"entityType"}},{"kind":"Field","name":{"kind":"Name","value":"entityId"}},{"kind":"Field","name":{"kind":"Name","value":"sent"}},{"kind":"Field","name":{"kind":"Name","value":"done"}},{"kind":"Field","name":{"kind":"Name","value":"seen"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"viewedAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"senderId"}},{"kind":"Field","name":{"kind":"Name","value":"metadata"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"SoupNotificationMetadataFields"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"SoupChannelMessageFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSoupChannelMessagePreview"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"messageId"}},{"kind":"Field","name":{"kind":"Name","value":"channelId"}},{"kind":"Field","name":{"kind":"Name","value":"threadId"}},{"kind":"Field","name":{"kind":"Name","value":"senderId"}},{"kind":"Field","name":{"kind":"Name","value":"content"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}},{"kind":"Field","name":{"kind":"Name","value":"mentions"}}]}}]} as unknown as DocumentNode<GraphqlHistoryItemFieldsFragment, unknown>;
export const SoupNotificationsEntityFieldsFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"SoupNotificationsEntityFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSoupEntity"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"notifications"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"SoupNotificationFields"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"SoupNotificationMetadataFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlNotifEvent"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlChannelMentionMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"channelMentionMessageId"},"name":{"kind":"Name","value":"messageId"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMentionMessageContent"},"name":{"kind":"Name","value":"messageContent"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMentionHasAttachments"},"name":{"kind":"Name","value":"hasAttachments"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMentionThreadId"},"name":{"kind":"Name","value":"threadId"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMentionSenderDisplayName"},"name":{"kind":"Name","value":"senderDisplayName"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMentionChannelType"},"name":{"kind":"Name","value":"channelType"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMentionChannelName"},"name":{"kind":"Name","value":"channelName"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMentionSenderProfilePictureUrl"},"name":{"kind":"Name","value":"senderProfilePictureUrl"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlDocumentMentionMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"documentMentionDocumentName"},"name":{"kind":"Name","value":"documentName"}},{"kind":"Field","alias":{"kind":"Name","value":"documentMentionOwner"},"name":{"kind":"Name","value":"owner"}},{"kind":"Field","alias":{"kind":"Name","value":"documentMentionFileType"},"name":{"kind":"Name","value":"fileType"}},{"kind":"Field","alias":{"kind":"Name","value":"documentMentionSubType"},"name":{"kind":"Name","value":"subType"}},{"kind":"Field","alias":{"kind":"Name","value":"documentMentionMessageId"},"name":{"kind":"Name","value":"messageId"}},{"kind":"Field","alias":{"kind":"Name","value":"documentMentionMessageContent"},"name":{"kind":"Name","value":"messageContent"}},{"kind":"Field","alias":{"kind":"Name","value":"documentMentionHasAttachments"},"name":{"kind":"Name","value":"hasAttachments"}},{"kind":"Field","alias":{"kind":"Name","value":"documentMentionThreadId"},"name":{"kind":"Name","value":"threadId"}},{"kind":"Field","alias":{"kind":"Name","value":"documentMentionSenderDisplayName"},"name":{"kind":"Name","value":"senderDisplayName"}},{"kind":"Field","alias":{"kind":"Name","value":"documentMentionChannelType"},"name":{"kind":"Name","value":"channelType"}},{"kind":"Field","alias":{"kind":"Name","value":"documentMentionChannelName"},"name":{"kind":"Name","value":"channelName"}},{"kind":"Field","alias":{"kind":"Name","value":"documentMentionSenderProfilePictureUrl"},"name":{"kind":"Name","value":"senderProfilePictureUrl"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlMentionedInDocumentCommentMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"mentionedInDocumentCommentDocumentName"},"name":{"kind":"Name","value":"documentName"}},{"kind":"Field","alias":{"kind":"Name","value":"mentionedInDocumentCommentOwner"},"name":{"kind":"Name","value":"owner"}},{"kind":"Field","alias":{"kind":"Name","value":"mentionedInDocumentCommentFileType"},"name":{"kind":"Name","value":"fileType"}},{"kind":"Field","alias":{"kind":"Name","value":"mentionedInDocumentCommentSubType"},"name":{"kind":"Name","value":"subType"}},{"kind":"Field","alias":{"kind":"Name","value":"mentionedInDocumentCommentMentionId"},"name":{"kind":"Name","value":"mentionId"}},{"kind":"Field","alias":{"kind":"Name","value":"mentionedInDocumentCommentCommentId"},"name":{"kind":"Name","value":"commentId"}},{"kind":"Field","alias":{"kind":"Name","value":"mentionedInDocumentCommentThreadId"},"name":{"kind":"Name","value":"threadId"}},{"kind":"Field","alias":{"kind":"Name","value":"mentionedInDocumentCommentText"},"name":{"kind":"Name","value":"text"}},{"kind":"Field","alias":{"kind":"Name","value":"mentionedInDocumentCommentSenderProfilePictureUrl"},"name":{"kind":"Name","value":"senderProfilePictureUrl"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlRepliedToDocumentCommentThreadMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"repliedToDocumentCommentThreadDocumentName"},"name":{"kind":"Name","value":"documentName"}},{"kind":"Field","alias":{"kind":"Name","value":"repliedToDocumentCommentThreadOwner"},"name":{"kind":"Name","value":"owner"}},{"kind":"Field","alias":{"kind":"Name","value":"repliedToDocumentCommentThreadFileType"},"name":{"kind":"Name","value":"fileType"}},{"kind":"Field","alias":{"kind":"Name","value":"repliedToDocumentCommentThreadSubType"},"name":{"kind":"Name","value":"subType"}},{"kind":"Field","alias":{"kind":"Name","value":"repliedToDocumentCommentThreadCommentId"},"name":{"kind":"Name","value":"commentId"}},{"kind":"Field","alias":{"kind":"Name","value":"repliedToDocumentCommentThreadThreadId"},"name":{"kind":"Name","value":"threadId"}},{"kind":"Field","alias":{"kind":"Name","value":"repliedToDocumentCommentThreadText"},"name":{"kind":"Name","value":"text"}},{"kind":"Field","alias":{"kind":"Name","value":"repliedToDocumentCommentThreadSenderProfilePictureUrl"},"name":{"kind":"Name","value":"senderProfilePictureUrl"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlCommentedOnDocumentMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"commentedOnDocumentDocumentName"},"name":{"kind":"Name","value":"documentName"}},{"kind":"Field","alias":{"kind":"Name","value":"commentedOnDocumentOwner"},"name":{"kind":"Name","value":"owner"}},{"kind":"Field","alias":{"kind":"Name","value":"commentedOnDocumentFileType"},"name":{"kind":"Name","value":"fileType"}},{"kind":"Field","alias":{"kind":"Name","value":"commentedOnDocumentSubType"},"name":{"kind":"Name","value":"subType"}},{"kind":"Field","alias":{"kind":"Name","value":"commentedOnDocumentCommentId"},"name":{"kind":"Name","value":"commentId"}},{"kind":"Field","alias":{"kind":"Name","value":"commentedOnDocumentThreadId"},"name":{"kind":"Name","value":"threadId"}},{"kind":"Field","alias":{"kind":"Name","value":"commentedOnDocumentText"},"name":{"kind":"Name","value":"text"}},{"kind":"Field","alias":{"kind":"Name","value":"commentedOnDocumentSenderProfilePictureUrl"},"name":{"kind":"Name","value":"senderProfilePictureUrl"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlChannelInviteMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"channelInviteInvitedBy"},"name":{"kind":"Name","value":"invitedBy"}},{"kind":"Field","alias":{"kind":"Name","value":"channelInviteChannelName"},"name":{"kind":"Name","value":"channelName"}},{"kind":"Field","alias":{"kind":"Name","value":"channelInviteMessageContent"},"name":{"kind":"Name","value":"messageContent"}},{"kind":"Field","alias":{"kind":"Name","value":"channelInviteSenderProfilePictureUrl"},"name":{"kind":"Name","value":"senderProfilePictureUrl"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlChannelMessageSendMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"channelMessageSendSender"},"name":{"kind":"Name","value":"sender"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMessageSendSenderDisplayName"},"name":{"kind":"Name","value":"senderDisplayName"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMessageSendMessageContent"},"name":{"kind":"Name","value":"messageContent"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMessageSendMessageId"},"name":{"kind":"Name","value":"messageId"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMessageSendHasAttachments"},"name":{"kind":"Name","value":"hasAttachments"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMessageSendChannelType"},"name":{"kind":"Name","value":"channelType"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMessageSendChannelName"},"name":{"kind":"Name","value":"channelName"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMessageSendSenderProfilePictureUrl"},"name":{"kind":"Name","value":"senderProfilePictureUrl"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlChannelReplyMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"channelReplyThreadId"},"name":{"kind":"Name","value":"threadId"}},{"kind":"Field","alias":{"kind":"Name","value":"channelReplyMessageId"},"name":{"kind":"Name","value":"messageId"}},{"kind":"Field","alias":{"kind":"Name","value":"channelReplyUserId"},"name":{"kind":"Name","value":"userId"}},{"kind":"Field","alias":{"kind":"Name","value":"channelReplySenderDisplayName"},"name":{"kind":"Name","value":"senderDisplayName"}},{"kind":"Field","alias":{"kind":"Name","value":"channelReplyMessageContent"},"name":{"kind":"Name","value":"messageContent"}},{"kind":"Field","alias":{"kind":"Name","value":"channelReplyHasAttachments"},"name":{"kind":"Name","value":"hasAttachments"}},{"kind":"Field","alias":{"kind":"Name","value":"channelReplyThreadParentSenderId"},"name":{"kind":"Name","value":"threadParentSenderId"}},{"kind":"Field","alias":{"kind":"Name","value":"channelReplyChannelType"},"name":{"kind":"Name","value":"channelType"}},{"kind":"Field","alias":{"kind":"Name","value":"channelReplyChannelName"},"name":{"kind":"Name","value":"channelName"}},{"kind":"Field","alias":{"kind":"Name","value":"channelReplySenderProfilePictureUrl"},"name":{"kind":"Name","value":"senderProfilePictureUrl"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlCallStartedMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"callStartedChannelName"},"name":{"kind":"Name","value":"channelName"}},{"kind":"Field","alias":{"kind":"Name","value":"callStartedSenderProfilePictureUrl"},"name":{"kind":"Name","value":"senderProfilePictureUrl"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlNewEmailMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"newEmailSender"},"name":{"kind":"Name","value":"sender"}},{"kind":"Field","alias":{"kind":"Name","value":"newEmailToEmail"},"name":{"kind":"Name","value":"toEmail"}},{"kind":"Field","alias":{"kind":"Name","value":"newEmailThreadId"},"name":{"kind":"Name","value":"threadId"}},{"kind":"Field","alias":{"kind":"Name","value":"newEmailSubject"},"name":{"kind":"Name","value":"subject"}},{"kind":"Field","alias":{"kind":"Name","value":"newEmailSnippet"},"name":{"kind":"Name","value":"snippet"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlInboxReauthRequiredMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"inboxReauthRequiredEmailAddress"},"name":{"kind":"Name","value":"emailAddress"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlInviteToTeamMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"inviteToTeamTeamName"},"name":{"kind":"Name","value":"teamName"}},{"kind":"Field","alias":{"kind":"Name","value":"inviteToTeamTeamId"},"name":{"kind":"Name","value":"teamId"}},{"kind":"Field","alias":{"kind":"Name","value":"inviteToTeamTeamInviteId"},"name":{"kind":"Name","value":"teamInviteId"}},{"kind":"Field","alias":{"kind":"Name","value":"inviteToTeamInvitedBy"},"name":{"kind":"Name","value":"invitedBy"}},{"kind":"Field","alias":{"kind":"Name","value":"inviteToTeamRole"},"name":{"kind":"Name","value":"role"}},{"kind":"Field","alias":{"kind":"Name","value":"inviteToTeamSenderProfilePictureUrl"},"name":{"kind":"Name","value":"senderProfilePictureUrl"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlTaskAssignedMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"taskAssignedTaskId"},"name":{"kind":"Name","value":"taskId"}},{"kind":"Field","alias":{"kind":"Name","value":"taskAssignedTaskName"},"name":{"kind":"Name","value":"taskName"}},{"kind":"Field","alias":{"kind":"Name","value":"taskAssignedSubType"},"name":{"kind":"Name","value":"subType"}},{"kind":"Field","alias":{"kind":"Name","value":"taskAssignedAssignedBy"},"name":{"kind":"Name","value":"assignedBy"}},{"kind":"Field","alias":{"kind":"Name","value":"taskAssignedSenderProfilePictureUrl"},"name":{"kind":"Name","value":"senderProfilePictureUrl"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlReminderMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"reminderReminderId"},"name":{"kind":"Name","value":"reminderId"}},{"kind":"Field","alias":{"kind":"Name","value":"reminderDescription"},"name":{"kind":"Name","value":"description"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlCalendarEventReminderMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"calendarEventReminderEventId"},"name":{"kind":"Name","value":"eventId"}},{"kind":"Field","alias":{"kind":"Name","value":"calendarEventReminderOccurrenceKey"},"name":{"kind":"Name","value":"occurrenceKey"}},{"kind":"Field","alias":{"kind":"Name","value":"calendarEventReminderTitle"},"name":{"kind":"Name","value":"title"}},{"kind":"Field","alias":{"kind":"Name","value":"calendarEventReminderStartsAt"},"name":{"kind":"Name","value":"startsAt"}},{"kind":"Field","alias":{"kind":"Name","value":"calendarEventReminderEndsAt"},"name":{"kind":"Name","value":"endsAt"}},{"kind":"Field","alias":{"kind":"Name","value":"calendarEventReminderStartDate"},"name":{"kind":"Name","value":"startDate"}},{"kind":"Field","alias":{"kind":"Name","value":"calendarEventReminderTimeZone"},"name":{"kind":"Name","value":"timeZone"}},{"kind":"Field","alias":{"kind":"Name","value":"calendarEventReminderMinutesBefore"},"name":{"kind":"Name","value":"minutesBefore"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlAiResponseMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"aiResponseSummary"},"name":{"kind":"Name","value":"summary"}},{"kind":"Field","alias":{"kind":"Name","value":"aiResponseMessageId"},"name":{"kind":"Name","value":"messageId"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlGithubPrStatusChangedMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedForeignEntityId"},"name":{"kind":"Name","value":"foreignEntityId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedGithubKey"},"name":{"kind":"Name","value":"githubKey"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedOwner"},"name":{"kind":"Name","value":"owner"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedRepo"},"name":{"kind":"Name","value":"repo"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedNumber"},"name":{"kind":"Name","value":"number"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedUrl"},"name":{"kind":"Name","value":"url"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedDisplayName"},"name":{"kind":"Name","value":"displayName"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedTitle"},"name":{"kind":"Name","value":"title"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedSenderGithubLogin"},"name":{"kind":"Name","value":"senderGithubLogin"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedSenderGithubUserId"},"name":{"kind":"Name","value":"senderGithubUserId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedSenderGithubAvatarUrl"},"name":{"kind":"Name","value":"senderGithubAvatarUrl"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedStatus"},"name":{"kind":"Name","value":"status"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedAction"},"name":{"kind":"Name","value":"action"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedPreviousStatus"},"name":{"kind":"Name","value":"previousStatus"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedHeadBranch"},"name":{"kind":"Name","value":"headBranch"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedBaseBranch"},"name":{"kind":"Name","value":"baseBranch"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedMergedAt"},"name":{"kind":"Name","value":"mergedAt"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlGithubPrCheckRunMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunForeignEntityId"},"name":{"kind":"Name","value":"foreignEntityId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunGithubKey"},"name":{"kind":"Name","value":"githubKey"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunOwner"},"name":{"kind":"Name","value":"owner"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunRepo"},"name":{"kind":"Name","value":"repo"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunNumber"},"name":{"kind":"Name","value":"number"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunUrl"},"name":{"kind":"Name","value":"url"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunDisplayName"},"name":{"kind":"Name","value":"displayName"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunTitle"},"name":{"kind":"Name","value":"title"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunSenderGithubLogin"},"name":{"kind":"Name","value":"senderGithubLogin"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunSenderGithubUserId"},"name":{"kind":"Name","value":"senderGithubUserId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunSenderGithubAvatarUrl"},"name":{"kind":"Name","value":"senderGithubAvatarUrl"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunCheckRunGithubId"},"name":{"kind":"Name","value":"checkRunGithubId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunCheckName"},"name":{"kind":"Name","value":"checkName"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunCheckStatus"},"name":{"kind":"Name","value":"checkStatus"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunConclusion"},"name":{"kind":"Name","value":"conclusion"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunState"},"name":{"kind":"Name","value":"state"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunCheckUrl"},"name":{"kind":"Name","value":"checkUrl"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunCompletedAt"},"name":{"kind":"Name","value":"completedAt"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlGithubReviewRequestedMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"githubReviewRequestedForeignEntityId"},"name":{"kind":"Name","value":"foreignEntityId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubReviewRequestedGithubKey"},"name":{"kind":"Name","value":"githubKey"}},{"kind":"Field","alias":{"kind":"Name","value":"githubReviewRequestedOwner"},"name":{"kind":"Name","value":"owner"}},{"kind":"Field","alias":{"kind":"Name","value":"githubReviewRequestedRepo"},"name":{"kind":"Name","value":"repo"}},{"kind":"Field","alias":{"kind":"Name","value":"githubReviewRequestedNumber"},"name":{"kind":"Name","value":"number"}},{"kind":"Field","alias":{"kind":"Name","value":"githubReviewRequestedUrl"},"name":{"kind":"Name","value":"url"}},{"kind":"Field","alias":{"kind":"Name","value":"githubReviewRequestedDisplayName"},"name":{"kind":"Name","value":"displayName"}},{"kind":"Field","alias":{"kind":"Name","value":"githubReviewRequestedTitle"},"name":{"kind":"Name","value":"title"}},{"kind":"Field","alias":{"kind":"Name","value":"githubReviewRequestedSenderGithubLogin"},"name":{"kind":"Name","value":"senderGithubLogin"}},{"kind":"Field","alias":{"kind":"Name","value":"githubReviewRequestedSenderGithubUserId"},"name":{"kind":"Name","value":"senderGithubUserId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubReviewRequestedSenderGithubAvatarUrl"},"name":{"kind":"Name","value":"senderGithubAvatarUrl"}},{"kind":"Field","alias":{"kind":"Name","value":"githubReviewRequestedRequestedReviewerGithubLogin"},"name":{"kind":"Name","value":"requestedReviewerGithubLogin"}},{"kind":"Field","alias":{"kind":"Name","value":"githubReviewRequestedRequestedReviewerGithubUserId"},"name":{"kind":"Name","value":"requestedReviewerGithubUserId"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlGithubPrCommentMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentForeignEntityId"},"name":{"kind":"Name","value":"foreignEntityId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentGithubKey"},"name":{"kind":"Name","value":"githubKey"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentOwner"},"name":{"kind":"Name","value":"owner"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentRepo"},"name":{"kind":"Name","value":"repo"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentNumber"},"name":{"kind":"Name","value":"number"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentUrl"},"name":{"kind":"Name","value":"url"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentDisplayName"},"name":{"kind":"Name","value":"displayName"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentTitle"},"name":{"kind":"Name","value":"title"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentSenderGithubLogin"},"name":{"kind":"Name","value":"senderGithubLogin"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentSenderGithubUserId"},"name":{"kind":"Name","value":"senderGithubUserId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentSenderGithubAvatarUrl"},"name":{"kind":"Name","value":"senderGithubAvatarUrl"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentCommentKind"},"name":{"kind":"Name","value":"commentKind"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentCommentGithubId"},"name":{"kind":"Name","value":"commentGithubId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentCommentUrl"},"name":{"kind":"Name","value":"commentUrl"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentCommentSnippet"},"name":{"kind":"Name","value":"commentSnippet"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlGithubPrMentionMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionForeignEntityId"},"name":{"kind":"Name","value":"foreignEntityId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionGithubKey"},"name":{"kind":"Name","value":"githubKey"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionOwner"},"name":{"kind":"Name","value":"owner"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionRepo"},"name":{"kind":"Name","value":"repo"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionNumber"},"name":{"kind":"Name","value":"number"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionUrl"},"name":{"kind":"Name","value":"url"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionDisplayName"},"name":{"kind":"Name","value":"displayName"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionTitle"},"name":{"kind":"Name","value":"title"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionSenderGithubLogin"},"name":{"kind":"Name","value":"senderGithubLogin"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionSenderGithubUserId"},"name":{"kind":"Name","value":"senderGithubUserId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionSenderGithubAvatarUrl"},"name":{"kind":"Name","value":"senderGithubAvatarUrl"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionLocation"},"name":{"kind":"Name","value":"location"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionCommentGithubId"},"name":{"kind":"Name","value":"commentGithubId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionCommentUrl"},"name":{"kind":"Name","value":"commentUrl"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionTextSnippet"},"name":{"kind":"Name","value":"textSnippet"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlGithubPrReviewMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewForeignEntityId"},"name":{"kind":"Name","value":"foreignEntityId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewGithubKey"},"name":{"kind":"Name","value":"githubKey"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewOwner"},"name":{"kind":"Name","value":"owner"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewRepo"},"name":{"kind":"Name","value":"repo"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewNumber"},"name":{"kind":"Name","value":"number"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewUrl"},"name":{"kind":"Name","value":"url"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewDisplayName"},"name":{"kind":"Name","value":"displayName"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewTitle"},"name":{"kind":"Name","value":"title"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewSenderGithubLogin"},"name":{"kind":"Name","value":"senderGithubLogin"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewSenderGithubUserId"},"name":{"kind":"Name","value":"senderGithubUserId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewSenderGithubAvatarUrl"},"name":{"kind":"Name","value":"senderGithubAvatarUrl"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewReviewGithubId"},"name":{"kind":"Name","value":"reviewGithubId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewReviewUrl"},"name":{"kind":"Name","value":"reviewUrl"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewState"},"name":{"kind":"Name","value":"state"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewReviewSnippet"},"name":{"kind":"Name","value":"reviewSnippet"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"SoupNotificationFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlNotification"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"eventType"}},{"kind":"Field","name":{"kind":"Name","value":"entityType"}},{"kind":"Field","name":{"kind":"Name","value":"entityId"}},{"kind":"Field","name":{"kind":"Name","value":"sent"}},{"kind":"Field","name":{"kind":"Name","value":"done"}},{"kind":"Field","name":{"kind":"Name","value":"seen"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"viewedAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"senderId"}},{"kind":"Field","name":{"kind":"Name","value":"metadata"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"SoupNotificationMetadataFields"}}]}}]}}]} as unknown as DocumentNode<SoupNotificationsEntityFieldsFragment, unknown>;
+export const MyActivityDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"MyActivity"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"ActivityFeedInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"user"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"activity"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"Variable","name":{"kind":"Name","value":"input"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"items"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ActivityEventFields"}}]}},{"kind":"Field","name":{"kind":"Name","value":"nextCursor"}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ActivityEventFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlActivityEvent"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"actorId"}},{"kind":"Field","name":{"kind":"Name","value":"subjectId"}},{"kind":"Field","name":{"kind":"Name","value":"entityType"}},{"kind":"Field","name":{"kind":"Name","value":"entityId"}},{"kind":"Field","name":{"kind":"Name","value":"occurredAt"}},{"kind":"Field","name":{"kind":"Name","value":"action"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlActivityPropertyChanged"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"property"}},{"kind":"Field","name":{"kind":"Name","value":"from"}},{"kind":"Field","name":{"kind":"Name","value":"to"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlActivityParticipantAdded"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"participant"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlActivityParticipantRemoved"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"participant"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlActivityCallStarted"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"callId"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlActivityUnknownAction"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"tag"}},{"kind":"Field","name":{"kind":"Name","value":"payload"}}]}}]}}]}}]} as unknown as DocumentNode<MyActivityQuery, MyActivityQueryVariables>;
+export const EntityActivityDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"EntityActivity"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"SoupInput"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"limit"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"Int"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"user"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"soup"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"Variable","name":{"kind":"Name","value":"input"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"items"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"EntityActivityFields"}}]}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ActivityEventFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlActivityEvent"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"actorId"}},{"kind":"Field","name":{"kind":"Name","value":"subjectId"}},{"kind":"Field","name":{"kind":"Name","value":"entityType"}},{"kind":"Field","name":{"kind":"Name","value":"entityId"}},{"kind":"Field","name":{"kind":"Name","value":"occurredAt"}},{"kind":"Field","name":{"kind":"Name","value":"action"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlActivityPropertyChanged"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"property"}},{"kind":"Field","name":{"kind":"Name","value":"from"}},{"kind":"Field","name":{"kind":"Name","value":"to"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlActivityParticipantAdded"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"participant"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlActivityParticipantRemoved"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"participant"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlActivityCallStarted"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"callId"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlActivityUnknownAction"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"tag"}},{"kind":"Field","name":{"kind":"Name","value":"payload"}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"EntityActivityFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSoupEntity"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"activity"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"limit"},"value":{"kind":"Variable","name":{"kind":"Name","value":"limit"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ActivityEventFields"}}]}}]}}]} as unknown as DocumentNode<EntityActivityQuery, EntityActivityQueryVariables>;
export const RecordChannelActivityDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"RecordChannelActivity"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"RecordChannelActivityInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"recordChannelActivity"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"Variable","name":{"kind":"Name","value":"input"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"userId"}},{"kind":"Field","name":{"kind":"Name","value":"channelId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"viewedAt"}},{"kind":"Field","name":{"kind":"Name","value":"interactedAt"}}]}}]}}]} as unknown as DocumentNode<RecordChannelActivityMutation, RecordChannelActivityMutationVariables>;
export const UpdateNotificationsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"UpdateNotifications"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UpdateNotificationsInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"updateNotifications"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"Variable","name":{"kind":"Name","value":"input"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"SoupNotificationFields"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"SoupNotificationMetadataFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlNotifEvent"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlChannelMentionMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"channelMentionMessageId"},"name":{"kind":"Name","value":"messageId"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMentionMessageContent"},"name":{"kind":"Name","value":"messageContent"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMentionHasAttachments"},"name":{"kind":"Name","value":"hasAttachments"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMentionThreadId"},"name":{"kind":"Name","value":"threadId"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMentionSenderDisplayName"},"name":{"kind":"Name","value":"senderDisplayName"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMentionChannelType"},"name":{"kind":"Name","value":"channelType"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMentionChannelName"},"name":{"kind":"Name","value":"channelName"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMentionSenderProfilePictureUrl"},"name":{"kind":"Name","value":"senderProfilePictureUrl"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlDocumentMentionMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"documentMentionDocumentName"},"name":{"kind":"Name","value":"documentName"}},{"kind":"Field","alias":{"kind":"Name","value":"documentMentionOwner"},"name":{"kind":"Name","value":"owner"}},{"kind":"Field","alias":{"kind":"Name","value":"documentMentionFileType"},"name":{"kind":"Name","value":"fileType"}},{"kind":"Field","alias":{"kind":"Name","value":"documentMentionSubType"},"name":{"kind":"Name","value":"subType"}},{"kind":"Field","alias":{"kind":"Name","value":"documentMentionMessageId"},"name":{"kind":"Name","value":"messageId"}},{"kind":"Field","alias":{"kind":"Name","value":"documentMentionMessageContent"},"name":{"kind":"Name","value":"messageContent"}},{"kind":"Field","alias":{"kind":"Name","value":"documentMentionHasAttachments"},"name":{"kind":"Name","value":"hasAttachments"}},{"kind":"Field","alias":{"kind":"Name","value":"documentMentionThreadId"},"name":{"kind":"Name","value":"threadId"}},{"kind":"Field","alias":{"kind":"Name","value":"documentMentionSenderDisplayName"},"name":{"kind":"Name","value":"senderDisplayName"}},{"kind":"Field","alias":{"kind":"Name","value":"documentMentionChannelType"},"name":{"kind":"Name","value":"channelType"}},{"kind":"Field","alias":{"kind":"Name","value":"documentMentionChannelName"},"name":{"kind":"Name","value":"channelName"}},{"kind":"Field","alias":{"kind":"Name","value":"documentMentionSenderProfilePictureUrl"},"name":{"kind":"Name","value":"senderProfilePictureUrl"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlMentionedInDocumentCommentMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"mentionedInDocumentCommentDocumentName"},"name":{"kind":"Name","value":"documentName"}},{"kind":"Field","alias":{"kind":"Name","value":"mentionedInDocumentCommentOwner"},"name":{"kind":"Name","value":"owner"}},{"kind":"Field","alias":{"kind":"Name","value":"mentionedInDocumentCommentFileType"},"name":{"kind":"Name","value":"fileType"}},{"kind":"Field","alias":{"kind":"Name","value":"mentionedInDocumentCommentSubType"},"name":{"kind":"Name","value":"subType"}},{"kind":"Field","alias":{"kind":"Name","value":"mentionedInDocumentCommentMentionId"},"name":{"kind":"Name","value":"mentionId"}},{"kind":"Field","alias":{"kind":"Name","value":"mentionedInDocumentCommentCommentId"},"name":{"kind":"Name","value":"commentId"}},{"kind":"Field","alias":{"kind":"Name","value":"mentionedInDocumentCommentThreadId"},"name":{"kind":"Name","value":"threadId"}},{"kind":"Field","alias":{"kind":"Name","value":"mentionedInDocumentCommentText"},"name":{"kind":"Name","value":"text"}},{"kind":"Field","alias":{"kind":"Name","value":"mentionedInDocumentCommentSenderProfilePictureUrl"},"name":{"kind":"Name","value":"senderProfilePictureUrl"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlRepliedToDocumentCommentThreadMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"repliedToDocumentCommentThreadDocumentName"},"name":{"kind":"Name","value":"documentName"}},{"kind":"Field","alias":{"kind":"Name","value":"repliedToDocumentCommentThreadOwner"},"name":{"kind":"Name","value":"owner"}},{"kind":"Field","alias":{"kind":"Name","value":"repliedToDocumentCommentThreadFileType"},"name":{"kind":"Name","value":"fileType"}},{"kind":"Field","alias":{"kind":"Name","value":"repliedToDocumentCommentThreadSubType"},"name":{"kind":"Name","value":"subType"}},{"kind":"Field","alias":{"kind":"Name","value":"repliedToDocumentCommentThreadCommentId"},"name":{"kind":"Name","value":"commentId"}},{"kind":"Field","alias":{"kind":"Name","value":"repliedToDocumentCommentThreadThreadId"},"name":{"kind":"Name","value":"threadId"}},{"kind":"Field","alias":{"kind":"Name","value":"repliedToDocumentCommentThreadText"},"name":{"kind":"Name","value":"text"}},{"kind":"Field","alias":{"kind":"Name","value":"repliedToDocumentCommentThreadSenderProfilePictureUrl"},"name":{"kind":"Name","value":"senderProfilePictureUrl"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlCommentedOnDocumentMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"commentedOnDocumentDocumentName"},"name":{"kind":"Name","value":"documentName"}},{"kind":"Field","alias":{"kind":"Name","value":"commentedOnDocumentOwner"},"name":{"kind":"Name","value":"owner"}},{"kind":"Field","alias":{"kind":"Name","value":"commentedOnDocumentFileType"},"name":{"kind":"Name","value":"fileType"}},{"kind":"Field","alias":{"kind":"Name","value":"commentedOnDocumentSubType"},"name":{"kind":"Name","value":"subType"}},{"kind":"Field","alias":{"kind":"Name","value":"commentedOnDocumentCommentId"},"name":{"kind":"Name","value":"commentId"}},{"kind":"Field","alias":{"kind":"Name","value":"commentedOnDocumentThreadId"},"name":{"kind":"Name","value":"threadId"}},{"kind":"Field","alias":{"kind":"Name","value":"commentedOnDocumentText"},"name":{"kind":"Name","value":"text"}},{"kind":"Field","alias":{"kind":"Name","value":"commentedOnDocumentSenderProfilePictureUrl"},"name":{"kind":"Name","value":"senderProfilePictureUrl"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlChannelInviteMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"channelInviteInvitedBy"},"name":{"kind":"Name","value":"invitedBy"}},{"kind":"Field","alias":{"kind":"Name","value":"channelInviteChannelName"},"name":{"kind":"Name","value":"channelName"}},{"kind":"Field","alias":{"kind":"Name","value":"channelInviteMessageContent"},"name":{"kind":"Name","value":"messageContent"}},{"kind":"Field","alias":{"kind":"Name","value":"channelInviteSenderProfilePictureUrl"},"name":{"kind":"Name","value":"senderProfilePictureUrl"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlChannelMessageSendMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"channelMessageSendSender"},"name":{"kind":"Name","value":"sender"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMessageSendSenderDisplayName"},"name":{"kind":"Name","value":"senderDisplayName"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMessageSendMessageContent"},"name":{"kind":"Name","value":"messageContent"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMessageSendMessageId"},"name":{"kind":"Name","value":"messageId"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMessageSendHasAttachments"},"name":{"kind":"Name","value":"hasAttachments"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMessageSendChannelType"},"name":{"kind":"Name","value":"channelType"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMessageSendChannelName"},"name":{"kind":"Name","value":"channelName"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMessageSendSenderProfilePictureUrl"},"name":{"kind":"Name","value":"senderProfilePictureUrl"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlChannelReplyMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"channelReplyThreadId"},"name":{"kind":"Name","value":"threadId"}},{"kind":"Field","alias":{"kind":"Name","value":"channelReplyMessageId"},"name":{"kind":"Name","value":"messageId"}},{"kind":"Field","alias":{"kind":"Name","value":"channelReplyUserId"},"name":{"kind":"Name","value":"userId"}},{"kind":"Field","alias":{"kind":"Name","value":"channelReplySenderDisplayName"},"name":{"kind":"Name","value":"senderDisplayName"}},{"kind":"Field","alias":{"kind":"Name","value":"channelReplyMessageContent"},"name":{"kind":"Name","value":"messageContent"}},{"kind":"Field","alias":{"kind":"Name","value":"channelReplyHasAttachments"},"name":{"kind":"Name","value":"hasAttachments"}},{"kind":"Field","alias":{"kind":"Name","value":"channelReplyThreadParentSenderId"},"name":{"kind":"Name","value":"threadParentSenderId"}},{"kind":"Field","alias":{"kind":"Name","value":"channelReplyChannelType"},"name":{"kind":"Name","value":"channelType"}},{"kind":"Field","alias":{"kind":"Name","value":"channelReplyChannelName"},"name":{"kind":"Name","value":"channelName"}},{"kind":"Field","alias":{"kind":"Name","value":"channelReplySenderProfilePictureUrl"},"name":{"kind":"Name","value":"senderProfilePictureUrl"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlCallStartedMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"callStartedChannelName"},"name":{"kind":"Name","value":"channelName"}},{"kind":"Field","alias":{"kind":"Name","value":"callStartedSenderProfilePictureUrl"},"name":{"kind":"Name","value":"senderProfilePictureUrl"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlNewEmailMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"newEmailSender"},"name":{"kind":"Name","value":"sender"}},{"kind":"Field","alias":{"kind":"Name","value":"newEmailToEmail"},"name":{"kind":"Name","value":"toEmail"}},{"kind":"Field","alias":{"kind":"Name","value":"newEmailThreadId"},"name":{"kind":"Name","value":"threadId"}},{"kind":"Field","alias":{"kind":"Name","value":"newEmailSubject"},"name":{"kind":"Name","value":"subject"}},{"kind":"Field","alias":{"kind":"Name","value":"newEmailSnippet"},"name":{"kind":"Name","value":"snippet"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlInboxReauthRequiredMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"inboxReauthRequiredEmailAddress"},"name":{"kind":"Name","value":"emailAddress"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlInviteToTeamMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"inviteToTeamTeamName"},"name":{"kind":"Name","value":"teamName"}},{"kind":"Field","alias":{"kind":"Name","value":"inviteToTeamTeamId"},"name":{"kind":"Name","value":"teamId"}},{"kind":"Field","alias":{"kind":"Name","value":"inviteToTeamTeamInviteId"},"name":{"kind":"Name","value":"teamInviteId"}},{"kind":"Field","alias":{"kind":"Name","value":"inviteToTeamInvitedBy"},"name":{"kind":"Name","value":"invitedBy"}},{"kind":"Field","alias":{"kind":"Name","value":"inviteToTeamRole"},"name":{"kind":"Name","value":"role"}},{"kind":"Field","alias":{"kind":"Name","value":"inviteToTeamSenderProfilePictureUrl"},"name":{"kind":"Name","value":"senderProfilePictureUrl"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlTaskAssignedMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"taskAssignedTaskId"},"name":{"kind":"Name","value":"taskId"}},{"kind":"Field","alias":{"kind":"Name","value":"taskAssignedTaskName"},"name":{"kind":"Name","value":"taskName"}},{"kind":"Field","alias":{"kind":"Name","value":"taskAssignedSubType"},"name":{"kind":"Name","value":"subType"}},{"kind":"Field","alias":{"kind":"Name","value":"taskAssignedAssignedBy"},"name":{"kind":"Name","value":"assignedBy"}},{"kind":"Field","alias":{"kind":"Name","value":"taskAssignedSenderProfilePictureUrl"},"name":{"kind":"Name","value":"senderProfilePictureUrl"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlReminderMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"reminderReminderId"},"name":{"kind":"Name","value":"reminderId"}},{"kind":"Field","alias":{"kind":"Name","value":"reminderDescription"},"name":{"kind":"Name","value":"description"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlCalendarEventReminderMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"calendarEventReminderEventId"},"name":{"kind":"Name","value":"eventId"}},{"kind":"Field","alias":{"kind":"Name","value":"calendarEventReminderOccurrenceKey"},"name":{"kind":"Name","value":"occurrenceKey"}},{"kind":"Field","alias":{"kind":"Name","value":"calendarEventReminderTitle"},"name":{"kind":"Name","value":"title"}},{"kind":"Field","alias":{"kind":"Name","value":"calendarEventReminderStartsAt"},"name":{"kind":"Name","value":"startsAt"}},{"kind":"Field","alias":{"kind":"Name","value":"calendarEventReminderEndsAt"},"name":{"kind":"Name","value":"endsAt"}},{"kind":"Field","alias":{"kind":"Name","value":"calendarEventReminderStartDate"},"name":{"kind":"Name","value":"startDate"}},{"kind":"Field","alias":{"kind":"Name","value":"calendarEventReminderTimeZone"},"name":{"kind":"Name","value":"timeZone"}},{"kind":"Field","alias":{"kind":"Name","value":"calendarEventReminderMinutesBefore"},"name":{"kind":"Name","value":"minutesBefore"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlAiResponseMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"aiResponseSummary"},"name":{"kind":"Name","value":"summary"}},{"kind":"Field","alias":{"kind":"Name","value":"aiResponseMessageId"},"name":{"kind":"Name","value":"messageId"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlGithubPrStatusChangedMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedForeignEntityId"},"name":{"kind":"Name","value":"foreignEntityId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedGithubKey"},"name":{"kind":"Name","value":"githubKey"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedOwner"},"name":{"kind":"Name","value":"owner"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedRepo"},"name":{"kind":"Name","value":"repo"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedNumber"},"name":{"kind":"Name","value":"number"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedUrl"},"name":{"kind":"Name","value":"url"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedDisplayName"},"name":{"kind":"Name","value":"displayName"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedTitle"},"name":{"kind":"Name","value":"title"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedSenderGithubLogin"},"name":{"kind":"Name","value":"senderGithubLogin"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedSenderGithubUserId"},"name":{"kind":"Name","value":"senderGithubUserId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedSenderGithubAvatarUrl"},"name":{"kind":"Name","value":"senderGithubAvatarUrl"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedStatus"},"name":{"kind":"Name","value":"status"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedAction"},"name":{"kind":"Name","value":"action"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedPreviousStatus"},"name":{"kind":"Name","value":"previousStatus"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedHeadBranch"},"name":{"kind":"Name","value":"headBranch"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedBaseBranch"},"name":{"kind":"Name","value":"baseBranch"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedMergedAt"},"name":{"kind":"Name","value":"mergedAt"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlGithubPrCheckRunMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunForeignEntityId"},"name":{"kind":"Name","value":"foreignEntityId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunGithubKey"},"name":{"kind":"Name","value":"githubKey"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunOwner"},"name":{"kind":"Name","value":"owner"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunRepo"},"name":{"kind":"Name","value":"repo"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunNumber"},"name":{"kind":"Name","value":"number"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunUrl"},"name":{"kind":"Name","value":"url"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunDisplayName"},"name":{"kind":"Name","value":"displayName"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunTitle"},"name":{"kind":"Name","value":"title"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunSenderGithubLogin"},"name":{"kind":"Name","value":"senderGithubLogin"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunSenderGithubUserId"},"name":{"kind":"Name","value":"senderGithubUserId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunSenderGithubAvatarUrl"},"name":{"kind":"Name","value":"senderGithubAvatarUrl"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunCheckRunGithubId"},"name":{"kind":"Name","value":"checkRunGithubId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunCheckName"},"name":{"kind":"Name","value":"checkName"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunCheckStatus"},"name":{"kind":"Name","value":"checkStatus"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunConclusion"},"name":{"kind":"Name","value":"conclusion"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunState"},"name":{"kind":"Name","value":"state"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunCheckUrl"},"name":{"kind":"Name","value":"checkUrl"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunCompletedAt"},"name":{"kind":"Name","value":"completedAt"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlGithubReviewRequestedMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"githubReviewRequestedForeignEntityId"},"name":{"kind":"Name","value":"foreignEntityId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubReviewRequestedGithubKey"},"name":{"kind":"Name","value":"githubKey"}},{"kind":"Field","alias":{"kind":"Name","value":"githubReviewRequestedOwner"},"name":{"kind":"Name","value":"owner"}},{"kind":"Field","alias":{"kind":"Name","value":"githubReviewRequestedRepo"},"name":{"kind":"Name","value":"repo"}},{"kind":"Field","alias":{"kind":"Name","value":"githubReviewRequestedNumber"},"name":{"kind":"Name","value":"number"}},{"kind":"Field","alias":{"kind":"Name","value":"githubReviewRequestedUrl"},"name":{"kind":"Name","value":"url"}},{"kind":"Field","alias":{"kind":"Name","value":"githubReviewRequestedDisplayName"},"name":{"kind":"Name","value":"displayName"}},{"kind":"Field","alias":{"kind":"Name","value":"githubReviewRequestedTitle"},"name":{"kind":"Name","value":"title"}},{"kind":"Field","alias":{"kind":"Name","value":"githubReviewRequestedSenderGithubLogin"},"name":{"kind":"Name","value":"senderGithubLogin"}},{"kind":"Field","alias":{"kind":"Name","value":"githubReviewRequestedSenderGithubUserId"},"name":{"kind":"Name","value":"senderGithubUserId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubReviewRequestedSenderGithubAvatarUrl"},"name":{"kind":"Name","value":"senderGithubAvatarUrl"}},{"kind":"Field","alias":{"kind":"Name","value":"githubReviewRequestedRequestedReviewerGithubLogin"},"name":{"kind":"Name","value":"requestedReviewerGithubLogin"}},{"kind":"Field","alias":{"kind":"Name","value":"githubReviewRequestedRequestedReviewerGithubUserId"},"name":{"kind":"Name","value":"requestedReviewerGithubUserId"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlGithubPrCommentMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentForeignEntityId"},"name":{"kind":"Name","value":"foreignEntityId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentGithubKey"},"name":{"kind":"Name","value":"githubKey"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentOwner"},"name":{"kind":"Name","value":"owner"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentRepo"},"name":{"kind":"Name","value":"repo"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentNumber"},"name":{"kind":"Name","value":"number"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentUrl"},"name":{"kind":"Name","value":"url"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentDisplayName"},"name":{"kind":"Name","value":"displayName"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentTitle"},"name":{"kind":"Name","value":"title"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentSenderGithubLogin"},"name":{"kind":"Name","value":"senderGithubLogin"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentSenderGithubUserId"},"name":{"kind":"Name","value":"senderGithubUserId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentSenderGithubAvatarUrl"},"name":{"kind":"Name","value":"senderGithubAvatarUrl"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentCommentKind"},"name":{"kind":"Name","value":"commentKind"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentCommentGithubId"},"name":{"kind":"Name","value":"commentGithubId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentCommentUrl"},"name":{"kind":"Name","value":"commentUrl"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentCommentSnippet"},"name":{"kind":"Name","value":"commentSnippet"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlGithubPrMentionMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionForeignEntityId"},"name":{"kind":"Name","value":"foreignEntityId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionGithubKey"},"name":{"kind":"Name","value":"githubKey"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionOwner"},"name":{"kind":"Name","value":"owner"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionRepo"},"name":{"kind":"Name","value":"repo"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionNumber"},"name":{"kind":"Name","value":"number"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionUrl"},"name":{"kind":"Name","value":"url"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionDisplayName"},"name":{"kind":"Name","value":"displayName"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionTitle"},"name":{"kind":"Name","value":"title"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionSenderGithubLogin"},"name":{"kind":"Name","value":"senderGithubLogin"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionSenderGithubUserId"},"name":{"kind":"Name","value":"senderGithubUserId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionSenderGithubAvatarUrl"},"name":{"kind":"Name","value":"senderGithubAvatarUrl"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionLocation"},"name":{"kind":"Name","value":"location"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionCommentGithubId"},"name":{"kind":"Name","value":"commentGithubId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionCommentUrl"},"name":{"kind":"Name","value":"commentUrl"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionTextSnippet"},"name":{"kind":"Name","value":"textSnippet"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlGithubPrReviewMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewForeignEntityId"},"name":{"kind":"Name","value":"foreignEntityId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewGithubKey"},"name":{"kind":"Name","value":"githubKey"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewOwner"},"name":{"kind":"Name","value":"owner"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewRepo"},"name":{"kind":"Name","value":"repo"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewNumber"},"name":{"kind":"Name","value":"number"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewUrl"},"name":{"kind":"Name","value":"url"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewDisplayName"},"name":{"kind":"Name","value":"displayName"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewTitle"},"name":{"kind":"Name","value":"title"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewSenderGithubLogin"},"name":{"kind":"Name","value":"senderGithubLogin"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewSenderGithubUserId"},"name":{"kind":"Name","value":"senderGithubUserId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewSenderGithubAvatarUrl"},"name":{"kind":"Name","value":"senderGithubAvatarUrl"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewReviewGithubId"},"name":{"kind":"Name","value":"reviewGithubId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewReviewUrl"},"name":{"kind":"Name","value":"reviewUrl"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewState"},"name":{"kind":"Name","value":"state"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewReviewSnippet"},"name":{"kind":"Name","value":"reviewSnippet"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"SoupNotificationFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlNotification"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"eventType"}},{"kind":"Field","name":{"kind":"Name","value":"entityType"}},{"kind":"Field","name":{"kind":"Name","value":"entityId"}},{"kind":"Field","name":{"kind":"Name","value":"sent"}},{"kind":"Field","name":{"kind":"Name","value":"done"}},{"kind":"Field","name":{"kind":"Name","value":"seen"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"viewedAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"senderId"}},{"kind":"Field","name":{"kind":"Name","value":"metadata"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"SoupNotificationMetadataFields"}}]}}]}}]} as unknown as DocumentNode<UpdateNotificationsMutation, UpdateNotificationsMutationVariables>;
export const EmailThreadPageDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"EmailThreadPage"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"threadId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"ID"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"offset"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"Int"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"limit"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"Int"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"user"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"emailThread"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"threadId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"threadId"}}}]}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"EmailThreadPageFields"}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"EmailThreadMessageFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSoupEmailMessage"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"providerId"}},{"kind":"Field","name":{"kind":"Name","value":"threadId"}},{"kind":"Field","name":{"kind":"Name","value":"replyingToId"}},{"kind":"Field","name":{"kind":"Name","value":"linkId"}},{"kind":"Field","name":{"kind":"Name","value":"subject"}},{"kind":"Field","name":{"kind":"Name","value":"snippet"}},{"kind":"Field","name":{"kind":"Name","value":"internalDateTs"}},{"kind":"Field","name":{"kind":"Name","value":"sentAt"}},{"kind":"Field","name":{"kind":"Name","value":"isRead"}},{"kind":"Field","name":{"kind":"Name","value":"isStarred"}},{"kind":"Field","name":{"kind":"Name","value":"isSent"}},{"kind":"Field","name":{"kind":"Name","value":"isDraft"}},{"kind":"Field","name":{"kind":"Name","value":"hasAttachments"}},{"kind":"Field","name":{"kind":"Name","value":"scheduledSendTime"}},{"kind":"Field","name":{"kind":"Name","value":"from"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"email"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"photoUrl"}}]}},{"kind":"Field","name":{"kind":"Name","value":"to"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"email"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"photoUrl"}}]}},{"kind":"Field","name":{"kind":"Name","value":"cc"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"email"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"photoUrl"}}]}},{"kind":"Field","name":{"kind":"Name","value":"bcc"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"email"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"photoUrl"}}]}},{"kind":"Field","name":{"kind":"Name","value":"labels"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"providerLabelId"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"Field","name":{"kind":"Name","value":"bodyText"}},{"kind":"Field","name":{"kind":"Name","value":"bodyHtmlSanitized"}},{"kind":"Field","name":{"kind":"Name","value":"bodyMacro"}},{"kind":"Field","name":{"kind":"Name","value":"bodyReplyless"}},{"kind":"Field","name":{"kind":"Name","value":"attachments"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"providerId"}},{"kind":"Field","name":{"kind":"Name","value":"filename"}},{"kind":"Field","name":{"kind":"Name","value":"mimeType"}},{"kind":"Field","name":{"kind":"Name","value":"sizeBytes"}},{"kind":"Field","name":{"kind":"Name","value":"sfsId"}},{"kind":"Field","name":{"kind":"Name","value":"contentId"}}]}},{"kind":"Field","name":{"kind":"Name","value":"attachmentsDraft"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"draftId"}},{"kind":"Field","name":{"kind":"Name","value":"fileName"}},{"kind":"Field","name":{"kind":"Name","value":"contentType"}},{"kind":"Field","name":{"kind":"Name","value":"sha"}},{"kind":"Field","name":{"kind":"Name","value":"size"}},{"kind":"Field","name":{"kind":"Name","value":"s3Key"}}]}},{"kind":"Field","name":{"kind":"Name","value":"attachmentsForwarded"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"attachmentId"}},{"kind":"Field","name":{"kind":"Name","value":"draftId"}},{"kind":"Field","name":{"kind":"Name","value":"providerAttachmentId"}},{"kind":"Field","name":{"kind":"Name","value":"messageProviderId"}},{"kind":"Field","name":{"kind":"Name","value":"filename"}},{"kind":"Field","name":{"kind":"Name","value":"mimeType"}},{"kind":"Field","name":{"kind":"Name","value":"sizeBytes"}}]}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"EmailThreadPageFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSoupEmailThread"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"providerId"}},{"kind":"Field","name":{"kind":"Name","value":"linkId"}},{"kind":"Field","name":{"kind":"Name","value":"inboxVisible"}},{"kind":"Field","name":{"kind":"Name","value":"isRead"}},{"kind":"Field","name":{"kind":"Name","value":"projectId"}},{"kind":"Field","name":{"kind":"Name","value":"latestInboundMessageTs"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"viewerPermission"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlAccessLevelPermission"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"accessLevel"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"labels"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"linkId"}},{"kind":"Field","name":{"kind":"Name","value":"providerLabelId"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"messageListVisibility"}},{"kind":"Field","name":{"kind":"Name","value":"labelListVisibility"}},{"kind":"Field","name":{"kind":"Name","value":"type"}}]}},{"kind":"Field","name":{"kind":"Name","value":"messages"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"offset"},"value":{"kind":"Variable","name":{"kind":"Name","value":"offset"}}},{"kind":"Argument","name":{"kind":"Name","value":"limit"},"value":{"kind":"Variable","name":{"kind":"Name","value":"limit"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"EmailThreadMessageFields"}}]}}]}}]} as unknown as DocumentNode<EmailThreadPageQuery, EmailThreadPageQueryVariables>;
diff --git a/crates/activity/Cargo.toml b/crates/activity/Cargo.toml
index 70a0d3b97d..27092997de 100644
--- a/crates/activity/Cargo.toml
+++ b/crates/activity/Cargo.toml
@@ -15,7 +15,7 @@ consumer = [
"macro_event_broker/outbound",
]
default = ["consumer", "outbound"]
-outbound = ["dep:sqlx"]
+outbound = ["dep:sqlx", "dep:tracing"]
[dependencies]
channel_sender = { path = "../channel_sender" }
diff --git a/crates/activity/src/domain/models.rs b/crates/activity/src/domain/models.rs
index b873ced607..e596e5ae6f 100644
--- a/crates/activity/src/domain/models.rs
+++ b/crates/activity/src/domain/models.rs
@@ -97,8 +97,14 @@ pub struct CallStart {
/// fields must tolerate absence on old rows. The stored tag is derived
/// from the variant name (strum, snake_case), so **renaming a variant is a
/// storage migration** — the pinned codec test exists to make that loud.
-#[derive(Debug, Clone, PartialEq, strum::IntoStaticStr)]
+#[derive(Debug, Clone, PartialEq, strum::IntoStaticStr, strum::EnumDiscriminants)]
#[strum(serialize_all = "snake_case")]
+#[strum_discriminants(
+ name(ActionTag),
+ vis(pub(crate)),
+ derive(strum::EnumString),
+ strum(serialize_all = "snake_case")
+)]
pub enum Action {
/// The entity was created.
Created,
@@ -169,6 +175,126 @@ impl Action {
};
(tag, payload)
}
+
+ /// Inverse of [`Action::to_columns`]: rebuilds the action from its stored
+ /// `(action, action_payload)` column values.
+ ///
+ /// A payload on a payload-free tag is ignored — a newer writer may have
+ /// started attaching one, and old readers must keep decoding the tag they
+ /// know. The tag vocabulary is the same strum derivation `to_columns`
+ /// writes with (the crate-private `ActionTag` discriminant enum, derived
+ /// from the variant names), and the match below is exhaustive on it — a
+ /// new variant fails compilation here until its decode is written.
+ pub fn from_columns(tag: &str, payload: Option<&Value>) -> Result<Self, ActionDecodeError> {
+ // Deserializing from `&Value` borrows; no payload clone on the read
+ // hot path.
+ fn parsed<T: for<'de> Deserialize<'de>>(
+ payload: Option<&Value>,
+ ) -> Result<T, ActionDecodeError> {
+ let value = payload.ok_or(ActionDecodeError::MissingPayload)?;
+ T::deserialize(value).map_err(ActionDecodeError::InvalidPayload)
+ }
+
+ let tag = tag
+ .parse::<ActionTag>()
+ .map_err(|_| ActionDecodeError::UnknownTag)?;
+ match tag {
+ ActionTag::Created => Ok(Action::Created),
+ ActionTag::Edited => Ok(Action::Edited),
+ ActionTag::Opened => Ok(Action::Opened),
+ ActionTag::Deleted => Ok(Action::Deleted),
+ ActionTag::Messaged => Ok(Action::Messaged),
+ ActionTag::Sent => Ok(Action::Sent),
+ ActionTag::PropertyChanged => Ok(Action::PropertyChanged(parsed(payload)?)),
+ ActionTag::ParticipantAdded => Ok(Action::ParticipantAdded(parsed(payload)?)),
+ ActionTag::ParticipantRemoved => Ok(Action::ParticipantRemoved(parsed(payload)?)),
+ ActionTag::CallStarted => Ok(Action::CallStarted(parsed(payload)?)),
+ }
+ }
+}
+
+/// Why one stored `(action, action_payload)` pair failed to decode.
+#[derive(Debug)]
+pub enum ActionDecodeError {
+ /// The tag is not in this reader's vocabulary (row written by a newer
+ /// deployment).
+ UnknownTag,
+ /// The tag requires a payload but the column is NULL.
+ MissingPayload,
+ /// The payload column doesn't deserialize into the tag's payload shape.
+ InvalidPayload(serde_json::Error),
+}
+
+impl std::fmt::Display for ActionDecodeError {
+ fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
+ match self {
+ ActionDecodeError::UnknownTag => write!(f, "unknown action tag"),
+ ActionDecodeError::MissingPayload => write!(f, "action payload missing"),
+ ActionDecodeError::InvalidPayload(e) => write!(f, "invalid action payload: {e}"),
+ }
+ }
+}
+
+impl std::error::Error for ActionDecodeError {
+ fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
+ match self {
+ ActionDecodeError::InvalidPayload(e) => Some(e),
+ ActionDecodeError::UnknownTag | ActionDecodeError::MissingPayload => None,
+ }
+ }
+}
+
+/// A stored action as a reader sees it: decoded into the closed [`Action`]
+/// vocabulary, or preserved raw when this reader can't decode it (a row
+/// written by a newer deployment, or a corrupt payload). [`Action`] itself
+/// stays closed — forward tolerance is a read-side concern.
+#[derive(Debug, Clone, PartialEq)]
+pub enum RecordedAction {
+ /// An action in this reader's vocabulary.
+ Known(Action),
+ /// An action this reader can't decode, carried through raw.
+ Unknown {
+ /// The stored tag.
+ tag: String,
+ /// The stored payload, verbatim.
+ payload: Option<Value>,
+ },
+}
+
+impl RecordedAction {
+ /// Total decode of the stored column pair: falls back to
+ /// [`RecordedAction::Unknown`] instead of failing. The error is handed
+ /// back so callers with a logging dependency can distinguish a new
+ /// vocabulary word ([`ActionDecodeError::UnknownTag`], expected during
+ /// rollouts) from a known tag with an undecodable payload (corruption —
+ /// worth a warning). This module stays dependency-free on purpose.
+ pub fn from_columns(tag: String, payload: Option<Value>) -> (Self, Option<ActionDecodeError>) {
+ match Action::from_columns(&tag, payload.as_ref()) {
+ Ok(action) => (RecordedAction::Known(action), None),
+ Err(error) => (RecordedAction::Unknown { tag, payload }, Some(error)),
+ }
+ }
+}
+
+/// One activity as read back from storage — the read-side projection of an
+/// `activity_events` row. Plain fields: unlike [`Activity`] there are no
+/// construction invariants to seal; the row already exists.
+#[derive(Debug, Clone, PartialEq)]
+pub struct ActivityRecord {
+ /// The stored activity id.
+ pub id: Uuid,
+ /// Who mechanically acted.
+ pub actor: Actor<'static>,
+ /// Whose activity this is (a principal string: `macro|…` or `bot|…`).
+ pub subject_id: String,
+ /// The kind of entity acted on.
+ pub entity_type: EntityType,
+ /// The entity acted on.
+ pub entity_id: String,
+ /// What they did, decoded forward-tolerantly.
+ pub action: RecordedAction,
+ /// When it happened.
+ pub occurred_at: DateTime<Utc>,
}
/// The capability a domain implements to feed activity: given one of its
diff --git a/crates/activity/src/domain/models/test.rs b/crates/activity/src/domain/models/test.rs
index c41b035075..8f67487123 100644
--- a/crates/activity/src/domain/models/test.rs
+++ b/crates/activity/src/domain/models/test.rs
@@ -53,9 +53,64 @@ fn every_action_maps_to_stable_columns() {
let (tag, payload) = action.to_columns();
assert_eq!(tag, expected_tag, "tag for {action:?}");
assert_eq!(payload, expected_payload, "payload for {action:?}");
+
+ // The read codec is the exact inverse: every stored pair decodes
+ // back to the action that produced it.
+ let decoded = Action::from_columns(tag, payload.as_ref())
+ .unwrap_or_else(|e| panic!("decode {tag}: {e}"));
+ assert_eq!(decoded, action, "round-trip for {tag}");
}
}
+#[test]
+fn unknown_tags_decode_to_recorded_unknown_preserving_the_row() {
+ let payload = Some(json!({ "novel": true }));
+
+ let (recorded, error) = RecordedAction::from_columns("renamed".to_string(), payload.clone());
+
+ assert_eq!(
+ recorded,
+ RecordedAction::Unknown {
+ tag: "renamed".to_string(),
+ payload,
+ }
+ );
+ assert!(matches!(error, Some(ActionDecodeError::UnknownTag)));
+}
+
+#[test]
+fn undecodable_payload_on_a_known_tag_degrades_to_unknown() {
+ let garbage = Some(json!({ "property": 42 }));
+
+ let (recorded, error) =
+ RecordedAction::from_columns("property_changed".to_string(), garbage.clone());
+
+ assert_eq!(
+ recorded,
+ RecordedAction::Unknown {
+ tag: "property_changed".to_string(),
+ payload: garbage,
+ }
+ );
+ assert!(matches!(error, Some(ActionDecodeError::InvalidPayload(_))));
+}
+
+#[test]
+fn missing_payload_on_a_payload_tag_is_an_explicit_error() {
+ assert!(matches!(
+ Action::from_columns("call_started", None),
+ Err(ActionDecodeError::MissingPayload)
+ ));
+}
+
+#[test]
+fn extra_payload_on_a_payload_free_tag_is_ignored() {
+ // A newer writer may start attaching payloads to today's payload-free
+ // tags; old readers must keep decoding the tag they know.
+ let decoded = Action::from_columns("edited", Some(&json!({ "future": 1 }))).unwrap();
+ assert_eq!(decoded, Action::Edited);
+}
+
#[test]
fn only_opened_is_a_view() {
assert!(Action::Opened.is_view());
diff --git a/crates/activity/src/domain/ports.rs b/crates/activity/src/domain/ports.rs
index 4bf493d975..08d06abe27 100644
--- a/crates/activity/src/domain/ports.rs
+++ b/crates/activity/src/domain/ports.rs
@@ -1,8 +1,28 @@
-//! Storage port for activities.
+//! Storage ports for activities.
+use std::collections::HashMap;
+use std::num::NonZeroU32;
+
+use chrono::{DateTime, Utc};
use model_entity::EntityType;
+use uuid::Uuid;
+
+use super::models::{Activity, ActivityRecord};
+
+/// Activity rows grouped per requested entity, newest first within each.
+pub type EntityActivityMap = HashMap<(EntityType, String), Vec<ActivityRecord>>;
-use super::models::Activity;
+/// One keyset page of a subject's activity.
+#[derive(Debug, Clone, PartialEq)]
+pub struct ActivityFeedPage {
+ /// Decoded rows, newest first. May be shorter than the requested limit
+ /// when corrupt rows were skipped; `next` still advances past them.
+ pub records: Vec<ActivityRecord>,
+ /// Keyset position to resume after; `None` when the feed is exhausted.
+ /// Derived from the raw fetched rows *before* decode-skipping, so one
+ /// bad row can never end pagination early.
+ pub next: Option<(DateTime<Utc>, Uuid)>,
+}
/// Persists activities.
pub trait ActivityRepo {
@@ -22,3 +42,35 @@ pub trait ActivityRepo {
entities: &[(EntityType, String)],
) -> impl Future<Output = Result<(), Self::Err>> + Send;
}
+
+/// Reads activities. Rows come back newest-first (`occurred_at DESC, id
+/// DESC` — the stored keyset order), decoded forward-tolerantly: rows whose
+/// action this reader doesn't know surface as
+/// [`RecordedAction::Unknown`](super::models::RecordedAction::Unknown), and
+/// rows too corrupt to represent (unparseable actor or entity type) are
+/// skipped, not errors.
+pub trait ActivityReads {
+ /// The adapter's error type.
+ type Err: std::error::Error + Send + Sync + 'static;
+
+ /// One page of a subject's activity, newest first. `cursor` is the
+ /// `(occurred_at, id)` returned as the previous page's
+ /// [`next`](ActivityFeedPage::next); rows strictly before it (in keyset
+ /// order) are returned. `limit` is non-zero by type: a zero-row page
+ /// could not carry a `next` position and would misreport an exhausted
+ /// feed.
+ fn subject_feed(
+ &self,
+ subject_id: &str,
+ cursor: Option<(DateTime<Utc>, Uuid)>,
+ limit: NonZeroU32,
+ ) -> impl Future<Output = Result<ActivityFeedPage, Self::Err>> + Send;
+
+ /// The newest `per_entity_limit` activities for each requested entity,
+ /// in one round trip. Entities with no activity are absent from the map.
+ fn entity_activity(
+ &self,
+ keys: &[(EntityType, String)],
+ per_entity_limit: u32,
+ ) -> impl Future<Output = Result<EntityActivityMap, Self::Err>> + Send;
+}
diff --git a/crates/activity/src/lib.rs b/crates/activity/src/lib.rs
index dcabfc3889..a1720996e6 100644
--- a/crates/activity/src/lib.rs
+++ b/crates/activity/src/lib.rs
@@ -26,6 +26,8 @@ pub mod inbound;
pub mod outbound;
pub use domain::models::{
- Action, Activity, ActivitySource, Actor, CallStart, CommonAction, DomainActivity, EntityType,
- Ingest, ParticipantChange, PropertyChange, activity_id, event_time,
+ Action, ActionDecodeError, Activity, ActivityRecord, ActivitySource, Actor, CallStart,
+ CommonAction, DomainActivity, EntityType, Ingest, ParticipantChange, PropertyChange,
+ RecordedAction, activity_id, event_time,
};
+pub use domain::ports::{ActivityFeedPage, ActivityReads, EntityActivityMap};
diff --git a/crates/activity/src/outbound/pg_activity_repo.rs b/crates/activity/src/outbound/pg_activity_repo.rs
index 02873739db..048d482821 100644
--- a/crates/activity/src/outbound/pg_activity_repo.rs
+++ b/crates/activity/src/outbound/pg_activity_repo.rs
@@ -3,10 +3,19 @@
#[cfg(test)]
mod test;
+use std::collections::HashMap;
+use std::num::NonZeroU32;
+use std::str::FromStr;
+
+use chrono::{DateTime, Utc};
use model_entity::EntityType;
use sqlx::PgPool;
+use uuid::Uuid;
-use crate::domain::{models::Activity, ports::ActivityRepo};
+use crate::domain::{
+ models::{ActionDecodeError, Activity, ActivityRecord, Actor, RecordedAction},
+ ports::{ActivityFeedPage, ActivityReads, ActivityRepo, EntityActivityMap},
+};
/// Writes activities to MacroDB.
#[derive(Debug, Clone)]
@@ -98,3 +107,187 @@ impl ActivityRepo for PgActivityRepo {
Ok(())
}
}
+
+/// One `activity_events` row as fetched, before decoding.
+struct StoredRow {
+ id: Uuid,
+ actor_id: String,
+ action: String,
+ action_payload: Option<serde_json::Value>,
+ subject_id: String,
+ entity_type: String,
+ entity_id: String,
+ occurred_at: DateTime<Utc>,
+}
+
+impl StoredRow {
+ /// Decodes the raw row, forward-tolerantly for the action and
+ /// skip-with-warn for corruption the model can't represent: one bad row
+ /// must not fail a whole page.
+ fn decode(self) -> Option<ActivityRecord> {
+ let entity_type = EntityType::from_str(&self.entity_type)
+ .inspect_err(|error| {
+ tracing::warn!(
+ activity_id = %self.id,
+ entity_type = %self.entity_type,
+ ?error,
+ "skipping activity row with unknown entity type"
+ );
+ })
+ .ok()?;
+ let actor = Actor::try_from(self.actor_id)
+ .inspect_err(|error| {
+ tracing::warn!(
+ activity_id = %self.id,
+ ?error,
+ "skipping activity row with unparseable actor"
+ );
+ })
+ .ok()?;
+ let (action, decode_error) = RecordedAction::from_columns(self.action, self.action_payload);
+ // An unknown tag is expected during rollouts (newer writer); a known
+ // tag that won't decode is corruption or a payload shape change.
+ if let Some(error) = decode_error
+ && !matches!(error, ActionDecodeError::UnknownTag)
+ {
+ tracing::warn!(
+ activity_id = %self.id,
+ ?error,
+ "known action tag with undecodable payload"
+ );
+ }
+ Some(ActivityRecord {
+ id: self.id,
+ actor,
+ subject_id: self.subject_id,
+ entity_type,
+ entity_id: self.entity_id,
+ action,
+ occurred_at: self.occurred_at,
+ })
+ }
+}
+
+impl ActivityReads for PgActivityRepo {
+ type Err = sqlx::Error;
+
+ async fn subject_feed(
+ &self,
+ subject_id: &str,
+ cursor: Option<(DateTime<Utc>, Uuid)>,
+ limit: NonZeroU32,
+ ) -> Result<ActivityFeedPage, Self::Err> {
+ // One extra raw row as the has-more probe. The page boundary and the
+ // next cursor come from the raw rows, before decoding: a corrupt row
+ // shrinks the visible page but never ends pagination.
+ let limit = limit.get();
+ let fetch = i64::from(limit) + 1;
+ // Two static queries instead of one `$x IS NULL OR …` merge, which
+ // would defeat the (subject_id, occurred_at DESC, id DESC) index.
+ let mut rows = match cursor {
+ None => {
+ sqlx::query_as!(
+ StoredRow,
+ r#"
+ SELECT id, actor_id, action, action_payload,
+ subject_id, entity_type, entity_id, occurred_at
+ FROM activity_events
+ WHERE subject_id = $1
+ ORDER BY occurred_at DESC, id DESC
+ LIMIT $2
+ "#,
+ subject_id,
+ fetch,
+ )
+ .fetch_all(&self.pool)
+ .await?
+ }
+ Some((cursor_at, cursor_id)) => {
+ sqlx::query_as!(
+ StoredRow,
+ r#"
+ SELECT id, actor_id, action, action_payload,
+ subject_id, entity_type, entity_id, occurred_at
+ FROM activity_events
+ WHERE subject_id = $1 AND (occurred_at, id) < ($2, $3)
+ ORDER BY occurred_at DESC, id DESC
+ LIMIT $4
+ "#,
+ subject_id,
+ cursor_at,
+ cursor_id,
+ fetch,
+ )
+ .fetch_all(&self.pool)
+ .await?
+ }
+ };
+
+ let has_more = rows.len() > limit as usize;
+ rows.truncate(limit as usize);
+ let next = has_more
+ .then(|| rows.last().map(|row| (row.occurred_at, row.id)))
+ .flatten();
+ Ok(ActivityFeedPage {
+ records: rows.into_iter().filter_map(StoredRow::decode).collect(),
+ next,
+ })
+ }
+
+ async fn entity_activity(
+ &self,
+ keys: &[(EntityType, String)],
+ per_entity_limit: u32,
+ ) -> Result<EntityActivityMap, Self::Err> {
+ if keys.is_empty() {
+ return Ok(HashMap::new());
+ }
+
+ // Dedupe: a repeated key would run its lateral twice and stack
+ // 2x the limit into that entity's map entry.
+ let mut seen = std::collections::HashSet::new();
+ let unique: Vec<&(EntityType, String)> =
+ keys.iter().filter(|key| seen.insert(*key)).collect();
+ let entity_types: Vec<String> = unique
+ .iter()
+ .map(|(entity_type, _)| entity_type.as_ref().to_owned())
+ .collect();
+ let entity_ids: Vec<String> = unique.iter().map(|(_, id)| id.clone()).collect();
+
+ // One lateral scan of the (entity_type, entity_id, occurred_at DESC,
+ // id DESC) index per requested entity, in a single round trip.
+ let rows = sqlx::query_as!(
+ StoredRow,
+ r#"
+ SELECT a.id AS "id!", a.actor_id AS "actor_id!",
+ a.action AS "action!", a.action_payload,
+ a.subject_id AS "subject_id!",
+ a.entity_type AS "entity_type!", a.entity_id AS "entity_id!",
+ a.occurred_at AS "occurred_at!"
+ FROM UNNEST($1::text[], $2::text[]) AS k(entity_type, entity_id)
+ JOIN LATERAL (
+ SELECT * FROM activity_events e
+ WHERE e.entity_type = k.entity_type AND e.entity_id = k.entity_id
+ ORDER BY e.occurred_at DESC, e.id DESC
+ LIMIT $3
+ ) a ON TRUE
+ ORDER BY a.occurred_at DESC, a.id DESC
+ "#,
+ &entity_types,
+ &entity_ids,
+ i64::from(per_entity_limit),
+ )
+ .fetch_all(&self.pool)
+ .await?;
+
+ let mut by_entity = EntityActivityMap::new();
+ for row in rows {
+ let Some(record) = row.decode() else { continue };
+ by_entity
+ .entry((record.entity_type, record.entity_id.clone()))
+ .or_default()
+ .push(record);
+ }
+ Ok(by_entity)
+ }
+}
diff --git a/crates/activity/src/outbound/pg_activity_repo/test.rs b/crates/activity/src/outbound/pg_activity_repo/test.rs
index 70abab5196..9bc8012ab1 100644
--- a/crates/activity/src/outbound/pg_activity_repo/test.rs
+++ b/crates/activity/src/outbound/pg_activity_repo/test.rs
@@ -4,12 +4,16 @@ use macro_user_id::user_id::MacroUserIdStr;
use uuid::Uuid;
use super::*;
-use crate::domain::models::{Actor, CommonAction};
+use crate::domain::models::{Action, Actor, CommonAction};
fn user(id: &str) -> MacroUserIdStr<'static> {
MacroUserIdStr::try_from(id.to_string()).expect("valid user id")
}
+fn nz(limit: u32) -> NonZeroU32 {
+ NonZeroU32::new(limit).expect("non-zero test limit")
+}
+
fn seed(source_event: u128, action: CommonAction, entity_id: &str) -> Activity {
Activity::common(
Uuid::from_u128(source_event),
@@ -89,3 +93,283 @@ async fn purge_removes_only_that_entitys_activities(pool: PgPool) {
.unwrap();
assert_eq!(remaining, vec!["doc-kept".to_string()]);
}
+
+fn seed_at(
+ source_event: u128,
+ action: CommonAction,
+ entity_id: &str,
+ occurred_at: chrono::DateTime<Utc>,
+) -> Activity {
+ Activity::common(
+ Uuid::from_u128(source_event),
+ 0,
+ Actor::new_from_user(user("macro|[email protected]")),
+ None,
+ model_entity::EntityType::Document,
+ entity_id,
+ action,
+ occurred_at,
+ )
+}
+
+fn base_time() -> chrono::DateTime<Utc> {
+ chrono::DateTime::parse_from_rfc3339("2026-08-01T00:00:00Z")
+ .unwrap()
+ .with_timezone(&Utc)
+}
+
+#[sqlx::test(migrator = "MACRO_DB_MIGRATIONS")]
+async fn subject_feed_pages_by_keyset_newest_first(pool: PgPool) {
+ let repo = PgActivityRepo::new(pool.clone());
+ let t = base_time();
+ let seeded: Vec<Activity> = (0..5u32)
+ .map(|i| {
+ seed_at(
+ u128::from(10 + i),
+ CommonAction::Edited,
+ &format!("doc-{i}"),
+ t + chrono::Duration::seconds(i64::from(i)),
+ )
+ })
+ .collect();
+ repo.insert_activities(&seeded).await.unwrap();
+
+ let first = repo
+ .subject_feed("macro|[email protected]", None, nz(2))
+ .await
+ .unwrap();
+ assert_eq!(first.records.len(), 2);
+ assert_eq!(first.records[0].entity_id, "doc-4");
+ assert_eq!(first.records[1].entity_id, "doc-3");
+ assert_eq!(
+ first.records[0].action,
+ RecordedAction::Known(Action::Edited)
+ );
+
+ let second = repo
+ .subject_feed("macro|[email protected]", first.next, nz(2))
+ .await
+ .unwrap();
+ assert_eq!(second.records.len(), 2);
+ assert_eq!(second.records[0].entity_id, "doc-2");
+ assert_eq!(second.records[1].entity_id, "doc-1");
+
+ let last = repo
+ .subject_feed("macro|[email protected]", second.next, nz(2))
+ .await
+ .unwrap();
+ assert_eq!(last.records.len(), 1);
+ assert_eq!(last.records[0].entity_id, "doc-0");
+ assert_eq!(last.next, None, "exhausted feed carries no cursor");
+
+ let other = repo
+ .subject_feed("macro|[email protected]", None, nz(10))
+ .await
+ .unwrap();
+ assert!(other.records.is_empty());
+ assert_eq!(other.next, None);
+}
+
+#[sqlx::test(migrator = "MACRO_DB_MIGRATIONS")]
+async fn subject_feed_breaks_timestamp_ties_by_id(pool: PgPool) {
+ let repo = PgActivityRepo::new(pool.clone());
+ let t = base_time();
+ // Same occurred_at on every row: order must fall back to id DESC.
+ let seeded: Vec<Activity> = (0..3u32)
+ .map(|i| {
+ seed_at(
+ u128::from(20 + i),
+ CommonAction::Edited,
+ &format!("doc-{i}"),
+ t,
+ )
+ })
+ .collect();
+ repo.insert_activities(&seeded).await.unwrap();
+
+ let mut expected_ids: Vec<Uuid> = seeded.iter().map(|a| a.id).collect();
+ expected_ids.sort();
+ expected_ids.reverse();
+
+ let first = repo
+ .subject_feed("macro|[email protected]", None, nz(2))
+ .await
+ .unwrap();
+ let rest = repo
+ .subject_feed("macro|[email protected]", first.next, nz(2))
+ .await
+ .unwrap();
+
+ let fetched_ids: Vec<Uuid> = first
+ .records
+ .iter()
+ .chain(rest.records.iter())
+ .map(|r| r.id)
+ .collect();
+ assert_eq!(fetched_ids, expected_ids);
+}
+
+#[sqlx::test(migrator = "MACRO_DB_MIGRATIONS")]
+async fn entity_activity_batches_with_a_per_entity_limit(pool: PgPool) {
+ let repo = PgActivityRepo::new(pool.clone());
+ let t = base_time();
+ repo.insert_activities(&[
+ seed_at(30, CommonAction::Created, "doc-a", t),
+ seed_at(
+ 31,
+ CommonAction::Edited,
+ "doc-a",
+ t + chrono::Duration::seconds(1),
+ ),
+ seed_at(
+ 32,
+ CommonAction::Edited,
+ "doc-a",
+ t + chrono::Duration::seconds(2),
+ ),
+ seed_at(33, CommonAction::Created, "doc-b", t),
+ ])
+ .await
+ .unwrap();
+
+ let keys = vec![
+ (model_entity::EntityType::Document, "doc-a".to_string()),
+ (model_entity::EntityType::Document, "doc-b".to_string()),
+ (
+ model_entity::EntityType::Document,
+ "doc-untouched".to_string(),
+ ),
+ // Repeated on purpose: duplicates must not stack extra rows.
+ (model_entity::EntityType::Document, "doc-a".to_string()),
+ ];
+ let by_entity = repo.entity_activity(&keys, 2).await.unwrap();
+
+ let doc_a = &by_entity[&keys[0]];
+ assert_eq!(doc_a.len(), 2, "limit caps per entity, duplicates deduped");
+ assert_eq!(doc_a[0].action, RecordedAction::Known(Action::Edited));
+ assert!(doc_a[0].occurred_at > doc_a[1].occurred_at, "newest first");
+
+ assert_eq!(by_entity[&keys[1]].len(), 1);
+ assert!(
+ !by_entity.contains_key(&keys[2]),
+ "entities with no activity are absent"
+ );
+}
+
+#[sqlx::test(migrator = "MACRO_DB_MIGRATIONS")]
+async fn rows_written_by_a_newer_vocabulary_read_as_unknown(pool: PgPool) {
+ let repo = PgActivityRepo::new(pool.clone());
+ sqlx::query!(
+ r#"
+ INSERT INTO activity_events
+ (id, actor_id, subject_id, action, action_payload,
+ entity_type, entity_id, occurred_at)
+ VALUES ($1, 'macro|[email protected]', 'macro|[email protected]',
+ 'transmogrified', '{"into": "a newt"}',
+ 'document', 'doc-new', $2)
+ "#,
+ Uuid::from_u128(40),
+ base_time(),
+ )
+ .execute(&pool)
+ .await
+ .unwrap();
+
+ let feed = repo
+ .subject_feed("macro|[email protected]", None, nz(10))
+ .await
+ .unwrap();
+ assert_eq!(feed.records.len(), 1);
+ assert_eq!(
+ feed.records[0].action,
+ RecordedAction::Unknown {
+ tag: "transmogrified".to_string(),
+ payload: Some(serde_json::json!({ "into": "a newt" })),
+ }
+ );
+}
+
+#[sqlx::test(migrator = "MACRO_DB_MIGRATIONS")]
+async fn corrupt_rows_are_skipped_not_page_failures(pool: PgPool) {
+ let repo = PgActivityRepo::new(pool.clone());
+ // An actor without a recognizable principal prefix is unrepresentable in
+ // the model; the row is dropped from the page rather than failing it.
+ sqlx::query!(
+ r#"
+ INSERT INTO activity_events
+ (id, actor_id, subject_id, action, action_payload,
+ entity_type, entity_id, occurred_at)
+ VALUES ($1, 'garbled', 'macro|[email protected]', 'edited', NULL,
+ 'document', 'doc-corrupt', $2)
+ "#,
+ Uuid::from_u128(41),
+ base_time(),
+ )
+ .execute(&pool)
+ .await
+ .unwrap();
+ repo.insert_activities(&[seed_at(
+ 42,
+ CommonAction::Edited,
+ "doc-fine",
+ base_time() + chrono::Duration::seconds(1),
+ )])
+ .await
+ .unwrap();
+
+ let feed = repo
+ .subject_feed("macro|[email protected]", None, nz(10))
+ .await
+ .unwrap();
+ assert_eq!(feed.records.len(), 1);
+ assert_eq!(feed.records[0].entity_id, "doc-fine");
+}
+
+#[sqlx::test(migrator = "MACRO_DB_MIGRATIONS")]
+async fn a_corrupt_row_shrinks_the_page_but_never_ends_pagination(pool: PgPool) {
+ let repo = PgActivityRepo::new(pool.clone());
+ let t = base_time();
+ // Newest-first raw order: doc-new (2s), corrupt (1s), doc-old (0s).
+ // With limit 2 the corrupt row sits inside the first raw page.
+ repo.insert_activities(&[
+ seed_at(50, CommonAction::Edited, "doc-old", t),
+ seed_at(
+ 51,
+ CommonAction::Edited,
+ "doc-new",
+ t + chrono::Duration::seconds(2),
+ ),
+ ])
+ .await
+ .unwrap();
+ sqlx::query!(
+ r#"
+ INSERT INTO activity_events
+ (id, actor_id, subject_id, action, action_payload,
+ entity_type, entity_id, occurred_at)
+ VALUES ($1, 'garbled', 'macro|[email protected]', 'edited', NULL,
+ 'document', 'doc-corrupt', $2)
+ "#,
+ Uuid::from_u128(52),
+ t + chrono::Duration::seconds(1),
+ )
+ .execute(&pool)
+ .await
+ .unwrap();
+
+ let first = repo
+ .subject_feed("macro|[email protected]", None, nz(2))
+ .await
+ .unwrap();
+ assert_eq!(first.records.len(), 1, "the corrupt row shrinks the page");
+ assert_eq!(first.records[0].entity_id, "doc-new");
+ let next = first.next.expect("a skipped row must not end pagination");
+
+ let second = repo
+ .subject_feed("macro|[email protected]", Some(next), nz(2))
+ .await
+ .unwrap();
+ assert_eq!(second.records.len(), 1);
+ assert_eq!(second.records[0].entity_id, "doc-old");
+ assert_eq!(second.next, None);
+}
diff --git a/crates/complete_graph/Cargo.toml b/crates/complete_graph/Cargo.toml
index d6b979c06f..ddf28edd02 100644
--- a/crates/complete_graph/Cargo.toml
+++ b/crates/complete_graph/Cargo.toml
@@ -17,6 +17,7 @@ entity_access = { path = "../entity_access", default-features = false, features
"inbound",
] }
entity_mutation = { path = "../entity_mutation" }
+graphql_activity = { path = "../graphql_activity" }
graphql_channel = { path = "../graphql_channel" }
graphql_common = { path = "../graphql_common" }
graphql_email = { path = "../graphql_email" }
@@ -42,7 +43,9 @@ uuid = { workspace = true }
workspace-hack = { version = "0.1", path = "../workspace-hack" }
[dev-dependencies]
+activity = { path = "../activity", default-features = false }
apollo-compiler = { workspace = true }
+chrono = { workspace = true }
model_user = { path = "../model_user" }
models_pagination = { path = "../models_pagination" }
models_properties = { path = "../models_properties" }
diff --git a/crates/complete_graph/src/edges.rs b/crates/complete_graph/src/edges.rs
index 3332f951ef..c4daeac999 100644
--- a/crates/complete_graph/src/edges.rs
+++ b/crates/complete_graph/src/edges.rs
@@ -1,6 +1,10 @@
use std::marker::PhantomData;
use async_graphql::{Context, ID, Object};
+use graphql_activity::{
+ ActivityEdgeKey, GraphqlActivityEvent, SoupActivityEdgeReader, load_entity_activity,
+ parse_activity_edge_limit,
+};
use graphql_email::{
EmailContentKey, GraphqlSoupEmailMessage, SoupEmailEdgeReader,
email_message_selection_requires_full_payload, load_email_messages, load_email_thread_metadata,
@@ -18,23 +22,23 @@ use graphql_soup::SoupEntityEdges;
use uuid::Uuid;
/// The types of the edge readers for soup
-type EdgeReaders<NR, PR, ER, FR, AR> = PhantomData<fn() -> (NR, PR, ER, FR, AR)>;
+type EdgeReaders<NR, PR, ER, FR, AR, AcR> = PhantomData<fn() -> (NR, PR, ER, FR, AR, AcR)>;
-/// Notification, property, email-content, favorite, and permission fields
-/// attached to Soup entities.
+/// Notification, property, email-content, favorite, permission, and activity
+/// fields attached to Soup entities.
///
/// This concrete edge shape lives in the composition crate so `graphql_soup`
/// does not know which cross-domain fields are attached to its objects.
-pub struct SoupEdges<NR, PR, ER, FR, AR> {
+pub struct SoupEdges<NR, PR, ER, FR, AR, AcR> {
/// Entity whose cross-domain fields are being resolved.
entity: model_entity::Entity<'static>,
/// Entity whose access determines the viewer permission for this object.
permission_entity: model_entity::Entity<'static>,
/// Associates the edge with its configured reader types.
- _readers: EdgeReaders<NR, PR, ER, FR, AR>,
+ _readers: EdgeReaders<NR, PR, ER, FR, AR, AcR>,
}
-impl<NR, PR, ER, FR, AR> Clone for SoupEdges<NR, PR, ER, FR, AR> {
+impl<NR, PR, ER, FR, AR, AcR> Clone for SoupEdges<NR, PR, ER, FR, AR, AcR> {
fn clone(&self) -> Self {
Self {
entity: self.entity.clone(),
@@ -44,16 +48,18 @@ impl<NR, PR, ER, FR, AR> Clone for SoupEdges<NR, PR, ER, FR, AR> {
}
}
-impl<NR, PR, ER, FR, AR> SoupEntityEdges for SoupEdges<NR, PR, ER, FR, AR>
+impl<NR, PR, ER, FR, AR, AcR> SoupEntityEdges for SoupEdges<NR, PR, ER, FR, AR, AcR>
where
NR: SoupNotificationEdgeReader,
PR: EntityPropertyReader,
ER: SoupEmailEdgeReader,
FR: EntityFavoriteEdgeReader,
AR: EntityPermissionEdgeReader,
+ AcR: SoupActivityEdgeReader,
{
type Property = GraphqlProperty;
type Notification = GraphqlNotification;
+ type ActivityEvent = GraphqlActivityEvent;
type EmailThreadEdges = SoupEmailThreadEdges<ER>;
fn from_entity(entity: model_entity::Entity<'static>) -> Self {
@@ -105,17 +111,34 @@ where
) -> async_graphql::Result<Option<GraphqlEntityPermission>> {
load_entity_permission::<AR>(ctx, self.permission_entity.clone()).await
}
+
+ async fn resolve_activity(
+ &self,
+ ctx: &Context<'_>,
+ limit: Option<i32>,
+ ) -> async_graphql::Result<Vec<GraphqlActivityEvent>> {
+ let limit = parse_activity_edge_limit(limit)?;
+ load_entity_activity::<AcR>(
+ ctx,
+ ActivityEdgeKey {
+ entity: self.entity.clone(),
+ limit,
+ },
+ )
+ .await
+ }
}
/// Cross-domain fields attached to a property-bearing Soup entity.
#[Object(name = "SoupEdges")]
-impl<NR, PR, ER, FR, AR> SoupEdges<NR, PR, ER, FR, AR>
+impl<NR, PR, ER, FR, AR, AcR> SoupEdges<NR, PR, ER, FR, AR, AcR>
where
NR: SoupNotificationEdgeReader,
PR: EntityPropertyReader,
ER: SoupEmailEdgeReader,
FR: EntityFavoriteEdgeReader,
AR: EntityPermissionEdgeReader,
+ AcR: SoupActivityEdgeReader,
{
/// Properties assigned to this entity that the authenticated user may view.
async fn properties(&self, ctx: &Context<'_>) -> async_graphql::Result<Vec<GraphqlProperty>> {
@@ -142,6 +165,17 @@ where
) -> async_graphql::Result<Option<GraphqlEntityPermission>> {
self.resolve_viewer_permission(ctx).await
}
+
+ /// The newest activity on this entity, newest first. Loaded lazily and
+ /// batched across entities; an activity outage degrades to an empty
+ /// timeline. Deeper history belongs to the viewer's activity feed.
+ async fn activity(
+ &self,
+ ctx: &Context<'_>,
+ limit: Option<i32>,
+ ) -> async_graphql::Result<Vec<GraphqlActivityEvent>> {
+ self.resolve_activity(ctx, limit).await
+ }
}
/// default limit of messages if none is provided
@@ -157,24 +191,11 @@ fn parse_email_message_pagination(
offset: Option<i32>,
limit: Option<i32>,
) -> async_graphql::Result<(u32, u32)> {
- let offset = offset.unwrap_or(0);
- let limit = limit.unwrap_or(DEFAULT_EMAIL_MESSAGE_LIMIT);
-
- let offset = u32::try_from(offset)
+ let offset = u32::try_from(offset.unwrap_or(0))
.map_err(|_| async_graphql::Error::new("offset must be non-negative"))?;
- if limit <= 0 {
- return Err(async_graphql::Error::new("limit must be positive"));
- }
- if limit > MAX_EMAIL_MESSAGE_LIMIT {
- return Err(async_graphql::Error::new(format!(
- "limit must not exceed {MAX_EMAIL_MESSAGE_LIMIT}"
- )));
- }
-
- Ok((
- offset,
- u32::try_from(limit).expect("positive GraphQL Int fits in u32"),
- ))
+ let limit =
+ graphql_common::parse_limit(limit, DEFAULT_EMAIL_MESSAGE_LIMIT, MAX_EMAIL_MESSAGE_LIMIT)?;
+ Ok((offset, limit))
}
/// Email-content fields attached only to Soup email-thread entities.
diff --git a/crates/complete_graph/src/lib.rs b/crates/complete_graph/src/lib.rs
index 6550ba7f96..3ae9cd2684 100644
--- a/crates/complete_graph/src/lib.rs
+++ b/crates/complete_graph/src/lib.rs
@@ -13,6 +13,11 @@ mod schema;
mod sdl_test;
pub use edges::{SoupEdges, SoupEmailThreadEdges};
+pub use graphql_activity::{
+ ActivityEdgeKey, ActivityEdgeLoad, ActivityFeedInput, ActivityFeedReader, ActivityPortReader,
+ ActivityReader, EntityActivityLoader, GraphqlActivityAction, GraphqlActivityEvent,
+ GraphqlActivityPage, NoOpActivityReader, SoupActivityEdgeReader, entity_activity_loader,
+};
pub use graphql_channel::{
ChannelActivityAuthorizer, ChannelActivityMutationService, ChannelMutationRoot,
GraphqlChannelActivity, GraphqlChannelActivityType, NoOpChannelActivityMutationService,
diff --git a/crates/complete_graph/src/schema.rs b/crates/complete_graph/src/schema.rs
index 8cb7428e4f..3a9a607d60 100644
--- a/crates/complete_graph/src/schema.rs
+++ b/crates/complete_graph/src/schema.rs
@@ -11,6 +11,10 @@ use email::{
};
use entity_access::domain::ports::{EntityAccessService, NoOpEntityAccessService};
use entity_mutation::{EntityMutationService, UnavailableEntityMutationService};
+use graphql_activity::{
+ ActivityFeedInput, ActivityReader, GraphqlActivityPage, NoOpActivityReader,
+ resolve_activity_feed,
+};
use graphql_channel::{
ChannelActivityAuthorizer, ChannelActivityMutationService, ChannelMutationRoot,
NoOpChannelActivityMutationService,
@@ -97,8 +101,8 @@ impl<
/// Root subscription object combining realtime Soup and notification adapters.
#[derive(MergedSubscription)]
-pub struct CompleteSubscriptionRoot<R, NS, Auth, St, NR, PR, ER, FR, AR>(
- SoupSubscriptionRoot<R, Auth, St, NR, PR, ER, FR, AR>,
+pub struct CompleteSubscriptionRoot<R, NS, Auth, St, NR, PR, ER, FR, AR, AcR>(
+ SoupSubscriptionRoot<R, Auth, St, NR, PR, ER, FR, AR, AcR>,
NotificationSubscriptionRoot<NS>,
)
where
@@ -111,7 +115,8 @@ where
PR: EntityPropertyReader,
ER: SoupEmailContentEdgeReader,
FR: EntityFavoriteEdgeReader,
- AR: EntityPermissionEdgeReader;
+ AR: EntityPermissionEdgeReader,
+ AcR: ActivityReader;
/// GraphQL Soup schema type.
///
@@ -121,17 +126,17 @@ where
/// embedding axum router state, `W` the property mutation writer, `M` the entity
/// mutation service, `C` the channel activity mutation service, `N` the notification
/// mutation service, `NR` the notification edge reader, `PR` the property edge
-/// reader, `ER` the email-content edge reader, `FR` the favorite edge reader, and
-/// `AR` the access edge reader.
-pub type SoupSchema<S, R, NS, E, EAS, Auth, St, W, M, C, N, NR, PR, ER, FR, AR> = Schema<
- SoupQueryRoot<S, E, EAS, Auth, St, NR, PR, ER, FR, AR>,
- CompleteMutationRoot<W, M, SoupEdges<NR, PR, ER, FR, AR>, C, N, EAS, E>,
- CompleteSubscriptionRoot<R, NS, Auth, St, NR, PR, ER, FR, AR>,
+/// reader, `ER` the email-content edge reader, `FR` the favorite edge reader,
+/// `AR` the access edge reader, and `AcR` the activity reader.
+pub type SoupSchema<S, R, NS, E, EAS, Auth, St, W, M, C, N, NR, PR, ER, FR, AR, AcR> = Schema<
+ SoupQueryRoot<S, E, EAS, Auth, St, NR, PR, ER, FR, AR, AcR>,
+ CompleteMutationRoot<W, M, SoupEdges<NR, PR, ER, FR, AR, AcR>, C, N, EAS, E>,
+ CompleteSubscriptionRoot<R, NS, Auth, St, NR, PR, ER, FR, AR, AcR>,
>;
/// GraphQL Soup schema type backed by shared query and realtime services.
-pub type SharedSoupSchema<S, R, NS, E, EAS, Auth, St, W, M, C, N, NR, PR, ER, FR, AR> =
- SoupSchema<Arc<S>, Arc<R>, Arc<NS>, E, EAS, Auth, St, W, M, C, N, NR, PR, ER, FR, AR>;
+pub type SharedSoupSchema<S, R, NS, E, EAS, Auth, St, W, M, C, N, NR, PR, ER, FR, AR, AcR> =
+ SoupSchema<Arc<S>, Arc<R>, Arc<NS>, E, EAS, Auth, St, W, M, C, N, NR, PR, ER, FR, AR, AcR>;
/// GraphQL Soup schema type backed by the no-op services, used only for
/// SDL export or introspection.
@@ -152,6 +157,7 @@ pub type SchemaOnlySoupSchema = SoupSchema<
NoOpSoupEmailContentEdgeReader,
NoOpEntityFavoriteEdgeReader,
NoOpEntityPermissionEdgeReader,
+ NoOpActivityReader,
>;
/// Authorization service used only to construct the GraphQL schema for SDL export.
@@ -189,19 +195,19 @@ impl FromRef<SchemaOnlyState> for MacroAuthorizationState<SchemaOnlyAuthorizatio
/// Zero-sized marker tying the query objects to the adapter, authorization,
/// state, and reader generics without requiring values of those types.
-type ServicesMarker<E, EAS, Auth, St, NR, PR, ER, FR, AR> =
- PhantomData<fn() -> (E, EAS, Auth, St, NR, PR, ER, FR, AR)>;
+type ServicesMarker<E, EAS, Auth, St, NR, PR, ER, FR, AR, AcR> =
+ PhantomData<fn() -> (E, EAS, Auth, St, NR, PR, ER, FR, AR, AcR)>;
/// Root GraphQL query object for Soup.
-pub struct SoupQueryRoot<S, E, EAS, Auth, St, NR, PR, ER, FR, AR> {
+pub struct SoupQueryRoot<S, E, EAS, Auth, St, NR, PR, ER, FR, AR, AcR> {
/// Soup domain service used by user-scoped query resolvers.
service: S,
/// Associates the root with its adapter and reader types.
- _marker: ServicesMarker<E, EAS, Auth, St, NR, PR, ER, FR, AR>,
+ _marker: ServicesMarker<E, EAS, Auth, St, NR, PR, ER, FR, AR, AcR>,
}
-impl<S, E, EAS, Auth, St, NR, PR, ER, FR, AR>
- SoupQueryRoot<S, E, EAS, Auth, St, NR, PR, ER, FR, AR>
+impl<S, E, EAS, Auth, St, NR, PR, ER, FR, AR, AcR>
+ SoupQueryRoot<S, E, EAS, Auth, St, NR, PR, ER, FR, AR, AcR>
{
/// Create a root GraphQL query object.
pub fn new(service: S) -> Self {
@@ -213,15 +219,17 @@ impl<S, E, EAS, Auth, St, NR, PR, ER, FR, AR>
}
/// Root GraphQL subscription object for realtime Soup updates.
-pub struct SoupSubscriptionRoot<R, Auth, St, NR, PR, ER, FR, AR> {
+pub struct SoupSubscriptionRoot<R, Auth, St, NR, PR, ER, FR, AR, AcR> {
/// Realtime Soup service used by user-scoped subscriptions.
service: R,
/// Associates the root with authorization, state, and edge reader types.
#[allow(clippy::type_complexity)]
- _marker: PhantomData<fn() -> (Auth, St, NR, PR, ER, FR, AR)>,
+ _marker: PhantomData<fn() -> (Auth, St, NR, PR, ER, FR, AR, AcR)>,
}
-impl<R, Auth, St, NR, PR, ER, FR, AR> SoupSubscriptionRoot<R, Auth, St, NR, PR, ER, FR, AR> {
+impl<R, Auth, St, NR, PR, ER, FR, AR, AcR>
+ SoupSubscriptionRoot<R, Auth, St, NR, PR, ER, FR, AR, AcR>
+{
/// Creates a root GraphQL subscription object.
pub fn new(service: R) -> Self {
Self {
@@ -234,11 +242,11 @@ impl<R, Auth, St, NR, PR, ER, FR, AR> SoupSubscriptionRoot<R, Auth, St, NR, PR,
/// The authenticated user (viewer). All user-scoped data hangs off this
/// object so clients (and their normalized caches) observe data ownership
/// structurally rather than implicitly through the session.
-pub struct GraphqlUser<S, E, EAS, Auth, St, NR, PR, ER, FR, AR> {
+pub struct GraphqlUser<S, E, EAS, Auth, St, NR, PR, ER, FR, AR, AcR> {
/// Soup domain service used by this user's resolvers.
service: S,
/// Associates the user object with its adapter and reader types.
- _marker: ServicesMarker<E, EAS, Auth, St, NR, PR, ER, FR, AR>,
+ _marker: ServicesMarker<E, EAS, Auth, St, NR, PR, ER, FR, AR, AcR>,
/// The [MacroUserIdStr] of the resolving user
user_id: MacroUserIdStr<'static>,
}
@@ -261,7 +269,7 @@ pub fn build_schema() -> SchemaOnlySoupSchema {
/// Build a GraphQL schema backed by a query service and no-op realtime service.
#[allow(clippy::type_complexity)]
-pub fn build_schema_with_service<S, E, EAS, Auth, St, W, M, C, N, NR, PR, ER, FR, AR>(
+pub fn build_schema_with_service<S, E, EAS, Auth, St, W, M, C, N, NR, PR, ER, FR, AR, AcR>(
service: S,
) -> SoupSchema<
S,
@@ -280,6 +288,7 @@ pub fn build_schema_with_service<S, E, EAS, Auth, St, W, M, C, N, NR, PR, ER, FR
ER,
FR,
AR,
+ AcR,
>
where
S: SoupService + Clone,
@@ -299,6 +308,7 @@ where
ER: SoupEmailContentEdgeReader,
FR: EntityFavoriteEdgeReader,
AR: EntityPermissionEdgeReader,
+ AcR: ActivityReader,
{
build_schema_with_services(
service,
@@ -309,11 +319,11 @@ where
/// Build a GraphQL schema backed by query and realtime Soup services.
#[allow(clippy::type_complexity)]
-pub fn build_schema_with_services<S, R, NS, E, EAS, Auth, St, W, M, C, N, NR, PR, ER, FR, AR>(
+pub fn build_schema_with_services<S, R, NS, E, EAS, Auth, St, W, M, C, N, NR, PR, ER, FR, AR, AcR>(
service: S,
realtime_service: R,
notification_subscription_service: NS,
-) -> SoupSchema<S, R, NS, E, EAS, Auth, St, W, M, C, N, NR, PR, ER, FR, AR>
+) -> SoupSchema<S, R, NS, E, EAS, Auth, St, W, M, C, N, NR, PR, ER, FR, AR, AcR>
where
S: SoupService + Clone,
R: SoupRealtimeSubscriptionService + Clone,
@@ -335,10 +345,11 @@ where
ER: SoupEmailContentEdgeReader,
FR: EntityFavoriteEdgeReader,
AR: EntityPermissionEdgeReader,
+ AcR: ActivityReader,
{
Schema::build(
SoupQueryRoot::new(service),
- CompleteMutationRoot::<W, M, SoupEdges<NR, PR, ER, FR, AR>, C, N, EAS, E>::new(),
+ CompleteMutationRoot::<W, M, SoupEdges<NR, PR, ER, FR, AR, AcR>, C, N, EAS, E>::new(),
CompleteSubscriptionRoot(
SoupSubscriptionRoot::new(realtime_service),
NotificationSubscriptionRoot::new(notification_subscription_service),
@@ -349,7 +360,7 @@ where
/// Build a GraphQL schema backed by an `Arc`-shared query service.
#[allow(clippy::type_complexity)]
-pub fn build_schema_from_arc<S, E, EAS, Auth, St, W, M, C, N, NR, PR, ER, FR, AR>(
+pub fn build_schema_from_arc<S, E, EAS, Auth, St, W, M, C, N, NR, PR, ER, FR, AR, AcR>(
service: Arc<S>,
) -> SoupSchema<
Arc<S>,
@@ -368,6 +379,7 @@ pub fn build_schema_from_arc<S, E, EAS, Auth, St, W, M, C, N, NR, PR, ER, FR, AR
ER,
FR,
AR,
+ AcR,
>
where
S: SoupService,
@@ -387,17 +399,18 @@ where
ER: SoupEmailContentEdgeReader,
FR: EntityFavoriteEdgeReader,
AR: EntityPermissionEdgeReader,
+ AcR: ActivityReader,
{
build_schema_with_service(service)
}
/// Build a GraphQL schema backed by `Arc`-shared query and realtime services.
#[allow(clippy::type_complexity)]
-pub fn build_schema_from_arcs<S, R, NS, E, EAS, Auth, St, W, M, C, N, NR, PR, ER, FR, AR>(
+pub fn build_schema_from_arcs<S, R, NS, E, EAS, Auth, St, W, M, C, N, NR, PR, ER, FR, AR, AcR>(
service: Arc<S>,
realtime_service: Arc<R>,
notification_subscription_service: Arc<NS>,
-) -> SharedSoupSchema<S, R, NS, E, EAS, Auth, St, W, M, C, N, NR, PR, ER, FR, AR>
+) -> SharedSoupSchema<S, R, NS, E, EAS, Auth, St, W, M, C, N, NR, PR, ER, FR, AR, AcR>
where
S: SoupService,
R: SoupRealtimeSubscriptionService,
@@ -418,13 +431,15 @@ where
ER: SoupEmailContentEdgeReader,
FR: EntityFavoriteEdgeReader,
AR: EntityPermissionEdgeReader,
+ AcR: ActivityReader,
{
build_schema_with_services(service, realtime_service, notification_subscription_service)
}
/// Root entry point for the complete GraphQL API.
#[Object]
-impl<S, E, EAS, Auth, St, NR, PR, ER, FR, AR> SoupQueryRoot<S, E, EAS, Auth, St, NR, PR, ER, FR, AR>
+impl<S, E, EAS, Auth, St, NR, PR, ER, FR, AR, AcR>
+ SoupQueryRoot<S, E, EAS, Auth, St, NR, PR, ER, FR, AR, AcR>
where
S: SoupService + Clone,
E: EmailService + EmailUserService,
@@ -439,12 +454,13 @@ where
ER: SoupEmailContentEdgeReader,
FR: EntityFavoriteEdgeReader,
AR: EntityPermissionEdgeReader,
+ AcR: ActivityReader,
{
/// The authenticated user.
async fn user(
&self,
ctx: &Context<'_>,
- ) -> async_graphql::Result<GraphqlUser<S, E, EAS, Auth, St, NR, PR, ER, FR, AR>> {
+ ) -> async_graphql::Result<GraphqlUser<S, E, EAS, Auth, St, NR, PR, ER, FR, AR, AcR>> {
let user_id = require_authorized_user::<Auth, St>(ctx).await?;
Ok(GraphqlUser {
@@ -457,7 +473,8 @@ where
/// Root entry point for realtime Soup subscriptions.
#[Subscription]
-impl<R, Auth, St, NR, PR, ER, FR, AR> SoupSubscriptionRoot<R, Auth, St, NR, PR, ER, FR, AR>
+impl<R, Auth, St, NR, PR, ER, FR, AR, AcR>
+ SoupSubscriptionRoot<R, Auth, St, NR, PR, ER, FR, AR, AcR>
where
R: SoupRealtimeSubscriptionService,
Auth: MacroAuthorizationService,
@@ -468,6 +485,7 @@ where
ER: SoupEmailContentEdgeReader,
FR: EntityFavoriteEdgeReader,
AR: EntityPermissionEdgeReader,
+ AcR: ActivityReader,
{
/// Subscribe to realtime Soup updates for the authenticated user.
async fn soup_updates(
@@ -475,16 +493,18 @@ where
ctx: &Context<'_>,
) -> async_graphql::Result<
impl async_graphql::futures_util::Stream<
- Item = async_graphql::Result<Vec<SoupPatch<SoupEdges<NR, PR, ER, FR, AR>>>>,
+ Item = async_graphql::Result<Vec<SoupPatch<SoupEdges<NR, PR, ER, FR, AR, AcR>>>>,
>,
> {
- resolve_soup_updates::<R, Auth, St, SoupEdges<NR, PR, ER, FR, AR>>(&self.service, ctx).await
+ resolve_soup_updates::<R, Auth, St, SoupEdges<NR, PR, ER, FR, AR, AcR>>(&self.service, ctx)
+ .await
}
}
/// The authenticated user and their user-scoped data.
#[Object(name = "GraphqlUser")]
-impl<S, E, EAS, Auth, St, NR, PR, ER, FR, AR> GraphqlUser<S, E, EAS, Auth, St, NR, PR, ER, FR, AR>
+impl<S, E, EAS, Auth, St, NR, PR, ER, FR, AR, AcR>
+ GraphqlUser<S, E, EAS, Auth, St, NR, PR, ER, FR, AR, AcR>
where
S: SoupService,
E: EmailService + EmailUserService,
@@ -499,12 +519,23 @@ where
ER: SoupEmailContentEdgeReader,
FR: EntityFavoriteEdgeReader,
AR: EntityPermissionEdgeReader,
+ AcR: ActivityReader,
{
/// Stable id of the authenticated user.
async fn id(&self) -> async_graphql::ID {
async_graphql::ID(self.user_id.to_string())
}
+ /// A page of the authenticated user's own activity, newest first.
+ /// Delegated actions performed on the user's behalf are included.
+ async fn activity(
+ &self,
+ ctx: &Context<'_>,
+ input: ActivityFeedInput,
+ ) -> async_graphql::Result<GraphqlActivityPage> {
+ resolve_activity_feed::<AcR>(ctx, &self.user_id, input).await
+ }
+
/// Authenticated user email catalog fields supplied by `graphql_email`.
#[graphql(flatten)]
async fn email(&self, ctx: &Context<'_>) -> async_graphql::Result<GraphqlEmailQuery<E>> {
@@ -518,9 +549,10 @@ where
&self,
ctx: &Context<'_>,
input: EmailThreadInput,
- ) -> async_graphql::Result<Option<GraphqlSoupEmailThread<SoupEdges<NR, PR, ER, FR, AR>>>> {
+ ) -> async_graphql::Result<Option<GraphqlSoupEmailThread<SoupEdges<NR, PR, ER, FR, AR, AcR>>>>
+ {
let thread_id = parse_id(input.thread_id, "threadId")?;
- resolve_soup_email_thread::<SoupEdges<NR, PR, ER, FR, AR>>(
+ resolve_soup_email_thread::<SoupEdges<NR, PR, ER, FR, AR, AcR>>(
ctx,
self.user_id.clone(),
thread_id,
@@ -533,8 +565,8 @@ where
&self,
ctx: &Context<'_>,
input: GroupedSoupInput,
- ) -> async_graphql::Result<GroupedSoup<SoupEdges<NR, PR, ER, FR, AR>>> {
- resolve_grouped_soup::<S, Auth, St, SoupEdges<NR, PR, ER, FR, AR>>(
+ ) -> async_graphql::Result<GroupedSoup<SoupEdges<NR, PR, ER, FR, AR, AcR>>> {
+ resolve_grouped_soup::<S, Auth, St, SoupEdges<NR, PR, ER, FR, AR, AcR>>(
&self.service,
ctx,
input,
@@ -547,8 +579,8 @@ where
&self,
ctx: &Context<'_>,
input: SoupInput,
- ) -> async_graphql::Result<SoupPage<SoupEdges<NR, PR, ER, FR, AR>>> {
- resolve_soup::<S, E, EAS, Auth, St, SoupEdges<NR, PR, ER, FR, AR>>(
+ ) -> async_graphql::Result<SoupPage<SoupEdges<NR, PR, ER, FR, AR, AcR>>> {
+ resolve_soup::<S, E, EAS, Auth, St, SoupEdges<NR, PR, ER, FR, AR, AcR>>(
&self.service,
ctx,
input,
diff --git a/crates/complete_graph/src/schema/test.rs b/crates/complete_graph/src/schema/test.rs
index 92c1467f2b..a78c9cfb49 100644
--- a/crates/complete_graph/src/schema/test.rs
+++ b/crates/complete_graph/src/schema/test.rs
@@ -485,6 +485,83 @@ impl graphql_email::SoupEmailContentEdgeReader for RecordingEmailContentReader {
}
}
+#[derive(Clone, Default)]
+struct RecordingActivityReader {
+ edge_calls: Arc<Mutex<Vec<Vec<graphql_activity::ActivityEdgeKey>>>>,
+ feed_calls: Arc<Mutex<Vec<(String, Option<(chrono::DateTime<chrono::Utc>, Uuid)>, u32)>>>,
+ records: Arc<Mutex<Vec<activity::ActivityRecord>>>,
+}
+
+impl RecordingActivityReader {
+ fn set_records(&self, records: Vec<activity::ActivityRecord>) {
+ *self.records.lock().expect("activity records lock") = records;
+ }
+}
+
+impl graphql_activity::SoupActivityEdgeReader for RecordingActivityReader {
+ async fn entity_activity(
+ &self,
+ keys: Vec<graphql_activity::ActivityEdgeKey>,
+ ) -> HashMap<graphql_activity::ActivityEdgeKey, graphql_activity::ActivityEdgeLoad> {
+ self.edge_calls
+ .lock()
+ .expect("activity edge calls lock")
+ .push(keys.clone());
+ let records = self.records.lock().expect("activity records lock").clone();
+ keys.into_iter()
+ .map(|key| {
+ let matching = records
+ .iter()
+ .filter(|record| {
+ record.entity_type == key.entity.entity_type
+ && record.entity_id == key.entity.entity_id.as_ref()
+ })
+ .take(key.limit as usize)
+ .cloned()
+ .collect();
+ (key, graphql_activity::ActivityEdgeLoad::Found(matching))
+ })
+ .collect()
+ }
+}
+
+impl graphql_activity::ActivityFeedReader for RecordingActivityReader {
+ async fn subject_feed(
+ &self,
+ subject_id: &str,
+ cursor: Option<(chrono::DateTime<chrono::Utc>, Uuid)>,
+ limit: std::num::NonZeroU32,
+ ) -> Result<activity::ActivityFeedPage, graphql_activity::ActivityReadFailed> {
+ let limit = limit.get();
+ self.feed_calls
+ .lock()
+ .expect("activity feed calls lock")
+ .push((subject_id.to_owned(), cursor, limit));
+ // Emulate the repo: subject-scoped, newest-first keyset order,
+ // strictly after the cursor position, at most `limit` rows, with
+ // `next` set whenever more rows remain past the page.
+ let records = self.records.lock().expect("activity records lock").clone();
+ let mut page: Vec<activity::ActivityRecord> = records
+ .into_iter()
+ .filter(|record| record.subject_id == subject_id)
+ .filter(|record| {
+ cursor.is_none_or(|(occurred_at, id)| {
+ (record.occurred_at, record.id) < (occurred_at, id)
+ })
+ })
+ .collect();
+ let has_more = page.len() > limit as usize;
+ page.truncate(limit as usize);
+ let next = has_more
+ .then(|| page.last().map(|record| (record.occurred_at, record.id)))
+ .flatten();
+ Ok(activity::ActivityFeedPage {
+ records: page,
+ next,
+ })
+ }
+}
+
fn parsed_message(thread_id: Uuid) -> ParsedMessage {
ParsedMessage {
db_id: Uuid::from_u128(100),
@@ -770,11 +847,13 @@ struct TestHarness {
RecordingEmailContentReader,
graphql_favorite::NoOpEntityFavoriteEdgeReader,
graphql_permission::NoOpEntityPermissionEdgeReader,
+ RecordingActivityReader,
>,
state: TestState,
soup_service: CountingSoupService,
email_service: CountingEmailService,
email_content_reader: RecordingEmailContentReader,
+ activity_reader: RecordingActivityReader,
authorization_calls: Arc<AtomicUsize>,
inbox_calls: Arc<AtomicUsize>,
user_label_calls: Arc<AtomicUsize>,
@@ -794,6 +873,7 @@ fn harness() -> TestHarness {
let authorization = FakeAuthorizationService::default();
let soup = CountingSoupService::default();
let email_content_reader = RecordingEmailContentReader::default();
+ let activity_reader = RecordingActivityReader::default();
let authorization_calls = Arc::clone(&authorization.authorization_calls);
let inbox_calls = Arc::clone(&email.inbox_calls);
let user_label_calls = Arc::clone(&email.user_label_calls);
@@ -815,6 +895,7 @@ fn harness() -> TestHarness {
soup_service: soup,
email_service: email,
email_content_reader,
+ activity_reader,
authorization_calls,
inbox_calls,
user_label_calls,
@@ -888,6 +969,10 @@ impl TestHarness {
user_id,
self.email_content_reader.clone(),
))
+ .data(self.activity_reader.clone())
+ .data(graphql_activity::entity_activity_loader(
+ self.activity_reader.clone(),
+ ))
}
}
@@ -924,6 +1009,7 @@ async fn soup_updates_subscribes_as_the_authenticated_user() {
NoOpSoupEmailContentEdgeReader,
NoOpEntityFavoriteEdgeReader,
NoOpEntityPermissionEdgeReader,
+ NoOpActivityReader,
> = build_schema_with_services(
soup_service,
realtime,
@@ -1360,6 +1446,189 @@ async fn email_thread_metadata_is_lazy_and_batches_across_threads() {
assert!(items[1]["latestInboundMessageTs"].is_null());
}
+fn activity_record(
+ id: u128,
+ entity_type: ModelEntityType,
+ entity_id: &str,
+ action: activity::RecordedAction,
+ occurred_at_secs: i64,
+) -> activity::ActivityRecord {
+ activity::ActivityRecord {
+ id: Uuid::from_u128(id),
+ actor: activity::Actor::new_from_user(
+ MacroUserIdStr::parse_from_str(VALID_USER_ID).unwrap(),
+ ),
+ subject_id: VALID_USER_ID.to_owned(),
+ entity_type,
+ entity_id: entity_id.to_owned(),
+ action,
+ occurred_at: chrono::DateTime::from_timestamp(occurred_at_secs, 0)
+ .expect("valid timestamp"),
+ }
+}
+
+#[tokio::test]
+async fn entity_activity_is_lazy_and_batches_across_entities() {
+ let harness = harness();
+ let first_id = Uuid::from_u128(61);
+ let second_id = Uuid::from_u128(62);
+ harness.soup_service.set_raw_response(vec![
+ soup_email_thread(first_id),
+ soup_email_thread(second_id),
+ ]);
+ harness.activity_reader.set_records(vec![activity_record(
+ 1,
+ ModelEntityType::EmailThread,
+ &first_id.to_string(),
+ activity::RecordedAction::Known(activity::Action::Edited),
+ 300,
+ )]);
+
+ let without_activity = harness
+ .execute(
+ r#"{ user { soup(input: {initial: {}}) { items { ... on GraphqlSoupEmailThread { id inboxVisible } } } } }"#,
+ )
+ .await;
+ assert!(
+ without_activity.errors.is_empty(),
+ "{:?}",
+ without_activity.errors
+ );
+ assert!(
+ harness
+ .activity_reader
+ .edge_calls
+ .lock()
+ .expect("activity edge calls lock")
+ .is_empty(),
+ "unselected activity edge must not touch the reader"
+ );
+
+ let with_activity = harness
+ .execute(
+ r#"{ user { soup(input: {initial: {}}) { items { ... on GraphqlSoupEmailThread { id activity { occurredAt action { __typename } } } } } } }"#,
+ )
+ .await;
+ assert!(
+ with_activity.errors.is_empty(),
+ "{:?}",
+ with_activity.errors
+ );
+
+ let calls = harness
+ .activity_reader
+ .edge_calls
+ .lock()
+ .expect("activity edge calls lock")
+ .clone();
+ assert_eq!(calls.len(), 1, "both entities load in one batched call");
+ let mut requested: Vec<(String, u32)> = calls[0]
+ .iter()
+ .map(|key| (key.entity.entity_id.to_string(), key.limit))
+ .collect();
+ requested.sort();
+ assert_eq!(
+ requested,
+ vec![(first_id.to_string(), 10), (second_id.to_string(), 10)]
+ );
+
+ let items = &with_activity.data.into_json().unwrap()["user"]["soup"]["items"];
+ assert_eq!(
+ items[0]["activity"][0]["action"]["__typename"],
+ "GraphqlActivityEdited"
+ );
+ assert!(items[0]["activity"][0]["occurredAt"].as_str().is_some());
+ assert_eq!(
+ items[1]["activity"].as_array().map(Vec::len),
+ Some(0),
+ "entity with no activity resolves an empty timeline"
+ );
+}
+
+#[tokio::test]
+async fn activity_feed_pages_by_cursor_and_carries_unknown_actions() {
+ let harness = harness();
+ let doc = Uuid::from_u128(71).to_string();
+ harness.activity_reader.set_records(vec![
+ activity_record(
+ 3,
+ ModelEntityType::Document,
+ &doc,
+ activity::RecordedAction::Unknown {
+ tag: "transmogrified".to_owned(),
+ payload: None,
+ },
+ 300,
+ ),
+ activity_record(
+ 2,
+ ModelEntityType::Document,
+ &doc,
+ activity::RecordedAction::Known(activity::Action::Edited),
+ 200,
+ ),
+ activity_record(
+ 1,
+ ModelEntityType::Document,
+ &doc,
+ activity::RecordedAction::Known(activity::Action::Created),
+ 100,
+ ),
+ ]);
+
+ let first_page = harness
+ .execute(
+ r#"{ user { activity(input: {limit: 2}) { items { entityId entityType action { __typename ... on GraphqlActivityUnknownAction { tag } } } nextCursor } } }"#,
+ )
+ .await;
+ assert!(first_page.errors.is_empty(), "{:?}", first_page.errors);
+ let data = first_page.data.into_json().unwrap();
+ let page = &data["user"]["activity"];
+ assert_eq!(page["items"].as_array().map(Vec::len), Some(2));
+ assert_eq!(
+ page["items"][0]["action"]["__typename"],
+ "GraphqlActivityUnknownAction"
+ );
+ assert_eq!(page["items"][0]["action"]["tag"], "transmogrified");
+ assert_eq!(page["items"][0]["entityId"], doc);
+ assert_eq!(page["items"][0]["entityType"], "DOCUMENT");
+ assert_eq!(
+ page["items"][1]["action"]["__typename"],
+ "GraphqlActivityEdited"
+ );
+ let cursor = page["nextCursor"].as_str().expect("more rows exist");
+
+ let second_page = harness
+ .execute(&format!(
+ r#"{{ user {{ activity(input: {{limit: 2, cursor: "{cursor}"}}) {{ items {{ action {{ __typename }} }} nextCursor }} }} }}"#
+ ))
+ .await;
+ assert!(second_page.errors.is_empty(), "{:?}", second_page.errors);
+ let data = second_page.data.into_json().unwrap();
+ let page = &data["user"]["activity"];
+ assert_eq!(page["items"].as_array().map(Vec::len), Some(1));
+ assert_eq!(
+ page["items"][0]["action"]["__typename"],
+ "GraphqlActivityCreated"
+ );
+ assert!(page["nextCursor"].is_null());
+
+ let feed_calls = harness
+ .activity_reader
+ .feed_calls
+ .lock()
+ .expect("activity feed calls lock")
+ .clone();
+ // The resolver binds the viewer's principal string as the subject and
+ // passes the client limit through; the has-more probe lives in storage.
+ assert_eq!(feed_calls.len(), 2);
+ assert_eq!(feed_calls[0].0, VALID_USER_ID);
+ assert_eq!(feed_calls[0].2, 2);
+ let (cursor_at, cursor_id) = feed_calls[1].1.expect("second page carries the cursor");
+ assert_eq!(cursor_at, chrono::DateTime::from_timestamp(200, 0).unwrap());
+ assert_eq!(cursor_id, Uuid::from_u128(2));
+}
+
#[tokio::test]
async fn email_message_full_fields_request_the_full_edge_payload() {
let harness = harness();
diff --git a/crates/complete_graph/src/sdl_test.rs b/crates/complete_graph/src/sdl_test.rs
index aac804db0b..8b66e09a5d 100644
--- a/crates/complete_graph/src/sdl_test.rs
+++ b/crates/complete_graph/src/sdl_test.rs
@@ -149,6 +149,7 @@ fn soup_interface_exposes_the_complete_shared_entity_contract() {
"isFavorited",
"viewerPermission",
"frecencyScore",
+ "activity",
] {
assert!(
entity.fields.contains_key(shared_field),
@@ -176,6 +177,7 @@ fn soup_interface_exposes_the_complete_shared_entity_contract() {
"viewerPermission",
"properties",
"notifications",
+ "activity",
] {
assert!(
document.fields.contains_key(shared_field),
diff --git a/crates/graphql_activity/Cargo.toml b/crates/graphql_activity/Cargo.toml
new file mode 100644
index 0000000000..35e4cb2eac
--- /dev/null
+++ b/crates/graphql_activity/Cargo.toml
@@ -0,0 +1,21 @@
+[package]
+edition = "2024"
+name = "graphql_activity"
+publish = false
+version = "0.1.0"
+
+[dependencies]
+activity = { path = "../activity", default-features = false }
+async-graphql = { workspace = true, features = ["dataloader"] }
+chrono = { workspace = true }
+futures = { workspace = true }
+graphql_common = { path = "../graphql_common" }
+macro_user_id = { path = "../macro_user_id" }
+model-entity = { path = "../model-entity" }
+models_pagination = { path = "../models_pagination" }
+serde = { workspace = true }
+serde_json = { workspace = true }
+tokio = { workspace = true }
+tracing = { workspace = true }
+uuid = { workspace = true }
+workspace-hack = { version = "0.1", path = "../workspace-hack" }
diff --git a/crates/graphql_activity/src/feed.rs b/crates/graphql_activity/src/feed.rs
new file mode 100644
index 0000000000..aad2f54046
--- /dev/null
+++ b/crates/graphql_activity/src/feed.rs
@@ -0,0 +1,109 @@
+use std::num::NonZeroU32;
+
+use async_graphql::{Context, InputObject, SimpleObject};
+use chrono::{DateTime, Utc};
+use macro_user_id::user_id::MacroUserIdStr;
+use models_pagination::{Base64Str, CursorVal, CursorWithVal, Sortable};
+use serde::{Deserialize, Serialize};
+use uuid::Uuid;
+
+use crate::{loaders::ActivityFeedReader, objects::GraphqlActivityEvent};
+
+#[cfg(test)]
+mod test;
+
+/// Items returned by the activity feed when no limit is given.
+pub const DEFAULT_ACTIVITY_FEED_LIMIT: i32 = 25;
+/// Most items one activity feed page may return.
+pub const MAX_ACTIVITY_FEED_LIMIT: i32 = 100;
+
+/// The feed's sort key: when the activity occurred.
+#[derive(Debug, Clone, Copy, Serialize, Deserialize)]
+pub struct OccurredAt;
+
+impl Sortable for OccurredAt {
+ type Value = DateTime<Utc>;
+}
+
+/// The feed's opaque cursor payload: the `(occurred_at, id)` keyset position
+/// of the last item on the previous page.
+type ActivityFeedCursor = CursorWithVal<Uuid, OccurredAt>;
+
+/// Page request for the authenticated user's activity feed.
+#[derive(InputObject)]
+pub struct ActivityFeedInput {
+ /// Opaque cursor from the previous page's `nextCursor`; absent for the
+ /// first page.
+ pub cursor: Option<String>,
+ /// Page size; defaults to 25, capped at 100.
+ pub limit: Option<i32>,
+}
+
+/// One page of the authenticated user's activity, newest first.
+#[derive(SimpleObject)]
+pub struct GraphqlActivityPage {
+ /// The page's activity events.
+ pub items: Vec<GraphqlActivityEvent>,
+ /// Cursor for the next page; absent when this page reached the end.
+ pub next_cursor: Option<String>,
+}
+
+/// Validate a feed limit argument and apply the default.
+fn parse_feed_limit(limit: Option<i32>) -> async_graphql::Result<NonZeroU32> {
+ let limit =
+ graphql_common::parse_limit(limit, DEFAULT_ACTIVITY_FEED_LIMIT, MAX_ACTIVITY_FEED_LIMIT)?;
+ Ok(NonZeroU32::new(limit).expect("parse_limit rejects zero"))
+}
+
+/// Decode an opaque feed cursor into its keyset position.
+fn decode_cursor(cursor: String) -> async_graphql::Result<(DateTime<Utc>, Uuid)> {
+ let cursor = Base64Str::<ActivityFeedCursor>::new_from_string(cursor)
+ .decode_json()
+ .map_err(|err| async_graphql::Error::new(format!("invalid cursor: {err}")))?;
+ Ok((cursor.val.last_val, cursor.id))
+}
+
+/// Encode a keyset position as an opaque cursor.
+fn encode_cursor(occurred_at: DateTime<Utc>, id: Uuid, limit: u32) -> String {
+ Base64Str::encode_json(ActivityFeedCursor {
+ id,
+ limit: limit as usize,
+ val: CursorVal {
+ sort_type: OccurredAt,
+ last_val: occurred_at,
+ },
+ filter: (),
+ })
+ .type_erase()
+}
+
+/// Resolve one page of the authenticated user's activity feed, newest first.
+///
+/// The subject is the viewer's principal string, so delegated actions a bot
+/// performed on the user's behalf appear in the user's own feed. Pagination
+/// follows the page's `next` position, which storage derives from raw rows —
+/// a corrupt row shrinks a page but never ends the feed.
+pub async fn resolve_activity_feed<R>(
+ ctx: &Context<'_>,
+ user_id: &MacroUserIdStr<'static>,
+ input: ActivityFeedInput,
+) -> async_graphql::Result<GraphqlActivityPage>
+where
+ R: ActivityFeedReader,
+{
+ let reader = ctx.data::<R>()?;
+ let limit = parse_feed_limit(input.limit)?;
+ let cursor = input.cursor.map(decode_cursor).transpose()?;
+
+ let page = reader
+ .subject_feed(user_id.as_ref(), cursor, limit)
+ .await
+ .map_err(|_| async_graphql::Error::new("activity feed is unavailable"))?;
+
+ Ok(GraphqlActivityPage {
+ items: page.records.into_iter().map(Into::into).collect(),
+ next_cursor: page
+ .next
+ .map(|(occurred_at, id)| encode_cursor(occurred_at, id, limit.get())),
+ })
+}
diff --git a/crates/graphql_activity/src/feed/test.rs b/crates/graphql_activity/src/feed/test.rs
new file mode 100644
index 0000000000..5126713534
--- /dev/null
+++ b/crates/graphql_activity/src/feed/test.rs
@@ -0,0 +1,28 @@
+use super::*;
+
+#[test]
+fn cursor_round_trips_the_keyset_position() {
+ let at = DateTime::parse_from_rfc3339("2026-08-01T12:34:56Z")
+ .unwrap()
+ .with_timezone(&Utc);
+ let id = Uuid::from_u128(9);
+
+ let encoded = encode_cursor(at, id, 25);
+ let decoded = decode_cursor(encoded).expect("cursor decodes");
+
+ assert_eq!(decoded, (at, id));
+}
+
+#[test]
+fn garbage_cursors_are_rejected() {
+ assert!(decode_cursor("not base64 json".to_string()).is_err());
+}
+
+#[test]
+fn feed_limits_are_defaulted_and_clamped() {
+ assert_eq!(parse_feed_limit(None).unwrap().get(), 25);
+ assert_eq!(parse_feed_limit(Some(100)).unwrap().get(), 100);
+ assert!(parse_feed_limit(Some(0)).is_err());
+ assert!(parse_feed_limit(Some(-3)).is_err());
+ assert!(parse_feed_limit(Some(101)).is_err());
+}
diff --git a/crates/graphql_activity/src/lib.rs b/crates/graphql_activity/src/lib.rs
new file mode 100644
index 0000000000..b78d29fd57
--- /dev/null
+++ b/crates/graphql_activity/src/lib.rs
@@ -0,0 +1,34 @@
+#![deny(missing_docs)]
+#![deny(clippy::missing_docs_in_private_items)]
+//! GraphQL adapter for the activity system.
+//!
+//! Two read surfaces over the `activity_events` log:
+//!
+//! - the authenticated user's own feed ([`resolve_activity_feed`]), a
+//! keyset-paginated field on `GraphqlUser`;
+//! - a lazily-loaded `activity` edge on every Soup entity, batched across
+//! entities through [`EntityActivityLoader`] so it costs nothing when not
+//! selected and one query when it is.
+//!
+//! Items carry `entityType`/`entityId` references only — clients resolve
+//! entity names from their normalized Soup cache rather than hydrating
+//! entities here.
+
+/// The viewer activity feed: input, page, cursor codec, resolver.
+mod feed;
+/// Edge reader traits, the entity-activity DataLoader, and its readers.
+mod loaders;
+/// GraphQL objects for activity events and the typed action union.
+mod objects;
+
+pub use feed::{
+ ActivityFeedInput, DEFAULT_ACTIVITY_FEED_LIMIT, GraphqlActivityPage, MAX_ACTIVITY_FEED_LIMIT,
+ resolve_activity_feed,
+};
+pub use loaders::{
+ ActivityEdgeKey, ActivityEdgeLoad, ActivityFeedReader, ActivityPortReader, ActivityReadFailed,
+ ActivityReader, DEFAULT_ACTIVITY_EDGE_LIMIT, EntityActivityLoader, MAX_ACTIVITY_EDGE_LIMIT,
+ NoOpActivityReader, SoupActivityEdgeReader, entity_activity_loader, load_entity_activity,
+ parse_activity_edge_limit,
+};
+pub use objects::{GraphqlActivityAction, GraphqlActivityEvent};
diff --git a/crates/graphql_activity/src/loaders.rs b/crates/graphql_activity/src/loaders.rs
new file mode 100644
index 0000000000..e60f8064e2
--- /dev/null
+++ b/crates/graphql_activity/src/loaders.rs
@@ -0,0 +1,266 @@
+use std::{collections::HashMap, num::NonZeroU32, sync::Arc};
+
+use activity::{ActivityFeedPage, ActivityReads, ActivityRecord, EntityType};
+use async_graphql::dataloader::{DataLoader, Loader};
+use chrono::{DateTime, Utc};
+use futures::StreamExt;
+use uuid::Uuid;
+
+use crate::objects::GraphqlActivityEvent;
+
+/// Keys per SQL round trip. Bounds the size of one UNNEST+LATERAL query, not
+/// what a client may request: per-entity work is already bounded by
+/// [`MAX_ACTIVITY_EDGE_LIMIT`], so total cost scales with what the operation
+/// legitimately selected — the same posture as the other Soup edges.
+const ACTIVITY_EDGE_BATCH_KEYS: usize = 500;
+/// Concurrent per-limit queries per batch. Distinct limits come from client
+/// field aliases; the bound keeps an aliased query from holding one pool
+/// connection per alias.
+const MAX_CONCURRENT_LIMIT_GROUPS: usize = 4;
+/// Rows returned by the `activity` edge when no limit is given.
+pub const DEFAULT_ACTIVITY_EDGE_LIMIT: i32 = 10;
+/// Most rows the `activity` edge may return per entity. Deeper history
+/// belongs to the viewer feed, not an entity preview.
+pub const MAX_ACTIVITY_EDGE_LIMIT: i32 = 100;
+
+/// Validate an `activity` edge limit argument and apply the default.
+pub fn parse_activity_edge_limit(limit: Option<i32>) -> async_graphql::Result<u32> {
+ graphql_common::parse_limit(limit, DEFAULT_ACTIVITY_EDGE_LIMIT, MAX_ACTIVITY_EDGE_LIMIT)
+}
+
+/// A request for the newest activity on one entity.
+#[derive(Debug, Clone, Hash, PartialEq, Eq)]
+pub struct ActivityEdgeKey {
+ /// The entity whose activity is requested.
+ pub entity: model_entity::Entity<'static>,
+ /// How many rows to return, newest first.
+ pub limit: u32,
+}
+
+/// Result of loading activity for one entity.
+#[derive(Debug, Clone)]
+pub enum ActivityEdgeLoad {
+ /// The entity's newest activity, possibly empty.
+ Found(Vec<ActivityRecord>),
+ /// An internal failure occurred. Details are logged, never exposed.
+ Failed,
+}
+
+/// Opaque read failure: details are logged by the reader, never exposed.
+#[derive(Debug)]
+pub struct ActivityReadFailed;
+
+/// Reader used by the lazy Soup `activity` edge.
+///
+/// Takes plain entity keys, no access receipts: the edge is only reachable
+/// through Soup entity objects, which exist in a response only after the
+/// Soup service (or the user-scoped item loader) has access-checked them.
+pub trait SoupActivityEdgeReader: Send + Sync + 'static {
+ /// Load the newest activity for each requested entity.
+ fn entity_activity(
+ &self,
+ keys: Vec<ActivityEdgeKey>,
+ ) -> impl Future<Output = HashMap<ActivityEdgeKey, ActivityEdgeLoad>> + Send;
+}
+
+/// Reader used by the authenticated user's activity feed.
+pub trait ActivityFeedReader: Send + Sync + 'static {
+ /// One page of the subject's activity, newest first, keyset-paginated
+ /// on `(occurred_at, id)`. The page's `next` position is the pagination
+ /// authority — the storage side derives it from raw rows so skipped
+ /// corrupt rows never end the feed.
+ fn subject_feed<'a>(
+ &'a self,
+ subject_id: &'a str,
+ cursor: Option<(DateTime<Utc>, Uuid)>,
+ limit: NonZeroU32,
+ ) -> impl Future<Output = Result<ActivityFeedPage, ActivityReadFailed>> + Send + 'a;
+}
+
+/// Combined reader capability required by the complete activity surface —
+/// one schema type parameter covers both the edge and the feed.
+pub trait ActivityReader: SoupActivityEdgeReader + ActivityFeedReader {}
+
+impl<T> ActivityReader for T where T: SoupActivityEdgeReader + ActivityFeedReader {}
+
+/// Schema-only reader that returns no activity.
+#[derive(Debug, Clone, Copy, Default)]
+pub struct NoOpActivityReader;
+
+impl SoupActivityEdgeReader for NoOpActivityReader {
+ async fn entity_activity(
+ &self,
+ keys: Vec<ActivityEdgeKey>,
+ ) -> HashMap<ActivityEdgeKey, ActivityEdgeLoad> {
+ keys.into_iter()
+ .map(|key| (key, ActivityEdgeLoad::Found(Vec::new())))
+ .collect()
+ }
+}
+
+impl ActivityFeedReader for NoOpActivityReader {
+ async fn subject_feed(
+ &self,
+ _subject_id: &str,
+ _cursor: Option<(DateTime<Utc>, Uuid)>,
+ _limit: NonZeroU32,
+ ) -> Result<ActivityFeedPage, ActivityReadFailed> {
+ Ok(ActivityFeedPage {
+ records: Vec::new(),
+ next: None,
+ })
+ }
+}
+
+/// Reader backed by the activity storage port, supplied by the application
+/// composition root.
+pub struct ActivityPortReader<R> {
+ /// The activity read port.
+ reads: Arc<R>,
+}
+
+impl<R> Clone for ActivityPortReader<R> {
+ fn clone(&self) -> Self {
+ Self {
+ reads: Arc::clone(&self.reads),
+ }
+ }
+}
+
+impl<R> ActivityPortReader<R> {
+ /// Create a reader over the activity read port.
+ pub fn new(reads: Arc<R>) -> Self {
+ Self { reads }
+ }
+}
+
+impl<R> SoupActivityEdgeReader for ActivityPortReader<R>
+where
+ R: ActivityReads + Send + Sync + 'static,
+{
+ async fn entity_activity(
+ &self,
+ keys: Vec<ActivityEdgeKey>,
+ ) -> HashMap<ActivityEdgeKey, ActivityEdgeLoad> {
+ // The port takes one per-entity limit per call; group keys by their
+ // requested limit so differing limits still batch (one query each,
+ // boundedly concurrent — in practice one field selection means one
+ // distinct limit anyway).
+ let mut by_limit: HashMap<u32, Vec<ActivityEdgeKey>> = HashMap::new();
+ for key in keys {
+ by_limit.entry(key.limit).or_default().push(key);
+ }
+
+ let groups: Vec<_> = futures::stream::iter(by_limit)
+ .map(|(limit, keys)| async move {
+ let entities: Vec<(EntityType, String)> = keys
+ .iter()
+ .map(|key| (key.entity.entity_type, key.entity.entity_id.to_string()))
+ .collect();
+ let result = self.reads.entity_activity(&entities, limit).await;
+ (limit, keys, entities, result)
+ })
+ .buffer_unordered(MAX_CONCURRENT_LIMIT_GROUPS)
+ .collect()
+ .await;
+
+ let mut loads = HashMap::new();
+ for (limit, keys, entities, result) in groups {
+ match result {
+ Ok(mut by_entity) => {
+ for (key, entity) in keys.into_iter().zip(entities) {
+ let records = by_entity.remove(&entity).unwrap_or_default();
+ loads.insert(key, ActivityEdgeLoad::Found(records));
+ }
+ }
+ Err(error) => {
+ tracing::error!(?error, limit, "bulk entity activity load failed");
+ loads.extend(keys.into_iter().map(|key| (key, ActivityEdgeLoad::Failed)));
+ }
+ }
+ }
+ loads
+ }
+}
+
+impl<R> ActivityFeedReader for ActivityPortReader<R>
+where
+ R: ActivityReads + Send + Sync + 'static,
+{
+ async fn subject_feed(
+ &self,
+ subject_id: &str,
+ cursor: Option<(DateTime<Utc>, Uuid)>,
+ limit: NonZeroU32,
+ ) -> Result<ActivityFeedPage, ActivityReadFailed> {
+ self.reads
+ .subject_feed(subject_id, cursor, limit)
+ .await
+ .map_err(|error| {
+ tracing::error!(?error, "activity feed load failed");
+ ActivityReadFailed
+ })
+ }
+}
+
+/// DataLoader for activity attached to Soup entities.
+pub struct EntityActivityLoader<R> {
+ /// The batched edge reader.
+ reader: R,
+}
+
+impl<R> EntityActivityLoader<R> {
+ /// Create an entity-activity DataLoader.
+ pub fn new(reader: R) -> Self {
+ Self { reader }
+ }
+}
+
+impl<R> Loader<ActivityEdgeKey> for EntityActivityLoader<R>
+where
+ R: SoupActivityEdgeReader,
+{
+ type Value = ActivityEdgeLoad;
+ type Error = std::convert::Infallible;
+
+ async fn load(
+ &self,
+ keys: &[ActivityEdgeKey],
+ ) -> Result<HashMap<ActivityEdgeKey, Self::Value>, Self::Error> {
+ Ok(self.reader.entity_activity(keys.to_vec()).await)
+ }
+}
+
+/// Build an entity-activity DataLoader for one request.
+pub fn entity_activity_loader<R>(reader: R) -> DataLoader<EntityActivityLoader<R>>
+where
+ R: SoupActivityEdgeReader,
+{
+ // There is deliberately no client-facing cost cap here: every
+ // schema-valid selection is served, with per-entity work bounded by the
+ // limit argument's validation. max_batch_size only sizes each SQL round
+ // trip.
+ let loader = DataLoader::new(EntityActivityLoader::new(reader), tokio::spawn)
+ .max_batch_size(ACTIVITY_EDGE_BATCH_KEYS);
+ // Subscription connection data outlives one payload: coalesce concurrent
+ // fields, but never serve stale activity across update events.
+ loader.enable_all_cache(false);
+ loader
+}
+
+/// Resolve the `activity` edge for one entity through the request's
+/// DataLoader. An internal read failure degrades to an empty timeline
+/// (logged server-side) so an activity outage never breaks Soup queries.
+pub async fn load_entity_activity<R>(
+ ctx: &async_graphql::Context<'_>,
+ key: ActivityEdgeKey,
+) -> async_graphql::Result<Vec<GraphqlActivityEvent>>
+where
+ R: SoupActivityEdgeReader,
+{
+ let loader = ctx.data::<DataLoader<EntityActivityLoader<R>>>()?;
+ match loader.load_one(key).await? {
+ Some(ActivityEdgeLoad::Found(records)) => Ok(records.into_iter().map(Into::into).collect()),
+ Some(ActivityEdgeLoad::Failed) | None => Ok(Vec::new()),
+ }
+}
diff --git a/crates/graphql_activity/src/objects.rs b/crates/graphql_activity/src/objects.rs
new file mode 100644
index 0000000000..2b446baa7d
--- /dev/null
+++ b/crates/graphql_activity/src/objects.rs
@@ -0,0 +1,186 @@
+use activity::{Action, ActivityRecord, RecordedAction};
+use async_graphql::{ID, Json, SimpleObject, Union};
+use graphql_common::GraphqlEntityType;
+use serde_json::Value;
+
+#[cfg(test)]
+mod test;
+
+/// One activity: a principal did something to an entity at a time.
+///
+/// Carries an entity *reference* only (`entityType`/`entityId`) — clients
+/// resolve names and metadata from their normalized Soup cache.
+#[derive(SimpleObject)]
+pub struct GraphqlActivityEvent {
+ /// The activity's stable identifier.
+ pub id: ID,
+ /// The principal that mechanically acted, as a prefix-parseable string
+ /// (`macro|<email>` for users, `bot|<uuid>` for bots).
+ pub actor_id: String,
+ /// Whose activity this is: the delegating user when the actor acted on
+ /// someone's behalf, otherwise the actor itself.
+ pub subject_id: String,
+ /// The kind of entity acted on.
+ pub entity_type: GraphqlEntityType,
+ /// The entity acted on.
+ pub entity_id: ID,
+ /// What the principal did.
+ pub action: GraphqlActivityAction,
+ /// When it happened, in RFC 3339 format.
+ pub occurred_at: String,
+}
+
+impl From<ActivityRecord> for GraphqlActivityEvent {
+ fn from(record: ActivityRecord) -> Self {
+ Self {
+ id: ID(record.id.to_string()),
+ actor_id: record.actor.as_ref().to_owned(),
+ subject_id: record.subject_id,
+ entity_type: GraphqlEntityType::new(record.entity_type),
+ entity_id: ID(record.entity_id),
+ action: record.action.into(),
+ occurred_at: record.occurred_at.to_rfc3339(),
+ }
+ }
+}
+
+/// The typed activity-action vocabulary. One member per durable action, plus
+/// [`GraphqlActivityUnknownAction`]: rows written by a newer deployment (or
+/// with an undecodable payload) surface with their raw tag and payload
+/// instead of failing the page.
+#[derive(Union)]
+pub enum GraphqlActivityAction {
+ /// The entity was created.
+ Created(GraphqlActivityCreated),
+ /// The entity's content or metadata was edited.
+ Edited(GraphqlActivityEdited),
+ /// The entity was opened by its subject.
+ Opened(GraphqlActivityOpened),
+ /// The entity was soft-deleted.
+ Deleted(GraphqlActivityDeleted),
+ /// A message was sent in the entity (channel or chat).
+ Messaged(GraphqlActivityMessaged),
+ /// An email message was sent on the thread.
+ Sent(GraphqlActivitySent),
+ /// A property value changed on the entity.
+ PropertyChanged(GraphqlActivityPropertyChanged),
+ /// A principal was added to the entity (channel membership).
+ ParticipantAdded(GraphqlActivityParticipantAdded),
+ /// A principal was removed from the entity (channel membership).
+ ParticipantRemoved(GraphqlActivityParticipantRemoved),
+ /// A call was started in the entity (channel).
+ CallStarted(GraphqlActivityCallStarted),
+ /// An action outside this deployment's vocabulary, carried through raw.
+ Unknown(GraphqlActivityUnknownAction),
+}
+
+/// Declares the payload-free union members: each needs a distinct object
+/// type, and GraphQL objects need at least one field.
+macro_rules! payload_free_action_objects {
+ ($($(#[$doc:meta])* $name:ident),+ $(,)?) => {$(
+ $(#[$doc])*
+ #[derive(Default, SimpleObject)]
+ pub struct $name {
+ /// this object has nothing as a field but we need at least 1 field
+ nothing: bool,
+ }
+ )+};
+}
+
+payload_free_action_objects!(
+ /// The entity was created.
+ GraphqlActivityCreated,
+ /// The entity's content or metadata was edited.
+ GraphqlActivityEdited,
+ /// The entity was opened by its subject.
+ GraphqlActivityOpened,
+ /// The entity was soft-deleted.
+ GraphqlActivityDeleted,
+ /// A message was sent in the entity.
+ GraphqlActivityMessaged,
+ /// An email message was sent on the thread.
+ GraphqlActivitySent,
+);
+
+/// A property value changed on the entity.
+#[derive(SimpleObject)]
+pub struct GraphqlActivityPropertyChanged {
+ /// The property definition id.
+ pub property: String,
+ /// The previous value, when the source event carried it.
+ pub from: Option<Json<Value>>,
+ /// The new value. `null` means the value was cleared — or was literally
+ /// set to JSON null; the wire cannot distinguish the two.
+ pub to: Option<Json<Value>>,
+}
+
+/// A principal was added to the entity.
+#[derive(SimpleObject)]
+pub struct GraphqlActivityParticipantAdded {
+ /// The added principal, as a prefix-parseable string.
+ pub participant: String,
+}
+
+/// A principal was removed from the entity.
+#[derive(SimpleObject)]
+pub struct GraphqlActivityParticipantRemoved {
+ /// The removed principal, as a prefix-parseable string.
+ pub participant: String,
+}
+
+/// A call was started in the entity.
+#[derive(SimpleObject)]
+pub struct GraphqlActivityCallStarted {
+ /// The started call.
+ pub call_id: ID,
+}
+
+/// An action this deployment's vocabulary doesn't know.
+#[derive(SimpleObject)]
+pub struct GraphqlActivityUnknownAction {
+ /// The stored action tag.
+ pub tag: String,
+ /// The stored action payload, verbatim.
+ pub payload: Option<Json<Value>>,
+}
+
+impl From<RecordedAction> for GraphqlActivityAction {
+ fn from(action: RecordedAction) -> Self {
+ match action {
+ RecordedAction::Known(Action::Created) => Self::Created(Default::default()),
+ RecordedAction::Known(Action::Edited) => Self::Edited(Default::default()),
+ RecordedAction::Known(Action::Opened) => Self::Opened(Default::default()),
+ RecordedAction::Known(Action::Deleted) => Self::Deleted(Default::default()),
+ RecordedAction::Known(Action::Messaged) => Self::Messaged(Default::default()),
+ RecordedAction::Known(Action::Sent) => Self::Sent(Default::default()),
+ RecordedAction::Known(Action::PropertyChanged(change)) => {
+ Self::PropertyChanged(GraphqlActivityPropertyChanged {
+ property: change.property,
+ from: change.from.map(Json),
+ to: change.to.map(Json),
+ })
+ }
+ RecordedAction::Known(Action::ParticipantAdded(change)) => {
+ Self::ParticipantAdded(GraphqlActivityParticipantAdded {
+ participant: change.participant.as_ref().to_owned(),
+ })
+ }
+ RecordedAction::Known(Action::ParticipantRemoved(change)) => {
+ Self::ParticipantRemoved(GraphqlActivityParticipantRemoved {
+ participant: change.participant.as_ref().to_owned(),
+ })
+ }
+ RecordedAction::Known(Action::CallStarted(start)) => {
+ Self::CallStarted(GraphqlActivityCallStarted {
+ call_id: ID(start.call_id),
+ })
+ }
+ RecordedAction::Unknown { tag, payload } => {
+ Self::Unknown(GraphqlActivityUnknownAction {
+ tag,
+ payload: payload.map(Json),
+ })
+ }
+ }
+ }
+}
diff --git a/crates/graphql_activity/src/objects/test.rs b/crates/graphql_activity/src/objects/test.rs
new file mode 100644
index 0000000000..18ac4f0d2e
--- /dev/null
+++ b/crates/graphql_activity/src/objects/test.rs
@@ -0,0 +1,100 @@
+use activity::{Action, CallStart, PropertyChange, RecordedAction};
+use chrono::Utc;
+use macro_user_id::user_id::MacroUserIdStr;
+use serde_json::json;
+use uuid::Uuid;
+
+use super::*;
+
+fn actor() -> activity::Actor<'static> {
+ activity::Actor::new_from_user(
+ MacroUserIdStr::try_from("macro|[email protected]".to_string()).expect("valid user id"),
+ )
+}
+
+fn record(action: RecordedAction) -> ActivityRecord {
+ ActivityRecord {
+ id: Uuid::from_u128(1),
+ actor: actor(),
+ subject_id: "macro|[email protected]".to_string(),
+ entity_type: activity::EntityType::Document,
+ entity_id: "doc-1".to_string(),
+ action,
+ occurred_at: Utc::now(),
+ }
+}
+
+#[test]
+fn records_map_to_reference_fields() {
+ let event = GraphqlActivityEvent::from(record(RecordedAction::Known(Action::Edited)));
+
+ assert_eq!(event.id.as_str(), Uuid::from_u128(1).to_string());
+ assert_eq!(event.actor_id, "macro|[email protected]");
+ assert_eq!(event.subject_id, "macro|[email protected]");
+ assert!(event.entity_type == GraphqlEntityType::Document);
+ assert_eq!(event.entity_id.as_str(), "doc-1");
+ assert!(matches!(event.action, GraphqlActivityAction::Edited(_)));
+}
+
+#[test]
+fn payload_actions_carry_their_payload_fields() {
+ let event = GraphqlActivityEvent::from(record(RecordedAction::Known(Action::PropertyChanged(
+ PropertyChange {
+ property: "prop-1".to_string(),
+ from: None,
+ to: Some(json!("Done")),
+ },
+ ))));
+ match event.action {
+ GraphqlActivityAction::PropertyChanged(change) => {
+ assert_eq!(change.property, "prop-1");
+ assert!(change.from.is_none());
+ assert_eq!(change.to.map(|value| value.0), Some(json!("Done")));
+ }
+ other => panic!("expected PropertyChanged, got {}", type_name(&other)),
+ }
+
+ let event = GraphqlActivityEvent::from(record(RecordedAction::Known(Action::CallStarted(
+ CallStart {
+ call_id: "call-1".to_string(),
+ },
+ ))));
+ match event.action {
+ GraphqlActivityAction::CallStarted(start) => assert_eq!(start.call_id.as_str(), "call-1"),
+ other => panic!("expected CallStarted, got {}", type_name(&other)),
+ }
+}
+
+#[test]
+fn unknown_actions_surface_their_raw_row() {
+ let event = GraphqlActivityEvent::from(record(RecordedAction::Unknown {
+ tag: "transmogrified".to_string(),
+ payload: Some(json!({ "into": "a newt" })),
+ }));
+ match event.action {
+ GraphqlActivityAction::Unknown(unknown) => {
+ assert_eq!(unknown.tag, "transmogrified");
+ assert_eq!(
+ unknown.payload.map(|value| value.0),
+ Some(json!({ "into": "a newt" }))
+ );
+ }
+ other => panic!("expected Unknown, got {}", type_name(&other)),
+ }
+}
+
+fn type_name(action: &GraphqlActivityAction) -> &'static str {
+ match action {
+ GraphqlActivityAction::Created(_) => "Created",
+ GraphqlActivityAction::Edited(_) => "Edited",
+ GraphqlActivityAction::Opened(_) => "Opened",
+ GraphqlActivityAction::Deleted(_) => "Deleted",
+ GraphqlActivityAction::Messaged(_) => "Messaged",
+ GraphqlActivityAction::Sent(_) => "Sent",
+ GraphqlActivityAction::PropertyChanged(_) => "PropertyChanged",
+ GraphqlActivityAction::ParticipantAdded(_) => "ParticipantAdded",
+ GraphqlActivityAction::ParticipantRemoved(_) => "ParticipantRemoved",
+ GraphqlActivityAction::CallStarted(_) => "CallStarted",
+ GraphqlActivityAction::Unknown(_) => "Unknown",
+ }
+}
diff --git a/crates/graphql_common/src/lib.rs b/crates/graphql_common/src/lib.rs
index a310a540e9..e7262dc7c1 100644
--- a/crates/graphql_common/src/lib.rs
+++ b/crates/graphql_common/src/lib.rs
@@ -15,6 +15,8 @@ mod entity_type;
mod extract;
/// GraphQL filter-input conversion helpers.
mod filter_input;
+/// Shared page-size argument validation.
+mod limit;
/// Property-filter GraphQL input types.
mod property_filter;
/// Request-scoped context used by GraphQL resolvers.
@@ -26,6 +28,7 @@ pub use entity_type::{
};
pub use extract::extract_part;
pub use filter_input::{IntoFilterExpr, optional_tree, parse_id, parse_macro_user_id, parse_uuid};
+pub use limit::parse_limit;
pub use property_filter::{
GraphqlPropertiesBinaryExpr, GraphqlPropertiesExpr, GraphqlPropertiesLiteral,
GraphqlPropertyEntityType, GraphqlPropertyMatchValue,
diff --git a/crates/graphql_common/src/limit.rs b/crates/graphql_common/src/limit.rs
new file mode 100644
index 0000000000..5f867fbb5f
--- /dev/null
+++ b/crates/graphql_common/src/limit.rs
@@ -0,0 +1,14 @@
+/// Validate an optional GraphQL page-size argument: apply `default` when
+/// absent, reject non-positive values, and refuse anything above `max`.
+pub fn parse_limit(limit: Option<i32>, default: i32, max: i32) -> async_graphql::Result<u32> {
+ let limit = limit.unwrap_or(default);
+ if limit <= 0 {
+ return Err(async_graphql::Error::new("limit must be positive"));
+ }
+ if limit > max {
+ return Err(async_graphql::Error::new(format!(
+ "limit must not exceed {max}"
+ )));
+ }
+ Ok(u32::try_from(limit).expect("positive GraphQL Int fits in u32"))
+}
diff --git a/crates/graphql_entity_mutation/src/mutations/test.rs b/crates/graphql_entity_mutation/src/mutations/test.rs
index c0a501bf87..96dd1f4a2e 100644
--- a/crates/graphql_entity_mutation/src/mutations/test.rs
+++ b/crates/graphql_entity_mutation/src/mutations/test.rs
@@ -29,6 +29,7 @@ struct TestEmailThreadEdges {
impl SoupEntityEdges for TestSoupEdges {
type Property = String;
type Notification = String;
+ type ActivityEvent = String;
type EmailThreadEdges = TestEmailThreadEdges;
fn from_entity(_entity: Entity<'static>) -> Self {
@@ -63,6 +64,14 @@ impl SoupEntityEdges for TestSoupEdges {
) -> async_graphql::Result<Option<graphql_permission::GraphqlEntityPermission>> {
Ok(None)
}
+
+ async fn resolve_activity(
+ &self,
+ _ctx: &Context<'_>,
+ _limit: Option<i32>,
+ ) -> async_graphql::Result<Vec<Self::ActivityEvent>> {
+ Ok(Vec::new())
+ }
}
/// Minimal query root used to exercise the mutation module in isolation.
diff --git a/crates/graphql_soup/src/objects.rs b/crates/graphql_soup/src/objects.rs
index 04d87fa89e..4be34c5aea 100644
--- a/crates/graphql_soup/src/objects.rs
+++ b/crates/graphql_soup/src/objects.rs
@@ -45,6 +45,9 @@ pub trait SoupEntityEdges: ObjectType + Clone + Send + Sync + 'static {
/// GraphQL notification object supplied by the notification adapter.
type Notification: OutputType;
+ /// GraphQL activity event object supplied by the activity adapter.
+ type ActivityEvent: OutputType;
+
/// Construct the common/global edge object for a Soup entity.
/// This is for edges that apply to all soup entities, e.g. notifications
fn from_entity(entity: model_entity::Entity<'static>) -> Self;
@@ -87,6 +90,13 @@ pub trait SoupEntityEdges: ObjectType + Clone + Send + Sync + 'static {
&self,
ctx: &Context<'_>,
) -> impl Future<Output = async_graphql::Result<Option<GraphqlEntityPermission>>> + Send;
+
+ /// Resolve the newest activity on this entity, newest first.
+ fn resolve_activity(
+ &self,
+ ctx: &Context<'_>,
+ limit: Option<i32>,
+ ) -> impl Future<Output = async_graphql::Result<Vec<Self::ActivityEvent>>> + Send;
}
/// Page returned by `Query.soup`.
@@ -265,6 +275,13 @@ pub struct GraphqlEntityMetadata {
method = "frecency_score",
ty = "Option<f64>",
desc = "The viewer's frecency score for this entity, when loaded."
+ ),
+ field(
+ name = "activity",
+ method = "interface_activity",
+ ty = "Vec<E::ActivityEvent>",
+ arg(name = "limit", ty = "Option<i32>"),
+ desc = "The newest activity on this entity, newest first."
)
)]
pub enum GraphqlSoupEntity<E: SoupEntityEdges> {
@@ -1996,6 +2013,15 @@ macro_rules! impl_common_interface_edges {
self.1.resolve_viewer_permission(ctx).await
}
+ /// Resolve shared activity through the composed edge adapter.
+ async fn interface_activity(
+ &self,
+ ctx: &Context<'_>,
+ limit: Option<i32>,
+ ) -> async_graphql::Result<Vec<E::ActivityEvent>> {
+ self.1.resolve_activity(ctx, limit).await
+ }
+
}
)+
};
diff --git a/services/document_storage_service/src/api/context.rs b/services/document_storage_service/src/api/context.rs
index a277f12a1b..5922de48e4 100644
--- a/services/document_storage_service/src/api/context.rs
+++ b/services/document_storage_service/src/api/context.rs
@@ -193,8 +193,13 @@ pub(crate) type DssGraphqlSoupSchema = complete_graph::SharedSoupSchema<
complete_graph::EmailServiceEmailContentReader<DssEmailService, EntityAccessService>,
Arc<FavoritesServiceType>,
Arc<EntityAccessService>,
+ DssActivityReader,
>;
+/// GraphQL activity reader over the Postgres activity log (readonly pool).
+pub(crate) type DssActivityReader =
+ complete_graph::ActivityPortReader<activity::outbound::pg_activity_repo::PgActivityRepo>;
+
type SystemPropertiesService = SystemPropertiesServiceImpl<PgSystemPropertiesRepository>;
pub(crate) type NotificationIngressType = SqsNotificationIngress<SqsQueue>;
pub(crate) type PropertiesService = PropertiesServiceImpl<
@@ -480,6 +485,7 @@ pub(crate) struct ApiContext {
pub soup_router_state: DssSoupState,
pub graphql_soup_schema: DssGraphqlSoupSchema,
pub graphql_notification_reader: Arc<ai_tools::ToolNotificationService>,
+ pub activity_reader: DssActivityReader,
pub graphql_entity_mutation_service: Arc<DssEntityMutationService>,
pub favorites_state: DssFavoritesState,
pub favorites_service: Arc<FavoritesServiceType>,
diff --git a/services/document_storage_service/src/api/graphql_soup.rs b/services/document_storage_service/src/api/graphql_soup.rs
index e6f779cc30..b9a34f5ce4 100644
--- a/services/document_storage_service/src/api/graphql_soup.rs
+++ b/services/document_storage_service/src/api/graphql_soup.rs
@@ -186,4 +186,10 @@ fn insert_graphql_context_data(
macro_user_id,
state.graphql_notification_reader.clone(),
));
+ // The feed resolver reads the reader directly; the edge goes through
+ // the request's DataLoader.
+ data.insert(state.activity_reader.clone());
+ data.insert(complete_graph::entity_activity_loader(
+ state.activity_reader.clone(),
+ ));
}
diff --git a/services/document_storage_service/src/main.rs b/services/document_storage_service/src/main.rs
index 3ddf951be6..929facb175 100644
--- a/services/document_storage_service/src/main.rs
+++ b/services/document_storage_service/src/main.rs
@@ -1214,6 +1214,11 @@ async fn main() -> anyhow::Result<()> {
websocket_notification_consumer_service,
),
graphql_notification_reader,
+ // GraphQL reads the activity log through the readonly pool; the
+ // Kafka consumer's writer-pool repo above is separate on purpose.
+ activity_reader: complete_graph::ActivityPortReader::new(Arc::new(
+ activity::outbound::pg_activity_repo::PgActivityRepo::new(readonly_db.clone()),
+ )),
graphql_entity_mutation_service,
github_sync_service: Arc::new(github_sync_service_impl),
foreign_entity_state,
diff --git a/static_assets/schema.graphql b/static_assets/schema.graphql
index dfec6e8175..d06ed81f3a 100644
--- a/static_assets/schema.graphql
+++ b/static_assets/schema.graphql
@@ -1,3 +1,18 @@
+"""
+Page request for the authenticated user's activity feed.
+"""
+input ActivityFeedInput {
+ """
+ Opaque cursor from the previous page's `nextCursor`; absent for the
+ first page.
+ """
+ cursor: String
+ """
+ Page size; defaults to 25, capped at 100.
+ """
+ limit: Int
+}
+
"""
Channel activity operation exposed by GraphQL.
"""
@@ -179,6 +194,190 @@ type GraphqlAccessLevelPermission {
accessLevel: GraphqlEntityAccessLevel!
}
+"""
+The typed activity-action vocabulary. One member per durable action, plus
+[`GraphqlActivityUnknownAction`]: rows written by a newer deployment (or
+with an undecodable payload) surface with their raw tag and payload
+instead of failing the page.
+"""
+union GraphqlActivityAction = GraphqlActivityCreated | GraphqlActivityEdited | GraphqlActivityOpened | GraphqlActivityDeleted | GraphqlActivityMessaged | GraphqlActivitySent | GraphqlActivityPropertyChanged | GraphqlActivityParticipantAdded | GraphqlActivityParticipantRemoved | GraphqlActivityCallStarted | GraphqlActivityUnknownAction
+
+"""
+A call was started in the entity.
+"""
+type GraphqlActivityCallStarted {
+ """
+ The started call.
+ """
+ callId: ID!
+}
+
+"""
+The entity was created.
+"""
+type GraphqlActivityCreated {
+ """
+ this object has nothing as a field but we need at least 1 field
+ """
+ nothing: Boolean!
+}
+
+"""
+The entity was soft-deleted.
+"""
+type GraphqlActivityDeleted {
+ """
+ this object has nothing as a field but we need at least 1 field
+ """
+ nothing: Boolean!
+}
+
+"""
+The entity's content or metadata was edited.
+"""
+type GraphqlActivityEdited {
+ """
+ this object has nothing as a field but we need at least 1 field
+ """
+ nothing: Boolean!
+}
+
+"""
+One activity: a principal did something to an entity at a time.
+
+Carries an entity *reference* only (`entityType`/`entityId`) — clients
+resolve names and metadata from their normalized Soup cache.
+"""
+type GraphqlActivityEvent {
+ """
+ The activity's stable identifier.
+ """
+ id: ID!
+ """
+ The principal that mechanically acted, as a prefix-parseable string
+ (`macro|<email>` for users, `bot|<uuid>` for bots).
+ """
+ actorId: String!
+ """
+ Whose activity this is: the delegating user when the actor acted on
+ someone's behalf, otherwise the actor itself.
+ """
+ subjectId: String!
+ """
+ The kind of entity acted on.
+ """
+ entityType: GraphqlEntityType!
+ """
+ The entity acted on.
+ """
+ entityId: ID!
+ """
+ What the principal did.
+ """
+ action: GraphqlActivityAction!
+ """
+ When it happened, in RFC 3339 format.
+ """
+ occurredAt: String!
+}
+
+"""
+A message was sent in the entity.
+"""
+type GraphqlActivityMessaged {
+ """
+ this object has nothing as a field but we need at least 1 field
+ """
+ nothing: Boolean!
+}
+
+"""
+The entity was opened by its subject.
+"""
+type GraphqlActivityOpened {
+ """
+ this object has nothing as a field but we need at least 1 field
+ """
+ nothing: Boolean!
+}
+
+"""
+One page of the authenticated user's activity, newest first.
+"""
+type GraphqlActivityPage {
+ """
+ The page's activity events.
+ """
+ items: [GraphqlActivityEvent!]!
+ """
+ Cursor for the next page; absent when this page reached the end.
+ """
+ nextCursor: String
+}
+
+"""
+A principal was added to the entity.
+"""
+type GraphqlActivityParticipantAdded {
+ """
+ The added principal, as a prefix-parseable string.
+ """
+ participant: String!
+}
+
+"""
+A principal was removed from the entity.
+"""
+type GraphqlActivityParticipantRemoved {
+ """
+ The removed principal, as a prefix-parseable string.
+ """
+ participant: String!
+}
+
+"""
+A property value changed on the entity.
+"""
+type GraphqlActivityPropertyChanged {
+ """
+ The property definition id.
+ """
+ property: String!
+ """
+ The previous value, when the source event carried it.
+ """
+ from: JSON
+ """
+ The new value. `null` means the value was cleared — or was literally
+ set to JSON null; the wire cannot distinguish the two.
+ """
+ to: JSON
+}
+
+"""
+An email message was sent on the thread.
+"""
+type GraphqlActivitySent {
+ """
+ this object has nothing as a field but we need at least 1 field
+ """
+ nothing: Boolean!
+}
+
+"""
+An action this deployment's vocabulary doesn't know.
+"""
+type GraphqlActivityUnknownAction {
+ """
+ The stored action tag.
+ """
+ tag: String!
+ """
+ The stored action payload, verbatim.
+ """
+ payload: JSON
+}
+
"""
Metadata for an AI response.
"""
@@ -3346,6 +3545,12 @@ type GraphqlSoupCalendarEvent implements GraphqlSoupEntity {
The authenticated viewer's effective permission for this entity.
"""
viewerPermission: GraphqlEntityPermission
+ """
+ The newest activity on this entity, newest first. Loaded lazily and
+ batched across entities; an activity outage degrades to an empty
+ timeline. Deeper history belongs to the viewer's activity feed.
+ """
+ activity(limit: Int): [GraphqlActivityEvent!]!
}
"""
@@ -3445,6 +3650,12 @@ type GraphqlSoupCall implements GraphqlSoupEntity {
"""
viewerPermission: GraphqlEntityPermission
"""
+ The newest activity on this entity, newest first. Loaded lazily and
+ batched across entities; an activity outage degrades to an empty
+ timeline. Deeper history belongs to the viewer's activity feed.
+ """
+ activity(limit: Int): [GraphqlActivityEvent!]!
+ """
The viewer's frecency score for this entity, when loaded.
"""
frecencyScore: Float
@@ -3565,6 +3776,12 @@ type GraphqlSoupChannel implements GraphqlSoupEntity {
"""
viewerPermission: GraphqlEntityPermission
"""
+ The newest activity on this entity, newest first. Loaded lazily and
+ batched across entities; an activity outage degrades to an empty
+ timeline. Deeper history belongs to the viewer's activity feed.
+ """
+ activity(limit: Int): [GraphqlActivityEvent!]!
+ """
The viewer's frecency score for this entity, when loaded.
"""
frecencyScore: Float
@@ -3635,6 +3852,12 @@ type GraphqlSoupChannelMessage implements GraphqlSoupEntity {
"""
viewerPermission: GraphqlEntityPermission
"""
+ The newest activity on this entity, newest first. Loaded lazily and
+ batched across entities; an activity outage degrades to an empty
+ timeline. Deeper history belongs to the viewer's activity feed.
+ """
+ activity(limit: Int): [GraphqlActivityEvent!]!
+ """
The viewer's frecency score for this entity, when loaded.
"""
frecencyScore: Float
@@ -3777,6 +4000,12 @@ type GraphqlSoupChat implements GraphqlSoupEntity {
"""
viewerPermission: GraphqlEntityPermission
"""
+ The newest activity on this entity, newest first. Loaded lazily and
+ batched across entities; an activity outage degrades to an empty
+ timeline. Deeper history belongs to the viewer's activity feed.
+ """
+ activity(limit: Int): [GraphqlActivityEvent!]!
+ """
The viewer's frecency score for this entity, when loaded.
"""
frecencyScore: Float
@@ -3855,6 +4084,12 @@ type GraphqlSoupCrmCompany implements GraphqlSoupEntity {
"""
viewerPermission: GraphqlEntityPermission
"""
+ The newest activity on this entity, newest first. Loaded lazily and
+ batched across entities; an activity outage degrades to an empty
+ timeline. Deeper history belongs to the viewer's activity feed.
+ """
+ activity(limit: Int): [GraphqlActivityEvent!]!
+ """
The viewer's frecency score for this entity, when loaded.
"""
frecencyScore: Float
@@ -3933,6 +4168,12 @@ type GraphqlSoupDocument implements GraphqlSoupEntity {
"""
viewerPermission: GraphqlEntityPermission
"""
+ The newest activity on this entity, newest first. Loaded lazily and
+ batched across entities; an activity outage degrades to an empty
+ timeline. Deeper history belongs to the viewer's activity feed.
+ """
+ activity(limit: Int): [GraphqlActivityEvent!]!
+ """
The viewer's frecency score for this entity, when loaded.
"""
frecencyScore: Float
@@ -4427,6 +4668,12 @@ type GraphqlSoupEmailThread implements GraphqlSoupEntity {
"""
viewerPermission: GraphqlEntityPermission
"""
+ The newest activity on this entity, newest first. Loaded lazily and
+ batched across entities; an activity outage degrades to an empty
+ timeline. Deeper history belongs to the viewer's activity feed.
+ """
+ activity(limit: Int): [GraphqlActivityEvent!]!
+ """
The viewer's frecency score for this entity, when loaded.
"""
frecencyScore: Float
@@ -4488,6 +4735,10 @@ interface GraphqlSoupEntity {
The viewer's frecency score for this entity, when loaded.
"""
frecencyScore: Float
+ """
+ The newest activity on this entity, newest first.
+ """
+ activity(limit: Int): [GraphqlActivityEvent!]!
}
"""
@@ -4605,6 +4856,12 @@ type GraphqlSoupForeignEntity implements GraphqlSoupEntity {
"""
viewerPermission: GraphqlEntityPermission
"""
+ The newest activity on this entity, newest first. Loaded lazily and
+ batched across entities; an activity outage degrades to an empty
+ timeline. Deeper history belongs to the viewer's activity feed.
+ """
+ activity(limit: Int): [GraphqlActivityEvent!]!
+ """
The viewer's frecency score for this entity, when loaded.
"""
frecencyScore: Float
@@ -4675,6 +4932,12 @@ type GraphqlSoupProject implements GraphqlSoupEntity {
"""
viewerPermission: GraphqlEntityPermission
"""
+ The newest activity on this entity, newest first. Loaded lazily and
+ batched across entities; an activity outage degrades to an empty
+ timeline. Deeper history belongs to the viewer's activity feed.
+ """
+ activity(limit: Int): [GraphqlActivityEvent!]!
+ """
The viewer's frecency score for this entity, when loaded.
"""
frecencyScore: Float
@@ -4768,6 +5031,12 @@ type GraphqlSoupReminder implements GraphqlSoupEntity {
"""
viewerPermission: GraphqlEntityPermission
"""
+ The newest activity on this entity, newest first. Loaded lazily and
+ batched across entities; an activity outage degrades to an empty
+ timeline. Deeper history belongs to the viewer's activity feed.
+ """
+ activity(limit: Int): [GraphqlActivityEvent!]!
+ """
The viewer's frecency score for this entity, when loaded.
"""
frecencyScore: Float
@@ -4882,6 +5151,11 @@ type GraphqlUser {
"""
id: ID!
"""
+ A page of the authenticated user's own activity, newest first.
+ Delegated actions performed on the user's behalf are included.
+ """
+ activity(input: ActivityFeedInput!): GraphqlActivityPage!
+ """
Labels across every owned or delegated inbox accessible to the authenticated user.
"""
emailLabels: [GraphqlSoupEmailLabel!]!