@moovio/sdk 26.7.0-dev.4 → 26.7.0-dev.6

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 (195) hide show
  1. package/README.md +81 -61
  2. package/bin/mcp-server.js +1314 -958
  3. package/bin/mcp-server.js.map +44 -34
  4. package/funcs/bankAccountsLink.d.ts +1 -1
  5. package/funcs/bankAccountsLink.js +1 -1
  6. package/funcs/depositViewCreate.d.ts +22 -0
  7. package/funcs/depositViewCreate.d.ts.map +1 -0
  8. package/funcs/depositViewCreate.js +136 -0
  9. package/funcs/depositViewCreate.js.map +1 -0
  10. package/jsr.json +1 -1
  11. package/lib/config.d.ts +3 -3
  12. package/lib/config.js +3 -3
  13. package/lib/http.d.ts +1 -1
  14. package/lib/http.d.ts.map +1 -1
  15. package/lib/http.js +1 -1
  16. package/lib/http.js.map +1 -1
  17. package/lib/security.d.ts +5 -4
  18. package/lib/security.d.ts.map +1 -1
  19. package/lib/security.js +6 -7
  20. package/lib/security.js.map +1 -1
  21. package/mcp-server/mcp-server.js +1 -1
  22. package/mcp-server/server.d.ts.map +1 -1
  23. package/mcp-server/server.js +3 -1
  24. package/mcp-server/server.js.map +1 -1
  25. package/mcp-server/tools/bankAccountsLink.js +1 -1
  26. package/mcp-server/tools/depositViewCreate.d.ts +8 -0
  27. package/mcp-server/tools/depositViewCreate.d.ts.map +1 -0
  28. package/mcp-server/tools/depositViewCreate.js +69 -0
  29. package/mcp-server/tools/depositViewCreate.js.map +1 -0
  30. package/models/components/capabilityid.d.ts +1 -0
  31. package/models/components/capabilityid.d.ts.map +1 -1
  32. package/models/components/capabilityid.js +1 -0
  33. package/models/components/capabilityid.js.map +1 -1
  34. package/models/components/cardbrandfees.d.ts +5 -0
  35. package/models/components/cardbrandfees.d.ts.map +1 -1
  36. package/models/components/cardbrandfees.js +2 -0
  37. package/models/components/cardbrandfees.js.map +1 -1
  38. package/models/components/cardtransactiondetails.d.ts +7 -0
  39. package/models/components/cardtransactiondetails.d.ts.map +1 -1
  40. package/models/components/cardtransactiondetails.js +4 -0
  41. package/models/components/cardtransactiondetails.js.map +1 -1
  42. package/models/components/cardtransactionstatus.d.ts +1 -0
  43. package/models/components/cardtransactionstatus.d.ts.map +1 -1
  44. package/models/components/cardtransactionstatus.js +1 -0
  45. package/models/components/cardtransactionstatus.js.map +1 -1
  46. package/models/components/createtransferdestinationcard.d.ts +5 -0
  47. package/models/components/createtransferdestinationcard.d.ts.map +1 -1
  48. package/models/components/createtransferdestinationcard.js +2 -0
  49. package/models/components/createtransferdestinationcard.js.map +1 -1
  50. package/models/components/depositaccountingestedresponse.d.ts +39 -0
  51. package/models/components/depositaccountingestedresponse.d.ts.map +1 -0
  52. package/models/components/depositaccountingestedresponse.js +66 -0
  53. package/models/components/depositaccountingestedresponse.js.map +1 -0
  54. package/models/components/fullissuedcard.d.ts +1 -3
  55. package/models/components/fullissuedcard.d.ts.map +1 -1
  56. package/models/components/fullissuedcard.js.map +1 -1
  57. package/models/components/index.d.ts +6 -0
  58. package/models/components/index.d.ts.map +1 -1
  59. package/models/components/index.js +6 -0
  60. package/models/components/index.js.map +1 -1
  61. package/models/components/invoice.d.ts +5 -0
  62. package/models/components/invoice.d.ts.map +1 -1
  63. package/models/components/invoice.js +2 -0
  64. package/models/components/invoice.js.map +1 -1
  65. package/models/components/issuedcard.d.ts +1 -3
  66. package/models/components/issuedcard.d.ts.map +1 -1
  67. package/models/components/issuedcard.js.map +1 -1
  68. package/models/components/issuedcardstate.d.ts +2 -8
  69. package/models/components/issuedcardstate.d.ts.map +1 -1
  70. package/models/components/issuedcardstate.js +1 -5
  71. package/models/components/issuedcardstate.js.map +1 -1
  72. package/models/components/manualtermsofservice.d.ts +1 -1
  73. package/models/components/manualtermsofserviceupdate.d.ts +1 -1
  74. package/models/components/patchtransfer.d.ts +5 -2
  75. package/models/components/patchtransfer.d.ts.map +1 -1
  76. package/models/components/patchtransfer.js +2 -2
  77. package/models/components/patchtransfer.js.map +1 -1
  78. package/models/components/patchwallet.d.ts +4 -7
  79. package/models/components/patchwallet.d.ts.map +1 -1
  80. package/models/components/patchwallet.js +4 -4
  81. package/models/components/patchwallet.js.map +1 -1
  82. package/models/components/paymentlinkpayoutdetails.d.ts +11 -0
  83. package/models/components/paymentlinkpayoutdetails.d.ts.map +1 -1
  84. package/models/components/paymentlinkpayoutdetails.js +3 -0
  85. package/models/components/paymentlinkpayoutdetails.js.map +1 -1
  86. package/models/components/paymentlinkpayoutdetailsupdate.d.ts +11 -0
  87. package/models/components/paymentlinkpayoutdetailsupdate.d.ts.map +1 -1
  88. package/models/components/paymentlinkpayoutdetailsupdate.js +3 -0
  89. package/models/components/paymentlinkpayoutdetailsupdate.js.map +1 -1
  90. package/models/components/paymentmethodscard.d.ts +8 -0
  91. package/models/components/paymentmethodscard.d.ts.map +1 -1
  92. package/models/components/paymentmethodscard.js +2 -0
  93. package/models/components/paymentmethodscard.js.map +1 -1
  94. package/models/components/payoutdetailserror.d.ts +3 -0
  95. package/models/components/payoutdetailserror.d.ts.map +1 -1
  96. package/models/components/payoutdetailserror.js +3 -0
  97. package/models/components/payoutdetailserror.js.map +1 -1
  98. package/models/components/pushdeliveryspeed.d.ts +18 -0
  99. package/models/components/pushdeliveryspeed.d.ts.map +1 -0
  100. package/models/components/pushdeliveryspeed.js +52 -0
  101. package/models/components/pushdeliveryspeed.js.map +1 -0
  102. package/models/components/pushoptions.d.ts +35 -0
  103. package/models/components/pushoptions.d.ts.map +1 -0
  104. package/models/components/pushoptions.js +62 -0
  105. package/models/components/pushoptions.js.map +1 -0
  106. package/models/components/pushoptionserror.d.ts +19 -0
  107. package/models/components/pushoptionserror.d.ts.map +1 -0
  108. package/models/components/pushoptionserror.js +61 -0
  109. package/models/components/pushoptionserror.js.map +1 -0
  110. package/models/components/pushoptionsupdate.d.ts +35 -0
  111. package/models/components/pushoptionsupdate.d.ts.map +1 -0
  112. package/models/components/pushoptionsupdate.js +62 -0
  113. package/models/components/pushoptionsupdate.js.map +1 -0
  114. package/models/components/sourcesystem.d.ts +29 -0
  115. package/models/components/sourcesystem.d.ts.map +1 -0
  116. package/models/components/sourcesystem.js +58 -0
  117. package/models/components/sourcesystem.js.map +1 -0
  118. package/models/components/termsofservice.d.ts +1 -1
  119. package/models/components/updatepaymentlinkamountdetails.d.ts +60 -5
  120. package/models/components/updatepaymentlinkamountdetails.d.ts.map +1 -1
  121. package/models/components/updatepaymentlinkamountdetails.js +43 -6
  122. package/models/components/updatepaymentlinkamountdetails.js.map +1 -1
  123. package/models/errors/depositaccountvalidationerror.d.ts +41 -0
  124. package/models/errors/depositaccountvalidationerror.d.ts.map +1 -0
  125. package/models/errors/depositaccountvalidationerror.js +81 -0
  126. package/models/errors/depositaccountvalidationerror.js.map +1 -0
  127. package/models/errors/index.d.ts +1 -0
  128. package/models/errors/index.d.ts.map +1 -1
  129. package/models/errors/index.js +1 -0
  130. package/models/errors/index.js.map +1 -1
  131. package/models/operations/createdepositaccount.d.ts +44 -0
  132. package/models/operations/createdepositaccount.d.ts.map +1 -0
  133. package/models/operations/createdepositaccount.js +113 -0
  134. package/models/operations/createdepositaccount.js.map +1 -0
  135. package/models/operations/index.d.ts +1 -0
  136. package/models/operations/index.d.ts.map +1 -1
  137. package/models/operations/index.js +1 -0
  138. package/models/operations/index.js.map +1 -1
  139. package/models/operations/linkbankaccount.d.ts +1 -1
  140. package/models/operations/listissuedcards.d.ts +1 -1
  141. package/package.json +1 -1
  142. package/sdk/bankaccounts.d.ts +1 -1
  143. package/sdk/bankaccounts.js +1 -1
  144. package/sdk/depositview.d.ts +16 -0
  145. package/sdk/depositview.d.ts.map +1 -0
  146. package/sdk/depositview.js +26 -0
  147. package/sdk/depositview.js.map +1 -0
  148. package/sdk/sdk.d.ts +3 -0
  149. package/sdk/sdk.d.ts.map +1 -1
  150. package/sdk/sdk.js +4 -0
  151. package/sdk/sdk.js.map +1 -1
  152. package/src/funcs/bankAccountsLink.ts +1 -1
  153. package/src/funcs/depositViewCreate.ts +201 -0
  154. package/src/lib/config.ts +3 -3
  155. package/src/lib/http.ts +3 -1
  156. package/src/lib/security.ts +10 -5
  157. package/src/mcp-server/mcp-server.ts +1 -1
  158. package/src/mcp-server/server.ts +3 -1
  159. package/src/mcp-server/tools/bankAccountsLink.ts +1 -1
  160. package/src/mcp-server/tools/depositViewCreate.ts +43 -0
  161. package/src/models/components/capabilityid.ts +1 -0
  162. package/src/models/components/cardbrandfees.ts +7 -0
  163. package/src/models/components/cardtransactiondetails.ts +11 -0
  164. package/src/models/components/cardtransactionstatus.ts +1 -0
  165. package/src/models/components/createtransferdestinationcard.ts +7 -0
  166. package/src/models/components/depositaccountingestedresponse.ts +86 -0
  167. package/src/models/components/fullissuedcard.ts +1 -3
  168. package/src/models/components/index.ts +6 -0
  169. package/src/models/components/invoice.ts +7 -0
  170. package/src/models/components/issuedcard.ts +1 -3
  171. package/src/models/components/issuedcardstate.ts +2 -8
  172. package/src/models/components/manualtermsofservice.ts +1 -1
  173. package/src/models/components/manualtermsofserviceupdate.ts +1 -1
  174. package/src/models/components/patchtransfer.ts +7 -4
  175. package/src/models/components/patchwallet.ts +8 -11
  176. package/src/models/components/paymentlinkpayoutdetails.ts +18 -0
  177. package/src/models/components/paymentlinkpayoutdetailsupdate.ts +18 -0
  178. package/src/models/components/paymentmethodscard.ts +10 -0
  179. package/src/models/components/payoutdetailserror.ts +10 -0
  180. package/src/models/components/pushdeliveryspeed.ts +32 -0
  181. package/src/models/components/pushoptions.ts +72 -0
  182. package/src/models/components/pushoptionserror.ts +56 -0
  183. package/src/models/components/pushoptionsupdate.ts +76 -0
  184. package/src/models/components/sourcesystem.ts +43 -0
  185. package/src/models/components/termsofservice.ts +1 -1
  186. package/src/models/components/updatepaymentlinkamountdetails.ts +114 -14
  187. package/src/models/errors/depositaccountvalidationerror.ts +86 -0
  188. package/src/models/errors/index.ts +1 -0
  189. package/src/models/operations/createdepositaccount.ts +146 -0
  190. package/src/models/operations/index.ts +1 -0
  191. package/src/models/operations/linkbankaccount.ts +1 -1
  192. package/src/models/operations/listissuedcards.ts +1 -1
  193. package/src/sdk/bankaccounts.ts +1 -1
  194. package/src/sdk/depositview.ts +31 -0
  195. package/src/sdk/sdk.ts +6 -0
@@ -0,0 +1,201 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import { MoovCore } from "../core.js";
6
+ import { encodeSimple } from "../lib/encodings.js";
7
+ import { matchStatusCode } from "../lib/http.js";
8
+ import * as M from "../lib/matchers.js";
9
+ import { compactMap } from "../lib/primitives.js";
10
+ import { safeParse } from "../lib/schemas.js";
11
+ import { RequestOptions } from "../lib/sdks.js";
12
+ import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
13
+ import { pathToFunc } from "../lib/url.js";
14
+ import {
15
+ ConnectionError,
16
+ InvalidRequestError,
17
+ RequestAbortedError,
18
+ RequestTimeoutError,
19
+ UnexpectedClientError,
20
+ } from "../models/errors/httpclienterrors.js";
21
+ import * as errors from "../models/errors/index.js";
22
+ import { MoovError } from "../models/errors/mooverror.js";
23
+ import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
24
+ import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
25
+ import * as operations from "../models/operations/index.js";
26
+ import { APICall, APIPromise } from "../types/async.js";
27
+ import { Result } from "../types/fp.js";
28
+
29
+ /**
30
+ * Ingest a deposit account into the deposit view from a core banking source system.
31
+ *
32
+ * The request body is a raw byte payload whose format depends on the core banking
33
+ * system that produced it. Set the `X-Source-System` header to identify that system
34
+ * so the payload can be parsed correctly.
35
+ *
36
+ * To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
37
+ * you'll need to specify the `/accounts/{accountID}/profile.write` scope.
38
+ */
39
+ export function depositViewCreate(
40
+ client: MoovCore,
41
+ request: operations.CreateDepositAccountRequest,
42
+ options?: RequestOptions,
43
+ ): APIPromise<
44
+ Result<
45
+ operations.CreateDepositAccountResponse,
46
+ | errors.GenericError
47
+ | errors.DepositAccountValidationError
48
+ | MoovError
49
+ | ResponseValidationError
50
+ | ConnectionError
51
+ | RequestAbortedError
52
+ | RequestTimeoutError
53
+ | InvalidRequestError
54
+ | UnexpectedClientError
55
+ | SDKValidationError
56
+ >
57
+ > {
58
+ return new APIPromise($do(
59
+ client,
60
+ request,
61
+ options,
62
+ ));
63
+ }
64
+
65
+ async function $do(
66
+ client: MoovCore,
67
+ request: operations.CreateDepositAccountRequest,
68
+ options?: RequestOptions,
69
+ ): Promise<
70
+ [
71
+ Result<
72
+ operations.CreateDepositAccountResponse,
73
+ | errors.GenericError
74
+ | errors.DepositAccountValidationError
75
+ | MoovError
76
+ | ResponseValidationError
77
+ | ConnectionError
78
+ | RequestAbortedError
79
+ | RequestTimeoutError
80
+ | InvalidRequestError
81
+ | UnexpectedClientError
82
+ | SDKValidationError
83
+ >,
84
+ APICall,
85
+ ]
86
+ > {
87
+ const parsed = safeParse(
88
+ request,
89
+ (value) =>
90
+ operations.CreateDepositAccountRequest$outboundSchema.parse(value),
91
+ "Input validation failed",
92
+ );
93
+ if (!parsed.ok) {
94
+ return [parsed, { status: "invalid" }];
95
+ }
96
+ const payload = parsed.value;
97
+ const body = payload.RequestBody instanceof Uint8Array
98
+ ? new Uint8Array(payload.RequestBody).buffer
99
+ : payload.RequestBody;
100
+
101
+ const pathParams = {
102
+ accountID: encodeSimple("accountID", payload.accountID, {
103
+ explode: false,
104
+ charEncoding: "percent",
105
+ }),
106
+ };
107
+ const path = pathToFunc("/underwriting/{accountID}/deposit-accounts")(
108
+ pathParams,
109
+ );
110
+
111
+ const headers = new Headers(compactMap({
112
+ "Content-Type": "application/octet-stream",
113
+ Accept: "application/json",
114
+ "X-Source-System": encodeSimple(
115
+ "X-Source-System",
116
+ payload["X-Source-System"],
117
+ { explode: false, charEncoding: "none" },
118
+ ),
119
+ }));
120
+
121
+ const securityInput = await extractSecurity(client._options.security);
122
+ const requestSecurity = resolveGlobalSecurity(securityInput);
123
+
124
+ const context = {
125
+ options: client._options,
126
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
127
+ operationID: "createDepositAccount",
128
+ oAuth2Scopes: null,
129
+
130
+ resolvedSecurity: requestSecurity,
131
+
132
+ securitySource: client._options.security,
133
+ retryConfig: options?.retries
134
+ || client._options.retryConfig
135
+ || { strategy: "none" },
136
+ retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
137
+ };
138
+
139
+ const requestRes = client._createRequest(context, {
140
+ security: requestSecurity,
141
+ method: "POST",
142
+ baseURL: options?.serverURL,
143
+ path: path,
144
+ headers: headers,
145
+ body: body,
146
+ userAgent: client._options.userAgent,
147
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
148
+ }, options);
149
+ if (!requestRes.ok) {
150
+ return [requestRes, { status: "invalid" }];
151
+ }
152
+ const req = requestRes.value;
153
+
154
+ const doResult = await client._do(req, {
155
+ context,
156
+ isErrorStatusCode: (statusCode: number) =>
157
+ matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
158
+ retryConfig: context.retryConfig,
159
+ retryCodes: context.retryCodes,
160
+ });
161
+ if (!doResult.ok) {
162
+ return [doResult, { status: "request-error", request: req }];
163
+ }
164
+ const response = doResult.value;
165
+
166
+ const responseFields = {
167
+ HttpMeta: { Response: response, Request: req },
168
+ };
169
+
170
+ const [result] = await M.match<
171
+ operations.CreateDepositAccountResponse,
172
+ | errors.GenericError
173
+ | errors.DepositAccountValidationError
174
+ | MoovError
175
+ | ResponseValidationError
176
+ | ConnectionError
177
+ | RequestAbortedError
178
+ | RequestTimeoutError
179
+ | InvalidRequestError
180
+ | UnexpectedClientError
181
+ | SDKValidationError
182
+ >(
183
+ M.json(200, operations.CreateDepositAccountResponse$inboundSchema, {
184
+ hdrs: true,
185
+ key: "Result",
186
+ }),
187
+ M.jsonErr([400, 409], errors.GenericError$inboundSchema, { hdrs: true }),
188
+ M.jsonErr(422, errors.DepositAccountValidationError$inboundSchema, {
189
+ hdrs: true,
190
+ }),
191
+ M.fail([401, 403, 404, 429]),
192
+ M.fail([500, 504]),
193
+ M.fail("4XX"),
194
+ M.fail("5XX"),
195
+ )(response, req, { extraFields: responseFields });
196
+ if (!result.ok) {
197
+ return [result, { status: "complete", request: req, response }];
198
+ }
199
+
200
+ return [result, { status: "complete", request: req, response }];
201
+ }
package/src/lib/config.ts CHANGED
@@ -73,8 +73,8 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
73
73
  export const SDK_METADATA = {
74
74
  language: "typescript",
75
75
  openapiDocVersion: "v2026.07.00",
76
- sdkVersion: "26.7.0-dev.4",
77
- genVersion: "2.910.1",
76
+ sdkVersion: "26.7.0-dev.6",
77
+ genVersion: "2.917.0",
78
78
  userAgent:
79
- "speakeasy-sdk/typescript 26.7.0-dev.4 2.910.1 v2026.07.00 @moovio/sdk",
79
+ "speakeasy-sdk/typescript 26.7.0-dev.6 2.917.0 v2026.07.00 @moovio/sdk",
80
80
  } as const;
package/src/lib/http.ts CHANGED
@@ -45,8 +45,10 @@ export class HTTPClient {
45
45
  private requestHooks: BeforeRequestHook[] = [];
46
46
  private requestErrorHooks: RequestErrorHook[] = [];
47
47
  private responseHooks: ResponseHook[] = [];
48
+ private options: HTTPClientOptions;
48
49
 
49
- constructor(private options: HTTPClientOptions = {}) {
50
+ constructor(options: HTTPClientOptions = {}) {
51
+ this.options = options;
50
52
  this.fetcher = options.fetcher || DEFAULT_FETCHER;
51
53
  }
52
54
 
@@ -12,17 +12,22 @@ type OAuth2PasswordFlow = {
12
12
  tokenURL: string;
13
13
  };
14
14
 
15
- export enum SecurityErrorCode {
16
- Incomplete = "incomplete",
17
- UnrecognisedSecurityType = "unrecognized_security_type",
18
- }
15
+ export const SecurityErrorCode = {
16
+ Incomplete: "incomplete",
17
+ UnrecognisedSecurityType: "unrecognized_security_type",
18
+ } as const;
19
+ export type SecurityErrorCode =
20
+ (typeof SecurityErrorCode)[keyof typeof SecurityErrorCode];
19
21
 
20
22
  export class SecurityError extends Error {
23
+ public code: SecurityErrorCode;
24
+
21
25
  constructor(
22
- public code: SecurityErrorCode,
26
+ code: SecurityErrorCode,
23
27
  message: string,
24
28
  ) {
25
29
  super(message);
30
+ this.code = code;
26
31
  this.name = "SecurityError";
27
32
  }
28
33
 
@@ -19,7 +19,7 @@ const routes = buildRouteMap({
19
19
  export const app = buildApplication(routes, {
20
20
  name: "mcp",
21
21
  versionInfo: {
22
- currentVersion: "26.7.0-dev.4",
22
+ currentVersion: "26.7.0-dev.6",
23
23
  },
24
24
  });
25
25
 
@@ -65,6 +65,7 @@ import { tool$cardsGetMetadata } from "./tools/cardsGetMetadata.js";
65
65
  import { tool$cardsLink } from "./tools/cardsLink.js";
66
66
  import { tool$cardsList } from "./tools/cardsList.js";
67
67
  import { tool$cardsUpdate } from "./tools/cardsUpdate.js";
68
+ import { tool$depositViewCreate } from "./tools/depositViewCreate.js";
68
69
  import { tool$disputesAccept } from "./tools/disputesAccept.js";
69
70
  import { tool$disputesDeleteEvidence } from "./tools/disputesDeleteEvidence.js";
70
71
  import { tool$disputesGet } from "./tools/disputesGet.js";
@@ -214,7 +215,7 @@ export function createMCPServer(deps: {
214
215
  }) {
215
216
  const server = new McpServer({
216
217
  name: "Moov",
217
- version: "26.7.0-dev.4",
218
+ version: "26.7.0-dev.6",
218
219
  });
219
220
 
220
221
  const client = new MoovCore({
@@ -434,6 +435,7 @@ export function createMCPServer(deps: {
434
435
  tool(tool$terminalApplicationsGet);
435
436
  tool(tool$terminalApplicationsDelete);
436
437
  tool(tool$terminalApplicationsCreateVersion);
438
+ tool(tool$depositViewCreate);
437
439
 
438
440
  return server;
439
441
  }
@@ -16,7 +16,7 @@ export const tool$bankAccountsLink: ToolDefinition<typeof args> = {
16
16
  `Link a bank account to an existing Moov account. Read our [bank accounts guide](https://docs.moov.io/guides/sources/bank-accounts/) to learn more.
17
17
 
18
18
  It is strongly recommended that callers include the \`X-Wait-For\` header, set to \`payment-method\`, if the newly linked
19
- bank-account is intended to be used right away. If this header is not included, the caller will need to poll the [List Payment
19
+ bank account is intended to be used right away. If this header is not included, the caller will need to poll the [List Payment
20
20
  Methods](https://docs.moov.io/api/sources/payment-methods/list/)
21
21
  endpoint to wait for the new payment methods to be available for use.
22
22
 
@@ -0,0 +1,43 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import { depositViewCreate } from "../../funcs/depositViewCreate.js";
6
+ import * as operations from "../../models/operations/index.js";
7
+ import { formatResult, ToolDefinition } from "../tools.js";
8
+
9
+ const args = {
10
+ request: operations.CreateDepositAccountRequest$inboundSchema,
11
+ };
12
+
13
+ export const tool$depositViewCreate: ToolDefinition<typeof args> = {
14
+ name: "deposit-view-create",
15
+ description:
16
+ `Ingest a deposit account into the deposit view from a core banking source system.
17
+
18
+ The request body is a raw byte payload whose format depends on the core banking
19
+ system that produced it. Set the \`X-Source-System\` header to identify that system
20
+ so the payload can be parsed correctly.
21
+
22
+ To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
23
+ you'll need to specify the \`/accounts/{accountID}/profile.write\` scope.`,
24
+ args,
25
+ tool: async (client, args, ctx) => {
26
+ const [result, apiCall] = await depositViewCreate(
27
+ client,
28
+ args.request,
29
+ { fetchOptions: { signal: ctx.signal } },
30
+ ).$inspect();
31
+
32
+ if (!result.ok) {
33
+ return {
34
+ content: [{ type: "text", text: result.error.message }],
35
+ isError: true,
36
+ };
37
+ }
38
+
39
+ const value = result.value.result;
40
+
41
+ return formatResult(value, apiCall);
42
+ },
43
+ };
@@ -34,6 +34,7 @@ export const CapabilityID = {
34
34
  Wallet: "wallet",
35
35
  WalletBalance: "wallet.balance",
36
36
  CardIssuing: "card-issuing",
37
+ IssuingCardholder: "issuing.cardholder",
37
38
  ProductionApp: "production-app",
38
39
  PlatformProductionApp: "platform.production-app",
39
40
  PlatformWalletTransfers: "platform.wallet-transfers",
@@ -57,6 +57,10 @@ export type CardBrandFees = {
57
57
  * Details of refunded transactions.
58
58
  */
59
59
  refunds?: BillingCountAndAmount | undefined;
60
+ /**
61
+ * Details of card cancellations.
62
+ */
63
+ cardCancellations?: BillingCountAndAmount | undefined;
60
64
  /**
61
65
  * Total fees for this card brand.
62
66
  */
@@ -86,6 +90,7 @@ export const CardBrandFees$inboundSchema: z.ZodType<
86
90
  ),
87
91
  declines: types.optional(BillingCountAndAmount$inboundSchema),
88
92
  refunds: types.optional(BillingCountAndAmount$inboundSchema),
93
+ cardCancellations: types.optional(BillingCountAndAmount$inboundSchema),
89
94
  total: BillingCountAndAmount$inboundSchema,
90
95
  });
91
96
  /** @internal */
@@ -101,6 +106,7 @@ export type CardBrandFees$Outbound = {
101
106
  completedInternationalInPerson?: BillingCountAndAmount$Outbound | undefined;
102
107
  declines?: BillingCountAndAmount$Outbound | undefined;
103
108
  refunds?: BillingCountAndAmount$Outbound | undefined;
109
+ cardCancellations?: BillingCountAndAmount$Outbound | undefined;
104
110
  total: BillingCountAndAmount$Outbound;
105
111
  };
106
112
 
@@ -121,6 +127,7 @@ export const CardBrandFees$outboundSchema: z.ZodType<
121
127
  .optional(),
122
128
  declines: BillingCountAndAmount$outboundSchema.optional(),
123
129
  refunds: BillingCountAndAmount$outboundSchema.optional(),
130
+ cardCancellations: BillingCountAndAmount$outboundSchema.optional(),
124
131
  total: BillingCountAndAmount$outboundSchema,
125
132
  });
126
133
 
@@ -36,6 +36,10 @@ export type CardTransactionDetails = {
36
36
  * An optional override of the default card statement descriptor for a transfer. Accounts must be enabled by Moov to set this field.
37
37
  */
38
38
  dynamicDescriptor?: string | undefined;
39
+ /**
40
+ * The scheduled date and time for the transfer to be delivered. This field is only valid for push-to-card transfers. Must be between 24 and 48 hours in the future in production. In sandbox mode, any future time up to 48 hours is accepted so integrations can test deferred delivery using the sandbox test cards with relaxed wait times.
41
+ */
42
+ scheduledDeliveryOn?: Date | undefined;
39
43
  /**
40
44
  * Specifies the nature and initiator of a transaction.
41
45
  *
@@ -51,6 +55,7 @@ export type CardTransactionDetails = {
51
55
  failedOn?: Date | undefined;
52
56
  canceledOn?: Date | undefined;
53
57
  completedOn?: Date | undefined;
58
+ deferredOn?: Date | undefined;
54
59
  /**
55
60
  * The program assigned by the card network that determines the interchange rate for the transfer.
56
61
  *
@@ -76,6 +81,7 @@ export const CardTransactionDetails$inboundSchema: z.ZodType<
76
81
  status: types.optional(CardTransactionStatus$inboundSchema),
77
82
  failureCode: types.optional(CardTransactionFailureCode$inboundSchema),
78
83
  dynamicDescriptor: types.optional(types.string()),
84
+ scheduledDeliveryOn: types.optional(types.date()),
79
85
  transactionSource: types.optional(TransactionSource$inboundSchema),
80
86
  initiatedOn: types.optional(types.date()),
81
87
  confirmedOn: types.optional(types.date()),
@@ -83,6 +89,7 @@ export const CardTransactionDetails$inboundSchema: z.ZodType<
83
89
  failedOn: types.optional(types.date()),
84
90
  canceledOn: types.optional(types.date()),
85
91
  completedOn: types.optional(types.date()),
92
+ deferredOn: types.optional(types.date()),
86
93
  interchangeQualification: types.optional(types.string()),
87
94
  feeProgram: types.optional(types.string()),
88
95
  authorizationCode: types.optional(types.string()),
@@ -92,6 +99,7 @@ export type CardTransactionDetails$Outbound = {
92
99
  status?: string | undefined;
93
100
  failureCode?: string | undefined;
94
101
  dynamicDescriptor?: string | undefined;
102
+ scheduledDeliveryOn?: string | undefined;
95
103
  transactionSource?: string | undefined;
96
104
  initiatedOn?: string | undefined;
97
105
  confirmedOn?: string | undefined;
@@ -99,6 +107,7 @@ export type CardTransactionDetails$Outbound = {
99
107
  failedOn?: string | undefined;
100
108
  canceledOn?: string | undefined;
101
109
  completedOn?: string | undefined;
110
+ deferredOn?: string | undefined;
102
111
  interchangeQualification?: string | undefined;
103
112
  feeProgram?: string | undefined;
104
113
  authorizationCode?: string | undefined;
@@ -113,6 +122,7 @@ export const CardTransactionDetails$outboundSchema: z.ZodType<
113
122
  status: CardTransactionStatus$outboundSchema.optional(),
114
123
  failureCode: CardTransactionFailureCode$outboundSchema.optional(),
115
124
  dynamicDescriptor: z.string().optional(),
125
+ scheduledDeliveryOn: z.date().transform(v => v.toISOString()).optional(),
116
126
  transactionSource: TransactionSource$outboundSchema.optional(),
117
127
  initiatedOn: z.date().transform(v => v.toISOString()).optional(),
118
128
  confirmedOn: z.date().transform(v => v.toISOString()).optional(),
@@ -120,6 +130,7 @@ export const CardTransactionDetails$outboundSchema: z.ZodType<
120
130
  failedOn: z.date().transform(v => v.toISOString()).optional(),
121
131
  canceledOn: z.date().transform(v => v.toISOString()).optional(),
122
132
  completedOn: z.date().transform(v => v.toISOString()).optional(),
133
+ deferredOn: z.date().transform(v => v.toISOString()).optional(),
123
134
  interchangeQualification: z.string().optional(),
124
135
  feeProgram: z.string().optional(),
125
136
  authorizationCode: z.string().optional(),
@@ -16,6 +16,7 @@ export const CardTransactionStatus = {
16
16
  Settled: "settled",
17
17
  Failed: "failed",
18
18
  Completed: "completed",
19
+ Deferred: "deferred",
19
20
  } as const;
20
21
  /**
21
22
  * Status of a transaction within the card payment lifecycle.
@@ -18,6 +18,10 @@ export type CreateTransferDestinationCard = {
18
18
  * An optional override of the default card statement descriptor for a transfer. Accounts must be enabled by Moov to set this field.
19
19
  */
20
20
  dynamicDescriptor?: string | undefined;
21
+ /**
22
+ * The scheduled date and time for the transfer to be delivered. This field is only valid for push-to-card transfers. Must be between 24 and 48 hours in the future in production. In sandbox mode, any future time up to 48 hours is accepted so integrations can test deferred delivery using the sandbox test cards with relaxed wait times.
23
+ */
24
+ scheduledDeliveryOn?: Date | undefined;
21
25
  /**
22
26
  * An optional field to specify the type of card payout, used to route the transfer with the appropriate business application identifier (BAI).
23
27
  */
@@ -31,11 +35,13 @@ export const CreateTransferDestinationCard$inboundSchema: z.ZodType<
31
35
  unknown
32
36
  > = z.object({
33
37
  dynamicDescriptor: types.optional(types.string()),
38
+ scheduledDeliveryOn: types.optional(types.date()),
34
39
  payoutType: types.optional(CardPayoutType$inboundSchema),
35
40
  });
36
41
  /** @internal */
37
42
  export type CreateTransferDestinationCard$Outbound = {
38
43
  dynamicDescriptor?: string | undefined;
44
+ scheduledDeliveryOn?: string | undefined;
39
45
  payoutType?: string | undefined;
40
46
  };
41
47
 
@@ -46,6 +52,7 @@ export const CreateTransferDestinationCard$outboundSchema: z.ZodType<
46
52
  CreateTransferDestinationCard
47
53
  > = z.object({
48
54
  dynamicDescriptor: z.string().optional(),
55
+ scheduledDeliveryOn: z.date().transform(v => v.toISOString()).optional(),
49
56
  payoutType: CardPayoutType$outboundSchema.optional(),
50
57
  });
51
58
 
@@ -0,0 +1,86 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
6
+ import { safeParse } from "../../lib/schemas.js";
7
+ import { Result as SafeParseResult } from "../../types/fp.js";
8
+ import * as types from "../../types/primitives.js";
9
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
+ import {
11
+ SourceSystem,
12
+ SourceSystem$inboundSchema,
13
+ SourceSystem$outboundSchema,
14
+ } from "./sourcesystem.js";
15
+
16
+ /**
17
+ * The result of ingesting a deposit account into the deposit view.
18
+ */
19
+ export type DepositAccountIngestedResponse = {
20
+ /**
21
+ * The Moov account that owns the deposit view the account was ingested into.
22
+ */
23
+ moovAccountID: string;
24
+ /**
25
+ * The core banking source system that produced the ingested payload.
26
+ */
27
+ sourceSystem: SourceSystem;
28
+ /**
29
+ * The identifier of the deposit account within the source system.
30
+ */
31
+ sourceAccountID: string;
32
+ /**
33
+ * The date and time the deposit account was ingested.
34
+ */
35
+ ingestedAt: Date;
36
+ };
37
+
38
+ /** @internal */
39
+ export const DepositAccountIngestedResponse$inboundSchema: z.ZodType<
40
+ DepositAccountIngestedResponse,
41
+ z.ZodTypeDef,
42
+ unknown
43
+ > = z.object({
44
+ moovAccountID: types.string(),
45
+ sourceSystem: SourceSystem$inboundSchema,
46
+ sourceAccountID: types.string(),
47
+ ingestedAt: types.date(),
48
+ });
49
+ /** @internal */
50
+ export type DepositAccountIngestedResponse$Outbound = {
51
+ moovAccountID: string;
52
+ sourceSystem: string;
53
+ sourceAccountID: string;
54
+ ingestedAt: string;
55
+ };
56
+
57
+ /** @internal */
58
+ export const DepositAccountIngestedResponse$outboundSchema: z.ZodType<
59
+ DepositAccountIngestedResponse$Outbound,
60
+ z.ZodTypeDef,
61
+ DepositAccountIngestedResponse
62
+ > = z.object({
63
+ moovAccountID: z.string(),
64
+ sourceSystem: SourceSystem$outboundSchema,
65
+ sourceAccountID: z.string(),
66
+ ingestedAt: z.date().transform(v => v.toISOString()),
67
+ });
68
+
69
+ export function depositAccountIngestedResponseToJSON(
70
+ depositAccountIngestedResponse: DepositAccountIngestedResponse,
71
+ ): string {
72
+ return JSON.stringify(
73
+ DepositAccountIngestedResponse$outboundSchema.parse(
74
+ depositAccountIngestedResponse,
75
+ ),
76
+ );
77
+ }
78
+ export function depositAccountIngestedResponseFromJSON(
79
+ jsonString: string,
80
+ ): SafeParseResult<DepositAccountIngestedResponse, SDKValidationError> {
81
+ return safeParse(
82
+ jsonString,
83
+ (x) => DepositAccountIngestedResponse$inboundSchema.parse(JSON.parse(x)),
84
+ `Failed to parse 'DepositAccountIngestedResponse' from JSON`,
85
+ );
86
+ }
@@ -80,10 +80,8 @@ export type FullIssuedCard = {
80
80
  *
81
81
  * @remarks
82
82
  *
83
- * - `active`: The card is operational and approves authorizations. Generally becomes active shortly after card creation.
84
- * - `inactive`: The card cannot approve authorizations. This is currently a temporary state assigned post-creation during the activation process.
83
+ * - `active`: The card is operational and can approve authorizations.
85
84
  * - `closed`: The card is permanently deactivated and cannot approve authorizations. A card can be closed by request or when it expires.
86
- * - `pending-verification`: Awaiting additional authorized user verification before the card can be activated.
87
85
  */
88
86
  state: IssuedCardState;
89
87
  /**
@@ -216,6 +216,7 @@ export * from "./customamountpaymentdetailserror.js";
216
216
  export * from "./customersupport.js";
217
217
  export * from "./customersupporterror.js";
218
218
  export * from "./debitholdperiod.js";
219
+ export * from "./depositaccountingestedresponse.js";
219
220
  export * from "./disbursementpaymentmethodtype.js";
220
221
  export * from "./displayoptionserror.js";
221
222
  export * from "./dispute.js";
@@ -425,6 +426,10 @@ export * from "./pullfromcardpaymentmethod.js";
425
426
  export * from "./pullfromcardtransferpaymentmethod.js";
426
427
  export * from "./pullfromgooglepaypaymentmethod.js";
427
428
  export * from "./pullfromgooglepaytransferpaymentmethod.js";
429
+ export * from "./pushdeliveryspeed.js";
430
+ export * from "./pushoptions.js";
431
+ export * from "./pushoptionserror.js";
432
+ export * from "./pushoptionsupdate.js";
428
433
  export * from "./pushtoapplepaypaymentmethod.js";
429
434
  export * from "./pushtoapplepaytransferpaymentmethod.js";
430
435
  export * from "./pushtocardpaymentmethod.js";
@@ -493,6 +498,7 @@ export * from "./sentreceipt.js";
493
498
  export * from "./settings.js";
494
499
  export * from "./sharescopes.js";
495
500
  export * from "./sourcedestinationoptions.js";
501
+ export * from "./sourcesystem.js";
496
502
  export * from "./statement.js";
497
503
  export * from "./submissionintent.js";
498
504
  export * from "./sweep.js";
@@ -88,6 +88,10 @@ export type Invoice = {
88
88
  */
89
89
  disputedAmount: AmountDecimal;
90
90
  paymentLinkCode?: string | undefined;
91
+ /**
92
+ * URL to the hosted payment link for the invoice.
93
+ */
94
+ paymentLinkURL?: string | undefined;
91
95
  /**
92
96
  * Payment made towards an invoice, will be either a transfer or an external payment.
93
97
  */
@@ -121,6 +125,7 @@ export const Invoice$inboundSchema: z.ZodType<Invoice, z.ZodTypeDef, unknown> =
121
125
  refundedAmount: AmountDecimal$inboundSchema,
122
126
  disputedAmount: AmountDecimal$inboundSchema,
123
127
  paymentLinkCode: types.optional(types.string()),
128
+ paymentLinkURL: types.optional(types.string()),
124
129
  invoicePayments: types.optional(z.array(InvoicePayment$inboundSchema)),
125
130
  createdOn: types.date(),
126
131
  invoiceDate: types.optional(types.date()),
@@ -149,6 +154,7 @@ export type Invoice$Outbound = {
149
154
  refundedAmount: AmountDecimal$Outbound;
150
155
  disputedAmount: AmountDecimal$Outbound;
151
156
  paymentLinkCode?: string | undefined;
157
+ paymentLinkURL?: string | undefined;
152
158
  invoicePayments?: Array<InvoicePayment$Outbound> | undefined;
153
159
  createdOn: string;
154
160
  invoiceDate?: string | undefined;
@@ -182,6 +188,7 @@ export const Invoice$outboundSchema: z.ZodType<
182
188
  refundedAmount: AmountDecimal$outboundSchema,
183
189
  disputedAmount: AmountDecimal$outboundSchema,
184
190
  paymentLinkCode: z.string().optional(),
191
+ paymentLinkURL: z.string().optional(),
185
192
  invoicePayments: z.array(InvoicePayment$outboundSchema).optional(),
186
193
  createdOn: z.date().transform(v => v.toISOString()),
187
194
  invoiceDate: z.date().transform(v => v.toISOString()).optional(),
@@ -77,10 +77,8 @@ export type IssuedCard = {
77
77
  *
78
78
  * @remarks
79
79
  *
80
- * - `active`: The card is operational and approves authorizations. Generally becomes active shortly after card creation.
81
- * - `inactive`: The card cannot approve authorizations. This is currently a temporary state assigned post-creation during the activation process.
80
+ * - `active`: The card is operational and can approve authorizations.
82
81
  * - `closed`: The card is permanently deactivated and cannot approve authorizations. A card can be closed by request or when it expires.
83
- * - `pending-verification`: Awaiting additional authorized user verification before the card can be activated.
84
82
  */
85
83
  state: IssuedCardState;
86
84
  /**