@fideliosai/shared 2026.331.0-canary.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (230) hide show
  1. package/LICENSE +22 -0
  2. package/dist/agent-url-key.d.ts +4 -0
  3. package/dist/agent-url-key.d.ts.map +1 -0
  4. package/dist/agent-url-key.js +22 -0
  5. package/dist/agent-url-key.js.map +1 -0
  6. package/dist/api.d.ts +20 -0
  7. package/dist/api.d.ts.map +1 -0
  8. package/dist/api.js +20 -0
  9. package/dist/api.js.map +1 -0
  10. package/dist/config-schema.d.ts +905 -0
  11. package/dist/config-schema.d.ts.map +1 -0
  12. package/dist/config-schema.js +159 -0
  13. package/dist/config-schema.js.map +1 -0
  14. package/dist/constants.d.ts +224 -0
  15. package/dist/constants.d.ts.map +1 -0
  16. package/dist/constants.js +553 -0
  17. package/dist/constants.js.map +1 -0
  18. package/dist/index.d.ts +10 -0
  19. package/dist/index.d.ts.map +1 -0
  20. package/dist/index.js +9 -0
  21. package/dist/index.js.map +1 -0
  22. package/dist/project-mentions.d.ts +17 -0
  23. package/dist/project-mentions.d.ts.map +1 -0
  24. package/dist/project-mentions.js +123 -0
  25. package/dist/project-mentions.js.map +1 -0
  26. package/dist/project-mentions.test.d.ts +2 -0
  27. package/dist/project-mentions.test.d.ts.map +1 -0
  28. package/dist/project-mentions.test.js +21 -0
  29. package/dist/project-mentions.test.js.map +1 -0
  30. package/dist/project-url-key.d.ts +3 -0
  31. package/dist/project-url-key.d.ts.map +1 -0
  32. package/dist/project-url-key.js +16 -0
  33. package/dist/project-url-key.js.map +1 -0
  34. package/dist/types/access.d.ts +67 -0
  35. package/dist/types/access.d.ts.map +1 -0
  36. package/dist/types/access.js +2 -0
  37. package/dist/types/access.js.map +1 -0
  38. package/dist/types/activity.d.ts +14 -0
  39. package/dist/types/activity.d.ts.map +1 -0
  40. package/dist/types/activity.js +2 -0
  41. package/dist/types/activity.js.map +1 -0
  42. package/dist/types/adapter-skills.d.ts +31 -0
  43. package/dist/types/adapter-skills.d.ts.map +1 -0
  44. package/dist/types/adapter-skills.js +2 -0
  45. package/dist/types/adapter-skills.js.map +1 -0
  46. package/dist/types/agent.d.ts +108 -0
  47. package/dist/types/agent.d.ts.map +1 -0
  48. package/dist/types/agent.js +2 -0
  49. package/dist/types/agent.js.map +1 -0
  50. package/dist/types/approval.d.ts +26 -0
  51. package/dist/types/approval.d.ts.map +1 -0
  52. package/dist/types/approval.js +2 -0
  53. package/dist/types/approval.js.map +1 -0
  54. package/dist/types/asset.d.ts +16 -0
  55. package/dist/types/asset.d.ts.map +1 -0
  56. package/dist/types/asset.js +2 -0
  57. package/dist/types/asset.js.map +1 -0
  58. package/dist/types/budget.d.ts +86 -0
  59. package/dist/types/budget.d.ts.map +1 -0
  60. package/dist/types/budget.js +2 -0
  61. package/dist/types/budget.js.map +1 -0
  62. package/dist/types/company-portability.d.ts +276 -0
  63. package/dist/types/company-portability.d.ts.map +1 -0
  64. package/dist/types/company-portability.js +2 -0
  65. package/dist/types/company-portability.js.map +1 -0
  66. package/dist/types/company-skill.d.ts +135 -0
  67. package/dist/types/company-skill.d.ts.map +1 -0
  68. package/dist/types/company-skill.js +2 -0
  69. package/dist/types/company-skill.js.map +1 -0
  70. package/dist/types/company.d.ts +20 -0
  71. package/dist/types/company.d.ts.map +1 -0
  72. package/dist/types/company.js +2 -0
  73. package/dist/types/company.js.map +1 -0
  74. package/dist/types/cost.d.ts +106 -0
  75. package/dist/types/cost.d.ts.map +1 -0
  76. package/dist/types/cost.js +2 -0
  77. package/dist/types/cost.js.map +1 -0
  78. package/dist/types/dashboard.d.ts +28 -0
  79. package/dist/types/dashboard.d.ts.map +1 -0
  80. package/dist/types/dashboard.js +2 -0
  81. package/dist/types/dashboard.js.map +1 -0
  82. package/dist/types/finance.d.ts +57 -0
  83. package/dist/types/finance.d.ts.map +1 -0
  84. package/dist/types/finance.js +2 -0
  85. package/dist/types/finance.js.map +1 -0
  86. package/dist/types/goal.d.ts +14 -0
  87. package/dist/types/goal.d.ts.map +1 -0
  88. package/dist/types/goal.js +2 -0
  89. package/dist/types/goal.js.map +1 -0
  90. package/dist/types/heartbeat.d.ts +118 -0
  91. package/dist/types/heartbeat.d.ts.map +1 -0
  92. package/dist/types/heartbeat.js +2 -0
  93. package/dist/types/heartbeat.js.map +1 -0
  94. package/dist/types/index.d.ts +28 -0
  95. package/dist/types/index.d.ts.map +1 -0
  96. package/dist/types/index.js +2 -0
  97. package/dist/types/index.js.map +1 -0
  98. package/dist/types/instance.d.ts +15 -0
  99. package/dist/types/instance.d.ts.map +1 -0
  100. package/dist/types/instance.js +2 -0
  101. package/dist/types/instance.js.map +1 -0
  102. package/dist/types/issue.d.ts +165 -0
  103. package/dist/types/issue.d.ts.map +1 -0
  104. package/dist/types/issue.js +2 -0
  105. package/dist/types/issue.js.map +1 -0
  106. package/dist/types/live.d.ts +9 -0
  107. package/dist/types/live.d.ts.map +1 -0
  108. package/dist/types/live.js +2 -0
  109. package/dist/types/live.js.map +1 -0
  110. package/dist/types/plugin.d.ts +419 -0
  111. package/dist/types/plugin.d.ts.map +1 -0
  112. package/dist/types/plugin.js +2 -0
  113. package/dist/types/plugin.js.map +1 -0
  114. package/dist/types/project.d.ts +67 -0
  115. package/dist/types/project.d.ts.map +1 -0
  116. package/dist/types/project.js +2 -0
  117. package/dist/types/project.js.map +1 -0
  118. package/dist/types/quota.d.ts +26 -0
  119. package/dist/types/quota.d.ts.map +1 -0
  120. package/dist/types/quota.js +2 -0
  121. package/dist/types/quota.js.map +1 -0
  122. package/dist/types/routine.d.ts +113 -0
  123. package/dist/types/routine.d.ts.map +1 -0
  124. package/dist/types/routine.js +2 -0
  125. package/dist/types/routine.js.map +1 -0
  126. package/dist/types/secrets.d.ts +32 -0
  127. package/dist/types/secrets.d.ts.map +1 -0
  128. package/dist/types/secrets.js +2 -0
  129. package/dist/types/secrets.js.map +1 -0
  130. package/dist/types/sidebar-badges.d.ts +7 -0
  131. package/dist/types/sidebar-badges.d.ts.map +1 -0
  132. package/dist/types/sidebar-badges.js +2 -0
  133. package/dist/types/sidebar-badges.js.map +1 -0
  134. package/dist/types/work-product.d.ts +27 -0
  135. package/dist/types/work-product.d.ts.map +1 -0
  136. package/dist/types/work-product.js +2 -0
  137. package/dist/types/work-product.js.map +1 -0
  138. package/dist/types/workspace-operation.d.ts +26 -0
  139. package/dist/types/workspace-operation.d.ts.map +1 -0
  140. package/dist/types/workspace-operation.js +2 -0
  141. package/dist/types/workspace-operation.js.map +1 -0
  142. package/dist/types/workspace-runtime.d.ts +86 -0
  143. package/dist/types/workspace-runtime.d.ts.map +1 -0
  144. package/dist/types/workspace-runtime.js +2 -0
  145. package/dist/types/workspace-runtime.js.map +1 -0
  146. package/dist/validators/access.d.ts +136 -0
  147. package/dist/validators/access.d.ts.map +1 -0
  148. package/dist/validators/access.js +53 -0
  149. package/dist/validators/access.js.map +1 -0
  150. package/dist/validators/adapter-skills.d.ts +156 -0
  151. package/dist/validators/adapter-skills.d.ts.map +1 -0
  152. package/dist/validators/adapter-skills.js +48 -0
  153. package/dist/validators/adapter-skills.js.map +1 -0
  154. package/dist/validators/agent.d.ts +279 -0
  155. package/dist/validators/agent.d.ts.map +1 -0
  156. package/dist/validators/agent.js +85 -0
  157. package/dist/validators/agent.js.map +1 -0
  158. package/dist/validators/approval.d.ts +57 -0
  159. package/dist/validators/approval.d.ts.map +1 -0
  160. package/dist/validators/approval.js +23 -0
  161. package/dist/validators/approval.js.map +1 -0
  162. package/dist/validators/asset.d.ts +10 -0
  163. package/dist/validators/asset.d.ts.map +1 -0
  164. package/dist/validators/asset.js +11 -0
  165. package/dist/validators/asset.js.map +1 -0
  166. package/dist/validators/budget.d.ts +56 -0
  167. package/dist/validators/budget.d.ts.map +1 -0
  168. package/dist/validators/budget.js +27 -0
  169. package/dist/validators/budget.js.map +1 -0
  170. package/dist/validators/company-portability.d.ts +1656 -0
  171. package/dist/validators/company-portability.d.ts.map +1 -0
  172. package/dist/validators/company-portability.js +211 -0
  173. package/dist/validators/company-portability.js.map +1 -0
  174. package/dist/validators/company-skill.d.ts +797 -0
  175. package/dist/validators/company-skill.d.ts.map +1 -0
  176. package/dist/validators/company-skill.js +116 -0
  177. package/dist/validators/company-skill.js.map +1 -0
  178. package/dist/validators/company.d.ts +73 -0
  179. package/dist/validators/company.d.ts.map +1 -0
  180. package/dist/validators/company.js +31 -0
  181. package/dist/validators/company.js.map +1 -0
  182. package/dist/validators/cost.d.ts +92 -0
  183. package/dist/validators/cost.d.ts.map +1 -0
  184. package/dist/validators/cost.js +26 -0
  185. package/dist/validators/cost.js.map +1 -0
  186. package/dist/validators/execution-workspace.d.ts +20 -0
  187. package/dist/validators/execution-workspace.d.ts.map +1 -0
  188. package/dist/validators/execution-workspace.js +15 -0
  189. package/dist/validators/execution-workspace.js.map +1 -0
  190. package/dist/validators/finance.d.ts +129 -0
  191. package/dist/validators/finance.d.ts.map +1 -0
  192. package/dist/validators/finance.js +32 -0
  193. package/dist/validators/finance.js.map +1 -0
  194. package/dist/validators/goal.d.ts +48 -0
  195. package/dist/validators/goal.d.ts.map +1 -0
  196. package/dist/validators/goal.js +12 -0
  197. package/dist/validators/goal.js.map +1 -0
  198. package/dist/validators/index.d.ts +21 -0
  199. package/dist/validators/index.d.ts.map +1 -0
  200. package/dist/validators/index.js +21 -0
  201. package/dist/validators/index.js.map +1 -0
  202. package/dist/validators/instance.d.ts +40 -0
  203. package/dist/validators/instance.d.ts.map +1 -0
  204. package/dist/validators/instance.js +11 -0
  205. package/dist/validators/instance.js.map +1 -0
  206. package/dist/validators/issue.d.ts +427 -0
  207. package/dist/validators/issue.d.ts.map +1 -0
  208. package/dist/validators/issue.js +91 -0
  209. package/dist/validators/issue.js.map +1 -0
  210. package/dist/validators/plugin.d.ts +1173 -0
  211. package/dist/validators/plugin.d.ts.map +1 -0
  212. package/dist/validators/plugin.js +547 -0
  213. package/dist/validators/plugin.js.map +1 -0
  214. package/dist/validators/project.d.ts +583 -0
  215. package/dist/validators/project.d.ts.map +1 -0
  216. package/dist/validators/project.js +93 -0
  217. package/dist/validators/project.js.map +1 -0
  218. package/dist/validators/routine.d.ts +167 -0
  219. package/dist/validators/routine.d.ts.map +1 -0
  220. package/dist/validators/routine.js +50 -0
  221. package/dist/validators/routine.js.map +1 -0
  222. package/dist/validators/secret.d.ts +114 -0
  223. package/dist/validators/secret.d.ts.map +1 -0
  224. package/dist/validators/secret.js +35 -0
  225. package/dist/validators/secret.js.map +1 -0
  226. package/dist/validators/work-product.d.ts +105 -0
  227. package/dist/validators/work-product.d.ts.map +1 -0
  228. package/dist/validators/work-product.js +46 -0
  229. package/dist/validators/work-product.js.map +1 -0
  230. package/package.json +44 -0
@@ -0,0 +1,1656 @@
1
+ import { z } from "zod";
2
+ export declare const portabilityIncludeSchema: z.ZodObject<{
3
+ company: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
4
+ agents: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
5
+ projects: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
6
+ issues: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
7
+ skills: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
8
+ }, "strip", z.ZodTypeAny, {
9
+ company?: boolean | undefined;
10
+ agents?: boolean | undefined;
11
+ projects?: boolean | undefined;
12
+ issues?: boolean | undefined;
13
+ skills?: boolean | undefined;
14
+ }, {
15
+ company?: boolean | undefined;
16
+ agents?: boolean | undefined;
17
+ projects?: boolean | undefined;
18
+ issues?: boolean | undefined;
19
+ skills?: boolean | undefined;
20
+ }>;
21
+ export declare const portabilityEnvInputSchema: z.ZodObject<{
22
+ key: z.ZodString;
23
+ description: z.ZodNullable<z.ZodString>;
24
+ agentSlug: z.ZodNullable<z.ZodString>;
25
+ kind: z.ZodEnum<["secret", "plain"]>;
26
+ requirement: z.ZodEnum<["required", "optional"]>;
27
+ defaultValue: z.ZodNullable<z.ZodString>;
28
+ portability: z.ZodEnum<["portable", "system_dependent"]>;
29
+ }, "strip", z.ZodTypeAny, {
30
+ kind: "plain" | "secret";
31
+ description: string | null;
32
+ key: string;
33
+ agentSlug: string | null;
34
+ requirement: "required" | "optional";
35
+ defaultValue: string | null;
36
+ portability: "portable" | "system_dependent";
37
+ }, {
38
+ kind: "plain" | "secret";
39
+ description: string | null;
40
+ key: string;
41
+ agentSlug: string | null;
42
+ requirement: "required" | "optional";
43
+ defaultValue: string | null;
44
+ portability: "portable" | "system_dependent";
45
+ }>;
46
+ export declare const portabilityFileEntrySchema: z.ZodUnion<[z.ZodString, z.ZodObject<{
47
+ encoding: z.ZodLiteral<"base64">;
48
+ data: z.ZodString;
49
+ contentType: z.ZodNullable<z.ZodOptional<z.ZodString>>;
50
+ }, "strip", z.ZodTypeAny, {
51
+ encoding: "base64";
52
+ data: string;
53
+ contentType?: string | null | undefined;
54
+ }, {
55
+ encoding: "base64";
56
+ data: string;
57
+ contentType?: string | null | undefined;
58
+ }>]>;
59
+ export declare const portabilityCompanyManifestEntrySchema: z.ZodObject<{
60
+ path: z.ZodString;
61
+ name: z.ZodString;
62
+ description: z.ZodNullable<z.ZodString>;
63
+ brandColor: z.ZodNullable<z.ZodString>;
64
+ logoPath: z.ZodNullable<z.ZodString>;
65
+ requireBoardApprovalForNewAgents: z.ZodBoolean;
66
+ }, "strip", z.ZodTypeAny, {
67
+ path: string;
68
+ name: string;
69
+ description: string | null;
70
+ requireBoardApprovalForNewAgents: boolean;
71
+ brandColor: string | null;
72
+ logoPath: string | null;
73
+ }, {
74
+ path: string;
75
+ name: string;
76
+ description: string | null;
77
+ requireBoardApprovalForNewAgents: boolean;
78
+ brandColor: string | null;
79
+ logoPath: string | null;
80
+ }>;
81
+ export declare const portabilitySidebarOrderSchema: z.ZodObject<{
82
+ agents: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
83
+ projects: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
84
+ }, "strip", z.ZodTypeAny, {
85
+ agents: string[];
86
+ projects: string[];
87
+ }, {
88
+ agents?: string[] | undefined;
89
+ projects?: string[] | undefined;
90
+ }>;
91
+ export declare const portabilityAgentManifestEntrySchema: z.ZodObject<{
92
+ slug: z.ZodString;
93
+ name: z.ZodString;
94
+ path: z.ZodString;
95
+ skills: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
96
+ role: z.ZodString;
97
+ title: z.ZodNullable<z.ZodString>;
98
+ icon: z.ZodNullable<z.ZodString>;
99
+ capabilities: z.ZodNullable<z.ZodString>;
100
+ reportsToSlug: z.ZodNullable<z.ZodString>;
101
+ adapterType: z.ZodString;
102
+ adapterConfig: z.ZodRecord<z.ZodString, z.ZodUnknown>;
103
+ runtimeConfig: z.ZodRecord<z.ZodString, z.ZodUnknown>;
104
+ permissions: z.ZodRecord<z.ZodString, z.ZodUnknown>;
105
+ budgetMonthlyCents: z.ZodNumber;
106
+ metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
107
+ }, "strip", z.ZodTypeAny, {
108
+ path: string;
109
+ name: string;
110
+ budgetMonthlyCents: number;
111
+ slug: string;
112
+ metadata: Record<string, unknown> | null;
113
+ adapterType: string;
114
+ skills: string[];
115
+ role: string;
116
+ title: string | null;
117
+ icon: string | null;
118
+ capabilities: string | null;
119
+ reportsToSlug: string | null;
120
+ adapterConfig: Record<string, unknown>;
121
+ runtimeConfig: Record<string, unknown>;
122
+ permissions: Record<string, unknown>;
123
+ }, {
124
+ path: string;
125
+ name: string;
126
+ budgetMonthlyCents: number;
127
+ slug: string;
128
+ metadata: Record<string, unknown> | null;
129
+ adapterType: string;
130
+ role: string;
131
+ title: string | null;
132
+ icon: string | null;
133
+ capabilities: string | null;
134
+ reportsToSlug: string | null;
135
+ adapterConfig: Record<string, unknown>;
136
+ runtimeConfig: Record<string, unknown>;
137
+ permissions: Record<string, unknown>;
138
+ skills?: string[] | undefined;
139
+ }>;
140
+ export declare const portabilitySkillManifestEntrySchema: z.ZodObject<{
141
+ key: z.ZodString;
142
+ slug: z.ZodString;
143
+ name: z.ZodString;
144
+ path: z.ZodString;
145
+ description: z.ZodNullable<z.ZodString>;
146
+ sourceType: z.ZodString;
147
+ sourceLocator: z.ZodNullable<z.ZodString>;
148
+ sourceRef: z.ZodNullable<z.ZodString>;
149
+ trustLevel: z.ZodNullable<z.ZodString>;
150
+ compatibility: z.ZodNullable<z.ZodString>;
151
+ metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
152
+ fileInventory: z.ZodDefault<z.ZodArray<z.ZodObject<{
153
+ path: z.ZodString;
154
+ kind: z.ZodString;
155
+ }, "strip", z.ZodTypeAny, {
156
+ path: string;
157
+ kind: string;
158
+ }, {
159
+ path: string;
160
+ kind: string;
161
+ }>, "many">>;
162
+ }, "strip", z.ZodTypeAny, {
163
+ path: string;
164
+ name: string;
165
+ description: string | null;
166
+ key: string;
167
+ slug: string;
168
+ sourceType: string;
169
+ sourceLocator: string | null;
170
+ sourceRef: string | null;
171
+ trustLevel: string | null;
172
+ compatibility: string | null;
173
+ fileInventory: {
174
+ path: string;
175
+ kind: string;
176
+ }[];
177
+ metadata: Record<string, unknown> | null;
178
+ }, {
179
+ path: string;
180
+ name: string;
181
+ description: string | null;
182
+ key: string;
183
+ slug: string;
184
+ sourceType: string;
185
+ sourceLocator: string | null;
186
+ sourceRef: string | null;
187
+ trustLevel: string | null;
188
+ compatibility: string | null;
189
+ metadata: Record<string, unknown> | null;
190
+ fileInventory?: {
191
+ path: string;
192
+ kind: string;
193
+ }[] | undefined;
194
+ }>;
195
+ export declare const portabilityProjectManifestEntrySchema: z.ZodObject<{
196
+ slug: z.ZodString;
197
+ name: z.ZodString;
198
+ path: z.ZodString;
199
+ description: z.ZodNullable<z.ZodString>;
200
+ ownerAgentSlug: z.ZodNullable<z.ZodString>;
201
+ leadAgentSlug: z.ZodNullable<z.ZodString>;
202
+ targetDate: z.ZodNullable<z.ZodString>;
203
+ color: z.ZodNullable<z.ZodString>;
204
+ status: z.ZodNullable<z.ZodString>;
205
+ executionWorkspacePolicy: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
206
+ workspaces: z.ZodDefault<z.ZodArray<z.ZodObject<{
207
+ key: z.ZodString;
208
+ name: z.ZodString;
209
+ sourceType: z.ZodNullable<z.ZodString>;
210
+ repoUrl: z.ZodNullable<z.ZodString>;
211
+ repoRef: z.ZodNullable<z.ZodString>;
212
+ defaultRef: z.ZodNullable<z.ZodString>;
213
+ visibility: z.ZodNullable<z.ZodString>;
214
+ setupCommand: z.ZodNullable<z.ZodString>;
215
+ cleanupCommand: z.ZodNullable<z.ZodString>;
216
+ metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
217
+ isPrimary: z.ZodBoolean;
218
+ }, "strip", z.ZodTypeAny, {
219
+ name: string;
220
+ key: string;
221
+ sourceType: string | null;
222
+ metadata: Record<string, unknown> | null;
223
+ repoUrl: string | null;
224
+ repoRef: string | null;
225
+ defaultRef: string | null;
226
+ visibility: string | null;
227
+ setupCommand: string | null;
228
+ cleanupCommand: string | null;
229
+ isPrimary: boolean;
230
+ }, {
231
+ name: string;
232
+ key: string;
233
+ sourceType: string | null;
234
+ metadata: Record<string, unknown> | null;
235
+ repoUrl: string | null;
236
+ repoRef: string | null;
237
+ defaultRef: string | null;
238
+ visibility: string | null;
239
+ setupCommand: string | null;
240
+ cleanupCommand: string | null;
241
+ isPrimary: boolean;
242
+ }>, "many">>;
243
+ metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
244
+ }, "strip", z.ZodTypeAny, {
245
+ status: string | null;
246
+ path: string;
247
+ name: string;
248
+ description: string | null;
249
+ slug: string;
250
+ metadata: Record<string, unknown> | null;
251
+ ownerAgentSlug: string | null;
252
+ leadAgentSlug: string | null;
253
+ targetDate: string | null;
254
+ color: string | null;
255
+ executionWorkspacePolicy: Record<string, unknown> | null;
256
+ workspaces: {
257
+ name: string;
258
+ key: string;
259
+ sourceType: string | null;
260
+ metadata: Record<string, unknown> | null;
261
+ repoUrl: string | null;
262
+ repoRef: string | null;
263
+ defaultRef: string | null;
264
+ visibility: string | null;
265
+ setupCommand: string | null;
266
+ cleanupCommand: string | null;
267
+ isPrimary: boolean;
268
+ }[];
269
+ }, {
270
+ status: string | null;
271
+ path: string;
272
+ name: string;
273
+ description: string | null;
274
+ slug: string;
275
+ metadata: Record<string, unknown> | null;
276
+ ownerAgentSlug: string | null;
277
+ leadAgentSlug: string | null;
278
+ targetDate: string | null;
279
+ color: string | null;
280
+ executionWorkspacePolicy: Record<string, unknown> | null;
281
+ workspaces?: {
282
+ name: string;
283
+ key: string;
284
+ sourceType: string | null;
285
+ metadata: Record<string, unknown> | null;
286
+ repoUrl: string | null;
287
+ repoRef: string | null;
288
+ defaultRef: string | null;
289
+ visibility: string | null;
290
+ setupCommand: string | null;
291
+ cleanupCommand: string | null;
292
+ isPrimary: boolean;
293
+ }[] | undefined;
294
+ }>;
295
+ export declare const portabilityIssueRoutineTriggerManifestEntrySchema: z.ZodObject<{
296
+ kind: z.ZodString;
297
+ label: z.ZodNullable<z.ZodString>;
298
+ enabled: z.ZodBoolean;
299
+ cronExpression: z.ZodNullable<z.ZodString>;
300
+ timezone: z.ZodNullable<z.ZodString>;
301
+ signingMode: z.ZodNullable<z.ZodString>;
302
+ replayWindowSec: z.ZodNullable<z.ZodNumber>;
303
+ }, "strip", z.ZodTypeAny, {
304
+ enabled: boolean;
305
+ kind: string;
306
+ label: string | null;
307
+ cronExpression: string | null;
308
+ timezone: string | null;
309
+ signingMode: string | null;
310
+ replayWindowSec: number | null;
311
+ }, {
312
+ enabled: boolean;
313
+ kind: string;
314
+ label: string | null;
315
+ cronExpression: string | null;
316
+ timezone: string | null;
317
+ signingMode: string | null;
318
+ replayWindowSec: number | null;
319
+ }>;
320
+ export declare const portabilityIssueRoutineManifestEntrySchema: z.ZodObject<{
321
+ concurrencyPolicy: z.ZodNullable<z.ZodString>;
322
+ catchUpPolicy: z.ZodNullable<z.ZodString>;
323
+ triggers: z.ZodDefault<z.ZodArray<z.ZodObject<{
324
+ kind: z.ZodString;
325
+ label: z.ZodNullable<z.ZodString>;
326
+ enabled: z.ZodBoolean;
327
+ cronExpression: z.ZodNullable<z.ZodString>;
328
+ timezone: z.ZodNullable<z.ZodString>;
329
+ signingMode: z.ZodNullable<z.ZodString>;
330
+ replayWindowSec: z.ZodNullable<z.ZodNumber>;
331
+ }, "strip", z.ZodTypeAny, {
332
+ enabled: boolean;
333
+ kind: string;
334
+ label: string | null;
335
+ cronExpression: string | null;
336
+ timezone: string | null;
337
+ signingMode: string | null;
338
+ replayWindowSec: number | null;
339
+ }, {
340
+ enabled: boolean;
341
+ kind: string;
342
+ label: string | null;
343
+ cronExpression: string | null;
344
+ timezone: string | null;
345
+ signingMode: string | null;
346
+ replayWindowSec: number | null;
347
+ }>, "many">>;
348
+ }, "strip", z.ZodTypeAny, {
349
+ concurrencyPolicy: string | null;
350
+ catchUpPolicy: string | null;
351
+ triggers: {
352
+ enabled: boolean;
353
+ kind: string;
354
+ label: string | null;
355
+ cronExpression: string | null;
356
+ timezone: string | null;
357
+ signingMode: string | null;
358
+ replayWindowSec: number | null;
359
+ }[];
360
+ }, {
361
+ concurrencyPolicy: string | null;
362
+ catchUpPolicy: string | null;
363
+ triggers?: {
364
+ enabled: boolean;
365
+ kind: string;
366
+ label: string | null;
367
+ cronExpression: string | null;
368
+ timezone: string | null;
369
+ signingMode: string | null;
370
+ replayWindowSec: number | null;
371
+ }[] | undefined;
372
+ }>;
373
+ export declare const portabilityIssueManifestEntrySchema: z.ZodObject<{
374
+ slug: z.ZodString;
375
+ identifier: z.ZodNullable<z.ZodString>;
376
+ title: z.ZodString;
377
+ path: z.ZodString;
378
+ projectSlug: z.ZodNullable<z.ZodString>;
379
+ projectWorkspaceKey: z.ZodNullable<z.ZodString>;
380
+ assigneeAgentSlug: z.ZodNullable<z.ZodString>;
381
+ description: z.ZodNullable<z.ZodString>;
382
+ recurring: z.ZodDefault<z.ZodBoolean>;
383
+ routine: z.ZodNullable<z.ZodObject<{
384
+ concurrencyPolicy: z.ZodNullable<z.ZodString>;
385
+ catchUpPolicy: z.ZodNullable<z.ZodString>;
386
+ triggers: z.ZodDefault<z.ZodArray<z.ZodObject<{
387
+ kind: z.ZodString;
388
+ label: z.ZodNullable<z.ZodString>;
389
+ enabled: z.ZodBoolean;
390
+ cronExpression: z.ZodNullable<z.ZodString>;
391
+ timezone: z.ZodNullable<z.ZodString>;
392
+ signingMode: z.ZodNullable<z.ZodString>;
393
+ replayWindowSec: z.ZodNullable<z.ZodNumber>;
394
+ }, "strip", z.ZodTypeAny, {
395
+ enabled: boolean;
396
+ kind: string;
397
+ label: string | null;
398
+ cronExpression: string | null;
399
+ timezone: string | null;
400
+ signingMode: string | null;
401
+ replayWindowSec: number | null;
402
+ }, {
403
+ enabled: boolean;
404
+ kind: string;
405
+ label: string | null;
406
+ cronExpression: string | null;
407
+ timezone: string | null;
408
+ signingMode: string | null;
409
+ replayWindowSec: number | null;
410
+ }>, "many">>;
411
+ }, "strip", z.ZodTypeAny, {
412
+ concurrencyPolicy: string | null;
413
+ catchUpPolicy: string | null;
414
+ triggers: {
415
+ enabled: boolean;
416
+ kind: string;
417
+ label: string | null;
418
+ cronExpression: string | null;
419
+ timezone: string | null;
420
+ signingMode: string | null;
421
+ replayWindowSec: number | null;
422
+ }[];
423
+ }, {
424
+ concurrencyPolicy: string | null;
425
+ catchUpPolicy: string | null;
426
+ triggers?: {
427
+ enabled: boolean;
428
+ kind: string;
429
+ label: string | null;
430
+ cronExpression: string | null;
431
+ timezone: string | null;
432
+ signingMode: string | null;
433
+ replayWindowSec: number | null;
434
+ }[] | undefined;
435
+ }>>;
436
+ legacyRecurrence: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
437
+ status: z.ZodNullable<z.ZodString>;
438
+ priority: z.ZodNullable<z.ZodString>;
439
+ labelIds: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
440
+ billingCode: z.ZodNullable<z.ZodString>;
441
+ executionWorkspaceSettings: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
442
+ assigneeAdapterOverrides: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
443
+ metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
444
+ }, "strip", z.ZodTypeAny, {
445
+ status: string | null;
446
+ path: string;
447
+ description: string | null;
448
+ slug: string;
449
+ metadata: Record<string, unknown> | null;
450
+ title: string;
451
+ identifier: string | null;
452
+ projectSlug: string | null;
453
+ projectWorkspaceKey: string | null;
454
+ assigneeAgentSlug: string | null;
455
+ recurring: boolean;
456
+ routine: {
457
+ concurrencyPolicy: string | null;
458
+ catchUpPolicy: string | null;
459
+ triggers: {
460
+ enabled: boolean;
461
+ kind: string;
462
+ label: string | null;
463
+ cronExpression: string | null;
464
+ timezone: string | null;
465
+ signingMode: string | null;
466
+ replayWindowSec: number | null;
467
+ }[];
468
+ } | null;
469
+ legacyRecurrence: Record<string, unknown> | null;
470
+ priority: string | null;
471
+ labelIds: string[];
472
+ billingCode: string | null;
473
+ executionWorkspaceSettings: Record<string, unknown> | null;
474
+ assigneeAdapterOverrides: Record<string, unknown> | null;
475
+ }, {
476
+ status: string | null;
477
+ path: string;
478
+ description: string | null;
479
+ slug: string;
480
+ metadata: Record<string, unknown> | null;
481
+ title: string;
482
+ identifier: string | null;
483
+ projectSlug: string | null;
484
+ projectWorkspaceKey: string | null;
485
+ assigneeAgentSlug: string | null;
486
+ routine: {
487
+ concurrencyPolicy: string | null;
488
+ catchUpPolicy: string | null;
489
+ triggers?: {
490
+ enabled: boolean;
491
+ kind: string;
492
+ label: string | null;
493
+ cronExpression: string | null;
494
+ timezone: string | null;
495
+ signingMode: string | null;
496
+ replayWindowSec: number | null;
497
+ }[] | undefined;
498
+ } | null;
499
+ legacyRecurrence: Record<string, unknown> | null;
500
+ priority: string | null;
501
+ billingCode: string | null;
502
+ executionWorkspaceSettings: Record<string, unknown> | null;
503
+ assigneeAdapterOverrides: Record<string, unknown> | null;
504
+ recurring?: boolean | undefined;
505
+ labelIds?: string[] | undefined;
506
+ }>;
507
+ export declare const portabilityManifestSchema: z.ZodObject<{
508
+ schemaVersion: z.ZodNumber;
509
+ generatedAt: z.ZodString;
510
+ source: z.ZodNullable<z.ZodObject<{
511
+ companyId: z.ZodString;
512
+ companyName: z.ZodString;
513
+ }, "strip", z.ZodTypeAny, {
514
+ companyId: string;
515
+ companyName: string;
516
+ }, {
517
+ companyId: string;
518
+ companyName: string;
519
+ }>>;
520
+ includes: z.ZodObject<{
521
+ company: z.ZodBoolean;
522
+ agents: z.ZodBoolean;
523
+ projects: z.ZodBoolean;
524
+ issues: z.ZodBoolean;
525
+ skills: z.ZodBoolean;
526
+ }, "strip", z.ZodTypeAny, {
527
+ company: boolean;
528
+ agents: boolean;
529
+ projects: boolean;
530
+ issues: boolean;
531
+ skills: boolean;
532
+ }, {
533
+ company: boolean;
534
+ agents: boolean;
535
+ projects: boolean;
536
+ issues: boolean;
537
+ skills: boolean;
538
+ }>;
539
+ company: z.ZodNullable<z.ZodObject<{
540
+ path: z.ZodString;
541
+ name: z.ZodString;
542
+ description: z.ZodNullable<z.ZodString>;
543
+ brandColor: z.ZodNullable<z.ZodString>;
544
+ logoPath: z.ZodNullable<z.ZodString>;
545
+ requireBoardApprovalForNewAgents: z.ZodBoolean;
546
+ }, "strip", z.ZodTypeAny, {
547
+ path: string;
548
+ name: string;
549
+ description: string | null;
550
+ requireBoardApprovalForNewAgents: boolean;
551
+ brandColor: string | null;
552
+ logoPath: string | null;
553
+ }, {
554
+ path: string;
555
+ name: string;
556
+ description: string | null;
557
+ requireBoardApprovalForNewAgents: boolean;
558
+ brandColor: string | null;
559
+ logoPath: string | null;
560
+ }>>;
561
+ sidebar: z.ZodNullable<z.ZodObject<{
562
+ agents: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
563
+ projects: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
564
+ }, "strip", z.ZodTypeAny, {
565
+ agents: string[];
566
+ projects: string[];
567
+ }, {
568
+ agents?: string[] | undefined;
569
+ projects?: string[] | undefined;
570
+ }>>;
571
+ agents: z.ZodArray<z.ZodObject<{
572
+ slug: z.ZodString;
573
+ name: z.ZodString;
574
+ path: z.ZodString;
575
+ skills: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
576
+ role: z.ZodString;
577
+ title: z.ZodNullable<z.ZodString>;
578
+ icon: z.ZodNullable<z.ZodString>;
579
+ capabilities: z.ZodNullable<z.ZodString>;
580
+ reportsToSlug: z.ZodNullable<z.ZodString>;
581
+ adapterType: z.ZodString;
582
+ adapterConfig: z.ZodRecord<z.ZodString, z.ZodUnknown>;
583
+ runtimeConfig: z.ZodRecord<z.ZodString, z.ZodUnknown>;
584
+ permissions: z.ZodRecord<z.ZodString, z.ZodUnknown>;
585
+ budgetMonthlyCents: z.ZodNumber;
586
+ metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
587
+ }, "strip", z.ZodTypeAny, {
588
+ path: string;
589
+ name: string;
590
+ budgetMonthlyCents: number;
591
+ slug: string;
592
+ metadata: Record<string, unknown> | null;
593
+ adapterType: string;
594
+ skills: string[];
595
+ role: string;
596
+ title: string | null;
597
+ icon: string | null;
598
+ capabilities: string | null;
599
+ reportsToSlug: string | null;
600
+ adapterConfig: Record<string, unknown>;
601
+ runtimeConfig: Record<string, unknown>;
602
+ permissions: Record<string, unknown>;
603
+ }, {
604
+ path: string;
605
+ name: string;
606
+ budgetMonthlyCents: number;
607
+ slug: string;
608
+ metadata: Record<string, unknown> | null;
609
+ adapterType: string;
610
+ role: string;
611
+ title: string | null;
612
+ icon: string | null;
613
+ capabilities: string | null;
614
+ reportsToSlug: string | null;
615
+ adapterConfig: Record<string, unknown>;
616
+ runtimeConfig: Record<string, unknown>;
617
+ permissions: Record<string, unknown>;
618
+ skills?: string[] | undefined;
619
+ }>, "many">;
620
+ skills: z.ZodDefault<z.ZodArray<z.ZodObject<{
621
+ key: z.ZodString;
622
+ slug: z.ZodString;
623
+ name: z.ZodString;
624
+ path: z.ZodString;
625
+ description: z.ZodNullable<z.ZodString>;
626
+ sourceType: z.ZodString;
627
+ sourceLocator: z.ZodNullable<z.ZodString>;
628
+ sourceRef: z.ZodNullable<z.ZodString>;
629
+ trustLevel: z.ZodNullable<z.ZodString>;
630
+ compatibility: z.ZodNullable<z.ZodString>;
631
+ metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
632
+ fileInventory: z.ZodDefault<z.ZodArray<z.ZodObject<{
633
+ path: z.ZodString;
634
+ kind: z.ZodString;
635
+ }, "strip", z.ZodTypeAny, {
636
+ path: string;
637
+ kind: string;
638
+ }, {
639
+ path: string;
640
+ kind: string;
641
+ }>, "many">>;
642
+ }, "strip", z.ZodTypeAny, {
643
+ path: string;
644
+ name: string;
645
+ description: string | null;
646
+ key: string;
647
+ slug: string;
648
+ sourceType: string;
649
+ sourceLocator: string | null;
650
+ sourceRef: string | null;
651
+ trustLevel: string | null;
652
+ compatibility: string | null;
653
+ fileInventory: {
654
+ path: string;
655
+ kind: string;
656
+ }[];
657
+ metadata: Record<string, unknown> | null;
658
+ }, {
659
+ path: string;
660
+ name: string;
661
+ description: string | null;
662
+ key: string;
663
+ slug: string;
664
+ sourceType: string;
665
+ sourceLocator: string | null;
666
+ sourceRef: string | null;
667
+ trustLevel: string | null;
668
+ compatibility: string | null;
669
+ metadata: Record<string, unknown> | null;
670
+ fileInventory?: {
671
+ path: string;
672
+ kind: string;
673
+ }[] | undefined;
674
+ }>, "many">>;
675
+ projects: z.ZodDefault<z.ZodArray<z.ZodObject<{
676
+ slug: z.ZodString;
677
+ name: z.ZodString;
678
+ path: z.ZodString;
679
+ description: z.ZodNullable<z.ZodString>;
680
+ ownerAgentSlug: z.ZodNullable<z.ZodString>;
681
+ leadAgentSlug: z.ZodNullable<z.ZodString>;
682
+ targetDate: z.ZodNullable<z.ZodString>;
683
+ color: z.ZodNullable<z.ZodString>;
684
+ status: z.ZodNullable<z.ZodString>;
685
+ executionWorkspacePolicy: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
686
+ workspaces: z.ZodDefault<z.ZodArray<z.ZodObject<{
687
+ key: z.ZodString;
688
+ name: z.ZodString;
689
+ sourceType: z.ZodNullable<z.ZodString>;
690
+ repoUrl: z.ZodNullable<z.ZodString>;
691
+ repoRef: z.ZodNullable<z.ZodString>;
692
+ defaultRef: z.ZodNullable<z.ZodString>;
693
+ visibility: z.ZodNullable<z.ZodString>;
694
+ setupCommand: z.ZodNullable<z.ZodString>;
695
+ cleanupCommand: z.ZodNullable<z.ZodString>;
696
+ metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
697
+ isPrimary: z.ZodBoolean;
698
+ }, "strip", z.ZodTypeAny, {
699
+ name: string;
700
+ key: string;
701
+ sourceType: string | null;
702
+ metadata: Record<string, unknown> | null;
703
+ repoUrl: string | null;
704
+ repoRef: string | null;
705
+ defaultRef: string | null;
706
+ visibility: string | null;
707
+ setupCommand: string | null;
708
+ cleanupCommand: string | null;
709
+ isPrimary: boolean;
710
+ }, {
711
+ name: string;
712
+ key: string;
713
+ sourceType: string | null;
714
+ metadata: Record<string, unknown> | null;
715
+ repoUrl: string | null;
716
+ repoRef: string | null;
717
+ defaultRef: string | null;
718
+ visibility: string | null;
719
+ setupCommand: string | null;
720
+ cleanupCommand: string | null;
721
+ isPrimary: boolean;
722
+ }>, "many">>;
723
+ metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
724
+ }, "strip", z.ZodTypeAny, {
725
+ status: string | null;
726
+ path: string;
727
+ name: string;
728
+ description: string | null;
729
+ slug: string;
730
+ metadata: Record<string, unknown> | null;
731
+ ownerAgentSlug: string | null;
732
+ leadAgentSlug: string | null;
733
+ targetDate: string | null;
734
+ color: string | null;
735
+ executionWorkspacePolicy: Record<string, unknown> | null;
736
+ workspaces: {
737
+ name: string;
738
+ key: string;
739
+ sourceType: string | null;
740
+ metadata: Record<string, unknown> | null;
741
+ repoUrl: string | null;
742
+ repoRef: string | null;
743
+ defaultRef: string | null;
744
+ visibility: string | null;
745
+ setupCommand: string | null;
746
+ cleanupCommand: string | null;
747
+ isPrimary: boolean;
748
+ }[];
749
+ }, {
750
+ status: string | null;
751
+ path: string;
752
+ name: string;
753
+ description: string | null;
754
+ slug: string;
755
+ metadata: Record<string, unknown> | null;
756
+ ownerAgentSlug: string | null;
757
+ leadAgentSlug: string | null;
758
+ targetDate: string | null;
759
+ color: string | null;
760
+ executionWorkspacePolicy: Record<string, unknown> | null;
761
+ workspaces?: {
762
+ name: string;
763
+ key: string;
764
+ sourceType: string | null;
765
+ metadata: Record<string, unknown> | null;
766
+ repoUrl: string | null;
767
+ repoRef: string | null;
768
+ defaultRef: string | null;
769
+ visibility: string | null;
770
+ setupCommand: string | null;
771
+ cleanupCommand: string | null;
772
+ isPrimary: boolean;
773
+ }[] | undefined;
774
+ }>, "many">>;
775
+ issues: z.ZodDefault<z.ZodArray<z.ZodObject<{
776
+ slug: z.ZodString;
777
+ identifier: z.ZodNullable<z.ZodString>;
778
+ title: z.ZodString;
779
+ path: z.ZodString;
780
+ projectSlug: z.ZodNullable<z.ZodString>;
781
+ projectWorkspaceKey: z.ZodNullable<z.ZodString>;
782
+ assigneeAgentSlug: z.ZodNullable<z.ZodString>;
783
+ description: z.ZodNullable<z.ZodString>;
784
+ recurring: z.ZodDefault<z.ZodBoolean>;
785
+ routine: z.ZodNullable<z.ZodObject<{
786
+ concurrencyPolicy: z.ZodNullable<z.ZodString>;
787
+ catchUpPolicy: z.ZodNullable<z.ZodString>;
788
+ triggers: z.ZodDefault<z.ZodArray<z.ZodObject<{
789
+ kind: z.ZodString;
790
+ label: z.ZodNullable<z.ZodString>;
791
+ enabled: z.ZodBoolean;
792
+ cronExpression: z.ZodNullable<z.ZodString>;
793
+ timezone: z.ZodNullable<z.ZodString>;
794
+ signingMode: z.ZodNullable<z.ZodString>;
795
+ replayWindowSec: z.ZodNullable<z.ZodNumber>;
796
+ }, "strip", z.ZodTypeAny, {
797
+ enabled: boolean;
798
+ kind: string;
799
+ label: string | null;
800
+ cronExpression: string | null;
801
+ timezone: string | null;
802
+ signingMode: string | null;
803
+ replayWindowSec: number | null;
804
+ }, {
805
+ enabled: boolean;
806
+ kind: string;
807
+ label: string | null;
808
+ cronExpression: string | null;
809
+ timezone: string | null;
810
+ signingMode: string | null;
811
+ replayWindowSec: number | null;
812
+ }>, "many">>;
813
+ }, "strip", z.ZodTypeAny, {
814
+ concurrencyPolicy: string | null;
815
+ catchUpPolicy: string | null;
816
+ triggers: {
817
+ enabled: boolean;
818
+ kind: string;
819
+ label: string | null;
820
+ cronExpression: string | null;
821
+ timezone: string | null;
822
+ signingMode: string | null;
823
+ replayWindowSec: number | null;
824
+ }[];
825
+ }, {
826
+ concurrencyPolicy: string | null;
827
+ catchUpPolicy: string | null;
828
+ triggers?: {
829
+ enabled: boolean;
830
+ kind: string;
831
+ label: string | null;
832
+ cronExpression: string | null;
833
+ timezone: string | null;
834
+ signingMode: string | null;
835
+ replayWindowSec: number | null;
836
+ }[] | undefined;
837
+ }>>;
838
+ legacyRecurrence: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
839
+ status: z.ZodNullable<z.ZodString>;
840
+ priority: z.ZodNullable<z.ZodString>;
841
+ labelIds: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
842
+ billingCode: z.ZodNullable<z.ZodString>;
843
+ executionWorkspaceSettings: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
844
+ assigneeAdapterOverrides: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
845
+ metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
846
+ }, "strip", z.ZodTypeAny, {
847
+ status: string | null;
848
+ path: string;
849
+ description: string | null;
850
+ slug: string;
851
+ metadata: Record<string, unknown> | null;
852
+ title: string;
853
+ identifier: string | null;
854
+ projectSlug: string | null;
855
+ projectWorkspaceKey: string | null;
856
+ assigneeAgentSlug: string | null;
857
+ recurring: boolean;
858
+ routine: {
859
+ concurrencyPolicy: string | null;
860
+ catchUpPolicy: string | null;
861
+ triggers: {
862
+ enabled: boolean;
863
+ kind: string;
864
+ label: string | null;
865
+ cronExpression: string | null;
866
+ timezone: string | null;
867
+ signingMode: string | null;
868
+ replayWindowSec: number | null;
869
+ }[];
870
+ } | null;
871
+ legacyRecurrence: Record<string, unknown> | null;
872
+ priority: string | null;
873
+ labelIds: string[];
874
+ billingCode: string | null;
875
+ executionWorkspaceSettings: Record<string, unknown> | null;
876
+ assigneeAdapterOverrides: Record<string, unknown> | null;
877
+ }, {
878
+ status: string | null;
879
+ path: string;
880
+ description: string | null;
881
+ slug: string;
882
+ metadata: Record<string, unknown> | null;
883
+ title: string;
884
+ identifier: string | null;
885
+ projectSlug: string | null;
886
+ projectWorkspaceKey: string | null;
887
+ assigneeAgentSlug: string | null;
888
+ routine: {
889
+ concurrencyPolicy: string | null;
890
+ catchUpPolicy: string | null;
891
+ triggers?: {
892
+ enabled: boolean;
893
+ kind: string;
894
+ label: string | null;
895
+ cronExpression: string | null;
896
+ timezone: string | null;
897
+ signingMode: string | null;
898
+ replayWindowSec: number | null;
899
+ }[] | undefined;
900
+ } | null;
901
+ legacyRecurrence: Record<string, unknown> | null;
902
+ priority: string | null;
903
+ billingCode: string | null;
904
+ executionWorkspaceSettings: Record<string, unknown> | null;
905
+ assigneeAdapterOverrides: Record<string, unknown> | null;
906
+ recurring?: boolean | undefined;
907
+ labelIds?: string[] | undefined;
908
+ }>, "many">>;
909
+ envInputs: z.ZodDefault<z.ZodArray<z.ZodObject<{
910
+ key: z.ZodString;
911
+ description: z.ZodNullable<z.ZodString>;
912
+ agentSlug: z.ZodNullable<z.ZodString>;
913
+ kind: z.ZodEnum<["secret", "plain"]>;
914
+ requirement: z.ZodEnum<["required", "optional"]>;
915
+ defaultValue: z.ZodNullable<z.ZodString>;
916
+ portability: z.ZodEnum<["portable", "system_dependent"]>;
917
+ }, "strip", z.ZodTypeAny, {
918
+ kind: "plain" | "secret";
919
+ description: string | null;
920
+ key: string;
921
+ agentSlug: string | null;
922
+ requirement: "required" | "optional";
923
+ defaultValue: string | null;
924
+ portability: "portable" | "system_dependent";
925
+ }, {
926
+ kind: "plain" | "secret";
927
+ description: string | null;
928
+ key: string;
929
+ agentSlug: string | null;
930
+ requirement: "required" | "optional";
931
+ defaultValue: string | null;
932
+ portability: "portable" | "system_dependent";
933
+ }>, "many">>;
934
+ }, "strip", z.ZodTypeAny, {
935
+ company: {
936
+ path: string;
937
+ name: string;
938
+ description: string | null;
939
+ requireBoardApprovalForNewAgents: boolean;
940
+ brandColor: string | null;
941
+ logoPath: string | null;
942
+ } | null;
943
+ sidebar: {
944
+ agents: string[];
945
+ projects: string[];
946
+ } | null;
947
+ agents: {
948
+ path: string;
949
+ name: string;
950
+ budgetMonthlyCents: number;
951
+ slug: string;
952
+ metadata: Record<string, unknown> | null;
953
+ adapterType: string;
954
+ skills: string[];
955
+ role: string;
956
+ title: string | null;
957
+ icon: string | null;
958
+ capabilities: string | null;
959
+ reportsToSlug: string | null;
960
+ adapterConfig: Record<string, unknown>;
961
+ runtimeConfig: Record<string, unknown>;
962
+ permissions: Record<string, unknown>;
963
+ }[];
964
+ projects: {
965
+ status: string | null;
966
+ path: string;
967
+ name: string;
968
+ description: string | null;
969
+ slug: string;
970
+ metadata: Record<string, unknown> | null;
971
+ ownerAgentSlug: string | null;
972
+ leadAgentSlug: string | null;
973
+ targetDate: string | null;
974
+ color: string | null;
975
+ executionWorkspacePolicy: Record<string, unknown> | null;
976
+ workspaces: {
977
+ name: string;
978
+ key: string;
979
+ sourceType: string | null;
980
+ metadata: Record<string, unknown> | null;
981
+ repoUrl: string | null;
982
+ repoRef: string | null;
983
+ defaultRef: string | null;
984
+ visibility: string | null;
985
+ setupCommand: string | null;
986
+ cleanupCommand: string | null;
987
+ isPrimary: boolean;
988
+ }[];
989
+ }[];
990
+ issues: {
991
+ status: string | null;
992
+ path: string;
993
+ description: string | null;
994
+ slug: string;
995
+ metadata: Record<string, unknown> | null;
996
+ title: string;
997
+ identifier: string | null;
998
+ projectSlug: string | null;
999
+ projectWorkspaceKey: string | null;
1000
+ assigneeAgentSlug: string | null;
1001
+ recurring: boolean;
1002
+ routine: {
1003
+ concurrencyPolicy: string | null;
1004
+ catchUpPolicy: string | null;
1005
+ triggers: {
1006
+ enabled: boolean;
1007
+ kind: string;
1008
+ label: string | null;
1009
+ cronExpression: string | null;
1010
+ timezone: string | null;
1011
+ signingMode: string | null;
1012
+ replayWindowSec: number | null;
1013
+ }[];
1014
+ } | null;
1015
+ legacyRecurrence: Record<string, unknown> | null;
1016
+ priority: string | null;
1017
+ labelIds: string[];
1018
+ billingCode: string | null;
1019
+ executionWorkspaceSettings: Record<string, unknown> | null;
1020
+ assigneeAdapterOverrides: Record<string, unknown> | null;
1021
+ }[];
1022
+ includes: {
1023
+ company: boolean;
1024
+ agents: boolean;
1025
+ projects: boolean;
1026
+ issues: boolean;
1027
+ skills: boolean;
1028
+ };
1029
+ source: {
1030
+ companyId: string;
1031
+ companyName: string;
1032
+ } | null;
1033
+ skills: {
1034
+ path: string;
1035
+ name: string;
1036
+ description: string | null;
1037
+ key: string;
1038
+ slug: string;
1039
+ sourceType: string;
1040
+ sourceLocator: string | null;
1041
+ sourceRef: string | null;
1042
+ trustLevel: string | null;
1043
+ compatibility: string | null;
1044
+ fileInventory: {
1045
+ path: string;
1046
+ kind: string;
1047
+ }[];
1048
+ metadata: Record<string, unknown> | null;
1049
+ }[];
1050
+ schemaVersion: number;
1051
+ generatedAt: string;
1052
+ envInputs: {
1053
+ kind: "plain" | "secret";
1054
+ description: string | null;
1055
+ key: string;
1056
+ agentSlug: string | null;
1057
+ requirement: "required" | "optional";
1058
+ defaultValue: string | null;
1059
+ portability: "portable" | "system_dependent";
1060
+ }[];
1061
+ }, {
1062
+ company: {
1063
+ path: string;
1064
+ name: string;
1065
+ description: string | null;
1066
+ requireBoardApprovalForNewAgents: boolean;
1067
+ brandColor: string | null;
1068
+ logoPath: string | null;
1069
+ } | null;
1070
+ sidebar: {
1071
+ agents?: string[] | undefined;
1072
+ projects?: string[] | undefined;
1073
+ } | null;
1074
+ agents: {
1075
+ path: string;
1076
+ name: string;
1077
+ budgetMonthlyCents: number;
1078
+ slug: string;
1079
+ metadata: Record<string, unknown> | null;
1080
+ adapterType: string;
1081
+ role: string;
1082
+ title: string | null;
1083
+ icon: string | null;
1084
+ capabilities: string | null;
1085
+ reportsToSlug: string | null;
1086
+ adapterConfig: Record<string, unknown>;
1087
+ runtimeConfig: Record<string, unknown>;
1088
+ permissions: Record<string, unknown>;
1089
+ skills?: string[] | undefined;
1090
+ }[];
1091
+ includes: {
1092
+ company: boolean;
1093
+ agents: boolean;
1094
+ projects: boolean;
1095
+ issues: boolean;
1096
+ skills: boolean;
1097
+ };
1098
+ source: {
1099
+ companyId: string;
1100
+ companyName: string;
1101
+ } | null;
1102
+ schemaVersion: number;
1103
+ generatedAt: string;
1104
+ projects?: {
1105
+ status: string | null;
1106
+ path: string;
1107
+ name: string;
1108
+ description: string | null;
1109
+ slug: string;
1110
+ metadata: Record<string, unknown> | null;
1111
+ ownerAgentSlug: string | null;
1112
+ leadAgentSlug: string | null;
1113
+ targetDate: string | null;
1114
+ color: string | null;
1115
+ executionWorkspacePolicy: Record<string, unknown> | null;
1116
+ workspaces?: {
1117
+ name: string;
1118
+ key: string;
1119
+ sourceType: string | null;
1120
+ metadata: Record<string, unknown> | null;
1121
+ repoUrl: string | null;
1122
+ repoRef: string | null;
1123
+ defaultRef: string | null;
1124
+ visibility: string | null;
1125
+ setupCommand: string | null;
1126
+ cleanupCommand: string | null;
1127
+ isPrimary: boolean;
1128
+ }[] | undefined;
1129
+ }[] | undefined;
1130
+ issues?: {
1131
+ status: string | null;
1132
+ path: string;
1133
+ description: string | null;
1134
+ slug: string;
1135
+ metadata: Record<string, unknown> | null;
1136
+ title: string;
1137
+ identifier: string | null;
1138
+ projectSlug: string | null;
1139
+ projectWorkspaceKey: string | null;
1140
+ assigneeAgentSlug: string | null;
1141
+ routine: {
1142
+ concurrencyPolicy: string | null;
1143
+ catchUpPolicy: string | null;
1144
+ triggers?: {
1145
+ enabled: boolean;
1146
+ kind: string;
1147
+ label: string | null;
1148
+ cronExpression: string | null;
1149
+ timezone: string | null;
1150
+ signingMode: string | null;
1151
+ replayWindowSec: number | null;
1152
+ }[] | undefined;
1153
+ } | null;
1154
+ legacyRecurrence: Record<string, unknown> | null;
1155
+ priority: string | null;
1156
+ billingCode: string | null;
1157
+ executionWorkspaceSettings: Record<string, unknown> | null;
1158
+ assigneeAdapterOverrides: Record<string, unknown> | null;
1159
+ recurring?: boolean | undefined;
1160
+ labelIds?: string[] | undefined;
1161
+ }[] | undefined;
1162
+ skills?: {
1163
+ path: string;
1164
+ name: string;
1165
+ description: string | null;
1166
+ key: string;
1167
+ slug: string;
1168
+ sourceType: string;
1169
+ sourceLocator: string | null;
1170
+ sourceRef: string | null;
1171
+ trustLevel: string | null;
1172
+ compatibility: string | null;
1173
+ metadata: Record<string, unknown> | null;
1174
+ fileInventory?: {
1175
+ path: string;
1176
+ kind: string;
1177
+ }[] | undefined;
1178
+ }[] | undefined;
1179
+ envInputs?: {
1180
+ kind: "plain" | "secret";
1181
+ description: string | null;
1182
+ key: string;
1183
+ agentSlug: string | null;
1184
+ requirement: "required" | "optional";
1185
+ defaultValue: string | null;
1186
+ portability: "portable" | "system_dependent";
1187
+ }[] | undefined;
1188
+ }>;
1189
+ export declare const portabilitySourceSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1190
+ type: z.ZodLiteral<"inline">;
1191
+ rootPath: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1192
+ files: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodObject<{
1193
+ encoding: z.ZodLiteral<"base64">;
1194
+ data: z.ZodString;
1195
+ contentType: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1196
+ }, "strip", z.ZodTypeAny, {
1197
+ encoding: "base64";
1198
+ data: string;
1199
+ contentType?: string | null | undefined;
1200
+ }, {
1201
+ encoding: "base64";
1202
+ data: string;
1203
+ contentType?: string | null | undefined;
1204
+ }>]>>;
1205
+ }, "strip", z.ZodTypeAny, {
1206
+ type: "inline";
1207
+ files: Record<string, string | {
1208
+ encoding: "base64";
1209
+ data: string;
1210
+ contentType?: string | null | undefined;
1211
+ }>;
1212
+ rootPath?: string | null | undefined;
1213
+ }, {
1214
+ type: "inline";
1215
+ files: Record<string, string | {
1216
+ encoding: "base64";
1217
+ data: string;
1218
+ contentType?: string | null | undefined;
1219
+ }>;
1220
+ rootPath?: string | null | undefined;
1221
+ }>, z.ZodObject<{
1222
+ type: z.ZodLiteral<"github">;
1223
+ url: z.ZodString;
1224
+ }, "strip", z.ZodTypeAny, {
1225
+ type: "github";
1226
+ url: string;
1227
+ }, {
1228
+ type: "github";
1229
+ url: string;
1230
+ }>]>;
1231
+ export declare const portabilityTargetSchema: z.ZodDiscriminatedUnion<"mode", [z.ZodObject<{
1232
+ mode: z.ZodLiteral<"new_company">;
1233
+ newCompanyName: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1234
+ }, "strip", z.ZodTypeAny, {
1235
+ mode: "new_company";
1236
+ newCompanyName?: string | null | undefined;
1237
+ }, {
1238
+ mode: "new_company";
1239
+ newCompanyName?: string | null | undefined;
1240
+ }>, z.ZodObject<{
1241
+ mode: z.ZodLiteral<"existing_company">;
1242
+ companyId: z.ZodString;
1243
+ }, "strip", z.ZodTypeAny, {
1244
+ mode: "existing_company";
1245
+ companyId: string;
1246
+ }, {
1247
+ mode: "existing_company";
1248
+ companyId: string;
1249
+ }>]>;
1250
+ export declare const portabilityAgentSelectionSchema: z.ZodUnion<[z.ZodLiteral<"all">, z.ZodArray<z.ZodString, "many">]>;
1251
+ export declare const portabilityCollisionStrategySchema: z.ZodEnum<["rename", "skip", "replace"]>;
1252
+ export declare const companyPortabilityExportSchema: z.ZodObject<{
1253
+ include: z.ZodOptional<z.ZodObject<{
1254
+ company: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
1255
+ agents: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
1256
+ projects: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
1257
+ issues: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
1258
+ skills: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
1259
+ }, "strip", z.ZodTypeAny, {
1260
+ company?: boolean | undefined;
1261
+ agents?: boolean | undefined;
1262
+ projects?: boolean | undefined;
1263
+ issues?: boolean | undefined;
1264
+ skills?: boolean | undefined;
1265
+ }, {
1266
+ company?: boolean | undefined;
1267
+ agents?: boolean | undefined;
1268
+ projects?: boolean | undefined;
1269
+ issues?: boolean | undefined;
1270
+ skills?: boolean | undefined;
1271
+ }>>;
1272
+ agents: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1273
+ skills: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1274
+ projects: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1275
+ issues: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1276
+ projectIssues: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1277
+ selectedFiles: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1278
+ expandReferencedSkills: z.ZodOptional<z.ZodBoolean>;
1279
+ sidebarOrder: z.ZodOptional<z.ZodObject<{
1280
+ agents: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
1281
+ projects: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
1282
+ }, "strip", z.ZodTypeAny, {
1283
+ agents?: string[] | undefined;
1284
+ projects?: string[] | undefined;
1285
+ }, {
1286
+ agents?: string[] | undefined;
1287
+ projects?: string[] | undefined;
1288
+ }>>;
1289
+ }, "strip", z.ZodTypeAny, {
1290
+ agents?: string[] | undefined;
1291
+ projects?: string[] | undefined;
1292
+ issues?: string[] | undefined;
1293
+ skills?: string[] | undefined;
1294
+ include?: {
1295
+ company?: boolean | undefined;
1296
+ agents?: boolean | undefined;
1297
+ projects?: boolean | undefined;
1298
+ issues?: boolean | undefined;
1299
+ skills?: boolean | undefined;
1300
+ } | undefined;
1301
+ projectIssues?: string[] | undefined;
1302
+ selectedFiles?: string[] | undefined;
1303
+ expandReferencedSkills?: boolean | undefined;
1304
+ sidebarOrder?: {
1305
+ agents?: string[] | undefined;
1306
+ projects?: string[] | undefined;
1307
+ } | undefined;
1308
+ }, {
1309
+ agents?: string[] | undefined;
1310
+ projects?: string[] | undefined;
1311
+ issues?: string[] | undefined;
1312
+ skills?: string[] | undefined;
1313
+ include?: {
1314
+ company?: boolean | undefined;
1315
+ agents?: boolean | undefined;
1316
+ projects?: boolean | undefined;
1317
+ issues?: boolean | undefined;
1318
+ skills?: boolean | undefined;
1319
+ } | undefined;
1320
+ projectIssues?: string[] | undefined;
1321
+ selectedFiles?: string[] | undefined;
1322
+ expandReferencedSkills?: boolean | undefined;
1323
+ sidebarOrder?: {
1324
+ agents?: string[] | undefined;
1325
+ projects?: string[] | undefined;
1326
+ } | undefined;
1327
+ }>;
1328
+ export type CompanyPortabilityExport = z.infer<typeof companyPortabilityExportSchema>;
1329
+ export declare const companyPortabilityPreviewSchema: z.ZodObject<{
1330
+ source: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1331
+ type: z.ZodLiteral<"inline">;
1332
+ rootPath: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1333
+ files: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodObject<{
1334
+ encoding: z.ZodLiteral<"base64">;
1335
+ data: z.ZodString;
1336
+ contentType: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1337
+ }, "strip", z.ZodTypeAny, {
1338
+ encoding: "base64";
1339
+ data: string;
1340
+ contentType?: string | null | undefined;
1341
+ }, {
1342
+ encoding: "base64";
1343
+ data: string;
1344
+ contentType?: string | null | undefined;
1345
+ }>]>>;
1346
+ }, "strip", z.ZodTypeAny, {
1347
+ type: "inline";
1348
+ files: Record<string, string | {
1349
+ encoding: "base64";
1350
+ data: string;
1351
+ contentType?: string | null | undefined;
1352
+ }>;
1353
+ rootPath?: string | null | undefined;
1354
+ }, {
1355
+ type: "inline";
1356
+ files: Record<string, string | {
1357
+ encoding: "base64";
1358
+ data: string;
1359
+ contentType?: string | null | undefined;
1360
+ }>;
1361
+ rootPath?: string | null | undefined;
1362
+ }>, z.ZodObject<{
1363
+ type: z.ZodLiteral<"github">;
1364
+ url: z.ZodString;
1365
+ }, "strip", z.ZodTypeAny, {
1366
+ type: "github";
1367
+ url: string;
1368
+ }, {
1369
+ type: "github";
1370
+ url: string;
1371
+ }>]>;
1372
+ include: z.ZodOptional<z.ZodObject<{
1373
+ company: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
1374
+ agents: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
1375
+ projects: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
1376
+ issues: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
1377
+ skills: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
1378
+ }, "strip", z.ZodTypeAny, {
1379
+ company?: boolean | undefined;
1380
+ agents?: boolean | undefined;
1381
+ projects?: boolean | undefined;
1382
+ issues?: boolean | undefined;
1383
+ skills?: boolean | undefined;
1384
+ }, {
1385
+ company?: boolean | undefined;
1386
+ agents?: boolean | undefined;
1387
+ projects?: boolean | undefined;
1388
+ issues?: boolean | undefined;
1389
+ skills?: boolean | undefined;
1390
+ }>>;
1391
+ target: z.ZodDiscriminatedUnion<"mode", [z.ZodObject<{
1392
+ mode: z.ZodLiteral<"new_company">;
1393
+ newCompanyName: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1394
+ }, "strip", z.ZodTypeAny, {
1395
+ mode: "new_company";
1396
+ newCompanyName?: string | null | undefined;
1397
+ }, {
1398
+ mode: "new_company";
1399
+ newCompanyName?: string | null | undefined;
1400
+ }>, z.ZodObject<{
1401
+ mode: z.ZodLiteral<"existing_company">;
1402
+ companyId: z.ZodString;
1403
+ }, "strip", z.ZodTypeAny, {
1404
+ mode: "existing_company";
1405
+ companyId: string;
1406
+ }, {
1407
+ mode: "existing_company";
1408
+ companyId: string;
1409
+ }>]>;
1410
+ agents: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"all">, z.ZodArray<z.ZodString, "many">]>>;
1411
+ collisionStrategy: z.ZodOptional<z.ZodEnum<["rename", "skip", "replace"]>>;
1412
+ nameOverrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1413
+ selectedFiles: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1414
+ }, "strip", z.ZodTypeAny, {
1415
+ target: {
1416
+ mode: "new_company";
1417
+ newCompanyName?: string | null | undefined;
1418
+ } | {
1419
+ mode: "existing_company";
1420
+ companyId: string;
1421
+ };
1422
+ source: {
1423
+ type: "inline";
1424
+ files: Record<string, string | {
1425
+ encoding: "base64";
1426
+ data: string;
1427
+ contentType?: string | null | undefined;
1428
+ }>;
1429
+ rootPath?: string | null | undefined;
1430
+ } | {
1431
+ type: "github";
1432
+ url: string;
1433
+ };
1434
+ agents?: string[] | "all" | undefined;
1435
+ include?: {
1436
+ company?: boolean | undefined;
1437
+ agents?: boolean | undefined;
1438
+ projects?: boolean | undefined;
1439
+ issues?: boolean | undefined;
1440
+ skills?: boolean | undefined;
1441
+ } | undefined;
1442
+ selectedFiles?: string[] | undefined;
1443
+ collisionStrategy?: "rename" | "skip" | "replace" | undefined;
1444
+ nameOverrides?: Record<string, string> | undefined;
1445
+ }, {
1446
+ target: {
1447
+ mode: "new_company";
1448
+ newCompanyName?: string | null | undefined;
1449
+ } | {
1450
+ mode: "existing_company";
1451
+ companyId: string;
1452
+ };
1453
+ source: {
1454
+ type: "inline";
1455
+ files: Record<string, string | {
1456
+ encoding: "base64";
1457
+ data: string;
1458
+ contentType?: string | null | undefined;
1459
+ }>;
1460
+ rootPath?: string | null | undefined;
1461
+ } | {
1462
+ type: "github";
1463
+ url: string;
1464
+ };
1465
+ agents?: string[] | "all" | undefined;
1466
+ include?: {
1467
+ company?: boolean | undefined;
1468
+ agents?: boolean | undefined;
1469
+ projects?: boolean | undefined;
1470
+ issues?: boolean | undefined;
1471
+ skills?: boolean | undefined;
1472
+ } | undefined;
1473
+ selectedFiles?: string[] | undefined;
1474
+ collisionStrategy?: "rename" | "skip" | "replace" | undefined;
1475
+ nameOverrides?: Record<string, string> | undefined;
1476
+ }>;
1477
+ export type CompanyPortabilityPreview = z.infer<typeof companyPortabilityPreviewSchema>;
1478
+ export declare const portabilityAdapterOverrideSchema: z.ZodObject<{
1479
+ adapterType: z.ZodString;
1480
+ adapterConfig: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1481
+ }, "strip", z.ZodTypeAny, {
1482
+ adapterType: string;
1483
+ adapterConfig?: Record<string, unknown> | undefined;
1484
+ }, {
1485
+ adapterType: string;
1486
+ adapterConfig?: Record<string, unknown> | undefined;
1487
+ }>;
1488
+ export declare const companyPortabilityImportSchema: z.ZodObject<{
1489
+ source: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1490
+ type: z.ZodLiteral<"inline">;
1491
+ rootPath: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1492
+ files: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodObject<{
1493
+ encoding: z.ZodLiteral<"base64">;
1494
+ data: z.ZodString;
1495
+ contentType: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1496
+ }, "strip", z.ZodTypeAny, {
1497
+ encoding: "base64";
1498
+ data: string;
1499
+ contentType?: string | null | undefined;
1500
+ }, {
1501
+ encoding: "base64";
1502
+ data: string;
1503
+ contentType?: string | null | undefined;
1504
+ }>]>>;
1505
+ }, "strip", z.ZodTypeAny, {
1506
+ type: "inline";
1507
+ files: Record<string, string | {
1508
+ encoding: "base64";
1509
+ data: string;
1510
+ contentType?: string | null | undefined;
1511
+ }>;
1512
+ rootPath?: string | null | undefined;
1513
+ }, {
1514
+ type: "inline";
1515
+ files: Record<string, string | {
1516
+ encoding: "base64";
1517
+ data: string;
1518
+ contentType?: string | null | undefined;
1519
+ }>;
1520
+ rootPath?: string | null | undefined;
1521
+ }>, z.ZodObject<{
1522
+ type: z.ZodLiteral<"github">;
1523
+ url: z.ZodString;
1524
+ }, "strip", z.ZodTypeAny, {
1525
+ type: "github";
1526
+ url: string;
1527
+ }, {
1528
+ type: "github";
1529
+ url: string;
1530
+ }>]>;
1531
+ include: z.ZodOptional<z.ZodObject<{
1532
+ company: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
1533
+ agents: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
1534
+ projects: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
1535
+ issues: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
1536
+ skills: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
1537
+ }, "strip", z.ZodTypeAny, {
1538
+ company?: boolean | undefined;
1539
+ agents?: boolean | undefined;
1540
+ projects?: boolean | undefined;
1541
+ issues?: boolean | undefined;
1542
+ skills?: boolean | undefined;
1543
+ }, {
1544
+ company?: boolean | undefined;
1545
+ agents?: boolean | undefined;
1546
+ projects?: boolean | undefined;
1547
+ issues?: boolean | undefined;
1548
+ skills?: boolean | undefined;
1549
+ }>>;
1550
+ target: z.ZodDiscriminatedUnion<"mode", [z.ZodObject<{
1551
+ mode: z.ZodLiteral<"new_company">;
1552
+ newCompanyName: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1553
+ }, "strip", z.ZodTypeAny, {
1554
+ mode: "new_company";
1555
+ newCompanyName?: string | null | undefined;
1556
+ }, {
1557
+ mode: "new_company";
1558
+ newCompanyName?: string | null | undefined;
1559
+ }>, z.ZodObject<{
1560
+ mode: z.ZodLiteral<"existing_company">;
1561
+ companyId: z.ZodString;
1562
+ }, "strip", z.ZodTypeAny, {
1563
+ mode: "existing_company";
1564
+ companyId: string;
1565
+ }, {
1566
+ mode: "existing_company";
1567
+ companyId: string;
1568
+ }>]>;
1569
+ agents: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"all">, z.ZodArray<z.ZodString, "many">]>>;
1570
+ collisionStrategy: z.ZodOptional<z.ZodEnum<["rename", "skip", "replace"]>>;
1571
+ nameOverrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1572
+ selectedFiles: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1573
+ } & {
1574
+ adapterOverrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
1575
+ adapterType: z.ZodString;
1576
+ adapterConfig: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1577
+ }, "strip", z.ZodTypeAny, {
1578
+ adapterType: string;
1579
+ adapterConfig?: Record<string, unknown> | undefined;
1580
+ }, {
1581
+ adapterType: string;
1582
+ adapterConfig?: Record<string, unknown> | undefined;
1583
+ }>>>;
1584
+ }, "strip", z.ZodTypeAny, {
1585
+ target: {
1586
+ mode: "new_company";
1587
+ newCompanyName?: string | null | undefined;
1588
+ } | {
1589
+ mode: "existing_company";
1590
+ companyId: string;
1591
+ };
1592
+ source: {
1593
+ type: "inline";
1594
+ files: Record<string, string | {
1595
+ encoding: "base64";
1596
+ data: string;
1597
+ contentType?: string | null | undefined;
1598
+ }>;
1599
+ rootPath?: string | null | undefined;
1600
+ } | {
1601
+ type: "github";
1602
+ url: string;
1603
+ };
1604
+ agents?: string[] | "all" | undefined;
1605
+ include?: {
1606
+ company?: boolean | undefined;
1607
+ agents?: boolean | undefined;
1608
+ projects?: boolean | undefined;
1609
+ issues?: boolean | undefined;
1610
+ skills?: boolean | undefined;
1611
+ } | undefined;
1612
+ selectedFiles?: string[] | undefined;
1613
+ collisionStrategy?: "rename" | "skip" | "replace" | undefined;
1614
+ nameOverrides?: Record<string, string> | undefined;
1615
+ adapterOverrides?: Record<string, {
1616
+ adapterType: string;
1617
+ adapterConfig?: Record<string, unknown> | undefined;
1618
+ }> | undefined;
1619
+ }, {
1620
+ target: {
1621
+ mode: "new_company";
1622
+ newCompanyName?: string | null | undefined;
1623
+ } | {
1624
+ mode: "existing_company";
1625
+ companyId: string;
1626
+ };
1627
+ source: {
1628
+ type: "inline";
1629
+ files: Record<string, string | {
1630
+ encoding: "base64";
1631
+ data: string;
1632
+ contentType?: string | null | undefined;
1633
+ }>;
1634
+ rootPath?: string | null | undefined;
1635
+ } | {
1636
+ type: "github";
1637
+ url: string;
1638
+ };
1639
+ agents?: string[] | "all" | undefined;
1640
+ include?: {
1641
+ company?: boolean | undefined;
1642
+ agents?: boolean | undefined;
1643
+ projects?: boolean | undefined;
1644
+ issues?: boolean | undefined;
1645
+ skills?: boolean | undefined;
1646
+ } | undefined;
1647
+ selectedFiles?: string[] | undefined;
1648
+ collisionStrategy?: "rename" | "skip" | "replace" | undefined;
1649
+ nameOverrides?: Record<string, string> | undefined;
1650
+ adapterOverrides?: Record<string, {
1651
+ adapterType: string;
1652
+ adapterConfig?: Record<string, unknown> | undefined;
1653
+ }> | undefined;
1654
+ }>;
1655
+ export type CompanyPortabilityImport = z.infer<typeof companyPortabilityImportSchema>;
1656
+ //# sourceMappingURL=company-portability.d.ts.map