@moovio/sdk 0.10.7 → 0.10.8

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 (45) hide show
  1. package/bin/mcp-server.js +396 -332
  2. package/bin/mcp-server.js.map +25 -25
  3. package/jsr.json +1 -1
  4. package/lib/config.d.ts +3 -3
  5. package/lib/config.js +3 -3
  6. package/mcp-server/mcp-server.js +1 -1
  7. package/mcp-server/prompts.d.ts.map +1 -1
  8. package/mcp-server/prompts.js +5 -1
  9. package/mcp-server/prompts.js.map +1 -1
  10. package/mcp-server/resources.d.ts.map +1 -1
  11. package/mcp-server/resources.js +10 -2
  12. package/mcp-server/resources.js.map +1 -1
  13. package/mcp-server/server.d.ts.map +1 -1
  14. package/mcp-server/server.js +2 -3
  15. package/mcp-server/server.js.map +1 -1
  16. package/mcp-server/tools.d.ts.map +1 -1
  17. package/mcp-server/tools.js +4 -3
  18. package/mcp-server/tools.js.map +1 -1
  19. package/models/components/createdtransfer.d.ts +116 -0
  20. package/models/components/createdtransfer.d.ts.map +1 -0
  21. package/models/components/createdtransfer.js +126 -0
  22. package/models/components/createdtransfer.js.map +1 -0
  23. package/models/components/index.d.ts +1 -1
  24. package/models/components/index.d.ts.map +1 -1
  25. package/models/components/index.js +1 -1
  26. package/models/components/index.js.map +1 -1
  27. package/models/operations/createtransfer.d.ts +4 -4
  28. package/models/operations/createtransfer.d.ts.map +1 -1
  29. package/models/operations/createtransfer.js +4 -4
  30. package/models/operations/createtransfer.js.map +1 -1
  31. package/package.json +1 -1
  32. package/src/lib/config.ts +3 -3
  33. package/src/mcp-server/mcp-server.ts +1 -1
  34. package/src/mcp-server/prompts.ts +8 -1
  35. package/src/mcp-server/resources.ts +16 -2
  36. package/src/mcp-server/server.ts +3 -3
  37. package/src/mcp-server/tools.ts +6 -3
  38. package/src/models/components/createdtransfer.ts +242 -0
  39. package/src/models/components/index.ts +1 -1
  40. package/src/models/operations/createtransfer.ts +12 -12
  41. package/models/components/transferresponse.d.ts +0 -27
  42. package/models/components/transferresponse.d.ts.map +0 -1
  43. package/models/components/transferresponse.js +0 -67
  44. package/models/components/transferresponse.js.map +0 -1
  45. package/src/models/components/transferresponse.ts +0 -72
@@ -36,12 +36,12 @@ export type CreateTransferRequest = {
36
36
  accountID: string;
37
37
  createTransfer: components.CreateTransfer;
38
38
  };
39
- export type CreateTransferResponseResult = components.AsyncTransfer | components.Transfer | components.TransferResponse;
39
+ export type CreateTransferResponseResult = components.AsyncTransfer | components.CreatedTransfer | components.Transfer;
40
40
  export type CreateTransferResponse = {
41
41
  headers: {
42
42
  [k: string]: Array<string>;
43
43
  };
44
- result: components.AsyncTransfer | components.Transfer | components.TransferResponse;
44
+ result: components.AsyncTransfer | components.CreatedTransfer | components.Transfer;
45
45
  };
46
46
  /** @internal */
47
47
  export declare const CreateTransferGlobals$inboundSchema: z.ZodType<CreateTransferGlobals, z.ZodTypeDef, unknown>;
@@ -93,7 +93,7 @@ export declare function createTransferRequestFromJSON(jsonString: string): SafeP
93
93
  /** @internal */
94
94
  export declare const CreateTransferResponseResult$inboundSchema: z.ZodType<CreateTransferResponseResult, z.ZodTypeDef, unknown>;
95
95
  /** @internal */
96
- export type CreateTransferResponseResult$Outbound = components.AsyncTransfer$Outbound | components.Transfer$Outbound | components.TransferResponse$Outbound;
96
+ export type CreateTransferResponseResult$Outbound = components.AsyncTransfer$Outbound | components.CreatedTransfer$Outbound | components.Transfer$Outbound;
97
97
  /** @internal */
98
98
  export declare const CreateTransferResponseResult$outboundSchema: z.ZodType<CreateTransferResponseResult$Outbound, z.ZodTypeDef, CreateTransferResponseResult>;
99
99
  /**
@@ -117,7 +117,7 @@ export type CreateTransferResponse$Outbound = {
117
117
  Headers: {
118
118
  [k: string]: Array<string>;
119
119
  };
120
- Result: components.AsyncTransfer$Outbound | components.Transfer$Outbound | components.TransferResponse$Outbound;
120
+ Result: components.AsyncTransfer$Outbound | components.CreatedTransfer$Outbound | components.Transfer$Outbound;
121
121
  };
122
122
  /** @internal */
123
123
  export declare const CreateTransferResponse$outboundSchema: z.ZodType<CreateTransferResponse$Outbound, z.ZodTypeDef, CreateTransferResponse>;
@@ -1 +1 @@
1
- {"version":3,"file":"createtransfer.d.ts","sourceRoot":"","sources":["../../src/models/operations/createtransfer.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,KAAK,UAAU,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE,MAAM,MAAM,qBAAqB,GAAG;IAClC;;;;;;;;;;;;OAYG;IACH,YAAY,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACnC,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG;IAClC;;OAEG;IACH,eAAe,EAAE,MAAM,CAAC;IACxB;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,UAAU,CAAC,eAAe,GAAG,SAAS,CAAC;IAClD;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB,cAAc,EAAE,UAAU,CAAC,cAAc,CAAC;CAC3C,CAAC;AAEF,MAAM,MAAM,4BAA4B,GACpC,UAAU,CAAC,aAAa,GACxB,UAAU,CAAC,QAAQ,GACnB,UAAU,CAAC,gBAAgB,CAAC;AAEhC,MAAM,MAAM,sBAAsB,GAAG;IACnC,OAAO,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC,CAAA;KAAE,CAAC;IACxC,MAAM,EACF,UAAU,CAAC,aAAa,GACxB,UAAU,CAAC,QAAQ,GACnB,UAAU,CAAC,gBAAgB,CAAC;CACjC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,mCAAmC,EAAE,CAAC,CAAC,OAAO,CACzD,qBAAqB,EACrB,CAAC,CAAC,UAAU,EACZ,OAAO,CA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,cAAc,8FAA8C,CAAC;IAC1E,uEAAuE;IACvE,KAAY,QAAQ,GAAG,qCAAqC,CAAC;CAC9D;AAED,wBAAgB,kCAAkC,CAChD,4BAA4B,EAAE,4BAA4B,GACzD,MAAM,CAMR;AAED,wBAAgB,oCAAoC,CAClD,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,4BAA4B,EAAE,kBAAkB,CAAC,CAMnE;AAED,gBAAgB;AAChB,eAAO,MAAM,oCAAoC,EAAE,CAAC,CAAC,OAAO,CAC1D,sBAAsB,EACtB,CAAC,CAAC,UAAU,EACZ,OAAO,CAaP,CAAC;AAEH,gBAAgB;AAChB,MAAM,MAAM,+BAA+B,GAAG;IAC5C,OAAO,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC,CAAA;KAAE,CAAC;IACxC,MAAM,EACF,UAAU,CAAC,sBAAsB,GACjC,UAAU,CAAC,wBAAwB,GACnC,UAAU,CAAC,iBAAiB,CAAC;CAClC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,qCAAqC,EAAE,CAAC,CAAC,OAAO,CAC3D,+BAA+B,EAC/B,CAAC,CAAC,UAAU,EACZ,sBAAsB,CAatB,CAAC;AAEH;;;GAGG;AACH,yBAAiB,uBAAuB,CAAC;IACvC,sEAAsE;IAC/D,MAAM,aAAa,0DAAuC,CAAC;IAClE,uEAAuE;IAChE,MAAM,cAAc,kFAAwC,CAAC;IACpE,iEAAiE;IACjE,KAAY,QAAQ,GAAG,+BAA+B,CAAC;CACxD;AAED,wBAAgB,4BAA4B,CAC1C,sBAAsB,EAAE,sBAAsB,GAC7C,MAAM,CAIR;AAED,wBAAgB,8BAA8B,CAC5C,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,sBAAsB,EAAE,kBAAkB,CAAC,CAM7D"}
@@ -128,14 +128,14 @@ function createTransferRequestFromJSON(jsonString) {
128
128
  /** @internal */
129
129
  exports.CreateTransferResponseResult$inboundSchema = z.union([
130
130
  components.AsyncTransfer$inboundSchema,
131
+ components.CreatedTransfer$inboundSchema,
131
132
  components.Transfer$inboundSchema,
132
- components.TransferResponse$inboundSchema,
133
133
  ]);
134
134
  /** @internal */
135
135
  exports.CreateTransferResponseResult$outboundSchema = z.union([
136
136
  components.AsyncTransfer$outboundSchema,
137
+ components.CreatedTransfer$outboundSchema,
137
138
  components.Transfer$outboundSchema,
138
- components.TransferResponse$outboundSchema,
139
139
  ]);
140
140
  /**
141
141
  * @internal
@@ -159,8 +159,8 @@ exports.CreateTransferResponse$inboundSchema = z.object({
159
159
  Headers: z.record(z.array(z.string())),
160
160
  Result: z.union([
161
161
  components.AsyncTransfer$inboundSchema,
162
+ components.CreatedTransfer$inboundSchema,
162
163
  components.Transfer$inboundSchema,
163
- components.TransferResponse$inboundSchema,
164
164
  ]),
165
165
  }).transform((v) => {
166
166
  return (0, primitives_js_1.remap)(v, {
@@ -173,8 +173,8 @@ exports.CreateTransferResponse$outboundSchema = z.object({
173
173
  headers: z.record(z.array(z.string())),
174
174
  result: z.union([
175
175
  components.AsyncTransfer$outboundSchema,
176
+ components.CreatedTransfer$outboundSchema,
176
177
  components.Transfer$outboundSchema,
177
- components.TransferResponse$outboundSchema,
178
178
  ]),
179
179
  }).transform((v) => {
180
180
  return (0, primitives_js_1.remap)(v, {
@@ -1 +1 @@
1
- {"version":3,"file":"createtransfer.js","sourceRoot":"","sources":["../../src/models/operations/createtransfer.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAsGH,kEAMC;AAED,sEAQC;AA2DD,kEAMC;AAED,sEAQC;AA2CD,gFAQC;AAED,oFAQC;AA8DD,oEAMC;AAED,wEAQC;AA1UD,uCAAyB;AACzB,2DAA0D;AAC1D,qDAAiD;AAEjD,mEAAqD;AAoDrD,gBAAgB;AACH,QAAA,mCAAmC,GAI5C,CAAC,CAAC,MAAM,CAAC;IACX,gBAAgB,EAAE,CAAC,CAAC,M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C,CAAC,CAAC,CAAC,EAChE,oDAAoD,CACrD,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"createtransfer.js","sourceRoot":"","sources":["../../src/models/operations/createtransfer.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAsGH,kEAMC;AAED,sEAQC;AA2DD,kEAMC;AAED,sEAQC;AA2CD,gFAQC;AAED,oFAQC;AA8DD,oEAMC;AAED,wEAQC;AA1UD,uCAAyB;AACzB,2DAA0D;AAC1D,qDAAiD;AAEjD,mEAAqD;AAoDrD,gBAAgB;AACH,QAAA,mCAAmC,GAI5C,CAAC,CAAC,MAAM,CAAC;IACX,gBAAgB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,OAAO,CAAC,aAAa,CAAC;CACpD,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,gBAAgB,EAAE,cAAc;KACjC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAOH,gBAAgB;AACH,QAAA,oCAAoC,GAI7C,CAAC,CAAC,MAAM,CAAC;IACX,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,OAAO,CAAC,aAAa,CAAC;CAChD,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,YAAY,EAAE,gBAAgB;KAC/B,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,sBAAsB,CAOtC;AAPD,WAAiB,sBAAsB;IACrC,qEAAqE;IACxD,oCAAa,GAAG,2CAAmC,CAAC;IACjE,sEAAsE;IACzD,qCAAc,GAAG,4CAAoC,CAAC;AAGrE,CAAC,EAPgB,sBAAsB,sCAAtB,sBAAsB,QAOtC;AAED,SAAgB,2BAA2B,CACzC,qBAA4C;IAE5C,OAAO,IAA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AAiB,uBAAuB;IACtC,sEAAsE;IACzD,qCAAa,GAAG,4CAAoC,CAAC;IAClE,uEAAuE;IAC1D,sCAAc,GAAG,6CAAqC,CAAC;AAGtE,CAAC,EAPgB,uBAAuB,uCAAvB,uBAAuB,QAOvC;AAED,SAAgB,4BAA4B,CAC1C,sBAA8C;IAE9C,OAAO,IAAI,CAAC,SAAS,CACnB,6CAAqC,CAAC,KAAK,CAAC,sBAAsB,CAAC,CACpE,CAAC;AACJ,CAAC;AAED,SAAgB,8BAA8B,CAC5C,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,4CAAoC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAChE,oDAAoD,CACrD,CAAC;AACJ,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@moovio/sdk",
3
- "version": "0.10.7",
3
+ "version": "0.10.8",
4
4
  "author": "Moov",
5
5
  "bin": {
6
6
  "mcp": "bin/mcp-server.js"
package/src/lib/config.ts CHANGED
@@ -69,7 +69,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
69
69
  export const SDK_METADATA = {
70
70
  language: "typescript",
71
71
  openapiDocVersion: "latest",
72
- sdkVersion: "0.10.7",
73
- genVersion: "2.566.5",
74
- userAgent: "speakeasy-sdk/typescript 0.10.7 2.566.5 latest @moovio/sdk",
72
+ sdkVersion: "0.10.8",
73
+ genVersion: "2.568.2",
74
+ userAgent: "speakeasy-sdk/typescript 0.10.8 2.568.2 latest @moovio/sdk",
75
75
  } as const;
@@ -19,7 +19,7 @@ const routes = buildRouteMap({
19
19
  export const app = buildApplication(routes, {
20
20
  name: "mcp",
21
21
  versionInfo: {
22
- currentVersion: "0.10.7",
22
+ currentVersion: "0.10.8",
23
23
  },
24
24
  });
25
25
 
@@ -74,7 +74,14 @@ export function createRegisterPrompt(
74
74
  prompt: PromptDefinition<A>,
75
75
  ): void => {
76
76
  const scopes = prompt.scopes ?? [];
77
- if (!scopes.every((s: MCPScope) => allowedScopes.has(s))) {
77
+ if (allowedScopes.size > 0 && scopes.length === 0) {
78
+ return;
79
+ }
80
+
81
+ if (
82
+ allowedScopes.size > 0
83
+ && !scopes.every((s: MCPScope) => allowedScopes.has(s))
84
+ ) {
78
85
  return;
79
86
  }
80
87
 
@@ -109,7 +109,14 @@ export function createRegisterResource(
109
109
  ): (resource: ResourceDefinition) => void {
110
110
  return (resource: ResourceDefinition): void => {
111
111
  const scopes = resource.scopes ?? [];
112
- if (!scopes.every((s: MCPScope) => allowedScopes.has(s))) {
112
+ if (allowedScopes.size > 0 && scopes.length === 0) {
113
+ return;
114
+ }
115
+
116
+ if (
117
+ allowedScopes.size > 0
118
+ && !scopes.every((s: MCPScope) => allowedScopes.has(s))
119
+ ) {
113
120
  return;
114
121
  }
115
122
 
@@ -137,7 +144,14 @@ export function createRegisterResourceTemplate(
137
144
  ): (resource: ResourceTemplateDefinition) => void {
138
145
  return (resource: ResourceTemplateDefinition): void => {
139
146
  const scopes = resource.scopes ?? [];
140
- if (!scopes.every((s: MCPScope) => allowedScopes.has(s))) {
147
+ if (allowedScopes.size > 0 && scopes.length === 0) {
148
+ return;
149
+ }
150
+
151
+ if (
152
+ allowedScopes.size > 0
153
+ && !scopes.every((s: MCPScope) => allowedScopes.has(s))
154
+ ) {
141
155
  return;
142
156
  }
143
157
 
@@ -11,7 +11,7 @@ import {
11
11
  createRegisterResource,
12
12
  createRegisterResourceTemplate,
13
13
  } from "./resources.js";
14
- import { MCPScope, mcpScopes } from "./scopes.js";
14
+ import { MCPScope } from "./scopes.js";
15
15
  import { createRegisterTool } from "./tools.js";
16
16
  import { tool$accountsAssignCountries } from "./tools/accountsAssignCountries.js";
17
17
  import { tool$accountsCreate } from "./tools/accountsCreate.js";
@@ -157,7 +157,7 @@ export function createMCPServer(deps: {
157
157
  }) {
158
158
  const server = new McpServer({
159
159
  name: "Moov",
160
- version: "0.10.7",
160
+ version: "0.10.8",
161
161
  });
162
162
 
163
163
  const client = new MoovCore({
@@ -167,7 +167,7 @@ export function createMCPServer(deps: {
167
167
  serverIdx: deps.serverIdx,
168
168
  });
169
169
 
170
- const scopes = new Set(deps.scopes ?? mcpScopes);
170
+ const scopes = new Set(deps.scopes);
171
171
 
172
172
  const allowedTools = deps.allowedTools && new Set(deps.allowedTools);
173
173
  const tool = createRegisterTool(
@@ -102,12 +102,15 @@ export function createRegisterTool(
102
102
  return;
103
103
  }
104
104
 
105
- const toolScopes = tool.scopes ?? [];
106
- if (allowedScopes.size > 0 && toolScopes.length === 0) {
105
+ const scopes = tool.scopes ?? [];
106
+ if (allowedScopes.size > 0 && scopes.length === 0) {
107
107
  return;
108
108
  }
109
109
 
110
- if (!toolScopes.every((s) => allowedScopes.has(s))) {
110
+ if (
111
+ allowedScopes.size > 0
112
+ && !scopes.every((s: MCPScope) => allowedScopes.has(s))
113
+ ) {
111
114
  return;
112
115
  }
113
116
 
@@ -0,0 +1,242 @@
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
+ Amount,
11
+ Amount$inboundSchema,
12
+ Amount$Outbound,
13
+ Amount$outboundSchema,
14
+ } from "./amount.js";
15
+ import {
16
+ Cancellation,
17
+ Cancellation$inboundSchema,
18
+ Cancellation$Outbound,
19
+ Cancellation$outboundSchema,
20
+ } from "./cancellation.js";
21
+ import {
22
+ CardAcquiringDispute,
23
+ CardAcquiringDispute$inboundSchema,
24
+ CardAcquiringDispute$Outbound,
25
+ CardAcquiringDispute$outboundSchema,
26
+ } from "./cardacquiringdispute.js";
27
+ import {
28
+ CardAcquiringRefund,
29
+ CardAcquiringRefund$inboundSchema,
30
+ CardAcquiringRefund$Outbound,
31
+ CardAcquiringRefund$outboundSchema,
32
+ } from "./cardacquiringrefund.js";
33
+ import {
34
+ FacilitatorFee,
35
+ FacilitatorFee$inboundSchema,
36
+ FacilitatorFee$Outbound,
37
+ FacilitatorFee$outboundSchema,
38
+ } from "./facilitatorfee.js";
39
+ import {
40
+ MoovFeeDetails,
41
+ MoovFeeDetails$inboundSchema,
42
+ MoovFeeDetails$Outbound,
43
+ MoovFeeDetails$outboundSchema,
44
+ } from "./moovfeedetails.js";
45
+ import {
46
+ TransferDestination,
47
+ TransferDestination$inboundSchema,
48
+ TransferDestination$Outbound,
49
+ TransferDestination$outboundSchema,
50
+ } from "./transferdestination.js";
51
+ import {
52
+ TransferFailureReason,
53
+ TransferFailureReason$inboundSchema,
54
+ TransferFailureReason$outboundSchema,
55
+ } from "./transferfailurereason.js";
56
+ import {
57
+ TransferSource,
58
+ TransferSource$inboundSchema,
59
+ TransferSource$Outbound,
60
+ TransferSource$outboundSchema,
61
+ } from "./transfersource.js";
62
+ import {
63
+ TransferStatus,
64
+ TransferStatus$inboundSchema,
65
+ TransferStatus$outboundSchema,
66
+ } from "./transferstatus.js";
67
+
68
+ export type CreatedTransfer = {
69
+ transferID: string;
70
+ createdOn: Date;
71
+ source?: TransferSource | undefined;
72
+ destination?: TransferDestination | undefined;
73
+ completedOn?: Date | undefined;
74
+ /**
75
+ * Status of a transfer.
76
+ */
77
+ status?: TransferStatus | undefined;
78
+ /**
79
+ * Reason for a transfer's failure.
80
+ */
81
+ failureReason?: TransferFailureReason | undefined;
82
+ amount?: Amount | undefined;
83
+ /**
84
+ * An optional description of the transfer that is used on receipts and for your own internal use.
85
+ */
86
+ description?: string | undefined;
87
+ /**
88
+ * Free-form key-value pair list. Useful for storing information that is not captured elsewhere.
89
+ */
90
+ metadata?: { [k: string]: string } | undefined;
91
+ /**
92
+ * Total or markup fee.
93
+ */
94
+ facilitatorFee?: FacilitatorFee | undefined;
95
+ /**
96
+ * Fees charged to your platform account for transfers.
97
+ */
98
+ moovFee?: number | undefined;
99
+ /**
100
+ * Same as `moovFee`, but a decimal-formatted numerical string that represents up to 9 decimal place precision.
101
+ */
102
+ moovFeeDecimal?: string | undefined;
103
+ /**
104
+ * Processing and pass-through costs that add up to the moovFee.
105
+ */
106
+ moovFeeDetails?: MoovFeeDetails | undefined;
107
+ groupID?: string | undefined;
108
+ cancellations?: Array<Cancellation> | undefined;
109
+ refundedAmount?: Amount | undefined;
110
+ refunds?: Array<CardAcquiringRefund> | undefined;
111
+ disputedAmount?: Amount | undefined;
112
+ disputes?: Array<CardAcquiringDispute> | undefined;
113
+ sweepID?: string | undefined;
114
+ scheduleID?: string | undefined;
115
+ occurrenceID?: string | undefined;
116
+ /**
117
+ * Optional sales tax amount. `transfer.amount.value` should be inclusive of any sales tax and represents the total amount charged.
118
+ */
119
+ salesTaxAmount?: Amount | undefined;
120
+ };
121
+
122
+ /** @internal */
123
+ export const CreatedTransfer$inboundSchema: z.ZodType<
124
+ CreatedTransfer,
125
+ z.ZodTypeDef,
126
+ unknown
127
+ > = z.object({
128
+ transferID: z.string(),
129
+ createdOn: z.string().datetime({ offset: true }).transform(v => new Date(v)),
130
+ source: TransferSource$inboundSchema.optional(),
131
+ destination: TransferDestination$inboundSchema.optional(),
132
+ completedOn: z.string().datetime({ offset: true }).transform(v => new Date(v))
133
+ .optional(),
134
+ status: TransferStatus$inboundSchema.optional(),
135
+ failureReason: TransferFailureReason$inboundSchema.optional(),
136
+ amount: Amount$inboundSchema.optional(),
137
+ description: z.string().optional(),
138
+ metadata: z.record(z.string()).optional(),
139
+ facilitatorFee: FacilitatorFee$inboundSchema.optional(),
140
+ moovFee: z.number().int().optional(),
141
+ moovFeeDecimal: z.string().optional(),
142
+ moovFeeDetails: MoovFeeDetails$inboundSchema.optional(),
143
+ groupID: z.string().optional(),
144
+ cancellations: z.array(Cancellation$inboundSchema).optional(),
145
+ refundedAmount: Amount$inboundSchema.optional(),
146
+ refunds: z.array(CardAcquiringRefund$inboundSchema).optional(),
147
+ disputedAmount: Amount$inboundSchema.optional(),
148
+ disputes: z.array(CardAcquiringDispute$inboundSchema).optional(),
149
+ sweepID: z.string().optional(),
150
+ scheduleID: z.string().optional(),
151
+ occurrenceID: z.string().optional(),
152
+ salesTaxAmount: Amount$inboundSchema.optional(),
153
+ });
154
+
155
+ /** @internal */
156
+ export type CreatedTransfer$Outbound = {
157
+ transferID: string;
158
+ createdOn: string;
159
+ source?: TransferSource$Outbound | undefined;
160
+ destination?: TransferDestination$Outbound | undefined;
161
+ completedOn?: string | undefined;
162
+ status?: string | undefined;
163
+ failureReason?: string | undefined;
164
+ amount?: Amount$Outbound | undefined;
165
+ description?: string | undefined;
166
+ metadata?: { [k: string]: string } | undefined;
167
+ facilitatorFee?: FacilitatorFee$Outbound | undefined;
168
+ moovFee?: number | undefined;
169
+ moovFeeDecimal?: string | undefined;
170
+ moovFeeDetails?: MoovFeeDetails$Outbound | undefined;
171
+ groupID?: string | undefined;
172
+ cancellations?: Array<Cancellation$Outbound> | undefined;
173
+ refundedAmount?: Amount$Outbound | undefined;
174
+ refunds?: Array<CardAcquiringRefund$Outbound> | undefined;
175
+ disputedAmount?: Amount$Outbound | undefined;
176
+ disputes?: Array<CardAcquiringDispute$Outbound> | undefined;
177
+ sweepID?: string | undefined;
178
+ scheduleID?: string | undefined;
179
+ occurrenceID?: string | undefined;
180
+ salesTaxAmount?: Amount$Outbound | undefined;
181
+ };
182
+
183
+ /** @internal */
184
+ export const CreatedTransfer$outboundSchema: z.ZodType<
185
+ CreatedTransfer$Outbound,
186
+ z.ZodTypeDef,
187
+ CreatedTransfer
188
+ > = z.object({
189
+ transferID: z.string(),
190
+ createdOn: z.date().transform(v => v.toISOString()),
191
+ source: TransferSource$outboundSchema.optional(),
192
+ destination: TransferDestination$outboundSchema.optional(),
193
+ completedOn: z.date().transform(v => v.toISOString()).optional(),
194
+ status: TransferStatus$outboundSchema.optional(),
195
+ failureReason: TransferFailureReason$outboundSchema.optional(),
196
+ amount: Amount$outboundSchema.optional(),
197
+ description: z.string().optional(),
198
+ metadata: z.record(z.string()).optional(),
199
+ facilitatorFee: FacilitatorFee$outboundSchema.optional(),
200
+ moovFee: z.number().int().optional(),
201
+ moovFeeDecimal: z.string().optional(),
202
+ moovFeeDetails: MoovFeeDetails$outboundSchema.optional(),
203
+ groupID: z.string().optional(),
204
+ cancellations: z.array(Cancellation$outboundSchema).optional(),
205
+ refundedAmount: Amount$outboundSchema.optional(),
206
+ refunds: z.array(CardAcquiringRefund$outboundSchema).optional(),
207
+ disputedAmount: Amount$outboundSchema.optional(),
208
+ disputes: z.array(CardAcquiringDispute$outboundSchema).optional(),
209
+ sweepID: z.string().optional(),
210
+ scheduleID: z.string().optional(),
211
+ occurrenceID: z.string().optional(),
212
+ salesTaxAmount: Amount$outboundSchema.optional(),
213
+ });
214
+
215
+ /**
216
+ * @internal
217
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
218
+ */
219
+ export namespace CreatedTransfer$ {
220
+ /** @deprecated use `CreatedTransfer$inboundSchema` instead. */
221
+ export const inboundSchema = CreatedTransfer$inboundSchema;
222
+ /** @deprecated use `CreatedTransfer$outboundSchema` instead. */
223
+ export const outboundSchema = CreatedTransfer$outboundSchema;
224
+ /** @deprecated use `CreatedTransfer$Outbound` instead. */
225
+ export type Outbound = CreatedTransfer$Outbound;
226
+ }
227
+
228
+ export function createdTransferToJSON(
229
+ createdTransfer: CreatedTransfer,
230
+ ): string {
231
+ return JSON.stringify(CreatedTransfer$outboundSchema.parse(createdTransfer));
232
+ }
233
+
234
+ export function createdTransferFromJSON(
235
+ jsonString: string,
236
+ ): SafeParseResult<CreatedTransfer, SDKValidationError> {
237
+ return safeParse(
238
+ jsonString,
239
+ (x) => CreatedTransfer$inboundSchema.parse(JSON.parse(x)),
240
+ `Failed to parse 'CreatedTransfer' from JSON`,
241
+ );
242
+ }
@@ -114,6 +114,7 @@ export * from "./createauthorizedusererror.js";
114
114
  export * from "./createauthorizeduserupdate.js";
115
115
  export * from "./createbusinesserror.js";
116
116
  export * from "./createbusinessprofile.js";
117
+ export * from "./createdtransfer.js";
117
118
  export * from "./createevidencefilemultipart.js";
118
119
  export * from "./createevidencetext.js";
119
120
  export * from "./createfeeplanagreement.js";
@@ -331,7 +332,6 @@ export * from "./transferaccount.js";
331
332
  export * from "./transferdestination.js";
332
333
  export * from "./transferfailurereason.js";
333
334
  export * from "./transferoptions.js";
334
- export * from "./transferresponse.js";
335
335
  export * from "./transfersource.js";
336
336
  export * from "./transferstatus.js";
337
337
  export * from "./transferwaitfor.js";
@@ -47,15 +47,15 @@ export type CreateTransferRequest = {
47
47
 
48
48
  export type CreateTransferResponseResult =
49
49
  | components.AsyncTransfer
50
- | components.Transfer
51
- | components.TransferResponse;
50
+ | components.CreatedTransfer
51
+ | components.Transfer;
52
52
 
53
53
  export type CreateTransferResponse = {
54
54
  headers: { [k: string]: Array<string> };
55
55
  result:
56
56
  | components.AsyncTransfer
57
- | components.Transfer
58
- | components.TransferResponse;
57
+ | components.CreatedTransfer
58
+ | components.Transfer;
59
59
  };
60
60
 
61
61
  /** @internal */
@@ -202,15 +202,15 @@ export const CreateTransferResponseResult$inboundSchema: z.ZodType<
202
202
  unknown
203
203
  > = z.union([
204
204
  components.AsyncTransfer$inboundSchema,
205
+ components.CreatedTransfer$inboundSchema,
205
206
  components.Transfer$inboundSchema,
206
- components.TransferResponse$inboundSchema,
207
207
  ]);
208
208
 
209
209
  /** @internal */
210
210
  export type CreateTransferResponseResult$Outbound =
211
211
  | components.AsyncTransfer$Outbound
212
- | components.Transfer$Outbound
213
- | components.TransferResponse$Outbound;
212
+ | components.CreatedTransfer$Outbound
213
+ | components.Transfer$Outbound;
214
214
 
215
215
  /** @internal */
216
216
  export const CreateTransferResponseResult$outboundSchema: z.ZodType<
@@ -219,8 +219,8 @@ export const CreateTransferResponseResult$outboundSchema: z.ZodType<
219
219
  CreateTransferResponseResult
220
220
  > = z.union([
221
221
  components.AsyncTransfer$outboundSchema,
222
+ components.CreatedTransfer$outboundSchema,
222
223
  components.Transfer$outboundSchema,
223
- components.TransferResponse$outboundSchema,
224
224
  ]);
225
225
 
226
226
  /**
@@ -265,8 +265,8 @@ export const CreateTransferResponse$inboundSchema: z.ZodType<
265
265
  Headers: z.record(z.array(z.string())),
266
266
  Result: z.union([
267
267
  components.AsyncTransfer$inboundSchema,
268
+ components.CreatedTransfer$inboundSchema,
268
269
  components.Transfer$inboundSchema,
269
- components.TransferResponse$inboundSchema,
270
270
  ]),
271
271
  }).transform((v) => {
272
272
  return remap$(v, {
@@ -280,8 +280,8 @@ export type CreateTransferResponse$Outbound = {
280
280
  Headers: { [k: string]: Array<string> };
281
281
  Result:
282
282
  | components.AsyncTransfer$Outbound
283
- | components.Transfer$Outbound
284
- | components.TransferResponse$Outbound;
283
+ | components.CreatedTransfer$Outbound
284
+ | components.Transfer$Outbound;
285
285
  };
286
286
 
287
287
  /** @internal */
@@ -293,8 +293,8 @@ export const CreateTransferResponse$outboundSchema: z.ZodType<
293
293
  headers: z.record(z.array(z.string())),
294
294
  result: z.union([
295
295
  components.AsyncTransfer$outboundSchema,
296
+ components.CreatedTransfer$outboundSchema,
296
297
  components.Transfer$outboundSchema,
297
- components.TransferResponse$outboundSchema,
298
298
  ]),
299
299
  }).transform((v) => {
300
300
  return remap$(v, {
@@ -1,27 +0,0 @@
1
- import * as z from "zod";
2
- import { Result as SafeParseResult } from "../../types/fp.js";
3
- import { SDKValidationError } from "../errors/sdkvalidationerror.js";
4
- import { AsyncTransfer, AsyncTransfer$Outbound } from "./asynctransfer.js";
5
- import { Transfer, Transfer$Outbound } from "./transfer.js";
6
- export type TransferResponse = AsyncTransfer | Transfer;
7
- /** @internal */
8
- export declare const TransferResponse$inboundSchema: z.ZodType<TransferResponse, z.ZodTypeDef, unknown>;
9
- /** @internal */
10
- export type TransferResponse$Outbound = AsyncTransfer$Outbound | Transfer$Outbound;
11
- /** @internal */
12
- export declare const TransferResponse$outboundSchema: z.ZodType<TransferResponse$Outbound, z.ZodTypeDef, TransferResponse>;
13
- /**
14
- * @internal
15
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
16
- */
17
- export declare namespace TransferResponse$ {
18
- /** @deprecated use `TransferResponse$inboundSchema` instead. */
19
- const inboundSchema: z.ZodType<TransferResponse, z.ZodTypeDef, unknown>;
20
- /** @deprecated use `TransferResponse$outboundSchema` instead. */
21
- const outboundSchema: z.ZodType<TransferResponse$Outbound, z.ZodTypeDef, TransferResponse>;
22
- /** @deprecated use `TransferResponse$Outbound` instead. */
23
- type Outbound = TransferResponse$Outbound;
24
- }
25
- export declare function transferResponseToJSON(transferResponse: TransferResponse): string;
26
- export declare function transferResponseFromJSON(jsonString: string): SafeParseResult<TransferResponse, SDKValidationError>;
27
- //# sourceMappingURL=transferresponse.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"transferresponse.d.ts","sourceRoot":"","sources":["../../src/models/components/transferresponse.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,aAAa,EAEb,sBAAsB,EAEvB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EACL,QAAQ,EAER,iBAAiB,EAElB,MAAM,eAAe,CAAC;AAEvB,MAAM,MAAM,gBAAgB,GAAG,aAAa,GAAG,QAAQ,CAAC;AAExD,gBAAgB;AAChB,eAAO,MAAM,8BAA8B,EAAE,CAAC,CAAC,OAAO,CACpD,gBAAgB,EAChB,CAAC,CAAC,UAAU,EACZ,OAAO,CACyD,CAAC;AAEnE,gBAAgB;AAChB,MAAM,MAAM,yBAAyB,GACjC,sBAAsB,GACtB,iBAAiB,CAAC;AAEtB,gBAAgB;AAChB,eAAO,MAAM,+BAA+B,EAAE,CAAC,CAAC,OAAO,CACrD,yBAAyB,EACzB,CAAC,CAAC,UAAU,EACZ,gBAAgB,CACkD,CAAC;AAErE;;;GAGG;AACH,yBAAiB,iBAAiB,CAAC;IACjC,gEAAgE;IACzD,MAAM,aAAa,oDAAiC,CAAC;IAC5D,iEAAiE;IAC1D,MAAM,cAAc,sEAAkC,CAAC;IAC9D,2DAA2D;IAC3D,KAAY,QAAQ,GAAG,yBAAyB,CAAC;CAClD;AAED,wBAAgB,sBAAsB,CACpC,gBAAgB,EAAE,gBAAgB,GACjC,MAAM,CAIR;AAED,wBAAgB,wBAAwB,CACtC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,gBAAgB,EAAE,kBAAkB,CAAC,CAMvD"}