@moovio/sdk 0.15.3 → 0.15.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.
- package/bin/mcp-server.js +60 -14
- package/bin/mcp-server.js.map +11 -9
- 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/mcp-server/mcp-server.js +1 -1
- package/mcp-server/server.js +1 -1
- package/models/components/fednowinstitution.d.ts +37 -0
- package/models/components/fednowinstitution.d.ts.map +1 -0
- package/models/components/fednowinstitution.js +74 -0
- package/models/components/fednowinstitution.js.map +1 -0
- package/models/components/fednowservices.d.ts +42 -0
- package/models/components/fednowservices.d.ts.map +1 -0
- package/models/components/fednowservices.js +73 -0
- package/models/components/fednowservices.js.map +1 -0
- package/models/components/index.d.ts +2 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +2 -0
- package/models/components/index.js.map +1 -1
- package/models/components/institutionssearchresponse.d.ts +3 -0
- package/models/components/institutionssearchresponse.d.ts.map +1 -1
- package/models/components/institutionssearchresponse.js +3 -0
- package/models/components/institutionssearchresponse.js.map +1 -1
- package/models/components/monthlyvolumerange.d.ts +18 -18
- package/models/components/monthlyvolumerange.js +6 -6
- 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 +1 -1
- package/src/models/components/fednowinstitution.ts +83 -0
- package/src/models/components/fednowservices.ts +79 -0
- package/src/models/components/index.ts +2 -0
- package/src/models/components/institutionssearchresponse.ts +10 -0
- package/src/models/components/monthlyvolumerange.ts +6 -6
|
@@ -0,0 +1,83 @@
|
|
|
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
|
+
import {
|
|
10
|
+
FedNowServices,
|
|
11
|
+
FedNowServices$inboundSchema,
|
|
12
|
+
FedNowServices$Outbound,
|
|
13
|
+
FedNowServices$outboundSchema,
|
|
14
|
+
} from "./fednowservices.js";
|
|
15
|
+
|
|
16
|
+
export type FedNowInstitution = {
|
|
17
|
+
/**
|
|
18
|
+
* Name of the financial institution.
|
|
19
|
+
*/
|
|
20
|
+
name: string;
|
|
21
|
+
routingNumber: string;
|
|
22
|
+
services: FedNowServices;
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
/** @internal */
|
|
26
|
+
export const FedNowInstitution$inboundSchema: z.ZodType<
|
|
27
|
+
FedNowInstitution,
|
|
28
|
+
z.ZodTypeDef,
|
|
29
|
+
unknown
|
|
30
|
+
> = z.object({
|
|
31
|
+
name: z.string(),
|
|
32
|
+
routingNumber: z.string(),
|
|
33
|
+
services: FedNowServices$inboundSchema,
|
|
34
|
+
});
|
|
35
|
+
|
|
36
|
+
/** @internal */
|
|
37
|
+
export type FedNowInstitution$Outbound = {
|
|
38
|
+
name: string;
|
|
39
|
+
routingNumber: string;
|
|
40
|
+
services: FedNowServices$Outbound;
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
/** @internal */
|
|
44
|
+
export const FedNowInstitution$outboundSchema: z.ZodType<
|
|
45
|
+
FedNowInstitution$Outbound,
|
|
46
|
+
z.ZodTypeDef,
|
|
47
|
+
FedNowInstitution
|
|
48
|
+
> = z.object({
|
|
49
|
+
name: z.string(),
|
|
50
|
+
routingNumber: z.string(),
|
|
51
|
+
services: FedNowServices$outboundSchema,
|
|
52
|
+
});
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* @internal
|
|
56
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
57
|
+
*/
|
|
58
|
+
export namespace FedNowInstitution$ {
|
|
59
|
+
/** @deprecated use `FedNowInstitution$inboundSchema` instead. */
|
|
60
|
+
export const inboundSchema = FedNowInstitution$inboundSchema;
|
|
61
|
+
/** @deprecated use `FedNowInstitution$outboundSchema` instead. */
|
|
62
|
+
export const outboundSchema = FedNowInstitution$outboundSchema;
|
|
63
|
+
/** @deprecated use `FedNowInstitution$Outbound` instead. */
|
|
64
|
+
export type Outbound = FedNowInstitution$Outbound;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export function fedNowInstitutionToJSON(
|
|
68
|
+
fedNowInstitution: FedNowInstitution,
|
|
69
|
+
): string {
|
|
70
|
+
return JSON.stringify(
|
|
71
|
+
FedNowInstitution$outboundSchema.parse(fedNowInstitution),
|
|
72
|
+
);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export function fedNowInstitutionFromJSON(
|
|
76
|
+
jsonString: string,
|
|
77
|
+
): SafeParseResult<FedNowInstitution, SDKValidationError> {
|
|
78
|
+
return safeParse(
|
|
79
|
+
jsonString,
|
|
80
|
+
(x) => FedNowInstitution$inboundSchema.parse(JSON.parse(x)),
|
|
81
|
+
`Failed to parse 'FedNowInstitution' from JSON`,
|
|
82
|
+
);
|
|
83
|
+
}
|
|
@@ -0,0 +1,79 @@
|
|
|
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 FedNowServices = {
|
|
11
|
+
/**
|
|
12
|
+
* Indicates if the institution can receive instant payments.
|
|
13
|
+
*/
|
|
14
|
+
receivePayments: boolean;
|
|
15
|
+
/**
|
|
16
|
+
* Indicates if the institution can send instant payments.
|
|
17
|
+
*/
|
|
18
|
+
sendPayments: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* Indicates if the institution can process request for payment messages.
|
|
21
|
+
*/
|
|
22
|
+
requestForPayment: boolean;
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
/** @internal */
|
|
26
|
+
export const FedNowServices$inboundSchema: z.ZodType<
|
|
27
|
+
FedNowServices,
|
|
28
|
+
z.ZodTypeDef,
|
|
29
|
+
unknown
|
|
30
|
+
> = z.object({
|
|
31
|
+
receivePayments: z.boolean(),
|
|
32
|
+
sendPayments: z.boolean(),
|
|
33
|
+
requestForPayment: z.boolean(),
|
|
34
|
+
});
|
|
35
|
+
|
|
36
|
+
/** @internal */
|
|
37
|
+
export type FedNowServices$Outbound = {
|
|
38
|
+
receivePayments: boolean;
|
|
39
|
+
sendPayments: boolean;
|
|
40
|
+
requestForPayment: boolean;
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
/** @internal */
|
|
44
|
+
export const FedNowServices$outboundSchema: z.ZodType<
|
|
45
|
+
FedNowServices$Outbound,
|
|
46
|
+
z.ZodTypeDef,
|
|
47
|
+
FedNowServices
|
|
48
|
+
> = z.object({
|
|
49
|
+
receivePayments: z.boolean(),
|
|
50
|
+
sendPayments: z.boolean(),
|
|
51
|
+
requestForPayment: z.boolean(),
|
|
52
|
+
});
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* @internal
|
|
56
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
57
|
+
*/
|
|
58
|
+
export namespace FedNowServices$ {
|
|
59
|
+
/** @deprecated use `FedNowServices$inboundSchema` instead. */
|
|
60
|
+
export const inboundSchema = FedNowServices$inboundSchema;
|
|
61
|
+
/** @deprecated use `FedNowServices$outboundSchema` instead. */
|
|
62
|
+
export const outboundSchema = FedNowServices$outboundSchema;
|
|
63
|
+
/** @deprecated use `FedNowServices$Outbound` instead. */
|
|
64
|
+
export type Outbound = FedNowServices$Outbound;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export function fedNowServicesToJSON(fedNowServices: FedNowServices): string {
|
|
68
|
+
return JSON.stringify(FedNowServices$outboundSchema.parse(fedNowServices));
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export function fedNowServicesFromJSON(
|
|
72
|
+
jsonString: string,
|
|
73
|
+
): SafeParseResult<FedNowServices, SDKValidationError> {
|
|
74
|
+
return safeParse(
|
|
75
|
+
jsonString,
|
|
76
|
+
(x) => FedNowServices$inboundSchema.parse(JSON.parse(x)),
|
|
77
|
+
`Failed to parse 'FedNowServices' from JSON`,
|
|
78
|
+
);
|
|
79
|
+
}
|
|
@@ -187,6 +187,8 @@ export * from "./evidencetextresponse.js";
|
|
|
187
187
|
export * from "./evidencetype.js";
|
|
188
188
|
export * from "./evidenceuploadresponse.js";
|
|
189
189
|
export * from "./facilitatorfee.js";
|
|
190
|
+
export * from "./fednowinstitution.js";
|
|
191
|
+
export * from "./fednowservices.js";
|
|
190
192
|
export * from "./feecategory.js";
|
|
191
193
|
export * from "./feemodel.js";
|
|
192
194
|
export * from "./feeplan.js";
|
|
@@ -12,6 +12,12 @@ import {
|
|
|
12
12
|
ACHInstitution$Outbound,
|
|
13
13
|
ACHInstitution$outboundSchema,
|
|
14
14
|
} from "./achinstitution.js";
|
|
15
|
+
import {
|
|
16
|
+
FedNowInstitution,
|
|
17
|
+
FedNowInstitution$inboundSchema,
|
|
18
|
+
FedNowInstitution$Outbound,
|
|
19
|
+
FedNowInstitution$outboundSchema,
|
|
20
|
+
} from "./fednowinstitution.js";
|
|
15
21
|
import {
|
|
16
22
|
RTPInstitution,
|
|
17
23
|
RTPInstitution$inboundSchema,
|
|
@@ -29,6 +35,7 @@ export type InstitutionsSearchResponse = {
|
|
|
29
35
|
ach: Array<ACHInstitution> | null;
|
|
30
36
|
rtp: Array<RTPInstitution> | null;
|
|
31
37
|
wire: Array<WireInstitution> | null;
|
|
38
|
+
fednow: Array<FedNowInstitution> | null;
|
|
32
39
|
};
|
|
33
40
|
|
|
34
41
|
/** @internal */
|
|
@@ -40,6 +47,7 @@ export const InstitutionsSearchResponse$inboundSchema: z.ZodType<
|
|
|
40
47
|
ach: z.nullable(z.array(ACHInstitution$inboundSchema)),
|
|
41
48
|
rtp: z.nullable(z.array(RTPInstitution$inboundSchema)),
|
|
42
49
|
wire: z.nullable(z.array(WireInstitution$inboundSchema)),
|
|
50
|
+
fednow: z.nullable(z.array(FedNowInstitution$inboundSchema)),
|
|
43
51
|
});
|
|
44
52
|
|
|
45
53
|
/** @internal */
|
|
@@ -47,6 +55,7 @@ export type InstitutionsSearchResponse$Outbound = {
|
|
|
47
55
|
ach: Array<ACHInstitution$Outbound> | null;
|
|
48
56
|
rtp: Array<RTPInstitution$Outbound> | null;
|
|
49
57
|
wire: Array<WireInstitution$Outbound> | null;
|
|
58
|
+
fednow: Array<FedNowInstitution$Outbound> | null;
|
|
50
59
|
};
|
|
51
60
|
|
|
52
61
|
/** @internal */
|
|
@@ -58,6 +67,7 @@ export const InstitutionsSearchResponse$outboundSchema: z.ZodType<
|
|
|
58
67
|
ach: z.nullable(z.array(ACHInstitution$outboundSchema)),
|
|
59
68
|
rtp: z.nullable(z.array(RTPInstitution$outboundSchema)),
|
|
60
69
|
wire: z.nullable(z.array(WireInstitution$outboundSchema)),
|
|
70
|
+
fednow: z.nullable(z.array(FedNowInstitution$outboundSchema)),
|
|
61
71
|
});
|
|
62
72
|
|
|
63
73
|
/**
|
|
@@ -10,12 +10,12 @@ import { ClosedEnum } from "../../types/enums.js";
|
|
|
10
10
|
*/
|
|
11
11
|
export const MonthlyVolumeRange = {
|
|
12
12
|
Under10k: "under-10k",
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
13
|
+
Tenk50k: "10k-50k",
|
|
14
|
+
Fiftyk100k: "50k-100k",
|
|
15
|
+
OneHundredk250k: "100k-250k",
|
|
16
|
+
TwoHundredAndFiftyk500k: "250k-500k",
|
|
17
|
+
FiveHundredk1m: "500k-1m",
|
|
18
|
+
Onem5m: "1m-5m",
|
|
19
19
|
Over5m: "over-5m",
|
|
20
20
|
} as const;
|
|
21
21
|
/**
|