@moovio/sdk 0.14.24 → 0.14.25

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (52) hide show
  1. package/bin/mcp-server.js +220 -228
  2. package/bin/mcp-server.js.map +14 -16
  3. package/examples/package-lock.json +1 -1
  4. package/jsr.json +1 -1
  5. package/lib/config.d.ts +3 -3
  6. package/lib/config.js +3 -3
  7. package/mcp-server/mcp-server.js +1 -1
  8. package/mcp-server/server.js +1 -1
  9. package/models/components/index.d.ts +0 -2
  10. package/models/components/index.d.ts.map +1 -1
  11. package/models/components/index.js +0 -2
  12. package/models/components/index.js.map +1 -1
  13. package/models/errors/addcapabilitieserror.d.ts +12 -4
  14. package/models/errors/addcapabilitieserror.d.ts.map +1 -1
  15. package/models/errors/addcapabilitieserror.js +6 -3
  16. package/models/errors/addcapabilitieserror.js.map +1 -1
  17. package/models/errors/assigncountrieserror.d.ts +9 -4
  18. package/models/errors/assigncountrieserror.d.ts.map +1 -1
  19. package/models/errors/assigncountrieserror.js +3 -4
  20. package/models/errors/assigncountrieserror.js.map +1 -1
  21. package/models/errors/filevalidationerror.d.ts +3 -0
  22. package/models/errors/filevalidationerror.d.ts.map +1 -1
  23. package/models/errors/filevalidationerror.js +13 -1
  24. package/models/errors/filevalidationerror.js.map +1 -1
  25. package/models/errors/patchaccounterror.d.ts +3 -0
  26. package/models/errors/patchaccounterror.d.ts.map +1 -1
  27. package/models/errors/patchaccounterror.js +4 -0
  28. package/models/errors/patchaccounterror.js.map +1 -1
  29. package/models/errors/upsertunderwritingerror.d.ts +3 -0
  30. package/models/errors/upsertunderwritingerror.d.ts.map +1 -1
  31. package/models/errors/upsertunderwritingerror.js +4 -0
  32. package/models/errors/upsertunderwritingerror.js.map +1 -1
  33. package/package.json +1 -1
  34. package/src/lib/config.ts +3 -3
  35. package/src/mcp-server/mcp-server.ts +1 -1
  36. package/src/mcp-server/server.ts +1 -1
  37. package/src/models/components/index.ts +0 -2
  38. package/src/models/errors/addcapabilitieserror.ts +11 -6
  39. package/src/models/errors/assigncountrieserror.ts +6 -7
  40. package/src/models/errors/filevalidationerror.ts +24 -7
  41. package/src/models/errors/patchaccounterror.ts +6 -0
  42. package/src/models/errors/upsertunderwritingerror.ts +6 -0
  43. package/models/components/capabilitieserror.d.ts +0 -33
  44. package/models/components/capabilitieserror.d.ts.map +0 -1
  45. package/models/components/capabilitieserror.js +0 -69
  46. package/models/components/capabilitieserror.js.map +0 -1
  47. package/models/components/countrieserrors.d.ts +0 -33
  48. package/models/components/countrieserrors.d.ts.map +0 -1
  49. package/models/components/countrieserrors.js +0 -69
  50. package/models/components/countrieserrors.js.map +0 -1
  51. package/src/models/components/capabilitieserror.ts +0 -66
  52. package/src/models/components/countrieserrors.ts +0 -64
@@ -1 +1 @@
1
- {"version":3,"file":"upsertunderwritingerror.js","sourceRoot":"","sources":["../../src/models/errors/upsertunderwritingerror.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AACzB,mEAAqD;AACrD,iDAA2C;AAoB3C,MAAa,uBAAwB,SAAQ,wBAAS;IAoBpD,YACE,GAAgC,EAChC,QAAgE;QAEhE,MAAM,OAAO,GAAG,SAAS,IAAI,GAAG,IAAI,OAAO,GAAG,CAAC,OAAO,KAAK,QAAQ;YACjE,CAAC,CAAC,GAAG,CAAC,OAAO;YACb,CAAC,CAAC,uBAAuB,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,EAAE,CAAC;QACjD,KAAK,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;QACzB,IAAI,CAAC,KAAK,GAAG,GAAG,CAAC;QACjB,IAAI,GAAG,CAAC,eAAe,IAAI,IAAI;YAAE,IAAI,CAAC,eAAe,GAAG,GAAG,CAAC,eAAe,CAAC;QAC5E,IAAI,GAAG,CAAC,gBAAgB,IAAI,IAAI,EAAE,CAAC;YACjC,IAAI,CAAC,gBAAgB,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D,uCAAc,GAAG,8CAAsC,CAAC;AAGvE,CAAC,EAPgB,wBAAwB,wCAAxB,wBAAwB,QAOxC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@moovio/sdk",
3
- "version": "0.14.24",
3
+ "version": "0.14.25",
4
4
  "author": "Moov",
5
5
  "bin": {
6
6
  "mcp": "bin/mcp-server.js"
package/src/lib/config.ts CHANGED
@@ -73,7 +73,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
73
73
  export const SDK_METADATA = {
74
74
  language: "typescript",
75
75
  openapiDocVersion: "latest",
76
- sdkVersion: "0.14.24",
77
- genVersion: "2.681.1",
78
- userAgent: "speakeasy-sdk/typescript 0.14.24 2.681.1 latest @moovio/sdk",
76
+ sdkVersion: "0.14.25",
77
+ genVersion: "2.681.8",
78
+ userAgent: "speakeasy-sdk/typescript 0.14.25 2.681.8 latest @moovio/sdk",
79
79
  } as const;
@@ -19,7 +19,7 @@ const routes = buildRouteMap({
19
19
  export const app = buildApplication(routes, {
20
20
  name: "mcp",
21
21
  versionInfo: {
22
- currentVersion: "0.14.24",
22
+ currentVersion: "0.14.25",
23
23
  },
24
24
  });
25
25
 
@@ -168,7 +168,7 @@ export function createMCPServer(deps: {
168
168
  }) {
169
169
  const server = new McpServer({
170
170
  name: "Moov",
171
- version: "0.14.24",
171
+ version: "0.14.25",
172
172
  });
173
173
 
174
174
  const client = new MoovCore({
@@ -73,7 +73,6 @@ export * from "./businesstype.js";
73
73
  export * from "./calltoaction.js";
74
74
  export * from "./cancellation.js";
75
75
  export * from "./cancellationstatus.js";
76
- export * from "./capabilitieserror.js";
77
76
  export * from "./capability.js";
78
77
  export * from "./capabilityid.js";
79
78
  export * from "./capabilityrequirement.js";
@@ -116,7 +115,6 @@ export * from "./completebankaccountverification.js";
116
115
  export * from "./completedmicrodeposits.js";
117
116
  export * from "./completemicrodeposits.js";
118
117
  export * from "./contact.js";
119
- export * from "./countrieserrors.js";
120
118
  export * from "./createaccount.js";
121
119
  export * from "./createaccountsettings.js";
122
120
  export * from "./createaccounttype.js";
@@ -3,15 +3,16 @@
3
3
  */
4
4
 
5
5
  import * as z from "zod";
6
- import * as components from "../components/index.js";
7
6
  import { MoovError } from "./mooverror.js";
8
7
 
9
8
  export type AddCapabilitiesErrorData = {
10
- error?: components.CapabilitiesError | undefined;
9
+ error?: string | undefined;
10
+ capabilities?: { [k: string]: string } | undefined;
11
11
  };
12
12
 
13
13
  export class AddCapabilitiesError extends MoovError {
14
- error?: components.CapabilitiesError | undefined;
14
+ error?: string | undefined;
15
+ capabilities?: { [k: string]: string } | undefined;
15
16
 
16
17
  /** The original data that was passed to this error instance. */
17
18
  data$: AddCapabilitiesErrorData;
@@ -26,6 +27,7 @@ export class AddCapabilitiesError extends MoovError {
26
27
  super(message, httpMeta);
27
28
  this.data$ = err;
28
29
  if (err.error != null) this.error = err.error;
30
+ if (err.capabilities != null) this.capabilities = err.capabilities;
29
31
 
30
32
  this.name = "AddCapabilitiesError";
31
33
  }
@@ -37,7 +39,8 @@ export const AddCapabilitiesError$inboundSchema: z.ZodType<
37
39
  z.ZodTypeDef,
38
40
  unknown
39
41
  > = z.object({
40
- error: components.CapabilitiesError$inboundSchema.optional(),
42
+ error: z.string().optional(),
43
+ capabilities: z.record(z.string()).optional(),
41
44
  request$: z.instanceof(Request),
42
45
  response$: z.instanceof(Response),
43
46
  body$: z.string(),
@@ -52,7 +55,8 @@ export const AddCapabilitiesError$inboundSchema: z.ZodType<
52
55
 
53
56
  /** @internal */
54
57
  export type AddCapabilitiesError$Outbound = {
55
- error?: components.CapabilitiesError$Outbound | undefined;
58
+ error?: string | undefined;
59
+ capabilities?: { [k: string]: string } | undefined;
56
60
  };
57
61
 
58
62
  /** @internal */
@@ -63,7 +67,8 @@ export const AddCapabilitiesError$outboundSchema: z.ZodType<
63
67
  > = z.instanceof(AddCapabilitiesError)
64
68
  .transform(v => v.data$)
65
69
  .pipe(z.object({
66
- error: components.CapabilitiesError$outboundSchema.optional(),
70
+ error: z.string().optional(),
71
+ capabilities: z.record(z.string()).optional(),
67
72
  }));
68
73
 
69
74
  /**
@@ -3,15 +3,14 @@
3
3
  */
4
4
 
5
5
  import * as z from "zod";
6
- import * as components from "../components/index.js";
7
6
  import { MoovError } from "./mooverror.js";
8
7
 
9
8
  export type AssignCountriesErrorData = {
10
- error: components.CountriesErrors;
9
+ countries: { [k: string]: string };
11
10
  };
12
11
 
13
12
  export class AssignCountriesError extends MoovError {
14
- error: components.CountriesErrors;
13
+ countries: { [k: string]: string };
15
14
 
16
15
  /** The original data that was passed to this error instance. */
17
16
  data$: AssignCountriesErrorData;
@@ -25,7 +24,7 @@ export class AssignCountriesError extends MoovError {
25
24
  : `API error occurred: ${JSON.stringify(err)}`;
26
25
  super(message, httpMeta);
27
26
  this.data$ = err;
28
- this.error = err.error;
27
+ this.countries = err.countries;
29
28
 
30
29
  this.name = "AssignCountriesError";
31
30
  }
@@ -37,7 +36,7 @@ export const AssignCountriesError$inboundSchema: z.ZodType<
37
36
  z.ZodTypeDef,
38
37
  unknown
39
38
  > = z.object({
40
- error: components.CountriesErrors$inboundSchema,
39
+ countries: z.record(z.string()),
41
40
  request$: z.instanceof(Request),
42
41
  response$: z.instanceof(Response),
43
42
  body$: z.string(),
@@ -52,7 +51,7 @@ export const AssignCountriesError$inboundSchema: z.ZodType<
52
51
 
53
52
  /** @internal */
54
53
  export type AssignCountriesError$Outbound = {
55
- error: components.CountriesErrors$Outbound;
54
+ countries: { [k: string]: string };
56
55
  };
57
56
 
58
57
  /** @internal */
@@ -63,7 +62,7 @@ export const AssignCountriesError$outboundSchema: z.ZodType<
63
62
  > = z.instanceof(AssignCountriesError)
64
63
  .transform(v => v.data$)
65
64
  .pipe(z.object({
66
- error: components.CountriesErrors$outboundSchema,
65
+ countries: z.record(z.string()),
67
66
  }));
68
67
 
69
68
  /**
@@ -3,11 +3,13 @@
3
3
  */
4
4
 
5
5
  import * as z from "zod";
6
+ import { remap as remap$ } from "../../lib/primitives.js";
6
7
  import { MoovError } from "./mooverror.js";
7
8
 
8
9
  export type FileValidationErrorData = {
9
10
  error?: string | undefined;
10
11
  file?: string | undefined;
12
+ fileName?: string | undefined;
11
13
  filePurpose?: string | undefined;
12
14
  metadata?: string | undefined;
13
15
  };
@@ -15,6 +17,7 @@ export type FileValidationErrorData = {
15
17
  export class FileValidationError extends MoovError {
16
18
  error?: string | undefined;
17
19
  file?: string | undefined;
20
+ fileName?: string | undefined;
18
21
  filePurpose?: string | undefined;
19
22
  metadata?: string | undefined;
20
23
 
@@ -32,6 +35,7 @@ export class FileValidationError extends MoovError {
32
35
  this.data$ = err;
33
36
  if (err.error != null) this.error = err.error;
34
37
  if (err.file != null) this.file = err.file;
38
+ if (err.fileName != null) this.fileName = err.fileName;
35
39
  if (err.filePurpose != null) this.filePurpose = err.filePurpose;
36
40
  if (err.metadata != null) this.metadata = err.metadata;
37
41
 
@@ -47,6 +51,7 @@ export const FileValidationError$inboundSchema: z.ZodType<
47
51
  > = z.object({
48
52
  error: z.string().optional(),
49
53
  file: z.string().optional(),
54
+ FileName: z.string().optional(),
50
55
  filePurpose: z.string().optional(),
51
56
  metadata: z.string().optional(),
52
57
  request$: z.instanceof(Request),
@@ -54,7 +59,11 @@ export const FileValidationError$inboundSchema: z.ZodType<
54
59
  body$: z.string(),
55
60
  })
56
61
  .transform((v) => {
57
- return new FileValidationError(v, {
62
+ const remapped = remap$(v, {
63
+ "FileName": "fileName",
64
+ });
65
+
66
+ return new FileValidationError(remapped, {
58
67
  request: v.request$,
59
68
  response: v.response$,
60
69
  body: v.body$,
@@ -65,6 +74,7 @@ export const FileValidationError$inboundSchema: z.ZodType<
65
74
  export type FileValidationError$Outbound = {
66
75
  error?: string | undefined;
67
76
  file?: string | undefined;
77
+ FileName?: string | undefined;
68
78
  filePurpose?: string | undefined;
69
79
  metadata?: string | undefined;
70
80
  };
@@ -76,12 +86,19 @@ export const FileValidationError$outboundSchema: z.ZodType<
76
86
  FileValidationError
77
87
  > = z.instanceof(FileValidationError)
78
88
  .transform(v => v.data$)
79
- .pipe(z.object({
80
- error: z.string().optional(),
81
- file: z.string().optional(),
82
- filePurpose: z.string().optional(),
83
- metadata: z.string().optional(),
84
- }));
89
+ .pipe(
90
+ z.object({
91
+ error: z.string().optional(),
92
+ file: z.string().optional(),
93
+ fileName: z.string().optional(),
94
+ filePurpose: z.string().optional(),
95
+ metadata: z.string().optional(),
96
+ }).transform((v) => {
97
+ return remap$(v, {
98
+ fileName: "FileName",
99
+ });
100
+ }),
101
+ );
85
102
 
86
103
  /**
87
104
  * @internal
@@ -13,6 +13,7 @@ export type PatchAccountErrorData = {
13
13
  foreignID?: string | undefined;
14
14
  customerSupport?: components.CustomerSupportError | undefined;
15
15
  settings?: components.CreateAccountSettings | undefined;
16
+ error?: string | undefined;
16
17
  };
17
18
 
18
19
  export class PatchAccountError extends MoovError {
@@ -22,6 +23,7 @@ export class PatchAccountError extends MoovError {
22
23
  foreignID?: string | undefined;
23
24
  customerSupport?: components.CustomerSupportError | undefined;
24
25
  settings?: components.CreateAccountSettings | undefined;
26
+ error?: string | undefined;
25
27
 
26
28
  /** The original data that was passed to this error instance. */
27
29
  data$: PatchAccountErrorData;
@@ -41,6 +43,7 @@ export class PatchAccountError extends MoovError {
41
43
  if (err.foreignID != null) this.foreignID = err.foreignID;
42
44
  if (err.customerSupport != null) this.customerSupport = err.customerSupport;
43
45
  if (err.settings != null) this.settings = err.settings;
46
+ if (err.error != null) this.error = err.error;
44
47
 
45
48
  this.name = "PatchAccountError";
46
49
  }
@@ -58,6 +61,7 @@ export const PatchAccountError$inboundSchema: z.ZodType<
58
61
  foreignID: z.string().optional(),
59
62
  customerSupport: components.CustomerSupportError$inboundSchema.optional(),
60
63
  settings: components.CreateAccountSettings$inboundSchema.optional(),
64
+ error: z.string().optional(),
61
65
  request$: z.instanceof(Request),
62
66
  response$: z.instanceof(Response),
63
67
  body$: z.string(),
@@ -78,6 +82,7 @@ export type PatchAccountError$Outbound = {
78
82
  foreignID?: string | undefined;
79
83
  customerSupport?: components.CustomerSupportError$Outbound | undefined;
80
84
  settings?: components.CreateAccountSettings$Outbound | undefined;
85
+ error?: string | undefined;
81
86
  };
82
87
 
83
88
  /** @internal */
@@ -94,6 +99,7 @@ export const PatchAccountError$outboundSchema: z.ZodType<
94
99
  foreignID: z.string().optional(),
95
100
  customerSupport: components.CustomerSupportError$outboundSchema.optional(),
96
101
  settings: components.CreateAccountSettings$outboundSchema.optional(),
102
+ error: z.string().optional(),
97
103
  }));
98
104
 
99
105
  /**
@@ -17,6 +17,7 @@ export type UpsertUnderwritingErrorData = {
17
17
  moneyTransfer?: components.MoneyTransferError | undefined;
18
18
  sendFunds?: components.SendFundsError | undefined;
19
19
  averageMonthlyTransactionVolume?: string | undefined;
20
+ error?: string | undefined;
20
21
  averageTransactionSize?: string | undefined;
21
22
  maxTransactionSize?: string | undefined;
22
23
  volumeByCustomerType?: components.VolumeByCustomerTypeError | undefined;
@@ -35,6 +36,7 @@ export class UpsertUnderwritingError extends MoovError {
35
36
  moneyTransfer?: components.MoneyTransferError | undefined;
36
37
  sendFunds?: components.SendFundsError | undefined;
37
38
  averageMonthlyTransactionVolume?: string | undefined;
39
+ error?: string | undefined;
38
40
  averageTransactionSize?: string | undefined;
39
41
  maxTransactionSize?: string | undefined;
40
42
  volumeByCustomerType?: components.VolumeByCustomerTypeError | undefined;
@@ -70,6 +72,7 @@ export class UpsertUnderwritingError extends MoovError {
70
72
  this.averageMonthlyTransactionVolume =
71
73
  err.averageMonthlyTransactionVolume;
72
74
  }
75
+ if (err.error != null) this.error = err.error;
73
76
  if (err.averageTransactionSize != null) {
74
77
  this.averageTransactionSize = err.averageTransactionSize;
75
78
  }
@@ -103,6 +106,7 @@ export const UpsertUnderwritingError$inboundSchema: z.ZodType<
103
106
  moneyTransfer: components.MoneyTransferError$inboundSchema.optional(),
104
107
  sendFunds: components.SendFundsError$inboundSchema.optional(),
105
108
  averageMonthlyTransactionVolume: z.string().optional(),
109
+ error: z.string().optional(),
106
110
  averageTransactionSize: z.string().optional(),
107
111
  maxTransactionSize: z.string().optional(),
108
112
  volumeByCustomerType: components.VolumeByCustomerTypeError$inboundSchema
@@ -134,6 +138,7 @@ export type UpsertUnderwritingError$Outbound = {
134
138
  moneyTransfer?: components.MoneyTransferError$Outbound | undefined;
135
139
  sendFunds?: components.SendFundsError$Outbound | undefined;
136
140
  averageMonthlyTransactionVolume?: string | undefined;
141
+ error?: string | undefined;
137
142
  averageTransactionSize?: string | undefined;
138
143
  maxTransactionSize?: string | undefined;
139
144
  volumeByCustomerType?:
@@ -162,6 +167,7 @@ export const UpsertUnderwritingError$outboundSchema: z.ZodType<
162
167
  moneyTransfer: components.MoneyTransferError$outboundSchema.optional(),
163
168
  sendFunds: components.SendFundsError$outboundSchema.optional(),
164
169
  averageMonthlyTransactionVolume: z.string().optional(),
170
+ error: z.string().optional(),
165
171
  averageTransactionSize: z.string().optional(),
166
172
  maxTransactionSize: z.string().optional(),
167
173
  volumeByCustomerType: components.VolumeByCustomerTypeError$outboundSchema
@@ -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 CapabilitiesError = {
5
- capabilities?: {
6
- [k: string]: string;
7
- } | undefined;
8
- };
9
- /** @internal */
10
- export declare const CapabilitiesError$inboundSchema: z.ZodType<CapabilitiesError, z.ZodTypeDef, unknown>;
11
- /** @internal */
12
- export type CapabilitiesError$Outbound = {
13
- capabilities?: {
14
- [k: string]: string;
15
- } | undefined;
16
- };
17
- /** @internal */
18
- export declare const CapabilitiesError$outboundSchema: z.ZodType<CapabilitiesError$Outbound, z.ZodTypeDef, CapabilitiesError>;
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 CapabilitiesError$ {
24
- /** @deprecated use `CapabilitiesError$inboundSchema` instead. */
25
- const inboundSchema: z.ZodType<CapabilitiesError, z.ZodTypeDef, unknown>;
26
- /** @deprecated use `CapabilitiesError$outboundSchema` instead. */
27
- const outboundSchema: z.ZodType<CapabilitiesError$Outbound, z.ZodTypeDef, CapabilitiesError>;
28
- /** @deprecated use `CapabilitiesError$Outbound` instead. */
29
- type Outbound = CapabilitiesError$Outbound;
30
- }
31
- export declare function capabilitiesErrorToJSON(capabilitiesError: CapabilitiesError): string;
32
- export declare function capabilitiesErrorFromJSON(jsonString: string): SafeParseResult<CapabilitiesError, SDKValidationError>;
33
- //# sourceMappingURL=capabilitieserror.d.ts.map
@@ -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,69 +0,0 @@
1
- "use strict";
2
- /*
3
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
4
- */
5
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
- if (k2 === undefined) k2 = k;
7
- var desc = Object.getOwnPropertyDescriptor(m, k);
8
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
- desc = { enumerable: true, get: function() { return m[k]; } };
10
- }
11
- Object.defineProperty(o, k2, desc);
12
- }) : (function(o, m, k, k2) {
13
- if (k2 === undefined) k2 = k;
14
- o[k2] = m[k];
15
- }));
16
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
- Object.defineProperty(o, "default", { enumerable: true, value: v });
18
- }) : function(o, v) {
19
- o["default"] = v;
20
- });
21
- var __importStar = (this && this.__importStar) || (function () {
22
- var ownKeys = function(o) {
23
- ownKeys = Object.getOwnPropertyNames || function (o) {
24
- var ar = [];
25
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
- return ar;
27
- };
28
- return ownKeys(o);
29
- };
30
- return function (mod) {
31
- if (mod && mod.__esModule) return mod;
32
- var result = {};
33
- if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
- __setModuleDefault(result, mod);
35
- return result;
36
- };
37
- })();
38
- Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.CapabilitiesError$ = exports.CapabilitiesError$outboundSchema = exports.CapabilitiesError$inboundSchema = void 0;
40
- exports.capabilitiesErrorToJSON = capabilitiesErrorToJSON;
41
- exports.capabilitiesErrorFromJSON = capabilitiesErrorFromJSON;
42
- const z = __importStar(require("zod"));
43
- const schemas_js_1 = require("../../lib/schemas.js");
44
- /** @internal */
45
- exports.CapabilitiesError$inboundSchema = z.object({
46
- capabilities: z.record(z.string()).optional(),
47
- });
48
- /** @internal */
49
- exports.CapabilitiesError$outboundSchema = z.object({
50
- capabilities: z.record(z.string()).optional(),
51
- });
52
- /**
53
- * @internal
54
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
55
- */
56
- var CapabilitiesError$;
57
- (function (CapabilitiesError$) {
58
- /** @deprecated use `CapabilitiesError$inboundSchema` instead. */
59
- CapabilitiesError$.inboundSchema = exports.CapabilitiesError$inboundSchema;
60
- /** @deprecated use `CapabilitiesError$outboundSchema` instead. */
61
- CapabilitiesError$.outboundSchema = exports.CapabilitiesError$outboundSchema;
62
- })(CapabilitiesError$ || (exports.CapabilitiesError$ = CapabilitiesError$ = {}));
63
- function capabilitiesErrorToJSON(capabilitiesError) {
64
- return JSON.stringify(exports.CapabilitiesError$outboundSchema.parse(capabilitiesError));
65
- }
66
- function capabilitiesErrorFromJSON(jsonString) {
67
- return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.CapabilitiesError$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CapabilitiesError' from JSON`);
68
- }
69
- //# sourceMappingURL=capabilitieserror.js.map
@@ -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,69 +0,0 @@
1
- "use strict";
2
- /*
3
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
4
- */
5
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
- if (k2 === undefined) k2 = k;
7
- var desc = Object.getOwnPropertyDescriptor(m, k);
8
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
- desc = { enumerable: true, get: function() { return m[k]; } };
10
- }
11
- Object.defineProperty(o, k2, desc);
12
- }) : (function(o, m, k, k2) {
13
- if (k2 === undefined) k2 = k;
14
- o[k2] = m[k];
15
- }));
16
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
- Object.defineProperty(o, "default", { enumerable: true, value: v });
18
- }) : function(o, v) {
19
- o["default"] = v;
20
- });
21
- var __importStar = (this && this.__importStar) || (function () {
22
- var ownKeys = function(o) {
23
- ownKeys = Object.getOwnPropertyNames || function (o) {
24
- var ar = [];
25
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
- return ar;
27
- };
28
- return ownKeys(o);
29
- };
30
- return function (mod) {
31
- if (mod && mod.__esModule) return mod;
32
- var result = {};
33
- if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
- __setModuleDefault(result, mod);
35
- return result;
36
- };
37
- })();
38
- Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.CountriesErrors$ = exports.CountriesErrors$outboundSchema = exports.CountriesErrors$inboundSchema = void 0;
40
- exports.countriesErrorsToJSON = countriesErrorsToJSON;
41
- exports.countriesErrorsFromJSON = countriesErrorsFromJSON;
42
- const z = __importStar(require("zod"));
43
- const schemas_js_1 = require("../../lib/schemas.js");
44
- /** @internal */
45
- exports.CountriesErrors$inboundSchema = z.object({
46
- countries: z.record(z.string()),
47
- });
48
- /** @internal */
49
- exports.CountriesErrors$outboundSchema = z.object({
50
- countries: z.record(z.string()),
51
- });
52
- /**
53
- * @internal
54
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
55
- */
56
- var CountriesErrors$;
57
- (function (CountriesErrors$) {
58
- /** @deprecated use `CountriesErrors$inboundSchema` instead. */
59
- CountriesErrors$.inboundSchema = exports.CountriesErrors$inboundSchema;
60
- /** @deprecated use `CountriesErrors$outboundSchema` instead. */
61
- CountriesErrors$.outboundSchema = exports.CountriesErrors$outboundSchema;
62
- })(CountriesErrors$ || (exports.CountriesErrors$ = CountriesErrors$ = {}));
63
- function countriesErrorsToJSON(countriesErrors) {
64
- return JSON.stringify(exports.CountriesErrors$outboundSchema.parse(countriesErrors));
65
- }
66
- function countriesErrorsFromJSON(jsonString) {
67
- return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.CountriesErrors$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CountriesErrors' from JSON`);
68
- }
69
- //# sourceMappingURL=countrieserrors.js.map
@@ -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
- }