@katerai/sdk 0.2.1 → 0.4.0
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/CHANGELOG.md +16 -0
- package/README.md +11 -15
- package/client.d.mts +7 -4
- package/client.d.mts.map +1 -1
- package/client.d.ts +7 -4
- package/client.d.ts.map +1 -1
- package/client.js +7 -29
- package/client.js.map +1 -1
- package/client.mjs +7 -29
- package/client.mjs.map +1 -1
- package/internal/utils/log.d.mts.map +1 -1
- package/internal/utils/log.d.ts.map +1 -1
- package/internal/utils/log.js +0 -1
- package/internal/utils/log.js.map +1 -1
- package/internal/utils/log.mjs +0 -1
- package/internal/utils/log.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/healthz.d.mts +16 -0
- package/resources/healthz.d.mts.map +1 -0
- package/resources/healthz.d.ts +16 -0
- package/resources/healthz.d.ts.map +1 -0
- package/resources/healthz.js +15 -0
- package/resources/healthz.js.map +1 -0
- package/resources/healthz.mjs +11 -0
- package/resources/healthz.mjs.map +1 -0
- package/resources/index.d.mts +2 -0
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +2 -0
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +5 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +2 -0
- package/resources/index.mjs.map +1 -1
- package/resources/readyz.d.mts +16 -0
- package/resources/readyz.d.mts.map +1 -0
- package/resources/readyz.d.ts +16 -0
- package/resources/readyz.d.ts.map +1 -0
- package/resources/readyz.js +15 -0
- package/resources/readyz.js.map +1 -0
- package/resources/readyz.mjs +11 -0
- package/resources/readyz.mjs.map +1 -0
- package/resources/v1/connections/connections.d.mts +258 -65
- package/resources/v1/connections/connections.d.mts.map +1 -1
- package/resources/v1/connections/connections.d.ts +258 -65
- package/resources/v1/connections/connections.d.ts.map +1 -1
- package/resources/v1/connections/connections.js +33 -0
- package/resources/v1/connections/connections.js.map +1 -1
- package/resources/v1/connections/connections.mjs +34 -1
- package/resources/v1/connections/connections.mjs.map +1 -1
- package/resources/v1/connections/databases.d.mts +118 -1
- package/resources/v1/connections/databases.d.mts.map +1 -1
- package/resources/v1/connections/databases.d.ts +118 -1
- package/resources/v1/connections/databases.d.ts.map +1 -1
- package/resources/v1/connections/databases.js +35 -0
- package/resources/v1/connections/databases.js.map +1 -1
- package/resources/v1/connections/databases.mjs +35 -0
- package/resources/v1/connections/databases.mjs.map +1 -1
- package/resources/v1/connections/index.d.mts +2 -2
- package/resources/v1/connections/index.d.mts.map +1 -1
- package/resources/v1/connections/index.d.ts +2 -2
- package/resources/v1/connections/index.d.ts.map +1 -1
- package/resources/v1/connections/index.js.map +1 -1
- package/resources/v1/connections/index.mjs +1 -1
- package/resources/v1/connections/index.mjs.map +1 -1
- package/resources/v1/github/github.d.mts +50 -42
- package/resources/v1/github/github.d.mts.map +1 -1
- package/resources/v1/github/github.d.ts +50 -42
- package/resources/v1/github/github.d.ts.map +1 -1
- package/resources/v1/github/github.js +12 -16
- package/resources/v1/github/github.js.map +1 -1
- package/resources/v1/github/github.mjs +12 -16
- package/resources/v1/github/github.mjs.map +1 -1
- package/resources/v1/github/index.d.mts +3 -4
- package/resources/v1/github/index.d.mts.map +1 -1
- package/resources/v1/github/index.d.ts +3 -4
- package/resources/v1/github/index.d.ts.map +1 -1
- package/resources/v1/github/index.js +1 -3
- package/resources/v1/github/index.js.map +1 -1
- package/resources/v1/github/index.mjs +0 -1
- package/resources/v1/github/index.mjs.map +1 -1
- package/resources/v1/github/scaffold.d.mts +1 -16
- package/resources/v1/github/scaffold.d.mts.map +1 -1
- package/resources/v1/github/scaffold.d.ts +1 -16
- package/resources/v1/github/scaffold.d.ts.map +1 -1
- package/resources/v1/github/scaffold.js +0 -6
- package/resources/v1/github/scaffold.js.map +1 -1
- package/resources/v1/github/scaffold.mjs +0 -6
- package/resources/v1/github/scaffold.mjs.map +1 -1
- package/resources/v1/github/webhooks.d.mts +18 -6
- package/resources/v1/github/webhooks.d.mts.map +1 -1
- package/resources/v1/github/webhooks.d.ts +18 -6
- package/resources/v1/github/webhooks.d.ts.map +1 -1
- package/resources/v1/github/webhooks.js +15 -3
- package/resources/v1/github/webhooks.js.map +1 -1
- package/resources/v1/github/webhooks.mjs +15 -3
- package/resources/v1/github/webhooks.mjs.map +1 -1
- package/resources/v1/index.d.mts +3 -4
- package/resources/v1/index.d.mts.map +1 -1
- package/resources/v1/index.d.ts +3 -4
- package/resources/v1/index.d.ts.map +1 -1
- package/resources/v1/index.js +1 -3
- package/resources/v1/index.js.map +1 -1
- package/resources/v1/index.mjs +0 -1
- package/resources/v1/index.mjs.map +1 -1
- package/resources/v1/me.d.mts +1 -9
- package/resources/v1/me.d.mts.map +1 -1
- package/resources/v1/me.d.ts +1 -9
- package/resources/v1/me.d.ts.map +1 -1
- package/resources/v1/me.js +0 -9
- package/resources/v1/me.js.map +1 -1
- package/resources/v1/me.mjs +0 -9
- package/resources/v1/me.mjs.map +1 -1
- package/resources/v1/v1.d.mts +6 -10
- package/resources/v1/v1.d.mts.map +1 -1
- package/resources/v1/v1.d.ts +6 -10
- package/resources/v1/v1.d.ts.map +1 -1
- package/resources/v1/v1.js +0 -4
- package/resources/v1/v1.js.map +1 -1
- package/resources/v1/v1.mjs +0 -4
- package/resources/v1/v1.mjs.map +1 -1
- package/src/client.ts +12 -37
- package/src/internal/utils/log.ts +0 -1
- package/src/resources/healthz.ts +20 -0
- package/src/resources/index.ts +2 -0
- package/src/resources/readyz.ts +20 -0
- package/src/resources/v1/connections/connections.ts +330 -68
- package/src/resources/v1/connections/databases.ts +165 -1
- package/src/resources/v1/connections/index.ts +9 -1
- package/src/resources/v1/github/github.ts +68 -56
- package/src/resources/v1/github/index.ts +7 -6
- package/src/resources/v1/github/scaffold.ts +1 -28
- package/src/resources/v1/github/webhooks.ts +45 -5
- package/src/resources/v1/index.ts +7 -11
- package/src/resources/v1/me.ts +1 -17
- package/src/resources/v1/v1.ts +14 -25
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
- package/resources/v1/api-keys.d.mts +0 -142
- package/resources/v1/api-keys.d.mts.map +0 -1
- package/resources/v1/api-keys.d.ts +0 -142
- package/resources/v1/api-keys.d.ts.map +0 -1
- package/resources/v1/api-keys.js +0 -66
- package/resources/v1/api-keys.js.map +0 -1
- package/resources/v1/api-keys.mjs +0 -62
- package/resources/v1/api-keys.mjs.map +0 -1
- package/resources/v1/github/admin.d.mts +0 -33
- package/resources/v1/github/admin.d.mts.map +0 -1
- package/resources/v1/github/admin.d.ts +0 -33
- package/resources/v1/github/admin.d.ts.map +0 -1
- package/resources/v1/github/admin.js +0 -17
- package/resources/v1/github/admin.js.map +0 -1
- package/resources/v1/github/admin.mjs +0 -13
- package/resources/v1/github/admin.mjs.map +0 -1
- package/src/resources/v1/api-keys.ts +0 -186
- package/src/resources/v1/github/admin.ts +0 -56
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"github.d.mts","sourceRoot":"","sources":["../../../src/resources/v1/github/github.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,QAAQ;OACb,EAAE,
|
|
1
|
+
{"version":3,"file":"github.d.mts","sourceRoot":"","sources":["../../../src/resources/v1/github/github.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,QAAQ;OACb,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,KAAK,EAAE,UAAU,EAAE;OAC7E,KAAK,WAAW;OAChB,EAAE,QAAQ,EAAE,eAAe,EAAE;OAC7B,KAAK,WAAW;OAChB,EAAE,oBAAoB,EAAE,sBAAsB,EAAE,QAAQ,EAAE;OAC1D,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,MAAO,SAAQ,WAAW;IACrC,KAAK,EAAE,QAAQ,CAAC,KAAK,CAAoC;IACzD,QAAQ,EAAE,WAAW,CAAC,QAAQ,CAA0C;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BAAoB;IACnC;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAErB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEtB;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAElC;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACjC;AAED,MAAM,WAAW,mBAAmB;IAClC;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC3B;AAMD,MAAM,CAAC,OAAO,WAAW,MAAM,CAAC;IAC9B,OAAO,EACL,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,iCAAiC,IAAI,iCAAiC,EAC3E,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;IAEF,OAAO,EACL,KAAK,IAAI,KAAK,EACd,KAAK,UAAU,IAAI,UAAU,EAC7B,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,gBAAgB,IAAI,gBAAgB,GAC1C,CAAC;IAEF,OAAO,EAAE,QAAQ,IAAI,QAAQ,EAAE,KAAK,eAAe,IAAI,eAAe,EAAE,CAAC;IAEzE,OAAO,EACL,QAAQ,IAAI,QAAQ,EACpB,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,oBAAoB,IAAI,oBAAoB,GAClD,CAAC;CACH"}
|
|
@@ -1,59 +1,47 @@
|
|
|
1
1
|
import { APIResource } from "../../../core/resource.js";
|
|
2
|
-
import * as AdminAPI from "./admin.js";
|
|
3
|
-
import { Admin, AdminGetIntegrationStatusResponse } from "./admin.js";
|
|
4
2
|
import * as ReposAPI from "./repos.js";
|
|
5
3
|
import { RepoListResponse, RepoSelectParams, RepoSelectResponse, Repos, Repository } from "./repos.js";
|
|
6
4
|
import * as ScaffoldAPI from "./scaffold.js";
|
|
7
|
-
import { Scaffold,
|
|
5
|
+
import { Scaffold, ScaffoldTrigger } from "./scaffold.js";
|
|
8
6
|
import * as WebhooksAPI from "./webhooks.js";
|
|
9
|
-
import {
|
|
7
|
+
import { WebhookReceiveParams, WebhookReceiveResponse, Webhooks } from "./webhooks.js";
|
|
10
8
|
import { APIPromise } from "../../../core/api-promise.js";
|
|
11
9
|
import { RequestOptions } from "../../../internal/request-options.js";
|
|
12
10
|
export declare class GitHub extends APIResource {
|
|
13
11
|
repos: ReposAPI.Repos;
|
|
14
12
|
scaffold: ScaffoldAPI.Scaffold;
|
|
15
13
|
webhooks: WebhooksAPI.Webhooks;
|
|
16
|
-
admin: AdminAPI.Admin;
|
|
17
14
|
/**
|
|
18
|
-
*
|
|
15
|
+
* Handles the OAuth callback from GitHub after user authorization.
|
|
19
16
|
*/
|
|
20
|
-
|
|
17
|
+
callback(query: GitHubCallbackParams, options?: RequestOptions): APIPromise<unknown>;
|
|
21
18
|
/**
|
|
22
|
-
*
|
|
19
|
+
* Initiates the GitHub App installation flow.
|
|
23
20
|
*/
|
|
24
|
-
|
|
21
|
+
connect(query?: GitHubConnectParams | null | undefined, options?: RequestOptions): APIPromise<GitHubConnectResponse>;
|
|
25
22
|
/**
|
|
26
|
-
*
|
|
23
|
+
* Generates a shareable GitHub App installation link.
|
|
27
24
|
*/
|
|
28
|
-
|
|
25
|
+
getInstallationLink(options?: RequestOptions): APIPromise<GitHubGetInstallationLinkResponse>;
|
|
29
26
|
/**
|
|
30
|
-
*
|
|
27
|
+
* Returns the current GitHub connection status for the client.
|
|
31
28
|
*/
|
|
32
|
-
|
|
29
|
+
getStatus(options?: RequestOptions): APIPromise<GitHubGetStatusResponse>;
|
|
33
30
|
}
|
|
31
|
+
export type GitHubCallbackResponse = unknown;
|
|
34
32
|
/**
|
|
35
|
-
* Response for
|
|
33
|
+
* Response for starting OAuth flow.
|
|
36
34
|
*/
|
|
37
|
-
export interface
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
}
|
|
41
|
-
export declare namespace GitHubCheckInstallationsResponse {
|
|
42
|
-
/**
|
|
43
|
-
* Information about an existing GitHub App installation.
|
|
44
|
-
*/
|
|
45
|
-
interface Installation {
|
|
46
|
-
account_login: string;
|
|
47
|
-
account_type: string;
|
|
48
|
-
installation_id: number;
|
|
49
|
-
}
|
|
35
|
+
export interface GitHubConnectResponse {
|
|
36
|
+
authorization_url: string;
|
|
37
|
+
state: string;
|
|
50
38
|
}
|
|
51
39
|
/**
|
|
52
|
-
* Response for
|
|
40
|
+
* Response for installation link generation.
|
|
53
41
|
*/
|
|
54
|
-
export interface
|
|
55
|
-
|
|
56
|
-
|
|
42
|
+
export interface GitHubGetInstallationLinkResponse {
|
|
43
|
+
app_name: string;
|
|
44
|
+
installation_url: string;
|
|
57
45
|
}
|
|
58
46
|
/**
|
|
59
47
|
* Response for connection status.
|
|
@@ -69,19 +57,39 @@ export interface GitHubGetStatusResponse {
|
|
|
69
57
|
scaffolding_status?: string | null;
|
|
70
58
|
status?: string | null;
|
|
71
59
|
}
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
60
|
+
export interface GitHubCallbackParams {
|
|
61
|
+
/**
|
|
62
|
+
* State token for CSRF validation
|
|
63
|
+
*/
|
|
64
|
+
state: string;
|
|
65
|
+
/**
|
|
66
|
+
* OAuth authorization code
|
|
67
|
+
*/
|
|
68
|
+
code?: string | null;
|
|
69
|
+
/**
|
|
70
|
+
* OAuth error code from GitHub
|
|
71
|
+
*/
|
|
72
|
+
error?: string | null;
|
|
73
|
+
/**
|
|
74
|
+
* OAuth error description
|
|
75
|
+
*/
|
|
76
|
+
error_description?: string | null;
|
|
77
|
+
/**
|
|
78
|
+
* GitHub App installation ID
|
|
79
|
+
*/
|
|
80
|
+
installation_id?: number | null;
|
|
81
|
+
}
|
|
82
|
+
export interface GitHubConnectParams {
|
|
83
|
+
/**
|
|
84
|
+
* Frontend path to redirect to after OAuth success (e.g., '/' or
|
|
85
|
+
* '/settings/github')
|
|
86
|
+
*/
|
|
87
|
+
return_to?: string | null;
|
|
79
88
|
}
|
|
80
89
|
export declare namespace GitHub {
|
|
81
|
-
export { type
|
|
90
|
+
export { type GitHubCallbackResponse as GitHubCallbackResponse, type GitHubConnectResponse as GitHubConnectResponse, type GitHubGetInstallationLinkResponse as GitHubGetInstallationLinkResponse, type GitHubGetStatusResponse as GitHubGetStatusResponse, type GitHubCallbackParams as GitHubCallbackParams, type GitHubConnectParams as GitHubConnectParams, };
|
|
82
91
|
export { Repos as Repos, type Repository as Repository, type RepoListResponse as RepoListResponse, type RepoSelectResponse as RepoSelectResponse, type RepoSelectParams as RepoSelectParams, };
|
|
83
|
-
export { Scaffold as Scaffold, type ScaffoldTrigger as ScaffoldTrigger
|
|
84
|
-
export { Webhooks as Webhooks, type
|
|
85
|
-
export { Admin as Admin, type AdminGetIntegrationStatusResponse as AdminGetIntegrationStatusResponse };
|
|
92
|
+
export { Scaffold as Scaffold, type ScaffoldTrigger as ScaffoldTrigger };
|
|
93
|
+
export { Webhooks as Webhooks, type WebhookReceiveResponse as WebhookReceiveResponse, type WebhookReceiveParams as WebhookReceiveParams, };
|
|
86
94
|
}
|
|
87
95
|
//# sourceMappingURL=github.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"github.d.ts","sourceRoot":"","sources":["../../../src/resources/v1/github/github.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,QAAQ;OACb,EAAE,
|
|
1
|
+
{"version":3,"file":"github.d.ts","sourceRoot":"","sources":["../../../src/resources/v1/github/github.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,QAAQ;OACb,EAAE,gBAAgB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E,QAAQ,IAAI,QAAQ,EAAE,KAAK,eAAe,IAAI,eAAe,EAAE,CAAC;IAEzE,OAAO,EACL,QAAQ,IAAI,QAAQ,EACpB,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,oBAAoB,IAAI,oBAAoB,GAClD,CAAC;CACH"}
|
|
@@ -4,8 +4,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
4
4
|
exports.GitHub = void 0;
|
|
5
5
|
const tslib_1 = require("../../../internal/tslib.js");
|
|
6
6
|
const resource_1 = require("../../../core/resource.js");
|
|
7
|
-
const AdminAPI = tslib_1.__importStar(require("./admin.js"));
|
|
8
|
-
const admin_1 = require("./admin.js");
|
|
9
7
|
const ReposAPI = tslib_1.__importStar(require("./repos.js"));
|
|
10
8
|
const repos_1 = require("./repos.js");
|
|
11
9
|
const ScaffoldAPI = tslib_1.__importStar(require("./scaffold.js"));
|
|
@@ -18,36 +16,34 @@ class GitHub extends resource_1.APIResource {
|
|
|
18
16
|
this.repos = new ReposAPI.Repos(this._client);
|
|
19
17
|
this.scaffold = new ScaffoldAPI.Scaffold(this._client);
|
|
20
18
|
this.webhooks = new WebhooksAPI.Webhooks(this._client);
|
|
21
|
-
this.admin = new AdminAPI.Admin(this._client);
|
|
22
19
|
}
|
|
23
20
|
/**
|
|
24
|
-
*
|
|
21
|
+
* Handles the OAuth callback from GitHub after user authorization.
|
|
25
22
|
*/
|
|
26
|
-
|
|
27
|
-
return this._client.get('/api/v1/github/
|
|
23
|
+
callback(query, options) {
|
|
24
|
+
return this._client.get('/api/v1/github/callback', { query, ...options });
|
|
28
25
|
}
|
|
29
26
|
/**
|
|
30
|
-
*
|
|
27
|
+
* Initiates the GitHub App installation flow.
|
|
31
28
|
*/
|
|
32
|
-
|
|
33
|
-
return this._client.
|
|
29
|
+
connect(query = {}, options) {
|
|
30
|
+
return this._client.get('/api/v1/github/connect', { query, ...options });
|
|
34
31
|
}
|
|
35
32
|
/**
|
|
36
|
-
*
|
|
33
|
+
* Generates a shareable GitHub App installation link.
|
|
37
34
|
*/
|
|
38
|
-
|
|
39
|
-
return this._client.get('/api/v1/github/
|
|
35
|
+
getInstallationLink(options) {
|
|
36
|
+
return this._client.get('/api/v1/github/installation-link', options);
|
|
40
37
|
}
|
|
41
38
|
/**
|
|
42
|
-
*
|
|
39
|
+
* Returns the current GitHub connection status for the client.
|
|
43
40
|
*/
|
|
44
|
-
|
|
45
|
-
return this._client.
|
|
41
|
+
getStatus(options) {
|
|
42
|
+
return this._client.get('/api/v1/github/status', options);
|
|
46
43
|
}
|
|
47
44
|
}
|
|
48
45
|
exports.GitHub = GitHub;
|
|
49
46
|
GitHub.Repos = repos_1.Repos;
|
|
50
47
|
GitHub.Scaffold = scaffold_1.Scaffold;
|
|
51
48
|
GitHub.Webhooks = webhooks_1.Webhooks;
|
|
52
|
-
GitHub.Admin = admin_1.Admin;
|
|
53
49
|
//# sourceMappingURL=github.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"github.js","sourceRoot":"","sources":["../../../src/resources/v1/github/github.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,wDAAqD;AACrD,6DAAoC;AACpC,
|
|
1
|
+
{"version":3,"file":"github.js","sourceRoot":"","sources":["../../../src/resources/v1/github/github.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,wDAAqD;AACrD,6DAAoC;AACpC,sCAAoG;AACpG,mEAA0C;AAC1C,4CAAuD;AACvD,mEAA0C;AAC1C,4CAAoF;AAIpF,MAAa,MAAO,SAAQ,sBAAW;IAAvC;;QACE,UAAK,GAAmB,IAAI,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACzD,aAAQ,GAAyB,IAAI,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxE,aAAQ,GAAyB,IAAI,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAgC1E,CAAC;IA9BC;;OAEG;IACH,QAAQ,CAAC,KAA2B,EAAE,OAAwB;QAC5D,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,yBAAyB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC5E,CAAC;IAED;;OAEG;IACH,OAAO,CACL,QAAgD,EAAE,EAClD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,wBAAwB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC3E,CAAC;IAED;;OAEG;IACH,mBAAmB,CAAC,OAAwB;QAC1C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,kCAAkC,EAAE,OAAO,CAAC,CAAC;IACvE,CAAC;IAED;;OAEG;IACH,SAAS,CAAC,OAAwB;QAChC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,uBAAuB,EAAE,OAAO,CAAC,CAAC;IAC5D,CAAC;CACF;AAnCD,wBAmCC;AAgFD,MAAM,CAAC,KAAK,GAAG,aAAK,CAAC;AACrB,MAAM,CAAC,QAAQ,GAAG,mBAAQ,CAAC;AAC3B,MAAM,CAAC,QAAQ,GAAG,mBAAQ,CAAC"}
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
import { APIResource } from "../../../core/resource.mjs";
|
|
3
|
-
import * as AdminAPI from "./admin.mjs";
|
|
4
|
-
import { Admin } from "./admin.mjs";
|
|
5
3
|
import * as ReposAPI from "./repos.mjs";
|
|
6
4
|
import { Repos } from "./repos.mjs";
|
|
7
5
|
import * as ScaffoldAPI from "./scaffold.mjs";
|
|
@@ -14,35 +12,33 @@ export class GitHub extends APIResource {
|
|
|
14
12
|
this.repos = new ReposAPI.Repos(this._client);
|
|
15
13
|
this.scaffold = new ScaffoldAPI.Scaffold(this._client);
|
|
16
14
|
this.webhooks = new WebhooksAPI.Webhooks(this._client);
|
|
17
|
-
this.admin = new AdminAPI.Admin(this._client);
|
|
18
15
|
}
|
|
19
16
|
/**
|
|
20
|
-
*
|
|
17
|
+
* Handles the OAuth callback from GitHub after user authorization.
|
|
21
18
|
*/
|
|
22
|
-
|
|
23
|
-
return this._client.get('/api/v1/github/
|
|
19
|
+
callback(query, options) {
|
|
20
|
+
return this._client.get('/api/v1/github/callback', { query, ...options });
|
|
24
21
|
}
|
|
25
22
|
/**
|
|
26
|
-
*
|
|
23
|
+
* Initiates the GitHub App installation flow.
|
|
27
24
|
*/
|
|
28
|
-
|
|
29
|
-
return this._client.
|
|
25
|
+
connect(query = {}, options) {
|
|
26
|
+
return this._client.get('/api/v1/github/connect', { query, ...options });
|
|
30
27
|
}
|
|
31
28
|
/**
|
|
32
|
-
*
|
|
29
|
+
* Generates a shareable GitHub App installation link.
|
|
33
30
|
*/
|
|
34
|
-
|
|
35
|
-
return this._client.get('/api/v1/github/
|
|
31
|
+
getInstallationLink(options) {
|
|
32
|
+
return this._client.get('/api/v1/github/installation-link', options);
|
|
36
33
|
}
|
|
37
34
|
/**
|
|
38
|
-
*
|
|
35
|
+
* Returns the current GitHub connection status for the client.
|
|
39
36
|
*/
|
|
40
|
-
|
|
41
|
-
return this._client.
|
|
37
|
+
getStatus(options) {
|
|
38
|
+
return this._client.get('/api/v1/github/status', options);
|
|
42
39
|
}
|
|
43
40
|
}
|
|
44
41
|
GitHub.Repos = Repos;
|
|
45
42
|
GitHub.Scaffold = Scaffold;
|
|
46
43
|
GitHub.Webhooks = Webhooks;
|
|
47
|
-
GitHub.Admin = Admin;
|
|
48
44
|
//# sourceMappingURL=github.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"github.mjs","sourceRoot":"","sources":["../../../src/resources/v1/github/github.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,KAAK,QAAQ;OACb,
|
|
1
|
+
{"version":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Q,GAAG,QAAQ,CAAC;AAC3B,MAAM,CAAC,QAAQ,GAAG,QAAQ,CAAC"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export { GitHub, type GitHubCheckInstallationsResponse, type GitHubDisconnectResponse, type GitHubGetStatusResponse, type GitHubSyncResponse, } from "./github.mjs";
|
|
1
|
+
export { GitHub, type GitHubCallbackResponse, type GitHubConnectResponse, type GitHubGetInstallationLinkResponse, type GitHubGetStatusResponse, type GitHubCallbackParams, type GitHubConnectParams, } from "./github.mjs";
|
|
3
2
|
export { Repos, type Repository, type RepoListResponse, type RepoSelectResponse, type RepoSelectParams, } from "./repos.mjs";
|
|
4
|
-
export { Scaffold, type ScaffoldTrigger
|
|
5
|
-
export { Webhooks, type
|
|
3
|
+
export { Scaffold, type ScaffoldTrigger } from "./scaffold.mjs";
|
|
4
|
+
export { Webhooks, type WebhookReceiveResponse, type WebhookReceiveParams } from "./webhooks.mjs";
|
|
6
5
|
//# sourceMappingURL=index.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/resources/v1/github/index.ts"],"names":[],"mappings":"OAEO,
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/resources/v1/github/index.ts"],"names":[],"mappings":"OAEO,EACL,MAAM,EACN,KAAK,sBAAsB,EAC3B,KAAK,qBAAqB,EAC1B,KAAK,iCAAiC,EACtC,KAAK,uBAAuB,EAC5B,KAAK,oBAAoB,EACzB,KAAK,mBAAmB,GACzB;OACM,EACL,KAAK,EACL,KAAK,UAAU,EACf,KAAK,gBAAgB,EACrB,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,GACtB;OACM,EAAE,QAAQ,EAAE,KAAK,eAAe,EAAE;OAClC,EAAE,QAAQ,EAAE,KAAK,sBAAsB,EAAE,KAAK,oBAAoB,EAAE"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export { GitHub, type GitHubCheckInstallationsResponse, type GitHubDisconnectResponse, type GitHubGetStatusResponse, type GitHubSyncResponse, } from "./github.js";
|
|
1
|
+
export { GitHub, type GitHubCallbackResponse, type GitHubConnectResponse, type GitHubGetInstallationLinkResponse, type GitHubGetStatusResponse, type GitHubCallbackParams, type GitHubConnectParams, } from "./github.js";
|
|
3
2
|
export { Repos, type Repository, type RepoListResponse, type RepoSelectResponse, type RepoSelectParams, } from "./repos.js";
|
|
4
|
-
export { Scaffold, type ScaffoldTrigger
|
|
5
|
-
export { Webhooks, type
|
|
3
|
+
export { Scaffold, type ScaffoldTrigger } from "./scaffold.js";
|
|
4
|
+
export { Webhooks, type WebhookReceiveResponse, type WebhookReceiveParams } from "./webhooks.js";
|
|
6
5
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/resources/v1/github/index.ts"],"names":[],"mappings":"OAEO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/resources/v1/github/index.ts"],"names":[],"mappings":"OAEO,EACL,MAAM,EACN,KAAK,sBAAsB,EAC3B,KAAK,qBAAqB,EAC1B,KAAK,iCAAiC,EACtC,KAAK,uBAAuB,EAC5B,KAAK,oBAAoB,EACzB,KAAK,mBAAmB,GACzB;OACM,EACL,KAAK,EACL,KAAK,UAAU,EACf,KAAK,gBAAgB,EACrB,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,GACtB;OACM,EAAE,QAAQ,EAAE,KAAK,eAAe,EAAE;OAClC,EAAE,QAAQ,EAAE,KAAK,sBAAsB,EAAE,KAAK,oBAAoB,EAAE"}
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.Webhooks = exports.Scaffold = exports.Repos = exports.GitHub =
|
|
5
|
-
var admin_1 = require("./admin.js");
|
|
6
|
-
Object.defineProperty(exports, "Admin", { enumerable: true, get: function () { return admin_1.Admin; } });
|
|
4
|
+
exports.Webhooks = exports.Scaffold = exports.Repos = exports.GitHub = void 0;
|
|
7
5
|
var github_1 = require("./github.js");
|
|
8
6
|
Object.defineProperty(exports, "GitHub", { enumerable: true, get: function () { return github_1.GitHub; } });
|
|
9
7
|
var repos_1 = require("./repos.js");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resources/v1/github/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resources/v1/github/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,sCAQkB;AAPhB,gGAAA,MAAM,OAAA;AAQR,oCAMiB;AALf,8FAAA,KAAK,OAAA;AAMP,0CAA4D;AAAnD,oGAAA,QAAQ,OAAA;AACjB,0CAA8F;AAArF,oGAAA,QAAQ,OAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/resources/v1/github/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/resources/v1/github/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,MAAM,GAOP;OACM,EACL,KAAK,GAKN;OACM,EAAE,QAAQ,EAAwB;OAClC,EAAE,QAAQ,EAA0D"}
|
|
@@ -2,10 +2,6 @@ import { APIResource } from "../../../core/resource.mjs";
|
|
|
2
2
|
import { APIPromise } from "../../../core/api-promise.mjs";
|
|
3
3
|
import { RequestOptions } from "../../../internal/request-options.mjs";
|
|
4
4
|
export declare class Scaffold extends APIResource {
|
|
5
|
-
/**
|
|
6
|
-
* Get the current scaffolding status for the connected repository.
|
|
7
|
-
*/
|
|
8
|
-
getStatus(options?: RequestOptions): APIPromise<ScaffoldGetStatusResponse>;
|
|
9
5
|
/**
|
|
10
6
|
* Clean up partial state and retry scaffolding from scratch.
|
|
11
7
|
*/
|
|
@@ -27,18 +23,7 @@ export interface ScaffoldTrigger {
|
|
|
27
23
|
pr_number?: number | null;
|
|
28
24
|
pr_url?: string | null;
|
|
29
25
|
}
|
|
30
|
-
/**
|
|
31
|
-
* Response from scaffolding status check.
|
|
32
|
-
*/
|
|
33
|
-
export interface ScaffoldGetStatusResponse {
|
|
34
|
-
status: string;
|
|
35
|
-
branch?: string | null;
|
|
36
|
-
error?: string | null;
|
|
37
|
-
pr_number?: number | null;
|
|
38
|
-
pr_url?: string | null;
|
|
39
|
-
scaffolded_at?: string | null;
|
|
40
|
-
}
|
|
41
26
|
export declare namespace Scaffold {
|
|
42
|
-
export { type ScaffoldTrigger as ScaffoldTrigger
|
|
27
|
+
export { type ScaffoldTrigger as ScaffoldTrigger };
|
|
43
28
|
}
|
|
44
29
|
//# sourceMappingURL=scaffold.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scaffold.d.mts","sourceRoot":"","sources":["../../../src/resources/v1/github/scaffold.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,QAAS,SAAQ,WAAW;IACvC;;OAEG;IACH,
|
|
1
|
+
{"version":3,"file":"scaffold.d.mts","sourceRoot":"","sources":["../../../src/resources/v1/github/scaffold.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,QAAS,SAAQ,WAAW;IACvC;;OAEG;IACH,KAAK,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,eAAe,CAAC;IAI5D;;OAEG;IACH,OAAO,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,eAAe,CAAC;CAG/D;AAED;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B,OAAO,EAAE,MAAM,CAAC;IAEhB,MAAM,EAAE,MAAM,CAAC;IAEf,OAAO,EAAE,OAAO,CAAC;IAEjB,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEvB,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEtB,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE1B,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACxB;AAED,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC,OAAO,EAAE,KAAK,eAAe,IAAI,eAAe,EAAE,CAAC;CACpD"}
|
|
@@ -2,10 +2,6 @@ import { APIResource } from "../../../core/resource.js";
|
|
|
2
2
|
import { APIPromise } from "../../../core/api-promise.js";
|
|
3
3
|
import { RequestOptions } from "../../../internal/request-options.js";
|
|
4
4
|
export declare class Scaffold extends APIResource {
|
|
5
|
-
/**
|
|
6
|
-
* Get the current scaffolding status for the connected repository.
|
|
7
|
-
*/
|
|
8
|
-
getStatus(options?: RequestOptions): APIPromise<ScaffoldGetStatusResponse>;
|
|
9
5
|
/**
|
|
10
6
|
* Clean up partial state and retry scaffolding from scratch.
|
|
11
7
|
*/
|
|
@@ -27,18 +23,7 @@ export interface ScaffoldTrigger {
|
|
|
27
23
|
pr_number?: number | null;
|
|
28
24
|
pr_url?: string | null;
|
|
29
25
|
}
|
|
30
|
-
/**
|
|
31
|
-
* Response from scaffolding status check.
|
|
32
|
-
*/
|
|
33
|
-
export interface ScaffoldGetStatusResponse {
|
|
34
|
-
status: string;
|
|
35
|
-
branch?: string | null;
|
|
36
|
-
error?: string | null;
|
|
37
|
-
pr_number?: number | null;
|
|
38
|
-
pr_url?: string | null;
|
|
39
|
-
scaffolded_at?: string | null;
|
|
40
|
-
}
|
|
41
26
|
export declare namespace Scaffold {
|
|
42
|
-
export { type ScaffoldTrigger as ScaffoldTrigger
|
|
27
|
+
export { type ScaffoldTrigger as ScaffoldTrigger };
|
|
43
28
|
}
|
|
44
29
|
//# sourceMappingURL=scaffold.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scaffold.d.ts","sourceRoot":"","sources":["../../../src/resources/v1/github/scaffold.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,QAAS,SAAQ,WAAW;IACvC;;OAEG;IACH,
|
|
1
|
+
{"version":3,"file":"scaffold.d.ts","sourceRoot":"","sources":["../../../src/resources/v1/github/scaffold.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,QAAS,SAAQ,WAAW;IACvC;;OAEG;IACH,KAAK,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,eAAe,CAAC;IAI5D;;OAEG;IACH,OAAO,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,eAAe,CAAC;CAG/D;AAED;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B,OAAO,EAAE,MAAM,CAAC;IAEhB,MAAM,EAAE,MAAM,CAAC;IAEf,OAAO,EAAE,OAAO,CAAC;IAEjB,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEvB,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEtB,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE1B,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACxB;AAED,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC,OAAO,EAAE,KAAK,eAAe,IAAI,eAAe,EAAE,CAAC;CACpD"}
|
|
@@ -4,12 +4,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
4
4
|
exports.Scaffold = void 0;
|
|
5
5
|
const resource_1 = require("../../../core/resource.js");
|
|
6
6
|
class Scaffold extends resource_1.APIResource {
|
|
7
|
-
/**
|
|
8
|
-
* Get the current scaffolding status for the connected repository.
|
|
9
|
-
*/
|
|
10
|
-
getStatus(options) {
|
|
11
|
-
return this._client.get('/api/v1/github/scaffold/status', options);
|
|
12
|
-
}
|
|
13
7
|
/**
|
|
14
8
|
* Clean up partial state and retry scaffolding from scratch.
|
|
15
9
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scaffold.js","sourceRoot":"","sources":["../../../src/resources/v1/github/scaffold.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAqD;AAIrD,MAAa,QAAS,SAAQ,sBAAW;IACvC;;OAEG;IACH,
|
|
1
|
+
{"version":3,"file":"scaffold.js","sourceRoot":"","sources":["../../../src/resources/v1/github/scaffold.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAqD;AAIrD,MAAa,QAAS,SAAQ,sBAAW;IACvC;;OAEG;IACH,KAAK,CAAC,OAAwB;QAC5B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,+BAA+B,EAAE,OAAO,CAAC,CAAC;IACrE,CAAC;IAED;;OAEG;IACH,OAAO,CAAC,OAAwB;QAC9B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,yBAAyB,EAAE,OAAO,CAAC,CAAC;IAC/D,CAAC;CACF;AAdD,4BAcC"}
|
|
@@ -1,12 +1,6 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
import { APIResource } from "../../../core/resource.mjs";
|
|
3
3
|
export class Scaffold extends APIResource {
|
|
4
|
-
/**
|
|
5
|
-
* Get the current scaffolding status for the connected repository.
|
|
6
|
-
*/
|
|
7
|
-
getStatus(options) {
|
|
8
|
-
return this._client.get('/api/v1/github/scaffold/status', options);
|
|
9
|
-
}
|
|
10
4
|
/**
|
|
11
5
|
* Clean up partial state and retry scaffolding from scratch.
|
|
12
6
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scaffold.mjs","sourceRoot":"","sources":["../../../src/resources/v1/github/scaffold.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAItB,MAAM,OAAO,QAAS,SAAQ,WAAW;IACvC;;OAEG;IACH,
|
|
1
|
+
{"version":3,"file":"scaffold.mjs","sourceRoot":"","sources":["../../../src/resources/v1/github/scaffold.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAItB,MAAM,OAAO,QAAS,SAAQ,WAAW;IACvC;;OAEG;IACH,KAAK,CAAC,OAAwB;QAC5B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,+BAA+B,EAAE,OAAO,CAAC,CAAC;IACrE,CAAC;IAED;;OAEG;IACH,OAAO,CAAC,OAAwB;QAC9B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,yBAAyB,EAAE,OAAO,CAAC,CAAC;IAC/D,CAAC;CACF"}
|
|
@@ -3,14 +3,26 @@ import { APIPromise } from "../../../core/api-promise.mjs";
|
|
|
3
3
|
import { RequestOptions } from "../../../internal/request-options.mjs";
|
|
4
4
|
export declare class Webhooks extends APIResource {
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
6
|
+
* Receives and processes webhook events from GitHub.
|
|
7
7
|
*/
|
|
8
|
-
|
|
8
|
+
receive(params: WebhookReceiveParams, options?: RequestOptions): APIPromise<WebhookReceiveResponse>;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Response for successful webhook receipt.
|
|
12
|
+
*/
|
|
13
|
+
export interface WebhookReceiveResponse {
|
|
14
|
+
delivery_id: string;
|
|
15
|
+
event_type: string;
|
|
16
|
+
received: boolean;
|
|
17
|
+
message?: string | null;
|
|
18
|
+
processed?: boolean;
|
|
19
|
+
}
|
|
20
|
+
export interface WebhookReceiveParams {
|
|
21
|
+
'X-GitHub-Delivery': string;
|
|
22
|
+
'X-GitHub-Event': string;
|
|
23
|
+
'X-Hub-Signature-256': string;
|
|
9
24
|
}
|
|
10
|
-
export type WebhookPingResponse = {
|
|
11
|
-
[key: string]: string;
|
|
12
|
-
};
|
|
13
25
|
export declare namespace Webhooks {
|
|
14
|
-
export { type
|
|
26
|
+
export { type WebhookReceiveResponse as WebhookReceiveResponse, type WebhookReceiveParams as WebhookReceiveParams, };
|
|
15
27
|
}
|
|
16
28
|
//# sourceMappingURL=webhooks.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"webhooks.d.mts","sourceRoot":"","sources":["../../../src/resources/v1/github/webhooks.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;
|
|
1
|
+
{"version":3,"file":"webhooks.d.mts","sourceRoot":"","sources":["../../../src/resources/v1/github/webhooks.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAEzB,qBAAa,QAAS,SAAQ,WAAW;IACvC;;OAEG;IACH,OAAO,CAAC,MAAM,EAAE,oBAAoB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,sBAAsB,CAAC;CAkBpG;AAED;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACrC,WAAW,EAAE,MAAM,CAAC;IAEpB,UAAU,EAAE,MAAM,CAAC;IAEnB,QAAQ,EAAE,OAAO,CAAC;IAElB,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAExB,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,MAAM,WAAW,oBAAoB;IACnC,mBAAmB,EAAE,MAAM,CAAC;IAE5B,gBAAgB,EAAE,MAAM,CAAC;IAEzB,qBAAqB,EAAE,MAAM,CAAC;CAC/B;AAED,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC,OAAO,EACL,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,oBAAoB,IAAI,oBAAoB,GAClD,CAAC;CACH"}
|
|
@@ -3,14 +3,26 @@ import { APIPromise } from "../../../core/api-promise.js";
|
|
|
3
3
|
import { RequestOptions } from "../../../internal/request-options.js";
|
|
4
4
|
export declare class Webhooks extends APIResource {
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
6
|
+
* Receives and processes webhook events from GitHub.
|
|
7
7
|
*/
|
|
8
|
-
|
|
8
|
+
receive(params: WebhookReceiveParams, options?: RequestOptions): APIPromise<WebhookReceiveResponse>;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Response for successful webhook receipt.
|
|
12
|
+
*/
|
|
13
|
+
export interface WebhookReceiveResponse {
|
|
14
|
+
delivery_id: string;
|
|
15
|
+
event_type: string;
|
|
16
|
+
received: boolean;
|
|
17
|
+
message?: string | null;
|
|
18
|
+
processed?: boolean;
|
|
19
|
+
}
|
|
20
|
+
export interface WebhookReceiveParams {
|
|
21
|
+
'X-GitHub-Delivery': string;
|
|
22
|
+
'X-GitHub-Event': string;
|
|
23
|
+
'X-Hub-Signature-256': string;
|
|
9
24
|
}
|
|
10
|
-
export type WebhookPingResponse = {
|
|
11
|
-
[key: string]: string;
|
|
12
|
-
};
|
|
13
25
|
export declare namespace Webhooks {
|
|
14
|
-
export { type
|
|
26
|
+
export { type WebhookReceiveResponse as WebhookReceiveResponse, type WebhookReceiveParams as WebhookReceiveParams, };
|
|
15
27
|
}
|
|
16
28
|
//# sourceMappingURL=webhooks.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"webhooks.d.ts","sourceRoot":"","sources":["../../../src/resources/v1/github/webhooks.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;
|
|
1
|
+
{"version":3,"file":"webhooks.d.ts","sourceRoot":"","sources":["../../../src/resources/v1/github/webhooks.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAEzB,qBAAa,QAAS,SAAQ,WAAW;IACvC;;OAEG;IACH,OAAO,CAAC,MAAM,EAAE,oBAAoB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,sBAAsB,CAAC;CAkBpG;AAED;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACrC,WAAW,EAAE,MAAM,CAAC;IAEpB,UAAU,EAAE,MAAM,CAAC;IAEnB,QAAQ,EAAE,OAAO,CAAC;IAElB,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAExB,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,MAAM,WAAW,oBAAoB;IACnC,mBAAmB,EAAE,MAAM,CAAC;IAE5B,gBAAgB,EAAE,MAAM,CAAC;IAEzB,qBAAqB,EAAE,MAAM,CAAC;CAC/B;AAED,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC,OAAO,EACL,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,oBAAoB,IAAI,oBAAoB,GAClD,CAAC;CACH"}
|
|
@@ -3,12 +3,24 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
exports.Webhooks = void 0;
|
|
5
5
|
const resource_1 = require("../../../core/resource.js");
|
|
6
|
+
const headers_1 = require("../../../internal/headers.js");
|
|
6
7
|
class Webhooks extends resource_1.APIResource {
|
|
7
8
|
/**
|
|
8
|
-
*
|
|
9
|
+
* Receives and processes webhook events from GitHub.
|
|
9
10
|
*/
|
|
10
|
-
|
|
11
|
-
|
|
11
|
+
receive(params, options) {
|
|
12
|
+
const { 'X-GitHub-Delivery': xGitHubDelivery, 'X-GitHub-Event': xGitHubEvent, 'X-Hub-Signature-256': xHubSignature256, } = params;
|
|
13
|
+
return this._client.post('/api/v1/github/webhooks/receiver', {
|
|
14
|
+
...options,
|
|
15
|
+
headers: (0, headers_1.buildHeaders)([
|
|
16
|
+
{
|
|
17
|
+
'X-GitHub-Delivery': xGitHubDelivery,
|
|
18
|
+
'X-GitHub-Event': xGitHubEvent,
|
|
19
|
+
'X-Hub-Signature-256': xHubSignature256,
|
|
20
|
+
},
|
|
21
|
+
options?.headers,
|
|
22
|
+
]),
|
|
23
|
+
});
|
|
12
24
|
}
|
|
13
25
|
}
|
|
14
26
|
exports.Webhooks = Webhooks;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"webhooks.js","sourceRoot":"","sources":["../../../src/resources/v1/github/webhooks.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAqD;
|
|
1
|
+
{"version":3,"file":"webhooks.js","sourceRoot":"","sources":["../../../src/resources/v1/github/webhooks.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAqD;AAErD,0DAAyD;AAGzD,MAAa,QAAS,SAAQ,sBAAW;IACvC;;OAEG;IACH,OAAO,CAAC,MAA4B,EAAE,OAAwB;QAC5D,MAAM,EACJ,mBAAmB,EAAE,eAAe,EACpC,gBAAgB,EAAE,YAAY,EAC9B,qBAAqB,EAAE,gBAAgB,GACxC,GAAG,MAAM,CAAC;QACX,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,kCAAkC,EAAE;YAC3D,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC;gBACpB;oBACE,mBAAmB,EAAE,eAAe;oBACpC,gBAAgB,EAAE,YAAY;oBAC9B,qBAAqB,EAAE,gBAAgB;iBACxC;gBACD,OAAO,EAAE,OAAO;aACjB,CAAC;SACH,CAAC,CAAC;IACL,CAAC;CACF;AAtBD,4BAsBC"}
|