@noodleseed/one 0.161.2 → 0.162.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 (60) hide show
  1. package/dist/cli.d.ts.map +1 -1
  2. package/dist/cli.js +3 -0
  3. package/dist/cli.js.map +1 -1
  4. package/dist/commands/catalog.d.ts.map +1 -1
  5. package/dist/commands/catalog.js +1 -0
  6. package/dist/commands/catalog.js.map +1 -1
  7. package/dist/commands/solutions-ops.d.ts +7 -0
  8. package/dist/commands/solutions-ops.d.ts.map +1 -0
  9. package/dist/commands/solutions-ops.js +283 -0
  10. package/dist/commands/solutions-ops.js.map +1 -0
  11. package/dist/index.d.ts +1 -1
  12. package/dist/index.d.ts.map +1 -1
  13. package/dist/index.js +1 -1
  14. package/dist/index.js.map +1 -1
  15. package/node_modules/@noodle-borg/agent-kit/dist/curated/command-groups.js +4 -0
  16. package/node_modules/@noodle-borg/agent-kit/dist/curated/error-fixes.js +2 -1
  17. package/node_modules/@noodle-borg/agent-kit/dist/generated/example-files.js +3 -3
  18. package/node_modules/@noodle-borg/agent-kit/dist/generated/surface.js +3 -0
  19. package/node_modules/@noodle-borg/agent-kit/dist/skill-authoring-refs.js +7 -0
  20. package/node_modules/@noodle-borg/authoring/dist/index.d.ts +1 -0
  21. package/node_modules/@noodle-borg/authoring/dist/index.js +1 -0
  22. package/node_modules/@noodle-borg/authoring/dist/load-authored.js +1 -1
  23. package/node_modules/@noodle-borg/authoring/dist/managed-collection.d.ts +26 -0
  24. package/node_modules/@noodle-borg/authoring/dist/managed-collection.js +20 -0
  25. package/node_modules/@noodle-borg/authoring/dist/server.d.ts +3 -0
  26. package/node_modules/@noodle-borg/authoring/dist/server.js +2 -0
  27. package/node_modules/@noodle-borg/cli-catalog/dist/catalog-data-tenant-resources.js +241 -0
  28. package/node_modules/@noodle-borg/compiler/dist/artifact/assemble.js +4 -1
  29. package/node_modules/@noodle-borg/compiler/dist/artifact/types.d.ts +10 -0
  30. package/node_modules/@noodle-borg/compiler/dist/artifact/version.d.ts +4 -1
  31. package/node_modules/@noodle-borg/compiler/dist/artifact/version.js +4 -1
  32. package/node_modules/@noodle-borg/compiler/dist/compile.js +3 -0
  33. package/node_modules/@noodle-borg/compiler/dist/errors.d.ts +1 -1
  34. package/node_modules/@noodle-borg/compiler/dist/index.d.ts +2 -1
  35. package/node_modules/@noodle-borg/compiler/dist/index.js +1 -0
  36. package/node_modules/@noodle-borg/compiler/dist/managed-collections.d.ts +25 -0
  37. package/node_modules/@noodle-borg/compiler/dist/managed-collections.js +184 -0
  38. package/node_modules/@noodle-borg/compiler/dist/manifest/schema.d.ts +14 -0
  39. package/node_modules/@noodle-borg/compiler/dist/manifest/schema.js +3 -0
  40. package/node_modules/@noodle-borg/service/dist/business-information/contracts.js +5 -0
  41. package/node_modules/@noodle-borg/service/dist/business-information/in-memory-store.js +402 -0
  42. package/node_modules/@noodle-borg/service/dist/business-information/model.js +292 -0
  43. package/node_modules/@noodle-borg/service/dist/business-information/pagination.js +50 -0
  44. package/node_modules/@noodle-borg/service/dist/business-information/portable.js +6 -0
  45. package/node_modules/@noodle-borg/service/dist/business-information/profiles.js +121 -0
  46. package/node_modules/@noodle-borg/service/dist/business-information/validation.js +200 -0
  47. package/node_modules/@noodle-borg/service/dist/oauth/store.d.ts +2 -2
  48. package/node_modules/@noodle-borg/service/dist/routes/business-information-dispatch.js +48 -0
  49. package/node_modules/@noodle-borg/service/dist/routes/business-information-paths.js +92 -0
  50. package/node_modules/@noodle-borg/service/dist/routes/business-information-wire.js +117 -0
  51. package/node_modules/@noodle-borg/service/dist/routes/business-information.js +551 -0
  52. package/node_modules/@noodle-borg/service/dist/service-resource-cleanup.js +2 -0
  53. package/node_modules/@noodle-borg/service/dist/service.js +25 -0
  54. package/node_modules/@noodle-borg/wire-contracts/dist/business-information.d.ts +583 -0
  55. package/node_modules/@noodle-borg/wire-contracts/dist/business-information.js +205 -0
  56. package/node_modules/@noodle-borg/wire-contracts/dist/index.d.ts +4 -3
  57. package/node_modules/@noodle-borg/wire-contracts/dist/index.js +1 -0
  58. package/node_modules/@noodle-borg/wire-contracts/dist/knowledge.d.ts +3 -3
  59. package/node_modules/@noodle-borg/wire-contracts/dist/managed-assistant-sponsorship.d.ts +8 -8
  60. package/package.json +1 -1
@@ -0,0 +1,583 @@
1
+ import { z } from 'zod';
2
+ /** Public, data-driven solution profiles shipped by the managed-record MVP. */
3
+ export declare const SOLUTION_PROFILE_IDS: readonly ["travel", "b2b_saas", "ecommerce", "restaurant"];
4
+ export declare const SolutionProfileIdSchema: z.ZodEnum<{
5
+ travel: "travel";
6
+ b2b_saas: "b2b_saas";
7
+ ecommerce: "ecommerce";
8
+ restaurant: "restaurant";
9
+ }>;
10
+ export type SolutionProfileId = z.infer<typeof SolutionProfileIdSchema>;
11
+ export declare const MANAGED_RECORD_RETENTION_DAYS: readonly [7, 30, 90];
12
+ export declare const ManagedRecordRetentionDaysSchema: z.ZodUnion<readonly [z.ZodLiteral<7>, z.ZodLiteral<30>, z.ZodLiteral<90>]>;
13
+ export type ManagedRecordRetentionDays = z.infer<typeof ManagedRecordRetentionDaysSchema>;
14
+ export declare const MANAGED_RECORD_STATUSES: readonly ["new", "in_progress", "resolved", "closed"];
15
+ export declare const ManagedRecordStatusSchema: z.ZodEnum<{
16
+ new: "new";
17
+ in_progress: "in_progress";
18
+ resolved: "resolved";
19
+ closed: "closed";
20
+ }>;
21
+ export type ManagedRecordStatus = z.infer<typeof ManagedRecordStatusSchema>;
22
+ export declare const BUSINESS_GRANT_ROLES: readonly ["administrator", "manager", "operator", "viewer"];
23
+ export declare const BusinessGrantRoleSchema: z.ZodEnum<{
24
+ viewer: "viewer";
25
+ administrator: "administrator";
26
+ manager: "manager";
27
+ operator: "operator";
28
+ }>;
29
+ export type BusinessGrantRole = z.infer<typeof BusinessGrantRoleSchema>;
30
+ export declare const MANAGED_RECORD_ORIGIN_SURFACES: readonly ["public", "portal", "mcp", "api"];
31
+ export declare const ManagedRecordOriginSurfaceSchema: z.ZodEnum<{
32
+ public: "public";
33
+ mcp: "mcp";
34
+ portal: "portal";
35
+ api: "api";
36
+ }>;
37
+ export type ManagedRecordOriginSurface = z.infer<typeof ManagedRecordOriginSurfaceSchema>;
38
+ export declare const ManagedCollectionProfileSchema: z.ZodObject<{
39
+ key: z.ZodString;
40
+ title: z.ZodString;
41
+ singularTitle: z.ZodString;
42
+ schemaVersion: z.ZodNumber;
43
+ schemaDigest: z.ZodString;
44
+ recordSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
45
+ summaryFields: z.ZodArray<z.ZodString>;
46
+ }, z.core.$strict>;
47
+ export type ManagedCollectionProfile = z.infer<typeof ManagedCollectionProfileSchema>;
48
+ export declare const SolutionProfileSchema: z.ZodObject<{
49
+ id: z.ZodEnum<{
50
+ travel: "travel";
51
+ b2b_saas: "b2b_saas";
52
+ ecommerce: "ecommerce";
53
+ restaurant: "restaurant";
54
+ }>;
55
+ title: z.ZodString;
56
+ description: z.ZodString;
57
+ collection: z.ZodObject<{
58
+ key: z.ZodString;
59
+ title: z.ZodString;
60
+ singularTitle: z.ZodString;
61
+ schemaVersion: z.ZodNumber;
62
+ schemaDigest: z.ZodString;
63
+ recordSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
64
+ summaryFields: z.ZodArray<z.ZodString>;
65
+ }, z.core.$strict>;
66
+ }, z.core.$strict>;
67
+ export type SolutionProfile = z.infer<typeof SolutionProfileSchema>;
68
+ export declare const SolutionCatalogResponseSchema: z.ZodObject<{
69
+ ok: z.ZodLiteral<true>;
70
+ data: z.ZodObject<{
71
+ profiles: z.ZodArray<z.ZodObject<{
72
+ id: z.ZodEnum<{
73
+ travel: "travel";
74
+ b2b_saas: "b2b_saas";
75
+ ecommerce: "ecommerce";
76
+ restaurant: "restaurant";
77
+ }>;
78
+ title: z.ZodString;
79
+ description: z.ZodString;
80
+ collection: z.ZodObject<{
81
+ key: z.ZodString;
82
+ title: z.ZodString;
83
+ singularTitle: z.ZodString;
84
+ schemaVersion: z.ZodNumber;
85
+ schemaDigest: z.ZodString;
86
+ recordSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
87
+ summaryFields: z.ZodArray<z.ZodString>;
88
+ }, z.core.$strict>;
89
+ }, z.core.$strict>>;
90
+ }, z.core.$strict>;
91
+ }, z.core.$strict>;
92
+ export type SolutionCatalogResponse = z.infer<typeof SolutionCatalogResponseSchema>;
93
+ export declare const SolutionInstallationCreateRequestSchema: z.ZodObject<{
94
+ profileId: z.ZodEnum<{
95
+ travel: "travel";
96
+ b2b_saas: "b2b_saas";
97
+ ecommerce: "ecommerce";
98
+ restaurant: "restaurant";
99
+ }>;
100
+ appSlug: z.ZodString;
101
+ environment: z.ZodString;
102
+ retentionDays: z.ZodUnion<readonly [z.ZodLiteral<7>, z.ZodLiteral<30>, z.ZodLiteral<90>]>;
103
+ }, z.core.$strict>;
104
+ export type SolutionInstallationCreateRequest = z.infer<typeof SolutionInstallationCreateRequestSchema>;
105
+ export declare const SolutionInstallationSchema: z.ZodObject<{
106
+ id: z.ZodString;
107
+ organizationId: z.ZodString;
108
+ profileId: z.ZodEnum<{
109
+ travel: "travel";
110
+ b2b_saas: "b2b_saas";
111
+ ecommerce: "ecommerce";
112
+ restaurant: "restaurant";
113
+ }>;
114
+ appSlug: z.ZodString;
115
+ environment: z.ZodString;
116
+ retentionDays: z.ZodUnion<readonly [z.ZodLiteral<7>, z.ZodLiteral<30>, z.ZodLiteral<90>]>;
117
+ publicId: z.ZodString;
118
+ active: z.ZodBoolean;
119
+ currentRole: z.ZodEnum<{
120
+ viewer: "viewer";
121
+ administrator: "administrator";
122
+ manager: "manager";
123
+ operator: "operator";
124
+ }>;
125
+ revision: z.ZodNumber;
126
+ collection: z.ZodObject<{
127
+ key: z.ZodString;
128
+ title: z.ZodString;
129
+ singularTitle: z.ZodString;
130
+ schemaVersion: z.ZodNumber;
131
+ schemaDigest: z.ZodString;
132
+ recordSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
133
+ summaryFields: z.ZodArray<z.ZodString>;
134
+ }, z.core.$strict>;
135
+ createdAt: z.ZodISODateTime;
136
+ updatedAt: z.ZodISODateTime;
137
+ createdBySubject: z.ZodString;
138
+ }, z.core.$strict>;
139
+ export type SolutionInstallation = z.infer<typeof SolutionInstallationSchema>;
140
+ export declare const SolutionInstallationResponseSchema: z.ZodObject<{
141
+ ok: z.ZodLiteral<true>;
142
+ data: z.ZodObject<{
143
+ installation: z.ZodObject<{
144
+ id: z.ZodString;
145
+ organizationId: z.ZodString;
146
+ profileId: z.ZodEnum<{
147
+ travel: "travel";
148
+ b2b_saas: "b2b_saas";
149
+ ecommerce: "ecommerce";
150
+ restaurant: "restaurant";
151
+ }>;
152
+ appSlug: z.ZodString;
153
+ environment: z.ZodString;
154
+ retentionDays: z.ZodUnion<readonly [z.ZodLiteral<7>, z.ZodLiteral<30>, z.ZodLiteral<90>]>;
155
+ publicId: z.ZodString;
156
+ active: z.ZodBoolean;
157
+ currentRole: z.ZodEnum<{
158
+ viewer: "viewer";
159
+ administrator: "administrator";
160
+ manager: "manager";
161
+ operator: "operator";
162
+ }>;
163
+ revision: z.ZodNumber;
164
+ collection: z.ZodObject<{
165
+ key: z.ZodString;
166
+ title: z.ZodString;
167
+ singularTitle: z.ZodString;
168
+ schemaVersion: z.ZodNumber;
169
+ schemaDigest: z.ZodString;
170
+ recordSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
171
+ summaryFields: z.ZodArray<z.ZodString>;
172
+ }, z.core.$strict>;
173
+ createdAt: z.ZodISODateTime;
174
+ updatedAt: z.ZodISODateTime;
175
+ createdBySubject: z.ZodString;
176
+ }, z.core.$strict>;
177
+ }, z.core.$strict>;
178
+ }, z.core.$strict>;
179
+ export type SolutionInstallationResponse = z.infer<typeof SolutionInstallationResponseSchema>;
180
+ export declare const SolutionInstallationListResponseSchema: z.ZodObject<{
181
+ ok: z.ZodLiteral<true>;
182
+ data: z.ZodObject<{
183
+ installations: z.ZodArray<z.ZodObject<{
184
+ id: z.ZodString;
185
+ organizationId: z.ZodString;
186
+ profileId: z.ZodEnum<{
187
+ travel: "travel";
188
+ b2b_saas: "b2b_saas";
189
+ ecommerce: "ecommerce";
190
+ restaurant: "restaurant";
191
+ }>;
192
+ appSlug: z.ZodString;
193
+ environment: z.ZodString;
194
+ retentionDays: z.ZodUnion<readonly [z.ZodLiteral<7>, z.ZodLiteral<30>, z.ZodLiteral<90>]>;
195
+ publicId: z.ZodString;
196
+ active: z.ZodBoolean;
197
+ currentRole: z.ZodEnum<{
198
+ viewer: "viewer";
199
+ administrator: "administrator";
200
+ manager: "manager";
201
+ operator: "operator";
202
+ }>;
203
+ revision: z.ZodNumber;
204
+ collection: z.ZodObject<{
205
+ key: z.ZodString;
206
+ title: z.ZodString;
207
+ singularTitle: z.ZodString;
208
+ schemaVersion: z.ZodNumber;
209
+ schemaDigest: z.ZodString;
210
+ recordSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
211
+ summaryFields: z.ZodArray<z.ZodString>;
212
+ }, z.core.$strict>;
213
+ createdAt: z.ZodISODateTime;
214
+ updatedAt: z.ZodISODateTime;
215
+ createdBySubject: z.ZodString;
216
+ }, z.core.$strict>>;
217
+ }, z.core.$strict>;
218
+ }, z.core.$strict>;
219
+ export type SolutionInstallationListResponse = z.infer<typeof SolutionInstallationListResponseSchema>;
220
+ export declare const BusinessGrantCreateRequestSchema: z.ZodObject<{
221
+ subject: z.ZodString;
222
+ email: z.ZodEmail;
223
+ role: z.ZodEnum<{
224
+ viewer: "viewer";
225
+ administrator: "administrator";
226
+ manager: "manager";
227
+ operator: "operator";
228
+ }>;
229
+ expectedRevision: z.ZodOptional<z.ZodNumber>;
230
+ }, z.core.$strict>;
231
+ export type BusinessGrantCreateRequest = z.infer<typeof BusinessGrantCreateRequestSchema>;
232
+ export declare const BusinessGrantSchema: z.ZodObject<{
233
+ installationId: z.ZodString;
234
+ subject: z.ZodString;
235
+ email: z.ZodEmail;
236
+ role: z.ZodEnum<{
237
+ viewer: "viewer";
238
+ administrator: "administrator";
239
+ manager: "manager";
240
+ operator: "operator";
241
+ }>;
242
+ revision: z.ZodNumber;
243
+ createdAt: z.ZodISODateTime;
244
+ createdBySubject: z.ZodString;
245
+ revokedAt: z.ZodOptional<z.ZodISODateTime>;
246
+ }, z.core.$strict>;
247
+ export type BusinessGrant = z.infer<typeof BusinessGrantSchema>;
248
+ export declare const BusinessGrantResponseSchema: z.ZodObject<{
249
+ ok: z.ZodLiteral<true>;
250
+ data: z.ZodObject<{
251
+ grant: z.ZodObject<{
252
+ installationId: z.ZodString;
253
+ subject: z.ZodString;
254
+ email: z.ZodEmail;
255
+ role: z.ZodEnum<{
256
+ viewer: "viewer";
257
+ administrator: "administrator";
258
+ manager: "manager";
259
+ operator: "operator";
260
+ }>;
261
+ revision: z.ZodNumber;
262
+ createdAt: z.ZodISODateTime;
263
+ createdBySubject: z.ZodString;
264
+ revokedAt: z.ZodOptional<z.ZodISODateTime>;
265
+ }, z.core.$strict>;
266
+ }, z.core.$strict>;
267
+ }, z.core.$strict>;
268
+ export type BusinessGrantResponse = z.infer<typeof BusinessGrantResponseSchema>;
269
+ export declare const BusinessGrantListResponseSchema: z.ZodObject<{
270
+ ok: z.ZodLiteral<true>;
271
+ data: z.ZodObject<{
272
+ grants: z.ZodArray<z.ZodObject<{
273
+ installationId: z.ZodString;
274
+ subject: z.ZodString;
275
+ email: z.ZodEmail;
276
+ role: z.ZodEnum<{
277
+ viewer: "viewer";
278
+ administrator: "administrator";
279
+ manager: "manager";
280
+ operator: "operator";
281
+ }>;
282
+ revision: z.ZodNumber;
283
+ createdAt: z.ZodISODateTime;
284
+ createdBySubject: z.ZodString;
285
+ revokedAt: z.ZodOptional<z.ZodISODateTime>;
286
+ }, z.core.$strict>>;
287
+ }, z.core.$strict>;
288
+ }, z.core.$strict>;
289
+ export type BusinessGrantListResponse = z.infer<typeof BusinessGrantListResponseSchema>;
290
+ export declare const ManagedRecordCreateRequestSchema: z.ZodObject<{
291
+ payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
292
+ }, z.core.$strict>;
293
+ export type ManagedRecordCreateRequest = z.infer<typeof ManagedRecordCreateRequestSchema>;
294
+ export declare const ManagedRecordOriginSchema: z.ZodObject<{
295
+ surface: z.ZodEnum<{
296
+ public: "public";
297
+ mcp: "mcp";
298
+ portal: "portal";
299
+ api: "api";
300
+ }>;
301
+ subject: z.ZodOptional<z.ZodString>;
302
+ }, z.core.$strict>;
303
+ export type ManagedRecordOrigin = z.infer<typeof ManagedRecordOriginSchema>;
304
+ export declare const ManagedRecordSchema: z.ZodObject<{
305
+ id: z.ZodString;
306
+ installationId: z.ZodString;
307
+ collection: z.ZodString;
308
+ schemaVersion: z.ZodNumber;
309
+ schemaDigest: z.ZodString;
310
+ payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
311
+ status: z.ZodEnum<{
312
+ new: "new";
313
+ in_progress: "in_progress";
314
+ resolved: "resolved";
315
+ closed: "closed";
316
+ }>;
317
+ assigneeSubject: z.ZodOptional<z.ZodString>;
318
+ revision: z.ZodNumber;
319
+ origin: z.ZodObject<{
320
+ surface: z.ZodEnum<{
321
+ public: "public";
322
+ mcp: "mcp";
323
+ portal: "portal";
324
+ api: "api";
325
+ }>;
326
+ subject: z.ZodOptional<z.ZodString>;
327
+ }, z.core.$strict>;
328
+ createdAt: z.ZodISODateTime;
329
+ updatedAt: z.ZodISODateTime;
330
+ retentionExpiresAt: z.ZodISODateTime;
331
+ }, z.core.$strict>;
332
+ export type ManagedRecord = z.infer<typeof ManagedRecordSchema>;
333
+ export declare const ManagedRecordTombstoneSchema: z.ZodObject<{
334
+ id: z.ZodString;
335
+ installationId: z.ZodString;
336
+ collection: z.ZodString;
337
+ status: z.ZodEnum<{
338
+ new: "new";
339
+ in_progress: "in_progress";
340
+ resolved: "resolved";
341
+ closed: "closed";
342
+ }>;
343
+ revision: z.ZodNumber;
344
+ deletedAt: z.ZodISODateTime;
345
+ deletionReason: z.ZodEnum<{
346
+ customer_request: "customer_request";
347
+ retention_expired: "retention_expired";
348
+ }>;
349
+ }, z.core.$strict>;
350
+ export type ManagedRecordTombstone = z.infer<typeof ManagedRecordTombstoneSchema>;
351
+ export declare const ManagedRecordResponseSchema: z.ZodObject<{
352
+ ok: z.ZodLiteral<true>;
353
+ data: z.ZodObject<{
354
+ record: z.ZodObject<{
355
+ id: z.ZodString;
356
+ installationId: z.ZodString;
357
+ collection: z.ZodString;
358
+ schemaVersion: z.ZodNumber;
359
+ schemaDigest: z.ZodString;
360
+ payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
361
+ status: z.ZodEnum<{
362
+ new: "new";
363
+ in_progress: "in_progress";
364
+ resolved: "resolved";
365
+ closed: "closed";
366
+ }>;
367
+ assigneeSubject: z.ZodOptional<z.ZodString>;
368
+ revision: z.ZodNumber;
369
+ origin: z.ZodObject<{
370
+ surface: z.ZodEnum<{
371
+ public: "public";
372
+ mcp: "mcp";
373
+ portal: "portal";
374
+ api: "api";
375
+ }>;
376
+ subject: z.ZodOptional<z.ZodString>;
377
+ }, z.core.$strict>;
378
+ createdAt: z.ZodISODateTime;
379
+ updatedAt: z.ZodISODateTime;
380
+ retentionExpiresAt: z.ZodISODateTime;
381
+ }, z.core.$strict>;
382
+ }, z.core.$strict>;
383
+ }, z.core.$strict>;
384
+ export type ManagedRecordResponse = z.infer<typeof ManagedRecordResponseSchema>;
385
+ export declare const ManagedRecordListResponseSchema: z.ZodObject<{
386
+ ok: z.ZodLiteral<true>;
387
+ data: z.ZodObject<{
388
+ records: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
389
+ id: z.ZodString;
390
+ installationId: z.ZodString;
391
+ collection: z.ZodString;
392
+ schemaVersion: z.ZodNumber;
393
+ schemaDigest: z.ZodString;
394
+ payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
395
+ status: z.ZodEnum<{
396
+ new: "new";
397
+ in_progress: "in_progress";
398
+ resolved: "resolved";
399
+ closed: "closed";
400
+ }>;
401
+ assigneeSubject: z.ZodOptional<z.ZodString>;
402
+ revision: z.ZodNumber;
403
+ origin: z.ZodObject<{
404
+ surface: z.ZodEnum<{
405
+ public: "public";
406
+ mcp: "mcp";
407
+ portal: "portal";
408
+ api: "api";
409
+ }>;
410
+ subject: z.ZodOptional<z.ZodString>;
411
+ }, z.core.$strict>;
412
+ createdAt: z.ZodISODateTime;
413
+ updatedAt: z.ZodISODateTime;
414
+ retentionExpiresAt: z.ZodISODateTime;
415
+ }, z.core.$strict>, z.ZodObject<{
416
+ id: z.ZodString;
417
+ installationId: z.ZodString;
418
+ collection: z.ZodString;
419
+ status: z.ZodEnum<{
420
+ new: "new";
421
+ in_progress: "in_progress";
422
+ resolved: "resolved";
423
+ closed: "closed";
424
+ }>;
425
+ revision: z.ZodNumber;
426
+ deletedAt: z.ZodISODateTime;
427
+ deletionReason: z.ZodEnum<{
428
+ customer_request: "customer_request";
429
+ retention_expired: "retention_expired";
430
+ }>;
431
+ }, z.core.$strict>]>>;
432
+ nextCursor: z.ZodOptional<z.ZodString>;
433
+ }, z.core.$strict>;
434
+ }, z.core.$strict>;
435
+ export type ManagedRecordListResponse = z.infer<typeof ManagedRecordListResponseSchema>;
436
+ export declare const ManagedRecordMutationRequestSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
437
+ operation: z.ZodLiteral<"update">;
438
+ expectedRevision: z.ZodNumber;
439
+ patch: z.ZodRecord<z.ZodString, z.ZodUnknown>;
440
+ }, z.core.$strict>, z.ZodObject<{
441
+ operation: z.ZodLiteral<"assign">;
442
+ expectedRevision: z.ZodNumber;
443
+ assigneeSubject: z.ZodNullable<z.ZodString>;
444
+ }, z.core.$strict>, z.ZodObject<{
445
+ operation: z.ZodLiteral<"set-status">;
446
+ expectedRevision: z.ZodNumber;
447
+ status: z.ZodEnum<{
448
+ new: "new";
449
+ in_progress: "in_progress";
450
+ resolved: "resolved";
451
+ closed: "closed";
452
+ }>;
453
+ }, z.core.$strict>, z.ZodObject<{
454
+ operation: z.ZodLiteral<"add-note">;
455
+ expectedRevision: z.ZodNumber;
456
+ note: z.ZodString;
457
+ }, z.core.$strict>], "operation">;
458
+ export type ManagedRecordMutationRequest = z.infer<typeof ManagedRecordMutationRequestSchema>;
459
+ export declare const ManagedRecordActivitySchema: z.ZodObject<{
460
+ id: z.ZodString;
461
+ recordId: z.ZodString;
462
+ revision: z.ZodNumber;
463
+ operation: z.ZodEnum<{
464
+ update: "update";
465
+ assign: "assign";
466
+ "set-status": "set-status";
467
+ "add-note": "add-note";
468
+ create: "create";
469
+ delete: "delete";
470
+ }>;
471
+ actorSubject: z.ZodOptional<z.ZodString>;
472
+ createdAt: z.ZodISODateTime;
473
+ note: z.ZodOptional<z.ZodString>;
474
+ }, z.core.$strict>;
475
+ export type ManagedRecordActivity = z.infer<typeof ManagedRecordActivitySchema>;
476
+ export declare const ManagedRecordActivityListResponseSchema: z.ZodObject<{
477
+ ok: z.ZodLiteral<true>;
478
+ data: z.ZodObject<{
479
+ activities: z.ZodArray<z.ZodObject<{
480
+ id: z.ZodString;
481
+ recordId: z.ZodString;
482
+ revision: z.ZodNumber;
483
+ operation: z.ZodEnum<{
484
+ update: "update";
485
+ assign: "assign";
486
+ "set-status": "set-status";
487
+ "add-note": "add-note";
488
+ create: "create";
489
+ delete: "delete";
490
+ }>;
491
+ actorSubject: z.ZodOptional<z.ZodString>;
492
+ createdAt: z.ZodISODateTime;
493
+ note: z.ZodOptional<z.ZodString>;
494
+ }, z.core.$strict>>;
495
+ }, z.core.$strict>;
496
+ }, z.core.$strict>;
497
+ export type ManagedRecordActivityListResponse = z.infer<typeof ManagedRecordActivityListResponseSchema>;
498
+ export declare const ManagedRecordDeleteResponseSchema: z.ZodObject<{
499
+ ok: z.ZodLiteral<true>;
500
+ data: z.ZodObject<{
501
+ recordId: z.ZodString;
502
+ deletedAt: z.ZodISODateTime;
503
+ }, z.core.$strict>;
504
+ }, z.core.$strict>;
505
+ export type ManagedRecordDeleteResponse = z.infer<typeof ManagedRecordDeleteResponseSchema>;
506
+ export declare const ManagedRecordExportResponseSchema: z.ZodObject<{
507
+ ok: z.ZodLiteral<true>;
508
+ data: z.ZodObject<{
509
+ records: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
510
+ id: z.ZodString;
511
+ installationId: z.ZodString;
512
+ collection: z.ZodString;
513
+ schemaVersion: z.ZodNumber;
514
+ schemaDigest: z.ZodString;
515
+ payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
516
+ status: z.ZodEnum<{
517
+ new: "new";
518
+ in_progress: "in_progress";
519
+ resolved: "resolved";
520
+ closed: "closed";
521
+ }>;
522
+ assigneeSubject: z.ZodOptional<z.ZodString>;
523
+ revision: z.ZodNumber;
524
+ origin: z.ZodObject<{
525
+ surface: z.ZodEnum<{
526
+ public: "public";
527
+ mcp: "mcp";
528
+ portal: "portal";
529
+ api: "api";
530
+ }>;
531
+ subject: z.ZodOptional<z.ZodString>;
532
+ }, z.core.$strict>;
533
+ createdAt: z.ZodISODateTime;
534
+ updatedAt: z.ZodISODateTime;
535
+ retentionExpiresAt: z.ZodISODateTime;
536
+ }, z.core.$strict>, z.ZodObject<{
537
+ id: z.ZodString;
538
+ installationId: z.ZodString;
539
+ collection: z.ZodString;
540
+ status: z.ZodEnum<{
541
+ new: "new";
542
+ in_progress: "in_progress";
543
+ resolved: "resolved";
544
+ closed: "closed";
545
+ }>;
546
+ revision: z.ZodNumber;
547
+ deletedAt: z.ZodISODateTime;
548
+ deletionReason: z.ZodEnum<{
549
+ customer_request: "customer_request";
550
+ retention_expired: "retention_expired";
551
+ }>;
552
+ }, z.core.$strict>]>>;
553
+ nextCursor: z.ZodOptional<z.ZodString>;
554
+ }, z.core.$strict>;
555
+ }, z.core.$strict>;
556
+ export type ManagedRecordExportResponse = z.infer<typeof ManagedRecordExportResponseSchema>;
557
+ export declare const PublicSolutionIntakeResponseSchema: z.ZodObject<{
558
+ ok: z.ZodLiteral<true>;
559
+ data: z.ZodObject<{
560
+ publicId: z.ZodString;
561
+ title: z.ZodString;
562
+ description: z.ZodString;
563
+ collection: z.ZodObject<{
564
+ key: z.ZodString;
565
+ title: z.ZodString;
566
+ singularTitle: z.ZodString;
567
+ schemaVersion: z.ZodNumber;
568
+ schemaDigest: z.ZodString;
569
+ recordSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
570
+ summaryFields: z.ZodArray<z.ZodString>;
571
+ }, z.core.$strict>;
572
+ }, z.core.$strict>;
573
+ }, z.core.$strict>;
574
+ export type PublicSolutionIntakeResponse = z.infer<typeof PublicSolutionIntakeResponseSchema>;
575
+ export declare const PublicSolutionIntakeReceiptResponseSchema: z.ZodObject<{
576
+ ok: z.ZodLiteral<true>;
577
+ data: z.ZodObject<{
578
+ recordId: z.ZodString;
579
+ receivedAt: z.ZodISODateTime;
580
+ }, z.core.$strict>;
581
+ }, z.core.$strict>;
582
+ export type PublicSolutionIntakeReceiptResponse = z.infer<typeof PublicSolutionIntakeReceiptResponseSchema>;
583
+ //# sourceMappingURL=business-information.d.ts.map