n8n-nodes-agnicwallet 1.0.12 → 1.0.14

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.
@@ -1,42 +1,71 @@
1
1
  "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.AgnicWalletApi = void 0;
4
- class AgnicWalletApi {
5
- constructor() {
6
- this.name = "agnicWalletApi";
7
- this.displayName = "AgnicWallet API";
8
- this.documentationUrl = "https://github.com/agnicpay/n8n-X402-AgnicWallet#setup";
9
- this.properties = [
10
- {
11
- displayName: "User ID",
12
- name: "userId",
13
- type: "string",
14
- default: "",
15
- required: true,
16
- description: "Your AgnicWallet user ID (from dashboard)",
17
- placeholder: "user_2kX9mNz8pQw7VbC",
18
- },
19
- {
20
- displayName: "API Token",
21
- name: "apiToken",
22
- type: "string",
23
- typeOptions: {
24
- password: true,
25
- },
26
- default: "",
27
- required: true,
28
- description: "Your AgnicWallet API token (starts with agnic_tok_)",
29
- placeholder: "agnic_tok_sk_live_...",
30
- },
31
- ];
32
- this.authenticate = {
33
- type: "generic",
34
- properties: {
35
- headers: {
36
- "X-Agnic-Token": "={{$credentials.apiToken}}",
37
- },
38
- },
39
- };
40
- }
41
- }
42
- exports.AgnicWalletApi = AgnicWalletApi;
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(exports, "__esModule", { value: true });
3
- exports.AgnicWalletOAuth2Api = void 0;
4
- class AgnicWalletOAuth2Api {
5
- constructor() {
6
- this.name = "agnicWalletOAuth2Api";
7
- this.extends = ["oAuth2Api"];
8
- this.displayName = "AgnicWallet OAuth2 API";
9
- this.documentationUrl = "https://github.com/agnicpay/n8n-X402-AgnicWallet#readme";
10
- this.properties = [
11
- {
12
- displayName: "Grant Type",
13
- name: "grantType",
14
- type: "hidden",
15
- default: "authorizationCode",
16
- },
17
- {
18
- displayName: "Authorization URL",
19
- name: "authUrl",
20
- type: "string",
21
- default: "https://api.agnicpay.xyz/oauth/authorize",
22
- required: true,
23
- description: "The OAuth2 authorization endpoint",
24
- },
25
- {
26
- displayName: "Access Token URL",
27
- name: "accessTokenUrl",
28
- type: "string",
29
- default: "https://api.agnicpay.xyz/oauth/token",
30
- required: true,
31
- description: "The OAuth2 token endpoint",
32
- },
33
- {
34
- displayName: "Client ID",
35
- name: "clientId",
36
- type: "string",
37
- default: "n8n_default",
38
- required: true,
39
- description: "OAuth2 Client ID (default: n8n_default)",
40
- },
41
- {
42
- displayName: "Client Secret",
43
- name: "clientSecret",
44
- type: "string",
45
- typeOptions: {
46
- password: true,
47
- },
48
- default: "",
49
- description: "OAuth2 Client Secret (optional for PKCE)",
50
- },
51
- {
52
- displayName: "Scope",
53
- name: "scope",
54
- type: "string",
55
- default: "payments:sign balance:read",
56
- description: "OAuth2 scopes",
57
- },
58
- {
59
- displayName: "Auth URI Query Parameters",
60
- name: "authQueryParameters",
61
- type: "string",
62
- default: "",
63
- description: "Additional query parameters for authorization URL",
64
- },
65
- {
66
- displayName: "Authentication",
67
- name: "authentication",
68
- type: "options",
69
- options: [
70
- {
71
- name: "Body",
72
- value: "body",
73
- },
74
- {
75
- name: "Header",
76
- value: "header",
77
- },
78
- ],
79
- default: "body",
80
- description: "How to send credentials",
81
- },
82
- {
83
- displayName: "Use PKCE",
84
- name: "usePKCE",
85
- type: "boolean",
86
- default: true,
87
- description: "Whether to use PKCE (Proof Key for Code Exchange)",
88
- },
89
- ];
90
- }
91
- }
92
- exports.AgnicWalletOAuth2Api = AgnicWalletOAuth2Api;
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
+ });