@moovio/sdk 0.0.0-dev.26 → 0.0.0-dev.27

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 (76) hide show
  1. package/README.md +71 -59
  2. package/bin/mcp-server.js +354 -154
  3. package/bin/mcp-server.js.map +19 -14
  4. package/funcs/transfersGetRiskOutcomes.d.ts +19 -0
  5. package/funcs/transfersGetRiskOutcomes.d.ts.map +1 -0
  6. package/funcs/transfersGetRiskOutcomes.js +131 -0
  7. package/funcs/transfersGetRiskOutcomes.js.map +1 -0
  8. package/jsr.json +1 -1
  9. package/lib/config.d.ts +3 -3
  10. package/lib/config.js +3 -3
  11. package/lib/http.d.ts +1 -1
  12. package/lib/http.d.ts.map +1 -1
  13. package/lib/http.js +1 -1
  14. package/lib/http.js.map +1 -1
  15. package/lib/security.d.ts +5 -4
  16. package/lib/security.d.ts.map +1 -1
  17. package/lib/security.js +6 -7
  18. package/lib/security.js.map +1 -1
  19. package/mcp-server/mcp-server.js +1 -1
  20. package/mcp-server/server.d.ts.map +1 -1
  21. package/mcp-server/server.js +3 -1
  22. package/mcp-server/server.js.map +1 -1
  23. package/mcp-server/tools/transfersGetRiskOutcomes.d.ts +8 -0
  24. package/mcp-server/tools/transfersGetRiskOutcomes.d.ts.map +1 -0
  25. package/mcp-server/tools/transfersGetRiskOutcomes.js +67 -0
  26. package/mcp-server/tools/transfersGetRiskOutcomes.js.map +1 -0
  27. package/models/components/cardbrandfees.d.ts +5 -0
  28. package/models/components/cardbrandfees.d.ts.map +1 -1
  29. package/models/components/cardbrandfees.js +2 -0
  30. package/models/components/cardbrandfees.js.map +1 -1
  31. package/models/components/contributingrule.d.ts +23 -0
  32. package/models/components/contributingrule.d.ts.map +1 -0
  33. package/models/components/contributingrule.js +59 -0
  34. package/models/components/contributingrule.js.map +1 -0
  35. package/models/components/filedetails.d.ts +1 -1
  36. package/models/components/filepurpose.d.ts +2 -2
  37. package/models/components/filepurpose.js +1 -1
  38. package/models/components/index.d.ts +2 -0
  39. package/models/components/index.d.ts.map +1 -1
  40. package/models/components/index.js +2 -0
  41. package/models/components/index.js.map +1 -1
  42. package/models/components/onboardinginvite.d.ts +1 -1
  43. package/models/components/partnerriskoutcomesresponse.d.ts +33 -0
  44. package/models/components/partnerriskoutcomesresponse.d.ts.map +1 -0
  45. package/models/components/partnerriskoutcomesresponse.js +62 -0
  46. package/models/components/partnerriskoutcomesresponse.js.map +1 -0
  47. package/models/operations/gettransferriskoutcomes.d.ts +48 -0
  48. package/models/operations/gettransferriskoutcomes.d.ts.map +1 -0
  49. package/models/operations/gettransferriskoutcomes.js +99 -0
  50. package/models/operations/gettransferriskoutcomes.js.map +1 -0
  51. package/models/operations/index.d.ts +1 -0
  52. package/models/operations/index.d.ts.map +1 -1
  53. package/models/operations/index.js +1 -0
  54. package/models/operations/index.js.map +1 -1
  55. package/package.json +1 -1
  56. package/sdk/transfers.d.ts +9 -0
  57. package/sdk/transfers.d.ts.map +1 -1
  58. package/sdk/transfers.js +12 -0
  59. package/sdk/transfers.js.map +1 -1
  60. package/src/funcs/transfersGetRiskOutcomes.ts +182 -0
  61. package/src/lib/config.ts +3 -3
  62. package/src/lib/http.ts +3 -1
  63. package/src/lib/security.ts +10 -5
  64. package/src/mcp-server/mcp-server.ts +1 -1
  65. package/src/mcp-server/server.ts +3 -1
  66. package/src/mcp-server/tools/transfersGetRiskOutcomes.ts +41 -0
  67. package/src/models/components/cardbrandfees.ts +7 -0
  68. package/src/models/components/contributingrule.ts +58 -0
  69. package/src/models/components/filedetails.ts +1 -1
  70. package/src/models/components/filepurpose.ts +2 -2
  71. package/src/models/components/index.ts +2 -0
  72. package/src/models/components/onboardinginvite.ts +1 -1
  73. package/src/models/components/partnerriskoutcomesresponse.ts +77 -0
  74. package/src/models/operations/gettransferriskoutcomes.ts +136 -0
  75. package/src/models/operations/index.ts +1 -0
  76. package/src/sdk/transfers.ts +20 -0
@@ -120,5 +120,14 @@ export declare class Transfers extends ClientSDK {
120
120
  * to specify the `/accounts/{accountID}/transfers.write` scope.
121
121
  */
122
122
  createReversal(request: operations.CreateReversalRequest, options?: RequestOptions): Promise<operations.CreateReversalResponse>;
123
+ /**
124
+ * Retrieve the risk rules that contributed to a transfer's risk decision.
125
+ *
126
+ * This endpoint has limited availability and must be enabled for your account by Moov.
127
+ *
128
+ * To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
129
+ * you'll need to specify the `/accounts/{accountID}/transfers.read` scope.
130
+ */
131
+ getRiskOutcomes(request: operations.GetTransferRiskOutcomesRequest, options?: RequestOptions): Promise<operations.GetTransferRiskOutcomesResponse>;
123
132
  }
124
133
  //# sourceMappingURL=transfers.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"transfers.d.ts","sourceRoot":"","sources":["../src/sdk/transfers.ts"],"names":[],"mappings":"AAiBA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAG5D,qBAAa,SAAU,SAAQ,SAAS;IACtC;;;;;;;;;;OAUG;IACG,eAAe,CACnB,OAAO,EAAE,UAAU,CAAC,4BAA4B,EAChD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,6BAA6B,CAAC;IAQpD;;;;;;;OAOG;IACG,MAAM,CACV,OAAO,EAAE,UAAU,CAAC,qBAAqB,EACzC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,sBAAsB,CAAC;IAQ7C;;;;;;;;;;;;OAYG;IACG,IAAI,CACR,OAAO,EAAE,UAAU,CAAC,oBAAoB,EACxC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,qBAAqB,CAAC;IAQ5C;;;;;;;;;OASG;IACG,iBAAiB,CACrB,OAAO,EAAE,UAAU,CAAC,wBAAwB,EAC5C,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO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fersGet_js_1 = require("../funcs/transfersGet.js");
13
13
  const transfersGetCancellation_js_1 = require("../funcs/transfersGetCancellation.js");
14
14
  const transfersGetRefund_js_1 = require("../funcs/transfersGetRefund.js");
15
+ const transfersGetRiskOutcomes_js_1 = require("../funcs/transfersGetRiskOutcomes.js");
15
16
  const transfersInitiateRefund_js_1 = require("../funcs/transfersInitiateRefund.js");
16
17
  const transfersList_js_1 = require("../funcs/transfersList.js");
17
18
  const transfersListCancellations_js_1 = require("../funcs/transfersListCancellations.js");
@@ -165,6 +166,17 @@ class Transfers extends sdks_js_1.ClientSDK {
165
166
  async createReversal(request, options) {
166
167
  return (0, fp_js_1.unwrapAsync)((0, transfersCreateReversal_js_1.transfersCreateReversal)(this, request, options));
167
168
  }
169
+ /**
170
+ * Retrieve the risk rules that contributed to a transfer's risk decision.
171
+ *
172
+ * This endpoint has limited availability and must be enabled for your account by Moov.
173
+ *
174
+ * To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
175
+ * you'll need to specify the `/accounts/{accountID}/transfers.read` scope.
176
+ */
177
+ async getRiskOutcomes(request, options) {
178
+ return (0, fp_js_1.unwrapAsync)((0, transfersGetRiskOutcomes_js_1.transfersGetRiskOutcomes)(this, request, options));
179
+ }
168
180
  }
169
181
  exports.Transfers = Transfers;
170
182
  //# sourceMappingURL=transfers.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"transfers.js","sourceRoot":"","sources":["../src/sdk/transfers.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,0FAAoF;AACpF,oEAA8D;AAC9D,4FAAsF;AACtF,oFAA8E;AAC9E,sFAAgF;AAChF,8DAAwD;AACxD,sFAAgF;AAChF,0EAAoE;AACpE,oFAA8E;AAC9E,gEAA0D;AAC1D,0FAAoF;AACpF,8EAAwE;AACxE,oEAA8D;AAC9D,4CAA2D;AAE3D,0CAA6C;AAE7C,MAAa,SAAU,SAAQ,mBAAS;IACtC;;;;;;;;;;OAUG;IACH,KAAK,CAAC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AAC,iBAAiB,CACrB,OAA4C,EAC5C,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,0DAA0B,EAC3C,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,eAAe,CACnB,OAA0C,EAC1C,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,sDAAwB,EACzC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;OAQG;IACH,KAAK,CAAC,cAAc,CAClB,OAAyC,EACzC,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,oDAAuB,EACxC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,WAAW,CACf,OAAsC,EACtC,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,8CAAoB,EACrC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,SAAS,CACb,OAAoC,EACpC,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,0CAAkB,EACnC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;OAOG;IACH,KAAK,CAAC,cAAc,CAClB,OAAyC,EACzC,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,oDAAuB,EACxC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;CACF;AAzPD,8BAyPC"}
1
+ {"version":3,"file":"transfers.js","sourceRoot":"","sources":["../src/sdk/transfers.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,0FAAoF;AACpF,oEAA8D;AAC9D,4FAAsF;AACtF,oFAA8E;AAC9E,sFAAgF;AAChF,8DAAwD;AACxD,sFAAg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AED;;;;;;;OAOG;IACH,KAAK,CAAC,eAAe,CACnB,OAAkD,EAClD,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,sDAAwB,EACzC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;CACF;AA5QD,8BA4QC"}
@@ -0,0 +1,182 @@
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 { MoovError } from "../models/errors/mooverror.js";
22
+ import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
23
+ import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
24
+ import * as operations from "../models/operations/index.js";
25
+ import { APICall, APIPromise } from "../types/async.js";
26
+ import { Result } from "../types/fp.js";
27
+
28
+ /**
29
+ * Retrieve the risk rules that contributed to a transfer's risk decision.
30
+ *
31
+ * This endpoint has limited availability and must be enabled for your account by Moov.
32
+ *
33
+ * To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
34
+ * you'll need to specify the `/accounts/{accountID}/transfers.read` scope.
35
+ */
36
+ export function transfersGetRiskOutcomes(
37
+ client: MoovCore,
38
+ request: operations.GetTransferRiskOutcomesRequest,
39
+ options?: RequestOptions,
40
+ ): APIPromise<
41
+ Result<
42
+ operations.GetTransferRiskOutcomesResponse,
43
+ | MoovError
44
+ | ResponseValidationError
45
+ | ConnectionError
46
+ | RequestAbortedError
47
+ | RequestTimeoutError
48
+ | InvalidRequestError
49
+ | UnexpectedClientError
50
+ | SDKValidationError
51
+ >
52
+ > {
53
+ return new APIPromise($do(
54
+ client,
55
+ request,
56
+ options,
57
+ ));
58
+ }
59
+
60
+ async function $do(
61
+ client: MoovCore,
62
+ request: operations.GetTransferRiskOutcomesRequest,
63
+ options?: RequestOptions,
64
+ ): Promise<
65
+ [
66
+ Result<
67
+ operations.GetTransferRiskOutcomesResponse,
68
+ | MoovError
69
+ | ResponseValidationError
70
+ | ConnectionError
71
+ | RequestAbortedError
72
+ | RequestTimeoutError
73
+ | InvalidRequestError
74
+ | UnexpectedClientError
75
+ | SDKValidationError
76
+ >,
77
+ APICall,
78
+ ]
79
+ > {
80
+ const parsed = safeParse(
81
+ request,
82
+ (value) =>
83
+ operations.GetTransferRiskOutcomesRequest$outboundSchema.parse(value),
84
+ "Input validation failed",
85
+ );
86
+ if (!parsed.ok) {
87
+ return [parsed, { status: "invalid" }];
88
+ }
89
+ const payload = parsed.value;
90
+ const body = null;
91
+
92
+ const pathParams = {
93
+ transferID: encodeSimple("transferID", payload.transferID, {
94
+ explode: false,
95
+ charEncoding: "percent",
96
+ }),
97
+ };
98
+ const path = pathToFunc("/transfers/{transferID}/risk-outcomes")(pathParams);
99
+
100
+ const headers = new Headers(compactMap({
101
+ Accept: "application/json",
102
+ "X-Account-ID": encodeSimple("X-Account-ID", payload["X-Account-ID"], {
103
+ explode: false,
104
+ charEncoding: "none",
105
+ }),
106
+ }));
107
+
108
+ const securityInput = await extractSecurity(client._options.security);
109
+ const requestSecurity = resolveGlobalSecurity(securityInput);
110
+
111
+ const context = {
112
+ options: client._options,
113
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
114
+ operationID: "getTransferRiskOutcomes",
115
+ oAuth2Scopes: null,
116
+
117
+ resolvedSecurity: requestSecurity,
118
+
119
+ securitySource: client._options.security,
120
+ retryConfig: options?.retries
121
+ || client._options.retryConfig
122
+ || { strategy: "none" },
123
+ retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
124
+ };
125
+
126
+ const requestRes = client._createRequest(context, {
127
+ security: requestSecurity,
128
+ method: "GET",
129
+ baseURL: options?.serverURL,
130
+ path: path,
131
+ headers: headers,
132
+ body: body,
133
+ userAgent: client._options.userAgent,
134
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
135
+ }, options);
136
+ if (!requestRes.ok) {
137
+ return [requestRes, { status: "invalid" }];
138
+ }
139
+ const req = requestRes.value;
140
+
141
+ const doResult = await client._do(req, {
142
+ context,
143
+ isErrorStatusCode: (statusCode: number) =>
144
+ matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
145
+ retryConfig: context.retryConfig,
146
+ retryCodes: context.retryCodes,
147
+ });
148
+ if (!doResult.ok) {
149
+ return [doResult, { status: "request-error", request: req }];
150
+ }
151
+ const response = doResult.value;
152
+
153
+ const responseFields = {
154
+ HttpMeta: { Response: response, Request: req },
155
+ };
156
+
157
+ const [result] = await M.match<
158
+ operations.GetTransferRiskOutcomesResponse,
159
+ | MoovError
160
+ | ResponseValidationError
161
+ | ConnectionError
162
+ | RequestAbortedError
163
+ | RequestTimeoutError
164
+ | InvalidRequestError
165
+ | UnexpectedClientError
166
+ | SDKValidationError
167
+ >(
168
+ M.json(200, operations.GetTransferRiskOutcomesResponse$inboundSchema, {
169
+ hdrs: true,
170
+ key: "Result",
171
+ }),
172
+ M.fail([401, 403, 404, 429]),
173
+ M.fail([500, 504]),
174
+ M.fail("4XX"),
175
+ M.fail("5XX"),
176
+ )(response, req, { extraFields: responseFields });
177
+ if (!result.ok) {
178
+ return [result, { status: "complete", request: req, response }];
179
+ }
180
+
181
+ return [result, { status: "complete", request: req, response }];
182
+ }
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: "dev",
76
- sdkVersion: "0.0.0-dev.26",
77
- genVersion: "2.916.2",
78
- userAgent: "speakeasy-sdk/typescript 0.0.0-dev.26 2.916.2 dev @moovio/sdk",
76
+ sdkVersion: "0.0.0-dev.27",
77
+ genVersion: "2.917.0",
78
+ userAgent: "speakeasy-sdk/typescript 0.0.0-dev.27 2.917.0 dev @moovio/sdk",
79
79
  } 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: "0.0.0-dev.26",
22
+ currentVersion: "0.0.0-dev.27",
23
23
  },
24
24
  });
25
25
 
@@ -181,6 +181,7 @@ import { tool$transfersGenerateOptions } from "./tools/transfersGenerateOptions.
181
181
  import { tool$transfersGet } from "./tools/transfersGet.js";
182
182
  import { tool$transfersGetCancellation } from "./tools/transfersGetCancellation.js";
183
183
  import { tool$transfersGetRefund } from "./tools/transfersGetRefund.js";
184
+ import { tool$transfersGetRiskOutcomes } from "./tools/transfersGetRiskOutcomes.js";
184
185
  import { tool$transfersInitiateRefund } from "./tools/transfersInitiateRefund.js";
185
186
  import { tool$transfersList } from "./tools/transfersList.js";
186
187
  import { tool$transfersListCancellations } from "./tools/transfersListCancellations.js";
@@ -215,7 +216,7 @@ export function createMCPServer(deps: {
215
216
  }) {
216
217
  const server = new McpServer({
217
218
  name: "Moov",
218
- version: "0.0.0-dev.26",
219
+ version: "0.0.0-dev.27",
219
220
  });
220
221
 
221
222
  const client = new MoovCore({
@@ -386,6 +387,7 @@ export function createMCPServer(deps: {
386
387
  tool(tool$transfersListRefunds);
387
388
  tool(tool$transfersGetRefund);
388
389
  tool(tool$transfersCreateReversal);
390
+ tool(tool$transfersGetRiskOutcomes);
389
391
  tool(tool$underwritingGet);
390
392
  tool(tool$underwritingSave);
391
393
  tool(tool$underwritingUpsert);
@@ -0,0 +1,41 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import { transfersGetRiskOutcomes } from "../../funcs/transfersGetRiskOutcomes.js";
6
+ import * as operations from "../../models/operations/index.js";
7
+ import { formatResult, ToolDefinition } from "../tools.js";
8
+
9
+ const args = {
10
+ request: operations.GetTransferRiskOutcomesRequest$inboundSchema,
11
+ };
12
+
13
+ export const tool$transfersGetRiskOutcomes: ToolDefinition<typeof args> = {
14
+ name: "transfers-get-risk-outcomes",
15
+ description:
16
+ `Retrieve the risk rules that contributed to a transfer's risk decision.
17
+
18
+ This endpoint has limited availability and must be enabled for your account by Moov.
19
+
20
+ To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
21
+ you'll need to specify the \`/accounts/{accountID}/transfers.read\` scope.`,
22
+ args,
23
+ tool: async (client, args, ctx) => {
24
+ const [result, apiCall] = await transfersGetRiskOutcomes(
25
+ client,
26
+ args.request,
27
+ { fetchOptions: { signal: ctx.signal } },
28
+ ).$inspect();
29
+
30
+ if (!result.ok) {
31
+ return {
32
+ content: [{ type: "text", text: result.error.message }],
33
+ isError: true,
34
+ };
35
+ }
36
+
37
+ const value = result.value.result;
38
+
39
+ return formatResult(value, apiCall);
40
+ },
41
+ };
@@ -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
 
@@ -0,0 +1,58 @@
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
+
11
+ /**
12
+ * A risk rule that contributed to a transfer's risk decision.
13
+ */
14
+ export type ContributingRule = {
15
+ /**
16
+ * Human-readable name of the contributing risk rule.
17
+ */
18
+ name: string;
19
+ };
20
+
21
+ /** @internal */
22
+ export const ContributingRule$inboundSchema: z.ZodType<
23
+ ContributingRule,
24
+ z.ZodTypeDef,
25
+ unknown
26
+ > = z.object({
27
+ name: types.string(),
28
+ });
29
+ /** @internal */
30
+ export type ContributingRule$Outbound = {
31
+ name: string;
32
+ };
33
+
34
+ /** @internal */
35
+ export const ContributingRule$outboundSchema: z.ZodType<
36
+ ContributingRule$Outbound,
37
+ z.ZodTypeDef,
38
+ ContributingRule
39
+ > = z.object({
40
+ name: z.string(),
41
+ });
42
+
43
+ export function contributingRuleToJSON(
44
+ contributingRule: ContributingRule,
45
+ ): string {
46
+ return JSON.stringify(
47
+ ContributingRule$outboundSchema.parse(contributingRule),
48
+ );
49
+ }
50
+ export function contributingRuleFromJSON(
51
+ jsonString: string,
52
+ ): SafeParseResult<ContributingRule, SDKValidationError> {
53
+ return safeParse(
54
+ jsonString,
55
+ (x) => ContributingRule$inboundSchema.parse(JSON.parse(x)),
56
+ `Failed to parse 'ContributingRule' from JSON`,
57
+ );
58
+ }
@@ -26,7 +26,7 @@ export type FileDetails = {
26
26
  fileName: string;
27
27
  accountID: string;
28
28
  /**
29
- * The file's purpose.
29
+ * The purpose of the file being uploaded.
30
30
  */
31
31
  filePurpose: FilePurpose;
32
32
  /**
@@ -7,7 +7,7 @@ import * as openEnums from "../../types/enums.js";
7
7
  import { OpenEnum } from "../../types/enums.js";
8
8
 
9
9
  /**
10
- * The file's purpose.
10
+ * The purpose of the file being uploaded.
11
11
  */
12
12
  export const FilePurpose = {
13
13
  BusinessVerification: "business_verification",
@@ -18,7 +18,7 @@ export const FilePurpose = {
18
18
  IdentityVerification: "identity_verification",
19
19
  } as const;
20
20
  /**
21
- * The file's purpose.
21
+ * The purpose of the file being uploaded.
22
22
  */
23
23
  export type FilePurpose = OpenEnum<typeof FilePurpose>;
24
24
 
@@ -143,6 +143,7 @@ export * from "./completebankaccountverification.js";
143
143
  export * from "./completedmicrodeposits.js";
144
144
  export * from "./completemicrodeposits.js";
145
145
  export * from "./contact.js";
146
+ export * from "./contributingrule.js";
146
147
  export * from "./createaccount.js";
147
148
  export * from "./createaccountsettings.js";
148
149
  export * from "./createaccounttype.js";
@@ -369,6 +370,7 @@ export * from "./othercardfees.js";
369
370
  export * from "./partialscheduleaccount.js";
370
371
  export * from "./partnerfees.js";
371
372
  export * from "./partnerpricingagreement.js";
373
+ export * from "./partnerriskoutcomesresponse.js";
372
374
  export * from "./patchaccount.js";
373
375
  export * from "./patchbusiness.js";
374
376
  export * from "./patchindividual.js";
@@ -40,7 +40,7 @@ export type OnboardingInvite = {
40
40
  */
41
41
  link: string;
42
42
  /**
43
- * The scopes requested by the inviter.
43
+ * Optional URL to redirect the user to after they complete the onboarding process.
44
44
  */
45
45
  returnURL?: string | undefined;
46
46
  /**
@@ -0,0 +1,77 @@
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
+ ContributingRule,
12
+ ContributingRule$inboundSchema,
13
+ ContributingRule$Outbound,
14
+ ContributingRule$outboundSchema,
15
+ } from "./contributingrule.js";
16
+
17
+ /**
18
+ * The risk rules that contributed to a transfer's risk decision.
19
+ *
20
+ * @remarks
21
+ *
22
+ * This information has limited availability and must be enabled for your account by Moov.
23
+ */
24
+ export type PartnerRiskOutcomesResponse = {
25
+ /**
26
+ * Identifier of the transfer these outcomes belong to.
27
+ */
28
+ transferID: string;
29
+ /**
30
+ * The risk rules that contributed to the decision. May be empty when no rules are disclosed.
31
+ */
32
+ contributingRules: Array<ContributingRule>;
33
+ };
34
+
35
+ /** @internal */
36
+ export const PartnerRiskOutcomesResponse$inboundSchema: z.ZodType<
37
+ PartnerRiskOutcomesResponse,
38
+ z.ZodTypeDef,
39
+ unknown
40
+ > = z.object({
41
+ transferID: types.string(),
42
+ contributingRules: z.array(ContributingRule$inboundSchema),
43
+ });
44
+ /** @internal */
45
+ export type PartnerRiskOutcomesResponse$Outbound = {
46
+ transferID: string;
47
+ contributingRules: Array<ContributingRule$Outbound>;
48
+ };
49
+
50
+ /** @internal */
51
+ export const PartnerRiskOutcomesResponse$outboundSchema: z.ZodType<
52
+ PartnerRiskOutcomesResponse$Outbound,
53
+ z.ZodTypeDef,
54
+ PartnerRiskOutcomesResponse
55
+ > = z.object({
56
+ transferID: z.string(),
57
+ contributingRules: z.array(ContributingRule$outboundSchema),
58
+ });
59
+
60
+ export function partnerRiskOutcomesResponseToJSON(
61
+ partnerRiskOutcomesResponse: PartnerRiskOutcomesResponse,
62
+ ): string {
63
+ return JSON.stringify(
64
+ PartnerRiskOutcomesResponse$outboundSchema.parse(
65
+ partnerRiskOutcomesResponse,
66
+ ),
67
+ );
68
+ }
69
+ export function partnerRiskOutcomesResponseFromJSON(
70
+ jsonString: string,
71
+ ): SafeParseResult<PartnerRiskOutcomesResponse, SDKValidationError> {
72
+ return safeParse(
73
+ jsonString,
74
+ (x) => PartnerRiskOutcomesResponse$inboundSchema.parse(JSON.parse(x)),
75
+ `Failed to parse 'PartnerRiskOutcomesResponse' from JSON`,
76
+ );
77
+ }