@olane/o-tool-registry 0.6.4 → 0.6.6
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 +9 -8
- package/dist/auth/index.d.ts +0 -4
- package/dist/auth/index.d.ts.map +0 -1
- package/dist/auth/index.js +0 -3
- package/dist/auth/interfaces/index.d.ts +0 -4
- package/dist/auth/interfaces/index.d.ts.map +0 -1
- package/dist/auth/interfaces/index.js +0 -3
- package/dist/auth/interfaces/oAuth-tokens.interface.d.ts +0 -9
- package/dist/auth/interfaces/oAuth-tokens.interface.d.ts.map +0 -1
- package/dist/auth/interfaces/oAuth-tokens.interface.js +0 -1
- package/dist/auth/interfaces/oAuth-user-info.interface.d.ts +0 -8
- package/dist/auth/interfaces/oAuth-user-info.interface.d.ts.map +0 -1
- package/dist/auth/interfaces/oAuth-user-info.interface.js +0 -1
- package/dist/auth/interfaces/oAuth.config.d.ts +0 -14
- package/dist/auth/interfaces/oAuth.config.d.ts.map +0 -1
- package/dist/auth/interfaces/oAuth.config.js +0 -1
- package/dist/auth/methods/auth.methods.d.ts +0 -5
- package/dist/auth/methods/auth.methods.d.ts.map +0 -1
- package/dist/auth/methods/auth.methods.js +0 -302
- package/dist/auth/oAuth.tool.d.ts +0 -20
- package/dist/auth/oAuth.tool.d.ts.map +0 -1
- package/dist/auth/oAuth.tool.js +0 -419
- package/dist/embeddings/embeddings.tool.d.ts +0 -6
- package/dist/embeddings/embeddings.tool.d.ts.map +0 -1
- package/dist/embeddings/embeddings.tool.js +0 -11
- package/dist/embeddings/huggingface-text-embeddings.tool.d.ts +0 -9
- package/dist/embeddings/huggingface-text-embeddings.tool.d.ts.map +0 -1
- package/dist/embeddings/huggingface-text-embeddings.tool.js +0 -21
- package/dist/embeddings/index.d.ts +0 -4
- package/dist/embeddings/index.d.ts.map +0 -1
- package/dist/embeddings/index.js +0 -3
- package/dist/embeddings/methods/text-embeddings.method.d.ts +0 -5
- package/dist/embeddings/methods/text-embeddings.method.d.ts.map +0 -1
- package/dist/embeddings/methods/text-embeddings.method.js +0 -29
- package/dist/embeddings/text-embeddings.tool.d.ts +0 -9
- package/dist/embeddings/text-embeddings.tool.d.ts.map +0 -1
- package/dist/embeddings/text-embeddings.tool.js +0 -13
- package/dist/index.d.ts +0 -7
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js +0 -6
- package/dist/init.d.ts +0 -3
- package/dist/init.d.ts.map +0 -1
- package/dist/init.js +0 -36
- package/dist/intelligence/anthropic-intelligence.tool.d.ts +0 -224
- package/dist/intelligence/anthropic-intelligence.tool.d.ts.map +0 -1
- package/dist/intelligence/anthropic-intelligence.tool.js +0 -477
- package/dist/intelligence/gemini-intelligence.tool.d.ts +0 -29
- package/dist/intelligence/gemini-intelligence.tool.d.ts.map +0 -1
- package/dist/intelligence/gemini-intelligence.tool.js +0 -267
- package/dist/intelligence/index.d.ts +0 -6
- package/dist/intelligence/index.d.ts.map +0 -1
- package/dist/intelligence/index.js +0 -5
- package/dist/intelligence/intelligence.tool.d.ts +0 -11
- package/dist/intelligence/intelligence.tool.d.ts.map +0 -1
- package/dist/intelligence/intelligence.tool.js +0 -120
- package/dist/intelligence/methods/intelligence.methods.d.ts +0 -5
- package/dist/intelligence/methods/intelligence.methods.d.ts.map +0 -1
- package/dist/intelligence/methods/intelligence.methods.js +0 -98
- package/dist/intelligence/ollama-intelligence.tool.d.ts +0 -36
- package/dist/intelligence/ollama-intelligence.tool.d.ts.map +0 -1
- package/dist/intelligence/ollama-intelligence.tool.js +0 -312
- package/dist/intelligence/openai-intelligence.tool.d.ts +0 -30
- package/dist/intelligence/openai-intelligence.tool.d.ts.map +0 -1
- package/dist/intelligence/openai-intelligence.tool.js +0 -255
- package/dist/intelligence/perplexity-intelligence.tool.d.ts +0 -27
- package/dist/intelligence/perplexity-intelligence.tool.d.ts.map +0 -1
- package/dist/intelligence/perplexity-intelligence.tool.js +0 -309
- package/dist/mcp/index.d.ts +0 -3
- package/dist/mcp/index.d.ts.map +0 -1
- package/dist/mcp/index.js +0 -2
- package/dist/mcp/mcp-bridge.tool.d.ts +0 -12
- package/dist/mcp/mcp-bridge.tool.d.ts.map +0 -1
- package/dist/mcp/mcp-bridge.tool.js +0 -126
- package/dist/mcp/mcp.tool.d.ts +0 -14
- package/dist/mcp/mcp.tool.d.ts.map +0 -1
- package/dist/mcp/mcp.tool.js +0 -83
- package/dist/mcp/methods/mcp-bridge.methods.d.ts +0 -5
- package/dist/mcp/methods/mcp-bridge.methods.d.ts.map +0 -1
- package/dist/mcp/methods/mcp-bridge.methods.js +0 -79
- package/dist/nlp/index.d.ts +0 -2
- package/dist/nlp/index.d.ts.map +0 -1
- package/dist/nlp/index.js +0 -1
- package/dist/nlp/methods/nlp.methods.d.ts +0 -5
- package/dist/nlp/methods/nlp.methods.d.ts.map +0 -1
- package/dist/nlp/methods/nlp.methods.js +0 -15
- package/dist/nlp/ner.tool.d.ts +0 -7
- package/dist/nlp/ner.tool.d.ts.map +0 -1
- package/dist/nlp/ner.tool.js +0 -25
- package/dist/src/intelligence/anthropic-intelligence.tool.d.ts +0 -224
- package/dist/src/intelligence/anthropic-intelligence.tool.d.ts.map +0 -1
- package/dist/src/intelligence/anthropic-intelligence.tool.js +0 -477
- package/dist/src/intelligence/gemini-intelligence.tool.d.ts +0 -29
- package/dist/src/intelligence/gemini-intelligence.tool.d.ts.map +0 -1
- package/dist/src/intelligence/gemini-intelligence.tool.js +0 -267
- package/dist/src/intelligence/index.d.ts +0 -6
- package/dist/src/intelligence/index.d.ts.map +0 -1
- package/dist/src/intelligence/index.js +0 -5
- package/dist/src/intelligence/intelligence.tool.d.ts +0 -11
- package/dist/src/intelligence/intelligence.tool.d.ts.map +0 -1
- package/dist/src/intelligence/intelligence.tool.js +0 -134
- package/dist/src/intelligence/methods/intelligence.methods.d.ts +0 -5
- package/dist/src/intelligence/methods/intelligence.methods.d.ts.map +0 -1
- package/dist/src/intelligence/methods/intelligence.methods.js +0 -132
- package/dist/src/intelligence/ollama-intelligence.tool.d.ts +0 -36
- package/dist/src/intelligence/ollama-intelligence.tool.d.ts.map +0 -1
- package/dist/src/intelligence/ollama-intelligence.tool.js +0 -312
- package/dist/src/intelligence/openai-intelligence.tool.d.ts +0 -30
- package/dist/src/intelligence/openai-intelligence.tool.d.ts.map +0 -1
- package/dist/src/intelligence/openai-intelligence.tool.js +0 -255
- package/dist/src/intelligence/perplexity-intelligence.tool.d.ts +0 -28
- package/dist/src/intelligence/perplexity-intelligence.tool.d.ts.map +0 -1
- package/dist/src/intelligence/perplexity-intelligence.tool.js +0 -310
- package/dist/src/mcp/index.d.ts +0 -3
- package/dist/src/mcp/index.d.ts.map +0 -1
- package/dist/src/mcp/index.js +0 -2
- package/dist/src/mcp/mcp-bridge.tool.d.ts +0 -12
- package/dist/src/mcp/mcp-bridge.tool.d.ts.map +0 -1
- package/dist/src/mcp/mcp-bridge.tool.js +0 -107
- package/dist/src/mcp/mcp.tool.d.ts +0 -15
- package/dist/src/mcp/mcp.tool.d.ts.map +0 -1
- package/dist/src/mcp/mcp.tool.js +0 -85
- package/dist/src/mcp/methods/mcp-bridge.methods.d.ts +0 -5
- package/dist/src/mcp/methods/mcp-bridge.methods.d.ts.map +0 -1
- package/dist/src/mcp/methods/mcp-bridge.methods.js +0 -58
- package/dist/vector-store/index.d.ts +0 -3
- package/dist/vector-store/index.d.ts.map +0 -1
- package/dist/vector-store/index.js +0 -2
- package/dist/vector-store/langchain-memory.vector-store.tool.d.ts +0 -14
- package/dist/vector-store/langchain-memory.vector-store.tool.d.ts.map +0 -1
- package/dist/vector-store/langchain-memory.vector-store.tool.js +0 -60
- package/dist/vector-store/methods/vector-store.methods.d.ts +0 -5
- package/dist/vector-store/methods/vector-store.methods.d.ts.map +0 -1
- package/dist/vector-store/methods/vector-store.methods.js +0 -60
- package/dist/vector-store/vector-memory.tool.d.ts +0 -11
- package/dist/vector-store/vector-memory.tool.d.ts.map +0 -1
- package/dist/vector-store/vector-memory.tool.js +0 -13
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@olane/o-tool-registry",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.6",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "dist/src/index.js",
|
|
6
6
|
"types": "dist/src/index.d.ts",
|
|
@@ -41,6 +41,7 @@
|
|
|
41
41
|
"@types/jest": "^30.0.0",
|
|
42
42
|
"@typescript-eslint/eslint-plugin": "^8.34.1",
|
|
43
43
|
"@typescript-eslint/parser": "^8.34.1",
|
|
44
|
+
"aegir": "^47.0.21",
|
|
44
45
|
"eslint": "^9.29.0",
|
|
45
46
|
"eslint-config-prettier": "^10.1.6",
|
|
46
47
|
"eslint-plugin-prettier": "^5.5.0",
|
|
@@ -54,13 +55,13 @@
|
|
|
54
55
|
"typescript": "5.4.5"
|
|
55
56
|
},
|
|
56
57
|
"peerDependencies": {
|
|
57
|
-
"@olane/o-config": "^0.6.
|
|
58
|
-
"@olane/o-core": "^0.6.
|
|
59
|
-
"@olane/o-intelligence": "^0.6.
|
|
60
|
-
"@olane/o-mcp": "^0.6.
|
|
61
|
-
"@olane/o-protocol": "^0.6.
|
|
62
|
-
"@olane/o-tool": "^0.6.
|
|
63
|
-
"@olane/o-tools-common": "^0.6.
|
|
58
|
+
"@olane/o-config": "^0.6.6",
|
|
59
|
+
"@olane/o-core": "^0.6.6",
|
|
60
|
+
"@olane/o-intelligence": "^0.6.4",
|
|
61
|
+
"@olane/o-mcp": "^0.6.4",
|
|
62
|
+
"@olane/o-protocol": "^0.6.6",
|
|
63
|
+
"@olane/o-tool": "^0.6.6",
|
|
64
|
+
"@olane/o-tools-common": "^0.6.6"
|
|
64
65
|
},
|
|
65
66
|
"dependencies": {
|
|
66
67
|
"@huggingface/transformers": "^3.5.2",
|
package/dist/auth/index.d.ts
DELETED
package/dist/auth/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/auth/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,uBAAuB,CAAC"}
|
package/dist/auth/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/auth/interfaces/index.ts"],"names":[],"mappings":"AAAA,cAAc,6BAA6B,CAAC;AAC5C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,mBAAmB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"oAuth-tokens.interface.d.ts","sourceRoot":"","sources":["../../../src/auth/interfaces/oAuth-tokens.interface.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,WAAW;IAC1B,YAAY,EAAE,MAAM,CAAC;IACrB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACpB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"oAuth-user-info.interface.d.ts","sourceRoot":"","sources":["../../../src/auth/interfaces/oAuth-user-info.interface.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,aAAa;IAC5B,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACpB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
export interface OAuthConfig {
|
|
2
|
-
clientId: string;
|
|
3
|
-
clientSecret?: string;
|
|
4
|
-
redirectUri: string;
|
|
5
|
-
authorizationUrl: string;
|
|
6
|
-
tokenUrl: string;
|
|
7
|
-
userInfoUrl?: string;
|
|
8
|
-
scope?: string;
|
|
9
|
-
responseType?: 'code' | 'token';
|
|
10
|
-
grantType?: 'authorization_code' | 'client_credentials' | 'refresh_token';
|
|
11
|
-
tokenValidationUrl?: string;
|
|
12
|
-
tokenRevocationUrl?: string;
|
|
13
|
-
}
|
|
14
|
-
//# sourceMappingURL=oAuth.config.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"oAuth.config.d.ts","sourceRoot":"","sources":["../../../src/auth/interfaces/oAuth.config.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,WAAW;IAC1B,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,WAAW,EAAE,MAAM,CAAC;IACpB,gBAAgB,EAAE,MAAM,CAAC;IACzB,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;IAChC,SAAS,CAAC,EAAE,oBAAoB,GAAG,oBAAoB,GAAG,eAAe,CAAC;IAC1E,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"auth.methods.d.ts","sourceRoot":"","sources":["../../../src/auth/methods/auth.methods.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAE5C,eAAO,MAAM,YAAY,EAAE;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;CAwTlD,CAAC"}
|
|
@@ -1,302 +0,0 @@
|
|
|
1
|
-
export const oauthMethods = {
|
|
2
|
-
configure: {
|
|
3
|
-
name: 'configure',
|
|
4
|
-
description: 'Configure OAuth service settings',
|
|
5
|
-
dependencies: [],
|
|
6
|
-
parameters: [
|
|
7
|
-
{
|
|
8
|
-
name: 'serviceName',
|
|
9
|
-
type: 'string',
|
|
10
|
-
value: 'string',
|
|
11
|
-
description: 'Name of the OAuth service (e.g., myapp-auth, custom-provider)',
|
|
12
|
-
required: true,
|
|
13
|
-
},
|
|
14
|
-
{
|
|
15
|
-
name: 'clientId',
|
|
16
|
-
type: 'string',
|
|
17
|
-
value: 'string',
|
|
18
|
-
description: 'OAuth client ID from your service',
|
|
19
|
-
required: true,
|
|
20
|
-
},
|
|
21
|
-
{
|
|
22
|
-
name: 'clientSecret',
|
|
23
|
-
type: 'string',
|
|
24
|
-
value: 'string',
|
|
25
|
-
description: 'OAuth client secret (optional for public clients)',
|
|
26
|
-
required: false,
|
|
27
|
-
},
|
|
28
|
-
{
|
|
29
|
-
name: 'redirectUri',
|
|
30
|
-
type: 'string',
|
|
31
|
-
value: 'string',
|
|
32
|
-
description: 'OAuth redirect URI registered with your service',
|
|
33
|
-
required: true,
|
|
34
|
-
},
|
|
35
|
-
{
|
|
36
|
-
name: 'authorizationUrl',
|
|
37
|
-
type: 'string',
|
|
38
|
-
value: 'string',
|
|
39
|
-
description: 'OAuth authorization endpoint URL from your service',
|
|
40
|
-
required: true,
|
|
41
|
-
},
|
|
42
|
-
{
|
|
43
|
-
name: 'tokenUrl',
|
|
44
|
-
type: 'string',
|
|
45
|
-
value: 'string',
|
|
46
|
-
description: 'OAuth token endpoint URL from your service',
|
|
47
|
-
required: true,
|
|
48
|
-
},
|
|
49
|
-
{
|
|
50
|
-
name: 'userInfoUrl',
|
|
51
|
-
type: 'string',
|
|
52
|
-
value: 'string',
|
|
53
|
-
description: 'User info endpoint URL from your service',
|
|
54
|
-
required: false,
|
|
55
|
-
},
|
|
56
|
-
{
|
|
57
|
-
name: 'scope',
|
|
58
|
-
type: 'string',
|
|
59
|
-
value: 'string',
|
|
60
|
-
description: 'OAuth scope (default: openid profile email)',
|
|
61
|
-
required: false,
|
|
62
|
-
},
|
|
63
|
-
{
|
|
64
|
-
name: 'responseType',
|
|
65
|
-
type: 'string',
|
|
66
|
-
value: 'string',
|
|
67
|
-
description: 'OAuth response type (default: code)',
|
|
68
|
-
required: false,
|
|
69
|
-
},
|
|
70
|
-
{
|
|
71
|
-
name: 'grantType',
|
|
72
|
-
type: 'string',
|
|
73
|
-
value: 'string',
|
|
74
|
-
description: 'OAuth grant type (default: authorization_code)',
|
|
75
|
-
required: false,
|
|
76
|
-
},
|
|
77
|
-
{
|
|
78
|
-
name: 'tokenValidationUrl',
|
|
79
|
-
type: 'string',
|
|
80
|
-
value: 'string',
|
|
81
|
-
description: 'Token validation endpoint URL from your service',
|
|
82
|
-
required: false,
|
|
83
|
-
},
|
|
84
|
-
{
|
|
85
|
-
name: 'tokenRevocationUrl',
|
|
86
|
-
type: 'string',
|
|
87
|
-
value: 'string',
|
|
88
|
-
description: 'Token revocation endpoint URL from your service',
|
|
89
|
-
required: false,
|
|
90
|
-
},
|
|
91
|
-
],
|
|
92
|
-
},
|
|
93
|
-
getAuthorizationUrl: {
|
|
94
|
-
name: 'getAuthorizationUrl',
|
|
95
|
-
description: 'Get OAuth authorization URL',
|
|
96
|
-
dependencies: [],
|
|
97
|
-
parameters: [
|
|
98
|
-
{
|
|
99
|
-
name: 'serviceName',
|
|
100
|
-
type: 'string',
|
|
101
|
-
value: 'string',
|
|
102
|
-
description: 'Name of the OAuth service',
|
|
103
|
-
required: true,
|
|
104
|
-
},
|
|
105
|
-
{
|
|
106
|
-
name: 'state',
|
|
107
|
-
type: 'string',
|
|
108
|
-
value: 'string',
|
|
109
|
-
description: 'OAuth state parameter for CSRF protection',
|
|
110
|
-
required: false,
|
|
111
|
-
},
|
|
112
|
-
{
|
|
113
|
-
name: 'scope',
|
|
114
|
-
type: 'string',
|
|
115
|
-
value: 'string',
|
|
116
|
-
description: 'Override default scope',
|
|
117
|
-
required: false,
|
|
118
|
-
},
|
|
119
|
-
{
|
|
120
|
-
name: 'additionalParams',
|
|
121
|
-
type: 'object',
|
|
122
|
-
value: 'object',
|
|
123
|
-
description: 'Additional query parameters to include in authorization URL',
|
|
124
|
-
required: false,
|
|
125
|
-
},
|
|
126
|
-
],
|
|
127
|
-
},
|
|
128
|
-
exchangeCode: {
|
|
129
|
-
name: 'exchangeCode',
|
|
130
|
-
description: 'Exchange authorization code for access token',
|
|
131
|
-
dependencies: [],
|
|
132
|
-
parameters: [
|
|
133
|
-
{
|
|
134
|
-
name: 'serviceName',
|
|
135
|
-
type: 'string',
|
|
136
|
-
value: 'string',
|
|
137
|
-
description: 'Name of the OAuth service',
|
|
138
|
-
required: true,
|
|
139
|
-
},
|
|
140
|
-
{
|
|
141
|
-
name: 'code',
|
|
142
|
-
type: 'string',
|
|
143
|
-
value: 'string',
|
|
144
|
-
description: 'Authorization code from OAuth callback',
|
|
145
|
-
required: true,
|
|
146
|
-
},
|
|
147
|
-
{
|
|
148
|
-
name: 'state',
|
|
149
|
-
type: 'string',
|
|
150
|
-
value: 'string',
|
|
151
|
-
description: 'OAuth state parameter',
|
|
152
|
-
required: false,
|
|
153
|
-
},
|
|
154
|
-
],
|
|
155
|
-
},
|
|
156
|
-
refreshToken: {
|
|
157
|
-
name: 'refreshToken',
|
|
158
|
-
description: 'Refresh access token using refresh token',
|
|
159
|
-
dependencies: [],
|
|
160
|
-
parameters: [
|
|
161
|
-
{
|
|
162
|
-
name: 'serviceName',
|
|
163
|
-
type: 'string',
|
|
164
|
-
value: 'string',
|
|
165
|
-
description: 'Name of the OAuth service',
|
|
166
|
-
required: true,
|
|
167
|
-
},
|
|
168
|
-
{
|
|
169
|
-
name: 'refreshToken',
|
|
170
|
-
type: 'string',
|
|
171
|
-
value: 'string',
|
|
172
|
-
description: 'Refresh token to exchange for new access token',
|
|
173
|
-
required: true,
|
|
174
|
-
},
|
|
175
|
-
],
|
|
176
|
-
},
|
|
177
|
-
getUserInfo: {
|
|
178
|
-
name: 'getUserInfo',
|
|
179
|
-
description: 'Get user information using access token',
|
|
180
|
-
dependencies: [],
|
|
181
|
-
parameters: [
|
|
182
|
-
{
|
|
183
|
-
name: 'serviceName',
|
|
184
|
-
type: 'string',
|
|
185
|
-
value: 'string',
|
|
186
|
-
description: 'Name of the OAuth service',
|
|
187
|
-
required: true,
|
|
188
|
-
},
|
|
189
|
-
{
|
|
190
|
-
name: 'accessToken',
|
|
191
|
-
type: 'string',
|
|
192
|
-
value: 'string',
|
|
193
|
-
description: 'Access token to use for user info request',
|
|
194
|
-
required: true,
|
|
195
|
-
},
|
|
196
|
-
{
|
|
197
|
-
name: 'userInfoUrl',
|
|
198
|
-
type: 'string',
|
|
199
|
-
value: 'string',
|
|
200
|
-
description: 'Override default user info URL',
|
|
201
|
-
required: false,
|
|
202
|
-
},
|
|
203
|
-
],
|
|
204
|
-
},
|
|
205
|
-
validateToken: {
|
|
206
|
-
name: 'validateToken',
|
|
207
|
-
description: 'Validate access token',
|
|
208
|
-
dependencies: [],
|
|
209
|
-
parameters: [
|
|
210
|
-
{
|
|
211
|
-
name: 'serviceName',
|
|
212
|
-
type: 'string',
|
|
213
|
-
value: 'string',
|
|
214
|
-
description: 'Name of the OAuth service',
|
|
215
|
-
required: true,
|
|
216
|
-
},
|
|
217
|
-
{
|
|
218
|
-
name: 'accessToken',
|
|
219
|
-
type: 'string',
|
|
220
|
-
value: 'string',
|
|
221
|
-
description: 'Access token to validate',
|
|
222
|
-
required: true,
|
|
223
|
-
},
|
|
224
|
-
{
|
|
225
|
-
name: 'tokenValidationUrl',
|
|
226
|
-
type: 'string',
|
|
227
|
-
value: 'string',
|
|
228
|
-
description: 'Override default token validation URL',
|
|
229
|
-
required: false,
|
|
230
|
-
},
|
|
231
|
-
],
|
|
232
|
-
},
|
|
233
|
-
revokeToken: {
|
|
234
|
-
name: 'revokeToken',
|
|
235
|
-
description: 'Revoke access or refresh token',
|
|
236
|
-
dependencies: [],
|
|
237
|
-
parameters: [
|
|
238
|
-
{
|
|
239
|
-
name: 'serviceName',
|
|
240
|
-
type: 'string',
|
|
241
|
-
value: 'string',
|
|
242
|
-
description: 'Name of the OAuth service',
|
|
243
|
-
required: true,
|
|
244
|
-
},
|
|
245
|
-
{
|
|
246
|
-
name: 'token',
|
|
247
|
-
type: 'string',
|
|
248
|
-
value: 'string',
|
|
249
|
-
description: 'Token to revoke (access or refresh token)',
|
|
250
|
-
required: true,
|
|
251
|
-
},
|
|
252
|
-
{
|
|
253
|
-
name: 'tokenType',
|
|
254
|
-
type: 'string',
|
|
255
|
-
value: 'string',
|
|
256
|
-
description: 'Type of token to revoke (access_token or refresh_token)',
|
|
257
|
-
required: false,
|
|
258
|
-
},
|
|
259
|
-
{
|
|
260
|
-
name: 'tokenRevocationUrl',
|
|
261
|
-
type: 'string',
|
|
262
|
-
value: 'string',
|
|
263
|
-
description: 'Override default token revocation URL',
|
|
264
|
-
required: false,
|
|
265
|
-
},
|
|
266
|
-
],
|
|
267
|
-
},
|
|
268
|
-
listServices: {
|
|
269
|
-
name: 'listServices',
|
|
270
|
-
description: 'List all configured OAuth services',
|
|
271
|
-
dependencies: [],
|
|
272
|
-
parameters: [],
|
|
273
|
-
},
|
|
274
|
-
getStoredTokens: {
|
|
275
|
-
name: 'getStoredTokens',
|
|
276
|
-
description: 'Get stored tokens for OAuth service',
|
|
277
|
-
dependencies: [],
|
|
278
|
-
parameters: [
|
|
279
|
-
{
|
|
280
|
-
name: 'serviceName',
|
|
281
|
-
type: 'string',
|
|
282
|
-
value: 'string',
|
|
283
|
-
description: 'Name of the OAuth service (if not provided, returns all)',
|
|
284
|
-
required: false,
|
|
285
|
-
},
|
|
286
|
-
],
|
|
287
|
-
},
|
|
288
|
-
clearTokens: {
|
|
289
|
-
name: 'clearTokens',
|
|
290
|
-
description: 'Clear stored tokens for OAuth service',
|
|
291
|
-
dependencies: [],
|
|
292
|
-
parameters: [
|
|
293
|
-
{
|
|
294
|
-
name: 'serviceName',
|
|
295
|
-
type: 'string',
|
|
296
|
-
value: 'string',
|
|
297
|
-
description: 'Name of the OAuth service (if not provided, clears all)',
|
|
298
|
-
required: false,
|
|
299
|
-
},
|
|
300
|
-
],
|
|
301
|
-
},
|
|
302
|
-
};
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { oToolConfig, oVirtualTool } from '@olane/o-tool';
|
|
2
|
-
export declare class OAuthTool extends oVirtualTool {
|
|
3
|
-
private oauthConfigs;
|
|
4
|
-
private tokenStore;
|
|
5
|
-
constructor(config: oToolConfig);
|
|
6
|
-
_tool_configure(request: any): Promise<any>;
|
|
7
|
-
_tool_getAuthorizationUrl(request: any): Promise<any>;
|
|
8
|
-
_tool_exchangeCode(request: any): Promise<any>;
|
|
9
|
-
_tool_refreshToken(request: any): Promise<any>;
|
|
10
|
-
_tool_getUserInfo(request: any): Promise<any>;
|
|
11
|
-
_tool_validateToken(request: any): Promise<any>;
|
|
12
|
-
_tool_revokeToken(request: any): Promise<any>;
|
|
13
|
-
_tool_listServices(request: any): Promise<any>;
|
|
14
|
-
_tool_getStoredTokens(request: any): Promise<any>;
|
|
15
|
-
_tool_clearTokens(request: any): Promise<any>;
|
|
16
|
-
private generateCodeVerifier;
|
|
17
|
-
private generateCodeChallenge;
|
|
18
|
-
private base64URLEncode;
|
|
19
|
-
}
|
|
20
|
-
//# sourceMappingURL=oAuth.tool.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"oAuth.tool.d.ts","sourceRoot":"","sources":["../../src/auth/oAuth.tool.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAO1D,qBAAa,SAAU,SAAQ,YAAY;IACzC,OAAO,CAAC,YAAY,CAAuC;IAC3D,OAAO,CAAC,UAAU,CAAuC;gBAE7C,MAAM,EAAE,WAAW;IAWzB,eAAe,CAAC,OAAO,EAAE,GAAG,GAAG,OAAO,CAAC,GAAG,CAAC;IAuC3C,yBAAyB,CAAC,OAAO,EAAE,GAAG,GAAG,OAAO,CAAC,GAAG,CAAC;IAqDrD,kBAAkB,CAAC,OAAO,EAAE,GAAG,GAAG,OAAO,CAAC,GAAG,CAAC;IAuE9C,kBAAkB,CAAC,OAAO,EAAE,GAAG,GAAG,OAAO,CAAC,GAAG,CAAC;IAuE9C,iBAAiB,CAAC,OAAO,EAAE,GAAG,GAAG,OAAO,CAAC,GAAG,CAAC;IAgD7C,mBAAmB,CAAC,OAAO,EAAE,GAAG,GAAG,OAAO,CAAC,GAAG,CAAC;IAgD/C,iBAAiB,CAAC,OAAO,EAAE,GAAG,GAAG,OAAO,CAAC,GAAG,CAAC;IAoF7C,kBAAkB,CAAC,OAAO,EAAE,GAAG,GAAG,OAAO,CAAC,GAAG,CAAC;IAU9C,qBAAqB,CAAC,OAAO,EAAE,GAAG,GAAG,OAAO,CAAC,GAAG,CAAC;IAyCjD,iBAAiB,CAAC,OAAO,EAAE,GAAG,GAAG,OAAO,CAAC,GAAG,CAAC;IA4BnD,OAAO,CAAC,oBAAoB;YAMd,qBAAqB;IAOnC,OAAO,CAAC,eAAe;CAMxB"}
|