Skip to content

armgit / macro

Public Imported from GitHub
0

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

feat(github_pull_requests): add a route that reads one pull request (#7112)

dev-rbc3140702b96c
diff --git a/.sqlx/query-21f4995934d45c58fd61fca238288734e89c3da223e731e8164f59596066d4f8.json b/.sqlx/query-21f4995934d45c58fd61fca238288734e89c3da223e731e8164f59596066d4f8.json
new file mode 100644
index 0000000000..74de792c8d
--- /dev/null
+++ b/.sqlx/query-21f4995934d45c58fd61fca238288734e89c3da223e731e8164f59596066d4f8.json
@@ -0,0 +1,118 @@
+{
+ "db_name": "PostgreSQL",
+ "query": "\n SELECT\n github_key,\n repository_id,\n number,\n owner,\n repo,\n title,\n status,\n draft,\n author_github_user_id,\n author_login,\n requested_reviewer_github_user_ids,\n participant_github_user_ids,\n github_updated_at,\n assignees,\n labels,\n reviews,\n review_decision\n FROM github_pull_request\n WHERE github_key = $1\n ",
+ "describe": {
+ "columns": [
+ {
+ "ordinal": 0,
+ "name": "github_key",
+ "type_info": "Text"
+ },
+ {
+ "ordinal": 1,
+ "name": "repository_id",
+ "type_info": "Int8"
+ },
+ {
+ "ordinal": 2,
+ "name": "number",
+ "type_info": "Int8"
+ },
+ {
+ "ordinal": 3,
+ "name": "owner",
+ "type_info": "Text"
+ },
+ {
+ "ordinal": 4,
+ "name": "repo",
+ "type_info": "Text"
+ },
+ {
+ "ordinal": 5,
+ "name": "title",
+ "type_info": "Text"
+ },
+ {
+ "ordinal": 6,
+ "name": "status",
+ "type_info": "Text"
+ },
+ {
+ "ordinal": 7,
+ "name": "draft",
+ "type_info": "Bool"
+ },
+ {
+ "ordinal": 8,
+ "name": "author_github_user_id",
+ "type_info": "Text"
+ },
+ {
+ "ordinal": 9,
+ "name": "author_login",
+ "type_info": "Text"
+ },
+ {
+ "ordinal": 10,
+ "name": "requested_reviewer_github_user_ids",
+ "type_info": "TextArray"
+ },
+ {
+ "ordinal": 11,
+ "name": "participant_github_user_ids",
+ "type_info": "TextArray"
+ },
+ {
+ "ordinal": 12,
+ "name": "github_updated_at",
+ "type_info": "Timestamptz"
+ },
+ {
+ "ordinal": 13,
+ "name": "assignees",
+ "type_info": "Jsonb"
+ },
+ {
+ "ordinal": 14,
+ "name": "labels",
+ "type_info": "Jsonb"
+ },
+ {
+ "ordinal": 15,
+ "name": "reviews",
+ "type_info": "Jsonb"
+ },
+ {
+ "ordinal": 16,
+ "name": "review_decision",
+ "type_info": "Text"
+ }
+ ],
+ "parameters": {
+ "Left": [
+ "Text"
+ ]
+ },
+ "nullable": [
+ false,
+ true,
+ false,
+ false,
+ false,
+ true,
+ true,
+ false,
+ true,
+ true,
+ false,
+ false,
+ true,
+ false,
+ false,
+ false,
+ true
+ ]
+ },
+ "hash": "21f4995934d45c58fd61fca238288734e89c3da223e731e8164f59596066d4f8"
+}
diff --git a/apps/web/src/lib/service-clients/service-storage/generated/schemas/githubPullRequestComment.ts b/apps/web/src/lib/service-clients/service-storage/generated/schemas/githubPullRequestComment.ts
index 2a15de66c8..49cac00b01 100644
--- a/apps/web/src/lib/service-clients/service-storage/generated/schemas/githubPullRequestComment.ts
+++ b/apps/web/src/lib/service-clients/service-storage/generated/schemas/githubPullRequestComment.ts
@@ -5,6 +5,7 @@
* OpenAPI spec version: 0.1.0
*/
import type { GithubPullRequestCommentAuthorAssociation } from './githubPullRequestCommentAuthorAssociation';
+import type { GithubPullRequestCommentAuthorId } from './githubPullRequestCommentAuthorId';
import type { GithubPullRequestCommentAuthorLogin } from './githubPullRequestCommentAuthorLogin';
import type { GithubPullRequestCommentCreatedAt } from './githubPullRequestCommentCreatedAt';
import type { GithubPullRequestCommentInReplyToId } from './githubPullRequestCommentInReplyToId';
@@ -21,6 +22,11 @@ import type { GithubPullRequestCommentUrl } from './githubPullRequestCommentUrl'
export interface GithubPullRequestComment {
/** GitHub's relationship label for the author, when available. */
authorAssociation?: GithubPullRequestCommentAuthorAssociation;
+ /**
+ * The stable numeric GitHub user id for the comment author, when available.
+ * @minimum 0
+ */
+ authorId?: GithubPullRequestCommentAuthorId;
/** The GitHub login for the comment author, when available. */
authorLogin?: GithubPullRequestCommentAuthorLogin;
/** The comment or review body text. */
diff --git a/apps/web/src/lib/service-clients/service-storage/generated/schemas/githubPullRequestCommentAuthorId.ts b/apps/web/src/lib/service-clients/service-storage/generated/schemas/githubPullRequestCommentAuthorId.ts
new file mode 100644
index 0000000000..1333af5cf9
--- /dev/null
+++ b/apps/web/src/lib/service-clients/service-storage/generated/schemas/githubPullRequestCommentAuthorId.ts
@@ -0,0 +1,12 @@
+/**
+ * Generated by orval v7.21.0 🍺
+ * Do not edit manually.
+ * document_storage_service
+ * OpenAPI spec version: 0.1.0
+ */
+
+/**
+ * The stable numeric GitHub user id for the comment author, when available.
+ * @minimum 0
+ */
+export type GithubPullRequestCommentAuthorId = number | null;
diff --git a/apps/web/src/lib/service-clients/service-storage/generated/schemas/githubPullRequestLabel.ts b/apps/web/src/lib/service-clients/service-storage/generated/schemas/githubPullRequestLabel.ts
new file mode 100644
index 0000000000..ec6c829553
--- /dev/null
+++ b/apps/web/src/lib/service-clients/service-storage/generated/schemas/githubPullRequestLabel.ts
@@ -0,0 +1,17 @@
+/**
+ * Generated by orval v7.21.0 🍺
+ * Do not edit manually.
+ * document_storage_service
+ * OpenAPI spec version: 0.1.0
+ */
+import type { GithubPullRequestLabelColor } from './githubPullRequestLabelColor';
+
+/**
+ * A label on a GitHub pull request.
+ */
+export interface GithubPullRequestLabel {
+ /** The label color as six hex digits without a leading `#`, when known. */
+ color?: GithubPullRequestLabelColor;
+ /** The label name, unique within its repository regardless of case. */
+ name: string;
+}
diff --git a/apps/web/src/lib/service-clients/service-storage/generated/schemas/githubPullRequestLabelColor.ts b/apps/web/src/lib/service-clients/service-storage/generated/schemas/githubPullRequestLabelColor.ts
new file mode 100644
index 0000000000..4014962990
--- /dev/null
+++ b/apps/web/src/lib/service-clients/service-storage/generated/schemas/githubPullRequestLabelColor.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 color as six hex digits without a leading `#`, when known.
+ */
+export type GithubPullRequestLabelColor = string | null;
diff --git a/apps/web/src/lib/service-clients/service-storage/generated/schemas/githubPullRequestReview.ts b/apps/web/src/lib/service-clients/service-storage/generated/schemas/githubPullRequestReview.ts
new file mode 100644
index 0000000000..6ef07c177e
--- /dev/null
+++ b/apps/web/src/lib/service-clients/service-storage/generated/schemas/githubPullRequestReview.ts
@@ -0,0 +1,23 @@
+/**
+ * Generated by orval v7.21.0 🍺
+ * Do not edit manually.
+ * document_storage_service
+ * OpenAPI spec version: 0.1.0
+ */
+import type { GithubPullRequestReviewReviewerLogin } from './githubPullRequestReviewReviewerLogin';
+import type { GithubPullRequestReviewState } from './githubPullRequestReviewState';
+import type { GithubPullRequestReviewSubmittedAt } from './githubPullRequestReviewSubmittedAt';
+
+/**
+ * A reviewer's latest submitted review on a pull request.
+ */
+export interface GithubPullRequestReview {
+ /** The stable numeric GitHub user id of the reviewer, as a string. */
+ reviewerGithubUserId: string;
+ /** The reviewer's GitHub login, when known. */
+ reviewerLogin?: GithubPullRequestReviewReviewerLogin;
+ /** What the review said. */
+ state: GithubPullRequestReviewState;
+ /** When the review was submitted, when known. */
+ submittedAt?: GithubPullRequestReviewSubmittedAt;
+}
diff --git a/apps/web/src/lib/service-clients/service-storage/generated/schemas/githubPullRequestReviewDecision.ts b/apps/web/src/lib/service-clients/service-storage/generated/schemas/githubPullRequestReviewDecision.ts
new file mode 100644
index 0000000000..f4098472bb
--- /dev/null
+++ b/apps/web/src/lib/service-clients/service-storage/generated/schemas/githubPullRequestReviewDecision.ts
@@ -0,0 +1,19 @@
+/**
+ * Generated by orval v7.21.0 🍺
+ * Do not edit manually.
+ * document_storage_service
+ * OpenAPI spec version: 0.1.0
+ */
+
+/**
+ * Where a pull request's review stands, from its reviewers' latest reviews.
+ */
+export type GithubPullRequestReviewDecision =
+ (typeof GithubPullRequestReviewDecision)[keyof typeof GithubPullRequestReviewDecision];
+
+// eslint-disable-next-line @typescript-eslint/no-redeclare
+export const GithubPullRequestReviewDecision = {
+ approved: 'approved',
+ changes_requested: 'changes_requested',
+ review_required: 'review_required',
+} as const;
diff --git a/apps/web/src/lib/service-clients/service-storage/generated/schemas/githubPullRequestReviewReviewerLogin.ts b/apps/web/src/lib/service-clients/service-storage/generated/schemas/githubPullRequestReviewReviewerLogin.ts
new file mode 100644
index 0000000000..0fd8fc7ba3
--- /dev/null
+++ b/apps/web/src/lib/service-clients/service-storage/generated/schemas/githubPullRequestReviewReviewerLogin.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 reviewer's GitHub login, when known.
+ */
+export type GithubPullRequestReviewReviewerLogin = string | null;
diff --git a/apps/web/src/lib/service-clients/service-storage/generated/schemas/githubPullRequestReviewState.ts b/apps/web/src/lib/service-clients/service-storage/generated/schemas/githubPullRequestReviewState.ts
new file mode 100644
index 0000000000..7997b1b74a
--- /dev/null
+++ b/apps/web/src/lib/service-clients/service-storage/generated/schemas/githubPullRequestReviewState.ts
@@ -0,0 +1,20 @@
+/**
+ * Generated by orval v7.21.0 🍺
+ * Do not edit manually.
+ * document_storage_service
+ * OpenAPI spec version: 0.1.0
+ */
+
+/**
+ * What a reviewer's latest review on a pull request said.
+ */
+export type GithubPullRequestReviewState =
+ (typeof GithubPullRequestReviewState)[keyof typeof GithubPullRequestReviewState];
+
+// eslint-disable-next-line @typescript-eslint/no-redeclare
+export const GithubPullRequestReviewState = {
+ approved: 'approved',
+ changes_requested: 'changes_requested',
+ commented: 'commented',
+ dismissed: 'dismissed',
+} as const;
diff --git a/apps/web/src/lib/service-clients/service-storage/generated/schemas/githubPullRequestReviewSubmittedAt.ts b/apps/web/src/lib/service-clients/service-storage/generated/schemas/githubPullRequestReviewSubmittedAt.ts
new file mode 100644
index 0000000000..c8f3505230
--- /dev/null
+++ b/apps/web/src/lib/service-clients/service-storage/generated/schemas/githubPullRequestReviewSubmittedAt.ts
@@ -0,0 +1,11 @@
+/**
+ * Generated by orval v7.21.0 🍺
+ * Do not edit manually.
+ * document_storage_service
+ * OpenAPI spec version: 0.1.0
+ */
+
+/**
+ * When the review was submitted, when known.
+ */
+export type GithubPullRequestReviewSubmittedAt = string | null;
diff --git a/apps/web/src/lib/service-clients/service-storage/generated/schemas/githubPullRequestUser.ts b/apps/web/src/lib/service-clients/service-storage/generated/schemas/githubPullRequestUser.ts
new file mode 100644
index 0000000000..c0b2a01f5f
--- /dev/null
+++ b/apps/web/src/lib/service-clients/service-storage/generated/schemas/githubPullRequestUser.ts
@@ -0,0 +1,17 @@
+/**
+ * Generated by orval v7.21.0 🍺
+ * Do not edit manually.
+ * document_storage_service
+ * OpenAPI spec version: 0.1.0
+ */
+import type { GithubPullRequestUserLogin } from './githubPullRequestUserLogin';
+
+/**
+ * A GitHub user named on a pull request, such as an assignee.
+ */
+export interface GithubPullRequestUser {
+ /** The stable numeric GitHub user id, as a string. */
+ githubUserId: string;
+ /** The user's GitHub login, when known. */
+ login?: GithubPullRequestUserLogin;
+}
diff --git a/apps/web/src/lib/service-clients/service-storage/generated/schemas/githubPullRequestUserLogin.ts b/apps/web/src/lib/service-clients/service-storage/generated/schemas/githubPullRequestUserLogin.ts
new file mode 100644
index 0000000000..3e6c6caf9b
--- /dev/null
+++ b/apps/web/src/lib/service-clients/service-storage/generated/schemas/githubPullRequestUserLogin.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 user's GitHub login, when known.
+ */
+export type GithubPullRequestUserLogin = 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.ts
index b61f9a1f55..4ca8f50580 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
@@ -923,6 +923,7 @@ export * from './githubPullRequestCheckRunUrl';
export * from './githubPullRequestChecks';
export * from './githubPullRequestComment';
export * from './githubPullRequestCommentAuthorAssociation';
+export * from './githubPullRequestCommentAuthorId';
export * from './githubPullRequestCommentAuthorLogin';
export * from './githubPullRequestCommentCreatedAt';
export * from './githubPullRequestCommentInReplyToId';
@@ -936,9 +937,18 @@ export * from './githubPullRequestCommentUrl';
export * from './githubPullRequestDeletions';
export * from './githubPullRequestFacets';
export * from './githubPullRequestForeignEntityId';
+export * from './githubPullRequestLabel';
+export * from './githubPullRequestLabelColor';
export * from './githubPullRequestName';
+export * from './githubPullRequestReview';
+export * from './githubPullRequestReviewDecision';
+export * from './githubPullRequestReviewReviewerLogin';
+export * from './githubPullRequestReviewState';
+export * from './githubPullRequestReviewSubmittedAt';
export * from './githubPullRequestStatus';
export * from './githubPullRequestsResponse';
+export * from './githubPullRequestUser';
+export * from './githubPullRequestUserLogin';
export * from './githubRepositoryFacet';
export * from './githubUserFacet';
export * from './githubUserFacetLogin';
@@ -1677,6 +1687,16 @@ export * from './starterDatabaseDatabaseId';
export * from './starterDatabaseTableId';
export * from './starterDatabaseViewId';
export * from './starterDocumentsResponse';
+export * from './storedGithubPullRequest';
+export * from './storedGithubPullRequestAdditions';
+export * from './storedGithubPullRequestAuthorGithubUserId';
+export * from './storedGithubPullRequestAuthorLogin';
+export * from './storedGithubPullRequestDeletions';
+export * from './storedGithubPullRequestDescription';
+export * from './storedGithubPullRequestGithubUpdatedAt';
+export * from './storedGithubPullRequestReviewDecision';
+export * from './storedGithubPullRequestStatus';
+export * from './storedGithubPullRequestTitle';
export * from './streamEventsParams';
export * from './string';
export * from './successResponse';
diff --git a/apps/web/src/lib/service-clients/service-storage/generated/schemas/storedGithubPullRequest.ts b/apps/web/src/lib/service-clients/service-storage/generated/schemas/storedGithubPullRequest.ts
new file mode 100644
index 0000000000..825ae7b8f7
--- /dev/null
+++ b/apps/web/src/lib/service-clients/service-storage/generated/schemas/storedGithubPullRequest.ts
@@ -0,0 +1,78 @@
+/**
+ * Generated by orval v7.21.0 🍺
+ * Do not edit manually.
+ * document_storage_service
+ * OpenAPI spec version: 0.1.0
+ */
+
+import type { GithubPullRequestCheckRun } from './githubPullRequestCheckRun';
+import type { GithubPullRequestComment } from './githubPullRequestComment';
+import type { GithubPullRequestLabel } from './githubPullRequestLabel';
+import type { GithubPullRequestReview } from './githubPullRequestReview';
+import type { GithubPullRequestUser } from './githubPullRequestUser';
+import type { StoredGithubPullRequestAdditions } from './storedGithubPullRequestAdditions';
+import type { StoredGithubPullRequestAuthorGithubUserId } from './storedGithubPullRequestAuthorGithubUserId';
+import type { StoredGithubPullRequestAuthorLogin } from './storedGithubPullRequestAuthorLogin';
+import type { StoredGithubPullRequestDeletions } from './storedGithubPullRequestDeletions';
+import type { StoredGithubPullRequestDescription } from './storedGithubPullRequestDescription';
+import type { StoredGithubPullRequestGithubUpdatedAt } from './storedGithubPullRequestGithubUpdatedAt';
+import type { StoredGithubPullRequestReviewDecision } from './storedGithubPullRequestReviewDecision';
+import type { StoredGithubPullRequestStatus } from './storedGithubPullRequestStatus';
+import type { StoredGithubPullRequestTitle } from './storedGithubPullRequestTitle';
+
+/**
+ * A GitHub pull request as Macro stores it, read through one of the caller's records.
+ */
+export interface StoredGithubPullRequest {
+ /**
+ * Lines added across the pull request's changes.
+ * @minimum 0
+ */
+ additions?: StoredGithubPullRequestAdditions;
+ /** The users assigned to the pull request. */
+ assignees: GithubPullRequestUser[];
+ /** Stable numeric GitHub user id of the author. */
+ authorGithubUserId?: StoredGithubPullRequestAuthorGithubUserId;
+ /** The author's GitHub login when the pull request was last synced. */
+ authorLogin?: StoredGithubPullRequestAuthorLogin;
+ /** The latest check runs on the pull request's head commit. */
+ checks: GithubPullRequestCheckRun[];
+ /** Comments from the pull request's conversation, reviews, and review threads.
+Comment `authorId` intentionally retains the shared numeric GitHub comment contract;
+convert it to a decimal string before comparing it with `authorGithubUserId`. */
+ comments: GithubPullRequestComment[];
+ /**
+ * Lines deleted across the pull request's changes.
+ * @minimum 0
+ */
+ deletions?: StoredGithubPullRequestDeletions;
+ /** The pull request body, as GitHub markdown. */
+ description?: StoredGithubPullRequestDescription;
+ /** Whether the pull request is a draft. */
+ draft: boolean;
+ /** The pull request's `owner/repo/pull/number` key. */
+ githubKey: string;
+ /** When GitHub last updated the pull request. */
+ githubUpdatedAt?: StoredGithubPullRequestGithubUpdatedAt;
+ /** The caller's record for the pull request. */
+ id: string;
+ /** The pull request's labels. */
+ labels: GithubPullRequestLabel[];
+ /** The pull request number within its repository. */
+ number: number;
+ /** The repository owner the pull request was last synced under. */
+ owner: string;
+ /** The repository name the pull request was last synced under. */
+ repo: string;
+ /** Stable numeric GitHub user ids of the users asked to review. */
+ requestedReviewerGithubUserIds: string[];
+ reviewDecision?: StoredGithubPullRequestReviewDecision;
+ /** Each reviewer's latest submitted review. */
+ reviews: GithubPullRequestReview[];
+ /** The normalized pull request status. */
+ status?: StoredGithubPullRequestStatus;
+ /** The pull request title. */
+ title?: StoredGithubPullRequestTitle;
+ /** The pull request's page on GitHub. */
+ url: string;
+}
diff --git a/apps/web/src/lib/service-clients/service-storage/generated/schemas/storedGithubPullRequestAdditions.ts b/apps/web/src/lib/service-clients/service-storage/generated/schemas/storedGithubPullRequestAdditions.ts
new file mode 100644
index 0000000000..b62e402e31
--- /dev/null
+++ b/apps/web/src/lib/service-clients/service-storage/generated/schemas/storedGithubPullRequestAdditions.ts
@@ -0,0 +1,12 @@
+/**
+ * Generated by orval v7.21.0 🍺
+ * Do not edit manually.
+ * document_storage_service
+ * OpenAPI spec version: 0.1.0
+ */
+
+/**
+ * Lines added across the pull request's changes.
+ * @minimum 0
+ */
+export type StoredGithubPullRequestAdditions = number | null;
diff --git a/apps/web/src/lib/service-clients/service-storage/generated/schemas/storedGithubPullRequestAuthorGithubUserId.ts b/apps/web/src/lib/service-clients/service-storage/generated/schemas/storedGithubPullRequestAuthorGithubUserId.ts
new file mode 100644
index 0000000000..8d16baa0b6
--- /dev/null
+++ b/apps/web/src/lib/service-clients/service-storage/generated/schemas/storedGithubPullRequestAuthorGithubUserId.ts
@@ -0,0 +1,11 @@
+/**
+ * Generated by orval v7.21.0 🍺
+ * Do not edit manually.
+ * document_storage_service
+ * OpenAPI spec version: 0.1.0
+ */
+
+/**
+ * Stable numeric GitHub user id of the author.
+ */
+export type StoredGithubPullRequestAuthorGithubUserId = string | null;
diff --git a/apps/web/src/lib/service-clients/service-storage/generated/schemas/storedGithubPullRequestAuthorLogin.ts b/apps/web/src/lib/service-clients/service-storage/generated/schemas/storedGithubPullRequestAuthorLogin.ts
new file mode 100644
index 0000000000..250ba8f328
--- /dev/null
+++ b/apps/web/src/lib/service-clients/service-storage/generated/schemas/storedGithubPullRequestAuthorLogin.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 author's GitHub login when the pull request was last synced.
+ */
+export type StoredGithubPullRequestAuthorLogin = string | null;
diff --git a/apps/web/src/lib/service-clients/service-storage/generated/schemas/storedGithubPullRequestDeletions.ts b/apps/web/src/lib/service-clients/service-storage/generated/schemas/storedGithubPullRequestDeletions.ts
new file mode 100644
index 0000000000..546623e6b8
--- /dev/null
+++ b/apps/web/src/lib/service-clients/service-storage/generated/schemas/storedGithubPullRequestDeletions.ts
@@ -0,0 +1,12 @@
+/**
+ * Generated by orval v7.21.0 🍺
+ * Do not edit manually.
+ * document_storage_service
+ * OpenAPI spec version: 0.1.0
+ */
+
+/**
+ * Lines deleted across the pull request's changes.
+ * @minimum 0
+ */
+export type StoredGithubPullRequestDeletions = number | null;
diff --git a/apps/web/src/lib/service-clients/service-storage/generated/schemas/storedGithubPullRequestDescription.ts b/apps/web/src/lib/service-clients/service-storage/generated/schemas/storedGithubPullRequestDescription.ts
new file mode 100644
index 0000000000..4abea018d2
--- /dev/null
+++ b/apps/web/src/lib/service-clients/service-storage/generated/schemas/storedGithubPullRequestDescription.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 pull request body, as GitHub markdown.
+ */
+export type StoredGithubPullRequestDescription = string | null;
diff --git a/apps/web/src/lib/service-clients/service-storage/generated/schemas/storedGithubPullRequestGithubUpdatedAt.ts b/apps/web/src/lib/service-clients/service-storage/generated/schemas/storedGithubPullRequestGithubUpdatedAt.ts
new file mode 100644
index 0000000000..3f96b4c124
--- /dev/null
+++ b/apps/web/src/lib/service-clients/service-storage/generated/schemas/storedGithubPullRequestGithubUpdatedAt.ts
@@ -0,0 +1,11 @@
+/**
+ * Generated by orval v7.21.0 🍺
+ * Do not edit manually.
+ * document_storage_service
+ * OpenAPI spec version: 0.1.0
+ */
+
+/**
+ * When GitHub last updated the pull request.
+ */
+export type StoredGithubPullRequestGithubUpdatedAt = string | null;
diff --git a/apps/web/src/lib/service-clients/service-storage/generated/schemas/storedGithubPullRequestReviewDecision.ts b/apps/web/src/lib/service-clients/service-storage/generated/schemas/storedGithubPullRequestReviewDecision.ts
new file mode 100644
index 0000000000..243f018a79
--- /dev/null
+++ b/apps/web/src/lib/service-clients/service-storage/generated/schemas/storedGithubPullRequestReviewDecision.ts
@@ -0,0 +1,10 @@
+/**
+ * Generated by orval v7.21.0 🍺
+ * Do not edit manually.
+ * document_storage_service
+ * OpenAPI spec version: 0.1.0
+ */
+import type { GithubPullRequestReviewDecision } from './githubPullRequestReviewDecision';
+
+export type StoredGithubPullRequestReviewDecision =
+ null | GithubPullRequestReviewDecision;
diff --git a/apps/web/src/lib/service-clients/service-storage/generated/schemas/storedGithubPullRequestStatus.ts b/apps/web/src/lib/service-clients/service-storage/generated/schemas/storedGithubPullRequestStatus.ts
new file mode 100644
index 0000000000..039c924b75
--- /dev/null
+++ b/apps/web/src/lib/service-clients/service-storage/generated/schemas/storedGithubPullRequestStatus.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 normalized pull request status.
+ */
+export type StoredGithubPullRequestStatus = null | 'open' | 'closed' | 'merged';
diff --git a/apps/web/src/lib/service-clients/service-storage/generated/schemas/storedGithubPullRequestTitle.ts b/apps/web/src/lib/service-clients/service-storage/generated/schemas/storedGithubPullRequestTitle.ts
new file mode 100644
index 0000000000..b05b90edc6
--- /dev/null
+++ b/apps/web/src/lib/service-clients/service-storage/generated/schemas/storedGithubPullRequestTitle.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 pull request title.
+ */
+export type StoredGithubPullRequestTitle = string | null;
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.ts
index d821cede76..a7013fc71c 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
@@ -12065,6 +12065,8 @@ export const getDocumentGithubPullRequestsResponsePullRequestsItemAdditionsMin =
export const getDocumentGithubPullRequestsResponsePullRequestsItemChecksItemIdMin = 0;
+export const getDocumentGithubPullRequestsResponsePullRequestsItemCommentsItemAuthorIdMin = 0;
+
export const getDocumentGithubPullRequestsResponsePullRequestsItemCommentsItemIdMin = 0;
export const getDocumentGithubPullRequestsResponsePullRequestsItemCommentsItemInReplyToIdMin = 0;
@@ -12151,6 +12153,15 @@ export const getDocumentGithubPullRequestsResponse = zod
.describe(
"GitHub's relationship label for the author, when available."
),
+ authorId: zod
+ .number()
+ .min(
+ getDocumentGithubPullRequestsResponsePullRequestsItemCommentsItemAuthorIdMin
+ )
+ .nullish()
+ .describe(
+ 'The stable numeric GitHub user id for the comment author, when available.'
+ ),
authorLogin: zod
.string()
.nullish()
@@ -13447,6 +13458,297 @@ export const getGithubPullRequestFacetsResponse = zod
'Repositories, authors, assignees, and labels among the GitHub pull requests a caller can see,\neach with the number of pull requests it covers.'
);
+/**
+ * @summary Get the pull request behind a foreign entity record the caller can view.
+ */
+export const getGithubPullRequestParams = zod.object({
+ id: zod
+ .uuid()
+ .describe("The caller's foreign entity record for the pull request"),
+});
+
+export const getGithubPullRequestResponseAdditionsMin = 0;
+
+export const getGithubPullRequestResponseChecksItemIdMin = 0;
+
+export const getGithubPullRequestResponseCommentsItemAuthorIdMin = 0;
+
+export const getGithubPullRequestResponseCommentsItemIdMin = 0;
+
+export const getGithubPullRequestResponseCommentsItemInReplyToIdMin = 0;
+
+export const getGithubPullRequestResponseCommentsItemLineMin = 0;
+
+export const getGithubPullRequestResponseCommentsItemOriginalLineMin = 0;
+
+export const getGithubPullRequestResponseCommentsItemPullRequestReviewIdMin = 0;
+
+export const getGithubPullRequestResponseDeletionsMin = 0;
+
+export const getGithubPullRequestResponse = zod
+ .object({
+ additions: zod
+ .number()
+ .min(getGithubPullRequestResponseAdditionsMin)
+ .nullish()
+ .describe("Lines added across the pull request's changes."),
+ assignees: zod
+ .array(
+ zod
+ .object({
+ githubUserId: zod
+ .string()
+ .describe('The stable numeric GitHub user id, as a string.'),
+ login: zod
+ .string()
+ .nullish()
+ .describe("The user's GitHub login, when known."),
+ })
+ .describe(
+ 'A GitHub user named on a pull request, such as an assignee.'
+ )
+ )
+ .describe('The users assigned to the pull request.'),
+ authorGithubUserId: zod
+ .string()
+ .nullish()
+ .describe('Stable numeric GitHub user id of the author.'),
+ authorLogin: zod
+ .string()
+ .nullish()
+ .describe(
+ "The author's GitHub login when the pull request was last synced."
+ ),
+ checks: zod
+ .array(
+ zod
+ .object({
+ completedAt: zod.iso
+ .datetime({})
+ .nullish()
+ .describe('When the check run completed, when available.'),
+ conclusion: zod
+ .string()
+ .nullish()
+ .describe(
+ 'The raw GitHub check run conclusion, when the run has completed.'
+ ),
+ id: zod
+ .number()
+ .min(getGithubPullRequestResponseChecksItemIdMin)
+ .describe('The unique GitHub identifier for the check run.'),
+ name: zod.string().describe('The check run name.'),
+ startedAt: zod.iso
+ .datetime({})
+ .nullish()
+ .describe('When the check run started, when available.'),
+ status: zod.string().describe('The raw GitHub check run status.'),
+ url: zod
+ .string()
+ .nullish()
+ .describe(
+ 'The public GitHub URL for the check run, when available.'
+ ),
+ })
+ .describe('A check run associated with a GitHub pull request.')
+ )
+ .describe("The latest check runs on the pull request's head commit."),
+ comments: zod
+ .array(
+ zod
+ .object({
+ authorAssociation: zod
+ .string()
+ .nullish()
+ .describe(
+ "GitHub's relationship label for the author, when available."
+ ),
+ authorId: zod
+ .number()
+ .min(getGithubPullRequestResponseCommentsItemAuthorIdMin)
+ .nullish()
+ .describe(
+ 'The stable numeric GitHub user id for the comment author, when available.'
+ ),
+ authorLogin: zod
+ .string()
+ .nullish()
+ .describe(
+ 'The GitHub login for the comment author, when available.'
+ ),
+ body: zod.string().describe('The comment or review body text.'),
+ createdAt: zod.iso
+ .datetime({})
+ .nullish()
+ .describe(
+ 'When the comment was created or the review was submitted.'
+ ),
+ id: zod
+ .number()
+ .min(getGithubPullRequestResponseCommentsItemIdMin)
+ .describe(
+ 'The unique GitHub identifier for the comment or review.'
+ ),
+ inReplyToId: zod
+ .number()
+ .min(getGithubPullRequestResponseCommentsItemInReplyToIdMin)
+ .nullish()
+ .describe(
+ 'The id of the comment this one replies to, when it is part of a review\nthread. Only ever present on `review_comment` sources.'
+ ),
+ line: zod
+ .number()
+ .min(getGithubPullRequestResponseCommentsItemLineMin)
+ .nullish()
+ .describe(
+ "The line in the current diff the comment is anchored to. Cleared by\nGitHub when later commits outdate the comment's diff."
+ ),
+ originalLine: zod
+ .number()
+ .min(getGithubPullRequestResponseCommentsItemOriginalLineMin)
+ .nullish()
+ .describe(
+ 'The line the comment was originally anchored to, kept even when the\ndiff has since changed.'
+ ),
+ path: zod
+ .string()
+ .nullish()
+ .describe(
+ 'The repository-relative file path the review comment is anchored to.\nOnly ever present on `review_comment` sources.'
+ ),
+ pullRequestReviewId: zod
+ .number()
+ .min(
+ getGithubPullRequestResponseCommentsItemPullRequestReviewIdMin
+ )
+ .nullish()
+ .describe(
+ 'The id of the pull request review this comment was submitted with.\nOnly ever present on `review_comment` sources.'
+ ),
+ source: zod
+ .string()
+ .describe(
+ 'The GitHub source for the comment, such as `issue_comment` or `review_comment`.'
+ ),
+ updatedAt: zod.iso
+ .datetime({})
+ .nullish()
+ .describe('When the comment or review was last updated.'),
+ url: zod
+ .string()
+ .nullish()
+ .describe(
+ 'The public GitHub URL for the comment or review, when available.'
+ ),
+ })
+ .describe('A comment associated with a GitHub pull request.')
+ )
+ .describe(
+ "Comments from the pull request's conversation, reviews, and review threads.\nComment `authorId` intentionally retains the shared numeric GitHub comment contract;\nconvert it to a decimal string before comparing it with `authorGithubUserId`."
+ ),
+ deletions: zod
+ .number()
+ .min(getGithubPullRequestResponseDeletionsMin)
+ .nullish()
+ .describe("Lines deleted across the pull request's changes."),
+ description: zod
+ .string()
+ .nullish()
+ .describe('The pull request body, as GitHub markdown.'),
+ draft: zod.boolean().describe('Whether the pull request is a draft.'),
+ githubKey: zod
+ .string()
+ .describe("The pull request's `owner\/repo\/pull\/number` key."),
+ githubUpdatedAt: zod.iso
+ .datetime({})
+ .nullish()
+ .describe('When GitHub last updated the pull request.'),
+ id: zod.uuid().describe("The caller's record for the pull request."),
+ labels: zod
+ .array(
+ zod
+ .object({
+ color: zod
+ .string()
+ .nullish()
+ .describe(
+ 'The label color as six hex digits without a leading `#`, when known.'
+ ),
+ name: zod
+ .string()
+ .describe(
+ 'The label name, unique within its repository regardless of case.'
+ ),
+ })
+ .describe('A label on a GitHub pull request.')
+ )
+ .describe("The pull request's labels."),
+ number: zod
+ .number()
+ .describe('The pull request number within its repository.'),
+ owner: zod
+ .string()
+ .describe('The repository owner the pull request was last synced under.'),
+ repo: zod
+ .string()
+ .describe('The repository name the pull request was last synced under.'),
+ requestedReviewerGithubUserIds: zod
+ .array(zod.string())
+ .describe('Stable numeric GitHub user ids of the users asked to review.'),
+ reviewDecision: zod
+ .union([
+ zod.null(),
+ zod
+ .enum(['approved', 'changes_requested', 'review_required'])
+ .describe(
+ "Where a pull request's review stands, from its reviewers' latest reviews."
+ ),
+ ])
+ .optional(),
+ reviews: zod
+ .array(
+ zod
+ .object({
+ reviewerGithubUserId: zod
+ .string()
+ .describe(
+ 'The stable numeric GitHub user id of the reviewer, as a string.'
+ ),
+ reviewerLogin: zod
+ .string()
+ .nullish()
+ .describe("The reviewer's GitHub login, when known."),
+ state: zod
+ .enum(['approved', 'changes_requested', 'commented', 'dismissed'])
+ .describe(
+ "What a reviewer's latest review on a pull request said."
+ ),
+ submittedAt: zod.iso
+ .datetime({})
+ .nullish()
+ .describe('When the review was submitted, when known.'),
+ })
+ .describe("A reviewer's latest submitted review on a pull request.")
+ )
+ .describe("Each reviewer's latest submitted review."),
+ status: zod
+ .union([
+ zod.null(),
+ zod
+ .enum(['open', 'closed', 'merged'])
+ .describe(
+ 'The normalized lifecycle status for a GitHub pull request.'
+ ),
+ ])
+ .optional()
+ .describe('The normalized pull request status.'),
+ title: zod.string().nullish().describe('The pull request title.'),
+ url: zod.string().describe("The pull request's page on GitHub."),
+ })
+ .describe(
+ "A GitHub pull request as Macro stores it, read through one of the caller's records."
+ );
+
/**
* Unauthenticated by design: the daemon has no credential yet - obtaining one
is the point. The pairing releases nothing until a signed-in user approves
diff --git a/apps/web/src/lib/service-clients/service-storage/openapi.json b/apps/web/src/lib/service-clients/service-storage/openapi.json
index be09e47ea2..8d9118827a 100644
--- a/apps/web/src/lib/service-clients/service-storage/openapi.json
+++ b/apps/web/src/lib/service-clients/service-storage/openapi.json
@@ -10707,6 +10707,77 @@
}
}
},
+ "/github_pull_requests/{id}": {
+ "get": {
+ "tags": ["github_pull_requests"],
+ "summary": "Get the pull request behind a foreign entity record the caller can view.",
+ "operationId": "get_github_pull_request",
+ "parameters": [
+ {
+ "name": "id",
+ "in": "path",
+ "description": "The caller's foreign entity record for the pull request",
+ "required": true,
+ "schema": {
+ "type": "string",
+ "format": "uuid"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/StoredGithubPullRequest"
+ }
+ }
+ }
+ },
+ "400": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
+ }
+ }
+ },
+ "401": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
+ }
+ }
+ },
+ "404": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
+ }
+ }
+ },
+ "500": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
+ }
+ }
+ }
+ }
+ }
+ },
"/harness-pairings": {
"post": {
"tags": ["harnesses"],
@@ -26650,6 +26721,12 @@
"type": ["string", "null"],
"description": "GitHub's relationship label for the author, when available."
},
+ "authorId": {
+ "type": ["integer", "null"],
+ "format": "int64",
+ "description": "The stable numeric GitHub user id for the comment author, when available.",
+ "minimum": 0
+ },
"authorLogin": {
"type": ["string", "null"],
"description": "The GitHub login for the comment author, when available."
@@ -26747,6 +26824,70 @@
}
}
},
+ "GithubPullRequestLabel": {
+ "type": "object",
+ "description": "A label on a GitHub pull request.",
+ "required": ["name"],
+ "properties": {
+ "color": {
+ "type": ["string", "null"],
+ "description": "The label color as six hex digits without a leading `#`, when known."
+ },
+ "name": {
+ "type": "string",
+ "description": "The label name, unique within its repository regardless of case."
+ }
+ }
+ },
+ "GithubPullRequestReview": {
+ "type": "object",
+ "description": "A reviewer's latest submitted review on a pull request.",
+ "required": ["reviewerGithubUserId", "state"],
+ "properties": {
+ "reviewerGithubUserId": {
+ "type": "string",
+ "description": "The stable numeric GitHub user id of the reviewer, as a string."
+ },
+ "reviewerLogin": {
+ "type": ["string", "null"],
+ "description": "The reviewer's GitHub login, when known."
+ },
+ "state": {
+ "$ref": "#/components/schemas/GithubPullRequestReviewState",
+ "description": "What the review said."
+ },
+ "submittedAt": {
+ "type": ["string", "null"],
+ "format": "date-time",
+ "description": "When the review was submitted, when known."
+ }
+ }
+ },
+ "GithubPullRequestReviewDecision": {
+ "type": "string",
+ "description": "Where a pull request's review stands, from its reviewers' latest reviews.",
+ "enum": ["approved", "changes_requested", "review_required"]
+ },
+ "GithubPullRequestReviewState": {
+ "type": "string",
+ "description": "What a reviewer's latest review on a pull request said.",
+ "enum": ["approved", "changes_requested", "commented", "dismissed"]
+ },
+ "GithubPullRequestUser": {
+ "type": "object",
+ "description": "A GitHub user named on a pull request, such as an assignee.",
+ "required": ["githubUserId"],
+ "properties": {
+ "githubUserId": {
+ "type": "string",
+ "description": "The stable numeric GitHub user id, as a string."
+ },
+ "login": {
+ "type": ["string", "null"],
+ "description": "The user's GitHub login, when known."
+ }
+ }
+ },
"GithubPullRequestsResponse": {
"type": "object",
"description": "Response containing all GitHub pull requests associated with a task.",
@@ -34835,6 +34976,156 @@
}
}
},
+ "StoredGithubPullRequest": {
+ "type": "object",
+ "description": "A GitHub pull request as Macro stores it, read through one of the caller's records.",
+ "required": [
+ "id",
+ "githubKey",
+ "owner",
+ "repo",
+ "number",
+ "url",
+ "draft",
+ "assignees",
+ "labels",
+ "requestedReviewerGithubUserIds",
+ "reviews",
+ "comments",
+ "checks"
+ ],
+ "properties": {
+ "additions": {
+ "type": ["integer", "null"],
+ "format": "int64",
+ "description": "Lines added across the pull request's changes.",
+ "minimum": 0
+ },
+ "assignees": {
+ "type": "array",
+ "items": {
+ "$ref": "#/components/schemas/GithubPullRequestUser"
+ },
+ "description": "The users assigned to the pull request."
+ },
+ "authorGithubUserId": {
+ "type": ["string", "null"],
+ "description": "Stable numeric GitHub user id of the author."
+ },
+ "authorLogin": {
+ "type": ["string", "null"],
+ "description": "The author's GitHub login when the pull request was last synced."
+ },
+ "checks": {
+ "type": "array",
+ "items": {
+ "$ref": "#/components/schemas/GithubPullRequestCheckRun"
+ },
+ "description": "The latest check runs on the pull request's head commit."
+ },
+ "comments": {
+ "type": "array",
+ "items": {
+ "$ref": "#/components/schemas/GithubPullRequestComment"
+ },
+ "description": "Comments from the pull request's conversation, reviews, and review threads.\nComment `authorId` intentionally retains the shared numeric GitHub comment contract;\nconvert it to a decimal string before comparing it with `authorGithubUserId`."
+ },
+ "deletions": {
+ "type": ["integer", "null"],
+ "format": "int64",
+ "description": "Lines deleted across the pull request's changes.",
+ "minimum": 0
+ },
+ "description": {
+ "type": ["string", "null"],
+ "description": "The pull request body, as GitHub markdown."
+ },
+ "draft": {
+ "type": "boolean",
+ "description": "Whether the pull request is a draft."
+ },
+ "githubKey": {
+ "type": "string",
+ "description": "The pull request's `owner/repo/pull/number` key."
+ },
+ "githubUpdatedAt": {
+ "type": ["string", "null"],
+ "format": "date-time",
+ "description": "When GitHub last updated the pull request."
+ },
+ "id": {
+ "type": "string",
+ "format": "uuid",
+ "description": "The caller's record for the pull request."
+ },
+ "labels": {
+ "type": "array",
+ "items": {
+ "$ref": "#/components/schemas/GithubPullRequestLabel"
+ },
+ "description": "The pull request's labels."
+ },
+ "number": {
+ "type": "integer",
+ "format": "int64",
+ "description": "The pull request number within its repository."
+ },
+ "owner": {
+ "type": "string",
+ "description": "The repository owner the pull request was last synced under."
+ },
+ "repo": {
+ "type": "string",
+ "description": "The repository name the pull request was last synced under."
+ },
+ "requestedReviewerGithubUserIds": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "description": "Stable numeric GitHub user ids of the users asked to review."
+ },
+ "reviewDecision": {
+ "oneOf": [
+ {
+ "type": "null"
+ },
+ {
+ "$ref": "#/components/schemas/GithubPullRequestReviewDecision",
+ "description": "Where the review stands, derived from `reviews` and the outstanding review requests."
+ }
+ ]
+ },
+ "reviews": {
+ "type": "array",
+ "items": {
+ "$ref": "#/components/schemas/GithubPullRequestReview"
+ },
+ "description": "Each reviewer's latest submitted review."
+ },
+ "status": {
+ "oneOf": [
+ {
+ "type": "null"
+ },
+ {
+ "type": "string",
+ "description": "The normalized lifecycle status for a GitHub pull request.",
+ "enum": ["open", "closed", "merged"]
+ }
+ ],
+ "description": "The normalized pull request status."
+ },
+ "title": {
+ "type": ["string", "null"],
+ "description": "The pull request title."
+ },
+ "url": {
+ "type": "string",
+ "description": "The pull request's page on GitHub."
+ }
+ }
+ },
"String": {
"type": "string"
},
diff --git a/crates/github/src/domain/service/link_test.rs b/crates/github/src/domain/service/link_test.rs
index c3fdd55558..57d39bfcc6 100644
--- a/crates/github/src/domain/service/link_test.rs
+++ b/crates/github/src/domain/service/link_test.rs
@@ -10,7 +10,8 @@ use foreign_entity::domain::{
ports::{ForeignEntityListQuery, ForeignEntityService},
};
use github_pull_requests::domain::{
- models::GithubPullRequestWrite, ports::GithubPullRequestRepository,
+ models::{GithubPullRequestRow, GithubPullRequestWrite},
+ ports::GithubPullRequestRepository,
service::GithubPullRequestServiceImpl,
};
use macro_user_id::{
@@ -631,6 +632,13 @@ impl GithubPullRequestRepository for NoPullRequestRows {
async fn rename_row(&self, _from: &str, _to: &str) -> Result<(), Self::Err> {
Ok(())
}
+
+ async fn pull_request_row(
+ &self,
+ _github_key: &str,
+ ) -> Result<Option<GithubPullRequestRow>, Self::Err> {
+ Ok(None)
+ }
}
fn service(repo: StubGithubRepo, oauth: StubGithubOauth, auth: StubAuth) -> TestGithubLinkService {
diff --git a/crates/github/src/domain/service/sync/test.rs b/crates/github/src/domain/service/sync/test.rs
index 2227ecfab0..39412ad0af 100644
--- a/crates/github/src/domain/service/sync/test.rs
+++ b/crates/github/src/domain/service/sync/test.rs
@@ -34,7 +34,8 @@ use foreign_entity::domain::{
ports::{ForeignEntityListQuery, ForeignEntityService},
};
use github_pull_requests::domain::{
- models::GithubPullRequestWrite, ports::GithubPullRequestRepository,
+ models::{GithubPullRequestRow, GithubPullRequestWrite},
+ ports::GithubPullRequestRepository,
service::GithubPullRequestServiceImpl,
};
use macro_user_id::user_id::MacroUserIdStr;
@@ -1230,6 +1231,13 @@ impl GithubPullRequestRepository for NoPullRequestRows {
async fn rename_row(&self, _from: &str, _to: &str) -> Result<(), Self::Err> {
Ok(())
}
+
+ async fn pull_request_row(
+ &self,
+ _github_key: &str,
+ ) -> Result<Option<GithubPullRequestRow>, Self::Err> {
+ Ok(None)
+ }
}
fn pull_request_service(
diff --git a/crates/github_pull_requests/src/domain/models.rs b/crates/github_pull_requests/src/domain/models.rs
index dd691cbb92..208da45603 100644
--- a/crates/github_pull_requests/src/domain/models.rs
+++ b/crates/github_pull_requests/src/domain/models.rs
@@ -318,6 +318,107 @@ pub enum GithubPullRequestSortDirection {
Desc,
}
+/// A GitHub pull request as Macro stores it, read through one of the caller's records.
+#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq)]
+#[cfg_attr(feature = "schema", derive(utoipa::ToSchema))]
+#[serde(rename_all = "camelCase")]
+pub struct StoredGithubPullRequest {
+ /// The caller's record for the pull request.
+ pub id: uuid::Uuid,
+ /// The pull request's `owner/repo/pull/number` key.
+ pub github_key: String,
+ /// The repository owner the pull request was last synced under.
+ pub owner: String,
+ /// The repository name the pull request was last synced under.
+ pub repo: String,
+ /// The pull request number within its repository.
+ pub number: i64,
+ /// The pull request's page on GitHub.
+ pub url: String,
+ /// The pull request title.
+ pub title: Option<String>,
+ /// The normalized pull request status.
+ // Inline: the storage client already generates a `GithubPullRequestStatus` type.
+ #[cfg_attr(feature = "schema", schema(inline))]
+ pub status: Option<GithubPullRequestStatus>,
+ /// Whether the pull request is a draft.
+ pub draft: bool,
+ /// The author's GitHub login when the pull request was last synced.
+ pub author_login: Option<String>,
+ /// Stable numeric GitHub user id of the author.
+ pub author_github_user_id: Option<String>,
+ /// The pull request body, as GitHub markdown.
+ pub description: Option<String>,
+ /// Lines added across the pull request's changes.
+ pub additions: Option<u64>,
+ /// Lines deleted across the pull request's changes.
+ pub deletions: Option<u64>,
+ /// The users assigned to the pull request.
+ pub assignees: Vec<GithubPullRequestUser>,
+ /// The pull request's labels.
+ pub labels: Vec<GithubPullRequestLabel>,
+ /// Stable numeric GitHub user ids of the users asked to review.
+ pub requested_reviewer_github_user_ids: Vec<String>,
+ /// Each reviewer's latest submitted review.
+ pub reviews: Vec<GithubPullRequestReview>,
+ /// Where the review stands, derived from `reviews` and the outstanding review requests.
+ pub review_decision: Option<GithubPullRequestReviewDecision>,
+ /// Comments from the pull request's conversation, reviews, and review threads.
+ /// Comment `authorId` intentionally retains the shared numeric GitHub comment contract;
+ /// convert it to a decimal string before comparing it with `authorGithubUserId`.
+ pub comments: Vec<GithubPullRequestComment>,
+ /// The latest check runs on the pull request's head commit.
+ pub checks: Vec<GithubPullRequestCheckRun>,
+ /// When GitHub last updated the pull request.
+ #[serde(default, skip_serializing_if = "Option::is_none")]
+ pub github_updated_at: Option<DateTime<Utc>>,
+}
+
+impl StoredGithubPullRequest {
+ /// Combine a pull request record with its row. The row's typed columns win: every write
+ /// updates the row, but a record only changes when its own source is written. The record
+ /// contributes what only records store. Without a row, the record's metadata stands in.
+ pub fn from_record(
+ record: &ForeignEntity,
+ row: Option<GithubPullRequestRow>,
+ ) -> Result<Self, GithubPullRequestError> {
+ let pull_request: EnrichedGithubPullRequest =
+ serde_json::from_value(record.metadata.clone())?;
+ let row = row
+ .or_else(|| GithubPullRequestRow::from_metadata(&record.metadata))
+ .ok_or(GithubPullRequestError::NotFound(record.id))?;
+ let url = format!(
+ "https://github.com/{}/{}/pull/{}",
+ row.owner, row.repo, row.number
+ );
+
+ Ok(Self {
+ id: record.id,
+ github_key: row.github_key,
+ owner: row.owner,
+ repo: row.repo,
+ number: row.number,
+ url,
+ title: row.title.or(pull_request.name),
+ status: row.status.or(pull_request.status),
+ draft: row.draft,
+ author_login: row.author_login,
+ author_github_user_id: row.author_github_user_id,
+ description: pull_request.description,
+ additions: pull_request.additions,
+ deletions: pull_request.deletions,
+ assignees: row.assignees,
+ labels: row.labels,
+ requested_reviewer_github_user_ids: row.requested_reviewer_github_user_ids,
+ reviews: row.reviews,
+ review_decision: row.review_decision,
+ comments: pull_request.comments.unwrap_or_default(),
+ checks: pull_request.checks.unwrap_or_default(),
+ github_updated_at: row.github_updated_at,
+ })
+ }
+}
+
/// 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)]
@@ -380,6 +481,9 @@ pub enum GithubPullRequestError {
/// The request was malformed.
#[error("{0}")]
BadRequest(String),
+ /// The record does not exist or is not a pull request.
+ #[error("pull request {0} not found")]
+ NotFound(uuid::Uuid),
/// The pull request could not be serialized into record metadata.
#[error("failed to serialize pull request metadata: {0}")]
Metadata(#[from] serde_json::Error),
diff --git a/crates/github_pull_requests/src/domain/models/test.rs b/crates/github_pull_requests/src/domain/models/test.rs
index 03aec5c541..7565a7c4f8 100644
--- a/crates/github_pull_requests/src/domain/models/test.rs
+++ b/crates/github_pull_requests/src/domain/models/test.rs
@@ -898,6 +898,40 @@ fn sparse_typed_updates_keep_omissions_and_replace_supplied_empty_values() {
Some(GithubPullRequestReviewDecision::Approved)
);
}
+fn stored_record(pull_request: &EnrichedGithubPullRequest) -> ForeignEntity {
+ ForeignEntity {
+ id: uuid::Uuid::nil(),
+ foreign_entity_id: pull_request.github_key.clone(),
+ foreign_entity_source: GITHUB_PULL_REQUEST_FOREIGN_ENTITY_SOURCE.to_string(),
+ metadata: pull_request.foreign_entity_metadata(None).unwrap(),
+ stored_for_id: "macro|[email protected]".to_string(),
+ stored_for_auth_entity: "user".to_string(),
+ created_at: utc_datetime("2026-05-25T18:54:21Z"),
+ updated_at: utc_datetime("2026-05-25T18:54:21Z"),
+ }
+}
+
+#[test]
+fn stored_response_falls_back_to_record_status_without_overriding_a_known_row_status() {
+ let mut pull_request = EnrichedGithubPullRequest::from_reference(pull_request_reference());
+ pull_request.status = Some(GithubPullRequestStatus::Open);
+ let record = stored_record(&pull_request);
+ let mut row = GithubPullRequestRow::from_metadata(&record.metadata).unwrap();
+ row.status = None;
+ assert_eq!(
+ StoredGithubPullRequest::from_record(&record, Some(row.clone()))
+ .unwrap()
+ .status,
+ Some(GithubPullRequestStatus::Open)
+ );
+ row.status = Some(GithubPullRequestStatus::Merged);
+ assert_eq!(
+ StoredGithubPullRequest::from_record(&record, Some(row))
+ .unwrap()
+ .status,
+ Some(GithubPullRequestStatus::Merged)
+ );
+}
#[test]
fn existing_typed_row_ignores_the_entire_fallback() {
@@ -944,6 +978,27 @@ fn existing_typed_row_ignores_the_entire_fallback() {
);
}
+#[test]
+fn stored_response_url_follows_the_row_repository_identity() {
+ let record = stored_record(&EnrichedGithubPullRequest::from_reference(
+ pull_request_reference(),
+ ));
+ let mut row = GithubPullRequestRow::from_metadata(&record.metadata).unwrap();
+ row.owner = "current-owner".to_string();
+ row.repo = "renamed".to_string();
+ row.github_key = "current-owner/renamed/pull/7".to_string();
+ let response = StoredGithubPullRequest::from_record(&record, Some(row)).unwrap();
+ assert_eq!(
+ response.url,
+ "https://github.com/current-owner/renamed/pull/7"
+ );
+ assert_eq!(response.github_key, "current-owner/renamed/pull/7");
+ assert_eq!(
+ record.metadata["url"],
+ "https://github.com/macro/app/pull/7"
+ );
+}
+
#[test]
fn mismatched_fallback_key_or_number_is_rejected() {
use super::GithubPullRequestWrite;
@@ -976,3 +1031,27 @@ fn mismatched_fallback_key_or_number_is_rejected() {
assert_eq!(merged.title, None);
}
}
+
+#[test]
+fn stored_response_without_a_row_uses_the_record_identity_and_status() {
+ let mut pull_request = EnrichedGithubPullRequest::from_reference(pull_request_reference());
+ pull_request.status = Some(GithubPullRequestStatus::Closed);
+ let response =
+ StoredGithubPullRequest::from_record(&stored_record(&pull_request), None).unwrap();
+ assert_eq!(response.url, pull_request.url);
+ assert_eq!(response.status, Some(GithubPullRequestStatus::Closed));
+}
+
+#[test]
+fn stored_comment_author_ids_intentionally_remain_json_integers() {
+ let mut pull_request = EnrichedGithubPullRequest::from_reference(pull_request_reference());
+ pull_request.author_id = Some(583231);
+ let mut comment = pull_request_comment();
+ comment.author_id = Some(583231);
+ pull_request.comments = Some(vec![comment]);
+ let response =
+ StoredGithubPullRequest::from_record(&stored_record(&pull_request), None).unwrap();
+ let wire = serde_json::to_value(response).unwrap();
+ assert_eq!(wire["authorGithubUserId"], "583231");
+ assert_eq!(wire["comments"][0]["authorId"], serde_json::json!(583231));
+}
diff --git a/crates/github_pull_requests/src/domain/ports.rs b/crates/github_pull_requests/src/domain/ports.rs
index 7b4aa082fe..976015c367 100644
--- a/crates/github_pull_requests/src/domain/ports.rs
+++ b/crates/github_pull_requests/src/domain/ports.rs
@@ -2,7 +2,7 @@
use std::future::Future;
-use entity_access::domain::models::{EntityAccessReceipt, MemberTeamRole};
+use entity_access::domain::models::{EntityAccessReceipt, MemberTeamRole, ViewAccessLevel};
use foreign_entity::domain::{
models::{ForeignEntity, SourceId},
ports::ForeignEntityListQuery,
@@ -12,8 +12,9 @@ use macro_user_id::user_id::MacroUserIdStr;
use super::models::{
EnrichedGithubPullRequest, GithubPullRequestError, GithubPullRequestFacets,
- GithubPullRequestSortDirection, GithubPullRequestWrite, GithubRepositoryIdentity,
- UpsertGithubPullRequest, UpsertedGithubPullRequest,
+ GithubPullRequestRow, GithubPullRequestSortDirection, GithubPullRequestWrite,
+ GithubRepositoryIdentity, StoredGithubPullRequest, UpsertGithubPullRequest,
+ UpsertedGithubPullRequest,
};
/// Stores GitHub pull requests as foreign entity records, one record per user or team the pull
@@ -38,6 +39,13 @@ pub trait GithubPullRequestService: Send + Sync + 'static {
&self,
pull_request: &EnrichedGithubPullRequest,
) -> impl Future<Output = Result<Vec<ForeignEntity>, GithubPullRequestError>> + Send;
+
+ /// The pull request behind the record `receipt` grants view access to. A record that is not
+ /// a pull request is not found.
+ fn get_pull_request(
+ &self,
+ receipt: EntityAccessReceipt<ViewAccessLevel>,
+ ) -> impl Future<Output = Result<StoredGithubPullRequest, GithubPullRequestError>> + Send;
}
/// Writes typed rows for pull requests stored before rows existed.
@@ -76,6 +84,12 @@ pub trait GithubPullRequestRepository: Send + Sync + 'static {
from: &str,
to: &str,
) -> impl Future<Output = Result<(), Self::Err>> + Send;
+
+ /// The row stored for `github_key`, if the pull request has one.
+ fn pull_request_row(
+ &self,
+ github_key: &str,
+ ) -> impl Future<Output = Result<Option<GithubPullRequestRow>, Self::Err>> + Send;
}
/// Reads the stored pull request records the indexer writes rows from.
diff --git a/crates/github_pull_requests/src/domain/service.rs b/crates/github_pull_requests/src/domain/service.rs
index 97e22145be..a3024e0a5b 100644
--- a/crates/github_pull_requests/src/domain/service.rs
+++ b/crates/github_pull_requests/src/domain/service.rs
@@ -3,7 +3,9 @@
#[cfg(test)]
mod test;
-use entity_access::domain::models::{EntityAccessReceipt, EntityType, MemberTeamRole};
+use entity_access::domain::models::{
+ EntityAccessReceipt, EntityType, MemberTeamRole, ViewAccessLevel,
+};
use foreign_entity::domain::{
models::{CreateForeignEntity, ForeignEntity, PatchForeignEntity, SourceId},
ports::{ForeignEntityListQuery, ForeignEntityService},
@@ -16,7 +18,8 @@ use super::{
EnrichedGithubPullRequest, GITHUB_PULL_REQUEST_FOREIGN_ENTITY_SOURCE,
GithubPullRequestError, GithubPullRequestFacets, GithubPullRequestRow,
GithubPullRequestSortDirection, GithubPullRequestStatus, GithubPullRequestWrite,
- GithubRepositoryIdentity, UpsertGithubPullRequest, UpsertedGithubPullRequest,
+ GithubRepositoryIdentity, StoredGithubPullRequest, UpsertGithubPullRequest,
+ UpsertedGithubPullRequest,
},
ports::{
GithubPullRequestFacetRepository, GithubPullRequestFacetService,
@@ -245,6 +248,27 @@ impl<F: ForeignEntityService, R: GithubPullRequestRepository> GithubPullRequestS
}
Ok(refreshed)
}
+
+ #[tracing::instrument(err, skip(self, receipt))]
+ async fn get_pull_request(
+ &self,
+ receipt: EntityAccessReceipt<ViewAccessLevel>,
+ ) -> Result<StoredGithubPullRequest, GithubPullRequestError> {
+ let record = self
+ .foreign_entity_service
+ .get_foreign_entity(receipt)
+ .await?;
+ if record.foreign_entity_source != GITHUB_PULL_REQUEST_FOREIGN_ENTITY_SOURCE {
+ return Err(GithubPullRequestError::NotFound(record.id));
+ }
+ let row = self
+ .repo
+ .pull_request_row(&record.foreign_entity_id)
+ .await
+ .map_err(repository_error)?;
+
+ StoredGithubPullRequest::from_record(&record, row)
+ }
}
impl<F, R> GithubPullRequestIndexer for GithubPullRequestServiceImpl<F, R>
diff --git a/crates/github_pull_requests/src/domain/service/test.rs b/crates/github_pull_requests/src/domain/service/test.rs
index 137ee574f2..42071640a2 100644
--- a/crates/github_pull_requests/src/domain/service/test.rs
+++ b/crates/github_pull_requests/src/domain/service/test.rs
@@ -23,9 +23,10 @@ use super::GithubPullRequestServiceImpl;
use crate::domain::{
models::{
EnrichedGithubPullRequest, GITHUB_PULL_REQUEST_FOREIGN_ENTITY_SOURCE,
- GithubPullRequestError, GithubPullRequestFacets, GithubPullRequestReviewDecision,
- GithubPullRequestRow, GithubPullRequestSortDirection, GithubPullRequestStatus,
- GithubPullRequestWrite, GithubRepositoryIdentity, UpsertGithubPullRequest,
+ GithubPullRequestError, GithubPullRequestFacets, GithubPullRequestLabel,
+ GithubPullRequestReviewDecision, GithubPullRequestRow, GithubPullRequestSortDirection,
+ GithubPullRequestStatus, GithubPullRequestWrite, GithubRepositoryIdentity,
+ UpsertGithubPullRequest,
},
ports::{
GithubPullRequestFacetRepository, GithubPullRequestFacetService,
@@ -74,9 +75,10 @@ impl StubForeignEntityService {
impl ForeignEntityService for StubForeignEntityService {
async fn get_foreign_entity(
&self,
- _receipt: EntityAccessReceipt<ViewAccessLevel>,
+ receipt: EntityAccessReceipt<ViewAccessLevel>,
) -> Result<ForeignEntity, ForeignEntityError> {
- unreachable!("pull request storage does not read records by receipt")
+ let id = Uuid::parse_str(&receipt.entity().entity_id).unwrap();
+ self.get_foreign_entity_by_id(id).await
}
async fn get_foreign_entity_by_id(
@@ -235,6 +237,16 @@ impl GithubPullRequestRepository for StubPullRequestRows {
}
Ok(())
}
+
+ async fn pull_request_row(
+ &self,
+ github_key: &str,
+ ) -> Result<Option<GithubPullRequestRow>, Self::Err> {
+ Ok(self
+ .rows()
+ .into_iter()
+ .find(|row| row.github_key == github_key))
+ }
}
impl GithubPullRequestIndexRepository for StubPullRequestRows {
@@ -931,3 +943,69 @@ async fn index_rebuild_keeps_richer_shared_row_when_latest_record_is_sparse() {
assert_eq!(result[0].requested_reviewer_github_user_ids, vec!["8"]);
assert_eq!(result[0].status, Some(GithubPullRequestStatus::Closed));
}
+fn view_receipt(record: &ForeignEntity) -> EntityAccessReceipt<ViewAccessLevel> {
+ EntityAccessReceipt::<ViewAccessLevel>::dangerously_assert_authenticated_user(
+ facet_user(),
+ &record.id.to_string(),
+ EntityType::ForeignEntity,
+ )
+}
+
+#[tokio::test]
+async fn lookup_takes_typed_fields_from_the_row_and_the_rest_from_the_record() {
+ let mut stale = pull_request(GithubPullRequestStatus::Open);
+ stale.description = Some("Adds storage".to_string());
+ let record = stored_record(&user(), serde_json::to_value(&stale).unwrap());
+ let foreign_entities = StubForeignEntityService::with_records(vec![record.clone()]);
+ let rows = StubPullRequestRows::default();
+ let mut row = GithubPullRequestRow::from_metadata(&record.metadata).unwrap();
+ row.status = Some(GithubPullRequestStatus::Merged);
+ row.labels = vec![GithubPullRequestLabel {
+ name: "bug".to_string(),
+ color: None,
+ }];
+ rows.rows.lock().unwrap().push(row);
+
+ let stored = service(&foreign_entities, &rows)
+ .get_pull_request(view_receipt(&record))
+ .await
+ .unwrap();
+
+ assert_eq!(stored.id, record.id);
+ assert_eq!(stored.status, Some(GithubPullRequestStatus::Merged));
+ assert_eq!(stored.labels[0].name, "bug");
+ assert_eq!(stored.description.as_deref(), Some("Adds storage"));
+ assert_eq!(stored.additions, Some(10));
+}
+
+#[tokio::test]
+async fn lookup_without_a_row_reads_the_record() {
+ let record = stored_record(
+ &user(),
+ serde_json::to_value(pull_request(GithubPullRequestStatus::Closed)).unwrap(),
+ );
+ let foreign_entities = StubForeignEntityService::with_records(vec![record.clone()]);
+
+ let stored = service(&foreign_entities, &StubPullRequestRows::default())
+ .get_pull_request(view_receipt(&record))
+ .await
+ .unwrap();
+
+ assert_eq!(stored.status, Some(GithubPullRequestStatus::Closed));
+ assert_eq!(stored.github_key, GITHUB_KEY);
+}
+
+#[tokio::test]
+async fn lookup_does_not_find_records_from_other_sources() {
+ let record = ForeignEntity {
+ foreign_entity_source: "linear_issue".to_string(),
+ ..stored_record(&user(), serde_json::json!({}))
+ };
+ let foreign_entities = StubForeignEntityService::with_records(vec![record.clone()]);
+
+ let result = service(&foreign_entities, &StubPullRequestRows::default())
+ .get_pull_request(view_receipt(&record))
+ .await;
+
+ assert!(matches!(result, Err(GithubPullRequestError::NotFound(id)) if id == record.id));
+}
diff --git a/crates/github_pull_requests/src/inbound/axum_router.rs b/crates/github_pull_requests/src/inbound/axum_router.rs
index 7bbbbf8785..6f2fdb8fb6 100644
--- a/crates/github_pull_requests/src/inbound/axum_router.rs
+++ b/crates/github_pull_requests/src/inbound/axum_router.rs
@@ -10,17 +10,23 @@ use axum::{
routing::get,
};
use entity_access::{
- domain::{models::MemberTeamRole, ports::EntityAccessService},
- inbound::axum_extractors::OptionalMacroUserTeamExtractorV2,
+ domain::{
+ models::{MemberTeamRole, ViewAccessLevel},
+ ports::EntityAccessService,
+ },
+ inbound::axum_extractors::{
+ ForeignEntityAccessLevelExtractor, OptionalMacroUserTeamExtractorV2,
+ },
};
+use foreign_entity::domain::models::ForeignEntityError;
use macro_authorization::{
MacroAuthorizationExtractor, MacroAuthorizationService, MacroAuthorizationState, UserOrInternal,
};
use model_error_response::ErrorResponse;
use crate::domain::{
- models::{GithubPullRequestError, GithubPullRequestFacets},
- ports::GithubPullRequestFacetService,
+ models::{GithubPullRequestError, GithubPullRequestFacets, StoredGithubPullRequest},
+ ports::{GithubPullRequestFacetService, GithubPullRequestService},
};
/// Router state for GitHub pull request endpoints.
@@ -81,11 +87,12 @@ impl<S, AccessSvc, Auth> FromRef<GithubPullRequestRouterState<S, AccessSvc, Auth
/// - `GET /facets` — repositories and authors among the pull requests visible to the caller,
/// scoped like the Soup listing: the caller's own pull requests plus those of the team in the
/// request's team context, if any.
+/// - `GET /{id}` — the pull request behind a record the caller can view.
pub fn github_pull_requests_router<S, AccessSvc, Auth, T>(
state: GithubPullRequestRouterState<S, AccessSvc, Auth>,
) -> Router<T>
where
- S: GithubPullRequestFacetService,
+ S: GithubPullRequestFacetService + GithubPullRequestService,
AccessSvc: EntityAccessService,
Auth: MacroAuthorizationService,
T: Send + Sync + 'static,
@@ -95,9 +102,48 @@ where
"/facets",
get(get_github_pull_request_facets_handler::<S, AccessSvc, Auth>),
)
+ .route(
+ "/{id}",
+ get(get_github_pull_request_handler::<S, AccessSvc, Auth>),
+ )
.with_state(state)
}
+/// Get the pull request behind a foreign entity record the caller can view.
+#[utoipa::path(
+ get,
+ tag = "github_pull_requests",
+ operation_id = "get_github_pull_request",
+ path = "/github_pull_requests/{id}",
+ params(
+ ("id" = uuid::Uuid, Path, description = "The caller's foreign entity record for the pull request")
+ ),
+ responses(
+ (status = 200, body = StoredGithubPullRequest),
+ (status = 400, body = ErrorResponse),
+ (status = 401, body = ErrorResponse),
+ (status = 404, body = ErrorResponse),
+ (status = 500, body = ErrorResponse),
+ )
+)]
+#[tracing::instrument(err, skip_all)]
+pub async fn get_github_pull_request_handler<S, AccessSvc, Auth>(
+ State(state): State<GithubPullRequestRouterState<S, AccessSvc, Auth>>,
+ access: ForeignEntityAccessLevelExtractor<ViewAccessLevel, AccessSvc, Auth>,
+) -> Result<Json<StoredGithubPullRequest>, GithubPullRequestError>
+where
+ S: GithubPullRequestService,
+ AccessSvc: EntityAccessService,
+ Auth: MacroAuthorizationService,
+{
+ let pull_request = state
+ .service
+ .get_pull_request(access.entity_access_receipt)
+ .await?;
+
+ Ok(Json(pull_request))
+}
+
/// List the repositories and authors among the GitHub pull requests visible to the caller.
#[utoipa::path(
get,
@@ -137,6 +183,10 @@ impl IntoResponse for GithubPullRequestError {
fn into_response(self) -> axum::response::Response {
let status_code = match &self {
GithubPullRequestError::BadRequest(_) => StatusCode::BAD_REQUEST,
+ GithubPullRequestError::NotFound(_)
+ | GithubPullRequestError::ForeignEntity(ForeignEntityError::NotFound(_)) => {
+ StatusCode::NOT_FOUND
+ }
GithubPullRequestError::Metadata(_)
| GithubPullRequestError::ForeignEntity(_)
| GithubPullRequestError::Repository(_) => StatusCode::INTERNAL_SERVER_ERROR,
@@ -148,6 +198,7 @@ impl IntoResponse for GithubPullRequestError {
let message = match &self {
GithubPullRequestError::BadRequest(_) => self.to_string(),
+ _ if status_code == StatusCode::NOT_FOUND => "pull request not found".to_string(),
_ => "internal server error".to_string(),
};
diff --git a/crates/github_pull_requests/src/outbound/pg_github_pull_request_repo.rs b/crates/github_pull_requests/src/outbound/pg_github_pull_request_repo.rs
index 15b13d857d..264a73dfa3 100644
--- a/crates/github_pull_requests/src/outbound/pg_github_pull_request_repo.rs
+++ b/crates/github_pull_requests/src/outbound/pg_github_pull_request_repo.rs
@@ -212,4 +212,71 @@ impl GithubPullRequestRepository for PgGithubPullRequestRepo {
Ok(())
}
+
+ #[tracing::instrument(err, skip(self))]
+ async fn pull_request_row(
+ &self,
+ github_key: &str,
+ ) -> Result<Option<GithubPullRequestRow>, Self::Err> {
+ let Some(row) = sqlx::query!(
+ r#"
+ SELECT
+ github_key,
+ repository_id,
+ number,
+ owner,
+ repo,
+ title,
+ status,
+ draft,
+ author_github_user_id,
+ author_login,
+ requested_reviewer_github_user_ids,
+ participant_github_user_ids,
+ github_updated_at,
+ assignees,
+ labels,
+ reviews,
+ review_decision
+ FROM github_pull_request
+ WHERE github_key = $1
+ "#,
+ github_key,
+ )
+ .fetch_optional(&self.pool)
+ .await?
+ else {
+ return Ok(None);
+ };
+
+ Ok(Some(GithubPullRequestRow {
+ github_key: row.github_key,
+ repository_id: row.repository_id,
+ number: row.number,
+ owner: row.owner,
+ repo: row.repo,
+ title: row.title,
+ status: row
+ .status
+ .map(|status| decode(serde_json::Value::String(status)))
+ .transpose()?,
+ draft: row.draft,
+ author_github_user_id: row.author_github_user_id,
+ author_login: row.author_login,
+ requested_reviewer_github_user_ids: row.requested_reviewer_github_user_ids,
+ participant_github_user_ids: row.participant_github_user_ids,
+ github_updated_at: row.github_updated_at,
+ assignees: decode(row.assignees)?,
+ labels: decode(row.labels)?,
+ reviews: decode(row.reviews)?,
+ review_decision: row
+ .review_decision
+ .map(|decision| decode(serde_json::Value::String(decision)))
+ .transpose()?,
+ }))
+ }
+}
+
+fn decode<T: serde::de::DeserializeOwned>(value: serde_json::Value) -> Result<T, sqlx::Error> {
+ serde_json::from_value(value).map_err(|error| sqlx::Error::Decode(error.into()))
}
diff --git a/crates/github_pull_requests/src/outbound/pg_github_pull_request_repo/test.rs b/crates/github_pull_requests/src/outbound/pg_github_pull_request_repo/test.rs
index f19529f455..ada40a654a 100644
--- a/crates/github_pull_requests/src/outbound/pg_github_pull_request_repo/test.rs
+++ b/crates/github_pull_requests/src/outbound/pg_github_pull_request_repo/test.rs
@@ -41,12 +41,12 @@ fn row(github_key: &str, repository_id: Option<i64>) -> GithubPullRequestRow {
author_github_user_id: Some("42".to_string()),
author_login: Some("octocat".to_string()),
requested_reviewer_github_user_ids: vec!["8".to_string()],
- participant_github_user_ids: vec!["8".to_string(), "42".to_string()],
+ participant_github_user_ids: vec!["42".to_string(), "8".to_string()],
github_updated_at: None,
assignees: Vec::new(),
labels: Vec::new(),
reviews: Vec::new(),
- review_decision: None,
+ review_decision: Some(GithubPullRequestReviewDecision::ReviewRequired),
}
}
@@ -292,3 +292,39 @@ async fn sparse_update_preserves_rich_row_and_supplied_empty_collections_replace
assert!(stored.requested_reviewer_github_user_ids.is_empty());
assert_eq!(stored.review_decision.as_deref(), Some("approved"));
}
+
+#[sqlx::test(migrator = "MACRO_DB_MIGRATIONS")]
+async fn lookup_reads_back_the_stored_row(pool: PgPool) {
+ let repo = PgGithubPullRequestRepo::new(pool);
+ let stored = GithubPullRequestRow {
+ draft: true,
+ assignees: vec![GithubPullRequestUser {
+ github_user_id: "7".to_string(),
+ login: Some("hubot".to_string()),
+ }],
+ labels: vec![GithubPullRequestLabel {
+ name: "bug".to_string(),
+ color: Some("d73a4a".to_string()),
+ }],
+ reviews: vec![GithubPullRequestReview {
+ reviewer_github_user_id: "8".to_string(),
+ reviewer_login: None,
+ state: GithubPullRequestReviewState::ChangesRequested,
+ submitted_at: None,
+ }],
+ review_decision: Some(GithubPullRequestReviewDecision::ChangesRequested),
+ ..row("macro/app/pull/7", Some(99))
+ };
+ repo.upsert_row(&(&stored).into())
+ .await
+ .expect("upsert should succeed");
+
+ assert_eq!(
+ repo.pull_request_row("macro/app/pull/7").await.unwrap(),
+ Some(stored)
+ );
+ assert_eq!(
+ repo.pull_request_row("macro/app/pull/8").await.unwrap(),
+ None
+ );
+}
diff --git a/packages/sdk/generated/storage/index.ts b/packages/sdk/generated/storage/index.ts
index 6f2aadd9b6..0e5ffe0565 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-ts
export { 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, 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';
+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, GetGithubPullRequestData, GetGithubPullRequestError, GetGithubPullRequestErrors, GetGithubPullRequestFacetsData, GetGithubPullRequestFacetsError, GetGithubPullRequestFacetsErrors, GetGithubPullRequestFacetsResponse, GetGithubPullRequestFacetsResponses, GetGithubPullRequestResponse, GetGithubPullRequestResponses, 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, GithubPullRequestLabel, GithubPullRequestReview, GithubPullRequestReviewDecision, GithubPullRequestReviewState, GithubPullRequestsResponse, GithubPullRequestUser, 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, StoredGithubPullRequest, 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/sdk.gen.ts b/packages/sdk/generated/storage/sdk.gen.ts
index 58cfb4718d..2326027aab 100644
--- a/packages/sdk/generated/storage/sdk.gen.ts
+++ b/packages/sdk/generated/storage/sdk.gen.ts
@@ -2,7 +2,7 @@
import type { Client, ClientMeta, Options as Options2, RequestResult, ServerSentEventsResult, TDataShape } from './client';
import { client } from './client.gen';
-import type { AddFavoriteData, AddFavoriteErrors, AddFavoriteResponses, AddParticipantsData, AddParticipantsErrors, AddParticipantsResponses, AddPinHandlerData, AddPinHandlerErrors, AddPinHandlerResponses, ApplyDatabaseOpsData, ApplyDatabaseOpsErrors, ApplyDatabaseOpsResponses, ApproveHarnessPairingData, ApproveHarnessPairingErrors, ApproveHarnessPairingResponses, AssignInitiativeTasksData, AssignInitiativeTasksErrors, AssignInitiativeTasksResponses, BulkWakeupSyncServiceDocumentsData, BulkWakeupSyncServiceDocumentsErrors, BulkWakeupSyncServiceDocumentsResponses, CallWebhookData, CallWebhookErrors, CallWebhookResponses, CancelSlackImportData, CancelSlackImportErrors, CancelSlackImportResponses, CheckActiveCallData, CheckActiveCallErrors, CheckActiveCallResponses, ClaimHarnessPairingData, ClaimHarnessPairingErrors, ClaimHarnessPairingResponses, CompleteSlackImportUploadsData, CompleteSlackImportUploadsErrors, CompleteSlackImportUploadsResponses, ConvertDatabaseColumnData, ConvertDatabaseColumnErrors, ConvertDatabaseColumnResponses, CopyDocumentData, CopyDocumentErrors, CopyDocumentResponses, CreateAgentData, CreateAgentErrors, CreateAgentResponses, CreateAnchorData, CreateAnchorErrors, CreateAnchorResponses, CreateChannelData, CreateChannelErrors, CreateChannelLabelData, CreateChannelLabelErrors, CreateChannelLabelResponses, CreateChannelResponses, CreateChannelScopedBotData, CreateChannelScopedBotErrors, CreateChannelScopedBotResponses, CreateCollabSurfaceTokenData, CreateCollabSurfaceTokenErrors, CreateCollabSurfaceTokenResponses, CreateCrmCompanyData, CreateCrmCompanyErrors, CreateCrmCompanyResponses, CreateCrmContactData, CreateCrmContactErrors, CreateCrmContactResponses, CreateDatabaseData, CreateDatabaseErrors, CreateDatabaseResponses, CreateDocumentData, CreateDocumentErrors, CreateDocumentResponses, CreateEntityMentionData, CreateEntityMentionErrors, CreateEntityMentionResponses, CreateHarnessPairingData, CreateHarnessPairingErrors, CreateHarnessPairingResponses, CreateInitiativeData, CreateInitiativeErrors, CreateInitiativeResponses, CreateInstructionsHandlerData, CreateInstructionsHandlerErrors, CreateInstructionsHandlerResponses, CreateMarkdownHandlerData, CreateMarkdownHandlerErrors, CreateMarkdownHandlerResponses, CreateProjectHandlerData, CreateProjectHandlerErrors, CreateProjectHandlerResponses, CreateReminderData, CreateReminderErrors, CreateReminderResponses, CreateSkillHandlerData, CreateSkillHandlerErrors, CreateSkillHandlerResponses, CreateSlackImportData, CreateSlackImportErrors, CreateSlackImportResponses, CreateSnippetHandlerData, CreateSnippetHandlerErrors, CreateSnippetHandlerResponses, CreateTaskHandlerData, CreateTaskHandlerErrors, CreateTaskHandlerResponses, CreateUserApiKeyData, CreateUserApiKeyErrors, CreateUserApiKeyResponses, CreateViewHandlerData, CreateViewHandlerErrors, CreateViewHandlerResponses, CreateWebhookData, CreateWebhookErrors, CreateWebhookResponses, DeleteAnchorData, DeleteAnchorErrors, DeleteAnchorResponses, DeleteCallRecordData, DeleteCallRecordErrors, DeleteCallRecordResponses, DeleteChannelData, DeleteChannelErrors, DeleteChannelLabelData, DeleteChannelLabelErrors, DeleteChannelLabelResponses, DeleteChannelResponses, DeleteCollabSurfaceData, DeleteCollabSurfaceErrors, DeleteCollabSurfaceResponses, DeleteDocumentData, DeleteDocumentErrors, DeleteDocumentResponses, DeleteEntityMentionData, DeleteEntityMentionErrors, DeleteEntityMentionResponses, DeleteHarnessData, DeleteHarnessErrors, DeleteHarnessResponses, DeleteHistoryHandlerData, DeleteHistoryHandlerErrors, DeleteHistoryHandlerResponses, DeleteInitiativeData, DeleteInitiativeErrors, DeleteInitiativeResponses, DeleteProjectHandlerData, DeleteProjectHandlerErrors, DeleteProjectHandlerResponses, DeleteReminderData, DeleteReminderErrors, DeleteReminderResponses, DeleteSelfHarnessData, DeleteSelfHarnessErrors, DeleteSelfHarnessResponses, DeleteUserApiKeyData, DeleteUserApiKeyErrors, DeleteUserApiKeyResponses, DeleteUserDocumentViewLocationData, DeleteUserDocumentViewLocationErrors, DeleteUserDocumentViewLocationResponses, DeleteViewHandlerData, DeleteViewHandlerErrors, DeleteViewHandlerResponses, DeleteWebhookData, DeleteWebhookErrors, DeleteWebhookResponses, EditAnchorData, EditAnchorErrors, EditAnchorResponses, EditCallRecordData, EditCallRecordErrors, EditCallRecordResponses, EditCallTranscriptData, EditCallTranscriptErrors, EditCallTranscriptResponses, EditDocumentData, EditDocumentErrors, EditDocumentResponses, EditProjectV2Data, EditProjectV2Errors, EditProjectV2Responses, EditThreadV2Data, EditThreadV2Errors, EditThreadV2Responses, EnsureCollabSurfaceData, EnsureCollabSurfaceErrors, EnsureCollabSurfaceResponses, EnsureStarterHandlerData, EnsureStarterHandlerErrors, EnsureStarterHandlerResponses, EntityMessageCreateData, EntityMessageCreateResponses, EntityMessageDeleteMessageData, EntityMessageDeleteMessageResponses, EntityMessageDeleteThreadData, EntityMessageDeleteThreadResponses, EntityMessageEditData, EntityMessageEditResponses, EntityMessageGetMessageData, EntityMessageGetMessageResponses, EntityMessageGetThreadData, EntityMessageGetThreadResponses, EntityMessageLegacyData, EntityMessageLegacyResponses, EntityMessagePatchThreadData, EntityMessagePatchThreadResponses, EntityMessageReactData, EntityMessageReactResponses, EntityMessageTypingData, EntityMessageTypingResponses, ExcludeDefaultViewHandlerData, ExcludeDefaultViewHandlerErrors, ExcludeDefaultViewHandlerResponses, ExportDocumentData, ExportDocumentErrors, ExportDocumentResponses, FinalizeSlackImportData, FinalizeSlackImportErrors, FinalizeSlackImportResponses, GetActiveCallsData, GetActiveCallsErrors, GetActiveCallsResponses, GetActivityData, GetActivityErrors, GetActivityResponses, GetAttachmentReferencesData, GetAttachmentReferencesErrors, GetAttachmentReferencesResponses, GetBatchCallRecordPreviewData, GetBatchCallRecordPreviewErrors, GetBatchCallRecordPreviewResponses, GetBatchChannelPreviewData, GetBatchChannelPreviewErrors, GetBatchChannelPreviewResponses, GetBatchPreviewHandlerData, GetBatchPreviewHandlerErrors, GetBatchPreviewHandlerResponses, GetBatchProjectPreviewData, GetBatchProjectPreviewErrors, GetBatchProjectPreviewResponses, GetBotOwnerProfilesData, GetBotOwnerProfilesErrors, GetBotOwnerProfilesResponses, GetCallRecordData, GetCallRecordErrors, GetCallRecordResponses, GetChannelAttachmentsData, GetChannelAttachmentsErrors, GetChannelAttachmentsResponses, GetChannelData, GetChannelErrors, GetChannelJoinLinkData, GetChannelJoinLinkErrors, GetChannelJoinLinkResponses, GetChannelParticipantsData, GetChannelParticipantsErrors, GetChannelParticipantsResponses, GetChannelResponses, GetChannelsData, GetChannelsErrors, GetChannelsResponses, GetCollabSurfaceData, GetCollabSurfaceErrors, GetCollabSurfaceResponses, GetCompanyData, GetCompanyErrors, GetCompanyResponses, GetContactByEmailData, GetContactByEmailErrors, GetContactByEmailResponses, GetContactData, GetContactErrors, GetContactResponses, GetCrmTeamSettingsData, GetCrmTeamSettingsErrors, GetCrmTeamSettingsResponses, GetDatabaseData, GetDatabaseErrors, GetDatabasePermissionsData, GetDatabasePermissionsErrors, GetDatabasePermissionsResponses, GetDatabaseQueryData, GetDatabaseQueryErrors, GetDatabaseQueryResponses, GetDatabaseResponses, GetDatabaseRowHistoryData, GetDatabaseRowHistoryErrors, GetDatabaseRowHistoryResponses, GetDatabaseTableChangesData, GetDatabaseTableChangesErrors, GetDatabaseTableChangesResponses, GetDatabaseViewPositionsData, GetDatabaseViewPositionsErrors, GetDatabaseViewPositionsResponses, GetDocumentAnchorsData, GetDocumentAnchorsErrors, GetDocumentAnchorsResponses, GetDocumentBranchNameData, GetDocumentBranchNameErrors, GetDocumentBranchNameResponses, GetDocumentByTeamSlugData, GetDocumentByTeamSlugErrors, GetDocumentByTeamSlugResponses, GetDocumentData, GetDocumentErrors, GetDocumentGithubPullRequestsData, GetDocumentGithubPullRequestsErrors, GetDocumentGithubPullRequestsResponses, GetDocumentListHandlerData, GetDocumentListHandlerErrors, GetDocumentListHandlerResponses, GetDocumentLocationV3Data, GetDocumentLocationV3Errors, GetDocumentLocationV3Responses, GetDocumentPermissionsTokenData, GetDocumentPermissionsTokenErrors, GetDocumentPermissionsTokenResponses, GetDocumentPermissionsV2Data, GetDocumentPermissionsV2Errors, GetDocumentPermissionsV2Responses, GetDocumentProcessingResultData, GetDocumentProcessingResultErrors, GetDocumentProcessingResultResponses, GetDocumentResponses, GetDocumentShortIdData, GetDocumentShortIdErrors, GetDocumentShortIdResponses, GetDocumentTeamShareData, GetDocumentTeamShareErrors, GetDocumentTeamShareResponses, GetDocumentVersionData, GetDocumentVersionErrors, GetDocumentVersionResponses, GetDocumentViewsHandlerData, GetDocumentViewsHandlerErrors, GetDocumentViewsHandlerResponses, GetEmailFollowupData, GetEmailFollowupErrors, GetEmailFollowupResponses, GetEntityPermissionData, GetEntityPermissionErrors, GetEntityPermissionResponses, GetForeignEntityBySourceData, GetForeignEntityBySourceErrors, GetForeignEntityBySourceResponses, GetForeignEntityData, GetForeignEntityErrors, GetForeignEntityResponses, GetGithubPullRequestFacetsData, GetGithubPullRequestFacetsErrors, GetGithubPullRequestFacetsResponses, GetHarnessPairingData, GetHarnessPairingErrors, GetHarnessPairingResponses, GetHistoryHandlerData, GetHistoryHandlerErrors, GetHistoryHandlerResponses, GetInitiativeData, GetInitiativeErrors, GetInitiativeResponses, GetInstructionsHandlerData, GetInstructionsHandlerErrors, GetInstructionsHandlerResponses, GetItemsSoupData, GetItemsSoupErrors, GetItemsSoupResponses, GetLocationHandlerData, GetLocationHandlerErrors, GetLocationHandlerResponses, GetOrCreateCallData, GetOrCreateCallErrors, GetOrCreateCallResponses, GetOrCreateDmData, GetOrCreateDmErrors, GetOrCreateDmResponses, GetOrCreatePrivateData, GetOrCreatePrivateErrors, GetOrCreatePrivateResponses, GetPendingProjectsHandlerData, GetPendingProjectsHandlerErrors, GetPendingProjectsHandlerResponses, GetPinsHandlerData, GetPinsHandlerErrors, GetPinsHandlerResponses, GetProjectContentHandlerData, GetProjectContentHandlerErrors, GetProjectContentHandlerResponses, GetProjectHandlerData, GetProjectHandlerErrors, GetProjectHandlerResponses, GetProjectPermissionsV2Data, GetProjectPermissionsV2Errors, GetProjectPermissionsV2Responses, GetProjectsHandlerData, GetProjectsHandlerErrors, GetProjectsHandlerResponses, GetProjectUserAccessLevelData, GetProjectUserAccessLevelErrors, GetProjectUserAccessLevelResponses, GetReminderData, GetReminderErrors, GetReminderResponses, GetRingStatusData, GetRingStatusErrors, GetRingStatusResponses, GetSelfBotData, GetSelfBotErrors, GetSelfBotResponses, GetSelfHarnessData, GetSelfHarnessErrors, GetSelfHarnessResponses, GetSlackImportData, GetSlackImportErrors, GetSlackImportResponses, GetSystemSkillsHandlerData, GetSystemSkillsHandlerErrors, GetSystemSkillsHandlerResponses, GetUserDocumentsHandlerData, GetUserDocumentsHandlerErrors, GetUserDocumentsHandlerResponses, GetUserDocumentViewLocationData, GetUserDocumentViewLocationErrors, GetUserDocumentViewLocationResponses, GetViewsHandlerData, GetViewsHandlerErrors, GetViewsHandlerResponses, GetWebhookData, GetWebhookErrors, GetWebhookResponses, HandlerData, HandlerErrors, HandlerResponses, HealthHandlerData, HealthHandlerResponses, ImportDatabaseTableData, ImportDatabaseTableErrors, ImportDatabaseTableResponses, InferDatabaseColumnTypeData, InferDatabaseColumnTypeErrors, InferDatabaseColumnTypeResponses, IngestTranscriptData, IngestTranscriptErrors, IngestTranscriptResponses, InitializeUserDocumentsData, InitializeUserDocumentsErrors, InitializeUserDocumentsResponses, InstallSyncData, InstallSyncErrors, JobProcessingResultHandlerData, JobProcessingResultHandlerErrors, JobProcessingResultHandlerResponses, JoinChannelByCodeData, JoinChannelByCodeErrors, JoinChannelByCodeResponses, JoinChannelData, JoinChannelErrors, JoinChannelResponses, LeaveChannelData, LeaveChannelErrors, LeaveChannelResponses, LeaveOrEndCallData, LeaveOrEndCallErrors, LeaveOrEndCallResponses, ListAgentsData, ListAgentsErrors, ListAgentsResponses, ListBotChannelsData, ListBotChannelsErrors, ListBotChannelsResponses, ListChannelLabelsData, ListChannelLabelsErrors, ListChannelLabelsResponses, ListCompanyContactsData, ListCompanyContactsErrors, ListCompanyContactsResponses, ListDatabaseColumnCastsData, ListDatabaseColumnCastsErrors, ListDatabaseColumnCastsResponses, ListDatabasesData, ListDatabasesErrors, ListDatabasesResponses, ListEmailRemindersData, ListEmailRemindersErrors, ListEmailRemindersResponses, ListFavoritesData, ListFavoritesErrors, ListFavoritesResponses, ListHarnessAgentsData, ListHarnessAgentsErrors, ListHarnessAgentsResponses, ListHarnessesData, ListHarnessesErrors, ListHarnessesResponses, ListHarnessSessionsData, ListHarnessSessionsErrors, ListHarnessSessionsResponses, ListInitiativesData, ListInitiativesErrors, ListInitiativesResponses, ListOccurrencesData, ListOccurrencesErrors, ListOccurrencesResponses, ListReminderCollectionData, ListReminderCollectionErrors, ListReminderCollectionResponses, ListRemindersData, ListRemindersErrors, ListRemindersResponses, ListSlackImportsData, ListSlackImportsResponses, ListTeamOutOfOfficeData, ListTeamOutOfOfficeErrors, ListTeamOutOfOfficeResponses, ListUserApiKeysData, ListUserApiKeysErrors, ListUserApiKeysResponses, ListWebhooksData, ListWebhooksErrors, ListWebhooksResponses, MeetingCancelData, MeetingCancelErrors, MeetingCancelPreparationData, MeetingCancelPreparationErrors, MeetingCancelPreparationResponses, MeetingCancelResponses, MeetingCreateData, MeetingCreateErrors, MeetingCreateResponses, MeetingGuestJoinData, MeetingGuestJoinErrors, MeetingGuestJoinResponses, MeetingGuestParticipantsData, MeetingGuestParticipantsErrors, MeetingGuestParticipantsResponses, MeetingInviteData, MeetingInviteErrors, MeetingInvitePermissionsData, MeetingInvitePermissionsErrors, MeetingInvitePermissionsResponses, MeetingInviteResponses, MeetingInviteUsersData, MeetingInviteUsersErrors, MeetingInviteUsersResponses, MeetingJoinData, MeetingJoinErrors, MeetingJoinResponses, MeetingLeaveData, MeetingLeaveErrors, MeetingLeaveResponses, MeetingListActiveData, MeetingListActiveErrors, MeetingListActiveResponses, MeetingListData, MeetingListErrors, MeetingListResponses, MeetingLookupData, MeetingLookupErrors, MeetingLookupResponses, MeetingParticipantsData, MeetingParticipantsErrors, MeetingParticipantsResponses, MeetingPrepareData, MeetingPrepareErrors, MeetingPrepareResponses, MeetingShareData, MeetingShareErrors, MeetingShareResponses, MeetingUpdateData, MeetingUpdateErrors, MeetingUpdateResponses, MentionPreviewsData, MentionPreviewsErrors, MentionPreviewsResponses, MessageTimelineData, MessageTimelineResponses, PatchChannelData, PatchChannelErrors, PatchChannelResponses, PatchViewHandlerData, PatchViewHandlerErrors, PatchViewHandlerResponses, PatchWebhookData, PatchWebhookErrors, PatchWebhookResponses, PermanentlyDeleteDocumentData, PermanentlyDeleteDocumentErrors, PermanentlyDeleteDocumentResponses, PermanentlyDeleteProjectData, PermanentlyDeleteProjectErrors, PermanentlyDeleteProjectResponses, PostActivityData, PostActivityErrors, PostActivityResponses, PostChannelBotWebhookData, PostChannelBotWebhookErrors, PostChannelBotWebhookResponses, PostItemsSoupAstData, PostItemsSoupAstErrors, PostItemsSoupAstGroupedData, PostItemsSoupAstGroupedErrors, PostItemsSoupAstGroupedResponses, PostItemsSoupAstResponses, PostItemsSoupData, PostItemsSoupErrors, PostItemsSoupResponses, PresaveDocumentHandlerData, PresaveDocumentHandlerErrors, PresaveDocumentHandlerResponses, PreviewSmartTagData, PreviewSmartTagErrors, PreviewSmartTagResponses, PutCrmTeamSettingsData, PutCrmTeamSettingsErrors, PutCrmTeamSettingsResponses, PutCrmTeamStagesData, PutCrmTeamStagesErrors, PutCrmTeamStagesResponses, RecentlyDeletedData, RecentlyDeletedErrors, RecentlyDeletedResponses, RegisterSlackImportUploadsData, RegisterSlackImportUploadsErrors, RegisterSlackImportUploadsResponses, RemoveBotFromChannelByBotData, RemoveBotFromChannelByBotErrors, RemoveBotFromChannelByBotResponses, RemoveFavoriteByEntityData, RemoveFavoriteByEntityErrors, RemoveFavoriteByEntityResponses, RemoveParticipantsData, RemoveParticipantsErrors, RemoveParticipantsResponses, RemovePinHandlerData, RemovePinHandlerErrors, RemovePinHandlerResponses, RenameChannelLabelData, RenameChannelLabelErrors, RenameChannelLabelResponses, ReorderFavoritesData, ReorderFavoritesErrors, ReorderFavoritesResponses, ReorderPinsHandlerData, ReorderPinsHandlerErrors, ReorderPinsHandlerResponses, ResetCrmTeamStagesData, ResetCrmTeamStagesErrors, ResetCrmTeamStagesResponses, RevertDeleteDocumentData, RevertDeleteDocumentErrors, RevertDeleteDocumentResponses, RevertDeleteProjectData, RevertDeleteProjectErrors, RevertDeleteProjectResponses, SaveDatabaseQueryData, SaveDatabaseQueryErrors, SaveDatabaseQueryResponses, SaveDocumentHandlerData, SaveDocumentHandlerErrors, SaveDocumentHandlerResponses, SearchContactsData, SearchContactsErrors, SearchContactsResponses, SetChannelLabelData, SetChannelLabelErrors, SetChannelLabelResponses, SetChannelPictureData, SetChannelPictureErrors, SetChannelPictureResponses, SetCompanyHiddenData, SetCompanyHiddenErrors, SetCompanyHiddenResponses, SetContactHiddenData, SetContactHiddenErrors, SetContactHiddenResponses, SetCrmCompanyNameData, SetCrmCompanyNameErrors, SetCrmCompanyNameResponses, SetCrmContactNameData, SetCrmContactNameErrors, SetCrmContactNameResponses, SetDocumentTeamShareData, SetDocumentTeamShareErrors, SetDocumentTeamShareResponses, SetEmailFollowupData, SetEmailFollowupErrors, SetEmailFollowupResponses, SetEmailSyncData, SetEmailSyncErrors, SetEmailSyncResponses, ShareDatabaseAwarenessData, ShareDatabaseAwarenessErrors, ShareDatabaseAwarenessResponses, SimpleSaveData, SimpleSaveErrors, SimpleSaveResponses, StreamEventsData, StreamEventsErrors, StreamEventsResponse, StreamEventsResponses, ToggleShareWithTeamData, ToggleShareWithTeamErrors, ToggleShareWithTeamResponses, TranscribeDictationData, TranscribeDictationErrors, TranscribeDictationResponses, UnassignInitiativeTaskData, UnassignInitiativeTaskErrors, UnassignInitiativeTaskResponses, UndoDatabaseChangeData, UndoDatabaseChangeErrors, UndoDatabaseChangeResponses, UpdateAgentData, UpdateAgentErrors, UpdateAgentResponses, UpdateDatabasePermissionsData, UpdateDatabasePermissionsErrors, UpdateDatabasePermissionsResponses, UpdateInitiativeData, UpdateInitiativeErrors, UpdateInitiativeResponses, UpdateReminderData, UpdateReminderErrors, UpdateReminderResponses, UploadExtractFolderHandlerData, UploadExtractFolderHandlerErrors, UploadExtractFolderHandlerResponses, UploadFolderHandlerData, UploadFolderHandlerErrors, UploadFolderHandlerResponses, UpsertHistoryHandlerData, UpsertHistoryHandlerErrors, UpsertHistoryHandlerResponses, UpsertUserDocumentViewLocationData, UpsertUserDocumentViewLocationErrors, UpsertUserDocumentViewLocationResponses, ValidateDocumentPermissionsTokenData, ValidateDocumentPermissionsTokenErrors, ValidateDocumentPermissionsTokenResponses, ValidateWebhookData, ValidateWebhookErrors, ValidateWebhookResponses } from './types.gen';
+import type { AddFavoriteData, AddFavoriteErrors, AddFavoriteResponses, AddParticipantsData, AddParticipantsErrors, AddParticipantsResponses, AddPinHandlerData, AddPinHandlerErrors, AddPinHandlerResponses, ApplyDatabaseOpsData, ApplyDatabaseOpsErrors, ApplyDatabaseOpsResponses, ApproveHarnessPairingData, ApproveHarnessPairingErrors, ApproveHarnessPairingResponses, AssignInitiativeTasksData, AssignInitiativeTasksErrors, AssignInitiativeTasksResponses, BulkWakeupSyncServiceDocumentsData, BulkWakeupSyncServiceDocumentsErrors, BulkWakeupSyncServiceDocumentsResponses, CallWebhookData, CallWebhookErrors, CallWebhookResponses, CancelSlackImportData, CancelSlackImportErrors, CancelSlackImportResponses, CheckActiveCallData, CheckActiveCallErrors, CheckActiveCallResponses, ClaimHarnessPairingData, ClaimHarnessPairingErrors, ClaimHarnessPairingResponses, CompleteSlackImportUploadsData, CompleteSlackImportUploadsErrors, CompleteSlackImportUploadsResponses, ConvertDatabaseColumnData, ConvertDatabaseColumnErrors, ConvertDatabaseColumnResponses, CopyDocumentData, CopyDocumentErrors, CopyDocumentResponses, CreateAgentData, CreateAgentErrors, CreateAgentResponses, CreateAnchorData, CreateAnchorErrors, CreateAnchorResponses, CreateChannelData, CreateChannelErrors, CreateChannelLabelData, CreateChannelLabelErrors, CreateChannelLabelResponses, CreateChannelResponses, CreateChannelScopedBotData, CreateChannelScopedBotErrors, CreateChannelScopedBotResponses, CreateCollabSurfaceTokenData, CreateCollabSurfaceTokenErrors, CreateCollabSurfaceTokenResponses, CreateCrmCompanyData, CreateCrmCompanyErrors, CreateCrmCompanyResponses, CreateCrmContactData, CreateCrmContactErrors, CreateCrmContactResponses, CreateDatabaseData, CreateDatabaseErrors, CreateDatabaseResponses, CreateDocumentData, CreateDocumentErrors, CreateDocumentResponses, CreateEntityMentionData, CreateEntityMentionErrors, CreateEntityMentionResponses, CreateHarnessPairingData, CreateHarnessPairingErrors, CreateHarnessPairingResponses, CreateInitiativeData, CreateInitiativeErrors, CreateInitiativeResponses, CreateInstructionsHandlerData, CreateInstructionsHandlerErrors, CreateInstructionsHandlerResponses, CreateMarkdownHandlerData, CreateMarkdownHandlerErrors, CreateMarkdownHandlerResponses, CreateProjectHandlerData, CreateProjectHandlerErrors, CreateProjectHandlerResponses, CreateReminderData, CreateReminderErrors, CreateReminderResponses, CreateSkillHandlerData, CreateSkillHandlerErrors, CreateSkillHandlerResponses, CreateSlackImportData, CreateSlackImportErrors, CreateSlackImportResponses, CreateSnippetHandlerData, CreateSnippetHandlerErrors, CreateSnippetHandlerResponses, CreateTaskHandlerData, CreateTaskHandlerErrors, CreateTaskHandlerResponses, CreateUserApiKeyData, CreateUserApiKeyErrors, CreateUserApiKeyResponses, CreateViewHandlerData, CreateViewHandlerErrors, CreateViewHandlerResponses, CreateWebhookData, CreateWebhookErrors, CreateWebhookResponses, DeleteAnchorData, DeleteAnchorErrors, DeleteAnchorResponses, DeleteCallRecordData, DeleteCallRecordErrors, DeleteCallRecordResponses, DeleteChannelData, DeleteChannelErrors, DeleteChannelLabelData, DeleteChannelLabelErrors, DeleteChannelLabelResponses, DeleteChannelResponses, DeleteCollabSurfaceData, DeleteCollabSurfaceErrors, DeleteCollabSurfaceResponses, DeleteDocumentData, DeleteDocumentErrors, DeleteDocumentResponses, DeleteEntityMentionData, DeleteEntityMentionErrors, DeleteEntityMentionResponses, DeleteHarnessData, DeleteHarnessErrors, DeleteHarnessResponses, DeleteHistoryHandlerData, DeleteHistoryHandlerErrors, DeleteHistoryHandlerResponses, DeleteInitiativeData, DeleteInitiativeErrors, DeleteInitiativeResponses, DeleteProjectHandlerData, DeleteProjectHandlerErrors, DeleteProjectHandlerResponses, DeleteReminderData, DeleteReminderErrors, DeleteReminderResponses, DeleteSelfHarnessData, DeleteSelfHarnessErrors, DeleteSelfHarnessResponses, DeleteUserApiKeyData, DeleteUserApiKeyErrors, DeleteUserApiKeyResponses, DeleteUserDocumentViewLocationData, DeleteUserDocumentViewLocationErrors, DeleteUserDocumentViewLocationResponses, DeleteViewHandlerData, DeleteViewHandlerErrors, DeleteViewHandlerResponses, DeleteWebhookData, DeleteWebhookErrors, DeleteWebhookResponses, EditAnchorData, EditAnchorErrors, EditAnchorResponses, EditCallRecordData, EditCallRecordErrors, EditCallRecordResponses, EditCallTranscriptData, EditCallTranscriptErrors, EditCallTranscriptResponses, EditDocumentData, EditDocumentErrors, EditDocumentResponses, EditProjectV2Data, EditProjectV2Errors, EditProjectV2Responses, EditThreadV2Data, EditThreadV2Errors, EditThreadV2Responses, EnsureCollabSurfaceData, EnsureCollabSurfaceErrors, EnsureCollabSurfaceResponses, EnsureStarterHandlerData, EnsureStarterHandlerErrors, EnsureStarterHandlerResponses, EntityMessageCreateData, EntityMessageCreateResponses, EntityMessageDeleteMessageData, EntityMessageDeleteMessageResponses, EntityMessageDeleteThreadData, EntityMessageDeleteThreadResponses, EntityMessageEditData, EntityMessageEditResponses, EntityMessageGetMessageData, EntityMessageGetMessageResponses, EntityMessageGetThreadData, EntityMessageGetThreadResponses, EntityMessageLegacyData, EntityMessageLegacyResponses, EntityMessagePatchThreadData, EntityMessagePatchThreadResponses, EntityMessageReactData, EntityMessageReactResponses, EntityMessageTypingData, EntityMessageTypingResponses, ExcludeDefaultViewHandlerData, ExcludeDefaultViewHandlerErrors, ExcludeDefaultViewHandlerResponses, ExportDocumentData, ExportDocumentErrors, ExportDocumentResponses, FinalizeSlackImportData, FinalizeSlackImportErrors, FinalizeSlackImportResponses, GetActiveCallsData, GetActiveCallsErrors, GetActiveCallsResponses, GetActivityData, GetActivityErrors, GetActivityResponses, GetAttachmentReferencesData, GetAttachmentReferencesErrors, GetAttachmentReferencesResponses, GetBatchCallRecordPreviewData, GetBatchCallRecordPreviewErrors, GetBatchCallRecordPreviewResponses, GetBatchChannelPreviewData, GetBatchChannelPreviewErrors, GetBatchChannelPreviewResponses, GetBatchPreviewHandlerData, GetBatchPreviewHandlerErrors, GetBatchPreviewHandlerResponses, GetBatchProjectPreviewData, GetBatchProjectPreviewErrors, GetBatchProjectPreviewResponses, GetBotOwnerProfilesData, GetBotOwnerProfilesErrors, GetBotOwnerProfilesResponses, GetCallRecordData, GetCallRecordErrors, GetCallRecordResponses, GetChannelAttachmentsData, GetChannelAttachmentsErrors, GetChannelAttachmentsResponses, GetChannelData, GetChannelErrors, GetChannelJoinLinkData, GetChannelJoinLinkErrors, GetChannelJoinLinkResponses, GetChannelParticipantsData, GetChannelParticipantsErrors, GetChannelParticipantsResponses, GetChannelResponses, GetChannelsData, GetChannelsErrors, GetChannelsResponses, GetCollabSurfaceData, GetCollabSurfaceErrors, GetCollabSurfaceResponses, GetCompanyData, GetCompanyErrors, GetCompanyResponses, GetContactByEmailData, GetContactByEmailErrors, GetContactByEmailResponses, GetContactData, GetContactErrors, GetContactResponses, GetCrmTeamSettingsData, GetCrmTeamSettingsErrors, GetCrmTeamSettingsResponses, GetDatabaseData, GetDatabaseErrors, GetDatabasePermissionsData, GetDatabasePermissionsErrors, GetDatabasePermissionsResponses, GetDatabaseQueryData, GetDatabaseQueryErrors, GetDatabaseQueryResponses, GetDatabaseResponses, GetDatabaseRowHistoryData, GetDatabaseRowHistoryErrors, GetDatabaseRowHistoryResponses, GetDatabaseTableChangesData, GetDatabaseTableChangesErrors, GetDatabaseTableChangesResponses, GetDatabaseViewPositionsData, GetDatabaseViewPositionsErrors, GetDatabaseViewPositionsResponses, GetDocumentAnchorsData, GetDocumentAnchorsErrors, GetDocumentAnchorsResponses, GetDocumentBranchNameData, GetDocumentBranchNameErrors, GetDocumentBranchNameResponses, GetDocumentByTeamSlugData, GetDocumentByTeamSlugErrors, GetDocumentByTeamSlugResponses, GetDocumentData, GetDocumentErrors, GetDocumentGithubPullRequestsData, GetDocumentGithubPullRequestsErrors, GetDocumentGithubPullRequestsResponses, GetDocumentListHandlerData, GetDocumentListHandlerErrors, GetDocumentListHandlerResponses, GetDocumentLocationV3Data, GetDocumentLocationV3Errors, GetDocumentLocationV3Responses, GetDocumentPermissionsTokenData, GetDocumentPermissionsTokenErrors, GetDocumentPermissionsTokenResponses, GetDocumentPermissionsV2Data, GetDocumentPermissionsV2Errors, GetDocumentPermissionsV2Responses, GetDocumentProcessingResultData, GetDocumentProcessingResultErrors, GetDocumentProcessingResultResponses, GetDocumentResponses, GetDocumentShortIdData, GetDocumentShortIdErrors, GetDocumentShortIdResponses, GetDocumentTeamShareData, GetDocumentTeamShareErrors, GetDocumentTeamShareResponses, GetDocumentVersionData, GetDocumentVersionErrors, GetDocumentVersionResponses, GetDocumentViewsHandlerData, GetDocumentViewsHandlerErrors, GetDocumentViewsHandlerResponses, GetEmailFollowupData, GetEmailFollowupErrors, GetEmailFollowupResponses, GetEntityPermissionData, GetEntityPermissionErrors, GetEntityPermissionResponses, GetForeignEntityBySourceData, GetForeignEntityBySourceErrors, GetForeignEntityBySourceResponses, GetForeignEntityData, GetForeignEntityErrors, GetForeignEntityResponses, GetGithubPullRequestData, GetGithubPullRequestErrors, GetGithubPullRequestFacetsData, GetGithubPullRequestFacetsErrors, GetGithubPullRequestFacetsResponses, GetGithubPullRequestResponses, GetHarnessPairingData, GetHarnessPairingErrors, GetHarnessPairingResponses, GetHistoryHandlerData, GetHistoryHandlerErrors, GetHistoryHandlerResponses, GetInitiativeData, GetInitiativeErrors, GetInitiativeResponses, GetInstructionsHandlerData, GetInstructionsHandlerErrors, GetInstructionsHandlerResponses, GetItemsSoupData, GetItemsSoupErrors, GetItemsSoupResponses, GetLocationHandlerData, GetLocationHandlerErrors, GetLocationHandlerResponses, GetOrCreateCallData, GetOrCreateCallErrors, GetOrCreateCallResponses, GetOrCreateDmData, GetOrCreateDmErrors, GetOrCreateDmResponses, GetOrCreatePrivateData, GetOrCreatePrivateErrors, GetOrCreatePrivateResponses, GetPendingProjectsHandlerData, GetPendingProjectsHandlerErrors, GetPendingProjectsHandlerResponses, GetPinsHandlerData, GetPinsHandlerErrors, GetPinsHandlerResponses, GetProjectContentHandlerData, GetProjectContentHandlerErrors, GetProjectContentHandlerResponses, GetProjectHandlerData, GetProjectHandlerErrors, GetProjectHandlerResponses, GetProjectPermissionsV2Data, GetProjectPermissionsV2Errors, GetProjectPermissionsV2Responses, GetProjectsHandlerData, GetProjectsHandlerErrors, GetProjectsHandlerResponses, GetProjectUserAccessLevelData, GetProjectUserAccessLevelErrors, GetProjectUserAccessLevelResponses, GetReminderData, GetReminderErrors, GetReminderResponses, GetRingStatusData, GetRingStatusErrors, GetRingStatusResponses, GetSelfBotData, GetSelfBotErrors, GetSelfBotResponses, GetSelfHarnessData, GetSelfHarnessErrors, GetSelfHarnessResponses, GetSlackImportData, GetSlackImportErrors, GetSlackImportResponses, GetSystemSkillsHandlerData, GetSystemSkillsHandlerErrors, GetSystemSkillsHandlerResponses, GetUserDocumentsHandlerData, GetUserDocumentsHandlerErrors, GetUserDocumentsHandlerResponses, GetUserDocumentViewLocationData, GetUserDocumentViewLocationErrors, GetUserDocumentViewLocationResponses, GetViewsHandlerData, GetViewsHandlerErrors, GetViewsHandlerResponses, GetWebhookData, GetWebhookErrors, GetWebhookResponses, HandlerData, HandlerErrors, HandlerResponses, HealthHandlerData, HealthHandlerResponses, ImportDatabaseTableData, ImportDatabaseTableErrors, ImportDatabaseTableResponses, InferDatabaseColumnTypeData, InferDatabaseColumnTypeErrors, InferDatabaseColumnTypeResponses, IngestTranscriptData, IngestTranscriptErrors, IngestTranscriptResponses, InitializeUserDocumentsData, InitializeUserDocumentsErrors, InitializeUserDocumentsResponses, InstallSyncData, InstallSyncErrors, JobProcessingResultHandlerData, JobProcessingResultHandlerErrors, JobProcessingResultHandlerResponses, JoinChannelByCodeData, JoinChannelByCodeErrors, JoinChannelByCodeResponses, JoinChannelData, JoinChannelErrors, JoinChannelResponses, LeaveChannelData, LeaveChannelErrors, LeaveChannelResponses, LeaveOrEndCallData, LeaveOrEndCallErrors, LeaveOrEndCallResponses, ListAgentsData, ListAgentsErrors, ListAgentsResponses, ListBotChannelsData, ListBotChannelsErrors, ListBotChannelsResponses, ListChannelLabelsData, ListChannelLabelsErrors, ListChannelLabelsResponses, ListCompanyContactsData, ListCompanyContactsErrors, ListCompanyContactsResponses, ListDatabaseColumnCastsData, ListDatabaseColumnCastsErrors, ListDatabaseColumnCastsResponses, ListDatabasesData, ListDatabasesErrors, ListDatabasesResponses, ListEmailRemindersData, ListEmailRemindersErrors, ListEmailRemindersResponses, ListFavoritesData, ListFavoritesErrors, ListFavoritesResponses, ListHarnessAgentsData, ListHarnessAgentsErrors, ListHarnessAgentsResponses, ListHarnessesData, ListHarnessesErrors, ListHarnessesResponses, ListHarnessSessionsData, ListHarnessSessionsErrors, ListHarnessSessionsResponses, ListInitiativesData, ListInitiativesErrors, ListInitiativesResponses, ListOccurrencesData, ListOccurrencesErrors, ListOccurrencesResponses, ListReminderCollectionData, ListReminderCollectionErrors, ListReminderCollectionResponses, ListRemindersData, ListRemindersErrors, ListRemindersResponses, ListSlackImportsData, ListSlackImportsResponses, ListTeamOutOfOfficeData, ListTeamOutOfOfficeErrors, ListTeamOutOfOfficeResponses, ListUserApiKeysData, ListUserApiKeysErrors, ListUserApiKeysResponses, ListWebhooksData, ListWebhooksErrors, ListWebhooksResponses, MeetingCancelData, MeetingCancelErrors, MeetingCancelPreparationData, MeetingCancelPreparationErrors, MeetingCancelPreparationResponses, MeetingCancelResponses, MeetingCreateData, MeetingCreateErrors, MeetingCreateResponses, MeetingGuestJoinData, MeetingGuestJoinErrors, MeetingGuestJoinResponses, MeetingGuestParticipantsData, MeetingGuestParticipantsErrors, MeetingGuestParticipantsResponses, MeetingInviteData, MeetingInviteErrors, MeetingInvitePermissionsData, MeetingInvitePermissionsErrors, MeetingInvitePermissionsResponses, MeetingInviteResponses, MeetingInviteUsersData, MeetingInviteUsersErrors, MeetingInviteUsersResponses, MeetingJoinData, MeetingJoinErrors, MeetingJoinResponses, MeetingLeaveData, MeetingLeaveErrors, MeetingLeaveResponses, MeetingListActiveData, MeetingListActiveErrors, MeetingListActiveResponses, MeetingListData, MeetingListErrors, MeetingListResponses, MeetingLookupData, MeetingLookupErrors, MeetingLookupResponses, MeetingParticipantsData, MeetingParticipantsErrors, MeetingParticipantsResponses, MeetingPrepareData, MeetingPrepareErrors, MeetingPrepareResponses, MeetingShareData, MeetingShareErrors, MeetingShareResponses, MeetingUpdateData, MeetingUpdateErrors, MeetingUpdateResponses, MentionPreviewsData, MentionPreviewsErrors, MentionPreviewsResponses, MessageTimelineData, MessageTimelineResponses, PatchChannelData, PatchChannelErrors, PatchChannelResponses, PatchViewHandlerData, PatchViewHandlerErrors, PatchViewHandlerResponses, PatchWebhookData, PatchWebhookErrors, PatchWebhookResponses, PermanentlyDeleteDocumentData, PermanentlyDeleteDocumentErrors, PermanentlyDeleteDocumentResponses, PermanentlyDeleteProjectData, PermanentlyDeleteProjectErrors, PermanentlyDeleteProjectResponses, PostActivityData, PostActivityErrors, PostActivityResponses, PostChannelBotWebhookData, PostChannelBotWebhookErrors, PostChannelBotWebhookResponses, PostItemsSoupAstData, PostItemsSoupAstErrors, PostItemsSoupAstGroupedData, PostItemsSoupAstGroupedErrors, PostItemsSoupAstGroupedResponses, PostItemsSoupAstResponses, PostItemsSoupData, PostItemsSoupErrors, PostItemsSoupResponses, PresaveDocumentHandlerData, PresaveDocumentHandlerErrors, PresaveDocumentHandlerResponses, PreviewSmartTagData, PreviewSmartTagErrors, PreviewSmartTagResponses, PutCrmTeamSettingsData, PutCrmTeamSettingsErrors, PutCrmTeamSettingsResponses, PutCrmTeamStagesData, PutCrmTeamStagesErrors, PutCrmTeamStagesResponses, RecentlyDeletedData, RecentlyDeletedErrors, RecentlyDeletedResponses, RegisterSlackImportUploadsData, RegisterSlackImportUploadsErrors, RegisterSlackImportUploadsResponses, RemoveBotFromChannelByBotData, RemoveBotFromChannelByBotErrors, RemoveBotFromChannelByBotResponses, RemoveFavoriteByEntityData, RemoveFavoriteByEntityErrors, RemoveFavoriteByEntityResponses, RemoveParticipantsData, RemoveParticipantsErrors, RemoveParticipantsResponses, RemovePinHandlerData, RemovePinHandlerErrors, RemovePinHandlerResponses, RenameChannelLabelData, RenameChannelLabelErrors, RenameChannelLabelResponses, ReorderFavoritesData, ReorderFavoritesErrors, ReorderFavoritesResponses, ReorderPinsHandlerData, ReorderPinsHandlerErrors, ReorderPinsHandlerResponses, ResetCrmTeamStagesData, ResetCrmTeamStagesErrors, ResetCrmTeamStagesResponses, RevertDeleteDocumentData, RevertDeleteDocumentErrors, RevertDeleteDocumentResponses, RevertDeleteProjectData, RevertDeleteProjectErrors, RevertDeleteProjectResponses, SaveDatabaseQueryData, SaveDatabaseQueryErrors, SaveDatabaseQueryResponses, SaveDocumentHandlerData, SaveDocumentHandlerErrors, SaveDocumentHandlerResponses, SearchContactsData, SearchContactsErrors, SearchContactsResponses, SetChannelLabelData, SetChannelLabelErrors, SetChannelLabelResponses, SetChannelPictureData, SetChannelPictureErrors, SetChannelPictureResponses, SetCompanyHiddenData, SetCompanyHiddenErrors, SetCompanyHiddenResponses, SetContactHiddenData, SetContactHiddenErrors, SetContactHiddenResponses, SetCrmCompanyNameData, SetCrmCompanyNameErrors, SetCrmCompanyNameResponses, SetCrmContactNameData, SetCrmContactNameErrors, SetCrmContactNameResponses, SetDocumentTeamShareData, SetDocumentTeamShareErrors, SetDocumentTeamShareResponses, SetEmailFollowupData, SetEmailFollowupErrors, SetEmailFollowupResponses, SetEmailSyncData, SetEmailSyncErrors, SetEmailSyncResponses, ShareDatabaseAwarenessData, ShareDatabaseAwarenessErrors, ShareDatabaseAwarenessResponses, SimpleSaveData, SimpleSaveErrors, SimpleSaveResponses, StreamEventsData, StreamEventsErrors, StreamEventsResponse, StreamEventsResponses, ToggleShareWithTeamData, ToggleShareWithTeamErrors, ToggleShareWithTeamResponses, TranscribeDictationData, TranscribeDictationErrors, TranscribeDictationResponses, UnassignInitiativeTaskData, UnassignInitiativeTaskErrors, UnassignInitiativeTaskResponses, UndoDatabaseChangeData, UndoDatabaseChangeErrors, UndoDatabaseChangeResponses, UpdateAgentData, UpdateAgentErrors, UpdateAgentResponses, UpdateDatabasePermissionsData, UpdateDatabasePermissionsErrors, UpdateDatabasePermissionsResponses, UpdateInitiativeData, UpdateInitiativeErrors, UpdateInitiativeResponses, UpdateReminderData, UpdateReminderErrors, UpdateReminderResponses, UploadExtractFolderHandlerData, UploadExtractFolderHandlerErrors, UploadExtractFolderHandlerResponses, UploadFolderHandlerData, UploadFolderHandlerErrors, UploadFolderHandlerResponses, UpsertHistoryHandlerData, UpsertHistoryHandlerErrors, UpsertHistoryHandlerResponses, UpsertUserDocumentViewLocationData, UpsertUserDocumentViewLocationErrors, UpsertUserDocumentViewLocationResponses, ValidateDocumentPermissionsTokenData, ValidateDocumentPermissionsTokenErrors, ValidateDocumentPermissionsTokenResponses, ValidateWebhookData, ValidateWebhookErrors, ValidateWebhookResponses } from './types.gen';
export type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean, TResponse = unknown> = Options2<TData, ThrowOnError, TResponse> & {
/**
@@ -1798,6 +1798,13 @@ export class Sdk extends HeyApiClient {
return (options?.client ?? this.client).get<GetGithubPullRequestFacetsResponses, GetGithubPullRequestFacetsErrors, ThrowOnError>({ url: '/github_pull_requests/facets', ...options });
}
+ /**
+ * Get the pull request behind a foreign entity record the caller can view.
+ */
+ public getGithubPullRequest<ThrowOnError extends boolean = false>(options: Options<GetGithubPullRequestData, ThrowOnError>): RequestResult<GetGithubPullRequestResponses, GetGithubPullRequestErrors, ThrowOnError> {
+ return (options.client ?? this.client).get<GetGithubPullRequestResponses, GetGithubPullRequestErrors, ThrowOnError>({ url: '/github_pull_requests/{id}', ...options });
+ }
+
/**
* Handler for `POST /harness-pairings`.
*
diff --git a/packages/sdk/generated/storage/types.gen.ts b/packages/sdk/generated/storage/types.gen.ts
index 13a93b5368..06823c1b90 100644
--- a/packages/sdk/generated/storage/types.gen.ts
+++ b/packages/sdk/generated/storage/types.gen.ts
@@ -6716,6 +6716,10 @@ export type GithubPullRequestComment = {
* GitHub's relationship label for the author, when available.
*/
authorAssociation?: string | null;
+ /**
+ * The stable numeric GitHub user id for the comment author, when available.
+ */
+ authorId?: number | null;
/**
* The GitHub login for the comment author, when available.
*/
@@ -6794,6 +6798,66 @@ export type GithubPullRequestFacets = {
repositories: Array<GithubRepositoryFacet>;
};
+/**
+ * A label on a GitHub pull request.
+ */
+export type GithubPullRequestLabel = {
+ /**
+ * The label color as six hex digits without a leading `#`, when known.
+ */
+ color?: string | null;
+ /**
+ * The label name, unique within its repository regardless of case.
+ */
+ name: string;
+};
+
+/**
+ * A reviewer's latest submitted review on a pull request.
+ */
+export type GithubPullRequestReview = {
+ /**
+ * The stable numeric GitHub user id of the reviewer, as a string.
+ */
+ reviewerGithubUserId: string;
+ /**
+ * The reviewer's GitHub login, when known.
+ */
+ reviewerLogin?: string | null;
+ /**
+ * What the review said.
+ */
+ state: GithubPullRequestReviewState;
+ /**
+ * When the review was submitted, when known.
+ */
+ submittedAt?: string | null;
+};
+
+/**
+ * Where a pull request's review stands, from its reviewers' latest reviews.
+ */
+export type GithubPullRequestReviewDecision = 'approved' | 'changes_requested' | 'review_required';
+
+/**
+ * What a reviewer's latest review on a pull request said.
+ */
+export type GithubPullRequestReviewState = 'approved' | 'changes_requested' | 'commented' | 'dismissed';
+
+/**
+ * A GitHub user named on a pull request, such as an assignee.
+ */
+export type GithubPullRequestUser = {
+ /**
+ * The stable numeric GitHub user id, as a string.
+ */
+ githubUserId: string;
+ /**
+ * The user's GitHub login, when known.
+ */
+ login?: string | null;
+};
+
/**
* Response containing all GitHub pull requests associated with a task.
*/
@@ -11833,6 +11897,99 @@ export type StarterDocumentsResponse = {
how_to_guide_id: string;
};
+/**
+ * A GitHub pull request as Macro stores it, read through one of the caller's records.
+ */
+export type StoredGithubPullRequest = {
+ /**
+ * Lines added across the pull request's changes.
+ */
+ additions?: number | null;
+ /**
+ * The users assigned to the pull request.
+ */
+ assignees: Array<GithubPullRequestUser>;
+ /**
+ * Stable numeric GitHub user id of the author.
+ */
+ authorGithubUserId?: string | null;
+ /**
+ * The author's GitHub login when the pull request was last synced.
+ */
+ authorLogin?: string | null;
+ /**
+ * The latest check runs on the pull request's head commit.
+ */
+ checks: Array<GithubPullRequestCheckRun>;
+ /**
+ * Comments from the pull request's conversation, reviews, and review threads.
+ * Comment `authorId` intentionally retains the shared numeric GitHub comment contract;
+ * convert it to a decimal string before comparing it with `authorGithubUserId`.
+ */
+ comments: Array<GithubPullRequestComment>;
+ /**
+ * Lines deleted across the pull request's changes.
+ */
+ deletions?: number | null;
+ /**
+ * The pull request body, as GitHub markdown.
+ */
+ description?: string | null;
+ /**
+ * Whether the pull request is a draft.
+ */
+ draft: boolean;
+ /**
+ * The pull request's `owner/repo/pull/number` key.
+ */
+ githubKey: string;
+ /**
+ * When GitHub last updated the pull request.
+ */
+ githubUpdatedAt?: string | null;
+ /**
+ * The caller's record for the pull request.
+ */
+ id: string;
+ /**
+ * The pull request's labels.
+ */
+ labels: Array<GithubPullRequestLabel>;
+ /**
+ * The pull request number within its repository.
+ */
+ number: number;
+ /**
+ * The repository owner the pull request was last synced under.
+ */
+ owner: string;
+ /**
+ * The repository name the pull request was last synced under.
+ */
+ repo: string;
+ /**
+ * Stable numeric GitHub user ids of the users asked to review.
+ */
+ requestedReviewerGithubUserIds: Array<string>;
+ reviewDecision?: null | GithubPullRequestReviewDecision;
+ /**
+ * Each reviewer's latest submitted review.
+ */
+ reviews: Array<GithubPullRequestReview>;
+ /**
+ * The normalized pull request status.
+ */
+ status?: null | 'open' | 'closed' | 'merged';
+ /**
+ * The pull request title.
+ */
+ title?: string | null;
+ /**
+ * The pull request's page on GitHub.
+ */
+ url: string;
+};
+
export type String = string;
export type SuccessResponse = {
@@ -17653,6 +17810,33 @@ export type GetGithubPullRequestFacetsResponses = {
export type GetGithubPullRequestFacetsResponse = GetGithubPullRequestFacetsResponses[keyof GetGithubPullRequestFacetsResponses];
+export type GetGithubPullRequestData = {
+ body?: never;
+ path: {
+ /**
+ * The caller's foreign entity record for the pull request
+ */
+ id: string;
+ };
+ query?: never;
+ url: '/github_pull_requests/{id}';
+};
+
+export type GetGithubPullRequestErrors = {
+ 400: ErrorResponse;
+ 401: ErrorResponse;
+ 404: ErrorResponse;
+ 500: ErrorResponse;
+};
+
+export type GetGithubPullRequestError = GetGithubPullRequestErrors[keyof GetGithubPullRequestErrors];
+
+export type GetGithubPullRequestResponses = {
+ 200: StoredGithubPullRequest;
+};
+
+export type GetGithubPullRequestResponse = GetGithubPullRequestResponses[keyof GetGithubPullRequestResponses];
+
export type CreateHarnessPairingData = {
body: CreatePairingRequest;
path?: never;
diff --git a/packages/sdk/specs/storage.json b/packages/sdk/specs/storage.json
index be09e47ea2..8d9118827a 100644
--- a/packages/sdk/specs/storage.json
+++ b/packages/sdk/specs/storage.json
@@ -10707,6 +10707,77 @@
}
}
},
+ "/github_pull_requests/{id}": {
+ "get": {
+ "tags": ["github_pull_requests"],
+ "summary": "Get the pull request behind a foreign entity record the caller can view.",
+ "operationId": "get_github_pull_request",
+ "parameters": [
+ {
+ "name": "id",
+ "in": "path",
+ "description": "The caller's foreign entity record for the pull request",
+ "required": true,
+ "schema": {
+ "type": "string",
+ "format": "uuid"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/StoredGithubPullRequest"
+ }
+ }
+ }
+ },
+ "400": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
+ }
+ }
+ },
+ "401": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
+ }
+ }
+ },
+ "404": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
+ }
+ }
+ },
+ "500": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
+ }
+ }
+ }
+ }
+ }
+ },
"/harness-pairings": {
"post": {
"tags": ["harnesses"],
@@ -26650,6 +26721,12 @@
"type": ["string", "null"],
"description": "GitHub's relationship label for the author, when available."
},
+ "authorId": {
+ "type": ["integer", "null"],
+ "format": "int64",
+ "description": "The stable numeric GitHub user id for the comment author, when available.",
+ "minimum": 0
+ },
"authorLogin": {
"type": ["string", "null"],
"description": "The GitHub login for the comment author, when available."
@@ -26747,6 +26824,70 @@
}
}
},
+ "GithubPullRequestLabel": {
+ "type": "object",
+ "description": "A label on a GitHub pull request.",
+ "required": ["name"],
+ "properties": {
+ "color": {
+ "type": ["string", "null"],
+ "description": "The label color as six hex digits without a leading `#`, when known."
+ },
+ "name": {
+ "type": "string",
+ "description": "The label name, unique within its repository regardless of case."
+ }
+ }
+ },
+ "GithubPullRequestReview": {
+ "type": "object",
+ "description": "A reviewer's latest submitted review on a pull request.",
+ "required": ["reviewerGithubUserId", "state"],
+ "properties": {
+ "reviewerGithubUserId": {
+ "type": "string",
+ "description": "The stable numeric GitHub user id of the reviewer, as a string."
+ },
+ "reviewerLogin": {
+ "type": ["string", "null"],
+ "description": "The reviewer's GitHub login, when known."
+ },
+ "state": {
+ "$ref": "#/components/schemas/GithubPullRequestReviewState",
+ "description": "What the review said."
+ },
+ "submittedAt": {
+ "type": ["string", "null"],
+ "format": "date-time",
+ "description": "When the review was submitted, when known."
+ }
+ }
+ },
+ "GithubPullRequestReviewDecision": {
+ "type": "string",
+ "description": "Where a pull request's review stands, from its reviewers' latest reviews.",
+ "enum": ["approved", "changes_requested", "review_required"]
+ },
+ "GithubPullRequestReviewState": {
+ "type": "string",
+ "description": "What a reviewer's latest review on a pull request said.",
+ "enum": ["approved", "changes_requested", "commented", "dismissed"]
+ },
+ "GithubPullRequestUser": {
+ "type": "object",
+ "description": "A GitHub user named on a pull request, such as an assignee.",
+ "required": ["githubUserId"],
+ "properties": {
+ "githubUserId": {
+ "type": "string",
+ "description": "The stable numeric GitHub user id, as a string."
+ },
+ "login": {
+ "type": ["string", "null"],
+ "description": "The user's GitHub login, when known."
+ }
+ }
+ },
"GithubPullRequestsResponse": {
"type": "object",
"description": "Response containing all GitHub pull requests associated with a task.",
@@ -34835,6 +34976,156 @@
}
}
},
+ "StoredGithubPullRequest": {
+ "type": "object",
+ "description": "A GitHub pull request as Macro stores it, read through one of the caller's records.",
+ "required": [
+ "id",
+ "githubKey",
+ "owner",
+ "repo",
+ "number",
+ "url",
+ "draft",
+ "assignees",
+ "labels",
+ "requestedReviewerGithubUserIds",
+ "reviews",
+ "comments",
+ "checks"
+ ],
+ "properties": {
+ "additions": {
+ "type": ["integer", "null"],
+ "format": "int64",
+ "description": "Lines added across the pull request's changes.",
+ "minimum": 0
+ },
+ "assignees": {
+ "type": "array",
+ "items": {
+ "$ref": "#/components/schemas/GithubPullRequestUser"
+ },
+ "description": "The users assigned to the pull request."
+ },
+ "authorGithubUserId": {
+ "type": ["string", "null"],
+ "description": "Stable numeric GitHub user id of the author."
+ },
+ "authorLogin": {
+ "type": ["string", "null"],
+ "description": "The author's GitHub login when the pull request was last synced."
+ },
+ "checks": {
+ "type": "array",
+ "items": {
+ "$ref": "#/components/schemas/GithubPullRequestCheckRun"
+ },
+ "description": "The latest check runs on the pull request's head commit."
+ },
+ "comments": {
+ "type": "array",
+ "items": {
+ "$ref": "#/components/schemas/GithubPullRequestComment"
+ },
+ "description": "Comments from the pull request's conversation, reviews, and review threads.\nComment `authorId` intentionally retains the shared numeric GitHub comment contract;\nconvert it to a decimal string before comparing it with `authorGithubUserId`."
+ },
+ "deletions": {
+ "type": ["integer", "null"],
+ "format": "int64",
+ "description": "Lines deleted across the pull request's changes.",
+ "minimum": 0
+ },
+ "description": {
+ "type": ["string", "null"],
+ "description": "The pull request body, as GitHub markdown."
+ },
+ "draft": {
+ "type": "boolean",
+ "description": "Whether the pull request is a draft."
+ },
+ "githubKey": {
+ "type": "string",
+ "description": "The pull request's `owner/repo/pull/number` key."
+ },
+ "githubUpdatedAt": {
+ "type": ["string", "null"],
+ "format": "date-time",
+ "description": "When GitHub last updated the pull request."
+ },
+ "id": {
+ "type": "string",
+ "format": "uuid",
+ "description": "The caller's record for the pull request."
+ },
+ "labels": {
+ "type": "array",
+ "items": {
+ "$ref": "#/components/schemas/GithubPullRequestLabel"
+ },
+ "description": "The pull request's labels."
+ },
+ "number": {
+ "type": "integer",
+ "format": "int64",
+ "description": "The pull request number within its repository."
+ },
+ "owner": {
+ "type": "string",
+ "description": "The repository owner the pull request was last synced under."
+ },
+ "repo": {
+ "type": "string",
+ "description": "The repository name the pull request was last synced under."
+ },
+ "requestedReviewerGithubUserIds": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "description": "Stable numeric GitHub user ids of the users asked to review."
+ },
+ "reviewDecision": {
+ "oneOf": [
+ {
+ "type": "null"
+ },
+ {
+ "$ref": "#/components/schemas/GithubPullRequestReviewDecision",
+ "description": "Where the review stands, derived from `reviews` and the outstanding review requests."
+ }
+ ]
+ },
+ "reviews": {
+ "type": "array",
+ "items": {
+ "$ref": "#/components/schemas/GithubPullRequestReview"
+ },
+ "description": "Each reviewer's latest submitted review."
+ },
+ "status": {
+ "oneOf": [
+ {
+ "type": "null"
+ },
+ {
+ "type": "string",
+ "description": "The normalized lifecycle status for a GitHub pull request.",
+ "enum": ["open", "closed", "merged"]
+ }
+ ],
+ "description": "The normalized pull request status."
+ },
+ "title": {
+ "type": ["string", "null"],
+ "description": "The pull request title."
+ },
+ "url": {
+ "type": "string",
+ "description": "The pull request's page on GitHub."
+ }
+ }
+ },
"String": {
"type": "string"
},
diff --git a/packages/sdk/src/coverage/skipped.ts b/packages/sdk/src/coverage/skipped.ts
index 5a6eed5180..a7c69f72c2 100644
--- a/packages/sdk/src/coverage/skipped.ts
+++ b/packages/sdk/src/coverage/skipped.ts
@@ -411,6 +411,7 @@ export const storageBacklog = [
'getDocumentPermissionsV2',
'getDocumentVersion',
'getEntityPermission',
+ 'getGithubPullRequest',
'getProjectPermissionsV2',
'getProjectUserAccessLevel',
'getHarnessPairing',
diff --git a/services/document_storage_service/src/api/swagger.rs b/services/document_storage_service/src/api/swagger.rs
index 74148183ba..dc52393795 100644
--- a/services/document_storage_service/src/api/swagger.rs
+++ b/services/document_storage_service/src/api/swagger.rs
@@ -116,6 +116,7 @@ use favorites::inbound::axum_router::{
use foreign_entity::domain::models::ForeignEntity;
use github_pull_requests::domain::models::{
GithubLabelFacet, GithubPullRequestFacets, GithubRepositoryFacet, GithubUserFacet,
+ StoredGithubPullRequest,
};
use initiative::domain::models::{
AssignTaskStatus, AssignTasksRequest, AssignTasksResponse, AssignTasksResult,
@@ -483,6 +484,7 @@ use utoipa::OpenApi;
// github_pull_requests
github_pull_requests::inbound::axum_router::get_github_pull_request_facets_handler,
+ github_pull_requests::inbound::axum_router::get_github_pull_request_handler,
// threads
threads::edit_thread::edit_thread_handler,
@@ -618,6 +620,7 @@ use utoipa::OpenApi;
GithubRepositoryFacet,
GithubUserFacet,
GithubLabelFacet,
+ StoredGithubPullRequest,
Favorite,
FavoritesList,
CreatedUserApiKey,