@moovio/sdk 0.5.3 → 0.6.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.
Files changed (75) hide show
  1. package/bin/mcp-server.js +96 -75
  2. package/bin/mcp-server.js.map +18 -18
  3. package/docs/sdks/feeplans/README.md +8 -0
  4. package/funcs/feePlansListFeePlanAgreements.js +2 -0
  5. package/funcs/feePlansListFeePlanAgreements.js.map +1 -1
  6. package/funcs/feePlansListPartnerPricingAgreements.js +2 -0
  7. package/funcs/feePlansListPartnerPricingAgreements.js.map +1 -1
  8. package/jsr.json +1 -1
  9. package/lib/config.d.ts +3 -3
  10. package/lib/config.js +3 -3
  11. package/mcp-server/cli/start/command.d.ts.map +1 -1
  12. package/mcp-server/cli/start/command.js +9 -0
  13. package/mcp-server/cli/start/command.js.map +1 -1
  14. package/mcp-server/cli/start/impl.d.ts +1 -0
  15. package/mcp-server/cli/start/impl.d.ts.map +1 -1
  16. package/mcp-server/cli/start/impl.js +2 -0
  17. package/mcp-server/cli/start/impl.js.map +1 -1
  18. package/mcp-server/mcp-server.js +1 -1
  19. package/mcp-server/server.d.ts +1 -0
  20. package/mcp-server/server.d.ts.map +1 -1
  21. package/mcp-server/server.js +3 -2
  22. package/mcp-server/server.js.map +1 -1
  23. package/mcp-server/tools.d.ts +1 -1
  24. package/mcp-server/tools.d.ts.map +1 -1
  25. package/mcp-server/tools.js +4 -1
  26. package/mcp-server/tools.js.map +1 -1
  27. package/models/components/feecategory.d.ts +15 -12
  28. package/models/components/feecategory.d.ts.map +1 -1
  29. package/models/components/feecategory.js +5 -4
  30. package/models/components/feecategory.js.map +1 -1
  31. package/models/components/governmentid.d.ts +30 -30
  32. package/models/components/governmentid.d.ts.map +1 -1
  33. package/models/components/governmentid.js +35 -38
  34. package/models/components/governmentid.js.map +1 -1
  35. package/models/components/governmentiderror.d.ts +30 -30
  36. package/models/components/governmentiderror.d.ts.map +1 -1
  37. package/models/components/governmentiderror.js +38 -35
  38. package/models/components/governmentiderror.js.map +1 -1
  39. package/models/components/onboardinginvite.d.ts +6 -1
  40. package/models/components/onboardinginvite.d.ts.map +1 -1
  41. package/models/components/onboardinginvite.js +3 -10
  42. package/models/components/onboardinginvite.js.map +1 -1
  43. package/models/components/taxid.d.ts +15 -15
  44. package/models/components/taxid.d.ts.map +1 -1
  45. package/models/components/taxid.js +18 -20
  46. package/models/components/taxid.js.map +1 -1
  47. package/models/components/taxidupdate.d.ts +15 -15
  48. package/models/components/taxidupdate.d.ts.map +1 -1
  49. package/models/components/taxidupdate.js +20 -18
  50. package/models/components/taxidupdate.js.map +1 -1
  51. package/models/operations/listfeeplanagreements.d.ts +4 -0
  52. package/models/operations/listfeeplanagreements.d.ts.map +1 -1
  53. package/models/operations/listfeeplanagreements.js +4 -0
  54. package/models/operations/listfeeplanagreements.js.map +1 -1
  55. package/models/operations/listpartnerpricingagreements.d.ts +4 -0
  56. package/models/operations/listpartnerpricingagreements.d.ts.map +1 -1
  57. package/models/operations/listpartnerpricingagreements.js +4 -0
  58. package/models/operations/listpartnerpricingagreements.js.map +1 -1
  59. package/package.json +1 -1
  60. package/src/funcs/feePlansListFeePlanAgreements.ts +2 -0
  61. package/src/funcs/feePlansListPartnerPricingAgreements.ts +2 -0
  62. package/src/lib/config.ts +3 -3
  63. package/src/mcp-server/cli/start/command.ts +9 -0
  64. package/src/mcp-server/cli/start/impl.ts +3 -0
  65. package/src/mcp-server/mcp-server.ts +1 -1
  66. package/src/mcp-server/server.ts +10 -2
  67. package/src/mcp-server/tools.ts +5 -0
  68. package/src/models/components/feecategory.ts +5 -4
  69. package/src/models/components/governmentid.ts +76 -58
  70. package/src/models/components/governmentiderror.ts +58 -78
  71. package/src/models/components/onboardinginvite.ts +9 -11
  72. package/src/models/components/taxid.ts +33 -27
  73. package/src/models/components/taxidupdate.ts +27 -33
  74. package/src/models/operations/listfeeplanagreements.ts +8 -0
  75. package/src/models/operations/listpartnerpricingagreements.ts +8 -0
@@ -7,7 +7,7 @@ import { safeParse } from "../../lib/schemas.js";
7
7
  import { Result as SafeParseResult } from "../../types/fp.js";
8
8
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
9
9
 
10
- export type TaxIDUpdateEin = {
10
+ export type Ein = {
11
11
  number?: string | undefined;
12
12
  };
13
13
 
@@ -15,56 +15,50 @@ export type TaxIDUpdateEin = {
15
15
  * An EIN (employer identification number) for the business. For sole proprietors, an SSN can be used as the EIN.
16
16
  */
17
17
  export type TaxIDUpdate = {
18
- ein?: TaxIDUpdateEin | undefined;
18
+ ein?: Ein | undefined;
19
19
  };
20
20
 
21
21
  /** @internal */
22
- export const TaxIDUpdateEin$inboundSchema: z.ZodType<
23
- TaxIDUpdateEin,
24
- z.ZodTypeDef,
25
- unknown
26
- > = z.object({
27
- number: z.string().optional(),
28
- });
22
+ export const Ein$inboundSchema: z.ZodType<Ein, z.ZodTypeDef, unknown> = z
23
+ .object({
24
+ number: z.string().optional(),
25
+ });
29
26
 
30
27
  /** @internal */
31
- export type TaxIDUpdateEin$Outbound = {
28
+ export type Ein$Outbound = {
32
29
  number?: string | undefined;
33
30
  };
34
31
 
35
32
  /** @internal */
36
- export const TaxIDUpdateEin$outboundSchema: z.ZodType<
37
- TaxIDUpdateEin$Outbound,
38
- z.ZodTypeDef,
39
- TaxIDUpdateEin
40
- > = z.object({
41
- number: z.string().optional(),
42
- });
33
+ export const Ein$outboundSchema: z.ZodType<Ein$Outbound, z.ZodTypeDef, Ein> = z
34
+ .object({
35
+ number: z.string().optional(),
36
+ });
43
37
 
44
38
  /**
45
39
  * @internal
46
40
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
47
41
  */
48
- export namespace TaxIDUpdateEin$ {
49
- /** @deprecated use `TaxIDUpdateEin$inboundSchema` instead. */
50
- export const inboundSchema = TaxIDUpdateEin$inboundSchema;
51
- /** @deprecated use `TaxIDUpdateEin$outboundSchema` instead. */
52
- export const outboundSchema = TaxIDUpdateEin$outboundSchema;
53
- /** @deprecated use `TaxIDUpdateEin$Outbound` instead. */
54
- export type Outbound = TaxIDUpdateEin$Outbound;
42
+ export namespace Ein$ {
43
+ /** @deprecated use `Ein$inboundSchema` instead. */
44
+ export const inboundSchema = Ein$inboundSchema;
45
+ /** @deprecated use `Ein$outboundSchema` instead. */
46
+ export const outboundSchema = Ein$outboundSchema;
47
+ /** @deprecated use `Ein$Outbound` instead. */
48
+ export type Outbound = Ein$Outbound;
55
49
  }
56
50
 
57
- export function taxIDUpdateEinToJSON(taxIDUpdateEin: TaxIDUpdateEin): string {
58
- return JSON.stringify(TaxIDUpdateEin$outboundSchema.parse(taxIDUpdateEin));
51
+ export function einToJSON(ein: Ein): string {
52
+ return JSON.stringify(Ein$outboundSchema.parse(ein));
59
53
  }
60
54
 
61
- export function taxIDUpdateEinFromJSON(
55
+ export function einFromJSON(
62
56
  jsonString: string,
63
- ): SafeParseResult<TaxIDUpdateEin, SDKValidationError> {
57
+ ): SafeParseResult<Ein, SDKValidationError> {
64
58
  return safeParse(
65
59
  jsonString,
66
- (x) => TaxIDUpdateEin$inboundSchema.parse(JSON.parse(x)),
67
- `Failed to parse 'TaxIDUpdateEin' from JSON`,
60
+ (x) => Ein$inboundSchema.parse(JSON.parse(x)),
61
+ `Failed to parse 'Ein' from JSON`,
68
62
  );
69
63
  }
70
64
 
@@ -74,12 +68,12 @@ export const TaxIDUpdate$inboundSchema: z.ZodType<
74
68
  z.ZodTypeDef,
75
69
  unknown
76
70
  > = z.object({
77
- ein: z.lazy(() => TaxIDUpdateEin$inboundSchema).optional(),
71
+ ein: z.lazy(() => Ein$inboundSchema).optional(),
78
72
  });
79
73
 
80
74
  /** @internal */
81
75
  export type TaxIDUpdate$Outbound = {
82
- ein?: TaxIDUpdateEin$Outbound | undefined;
76
+ ein?: Ein$Outbound | undefined;
83
77
  };
84
78
 
85
79
  /** @internal */
@@ -88,7 +82,7 @@ export const TaxIDUpdate$outboundSchema: z.ZodType<
88
82
  z.ZodTypeDef,
89
83
  TaxIDUpdate
90
84
  > = z.object({
91
- ein: z.lazy(() => TaxIDUpdateEin$outboundSchema).optional(),
85
+ ein: z.lazy(() => Ein$outboundSchema).optional(),
92
86
  });
93
87
 
94
88
  /**
@@ -27,6 +27,8 @@ export type ListFeePlanAgreementsGlobals = {
27
27
  };
28
28
 
29
29
  export type ListFeePlanAgreementsRequest = {
30
+ skip?: number | undefined;
31
+ count?: number | undefined;
30
32
  accountID: string;
31
33
  /**
32
34
  * A comma-separated list of agreement IDs to filter the results by.
@@ -113,6 +115,8 @@ export const ListFeePlanAgreementsRequest$inboundSchema: z.ZodType<
113
115
  z.ZodTypeDef,
114
116
  unknown
115
117
  > = z.object({
118
+ skip: z.number().int().optional(),
119
+ count: z.number().int().optional(),
116
120
  accountID: z.string(),
117
121
  agreementID: z.array(z.string()).optional(),
118
122
  status: z.array(components.FeePlanAgreementStatus$inboundSchema).optional(),
@@ -120,6 +124,8 @@ export const ListFeePlanAgreementsRequest$inboundSchema: z.ZodType<
120
124
 
121
125
  /** @internal */
122
126
  export type ListFeePlanAgreementsRequest$Outbound = {
127
+ skip?: number | undefined;
128
+ count?: number | undefined;
123
129
  accountID: string;
124
130
  agreementID?: Array<string> | undefined;
125
131
  status?: Array<string> | undefined;
@@ -131,6 +137,8 @@ export const ListFeePlanAgreementsRequest$outboundSchema: z.ZodType<
131
137
  z.ZodTypeDef,
132
138
  ListFeePlanAgreementsRequest
133
139
  > = z.object({
140
+ skip: z.number().int().optional(),
141
+ count: z.number().int().optional(),
134
142
  accountID: z.string(),
135
143
  agreementID: z.array(z.string()).optional(),
136
144
  status: z.array(components.FeePlanAgreementStatus$outboundSchema).optional(),
@@ -27,6 +27,8 @@ export type ListPartnerPricingAgreementsGlobals = {
27
27
  };
28
28
 
29
29
  export type ListPartnerPricingAgreementsRequest = {
30
+ skip?: number | undefined;
31
+ count?: number | undefined;
30
32
  accountID: string;
31
33
  /**
32
34
  * A comma-separated list of agreement IDs to filter the results by.
@@ -116,6 +118,8 @@ export const ListPartnerPricingAgreementsRequest$inboundSchema: z.ZodType<
116
118
  z.ZodTypeDef,
117
119
  unknown
118
120
  > = z.object({
121
+ skip: z.number().int().optional(),
122
+ count: z.number().int().optional(),
119
123
  accountID: z.string(),
120
124
  agreementID: z.array(z.string()).optional(),
121
125
  status: z.array(components.FeePlanAgreementStatus$inboundSchema).optional(),
@@ -123,6 +127,8 @@ export const ListPartnerPricingAgreementsRequest$inboundSchema: z.ZodType<
123
127
 
124
128
  /** @internal */
125
129
  export type ListPartnerPricingAgreementsRequest$Outbound = {
130
+ skip?: number | undefined;
131
+ count?: number | undefined;
126
132
  accountID: string;
127
133
  agreementID?: Array<string> | undefined;
128
134
  status?: Array<string> | undefined;
@@ -134,6 +140,8 @@ export const ListPartnerPricingAgreementsRequest$outboundSchema: z.ZodType<
134
140
  z.ZodTypeDef,
135
141
  ListPartnerPricingAgreementsRequest
136
142
  > = z.object({
143
+ skip: z.number().int().optional(),
144
+ count: z.number().int().optional(),
137
145
  accountID: z.string(),
138
146
  agreementID: z.array(z.string()).optional(),
139
147
  status: z.array(components.FeePlanAgreementStatus$outboundSchema).optional(),