@fragno-dev/github-app-fragment 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.md +16 -0
- package/README.md +163 -0
- package/bin/run.js +5 -0
- package/dist/browser/client/react.d.ts +37 -0
- package/dist/browser/client/react.d.ts.map +1 -0
- package/dist/browser/client/react.js +166 -0
- package/dist/browser/client/react.js.map +1 -0
- package/dist/browser/client/solid.d.ts +35 -0
- package/dist/browser/client/solid.d.ts.map +1 -0
- package/dist/browser/client/solid.js +136 -0
- package/dist/browser/client/solid.js.map +1 -0
- package/dist/browser/client/svelte.d.ts +30 -0
- package/dist/browser/client/svelte.d.ts.map +1 -0
- package/dist/browser/client/svelte.js +134 -0
- package/dist/browser/client/svelte.js.map +1 -0
- package/dist/browser/client/vanilla.d.ts +16 -0
- package/dist/browser/client/vanilla.d.ts.map +1 -0
- package/dist/browser/client/vanilla.js +11 -0
- package/dist/browser/client/vanilla.js.map +1 -0
- package/dist/browser/client/vue.d.ts +33 -0
- package/dist/browser/client/vue.d.ts.map +1 -0
- package/dist/browser/client/vue.js +133 -0
- package/dist/browser/client/vue.js.map +1 -0
- package/dist/browser/factory-BIj4C6PD.js +2210 -0
- package/dist/browser/factory-BIj4C6PD.js.map +1 -0
- package/dist/browser/index.d.ts +343 -0
- package/dist/browser/index.d.ts.map +1 -0
- package/dist/browser/index.js +3 -0
- package/dist/browser/types-BzeSSOQU.d.ts +660 -0
- package/dist/browser/types-BzeSSOQU.d.ts.map +1 -0
- package/dist/cli/commands/installations.js +92 -0
- package/dist/cli/commands/installations.js.map +1 -0
- package/dist/cli/commands/pulls.js +123 -0
- package/dist/cli/commands/pulls.js.map +1 -0
- package/dist/cli/commands/repositories.js +105 -0
- package/dist/cli/commands/repositories.js.map +1 -0
- package/dist/cli/commands/serve.js +187 -0
- package/dist/cli/commands/serve.js.map +1 -0
- package/dist/cli/commands/webhooks.js +122 -0
- package/dist/cli/commands/webhooks.js.map +1 -0
- package/dist/cli/github/api.js +94 -0
- package/dist/cli/github/api.js.map +1 -0
- package/dist/cli/github/definition.js +15 -0
- package/dist/cli/github/definition.js.map +1 -0
- package/dist/cli/github/factory.js +12 -0
- package/dist/cli/github/factory.js.map +1 -0
- package/dist/cli/github/repo-sync.js +33 -0
- package/dist/cli/github/repo-sync.js.map +1 -0
- package/dist/cli/github/utils.js +23 -0
- package/dist/cli/github/utils.js.map +1 -0
- package/dist/cli/github/webhook-processing.js +247 -0
- package/dist/cli/github/webhook-processing.js.map +1 -0
- package/dist/cli/index.d.ts +5 -0
- package/dist/cli/index.d.ts.map +1 -0
- package/dist/cli/index.js +263 -0
- package/dist/cli/index.js.map +1 -0
- package/dist/cli/routes.js +718 -0
- package/dist/cli/routes.js.map +1 -0
- package/dist/cli/schema.js +47 -0
- package/dist/cli/schema.js.map +1 -0
- package/dist/cli/utils/client.js +120 -0
- package/dist/cli/utils/client.js.map +1 -0
- package/dist/cli/utils/config.js +113 -0
- package/dist/cli/utils/config.js.map +1 -0
- package/dist/cli/utils/options.js +90 -0
- package/dist/cli/utils/options.js.map +1 -0
- package/dist/cli/utils/output.js +12 -0
- package/dist/cli/utils/output.js.map +1 -0
- package/dist/node/github/api.d.ts +52 -0
- package/dist/node/github/api.d.ts.map +1 -0
- package/dist/node/github/api.js +94 -0
- package/dist/node/github/api.js.map +1 -0
- package/dist/node/github/clients.d.ts +19 -0
- package/dist/node/github/clients.d.ts.map +1 -0
- package/dist/node/github/clients.js +12 -0
- package/dist/node/github/clients.js.map +1 -0
- package/dist/node/github/definition.d.ts +33 -0
- package/dist/node/github/definition.d.ts.map +1 -0
- package/dist/node/github/definition.js +15 -0
- package/dist/node/github/definition.js.map +1 -0
- package/dist/node/github/factory.d.ts +139 -0
- package/dist/node/github/factory.d.ts.map +1 -0
- package/dist/node/github/factory.js +18 -0
- package/dist/node/github/factory.js.map +1 -0
- package/dist/node/github/repo-sync.js +33 -0
- package/dist/node/github/repo-sync.js.map +1 -0
- package/dist/node/github/types.d.ts +24 -0
- package/dist/node/github/types.d.ts.map +1 -0
- package/dist/node/github/utils.js +23 -0
- package/dist/node/github/utils.js.map +1 -0
- package/dist/node/github/webhook-processing.d.ts +15 -0
- package/dist/node/github/webhook-processing.d.ts.map +1 -0
- package/dist/node/github/webhook-processing.js +247 -0
- package/dist/node/github/webhook-processing.js.map +1 -0
- package/dist/node/index.d.ts +7 -0
- package/dist/node/index.js +6 -0
- package/dist/node/routes.d.ts +127 -0
- package/dist/node/routes.d.ts.map +1 -0
- package/dist/node/routes.js +718 -0
- package/dist/node/routes.js.map +1 -0
- package/dist/node/schema.js +47 -0
- package/dist/node/schema.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/package.json +114 -0
|
@@ -0,0 +1,343 @@
|
|
|
1
|
+
import { a as GitHubAppWebhookOn, i as GitHubAppWebhookHandler, l as NonGetHTTPMethod, n as GitHubAppFragmentPublicClientConfig, o as FragnoClientMutatorData, r as GitHubAppWebhookConfig, t as GitHubAppFragmentConfig, u as FragnoPublicClientConfig } from "./types-BzeSSOQU.js";
|
|
2
|
+
import * as _fragno_dev_db_schema0 from "@fragno-dev/db/schema";
|
|
3
|
+
import { FragnoId } from "@fragno-dev/db/schema";
|
|
4
|
+
import * as zod from "zod";
|
|
5
|
+
import { z } from "zod";
|
|
6
|
+
import * as _fragno_dev_core0 from "@fragno-dev/core";
|
|
7
|
+
import { FragnoRouteConfig } from "@fragno-dev/core";
|
|
8
|
+
import * as _standard_schema_spec0 from "@standard-schema/spec";
|
|
9
|
+
import * as zod_v4_core0 from "zod/v4/core";
|
|
10
|
+
import * as _fragno_dev_db0 from "@fragno-dev/db";
|
|
11
|
+
import { FragnoPublicConfigWithDatabase } from "@fragno-dev/db";
|
|
12
|
+
import { App } from "octokit";
|
|
13
|
+
import * as _fragno_dev_db_fragment_definition_builder0 from "@fragno-dev/db/fragment-definition-builder";
|
|
14
|
+
|
|
15
|
+
//#region src/github/clients.d.ts
|
|
16
|
+
declare function createGitHubAppFragmentClients(fragnoConfig: FragnoPublicClientConfig): {
|
|
17
|
+
useSyncInstallation: FragnoClientMutatorData<NonGetHTTPMethod, "/installations/:installationId/sync", _standard_schema_spec0.StandardSchemaV1<unknown, unknown> | undefined, zod.ZodObject<{
|
|
18
|
+
added: zod.ZodNumber;
|
|
19
|
+
removed: zod.ZodNumber;
|
|
20
|
+
updated: zod.ZodNumber;
|
|
21
|
+
}, zod_v4_core0.$strip> | undefined, "INSTALLATION_NOT_FOUND" | "GITHUB_API_ERROR", string>;
|
|
22
|
+
};
|
|
23
|
+
//#endregion
|
|
24
|
+
//#region src/github/api.d.ts
|
|
25
|
+
type GitHubApiClientOptions = {
|
|
26
|
+
fetch?: typeof fetch;
|
|
27
|
+
};
|
|
28
|
+
type OctokitAppInstance = InstanceType<typeof App>;
|
|
29
|
+
type GitHubOctokit = OctokitAppInstance["octokit"];
|
|
30
|
+
type GitHubAppInstance = {
|
|
31
|
+
octokit: GitHubOctokit;
|
|
32
|
+
webhooks: OctokitAppInstance["webhooks"];
|
|
33
|
+
getInstallationOctokit: (installationId: number) => Promise<GitHubOctokit>;
|
|
34
|
+
};
|
|
35
|
+
type GitHubInstallationRepository = {
|
|
36
|
+
id: number;
|
|
37
|
+
name: string;
|
|
38
|
+
full_name: string;
|
|
39
|
+
private: boolean;
|
|
40
|
+
fork?: boolean;
|
|
41
|
+
default_branch?: string | null;
|
|
42
|
+
owner: {
|
|
43
|
+
login: string;
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
type GitHubInstallationDetails = {
|
|
47
|
+
id: string;
|
|
48
|
+
accountId: string;
|
|
49
|
+
accountLogin: string;
|
|
50
|
+
accountType: string;
|
|
51
|
+
status: "active" | "suspended";
|
|
52
|
+
permissions: Record<string, unknown>;
|
|
53
|
+
events: unknown[];
|
|
54
|
+
};
|
|
55
|
+
type GitHubInstallationRepositoriesResponse = {
|
|
56
|
+
repositories: GitHubInstallationRepository[];
|
|
57
|
+
};
|
|
58
|
+
type GitHubApiClient = {
|
|
59
|
+
app: GitHubAppInstance;
|
|
60
|
+
apiVersion: string;
|
|
61
|
+
resolveInstallationId: (installationId: string) => number;
|
|
62
|
+
getInstallation: (installationId: string) => Promise<GitHubInstallationDetails>;
|
|
63
|
+
listInstallationRepos: (installationId: string) => Promise<GitHubInstallationRepositoriesResponse>;
|
|
64
|
+
verifyWebhookSignature: (options: {
|
|
65
|
+
payload: string;
|
|
66
|
+
signatureHeader: string | null;
|
|
67
|
+
}) => Promise<boolean>;
|
|
68
|
+
};
|
|
69
|
+
declare const createGitHubApiClient: (config: GitHubAppFragmentConfig, options?: GitHubApiClientOptions) => GitHubApiClient;
|
|
70
|
+
//#endregion
|
|
71
|
+
//#region src/github/webhook-processing.d.ts
|
|
72
|
+
type WebhookProcessingPayload = {
|
|
73
|
+
deliveryId: string;
|
|
74
|
+
event: string;
|
|
75
|
+
action: string | null;
|
|
76
|
+
installationId: string;
|
|
77
|
+
payload: Record<string, unknown>;
|
|
78
|
+
receivedAt?: string | null;
|
|
79
|
+
};
|
|
80
|
+
//#endregion
|
|
81
|
+
//#region src/github/definition.d.ts
|
|
82
|
+
type GitHubAppFragmentDependencies = {
|
|
83
|
+
githubApiClient: ReturnType<typeof createGitHubApiClient>;
|
|
84
|
+
};
|
|
85
|
+
type GitHubAppFragmentServices = {
|
|
86
|
+
app: ReturnType<typeof createGitHubApiClient>["app"];
|
|
87
|
+
githubApiClient: ReturnType<typeof createGitHubApiClient>;
|
|
88
|
+
};
|
|
89
|
+
declare const githubAppFragmentDefinition: _fragno_dev_core0.FragmentDefinition<GitHubAppFragmentConfig, _fragno_dev_db0.FragnoPublicConfigWithDatabase, {
|
|
90
|
+
githubApiClient: GitHubApiClient;
|
|
91
|
+
} & _fragno_dev_db0.ImplicitDatabaseDependencies<_fragno_dev_db_schema0.Schema<{
|
|
92
|
+
installation: _fragno_dev_db_schema0.Table<Record<"id", _fragno_dev_db_schema0.IdColumn<"varchar(128)", string | _fragno_dev_db_schema0.FragnoId | null, _fragno_dev_db_schema0.FragnoId>> & Record<"accountId", _fragno_dev_db_schema0.Column<"string", string, string>> & Record<"accountLogin", _fragno_dev_db_schema0.Column<"string", string, string>> & Record<"accountType", _fragno_dev_db_schema0.Column<"string", string, string>> & Record<"status", _fragno_dev_db_schema0.Column<"string", string, string>> & Record<"permissions", _fragno_dev_db_schema0.Column<"json", unknown, unknown>> & Record<"events", _fragno_dev_db_schema0.Column<"json", unknown, unknown>> & Record<"createdAt", _fragno_dev_db_schema0.Column<"timestamp", (Date | _fragno_dev_db0.DbNow) | null, Date>> & Record<"updatedAt", _fragno_dev_db_schema0.Column<"timestamp", (Date | _fragno_dev_db0.DbNow) | null, Date>> & Record<"lastWebhookAt", _fragno_dev_db_schema0.Column<"timestamp", (Date | _fragno_dev_db0.DbNow) | null, Date | null>>, Record<string, _fragno_dev_db_schema0.AnyRelation>, Record<string, _fragno_dev_db_schema0.Index<_fragno_dev_db_schema0.AnyColumn[], readonly string[]>> & Record<"idx_installation_account_login", _fragno_dev_db_schema0.Index<readonly [_fragno_dev_db_schema0.Column<"string", string, string>] & _fragno_dev_db_schema0.AnyColumn[], readonly ["accountLogin"]>> & Record<"idx_installation_status", _fragno_dev_db_schema0.Index<readonly [_fragno_dev_db_schema0.Column<"string", string, string>] & _fragno_dev_db_schema0.AnyColumn[], readonly ["status"]>> & Record<"uniq_installation_id", _fragno_dev_db_schema0.Index<readonly [_fragno_dev_db_schema0.IdColumn<"varchar(128)", string | _fragno_dev_db_schema0.FragnoId | null, _fragno_dev_db_schema0.FragnoId>] & _fragno_dev_db_schema0.AnyColumn[], readonly ["id"]>>>;
|
|
93
|
+
installation_repo: _fragno_dev_db_schema0.Table<Record<"id", _fragno_dev_db_schema0.IdColumn<"varchar(128)", string | _fragno_dev_db_schema0.FragnoId | null, _fragno_dev_db_schema0.FragnoId>> & Record<"installationId", _fragno_dev_db_schema0.Column<"bigint", string | bigint | _fragno_dev_db_schema0.FragnoId | _fragno_dev_db_schema0.FragnoReference, _fragno_dev_db_schema0.FragnoReference>> & Record<"ownerLogin", _fragno_dev_db_schema0.Column<"string", string, string>> & Record<"name", _fragno_dev_db_schema0.Column<"string", string, string>> & Record<"fullName", _fragno_dev_db_schema0.Column<"string", string, string>> & Record<"isPrivate", _fragno_dev_db_schema0.Column<"bool", boolean, boolean>> & Record<"isFork", _fragno_dev_db_schema0.Column<"bool", boolean | null, boolean | null>> & Record<"defaultBranch", _fragno_dev_db_schema0.Column<"string", string | null, string | null>> & Record<"removedAt", _fragno_dev_db_schema0.Column<"timestamp", (Date | _fragno_dev_db0.DbNow) | null, Date | null>> & Record<"updatedAt", _fragno_dev_db_schema0.Column<"timestamp", (Date | _fragno_dev_db0.DbNow) | null, Date>>, Record<string, _fragno_dev_db_schema0.AnyRelation> & Record<"installation", _fragno_dev_db_schema0.Relation<"one", _fragno_dev_db_schema0.Table<Record<"id", _fragno_dev_db_schema0.IdColumn<"varchar(128)", string | _fragno_dev_db_schema0.FragnoId | null, _fragno_dev_db_schema0.FragnoId>> & Record<"accountId", _fragno_dev_db_schema0.Column<"string", string, string>> & Record<"accountLogin", _fragno_dev_db_schema0.Column<"string", string, string>> & Record<"accountType", _fragno_dev_db_schema0.Column<"string", string, string>> & Record<"status", _fragno_dev_db_schema0.Column<"string", string, string>> & Record<"permissions", _fragno_dev_db_schema0.Column<"json", unknown, unknown>> & Record<"events", _fragno_dev_db_schema0.Column<"json", unknown, unknown>> & Record<"createdAt", _fragno_dev_db_schema0.Column<"timestamp", (Date | _fragno_dev_db0.DbNow) | null, Date>> & Record<"updatedAt", _fragno_dev_db_schema0.Column<"timestamp", (Date | _fragno_dev_db0.DbNow) | null, Date>> & Record<"lastWebhookAt", _fragno_dev_db_schema0.Column<"timestamp", (Date | _fragno_dev_db0.DbNow) | null, Date | null>>, Record<string, _fragno_dev_db_schema0.AnyRelation>, Record<string, _fragno_dev_db_schema0.Index<_fragno_dev_db_schema0.AnyColumn[], readonly string[]>> & Record<"idx_installation_account_login", _fragno_dev_db_schema0.Index<readonly [_fragno_dev_db_schema0.Column<"string", string, string>] & _fragno_dev_db_schema0.AnyColumn[], readonly ["accountLogin"]>> & Record<"idx_installation_status", _fragno_dev_db_schema0.Index<readonly [_fragno_dev_db_schema0.Column<"string", string, string>] & _fragno_dev_db_schema0.AnyColumn[], readonly ["status"]>> & Record<"uniq_installation_id", _fragno_dev_db_schema0.Index<readonly [_fragno_dev_db_schema0.IdColumn<"varchar(128)", string | _fragno_dev_db_schema0.FragnoId | null, _fragno_dev_db_schema0.FragnoId>] & _fragno_dev_db_schema0.AnyColumn[], readonly ["id"]>>>>> & Record<"links", _fragno_dev_db_schema0.Relation<"many", _fragno_dev_db_schema0.Table<Record<"id", _fragno_dev_db_schema0.IdColumn<"varchar(128)", string | _fragno_dev_db_schema0.FragnoId | null, _fragno_dev_db_schema0.FragnoId>> & Record<"repoId", _fragno_dev_db_schema0.Column<"bigint", string | bigint | _fragno_dev_db_schema0.FragnoId | _fragno_dev_db_schema0.FragnoReference, _fragno_dev_db_schema0.FragnoReference>> & Record<"linkKey", _fragno_dev_db_schema0.Column<"string", string, string>> & Record<"linkedAt", _fragno_dev_db_schema0.Column<"timestamp", (Date | _fragno_dev_db0.DbNow) | null, Date>>, Record<string, _fragno_dev_db_schema0.AnyRelation>, Record<string, _fragno_dev_db_schema0.Index<_fragno_dev_db_schema0.AnyColumn[], readonly string[]>> & Record<"uniq_repo_link_repo_id_link_key", _fragno_dev_db_schema0.Index<readonly [_fragno_dev_db_schema0.Column<"bigint", string | bigint | _fragno_dev_db_schema0.FragnoId | _fragno_dev_db_schema0.FragnoReference, _fragno_dev_db_schema0.FragnoReference>, _fragno_dev_db_schema0.Column<"string", string, string>] & _fragno_dev_db_schema0.AnyColumn[], readonly ["repoId", "linkKey"]>>>>>, Record<string, _fragno_dev_db_schema0.Index<_fragno_dev_db_schema0.AnyColumn[], readonly string[]>> & Record<"idx_installation_repo_installation", _fragno_dev_db_schema0.Index<readonly [_fragno_dev_db_schema0.Column<"bigint", string | bigint | _fragno_dev_db_schema0.FragnoId | _fragno_dev_db_schema0.FragnoReference, _fragno_dev_db_schema0.FragnoReference>] & _fragno_dev_db_schema0.AnyColumn[], readonly ["installationId"]>> & Record<"idx_installation_repo_full_name", _fragno_dev_db_schema0.Index<readonly [_fragno_dev_db_schema0.Column<"string", string, string>] & _fragno_dev_db_schema0.AnyColumn[], readonly ["fullName"]>>>;
|
|
94
|
+
repo_link: _fragno_dev_db_schema0.Table<Record<"id", _fragno_dev_db_schema0.IdColumn<"varchar(128)", string | _fragno_dev_db_schema0.FragnoId | null, _fragno_dev_db_schema0.FragnoId>> & Record<"repoId", _fragno_dev_db_schema0.Column<"bigint", string | bigint | _fragno_dev_db_schema0.FragnoId | _fragno_dev_db_schema0.FragnoReference, _fragno_dev_db_schema0.FragnoReference>> & Record<"linkKey", _fragno_dev_db_schema0.Column<"string", string, string>> & Record<"linkedAt", _fragno_dev_db_schema0.Column<"timestamp", (Date | _fragno_dev_db0.DbNow) | null, Date>>, Record<string, _fragno_dev_db_schema0.AnyRelation> & Record<"repo", _fragno_dev_db_schema0.Relation<"one", _fragno_dev_db_schema0.Table<Record<"id", _fragno_dev_db_schema0.IdColumn<"varchar(128)", string | _fragno_dev_db_schema0.FragnoId | null, _fragno_dev_db_schema0.FragnoId>> & Record<"installationId", _fragno_dev_db_schema0.Column<"bigint", string | bigint | _fragno_dev_db_schema0.FragnoId | _fragno_dev_db_schema0.FragnoReference, _fragno_dev_db_schema0.FragnoReference>> & Record<"ownerLogin", _fragno_dev_db_schema0.Column<"string", string, string>> & Record<"name", _fragno_dev_db_schema0.Column<"string", string, string>> & Record<"fullName", _fragno_dev_db_schema0.Column<"string", string, string>> & Record<"isPrivate", _fragno_dev_db_schema0.Column<"bool", boolean, boolean>> & Record<"isFork", _fragno_dev_db_schema0.Column<"bool", boolean | null, boolean | null>> & Record<"defaultBranch", _fragno_dev_db_schema0.Column<"string", string | null, string | null>> & Record<"removedAt", _fragno_dev_db_schema0.Column<"timestamp", (Date | _fragno_dev_db0.DbNow) | null, Date | null>> & Record<"updatedAt", _fragno_dev_db_schema0.Column<"timestamp", (Date | _fragno_dev_db0.DbNow) | null, Date>>, Record<string, _fragno_dev_db_schema0.AnyRelation> & Record<"installation", _fragno_dev_db_schema0.Relation<"one", _fragno_dev_db_schema0.Table<Record<"id", _fragno_dev_db_schema0.IdColumn<"varchar(128)", string | _fragno_dev_db_schema0.FragnoId | null, _fragno_dev_db_schema0.FragnoId>> & Record<"accountId", _fragno_dev_db_schema0.Column<"string", string, string>> & Record<"accountLogin", _fragno_dev_db_schema0.Column<"string", string, string>> & Record<"accountType", _fragno_dev_db_schema0.Column<"string", string, string>> & Record<"status", _fragno_dev_db_schema0.Column<"string", string, string>> & Record<"permissions", _fragno_dev_db_schema0.Column<"json", unknown, unknown>> & Record<"events", _fragno_dev_db_schema0.Column<"json", unknown, unknown>> & Record<"createdAt", _fragno_dev_db_schema0.Column<"timestamp", (Date | _fragno_dev_db0.DbNow) | null, Date>> & Record<"updatedAt", _fragno_dev_db_schema0.Column<"timestamp", (Date | _fragno_dev_db0.DbNow) | null, Date>> & Record<"lastWebhookAt", _fragno_dev_db_schema0.Column<"timestamp", (Date | _fragno_dev_db0.DbNow) | null, Date | null>>, Record<string, _fragno_dev_db_schema0.AnyRelation>, Record<string, _fragno_dev_db_schema0.Index<_fragno_dev_db_schema0.AnyColumn[], readonly string[]>> & Record<"idx_installation_account_login", _fragno_dev_db_schema0.Index<readonly [_fragno_dev_db_schema0.Column<"string", string, string>] & _fragno_dev_db_schema0.AnyColumn[], readonly ["accountLogin"]>> & Record<"idx_installation_status", _fragno_dev_db_schema0.Index<readonly [_fragno_dev_db_schema0.Column<"string", string, string>] & _fragno_dev_db_schema0.AnyColumn[], readonly ["status"]>> & Record<"uniq_installation_id", _fragno_dev_db_schema0.Index<readonly [_fragno_dev_db_schema0.IdColumn<"varchar(128)", string | _fragno_dev_db_schema0.FragnoId | null, _fragno_dev_db_schema0.FragnoId>] & _fragno_dev_db_schema0.AnyColumn[], readonly ["id"]>>>>> & Record<"links", _fragno_dev_db_schema0.Relation<"many", _fragno_dev_db_schema0.Table<Record<"id", _fragno_dev_db_schema0.IdColumn<"varchar(128)", string | _fragno_dev_db_schema0.FragnoId | null, _fragno_dev_db_schema0.FragnoId>> & Record<"repoId", _fragno_dev_db_schema0.Column<"bigint", string | bigint | _fragno_dev_db_schema0.FragnoId | _fragno_dev_db_schema0.FragnoReference, _fragno_dev_db_schema0.FragnoReference>> & Record<"linkKey", _fragno_dev_db_schema0.Column<"string", string, string>> & Record<"linkedAt", _fragno_dev_db_schema0.Column<"timestamp", (Date | _fragno_dev_db0.DbNow) | null, Date>>, Record<string, _fragno_dev_db_schema0.AnyRelation>, Record<string, _fragno_dev_db_schema0.Index<_fragno_dev_db_schema0.AnyColumn[], readonly string[]>> & Record<"uniq_repo_link_repo_id_link_key", _fragno_dev_db_schema0.Index<readonly [_fragno_dev_db_schema0.Column<"bigint", string | bigint | _fragno_dev_db_schema0.FragnoId | _fragno_dev_db_schema0.FragnoReference, _fragno_dev_db_schema0.FragnoReference>, _fragno_dev_db_schema0.Column<"string", string, string>] & _fragno_dev_db_schema0.AnyColumn[], readonly ["repoId", "linkKey"]>>>>>, Record<string, _fragno_dev_db_schema0.Index<_fragno_dev_db_schema0.AnyColumn[], readonly string[]>> & Record<"idx_installation_repo_installation", _fragno_dev_db_schema0.Index<readonly [_fragno_dev_db_schema0.Column<"bigint", string | bigint | _fragno_dev_db_schema0.FragnoId | _fragno_dev_db_schema0.FragnoReference, _fragno_dev_db_schema0.FragnoReference>] & _fragno_dev_db_schema0.AnyColumn[], readonly ["installationId"]>> & Record<"idx_installation_repo_full_name", _fragno_dev_db_schema0.Index<readonly [_fragno_dev_db_schema0.Column<"string", string, string>] & _fragno_dev_db_schema0.AnyColumn[], readonly ["fullName"]>>>>>, Record<string, _fragno_dev_db_schema0.Index<_fragno_dev_db_schema0.AnyColumn[], readonly string[]>> & Record<"uniq_repo_link_repo_id_link_key", _fragno_dev_db_schema0.Index<readonly [_fragno_dev_db_schema0.Column<"bigint", string | bigint | _fragno_dev_db_schema0.FragnoId | _fragno_dev_db_schema0.FragnoReference, _fragno_dev_db_schema0.FragnoReference>, _fragno_dev_db_schema0.Column<"string", string, string>] & _fragno_dev_db_schema0.AnyColumn[], readonly ["repoId", "linkKey"]>>>;
|
|
95
|
+
}>>, {
|
|
96
|
+
app: GitHubAppInstance;
|
|
97
|
+
githubApiClient: GitHubApiClient;
|
|
98
|
+
}, {}, {}, {}, _fragno_dev_db0.DatabaseServiceContext<{
|
|
99
|
+
processWebhook: _fragno_dev_db0.HookFn<WebhookProcessingPayload>;
|
|
100
|
+
}>, _fragno_dev_db0.DatabaseRequestContext<{
|
|
101
|
+
processWebhook: _fragno_dev_db0.HookFn<WebhookProcessingPayload>;
|
|
102
|
+
}>, _fragno_dev_db_fragment_definition_builder0.DatabaseRequestStorage, []>;
|
|
103
|
+
//#endregion
|
|
104
|
+
//#region src/github/factory.d.ts
|
|
105
|
+
declare function createGitHubAppFragment(config: GitHubAppFragmentConfig, options: FragnoPublicConfigWithDatabase): _fragno_dev_core0.FragnoInstantiatedFragment<readonly [_fragno_dev_core0.FragnoRouteConfig<"POST", "/webhooks", _standard_schema_spec0.StandardSchemaV1<unknown, unknown> | undefined, _standard_schema_spec0.StandardSchemaV1<unknown, unknown> | undefined, "WEBHOOK_SIGNATURE_INVALID" | "WEBHOOK_DELIVERY_MISSING" | "WEBHOOK_PAYLOAD_INVALID", string, _fragno_dev_db0.DatabaseRequestContext<{
|
|
106
|
+
processWebhook: _fragno_dev_db0.HookFn<WebhookProcessingPayload>;
|
|
107
|
+
}>>, _fragno_dev_core0.FragnoRouteConfig<"GET", "/installations", _standard_schema_spec0.StandardSchemaV1<unknown, unknown> | undefined, zod.ZodArray<zod.ZodObject<{
|
|
108
|
+
id: zod.ZodString;
|
|
109
|
+
accountId: zod.ZodString;
|
|
110
|
+
accountLogin: zod.ZodString;
|
|
111
|
+
accountType: zod.ZodString;
|
|
112
|
+
status: zod.ZodString;
|
|
113
|
+
permissions: zod.ZodAny;
|
|
114
|
+
events: zod.ZodAny;
|
|
115
|
+
createdAt: zod.ZodDate;
|
|
116
|
+
updatedAt: zod.ZodDate;
|
|
117
|
+
lastWebhookAt: zod.ZodNullable<zod.ZodDate>;
|
|
118
|
+
}, zod_v4_core0.$strip>>, "INVALID_STATUS", "status", _fragno_dev_db0.DatabaseRequestContext<{
|
|
119
|
+
processWebhook: _fragno_dev_db0.HookFn<WebhookProcessingPayload>;
|
|
120
|
+
}>>, _fragno_dev_core0.FragnoRouteConfig<"GET", "/installations/:installationId/repos", _standard_schema_spec0.StandardSchemaV1<unknown, unknown> | undefined, zod.ZodArray<zod.ZodObject<{
|
|
121
|
+
id: zod.ZodString;
|
|
122
|
+
installationId: zod.ZodString;
|
|
123
|
+
ownerLogin: zod.ZodString;
|
|
124
|
+
name: zod.ZodString;
|
|
125
|
+
fullName: zod.ZodString;
|
|
126
|
+
isPrivate: zod.ZodBoolean;
|
|
127
|
+
isFork: zod.ZodNullable<zod.ZodBoolean>;
|
|
128
|
+
defaultBranch: zod.ZodNullable<zod.ZodString>;
|
|
129
|
+
removedAt: zod.ZodNullable<zod.ZodDate>;
|
|
130
|
+
updatedAt: zod.ZodDate;
|
|
131
|
+
linkKeys: zod.ZodArray<zod.ZodString>;
|
|
132
|
+
}, zod_v4_core0.$strip>>, "INSTALLATION_NOT_FOUND", "linkKey" | "linkedOnly", _fragno_dev_db0.DatabaseRequestContext<{
|
|
133
|
+
processWebhook: _fragno_dev_db0.HookFn<WebhookProcessingPayload>;
|
|
134
|
+
}>>, _fragno_dev_core0.FragnoRouteConfig<"GET", "/repositories/linked", _standard_schema_spec0.StandardSchemaV1<unknown, unknown> | undefined, zod.ZodArray<zod.ZodObject<{
|
|
135
|
+
id: zod.ZodString;
|
|
136
|
+
installationId: zod.ZodString;
|
|
137
|
+
ownerLogin: zod.ZodString;
|
|
138
|
+
name: zod.ZodString;
|
|
139
|
+
fullName: zod.ZodString;
|
|
140
|
+
isPrivate: zod.ZodBoolean;
|
|
141
|
+
isFork: zod.ZodNullable<zod.ZodBoolean>;
|
|
142
|
+
defaultBranch: zod.ZodNullable<zod.ZodString>;
|
|
143
|
+
removedAt: zod.ZodNullable<zod.ZodDate>;
|
|
144
|
+
updatedAt: zod.ZodDate;
|
|
145
|
+
linkKeys: zod.ZodArray<zod.ZodString>;
|
|
146
|
+
}, zod_v4_core0.$strip>>, string, "linkKey", _fragno_dev_db0.DatabaseRequestContext<{
|
|
147
|
+
processWebhook: _fragno_dev_db0.HookFn<WebhookProcessingPayload>;
|
|
148
|
+
}>>, _fragno_dev_core0.FragnoRouteConfig<"POST", "/repositories/link", zod.ZodObject<{
|
|
149
|
+
installationId: zod.ZodString;
|
|
150
|
+
repoId: zod.ZodString;
|
|
151
|
+
linkKey: zod.ZodOptional<zod.ZodString>;
|
|
152
|
+
}, zod_v4_core0.$strip>, zod.ZodObject<{
|
|
153
|
+
link: zod.ZodObject<{
|
|
154
|
+
id: zod.ZodString;
|
|
155
|
+
repoId: zod.ZodString;
|
|
156
|
+
linkKey: zod.ZodString;
|
|
157
|
+
linkedAt: zod.ZodDate;
|
|
158
|
+
}, zod_v4_core0.$strip>;
|
|
159
|
+
repo: zod.ZodObject<{
|
|
160
|
+
id: zod.ZodString;
|
|
161
|
+
installationId: zod.ZodString;
|
|
162
|
+
ownerLogin: zod.ZodString;
|
|
163
|
+
name: zod.ZodString;
|
|
164
|
+
fullName: zod.ZodString;
|
|
165
|
+
isPrivate: zod.ZodBoolean;
|
|
166
|
+
isFork: zod.ZodNullable<zod.ZodBoolean>;
|
|
167
|
+
defaultBranch: zod.ZodNullable<zod.ZodString>;
|
|
168
|
+
removedAt: zod.ZodNullable<zod.ZodDate>;
|
|
169
|
+
updatedAt: zod.ZodDate;
|
|
170
|
+
}, zod_v4_core0.$strip>;
|
|
171
|
+
}, zod_v4_core0.$strip>, "INSTALLATION_NOT_FOUND" | "INSTALLATION_INACTIVE" | "REPO_NOT_FOUND" | "REPO_REMOVED", string, _fragno_dev_db0.DatabaseRequestContext<{
|
|
172
|
+
processWebhook: _fragno_dev_db0.HookFn<WebhookProcessingPayload>;
|
|
173
|
+
}>>, _fragno_dev_core0.FragnoRouteConfig<"POST", "/repositories/unlink", zod.ZodObject<{
|
|
174
|
+
repoId: zod.ZodString;
|
|
175
|
+
linkKey: zod.ZodOptional<zod.ZodString>;
|
|
176
|
+
}, zod_v4_core0.$strip>, zod.ZodObject<{
|
|
177
|
+
ok: zod.ZodLiteral<true>;
|
|
178
|
+
}, zod_v4_core0.$strip>, "INSTALLATION_NOT_FOUND" | "INSTALLATION_INACTIVE" | "REPO_NOT_FOUND" | "LINK_NOT_FOUND", string, _fragno_dev_db0.DatabaseRequestContext<{
|
|
179
|
+
processWebhook: _fragno_dev_db0.HookFn<WebhookProcessingPayload>;
|
|
180
|
+
}>>, _fragno_dev_core0.FragnoRouteConfig<"GET", "/repositories/:owner/:repo/pulls", _standard_schema_spec0.StandardSchemaV1<unknown, unknown> | undefined, zod.ZodObject<{
|
|
181
|
+
pulls: zod.ZodArray<zod.ZodAny>;
|
|
182
|
+
pageInfo: zod.ZodObject<{
|
|
183
|
+
page: zod.ZodNumber;
|
|
184
|
+
perPage: zod.ZodNumber;
|
|
185
|
+
}, zod_v4_core0.$strip>;
|
|
186
|
+
}, zod_v4_core0.$strip>, "INSTALLATION_NOT_FOUND" | "INSTALLATION_INACTIVE" | "REPO_NOT_FOUND" | "REPO_REMOVED" | "INVALID_STATE" | "INVALID_PER_PAGE" | "INVALID_PAGE" | "REPO_NOT_LINKED" | "GITHUB_API_ERROR", "state" | "perPage" | "page", _fragno_dev_db0.DatabaseRequestContext<{
|
|
187
|
+
processWebhook: _fragno_dev_db0.HookFn<WebhookProcessingPayload>;
|
|
188
|
+
}>>, _fragno_dev_core0.FragnoRouteConfig<"POST", "/repositories/:owner/:repo/pulls/:number/reviews", zod.ZodObject<{
|
|
189
|
+
event: zod.ZodOptional<zod.ZodEnum<{
|
|
190
|
+
APPROVE: "APPROVE";
|
|
191
|
+
REQUEST_CHANGES: "REQUEST_CHANGES";
|
|
192
|
+
COMMENT: "COMMENT";
|
|
193
|
+
}>>;
|
|
194
|
+
body: zod.ZodOptional<zod.ZodString>;
|
|
195
|
+
comments: zod.ZodOptional<zod.ZodArray<zod.ZodAny>>;
|
|
196
|
+
commitId: zod.ZodOptional<zod.ZodString>;
|
|
197
|
+
}, zod_v4_core0.$strip>, zod.ZodObject<{
|
|
198
|
+
review: zod.ZodAny;
|
|
199
|
+
}, zod_v4_core0.$strip>, "INSTALLATION_NOT_FOUND" | "INSTALLATION_INACTIVE" | "REPO_NOT_FOUND" | "REPO_REMOVED" | "REPO_NOT_LINKED" | "GITHUB_API_ERROR" | "INVALID_PULL_NUMBER", string, _fragno_dev_db0.DatabaseRequestContext<{
|
|
200
|
+
processWebhook: _fragno_dev_db0.HookFn<WebhookProcessingPayload>;
|
|
201
|
+
}>>, _fragno_dev_core0.FragnoRouteConfig<"POST", "/installations/:installationId/sync", _standard_schema_spec0.StandardSchemaV1<unknown, unknown> | undefined, zod.ZodObject<{
|
|
202
|
+
added: zod.ZodNumber;
|
|
203
|
+
removed: zod.ZodNumber;
|
|
204
|
+
updated: zod.ZodNumber;
|
|
205
|
+
}, zod_v4_core0.$strip>, "INSTALLATION_NOT_FOUND" | "GITHUB_API_ERROR", string, _fragno_dev_db0.DatabaseRequestContext<{
|
|
206
|
+
processWebhook: _fragno_dev_db0.HookFn<WebhookProcessingPayload>;
|
|
207
|
+
}>>], {
|
|
208
|
+
githubApiClient: GitHubApiClient;
|
|
209
|
+
} & _fragno_dev_db0.ImplicitDatabaseDependencies<_fragno_dev_db_schema0.Schema<{
|
|
210
|
+
installation: _fragno_dev_db_schema0.Table<Record<"id", _fragno_dev_db_schema0.IdColumn<"varchar(128)", string | _fragno_dev_db_schema0.FragnoId | null, _fragno_dev_db_schema0.FragnoId>> & Record<"accountId", _fragno_dev_db_schema0.Column<"string", string, string>> & Record<"accountLogin", _fragno_dev_db_schema0.Column<"string", string, string>> & Record<"accountType", _fragno_dev_db_schema0.Column<"string", string, string>> & Record<"status", _fragno_dev_db_schema0.Column<"string", string, string>> & Record<"permissions", _fragno_dev_db_schema0.Column<"json", unknown, unknown>> & Record<"events", _fragno_dev_db_schema0.Column<"json", unknown, unknown>> & Record<"createdAt", _fragno_dev_db_schema0.Column<"timestamp", (Date | _fragno_dev_db0.DbNow) | null, Date>> & Record<"updatedAt", _fragno_dev_db_schema0.Column<"timestamp", (Date | _fragno_dev_db0.DbNow) | null, Date>> & Record<"lastWebhookAt", _fragno_dev_db_schema0.Column<"timestamp", (Date | _fragno_dev_db0.DbNow) | null, Date | null>>, Record<string, _fragno_dev_db_schema0.AnyRelation>, Record<string, _fragno_dev_db_schema0.Index<_fragno_dev_db_schema0.AnyColumn[], readonly string[]>> & Record<"idx_installation_account_login", _fragno_dev_db_schema0.Index<readonly [_fragno_dev_db_schema0.Column<"string", string, string>] & _fragno_dev_db_schema0.AnyColumn[], readonly ["accountLogin"]>> & Record<"idx_installation_status", _fragno_dev_db_schema0.Index<readonly [_fragno_dev_db_schema0.Column<"string", string, string>] & _fragno_dev_db_schema0.AnyColumn[], readonly ["status"]>> & Record<"uniq_installation_id", _fragno_dev_db_schema0.Index<readonly [_fragno_dev_db_schema0.IdColumn<"varchar(128)", string | _fragno_dev_db_schema0.FragnoId | null, _fragno_dev_db_schema0.FragnoId>] & _fragno_dev_db_schema0.AnyColumn[], readonly ["id"]>>>;
|
|
211
|
+
installation_repo: _fragno_dev_db_schema0.Table<Record<"id", _fragno_dev_db_schema0.IdColumn<"varchar(128)", string | _fragno_dev_db_schema0.FragnoId | null, _fragno_dev_db_schema0.FragnoId>> & Record<"installationId", _fragno_dev_db_schema0.Column<"bigint", string | bigint | _fragno_dev_db_schema0.FragnoId | _fragno_dev_db_schema0.FragnoReference, _fragno_dev_db_schema0.FragnoReference>> & Record<"ownerLogin", _fragno_dev_db_schema0.Column<"string", string, string>> & Record<"name", _fragno_dev_db_schema0.Column<"string", string, string>> & Record<"fullName", _fragno_dev_db_schema0.Column<"string", string, string>> & Record<"isPrivate", _fragno_dev_db_schema0.Column<"bool", boolean, boolean>> & Record<"isFork", _fragno_dev_db_schema0.Column<"bool", boolean | null, boolean | null>> & Record<"defaultBranch", _fragno_dev_db_schema0.Column<"string", string | null, string | null>> & Record<"removedAt", _fragno_dev_db_schema0.Column<"timestamp", (Date | _fragno_dev_db0.DbNow) | null, Date | null>> & Record<"updatedAt", _fragno_dev_db_schema0.Column<"timestamp", (Date | _fragno_dev_db0.DbNow) | null, Date>>, Record<string, _fragno_dev_db_schema0.AnyRelation> & Record<"installation", _fragno_dev_db_schema0.Relation<"one", _fragno_dev_db_schema0.Table<Record<"id", _fragno_dev_db_schema0.IdColumn<"varchar(128)", string | _fragno_dev_db_schema0.FragnoId | null, _fragno_dev_db_schema0.FragnoId>> & Record<"accountId", _fragno_dev_db_schema0.Column<"string", string, string>> & Record<"accountLogin", _fragno_dev_db_schema0.Column<"string", string, string>> & Record<"accountType", _fragno_dev_db_schema0.Column<"string", string, string>> & Record<"status", _fragno_dev_db_schema0.Column<"string", string, string>> & Record<"permissions", _fragno_dev_db_schema0.Column<"json", unknown, unknown>> & Record<"events", _fragno_dev_db_schema0.Column<"json", unknown, unknown>> & Record<"createdAt", _fragno_dev_db_schema0.Column<"timestamp", (Date | _fragno_dev_db0.DbNow) | null, Date>> & Record<"updatedAt", _fragno_dev_db_schema0.Column<"timestamp", (Date | _fragno_dev_db0.DbNow) | null, Date>> & Record<"lastWebhookAt", _fragno_dev_db_schema0.Column<"timestamp", (Date | _fragno_dev_db0.DbNow) | null, Date | null>>, Record<string, _fragno_dev_db_schema0.AnyRelation>, Record<string, _fragno_dev_db_schema0.Index<_fragno_dev_db_schema0.AnyColumn[], readonly string[]>> & Record<"idx_installation_account_login", _fragno_dev_db_schema0.Index<readonly [_fragno_dev_db_schema0.Column<"string", string, string>] & _fragno_dev_db_schema0.AnyColumn[], readonly ["accountLogin"]>> & Record<"idx_installation_status", _fragno_dev_db_schema0.Index<readonly [_fragno_dev_db_schema0.Column<"string", string, string>] & _fragno_dev_db_schema0.AnyColumn[], readonly ["status"]>> & Record<"uniq_installation_id", _fragno_dev_db_schema0.Index<readonly [_fragno_dev_db_schema0.IdColumn<"varchar(128)", string | _fragno_dev_db_schema0.FragnoId | null, _fragno_dev_db_schema0.FragnoId>] & _fragno_dev_db_schema0.AnyColumn[], readonly ["id"]>>>>> & Record<"links", _fragno_dev_db_schema0.Relation<"many", _fragno_dev_db_schema0.Table<Record<"id", _fragno_dev_db_schema0.IdColumn<"varchar(128)", string | _fragno_dev_db_schema0.FragnoId | null, _fragno_dev_db_schema0.FragnoId>> & Record<"repoId", _fragno_dev_db_schema0.Column<"bigint", string | bigint | _fragno_dev_db_schema0.FragnoId | _fragno_dev_db_schema0.FragnoReference, _fragno_dev_db_schema0.FragnoReference>> & Record<"linkKey", _fragno_dev_db_schema0.Column<"string", string, string>> & Record<"linkedAt", _fragno_dev_db_schema0.Column<"timestamp", (Date | _fragno_dev_db0.DbNow) | null, Date>>, Record<string, _fragno_dev_db_schema0.AnyRelation>, Record<string, _fragno_dev_db_schema0.Index<_fragno_dev_db_schema0.AnyColumn[], readonly string[]>> & Record<"uniq_repo_link_repo_id_link_key", _fragno_dev_db_schema0.Index<readonly [_fragno_dev_db_schema0.Column<"bigint", string | bigint | _fragno_dev_db_schema0.FragnoId | _fragno_dev_db_schema0.FragnoReference, _fragno_dev_db_schema0.FragnoReference>, _fragno_dev_db_schema0.Column<"string", string, string>] & _fragno_dev_db_schema0.AnyColumn[], readonly ["repoId", "linkKey"]>>>>>, Record<string, _fragno_dev_db_schema0.Index<_fragno_dev_db_schema0.AnyColumn[], readonly string[]>> & Record<"idx_installation_repo_installation", _fragno_dev_db_schema0.Index<readonly [_fragno_dev_db_schema0.Column<"bigint", string | bigint | _fragno_dev_db_schema0.FragnoId | _fragno_dev_db_schema0.FragnoReference, _fragno_dev_db_schema0.FragnoReference>] & _fragno_dev_db_schema0.AnyColumn[], readonly ["installationId"]>> & Record<"idx_installation_repo_full_name", _fragno_dev_db_schema0.Index<readonly [_fragno_dev_db_schema0.Column<"string", string, string>] & _fragno_dev_db_schema0.AnyColumn[], readonly ["fullName"]>>>;
|
|
212
|
+
repo_link: _fragno_dev_db_schema0.Table<Record<"id", _fragno_dev_db_schema0.IdColumn<"varchar(128)", string | _fragno_dev_db_schema0.FragnoId | null, _fragno_dev_db_schema0.FragnoId>> & Record<"repoId", _fragno_dev_db_schema0.Column<"bigint", string | bigint | _fragno_dev_db_schema0.FragnoId | _fragno_dev_db_schema0.FragnoReference, _fragno_dev_db_schema0.FragnoReference>> & Record<"linkKey", _fragno_dev_db_schema0.Column<"string", string, string>> & Record<"linkedAt", _fragno_dev_db_schema0.Column<"timestamp", (Date | _fragno_dev_db0.DbNow) | null, Date>>, Record<string, _fragno_dev_db_schema0.AnyRelation> & Record<"repo", _fragno_dev_db_schema0.Relation<"one", _fragno_dev_db_schema0.Table<Record<"id", _fragno_dev_db_schema0.IdColumn<"varchar(128)", string | _fragno_dev_db_schema0.FragnoId | null, _fragno_dev_db_schema0.FragnoId>> & Record<"installationId", _fragno_dev_db_schema0.Column<"bigint", string | bigint | _fragno_dev_db_schema0.FragnoId | _fragno_dev_db_schema0.FragnoReference, _fragno_dev_db_schema0.FragnoReference>> & Record<"ownerLogin", _fragno_dev_db_schema0.Column<"string", string, string>> & Record<"name", _fragno_dev_db_schema0.Column<"string", string, string>> & Record<"fullName", _fragno_dev_db_schema0.Column<"string", string, string>> & Record<"isPrivate", _fragno_dev_db_schema0.Column<"bool", boolean, boolean>> & Record<"isFork", _fragno_dev_db_schema0.Column<"bool", boolean | null, boolean | null>> & Record<"defaultBranch", _fragno_dev_db_schema0.Column<"string", string | null, string | null>> & Record<"removedAt", _fragno_dev_db_schema0.Column<"timestamp", (Date | _fragno_dev_db0.DbNow) | null, Date | null>> & Record<"updatedAt", _fragno_dev_db_schema0.Column<"timestamp", (Date | _fragno_dev_db0.DbNow) | null, Date>>, Record<string, _fragno_dev_db_schema0.AnyRelation> & Record<"installation", _fragno_dev_db_schema0.Relation<"one", _fragno_dev_db_schema0.Table<Record<"id", _fragno_dev_db_schema0.IdColumn<"varchar(128)", string | _fragno_dev_db_schema0.FragnoId | null, _fragno_dev_db_schema0.FragnoId>> & Record<"accountId", _fragno_dev_db_schema0.Column<"string", string, string>> & Record<"accountLogin", _fragno_dev_db_schema0.Column<"string", string, string>> & Record<"accountType", _fragno_dev_db_schema0.Column<"string", string, string>> & Record<"status", _fragno_dev_db_schema0.Column<"string", string, string>> & Record<"permissions", _fragno_dev_db_schema0.Column<"json", unknown, unknown>> & Record<"events", _fragno_dev_db_schema0.Column<"json", unknown, unknown>> & Record<"createdAt", _fragno_dev_db_schema0.Column<"timestamp", (Date | _fragno_dev_db0.DbNow) | null, Date>> & Record<"updatedAt", _fragno_dev_db_schema0.Column<"timestamp", (Date | _fragno_dev_db0.DbNow) | null, Date>> & Record<"lastWebhookAt", _fragno_dev_db_schema0.Column<"timestamp", (Date | _fragno_dev_db0.DbNow) | null, Date | null>>, Record<string, _fragno_dev_db_schema0.AnyRelation>, Record<string, _fragno_dev_db_schema0.Index<_fragno_dev_db_schema0.AnyColumn[], readonly string[]>> & Record<"idx_installation_account_login", _fragno_dev_db_schema0.Index<readonly [_fragno_dev_db_schema0.Column<"string", string, string>] & _fragno_dev_db_schema0.AnyColumn[], readonly ["accountLogin"]>> & Record<"idx_installation_status", _fragno_dev_db_schema0.Index<readonly [_fragno_dev_db_schema0.Column<"string", string, string>] & _fragno_dev_db_schema0.AnyColumn[], readonly ["status"]>> & Record<"uniq_installation_id", _fragno_dev_db_schema0.Index<readonly [_fragno_dev_db_schema0.IdColumn<"varchar(128)", string | _fragno_dev_db_schema0.FragnoId | null, _fragno_dev_db_schema0.FragnoId>] & _fragno_dev_db_schema0.AnyColumn[], readonly ["id"]>>>>> & Record<"links", _fragno_dev_db_schema0.Relation<"many", _fragno_dev_db_schema0.Table<Record<"id", _fragno_dev_db_schema0.IdColumn<"varchar(128)", string | _fragno_dev_db_schema0.FragnoId | null, _fragno_dev_db_schema0.FragnoId>> & Record<"repoId", _fragno_dev_db_schema0.Column<"bigint", string | bigint | _fragno_dev_db_schema0.FragnoId | _fragno_dev_db_schema0.FragnoReference, _fragno_dev_db_schema0.FragnoReference>> & Record<"linkKey", _fragno_dev_db_schema0.Column<"string", string, string>> & Record<"linkedAt", _fragno_dev_db_schema0.Column<"timestamp", (Date | _fragno_dev_db0.DbNow) | null, Date>>, Record<string, _fragno_dev_db_schema0.AnyRelation>, Record<string, _fragno_dev_db_schema0.Index<_fragno_dev_db_schema0.AnyColumn[], readonly string[]>> & Record<"uniq_repo_link_repo_id_link_key", _fragno_dev_db_schema0.Index<readonly [_fragno_dev_db_schema0.Column<"bigint", string | bigint | _fragno_dev_db_schema0.FragnoId | _fragno_dev_db_schema0.FragnoReference, _fragno_dev_db_schema0.FragnoReference>, _fragno_dev_db_schema0.Column<"string", string, string>] & _fragno_dev_db_schema0.AnyColumn[], readonly ["repoId", "linkKey"]>>>>>, Record<string, _fragno_dev_db_schema0.Index<_fragno_dev_db_schema0.AnyColumn[], readonly string[]>> & Record<"idx_installation_repo_installation", _fragno_dev_db_schema0.Index<readonly [_fragno_dev_db_schema0.Column<"bigint", string | bigint | _fragno_dev_db_schema0.FragnoId | _fragno_dev_db_schema0.FragnoReference, _fragno_dev_db_schema0.FragnoReference>] & _fragno_dev_db_schema0.AnyColumn[], readonly ["installationId"]>> & Record<"idx_installation_repo_full_name", _fragno_dev_db_schema0.Index<readonly [_fragno_dev_db_schema0.Column<"string", string, string>] & _fragno_dev_db_schema0.AnyColumn[], readonly ["fullName"]>>>>>, Record<string, _fragno_dev_db_schema0.Index<_fragno_dev_db_schema0.AnyColumn[], readonly string[]>> & Record<"uniq_repo_link_repo_id_link_key", _fragno_dev_db_schema0.Index<readonly [_fragno_dev_db_schema0.Column<"bigint", string | bigint | _fragno_dev_db_schema0.FragnoId | _fragno_dev_db_schema0.FragnoReference, _fragno_dev_db_schema0.FragnoReference>, _fragno_dev_db_schema0.Column<"string", string, string>] & _fragno_dev_db_schema0.AnyColumn[], readonly ["repoId", "linkKey"]>>>;
|
|
213
|
+
}>>, _fragno_dev_core0.BoundServices<{
|
|
214
|
+
app: GitHubAppInstance;
|
|
215
|
+
githubApiClient: GitHubApiClient;
|
|
216
|
+
}>, _fragno_dev_db0.DatabaseServiceContext<{
|
|
217
|
+
processWebhook: _fragno_dev_db0.HookFn<WebhookProcessingPayload>;
|
|
218
|
+
}>, _fragno_dev_db0.DatabaseRequestContext<{
|
|
219
|
+
processWebhook: _fragno_dev_db0.HookFn<WebhookProcessingPayload>;
|
|
220
|
+
}>, _fragno_dev_db_fragment_definition_builder0.DatabaseRequestStorage, FragnoPublicConfigWithDatabase>;
|
|
221
|
+
declare function getGitHubApiClientFromFragment(fragment: {
|
|
222
|
+
services: GitHubAppFragmentServices;
|
|
223
|
+
}): GitHubApiClient;
|
|
224
|
+
declare function getGitHubAppFromFragment(fragment: {
|
|
225
|
+
services: GitHubAppFragmentServices;
|
|
226
|
+
}): GitHubAppInstance;
|
|
227
|
+
//#endregion
|
|
228
|
+
//#region src/routes.d.ts
|
|
229
|
+
declare const githubAppRoutesFactory: _fragno_dev_core0.RouteFactory<GitHubAppFragmentConfig, {
|
|
230
|
+
githubApiClient: GitHubApiClient;
|
|
231
|
+
} & _fragno_dev_db0.ImplicitDatabaseDependencies<_fragno_dev_db_schema0.Schema<{
|
|
232
|
+
installation: _fragno_dev_db_schema0.Table<Record<"id", _fragno_dev_db_schema0.IdColumn<"varchar(128)", string | FragnoId | null, FragnoId>> & Record<"accountId", _fragno_dev_db_schema0.Column<"string", string, string>> & Record<"accountLogin", _fragno_dev_db_schema0.Column<"string", string, string>> & Record<"accountType", _fragno_dev_db_schema0.Column<"string", string, string>> & Record<"status", _fragno_dev_db_schema0.Column<"string", string, string>> & Record<"permissions", _fragno_dev_db_schema0.Column<"json", unknown, unknown>> & Record<"events", _fragno_dev_db_schema0.Column<"json", unknown, unknown>> & Record<"createdAt", _fragno_dev_db_schema0.Column<"timestamp", (Date | _fragno_dev_db0.DbNow) | null, Date>> & Record<"updatedAt", _fragno_dev_db_schema0.Column<"timestamp", (Date | _fragno_dev_db0.DbNow) | null, Date>> & Record<"lastWebhookAt", _fragno_dev_db_schema0.Column<"timestamp", (Date | _fragno_dev_db0.DbNow) | null, Date | null>>, Record<string, _fragno_dev_db_schema0.AnyRelation>, Record<string, _fragno_dev_db_schema0.Index<_fragno_dev_db_schema0.AnyColumn[], readonly string[]>> & Record<"idx_installation_account_login", _fragno_dev_db_schema0.Index<readonly [_fragno_dev_db_schema0.Column<"string", string, string>] & _fragno_dev_db_schema0.AnyColumn[], readonly ["accountLogin"]>> & Record<"idx_installation_status", _fragno_dev_db_schema0.Index<readonly [_fragno_dev_db_schema0.Column<"string", string, string>] & _fragno_dev_db_schema0.AnyColumn[], readonly ["status"]>> & Record<"uniq_installation_id", _fragno_dev_db_schema0.Index<readonly [_fragno_dev_db_schema0.IdColumn<"varchar(128)", string | FragnoId | null, FragnoId>] & _fragno_dev_db_schema0.AnyColumn[], readonly ["id"]>>>;
|
|
233
|
+
installation_repo: _fragno_dev_db_schema0.Table<Record<"id", _fragno_dev_db_schema0.IdColumn<"varchar(128)", string | FragnoId | null, FragnoId>> & Record<"installationId", _fragno_dev_db_schema0.Column<"bigint", string | bigint | FragnoId | _fragno_dev_db_schema0.FragnoReference, _fragno_dev_db_schema0.FragnoReference>> & Record<"ownerLogin", _fragno_dev_db_schema0.Column<"string", string, string>> & Record<"name", _fragno_dev_db_schema0.Column<"string", string, string>> & Record<"fullName", _fragno_dev_db_schema0.Column<"string", string, string>> & Record<"isPrivate", _fragno_dev_db_schema0.Column<"bool", boolean, boolean>> & Record<"isFork", _fragno_dev_db_schema0.Column<"bool", boolean | null, boolean | null>> & Record<"defaultBranch", _fragno_dev_db_schema0.Column<"string", string | null, string | null>> & Record<"removedAt", _fragno_dev_db_schema0.Column<"timestamp", (Date | _fragno_dev_db0.DbNow) | null, Date | null>> & Record<"updatedAt", _fragno_dev_db_schema0.Column<"timestamp", (Date | _fragno_dev_db0.DbNow) | null, Date>>, Record<string, _fragno_dev_db_schema0.AnyRelation> & Record<"installation", _fragno_dev_db_schema0.Relation<"one", _fragno_dev_db_schema0.Table<Record<"id", _fragno_dev_db_schema0.IdColumn<"varchar(128)", string | FragnoId | null, FragnoId>> & Record<"accountId", _fragno_dev_db_schema0.Column<"string", string, string>> & Record<"accountLogin", _fragno_dev_db_schema0.Column<"string", string, string>> & Record<"accountType", _fragno_dev_db_schema0.Column<"string", string, string>> & Record<"status", _fragno_dev_db_schema0.Column<"string", string, string>> & Record<"permissions", _fragno_dev_db_schema0.Column<"json", unknown, unknown>> & Record<"events", _fragno_dev_db_schema0.Column<"json", unknown, unknown>> & Record<"createdAt", _fragno_dev_db_schema0.Column<"timestamp", (Date | _fragno_dev_db0.DbNow) | null, Date>> & Record<"updatedAt", _fragno_dev_db_schema0.Column<"timestamp", (Date | _fragno_dev_db0.DbNow) | null, Date>> & Record<"lastWebhookAt", _fragno_dev_db_schema0.Column<"timestamp", (Date | _fragno_dev_db0.DbNow) | null, Date | null>>, Record<string, _fragno_dev_db_schema0.AnyRelation>, Record<string, _fragno_dev_db_schema0.Index<_fragno_dev_db_schema0.AnyColumn[], readonly string[]>> & Record<"idx_installation_account_login", _fragno_dev_db_schema0.Index<readonly [_fragno_dev_db_schema0.Column<"string", string, string>] & _fragno_dev_db_schema0.AnyColumn[], readonly ["accountLogin"]>> & Record<"idx_installation_status", _fragno_dev_db_schema0.Index<readonly [_fragno_dev_db_schema0.Column<"string", string, string>] & _fragno_dev_db_schema0.AnyColumn[], readonly ["status"]>> & Record<"uniq_installation_id", _fragno_dev_db_schema0.Index<readonly [_fragno_dev_db_schema0.IdColumn<"varchar(128)", string | FragnoId | null, FragnoId>] & _fragno_dev_db_schema0.AnyColumn[], readonly ["id"]>>>>> & Record<"links", _fragno_dev_db_schema0.Relation<"many", _fragno_dev_db_schema0.Table<Record<"id", _fragno_dev_db_schema0.IdColumn<"varchar(128)", string | FragnoId | null, FragnoId>> & Record<"repoId", _fragno_dev_db_schema0.Column<"bigint", string | bigint | FragnoId | _fragno_dev_db_schema0.FragnoReference, _fragno_dev_db_schema0.FragnoReference>> & Record<"linkKey", _fragno_dev_db_schema0.Column<"string", string, string>> & Record<"linkedAt", _fragno_dev_db_schema0.Column<"timestamp", (Date | _fragno_dev_db0.DbNow) | null, Date>>, Record<string, _fragno_dev_db_schema0.AnyRelation>, Record<string, _fragno_dev_db_schema0.Index<_fragno_dev_db_schema0.AnyColumn[], readonly string[]>> & Record<"uniq_repo_link_repo_id_link_key", _fragno_dev_db_schema0.Index<readonly [_fragno_dev_db_schema0.Column<"bigint", string | bigint | FragnoId | _fragno_dev_db_schema0.FragnoReference, _fragno_dev_db_schema0.FragnoReference>, _fragno_dev_db_schema0.Column<"string", string, string>] & _fragno_dev_db_schema0.AnyColumn[], readonly ["repoId", "linkKey"]>>>>>, Record<string, _fragno_dev_db_schema0.Index<_fragno_dev_db_schema0.AnyColumn[], readonly string[]>> & Record<"idx_installation_repo_installation", _fragno_dev_db_schema0.Index<readonly [_fragno_dev_db_schema0.Column<"bigint", string | bigint | FragnoId | _fragno_dev_db_schema0.FragnoReference, _fragno_dev_db_schema0.FragnoReference>] & _fragno_dev_db_schema0.AnyColumn[], readonly ["installationId"]>> & Record<"idx_installation_repo_full_name", _fragno_dev_db_schema0.Index<readonly [_fragno_dev_db_schema0.Column<"string", string, string>] & _fragno_dev_db_schema0.AnyColumn[], readonly ["fullName"]>>>;
|
|
234
|
+
repo_link: _fragno_dev_db_schema0.Table<Record<"id", _fragno_dev_db_schema0.IdColumn<"varchar(128)", string | FragnoId | null, FragnoId>> & Record<"repoId", _fragno_dev_db_schema0.Column<"bigint", string | bigint | FragnoId | _fragno_dev_db_schema0.FragnoReference, _fragno_dev_db_schema0.FragnoReference>> & Record<"linkKey", _fragno_dev_db_schema0.Column<"string", string, string>> & Record<"linkedAt", _fragno_dev_db_schema0.Column<"timestamp", (Date | _fragno_dev_db0.DbNow) | null, Date>>, Record<string, _fragno_dev_db_schema0.AnyRelation> & Record<"repo", _fragno_dev_db_schema0.Relation<"one", _fragno_dev_db_schema0.Table<Record<"id", _fragno_dev_db_schema0.IdColumn<"varchar(128)", string | FragnoId | null, FragnoId>> & Record<"installationId", _fragno_dev_db_schema0.Column<"bigint", string | bigint | FragnoId | _fragno_dev_db_schema0.FragnoReference, _fragno_dev_db_schema0.FragnoReference>> & Record<"ownerLogin", _fragno_dev_db_schema0.Column<"string", string, string>> & Record<"name", _fragno_dev_db_schema0.Column<"string", string, string>> & Record<"fullName", _fragno_dev_db_schema0.Column<"string", string, string>> & Record<"isPrivate", _fragno_dev_db_schema0.Column<"bool", boolean, boolean>> & Record<"isFork", _fragno_dev_db_schema0.Column<"bool", boolean | null, boolean | null>> & Record<"defaultBranch", _fragno_dev_db_schema0.Column<"string", string | null, string | null>> & Record<"removedAt", _fragno_dev_db_schema0.Column<"timestamp", (Date | _fragno_dev_db0.DbNow) | null, Date | null>> & Record<"updatedAt", _fragno_dev_db_schema0.Column<"timestamp", (Date | _fragno_dev_db0.DbNow) | null, Date>>, Record<string, _fragno_dev_db_schema0.AnyRelation> & Record<"installation", _fragno_dev_db_schema0.Relation<"one", _fragno_dev_db_schema0.Table<Record<"id", _fragno_dev_db_schema0.IdColumn<"varchar(128)", string | FragnoId | null, FragnoId>> & Record<"accountId", _fragno_dev_db_schema0.Column<"string", string, string>> & Record<"accountLogin", _fragno_dev_db_schema0.Column<"string", string, string>> & Record<"accountType", _fragno_dev_db_schema0.Column<"string", string, string>> & Record<"status", _fragno_dev_db_schema0.Column<"string", string, string>> & Record<"permissions", _fragno_dev_db_schema0.Column<"json", unknown, unknown>> & Record<"events", _fragno_dev_db_schema0.Column<"json", unknown, unknown>> & Record<"createdAt", _fragno_dev_db_schema0.Column<"timestamp", (Date | _fragno_dev_db0.DbNow) | null, Date>> & Record<"updatedAt", _fragno_dev_db_schema0.Column<"timestamp", (Date | _fragno_dev_db0.DbNow) | null, Date>> & Record<"lastWebhookAt", _fragno_dev_db_schema0.Column<"timestamp", (Date | _fragno_dev_db0.DbNow) | null, Date | null>>, Record<string, _fragno_dev_db_schema0.AnyRelation>, Record<string, _fragno_dev_db_schema0.Index<_fragno_dev_db_schema0.AnyColumn[], readonly string[]>> & Record<"idx_installation_account_login", _fragno_dev_db_schema0.Index<readonly [_fragno_dev_db_schema0.Column<"string", string, string>] & _fragno_dev_db_schema0.AnyColumn[], readonly ["accountLogin"]>> & Record<"idx_installation_status", _fragno_dev_db_schema0.Index<readonly [_fragno_dev_db_schema0.Column<"string", string, string>] & _fragno_dev_db_schema0.AnyColumn[], readonly ["status"]>> & Record<"uniq_installation_id", _fragno_dev_db_schema0.Index<readonly [_fragno_dev_db_schema0.IdColumn<"varchar(128)", string | FragnoId | null, FragnoId>] & _fragno_dev_db_schema0.AnyColumn[], readonly ["id"]>>>>> & Record<"links", _fragno_dev_db_schema0.Relation<"many", _fragno_dev_db_schema0.Table<Record<"id", _fragno_dev_db_schema0.IdColumn<"varchar(128)", string | FragnoId | null, FragnoId>> & Record<"repoId", _fragno_dev_db_schema0.Column<"bigint", string | bigint | FragnoId | _fragno_dev_db_schema0.FragnoReference, _fragno_dev_db_schema0.FragnoReference>> & Record<"linkKey", _fragno_dev_db_schema0.Column<"string", string, string>> & Record<"linkedAt", _fragno_dev_db_schema0.Column<"timestamp", (Date | _fragno_dev_db0.DbNow) | null, Date>>, Record<string, _fragno_dev_db_schema0.AnyRelation>, Record<string, _fragno_dev_db_schema0.Index<_fragno_dev_db_schema0.AnyColumn[], readonly string[]>> & Record<"uniq_repo_link_repo_id_link_key", _fragno_dev_db_schema0.Index<readonly [_fragno_dev_db_schema0.Column<"bigint", string | bigint | FragnoId | _fragno_dev_db_schema0.FragnoReference, _fragno_dev_db_schema0.FragnoReference>, _fragno_dev_db_schema0.Column<"string", string, string>] & _fragno_dev_db_schema0.AnyColumn[], readonly ["repoId", "linkKey"]>>>>>, Record<string, _fragno_dev_db_schema0.Index<_fragno_dev_db_schema0.AnyColumn[], readonly string[]>> & Record<"idx_installation_repo_installation", _fragno_dev_db_schema0.Index<readonly [_fragno_dev_db_schema0.Column<"bigint", string | bigint | FragnoId | _fragno_dev_db_schema0.FragnoReference, _fragno_dev_db_schema0.FragnoReference>] & _fragno_dev_db_schema0.AnyColumn[], readonly ["installationId"]>> & Record<"idx_installation_repo_full_name", _fragno_dev_db_schema0.Index<readonly [_fragno_dev_db_schema0.Column<"string", string, string>] & _fragno_dev_db_schema0.AnyColumn[], readonly ["fullName"]>>>>>, Record<string, _fragno_dev_db_schema0.Index<_fragno_dev_db_schema0.AnyColumn[], readonly string[]>> & Record<"uniq_repo_link_repo_id_link_key", _fragno_dev_db_schema0.Index<readonly [_fragno_dev_db_schema0.Column<"bigint", string | bigint | FragnoId | _fragno_dev_db_schema0.FragnoReference, _fragno_dev_db_schema0.FragnoReference>, _fragno_dev_db_schema0.Column<"string", string, string>] & _fragno_dev_db_schema0.AnyColumn[], readonly ["repoId", "linkKey"]>>>;
|
|
235
|
+
}>>, _fragno_dev_core0.BoundServices<{
|
|
236
|
+
app: GitHubAppInstance;
|
|
237
|
+
githubApiClient: GitHubApiClient;
|
|
238
|
+
}>, {}, readonly [_fragno_dev_core0.FragnoRouteConfig<"POST", "/webhooks", _standard_schema_spec0.StandardSchemaV1<unknown, unknown> | undefined, _standard_schema_spec0.StandardSchemaV1<unknown, unknown> | undefined, "WEBHOOK_SIGNATURE_INVALID" | "WEBHOOK_DELIVERY_MISSING" | "WEBHOOK_PAYLOAD_INVALID", string, _fragno_dev_db0.DatabaseRequestContext<{
|
|
239
|
+
processWebhook: _fragno_dev_db0.HookFn<WebhookProcessingPayload>;
|
|
240
|
+
}>>, _fragno_dev_core0.FragnoRouteConfig<"GET", "/installations", _standard_schema_spec0.StandardSchemaV1<unknown, unknown> | undefined, z.ZodArray<z.ZodObject<{
|
|
241
|
+
id: z.ZodString;
|
|
242
|
+
accountId: z.ZodString;
|
|
243
|
+
accountLogin: z.ZodString;
|
|
244
|
+
accountType: z.ZodString;
|
|
245
|
+
status: z.ZodString;
|
|
246
|
+
permissions: z.ZodAny;
|
|
247
|
+
events: z.ZodAny;
|
|
248
|
+
createdAt: z.ZodDate;
|
|
249
|
+
updatedAt: z.ZodDate;
|
|
250
|
+
lastWebhookAt: z.ZodNullable<z.ZodDate>;
|
|
251
|
+
}, z.core.$strip>>, "INVALID_STATUS", "status", _fragno_dev_db0.DatabaseRequestContext<{
|
|
252
|
+
processWebhook: _fragno_dev_db0.HookFn<WebhookProcessingPayload>;
|
|
253
|
+
}>>, _fragno_dev_core0.FragnoRouteConfig<"GET", "/installations/:installationId/repos", _standard_schema_spec0.StandardSchemaV1<unknown, unknown> | undefined, z.ZodArray<z.ZodObject<{
|
|
254
|
+
id: z.ZodString;
|
|
255
|
+
installationId: z.ZodString;
|
|
256
|
+
ownerLogin: z.ZodString;
|
|
257
|
+
name: z.ZodString;
|
|
258
|
+
fullName: z.ZodString;
|
|
259
|
+
isPrivate: z.ZodBoolean;
|
|
260
|
+
isFork: z.ZodNullable<z.ZodBoolean>;
|
|
261
|
+
defaultBranch: z.ZodNullable<z.ZodString>;
|
|
262
|
+
removedAt: z.ZodNullable<z.ZodDate>;
|
|
263
|
+
updatedAt: z.ZodDate;
|
|
264
|
+
linkKeys: z.ZodArray<z.ZodString>;
|
|
265
|
+
}, z.core.$strip>>, "INSTALLATION_NOT_FOUND", "linkKey" | "linkedOnly", _fragno_dev_db0.DatabaseRequestContext<{
|
|
266
|
+
processWebhook: _fragno_dev_db0.HookFn<WebhookProcessingPayload>;
|
|
267
|
+
}>>, _fragno_dev_core0.FragnoRouteConfig<"GET", "/repositories/linked", _standard_schema_spec0.StandardSchemaV1<unknown, unknown> | undefined, z.ZodArray<z.ZodObject<{
|
|
268
|
+
id: z.ZodString;
|
|
269
|
+
installationId: z.ZodString;
|
|
270
|
+
ownerLogin: z.ZodString;
|
|
271
|
+
name: z.ZodString;
|
|
272
|
+
fullName: z.ZodString;
|
|
273
|
+
isPrivate: z.ZodBoolean;
|
|
274
|
+
isFork: z.ZodNullable<z.ZodBoolean>;
|
|
275
|
+
defaultBranch: z.ZodNullable<z.ZodString>;
|
|
276
|
+
removedAt: z.ZodNullable<z.ZodDate>;
|
|
277
|
+
updatedAt: z.ZodDate;
|
|
278
|
+
linkKeys: z.ZodArray<z.ZodString>;
|
|
279
|
+
}, z.core.$strip>>, string, "linkKey", _fragno_dev_db0.DatabaseRequestContext<{
|
|
280
|
+
processWebhook: _fragno_dev_db0.HookFn<WebhookProcessingPayload>;
|
|
281
|
+
}>>, _fragno_dev_core0.FragnoRouteConfig<"POST", "/repositories/link", z.ZodObject<{
|
|
282
|
+
installationId: z.ZodString;
|
|
283
|
+
repoId: z.ZodString;
|
|
284
|
+
linkKey: z.ZodOptional<z.ZodString>;
|
|
285
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
286
|
+
link: z.ZodObject<{
|
|
287
|
+
id: z.ZodString;
|
|
288
|
+
repoId: z.ZodString;
|
|
289
|
+
linkKey: z.ZodString;
|
|
290
|
+
linkedAt: z.ZodDate;
|
|
291
|
+
}, z.core.$strip>;
|
|
292
|
+
repo: z.ZodObject<{
|
|
293
|
+
id: z.ZodString;
|
|
294
|
+
installationId: z.ZodString;
|
|
295
|
+
ownerLogin: z.ZodString;
|
|
296
|
+
name: z.ZodString;
|
|
297
|
+
fullName: z.ZodString;
|
|
298
|
+
isPrivate: z.ZodBoolean;
|
|
299
|
+
isFork: z.ZodNullable<z.ZodBoolean>;
|
|
300
|
+
defaultBranch: z.ZodNullable<z.ZodString>;
|
|
301
|
+
removedAt: z.ZodNullable<z.ZodDate>;
|
|
302
|
+
updatedAt: z.ZodDate;
|
|
303
|
+
}, z.core.$strip>;
|
|
304
|
+
}, z.core.$strip>, "INSTALLATION_NOT_FOUND" | "INSTALLATION_INACTIVE" | "REPO_NOT_FOUND" | "REPO_REMOVED", string, _fragno_dev_db0.DatabaseRequestContext<{
|
|
305
|
+
processWebhook: _fragno_dev_db0.HookFn<WebhookProcessingPayload>;
|
|
306
|
+
}>>, _fragno_dev_core0.FragnoRouteConfig<"POST", "/repositories/unlink", z.ZodObject<{
|
|
307
|
+
repoId: z.ZodString;
|
|
308
|
+
linkKey: z.ZodOptional<z.ZodString>;
|
|
309
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
310
|
+
ok: z.ZodLiteral<true>;
|
|
311
|
+
}, z.core.$strip>, "INSTALLATION_NOT_FOUND" | "INSTALLATION_INACTIVE" | "REPO_NOT_FOUND" | "LINK_NOT_FOUND", string, _fragno_dev_db0.DatabaseRequestContext<{
|
|
312
|
+
processWebhook: _fragno_dev_db0.HookFn<WebhookProcessingPayload>;
|
|
313
|
+
}>>, _fragno_dev_core0.FragnoRouteConfig<"GET", "/repositories/:owner/:repo/pulls", _standard_schema_spec0.StandardSchemaV1<unknown, unknown> | undefined, z.ZodObject<{
|
|
314
|
+
pulls: z.ZodArray<z.ZodAny>;
|
|
315
|
+
pageInfo: z.ZodObject<{
|
|
316
|
+
page: z.ZodNumber;
|
|
317
|
+
perPage: z.ZodNumber;
|
|
318
|
+
}, z.core.$strip>;
|
|
319
|
+
}, z.core.$strip>, "INSTALLATION_NOT_FOUND" | "INSTALLATION_INACTIVE" | "REPO_NOT_FOUND" | "REPO_REMOVED" | "INVALID_STATE" | "INVALID_PER_PAGE" | "INVALID_PAGE" | "REPO_NOT_LINKED" | "GITHUB_API_ERROR", "state" | "perPage" | "page", _fragno_dev_db0.DatabaseRequestContext<{
|
|
320
|
+
processWebhook: _fragno_dev_db0.HookFn<WebhookProcessingPayload>;
|
|
321
|
+
}>>, _fragno_dev_core0.FragnoRouteConfig<"POST", "/repositories/:owner/:repo/pulls/:number/reviews", z.ZodObject<{
|
|
322
|
+
event: z.ZodOptional<z.ZodEnum<{
|
|
323
|
+
APPROVE: "APPROVE";
|
|
324
|
+
REQUEST_CHANGES: "REQUEST_CHANGES";
|
|
325
|
+
COMMENT: "COMMENT";
|
|
326
|
+
}>>;
|
|
327
|
+
body: z.ZodOptional<z.ZodString>;
|
|
328
|
+
comments: z.ZodOptional<z.ZodArray<z.ZodAny>>;
|
|
329
|
+
commitId: z.ZodOptional<z.ZodString>;
|
|
330
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
331
|
+
review: z.ZodAny;
|
|
332
|
+
}, z.core.$strip>, "INSTALLATION_NOT_FOUND" | "INSTALLATION_INACTIVE" | "REPO_NOT_FOUND" | "REPO_REMOVED" | "REPO_NOT_LINKED" | "GITHUB_API_ERROR" | "INVALID_PULL_NUMBER", string, _fragno_dev_db0.DatabaseRequestContext<{
|
|
333
|
+
processWebhook: _fragno_dev_db0.HookFn<WebhookProcessingPayload>;
|
|
334
|
+
}>>, _fragno_dev_core0.FragnoRouteConfig<"POST", "/installations/:installationId/sync", _standard_schema_spec0.StandardSchemaV1<unknown, unknown> | undefined, z.ZodObject<{
|
|
335
|
+
added: z.ZodNumber;
|
|
336
|
+
removed: z.ZodNumber;
|
|
337
|
+
updated: z.ZodNumber;
|
|
338
|
+
}, z.core.$strip>, "INSTALLATION_NOT_FOUND" | "GITHUB_API_ERROR", string, _fragno_dev_db0.DatabaseRequestContext<{
|
|
339
|
+
processWebhook: _fragno_dev_db0.HookFn<WebhookProcessingPayload>;
|
|
340
|
+
}>>]>;
|
|
341
|
+
//#endregion
|
|
342
|
+
export { type FragnoRouteConfig, type GitHubAppFragmentConfig, type GitHubAppFragmentDependencies, type GitHubAppFragmentPublicClientConfig, type GitHubAppFragmentServices, type GitHubAppWebhookConfig, type GitHubAppWebhookHandler, type GitHubAppWebhookOn, createGitHubAppFragment, createGitHubAppFragmentClients, getGitHubApiClientFromFragment, getGitHubAppFromFragment, githubAppFragmentDefinition, githubAppRoutesFactory };
|
|
343
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":[],"sources":["../../src/github/clients.ts","../../src/github/api.ts","../../src/github/webhook-processing.ts","../../src/github/definition.ts","../../src/github/factory.ts","../../src/routes.ts"],"mappings":";;;;;;;;;;;;;;;iBAOgB,8BAAA,CAA+B,YAAA,EAAc,wBAAA;+CAAwB,gBAAA;;;;;;;;KCHhF,sBAAA;EACH,KAAA,UAAe,KAAA;AAAA;AAAA,KAGZ,kBAAA,GAAqB,YAAA,QAAoB,GAAA;AAAA,KACzC,aAAA,GAAgB,kBAAA;AAAA,KAET,iBAAA;EACV,OAAA,EAAS,aAAA;EACT,QAAA,EAAU,kBAAA;EACV,sBAAA,GAAyB,cAAA,aAA2B,OAAA,CAAQ,aAAA;AAAA;AAAA,KAGlD,4BAAA;EACV,EAAA;EACA,IAAA;EACA,SAAA;EACA,OAAA;EACA,IAAA;EACA,cAAA;EACA,KAAA;IAAS,KAAA;EAAA;AAAA;AAAA,KAGC,yBAAA;EACV,EAAA;EACA,SAAA;EACA,YAAA;EACA,WAAA;EACA,MAAA;EACA,WAAA,EAAa,MAAA;EACb,MAAA;AAAA;AAAA,KAGG,sCAAA;EACH,YAAA,EAAc,4BAAA;AAAA;AAAA,KAGJ,eAAA;EACV,GAAA,EAAK,iBAAA;EACL,UAAA;EACA,qBAAA,GAAwB,cAAA;EACxB,eAAA,GAAkB,cAAA,aAA2B,OAAA,CAAQ,yBAAA;EACrD,qBAAA,GACE,cAAA,aACG,OAAA,CAAQ,sCAAA;EACb,sBAAA,GAAyB,OAAA;IACvB,OAAA;IACA,eAAA;EAAA,MACI,OAAA;AAAA;AAAA,cAMK,qBAAA,GACX,MAAA,EAAQ,uBAAA,EACR,OAAA,GAAS,sBAAA,KACR,eAAA;;;KCtBS,wBAAA;EACV,UAAA;EACA,KAAA;EACA,MAAA;EACA,cAAA;EACA,OAAA,EAAS,MAAA;EACT,UAAA;AAAA;;;KCrCU,6BAAA;EACV,eAAA,EAAiB,UAAA,QAAkB,qBAAA;AAAA;AAAA,KAEzB,yBAAA;EACV,GAAA,EAAK,UAAA,QAAkB,qBAAA;EACvB,eAAA,EAAiB,UAAA,QAAkB,qBAAA;AAAA;AAAA,cAGxB,2BAAA,oBAA2B,kBAAA,CAAA,uBAAA,EAAA,eAAA,CAAA,8BAAA;mBAAA,eAAA;AAAA;;;;;;;;;;;;;;iBCTxB,uBAAA,CACd,MAAA,EAAQ,uBAAA,EACR,OAAA,EAAS,8BAAA,qBAA8B,0BAAA,WAAA,iBAAA,CAAA,iBAAA,sBAAA,sBAAA,CAAA,gBAAA,gCAAA,sBAAA,CAAA,gBAAA,8IAAA,sBAAA;yCAAA,wBAAA;AAAA,kEAAA,sBAAA,CAAA,gBAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBASzB,8BAAA,CAA+B,QAAA;EAAY,QAAA,EAAU,yBAAA;AAAA,IAAyB,eAAA;AAAA,iBAI9E,wBAAA,CAAyB,QAAA;EAAY,QAAA,EAAU,yBAAA;AAAA,IAAyB,iBAAA;;;cCuE3E,sBAAA,oBAAsB,YAAA,CAs6BlC,uBAAA;mBAt6BkC,eAAA;AAAA"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { a as githubAppRoutesFactory, i as createGitHubAppFragmentClients, n as getGitHubApiClientFromFragment, o as githubAppFragmentDefinition, r as getGitHubAppFromFragment, t as createGitHubAppFragment } from "./factory-BIj4C6PD.js";
|
|
2
|
+
|
|
3
|
+
export { createGitHubAppFragment, createGitHubAppFragmentClients, getGitHubApiClientFromFragment, getGitHubAppFromFragment, githubAppFragmentDefinition, githubAppRoutesFactory };
|