@gravity-rail/sdk 0.47.0 → 0.50.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.
- package/README.md +117 -9
- package/dist/agui.cjs +17 -2
- package/dist/agui.cjs.map +1 -1
- package/dist/agui.d.cts +9 -1
- package/dist/agui.d.ts +9 -1
- package/dist/agui.js +15 -1
- package/dist/agui.js.map +1 -1
- package/dist/{chat-interaction-Bqj3Vbst.d.cts → chat-interaction-CmGKKlnL.d.ts} +244 -37
- package/dist/{chat-interaction-DiZVtDRE.d.ts → chat-interaction-THDGF4ko.d.cts} +244 -37
- package/dist/{chunk-72SWNLVD.js → chunk-MMDSZ25F.js} +1 -1
- package/dist/chunk-MMDSZ25F.js.map +1 -0
- package/dist/{chunk-N4GQWNGU.js → chunk-QRZVXPR4.js} +204 -50
- package/dist/chunk-QRZVXPR4.js.map +1 -0
- package/dist/{chunk-67QXTQVL.js → chunk-TGL72KPS.js} +59 -118
- package/dist/chunk-TGL72KPS.js.map +1 -0
- package/dist/helpers.cjs.map +1 -1
- package/dist/helpers.d.cts +4 -4
- package/dist/helpers.d.ts +4 -4
- package/dist/helpers.js +1 -1
- package/dist/index.cjs +262 -164
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +7 -6
- package/dist/index.d.ts +7 -6
- package/dist/index.js +9 -3
- package/dist/index.js.map +1 -1
- package/dist/internal.cjs +262 -164
- package/dist/internal.cjs.map +1 -1
- package/dist/internal.d.cts +148 -6
- package/dist/internal.d.ts +148 -6
- package/dist/internal.js +9 -3
- package/dist/internal.js.map +1 -1
- package/dist/{member-import-D7U4kDIy.d.cts → member-import-9zHkUjcn.d.cts} +1 -1
- package/dist/{member-import-C2Xt_o5d.d.ts → member-import-ocJ_K474.d.ts} +1 -1
- package/dist/{revision-state-ZC4qP3CS.d.cts → path-BQgkft9c.d.ts} +64 -3
- package/dist/{revision-state-DaVz2528.d.ts → path-DZbDwvpS.d.cts} +64 -3
- package/dist/schemas.cjs +59 -16
- package/dist/schemas.cjs.map +1 -1
- package/dist/schemas.d.cts +22 -3
- package/dist/schemas.d.ts +22 -3
- package/dist/schemas.js +59 -17
- package/dist/schemas.js.map +1 -1
- package/dist/{tasks-Ca6yfsj2.d.cts → tasks-DsNsbco5.d.cts} +66 -14
- package/dist/{tasks-Ca6yfsj2.d.ts → tasks-DsNsbco5.d.ts} +66 -14
- package/package.json +2 -2
- package/dist/chunk-67QXTQVL.js.map +0 -1
- package/dist/chunk-72SWNLVD.js.map +0 -1
- package/dist/chunk-N4GQWNGU.js.map +0 -1
package/dist/schemas.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { ad as CalendarScheduleAvailabilityType, af as CalendarScheduleRecurrence, a5 as CalendarEventStatus, C as AttendeeResponseStatus, D as DataFieldType, b8 as DataTypeRecordScope, b4 as DataSensitivity, aQ as DataCategory, bT as IndexStatus } from './tasks-
|
|
3
|
-
export { fS as AbilityData, fT as AbilityDataSchema, fU as AnonymousInquiryFormSchema, fV as ArchiveTaskInput, fW as ArchiveTaskSchema, fX as ChildTaskFormData, fY as ChildTaskFormDataSchema, fZ as CreateInquiryInput, f_ as CreateInquirySchema, f$ as CreateTaskInput, g0 as CreateTaskSchema, g1 as DeleteInquiryInput, g2 as DeleteInquirySchema, g3 as DeleteTaskInput, g4 as DeleteTaskSchema, g5 as EnrichInquiryInput, g6 as EnrichInquirySchema, g7 as GetInquiryInput, g8 as GetInquirySchema, g9 as GetTaskInput, ga as GetTaskSchema, gb as ListInquiriesInput, gc as ListInquiriesSchema, gd as ListTasksInput, ge as ListTasksSchema, gf as
|
|
2
|
+
import { ad as CalendarScheduleAvailabilityType, af as CalendarScheduleRecurrence, a5 as CalendarEventStatus, C as AttendeeResponseStatus, D as DataFieldType, b8 as DataTypeRecordScope, b4 as DataSensitivity, aQ as DataCategory, bT as IndexStatus } from './tasks-DsNsbco5.cjs';
|
|
3
|
+
export { fS as AbilityData, fT as AbilityDataSchema, fU as AnonymousInquiryFormSchema, fV as ArchiveTaskInput, fW as ArchiveTaskSchema, fX as ChildTaskFormData, fY as ChildTaskFormDataSchema, fZ as CreateInquiryInput, f_ as CreateInquirySchema, f$ as CreateTaskInput, g0 as CreateTaskSchema, g1 as DeleteInquiryInput, g2 as DeleteInquirySchema, g3 as DeleteTaskInput, g4 as DeleteTaskSchema, g5 as EnrichInquiryInput, g6 as EnrichInquirySchema, g7 as GetInquiryInput, g8 as GetInquirySchema, g9 as GetTaskInput, ga as GetTaskSchema, gb as ListInquiriesInput, gc as ListInquiriesSchema, gd as ListTasksInput, ge as ListTasksSchema, gf as OutcomeTaskRoutingSchema, gg as TaskFormData, gh as TaskFormDataSchema, gi as UnarchiveTaskInput, gj as UnarchiveTaskSchema, gk as UpdateInquiryInput, gl as UpdateInquiryRequestSchema, gm as UpdateInquirySchema, gn as UpdateTaskInput, go as UpdateTaskSchema } from './tasks-DsNsbco5.cjs';
|
|
4
4
|
import { Tool } from '@modelcontextprotocol/sdk/types.js';
|
|
5
5
|
|
|
6
6
|
declare const AccountFormDataSchema: z.ZodObject<{
|
|
@@ -1332,6 +1332,7 @@ declare const DataFieldSchema: z.ZodObject<{
|
|
|
1332
1332
|
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
|
|
1333
1333
|
visibleWhen: z.ZodOptional<z.ZodString>;
|
|
1334
1334
|
}, z.core.$strip>>>;
|
|
1335
|
+
referenceFieldId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1335
1336
|
referencedTypeId: z.ZodOptional<z.ZodNumber>;
|
|
1336
1337
|
shouldIndex: z.ZodOptional<z.ZodBoolean>;
|
|
1337
1338
|
indexStatus: z.ZodOptional<z.ZodEnum<typeof IndexStatus>>;
|
|
@@ -1350,6 +1351,7 @@ declare const DataFieldFormDataSchema: z.ZodObject<{
|
|
|
1350
1351
|
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
|
|
1351
1352
|
visibleWhen: z.ZodOptional<z.ZodString>;
|
|
1352
1353
|
}, z.core.$strip>>>;
|
|
1354
|
+
referenceFieldId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1353
1355
|
referencedTypeId: z.ZodOptional<z.ZodNumber>;
|
|
1354
1356
|
shouldIndex: z.ZodOptional<z.ZodBoolean>;
|
|
1355
1357
|
indexStatus: z.ZodOptional<z.ZodEnum<typeof IndexStatus>>;
|
|
@@ -1367,6 +1369,7 @@ declare const SchemaFieldSchema: z.ZodObject<{
|
|
|
1367
1369
|
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
|
|
1368
1370
|
visibleWhen: z.ZodOptional<z.ZodString>;
|
|
1369
1371
|
}, z.core.$strip>>>;
|
|
1372
|
+
referenceFieldId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1370
1373
|
referencedTypeId: z.ZodOptional<z.ZodNumber>;
|
|
1371
1374
|
shouldIndex: z.ZodOptional<z.ZodBoolean>;
|
|
1372
1375
|
adminOnly: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -1388,6 +1391,7 @@ declare const SchemaFieldFormDataSchema: z.ZodObject<{
|
|
|
1388
1391
|
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
|
|
1389
1392
|
visibleWhen: z.ZodOptional<z.ZodString>;
|
|
1390
1393
|
}, z.core.$strip>>>;
|
|
1394
|
+
referenceFieldId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1391
1395
|
referencedTypeId: z.ZodOptional<z.ZodNumber>;
|
|
1392
1396
|
shouldIndex: z.ZodOptional<z.ZodBoolean>;
|
|
1393
1397
|
adminOnly: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -1426,6 +1430,7 @@ declare const DataTypeSchema: z.ZodObject<{
|
|
|
1426
1430
|
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
|
|
1427
1431
|
visibleWhen: z.ZodOptional<z.ZodString>;
|
|
1428
1432
|
}, z.core.$strip>>>;
|
|
1433
|
+
referenceFieldId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1429
1434
|
referencedTypeId: z.ZodOptional<z.ZodNumber>;
|
|
1430
1435
|
shouldIndex: z.ZodOptional<z.ZodBoolean>;
|
|
1431
1436
|
adminOnly: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -1458,6 +1463,7 @@ declare const DataTypeFormDataSchema: z.ZodObject<{
|
|
|
1458
1463
|
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
|
|
1459
1464
|
visibleWhen: z.ZodOptional<z.ZodString>;
|
|
1460
1465
|
}, z.core.$strip>>>;
|
|
1466
|
+
referenceFieldId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1461
1467
|
referencedTypeId: z.ZodOptional<z.ZodNumber>;
|
|
1462
1468
|
shouldIndex: z.ZodOptional<z.ZodBoolean>;
|
|
1463
1469
|
adminOnly: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -1511,6 +1517,7 @@ declare const CreateDataTypeSchema: z.ZodObject<{
|
|
|
1511
1517
|
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
|
|
1512
1518
|
visibleWhen: z.ZodOptional<z.ZodString>;
|
|
1513
1519
|
}, z.core.$strip>>>;
|
|
1520
|
+
referenceFieldId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1514
1521
|
referencedTypeId: z.ZodOptional<z.ZodNumber>;
|
|
1515
1522
|
shouldIndex: z.ZodOptional<z.ZodBoolean>;
|
|
1516
1523
|
adminOnly: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -1545,6 +1552,7 @@ declare const UpdateDataTypeSchema: z.ZodObject<{
|
|
|
1545
1552
|
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
|
|
1546
1553
|
visibleWhen: z.ZodOptional<z.ZodString>;
|
|
1547
1554
|
}, z.core.$strip>>>;
|
|
1555
|
+
referenceFieldId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1548
1556
|
referencedTypeId: z.ZodOptional<z.ZodNumber>;
|
|
1549
1557
|
shouldIndex: z.ZodOptional<z.ZodBoolean>;
|
|
1550
1558
|
adminOnly: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -1629,6 +1637,7 @@ declare const AddDataFieldSchema: z.ZodObject<{
|
|
|
1629
1637
|
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
|
|
1630
1638
|
visibleWhen: z.ZodOptional<z.ZodString>;
|
|
1631
1639
|
}, z.core.$strip>>>;
|
|
1640
|
+
referenceFieldId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1632
1641
|
referencedTypeId: z.ZodOptional<z.ZodNumber>;
|
|
1633
1642
|
shouldIndex: z.ZodOptional<z.ZodBoolean>;
|
|
1634
1643
|
adminOnly: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -1652,6 +1661,7 @@ declare const UpdateDataFieldSchema: z.ZodObject<{
|
|
|
1652
1661
|
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
|
|
1653
1662
|
visibleWhen: z.ZodOptional<z.ZodString>;
|
|
1654
1663
|
}, z.core.$strip>>>;
|
|
1664
|
+
referenceFieldId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1655
1665
|
referencedTypeId: z.ZodOptional<z.ZodNumber>;
|
|
1656
1666
|
shouldIndex: z.ZodOptional<z.ZodBoolean>;
|
|
1657
1667
|
adminOnly: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -1778,6 +1788,7 @@ declare const DataTypeExportItemSchema: z.ZodObject<{
|
|
|
1778
1788
|
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
|
|
1779
1789
|
visibleWhen: z.ZodOptional<z.ZodString>;
|
|
1780
1790
|
}, z.core.$strip>>>;
|
|
1791
|
+
referenceFieldId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1781
1792
|
referencedTypeId: z.ZodOptional<z.ZodNumber>;
|
|
1782
1793
|
shouldIndex: z.ZodOptional<z.ZodBoolean>;
|
|
1783
1794
|
adminOnly: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -2541,6 +2552,7 @@ declare const SiteFormDataSchema: z.ZodObject<{
|
|
|
2541
2552
|
allowedScopes: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
2542
2553
|
"records:read": "records:read";
|
|
2543
2554
|
"records:write": "records:write";
|
|
2555
|
+
"records:admin": "records:admin";
|
|
2544
2556
|
}>>>;
|
|
2545
2557
|
authenticationMethods: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
2546
2558
|
name_dob: "name_dob";
|
|
@@ -2596,6 +2608,7 @@ declare const CreateSiteSchema: z.ZodObject<{
|
|
|
2596
2608
|
allowedScopes: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
2597
2609
|
"records:read": "records:read";
|
|
2598
2610
|
"records:write": "records:write";
|
|
2611
|
+
"records:admin": "records:admin";
|
|
2599
2612
|
}>>>;
|
|
2600
2613
|
authenticationMethods: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
2601
2614
|
name_dob: "name_dob";
|
|
@@ -2621,6 +2634,7 @@ declare const UpdateSiteSchema: z.ZodObject<{
|
|
|
2621
2634
|
allowedScopes: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
2622
2635
|
"records:read": "records:read";
|
|
2623
2636
|
"records:write": "records:write";
|
|
2637
|
+
"records:admin": "records:admin";
|
|
2624
2638
|
}>>>>;
|
|
2625
2639
|
authenticationMethods: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
2626
2640
|
name_dob: "name_dob";
|
|
@@ -2882,7 +2896,12 @@ declare const WorkspaceFormDataSchema: z.ZodObject<{
|
|
|
2882
2896
|
description: z.ZodOptional<z.ZodString>;
|
|
2883
2897
|
organizationId: z.ZodOptional<z.ZodNumber>;
|
|
2884
2898
|
}, z.core.$strip>;
|
|
2885
|
-
declare const ListWorkspacesSchema: z.ZodObject<{
|
|
2899
|
+
declare const ListWorkspacesSchema: z.ZodObject<{
|
|
2900
|
+
page: z.ZodOptional<z.ZodNumber>;
|
|
2901
|
+
pageSize: z.ZodOptional<z.ZodNumber>;
|
|
2902
|
+
search: z.ZodOptional<z.ZodString>;
|
|
2903
|
+
organizationUuid: z.ZodOptional<z.ZodString>;
|
|
2904
|
+
}, z.core.$strip>;
|
|
2886
2905
|
declare const GetWorkspaceSchema: z.ZodObject<{
|
|
2887
2906
|
wid: z.ZodString;
|
|
2888
2907
|
}, z.core.$strip>;
|
package/dist/schemas.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { ad as CalendarScheduleAvailabilityType, af as CalendarScheduleRecurrence, a5 as CalendarEventStatus, C as AttendeeResponseStatus, D as DataFieldType, b8 as DataTypeRecordScope, b4 as DataSensitivity, aQ as DataCategory, bT as IndexStatus } from './tasks-
|
|
3
|
-
export { fS as AbilityData, fT as AbilityDataSchema, fU as AnonymousInquiryFormSchema, fV as ArchiveTaskInput, fW as ArchiveTaskSchema, fX as ChildTaskFormData, fY as ChildTaskFormDataSchema, fZ as CreateInquiryInput, f_ as CreateInquirySchema, f$ as CreateTaskInput, g0 as CreateTaskSchema, g1 as DeleteInquiryInput, g2 as DeleteInquirySchema, g3 as DeleteTaskInput, g4 as DeleteTaskSchema, g5 as EnrichInquiryInput, g6 as EnrichInquirySchema, g7 as GetInquiryInput, g8 as GetInquirySchema, g9 as GetTaskInput, ga as GetTaskSchema, gb as ListInquiriesInput, gc as ListInquiriesSchema, gd as ListTasksInput, ge as ListTasksSchema, gf as
|
|
2
|
+
import { ad as CalendarScheduleAvailabilityType, af as CalendarScheduleRecurrence, a5 as CalendarEventStatus, C as AttendeeResponseStatus, D as DataFieldType, b8 as DataTypeRecordScope, b4 as DataSensitivity, aQ as DataCategory, bT as IndexStatus } from './tasks-DsNsbco5.js';
|
|
3
|
+
export { fS as AbilityData, fT as AbilityDataSchema, fU as AnonymousInquiryFormSchema, fV as ArchiveTaskInput, fW as ArchiveTaskSchema, fX as ChildTaskFormData, fY as ChildTaskFormDataSchema, fZ as CreateInquiryInput, f_ as CreateInquirySchema, f$ as CreateTaskInput, g0 as CreateTaskSchema, g1 as DeleteInquiryInput, g2 as DeleteInquirySchema, g3 as DeleteTaskInput, g4 as DeleteTaskSchema, g5 as EnrichInquiryInput, g6 as EnrichInquirySchema, g7 as GetInquiryInput, g8 as GetInquirySchema, g9 as GetTaskInput, ga as GetTaskSchema, gb as ListInquiriesInput, gc as ListInquiriesSchema, gd as ListTasksInput, ge as ListTasksSchema, gf as OutcomeTaskRoutingSchema, gg as TaskFormData, gh as TaskFormDataSchema, gi as UnarchiveTaskInput, gj as UnarchiveTaskSchema, gk as UpdateInquiryInput, gl as UpdateInquiryRequestSchema, gm as UpdateInquirySchema, gn as UpdateTaskInput, go as UpdateTaskSchema } from './tasks-DsNsbco5.js';
|
|
4
4
|
import { Tool } from '@modelcontextprotocol/sdk/types.js';
|
|
5
5
|
|
|
6
6
|
declare const AccountFormDataSchema: z.ZodObject<{
|
|
@@ -1332,6 +1332,7 @@ declare const DataFieldSchema: z.ZodObject<{
|
|
|
1332
1332
|
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
|
|
1333
1333
|
visibleWhen: z.ZodOptional<z.ZodString>;
|
|
1334
1334
|
}, z.core.$strip>>>;
|
|
1335
|
+
referenceFieldId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1335
1336
|
referencedTypeId: z.ZodOptional<z.ZodNumber>;
|
|
1336
1337
|
shouldIndex: z.ZodOptional<z.ZodBoolean>;
|
|
1337
1338
|
indexStatus: z.ZodOptional<z.ZodEnum<typeof IndexStatus>>;
|
|
@@ -1350,6 +1351,7 @@ declare const DataFieldFormDataSchema: z.ZodObject<{
|
|
|
1350
1351
|
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
|
|
1351
1352
|
visibleWhen: z.ZodOptional<z.ZodString>;
|
|
1352
1353
|
}, z.core.$strip>>>;
|
|
1354
|
+
referenceFieldId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1353
1355
|
referencedTypeId: z.ZodOptional<z.ZodNumber>;
|
|
1354
1356
|
shouldIndex: z.ZodOptional<z.ZodBoolean>;
|
|
1355
1357
|
indexStatus: z.ZodOptional<z.ZodEnum<typeof IndexStatus>>;
|
|
@@ -1367,6 +1369,7 @@ declare const SchemaFieldSchema: z.ZodObject<{
|
|
|
1367
1369
|
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
|
|
1368
1370
|
visibleWhen: z.ZodOptional<z.ZodString>;
|
|
1369
1371
|
}, z.core.$strip>>>;
|
|
1372
|
+
referenceFieldId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1370
1373
|
referencedTypeId: z.ZodOptional<z.ZodNumber>;
|
|
1371
1374
|
shouldIndex: z.ZodOptional<z.ZodBoolean>;
|
|
1372
1375
|
adminOnly: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -1388,6 +1391,7 @@ declare const SchemaFieldFormDataSchema: z.ZodObject<{
|
|
|
1388
1391
|
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
|
|
1389
1392
|
visibleWhen: z.ZodOptional<z.ZodString>;
|
|
1390
1393
|
}, z.core.$strip>>>;
|
|
1394
|
+
referenceFieldId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1391
1395
|
referencedTypeId: z.ZodOptional<z.ZodNumber>;
|
|
1392
1396
|
shouldIndex: z.ZodOptional<z.ZodBoolean>;
|
|
1393
1397
|
adminOnly: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -1426,6 +1430,7 @@ declare const DataTypeSchema: z.ZodObject<{
|
|
|
1426
1430
|
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
|
|
1427
1431
|
visibleWhen: z.ZodOptional<z.ZodString>;
|
|
1428
1432
|
}, z.core.$strip>>>;
|
|
1433
|
+
referenceFieldId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1429
1434
|
referencedTypeId: z.ZodOptional<z.ZodNumber>;
|
|
1430
1435
|
shouldIndex: z.ZodOptional<z.ZodBoolean>;
|
|
1431
1436
|
adminOnly: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -1458,6 +1463,7 @@ declare const DataTypeFormDataSchema: z.ZodObject<{
|
|
|
1458
1463
|
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
|
|
1459
1464
|
visibleWhen: z.ZodOptional<z.ZodString>;
|
|
1460
1465
|
}, z.core.$strip>>>;
|
|
1466
|
+
referenceFieldId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1461
1467
|
referencedTypeId: z.ZodOptional<z.ZodNumber>;
|
|
1462
1468
|
shouldIndex: z.ZodOptional<z.ZodBoolean>;
|
|
1463
1469
|
adminOnly: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -1511,6 +1517,7 @@ declare const CreateDataTypeSchema: z.ZodObject<{
|
|
|
1511
1517
|
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
|
|
1512
1518
|
visibleWhen: z.ZodOptional<z.ZodString>;
|
|
1513
1519
|
}, z.core.$strip>>>;
|
|
1520
|
+
referenceFieldId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1514
1521
|
referencedTypeId: z.ZodOptional<z.ZodNumber>;
|
|
1515
1522
|
shouldIndex: z.ZodOptional<z.ZodBoolean>;
|
|
1516
1523
|
adminOnly: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -1545,6 +1552,7 @@ declare const UpdateDataTypeSchema: z.ZodObject<{
|
|
|
1545
1552
|
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
|
|
1546
1553
|
visibleWhen: z.ZodOptional<z.ZodString>;
|
|
1547
1554
|
}, z.core.$strip>>>;
|
|
1555
|
+
referenceFieldId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1548
1556
|
referencedTypeId: z.ZodOptional<z.ZodNumber>;
|
|
1549
1557
|
shouldIndex: z.ZodOptional<z.ZodBoolean>;
|
|
1550
1558
|
adminOnly: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -1629,6 +1637,7 @@ declare const AddDataFieldSchema: z.ZodObject<{
|
|
|
1629
1637
|
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
|
|
1630
1638
|
visibleWhen: z.ZodOptional<z.ZodString>;
|
|
1631
1639
|
}, z.core.$strip>>>;
|
|
1640
|
+
referenceFieldId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1632
1641
|
referencedTypeId: z.ZodOptional<z.ZodNumber>;
|
|
1633
1642
|
shouldIndex: z.ZodOptional<z.ZodBoolean>;
|
|
1634
1643
|
adminOnly: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -1652,6 +1661,7 @@ declare const UpdateDataFieldSchema: z.ZodObject<{
|
|
|
1652
1661
|
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
|
|
1653
1662
|
visibleWhen: z.ZodOptional<z.ZodString>;
|
|
1654
1663
|
}, z.core.$strip>>>;
|
|
1664
|
+
referenceFieldId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1655
1665
|
referencedTypeId: z.ZodOptional<z.ZodNumber>;
|
|
1656
1666
|
shouldIndex: z.ZodOptional<z.ZodBoolean>;
|
|
1657
1667
|
adminOnly: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -1778,6 +1788,7 @@ declare const DataTypeExportItemSchema: z.ZodObject<{
|
|
|
1778
1788
|
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
|
|
1779
1789
|
visibleWhen: z.ZodOptional<z.ZodString>;
|
|
1780
1790
|
}, z.core.$strip>>>;
|
|
1791
|
+
referenceFieldId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1781
1792
|
referencedTypeId: z.ZodOptional<z.ZodNumber>;
|
|
1782
1793
|
shouldIndex: z.ZodOptional<z.ZodBoolean>;
|
|
1783
1794
|
adminOnly: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -2541,6 +2552,7 @@ declare const SiteFormDataSchema: z.ZodObject<{
|
|
|
2541
2552
|
allowedScopes: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
2542
2553
|
"records:read": "records:read";
|
|
2543
2554
|
"records:write": "records:write";
|
|
2555
|
+
"records:admin": "records:admin";
|
|
2544
2556
|
}>>>;
|
|
2545
2557
|
authenticationMethods: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
2546
2558
|
name_dob: "name_dob";
|
|
@@ -2596,6 +2608,7 @@ declare const CreateSiteSchema: z.ZodObject<{
|
|
|
2596
2608
|
allowedScopes: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
2597
2609
|
"records:read": "records:read";
|
|
2598
2610
|
"records:write": "records:write";
|
|
2611
|
+
"records:admin": "records:admin";
|
|
2599
2612
|
}>>>;
|
|
2600
2613
|
authenticationMethods: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
2601
2614
|
name_dob: "name_dob";
|
|
@@ -2621,6 +2634,7 @@ declare const UpdateSiteSchema: z.ZodObject<{
|
|
|
2621
2634
|
allowedScopes: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
2622
2635
|
"records:read": "records:read";
|
|
2623
2636
|
"records:write": "records:write";
|
|
2637
|
+
"records:admin": "records:admin";
|
|
2624
2638
|
}>>>>;
|
|
2625
2639
|
authenticationMethods: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
2626
2640
|
name_dob: "name_dob";
|
|
@@ -2882,7 +2896,12 @@ declare const WorkspaceFormDataSchema: z.ZodObject<{
|
|
|
2882
2896
|
description: z.ZodOptional<z.ZodString>;
|
|
2883
2897
|
organizationId: z.ZodOptional<z.ZodNumber>;
|
|
2884
2898
|
}, z.core.$strip>;
|
|
2885
|
-
declare const ListWorkspacesSchema: z.ZodObject<{
|
|
2899
|
+
declare const ListWorkspacesSchema: z.ZodObject<{
|
|
2900
|
+
page: z.ZodOptional<z.ZodNumber>;
|
|
2901
|
+
pageSize: z.ZodOptional<z.ZodNumber>;
|
|
2902
|
+
search: z.ZodOptional<z.ZodString>;
|
|
2903
|
+
organizationUuid: z.ZodOptional<z.ZodString>;
|
|
2904
|
+
}, z.core.$strip>;
|
|
2886
2905
|
declare const GetWorkspaceSchema: z.ZodObject<{
|
|
2887
2906
|
wid: z.ZodString;
|
|
2888
2907
|
}, z.core.$strip>;
|
package/dist/schemas.js
CHANGED
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
DataSensitivity,
|
|
9
9
|
DataTypeRecordScope,
|
|
10
10
|
IndexStatus
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-MMDSZ25F.js";
|
|
12
12
|
|
|
13
13
|
// src/schemas/accounts.ts
|
|
14
14
|
import { z } from "zod";
|
|
@@ -958,6 +958,25 @@ function validateFieldPolicy(field, ctx) {
|
|
|
958
958
|
});
|
|
959
959
|
}
|
|
960
960
|
}
|
|
961
|
+
function validateReferenceField(field, ctx) {
|
|
962
|
+
if (field.fieldType === "reference" /* REFERENCE */ && field.referencedTypeId === void 0) {
|
|
963
|
+
ctx.addIssue({
|
|
964
|
+
code: z5.ZodIssueCode.custom,
|
|
965
|
+
path: ["referencedTypeId"],
|
|
966
|
+
message: "Record reference requires a target Form"
|
|
967
|
+
});
|
|
968
|
+
}
|
|
969
|
+
validateReferenceFieldUpdate(field, ctx);
|
|
970
|
+
}
|
|
971
|
+
function validateReferenceFieldUpdate(field, ctx) {
|
|
972
|
+
if (field.fieldType !== void 0 && field.fieldType !== "reference" /* REFERENCE */ && field.referenceFieldId != null) {
|
|
973
|
+
ctx.addIssue({
|
|
974
|
+
code: z5.ZodIssueCode.custom,
|
|
975
|
+
path: ["referenceFieldId"],
|
|
976
|
+
message: "Only record reference fields have a reference field identity"
|
|
977
|
+
});
|
|
978
|
+
}
|
|
979
|
+
}
|
|
961
980
|
function validateDataTypePolicy(data, ctx) {
|
|
962
981
|
const recordScope = data.recordScope ?? "member" /* MEMBER */;
|
|
963
982
|
const fields = data.fields ?? [];
|
|
@@ -1018,13 +1037,14 @@ var DataFieldSchema = z5.object({
|
|
|
1018
1037
|
required: z5.boolean(),
|
|
1019
1038
|
fieldType: DataFieldTypeEnum,
|
|
1020
1039
|
options: OptionsSchema,
|
|
1021
|
-
|
|
1040
|
+
referenceFieldId: z5.number().int().positive().nullish(),
|
|
1041
|
+
referencedTypeId: z5.number().int().positive().optional(),
|
|
1022
1042
|
shouldIndex: z5.boolean().optional(),
|
|
1023
1043
|
indexStatus: IndexStatusEnum.optional(),
|
|
1024
1044
|
adminOnly: z5.boolean().optional(),
|
|
1025
1045
|
createdAt: z5.string(),
|
|
1026
1046
|
updatedAt: z5.string()
|
|
1027
|
-
});
|
|
1047
|
+
}).superRefine(validateReferenceField);
|
|
1028
1048
|
var DataFieldFormDataSchema = z5.object({
|
|
1029
1049
|
name: z5.string(),
|
|
1030
1050
|
slug: z5.string(),
|
|
@@ -1032,11 +1052,12 @@ var DataFieldFormDataSchema = z5.object({
|
|
|
1032
1052
|
required: z5.boolean(),
|
|
1033
1053
|
fieldType: DataFieldTypeEnum,
|
|
1034
1054
|
options: OptionsSchema,
|
|
1035
|
-
|
|
1055
|
+
referenceFieldId: z5.number().int().positive().nullish(),
|
|
1056
|
+
referencedTypeId: z5.number().int().positive().optional(),
|
|
1036
1057
|
shouldIndex: z5.boolean().optional(),
|
|
1037
1058
|
indexStatus: IndexStatusEnum.optional(),
|
|
1038
1059
|
adminOnly: z5.boolean().optional()
|
|
1039
|
-
});
|
|
1060
|
+
}).superRefine(validateReferenceField);
|
|
1040
1061
|
var SchemaFieldSchema = z5.object({
|
|
1041
1062
|
slug: z5.string(),
|
|
1042
1063
|
name: z5.string(),
|
|
@@ -1046,7 +1067,8 @@ var SchemaFieldSchema = z5.object({
|
|
|
1046
1067
|
order: z5.number().optional(),
|
|
1047
1068
|
// Deprecated: use array position for ordering
|
|
1048
1069
|
options: OptionsSchema,
|
|
1049
|
-
|
|
1070
|
+
referenceFieldId: z5.number().int().positive().nullish(),
|
|
1071
|
+
referencedTypeId: z5.number().int().positive().optional(),
|
|
1050
1072
|
shouldIndex: z5.boolean().optional(),
|
|
1051
1073
|
adminOnly: z5.boolean().optional(),
|
|
1052
1074
|
defaultValue: z5.any().optional(),
|
|
@@ -1054,7 +1076,7 @@ var SchemaFieldSchema = z5.object({
|
|
|
1054
1076
|
categories: z5.array(DataCategoryEnum).optional(),
|
|
1055
1077
|
celFunction: z5.string().optional(),
|
|
1056
1078
|
validateCel: z5.string().optional()
|
|
1057
|
-
}).superRefine(validateFieldPolicy);
|
|
1079
|
+
}).superRefine(validateFieldPolicy).superRefine(validateReferenceField);
|
|
1058
1080
|
var SchemaFieldFormDataSchema = z5.object({
|
|
1059
1081
|
slug: z5.string(),
|
|
1060
1082
|
name: z5.string(),
|
|
@@ -1063,7 +1085,8 @@ var SchemaFieldFormDataSchema = z5.object({
|
|
|
1063
1085
|
required: z5.boolean(),
|
|
1064
1086
|
order: z5.number().optional(),
|
|
1065
1087
|
options: OptionsSchema,
|
|
1066
|
-
|
|
1088
|
+
referenceFieldId: z5.number().int().positive().nullish(),
|
|
1089
|
+
referencedTypeId: z5.number().int().positive().optional(),
|
|
1067
1090
|
shouldIndex: z5.boolean().optional(),
|
|
1068
1091
|
adminOnly: z5.boolean().optional(),
|
|
1069
1092
|
defaultValue: z5.any().optional(),
|
|
@@ -1071,7 +1094,7 @@ var SchemaFieldFormDataSchema = z5.object({
|
|
|
1071
1094
|
categories: z5.array(DataCategoryEnum).optional(),
|
|
1072
1095
|
celFunction: z5.string().optional(),
|
|
1073
1096
|
validateCel: z5.string().optional()
|
|
1074
|
-
}).superRefine(validateFieldPolicy);
|
|
1097
|
+
}).superRefine(validateFieldPolicy).superRefine(validateReferenceField);
|
|
1075
1098
|
var DataTypeSchema = z5.object({
|
|
1076
1099
|
id: z5.number(),
|
|
1077
1100
|
name: z5.string(),
|
|
@@ -1205,10 +1228,11 @@ var AddDataFieldSchema = WorkspaceIdSchema.extend({
|
|
|
1205
1228
|
required: z5.boolean().default(false).describe("Whether this field is required"),
|
|
1206
1229
|
fieldType: DataFieldTypeEnum.describe("Field data type"),
|
|
1207
1230
|
options: OptionsSchema.describe("Options for enum fields as {label, value} objects."),
|
|
1208
|
-
|
|
1231
|
+
referenceFieldId: z5.number().int().positive().nullish(),
|
|
1232
|
+
referencedTypeId: z5.number().int().positive().optional().describe("Referenced data type ID for reference fields"),
|
|
1209
1233
|
shouldIndex: z5.boolean().optional().describe("Whether to create a search index for this field"),
|
|
1210
1234
|
adminOnly: z5.boolean().optional().describe("Whether only admins can edit this field")
|
|
1211
|
-
});
|
|
1235
|
+
}).superRefine(validateReferenceField);
|
|
1212
1236
|
var RemoveDataFieldSchema = WorkspaceIdSchema.extend({
|
|
1213
1237
|
dataTypeId: z5.number().describe("Data type ID"),
|
|
1214
1238
|
fieldId: z5.number().describe("Field ID to remove")
|
|
@@ -1222,10 +1246,11 @@ var UpdateDataFieldSchema = WorkspaceIdSchema.extend({
|
|
|
1222
1246
|
required: z5.boolean().optional().describe("Whether this field is required"),
|
|
1223
1247
|
fieldType: DataFieldTypeEnum.optional().describe("Field data type"),
|
|
1224
1248
|
options: OptionsSchema.describe("Options for enum fields as {label, value} objects."),
|
|
1225
|
-
|
|
1249
|
+
referenceFieldId: z5.number().int().positive().nullish(),
|
|
1250
|
+
referencedTypeId: z5.number().int().positive().optional().describe("Referenced data type ID for reference fields"),
|
|
1226
1251
|
shouldIndex: z5.boolean().optional().describe("Whether to create a search index for this field"),
|
|
1227
1252
|
adminOnly: z5.boolean().optional().describe("Whether only admins can edit this field")
|
|
1228
|
-
});
|
|
1253
|
+
}).superRefine(validateReferenceFieldUpdate);
|
|
1229
1254
|
var DataRecordRetirementSchema = z5.object({
|
|
1230
1255
|
status: z5.literal("retired"),
|
|
1231
1256
|
reason: z5.enum(["monday_item_archived", "monday_item_deleted"]),
|
|
@@ -1717,7 +1742,7 @@ var SiteFormDataSchema = z10.object({
|
|
|
1717
1742
|
isReseller: z10.boolean().optional(),
|
|
1718
1743
|
isPublic: z10.boolean().optional(),
|
|
1719
1744
|
allowAccountLogin: z10.boolean().optional(),
|
|
1720
|
-
allowedScopes: z10.array(z10.enum(["records:read", "records:write"])).optional(),
|
|
1745
|
+
allowedScopes: z10.array(z10.enum(["records:read", "records:write", "records:admin"])).optional(),
|
|
1721
1746
|
authenticationMethods: z10.array(z10.enum(["name_dob"])).optional(),
|
|
1722
1747
|
defaultWorkflowId: z10.number().optional(),
|
|
1723
1748
|
homePageId: z10.number().optional()
|
|
@@ -1808,12 +1833,17 @@ var ReorderMenuItemsRequestSchema = WorkspaceIdSchema.extend({
|
|
|
1808
1833
|
|
|
1809
1834
|
// src/schemas/tasks.ts
|
|
1810
1835
|
import { z as z11 } from "zod";
|
|
1836
|
+
var OutcomeTaskRoutingSchema = z11.object({
|
|
1837
|
+
kind: z11.literal("outcome"),
|
|
1838
|
+
outcome: z11.string().regex(/^[a-z][a-z0-9_]{0,31}$/)
|
|
1839
|
+
});
|
|
1811
1840
|
var ChildTaskFormDataSchema = z11.object({
|
|
1812
1841
|
taskId: z11.number(),
|
|
1813
1842
|
choicePrompt: z11.string().optional(),
|
|
1814
1843
|
autoNext: z11.boolean().optional(),
|
|
1815
1844
|
required: z11.boolean().optional(),
|
|
1816
|
-
celCondition: z11.string().optional()
|
|
1845
|
+
celCondition: z11.string().optional(),
|
|
1846
|
+
routing: OutcomeTaskRoutingSchema.nullable().optional()
|
|
1817
1847
|
});
|
|
1818
1848
|
var AbilityDataSchema = z11.object({
|
|
1819
1849
|
uuid: z11.string(),
|
|
@@ -1829,6 +1859,12 @@ var TaskFormDataSchema = z11.object({
|
|
|
1829
1859
|
prompt: z11.string().optional(),
|
|
1830
1860
|
isAdmin: z11.boolean().optional(),
|
|
1831
1861
|
childTasks: z11.array(ChildTaskFormDataSchema).optional(),
|
|
1862
|
+
// Creation only; the backend rejects a simultaneous childTasks list.
|
|
1863
|
+
insertBetween: z11.object({
|
|
1864
|
+
parentTaskId: z11.number().int().positive(),
|
|
1865
|
+
childTaskId: z11.number().int().positive(),
|
|
1866
|
+
routing: OutcomeTaskRoutingSchema.nullable().optional()
|
|
1867
|
+
}).optional(),
|
|
1832
1868
|
workflowId: z11.number(),
|
|
1833
1869
|
celGuard: z11.string().optional(),
|
|
1834
1870
|
abilities: z11.array(AbilityDataSchema).optional()
|
|
@@ -1843,7 +1879,7 @@ var GetTaskSchema = WorkspaceIdSchema.extend({
|
|
|
1843
1879
|
var CreateTaskSchema = WorkspaceIdSchema.merge(TaskFormDataSchema);
|
|
1844
1880
|
var UpdateTaskSchema = WorkspaceIdSchema.extend({
|
|
1845
1881
|
taskId: z11.number().describe("Task ID")
|
|
1846
|
-
}).merge(TaskFormDataSchema.partial());
|
|
1882
|
+
}).merge(TaskFormDataSchema.omit({ insertBetween: true }).partial());
|
|
1847
1883
|
var DeleteTaskSchema = WorkspaceIdSchema.extend({
|
|
1848
1884
|
taskId: z11.number().describe("Task ID to delete")
|
|
1849
1885
|
});
|
|
@@ -1912,7 +1948,12 @@ var WorkspaceFormDataSchema = z13.object({
|
|
|
1912
1948
|
description: z13.string().optional(),
|
|
1913
1949
|
organizationId: z13.number().optional()
|
|
1914
1950
|
});
|
|
1915
|
-
var ListWorkspacesSchema = z13.object({
|
|
1951
|
+
var ListWorkspacesSchema = z13.object({
|
|
1952
|
+
page: z13.number().int().min(1).optional(),
|
|
1953
|
+
pageSize: z13.number().int().min(1).max(100).optional(),
|
|
1954
|
+
search: z13.string().max(200).optional(),
|
|
1955
|
+
organizationUuid: z13.string().uuid().optional()
|
|
1956
|
+
});
|
|
1916
1957
|
var GetWorkspaceSchema = WorkspaceIdSchema;
|
|
1917
1958
|
var CreateWorkspaceSchema = WorkspaceFormDataSchema;
|
|
1918
1959
|
var UpdateWorkspaceSchema = WorkspaceIdSchema.merge(WorkspaceFormDataSchema);
|
|
@@ -2111,6 +2152,7 @@ export {
|
|
|
2111
2152
|
MessageRoleEnum,
|
|
2112
2153
|
MissingMembershipItemSchema,
|
|
2113
2154
|
OrganizationSchema,
|
|
2155
|
+
OutcomeTaskRoutingSchema,
|
|
2114
2156
|
PhoneNumberFormDataSchema,
|
|
2115
2157
|
RateLimitAllowlistEntrySchema,
|
|
2116
2158
|
RateLimitOverrideSchema,
|