@moovio/sdk 0.5.3 → 0.5.4

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 (58) hide show
  1. package/bin/mcp-server.js +79 -73
  2. package/bin/mcp-server.js.map +15 -15
  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/mcp-server.js +1 -1
  12. package/mcp-server/server.js +1 -1
  13. package/models/components/feecategory.d.ts +15 -12
  14. package/models/components/feecategory.d.ts.map +1 -1
  15. package/models/components/feecategory.js +5 -4
  16. package/models/components/feecategory.js.map +1 -1
  17. package/models/components/governmentid.d.ts +30 -30
  18. package/models/components/governmentid.d.ts.map +1 -1
  19. package/models/components/governmentid.js +35 -38
  20. package/models/components/governmentid.js.map +1 -1
  21. package/models/components/governmentiderror.d.ts +30 -30
  22. package/models/components/governmentiderror.d.ts.map +1 -1
  23. package/models/components/governmentiderror.js +38 -35
  24. package/models/components/governmentiderror.js.map +1 -1
  25. package/models/components/onboardinginvite.d.ts +6 -1
  26. package/models/components/onboardinginvite.d.ts.map +1 -1
  27. package/models/components/onboardinginvite.js +3 -10
  28. package/models/components/onboardinginvite.js.map +1 -1
  29. package/models/components/taxid.d.ts +15 -15
  30. package/models/components/taxid.d.ts.map +1 -1
  31. package/models/components/taxid.js +18 -20
  32. package/models/components/taxid.js.map +1 -1
  33. package/models/components/taxidupdate.d.ts +15 -15
  34. package/models/components/taxidupdate.d.ts.map +1 -1
  35. package/models/components/taxidupdate.js +20 -18
  36. package/models/components/taxidupdate.js.map +1 -1
  37. package/models/operations/listfeeplanagreements.d.ts +4 -0
  38. package/models/operations/listfeeplanagreements.d.ts.map +1 -1
  39. package/models/operations/listfeeplanagreements.js +4 -0
  40. package/models/operations/listfeeplanagreements.js.map +1 -1
  41. package/models/operations/listpartnerpricingagreements.d.ts +4 -0
  42. package/models/operations/listpartnerpricingagreements.d.ts.map +1 -1
  43. package/models/operations/listpartnerpricingagreements.js +4 -0
  44. package/models/operations/listpartnerpricingagreements.js.map +1 -1
  45. package/package.json +1 -1
  46. package/src/funcs/feePlansListFeePlanAgreements.ts +2 -0
  47. package/src/funcs/feePlansListPartnerPricingAgreements.ts +2 -0
  48. package/src/lib/config.ts +3 -3
  49. package/src/mcp-server/mcp-server.ts +1 -1
  50. package/src/mcp-server/server.ts +1 -1
  51. package/src/models/components/feecategory.ts +5 -4
  52. package/src/models/components/governmentid.ts +76 -58
  53. package/src/models/components/governmentiderror.ts +58 -78
  54. package/src/models/components/onboardinginvite.ts +9 -11
  55. package/src/models/components/taxid.ts +33 -27
  56. package/src/models/components/taxidupdate.ts +27 -33
  57. package/src/models/operations/listfeeplanagreements.ts +8 -0
  58. package/src/models/operations/listpartnerpricingagreements.ts +8 -0
@@ -3,7 +3,6 @@
3
3
  */
4
4
 
5
5
  import * as z from "zod";
6
- import { remap as remap$ } from "../../lib/primitives.js";
7
6
  import { safeParse } from "../../lib/schemas.js";
8
7
  import { Result as SafeParseResult } from "../../types/fp.js";
9
8
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
@@ -65,6 +64,10 @@ export type OnboardingInvite = {
65
64
  * List of fee plan codes to assign the account created by the invitee.
66
65
  */
67
66
  feePlanCodes: Array<string>;
67
+ /**
68
+ * The account ID of the account that redeemed the invite.
69
+ */
70
+ redeemedAccountID?: string | undefined;
68
71
  prefill?: CreateAccount | undefined;
69
72
  /**
70
73
  * The account that created the onboarding invite.
@@ -84,10 +87,11 @@ export const OnboardingInvite$inboundSchema: z.ZodType<
84
87
  code: z.string(),
85
88
  link: z.string(),
86
89
  returnURL: z.string().optional(),
87
- TermsOfServiceURL: z.string().optional(),
90
+ termsOfServiceURL: z.string().optional(),
88
91
  scopes: z.array(ApplicationScope$inboundSchema),
89
92
  capabilities: z.array(CapabilityID$inboundSchema),
90
93
  feePlanCodes: z.array(z.string()),
94
+ redeemedAccountID: z.string().optional(),
91
95
  prefill: CreateAccount$inboundSchema.optional(),
92
96
  partner: OnboardingPartnerAccount$inboundSchema.optional(),
93
97
  createdOn: z.string().datetime({ offset: true }).transform(v => new Date(v)),
@@ -95,10 +99,6 @@ export const OnboardingInvite$inboundSchema: z.ZodType<
95
99
  .optional(),
96
100
  redeemedOn: z.string().datetime({ offset: true }).transform(v => new Date(v))
97
101
  .optional(),
98
- }).transform((v) => {
99
- return remap$(v, {
100
- "TermsOfServiceURL": "termsOfServiceURL",
101
- });
102
102
  });
103
103
 
104
104
  /** @internal */
@@ -106,10 +106,11 @@ export type OnboardingInvite$Outbound = {
106
106
  code: string;
107
107
  link: string;
108
108
  returnURL?: string | undefined;
109
- TermsOfServiceURL?: string | undefined;
109
+ termsOfServiceURL?: string | undefined;
110
110
  scopes: Array<string>;
111
111
  capabilities: Array<string>;
112
112
  feePlanCodes: Array<string>;
113
+ redeemedAccountID?: string | undefined;
113
114
  prefill?: CreateAccount$Outbound | undefined;
114
115
  partner?: OnboardingPartnerAccount$Outbound | undefined;
115
116
  createdOn: string;
@@ -130,15 +131,12 @@ export const OnboardingInvite$outboundSchema: z.ZodType<
130
131
  scopes: z.array(ApplicationScope$outboundSchema),
131
132
  capabilities: z.array(CapabilityID$outboundSchema),
132
133
  feePlanCodes: z.array(z.string()),
134
+ redeemedAccountID: z.string().optional(),
133
135
  prefill: CreateAccount$outboundSchema.optional(),
134
136
  partner: OnboardingPartnerAccount$outboundSchema.optional(),
135
137
  createdOn: z.date().transform(v => v.toISOString()),
136
138
  revokedOn: z.date().transform(v => v.toISOString()).optional(),
137
139
  redeemedOn: z.date().transform(v => v.toISOString()).optional(),
138
- }).transform((v) => {
139
- return remap$(v, {
140
- termsOfServiceURL: "TermsOfServiceURL",
141
- });
142
140
  });
143
141
 
144
142
  /**
@@ -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 Ein = {
10
+ export type TaxIDEin = {
11
11
  number: string;
12
12
  };
13
13
 
@@ -15,62 +15,68 @@ export type Ein = {
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 TaxID = {
18
- ein: Ein;
18
+ ein: TaxIDEin;
19
19
  };
20
20
 
21
21
  /** @internal */
22
- export const Ein$inboundSchema: z.ZodType<Ein, z.ZodTypeDef, unknown> = z
23
- .object({
24
- number: z.string(),
25
- });
22
+ export const TaxIDEin$inboundSchema: z.ZodType<
23
+ TaxIDEin,
24
+ z.ZodTypeDef,
25
+ unknown
26
+ > = z.object({
27
+ number: z.string(),
28
+ });
26
29
 
27
30
  /** @internal */
28
- export type Ein$Outbound = {
31
+ export type TaxIDEin$Outbound = {
29
32
  number: string;
30
33
  };
31
34
 
32
35
  /** @internal */
33
- export const Ein$outboundSchema: z.ZodType<Ein$Outbound, z.ZodTypeDef, Ein> = z
34
- .object({
35
- number: z.string(),
36
- });
36
+ export const TaxIDEin$outboundSchema: z.ZodType<
37
+ TaxIDEin$Outbound,
38
+ z.ZodTypeDef,
39
+ TaxIDEin
40
+ > = z.object({
41
+ number: z.string(),
42
+ });
37
43
 
38
44
  /**
39
45
  * @internal
40
46
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
41
47
  */
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;
48
+ export namespace TaxIDEin$ {
49
+ /** @deprecated use `TaxIDEin$inboundSchema` instead. */
50
+ export const inboundSchema = TaxIDEin$inboundSchema;
51
+ /** @deprecated use `TaxIDEin$outboundSchema` instead. */
52
+ export const outboundSchema = TaxIDEin$outboundSchema;
53
+ /** @deprecated use `TaxIDEin$Outbound` instead. */
54
+ export type Outbound = TaxIDEin$Outbound;
49
55
  }
50
56
 
51
- export function einToJSON(ein: Ein): string {
52
- return JSON.stringify(Ein$outboundSchema.parse(ein));
57
+ export function taxIDEinToJSON(taxIDEin: TaxIDEin): string {
58
+ return JSON.stringify(TaxIDEin$outboundSchema.parse(taxIDEin));
53
59
  }
54
60
 
55
- export function einFromJSON(
61
+ export function taxIDEinFromJSON(
56
62
  jsonString: string,
57
- ): SafeParseResult<Ein, SDKValidationError> {
63
+ ): SafeParseResult<TaxIDEin, SDKValidationError> {
58
64
  return safeParse(
59
65
  jsonString,
60
- (x) => Ein$inboundSchema.parse(JSON.parse(x)),
61
- `Failed to parse 'Ein' from JSON`,
66
+ (x) => TaxIDEin$inboundSchema.parse(JSON.parse(x)),
67
+ `Failed to parse 'TaxIDEin' from JSON`,
62
68
  );
63
69
  }
64
70
 
65
71
  /** @internal */
66
72
  export const TaxID$inboundSchema: z.ZodType<TaxID, z.ZodTypeDef, unknown> = z
67
73
  .object({
68
- ein: z.lazy(() => Ein$inboundSchema),
74
+ ein: z.lazy(() => TaxIDEin$inboundSchema),
69
75
  });
70
76
 
71
77
  /** @internal */
72
78
  export type TaxID$Outbound = {
73
- ein: Ein$Outbound;
79
+ ein: TaxIDEin$Outbound;
74
80
  };
75
81
 
76
82
  /** @internal */
@@ -79,7 +85,7 @@ export const TaxID$outboundSchema: z.ZodType<
79
85
  z.ZodTypeDef,
80
86
  TaxID
81
87
  > = z.object({
82
- ein: z.lazy(() => Ein$outboundSchema),
88
+ ein: z.lazy(() => TaxIDEin$outboundSchema),
83
89
  });
84
90
 
85
91
  /**
@@ -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(),