@moovio/sdk 26.4.0-dev.10 → 26.4.0-dev.11

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 (127) hide show
  1. package/README.md +95 -55
  2. package/bin/mcp-server.js +1202 -423
  3. package/bin/mcp-server.js.map +27 -11
  4. package/funcs/resolutionLinksCreate.d.ts +20 -0
  5. package/funcs/resolutionLinksCreate.d.ts.map +1 -0
  6. package/funcs/resolutionLinksCreate.js +145 -0
  7. package/funcs/resolutionLinksCreate.js.map +1 -0
  8. package/funcs/resolutionLinksDisable.d.ts +18 -0
  9. package/funcs/resolutionLinksDisable.d.ts.map +1 -0
  10. package/funcs/resolutionLinksDisable.js +135 -0
  11. package/funcs/resolutionLinksDisable.js.map +1 -0
  12. package/funcs/resolutionLinksGet.d.ts +17 -0
  13. package/funcs/resolutionLinksGet.d.ts.map +1 -0
  14. package/funcs/resolutionLinksGet.js +126 -0
  15. package/funcs/resolutionLinksGet.js.map +1 -0
  16. package/funcs/resolutionLinksList.d.ts +17 -0
  17. package/funcs/resolutionLinksList.d.ts.map +1 -0
  18. package/funcs/resolutionLinksList.js +125 -0
  19. package/funcs/resolutionLinksList.js.map +1 -0
  20. package/hooks/moov-version-hook.d.ts +3 -4
  21. package/hooks/moov-version-hook.d.ts.map +1 -1
  22. package/hooks/moov-version-hook.js +5 -4
  23. package/hooks/moov-version-hook.js.map +1 -1
  24. package/hooks/registration.js +1 -1
  25. package/hooks/registration.js.map +1 -1
  26. package/jsr.json +1 -1
  27. package/lib/config.d.ts +3 -3
  28. package/lib/config.js +3 -3
  29. package/mcp-server/mcp-server.js +1 -1
  30. package/mcp-server/server.d.ts.map +1 -1
  31. package/mcp-server/server.js +9 -1
  32. package/mcp-server/server.js.map +1 -1
  33. package/mcp-server/tools/resolutionLinksCreate.d.ts +8 -0
  34. package/mcp-server/tools/resolutionLinksCreate.d.ts.map +1 -0
  35. package/mcp-server/tools/resolutionLinksCreate.js +67 -0
  36. package/mcp-server/tools/resolutionLinksCreate.js.map +1 -0
  37. package/mcp-server/tools/resolutionLinksDisable.d.ts +8 -0
  38. package/mcp-server/tools/resolutionLinksDisable.d.ts.map +1 -0
  39. package/mcp-server/tools/resolutionLinksDisable.js +64 -0
  40. package/mcp-server/tools/resolutionLinksDisable.js.map +1 -0
  41. package/mcp-server/tools/resolutionLinksGet.d.ts +8 -0
  42. package/mcp-server/tools/resolutionLinksGet.d.ts.map +1 -0
  43. package/mcp-server/tools/resolutionLinksGet.js +65 -0
  44. package/mcp-server/tools/resolutionLinksGet.js.map +1 -0
  45. package/mcp-server/tools/resolutionLinksList.d.ts +8 -0
  46. package/mcp-server/tools/resolutionLinksList.d.ts.map +1 -0
  47. package/mcp-server/tools/resolutionLinksList.js +65 -0
  48. package/mcp-server/tools/resolutionLinksList.js.map +1 -0
  49. package/models/components/createresolutionlink.d.ts +24 -0
  50. package/models/components/createresolutionlink.d.ts.map +1 -0
  51. package/models/components/createresolutionlink.js +59 -0
  52. package/models/components/createresolutionlink.js.map +1 -0
  53. package/models/components/index.d.ts +3 -0
  54. package/models/components/index.d.ts.map +1 -1
  55. package/models/components/index.js +3 -0
  56. package/models/components/index.js.map +1 -1
  57. package/models/components/resolutionlink.d.ts +63 -0
  58. package/models/components/resolutionlink.d.ts.map +1 -0
  59. package/models/components/resolutionlink.js +75 -0
  60. package/models/components/resolutionlink.js.map +1 -0
  61. package/models/components/resolutionlinkrecipient.d.ts +29 -0
  62. package/models/components/resolutionlinkrecipient.d.ts.map +1 -0
  63. package/models/components/resolutionlinkrecipient.js +61 -0
  64. package/models/components/resolutionlinkrecipient.js.map +1 -0
  65. package/models/errors/createresolutionlinkerror.d.ts +45 -0
  66. package/models/errors/createresolutionlinkerror.d.ts.map +1 -0
  67. package/models/errors/createresolutionlinkerror.js +82 -0
  68. package/models/errors/createresolutionlinkerror.js.map +1 -0
  69. package/models/errors/index.d.ts +1 -0
  70. package/models/errors/index.d.ts.map +1 -1
  71. package/models/errors/index.js +1 -0
  72. package/models/errors/index.js.map +1 -1
  73. package/models/operations/createresolutionlink.d.ts +66 -0
  74. package/models/operations/createresolutionlink.d.ts.map +1 -0
  75. package/models/operations/createresolutionlink.js +122 -0
  76. package/models/operations/createresolutionlink.js.map +1 -0
  77. package/models/operations/disableresolutionlink.d.ts +63 -0
  78. package/models/operations/disableresolutionlink.d.ts.map +1 -0
  79. package/models/operations/disableresolutionlink.js +109 -0
  80. package/models/operations/disableresolutionlink.js.map +1 -0
  81. package/models/operations/getresolutionlink.d.ts +66 -0
  82. package/models/operations/getresolutionlink.d.ts.map +1 -0
  83. package/models/operations/getresolutionlink.js +114 -0
  84. package/models/operations/getresolutionlink.js.map +1 -0
  85. package/models/operations/index.d.ts +4 -0
  86. package/models/operations/index.d.ts.map +1 -1
  87. package/models/operations/index.js +4 -0
  88. package/models/operations/index.js.map +1 -1
  89. package/models/operations/listresolutionlinks.d.ts +64 -0
  90. package/models/operations/listresolutionlinks.d.ts.map +1 -0
  91. package/models/operations/listresolutionlinks.js +112 -0
  92. package/models/operations/listresolutionlinks.js.map +1 -0
  93. package/package.json +1 -1
  94. package/sdk/resolutionlinks.d.ts +35 -0
  95. package/sdk/resolutionlinks.d.ts.map +1 -0
  96. package/sdk/resolutionlinks.js +54 -0
  97. package/sdk/resolutionlinks.js.map +1 -0
  98. package/sdk/sdk.d.ts +3 -0
  99. package/sdk/sdk.d.ts.map +1 -1
  100. package/sdk/sdk.js +4 -0
  101. package/sdk/sdk.js.map +1 -1
  102. package/src/funcs/resolutionLinksCreate.ts +208 -0
  103. package/src/funcs/resolutionLinksDisable.ts +204 -0
  104. package/src/funcs/resolutionLinksGet.ts +186 -0
  105. package/src/funcs/resolutionLinksList.ts +180 -0
  106. package/src/hooks/moov-version-hook.ts +10 -6
  107. package/src/hooks/registration.ts +1 -1
  108. package/src/lib/config.ts +3 -3
  109. package/src/mcp-server/mcp-server.ts +1 -1
  110. package/src/mcp-server/server.ts +9 -1
  111. package/src/mcp-server/tools/resolutionLinksCreate.ts +41 -0
  112. package/src/mcp-server/tools/resolutionLinksDisable.ts +37 -0
  113. package/src/mcp-server/tools/resolutionLinksGet.ts +38 -0
  114. package/src/mcp-server/tools/resolutionLinksList.ts +38 -0
  115. package/src/models/components/createresolutionlink.ts +63 -0
  116. package/src/models/components/index.ts +3 -0
  117. package/src/models/components/resolutionlink.ts +110 -0
  118. package/src/models/components/resolutionlinkrecipient.ts +70 -0
  119. package/src/models/errors/createresolutionlinkerror.ts +90 -0
  120. package/src/models/errors/index.ts +1 -0
  121. package/src/models/operations/createresolutionlink.ts +193 -0
  122. package/src/models/operations/disableresolutionlink.ts +178 -0
  123. package/src/models/operations/getresolutionlink.ts +179 -0
  124. package/src/models/operations/index.ts +4 -0
  125. package/src/models/operations/listresolutionlinks.ts +177 -0
  126. package/src/sdk/resolutionlinks.ts +83 -0
  127. package/src/sdk/sdk.ts +6 -0
@@ -0,0 +1,90 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
6
+ import { MoovError } from "./mooverror.js";
7
+
8
+ /**
9
+ * Describes validation errors for the create resolution link request.
10
+ */
11
+ export type CreateResolutionLinkErrorData = {
12
+ /**
13
+ * An error with the recipient email address.
14
+ */
15
+ email?: string | undefined;
16
+ /**
17
+ * An error with the recipient phone number.
18
+ */
19
+ phone?: string | undefined;
20
+ };
21
+
22
+ /**
23
+ * Describes validation errors for the create resolution link request.
24
+ */
25
+ export class CreateResolutionLinkError extends MoovError {
26
+ /**
27
+ * An error with the recipient email address.
28
+ */
29
+ email?: string | undefined;
30
+ /**
31
+ * An error with the recipient phone number.
32
+ */
33
+ phone?: string | undefined;
34
+
35
+ /** The original data that was passed to this error instance. */
36
+ data$: CreateResolutionLinkErrorData;
37
+
38
+ constructor(
39
+ err: CreateResolutionLinkErrorData,
40
+ httpMeta: { response: Response; request: Request; body: string },
41
+ ) {
42
+ const message = "message" in err && typeof err.message === "string"
43
+ ? err.message
44
+ : `API error occurred: ${JSON.stringify(err)}`;
45
+ super(message, httpMeta);
46
+ this.data$ = err;
47
+ if (err.email != null) this.email = err.email;
48
+ if (err.phone != null) this.phone = err.phone;
49
+
50
+ this.name = "CreateResolutionLinkError";
51
+ }
52
+ }
53
+
54
+ /** @internal */
55
+ export const CreateResolutionLinkError$inboundSchema: z.ZodType<
56
+ CreateResolutionLinkError,
57
+ z.ZodTypeDef,
58
+ unknown
59
+ > = z.object({
60
+ email: z.string().optional(),
61
+ phone: z.string().optional(),
62
+ request$: z.instanceof(Request),
63
+ response$: z.instanceof(Response),
64
+ body$: z.string(),
65
+ })
66
+ .transform((v) => {
67
+ return new CreateResolutionLinkError(v, {
68
+ request: v.request$,
69
+ response: v.response$,
70
+ body: v.body$,
71
+ });
72
+ });
73
+
74
+ /** @internal */
75
+ export type CreateResolutionLinkError$Outbound = {
76
+ email?: string | undefined;
77
+ phone?: string | undefined;
78
+ };
79
+
80
+ /** @internal */
81
+ export const CreateResolutionLinkError$outboundSchema: z.ZodType<
82
+ CreateResolutionLinkError$Outbound,
83
+ z.ZodTypeDef,
84
+ CreateResolutionLinkError
85
+ > = z.instanceof(CreateResolutionLinkError)
86
+ .transform(v => v.data$)
87
+ .pipe(z.object({
88
+ email: z.string().optional(),
89
+ phone: z.string().optional(),
90
+ }));
@@ -15,6 +15,7 @@ export * from "./createaccounterror.js";
15
15
  export * from "./createinvoiceerror.js";
16
16
  export * from "./createinvoicepaymenterror.js";
17
17
  export * from "./createpaymentlinkerror.js";
18
+ export * from "./createresolutionlinkerror.js";
18
19
  export * from "./createsweepconfigerror.js";
19
20
  export * from "./createticketerror.js";
20
21
  export * from "./createwalletvalidationerror.js";
@@ -0,0 +1,193 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
6
+ import { remap as remap$ } from "../../lib/primitives.js";
7
+ import { safeParse } from "../../lib/schemas.js";
8
+ import { Result as SafeParseResult } from "../../types/fp.js";
9
+ import * as components from "../components/index.js";
10
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
11
+
12
+ export type CreateResolutionLinkGlobals = {
13
+ /**
14
+ * Specify an API version.
15
+ *
16
+ * @remarks
17
+ *
18
+ * API versioning follows the format `vYYYY.QQ.BB`, where
19
+ * - `YYYY` is the year
20
+ * - `QQ` is the two-digit month for the first month of the quarter (e.g., 01, 04, 07, 10)
21
+ * - `BB` is the build number, starting at `.01`, for subsequent builds in the same quarter.
22
+ * - For example, `v2024.01.00` is the initial release of the first quarter of 2024.
23
+ *
24
+ * The `dev` version represents the most recent development state. It may include breaking changes and should be treated as a beta release.
25
+ * When no version is specified, the API defaults to `v2024.01.00`.
26
+ */
27
+ xMoovVersion?: string | undefined;
28
+ };
29
+
30
+ export type CreateResolutionLinkRequest = {
31
+ accountID: string;
32
+ createResolutionLink: components.CreateResolutionLink;
33
+ };
34
+
35
+ export type CreateResolutionLinkResponse = {
36
+ headers: { [k: string]: Array<string> };
37
+ result: components.ResolutionLink;
38
+ };
39
+
40
+ /** @internal */
41
+ export const CreateResolutionLinkGlobals$inboundSchema: z.ZodType<
42
+ CreateResolutionLinkGlobals,
43
+ z.ZodTypeDef,
44
+ unknown
45
+ > = z.object({
46
+ "X-Moov-Version": z.string().optional(),
47
+ }).transform((v) => {
48
+ return remap$(v, {
49
+ "X-Moov-Version": "xMoovVersion",
50
+ });
51
+ });
52
+ /** @internal */
53
+ export type CreateResolutionLinkGlobals$Outbound = {
54
+ "X-Moov-Version"?: string | undefined;
55
+ };
56
+
57
+ /** @internal */
58
+ export const CreateResolutionLinkGlobals$outboundSchema: z.ZodType<
59
+ CreateResolutionLinkGlobals$Outbound,
60
+ z.ZodTypeDef,
61
+ CreateResolutionLinkGlobals
62
+ > = z.object({
63
+ xMoovVersion: z.string().optional(),
64
+ }).transform((v) => {
65
+ return remap$(v, {
66
+ xMoovVersion: "X-Moov-Version",
67
+ });
68
+ });
69
+
70
+ export function createResolutionLinkGlobalsToJSON(
71
+ createResolutionLinkGlobals: CreateResolutionLinkGlobals,
72
+ ): string {
73
+ return JSON.stringify(
74
+ CreateResolutionLinkGlobals$outboundSchema.parse(
75
+ createResolutionLinkGlobals,
76
+ ),
77
+ );
78
+ }
79
+ export function createResolutionLinkGlobalsFromJSON(
80
+ jsonString: string,
81
+ ): SafeParseResult<CreateResolutionLinkGlobals, SDKValidationError> {
82
+ return safeParse(
83
+ jsonString,
84
+ (x) => CreateResolutionLinkGlobals$inboundSchema.parse(JSON.parse(x)),
85
+ `Failed to parse 'CreateResolutionLinkGlobals' from JSON`,
86
+ );
87
+ }
88
+
89
+ /** @internal */
90
+ export const CreateResolutionLinkRequest$inboundSchema: z.ZodType<
91
+ CreateResolutionLinkRequest,
92
+ z.ZodTypeDef,
93
+ unknown
94
+ > = z.object({
95
+ accountID: z.string(),
96
+ CreateResolutionLink: components.CreateResolutionLink$inboundSchema,
97
+ }).transform((v) => {
98
+ return remap$(v, {
99
+ "CreateResolutionLink": "createResolutionLink",
100
+ });
101
+ });
102
+ /** @internal */
103
+ export type CreateResolutionLinkRequest$Outbound = {
104
+ accountID: string;
105
+ CreateResolutionLink: components.CreateResolutionLink$Outbound;
106
+ };
107
+
108
+ /** @internal */
109
+ export const CreateResolutionLinkRequest$outboundSchema: z.ZodType<
110
+ CreateResolutionLinkRequest$Outbound,
111
+ z.ZodTypeDef,
112
+ CreateResolutionLinkRequest
113
+ > = z.object({
114
+ accountID: z.string(),
115
+ createResolutionLink: components.CreateResolutionLink$outboundSchema,
116
+ }).transform((v) => {
117
+ return remap$(v, {
118
+ createResolutionLink: "CreateResolutionLink",
119
+ });
120
+ });
121
+
122
+ export function createResolutionLinkRequestToJSON(
123
+ createResolutionLinkRequest: CreateResolutionLinkRequest,
124
+ ): string {
125
+ return JSON.stringify(
126
+ CreateResolutionLinkRequest$outboundSchema.parse(
127
+ createResolutionLinkRequest,
128
+ ),
129
+ );
130
+ }
131
+ export function createResolutionLinkRequestFromJSON(
132
+ jsonString: string,
133
+ ): SafeParseResult<CreateResolutionLinkRequest, SDKValidationError> {
134
+ return safeParse(
135
+ jsonString,
136
+ (x) => CreateResolutionLinkRequest$inboundSchema.parse(JSON.parse(x)),
137
+ `Failed to parse 'CreateResolutionLinkRequest' from JSON`,
138
+ );
139
+ }
140
+
141
+ /** @internal */
142
+ export const CreateResolutionLinkResponse$inboundSchema: z.ZodType<
143
+ CreateResolutionLinkResponse,
144
+ z.ZodTypeDef,
145
+ unknown
146
+ > = z.object({
147
+ Headers: z.record(z.array(z.string())).default({}),
148
+ Result: components.ResolutionLink$inboundSchema,
149
+ }).transform((v) => {
150
+ return remap$(v, {
151
+ "Headers": "headers",
152
+ "Result": "result",
153
+ });
154
+ });
155
+ /** @internal */
156
+ export type CreateResolutionLinkResponse$Outbound = {
157
+ Headers: { [k: string]: Array<string> };
158
+ Result: components.ResolutionLink$Outbound;
159
+ };
160
+
161
+ /** @internal */
162
+ export const CreateResolutionLinkResponse$outboundSchema: z.ZodType<
163
+ CreateResolutionLinkResponse$Outbound,
164
+ z.ZodTypeDef,
165
+ CreateResolutionLinkResponse
166
+ > = z.object({
167
+ headers: z.record(z.array(z.string())),
168
+ result: components.ResolutionLink$outboundSchema,
169
+ }).transform((v) => {
170
+ return remap$(v, {
171
+ headers: "Headers",
172
+ result: "Result",
173
+ });
174
+ });
175
+
176
+ export function createResolutionLinkResponseToJSON(
177
+ createResolutionLinkResponse: CreateResolutionLinkResponse,
178
+ ): string {
179
+ return JSON.stringify(
180
+ CreateResolutionLinkResponse$outboundSchema.parse(
181
+ createResolutionLinkResponse,
182
+ ),
183
+ );
184
+ }
185
+ export function createResolutionLinkResponseFromJSON(
186
+ jsonString: string,
187
+ ): SafeParseResult<CreateResolutionLinkResponse, SDKValidationError> {
188
+ return safeParse(
189
+ jsonString,
190
+ (x) => CreateResolutionLinkResponse$inboundSchema.parse(JSON.parse(x)),
191
+ `Failed to parse 'CreateResolutionLinkResponse' from JSON`,
192
+ );
193
+ }
@@ -0,0 +1,178 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
6
+ import { remap as remap$ } from "../../lib/primitives.js";
7
+ import { safeParse } from "../../lib/schemas.js";
8
+ import { Result as SafeParseResult } from "../../types/fp.js";
9
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
+
11
+ export type DisableResolutionLinkGlobals = {
12
+ /**
13
+ * Specify an API version.
14
+ *
15
+ * @remarks
16
+ *
17
+ * API versioning follows the format `vYYYY.QQ.BB`, where
18
+ * - `YYYY` is the year
19
+ * - `QQ` is the two-digit month for the first month of the quarter (e.g., 01, 04, 07, 10)
20
+ * - `BB` is the build number, starting at `.01`, for subsequent builds in the same quarter.
21
+ * - For example, `v2024.01.00` is the initial release of the first quarter of 2024.
22
+ *
23
+ * The `dev` version represents the most recent development state. It may include breaking changes and should be treated as a beta release.
24
+ * When no version is specified, the API defaults to `v2024.01.00`.
25
+ */
26
+ xMoovVersion?: string | undefined;
27
+ };
28
+
29
+ export type DisableResolutionLinkRequest = {
30
+ accountID: string;
31
+ resolutionLinkCode: string;
32
+ };
33
+
34
+ export type DisableResolutionLinkResponse = {
35
+ headers: { [k: string]: Array<string> };
36
+ };
37
+
38
+ /** @internal */
39
+ export const DisableResolutionLinkGlobals$inboundSchema: z.ZodType<
40
+ DisableResolutionLinkGlobals,
41
+ z.ZodTypeDef,
42
+ unknown
43
+ > = z.object({
44
+ "X-Moov-Version": z.string().optional(),
45
+ }).transform((v) => {
46
+ return remap$(v, {
47
+ "X-Moov-Version": "xMoovVersion",
48
+ });
49
+ });
50
+ /** @internal */
51
+ export type DisableResolutionLinkGlobals$Outbound = {
52
+ "X-Moov-Version"?: string | undefined;
53
+ };
54
+
55
+ /** @internal */
56
+ export const DisableResolutionLinkGlobals$outboundSchema: z.ZodType<
57
+ DisableResolutionLinkGlobals$Outbound,
58
+ z.ZodTypeDef,
59
+ DisableResolutionLinkGlobals
60
+ > = z.object({
61
+ xMoovVersion: z.string().optional(),
62
+ }).transform((v) => {
63
+ return remap$(v, {
64
+ xMoovVersion: "X-Moov-Version",
65
+ });
66
+ });
67
+
68
+ export function disableResolutionLinkGlobalsToJSON(
69
+ disableResolutionLinkGlobals: DisableResolutionLinkGlobals,
70
+ ): string {
71
+ return JSON.stringify(
72
+ DisableResolutionLinkGlobals$outboundSchema.parse(
73
+ disableResolutionLinkGlobals,
74
+ ),
75
+ );
76
+ }
77
+ export function disableResolutionLinkGlobalsFromJSON(
78
+ jsonString: string,
79
+ ): SafeParseResult<DisableResolutionLinkGlobals, SDKValidationError> {
80
+ return safeParse(
81
+ jsonString,
82
+ (x) => DisableResolutionLinkGlobals$inboundSchema.parse(JSON.parse(x)),
83
+ `Failed to parse 'DisableResolutionLinkGlobals' from JSON`,
84
+ );
85
+ }
86
+
87
+ /** @internal */
88
+ export const DisableResolutionLinkRequest$inboundSchema: z.ZodType<
89
+ DisableResolutionLinkRequest,
90
+ z.ZodTypeDef,
91
+ unknown
92
+ > = z.object({
93
+ accountID: z.string(),
94
+ resolutionLinkCode: z.string(),
95
+ });
96
+ /** @internal */
97
+ export type DisableResolutionLinkRequest$Outbound = {
98
+ accountID: string;
99
+ resolutionLinkCode: string;
100
+ };
101
+
102
+ /** @internal */
103
+ export const DisableResolutionLinkRequest$outboundSchema: z.ZodType<
104
+ DisableResolutionLinkRequest$Outbound,
105
+ z.ZodTypeDef,
106
+ DisableResolutionLinkRequest
107
+ > = z.object({
108
+ accountID: z.string(),
109
+ resolutionLinkCode: z.string(),
110
+ });
111
+
112
+ export function disableResolutionLinkRequestToJSON(
113
+ disableResolutionLinkRequest: DisableResolutionLinkRequest,
114
+ ): string {
115
+ return JSON.stringify(
116
+ DisableResolutionLinkRequest$outboundSchema.parse(
117
+ disableResolutionLinkRequest,
118
+ ),
119
+ );
120
+ }
121
+ export function disableResolutionLinkRequestFromJSON(
122
+ jsonString: string,
123
+ ): SafeParseResult<DisableResolutionLinkRequest, SDKValidationError> {
124
+ return safeParse(
125
+ jsonString,
126
+ (x) => DisableResolutionLinkRequest$inboundSchema.parse(JSON.parse(x)),
127
+ `Failed to parse 'DisableResolutionLinkRequest' from JSON`,
128
+ );
129
+ }
130
+
131
+ /** @internal */
132
+ export const DisableResolutionLinkResponse$inboundSchema: z.ZodType<
133
+ DisableResolutionLinkResponse,
134
+ z.ZodTypeDef,
135
+ unknown
136
+ > = z.object({
137
+ Headers: z.record(z.array(z.string())).default({}),
138
+ }).transform((v) => {
139
+ return remap$(v, {
140
+ "Headers": "headers",
141
+ });
142
+ });
143
+ /** @internal */
144
+ export type DisableResolutionLinkResponse$Outbound = {
145
+ Headers: { [k: string]: Array<string> };
146
+ };
147
+
148
+ /** @internal */
149
+ export const DisableResolutionLinkResponse$outboundSchema: z.ZodType<
150
+ DisableResolutionLinkResponse$Outbound,
151
+ z.ZodTypeDef,
152
+ DisableResolutionLinkResponse
153
+ > = z.object({
154
+ headers: z.record(z.array(z.string())),
155
+ }).transform((v) => {
156
+ return remap$(v, {
157
+ headers: "Headers",
158
+ });
159
+ });
160
+
161
+ export function disableResolutionLinkResponseToJSON(
162
+ disableResolutionLinkResponse: DisableResolutionLinkResponse,
163
+ ): string {
164
+ return JSON.stringify(
165
+ DisableResolutionLinkResponse$outboundSchema.parse(
166
+ disableResolutionLinkResponse,
167
+ ),
168
+ );
169
+ }
170
+ export function disableResolutionLinkResponseFromJSON(
171
+ jsonString: string,
172
+ ): SafeParseResult<DisableResolutionLinkResponse, SDKValidationError> {
173
+ return safeParse(
174
+ jsonString,
175
+ (x) => DisableResolutionLinkResponse$inboundSchema.parse(JSON.parse(x)),
176
+ `Failed to parse 'DisableResolutionLinkResponse' from JSON`,
177
+ );
178
+ }
@@ -0,0 +1,179 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
6
+ import { remap as remap$ } from "../../lib/primitives.js";
7
+ import { safeParse } from "../../lib/schemas.js";
8
+ import { Result as SafeParseResult } from "../../types/fp.js";
9
+ import * as components from "../components/index.js";
10
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
11
+
12
+ export type GetResolutionLinkGlobals = {
13
+ /**
14
+ * Specify an API version.
15
+ *
16
+ * @remarks
17
+ *
18
+ * API versioning follows the format `vYYYY.QQ.BB`, where
19
+ * - `YYYY` is the year
20
+ * - `QQ` is the two-digit month for the first month of the quarter (e.g., 01, 04, 07, 10)
21
+ * - `BB` is the build number, starting at `.01`, for subsequent builds in the same quarter.
22
+ * - For example, `v2024.01.00` is the initial release of the first quarter of 2024.
23
+ *
24
+ * The `dev` version represents the most recent development state. It may include breaking changes and should be treated as a beta release.
25
+ * When no version is specified, the API defaults to `v2024.01.00`.
26
+ */
27
+ xMoovVersion?: string | undefined;
28
+ };
29
+
30
+ export type GetResolutionLinkRequest = {
31
+ accountID: string;
32
+ resolutionLinkCode: string;
33
+ };
34
+
35
+ export type GetResolutionLinkResponse = {
36
+ headers: { [k: string]: Array<string> };
37
+ result: components.ResolutionLink;
38
+ };
39
+
40
+ /** @internal */
41
+ export const GetResolutionLinkGlobals$inboundSchema: z.ZodType<
42
+ GetResolutionLinkGlobals,
43
+ z.ZodTypeDef,
44
+ unknown
45
+ > = z.object({
46
+ "X-Moov-Version": z.string().optional(),
47
+ }).transform((v) => {
48
+ return remap$(v, {
49
+ "X-Moov-Version": "xMoovVersion",
50
+ });
51
+ });
52
+ /** @internal */
53
+ export type GetResolutionLinkGlobals$Outbound = {
54
+ "X-Moov-Version"?: string | undefined;
55
+ };
56
+
57
+ /** @internal */
58
+ export const GetResolutionLinkGlobals$outboundSchema: z.ZodType<
59
+ GetResolutionLinkGlobals$Outbound,
60
+ z.ZodTypeDef,
61
+ GetResolutionLinkGlobals
62
+ > = z.object({
63
+ xMoovVersion: z.string().optional(),
64
+ }).transform((v) => {
65
+ return remap$(v, {
66
+ xMoovVersion: "X-Moov-Version",
67
+ });
68
+ });
69
+
70
+ export function getResolutionLinkGlobalsToJSON(
71
+ getResolutionLinkGlobals: GetResolutionLinkGlobals,
72
+ ): string {
73
+ return JSON.stringify(
74
+ GetResolutionLinkGlobals$outboundSchema.parse(getResolutionLinkGlobals),
75
+ );
76
+ }
77
+ export function getResolutionLinkGlobalsFromJSON(
78
+ jsonString: string,
79
+ ): SafeParseResult<GetResolutionLinkGlobals, SDKValidationError> {
80
+ return safeParse(
81
+ jsonString,
82
+ (x) => GetResolutionLinkGlobals$inboundSchema.parse(JSON.parse(x)),
83
+ `Failed to parse 'GetResolutionLinkGlobals' from JSON`,
84
+ );
85
+ }
86
+
87
+ /** @internal */
88
+ export const GetResolutionLinkRequest$inboundSchema: z.ZodType<
89
+ GetResolutionLinkRequest,
90
+ z.ZodTypeDef,
91
+ unknown
92
+ > = z.object({
93
+ accountID: z.string(),
94
+ resolutionLinkCode: z.string(),
95
+ });
96
+ /** @internal */
97
+ export type GetResolutionLinkRequest$Outbound = {
98
+ accountID: string;
99
+ resolutionLinkCode: string;
100
+ };
101
+
102
+ /** @internal */
103
+ export const GetResolutionLinkRequest$outboundSchema: z.ZodType<
104
+ GetResolutionLinkRequest$Outbound,
105
+ z.ZodTypeDef,
106
+ GetResolutionLinkRequest
107
+ > = z.object({
108
+ accountID: z.string(),
109
+ resolutionLinkCode: z.string(),
110
+ });
111
+
112
+ export function getResolutionLinkRequestToJSON(
113
+ getResolutionLinkRequest: GetResolutionLinkRequest,
114
+ ): string {
115
+ return JSON.stringify(
116
+ GetResolutionLinkRequest$outboundSchema.parse(getResolutionLinkRequest),
117
+ );
118
+ }
119
+ export function getResolutionLinkRequestFromJSON(
120
+ jsonString: string,
121
+ ): SafeParseResult<GetResolutionLinkRequest, SDKValidationError> {
122
+ return safeParse(
123
+ jsonString,
124
+ (x) => GetResolutionLinkRequest$inboundSchema.parse(JSON.parse(x)),
125
+ `Failed to parse 'GetResolutionLinkRequest' from JSON`,
126
+ );
127
+ }
128
+
129
+ /** @internal */
130
+ export const GetResolutionLinkResponse$inboundSchema: z.ZodType<
131
+ GetResolutionLinkResponse,
132
+ z.ZodTypeDef,
133
+ unknown
134
+ > = z.object({
135
+ Headers: z.record(z.array(z.string())).default({}),
136
+ Result: components.ResolutionLink$inboundSchema,
137
+ }).transform((v) => {
138
+ return remap$(v, {
139
+ "Headers": "headers",
140
+ "Result": "result",
141
+ });
142
+ });
143
+ /** @internal */
144
+ export type GetResolutionLinkResponse$Outbound = {
145
+ Headers: { [k: string]: Array<string> };
146
+ Result: components.ResolutionLink$Outbound;
147
+ };
148
+
149
+ /** @internal */
150
+ export const GetResolutionLinkResponse$outboundSchema: z.ZodType<
151
+ GetResolutionLinkResponse$Outbound,
152
+ z.ZodTypeDef,
153
+ GetResolutionLinkResponse
154
+ > = z.object({
155
+ headers: z.record(z.array(z.string())),
156
+ result: components.ResolutionLink$outboundSchema,
157
+ }).transform((v) => {
158
+ return remap$(v, {
159
+ headers: "Headers",
160
+ result: "Result",
161
+ });
162
+ });
163
+
164
+ export function getResolutionLinkResponseToJSON(
165
+ getResolutionLinkResponse: GetResolutionLinkResponse,
166
+ ): string {
167
+ return JSON.stringify(
168
+ GetResolutionLinkResponse$outboundSchema.parse(getResolutionLinkResponse),
169
+ );
170
+ }
171
+ export function getResolutionLinkResponseFromJSON(
172
+ jsonString: string,
173
+ ): SafeParseResult<GetResolutionLinkResponse, SDKValidationError> {
174
+ return safeParse(
175
+ jsonString,
176
+ (x) => GetResolutionLinkResponse$inboundSchema.parse(JSON.parse(x)),
177
+ `Failed to parse 'GetResolutionLinkResponse' from JSON`,
178
+ );
179
+ }
@@ -21,6 +21,7 @@ export * from "./createpaymentlink.js";
21
21
  export * from "./createproduct.js";
22
22
  export * from "./createreceipts.js";
23
23
  export * from "./createrepresentative.js";
24
+ export * from "./createresolutionlink.js";
24
25
  export * from "./createreversal.js";
25
26
  export * from "./createschedule.js";
26
27
  export * from "./createsweepconfig.js";
@@ -41,6 +42,7 @@ export * from "./disablecapability.js";
41
42
  export * from "./disablecard.js";
42
43
  export * from "./disablepaymentlink.js";
43
44
  export * from "./disableproduct.js";
45
+ export * from "./disableresolutionlink.js";
44
46
  export * from "./disablewebhook.js";
45
47
  export * from "./disconnectaccount.js";
46
48
  export * from "./generateendtoendkey.js";
@@ -78,6 +80,7 @@ export * from "./getpublicimage.js";
78
80
  export * from "./getrefund.js";
79
81
  export * from "./getrepresentative.js";
80
82
  export * from "./getresidual.js";
83
+ export * from "./getresolutionlink.js";
81
84
  export * from "./getscheduledoccurrence.js";
82
85
  export * from "./getschedules.js";
83
86
  export * from "./getstatement.js";
@@ -134,6 +137,7 @@ export * from "./listrefunds.js";
134
137
  export * from "./listrepresentatives.js";
135
138
  export * from "./listresidualfees.js";
136
139
  export * from "./listresiduals.js";
140
+ export * from "./listresolutionlinks.js";
137
141
  export * from "./listschedules.js";
138
142
  export * from "./liststatements.js";
139
143
  export * from "./listsweepconfigs.js";