n8n-nodes-github-copilot 3.27.3 → 3.27.4

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.
@@ -0,0 +1,9 @@
1
+ import type { ICredentialType, INodeProperties, ICredentialTestRequest } from 'n8n-workflow';
2
+ export declare class GitHubCopilotOAuth2Api implements ICredentialType {
3
+ name: string;
4
+ extends: string[];
5
+ displayName: string;
6
+ documentationUrl: string;
7
+ properties: INodeProperties[];
8
+ test: ICredentialTestRequest;
9
+ }
@@ -0,0 +1,63 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GitHubCopilotOAuth2Api = void 0;
4
+ const GitHubCopilotEndpoints_1 = require("../shared/utils/GitHubCopilotEndpoints");
5
+ class GitHubCopilotOAuth2Api {
6
+ constructor() {
7
+ this.name = 'githubCopilotOAuth2Api';
8
+ this.extends = ['oAuth2Api'];
9
+ this.displayName = 'GitHub Copilot OAuth2 API';
10
+ this.documentationUrl = 'github';
11
+ this.properties = [
12
+ {
13
+ displayName: 'Grant Type',
14
+ name: 'grantType',
15
+ type: 'hidden',
16
+ default: 'authorizationCode',
17
+ },
18
+ {
19
+ displayName: 'Authorization URL',
20
+ name: 'authUrl',
21
+ type: 'hidden',
22
+ default: 'https://github.com/login/oauth/authorize',
23
+ required: true,
24
+ },
25
+ {
26
+ displayName: 'Access Token URL',
27
+ name: 'accessTokenUrl',
28
+ type: 'hidden',
29
+ default: 'https://github.com/login/oauth/access_token',
30
+ required: true,
31
+ },
32
+ {
33
+ displayName: 'Scope',
34
+ name: 'scope',
35
+ type: 'hidden',
36
+ default: 'copilot read:org repo user',
37
+ },
38
+ {
39
+ displayName: 'Auth URI Query Parameters',
40
+ name: 'authQueryParameters',
41
+ type: 'hidden',
42
+ default: '',
43
+ },
44
+ {
45
+ displayName: 'Authentication',
46
+ name: 'authentication',
47
+ type: 'hidden',
48
+ default: 'header',
49
+ },
50
+ ];
51
+ this.test = {
52
+ request: {
53
+ baseURL: GitHubCopilotEndpoints_1.GITHUB_COPILOT_API.GITHUB_BASE_URL,
54
+ url: GitHubCopilotEndpoints_1.GITHUB_COPILOT_API.ENDPOINTS.USER_COPILOT,
55
+ headers: {
56
+ 'Accept': 'application/vnd.github.v3+json',
57
+ 'User-Agent': 'n8n-GitHub-Copilot',
58
+ },
59
+ },
60
+ };
61
+ }
62
+ }
63
+ exports.GitHubCopilotOAuth2Api = GitHubCopilotOAuth2Api;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "n8n-nodes-github-copilot",
3
- "version": "3.27.3",
3
+ "version": "3.27.4",
4
4
  "description": "n8n community node for GitHub Copilot with CLI integration, Chat API access, and AI Chat Model for workflows - access GPT-5, Claude, Gemini and more using your Copilot subscription",
5
5
  "license": "MIT",
6
6
  "homepage": "https://github.com/sufficit/n8n-nodes-github-copilot",
@@ -28,7 +28,8 @@
28
28
  "n8nNodesApiVersion": 1,
29
29
  "credentials": [
30
30
  "dist/credentials/GitHubCopilotApi.credentials.js",
31
- "dist/credentials/GitHubCopilotOAuth2Api.credentials.js"
31
+ "dist/credentials/GitHubCopilotOAuth2Api.credentials.js",
32
+ "dist/credentials/GitHubCopilotOAuth2Api.credentials.oauth.js"
32
33
  ],
33
34
  "nodes": [
34
35
  "dist/nodes/GitHubCopilot/GitHubCopilot.node.js",