@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.
Files changed (136) hide show
  1. package/package.json +9 -8
  2. package/dist/auth/index.d.ts +0 -4
  3. package/dist/auth/index.d.ts.map +0 -1
  4. package/dist/auth/index.js +0 -3
  5. package/dist/auth/interfaces/index.d.ts +0 -4
  6. package/dist/auth/interfaces/index.d.ts.map +0 -1
  7. package/dist/auth/interfaces/index.js +0 -3
  8. package/dist/auth/interfaces/oAuth-tokens.interface.d.ts +0 -9
  9. package/dist/auth/interfaces/oAuth-tokens.interface.d.ts.map +0 -1
  10. package/dist/auth/interfaces/oAuth-tokens.interface.js +0 -1
  11. package/dist/auth/interfaces/oAuth-user-info.interface.d.ts +0 -8
  12. package/dist/auth/interfaces/oAuth-user-info.interface.d.ts.map +0 -1
  13. package/dist/auth/interfaces/oAuth-user-info.interface.js +0 -1
  14. package/dist/auth/interfaces/oAuth.config.d.ts +0 -14
  15. package/dist/auth/interfaces/oAuth.config.d.ts.map +0 -1
  16. package/dist/auth/interfaces/oAuth.config.js +0 -1
  17. package/dist/auth/methods/auth.methods.d.ts +0 -5
  18. package/dist/auth/methods/auth.methods.d.ts.map +0 -1
  19. package/dist/auth/methods/auth.methods.js +0 -302
  20. package/dist/auth/oAuth.tool.d.ts +0 -20
  21. package/dist/auth/oAuth.tool.d.ts.map +0 -1
  22. package/dist/auth/oAuth.tool.js +0 -419
  23. package/dist/embeddings/embeddings.tool.d.ts +0 -6
  24. package/dist/embeddings/embeddings.tool.d.ts.map +0 -1
  25. package/dist/embeddings/embeddings.tool.js +0 -11
  26. package/dist/embeddings/huggingface-text-embeddings.tool.d.ts +0 -9
  27. package/dist/embeddings/huggingface-text-embeddings.tool.d.ts.map +0 -1
  28. package/dist/embeddings/huggingface-text-embeddings.tool.js +0 -21
  29. package/dist/embeddings/index.d.ts +0 -4
  30. package/dist/embeddings/index.d.ts.map +0 -1
  31. package/dist/embeddings/index.js +0 -3
  32. package/dist/embeddings/methods/text-embeddings.method.d.ts +0 -5
  33. package/dist/embeddings/methods/text-embeddings.method.d.ts.map +0 -1
  34. package/dist/embeddings/methods/text-embeddings.method.js +0 -29
  35. package/dist/embeddings/text-embeddings.tool.d.ts +0 -9
  36. package/dist/embeddings/text-embeddings.tool.d.ts.map +0 -1
  37. package/dist/embeddings/text-embeddings.tool.js +0 -13
  38. package/dist/index.d.ts +0 -7
  39. package/dist/index.d.ts.map +0 -1
  40. package/dist/index.js +0 -6
  41. package/dist/init.d.ts +0 -3
  42. package/dist/init.d.ts.map +0 -1
  43. package/dist/init.js +0 -36
  44. package/dist/intelligence/anthropic-intelligence.tool.d.ts +0 -224
  45. package/dist/intelligence/anthropic-intelligence.tool.d.ts.map +0 -1
  46. package/dist/intelligence/anthropic-intelligence.tool.js +0 -477
  47. package/dist/intelligence/gemini-intelligence.tool.d.ts +0 -29
  48. package/dist/intelligence/gemini-intelligence.tool.d.ts.map +0 -1
  49. package/dist/intelligence/gemini-intelligence.tool.js +0 -267
  50. package/dist/intelligence/index.d.ts +0 -6
  51. package/dist/intelligence/index.d.ts.map +0 -1
  52. package/dist/intelligence/index.js +0 -5
  53. package/dist/intelligence/intelligence.tool.d.ts +0 -11
  54. package/dist/intelligence/intelligence.tool.d.ts.map +0 -1
  55. package/dist/intelligence/intelligence.tool.js +0 -120
  56. package/dist/intelligence/methods/intelligence.methods.d.ts +0 -5
  57. package/dist/intelligence/methods/intelligence.methods.d.ts.map +0 -1
  58. package/dist/intelligence/methods/intelligence.methods.js +0 -98
  59. package/dist/intelligence/ollama-intelligence.tool.d.ts +0 -36
  60. package/dist/intelligence/ollama-intelligence.tool.d.ts.map +0 -1
  61. package/dist/intelligence/ollama-intelligence.tool.js +0 -312
  62. package/dist/intelligence/openai-intelligence.tool.d.ts +0 -30
  63. package/dist/intelligence/openai-intelligence.tool.d.ts.map +0 -1
  64. package/dist/intelligence/openai-intelligence.tool.js +0 -255
  65. package/dist/intelligence/perplexity-intelligence.tool.d.ts +0 -27
  66. package/dist/intelligence/perplexity-intelligence.tool.d.ts.map +0 -1
  67. package/dist/intelligence/perplexity-intelligence.tool.js +0 -309
  68. package/dist/mcp/index.d.ts +0 -3
  69. package/dist/mcp/index.d.ts.map +0 -1
  70. package/dist/mcp/index.js +0 -2
  71. package/dist/mcp/mcp-bridge.tool.d.ts +0 -12
  72. package/dist/mcp/mcp-bridge.tool.d.ts.map +0 -1
  73. package/dist/mcp/mcp-bridge.tool.js +0 -126
  74. package/dist/mcp/mcp.tool.d.ts +0 -14
  75. package/dist/mcp/mcp.tool.d.ts.map +0 -1
  76. package/dist/mcp/mcp.tool.js +0 -83
  77. package/dist/mcp/methods/mcp-bridge.methods.d.ts +0 -5
  78. package/dist/mcp/methods/mcp-bridge.methods.d.ts.map +0 -1
  79. package/dist/mcp/methods/mcp-bridge.methods.js +0 -79
  80. package/dist/nlp/index.d.ts +0 -2
  81. package/dist/nlp/index.d.ts.map +0 -1
  82. package/dist/nlp/index.js +0 -1
  83. package/dist/nlp/methods/nlp.methods.d.ts +0 -5
  84. package/dist/nlp/methods/nlp.methods.d.ts.map +0 -1
  85. package/dist/nlp/methods/nlp.methods.js +0 -15
  86. package/dist/nlp/ner.tool.d.ts +0 -7
  87. package/dist/nlp/ner.tool.d.ts.map +0 -1
  88. package/dist/nlp/ner.tool.js +0 -25
  89. package/dist/src/intelligence/anthropic-intelligence.tool.d.ts +0 -224
  90. package/dist/src/intelligence/anthropic-intelligence.tool.d.ts.map +0 -1
  91. package/dist/src/intelligence/anthropic-intelligence.tool.js +0 -477
  92. package/dist/src/intelligence/gemini-intelligence.tool.d.ts +0 -29
  93. package/dist/src/intelligence/gemini-intelligence.tool.d.ts.map +0 -1
  94. package/dist/src/intelligence/gemini-intelligence.tool.js +0 -267
  95. package/dist/src/intelligence/index.d.ts +0 -6
  96. package/dist/src/intelligence/index.d.ts.map +0 -1
  97. package/dist/src/intelligence/index.js +0 -5
  98. package/dist/src/intelligence/intelligence.tool.d.ts +0 -11
  99. package/dist/src/intelligence/intelligence.tool.d.ts.map +0 -1
  100. package/dist/src/intelligence/intelligence.tool.js +0 -134
  101. package/dist/src/intelligence/methods/intelligence.methods.d.ts +0 -5
  102. package/dist/src/intelligence/methods/intelligence.methods.d.ts.map +0 -1
  103. package/dist/src/intelligence/methods/intelligence.methods.js +0 -132
  104. package/dist/src/intelligence/ollama-intelligence.tool.d.ts +0 -36
  105. package/dist/src/intelligence/ollama-intelligence.tool.d.ts.map +0 -1
  106. package/dist/src/intelligence/ollama-intelligence.tool.js +0 -312
  107. package/dist/src/intelligence/openai-intelligence.tool.d.ts +0 -30
  108. package/dist/src/intelligence/openai-intelligence.tool.d.ts.map +0 -1
  109. package/dist/src/intelligence/openai-intelligence.tool.js +0 -255
  110. package/dist/src/intelligence/perplexity-intelligence.tool.d.ts +0 -28
  111. package/dist/src/intelligence/perplexity-intelligence.tool.d.ts.map +0 -1
  112. package/dist/src/intelligence/perplexity-intelligence.tool.js +0 -310
  113. package/dist/src/mcp/index.d.ts +0 -3
  114. package/dist/src/mcp/index.d.ts.map +0 -1
  115. package/dist/src/mcp/index.js +0 -2
  116. package/dist/src/mcp/mcp-bridge.tool.d.ts +0 -12
  117. package/dist/src/mcp/mcp-bridge.tool.d.ts.map +0 -1
  118. package/dist/src/mcp/mcp-bridge.tool.js +0 -107
  119. package/dist/src/mcp/mcp.tool.d.ts +0 -15
  120. package/dist/src/mcp/mcp.tool.d.ts.map +0 -1
  121. package/dist/src/mcp/mcp.tool.js +0 -85
  122. package/dist/src/mcp/methods/mcp-bridge.methods.d.ts +0 -5
  123. package/dist/src/mcp/methods/mcp-bridge.methods.d.ts.map +0 -1
  124. package/dist/src/mcp/methods/mcp-bridge.methods.js +0 -58
  125. package/dist/vector-store/index.d.ts +0 -3
  126. package/dist/vector-store/index.d.ts.map +0 -1
  127. package/dist/vector-store/index.js +0 -2
  128. package/dist/vector-store/langchain-memory.vector-store.tool.d.ts +0 -14
  129. package/dist/vector-store/langchain-memory.vector-store.tool.d.ts.map +0 -1
  130. package/dist/vector-store/langchain-memory.vector-store.tool.js +0 -60
  131. package/dist/vector-store/methods/vector-store.methods.d.ts +0 -5
  132. package/dist/vector-store/methods/vector-store.methods.d.ts.map +0 -1
  133. package/dist/vector-store/methods/vector-store.methods.js +0 -60
  134. package/dist/vector-store/vector-memory.tool.d.ts +0 -11
  135. package/dist/vector-store/vector-memory.tool.d.ts.map +0 -1
  136. 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.4",
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.4",
58
- "@olane/o-core": "^0.6.4",
59
- "@olane/o-intelligence": "^0.6.2",
60
- "@olane/o-mcp": "^0.6.2",
61
- "@olane/o-protocol": "^0.6.4",
62
- "@olane/o-tool": "^0.6.4",
63
- "@olane/o-tools-common": "^0.6.4"
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",
@@ -1,4 +0,0 @@
1
- export * from './oAuth.tool.js';
2
- export * from './methods/auth.methods.js';
3
- export * from './interfaces/index.js';
4
- //# sourceMappingURL=index.d.ts.map
@@ -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"}
@@ -1,3 +0,0 @@
1
- export * from './oAuth.tool.js';
2
- export * from './methods/auth.methods.js';
3
- export * from './interfaces/index.js';
@@ -1,4 +0,0 @@
1
- export * from './oAuth-tokens.interface.js';
2
- export * from './oAuth-user-info.interface.js';
3
- export * from './oAuth.config.js';
4
- //# sourceMappingURL=index.d.ts.map
@@ -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,3 +0,0 @@
1
- export * from './oAuth-tokens.interface.js';
2
- export * from './oAuth-user-info.interface.js';
3
- export * from './oAuth.config.js';
@@ -1,9 +0,0 @@
1
- export interface OAuthTokens {
2
- access_token: string;
3
- refresh_token?: string;
4
- token_type: string;
5
- expires_in?: number;
6
- scope?: string;
7
- [key: string]: any;
8
- }
9
- //# sourceMappingURL=oAuth-tokens.interface.d.ts.map
@@ -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,8 +0,0 @@
1
- export interface OAuthUserInfo {
2
- sub: string;
3
- email?: string;
4
- name?: string;
5
- picture?: string;
6
- [key: string]: any;
7
- }
8
- //# sourceMappingURL=oAuth-user-info.interface.d.ts.map
@@ -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,5 +0,0 @@
1
- import { oMethod } from '@olane/o-protocol';
2
- export declare const oauthMethods: {
3
- [key: string]: oMethod;
4
- };
5
- //# sourceMappingURL=auth.methods.d.ts.map
@@ -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"}