@moovio/sdk 0.14.24 → 0.14.26
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/bin/mcp-server.js +292 -228
- package/bin/mcp-server.js.map +20 -19
- package/examples/package-lock.json +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/lib/security.d.ts.map +1 -1
- package/lib/security.js.map +1 -1
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/server.js +1 -1
- package/models/components/index.d.ts +3 -2
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +3 -2
- package/models/components/index.js.map +1 -1
- package/models/components/webhookdata.d.ts +5 -2
- package/models/components/webhookdata.d.ts.map +1 -1
- package/models/components/webhookdata.js +9 -0
- package/models/components/webhookdata.js.map +1 -1
- package/models/components/webhookdataticketcreated.d.ts +31 -0
- package/models/components/webhookdataticketcreated.d.ts.map +1 -0
- package/models/components/{countrieserrors.js → webhookdataticketcreated.js} +21 -19
- package/models/components/webhookdataticketcreated.js.map +1 -0
- package/models/components/webhookdataticketmessageadded.d.ts +31 -0
- package/models/components/webhookdataticketmessageadded.d.ts.map +1 -0
- package/models/components/{capabilitieserror.js → webhookdataticketmessageadded.js} +21 -19
- package/models/components/webhookdataticketmessageadded.js.map +1 -0
- package/models/components/webhookdataticketupdated.d.ts +34 -0
- package/models/components/webhookdataticketupdated.d.ts.map +1 -0
- package/models/components/webhookdataticketupdated.js +74 -0
- package/models/components/webhookdataticketupdated.js.map +1 -0
- package/models/components/webhookeventtype.d.ts +9 -0
- package/models/components/webhookeventtype.d.ts.map +1 -1
- package/models/components/webhookeventtype.js +3 -0
- package/models/components/webhookeventtype.js.map +1 -1
- package/models/errors/addcapabilitieserror.d.ts +12 -4
- package/models/errors/addcapabilitieserror.d.ts.map +1 -1
- package/models/errors/addcapabilitieserror.js +6 -3
- package/models/errors/addcapabilitieserror.js.map +1 -1
- package/models/errors/assigncountrieserror.d.ts +9 -4
- package/models/errors/assigncountrieserror.d.ts.map +1 -1
- package/models/errors/assigncountrieserror.js +3 -4
- package/models/errors/assigncountrieserror.js.map +1 -1
- package/models/errors/filevalidationerror.d.ts +3 -0
- package/models/errors/filevalidationerror.d.ts.map +1 -1
- package/models/errors/filevalidationerror.js +13 -1
- package/models/errors/filevalidationerror.js.map +1 -1
- package/models/errors/patchaccounterror.d.ts +3 -0
- package/models/errors/patchaccounterror.d.ts.map +1 -1
- package/models/errors/patchaccounterror.js +4 -0
- package/models/errors/patchaccounterror.js.map +1 -1
- package/models/errors/upsertunderwritingerror.d.ts +3 -0
- package/models/errors/upsertunderwritingerror.d.ts.map +1 -1
- package/models/errors/upsertunderwritingerror.js +4 -0
- package/models/errors/upsertunderwritingerror.js.map +1 -1
- package/package.json +1 -1
- package/src/lib/config.ts +3 -3
- package/src/lib/security.ts +4 -1
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/models/components/index.ts +3 -2
- package/src/models/components/webhookdata.ts +30 -0
- package/src/models/components/webhookdataticketcreated.ts +70 -0
- package/src/models/components/webhookdataticketmessageadded.ts +72 -0
- package/src/models/components/webhookdataticketupdated.ts +79 -0
- package/src/models/components/webhookeventtype.ts +3 -0
- package/src/models/errors/addcapabilitieserror.ts +11 -6
- package/src/models/errors/assigncountrieserror.ts +6 -7
- package/src/models/errors/filevalidationerror.ts +24 -7
- package/src/models/errors/patchaccounterror.ts +6 -0
- package/src/models/errors/upsertunderwritingerror.ts +6 -0
- package/models/components/capabilitieserror.d.ts +0 -33
- package/models/components/capabilitieserror.d.ts.map +0 -1
- package/models/components/capabilitieserror.js.map +0 -1
- package/models/components/countrieserrors.d.ts +0 -33
- package/models/components/countrieserrors.d.ts.map +0 -1
- package/models/components/countrieserrors.js.map +0 -1
- package/src/models/components/capabilitieserror.ts +0 -66
- package/src/models/components/countrieserrors.ts +0 -64
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"capabilitieserror.d.ts","sourceRoot":"","sources":["../../src/models/components/capabilitieserror.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE,MAAM,MAAM,iBAAiB,GAAG;IAC9B,YAAY,CAAC,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,GAAG,SAAS,CAAC;CACpD,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,+BAA+B,EAAE,CAAC,CAAC,OAAO,CACrD,iBAAiB,EACjB,CAAC,CAAC,UAAU,EACZ,OAAO,CAGP,CAAC;AAEH,gBAAgB;AAChB,MAAM,MAAM,0BAA0B,GAAG;IACvC,YAAY,CAAC,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,GAAG,SAAS,CAAC;CACpD,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,gCAAgC,EAAE,CAAC,CAAC,OAAO,CACtD,0BAA0B,EAC1B,CAAC,CAAC,UAAU,EACZ,iBAAiB,CAGjB,CAAC;AAEH;;;GAGG;AACH,yBAAiB,kBAAkB,CAAC;IAClC,iEAAiE;IAC1D,MAAM,aAAa,qDAAkC,CAAC;IAC7D,kEAAkE;IAC3D,MAAM,cAAc,wEAAmC,CAAC;IAC/D,4DAA4D;IAC5D,KAAY,QAAQ,GAAG,0BAA0B,CAAC;CACnD;AAED,wBAAgB,uBAAuB,CACrC,iBAAiB,EAAE,iBAAiB,GACnC,MAAM,CAIR;AAED,wBAAgB,yBAAyB,CACvC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,iBAAiB,EAAE,kBAAkB,CAAC,CAMxD"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"capabilitieserror.js","sourceRoot":"","sources":["../../src/models/components/capabilitieserror.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA+CH,0DAMC;AAED,8DAQC;AA7DD,uCAAyB;AACzB,qDAAiD;AAQjD,gBAAgB;AACH,QAAA,+BAA+B,GAIxC,CAAC,CAAC,MAAM,CAAC;IACX,YAAY,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;CAC9C,CAAC,CAAC;AAOH,gBAAgB;AACH,QAAA,gCAAgC,GAIzC,CAAC,CAAC,MAAM,CAAC;IACX,YAAY,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;CAC9C,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,kBAAkB,CAOlC;AAPD,WAAiB,kBAAkB;IACjC,iEAAiE;IACpD,gCAAa,GAAG,uCAA+B,CAAC;IAC7D,kEAAkE;IACrD,iCAAc,GAAG,wCAAgC,CAAC;AAGjE,CAAC,EAPgB,kBAAkB,kCAAlB,kBAAkB,QAOlC;AAED,SAAgB,uBAAuB,CACrC,iBAAoC;IAEpC,OAAO,IAAI,CAAC,SAAS,CACnB,wCAAgC,CAAC,KAAK,CAAC,iBAAiB,CAAC,CAC1D,CAAC;AACJ,CAAC;AAED,SAAgB,yBAAyB,CACvC,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,uCAA+B,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC3D,+CAA+C,CAChD,CAAC;AACJ,CAAC"}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import * as z from "zod";
|
|
2
|
-
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
|
-
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
|
-
export type CountriesErrors = {
|
|
5
|
-
countries: {
|
|
6
|
-
[k: string]: string;
|
|
7
|
-
};
|
|
8
|
-
};
|
|
9
|
-
/** @internal */
|
|
10
|
-
export declare const CountriesErrors$inboundSchema: z.ZodType<CountriesErrors, z.ZodTypeDef, unknown>;
|
|
11
|
-
/** @internal */
|
|
12
|
-
export type CountriesErrors$Outbound = {
|
|
13
|
-
countries: {
|
|
14
|
-
[k: string]: string;
|
|
15
|
-
};
|
|
16
|
-
};
|
|
17
|
-
/** @internal */
|
|
18
|
-
export declare const CountriesErrors$outboundSchema: z.ZodType<CountriesErrors$Outbound, z.ZodTypeDef, CountriesErrors>;
|
|
19
|
-
/**
|
|
20
|
-
* @internal
|
|
21
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
22
|
-
*/
|
|
23
|
-
export declare namespace CountriesErrors$ {
|
|
24
|
-
/** @deprecated use `CountriesErrors$inboundSchema` instead. */
|
|
25
|
-
const inboundSchema: z.ZodType<CountriesErrors, z.ZodTypeDef, unknown>;
|
|
26
|
-
/** @deprecated use `CountriesErrors$outboundSchema` instead. */
|
|
27
|
-
const outboundSchema: z.ZodType<CountriesErrors$Outbound, z.ZodTypeDef, CountriesErrors>;
|
|
28
|
-
/** @deprecated use `CountriesErrors$Outbound` instead. */
|
|
29
|
-
type Outbound = CountriesErrors$Outbound;
|
|
30
|
-
}
|
|
31
|
-
export declare function countriesErrorsToJSON(countriesErrors: CountriesErrors): string;
|
|
32
|
-
export declare function countriesErrorsFromJSON(jsonString: string): SafeParseResult<CountriesErrors, SDKValidationError>;
|
|
33
|
-
//# sourceMappingURL=countrieserrors.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"countrieserrors.d.ts","sourceRoot":"","sources":["../../src/models/components/countrieserrors.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE,MAAM,MAAM,eAAe,GAAG;IAC5B,SAAS,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAC;CACpC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,6BAA6B,EAAE,CAAC,CAAC,OAAO,CACnD,eAAe,EACf,CAAC,CAAC,UAAU,EACZ,OAAO,CAGP,CAAC;AAEH,gBAAgB;AAChB,MAAM,MAAM,wBAAwB,GAAG;IACrC,SAAS,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAC;CACpC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,8BAA8B,EAAE,CAAC,CAAC,OAAO,CACpD,wBAAwB,EACxB,CAAC,CAAC,UAAU,EACZ,eAAe,CAGf,CAAC;AAEH;;;GAGG;AACH,yBAAiB,gBAAgB,CAAC;IAChC,+DAA+D;IACxD,MAAM,aAAa,mDAAgC,CAAC;IAC3D,gEAAgE;IACzD,MAAM,cAAc,oEAAiC,CAAC;IAC7D,0DAA0D;IAC1D,KAAY,QAAQ,GAAG,wBAAwB,CAAC;CACjD;AAED,wBAAgB,qBAAqB,CACnC,eAAe,EAAE,eAAe,GAC/B,MAAM,CAER;AAED,wBAAgB,uBAAuB,CACrC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,eAAe,EAAE,kBAAkB,CAAC,CAMtD"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"countrieserrors.js","sourceRoot":"","sources":["../../src/models/components/countrieserrors.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA+CH,sDAIC;AAED,0DAQC;AA3DD,uCAAyB;AACzB,qDAAiD;AAQjD,gBAAgB;AACH,QAAA,6BAA6B,GAItC,CAAC,CAAC,MAAM,CAAC;IACX,SAAS,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;CAChC,CAAC,CAAC;AAOH,gBAAgB;AACH,QAAA,8BAA8B,GAIvC,CAAC,CAAC,MAAM,CAAC;IACX,SAAS,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;CAChC,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,gBAAgB,CAOhC;AAPD,WAAiB,gBAAgB;IAC/B,+DAA+D;IAClD,8BAAa,GAAG,qCAA6B,CAAC;IAC3D,gEAAgE;IACnD,+BAAc,GAAG,sCAA8B,CAAC;AAG/D,CAAC,EAPgB,gBAAgB,gCAAhB,gBAAgB,QAOhC;AAED,SAAgB,qBAAqB,CACnC,eAAgC;IAEhC,OAAO,IAAI,CAAC,SAAS,CAAC,sCAA8B,CAAC,KAAK,CAAC,eAAe,CAAC,CAAC,CAAC;AAC/E,CAAC;AAED,SAAgB,uBAAuB,CACrC,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,qCAA6B,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACzD,6CAA6C,CAC9C,CAAC;AACJ,CAAC"}
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import * as z from "zod";
|
|
6
|
-
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
-
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
-
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
-
|
|
10
|
-
export type CapabilitiesError = {
|
|
11
|
-
capabilities?: { [k: string]: string } | undefined;
|
|
12
|
-
};
|
|
13
|
-
|
|
14
|
-
/** @internal */
|
|
15
|
-
export const CapabilitiesError$inboundSchema: z.ZodType<
|
|
16
|
-
CapabilitiesError,
|
|
17
|
-
z.ZodTypeDef,
|
|
18
|
-
unknown
|
|
19
|
-
> = z.object({
|
|
20
|
-
capabilities: z.record(z.string()).optional(),
|
|
21
|
-
});
|
|
22
|
-
|
|
23
|
-
/** @internal */
|
|
24
|
-
export type CapabilitiesError$Outbound = {
|
|
25
|
-
capabilities?: { [k: string]: string } | undefined;
|
|
26
|
-
};
|
|
27
|
-
|
|
28
|
-
/** @internal */
|
|
29
|
-
export const CapabilitiesError$outboundSchema: z.ZodType<
|
|
30
|
-
CapabilitiesError$Outbound,
|
|
31
|
-
z.ZodTypeDef,
|
|
32
|
-
CapabilitiesError
|
|
33
|
-
> = z.object({
|
|
34
|
-
capabilities: z.record(z.string()).optional(),
|
|
35
|
-
});
|
|
36
|
-
|
|
37
|
-
/**
|
|
38
|
-
* @internal
|
|
39
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
40
|
-
*/
|
|
41
|
-
export namespace CapabilitiesError$ {
|
|
42
|
-
/** @deprecated use `CapabilitiesError$inboundSchema` instead. */
|
|
43
|
-
export const inboundSchema = CapabilitiesError$inboundSchema;
|
|
44
|
-
/** @deprecated use `CapabilitiesError$outboundSchema` instead. */
|
|
45
|
-
export const outboundSchema = CapabilitiesError$outboundSchema;
|
|
46
|
-
/** @deprecated use `CapabilitiesError$Outbound` instead. */
|
|
47
|
-
export type Outbound = CapabilitiesError$Outbound;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
export function capabilitiesErrorToJSON(
|
|
51
|
-
capabilitiesError: CapabilitiesError,
|
|
52
|
-
): string {
|
|
53
|
-
return JSON.stringify(
|
|
54
|
-
CapabilitiesError$outboundSchema.parse(capabilitiesError),
|
|
55
|
-
);
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
export function capabilitiesErrorFromJSON(
|
|
59
|
-
jsonString: string,
|
|
60
|
-
): SafeParseResult<CapabilitiesError, SDKValidationError> {
|
|
61
|
-
return safeParse(
|
|
62
|
-
jsonString,
|
|
63
|
-
(x) => CapabilitiesError$inboundSchema.parse(JSON.parse(x)),
|
|
64
|
-
`Failed to parse 'CapabilitiesError' from JSON`,
|
|
65
|
-
);
|
|
66
|
-
}
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import * as z from "zod";
|
|
6
|
-
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
-
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
-
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
-
|
|
10
|
-
export type CountriesErrors = {
|
|
11
|
-
countries: { [k: string]: string };
|
|
12
|
-
};
|
|
13
|
-
|
|
14
|
-
/** @internal */
|
|
15
|
-
export const CountriesErrors$inboundSchema: z.ZodType<
|
|
16
|
-
CountriesErrors,
|
|
17
|
-
z.ZodTypeDef,
|
|
18
|
-
unknown
|
|
19
|
-
> = z.object({
|
|
20
|
-
countries: z.record(z.string()),
|
|
21
|
-
});
|
|
22
|
-
|
|
23
|
-
/** @internal */
|
|
24
|
-
export type CountriesErrors$Outbound = {
|
|
25
|
-
countries: { [k: string]: string };
|
|
26
|
-
};
|
|
27
|
-
|
|
28
|
-
/** @internal */
|
|
29
|
-
export const CountriesErrors$outboundSchema: z.ZodType<
|
|
30
|
-
CountriesErrors$Outbound,
|
|
31
|
-
z.ZodTypeDef,
|
|
32
|
-
CountriesErrors
|
|
33
|
-
> = z.object({
|
|
34
|
-
countries: z.record(z.string()),
|
|
35
|
-
});
|
|
36
|
-
|
|
37
|
-
/**
|
|
38
|
-
* @internal
|
|
39
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
40
|
-
*/
|
|
41
|
-
export namespace CountriesErrors$ {
|
|
42
|
-
/** @deprecated use `CountriesErrors$inboundSchema` instead. */
|
|
43
|
-
export const inboundSchema = CountriesErrors$inboundSchema;
|
|
44
|
-
/** @deprecated use `CountriesErrors$outboundSchema` instead. */
|
|
45
|
-
export const outboundSchema = CountriesErrors$outboundSchema;
|
|
46
|
-
/** @deprecated use `CountriesErrors$Outbound` instead. */
|
|
47
|
-
export type Outbound = CountriesErrors$Outbound;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
export function countriesErrorsToJSON(
|
|
51
|
-
countriesErrors: CountriesErrors,
|
|
52
|
-
): string {
|
|
53
|
-
return JSON.stringify(CountriesErrors$outboundSchema.parse(countriesErrors));
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
export function countriesErrorsFromJSON(
|
|
57
|
-
jsonString: string,
|
|
58
|
-
): SafeParseResult<CountriesErrors, SDKValidationError> {
|
|
59
|
-
return safeParse(
|
|
60
|
-
jsonString,
|
|
61
|
-
(x) => CountriesErrors$inboundSchema.parse(JSON.parse(x)),
|
|
62
|
-
`Failed to parse 'CountriesErrors' from JSON`,
|
|
63
|
-
);
|
|
64
|
-
}
|