Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.
TypeScript agentaiai-agentsall-in-onecrmcrm-systememaillinearmcpmessagingnotesnotionofficerustslackslack-alternativestartupstartup-toolstypescriptworkspace
feat(github_pull_requests): filter by assignee, label, and review state; list oldest first (#7111)
dev-rbf90fdae77ce4
diff --git a/.sqlx/query-2e6c5fcef08f452f991c242e69bfce66be61a806cc97a2c0aaa1a883bf865f77.json b/.sqlx/query-2e6c5fcef08f452f991c242e69bfce66be61a806cc97a2c0aaa1a883bf865f77.jsonnew file mode 100644index 0000000000..93425a198f--- /dev/null+++ b/.sqlx/query-2e6c5fcef08f452f991c242e69bfce66be61a806cc97a2c0aaa1a883bf865f77.json@@ -0,0 +1,36 @@+{+ "db_name": "PostgreSQL",+ "query": "\n WITH sources AS (\n SELECT DISTINCT id, auth_entity\n FROM UNNEST($1::text[], $2::text[]) AS source(id, auth_entity)\n )\n SELECT\n label.value ->> 'name' AS \"name!\",\n (ARRAY_AGG(\n label.value ->> 'color'\n ORDER BY gpr.updated_at DESC, gpr.github_key\n ) FILTER (WHERE label.value ->> 'color' IS NOT NULL))[1] AS color,\n COUNT(*) AS \"count!\"\n FROM github_pull_request gpr\n CROSS JOIN LATERAL jsonb_array_elements(gpr.labels) AS label(value)\n WHERE label.value ->> 'name' IS NOT NULL\n AND EXISTS (\n SELECT 1\n FROM foreign_entity fe\n JOIN sources s\n ON s.id = fe.stored_for_id AND s.auth_entity = fe.stored_for_auth_entity\n WHERE fe.foreign_entity_source = $3::text\n AND fe.foreign_entity_id = gpr.github_key\n )\n GROUP BY label.value ->> 'name'\n ORDER BY COUNT(*) DESC, label.value ->> 'name'\n ",+ "describe": {+ "columns": [+ {+ "ordinal": 0,+ "name": "name!",+ "type_info": "Text"+ },+ {+ "ordinal": 1,+ "name": "color",+ "type_info": "Text"+ },+ {+ "ordinal": 2,+ "name": "count!",+ "type_info": "Int8"+ }+ ],+ "parameters": {+ "Left": [+ "TextArray",+ "TextArray",+ "Text"+ ]+ },+ "nullable": [+ null,+ null,+ null+ ]+ },+ "hash": "2e6c5fcef08f452f991c242e69bfce66be61a806cc97a2c0aaa1a883bf865f77"+}diff --git a/.sqlx/query-b67db6378b33fa74c21608013ba7227b9b81766f526770c4b65c9a72b0e5e535.json b/.sqlx/query-353955d82b1efe81b5b907607f1fcc440c1fc4d0e5de148cfbc2e9e9b0a5a495.jsonsimilarity index 58%rename from .sqlx/query-b67db6378b33fa74c21608013ba7227b9b81766f526770c4b65c9a72b0e5e535.jsonrename to .sqlx/query-353955d82b1efe81b5b907607f1fcc440c1fc4d0e5de148cfbc2e9e9b0a5a495.jsonindex d702f45c40..02e045f122 100644--- a/.sqlx/query-b67db6378b33fa74c21608013ba7227b9b81766f526770c4b65c9a72b0e5e535.json+++ b/.sqlx/query-353955d82b1efe81b5b907607f1fcc440c1fc4d0e5de148cfbc2e9e9b0a5a495.json@@ -1,6 +1,6 @@{"db_name": "PostgreSQL",- "query": "\n WITH source_ids AS (\n SELECT DISTINCT stored_for_id, stored_for_auth_entity\n FROM UNNEST($1::text[], $2::text[])\n AS source_rows(stored_for_id, stored_for_auth_entity)\n ),\n deduped AS (\n SELECT DISTINCT ON (fe.foreign_entity_source, fe.foreign_entity_id)\n fe.id,\n fe.foreign_entity_id,\n fe.foreign_entity_source,\n fe.metadata,\n fe.stored_for_id,\n fe.stored_for_auth_entity,\n fe.created_at,\n COALESCE(gpr.github_updated_at, fe.updated_at) AS updated_at,\n CASE $3::text\n WHEN 'created_at' THEN fe.created_at\n ELSE COALESCE(gpr.github_updated_at, fe.updated_at)\n END AS sort_at\n FROM foreign_entity fe\n LEFT JOIN github_pull_request gpr ON gpr.github_key = fe.foreign_entity_id\n WHERE fe.foreign_entity_source = $10::text\n AND EXISTS (\n SELECT 1\n FROM source_ids s\n WHERE s.stored_for_id = fe.stored_for_id\n AND s.stored_for_auth_entity = fe.stored_for_auth_entity\n )\n AND (\n $4::text IS NULL\n OR jsonb_path_match(\n jsonb_build_object(\n 'id', fe.id::text,\n 'foreignEntityId', fe.foreign_entity_id,\n 'foreignEntitySource', fe.foreign_entity_source\n ),\n ($4::text)::jsonpath\n )\n )\n AND (\n $11::text IS NULL\n OR (gpr.github_key IS NOT NULL AND jsonb_path_match(\n jsonb_build_object(\n 'repositoryId', gpr.repository_id,\n 'authorId', gpr.author_github_user_id,\n 'status', gpr.status,\n 'draft', gpr.draft,\n 'requestedReviewers', to_jsonb(gpr.requested_reviewer_github_user_ids),\n 'participants', to_jsonb(gpr.participant_github_user_ids)\n ),\n ($11::text)::jsonpath\n ))\n )\n AND (\n $8::int[] IS NULL\n OR ($9::text IS NOT NULL AND (\n SELECT COALESCE(bit_or(CASE un.state\n WHEN 'unseen' THEN 1 WHEN 'seen' THEN 2 WHEN 'done' THEN 4 END), 0)\n FROM notification n\n JOIN user_notification un ON un.notification_id = n.id\n WHERE un.user_id = $9::text\n AND un.deleted_at IS NULL\n AND n.event_item_type = 'foreign_entity'\n AND n.event_item_id = fe.id::text\n ) = ANY($8::int[]))\n )\n ORDER BY\n fe.foreign_entity_source,\n fe.foreign_entity_id,\n sort_at DESC,\n fe.updated_at DESC,\n fe.id DESC\n )\n SELECT\n id as \"id!: Uuid\",\n foreign_entity_id as \"foreign_entity_id!: String\",\n foreign_entity_source as \"foreign_entity_source!: String\",\n metadata as \"metadata!: serde_json::Value\",\n stored_for_id as \"stored_for_id!: String\",\n stored_for_auth_entity as \"stored_for_auth_entity!: String\",\n created_at as \"created_at!: DateTime<Utc>\",\n updated_at as \"updated_at!: DateTime<Utc>\"\n FROM deduped\n WHERE $5::timestamptz IS NULL\n OR (sort_at, id) < ($5::timestamptz, $6::uuid)\n ORDER BY sort_at DESC, id DESC\n LIMIT $7\n ",+ "query": "\n WITH source_ids AS (\n SELECT DISTINCT stored_for_id, stored_for_auth_entity\n FROM UNNEST($1::text[], $2::text[])\n AS source_rows(stored_for_id, stored_for_auth_entity)\n ),\n deduped AS (\n SELECT DISTINCT ON (fe.foreign_entity_source, fe.foreign_entity_id)\n fe.id,\n fe.foreign_entity_id,\n fe.foreign_entity_source,\n fe.metadata,\n fe.stored_for_id,\n fe.stored_for_auth_entity,\n fe.created_at,\n COALESCE(gpr.github_updated_at, fe.updated_at) AS updated_at,\n CASE $3::text\n WHEN 'created_at' THEN fe.created_at\n ELSE COALESCE(gpr.github_updated_at, fe.updated_at)\n END AS sort_at\n FROM foreign_entity fe\n LEFT JOIN github_pull_request gpr ON gpr.github_key = fe.foreign_entity_id\n WHERE fe.foreign_entity_source = $10::text\n AND EXISTS (\n SELECT 1\n FROM source_ids s\n WHERE s.stored_for_id = fe.stored_for_id\n AND s.stored_for_auth_entity = fe.stored_for_auth_entity\n )\n AND (\n $4::text IS NULL\n OR jsonb_path_match(\n jsonb_build_object(\n 'id', fe.id::text,\n 'foreignEntityId', fe.foreign_entity_id,\n 'foreignEntitySource', fe.foreign_entity_source\n ),\n ($4::text)::jsonpath\n )\n )\n AND (\n $11::text IS NULL\n OR (gpr.github_key IS NOT NULL AND jsonb_path_match(\n jsonb_build_object(\n 'repositoryId', gpr.repository_id,\n 'authorId', gpr.author_github_user_id,\n 'status', gpr.status,\n 'draft', gpr.draft,\n 'requestedReviewers', to_jsonb(gpr.requested_reviewer_github_user_ids),\n 'participants', to_jsonb(gpr.participant_github_user_ids),\n 'assignees', jsonb_path_query_array(gpr.assignees, '$[*].githubUserId'),\n 'labels', jsonb_path_query_array(gpr.labels, '$[*].name'),\n 'reviewers', jsonb_path_query_array(gpr.reviews, '$[*].reviewerGithubUserId'),\n 'reviewDecision', gpr.review_decision,\n 'reviewCount', jsonb_array_length(gpr.reviews)\n ),\n ($11::text)::jsonpath\n ))\n )\n AND (\n $8::int[] IS NULL\n OR ($9::text IS NOT NULL AND (\n SELECT COALESCE(bit_or(CASE un.state\n WHEN 'unseen' THEN 1 WHEN 'seen' THEN 2 WHEN 'done' THEN 4 END), 0)\n FROM notification n\n JOIN user_notification un ON un.notification_id = n.id\n WHERE un.user_id = $9::text\n AND un.deleted_at IS NULL\n AND n.event_item_type = 'foreign_entity'\n AND n.event_item_id = fe.id::text\n ) = ANY($8::int[]))\n )\n ORDER BY\n fe.foreign_entity_source,\n fe.foreign_entity_id,\n sort_at DESC,\n fe.updated_at DESC,\n fe.id DESC\n )\n SELECT\n id as \"id!: Uuid\",\n foreign_entity_id as \"foreign_entity_id!: String\",\n foreign_entity_source as \"foreign_entity_source!: String\",\n metadata as \"metadata!: serde_json::Value\",\n stored_for_id as \"stored_for_id!: String\",\n stored_for_auth_entity as \"stored_for_auth_entity!: String\",\n created_at as \"created_at!: DateTime<Utc>\",\n updated_at as \"updated_at!: DateTime<Utc>\"\n FROM deduped\n WHERE $5::timestamptz IS NULL\n OR ($12::bool AND (sort_at, id) > ($5::timestamptz, $6::uuid))\n OR (NOT $12::bool AND (sort_at, id) < ($5::timestamptz, $6::uuid))\n ORDER BY\n CASE WHEN $12::bool THEN sort_at END ASC,\n CASE WHEN $12::bool THEN id END ASC,\n sort_at DESC,\n id DESC\n LIMIT $7\n ","describe": {"columns": [{@@ -56,7 +56,8 @@"Int4Array","Text","Text",- "Text"+ "Text",+ "Bool"]},"nullable": [@@ -70,5 +71,5 @@null]},- "hash": "b67db6378b33fa74c21608013ba7227b9b81766f526770c4b65c9a72b0e5e535"+ "hash": "353955d82b1efe81b5b907607f1fcc440c1fc4d0e5de148cfbc2e9e9b0a5a495"}diff --git a/.sqlx/query-5525330b29617a1f95c5938df412cdc09b15b0c5f100472b277646b251cbcf68.json b/.sqlx/query-5525330b29617a1f95c5938df412cdc09b15b0c5f100472b277646b251cbcf68.jsonnew file mode 100644index 0000000000..144e55fb5e--- /dev/null+++ b/.sqlx/query-5525330b29617a1f95c5938df412cdc09b15b0c5f100472b277646b251cbcf68.json@@ -0,0 +1,36 @@+{+ "db_name": "PostgreSQL",+ "query": "\n WITH sources AS (\n SELECT DISTINCT id, auth_entity\n FROM UNNEST($1::text[], $2::text[]) AS source(id, auth_entity)\n )\n SELECT\n assignee.value ->> 'githubUserId' AS \"github_user_id!\",\n (ARRAY_AGG(\n assignee.value ->> 'login'\n ORDER BY gpr.updated_at DESC, gpr.github_key\n ) FILTER (WHERE assignee.value ->> 'login' IS NOT NULL))[1] AS login,\n COUNT(*) AS \"count!\"\n FROM github_pull_request gpr\n CROSS JOIN LATERAL jsonb_array_elements(gpr.assignees) AS assignee(value)\n WHERE assignee.value ->> 'githubUserId' IS NOT NULL\n AND EXISTS (\n SELECT 1\n FROM foreign_entity fe\n JOIN sources s\n ON s.id = fe.stored_for_id AND s.auth_entity = fe.stored_for_auth_entity\n WHERE fe.foreign_entity_source = $3::text\n AND fe.foreign_entity_id = gpr.github_key\n )\n GROUP BY assignee.value ->> 'githubUserId'\n ORDER BY COUNT(*) DESC, assignee.value ->> 'githubUserId'\n ",+ "describe": {+ "columns": [+ {+ "ordinal": 0,+ "name": "github_user_id!",+ "type_info": "Text"+ },+ {+ "ordinal": 1,+ "name": "login",+ "type_info": "Text"+ },+ {+ "ordinal": 2,+ "name": "count!",+ "type_info": "Int8"+ }+ ],+ "parameters": {+ "Left": [+ "TextArray",+ "TextArray",+ "Text"+ ]+ },+ "nullable": [+ null,+ null,+ null+ ]+ },+ "hash": "5525330b29617a1f95c5938df412cdc09b15b0c5f100472b277646b251cbcf68"+}diff --git a/apps/web/src/features/soup/filters/facets/constants.ts b/apps/web/src/features/soup/filters/facets/constants.tsindex 924dbf37ac..18b8650e61 100644--- a/apps/web/src/features/soup/filters/facets/constants.ts+++ b/apps/web/src/features/soup/filters/facets/constants.ts@@ -210,6 +210,10 @@ export const FILTER_TARGETS = {githubPullRequestInvolves: { backend: 'inv' },githubPullRequestReviewRequested: { backend: 'rr' },githubPullRequestDraft: { backend: 'draft', domain: [true, false] },+ githubPullRequestAssigneeId: { backend: 'as' },+ githubPullRequestLabel: { backend: 'lbl' },+ githubPullRequestReviewStatus: { backend: 'rs' },+ githubPullRequestReviewedBy: { backend: 'rb' },},// ccf — crm companies@@ -350,6 +354,18 @@ type FilterTargetsMeta = {/** Numeric GitHub user id of a requested reviewer. */githubPullRequestReviewRequested: string[];githubPullRequestDraft: boolean;+ /** Numeric GitHub user id of an assignee. */+ githubPullRequestAssigneeId: string[];+ /** Label name. */+ githubPullRequestLabel: string[];+ githubPullRequestReviewStatus: (+ | 'none'+ | 'required'+ | 'approved'+ | 'changes_requested'+ )[];+ /** Numeric GitHub user id of someone who submitted a review. */+ githubPullRequestReviewedBy: string[];};// ccf — crm companiesdiff --git a/apps/web/src/lib/queries/soup/graphql/ast.ts b/apps/web/src/lib/queries/soup/graphql/ast.tsindex cad2cbbe17..03ebea5c74 100644--- a/apps/web/src/lib/queries/soup/graphql/ast.ts+++ b/apps/web/src/lib/queries/soup/graphql/ast.ts@@ -15,6 +15,7 @@ import type {GraphqlEntityFilterAst as GraphqlEntityFilterAstInput,GraphqlForeignEntityLiteral as GraphqlForeignEntityLiteralInput,GraphqlGithubPullRequestLiteral as GraphqlGithubPullRequestLiteralInput,+ GraphqlGithubPullRequestReviewStatus,GraphqlGithubPullRequestState,GraphqlGroupByInput,GroupedSoupContinuationInput as GraphqlGroupedSoupContinuationInput,@@ -533,6 +534,17 @@ function mapGithubPullRequestState(unsupported(`unsupported pull request status ${state}`);}+function mapGithubPullRequestReviewStatus(+ value: unknown+): GraphqlGithubPullRequestReviewStatus {+ const status = mapString(value, 'reviewStatus');+ if (status === 'none') return 'NONE';+ if (status === 'required') return 'REQUIRED';+ if (status === 'approved') return 'APPROVED';+ if (status === 'changes_requested') return 'CHANGES_REQUESTED';+ unsupported(`unsupported pull request review status ${status}`);+}+function mapGithubPullRequestLiteral(literal: unknown): GraphqlGithubPullRequestLiteralInput {@@ -555,6 +567,14 @@ function mapGithubPullRequestLiteral(return { reviewRequested: mapString(value, 'reviewRequested') };case 'draft':return { draft: mapBoolean(value, 'draft') };+ case 'as':+ return { assignee: mapString(value, 'assignee') };+ case 'lbl':+ return { label: mapString(value, 'label') };+ case 'rs':+ return { reviewStatus: mapGithubPullRequestReviewStatus(value) };+ case 'rb':+ return { reviewedBy: mapString(value, 'reviewedBy') };default:unsupported(`github pull request literal ${field}`);}diff --git a/apps/web/src/lib/service-clients/service-storage/generated/schemas/githubAuthorFacet.ts b/apps/web/src/lib/service-clients/service-storage/generated/schemas/githubAuthorFacet.tsdeleted file mode 100644index 2c5e6f7c10..0000000000--- a/apps/web/src/lib/service-clients/service-storage/generated/schemas/githubAuthorFacet.ts+++ /dev/null@@ -1,19 +0,0 @@-/**- * Generated by orval v7.21.0 🍺- * Do not edit manually.- * document_storage_service- * OpenAPI spec version: 0.1.0- */-import type { GithubAuthorFacetLogin } from './githubAuthorFacetLogin';--/**- * An author among the visible GitHub pull requests.- */-export interface GithubAuthorFacet {- /** Number of visible pull requests the author opened. */- count: number;- /** The author's numeric GitHub user id. */- githubUserId: string;- /** The author's most recently synced GitHub login, when known. */- login?: GithubAuthorFacetLogin;-}diff --git a/apps/web/src/lib/service-clients/service-storage/generated/schemas/githubLabelFacet.ts b/apps/web/src/lib/service-clients/service-storage/generated/schemas/githubLabelFacet.tsnew file mode 100644index 0000000000..adcf5ed769--- /dev/null+++ b/apps/web/src/lib/service-clients/service-storage/generated/schemas/githubLabelFacet.ts@@ -0,0 +1,20 @@+/**+ * Generated by orval v7.21.0 🍺+ * Do not edit manually.+ * document_storage_service+ * OpenAPI spec version: 0.1.0+ */+import type { GithubLabelFacetColor } from './githubLabelFacetColor';++/**+ * A label among the visible GitHub pull requests. Labels with the same name in different+repositories count together.+ */+export interface GithubLabelFacet {+ /** The label's most recently synced color, as six hex digits without `#`. */+ color?: GithubLabelFacetColor;+ /** Number of visible pull requests with the label. */+ count: number;+ /** The label's name. */+ name: string;+}diff --git a/apps/web/src/lib/service-clients/service-storage/generated/schemas/githubLabelFacetColor.ts b/apps/web/src/lib/service-clients/service-storage/generated/schemas/githubLabelFacetColor.tsnew file mode 100644index 0000000000..df493d7e10--- /dev/null+++ b/apps/web/src/lib/service-clients/service-storage/generated/schemas/githubLabelFacetColor.ts@@ -0,0 +1,11 @@+/**+ * Generated by orval v7.21.0 🍺+ * Do not edit manually.+ * document_storage_service+ * OpenAPI spec version: 0.1.0+ */++/**+ * The label's most recently synced color, as six hex digits without `#`.+ */+export type GithubLabelFacetColor = string | null;diff --git a/apps/web/src/lib/service-clients/service-storage/generated/schemas/githubPullRequestFacets.ts b/apps/web/src/lib/service-clients/service-storage/generated/schemas/githubPullRequestFacets.tsindex 9079f6d855..7f8915ebc2 100644--- a/apps/web/src/lib/service-clients/service-storage/generated/schemas/githubPullRequestFacets.ts+++ b/apps/web/src/lib/service-clients/service-storage/generated/schemas/githubPullRequestFacets.ts@@ -4,16 +4,22 @@* document_storage_service* OpenAPI spec version: 0.1.0*/-import type { GithubAuthorFacet } from './githubAuthorFacet';++import type { GithubLabelFacet } from './githubLabelFacet';import type { GithubRepositoryFacet } from './githubRepositoryFacet';+import type { GithubUserFacet } from './githubUserFacet';/**- * Repositories and authors among the GitHub pull requests a caller can see, each with the-number of pull requests it covers.+ * Repositories, authors, assignees, and labels among the GitHub pull requests a caller can see,+each with the number of pull requests it covers.*/export interface GithubPullRequestFacets {+ /** Assignees, most pull requests first. */+ assignees: GithubUserFacet[];/** Authors, most pull requests first. */- authors: GithubAuthorFacet[];+ authors: GithubUserFacet[];+ /** Labels, most pull requests first. */+ labels: GithubLabelFacet[];/** Repositories, most pull requests first. */repositories: GithubRepositoryFacet[];}diff --git a/apps/web/src/lib/service-clients/service-storage/generated/schemas/githubUserFacet.ts b/apps/web/src/lib/service-clients/service-storage/generated/schemas/githubUserFacet.tsnew file mode 100644index 0000000000..522a19b47f--- /dev/null+++ b/apps/web/src/lib/service-clients/service-storage/generated/schemas/githubUserFacet.ts@@ -0,0 +1,19 @@+/**+ * Generated by orval v7.21.0 🍺+ * Do not edit manually.+ * document_storage_service+ * OpenAPI spec version: 0.1.0+ */+import type { GithubUserFacetLogin } from './githubUserFacetLogin';++/**+ * A GitHub user among the visible pull requests, as an author or an assignee.+ */+export interface GithubUserFacet {+ /** Number of visible pull requests the user opened, or is assigned to. */+ count: number;+ /** The user's numeric GitHub user id. */+ githubUserId: string;+ /** The user's most recently synced GitHub login, when known. */+ login?: GithubUserFacetLogin;+}diff --git a/apps/web/src/lib/service-clients/service-storage/generated/schemas/githubAuthorFacetLogin.ts b/apps/web/src/lib/service-clients/service-storage/generated/schemas/githubUserFacetLogin.tssimilarity index 54%rename from apps/web/src/lib/service-clients/service-storage/generated/schemas/githubAuthorFacetLogin.tsrename to apps/web/src/lib/service-clients/service-storage/generated/schemas/githubUserFacetLogin.tsindex db7fde709e..ddeea062d0 100644--- a/apps/web/src/lib/service-clients/service-storage/generated/schemas/githubAuthorFacetLogin.ts+++ b/apps/web/src/lib/service-clients/service-storage/generated/schemas/githubUserFacetLogin.ts@@ -6,6 +6,6 @@*//**- * The author's most recently synced GitHub login, when known.+ * The user's most recently synced GitHub login, when known.*/-export type GithubAuthorFacetLogin = string | null;+export type GithubUserFacetLogin = string | null;diff --git a/apps/web/src/lib/service-clients/service-storage/generated/schemas/index.ts b/apps/web/src/lib/service-clients/service-storage/generated/schemas/index.tsindex b15e315894..b61f9a1f55 100644--- a/apps/web/src/lib/service-clients/service-storage/generated/schemas/index.ts+++ b/apps/web/src/lib/service-clients/service-storage/generated/schemas/index.ts@@ -911,8 +911,8 @@ export * from './getProjectsResponse';export * from './getSystemSkillsHandler200';export * from './getUserDocumentsHandlerParams';export * from './getUserHistoryResponse';-export * from './githubAuthorFacet';-export * from './githubAuthorFacetLogin';+export * from './githubLabelFacet';+export * from './githubLabelFacetColor';export * from './githubPullRequest';export * from './githubPullRequestAdditions';export * from './githubPullRequestCheckRun';@@ -940,6 +940,8 @@ export * from './githubPullRequestName';export * from './githubPullRequestStatus';export * from './githubPullRequestsResponse';export * from './githubRepositoryFacet';+export * from './githubUserFacet';+export * from './githubUserFacetLogin';export * from './groupedInitialParams';export * from './groupedInitialParamsPerGroupLimit';export * from './groupedInitialParamsSortMethod';diff --git a/apps/web/src/lib/service-clients/service-storage/generated/zod.ts b/apps/web/src/lib/service-clients/service-storage/generated/zod.tsindex ad3f6f6831..d821cede76 100644--- a/apps/web/src/lib/service-clients/service-storage/generated/zod.ts+++ b/apps/web/src/lib/service-clients/service-storage/generated/zod.ts@@ -13353,26 +13353,74 @@ export const getForeignEntityResponse = zod*/export const getGithubPullRequestFacetsResponse = zod.object({+ assignees: zod+ .array(+ zod+ .object({+ count: zod+ .number()+ .describe(+ 'Number of visible pull requests the user opened, or is assigned to.'+ ),+ githubUserId: zod+ .string()+ .describe("The user's numeric GitHub user id."),+ login: zod+ .string()+ .nullish()+ .describe(+ "The user's most recently synced GitHub login, when known."+ ),+ })+ .describe(+ 'A GitHub user among the visible pull requests, as an author or an assignee.'+ )+ )+ .describe('Assignees, most pull requests first.'),authors: zod.array(zod.object({count: zod.number()- .describe('Number of visible pull requests the author opened.'),+ .describe(+ 'Number of visible pull requests the user opened, or is assigned to.'+ ),githubUserId: zod.string()- .describe("The author's numeric GitHub user id."),+ .describe("The user's numeric GitHub user id."),login: zod.string().nullish().describe(- "The author's most recently synced GitHub login, when known."+ "The user's most recently synced GitHub login, when known."),})- .describe('An author among the visible GitHub pull requests.')+ .describe(+ 'A GitHub user among the visible pull requests, as an author or an assignee.'+ )).describe('Authors, most pull requests first.'),+ labels: zod+ .array(+ zod+ .object({+ color: zod+ .string()+ .nullish()+ .describe(+ "The label's most recently synced color, as six hex digits without `#`."+ ),+ count: zod+ .number()+ .describe('Number of visible pull requests with the label.'),+ name: zod.string().describe("The label's name."),+ })+ .describe(+ 'A label among the visible GitHub pull requests. Labels with the same name in different\nrepositories count together.'+ )+ )+ .describe('Labels, most pull requests first.'),repositories: zod.array(zod@@ -13396,7 +13444,7 @@ export const getGithubPullRequestFacetsResponse = zod.describe('Repositories, most pull requests first.'),}).describe(- 'Repositories and authors among the GitHub pull requests a caller can see, each with the\nnumber of pull requests it covers.'+ 'Repositories, authors, assignees, and labels among the GitHub pull requests a caller can see,\neach with the number of pull requests it covers.');/**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.tsindex 23ab89b75b..c4535421fb 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@@ -878,19 +878,38 @@ export type GraphqlGithubPullRequestExpr =/** GraphQL input representing a GitHub pull request literal. */export type GraphqlGithubPullRequestLiteral =- { /** The author's numeric GitHub user id option. */- author: string; draft?: never; involves?: never; repositoryId?: never; reviewRequested?: never; status?: never; }- | { author?: never; /** The draft option. */- draft: boolean; involves?: never; repositoryId?: never; reviewRequested?: never; status?: never; }- | { author?: never; draft?: never; /** The numeric GitHub user id of someone involved in the pull request. */- involves: string; repositoryId?: never; reviewRequested?: never; status?: never; }- | { author?: never; draft?: never; involves?: never; /** The numeric GitHub repository id option. */- repositoryId: string; reviewRequested?: never; status?: never; }- | { author?: never; draft?: never; involves?: never; repositoryId?: never; /** The numeric GitHub user id of a requested reviewer. */- reviewRequested: string; status?: never; }- | { author?: never; draft?: never; involves?: never; repositoryId?: never; reviewRequested?: never; /** The pull request state option. */+ { /** The numeric GitHub user id of an assignee. */+ assignee: string; author?: never; draft?: never; involves?: never; label?: never; repositoryId?: never; reviewRequested?: never; reviewStatus?: never; reviewedBy?: never; status?: never; }+ | { assignee?: never; /** The author's numeric GitHub user id option. */+ author: string; draft?: never; involves?: never; label?: never; repositoryId?: never; reviewRequested?: never; reviewStatus?: never; reviewedBy?: never; status?: never; }+ | { assignee?: never; author?: never; /** The draft option. */+ draft: boolean; involves?: never; label?: never; repositoryId?: never; reviewRequested?: never; reviewStatus?: never; reviewedBy?: never; status?: never; }+ | { assignee?: never; author?: never; draft?: never; /** The numeric GitHub user id of someone involved in the pull request. */+ involves: string; label?: never; repositoryId?: never; reviewRequested?: never; reviewStatus?: never; reviewedBy?: never; status?: never; }+ | { assignee?: never; author?: never; draft?: never; involves?: never; /** The label name option. */+ label: string; repositoryId?: never; reviewRequested?: never; reviewStatus?: never; reviewedBy?: never; status?: never; }+ | { assignee?: never; author?: never; draft?: never; involves?: never; label?: never; /** The numeric GitHub repository id option. */+ repositoryId: string; reviewRequested?: never; reviewStatus?: never; reviewedBy?: never; status?: never; }+ | { assignee?: never; author?: never; draft?: never; involves?: never; label?: never; repositoryId?: never; /** The numeric GitHub user id of a requested reviewer. */+ reviewRequested: string; reviewStatus?: never; reviewedBy?: never; status?: never; }+ | { assignee?: never; author?: never; draft?: never; involves?: never; label?: never; repositoryId?: never; reviewRequested?: never; /** The review status option. */+ reviewStatus: GraphqlGithubPullRequestReviewStatus; reviewedBy?: never; status?: never; }+ | { assignee?: never; author?: never; draft?: never; involves?: never; label?: never; repositoryId?: never; reviewRequested?: never; reviewStatus?: never; /** The numeric GitHub user id of someone who submitted a review. */+ reviewedBy: string; status?: never; }+ | { assignee?: never; author?: never; draft?: never; involves?: never; label?: never; repositoryId?: never; reviewRequested?: never; reviewStatus?: never; reviewedBy?: never; /** The pull request state option. */status: GraphqlGithubPullRequestState; };+/** GraphQL input representing a GitHub pull request review status. */+export type GraphqlGithubPullRequestReviewStatus =+ /** The approved option. */+ | 'APPROVED'+ /** The changes requested option. */+ | 'CHANGES_REQUESTED'+ /** The no reviews option. */+ | 'NONE'+ /** The review required option. */+ | 'REQUIRED';+/** GraphQL input representing a GitHub pull request state. */export type GraphqlGithubPullRequestState =/** The closed option. */diff --git a/apps/web/src/lib/service-clients/service-storage/openapi.json b/apps/web/src/lib/service-clients/service-storage/openapi.jsonindex 1901a2287e..be09e47ea2 100644--- a/apps/web/src/lib/service-clients/service-storage/openapi.json+++ b/apps/web/src/lib/service-clients/service-storage/openapi.json@@ -26503,23 +26503,23 @@}}},- "GithubAuthorFacet": {+ "GithubLabelFacet": {"type": "object",- "description": "An author among the visible GitHub pull requests.",- "required": ["githubUserId", "count"],+ "description": "A label among the visible GitHub pull requests. Labels with the same name in different\nrepositories count together.",+ "required": ["name", "count"],"properties": {+ "color": {+ "type": ["string", "null"],+ "description": "The label's most recently synced color, as six hex digits without `#`."+ },"count": {"type": "integer","format": "int64",- "description": "Number of visible pull requests the author opened."+ "description": "Number of visible pull requests with the label."},- "githubUserId": {+ "name": {"type": "string",- "description": "The author's numeric GitHub user id."- },- "login": {- "type": ["string", "null"],- "description": "The author's most recently synced GitHub login, when known."+ "description": "The label's name."}}},@@ -26714,16 +26714,30 @@},"GithubPullRequestFacets": {"type": "object",- "description": "Repositories and authors among the GitHub pull requests a caller can see, each with the\nnumber of pull requests it covers.",- "required": ["repositories", "authors"],+ "description": "Repositories, authors, assignees, and labels among the GitHub pull requests a caller can see,\neach with the number of pull requests it covers.",+ "required": ["repositories", "authors", "assignees", "labels"],"properties": {+ "assignees": {+ "type": "array",+ "items": {+ "$ref": "#/components/schemas/GithubUserFacet"+ },+ "description": "Assignees, most pull requests first."+ },"authors": {"type": "array","items": {- "$ref": "#/components/schemas/GithubAuthorFacet"+ "$ref": "#/components/schemas/GithubUserFacet"},"description": "Authors, most pull requests first."},+ "labels": {+ "type": "array",+ "items": {+ "$ref": "#/components/schemas/GithubLabelFacet"+ },+ "description": "Labels, most pull requests first."+ },"repositories": {"type": "array","items": {@@ -26767,6 +26781,26 @@}}},+ "GithubUserFacet": {+ "type": "object",+ "description": "A GitHub user among the visible pull requests, as an author or an assignee.",+ "required": ["githubUserId", "count"],+ "properties": {+ "count": {+ "type": "integer",+ "format": "int64",+ "description": "Number of visible pull requests the user opened, or is assigned to."+ },+ "githubUserId": {+ "type": "string",+ "description": "The user's numeric GitHub user id."+ },+ "login": {+ "type": ["string", "null"],+ "description": "The user's most recently synced GitHub login, when known."+ }+ }+ },"GroupedInitialParams": {"type": "object","description": "Parameters for the initial grouped soup query.",diff --git a/crates/github_pull_requests/src/domain/models.rs b/crates/github_pull_requests/src/domain/models.rsindex 01b5afafe6..dd691cbb92 100644--- a/crates/github_pull_requests/src/domain/models.rs+++ b/crates/github_pull_requests/src/domain/models.rs@@ -308,8 +308,18 @@ impl From<GithubPullRequestRow> for GithubPullRequestWrite {}}-/// Repositories and authors among the GitHub pull requests a caller can see, each with the-/// number of pull requests it covers.+/// Which end of the sort order a pull request listing starts from and pages toward.+#[derive(Debug, Clone, Copy, PartialEq, Eq, Default)]+pub enum GithubPullRequestSortDirection {+ /// Smallest sort value first: oldest created or least recently updated.+ Asc,+ /// Largest sort value first.+ #[default]+ Desc,+}++/// Repositories, authors, assignees, and labels among the GitHub pull requests a caller can see,+/// each with the number of pull requests it covers.#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq, Default)]#[cfg_attr(feature = "schema", derive(utoipa::ToSchema))]#[serde(rename_all = "camelCase")]@@ -317,7 +327,11 @@ pub struct GithubPullRequestFacets {/// Repositories, most pull requests first.pub repositories: Vec<GithubRepositoryFacet>,/// Authors, most pull requests first.- pub authors: Vec<GithubAuthorFacet>,+ pub authors: Vec<GithubUserFacet>,+ /// Assignees, most pull requests first.+ pub assignees: Vec<GithubUserFacet>,+ /// Labels, most pull requests first.+ pub labels: Vec<GithubLabelFacet>,}/// A repository among the visible GitHub pull requests.@@ -333,16 +347,30 @@ pub struct GithubRepositoryFacet {pub count: i64,}-/// An author among the visible GitHub pull requests.+/// A GitHub user among the visible pull requests, as an author or an assignee.#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]#[cfg_attr(feature = "schema", derive(utoipa::ToSchema))]#[serde(rename_all = "camelCase")]-pub struct GithubAuthorFacet {- /// The author's numeric GitHub user id.+pub struct GithubUserFacet {+ /// The user's numeric GitHub user id.pub github_user_id: String,- /// The author's most recently synced GitHub login, when known.+ /// The user's most recently synced GitHub login, when known.pub login: Option<String>,- /// Number of visible pull requests the author opened.+ /// Number of visible pull requests the user opened, or is assigned to.+ pub count: i64,+}++/// A label among the visible GitHub pull requests. Labels with the same name in different+/// repositories count together.+#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)]+#[cfg_attr(feature = "schema", derive(utoipa::ToSchema))]+#[serde(rename_all = "camelCase")]+pub struct GithubLabelFacet {+ /// The label's name.+ pub name: String,+ /// The label's most recently synced color, as six hex digits without `#`.+ pub color: Option<String>,+ /// Number of visible pull requests with the label.pub count: i64,}diff --git a/crates/github_pull_requests/src/domain/ports.rs b/crates/github_pull_requests/src/domain/ports.rsindex 92e29e0eb4..7b4aa082fe 100644--- a/crates/github_pull_requests/src/domain/ports.rs+++ b/crates/github_pull_requests/src/domain/ports.rs@@ -12,8 +12,8 @@ use macro_user_id::user_id::MacroUserIdStr;use super::models::{EnrichedGithubPullRequest, GithubPullRequestError, GithubPullRequestFacets,- GithubPullRequestWrite, GithubRepositoryIdentity, UpsertGithubPullRequest,- UpsertedGithubPullRequest,+ GithubPullRequestSortDirection, GithubPullRequestWrite, GithubRepositoryIdentity,+ UpsertGithubPullRequest, UpsertedGithubPullRequest,};/// Stores GitHub pull requests as foreign entity records, one record per user or team the pull@@ -95,7 +95,8 @@ pub trait GithubPullRequestIndexRepository: Send + Sync + 'static {/// Lists the GitHub pull requests a caller can see.pub trait GithubPullRequestListing: Send + Sync + 'static {/// Up to `limit` pull request records stored for one of `source_ids` and matching `query`,- /// one per pull request, in the query's sort order. `requesting_user` scopes the+ /// one per pull request, in the query's sort order and `sort_direction`; a cursor in `query`+ /// continues in that direction. `requesting_user` scopes the/// participant and notification-state filters; without one they match nothing./// `github_pull_request_filter` keeps only pull requests whose typed columns match it./// "Updated" sorts by, and reports, GitHub's updated time when the pull request has one.@@ -106,6 +107,7 @@ pub trait GithubPullRequestListing: Send + Sync + 'static {limit: u32,query: ForeignEntityListQuery,github_pull_request_filter: LiteralTree<GithubPullRequestLiteral>,+ sort_direction: GithubPullRequestSortDirection,) -> impl Future<Output = Result<Vec<ForeignEntity>, GithubPullRequestError>> + Send;}@@ -115,7 +117,8 @@ pub trait GithubPullRequestListingRepository: Send + Sync + 'static {type Err: Into<anyhow::Error> + Send + std::fmt::Debug;/// Up to `limit` pull request records stored for one of `source_ids` and matching `query`- /// and `github_pull_request_filter`, one per pull request, in the query's sort order.+ /// and `github_pull_request_filter`, one per pull request, in the query's sort order and+ /// `sort_direction`.fn list_pull_requests(&self,requesting_user: Option<String>,@@ -123,6 +126,7 @@ pub trait GithubPullRequestListingRepository: Send + Sync + 'static {limit: u32,query: ForeignEntityListQuery,github_pull_request_filter: LiteralTree<GithubPullRequestLiteral>,+ sort_direction: GithubPullRequestSortDirection,) -> impl Future<Output = Result<Vec<ForeignEntity>, Self::Err>> + Send;}diff --git a/crates/github_pull_requests/src/domain/service.rs b/crates/github_pull_requests/src/domain/service.rsindex 26898bae1f..97e22145be 100644--- a/crates/github_pull_requests/src/domain/service.rs+++ b/crates/github_pull_requests/src/domain/service.rs@@ -15,8 +15,8 @@ use super::{models::{EnrichedGithubPullRequest, GITHUB_PULL_REQUEST_FOREIGN_ENTITY_SOURCE,GithubPullRequestError, GithubPullRequestFacets, GithubPullRequestRow,- GithubPullRequestStatus, GithubPullRequestWrite, GithubRepositoryIdentity,- UpsertGithubPullRequest, UpsertedGithubPullRequest,+ GithubPullRequestSortDirection, GithubPullRequestStatus, GithubPullRequestWrite,+ GithubRepositoryIdentity, UpsertGithubPullRequest, UpsertedGithubPullRequest,},ports::{GithubPullRequestFacetRepository, GithubPullRequestFacetService,@@ -303,6 +303,7 @@ wherelimit: u32,query: ForeignEntityListQuery,github_pull_request_filter: LiteralTree<GithubPullRequestLiteral>,+ sort_direction: GithubPullRequestSortDirection,) -> Result<Vec<ForeignEntity>, GithubPullRequestError> {if source_ids.is_empty() {return Ok(Vec::new());@@ -319,6 +320,7 @@ wherelimit,query,github_pull_request_filter,+ sort_direction,).await.map_err(repository_error)diff --git a/crates/github_pull_requests/src/domain/service/test.rs b/crates/github_pull_requests/src/domain/service/test.rsindex 7a6e3e52a7..137ee574f2 100644--- a/crates/github_pull_requests/src/domain/service/test.rs+++ b/crates/github_pull_requests/src/domain/service/test.rs@@ -24,8 +24,8 @@ use crate::domain::{models::{EnrichedGithubPullRequest, GITHUB_PULL_REQUEST_FOREIGN_ENTITY_SOURCE,GithubPullRequestError, GithubPullRequestFacets, GithubPullRequestReviewDecision,- GithubPullRequestRow, GithubPullRequestStatus, GithubPullRequestWrite,- GithubRepositoryIdentity, UpsertGithubPullRequest,+ GithubPullRequestRow, GithubPullRequestSortDirection, GithubPullRequestStatus,+ GithubPullRequestWrite, GithubRepositoryIdentity, UpsertGithubPullRequest,},ports::{GithubPullRequestFacetRepository, GithubPullRequestFacetService,@@ -185,6 +185,7 @@ struct ListingCall {cursor_id: Option<Uuid>,cursor_value: Option<DateTime<Utc>>,github_pull_request_filter: Option<String>,+ sort_direction: GithubPullRequestSortDirection,}impl StubPullRequestRows {@@ -265,6 +266,7 @@ impl GithubPullRequestListingRepository for StubPullRequestRows {limit: u32,query: ForeignEntityListQuery,github_pull_request_filter: LiteralTree<GithubPullRequestLiteral>,+ sort_direction: GithubPullRequestSortDirection,) -> Result<Vec<ForeignEntity>, Self::Err> {if *self.fail_listings.lock().unwrap() {anyhow::bail!("listing failed");@@ -279,6 +281,7 @@ impl GithubPullRequestListingRepository for StubPullRequestRows {cursor_value: cursor_value.copied(),github_pull_request_filter: github_pull_request_filter.map(|filter| format!("{filter:?}")),+ sort_direction,});Ok(Vec::new())}@@ -728,6 +731,7 @@ async fn listing_without_sources_skips_the_repository() {10,listing_query(),None,+ GithubPullRequestSortDirection::Desc,).await.unwrap();@@ -737,7 +741,7 @@ async fn listing_without_sources_skips_the_repository() {}#[tokio::test]-async fn listing_forwards_the_caller_sources_limit_query_and_pull_request_filter() {+async fn listing_forwards_the_caller_sources_limit_query_filter_and_direction() {let rows = StubPullRequestRows::default();let service = service(&StubForeignEntityService::default(), &rows);let cursor_id = Uuid::new_v4();@@ -759,6 +763,7 @@ async fn listing_forwards_the_caller_sources_limit_query_and_pull_request_filterfilter: None,}),Some(draft.clone()),+ GithubPullRequestSortDirection::Asc,).await.unwrap();@@ -773,6 +778,7 @@ async fn listing_forwards_the_caller_sources_limit_query_and_pull_request_filtercursor_id: Some(cursor_id),cursor_value: Some(cursor_value),github_pull_request_filter: Some(format!("{draft:?}")),+ sort_direction: GithubPullRequestSortDirection::Asc,}]);}@@ -789,6 +795,7 @@ async fn listing_rejects_blank_sources() {10,listing_query(),None,+ GithubPullRequestSortDirection::Desc,).await.unwrap_err();@@ -810,7 +817,14 @@ async fn listing_reports_repository_failures() {let service = service(&StubForeignEntityService::default(), &rows);let error = service- .list_pull_requests(None, vec![user()], 10, listing_query(), None)+ .list_pull_requests(+ None,+ vec![user()],+ 10,+ listing_query(),+ None,+ GithubPullRequestSortDirection::Desc,+ ).await.unwrap_err();diff --git a/crates/github_pull_requests/src/outbound/pg_github_pull_request_repo/facets.rs b/crates/github_pull_requests/src/outbound/pg_github_pull_request_repo/facets.rsindex 88c0414063..b3ab39ff7d 100644--- a/crates/github_pull_requests/src/outbound/pg_github_pull_request_repo/facets.rs+++ b/crates/github_pull_requests/src/outbound/pg_github_pull_request_repo/facets.rs@@ -1,4 +1,4 @@-//! Repository and author counts over the pull requests a caller can see.+//! Repository, author, assignee, and label counts over the pull requests a caller can see.#[cfg(test)]mod test;@@ -8,8 +8,8 @@ use foreign_entity::domain::models::SourceId;use super::PgGithubPullRequestRepo;use crate::domain::{models::{- GITHUB_PULL_REQUEST_FOREIGN_ENTITY_SOURCE, GithubAuthorFacet, GithubPullRequestFacets,- GithubRepositoryFacet,+ GITHUB_PULL_REQUEST_FOREIGN_ENTITY_SOURCE, GithubLabelFacet, GithubPullRequestFacets,+ GithubRepositoryFacet, GithubUserFacet,},ports::GithubPullRequestFacetRepository,};@@ -95,6 +95,74 @@ impl GithubPullRequestFacetRepository for PgGithubPullRequestRepo {.fetch_all(&self.pool).await?;+ let assignees = sqlx::query!(+ r#"+ WITH sources AS (+ SELECT DISTINCT id, auth_entity+ FROM UNNEST($1::text[], $2::text[]) AS source(id, auth_entity)+ )+ SELECT+ assignee.value ->> 'githubUserId' AS "github_user_id!",+ (ARRAY_AGG(+ assignee.value ->> 'login'+ ORDER BY gpr.updated_at DESC, gpr.github_key+ ) FILTER (WHERE assignee.value ->> 'login' IS NOT NULL))[1] AS login,+ COUNT(*) AS "count!"+ FROM github_pull_request gpr+ CROSS JOIN LATERAL jsonb_array_elements(gpr.assignees) AS assignee(value)+ WHERE assignee.value ->> 'githubUserId' IS NOT NULL+ AND EXISTS (+ SELECT 1+ FROM foreign_entity fe+ JOIN sources s+ ON s.id = fe.stored_for_id AND s.auth_entity = fe.stored_for_auth_entity+ WHERE fe.foreign_entity_source = $3::text+ AND fe.foreign_entity_id = gpr.github_key+ )+ GROUP BY assignee.value ->> 'githubUserId'+ ORDER BY COUNT(*) DESC, assignee.value ->> 'githubUserId'+ "#,+ &ids,+ &auth_entities,+ GITHUB_PULL_REQUEST_FOREIGN_ENTITY_SOURCE,+ )+ .fetch_all(&self.pool)+ .await?;++ let labels = sqlx::query!(+ r#"+ WITH sources AS (+ SELECT DISTINCT id, auth_entity+ FROM UNNEST($1::text[], $2::text[]) AS source(id, auth_entity)+ )+ SELECT+ label.value ->> 'name' AS "name!",+ (ARRAY_AGG(+ label.value ->> 'color'+ ORDER BY gpr.updated_at DESC, gpr.github_key+ ) FILTER (WHERE label.value ->> 'color' IS NOT NULL))[1] AS color,+ COUNT(*) AS "count!"+ FROM github_pull_request gpr+ CROSS JOIN LATERAL jsonb_array_elements(gpr.labels) AS label(value)+ WHERE label.value ->> 'name' IS NOT NULL+ AND EXISTS (+ SELECT 1+ FROM foreign_entity fe+ JOIN sources s+ ON s.id = fe.stored_for_id AND s.auth_entity = fe.stored_for_auth_entity+ WHERE fe.foreign_entity_source = $3::text+ AND fe.foreign_entity_id = gpr.github_key+ )+ GROUP BY label.value ->> 'name'+ ORDER BY COUNT(*) DESC, label.value ->> 'name'+ "#,+ &ids,+ &auth_entities,+ GITHUB_PULL_REQUEST_FOREIGN_ENTITY_SOURCE,+ )+ .fetch_all(&self.pool)+ .await?;+Ok(GithubPullRequestFacets {repositories: repositories.into_iter()@@ -106,12 +174,28 @@ impl GithubPullRequestFacetRepository for PgGithubPullRequestRepo {.collect(),authors: authors.into_iter()- .map(|row| GithubAuthorFacet {+ .map(|row| GithubUserFacet {github_user_id: row.github_user_id,login: row.login,count: row.count,}).collect(),+ assignees: assignees+ .into_iter()+ .map(|row| GithubUserFacet {+ github_user_id: row.github_user_id,+ login: row.login,+ count: row.count,+ })+ .collect(),+ labels: labels+ .into_iter()+ .map(|row| GithubLabelFacet {+ name: row.name,+ color: row.color,+ count: row.count,+ })+ .collect(),})}}diff --git a/crates/github_pull_requests/src/outbound/pg_github_pull_request_repo/facets/test.rs b/crates/github_pull_requests/src/outbound/pg_github_pull_request_repo/facets/test.rsindex 8547cf498b..218c3f58e3 100644--- a/crates/github_pull_requests/src/outbound/pg_github_pull_request_repo/facets/test.rs+++ b/crates/github_pull_requests/src/outbound/pg_github_pull_request_repo/facets/test.rs@@ -13,8 +13,9 @@ use uuid::Uuid;use super::super::PgGithubPullRequestRepo;use crate::domain::{models::{- GITHUB_PULL_REQUEST_FOREIGN_ENTITY_SOURCE, GithubAuthorFacet, GithubPullRequestFacets,- GithubPullRequestRow, GithubPullRequestStatus, GithubRepositoryFacet,+ GITHUB_PULL_REQUEST_FOREIGN_ENTITY_SOURCE, GithubLabelFacet, GithubPullRequestFacets,+ GithubPullRequestLabel, GithubPullRequestRow, GithubPullRequestStatus,+ GithubPullRequestUser, GithubRepositoryFacet, GithubUserFacet,},ports::{GithubPullRequestFacetRepository, GithubPullRequestRepository},};@@ -121,21 +122,121 @@ async fn facets_count_each_visible_pull_request_once_by_repository_and_author(pocount: 2,}],authors: vec![- GithubAuthorFacet {+ GithubUserFacet {github_user_id: "42".to_string(),login: Some("octocat".to_string()),count: 1,},- GithubAuthorFacet {+ GithubUserFacet {github_user_id: "7".to_string(),login: None,count: 1,},],+ assignees: Vec::new(),+ labels: Vec::new(),});}+fn assignee(github_user_id: &str, login: &str) -> GithubPullRequestUser {+ GithubPullRequestUser {+ github_user_id: github_user_id.to_string(),+ login: Some(login.to_string()),+ }+}++fn label(name: &str, color: &str) -> GithubPullRequestLabel {+ GithubPullRequestLabel {+ name: name.to_string(),+ color: Some(color.to_string()),+ }+}++#[sqlx::test(migrator = "MACRO_DB_MIGRATIONS")]+async fn facets_count_assignees_and_labels_once_per_visible_pull_request(pool: PgPool) {+ let repo = PgGithubPullRequestRepo::new(pool.clone());++ store_for(&pool, "macro/app/pull/7", USER, "user").await;+ store_for(&pool, "macro/app/pull/7", TEAM, "team").await;+ repo.upsert_row(+ &(&GithubPullRequestRow {+ assignees: vec![assignee("42", "octocat"), assignee("7", "hubot")],+ labels: vec![label("bug", "000000")],+ ..row("macro/app/pull/7", Some(99), 7)+ })+ .into(),+ )+ .await+ .unwrap();++ store_for(&pool, "macro/app/pull/8", USER, "user").await;+ repo.upsert_row(+ &(&GithubPullRequestRow {+ assignees: vec![assignee("42", "octocat-renamed")],+ labels: vec![label("bug", "d73a4a"), label("docs", "0075ca")],+ github_updated_at: Some(chrono::Utc::now()),+ ..row("macro/app/pull/8", Some(99), 8)+ })+ .into(),+ )+ .await+ .unwrap();++ store_for(+ &pool,+ "macro/other/pull/1",+ "macro|[email protected]",+ "user",+ )+ .await;+ repo.upsert_row(+ &(&GithubPullRequestRow {+ assignees: vec![assignee("9", "invisible")],+ labels: vec![label("secret", "ffffff")],+ ..row("macro/other/pull/1", Some(100), 1)+ })+ .into(),+ )+ .await+ .unwrap();++ let facets = repo+ .github_pull_request_facets(vec![SourceId::user(USER), SourceId::new(TEAM, "team")])+ .await+ .expect("facets should load");++ assert_eq!(+ facets.assignees,+ vec![+ GithubUserFacet {+ github_user_id: "42".to_string(),+ login: Some("octocat-renamed".to_string()),+ count: 2,+ },+ GithubUserFacet {+ github_user_id: "7".to_string(),+ login: Some("hubot".to_string()),+ count: 1,+ },+ ]+ );+ assert_eq!(+ facets.labels,+ vec![+ GithubLabelFacet {+ name: "bug".to_string(),+ color: Some("d73a4a".to_string()),+ count: 2,+ },+ GithubLabelFacet {+ name: "docs".to_string(),+ color: Some("0075ca".to_string()),+ count: 1,+ },+ ]+ );+}async fn set_synced_at(pool: &PgPool, github_key: &str, timestamp: &str) {let timestamp = chrono::DateTime::parse_from_rfc3339(timestamp).unwrap()@@ -193,3 +294,47 @@ async fn facet_names_follow_sync_time_instead_of_pull_request_update_time(pool:assert_eq!(facets.repositories[0].count, 2);assert_eq!(facets.authors[0].count, 2);}++#[sqlx::test(migrator = "MACRO_DB_MIGRATIONS")]+async fn assignee_logins_and_label_colors_follow_sync_time(pool: PgPool) {+ let repo = PgGithubPullRequestRepo::new(pool.clone());+ for (key, number, login, color, github_updated_at, synced_at) in [+ (+ "macro/app/pull/1",+ 1,+ "old-login",+ "000000",+ "2026-05-02T00:00:00Z",+ "2026-05-03T00:00:00Z",+ ),+ (+ "macro/app/pull/2",+ 2,+ "new-login",+ "ffffff",+ "2026-05-01T00:00:00Z",+ "2026-05-04T00:00:00Z",+ ),+ ] {+ store_for(&pool, key, USER, "user").await;+ let mut pull_request = row(key, Some(99), number);+ pull_request.assignees = vec![assignee("42", login)];+ pull_request.labels = vec![label("bug", color)];+ pull_request.github_updated_at = Some(+ chrono::DateTime::parse_from_rfc3339(github_updated_at)+ .unwrap()+ .with_timezone(&chrono::Utc),+ );+ repo.upsert_row(&(&pull_request).into()).await.unwrap();+ set_synced_at(&pool, key, synced_at).await;+ }++ let facets = repo+ .github_pull_request_facets(vec![SourceId::user(USER)])+ .await+ .unwrap();+ assert_eq!(facets.assignees[0].login.as_deref(), Some("new-login"));+ assert_eq!(facets.labels[0].color.as_deref(), Some("ffffff"));+ assert_eq!(facets.assignees[0].count, 2);+ assert_eq!(facets.labels[0].count, 2);+}diff --git a/crates/github_pull_requests/src/outbound/pg_github_pull_request_repo/listing.rs b/crates/github_pull_requests/src/outbound/pg_github_pull_request_repo/listing.rsindex 0663059317..9cd07e6a20 100644--- a/crates/github_pull_requests/src/outbound/pg_github_pull_request_repo/listing.rs+++ b/crates/github_pull_requests/src/outbound/pg_github_pull_request_repo/listing.rs@@ -12,15 +12,20 @@ use foreign_entity::domain::{ports::ForeignEntityListQuery,};use item_filters::ast::{- LiteralTree, foreign_entity::ForeignEntityLiteral,- github_pull_request::GithubPullRequestLiteral,+ LiteralTree,+ foreign_entity::ForeignEntityLiteral,+ github_pull_request::{GithubPullRequestLiteral, GithubPullRequestReviewStatus},};use models_pagination::SimpleSortMethod;use uuid::Uuid;use super::PgGithubPullRequestRepo;use crate::domain::{- models::GITHUB_PULL_REQUEST_FOREIGN_ENTITY_SOURCE, ports::GithubPullRequestListingRepository,+ models::{+ GITHUB_PULL_REQUEST_FOREIGN_ENTITY_SOURCE, GithubPullRequestReviewDecision,+ GithubPullRequestSortDirection,+ },+ ports::GithubPullRequestListingRepository,};struct ListingQuery<'a> {@@ -39,6 +44,8 @@ struct ListingQuery<'a> {limit: i64,/// Keeps only pull requests whose typed columns match this jsonpath.github_pull_request_jsonpath: Option<&'a str>,+ /// Smallest sort value first, with the cursor paging toward larger values.+ ascending: bool,}fn source_id_parts(source_ids: &[SourceId]) -> (Vec<String>, Vec<String>) {@@ -228,6 +235,24 @@ fn github_pull_request_literal_jsonpath(literal: &GithubPullRequestLiteral) -> Sjsonpath_array_contains("requestedReviewers", id)}GithubPullRequestLiteral::Draft(draft) => format!("($.draft == {draft})"),+ GithubPullRequestLiteral::Assignee(id) => jsonpath_array_contains("assignees", id),+ GithubPullRequestLiteral::Label(name) => jsonpath_array_contains("labels", name),+ GithubPullRequestLiteral::ReviewStatus(status) => {+ let decision = match status {+ GithubPullRequestReviewStatus::None => return "($.reviewCount == 0)".to_string(),+ GithubPullRequestReviewStatus::Required => {+ GithubPullRequestReviewDecision::ReviewRequired+ }+ GithubPullRequestReviewStatus::Approved => {+ GithubPullRequestReviewDecision::Approved+ }+ GithubPullRequestReviewStatus::ChangesRequested => {+ GithubPullRequestReviewDecision::ChangesRequested+ }+ };+ jsonpath_text_eq("reviewDecision", decision.as_str())+ }+ GithubPullRequestLiteral::ReviewedBy(id) => jsonpath_array_contains("reviewers", id),}}@@ -259,6 +284,7 @@ impl PgGithubPullRequestRepo {cursor_value,limit,github_pull_request_jsonpath,+ ascending,} = query;let sort_method = sort_method.to_string();@@ -313,7 +339,12 @@ impl PgGithubPullRequestRepo {'status', gpr.status,'draft', gpr.draft,'requestedReviewers', to_jsonb(gpr.requested_reviewer_github_user_ids),- 'participants', to_jsonb(gpr.participant_github_user_ids)+ 'participants', to_jsonb(gpr.participant_github_user_ids),+ 'assignees', jsonb_path_query_array(gpr.assignees, '$[*].githubUserId'),+ 'labels', jsonb_path_query_array(gpr.labels, '$[*].name'),+ 'reviewers', jsonb_path_query_array(gpr.reviews, '$[*].reviewerGithubUserId'),+ 'reviewDecision', gpr.review_decision,+ 'reviewCount', jsonb_array_length(gpr.reviews)),($11::text)::jsonpath))@@ -349,8 +380,13 @@ impl PgGithubPullRequestRepo {updated_at as "updated_at!: DateTime<Utc>"FROM dedupedWHERE $5::timestamptz IS NULL- OR (sort_at, id) < ($5::timestamptz, $6::uuid)- ORDER BY sort_at DESC, id DESC+ OR ($12::bool AND (sort_at, id) > ($5::timestamptz, $6::uuid))+ OR (NOT $12::bool AND (sort_at, id) < ($5::timestamptz, $6::uuid))+ ORDER BY+ CASE WHEN $12::bool THEN sort_at END ASC,+ CASE WHEN $12::bool THEN id END ASC,+ sort_at DESC,+ id DESCLIMIT $7"#,source_ids,@@ -364,6 +400,7 @@ impl PgGithubPullRequestRepo {notification_user_id,GITHUB_PULL_REQUEST_FOREIGN_ENTITY_SOURCE,github_pull_request_jsonpath,+ ascending,).fetch_all(&self.pool).await@@ -397,6 +434,7 @@ impl GithubPullRequestListingRepository for PgGithubPullRequestRepo {limit: u32,query: ForeignEntityListQuery,github_pull_request_filter: LiteralTree<GithubPullRequestLiteral>,+ sort_direction: GithubPullRequestSortDirection,) -> Result<Vec<ForeignEntity>, Self::Err> {if source_ids.is_empty() || limit == 0 {return Ok(Vec::new());@@ -478,6 +516,7 @@ impl GithubPullRequestListingRepository for PgGithubPullRequestRepo {cursor_value: cursor_value.copied(),limit: limit as i64,github_pull_request_jsonpath: github_pull_request_jsonpath.as_deref(),+ ascending: sort_direction == GithubPullRequestSortDirection::Asc,}).await}diff --git a/crates/github_pull_requests/src/outbound/pg_github_pull_request_repo/listing/test.rs b/crates/github_pull_requests/src/outbound/pg_github_pull_request_repo/listing/test.rsindex 47cd864314..1144eceb21 100644--- a/crates/github_pull_requests/src/outbound/pg_github_pull_request_repo/listing/test.rs+++ b/crates/github_pull_requests/src/outbound/pg_github_pull_request_repo/listing/test.rs@@ -14,7 +14,9 @@ use foreign_entity::{use item_filters::ast::{LiteralTree,foreign_entity::ForeignEntityLiteral,- github_pull_request::{GithubPullRequestLiteral, GithubPullRequestState},+ github_pull_request::{+ GithubPullRequestLiteral, GithubPullRequestReviewStatus, GithubPullRequestState,+ },};use macro_db_migrator::MACRO_DB_MIGRATIONS;use models_pagination::{Cursor, CursorVal, Query, SimpleSortMethod};@@ -23,7 +25,9 @@ use sqlx::PgPool;use uuid::Uuid;use super::super::PgGithubPullRequestRepo;-use crate::domain::ports::GithubPullRequestListingRepository;+use crate::domain::{+ models::GithubPullRequestSortDirection, ports::GithubPullRequestListingRepository,+};fn create_request_for_source(foreign_entity_id: impl Into<String>,@@ -297,6 +301,7 @@ async fn list_returns_matching_user_and_team_sources(pool: PgPool) {10,list_query(SimpleSortMethod::UpdatedAt),None,+ GithubPullRequestSortDirection::Desc,).await.expect("foreign entities should be listed for matching sources");@@ -329,6 +334,7 @@ async fn list_empty_sources_returns_empty(pool: PgPool) {10,list_query(SimpleSortMethod::UpdatedAt),None,+ GithubPullRequestSortDirection::Desc,).await.expect("empty source list should succeed");@@ -386,6 +392,7 @@ async fn list_dedupes_duplicate_source_grants(pool: PgPool) {10,list_query(SimpleSortMethod::UpdatedAt),None,+ GithubPullRequestSortDirection::Desc,).await.expect("duplicate foreign entity grants should be listed once");@@ -455,6 +462,7 @@ async fn list_paginates_by_created_at(pool: PgPool) {2,list_query(SimpleSortMethod::CreatedAt),None,+ GithubPullRequestSortDirection::Desc,).await.expect("first created_at page should be fetched");@@ -465,6 +473,7 @@ async fn list_paginates_by_created_at(pool: PgPool) {2,cursor_query(&first_page[1], SimpleSortMethod::CreatedAt),None,+ GithubPullRequestSortDirection::Desc,).await.expect("second created_at page should be fetched");@@ -473,6 +482,54 @@ async fn list_paginates_by_created_at(pool: PgPool) {assert_eq!(second_page, vec![third]);}+#[sqlx::test(migrator = "MACRO_DB_MIGRATIONS")]+async fn list_paginates_ascending_from_the_oldest(pool: PgPool) {+ let repo = PgForeignEntityRepo::new(pool.clone());+ let listing = PgGithubPullRequestRepo::new(pool.clone());+ let user = "macro|[email protected]";+ let now = Utc::now();+ let mut entities = Vec::new();+ for minutes_ago in [1, 2, 3] {+ let entity = insert_foreign_entity_for_source(+ &repo,+ &format!("pr-{minutes_ago}"),+ "github_pull_request",+ user,+ "user",+ )+ .await;+ let created_at = now - chrono::Duration::minutes(minutes_ago);+ entities.push(set_timestamps(&pool, &repo, &entity, created_at, created_at).await);+ }+ let [newest, middle, oldest] = <[ForeignEntity; 3]>::try_from(entities).unwrap();++ let first_page = listing+ .list_pull_requests(+ None,+ vec![SourceId::user(user)],+ 2,+ list_query(SimpleSortMethod::CreatedAt),+ None,+ GithubPullRequestSortDirection::Asc,+ )+ .await+ .expect("first ascending page should be fetched");+ let second_page = listing+ .list_pull_requests(+ None,+ vec![SourceId::user(user)],+ 2,+ cursor_query(&first_page[1], SimpleSortMethod::CreatedAt),+ None,+ GithubPullRequestSortDirection::Asc,+ )+ .await+ .expect("second ascending page should be fetched");++ assert_eq!(first_page, vec![oldest, middle]);+ assert_eq!(second_page, vec![newest]);+}+#[sqlx::test(migrator = "MACRO_DB_MIGRATIONS")]async fn list_paginates_by_updated_at(pool: PgPool) {let repo = PgForeignEntityRepo::new(pool.clone());@@ -534,6 +591,7 @@ async fn list_paginates_by_updated_at(pool: PgPool) {2,list_query(SimpleSortMethod::UpdatedAt),None,+ GithubPullRequestSortDirection::Desc,).await.expect("first updated_at page should be fetched");@@ -544,6 +602,7 @@ async fn list_paginates_by_updated_at(pool: PgPool) {2,cursor_query(&first_page[1], SimpleSortMethod::UpdatedAt),None,+ GithubPullRequestSortDirection::Desc,).await.expect("second updated_at page should be fetched");@@ -583,6 +642,7 @@ async fn list_applies_foreign_entity_filters(pool: PgPool) {10,filter_query(source_filter),None,+ GithubPullRequestSortDirection::Desc,).await.expect("foreign entity source filter should be applied");@@ -597,6 +657,7 @@ async fn list_applies_foreign_entity_filters(pool: PgPool) {10,filter_query(not_linear_filter),None,+ GithubPullRequestSortDirection::Desc,).await.expect("foreign entity negated filter should be applied");@@ -625,6 +686,7 @@ async fn list_includes_me_matches_the_typed_participants(pool: PgPool) {10,filter_query(includes_me_filter()),None,+ GithubPullRequestSortDirection::Desc,).await.expect("includes_me filter should be applied");@@ -667,6 +729,7 @@ async fn list_includes_me_matches_every_linked_github_identity(pool: PgPool) {10,filter_query(includes_me_filter()),None,+ GithubPullRequestSortDirection::Desc,).await.expect("includes_me should match both linked identities");@@ -690,6 +753,7 @@ async fn list_includes_me_without_github_link_returns_empty(pool: PgPool) {10,filter_query(includes_me_filter()),None,+ GithubPullRequestSortDirection::Desc,).await.expect("includes_me without a github link should succeed");@@ -712,6 +776,7 @@ async fn list_includes_me_without_requesting_user_returns_empty(pool: PgPool) {10,filter_query(includes_me_filter()),None,+ GithubPullRequestSortDirection::Desc,).await.expect("includes_me without a requesting user should succeed");@@ -744,6 +809,7 @@ async fn list_includes_me_composes_with_other_filters(pool: PgPool) {10,filter_query(filter),None,+ GithubPullRequestSortDirection::Desc,).await.expect("includes_me composed with a source filter should be applied");@@ -767,6 +833,7 @@ async fn list_includes_me_composes_with_the_pull_request_filter(pool: PgPool) {10,filter_query(includes_me_filter()),Some(Arc::new(Expr::val(GithubPullRequestLiteral::Draft(draft)))),+ GithubPullRequestSortDirection::Desc,)};@@ -793,6 +860,7 @@ async fn list_includes_me_under_not_fails_closed(pool: PgPool) {10,filter_query(filter),None,+ GithubPullRequestSortDirection::Desc,).await.expect("unsupported includes_me placement should fail closed");@@ -839,6 +907,7 @@ async fn list_notification_done_filters_by_done_state(pool: PgPool) {item_filters::NotificationState::Done,])),None,+ GithubPullRequestSortDirection::Desc,).await.expect("done=true filter should be applied");@@ -853,6 +922,7 @@ async fn list_notification_done_filters_by_done_state(pool: PgPool) {item_filters::NotificationState::Seen,])),None,+ GithubPullRequestSortDirection::Desc,).await.expect("done=false filter should be applied");@@ -892,6 +962,7 @@ async fn list_notification_seen_filters_by_seen_state(pool: PgPool) {item_filters::NotificationState::Done,])),None,+ GithubPullRequestSortDirection::Desc,).await.expect("seen=true filter should be applied");@@ -905,6 +976,7 @@ async fn list_notification_seen_filters_by_seen_state(pool: PgPool) {item_filters::NotificationState::Unseen,])),None,+ GithubPullRequestSortDirection::Desc,).await.expect("seen=false filter should be applied");@@ -950,6 +1022,7 @@ async fn list_notification_done_composes_with_source(pool: PgPool) {10,filter_query(filter),None,+ GithubPullRequestSortDirection::Desc,).await.expect("source AND notification done filter should be applied");@@ -984,6 +1057,7 @@ async fn list_notification_done_scopes_to_requesting_user(pool: PgPool) {item_filters::NotificationState::Done,])),None,+ GithubPullRequestSortDirection::Desc,).await.expect("notification filter scoped to requesting user should be applied");@@ -1011,6 +1085,7 @@ async fn list_notification_filter_without_requesting_user_returns_empty(pool: Pgitem_filters::NotificationState::Done,])),None,+ GithubPullRequestSortDirection::Desc,).await.expect("notification filter without a requesting user should succeed");@@ -1039,6 +1114,7 @@ async fn list_notification_state_and_requires_each_witness(pool: PgPool) {item_filters::NotificationState::Done,])),None,+ GithubPullRequestSortDirection::Desc,).await.expect("done=true filter should be applied");@@ -1066,6 +1142,7 @@ async fn list_notification_state_and_requires_each_witness(pool: PgPool) {10,filter_query(contradiction),None,+ GithubPullRequestSortDirection::Desc,).await.expect("contradictory notification filter should be applied");@@ -1095,6 +1172,7 @@ async fn list_excludes_other_foreign_entity_sources(pool: PgPool) {10,list_query(SimpleSortMethod::UpdatedAt),None,+ GithubPullRequestSortDirection::Desc,).await.expect("listing should succeed");@@ -1151,6 +1229,7 @@ async fn list_filtered(10,list_query(SimpleSortMethod::UpdatedAt),github_pull_request_filter,+ GithubPullRequestSortDirection::Desc,).await.expect("listing should succeed")@@ -1271,6 +1350,156 @@ async fn list_pull_request_filters_match_the_typed_columns(pool: PgPool) {);}+async fn set_review_columns(+ pool: &PgPool,+ github_key: &str,+ assignees: serde_json::Value,+ labels: serde_json::Value,+ reviews: serde_json::Value,+ review_decision: Option<&str>,+) {+ sqlx::query(+ r#"+ UPDATE github_pull_request+ SET assignees = $2, labels = $3, reviews = $4, review_decision = $5+ WHERE github_key = $1+ "#,+ )+ .bind(github_key)+ .bind(assignees)+ .bind(labels)+ .bind(reviews)+ .bind(review_decision)+ .execute(pool)+ .await+ .expect("review columns should be updated");+}++async fn listed(listing: &PgGithubPullRequestRepo, literal: GithubPullRequestLiteral) -> Vec<Uuid> {+ ids(&list_filtered(listing, Some(Arc::new(Expr::val(literal)))).await)+}++#[sqlx::test(migrator = "MACRO_DB_MIGRATIONS")]+async fn list_pull_request_filters_match_assignees_labels_and_reviews(pool: PgPool) {+ let repo = PgForeignEntityRepo::new(pool.clone());+ let listing = PgGithubPullRequestRepo::new(pool.clone());+ let user = "macro|[email protected]";+ let mut entities = Vec::new();+ for number in [1, 2, 3] {+ let github_key = format!("macro/app/pull/{number}");+ entities.push(+ insert_foreign_entity_for_source(+ &repo,+ &github_key,+ "github_pull_request",+ user,+ "user",+ )+ .await,+ );+ insert_pull_request_row(+ &pool,+ PullRequestRow {+ github_key: &github_key,+ repository_id: 99,+ number,+ status: "open",+ author: "7",+ requested_reviewers: &[],+ participants: &[],+ github_updated_minutes_ago: number as i32,+ },+ )+ .await;+ }+ let [approved, changes_requested, unreviewed] =+ <[ForeignEntity; 3]>::try_from(entities).unwrap();+ set_review_columns(+ &pool,+ "macro/app/pull/1",+ json!([{ "githubUserId": "42", "login": "octocat" }]),+ json!([{ "name": "bug", "color": "d73a4a" }]),+ json!([{ "reviewerGithubUserId": "42", "state": "approved" }]),+ Some("approved"),+ )+ .await;+ set_review_columns(+ &pool,+ "macro/app/pull/2",+ json!([]),+ json!([{ "name": "bug" }, { "name": "docs" }]),+ json!([+ { "reviewerGithubUserId": "42", "state": "commented" },+ { "reviewerGithubUserId": "8", "state": "changes_requested" }+ ]),+ Some("changes_requested"),+ )+ .await;+ set_review_columns(+ &pool,+ "macro/app/pull/3",+ json!([]),+ json!([]),+ json!([]),+ Some("review_required"),+ )+ .await;+ assert_eq!(+ listed(+ &listing,+ GithubPullRequestLiteral::Assignee("42".to_owned())+ )+ .await,+ vec![approved.id]+ );+ assert_eq!(+ listed(&listing, GithubPullRequestLiteral::Label("bug".to_owned())).await,+ vec![approved.id, changes_requested.id]+ );+ assert_eq!(+ listed(+ &listing,+ GithubPullRequestLiteral::ReviewedBy("42".to_owned())+ )+ .await,+ vec![approved.id, changes_requested.id]+ );+ assert_eq!(+ listed(+ &listing,+ GithubPullRequestLiteral::ReviewStatus(GithubPullRequestReviewStatus::ChangesRequested)+ )+ .await,+ vec![changes_requested.id]+ );+ assert_eq!(+ listed(+ &listing,+ GithubPullRequestLiteral::ReviewStatus(GithubPullRequestReviewStatus::Required)+ )+ .await,+ vec![unreviewed.id]+ );+ assert_eq!(+ listed(+ &listing,+ GithubPullRequestLiteral::ReviewStatus(GithubPullRequestReviewStatus::None)+ )+ .await,+ vec![unreviewed.id]+ );+ assert_eq!(+ ids(&list_filtered(+ &listing,+ Some(Arc::new(Expr::is_not(Expr::val(+ GithubPullRequestLiteral::ReviewedBy("42".to_owned())+ ))))+ )+ .await),+ vec![unreviewed.id]+ );+}+#[sqlx::test(migrator = "MACRO_DB_MIGRATIONS")]async fn list_updated_sort_uses_githubs_updated_at_when_known(pool: PgPool) {let repo = PgForeignEntityRepo::new(pool.clone());diff --git a/crates/github_pull_requests/src/outbound/pg_github_pull_request_repo/listing/test/notification_state.rs b/crates/github_pull_requests/src/outbound/pg_github_pull_request_repo/listing/test/notification_state.rsindex 34b38fbeac..c72dd61ea5 100644--- a/crates/github_pull_requests/src/outbound/pg_github_pull_request_repo/listing/test/notification_state.rs+++ b/crates/github_pull_requests/src/outbound/pg_github_pull_request_repo/listing/test/notification_state.rs@@ -58,6 +58,7 @@ async fn notification_boolean_filters_match_every_present_state_set(pool: PgPool100,filter_query(Some(Arc::new(expr))),None,+ GithubPullRequestSortDirection::Desc,).await.unwrap()@@ -80,6 +81,7 @@ async fn notification_boolean_filters_match_every_present_state_set(pool: PgPool100,filter_query(Some(Arc::new(Expr::is_not(leaf(Done))))),None,+ GithubPullRequestSortDirection::Desc,).await.unwrap();diff --git a/crates/graphql_soup_filter_input/src/lib.rs b/crates/graphql_soup_filter_input/src/lib.rsindex d8326e89ce..901b90c56b 100644--- a/crates/graphql_soup_filter_input/src/lib.rs+++ b/crates/graphql_soup_filter_input/src/lib.rs@@ -31,7 +31,9 @@ use item_filters::{document::DocumentLiteral,email::{Email, EmailLiteral},foreign_entity::ForeignEntityLiteral,- github_pull_request::{GithubPullRequestLiteral, GithubPullRequestState},+ github_pull_request::{+ GithubPullRequestLiteral, GithubPullRequestReviewStatus, GithubPullRequestState,+ },initiative::InitiativeLiteral,project::ProjectLiteral,properties::{EntityRefId, PropertiesLiteral, PropertyEntityType, PropertyMatchValue},@@ -1292,6 +1294,14 @@ enum GraphqlGithubPullRequestLiteral {ReviewRequested(String),/// The draft option.Draft(bool),+ /// The numeric GitHub user id of an assignee.+ Assignee(String),+ /// The label name option.+ Label(String),+ /// The review status option.+ ReviewStatus(GraphqlGithubPullRequestReviewStatus),+ /// The numeric GitHub user id of someone who submitted a review.+ ReviewedBy(String),}impl IntoFilterExpr<GithubPullRequestLiteral> for GraphqlGithubPullRequestLiteral {@@ -1310,6 +1320,12 @@ impl IntoFilterExpr<GithubPullRequestLiteral> for GraphqlGithubPullRequestLiteraSelf::Involves(id) => GithubPullRequestLiteral::Involves(id),Self::ReviewRequested(id) => GithubPullRequestLiteral::ReviewRequested(id),Self::Draft(draft) => GithubPullRequestLiteral::Draft(draft),+ Self::Assignee(id) => GithubPullRequestLiteral::Assignee(id),+ Self::Label(name) => GithubPullRequestLiteral::Label(name),+ Self::ReviewStatus(status) => {+ GithubPullRequestLiteral::ReviewStatus(status.into_model())+ }+ Self::ReviewedBy(id) => GithubPullRequestLiteral::ReviewedBy(id),};Ok(Expr::val(literal))}@@ -1412,3 +1428,30 @@ impl GraphqlGithubPullRequestState {}}}++/// GraphQL input representing a GitHub pull request review status.+#[cfg_attr(feature = "server", derive(async_graphql::Enum))]+#[derive(Copy, Clone, Eq, PartialEq, Serialize, Deserialize)]+#[serde(rename_all = "SCREAMING_SNAKE_CASE")]+enum GraphqlGithubPullRequestReviewStatus {+ /// The no reviews option.+ None,+ /// The review required option.+ Required,+ /// The approved option.+ Approved,+ /// The changes requested option.+ ChangesRequested,+}++impl GraphqlGithubPullRequestReviewStatus {+ /// Convert this GraphQL review status into the filter model.+ fn into_model(self) -> GithubPullRequestReviewStatus {+ match self {+ Self::None => GithubPullRequestReviewStatus::None,+ Self::Required => GithubPullRequestReviewStatus::Required,+ Self::Approved => GithubPullRequestReviewStatus::Approved,+ Self::ChangesRequested => GithubPullRequestReviewStatus::ChangesRequested,+ }+ }+}diff --git a/crates/item_filters/src/ast/github_pull_request.rs b/crates/item_filters/src/ast/github_pull_request.rsindex 8be97eec23..587e2b3d2e 100644--- a/crates/item_filters/src/ast/github_pull_request.rs+++ b/crates/item_filters/src/ast/github_pull_request.rs@@ -24,6 +24,32 @@ pub enum GithubPullRequestLiteral {/// Whether the pull request is a draft.#[serde(rename = "draft")]Draft(bool),+ /// The pull request is assigned to the GitHub user with this numeric id.+ #[serde(rename = "as")]+ Assignee(String),+ /// The pull request has a label with this name.+ #[serde(rename = "lbl")]+ Label(String),+ /// The pull request's reviews are in this state.+ #[serde(rename = "rs")]+ ReviewStatus(GithubPullRequestReviewStatus),+ /// The GitHub user with this numeric id has submitted a review of the pull request.+ #[serde(rename = "rb")]+ ReviewedBy(String),+}++/// The review state of a GitHub pull request, from each reviewer's latest review.+#[derive(Debug, Serialize, Deserialize, Clone, Copy, PartialEq, Eq)]+#[serde(rename_all = "snake_case")]+pub enum GithubPullRequestReviewStatus {+ /// Nobody has submitted a review.+ None,+ /// Reviews are requested and no reviewer has approved or requested changes.+ Required,+ /// A reviewer approved and none has outstanding requested changes.+ Approved,+ /// A reviewer requested changes.+ ChangesRequested,}/// The lifecycle state of a GitHub pull request.diff --git a/crates/soup/src/domain/service.rs b/crates/soup/src/domain/service.rsindex a76aaac738..2304ea247a 100644--- a/crates/soup/src/domain/service.rs+++ b/crates/soup/src/domain/service.rs@@ -34,7 +34,9 @@ use frecency::domain::{},ports::FrecencyQueryService,};-use github_pull_requests::domain::ports::GithubPullRequestListing;+use github_pull_requests::domain::{+ models::GithubPullRequestSortDirection, ports::GithubPullRequestListing,+};use item_filters::ast::{EntityFilterAst, LiteralTree,channel::{ChannelLiteral, ChannelThreadLiteral},@@ -1070,6 +1072,7 @@ whereforeign_entity_ids.len() as u32,foreign_entity_query,legs.github_pull_request_filter.clone(),+ SoupSortDirection::Desc,),self.handle_reminder_request(reminder_request),);@@ -1300,6 +1303,7 @@ wherelimit: u32,query: Option<ForeignEntityListQuery>,github_pull_request_filter: LiteralTree<GithubPullRequestLiteral>,+ sort_direction: SoupSortDirection,) -> Result<impl Iterator<Item = SoupCandidate>, SoupErr> {let Some(query) = query else {return Ok(Either::Left(None.into_iter()));@@ -1313,6 +1317,10 @@ wherelimit,query,github_pull_request_filter,+ match sort_direction {+ SoupSortDirection::Asc => GithubPullRequestSortDirection::Asc,+ SoupSortDirection::Desc => GithubPullRequestSortDirection::Desc,+ },).await?.into_iter()@@ -1641,6 +1649,7 @@ wherelimit as u32,foreign_entity_query,github_pull_request_filter,+ sort_direction,);let (diff --git a/crates/soup/src/domain/service/agent_metadata.rs b/crates/soup/src/domain/service/agent_metadata.rsindex a4f2aeb73b..bc995d3958 100644--- a/crates/soup/src/domain/service/agent_metadata.rs+++ b/crates/soup/src/domain/service/agent_metadata.rs@@ -80,6 +80,7 @@ pub(super) async fn enrich<F: GithubPullRequestListing>(keys.len() as u32,Query::new(None, SimpleSortMethod::UpdatedAt, Some(ids)),None,+ GithubPullRequestSortDirection::Desc,).await.map_err(anyhow::Error::from)diff --git a/crates/soup/src/domain/service/tests.rs b/crates/soup/src/domain/service/tests.rsindex 0a260f1390..2d873dbdbc 100644--- a/crates/soup/src/domain/service/tests.rs+++ b/crates/soup/src/domain/service/tests.rs@@ -20,7 +20,9 @@ use frecency::domain::models::{FrecencyPageRequest, FrecencyPageResponse};use frecency::domain::ports::MockFrecencyQueryService;use frecency::domain::services::FrecencyQueryServiceImpl;use frecency::{domain::models::AggregateFrecency, outbound::mock::MockFrecencyStorage};-use github_pull_requests::domain::models::GithubPullRequestError;+use github_pull_requests::domain::models::{+ GithubPullRequestError, GithubPullRequestSortDirection,+};use item_filters::{ChannelThreadFilters, EntityFilters, ForeignEntityFilters,ast::{@@ -275,6 +277,7 @@ impl GithubPullRequestListing for NoopPullRequestListing {_limit: u32,_query: ForeignEntityListQuery,_github_pull_request_filter: LiteralTree<GithubPullRequestLiteral>,+ _sort_direction: GithubPullRequestSortDirection,) -> Result<Vec<ForeignEntity>, GithubPullRequestError> {Ok(Vec::new())}@@ -297,6 +300,7 @@ struct RecordedPullRequestListingCall {limit: u32,query: ForeignEntityListQuery,github_pull_request_filter: LiteralTree<GithubPullRequestLiteral>,+ sort_direction: GithubPullRequestSortDirection,}fn foreign_entity_matches_filter(@@ -361,6 +365,7 @@ impl GithubPullRequestListing for RecordingPullRequestListing {limit: u32,query: ForeignEntityListQuery,github_pull_request_filter: LiteralTree<GithubPullRequestLiteral>,+ sort_direction: GithubPullRequestSortDirection,) -> Result<Vec<ForeignEntity>, GithubPullRequestError> {let filter = query.filter().clone();@@ -374,6 +379,7 @@ impl GithubPullRequestListing for RecordingPullRequestListing {limit,query,github_pull_request_filter,+ sort_direction,});Ok(self@@ -832,6 +838,55 @@ async fn simple_soup_passes_the_github_pull_request_filter_to_the_listing() {format!("{:?}", calls[0].github_pull_request_filter),format!("{:?}", Some(draft)));+ assert_eq!(+ calls[0].sort_direction,+ GithubPullRequestSortDirection::Desc+ );+}++#[tokio::test]+async fn ascending_simple_soup_lists_pull_requests_oldest_first() {+ let user = MacroUserIdStr::parse_from_str("macro|[email protected]").unwrap();+ let pull_request_listing = RecordingPullRequestListing::new(Vec::new());+ let mut soup_mock = MockSoupRepo::new();+ soup_mock+ .expect_unexpanded_generic_cursor_soup()+ .times(1)+ .returning(|_params| Box::pin(async move { Ok(Vec::new()) }));++ SoupImpl::new(+ soup_mock,+ FrecencyQueryServiceImpl::new(MockFrecencyStorage::new()),+ NoopEmailPreviewService,+ NoopCommsService,+ NoopCallRecordQueryService,+ NoOpCrmService,+ pull_request_listing.clone(),+ NoOpRemindersService,+ )+ .get_user_soup(+ SoupRequest {+ sort_direction: SoupSortDirection::Asc,+ email_preview_view: PreviewView::StandardLabel(+ email::domain::models::PreviewViewStandardLabel::Inbox,+ ),+ link_ids: vec![],+ soup_type: SoupType::UnExpanded,+ limit: 20,+ cursor: SoupQuery::new_sort_simple(+ SimpleSortMethod::UpdatedAt,+ EntityFilterAst::mock_empty(),+ ),+ user: user.clone(),+ },+ None,+ )+ .await+ .unwrap();++ let calls = pull_request_listing.calls();+ assert_eq!(calls.len(), 1);+ assert_eq!(calls[0].sort_direction, GithubPullRequestSortDirection::Asc);}#[tokio::test]diff --git a/packages/sdk/generated/storage/index.ts b/packages/sdk/generated/storage/index.tsindex d93b542db4..6f2aadd9b6 100644--- a/packages/sdk/generated/storage/index.ts+++ b/packages/sdk/generated/storage/index.ts@@ -1,4 +1,4 @@// This file is auto-generated by @hey-api/openapi-tsexport { type Options, Sdk } from './sdk.gen';-export type { AccessLevel, ActiveCallsResponse, ActiveCallSummary, ActiveMeeting, ActiveMeetingsResponse, ActivityType, AddFavoriteData, AddFavoriteError, AddFavoriteErrors, AddFavoriteRequest, AddFavoriteResponse, AddFavoriteResponses, AddParticipantsData, AddParticipantsError, AddParticipantsErrors, AddParticipantsRequest, AddParticipantsResponses, AddPinHandlerData, AddPinHandlerError, AddPinHandlerErrors, AddPinHandlerResponse, AddPinHandlerResponses, AddPinRequest, Agent, AgentActionId, AgentChannelScope, AgentMcpServer, AgentMcpServers, AgentPullRequestState, AgentSessionFilters, AgentSessionLifecycleEvent, Anchor, AnchorId, AnchorResponse, AnnotationIncrementalUpdate, ApiActivity, ApiAttachmentChannelReference, ApiAttachmentEntityReference, ApiAttachmentGenericReference, ApiChannelAttachment, ApiChannelAttachmentsPage, ApiChannelDetail, ApiChannelListMessage, ApiChannelListPage, ApiChannelListParticipant, ApiChannelListType, ApiChannelParticipant, ApiChannelWithLatest, ApiEntityFilterAst, ApiGroupByField, ApiGroupMeta, ApiParticipantListRole, ApiParticipantRole, ApiPropertyEntityType, ApplyDatabaseOpsData, ApplyDatabaseOpsError, ApplyDatabaseOpsErrors, ApplyDatabaseOpsResponse, ApplyDatabaseOpsResponses, ApplyOpsRequest, ApplyOpsResponse, ApproveHarnessPairingData, ApproveHarnessPairingError, ApproveHarnessPairingErrors, ApproveHarnessPairingResponse, ApproveHarnessPairingResponses, ApprovePairingRequest, AssignInitiativeTasksData, AssignInitiativeTasksError, AssignInitiativeTasksErrors, AssignInitiativeTasksResponse, AssignInitiativeTasksResponses, AssignTasksRequest, AssignTasksResponse, AssignTasksResult, AssignTaskStatus, AttachmentChange, AttendeeResponseStatus, Awareness, AwarenessRelay, BasicDocument, BasicDocumentSubType, BomPart, Bot, BotChannel, BotChannelType, BotId, BotKind, BotOwner, BotOwnerProfile, BotSenderProfile, BotToken, BranchNameResponse, BTreeMap, BulkWakeupRequest, BulkWakeupResponse, BulkWakeupSyncServiceDocumentsData, BulkWakeupSyncServiceDocumentsErrors, BulkWakeupSyncServiceDocumentsResponse, BulkWakeupSyncServiceDocumentsResponses, CalendarAttendee, CalendarEvent, CalendarEventFilters, CalendarEventSourceContent, CalendarMentionEvent, CalendarMentionPreviewItem, CalendarMentionPreviewKind, CalendarMentionPreviewRequest, CalendarMentionPreviewRequestItem, CalendarMentionPreviewResponse, CalendarOccurrence, CalendarOccurrenceItem, CalendarOccurrenceResponse, CalendarSyncStatus, CallActiveResponse, CallFilters, CallRecord, CallRecordGuest, CallRecordParticipant, CallRecordPreview, CallRecordPreviewData, CallRecordTranscriptSegment, CallStatus, CallTokenResponse, CallWebhookData, CallWebhookError, CallWebhookErrors, CallWebhookResponses, CancelSlackImportData, CancelSlackImportErrors, CancelSlackImportResponse, CancelSlackImportResponses, CardPosition, CastVerdict, CellValue, CellWrite, Channel, ChannelCreatedMetadata, ChannelDeletedMetadata, ChannelFilters, ChannelJoinCodeResponse, ChannelLabel, ChannelLabelRule, ChannelLabelsList, ChannelMessage, ChannelParticipant, ChannelParticipantAddedMetadata, ChannelParticipantRemovedMetadata, ChannelPreview, ChannelPreviewData, ChannelSender, ChannelSharePermission, ChannelThreadFilters, ChannelTopicEvent, ChannelType, ChannelUpdatedMetadata, ChannelWebhookRequest, ChannelWebhookResponse, ChannelWithParticipants, Chat, ChatFilters, CheckActiveCallData, CheckActiveCallError, CheckActiveCallErrors, CheckActiveCallResponse, CheckActiveCallResponses, ClaimedPairing, ClaimHarnessPairingData, ClaimHarnessPairingError, ClaimHarnessPairingErrors, ClaimHarnessPairingResponse, ClaimHarnessPairingResponses, ClaimPairingRequest, ClientOptions, CloudStorageItemType, CollabSurfaceResponse, CollabSurfaceTokenResponse, Column, ColumnCast, ColumnChange, ColumnChangeKind, ColumnConfig, ColumnConversion, ColumnConversionRequest, ColumnDetail, ColumnKind, ColumnResult, CommandFailure, CommandRejectedMetadata, CommittedChange, CompleteSlackImportUploadsData, CompleteSlackImportUploadsErrors, CompleteSlackImportUploadsResponse, CompleteSlackImportUploadsResponses, CompleteUploads, ConferenceProvider, Conjunction, ConversationId, ConversationKind, ConversationMetadata, ConversationProgress, ConversationSeal, ConversationStatus, ConvertDatabaseColumnData, ConvertDatabaseColumnError, ConvertDatabaseColumnErrors, ConvertDatabaseColumnResponse, ConvertDatabaseColumnResponses, ConvertedCell, CopyDocumentData, CopyDocumentError, CopyDocumentErrors, CopyDocumentQueryParams, CopyDocumentRequest, CopyDocumentResponse, CopyDocumentResponse2, CopyDocumentResponses, CountedReaction, CreateAgentData, CreateAgentError, CreateAgentErrors, CreateAgentRequest, CreateAgentResponse, CreateAgentResponses, CreateAnchorData, CreateAnchorError, CreateAnchorErrors, CreateAnchorResponse, CreateAnchorResponses, CreateBotRequest, CreateBulkDocumentResponse, CreateBulkDocumentResponseData, CreateChannelData, CreateChannelError, CreateChannelErrors, CreateChannelLabelData, CreateChannelLabelError, CreateChannelLabelErrors, CreateChannelLabelRequest, CreateChannelLabelResponse, CreateChannelLabelResponses, CreateChannelRequest, CreateChannelResponse, CreateChannelResponse2, CreateChannelResponses, CreateChannelScopedBotData, CreateChannelScopedBotError, CreateChannelScopedBotErrors, CreateChannelScopedBotRequest, CreateChannelScopedBotResponse, CreateChannelScopedBotResponse2, CreateChannelScopedBotResponses, CreateCollabSurfaceTokenData, CreateCollabSurfaceTokenError, CreateCollabSurfaceTokenErrors, CreateCollabSurfaceTokenResponse, CreateCollabSurfaceTokenResponses, CreateCrmCompanyData, CreateCrmCompanyError, CreateCrmCompanyErrors, CreateCrmCompanyRequest, CreateCrmCompanyResponse, CreateCrmCompanyResponses, CreateCrmContactData, CreateCrmContactError, CreateCrmContactErrors, CreateCrmContactRequest, CreateCrmContactResponse, CreateCrmContactResponses, CreateDatabaseData, CreateDatabaseError, CreateDatabaseErrors, CreateDatabaseRequest, CreateDatabaseResponse, CreateDatabaseResponses, CreateDocumentData, CreateDocumentError, CreateDocumentErrors, CreateDocumentRequest, CreateDocumentResponse, CreateDocumentResponseData, CreateDocumentResponses, CreatedPairing, CreatedUserApiKey, CreateEntityMentionData, CreateEntityMentionError, CreateEntityMentionErrors, CreateEntityMentionRequest, CreateEntityMentionResponse, CreateEntityMentionResponse2, CreateEntityMentionResponses, CreateHarnessPairingData, CreateHarnessPairingError, CreateHarnessPairingErrors, CreateHarnessPairingResponse, CreateHarnessPairingResponses, CreateImport, CreateInitiativeData, CreateInitiativeError, CreateInitiativeErrors, CreateInitiativeRequest, CreateInitiativeResponse, CreateInitiativeResponses, CreateInstructionsDocumentResponse, CreateInstructionsHandlerData, CreateInstructionsHandlerError, CreateInstructionsHandlerErrors, CreateInstructionsHandlerResponse, CreateInstructionsHandlerResponses, CreateMarkdownDocumentRequest, CreateMarkdownDocumentResponse, CreateMarkdownHandlerData, CreateMarkdownHandlerError, CreateMarkdownHandlerErrors, CreateMarkdownHandlerResponse, CreateMarkdownHandlerResponses, CreateMeetingRequest, CreatePairingRequest, CreateProjectHandlerData, CreateProjectHandlerError, CreateProjectHandlerErrors, CreateProjectHandlerResponse, CreateProjectHandlerResponses, CreateProjectRequest, CreateProjectResponse, CreateReminderData, CreateReminderError, CreateReminderErrors, CreateReminderRequest, CreateReminderResponse, CreateReminderResponses, CreateSkillHandlerData, CreateSkillHandlerError, CreateSkillHandlerErrors, CreateSkillHandlerResponse, CreateSkillHandlerResponses, CreateSkillRequest, CreateSkillResponse, CreateSlackImportData, CreateSlackImportErrors, CreateSlackImportResponse, CreateSlackImportResponses, CreateSnippetHandlerData, CreateSnippetHandlerError, CreateSnippetHandlerErrors, CreateSnippetHandlerResponse, CreateSnippetHandlerResponses, CreateSnippetRequest, CreateSnippetResponse, CreateTaskHandlerData, CreateTaskHandlerError, CreateTaskHandlerErrors, CreateTaskHandlerResponse, CreateTaskHandlerResponses, CreateTaskRequest, CreateTaskResponse, CreateToken, CreateUnthreadedAnchorRequest, CreateUnthreadedAnchorResponse, CreateUnthreadedPdfAnchorRequest, CreateUserApiKeyData, CreateUserApiKeyError, CreateUserApiKeyErrors, CreateUserApiKeyRequest, CreateUserApiKeyResponse, CreateUserApiKeyResponses, CreateViewHandlerData, CreateViewHandlerError, CreateViewHandlerErrors, CreateViewHandlerResponse, CreateViewHandlerResponses, CreateViewRequest, CreateWebhookData, CreateWebhookError, CreateWebhookErrors, CreateWebhookRequest, CreateWebhookResponse, CreateWebhookResponse2, CreateWebhookResponses, CrmCompanyFilters, CrmCompanyResponse, CrmContactResponse, CrmDomainResponse, CrmPermissionRole, CrmStageInput, CrmStageResponse, CrmStagesResponse, CrmTeamSettingsResponse, CustomSpeakerAssignment, Database, DatabaseDetail, DatabaseOp, DatabaseView, DataType, DateOperator, DeleteAnchorData, DeleteAnchorError, DeleteAnchorErrors, DeleteAnchorResponse, DeleteAnchorResponses, DeleteCallRecordData, DeleteCallRecordError, DeleteCallRecordErrors, DeleteCallRecordResponse, DeleteCallRecordResponses, DeleteChannelData, DeleteChannelError, DeleteChannelErrors, DeleteChannelLabelData, DeleteChannelLabelError, DeleteChannelLabelErrors, DeleteChannelLabelResponse, DeleteChannelLabelResponses, DeleteChannelResponse, DeleteChannelResponses, DeleteCollabSurfaceData, DeleteCollabSurfaceError, DeleteCollabSurfaceErrors, DeleteCollabSurfaceResponse, DeleteCollabSurfaceResponses, DeleteDocumentData, DeleteDocumentError, DeleteDocumentErrors, DeleteDocumentResponse, DeleteDocumentResponses, DeleteEntityMentionData, DeleteEntityMentionError, DeleteEntityMentionErrors, DeleteEntityMentionResponse, DeleteEntityMentionResponse2, DeleteEntityMentionResponses, DeleteHarnessData, DeleteHarnessError, DeleteHarnessErrors, DeleteHarnessResponse, DeleteHarnessResponses, DeleteHistoryHandlerData, DeleteHistoryHandlerError, DeleteHistoryHandlerErrors, DeleteHistoryHandlerResponse, DeleteHistoryHandlerResponses, DeleteInitiativeData, DeleteInitiativeError, DeleteInitiativeErrors, DeleteInitiativeResponse, DeleteInitiativeResponses, DeleteProjectHandlerData, DeleteProjectHandlerError, DeleteProjectHandlerErrors, DeleteProjectHandlerResponse, DeleteProjectHandlerResponses, DeleteReminderData, DeleteReminderError, DeleteReminderErrors, DeleteReminderResponse, DeleteReminderResponses, DeleteSelfHarnessData, DeleteSelfHarnessError, DeleteSelfHarnessErrors, DeleteSelfHarnessResponse, DeleteSelfHarnessResponses, DeleteUnthreadedAnchorRequest, DeleteUnthreadedAnchorResponse, DeleteUnthreadedPdfAnchorRequest, DeleteUserApiKeyData, DeleteUserApiKeyError, DeleteUserApiKeyErrors, DeleteUserApiKeyResponse, DeleteUserApiKeyResponses, DeleteUserDocumentViewLocationData, DeleteUserDocumentViewLocationError, DeleteUserDocumentViewLocationErrors, DeleteUserDocumentViewLocationResponse, DeleteUserDocumentViewLocationResponses, DeleteViewHandlerData, DeleteViewHandlerError, DeleteViewHandlerErrors, DeleteViewHandlerResponses, DeleteWebhookData, DeleteWebhookError, DeleteWebhookErrors, DeleteWebhookResponse, DeleteWebhookResponses, DescriptionDocumentId, DocumentBasic, DocumentContent, DocumentContentLocation, DocumentContentState, DocumentContentUploadedMetadata, DocumentCopiedMetadata, DocumentCreatedMetadata, DocumentDeletedMetadata, DocumentFilters, DocumentId, DocumentInteractionMetadata, DocumentMetadata, DocumentMetadataWithContent, DocumentPermissionsToken, DocumentPermissionsTokenRequest, DocumentPermissionsTokenResponse, DocumentPreview, DocumentPreviewData, DocumentPreviewDataSubType, DocumentPurgedMetadata, DocumentResponse, DocumentResponseMetadata, DocumentResponseMetadataWithContent, DocumentStorageServiceApiVersion, DocumentSubType, DocumentSyncContentUpdatedMetadata, DocumentSyncEditor, DocumentTeamShareResponse, DocumentTopicEvent, DocumentUpdatedMetadata, EditAnchorData, EditAnchorError, EditAnchorErrors, EditAnchorRequest, EditAnchorResponse, EditAnchorResponse2, EditAnchorResponses, EditCallRecordData, EditCallRecordError, EditCallRecordErrors, EditCallRecordRequest, EditCallRecordResponse, EditCallRecordResponses, EditCallTranscriptData, EditCallTranscriptError, EditCallTranscriptErrors, EditCallTranscriptRequest, EditCallTranscriptResponse, EditCallTranscriptResponses, EditDocumentData, EditDocumentError, EditDocumentErrors, EditDocumentResponse, EditDocumentResponse2, EditDocumentResponses, EditDocumentServiceArgs, EditPdfAnchorRequest, EditPdfPlaceableCommentAnchorRequest, EditProjectV2Data, EditProjectV2Error, EditProjectV2Errors, EditProjectV2Response, EditProjectV2Responses, EditThreadV2Data, EditThreadV2Error, EditThreadV2Errors, EditThreadV2Response, EditThreadV2Responses, EmailFilters, EmailFollowup, EmailFollowupCommand, EmailFollowupResponse, EmailReminderCondition, EmailReminderPage, EmailReminderSummary, EmptyResponse, EnsureCollabSurfaceData, EnsureCollabSurfaceError, EnsureCollabSurfaceErrors, EnsureCollabSurfaceRequest, EnsureCollabSurfaceResponse, EnsureCollabSurfaceResponses, EnsureStarterHandlerData, EnsureStarterHandlerErrors, EnsureStarterHandlerResponse, EnsureStarterHandlerResponses, EntityFilters, EntityKind, EntityMessageCreateData, EntityMessageCreateResponse, EntityMessageCreateResponses, EntityMessageDeleteMessageData, EntityMessageDeleteMessageResponse, EntityMessageDeleteMessageResponses, EntityMessageDeleteThreadData, EntityMessageDeleteThreadResponse, EntityMessageDeleteThreadResponses, EntityMessageEditData, EntityMessageEditResponse, EntityMessageEditResponses, EntityMessageGetMessageData, EntityMessageGetMessageResponse, EntityMessageGetMessageResponses, EntityMessageGetThreadData, EntityMessageGetThreadResponse, EntityMessageGetThreadResponses, EntityMessageLegacyData, EntityMessageLegacyResponse, EntityMessageLegacyResponses, EntityMessagePatchThreadData, EntityMessagePatchThreadResponse, EntityMessagePatchThreadResponses, EntityMessageReactData, EntityMessageReactResponse, EntityMessageReactResponses, EntityMessageTypingData, EntityMessageTypingResponse, EntityMessageTypingResponses, EntityPermission, EntityPermissionResponse, EntityRef, EntityReference, EntityType, ErrorResponse, EventReminderOverride, EventReminders, EventStatus, EventTime, EventTransparency, EventType, EventVisibility, ExcludedDefaultView, ExcludeDefaultViewHandlerData, ExcludeDefaultViewHandlerError, ExcludeDefaultViewHandlerErrors, ExcludeDefaultViewHandlerResponses, ExcludeDefaultViewRequest, ExportDocumentData, ExportDocumentError, ExportDocumentErrors, ExportDocumentResponse, ExportDocumentResponse2, ExportDocumentResponses, Favorite, FavoriteEntityRef, FavoritesList, FileSystemNodeWithIds, FileType, FileTypeUpdate, FilterCondition, FilterGroup, FilterNode, FilterTest, FinalizeSlackImportData, FinalizeSlackImportErrors, FinalizeSlackImportResponse, FinalizeSlackImportResponses, FolderItem, FollowupState, ForeignEntity, ForeignEntityFilters, GenericErrorResponse, GenericResponse, GenericSuccessResponse, GetActiveCallsData, GetActiveCallsError, GetActiveCallsErrors, GetActiveCallsResponse, GetActiveCallsResponses, GetActivityData, GetActivityError, GetActivityErrors, GetActivityResponse, GetActivityResponses, GetAttachmentReferencesData, GetAttachmentReferencesError, GetAttachmentReferencesErrors, GetAttachmentReferencesResponse, GetAttachmentReferencesResponse2, GetAttachmentReferencesResponses, GetBatchCallRecordPreviewData, GetBatchCallRecordPreviewError, GetBatchCallRecordPreviewErrors, GetBatchCallRecordPreviewRequest, GetBatchCallRecordPreviewResponse, GetBatchCallRecordPreviewResponse2, GetBatchCallRecordPreviewResponses, GetBatchChannelPreviewData, GetBatchChannelPreviewError, GetBatchChannelPreviewErrors, GetBatchChannelPreviewRequest, GetBatchChannelPreviewResponse, GetBatchChannelPreviewResponse2, GetBatchChannelPreviewResponses, GetBatchPreviewHandlerData, GetBatchPreviewHandlerError, GetBatchPreviewHandlerErrors, GetBatchPreviewHandlerResponse, GetBatchPreviewHandlerResponses, GetBatchPreviewRequest, GetBatchPreviewResponse, GetBatchProjectPreviewData, GetBatchProjectPreviewError, GetBatchProjectPreviewErrors, GetBatchProjectPreviewRequest, GetBatchProjectPreviewResponse, GetBatchProjectPreviewResponse2, GetBatchProjectPreviewResponses, GetBotOwnerProfilesData, GetBotOwnerProfilesError, GetBotOwnerProfilesErrors, GetBotOwnerProfilesResponse, GetBotOwnerProfilesResponses, GetCallRecordData, GetCallRecordError, GetCallRecordErrors, GetCallRecordResponse, GetCallRecordResponses, GetChannelAttachmentsData, GetChannelAttachmentsError, GetChannelAttachmentsErrors, GetChannelAttachmentsResponse, GetChannelAttachmentsResponses, GetChannelData, GetChannelError, GetChannelErrors, GetChannelJoinLinkData, GetChannelJoinLinkError, GetChannelJoinLinkErrors, GetChannelJoinLinkResponse, GetChannelJoinLinkResponses, GetChannelParticipantsData, GetChannelParticipantsError, GetChannelParticipantsErrors, GetChannelParticipantsResponse, GetChannelParticipantsResponses, GetChannelResponse, GetChannelResponses, GetChannelsData, GetChannelsError, GetChannelsErrors, GetChannelsResponse, GetChannelsResponses, GetCollabSurfaceData, GetCollabSurfaceError, GetCollabSurfaceErrors, GetCollabSurfaceResponse, GetCollabSurfaceResponses, GetCompanyData, GetCompanyError, GetCompanyErrors, GetCompanyResponse, GetCompanyResponses, GetContactByEmailData, GetContactByEmailError, GetContactByEmailErrors, GetContactByEmailResponse, GetContactByEmailResponse2, GetContactByEmailResponses, GetContactData, GetContactError, GetContactErrors, GetContactResponse, GetContactResponses, GetCrmTeamSettingsData, GetCrmTeamSettingsError, GetCrmTeamSettingsErrors, GetCrmTeamSettingsResponse, GetCrmTeamSettingsResponses, GetDatabaseData, GetDatabaseError, GetDatabaseErrors, GetDatabasePermissionsData, GetDatabasePermissionsError, GetDatabasePermissionsErrors, GetDatabasePermissionsResponse, GetDatabasePermissionsResponses, GetDatabaseQueryData, GetDatabaseQueryError, GetDatabaseQueryErrors, GetDatabaseQueryResponse, GetDatabaseQueryResponses, GetDatabaseResponse, GetDatabaseResponses, GetDatabaseRowHistoryData, GetDatabaseRowHistoryError, GetDatabaseRowHistoryErrors, GetDatabaseRowHistoryResponse, GetDatabaseRowHistoryResponses, GetDatabaseTableChangesData, GetDatabaseTableChangesError, GetDatabaseTableChangesErrors, GetDatabaseTableChangesResponse, GetDatabaseTableChangesResponses, GetDatabaseViewPositionsData, GetDatabaseViewPositionsError, GetDatabaseViewPositionsErrors, GetDatabaseViewPositionsResponse, GetDatabaseViewPositionsResponses, GetDocumentAnchorsData, GetDocumentAnchorsError, GetDocumentAnchorsErrors, GetDocumentAnchorsResponse, GetDocumentAnchorsResponses, GetDocumentBranchNameData, GetDocumentBranchNameError, GetDocumentBranchNameErrors, GetDocumentBranchNameResponse, GetDocumentBranchNameResponses, GetDocumentByTeamSlugData, GetDocumentByTeamSlugError, GetDocumentByTeamSlugErrors, GetDocumentByTeamSlugResponse, GetDocumentByTeamSlugResponses, GetDocumentData, GetDocumentError, GetDocumentErrors, GetDocumentGithubPullRequestsData, GetDocumentGithubPullRequestsError, GetDocumentGithubPullRequestsErrors, GetDocumentGithubPullRequestsResponse, GetDocumentGithubPullRequestsResponses, GetDocumentKeyResponse, GetDocumentKeyResponseData, GetDocumentListHandlerData, GetDocumentListHandlerError, GetDocumentListHandlerErrors, GetDocumentListHandlerResponse, GetDocumentListHandlerResponses, GetDocumentListResult, GetDocumentLocationV3Data, GetDocumentLocationV3Error, GetDocumentLocationV3Errors, GetDocumentLocationV3Response, GetDocumentLocationV3Responses, GetDocumentPermissionsResponseDataV2, GetDocumentPermissionsTokenData, GetDocumentPermissionsTokenError, GetDocumentPermissionsTokenErrors, GetDocumentPermissionsTokenResponse, GetDocumentPermissionsTokenResponses, GetDocumentPermissionsV2Data, GetDocumentPermissionsV2Error, GetDocumentPermissionsV2Errors, GetDocumentPermissionsV2Response, GetDocumentPermissionsV2Responses, GetDocumentProcessingResult, GetDocumentProcessingResultData, GetDocumentProcessingResultError, GetDocumentProcessingResultErrors, GetDocumentProcessingResultResponse, GetDocumentProcessingResultResponse2, GetDocumentProcessingResultResponses, GetDocumentResponse, GetDocumentResponse2, GetDocumentResponseData, GetDocumentResponses, GetDocumentSearchResponse, GetDocumentShortIdData, GetDocumentShortIdError, GetDocumentShortIdErrors, GetDocumentShortIdResponse, GetDocumentShortIdResponses, GetDocumentsResponse, GetDocumentTeamShareData, GetDocumentTeamShareError, GetDocumentTeamShareErrors, GetDocumentTeamShareResponse, GetDocumentTeamShareResponses, GetDocumentUserAccessLevelResponse, GetDocumentVersionData, GetDocumentVersionError, GetDocumentVersionErrors, GetDocumentVersionResponse, GetDocumentVersionResponses, GetDocumentViewsHandlerData, GetDocumentViewsHandlerError, GetDocumentViewsHandlerErrors, GetDocumentViewsHandlerResponse, GetDocumentViewsHandlerResponses, GetEmailFollowupData, GetEmailFollowupError, GetEmailFollowupErrors, GetEmailFollowupResponse, GetEmailFollowupResponses, GetEntityPermissionData, GetEntityPermissionErrors, GetEntityPermissionResponse, GetEntityPermissionResponses, GetForeignEntityBySourceData, GetForeignEntityBySourceError, GetForeignEntityBySourceErrors, GetForeignEntityBySourceResponse, GetForeignEntityBySourceResponses, GetForeignEntityData, GetForeignEntityError, GetForeignEntityErrors, GetForeignEntityResponse, GetForeignEntityResponses, GetGithubPullRequestFacetsData, GetGithubPullRequestFacetsError, GetGithubPullRequestFacetsErrors, GetGithubPullRequestFacetsResponse, GetGithubPullRequestFacetsResponses, GetHarnessPairingData, GetHarnessPairingError, GetHarnessPairingErrors, GetHarnessPairingResponse, GetHarnessPairingResponses, GetHistoryHandlerData, GetHistoryHandlerError, GetHistoryHandlerErrors, GetHistoryHandlerResponse, GetHistoryHandlerResponses, GetInitiativeData, GetInitiativeError, GetInitiativeErrors, GetInitiativeResponse, GetInitiativeResponses, GetInstructionsDocumentResponse, GetInstructionsHandlerData, GetInstructionsHandlerError, GetInstructionsHandlerErrors, GetInstructionsHandlerResponse, GetInstructionsHandlerResponses, GetItemsSoupData, GetItemsSoupError, GetItemsSoupErrors, GetItemsSoupResponse, GetItemsSoupResponses, GetLocationHandlerData, GetLocationHandlerError, GetLocationHandlerErrors, GetLocationHandlerResponse, GetLocationHandlerResponses, GetOrCreateAction, GetOrCreateCallData, GetOrCreateCallError, GetOrCreateCallErrors, GetOrCreateCallResponse, GetOrCreateCallResponses, GetOrCreateChannelResponse, GetOrCreateDmData, GetOrCreateDmError, GetOrCreateDmErrors, GetOrCreateDmRequest, GetOrCreateDmResponse, GetOrCreateDmResponses, GetOrCreatePrivateData, GetOrCreatePrivateError, GetOrCreatePrivateErrors, GetOrCreatePrivateRequest, GetOrCreatePrivateResponse, GetOrCreatePrivateResponses, GetPendingProjectsHandlerData, GetPendingProjectsHandlerError, GetPendingProjectsHandlerErrors, GetPendingProjectsHandlerResponse, GetPendingProjectsHandlerResponses, GetPinsHandlerData, GetPinsHandlerError, GetPinsHandlerErrors, GetPinsHandlerResponse, GetPinsHandlerResponses, GetPinsResponse, GetProjectContentHandlerData, GetProjectContentHandlerError, GetProjectContentHandlerErrors, GetProjectContentHandlerResponse, GetProjectContentHandlerResponses, GetProjectContentResponse, GetProjectHandlerData, GetProjectHandlerError, GetProjectHandlerErrors, GetProjectHandlerResponse, GetProjectHandlerResponses, GetProjectPermissionsV2Data, GetProjectPermissionsV2Error, GetProjectPermissionsV2Errors, GetProjectPermissionsV2Response, GetProjectPermissionsV2Responses, GetProjectResponse, GetProjectResponseData, GetProjectsHandlerData, GetProjectsHandlerError, GetProjectsHandlerErrors, GetProjectsHandlerResponse, GetProjectsHandlerResponses, GetProjectsResponse, GetProjectUserAccessLevelData, GetProjectUserAccessLevelError, GetProjectUserAccessLevelErrors, GetProjectUserAccessLevelResponse, GetProjectUserAccessLevelResponses, GetReminderData, GetReminderError, GetReminderErrors, GetReminderResponse, GetReminderResponses, GetRingStatusData, GetRingStatusError, GetRingStatusErrors, GetRingStatusResponse, GetRingStatusResponses, GetSelfBotData, GetSelfBotError, GetSelfBotErrors, GetSelfBotResponse, GetSelfBotResponses, GetSelfHarnessData, GetSelfHarnessError, GetSelfHarnessErrors, GetSelfHarnessResponse, GetSelfHarnessResponses, GetSlackImportData, GetSlackImportErrors, GetSlackImportResponse, GetSlackImportResponses, GetSystemSkillsHandlerData, GetSystemSkillsHandlerError, GetSystemSkillsHandlerErrors, GetSystemSkillsHandlerResponse, GetSystemSkillsHandlerResponses, GetUserDocumentsHandlerData, GetUserDocumentsHandlerError, GetUserDocumentsHandlerErrors, GetUserDocumentsHandlerResponse, GetUserDocumentsHandlerResponses, GetUserDocumentViewLocationData, GetUserDocumentViewLocationError, GetUserDocumentViewLocationErrors, GetUserDocumentViewLocationResponse, GetUserDocumentViewLocationResponses, GetUserHistoryResponse, GetViewsHandlerData, GetViewsHandlerError, GetViewsHandlerErrors, GetViewsHandlerResponse, GetViewsHandlerResponses, GetWebhookData, GetWebhookError, GetWebhookErrors, GetWebhookResponse, GetWebhookResponses, GithubAuthorFacet, GithubPullRequest, GithubPullRequestCheckRun, GithubPullRequestComment, GithubPullRequestFacets, GithubPullRequestsResponse, GithubRepositoryFacet, GroupedInitialParams, GroupedPageParams, GroupedSoupGroupPage, GroupedSoupInitialPage, GroupedSoupPage, GroupedSoupSort, GuestId, GuestJoinRequest, HandlerData, HandlerError, HandlerErrors, HandlerResponse, HandlerResponses, Harness, HarnessAgent, HarnessId, HarnessOwner, HarnessSession, HashMap, HealthHandlerData, HealthHandlerResponse, HealthHandlerResponses, HighlightType, ImportCounters, ImportDatabaseTableData, ImportDatabaseTableError, ImportDatabaseTableErrors, ImportDatabaseTableResponse, ImportDatabaseTableResponses, ImportedAuthor, ImportError, ImportLimits, ImportPage, ImportProgress, ImportTable, ImportWarning, InferColumnTypeOutcome, InferColumnTypeRequest, InferDatabaseColumnTypeData, InferDatabaseColumnTypeError, InferDatabaseColumnTypeErrors, InferDatabaseColumnTypeResponse, InferDatabaseColumnTypeResponses, InFlightTurnSummary, IngestTranscriptData, IngestTranscriptError, IngestTranscriptErrors, IngestTranscriptResponses, InitializeUserDocumentsData, InitializeUserDocumentsError, InitializeUserDocumentsErrors, InitializeUserDocumentsResponse, InitializeUserDocumentsResponses, InitialPropertyValue, InitiativeDetail, InitiativeFilters, InitiativeId, InitiativeList, InitiativeSummary, InputReceivedMetadata, InstallSyncData, InstallSyncErrors, InteractionReason, InviteMeetingRequest, InviteMeetingUsersRequest, Item, ItemWithUserAccessLevel, JobId, JobProcessingResultHandlerData, JobProcessingResultHandlerError, JobProcessingResultHandlerErrors, JobProcessingResultHandlerResponse, JobProcessingResultHandlerResponses, JobStatus, JoinChannelByCodeData, JoinChannelByCodeError, JoinChannelByCodeErrors, JoinChannelByCodeResponses, JoinChannelData, JoinChannelError, JoinChannelErrors, JoinChannelResponses, KeySegment, Lane, LaneKey, LatestMessage, LeaveCallResponse, LeaveChannelData, LeaveChannelError, LeaveChannelErrors, LeaveChannelResponses, LeaveOrEndCallData, LeaveOrEndCallError, LeaveOrEndCallErrors, LeaveOrEndCallResponse, LeaveOrEndCallResponses, LinkShare, ListAgentsData, ListAgentsError, ListAgentsErrors, ListAgentsResponse, ListAgentsResponses, ListBotChannelsData, ListBotChannelsError, ListBotChannelsErrors, ListBotChannelsResponse, ListBotChannelsResponses, ListChannelLabelsData, ListChannelLabelsError, ListChannelLabelsErrors, ListChannelLabelsResponse, ListChannelLabelsResponses, ListCompanyContactsData, ListCompanyContactsError, ListCompanyContactsErrors, ListCompanyContactsResponse, ListCompanyContactsResponses, ListDatabaseColumnCastsData, ListDatabaseColumnCastsError, ListDatabaseColumnCastsErrors, ListDatabaseColumnCastsResponse, ListDatabaseColumnCastsResponses, ListDatabasesData, ListDatabasesError, ListDatabasesErrors, ListDatabasesResponse, ListDatabasesResponses, ListedDatabase, ListEmailRemindersData, ListEmailRemindersError, ListEmailRemindersErrors, ListEmailRemindersResponse, ListEmailRemindersResponses, ListFavoritesData, ListFavoritesError, ListFavoritesErrors, ListFavoritesResponse, ListFavoritesResponses, ListHarnessAgentsData, ListHarnessAgentsError, ListHarnessAgentsErrors, ListHarnessAgentsResponse, ListHarnessAgentsResponses, ListHarnessesData, ListHarnessesError, ListHarnessesErrors, ListHarnessesResponse, ListHarnessesResponses, ListHarnessSessionsData, ListHarnessSessionsError, ListHarnessSessionsErrors, ListHarnessSessionsResponse, ListHarnessSessionsResponses, ListInitiativesData, ListInitiativesError, ListInitiativesErrors, ListInitiativesResponse, ListInitiativesResponses, ListOccurrencesData, ListOccurrencesErrors, ListOccurrencesResponse, ListOccurrencesResponses, ListReminderCollectionData, ListReminderCollectionError, ListReminderCollectionErrors, ListReminderCollectionResponse, ListReminderCollectionResponses, ListRemindersData, ListRemindersError, ListRemindersErrors, ListRemindersResponse, ListRemindersResponses, ListSlackImportsData, ListSlackImportsResponse, ListSlackImportsResponses, ListTeamOutOfOfficeData, ListTeamOutOfOfficeErrors, ListTeamOutOfOfficeResponse, ListTeamOutOfOfficeResponses, ListUserApiKeysData, ListUserApiKeysError, ListUserApiKeysErrors, ListUserApiKeysResponse, ListUserApiKeysResponses, ListWebhooksData, ListWebhooksError, ListWebhooksErrors, ListWebhooksResponse, ListWebhooksResponse2, ListWebhooksResponses, LocationResponseData, LocationResponseV3, MacroUserIdStr, Meeting, MeetingCancelData, MeetingCancelError, MeetingCancelErrors, MeetingCancelPreparationData, MeetingCancelPreparationError, MeetingCancelPreparationErrors, MeetingCancelPreparationResponse, MeetingCancelPreparationResponses, MeetingCancelResponse, MeetingCancelResponses, MeetingCreateData, MeetingCreateError, MeetingCreateErrors, MeetingCreateResponse, MeetingCreateResponses, MeetingGuestJoinData, MeetingGuestJoinError, MeetingGuestJoinErrors, MeetingGuestJoinResponse, MeetingGuestJoinResponses, MeetingGuestParticipantsData, MeetingGuestParticipantsError, MeetingGuestParticipantsErrors, MeetingGuestParticipantsResponse, MeetingGuestParticipantsResponses, MeetingInviteData, MeetingInviteError, MeetingInviteErrors, MeetingInvitePermissions, MeetingInvitePermissionsData, MeetingInvitePermissionsError, MeetingInvitePermissionsErrors, MeetingInvitePermissionsResponse, MeetingInvitePermissionsResponses, MeetingInviteResponse, MeetingInviteResponses, MeetingInviteUsersData, MeetingInviteUsersError, MeetingInviteUsersErrors, MeetingInviteUsersResponse, MeetingInviteUsersResponses, MeetingJoinData, MeetingJoinError, MeetingJoinErrors, MeetingJoinResponse, MeetingJoinResponses, MeetingLeaveData, MeetingLeaveError, MeetingLeaveErrors, MeetingLeaveResponse, MeetingLeaveResponses, MeetingListActiveData, MeetingListActiveError, MeetingListActiveErrors, MeetingListActiveResponse, MeetingListActiveResponses, MeetingListData, MeetingListError, MeetingListErrors, MeetingListResponse, MeetingListResponses, MeetingLookupData, MeetingLookupError, MeetingLookupErrors, MeetingLookupResponse, MeetingLookupResponses, MeetingParticipant, MeetingParticipants, MeetingParticipantsData, MeetingParticipantsError, MeetingParticipantsErrors, MeetingParticipantsResponse, MeetingParticipantsResponses, MeetingPreparation, MeetingPrepareData, MeetingPrepareError, MeetingPrepareErrors, MeetingPrepareResponse, MeetingPrepareResponses, MeetingShareData, MeetingShareError, MeetingShareErrors, MeetingShareResponse, MeetingShareResponses, MeetingsResponse, MeetingToken, MeetingUpdateData, MeetingUpdateError, MeetingUpdateErrors, MeetingUpdateResponse, MeetingUpdateResponses, MentionPreviewsData, MentionPreviewsErrors, MentionPreviewsResponse, MentionPreviewsResponses, Message, MessageAttachment, MessageAttachmentCreatedMetadata, MessageAttachmentRemovedMetadata, MessageChange, MessageCursor, MessageDeletedMetadata, MessageDirection, MessageEvent, MessageEventAttachment, MessageListItem, MessageMentionedMetadata, MessagePage, MessageParent, MessagePatch, MessagePatchedMetadata, MessagePostedMetadata, MessageThread, MessageThreadPreview, MessageTimelineData, MessageTimelineQuery, MessageTimelineResponse, MessageTimelineResponses, MessageTopicEvent, NewAttachment, NewColumn, NewOption, NewThreadAnchor, NewView, NotificationFilters, NotificationState, NumberOperator, OpRefusalResponse, OpResult, OptionRef, PairingDetails, Params, ParticipantRole, PatchBotRequest, PatchChannelData, PatchChannelError, PatchChannelErrors, PatchChannelRequest, PatchChannelResponse, PatchChannelResponses, PatchMessageNotificationPolicy, PatchProjectRequestV2, PatchThreadRequestV2, PatchViewHandlerData, PatchViewHandlerError, PatchViewHandlerErrors, PatchViewHandlerResponses, PatchWebhookData, PatchWebhookError, PatchWebhookErrors, PatchWebhookRequest, PatchWebhookResponse, PatchWebhookResponses, PdfAnchor, PdfAnchorId, PdfHighlightAnchor, PdfHighlightAnchorRequest, PdfHighlightRect, PdfHighlightRectAnchorRequest, PdfPlaceableCommentAnchor, PendingClaimResponse, PermanentlyDeleteDocumentData, PermanentlyDeleteDocumentError, PermanentlyDeleteDocumentErrors, PermanentlyDeleteDocumentResponse, PermanentlyDeleteDocumentResponses, PermanentlyDeleteProjectData, PermanentlyDeleteProjectError, PermanentlyDeleteProjectErrors, PermanentlyDeleteProjectResponse, PermanentlyDeleteProjectResponses, PinnedItem, PinRequest, PostActivityData, PostActivityError, PostActivityErrors, PostActivityRequest, PostActivityResponse, PostActivityResponses, PostChannelBotWebhookData, PostChannelBotWebhookError, PostChannelBotWebhookErrors, PostChannelBotWebhookResponse, PostChannelBotWebhookResponses, PostGroupedSoupAstGroupPageRequest, PostGroupedSoupAstInitialRequest, PostGroupedSoupAstRequest, PostItemsSoupAstData, PostItemsSoupAstError, PostItemsSoupAstErrors, PostItemsSoupAstGroupedData, PostItemsSoupAstGroupedError, PostItemsSoupAstGroupedErrors, PostItemsSoupAstGroupedResponse, PostItemsSoupAstGroupedResponses, PostItemsSoupAstResponse, PostItemsSoupAstResponses, PostItemsSoupData, PostItemsSoupError, PostItemsSoupErrors, PostItemsSoupResponse, PostItemsSoupResponses, PostMessage, PostMessageNotificationPolicy, PostSoupAstRequest, PostSoupRequest, PresaveDocumentHandlerData, PresaveDocumentHandlerError, PresaveDocumentHandlerErrors, PresaveDocumentHandlerResponse, PresaveDocumentHandlerResponses, PreSaveDocumentRequest, PreSaveDocumentResponse, PreSaveDocumentResponseData, PresenceOperator, PresignedUrl, PreviewSmartTagData, PreviewSmartTagError, PreviewSmartTagErrors, PreviewSmartTagResponse, PreviewSmartTagResponses, Project, ProjectDeleteResponseData, ProjectDocumentStatus, ProjectFilters, ProjectPreview, ProjectPreviewData, PropertyDefinition, PropertyDefinitionWithOptions, PropertyFilter, PropertyInput, PropertyOption, PropertyOptionValue, PropertyOwner, PropertyValue, PutCrmTeamSettingsData, PutCrmTeamSettingsError, PutCrmTeamSettingsErrors, PutCrmTeamSettingsResponse, PutCrmTeamSettingsResponses, PutCrmTeamStagesData, PutCrmTeamStagesError, PutCrmTeamStagesErrors, PutCrmTeamStagesResponse, PutCrmTeamStagesResponses, QueryDefinition, ReactionInput, RecentlyDeletedData, RecentlyDeletedError, RecentlyDeletedErrors, RecentlyDeletedResponse, RecentlyDeletedResponseData, RecentlyDeletedResponses, RegisterSlackImportUploadsData, RegisterSlackImportUploadsErrors, RegisterSlackImportUploadsResponse, RegisterSlackImportUploadsResponses, RegisterUploads, Reminder, ReminderCollectionPage, ReminderCollectionRow, ReminderFilters, ReminderReference, ReminderSchedule, RemindersList, RemoveBotFromChannelByBotData, RemoveBotFromChannelByBotError, RemoveBotFromChannelByBotErrors, RemoveBotFromChannelByBotResponse, RemoveBotFromChannelByBotResponses, RemoveFavoriteByEntityData, RemoveFavoriteByEntityError, RemoveFavoriteByEntityErrors, RemoveFavoriteByEntityResponses, RemoveParticipantsData, RemoveParticipantsError, RemoveParticipantsErrors, RemoveParticipantsRequest, RemoveParticipantsResponses, RemovePinHandlerData, RemovePinHandlerError, RemovePinHandlerErrors, RemovePinHandlerResponse, RemovePinHandlerResponses, RenameChannelLabelData, RenameChannelLabelError, RenameChannelLabelErrors, RenameChannelLabelRequest, RenameChannelLabelResponse, RenameChannelLabelResponses, ReorderFavoritesData, ReorderFavoritesError, ReorderFavoritesErrors, ReorderFavoritesRequest, ReorderFavoritesResponses, ReorderPinRequest, ReorderPinsHandlerData, ReorderPinsHandlerError, ReorderPinsHandlerErrors, ReorderPinsHandlerResponse, ReorderPinsHandlerResponses, ReplaceCrmStagesRequest, RequestedHarnessScope, RequestedLayout, ResetCrmTeamStagesData, ResetCrmTeamStagesError, ResetCrmTeamStagesErrors, ResetCrmTeamStagesResponse, ResetCrmTeamStagesResponses, RevertDeleteDocumentData, RevertDeleteDocumentError, RevertDeleteDocumentErrors, RevertDeleteDocumentResponse, RevertDeleteDocumentResponses, RevertDeleteProjectData, RevertDeleteProjectError, RevertDeleteProjectErrors, RevertDeleteProjectResponse, RevertDeleteProjectResponses, RingStatus, RingStatusResponse, RowChange, RowChangeKind, RowChanges, RowHistoryEntry, RowHistoryResponse, RowsChange, RowsResult, S3ObjectInfo, SaveBomPart, SaveDatabaseQueryData, SaveDatabaseQueryError, SaveDatabaseQueryErrors, SaveDatabaseQueryResponse, SaveDatabaseQueryResponses, SaveDocumentHandlerData, SaveDocumentHandlerError, SaveDocumentHandlerErrors, SaveDocumentHandlerResponse, SaveDocumentHandlerResponses, SaveDocumentRequest, SaveDocumentResponse, SaveDocumentResponseData, SavedQuery, SaveQueryRequest, SearchContactsData, SearchContactsError, SearchContactsErrors, SearchContactsResponse, SearchContactsResponse2, SearchContactsResponses, SearchState, SessionDeletedMetadata, SessionIdentity, SessionMentionedMetadata, SessionOpenedMetadata, SessionRenamedMetadata, SessionSettledMetadata, SessionStoppedMetadata, SetChannelLabelData, SetChannelLabelError, SetChannelLabelErrors, SetChannelLabelRequest, SetChannelLabelResponse, SetChannelLabelResponses, SetChannelPictureData, SetChannelPictureError, SetChannelPictureErrors, SetChannelPictureRequest, SetChannelPictureResponse, SetChannelPictureResponses, SetCompanyHiddenData, SetCompanyHiddenError, SetCompanyHiddenErrors, SetCompanyHiddenRequest, SetCompanyHiddenResponse, SetCompanyHiddenResponses, SetCompanyNameRequest, SetContactHiddenData, SetContactHiddenError, SetContactHiddenErrors, SetContactHiddenRequest, SetContactHiddenResponse, SetContactHiddenResponses, SetContactNameRequest, SetCrmCompanyNameData, SetCrmCompanyNameError, SetCrmCompanyNameErrors, SetCrmCompanyNameResponse, SetCrmCompanyNameResponses, SetCrmContactNameData, SetCrmContactNameError, SetCrmContactNameErrors, SetCrmContactNameResponse, SetCrmContactNameResponses, SetDocumentTeamShareData, SetDocumentTeamShareError, SetDocumentTeamShareErrors, SetDocumentTeamShareRequest, SetDocumentTeamShareResponse, SetDocumentTeamShareResponses, SetEmailFollowupData, SetEmailFollowupError, SetEmailFollowupErrors, SetEmailFollowupResponse, SetEmailFollowupResponses, SetEmailSyncData, SetEmailSyncError, SetEmailSyncErrors, SetEmailSyncRequest, SetEmailSyncResponse, SetEmailSyncResponses, SetOperator, SetPropertyValue, Sha256Digest, ShareDatabaseAwarenessData, ShareDatabaseAwarenessError, ShareDatabaseAwarenessErrors, ShareDatabaseAwarenessResponse, ShareDatabaseAwarenessResponses, SharedEmailFilter, SharePermissionV2, ShortIdResponse, SimpleMention, SimpleSaveData, SimpleSaveError, SimpleSaveErrors, SimpleSaveResponse, SimpleSaveResponses, SkippedCell, SlackCompleteRequest, SlackCreateRequest, SlackRegisterRequest, SlackTimestamp, SlackUserId, SmartTagChannelMatch, SmartTagPreview, SortDirection, SortKey, SoupAgentSessionSoupPropertiesField, SoupApiItem, SoupApiSort, SoupApiSortDirection, SoupAttachment, SoupCalendarEventSoupPropertiesField, SoupCalendarEventTime, SoupCallRecordGuest, SoupCallRecordParticipant, SoupCallRecordSoupPropertiesField, SoupChannel, SoupChannelThread, SoupChatSoupPropertiesField, SoupContact, SoupCountedReaction, SoupCrmCompanySoupPropertiesField, SoupCrmDomain, SoupDatabaseRowSoupPropertiesField, SoupDocumentSoupPropertiesField, SoupDocumentSubType, SoupEmailThreadPreview, SoupEnrichedEmailThreadPreviewSoupPropertiesField, SoupForeignEntity, SoupInitiativeSoupPropertiesField, SoupItem, SoupLabel, SoupLabelListVisibility, SoupLabelType, SoupMessageAttachment, SoupMessageListVisibility, SoupMessageSender, SoupMessageSenderType, SoupPage, SoupProjectSoupPropertiesField, SoupPropertiesField, SoupProperty, SoupReminderReference, SoupReminderSchedule, SoupReminderSoupPropertiesField, SoupThreadInfo, SoupThreadReply, SourceBinding, SourceId, SourceIdentity, StarterDatabase, StarterDocumentsResponse, StreamEventsData, StreamEventsError, StreamEventsErrors, StreamEventsResponse, StreamEventsResponses, String, SuccessResponse, SurfaceState, SyncServiceVersionId, SystemSkillSummary, Table, TableChange, TableChanged, TableChanges, TableDetail, TableResult, TableVersion, TagFilterMode, TakenId, TaskFilters, TeamOutOfOfficeItem, TeamOutOfOfficeResponse, TeamRole, TextOperator, ThreadAnchor, ThreadOrigin, ThreadPatch, ThreadState, ToggleShareWithTeamData, ToggleShareWithTeamError, ToggleShareWithTeamErrors, ToggleShareWithTeamResponse, ToggleShareWithTeamResponses, TouchedColumn, TouchedRow, TranscribeDictationData, TranscribeDictationError, TranscribeDictationErrors, TranscribeDictationResponse, TranscribeDictationResponses, TranscribeResponse, TranscriptSegmentRequest, TurnEndedMetadata, TurnStartedMetadata, TurnSummary, TypedSuccessResponse, TypedSuccessResponseGetDocumentResponseData, TypingInput, UnassignInitiativeTaskData, UnassignInitiativeTaskError, UnassignInitiativeTaskErrors, UnassignInitiativeTaskResponse, UnassignInitiativeTaskResponses, UndoChangeResponse, UndoDatabaseChangeData, UndoDatabaseChangeError, UndoDatabaseChangeErrors, UndoDatabaseChangeResponse, UndoDatabaseChangeResponses, UndoOutcome, UndoRefusal, UpdateAgentData, UpdateAgentError, UpdateAgentErrors, UpdateAgentRequest, UpdateAgentResponse, UpdateAgentResponses, UpdateChannelSharePermission, UpdateCrmTeamSettingsRequest, UpdateDatabasePermissionsData, UpdateDatabasePermissionsError, UpdateDatabasePermissionsErrors, UpdateDatabasePermissionsResponse, UpdateDatabasePermissionsResponses, UpdateInitiativeData, UpdateInitiativeError, UpdateInitiativeErrors, UpdateInitiativeRequest, UpdateInitiativeResponse, UpdateInitiativeResponses, UpdateMeetingRequest, UpdateOperation, UpdateReminderData, UpdateReminderError, UpdateReminderErrors, UpdateReminderRequest, UpdateReminderResponse, UpdateReminderResponses, UpdateSharePermissionRequestV2, UploadDescriptor, UploadDocumentStatus, UploadExtractFolderHandlerData, UploadExtractFolderHandlerError, UploadExtractFolderHandlerErrors, UploadExtractFolderHandlerResponse, UploadExtractFolderHandlerResponses, UploadExtractFolderRequest, UploadFolderHandlerData, UploadFolderHandlerError, UploadFolderHandlerErrors, UploadFolderHandlerResponse, UploadFolderHandlerResponses, UploadFolderRequest, UploadGrant, UploadId, UpsertHistoryHandlerData, UpsertHistoryHandlerError, UpsertHistoryHandlerErrors, UpsertHistoryHandlerResponse, UpsertHistoryHandlerResponses, UpsertUserDocumentViewLocationData, UpsertUserDocumentViewLocationError, UpsertUserDocumentViewLocationErrors, UpsertUserDocumentViewLocationRequest, UpsertUserDocumentViewLocationResponse, UpsertUserDocumentViewLocationResponses, UserApiKeyId, UserApiKeyInfo, UserApiKeysList, UserDocumentsResponse, UserDocumentViewLocation, UserDocumentViewLocationResponse, UserPinsResponse, UserViewsResponse, ValidateDocumentPermissionsTokenData, ValidateDocumentPermissionsTokenError, ValidateDocumentPermissionsTokenErrors, ValidateDocumentPermissionsTokenResponse, ValidateDocumentPermissionsTokenResponses, ValidateWebhookData, ValidateWebhookError, ValidateWebhookErrors, ValidateWebhookResponse, ValidateWebhookResponse2, ValidateWebhookResponses, Vec, VersionedTable, View, ViewChange, ViewColumn, ViewLayout, ViewPatch, ViewPosition, ViewPositionsResponse, ViewQuery, ViewResult, ViewsResponse, WaitingForInputMetadata, Webhook, WebhookEvent, WebhookFilter, WebhookScope, WebhookStatus, WebhookValidationTestEvent, WithCallId, WithChannelId, WithDocumentId, WithProjectId } from './types.gen';+export type { AccessLevel, ActiveCallsResponse, ActiveCallSummary, ActiveMeeting, ActiveMeetingsResponse, ActivityType, AddFavoriteData, AddFavoriteError, AddFavoriteErrors, AddFavoriteRequest, AddFavoriteResponse, AddFavoriteResponses, AddParticipantsData, AddParticipantsError, AddParticipantsErrors, AddParticipantsRequest, AddParticipantsResponses, AddPinHandlerData, AddPinHandlerError, AddPinHandlerErrors, AddPinHandlerResponse, AddPinHandlerResponses, AddPinRequest, Agent, AgentActionId, AgentChannelScope, AgentMcpServer, AgentMcpServers, AgentPullRequestState, AgentSessionFilters, AgentSessionLifecycleEvent, Anchor, AnchorId, AnchorResponse, AnnotationIncrementalUpdate, ApiActivity, ApiAttachmentChannelReference, ApiAttachmentEntityReference, ApiAttachmentGenericReference, ApiChannelAttachment, ApiChannelAttachmentsPage, ApiChannelDetail, ApiChannelListMessage, ApiChannelListPage, ApiChannelListParticipant, ApiChannelListType, ApiChannelParticipant, ApiChannelWithLatest, ApiEntityFilterAst, ApiGroupByField, ApiGroupMeta, ApiParticipantListRole, ApiParticipantRole, ApiPropertyEntityType, ApplyDatabaseOpsData, ApplyDatabaseOpsError, ApplyDatabaseOpsErrors, ApplyDatabaseOpsResponse, ApplyDatabaseOpsResponses, ApplyOpsRequest, ApplyOpsResponse, ApproveHarnessPairingData, ApproveHarnessPairingError, ApproveHarnessPairingErrors, ApproveHarnessPairingResponse, ApproveHarnessPairingResponses, ApprovePairingRequest, AssignInitiativeTasksData, AssignInitiativeTasksError, AssignInitiativeTasksErrors, AssignInitiativeTasksResponse, AssignInitiativeTasksResponses, AssignTasksRequest, AssignTasksResponse, AssignTasksResult, AssignTaskStatus, AttachmentChange, AttendeeResponseStatus, Awareness, AwarenessRelay, BasicDocument, BasicDocumentSubType, BomPart, Bot, BotChannel, BotChannelType, BotId, BotKind, BotOwner, BotOwnerProfile, BotSenderProfile, BotToken, BranchNameResponse, BTreeMap, BulkWakeupRequest, BulkWakeupResponse, BulkWakeupSyncServiceDocumentsData, BulkWakeupSyncServiceDocumentsErrors, BulkWakeupSyncServiceDocumentsResponse, BulkWakeupSyncServiceDocumentsResponses, CalendarAttendee, CalendarEvent, CalendarEventFilters, CalendarEventSourceContent, CalendarMentionEvent, CalendarMentionPreviewItem, CalendarMentionPreviewKind, CalendarMentionPreviewRequest, CalendarMentionPreviewRequestItem, CalendarMentionPreviewResponse, CalendarOccurrence, CalendarOccurrenceItem, CalendarOccurrenceResponse, CalendarSyncStatus, CallActiveResponse, CallFilters, CallRecord, CallRecordGuest, CallRecordParticipant, CallRecordPreview, CallRecordPreviewData, CallRecordTranscriptSegment, CallStatus, CallTokenResponse, CallWebhookData, CallWebhookError, CallWebhookErrors, CallWebhookResponses, CancelSlackImportData, CancelSlackImportErrors, CancelSlackImportResponse, CancelSlackImportResponses, CardPosition, CastVerdict, CellValue, CellWrite, Channel, ChannelCreatedMetadata, ChannelDeletedMetadata, ChannelFilters, ChannelJoinCodeResponse, ChannelLabel, ChannelLabelRule, ChannelLabelsList, ChannelMessage, ChannelParticipant, ChannelParticipantAddedMetadata, ChannelParticipantRemovedMetadata, ChannelPreview, ChannelPreviewData, ChannelSender, ChannelSharePermission, ChannelThreadFilters, ChannelTopicEvent, ChannelType, ChannelUpdatedMetadata, ChannelWebhookRequest, ChannelWebhookResponse, ChannelWithParticipants, Chat, ChatFilters, CheckActiveCallData, CheckActiveCallError, CheckActiveCallErrors, CheckActiveCallResponse, CheckActiveCallResponses, ClaimedPairing, ClaimHarnessPairingData, ClaimHarnessPairingError, ClaimHarnessPairingErrors, ClaimHarnessPairingResponse, ClaimHarnessPairingResponses, ClaimPairingRequest, ClientOptions, CloudStorageItemType, CollabSurfaceResponse, CollabSurfaceTokenResponse, Column, ColumnCast, ColumnChange, ColumnChangeKind, ColumnConfig, ColumnConversion, ColumnConversionRequest, ColumnDetail, ColumnKind, ColumnResult, CommandFailure, CommandRejectedMetadata, CommittedChange, CompleteSlackImportUploadsData, CompleteSlackImportUploadsErrors, CompleteSlackImportUploadsResponse, CompleteSlackImportUploadsResponses, CompleteUploads, ConferenceProvider, Conjunction, ConversationId, ConversationKind, ConversationMetadata, ConversationProgress, ConversationSeal, ConversationStatus, ConvertDatabaseColumnData, ConvertDatabaseColumnError, ConvertDatabaseColumnErrors, ConvertDatabaseColumnResponse, ConvertDatabaseColumnResponses, ConvertedCell, CopyDocumentData, CopyDocumentError, CopyDocumentErrors, CopyDocumentQueryParams, CopyDocumentRequest, CopyDocumentResponse, CopyDocumentResponse2, CopyDocumentResponses, CountedReaction, CreateAgentData, CreateAgentError, CreateAgentErrors, CreateAgentRequest, CreateAgentResponse, CreateAgentResponses, CreateAnchorData, CreateAnchorError, CreateAnchorErrors, CreateAnchorResponse, CreateAnchorResponses, CreateBotRequest, CreateBulkDocumentResponse, CreateBulkDocumentResponseData, CreateChannelData, CreateChannelError, CreateChannelErrors, CreateChannelLabelData, CreateChannelLabelError, CreateChannelLabelErrors, CreateChannelLabelRequest, CreateChannelLabelResponse, CreateChannelLabelResponses, CreateChannelRequest, CreateChannelResponse, CreateChannelResponse2, CreateChannelResponses, CreateChannelScopedBotData, CreateChannelScopedBotError, CreateChannelScopedBotErrors, CreateChannelScopedBotRequest, CreateChannelScopedBotResponse, CreateChannelScopedBotResponse2, CreateChannelScopedBotResponses, CreateCollabSurfaceTokenData, CreateCollabSurfaceTokenError, CreateCollabSurfaceTokenErrors, CreateCollabSurfaceTokenResponse, CreateCollabSurfaceTokenResponses, CreateCrmCompanyData, CreateCrmCompanyError, CreateCrmCompanyErrors, CreateCrmCompanyRequest, CreateCrmCompanyResponse, CreateCrmCompanyResponses, CreateCrmContactData, CreateCrmContactError, CreateCrmContactErrors, CreateCrmContactRequest, CreateCrmContactResponse, CreateCrmContactResponses, CreateDatabaseData, CreateDatabaseError, CreateDatabaseErrors, CreateDatabaseRequest, CreateDatabaseResponse, CreateDatabaseResponses, CreateDocumentData, CreateDocumentError, CreateDocumentErrors, CreateDocumentRequest, CreateDocumentResponse, CreateDocumentResponseData, CreateDocumentResponses, CreatedPairing, CreatedUserApiKey, CreateEntityMentionData, CreateEntityMentionError, CreateEntityMentionErrors, CreateEntityMentionRequest, CreateEntityMentionResponse, CreateEntityMentionResponse2, CreateEntityMentionResponses, CreateHarnessPairingData, CreateHarnessPairingError, CreateHarnessPairingErrors, CreateHarnessPairingResponse, CreateHarnessPairingResponses, CreateImport, CreateInitiativeData, CreateInitiativeError, CreateInitiativeErrors, CreateInitiativeRequest, CreateInitiativeResponse, CreateInitiativeResponses, CreateInstructionsDocumentResponse, CreateInstructionsHandlerData, CreateInstructionsHandlerError, CreateInstructionsHandlerErrors, CreateInstructionsHandlerResponse, CreateInstructionsHandlerResponses, CreateMarkdownDocumentRequest, CreateMarkdownDocumentResponse, CreateMarkdownHandlerData, CreateMarkdownHandlerError, CreateMarkdownHandlerErrors, CreateMarkdownHandlerResponse, CreateMarkdownHandlerResponses, CreateMeetingRequest, CreatePairingRequest, CreateProjectHandlerData, CreateProjectHandlerError, CreateProjectHandlerErrors, CreateProjectHandlerResponse, CreateProjectHandlerResponses, CreateProjectRequest, CreateProjectResponse, CreateReminderData, CreateReminderError, CreateReminderErrors, CreateReminderRequest, CreateReminderResponse, CreateReminderResponses, CreateSkillHandlerData, CreateSkillHandlerError, CreateSkillHandlerErrors, CreateSkillHandlerResponse, CreateSkillHandlerResponses, CreateSkillRequest, CreateSkillResponse, CreateSlackImportData, CreateSlackImportErrors, CreateSlackImportResponse, CreateSlackImportResponses, CreateSnippetHandlerData, CreateSnippetHandlerError, CreateSnippetHandlerErrors, CreateSnippetHandlerResponse, CreateSnippetHandlerResponses, CreateSnippetRequest, CreateSnippetResponse, CreateTaskHandlerData, CreateTaskHandlerError, CreateTaskHandlerErrors, CreateTaskHandlerResponse, CreateTaskHandlerResponses, CreateTaskRequest, CreateTaskResponse, CreateToken, CreateUnthreadedAnchorRequest, CreateUnthreadedAnchorResponse, CreateUnthreadedPdfAnchorRequest, CreateUserApiKeyData, CreateUserApiKeyError, CreateUserApiKeyErrors, CreateUserApiKeyRequest, CreateUserApiKeyResponse, CreateUserApiKeyResponses, CreateViewHandlerData, CreateViewHandlerError, CreateViewHandlerErrors, CreateViewHandlerResponse, CreateViewHandlerResponses, CreateViewRequest, CreateWebhookData, CreateWebhookError, CreateWebhookErrors, CreateWebhookRequest, CreateWebhookResponse, CreateWebhookResponse2, CreateWebhookResponses, CrmCompanyFilters, CrmCompanyResponse, CrmContactResponse, CrmDomainResponse, CrmPermissionRole, CrmStageInput, CrmStageResponse, CrmStagesResponse, CrmTeamSettingsResponse, CustomSpeakerAssignment, Database, DatabaseDetail, DatabaseOp, DatabaseView, DataType, DateOperator, DeleteAnchorData, DeleteAnchorError, DeleteAnchorErrors, DeleteAnchorResponse, DeleteAnchorResponses, DeleteCallRecordData, DeleteCallRecordError, DeleteCallRecordErrors, DeleteCallRecordResponse, DeleteCallRecordResponses, DeleteChannelData, DeleteChannelError, DeleteChannelErrors, DeleteChannelLabelData, DeleteChannelLabelError, DeleteChannelLabelErrors, DeleteChannelLabelResponse, DeleteChannelLabelResponses, DeleteChannelResponse, DeleteChannelResponses, DeleteCollabSurfaceData, DeleteCollabSurfaceError, DeleteCollabSurfaceErrors, DeleteCollabSurfaceResponse, DeleteCollabSurfaceResponses, DeleteDocumentData, DeleteDocumentError, DeleteDocumentErrors, DeleteDocumentResponse, DeleteDocumentResponses, DeleteEntityMentionData, DeleteEntityMentionError, DeleteEntityMentionErrors, DeleteEntityMentionResponse, DeleteEntityMentionResponse2, DeleteEntityMentionResponses, DeleteHarnessData, DeleteHarnessError, DeleteHarnessErrors, DeleteHarnessResponse, DeleteHarnessResponses, DeleteHistoryHandlerData, DeleteHistoryHandlerError, DeleteHistoryHandlerErrors, DeleteHistoryHandlerResponse, DeleteHistoryHandlerResponses, DeleteInitiativeData, DeleteInitiativeError, DeleteInitiativeErrors, DeleteInitiativeResponse, DeleteInitiativeResponses, DeleteProjectHandlerData, DeleteProjectHandlerError, DeleteProjectHandlerErrors, DeleteProjectHandlerResponse, DeleteProjectHandlerResponses, DeleteReminderData, DeleteReminderError, DeleteReminderErrors, DeleteReminderResponse, DeleteReminderResponses, DeleteSelfHarnessData, DeleteSelfHarnessError, DeleteSelfHarnessErrors, DeleteSelfHarnessResponse, DeleteSelfHarnessResponses, DeleteUnthreadedAnchorRequest, DeleteUnthreadedAnchorResponse, DeleteUnthreadedPdfAnchorRequest, DeleteUserApiKeyData, DeleteUserApiKeyError, DeleteUserApiKeyErrors, DeleteUserApiKeyResponse, DeleteUserApiKeyResponses, DeleteUserDocumentViewLocationData, DeleteUserDocumentViewLocationError, DeleteUserDocumentViewLocationErrors, DeleteUserDocumentViewLocationResponse, DeleteUserDocumentViewLocationResponses, DeleteViewHandlerData, DeleteViewHandlerError, DeleteViewHandlerErrors, DeleteViewHandlerResponses, DeleteWebhookData, DeleteWebhookError, DeleteWebhookErrors, DeleteWebhookResponse, DeleteWebhookResponses, DescriptionDocumentId, DocumentBasic, DocumentContent, DocumentContentLocation, DocumentContentState, DocumentContentUploadedMetadata, DocumentCopiedMetadata, DocumentCreatedMetadata, DocumentDeletedMetadata, DocumentFilters, DocumentId, DocumentInteractionMetadata, DocumentMetadata, DocumentMetadataWithContent, DocumentPermissionsToken, DocumentPermissionsTokenRequest, DocumentPermissionsTokenResponse, DocumentPreview, DocumentPreviewData, DocumentPreviewDataSubType, DocumentPurgedMetadata, DocumentResponse, DocumentResponseMetadata, DocumentResponseMetadataWithContent, DocumentStorageServiceApiVersion, DocumentSubType, DocumentSyncContentUpdatedMetadata, DocumentSyncEditor, DocumentTeamShareResponse, DocumentTopicEvent, DocumentUpdatedMetadata, EditAnchorData, EditAnchorError, EditAnchorErrors, EditAnchorRequest, EditAnchorResponse, EditAnchorResponse2, EditAnchorResponses, EditCallRecordData, EditCallRecordError, EditCallRecordErrors, EditCallRecordRequest, EditCallRecordResponse, EditCallRecordResponses, EditCallTranscriptData, EditCallTranscriptError, EditCallTranscriptErrors, EditCallTranscriptRequest, EditCallTranscriptResponse, EditCallTranscriptResponses, EditDocumentData, EditDocumentError, EditDocumentErrors, EditDocumentResponse, EditDocumentResponse2, EditDocumentResponses, EditDocumentServiceArgs, EditPdfAnchorRequest, EditPdfPlaceableCommentAnchorRequest, EditProjectV2Data, EditProjectV2Error, EditProjectV2Errors, EditProjectV2Response, EditProjectV2Responses, EditThreadV2Data, EditThreadV2Error, EditThreadV2Errors, EditThreadV2Response, EditThreadV2Responses, EmailFilters, EmailFollowup, EmailFollowupCommand, EmailFollowupResponse, EmailReminderCondition, EmailReminderPage, EmailReminderSummary, EmptyResponse, EnsureCollabSurfaceData, EnsureCollabSurfaceError, EnsureCollabSurfaceErrors, EnsureCollabSurfaceRequest, EnsureCollabSurfaceResponse, EnsureCollabSurfaceResponses, EnsureStarterHandlerData, EnsureStarterHandlerErrors, EnsureStarterHandlerResponse, EnsureStarterHandlerResponses, EntityFilters, EntityKind, EntityMessageCreateData, EntityMessageCreateResponse, EntityMessageCreateResponses, EntityMessageDeleteMessageData, EntityMessageDeleteMessageResponse, EntityMessageDeleteMessageResponses, EntityMessageDeleteThreadData, EntityMessageDeleteThreadResponse, EntityMessageDeleteThreadResponses, EntityMessageEditData, EntityMessageEditResponse, EntityMessageEditResponses, EntityMessageGetMessageData, EntityMessageGetMessageResponse, EntityMessageGetMessageResponses, EntityMessageGetThreadData, EntityMessageGetThreadResponse, EntityMessageGetThreadResponses, EntityMessageLegacyData, EntityMessageLegacyResponse, EntityMessageLegacyResponses, EntityMessagePatchThreadData, EntityMessagePatchThreadResponse, EntityMessagePatchThreadResponses, EntityMessageReactData, EntityMessageReactResponse, EntityMessageReactResponses, EntityMessageTypingData, EntityMessageTypingResponse, EntityMessageTypingResponses, EntityPermission, EntityPermissionResponse, EntityRef, EntityReference, EntityType, ErrorResponse, EventReminderOverride, EventReminders, EventStatus, EventTime, EventTransparency, EventType, EventVisibility, ExcludedDefaultView, ExcludeDefaultViewHandlerData, ExcludeDefaultViewHandlerError, ExcludeDefaultViewHandlerErrors, ExcludeDefaultViewHandlerResponses, ExcludeDefaultViewRequest, ExportDocumentData, ExportDocumentError, ExportDocumentErrors, ExportDocumentResponse, ExportDocumentResponse2, ExportDocumentResponses, Favorite, FavoriteEntityRef, FavoritesList, FileSystemNodeWithIds, FileType, FileTypeUpdate, FilterCondition, FilterGroup, FilterNode, FilterTest, FinalizeSlackImportData, FinalizeSlackImportErrors, FinalizeSlackImportResponse, FinalizeSlackImportResponses, FolderItem, FollowupState, ForeignEntity, ForeignEntityFilters, GenericErrorResponse, GenericResponse, GenericSuccessResponse, GetActiveCallsData, GetActiveCallsError, GetActiveCallsErrors, GetActiveCallsResponse, GetActiveCallsResponses, GetActivityData, GetActivityError, GetActivityErrors, GetActivityResponse, GetActivityResponses, GetAttachmentReferencesData, GetAttachmentReferencesError, GetAttachmentReferencesErrors, GetAttachmentReferencesResponse, GetAttachmentReferencesResponse2, GetAttachmentReferencesResponses, GetBatchCallRecordPreviewData, GetBatchCallRecordPreviewError, GetBatchCallRecordPreviewErrors, GetBatchCallRecordPreviewRequest, GetBatchCallRecordPreviewResponse, GetBatchCallRecordPreviewResponse2, GetBatchCallRecordPreviewResponses, GetBatchChannelPreviewData, GetBatchChannelPreviewError, GetBatchChannelPreviewErrors, GetBatchChannelPreviewRequest, GetBatchChannelPreviewResponse, GetBatchChannelPreviewResponse2, GetBatchChannelPreviewResponses, GetBatchPreviewHandlerData, GetBatchPreviewHandlerError, GetBatchPreviewHandlerErrors, GetBatchPreviewHandlerResponse, GetBatchPreviewHandlerResponses, GetBatchPreviewRequest, GetBatchPreviewResponse, GetBatchProjectPreviewData, GetBatchProjectPreviewError, GetBatchProjectPreviewErrors, GetBatchProjectPreviewRequest, GetBatchProjectPreviewResponse, GetBatchProjectPreviewResponse2, GetBatchProjectPreviewResponses, GetBotOwnerProfilesData, GetBotOwnerProfilesError, GetBotOwnerProfilesErrors, GetBotOwnerProfilesResponse, GetBotOwnerProfilesResponses, GetCallRecordData, GetCallRecordError, GetCallRecordErrors, GetCallRecordResponse, GetCallRecordResponses, GetChannelAttachmentsData, GetChannelAttachmentsError, GetChannelAttachmentsErrors, GetChannelAttachmentsResponse, GetChannelAttachmentsResponses, GetChannelData, GetChannelError, GetChannelErrors, GetChannelJoinLinkData, GetChannelJoinLinkError, GetChannelJoinLinkErrors, GetChannelJoinLinkResponse, GetChannelJoinLinkResponses, GetChannelParticipantsData, GetChannelParticipantsError, GetChannelParticipantsErrors, GetChannelParticipantsResponse, GetChannelParticipantsResponses, GetChannelResponse, GetChannelResponses, GetChannelsData, GetChannelsError, GetChannelsErrors, GetChannelsResponse, GetChannelsResponses, GetCollabSurfaceData, GetCollabSurfaceError, GetCollabSurfaceErrors, GetCollabSurfaceResponse, GetCollabSurfaceResponses, GetCompanyData, GetCompanyError, GetCompanyErrors, GetCompanyResponse, GetCompanyResponses, GetContactByEmailData, GetContactByEmailError, GetContactByEmailErrors, GetContactByEmailResponse, GetContactByEmailResponse2, GetContactByEmailResponses, GetContactData, GetContactError, GetContactErrors, GetContactResponse, GetContactResponses, GetCrmTeamSettingsData, GetCrmTeamSettingsError, GetCrmTeamSettingsErrors, GetCrmTeamSettingsResponse, GetCrmTeamSettingsResponses, GetDatabaseData, GetDatabaseError, GetDatabaseErrors, GetDatabasePermissionsData, GetDatabasePermissionsError, GetDatabasePermissionsErrors, GetDatabasePermissionsResponse, GetDatabasePermissionsResponses, GetDatabaseQueryData, GetDatabaseQueryError, GetDatabaseQueryErrors, GetDatabaseQueryResponse, GetDatabaseQueryResponses, GetDatabaseResponse, GetDatabaseResponses, GetDatabaseRowHistoryData, GetDatabaseRowHistoryError, GetDatabaseRowHistoryErrors, GetDatabaseRowHistoryResponse, GetDatabaseRowHistoryResponses, GetDatabaseTableChangesData, GetDatabaseTableChangesError, GetDatabaseTableChangesErrors, GetDatabaseTableChangesResponse, GetDatabaseTableChangesResponses, GetDatabaseViewPositionsData, GetDatabaseViewPositionsError, GetDatabaseViewPositionsErrors, GetDatabaseViewPositionsResponse, GetDatabaseViewPositionsResponses, GetDocumentAnchorsData, GetDocumentAnchorsError, GetDocumentAnchorsErrors, GetDocumentAnchorsResponse, GetDocumentAnchorsResponses, GetDocumentBranchNameData, GetDocumentBranchNameError, GetDocumentBranchNameErrors, GetDocumentBranchNameResponse, GetDocumentBranchNameResponses, GetDocumentByTeamSlugData, GetDocumentByTeamSlugError, GetDocumentByTeamSlugErrors, GetDocumentByTeamSlugResponse, GetDocumentByTeamSlugResponses, GetDocumentData, GetDocumentError, GetDocumentErrors, GetDocumentGithubPullRequestsData, GetDocumentGithubPullRequestsError, GetDocumentGithubPullRequestsErrors, GetDocumentGithubPullRequestsResponse, GetDocumentGithubPullRequestsResponses, GetDocumentKeyResponse, GetDocumentKeyResponseData, GetDocumentListHandlerData, GetDocumentListHandlerError, GetDocumentListHandlerErrors, GetDocumentListHandlerResponse, GetDocumentListHandlerResponses, GetDocumentListResult, GetDocumentLocationV3Data, GetDocumentLocationV3Error, GetDocumentLocationV3Errors, GetDocumentLocationV3Response, GetDocumentLocationV3Responses, GetDocumentPermissionsResponseDataV2, GetDocumentPermissionsTokenData, GetDocumentPermissionsTokenError, GetDocumentPermissionsTokenErrors, GetDocumentPermissionsTokenResponse, GetDocumentPermissionsTokenResponses, GetDocumentPermissionsV2Data, GetDocumentPermissionsV2Error, GetDocumentPermissionsV2Errors, GetDocumentPermissionsV2Response, GetDocumentPermissionsV2Responses, GetDocumentProcessingResult, GetDocumentProcessingResultData, GetDocumentProcessingResultError, GetDocumentProcessingResultErrors, GetDocumentProcessingResultResponse, GetDocumentProcessingResultResponse2, GetDocumentProcessingResultResponses, GetDocumentResponse, GetDocumentResponse2, GetDocumentResponseData, GetDocumentResponses, GetDocumentSearchResponse, GetDocumentShortIdData, GetDocumentShortIdError, GetDocumentShortIdErrors, GetDocumentShortIdResponse, GetDocumentShortIdResponses, GetDocumentsResponse, GetDocumentTeamShareData, GetDocumentTeamShareError, GetDocumentTeamShareErrors, GetDocumentTeamShareResponse, GetDocumentTeamShareResponses, GetDocumentUserAccessLevelResponse, GetDocumentVersionData, GetDocumentVersionError, GetDocumentVersionErrors, GetDocumentVersionResponse, GetDocumentVersionResponses, GetDocumentViewsHandlerData, GetDocumentViewsHandlerError, GetDocumentViewsHandlerErrors, GetDocumentViewsHandlerResponse, GetDocumentViewsHandlerResponses, GetEmailFollowupData, GetEmailFollowupError, GetEmailFollowupErrors, GetEmailFollowupResponse, GetEmailFollowupResponses, GetEntityPermissionData, GetEntityPermissionErrors, GetEntityPermissionResponse, GetEntityPermissionResponses, GetForeignEntityBySourceData, GetForeignEntityBySourceError, GetForeignEntityBySourceErrors, GetForeignEntityBySourceResponse, GetForeignEntityBySourceResponses, GetForeignEntityData, GetForeignEntityError, GetForeignEntityErrors, GetForeignEntityResponse, GetForeignEntityResponses, GetGithubPullRequestFacetsData, GetGithubPullRequestFacetsError, GetGithubPullRequestFacetsErrors, GetGithubPullRequestFacetsResponse, GetGithubPullRequestFacetsResponses, GetHarnessPairingData, GetHarnessPairingError, GetHarnessPairingErrors, GetHarnessPairingResponse, GetHarnessPairingResponses, GetHistoryHandlerData, GetHistoryHandlerError, GetHistoryHandlerErrors, GetHistoryHandlerResponse, GetHistoryHandlerResponses, GetInitiativeData, GetInitiativeError, GetInitiativeErrors, GetInitiativeResponse, GetInitiativeResponses, GetInstructionsDocumentResponse, GetInstructionsHandlerData, GetInstructionsHandlerError, GetInstructionsHandlerErrors, GetInstructionsHandlerResponse, GetInstructionsHandlerResponses, GetItemsSoupData, GetItemsSoupError, GetItemsSoupErrors, GetItemsSoupResponse, GetItemsSoupResponses, GetLocationHandlerData, GetLocationHandlerError, GetLocationHandlerErrors, GetLocationHandlerResponse, GetLocationHandlerResponses, GetOrCreateAction, GetOrCreateCallData, GetOrCreateCallError, GetOrCreateCallErrors, GetOrCreateCallResponse, GetOrCreateCallResponses, GetOrCreateChannelResponse, GetOrCreateDmData, GetOrCreateDmError, GetOrCreateDmErrors, GetOrCreateDmRequest, GetOrCreateDmResponse, GetOrCreateDmResponses, GetOrCreatePrivateData, GetOrCreatePrivateError, GetOrCreatePrivateErrors, GetOrCreatePrivateRequest, GetOrCreatePrivateResponse, GetOrCreatePrivateResponses, GetPendingProjectsHandlerData, GetPendingProjectsHandlerError, GetPendingProjectsHandlerErrors, GetPendingProjectsHandlerResponse, GetPendingProjectsHandlerResponses, GetPinsHandlerData, GetPinsHandlerError, GetPinsHandlerErrors, GetPinsHandlerResponse, GetPinsHandlerResponses, GetPinsResponse, GetProjectContentHandlerData, GetProjectContentHandlerError, GetProjectContentHandlerErrors, GetProjectContentHandlerResponse, GetProjectContentHandlerResponses, GetProjectContentResponse, GetProjectHandlerData, GetProjectHandlerError, GetProjectHandlerErrors, GetProjectHandlerResponse, GetProjectHandlerResponses, GetProjectPermissionsV2Data, GetProjectPermissionsV2Error, GetProjectPermissionsV2Errors, GetProjectPermissionsV2Response, GetProjectPermissionsV2Responses, GetProjectResponse, GetProjectResponseData, GetProjectsHandlerData, GetProjectsHandlerError, GetProjectsHandlerErrors, GetProjectsHandlerResponse, GetProjectsHandlerResponses, GetProjectsResponse, GetProjectUserAccessLevelData, GetProjectUserAccessLevelError, GetProjectUserAccessLevelErrors, GetProjectUserAccessLevelResponse, GetProjectUserAccessLevelResponses, GetReminderData, GetReminderError, GetReminderErrors, GetReminderResponse, GetReminderResponses, GetRingStatusData, GetRingStatusError, GetRingStatusErrors, GetRingStatusResponse, GetRingStatusResponses, GetSelfBotData, GetSelfBotError, GetSelfBotErrors, GetSelfBotResponse, GetSelfBotResponses, GetSelfHarnessData, GetSelfHarnessError, GetSelfHarnessErrors, GetSelfHarnessResponse, GetSelfHarnessResponses, GetSlackImportData, GetSlackImportErrors, GetSlackImportResponse, GetSlackImportResponses, GetSystemSkillsHandlerData, GetSystemSkillsHandlerError, GetSystemSkillsHandlerErrors, GetSystemSkillsHandlerResponse, GetSystemSkillsHandlerResponses, GetUserDocumentsHandlerData, GetUserDocumentsHandlerError, GetUserDocumentsHandlerErrors, GetUserDocumentsHandlerResponse, GetUserDocumentsHandlerResponses, GetUserDocumentViewLocationData, GetUserDocumentViewLocationError, GetUserDocumentViewLocationErrors, GetUserDocumentViewLocationResponse, GetUserDocumentViewLocationResponses, GetUserHistoryResponse, GetViewsHandlerData, GetViewsHandlerError, GetViewsHandlerErrors, GetViewsHandlerResponse, GetViewsHandlerResponses, GetWebhookData, GetWebhookError, GetWebhookErrors, GetWebhookResponse, GetWebhookResponses, GithubLabelFacet, GithubPullRequest, GithubPullRequestCheckRun, GithubPullRequestComment, GithubPullRequestFacets, GithubPullRequestsResponse, GithubRepositoryFacet, GithubUserFacet, GroupedInitialParams, GroupedPageParams, GroupedSoupGroupPage, GroupedSoupInitialPage, GroupedSoupPage, GroupedSoupSort, GuestId, GuestJoinRequest, HandlerData, HandlerError, HandlerErrors, HandlerResponse, HandlerResponses, Harness, HarnessAgent, HarnessId, HarnessOwner, HarnessSession, HashMap, HealthHandlerData, HealthHandlerResponse, HealthHandlerResponses, HighlightType, ImportCounters, ImportDatabaseTableData, ImportDatabaseTableError, ImportDatabaseTableErrors, ImportDatabaseTableResponse, ImportDatabaseTableResponses, ImportedAuthor, ImportError, ImportLimits, ImportPage, ImportProgress, ImportTable, ImportWarning, InferColumnTypeOutcome, InferColumnTypeRequest, InferDatabaseColumnTypeData, InferDatabaseColumnTypeError, InferDatabaseColumnTypeErrors, InferDatabaseColumnTypeResponse, InferDatabaseColumnTypeResponses, InFlightTurnSummary, IngestTranscriptData, IngestTranscriptError, IngestTranscriptErrors, IngestTranscriptResponses, InitializeUserDocumentsData, InitializeUserDocumentsError, InitializeUserDocumentsErrors, InitializeUserDocumentsResponse, InitializeUserDocumentsResponses, InitialPropertyValue, InitiativeDetail, InitiativeFilters, InitiativeId, InitiativeList, InitiativeSummary, InputReceivedMetadata, InstallSyncData, InstallSyncErrors, InteractionReason, InviteMeetingRequest, InviteMeetingUsersRequest, Item, ItemWithUserAccessLevel, JobId, JobProcessingResultHandlerData, JobProcessingResultHandlerError, JobProcessingResultHandlerErrors, JobProcessingResultHandlerResponse, JobProcessingResultHandlerResponses, JobStatus, JoinChannelByCodeData, JoinChannelByCodeError, JoinChannelByCodeErrors, JoinChannelByCodeResponses, JoinChannelData, JoinChannelError, JoinChannelErrors, JoinChannelResponses, KeySegment, Lane, LaneKey, LatestMessage, LeaveCallResponse, LeaveChannelData, LeaveChannelError, LeaveChannelErrors, LeaveChannelResponses, LeaveOrEndCallData, LeaveOrEndCallError, LeaveOrEndCallErrors, LeaveOrEndCallResponse, LeaveOrEndCallResponses, LinkShare, ListAgentsData, ListAgentsError, ListAgentsErrors, ListAgentsResponse, ListAgentsResponses, ListBotChannelsData, ListBotChannelsError, ListBotChannelsErrors, ListBotChannelsResponse, ListBotChannelsResponses, ListChannelLabelsData, ListChannelLabelsError, ListChannelLabelsErrors, ListChannelLabelsResponse, ListChannelLabelsResponses, ListCompanyContactsData, ListCompanyContactsError, ListCompanyContactsErrors, ListCompanyContactsResponse, ListCompanyContactsResponses, ListDatabaseColumnCastsData, ListDatabaseColumnCastsError, ListDatabaseColumnCastsErrors, ListDatabaseColumnCastsResponse, ListDatabaseColumnCastsResponses, ListDatabasesData, ListDatabasesError, ListDatabasesErrors, ListDatabasesResponse, ListDatabasesResponses, ListedDatabase, ListEmailRemindersData, ListEmailRemindersError, ListEmailRemindersErrors, ListEmailRemindersResponse, ListEmailRemindersResponses, ListFavoritesData, ListFavoritesError, ListFavoritesErrors, ListFavoritesResponse, ListFavoritesResponses, ListHarnessAgentsData, ListHarnessAgentsError, ListHarnessAgentsErrors, ListHarnessAgentsResponse, ListHarnessAgentsResponses, ListHarnessesData, ListHarnessesError, ListHarnessesErrors, ListHarnessesResponse, ListHarnessesResponses, ListHarnessSessionsData, ListHarnessSessionsError, ListHarnessSessionsErrors, ListHarnessSessionsResponse, ListHarnessSessionsResponses, ListInitiativesData, ListInitiativesError, ListInitiativesErrors, ListInitiativesResponse, ListInitiativesResponses, ListOccurrencesData, ListOccurrencesErrors, ListOccurrencesResponse, ListOccurrencesResponses, ListReminderCollectionData, ListReminderCollectionError, ListReminderCollectionErrors, ListReminderCollectionResponse, ListReminderCollectionResponses, ListRemindersData, ListRemindersError, ListRemindersErrors, ListRemindersResponse, ListRemindersResponses, ListSlackImportsData, ListSlackImportsResponse, ListSlackImportsResponses, ListTeamOutOfOfficeData, ListTeamOutOfOfficeErrors, ListTeamOutOfOfficeResponse, ListTeamOutOfOfficeResponses, ListUserApiKeysData, ListUserApiKeysError, ListUserApiKeysErrors, ListUserApiKeysResponse, ListUserApiKeysResponses, ListWebhooksData, ListWebhooksError, ListWebhooksErrors, ListWebhooksResponse, ListWebhooksResponse2, ListWebhooksResponses, LocationResponseData, LocationResponseV3, MacroUserIdStr, Meeting, MeetingCancelData, MeetingCancelError, MeetingCancelErrors, MeetingCancelPreparationData, MeetingCancelPreparationError, MeetingCancelPreparationErrors, MeetingCancelPreparationResponse, MeetingCancelPreparationResponses, MeetingCancelResponse, MeetingCancelResponses, MeetingCreateData, MeetingCreateError, MeetingCreateErrors, MeetingCreateResponse, MeetingCreateResponses, MeetingGuestJoinData, MeetingGuestJoinError, MeetingGuestJoinErrors, MeetingGuestJoinResponse, MeetingGuestJoinResponses, MeetingGuestParticipantsData, MeetingGuestParticipantsError, MeetingGuestParticipantsErrors, MeetingGuestParticipantsResponse, MeetingGuestParticipantsResponses, MeetingInviteData, MeetingInviteError, MeetingInviteErrors, MeetingInvitePermissions, MeetingInvitePermissionsData, MeetingInvitePermissionsError, MeetingInvitePermissionsErrors, MeetingInvitePermissionsResponse, MeetingInvitePermissionsResponses, MeetingInviteResponse, MeetingInviteResponses, MeetingInviteUsersData, MeetingInviteUsersError, MeetingInviteUsersErrors, MeetingInviteUsersResponse, MeetingInviteUsersResponses, MeetingJoinData, MeetingJoinError, MeetingJoinErrors, MeetingJoinResponse, MeetingJoinResponses, MeetingLeaveData, MeetingLeaveError, MeetingLeaveErrors, MeetingLeaveResponse, MeetingLeaveResponses, MeetingListActiveData, MeetingListActiveError, MeetingListActiveErrors, MeetingListActiveResponse, MeetingListActiveResponses, MeetingListData, MeetingListError, MeetingListErrors, MeetingListResponse, MeetingListResponses, MeetingLookupData, MeetingLookupError, MeetingLookupErrors, MeetingLookupResponse, MeetingLookupResponses, MeetingParticipant, MeetingParticipants, MeetingParticipantsData, MeetingParticipantsError, MeetingParticipantsErrors, MeetingParticipantsResponse, MeetingParticipantsResponses, MeetingPreparation, MeetingPrepareData, MeetingPrepareError, MeetingPrepareErrors, MeetingPrepareResponse, MeetingPrepareResponses, MeetingShareData, MeetingShareError, MeetingShareErrors, MeetingShareResponse, MeetingShareResponses, MeetingsResponse, MeetingToken, MeetingUpdateData, MeetingUpdateError, MeetingUpdateErrors, MeetingUpdateResponse, MeetingUpdateResponses, MentionPreviewsData, MentionPreviewsErrors, MentionPreviewsResponse, MentionPreviewsResponses, Message, MessageAttachment, MessageAttachmentCreatedMetadata, MessageAttachmentRemovedMetadata, MessageChange, MessageCursor, MessageDeletedMetadata, MessageDirection, MessageEvent, MessageEventAttachment, MessageListItem, MessageMentionedMetadata, MessagePage, MessageParent, MessagePatch, MessagePatchedMetadata, MessagePostedMetadata, MessageThread, MessageThreadPreview, MessageTimelineData, MessageTimelineQuery, MessageTimelineResponse, MessageTimelineResponses, MessageTopicEvent, NewAttachment, NewColumn, NewOption, NewThreadAnchor, NewView, NotificationFilters, NotificationState, NumberOperator, OpRefusalResponse, OpResult, OptionRef, PairingDetails, Params, ParticipantRole, PatchBotRequest, PatchChannelData, PatchChannelError, PatchChannelErrors, PatchChannelRequest, PatchChannelResponse, PatchChannelResponses, PatchMessageNotificationPolicy, PatchProjectRequestV2, PatchThreadRequestV2, PatchViewHandlerData, PatchViewHandlerError, PatchViewHandlerErrors, PatchViewHandlerResponses, PatchWebhookData, PatchWebhookError, PatchWebhookErrors, PatchWebhookRequest, PatchWebhookResponse, PatchWebhookResponses, PdfAnchor, PdfAnchorId, PdfHighlightAnchor, PdfHighlightAnchorRequest, PdfHighlightRect, PdfHighlightRectAnchorRequest, PdfPlaceableCommentAnchor, PendingClaimResponse, PermanentlyDeleteDocumentData, PermanentlyDeleteDocumentError, PermanentlyDeleteDocumentErrors, PermanentlyDeleteDocumentResponse, PermanentlyDeleteDocumentResponses, PermanentlyDeleteProjectData, PermanentlyDeleteProjectError, PermanentlyDeleteProjectErrors, PermanentlyDeleteProjectResponse, PermanentlyDeleteProjectResponses, PinnedItem, PinRequest, PostActivityData, PostActivityError, PostActivityErrors, PostActivityRequest, PostActivityResponse, PostActivityResponses, PostChannelBotWebhookData, PostChannelBotWebhookError, PostChannelBotWebhookErrors, PostChannelBotWebhookResponse, PostChannelBotWebhookResponses, PostGroupedSoupAstGroupPageRequest, PostGroupedSoupAstInitialRequest, PostGroupedSoupAstRequest, PostItemsSoupAstData, PostItemsSoupAstError, PostItemsSoupAstErrors, PostItemsSoupAstGroupedData, PostItemsSoupAstGroupedError, PostItemsSoupAstGroupedErrors, PostItemsSoupAstGroupedResponse, PostItemsSoupAstGroupedResponses, PostItemsSoupAstResponse, PostItemsSoupAstResponses, PostItemsSoupData, PostItemsSoupError, PostItemsSoupErrors, PostItemsSoupResponse, PostItemsSoupResponses, PostMessage, PostMessageNotificationPolicy, PostSoupAstRequest, PostSoupRequest, PresaveDocumentHandlerData, PresaveDocumentHandlerError, PresaveDocumentHandlerErrors, PresaveDocumentHandlerResponse, PresaveDocumentHandlerResponses, PreSaveDocumentRequest, PreSaveDocumentResponse, PreSaveDocumentResponseData, PresenceOperator, PresignedUrl, PreviewSmartTagData, PreviewSmartTagError, PreviewSmartTagErrors, PreviewSmartTagResponse, PreviewSmartTagResponses, Project, ProjectDeleteResponseData, ProjectDocumentStatus, ProjectFilters, ProjectPreview, ProjectPreviewData, PropertyDefinition, PropertyDefinitionWithOptions, PropertyFilter, PropertyInput, PropertyOption, PropertyOptionValue, PropertyOwner, PropertyValue, PutCrmTeamSettingsData, PutCrmTeamSettingsError, PutCrmTeamSettingsErrors, PutCrmTeamSettingsResponse, PutCrmTeamSettingsResponses, PutCrmTeamStagesData, PutCrmTeamStagesError, PutCrmTeamStagesErrors, PutCrmTeamStagesResponse, PutCrmTeamStagesResponses, QueryDefinition, ReactionInput, RecentlyDeletedData, RecentlyDeletedError, RecentlyDeletedErrors, RecentlyDeletedResponse, RecentlyDeletedResponseData, RecentlyDeletedResponses, RegisterSlackImportUploadsData, RegisterSlackImportUploadsErrors, RegisterSlackImportUploadsResponse, RegisterSlackImportUploadsResponses, RegisterUploads, Reminder, ReminderCollectionPage, ReminderCollectionRow, ReminderFilters, ReminderReference, ReminderSchedule, RemindersList, RemoveBotFromChannelByBotData, RemoveBotFromChannelByBotError, RemoveBotFromChannelByBotErrors, RemoveBotFromChannelByBotResponse, RemoveBotFromChannelByBotResponses, RemoveFavoriteByEntityData, RemoveFavoriteByEntityError, RemoveFavoriteByEntityErrors, RemoveFavoriteByEntityResponses, RemoveParticipantsData, RemoveParticipantsError, RemoveParticipantsErrors, RemoveParticipantsRequest, RemoveParticipantsResponses, RemovePinHandlerData, RemovePinHandlerError, RemovePinHandlerErrors, RemovePinHandlerResponse, RemovePinHandlerResponses, RenameChannelLabelData, RenameChannelLabelError, RenameChannelLabelErrors, RenameChannelLabelRequest, RenameChannelLabelResponse, RenameChannelLabelResponses, ReorderFavoritesData, ReorderFavoritesError, ReorderFavoritesErrors, ReorderFavoritesRequest, ReorderFavoritesResponses, ReorderPinRequest, ReorderPinsHandlerData, ReorderPinsHandlerError, ReorderPinsHandlerErrors, ReorderPinsHandlerResponse, ReorderPinsHandlerResponses, ReplaceCrmStagesRequest, RequestedHarnessScope, RequestedLayout, ResetCrmTeamStagesData, ResetCrmTeamStagesError, ResetCrmTeamStagesErrors, ResetCrmTeamStagesResponse, ResetCrmTeamStagesResponses, RevertDeleteDocumentData, RevertDeleteDocumentError, RevertDeleteDocumentErrors, RevertDeleteDocumentResponse, RevertDeleteDocumentResponses, RevertDeleteProjectData, RevertDeleteProjectError, RevertDeleteProjectErrors, RevertDeleteProjectResponse, RevertDeleteProjectResponses, RingStatus, RingStatusResponse, RowChange, RowChangeKind, RowChanges, RowHistoryEntry, RowHistoryResponse, RowsChange, RowsResult, S3ObjectInfo, SaveBomPart, SaveDatabaseQueryData, SaveDatabaseQueryError, SaveDatabaseQueryErrors, SaveDatabaseQueryResponse, SaveDatabaseQueryResponses, SaveDocumentHandlerData, SaveDocumentHandlerError, SaveDocumentHandlerErrors, SaveDocumentHandlerResponse, SaveDocumentHandlerResponses, SaveDocumentRequest, SaveDocumentResponse, SaveDocumentResponseData, SavedQuery, SaveQueryRequest, SearchContactsData, SearchContactsError, SearchContactsErrors, SearchContactsResponse, SearchContactsResponse2, SearchContactsResponses, SearchState, SessionDeletedMetadata, SessionIdentity, SessionMentionedMetadata, SessionOpenedMetadata, SessionRenamedMetadata, SessionSettledMetadata, SessionStoppedMetadata, SetChannelLabelData, SetChannelLabelError, SetChannelLabelErrors, SetChannelLabelRequest, SetChannelLabelResponse, SetChannelLabelResponses, SetChannelPictureData, SetChannelPictureError, SetChannelPictureErrors, SetChannelPictureRequest, SetChannelPictureResponse, SetChannelPictureResponses, SetCompanyHiddenData, SetCompanyHiddenError, SetCompanyHiddenErrors, SetCompanyHiddenRequest, SetCompanyHiddenResponse, SetCompanyHiddenResponses, SetCompanyNameRequest, SetContactHiddenData, SetContactHiddenError, SetContactHiddenErrors, SetContactHiddenRequest, SetContactHiddenResponse, SetContactHiddenResponses, SetContactNameRequest, SetCrmCompanyNameData, SetCrmCompanyNameError, SetCrmCompanyNameErrors, SetCrmCompanyNameResponse, SetCrmCompanyNameResponses, SetCrmContactNameData, SetCrmContactNameError, SetCrmContactNameErrors, SetCrmContactNameResponse, SetCrmContactNameResponses, SetDocumentTeamShareData, SetDocumentTeamShareError, SetDocumentTeamShareErrors, SetDocumentTeamShareRequest, SetDocumentTeamShareResponse, SetDocumentTeamShareResponses, SetEmailFollowupData, SetEmailFollowupError, SetEmailFollowupErrors, SetEmailFollowupResponse, SetEmailFollowupResponses, SetEmailSyncData, SetEmailSyncError, SetEmailSyncErrors, SetEmailSyncRequest, SetEmailSyncResponse, SetEmailSyncResponses, SetOperator, SetPropertyValue, Sha256Digest, ShareDatabaseAwarenessData, ShareDatabaseAwarenessError, ShareDatabaseAwarenessErrors, ShareDatabaseAwarenessResponse, ShareDatabaseAwarenessResponses, SharedEmailFilter, SharePermissionV2, ShortIdResponse, SimpleMention, SimpleSaveData, SimpleSaveError, SimpleSaveErrors, SimpleSaveResponse, SimpleSaveResponses, SkippedCell, SlackCompleteRequest, SlackCreateRequest, SlackRegisterRequest, SlackTimestamp, SlackUserId, SmartTagChannelMatch, SmartTagPreview, SortDirection, SortKey, SoupAgentSessionSoupPropertiesField, SoupApiItem, SoupApiSort, SoupApiSortDirection, SoupAttachment, SoupCalendarEventSoupPropertiesField, SoupCalendarEventTime, SoupCallRecordGuest, SoupCallRecordParticipant, SoupCallRecordSoupPropertiesField, SoupChannel, SoupChannelThread, SoupChatSoupPropertiesField, SoupContact, SoupCountedReaction, SoupCrmCompanySoupPropertiesField, SoupCrmDomain, SoupDatabaseRowSoupPropertiesField, SoupDocumentSoupPropertiesField, SoupDocumentSubType, SoupEmailThreadPreview, SoupEnrichedEmailThreadPreviewSoupPropertiesField, SoupForeignEntity, SoupInitiativeSoupPropertiesField, SoupItem, SoupLabel, SoupLabelListVisibility, SoupLabelType, SoupMessageAttachment, SoupMessageListVisibility, SoupMessageSender, SoupMessageSenderType, SoupPage, SoupProjectSoupPropertiesField, SoupPropertiesField, SoupProperty, SoupReminderReference, SoupReminderSchedule, SoupReminderSoupPropertiesField, SoupThreadInfo, SoupThreadReply, SourceBinding, SourceId, SourceIdentity, StarterDatabase, StarterDocumentsResponse, StreamEventsData, StreamEventsError, StreamEventsErrors, StreamEventsResponse, StreamEventsResponses, String, SuccessResponse, SurfaceState, SyncServiceVersionId, SystemSkillSummary, Table, TableChange, TableChanged, TableChanges, TableDetail, TableResult, TableVersion, TagFilterMode, TakenId, TaskFilters, TeamOutOfOfficeItem, TeamOutOfOfficeResponse, TeamRole, TextOperator, ThreadAnchor, ThreadOrigin, ThreadPatch, ThreadState, ToggleShareWithTeamData, ToggleShareWithTeamError, ToggleShareWithTeamErrors, ToggleShareWithTeamResponse, ToggleShareWithTeamResponses, TouchedColumn, TouchedRow, TranscribeDictationData, TranscribeDictationError, TranscribeDictationErrors, TranscribeDictationResponse, TranscribeDictationResponses, TranscribeResponse, TranscriptSegmentRequest, TurnEndedMetadata, TurnStartedMetadata, TurnSummary, TypedSuccessResponse, TypedSuccessResponseGetDocumentResponseData, TypingInput, UnassignInitiativeTaskData, UnassignInitiativeTaskError, UnassignInitiativeTaskErrors, UnassignInitiativeTaskResponse, UnassignInitiativeTaskResponses, UndoChangeResponse, UndoDatabaseChangeData, UndoDatabaseChangeError, UndoDatabaseChangeErrors, UndoDatabaseChangeResponse, UndoDatabaseChangeResponses, UndoOutcome, UndoRefusal, UpdateAgentData, UpdateAgentError, UpdateAgentErrors, UpdateAgentRequest, UpdateAgentResponse, UpdateAgentResponses, UpdateChannelSharePermission, UpdateCrmTeamSettingsRequest, UpdateDatabasePermissionsData, UpdateDatabasePermissionsError, UpdateDatabasePermissionsErrors, UpdateDatabasePermissionsResponse, UpdateDatabasePermissionsResponses, UpdateInitiativeData, UpdateInitiativeError, UpdateInitiativeErrors, UpdateInitiativeRequest, UpdateInitiativeResponse, UpdateInitiativeResponses, UpdateMeetingRequest, UpdateOperation, UpdateReminderData, UpdateReminderError, UpdateReminderErrors, UpdateReminderRequest, UpdateReminderResponse, UpdateReminderResponses, UpdateSharePermissionRequestV2, UploadDescriptor, UploadDocumentStatus, UploadExtractFolderHandlerData, UploadExtractFolderHandlerError, UploadExtractFolderHandlerErrors, UploadExtractFolderHandlerResponse, UploadExtractFolderHandlerResponses, UploadExtractFolderRequest, UploadFolderHandlerData, UploadFolderHandlerError, UploadFolderHandlerErrors, UploadFolderHandlerResponse, UploadFolderHandlerResponses, UploadFolderRequest, UploadGrant, UploadId, UpsertHistoryHandlerData, UpsertHistoryHandlerError, UpsertHistoryHandlerErrors, UpsertHistoryHandlerResponse, UpsertHistoryHandlerResponses, UpsertUserDocumentViewLocationData, UpsertUserDocumentViewLocationError, UpsertUserDocumentViewLocationErrors, UpsertUserDocumentViewLocationRequest, UpsertUserDocumentViewLocationResponse, UpsertUserDocumentViewLocationResponses, UserApiKeyId, UserApiKeyInfo, UserApiKeysList, UserDocumentsResponse, UserDocumentViewLocation, UserDocumentViewLocationResponse, UserPinsResponse, UserViewsResponse, ValidateDocumentPermissionsTokenData, ValidateDocumentPermissionsTokenError, ValidateDocumentPermissionsTokenErrors, ValidateDocumentPermissionsTokenResponse, ValidateDocumentPermissionsTokenResponses, ValidateWebhookData, ValidateWebhookError, ValidateWebhookErrors, ValidateWebhookResponse, ValidateWebhookResponse2, ValidateWebhookResponses, Vec, VersionedTable, View, ViewChange, ViewColumn, ViewLayout, ViewPatch, ViewPosition, ViewPositionsResponse, ViewQuery, ViewResult, ViewsResponse, WaitingForInputMetadata, Webhook, WebhookEvent, WebhookFilter, WebhookScope, WebhookStatus, WebhookValidationTestEvent, WithCallId, WithChannelId, WithDocumentId, WithProjectId } from './types.gen';diff --git a/packages/sdk/generated/storage/types.gen.ts b/packages/sdk/generated/storage/types.gen.tsindex 3763fa2127..13a93b5368 100644--- a/packages/sdk/generated/storage/types.gen.ts+++ b/packages/sdk/generated/storage/types.gen.ts@@ -6598,21 +6598,22 @@ export type GetUserHistoryResponse = {};/**- * An author among the visible GitHub pull requests.+ * A label among the visible GitHub pull requests. Labels with the same name in different+ * repositories count together.*/-export type GithubAuthorFacet = {+export type GithubLabelFacet = {/**- * Number of visible pull requests the author opened.+ * The label's most recently synced color, as six hex digits without `#`.*/- count: number;+ color?: string | null;/**- * The author's numeric GitHub user id.+ * Number of visible pull requests with the label.*/- githubUserId: string;+ count: number;/**- * The author's most recently synced GitHub login, when known.+ * The label's name.*/- login?: string | null;+ name: string;};/**@@ -6771,14 +6772,22 @@ export type GithubPullRequestComment = {};/**- * Repositories and authors among the GitHub pull requests a caller can see, each with the- * number of pull requests it covers.+ * Repositories, authors, assignees, and labels among the GitHub pull requests a caller can see,+ * each with the number of pull requests it covers.*/export type GithubPullRequestFacets = {+ /**+ * Assignees, most pull requests first.+ */+ assignees: Array<GithubUserFacet>;/*** Authors, most pull requests first.*/- authors: Array<GithubAuthorFacet>;+ authors: Array<GithubUserFacet>;+ /**+ * Labels, most pull requests first.+ */+ labels: Array<GithubLabelFacet>;/*** Repositories, most pull requests first.*/@@ -6813,6 +6822,24 @@ export type GithubRepositoryFacet = {repositoryId: string;};+/**+ * A GitHub user among the visible pull requests, as an author or an assignee.+ */+export type GithubUserFacet = {+ /**+ * Number of visible pull requests the user opened, or is assigned to.+ */+ count: number;+ /**+ * The user's numeric GitHub user id.+ */+ githubUserId: string;+ /**+ * The user's most recently synced GitHub login, when known.+ */+ login?: string | null;+};+/*** Parameters for the initial grouped soup query.*/diff --git a/packages/sdk/specs/storage.json b/packages/sdk/specs/storage.jsonindex 1901a2287e..be09e47ea2 100644--- a/packages/sdk/specs/storage.json+++ b/packages/sdk/specs/storage.json@@ -26503,23 +26503,23 @@}}},- "GithubAuthorFacet": {+ "GithubLabelFacet": {"type": "object",- "description": "An author among the visible GitHub pull requests.",- "required": ["githubUserId", "count"],+ "description": "A label among the visible GitHub pull requests. Labels with the same name in different\nrepositories count together.",+ "required": ["name", "count"],"properties": {+ "color": {+ "type": ["string", "null"],+ "description": "The label's most recently synced color, as six hex digits without `#`."+ },"count": {"type": "integer","format": "int64",- "description": "Number of visible pull requests the author opened."+ "description": "Number of visible pull requests with the label."},- "githubUserId": {+ "name": {"type": "string",- "description": "The author's numeric GitHub user id."- },- "login": {- "type": ["string", "null"],- "description": "The author's most recently synced GitHub login, when known."+ "description": "The label's name."}}},@@ -26714,16 +26714,30 @@},"GithubPullRequestFacets": {"type": "object",- "description": "Repositories and authors among the GitHub pull requests a caller can see, each with the\nnumber of pull requests it covers.",- "required": ["repositories", "authors"],+ "description": "Repositories, authors, assignees, and labels among the GitHub pull requests a caller can see,\neach with the number of pull requests it covers.",+ "required": ["repositories", "authors", "assignees", "labels"],"properties": {+ "assignees": {+ "type": "array",+ "items": {+ "$ref": "#/components/schemas/GithubUserFacet"+ },+ "description": "Assignees, most pull requests first."+ },"authors": {"type": "array","items": {- "$ref": "#/components/schemas/GithubAuthorFacet"+ "$ref": "#/components/schemas/GithubUserFacet"},"description": "Authors, most pull requests first."},+ "labels": {+ "type": "array",+ "items": {+ "$ref": "#/components/schemas/GithubLabelFacet"+ },+ "description": "Labels, most pull requests first."+ },"repositories": {"type": "array","items": {@@ -26767,6 +26781,26 @@}}},+ "GithubUserFacet": {+ "type": "object",+ "description": "A GitHub user among the visible pull requests, as an author or an assignee.",+ "required": ["githubUserId", "count"],+ "properties": {+ "count": {+ "type": "integer",+ "format": "int64",+ "description": "Number of visible pull requests the user opened, or is assigned to."+ },+ "githubUserId": {+ "type": "string",+ "description": "The user's numeric GitHub user id."+ },+ "login": {+ "type": ["string", "null"],+ "description": "The user's most recently synced GitHub login, when known."+ }+ }+ },"GroupedInitialParams": {"type": "object","description": "Parameters for the initial grouped soup query.",diff --git a/packages/sdk/src/entities/foreign/namespace.ts b/packages/sdk/src/entities/foreign/namespace.tsindex 53fa5fc59a..e41775d316 100644--- a/packages/sdk/src/entities/foreign/namespace.ts+++ b/packages/sdk/src/entities/foreign/namespace.ts@@ -1,6 +1,7 @@import type {GithubRepositoryFacet,- GithubAuthorFacet as WireGithubAuthorFacet,+ GithubLabelFacet as WireGithubLabelFacet,+ GithubUserFacet as WireGithubUserFacet,} from '../../../generated/storage/types.gen';import { unwrap } from '../../utils';import type { MacroClient } from '../../utils/client';@@ -8,18 +9,38 @@ import { ForeignEntity } from './foreign-entity';export type { GithubRepositoryFacet };-/** An author among the GitHub pull requests visible to the caller. */-export type GithubAuthorFacet = Omit<WireGithubAuthorFacet, 'login'> & {- /** The author's most recently synced GitHub login, when known. */+/** A GitHub user among the pull requests visible to the caller, as an author or an assignee. */+export type GithubUserFacet = Omit<WireGithubUserFacet, 'login'> & {+ /** The user's most recently synced GitHub login, when known. */login?: string;};-/** Repositories and authors among the GitHub pull requests visible to the caller. */+/** A label among the GitHub pull requests visible to the caller. */+export type GithubLabelFacet = Omit<WireGithubLabelFacet, 'color'> & {+ /** The label's most recently synced color, as six hex digits without `#`. */+ color?: string;+};++/**+ * Repositories, authors, assignees, and labels among the GitHub pull requests+ * visible to the caller.+ */export interface GithubPullRequestFacets {/** Repositories, most pull requests first. */repositories: GithubRepositoryFacet[];/** Authors, most pull requests first. */- authors: GithubAuthorFacet[];+ authors: GithubUserFacet[];+ /** Assignees, most pull requests first. */+ assignees: GithubUserFacet[];+ /** Labels, most pull requests first. */+ labels: GithubLabelFacet[];+}++function withoutNullLogin({+ login,+ ...user+}: WireGithubUserFacet): GithubUserFacet {+ return { ...user, login: login ?? undefined };}export class ForeignEntityNamespace {@@ -50,19 +71,22 @@ export class ForeignEntityNamespace {}/**- * Repositories and authors among the GitHub pull requests visible to the- * authenticated user and their team, each with how many pull requests it- * covers. A pull request visible to both the user and the team counts once.+ * Repositories, authors, assignees, and labels among the GitHub pull+ * requests visible to the authenticated user and their team, each with how+ * many pull requests it covers. A pull request visible to both the user and+ * the team counts once.*/async githubPullRequestFacets(): Promise<GithubPullRequestFacets> {- const { repositories, authors } = unwrap(+ const { repositories, authors, assignees, labels } = unwrap(await this.client.storage.getGithubPullRequestFacets());return {repositories,- authors: authors.map(({ login, ...author }) => ({- ...author,- login: login ?? undefined,+ authors: authors.map(withoutNullLogin),+ assignees: assignees.map(withoutNullLogin),+ labels: labels.map(({ color, ...label }) => ({+ ...label,+ color: color ?? undefined,})),};}diff --git a/services/document_storage_service/src/api/swagger.rs b/services/document_storage_service/src/api/swagger.rsindex e2bd4a915e..74148183ba 100644--- a/services/document_storage_service/src/api/swagger.rs+++ b/services/document_storage_service/src/api/swagger.rs@@ -115,7 +115,7 @@ use favorites::inbound::axum_router::{};use foreign_entity::domain::models::ForeignEntity;use github_pull_requests::domain::models::{- GithubAuthorFacet, GithubPullRequestFacets, GithubRepositoryFacet,+ GithubLabelFacet, GithubPullRequestFacets, GithubRepositoryFacet, GithubUserFacet,};use initiative::domain::models::{AssignTaskStatus, AssignTasksRequest, AssignTasksResponse, AssignTasksResult,@@ -616,7 +616,8 @@ use utoipa::OpenApi;ForeignEntity,GithubPullRequestFacets,GithubRepositoryFacet,- GithubAuthorFacet,+ GithubUserFacet,+ GithubLabelFacet,Favorite,FavoritesList,CreatedUserApiKey,diff --git a/static_assets/schema.graphql b/static_assets/schema.graphqlindex e014723147..ef967d0fce 100644--- a/static_assets/schema.graphql+++ b/static_assets/schema.graphql@@ -3292,6 +3292,44 @@ input GraphqlGithubPullRequestLiteral @oneOf {The draft option."""draft: Boolean+ """+ The numeric GitHub user id of an assignee.+ """+ assignee: String+ """+ The label name option.+ """+ label: String+ """+ The review status option.+ """+ reviewStatus: GraphqlGithubPullRequestReviewStatus+ """+ The numeric GitHub user id of someone who submitted a review.+ """+ reviewedBy: String+}++"""+GraphQL input representing a GitHub pull request review status.+"""+enum GraphqlGithubPullRequestReviewStatus {+ """+ The no reviews option.+ """+ NONE+ """+ The review required option.+ """+ REQUIRED+ """+ The approved option.+ """+ APPROVED+ """+ The changes requested option.+ """+ CHANGES_REQUESTED}"""