@activepieces/piece-github 0.8.3 → 0.8.7
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 +7 -17
- package/src/index.js +98 -75
- package/src/index.d.ts +0 -6
- package/src/index.d.ts.map +0 -1
- package/src/index.js.map +0 -1
- package/src/lib/actions/add-labels-to-issue.d.ts +0 -33
- package/src/lib/actions/add-labels-to-issue.d.ts.map +0 -1
- package/src/lib/actions/add-labels-to-issue.js +0 -41
- package/src/lib/actions/add-labels-to-issue.js.map +0 -1
- package/src/lib/actions/create-branch.d.ts +0 -25
- package/src/lib/actions/create-branch.d.ts.map +0 -1
- package/src/lib/actions/create-branch.js +0 -50
- package/src/lib/actions/create-branch.js.map +0 -1
- package/src/lib/actions/create-comment-on-a-issue.d.ts +0 -17
- package/src/lib/actions/create-comment-on-a-issue.d.ts.map +0 -1
- package/src/lib/actions/create-comment-on-a-issue.js +0 -48
- package/src/lib/actions/create-comment-on-a-issue.js.map +0 -1
- package/src/lib/actions/create-commit-comment.d.ts +0 -19
- package/src/lib/actions/create-commit-comment.d.ts.map +0 -1
- package/src/lib/actions/create-commit-comment.js +0 -65
- package/src/lib/actions/create-commit-comment.js.map +0 -1
- package/src/lib/actions/create-discussion-comment.d.ts +0 -17
- package/src/lib/actions/create-discussion-comment.d.ts.map +0 -1
- package/src/lib/actions/create-discussion-comment.js +0 -65
- package/src/lib/actions/create-discussion-comment.js.map +0 -1
- package/src/lib/actions/create-gist.d.ts +0 -11
- package/src/lib/actions/create-gist.d.ts.map +0 -1
- package/src/lib/actions/create-gist.js +0 -68
- package/src/lib/actions/create-gist.js.map +0 -1
- package/src/lib/actions/create-issue.d.ts +0 -35
- package/src/lib/actions/create-issue.d.ts.map +0 -1
- package/src/lib/actions/create-issue.js +0 -58
- package/src/lib/actions/create-issue.js.map +0 -1
- package/src/lib/actions/create-pull-request-review-comment.d.ts +0 -20
- package/src/lib/actions/create-pull-request-review-comment.d.ts.map +0 -1
- package/src/lib/actions/create-pull-request-review-comment.js +0 -66
- package/src/lib/actions/create-pull-request-review-comment.js.map +0 -1
- package/src/lib/actions/delete-branch.d.ts +0 -24
- package/src/lib/actions/delete-branch.d.ts.map +0 -1
- package/src/lib/actions/delete-branch.js +0 -36
- package/src/lib/actions/delete-branch.js.map +0 -1
- package/src/lib/actions/find-branch.d.ts +0 -16
- package/src/lib/actions/find-branch.d.ts.map +0 -1
- package/src/lib/actions/find-branch.js +0 -55
- package/src/lib/actions/find-branch.js.map +0 -1
- package/src/lib/actions/find-issue.d.ts +0 -17
- package/src/lib/actions/find-issue.d.ts.map +0 -1
- package/src/lib/actions/find-issue.js +0 -65
- package/src/lib/actions/find-issue.js.map +0 -1
- package/src/lib/actions/find-user.d.ts +0 -8
- package/src/lib/actions/find-user.d.ts.map +0 -1
- package/src/lib/actions/find-user.js +0 -54
- package/src/lib/actions/find-user.js.map +0 -1
- package/src/lib/actions/get-issue-information.d.ts +0 -16
- package/src/lib/actions/get-issue-information.d.ts.map +0 -1
- package/src/lib/actions/get-issue-information.js +0 -40
- package/src/lib/actions/get-issue-information.js.map +0 -1
- package/src/lib/actions/lock-issue.d.ts +0 -21
- package/src/lib/actions/lock-issue.d.ts.map +0 -1
- package/src/lib/actions/lock-issue.js +0 -60
- package/src/lib/actions/lock-issue.js.map +0 -1
- package/src/lib/actions/raw-graphql-query.d.ts +0 -9
- package/src/lib/actions/raw-graphql-query.d.ts.map +0 -1
- package/src/lib/actions/raw-graphql-query.js +0 -41
- package/src/lib/actions/raw-graphql-query.js.map +0 -1
- package/src/lib/actions/unlock-issue.d.ts +0 -16
- package/src/lib/actions/unlock-issue.d.ts.map +0 -1
- package/src/lib/actions/unlock-issue.js +0 -40
- package/src/lib/actions/unlock-issue.js.map +0 -1
- package/src/lib/actions/update-issue.d.ts +0 -55
- package/src/lib/actions/update-issue.d.ts.map +0 -1
- package/src/lib/actions/update-issue.js +0 -86
- package/src/lib/actions/update-issue.js.map +0 -1
- package/src/lib/auth.d.ts +0 -12
- package/src/lib/auth.d.ts.map +0 -1
- package/src/lib/auth.js +0 -75
- package/src/lib/auth.js.map +0 -1
- package/src/lib/common/auth-helpers.d.ts +0 -20
- package/src/lib/common/auth-helpers.d.ts.map +0 -1
- package/src/lib/common/auth-helpers.js +0 -118
- package/src/lib/common/auth-helpers.js.map +0 -1
- package/src/lib/common/index.d.ts +0 -82
- package/src/lib/common/index.d.ts.map +0 -1
- package/src/lib/common/index.js +0 -322
- package/src/lib/common/index.js.map +0 -1
- package/src/lib/trigger/index.d.ts +0 -1349
- package/src/lib/trigger/index.d.ts.map +0 -1
- package/src/lib/trigger/index.js +0 -1208
- package/src/lib/trigger/index.js.map +0 -1
- package/src/lib/trigger/new-branch.d.ts +0 -55
- package/src/lib/trigger/new-branch.d.ts.map +0 -1
- package/src/lib/trigger/new-branch.js +0 -81
- package/src/lib/trigger/new-branch.js.map +0 -1
- package/src/lib/trigger/new-collaborator.d.ts +0 -55
- package/src/lib/trigger/new-collaborator.d.ts.map +0 -1
- package/src/lib/trigger/new-collaborator.js +0 -88
- package/src/lib/trigger/new-collaborator.js.map +0 -1
- package/src/lib/trigger/new-commit.d.ts +0 -55
- package/src/lib/trigger/new-commit.d.ts.map +0 -1
- package/src/lib/trigger/new-commit.js +0 -88
- package/src/lib/trigger/new-commit.js.map +0 -1
- package/src/lib/trigger/new-label.d.ts +0 -55
- package/src/lib/trigger/new-label.d.ts.map +0 -1
- package/src/lib/trigger/new-label.js +0 -86
- package/src/lib/trigger/new-label.js.map +0 -1
- package/src/lib/trigger/new-mention.d.ts +0 -55
- package/src/lib/trigger/new-mention.d.ts.map +0 -1
- package/src/lib/trigger/new-mention.js +0 -101
- package/src/lib/trigger/new-mention.js.map +0 -1
- package/src/lib/trigger/new-milestone.d.ts +0 -55
- package/src/lib/trigger/new-milestone.d.ts.map +0 -1
- package/src/lib/trigger/new-milestone.js +0 -89
- package/src/lib/trigger/new-milestone.js.map +0 -1
- package/src/lib/trigger/new-release.d.ts +0 -55
- package/src/lib/trigger/new-release.d.ts.map +0 -1
- package/src/lib/trigger/new-release.js +0 -85
- package/src/lib/trigger/new-release.js.map +0 -1
- package/src/lib/trigger/new-review-request.d.ts +0 -55
- package/src/lib/trigger/new-review-request.d.ts.map +0 -1
- package/src/lib/trigger/new-review-request.js +0 -78
- package/src/lib/trigger/new-review-request.js.map +0 -1
- package/src/lib/trigger/register-trigger.d.ts +0 -60
- package/src/lib/trigger/register-trigger.d.ts.map +0 -1
- package/src/lib/trigger/register-trigger.js +0 -73
- package/src/lib/trigger/register-trigger.js.map +0 -1
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.githubLockIssueAction = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const auth_1 = require("../auth");
|
|
6
|
-
const pieces_framework_1 = require("@activepieces/pieces-framework");
|
|
7
|
-
const common_1 = require("../common");
|
|
8
|
-
const pieces_common_1 = require("@activepieces/pieces-common");
|
|
9
|
-
exports.githubLockIssueAction = (0, pieces_framework_1.createAction)({
|
|
10
|
-
auth: auth_1.githubAuth,
|
|
11
|
-
name: 'lockIssue',
|
|
12
|
-
displayName: 'Lock issue',
|
|
13
|
-
description: 'Locks the specified issue',
|
|
14
|
-
audience: 'both',
|
|
15
|
-
aiMetadata: {
|
|
16
|
-
description: 'Locks an issue (by number) so only collaborators can comment, optionally recording a lock reason (off-topic, too heated, resolved, or spam). Use to freeze discussion on an issue or pull request. Idempotent: re-locking an already-locked issue leaves it locked.',
|
|
17
|
-
idempotent: true,
|
|
18
|
-
},
|
|
19
|
-
props: {
|
|
20
|
-
repository: common_1.githubCommon.repositoryDropdown,
|
|
21
|
-
issue_number: pieces_framework_1.Property.Number({
|
|
22
|
-
displayName: 'Issue Number',
|
|
23
|
-
description: 'The number of the issue to be locked',
|
|
24
|
-
required: true,
|
|
25
|
-
}),
|
|
26
|
-
lock_reason: pieces_framework_1.Property.Dropdown({
|
|
27
|
-
auth: auth_1.githubAuth,
|
|
28
|
-
displayName: 'Lock Reason',
|
|
29
|
-
description: 'The reason for locking the issue',
|
|
30
|
-
required: false,
|
|
31
|
-
refreshers: [],
|
|
32
|
-
options: () => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
33
|
-
return {
|
|
34
|
-
options: [
|
|
35
|
-
{ value: 'off-topic', label: 'Off-topic' },
|
|
36
|
-
{ value: 'too heated', label: 'Too heated' },
|
|
37
|
-
{ value: 'resolved', label: 'Resolved' },
|
|
38
|
-
{ value: 'spam', label: 'Spam' },
|
|
39
|
-
],
|
|
40
|
-
};
|
|
41
|
-
}),
|
|
42
|
-
}),
|
|
43
|
-
},
|
|
44
|
-
run(_a) {
|
|
45
|
-
return tslib_1.__awaiter(this, arguments, void 0, function* ({ auth, propsValue }) {
|
|
46
|
-
const { issue_number, lock_reason } = propsValue;
|
|
47
|
-
const { owner, repo } = propsValue.repository;
|
|
48
|
-
const response = yield (0, common_1.githubApiCall)({
|
|
49
|
-
auth,
|
|
50
|
-
method: pieces_common_1.HttpMethod.PUT,
|
|
51
|
-
resourceUri: `/repos/${owner}/${repo}/issues/${issue_number}/lock`,
|
|
52
|
-
body: {
|
|
53
|
-
lock_reason,
|
|
54
|
-
},
|
|
55
|
-
});
|
|
56
|
-
return response;
|
|
57
|
-
});
|
|
58
|
-
},
|
|
59
|
-
});
|
|
60
|
-
//# sourceMappingURL=lock-issue.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"lock-issue.js","sourceRoot":"","sources":["../../../../src/lib/actions/lock-issue.ts"],"names":[],"mappings":";;;;AAAA,kCAAqC;AACrC,qEAAwE;AACxE,sCAAwD;AACxD,+DAAyD;AAE5C,QAAA,qBAAqB,GAAG,IAAA,+BAAY,EAAC;IAChD,IAAI,EAAE,iBAAU;IAChB,IAAI,EAAE,WAAW;IACjB,WAAW,EAAE,YAAY;IACzB,WAAW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,CAAC;YACH,OAAO,QAAQ,CAAC;QAClB,CAAC;KAAA;CACF,CAAC,CAAC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export declare const githubRawGraphqlQuery: import("@activepieces/pieces-framework").IAction<(import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props> | import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
2
|
-
appId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
3
|
-
installationId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
4
|
-
privateKey: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
5
|
-
}>)[], {
|
|
6
|
-
query: import("@activepieces/pieces-framework").LongTextProperty<true>;
|
|
7
|
-
variables: import("@activepieces/pieces-framework").ObjectProperty<false>;
|
|
8
|
-
}>;
|
|
9
|
-
//# sourceMappingURL=raw-graphql-query.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"raw-graphql-query.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/raw-graphql-query.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,qBAAqB;;;;;;;EAiChC,CAAC"}
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.githubRawGraphqlQuery = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const pieces_framework_1 = require("@activepieces/pieces-framework");
|
|
6
|
-
const auth_1 = require("../auth");
|
|
7
|
-
const pieces_common_1 = require("@activepieces/pieces-common");
|
|
8
|
-
const auth_helpers_1 = require("../common/auth-helpers");
|
|
9
|
-
exports.githubRawGraphqlQuery = (0, pieces_framework_1.createAction)({
|
|
10
|
-
name: 'rawGraphqlQuery',
|
|
11
|
-
displayName: 'Raw GraphQL query',
|
|
12
|
-
description: 'Perform a raw GraphQL query',
|
|
13
|
-
audience: 'both',
|
|
14
|
-
aiMetadata: {
|
|
15
|
-
description: "Sends an arbitrary GraphQL query or mutation to GitHub's GraphQL API with optional variables. Use as an escape hatch when no dedicated action covers the needed operation. Idempotency depends entirely on the query you pass — a read query is safe to repeat, a mutation is not.",
|
|
16
|
-
idempotent: false,
|
|
17
|
-
},
|
|
18
|
-
auth: auth_1.githubAuth,
|
|
19
|
-
props: {
|
|
20
|
-
query: pieces_framework_1.Property.LongText({ displayName: 'Query', required: true }),
|
|
21
|
-
variables: pieces_framework_1.Property.Object({ displayName: 'Parameters', required: false }),
|
|
22
|
-
},
|
|
23
|
-
run(_a) {
|
|
24
|
-
return tslib_1.__awaiter(this, arguments, void 0, function* ({ auth, propsValue }) {
|
|
25
|
-
const token = yield auth_helpers_1.githubAuthHelpers.getBearerToken(auth);
|
|
26
|
-
const response = yield pieces_common_1.httpClient.sendRequest({
|
|
27
|
-
url: 'https://api.github.com/graphql',
|
|
28
|
-
method: pieces_common_1.HttpMethod.POST,
|
|
29
|
-
headers: {
|
|
30
|
-
Authorization: `Bearer ${token}`,
|
|
31
|
-
},
|
|
32
|
-
body: JSON.stringify({
|
|
33
|
-
query: propsValue.query,
|
|
34
|
-
variables: propsValue.variables,
|
|
35
|
-
}),
|
|
36
|
-
});
|
|
37
|
-
return response;
|
|
38
|
-
});
|
|
39
|
-
},
|
|
40
|
-
});
|
|
41
|
-
//# sourceMappingURL=raw-graphql-query.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"raw-graphql-query.js","sourceRoot":"","sources":["../../../../src/lib/actions/raw-graphql-query.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AAExE,kCAAqC;AACrC,+DAAqE;AACrE,yDAA4E;AAE/D,QAAA,qBAAqB,GAAG,IAAA,+BAAY,EAAC;IAChD,IAAI,EAAE,iBAAiB;IACvB,WAAW,EAAE,mBAAmB;IAChC,WAAW,EAAE,6BAA6B;IAC1C,QAAQ,EAAE,MAAM;IAChB,UAAU,EAAE;QACV,WAAW,EACT,oRAAoR;QACtR,UAAU,EAAE,KAAK;KAClB;IACD,IAAI,EAAE,iBAAU;IAChB,KAAK,EAAE;QACL,KAAK,EAAE,2BAAQ,CAAC,QAAQ,CAAC,EAAE,WAAW,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;QAClE,SAAS,EAAE,2BAAQ,CAAC,MAAM,CAAC,EAAE,WAAW,EAAE,YAAY,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;KAC3E;IACK,GAAG;qEAAC,EAAE,IAAI,EAAE,UAAU,EAAE;YAC5B,MAAM,KAAK,GAAG,MAAM,gCAAiB,CAAC,cAAc,CAClD,IAAuB,CACxB,CAAC;YACF,MAAM,QAAQ,GAAG,MAAM,0BAAU,CAAC,WAAW,CAAC;gBAC5C,GAAG,EAAE,gCAAgC;gBACrC,MAAM,EAAE,0BAAU,CAAC,IAAI;gBACvB,OAAO,EAAE;oBACP,aAAa,EAAE,UAAU,KAAK,EAAE;iBACjC;gBACD,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC;oBACnB,KAAK,EAAE,UAAU,CAAC,KAAK;oBACvB,SAAS,EAAE,UAAU,CAAC,SAAS;iBAChC,CAAC;aACH,CAAC,CAAC;YAEH,OAAO,QAAQ,CAAC;QAClB,CAAC;KAAA;CACF,CAAC,CAAC"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
export declare const githubUnlockIssueAction: import("@activepieces/pieces-framework").IAction<(import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props> | import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
2
|
-
appId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
3
|
-
installationId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
4
|
-
privateKey: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
5
|
-
}>)[], {
|
|
6
|
-
repository: import("@activepieces/pieces-framework").DropdownProperty<{
|
|
7
|
-
repo: string;
|
|
8
|
-
owner: string;
|
|
9
|
-
}, true, (import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props> | import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
10
|
-
appId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
11
|
-
installationId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
12
|
-
privateKey: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
13
|
-
}>)[]>;
|
|
14
|
-
issue_number: import("@activepieces/pieces-framework").NumberProperty<true>;
|
|
15
|
-
}>;
|
|
16
|
-
//# sourceMappingURL=unlock-issue.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"unlock-issue.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/unlock-issue.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;EA+BlC,CAAC"}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.githubUnlockIssueAction = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const auth_1 = require("../auth");
|
|
6
|
-
const pieces_framework_1 = require("@activepieces/pieces-framework");
|
|
7
|
-
const common_1 = require("../common");
|
|
8
|
-
const pieces_common_1 = require("@activepieces/pieces-common");
|
|
9
|
-
exports.githubUnlockIssueAction = (0, pieces_framework_1.createAction)({
|
|
10
|
-
auth: auth_1.githubAuth,
|
|
11
|
-
name: 'unlockIssue',
|
|
12
|
-
displayName: 'Unlock issue',
|
|
13
|
-
description: 'Unlocks the specified issue',
|
|
14
|
-
audience: 'both',
|
|
15
|
-
aiMetadata: {
|
|
16
|
-
description: 'Removes the conversation lock from an issue (by number) so anyone can comment again. Use to re-open discussion on a previously locked issue or pull request. Idempotent: unlocking an already-unlocked issue leaves it unlocked.',
|
|
17
|
-
idempotent: true,
|
|
18
|
-
},
|
|
19
|
-
props: {
|
|
20
|
-
repository: common_1.githubCommon.repositoryDropdown,
|
|
21
|
-
issue_number: pieces_framework_1.Property.Number({
|
|
22
|
-
displayName: 'Issue Number',
|
|
23
|
-
description: 'The number of the issue to be unlocked',
|
|
24
|
-
required: true,
|
|
25
|
-
}),
|
|
26
|
-
},
|
|
27
|
-
run(_a) {
|
|
28
|
-
return tslib_1.__awaiter(this, arguments, void 0, function* ({ auth, propsValue }) {
|
|
29
|
-
const { issue_number } = propsValue;
|
|
30
|
-
const { owner, repo } = propsValue.repository;
|
|
31
|
-
const response = yield (0, common_1.githubApiCall)({
|
|
32
|
-
auth,
|
|
33
|
-
method: pieces_common_1.HttpMethod.DELETE,
|
|
34
|
-
resourceUri: `/repos/${owner}/${repo}/issues/${issue_number}/lock`,
|
|
35
|
-
});
|
|
36
|
-
return response;
|
|
37
|
-
});
|
|
38
|
-
},
|
|
39
|
-
});
|
|
40
|
-
//# sourceMappingURL=unlock-issue.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"unlock-issue.js","sourceRoot":"","sources":["../../../../src/lib/actions/unlock-issue.ts"],"names":[],"mappings":";;;;AAAA,kCAAqC;AACrC,qEAAwE;AACxE,sCAAwD;AACxD,+DAAyD;AAE5C,QAAA,uBAAuB,GAAG,IAAA,+BAAY,EAAC;IAClD,IAAI,EAAE,iBAAU;IAChB,IAAI,EAAE,aAAa;IACnB,WAAW,EAAE,cAAc;IAC3B,WAAW,EAAE,6BAA6B;IAC1C,QAAQ,EAAE,MAAM;IAChB,UAAU,EAAE;QACV,WAAW,EACT,kOAAkO;QACpO,UAAU,EAAE,IAAI;KACjB;IACD,KAAK,EAAE;QACL,UAAU,EAAE,qBAAY,CAAC,kBAAkB;QAC3C,YAAY,EAAE,2BAAQ,CAAC,MAAM,CAAC;YAC5B,WAAW,EAAE,cAAc;YAC3B,WAAW,EAAE,wCAAwC;YACrD,QAAQ,EAAE,IAAI;SACf,CAAC;KACH;IACK,GAAG;qEAAC,EAAE,IAAI,EAAE,UAAU,EAAE;YAC5B,MAAM,EAAE,YAAY,EAAE,GAAG,UAAU,CAAC;YACpC,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,GAAG,UAAU,CAAC,UAAW,CAAC;YAE/C,MAAM,QAAQ,GAAG,MAAM,IAAA,sBAAa,EAAC;gBACnC,IAAI;gBACJ,MAAM,EAAE,0BAAU,CAAC,MAAM;gBACzB,WAAW,EAAE,UAAU,KAAK,IAAI,IAAI,WAAW,YAAY,OAAO;aACnE,CAAC,CAAC;YAEH,OAAO,QAAQ,CAAC;QAClB,CAAC;KAAA;CACF,CAAC,CAAC"}
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
export declare const githubUpdateIssueAction: import("@activepieces/pieces-framework").IAction<(import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props> | import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
2
|
-
appId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
3
|
-
installationId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
4
|
-
privateKey: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
5
|
-
}>)[], {
|
|
6
|
-
repository: import("@activepieces/pieces-framework").DropdownProperty<{
|
|
7
|
-
repo: string;
|
|
8
|
-
owner: string;
|
|
9
|
-
}, true, (import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props> | import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
10
|
-
appId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
11
|
-
installationId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
12
|
-
privateKey: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
13
|
-
}>)[]>;
|
|
14
|
-
issue_number: import("@activepieces/pieces-framework").DropdownProperty<number, false, (import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props> | import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
15
|
-
appId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
16
|
-
installationId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
17
|
-
privateKey: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
18
|
-
}>)[]> | import("@activepieces/pieces-framework").DropdownProperty<number, true, (import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props> | import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
19
|
-
appId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
20
|
-
installationId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
21
|
-
privateKey: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
22
|
-
}>)[]>;
|
|
23
|
-
title: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
24
|
-
body: import("@activepieces/pieces-framework").LongTextProperty<false>;
|
|
25
|
-
state: import("@activepieces/pieces-framework").StaticDropdownProperty<string, false>;
|
|
26
|
-
state_reason: import("@activepieces/pieces-framework").StaticDropdownProperty<string, false>;
|
|
27
|
-
milestone: import("@activepieces/pieces-framework").DropdownProperty<number, false, (import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props> | import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
28
|
-
appId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
29
|
-
installationId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
30
|
-
privateKey: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
31
|
-
}>)[]> | import("@activepieces/pieces-framework").DropdownProperty<number, true, (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
|
-
}>)[]>;
|
|
36
|
-
labels: import("@activepieces/pieces-framework").MultiSelectDropdownProperty<string, false, (import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props> | import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
37
|
-
appId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
38
|
-
installationId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
39
|
-
privateKey: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
40
|
-
}>)[]> | import("@activepieces/pieces-framework").MultiSelectDropdownProperty<string, true, (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
|
-
}>)[]>;
|
|
45
|
-
assignees: import("@activepieces/pieces-framework").MultiSelectDropdownProperty<string, false, (import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props> | import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
46
|
-
appId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
47
|
-
installationId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
48
|
-
privateKey: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
49
|
-
}>)[]> | import("@activepieces/pieces-framework").MultiSelectDropdownProperty<string, true, (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
|
-
}>)[]>;
|
|
54
|
-
}>;
|
|
55
|
-
//# sourceMappingURL=update-issue.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"update-issue.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/update-issue.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA2ElC,CAAC"}
|
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.githubUpdateIssueAction = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const pieces_framework_1 = require("@activepieces/pieces-framework");
|
|
6
|
-
const auth_1 = require("../auth");
|
|
7
|
-
const common_1 = require("../common");
|
|
8
|
-
const pieces_common_1 = require("@activepieces/pieces-common");
|
|
9
|
-
exports.githubUpdateIssueAction = (0, pieces_framework_1.createAction)({
|
|
10
|
-
auth: auth_1.githubAuth,
|
|
11
|
-
name: 'update_issue',
|
|
12
|
-
displayName: 'Update Issue',
|
|
13
|
-
description: 'Updates an existing issue.',
|
|
14
|
-
audience: 'both',
|
|
15
|
-
aiMetadata: {
|
|
16
|
-
description: 'Edits an existing issue (by number) in a repository, setting only the fields you provide — title, body, state (open/closed) and state reason, milestone, labels, or assignees. Use to modify, close, or reopen an issue. Idempotent: applying the same field values again leaves the issue in the same state. Note that labels and assignees here replace the existing set rather than append.',
|
|
17
|
-
idempotent: true,
|
|
18
|
-
},
|
|
19
|
-
props: {
|
|
20
|
-
repository: common_1.githubCommon.repositoryDropdown,
|
|
21
|
-
issue_number: common_1.githubCommon.issueDropdown(),
|
|
22
|
-
title: pieces_framework_1.Property.ShortText({
|
|
23
|
-
displayName: 'Title',
|
|
24
|
-
required: false,
|
|
25
|
-
}),
|
|
26
|
-
body: pieces_framework_1.Property.LongText({
|
|
27
|
-
displayName: 'Body',
|
|
28
|
-
required: false,
|
|
29
|
-
}),
|
|
30
|
-
state: pieces_framework_1.Property.StaticDropdown({
|
|
31
|
-
displayName: 'State',
|
|
32
|
-
description: 'The new state of the issue.',
|
|
33
|
-
required: false,
|
|
34
|
-
options: {
|
|
35
|
-
options: [
|
|
36
|
-
{ label: 'Open', value: 'open' },
|
|
37
|
-
{ label: 'Closed', value: 'closed' },
|
|
38
|
-
],
|
|
39
|
-
},
|
|
40
|
-
}),
|
|
41
|
-
state_reason: pieces_framework_1.Property.StaticDropdown({
|
|
42
|
-
displayName: 'State Reason',
|
|
43
|
-
description: 'The reason for the state change. (Only used if State is changed).',
|
|
44
|
-
required: false,
|
|
45
|
-
options: {
|
|
46
|
-
options: [
|
|
47
|
-
{ label: 'Completed', value: 'completed' },
|
|
48
|
-
{ label: 'Not Planned', value: 'not_planned' },
|
|
49
|
-
{ label: 'Reopened', value: 'reopened' },
|
|
50
|
-
{ label: 'Duplicate', value: 'duplicate' },
|
|
51
|
-
],
|
|
52
|
-
},
|
|
53
|
-
}),
|
|
54
|
-
milestone: common_1.githubCommon.milestoneDropdown(false),
|
|
55
|
-
labels: common_1.githubCommon.labelDropDown(false),
|
|
56
|
-
assignees: common_1.githubCommon.assigneeDropDown(false),
|
|
57
|
-
},
|
|
58
|
-
run(_a) {
|
|
59
|
-
return tslib_1.__awaiter(this, arguments, void 0, function* ({ auth, propsValue }) {
|
|
60
|
-
const { owner, repo } = propsValue.repository;
|
|
61
|
-
const body = {};
|
|
62
|
-
if (propsValue.title !== undefined)
|
|
63
|
-
body.title = propsValue.title;
|
|
64
|
-
if (propsValue.body !== undefined)
|
|
65
|
-
body.body = propsValue.body;
|
|
66
|
-
if (propsValue.state !== undefined)
|
|
67
|
-
body.state = propsValue.state;
|
|
68
|
-
if (propsValue.state_reason !== undefined)
|
|
69
|
-
body.state_reason = propsValue.state_reason;
|
|
70
|
-
if (propsValue.assignees !== undefined)
|
|
71
|
-
body.assignees = propsValue.assignees;
|
|
72
|
-
if (propsValue.labels !== undefined)
|
|
73
|
-
body.labels = propsValue.labels;
|
|
74
|
-
if (propsValue.milestone !== undefined)
|
|
75
|
-
body.milestone = propsValue.milestone;
|
|
76
|
-
const response = yield (0, common_1.githubApiCall)({
|
|
77
|
-
auth,
|
|
78
|
-
method: pieces_common_1.HttpMethod.PATCH,
|
|
79
|
-
resourceUri: `/repos/${owner}/${repo}/issues/${propsValue.issue_number}`,
|
|
80
|
-
body: body,
|
|
81
|
-
});
|
|
82
|
-
return response;
|
|
83
|
-
});
|
|
84
|
-
},
|
|
85
|
-
});
|
|
86
|
-
//# sourceMappingURL=update-issue.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"update-issue.js","sourceRoot":"","sources":["../../../../src/lib/actions/update-issue.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AACxE,kCAAqC;AACrC,sCAAwD;AACxD,+DAAyD;AAE5C,QAAA,uBAAuB,GAAG,IAAA,+BAAY,EAAC;IAClD,IAAI,EAAE,iBAAU;IAChB,IAAI,EAAE,cAAc;IACpB,WAAW,EAAE,cAAc;IAC3B,WAAW,EAAE,4BAA4B;IACzC,QAAQ,EAAE,MAAM;IAChB,UAAU,EAAE;QACV,WAAW,EACT,gYAAgY;QAClY,UAAU,EAAE,IAAI;KACjB;IACD,KAAK,EAAE;QACL,UAAU,EAAE,qBAAY,CAAC,kBAAkB;QAC3C,YAAY,EAAE,qBAAY,CAAC,aAAa,EAAE;QAC1C,KAAK,EAAE,2BAAQ,CAAC,SAAS,CAAC;YACxB,WAAW,EAAE,OAAO;YACpB,QAAQ,EAAE,KAAK;SAChB,CAAC;QACF,IAAI,EAAE,2BAAQ,CAAC,QAAQ,CAAC;YACtB,WAAW,EAAE,MAAM;YACnB,QAAQ,EAAE,KAAK;SAChB,CAAC;QACF,KAAK,EAAE,2B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,CAAC;YAC/D,IAAI,UAAU,CAAC,KAAK,KAAK,SAAS;gBAAE,IAAI,CAAC,KAAK,GAAG,UAAU,CAAC,KAAK,CAAC;YAClE,IAAI,UAAU,CAAC,YAAY,KAAK,SAAS;gBACvC,IAAI,CAAC,YAAY,GAAG,UAAU,CAAC,YAAY,CAAC;YAC9C,IAAI,UAAU,CAAC,SAAS,KAAK,SAAS;gBACpC,IAAI,CAAC,SAAS,GAAG,UAAU,CAAC,SAAS,CAAC;YACxC,IAAI,UAAU,CAAC,MAAM,KAAK,SAAS;gBAAE,IAAI,CAAC,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC;YACrE,IAAI,UAAU,CAAC,SAAS,KAAK,SAAS;gBACpC,IAAI,CAAC,SAAS,GAAG,UAAU,CAAC,SAAS,CAAC;YAExC,MAAM,QAAQ,GAAG,MAAM,IAAA,sBAAa,EAAC;gBACnC,IAAI;gBACJ,MAAM,EAAE,0BAAU,CAAC,KAAK;gBACxB,WAAW,EAAE,UAAU,KAAK,IAAI,IAAI,WAAW,UAAU,CAAC,YAAY,EAAE;gBACxE,IAAI,EAAE,IAAI;aACX,CAAC,CAAC;YAEH,OAAO,QAAQ,CAAC;QAClB,CAAC;KAAA;CACF,CAAC,CAAC"}
|
package/src/lib/auth.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export declare const githubOAuth2Auth: import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>;
|
|
2
|
-
export declare const githubAppAuth: import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
3
|
-
appId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
4
|
-
installationId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
5
|
-
privateKey: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
6
|
-
}>;
|
|
7
|
-
export declare const githubAuth: (import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props> | import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
8
|
-
appId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
9
|
-
installationId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
10
|
-
privateKey: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
11
|
-
}>)[];
|
|
12
|
-
//# sourceMappingURL=auth.d.ts.map
|
package/src/lib/auth.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../../src/lib/auth.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,gBAAgB,+GAO3B,CAAC;AAEH,eAAO,MAAM,aAAa;;;;EAoCxB,CAAC;AAEH,eAAO,MAAM,UAAU;;;;KAAoC,CAAC"}
|
package/src/lib/auth.js
DELETED
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.githubAuth = exports.githubAppAuth = exports.githubOAuth2Auth = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const pieces_framework_1 = require("@activepieces/pieces-framework");
|
|
6
|
-
const auth_helpers_1 = require("./common/auth-helpers");
|
|
7
|
-
exports.githubOAuth2Auth = pieces_framework_1.PieceAuth.OAuth2({
|
|
8
|
-
description: "Authenticate to GitHub. Platform admins can configure this with either OAuth App credentials or GitHub App credentials (Apps use the same authorize/token endpoints — only the client_id differs). When using a GitHub App, the listed scopes are ignored and the App's installation permissions apply instead.",
|
|
9
|
-
required: true,
|
|
10
|
-
authUrl: 'https://github.com/login/oauth/authorize',
|
|
11
|
-
tokenUrl: 'https://github.com/login/oauth/access_token',
|
|
12
|
-
scope: ['admin:repo_hook', 'admin:org', 'repo', 'gist'],
|
|
13
|
-
});
|
|
14
|
-
exports.githubAppAuth = pieces_framework_1.PieceAuth.CustomAuth({
|
|
15
|
-
displayName: 'GitHub App',
|
|
16
|
-
description: "Authenticate as a GitHub App installation. Calls are made by the App's bot identity (e.g. `app-name[bot]`). The App must be installed on the target repos with the permissions required by the actions you intend to run (e.g. Issues: Read & write, Contents: Read & write, Administration: Read & write for webhook triggers).",
|
|
17
|
-
required: true,
|
|
18
|
-
props: {
|
|
19
|
-
appId: pieces_framework_1.Property.ShortText({
|
|
20
|
-
displayName: 'App ID or Client ID',
|
|
21
|
-
description: 'Either the numeric App ID (e.g. `12345`) or the Client ID (e.g. `Iv23li...`) of your GitHub App. The Client ID is recommended for new Apps. Found at Settings → Developer settings → GitHub Apps → your app.',
|
|
22
|
-
required: true,
|
|
23
|
-
}),
|
|
24
|
-
installationId: pieces_framework_1.Property.ShortText({
|
|
25
|
-
displayName: 'Installation ID',
|
|
26
|
-
description: 'The installation ID for the org/user where the App is installed. Visible in the installation URL: `…/installations/{id}`.',
|
|
27
|
-
required: true,
|
|
28
|
-
}),
|
|
29
|
-
privateKey: pieces_framework_1.PieceAuth.SecretText({
|
|
30
|
-
displayName: 'Private Key',
|
|
31
|
-
description: 'The PEM-encoded RSA private key generated for your GitHub App (paste the contents of the `.pem` file).',
|
|
32
|
-
required: true,
|
|
33
|
-
}),
|
|
34
|
-
},
|
|
35
|
-
validate: (_a) => tslib_1.__awaiter(void 0, [_a], void 0, function* ({ auth }) {
|
|
36
|
-
const { appId, installationId, privateKey } = auth;
|
|
37
|
-
const jwt = trySignJwt({ appId, privateKey });
|
|
38
|
-
if (!jwt.ok) {
|
|
39
|
-
return { valid: false, error: jwt.error };
|
|
40
|
-
}
|
|
41
|
-
const exchange = yield tryExchangeJwt({ jwt: jwt.value, installationId });
|
|
42
|
-
return exchange.ok
|
|
43
|
-
? { valid: true }
|
|
44
|
-
: { valid: false, error: exchange.error };
|
|
45
|
-
}),
|
|
46
|
-
});
|
|
47
|
-
exports.githubAuth = [exports.githubOAuth2Auth, exports.githubAppAuth];
|
|
48
|
-
function trySignJwt({ appId, privateKey, }) {
|
|
49
|
-
try {
|
|
50
|
-
return { ok: true, value: (0, auth_helpers_1.signGithubAppJwt)({ appId, privateKey }) };
|
|
51
|
-
}
|
|
52
|
-
catch (e) {
|
|
53
|
-
const message = e instanceof Error ? e.message : String(e);
|
|
54
|
-
return {
|
|
55
|
-
ok: false,
|
|
56
|
-
error: `Could not sign JWT with provided App ID / Client ID and private key: ${message}. Verify the private key is a valid PEM-encoded RSA key.`,
|
|
57
|
-
};
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
function tryExchangeJwt(_a) {
|
|
61
|
-
return tslib_1.__awaiter(this, arguments, void 0, function* ({ jwt, installationId, }) {
|
|
62
|
-
try {
|
|
63
|
-
yield (0, auth_helpers_1.exchangeAppJwtForInstallationToken)({ jwt, installationId });
|
|
64
|
-
return { ok: true };
|
|
65
|
-
}
|
|
66
|
-
catch (e) {
|
|
67
|
-
const message = e instanceof Error ? e.message : String(e);
|
|
68
|
-
return {
|
|
69
|
-
ok: false,
|
|
70
|
-
error: `Failed to obtain installation token: ${message}. Verify the Installation ID matches an installation of this App.`,
|
|
71
|
-
};
|
|
72
|
-
}
|
|
73
|
-
});
|
|
74
|
-
}
|
|
75
|
-
//# sourceMappingURL=auth.js.map
|
package/src/lib/auth.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"auth.js","sourceRoot":"","sources":["../../../src/lib/auth.ts"],"names":[],"mappings":";;;;AAAA,qEAAqE;AACrE,wDAG+B;AAElB,QAAA,gBAAgB,GAAG,4BAAS,CAAC,MAAM,CAAC;IAC/C,WAAW,EACT,iTAAiT;IACnT,QAAQ,EAAE,IAAI;IACd,OAAO,EAAE,0CAA0C;IACnD,QAAQ,EAAE,6CAA6C;IACvD,KAAK,EAAE,CAAC,iBAAiB,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,CAAC;CACxD,CAAC,CAAC;AAEU,QAAA,aAAa,GAAG,4BAAS,CAAC,UAAU,CAAC;IAChD,WAAW,EAAE,YAAY;IACzB,WAAW,EACT,kUAAkU;IACp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,IAAI,CAAC;QACH,OAAO,EAAE,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,IAAA,+BAAgB,EAAC,EAAE,KAAK,EAAE,UAAU,EAAE,CAAC,EAAE,CAAC;IACtE,CAAC;IAAC,OAAO,CAAC,EAAE,CAAC;QACX,MAAM,OAAO,GAAG,CAAC,YAAY,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;QAC3D,OAAO;YACL,EAAE,EAAE,KAAK;YACT,KAAK,EAAE,wEAAwE,OAAO,0DAA0D;SACjJ,CAAC;IACJ,CAAC;AACH,CAAC;AAED,SAAe,cAAc;iEAAC,EAC5B,GAAG,EACH,cAAc,GAIf;QACC,IAAI,CAAC;YACH,MAAM,IAAA,iDAAkC,EAAC,EAAE,GAAG,EAAE,cAAc,EAAE,CAAC,CAAC;YAClE,OAAO,EAAE,EAAE,EAAE,IAAI,EAAE,CAAC;QACtB,CAAC;QAAC,OAAO,CAAC,EAAE,CAAC;YACX,MAAM,OAAO,GAAG,CAAC,YAAY,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;YAC3D,OAAO;gBACL,EAAE,EAAE,KAAK;gBACT,KAAK,EAAE,wCAAwC,OAAO,mEAAmE;aAC1H,CAAC;QACJ,CAAC;IACH,CAAC;CAAA"}
|
|
@@ -1,20 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,118 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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,CAAC,YAAY,CAAC;IACxB,CAAC,CAAA;CACF,CAAC;AAEF,SAAgB,SAAS,CAAC,IAAqB;IAC7C,OAAO,eAAe,CAAC,IAAkB,CAAC,CAAC;AAC7C,CAAC;AAED,SAAsB,qBAAqB,CACzC,IAAqB;;QAErB,MAAM,CAAC,GAAG,IAAkB,CAAC;QAC7B,IAAI,eAAe,CAAC,CAAC,CAAC,EAAE,CAAC;YACvB,MAAM,SAAS,GAAG,gBAAgB,CAAC;gBACjC,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,KAAK;gBACpB,UAAU,EAAE,CAAC,CAAC,KAAK,CAAC,UAAU;aAC/B,CAAC,CAAC;YACH,MAAM,QAAQ,GAAG,MAAM,0BAAU,CAAC,WAAW,CAAmB;gBAC9D,MAAM,EAAE,0BAAU,CAAC,GAAG;gBACtB,GAAG,EAAE,4BAA4B;gBACjC,OAAO,EAAE;oBACP,aAAa,EAAE,UAAU,SAAS,EAAE;oBACpC,MAAM,EAAE,6BAA6B;oBACrC,sBAAsB,EAAE,YAAY;iBACrC;aACF,CAAC,CAAC;YACH,OAAO,GAAG,QAAQ,CAA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