@ggakila/agentx-framework 0.1.0

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 (228) hide show
  1. package/CHANGELOG.md +107 -0
  2. package/LICENSE +21 -0
  3. package/README.md +335 -0
  4. package/dist/agent/Agent.d.ts +110 -0
  5. package/dist/agent/Agent.d.ts.map +1 -0
  6. package/dist/agent/Agent.js +291 -0
  7. package/dist/agent/Agent.js.map +1 -0
  8. package/dist/agent/index.d.ts +5 -0
  9. package/dist/agent/index.d.ts.map +1 -0
  10. package/dist/agent/index.js +11 -0
  11. package/dist/agent/index.js.map +1 -0
  12. package/dist/cli/CLI.d.ts +74 -0
  13. package/dist/cli/CLI.d.ts.map +1 -0
  14. package/dist/cli/CLI.js +255 -0
  15. package/dist/cli/CLI.js.map +1 -0
  16. package/dist/cli/InteractiveSetup.d.ts +104 -0
  17. package/dist/cli/InteractiveSetup.d.ts.map +1 -0
  18. package/dist/cli/InteractiveSetup.js +2225 -0
  19. package/dist/cli/InteractiveSetup.js.map +1 -0
  20. package/dist/cli/bin.d.ts +7 -0
  21. package/dist/cli/bin.d.ts.map +1 -0
  22. package/dist/cli/bin.js +35 -0
  23. package/dist/cli/bin.js.map +1 -0
  24. package/dist/cli/commands/ProjectCommands.d.ts +23 -0
  25. package/dist/cli/commands/ProjectCommands.d.ts.map +1 -0
  26. package/dist/cli/commands/ProjectCommands.js +504 -0
  27. package/dist/cli/commands/ProjectCommands.js.map +1 -0
  28. package/dist/cli/index.d.ts +7 -0
  29. package/dist/cli/index.d.ts.map +1 -0
  30. package/dist/cli/index.js +21 -0
  31. package/dist/cli/index.js.map +1 -0
  32. package/dist/credential/CredentialManager.d.ts +112 -0
  33. package/dist/credential/CredentialManager.d.ts.map +1 -0
  34. package/dist/credential/CredentialManager.js +343 -0
  35. package/dist/credential/CredentialManager.js.map +1 -0
  36. package/dist/credential/OAuth2Manager.d.ts +206 -0
  37. package/dist/credential/OAuth2Manager.d.ts.map +1 -0
  38. package/dist/credential/OAuth2Manager.js +463 -0
  39. package/dist/credential/OAuth2Manager.js.map +1 -0
  40. package/dist/credential/index.d.ts +6 -0
  41. package/dist/credential/index.d.ts.map +1 -0
  42. package/dist/credential/index.js +16 -0
  43. package/dist/credential/index.js.map +1 -0
  44. package/dist/error/ErrorHandler.d.ts +74 -0
  45. package/dist/error/ErrorHandler.d.ts.map +1 -0
  46. package/dist/error/ErrorHandler.js +279 -0
  47. package/dist/error/ErrorHandler.js.map +1 -0
  48. package/dist/index.d.ts +30 -0
  49. package/dist/index.d.ts.map +1 -0
  50. package/dist/index.js +100 -0
  51. package/dist/index.js.map +1 -0
  52. package/dist/integrations/DatabaseTool.d.ts +149 -0
  53. package/dist/integrations/DatabaseTool.d.ts.map +1 -0
  54. package/dist/integrations/DatabaseTool.js +900 -0
  55. package/dist/integrations/DatabaseTool.js.map +1 -0
  56. package/dist/integrations/EmailTool.d.ts +142 -0
  57. package/dist/integrations/EmailTool.d.ts.map +1 -0
  58. package/dist/integrations/EmailTool.js +259 -0
  59. package/dist/integrations/EmailTool.js.map +1 -0
  60. package/dist/integrations/FileSystemTool.d.ts +153 -0
  61. package/dist/integrations/FileSystemTool.d.ts.map +1 -0
  62. package/dist/integrations/FileSystemTool.js +835 -0
  63. package/dist/integrations/FileSystemTool.js.map +1 -0
  64. package/dist/integrations/GoogleWorkspaceTool.d.ts +125 -0
  65. package/dist/integrations/GoogleWorkspaceTool.d.ts.map +1 -0
  66. package/dist/integrations/GoogleWorkspaceTool.js +765 -0
  67. package/dist/integrations/GoogleWorkspaceTool.js.map +1 -0
  68. package/dist/integrations/HttpTool.d.ts +55 -0
  69. package/dist/integrations/HttpTool.d.ts.map +1 -0
  70. package/dist/integrations/HttpTool.js +209 -0
  71. package/dist/integrations/HttpTool.js.map +1 -0
  72. package/dist/integrations/MessagingTool.d.ts +136 -0
  73. package/dist/integrations/MessagingTool.d.ts.map +1 -0
  74. package/dist/integrations/MessagingTool.js +503 -0
  75. package/dist/integrations/MessagingTool.js.map +1 -0
  76. package/dist/integrations/SchedulerTool.d.ts +147 -0
  77. package/dist/integrations/SchedulerTool.d.ts.map +1 -0
  78. package/dist/integrations/SchedulerTool.js +471 -0
  79. package/dist/integrations/SchedulerTool.js.map +1 -0
  80. package/dist/integrations/WebhookTool.d.ts +97 -0
  81. package/dist/integrations/WebhookTool.d.ts.map +1 -0
  82. package/dist/integrations/WebhookTool.js +351 -0
  83. package/dist/integrations/WebhookTool.js.map +1 -0
  84. package/dist/integrations/index.d.ts +13 -0
  85. package/dist/integrations/index.d.ts.map +1 -0
  86. package/dist/integrations/index.js +60 -0
  87. package/dist/integrations/index.js.map +1 -0
  88. package/dist/llm/LLMProvider.d.ts +83 -0
  89. package/dist/llm/LLMProvider.d.ts.map +1 -0
  90. package/dist/llm/LLMProvider.js +370 -0
  91. package/dist/llm/LLMProvider.js.map +1 -0
  92. package/dist/llm/index.d.ts +5 -0
  93. package/dist/llm/index.d.ts.map +1 -0
  94. package/dist/llm/index.js +14 -0
  95. package/dist/llm/index.js.map +1 -0
  96. package/dist/payment/PaymentProvider.d.ts +157 -0
  97. package/dist/payment/PaymentProvider.d.ts.map +1 -0
  98. package/dist/payment/PaymentProvider.js +525 -0
  99. package/dist/payment/PaymentProvider.js.map +1 -0
  100. package/dist/payment/index.d.ts +5 -0
  101. package/dist/payment/index.d.ts.map +1 -0
  102. package/dist/payment/index.js +16 -0
  103. package/dist/payment/index.js.map +1 -0
  104. package/dist/plugin/PluginManager.d.ts +156 -0
  105. package/dist/plugin/PluginManager.d.ts.map +1 -0
  106. package/dist/plugin/PluginManager.js +288 -0
  107. package/dist/plugin/PluginManager.js.map +1 -0
  108. package/dist/plugin/index.d.ts +5 -0
  109. package/dist/plugin/index.d.ts.map +1 -0
  110. package/dist/plugin/index.js +10 -0
  111. package/dist/plugin/index.js.map +1 -0
  112. package/dist/runtime/AgentXRuntime.d.ts +90 -0
  113. package/dist/runtime/AgentXRuntime.d.ts.map +1 -0
  114. package/dist/runtime/AgentXRuntime.js +469 -0
  115. package/dist/runtime/AgentXRuntime.js.map +1 -0
  116. package/dist/security/SecurityManager.d.ts +245 -0
  117. package/dist/security/SecurityManager.d.ts.map +1 -0
  118. package/dist/security/SecurityManager.js +512 -0
  119. package/dist/security/SecurityManager.js.map +1 -0
  120. package/dist/security/index.d.ts +5 -0
  121. package/dist/security/index.d.ts.map +1 -0
  122. package/dist/security/index.js +14 -0
  123. package/dist/security/index.js.map +1 -0
  124. package/dist/tool/ToolRegistry.d.ts +58 -0
  125. package/dist/tool/ToolRegistry.d.ts.map +1 -0
  126. package/dist/tool/ToolRegistry.js +173 -0
  127. package/dist/tool/ToolRegistry.js.map +1 -0
  128. package/dist/tool/ToolValidator.d.ts +41 -0
  129. package/dist/tool/ToolValidator.d.ts.map +1 -0
  130. package/dist/tool/ToolValidator.js +158 -0
  131. package/dist/tool/ToolValidator.js.map +1 -0
  132. package/dist/tool/index.d.ts +6 -0
  133. package/dist/tool/index.d.ts.map +1 -0
  134. package/dist/tool/index.js +11 -0
  135. package/dist/tool/index.js.map +1 -0
  136. package/dist/transport/BaseTransport.d.ts +66 -0
  137. package/dist/transport/BaseTransport.d.ts.map +1 -0
  138. package/dist/transport/BaseTransport.js +103 -0
  139. package/dist/transport/BaseTransport.js.map +1 -0
  140. package/dist/transport/HttpTransport.d.ts +41 -0
  141. package/dist/transport/HttpTransport.d.ts.map +1 -0
  142. package/dist/transport/HttpTransport.js +160 -0
  143. package/dist/transport/HttpTransport.js.map +1 -0
  144. package/dist/transport/LocalTransport.d.ts +40 -0
  145. package/dist/transport/LocalTransport.d.ts.map +1 -0
  146. package/dist/transport/LocalTransport.js +157 -0
  147. package/dist/transport/LocalTransport.js.map +1 -0
  148. package/dist/transport/QueueTransport.d.ts +63 -0
  149. package/dist/transport/QueueTransport.d.ts.map +1 -0
  150. package/dist/transport/QueueTransport.js +194 -0
  151. package/dist/transport/QueueTransport.js.map +1 -0
  152. package/dist/transport/StdioTransport.d.ts +51 -0
  153. package/dist/transport/StdioTransport.d.ts.map +1 -0
  154. package/dist/transport/StdioTransport.js +216 -0
  155. package/dist/transport/StdioTransport.js.map +1 -0
  156. package/dist/transport/TransportFactory.d.ts +35 -0
  157. package/dist/transport/TransportFactory.d.ts.map +1 -0
  158. package/dist/transport/TransportFactory.js +100 -0
  159. package/dist/transport/TransportFactory.js.map +1 -0
  160. package/dist/transport/index.d.ts +10 -0
  161. package/dist/transport/index.d.ts.map +1 -0
  162. package/dist/transport/index.js +19 -0
  163. package/dist/transport/index.js.map +1 -0
  164. package/dist/types/agent.d.ts +66 -0
  165. package/dist/types/agent.d.ts.map +1 -0
  166. package/dist/types/agent.js +3 -0
  167. package/dist/types/agent.js.map +1 -0
  168. package/dist/types/config.d.ts +60 -0
  169. package/dist/types/config.d.ts.map +1 -0
  170. package/dist/types/config.js +6 -0
  171. package/dist/types/config.js.map +1 -0
  172. package/dist/types/credential.d.ts +38 -0
  173. package/dist/types/credential.d.ts.map +1 -0
  174. package/dist/types/credential.js +3 -0
  175. package/dist/types/credential.js.map +1 -0
  176. package/dist/types/error.d.ts +136 -0
  177. package/dist/types/error.d.ts.map +1 -0
  178. package/dist/types/error.js +223 -0
  179. package/dist/types/error.js.map +1 -0
  180. package/dist/types/index.d.ts +10 -0
  181. package/dist/types/index.d.ts.map +1 -0
  182. package/dist/types/index.js +27 -0
  183. package/dist/types/index.js.map +1 -0
  184. package/dist/types/llm.d.ts +43 -0
  185. package/dist/types/llm.d.ts.map +1 -0
  186. package/dist/types/llm.js +3 -0
  187. package/dist/types/llm.js.map +1 -0
  188. package/dist/types/payment.d.ts +129 -0
  189. package/dist/types/payment.d.ts.map +1 -0
  190. package/dist/types/payment.js +6 -0
  191. package/dist/types/payment.js.map +1 -0
  192. package/dist/types/runtime.d.ts +31 -0
  193. package/dist/types/runtime.d.ts.map +1 -0
  194. package/dist/types/runtime.js +3 -0
  195. package/dist/types/runtime.js.map +1 -0
  196. package/dist/types/tool.d.ts +72 -0
  197. package/dist/types/tool.d.ts.map +1 -0
  198. package/dist/types/tool.js +3 -0
  199. package/dist/types/tool.js.map +1 -0
  200. package/dist/types/transport.d.ts +53 -0
  201. package/dist/types/transport.d.ts.map +1 -0
  202. package/dist/types/transport.js +3 -0
  203. package/dist/types/transport.js.map +1 -0
  204. package/dist/types/workflow.d.ts +72 -0
  205. package/dist/types/workflow.d.ts.map +1 -0
  206. package/dist/types/workflow.js +6 -0
  207. package/dist/types/workflow.js.map +1 -0
  208. package/dist/utils/factory.d.ts +14 -0
  209. package/dist/utils/factory.d.ts.map +1 -0
  210. package/dist/utils/factory.js +146 -0
  211. package/dist/utils/factory.js.map +1 -0
  212. package/dist/workflow/StateManager.d.ts +93 -0
  213. package/dist/workflow/StateManager.d.ts.map +1 -0
  214. package/dist/workflow/StateManager.js +223 -0
  215. package/dist/workflow/StateManager.js.map +1 -0
  216. package/dist/workflow/WorkflowDefinition.d.ts +49 -0
  217. package/dist/workflow/WorkflowDefinition.d.ts.map +1 -0
  218. package/dist/workflow/WorkflowDefinition.js +264 -0
  219. package/dist/workflow/WorkflowDefinition.js.map +1 -0
  220. package/dist/workflow/WorkflowExecutor.d.ts +42 -0
  221. package/dist/workflow/WorkflowExecutor.d.ts.map +1 -0
  222. package/dist/workflow/WorkflowExecutor.js +372 -0
  223. package/dist/workflow/WorkflowExecutor.js.map +1 -0
  224. package/dist/workflow/index.d.ts +7 -0
  225. package/dist/workflow/index.d.ts.map +1 -0
  226. package/dist/workflow/index.js +17 -0
  227. package/dist/workflow/index.js.map +1 -0
  228. package/package.json +122 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"credential.d.ts","sourceRoot":"","sources":["../../src/types/credential.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,QAAQ,CAAC;AAErC;;GAEG;AAEH,MAAM,WAAW,iBAAiB;IAEhC,aAAa,CAAC,KAAK,EAAE,MAAM,EAAE,UAAU,EAAE,UAAU,GAAG,OAAO,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OAAO,CAAC,IAAI,CAAC,CAAC;IAC3D,KAAK,CAAC,KAAK,EAAE,MAAM,EAAE,UAAU,EAAE,UAAU,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAC5D,QAAQ,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,UAAU,GAAG,IAAI,CAAC,CAAC;IACpD,MAAM,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACrC,IAAI,IAAI,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC;CAC3B"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=credential.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"credential.js","sourceRoot":"","sources":["../../src/types/credential.ts"],"names":[],"mappings":""}
@@ -0,0 +1,136 @@
1
+ /**
2
+ * Error Handling Types and Classes
3
+ */
4
+ export declare abstract class AgentXError extends Error {
5
+ abstract readonly code: string;
6
+ abstract readonly category: ErrorCategory;
7
+ readonly timestamp: Date;
8
+ readonly traceId?: string;
9
+ readonly context?: ErrorContext;
10
+ constructor(message: string, traceId?: string, context?: ErrorContext);
11
+ toJSON(): Record<string, unknown>;
12
+ }
13
+ export type ErrorCategory = 'validation' | 'execution' | 'transport' | 'security' | 'configuration' | 'payment';
14
+ export declare class ValidationError extends AgentXError {
15
+ readonly category: "validation";
16
+ readonly code: string;
17
+ constructor(message: string, code?: string, traceId?: string, context?: ErrorContext);
18
+ }
19
+ export declare class ExecutionError extends AgentXError {
20
+ readonly category: "execution";
21
+ readonly code: string;
22
+ readonly retryable: boolean;
23
+ constructor(message: string, code?: string, retryable?: boolean, traceId?: string, context?: ErrorContext);
24
+ }
25
+ export declare class TransportError extends AgentXError {
26
+ readonly category: "transport";
27
+ readonly code: string;
28
+ readonly retryable: boolean;
29
+ constructor(message: string, code?: string, retryable?: boolean, traceId?: string, context?: ErrorContext);
30
+ }
31
+ export declare class SecurityError extends AgentXError {
32
+ readonly category: "security";
33
+ readonly code: string;
34
+ constructor(message: string, code?: string, traceId?: string, context?: ErrorContext);
35
+ }
36
+ export declare class ConfigurationError extends AgentXError {
37
+ readonly category: "configuration";
38
+ readonly code: string;
39
+ constructor(message: string, code?: string, traceId?: string, context?: ErrorContext);
40
+ }
41
+ export declare class PaymentError extends AgentXError {
42
+ readonly category: "payment";
43
+ readonly code: string;
44
+ readonly retryable: boolean;
45
+ readonly providerError?: unknown;
46
+ constructor(message: string, code?: string, retryable?: boolean, providerError?: unknown, traceId?: string, context?: ErrorContext);
47
+ }
48
+ export interface ErrorContext {
49
+ workflowId?: string;
50
+ stepId?: string;
51
+ executionId?: string;
52
+ toolName?: string;
53
+ transportType?: string;
54
+ agentId?: string;
55
+ paymentId?: string;
56
+ metadata?: Record<string, unknown>;
57
+ }
58
+ /**
59
+ * Error codes for different error types
60
+ */
61
+ export declare const ErrorCodes: {
62
+ readonly INVALID_INPUT: "INVALID_INPUT";
63
+ readonly INVALID_SCHEMA: "INVALID_SCHEMA";
64
+ readonly MISSING_REQUIRED_FIELD: "MISSING_REQUIRED_FIELD";
65
+ readonly INVALID_FORMAT: "INVALID_FORMAT";
66
+ readonly WORKFLOW_NOT_FOUND: "WORKFLOW_NOT_FOUND";
67
+ readonly STEP_FAILED: "STEP_FAILED";
68
+ readonly TIMEOUT: "TIMEOUT";
69
+ readonly MAX_RETRIES_EXCEEDED: "MAX_RETRIES_EXCEEDED";
70
+ readonly CIRCULAR_DEPENDENCY: "CIRCULAR_DEPENDENCY";
71
+ readonly CONNECTION_FAILED: "CONNECTION_FAILED";
72
+ readonly REQUEST_TIMEOUT: "REQUEST_TIMEOUT";
73
+ readonly RESPONSE_ERROR: "RESPONSE_ERROR";
74
+ readonly SERIALIZATION_ERROR: "SERIALIZATION_ERROR";
75
+ readonly UNAUTHORIZED: "UNAUTHORIZED";
76
+ readonly FORBIDDEN: "FORBIDDEN";
77
+ readonly INVALID_CREDENTIALS: "INVALID_CREDENTIALS";
78
+ readonly TOKEN_EXPIRED: "TOKEN_EXPIRED";
79
+ readonly OAUTH2_ERROR: "OAUTH2_ERROR";
80
+ readonly INVALID_STATE: "INVALID_STATE";
81
+ readonly STATE_EXPIRED: "STATE_EXPIRED";
82
+ readonly NO_REFRESH_TOKEN: "NO_REFRESH_TOKEN";
83
+ readonly TOKEN_REFRESH_FAILED: "TOKEN_REFRESH_FAILED";
84
+ readonly INVALID_CONFIG: "INVALID_CONFIG";
85
+ readonly MISSING_CONFIG: "MISSING_CONFIG";
86
+ readonly PROVIDER_NOT_FOUND: "PROVIDER_NOT_FOUND";
87
+ readonly PAYMENT_FAILED: "PAYMENT_FAILED";
88
+ readonly REFUND_FAILED: "REFUND_FAILED";
89
+ readonly WEBHOOK_VALIDATION_FAILED: "WEBHOOK_VALIDATION_FAILED";
90
+ readonly INSUFFICIENT_FUNDS: "INSUFFICIENT_FUNDS";
91
+ };
92
+ /**
93
+ * Error handler utility class
94
+ */
95
+ export declare class ErrorHandler {
96
+ private static instance;
97
+ private errorListeners;
98
+ static getInstance(): ErrorHandler;
99
+ /**
100
+ * Register an error listener
101
+ */
102
+ onError(listener: (error: AgentXError) => void): void;
103
+ /**
104
+ * Handle an error
105
+ */
106
+ handle(error: Error, context?: ErrorContext): AgentXError;
107
+ /**
108
+ * Check if an error is retryable
109
+ */
110
+ isRetryable(error: Error): boolean;
111
+ /**
112
+ * Create a validation error
113
+ */
114
+ static validation(message: string, code?: string, context?: ErrorContext): ValidationError;
115
+ /**
116
+ * Create an execution error
117
+ */
118
+ static execution(message: string, code?: string, retryable?: boolean, context?: ErrorContext): ExecutionError;
119
+ /**
120
+ * Create a transport error
121
+ */
122
+ static transport(message: string, code?: string, retryable?: boolean, context?: ErrorContext): TransportError;
123
+ /**
124
+ * Create a security error
125
+ */
126
+ static security(message: string, code?: string, context?: ErrorContext): SecurityError;
127
+ /**
128
+ * Create a configuration error
129
+ */
130
+ static configuration(message: string, code?: string, context?: ErrorContext): ConfigurationError;
131
+ /**
132
+ * Create a payment error
133
+ */
134
+ static payment(message: string, code?: string, retryable?: boolean, providerError?: unknown, context?: ErrorContext): PaymentError;
135
+ }
136
+ //# sourceMappingURL=error.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"error.d.ts","sourceRoot":"","sources":["../../src/types/error.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,8BAAsB,WAAY,SAAQ,KAAK;IAC7C,QAAQ,CAAC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IAC/B,QAAQ,CAAC,QAAQ,CAAC,QAAQ,EAAE,aAAa,CAAC;IAC1C,QAAQ,CAAC,SAAS,EAAE,IAAI,CAAc;IACtC,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,OAAO,CAAC,EAAE,YAAY,CAAC;gBAEpB,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,YAAY;IAQrE,MAAM,IAAI,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;CAYlC;AAED,MAAM,MAAM,aAAa,GAAG,YAAY,GAAG,WAAW,GAAG,WAAW,GAAG,UAAU,GAAG,eAAe,GAAG,SAAS,CAAC;AAEhH,qBAAa,eAAgB,SAAQ,WAAW;IAC9C,QAAQ,CAAC,QAAQ,EAAG,YAAY,CAAU;IAC1C,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;gBAEV,OAAO,EAAE,MAAM,EAAE,IAAI,GAAE,MAA2B,EAAE,OAAO,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,YAAY;CAIzG;AAED,qBAAa,cAAe,SAAQ,WAAW;IAC7C,QAAQ,CAAC,QAAQ,EAAG,WAAW,CAAU;IACzC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,SAAS,EAAE,OAAO,CAAC;gBAEhB,OAAO,EAAE,MAAM,EAAE,IAAI,GA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IAAI,CAAC,EAAE,MAAM,EAAE,SAAS,CAAC,EAAE,OAAO,EAAE,OAAO,CAAC,EAAE,YAAY,GAAG,cAAc;IAI7G;;OAEG;IACH,MAAM,CAAC,QAAQ,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,YAAY,GAAG,aAAa;IAItF;;OAEG;IACH,MAAM,CAAC,aAAa,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,YAAY,GAAG,kBAAkB;IAIhG;;OAEG;IACH,MAAM,CAAC,OAAO,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,EAAE,SAAS,CAAC,EAAE,OAAO,EAAE,aAAa,CAAC,EAAE,OAAO,EAAE,OAAO,CAAC,EAAE,YAAY,GAAG,YAAY;CAGnI"}
@@ -0,0 +1,223 @@
1
+ "use strict";
2
+ /**
3
+ * Error Handling Types and Classes
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.ErrorHandler = exports.ErrorCodes = exports.PaymentError = exports.ConfigurationError = exports.SecurityError = exports.TransportError = exports.ExecutionError = exports.ValidationError = exports.AgentXError = void 0;
7
+ class AgentXError extends Error {
8
+ timestamp = new Date();
9
+ traceId;
10
+ context;
11
+ constructor(message, traceId, context) {
12
+ super(message);
13
+ this.name = this.constructor.name;
14
+ this.traceId = traceId;
15
+ this.context = context;
16
+ Error.captureStackTrace(this, this.constructor);
17
+ }
18
+ toJSON() {
19
+ return {
20
+ name: this.name,
21
+ code: this.code,
22
+ category: this.category,
23
+ message: this.message,
24
+ timestamp: this.timestamp.toISOString(),
25
+ traceId: this.traceId,
26
+ context: this.context,
27
+ stack: this.stack,
28
+ };
29
+ }
30
+ }
31
+ exports.AgentXError = AgentXError;
32
+ class ValidationError extends AgentXError {
33
+ category = 'validation';
34
+ code;
35
+ constructor(message, code = 'VALIDATION_ERROR', traceId, context) {
36
+ super(message, traceId, context);
37
+ this.code = code;
38
+ }
39
+ }
40
+ exports.ValidationError = ValidationError;
41
+ class ExecutionError extends AgentXError {
42
+ category = 'execution';
43
+ code;
44
+ retryable;
45
+ constructor(message, code = 'EXECUTION_ERROR', retryable = false, traceId, context) {
46
+ super(message, traceId, context);
47
+ this.code = code;
48
+ this.retryable = retryable;
49
+ }
50
+ }
51
+ exports.ExecutionError = ExecutionError;
52
+ class TransportError extends AgentXError {
53
+ category = 'transport';
54
+ code;
55
+ retryable;
56
+ constructor(message, code = 'TRANSPORT_ERROR', retryable = true, traceId, context) {
57
+ super(message, traceId, context);
58
+ this.code = code;
59
+ this.retryable = retryable;
60
+ }
61
+ }
62
+ exports.TransportError = TransportError;
63
+ class SecurityError extends AgentXError {
64
+ category = 'security';
65
+ code;
66
+ constructor(message, code = 'SECURITY_ERROR', traceId, context) {
67
+ super(message, traceId, context);
68
+ this.code = code;
69
+ }
70
+ }
71
+ exports.SecurityError = SecurityError;
72
+ class ConfigurationError extends AgentXError {
73
+ category = 'configuration';
74
+ code;
75
+ constructor(message, code = 'CONFIGURATION_ERROR', traceId, context) {
76
+ super(message, traceId, context);
77
+ this.code = code;
78
+ }
79
+ }
80
+ exports.ConfigurationError = ConfigurationError;
81
+ class PaymentError extends AgentXError {
82
+ category = 'payment';
83
+ code;
84
+ retryable;
85
+ providerError;
86
+ constructor(message, code = 'PAYMENT_ERROR', retryable = false, providerError, traceId, context) {
87
+ super(message, traceId, context);
88
+ this.code = code;
89
+ this.retryable = retryable;
90
+ this.providerError = providerError;
91
+ }
92
+ }
93
+ exports.PaymentError = PaymentError;
94
+ /**
95
+ * Error codes for different error types
96
+ */
97
+ exports.ErrorCodes = {
98
+ // Validation errors
99
+ INVALID_INPUT: 'INVALID_INPUT',
100
+ INVALID_SCHEMA: 'INVALID_SCHEMA',
101
+ MISSING_REQUIRED_FIELD: 'MISSING_REQUIRED_FIELD',
102
+ INVALID_FORMAT: 'INVALID_FORMAT',
103
+ // Execution errors
104
+ WORKFLOW_NOT_FOUND: 'WORKFLOW_NOT_FOUND',
105
+ STEP_FAILED: 'STEP_FAILED',
106
+ TIMEOUT: 'TIMEOUT',
107
+ MAX_RETRIES_EXCEEDED: 'MAX_RETRIES_EXCEEDED',
108
+ CIRCULAR_DEPENDENCY: 'CIRCULAR_DEPENDENCY',
109
+ // Transport errors
110
+ CONNECTION_FAILED: 'CONNECTION_FAILED',
111
+ REQUEST_TIMEOUT: 'REQUEST_TIMEOUT',
112
+ RESPONSE_ERROR: 'RESPONSE_ERROR',
113
+ SERIALIZATION_ERROR: 'SERIALIZATION_ERROR',
114
+ // Security errors
115
+ UNAUTHORIZED: 'UNAUTHORIZED',
116
+ FORBIDDEN: 'FORBIDDEN',
117
+ INVALID_CREDENTIALS: 'INVALID_CREDENTIALS',
118
+ TOKEN_EXPIRED: 'TOKEN_EXPIRED',
119
+ // OAuth2 errors
120
+ OAUTH2_ERROR: 'OAUTH2_ERROR',
121
+ INVALID_STATE: 'INVALID_STATE',
122
+ STATE_EXPIRED: 'STATE_EXPIRED',
123
+ NO_REFRESH_TOKEN: 'NO_REFRESH_TOKEN',
124
+ TOKEN_REFRESH_FAILED: 'TOKEN_REFRESH_FAILED',
125
+ // Configuration errors
126
+ INVALID_CONFIG: 'INVALID_CONFIG',
127
+ MISSING_CONFIG: 'MISSING_CONFIG',
128
+ PROVIDER_NOT_FOUND: 'PROVIDER_NOT_FOUND',
129
+ // Payment errors
130
+ PAYMENT_FAILED: 'PAYMENT_FAILED',
131
+ REFUND_FAILED: 'REFUND_FAILED',
132
+ WEBHOOK_VALIDATION_FAILED: 'WEBHOOK_VALIDATION_FAILED',
133
+ INSUFFICIENT_FUNDS: 'INSUFFICIENT_FUNDS',
134
+ };
135
+ /**
136
+ * Error handler utility class
137
+ */
138
+ class ErrorHandler {
139
+ static instance;
140
+ errorListeners = [];
141
+ static getInstance() {
142
+ if (!ErrorHandler.instance) {
143
+ ErrorHandler.instance = new ErrorHandler();
144
+ }
145
+ return ErrorHandler.instance;
146
+ }
147
+ /**
148
+ * Register an error listener
149
+ */
150
+ onError(listener) {
151
+ this.errorListeners.push(listener);
152
+ }
153
+ /**
154
+ * Handle an error
155
+ */
156
+ handle(error, context) {
157
+ let agentXError;
158
+ if (error instanceof AgentXError) {
159
+ agentXError = error;
160
+ }
161
+ else {
162
+ // Wrap unknown errors
163
+ agentXError = new ExecutionError(error.message, 'UNKNOWN_ERROR', false, undefined, context);
164
+ }
165
+ // Notify listeners
166
+ for (const listener of this.errorListeners) {
167
+ try {
168
+ listener(agentXError);
169
+ }
170
+ catch {
171
+ // Ignore listener errors
172
+ }
173
+ }
174
+ return agentXError;
175
+ }
176
+ /**
177
+ * Check if an error is retryable
178
+ */
179
+ isRetryable(error) {
180
+ if (error instanceof ExecutionError || error instanceof TransportError || error instanceof PaymentError) {
181
+ return error.retryable;
182
+ }
183
+ return false;
184
+ }
185
+ /**
186
+ * Create a validation error
187
+ */
188
+ static validation(message, code, context) {
189
+ return new ValidationError(message, code, undefined, context);
190
+ }
191
+ /**
192
+ * Create an execution error
193
+ */
194
+ static execution(message, code, retryable, context) {
195
+ return new ExecutionError(message, code, retryable, undefined, context);
196
+ }
197
+ /**
198
+ * Create a transport error
199
+ */
200
+ static transport(message, code, retryable, context) {
201
+ return new TransportError(message, code, retryable, undefined, context);
202
+ }
203
+ /**
204
+ * Create a security error
205
+ */
206
+ static security(message, code, context) {
207
+ return new SecurityError(message, code, undefined, context);
208
+ }
209
+ /**
210
+ * Create a configuration error
211
+ */
212
+ static configuration(message, code, context) {
213
+ return new ConfigurationError(message, code, undefined, context);
214
+ }
215
+ /**
216
+ * Create a payment error
217
+ */
218
+ static payment(message, code, retryable, providerError, context) {
219
+ return new PaymentError(message, code, retryable, providerError, undefined, context);
220
+ }
221
+ }
222
+ exports.ErrorHandler = ErrorHandler;
223
+ //# sourceMappingURL=error.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"error.js","sourceRoot":"","sources":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EG;IACH,MAAM,CAAC,UAAU,CAAC,OAAe,EAAE,IAAa,EAAE,OAAsB;QACtE,OAAO,IAAI,eAAe,CAAC,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,CAAC,CAAC;IAChE,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,SAAS,CAAC,OAAe,EAAE,IAAa,EAAE,SAAmB,EAAE,OAAsB;QAC1F,OAAO,IAAI,cAAc,CAAC,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,SAAS,EAAE,OAAO,CAAC,CAAC;IAC1E,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,SAAS,CAAC,OAAe,EAAE,IAAa,EAAE,SAAmB,EAAE,OAAsB;QAC1F,OAAO,IAAI,cAAc,CAAC,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,SAAS,EAAE,OAAO,CAAC,CAAC;IAC1E,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,QAAQ,CAAC,OAAe,EAAE,IAAa,EAAE,OAAsB;QACpE,OAAO,IAAI,aAAa,CAAC,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,CAAC,CAAC;IAC9D,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,aAAa,CAAC,OAAe,EAAE,IAAa,EAAE,OAAsB;QACzE,OAAO,IAAI,kBAAkB,CAAC,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,CAAC,CAAC;IACnE,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,OAAO,CAAC,OAAe,EAAE,IAAa,EAAE,SAAmB,EAAE,aAAuB,EAAE,OAAsB;QACjH,OAAO,IAAI,YAAY,CAAC,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,aAAa,EAAE,SAAS,EAAE,OAAO,CAAC,CAAC;IACvF,CAAC;CACF;AApGD,oCAoGC"}
@@ -0,0 +1,10 @@
1
+ export * from './runtime';
2
+ export * from './workflow';
3
+ export * from './tool';
4
+ export * from './transport';
5
+ export * from './agent';
6
+ export * from './llm';
7
+ export * from './credential';
8
+ export * from './payment';
9
+ export * from './error';
10
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAEA,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,QAAQ,CAAC;AACvB,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC;AACxB,cAAc,OAAO,CAAC;AACtB,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC"}
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+ // Core AgentX Framework Types
3
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
+ if (k2 === undefined) k2 = k;
5
+ var desc = Object.getOwnPropertyDescriptor(m, k);
6
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
+ desc = { enumerable: true, get: function() { return m[k]; } };
8
+ }
9
+ Object.defineProperty(o, k2, desc);
10
+ }) : (function(o, m, k, k2) {
11
+ if (k2 === undefined) k2 = k;
12
+ o[k2] = m[k];
13
+ }));
14
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
16
+ };
17
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ __exportStar(require("./runtime"), exports);
19
+ __exportStar(require("./workflow"), exports);
20
+ __exportStar(require("./tool"), exports);
21
+ __exportStar(require("./transport"), exports);
22
+ __exportStar(require("./agent"), exports);
23
+ __exportStar(require("./llm"), exports);
24
+ __exportStar(require("./credential"), exports);
25
+ __exportStar(require("./payment"), exports);
26
+ __exportStar(require("./error"), exports);
27
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":";AAAA,8BAA8B;;;;;;;;;;;;;;;;AAE9B,4CAA0B;AAC1B,6CAA2B;AAC3B,yCAAuB;AACvB,8CAA4B;AAC5B,0CAAwB;AACxB,wCAAsB;AACtB,+CAA6B;AAC7B,4CAA0B;AAC1B,0CAAwB"}
@@ -0,0 +1,43 @@
1
+ import { ChatMessage, TokenUsage } from './agent';
2
+ import { ToolSpec } from './tool';
3
+ /**
4
+ * LLM Provider System Types
5
+ */
6
+ export interface LLMProvider {
7
+ name: string;
8
+ chat(input: ChatInput): Promise<ChatOutput>;
9
+ stream?(input: ChatInput): AsyncIterable<ChatChunk>;
10
+ embed?(input: string): Promise<number[]>;
11
+ supportsToolCalling(): boolean;
12
+ supportsStreaming(): boolean;
13
+ supportsEmbedding(): boolean;
14
+ }
15
+ export interface ChatInput {
16
+ messages: ChatMessage[];
17
+ model?: string;
18
+ temperature?: number;
19
+ maxTokens?: number;
20
+ tools?: ToolSpec[];
21
+ toolChoice?: 'auto' | 'none' | string;
22
+ }
23
+ export interface ChatOutput {
24
+ message: ChatMessage;
25
+ usage?: TokenUsage;
26
+ finishReason: 'stop' | 'length' | 'tool_calls';
27
+ }
28
+ export interface ChatChunk {
29
+ delta: string;
30
+ usage?: TokenUsage;
31
+ finishReason?: 'stop' | 'length' | 'tool_calls';
32
+ }
33
+ export interface LLMProviderConfig {
34
+ name: string;
35
+ apiKey?: string;
36
+ baseUrl?: string;
37
+ model?: string;
38
+ temperature?: number;
39
+ maxTokens?: number;
40
+ timeout?: number;
41
+ retries?: number;
42
+ }
43
+ //# sourceMappingURL=llm.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"llm.d.ts","sourceRoot":"","sources":["../../src/types/llm.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAY,UAAU,EAAE,MAAM,SAAS,CAAC;AAC5D,OAAO,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAElC;;GAEG;AAEH,MAAM,WAAW,WAAW;IA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AAO,CAAC,EAAE,MAAM,CAAC;CAClB"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=llm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"llm.js","sourceRoot":"","sources":["../../src/types/llm.ts"],"names":[],"mappings":""}
@@ -0,0 +1,129 @@
1
+ /**
2
+ * Payment System Types
3
+ */
4
+ export interface PaymentProvider {
5
+ name: string;
6
+ version: string;
7
+ processPayment(request: PaymentRequest): Promise<PaymentResult>;
8
+ refundPayment(refundRequest: RefundRequest): Promise<RefundResult>;
9
+ getPaymentStatus(paymentId: string): Promise<PaymentStatus>;
10
+ validateWebhook(payload: unknown, signature: string): Promise<boolean>;
11
+ processWebhook(payload: unknown): Promise<WebhookResult>;
12
+ getSupportedCurrencies(): string[];
13
+ getSupportedPaymentMethods(): PaymentMethod[];
14
+ getWebhookEvents(): string[];
15
+ initialize(config: PaymentProviderConfig): Promise<void>;
16
+ healthCheck(): Promise<boolean>;
17
+ }
18
+ export interface PaymentRequest {
19
+ amount: number;
20
+ currency: string;
21
+ paymentMethod: PaymentMethod;
22
+ customer?: CustomerInfo;
23
+ metadata?: Record<string, unknown>;
24
+ callbackUrl?: string;
25
+ description?: string;
26
+ }
27
+ export interface PaymentResult {
28
+ success: boolean;
29
+ paymentId: string;
30
+ status: PaymentStatus;
31
+ providerResponse?: unknown;
32
+ redirectUrl?: string;
33
+ qrCode?: string;
34
+ instructions?: string;
35
+ error?: string;
36
+ }
37
+ export interface RefundRequest {
38
+ paymentId: string;
39
+ amount?: number;
40
+ reason?: string;
41
+ metadata?: Record<string, unknown>;
42
+ }
43
+ export interface RefundResult {
44
+ success: boolean;
45
+ refundId: string;
46
+ amount: number;
47
+ status: RefundStatus;
48
+ error?: string;
49
+ }
50
+ export type PaymentStatus = 'pending' | 'processing' | 'completed' | 'failed' | 'cancelled' | 'refunded';
51
+ export type RefundStatus = 'pending' | 'completed' | 'failed';
52
+ export interface PaymentMethod {
53
+ type: 'card' | 'mobile_money' | 'bank_transfer' | 'digital_wallet' | 'crypto' | 'custom';
54
+ provider: string;
55
+ details?: Record<string, unknown>;
56
+ }
57
+ export interface CustomerInfo {
58
+ id?: string;
59
+ email?: string;
60
+ phone?: string;
61
+ name?: string;
62
+ address?: Address;
63
+ }
64
+ export interface Address {
65
+ street?: string;
66
+ city?: string;
67
+ state?: string;
68
+ country: string;
69
+ postalCode?: string;
70
+ }
71
+ export interface WebhookResult {
72
+ processed: boolean;
73
+ paymentId?: string;
74
+ event: string;
75
+ data?: unknown;
76
+ }
77
+ export interface PaymentProviderConfig {
78
+ name: string;
79
+ credentials: Record<string, unknown>;
80
+ environment?: string;
81
+ webhookUrl?: string;
82
+ callbackUrl?: string;
83
+ metadata?: Record<string, unknown>;
84
+ }
85
+ export interface HttpClient {
86
+ get(url: string, headers?: Record<string, string>): Promise<unknown>;
87
+ post(url: string, data: unknown, headers?: Record<string, string>): Promise<unknown>;
88
+ put(url: string, data: unknown, headers?: Record<string, string>): Promise<unknown>;
89
+ delete(url: string, headers?: Record<string, string>): Promise<unknown>;
90
+ }
91
+ export interface AuthHeaders {
92
+ [key: string]: string;
93
+ }
94
+ export interface GenericAPIPaymentProvider extends PaymentProvider {
95
+ httpClient: HttpClient;
96
+ endpoints: {
97
+ payment: string;
98
+ refund: string;
99
+ status: string;
100
+ webhook?: string;
101
+ };
102
+ transformPaymentRequest(request: PaymentRequest): unknown;
103
+ transformPaymentResponse(response: unknown): PaymentResult;
104
+ transformRefundRequest(request: RefundRequest): unknown;
105
+ transformRefundResponse(response: unknown): RefundResult;
106
+ authenticate(): Promise<AuthHeaders>;
107
+ }
108
+ export interface MPesaPaymentMethod extends PaymentMethod {
109
+ type: 'mobile_money';
110
+ provider: 'mpesa';
111
+ details: {
112
+ phoneNumber: string;
113
+ accountReference?: string;
114
+ transactionDesc?: string;
115
+ };
116
+ }
117
+ export interface MPesaConfig extends PaymentProviderConfig {
118
+ name: 'mpesa';
119
+ credentials: {
120
+ consumerKey: string;
121
+ consumerSecret: string;
122
+ shortcode: string;
123
+ passkey: string;
124
+ };
125
+ environment: 'sandbox' | 'production';
126
+ webhookUrl: string;
127
+ callbackUrl: string;
128
+ }
129
+ //# sourceMappingURL=payment.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"payment.d.ts","sourceRoot":"","sources":["../../src/types/payment.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAGhB,cAAc,CAAC,OAAO,EAAE,cAAc,GAAG,OAAO,CAAC,aAAa,CAAC,CAAC;IAChE,aAAa,CAAC,aAAa,EAAE,aAAa,GAAG,OAAO,CAAC,YAAY,CAAC,CAAC;IACnE,gBAAgB,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,aAAa,CAAC,CAAC;IAG5D,eAAe,CAAC,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;IACvE,cAAc,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAAC,aAAa,CAAC,CAAC;IAGzD,sBAAsB,IAAI,MAAM,EAAE,CAAC;IACnC,0BAA0B,IAAI,aAAa,EAAE,CAAC;IAC9C,gBAAgB,IAAI,MAAM,EAAE,CAAC;IAG7B,UAAU,CAAC,MAAM,EAAE,qBAAqB,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACzD,WAAW,IAAI,OAAO,CAAC,OAAO,CAAC,CAAC;CACjC;AAED,MAAM,WAAW,cAAc;IAC7B,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,aAAa,EAAE,aAAa,CAAC;IAC7B,QAAQ,CAAC,EAAE,YAAY,CAAC;IACxB,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACnC,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S,GAAG,YAAY,CAAC;IACtC,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;CACrB"}
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ /**
3
+ * Payment System Types
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ //# sourceMappingURL=payment.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"payment.js","sourceRoot":"","sources":["../../src/types/payment.ts"],"names":[],"mappings":";AAAA;;GAEG"}