@avallon-labs/mcp 63.1.0-staging.1350 → 64.0.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.
|
@@ -3635,6 +3635,67 @@ var promoteCaseTypeVersion = async (caseTypeSlug, version, promoteCaseTypeVersio
|
|
|
3635
3635
|
const data = body ? JSON.parse(body) : {};
|
|
3636
3636
|
return { data, status: res.status, headers: res.headers };
|
|
3637
3637
|
};
|
|
3638
|
+
var getCreateCaseTypeFieldUrl = (caseTypeSlug) => {
|
|
3639
|
+
return `/v1/case-types/${caseTypeSlug}/fields`;
|
|
3640
|
+
};
|
|
3641
|
+
var createCaseTypeField = async (caseTypeSlug, newCaseTypeField, options) => {
|
|
3642
|
+
const getHeaders = (h) => {
|
|
3643
|
+
if (!h) return {};
|
|
3644
|
+
if (h instanceof Headers) return Object.fromEntries(h.entries());
|
|
3645
|
+
if (Array.isArray(h)) return Object.fromEntries(h);
|
|
3646
|
+
return h;
|
|
3647
|
+
};
|
|
3648
|
+
const res = await fetch(
|
|
3649
|
+
getCreateCaseTypeFieldUrl(caseTypeSlug),
|
|
3650
|
+
{
|
|
3651
|
+
...options,
|
|
3652
|
+
method: "POST",
|
|
3653
|
+
headers: { "Content-Type": "application/json", ...getHeaders(options?.headers) },
|
|
3654
|
+
body: JSON.stringify(newCaseTypeField)
|
|
3655
|
+
}
|
|
3656
|
+
);
|
|
3657
|
+
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
|
|
3658
|
+
const data = body ? JSON.parse(body) : {};
|
|
3659
|
+
return { data, status: res.status, headers: res.headers };
|
|
3660
|
+
};
|
|
3661
|
+
var getUpdateCaseTypeFieldUrl = (caseTypeSlug, fieldId) => {
|
|
3662
|
+
return `/v1/case-types/${caseTypeSlug}/fields/${fieldId}`;
|
|
3663
|
+
};
|
|
3664
|
+
var updateCaseTypeField = async (caseTypeSlug, fieldId, updateCaseTypeFieldBody, options) => {
|
|
3665
|
+
const getHeaders = (h) => {
|
|
3666
|
+
if (!h) return {};
|
|
3667
|
+
if (h instanceof Headers) return Object.fromEntries(h.entries());
|
|
3668
|
+
if (Array.isArray(h)) return Object.fromEntries(h);
|
|
3669
|
+
return h;
|
|
3670
|
+
};
|
|
3671
|
+
const res = await fetch(
|
|
3672
|
+
getUpdateCaseTypeFieldUrl(caseTypeSlug, fieldId),
|
|
3673
|
+
{
|
|
3674
|
+
...options,
|
|
3675
|
+
method: "PATCH",
|
|
3676
|
+
headers: { "Content-Type": "application/json", ...getHeaders(options?.headers) },
|
|
3677
|
+
body: JSON.stringify(updateCaseTypeFieldBody)
|
|
3678
|
+
}
|
|
3679
|
+
);
|
|
3680
|
+
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
|
|
3681
|
+
const data = body ? JSON.parse(body) : {};
|
|
3682
|
+
return { data, status: res.status, headers: res.headers };
|
|
3683
|
+
};
|
|
3684
|
+
var getDeleteCaseTypeFieldUrl = (caseTypeSlug, fieldId) => {
|
|
3685
|
+
return `/v1/case-types/${caseTypeSlug}/fields/${fieldId}`;
|
|
3686
|
+
};
|
|
3687
|
+
var deleteCaseTypeField = async (caseTypeSlug, fieldId, options) => {
|
|
3688
|
+
const res = await fetch(
|
|
3689
|
+
getDeleteCaseTypeFieldUrl(caseTypeSlug, fieldId),
|
|
3690
|
+
{
|
|
3691
|
+
...options,
|
|
3692
|
+
method: "DELETE"
|
|
3693
|
+
}
|
|
3694
|
+
);
|
|
3695
|
+
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
|
|
3696
|
+
const data = body ? JSON.parse(body) : {};
|
|
3697
|
+
return { data, status: res.status, headers: res.headers };
|
|
3698
|
+
};
|
|
3638
3699
|
var getCreateToolUrl = () => {
|
|
3639
3700
|
return `/v1/tools`;
|
|
3640
3701
|
};
|
|
@@ -8325,6 +8386,75 @@ var promoteCaseTypeVersionHandler = async (args, options) => {
|
|
|
8325
8386
|
structuredContent: res.data
|
|
8326
8387
|
};
|
|
8327
8388
|
};
|
|
8389
|
+
var createCaseTypeFieldHandler = async (args, options) => {
|
|
8390
|
+
const res = await createCaseTypeField(args.pathParams.caseTypeSlug, args.bodyParams, options);
|
|
8391
|
+
if (res.status >= 400) {
|
|
8392
|
+
return {
|
|
8393
|
+
content: [
|
|
8394
|
+
{
|
|
8395
|
+
type: "text",
|
|
8396
|
+
text: JSON.stringify(res.data ?? null)
|
|
8397
|
+
}
|
|
8398
|
+
],
|
|
8399
|
+
isError: true
|
|
8400
|
+
};
|
|
8401
|
+
}
|
|
8402
|
+
return {
|
|
8403
|
+
content: [
|
|
8404
|
+
{
|
|
8405
|
+
type: "text",
|
|
8406
|
+
text: JSON.stringify(res.data ?? null)
|
|
8407
|
+
}
|
|
8408
|
+
],
|
|
8409
|
+
structuredContent: res.data
|
|
8410
|
+
};
|
|
8411
|
+
};
|
|
8412
|
+
var updateCaseTypeFieldHandler = async (args, options) => {
|
|
8413
|
+
const res = await updateCaseTypeField(args.pathParams.caseTypeSlug, args.pathParams.fieldId, args.bodyParams, options);
|
|
8414
|
+
if (res.status >= 400) {
|
|
8415
|
+
return {
|
|
8416
|
+
content: [
|
|
8417
|
+
{
|
|
8418
|
+
type: "text",
|
|
8419
|
+
text: JSON.stringify(res.data ?? null)
|
|
8420
|
+
}
|
|
8421
|
+
],
|
|
8422
|
+
isError: true
|
|
8423
|
+
};
|
|
8424
|
+
}
|
|
8425
|
+
return {
|
|
8426
|
+
content: [
|
|
8427
|
+
{
|
|
8428
|
+
type: "text",
|
|
8429
|
+
text: JSON.stringify(res.data ?? null)
|
|
8430
|
+
}
|
|
8431
|
+
],
|
|
8432
|
+
structuredContent: res.data
|
|
8433
|
+
};
|
|
8434
|
+
};
|
|
8435
|
+
var deleteCaseTypeFieldHandler = async (args, options) => {
|
|
8436
|
+
const res = await deleteCaseTypeField(args.pathParams.caseTypeSlug, args.pathParams.fieldId, options);
|
|
8437
|
+
if (res.status >= 400) {
|
|
8438
|
+
return {
|
|
8439
|
+
content: [
|
|
8440
|
+
{
|
|
8441
|
+
type: "text",
|
|
8442
|
+
text: JSON.stringify(res.data ?? null)
|
|
8443
|
+
}
|
|
8444
|
+
],
|
|
8445
|
+
isError: true
|
|
8446
|
+
};
|
|
8447
|
+
}
|
|
8448
|
+
return {
|
|
8449
|
+
content: [
|
|
8450
|
+
{
|
|
8451
|
+
type: "text",
|
|
8452
|
+
text: JSON.stringify(res.data ?? null)
|
|
8453
|
+
}
|
|
8454
|
+
],
|
|
8455
|
+
structuredContent: res.data
|
|
8456
|
+
};
|
|
8457
|
+
};
|
|
8328
8458
|
var createToolHandler = async (args, options) => {
|
|
8329
8459
|
const res = await createTool(args.bodyParams, options);
|
|
8330
8460
|
if (res.status >= 400) {
|
|
@@ -13884,81 +14014,27 @@ var ResolveInformationRequestResponse = zod.object({
|
|
|
13884
14014
|
}),
|
|
13885
14015
|
"message": zod.string()
|
|
13886
14016
|
});
|
|
13887
|
-
var
|
|
13888
|
-
var
|
|
13889
|
-
var
|
|
13890
|
-
var
|
|
13891
|
-
var
|
|
13892
|
-
var
|
|
13893
|
-
var
|
|
13894
|
-
var createCaseTypeBodyFieldsSchemaFiveTypeTwoMax = 2;
|
|
13895
|
-
var createCaseTypeBodyFieldsSchemaFiveItemsTwoTypeTwoMin = 2;
|
|
13896
|
-
var createCaseTypeBodyFieldsSchemaFiveItemsTwoTypeTwoMax = 2;
|
|
13897
|
-
var createCaseTypeBodyFieldsSchemaFiveItemsThreeTypeTwoMin = 2;
|
|
13898
|
-
var createCaseTypeBodyFieldsSchemaFiveItemsThreeTypeTwoMax = 2;
|
|
13899
|
-
var createCaseTypeBodyFieldsSchemaFiveItemsFourTypeTwoMin = 2;
|
|
13900
|
-
var createCaseTypeBodyFieldsSchemaFiveItemsFourTypeTwoMax = 2;
|
|
14017
|
+
var createCaseTypeBodyFieldsItemKeyRegExp = new RegExp("^[a-z][a-z0-9_]*$");
|
|
14018
|
+
var createCaseTypeBodyFieldsItemListDefault = false;
|
|
14019
|
+
var createCaseTypeBodyFieldsItemLabelDefault = null;
|
|
14020
|
+
var createCaseTypeBodyFieldsItemNullableDefault = false;
|
|
14021
|
+
var createCaseTypeBodyFieldsItemEnumDefault = null;
|
|
14022
|
+
var createCaseTypeBodyFieldsItemSensitiveDefault = false;
|
|
14023
|
+
var createCaseTypeBodyFieldsDefault = [];
|
|
13901
14024
|
var CreateCaseTypeBody = zod.object({
|
|
13902
14025
|
"slug": zod.string().describe("Permanent identifier callers use for the type, e.g. `wc`. Lowercase letters, digits, - and _, starting with a letter."),
|
|
13903
14026
|
"name": zod.string().min(1),
|
|
13904
|
-
"
|
|
14027
|
+
"fields": zod.array(zod.object({
|
|
14028
|
+
"key": zod.string().regex(createCaseTypeBodyFieldsItemKeyRegExp).describe("Permanent, and never reused within the case type."),
|
|
14029
|
+
"type": zod.enum(["string", "number", "boolean", "date", "date_time"]).describe("Permanent."),
|
|
14030
|
+
"list": zod.boolean().default(createCaseTypeBodyFieldsItemListDefault).describe("Permanent."),
|
|
14031
|
+
"label": zod.union([zod.string().min(1), zod.null()]).default(createCaseTypeBodyFieldsItemLabelDefault),
|
|
13905
14032
|
"description": zod.string(),
|
|
13906
|
-
"
|
|
13907
|
-
"
|
|
13908
|
-
"
|
|
13909
|
-
|
|
13910
|
-
|
|
13911
|
-
"description": zod.string(),
|
|
13912
|
-
"title": zod.string().min(1).optional(),
|
|
13913
|
-
"x_sensitive": zod.boolean().optional(),
|
|
13914
|
-
"type": zod.union([zod.literal("string"), zod.array(zod.enum(["string", "null"])).min(createCaseTypeBodyFieldsSchemaTwoTypeTwoMin).max(createCaseTypeBodyFieldsSchemaTwoTypeTwoMax)]),
|
|
13915
|
-
"format": zod.enum(["date", "date-time", "email", "url"]).optional()
|
|
13916
|
-
}), zod.object({
|
|
13917
|
-
"description": zod.string(),
|
|
13918
|
-
"title": zod.string().min(1).optional(),
|
|
13919
|
-
"x_sensitive": zod.boolean().optional(),
|
|
13920
|
-
"type": zod.union([zod.literal("number"), zod.array(zod.enum(["number", "null"])).min(createCaseTypeBodyFieldsSchemaThreeTypeTwoMin).max(createCaseTypeBodyFieldsSchemaThreeTypeTwoMax)])
|
|
13921
|
-
}), zod.object({
|
|
13922
|
-
"description": zod.string(),
|
|
13923
|
-
"title": zod.string().min(1).optional(),
|
|
13924
|
-
"x_sensitive": zod.boolean().optional(),
|
|
13925
|
-
"type": zod.union([zod.literal("boolean"), zod.array(zod.enum(["boolean", "null"])).min(createCaseTypeBodyFieldsSchemaFourTypeTwoMin).max(createCaseTypeBodyFieldsSchemaFourTypeTwoMax)])
|
|
13926
|
-
}), zod.object({
|
|
13927
|
-
"description": zod.string(),
|
|
13928
|
-
"title": zod.string().min(1).optional(),
|
|
13929
|
-
"x_sensitive": zod.boolean().optional(),
|
|
13930
|
-
"type": zod.union([zod.literal("array"), zod.array(zod.enum(["array", "null"])).min(createCaseTypeBodyFieldsSchemaFiveTypeTwoMin).max(createCaseTypeBodyFieldsSchemaFiveTypeTwoMax)]),
|
|
13931
|
-
"items": zod.union([zod.object({
|
|
13932
|
-
"description": zod.string(),
|
|
13933
|
-
"type": zod.union([zod.array(zod.union([zod.union([zod.literal("string"), zod.literal("number")]), zod.literal("null")])), zod.union([zod.literal("string"), zod.literal("number")])]),
|
|
13934
|
-
"enum": zod.array(zod.union([zod.union([zod.string(), zod.number()]), zod.literal(null)]))
|
|
13935
|
-
}), zod.object({
|
|
13936
|
-
"description": zod.string(),
|
|
13937
|
-
"type": zod.union([zod.literal("string"), zod.array(zod.enum(["string", "null"])).min(createCaseTypeBodyFieldsSchemaFiveItemsTwoTypeTwoMin).max(createCaseTypeBodyFieldsSchemaFiveItemsTwoTypeTwoMax)]),
|
|
13938
|
-
"format": zod.enum(["date", "date-time", "email", "url"]).optional()
|
|
13939
|
-
}), zod.object({
|
|
13940
|
-
"description": zod.string(),
|
|
13941
|
-
"type": zod.union([zod.literal("number"), zod.array(zod.enum(["number", "null"])).min(createCaseTypeBodyFieldsSchemaFiveItemsThreeTypeTwoMin).max(createCaseTypeBodyFieldsSchemaFiveItemsThreeTypeTwoMax)])
|
|
13942
|
-
}), zod.object({
|
|
13943
|
-
"description": zod.string(),
|
|
13944
|
-
"type": zod.union([zod.literal("boolean"), zod.array(zod.enum(["boolean", "null"])).min(createCaseTypeBodyFieldsSchemaFiveItemsFourTypeTwoMin).max(createCaseTypeBodyFieldsSchemaFiveItemsFourTypeTwoMax)])
|
|
13945
|
-
})])
|
|
13946
|
-
})])).describe("JSON Schema properties, keyed by permanent snake_case field key. Each field is a string, number, boolean or enum, or an array of those; a nullable type allows `null`. `title` is the label people see and can change any time. Set `x_sensitive` on fields holding personal data.")
|
|
13947
|
-
});
|
|
13948
|
-
var createCaseTypeResponseDataFieldsSchemaTwoTypeTwoMin = 2;
|
|
13949
|
-
var createCaseTypeResponseDataFieldsSchemaTwoTypeTwoMax = 2;
|
|
13950
|
-
var createCaseTypeResponseDataFieldsSchemaThreeTypeTwoMin = 2;
|
|
13951
|
-
var createCaseTypeResponseDataFieldsSchemaThreeTypeTwoMax = 2;
|
|
13952
|
-
var createCaseTypeResponseDataFieldsSchemaFourTypeTwoMin = 2;
|
|
13953
|
-
var createCaseTypeResponseDataFieldsSchemaFourTypeTwoMax = 2;
|
|
13954
|
-
var createCaseTypeResponseDataFieldsSchemaFiveTypeTwoMin = 2;
|
|
13955
|
-
var createCaseTypeResponseDataFieldsSchemaFiveTypeTwoMax = 2;
|
|
13956
|
-
var createCaseTypeResponseDataFieldsSchemaFiveItemsTwoTypeTwoMin = 2;
|
|
13957
|
-
var createCaseTypeResponseDataFieldsSchemaFiveItemsTwoTypeTwoMax = 2;
|
|
13958
|
-
var createCaseTypeResponseDataFieldsSchemaFiveItemsThreeTypeTwoMin = 2;
|
|
13959
|
-
var createCaseTypeResponseDataFieldsSchemaFiveItemsThreeTypeTwoMax = 2;
|
|
13960
|
-
var createCaseTypeResponseDataFieldsSchemaFiveItemsFourTypeTwoMin = 2;
|
|
13961
|
-
var createCaseTypeResponseDataFieldsSchemaFiveItemsFourTypeTwoMax = 2;
|
|
14033
|
+
"nullable": zod.boolean().default(createCaseTypeBodyFieldsItemNullableDefault),
|
|
14034
|
+
"enum": zod.union([zod.array(zod.string()).min(1), zod.null()]).default(createCaseTypeBodyFieldsItemEnumDefault),
|
|
14035
|
+
"sensitive": zod.boolean().default(createCaseTypeBodyFieldsItemSensitiveDefault)
|
|
14036
|
+
})).default(createCaseTypeBodyFieldsDefault)
|
|
14037
|
+
});
|
|
13962
14038
|
var CreateCaseTypeResponse = zod.object({
|
|
13963
14039
|
"data": zod.object({
|
|
13964
14040
|
"slug": zod.string(),
|
|
@@ -13971,49 +14047,18 @@ var CreateCaseTypeResponse = zod.object({
|
|
|
13971
14047
|
"created_at": zod.string().datetime({ "offset": true }),
|
|
13972
14048
|
"updated_at": zod.string().datetime({ "offset": true }),
|
|
13973
14049
|
"version": zod.number().describe("Version the fields below belong to."),
|
|
13974
|
-
"
|
|
13975
|
-
"
|
|
13976
|
-
"
|
|
13977
|
-
"
|
|
13978
|
-
"type": zod.union([zod.array(zod.union([zod.union([zod.literal("string"), zod.literal("number")]), zod.literal("null")])), zod.union([zod.literal("string"), zod.literal("number")])]),
|
|
13979
|
-
"enum": zod.array(zod.union([zod.union([zod.string(), zod.number()]), zod.literal(null)]))
|
|
13980
|
-
}), zod.object({
|
|
13981
|
-
"description": zod.string(),
|
|
13982
|
-
"title": zod.string().min(1).optional(),
|
|
13983
|
-
"x_sensitive": zod.boolean().optional(),
|
|
13984
|
-
"type": zod.union([zod.literal("string"), zod.array(zod.enum(["string", "null"])).min(createCaseTypeResponseDataFieldsSchemaTwoTypeTwoMin).max(createCaseTypeResponseDataFieldsSchemaTwoTypeTwoMax)]),
|
|
13985
|
-
"format": zod.enum(["date", "date-time", "email", "url"]).optional()
|
|
13986
|
-
}), zod.object({
|
|
13987
|
-
"description": zod.string(),
|
|
13988
|
-
"title": zod.string().min(1).optional(),
|
|
13989
|
-
"x_sensitive": zod.boolean().optional(),
|
|
13990
|
-
"type": zod.union([zod.literal("number"), zod.array(zod.enum(["number", "null"])).min(createCaseTypeResponseDataFieldsSchemaThreeTypeTwoMin).max(createCaseTypeResponseDataFieldsSchemaThreeTypeTwoMax)])
|
|
13991
|
-
}), zod.object({
|
|
13992
|
-
"description": zod.string(),
|
|
13993
|
-
"title": zod.string().min(1).optional(),
|
|
13994
|
-
"x_sensitive": zod.boolean().optional(),
|
|
13995
|
-
"type": zod.union([zod.literal("boolean"), zod.array(zod.enum(["boolean", "null"])).min(createCaseTypeResponseDataFieldsSchemaFourTypeTwoMin).max(createCaseTypeResponseDataFieldsSchemaFourTypeTwoMax)])
|
|
13996
|
-
}), zod.object({
|
|
14050
|
+
"fields": zod.array(zod.object({
|
|
14051
|
+
"id": zod.string().uuid(),
|
|
14052
|
+
"key": zod.string(),
|
|
14053
|
+
"label": zod.union([zod.string(), zod.null()]),
|
|
13997
14054
|
"description": zod.string(),
|
|
13998
|
-
"
|
|
13999
|
-
"
|
|
14000
|
-
"
|
|
14001
|
-
"
|
|
14002
|
-
|
|
14003
|
-
|
|
14004
|
-
|
|
14005
|
-
}), zod.object({
|
|
14006
|
-
"description": zod.string(),
|
|
14007
|
-
"type": zod.union([zod.literal("string"), zod.array(zod.enum(["string", "null"])).min(createCaseTypeResponseDataFieldsSchemaFiveItemsTwoTypeTwoMin).max(createCaseTypeResponseDataFieldsSchemaFiveItemsTwoTypeTwoMax)]),
|
|
14008
|
-
"format": zod.enum(["date", "date-time", "email", "url"]).optional()
|
|
14009
|
-
}), zod.object({
|
|
14010
|
-
"description": zod.string(),
|
|
14011
|
-
"type": zod.union([zod.literal("number"), zod.array(zod.enum(["number", "null"])).min(createCaseTypeResponseDataFieldsSchemaFiveItemsThreeTypeTwoMin).max(createCaseTypeResponseDataFieldsSchemaFiveItemsThreeTypeTwoMax)])
|
|
14012
|
-
}), zod.object({
|
|
14013
|
-
"description": zod.string(),
|
|
14014
|
-
"type": zod.union([zod.literal("boolean"), zod.array(zod.enum(["boolean", "null"])).min(createCaseTypeResponseDataFieldsSchemaFiveItemsFourTypeTwoMin).max(createCaseTypeResponseDataFieldsSchemaFiveItemsFourTypeTwoMax)])
|
|
14015
|
-
})])
|
|
14016
|
-
})])).describe("JSON Schema properties, keyed by permanent snake_case field key. Each field is a string, number, boolean or enum, or an array of those; a nullable type allows `null`. `title` is the label people see and can change any time. Set `x_sensitive` on fields holding personal data.")
|
|
14055
|
+
"type": zod.enum(["string", "number", "boolean", "date", "date_time"]),
|
|
14056
|
+
"list": zod.boolean(),
|
|
14057
|
+
"nullable": zod.boolean(),
|
|
14058
|
+
"enum": zod.union([zod.array(zod.string()), zod.null()]),
|
|
14059
|
+
"sensitive": zod.boolean(),
|
|
14060
|
+
"created_at": zod.string().datetime({ "offset": true })
|
|
14061
|
+
}))
|
|
14017
14062
|
}),
|
|
14018
14063
|
"message": zod.string()
|
|
14019
14064
|
});
|
|
@@ -14046,24 +14091,9 @@ var ListCaseTypesResponse = zod.object({
|
|
|
14046
14091
|
"total": zod.number()
|
|
14047
14092
|
})
|
|
14048
14093
|
});
|
|
14049
|
-
var getCaseTypePathCaseTypeSlugRegExp = new RegExp("^[a-z][a-z0-9_-]*$");
|
|
14050
14094
|
var GetCaseTypeParams = zod.object({
|
|
14051
|
-
"caseTypeSlug": zod.string()
|
|
14052
|
-
});
|
|
14053
|
-
var getCaseTypeResponseDataFieldsSchemaTwoTypeTwoMin = 2;
|
|
14054
|
-
var getCaseTypeResponseDataFieldsSchemaTwoTypeTwoMax = 2;
|
|
14055
|
-
var getCaseTypeResponseDataFieldsSchemaThreeTypeTwoMin = 2;
|
|
14056
|
-
var getCaseTypeResponseDataFieldsSchemaThreeTypeTwoMax = 2;
|
|
14057
|
-
var getCaseTypeResponseDataFieldsSchemaFourTypeTwoMin = 2;
|
|
14058
|
-
var getCaseTypeResponseDataFieldsSchemaFourTypeTwoMax = 2;
|
|
14059
|
-
var getCaseTypeResponseDataFieldsSchemaFiveTypeTwoMin = 2;
|
|
14060
|
-
var getCaseTypeResponseDataFieldsSchemaFiveTypeTwoMax = 2;
|
|
14061
|
-
var getCaseTypeResponseDataFieldsSchemaFiveItemsTwoTypeTwoMin = 2;
|
|
14062
|
-
var getCaseTypeResponseDataFieldsSchemaFiveItemsTwoTypeTwoMax = 2;
|
|
14063
|
-
var getCaseTypeResponseDataFieldsSchemaFiveItemsThreeTypeTwoMin = 2;
|
|
14064
|
-
var getCaseTypeResponseDataFieldsSchemaFiveItemsThreeTypeTwoMax = 2;
|
|
14065
|
-
var getCaseTypeResponseDataFieldsSchemaFiveItemsFourTypeTwoMin = 2;
|
|
14066
|
-
var getCaseTypeResponseDataFieldsSchemaFiveItemsFourTypeTwoMax = 2;
|
|
14095
|
+
"caseTypeSlug": zod.string()
|
|
14096
|
+
});
|
|
14067
14097
|
var GetCaseTypeResponse = zod.object({
|
|
14068
14098
|
"data": zod.object({
|
|
14069
14099
|
"slug": zod.string(),
|
|
@@ -14076,130 +14106,27 @@ var GetCaseTypeResponse = zod.object({
|
|
|
14076
14106
|
"created_at": zod.string().datetime({ "offset": true }),
|
|
14077
14107
|
"updated_at": zod.string().datetime({ "offset": true }),
|
|
14078
14108
|
"version": zod.number().describe("Version the fields below belong to."),
|
|
14079
|
-
"
|
|
14080
|
-
"
|
|
14081
|
-
"
|
|
14082
|
-
"
|
|
14083
|
-
"type": zod.union([zod.array(zod.union([zod.union([zod.literal("string"), zod.literal("number")]), zod.literal("null")])), zod.union([zod.literal("string"), zod.literal("number")])]),
|
|
14084
|
-
"enum": zod.array(zod.union([zod.union([zod.string(), zod.number()]), zod.literal(null)]))
|
|
14085
|
-
}), zod.object({
|
|
14086
|
-
"description": zod.string(),
|
|
14087
|
-
"title": zod.string().min(1).optional(),
|
|
14088
|
-
"x_sensitive": zod.boolean().optional(),
|
|
14089
|
-
"type": zod.union([zod.literal("string"), zod.array(zod.enum(["string", "null"])).min(getCaseTypeResponseDataFieldsSchemaTwoTypeTwoMin).max(getCaseTypeResponseDataFieldsSchemaTwoTypeTwoMax)]),
|
|
14090
|
-
"format": zod.enum(["date", "date-time", "email", "url"]).optional()
|
|
14091
|
-
}), zod.object({
|
|
14092
|
-
"description": zod.string(),
|
|
14093
|
-
"title": zod.string().min(1).optional(),
|
|
14094
|
-
"x_sensitive": zod.boolean().optional(),
|
|
14095
|
-
"type": zod.union([zod.literal("number"), zod.array(zod.enum(["number", "null"])).min(getCaseTypeResponseDataFieldsSchemaThreeTypeTwoMin).max(getCaseTypeResponseDataFieldsSchemaThreeTypeTwoMax)])
|
|
14096
|
-
}), zod.object({
|
|
14097
|
-
"description": zod.string(),
|
|
14098
|
-
"title": zod.string().min(1).optional(),
|
|
14099
|
-
"x_sensitive": zod.boolean().optional(),
|
|
14100
|
-
"type": zod.union([zod.literal("boolean"), zod.array(zod.enum(["boolean", "null"])).min(getCaseTypeResponseDataFieldsSchemaFourTypeTwoMin).max(getCaseTypeResponseDataFieldsSchemaFourTypeTwoMax)])
|
|
14101
|
-
}), zod.object({
|
|
14109
|
+
"fields": zod.array(zod.object({
|
|
14110
|
+
"id": zod.string().uuid(),
|
|
14111
|
+
"key": zod.string(),
|
|
14112
|
+
"label": zod.union([zod.string(), zod.null()]),
|
|
14102
14113
|
"description": zod.string(),
|
|
14103
|
-
"
|
|
14104
|
-
"
|
|
14105
|
-
"
|
|
14106
|
-
"
|
|
14107
|
-
|
|
14108
|
-
|
|
14109
|
-
|
|
14110
|
-
}), zod.object({
|
|
14111
|
-
"description": zod.string(),
|
|
14112
|
-
"type": zod.union([zod.literal("string"), zod.array(zod.enum(["string", "null"])).min(getCaseTypeResponseDataFieldsSchemaFiveItemsTwoTypeTwoMin).max(getCaseTypeResponseDataFieldsSchemaFiveItemsTwoTypeTwoMax)]),
|
|
14113
|
-
"format": zod.enum(["date", "date-time", "email", "url"]).optional()
|
|
14114
|
-
}), zod.object({
|
|
14115
|
-
"description": zod.string(),
|
|
14116
|
-
"type": zod.union([zod.literal("number"), zod.array(zod.enum(["number", "null"])).min(getCaseTypeResponseDataFieldsSchemaFiveItemsThreeTypeTwoMin).max(getCaseTypeResponseDataFieldsSchemaFiveItemsThreeTypeTwoMax)])
|
|
14117
|
-
}), zod.object({
|
|
14118
|
-
"description": zod.string(),
|
|
14119
|
-
"type": zod.union([zod.literal("boolean"), zod.array(zod.enum(["boolean", "null"])).min(getCaseTypeResponseDataFieldsSchemaFiveItemsFourTypeTwoMin).max(getCaseTypeResponseDataFieldsSchemaFiveItemsFourTypeTwoMax)])
|
|
14120
|
-
})])
|
|
14121
|
-
})])).describe("JSON Schema properties, keyed by permanent snake_case field key. Each field is a string, number, boolean or enum, or an array of those; a nullable type allows `null`. `title` is the label people see and can change any time. Set `x_sensitive` on fields holding personal data.")
|
|
14114
|
+
"type": zod.enum(["string", "number", "boolean", "date", "date_time"]),
|
|
14115
|
+
"list": zod.boolean(),
|
|
14116
|
+
"nullable": zod.boolean(),
|
|
14117
|
+
"enum": zod.union([zod.array(zod.string()), zod.null()]),
|
|
14118
|
+
"sensitive": zod.boolean(),
|
|
14119
|
+
"created_at": zod.string().datetime({ "offset": true })
|
|
14120
|
+
}))
|
|
14122
14121
|
}),
|
|
14123
14122
|
"message": zod.string()
|
|
14124
14123
|
});
|
|
14125
|
-
var updateCaseTypePathCaseTypeSlugRegExp = new RegExp("^[a-z][a-z0-9_-]*$");
|
|
14126
14124
|
var UpdateCaseTypeParams = zod.object({
|
|
14127
|
-
"caseTypeSlug": zod.string()
|
|
14128
|
-
});
|
|
14129
|
-
var updateCaseTypeBodyFieldsSchemaTwoTypeTwoMin = 2;
|
|
14130
|
-
var updateCaseTypeBodyFieldsSchemaTwoTypeTwoMax = 2;
|
|
14131
|
-
var updateCaseTypeBodyFieldsSchemaThreeTypeTwoMin = 2;
|
|
14132
|
-
var updateCaseTypeBodyFieldsSchemaThreeTypeTwoMax = 2;
|
|
14133
|
-
var updateCaseTypeBodyFieldsSchemaFourTypeTwoMin = 2;
|
|
14134
|
-
var updateCaseTypeBodyFieldsSchemaFourTypeTwoMax = 2;
|
|
14135
|
-
var updateCaseTypeBodyFieldsSchemaFiveTypeTwoMin = 2;
|
|
14136
|
-
var updateCaseTypeBodyFieldsSchemaFiveTypeTwoMax = 2;
|
|
14137
|
-
var updateCaseTypeBodyFieldsSchemaFiveItemsTwoTypeTwoMin = 2;
|
|
14138
|
-
var updateCaseTypeBodyFieldsSchemaFiveItemsTwoTypeTwoMax = 2;
|
|
14139
|
-
var updateCaseTypeBodyFieldsSchemaFiveItemsThreeTypeTwoMin = 2;
|
|
14140
|
-
var updateCaseTypeBodyFieldsSchemaFiveItemsThreeTypeTwoMax = 2;
|
|
14141
|
-
var updateCaseTypeBodyFieldsSchemaFiveItemsFourTypeTwoMin = 2;
|
|
14142
|
-
var updateCaseTypeBodyFieldsSchemaFiveItemsFourTypeTwoMax = 2;
|
|
14125
|
+
"caseTypeSlug": zod.string()
|
|
14126
|
+
});
|
|
14143
14127
|
var UpdateCaseTypeBody = zod.object({
|
|
14144
|
-
"name": zod.string().min(1).optional()
|
|
14145
|
-
|
|
14146
|
-
"description": zod.string(),
|
|
14147
|
-
"title": zod.string().min(1).optional(),
|
|
14148
|
-
"x_sensitive": zod.boolean().optional(),
|
|
14149
|
-
"type": zod.union([zod.array(zod.union([zod.union([zod.literal("string"), zod.literal("number")]), zod.literal("null")])), zod.union([zod.literal("string"), zod.literal("number")])]),
|
|
14150
|
-
"enum": zod.array(zod.union([zod.union([zod.string(), zod.number()]), zod.literal(null)]))
|
|
14151
|
-
}), zod.object({
|
|
14152
|
-
"description": zod.string(),
|
|
14153
|
-
"title": zod.string().min(1).optional(),
|
|
14154
|
-
"x_sensitive": zod.boolean().optional(),
|
|
14155
|
-
"type": zod.union([zod.literal("string"), zod.array(zod.enum(["string", "null"])).min(updateCaseTypeBodyFieldsSchemaTwoTypeTwoMin).max(updateCaseTypeBodyFieldsSchemaTwoTypeTwoMax)]),
|
|
14156
|
-
"format": zod.enum(["date", "date-time", "email", "url"]).optional()
|
|
14157
|
-
}), zod.object({
|
|
14158
|
-
"description": zod.string(),
|
|
14159
|
-
"title": zod.string().min(1).optional(),
|
|
14160
|
-
"x_sensitive": zod.boolean().optional(),
|
|
14161
|
-
"type": zod.union([zod.literal("number"), zod.array(zod.enum(["number", "null"])).min(updateCaseTypeBodyFieldsSchemaThreeTypeTwoMin).max(updateCaseTypeBodyFieldsSchemaThreeTypeTwoMax)])
|
|
14162
|
-
}), zod.object({
|
|
14163
|
-
"description": zod.string(),
|
|
14164
|
-
"title": zod.string().min(1).optional(),
|
|
14165
|
-
"x_sensitive": zod.boolean().optional(),
|
|
14166
|
-
"type": zod.union([zod.literal("boolean"), zod.array(zod.enum(["boolean", "null"])).min(updateCaseTypeBodyFieldsSchemaFourTypeTwoMin).max(updateCaseTypeBodyFieldsSchemaFourTypeTwoMax)])
|
|
14167
|
-
}), zod.object({
|
|
14168
|
-
"description": zod.string(),
|
|
14169
|
-
"title": zod.string().min(1).optional(),
|
|
14170
|
-
"x_sensitive": zod.boolean().optional(),
|
|
14171
|
-
"type": zod.union([zod.literal("array"), zod.array(zod.enum(["array", "null"])).min(updateCaseTypeBodyFieldsSchemaFiveTypeTwoMin).max(updateCaseTypeBodyFieldsSchemaFiveTypeTwoMax)]),
|
|
14172
|
-
"items": zod.union([zod.object({
|
|
14173
|
-
"description": zod.string(),
|
|
14174
|
-
"type": zod.union([zod.array(zod.union([zod.union([zod.literal("string"), zod.literal("number")]), zod.literal("null")])), zod.union([zod.literal("string"), zod.literal("number")])]),
|
|
14175
|
-
"enum": zod.array(zod.union([zod.union([zod.string(), zod.number()]), zod.literal(null)]))
|
|
14176
|
-
}), zod.object({
|
|
14177
|
-
"description": zod.string(),
|
|
14178
|
-
"type": zod.union([zod.literal("string"), zod.array(zod.enum(["string", "null"])).min(updateCaseTypeBodyFieldsSchemaFiveItemsTwoTypeTwoMin).max(updateCaseTypeBodyFieldsSchemaFiveItemsTwoTypeTwoMax)]),
|
|
14179
|
-
"format": zod.enum(["date", "date-time", "email", "url"]).optional()
|
|
14180
|
-
}), zod.object({
|
|
14181
|
-
"description": zod.string(),
|
|
14182
|
-
"type": zod.union([zod.literal("number"), zod.array(zod.enum(["number", "null"])).min(updateCaseTypeBodyFieldsSchemaFiveItemsThreeTypeTwoMin).max(updateCaseTypeBodyFieldsSchemaFiveItemsThreeTypeTwoMax)])
|
|
14183
|
-
}), zod.object({
|
|
14184
|
-
"description": zod.string(),
|
|
14185
|
-
"type": zod.union([zod.literal("boolean"), zod.array(zod.enum(["boolean", "null"])).min(updateCaseTypeBodyFieldsSchemaFiveItemsFourTypeTwoMin).max(updateCaseTypeBodyFieldsSchemaFiveItemsFourTypeTwoMax)])
|
|
14186
|
-
})])
|
|
14187
|
-
})])).optional().describe("JSON Schema properties, keyed by permanent snake_case field key. Each field is a string, number, boolean or enum, or an array of those; a nullable type allows `null`. `title` is the label people see and can change any time. Set `x_sensitive` on fields holding personal data.")
|
|
14188
|
-
});
|
|
14189
|
-
var updateCaseTypeResponseDataFieldsSchemaTwoTypeTwoMin = 2;
|
|
14190
|
-
var updateCaseTypeResponseDataFieldsSchemaTwoTypeTwoMax = 2;
|
|
14191
|
-
var updateCaseTypeResponseDataFieldsSchemaThreeTypeTwoMin = 2;
|
|
14192
|
-
var updateCaseTypeResponseDataFieldsSchemaThreeTypeTwoMax = 2;
|
|
14193
|
-
var updateCaseTypeResponseDataFieldsSchemaFourTypeTwoMin = 2;
|
|
14194
|
-
var updateCaseTypeResponseDataFieldsSchemaFourTypeTwoMax = 2;
|
|
14195
|
-
var updateCaseTypeResponseDataFieldsSchemaFiveTypeTwoMin = 2;
|
|
14196
|
-
var updateCaseTypeResponseDataFieldsSchemaFiveTypeTwoMax = 2;
|
|
14197
|
-
var updateCaseTypeResponseDataFieldsSchemaFiveItemsTwoTypeTwoMin = 2;
|
|
14198
|
-
var updateCaseTypeResponseDataFieldsSchemaFiveItemsTwoTypeTwoMax = 2;
|
|
14199
|
-
var updateCaseTypeResponseDataFieldsSchemaFiveItemsThreeTypeTwoMin = 2;
|
|
14200
|
-
var updateCaseTypeResponseDataFieldsSchemaFiveItemsThreeTypeTwoMax = 2;
|
|
14201
|
-
var updateCaseTypeResponseDataFieldsSchemaFiveItemsFourTypeTwoMin = 2;
|
|
14202
|
-
var updateCaseTypeResponseDataFieldsSchemaFiveItemsFourTypeTwoMax = 2;
|
|
14128
|
+
"name": zod.string().min(1).optional()
|
|
14129
|
+
});
|
|
14203
14130
|
var UpdateCaseTypeResponse = zod.object({
|
|
14204
14131
|
"data": zod.object({
|
|
14205
14132
|
"slug": zod.string(),
|
|
@@ -14212,55 +14139,23 @@ var UpdateCaseTypeResponse = zod.object({
|
|
|
14212
14139
|
"created_at": zod.string().datetime({ "offset": true }),
|
|
14213
14140
|
"updated_at": zod.string().datetime({ "offset": true }),
|
|
14214
14141
|
"version": zod.number().describe("Version the fields below belong to."),
|
|
14215
|
-
"
|
|
14216
|
-
"
|
|
14217
|
-
"
|
|
14218
|
-
"
|
|
14219
|
-
"type": zod.union([zod.array(zod.union([zod.union([zod.literal("string"), zod.literal("number")]), zod.literal("null")])), zod.union([zod.literal("string"), zod.literal("number")])]),
|
|
14220
|
-
"enum": zod.array(zod.union([zod.union([zod.string(), zod.number()]), zod.literal(null)]))
|
|
14221
|
-
}), zod.object({
|
|
14222
|
-
"description": zod.string(),
|
|
14223
|
-
"title": zod.string().min(1).optional(),
|
|
14224
|
-
"x_sensitive": zod.boolean().optional(),
|
|
14225
|
-
"type": zod.union([zod.literal("string"), zod.array(zod.enum(["string", "null"])).min(updateCaseTypeResponseDataFieldsSchemaTwoTypeTwoMin).max(updateCaseTypeResponseDataFieldsSchemaTwoTypeTwoMax)]),
|
|
14226
|
-
"format": zod.enum(["date", "date-time", "email", "url"]).optional()
|
|
14227
|
-
}), zod.object({
|
|
14228
|
-
"description": zod.string(),
|
|
14229
|
-
"title": zod.string().min(1).optional(),
|
|
14230
|
-
"x_sensitive": zod.boolean().optional(),
|
|
14231
|
-
"type": zod.union([zod.literal("number"), zod.array(zod.enum(["number", "null"])).min(updateCaseTypeResponseDataFieldsSchemaThreeTypeTwoMin).max(updateCaseTypeResponseDataFieldsSchemaThreeTypeTwoMax)])
|
|
14232
|
-
}), zod.object({
|
|
14233
|
-
"description": zod.string(),
|
|
14234
|
-
"title": zod.string().min(1).optional(),
|
|
14235
|
-
"x_sensitive": zod.boolean().optional(),
|
|
14236
|
-
"type": zod.union([zod.literal("boolean"), zod.array(zod.enum(["boolean", "null"])).min(updateCaseTypeResponseDataFieldsSchemaFourTypeTwoMin).max(updateCaseTypeResponseDataFieldsSchemaFourTypeTwoMax)])
|
|
14237
|
-
}), zod.object({
|
|
14142
|
+
"fields": zod.array(zod.object({
|
|
14143
|
+
"id": zod.string().uuid(),
|
|
14144
|
+
"key": zod.string(),
|
|
14145
|
+
"label": zod.union([zod.string(), zod.null()]),
|
|
14238
14146
|
"description": zod.string(),
|
|
14239
|
-
"
|
|
14240
|
-
"
|
|
14241
|
-
"
|
|
14242
|
-
"
|
|
14243
|
-
|
|
14244
|
-
|
|
14245
|
-
|
|
14246
|
-
}), zod.object({
|
|
14247
|
-
"description": zod.string(),
|
|
14248
|
-
"type": zod.union([zod.literal("string"), zod.array(zod.enum(["string", "null"])).min(updateCaseTypeResponseDataFieldsSchemaFiveItemsTwoTypeTwoMin).max(updateCaseTypeResponseDataFieldsSchemaFiveItemsTwoTypeTwoMax)]),
|
|
14249
|
-
"format": zod.enum(["date", "date-time", "email", "url"]).optional()
|
|
14250
|
-
}), zod.object({
|
|
14251
|
-
"description": zod.string(),
|
|
14252
|
-
"type": zod.union([zod.literal("number"), zod.array(zod.enum(["number", "null"])).min(updateCaseTypeResponseDataFieldsSchemaFiveItemsThreeTypeTwoMin).max(updateCaseTypeResponseDataFieldsSchemaFiveItemsThreeTypeTwoMax)])
|
|
14253
|
-
}), zod.object({
|
|
14254
|
-
"description": zod.string(),
|
|
14255
|
-
"type": zod.union([zod.literal("boolean"), zod.array(zod.enum(["boolean", "null"])).min(updateCaseTypeResponseDataFieldsSchemaFiveItemsFourTypeTwoMin).max(updateCaseTypeResponseDataFieldsSchemaFiveItemsFourTypeTwoMax)])
|
|
14256
|
-
})])
|
|
14257
|
-
})])).describe("JSON Schema properties, keyed by permanent snake_case field key. Each field is a string, number, boolean or enum, or an array of those; a nullable type allows `null`. `title` is the label people see and can change any time. Set `x_sensitive` on fields holding personal data.")
|
|
14147
|
+
"type": zod.enum(["string", "number", "boolean", "date", "date_time"]),
|
|
14148
|
+
"list": zod.boolean(),
|
|
14149
|
+
"nullable": zod.boolean(),
|
|
14150
|
+
"enum": zod.union([zod.array(zod.string()), zod.null()]),
|
|
14151
|
+
"sensitive": zod.boolean(),
|
|
14152
|
+
"created_at": zod.string().datetime({ "offset": true })
|
|
14153
|
+
}))
|
|
14258
14154
|
}),
|
|
14259
14155
|
"message": zod.string()
|
|
14260
14156
|
});
|
|
14261
|
-
var listCaseTypeVersionsPathCaseTypeSlugRegExp = new RegExp("^[a-z][a-z0-9_-]*$");
|
|
14262
14157
|
var ListCaseTypeVersionsParams = zod.object({
|
|
14263
|
-
"caseTypeSlug": zod.string()
|
|
14158
|
+
"caseTypeSlug": zod.string()
|
|
14264
14159
|
});
|
|
14265
14160
|
var listCaseTypeVersionsQueryCountDefault = 50;
|
|
14266
14161
|
var listCaseTypeVersionsQueryCountMax = 100;
|
|
@@ -14285,25 +14180,10 @@ var ListCaseTypeVersionsResponse = zod.object({
|
|
|
14285
14180
|
"total": zod.number()
|
|
14286
14181
|
})
|
|
14287
14182
|
});
|
|
14288
|
-
var getCaseTypeVersionPathCaseTypeSlugRegExp = new RegExp("^[a-z][a-z0-9_-]*$");
|
|
14289
14183
|
var GetCaseTypeVersionParams = zod.object({
|
|
14290
|
-
"caseTypeSlug": zod.string()
|
|
14184
|
+
"caseTypeSlug": zod.string(),
|
|
14291
14185
|
"version": zod.number()
|
|
14292
14186
|
});
|
|
14293
|
-
var getCaseTypeVersionResponseDataFieldsSchemaTwoTypeTwoMin = 2;
|
|
14294
|
-
var getCaseTypeVersionResponseDataFieldsSchemaTwoTypeTwoMax = 2;
|
|
14295
|
-
var getCaseTypeVersionResponseDataFieldsSchemaThreeTypeTwoMin = 2;
|
|
14296
|
-
var getCaseTypeVersionResponseDataFieldsSchemaThreeTypeTwoMax = 2;
|
|
14297
|
-
var getCaseTypeVersionResponseDataFieldsSchemaFourTypeTwoMin = 2;
|
|
14298
|
-
var getCaseTypeVersionResponseDataFieldsSchemaFourTypeTwoMax = 2;
|
|
14299
|
-
var getCaseTypeVersionResponseDataFieldsSchemaFiveTypeTwoMin = 2;
|
|
14300
|
-
var getCaseTypeVersionResponseDataFieldsSchemaFiveTypeTwoMax = 2;
|
|
14301
|
-
var getCaseTypeVersionResponseDataFieldsSchemaFiveItemsTwoTypeTwoMin = 2;
|
|
14302
|
-
var getCaseTypeVersionResponseDataFieldsSchemaFiveItemsTwoTypeTwoMax = 2;
|
|
14303
|
-
var getCaseTypeVersionResponseDataFieldsSchemaFiveItemsThreeTypeTwoMin = 2;
|
|
14304
|
-
var getCaseTypeVersionResponseDataFieldsSchemaFiveItemsThreeTypeTwoMax = 2;
|
|
14305
|
-
var getCaseTypeVersionResponseDataFieldsSchemaFiveItemsFourTypeTwoMin = 2;
|
|
14306
|
-
var getCaseTypeVersionResponseDataFieldsSchemaFiveItemsFourTypeTwoMax = 2;
|
|
14307
14187
|
var GetCaseTypeVersionResponse = zod.object({
|
|
14308
14188
|
"data": zod.object({
|
|
14309
14189
|
"slug": zod.string(),
|
|
@@ -14316,55 +14196,23 @@ var GetCaseTypeVersionResponse = zod.object({
|
|
|
14316
14196
|
"created_at": zod.string().datetime({ "offset": true }),
|
|
14317
14197
|
"updated_at": zod.string().datetime({ "offset": true }),
|
|
14318
14198
|
"version": zod.number().describe("Version the fields below belong to."),
|
|
14319
|
-
"
|
|
14320
|
-
"
|
|
14321
|
-
"
|
|
14322
|
-
"
|
|
14323
|
-
"type": zod.union([zod.array(zod.union([zod.union([zod.literal("string"), zod.literal("number")]), zod.literal("null")])), zod.union([zod.literal("string"), zod.literal("number")])]),
|
|
14324
|
-
"enum": zod.array(zod.union([zod.union([zod.string(), zod.number()]), zod.literal(null)]))
|
|
14325
|
-
}), zod.object({
|
|
14326
|
-
"description": zod.string(),
|
|
14327
|
-
"title": zod.string().min(1).optional(),
|
|
14328
|
-
"x_sensitive": zod.boolean().optional(),
|
|
14329
|
-
"type": zod.union([zod.literal("string"), zod.array(zod.enum(["string", "null"])).min(getCaseTypeVersionResponseDataFieldsSchemaTwoTypeTwoMin).max(getCaseTypeVersionResponseDataFieldsSchemaTwoTypeTwoMax)]),
|
|
14330
|
-
"format": zod.enum(["date", "date-time", "email", "url"]).optional()
|
|
14331
|
-
}), zod.object({
|
|
14332
|
-
"description": zod.string(),
|
|
14333
|
-
"title": zod.string().min(1).optional(),
|
|
14334
|
-
"x_sensitive": zod.boolean().optional(),
|
|
14335
|
-
"type": zod.union([zod.literal("number"), zod.array(zod.enum(["number", "null"])).min(getCaseTypeVersionResponseDataFieldsSchemaThreeTypeTwoMin).max(getCaseTypeVersionResponseDataFieldsSchemaThreeTypeTwoMax)])
|
|
14336
|
-
}), zod.object({
|
|
14337
|
-
"description": zod.string(),
|
|
14338
|
-
"title": zod.string().min(1).optional(),
|
|
14339
|
-
"x_sensitive": zod.boolean().optional(),
|
|
14340
|
-
"type": zod.union([zod.literal("boolean"), zod.array(zod.enum(["boolean", "null"])).min(getCaseTypeVersionResponseDataFieldsSchemaFourTypeTwoMin).max(getCaseTypeVersionResponseDataFieldsSchemaFourTypeTwoMax)])
|
|
14341
|
-
}), zod.object({
|
|
14199
|
+
"fields": zod.array(zod.object({
|
|
14200
|
+
"id": zod.string().uuid(),
|
|
14201
|
+
"key": zod.string(),
|
|
14202
|
+
"label": zod.union([zod.string(), zod.null()]),
|
|
14342
14203
|
"description": zod.string(),
|
|
14343
|
-
"
|
|
14344
|
-
"
|
|
14345
|
-
"
|
|
14346
|
-
"
|
|
14347
|
-
|
|
14348
|
-
|
|
14349
|
-
|
|
14350
|
-
}), zod.object({
|
|
14351
|
-
"description": zod.string(),
|
|
14352
|
-
"type": zod.union([zod.literal("string"), zod.array(zod.enum(["string", "null"])).min(getCaseTypeVersionResponseDataFieldsSchemaFiveItemsTwoTypeTwoMin).max(getCaseTypeVersionResponseDataFieldsSchemaFiveItemsTwoTypeTwoMax)]),
|
|
14353
|
-
"format": zod.enum(["date", "date-time", "email", "url"]).optional()
|
|
14354
|
-
}), zod.object({
|
|
14355
|
-
"description": zod.string(),
|
|
14356
|
-
"type": zod.union([zod.literal("number"), zod.array(zod.enum(["number", "null"])).min(getCaseTypeVersionResponseDataFieldsSchemaFiveItemsThreeTypeTwoMin).max(getCaseTypeVersionResponseDataFieldsSchemaFiveItemsThreeTypeTwoMax)])
|
|
14357
|
-
}), zod.object({
|
|
14358
|
-
"description": zod.string(),
|
|
14359
|
-
"type": zod.union([zod.literal("boolean"), zod.array(zod.enum(["boolean", "null"])).min(getCaseTypeVersionResponseDataFieldsSchemaFiveItemsFourTypeTwoMin).max(getCaseTypeVersionResponseDataFieldsSchemaFiveItemsFourTypeTwoMax)])
|
|
14360
|
-
})])
|
|
14361
|
-
})])).describe("JSON Schema properties, keyed by permanent snake_case field key. Each field is a string, number, boolean or enum, or an array of those; a nullable type allows `null`. `title` is the label people see and can change any time. Set `x_sensitive` on fields holding personal data.")
|
|
14204
|
+
"type": zod.enum(["string", "number", "boolean", "date", "date_time"]),
|
|
14205
|
+
"list": zod.boolean(),
|
|
14206
|
+
"nullable": zod.boolean(),
|
|
14207
|
+
"enum": zod.union([zod.array(zod.string()), zod.null()]),
|
|
14208
|
+
"sensitive": zod.boolean(),
|
|
14209
|
+
"created_at": zod.string().datetime({ "offset": true })
|
|
14210
|
+
}))
|
|
14362
14211
|
}),
|
|
14363
14212
|
"message": zod.string()
|
|
14364
14213
|
});
|
|
14365
|
-
var promoteCaseTypeVersionPathCaseTypeSlugRegExp = new RegExp("^[a-z][a-z0-9_-]*$");
|
|
14366
14214
|
var PromoteCaseTypeVersionParams = zod.object({
|
|
14367
|
-
"caseTypeSlug": zod.string()
|
|
14215
|
+
"caseTypeSlug": zod.string(),
|
|
14368
14216
|
"version": zod.number()
|
|
14369
14217
|
});
|
|
14370
14218
|
var PromoteCaseTypeVersionBody = zod.object({
|
|
@@ -14377,6 +14225,74 @@ var PromoteCaseTypeVersionResponse = zod.object({
|
|
|
14377
14225
|
}),
|
|
14378
14226
|
"message": zod.string()
|
|
14379
14227
|
});
|
|
14228
|
+
var CreateCaseTypeFieldParams = zod.object({
|
|
14229
|
+
"caseTypeSlug": zod.string()
|
|
14230
|
+
});
|
|
14231
|
+
var createCaseTypeFieldBodyKeyRegExp = new RegExp("^[a-z][a-z0-9_]*$");
|
|
14232
|
+
var createCaseTypeFieldBodyListDefault = false;
|
|
14233
|
+
var createCaseTypeFieldBodyLabelDefault = null;
|
|
14234
|
+
var createCaseTypeFieldBodyNullableDefault = false;
|
|
14235
|
+
var createCaseTypeFieldBodyEnumDefault = null;
|
|
14236
|
+
var createCaseTypeFieldBodySensitiveDefault = false;
|
|
14237
|
+
var CreateCaseTypeFieldBody = zod.object({
|
|
14238
|
+
"key": zod.string().regex(createCaseTypeFieldBodyKeyRegExp).describe("Permanent, and never reused within the case type."),
|
|
14239
|
+
"type": zod.enum(["string", "number", "boolean", "date", "date_time"]).describe("Permanent."),
|
|
14240
|
+
"list": zod.boolean().default(createCaseTypeFieldBodyListDefault).describe("Permanent."),
|
|
14241
|
+
"label": zod.union([zod.string().min(1), zod.null()]).default(createCaseTypeFieldBodyLabelDefault),
|
|
14242
|
+
"description": zod.string(),
|
|
14243
|
+
"nullable": zod.boolean().default(createCaseTypeFieldBodyNullableDefault),
|
|
14244
|
+
"enum": zod.union([zod.array(zod.string()).min(1), zod.null()]).default(createCaseTypeFieldBodyEnumDefault),
|
|
14245
|
+
"sensitive": zod.boolean().default(createCaseTypeFieldBodySensitiveDefault)
|
|
14246
|
+
});
|
|
14247
|
+
var CreateCaseTypeFieldResponse = zod.object({
|
|
14248
|
+
"data": zod.object({
|
|
14249
|
+
"id": zod.string().uuid(),
|
|
14250
|
+
"key": zod.string(),
|
|
14251
|
+
"label": zod.union([zod.string(), zod.null()]),
|
|
14252
|
+
"description": zod.string(),
|
|
14253
|
+
"type": zod.enum(["string", "number", "boolean", "date", "date_time"]),
|
|
14254
|
+
"list": zod.boolean(),
|
|
14255
|
+
"nullable": zod.boolean(),
|
|
14256
|
+
"enum": zod.union([zod.array(zod.string()), zod.null()]),
|
|
14257
|
+
"sensitive": zod.boolean(),
|
|
14258
|
+
"created_at": zod.string().datetime({ "offset": true })
|
|
14259
|
+
}),
|
|
14260
|
+
"message": zod.string()
|
|
14261
|
+
});
|
|
14262
|
+
var UpdateCaseTypeFieldParams = zod.object({
|
|
14263
|
+
"caseTypeSlug": zod.string(),
|
|
14264
|
+
"fieldId": zod.string().uuid()
|
|
14265
|
+
});
|
|
14266
|
+
var UpdateCaseTypeFieldBody = zod.object({
|
|
14267
|
+
"label": zod.union([zod.string().min(1), zod.null()]).optional(),
|
|
14268
|
+
"description": zod.string().optional(),
|
|
14269
|
+
"nullable": zod.boolean().optional(),
|
|
14270
|
+
"enum": zod.union([zod.array(zod.string()).min(1), zod.null()]).optional(),
|
|
14271
|
+
"sensitive": zod.boolean().optional()
|
|
14272
|
+
});
|
|
14273
|
+
var UpdateCaseTypeFieldResponse = zod.object({
|
|
14274
|
+
"data": zod.object({
|
|
14275
|
+
"id": zod.string().uuid(),
|
|
14276
|
+
"key": zod.string(),
|
|
14277
|
+
"label": zod.union([zod.string(), zod.null()]),
|
|
14278
|
+
"description": zod.string(),
|
|
14279
|
+
"type": zod.enum(["string", "number", "boolean", "date", "date_time"]),
|
|
14280
|
+
"list": zod.boolean(),
|
|
14281
|
+
"nullable": zod.boolean(),
|
|
14282
|
+
"enum": zod.union([zod.array(zod.string()), zod.null()]),
|
|
14283
|
+
"sensitive": zod.boolean(),
|
|
14284
|
+
"created_at": zod.string().datetime({ "offset": true })
|
|
14285
|
+
}),
|
|
14286
|
+
"message": zod.string()
|
|
14287
|
+
});
|
|
14288
|
+
var DeleteCaseTypeFieldParams = zod.object({
|
|
14289
|
+
"caseTypeSlug": zod.string(),
|
|
14290
|
+
"fieldId": zod.string().uuid()
|
|
14291
|
+
});
|
|
14292
|
+
var DeleteCaseTypeFieldResponse = zod.object({
|
|
14293
|
+
"data": zod.object({}),
|
|
14294
|
+
"message": zod.string()
|
|
14295
|
+
});
|
|
14380
14296
|
var CreateToolBody = zod.object({
|
|
14381
14297
|
"name": zod.string().min(1),
|
|
14382
14298
|
"code": zod.string().min(1),
|
|
@@ -17994,7 +17910,7 @@ var createMcpServer = (options) => {
|
|
|
17994
17910
|
"updateCaseType",
|
|
17995
17911
|
{
|
|
17996
17912
|
title: "Update case type",
|
|
17997
|
-
description: "
|
|
17913
|
+
description: "Update a case type. Its fields are changed through `/v1/case-types/{caseTypeSlug}/fields`.",
|
|
17998
17914
|
inputSchema: {
|
|
17999
17915
|
pathParams: UpdateCaseTypeParams,
|
|
18000
17916
|
bodyParams: UpdateCaseTypeBody.optional()
|
|
@@ -18057,6 +17973,56 @@ var createMcpServer = (options) => {
|
|
|
18057
17973
|
signal: options?.signal ? AbortSignal.any([options.signal, ctx.signal]) : ctx.signal
|
|
18058
17974
|
})
|
|
18059
17975
|
);
|
|
17976
|
+
tools.createCaseTypeField = server2.registerTool(
|
|
17977
|
+
"createCaseTypeField",
|
|
17978
|
+
{
|
|
17979
|
+
title: "Create case type field",
|
|
17980
|
+
description: "Add a field to a case type. Creates a new version; promote it to use the field.",
|
|
17981
|
+
inputSchema: {
|
|
17982
|
+
pathParams: CreateCaseTypeFieldParams,
|
|
17983
|
+
bodyParams: CreateCaseTypeFieldBody.optional()
|
|
17984
|
+
},
|
|
17985
|
+
outputSchema: CreateCaseTypeFieldResponse,
|
|
17986
|
+
annotations: { destructiveHint: true }
|
|
17987
|
+
},
|
|
17988
|
+
(args, ctx) => createCaseTypeFieldHandler(args, {
|
|
17989
|
+
...options,
|
|
17990
|
+
signal: options?.signal ? AbortSignal.any([options.signal, ctx.signal]) : ctx.signal
|
|
17991
|
+
})
|
|
17992
|
+
);
|
|
17993
|
+
tools.updateCaseTypeField = server2.registerTool(
|
|
17994
|
+
"updateCaseTypeField",
|
|
17995
|
+
{
|
|
17996
|
+
title: "Update case type field",
|
|
17997
|
+
description: "Change a field's label, description, nullability, enum or sensitivity. Creates a new version when something changes; promote it to use the change. A field's key, type and list-ness are permanent.",
|
|
17998
|
+
inputSchema: {
|
|
17999
|
+
pathParams: UpdateCaseTypeFieldParams,
|
|
18000
|
+
bodyParams: UpdateCaseTypeFieldBody.optional()
|
|
18001
|
+
},
|
|
18002
|
+
outputSchema: UpdateCaseTypeFieldResponse,
|
|
18003
|
+
annotations: { destructiveHint: true }
|
|
18004
|
+
},
|
|
18005
|
+
(args, ctx) => updateCaseTypeFieldHandler(args, {
|
|
18006
|
+
...options,
|
|
18007
|
+
signal: options?.signal ? AbortSignal.any([options.signal, ctx.signal]) : ctx.signal
|
|
18008
|
+
})
|
|
18009
|
+
);
|
|
18010
|
+
tools.deleteCaseTypeField = server2.registerTool(
|
|
18011
|
+
"deleteCaseTypeField",
|
|
18012
|
+
{
|
|
18013
|
+
title: "Delete case type field",
|
|
18014
|
+
description: "Remove a field from a case type. Creates a new version; once it is promoted, the field can't be written. Cases keep their values, and the key can't be reused.",
|
|
18015
|
+
inputSchema: {
|
|
18016
|
+
pathParams: DeleteCaseTypeFieldParams
|
|
18017
|
+
},
|
|
18018
|
+
outputSchema: DeleteCaseTypeFieldResponse,
|
|
18019
|
+
annotations: { destructiveHint: true, idempotentHint: true }
|
|
18020
|
+
},
|
|
18021
|
+
(args, ctx) => deleteCaseTypeFieldHandler(args, {
|
|
18022
|
+
...options,
|
|
18023
|
+
signal: options?.signal ? AbortSignal.any([options.signal, ctx.signal]) : ctx.signal
|
|
18024
|
+
})
|
|
18025
|
+
);
|
|
18060
18026
|
tools.createTool = server2.registerTool(
|
|
18061
18027
|
"createTool",
|
|
18062
18028
|
{
|
|
@@ -18558,4 +18524,4 @@ var transport = new StdioServerTransport();
|
|
|
18558
18524
|
server.connect(transport).then(() => {
|
|
18559
18525
|
console.error("MCP server running on stdio");
|
|
18560
18526
|
}).catch(console.error);
|
|
18561
|
-
//# sourceMappingURL=server-
|
|
18527
|
+
//# sourceMappingURL=server-ZP5NLIME.js.map
|