@huddle-marketplace/skills 0.2.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 (86) hide show
  1. package/README.md +256 -0
  2. package/dist/adapters/openclaw.d.ts +42 -0
  3. package/dist/adapters/openclaw.d.ts.map +1 -0
  4. package/dist/adapters/openclaw.js +94 -0
  5. package/dist/adapters/openclaw.js.map +1 -0
  6. package/dist/base.d.ts +26 -0
  7. package/dist/base.d.ts.map +1 -0
  8. package/dist/base.js +97 -0
  9. package/dist/base.js.map +1 -0
  10. package/dist/compose.d.ts +87 -0
  11. package/dist/compose.d.ts.map +1 -0
  12. package/dist/compose.js +119 -0
  13. package/dist/compose.js.map +1 -0
  14. package/dist/index.d.ts +104 -0
  15. package/dist/index.d.ts.map +1 -0
  16. package/dist/index.js +167 -0
  17. package/dist/index.js.map +1 -0
  18. package/dist/jurisdictions/ca-bc/index.d.ts +49 -0
  19. package/dist/jurisdictions/ca-bc/index.d.ts.map +1 -0
  20. package/dist/jurisdictions/ca-bc/index.js +212 -0
  21. package/dist/jurisdictions/ca-bc/index.js.map +1 -0
  22. package/dist/jurisdictions/ca-ns/index.d.ts +27 -0
  23. package/dist/jurisdictions/ca-ns/index.d.ts.map +1 -0
  24. package/dist/jurisdictions/ca-ns/index.js +127 -0
  25. package/dist/jurisdictions/ca-ns/index.js.map +1 -0
  26. package/dist/jurisdictions/ca-on/index.d.ts +26 -0
  27. package/dist/jurisdictions/ca-on/index.d.ts.map +1 -0
  28. package/dist/jurisdictions/ca-on/index.js +109 -0
  29. package/dist/jurisdictions/ca-on/index.js.map +1 -0
  30. package/dist/jurisdictions/ca-qc/index.d.ts +75 -0
  31. package/dist/jurisdictions/ca-qc/index.d.ts.map +1 -0
  32. package/dist/jurisdictions/ca-qc/index.js +232 -0
  33. package/dist/jurisdictions/ca-qc/index.js.map +1 -0
  34. package/dist/jurisdictions/canadian-template.d.ts +49 -0
  35. package/dist/jurisdictions/canadian-template.d.ts.map +1 -0
  36. package/dist/jurisdictions/canadian-template.js +228 -0
  37. package/dist/jurisdictions/canadian-template.js.map +1 -0
  38. package/dist/jurisdictions/lifecycle/active-tenancy.d.ts +55 -0
  39. package/dist/jurisdictions/lifecycle/active-tenancy.d.ts.map +1 -0
  40. package/dist/jurisdictions/lifecycle/active-tenancy.js +227 -0
  41. package/dist/jurisdictions/lifecycle/active-tenancy.js.map +1 -0
  42. package/dist/jurisdictions/lifecycle/homeownership-readiness.d.ts +60 -0
  43. package/dist/jurisdictions/lifecycle/homeownership-readiness.d.ts.map +1 -0
  44. package/dist/jurisdictions/lifecycle/homeownership-readiness.js +401 -0
  45. package/dist/jurisdictions/lifecycle/homeownership-readiness.js.map +1 -0
  46. package/dist/jurisdictions/us-ca/index.d.ts +65 -0
  47. package/dist/jurisdictions/us-ca/index.d.ts.map +1 -0
  48. package/dist/jurisdictions/us-ca/index.js +265 -0
  49. package/dist/jurisdictions/us-ca/index.js.map +1 -0
  50. package/dist/jurisdictions/us-cftc/index.d.ts +48 -0
  51. package/dist/jurisdictions/us-cftc/index.d.ts.map +1 -0
  52. package/dist/jurisdictions/us-cftc/index.js +192 -0
  53. package/dist/jurisdictions/us-cftc/index.js.map +1 -0
  54. package/dist/jurisdictions/us-fl/index.d.ts +43 -0
  55. package/dist/jurisdictions/us-fl/index.d.ts.map +1 -0
  56. package/dist/jurisdictions/us-fl/index.js +129 -0
  57. package/dist/jurisdictions/us-fl/index.js.map +1 -0
  58. package/dist/jurisdictions/us-ny/index.d.ts +77 -0
  59. package/dist/jurisdictions/us-ny/index.d.ts.map +1 -0
  60. package/dist/jurisdictions/us-ny/index.js +344 -0
  61. package/dist/jurisdictions/us-ny/index.js.map +1 -0
  62. package/dist/jurisdictions/us-state-factory.d.ts +79 -0
  63. package/dist/jurisdictions/us-state-factory.d.ts.map +1 -0
  64. package/dist/jurisdictions/us-state-factory.js +425 -0
  65. package/dist/jurisdictions/us-state-factory.js.map +1 -0
  66. package/dist/jurisdictions/us-tx/index.d.ts +43 -0
  67. package/dist/jurisdictions/us-tx/index.d.ts.map +1 -0
  68. package/dist/jurisdictions/us-tx/index.js +160 -0
  69. package/dist/jurisdictions/us-tx/index.js.map +1 -0
  70. package/dist/mcp/index.d.ts +49 -0
  71. package/dist/mcp/index.d.ts.map +1 -0
  72. package/dist/mcp/index.js +211 -0
  73. package/dist/mcp/index.js.map +1 -0
  74. package/dist/registry/index.d.ts +27 -0
  75. package/dist/registry/index.d.ts.map +1 -0
  76. package/dist/registry/index.js +47 -0
  77. package/dist/registry/index.js.map +1 -0
  78. package/dist/traiga/index.d.ts +24 -0
  79. package/dist/traiga/index.d.ts.map +1 -0
  80. package/dist/traiga/index.js +67 -0
  81. package/dist/traiga/index.js.map +1 -0
  82. package/dist/types/index.d.ts +814 -0
  83. package/dist/types/index.d.ts.map +1 -0
  84. package/dist/types/index.js +150 -0
  85. package/dist/types/index.js.map +1 -0
  86. package/package.json +77 -0
@@ -0,0 +1,814 @@
1
+ /**
2
+ * @huddle-marketplace/skills — Canonical Type Definitions
3
+ *
4
+ * These types define the interface contract for all Huddle compliance skills.
5
+ * Every skill, adapter, and registry implementation depends on these types.
6
+ */
7
+ import { z } from "zod";
8
+ /** US state codes */
9
+ export type USStateCode = "US-AL" | "US-AK" | "US-AZ" | "US-AR" | "US-CA" | "US-CO" | "US-CT" | "US-DE" | "US-FL" | "US-GA" | "US-HI" | "US-ID" | "US-IL" | "US-IN" | "US-IA" | "US-KS" | "US-KY" | "US-LA" | "US-ME" | "US-MD" | "US-MA" | "US-MI" | "US-MN" | "US-MS" | "US-MO" | "US-MT" | "US-NE" | "US-NV" | "US-NH" | "US-NJ" | "US-NM" | "US-NY" | "US-NC" | "US-ND" | "US-OH" | "US-OK" | "US-OR" | "US-PA" | "US-RI" | "US-SC" | "US-SD" | "US-TN" | "US-TX" | "US-UT" | "US-VT" | "US-VA" | "US-WA" | "US-WV" | "US-WI" | "US-WY";
10
+ /** Canadian province/territory codes */
11
+ export type CAProvinceCode = "CA-AB" | "CA-BC" | "CA-MB" | "CA-NB" | "CA-NL" | "CA-NS" | "CA-NT" | "CA-NU" | "CA-ON" | "CA-PE" | "CA-QC" | "CA-SK" | "CA-YT";
12
+ /** Federal overlay codes */
13
+ export type FederalCode = "US-CFTC" | "US-CFPB" | "US-OFAC" | "CA-FINTRAC";
14
+ /** All supported jurisdiction codes */
15
+ export type JurisdictionCode = USStateCode | CAProvinceCode | FederalCode;
16
+ /** What a skill can validate */
17
+ export type SkillCapability = "deposit-validation" | "payment-compliance" | "rent-increase-validation" | "late-fee-validation" | "deposit-return" | "deposit-interest" | "lease-clause-validation" | "tenant-screening" | "rent-reasonableness" | "homeownership-readiness" | "buyer-program-matching" | "closing-cost-estimation" | "yield-compliance" | "tax-reporting" | "regulatory-reporting" | "federal-preemption";
18
+ export declare const LegalCitationSchema: z.ZodObject<{
19
+ statute: z.ZodString;
20
+ section: z.ZodString;
21
+ summary: z.ZodString;
22
+ url: z.ZodOptional<z.ZodString>;
23
+ effectiveDate: z.ZodOptional<z.ZodString>;
24
+ }, "strip", z.ZodTypeAny, {
25
+ statute: string;
26
+ section: string;
27
+ summary: string;
28
+ url?: string | undefined;
29
+ effectiveDate?: string | undefined;
30
+ }, {
31
+ statute: string;
32
+ section: string;
33
+ summary: string;
34
+ url?: string | undefined;
35
+ effectiveDate?: string | undefined;
36
+ }>;
37
+ export type LegalCitation = z.infer<typeof LegalCitationSchema>;
38
+ export declare const RemediationStepSchema: z.ZodObject<{
39
+ action: z.ZodString;
40
+ description: z.ZodString;
41
+ urgency: z.ZodEnum<["required", "recommended", "optional"]>;
42
+ automatable: z.ZodBoolean;
43
+ }, "strip", z.ZodTypeAny, {
44
+ action: string;
45
+ description: string;
46
+ urgency: "required" | "recommended" | "optional";
47
+ automatable: boolean;
48
+ }, {
49
+ action: string;
50
+ description: string;
51
+ urgency: "required" | "recommended" | "optional";
52
+ automatable: boolean;
53
+ }>;
54
+ export type RemediationStep = z.infer<typeof RemediationStepSchema>;
55
+ export declare const SkillCheckSchema: z.ZodObject<{
56
+ name: z.ZodString;
57
+ passed: z.ZodBoolean;
58
+ confidence: z.ZodNumber;
59
+ note: z.ZodString;
60
+ citation: z.ZodOptional<z.ZodObject<{
61
+ statute: z.ZodString;
62
+ section: z.ZodString;
63
+ summary: z.ZodString;
64
+ url: z.ZodOptional<z.ZodString>;
65
+ effectiveDate: z.ZodOptional<z.ZodString>;
66
+ }, "strip", z.ZodTypeAny, {
67
+ statute: string;
68
+ section: string;
69
+ summary: string;
70
+ url?: string | undefined;
71
+ effectiveDate?: string | undefined;
72
+ }, {
73
+ statute: string;
74
+ section: string;
75
+ summary: string;
76
+ url?: string | undefined;
77
+ effectiveDate?: string | undefined;
78
+ }>>;
79
+ details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
80
+ }, "strip", z.ZodTypeAny, {
81
+ name: string;
82
+ passed: boolean;
83
+ confidence: number;
84
+ note: string;
85
+ citation?: {
86
+ statute: string;
87
+ section: string;
88
+ summary: string;
89
+ url?: string | undefined;
90
+ effectiveDate?: string | undefined;
91
+ } | undefined;
92
+ details?: Record<string, unknown> | undefined;
93
+ }, {
94
+ name: string;
95
+ passed: boolean;
96
+ confidence: number;
97
+ note: string;
98
+ citation?: {
99
+ statute: string;
100
+ section: string;
101
+ summary: string;
102
+ url?: string | undefined;
103
+ effectiveDate?: string | undefined;
104
+ } | undefined;
105
+ details?: Record<string, unknown> | undefined;
106
+ }>;
107
+ export type SkillCheck = z.infer<typeof SkillCheckSchema>;
108
+ export declare const SkillResultSchema: z.ZodObject<{
109
+ compliant: z.ZodBoolean;
110
+ confidence: z.ZodNumber;
111
+ jurisdiction: z.ZodString;
112
+ skillId: z.ZodString;
113
+ skillVersion: z.ZodString;
114
+ checks: z.ZodArray<z.ZodObject<{
115
+ name: z.ZodString;
116
+ passed: z.ZodBoolean;
117
+ confidence: z.ZodNumber;
118
+ note: z.ZodString;
119
+ citation: z.ZodOptional<z.ZodObject<{
120
+ statute: z.ZodString;
121
+ section: z.ZodString;
122
+ summary: z.ZodString;
123
+ url: z.ZodOptional<z.ZodString>;
124
+ effectiveDate: z.ZodOptional<z.ZodString>;
125
+ }, "strip", z.ZodTypeAny, {
126
+ statute: string;
127
+ section: string;
128
+ summary: string;
129
+ url?: string | undefined;
130
+ effectiveDate?: string | undefined;
131
+ }, {
132
+ statute: string;
133
+ section: string;
134
+ summary: string;
135
+ url?: string | undefined;
136
+ effectiveDate?: string | undefined;
137
+ }>>;
138
+ details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
139
+ }, "strip", z.ZodTypeAny, {
140
+ name: string;
141
+ passed: boolean;
142
+ confidence: number;
143
+ note: string;
144
+ citation?: {
145
+ statute: string;
146
+ section: string;
147
+ summary: string;
148
+ url?: string | undefined;
149
+ effectiveDate?: string | undefined;
150
+ } | undefined;
151
+ details?: Record<string, unknown> | undefined;
152
+ }, {
153
+ name: string;
154
+ passed: boolean;
155
+ confidence: number;
156
+ note: string;
157
+ citation?: {
158
+ statute: string;
159
+ section: string;
160
+ summary: string;
161
+ url?: string | undefined;
162
+ effectiveDate?: string | undefined;
163
+ } | undefined;
164
+ details?: Record<string, unknown> | undefined;
165
+ }>, "many">;
166
+ explanation: z.ZodOptional<z.ZodString>;
167
+ remediation: z.ZodOptional<z.ZodArray<z.ZodObject<{
168
+ action: z.ZodString;
169
+ description: z.ZodString;
170
+ urgency: z.ZodEnum<["required", "recommended", "optional"]>;
171
+ automatable: z.ZodBoolean;
172
+ }, "strip", z.ZodTypeAny, {
173
+ action: string;
174
+ description: string;
175
+ urgency: "required" | "recommended" | "optional";
176
+ automatable: boolean;
177
+ }, {
178
+ action: string;
179
+ description: string;
180
+ urgency: "required" | "recommended" | "optional";
181
+ automatable: boolean;
182
+ }>, "many">>;
183
+ citations: z.ZodOptional<z.ZodArray<z.ZodObject<{
184
+ statute: z.ZodString;
185
+ section: z.ZodString;
186
+ summary: z.ZodString;
187
+ url: z.ZodOptional<z.ZodString>;
188
+ effectiveDate: z.ZodOptional<z.ZodString>;
189
+ }, "strip", z.ZodTypeAny, {
190
+ statute: string;
191
+ section: string;
192
+ summary: string;
193
+ url?: string | undefined;
194
+ effectiveDate?: string | undefined;
195
+ }, {
196
+ statute: string;
197
+ section: string;
198
+ summary: string;
199
+ url?: string | undefined;
200
+ effectiveDate?: string | undefined;
201
+ }>, "many">>;
202
+ timestamp: z.ZodNumber;
203
+ }, "strip", z.ZodTypeAny, {
204
+ confidence: number;
205
+ compliant: boolean;
206
+ jurisdiction: string;
207
+ skillId: string;
208
+ skillVersion: string;
209
+ checks: {
210
+ name: string;
211
+ passed: boolean;
212
+ confidence: number;
213
+ note: string;
214
+ citation?: {
215
+ statute: string;
216
+ section: string;
217
+ summary: string;
218
+ url?: string | undefined;
219
+ effectiveDate?: string | undefined;
220
+ } | undefined;
221
+ details?: Record<string, unknown> | undefined;
222
+ }[];
223
+ timestamp: number;
224
+ explanation?: string | undefined;
225
+ remediation?: {
226
+ action: string;
227
+ description: string;
228
+ urgency: "required" | "recommended" | "optional";
229
+ automatable: boolean;
230
+ }[] | undefined;
231
+ citations?: {
232
+ statute: string;
233
+ section: string;
234
+ summary: string;
235
+ url?: string | undefined;
236
+ effectiveDate?: string | undefined;
237
+ }[] | undefined;
238
+ }, {
239
+ confidence: number;
240
+ compliant: boolean;
241
+ jurisdiction: string;
242
+ skillId: string;
243
+ skillVersion: string;
244
+ checks: {
245
+ name: string;
246
+ passed: boolean;
247
+ confidence: number;
248
+ note: string;
249
+ citation?: {
250
+ statute: string;
251
+ section: string;
252
+ summary: string;
253
+ url?: string | undefined;
254
+ effectiveDate?: string | undefined;
255
+ } | undefined;
256
+ details?: Record<string, unknown> | undefined;
257
+ }[];
258
+ timestamp: number;
259
+ explanation?: string | undefined;
260
+ remediation?: {
261
+ action: string;
262
+ description: string;
263
+ urgency: "required" | "recommended" | "optional";
264
+ automatable: boolean;
265
+ }[] | undefined;
266
+ citations?: {
267
+ statute: string;
268
+ section: string;
269
+ summary: string;
270
+ url?: string | undefined;
271
+ effectiveDate?: string | undefined;
272
+ }[] | undefined;
273
+ }>;
274
+ export type SkillResult = z.infer<typeof SkillResultSchema>;
275
+ export declare const DepositValidationInputSchema: z.ZodObject<{
276
+ type: z.ZodLiteral<"deposit-validation">;
277
+ depositAmountCents: z.ZodNumber;
278
+ monthlyRentCents: z.ZodNumber;
279
+ currency: z.ZodEnum<["USD", "CAD", "USDC"]>;
280
+ leaseTermMonths: z.ZodOptional<z.ZodNumber>;
281
+ landlordConsentSignature: z.ZodOptional<z.ZodString>;
282
+ tenantConsentSignature: z.ZodOptional<z.ZodString>;
283
+ mutualAssentTimestamp: z.ZodOptional<z.ZodNumber>;
284
+ collateralType: z.ZodOptional<z.ZodString>;
285
+ collateralValueCents: z.ZodOptional<z.ZodNumber>;
286
+ originalDepositValueCents: z.ZodOptional<z.ZodNumber>;
287
+ yieldShareActive: z.ZodOptional<z.ZodBoolean>;
288
+ tenantYieldPercentage: z.ZodOptional<z.ZodNumber>;
289
+ instrumentType: z.ZodOptional<z.ZodString>;
290
+ custodyType: z.ZodOptional<z.ZodString>;
291
+ sentinelMonitoring: z.ZodOptional<z.ZodBoolean>;
292
+ sentinelMode: z.ZodOptional<z.ZodString>;
293
+ lastSentinelCheckMs: z.ZodOptional<z.ZodNumber>;
294
+ auditLogEnabled: z.ZodOptional<z.ZodBoolean>;
295
+ lastDecisionReasoning: z.ZodOptional<z.ZodString>;
296
+ multiSigEnabled: z.ZodOptional<z.ZodBoolean>;
297
+ rtbCompliantAgreement: z.ZodOptional<z.ZodBoolean>;
298
+ disputeResolutionEnabled: z.ZodOptional<z.ZodBoolean>;
299
+ wbtcUsdcRatio: z.ZodOptional<z.ZodNumber>;
300
+ }, "strip", z.ZodTypeAny, {
301
+ type: "deposit-validation";
302
+ depositAmountCents: number;
303
+ monthlyRentCents: number;
304
+ currency: "USD" | "CAD" | "USDC";
305
+ leaseTermMonths?: number | undefined;
306
+ landlordConsentSignature?: string | undefined;
307
+ tenantConsentSignature?: string | undefined;
308
+ mutualAssentTimestamp?: number | undefined;
309
+ collateralType?: string | undefined;
310
+ collateralValueCents?: number | undefined;
311
+ originalDepositValueCents?: number | undefined;
312
+ yieldShareActive?: boolean | undefined;
313
+ tenantYieldPercentage?: number | undefined;
314
+ instrumentType?: string | undefined;
315
+ custodyType?: string | undefined;
316
+ sentinelMonitoring?: boolean | undefined;
317
+ sentinelMode?: string | undefined;
318
+ lastSentinelCheckMs?: number | undefined;
319
+ auditLogEnabled?: boolean | undefined;
320
+ lastDecisionReasoning?: string | undefined;
321
+ multiSigEnabled?: boolean | undefined;
322
+ rtbCompliantAgreement?: boolean | undefined;
323
+ disputeResolutionEnabled?: boolean | undefined;
324
+ wbtcUsdcRatio?: number | undefined;
325
+ }, {
326
+ type: "deposit-validation";
327
+ depositAmountCents: number;
328
+ monthlyRentCents: number;
329
+ currency: "USD" | "CAD" | "USDC";
330
+ leaseTermMonths?: number | undefined;
331
+ landlordConsentSignature?: string | undefined;
332
+ tenantConsentSignature?: string | undefined;
333
+ mutualAssentTimestamp?: number | undefined;
334
+ collateralType?: string | undefined;
335
+ collateralValueCents?: number | undefined;
336
+ originalDepositValueCents?: number | undefined;
337
+ yieldShareActive?: boolean | undefined;
338
+ tenantYieldPercentage?: number | undefined;
339
+ instrumentType?: string | undefined;
340
+ custodyType?: string | undefined;
341
+ sentinelMonitoring?: boolean | undefined;
342
+ sentinelMode?: string | undefined;
343
+ lastSentinelCheckMs?: number | undefined;
344
+ auditLogEnabled?: boolean | undefined;
345
+ lastDecisionReasoning?: string | undefined;
346
+ multiSigEnabled?: boolean | undefined;
347
+ rtbCompliantAgreement?: boolean | undefined;
348
+ disputeResolutionEnabled?: boolean | undefined;
349
+ wbtcUsdcRatio?: number | undefined;
350
+ }>;
351
+ export type DepositValidationInput = z.infer<typeof DepositValidationInputSchema>;
352
+ export declare const PaymentComplianceInputSchema: z.ZodObject<{
353
+ type: z.ZodLiteral<"payment-compliance">;
354
+ paymentAmountCents: z.ZodNumber;
355
+ monthlyRentCents: z.ZodNumber;
356
+ currency: z.ZodEnum<["USD", "CAD", "USDC"]>;
357
+ dueDate: z.ZodString;
358
+ paymentDate: z.ZodString;
359
+ lateFeeAmountCents: z.ZodOptional<z.ZodNumber>;
360
+ gracePeriodDays: z.ZodOptional<z.ZodNumber>;
361
+ }, "strip", z.ZodTypeAny, {
362
+ type: "payment-compliance";
363
+ monthlyRentCents: number;
364
+ currency: "USD" | "CAD" | "USDC";
365
+ paymentAmountCents: number;
366
+ dueDate: string;
367
+ paymentDate: string;
368
+ lateFeeAmountCents?: number | undefined;
369
+ gracePeriodDays?: number | undefined;
370
+ }, {
371
+ type: "payment-compliance";
372
+ monthlyRentCents: number;
373
+ currency: "USD" | "CAD" | "USDC";
374
+ paymentAmountCents: number;
375
+ dueDate: string;
376
+ paymentDate: string;
377
+ lateFeeAmountCents?: number | undefined;
378
+ gracePeriodDays?: number | undefined;
379
+ }>;
380
+ export type PaymentComplianceInput = z.infer<typeof PaymentComplianceInputSchema>;
381
+ export declare const RentIncreaseInputSchema: z.ZodObject<{
382
+ type: z.ZodLiteral<"rent-increase-validation">;
383
+ currentRentCents: z.ZodNumber;
384
+ proposedRentCents: z.ZodNumber;
385
+ currency: z.ZodEnum<["USD", "CAD", "USDC"]>;
386
+ noticeDateDays: z.ZodNumber;
387
+ leaseType: z.ZodOptional<z.ZodEnum<["fixed", "month-to-month", "rent-controlled"]>>;
388
+ }, "strip", z.ZodTypeAny, {
389
+ type: "rent-increase-validation";
390
+ currency: "USD" | "CAD" | "USDC";
391
+ currentRentCents: number;
392
+ proposedRentCents: number;
393
+ noticeDateDays: number;
394
+ leaseType?: "fixed" | "month-to-month" | "rent-controlled" | undefined;
395
+ }, {
396
+ type: "rent-increase-validation";
397
+ currency: "USD" | "CAD" | "USDC";
398
+ currentRentCents: number;
399
+ proposedRentCents: number;
400
+ noticeDateDays: number;
401
+ leaseType?: "fixed" | "month-to-month" | "rent-controlled" | undefined;
402
+ }>;
403
+ export type RentIncreaseInput = z.infer<typeof RentIncreaseInputSchema>;
404
+ export declare const DepositReturnInputSchema: z.ZodObject<{
405
+ type: z.ZodLiteral<"deposit-return">;
406
+ originalDepositCents: z.ZodNumber;
407
+ proposedReturnCents: z.ZodNumber;
408
+ deductionsCents: z.ZodOptional<z.ZodNumber>;
409
+ currency: z.ZodEnum<["USD", "CAD", "USDC"]>;
410
+ leaseEndDate: z.ZodString;
411
+ returnDate: z.ZodString;
412
+ itemizedDeductions: z.ZodOptional<z.ZodArray<z.ZodObject<{
413
+ description: z.ZodString;
414
+ amountCents: z.ZodNumber;
415
+ }, "strip", z.ZodTypeAny, {
416
+ description: string;
417
+ amountCents: number;
418
+ }, {
419
+ description: string;
420
+ amountCents: number;
421
+ }>, "many">>;
422
+ interestOwedCents: z.ZodOptional<z.ZodNumber>;
423
+ }, "strip", z.ZodTypeAny, {
424
+ type: "deposit-return";
425
+ currency: "USD" | "CAD" | "USDC";
426
+ originalDepositCents: number;
427
+ proposedReturnCents: number;
428
+ leaseEndDate: string;
429
+ returnDate: string;
430
+ deductionsCents?: number | undefined;
431
+ itemizedDeductions?: {
432
+ description: string;
433
+ amountCents: number;
434
+ }[] | undefined;
435
+ interestOwedCents?: number | undefined;
436
+ }, {
437
+ type: "deposit-return";
438
+ currency: "USD" | "CAD" | "USDC";
439
+ originalDepositCents: number;
440
+ proposedReturnCents: number;
441
+ leaseEndDate: string;
442
+ returnDate: string;
443
+ deductionsCents?: number | undefined;
444
+ itemizedDeductions?: {
445
+ description: string;
446
+ amountCents: number;
447
+ }[] | undefined;
448
+ interestOwedCents?: number | undefined;
449
+ }>;
450
+ export type DepositReturnInput = z.infer<typeof DepositReturnInputSchema>;
451
+ export declare const HomeownershipReadinessInputSchema: z.ZodObject<{
452
+ type: z.ZodLiteral<"homeownership-readiness">;
453
+ annualIncomeCents: z.ZodNumber;
454
+ monthlyDebtCents: z.ZodNumber;
455
+ creditScore: z.ZodOptional<z.ZodNumber>;
456
+ currentSavingsCents: z.ZodNumber;
457
+ targetDownPaymentCents: z.ZodNumber;
458
+ targetPurchaseDate: z.ZodOptional<z.ZodString>;
459
+ employmentMonths: z.ZodOptional<z.ZodNumber>;
460
+ firstTimeBuyer: z.ZodOptional<z.ZodBoolean>;
461
+ veteranStatus: z.ZodOptional<z.ZodBoolean>;
462
+ ruralArea: z.ZodOptional<z.ZodBoolean>;
463
+ }, "strip", z.ZodTypeAny, {
464
+ type: "homeownership-readiness";
465
+ annualIncomeCents: number;
466
+ monthlyDebtCents: number;
467
+ currentSavingsCents: number;
468
+ targetDownPaymentCents: number;
469
+ creditScore?: number | undefined;
470
+ targetPurchaseDate?: string | undefined;
471
+ employmentMonths?: number | undefined;
472
+ firstTimeBuyer?: boolean | undefined;
473
+ veteranStatus?: boolean | undefined;
474
+ ruralArea?: boolean | undefined;
475
+ }, {
476
+ type: "homeownership-readiness";
477
+ annualIncomeCents: number;
478
+ monthlyDebtCents: number;
479
+ currentSavingsCents: number;
480
+ targetDownPaymentCents: number;
481
+ creditScore?: number | undefined;
482
+ targetPurchaseDate?: string | undefined;
483
+ employmentMonths?: number | undefined;
484
+ firstTimeBuyer?: boolean | undefined;
485
+ veteranStatus?: boolean | undefined;
486
+ ruralArea?: boolean | undefined;
487
+ }>;
488
+ export type HomeownershipReadinessInput = z.infer<typeof HomeownershipReadinessInputSchema>;
489
+ /** Union of all skill input types */
490
+ export declare const SkillInputSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
491
+ type: z.ZodLiteral<"deposit-validation">;
492
+ depositAmountCents: z.ZodNumber;
493
+ monthlyRentCents: z.ZodNumber;
494
+ currency: z.ZodEnum<["USD", "CAD", "USDC"]>;
495
+ leaseTermMonths: z.ZodOptional<z.ZodNumber>;
496
+ landlordConsentSignature: z.ZodOptional<z.ZodString>;
497
+ tenantConsentSignature: z.ZodOptional<z.ZodString>;
498
+ mutualAssentTimestamp: z.ZodOptional<z.ZodNumber>;
499
+ collateralType: z.ZodOptional<z.ZodString>;
500
+ collateralValueCents: z.ZodOptional<z.ZodNumber>;
501
+ originalDepositValueCents: z.ZodOptional<z.ZodNumber>;
502
+ yieldShareActive: z.ZodOptional<z.ZodBoolean>;
503
+ tenantYieldPercentage: z.ZodOptional<z.ZodNumber>;
504
+ instrumentType: z.ZodOptional<z.ZodString>;
505
+ custodyType: z.ZodOptional<z.ZodString>;
506
+ sentinelMonitoring: z.ZodOptional<z.ZodBoolean>;
507
+ sentinelMode: z.ZodOptional<z.ZodString>;
508
+ lastSentinelCheckMs: z.ZodOptional<z.ZodNumber>;
509
+ auditLogEnabled: z.ZodOptional<z.ZodBoolean>;
510
+ lastDecisionReasoning: z.ZodOptional<z.ZodString>;
511
+ multiSigEnabled: z.ZodOptional<z.ZodBoolean>;
512
+ rtbCompliantAgreement: z.ZodOptional<z.ZodBoolean>;
513
+ disputeResolutionEnabled: z.ZodOptional<z.ZodBoolean>;
514
+ wbtcUsdcRatio: z.ZodOptional<z.ZodNumber>;
515
+ }, "strip", z.ZodTypeAny, {
516
+ type: "deposit-validation";
517
+ depositAmountCents: number;
518
+ monthlyRentCents: number;
519
+ currency: "USD" | "CAD" | "USDC";
520
+ leaseTermMonths?: number | undefined;
521
+ landlordConsentSignature?: string | undefined;
522
+ tenantConsentSignature?: string | undefined;
523
+ mutualAssentTimestamp?: number | undefined;
524
+ collateralType?: string | undefined;
525
+ collateralValueCents?: number | undefined;
526
+ originalDepositValueCents?: number | undefined;
527
+ yieldShareActive?: boolean | undefined;
528
+ tenantYieldPercentage?: number | undefined;
529
+ instrumentType?: string | undefined;
530
+ custodyType?: string | undefined;
531
+ sentinelMonitoring?: boolean | undefined;
532
+ sentinelMode?: string | undefined;
533
+ lastSentinelCheckMs?: number | undefined;
534
+ auditLogEnabled?: boolean | undefined;
535
+ lastDecisionReasoning?: string | undefined;
536
+ multiSigEnabled?: boolean | undefined;
537
+ rtbCompliantAgreement?: boolean | undefined;
538
+ disputeResolutionEnabled?: boolean | undefined;
539
+ wbtcUsdcRatio?: number | undefined;
540
+ }, {
541
+ type: "deposit-validation";
542
+ depositAmountCents: number;
543
+ monthlyRentCents: number;
544
+ currency: "USD" | "CAD" | "USDC";
545
+ leaseTermMonths?: number | undefined;
546
+ landlordConsentSignature?: string | undefined;
547
+ tenantConsentSignature?: string | undefined;
548
+ mutualAssentTimestamp?: number | undefined;
549
+ collateralType?: string | undefined;
550
+ collateralValueCents?: number | undefined;
551
+ originalDepositValueCents?: number | undefined;
552
+ yieldShareActive?: boolean | undefined;
553
+ tenantYieldPercentage?: number | undefined;
554
+ instrumentType?: string | undefined;
555
+ custodyType?: string | undefined;
556
+ sentinelMonitoring?: boolean | undefined;
557
+ sentinelMode?: string | undefined;
558
+ lastSentinelCheckMs?: number | undefined;
559
+ auditLogEnabled?: boolean | undefined;
560
+ lastDecisionReasoning?: string | undefined;
561
+ multiSigEnabled?: boolean | undefined;
562
+ rtbCompliantAgreement?: boolean | undefined;
563
+ disputeResolutionEnabled?: boolean | undefined;
564
+ wbtcUsdcRatio?: number | undefined;
565
+ }>, z.ZodObject<{
566
+ type: z.ZodLiteral<"payment-compliance">;
567
+ paymentAmountCents: z.ZodNumber;
568
+ monthlyRentCents: z.ZodNumber;
569
+ currency: z.ZodEnum<["USD", "CAD", "USDC"]>;
570
+ dueDate: z.ZodString;
571
+ paymentDate: z.ZodString;
572
+ lateFeeAmountCents: z.ZodOptional<z.ZodNumber>;
573
+ gracePeriodDays: z.ZodOptional<z.ZodNumber>;
574
+ }, "strip", z.ZodTypeAny, {
575
+ type: "payment-compliance";
576
+ monthlyRentCents: number;
577
+ currency: "USD" | "CAD" | "USDC";
578
+ paymentAmountCents: number;
579
+ dueDate: string;
580
+ paymentDate: string;
581
+ lateFeeAmountCents?: number | undefined;
582
+ gracePeriodDays?: number | undefined;
583
+ }, {
584
+ type: "payment-compliance";
585
+ monthlyRentCents: number;
586
+ currency: "USD" | "CAD" | "USDC";
587
+ paymentAmountCents: number;
588
+ dueDate: string;
589
+ paymentDate: string;
590
+ lateFeeAmountCents?: number | undefined;
591
+ gracePeriodDays?: number | undefined;
592
+ }>, z.ZodObject<{
593
+ type: z.ZodLiteral<"rent-increase-validation">;
594
+ currentRentCents: z.ZodNumber;
595
+ proposedRentCents: z.ZodNumber;
596
+ currency: z.ZodEnum<["USD", "CAD", "USDC"]>;
597
+ noticeDateDays: z.ZodNumber;
598
+ leaseType: z.ZodOptional<z.ZodEnum<["fixed", "month-to-month", "rent-controlled"]>>;
599
+ }, "strip", z.ZodTypeAny, {
600
+ type: "rent-increase-validation";
601
+ currency: "USD" | "CAD" | "USDC";
602
+ currentRentCents: number;
603
+ proposedRentCents: number;
604
+ noticeDateDays: number;
605
+ leaseType?: "fixed" | "month-to-month" | "rent-controlled" | undefined;
606
+ }, {
607
+ type: "rent-increase-validation";
608
+ currency: "USD" | "CAD" | "USDC";
609
+ currentRentCents: number;
610
+ proposedRentCents: number;
611
+ noticeDateDays: number;
612
+ leaseType?: "fixed" | "month-to-month" | "rent-controlled" | undefined;
613
+ }>, z.ZodObject<{
614
+ type: z.ZodLiteral<"deposit-return">;
615
+ originalDepositCents: z.ZodNumber;
616
+ proposedReturnCents: z.ZodNumber;
617
+ deductionsCents: z.ZodOptional<z.ZodNumber>;
618
+ currency: z.ZodEnum<["USD", "CAD", "USDC"]>;
619
+ leaseEndDate: z.ZodString;
620
+ returnDate: z.ZodString;
621
+ itemizedDeductions: z.ZodOptional<z.ZodArray<z.ZodObject<{
622
+ description: z.ZodString;
623
+ amountCents: z.ZodNumber;
624
+ }, "strip", z.ZodTypeAny, {
625
+ description: string;
626
+ amountCents: number;
627
+ }, {
628
+ description: string;
629
+ amountCents: number;
630
+ }>, "many">>;
631
+ interestOwedCents: z.ZodOptional<z.ZodNumber>;
632
+ }, "strip", z.ZodTypeAny, {
633
+ type: "deposit-return";
634
+ currency: "USD" | "CAD" | "USDC";
635
+ originalDepositCents: number;
636
+ proposedReturnCents: number;
637
+ leaseEndDate: string;
638
+ returnDate: string;
639
+ deductionsCents?: number | undefined;
640
+ itemizedDeductions?: {
641
+ description: string;
642
+ amountCents: number;
643
+ }[] | undefined;
644
+ interestOwedCents?: number | undefined;
645
+ }, {
646
+ type: "deposit-return";
647
+ currency: "USD" | "CAD" | "USDC";
648
+ originalDepositCents: number;
649
+ proposedReturnCents: number;
650
+ leaseEndDate: string;
651
+ returnDate: string;
652
+ deductionsCents?: number | undefined;
653
+ itemizedDeductions?: {
654
+ description: string;
655
+ amountCents: number;
656
+ }[] | undefined;
657
+ interestOwedCents?: number | undefined;
658
+ }>, z.ZodObject<{
659
+ type: z.ZodLiteral<"homeownership-readiness">;
660
+ annualIncomeCents: z.ZodNumber;
661
+ monthlyDebtCents: z.ZodNumber;
662
+ creditScore: z.ZodOptional<z.ZodNumber>;
663
+ currentSavingsCents: z.ZodNumber;
664
+ targetDownPaymentCents: z.ZodNumber;
665
+ targetPurchaseDate: z.ZodOptional<z.ZodString>;
666
+ employmentMonths: z.ZodOptional<z.ZodNumber>;
667
+ firstTimeBuyer: z.ZodOptional<z.ZodBoolean>;
668
+ veteranStatus: z.ZodOptional<z.ZodBoolean>;
669
+ ruralArea: z.ZodOptional<z.ZodBoolean>;
670
+ }, "strip", z.ZodTypeAny, {
671
+ type: "homeownership-readiness";
672
+ annualIncomeCents: number;
673
+ monthlyDebtCents: number;
674
+ currentSavingsCents: number;
675
+ targetDownPaymentCents: number;
676
+ creditScore?: number | undefined;
677
+ targetPurchaseDate?: string | undefined;
678
+ employmentMonths?: number | undefined;
679
+ firstTimeBuyer?: boolean | undefined;
680
+ veteranStatus?: boolean | undefined;
681
+ ruralArea?: boolean | undefined;
682
+ }, {
683
+ type: "homeownership-readiness";
684
+ annualIncomeCents: number;
685
+ monthlyDebtCents: number;
686
+ currentSavingsCents: number;
687
+ targetDownPaymentCents: number;
688
+ creditScore?: number | undefined;
689
+ targetPurchaseDate?: string | undefined;
690
+ employmentMonths?: number | undefined;
691
+ firstTimeBuyer?: boolean | undefined;
692
+ veteranStatus?: boolean | undefined;
693
+ ruralArea?: boolean | undefined;
694
+ }>]>;
695
+ export type SkillInput = z.infer<typeof SkillInputSchema>;
696
+ export interface SkillMetadata {
697
+ id: string;
698
+ name: string;
699
+ description: string;
700
+ jurisdiction: JurisdictionCode;
701
+ version: string;
702
+ capabilities: SkillCapability[];
703
+ permissions: string[];
704
+ tags: string[];
705
+ author: string;
706
+ effectiveDate?: string;
707
+ federalPreemption?: boolean;
708
+ applicableJurisdictions?: JurisdictionCode[];
709
+ }
710
+ export interface HuddleSkill {
711
+ /** Unique identifier for this skill */
712
+ readonly id: string;
713
+ /** Human-readable name */
714
+ readonly name: string;
715
+ /** Primary jurisdiction this skill covers */
716
+ readonly jurisdiction: JurisdictionCode;
717
+ /** Semantic version */
718
+ readonly version: string;
719
+ /** What this skill can validate */
720
+ readonly capabilities: SkillCapability[];
721
+ /** Validate input against jurisdictional rules */
722
+ validate(input: SkillInput): Promise<SkillResult>;
723
+ /** Return human-readable explanation of a validation result */
724
+ explain(result: SkillResult): string;
725
+ /** Return remediation steps for a failed validation */
726
+ remediate(result: SkillResult): RemediationStep[];
727
+ /** Return full skill metadata */
728
+ getMetadata(): SkillMetadata;
729
+ }
730
+ export interface SkillRegistryInterface {
731
+ /** Register a skill */
732
+ register(skill: HuddleSkill): void;
733
+ /** Get a skill by jurisdiction code */
734
+ get(jurisdiction: JurisdictionCode): HuddleSkill | undefined;
735
+ /** List all registered skills */
736
+ list(): HuddleSkill[];
737
+ /** Search by capabilities */
738
+ search(capabilities: SkillCapability[]): HuddleSkill[];
739
+ /** Get all supported jurisdiction codes */
740
+ jurisdictions(): JurisdictionCode[];
741
+ /** Check if a jurisdiction is supported */
742
+ isSupported(jurisdiction: string): boolean;
743
+ }
744
+ export declare const TraigaDecisionLogSchema: z.ZodObject<{
745
+ timestamp: z.ZodNumber;
746
+ skillId: z.ZodString;
747
+ jurisdiction: z.ZodString;
748
+ inputHash: z.ZodString;
749
+ outputHash: z.ZodString;
750
+ decision: z.ZodEnum<["compliant", "non-compliant", "error"]>;
751
+ confidence: z.ZodNumber;
752
+ explanation: z.ZodOptional<z.ZodString>;
753
+ citations: z.ZodOptional<z.ZodArray<z.ZodObject<{
754
+ statute: z.ZodString;
755
+ section: z.ZodString;
756
+ summary: z.ZodString;
757
+ url: z.ZodOptional<z.ZodString>;
758
+ effectiveDate: z.ZodOptional<z.ZodString>;
759
+ }, "strip", z.ZodTypeAny, {
760
+ statute: string;
761
+ section: string;
762
+ summary: string;
763
+ url?: string | undefined;
764
+ effectiveDate?: string | undefined;
765
+ }, {
766
+ statute: string;
767
+ section: string;
768
+ summary: string;
769
+ url?: string | undefined;
770
+ effectiveDate?: string | undefined;
771
+ }>, "many">>;
772
+ agentId: z.ZodOptional<z.ZodString>;
773
+ }, "strip", z.ZodTypeAny, {
774
+ confidence: number;
775
+ jurisdiction: string;
776
+ skillId: string;
777
+ timestamp: number;
778
+ inputHash: string;
779
+ outputHash: string;
780
+ decision: "compliant" | "non-compliant" | "error";
781
+ explanation?: string | undefined;
782
+ citations?: {
783
+ statute: string;
784
+ section: string;
785
+ summary: string;
786
+ url?: string | undefined;
787
+ effectiveDate?: string | undefined;
788
+ }[] | undefined;
789
+ agentId?: string | undefined;
790
+ }, {
791
+ confidence: number;
792
+ jurisdiction: string;
793
+ skillId: string;
794
+ timestamp: number;
795
+ inputHash: string;
796
+ outputHash: string;
797
+ decision: "compliant" | "non-compliant" | "error";
798
+ explanation?: string | undefined;
799
+ citations?: {
800
+ statute: string;
801
+ section: string;
802
+ summary: string;
803
+ url?: string | undefined;
804
+ effectiveDate?: string | undefined;
805
+ }[] | undefined;
806
+ agentId?: string | undefined;
807
+ }>;
808
+ export type TraigaDecisionLog = z.infer<typeof TraigaDecisionLogSchema>;
809
+ /** Pluggable storage adapter for TRAIGA logs */
810
+ export interface TraigaAdapter {
811
+ log(entry: TraigaDecisionLog): Promise<void>;
812
+ query?(filters: Partial<TraigaDecisionLog>): Promise<TraigaDecisionLog[]>;
813
+ }
814
+ //# sourceMappingURL=index.d.ts.map