@objectstack/spec 0.3.3 → 0.4.1

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 (304) hide show
  1. package/dist/ai/conversation.zod.d.ts +14 -14
  2. package/dist/ai/cost.zod.d.ts +112 -112
  3. package/dist/ai/model-registry.zod.d.ts +44 -44
  4. package/dist/ai/nlq.zod.d.ts +2 -2
  5. package/dist/ai/orchestration.zod.d.ts +6 -6
  6. package/dist/ai/predictive.zod.d.ts +8 -8
  7. package/dist/ai/rag-pipeline.zod.d.ts +62 -62
  8. package/dist/api/contract.zod.d.ts +92 -92
  9. package/dist/api/discovery.zod.d.ts +2 -2
  10. package/dist/api/index.d.ts +2 -0
  11. package/dist/api/index.d.ts.map +1 -1
  12. package/dist/api/index.js +2 -0
  13. package/dist/api/odata.zod.d.ts +482 -0
  14. package/dist/api/odata.zod.d.ts.map +1 -0
  15. package/dist/api/odata.zod.js +401 -0
  16. package/dist/api/router.zod.d.ts +4 -4
  17. package/dist/auth/config.zod.d.ts +21 -21
  18. package/dist/auth/index.d.ts +1 -0
  19. package/dist/auth/index.d.ts.map +1 -1
  20. package/dist/auth/index.js +1 -0
  21. package/dist/auth/organization.zod.d.ts +2 -2
  22. package/dist/auth/role.zod.d.ts +14 -0
  23. package/dist/auth/role.zod.d.ts.map +1 -1
  24. package/dist/auth/role.zod.js +16 -1
  25. package/dist/auth/scim.zod.d.ts +2732 -0
  26. package/dist/auth/scim.zod.d.ts.map +1 -0
  27. package/dist/auth/scim.zod.js +811 -0
  28. package/dist/automation/approval.zod.d.ts +643 -0
  29. package/dist/automation/approval.zod.d.ts.map +1 -0
  30. package/dist/automation/approval.zod.js +84 -0
  31. package/dist/automation/connector.zod.d.ts +1284 -0
  32. package/dist/automation/connector.zod.d.ts.map +1 -0
  33. package/dist/automation/connector.zod.js +500 -0
  34. package/dist/automation/etl.zod.d.ts +623 -0
  35. package/dist/automation/etl.zod.d.ts.map +1 -0
  36. package/dist/automation/etl.zod.js +359 -0
  37. package/dist/automation/flow.zod.d.ts +6 -6
  38. package/dist/automation/index.d.ts +4 -0
  39. package/dist/automation/index.d.ts.map +1 -1
  40. package/dist/automation/index.js +4 -0
  41. package/dist/automation/sync.zod.d.ts +854 -0
  42. package/dist/automation/sync.zod.d.ts.map +1 -0
  43. package/dist/automation/sync.zod.js +444 -0
  44. package/dist/automation/webhook.zod.d.ts +24 -1
  45. package/dist/automation/webhook.zod.d.ts.map +1 -1
  46. package/dist/automation/webhook.zod.js +27 -3
  47. package/dist/automation/workflow.zod.d.ts +14 -0
  48. package/dist/automation/workflow.zod.d.ts.map +1 -1
  49. package/dist/automation/workflow.zod.js +16 -1
  50. package/dist/data/field.zod.d.ts +338 -8
  51. package/dist/data/field.zod.d.ts.map +1 -1
  52. package/dist/data/field.zod.js +100 -16
  53. package/dist/data/mapping.zod.d.ts +22 -10
  54. package/dist/data/mapping.zod.d.ts.map +1 -1
  55. package/dist/data/mapping.zod.js +16 -3
  56. package/dist/data/object.zod.d.ts +116 -22
  57. package/dist/data/object.zod.d.ts.map +1 -1
  58. package/dist/data/object.zod.js +4 -4
  59. package/dist/data/validation.zod.d.ts +18 -18
  60. package/dist/hub/composer.zod.d.ts +42 -1939
  61. package/dist/hub/composer.zod.d.ts.map +1 -1
  62. package/dist/hub/composer.zod.js +1 -1
  63. package/dist/hub/license.zod.d.ts +2 -2
  64. package/dist/hub/marketplace.zod.d.ts +6 -6
  65. package/dist/index.d.ts +2 -2
  66. package/dist/index.d.ts.map +1 -1
  67. package/dist/index.js +6 -3
  68. package/dist/permission/index.d.ts +7 -5
  69. package/dist/permission/index.d.ts.map +1 -1
  70. package/dist/permission/index.js +7 -5
  71. package/dist/permission/permission.zod.d.ts +14 -0
  72. package/dist/permission/permission.zod.d.ts.map +1 -1
  73. package/dist/permission/permission.zod.js +16 -1
  74. package/dist/permission/rls.zod.d.ts +605 -0
  75. package/dist/permission/rls.zod.d.ts.map +1 -0
  76. package/dist/permission/rls.zod.js +615 -0
  77. package/dist/permission/territory.zod.d.ts +13 -0
  78. package/dist/permission/territory.zod.d.ts.map +1 -1
  79. package/dist/permission/territory.zod.js +15 -1
  80. package/dist/shared/identifiers.zod.d.ts +87 -0
  81. package/dist/shared/identifiers.zod.d.ts.map +1 -0
  82. package/dist/shared/identifiers.zod.js +101 -0
  83. package/dist/shared/index.d.ts +6 -0
  84. package/dist/shared/index.d.ts.map +1 -0
  85. package/dist/{driver → shared}/index.js +5 -4
  86. package/dist/stack.zod.d.ts +19869 -0
  87. package/dist/stack.zod.d.ts.map +1 -0
  88. package/dist/stack.zod.js +248 -0
  89. package/dist/system/audit.zod.d.ts +12 -12
  90. package/dist/{kernel → system}/context.zod.d.ts.map +1 -1
  91. package/dist/{driver → system}/datasource.zod.d.ts +2 -2
  92. package/dist/{driver → system}/datasource.zod.d.ts.map +1 -1
  93. package/dist/{driver → system/driver}/mongo.zod.d.ts +2 -2
  94. package/dist/system/driver/mongo.zod.d.ts.map +1 -0
  95. package/dist/{driver → system/driver}/postgres.zod.d.ts +4 -4
  96. package/dist/system/driver/postgres.zod.d.ts.map +1 -0
  97. package/dist/{driver → system}/driver.zod.d.ts +14 -14
  98. package/dist/{driver → system}/driver.zod.d.ts.map +1 -1
  99. package/dist/system/events.zod.d.ts +15 -12
  100. package/dist/system/events.zod.d.ts.map +1 -1
  101. package/dist/system/events.zod.js +5 -1
  102. package/dist/system/feature.zod.d.ts +131 -0
  103. package/dist/system/feature.zod.d.ts.map +1 -0
  104. package/dist/system/feature.zod.js +45 -0
  105. package/dist/system/index.d.ts +10 -0
  106. package/dist/system/index.d.ts.map +1 -1
  107. package/dist/system/index.js +12 -0
  108. package/dist/system/job.zod.d.ts +8 -8
  109. package/dist/{kernel → system}/logger.zod.d.ts +4 -4
  110. package/dist/{kernel → system}/logger.zod.d.ts.map +1 -1
  111. package/dist/system/manifest.zod.d.ts +515 -0
  112. package/dist/system/manifest.zod.d.ts.map +1 -0
  113. package/dist/{kernel → system}/manifest.zod.js +0 -12
  114. package/dist/{kernel → system}/plugin.zod.d.ts.map +1 -1
  115. package/dist/{kernel → system}/scoped-storage.zod.d.ts +2 -2
  116. package/dist/{kernel → system}/scoped-storage.zod.d.ts.map +1 -1
  117. package/dist/ui/action.zod.d.ts +35 -10
  118. package/dist/ui/action.zod.d.ts.map +1 -1
  119. package/dist/ui/action.zod.js +30 -1
  120. package/dist/ui/app.zod.d.ts +23 -8
  121. package/dist/ui/app.zod.d.ts.map +1 -1
  122. package/dist/ui/app.zod.js +32 -4
  123. package/dist/ui/block.zod.d.ts +265 -0
  124. package/dist/ui/block.zod.d.ts.map +1 -0
  125. package/dist/ui/block.zod.js +90 -0
  126. package/dist/ui/component.zod.d.ts +265 -0
  127. package/dist/ui/component.zod.d.ts.map +1 -0
  128. package/dist/ui/component.zod.js +90 -0
  129. package/dist/ui/dashboard.zod.d.ts +15 -15
  130. package/dist/ui/dashboard.zod.d.ts.map +1 -1
  131. package/dist/ui/dashboard.zod.js +18 -8
  132. package/dist/ui/index.d.ts +1 -0
  133. package/dist/ui/index.d.ts.map +1 -1
  134. package/dist/ui/index.js +1 -0
  135. package/dist/ui/page.zod.d.ts +21 -3
  136. package/dist/ui/page.zod.d.ts.map +1 -1
  137. package/dist/ui/page.zod.js +37 -4
  138. package/dist/ui/report.zod.d.ts +7 -7
  139. package/dist/ui/view.zod.d.ts +252 -240
  140. package/dist/ui/view.zod.d.ts.map +1 -1
  141. package/dist/ui/view.zod.js +32 -3
  142. package/dist/ui/widget.zod.d.ts +673 -5
  143. package/dist/ui/widget.zod.d.ts.map +1 -1
  144. package/dist/ui/widget.zod.js +294 -1
  145. package/json-schema/api/ODataError.json +65 -0
  146. package/json-schema/api/ODataFilterFunction.json +39 -0
  147. package/json-schema/api/ODataFilterOperator.json +24 -0
  148. package/json-schema/api/ODataMetadata.json +115 -0
  149. package/json-schema/api/ODataQuery.json +89 -0
  150. package/json-schema/api/ODataResponse.json +37 -0
  151. package/json-schema/auth/Role.json +3 -2
  152. package/json-schema/auth/SCIMAddress.json +50 -0
  153. package/json-schema/auth/SCIMEmail.json +38 -0
  154. package/json-schema/auth/SCIMEnterpriseUser.json +55 -0
  155. package/json-schema/auth/SCIMError.json +52 -0
  156. package/json-schema/auth/SCIMGroup.json +102 -0
  157. package/json-schema/auth/SCIMGroupReference.json +36 -0
  158. package/json-schema/auth/SCIMListResponse.json +606 -0
  159. package/json-schema/auth/SCIMMemberReference.json +36 -0
  160. package/json-schema/auth/SCIMMeta.json +35 -0
  161. package/json-schema/auth/SCIMName.json +36 -0
  162. package/json-schema/auth/SCIMPatchOperation.json +31 -0
  163. package/json-schema/auth/SCIMPatchRequest.json +56 -0
  164. package/json-schema/auth/SCIMPhoneNumber.json +40 -0
  165. package/json-schema/auth/SCIMUser.json +462 -0
  166. package/json-schema/automation/ApprovalAction.json +35 -0
  167. package/json-schema/automation/ApprovalActionType.json +15 -0
  168. package/json-schema/automation/ApprovalProcess.json +326 -0
  169. package/json-schema/automation/ApprovalStep.json +147 -0
  170. package/json-schema/automation/ApproverType.json +16 -0
  171. package/json-schema/automation/AuthField.json +73 -0
  172. package/json-schema/automation/Authentication.json +159 -0
  173. package/json-schema/automation/AuthenticationType.json +18 -0
  174. package/json-schema/automation/ConflictResolution.json +16 -0
  175. package/json-schema/automation/Connector.json +440 -0
  176. package/json-schema/automation/ConnectorCategory.json +26 -0
  177. package/json-schema/automation/ConnectorInstance.json +69 -0
  178. package/json-schema/automation/ConnectorOperation.json +117 -0
  179. package/json-schema/automation/ConnectorTrigger.json +54 -0
  180. package/json-schema/automation/DataDestinationConfig.json +89 -0
  181. package/json-schema/automation/DataSourceConfig.json +34 -0
  182. package/json-schema/automation/DataSyncConfig.json +355 -0
  183. package/json-schema/automation/ETLDestination.json +57 -0
  184. package/json-schema/automation/ETLEndpointType.json +19 -0
  185. package/json-schema/automation/ETLPipeline.json +252 -0
  186. package/json-schema/automation/ETLPipelineRun.json +107 -0
  187. package/json-schema/automation/ETLRunStatus.json +17 -0
  188. package/json-schema/automation/ETLSource.json +60 -0
  189. package/json-schema/automation/ETLSyncMode.json +14 -0
  190. package/json-schema/automation/ETLTransformation.json +46 -0
  191. package/json-schema/automation/ETLTransformationType.json +21 -0
  192. package/json-schema/automation/FieldMapping.json +36 -0
  193. package/json-schema/automation/OAuth2Config.json +43 -0
  194. package/json-schema/automation/OperationParameter.json +59 -0
  195. package/json-schema/automation/OperationType.json +17 -0
  196. package/json-schema/automation/SyncDirection.json +14 -0
  197. package/json-schema/automation/SyncExecutionResult.json +135 -0
  198. package/json-schema/automation/SyncExecutionStatus.json +17 -0
  199. package/json-schema/automation/SyncMode.json +14 -0
  200. package/json-schema/automation/Webhook.json +3 -1
  201. package/json-schema/automation/WebhookReceiver.json +3 -1
  202. package/json-schema/automation/WorkflowRule.json +3 -2
  203. package/json-schema/data/Field.json +62 -4
  204. package/json-schema/data/FieldType.json +12 -2
  205. package/json-schema/data/Object.json +62 -4
  206. package/json-schema/data/SelectOption.json +4 -2
  207. package/json-schema/data/VectorConfig.json +51 -0
  208. package/json-schema/hub/ComposerResponse.json +0 -2162
  209. package/json-schema/permission/PermissionSet.json +3 -1
  210. package/json-schema/permission/RLSConfig.json +59 -0
  211. package/json-schema/permission/RLSEvaluationResult.json +40 -0
  212. package/json-schema/permission/RLSOperation.json +16 -0
  213. package/json-schema/permission/RLSUserContext.json +51 -0
  214. package/json-schema/permission/RowLevelSecurityPolicy.json +77 -0
  215. package/json-schema/permission/Territory.json +3 -1
  216. package/json-schema/shared/EventName.json +12 -0
  217. package/json-schema/shared/SnakeCaseIdentifier.json +12 -0
  218. package/json-schema/shared/SystemIdentifier.json +12 -0
  219. package/json-schema/system/Event.json +3 -2
  220. package/json-schema/system/FeatureFlag.json +87 -0
  221. package/json-schema/system/FeatureStrategy.json +16 -0
  222. package/json-schema/system/Manifest.json +395 -0
  223. package/json-schema/ui/Action.json +25 -4
  224. package/json-schema/ui/ActionParam.json +12 -2
  225. package/json-schema/ui/App.json +18 -7
  226. package/json-schema/ui/ChartType.json +9 -1
  227. package/json-schema/ui/Dashboard.json +9 -1
  228. package/json-schema/ui/DashboardNavItem.json +3 -1
  229. package/json-schema/ui/DashboardWidget.json +9 -1
  230. package/json-schema/ui/FieldWidgetProps.json +62 -4
  231. package/json-schema/ui/FormView.json +4 -1
  232. package/json-schema/ui/GroupNavItem.json +3 -1
  233. package/json-schema/ui/ListView.json +7 -1
  234. package/json-schema/ui/NavigationItem.json +15 -5
  235. package/json-schema/ui/ObjectNavItem.json +3 -1
  236. package/json-schema/ui/Page.json +36 -4
  237. package/json-schema/ui/PageCardProps.json +32 -0
  238. package/json-schema/ui/PageComponent.json +33 -3
  239. package/json-schema/ui/PageComponentType.json +32 -0
  240. package/json-schema/ui/PageHeaderProps.json +39 -0
  241. package/json-schema/ui/PageNavItem.json +3 -1
  242. package/json-schema/ui/PageRegion.json +33 -3
  243. package/json-schema/ui/PageTabsProps.json +55 -0
  244. package/json-schema/ui/RecordDetailsProps.json +37 -0
  245. package/json-schema/ui/RecordHighlightsProps.json +24 -0
  246. package/json-schema/ui/RecordRelatedListProps.json +39 -0
  247. package/json-schema/ui/UrlNavItem.json +3 -1
  248. package/json-schema/ui/View.json +22 -4
  249. package/json-schema/ui/WidgetEvent.json +42 -0
  250. package/json-schema/ui/WidgetLifecycle.json +40 -0
  251. package/json-schema/ui/WidgetManifest.json +262 -0
  252. package/json-schema/ui/WidgetProperty.json +58 -0
  253. package/package.json +1 -1
  254. package/prompts/architecture.md +5 -5
  255. package/prompts/create-new-project.md +85 -0
  256. package/dist/driver/index.d.ts +0 -5
  257. package/dist/driver/index.d.ts.map +0 -1
  258. package/dist/driver/mongo.zod.d.ts.map +0 -1
  259. package/dist/driver/postgres.zod.d.ts.map +0 -1
  260. package/dist/kernel/index.d.ts +0 -12
  261. package/dist/kernel/index.d.ts.map +0 -1
  262. package/dist/kernel/index.js +0 -27
  263. package/dist/kernel/manifest.zod.d.ts +0 -2153
  264. package/dist/kernel/manifest.zod.d.ts.map +0 -1
  265. package/json-schema/kernel/Manifest.json +0 -2557
  266. /package/dist/{kernel → system}/context.zod.d.ts +0 -0
  267. /package/dist/{kernel → system}/context.zod.js +0 -0
  268. /package/dist/{driver → system}/datasource.zod.js +0 -0
  269. /package/dist/{driver → system/driver}/mongo.zod.js +0 -0
  270. /package/dist/{driver → system/driver}/postgres.zod.js +0 -0
  271. /package/dist/{driver → system}/driver.zod.js +0 -0
  272. /package/dist/{kernel → system}/logger.zod.js +0 -0
  273. /package/dist/{kernel → system}/plugin.zod.d.ts +0 -0
  274. /package/dist/{kernel → system}/plugin.zod.js +0 -0
  275. /package/dist/{kernel → system}/scoped-storage.zod.js +0 -0
  276. /package/json-schema/{driver → system}/Datasource.json +0 -0
  277. /package/json-schema/{driver → system}/DatasourceCapabilities.json +0 -0
  278. /package/json-schema/{driver → system}/DriverCapabilities.json +0 -0
  279. /package/json-schema/{driver → system}/DriverDefinition.json +0 -0
  280. /package/json-schema/{driver → system}/DriverInterface.json +0 -0
  281. /package/json-schema/{driver → system}/DriverOptions.json +0 -0
  282. /package/json-schema/{driver → system}/DriverType.json +0 -0
  283. /package/json-schema/{kernel → system}/FileMetadata.json +0 -0
  284. /package/json-schema/{kernel → system}/I18nContext.json +0 -0
  285. /package/json-schema/{kernel → system}/KernelContext.json +0 -0
  286. /package/json-schema/{kernel → system}/LogEntry.json +0 -0
  287. /package/json-schema/{kernel → system}/LogFormat.json +0 -0
  288. /package/json-schema/{kernel → system}/LogLevel.json +0 -0
  289. /package/json-schema/{kernel → system}/Logger.json +0 -0
  290. /package/json-schema/{kernel → system}/LoggerConfig.json +0 -0
  291. /package/json-schema/{driver → system}/MongoConfig.json +0 -0
  292. /package/json-schema/{kernel → system}/ObjectQLClient.json +0 -0
  293. /package/json-schema/{kernel → system}/Plugin.json +0 -0
  294. /package/json-schema/{kernel → system}/PluginContext.json +0 -0
  295. /package/json-schema/{kernel → system}/PluginLifecycle.json +0 -0
  296. /package/json-schema/{driver → system}/PostgresConfig.json +0 -0
  297. /package/json-schema/{kernel → system}/Router.json +0 -0
  298. /package/json-schema/{kernel → system}/RuntimeMode.json +0 -0
  299. /package/json-schema/{kernel → system}/Scheduler.json +0 -0
  300. /package/json-schema/{kernel → system}/ScopedStorage.json +0 -0
  301. /package/json-schema/{kernel → system}/ScopedStorageConfig.json +0 -0
  302. /package/json-schema/{kernel → system}/StorageAdapterType.json +0 -0
  303. /package/json-schema/{kernel → system}/StorageScope.json +0 -0
  304. /package/json-schema/{kernel → system}/SystemAPI.json +0 -0
@@ -0,0 +1,1284 @@
1
+ import { z } from 'zod';
2
+ /**
3
+ * Connector Registry Protocol
4
+ *
5
+ * Inspired by Zapier, n8n, and Workato connector architectures.
6
+ *
7
+ * Connectors are reusable components that provide pre-built integrations with
8
+ * external systems (SaaS, databases, APIs, etc.).
9
+ *
10
+ * ## Use Cases
11
+ *
12
+ * 1. **SaaS Integration**
13
+ * - Connect to Salesforce, HubSpot, Stripe, etc.
14
+ * - Pre-built authentication and API clients
15
+ * - Standard operations (CRUD, search, etc.)
16
+ *
17
+ * 2. **Database Connectivity**
18
+ * - Connect to PostgreSQL, MySQL, MongoDB, etc.
19
+ * - Query builders and connection pooling
20
+ * - Schema introspection
21
+ *
22
+ * 3. **Third-Party Services**
23
+ * - Payment processors (Stripe, PayPal)
24
+ * - Communication (Twilio, SendGrid, Slack)
25
+ * - Storage (S3, Google Drive, Dropbox)
26
+ *
27
+ * @see https://zapier.com/developer/documentation/v2/
28
+ * @see https://docs.n8n.io/integrations/creating-nodes/
29
+ *
30
+ * @example
31
+ * ```typescript
32
+ * const stripeConnector: Connector = {
33
+ * id: 'stripe',
34
+ * name: 'Stripe',
35
+ * category: 'payment',
36
+ * authentication: {
37
+ * type: 'apiKey',
38
+ * fields: [{ name: 'api_key', label: 'API Key', type: 'password' }]
39
+ * },
40
+ * operations: [
41
+ * { id: 'create_customer', name: 'Create Customer', type: 'write' }
42
+ * ]
43
+ * }
44
+ * ```
45
+ */
46
+ /**
47
+ * Connector Category
48
+ */
49
+ export declare const ConnectorCategorySchema: z.ZodEnum<["crm", "payment", "communication", "storage", "analytics", "database", "marketing", "accounting", "hr", "productivity", "ecommerce", "support", "devtools", "social", "other"]>;
50
+ export type ConnectorCategory = z.infer<typeof ConnectorCategorySchema>;
51
+ /**
52
+ * Authentication Type
53
+ */
54
+ export declare const AuthenticationTypeSchema: z.ZodEnum<["none", "apiKey", "basic", "bearer", "oauth1", "oauth2", "custom"]>;
55
+ export type AuthenticationType = z.infer<typeof AuthenticationTypeSchema>;
56
+ /**
57
+ * Authentication Field Schema
58
+ */
59
+ export declare const AuthFieldSchema: z.ZodObject<{
60
+ /**
61
+ * Field name (machine name)
62
+ */
63
+ name: z.ZodString;
64
+ /**
65
+ * Field label
66
+ */
67
+ label: z.ZodString;
68
+ /**
69
+ * Field type
70
+ */
71
+ type: z.ZodDefault<z.ZodEnum<["text", "password", "url", "select"]>>;
72
+ /**
73
+ * Field description
74
+ */
75
+ description: z.ZodOptional<z.ZodString>;
76
+ /**
77
+ * Whether field is required
78
+ */
79
+ required: z.ZodDefault<z.ZodBoolean>;
80
+ /**
81
+ * Default value
82
+ */
83
+ default: z.ZodOptional<z.ZodString>;
84
+ /**
85
+ * Options for select fields
86
+ */
87
+ options: z.ZodOptional<z.ZodArray<z.ZodObject<{
88
+ label: z.ZodString;
89
+ value: z.ZodString;
90
+ }, "strip", z.ZodTypeAny, {
91
+ value: string;
92
+ label: string;
93
+ }, {
94
+ value: string;
95
+ label: string;
96
+ }>, "many">>;
97
+ /**
98
+ * Placeholder text
99
+ */
100
+ placeholder: z.ZodOptional<z.ZodString>;
101
+ }, "strip", z.ZodTypeAny, {
102
+ type: "text" | "url" | "password" | "select";
103
+ required: boolean;
104
+ label: string;
105
+ name: string;
106
+ options?: {
107
+ value: string;
108
+ label: string;
109
+ }[] | undefined;
110
+ default?: string | undefined;
111
+ description?: string | undefined;
112
+ placeholder?: string | undefined;
113
+ }, {
114
+ label: string;
115
+ name: string;
116
+ options?: {
117
+ value: string;
118
+ label: string;
119
+ }[] | undefined;
120
+ type?: "text" | "url" | "password" | "select" | undefined;
121
+ required?: boolean | undefined;
122
+ default?: string | undefined;
123
+ description?: string | undefined;
124
+ placeholder?: string | undefined;
125
+ }>;
126
+ export type AuthField = z.infer<typeof AuthFieldSchema>;
127
+ /**
128
+ * OAuth 2.0 Configuration
129
+ */
130
+ export declare const OAuth2ConfigSchema: z.ZodObject<{
131
+ /**
132
+ * Authorization URL
133
+ */
134
+ authorizationUrl: z.ZodString;
135
+ /**
136
+ * Token URL
137
+ */
138
+ tokenUrl: z.ZodString;
139
+ /**
140
+ * Scopes to request
141
+ */
142
+ scopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
143
+ /**
144
+ * Client ID field name
145
+ */
146
+ clientIdField: z.ZodDefault<z.ZodString>;
147
+ /**
148
+ * Client secret field name
149
+ */
150
+ clientSecretField: z.ZodDefault<z.ZodString>;
151
+ }, "strip", z.ZodTypeAny, {
152
+ authorizationUrl: string;
153
+ tokenUrl: string;
154
+ clientIdField: string;
155
+ clientSecretField: string;
156
+ scopes?: string[] | undefined;
157
+ }, {
158
+ authorizationUrl: string;
159
+ tokenUrl: string;
160
+ scopes?: string[] | undefined;
161
+ clientIdField?: string | undefined;
162
+ clientSecretField?: string | undefined;
163
+ }>;
164
+ export type OAuth2Config = z.infer<typeof OAuth2ConfigSchema>;
165
+ /**
166
+ * Authentication Configuration
167
+ */
168
+ export declare const AuthenticationSchema: z.ZodObject<{
169
+ /**
170
+ * Authentication type
171
+ */
172
+ type: z.ZodEnum<["none", "apiKey", "basic", "bearer", "oauth1", "oauth2", "custom"]>;
173
+ /**
174
+ * Authentication fields
175
+ * Configuration fields needed for this auth type
176
+ */
177
+ fields: z.ZodOptional<z.ZodArray<z.ZodObject<{
178
+ /**
179
+ * Field name (machine name)
180
+ */
181
+ name: z.ZodString;
182
+ /**
183
+ * Field label
184
+ */
185
+ label: z.ZodString;
186
+ /**
187
+ * Field type
188
+ */
189
+ type: z.ZodDefault<z.ZodEnum<["text", "password", "url", "select"]>>;
190
+ /**
191
+ * Field description
192
+ */
193
+ description: z.ZodOptional<z.ZodString>;
194
+ /**
195
+ * Whether field is required
196
+ */
197
+ required: z.ZodDefault<z.ZodBoolean>;
198
+ /**
199
+ * Default value
200
+ */
201
+ default: z.ZodOptional<z.ZodString>;
202
+ /**
203
+ * Options for select fields
204
+ */
205
+ options: z.ZodOptional<z.ZodArray<z.ZodObject<{
206
+ label: z.ZodString;
207
+ value: z.ZodString;
208
+ }, "strip", z.ZodTypeAny, {
209
+ value: string;
210
+ label: string;
211
+ }, {
212
+ value: string;
213
+ label: string;
214
+ }>, "many">>;
215
+ /**
216
+ * Placeholder text
217
+ */
218
+ placeholder: z.ZodOptional<z.ZodString>;
219
+ }, "strip", z.ZodTypeAny, {
220
+ type: "text" | "url" | "password" | "select";
221
+ required: boolean;
222
+ label: string;
223
+ name: string;
224
+ options?: {
225
+ value: string;
226
+ label: string;
227
+ }[] | undefined;
228
+ default?: string | undefined;
229
+ description?: string | undefined;
230
+ placeholder?: string | undefined;
231
+ }, {
232
+ label: string;
233
+ name: string;
234
+ options?: {
235
+ value: string;
236
+ label: string;
237
+ }[] | undefined;
238
+ type?: "text" | "url" | "password" | "select" | undefined;
239
+ required?: boolean | undefined;
240
+ default?: string | undefined;
241
+ description?: string | undefined;
242
+ placeholder?: string | undefined;
243
+ }>, "many">>;
244
+ /**
245
+ * OAuth 2.0 configuration (when type is oauth2)
246
+ */
247
+ oauth2: z.ZodOptional<z.ZodObject<{
248
+ /**
249
+ * Authorization URL
250
+ */
251
+ authorizationUrl: z.ZodString;
252
+ /**
253
+ * Token URL
254
+ */
255
+ tokenUrl: z.ZodString;
256
+ /**
257
+ * Scopes to request
258
+ */
259
+ scopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
260
+ /**
261
+ * Client ID field name
262
+ */
263
+ clientIdField: z.ZodDefault<z.ZodString>;
264
+ /**
265
+ * Client secret field name
266
+ */
267
+ clientSecretField: z.ZodDefault<z.ZodString>;
268
+ }, "strip", z.ZodTypeAny, {
269
+ authorizationUrl: string;
270
+ tokenUrl: string;
271
+ clientIdField: string;
272
+ clientSecretField: string;
273
+ scopes?: string[] | undefined;
274
+ }, {
275
+ authorizationUrl: string;
276
+ tokenUrl: string;
277
+ scopes?: string[] | undefined;
278
+ clientIdField?: string | undefined;
279
+ clientSecretField?: string | undefined;
280
+ }>>;
281
+ /**
282
+ * Test authentication instructions
283
+ */
284
+ test: z.ZodOptional<z.ZodObject<{
285
+ url: z.ZodOptional<z.ZodString>;
286
+ method: z.ZodDefault<z.ZodEnum<["GET", "POST", "PUT", "DELETE"]>>;
287
+ }, "strip", z.ZodTypeAny, {
288
+ method: "GET" | "POST" | "PUT" | "DELETE";
289
+ url?: string | undefined;
290
+ }, {
291
+ url?: string | undefined;
292
+ method?: "GET" | "POST" | "PUT" | "DELETE" | undefined;
293
+ }>>;
294
+ }, "strip", z.ZodTypeAny, {
295
+ type: "custom" | "none" | "apiKey" | "basic" | "bearer" | "oauth2" | "oauth1";
296
+ fields?: {
297
+ type: "text" | "url" | "password" | "select";
298
+ required: boolean;
299
+ label: string;
300
+ name: string;
301
+ options?: {
302
+ value: string;
303
+ label: string;
304
+ }[] | undefined;
305
+ default?: string | undefined;
306
+ description?: string | undefined;
307
+ placeholder?: string | undefined;
308
+ }[] | undefined;
309
+ test?: {
310
+ method: "GET" | "POST" | "PUT" | "DELETE";
311
+ url?: string | undefined;
312
+ } | undefined;
313
+ oauth2?: {
314
+ authorizationUrl: string;
315
+ tokenUrl: string;
316
+ clientIdField: string;
317
+ clientSecretField: string;
318
+ scopes?: string[] | undefined;
319
+ } | undefined;
320
+ }, {
321
+ type: "custom" | "none" | "apiKey" | "basic" | "bearer" | "oauth2" | "oauth1";
322
+ fields?: {
323
+ label: string;
324
+ name: string;
325
+ options?: {
326
+ value: string;
327
+ label: string;
328
+ }[] | undefined;
329
+ type?: "text" | "url" | "password" | "select" | undefined;
330
+ required?: boolean | undefined;
331
+ default?: string | undefined;
332
+ description?: string | undefined;
333
+ placeholder?: string | undefined;
334
+ }[] | undefined;
335
+ test?: {
336
+ url?: string | undefined;
337
+ method?: "GET" | "POST" | "PUT" | "DELETE" | undefined;
338
+ } | undefined;
339
+ oauth2?: {
340
+ authorizationUrl: string;
341
+ tokenUrl: string;
342
+ scopes?: string[] | undefined;
343
+ clientIdField?: string | undefined;
344
+ clientSecretField?: string | undefined;
345
+ } | undefined;
346
+ }>;
347
+ export type Authentication = z.infer<typeof AuthenticationSchema>;
348
+ /**
349
+ * Connector Operation Type
350
+ */
351
+ export declare const OperationTypeSchema: z.ZodEnum<["read", "write", "delete", "search", "trigger", "action"]>;
352
+ export type OperationType = z.infer<typeof OperationTypeSchema>;
353
+ /**
354
+ * Operation Parameter Schema
355
+ */
356
+ export declare const OperationParameterSchema: z.ZodObject<{
357
+ /**
358
+ * Parameter name
359
+ */
360
+ name: z.ZodString;
361
+ /**
362
+ * Parameter label
363
+ */
364
+ label: z.ZodString;
365
+ /**
366
+ * Parameter description
367
+ */
368
+ description: z.ZodOptional<z.ZodString>;
369
+ /**
370
+ * Parameter type
371
+ */
372
+ type: z.ZodEnum<["string", "number", "boolean", "array", "object", "date", "file"]>;
373
+ /**
374
+ * Whether parameter is required
375
+ */
376
+ required: z.ZodDefault<z.ZodBoolean>;
377
+ /**
378
+ * Default value
379
+ */
380
+ default: z.ZodOptional<z.ZodAny>;
381
+ /**
382
+ * Validation schema
383
+ */
384
+ validation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
385
+ /**
386
+ * Dynamic options function
387
+ */
388
+ dynamicOptions: z.ZodOptional<z.ZodString>;
389
+ }, "strip", z.ZodTypeAny, {
390
+ type: "string" | "number" | "boolean" | "object" | "date" | "array" | "file";
391
+ required: boolean;
392
+ label: string;
393
+ name: string;
394
+ validation?: Record<string, any> | undefined;
395
+ default?: any;
396
+ description?: string | undefined;
397
+ dynamicOptions?: string | undefined;
398
+ }, {
399
+ type: "string" | "number" | "boolean" | "object" | "date" | "array" | "file";
400
+ label: string;
401
+ name: string;
402
+ validation?: Record<string, any> | undefined;
403
+ required?: boolean | undefined;
404
+ default?: any;
405
+ description?: string | undefined;
406
+ dynamicOptions?: string | undefined;
407
+ }>;
408
+ export type OperationParameter = z.infer<typeof OperationParameterSchema>;
409
+ /**
410
+ * Connector Operation Schema
411
+ */
412
+ export declare const ConnectorOperationSchema: z.ZodObject<{
413
+ /**
414
+ * Operation identifier
415
+ */
416
+ id: z.ZodString;
417
+ /**
418
+ * Operation name
419
+ */
420
+ name: z.ZodString;
421
+ /**
422
+ * Operation description
423
+ */
424
+ description: z.ZodOptional<z.ZodString>;
425
+ /**
426
+ * Operation type
427
+ */
428
+ type: z.ZodEnum<["read", "write", "delete", "search", "trigger", "action"]>;
429
+ /**
430
+ * Input parameters
431
+ */
432
+ inputSchema: z.ZodOptional<z.ZodArray<z.ZodObject<{
433
+ /**
434
+ * Parameter name
435
+ */
436
+ name: z.ZodString;
437
+ /**
438
+ * Parameter label
439
+ */
440
+ label: z.ZodString;
441
+ /**
442
+ * Parameter description
443
+ */
444
+ description: z.ZodOptional<z.ZodString>;
445
+ /**
446
+ * Parameter type
447
+ */
448
+ type: z.ZodEnum<["string", "number", "boolean", "array", "object", "date", "file"]>;
449
+ /**
450
+ * Whether parameter is required
451
+ */
452
+ required: z.ZodDefault<z.ZodBoolean>;
453
+ /**
454
+ * Default value
455
+ */
456
+ default: z.ZodOptional<z.ZodAny>;
457
+ /**
458
+ * Validation schema
459
+ */
460
+ validation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
461
+ /**
462
+ * Dynamic options function
463
+ */
464
+ dynamicOptions: z.ZodOptional<z.ZodString>;
465
+ }, "strip", z.ZodTypeAny, {
466
+ type: "string" | "number" | "boolean" | "object" | "date" | "array" | "file";
467
+ required: boolean;
468
+ label: string;
469
+ name: string;
470
+ validation?: Record<string, any> | undefined;
471
+ default?: any;
472
+ description?: string | undefined;
473
+ dynamicOptions?: string | undefined;
474
+ }, {
475
+ type: "string" | "number" | "boolean" | "object" | "date" | "array" | "file";
476
+ label: string;
477
+ name: string;
478
+ validation?: Record<string, any> | undefined;
479
+ required?: boolean | undefined;
480
+ default?: any;
481
+ description?: string | undefined;
482
+ dynamicOptions?: string | undefined;
483
+ }>, "many">>;
484
+ /**
485
+ * Output schema
486
+ */
487
+ outputSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
488
+ /**
489
+ * Sample output for documentation
490
+ */
491
+ sampleOutput: z.ZodOptional<z.ZodAny>;
492
+ /**
493
+ * Whether operation supports pagination
494
+ */
495
+ supportsPagination: z.ZodDefault<z.ZodBoolean>;
496
+ /**
497
+ * Whether operation supports filtering
498
+ */
499
+ supportsFiltering: z.ZodDefault<z.ZodBoolean>;
500
+ }, "strip", z.ZodTypeAny, {
501
+ type: "delete" | "search" | "read" | "write" | "action" | "trigger";
502
+ name: string;
503
+ id: string;
504
+ supportsPagination: boolean;
505
+ supportsFiltering: boolean;
506
+ description?: string | undefined;
507
+ inputSchema?: {
508
+ type: "string" | "number" | "boolean" | "object" | "date" | "array" | "file";
509
+ required: boolean;
510
+ label: string;
511
+ name: string;
512
+ validation?: Record<string, any> | undefined;
513
+ default?: any;
514
+ description?: string | undefined;
515
+ dynamicOptions?: string | undefined;
516
+ }[] | undefined;
517
+ outputSchema?: Record<string, any> | undefined;
518
+ sampleOutput?: any;
519
+ }, {
520
+ type: "delete" | "search" | "read" | "write" | "action" | "trigger";
521
+ name: string;
522
+ id: string;
523
+ description?: string | undefined;
524
+ inputSchema?: {
525
+ type: "string" | "number" | "boolean" | "object" | "date" | "array" | "file";
526
+ label: string;
527
+ name: string;
528
+ validation?: Record<string, any> | undefined;
529
+ required?: boolean | undefined;
530
+ default?: any;
531
+ description?: string | undefined;
532
+ dynamicOptions?: string | undefined;
533
+ }[] | undefined;
534
+ outputSchema?: Record<string, any> | undefined;
535
+ sampleOutput?: any;
536
+ supportsPagination?: boolean | undefined;
537
+ supportsFiltering?: boolean | undefined;
538
+ }>;
539
+ export type ConnectorOperation = z.infer<typeof ConnectorOperationSchema>;
540
+ /**
541
+ * Connector Trigger Schema
542
+ *
543
+ * Triggers are special operations that watch for events and initiate workflows.
544
+ */
545
+ export declare const ConnectorTriggerSchema: z.ZodObject<{
546
+ /**
547
+ * Trigger identifier
548
+ */
549
+ id: z.ZodString;
550
+ /**
551
+ * Trigger name
552
+ */
553
+ name: z.ZodString;
554
+ /**
555
+ * Trigger description
556
+ */
557
+ description: z.ZodOptional<z.ZodString>;
558
+ /**
559
+ * Trigger type
560
+ */
561
+ type: z.ZodEnum<["webhook", "polling", "stream"]>;
562
+ /**
563
+ * Trigger configuration
564
+ */
565
+ config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
566
+ /**
567
+ * Output schema
568
+ */
569
+ outputSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
570
+ /**
571
+ * Polling interval (for polling triggers)
572
+ * In milliseconds
573
+ */
574
+ pollingIntervalMs: z.ZodOptional<z.ZodNumber>;
575
+ }, "strip", z.ZodTypeAny, {
576
+ type: "webhook" | "polling" | "stream";
577
+ name: string;
578
+ id: string;
579
+ description?: string | undefined;
580
+ config?: Record<string, any> | undefined;
581
+ outputSchema?: Record<string, any> | undefined;
582
+ pollingIntervalMs?: number | undefined;
583
+ }, {
584
+ type: "webhook" | "polling" | "stream";
585
+ name: string;
586
+ id: string;
587
+ description?: string | undefined;
588
+ config?: Record<string, any> | undefined;
589
+ outputSchema?: Record<string, any> | undefined;
590
+ pollingIntervalMs?: number | undefined;
591
+ }>;
592
+ export type ConnectorTrigger = z.infer<typeof ConnectorTriggerSchema>;
593
+ /**
594
+ * Connector Schema
595
+ *
596
+ * Complete definition of a connector to an external system.
597
+ */
598
+ export declare const ConnectorSchema: z.ZodObject<{
599
+ /**
600
+ * Connector identifier
601
+ * Must be globally unique
602
+ */
603
+ id: z.ZodString;
604
+ /**
605
+ * Connector name
606
+ */
607
+ name: z.ZodString;
608
+ /**
609
+ * Connector description
610
+ */
611
+ description: z.ZodOptional<z.ZodString>;
612
+ /**
613
+ * Connector version (semver)
614
+ */
615
+ version: z.ZodOptional<z.ZodString>;
616
+ /**
617
+ * Connector icon URL or name
618
+ */
619
+ icon: z.ZodOptional<z.ZodString>;
620
+ /**
621
+ * Connector category
622
+ */
623
+ category: z.ZodEnum<["crm", "payment", "communication", "storage", "analytics", "database", "marketing", "accounting", "hr", "productivity", "ecommerce", "support", "devtools", "social", "other"]>;
624
+ /**
625
+ * Base URL for API calls
626
+ */
627
+ baseUrl: z.ZodOptional<z.ZodString>;
628
+ /**
629
+ * Authentication configuration
630
+ */
631
+ authentication: z.ZodObject<{
632
+ /**
633
+ * Authentication type
634
+ */
635
+ type: z.ZodEnum<["none", "apiKey", "basic", "bearer", "oauth1", "oauth2", "custom"]>;
636
+ /**
637
+ * Authentication fields
638
+ * Configuration fields needed for this auth type
639
+ */
640
+ fields: z.ZodOptional<z.ZodArray<z.ZodObject<{
641
+ /**
642
+ * Field name (machine name)
643
+ */
644
+ name: z.ZodString;
645
+ /**
646
+ * Field label
647
+ */
648
+ label: z.ZodString;
649
+ /**
650
+ * Field type
651
+ */
652
+ type: z.ZodDefault<z.ZodEnum<["text", "password", "url", "select"]>>;
653
+ /**
654
+ * Field description
655
+ */
656
+ description: z.ZodOptional<z.ZodString>;
657
+ /**
658
+ * Whether field is required
659
+ */
660
+ required: z.ZodDefault<z.ZodBoolean>;
661
+ /**
662
+ * Default value
663
+ */
664
+ default: z.ZodOptional<z.ZodString>;
665
+ /**
666
+ * Options for select fields
667
+ */
668
+ options: z.ZodOptional<z.ZodArray<z.ZodObject<{
669
+ label: z.ZodString;
670
+ value: z.ZodString;
671
+ }, "strip", z.ZodTypeAny, {
672
+ value: string;
673
+ label: string;
674
+ }, {
675
+ value: string;
676
+ label: string;
677
+ }>, "many">>;
678
+ /**
679
+ * Placeholder text
680
+ */
681
+ placeholder: z.ZodOptional<z.ZodString>;
682
+ }, "strip", z.ZodTypeAny, {
683
+ type: "text" | "url" | "password" | "select";
684
+ required: boolean;
685
+ label: string;
686
+ name: string;
687
+ options?: {
688
+ value: string;
689
+ label: string;
690
+ }[] | undefined;
691
+ default?: string | undefined;
692
+ description?: string | undefined;
693
+ placeholder?: string | undefined;
694
+ }, {
695
+ label: string;
696
+ name: string;
697
+ options?: {
698
+ value: string;
699
+ label: string;
700
+ }[] | undefined;
701
+ type?: "text" | "url" | "password" | "select" | undefined;
702
+ required?: boolean | undefined;
703
+ default?: string | undefined;
704
+ description?: string | undefined;
705
+ placeholder?: string | undefined;
706
+ }>, "many">>;
707
+ /**
708
+ * OAuth 2.0 configuration (when type is oauth2)
709
+ */
710
+ oauth2: z.ZodOptional<z.ZodObject<{
711
+ /**
712
+ * Authorization URL
713
+ */
714
+ authorizationUrl: z.ZodString;
715
+ /**
716
+ * Token URL
717
+ */
718
+ tokenUrl: z.ZodString;
719
+ /**
720
+ * Scopes to request
721
+ */
722
+ scopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
723
+ /**
724
+ * Client ID field name
725
+ */
726
+ clientIdField: z.ZodDefault<z.ZodString>;
727
+ /**
728
+ * Client secret field name
729
+ */
730
+ clientSecretField: z.ZodDefault<z.ZodString>;
731
+ }, "strip", z.ZodTypeAny, {
732
+ authorizationUrl: string;
733
+ tokenUrl: string;
734
+ clientIdField: string;
735
+ clientSecretField: string;
736
+ scopes?: string[] | undefined;
737
+ }, {
738
+ authorizationUrl: string;
739
+ tokenUrl: string;
740
+ scopes?: string[] | undefined;
741
+ clientIdField?: string | undefined;
742
+ clientSecretField?: string | undefined;
743
+ }>>;
744
+ /**
745
+ * Test authentication instructions
746
+ */
747
+ test: z.ZodOptional<z.ZodObject<{
748
+ url: z.ZodOptional<z.ZodString>;
749
+ method: z.ZodDefault<z.ZodEnum<["GET", "POST", "PUT", "DELETE"]>>;
750
+ }, "strip", z.ZodTypeAny, {
751
+ method: "GET" | "POST" | "PUT" | "DELETE";
752
+ url?: string | undefined;
753
+ }, {
754
+ url?: string | undefined;
755
+ method?: "GET" | "POST" | "PUT" | "DELETE" | undefined;
756
+ }>>;
757
+ }, "strip", z.ZodTypeAny, {
758
+ type: "custom" | "none" | "apiKey" | "basic" | "bearer" | "oauth2" | "oauth1";
759
+ fields?: {
760
+ type: "text" | "url" | "password" | "select";
761
+ required: boolean;
762
+ label: string;
763
+ name: string;
764
+ options?: {
765
+ value: string;
766
+ label: string;
767
+ }[] | undefined;
768
+ default?: string | undefined;
769
+ description?: string | undefined;
770
+ placeholder?: string | undefined;
771
+ }[] | undefined;
772
+ test?: {
773
+ method: "GET" | "POST" | "PUT" | "DELETE";
774
+ url?: string | undefined;
775
+ } | undefined;
776
+ oauth2?: {
777
+ authorizationUrl: string;
778
+ tokenUrl: string;
779
+ clientIdField: string;
780
+ clientSecretField: string;
781
+ scopes?: string[] | undefined;
782
+ } | undefined;
783
+ }, {
784
+ type: "custom" | "none" | "apiKey" | "basic" | "bearer" | "oauth2" | "oauth1";
785
+ fields?: {
786
+ label: string;
787
+ name: string;
788
+ options?: {
789
+ value: string;
790
+ label: string;
791
+ }[] | undefined;
792
+ type?: "text" | "url" | "password" | "select" | undefined;
793
+ required?: boolean | undefined;
794
+ default?: string | undefined;
795
+ description?: string | undefined;
796
+ placeholder?: string | undefined;
797
+ }[] | undefined;
798
+ test?: {
799
+ url?: string | undefined;
800
+ method?: "GET" | "POST" | "PUT" | "DELETE" | undefined;
801
+ } | undefined;
802
+ oauth2?: {
803
+ authorizationUrl: string;
804
+ tokenUrl: string;
805
+ scopes?: string[] | undefined;
806
+ clientIdField?: string | undefined;
807
+ clientSecretField?: string | undefined;
808
+ } | undefined;
809
+ }>;
810
+ /**
811
+ * Available operations
812
+ */
813
+ operations: z.ZodOptional<z.ZodArray<z.ZodObject<{
814
+ /**
815
+ * Operation identifier
816
+ */
817
+ id: z.ZodString;
818
+ /**
819
+ * Operation name
820
+ */
821
+ name: z.ZodString;
822
+ /**
823
+ * Operation description
824
+ */
825
+ description: z.ZodOptional<z.ZodString>;
826
+ /**
827
+ * Operation type
828
+ */
829
+ type: z.ZodEnum<["read", "write", "delete", "search", "trigger", "action"]>;
830
+ /**
831
+ * Input parameters
832
+ */
833
+ inputSchema: z.ZodOptional<z.ZodArray<z.ZodObject<{
834
+ /**
835
+ * Parameter name
836
+ */
837
+ name: z.ZodString;
838
+ /**
839
+ * Parameter label
840
+ */
841
+ label: z.ZodString;
842
+ /**
843
+ * Parameter description
844
+ */
845
+ description: z.ZodOptional<z.ZodString>;
846
+ /**
847
+ * Parameter type
848
+ */
849
+ type: z.ZodEnum<["string", "number", "boolean", "array", "object", "date", "file"]>;
850
+ /**
851
+ * Whether parameter is required
852
+ */
853
+ required: z.ZodDefault<z.ZodBoolean>;
854
+ /**
855
+ * Default value
856
+ */
857
+ default: z.ZodOptional<z.ZodAny>;
858
+ /**
859
+ * Validation schema
860
+ */
861
+ validation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
862
+ /**
863
+ * Dynamic options function
864
+ */
865
+ dynamicOptions: z.ZodOptional<z.ZodString>;
866
+ }, "strip", z.ZodTypeAny, {
867
+ type: "string" | "number" | "boolean" | "object" | "date" | "array" | "file";
868
+ required: boolean;
869
+ label: string;
870
+ name: string;
871
+ validation?: Record<string, any> | undefined;
872
+ default?: any;
873
+ description?: string | undefined;
874
+ dynamicOptions?: string | undefined;
875
+ }, {
876
+ type: "string" | "number" | "boolean" | "object" | "date" | "array" | "file";
877
+ label: string;
878
+ name: string;
879
+ validation?: Record<string, any> | undefined;
880
+ required?: boolean | undefined;
881
+ default?: any;
882
+ description?: string | undefined;
883
+ dynamicOptions?: string | undefined;
884
+ }>, "many">>;
885
+ /**
886
+ * Output schema
887
+ */
888
+ outputSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
889
+ /**
890
+ * Sample output for documentation
891
+ */
892
+ sampleOutput: z.ZodOptional<z.ZodAny>;
893
+ /**
894
+ * Whether operation supports pagination
895
+ */
896
+ supportsPagination: z.ZodDefault<z.ZodBoolean>;
897
+ /**
898
+ * Whether operation supports filtering
899
+ */
900
+ supportsFiltering: z.ZodDefault<z.ZodBoolean>;
901
+ }, "strip", z.ZodTypeAny, {
902
+ type: "delete" | "search" | "read" | "write" | "action" | "trigger";
903
+ name: string;
904
+ id: string;
905
+ supportsPagination: boolean;
906
+ supportsFiltering: boolean;
907
+ description?: string | undefined;
908
+ inputSchema?: {
909
+ type: "string" | "number" | "boolean" | "object" | "date" | "array" | "file";
910
+ required: boolean;
911
+ label: string;
912
+ name: string;
913
+ validation?: Record<string, any> | undefined;
914
+ default?: any;
915
+ description?: string | undefined;
916
+ dynamicOptions?: string | undefined;
917
+ }[] | undefined;
918
+ outputSchema?: Record<string, any> | undefined;
919
+ sampleOutput?: any;
920
+ }, {
921
+ type: "delete" | "search" | "read" | "write" | "action" | "trigger";
922
+ name: string;
923
+ id: string;
924
+ description?: string | undefined;
925
+ inputSchema?: {
926
+ type: "string" | "number" | "boolean" | "object" | "date" | "array" | "file";
927
+ label: string;
928
+ name: string;
929
+ validation?: Record<string, any> | undefined;
930
+ required?: boolean | undefined;
931
+ default?: any;
932
+ description?: string | undefined;
933
+ dynamicOptions?: string | undefined;
934
+ }[] | undefined;
935
+ outputSchema?: Record<string, any> | undefined;
936
+ sampleOutput?: any;
937
+ supportsPagination?: boolean | undefined;
938
+ supportsFiltering?: boolean | undefined;
939
+ }>, "many">>;
940
+ /**
941
+ * Available triggers
942
+ */
943
+ triggers: z.ZodOptional<z.ZodArray<z.ZodObject<{
944
+ /**
945
+ * Trigger identifier
946
+ */
947
+ id: z.ZodString;
948
+ /**
949
+ * Trigger name
950
+ */
951
+ name: z.ZodString;
952
+ /**
953
+ * Trigger description
954
+ */
955
+ description: z.ZodOptional<z.ZodString>;
956
+ /**
957
+ * Trigger type
958
+ */
959
+ type: z.ZodEnum<["webhook", "polling", "stream"]>;
960
+ /**
961
+ * Trigger configuration
962
+ */
963
+ config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
964
+ /**
965
+ * Output schema
966
+ */
967
+ outputSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
968
+ /**
969
+ * Polling interval (for polling triggers)
970
+ * In milliseconds
971
+ */
972
+ pollingIntervalMs: z.ZodOptional<z.ZodNumber>;
973
+ }, "strip", z.ZodTypeAny, {
974
+ type: "webhook" | "polling" | "stream";
975
+ name: string;
976
+ id: string;
977
+ description?: string | undefined;
978
+ config?: Record<string, any> | undefined;
979
+ outputSchema?: Record<string, any> | undefined;
980
+ pollingIntervalMs?: number | undefined;
981
+ }, {
982
+ type: "webhook" | "polling" | "stream";
983
+ name: string;
984
+ id: string;
985
+ description?: string | undefined;
986
+ config?: Record<string, any> | undefined;
987
+ outputSchema?: Record<string, any> | undefined;
988
+ pollingIntervalMs?: number | undefined;
989
+ }>, "many">>;
990
+ /**
991
+ * Rate limiting information
992
+ */
993
+ rateLimit: z.ZodOptional<z.ZodObject<{
994
+ requestsPerSecond: z.ZodOptional<z.ZodNumber>;
995
+ requestsPerMinute: z.ZodOptional<z.ZodNumber>;
996
+ requestsPerHour: z.ZodOptional<z.ZodNumber>;
997
+ }, "strip", z.ZodTypeAny, {
998
+ requestsPerMinute?: number | undefined;
999
+ requestsPerSecond?: number | undefined;
1000
+ requestsPerHour?: number | undefined;
1001
+ }, {
1002
+ requestsPerMinute?: number | undefined;
1003
+ requestsPerSecond?: number | undefined;
1004
+ requestsPerHour?: number | undefined;
1005
+ }>>;
1006
+ /**
1007
+ * Connector author
1008
+ */
1009
+ author: z.ZodOptional<z.ZodString>;
1010
+ /**
1011
+ * Documentation URL
1012
+ */
1013
+ documentation: z.ZodOptional<z.ZodString>;
1014
+ /**
1015
+ * Homepage URL
1016
+ */
1017
+ homepage: z.ZodOptional<z.ZodString>;
1018
+ /**
1019
+ * License
1020
+ */
1021
+ license: z.ZodOptional<z.ZodString>;
1022
+ /**
1023
+ * Tags for discovery
1024
+ */
1025
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1026
+ /**
1027
+ * Whether connector is verified/certified
1028
+ */
1029
+ verified: z.ZodDefault<z.ZodBoolean>;
1030
+ /**
1031
+ * Custom metadata
1032
+ */
1033
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1034
+ }, "strip", z.ZodTypeAny, {
1035
+ name: string;
1036
+ id: string;
1037
+ category: "database" | "storage" | "other" | "analytics" | "crm" | "payment" | "communication" | "marketing" | "accounting" | "hr" | "productivity" | "ecommerce" | "support" | "devtools" | "social";
1038
+ verified: boolean;
1039
+ authentication: {
1040
+ type: "custom" | "none" | "apiKey" | "basic" | "bearer" | "oauth2" | "oauth1";
1041
+ fields?: {
1042
+ type: "text" | "url" | "password" | "select";
1043
+ required: boolean;
1044
+ label: string;
1045
+ name: string;
1046
+ options?: {
1047
+ value: string;
1048
+ label: string;
1049
+ }[] | undefined;
1050
+ default?: string | undefined;
1051
+ description?: string | undefined;
1052
+ placeholder?: string | undefined;
1053
+ }[] | undefined;
1054
+ test?: {
1055
+ method: "GET" | "POST" | "PUT" | "DELETE";
1056
+ url?: string | undefined;
1057
+ } | undefined;
1058
+ oauth2?: {
1059
+ authorizationUrl: string;
1060
+ tokenUrl: string;
1061
+ clientIdField: string;
1062
+ clientSecretField: string;
1063
+ scopes?: string[] | undefined;
1064
+ } | undefined;
1065
+ };
1066
+ tags?: string[] | undefined;
1067
+ description?: string | undefined;
1068
+ icon?: string | undefined;
1069
+ version?: string | undefined;
1070
+ author?: string | undefined;
1071
+ documentation?: string | undefined;
1072
+ license?: string | undefined;
1073
+ metadata?: Record<string, any> | undefined;
1074
+ baseUrl?: string | undefined;
1075
+ rateLimit?: {
1076
+ requestsPerMinute?: number | undefined;
1077
+ requestsPerSecond?: number | undefined;
1078
+ requestsPerHour?: number | undefined;
1079
+ } | undefined;
1080
+ homepage?: string | undefined;
1081
+ operations?: {
1082
+ type: "delete" | "search" | "read" | "write" | "action" | "trigger";
1083
+ name: string;
1084
+ id: string;
1085
+ supportsPagination: boolean;
1086
+ supportsFiltering: boolean;
1087
+ description?: string | undefined;
1088
+ inputSchema?: {
1089
+ type: "string" | "number" | "boolean" | "object" | "date" | "array" | "file";
1090
+ required: boolean;
1091
+ label: string;
1092
+ name: string;
1093
+ validation?: Record<string, any> | undefined;
1094
+ default?: any;
1095
+ description?: string | undefined;
1096
+ dynamicOptions?: string | undefined;
1097
+ }[] | undefined;
1098
+ outputSchema?: Record<string, any> | undefined;
1099
+ sampleOutput?: any;
1100
+ }[] | undefined;
1101
+ triggers?: {
1102
+ type: "webhook" | "polling" | "stream";
1103
+ name: string;
1104
+ id: string;
1105
+ description?: string | undefined;
1106
+ config?: Record<string, any> | undefined;
1107
+ outputSchema?: Record<string, any> | undefined;
1108
+ pollingIntervalMs?: number | undefined;
1109
+ }[] | undefined;
1110
+ }, {
1111
+ name: string;
1112
+ id: string;
1113
+ category: "database" | "storage" | "other" | "analytics" | "crm" | "payment" | "communication" | "marketing" | "accounting" | "hr" | "productivity" | "ecommerce" | "support" | "devtools" | "social";
1114
+ authentication: {
1115
+ type: "custom" | "none" | "apiKey" | "basic" | "bearer" | "oauth2" | "oauth1";
1116
+ fields?: {
1117
+ label: string;
1118
+ name: string;
1119
+ options?: {
1120
+ value: string;
1121
+ label: string;
1122
+ }[] | undefined;
1123
+ type?: "text" | "url" | "password" | "select" | undefined;
1124
+ required?: boolean | undefined;
1125
+ default?: string | undefined;
1126
+ description?: string | undefined;
1127
+ placeholder?: string | undefined;
1128
+ }[] | undefined;
1129
+ test?: {
1130
+ url?: string | undefined;
1131
+ method?: "GET" | "POST" | "PUT" | "DELETE" | undefined;
1132
+ } | undefined;
1133
+ oauth2?: {
1134
+ authorizationUrl: string;
1135
+ tokenUrl: string;
1136
+ scopes?: string[] | undefined;
1137
+ clientIdField?: string | undefined;
1138
+ clientSecretField?: string | undefined;
1139
+ } | undefined;
1140
+ };
1141
+ tags?: string[] | undefined;
1142
+ description?: string | undefined;
1143
+ icon?: string | undefined;
1144
+ version?: string | undefined;
1145
+ author?: string | undefined;
1146
+ documentation?: string | undefined;
1147
+ license?: string | undefined;
1148
+ metadata?: Record<string, any> | undefined;
1149
+ baseUrl?: string | undefined;
1150
+ rateLimit?: {
1151
+ requestsPerMinute?: number | undefined;
1152
+ requestsPerSecond?: number | undefined;
1153
+ requestsPerHour?: number | undefined;
1154
+ } | undefined;
1155
+ homepage?: string | undefined;
1156
+ verified?: boolean | undefined;
1157
+ operations?: {
1158
+ type: "delete" | "search" | "read" | "write" | "action" | "trigger";
1159
+ name: string;
1160
+ id: string;
1161
+ description?: string | undefined;
1162
+ inputSchema?: {
1163
+ type: "string" | "number" | "boolean" | "object" | "date" | "array" | "file";
1164
+ label: string;
1165
+ name: string;
1166
+ validation?: Record<string, any> | undefined;
1167
+ required?: boolean | undefined;
1168
+ default?: any;
1169
+ description?: string | undefined;
1170
+ dynamicOptions?: string | undefined;
1171
+ }[] | undefined;
1172
+ outputSchema?: Record<string, any> | undefined;
1173
+ sampleOutput?: any;
1174
+ supportsPagination?: boolean | undefined;
1175
+ supportsFiltering?: boolean | undefined;
1176
+ }[] | undefined;
1177
+ triggers?: {
1178
+ type: "webhook" | "polling" | "stream";
1179
+ name: string;
1180
+ id: string;
1181
+ description?: string | undefined;
1182
+ config?: Record<string, any> | undefined;
1183
+ outputSchema?: Record<string, any> | undefined;
1184
+ pollingIntervalMs?: number | undefined;
1185
+ }[] | undefined;
1186
+ }>;
1187
+ export type Connector = z.infer<typeof ConnectorSchema>;
1188
+ /**
1189
+ * Connector Instance Schema
1190
+ *
1191
+ * A configured instance of a connector with credentials.
1192
+ */
1193
+ export declare const ConnectorInstanceSchema: z.ZodObject<{
1194
+ /**
1195
+ * Instance ID
1196
+ */
1197
+ id: z.ZodString;
1198
+ /**
1199
+ * Connector ID this instance uses
1200
+ */
1201
+ connectorId: z.ZodString;
1202
+ /**
1203
+ * Instance name
1204
+ */
1205
+ name: z.ZodString;
1206
+ /**
1207
+ * Instance description
1208
+ */
1209
+ description: z.ZodOptional<z.ZodString>;
1210
+ /**
1211
+ * Authentication credentials (encrypted)
1212
+ */
1213
+ credentials: z.ZodRecord<z.ZodString, z.ZodAny>;
1214
+ /**
1215
+ * Additional configuration
1216
+ */
1217
+ config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1218
+ /**
1219
+ * Whether instance is active
1220
+ */
1221
+ active: z.ZodDefault<z.ZodBoolean>;
1222
+ /**
1223
+ * Created timestamp
1224
+ */
1225
+ createdAt: z.ZodOptional<z.ZodString>;
1226
+ /**
1227
+ * Last tested timestamp
1228
+ */
1229
+ lastTestedAt: z.ZodOptional<z.ZodString>;
1230
+ /**
1231
+ * Test status
1232
+ */
1233
+ testStatus: z.ZodDefault<z.ZodEnum<["unknown", "success", "failed"]>>;
1234
+ }, "strip", z.ZodTypeAny, {
1235
+ name: string;
1236
+ active: boolean;
1237
+ id: string;
1238
+ credentials: Record<string, any>;
1239
+ connectorId: string;
1240
+ testStatus: "unknown" | "success" | "failed";
1241
+ description?: string | undefined;
1242
+ config?: Record<string, any> | undefined;
1243
+ createdAt?: string | undefined;
1244
+ lastTestedAt?: string | undefined;
1245
+ }, {
1246
+ name: string;
1247
+ id: string;
1248
+ credentials: Record<string, any>;
1249
+ connectorId: string;
1250
+ description?: string | undefined;
1251
+ active?: boolean | undefined;
1252
+ config?: Record<string, any> | undefined;
1253
+ createdAt?: string | undefined;
1254
+ lastTestedAt?: string | undefined;
1255
+ testStatus?: "unknown" | "success" | "failed" | undefined;
1256
+ }>;
1257
+ export type ConnectorInstance = z.infer<typeof ConnectorInstanceSchema>;
1258
+ /**
1259
+ * Helper factory for creating connectors
1260
+ */
1261
+ export declare const Connector: {
1262
+ /**
1263
+ * Create a basic API key connector
1264
+ */
1265
+ readonly apiKey: (params: {
1266
+ id: string;
1267
+ name: string;
1268
+ category: ConnectorCategory;
1269
+ baseUrl: string;
1270
+ }) => Connector;
1271
+ /**
1272
+ * Create an OAuth 2.0 connector
1273
+ */
1274
+ readonly oauth2: (params: {
1275
+ id: string;
1276
+ name: string;
1277
+ category: ConnectorCategory;
1278
+ baseUrl: string;
1279
+ authUrl: string;
1280
+ tokenUrl: string;
1281
+ scopes?: string[];
1282
+ }) => Connector;
1283
+ };
1284
+ //# sourceMappingURL=connector.zod.d.ts.map