n8n-nodes-agnicwallet 1.0.12 → 1.0.13
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/dist/credentials/AgnicWalletApi.credentials.js +70 -41
- package/dist/credentials/AgnicWalletOAuth2Api.credentials.js +120 -91
- package/dist/nodes/AgnicAI/AgnicAI.node.js +1160 -411
- package/dist/nodes/AgnicAILanguageModel/AgnicAILanguageModel.node.js +1016 -355
- package/dist/nodes/AgnicMCPTool/AgnicMCPTool.node.js +12330 -336
- package/dist/nodes/X402HttpRequest/X402HttpRequest.node.js +345 -310
- package/package.json +9 -8
|
@@ -1,42 +1,71 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
Object.defineProperty
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
}
|
|
42
|
-
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
20
|
+
|
|
21
|
+
// credentials/AgnicWalletApi.credentials.ts
|
|
22
|
+
var AgnicWalletApi_credentials_exports = {};
|
|
23
|
+
__export(AgnicWalletApi_credentials_exports, {
|
|
24
|
+
AgnicWalletApi: () => AgnicWalletApi
|
|
25
|
+
});
|
|
26
|
+
module.exports = __toCommonJS(AgnicWalletApi_credentials_exports);
|
|
27
|
+
var AgnicWalletApi = class {
|
|
28
|
+
constructor() {
|
|
29
|
+
this.name = "agnicWalletApi";
|
|
30
|
+
this.displayName = "AgnicWallet API";
|
|
31
|
+
this.documentationUrl = "https://github.com/agnicpay/n8n-X402-AgnicWallet#setup";
|
|
32
|
+
this.properties = [
|
|
33
|
+
{
|
|
34
|
+
displayName: "User ID",
|
|
35
|
+
name: "userId",
|
|
36
|
+
type: "string",
|
|
37
|
+
default: "",
|
|
38
|
+
required: true,
|
|
39
|
+
description: "Your AgnicWallet user ID (from dashboard)",
|
|
40
|
+
placeholder: "user_2kX9mNz8pQw7VbC"
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
displayName: "API Token",
|
|
44
|
+
name: "apiToken",
|
|
45
|
+
type: "string",
|
|
46
|
+
typeOptions: {
|
|
47
|
+
password: true
|
|
48
|
+
},
|
|
49
|
+
default: "",
|
|
50
|
+
required: true,
|
|
51
|
+
description: "Your AgnicWallet API token (starts with agnic_tok_)",
|
|
52
|
+
placeholder: "agnic_tok_sk_live_..."
|
|
53
|
+
}
|
|
54
|
+
];
|
|
55
|
+
this.authenticate = {
|
|
56
|
+
type: "generic",
|
|
57
|
+
properties: {
|
|
58
|
+
headers: {
|
|
59
|
+
"X-Agnic-Token": "={{$credentials.apiToken}}"
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
static {
|
|
65
|
+
__name(this, "AgnicWalletApi");
|
|
66
|
+
}
|
|
67
|
+
};
|
|
68
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
69
|
+
0 && (module.exports = {
|
|
70
|
+
AgnicWalletApi
|
|
71
|
+
});
|
|
@@ -1,92 +1,121 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
Object.defineProperty
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
20
|
+
|
|
21
|
+
// credentials/AgnicWalletOAuth2Api.credentials.ts
|
|
22
|
+
var AgnicWalletOAuth2Api_credentials_exports = {};
|
|
23
|
+
__export(AgnicWalletOAuth2Api_credentials_exports, {
|
|
24
|
+
AgnicWalletOAuth2Api: () => AgnicWalletOAuth2Api
|
|
25
|
+
});
|
|
26
|
+
module.exports = __toCommonJS(AgnicWalletOAuth2Api_credentials_exports);
|
|
27
|
+
var AgnicWalletOAuth2Api = class {
|
|
28
|
+
constructor() {
|
|
29
|
+
this.name = "agnicWalletOAuth2Api";
|
|
30
|
+
this.extends = ["oAuth2Api"];
|
|
31
|
+
this.displayName = "AgnicWallet OAuth2 API";
|
|
32
|
+
this.documentationUrl = "https://github.com/agnicpay/n8n-X402-AgnicWallet#readme";
|
|
33
|
+
this.properties = [
|
|
34
|
+
{
|
|
35
|
+
displayName: "Grant Type",
|
|
36
|
+
name: "grantType",
|
|
37
|
+
type: "hidden",
|
|
38
|
+
default: "authorizationCode"
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
displayName: "Authorization URL",
|
|
42
|
+
name: "authUrl",
|
|
43
|
+
type: "string",
|
|
44
|
+
default: "https://api.agnicpay.xyz/oauth/authorize",
|
|
45
|
+
required: true,
|
|
46
|
+
description: "The OAuth2 authorization endpoint"
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
displayName: "Access Token URL",
|
|
50
|
+
name: "accessTokenUrl",
|
|
51
|
+
type: "string",
|
|
52
|
+
default: "https://api.agnicpay.xyz/oauth/token",
|
|
53
|
+
required: true,
|
|
54
|
+
description: "The OAuth2 token endpoint"
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
displayName: "Client ID",
|
|
58
|
+
name: "clientId",
|
|
59
|
+
type: "string",
|
|
60
|
+
default: "n8n_default",
|
|
61
|
+
required: true,
|
|
62
|
+
description: "OAuth2 Client ID (default: n8n_default)"
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
displayName: "Client Secret",
|
|
66
|
+
name: "clientSecret",
|
|
67
|
+
type: "string",
|
|
68
|
+
typeOptions: {
|
|
69
|
+
password: true
|
|
70
|
+
},
|
|
71
|
+
default: "",
|
|
72
|
+
description: "OAuth2 Client Secret (optional for PKCE)"
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
displayName: "Scope",
|
|
76
|
+
name: "scope",
|
|
77
|
+
type: "string",
|
|
78
|
+
default: "payments:sign balance:read",
|
|
79
|
+
description: "OAuth2 scopes"
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
displayName: "Auth URI Query Parameters",
|
|
83
|
+
name: "authQueryParameters",
|
|
84
|
+
type: "string",
|
|
85
|
+
default: "",
|
|
86
|
+
description: "Additional query parameters for authorization URL"
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
displayName: "Authentication",
|
|
90
|
+
name: "authentication",
|
|
91
|
+
type: "options",
|
|
92
|
+
options: [
|
|
93
|
+
{
|
|
94
|
+
name: "Body",
|
|
95
|
+
value: "body"
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
name: "Header",
|
|
99
|
+
value: "header"
|
|
100
|
+
}
|
|
101
|
+
],
|
|
102
|
+
default: "body",
|
|
103
|
+
description: "How to send credentials"
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
displayName: "Use PKCE",
|
|
107
|
+
name: "usePKCE",
|
|
108
|
+
type: "boolean",
|
|
109
|
+
default: true,
|
|
110
|
+
description: "Whether to use PKCE (Proof Key for Code Exchange)"
|
|
111
|
+
}
|
|
112
|
+
];
|
|
113
|
+
}
|
|
114
|
+
static {
|
|
115
|
+
__name(this, "AgnicWalletOAuth2Api");
|
|
116
|
+
}
|
|
117
|
+
};
|
|
118
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
119
|
+
0 && (module.exports = {
|
|
120
|
+
AgnicWalletOAuth2Api
|
|
121
|
+
});
|