@activepieces/piece-github 0.7.3 → 0.8.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/package.json +10 -28
- package/src/i18n/translation.json +11 -2
- package/src/index.d.ts +5 -1
- package/src/index.d.ts.map +1 -1
- package/src/index.js +2 -1
- package/src/index.js.map +1 -1
- package/src/lib/actions/add-labels-to-issue.d.ts +28 -4
- package/src/lib/actions/add-labels-to-issue.d.ts.map +1 -1
- package/src/lib/actions/add-labels-to-issue.js +1 -1
- package/src/lib/actions/add-labels-to-issue.js.map +1 -1
- package/src/lib/actions/create-branch.d.ts +19 -3
- package/src/lib/actions/create-branch.d.ts.map +1 -1
- package/src/lib/actions/create-branch.js +2 -2
- package/src/lib/actions/create-branch.js.map +1 -1
- package/src/lib/actions/create-comment-on-a-issue.d.ts +10 -2
- package/src/lib/actions/create-comment-on-a-issue.d.ts.map +1 -1
- package/src/lib/actions/create-comment-on-a-issue.js +1 -1
- package/src/lib/actions/create-comment-on-a-issue.js.map +1 -1
- package/src/lib/actions/create-commit-comment.d.ts +10 -2
- package/src/lib/actions/create-commit-comment.d.ts.map +1 -1
- package/src/lib/actions/create-commit-comment.js +1 -1
- package/src/lib/actions/create-commit-comment.js.map +1 -1
- package/src/lib/actions/create-discussion-comment.d.ts +10 -2
- package/src/lib/actions/create-discussion-comment.d.ts.map +1 -1
- package/src/lib/actions/create-discussion-comment.js +1 -1
- package/src/lib/actions/create-discussion-comment.js.map +1 -1
- package/src/lib/actions/create-gist.d.ts +5 -1
- package/src/lib/actions/create-gist.d.ts.map +1 -1
- package/src/lib/actions/create-gist.js +6 -2
- package/src/lib/actions/create-gist.js.map +1 -1
- package/src/lib/actions/create-issue.d.ts +28 -4
- package/src/lib/actions/create-issue.d.ts.map +1 -1
- package/src/lib/actions/create-issue.js +1 -1
- package/src/lib/actions/create-issue.js.map +1 -1
- package/src/lib/actions/create-pull-request-review-comment.d.ts +10 -2
- package/src/lib/actions/create-pull-request-review-comment.d.ts.map +1 -1
- package/src/lib/actions/create-pull-request-review-comment.js +1 -1
- package/src/lib/actions/create-pull-request-review-comment.js.map +1 -1
- package/src/lib/actions/delete-branch.d.ts +19 -3
- package/src/lib/actions/delete-branch.d.ts.map +1 -1
- package/src/lib/actions/delete-branch.js +1 -1
- package/src/lib/actions/delete-branch.js.map +1 -1
- package/src/lib/actions/find-branch.d.ts +10 -2
- package/src/lib/actions/find-branch.d.ts.map +1 -1
- package/src/lib/actions/find-branch.js +1 -1
- package/src/lib/actions/find-branch.js.map +1 -1
- package/src/lib/actions/find-issue.d.ts +10 -2
- package/src/lib/actions/find-issue.d.ts.map +1 -1
- package/src/lib/actions/find-issue.js +1 -1
- package/src/lib/actions/find-issue.js.map +1 -1
- package/src/lib/actions/find-user.d.ts +5 -1
- package/src/lib/actions/find-user.d.ts.map +1 -1
- package/src/lib/actions/find-user.js +1 -1
- package/src/lib/actions/find-user.js.map +1 -1
- package/src/lib/actions/get-issue-information.d.ts +10 -2
- package/src/lib/actions/get-issue-information.d.ts.map +1 -1
- package/src/lib/actions/get-issue-information.js +1 -1
- package/src/lib/actions/get-issue-information.js.map +1 -1
- package/src/lib/actions/lock-issue.d.ts +15 -3
- package/src/lib/actions/lock-issue.d.ts.map +1 -1
- package/src/lib/actions/lock-issue.js +1 -1
- package/src/lib/actions/lock-issue.js.map +1 -1
- package/src/lib/actions/raw-graphql-query.d.ts +5 -1
- package/src/lib/actions/raw-graphql-query.d.ts.map +1 -1
- package/src/lib/actions/raw-graphql-query.js +5 -4
- package/src/lib/actions/raw-graphql-query.js.map +1 -1
- package/src/lib/actions/unlock-issue.d.ts +10 -2
- package/src/lib/actions/unlock-issue.d.ts.map +1 -1
- package/src/lib/actions/unlock-issue.js +1 -1
- package/src/lib/actions/unlock-issue.js.map +1 -1
- package/src/lib/actions/update-issue.d.ts +46 -6
- package/src/lib/actions/update-issue.d.ts.map +1 -1
- package/src/lib/actions/update-issue.js +1 -1
- package/src/lib/actions/update-issue.js.map +1 -1
- package/src/lib/auth.d.ts +11 -1
- package/src/lib/auth.d.ts.map +1 -1
- package/src/lib/auth.js +66 -2
- package/src/lib/auth.js.map +1 -1
- package/src/lib/common/auth-helpers.d.ts +20 -0
- package/src/lib/common/auth-helpers.d.ts.map +1 -0
- package/src/lib/common/auth-helpers.js +118 -0
- package/src/lib/common/auth-helpers.js.map +1 -0
- package/src/lib/common/index.d.ts +63 -10
- package/src/lib/common/index.d.ts.map +1 -1
- package/src/lib/common/index.js +49 -31
- package/src/lib/common/index.js.map +1 -1
- package/src/lib/trigger/index.d.ts +40 -8
- package/src/lib/trigger/index.d.ts.map +1 -1
- package/src/lib/trigger/index.js.map +1 -1
- package/src/lib/trigger/new-branch.d.ts +40 -8
- package/src/lib/trigger/new-branch.d.ts.map +1 -1
- package/src/lib/trigger/new-branch.js +2 -2
- package/src/lib/trigger/new-branch.js.map +1 -1
- package/src/lib/trigger/new-collaborator.d.ts +40 -8
- package/src/lib/trigger/new-collaborator.d.ts.map +1 -1
- package/src/lib/trigger/new-collaborator.js +2 -2
- package/src/lib/trigger/new-collaborator.js.map +1 -1
- package/src/lib/trigger/new-commit.d.ts +40 -8
- package/src/lib/trigger/new-commit.d.ts.map +1 -1
- package/src/lib/trigger/new-commit.js +2 -2
- package/src/lib/trigger/new-commit.js.map +1 -1
- package/src/lib/trigger/new-label.d.ts +40 -8
- package/src/lib/trigger/new-label.d.ts.map +1 -1
- package/src/lib/trigger/new-label.js +2 -2
- package/src/lib/trigger/new-label.js.map +1 -1
- package/src/lib/trigger/new-mention.d.ts +40 -8
- package/src/lib/trigger/new-mention.d.ts.map +1 -1
- package/src/lib/trigger/new-mention.js +6 -14
- package/src/lib/trigger/new-mention.js.map +1 -1
- package/src/lib/trigger/new-milestone.d.ts +40 -8
- package/src/lib/trigger/new-milestone.d.ts.map +1 -1
- package/src/lib/trigger/new-milestone.js +2 -2
- package/src/lib/trigger/new-milestone.js.map +1 -1
- package/src/lib/trigger/new-release.d.ts +40 -8
- package/src/lib/trigger/new-release.d.ts.map +1 -1
- package/src/lib/trigger/new-release.js +2 -2
- package/src/lib/trigger/new-release.js.map +1 -1
- package/src/lib/trigger/new-review-request.d.ts +40 -8
- package/src/lib/trigger/new-review-request.d.ts.map +1 -1
- package/src/lib/trigger/new-review-request.js +2 -2
- package/src/lib/trigger/new-review-request.js.map +1 -1
- package/src/lib/trigger/register-trigger.d.ts +40 -8
- package/src/lib/trigger/register-trigger.d.ts.map +1 -1
- package/src/lib/trigger/register-trigger.js +2 -2
- package/src/lib/trigger/register-trigger.js.map +1 -1
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { AppConnectionValueForAuthProperty } from '@activepieces/pieces-framework';
|
|
2
|
+
import type { githubAuth } from '../auth';
|
|
3
|
+
export declare const githubAuthHelpers: {
|
|
4
|
+
getBearerToken: (auth: GithubAuthValue) => Promise<string>;
|
|
5
|
+
};
|
|
6
|
+
export declare function isAppAuth(auth: GithubAuthValue): boolean;
|
|
7
|
+
export declare function getAuthenticatedLogin(auth: GithubAuthValue): Promise<string>;
|
|
8
|
+
export declare function signGithubAppJwt({ appId, privateKey, }: {
|
|
9
|
+
appId: string;
|
|
10
|
+
privateKey: string;
|
|
11
|
+
}): string;
|
|
12
|
+
export declare function exchangeAppJwtForInstallationToken({ jwt, installationId, }: {
|
|
13
|
+
jwt: string;
|
|
14
|
+
installationId: string;
|
|
15
|
+
}): Promise<{
|
|
16
|
+
token: string;
|
|
17
|
+
expiresAt: number;
|
|
18
|
+
}>;
|
|
19
|
+
export type GithubAuthValue = AppConnectionValueForAuthProperty<typeof githubAuth>;
|
|
20
|
+
//# sourceMappingURL=auth-helpers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"auth-helpers.d.ts","sourceRoot":"","sources":["../../../../src/lib/common/auth-helpers.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iCAAiC,EAAE,MAAM,gCAAgC,CAAC;AAGnF,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAE1C,eAAO,MAAM,iBAAiB;2BACC,eAAe,KAAG,OAAO,CAAC,MAAM,CAAC;CAO/D,CAAC;AAEF,wBAAgB,SAAS,CAAC,IAAI,EAAE,eAAe,GAAG,OAAO,CAExD;AAED,wBAAsB,qBAAqB,CACzC,IAAI,EAAE,eAAe,GACpB,OAAO,CAAC,MAAM,CAAC,CA0BjB;AAED,wBAAgB,gBAAgB,CAAC,EAC/B,KAAK,EACL,UAAU,GACX,EAAE;IACD,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;CACpB,GAAG,MAAM,CAWT;AAqBD,wBAAsB,kCAAkC,CAAC,EACvD,GAAG,EACH,cAAc,GACf,EAAE;IACD,GAAG,EAAE,MAAM,CAAC;IACZ,cAAc,EAAE,MAAM,CAAC;CACxB,GAAG,OAAO,CAAC;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,MAAM,CAAA;CAAE,CAAC,CAiBhD;AAuCD,MAAM,MAAM,eAAe,GAAG,iCAAiC,CAC7D,OAAO,UAAU,CAClB,CAAC"}
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.githubAuthHelpers = void 0;
|
|
4
|
+
exports.isAppAuth = isAppAuth;
|
|
5
|
+
exports.getAuthenticatedLogin = getAuthenticatedLogin;
|
|
6
|
+
exports.signGithubAppJwt = signGithubAppJwt;
|
|
7
|
+
exports.exchangeAppJwtForInstallationToken = exchangeAppJwtForInstallationToken;
|
|
8
|
+
const tslib_1 = require("tslib");
|
|
9
|
+
const shared_1 = require("@activepieces/shared");
|
|
10
|
+
const pieces_common_1 = require("@activepieces/pieces-common");
|
|
11
|
+
const jsonwebtoken_1 = tslib_1.__importDefault(require("jsonwebtoken"));
|
|
12
|
+
exports.githubAuthHelpers = {
|
|
13
|
+
getBearerToken: (auth) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
14
|
+
const a = auth;
|
|
15
|
+
if (isGithubAppAuth(a)) {
|
|
16
|
+
return getInstallationToken(a.props);
|
|
17
|
+
}
|
|
18
|
+
return a.access_token;
|
|
19
|
+
}),
|
|
20
|
+
};
|
|
21
|
+
function isAppAuth(auth) {
|
|
22
|
+
return isGithubAppAuth(auth);
|
|
23
|
+
}
|
|
24
|
+
function getAuthenticatedLogin(auth) {
|
|
25
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
26
|
+
const a = auth;
|
|
27
|
+
if (isGithubAppAuth(a)) {
|
|
28
|
+
const signedJwt = signGithubAppJwt({
|
|
29
|
+
appId: a.props.appId,
|
|
30
|
+
privateKey: a.props.privateKey,
|
|
31
|
+
});
|
|
32
|
+
const response = yield pieces_common_1.httpClient.sendRequest({
|
|
33
|
+
method: pieces_common_1.HttpMethod.GET,
|
|
34
|
+
url: 'https://api.github.com/app',
|
|
35
|
+
headers: {
|
|
36
|
+
Authorization: `Bearer ${signedJwt}`,
|
|
37
|
+
Accept: 'application/vnd.github+json',
|
|
38
|
+
'X-GitHub-Api-Version': '2022-11-28',
|
|
39
|
+
},
|
|
40
|
+
});
|
|
41
|
+
return `${response.body.slug}[bot]`;
|
|
42
|
+
}
|
|
43
|
+
const response = yield pieces_common_1.httpClient.sendRequest({
|
|
44
|
+
method: pieces_common_1.HttpMethod.GET,
|
|
45
|
+
url: 'https://api.github.com/user',
|
|
46
|
+
headers: {
|
|
47
|
+
Authorization: `Bearer ${a.access_token}`,
|
|
48
|
+
},
|
|
49
|
+
});
|
|
50
|
+
return response.body.login;
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
function signGithubAppJwt({ appId, privateKey, }) {
|
|
54
|
+
const nowSeconds = Math.floor(Date.now() / 1000);
|
|
55
|
+
return jsonwebtoken_1.default.sign({
|
|
56
|
+
iat: nowSeconds - JWT_CLOCK_SKEW_SECONDS,
|
|
57
|
+
exp: nowSeconds + JWT_LIFETIME_SECONDS,
|
|
58
|
+
iss: appId,
|
|
59
|
+
}, normalizePemKey(privateKey), { algorithm: 'RS256' });
|
|
60
|
+
}
|
|
61
|
+
function normalizePemKey(rawKey) {
|
|
62
|
+
var _a;
|
|
63
|
+
const escapedNewlinesReplaced = rawKey.replace(/\\n/g, '\n').trim();
|
|
64
|
+
if (escapedNewlinesReplaced.includes('\n')) {
|
|
65
|
+
return escapedNewlinesReplaced;
|
|
66
|
+
}
|
|
67
|
+
const match = escapedNewlinesReplaced.match(/^(-----BEGIN [A-Z0-9 ]+-----)(.+?)(-----END [A-Z0-9 ]+-----)$/);
|
|
68
|
+
if (!match) {
|
|
69
|
+
return escapedNewlinesReplaced;
|
|
70
|
+
}
|
|
71
|
+
const [, header, body, footer] = match;
|
|
72
|
+
const wrappedBody = (_a = body
|
|
73
|
+
.replace(/\s+/g, '')
|
|
74
|
+
.match(/.{1,64}/g)) === null || _a === void 0 ? void 0 : _a.join('\n');
|
|
75
|
+
return `${header}\n${wrappedBody}\n${footer}`;
|
|
76
|
+
}
|
|
77
|
+
function exchangeAppJwtForInstallationToken(_a) {
|
|
78
|
+
return tslib_1.__awaiter(this, arguments, void 0, function* ({ jwt, installationId, }) {
|
|
79
|
+
const response = yield pieces_common_1.httpClient.sendRequest({
|
|
80
|
+
method: pieces_common_1.HttpMethod.POST,
|
|
81
|
+
url: `https://api.github.com/app/installations/${installationId}/access_tokens`,
|
|
82
|
+
headers: {
|
|
83
|
+
Authorization: `Bearer ${jwt}`,
|
|
84
|
+
Accept: 'application/vnd.github+json',
|
|
85
|
+
'X-GitHub-Api-Version': '2022-11-28',
|
|
86
|
+
},
|
|
87
|
+
});
|
|
88
|
+
return {
|
|
89
|
+
token: response.body.token,
|
|
90
|
+
expiresAt: new Date(response.body.expires_at).getTime(),
|
|
91
|
+
};
|
|
92
|
+
});
|
|
93
|
+
}
|
|
94
|
+
function isGithubAppAuth(auth) {
|
|
95
|
+
return auth.type === shared_1.AppConnectionType.CUSTOM_AUTH;
|
|
96
|
+
}
|
|
97
|
+
function getInstallationToken(_a) {
|
|
98
|
+
return tslib_1.__awaiter(this, arguments, void 0, function* ({ appId, installationId, privateKey, }) {
|
|
99
|
+
const cacheKey = `${appId}:${installationId}`;
|
|
100
|
+
const cached = installationTokenCache.get(cacheKey);
|
|
101
|
+
const now = Date.now();
|
|
102
|
+
if (cached && cached.expiresAt - now > TOKEN_REFRESH_LEEWAY_MS) {
|
|
103
|
+
return cached.token;
|
|
104
|
+
}
|
|
105
|
+
const signedJwt = signGithubAppJwt({ appId, privateKey });
|
|
106
|
+
const { token, expiresAt } = yield exchangeAppJwtForInstallationToken({
|
|
107
|
+
jwt: signedJwt,
|
|
108
|
+
installationId,
|
|
109
|
+
});
|
|
110
|
+
installationTokenCache.set(cacheKey, { token, expiresAt });
|
|
111
|
+
return token;
|
|
112
|
+
});
|
|
113
|
+
}
|
|
114
|
+
const JWT_CLOCK_SKEW_SECONDS = 60;
|
|
115
|
+
const JWT_LIFETIME_SECONDS = 540;
|
|
116
|
+
const TOKEN_REFRESH_LEEWAY_MS = 60 * 1000;
|
|
117
|
+
const installationTokenCache = new Map();
|
|
118
|
+
//# sourceMappingURL=auth-helpers.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"auth-helpers.js","sourceRoot":"","sources":["../../../../src/lib/common/auth-helpers.ts"],"names":[],"mappings":";;;AAgBA,8BAEC;AAED,sDA4BC;AAED,4CAiBC;AAqBD,gFAuBC;;AA/GD,iDAAyD;AAEzD,+DAAqE;AACrE,wEAA+B;AAGlB,QAAA,iBAAiB,GAAG;IAC/B,cAAc,EAAE,CAAO,IAAqB,EAAmB,EAAE;QAC/D,MAAM,CAAC,GAAG,IAAkB,CAAC;QAC7B,IAAI,eAAe,CAAC,CAAC,CAAC,EAAE,CAAC;YACvB,OAAO,oBAAoB,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC;QACvC,CAAC;QACD,OAAO,CAAC,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-helpers';
|
|
2
3
|
export declare const githubCommon: {
|
|
3
4
|
baseUrl: string;
|
|
4
5
|
repositoryDropdown: import("@activepieces/pieces-framework").DropdownProperty<{
|
|
5
6
|
repo: string;
|
|
6
7
|
owner: string;
|
|
7
|
-
}, true, import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
8
|
+
}, true, (import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props> | import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
9
|
+
appId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
10
|
+
installationId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
11
|
+
privateKey: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
12
|
+
}>)[]>;
|
|
13
|
+
milestoneDropdown: (required?: boolean) => import("@activepieces/pieces-framework").DropdownProperty<number, false, (import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props> | import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
14
|
+
appId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
15
|
+
installationId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
16
|
+
privateKey: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
17
|
+
}>)[]> | import("@activepieces/pieces-framework").DropdownProperty<number, true, (import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props> | import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
18
|
+
appId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
19
|
+
installationId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
20
|
+
privateKey: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
21
|
+
}>)[]>;
|
|
22
|
+
branchDropdown: (displayName: string, desc: string, required?: boolean) => import("@activepieces/pieces-framework").DropdownProperty<string, false, (import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props> | import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
23
|
+
appId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
24
|
+
installationId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
25
|
+
privateKey: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
26
|
+
}>)[]> | import("@activepieces/pieces-framework").DropdownProperty<string, true, (import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props> | import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
27
|
+
appId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
28
|
+
installationId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
29
|
+
privateKey: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
30
|
+
}>)[]>;
|
|
31
|
+
issueDropdown: (required?: boolean) => import("@activepieces/pieces-framework").DropdownProperty<number, false, (import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props> | import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
32
|
+
appId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
33
|
+
installationId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
34
|
+
privateKey: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
35
|
+
}>)[]> | import("@activepieces/pieces-framework").DropdownProperty<number, true, (import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props> | import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
36
|
+
appId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
37
|
+
installationId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
38
|
+
privateKey: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
39
|
+
}>)[]>;
|
|
40
|
+
assigneeSingleDropdown: (required?: boolean) => import("@activepieces/pieces-framework").DropdownProperty<string, false, (import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props> | import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
41
|
+
appId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
42
|
+
installationId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
43
|
+
privateKey: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
44
|
+
}>)[]> | import("@activepieces/pieces-framework").DropdownProperty<string, true, (import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props> | import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
45
|
+
appId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
46
|
+
installationId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
47
|
+
privateKey: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
48
|
+
}>)[]>;
|
|
49
|
+
assigneeDropDown: (required?: boolean) => import("@activepieces/pieces-framework").MultiSelectDropdownProperty<string, false, (import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props> | import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
50
|
+
appId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
51
|
+
installationId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
52
|
+
privateKey: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
53
|
+
}>)[]> | import("@activepieces/pieces-framework").MultiSelectDropdownProperty<string, true, (import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props> | import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
54
|
+
appId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
55
|
+
installationId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
56
|
+
privateKey: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
57
|
+
}>)[]>;
|
|
58
|
+
labelDropDown: (required?: boolean) => import("@activepieces/pieces-framework").MultiSelectDropdownProperty<string, false, (import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props> | import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
59
|
+
appId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
60
|
+
installationId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
61
|
+
privateKey: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
62
|
+
}>)[]> | import("@activepieces/pieces-framework").MultiSelectDropdownProperty<string, true, (import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props> | import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
63
|
+
appId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
64
|
+
installationId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
65
|
+
privateKey: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
66
|
+
}>)[]>;
|
|
14
67
|
};
|
|
68
|
+
export declare function githubApiCall<T extends HttpMessageBody>({ auth, method, resourceUri, query, body, }: GithubApiCallParams): Promise<HttpResponse<T>>;
|
|
69
|
+
export declare function githubPaginatedApiCall<T extends HttpMessageBody>({ auth, method, resourceUri, query, body, }: GithubApiCallParams): Promise<T[]>;
|
|
15
70
|
export interface RepositoryProp {
|
|
16
71
|
repo: string;
|
|
17
72
|
owner: string;
|
|
18
73
|
}
|
|
19
74
|
export type RequestParams = Record<string, string | number | string[] | undefined>;
|
|
20
75
|
export type GithubApiCallParams = {
|
|
21
|
-
|
|
76
|
+
auth: GithubAuthValue;
|
|
22
77
|
method: HttpMethod;
|
|
23
78
|
resourceUri: string;
|
|
24
79
|
query?: RequestParams;
|
|
25
80
|
body?: any;
|
|
26
81
|
};
|
|
27
|
-
export declare function githubApiCall<T extends HttpMessageBody>({ accessToken, method, resourceUri, query, body, }: GithubApiCallParams): Promise<HttpResponse<T>>;
|
|
28
|
-
export declare function githubPaginatedApiCall<T extends HttpMessageBody>({ accessToken, method, resourceUri, query, body, }: GithubApiCallParams): Promise<T[]>;
|
|
29
82
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lib/common/index.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lib/common/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,eAAe,EACf,UAAU,EAEV,YAAY,EAEb,MAAM,6BAA6B,CAAC;AAIrC,OAAO,EAAqB,eAAe,EAAa,MAAM,gBAAgB,CAAC;AAE/E,eAAO,MAAM,YAAY;;;cAGb,MAAM;eAAS,MAAM;;;;;;;;;;;;;;;kCAkED,MAAM,QAAQ,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiKnD,CAAC;AA0DF,wBAAsB,aAAa,CAAC,CAAC,SAAS,eAAe,EAAE,EAC7D,IAAI,EACJ,MAAM,EACN,WAAW,EACX,KAAK,EACL,IAAI,GACL,EAAE,mBAAmB,GAAG,OAAO,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,CAyBhD;AAED,wBAAsB,sBAAsB,CAAC,CAAC,SAAS,eAAe,EAAE,EACtE,IAAI,EACJ,MAAM,EACN,WAAW,EACX,KAAK,EACL,IAAI,GACL,EAAE,mBAAmB,GAAG,OAAO,CAAC,CAAC,EAAE,CAAC,CAwBpC;AAED,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,MAAM,aAAa,GAAG,MAAM,CAChC,MAAM,EACN,MAAM,GAAG,MAAM,GAAG,MAAM,EAAE,GAAG,SAAS,CACvC,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG;IAChC,IAAI,EAAE,eAAe,CAAC;IACtB,MAAM,EAAE,UAAU,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,CAAC,EAAE,aAAa,CAAC;IACtB,IAAI,CAAC,EAAE,GAAG,CAAC;CACZ,CAAC"}
|
package/src/lib/common/index.js
CHANGED
|
@@ -8,6 +8,7 @@ const pieces_common_1 = require("@activepieces/pieces-common");
|
|
|
8
8
|
const pieces_framework_1 = require("@activepieces/pieces-framework");
|
|
9
9
|
const shared_1 = require("@activepieces/shared");
|
|
10
10
|
const auth_1 = require("../auth");
|
|
11
|
+
const auth_helpers_1 = require("./auth-helpers");
|
|
11
12
|
exports.githubCommon = {
|
|
12
13
|
baseUrl: 'https://api.github.com',
|
|
13
14
|
repositoryDropdown: pieces_framework_1.Property.Dropdown({
|
|
@@ -23,8 +24,7 @@ exports.githubCommon = {
|
|
|
23
24
|
placeholder: 'please authenticate first',
|
|
24
25
|
};
|
|
25
26
|
}
|
|
26
|
-
const
|
|
27
|
-
const repositories = yield getUserRepo(authProp);
|
|
27
|
+
const repositories = yield getUserRepo(auth);
|
|
28
28
|
return {
|
|
29
29
|
disabled: false,
|
|
30
30
|
options: repositories.map((repo) => {
|
|
@@ -55,7 +55,7 @@ exports.githubCommon = {
|
|
|
55
55
|
}
|
|
56
56
|
const { owner, repo } = repository;
|
|
57
57
|
const milestones = yield githubPaginatedApiCall({
|
|
58
|
-
|
|
58
|
+
auth: auth,
|
|
59
59
|
method: pieces_common_1.HttpMethod.GET,
|
|
60
60
|
resourceUri: `/repos/${owner}/${repo}/milestones`,
|
|
61
61
|
});
|
|
@@ -86,7 +86,7 @@ exports.githubCommon = {
|
|
|
86
86
|
}
|
|
87
87
|
const { owner, repo } = repository;
|
|
88
88
|
const branches = yield githubPaginatedApiCall({
|
|
89
|
-
|
|
89
|
+
auth: auth,
|
|
90
90
|
method: pieces_common_1.HttpMethod.GET,
|
|
91
91
|
resourceUri: `/repos/${owner}/${repo}/branches`,
|
|
92
92
|
});
|
|
@@ -116,13 +116,12 @@ exports.githubCommon = {
|
|
|
116
116
|
};
|
|
117
117
|
}
|
|
118
118
|
const { owner, repo } = repository;
|
|
119
|
-
// Fetch open issues from the repository
|
|
120
119
|
const issues = yield githubPaginatedApiCall({
|
|
121
|
-
|
|
120
|
+
auth: auth,
|
|
122
121
|
method: pieces_common_1.HttpMethod.GET,
|
|
123
122
|
resourceUri: `/repos/${owner}/${repo}/issues`,
|
|
124
123
|
query: {
|
|
125
|
-
state: 'open',
|
|
124
|
+
state: 'open',
|
|
126
125
|
},
|
|
127
126
|
});
|
|
128
127
|
return {
|
|
@@ -179,9 +178,8 @@ exports.githubCommon = {
|
|
|
179
178
|
placeholder: 'please authenticate first and select repo',
|
|
180
179
|
};
|
|
181
180
|
}
|
|
182
|
-
const authProp = auth;
|
|
183
181
|
const { owner, repo } = repository;
|
|
184
|
-
const assignees = yield getAssignee(
|
|
182
|
+
const assignees = yield getAssignee(auth, owner, repo);
|
|
185
183
|
return {
|
|
186
184
|
disabled: false,
|
|
187
185
|
options: assignees.map((assignee) => {
|
|
@@ -207,9 +205,8 @@ exports.githubCommon = {
|
|
|
207
205
|
placeholder: 'please authenticate first and select repo',
|
|
208
206
|
};
|
|
209
207
|
}
|
|
210
|
-
const authProp = auth;
|
|
211
208
|
const { owner, repo } = repository;
|
|
212
|
-
const labels = yield listIssueLabels(
|
|
209
|
+
const labels = yield listIssueLabels(auth, owner, repo);
|
|
213
210
|
return {
|
|
214
211
|
disabled: false,
|
|
215
212
|
options: labels.map((label) => {
|
|
@@ -222,38 +219,60 @@ exports.githubCommon = {
|
|
|
222
219
|
}),
|
|
223
220
|
}),
|
|
224
221
|
};
|
|
225
|
-
function getUserRepo(
|
|
222
|
+
function getUserRepo(auth) {
|
|
226
223
|
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
227
|
-
|
|
228
|
-
|
|
224
|
+
if ((0, auth_helpers_1.isAppAuth)(auth)) {
|
|
225
|
+
return getInstallationRepos(auth);
|
|
226
|
+
}
|
|
227
|
+
return githubPaginatedApiCall({
|
|
228
|
+
auth,
|
|
229
229
|
method: pieces_common_1.HttpMethod.GET,
|
|
230
230
|
resourceUri: '/user/repos',
|
|
231
231
|
});
|
|
232
|
-
return response;
|
|
233
232
|
});
|
|
234
233
|
}
|
|
235
|
-
function
|
|
234
|
+
function getInstallationRepos(auth) {
|
|
235
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
236
|
+
var _a;
|
|
237
|
+
const repos = [];
|
|
238
|
+
const qs = { page: 1, per_page: 100 };
|
|
239
|
+
while (true) {
|
|
240
|
+
const response = yield githubApiCall({
|
|
241
|
+
auth,
|
|
242
|
+
method: pieces_common_1.HttpMethod.GET,
|
|
243
|
+
resourceUri: '/installation/repositories',
|
|
244
|
+
query: qs,
|
|
245
|
+
});
|
|
246
|
+
repos.push(...response.body.repositories);
|
|
247
|
+
const linkHeader = (_a = response.headers) === null || _a === void 0 ? void 0 : _a.link;
|
|
248
|
+
if ((0, shared_1.isNil)(linkHeader) || !linkHeader.includes(`rel="next"`)) {
|
|
249
|
+
break;
|
|
250
|
+
}
|
|
251
|
+
qs.page = qs.page + 1;
|
|
252
|
+
}
|
|
253
|
+
return repos;
|
|
254
|
+
});
|
|
255
|
+
}
|
|
256
|
+
function getAssignee(auth, owner, repo) {
|
|
236
257
|
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
237
|
-
|
|
238
|
-
|
|
258
|
+
return githubPaginatedApiCall({
|
|
259
|
+
auth,
|
|
239
260
|
method: pieces_common_1.HttpMethod.GET,
|
|
240
261
|
resourceUri: `/repos/${owner}/${repo}/assignees`,
|
|
241
262
|
});
|
|
242
|
-
return response;
|
|
243
263
|
});
|
|
244
264
|
}
|
|
245
|
-
function listIssueLabels(
|
|
265
|
+
function listIssueLabels(auth, owner, repo) {
|
|
246
266
|
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
247
|
-
|
|
248
|
-
|
|
267
|
+
return githubPaginatedApiCall({
|
|
268
|
+
auth,
|
|
249
269
|
method: pieces_common_1.HttpMethod.GET,
|
|
250
270
|
resourceUri: `/repos/${owner}/${repo}/labels`,
|
|
251
271
|
});
|
|
252
|
-
return response;
|
|
253
272
|
});
|
|
254
273
|
}
|
|
255
274
|
function githubApiCall(_a) {
|
|
256
|
-
return tslib_1.__awaiter(this, arguments, void 0, function* ({
|
|
275
|
+
return tslib_1.__awaiter(this, arguments, void 0, function* ({ auth, method, resourceUri, query, body, }) {
|
|
257
276
|
const baseUrl = 'https://api.github.com';
|
|
258
277
|
const qs = {};
|
|
259
278
|
if (query) {
|
|
@@ -263,22 +282,21 @@ function githubApiCall(_a) {
|
|
|
263
282
|
}
|
|
264
283
|
}
|
|
265
284
|
}
|
|
285
|
+
const token = yield auth_helpers_1.githubAuthHelpers.getBearerToken(auth);
|
|
266
286
|
const request = {
|
|
267
287
|
method,
|
|
268
288
|
url: baseUrl + resourceUri,
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
token: accessToken,
|
|
289
|
+
headers: {
|
|
290
|
+
Authorization: `Bearer ${token}`,
|
|
272
291
|
},
|
|
273
292
|
queryParams: qs,
|
|
274
293
|
body,
|
|
275
294
|
};
|
|
276
|
-
|
|
277
|
-
return response;
|
|
295
|
+
return pieces_common_1.httpClient.sendRequest(request);
|
|
278
296
|
});
|
|
279
297
|
}
|
|
280
298
|
function githubPaginatedApiCall(_a) {
|
|
281
|
-
return tslib_1.__awaiter(this, arguments, void 0, function* ({
|
|
299
|
+
return tslib_1.__awaiter(this, arguments, void 0, function* ({ auth, method, resourceUri, query, body, }) {
|
|
282
300
|
var _b;
|
|
283
301
|
const qs = query ? query : {};
|
|
284
302
|
qs.page = 1;
|
|
@@ -287,7 +305,7 @@ function githubPaginatedApiCall(_a) {
|
|
|
287
305
|
let hasMoreItems = true;
|
|
288
306
|
do {
|
|
289
307
|
const response = yield githubApiCall({
|
|
290
|
-
|
|
308
|
+
auth,
|
|
291
309
|
method,
|
|
292
310
|
resourceUri,
|
|
293
311
|
query: qs,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/lib/common/index.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/lib/common/index.ts"],"names":[],"mappings":";;;AA6SA,sCA+BC;AAED,wDA8BC;;AA5WD,+DAOqC;AACrC,qEAA0D;AAC1D,iDAA6C;AAC7C,kCAAqC;AACrC,iDAA+E;AAElE,QAAA,YAAY,GAAG;IAC1B,OAAO,EAAE,wBAAwB;IACjC,kBAAkB,EAAE,2BAAQ,CAAC,QAAQ,CAInC;QACA,WAAW,EAAE,YAAY;QACzB,UAAU,EAAE,EAAE;QACd,IAAI,EAAE,iBAAU;QAChB,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,KAAiB,EAAE,oDAAZ,EAAE,IAAI,EAAE;YACtB,IAAI,CAAC,IAAI,EAAE,CAAC;gBACV,OAAO;oBACL,QAAQ,EAAE,IAAI;oBACd,OAAO,EAAE,EAAE;oBACX,WAAW,EAAE,2BAA2B;iBACzC,CAAC;YACJ,CAAC;YACD,MAAM,YAAY,GAAG,MAAM,WAAW,CAAC,IAAI,CAAC,CAAC;YAC7C,OAAO;gBACL,QAAQ,EAAE,KAAK;gBACf,OAAO,EAAE,YAAY,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE;oBACjC,OAAO;wBACL,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,KAAK,GAAG,GAAG,GAAG,IAAI,CAAC,IAAI;wBACzC,KAAK,EAAE;4BACL,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,KAAK;4BACvB,IAAI,EAAE,IAAI,CAAC,IAAI;yBAChB;qBACF,CAAC;gBACJ,CAAC,CAAC;aACH,CAAC;QACJ,CAAC,CAAA;KACF,CAAC;IACF,iBAAiB,EAAE,CAAC,QAAQ,GAAG,KAAK,EAAE,EAAE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QAAQ,CAAC,YAAY,CAAC,CAAC;QACzE,CAAC,QAAQ,YAAY,EAAE;QAEvB,OAAO,UAAU,CAAC;IACpB,CAAC;CAAA"}
|
|
@@ -1293,25 +1293,57 @@ export declare const registered: ({
|
|
|
1293
1293
|
ref?: undefined;
|
|
1294
1294
|
};
|
|
1295
1295
|
})[];
|
|
1296
|
-
export declare const githubTriggers: (import("@activepieces/pieces-framework").ITrigger<import("@activepieces/
|
|
1296
|
+
export declare const githubTriggers: (import("@activepieces/pieces-framework").ITrigger<import("@activepieces/shared").TriggerStrategy.WEBHOOK, (import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props> | import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
1297
|
+
appId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
1298
|
+
installationId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
1299
|
+
privateKey: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
1300
|
+
}>)[], {
|
|
1297
1301
|
repository: import("@activepieces/pieces-framework").DropdownProperty<{
|
|
1298
1302
|
repo: string;
|
|
1299
1303
|
owner: string;
|
|
1300
|
-
}, true, import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props
|
|
1301
|
-
|
|
1304
|
+
}, true, (import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props> | import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
1305
|
+
appId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
1306
|
+
installationId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
1307
|
+
privateKey: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
1308
|
+
}>)[]>;
|
|
1309
|
+
}> | import("@activepieces/pieces-framework").ITrigger<import("@activepieces/shared").TriggerStrategy.POLLING, (import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props> | import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
1310
|
+
appId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
1311
|
+
installationId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
1312
|
+
privateKey: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
1313
|
+
}>)[], {
|
|
1302
1314
|
repository: import("@activepieces/pieces-framework").DropdownProperty<{
|
|
1303
1315
|
repo: string;
|
|
1304
1316
|
owner: string;
|
|
1305
|
-
}, true, import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props
|
|
1306
|
-
|
|
1317
|
+
}, true, (import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props> | import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
1318
|
+
appId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
1319
|
+
installationId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
1320
|
+
privateKey: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
1321
|
+
}>)[]>;
|
|
1322
|
+
}> | import("@activepieces/pieces-framework").ITrigger<import("@activepieces/shared").TriggerStrategy.MANUAL, (import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props> | import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
1323
|
+
appId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
1324
|
+
installationId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
1325
|
+
privateKey: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
1326
|
+
}>)[], {
|
|
1307
1327
|
repository: import("@activepieces/pieces-framework").DropdownProperty<{
|
|
1308
1328
|
repo: string;
|
|
1309
1329
|
owner: string;
|
|
1310
|
-
}, true, import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props
|
|
1311
|
-
|
|
1330
|
+
}, true, (import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props> | import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
1331
|
+
appId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
1332
|
+
installationId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
1333
|
+
privateKey: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
1334
|
+
}>)[]>;
|
|
1335
|
+
}> | import("@activepieces/pieces-framework").ITrigger<import("@activepieces/shared").TriggerStrategy.APP_WEBHOOK, (import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props> | import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
1336
|
+
appId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
1337
|
+
installationId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
1338
|
+
privateKey: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
1339
|
+
}>)[], {
|
|
1312
1340
|
repository: import("@activepieces/pieces-framework").DropdownProperty<{
|
|
1313
1341
|
repo: string;
|
|
1314
1342
|
owner: string;
|
|
1315
|
-
}, true, import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props
|
|
1343
|
+
}, true, (import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props> | import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
1344
|
+
appId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
1345
|
+
installationId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
1346
|
+
privateKey: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
1347
|
+
}>)[]>;
|
|
1316
1348
|
}>)[];
|
|
1317
1349
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lib/trigger/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.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