@spacefast/common 0.2.1 → 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 (226) hide show
  1. package/dist/agents/marketplace-prompts.d.ts +1 -0
  2. package/dist/agents/marketplace-prompts.js +6 -0
  3. package/dist/agents/registry/core.d.ts +4 -12
  4. package/dist/agents/registry/core.js +7 -28
  5. package/dist/config/domains.d.ts +10 -8
  6. package/dist/config/domains.js +4 -7
  7. package/dist/contracts/access-core.d.ts +135 -0
  8. package/dist/contracts/access-core.js +242 -0
  9. package/dist/contracts/access-profiles.d.ts +8 -8
  10. package/dist/contracts/access-profiles.js +8 -8
  11. package/dist/contracts/access.d.ts +14 -103
  12. package/dist/contracts/access.js +10 -210
  13. package/dist/contracts/activity.d.ts +54 -55
  14. package/dist/contracts/activity.js +38 -9
  15. package/dist/contracts/api-keys.d.ts +69 -26
  16. package/dist/contracts/api-keys.js +29 -2
  17. package/dist/contracts/application-journal.d.ts +197 -4
  18. package/dist/contracts/application-journal.js +97 -16
  19. package/dist/contracts/auth.d.ts +20 -0
  20. package/dist/contracts/auth.js +18 -0
  21. package/dist/contracts/beta.d.ts +13 -0
  22. package/dist/contracts/beta.js +28 -0
  23. package/dist/contracts/billing.d.ts +2 -2
  24. package/dist/contracts/bootstrap.d.ts +23 -6
  25. package/dist/contracts/builds.d.ts +24 -4
  26. package/dist/contracts/builds.js +16 -4
  27. package/dist/contracts/channels.d.ts +43 -0
  28. package/dist/contracts/channels.js +22 -6
  29. package/dist/contracts/comments.d.ts +49 -0
  30. package/dist/contracts/comments.js +61 -2
  31. package/dist/contracts/commerce.d.ts +19 -13
  32. package/dist/contracts/connector-access.d.ts +28 -0
  33. package/dist/contracts/connector-access.js +31 -0
  34. package/dist/contracts/connectors.d.ts +2382 -0
  35. package/dist/contracts/connectors.js +941 -0
  36. package/dist/contracts/content-contract-verification.d.ts +112 -58
  37. package/dist/contracts/content-contract-verification.js +42 -54
  38. package/dist/contracts/content-model-emit.d.ts +97 -0
  39. package/dist/contracts/content-model-emit.js +306 -0
  40. package/dist/contracts/content-model-sdk.d.ts +101 -0
  41. package/dist/contracts/content-model-sdk.js +232 -0
  42. package/dist/contracts/{content-program.d.ts → content-model.d.ts} +338 -82
  43. package/dist/contracts/{content-program.js → content-model.js} +291 -63
  44. package/dist/contracts/content-platform-fixture.d.ts +380 -110
  45. package/dist/contracts/content-platform-fixture.js +8 -8
  46. package/dist/contracts/content-sync.d.ts +197 -74
  47. package/dist/contracts/content-sync.js +98 -37
  48. package/dist/contracts/content.d.ts +30 -422
  49. package/dist/contracts/content.js +34 -294
  50. package/dist/contracts/dashboard-prefs.d.ts +10 -3
  51. package/dist/contracts/dashboard-prefs.js +6 -3
  52. package/dist/contracts/data-location.d.ts +9 -0
  53. package/dist/contracts/data-location.js +7 -0
  54. package/dist/contracts/deployment-comparison.d.ts +67 -0
  55. package/dist/contracts/deployment-comparison.js +68 -0
  56. package/dist/contracts/device-auth.d.ts +55 -11
  57. package/dist/contracts/domains.d.ts +40 -16
  58. package/dist/contracts/domains.js +23 -0
  59. package/dist/contracts/enums.d.ts +1 -10
  60. package/dist/contracts/enums.js +0 -15
  61. package/dist/contracts/error-code-meta.d.ts +388 -20
  62. package/dist/contracts/error-code-meta.js +201 -5
  63. package/dist/contracts/error-codes.d.ts +17 -4
  64. package/dist/contracts/error-codes.js +109 -10
  65. package/dist/contracts/events.d.ts +5 -0
  66. package/dist/contracts/events.js +12 -3
  67. package/dist/contracts/execution.d.ts +5 -1
  68. package/dist/contracts/execution.js +4 -0
  69. package/dist/contracts/feature-lifecycle.d.ts +53 -20
  70. package/dist/contracts/feature-lifecycle.js +65 -23
  71. package/dist/contracts/features.d.ts +57 -31
  72. package/dist/contracts/features.js +0 -1
  73. package/dist/contracts/feedback.d.ts +124 -0
  74. package/dist/contracts/feedback.js +64 -0
  75. package/dist/contracts/fixtures/content-model-sdk-v1.generated.d.ts +129 -0
  76. package/dist/contracts/fixtures/content-model-sdk-v1.generated.js +48 -0
  77. package/dist/contracts/fixtures/content-platform-v1.json +101 -49
  78. package/dist/contracts/frame-session.d.ts +60 -10
  79. package/dist/contracts/frame-session.js +52 -12
  80. package/dist/contracts/functions.d.ts +28 -2
  81. package/dist/contracts/functions.js +25 -2
  82. package/dist/contracts/grant-copy.d.ts +2 -0
  83. package/dist/contracts/grant-copy.js +2 -0
  84. package/dist/contracts/grants-core.d.ts +95 -0
  85. package/dist/contracts/grants-core.js +435 -0
  86. package/dist/contracts/grants.d.ts +13 -84
  87. package/dist/contracts/grants.js +21 -369
  88. package/dist/contracts/ids-core.d.ts +11 -0
  89. package/dist/contracts/ids-core.js +14 -0
  90. package/dist/contracts/ids.d.ts +7 -4
  91. package/dist/contracts/ids.js +12 -4
  92. package/dist/contracts/internal.d.ts +18 -0
  93. package/dist/contracts/internal.js +19 -0
  94. package/dist/contracts/mcp.d.ts +8 -18
  95. package/dist/contracts/mcp.js +2 -23
  96. package/dist/contracts/notifications.d.ts +4 -1
  97. package/dist/contracts/notifications.js +1 -0
  98. package/dist/contracts/oauth-resources.d.ts +55 -9
  99. package/dist/contracts/oauth-resources.js +64 -1
  100. package/dist/contracts/oauth-scope-actions.d.ts +27 -3
  101. package/dist/contracts/oauth-scope-actions.js +18 -8
  102. package/dist/contracts/operations.d.ts +1 -1
  103. package/dist/contracts/partner-account.d.ts +629 -0
  104. package/dist/contracts/partner-account.js +18 -0
  105. package/dist/contracts/principal-assertion.d.ts +74 -1
  106. package/dist/contracts/principal-assertion.js +67 -3
  107. package/dist/contracts/publish-archive.d.ts +22 -1
  108. package/dist/contracts/push-new.d.ts +3 -3
  109. package/dist/contracts/push-new.js +1 -1
  110. package/dist/contracts/quotas.js +2 -1
  111. package/dist/contracts/repository-connections.d.ts +10 -6
  112. package/dist/contracts/repository-connections.js +15 -0
  113. package/dist/contracts/resources.d.ts +6 -5
  114. package/dist/contracts/resources.js +7 -0
  115. package/dist/contracts/route-inventory.d.ts +74 -19
  116. package/dist/contracts/route-inventory.js +20 -6
  117. package/dist/contracts/runtime-api.d.ts +415 -4
  118. package/dist/contracts/runtime-api.js +60 -15
  119. package/dist/contracts/runtime-app.d.ts +6 -1
  120. package/dist/contracts/runtime-components.d.ts +646 -18
  121. package/dist/contracts/runtime-components.js +304 -188
  122. package/dist/contracts/runtime-services.d.ts +15 -0
  123. package/dist/contracts/runtime-services.js +25 -0
  124. package/dist/contracts/runtime-storage.d.ts +32 -0
  125. package/dist/contracts/runtime-storage.js +37 -0
  126. package/dist/contracts/source-workspaces.d.ts +511 -0
  127. package/dist/contracts/source-workspaces.js +276 -0
  128. package/dist/contracts/space-config-spacefast.d.ts +394 -0
  129. package/dist/contracts/space-config-spacefast.js +70 -0
  130. package/dist/contracts/space-config.d.ts +177 -90
  131. package/dist/contracts/space-config.js +77 -92
  132. package/dist/contracts/spaces.d.ts +132 -24
  133. package/dist/contracts/spaces.js +77 -13
  134. package/dist/contracts/superadmin-connectors.d.ts +371 -0
  135. package/dist/contracts/superadmin-connectors.js +61 -0
  136. package/dist/contracts/superadmin-emails.d.ts +1 -1
  137. package/dist/contracts/superadmin-emails.js +1 -1
  138. package/dist/contracts/superadmin-entities.d.ts +105 -0
  139. package/dist/contracts/superadmin-entities.js +64 -0
  140. package/dist/contracts/superadmin-runtime.d.ts +35 -116
  141. package/dist/contracts/superadmin-runtime.js +13 -69
  142. package/dist/contracts/superadmin-search.d.ts +12 -14
  143. package/dist/contracts/superadmin-search.js +2 -2
  144. package/dist/contracts/superadmin-spaces.d.ts +15 -72
  145. package/dist/contracts/superadmin-spaces.js +2 -7
  146. package/dist/contracts/superadmin-teams.d.ts +12 -0
  147. package/dist/contracts/superadmin-teams.js +7 -1
  148. package/dist/contracts/superadmin-tenants.d.ts +44 -16
  149. package/dist/contracts/superadmin.d.ts +2 -2
  150. package/dist/contracts/tags.d.ts +12 -12
  151. package/dist/contracts/teams.d.ts +29 -1
  152. package/dist/contracts/teams.js +24 -2
  153. package/dist/contracts/tenants.d.ts +98 -0
  154. package/dist/contracts/tenants.js +20 -0
  155. package/dist/contracts/transfers.d.ts +92 -0
  156. package/dist/contracts/transfers.js +37 -0
  157. package/dist/contracts/usage.d.ts +9 -1
  158. package/dist/contracts/usage.js +2 -0
  159. package/dist/contracts/visual-review.d.ts +448 -0
  160. package/dist/contracts/visual-review.js +156 -0
  161. package/dist/contracts/wordpress-php-toolkit.json +9 -0
  162. package/dist/contracts/work-mode.d.ts +24 -0
  163. package/dist/contracts/work-mode.js +17 -0
  164. package/dist/contracts/wp-cli.d.ts +66 -0
  165. package/dist/contracts/wp-cli.js +68 -0
  166. package/dist/contracts/zero-catalog.d.ts +29 -0
  167. package/dist/contracts/zero-catalog.js +55 -0
  168. package/dist/contracts/zero-platform-abilities.generated.d.ts +31 -0
  169. package/dist/contracts/zero-platform-abilities.generated.js +373 -0
  170. package/dist/contracts/zero-spacefast.d.ts +444 -0
  171. package/dist/contracts/zero-spacefast.js +149 -0
  172. package/dist/contracts/zero-types.d.ts +47 -0
  173. package/dist/contracts/zero-types.js +263 -0
  174. package/dist/contracts/zero.d.ts +781 -14
  175. package/dist/contracts/zero.js +204 -10
  176. package/dist/dashboard-paths/index.d.ts +2 -2
  177. package/dist/dashboard-paths/route-reservations.generated.d.ts +2 -2
  178. package/dist/dashboard-paths/route-reservations.generated.js +5 -0
  179. package/dist/docs/agent-prose.d.ts +1 -1
  180. package/dist/docs/agent-prose.js +15 -18
  181. package/dist/docs/agent-setup.d.ts +1 -1
  182. package/dist/docs/agent-setup.js +5 -13
  183. package/dist/docs/catalog.d.ts +64 -28
  184. package/dist/docs/catalog.js +155 -28
  185. package/dist/docs/error-docs.d.ts +365 -17
  186. package/dist/docs/error-docs.js +369 -21
  187. package/dist/docs/reference-urls.js +1 -1
  188. package/dist/docs/skills.d.ts +84 -84
  189. package/dist/docs/skills.js +66 -47
  190. package/dist/docs/start-prompts.d.ts +14 -0
  191. package/dist/docs/start-prompts.js +20 -0
  192. package/dist/utils/account-labels.d.ts +7 -0
  193. package/dist/utils/account-labels.js +15 -0
  194. package/dist/utils/auth.d.ts +1 -0
  195. package/dist/utils/auth.js +1 -0
  196. package/dist/utils/credential-policy.d.ts +22 -1
  197. package/dist/utils/credential-policy.js +55 -6
  198. package/dist/utils/local-space-state.d.ts +7 -0
  199. package/dist/utils/local-space-state.js +7 -0
  200. package/dist/utils/logger.d.ts +34 -0
  201. package/dist/utils/logger.js +144 -0
  202. package/dist/utils/page-routes.d.ts +9 -0
  203. package/dist/utils/page-routes.js +82 -0
  204. package/dist/utils/pages.d.ts +2 -0
  205. package/dist/utils/pages.js +7 -0
  206. package/dist/utils/publish-form-data.d.ts +2 -0
  207. package/dist/utils/publish-form-data.js +2 -0
  208. package/dist/utils/publish-policy-spacefast.d.ts +13 -0
  209. package/dist/utils/publish-policy-spacefast.js +117 -0
  210. package/dist/utils/publish-policy.d.ts +22 -16
  211. package/dist/utils/publish-policy.fixtures.json +15 -0
  212. package/dist/utils/publish-policy.js +62 -139
  213. package/dist/utils/query-client.js +9 -1
  214. package/dist/utils/runtime-upload.d.ts +4 -0
  215. package/dist/utils/runtime-upload.js +5 -0
  216. package/dist/utils/space-config.d.ts +2 -3
  217. package/dist/utils/space-config.js +1 -1
  218. package/dist/utils/uploaded-source.d.ts +4 -0
  219. package/dist/utils/uploaded-source.js +12 -0
  220. package/dist/visual-review.d.ts +4 -0
  221. package/dist/visual-review.js +208 -0
  222. package/dist/vocabulary.d.ts +38 -0
  223. package/dist/vocabulary.js +55 -0
  224. package/package.json +7 -2
  225. package/dist/agents/registry/deeplink-probes.d.ts +0 -23
  226. package/dist/agents/registry/deeplink-probes.js +0 -18
@@ -0,0 +1,2382 @@
1
+ import { z } from "zod";
2
+ export declare const connectorSourceKindSchema: z.ZodEnum<{
3
+ mcp: "mcp";
4
+ openapi: "openapi";
5
+ graphql: "graphql";
6
+ }>;
7
+ export declare const connectionOwnerSchema: z.ZodEnum<{
8
+ team: "team";
9
+ personal: "personal";
10
+ }>;
11
+ export declare const connectionStatusSchema: z.ZodEnum<{
12
+ active: "active";
13
+ revoked: "revoked";
14
+ degraded: "degraded";
15
+ pending_authorization: "pending_authorization";
16
+ needs_reauth: "needs_reauth";
17
+ }>;
18
+ export declare const toolSafetySchema: z.ZodEnum<{
19
+ write: "write";
20
+ destructive: "destructive";
21
+ read_only: "read_only";
22
+ }>;
23
+ export declare const policyActionSchema: z.ZodEnum<{
24
+ approve: "approve";
25
+ require_approval: "require_approval";
26
+ block: "block";
27
+ }>;
28
+ export declare const runStatusSchema: z.ZodEnum<{
29
+ failed: "failed";
30
+ expired: "expired";
31
+ running: "running";
32
+ succeeded: "succeeded";
33
+ awaiting_approval: "awaiting_approval";
34
+ }>;
35
+ export declare const runInputKindSchema: z.ZodEnum<{
36
+ tool: "tool";
37
+ code: "code";
38
+ }>;
39
+ export declare const catalogEntryKindSchema: z.ZodEnum<{
40
+ team: "team";
41
+ preset: "preset";
42
+ registry: "registry";
43
+ }>;
44
+ export declare const AuthMethodSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
45
+ kind: z.ZodLiteral<"api_key">;
46
+ slug: z.ZodString;
47
+ label: z.ZodString;
48
+ }, z.core.$strip>, z.ZodObject<{
49
+ kind: z.ZodLiteral<"oauth2">;
50
+ slug: z.ZodString;
51
+ label: z.ZodString;
52
+ scopes: z.ZodArray<z.ZodString>;
53
+ clientIdMetadataDocument: z.ZodOptional<z.ZodBoolean>;
54
+ dynamicRegistration: z.ZodBoolean;
55
+ }, z.core.$strip>, z.ZodObject<{
56
+ kind: z.ZodLiteral<"none">;
57
+ slug: z.ZodString;
58
+ label: z.ZodString;
59
+ }, z.core.$strip>, z.ZodObject<{
60
+ kind: z.ZodLiteral<"first_party">;
61
+ slug: z.ZodString;
62
+ label: z.ZodString;
63
+ provider: z.ZodString;
64
+ }, z.core.$strip>], "kind">;
65
+ export declare const CredentialGuidanceSchema: z.ZodObject<{
66
+ label: z.ZodNullable<z.ZodString>;
67
+ mintUrl: z.ZodNullable<z.ZodString>;
68
+ docsUrl: z.ZodNullable<z.ZodString>;
69
+ notes: z.ZodNullable<z.ZodString>;
70
+ steps: z.ZodArray<z.ZodString>;
71
+ }, z.core.$strip>;
72
+ export declare const connectorCredentialGuidanceResponseSchema: z.ZodObject<{
73
+ data: z.ZodArray<z.ZodObject<{
74
+ label: z.ZodNullable<z.ZodString>;
75
+ mintUrl: z.ZodNullable<z.ZodString>;
76
+ docsUrl: z.ZodNullable<z.ZodString>;
77
+ notes: z.ZodNullable<z.ZodString>;
78
+ steps: z.ZodArray<z.ZodString>;
79
+ }, z.core.$strip>>;
80
+ }, z.core.$strip>;
81
+ export declare const ConnectorFieldSchema: z.ZodObject<{
82
+ name: z.ZodString;
83
+ required: z.ZodOptional<z.ZodBoolean>;
84
+ label: z.ZodString;
85
+ secret: z.ZodBoolean;
86
+ guidance: z.ZodNullable<z.ZodObject<{
87
+ label: z.ZodNullable<z.ZodString>;
88
+ mintUrl: z.ZodNullable<z.ZodString>;
89
+ docsUrl: z.ZodNullable<z.ZodString>;
90
+ notes: z.ZodNullable<z.ZodString>;
91
+ steps: z.ZodArray<z.ZodString>;
92
+ }, z.core.$strip>>;
93
+ }, z.core.$strip>;
94
+ export declare const ConnectionSchema: z.ZodObject<{
95
+ id: z.ZodString;
96
+ connector: z.ZodString;
97
+ owner: z.ZodEnum<{
98
+ team: "team";
99
+ personal: "personal";
100
+ }>;
101
+ serving: z.ZodDefault<z.ZodBoolean>;
102
+ displayName: z.ZodString;
103
+ description: z.ZodNullable<z.ZodString>;
104
+ status: z.ZodEnum<{
105
+ active: "active";
106
+ revoked: "revoked";
107
+ degraded: "degraded";
108
+ pending_authorization: "pending_authorization";
109
+ needs_reauth: "needs_reauth";
110
+ }>;
111
+ identityLabel: z.ZodNullable<z.ZodString>;
112
+ credentialConfigured: z.ZodBoolean;
113
+ authMethod: z.ZodNullable<z.ZodString>;
114
+ scopes: z.ZodArray<z.ZodString>;
115
+ isDefault: z.ZodBoolean;
116
+ toolCount: z.ZodNumber;
117
+ createdBy: z.ZodNullable<z.ZodString>;
118
+ lastCheckedAt: z.ZodNullable<z.ZodString>;
119
+ revokedAt: z.ZodNullable<z.ZodString>;
120
+ createdAt: z.ZodString;
121
+ updatedAt: z.ZodString;
122
+ }, z.core.$strip>;
123
+ export declare const connectorCatalogSourceSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
124
+ kind: z.ZodLiteral<"openapi">;
125
+ spec: z.ZodString;
126
+ baseUrl: z.ZodOptional<z.ZodString>;
127
+ }, z.core.$strip>, z.ZodObject<{
128
+ kind: z.ZodLiteral<"graphql">;
129
+ endpoint: z.ZodString;
130
+ }, z.core.$strip>, z.ZodObject<{
131
+ kind: z.ZodLiteral<"mcp">;
132
+ endpoint: z.ZodString;
133
+ }, z.core.$strip>], "kind">;
134
+ export type ConnectorCatalogSource = z.infer<typeof connectorCatalogSourceSchema>;
135
+ export declare const ConnectorSchema: z.ZodObject<{
136
+ slug: z.ZodString;
137
+ title: z.ZodString;
138
+ description: z.ZodNullable<z.ZodString>;
139
+ source: z.ZodEnum<{
140
+ mcp: "mcp";
141
+ openapi: "openapi";
142
+ graphql: "graphql";
143
+ }>;
144
+ catalogSource: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
145
+ kind: z.ZodLiteral<"openapi">;
146
+ spec: z.ZodString;
147
+ baseUrl: z.ZodOptional<z.ZodString>;
148
+ }, z.core.$strip>, z.ZodObject<{
149
+ kind: z.ZodLiteral<"graphql">;
150
+ endpoint: z.ZodString;
151
+ }, z.core.$strip>, z.ZodObject<{
152
+ kind: z.ZodLiteral<"mcp">;
153
+ endpoint: z.ZodString;
154
+ }, z.core.$strip>], "kind">>;
155
+ sourceUrl: z.ZodNullable<z.ZodString>;
156
+ firstParty: z.ZodBoolean;
157
+ presetId: z.ZodNullable<z.ZodString>;
158
+ authMethods: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
159
+ kind: z.ZodLiteral<"api_key">;
160
+ slug: z.ZodString;
161
+ label: z.ZodString;
162
+ }, z.core.$strip>, z.ZodObject<{
163
+ kind: z.ZodLiteral<"oauth2">;
164
+ slug: z.ZodString;
165
+ label: z.ZodString;
166
+ scopes: z.ZodArray<z.ZodString>;
167
+ clientIdMetadataDocument: z.ZodOptional<z.ZodBoolean>;
168
+ dynamicRegistration: z.ZodBoolean;
169
+ }, z.core.$strip>, z.ZodObject<{
170
+ kind: z.ZodLiteral<"none">;
171
+ slug: z.ZodString;
172
+ label: z.ZodString;
173
+ }, z.core.$strip>, z.ZodObject<{
174
+ kind: z.ZodLiteral<"first_party">;
175
+ slug: z.ZodString;
176
+ label: z.ZodString;
177
+ provider: z.ZodString;
178
+ }, z.core.$strip>], "kind">>;
179
+ toolCount: z.ZodNumber;
180
+ connections: z.ZodArray<z.ZodObject<{
181
+ id: z.ZodString;
182
+ connector: z.ZodString;
183
+ owner: z.ZodEnum<{
184
+ team: "team";
185
+ personal: "personal";
186
+ }>;
187
+ serving: z.ZodDefault<z.ZodBoolean>;
188
+ displayName: z.ZodString;
189
+ description: z.ZodNullable<z.ZodString>;
190
+ status: z.ZodEnum<{
191
+ active: "active";
192
+ revoked: "revoked";
193
+ degraded: "degraded";
194
+ pending_authorization: "pending_authorization";
195
+ needs_reauth: "needs_reauth";
196
+ }>;
197
+ identityLabel: z.ZodNullable<z.ZodString>;
198
+ credentialConfigured: z.ZodBoolean;
199
+ authMethod: z.ZodNullable<z.ZodString>;
200
+ scopes: z.ZodArray<z.ZodString>;
201
+ isDefault: z.ZodBoolean;
202
+ toolCount: z.ZodNumber;
203
+ createdBy: z.ZodNullable<z.ZodString>;
204
+ lastCheckedAt: z.ZodNullable<z.ZodString>;
205
+ revokedAt: z.ZodNullable<z.ZodString>;
206
+ createdAt: z.ZodString;
207
+ updatedAt: z.ZodString;
208
+ }, z.core.$strip>>;
209
+ specSyncedAt: z.ZodNullable<z.ZodString>;
210
+ createdAt: z.ZodString;
211
+ updatedAt: z.ZodString;
212
+ }, z.core.$strip>;
213
+ export declare const PolicyDecisionSchema: z.ZodObject<{
214
+ ruleId: z.ZodString;
215
+ pattern: z.ZodString;
216
+ owner: z.ZodEnum<{
217
+ team: "team";
218
+ personal: "personal";
219
+ }>;
220
+ }, z.core.$strip>;
221
+ export declare const ToolSchema: z.ZodObject<{
222
+ address: z.ZodString;
223
+ name: z.ZodString;
224
+ summary: z.ZodString;
225
+ safety: z.ZodEnum<{
226
+ write: "write";
227
+ destructive: "destructive";
228
+ read_only: "read_only";
229
+ }>;
230
+ effect: z.ZodEnum<{
231
+ approve: "approve";
232
+ require_approval: "require_approval";
233
+ block: "block";
234
+ }>;
235
+ decidedBy: z.ZodNullable<z.ZodObject<{
236
+ ruleId: z.ZodString;
237
+ pattern: z.ZodString;
238
+ owner: z.ZodEnum<{
239
+ team: "team";
240
+ personal: "personal";
241
+ }>;
242
+ }, z.core.$strip>>;
243
+ inputSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
244
+ }, z.core.$strip>;
245
+ export declare const PolicyRuleSchema: z.ZodObject<{
246
+ id: z.ZodString;
247
+ pattern: z.ZodString;
248
+ action: z.ZodEnum<{
249
+ approve: "approve";
250
+ require_approval: "require_approval";
251
+ block: "block";
252
+ }>;
253
+ owner: z.ZodEnum<{
254
+ team: "team";
255
+ personal: "personal";
256
+ }>;
257
+ position: z.ZodString;
258
+ createdAt: z.ZodString;
259
+ }, z.core.$strip>;
260
+ export declare const PolicyResolutionSchema: z.ZodObject<{
261
+ address: z.ZodString;
262
+ effect: z.ZodEnum<{
263
+ approve: "approve";
264
+ require_approval: "require_approval";
265
+ block: "block";
266
+ }>;
267
+ decidedBy: z.ZodNullable<z.ZodObject<{
268
+ ruleId: z.ZodString;
269
+ pattern: z.ZodString;
270
+ owner: z.ZodEnum<{
271
+ team: "team";
272
+ personal: "personal";
273
+ }>;
274
+ }, z.core.$strip>>;
275
+ explanation: z.ZodString;
276
+ }, z.core.$strip>;
277
+ export declare const PendingApprovalSchema: z.ZodObject<{
278
+ decisionId: z.ZodNullable<z.ZodString>;
279
+ mode: z.ZodEnum<{
280
+ model: "model";
281
+ human: "human";
282
+ }>;
283
+ address: z.ZodString;
284
+ preview: z.ZodRecord<z.ZodString, z.ZodUnknown>;
285
+ reason: z.ZodEnum<{
286
+ policy_require_approval: "policy_require_approval";
287
+ annotation_requires_approval: "annotation_requires_approval";
288
+ }>;
289
+ matchedPattern: z.ZodNullable<z.ZodString>;
290
+ approvalUrl: z.ZodString;
291
+ expiresAt: z.ZodString;
292
+ }, z.core.$strip>;
293
+ export declare const ConnectorRunInputSummarySchema: z.ZodObject<{
294
+ kind: z.ZodEnum<{
295
+ tool: "tool";
296
+ code: "code";
297
+ }>;
298
+ address: z.ZodNullable<z.ZodString>;
299
+ digest: z.ZodString;
300
+ }, z.core.$strip>;
301
+ export declare const ConnectorRunUsageSchema: z.ZodObject<{
302
+ toolCalls: z.ZodNumber;
303
+ egressBytes: z.ZodNumber;
304
+ durationMs: z.ZodNumber;
305
+ }, z.core.$strip>;
306
+ export declare const CONNECTOR_RUN_ORIGINS: readonly ["dashboard", "cli", "api", "mcp", "zero", "function", "system"];
307
+ export declare const connectorRunOriginSchema: z.ZodEnum<{
308
+ function: "function";
309
+ zero: "zero";
310
+ api: "api";
311
+ dashboard: "dashboard";
312
+ mcp: "mcp";
313
+ cli: "cli";
314
+ system: "system";
315
+ }>;
316
+ export declare const ConnectorRunSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
317
+ origin: z.ZodEnum<{
318
+ function: "function";
319
+ zero: "zero";
320
+ api: "api";
321
+ dashboard: "dashboard";
322
+ mcp: "mcp";
323
+ cli: "cli";
324
+ system: "system";
325
+ }>;
326
+ space: z.ZodNullable<z.ZodString>;
327
+ handler: z.ZodNullable<z.ZodString>;
328
+ visitor: z.ZodBoolean;
329
+ id: z.ZodString;
330
+ input: z.ZodObject<{
331
+ kind: z.ZodEnum<{
332
+ tool: "tool";
333
+ code: "code";
334
+ }>;
335
+ address: z.ZodNullable<z.ZodString>;
336
+ digest: z.ZodString;
337
+ }, z.core.$strip>;
338
+ usage: z.ZodObject<{
339
+ toolCalls: z.ZodNumber;
340
+ egressBytes: z.ZodNumber;
341
+ durationMs: z.ZodNumber;
342
+ }, z.core.$strip>;
343
+ createdAt: z.ZodString;
344
+ status: z.ZodLiteral<"running">;
345
+ }, z.core.$strip>, z.ZodObject<{
346
+ origin: z.ZodEnum<{
347
+ function: "function";
348
+ zero: "zero";
349
+ api: "api";
350
+ dashboard: "dashboard";
351
+ mcp: "mcp";
352
+ cli: "cli";
353
+ system: "system";
354
+ }>;
355
+ space: z.ZodNullable<z.ZodString>;
356
+ handler: z.ZodNullable<z.ZodString>;
357
+ visitor: z.ZodBoolean;
358
+ id: z.ZodString;
359
+ input: z.ZodObject<{
360
+ kind: z.ZodEnum<{
361
+ tool: "tool";
362
+ code: "code";
363
+ }>;
364
+ address: z.ZodNullable<z.ZodString>;
365
+ digest: z.ZodString;
366
+ }, z.core.$strip>;
367
+ usage: z.ZodObject<{
368
+ toolCalls: z.ZodNumber;
369
+ egressBytes: z.ZodNumber;
370
+ durationMs: z.ZodNumber;
371
+ }, z.core.$strip>;
372
+ createdAt: z.ZodString;
373
+ status: z.ZodLiteral<"awaiting_approval">;
374
+ approval: z.ZodObject<{
375
+ decisionId: z.ZodNullable<z.ZodString>;
376
+ mode: z.ZodEnum<{
377
+ model: "model";
378
+ human: "human";
379
+ }>;
380
+ address: z.ZodString;
381
+ preview: z.ZodRecord<z.ZodString, z.ZodUnknown>;
382
+ reason: z.ZodEnum<{
383
+ policy_require_approval: "policy_require_approval";
384
+ annotation_requires_approval: "annotation_requires_approval";
385
+ }>;
386
+ matchedPattern: z.ZodNullable<z.ZodString>;
387
+ approvalUrl: z.ZodString;
388
+ expiresAt: z.ZodString;
389
+ }, z.core.$strip>;
390
+ }, z.core.$strip>, z.ZodObject<{
391
+ origin: z.ZodEnum<{
392
+ function: "function";
393
+ zero: "zero";
394
+ api: "api";
395
+ dashboard: "dashboard";
396
+ mcp: "mcp";
397
+ cli: "cli";
398
+ system: "system";
399
+ }>;
400
+ space: z.ZodNullable<z.ZodString>;
401
+ handler: z.ZodNullable<z.ZodString>;
402
+ visitor: z.ZodBoolean;
403
+ id: z.ZodString;
404
+ input: z.ZodObject<{
405
+ kind: z.ZodEnum<{
406
+ tool: "tool";
407
+ code: "code";
408
+ }>;
409
+ address: z.ZodNullable<z.ZodString>;
410
+ digest: z.ZodString;
411
+ }, z.core.$strip>;
412
+ usage: z.ZodObject<{
413
+ toolCalls: z.ZodNumber;
414
+ egressBytes: z.ZodNumber;
415
+ durationMs: z.ZodNumber;
416
+ }, z.core.$strip>;
417
+ createdAt: z.ZodString;
418
+ status: z.ZodLiteral<"succeeded">;
419
+ completedAt: z.ZodString;
420
+ result: z.ZodUnknown;
421
+ }, z.core.$strip>, z.ZodObject<{
422
+ origin: z.ZodEnum<{
423
+ function: "function";
424
+ zero: "zero";
425
+ api: "api";
426
+ dashboard: "dashboard";
427
+ mcp: "mcp";
428
+ cli: "cli";
429
+ system: "system";
430
+ }>;
431
+ space: z.ZodNullable<z.ZodString>;
432
+ handler: z.ZodNullable<z.ZodString>;
433
+ visitor: z.ZodBoolean;
434
+ id: z.ZodString;
435
+ input: z.ZodObject<{
436
+ kind: z.ZodEnum<{
437
+ tool: "tool";
438
+ code: "code";
439
+ }>;
440
+ address: z.ZodNullable<z.ZodString>;
441
+ digest: z.ZodString;
442
+ }, z.core.$strip>;
443
+ usage: z.ZodObject<{
444
+ toolCalls: z.ZodNumber;
445
+ egressBytes: z.ZodNumber;
446
+ durationMs: z.ZodNumber;
447
+ }, z.core.$strip>;
448
+ createdAt: z.ZodString;
449
+ status: z.ZodLiteral<"failed">;
450
+ completedAt: z.ZodString;
451
+ error: z.ZodObject<{
452
+ type: z.ZodString;
453
+ title: z.ZodString;
454
+ status: z.ZodNumber;
455
+ detail: z.ZodString;
456
+ code: z.ZodString;
457
+ pointer: z.ZodOptional<z.ZodString>;
458
+ details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
459
+ suggestions: z.ZodOptional<z.ZodArray<z.ZodString>>;
460
+ next: z.ZodOptional<z.ZodArray<z.ZodString>>;
461
+ requestId: z.ZodString;
462
+ }, z.core.$strip>;
463
+ }, z.core.$strip>, z.ZodObject<{
464
+ origin: z.ZodEnum<{
465
+ function: "function";
466
+ zero: "zero";
467
+ api: "api";
468
+ dashboard: "dashboard";
469
+ mcp: "mcp";
470
+ cli: "cli";
471
+ system: "system";
472
+ }>;
473
+ space: z.ZodNullable<z.ZodString>;
474
+ handler: z.ZodNullable<z.ZodString>;
475
+ visitor: z.ZodBoolean;
476
+ id: z.ZodString;
477
+ input: z.ZodObject<{
478
+ kind: z.ZodEnum<{
479
+ tool: "tool";
480
+ code: "code";
481
+ }>;
482
+ address: z.ZodNullable<z.ZodString>;
483
+ digest: z.ZodString;
484
+ }, z.core.$strip>;
485
+ usage: z.ZodObject<{
486
+ toolCalls: z.ZodNumber;
487
+ egressBytes: z.ZodNumber;
488
+ durationMs: z.ZodNumber;
489
+ }, z.core.$strip>;
490
+ createdAt: z.ZodString;
491
+ status: z.ZodLiteral<"expired">;
492
+ completedAt: z.ZodString;
493
+ }, z.core.$strip>], "status">;
494
+ export declare const ConnectionHealthSchema: z.ZodObject<{
495
+ connectionId: z.ZodString;
496
+ status: z.ZodEnum<{
497
+ active: "active";
498
+ revoked: "revoked";
499
+ degraded: "degraded";
500
+ pending_authorization: "pending_authorization";
501
+ needs_reauth: "needs_reauth";
502
+ }>;
503
+ reachable: z.ZodBoolean;
504
+ latencyMs: z.ZodNullable<z.ZodNumber>;
505
+ detail: z.ZodNullable<z.ZodString>;
506
+ toolCount: z.ZodNumber;
507
+ checkedAt: z.ZodString;
508
+ }, z.core.$strip>;
509
+ export declare const ConnectorCatalogEntrySchema: z.ZodObject<{
510
+ id: z.ZodString;
511
+ kind: z.ZodEnum<{
512
+ team: "team";
513
+ preset: "preset";
514
+ registry: "registry";
515
+ }>;
516
+ surface: z.ZodEnum<{
517
+ mcp: "mcp";
518
+ openapi: "openapi";
519
+ graphql: "graphql";
520
+ }>;
521
+ title: z.ZodString;
522
+ description: z.ZodNullable<z.ZodString>;
523
+ domain: z.ZodNullable<z.ZodString>;
524
+ logoUrl: z.ZodNullable<z.ZodString>;
525
+ presetId: z.ZodNullable<z.ZodString>;
526
+ registryId: z.ZodNullable<z.ZodString>;
527
+ family: z.ZodNullable<z.ZodString>;
528
+ featured: z.ZodBoolean;
529
+ authHint: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
530
+ kind: z.ZodLiteral<"api_key">;
531
+ slug: z.ZodString;
532
+ label: z.ZodString;
533
+ }, z.core.$strip>, z.ZodObject<{
534
+ kind: z.ZodLiteral<"oauth2">;
535
+ slug: z.ZodString;
536
+ label: z.ZodString;
537
+ scopes: z.ZodArray<z.ZodString>;
538
+ clientIdMetadataDocument: z.ZodOptional<z.ZodBoolean>;
539
+ dynamicRegistration: z.ZodBoolean;
540
+ }, z.core.$strip>, z.ZodObject<{
541
+ kind: z.ZodLiteral<"none">;
542
+ slug: z.ZodString;
543
+ label: z.ZodString;
544
+ }, z.core.$strip>, z.ZodObject<{
545
+ kind: z.ZodLiteral<"first_party">;
546
+ slug: z.ZodString;
547
+ label: z.ZodString;
548
+ provider: z.ZodString;
549
+ }, z.core.$strip>], "kind">>;
550
+ credentialGuidance: z.ZodNullable<z.ZodObject<{
551
+ label: z.ZodNullable<z.ZodString>;
552
+ mintUrl: z.ZodNullable<z.ZodString>;
553
+ docsUrl: z.ZodNullable<z.ZodString>;
554
+ notes: z.ZodNullable<z.ZodString>;
555
+ steps: z.ZodArray<z.ZodString>;
556
+ }, z.core.$strip>>;
557
+ alreadyAdded: z.ZodBoolean;
558
+ connectorSlug: z.ZodNullable<z.ZodString>;
559
+ }, z.core.$strip>;
560
+ export declare const connectorCatalogQuerySchema: z.ZodObject<{
561
+ limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
562
+ cursor: z.ZodOptional<z.ZodString>;
563
+ query: z.ZodOptional<z.ZodString>;
564
+ surface: z.ZodOptional<z.ZodEnum<{
565
+ mcp: "mcp";
566
+ openapi: "openapi";
567
+ graphql: "graphql";
568
+ }>>;
569
+ kind: z.ZodOptional<z.ZodEnum<{
570
+ team: "team";
571
+ preset: "preset";
572
+ registry: "registry";
573
+ }>>;
574
+ }, z.core.$strip>;
575
+ export declare const connectorSourceSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
576
+ kind: z.ZodLiteral<"openapi">;
577
+ specUrl: z.ZodOptional<z.ZodString>;
578
+ spec: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
579
+ baseUrl: z.ZodOptional<z.ZodString>;
580
+ }, z.core.$strip>, z.ZodObject<{
581
+ kind: z.ZodLiteral<"graphql">;
582
+ endpoint: z.ZodString;
583
+ }, z.core.$strip>, z.ZodObject<{
584
+ kind: z.ZodLiteral<"mcp">;
585
+ endpoint: z.ZodString;
586
+ }, z.core.$strip>], "kind">;
587
+ /**
588
+ * Slugs owned by dashboard routes or the built-in Spacefast MCP integration.
589
+ * Registration rejects them before a connector can shadow an existing namespace.
590
+ */
591
+ export declare const CONNECTOR_RESERVED_SLUGS: readonly ["add", "browse", "catalog", "connections", "detect", "policies", "runs", "spacefast", "tools"];
592
+ export declare const connectorRegisterSchema: z.ZodObject<{
593
+ slug: z.ZodString;
594
+ title: z.ZodString;
595
+ description: z.ZodOptional<z.ZodString>;
596
+ presetId: z.ZodOptional<z.ZodString>;
597
+ source: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
598
+ kind: z.ZodLiteral<"openapi">;
599
+ specUrl: z.ZodOptional<z.ZodString>;
600
+ spec: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
601
+ baseUrl: z.ZodOptional<z.ZodString>;
602
+ }, z.core.$strip>, z.ZodObject<{
603
+ kind: z.ZodLiteral<"graphql">;
604
+ endpoint: z.ZodString;
605
+ }, z.core.$strip>, z.ZodObject<{
606
+ kind: z.ZodLiteral<"mcp">;
607
+ endpoint: z.ZodString;
608
+ }, z.core.$strip>], "kind">>;
609
+ authMethods: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
610
+ kind: z.ZodLiteral<"api_key">;
611
+ slug: z.ZodString;
612
+ label: z.ZodString;
613
+ }, z.core.$strip>, z.ZodObject<{
614
+ kind: z.ZodLiteral<"oauth2">;
615
+ slug: z.ZodString;
616
+ label: z.ZodString;
617
+ scopes: z.ZodArray<z.ZodString>;
618
+ clientIdMetadataDocument: z.ZodOptional<z.ZodBoolean>;
619
+ dynamicRegistration: z.ZodBoolean;
620
+ }, z.core.$strip>, z.ZodObject<{
621
+ kind: z.ZodLiteral<"none">;
622
+ slug: z.ZodString;
623
+ label: z.ZodString;
624
+ }, z.core.$strip>, z.ZodObject<{
625
+ kind: z.ZodLiteral<"first_party">;
626
+ slug: z.ZodString;
627
+ label: z.ZodString;
628
+ provider: z.ZodString;
629
+ }, z.core.$strip>], "kind">>>;
630
+ specOverrides: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
631
+ }, z.core.$strip>;
632
+ export declare const connectorPatchSchema: z.ZodObject<{
633
+ title: z.ZodOptional<z.ZodString>;
634
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
635
+ refreshSpec: z.ZodOptional<z.ZodBoolean>;
636
+ specOverrides: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
637
+ }, z.core.$strip>;
638
+ export declare const connectorDetectSchema: z.ZodObject<{
639
+ url: z.ZodString;
640
+ }, z.core.$strip>;
641
+ export declare const ConnectorDetectionSchema: z.ZodObject<{
642
+ kind: z.ZodEnum<{
643
+ mcp: "mcp";
644
+ openapi: "openapi";
645
+ graphql: "graphql";
646
+ }>;
647
+ confidence: z.ZodEnum<{
648
+ high: "high";
649
+ medium: "medium";
650
+ low: "low";
651
+ }>;
652
+ endpoint: z.ZodString;
653
+ title: z.ZodString;
654
+ slug: z.ZodString;
655
+ presetId: z.ZodNullable<z.ZodString>;
656
+ }, z.core.$strip>;
657
+ export declare const connectorListQuerySchema: z.ZodObject<{
658
+ limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
659
+ cursor: z.ZodOptional<z.ZodString>;
660
+ query: z.ZodOptional<z.ZodString>;
661
+ source: z.ZodOptional<z.ZodEnum<{
662
+ mcp: "mcp";
663
+ openapi: "openapi";
664
+ graphql: "graphql";
665
+ }>>;
666
+ }, z.core.$strip>;
667
+ export declare const connectorToolListQuerySchema: z.ZodObject<{
668
+ limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
669
+ cursor: z.ZodOptional<z.ZodString>;
670
+ query: z.ZodOptional<z.ZodString>;
671
+ effect: z.ZodOptional<z.ZodEnum<{
672
+ approve: "approve";
673
+ require_approval: "require_approval";
674
+ block: "block";
675
+ }>>;
676
+ }, z.core.$strip>;
677
+ export declare const connectionCredentialSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
678
+ kind: z.ZodLiteral<"api_key">;
679
+ value: z.ZodString;
680
+ }, z.core.$strip>, z.ZodObject<{
681
+ kind: z.ZodLiteral<"fields">;
682
+ values: z.ZodRecord<z.ZodString, z.ZodString>;
683
+ }, z.core.$strip>], "kind">;
684
+ export declare const connectionCreateSchema: z.ZodObject<{
685
+ connector: z.ZodString;
686
+ owner: z.ZodEnum<{
687
+ team: "team";
688
+ personal: "personal";
689
+ }>;
690
+ displayName: z.ZodOptional<z.ZodString>;
691
+ description: z.ZodOptional<z.ZodString>;
692
+ authMethod: z.ZodOptional<z.ZodString>;
693
+ credential: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
694
+ kind: z.ZodLiteral<"api_key">;
695
+ value: z.ZodString;
696
+ }, z.core.$strip>, z.ZodObject<{
697
+ kind: z.ZodLiteral<"fields">;
698
+ values: z.ZodRecord<z.ZodString, z.ZodString>;
699
+ }, z.core.$strip>], "kind">>;
700
+ scopes: z.ZodOptional<z.ZodArray<z.ZodString>>;
701
+ returnPath: z.ZodOptional<z.ZodString>;
702
+ }, z.core.$strip>;
703
+ export declare const ConnectionCreateResultSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
704
+ status: z.ZodLiteral<"connected">;
705
+ connection: z.ZodObject<{
706
+ id: z.ZodString;
707
+ connector: z.ZodString;
708
+ owner: z.ZodEnum<{
709
+ team: "team";
710
+ personal: "personal";
711
+ }>;
712
+ serving: z.ZodDefault<z.ZodBoolean>;
713
+ displayName: z.ZodString;
714
+ description: z.ZodNullable<z.ZodString>;
715
+ status: z.ZodEnum<{
716
+ active: "active";
717
+ revoked: "revoked";
718
+ degraded: "degraded";
719
+ pending_authorization: "pending_authorization";
720
+ needs_reauth: "needs_reauth";
721
+ }>;
722
+ identityLabel: z.ZodNullable<z.ZodString>;
723
+ credentialConfigured: z.ZodBoolean;
724
+ authMethod: z.ZodNullable<z.ZodString>;
725
+ scopes: z.ZodArray<z.ZodString>;
726
+ isDefault: z.ZodBoolean;
727
+ toolCount: z.ZodNumber;
728
+ createdBy: z.ZodNullable<z.ZodString>;
729
+ lastCheckedAt: z.ZodNullable<z.ZodString>;
730
+ revokedAt: z.ZodNullable<z.ZodString>;
731
+ createdAt: z.ZodString;
732
+ updatedAt: z.ZodString;
733
+ }, z.core.$strip>;
734
+ }, z.core.$strip>, z.ZodObject<{
735
+ status: z.ZodLiteral<"authorization_required">;
736
+ connection: z.ZodObject<{
737
+ id: z.ZodString;
738
+ connector: z.ZodString;
739
+ owner: z.ZodEnum<{
740
+ team: "team";
741
+ personal: "personal";
742
+ }>;
743
+ serving: z.ZodDefault<z.ZodBoolean>;
744
+ displayName: z.ZodString;
745
+ description: z.ZodNullable<z.ZodString>;
746
+ status: z.ZodEnum<{
747
+ active: "active";
748
+ revoked: "revoked";
749
+ degraded: "degraded";
750
+ pending_authorization: "pending_authorization";
751
+ needs_reauth: "needs_reauth";
752
+ }>;
753
+ identityLabel: z.ZodNullable<z.ZodString>;
754
+ credentialConfigured: z.ZodBoolean;
755
+ authMethod: z.ZodNullable<z.ZodString>;
756
+ scopes: z.ZodArray<z.ZodString>;
757
+ isDefault: z.ZodBoolean;
758
+ toolCount: z.ZodNumber;
759
+ createdBy: z.ZodNullable<z.ZodString>;
760
+ lastCheckedAt: z.ZodNullable<z.ZodString>;
761
+ revokedAt: z.ZodNullable<z.ZodString>;
762
+ createdAt: z.ZodString;
763
+ updatedAt: z.ZodString;
764
+ }, z.core.$strip>;
765
+ authorizeUrl: z.ZodString;
766
+ expiresAt: z.ZodString;
767
+ }, z.core.$strip>, z.ZodObject<{
768
+ status: z.ZodLiteral<"input_required">;
769
+ connector: z.ZodString;
770
+ authMethod: z.ZodString;
771
+ fields: z.ZodArray<z.ZodObject<{
772
+ name: z.ZodString;
773
+ required: z.ZodOptional<z.ZodBoolean>;
774
+ label: z.ZodString;
775
+ secret: z.ZodBoolean;
776
+ guidance: z.ZodNullable<z.ZodObject<{
777
+ label: z.ZodNullable<z.ZodString>;
778
+ mintUrl: z.ZodNullable<z.ZodString>;
779
+ docsUrl: z.ZodNullable<z.ZodString>;
780
+ notes: z.ZodNullable<z.ZodString>;
781
+ steps: z.ZodArray<z.ZodString>;
782
+ }, z.core.$strip>>;
783
+ }, z.core.$strip>>;
784
+ }, z.core.$strip>], "status">;
785
+ export declare const connectionCompleteSchema: z.ZodObject<{
786
+ state: z.ZodString;
787
+ code: z.ZodString;
788
+ }, z.core.$strip>;
789
+ export declare const connectionPatchSchema: z.ZodObject<{
790
+ serving: z.ZodOptional<z.ZodBoolean>;
791
+ displayName: z.ZodOptional<z.ZodString>;
792
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
793
+ }, z.core.$strip>;
794
+ export declare const connectionListQuerySchema: z.ZodObject<{
795
+ limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
796
+ cursor: z.ZodOptional<z.ZodString>;
797
+ owner: z.ZodDefault<z.ZodUnion<[z.ZodEnum<{
798
+ team: "team";
799
+ personal: "personal";
800
+ }>, z.ZodLiteral<"any">]>>;
801
+ connector: z.ZodOptional<z.ZodString>;
802
+ status: z.ZodOptional<z.ZodEnum<{
803
+ active: "active";
804
+ revoked: "revoked";
805
+ degraded: "degraded";
806
+ pending_authorization: "pending_authorization";
807
+ needs_reauth: "needs_reauth";
808
+ }>>;
809
+ includeRevoked: z.ZodDefault<z.ZodCoercedBoolean<unknown>>;
810
+ }, z.core.$strip>;
811
+ export declare const policyRuleCreateSchema: z.ZodObject<{
812
+ pattern: z.ZodString;
813
+ action: z.ZodEnum<{
814
+ approve: "approve";
815
+ require_approval: "require_approval";
816
+ block: "block";
817
+ }>;
818
+ owner: z.ZodEnum<{
819
+ team: "team";
820
+ personal: "personal";
821
+ }>;
822
+ }, z.core.$strip>;
823
+ export declare const policyRulePatchSchema: z.ZodObject<{
824
+ action: z.ZodEnum<{
825
+ approve: "approve";
826
+ require_approval: "require_approval";
827
+ block: "block";
828
+ }>;
829
+ }, z.core.$strip>;
830
+ export declare const policyResolveQuerySchema: z.ZodObject<{
831
+ address: z.ZodString;
832
+ }, z.core.$strip>;
833
+ export declare const connectorRunInputSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
834
+ kind: z.ZodLiteral<"tool">;
835
+ address: z.ZodString;
836
+ args: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
837
+ }, z.core.$strip>, z.ZodObject<{
838
+ kind: z.ZodLiteral<"code">;
839
+ code: z.ZodString;
840
+ }, z.core.$strip>], "kind">;
841
+ export declare const connectorRunCreateSchema: z.ZodObject<{
842
+ input: z.ZodDiscriminatedUnion<[z.ZodObject<{
843
+ kind: z.ZodLiteral<"tool">;
844
+ address: z.ZodString;
845
+ args: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
846
+ }, z.core.$strip>, z.ZodObject<{
847
+ kind: z.ZodLiteral<"code">;
848
+ code: z.ZodString;
849
+ }, z.core.$strip>], "kind">;
850
+ waitMs: z.ZodOptional<z.ZodNumber>;
851
+ idempotencyKey: z.ZodOptional<z.ZodString>;
852
+ unattendedApprovals: z.ZodDefault<z.ZodEnum<{
853
+ deny: "deny";
854
+ park: "park";
855
+ }>>;
856
+ }, z.core.$strip>;
857
+ export declare const connectorRunResumeSchema: z.ZodObject<{
858
+ action: z.ZodOptional<z.ZodEnum<{
859
+ accept: "accept";
860
+ decline: "decline";
861
+ cancel: "cancel";
862
+ }>>;
863
+ content: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
864
+ }, z.core.$strip>;
865
+ export declare const connectorRunListQuerySchema: z.ZodObject<{
866
+ limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
867
+ cursor: z.ZodOptional<z.ZodString>;
868
+ origin: z.ZodOptional<z.ZodEnum<{
869
+ function: "function";
870
+ zero: "zero";
871
+ api: "api";
872
+ dashboard: "dashboard";
873
+ mcp: "mcp";
874
+ cli: "cli";
875
+ system: "system";
876
+ }>>;
877
+ space: z.ZodOptional<z.ZodString>;
878
+ status: z.ZodOptional<z.ZodEnum<{
879
+ failed: "failed";
880
+ expired: "expired";
881
+ running: "running";
882
+ succeeded: "succeeded";
883
+ awaiting_approval: "awaiting_approval";
884
+ }>>;
885
+ connection: z.ZodOptional<z.ZodString>;
886
+ }, z.core.$strip>;
887
+ export declare const ConnectorParamsSchema: z.ZodObject<{
888
+ connectorRef: z.ZodString;
889
+ }, z.core.$strip>;
890
+ export declare const ConnectionParamsSchema: z.ZodObject<{
891
+ connectionId: z.ZodString;
892
+ }, z.core.$strip>;
893
+ export declare const PolicyRuleParamsSchema: z.ZodObject<{
894
+ policyRuleId: z.ZodString;
895
+ }, z.core.$strip>;
896
+ export declare const ConnectorRunParamsSchema: z.ZodObject<{
897
+ runId: z.ZodString;
898
+ }, z.core.$strip>;
899
+ export declare const connectorCatalogListResponseSchema: z.ZodObject<{
900
+ data: z.ZodArray<z.ZodObject<{
901
+ id: z.ZodString;
902
+ kind: z.ZodEnum<{
903
+ team: "team";
904
+ preset: "preset";
905
+ registry: "registry";
906
+ }>;
907
+ surface: z.ZodEnum<{
908
+ mcp: "mcp";
909
+ openapi: "openapi";
910
+ graphql: "graphql";
911
+ }>;
912
+ title: z.ZodString;
913
+ description: z.ZodNullable<z.ZodString>;
914
+ domain: z.ZodNullable<z.ZodString>;
915
+ logoUrl: z.ZodNullable<z.ZodString>;
916
+ presetId: z.ZodNullable<z.ZodString>;
917
+ registryId: z.ZodNullable<z.ZodString>;
918
+ family: z.ZodNullable<z.ZodString>;
919
+ featured: z.ZodBoolean;
920
+ authHint: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
921
+ kind: z.ZodLiteral<"api_key">;
922
+ slug: z.ZodString;
923
+ label: z.ZodString;
924
+ }, z.core.$strip>, z.ZodObject<{
925
+ kind: z.ZodLiteral<"oauth2">;
926
+ slug: z.ZodString;
927
+ label: z.ZodString;
928
+ scopes: z.ZodArray<z.ZodString>;
929
+ clientIdMetadataDocument: z.ZodOptional<z.ZodBoolean>;
930
+ dynamicRegistration: z.ZodBoolean;
931
+ }, z.core.$strip>, z.ZodObject<{
932
+ kind: z.ZodLiteral<"none">;
933
+ slug: z.ZodString;
934
+ label: z.ZodString;
935
+ }, z.core.$strip>, z.ZodObject<{
936
+ kind: z.ZodLiteral<"first_party">;
937
+ slug: z.ZodString;
938
+ label: z.ZodString;
939
+ provider: z.ZodString;
940
+ }, z.core.$strip>], "kind">>;
941
+ credentialGuidance: z.ZodNullable<z.ZodObject<{
942
+ label: z.ZodNullable<z.ZodString>;
943
+ mintUrl: z.ZodNullable<z.ZodString>;
944
+ docsUrl: z.ZodNullable<z.ZodString>;
945
+ notes: z.ZodNullable<z.ZodString>;
946
+ steps: z.ZodArray<z.ZodString>;
947
+ }, z.core.$strip>>;
948
+ alreadyAdded: z.ZodBoolean;
949
+ connectorSlug: z.ZodNullable<z.ZodString>;
950
+ }, z.core.$strip>>;
951
+ pagination: z.ZodObject<{
952
+ nextCursor: z.ZodNullable<z.ZodString>;
953
+ hasMore: z.ZodBoolean;
954
+ }, z.core.$strip>;
955
+ }, z.core.$strip>;
956
+ export declare const connectorListResponseSchema: z.ZodObject<{
957
+ data: z.ZodArray<z.ZodObject<{
958
+ slug: z.ZodString;
959
+ title: z.ZodString;
960
+ description: z.ZodNullable<z.ZodString>;
961
+ source: z.ZodEnum<{
962
+ mcp: "mcp";
963
+ openapi: "openapi";
964
+ graphql: "graphql";
965
+ }>;
966
+ catalogSource: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
967
+ kind: z.ZodLiteral<"openapi">;
968
+ spec: z.ZodString;
969
+ baseUrl: z.ZodOptional<z.ZodString>;
970
+ }, z.core.$strip>, z.ZodObject<{
971
+ kind: z.ZodLiteral<"graphql">;
972
+ endpoint: z.ZodString;
973
+ }, z.core.$strip>, z.ZodObject<{
974
+ kind: z.ZodLiteral<"mcp">;
975
+ endpoint: z.ZodString;
976
+ }, z.core.$strip>], "kind">>;
977
+ sourceUrl: z.ZodNullable<z.ZodString>;
978
+ firstParty: z.ZodBoolean;
979
+ presetId: z.ZodNullable<z.ZodString>;
980
+ authMethods: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
981
+ kind: z.ZodLiteral<"api_key">;
982
+ slug: z.ZodString;
983
+ label: z.ZodString;
984
+ }, z.core.$strip>, z.ZodObject<{
985
+ kind: z.ZodLiteral<"oauth2">;
986
+ slug: z.ZodString;
987
+ label: z.ZodString;
988
+ scopes: z.ZodArray<z.ZodString>;
989
+ clientIdMetadataDocument: z.ZodOptional<z.ZodBoolean>;
990
+ dynamicRegistration: z.ZodBoolean;
991
+ }, z.core.$strip>, z.ZodObject<{
992
+ kind: z.ZodLiteral<"none">;
993
+ slug: z.ZodString;
994
+ label: z.ZodString;
995
+ }, z.core.$strip>, z.ZodObject<{
996
+ kind: z.ZodLiteral<"first_party">;
997
+ slug: z.ZodString;
998
+ label: z.ZodString;
999
+ provider: z.ZodString;
1000
+ }, z.core.$strip>], "kind">>;
1001
+ toolCount: z.ZodNumber;
1002
+ connections: z.ZodArray<z.ZodObject<{
1003
+ id: z.ZodString;
1004
+ connector: z.ZodString;
1005
+ owner: z.ZodEnum<{
1006
+ team: "team";
1007
+ personal: "personal";
1008
+ }>;
1009
+ serving: z.ZodDefault<z.ZodBoolean>;
1010
+ displayName: z.ZodString;
1011
+ description: z.ZodNullable<z.ZodString>;
1012
+ status: z.ZodEnum<{
1013
+ active: "active";
1014
+ revoked: "revoked";
1015
+ degraded: "degraded";
1016
+ pending_authorization: "pending_authorization";
1017
+ needs_reauth: "needs_reauth";
1018
+ }>;
1019
+ identityLabel: z.ZodNullable<z.ZodString>;
1020
+ credentialConfigured: z.ZodBoolean;
1021
+ authMethod: z.ZodNullable<z.ZodString>;
1022
+ scopes: z.ZodArray<z.ZodString>;
1023
+ isDefault: z.ZodBoolean;
1024
+ toolCount: z.ZodNumber;
1025
+ createdBy: z.ZodNullable<z.ZodString>;
1026
+ lastCheckedAt: z.ZodNullable<z.ZodString>;
1027
+ revokedAt: z.ZodNullable<z.ZodString>;
1028
+ createdAt: z.ZodString;
1029
+ updatedAt: z.ZodString;
1030
+ }, z.core.$strip>>;
1031
+ specSyncedAt: z.ZodNullable<z.ZodString>;
1032
+ createdAt: z.ZodString;
1033
+ updatedAt: z.ZodString;
1034
+ }, z.core.$strip>>;
1035
+ pagination: z.ZodObject<{
1036
+ nextCursor: z.ZodNullable<z.ZodString>;
1037
+ hasMore: z.ZodBoolean;
1038
+ }, z.core.$strip>;
1039
+ }, z.core.$strip>;
1040
+ export declare const connectorResponseSchema: z.ZodObject<{
1041
+ data: z.ZodObject<{
1042
+ slug: z.ZodString;
1043
+ title: z.ZodString;
1044
+ description: z.ZodNullable<z.ZodString>;
1045
+ source: z.ZodEnum<{
1046
+ mcp: "mcp";
1047
+ openapi: "openapi";
1048
+ graphql: "graphql";
1049
+ }>;
1050
+ catalogSource: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
1051
+ kind: z.ZodLiteral<"openapi">;
1052
+ spec: z.ZodString;
1053
+ baseUrl: z.ZodOptional<z.ZodString>;
1054
+ }, z.core.$strip>, z.ZodObject<{
1055
+ kind: z.ZodLiteral<"graphql">;
1056
+ endpoint: z.ZodString;
1057
+ }, z.core.$strip>, z.ZodObject<{
1058
+ kind: z.ZodLiteral<"mcp">;
1059
+ endpoint: z.ZodString;
1060
+ }, z.core.$strip>], "kind">>;
1061
+ sourceUrl: z.ZodNullable<z.ZodString>;
1062
+ firstParty: z.ZodBoolean;
1063
+ presetId: z.ZodNullable<z.ZodString>;
1064
+ authMethods: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1065
+ kind: z.ZodLiteral<"api_key">;
1066
+ slug: z.ZodString;
1067
+ label: z.ZodString;
1068
+ }, z.core.$strip>, z.ZodObject<{
1069
+ kind: z.ZodLiteral<"oauth2">;
1070
+ slug: z.ZodString;
1071
+ label: z.ZodString;
1072
+ scopes: z.ZodArray<z.ZodString>;
1073
+ clientIdMetadataDocument: z.ZodOptional<z.ZodBoolean>;
1074
+ dynamicRegistration: z.ZodBoolean;
1075
+ }, z.core.$strip>, z.ZodObject<{
1076
+ kind: z.ZodLiteral<"none">;
1077
+ slug: z.ZodString;
1078
+ label: z.ZodString;
1079
+ }, z.core.$strip>, z.ZodObject<{
1080
+ kind: z.ZodLiteral<"first_party">;
1081
+ slug: z.ZodString;
1082
+ label: z.ZodString;
1083
+ provider: z.ZodString;
1084
+ }, z.core.$strip>], "kind">>;
1085
+ toolCount: z.ZodNumber;
1086
+ connections: z.ZodArray<z.ZodObject<{
1087
+ id: z.ZodString;
1088
+ connector: z.ZodString;
1089
+ owner: z.ZodEnum<{
1090
+ team: "team";
1091
+ personal: "personal";
1092
+ }>;
1093
+ serving: z.ZodDefault<z.ZodBoolean>;
1094
+ displayName: z.ZodString;
1095
+ description: z.ZodNullable<z.ZodString>;
1096
+ status: z.ZodEnum<{
1097
+ active: "active";
1098
+ revoked: "revoked";
1099
+ degraded: "degraded";
1100
+ pending_authorization: "pending_authorization";
1101
+ needs_reauth: "needs_reauth";
1102
+ }>;
1103
+ identityLabel: z.ZodNullable<z.ZodString>;
1104
+ credentialConfigured: z.ZodBoolean;
1105
+ authMethod: z.ZodNullable<z.ZodString>;
1106
+ scopes: z.ZodArray<z.ZodString>;
1107
+ isDefault: z.ZodBoolean;
1108
+ toolCount: z.ZodNumber;
1109
+ createdBy: z.ZodNullable<z.ZodString>;
1110
+ lastCheckedAt: z.ZodNullable<z.ZodString>;
1111
+ revokedAt: z.ZodNullable<z.ZodString>;
1112
+ createdAt: z.ZodString;
1113
+ updatedAt: z.ZodString;
1114
+ }, z.core.$strip>>;
1115
+ specSyncedAt: z.ZodNullable<z.ZodString>;
1116
+ createdAt: z.ZodString;
1117
+ updatedAt: z.ZodString;
1118
+ }, z.core.$strip>;
1119
+ }, z.core.$strip>;
1120
+ export declare const connectorDetectResponseSchema: z.ZodObject<{
1121
+ data: z.ZodArray<z.ZodObject<{
1122
+ kind: z.ZodEnum<{
1123
+ mcp: "mcp";
1124
+ openapi: "openapi";
1125
+ graphql: "graphql";
1126
+ }>;
1127
+ confidence: z.ZodEnum<{
1128
+ high: "high";
1129
+ medium: "medium";
1130
+ low: "low";
1131
+ }>;
1132
+ endpoint: z.ZodString;
1133
+ title: z.ZodString;
1134
+ slug: z.ZodString;
1135
+ presetId: z.ZodNullable<z.ZodString>;
1136
+ }, z.core.$strip>>;
1137
+ }, z.core.$strip>;
1138
+ export declare const connectorDeleteResponseSchema: z.ZodObject<{
1139
+ data: z.ZodNull;
1140
+ }, z.core.$strip>;
1141
+ export declare const connectionListResponseSchema: z.ZodObject<{
1142
+ data: z.ZodArray<z.ZodObject<{
1143
+ id: z.ZodString;
1144
+ connector: z.ZodString;
1145
+ owner: z.ZodEnum<{
1146
+ team: "team";
1147
+ personal: "personal";
1148
+ }>;
1149
+ serving: z.ZodDefault<z.ZodBoolean>;
1150
+ displayName: z.ZodString;
1151
+ description: z.ZodNullable<z.ZodString>;
1152
+ status: z.ZodEnum<{
1153
+ active: "active";
1154
+ revoked: "revoked";
1155
+ degraded: "degraded";
1156
+ pending_authorization: "pending_authorization";
1157
+ needs_reauth: "needs_reauth";
1158
+ }>;
1159
+ identityLabel: z.ZodNullable<z.ZodString>;
1160
+ credentialConfigured: z.ZodBoolean;
1161
+ authMethod: z.ZodNullable<z.ZodString>;
1162
+ scopes: z.ZodArray<z.ZodString>;
1163
+ isDefault: z.ZodBoolean;
1164
+ toolCount: z.ZodNumber;
1165
+ createdBy: z.ZodNullable<z.ZodString>;
1166
+ lastCheckedAt: z.ZodNullable<z.ZodString>;
1167
+ revokedAt: z.ZodNullable<z.ZodString>;
1168
+ createdAt: z.ZodString;
1169
+ updatedAt: z.ZodString;
1170
+ }, z.core.$strip>>;
1171
+ pagination: z.ZodObject<{
1172
+ nextCursor: z.ZodNullable<z.ZodString>;
1173
+ hasMore: z.ZodBoolean;
1174
+ }, z.core.$strip>;
1175
+ }, z.core.$strip>;
1176
+ export declare const connectionResponseSchema: z.ZodObject<{
1177
+ data: z.ZodObject<{
1178
+ id: z.ZodString;
1179
+ connector: z.ZodString;
1180
+ owner: z.ZodEnum<{
1181
+ team: "team";
1182
+ personal: "personal";
1183
+ }>;
1184
+ serving: z.ZodDefault<z.ZodBoolean>;
1185
+ displayName: z.ZodString;
1186
+ description: z.ZodNullable<z.ZodString>;
1187
+ status: z.ZodEnum<{
1188
+ active: "active";
1189
+ revoked: "revoked";
1190
+ degraded: "degraded";
1191
+ pending_authorization: "pending_authorization";
1192
+ needs_reauth: "needs_reauth";
1193
+ }>;
1194
+ identityLabel: z.ZodNullable<z.ZodString>;
1195
+ credentialConfigured: z.ZodBoolean;
1196
+ authMethod: z.ZodNullable<z.ZodString>;
1197
+ scopes: z.ZodArray<z.ZodString>;
1198
+ isDefault: z.ZodBoolean;
1199
+ toolCount: z.ZodNumber;
1200
+ createdBy: z.ZodNullable<z.ZodString>;
1201
+ lastCheckedAt: z.ZodNullable<z.ZodString>;
1202
+ revokedAt: z.ZodNullable<z.ZodString>;
1203
+ createdAt: z.ZodString;
1204
+ updatedAt: z.ZodString;
1205
+ }, z.core.$strip>;
1206
+ }, z.core.$strip>;
1207
+ export declare const connectionCreateResponseSchema: z.ZodObject<{
1208
+ data: z.ZodDiscriminatedUnion<[z.ZodObject<{
1209
+ status: z.ZodLiteral<"connected">;
1210
+ connection: z.ZodObject<{
1211
+ id: z.ZodString;
1212
+ connector: z.ZodString;
1213
+ owner: z.ZodEnum<{
1214
+ team: "team";
1215
+ personal: "personal";
1216
+ }>;
1217
+ serving: z.ZodDefault<z.ZodBoolean>;
1218
+ displayName: z.ZodString;
1219
+ description: z.ZodNullable<z.ZodString>;
1220
+ status: z.ZodEnum<{
1221
+ active: "active";
1222
+ revoked: "revoked";
1223
+ degraded: "degraded";
1224
+ pending_authorization: "pending_authorization";
1225
+ needs_reauth: "needs_reauth";
1226
+ }>;
1227
+ identityLabel: z.ZodNullable<z.ZodString>;
1228
+ credentialConfigured: z.ZodBoolean;
1229
+ authMethod: z.ZodNullable<z.ZodString>;
1230
+ scopes: z.ZodArray<z.ZodString>;
1231
+ isDefault: z.ZodBoolean;
1232
+ toolCount: z.ZodNumber;
1233
+ createdBy: z.ZodNullable<z.ZodString>;
1234
+ lastCheckedAt: z.ZodNullable<z.ZodString>;
1235
+ revokedAt: z.ZodNullable<z.ZodString>;
1236
+ createdAt: z.ZodString;
1237
+ updatedAt: z.ZodString;
1238
+ }, z.core.$strip>;
1239
+ }, z.core.$strip>, z.ZodObject<{
1240
+ status: z.ZodLiteral<"authorization_required">;
1241
+ connection: z.ZodObject<{
1242
+ id: z.ZodString;
1243
+ connector: z.ZodString;
1244
+ owner: z.ZodEnum<{
1245
+ team: "team";
1246
+ personal: "personal";
1247
+ }>;
1248
+ serving: z.ZodDefault<z.ZodBoolean>;
1249
+ displayName: z.ZodString;
1250
+ description: z.ZodNullable<z.ZodString>;
1251
+ status: z.ZodEnum<{
1252
+ active: "active";
1253
+ revoked: "revoked";
1254
+ degraded: "degraded";
1255
+ pending_authorization: "pending_authorization";
1256
+ needs_reauth: "needs_reauth";
1257
+ }>;
1258
+ identityLabel: z.ZodNullable<z.ZodString>;
1259
+ credentialConfigured: z.ZodBoolean;
1260
+ authMethod: z.ZodNullable<z.ZodString>;
1261
+ scopes: z.ZodArray<z.ZodString>;
1262
+ isDefault: z.ZodBoolean;
1263
+ toolCount: z.ZodNumber;
1264
+ createdBy: z.ZodNullable<z.ZodString>;
1265
+ lastCheckedAt: z.ZodNullable<z.ZodString>;
1266
+ revokedAt: z.ZodNullable<z.ZodString>;
1267
+ createdAt: z.ZodString;
1268
+ updatedAt: z.ZodString;
1269
+ }, z.core.$strip>;
1270
+ authorizeUrl: z.ZodString;
1271
+ expiresAt: z.ZodString;
1272
+ }, z.core.$strip>, z.ZodObject<{
1273
+ status: z.ZodLiteral<"input_required">;
1274
+ connector: z.ZodString;
1275
+ authMethod: z.ZodString;
1276
+ fields: z.ZodArray<z.ZodObject<{
1277
+ name: z.ZodString;
1278
+ required: z.ZodOptional<z.ZodBoolean>;
1279
+ label: z.ZodString;
1280
+ secret: z.ZodBoolean;
1281
+ guidance: z.ZodNullable<z.ZodObject<{
1282
+ label: z.ZodNullable<z.ZodString>;
1283
+ mintUrl: z.ZodNullable<z.ZodString>;
1284
+ docsUrl: z.ZodNullable<z.ZodString>;
1285
+ notes: z.ZodNullable<z.ZodString>;
1286
+ steps: z.ZodArray<z.ZodString>;
1287
+ }, z.core.$strip>>;
1288
+ }, z.core.$strip>>;
1289
+ }, z.core.$strip>], "status">;
1290
+ }, z.core.$strip>;
1291
+ export declare const connectionHealthResponseSchema: z.ZodObject<{
1292
+ data: z.ZodObject<{
1293
+ connectionId: z.ZodString;
1294
+ status: z.ZodEnum<{
1295
+ active: "active";
1296
+ revoked: "revoked";
1297
+ degraded: "degraded";
1298
+ pending_authorization: "pending_authorization";
1299
+ needs_reauth: "needs_reauth";
1300
+ }>;
1301
+ reachable: z.ZodBoolean;
1302
+ latencyMs: z.ZodNullable<z.ZodNumber>;
1303
+ detail: z.ZodNullable<z.ZodString>;
1304
+ toolCount: z.ZodNumber;
1305
+ checkedAt: z.ZodString;
1306
+ }, z.core.$strip>;
1307
+ }, z.core.$strip>;
1308
+ export declare const connectionDisconnectResponseSchema: z.ZodObject<{
1309
+ data: z.ZodObject<{
1310
+ id: z.ZodString;
1311
+ connector: z.ZodString;
1312
+ owner: z.ZodEnum<{
1313
+ team: "team";
1314
+ personal: "personal";
1315
+ }>;
1316
+ serving: z.ZodDefault<z.ZodBoolean>;
1317
+ displayName: z.ZodString;
1318
+ description: z.ZodNullable<z.ZodString>;
1319
+ status: z.ZodEnum<{
1320
+ active: "active";
1321
+ revoked: "revoked";
1322
+ degraded: "degraded";
1323
+ pending_authorization: "pending_authorization";
1324
+ needs_reauth: "needs_reauth";
1325
+ }>;
1326
+ identityLabel: z.ZodNullable<z.ZodString>;
1327
+ credentialConfigured: z.ZodBoolean;
1328
+ authMethod: z.ZodNullable<z.ZodString>;
1329
+ scopes: z.ZodArray<z.ZodString>;
1330
+ isDefault: z.ZodBoolean;
1331
+ toolCount: z.ZodNumber;
1332
+ createdBy: z.ZodNullable<z.ZodString>;
1333
+ lastCheckedAt: z.ZodNullable<z.ZodString>;
1334
+ revokedAt: z.ZodNullable<z.ZodString>;
1335
+ createdAt: z.ZodString;
1336
+ updatedAt: z.ZodString;
1337
+ }, z.core.$strip>;
1338
+ operation: z.ZodNullable<z.ZodObject<{
1339
+ id: z.ZodString;
1340
+ kind: z.ZodString;
1341
+ status: z.ZodEnum<{
1342
+ failed: "failed";
1343
+ canceled: "canceled";
1344
+ queued: "queued";
1345
+ running: "running";
1346
+ succeeded: "succeeded";
1347
+ }>;
1348
+ resources: z.ZodArray<z.ZodObject<{
1349
+ type: z.ZodString;
1350
+ id: z.ZodString;
1351
+ }, z.core.$strip>>;
1352
+ progress: z.ZodOptional<z.ZodObject<{
1353
+ total: z.ZodNumber;
1354
+ completed: z.ZodNumber;
1355
+ failed: z.ZodNumber;
1356
+ }, z.core.$strip>>;
1357
+ diagnostics: z.ZodOptional<z.ZodArray<z.ZodObject<{
1358
+ code: z.ZodString;
1359
+ severity: z.ZodEnum<{
1360
+ info: "info";
1361
+ warning: "warning";
1362
+ error: "error";
1363
+ }>;
1364
+ message: z.ZodString;
1365
+ path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1366
+ provider: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1367
+ registrar: "registrar";
1368
+ infra: "infra";
1369
+ dns: "dns";
1370
+ runtime: "runtime";
1371
+ }>>>;
1372
+ details: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
1373
+ fix: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1374
+ retryable: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
1375
+ }, z.core.$strip>>>;
1376
+ createdAt: z.ZodString;
1377
+ finishedAt: z.ZodOptional<z.ZodString>;
1378
+ }, z.core.$strip>>;
1379
+ }, z.core.$strip>;
1380
+ export declare const connectionRefreshResponseSchema: z.ZodObject<{
1381
+ data: z.ZodObject<{
1382
+ id: z.ZodString;
1383
+ connector: z.ZodString;
1384
+ owner: z.ZodEnum<{
1385
+ team: "team";
1386
+ personal: "personal";
1387
+ }>;
1388
+ serving: z.ZodDefault<z.ZodBoolean>;
1389
+ displayName: z.ZodString;
1390
+ description: z.ZodNullable<z.ZodString>;
1391
+ status: z.ZodEnum<{
1392
+ active: "active";
1393
+ revoked: "revoked";
1394
+ degraded: "degraded";
1395
+ pending_authorization: "pending_authorization";
1396
+ needs_reauth: "needs_reauth";
1397
+ }>;
1398
+ identityLabel: z.ZodNullable<z.ZodString>;
1399
+ credentialConfigured: z.ZodBoolean;
1400
+ authMethod: z.ZodNullable<z.ZodString>;
1401
+ scopes: z.ZodArray<z.ZodString>;
1402
+ isDefault: z.ZodBoolean;
1403
+ toolCount: z.ZodNumber;
1404
+ createdBy: z.ZodNullable<z.ZodString>;
1405
+ lastCheckedAt: z.ZodNullable<z.ZodString>;
1406
+ revokedAt: z.ZodNullable<z.ZodString>;
1407
+ createdAt: z.ZodString;
1408
+ updatedAt: z.ZodString;
1409
+ }, z.core.$strip>;
1410
+ operation: z.ZodNullable<z.ZodObject<{
1411
+ id: z.ZodString;
1412
+ kind: z.ZodString;
1413
+ status: z.ZodEnum<{
1414
+ failed: "failed";
1415
+ canceled: "canceled";
1416
+ queued: "queued";
1417
+ running: "running";
1418
+ succeeded: "succeeded";
1419
+ }>;
1420
+ resources: z.ZodArray<z.ZodObject<{
1421
+ type: z.ZodString;
1422
+ id: z.ZodString;
1423
+ }, z.core.$strip>>;
1424
+ progress: z.ZodOptional<z.ZodObject<{
1425
+ total: z.ZodNumber;
1426
+ completed: z.ZodNumber;
1427
+ failed: z.ZodNumber;
1428
+ }, z.core.$strip>>;
1429
+ diagnostics: z.ZodOptional<z.ZodArray<z.ZodObject<{
1430
+ code: z.ZodString;
1431
+ severity: z.ZodEnum<{
1432
+ info: "info";
1433
+ warning: "warning";
1434
+ error: "error";
1435
+ }>;
1436
+ message: z.ZodString;
1437
+ path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1438
+ provider: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1439
+ registrar: "registrar";
1440
+ infra: "infra";
1441
+ dns: "dns";
1442
+ runtime: "runtime";
1443
+ }>>>;
1444
+ details: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
1445
+ fix: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1446
+ retryable: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
1447
+ }, z.core.$strip>>>;
1448
+ createdAt: z.ZodString;
1449
+ finishedAt: z.ZodOptional<z.ZodString>;
1450
+ }, z.core.$strip>>;
1451
+ }, z.core.$strip>;
1452
+ export declare const connectorToolListResponseSchema: z.ZodObject<{
1453
+ data: z.ZodArray<z.ZodObject<{
1454
+ address: z.ZodString;
1455
+ name: z.ZodString;
1456
+ summary: z.ZodString;
1457
+ safety: z.ZodEnum<{
1458
+ write: "write";
1459
+ destructive: "destructive";
1460
+ read_only: "read_only";
1461
+ }>;
1462
+ effect: z.ZodEnum<{
1463
+ approve: "approve";
1464
+ require_approval: "require_approval";
1465
+ block: "block";
1466
+ }>;
1467
+ decidedBy: z.ZodNullable<z.ZodObject<{
1468
+ ruleId: z.ZodString;
1469
+ pattern: z.ZodString;
1470
+ owner: z.ZodEnum<{
1471
+ team: "team";
1472
+ personal: "personal";
1473
+ }>;
1474
+ }, z.core.$strip>>;
1475
+ inputSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1476
+ }, z.core.$strip>>;
1477
+ pagination: z.ZodObject<{
1478
+ nextCursor: z.ZodNullable<z.ZodString>;
1479
+ hasMore: z.ZodBoolean;
1480
+ }, z.core.$strip>;
1481
+ }, z.core.$strip>;
1482
+ export declare const policyRuleListResponseSchema: z.ZodObject<{
1483
+ data: z.ZodArray<z.ZodObject<{
1484
+ id: z.ZodString;
1485
+ pattern: z.ZodString;
1486
+ action: z.ZodEnum<{
1487
+ approve: "approve";
1488
+ require_approval: "require_approval";
1489
+ block: "block";
1490
+ }>;
1491
+ owner: z.ZodEnum<{
1492
+ team: "team";
1493
+ personal: "personal";
1494
+ }>;
1495
+ position: z.ZodString;
1496
+ createdAt: z.ZodString;
1497
+ }, z.core.$strip>>;
1498
+ }, z.core.$strip>;
1499
+ export declare const policyRuleResponseSchema: z.ZodObject<{
1500
+ data: z.ZodObject<{
1501
+ id: z.ZodString;
1502
+ pattern: z.ZodString;
1503
+ action: z.ZodEnum<{
1504
+ approve: "approve";
1505
+ require_approval: "require_approval";
1506
+ block: "block";
1507
+ }>;
1508
+ owner: z.ZodEnum<{
1509
+ team: "team";
1510
+ personal: "personal";
1511
+ }>;
1512
+ position: z.ZodString;
1513
+ createdAt: z.ZodString;
1514
+ }, z.core.$strip>;
1515
+ }, z.core.$strip>;
1516
+ export declare const policyRuleDeleteResponseSchema: z.ZodObject<{
1517
+ data: z.ZodNull;
1518
+ }, z.core.$strip>;
1519
+ export declare const policyResolveResponseSchema: z.ZodObject<{
1520
+ data: z.ZodObject<{
1521
+ address: z.ZodString;
1522
+ effect: z.ZodEnum<{
1523
+ approve: "approve";
1524
+ require_approval: "require_approval";
1525
+ block: "block";
1526
+ }>;
1527
+ decidedBy: z.ZodNullable<z.ZodObject<{
1528
+ ruleId: z.ZodString;
1529
+ pattern: z.ZodString;
1530
+ owner: z.ZodEnum<{
1531
+ team: "team";
1532
+ personal: "personal";
1533
+ }>;
1534
+ }, z.core.$strip>>;
1535
+ explanation: z.ZodString;
1536
+ }, z.core.$strip>;
1537
+ }, z.core.$strip>;
1538
+ export declare const connectorRunResponseSchema: z.ZodObject<{
1539
+ data: z.ZodDiscriminatedUnion<[z.ZodObject<{
1540
+ origin: z.ZodEnum<{
1541
+ function: "function";
1542
+ zero: "zero";
1543
+ api: "api";
1544
+ dashboard: "dashboard";
1545
+ mcp: "mcp";
1546
+ cli: "cli";
1547
+ system: "system";
1548
+ }>;
1549
+ space: z.ZodNullable<z.ZodString>;
1550
+ handler: z.ZodNullable<z.ZodString>;
1551
+ visitor: z.ZodBoolean;
1552
+ id: z.ZodString;
1553
+ input: z.ZodObject<{
1554
+ kind: z.ZodEnum<{
1555
+ tool: "tool";
1556
+ code: "code";
1557
+ }>;
1558
+ address: z.ZodNullable<z.ZodString>;
1559
+ digest: z.ZodString;
1560
+ }, z.core.$strip>;
1561
+ usage: z.ZodObject<{
1562
+ toolCalls: z.ZodNumber;
1563
+ egressBytes: z.ZodNumber;
1564
+ durationMs: z.ZodNumber;
1565
+ }, z.core.$strip>;
1566
+ createdAt: z.ZodString;
1567
+ status: z.ZodLiteral<"running">;
1568
+ }, z.core.$strip>, z.ZodObject<{
1569
+ origin: z.ZodEnum<{
1570
+ function: "function";
1571
+ zero: "zero";
1572
+ api: "api";
1573
+ dashboard: "dashboard";
1574
+ mcp: "mcp";
1575
+ cli: "cli";
1576
+ system: "system";
1577
+ }>;
1578
+ space: z.ZodNullable<z.ZodString>;
1579
+ handler: z.ZodNullable<z.ZodString>;
1580
+ visitor: z.ZodBoolean;
1581
+ id: z.ZodString;
1582
+ input: z.ZodObject<{
1583
+ kind: z.ZodEnum<{
1584
+ tool: "tool";
1585
+ code: "code";
1586
+ }>;
1587
+ address: z.ZodNullable<z.ZodString>;
1588
+ digest: z.ZodString;
1589
+ }, z.core.$strip>;
1590
+ usage: z.ZodObject<{
1591
+ toolCalls: z.ZodNumber;
1592
+ egressBytes: z.ZodNumber;
1593
+ durationMs: z.ZodNumber;
1594
+ }, z.core.$strip>;
1595
+ createdAt: z.ZodString;
1596
+ status: z.ZodLiteral<"awaiting_approval">;
1597
+ approval: z.ZodObject<{
1598
+ decisionId: z.ZodNullable<z.ZodString>;
1599
+ mode: z.ZodEnum<{
1600
+ model: "model";
1601
+ human: "human";
1602
+ }>;
1603
+ address: z.ZodString;
1604
+ preview: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1605
+ reason: z.ZodEnum<{
1606
+ policy_require_approval: "policy_require_approval";
1607
+ annotation_requires_approval: "annotation_requires_approval";
1608
+ }>;
1609
+ matchedPattern: z.ZodNullable<z.ZodString>;
1610
+ approvalUrl: z.ZodString;
1611
+ expiresAt: z.ZodString;
1612
+ }, z.core.$strip>;
1613
+ }, z.core.$strip>, z.ZodObject<{
1614
+ origin: z.ZodEnum<{
1615
+ function: "function";
1616
+ zero: "zero";
1617
+ api: "api";
1618
+ dashboard: "dashboard";
1619
+ mcp: "mcp";
1620
+ cli: "cli";
1621
+ system: "system";
1622
+ }>;
1623
+ space: z.ZodNullable<z.ZodString>;
1624
+ handler: z.ZodNullable<z.ZodString>;
1625
+ visitor: z.ZodBoolean;
1626
+ id: z.ZodString;
1627
+ input: z.ZodObject<{
1628
+ kind: z.ZodEnum<{
1629
+ tool: "tool";
1630
+ code: "code";
1631
+ }>;
1632
+ address: z.ZodNullable<z.ZodString>;
1633
+ digest: z.ZodString;
1634
+ }, z.core.$strip>;
1635
+ usage: z.ZodObject<{
1636
+ toolCalls: z.ZodNumber;
1637
+ egressBytes: z.ZodNumber;
1638
+ durationMs: z.ZodNumber;
1639
+ }, z.core.$strip>;
1640
+ createdAt: z.ZodString;
1641
+ status: z.ZodLiteral<"succeeded">;
1642
+ completedAt: z.ZodString;
1643
+ result: z.ZodUnknown;
1644
+ }, z.core.$strip>, z.ZodObject<{
1645
+ origin: z.ZodEnum<{
1646
+ function: "function";
1647
+ zero: "zero";
1648
+ api: "api";
1649
+ dashboard: "dashboard";
1650
+ mcp: "mcp";
1651
+ cli: "cli";
1652
+ system: "system";
1653
+ }>;
1654
+ space: z.ZodNullable<z.ZodString>;
1655
+ handler: z.ZodNullable<z.ZodString>;
1656
+ visitor: z.ZodBoolean;
1657
+ id: z.ZodString;
1658
+ input: z.ZodObject<{
1659
+ kind: z.ZodEnum<{
1660
+ tool: "tool";
1661
+ code: "code";
1662
+ }>;
1663
+ address: z.ZodNullable<z.ZodString>;
1664
+ digest: z.ZodString;
1665
+ }, z.core.$strip>;
1666
+ usage: z.ZodObject<{
1667
+ toolCalls: z.ZodNumber;
1668
+ egressBytes: z.ZodNumber;
1669
+ durationMs: z.ZodNumber;
1670
+ }, z.core.$strip>;
1671
+ createdAt: z.ZodString;
1672
+ status: z.ZodLiteral<"failed">;
1673
+ completedAt: z.ZodString;
1674
+ error: z.ZodObject<{
1675
+ type: z.ZodString;
1676
+ title: z.ZodString;
1677
+ status: z.ZodNumber;
1678
+ detail: z.ZodString;
1679
+ code: z.ZodString;
1680
+ pointer: z.ZodOptional<z.ZodString>;
1681
+ details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1682
+ suggestions: z.ZodOptional<z.ZodArray<z.ZodString>>;
1683
+ next: z.ZodOptional<z.ZodArray<z.ZodString>>;
1684
+ requestId: z.ZodString;
1685
+ }, z.core.$strip>;
1686
+ }, z.core.$strip>, z.ZodObject<{
1687
+ origin: z.ZodEnum<{
1688
+ function: "function";
1689
+ zero: "zero";
1690
+ api: "api";
1691
+ dashboard: "dashboard";
1692
+ mcp: "mcp";
1693
+ cli: "cli";
1694
+ system: "system";
1695
+ }>;
1696
+ space: z.ZodNullable<z.ZodString>;
1697
+ handler: z.ZodNullable<z.ZodString>;
1698
+ visitor: z.ZodBoolean;
1699
+ id: z.ZodString;
1700
+ input: z.ZodObject<{
1701
+ kind: z.ZodEnum<{
1702
+ tool: "tool";
1703
+ code: "code";
1704
+ }>;
1705
+ address: z.ZodNullable<z.ZodString>;
1706
+ digest: z.ZodString;
1707
+ }, z.core.$strip>;
1708
+ usage: z.ZodObject<{
1709
+ toolCalls: z.ZodNumber;
1710
+ egressBytes: z.ZodNumber;
1711
+ durationMs: z.ZodNumber;
1712
+ }, z.core.$strip>;
1713
+ createdAt: z.ZodString;
1714
+ status: z.ZodLiteral<"expired">;
1715
+ completedAt: z.ZodString;
1716
+ }, z.core.$strip>], "status">;
1717
+ }, z.core.$strip>;
1718
+ export declare const connectorRunListResponseSchema: z.ZodObject<{
1719
+ data: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1720
+ origin: z.ZodEnum<{
1721
+ function: "function";
1722
+ zero: "zero";
1723
+ api: "api";
1724
+ dashboard: "dashboard";
1725
+ mcp: "mcp";
1726
+ cli: "cli";
1727
+ system: "system";
1728
+ }>;
1729
+ space: z.ZodNullable<z.ZodString>;
1730
+ handler: z.ZodNullable<z.ZodString>;
1731
+ visitor: z.ZodBoolean;
1732
+ id: z.ZodString;
1733
+ input: z.ZodObject<{
1734
+ kind: z.ZodEnum<{
1735
+ tool: "tool";
1736
+ code: "code";
1737
+ }>;
1738
+ address: z.ZodNullable<z.ZodString>;
1739
+ digest: z.ZodString;
1740
+ }, z.core.$strip>;
1741
+ usage: z.ZodObject<{
1742
+ toolCalls: z.ZodNumber;
1743
+ egressBytes: z.ZodNumber;
1744
+ durationMs: z.ZodNumber;
1745
+ }, z.core.$strip>;
1746
+ createdAt: z.ZodString;
1747
+ status: z.ZodLiteral<"running">;
1748
+ }, z.core.$strip>, z.ZodObject<{
1749
+ origin: z.ZodEnum<{
1750
+ function: "function";
1751
+ zero: "zero";
1752
+ api: "api";
1753
+ dashboard: "dashboard";
1754
+ mcp: "mcp";
1755
+ cli: "cli";
1756
+ system: "system";
1757
+ }>;
1758
+ space: z.ZodNullable<z.ZodString>;
1759
+ handler: z.ZodNullable<z.ZodString>;
1760
+ visitor: z.ZodBoolean;
1761
+ id: z.ZodString;
1762
+ input: z.ZodObject<{
1763
+ kind: z.ZodEnum<{
1764
+ tool: "tool";
1765
+ code: "code";
1766
+ }>;
1767
+ address: z.ZodNullable<z.ZodString>;
1768
+ digest: z.ZodString;
1769
+ }, z.core.$strip>;
1770
+ usage: z.ZodObject<{
1771
+ toolCalls: z.ZodNumber;
1772
+ egressBytes: z.ZodNumber;
1773
+ durationMs: z.ZodNumber;
1774
+ }, z.core.$strip>;
1775
+ createdAt: z.ZodString;
1776
+ status: z.ZodLiteral<"awaiting_approval">;
1777
+ approval: z.ZodObject<{
1778
+ decisionId: z.ZodNullable<z.ZodString>;
1779
+ mode: z.ZodEnum<{
1780
+ model: "model";
1781
+ human: "human";
1782
+ }>;
1783
+ address: z.ZodString;
1784
+ preview: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1785
+ reason: z.ZodEnum<{
1786
+ policy_require_approval: "policy_require_approval";
1787
+ annotation_requires_approval: "annotation_requires_approval";
1788
+ }>;
1789
+ matchedPattern: z.ZodNullable<z.ZodString>;
1790
+ approvalUrl: z.ZodString;
1791
+ expiresAt: z.ZodString;
1792
+ }, z.core.$strip>;
1793
+ }, z.core.$strip>, z.ZodObject<{
1794
+ origin: z.ZodEnum<{
1795
+ function: "function";
1796
+ zero: "zero";
1797
+ api: "api";
1798
+ dashboard: "dashboard";
1799
+ mcp: "mcp";
1800
+ cli: "cli";
1801
+ system: "system";
1802
+ }>;
1803
+ space: z.ZodNullable<z.ZodString>;
1804
+ handler: z.ZodNullable<z.ZodString>;
1805
+ visitor: z.ZodBoolean;
1806
+ id: z.ZodString;
1807
+ input: z.ZodObject<{
1808
+ kind: z.ZodEnum<{
1809
+ tool: "tool";
1810
+ code: "code";
1811
+ }>;
1812
+ address: z.ZodNullable<z.ZodString>;
1813
+ digest: z.ZodString;
1814
+ }, z.core.$strip>;
1815
+ usage: z.ZodObject<{
1816
+ toolCalls: z.ZodNumber;
1817
+ egressBytes: z.ZodNumber;
1818
+ durationMs: z.ZodNumber;
1819
+ }, z.core.$strip>;
1820
+ createdAt: z.ZodString;
1821
+ status: z.ZodLiteral<"succeeded">;
1822
+ completedAt: z.ZodString;
1823
+ result: z.ZodUnknown;
1824
+ }, z.core.$strip>, z.ZodObject<{
1825
+ origin: z.ZodEnum<{
1826
+ function: "function";
1827
+ zero: "zero";
1828
+ api: "api";
1829
+ dashboard: "dashboard";
1830
+ mcp: "mcp";
1831
+ cli: "cli";
1832
+ system: "system";
1833
+ }>;
1834
+ space: z.ZodNullable<z.ZodString>;
1835
+ handler: z.ZodNullable<z.ZodString>;
1836
+ visitor: z.ZodBoolean;
1837
+ id: z.ZodString;
1838
+ input: z.ZodObject<{
1839
+ kind: z.ZodEnum<{
1840
+ tool: "tool";
1841
+ code: "code";
1842
+ }>;
1843
+ address: z.ZodNullable<z.ZodString>;
1844
+ digest: z.ZodString;
1845
+ }, z.core.$strip>;
1846
+ usage: z.ZodObject<{
1847
+ toolCalls: z.ZodNumber;
1848
+ egressBytes: z.ZodNumber;
1849
+ durationMs: z.ZodNumber;
1850
+ }, z.core.$strip>;
1851
+ createdAt: z.ZodString;
1852
+ status: z.ZodLiteral<"failed">;
1853
+ completedAt: z.ZodString;
1854
+ error: z.ZodObject<{
1855
+ type: z.ZodString;
1856
+ title: z.ZodString;
1857
+ status: z.ZodNumber;
1858
+ detail: z.ZodString;
1859
+ code: z.ZodString;
1860
+ pointer: z.ZodOptional<z.ZodString>;
1861
+ details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1862
+ suggestions: z.ZodOptional<z.ZodArray<z.ZodString>>;
1863
+ next: z.ZodOptional<z.ZodArray<z.ZodString>>;
1864
+ requestId: z.ZodString;
1865
+ }, z.core.$strip>;
1866
+ }, z.core.$strip>, z.ZodObject<{
1867
+ origin: z.ZodEnum<{
1868
+ function: "function";
1869
+ zero: "zero";
1870
+ api: "api";
1871
+ dashboard: "dashboard";
1872
+ mcp: "mcp";
1873
+ cli: "cli";
1874
+ system: "system";
1875
+ }>;
1876
+ space: z.ZodNullable<z.ZodString>;
1877
+ handler: z.ZodNullable<z.ZodString>;
1878
+ visitor: z.ZodBoolean;
1879
+ id: z.ZodString;
1880
+ input: z.ZodObject<{
1881
+ kind: z.ZodEnum<{
1882
+ tool: "tool";
1883
+ code: "code";
1884
+ }>;
1885
+ address: z.ZodNullable<z.ZodString>;
1886
+ digest: z.ZodString;
1887
+ }, z.core.$strip>;
1888
+ usage: z.ZodObject<{
1889
+ toolCalls: z.ZodNumber;
1890
+ egressBytes: z.ZodNumber;
1891
+ durationMs: z.ZodNumber;
1892
+ }, z.core.$strip>;
1893
+ createdAt: z.ZodString;
1894
+ status: z.ZodLiteral<"expired">;
1895
+ completedAt: z.ZodString;
1896
+ }, z.core.$strip>], "status">>;
1897
+ pagination: z.ZodObject<{
1898
+ nextCursor: z.ZodNullable<z.ZodString>;
1899
+ hasMore: z.ZodBoolean;
1900
+ }, z.core.$strip>;
1901
+ }, z.core.$strip>;
1902
+ export type ConnectorSourceKind = z.infer<typeof connectorSourceKindSchema>;
1903
+ export type ConnectionOwner = z.infer<typeof connectionOwnerSchema>;
1904
+ export type ConnectionStatus = z.infer<typeof connectionStatusSchema>;
1905
+ export type ToolSafety = z.infer<typeof toolSafetySchema>;
1906
+ export type PolicyAction = z.infer<typeof policyActionSchema>;
1907
+ export type RunStatus = z.infer<typeof runStatusSchema>;
1908
+ export type RunInputKind = z.infer<typeof runInputKindSchema>;
1909
+ export type CatalogEntryKind = z.infer<typeof catalogEntryKindSchema>;
1910
+ export type AuthMethod = z.infer<typeof AuthMethodSchema>;
1911
+ export type CredentialGuidance = z.infer<typeof CredentialGuidanceSchema>;
1912
+ export type ConnectorField = z.infer<typeof ConnectorFieldSchema>;
1913
+ export type Connector = z.infer<typeof ConnectorSchema>;
1914
+ export type Connection = z.infer<typeof ConnectionSchema>;
1915
+ export type ConnectionHealth = z.infer<typeof ConnectionHealthSchema>;
1916
+ export type ConnectorTool = z.infer<typeof ToolSchema>;
1917
+ export type PolicyDecision = z.infer<typeof PolicyDecisionSchema>;
1918
+ export type PolicyRule = z.infer<typeof PolicyRuleSchema>;
1919
+ export type PolicyResolution = z.infer<typeof PolicyResolutionSchema>;
1920
+ export type PendingApproval = z.infer<typeof PendingApprovalSchema>;
1921
+ export type ConnectorRun = z.infer<typeof ConnectorRunSchema>;
1922
+ export type ConnectorRunUsage = z.infer<typeof ConnectorRunUsageSchema>;
1923
+ export type ConnectorCatalogEntry = z.infer<typeof ConnectorCatalogEntrySchema>;
1924
+ export type ConnectorDetection = z.infer<typeof ConnectorDetectionSchema>;
1925
+ export type ConnectionCreateResult = z.infer<typeof ConnectionCreateResultSchema>;
1926
+ export type ConnectorRegisterRequest = z.infer<typeof connectorRegisterSchema>;
1927
+ export type ConnectorPatchRequest = z.infer<typeof connectorPatchSchema>;
1928
+ export type ConnectorDetectRequest = z.infer<typeof connectorDetectSchema>;
1929
+ export type ConnectionCreateRequest = z.infer<typeof connectionCreateSchema>;
1930
+ export type ConnectionCompleteRequest = z.infer<typeof connectionCompleteSchema>;
1931
+ export type ConnectionPatchRequest = z.infer<typeof connectionPatchSchema>;
1932
+ export type ConnectionCredential = z.infer<typeof connectionCredentialSchema>;
1933
+ export type PolicyRuleCreateRequest = z.infer<typeof policyRuleCreateSchema>;
1934
+ export type PolicyRulePatchRequest = z.infer<typeof policyRulePatchSchema>;
1935
+ export type ConnectorRunInput = z.infer<typeof connectorRunInputSchema>;
1936
+ export type ConnectorRunCreateRequest = z.infer<typeof connectorRunCreateSchema>;
1937
+ export type ConnectorRunResumeRequest = z.infer<typeof connectorRunResumeSchema>;
1938
+ export type ConnectorCatalogQuery = z.infer<typeof connectorCatalogQuerySchema>;
1939
+ export type ConnectorListQuery = z.infer<typeof connectorListQuerySchema>;
1940
+ export type ConnectorToolListQuery = z.infer<typeof connectorToolListQuerySchema>;
1941
+ export type ConnectionListQuery = z.infer<typeof connectionListQuerySchema>;
1942
+ export type ConnectorRunListQuery = z.infer<typeof connectorRunListQuerySchema>;
1943
+ export declare const connectorRoleNameSchema: z.ZodString;
1944
+ export declare const connectorRoleSchema: z.ZodObject<{
1945
+ role: z.ZodString;
1946
+ as: z.ZodEnum<{
1947
+ team: "team";
1948
+ visitor: "visitor";
1949
+ owner: "owner";
1950
+ }>;
1951
+ connector: z.ZodOptional<z.ZodString>;
1952
+ }, z.core.$strip>;
1953
+ export type ConnectorRole = z.infer<typeof connectorRoleSchema>;
1954
+ export declare const CONNECTOR_CALL_STATE_COPY: {
1955
+ readonly ok: "Connected.";
1956
+ readonly connect_required: "Connect your account to continue.";
1957
+ readonly reconnect_required: "Reconnect your account to continue.";
1958
+ readonly approval_pending: "This action is waiting for approval.";
1959
+ readonly forbidden: "You do not have permission to use this connection.";
1960
+ readonly unbound: "The site owner needs to connect this service.";
1961
+ readonly unavailable: "This service is unavailable. Try again.";
1962
+ };
1963
+ export declare const ConnectorCallStateSchema: z.ZodObject<{
1964
+ role: z.ZodOptional<z.ZodString>;
1965
+ code: z.ZodEnum<{
1966
+ ok: "ok";
1967
+ connect_required: "connect_required";
1968
+ reconnect_required: "reconnect_required";
1969
+ approval_pending: "approval_pending";
1970
+ forbidden: "forbidden";
1971
+ unbound: "unbound";
1972
+ unavailable: "unavailable";
1973
+ }>;
1974
+ message: z.ZodString;
1975
+ runId: z.ZodOptional<z.ZodString>;
1976
+ approvalUrl: z.ZodOptional<z.ZodString>;
1977
+ connectUrl: z.ZodOptional<z.ZodString>;
1978
+ }, z.core.$strip>;
1979
+ export type ConnectorCallState = z.infer<typeof ConnectorCallStateSchema>;
1980
+ export declare class ConnectorCallError extends Error {
1981
+ readonly state: ConnectorCallState;
1982
+ constructor(state: ConnectorCallState);
1983
+ }
1984
+ export declare const spaceConnectorBindingSchema: z.ZodObject<{
1985
+ role: z.ZodString;
1986
+ as: z.ZodEnum<{
1987
+ team: "team";
1988
+ visitor: "visitor";
1989
+ owner: "owner";
1990
+ }>;
1991
+ connector: z.ZodOptional<z.ZodString>;
1992
+ connection: z.ZodNullable<z.ZodObject<{
1993
+ id: z.ZodString;
1994
+ connector: z.ZodString;
1995
+ owner: z.ZodEnum<{
1996
+ team: "team";
1997
+ personal: "personal";
1998
+ }>;
1999
+ serving: z.ZodDefault<z.ZodBoolean>;
2000
+ displayName: z.ZodString;
2001
+ description: z.ZodNullable<z.ZodString>;
2002
+ status: z.ZodEnum<{
2003
+ active: "active";
2004
+ revoked: "revoked";
2005
+ degraded: "degraded";
2006
+ pending_authorization: "pending_authorization";
2007
+ needs_reauth: "needs_reauth";
2008
+ }>;
2009
+ identityLabel: z.ZodNullable<z.ZodString>;
2010
+ credentialConfigured: z.ZodBoolean;
2011
+ authMethod: z.ZodNullable<z.ZodString>;
2012
+ scopes: z.ZodArray<z.ZodString>;
2013
+ isDefault: z.ZodBoolean;
2014
+ toolCount: z.ZodNumber;
2015
+ createdBy: z.ZodNullable<z.ZodString>;
2016
+ lastCheckedAt: z.ZodNullable<z.ZodString>;
2017
+ revokedAt: z.ZodNullable<z.ZodString>;
2018
+ createdAt: z.ZodString;
2019
+ updatedAt: z.ZodString;
2020
+ }, z.core.$strip>>;
2021
+ visitorConnections: z.ZodOptional<z.ZodObject<{
2022
+ count: z.ZodNumber;
2023
+ }, z.core.$strip>>;
2024
+ boundByUserId: z.ZodNullable<z.ZodString>;
2025
+ createdAt: z.ZodNullable<z.ZodString>;
2026
+ }, z.core.$strip>;
2027
+ export type SpaceConnectorBinding = z.infer<typeof spaceConnectorBindingSchema>;
2028
+ export declare const listSpaceConnectorBindingsResponseSchema: z.ZodObject<{
2029
+ data: z.ZodObject<{
2030
+ bindings: z.ZodArray<z.ZodObject<{
2031
+ role: z.ZodString;
2032
+ as: z.ZodEnum<{
2033
+ team: "team";
2034
+ visitor: "visitor";
2035
+ owner: "owner";
2036
+ }>;
2037
+ connector: z.ZodOptional<z.ZodString>;
2038
+ connection: z.ZodNullable<z.ZodObject<{
2039
+ id: z.ZodString;
2040
+ connector: z.ZodString;
2041
+ owner: z.ZodEnum<{
2042
+ team: "team";
2043
+ personal: "personal";
2044
+ }>;
2045
+ serving: z.ZodDefault<z.ZodBoolean>;
2046
+ displayName: z.ZodString;
2047
+ description: z.ZodNullable<z.ZodString>;
2048
+ status: z.ZodEnum<{
2049
+ active: "active";
2050
+ revoked: "revoked";
2051
+ degraded: "degraded";
2052
+ pending_authorization: "pending_authorization";
2053
+ needs_reauth: "needs_reauth";
2054
+ }>;
2055
+ identityLabel: z.ZodNullable<z.ZodString>;
2056
+ credentialConfigured: z.ZodBoolean;
2057
+ authMethod: z.ZodNullable<z.ZodString>;
2058
+ scopes: z.ZodArray<z.ZodString>;
2059
+ isDefault: z.ZodBoolean;
2060
+ toolCount: z.ZodNumber;
2061
+ createdBy: z.ZodNullable<z.ZodString>;
2062
+ lastCheckedAt: z.ZodNullable<z.ZodString>;
2063
+ revokedAt: z.ZodNullable<z.ZodString>;
2064
+ createdAt: z.ZodString;
2065
+ updatedAt: z.ZodString;
2066
+ }, z.core.$strip>>;
2067
+ visitorConnections: z.ZodOptional<z.ZodObject<{
2068
+ count: z.ZodNumber;
2069
+ }, z.core.$strip>>;
2070
+ boundByUserId: z.ZodNullable<z.ZodString>;
2071
+ createdAt: z.ZodNullable<z.ZodString>;
2072
+ }, z.core.$strip>>;
2073
+ access: z.ZodEnum<{
2074
+ team: "team";
2075
+ private: "private";
2076
+ public: "public";
2077
+ }>;
2078
+ }, z.core.$strip>;
2079
+ }, z.core.$strip>;
2080
+ export declare const bindSpaceConnectorRequestSchema: z.ZodObject<{
2081
+ connectionId: z.ZodString;
2082
+ }, z.core.$strip>;
2083
+ export declare const spaceConnectorBindingResponseSchema: z.ZodObject<{
2084
+ data: z.ZodObject<{
2085
+ role: z.ZodString;
2086
+ as: z.ZodEnum<{
2087
+ team: "team";
2088
+ visitor: "visitor";
2089
+ owner: "owner";
2090
+ }>;
2091
+ connector: z.ZodOptional<z.ZodString>;
2092
+ connection: z.ZodNullable<z.ZodObject<{
2093
+ id: z.ZodString;
2094
+ connector: z.ZodString;
2095
+ owner: z.ZodEnum<{
2096
+ team: "team";
2097
+ personal: "personal";
2098
+ }>;
2099
+ serving: z.ZodDefault<z.ZodBoolean>;
2100
+ displayName: z.ZodString;
2101
+ description: z.ZodNullable<z.ZodString>;
2102
+ status: z.ZodEnum<{
2103
+ active: "active";
2104
+ revoked: "revoked";
2105
+ degraded: "degraded";
2106
+ pending_authorization: "pending_authorization";
2107
+ needs_reauth: "needs_reauth";
2108
+ }>;
2109
+ identityLabel: z.ZodNullable<z.ZodString>;
2110
+ credentialConfigured: z.ZodBoolean;
2111
+ authMethod: z.ZodNullable<z.ZodString>;
2112
+ scopes: z.ZodArray<z.ZodString>;
2113
+ isDefault: z.ZodBoolean;
2114
+ toolCount: z.ZodNumber;
2115
+ createdBy: z.ZodNullable<z.ZodString>;
2116
+ lastCheckedAt: z.ZodNullable<z.ZodString>;
2117
+ revokedAt: z.ZodNullable<z.ZodString>;
2118
+ createdAt: z.ZodString;
2119
+ updatedAt: z.ZodString;
2120
+ }, z.core.$strip>>;
2121
+ visitorConnections: z.ZodOptional<z.ZodObject<{
2122
+ count: z.ZodNumber;
2123
+ }, z.core.$strip>>;
2124
+ boundByUserId: z.ZodNullable<z.ZodString>;
2125
+ createdAt: z.ZodNullable<z.ZodString>;
2126
+ }, z.core.$strip>;
2127
+ }, z.core.$strip>;
2128
+ export declare const unbindSpaceConnectorResponseSchema: z.ZodObject<{
2129
+ data: z.ZodNull;
2130
+ }, z.core.$strip>;
2131
+ export type ConnectorJsonValue = null | boolean | number | string | ConnectorJsonValue[] | {
2132
+ [key: string]: ConnectorJsonValue;
2133
+ };
2134
+ export declare const runtimeConnectorCallRequestSchema: z.ZodObject<{
2135
+ role: z.ZodString;
2136
+ tool: z.ZodString;
2137
+ args: z.ZodType<Record<string, ConnectorJsonValue>, unknown, z.core.$ZodTypeInternals<Record<string, ConnectorJsonValue>, unknown>>;
2138
+ visitor: z.ZodDefault<z.ZodNullable<z.ZodObject<{
2139
+ subject: z.ZodString;
2140
+ email: z.ZodOptional<z.ZodString>;
2141
+ emailVerified: z.ZodOptional<z.ZodBoolean>;
2142
+ }, z.core.$strip>>>;
2143
+ handler: z.ZodObject<{
2144
+ name: z.ZodString;
2145
+ mode: z.ZodEnum<{
2146
+ read: "read";
2147
+ write: "write";
2148
+ }>;
2149
+ callIndex: z.ZodDefault<z.ZodNumber>;
2150
+ }, z.core.$strip>;
2151
+ requestId: z.ZodOptional<z.ZodString>;
2152
+ waitMs: z.ZodDefault<z.ZodNumber>;
2153
+ }, z.core.$strip>;
2154
+ export declare const runtimeConnectorCallResponseSchema: z.ZodObject<{
2155
+ state: z.ZodObject<{
2156
+ role: z.ZodOptional<z.ZodString>;
2157
+ code: z.ZodEnum<{
2158
+ ok: "ok";
2159
+ connect_required: "connect_required";
2160
+ reconnect_required: "reconnect_required";
2161
+ approval_pending: "approval_pending";
2162
+ forbidden: "forbidden";
2163
+ unbound: "unbound";
2164
+ unavailable: "unavailable";
2165
+ }>;
2166
+ message: z.ZodString;
2167
+ runId: z.ZodOptional<z.ZodString>;
2168
+ approvalUrl: z.ZodOptional<z.ZodString>;
2169
+ connectUrl: z.ZodOptional<z.ZodString>;
2170
+ }, z.core.$strip>;
2171
+ run: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
2172
+ origin: z.ZodEnum<{
2173
+ function: "function";
2174
+ zero: "zero";
2175
+ api: "api";
2176
+ dashboard: "dashboard";
2177
+ mcp: "mcp";
2178
+ cli: "cli";
2179
+ system: "system";
2180
+ }>;
2181
+ space: z.ZodNullable<z.ZodString>;
2182
+ handler: z.ZodNullable<z.ZodString>;
2183
+ visitor: z.ZodBoolean;
2184
+ id: z.ZodString;
2185
+ input: z.ZodObject<{
2186
+ kind: z.ZodEnum<{
2187
+ tool: "tool";
2188
+ code: "code";
2189
+ }>;
2190
+ address: z.ZodNullable<z.ZodString>;
2191
+ digest: z.ZodString;
2192
+ }, z.core.$strip>;
2193
+ usage: z.ZodObject<{
2194
+ toolCalls: z.ZodNumber;
2195
+ egressBytes: z.ZodNumber;
2196
+ durationMs: z.ZodNumber;
2197
+ }, z.core.$strip>;
2198
+ createdAt: z.ZodString;
2199
+ status: z.ZodLiteral<"running">;
2200
+ }, z.core.$strip>, z.ZodObject<{
2201
+ origin: z.ZodEnum<{
2202
+ function: "function";
2203
+ zero: "zero";
2204
+ api: "api";
2205
+ dashboard: "dashboard";
2206
+ mcp: "mcp";
2207
+ cli: "cli";
2208
+ system: "system";
2209
+ }>;
2210
+ space: z.ZodNullable<z.ZodString>;
2211
+ handler: z.ZodNullable<z.ZodString>;
2212
+ visitor: z.ZodBoolean;
2213
+ id: z.ZodString;
2214
+ input: z.ZodObject<{
2215
+ kind: z.ZodEnum<{
2216
+ tool: "tool";
2217
+ code: "code";
2218
+ }>;
2219
+ address: z.ZodNullable<z.ZodString>;
2220
+ digest: z.ZodString;
2221
+ }, z.core.$strip>;
2222
+ usage: z.ZodObject<{
2223
+ toolCalls: z.ZodNumber;
2224
+ egressBytes: z.ZodNumber;
2225
+ durationMs: z.ZodNumber;
2226
+ }, z.core.$strip>;
2227
+ createdAt: z.ZodString;
2228
+ status: z.ZodLiteral<"awaiting_approval">;
2229
+ approval: z.ZodObject<{
2230
+ decisionId: z.ZodNullable<z.ZodString>;
2231
+ mode: z.ZodEnum<{
2232
+ model: "model";
2233
+ human: "human";
2234
+ }>;
2235
+ address: z.ZodString;
2236
+ preview: z.ZodRecord<z.ZodString, z.ZodUnknown>;
2237
+ reason: z.ZodEnum<{
2238
+ policy_require_approval: "policy_require_approval";
2239
+ annotation_requires_approval: "annotation_requires_approval";
2240
+ }>;
2241
+ matchedPattern: z.ZodNullable<z.ZodString>;
2242
+ approvalUrl: z.ZodString;
2243
+ expiresAt: z.ZodString;
2244
+ }, z.core.$strip>;
2245
+ }, z.core.$strip>, z.ZodObject<{
2246
+ origin: z.ZodEnum<{
2247
+ function: "function";
2248
+ zero: "zero";
2249
+ api: "api";
2250
+ dashboard: "dashboard";
2251
+ mcp: "mcp";
2252
+ cli: "cli";
2253
+ system: "system";
2254
+ }>;
2255
+ space: z.ZodNullable<z.ZodString>;
2256
+ handler: z.ZodNullable<z.ZodString>;
2257
+ visitor: z.ZodBoolean;
2258
+ id: z.ZodString;
2259
+ input: z.ZodObject<{
2260
+ kind: z.ZodEnum<{
2261
+ tool: "tool";
2262
+ code: "code";
2263
+ }>;
2264
+ address: z.ZodNullable<z.ZodString>;
2265
+ digest: z.ZodString;
2266
+ }, z.core.$strip>;
2267
+ usage: z.ZodObject<{
2268
+ toolCalls: z.ZodNumber;
2269
+ egressBytes: z.ZodNumber;
2270
+ durationMs: z.ZodNumber;
2271
+ }, z.core.$strip>;
2272
+ createdAt: z.ZodString;
2273
+ status: z.ZodLiteral<"succeeded">;
2274
+ completedAt: z.ZodString;
2275
+ result: z.ZodUnknown;
2276
+ }, z.core.$strip>, z.ZodObject<{
2277
+ origin: z.ZodEnum<{
2278
+ function: "function";
2279
+ zero: "zero";
2280
+ api: "api";
2281
+ dashboard: "dashboard";
2282
+ mcp: "mcp";
2283
+ cli: "cli";
2284
+ system: "system";
2285
+ }>;
2286
+ space: z.ZodNullable<z.ZodString>;
2287
+ handler: z.ZodNullable<z.ZodString>;
2288
+ visitor: z.ZodBoolean;
2289
+ id: z.ZodString;
2290
+ input: z.ZodObject<{
2291
+ kind: z.ZodEnum<{
2292
+ tool: "tool";
2293
+ code: "code";
2294
+ }>;
2295
+ address: z.ZodNullable<z.ZodString>;
2296
+ digest: z.ZodString;
2297
+ }, z.core.$strip>;
2298
+ usage: z.ZodObject<{
2299
+ toolCalls: z.ZodNumber;
2300
+ egressBytes: z.ZodNumber;
2301
+ durationMs: z.ZodNumber;
2302
+ }, z.core.$strip>;
2303
+ createdAt: z.ZodString;
2304
+ status: z.ZodLiteral<"failed">;
2305
+ completedAt: z.ZodString;
2306
+ error: z.ZodObject<{
2307
+ type: z.ZodString;
2308
+ title: z.ZodString;
2309
+ status: z.ZodNumber;
2310
+ detail: z.ZodString;
2311
+ code: z.ZodString;
2312
+ pointer: z.ZodOptional<z.ZodString>;
2313
+ details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2314
+ suggestions: z.ZodOptional<z.ZodArray<z.ZodString>>;
2315
+ next: z.ZodOptional<z.ZodArray<z.ZodString>>;
2316
+ requestId: z.ZodString;
2317
+ }, z.core.$strip>;
2318
+ }, z.core.$strip>, z.ZodObject<{
2319
+ origin: z.ZodEnum<{
2320
+ function: "function";
2321
+ zero: "zero";
2322
+ api: "api";
2323
+ dashboard: "dashboard";
2324
+ mcp: "mcp";
2325
+ cli: "cli";
2326
+ system: "system";
2327
+ }>;
2328
+ space: z.ZodNullable<z.ZodString>;
2329
+ handler: z.ZodNullable<z.ZodString>;
2330
+ visitor: z.ZodBoolean;
2331
+ id: z.ZodString;
2332
+ input: z.ZodObject<{
2333
+ kind: z.ZodEnum<{
2334
+ tool: "tool";
2335
+ code: "code";
2336
+ }>;
2337
+ address: z.ZodNullable<z.ZodString>;
2338
+ digest: z.ZodString;
2339
+ }, z.core.$strip>;
2340
+ usage: z.ZodObject<{
2341
+ toolCalls: z.ZodNumber;
2342
+ egressBytes: z.ZodNumber;
2343
+ durationMs: z.ZodNumber;
2344
+ }, z.core.$strip>;
2345
+ createdAt: z.ZodString;
2346
+ status: z.ZodLiteral<"expired">;
2347
+ completedAt: z.ZodString;
2348
+ }, z.core.$strip>], "status">>;
2349
+ }, z.core.$strip>;
2350
+ export declare const visitorConnectorIdentitySchema: z.ZodObject<{
2351
+ role: z.ZodString;
2352
+ visitorSubject: z.ZodString;
2353
+ }, z.core.$strip>;
2354
+ export declare const visitorConnectionStartSchema: z.ZodObject<{
2355
+ role: z.ZodString;
2356
+ visitorSubject: z.ZodString;
2357
+ origin: z.ZodURL;
2358
+ returnTo: z.ZodDefault<z.ZodString>;
2359
+ }, z.core.$strip>;
2360
+ export declare const visitorConnectionCompleteSchema: z.ZodObject<{
2361
+ role: z.ZodString;
2362
+ visitorSubject: z.ZodString;
2363
+ state: z.ZodString;
2364
+ code: z.ZodString;
2365
+ }, z.core.$strip>;
2366
+ export declare const visitorConnectionStartResponseSchema: z.ZodObject<{
2367
+ data: z.ZodObject<{
2368
+ authorizeUrl: z.ZodURL;
2369
+ }, z.core.$strip>;
2370
+ }, z.core.$strip>;
2371
+ export declare const visitorConnectionCompleteResponseSchema: z.ZodObject<{
2372
+ data: z.ZodObject<{
2373
+ returnTo: z.ZodString;
2374
+ }, z.core.$strip>;
2375
+ }, z.core.$strip>;
2376
+ export declare const visitorConnectionUsersResponseSchema: z.ZodObject<{
2377
+ data: z.ZodArray<z.ZodObject<{
2378
+ userRef: z.ZodString;
2379
+ count: z.ZodNumber;
2380
+ roles: z.ZodArray<z.ZodString>;
2381
+ }, z.core.$strip>>;
2382
+ }, z.core.$strip>;