servicem8 0.7.0 → 0.9.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 +0 -10
- package/api.json +629 -1076
- package/bin/mcp-server.js +532 -1359
- package/bin/mcp-server.js.map +8 -24
- package/dist/commonjs/lib/config.d.ts +3 -3
- package/dist/commonjs/lib/config.js +3 -3
- package/dist/commonjs/mcp-server/mcp-server.js +1 -1
- package/dist/commonjs/mcp-server/server.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/server.js +10 -20
- package/dist/commonjs/mcp-server/server.js.map +1 -1
- package/dist/commonjs/models/components/index.d.ts +0 -1
- package/dist/commonjs/models/components/index.d.ts.map +1 -1
- package/dist/commonjs/models/components/index.js +0 -1
- package/dist/commonjs/models/components/index.js.map +1 -1
- package/dist/commonjs/models/operations/index.d.ts +0 -5
- package/dist/commonjs/models/operations/index.d.ts.map +1 -1
- package/dist/commonjs/models/operations/index.js +0 -5
- package/dist/commonjs/models/operations/index.js.map +1 -1
- package/dist/commonjs/sdk/jobtemplates.d.ts +0 -54
- package/dist/commonjs/sdk/jobtemplates.d.ts.map +1 -1
- package/dist/commonjs/sdk/jobtemplates.js +0 -68
- package/dist/commonjs/sdk/jobtemplates.js.map +1 -1
- package/dist/commonjs/sdk/sdk.d.ts +4 -4
- package/dist/commonjs/sdk/sdk.d.ts.map +1 -1
- package/dist/commonjs/sdk/sdk.js +6 -6
- package/dist/commonjs/sdk/sdk.js.map +1 -1
- package/dist/esm/lib/config.d.ts +3 -3
- package/dist/esm/lib/config.js +3 -3
- package/dist/esm/mcp-server/mcp-server.js +1 -1
- package/dist/esm/mcp-server/server.d.ts.map +1 -1
- package/dist/esm/mcp-server/server.js +10 -20
- package/dist/esm/mcp-server/server.js.map +1 -1
- package/dist/esm/models/components/index.d.ts +0 -1
- package/dist/esm/models/components/index.d.ts.map +1 -1
- package/dist/esm/models/components/index.js +0 -1
- package/dist/esm/models/components/index.js.map +1 -1
- package/dist/esm/models/operations/index.d.ts +0 -5
- package/dist/esm/models/operations/index.d.ts.map +1 -1
- package/dist/esm/models/operations/index.js +0 -5
- package/dist/esm/models/operations/index.js.map +1 -1
- package/dist/esm/sdk/jobtemplates.d.ts +0 -54
- package/dist/esm/sdk/jobtemplates.d.ts.map +1 -1
- package/dist/esm/sdk/jobtemplates.js +0 -68
- package/dist/esm/sdk/jobtemplates.js.map +1 -1
- package/dist/esm/sdk/sdk.d.ts +4 -4
- package/dist/esm/sdk/sdk.d.ts.map +1 -1
- package/dist/esm/sdk/sdk.js +6 -6
- package/dist/esm/sdk/sdk.js.map +1 -1
- package/docs/sdks/allocationwindows/README.md +4 -4
- package/docs/sdks/assets/README.md +6 -6
- package/docs/sdks/assettypefields/README.md +8 -8
- package/docs/sdks/assettypes/README.md +4 -4
- package/docs/sdks/attachments/README.md +12 -12
- package/docs/sdks/badges/README.md +12 -12
- package/docs/sdks/bundles/README.md +4 -4
- package/docs/sdks/categories/README.md +4 -4
- package/docs/sdks/clients/README.md +8 -8
- package/docs/sdks/companycontacts/README.md +8 -8
- package/docs/sdks/emailtemplates/README.md +4 -4
- package/docs/sdks/feedback/README.md +8 -8
- package/docs/sdks/formfields/README.md +8 -8
- package/docs/sdks/formresponses/README.md +28 -28
- package/docs/sdks/forms/README.md +8 -8
- package/docs/sdks/jobactivities/README.md +20 -20
- package/docs/sdks/joballocations/README.md +24 -24
- package/docs/sdks/jobchecklists/README.md +32 -32
- package/docs/sdks/jobcontacts/README.md +8 -8
- package/docs/sdks/jobmaterialbundles/README.md +12 -12
- package/docs/sdks/jobmaterials/README.md +20 -20
- package/docs/sdks/jobpayments/README.md +16 -16
- package/docs/sdks/jobqueues/README.md +4 -4
- package/docs/sdks/jobs/README.md +32 -32
- package/docs/sdks/jobtemplates/README.md +0 -431
- package/docs/sdks/knowledgearticles/README.md +4 -4
- package/docs/sdks/locations/README.md +4 -4
- package/docs/sdks/materials/README.md +8 -8
- package/docs/sdks/notes/README.md +12 -12
- package/docs/sdks/securityroles/README.md +4 -4
- package/docs/sdks/smstemplates/README.md +4 -4
- package/docs/sdks/staffmembers/README.md +12 -12
- package/docs/sdks/staffmessages/README.md +16 -16
- package/docs/sdks/tasks/README.md +20 -20
- package/docs/sdks/taxrates/README.md +4 -4
- package/docs/sdks/vendors/README.md +2 -2
- package/examples/package-lock.json +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +10 -20
- package/src/models/components/index.ts +0 -1
- package/src/models/operations/index.ts +0 -5
- package/src/sdk/jobtemplates.ts +0 -107
- package/src/sdk/sdk.ts +10 -10
- package/dist/commonjs/funcs/jobTemplatesCreateJobTemplates.d.ts +0 -24
- package/dist/commonjs/funcs/jobTemplatesCreateJobTemplates.d.ts.map +0 -1
- package/dist/commonjs/funcs/jobTemplatesCreateJobTemplates.js +0 -138
- package/dist/commonjs/funcs/jobTemplatesCreateJobTemplates.js.map +0 -1
- package/dist/commonjs/funcs/jobTemplatesDeleteJobTemplates.d.ts +0 -22
- package/dist/commonjs/funcs/jobTemplatesDeleteJobTemplates.d.ts.map +0 -1
- package/dist/commonjs/funcs/jobTemplatesDeleteJobTemplates.js +0 -136
- package/dist/commonjs/funcs/jobTemplatesDeleteJobTemplates.js.map +0 -1
- package/dist/commonjs/funcs/jobTemplatesGetJobTemplates.d.ts +0 -20
- package/dist/commonjs/funcs/jobTemplatesGetJobTemplates.d.ts.map +0 -1
- package/dist/commonjs/funcs/jobTemplatesGetJobTemplates.js +0 -134
- package/dist/commonjs/funcs/jobTemplatesGetJobTemplates.js.map +0 -1
- package/dist/commonjs/funcs/jobTemplatesListJobTemplates.d.ts +0 -23
- package/dist/commonjs/funcs/jobTemplatesListJobTemplates.d.ts.map +0 -1
- package/dist/commonjs/funcs/jobTemplatesListJobTemplates.js +0 -122
- package/dist/commonjs/funcs/jobTemplatesListJobTemplates.js.map +0 -1
- package/dist/commonjs/funcs/jobTemplatesUpdateJobTemplates.d.ts +0 -20
- package/dist/commonjs/funcs/jobTemplatesUpdateJobTemplates.d.ts.map +0 -1
- package/dist/commonjs/funcs/jobTemplatesUpdateJobTemplates.js +0 -135
- package/dist/commonjs/funcs/jobTemplatesUpdateJobTemplates.js.map +0 -1
- package/dist/commonjs/mcp-server/tools/jobTemplatesCreateJobTemplates.d.ts +0 -8
- package/dist/commonjs/mcp-server/tools/jobTemplatesCreateJobTemplates.d.ts.map +0 -1
- package/dist/commonjs/mcp-server/tools/jobTemplatesCreateJobTemplates.js +0 -74
- package/dist/commonjs/mcp-server/tools/jobTemplatesCreateJobTemplates.js.map +0 -1
- package/dist/commonjs/mcp-server/tools/jobTemplatesDeleteJobTemplates.d.ts +0 -8
- package/dist/commonjs/mcp-server/tools/jobTemplatesDeleteJobTemplates.d.ts.map +0 -1
- package/dist/commonjs/mcp-server/tools/jobTemplatesDeleteJobTemplates.js +0 -73
- package/dist/commonjs/mcp-server/tools/jobTemplatesDeleteJobTemplates.js.map +0 -1
- package/dist/commonjs/mcp-server/tools/jobTemplatesGetJobTemplates.d.ts +0 -8
- package/dist/commonjs/mcp-server/tools/jobTemplatesGetJobTemplates.d.ts.map +0 -1
- package/dist/commonjs/mcp-server/tools/jobTemplatesGetJobTemplates.js +0 -69
- package/dist/commonjs/mcp-server/tools/jobTemplatesGetJobTemplates.js.map +0 -1
- package/dist/commonjs/mcp-server/tools/jobTemplatesListJobTemplates.d.ts +0 -3
- package/dist/commonjs/mcp-server/tools/jobTemplatesListJobTemplates.d.ts.map +0 -1
- package/dist/commonjs/mcp-server/tools/jobTemplatesListJobTemplates.js +0 -35
- package/dist/commonjs/mcp-server/tools/jobTemplatesListJobTemplates.js.map +0 -1
- package/dist/commonjs/mcp-server/tools/jobTemplatesUpdateJobTemplates.d.ts +0 -8
- package/dist/commonjs/mcp-server/tools/jobTemplatesUpdateJobTemplates.d.ts.map +0 -1
- package/dist/commonjs/mcp-server/tools/jobTemplatesUpdateJobTemplates.js +0 -69
- package/dist/commonjs/mcp-server/tools/jobTemplatesUpdateJobTemplates.js.map +0 -1
- package/dist/commonjs/models/components/jobtemplate.d.ts +0 -111
- package/dist/commonjs/models/components/jobtemplate.d.ts.map +0 -1
- package/dist/commonjs/models/components/jobtemplate.js +0 -137
- package/dist/commonjs/models/components/jobtemplate.js.map +0 -1
- package/dist/commonjs/models/operations/createjobtemplates.d.ts +0 -57
- package/dist/commonjs/models/operations/createjobtemplates.d.ts.map +0 -1
- package/dist/commonjs/models/operations/createjobtemplates.js +0 -115
- package/dist/commonjs/models/operations/createjobtemplates.js.map +0 -1
- package/dist/commonjs/models/operations/deletejobtemplates.d.ts +0 -54
- package/dist/commonjs/models/operations/deletejobtemplates.d.ts.map +0 -1
- package/dist/commonjs/models/operations/deletejobtemplates.js +0 -96
- package/dist/commonjs/models/operations/deletejobtemplates.js.map +0 -1
- package/dist/commonjs/models/operations/getjobtemplates.d.ts +0 -54
- package/dist/commonjs/models/operations/getjobtemplates.d.ts.map +0 -1
- package/dist/commonjs/models/operations/getjobtemplates.js +0 -99
- package/dist/commonjs/models/operations/getjobtemplates.js.map +0 -1
- package/dist/commonjs/models/operations/listjobtemplates.d.ts +0 -26
- package/dist/commonjs/models/operations/listjobtemplates.d.ts.map +0 -1
- package/dist/commonjs/models/operations/listjobtemplates.js +0 -72
- package/dist/commonjs/models/operations/listjobtemplates.js.map +0 -1
- package/dist/commonjs/models/operations/updatejobtemplates.d.ts +0 -59
- package/dist/commonjs/models/operations/updatejobtemplates.d.ts.map +0 -1
- package/dist/commonjs/models/operations/updatejobtemplates.js +0 -107
- package/dist/commonjs/models/operations/updatejobtemplates.js.map +0 -1
- package/dist/esm/funcs/jobTemplatesCreateJobTemplates.d.ts +0 -24
- package/dist/esm/funcs/jobTemplatesCreateJobTemplates.d.ts.map +0 -1
- package/dist/esm/funcs/jobTemplatesCreateJobTemplates.js +0 -102
- package/dist/esm/funcs/jobTemplatesCreateJobTemplates.js.map +0 -1
- package/dist/esm/funcs/jobTemplatesDeleteJobTemplates.d.ts +0 -22
- package/dist/esm/funcs/jobTemplatesDeleteJobTemplates.d.ts.map +0 -1
- package/dist/esm/funcs/jobTemplatesDeleteJobTemplates.js +0 -100
- package/dist/esm/funcs/jobTemplatesDeleteJobTemplates.js.map +0 -1
- package/dist/esm/funcs/jobTemplatesGetJobTemplates.d.ts +0 -20
- package/dist/esm/funcs/jobTemplatesGetJobTemplates.d.ts.map +0 -1
- package/dist/esm/funcs/jobTemplatesGetJobTemplates.js +0 -98
- package/dist/esm/funcs/jobTemplatesGetJobTemplates.js.map +0 -1
- package/dist/esm/funcs/jobTemplatesListJobTemplates.d.ts +0 -23
- package/dist/esm/funcs/jobTemplatesListJobTemplates.d.ts.map +0 -1
- package/dist/esm/funcs/jobTemplatesListJobTemplates.js +0 -86
- package/dist/esm/funcs/jobTemplatesListJobTemplates.js.map +0 -1
- package/dist/esm/funcs/jobTemplatesUpdateJobTemplates.d.ts +0 -20
- package/dist/esm/funcs/jobTemplatesUpdateJobTemplates.d.ts.map +0 -1
- package/dist/esm/funcs/jobTemplatesUpdateJobTemplates.js +0 -99
- package/dist/esm/funcs/jobTemplatesUpdateJobTemplates.js.map +0 -1
- package/dist/esm/mcp-server/tools/jobTemplatesCreateJobTemplates.d.ts +0 -8
- package/dist/esm/mcp-server/tools/jobTemplatesCreateJobTemplates.d.ts.map +0 -1
- package/dist/esm/mcp-server/tools/jobTemplatesCreateJobTemplates.js +0 -38
- package/dist/esm/mcp-server/tools/jobTemplatesCreateJobTemplates.js.map +0 -1
- package/dist/esm/mcp-server/tools/jobTemplatesDeleteJobTemplates.d.ts +0 -8
- package/dist/esm/mcp-server/tools/jobTemplatesDeleteJobTemplates.d.ts.map +0 -1
- package/dist/esm/mcp-server/tools/jobTemplatesDeleteJobTemplates.js +0 -37
- package/dist/esm/mcp-server/tools/jobTemplatesDeleteJobTemplates.js.map +0 -1
- package/dist/esm/mcp-server/tools/jobTemplatesGetJobTemplates.d.ts +0 -8
- package/dist/esm/mcp-server/tools/jobTemplatesGetJobTemplates.d.ts.map +0 -1
- package/dist/esm/mcp-server/tools/jobTemplatesGetJobTemplates.js +0 -33
- package/dist/esm/mcp-server/tools/jobTemplatesGetJobTemplates.js.map +0 -1
- package/dist/esm/mcp-server/tools/jobTemplatesListJobTemplates.d.ts +0 -3
- package/dist/esm/mcp-server/tools/jobTemplatesListJobTemplates.d.ts.map +0 -1
- package/dist/esm/mcp-server/tools/jobTemplatesListJobTemplates.js +0 -32
- package/dist/esm/mcp-server/tools/jobTemplatesListJobTemplates.js.map +0 -1
- package/dist/esm/mcp-server/tools/jobTemplatesUpdateJobTemplates.d.ts +0 -8
- package/dist/esm/mcp-server/tools/jobTemplatesUpdateJobTemplates.d.ts.map +0 -1
- package/dist/esm/mcp-server/tools/jobTemplatesUpdateJobTemplates.js +0 -33
- package/dist/esm/mcp-server/tools/jobTemplatesUpdateJobTemplates.js.map +0 -1
- package/dist/esm/models/components/jobtemplate.d.ts +0 -111
- package/dist/esm/models/components/jobtemplate.d.ts.map +0 -1
- package/dist/esm/models/components/jobtemplate.js +0 -97
- package/dist/esm/models/components/jobtemplate.js.map +0 -1
- package/dist/esm/models/operations/createjobtemplates.d.ts +0 -57
- package/dist/esm/models/operations/createjobtemplates.d.ts.map +0 -1
- package/dist/esm/models/operations/createjobtemplates.js +0 -75
- package/dist/esm/models/operations/createjobtemplates.js.map +0 -1
- package/dist/esm/models/operations/deletejobtemplates.d.ts +0 -54
- package/dist/esm/models/operations/deletejobtemplates.d.ts.map +0 -1
- package/dist/esm/models/operations/deletejobtemplates.js +0 -56
- package/dist/esm/models/operations/deletejobtemplates.js.map +0 -1
- package/dist/esm/models/operations/getjobtemplates.d.ts +0 -54
- package/dist/esm/models/operations/getjobtemplates.d.ts.map +0 -1
- package/dist/esm/models/operations/getjobtemplates.js +0 -59
- package/dist/esm/models/operations/getjobtemplates.js.map +0 -1
- package/dist/esm/models/operations/listjobtemplates.d.ts +0 -26
- package/dist/esm/models/operations/listjobtemplates.d.ts.map +0 -1
- package/dist/esm/models/operations/listjobtemplates.js +0 -34
- package/dist/esm/models/operations/listjobtemplates.js.map +0 -1
- package/dist/esm/models/operations/updatejobtemplates.d.ts +0 -59
- package/dist/esm/models/operations/updatejobtemplates.d.ts.map +0 -1
- package/dist/esm/models/operations/updatejobtemplates.js +0 -67
- package/dist/esm/models/operations/updatejobtemplates.js.map +0 -1
- package/src/funcs/jobTemplatesCreateJobTemplates.ts +0 -190
- package/src/funcs/jobTemplatesDeleteJobTemplates.ts +0 -189
- package/src/funcs/jobTemplatesGetJobTemplates.ts +0 -187
- package/src/funcs/jobTemplatesListJobTemplates.ts +0 -166
- package/src/funcs/jobTemplatesUpdateJobTemplates.ts +0 -188
- package/src/mcp-server/tools/jobTemplatesCreateJobTemplates.ts +0 -48
- package/src/mcp-server/tools/jobTemplatesDeleteJobTemplates.ts +0 -47
- package/src/mcp-server/tools/jobTemplatesGetJobTemplates.ts +0 -42
- package/src/mcp-server/tools/jobTemplatesListJobTemplates.ts +0 -39
- package/src/mcp-server/tools/jobTemplatesUpdateJobTemplates.ts +0 -43
- package/src/models/components/jobtemplate.ts +0 -198
- package/src/models/operations/createjobtemplates.ts +0 -147
- package/src/models/operations/deletejobtemplates.ts +0 -125
- package/src/models/operations/getjobtemplates.ts +0 -130
- package/src/models/operations/listjobtemplates.ts +0 -69
- package/src/models/operations/updatejobtemplates.ts +0 -141
package/bin/mcp-server.js
CHANGED
|
@@ -34205,9 +34205,9 @@ var init_config = __esm(() => {
|
|
|
34205
34205
|
SDK_METADATA = {
|
|
34206
34206
|
language: "typescript",
|
|
34207
34207
|
openapiDocVersion: "1.0.0",
|
|
34208
|
-
sdkVersion: "0.
|
|
34209
|
-
genVersion: "2.656.
|
|
34210
|
-
userAgent: "speakeasy-sdk/typescript 0.
|
|
34208
|
+
sdkVersion: "0.9.0",
|
|
34209
|
+
genVersion: "2.656.5",
|
|
34210
|
+
userAgent: "speakeasy-sdk/typescript 0.9.0 2.656.5 1.0.0 servicem8"
|
|
34211
34211
|
};
|
|
34212
34212
|
});
|
|
34213
34213
|
|
|
@@ -39146,61 +39146,6 @@ var init_jobpayment = __esm(() => {
|
|
|
39146
39146
|
})(JobPaymentInput$ ||= {});
|
|
39147
39147
|
});
|
|
39148
39148
|
|
|
39149
|
-
// src/models/components/jobtemplate.ts
|
|
39150
|
-
var JobTemplateActive, JobTemplateActive$inboundSchema, JobTemplateActive$outboundSchema, JobTemplateActive$, JobTemplate$inboundSchema, JobTemplate$outboundSchema, JobTemplate$, JobTemplateInput$inboundSchema, JobTemplateInput$outboundSchema, JobTemplateInput$;
|
|
39151
|
-
var init_jobtemplate = __esm(() => {
|
|
39152
|
-
init_esm();
|
|
39153
|
-
init_primitives();
|
|
39154
|
-
JobTemplateActive = {
|
|
39155
|
-
Zero: 0,
|
|
39156
|
-
One: 1
|
|
39157
|
-
};
|
|
39158
|
-
JobTemplateActive$inboundSchema = nativeEnumType(JobTemplateActive);
|
|
39159
|
-
JobTemplateActive$outboundSchema = JobTemplateActive$inboundSchema;
|
|
39160
|
-
((JobTemplateActive$) => {
|
|
39161
|
-
JobTemplateActive$.inboundSchema = JobTemplateActive$inboundSchema;
|
|
39162
|
-
JobTemplateActive$.outboundSchema = JobTemplateActive$outboundSchema;
|
|
39163
|
-
})(JobTemplateActive$ ||= {});
|
|
39164
|
-
JobTemplate$inboundSchema = objectType({
|
|
39165
|
-
uuid: stringType().optional(),
|
|
39166
|
-
active: JobTemplateActive$inboundSchema.default(1),
|
|
39167
|
-
edit_date: anyType().optional(),
|
|
39168
|
-
name: stringType().optional()
|
|
39169
|
-
}).transform((v2) => {
|
|
39170
|
-
return remap(v2, {
|
|
39171
|
-
edit_date: "editDate"
|
|
39172
|
-
});
|
|
39173
|
-
});
|
|
39174
|
-
JobTemplate$outboundSchema = objectType({
|
|
39175
|
-
uuid: stringType().optional(),
|
|
39176
|
-
active: JobTemplateActive$outboundSchema.default(1),
|
|
39177
|
-
editDate: anyType().optional(),
|
|
39178
|
-
name: stringType().optional()
|
|
39179
|
-
}).transform((v2) => {
|
|
39180
|
-
return remap(v2, {
|
|
39181
|
-
editDate: "edit_date"
|
|
39182
|
-
});
|
|
39183
|
-
});
|
|
39184
|
-
((JobTemplate$) => {
|
|
39185
|
-
JobTemplate$.inboundSchema = JobTemplate$inboundSchema;
|
|
39186
|
-
JobTemplate$.outboundSchema = JobTemplate$outboundSchema;
|
|
39187
|
-
})(JobTemplate$ ||= {});
|
|
39188
|
-
JobTemplateInput$inboundSchema = objectType({
|
|
39189
|
-
uuid: stringType().optional(),
|
|
39190
|
-
active: JobTemplateActive$inboundSchema.default(1),
|
|
39191
|
-
name: stringType().optional()
|
|
39192
|
-
});
|
|
39193
|
-
JobTemplateInput$outboundSchema = objectType({
|
|
39194
|
-
uuid: stringType().optional(),
|
|
39195
|
-
active: JobTemplateActive$outboundSchema.default(1),
|
|
39196
|
-
name: stringType().optional()
|
|
39197
|
-
});
|
|
39198
|
-
((JobTemplateInput$) => {
|
|
39199
|
-
JobTemplateInput$.inboundSchema = JobTemplateInput$inboundSchema;
|
|
39200
|
-
JobTemplateInput$.outboundSchema = JobTemplateInput$outboundSchema;
|
|
39201
|
-
})(JobTemplateInput$ ||= {});
|
|
39202
|
-
});
|
|
39203
|
-
|
|
39204
39149
|
// src/models/components/jobtemplateoverrides.ts
|
|
39205
39150
|
var JobTemplateOverrides$inboundSchema, JobTemplateOverrides$outboundSchema, JobTemplateOverrides$;
|
|
39206
39151
|
var init_jobtemplateoverrides = __esm(() => {
|
|
@@ -41002,7 +40947,6 @@ var init_components = __esm(() => {
|
|
|
41002
40947
|
init_jobmaterial();
|
|
41003
40948
|
init_jobmaterialbundle();
|
|
41004
40949
|
init_jobpayment();
|
|
41005
|
-
init_jobtemplate();
|
|
41006
40950
|
init_jobtemplateoverrides();
|
|
41007
40951
|
init_knowledgearticle();
|
|
41008
40952
|
init_location();
|
|
@@ -42286,51 +42230,6 @@ var init_createjobs = __esm(() => {
|
|
|
42286
42230
|
})(CreateJobsResponse$ ||= {});
|
|
42287
42231
|
});
|
|
42288
42232
|
|
|
42289
|
-
// src/models/operations/createjobtemplates.ts
|
|
42290
|
-
var CreateJobTemplatesResponseResult$inboundSchema, CreateJobTemplatesResponseResult$outboundSchema, CreateJobTemplatesResponseResult$, CreateJobTemplatesResponse$inboundSchema, CreateJobTemplatesResponse$outboundSchema, CreateJobTemplatesResponse$;
|
|
42291
|
-
var init_createjobtemplates = __esm(() => {
|
|
42292
|
-
init_esm();
|
|
42293
|
-
init_primitives();
|
|
42294
|
-
init_components();
|
|
42295
|
-
CreateJobTemplatesResponseResult$inboundSchema = unionType([Result$inboundSchema, ErrorT$inboundSchema]);
|
|
42296
|
-
CreateJobTemplatesResponseResult$outboundSchema = unionType([
|
|
42297
|
-
Result$outboundSchema,
|
|
42298
|
-
ErrorT$outboundSchema
|
|
42299
|
-
]);
|
|
42300
|
-
((CreateJobTemplatesResponseResult$) => {
|
|
42301
|
-
CreateJobTemplatesResponseResult$.inboundSchema = CreateJobTemplatesResponseResult$inboundSchema;
|
|
42302
|
-
CreateJobTemplatesResponseResult$.outboundSchema = CreateJobTemplatesResponseResult$outboundSchema;
|
|
42303
|
-
})(CreateJobTemplatesResponseResult$ ||= {});
|
|
42304
|
-
CreateJobTemplatesResponse$inboundSchema = objectType({
|
|
42305
|
-
Headers: recordType(arrayType(stringType())),
|
|
42306
|
-
Result: unionType([
|
|
42307
|
-
Result$inboundSchema,
|
|
42308
|
-
ErrorT$inboundSchema
|
|
42309
|
-
])
|
|
42310
|
-
}).transform((v2) => {
|
|
42311
|
-
return remap(v2, {
|
|
42312
|
-
Headers: "headers",
|
|
42313
|
-
Result: "result"
|
|
42314
|
-
});
|
|
42315
|
-
});
|
|
42316
|
-
CreateJobTemplatesResponse$outboundSchema = objectType({
|
|
42317
|
-
headers: recordType(arrayType(stringType())),
|
|
42318
|
-
result: unionType([
|
|
42319
|
-
Result$outboundSchema,
|
|
42320
|
-
ErrorT$outboundSchema
|
|
42321
|
-
])
|
|
42322
|
-
}).transform((v2) => {
|
|
42323
|
-
return remap(v2, {
|
|
42324
|
-
headers: "Headers",
|
|
42325
|
-
result: "Result"
|
|
42326
|
-
});
|
|
42327
|
-
});
|
|
42328
|
-
((CreateJobTemplatesResponse$) => {
|
|
42329
|
-
CreateJobTemplatesResponse$.inboundSchema = CreateJobTemplatesResponse$inboundSchema;
|
|
42330
|
-
CreateJobTemplatesResponse$.outboundSchema = CreateJobTemplatesResponse$outboundSchema;
|
|
42331
|
-
})(CreateJobTemplatesResponse$ ||= {});
|
|
42332
|
-
});
|
|
42333
|
-
|
|
42334
42233
|
// src/models/operations/createknowledgearticles.ts
|
|
42335
42234
|
var CreateKnowledgeArticlesResponseResult$inboundSchema, CreateKnowledgeArticlesResponseResult$outboundSchema, CreateKnowledgeArticlesResponseResult$, CreateKnowledgeArticlesResponse$inboundSchema, CreateKnowledgeArticlesResponse$outboundSchema, CreateKnowledgeArticlesResponse$;
|
|
42336
42235
|
var init_createknowledgearticles = __esm(() => {
|
|
@@ -43405,32 +43304,6 @@ var init_deletejobs = __esm(() => {
|
|
|
43405
43304
|
})(DeleteJobsResponse$ ||= {});
|
|
43406
43305
|
});
|
|
43407
43306
|
|
|
43408
|
-
// src/models/operations/deletejobtemplates.ts
|
|
43409
|
-
var DeleteJobTemplatesRequest$inboundSchema, DeleteJobTemplatesRequest$outboundSchema, DeleteJobTemplatesRequest$, DeleteJobTemplatesResponse$inboundSchema, DeleteJobTemplatesResponse$outboundSchema, DeleteJobTemplatesResponse$;
|
|
43410
|
-
var init_deletejobtemplates = __esm(() => {
|
|
43411
|
-
init_esm();
|
|
43412
|
-
init_components();
|
|
43413
|
-
DeleteJobTemplatesRequest$inboundSchema = objectType({
|
|
43414
|
-
uuid: stringType()
|
|
43415
|
-
});
|
|
43416
|
-
DeleteJobTemplatesRequest$outboundSchema = objectType({
|
|
43417
|
-
uuid: stringType()
|
|
43418
|
-
});
|
|
43419
|
-
((DeleteJobTemplatesRequest$) => {
|
|
43420
|
-
DeleteJobTemplatesRequest$.inboundSchema = DeleteJobTemplatesRequest$inboundSchema;
|
|
43421
|
-
DeleteJobTemplatesRequest$.outboundSchema = DeleteJobTemplatesRequest$outboundSchema;
|
|
43422
|
-
})(DeleteJobTemplatesRequest$ ||= {});
|
|
43423
|
-
DeleteJobTemplatesResponse$inboundSchema = unionType([Result$inboundSchema, ErrorT$inboundSchema]);
|
|
43424
|
-
DeleteJobTemplatesResponse$outboundSchema = unionType([
|
|
43425
|
-
Result$outboundSchema,
|
|
43426
|
-
ErrorT$outboundSchema
|
|
43427
|
-
]);
|
|
43428
|
-
((DeleteJobTemplatesResponse$) => {
|
|
43429
|
-
DeleteJobTemplatesResponse$.inboundSchema = DeleteJobTemplatesResponse$inboundSchema;
|
|
43430
|
-
DeleteJobTemplatesResponse$.outboundSchema = DeleteJobTemplatesResponse$outboundSchema;
|
|
43431
|
-
})(DeleteJobTemplatesResponse$ ||= {});
|
|
43432
|
-
});
|
|
43433
|
-
|
|
43434
43307
|
// src/models/operations/deleteknowledgearticles.ts
|
|
43435
43308
|
var DeleteKnowledgeArticlesRequest$inboundSchema, DeleteKnowledgeArticlesRequest$outboundSchema, DeleteKnowledgeArticlesRequest$, DeleteKnowledgeArticlesResponse$inboundSchema, DeleteKnowledgeArticlesResponse$outboundSchema, DeleteKnowledgeArticlesResponse$;
|
|
43436
43309
|
var init_deleteknowledgearticles = __esm(() => {
|
|
@@ -44400,35 +44273,6 @@ var init_getjobs = __esm(() => {
|
|
|
44400
44273
|
})(GetJobsResponse$ ||= {});
|
|
44401
44274
|
});
|
|
44402
44275
|
|
|
44403
|
-
// src/models/operations/getjobtemplates.ts
|
|
44404
|
-
var GetJobTemplatesRequest$inboundSchema, GetJobTemplatesRequest$outboundSchema, GetJobTemplatesRequest$, GetJobTemplatesResponse$inboundSchema, GetJobTemplatesResponse$outboundSchema, GetJobTemplatesResponse$;
|
|
44405
|
-
var init_getjobtemplates = __esm(() => {
|
|
44406
|
-
init_esm();
|
|
44407
|
-
init_components();
|
|
44408
|
-
GetJobTemplatesRequest$inboundSchema = objectType({
|
|
44409
|
-
uuid: stringType()
|
|
44410
|
-
});
|
|
44411
|
-
GetJobTemplatesRequest$outboundSchema = objectType({
|
|
44412
|
-
uuid: stringType()
|
|
44413
|
-
});
|
|
44414
|
-
((GetJobTemplatesRequest$) => {
|
|
44415
|
-
GetJobTemplatesRequest$.inboundSchema = GetJobTemplatesRequest$inboundSchema;
|
|
44416
|
-
GetJobTemplatesRequest$.outboundSchema = GetJobTemplatesRequest$outboundSchema;
|
|
44417
|
-
})(GetJobTemplatesRequest$ ||= {});
|
|
44418
|
-
GetJobTemplatesResponse$inboundSchema = unionType([
|
|
44419
|
-
JobTemplate$inboundSchema,
|
|
44420
|
-
ErrorT$inboundSchema
|
|
44421
|
-
]);
|
|
44422
|
-
GetJobTemplatesResponse$outboundSchema = unionType([
|
|
44423
|
-
JobTemplate$outboundSchema,
|
|
44424
|
-
ErrorT$outboundSchema
|
|
44425
|
-
]);
|
|
44426
|
-
((GetJobTemplatesResponse$) => {
|
|
44427
|
-
GetJobTemplatesResponse$.inboundSchema = GetJobTemplatesResponse$inboundSchema;
|
|
44428
|
-
GetJobTemplatesResponse$.outboundSchema = GetJobTemplatesResponse$outboundSchema;
|
|
44429
|
-
})(GetJobTemplatesResponse$ ||= {});
|
|
44430
|
-
});
|
|
44431
|
-
|
|
44432
44276
|
// src/models/operations/getknowledgearticles.ts
|
|
44433
44277
|
var GetKnowledgeArticlesRequest$inboundSchema, GetKnowledgeArticlesRequest$outboundSchema, GetKnowledgeArticlesRequest$, GetKnowledgeArticlesResponse$inboundSchema, GetKnowledgeArticlesResponse$outboundSchema, GetKnowledgeArticlesResponse$;
|
|
44434
44278
|
var init_getknowledgearticles = __esm(() => {
|
|
@@ -45249,25 +45093,6 @@ var init_listjobs = __esm(() => {
|
|
|
45249
45093
|
})(ListJobsResponse$ ||= {});
|
|
45250
45094
|
});
|
|
45251
45095
|
|
|
45252
|
-
// src/models/operations/listjobtemplates.ts
|
|
45253
|
-
var ListJobTemplatesResponse$inboundSchema, ListJobTemplatesResponse$outboundSchema, ListJobTemplatesResponse$;
|
|
45254
|
-
var init_listjobtemplates = __esm(() => {
|
|
45255
|
-
init_esm();
|
|
45256
|
-
init_components();
|
|
45257
|
-
ListJobTemplatesResponse$inboundSchema = unionType([
|
|
45258
|
-
ErrorT$inboundSchema,
|
|
45259
|
-
arrayType(JobTemplate$inboundSchema)
|
|
45260
|
-
]);
|
|
45261
|
-
ListJobTemplatesResponse$outboundSchema = unionType([
|
|
45262
|
-
ErrorT$outboundSchema,
|
|
45263
|
-
arrayType(JobTemplate$outboundSchema)
|
|
45264
|
-
]);
|
|
45265
|
-
((ListJobTemplatesResponse$) => {
|
|
45266
|
-
ListJobTemplatesResponse$.inboundSchema = ListJobTemplatesResponse$inboundSchema;
|
|
45267
|
-
ListJobTemplatesResponse$.outboundSchema = ListJobTemplatesResponse$outboundSchema;
|
|
45268
|
-
})(ListJobTemplatesResponse$ ||= {});
|
|
45269
|
-
});
|
|
45270
|
-
|
|
45271
45096
|
// src/models/operations/listknowledgearticles.ts
|
|
45272
45097
|
var ListKnowledgeArticlesResponse$inboundSchema, ListKnowledgeArticlesResponse$outboundSchema, ListKnowledgeArticlesResponse$;
|
|
45273
45098
|
var init_listknowledgearticles = __esm(() => {
|
|
@@ -46445,43 +46270,6 @@ var init_updatejobs = __esm(() => {
|
|
|
46445
46270
|
})(UpdateJobsResponse$ ||= {});
|
|
46446
46271
|
});
|
|
46447
46272
|
|
|
46448
|
-
// src/models/operations/updatejobtemplates.ts
|
|
46449
|
-
var UpdateJobTemplatesRequest$inboundSchema, UpdateJobTemplatesRequest$outboundSchema, UpdateJobTemplatesRequest$, UpdateJobTemplatesResponse$inboundSchema, UpdateJobTemplatesResponse$outboundSchema, UpdateJobTemplatesResponse$;
|
|
46450
|
-
var init_updatejobtemplates = __esm(() => {
|
|
46451
|
-
init_esm();
|
|
46452
|
-
init_primitives();
|
|
46453
|
-
init_components();
|
|
46454
|
-
UpdateJobTemplatesRequest$inboundSchema = objectType({
|
|
46455
|
-
uuid: stringType(),
|
|
46456
|
-
JobTemplate: JobTemplateInput$inboundSchema
|
|
46457
|
-
}).transform((v2) => {
|
|
46458
|
-
return remap(v2, {
|
|
46459
|
-
JobTemplate: "jobTemplate"
|
|
46460
|
-
});
|
|
46461
|
-
});
|
|
46462
|
-
UpdateJobTemplatesRequest$outboundSchema = objectType({
|
|
46463
|
-
uuid: stringType(),
|
|
46464
|
-
jobTemplate: JobTemplateInput$outboundSchema
|
|
46465
|
-
}).transform((v2) => {
|
|
46466
|
-
return remap(v2, {
|
|
46467
|
-
jobTemplate: "JobTemplate"
|
|
46468
|
-
});
|
|
46469
|
-
});
|
|
46470
|
-
((UpdateJobTemplatesRequest$) => {
|
|
46471
|
-
UpdateJobTemplatesRequest$.inboundSchema = UpdateJobTemplatesRequest$inboundSchema;
|
|
46472
|
-
UpdateJobTemplatesRequest$.outboundSchema = UpdateJobTemplatesRequest$outboundSchema;
|
|
46473
|
-
})(UpdateJobTemplatesRequest$ ||= {});
|
|
46474
|
-
UpdateJobTemplatesResponse$inboundSchema = unionType([Result$inboundSchema, ErrorT$inboundSchema]);
|
|
46475
|
-
UpdateJobTemplatesResponse$outboundSchema = unionType([
|
|
46476
|
-
Result$outboundSchema,
|
|
46477
|
-
ErrorT$outboundSchema
|
|
46478
|
-
]);
|
|
46479
|
-
((UpdateJobTemplatesResponse$) => {
|
|
46480
|
-
UpdateJobTemplatesResponse$.inboundSchema = UpdateJobTemplatesResponse$inboundSchema;
|
|
46481
|
-
UpdateJobTemplatesResponse$.outboundSchema = UpdateJobTemplatesResponse$outboundSchema;
|
|
46482
|
-
})(UpdateJobTemplatesResponse$ ||= {});
|
|
46483
|
-
});
|
|
46484
|
-
|
|
46485
46273
|
// src/models/operations/updateknowledgearticles.ts
|
|
46486
46274
|
var UpdateKnowledgeArticlesRequest$inboundSchema, UpdateKnowledgeArticlesRequest$outboundSchema, UpdateKnowledgeArticlesRequest$, UpdateKnowledgeArticlesResponse$inboundSchema, UpdateKnowledgeArticlesResponse$outboundSchema, UpdateKnowledgeArticlesResponse$;
|
|
46487
46275
|
var init_updateknowledgearticles = __esm(() => {
|
|
@@ -46919,7 +46707,6 @@ var init_operations = __esm(() => {
|
|
|
46919
46707
|
init_createjobpayments();
|
|
46920
46708
|
init_createjobqueues();
|
|
46921
46709
|
init_createjobs();
|
|
46922
|
-
init_createjobtemplates();
|
|
46923
46710
|
init_createknowledgearticles();
|
|
46924
46711
|
init_createlocations();
|
|
46925
46712
|
init_creatematerials();
|
|
@@ -46954,7 +46741,6 @@ var init_operations = __esm(() => {
|
|
|
46954
46741
|
init_deletejobpayments();
|
|
46955
46742
|
init_deletejobqueues();
|
|
46956
46743
|
init_deletejobs();
|
|
46957
|
-
init_deletejobtemplates();
|
|
46958
46744
|
init_deleteknowledgearticles();
|
|
46959
46745
|
init_deletelocations();
|
|
46960
46746
|
init_deletematerials();
|
|
@@ -46991,7 +46777,6 @@ var init_operations = __esm(() => {
|
|
|
46991
46777
|
init_getjobpayments();
|
|
46992
46778
|
init_getjobqueues();
|
|
46993
46779
|
init_getjobs();
|
|
46994
|
-
init_getjobtemplates();
|
|
46995
46780
|
init_getknowledgearticles();
|
|
46996
46781
|
init_getlocations();
|
|
46997
46782
|
init_getmaterials();
|
|
@@ -47029,7 +46814,6 @@ var init_operations = __esm(() => {
|
|
|
47029
46814
|
init_listjobpayments();
|
|
47030
46815
|
init_listjobqueues();
|
|
47031
46816
|
init_listjobs();
|
|
47032
|
-
init_listjobtemplates();
|
|
47033
46817
|
init_listknowledgearticles();
|
|
47034
46818
|
init_listlocations();
|
|
47035
46819
|
init_listmaterials();
|
|
@@ -47068,7 +46852,6 @@ var init_operations = __esm(() => {
|
|
|
47068
46852
|
init_updatejobpayments();
|
|
47069
46853
|
init_updatejobqueues();
|
|
47070
46854
|
init_updatejobs();
|
|
47071
|
-
init_updatejobtemplates();
|
|
47072
46855
|
init_updateknowledgearticles();
|
|
47073
46856
|
init_updatelocations();
|
|
47074
46857
|
init_updatematerials();
|
|
@@ -62128,18 +61911,18 @@ This endpoint requires the following OAuth scope **manage_jobs**.`,
|
|
|
62128
61911
|
};
|
|
62129
61912
|
});
|
|
62130
61913
|
|
|
62131
|
-
// src/funcs/
|
|
62132
|
-
function
|
|
61914
|
+
// src/funcs/knowledgeArticlesCreateKnowledgeArticles.ts
|
|
61915
|
+
function knowledgeArticlesCreateKnowledgeArticles(client, request, options) {
|
|
62133
61916
|
return new APIPromise($do129(client, request, options));
|
|
62134
61917
|
}
|
|
62135
61918
|
async function $do129(client, request, options) {
|
|
62136
|
-
const parsed = safeParse(request, (value) =>
|
|
61919
|
+
const parsed = safeParse(request, (value) => KnowledgeArticleInput$outboundSchema.parse(value), "Input validation failed");
|
|
62137
61920
|
if (!parsed.ok) {
|
|
62138
61921
|
return [parsed, { status: "invalid" }];
|
|
62139
61922
|
}
|
|
62140
61923
|
const payload = parsed.value;
|
|
62141
61924
|
const body = encodeJSON("body", payload, { explode: true });
|
|
62142
|
-
const path = pathToFunc("/
|
|
61925
|
+
const path = pathToFunc("/knowledgearticle.json")();
|
|
62143
61926
|
const headers = new Headers(compactMap({
|
|
62144
61927
|
"Content-Type": "application/json",
|
|
62145
61928
|
Accept: "application/json"
|
|
@@ -62149,7 +61932,7 @@ async function $do129(client, request, options) {
|
|
|
62149
61932
|
const context = {
|
|
62150
61933
|
options: client._options,
|
|
62151
61934
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
62152
|
-
operationID: "
|
|
61935
|
+
operationID: "createKnowledgeArticles",
|
|
62153
61936
|
oAuth2Scopes: [],
|
|
62154
61937
|
resolvedSecurity: requestSecurity,
|
|
62155
61938
|
securitySource: client._options.security,
|
|
@@ -62192,18 +61975,16 @@ async function $do129(client, request, options) {
|
|
|
62192
61975
|
const responseFields = {
|
|
62193
61976
|
HttpMeta: { Response: response, Request: req }
|
|
62194
61977
|
};
|
|
62195
|
-
const [result2] = await match(json(200,
|
|
61978
|
+
const [result2] = await match(json(200, CreateKnowledgeArticlesResponse$inboundSchema, {
|
|
62196
61979
|
hdrs: true,
|
|
62197
61980
|
key: "Result"
|
|
62198
|
-
}), jsonErr(400, ErrorT$inboundSchema2), fail("4XX"), fail("5XX"), json("default",
|
|
62199
|
-
key: "Result"
|
|
62200
|
-
}))(response, req, { extraFields: responseFields });
|
|
61981
|
+
}), jsonErr(400, ErrorT$inboundSchema2), fail("4XX"), fail("5XX"), json("default", CreateKnowledgeArticlesResponse$inboundSchema, { key: "Result" }))(response, req, { extraFields: responseFields });
|
|
62201
61982
|
if (!result2.ok) {
|
|
62202
61983
|
return [result2, { status: "complete", request: req, response }];
|
|
62203
61984
|
}
|
|
62204
61985
|
return [result2, { status: "complete", request: req, response }];
|
|
62205
61986
|
}
|
|
62206
|
-
var
|
|
61987
|
+
var init_knowledgeArticlesCreateKnowledgeArticles = __esm(() => {
|
|
62207
61988
|
init_encodings();
|
|
62208
61989
|
init_matchers();
|
|
62209
61990
|
init_primitives();
|
|
@@ -62216,23 +61997,23 @@ var init_jobTemplatesCreateJobTemplates = __esm(() => {
|
|
|
62216
61997
|
init_async();
|
|
62217
61998
|
});
|
|
62218
61999
|
|
|
62219
|
-
// src/mcp-server/tools/
|
|
62220
|
-
var args105, tool$
|
|
62221
|
-
var
|
|
62222
|
-
|
|
62000
|
+
// src/mcp-server/tools/knowledgeArticlesCreateKnowledgeArticles.ts
|
|
62001
|
+
var args105, tool$knowledgeArticlesCreateKnowledgeArticles;
|
|
62002
|
+
var init_knowledgeArticlesCreateKnowledgeArticles2 = __esm(() => {
|
|
62003
|
+
init_knowledgeArticlesCreateKnowledgeArticles();
|
|
62223
62004
|
init_components();
|
|
62224
62005
|
init_tools();
|
|
62225
62006
|
args105 = {
|
|
62226
|
-
request:
|
|
62007
|
+
request: KnowledgeArticleInput$inboundSchema
|
|
62227
62008
|
};
|
|
62228
|
-
tool$
|
|
62229
|
-
name: "
|
|
62230
|
-
description: `Create a new
|
|
62009
|
+
tool$knowledgeArticlesCreateKnowledgeArticles = {
|
|
62010
|
+
name: "knowledge-articles-create-knowledge-articles",
|
|
62011
|
+
description: `Create a new Knowledge Article
|
|
62231
62012
|
|
|
62232
62013
|
|
|
62233
62014
|
|
|
62234
62015
|
#### OAuth Scope
|
|
62235
|
-
This endpoint requires the following OAuth scope **
|
|
62016
|
+
This endpoint requires the following OAuth scope **manage_knowledge**.
|
|
62236
62017
|
|
|
62237
62018
|
|
|
62238
62019
|
|
|
@@ -62242,7 +62023,7 @@ UUID is optional for record creation. If no UUID is supplied, a UUID will be aut
|
|
|
62242
62023
|
`,
|
|
62243
62024
|
args: args105,
|
|
62244
62025
|
tool: async (client, args106, ctx) => {
|
|
62245
|
-
const [result2, apiCall] = await
|
|
62026
|
+
const [result2, apiCall] = await knowledgeArticlesCreateKnowledgeArticles(client, args106.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
62246
62027
|
if (!result2.ok) {
|
|
62247
62028
|
return {
|
|
62248
62029
|
content: [{ type: "text", text: result2.error.message }],
|
|
@@ -62255,12 +62036,12 @@ UUID is optional for record creation. If no UUID is supplied, a UUID will be aut
|
|
|
62255
62036
|
};
|
|
62256
62037
|
});
|
|
62257
62038
|
|
|
62258
|
-
// src/funcs/
|
|
62259
|
-
function
|
|
62039
|
+
// src/funcs/knowledgeArticlesDeleteKnowledgeArticles.ts
|
|
62040
|
+
function knowledgeArticlesDeleteKnowledgeArticles(client, request, options) {
|
|
62260
62041
|
return new APIPromise($do130(client, request, options));
|
|
62261
62042
|
}
|
|
62262
62043
|
async function $do130(client, request, options) {
|
|
62263
|
-
const parsed = safeParse(request, (value) =>
|
|
62044
|
+
const parsed = safeParse(request, (value) => DeleteKnowledgeArticlesRequest$outboundSchema.parse(value), "Input validation failed");
|
|
62264
62045
|
if (!parsed.ok) {
|
|
62265
62046
|
return [parsed, { status: "invalid" }];
|
|
62266
62047
|
}
|
|
@@ -62272,7 +62053,7 @@ async function $do130(client, request, options) {
|
|
|
62272
62053
|
charEncoding: "percent"
|
|
62273
62054
|
})
|
|
62274
62055
|
};
|
|
62275
|
-
const path = pathToFunc("/
|
|
62056
|
+
const path = pathToFunc("/knowledgearticle/{uuid}.json")(pathParams);
|
|
62276
62057
|
const headers = new Headers(compactMap({
|
|
62277
62058
|
Accept: "application/json"
|
|
62278
62059
|
}));
|
|
@@ -62281,7 +62062,7 @@ async function $do130(client, request, options) {
|
|
|
62281
62062
|
const context = {
|
|
62282
62063
|
options: client._options,
|
|
62283
62064
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
62284
|
-
operationID: "
|
|
62065
|
+
operationID: "deleteKnowledgeArticles",
|
|
62285
62066
|
oAuth2Scopes: [],
|
|
62286
62067
|
resolvedSecurity: requestSecurity,
|
|
62287
62068
|
securitySource: client._options.security,
|
|
@@ -62324,13 +62105,13 @@ async function $do130(client, request, options) {
|
|
|
62324
62105
|
const responseFields = {
|
|
62325
62106
|
HttpMeta: { Response: response, Request: req }
|
|
62326
62107
|
};
|
|
62327
|
-
const [result2] = await match(json(200,
|
|
62108
|
+
const [result2] = await match(json(200, DeleteKnowledgeArticlesResponse$inboundSchema), jsonErr(400, ErrorT$inboundSchema2), fail("4XX"), fail("5XX"), json("default", DeleteKnowledgeArticlesResponse$inboundSchema))(response, req, { extraFields: responseFields });
|
|
62328
62109
|
if (!result2.ok) {
|
|
62329
62110
|
return [result2, { status: "complete", request: req, response }];
|
|
62330
62111
|
}
|
|
62331
62112
|
return [result2, { status: "complete", request: req, response }];
|
|
62332
62113
|
}
|
|
62333
|
-
var
|
|
62114
|
+
var init_knowledgeArticlesDeleteKnowledgeArticles = __esm(() => {
|
|
62334
62115
|
init_encodings();
|
|
62335
62116
|
init_matchers();
|
|
62336
62117
|
init_primitives();
|
|
@@ -62342,18 +62123,18 @@ var init_jobTemplatesDeleteJobTemplates = __esm(() => {
|
|
|
62342
62123
|
init_async();
|
|
62343
62124
|
});
|
|
62344
62125
|
|
|
62345
|
-
// src/mcp-server/tools/
|
|
62346
|
-
var args106, tool$
|
|
62347
|
-
var
|
|
62348
|
-
|
|
62126
|
+
// src/mcp-server/tools/knowledgeArticlesDeleteKnowledgeArticles.ts
|
|
62127
|
+
var args106, tool$knowledgeArticlesDeleteKnowledgeArticles;
|
|
62128
|
+
var init_knowledgeArticlesDeleteKnowledgeArticles2 = __esm(() => {
|
|
62129
|
+
init_knowledgeArticlesDeleteKnowledgeArticles();
|
|
62349
62130
|
init_operations();
|
|
62350
62131
|
init_tools();
|
|
62351
62132
|
args106 = {
|
|
62352
|
-
request:
|
|
62133
|
+
request: DeleteKnowledgeArticlesRequest$inboundSchema
|
|
62353
62134
|
};
|
|
62354
|
-
tool$
|
|
62355
|
-
name: "
|
|
62356
|
-
description: `Delete a
|
|
62135
|
+
tool$knowledgeArticlesDeleteKnowledgeArticles = {
|
|
62136
|
+
name: "knowledge-articles-delete-knowledge-articles",
|
|
62137
|
+
description: `Delete a Knowledge Article
|
|
62357
62138
|
|
|
62358
62139
|
|
|
62359
62140
|
|
|
@@ -62362,12 +62143,12 @@ In ServiceM8, deleting a record sets its \`active\` field to \`0\`. Inactive rec
|
|
|
62362
62143
|
|
|
62363
62144
|
|
|
62364
62145
|
#### OAuth Scope
|
|
62365
|
-
This endpoint requires the following OAuth scope **
|
|
62146
|
+
This endpoint requires the following OAuth scope **manage_knowledge**.
|
|
62366
62147
|
|
|
62367
62148
|
`,
|
|
62368
62149
|
args: args106,
|
|
62369
62150
|
tool: async (client, args107, ctx) => {
|
|
62370
|
-
const [result2, apiCall] = await
|
|
62151
|
+
const [result2, apiCall] = await knowledgeArticlesDeleteKnowledgeArticles(client, args107.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
62371
62152
|
if (!result2.ok) {
|
|
62372
62153
|
return {
|
|
62373
62154
|
content: [{ type: "text", text: result2.error.message }],
|
|
@@ -62380,12 +62161,12 @@ This endpoint requires the following OAuth scope **manage_jobs**.
|
|
|
62380
62161
|
};
|
|
62381
62162
|
});
|
|
62382
62163
|
|
|
62383
|
-
// src/funcs/
|
|
62384
|
-
function
|
|
62164
|
+
// src/funcs/knowledgeArticlesGetKnowledgeArticles.ts
|
|
62165
|
+
function knowledgeArticlesGetKnowledgeArticles(client, request, options) {
|
|
62385
62166
|
return new APIPromise($do131(client, request, options));
|
|
62386
62167
|
}
|
|
62387
62168
|
async function $do131(client, request, options) {
|
|
62388
|
-
const parsed = safeParse(request, (value) =>
|
|
62169
|
+
const parsed = safeParse(request, (value) => GetKnowledgeArticlesRequest$outboundSchema.parse(value), "Input validation failed");
|
|
62389
62170
|
if (!parsed.ok) {
|
|
62390
62171
|
return [parsed, { status: "invalid" }];
|
|
62391
62172
|
}
|
|
@@ -62397,7 +62178,7 @@ async function $do131(client, request, options) {
|
|
|
62397
62178
|
charEncoding: "percent"
|
|
62398
62179
|
})
|
|
62399
62180
|
};
|
|
62400
|
-
const path = pathToFunc("/
|
|
62181
|
+
const path = pathToFunc("/knowledgearticle/{uuid}.json")(pathParams);
|
|
62401
62182
|
const headers = new Headers(compactMap({
|
|
62402
62183
|
Accept: "application/json"
|
|
62403
62184
|
}));
|
|
@@ -62406,7 +62187,7 @@ async function $do131(client, request, options) {
|
|
|
62406
62187
|
const context = {
|
|
62407
62188
|
options: client._options,
|
|
62408
62189
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
62409
|
-
operationID: "
|
|
62190
|
+
operationID: "getKnowledgeArticles",
|
|
62410
62191
|
oAuth2Scopes: [],
|
|
62411
62192
|
resolvedSecurity: requestSecurity,
|
|
62412
62193
|
securitySource: client._options.security,
|
|
@@ -62449,13 +62230,13 @@ async function $do131(client, request, options) {
|
|
|
62449
62230
|
const responseFields = {
|
|
62450
62231
|
HttpMeta: { Response: response, Request: req }
|
|
62451
62232
|
};
|
|
62452
|
-
const [result2] = await match(json(200,
|
|
62233
|
+
const [result2] = await match(json(200, GetKnowledgeArticlesResponse$inboundSchema), jsonErr(400, ErrorT$inboundSchema2), fail("4XX"), fail("5XX"), json("default", GetKnowledgeArticlesResponse$inboundSchema))(response, req, { extraFields: responseFields });
|
|
62453
62234
|
if (!result2.ok) {
|
|
62454
62235
|
return [result2, { status: "complete", request: req, response }];
|
|
62455
62236
|
}
|
|
62456
62237
|
return [result2, { status: "complete", request: req, response }];
|
|
62457
62238
|
}
|
|
62458
|
-
var
|
|
62239
|
+
var init_knowledgeArticlesGetKnowledgeArticles = __esm(() => {
|
|
62459
62240
|
init_encodings();
|
|
62460
62241
|
init_matchers();
|
|
62461
62242
|
init_primitives();
|
|
@@ -62467,28 +62248,28 @@ var init_jobTemplatesGetJobTemplates = __esm(() => {
|
|
|
62467
62248
|
init_async();
|
|
62468
62249
|
});
|
|
62469
62250
|
|
|
62470
|
-
// src/mcp-server/tools/
|
|
62471
|
-
var args107, tool$
|
|
62472
|
-
var
|
|
62473
|
-
|
|
62251
|
+
// src/mcp-server/tools/knowledgeArticlesGetKnowledgeArticles.ts
|
|
62252
|
+
var args107, tool$knowledgeArticlesGetKnowledgeArticles;
|
|
62253
|
+
var init_knowledgeArticlesGetKnowledgeArticles2 = __esm(() => {
|
|
62254
|
+
init_knowledgeArticlesGetKnowledgeArticles();
|
|
62474
62255
|
init_operations();
|
|
62475
62256
|
init_tools();
|
|
62476
62257
|
args107 = {
|
|
62477
|
-
request:
|
|
62258
|
+
request: GetKnowledgeArticlesRequest$inboundSchema
|
|
62478
62259
|
};
|
|
62479
|
-
tool$
|
|
62480
|
-
name: "
|
|
62481
|
-
description: `Retrieve a
|
|
62260
|
+
tool$knowledgeArticlesGetKnowledgeArticles = {
|
|
62261
|
+
name: "knowledge-articles-get-knowledge-articles",
|
|
62262
|
+
description: `Retrieve a Knowledge Article
|
|
62482
62263
|
|
|
62483
62264
|
|
|
62484
62265
|
|
|
62485
62266
|
#### OAuth Scope
|
|
62486
|
-
This endpoint requires the following OAuth scope **
|
|
62267
|
+
This endpoint requires the following OAuth scope **read_knowledge**.
|
|
62487
62268
|
|
|
62488
62269
|
`,
|
|
62489
62270
|
args: args107,
|
|
62490
62271
|
tool: async (client, args108, ctx) => {
|
|
62491
|
-
const [result2, apiCall] = await
|
|
62272
|
+
const [result2, apiCall] = await knowledgeArticlesGetKnowledgeArticles(client, args108.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
62492
62273
|
if (!result2.ok) {
|
|
62493
62274
|
return {
|
|
62494
62275
|
content: [{ type: "text", text: result2.error.message }],
|
|
@@ -62501,12 +62282,12 @@ This endpoint requires the following OAuth scope **read_jobs**.
|
|
|
62501
62282
|
};
|
|
62502
62283
|
});
|
|
62503
62284
|
|
|
62504
|
-
// src/funcs/
|
|
62505
|
-
function
|
|
62285
|
+
// src/funcs/knowledgeArticlesListKnowledgeArticles.ts
|
|
62286
|
+
function knowledgeArticlesListKnowledgeArticles(client, options) {
|
|
62506
62287
|
return new APIPromise($do132(client, options));
|
|
62507
62288
|
}
|
|
62508
62289
|
async function $do132(client, options) {
|
|
62509
|
-
const path = pathToFunc("/
|
|
62290
|
+
const path = pathToFunc("/knowledgearticle.json")();
|
|
62510
62291
|
const headers = new Headers(compactMap({
|
|
62511
62292
|
Accept: "application/json"
|
|
62512
62293
|
}));
|
|
@@ -62515,7 +62296,7 @@ async function $do132(client, options) {
|
|
|
62515
62296
|
const context = {
|
|
62516
62297
|
options: client._options,
|
|
62517
62298
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
62518
|
-
operationID: "
|
|
62299
|
+
operationID: "listKnowledgeArticles",
|
|
62519
62300
|
oAuth2Scopes: [],
|
|
62520
62301
|
resolvedSecurity: requestSecurity,
|
|
62521
62302
|
securitySource: client._options.security,
|
|
@@ -62557,13 +62338,13 @@ async function $do132(client, options) {
|
|
|
62557
62338
|
const responseFields = {
|
|
62558
62339
|
HttpMeta: { Response: response, Request: req }
|
|
62559
62340
|
};
|
|
62560
|
-
const [result2] = await match(json(200,
|
|
62341
|
+
const [result2] = await match(json(200, ListKnowledgeArticlesResponse$inboundSchema), jsonErr(400, ErrorT$inboundSchema2), fail("4XX"), fail("5XX"), json("default", ListKnowledgeArticlesResponse$inboundSchema))(response, req, { extraFields: responseFields });
|
|
62561
62342
|
if (!result2.ok) {
|
|
62562
62343
|
return [result2, { status: "complete", request: req, response }];
|
|
62563
62344
|
}
|
|
62564
62345
|
return [result2, { status: "complete", request: req, response }];
|
|
62565
62346
|
}
|
|
62566
|
-
var
|
|
62347
|
+
var init_knowledgeArticlesListKnowledgeArticles = __esm(() => {
|
|
62567
62348
|
init_matchers();
|
|
62568
62349
|
init_primitives();
|
|
62569
62350
|
init_security();
|
|
@@ -62573,14 +62354,14 @@ var init_jobTemplatesListJobTemplates = __esm(() => {
|
|
|
62573
62354
|
init_async();
|
|
62574
62355
|
});
|
|
62575
62356
|
|
|
62576
|
-
// src/mcp-server/tools/
|
|
62577
|
-
var tool$
|
|
62578
|
-
var
|
|
62579
|
-
|
|
62357
|
+
// src/mcp-server/tools/knowledgeArticlesListKnowledgeArticles.ts
|
|
62358
|
+
var tool$knowledgeArticlesListKnowledgeArticles;
|
|
62359
|
+
var init_knowledgeArticlesListKnowledgeArticles2 = __esm(() => {
|
|
62360
|
+
init_knowledgeArticlesListKnowledgeArticles();
|
|
62580
62361
|
init_tools();
|
|
62581
|
-
tool$
|
|
62582
|
-
name: "
|
|
62583
|
-
description: `List all
|
|
62362
|
+
tool$knowledgeArticlesListKnowledgeArticles = {
|
|
62363
|
+
name: "knowledge-articles-list-knowledge-articles",
|
|
62364
|
+
description: `List all Knowledge Articles
|
|
62584
62365
|
|
|
62585
62366
|
|
|
62586
62367
|
|
|
@@ -62589,11 +62370,11 @@ This endpoint supports result filtering. For more information on how to filter t
|
|
|
62589
62370
|
|
|
62590
62371
|
|
|
62591
62372
|
#### OAuth Scope
|
|
62592
|
-
This endpoint requires the following OAuth scope **
|
|
62373
|
+
This endpoint requires the following OAuth scope **read_knowledge**.
|
|
62593
62374
|
|
|
62594
62375
|
`,
|
|
62595
62376
|
tool: async (client, ctx) => {
|
|
62596
|
-
const [result2, apiCall] = await
|
|
62377
|
+
const [result2, apiCall] = await knowledgeArticlesListKnowledgeArticles(client, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
62597
62378
|
if (!result2.ok) {
|
|
62598
62379
|
return {
|
|
62599
62380
|
content: [{ type: "text", text: result2.error.message }],
|
|
@@ -62606,24 +62387,24 @@ This endpoint requires the following OAuth scope **read_jobs**.
|
|
|
62606
62387
|
};
|
|
62607
62388
|
});
|
|
62608
62389
|
|
|
62609
|
-
// src/funcs/
|
|
62610
|
-
function
|
|
62390
|
+
// src/funcs/knowledgeArticlesUpdateKnowledgeArticles.ts
|
|
62391
|
+
function knowledgeArticlesUpdateKnowledgeArticles(client, request, options) {
|
|
62611
62392
|
return new APIPromise($do133(client, request, options));
|
|
62612
62393
|
}
|
|
62613
62394
|
async function $do133(client, request, options) {
|
|
62614
|
-
const parsed = safeParse(request, (value) =>
|
|
62395
|
+
const parsed = safeParse(request, (value) => UpdateKnowledgeArticlesRequest$outboundSchema.parse(value), "Input validation failed");
|
|
62615
62396
|
if (!parsed.ok) {
|
|
62616
62397
|
return [parsed, { status: "invalid" }];
|
|
62617
62398
|
}
|
|
62618
62399
|
const payload = parsed.value;
|
|
62619
|
-
const body = encodeJSON("body", payload.
|
|
62400
|
+
const body = encodeJSON("body", payload.KnowledgeArticle, { explode: true });
|
|
62620
62401
|
const pathParams = {
|
|
62621
62402
|
uuid: encodeSimple("uuid", payload.uuid, {
|
|
62622
62403
|
explode: false,
|
|
62623
62404
|
charEncoding: "percent"
|
|
62624
62405
|
})
|
|
62625
62406
|
};
|
|
62626
|
-
const path = pathToFunc("/
|
|
62407
|
+
const path = pathToFunc("/knowledgearticle/{uuid}.json")(pathParams);
|
|
62627
62408
|
const headers = new Headers(compactMap({
|
|
62628
62409
|
"Content-Type": "application/json",
|
|
62629
62410
|
Accept: "application/json"
|
|
@@ -62633,7 +62414,7 @@ async function $do133(client, request, options) {
|
|
|
62633
62414
|
const context = {
|
|
62634
62415
|
options: client._options,
|
|
62635
62416
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
62636
|
-
operationID: "
|
|
62417
|
+
operationID: "updateKnowledgeArticles",
|
|
62637
62418
|
oAuth2Scopes: [],
|
|
62638
62419
|
resolvedSecurity: requestSecurity,
|
|
62639
62420
|
securitySource: client._options.security,
|
|
@@ -62676,13 +62457,13 @@ async function $do133(client, request, options) {
|
|
|
62676
62457
|
const responseFields = {
|
|
62677
62458
|
HttpMeta: { Response: response, Request: req }
|
|
62678
62459
|
};
|
|
62679
|
-
const [result2] = await match(json(200,
|
|
62460
|
+
const [result2] = await match(json(200, UpdateKnowledgeArticlesResponse$inboundSchema), jsonErr(400, ErrorT$inboundSchema2), fail("4XX"), fail("5XX"), json("default", UpdateKnowledgeArticlesResponse$inboundSchema))(response, req, { extraFields: responseFields });
|
|
62680
62461
|
if (!result2.ok) {
|
|
62681
62462
|
return [result2, { status: "complete", request: req, response }];
|
|
62682
62463
|
}
|
|
62683
62464
|
return [result2, { status: "complete", request: req, response }];
|
|
62684
62465
|
}
|
|
62685
|
-
var
|
|
62466
|
+
var init_knowledgeArticlesUpdateKnowledgeArticles = __esm(() => {
|
|
62686
62467
|
init_encodings();
|
|
62687
62468
|
init_matchers();
|
|
62688
62469
|
init_primitives();
|
|
@@ -62694,28 +62475,28 @@ var init_jobTemplatesUpdateJobTemplates = __esm(() => {
|
|
|
62694
62475
|
init_async();
|
|
62695
62476
|
});
|
|
62696
62477
|
|
|
62697
|
-
// src/mcp-server/tools/
|
|
62698
|
-
var args108, tool$
|
|
62699
|
-
var
|
|
62700
|
-
|
|
62478
|
+
// src/mcp-server/tools/knowledgeArticlesUpdateKnowledgeArticles.ts
|
|
62479
|
+
var args108, tool$knowledgeArticlesUpdateKnowledgeArticles;
|
|
62480
|
+
var init_knowledgeArticlesUpdateKnowledgeArticles2 = __esm(() => {
|
|
62481
|
+
init_knowledgeArticlesUpdateKnowledgeArticles();
|
|
62701
62482
|
init_operations();
|
|
62702
62483
|
init_tools();
|
|
62703
62484
|
args108 = {
|
|
62704
|
-
request:
|
|
62485
|
+
request: UpdateKnowledgeArticlesRequest$inboundSchema
|
|
62705
62486
|
};
|
|
62706
|
-
tool$
|
|
62707
|
-
name: "
|
|
62708
|
-
description: `Update a
|
|
62487
|
+
tool$knowledgeArticlesUpdateKnowledgeArticles = {
|
|
62488
|
+
name: "knowledge-articles-update-knowledge-articles",
|
|
62489
|
+
description: `Update a Knowledge Article
|
|
62709
62490
|
|
|
62710
62491
|
|
|
62711
62492
|
|
|
62712
62493
|
#### OAuth Scope
|
|
62713
|
-
This endpoint requires the following OAuth scope **
|
|
62494
|
+
This endpoint requires the following OAuth scope **manage_knowledge**.
|
|
62714
62495
|
|
|
62715
62496
|
`,
|
|
62716
62497
|
args: args108,
|
|
62717
62498
|
tool: async (client, args109, ctx) => {
|
|
62718
|
-
const [result2, apiCall] = await
|
|
62499
|
+
const [result2, apiCall] = await knowledgeArticlesUpdateKnowledgeArticles(client, args109.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
62719
62500
|
if (!result2.ok) {
|
|
62720
62501
|
return {
|
|
62721
62502
|
content: [{ type: "text", text: result2.error.message }],
|
|
@@ -62728,18 +62509,18 @@ This endpoint requires the following OAuth scope **manage_jobs**.
|
|
|
62728
62509
|
};
|
|
62729
62510
|
});
|
|
62730
62511
|
|
|
62731
|
-
// src/funcs/
|
|
62732
|
-
function
|
|
62512
|
+
// src/funcs/locationsCreateLocations.ts
|
|
62513
|
+
function locationsCreateLocations(client, request, options) {
|
|
62733
62514
|
return new APIPromise($do134(client, request, options));
|
|
62734
62515
|
}
|
|
62735
62516
|
async function $do134(client, request, options) {
|
|
62736
|
-
const parsed = safeParse(request, (value) =>
|
|
62517
|
+
const parsed = safeParse(request, (value) => LocationInput$outboundSchema.parse(value), "Input validation failed");
|
|
62737
62518
|
if (!parsed.ok) {
|
|
62738
62519
|
return [parsed, { status: "invalid" }];
|
|
62739
62520
|
}
|
|
62740
62521
|
const payload = parsed.value;
|
|
62741
62522
|
const body = encodeJSON("body", payload, { explode: true });
|
|
62742
|
-
const path = pathToFunc("/
|
|
62523
|
+
const path = pathToFunc("/location.json")();
|
|
62743
62524
|
const headers = new Headers(compactMap({
|
|
62744
62525
|
"Content-Type": "application/json",
|
|
62745
62526
|
Accept: "application/json"
|
|
@@ -62749,7 +62530,7 @@ async function $do134(client, request, options) {
|
|
|
62749
62530
|
const context = {
|
|
62750
62531
|
options: client._options,
|
|
62751
62532
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
62752
|
-
operationID: "
|
|
62533
|
+
operationID: "createLocations",
|
|
62753
62534
|
oAuth2Scopes: [],
|
|
62754
62535
|
resolvedSecurity: requestSecurity,
|
|
62755
62536
|
securitySource: client._options.security,
|
|
@@ -62792,16 +62573,18 @@ async function $do134(client, request, options) {
|
|
|
62792
62573
|
const responseFields = {
|
|
62793
62574
|
HttpMeta: { Response: response, Request: req }
|
|
62794
62575
|
};
|
|
62795
|
-
const [result2] = await match(json(200,
|
|
62576
|
+
const [result2] = await match(json(200, CreateLocationsResponse$inboundSchema, {
|
|
62796
62577
|
hdrs: true,
|
|
62797
62578
|
key: "Result"
|
|
62798
|
-
}), jsonErr(400, ErrorT$inboundSchema2), fail("4XX"), fail("5XX"), json("default",
|
|
62579
|
+
}), jsonErr(400, ErrorT$inboundSchema2), fail("4XX"), fail("5XX"), json("default", CreateLocationsResponse$inboundSchema, {
|
|
62580
|
+
key: "Result"
|
|
62581
|
+
}))(response, req, { extraFields: responseFields });
|
|
62799
62582
|
if (!result2.ok) {
|
|
62800
62583
|
return [result2, { status: "complete", request: req, response }];
|
|
62801
62584
|
}
|
|
62802
62585
|
return [result2, { status: "complete", request: req, response }];
|
|
62803
62586
|
}
|
|
62804
|
-
var
|
|
62587
|
+
var init_locationsCreateLocations = __esm(() => {
|
|
62805
62588
|
init_encodings();
|
|
62806
62589
|
init_matchers();
|
|
62807
62590
|
init_primitives();
|
|
@@ -62814,23 +62597,23 @@ var init_knowledgeArticlesCreateKnowledgeArticles = __esm(() => {
|
|
|
62814
62597
|
init_async();
|
|
62815
62598
|
});
|
|
62816
62599
|
|
|
62817
|
-
// src/mcp-server/tools/
|
|
62818
|
-
var args109, tool$
|
|
62819
|
-
var
|
|
62820
|
-
|
|
62600
|
+
// src/mcp-server/tools/locationsCreateLocations.ts
|
|
62601
|
+
var args109, tool$locationsCreateLocations;
|
|
62602
|
+
var init_locationsCreateLocations2 = __esm(() => {
|
|
62603
|
+
init_locationsCreateLocations();
|
|
62821
62604
|
init_components();
|
|
62822
62605
|
init_tools();
|
|
62823
62606
|
args109 = {
|
|
62824
|
-
request:
|
|
62607
|
+
request: LocationInput$inboundSchema
|
|
62825
62608
|
};
|
|
62826
|
-
tool$
|
|
62827
|
-
name: "
|
|
62828
|
-
description: `Create a new
|
|
62609
|
+
tool$locationsCreateLocations = {
|
|
62610
|
+
name: "locations-create-locations",
|
|
62611
|
+
description: `Create a new Location
|
|
62829
62612
|
|
|
62830
62613
|
|
|
62831
62614
|
|
|
62832
62615
|
#### OAuth Scope
|
|
62833
|
-
This endpoint requires the following OAuth scope **
|
|
62616
|
+
This endpoint requires the following OAuth scope **manage_locations**.
|
|
62834
62617
|
|
|
62835
62618
|
|
|
62836
62619
|
|
|
@@ -62840,7 +62623,7 @@ UUID is optional for record creation. If no UUID is supplied, a UUID will be aut
|
|
|
62840
62623
|
`,
|
|
62841
62624
|
args: args109,
|
|
62842
62625
|
tool: async (client, args110, ctx) => {
|
|
62843
|
-
const [result2, apiCall] = await
|
|
62626
|
+
const [result2, apiCall] = await locationsCreateLocations(client, args110.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
62844
62627
|
if (!result2.ok) {
|
|
62845
62628
|
return {
|
|
62846
62629
|
content: [{ type: "text", text: result2.error.message }],
|
|
@@ -62853,12 +62636,12 @@ UUID is optional for record creation. If no UUID is supplied, a UUID will be aut
|
|
|
62853
62636
|
};
|
|
62854
62637
|
});
|
|
62855
62638
|
|
|
62856
|
-
// src/funcs/
|
|
62857
|
-
function
|
|
62639
|
+
// src/funcs/locationsDeleteLocations.ts
|
|
62640
|
+
function locationsDeleteLocations(client, request, options) {
|
|
62858
62641
|
return new APIPromise($do135(client, request, options));
|
|
62859
62642
|
}
|
|
62860
62643
|
async function $do135(client, request, options) {
|
|
62861
|
-
const parsed = safeParse(request, (value) =>
|
|
62644
|
+
const parsed = safeParse(request, (value) => DeleteLocationsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
62862
62645
|
if (!parsed.ok) {
|
|
62863
62646
|
return [parsed, { status: "invalid" }];
|
|
62864
62647
|
}
|
|
@@ -62870,7 +62653,7 @@ async function $do135(client, request, options) {
|
|
|
62870
62653
|
charEncoding: "percent"
|
|
62871
62654
|
})
|
|
62872
62655
|
};
|
|
62873
|
-
const path = pathToFunc("/
|
|
62656
|
+
const path = pathToFunc("/location/{uuid}.json")(pathParams);
|
|
62874
62657
|
const headers = new Headers(compactMap({
|
|
62875
62658
|
Accept: "application/json"
|
|
62876
62659
|
}));
|
|
@@ -62879,7 +62662,7 @@ async function $do135(client, request, options) {
|
|
|
62879
62662
|
const context = {
|
|
62880
62663
|
options: client._options,
|
|
62881
62664
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
62882
|
-
operationID: "
|
|
62665
|
+
operationID: "deleteLocations",
|
|
62883
62666
|
oAuth2Scopes: [],
|
|
62884
62667
|
resolvedSecurity: requestSecurity,
|
|
62885
62668
|
securitySource: client._options.security,
|
|
@@ -62922,13 +62705,13 @@ async function $do135(client, request, options) {
|
|
|
62922
62705
|
const responseFields = {
|
|
62923
62706
|
HttpMeta: { Response: response, Request: req }
|
|
62924
62707
|
};
|
|
62925
|
-
const [result2] = await match(json(200,
|
|
62708
|
+
const [result2] = await match(json(200, DeleteLocationsResponse$inboundSchema), jsonErr(400, ErrorT$inboundSchema2), fail("4XX"), fail("5XX"), json("default", DeleteLocationsResponse$inboundSchema))(response, req, { extraFields: responseFields });
|
|
62926
62709
|
if (!result2.ok) {
|
|
62927
62710
|
return [result2, { status: "complete", request: req, response }];
|
|
62928
62711
|
}
|
|
62929
62712
|
return [result2, { status: "complete", request: req, response }];
|
|
62930
62713
|
}
|
|
62931
|
-
var
|
|
62714
|
+
var init_locationsDeleteLocations = __esm(() => {
|
|
62932
62715
|
init_encodings();
|
|
62933
62716
|
init_matchers();
|
|
62934
62717
|
init_primitives();
|
|
@@ -62940,18 +62723,18 @@ var init_knowledgeArticlesDeleteKnowledgeArticles = __esm(() => {
|
|
|
62940
62723
|
init_async();
|
|
62941
62724
|
});
|
|
62942
62725
|
|
|
62943
|
-
// src/mcp-server/tools/
|
|
62944
|
-
var args110, tool$
|
|
62945
|
-
var
|
|
62946
|
-
|
|
62726
|
+
// src/mcp-server/tools/locationsDeleteLocations.ts
|
|
62727
|
+
var args110, tool$locationsDeleteLocations;
|
|
62728
|
+
var init_locationsDeleteLocations2 = __esm(() => {
|
|
62729
|
+
init_locationsDeleteLocations();
|
|
62947
62730
|
init_operations();
|
|
62948
62731
|
init_tools();
|
|
62949
62732
|
args110 = {
|
|
62950
|
-
request:
|
|
62733
|
+
request: DeleteLocationsRequest$inboundSchema
|
|
62951
62734
|
};
|
|
62952
|
-
tool$
|
|
62953
|
-
name: "
|
|
62954
|
-
description: `Delete a
|
|
62735
|
+
tool$locationsDeleteLocations = {
|
|
62736
|
+
name: "locations-delete-locations",
|
|
62737
|
+
description: `Delete a Location
|
|
62955
62738
|
|
|
62956
62739
|
|
|
62957
62740
|
|
|
@@ -62960,12 +62743,12 @@ In ServiceM8, deleting a record sets its \`active\` field to \`0\`. Inactive rec
|
|
|
62960
62743
|
|
|
62961
62744
|
|
|
62962
62745
|
#### OAuth Scope
|
|
62963
|
-
This endpoint requires the following OAuth scope **
|
|
62746
|
+
This endpoint requires the following OAuth scope **manage_locations**.
|
|
62964
62747
|
|
|
62965
62748
|
`,
|
|
62966
62749
|
args: args110,
|
|
62967
62750
|
tool: async (client, args111, ctx) => {
|
|
62968
|
-
const [result2, apiCall] = await
|
|
62751
|
+
const [result2, apiCall] = await locationsDeleteLocations(client, args111.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
62969
62752
|
if (!result2.ok) {
|
|
62970
62753
|
return {
|
|
62971
62754
|
content: [{ type: "text", text: result2.error.message }],
|
|
@@ -62978,12 +62761,12 @@ This endpoint requires the following OAuth scope **manage_knowledge**.
|
|
|
62978
62761
|
};
|
|
62979
62762
|
});
|
|
62980
62763
|
|
|
62981
|
-
// src/funcs/
|
|
62982
|
-
function
|
|
62764
|
+
// src/funcs/locationsGetLocations.ts
|
|
62765
|
+
function locationsGetLocations(client, request, options) {
|
|
62983
62766
|
return new APIPromise($do136(client, request, options));
|
|
62984
62767
|
}
|
|
62985
62768
|
async function $do136(client, request, options) {
|
|
62986
|
-
const parsed = safeParse(request, (value) =>
|
|
62769
|
+
const parsed = safeParse(request, (value) => GetLocationsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
62987
62770
|
if (!parsed.ok) {
|
|
62988
62771
|
return [parsed, { status: "invalid" }];
|
|
62989
62772
|
}
|
|
@@ -62995,7 +62778,7 @@ async function $do136(client, request, options) {
|
|
|
62995
62778
|
charEncoding: "percent"
|
|
62996
62779
|
})
|
|
62997
62780
|
};
|
|
62998
|
-
const path = pathToFunc("/
|
|
62781
|
+
const path = pathToFunc("/location/{uuid}.json")(pathParams);
|
|
62999
62782
|
const headers = new Headers(compactMap({
|
|
63000
62783
|
Accept: "application/json"
|
|
63001
62784
|
}));
|
|
@@ -63004,7 +62787,7 @@ async function $do136(client, request, options) {
|
|
|
63004
62787
|
const context = {
|
|
63005
62788
|
options: client._options,
|
|
63006
62789
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
63007
|
-
operationID: "
|
|
62790
|
+
operationID: "getLocations",
|
|
63008
62791
|
oAuth2Scopes: [],
|
|
63009
62792
|
resolvedSecurity: requestSecurity,
|
|
63010
62793
|
securitySource: client._options.security,
|
|
@@ -63047,13 +62830,13 @@ async function $do136(client, request, options) {
|
|
|
63047
62830
|
const responseFields = {
|
|
63048
62831
|
HttpMeta: { Response: response, Request: req }
|
|
63049
62832
|
};
|
|
63050
|
-
const [result2] = await match(json(200,
|
|
62833
|
+
const [result2] = await match(json(200, GetLocationsResponse$inboundSchema), jsonErr(400, ErrorT$inboundSchema2), fail("4XX"), fail("5XX"), json("default", GetLocationsResponse$inboundSchema))(response, req, { extraFields: responseFields });
|
|
63051
62834
|
if (!result2.ok) {
|
|
63052
62835
|
return [result2, { status: "complete", request: req, response }];
|
|
63053
62836
|
}
|
|
63054
62837
|
return [result2, { status: "complete", request: req, response }];
|
|
63055
62838
|
}
|
|
63056
|
-
var
|
|
62839
|
+
var init_locationsGetLocations = __esm(() => {
|
|
63057
62840
|
init_encodings();
|
|
63058
62841
|
init_matchers();
|
|
63059
62842
|
init_primitives();
|
|
@@ -63065,28 +62848,28 @@ var init_knowledgeArticlesGetKnowledgeArticles = __esm(() => {
|
|
|
63065
62848
|
init_async();
|
|
63066
62849
|
});
|
|
63067
62850
|
|
|
63068
|
-
// src/mcp-server/tools/
|
|
63069
|
-
var args111, tool$
|
|
63070
|
-
var
|
|
63071
|
-
|
|
62851
|
+
// src/mcp-server/tools/locationsGetLocations.ts
|
|
62852
|
+
var args111, tool$locationsGetLocations;
|
|
62853
|
+
var init_locationsGetLocations2 = __esm(() => {
|
|
62854
|
+
init_locationsGetLocations();
|
|
63072
62855
|
init_operations();
|
|
63073
62856
|
init_tools();
|
|
63074
62857
|
args111 = {
|
|
63075
|
-
request:
|
|
62858
|
+
request: GetLocationsRequest$inboundSchema
|
|
63076
62859
|
};
|
|
63077
|
-
tool$
|
|
63078
|
-
name: "
|
|
63079
|
-
description: `Retrieve a
|
|
62860
|
+
tool$locationsGetLocations = {
|
|
62861
|
+
name: "locations-get-locations",
|
|
62862
|
+
description: `Retrieve a Location
|
|
63080
62863
|
|
|
63081
62864
|
|
|
63082
62865
|
|
|
63083
62866
|
#### OAuth Scope
|
|
63084
|
-
This endpoint requires the following OAuth scope **
|
|
62867
|
+
This endpoint requires the following OAuth scope **read_locations**.
|
|
63085
62868
|
|
|
63086
62869
|
`,
|
|
63087
62870
|
args: args111,
|
|
63088
62871
|
tool: async (client, args112, ctx) => {
|
|
63089
|
-
const [result2, apiCall] = await
|
|
62872
|
+
const [result2, apiCall] = await locationsGetLocations(client, args112.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
63090
62873
|
if (!result2.ok) {
|
|
63091
62874
|
return {
|
|
63092
62875
|
content: [{ type: "text", text: result2.error.message }],
|
|
@@ -63099,12 +62882,12 @@ This endpoint requires the following OAuth scope **read_knowledge**.
|
|
|
63099
62882
|
};
|
|
63100
62883
|
});
|
|
63101
62884
|
|
|
63102
|
-
// src/funcs/
|
|
63103
|
-
function
|
|
62885
|
+
// src/funcs/locationsListLocations.ts
|
|
62886
|
+
function locationsListLocations(client, options) {
|
|
63104
62887
|
return new APIPromise($do137(client, options));
|
|
63105
62888
|
}
|
|
63106
62889
|
async function $do137(client, options) {
|
|
63107
|
-
const path = pathToFunc("/
|
|
62890
|
+
const path = pathToFunc("/location.json")();
|
|
63108
62891
|
const headers = new Headers(compactMap({
|
|
63109
62892
|
Accept: "application/json"
|
|
63110
62893
|
}));
|
|
@@ -63113,7 +62896,7 @@ async function $do137(client, options) {
|
|
|
63113
62896
|
const context = {
|
|
63114
62897
|
options: client._options,
|
|
63115
62898
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
63116
|
-
operationID: "
|
|
62899
|
+
operationID: "listLocations",
|
|
63117
62900
|
oAuth2Scopes: [],
|
|
63118
62901
|
resolvedSecurity: requestSecurity,
|
|
63119
62902
|
securitySource: client._options.security,
|
|
@@ -63155,13 +62938,13 @@ async function $do137(client, options) {
|
|
|
63155
62938
|
const responseFields = {
|
|
63156
62939
|
HttpMeta: { Response: response, Request: req }
|
|
63157
62940
|
};
|
|
63158
|
-
const [result2] = await match(json(200,
|
|
62941
|
+
const [result2] = await match(json(200, ListLocationsResponse$inboundSchema), jsonErr(400, ErrorT$inboundSchema2), fail("4XX"), fail("5XX"), json("default", ListLocationsResponse$inboundSchema))(response, req, { extraFields: responseFields });
|
|
63159
62942
|
if (!result2.ok) {
|
|
63160
62943
|
return [result2, { status: "complete", request: req, response }];
|
|
63161
62944
|
}
|
|
63162
62945
|
return [result2, { status: "complete", request: req, response }];
|
|
63163
62946
|
}
|
|
63164
|
-
var
|
|
62947
|
+
var init_locationsListLocations = __esm(() => {
|
|
63165
62948
|
init_matchers();
|
|
63166
62949
|
init_primitives();
|
|
63167
62950
|
init_security();
|
|
@@ -63171,14 +62954,14 @@ var init_knowledgeArticlesListKnowledgeArticles = __esm(() => {
|
|
|
63171
62954
|
init_async();
|
|
63172
62955
|
});
|
|
63173
62956
|
|
|
63174
|
-
// src/mcp-server/tools/
|
|
63175
|
-
var tool$
|
|
63176
|
-
var
|
|
63177
|
-
|
|
62957
|
+
// src/mcp-server/tools/locationsListLocations.ts
|
|
62958
|
+
var tool$locationsListLocations;
|
|
62959
|
+
var init_locationsListLocations2 = __esm(() => {
|
|
62960
|
+
init_locationsListLocations();
|
|
63178
62961
|
init_tools();
|
|
63179
|
-
tool$
|
|
63180
|
-
name: "
|
|
63181
|
-
description: `List all
|
|
62962
|
+
tool$locationsListLocations = {
|
|
62963
|
+
name: "locations-list-locations",
|
|
62964
|
+
description: `List all Locations
|
|
63182
62965
|
|
|
63183
62966
|
|
|
63184
62967
|
|
|
@@ -63187,11 +62970,11 @@ This endpoint supports result filtering. For more information on how to filter t
|
|
|
63187
62970
|
|
|
63188
62971
|
|
|
63189
62972
|
#### OAuth Scope
|
|
63190
|
-
This endpoint requires the following OAuth scope **
|
|
62973
|
+
This endpoint requires the following OAuth scope **read_locations**.
|
|
63191
62974
|
|
|
63192
62975
|
`,
|
|
63193
62976
|
tool: async (client, ctx) => {
|
|
63194
|
-
const [result2, apiCall] = await
|
|
62977
|
+
const [result2, apiCall] = await locationsListLocations(client, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
63195
62978
|
if (!result2.ok) {
|
|
63196
62979
|
return {
|
|
63197
62980
|
content: [{ type: "text", text: result2.error.message }],
|
|
@@ -63204,24 +62987,24 @@ This endpoint requires the following OAuth scope **read_knowledge**.
|
|
|
63204
62987
|
};
|
|
63205
62988
|
});
|
|
63206
62989
|
|
|
63207
|
-
// src/funcs/
|
|
63208
|
-
function
|
|
62990
|
+
// src/funcs/locationsUpdateLocations.ts
|
|
62991
|
+
function locationsUpdateLocations(client, request, options) {
|
|
63209
62992
|
return new APIPromise($do138(client, request, options));
|
|
63210
62993
|
}
|
|
63211
62994
|
async function $do138(client, request, options) {
|
|
63212
|
-
const parsed = safeParse(request, (value) =>
|
|
62995
|
+
const parsed = safeParse(request, (value) => UpdateLocationsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
63213
62996
|
if (!parsed.ok) {
|
|
63214
62997
|
return [parsed, { status: "invalid" }];
|
|
63215
62998
|
}
|
|
63216
62999
|
const payload = parsed.value;
|
|
63217
|
-
const body = encodeJSON("body", payload.
|
|
63000
|
+
const body = encodeJSON("body", payload.Location, { explode: true });
|
|
63218
63001
|
const pathParams = {
|
|
63219
63002
|
uuid: encodeSimple("uuid", payload.uuid, {
|
|
63220
63003
|
explode: false,
|
|
63221
63004
|
charEncoding: "percent"
|
|
63222
63005
|
})
|
|
63223
63006
|
};
|
|
63224
|
-
const path = pathToFunc("/
|
|
63007
|
+
const path = pathToFunc("/location/{uuid}.json")(pathParams);
|
|
63225
63008
|
const headers = new Headers(compactMap({
|
|
63226
63009
|
"Content-Type": "application/json",
|
|
63227
63010
|
Accept: "application/json"
|
|
@@ -63231,7 +63014,7 @@ async function $do138(client, request, options) {
|
|
|
63231
63014
|
const context = {
|
|
63232
63015
|
options: client._options,
|
|
63233
63016
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
63234
|
-
operationID: "
|
|
63017
|
+
operationID: "updateLocations",
|
|
63235
63018
|
oAuth2Scopes: [],
|
|
63236
63019
|
resolvedSecurity: requestSecurity,
|
|
63237
63020
|
securitySource: client._options.security,
|
|
@@ -63274,13 +63057,13 @@ async function $do138(client, request, options) {
|
|
|
63274
63057
|
const responseFields = {
|
|
63275
63058
|
HttpMeta: { Response: response, Request: req }
|
|
63276
63059
|
};
|
|
63277
|
-
const [result2] = await match(json(200,
|
|
63060
|
+
const [result2] = await match(json(200, UpdateLocationsResponse$inboundSchema), jsonErr(400, ErrorT$inboundSchema2), fail("4XX"), fail("5XX"), json("default", UpdateLocationsResponse$inboundSchema))(response, req, { extraFields: responseFields });
|
|
63278
63061
|
if (!result2.ok) {
|
|
63279
63062
|
return [result2, { status: "complete", request: req, response }];
|
|
63280
63063
|
}
|
|
63281
63064
|
return [result2, { status: "complete", request: req, response }];
|
|
63282
63065
|
}
|
|
63283
|
-
var
|
|
63066
|
+
var init_locationsUpdateLocations = __esm(() => {
|
|
63284
63067
|
init_encodings();
|
|
63285
63068
|
init_matchers();
|
|
63286
63069
|
init_primitives();
|
|
@@ -63292,28 +63075,28 @@ var init_knowledgeArticlesUpdateKnowledgeArticles = __esm(() => {
|
|
|
63292
63075
|
init_async();
|
|
63293
63076
|
});
|
|
63294
63077
|
|
|
63295
|
-
// src/mcp-server/tools/
|
|
63296
|
-
var args112, tool$
|
|
63297
|
-
var
|
|
63298
|
-
|
|
63078
|
+
// src/mcp-server/tools/locationsUpdateLocations.ts
|
|
63079
|
+
var args112, tool$locationsUpdateLocations;
|
|
63080
|
+
var init_locationsUpdateLocations2 = __esm(() => {
|
|
63081
|
+
init_locationsUpdateLocations();
|
|
63299
63082
|
init_operations();
|
|
63300
63083
|
init_tools();
|
|
63301
63084
|
args112 = {
|
|
63302
|
-
request:
|
|
63085
|
+
request: UpdateLocationsRequest$inboundSchema
|
|
63303
63086
|
};
|
|
63304
|
-
tool$
|
|
63305
|
-
name: "
|
|
63306
|
-
description: `Update a
|
|
63087
|
+
tool$locationsUpdateLocations = {
|
|
63088
|
+
name: "locations-update-locations",
|
|
63089
|
+
description: `Update a Location
|
|
63307
63090
|
|
|
63308
63091
|
|
|
63309
63092
|
|
|
63310
63093
|
#### OAuth Scope
|
|
63311
|
-
This endpoint requires the following OAuth scope **
|
|
63094
|
+
This endpoint requires the following OAuth scope **manage_locations**.
|
|
63312
63095
|
|
|
63313
63096
|
`,
|
|
63314
63097
|
args: args112,
|
|
63315
63098
|
tool: async (client, args113, ctx) => {
|
|
63316
|
-
const [result2, apiCall] = await
|
|
63099
|
+
const [result2, apiCall] = await locationsUpdateLocations(client, args113.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
63317
63100
|
if (!result2.ok) {
|
|
63318
63101
|
return {
|
|
63319
63102
|
content: [{ type: "text", text: result2.error.message }],
|
|
@@ -63326,18 +63109,18 @@ This endpoint requires the following OAuth scope **manage_knowledge**.
|
|
|
63326
63109
|
};
|
|
63327
63110
|
});
|
|
63328
63111
|
|
|
63329
|
-
// src/funcs/
|
|
63330
|
-
function
|
|
63112
|
+
// src/funcs/materialsCreateMaterials.ts
|
|
63113
|
+
function materialsCreateMaterials(client, request, options) {
|
|
63331
63114
|
return new APIPromise($do139(client, request, options));
|
|
63332
63115
|
}
|
|
63333
63116
|
async function $do139(client, request, options) {
|
|
63334
|
-
const parsed = safeParse(request, (value) =>
|
|
63117
|
+
const parsed = safeParse(request, (value) => MaterialInput$outboundSchema.parse(value), "Input validation failed");
|
|
63335
63118
|
if (!parsed.ok) {
|
|
63336
63119
|
return [parsed, { status: "invalid" }];
|
|
63337
63120
|
}
|
|
63338
63121
|
const payload = parsed.value;
|
|
63339
63122
|
const body = encodeJSON("body", payload, { explode: true });
|
|
63340
|
-
const path = pathToFunc("/
|
|
63123
|
+
const path = pathToFunc("/material.json")();
|
|
63341
63124
|
const headers = new Headers(compactMap({
|
|
63342
63125
|
"Content-Type": "application/json",
|
|
63343
63126
|
Accept: "application/json"
|
|
@@ -63347,7 +63130,7 @@ async function $do139(client, request, options) {
|
|
|
63347
63130
|
const context = {
|
|
63348
63131
|
options: client._options,
|
|
63349
63132
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
63350
|
-
operationID: "
|
|
63133
|
+
operationID: "createMaterials",
|
|
63351
63134
|
oAuth2Scopes: [],
|
|
63352
63135
|
resolvedSecurity: requestSecurity,
|
|
63353
63136
|
securitySource: client._options.security,
|
|
@@ -63390,10 +63173,10 @@ async function $do139(client, request, options) {
|
|
|
63390
63173
|
const responseFields = {
|
|
63391
63174
|
HttpMeta: { Response: response, Request: req }
|
|
63392
63175
|
};
|
|
63393
|
-
const [result2] = await match(json(200,
|
|
63176
|
+
const [result2] = await match(json(200, CreateMaterialsResponse$inboundSchema, {
|
|
63394
63177
|
hdrs: true,
|
|
63395
63178
|
key: "Result"
|
|
63396
|
-
}), jsonErr(400, ErrorT$inboundSchema2), fail("4XX"), fail("5XX"), json("default",
|
|
63179
|
+
}), jsonErr(400, ErrorT$inboundSchema2), fail("4XX"), fail("5XX"), json("default", CreateMaterialsResponse$inboundSchema, {
|
|
63397
63180
|
key: "Result"
|
|
63398
63181
|
}))(response, req, { extraFields: responseFields });
|
|
63399
63182
|
if (!result2.ok) {
|
|
@@ -63401,7 +63184,7 @@ async function $do139(client, request, options) {
|
|
|
63401
63184
|
}
|
|
63402
63185
|
return [result2, { status: "complete", request: req, response }];
|
|
63403
63186
|
}
|
|
63404
|
-
var
|
|
63187
|
+
var init_materialsCreateMaterials = __esm(() => {
|
|
63405
63188
|
init_encodings();
|
|
63406
63189
|
init_matchers();
|
|
63407
63190
|
init_primitives();
|
|
@@ -63414,23 +63197,23 @@ var init_locationsCreateLocations = __esm(() => {
|
|
|
63414
63197
|
init_async();
|
|
63415
63198
|
});
|
|
63416
63199
|
|
|
63417
|
-
// src/mcp-server/tools/
|
|
63418
|
-
var args113, tool$
|
|
63419
|
-
var
|
|
63420
|
-
|
|
63200
|
+
// src/mcp-server/tools/materialsCreateMaterials.ts
|
|
63201
|
+
var args113, tool$materialsCreateMaterials;
|
|
63202
|
+
var init_materialsCreateMaterials2 = __esm(() => {
|
|
63203
|
+
init_materialsCreateMaterials();
|
|
63421
63204
|
init_components();
|
|
63422
63205
|
init_tools();
|
|
63423
63206
|
args113 = {
|
|
63424
|
-
request:
|
|
63207
|
+
request: MaterialInput$inboundSchema
|
|
63425
63208
|
};
|
|
63426
|
-
tool$
|
|
63427
|
-
name: "
|
|
63428
|
-
description: `Create a new
|
|
63209
|
+
tool$materialsCreateMaterials = {
|
|
63210
|
+
name: "materials-create-materials",
|
|
63211
|
+
description: `Create a new Material
|
|
63429
63212
|
|
|
63430
63213
|
|
|
63431
63214
|
|
|
63432
63215
|
#### OAuth Scope
|
|
63433
|
-
This endpoint requires the following OAuth scope **
|
|
63216
|
+
This endpoint requires the following OAuth scope **manage_inventory**.
|
|
63434
63217
|
|
|
63435
63218
|
|
|
63436
63219
|
|
|
@@ -63440,7 +63223,7 @@ UUID is optional for record creation. If no UUID is supplied, a UUID will be aut
|
|
|
63440
63223
|
`,
|
|
63441
63224
|
args: args113,
|
|
63442
63225
|
tool: async (client, args114, ctx) => {
|
|
63443
|
-
const [result2, apiCall] = await
|
|
63226
|
+
const [result2, apiCall] = await materialsCreateMaterials(client, args114.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
63444
63227
|
if (!result2.ok) {
|
|
63445
63228
|
return {
|
|
63446
63229
|
content: [{ type: "text", text: result2.error.message }],
|
|
@@ -63453,12 +63236,12 @@ UUID is optional for record creation. If no UUID is supplied, a UUID will be aut
|
|
|
63453
63236
|
};
|
|
63454
63237
|
});
|
|
63455
63238
|
|
|
63456
|
-
// src/funcs/
|
|
63457
|
-
function
|
|
63239
|
+
// src/funcs/materialsDeleteMaterials.ts
|
|
63240
|
+
function materialsDeleteMaterials(client, request, options) {
|
|
63458
63241
|
return new APIPromise($do140(client, request, options));
|
|
63459
63242
|
}
|
|
63460
63243
|
async function $do140(client, request, options) {
|
|
63461
|
-
const parsed = safeParse(request, (value) =>
|
|
63244
|
+
const parsed = safeParse(request, (value) => DeleteMaterialsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
63462
63245
|
if (!parsed.ok) {
|
|
63463
63246
|
return [parsed, { status: "invalid" }];
|
|
63464
63247
|
}
|
|
@@ -63470,7 +63253,7 @@ async function $do140(client, request, options) {
|
|
|
63470
63253
|
charEncoding: "percent"
|
|
63471
63254
|
})
|
|
63472
63255
|
};
|
|
63473
|
-
const path = pathToFunc("/
|
|
63256
|
+
const path = pathToFunc("/material/{uuid}.json")(pathParams);
|
|
63474
63257
|
const headers = new Headers(compactMap({
|
|
63475
63258
|
Accept: "application/json"
|
|
63476
63259
|
}));
|
|
@@ -63479,7 +63262,7 @@ async function $do140(client, request, options) {
|
|
|
63479
63262
|
const context = {
|
|
63480
63263
|
options: client._options,
|
|
63481
63264
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
63482
|
-
operationID: "
|
|
63265
|
+
operationID: "deleteMaterials",
|
|
63483
63266
|
oAuth2Scopes: [],
|
|
63484
63267
|
resolvedSecurity: requestSecurity,
|
|
63485
63268
|
securitySource: client._options.security,
|
|
@@ -63522,13 +63305,13 @@ async function $do140(client, request, options) {
|
|
|
63522
63305
|
const responseFields = {
|
|
63523
63306
|
HttpMeta: { Response: response, Request: req }
|
|
63524
63307
|
};
|
|
63525
|
-
const [result2] = await match(json(200,
|
|
63308
|
+
const [result2] = await match(json(200, DeleteMaterialsResponse$inboundSchema), jsonErr(400, ErrorT$inboundSchema2), fail("4XX"), fail("5XX"), json("default", DeleteMaterialsResponse$inboundSchema))(response, req, { extraFields: responseFields });
|
|
63526
63309
|
if (!result2.ok) {
|
|
63527
63310
|
return [result2, { status: "complete", request: req, response }];
|
|
63528
63311
|
}
|
|
63529
63312
|
return [result2, { status: "complete", request: req, response }];
|
|
63530
63313
|
}
|
|
63531
|
-
var
|
|
63314
|
+
var init_materialsDeleteMaterials = __esm(() => {
|
|
63532
63315
|
init_encodings();
|
|
63533
63316
|
init_matchers();
|
|
63534
63317
|
init_primitives();
|
|
@@ -63540,18 +63323,18 @@ var init_locationsDeleteLocations = __esm(() => {
|
|
|
63540
63323
|
init_async();
|
|
63541
63324
|
});
|
|
63542
63325
|
|
|
63543
|
-
// src/mcp-server/tools/
|
|
63544
|
-
var args114, tool$
|
|
63545
|
-
var
|
|
63546
|
-
|
|
63326
|
+
// src/mcp-server/tools/materialsDeleteMaterials.ts
|
|
63327
|
+
var args114, tool$materialsDeleteMaterials;
|
|
63328
|
+
var init_materialsDeleteMaterials2 = __esm(() => {
|
|
63329
|
+
init_materialsDeleteMaterials();
|
|
63547
63330
|
init_operations();
|
|
63548
63331
|
init_tools();
|
|
63549
63332
|
args114 = {
|
|
63550
|
-
request:
|
|
63333
|
+
request: DeleteMaterialsRequest$inboundSchema
|
|
63551
63334
|
};
|
|
63552
|
-
tool$
|
|
63553
|
-
name: "
|
|
63554
|
-
description: `Delete a
|
|
63335
|
+
tool$materialsDeleteMaterials = {
|
|
63336
|
+
name: "materials-delete-materials",
|
|
63337
|
+
description: `Delete a Material
|
|
63555
63338
|
|
|
63556
63339
|
|
|
63557
63340
|
|
|
@@ -63560,12 +63343,12 @@ In ServiceM8, deleting a record sets its \`active\` field to \`0\`. Inactive rec
|
|
|
63560
63343
|
|
|
63561
63344
|
|
|
63562
63345
|
#### OAuth Scope
|
|
63563
|
-
This endpoint requires the following OAuth scope **
|
|
63346
|
+
This endpoint requires the following OAuth scope **manage_inventory**.
|
|
63564
63347
|
|
|
63565
63348
|
`,
|
|
63566
63349
|
args: args114,
|
|
63567
63350
|
tool: async (client, args115, ctx) => {
|
|
63568
|
-
const [result2, apiCall] = await
|
|
63351
|
+
const [result2, apiCall] = await materialsDeleteMaterials(client, args115.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
63569
63352
|
if (!result2.ok) {
|
|
63570
63353
|
return {
|
|
63571
63354
|
content: [{ type: "text", text: result2.error.message }],
|
|
@@ -63578,12 +63361,12 @@ This endpoint requires the following OAuth scope **manage_locations**.
|
|
|
63578
63361
|
};
|
|
63579
63362
|
});
|
|
63580
63363
|
|
|
63581
|
-
// src/funcs/
|
|
63582
|
-
function
|
|
63364
|
+
// src/funcs/materialsGetMaterials.ts
|
|
63365
|
+
function materialsGetMaterials(client, request, options) {
|
|
63583
63366
|
return new APIPromise($do141(client, request, options));
|
|
63584
63367
|
}
|
|
63585
63368
|
async function $do141(client, request, options) {
|
|
63586
|
-
const parsed = safeParse(request, (value) =>
|
|
63369
|
+
const parsed = safeParse(request, (value) => GetMaterialsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
63587
63370
|
if (!parsed.ok) {
|
|
63588
63371
|
return [parsed, { status: "invalid" }];
|
|
63589
63372
|
}
|
|
@@ -63595,7 +63378,7 @@ async function $do141(client, request, options) {
|
|
|
63595
63378
|
charEncoding: "percent"
|
|
63596
63379
|
})
|
|
63597
63380
|
};
|
|
63598
|
-
const path = pathToFunc("/
|
|
63381
|
+
const path = pathToFunc("/material/{uuid}.json")(pathParams);
|
|
63599
63382
|
const headers = new Headers(compactMap({
|
|
63600
63383
|
Accept: "application/json"
|
|
63601
63384
|
}));
|
|
@@ -63604,7 +63387,7 @@ async function $do141(client, request, options) {
|
|
|
63604
63387
|
const context = {
|
|
63605
63388
|
options: client._options,
|
|
63606
63389
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
63607
|
-
operationID: "
|
|
63390
|
+
operationID: "getMaterials",
|
|
63608
63391
|
oAuth2Scopes: [],
|
|
63609
63392
|
resolvedSecurity: requestSecurity,
|
|
63610
63393
|
securitySource: client._options.security,
|
|
@@ -63647,13 +63430,13 @@ async function $do141(client, request, options) {
|
|
|
63647
63430
|
const responseFields = {
|
|
63648
63431
|
HttpMeta: { Response: response, Request: req }
|
|
63649
63432
|
};
|
|
63650
|
-
const [result2] = await match(json(200,
|
|
63433
|
+
const [result2] = await match(json(200, GetMaterialsResponse$inboundSchema), jsonErr(400, ErrorT$inboundSchema2), fail("4XX"), fail("5XX"), json("default", GetMaterialsResponse$inboundSchema))(response, req, { extraFields: responseFields });
|
|
63651
63434
|
if (!result2.ok) {
|
|
63652
63435
|
return [result2, { status: "complete", request: req, response }];
|
|
63653
63436
|
}
|
|
63654
63437
|
return [result2, { status: "complete", request: req, response }];
|
|
63655
63438
|
}
|
|
63656
|
-
var
|
|
63439
|
+
var init_materialsGetMaterials = __esm(() => {
|
|
63657
63440
|
init_encodings();
|
|
63658
63441
|
init_matchers();
|
|
63659
63442
|
init_primitives();
|
|
@@ -63665,28 +63448,28 @@ var init_locationsGetLocations = __esm(() => {
|
|
|
63665
63448
|
init_async();
|
|
63666
63449
|
});
|
|
63667
63450
|
|
|
63668
|
-
// src/mcp-server/tools/
|
|
63669
|
-
var args115, tool$
|
|
63670
|
-
var
|
|
63671
|
-
|
|
63451
|
+
// src/mcp-server/tools/materialsGetMaterials.ts
|
|
63452
|
+
var args115, tool$materialsGetMaterials;
|
|
63453
|
+
var init_materialsGetMaterials2 = __esm(() => {
|
|
63454
|
+
init_materialsGetMaterials();
|
|
63672
63455
|
init_operations();
|
|
63673
63456
|
init_tools();
|
|
63674
63457
|
args115 = {
|
|
63675
|
-
request:
|
|
63458
|
+
request: GetMaterialsRequest$inboundSchema
|
|
63676
63459
|
};
|
|
63677
|
-
tool$
|
|
63678
|
-
name: "
|
|
63679
|
-
description: `Retrieve a
|
|
63460
|
+
tool$materialsGetMaterials = {
|
|
63461
|
+
name: "materials-get-materials",
|
|
63462
|
+
description: `Retrieve a Material
|
|
63680
63463
|
|
|
63681
63464
|
|
|
63682
63465
|
|
|
63683
63466
|
#### OAuth Scope
|
|
63684
|
-
This endpoint requires the following OAuth scope **
|
|
63467
|
+
This endpoint requires the following OAuth scope **read_inventory**.
|
|
63685
63468
|
|
|
63686
63469
|
`,
|
|
63687
63470
|
args: args115,
|
|
63688
63471
|
tool: async (client, args116, ctx) => {
|
|
63689
|
-
const [result2, apiCall] = await
|
|
63472
|
+
const [result2, apiCall] = await materialsGetMaterials(client, args116.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
63690
63473
|
if (!result2.ok) {
|
|
63691
63474
|
return {
|
|
63692
63475
|
content: [{ type: "text", text: result2.error.message }],
|
|
@@ -63699,12 +63482,12 @@ This endpoint requires the following OAuth scope **read_locations**.
|
|
|
63699
63482
|
};
|
|
63700
63483
|
});
|
|
63701
63484
|
|
|
63702
|
-
// src/funcs/
|
|
63703
|
-
function
|
|
63485
|
+
// src/funcs/materialsListMaterials.ts
|
|
63486
|
+
function materialsListMaterials(client, options) {
|
|
63704
63487
|
return new APIPromise($do142(client, options));
|
|
63705
63488
|
}
|
|
63706
63489
|
async function $do142(client, options) {
|
|
63707
|
-
const path = pathToFunc("/
|
|
63490
|
+
const path = pathToFunc("/material.json")();
|
|
63708
63491
|
const headers = new Headers(compactMap({
|
|
63709
63492
|
Accept: "application/json"
|
|
63710
63493
|
}));
|
|
@@ -63713,7 +63496,7 @@ async function $do142(client, options) {
|
|
|
63713
63496
|
const context = {
|
|
63714
63497
|
options: client._options,
|
|
63715
63498
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
63716
|
-
operationID: "
|
|
63499
|
+
operationID: "listMaterials",
|
|
63717
63500
|
oAuth2Scopes: [],
|
|
63718
63501
|
resolvedSecurity: requestSecurity,
|
|
63719
63502
|
securitySource: client._options.security,
|
|
@@ -63755,13 +63538,13 @@ async function $do142(client, options) {
|
|
|
63755
63538
|
const responseFields = {
|
|
63756
63539
|
HttpMeta: { Response: response, Request: req }
|
|
63757
63540
|
};
|
|
63758
|
-
const [result2] = await match(json(200,
|
|
63541
|
+
const [result2] = await match(json(200, ListMaterialsResponse$inboundSchema), jsonErr(400, ErrorT$inboundSchema2), fail("4XX"), fail("5XX"), json("default", ListMaterialsResponse$inboundSchema))(response, req, { extraFields: responseFields });
|
|
63759
63542
|
if (!result2.ok) {
|
|
63760
63543
|
return [result2, { status: "complete", request: req, response }];
|
|
63761
63544
|
}
|
|
63762
63545
|
return [result2, { status: "complete", request: req, response }];
|
|
63763
63546
|
}
|
|
63764
|
-
var
|
|
63547
|
+
var init_materialsListMaterials = __esm(() => {
|
|
63765
63548
|
init_matchers();
|
|
63766
63549
|
init_primitives();
|
|
63767
63550
|
init_security();
|
|
@@ -63771,14 +63554,14 @@ var init_locationsListLocations = __esm(() => {
|
|
|
63771
63554
|
init_async();
|
|
63772
63555
|
});
|
|
63773
63556
|
|
|
63774
|
-
// src/mcp-server/tools/
|
|
63775
|
-
var tool$
|
|
63776
|
-
var
|
|
63777
|
-
|
|
63557
|
+
// src/mcp-server/tools/materialsListMaterials.ts
|
|
63558
|
+
var tool$materialsListMaterials;
|
|
63559
|
+
var init_materialsListMaterials2 = __esm(() => {
|
|
63560
|
+
init_materialsListMaterials();
|
|
63778
63561
|
init_tools();
|
|
63779
|
-
tool$
|
|
63780
|
-
name: "
|
|
63781
|
-
description: `List all
|
|
63562
|
+
tool$materialsListMaterials = {
|
|
63563
|
+
name: "materials-list-materials",
|
|
63564
|
+
description: `List all Materials
|
|
63782
63565
|
|
|
63783
63566
|
|
|
63784
63567
|
|
|
@@ -63787,11 +63570,11 @@ This endpoint supports result filtering. For more information on how to filter t
|
|
|
63787
63570
|
|
|
63788
63571
|
|
|
63789
63572
|
#### OAuth Scope
|
|
63790
|
-
This endpoint requires the following OAuth scope **
|
|
63573
|
+
This endpoint requires the following OAuth scope **read_inventory**.
|
|
63791
63574
|
|
|
63792
63575
|
`,
|
|
63793
63576
|
tool: async (client, ctx) => {
|
|
63794
|
-
const [result2, apiCall] = await
|
|
63577
|
+
const [result2, apiCall] = await materialsListMaterials(client, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
63795
63578
|
if (!result2.ok) {
|
|
63796
63579
|
return {
|
|
63797
63580
|
content: [{ type: "text", text: result2.error.message }],
|
|
@@ -63804,24 +63587,24 @@ This endpoint requires the following OAuth scope **read_locations**.
|
|
|
63804
63587
|
};
|
|
63805
63588
|
});
|
|
63806
63589
|
|
|
63807
|
-
// src/funcs/
|
|
63808
|
-
function
|
|
63590
|
+
// src/funcs/materialsUpdateMaterials.ts
|
|
63591
|
+
function materialsUpdateMaterials(client, request, options) {
|
|
63809
63592
|
return new APIPromise($do143(client, request, options));
|
|
63810
63593
|
}
|
|
63811
63594
|
async function $do143(client, request, options) {
|
|
63812
|
-
const parsed = safeParse(request, (value) =>
|
|
63595
|
+
const parsed = safeParse(request, (value) => UpdateMaterialsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
63813
63596
|
if (!parsed.ok) {
|
|
63814
63597
|
return [parsed, { status: "invalid" }];
|
|
63815
63598
|
}
|
|
63816
63599
|
const payload = parsed.value;
|
|
63817
|
-
const body = encodeJSON("body", payload.
|
|
63600
|
+
const body = encodeJSON("body", payload.Material, { explode: true });
|
|
63818
63601
|
const pathParams = {
|
|
63819
63602
|
uuid: encodeSimple("uuid", payload.uuid, {
|
|
63820
63603
|
explode: false,
|
|
63821
63604
|
charEncoding: "percent"
|
|
63822
63605
|
})
|
|
63823
63606
|
};
|
|
63824
|
-
const path = pathToFunc("/
|
|
63607
|
+
const path = pathToFunc("/material/{uuid}.json")(pathParams);
|
|
63825
63608
|
const headers = new Headers(compactMap({
|
|
63826
63609
|
"Content-Type": "application/json",
|
|
63827
63610
|
Accept: "application/json"
|
|
@@ -63831,7 +63614,7 @@ async function $do143(client, request, options) {
|
|
|
63831
63614
|
const context = {
|
|
63832
63615
|
options: client._options,
|
|
63833
63616
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
63834
|
-
operationID: "
|
|
63617
|
+
operationID: "updateMaterials",
|
|
63835
63618
|
oAuth2Scopes: [],
|
|
63836
63619
|
resolvedSecurity: requestSecurity,
|
|
63837
63620
|
securitySource: client._options.security,
|
|
@@ -63874,13 +63657,13 @@ async function $do143(client, request, options) {
|
|
|
63874
63657
|
const responseFields = {
|
|
63875
63658
|
HttpMeta: { Response: response, Request: req }
|
|
63876
63659
|
};
|
|
63877
|
-
const [result2] = await match(json(200,
|
|
63660
|
+
const [result2] = await match(json(200, UpdateMaterialsResponse$inboundSchema), jsonErr(400, ErrorT$inboundSchema2), fail("4XX"), fail("5XX"), json("default", UpdateMaterialsResponse$inboundSchema))(response, req, { extraFields: responseFields });
|
|
63878
63661
|
if (!result2.ok) {
|
|
63879
63662
|
return [result2, { status: "complete", request: req, response }];
|
|
63880
63663
|
}
|
|
63881
63664
|
return [result2, { status: "complete", request: req, response }];
|
|
63882
63665
|
}
|
|
63883
|
-
var
|
|
63666
|
+
var init_materialsUpdateMaterials = __esm(() => {
|
|
63884
63667
|
init_encodings();
|
|
63885
63668
|
init_matchers();
|
|
63886
63669
|
init_primitives();
|
|
@@ -63892,28 +63675,28 @@ var init_locationsUpdateLocations = __esm(() => {
|
|
|
63892
63675
|
init_async();
|
|
63893
63676
|
});
|
|
63894
63677
|
|
|
63895
|
-
// src/mcp-server/tools/
|
|
63896
|
-
var args116, tool$
|
|
63897
|
-
var
|
|
63898
|
-
|
|
63678
|
+
// src/mcp-server/tools/materialsUpdateMaterials.ts
|
|
63679
|
+
var args116, tool$materialsUpdateMaterials;
|
|
63680
|
+
var init_materialsUpdateMaterials2 = __esm(() => {
|
|
63681
|
+
init_materialsUpdateMaterials();
|
|
63899
63682
|
init_operations();
|
|
63900
63683
|
init_tools();
|
|
63901
63684
|
args116 = {
|
|
63902
|
-
request:
|
|
63685
|
+
request: UpdateMaterialsRequest$inboundSchema
|
|
63903
63686
|
};
|
|
63904
|
-
tool$
|
|
63905
|
-
name: "
|
|
63906
|
-
description: `Update a
|
|
63687
|
+
tool$materialsUpdateMaterials = {
|
|
63688
|
+
name: "materials-update-materials",
|
|
63689
|
+
description: `Update a Material
|
|
63907
63690
|
|
|
63908
63691
|
|
|
63909
63692
|
|
|
63910
63693
|
#### OAuth Scope
|
|
63911
|
-
This endpoint requires the following OAuth scope **
|
|
63694
|
+
This endpoint requires the following OAuth scope **manage_inventory**.
|
|
63912
63695
|
|
|
63913
63696
|
`,
|
|
63914
63697
|
args: args116,
|
|
63915
63698
|
tool: async (client, args117, ctx) => {
|
|
63916
|
-
const [result2, apiCall] = await
|
|
63699
|
+
const [result2, apiCall] = await materialsUpdateMaterials(client, args117.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
63917
63700
|
if (!result2.ok) {
|
|
63918
63701
|
return {
|
|
63919
63702
|
content: [{ type: "text", text: result2.error.message }],
|
|
@@ -63926,18 +63709,18 @@ This endpoint requires the following OAuth scope **manage_locations**.
|
|
|
63926
63709
|
};
|
|
63927
63710
|
});
|
|
63928
63711
|
|
|
63929
|
-
// src/funcs/
|
|
63930
|
-
function
|
|
63712
|
+
// src/funcs/notesCreateNotes.ts
|
|
63713
|
+
function notesCreateNotes(client, request, options) {
|
|
63931
63714
|
return new APIPromise($do144(client, request, options));
|
|
63932
63715
|
}
|
|
63933
63716
|
async function $do144(client, request, options) {
|
|
63934
|
-
const parsed = safeParse(request, (value) =>
|
|
63717
|
+
const parsed = safeParse(request, (value) => NoteInput$outboundSchema.parse(value), "Input validation failed");
|
|
63935
63718
|
if (!parsed.ok) {
|
|
63936
63719
|
return [parsed, { status: "invalid" }];
|
|
63937
63720
|
}
|
|
63938
63721
|
const payload = parsed.value;
|
|
63939
63722
|
const body = encodeJSON("body", payload, { explode: true });
|
|
63940
|
-
const path = pathToFunc("/
|
|
63723
|
+
const path = pathToFunc("/note.json")();
|
|
63941
63724
|
const headers = new Headers(compactMap({
|
|
63942
63725
|
"Content-Type": "application/json",
|
|
63943
63726
|
Accept: "application/json"
|
|
@@ -63947,7 +63730,7 @@ async function $do144(client, request, options) {
|
|
|
63947
63730
|
const context = {
|
|
63948
63731
|
options: client._options,
|
|
63949
63732
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
63950
|
-
operationID: "
|
|
63733
|
+
operationID: "createNotes",
|
|
63951
63734
|
oAuth2Scopes: [],
|
|
63952
63735
|
resolvedSecurity: requestSecurity,
|
|
63953
63736
|
securitySource: client._options.security,
|
|
@@ -63990,10 +63773,10 @@ async function $do144(client, request, options) {
|
|
|
63990
63773
|
const responseFields = {
|
|
63991
63774
|
HttpMeta: { Response: response, Request: req }
|
|
63992
63775
|
};
|
|
63993
|
-
const [result2] = await match(json(200,
|
|
63776
|
+
const [result2] = await match(json(200, CreateNotesResponse$inboundSchema, {
|
|
63994
63777
|
hdrs: true,
|
|
63995
63778
|
key: "Result"
|
|
63996
|
-
}), jsonErr(400, ErrorT$inboundSchema2), fail("4XX"), fail("5XX"), json("default",
|
|
63779
|
+
}), jsonErr(400, ErrorT$inboundSchema2), fail("4XX"), fail("5XX"), json("default", CreateNotesResponse$inboundSchema, {
|
|
63997
63780
|
key: "Result"
|
|
63998
63781
|
}))(response, req, { extraFields: responseFields });
|
|
63999
63782
|
if (!result2.ok) {
|
|
@@ -64001,7 +63784,7 @@ async function $do144(client, request, options) {
|
|
|
64001
63784
|
}
|
|
64002
63785
|
return [result2, { status: "complete", request: req, response }];
|
|
64003
63786
|
}
|
|
64004
|
-
var
|
|
63787
|
+
var init_notesCreateNotes = __esm(() => {
|
|
64005
63788
|
init_encodings();
|
|
64006
63789
|
init_matchers();
|
|
64007
63790
|
init_primitives();
|
|
@@ -64014,33 +63797,28 @@ var init_materialsCreateMaterials = __esm(() => {
|
|
|
64014
63797
|
init_async();
|
|
64015
63798
|
});
|
|
64016
63799
|
|
|
64017
|
-
// src/mcp-server/tools/
|
|
64018
|
-
var args117, tool$
|
|
64019
|
-
var
|
|
64020
|
-
|
|
63800
|
+
// src/mcp-server/tools/notesCreateNotes.ts
|
|
63801
|
+
var args117, tool$notesCreateNotes;
|
|
63802
|
+
var init_notesCreateNotes2 = __esm(() => {
|
|
63803
|
+
init_notesCreateNotes();
|
|
64021
63804
|
init_components();
|
|
64022
63805
|
init_tools();
|
|
64023
63806
|
args117 = {
|
|
64024
|
-
request:
|
|
63807
|
+
request: NoteInput$inboundSchema
|
|
64025
63808
|
};
|
|
64026
|
-
tool$
|
|
64027
|
-
name: "
|
|
64028
|
-
description: `Create a new
|
|
64029
|
-
|
|
63809
|
+
tool$notesCreateNotes = {
|
|
63810
|
+
name: "notes-create-notes",
|
|
63811
|
+
description: `Create a new Note
|
|
64030
63812
|
|
|
64031
|
-
|
|
64032
|
-
#### OAuth Scope
|
|
64033
|
-
This endpoint requires the following OAuth scope **manage_inventory**.
|
|
64034
63813
|
|
|
64035
63814
|
|
|
64036
|
-
|
|
64037
63815
|
#### Record UUID
|
|
64038
63816
|
UUID is optional for record creation. If no UUID is supplied, a UUID will be automatically generated for the new record and returned in the \`x-record-uuid\` response header.
|
|
64039
63817
|
|
|
64040
63818
|
`,
|
|
64041
63819
|
args: args117,
|
|
64042
63820
|
tool: async (client, args118, ctx) => {
|
|
64043
|
-
const [result2, apiCall] = await
|
|
63821
|
+
const [result2, apiCall] = await notesCreateNotes(client, args118.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
64044
63822
|
if (!result2.ok) {
|
|
64045
63823
|
return {
|
|
64046
63824
|
content: [{ type: "text", text: result2.error.message }],
|
|
@@ -64053,12 +63831,12 @@ UUID is optional for record creation. If no UUID is supplied, a UUID will be aut
|
|
|
64053
63831
|
};
|
|
64054
63832
|
});
|
|
64055
63833
|
|
|
64056
|
-
// src/funcs/
|
|
64057
|
-
function
|
|
63834
|
+
// src/funcs/notesDeleteNotes.ts
|
|
63835
|
+
function notesDeleteNotes(client, request, options) {
|
|
64058
63836
|
return new APIPromise($do145(client, request, options));
|
|
64059
63837
|
}
|
|
64060
63838
|
async function $do145(client, request, options) {
|
|
64061
|
-
const parsed = safeParse(request, (value) =>
|
|
63839
|
+
const parsed = safeParse(request, (value) => DeleteNotesRequest$outboundSchema.parse(value), "Input validation failed");
|
|
64062
63840
|
if (!parsed.ok) {
|
|
64063
63841
|
return [parsed, { status: "invalid" }];
|
|
64064
63842
|
}
|
|
@@ -64070,7 +63848,7 @@ async function $do145(client, request, options) {
|
|
|
64070
63848
|
charEncoding: "percent"
|
|
64071
63849
|
})
|
|
64072
63850
|
};
|
|
64073
|
-
const path = pathToFunc("/
|
|
63851
|
+
const path = pathToFunc("/note/{uuid}.json")(pathParams);
|
|
64074
63852
|
const headers = new Headers(compactMap({
|
|
64075
63853
|
Accept: "application/json"
|
|
64076
63854
|
}));
|
|
@@ -64079,602 +63857,7 @@ async function $do145(client, request, options) {
|
|
|
64079
63857
|
const context = {
|
|
64080
63858
|
options: client._options,
|
|
64081
63859
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
64082
|
-
operationID: "
|
|
64083
|
-
oAuth2Scopes: [],
|
|
64084
|
-
resolvedSecurity: requestSecurity,
|
|
64085
|
-
securitySource: client._options.security,
|
|
64086
|
-
retryConfig: options?.retries || client._options.retryConfig || {
|
|
64087
|
-
strategy: "backoff",
|
|
64088
|
-
backoff: {
|
|
64089
|
-
initialInterval: 500,
|
|
64090
|
-
maxInterval: 60000,
|
|
64091
|
-
exponent: 1.5,
|
|
64092
|
-
maxElapsedTime: 3600000
|
|
64093
|
-
},
|
|
64094
|
-
retryConnectionErrors: true
|
|
64095
|
-
},
|
|
64096
|
-
retryCodes: options?.retryCodes || ["5XX"]
|
|
64097
|
-
};
|
|
64098
|
-
const requestRes = client._createRequest(context, {
|
|
64099
|
-
security: requestSecurity,
|
|
64100
|
-
method: "DELETE",
|
|
64101
|
-
baseURL: options?.serverURL,
|
|
64102
|
-
path,
|
|
64103
|
-
headers,
|
|
64104
|
-
body,
|
|
64105
|
-
userAgent: client._options.userAgent,
|
|
64106
|
-
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
64107
|
-
}, options);
|
|
64108
|
-
if (!requestRes.ok) {
|
|
64109
|
-
return [requestRes, { status: "invalid" }];
|
|
64110
|
-
}
|
|
64111
|
-
const req = requestRes.value;
|
|
64112
|
-
const doResult = await client._do(req, {
|
|
64113
|
-
context,
|
|
64114
|
-
errorCodes: ["400", "4XX", "5XX"],
|
|
64115
|
-
retryConfig: context.retryConfig,
|
|
64116
|
-
retryCodes: context.retryCodes
|
|
64117
|
-
});
|
|
64118
|
-
if (!doResult.ok) {
|
|
64119
|
-
return [doResult, { status: "request-error", request: req }];
|
|
64120
|
-
}
|
|
64121
|
-
const response = doResult.value;
|
|
64122
|
-
const responseFields = {
|
|
64123
|
-
HttpMeta: { Response: response, Request: req }
|
|
64124
|
-
};
|
|
64125
|
-
const [result2] = await match(json(200, DeleteMaterialsResponse$inboundSchema), jsonErr(400, ErrorT$inboundSchema2), fail("4XX"), fail("5XX"), json("default", DeleteMaterialsResponse$inboundSchema))(response, req, { extraFields: responseFields });
|
|
64126
|
-
if (!result2.ok) {
|
|
64127
|
-
return [result2, { status: "complete", request: req, response }];
|
|
64128
|
-
}
|
|
64129
|
-
return [result2, { status: "complete", request: req, response }];
|
|
64130
|
-
}
|
|
64131
|
-
var init_materialsDeleteMaterials = __esm(() => {
|
|
64132
|
-
init_encodings();
|
|
64133
|
-
init_matchers();
|
|
64134
|
-
init_primitives();
|
|
64135
|
-
init_schemas();
|
|
64136
|
-
init_security();
|
|
64137
|
-
init_url();
|
|
64138
|
-
init_errors2();
|
|
64139
|
-
init_operations();
|
|
64140
|
-
init_async();
|
|
64141
|
-
});
|
|
64142
|
-
|
|
64143
|
-
// src/mcp-server/tools/materialsDeleteMaterials.ts
|
|
64144
|
-
var args118, tool$materialsDeleteMaterials;
|
|
64145
|
-
var init_materialsDeleteMaterials2 = __esm(() => {
|
|
64146
|
-
init_materialsDeleteMaterials();
|
|
64147
|
-
init_operations();
|
|
64148
|
-
init_tools();
|
|
64149
|
-
args118 = {
|
|
64150
|
-
request: DeleteMaterialsRequest$inboundSchema
|
|
64151
|
-
};
|
|
64152
|
-
tool$materialsDeleteMaterials = {
|
|
64153
|
-
name: "materials-delete-materials",
|
|
64154
|
-
description: `Delete a Material
|
|
64155
|
-
|
|
64156
|
-
|
|
64157
|
-
|
|
64158
|
-
In ServiceM8, deleting a record sets its \`active\` field to \`0\`. Inactive records are still accessible on the API, but are hidden in the UI. Inactive records can be restored by setting their \`active\` field to \`1\`.
|
|
64159
|
-
|
|
64160
|
-
|
|
64161
|
-
|
|
64162
|
-
#### OAuth Scope
|
|
64163
|
-
This endpoint requires the following OAuth scope **manage_inventory**.
|
|
64164
|
-
|
|
64165
|
-
`,
|
|
64166
|
-
args: args118,
|
|
64167
|
-
tool: async (client, args119, ctx) => {
|
|
64168
|
-
const [result2, apiCall] = await materialsDeleteMaterials(client, args119.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
64169
|
-
if (!result2.ok) {
|
|
64170
|
-
return {
|
|
64171
|
-
content: [{ type: "text", text: result2.error.message }],
|
|
64172
|
-
isError: true
|
|
64173
|
-
};
|
|
64174
|
-
}
|
|
64175
|
-
const value = result2.value;
|
|
64176
|
-
return formatResult(value, apiCall);
|
|
64177
|
-
}
|
|
64178
|
-
};
|
|
64179
|
-
});
|
|
64180
|
-
|
|
64181
|
-
// src/funcs/materialsGetMaterials.ts
|
|
64182
|
-
function materialsGetMaterials(client, request, options) {
|
|
64183
|
-
return new APIPromise($do146(client, request, options));
|
|
64184
|
-
}
|
|
64185
|
-
async function $do146(client, request, options) {
|
|
64186
|
-
const parsed = safeParse(request, (value) => GetMaterialsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
64187
|
-
if (!parsed.ok) {
|
|
64188
|
-
return [parsed, { status: "invalid" }];
|
|
64189
|
-
}
|
|
64190
|
-
const payload = parsed.value;
|
|
64191
|
-
const body = null;
|
|
64192
|
-
const pathParams = {
|
|
64193
|
-
uuid: encodeSimple("uuid", payload.uuid, {
|
|
64194
|
-
explode: false,
|
|
64195
|
-
charEncoding: "percent"
|
|
64196
|
-
})
|
|
64197
|
-
};
|
|
64198
|
-
const path = pathToFunc("/material/{uuid}.json")(pathParams);
|
|
64199
|
-
const headers = new Headers(compactMap({
|
|
64200
|
-
Accept: "application/json"
|
|
64201
|
-
}));
|
|
64202
|
-
const securityInput = await extractSecurity(client._options.security);
|
|
64203
|
-
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
64204
|
-
const context = {
|
|
64205
|
-
options: client._options,
|
|
64206
|
-
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
64207
|
-
operationID: "getMaterials",
|
|
64208
|
-
oAuth2Scopes: [],
|
|
64209
|
-
resolvedSecurity: requestSecurity,
|
|
64210
|
-
securitySource: client._options.security,
|
|
64211
|
-
retryConfig: options?.retries || client._options.retryConfig || {
|
|
64212
|
-
strategy: "backoff",
|
|
64213
|
-
backoff: {
|
|
64214
|
-
initialInterval: 500,
|
|
64215
|
-
maxInterval: 60000,
|
|
64216
|
-
exponent: 1.5,
|
|
64217
|
-
maxElapsedTime: 3600000
|
|
64218
|
-
},
|
|
64219
|
-
retryConnectionErrors: true
|
|
64220
|
-
},
|
|
64221
|
-
retryCodes: options?.retryCodes || ["5XX"]
|
|
64222
|
-
};
|
|
64223
|
-
const requestRes = client._createRequest(context, {
|
|
64224
|
-
security: requestSecurity,
|
|
64225
|
-
method: "GET",
|
|
64226
|
-
baseURL: options?.serverURL,
|
|
64227
|
-
path,
|
|
64228
|
-
headers,
|
|
64229
|
-
body,
|
|
64230
|
-
userAgent: client._options.userAgent,
|
|
64231
|
-
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
64232
|
-
}, options);
|
|
64233
|
-
if (!requestRes.ok) {
|
|
64234
|
-
return [requestRes, { status: "invalid" }];
|
|
64235
|
-
}
|
|
64236
|
-
const req = requestRes.value;
|
|
64237
|
-
const doResult = await client._do(req, {
|
|
64238
|
-
context,
|
|
64239
|
-
errorCodes: ["400", "4XX", "5XX"],
|
|
64240
|
-
retryConfig: context.retryConfig,
|
|
64241
|
-
retryCodes: context.retryCodes
|
|
64242
|
-
});
|
|
64243
|
-
if (!doResult.ok) {
|
|
64244
|
-
return [doResult, { status: "request-error", request: req }];
|
|
64245
|
-
}
|
|
64246
|
-
const response = doResult.value;
|
|
64247
|
-
const responseFields = {
|
|
64248
|
-
HttpMeta: { Response: response, Request: req }
|
|
64249
|
-
};
|
|
64250
|
-
const [result2] = await match(json(200, GetMaterialsResponse$inboundSchema), jsonErr(400, ErrorT$inboundSchema2), fail("4XX"), fail("5XX"), json("default", GetMaterialsResponse$inboundSchema))(response, req, { extraFields: responseFields });
|
|
64251
|
-
if (!result2.ok) {
|
|
64252
|
-
return [result2, { status: "complete", request: req, response }];
|
|
64253
|
-
}
|
|
64254
|
-
return [result2, { status: "complete", request: req, response }];
|
|
64255
|
-
}
|
|
64256
|
-
var init_materialsGetMaterials = __esm(() => {
|
|
64257
|
-
init_encodings();
|
|
64258
|
-
init_matchers();
|
|
64259
|
-
init_primitives();
|
|
64260
|
-
init_schemas();
|
|
64261
|
-
init_security();
|
|
64262
|
-
init_url();
|
|
64263
|
-
init_errors2();
|
|
64264
|
-
init_operations();
|
|
64265
|
-
init_async();
|
|
64266
|
-
});
|
|
64267
|
-
|
|
64268
|
-
// src/mcp-server/tools/materialsGetMaterials.ts
|
|
64269
|
-
var args119, tool$materialsGetMaterials;
|
|
64270
|
-
var init_materialsGetMaterials2 = __esm(() => {
|
|
64271
|
-
init_materialsGetMaterials();
|
|
64272
|
-
init_operations();
|
|
64273
|
-
init_tools();
|
|
64274
|
-
args119 = {
|
|
64275
|
-
request: GetMaterialsRequest$inboundSchema
|
|
64276
|
-
};
|
|
64277
|
-
tool$materialsGetMaterials = {
|
|
64278
|
-
name: "materials-get-materials",
|
|
64279
|
-
description: `Retrieve a Material
|
|
64280
|
-
|
|
64281
|
-
|
|
64282
|
-
|
|
64283
|
-
#### OAuth Scope
|
|
64284
|
-
This endpoint requires the following OAuth scope **read_inventory**.
|
|
64285
|
-
|
|
64286
|
-
`,
|
|
64287
|
-
args: args119,
|
|
64288
|
-
tool: async (client, args120, ctx) => {
|
|
64289
|
-
const [result2, apiCall] = await materialsGetMaterials(client, args120.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
64290
|
-
if (!result2.ok) {
|
|
64291
|
-
return {
|
|
64292
|
-
content: [{ type: "text", text: result2.error.message }],
|
|
64293
|
-
isError: true
|
|
64294
|
-
};
|
|
64295
|
-
}
|
|
64296
|
-
const value = result2.value;
|
|
64297
|
-
return formatResult(value, apiCall);
|
|
64298
|
-
}
|
|
64299
|
-
};
|
|
64300
|
-
});
|
|
64301
|
-
|
|
64302
|
-
// src/funcs/materialsListMaterials.ts
|
|
64303
|
-
function materialsListMaterials(client, options) {
|
|
64304
|
-
return new APIPromise($do147(client, options));
|
|
64305
|
-
}
|
|
64306
|
-
async function $do147(client, options) {
|
|
64307
|
-
const path = pathToFunc("/material.json")();
|
|
64308
|
-
const headers = new Headers(compactMap({
|
|
64309
|
-
Accept: "application/json"
|
|
64310
|
-
}));
|
|
64311
|
-
const securityInput = await extractSecurity(client._options.security);
|
|
64312
|
-
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
64313
|
-
const context = {
|
|
64314
|
-
options: client._options,
|
|
64315
|
-
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
64316
|
-
operationID: "listMaterials",
|
|
64317
|
-
oAuth2Scopes: [],
|
|
64318
|
-
resolvedSecurity: requestSecurity,
|
|
64319
|
-
securitySource: client._options.security,
|
|
64320
|
-
retryConfig: options?.retries || client._options.retryConfig || {
|
|
64321
|
-
strategy: "backoff",
|
|
64322
|
-
backoff: {
|
|
64323
|
-
initialInterval: 500,
|
|
64324
|
-
maxInterval: 60000,
|
|
64325
|
-
exponent: 1.5,
|
|
64326
|
-
maxElapsedTime: 3600000
|
|
64327
|
-
},
|
|
64328
|
-
retryConnectionErrors: true
|
|
64329
|
-
},
|
|
64330
|
-
retryCodes: options?.retryCodes || ["5XX"]
|
|
64331
|
-
};
|
|
64332
|
-
const requestRes = client._createRequest(context, {
|
|
64333
|
-
security: requestSecurity,
|
|
64334
|
-
method: "GET",
|
|
64335
|
-
baseURL: options?.serverURL,
|
|
64336
|
-
path,
|
|
64337
|
-
headers,
|
|
64338
|
-
userAgent: client._options.userAgent,
|
|
64339
|
-
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
64340
|
-
}, options);
|
|
64341
|
-
if (!requestRes.ok) {
|
|
64342
|
-
return [requestRes, { status: "invalid" }];
|
|
64343
|
-
}
|
|
64344
|
-
const req = requestRes.value;
|
|
64345
|
-
const doResult = await client._do(req, {
|
|
64346
|
-
context,
|
|
64347
|
-
errorCodes: ["400", "4XX", "5XX"],
|
|
64348
|
-
retryConfig: context.retryConfig,
|
|
64349
|
-
retryCodes: context.retryCodes
|
|
64350
|
-
});
|
|
64351
|
-
if (!doResult.ok) {
|
|
64352
|
-
return [doResult, { status: "request-error", request: req }];
|
|
64353
|
-
}
|
|
64354
|
-
const response = doResult.value;
|
|
64355
|
-
const responseFields = {
|
|
64356
|
-
HttpMeta: { Response: response, Request: req }
|
|
64357
|
-
};
|
|
64358
|
-
const [result2] = await match(json(200, ListMaterialsResponse$inboundSchema), jsonErr(400, ErrorT$inboundSchema2), fail("4XX"), fail("5XX"), json("default", ListMaterialsResponse$inboundSchema))(response, req, { extraFields: responseFields });
|
|
64359
|
-
if (!result2.ok) {
|
|
64360
|
-
return [result2, { status: "complete", request: req, response }];
|
|
64361
|
-
}
|
|
64362
|
-
return [result2, { status: "complete", request: req, response }];
|
|
64363
|
-
}
|
|
64364
|
-
var init_materialsListMaterials = __esm(() => {
|
|
64365
|
-
init_matchers();
|
|
64366
|
-
init_primitives();
|
|
64367
|
-
init_security();
|
|
64368
|
-
init_url();
|
|
64369
|
-
init_errors2();
|
|
64370
|
-
init_operations();
|
|
64371
|
-
init_async();
|
|
64372
|
-
});
|
|
64373
|
-
|
|
64374
|
-
// src/mcp-server/tools/materialsListMaterials.ts
|
|
64375
|
-
var tool$materialsListMaterials;
|
|
64376
|
-
var init_materialsListMaterials2 = __esm(() => {
|
|
64377
|
-
init_materialsListMaterials();
|
|
64378
|
-
init_tools();
|
|
64379
|
-
tool$materialsListMaterials = {
|
|
64380
|
-
name: "materials-list-materials",
|
|
64381
|
-
description: `List all Materials
|
|
64382
|
-
|
|
64383
|
-
|
|
64384
|
-
|
|
64385
|
-
#### Filtering
|
|
64386
|
-
This endpoint supports result filtering. For more information on how to filter this request, [go here](/docs/filtering).
|
|
64387
|
-
|
|
64388
|
-
|
|
64389
|
-
#### OAuth Scope
|
|
64390
|
-
This endpoint requires the following OAuth scope **read_inventory**.
|
|
64391
|
-
|
|
64392
|
-
`,
|
|
64393
|
-
tool: async (client, ctx) => {
|
|
64394
|
-
const [result2, apiCall] = await materialsListMaterials(client, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
64395
|
-
if (!result2.ok) {
|
|
64396
|
-
return {
|
|
64397
|
-
content: [{ type: "text", text: result2.error.message }],
|
|
64398
|
-
isError: true
|
|
64399
|
-
};
|
|
64400
|
-
}
|
|
64401
|
-
const value = result2.value;
|
|
64402
|
-
return formatResult(value, apiCall);
|
|
64403
|
-
}
|
|
64404
|
-
};
|
|
64405
|
-
});
|
|
64406
|
-
|
|
64407
|
-
// src/funcs/materialsUpdateMaterials.ts
|
|
64408
|
-
function materialsUpdateMaterials(client, request, options) {
|
|
64409
|
-
return new APIPromise($do148(client, request, options));
|
|
64410
|
-
}
|
|
64411
|
-
async function $do148(client, request, options) {
|
|
64412
|
-
const parsed = safeParse(request, (value) => UpdateMaterialsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
64413
|
-
if (!parsed.ok) {
|
|
64414
|
-
return [parsed, { status: "invalid" }];
|
|
64415
|
-
}
|
|
64416
|
-
const payload = parsed.value;
|
|
64417
|
-
const body = encodeJSON("body", payload.Material, { explode: true });
|
|
64418
|
-
const pathParams = {
|
|
64419
|
-
uuid: encodeSimple("uuid", payload.uuid, {
|
|
64420
|
-
explode: false,
|
|
64421
|
-
charEncoding: "percent"
|
|
64422
|
-
})
|
|
64423
|
-
};
|
|
64424
|
-
const path = pathToFunc("/material/{uuid}.json")(pathParams);
|
|
64425
|
-
const headers = new Headers(compactMap({
|
|
64426
|
-
"Content-Type": "application/json",
|
|
64427
|
-
Accept: "application/json"
|
|
64428
|
-
}));
|
|
64429
|
-
const securityInput = await extractSecurity(client._options.security);
|
|
64430
|
-
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
64431
|
-
const context = {
|
|
64432
|
-
options: client._options,
|
|
64433
|
-
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
64434
|
-
operationID: "updateMaterials",
|
|
64435
|
-
oAuth2Scopes: [],
|
|
64436
|
-
resolvedSecurity: requestSecurity,
|
|
64437
|
-
securitySource: client._options.security,
|
|
64438
|
-
retryConfig: options?.retries || client._options.retryConfig || {
|
|
64439
|
-
strategy: "backoff",
|
|
64440
|
-
backoff: {
|
|
64441
|
-
initialInterval: 500,
|
|
64442
|
-
maxInterval: 60000,
|
|
64443
|
-
exponent: 1.5,
|
|
64444
|
-
maxElapsedTime: 3600000
|
|
64445
|
-
},
|
|
64446
|
-
retryConnectionErrors: true
|
|
64447
|
-
},
|
|
64448
|
-
retryCodes: options?.retryCodes || ["5XX"]
|
|
64449
|
-
};
|
|
64450
|
-
const requestRes = client._createRequest(context, {
|
|
64451
|
-
security: requestSecurity,
|
|
64452
|
-
method: "POST",
|
|
64453
|
-
baseURL: options?.serverURL,
|
|
64454
|
-
path,
|
|
64455
|
-
headers,
|
|
64456
|
-
body,
|
|
64457
|
-
userAgent: client._options.userAgent,
|
|
64458
|
-
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
64459
|
-
}, options);
|
|
64460
|
-
if (!requestRes.ok) {
|
|
64461
|
-
return [requestRes, { status: "invalid" }];
|
|
64462
|
-
}
|
|
64463
|
-
const req = requestRes.value;
|
|
64464
|
-
const doResult = await client._do(req, {
|
|
64465
|
-
context,
|
|
64466
|
-
errorCodes: ["400", "4XX", "5XX"],
|
|
64467
|
-
retryConfig: context.retryConfig,
|
|
64468
|
-
retryCodes: context.retryCodes
|
|
64469
|
-
});
|
|
64470
|
-
if (!doResult.ok) {
|
|
64471
|
-
return [doResult, { status: "request-error", request: req }];
|
|
64472
|
-
}
|
|
64473
|
-
const response = doResult.value;
|
|
64474
|
-
const responseFields = {
|
|
64475
|
-
HttpMeta: { Response: response, Request: req }
|
|
64476
|
-
};
|
|
64477
|
-
const [result2] = await match(json(200, UpdateMaterialsResponse$inboundSchema), jsonErr(400, ErrorT$inboundSchema2), fail("4XX"), fail("5XX"), json("default", UpdateMaterialsResponse$inboundSchema))(response, req, { extraFields: responseFields });
|
|
64478
|
-
if (!result2.ok) {
|
|
64479
|
-
return [result2, { status: "complete", request: req, response }];
|
|
64480
|
-
}
|
|
64481
|
-
return [result2, { status: "complete", request: req, response }];
|
|
64482
|
-
}
|
|
64483
|
-
var init_materialsUpdateMaterials = __esm(() => {
|
|
64484
|
-
init_encodings();
|
|
64485
|
-
init_matchers();
|
|
64486
|
-
init_primitives();
|
|
64487
|
-
init_schemas();
|
|
64488
|
-
init_security();
|
|
64489
|
-
init_url();
|
|
64490
|
-
init_errors2();
|
|
64491
|
-
init_operations();
|
|
64492
|
-
init_async();
|
|
64493
|
-
});
|
|
64494
|
-
|
|
64495
|
-
// src/mcp-server/tools/materialsUpdateMaterials.ts
|
|
64496
|
-
var args120, tool$materialsUpdateMaterials;
|
|
64497
|
-
var init_materialsUpdateMaterials2 = __esm(() => {
|
|
64498
|
-
init_materialsUpdateMaterials();
|
|
64499
|
-
init_operations();
|
|
64500
|
-
init_tools();
|
|
64501
|
-
args120 = {
|
|
64502
|
-
request: UpdateMaterialsRequest$inboundSchema
|
|
64503
|
-
};
|
|
64504
|
-
tool$materialsUpdateMaterials = {
|
|
64505
|
-
name: "materials-update-materials",
|
|
64506
|
-
description: `Update a Material
|
|
64507
|
-
|
|
64508
|
-
|
|
64509
|
-
|
|
64510
|
-
#### OAuth Scope
|
|
64511
|
-
This endpoint requires the following OAuth scope **manage_inventory**.
|
|
64512
|
-
|
|
64513
|
-
`,
|
|
64514
|
-
args: args120,
|
|
64515
|
-
tool: async (client, args121, ctx) => {
|
|
64516
|
-
const [result2, apiCall] = await materialsUpdateMaterials(client, args121.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
64517
|
-
if (!result2.ok) {
|
|
64518
|
-
return {
|
|
64519
|
-
content: [{ type: "text", text: result2.error.message }],
|
|
64520
|
-
isError: true
|
|
64521
|
-
};
|
|
64522
|
-
}
|
|
64523
|
-
const value = result2.value;
|
|
64524
|
-
return formatResult(value, apiCall);
|
|
64525
|
-
}
|
|
64526
|
-
};
|
|
64527
|
-
});
|
|
64528
|
-
|
|
64529
|
-
// src/funcs/notesCreateNotes.ts
|
|
64530
|
-
function notesCreateNotes(client, request, options) {
|
|
64531
|
-
return new APIPromise($do149(client, request, options));
|
|
64532
|
-
}
|
|
64533
|
-
async function $do149(client, request, options) {
|
|
64534
|
-
const parsed = safeParse(request, (value) => NoteInput$outboundSchema.parse(value), "Input validation failed");
|
|
64535
|
-
if (!parsed.ok) {
|
|
64536
|
-
return [parsed, { status: "invalid" }];
|
|
64537
|
-
}
|
|
64538
|
-
const payload = parsed.value;
|
|
64539
|
-
const body = encodeJSON("body", payload, { explode: true });
|
|
64540
|
-
const path = pathToFunc("/note.json")();
|
|
64541
|
-
const headers = new Headers(compactMap({
|
|
64542
|
-
"Content-Type": "application/json",
|
|
64543
|
-
Accept: "application/json"
|
|
64544
|
-
}));
|
|
64545
|
-
const securityInput = await extractSecurity(client._options.security);
|
|
64546
|
-
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
64547
|
-
const context = {
|
|
64548
|
-
options: client._options,
|
|
64549
|
-
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
64550
|
-
operationID: "createNotes",
|
|
64551
|
-
oAuth2Scopes: [],
|
|
64552
|
-
resolvedSecurity: requestSecurity,
|
|
64553
|
-
securitySource: client._options.security,
|
|
64554
|
-
retryConfig: options?.retries || client._options.retryConfig || {
|
|
64555
|
-
strategy: "backoff",
|
|
64556
|
-
backoff: {
|
|
64557
|
-
initialInterval: 500,
|
|
64558
|
-
maxInterval: 60000,
|
|
64559
|
-
exponent: 1.5,
|
|
64560
|
-
maxElapsedTime: 3600000
|
|
64561
|
-
},
|
|
64562
|
-
retryConnectionErrors: true
|
|
64563
|
-
},
|
|
64564
|
-
retryCodes: options?.retryCodes || ["5XX"]
|
|
64565
|
-
};
|
|
64566
|
-
const requestRes = client._createRequest(context, {
|
|
64567
|
-
security: requestSecurity,
|
|
64568
|
-
method: "POST",
|
|
64569
|
-
baseURL: options?.serverURL,
|
|
64570
|
-
path,
|
|
64571
|
-
headers,
|
|
64572
|
-
body,
|
|
64573
|
-
userAgent: client._options.userAgent,
|
|
64574
|
-
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
64575
|
-
}, options);
|
|
64576
|
-
if (!requestRes.ok) {
|
|
64577
|
-
return [requestRes, { status: "invalid" }];
|
|
64578
|
-
}
|
|
64579
|
-
const req = requestRes.value;
|
|
64580
|
-
const doResult = await client._do(req, {
|
|
64581
|
-
context,
|
|
64582
|
-
errorCodes: ["400", "4XX", "5XX"],
|
|
64583
|
-
retryConfig: context.retryConfig,
|
|
64584
|
-
retryCodes: context.retryCodes
|
|
64585
|
-
});
|
|
64586
|
-
if (!doResult.ok) {
|
|
64587
|
-
return [doResult, { status: "request-error", request: req }];
|
|
64588
|
-
}
|
|
64589
|
-
const response = doResult.value;
|
|
64590
|
-
const responseFields = {
|
|
64591
|
-
HttpMeta: { Response: response, Request: req }
|
|
64592
|
-
};
|
|
64593
|
-
const [result2] = await match(json(200, CreateNotesResponse$inboundSchema, {
|
|
64594
|
-
hdrs: true,
|
|
64595
|
-
key: "Result"
|
|
64596
|
-
}), jsonErr(400, ErrorT$inboundSchema2), fail("4XX"), fail("5XX"), json("default", CreateNotesResponse$inboundSchema, {
|
|
64597
|
-
key: "Result"
|
|
64598
|
-
}))(response, req, { extraFields: responseFields });
|
|
64599
|
-
if (!result2.ok) {
|
|
64600
|
-
return [result2, { status: "complete", request: req, response }];
|
|
64601
|
-
}
|
|
64602
|
-
return [result2, { status: "complete", request: req, response }];
|
|
64603
|
-
}
|
|
64604
|
-
var init_notesCreateNotes = __esm(() => {
|
|
64605
|
-
init_encodings();
|
|
64606
|
-
init_matchers();
|
|
64607
|
-
init_primitives();
|
|
64608
|
-
init_schemas();
|
|
64609
|
-
init_security();
|
|
64610
|
-
init_url();
|
|
64611
|
-
init_components();
|
|
64612
|
-
init_errors2();
|
|
64613
|
-
init_operations();
|
|
64614
|
-
init_async();
|
|
64615
|
-
});
|
|
64616
|
-
|
|
64617
|
-
// src/mcp-server/tools/notesCreateNotes.ts
|
|
64618
|
-
var args121, tool$notesCreateNotes;
|
|
64619
|
-
var init_notesCreateNotes2 = __esm(() => {
|
|
64620
|
-
init_notesCreateNotes();
|
|
64621
|
-
init_components();
|
|
64622
|
-
init_tools();
|
|
64623
|
-
args121 = {
|
|
64624
|
-
request: NoteInput$inboundSchema
|
|
64625
|
-
};
|
|
64626
|
-
tool$notesCreateNotes = {
|
|
64627
|
-
name: "notes-create-notes",
|
|
64628
|
-
description: `Create a new Note
|
|
64629
|
-
|
|
64630
|
-
|
|
64631
|
-
|
|
64632
|
-
#### Record UUID
|
|
64633
|
-
UUID is optional for record creation. If no UUID is supplied, a UUID will be automatically generated for the new record and returned in the \`x-record-uuid\` response header.
|
|
64634
|
-
|
|
64635
|
-
`,
|
|
64636
|
-
args: args121,
|
|
64637
|
-
tool: async (client, args122, ctx) => {
|
|
64638
|
-
const [result2, apiCall] = await notesCreateNotes(client, args122.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
64639
|
-
if (!result2.ok) {
|
|
64640
|
-
return {
|
|
64641
|
-
content: [{ type: "text", text: result2.error.message }],
|
|
64642
|
-
isError: true
|
|
64643
|
-
};
|
|
64644
|
-
}
|
|
64645
|
-
const value = result2.value.result;
|
|
64646
|
-
return formatResult(value, apiCall);
|
|
64647
|
-
}
|
|
64648
|
-
};
|
|
64649
|
-
});
|
|
64650
|
-
|
|
64651
|
-
// src/funcs/notesDeleteNotes.ts
|
|
64652
|
-
function notesDeleteNotes(client, request, options) {
|
|
64653
|
-
return new APIPromise($do150(client, request, options));
|
|
64654
|
-
}
|
|
64655
|
-
async function $do150(client, request, options) {
|
|
64656
|
-
const parsed = safeParse(request, (value) => DeleteNotesRequest$outboundSchema.parse(value), "Input validation failed");
|
|
64657
|
-
if (!parsed.ok) {
|
|
64658
|
-
return [parsed, { status: "invalid" }];
|
|
64659
|
-
}
|
|
64660
|
-
const payload = parsed.value;
|
|
64661
|
-
const body = null;
|
|
64662
|
-
const pathParams = {
|
|
64663
|
-
uuid: encodeSimple("uuid", payload.uuid, {
|
|
64664
|
-
explode: false,
|
|
64665
|
-
charEncoding: "percent"
|
|
64666
|
-
})
|
|
64667
|
-
};
|
|
64668
|
-
const path = pathToFunc("/note/{uuid}.json")(pathParams);
|
|
64669
|
-
const headers = new Headers(compactMap({
|
|
64670
|
-
Accept: "application/json"
|
|
64671
|
-
}));
|
|
64672
|
-
const securityInput = await extractSecurity(client._options.security);
|
|
64673
|
-
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
64674
|
-
const context = {
|
|
64675
|
-
options: client._options,
|
|
64676
|
-
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
64677
|
-
operationID: "deleteNotes",
|
|
63860
|
+
operationID: "deleteNotes",
|
|
64678
63861
|
oAuth2Scopes: [],
|
|
64679
63862
|
resolvedSecurity: requestSecurity,
|
|
64680
63863
|
securitySource: client._options.security,
|
|
@@ -64736,12 +63919,12 @@ var init_notesDeleteNotes = __esm(() => {
|
|
|
64736
63919
|
});
|
|
64737
63920
|
|
|
64738
63921
|
// src/mcp-server/tools/notesDeleteNotes.ts
|
|
64739
|
-
var
|
|
63922
|
+
var args118, tool$notesDeleteNotes;
|
|
64740
63923
|
var init_notesDeleteNotes2 = __esm(() => {
|
|
64741
63924
|
init_notesDeleteNotes();
|
|
64742
63925
|
init_operations();
|
|
64743
63926
|
init_tools();
|
|
64744
|
-
|
|
63927
|
+
args118 = {
|
|
64745
63928
|
request: DeleteNotesRequest$inboundSchema
|
|
64746
63929
|
};
|
|
64747
63930
|
tool$notesDeleteNotes = {
|
|
@@ -64753,9 +63936,9 @@ var init_notesDeleteNotes2 = __esm(() => {
|
|
|
64753
63936
|
In ServiceM8, deleting a record sets its \`active\` field to \`0\`. Inactive records are still accessible on the API, but are hidden in the UI. Inactive records can be restored by setting their \`active\` field to \`1\`.
|
|
64754
63937
|
|
|
64755
63938
|
`,
|
|
64756
|
-
args:
|
|
64757
|
-
tool: async (client,
|
|
64758
|
-
const [result2, apiCall] = await notesDeleteNotes(client,
|
|
63939
|
+
args: args118,
|
|
63940
|
+
tool: async (client, args119, ctx) => {
|
|
63941
|
+
const [result2, apiCall] = await notesDeleteNotes(client, args119.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
64759
63942
|
if (!result2.ok) {
|
|
64760
63943
|
return {
|
|
64761
63944
|
content: [{ type: "text", text: result2.error.message }],
|
|
@@ -64770,9 +63953,9 @@ In ServiceM8, deleting a record sets its \`active\` field to \`0\`. Inactive rec
|
|
|
64770
63953
|
|
|
64771
63954
|
// src/funcs/notesGetNotes.ts
|
|
64772
63955
|
function notesGetNotes(client, request, options) {
|
|
64773
|
-
return new APIPromise($
|
|
63956
|
+
return new APIPromise($do146(client, request, options));
|
|
64774
63957
|
}
|
|
64775
|
-
async function $
|
|
63958
|
+
async function $do146(client, request, options) {
|
|
64776
63959
|
const parsed = safeParse(request, (value) => GetNotesRequest$outboundSchema.parse(value), "Input validation failed");
|
|
64777
63960
|
if (!parsed.ok) {
|
|
64778
63961
|
return [parsed, { status: "invalid" }];
|
|
@@ -64856,20 +64039,20 @@ var init_notesGetNotes = __esm(() => {
|
|
|
64856
64039
|
});
|
|
64857
64040
|
|
|
64858
64041
|
// src/mcp-server/tools/notesGetNotes.ts
|
|
64859
|
-
var
|
|
64042
|
+
var args119, tool$notesGetNotes;
|
|
64860
64043
|
var init_notesGetNotes2 = __esm(() => {
|
|
64861
64044
|
init_notesGetNotes();
|
|
64862
64045
|
init_operations();
|
|
64863
64046
|
init_tools();
|
|
64864
|
-
|
|
64047
|
+
args119 = {
|
|
64865
64048
|
request: GetNotesRequest$inboundSchema
|
|
64866
64049
|
};
|
|
64867
64050
|
tool$notesGetNotes = {
|
|
64868
64051
|
name: "notes-get-notes",
|
|
64869
64052
|
description: `Retrieve a Note`,
|
|
64870
|
-
args:
|
|
64871
|
-
tool: async (client,
|
|
64872
|
-
const [result2, apiCall] = await notesGetNotes(client,
|
|
64053
|
+
args: args119,
|
|
64054
|
+
tool: async (client, args120, ctx) => {
|
|
64055
|
+
const [result2, apiCall] = await notesGetNotes(client, args120.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
64873
64056
|
if (!result2.ok) {
|
|
64874
64057
|
return {
|
|
64875
64058
|
content: [{ type: "text", text: result2.error.message }],
|
|
@@ -64884,9 +64067,9 @@ var init_notesGetNotes2 = __esm(() => {
|
|
|
64884
64067
|
|
|
64885
64068
|
// src/funcs/notesListNotes.ts
|
|
64886
64069
|
function notesListNotes(client, options) {
|
|
64887
|
-
return new APIPromise($
|
|
64070
|
+
return new APIPromise($do147(client, options));
|
|
64888
64071
|
}
|
|
64889
|
-
async function $
|
|
64072
|
+
async function $do147(client, options) {
|
|
64890
64073
|
const path = pathToFunc("/note.json")();
|
|
64891
64074
|
const headers = new Headers(compactMap({
|
|
64892
64075
|
Accept: "application/json"
|
|
@@ -64984,9 +64167,9 @@ This endpoint supports result filtering. For more information on how to filter t
|
|
|
64984
64167
|
|
|
64985
64168
|
// src/funcs/notesUpdateNotes.ts
|
|
64986
64169
|
function notesUpdateNotes(client, request, options) {
|
|
64987
|
-
return new APIPromise($
|
|
64170
|
+
return new APIPromise($do148(client, request, options));
|
|
64988
64171
|
}
|
|
64989
|
-
async function $
|
|
64172
|
+
async function $do148(client, request, options) {
|
|
64990
64173
|
const parsed = safeParse(request, (value) => UpdateNotesRequest$outboundSchema.parse(value), "Input validation failed");
|
|
64991
64174
|
if (!parsed.ok) {
|
|
64992
64175
|
return [parsed, { status: "invalid" }];
|
|
@@ -65071,20 +64254,20 @@ var init_notesUpdateNotes = __esm(() => {
|
|
|
65071
64254
|
});
|
|
65072
64255
|
|
|
65073
64256
|
// src/mcp-server/tools/notesUpdateNotes.ts
|
|
65074
|
-
var
|
|
64257
|
+
var args120, tool$notesUpdateNotes;
|
|
65075
64258
|
var init_notesUpdateNotes2 = __esm(() => {
|
|
65076
64259
|
init_notesUpdateNotes();
|
|
65077
64260
|
init_operations();
|
|
65078
64261
|
init_tools();
|
|
65079
|
-
|
|
64262
|
+
args120 = {
|
|
65080
64263
|
request: UpdateNotesRequest$inboundSchema
|
|
65081
64264
|
};
|
|
65082
64265
|
tool$notesUpdateNotes = {
|
|
65083
64266
|
name: "notes-update-notes",
|
|
65084
64267
|
description: `Update a Note`,
|
|
65085
|
-
args:
|
|
65086
|
-
tool: async (client,
|
|
65087
|
-
const [result2, apiCall] = await notesUpdateNotes(client,
|
|
64268
|
+
args: args120,
|
|
64269
|
+
tool: async (client, args121, ctx) => {
|
|
64270
|
+
const [result2, apiCall] = await notesUpdateNotes(client, args121.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
65088
64271
|
if (!result2.ok) {
|
|
65089
64272
|
return {
|
|
65090
64273
|
content: [{ type: "text", text: result2.error.message }],
|
|
@@ -65099,9 +64282,9 @@ var init_notesUpdateNotes2 = __esm(() => {
|
|
|
65099
64282
|
|
|
65100
64283
|
// src/funcs/searchGeneralSearch.ts
|
|
65101
64284
|
function searchGeneralSearch(client, request, options) {
|
|
65102
|
-
return new APIPromise($
|
|
64285
|
+
return new APIPromise($do149(client, request, options));
|
|
65103
64286
|
}
|
|
65104
|
-
async function $
|
|
64287
|
+
async function $do149(client, request, options) {
|
|
65105
64288
|
const parsed = safeParse(request, (value) => GeneralSearchRequest$outboundSchema.parse(value), "Input validation failed");
|
|
65106
64289
|
if (!parsed.ok) {
|
|
65107
64290
|
return [parsed, { status: "invalid" }];
|
|
@@ -65185,12 +64368,12 @@ var init_searchGeneralSearch = __esm(() => {
|
|
|
65185
64368
|
});
|
|
65186
64369
|
|
|
65187
64370
|
// src/mcp-server/tools/searchGeneralSearch.ts
|
|
65188
|
-
var
|
|
64371
|
+
var args121, tool$searchGeneralSearch;
|
|
65189
64372
|
var init_searchGeneralSearch2 = __esm(() => {
|
|
65190
64373
|
init_searchGeneralSearch();
|
|
65191
64374
|
init_operations();
|
|
65192
64375
|
init_tools();
|
|
65193
|
-
|
|
64376
|
+
args121 = {
|
|
65194
64377
|
request: GeneralSearchRequest$inboundSchema
|
|
65195
64378
|
};
|
|
65196
64379
|
tool$searchGeneralSearch = {
|
|
@@ -65198,9 +64381,9 @@ var init_searchGeneralSearch2 = __esm(() => {
|
|
|
65198
64381
|
description: `Search across multiple object types
|
|
65199
64382
|
|
|
65200
64383
|
Performs a text search across jobs, companies, and materials. Returns combined results sorted by relevance.`,
|
|
65201
|
-
args:
|
|
65202
|
-
tool: async (client,
|
|
65203
|
-
const [result2, apiCall] = await searchGeneralSearch(client,
|
|
64384
|
+
args: args121,
|
|
64385
|
+
tool: async (client, args122, ctx) => {
|
|
64386
|
+
const [result2, apiCall] = await searchGeneralSearch(client, args122.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
65204
64387
|
if (!result2.ok) {
|
|
65205
64388
|
return {
|
|
65206
64389
|
content: [{ type: "text", text: result2.error.message }],
|
|
@@ -65215,9 +64398,9 @@ Performs a text search across jobs, companies, and materials. Returns combined r
|
|
|
65215
64398
|
|
|
65216
64399
|
// src/funcs/searchJobEmbeddingSearch.ts
|
|
65217
64400
|
function searchJobEmbeddingSearch(client, request, options) {
|
|
65218
|
-
return new APIPromise($
|
|
64401
|
+
return new APIPromise($do150(client, request, options));
|
|
65219
64402
|
}
|
|
65220
|
-
async function $
|
|
64403
|
+
async function $do150(client, request, options) {
|
|
65221
64404
|
const parsed = safeParse(request, (value) => JobEmbeddingSearchRequest$outboundSchema.parse(value), "Input validation failed");
|
|
65222
64405
|
if (!parsed.ok) {
|
|
65223
64406
|
return [parsed, { status: "invalid" }];
|
|
@@ -65302,12 +64485,12 @@ var init_searchJobEmbeddingSearch = __esm(() => {
|
|
|
65302
64485
|
});
|
|
65303
64486
|
|
|
65304
64487
|
// src/mcp-server/tools/searchJobEmbeddingSearch.ts
|
|
65305
|
-
var
|
|
64488
|
+
var args122, tool$searchJobEmbeddingSearch;
|
|
65306
64489
|
var init_searchJobEmbeddingSearch2 = __esm(() => {
|
|
65307
64490
|
init_searchJobEmbeddingSearch();
|
|
65308
64491
|
init_operations();
|
|
65309
64492
|
init_tools();
|
|
65310
|
-
|
|
64493
|
+
args122 = {
|
|
65311
64494
|
request: JobEmbeddingSearchRequest$inboundSchema
|
|
65312
64495
|
};
|
|
65313
64496
|
tool$searchJobEmbeddingSearch = {
|
|
@@ -65315,9 +64498,9 @@ var init_searchJobEmbeddingSearch2 = __esm(() => {
|
|
|
65315
64498
|
description: `Semantic search for jobs
|
|
65316
64499
|
|
|
65317
64500
|
Performs semantic/embedding-based search on job content. This uses AI to find jobs with similar meaning, not just exact text matches.`,
|
|
65318
|
-
args:
|
|
65319
|
-
tool: async (client,
|
|
65320
|
-
const [result2, apiCall] = await searchJobEmbeddingSearch(client,
|
|
64501
|
+
args: args122,
|
|
64502
|
+
tool: async (client, args123, ctx) => {
|
|
64503
|
+
const [result2, apiCall] = await searchJobEmbeddingSearch(client, args123.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
65321
64504
|
if (!result2.ok) {
|
|
65322
64505
|
return {
|
|
65323
64506
|
content: [{ type: "text", text: result2.error.message }],
|
|
@@ -65332,9 +64515,9 @@ Performs semantic/embedding-based search on job content. This uses AI to find jo
|
|
|
65332
64515
|
|
|
65333
64516
|
// src/funcs/searchObjectSearch.ts
|
|
65334
64517
|
function searchObjectSearch(client, request, options) {
|
|
65335
|
-
return new APIPromise($
|
|
64518
|
+
return new APIPromise($do151(client, request, options));
|
|
65336
64519
|
}
|
|
65337
|
-
async function $
|
|
64520
|
+
async function $do151(client, request, options) {
|
|
65338
64521
|
const parsed = safeParse(request, (value) => ObjectSearchRequest$outboundSchema.parse(value), "Input validation failed");
|
|
65339
64522
|
if (!parsed.ok) {
|
|
65340
64523
|
return [parsed, { status: "invalid" }];
|
|
@@ -65424,12 +64607,12 @@ var init_searchObjectSearch = __esm(() => {
|
|
|
65424
64607
|
});
|
|
65425
64608
|
|
|
65426
64609
|
// src/mcp-server/tools/searchObjectSearch.ts
|
|
65427
|
-
var
|
|
64610
|
+
var args123, tool$searchObjectSearch;
|
|
65428
64611
|
var init_searchObjectSearch2 = __esm(() => {
|
|
65429
64612
|
init_searchObjectSearch();
|
|
65430
64613
|
init_operations();
|
|
65431
64614
|
init_tools();
|
|
65432
|
-
|
|
64615
|
+
args123 = {
|
|
65433
64616
|
request: ObjectSearchRequest$inboundSchema
|
|
65434
64617
|
};
|
|
65435
64618
|
tool$searchObjectSearch = {
|
|
@@ -65437,9 +64620,9 @@ var init_searchObjectSearch2 = __esm(() => {
|
|
|
65437
64620
|
description: `Search within a specific object type
|
|
65438
64621
|
|
|
65439
64622
|
Performs a text search within a specific object type. Supported types: job, company, material, knowledgearticle, attachment, formresponse, asset, materialbundle`,
|
|
65440
|
-
args:
|
|
65441
|
-
tool: async (client,
|
|
65442
|
-
const [result2, apiCall] = await searchObjectSearch(client,
|
|
64623
|
+
args: args123,
|
|
64624
|
+
tool: async (client, args124, ctx) => {
|
|
64625
|
+
const [result2, apiCall] = await searchObjectSearch(client, args124.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
65443
64626
|
if (!result2.ok) {
|
|
65444
64627
|
return {
|
|
65445
64628
|
content: [{ type: "text", text: result2.error.message }],
|
|
@@ -65454,9 +64637,9 @@ Performs a text search within a specific object type. Supported types: job, comp
|
|
|
65454
64637
|
|
|
65455
64638
|
// src/funcs/securityRolesCreateSecurityRoles.ts
|
|
65456
64639
|
function securityRolesCreateSecurityRoles(client, request, options) {
|
|
65457
|
-
return new APIPromise($
|
|
64640
|
+
return new APIPromise($do152(client, request, options));
|
|
65458
64641
|
}
|
|
65459
|
-
async function $
|
|
64642
|
+
async function $do152(client, request, options) {
|
|
65460
64643
|
const parsed = safeParse(request, (value) => SecurityRoleInput$outboundSchema.parse(value), "Input validation failed");
|
|
65461
64644
|
if (!parsed.ok) {
|
|
65462
64645
|
return [parsed, { status: "invalid" }];
|
|
@@ -65541,12 +64724,12 @@ var init_securityRolesCreateSecurityRoles = __esm(() => {
|
|
|
65541
64724
|
});
|
|
65542
64725
|
|
|
65543
64726
|
// src/mcp-server/tools/securityRolesCreateSecurityRoles.ts
|
|
65544
|
-
var
|
|
64727
|
+
var args124, tool$securityRolesCreateSecurityRoles;
|
|
65545
64728
|
var init_securityRolesCreateSecurityRoles2 = __esm(() => {
|
|
65546
64729
|
init_securityRolesCreateSecurityRoles();
|
|
65547
64730
|
init_components();
|
|
65548
64731
|
init_tools();
|
|
65549
|
-
|
|
64732
|
+
args124 = {
|
|
65550
64733
|
request: SecurityRoleInput$inboundSchema
|
|
65551
64734
|
};
|
|
65552
64735
|
tool$securityRolesCreateSecurityRoles = {
|
|
@@ -65559,9 +64742,9 @@ var init_securityRolesCreateSecurityRoles2 = __esm(() => {
|
|
|
65559
64742
|
UUID is optional for record creation. If no UUID is supplied, a UUID will be automatically generated for the new record and returned in the \`x-record-uuid\` response header.
|
|
65560
64743
|
|
|
65561
64744
|
`,
|
|
65562
|
-
args:
|
|
65563
|
-
tool: async (client,
|
|
65564
|
-
const [result2, apiCall] = await securityRolesCreateSecurityRoles(client,
|
|
64745
|
+
args: args124,
|
|
64746
|
+
tool: async (client, args125, ctx) => {
|
|
64747
|
+
const [result2, apiCall] = await securityRolesCreateSecurityRoles(client, args125.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
65565
64748
|
if (!result2.ok) {
|
|
65566
64749
|
return {
|
|
65567
64750
|
content: [{ type: "text", text: result2.error.message }],
|
|
@@ -65576,9 +64759,9 @@ UUID is optional for record creation. If no UUID is supplied, a UUID will be aut
|
|
|
65576
64759
|
|
|
65577
64760
|
// src/funcs/securityRolesDeleteSecurityRoles.ts
|
|
65578
64761
|
function securityRolesDeleteSecurityRoles(client, request, options) {
|
|
65579
|
-
return new APIPromise($
|
|
64762
|
+
return new APIPromise($do153(client, request, options));
|
|
65580
64763
|
}
|
|
65581
|
-
async function $
|
|
64764
|
+
async function $do153(client, request, options) {
|
|
65582
64765
|
const parsed = safeParse(request, (value) => DeleteSecurityRolesRequest$outboundSchema.parse(value), "Input validation failed");
|
|
65583
64766
|
if (!parsed.ok) {
|
|
65584
64767
|
return [parsed, { status: "invalid" }];
|
|
@@ -65662,12 +64845,12 @@ var init_securityRolesDeleteSecurityRoles = __esm(() => {
|
|
|
65662
64845
|
});
|
|
65663
64846
|
|
|
65664
64847
|
// src/mcp-server/tools/securityRolesDeleteSecurityRoles.ts
|
|
65665
|
-
var
|
|
64848
|
+
var args125, tool$securityRolesDeleteSecurityRoles;
|
|
65666
64849
|
var init_securityRolesDeleteSecurityRoles2 = __esm(() => {
|
|
65667
64850
|
init_securityRolesDeleteSecurityRoles();
|
|
65668
64851
|
init_operations();
|
|
65669
64852
|
init_tools();
|
|
65670
|
-
|
|
64853
|
+
args125 = {
|
|
65671
64854
|
request: DeleteSecurityRolesRequest$inboundSchema
|
|
65672
64855
|
};
|
|
65673
64856
|
tool$securityRolesDeleteSecurityRoles = {
|
|
@@ -65679,9 +64862,9 @@ var init_securityRolesDeleteSecurityRoles2 = __esm(() => {
|
|
|
65679
64862
|
In ServiceM8, deleting a record sets its \`active\` field to \`0\`. Inactive records are still accessible on the API, but are hidden in the UI. Inactive records can be restored by setting their \`active\` field to \`1\`.
|
|
65680
64863
|
|
|
65681
64864
|
`,
|
|
65682
|
-
args:
|
|
65683
|
-
tool: async (client,
|
|
65684
|
-
const [result2, apiCall] = await securityRolesDeleteSecurityRoles(client,
|
|
64865
|
+
args: args125,
|
|
64866
|
+
tool: async (client, args126, ctx) => {
|
|
64867
|
+
const [result2, apiCall] = await securityRolesDeleteSecurityRoles(client, args126.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
65685
64868
|
if (!result2.ok) {
|
|
65686
64869
|
return {
|
|
65687
64870
|
content: [{ type: "text", text: result2.error.message }],
|
|
@@ -65696,9 +64879,9 @@ In ServiceM8, deleting a record sets its \`active\` field to \`0\`. Inactive rec
|
|
|
65696
64879
|
|
|
65697
64880
|
// src/funcs/securityRolesGetSecurityRoles.ts
|
|
65698
64881
|
function securityRolesGetSecurityRoles(client, request, options) {
|
|
65699
|
-
return new APIPromise($
|
|
64882
|
+
return new APIPromise($do154(client, request, options));
|
|
65700
64883
|
}
|
|
65701
|
-
async function $
|
|
64884
|
+
async function $do154(client, request, options) {
|
|
65702
64885
|
const parsed = safeParse(request, (value) => GetSecurityRolesRequest$outboundSchema.parse(value), "Input validation failed");
|
|
65703
64886
|
if (!parsed.ok) {
|
|
65704
64887
|
return [parsed, { status: "invalid" }];
|
|
@@ -65782,20 +64965,20 @@ var init_securityRolesGetSecurityRoles = __esm(() => {
|
|
|
65782
64965
|
});
|
|
65783
64966
|
|
|
65784
64967
|
// src/mcp-server/tools/securityRolesGetSecurityRoles.ts
|
|
65785
|
-
var
|
|
64968
|
+
var args126, tool$securityRolesGetSecurityRoles;
|
|
65786
64969
|
var init_securityRolesGetSecurityRoles2 = __esm(() => {
|
|
65787
64970
|
init_securityRolesGetSecurityRoles();
|
|
65788
64971
|
init_operations();
|
|
65789
64972
|
init_tools();
|
|
65790
|
-
|
|
64973
|
+
args126 = {
|
|
65791
64974
|
request: GetSecurityRolesRequest$inboundSchema
|
|
65792
64975
|
};
|
|
65793
64976
|
tool$securityRolesGetSecurityRoles = {
|
|
65794
64977
|
name: "security-roles-get-security-roles",
|
|
65795
64978
|
description: `Retrieve a Security Role`,
|
|
65796
|
-
args:
|
|
65797
|
-
tool: async (client,
|
|
65798
|
-
const [result2, apiCall] = await securityRolesGetSecurityRoles(client,
|
|
64979
|
+
args: args126,
|
|
64980
|
+
tool: async (client, args127, ctx) => {
|
|
64981
|
+
const [result2, apiCall] = await securityRolesGetSecurityRoles(client, args127.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
65799
64982
|
if (!result2.ok) {
|
|
65800
64983
|
return {
|
|
65801
64984
|
content: [{ type: "text", text: result2.error.message }],
|
|
@@ -65810,9 +64993,9 @@ var init_securityRolesGetSecurityRoles2 = __esm(() => {
|
|
|
65810
64993
|
|
|
65811
64994
|
// src/funcs/securityRolesListSecurityRoles.ts
|
|
65812
64995
|
function securityRolesListSecurityRoles(client, options) {
|
|
65813
|
-
return new APIPromise($
|
|
64996
|
+
return new APIPromise($do155(client, options));
|
|
65814
64997
|
}
|
|
65815
|
-
async function $
|
|
64998
|
+
async function $do155(client, options) {
|
|
65816
64999
|
const path = pathToFunc("/securityrole.json")();
|
|
65817
65000
|
const headers = new Headers(compactMap({
|
|
65818
65001
|
Accept: "application/json"
|
|
@@ -65910,9 +65093,9 @@ This endpoint supports result filtering. For more information on how to filter t
|
|
|
65910
65093
|
|
|
65911
65094
|
// src/funcs/securityRolesUpdateSecurityRoles.ts
|
|
65912
65095
|
function securityRolesUpdateSecurityRoles(client, request, options) {
|
|
65913
|
-
return new APIPromise($
|
|
65096
|
+
return new APIPromise($do156(client, request, options));
|
|
65914
65097
|
}
|
|
65915
|
-
async function $
|
|
65098
|
+
async function $do156(client, request, options) {
|
|
65916
65099
|
const parsed = safeParse(request, (value) => UpdateSecurityRolesRequest$outboundSchema.parse(value), "Input validation failed");
|
|
65917
65100
|
if (!parsed.ok) {
|
|
65918
65101
|
return [parsed, { status: "invalid" }];
|
|
@@ -65997,20 +65180,20 @@ var init_securityRolesUpdateSecurityRoles = __esm(() => {
|
|
|
65997
65180
|
});
|
|
65998
65181
|
|
|
65999
65182
|
// src/mcp-server/tools/securityRolesUpdateSecurityRoles.ts
|
|
66000
|
-
var
|
|
65183
|
+
var args127, tool$securityRolesUpdateSecurityRoles;
|
|
66001
65184
|
var init_securityRolesUpdateSecurityRoles2 = __esm(() => {
|
|
66002
65185
|
init_securityRolesUpdateSecurityRoles();
|
|
66003
65186
|
init_operations();
|
|
66004
65187
|
init_tools();
|
|
66005
|
-
|
|
65188
|
+
args127 = {
|
|
66006
65189
|
request: UpdateSecurityRolesRequest$inboundSchema
|
|
66007
65190
|
};
|
|
66008
65191
|
tool$securityRolesUpdateSecurityRoles = {
|
|
66009
65192
|
name: "security-roles-update-security-roles",
|
|
66010
65193
|
description: `Update a Security Role`,
|
|
66011
|
-
args:
|
|
66012
|
-
tool: async (client,
|
|
66013
|
-
const [result2, apiCall] = await securityRolesUpdateSecurityRoles(client,
|
|
65194
|
+
args: args127,
|
|
65195
|
+
tool: async (client, args128, ctx) => {
|
|
65196
|
+
const [result2, apiCall] = await securityRolesUpdateSecurityRoles(client, args128.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
66014
65197
|
if (!result2.ok) {
|
|
66015
65198
|
return {
|
|
66016
65199
|
content: [{ type: "text", text: result2.error.message }],
|
|
@@ -66025,9 +65208,9 @@ var init_securityRolesUpdateSecurityRoles2 = __esm(() => {
|
|
|
66025
65208
|
|
|
66026
65209
|
// src/funcs/smsTemplatesCreateSMSTemplates.ts
|
|
66027
65210
|
function smsTemplatesCreateSMSTemplates(client, request, options) {
|
|
66028
|
-
return new APIPromise($
|
|
65211
|
+
return new APIPromise($do157(client, request, options));
|
|
66029
65212
|
}
|
|
66030
|
-
async function $
|
|
65213
|
+
async function $do157(client, request, options) {
|
|
66031
65214
|
const parsed = safeParse(request, (value) => SmsTemplateInput$outboundSchema.parse(value), "Input validation failed");
|
|
66032
65215
|
if (!parsed.ok) {
|
|
66033
65216
|
return [parsed, { status: "invalid" }];
|
|
@@ -66112,12 +65295,12 @@ var init_smsTemplatesCreateSMSTemplates = __esm(() => {
|
|
|
66112
65295
|
});
|
|
66113
65296
|
|
|
66114
65297
|
// src/mcp-server/tools/smsTemplatesCreateSMSTemplates.ts
|
|
66115
|
-
var
|
|
65298
|
+
var args128, tool$smsTemplatesCreateSMSTemplates;
|
|
66116
65299
|
var init_smsTemplatesCreateSMSTemplates2 = __esm(() => {
|
|
66117
65300
|
init_smsTemplatesCreateSMSTemplates();
|
|
66118
65301
|
init_components();
|
|
66119
65302
|
init_tools();
|
|
66120
|
-
|
|
65303
|
+
args128 = {
|
|
66121
65304
|
request: SmsTemplateInput$inboundSchema
|
|
66122
65305
|
};
|
|
66123
65306
|
tool$smsTemplatesCreateSMSTemplates = {
|
|
@@ -66130,9 +65313,9 @@ var init_smsTemplatesCreateSMSTemplates2 = __esm(() => {
|
|
|
66130
65313
|
UUID is optional for record creation. If no UUID is supplied, a UUID will be automatically generated for the new record and returned in the \`x-record-uuid\` response header.
|
|
66131
65314
|
|
|
66132
65315
|
`,
|
|
66133
|
-
args:
|
|
66134
|
-
tool: async (client,
|
|
66135
|
-
const [result2, apiCall] = await smsTemplatesCreateSMSTemplates(client,
|
|
65316
|
+
args: args128,
|
|
65317
|
+
tool: async (client, args129, ctx) => {
|
|
65318
|
+
const [result2, apiCall] = await smsTemplatesCreateSMSTemplates(client, args129.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
66136
65319
|
if (!result2.ok) {
|
|
66137
65320
|
return {
|
|
66138
65321
|
content: [{ type: "text", text: result2.error.message }],
|
|
@@ -66147,9 +65330,9 @@ UUID is optional for record creation. If no UUID is supplied, a UUID will be aut
|
|
|
66147
65330
|
|
|
66148
65331
|
// src/funcs/smsTemplatesDeleteSMSTemplates.ts
|
|
66149
65332
|
function smsTemplatesDeleteSMSTemplates(client, request, options) {
|
|
66150
|
-
return new APIPromise($
|
|
65333
|
+
return new APIPromise($do158(client, request, options));
|
|
66151
65334
|
}
|
|
66152
|
-
async function $
|
|
65335
|
+
async function $do158(client, request, options) {
|
|
66153
65336
|
const parsed = safeParse(request, (value) => DeleteSMSTemplatesRequest$outboundSchema.parse(value), "Input validation failed");
|
|
66154
65337
|
if (!parsed.ok) {
|
|
66155
65338
|
return [parsed, { status: "invalid" }];
|
|
@@ -66233,12 +65416,12 @@ var init_smsTemplatesDeleteSMSTemplates = __esm(() => {
|
|
|
66233
65416
|
});
|
|
66234
65417
|
|
|
66235
65418
|
// src/mcp-server/tools/smsTemplatesDeleteSMSTemplates.ts
|
|
66236
|
-
var
|
|
65419
|
+
var args129, tool$smsTemplatesDeleteSMSTemplates;
|
|
66237
65420
|
var init_smsTemplatesDeleteSMSTemplates2 = __esm(() => {
|
|
66238
65421
|
init_smsTemplatesDeleteSMSTemplates();
|
|
66239
65422
|
init_operations();
|
|
66240
65423
|
init_tools();
|
|
66241
|
-
|
|
65424
|
+
args129 = {
|
|
66242
65425
|
request: DeleteSMSTemplatesRequest$inboundSchema
|
|
66243
65426
|
};
|
|
66244
65427
|
tool$smsTemplatesDeleteSMSTemplates = {
|
|
@@ -66250,9 +65433,9 @@ var init_smsTemplatesDeleteSMSTemplates2 = __esm(() => {
|
|
|
66250
65433
|
In ServiceM8, deleting a record sets its \`active\` field to \`0\`. Inactive records are still accessible on the API, but are hidden in the UI. Inactive records can be restored by setting their \`active\` field to \`1\`.
|
|
66251
65434
|
|
|
66252
65435
|
`,
|
|
66253
|
-
args:
|
|
66254
|
-
tool: async (client,
|
|
66255
|
-
const [result2, apiCall] = await smsTemplatesDeleteSMSTemplates(client,
|
|
65436
|
+
args: args129,
|
|
65437
|
+
tool: async (client, args130, ctx) => {
|
|
65438
|
+
const [result2, apiCall] = await smsTemplatesDeleteSMSTemplates(client, args130.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
66256
65439
|
if (!result2.ok) {
|
|
66257
65440
|
return {
|
|
66258
65441
|
content: [{ type: "text", text: result2.error.message }],
|
|
@@ -66267,9 +65450,9 @@ In ServiceM8, deleting a record sets its \`active\` field to \`0\`. Inactive rec
|
|
|
66267
65450
|
|
|
66268
65451
|
// src/funcs/smsTemplatesGetSMSTemplates.ts
|
|
66269
65452
|
function smsTemplatesGetSMSTemplates(client, request, options) {
|
|
66270
|
-
return new APIPromise($
|
|
65453
|
+
return new APIPromise($do159(client, request, options));
|
|
66271
65454
|
}
|
|
66272
|
-
async function $
|
|
65455
|
+
async function $do159(client, request, options) {
|
|
66273
65456
|
const parsed = safeParse(request, (value) => GetSMSTemplatesRequest$outboundSchema.parse(value), "Input validation failed");
|
|
66274
65457
|
if (!parsed.ok) {
|
|
66275
65458
|
return [parsed, { status: "invalid" }];
|
|
@@ -66353,20 +65536,20 @@ var init_smsTemplatesGetSMSTemplates = __esm(() => {
|
|
|
66353
65536
|
});
|
|
66354
65537
|
|
|
66355
65538
|
// src/mcp-server/tools/smsTemplatesGetSMSTemplates.ts
|
|
66356
|
-
var
|
|
65539
|
+
var args130, tool$smsTemplatesGetSMSTemplates;
|
|
66357
65540
|
var init_smsTemplatesGetSMSTemplates2 = __esm(() => {
|
|
66358
65541
|
init_smsTemplatesGetSMSTemplates();
|
|
66359
65542
|
init_operations();
|
|
66360
65543
|
init_tools();
|
|
66361
|
-
|
|
65544
|
+
args130 = {
|
|
66362
65545
|
request: GetSMSTemplatesRequest$inboundSchema
|
|
66363
65546
|
};
|
|
66364
65547
|
tool$smsTemplatesGetSMSTemplates = {
|
|
66365
65548
|
name: "SMS-templates-get-SMS-templates",
|
|
66366
65549
|
description: `Retrieve a SMS Template`,
|
|
66367
|
-
args:
|
|
66368
|
-
tool: async (client,
|
|
66369
|
-
const [result2, apiCall] = await smsTemplatesGetSMSTemplates(client,
|
|
65550
|
+
args: args130,
|
|
65551
|
+
tool: async (client, args131, ctx) => {
|
|
65552
|
+
const [result2, apiCall] = await smsTemplatesGetSMSTemplates(client, args131.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
66370
65553
|
if (!result2.ok) {
|
|
66371
65554
|
return {
|
|
66372
65555
|
content: [{ type: "text", text: result2.error.message }],
|
|
@@ -66381,9 +65564,9 @@ var init_smsTemplatesGetSMSTemplates2 = __esm(() => {
|
|
|
66381
65564
|
|
|
66382
65565
|
// src/funcs/smsTemplatesListSMSTemplates.ts
|
|
66383
65566
|
function smsTemplatesListSMSTemplates(client, options) {
|
|
66384
|
-
return new APIPromise($
|
|
65567
|
+
return new APIPromise($do160(client, options));
|
|
66385
65568
|
}
|
|
66386
|
-
async function $
|
|
65569
|
+
async function $do160(client, options) {
|
|
66387
65570
|
const path = pathToFunc("/smstemplate.json")();
|
|
66388
65571
|
const headers = new Headers(compactMap({
|
|
66389
65572
|
Accept: "application/json"
|
|
@@ -66481,9 +65664,9 @@ This endpoint supports result filtering. For more information on how to filter t
|
|
|
66481
65664
|
|
|
66482
65665
|
// src/funcs/smsTemplatesUpdateSMSTemplates.ts
|
|
66483
65666
|
function smsTemplatesUpdateSMSTemplates(client, request, options) {
|
|
66484
|
-
return new APIPromise($
|
|
65667
|
+
return new APIPromise($do161(client, request, options));
|
|
66485
65668
|
}
|
|
66486
|
-
async function $
|
|
65669
|
+
async function $do161(client, request, options) {
|
|
66487
65670
|
const parsed = safeParse(request, (value) => UpdateSMSTemplatesRequest$outboundSchema.parse(value), "Input validation failed");
|
|
66488
65671
|
if (!parsed.ok) {
|
|
66489
65672
|
return [parsed, { status: "invalid" }];
|
|
@@ -66568,20 +65751,20 @@ var init_smsTemplatesUpdateSMSTemplates = __esm(() => {
|
|
|
66568
65751
|
});
|
|
66569
65752
|
|
|
66570
65753
|
// src/mcp-server/tools/smsTemplatesUpdateSMSTemplates.ts
|
|
66571
|
-
var
|
|
65754
|
+
var args131, tool$smsTemplatesUpdateSMSTemplates;
|
|
66572
65755
|
var init_smsTemplatesUpdateSMSTemplates2 = __esm(() => {
|
|
66573
65756
|
init_smsTemplatesUpdateSMSTemplates();
|
|
66574
65757
|
init_operations();
|
|
66575
65758
|
init_tools();
|
|
66576
|
-
|
|
65759
|
+
args131 = {
|
|
66577
65760
|
request: UpdateSMSTemplatesRequest$inboundSchema
|
|
66578
65761
|
};
|
|
66579
65762
|
tool$smsTemplatesUpdateSMSTemplates = {
|
|
66580
65763
|
name: "SMS-templates-update-SMS-templates",
|
|
66581
65764
|
description: `Update a SMS Template`,
|
|
66582
|
-
args:
|
|
66583
|
-
tool: async (client,
|
|
66584
|
-
const [result2, apiCall] = await smsTemplatesUpdateSMSTemplates(client,
|
|
65765
|
+
args: args131,
|
|
65766
|
+
tool: async (client, args132, ctx) => {
|
|
65767
|
+
const [result2, apiCall] = await smsTemplatesUpdateSMSTemplates(client, args132.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
66585
65768
|
if (!result2.ok) {
|
|
66586
65769
|
return {
|
|
66587
65770
|
content: [{ type: "text", text: result2.error.message }],
|
|
@@ -66596,9 +65779,9 @@ var init_smsTemplatesUpdateSMSTemplates2 = __esm(() => {
|
|
|
66596
65779
|
|
|
66597
65780
|
// src/funcs/staffMembersCreateStaffMembers.ts
|
|
66598
65781
|
function staffMembersCreateStaffMembers(client, request, options) {
|
|
66599
|
-
return new APIPromise($
|
|
65782
|
+
return new APIPromise($do162(client, request, options));
|
|
66600
65783
|
}
|
|
66601
|
-
async function $
|
|
65784
|
+
async function $do162(client, request, options) {
|
|
66602
65785
|
const parsed = safeParse(request, (value) => StaffInput$outboundSchema.parse(value), "Input validation failed");
|
|
66603
65786
|
if (!parsed.ok) {
|
|
66604
65787
|
return [parsed, { status: "invalid" }];
|
|
@@ -66683,12 +65866,12 @@ var init_staffMembersCreateStaffMembers = __esm(() => {
|
|
|
66683
65866
|
});
|
|
66684
65867
|
|
|
66685
65868
|
// src/mcp-server/tools/staffMembersCreateStaffMembers.ts
|
|
66686
|
-
var
|
|
65869
|
+
var args132, tool$staffMembersCreateStaffMembers;
|
|
66687
65870
|
var init_staffMembersCreateStaffMembers2 = __esm(() => {
|
|
66688
65871
|
init_staffMembersCreateStaffMembers();
|
|
66689
65872
|
init_components();
|
|
66690
65873
|
init_tools();
|
|
66691
|
-
|
|
65874
|
+
args132 = {
|
|
66692
65875
|
request: StaffInput$inboundSchema
|
|
66693
65876
|
};
|
|
66694
65877
|
tool$staffMembersCreateStaffMembers = {
|
|
@@ -66706,9 +65889,9 @@ This endpoint requires the following OAuth scope **manage_staff**.
|
|
|
66706
65889
|
UUID is optional for record creation. If no UUID is supplied, a UUID will be automatically generated for the new record and returned in the \`x-record-uuid\` response header.
|
|
66707
65890
|
|
|
66708
65891
|
`,
|
|
66709
|
-
args:
|
|
66710
|
-
tool: async (client,
|
|
66711
|
-
const [result2, apiCall] = await staffMembersCreateStaffMembers(client,
|
|
65892
|
+
args: args132,
|
|
65893
|
+
tool: async (client, args133, ctx) => {
|
|
65894
|
+
const [result2, apiCall] = await staffMembersCreateStaffMembers(client, args133.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
66712
65895
|
if (!result2.ok) {
|
|
66713
65896
|
return {
|
|
66714
65897
|
content: [{ type: "text", text: result2.error.message }],
|
|
@@ -66723,9 +65906,9 @@ UUID is optional for record creation. If no UUID is supplied, a UUID will be aut
|
|
|
66723
65906
|
|
|
66724
65907
|
// src/funcs/staffMembersDeleteStaffMembers.ts
|
|
66725
65908
|
function staffMembersDeleteStaffMembers(client, request, options) {
|
|
66726
|
-
return new APIPromise($
|
|
65909
|
+
return new APIPromise($do163(client, request, options));
|
|
66727
65910
|
}
|
|
66728
|
-
async function $
|
|
65911
|
+
async function $do163(client, request, options) {
|
|
66729
65912
|
const parsed = safeParse(request, (value) => DeleteStaffMembersRequest$outboundSchema.parse(value), "Input validation failed");
|
|
66730
65913
|
if (!parsed.ok) {
|
|
66731
65914
|
return [parsed, { status: "invalid" }];
|
|
@@ -66809,12 +65992,12 @@ var init_staffMembersDeleteStaffMembers = __esm(() => {
|
|
|
66809
65992
|
});
|
|
66810
65993
|
|
|
66811
65994
|
// src/mcp-server/tools/staffMembersDeleteStaffMembers.ts
|
|
66812
|
-
var
|
|
65995
|
+
var args133, tool$staffMembersDeleteStaffMembers;
|
|
66813
65996
|
var init_staffMembersDeleteStaffMembers2 = __esm(() => {
|
|
66814
65997
|
init_staffMembersDeleteStaffMembers();
|
|
66815
65998
|
init_operations();
|
|
66816
65999
|
init_tools();
|
|
66817
|
-
|
|
66000
|
+
args133 = {
|
|
66818
66001
|
request: DeleteStaffMembersRequest$inboundSchema
|
|
66819
66002
|
};
|
|
66820
66003
|
tool$staffMembersDeleteStaffMembers = {
|
|
@@ -66831,9 +66014,9 @@ In ServiceM8, deleting a record sets its \`active\` field to \`0\`. Inactive rec
|
|
|
66831
66014
|
This endpoint requires the following OAuth scope **manage_staff**.
|
|
66832
66015
|
|
|
66833
66016
|
`,
|
|
66834
|
-
args:
|
|
66835
|
-
tool: async (client,
|
|
66836
|
-
const [result2, apiCall] = await staffMembersDeleteStaffMembers(client,
|
|
66017
|
+
args: args133,
|
|
66018
|
+
tool: async (client, args134, ctx) => {
|
|
66019
|
+
const [result2, apiCall] = await staffMembersDeleteStaffMembers(client, args134.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
66837
66020
|
if (!result2.ok) {
|
|
66838
66021
|
return {
|
|
66839
66022
|
content: [{ type: "text", text: result2.error.message }],
|
|
@@ -66848,9 +66031,9 @@ This endpoint requires the following OAuth scope **manage_staff**.
|
|
|
66848
66031
|
|
|
66849
66032
|
// src/funcs/staffMembersGetStaffMembers.ts
|
|
66850
66033
|
function staffMembersGetStaffMembers(client, request, options) {
|
|
66851
|
-
return new APIPromise($
|
|
66034
|
+
return new APIPromise($do164(client, request, options));
|
|
66852
66035
|
}
|
|
66853
|
-
async function $
|
|
66036
|
+
async function $do164(client, request, options) {
|
|
66854
66037
|
const parsed = safeParse(request, (value) => GetStaffMembersRequest$outboundSchema.parse(value), "Input validation failed");
|
|
66855
66038
|
if (!parsed.ok) {
|
|
66856
66039
|
return [parsed, { status: "invalid" }];
|
|
@@ -66934,12 +66117,12 @@ var init_staffMembersGetStaffMembers = __esm(() => {
|
|
|
66934
66117
|
});
|
|
66935
66118
|
|
|
66936
66119
|
// src/mcp-server/tools/staffMembersGetStaffMembers.ts
|
|
66937
|
-
var
|
|
66120
|
+
var args134, tool$staffMembersGetStaffMembers;
|
|
66938
66121
|
var init_staffMembersGetStaffMembers2 = __esm(() => {
|
|
66939
66122
|
init_staffMembersGetStaffMembers();
|
|
66940
66123
|
init_operations();
|
|
66941
66124
|
init_tools();
|
|
66942
|
-
|
|
66125
|
+
args134 = {
|
|
66943
66126
|
request: GetStaffMembersRequest$inboundSchema
|
|
66944
66127
|
};
|
|
66945
66128
|
tool$staffMembersGetStaffMembers = {
|
|
@@ -66952,9 +66135,9 @@ var init_staffMembersGetStaffMembers2 = __esm(() => {
|
|
|
66952
66135
|
This endpoint requires the following OAuth scope **read_staff**.
|
|
66953
66136
|
|
|
66954
66137
|
`,
|
|
66955
|
-
args:
|
|
66956
|
-
tool: async (client,
|
|
66957
|
-
const [result2, apiCall] = await staffMembersGetStaffMembers(client,
|
|
66138
|
+
args: args134,
|
|
66139
|
+
tool: async (client, args135, ctx) => {
|
|
66140
|
+
const [result2, apiCall] = await staffMembersGetStaffMembers(client, args135.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
66958
66141
|
if (!result2.ok) {
|
|
66959
66142
|
return {
|
|
66960
66143
|
content: [{ type: "text", text: result2.error.message }],
|
|
@@ -66969,9 +66152,9 @@ This endpoint requires the following OAuth scope **read_staff**.
|
|
|
66969
66152
|
|
|
66970
66153
|
// src/funcs/staffMembersListStaffMembers.ts
|
|
66971
66154
|
function staffMembersListStaffMembers(client, options) {
|
|
66972
|
-
return new APIPromise($
|
|
66155
|
+
return new APIPromise($do165(client, options));
|
|
66973
66156
|
}
|
|
66974
|
-
async function $
|
|
66157
|
+
async function $do165(client, options) {
|
|
66975
66158
|
const path = pathToFunc("/staff.json")();
|
|
66976
66159
|
const headers = new Headers(compactMap({
|
|
66977
66160
|
Accept: "application/json"
|
|
@@ -67074,9 +66257,9 @@ This endpoint requires the following OAuth scope **read_staff**.
|
|
|
67074
66257
|
|
|
67075
66258
|
// src/funcs/staffMembersUpdateStaffMembers.ts
|
|
67076
66259
|
function staffMembersUpdateStaffMembers(client, request, options) {
|
|
67077
|
-
return new APIPromise($
|
|
66260
|
+
return new APIPromise($do166(client, request, options));
|
|
67078
66261
|
}
|
|
67079
|
-
async function $
|
|
66262
|
+
async function $do166(client, request, options) {
|
|
67080
66263
|
const parsed = safeParse(request, (value) => UpdateStaffMembersRequest$outboundSchema.parse(value), "Input validation failed");
|
|
67081
66264
|
if (!parsed.ok) {
|
|
67082
66265
|
return [parsed, { status: "invalid" }];
|
|
@@ -67161,12 +66344,12 @@ var init_staffMembersUpdateStaffMembers = __esm(() => {
|
|
|
67161
66344
|
});
|
|
67162
66345
|
|
|
67163
66346
|
// src/mcp-server/tools/staffMembersUpdateStaffMembers.ts
|
|
67164
|
-
var
|
|
66347
|
+
var args135, tool$staffMembersUpdateStaffMembers;
|
|
67165
66348
|
var init_staffMembersUpdateStaffMembers2 = __esm(() => {
|
|
67166
66349
|
init_staffMembersUpdateStaffMembers();
|
|
67167
66350
|
init_operations();
|
|
67168
66351
|
init_tools();
|
|
67169
|
-
|
|
66352
|
+
args135 = {
|
|
67170
66353
|
request: UpdateStaffMembersRequest$inboundSchema
|
|
67171
66354
|
};
|
|
67172
66355
|
tool$staffMembersUpdateStaffMembers = {
|
|
@@ -67179,9 +66362,9 @@ var init_staffMembersUpdateStaffMembers2 = __esm(() => {
|
|
|
67179
66362
|
This endpoint requires the following OAuth scope **manage_staff**.
|
|
67180
66363
|
|
|
67181
66364
|
`,
|
|
67182
|
-
args:
|
|
67183
|
-
tool: async (client,
|
|
67184
|
-
const [result2, apiCall] = await staffMembersUpdateStaffMembers(client,
|
|
66365
|
+
args: args135,
|
|
66366
|
+
tool: async (client, args136, ctx) => {
|
|
66367
|
+
const [result2, apiCall] = await staffMembersUpdateStaffMembers(client, args136.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
67185
66368
|
if (!result2.ok) {
|
|
67186
66369
|
return {
|
|
67187
66370
|
content: [{ type: "text", text: result2.error.message }],
|
|
@@ -67196,9 +66379,9 @@ This endpoint requires the following OAuth scope **manage_staff**.
|
|
|
67196
66379
|
|
|
67197
66380
|
// src/funcs/staffMessagesCreateStaffMessages.ts
|
|
67198
66381
|
function staffMessagesCreateStaffMessages(client, request, options) {
|
|
67199
|
-
return new APIPromise($
|
|
66382
|
+
return new APIPromise($do167(client, request, options));
|
|
67200
66383
|
}
|
|
67201
|
-
async function $
|
|
66384
|
+
async function $do167(client, request, options) {
|
|
67202
66385
|
const parsed = safeParse(request, (value) => StaffMessageInput$outboundSchema.parse(value), "Input validation failed");
|
|
67203
66386
|
if (!parsed.ok) {
|
|
67204
66387
|
return [parsed, { status: "invalid" }];
|
|
@@ -67283,12 +66466,12 @@ var init_staffMessagesCreateStaffMessages = __esm(() => {
|
|
|
67283
66466
|
});
|
|
67284
66467
|
|
|
67285
66468
|
// src/mcp-server/tools/staffMessagesCreateStaffMessages.ts
|
|
67286
|
-
var
|
|
66469
|
+
var args136, tool$staffMessagesCreateStaffMessages;
|
|
67287
66470
|
var init_staffMessagesCreateStaffMessages2 = __esm(() => {
|
|
67288
66471
|
init_staffMessagesCreateStaffMessages();
|
|
67289
66472
|
init_components();
|
|
67290
66473
|
init_tools();
|
|
67291
|
-
|
|
66474
|
+
args136 = {
|
|
67292
66475
|
request: StaffMessageInput$inboundSchema
|
|
67293
66476
|
};
|
|
67294
66477
|
tool$staffMessagesCreateStaffMessages = {
|
|
@@ -67301,9 +66484,9 @@ var init_staffMessagesCreateStaffMessages2 = __esm(() => {
|
|
|
67301
66484
|
UUID is optional for record creation. If no UUID is supplied, a UUID will be automatically generated for the new record and returned in the \`x-record-uuid\` response header.
|
|
67302
66485
|
|
|
67303
66486
|
`,
|
|
67304
|
-
args:
|
|
67305
|
-
tool: async (client,
|
|
67306
|
-
const [result2, apiCall] = await staffMessagesCreateStaffMessages(client,
|
|
66487
|
+
args: args136,
|
|
66488
|
+
tool: async (client, args137, ctx) => {
|
|
66489
|
+
const [result2, apiCall] = await staffMessagesCreateStaffMessages(client, args137.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
67307
66490
|
if (!result2.ok) {
|
|
67308
66491
|
return {
|
|
67309
66492
|
content: [{ type: "text", text: result2.error.message }],
|
|
@@ -67318,9 +66501,9 @@ UUID is optional for record creation. If no UUID is supplied, a UUID will be aut
|
|
|
67318
66501
|
|
|
67319
66502
|
// src/funcs/staffMessagesDeleteStaffMessages.ts
|
|
67320
66503
|
function staffMessagesDeleteStaffMessages(client, request, options) {
|
|
67321
|
-
return new APIPromise($
|
|
66504
|
+
return new APIPromise($do168(client, request, options));
|
|
67322
66505
|
}
|
|
67323
|
-
async function $
|
|
66506
|
+
async function $do168(client, request, options) {
|
|
67324
66507
|
const parsed = safeParse(request, (value) => DeleteStaffMessagesRequest$outboundSchema.parse(value), "Input validation failed");
|
|
67325
66508
|
if (!parsed.ok) {
|
|
67326
66509
|
return [parsed, { status: "invalid" }];
|
|
@@ -67404,12 +66587,12 @@ var init_staffMessagesDeleteStaffMessages = __esm(() => {
|
|
|
67404
66587
|
});
|
|
67405
66588
|
|
|
67406
66589
|
// src/mcp-server/tools/staffMessagesDeleteStaffMessages.ts
|
|
67407
|
-
var
|
|
66590
|
+
var args137, tool$staffMessagesDeleteStaffMessages;
|
|
67408
66591
|
var init_staffMessagesDeleteStaffMessages2 = __esm(() => {
|
|
67409
66592
|
init_staffMessagesDeleteStaffMessages();
|
|
67410
66593
|
init_operations();
|
|
67411
66594
|
init_tools();
|
|
67412
|
-
|
|
66595
|
+
args137 = {
|
|
67413
66596
|
request: DeleteStaffMessagesRequest$inboundSchema
|
|
67414
66597
|
};
|
|
67415
66598
|
tool$staffMessagesDeleteStaffMessages = {
|
|
@@ -67421,9 +66604,9 @@ var init_staffMessagesDeleteStaffMessages2 = __esm(() => {
|
|
|
67421
66604
|
In ServiceM8, deleting a record sets its \`active\` field to \`0\`. Inactive records are still accessible on the API, but are hidden in the UI. Inactive records can be restored by setting their \`active\` field to \`1\`.
|
|
67422
66605
|
|
|
67423
66606
|
`,
|
|
67424
|
-
args:
|
|
67425
|
-
tool: async (client,
|
|
67426
|
-
const [result2, apiCall] = await staffMessagesDeleteStaffMessages(client,
|
|
66607
|
+
args: args137,
|
|
66608
|
+
tool: async (client, args138, ctx) => {
|
|
66609
|
+
const [result2, apiCall] = await staffMessagesDeleteStaffMessages(client, args138.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
67427
66610
|
if (!result2.ok) {
|
|
67428
66611
|
return {
|
|
67429
66612
|
content: [{ type: "text", text: result2.error.message }],
|
|
@@ -67438,9 +66621,9 @@ In ServiceM8, deleting a record sets its \`active\` field to \`0\`. Inactive rec
|
|
|
67438
66621
|
|
|
67439
66622
|
// src/funcs/staffMessagesGetStaffMessages.ts
|
|
67440
66623
|
function staffMessagesGetStaffMessages(client, request, options) {
|
|
67441
|
-
return new APIPromise($
|
|
66624
|
+
return new APIPromise($do169(client, request, options));
|
|
67442
66625
|
}
|
|
67443
|
-
async function $
|
|
66626
|
+
async function $do169(client, request, options) {
|
|
67444
66627
|
const parsed = safeParse(request, (value) => GetStaffMessagesRequest$outboundSchema.parse(value), "Input validation failed");
|
|
67445
66628
|
if (!parsed.ok) {
|
|
67446
66629
|
return [parsed, { status: "invalid" }];
|
|
@@ -67524,20 +66707,20 @@ var init_staffMessagesGetStaffMessages = __esm(() => {
|
|
|
67524
66707
|
});
|
|
67525
66708
|
|
|
67526
66709
|
// src/mcp-server/tools/staffMessagesGetStaffMessages.ts
|
|
67527
|
-
var
|
|
66710
|
+
var args138, tool$staffMessagesGetStaffMessages;
|
|
67528
66711
|
var init_staffMessagesGetStaffMessages2 = __esm(() => {
|
|
67529
66712
|
init_staffMessagesGetStaffMessages();
|
|
67530
66713
|
init_operations();
|
|
67531
66714
|
init_tools();
|
|
67532
|
-
|
|
66715
|
+
args138 = {
|
|
67533
66716
|
request: GetStaffMessagesRequest$inboundSchema
|
|
67534
66717
|
};
|
|
67535
66718
|
tool$staffMessagesGetStaffMessages = {
|
|
67536
66719
|
name: "staff-messages-get-staff-messages",
|
|
67537
66720
|
description: `Retrieve a Staff Message`,
|
|
67538
|
-
args:
|
|
67539
|
-
tool: async (client,
|
|
67540
|
-
const [result2, apiCall] = await staffMessagesGetStaffMessages(client,
|
|
66721
|
+
args: args138,
|
|
66722
|
+
tool: async (client, args139, ctx) => {
|
|
66723
|
+
const [result2, apiCall] = await staffMessagesGetStaffMessages(client, args139.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
67541
66724
|
if (!result2.ok) {
|
|
67542
66725
|
return {
|
|
67543
66726
|
content: [{ type: "text", text: result2.error.message }],
|
|
@@ -67552,9 +66735,9 @@ var init_staffMessagesGetStaffMessages2 = __esm(() => {
|
|
|
67552
66735
|
|
|
67553
66736
|
// src/funcs/staffMessagesListStaffMessages.ts
|
|
67554
66737
|
function staffMessagesListStaffMessages(client, options) {
|
|
67555
|
-
return new APIPromise($
|
|
66738
|
+
return new APIPromise($do170(client, options));
|
|
67556
66739
|
}
|
|
67557
|
-
async function $
|
|
66740
|
+
async function $do170(client, options) {
|
|
67558
66741
|
const path = pathToFunc("/staffmessage.json")();
|
|
67559
66742
|
const headers = new Headers(compactMap({
|
|
67560
66743
|
Accept: "application/json"
|
|
@@ -67652,9 +66835,9 @@ This endpoint supports result filtering. For more information on how to filter t
|
|
|
67652
66835
|
|
|
67653
66836
|
// src/funcs/staffMessagesUpdateStaffMessages.ts
|
|
67654
66837
|
function staffMessagesUpdateStaffMessages(client, request, options) {
|
|
67655
|
-
return new APIPromise($
|
|
66838
|
+
return new APIPromise($do171(client, request, options));
|
|
67656
66839
|
}
|
|
67657
|
-
async function $
|
|
66840
|
+
async function $do171(client, request, options) {
|
|
67658
66841
|
const parsed = safeParse(request, (value) => UpdateStaffMessagesRequest$outboundSchema.parse(value), "Input validation failed");
|
|
67659
66842
|
if (!parsed.ok) {
|
|
67660
66843
|
return [parsed, { status: "invalid" }];
|
|
@@ -67739,20 +66922,20 @@ var init_staffMessagesUpdateStaffMessages = __esm(() => {
|
|
|
67739
66922
|
});
|
|
67740
66923
|
|
|
67741
66924
|
// src/mcp-server/tools/staffMessagesUpdateStaffMessages.ts
|
|
67742
|
-
var
|
|
66925
|
+
var args139, tool$staffMessagesUpdateStaffMessages;
|
|
67743
66926
|
var init_staffMessagesUpdateStaffMessages2 = __esm(() => {
|
|
67744
66927
|
init_staffMessagesUpdateStaffMessages();
|
|
67745
66928
|
init_operations();
|
|
67746
66929
|
init_tools();
|
|
67747
|
-
|
|
66930
|
+
args139 = {
|
|
67748
66931
|
request: UpdateStaffMessagesRequest$inboundSchema
|
|
67749
66932
|
};
|
|
67750
66933
|
tool$staffMessagesUpdateStaffMessages = {
|
|
67751
66934
|
name: "staff-messages-update-staff-messages",
|
|
67752
66935
|
description: `Update a Staff Message`,
|
|
67753
|
-
args:
|
|
67754
|
-
tool: async (client,
|
|
67755
|
-
const [result2, apiCall] = await staffMessagesUpdateStaffMessages(client,
|
|
66936
|
+
args: args139,
|
|
66937
|
+
tool: async (client, args140, ctx) => {
|
|
66938
|
+
const [result2, apiCall] = await staffMessagesUpdateStaffMessages(client, args140.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
67756
66939
|
if (!result2.ok) {
|
|
67757
66940
|
return {
|
|
67758
66941
|
content: [{ type: "text", text: result2.error.message }],
|
|
@@ -67767,9 +66950,9 @@ var init_staffMessagesUpdateStaffMessages2 = __esm(() => {
|
|
|
67767
66950
|
|
|
67768
66951
|
// src/funcs/tasksCreateTasks.ts
|
|
67769
66952
|
function tasksCreateTasks(client, request, options) {
|
|
67770
|
-
return new APIPromise($
|
|
66953
|
+
return new APIPromise($do172(client, request, options));
|
|
67771
66954
|
}
|
|
67772
|
-
async function $
|
|
66955
|
+
async function $do172(client, request, options) {
|
|
67773
66956
|
const parsed = safeParse(request, (value) => TaskInput$outboundSchema.parse(value), "Input validation failed");
|
|
67774
66957
|
if (!parsed.ok) {
|
|
67775
66958
|
return [parsed, { status: "invalid" }];
|
|
@@ -67854,12 +67037,12 @@ var init_tasksCreateTasks = __esm(() => {
|
|
|
67854
67037
|
});
|
|
67855
67038
|
|
|
67856
67039
|
// src/mcp-server/tools/tasksCreateTasks.ts
|
|
67857
|
-
var
|
|
67040
|
+
var args140, tool$tasksCreateTasks;
|
|
67858
67041
|
var init_tasksCreateTasks2 = __esm(() => {
|
|
67859
67042
|
init_tasksCreateTasks();
|
|
67860
67043
|
init_components();
|
|
67861
67044
|
init_tools();
|
|
67862
|
-
|
|
67045
|
+
args140 = {
|
|
67863
67046
|
request: TaskInput$inboundSchema
|
|
67864
67047
|
};
|
|
67865
67048
|
tool$tasksCreateTasks = {
|
|
@@ -67877,9 +67060,9 @@ This endpoint requires the following OAuth scope **manage_tasks**.
|
|
|
67877
67060
|
UUID is optional for record creation. If no UUID is supplied, a UUID will be automatically generated for the new record and returned in the \`x-record-uuid\` response header.
|
|
67878
67061
|
|
|
67879
67062
|
`,
|
|
67880
|
-
args:
|
|
67881
|
-
tool: async (client,
|
|
67882
|
-
const [result2, apiCall] = await tasksCreateTasks(client,
|
|
67063
|
+
args: args140,
|
|
67064
|
+
tool: async (client, args141, ctx) => {
|
|
67065
|
+
const [result2, apiCall] = await tasksCreateTasks(client, args141.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
67883
67066
|
if (!result2.ok) {
|
|
67884
67067
|
return {
|
|
67885
67068
|
content: [{ type: "text", text: result2.error.message }],
|
|
@@ -67894,9 +67077,9 @@ UUID is optional for record creation. If no UUID is supplied, a UUID will be aut
|
|
|
67894
67077
|
|
|
67895
67078
|
// src/funcs/tasksDeleteTasks.ts
|
|
67896
67079
|
function tasksDeleteTasks(client, request, options) {
|
|
67897
|
-
return new APIPromise($
|
|
67080
|
+
return new APIPromise($do173(client, request, options));
|
|
67898
67081
|
}
|
|
67899
|
-
async function $
|
|
67082
|
+
async function $do173(client, request, options) {
|
|
67900
67083
|
const parsed = safeParse(request, (value) => DeleteTasksRequest$outboundSchema.parse(value), "Input validation failed");
|
|
67901
67084
|
if (!parsed.ok) {
|
|
67902
67085
|
return [parsed, { status: "invalid" }];
|
|
@@ -67980,12 +67163,12 @@ var init_tasksDeleteTasks = __esm(() => {
|
|
|
67980
67163
|
});
|
|
67981
67164
|
|
|
67982
67165
|
// src/mcp-server/tools/tasksDeleteTasks.ts
|
|
67983
|
-
var
|
|
67166
|
+
var args141, tool$tasksDeleteTasks;
|
|
67984
67167
|
var init_tasksDeleteTasks2 = __esm(() => {
|
|
67985
67168
|
init_tasksDeleteTasks();
|
|
67986
67169
|
init_operations();
|
|
67987
67170
|
init_tools();
|
|
67988
|
-
|
|
67171
|
+
args141 = {
|
|
67989
67172
|
request: DeleteTasksRequest$inboundSchema
|
|
67990
67173
|
};
|
|
67991
67174
|
tool$tasksDeleteTasks = {
|
|
@@ -68002,9 +67185,9 @@ In ServiceM8, deleting a record sets its \`active\` field to \`0\`. Inactive rec
|
|
|
68002
67185
|
This endpoint requires the following OAuth scope **manage_tasks**.
|
|
68003
67186
|
|
|
68004
67187
|
`,
|
|
68005
|
-
args:
|
|
68006
|
-
tool: async (client,
|
|
68007
|
-
const [result2, apiCall] = await tasksDeleteTasks(client,
|
|
67188
|
+
args: args141,
|
|
67189
|
+
tool: async (client, args142, ctx) => {
|
|
67190
|
+
const [result2, apiCall] = await tasksDeleteTasks(client, args142.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
68008
67191
|
if (!result2.ok) {
|
|
68009
67192
|
return {
|
|
68010
67193
|
content: [{ type: "text", text: result2.error.message }],
|
|
@@ -68019,9 +67202,9 @@ This endpoint requires the following OAuth scope **manage_tasks**.
|
|
|
68019
67202
|
|
|
68020
67203
|
// src/funcs/tasksGetTasks.ts
|
|
68021
67204
|
function tasksGetTasks(client, request, options) {
|
|
68022
|
-
return new APIPromise($
|
|
67205
|
+
return new APIPromise($do174(client, request, options));
|
|
68023
67206
|
}
|
|
68024
|
-
async function $
|
|
67207
|
+
async function $do174(client, request, options) {
|
|
68025
67208
|
const parsed = safeParse(request, (value) => GetTasksRequest$outboundSchema.parse(value), "Input validation failed");
|
|
68026
67209
|
if (!parsed.ok) {
|
|
68027
67210
|
return [parsed, { status: "invalid" }];
|
|
@@ -68105,12 +67288,12 @@ var init_tasksGetTasks = __esm(() => {
|
|
|
68105
67288
|
});
|
|
68106
67289
|
|
|
68107
67290
|
// src/mcp-server/tools/tasksGetTasks.ts
|
|
68108
|
-
var
|
|
67291
|
+
var args142, tool$tasksGetTasks;
|
|
68109
67292
|
var init_tasksGetTasks2 = __esm(() => {
|
|
68110
67293
|
init_tasksGetTasks();
|
|
68111
67294
|
init_operations();
|
|
68112
67295
|
init_tools();
|
|
68113
|
-
|
|
67296
|
+
args142 = {
|
|
68114
67297
|
request: GetTasksRequest$inboundSchema
|
|
68115
67298
|
};
|
|
68116
67299
|
tool$tasksGetTasks = {
|
|
@@ -68123,9 +67306,9 @@ var init_tasksGetTasks2 = __esm(() => {
|
|
|
68123
67306
|
This endpoint requires the following OAuth scope **read_tasks**.
|
|
68124
67307
|
|
|
68125
67308
|
`,
|
|
68126
|
-
args:
|
|
68127
|
-
tool: async (client,
|
|
68128
|
-
const [result2, apiCall] = await tasksGetTasks(client,
|
|
67309
|
+
args: args142,
|
|
67310
|
+
tool: async (client, args143, ctx) => {
|
|
67311
|
+
const [result2, apiCall] = await tasksGetTasks(client, args143.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
68129
67312
|
if (!result2.ok) {
|
|
68130
67313
|
return {
|
|
68131
67314
|
content: [{ type: "text", text: result2.error.message }],
|
|
@@ -68140,9 +67323,9 @@ This endpoint requires the following OAuth scope **read_tasks**.
|
|
|
68140
67323
|
|
|
68141
67324
|
// src/funcs/tasksListTasks.ts
|
|
68142
67325
|
function tasksListTasks(client, options) {
|
|
68143
|
-
return new APIPromise($
|
|
67326
|
+
return new APIPromise($do175(client, options));
|
|
68144
67327
|
}
|
|
68145
|
-
async function $
|
|
67328
|
+
async function $do175(client, options) {
|
|
68146
67329
|
const path = pathToFunc("/task.json")();
|
|
68147
67330
|
const headers = new Headers(compactMap({
|
|
68148
67331
|
Accept: "application/json"
|
|
@@ -68245,9 +67428,9 @@ This endpoint requires the following OAuth scope **read_tasks**.
|
|
|
68245
67428
|
|
|
68246
67429
|
// src/funcs/tasksUpdateTasks.ts
|
|
68247
67430
|
function tasksUpdateTasks(client, request, options) {
|
|
68248
|
-
return new APIPromise($
|
|
67431
|
+
return new APIPromise($do176(client, request, options));
|
|
68249
67432
|
}
|
|
68250
|
-
async function $
|
|
67433
|
+
async function $do176(client, request, options) {
|
|
68251
67434
|
const parsed = safeParse(request, (value) => UpdateTasksRequest$outboundSchema.parse(value), "Input validation failed");
|
|
68252
67435
|
if (!parsed.ok) {
|
|
68253
67436
|
return [parsed, { status: "invalid" }];
|
|
@@ -68332,12 +67515,12 @@ var init_tasksUpdateTasks = __esm(() => {
|
|
|
68332
67515
|
});
|
|
68333
67516
|
|
|
68334
67517
|
// src/mcp-server/tools/tasksUpdateTasks.ts
|
|
68335
|
-
var
|
|
67518
|
+
var args143, tool$tasksUpdateTasks;
|
|
68336
67519
|
var init_tasksUpdateTasks2 = __esm(() => {
|
|
68337
67520
|
init_tasksUpdateTasks();
|
|
68338
67521
|
init_operations();
|
|
68339
67522
|
init_tools();
|
|
68340
|
-
|
|
67523
|
+
args143 = {
|
|
68341
67524
|
request: UpdateTasksRequest$inboundSchema
|
|
68342
67525
|
};
|
|
68343
67526
|
tool$tasksUpdateTasks = {
|
|
@@ -68350,9 +67533,9 @@ var init_tasksUpdateTasks2 = __esm(() => {
|
|
|
68350
67533
|
This endpoint requires the following OAuth scope **manage_tasks**.
|
|
68351
67534
|
|
|
68352
67535
|
`,
|
|
68353
|
-
args:
|
|
68354
|
-
tool: async (client,
|
|
68355
|
-
const [result2, apiCall] = await tasksUpdateTasks(client,
|
|
67536
|
+
args: args143,
|
|
67537
|
+
tool: async (client, args144, ctx) => {
|
|
67538
|
+
const [result2, apiCall] = await tasksUpdateTasks(client, args144.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
68356
67539
|
if (!result2.ok) {
|
|
68357
67540
|
return {
|
|
68358
67541
|
content: [{ type: "text", text: result2.error.message }],
|
|
@@ -68367,9 +67550,9 @@ This endpoint requires the following OAuth scope **manage_tasks**.
|
|
|
68367
67550
|
|
|
68368
67551
|
// src/funcs/taxRatesCreateTaxRates.ts
|
|
68369
67552
|
function taxRatesCreateTaxRates(client, request, options) {
|
|
68370
|
-
return new APIPromise($
|
|
67553
|
+
return new APIPromise($do177(client, request, options));
|
|
68371
67554
|
}
|
|
68372
|
-
async function $
|
|
67555
|
+
async function $do177(client, request, options) {
|
|
68373
67556
|
const parsed = safeParse(request, (value) => TaxRateInput$outboundSchema.parse(value), "Input validation failed");
|
|
68374
67557
|
if (!parsed.ok) {
|
|
68375
67558
|
return [parsed, { status: "invalid" }];
|
|
@@ -68454,12 +67637,12 @@ var init_taxRatesCreateTaxRates = __esm(() => {
|
|
|
68454
67637
|
});
|
|
68455
67638
|
|
|
68456
67639
|
// src/mcp-server/tools/taxRatesCreateTaxRates.ts
|
|
68457
|
-
var
|
|
67640
|
+
var args144, tool$taxRatesCreateTaxRates;
|
|
68458
67641
|
var init_taxRatesCreateTaxRates2 = __esm(() => {
|
|
68459
67642
|
init_taxRatesCreateTaxRates();
|
|
68460
67643
|
init_components();
|
|
68461
67644
|
init_tools();
|
|
68462
|
-
|
|
67645
|
+
args144 = {
|
|
68463
67646
|
request: TaxRateInput$inboundSchema
|
|
68464
67647
|
};
|
|
68465
67648
|
tool$taxRatesCreateTaxRates = {
|
|
@@ -68472,9 +67655,9 @@ var init_taxRatesCreateTaxRates2 = __esm(() => {
|
|
|
68472
67655
|
UUID is optional for record creation. If no UUID is supplied, a UUID will be automatically generated for the new record and returned in the \`x-record-uuid\` response header.
|
|
68473
67656
|
|
|
68474
67657
|
`,
|
|
68475
|
-
args:
|
|
68476
|
-
tool: async (client,
|
|
68477
|
-
const [result2, apiCall] = await taxRatesCreateTaxRates(client,
|
|
67658
|
+
args: args144,
|
|
67659
|
+
tool: async (client, args145, ctx) => {
|
|
67660
|
+
const [result2, apiCall] = await taxRatesCreateTaxRates(client, args145.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
68478
67661
|
if (!result2.ok) {
|
|
68479
67662
|
return {
|
|
68480
67663
|
content: [{ type: "text", text: result2.error.message }],
|
|
@@ -68489,9 +67672,9 @@ UUID is optional for record creation. If no UUID is supplied, a UUID will be aut
|
|
|
68489
67672
|
|
|
68490
67673
|
// src/funcs/taxRatesDeleteTaxRates.ts
|
|
68491
67674
|
function taxRatesDeleteTaxRates(client, request, options) {
|
|
68492
|
-
return new APIPromise($
|
|
67675
|
+
return new APIPromise($do178(client, request, options));
|
|
68493
67676
|
}
|
|
68494
|
-
async function $
|
|
67677
|
+
async function $do178(client, request, options) {
|
|
68495
67678
|
const parsed = safeParse(request, (value) => DeleteTaxRatesRequest$outboundSchema.parse(value), "Input validation failed");
|
|
68496
67679
|
if (!parsed.ok) {
|
|
68497
67680
|
return [parsed, { status: "invalid" }];
|
|
@@ -68575,12 +67758,12 @@ var init_taxRatesDeleteTaxRates = __esm(() => {
|
|
|
68575
67758
|
});
|
|
68576
67759
|
|
|
68577
67760
|
// src/mcp-server/tools/taxRatesDeleteTaxRates.ts
|
|
68578
|
-
var
|
|
67761
|
+
var args145, tool$taxRatesDeleteTaxRates;
|
|
68579
67762
|
var init_taxRatesDeleteTaxRates2 = __esm(() => {
|
|
68580
67763
|
init_taxRatesDeleteTaxRates();
|
|
68581
67764
|
init_operations();
|
|
68582
67765
|
init_tools();
|
|
68583
|
-
|
|
67766
|
+
args145 = {
|
|
68584
67767
|
request: DeleteTaxRatesRequest$inboundSchema
|
|
68585
67768
|
};
|
|
68586
67769
|
tool$taxRatesDeleteTaxRates = {
|
|
@@ -68592,9 +67775,9 @@ var init_taxRatesDeleteTaxRates2 = __esm(() => {
|
|
|
68592
67775
|
In ServiceM8, deleting a record sets its \`active\` field to \`0\`. Inactive records are still accessible on the API, but are hidden in the UI. Inactive records can be restored by setting their \`active\` field to \`1\`.
|
|
68593
67776
|
|
|
68594
67777
|
`,
|
|
68595
|
-
args:
|
|
68596
|
-
tool: async (client,
|
|
68597
|
-
const [result2, apiCall] = await taxRatesDeleteTaxRates(client,
|
|
67778
|
+
args: args145,
|
|
67779
|
+
tool: async (client, args146, ctx) => {
|
|
67780
|
+
const [result2, apiCall] = await taxRatesDeleteTaxRates(client, args146.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
68598
67781
|
if (!result2.ok) {
|
|
68599
67782
|
return {
|
|
68600
67783
|
content: [{ type: "text", text: result2.error.message }],
|
|
@@ -68609,9 +67792,9 @@ In ServiceM8, deleting a record sets its \`active\` field to \`0\`. Inactive rec
|
|
|
68609
67792
|
|
|
68610
67793
|
// src/funcs/taxRatesGetTaxRates.ts
|
|
68611
67794
|
function taxRatesGetTaxRates(client, request, options) {
|
|
68612
|
-
return new APIPromise($
|
|
67795
|
+
return new APIPromise($do179(client, request, options));
|
|
68613
67796
|
}
|
|
68614
|
-
async function $
|
|
67797
|
+
async function $do179(client, request, options) {
|
|
68615
67798
|
const parsed = safeParse(request, (value) => GetTaxRatesRequest$outboundSchema.parse(value), "Input validation failed");
|
|
68616
67799
|
if (!parsed.ok) {
|
|
68617
67800
|
return [parsed, { status: "invalid" }];
|
|
@@ -68695,20 +67878,20 @@ var init_taxRatesGetTaxRates = __esm(() => {
|
|
|
68695
67878
|
});
|
|
68696
67879
|
|
|
68697
67880
|
// src/mcp-server/tools/taxRatesGetTaxRates.ts
|
|
68698
|
-
var
|
|
67881
|
+
var args146, tool$taxRatesGetTaxRates;
|
|
68699
67882
|
var init_taxRatesGetTaxRates2 = __esm(() => {
|
|
68700
67883
|
init_taxRatesGetTaxRates();
|
|
68701
67884
|
init_operations();
|
|
68702
67885
|
init_tools();
|
|
68703
|
-
|
|
67886
|
+
args146 = {
|
|
68704
67887
|
request: GetTaxRatesRequest$inboundSchema
|
|
68705
67888
|
};
|
|
68706
67889
|
tool$taxRatesGetTaxRates = {
|
|
68707
67890
|
name: "tax-rates-get-tax-rates",
|
|
68708
67891
|
description: `Retrieve a Tax Rate`,
|
|
68709
|
-
args:
|
|
68710
|
-
tool: async (client,
|
|
68711
|
-
const [result2, apiCall] = await taxRatesGetTaxRates(client,
|
|
67892
|
+
args: args146,
|
|
67893
|
+
tool: async (client, args147, ctx) => {
|
|
67894
|
+
const [result2, apiCall] = await taxRatesGetTaxRates(client, args147.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
68712
67895
|
if (!result2.ok) {
|
|
68713
67896
|
return {
|
|
68714
67897
|
content: [{ type: "text", text: result2.error.message }],
|
|
@@ -68723,9 +67906,9 @@ var init_taxRatesGetTaxRates2 = __esm(() => {
|
|
|
68723
67906
|
|
|
68724
67907
|
// src/funcs/taxRatesListTaxRates.ts
|
|
68725
67908
|
function taxRatesListTaxRates(client, options) {
|
|
68726
|
-
return new APIPromise($
|
|
67909
|
+
return new APIPromise($do180(client, options));
|
|
68727
67910
|
}
|
|
68728
|
-
async function $
|
|
67911
|
+
async function $do180(client, options) {
|
|
68729
67912
|
const path = pathToFunc("/taxrate.json")();
|
|
68730
67913
|
const headers = new Headers(compactMap({
|
|
68731
67914
|
Accept: "application/json"
|
|
@@ -68823,9 +68006,9 @@ This endpoint supports result filtering. For more information on how to filter t
|
|
|
68823
68006
|
|
|
68824
68007
|
// src/funcs/taxRatesUpdateTaxRates.ts
|
|
68825
68008
|
function taxRatesUpdateTaxRates(client, request, options) {
|
|
68826
|
-
return new APIPromise($
|
|
68009
|
+
return new APIPromise($do181(client, request, options));
|
|
68827
68010
|
}
|
|
68828
|
-
async function $
|
|
68011
|
+
async function $do181(client, request, options) {
|
|
68829
68012
|
const parsed = safeParse(request, (value) => UpdateTaxRatesRequest$outboundSchema.parse(value), "Input validation failed");
|
|
68830
68013
|
if (!parsed.ok) {
|
|
68831
68014
|
return [parsed, { status: "invalid" }];
|
|
@@ -68910,20 +68093,20 @@ var init_taxRatesUpdateTaxRates = __esm(() => {
|
|
|
68910
68093
|
});
|
|
68911
68094
|
|
|
68912
68095
|
// src/mcp-server/tools/taxRatesUpdateTaxRates.ts
|
|
68913
|
-
var
|
|
68096
|
+
var args147, tool$taxRatesUpdateTaxRates;
|
|
68914
68097
|
var init_taxRatesUpdateTaxRates2 = __esm(() => {
|
|
68915
68098
|
init_taxRatesUpdateTaxRates();
|
|
68916
68099
|
init_operations();
|
|
68917
68100
|
init_tools();
|
|
68918
|
-
|
|
68101
|
+
args147 = {
|
|
68919
68102
|
request: UpdateTaxRatesRequest$inboundSchema
|
|
68920
68103
|
};
|
|
68921
68104
|
tool$taxRatesUpdateTaxRates = {
|
|
68922
68105
|
name: "tax-rates-update-tax-rates",
|
|
68923
68106
|
description: `Update a Tax Rate`,
|
|
68924
|
-
args:
|
|
68925
|
-
tool: async (client,
|
|
68926
|
-
const [result2, apiCall] = await taxRatesUpdateTaxRates(client,
|
|
68107
|
+
args: args147,
|
|
68108
|
+
tool: async (client, args148, ctx) => {
|
|
68109
|
+
const [result2, apiCall] = await taxRatesUpdateTaxRates(client, args148.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
68927
68110
|
if (!result2.ok) {
|
|
68928
68111
|
return {
|
|
68929
68112
|
content: [{ type: "text", text: result2.error.message }],
|
|
@@ -68938,9 +68121,9 @@ var init_taxRatesUpdateTaxRates2 = __esm(() => {
|
|
|
68938
68121
|
|
|
68939
68122
|
// src/funcs/vendorsGetVendors.ts
|
|
68940
68123
|
function vendorsGetVendors(client, request, options) {
|
|
68941
|
-
return new APIPromise($
|
|
68124
|
+
return new APIPromise($do182(client, request, options));
|
|
68942
68125
|
}
|
|
68943
|
-
async function $
|
|
68126
|
+
async function $do182(client, request, options) {
|
|
68944
68127
|
const parsed = safeParse(request, (value) => GetVendorsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
68945
68128
|
if (!parsed.ok) {
|
|
68946
68129
|
return [parsed, { status: "invalid" }];
|
|
@@ -69024,12 +68207,12 @@ var init_vendorsGetVendors = __esm(() => {
|
|
|
69024
68207
|
});
|
|
69025
68208
|
|
|
69026
68209
|
// src/mcp-server/tools/vendorsGetVendors.ts
|
|
69027
|
-
var
|
|
68210
|
+
var args148, tool$vendorsGetVendors;
|
|
69028
68211
|
var init_vendorsGetVendors2 = __esm(() => {
|
|
69029
68212
|
init_vendorsGetVendors();
|
|
69030
68213
|
init_operations();
|
|
69031
68214
|
init_tools();
|
|
69032
|
-
|
|
68215
|
+
args148 = {
|
|
69033
68216
|
request: GetVendorsRequest$inboundSchema
|
|
69034
68217
|
};
|
|
69035
68218
|
tool$vendorsGetVendors = {
|
|
@@ -69044,9 +68227,9 @@ Vendor account information
|
|
|
69044
68227
|
This endpoint requires the following OAuth scope **vendor**.
|
|
69045
68228
|
|
|
69046
68229
|
`,
|
|
69047
|
-
args:
|
|
69048
|
-
tool: async (client,
|
|
69049
|
-
const [result2, apiCall] = await vendorsGetVendors(client,
|
|
68230
|
+
args: args148,
|
|
68231
|
+
tool: async (client, args149, ctx) => {
|
|
68232
|
+
const [result2, apiCall] = await vendorsGetVendors(client, args149.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
69050
68233
|
if (!result2.ok) {
|
|
69051
68234
|
return {
|
|
69052
68235
|
content: [{ type: "text", text: result2.error.message }],
|
|
@@ -69061,9 +68244,9 @@ This endpoint requires the following OAuth scope **vendor**.
|
|
|
69061
68244
|
|
|
69062
68245
|
// src/funcs/vendorsListVendors.ts
|
|
69063
68246
|
function vendorsListVendors(client, options) {
|
|
69064
|
-
return new APIPromise($
|
|
68247
|
+
return new APIPromise($do183(client, options));
|
|
69065
68248
|
}
|
|
69066
|
-
async function $
|
|
68249
|
+
async function $do183(client, options) {
|
|
69067
68250
|
const path = pathToFunc("/vendor.json")();
|
|
69068
68251
|
const headers = new Headers(compactMap({
|
|
69069
68252
|
Accept: "application/json"
|
|
@@ -69168,9 +68351,9 @@ This endpoint requires the following OAuth scope **vendor**.
|
|
|
69168
68351
|
|
|
69169
68352
|
// src/funcs/vendorsUpdateVendors.ts
|
|
69170
68353
|
function vendorsUpdateVendors(client, request, options) {
|
|
69171
|
-
return new APIPromise($
|
|
68354
|
+
return new APIPromise($do184(client, request, options));
|
|
69172
68355
|
}
|
|
69173
|
-
async function $
|
|
68356
|
+
async function $do184(client, request, options) {
|
|
69174
68357
|
const parsed = safeParse(request, (value) => UpdateVendorsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
69175
68358
|
if (!parsed.ok) {
|
|
69176
68359
|
return [parsed, { status: "invalid" }];
|
|
@@ -69255,12 +68438,12 @@ var init_vendorsUpdateVendors = __esm(() => {
|
|
|
69255
68438
|
});
|
|
69256
68439
|
|
|
69257
68440
|
// src/mcp-server/tools/vendorsUpdateVendors.ts
|
|
69258
|
-
var
|
|
68441
|
+
var args149, tool$vendorsUpdateVendors;
|
|
69259
68442
|
var init_vendorsUpdateVendors2 = __esm(() => {
|
|
69260
68443
|
init_vendorsUpdateVendors();
|
|
69261
68444
|
init_operations();
|
|
69262
68445
|
init_tools();
|
|
69263
|
-
|
|
68446
|
+
args149 = {
|
|
69264
68447
|
request: UpdateVendorsRequest$inboundSchema
|
|
69265
68448
|
};
|
|
69266
68449
|
tool$vendorsUpdateVendors = {
|
|
@@ -69270,9 +68453,9 @@ var init_vendorsUpdateVendors2 = __esm(() => {
|
|
|
69270
68453
|
Vendor account information
|
|
69271
68454
|
|
|
69272
68455
|
`,
|
|
69273
|
-
args:
|
|
69274
|
-
tool: async (client,
|
|
69275
|
-
const [result2, apiCall] = await vendorsUpdateVendors(client,
|
|
68456
|
+
args: args149,
|
|
68457
|
+
tool: async (client, args150, ctx) => {
|
|
68458
|
+
const [result2, apiCall] = await vendorsUpdateVendors(client, args150.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
69276
68459
|
if (!result2.ok) {
|
|
69277
68460
|
return {
|
|
69278
68461
|
content: [{ type: "text", text: result2.error.message }],
|
|
@@ -69289,7 +68472,7 @@ Vendor account information
|
|
|
69289
68472
|
function createMCPServer(deps) {
|
|
69290
68473
|
const server = new McpServer({
|
|
69291
68474
|
name: "ServiceM8",
|
|
69292
|
-
version: "0.
|
|
68475
|
+
version: "0.9.0"
|
|
69293
68476
|
});
|
|
69294
68477
|
const client = new ServiceM8Core({
|
|
69295
68478
|
security: deps.security,
|
|
@@ -69372,14 +68555,6 @@ function createMCPServer(deps) {
|
|
|
69372
68555
|
tool(tool$formResponsesGetFormResponses);
|
|
69373
68556
|
tool(tool$formResponsesUpdateFormResponses);
|
|
69374
68557
|
tool(tool$formResponsesDeleteFormResponses);
|
|
69375
|
-
tool(tool$inboxListInboxMessages);
|
|
69376
|
-
tool(tool$inboxGetInboxMessage);
|
|
69377
|
-
tool(tool$inboxMarkInboxMessageAsRead);
|
|
69378
|
-
tool(tool$inboxArchiveInboxMessage);
|
|
69379
|
-
tool(tool$inboxSnoozeInboxMessage);
|
|
69380
|
-
tool(tool$inboxConvertInboxMessageToJob);
|
|
69381
|
-
tool(tool$inboxAttachInboxMessageToJob);
|
|
69382
|
-
tool(tool$inboxAddNoteToInboxMessage);
|
|
69383
68558
|
tool(tool$jobsListJobs);
|
|
69384
68559
|
tool(tool$jobsCreateJobs);
|
|
69385
68560
|
tool(tool$jobsGetJobs);
|
|
@@ -69420,12 +68595,6 @@ function createMCPServer(deps) {
|
|
|
69420
68595
|
tool(tool$jobPaymentsGetJobPayments);
|
|
69421
68596
|
tool(tool$jobPaymentsUpdateJobPayments);
|
|
69422
68597
|
tool(tool$jobPaymentsDeleteJobPayments);
|
|
69423
|
-
tool(tool$jobTemplatesListJobTemplates);
|
|
69424
|
-
tool(tool$jobTemplatesCreateJobTemplates);
|
|
69425
|
-
tool(tool$jobTemplatesGetJobTemplates);
|
|
69426
|
-
tool(tool$jobTemplatesUpdateJobTemplates);
|
|
69427
|
-
tool(tool$jobTemplatesDeleteJobTemplates);
|
|
69428
|
-
tool(tool$jobTemplatesCreateJobFromTemplate);
|
|
69429
68598
|
tool(tool$knowledgeArticlesListKnowledgeArticles);
|
|
69430
68599
|
tool(tool$knowledgeArticlesCreateKnowledgeArticles);
|
|
69431
68600
|
tool(tool$knowledgeArticlesGetKnowledgeArticles);
|
|
@@ -69489,6 +68658,15 @@ function createMCPServer(deps) {
|
|
|
69489
68658
|
tool(tool$vendorsListVendors);
|
|
69490
68659
|
tool(tool$vendorsGetVendors);
|
|
69491
68660
|
tool(tool$vendorsUpdateVendors);
|
|
68661
|
+
tool(tool$inboxListInboxMessages);
|
|
68662
|
+
tool(tool$inboxGetInboxMessage);
|
|
68663
|
+
tool(tool$inboxMarkInboxMessageAsRead);
|
|
68664
|
+
tool(tool$inboxArchiveInboxMessage);
|
|
68665
|
+
tool(tool$inboxSnoozeInboxMessage);
|
|
68666
|
+
tool(tool$inboxConvertInboxMessageToJob);
|
|
68667
|
+
tool(tool$inboxAttachInboxMessageToJob);
|
|
68668
|
+
tool(tool$inboxAddNoteToInboxMessage);
|
|
68669
|
+
tool(tool$jobTemplatesCreateJobFromTemplate);
|
|
69492
68670
|
tool(tool$searchGeneralSearch);
|
|
69493
68671
|
tool(tool$searchObjectSearch);
|
|
69494
68672
|
tool(tool$searchJobEmbeddingSearch);
|
|
@@ -69627,11 +68805,6 @@ var init_server2 = __esm(() => {
|
|
|
69627
68805
|
init_jobsListJobs2();
|
|
69628
68806
|
init_jobsUpdateJobs2();
|
|
69629
68807
|
init_jobTemplatesCreateJobFromTemplate2();
|
|
69630
|
-
init_jobTemplatesCreateJobTemplates2();
|
|
69631
|
-
init_jobTemplatesDeleteJobTemplates2();
|
|
69632
|
-
init_jobTemplatesGetJobTemplates2();
|
|
69633
|
-
init_jobTemplatesListJobTemplates2();
|
|
69634
|
-
init_jobTemplatesUpdateJobTemplates2();
|
|
69635
68808
|
init_knowledgeArticlesCreateKnowledgeArticles2();
|
|
69636
68809
|
init_knowledgeArticlesDeleteKnowledgeArticles2();
|
|
69637
68810
|
init_knowledgeArticlesGetKnowledgeArticles2();
|
|
@@ -70870,7 +70043,7 @@ var routes = an({
|
|
|
70870
70043
|
var app = He(routes, {
|
|
70871
70044
|
name: "mcp",
|
|
70872
70045
|
versionInfo: {
|
|
70873
|
-
currentVersion: "0.
|
|
70046
|
+
currentVersion: "0.9.0"
|
|
70874
70047
|
}
|
|
70875
70048
|
});
|
|
70876
70049
|
zt(app, process3.argv.slice(2), buildContext(process3));
|
|
@@ -70878,5 +70051,5 @@ export {
|
|
|
70878
70051
|
app
|
|
70879
70052
|
};
|
|
70880
70053
|
|
|
70881
|
-
//# debugId=
|
|
70054
|
+
//# debugId=5665A48F639EA5E364756E2164756E21
|
|
70882
70055
|
//# sourceMappingURL=mcp-server.js.map
|