@moovio/sdk 0.22.9 → 0.22.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 (95) hide show
  1. package/README.md +59 -64
  2. package/bin/mcp-server.js +549 -790
  3. package/bin/mcp-server.js.map +15 -20
  4. package/examples/package-lock.json +1 -1
  5. package/funcs/imagesDelete.d.ts +4 -1
  6. package/funcs/imagesDelete.d.ts.map +1 -1
  7. package/funcs/imagesDelete.js +4 -1
  8. package/funcs/imagesDelete.js.map +1 -1
  9. package/jsr.json +1 -1
  10. package/lib/config.d.ts +3 -3
  11. package/lib/config.js +3 -3
  12. package/lib/config.js.map +1 -1
  13. package/mcp-server/mcp-server.js +1 -1
  14. package/mcp-server/mcp-server.js.map +1 -1
  15. package/mcp-server/server.d.ts.map +1 -1
  16. package/mcp-server/server.js +1 -3
  17. package/mcp-server/server.js.map +1 -1
  18. package/mcp-server/tools/imagesDelete.d.ts.map +1 -1
  19. package/mcp-server/tools/imagesDelete.js +4 -1
  20. package/mcp-server/tools/imagesDelete.js.map +1 -1
  21. package/models/components/imagemetadata.d.ts +2 -0
  22. package/models/components/imagemetadata.d.ts.map +1 -1
  23. package/models/components/imagemetadata.js +3 -0
  24. package/models/components/imagemetadata.js.map +1 -1
  25. package/models/components/index.d.ts +0 -1
  26. package/models/components/index.d.ts.map +1 -1
  27. package/models/components/index.js +0 -1
  28. package/models/components/index.js.map +1 -1
  29. package/models/components/transfer.d.ts +5 -0
  30. package/models/components/transfer.d.ts.map +1 -1
  31. package/models/components/transfer.js +2 -0
  32. package/models/components/transfer.js.map +1 -1
  33. package/models/components/updateinvoice.d.ts +5 -1
  34. package/models/components/updateinvoice.d.ts.map +1 -1
  35. package/models/components/updateinvoice.js.map +1 -1
  36. package/models/errors/index.d.ts +0 -1
  37. package/models/errors/index.d.ts.map +1 -1
  38. package/models/errors/index.js +0 -1
  39. package/models/errors/index.js.map +1 -1
  40. package/models/errors/transfer.d.ts +9 -0
  41. package/models/errors/transfer.d.ts.map +1 -1
  42. package/models/errors/transfer.js +4 -0
  43. package/models/errors/transfer.js.map +1 -1
  44. package/models/operations/index.d.ts +0 -1
  45. package/models/operations/index.d.ts.map +1 -1
  46. package/models/operations/index.js +0 -1
  47. package/models/operations/index.js.map +1 -1
  48. package/package.json +1 -1
  49. package/sdk/images.d.ts +4 -1
  50. package/sdk/images.d.ts.map +1 -1
  51. package/sdk/images.js +4 -1
  52. package/sdk/images.js.map +1 -1
  53. package/sdk/invoices.d.ts +0 -8
  54. package/sdk/invoices.d.ts.map +1 -1
  55. package/sdk/invoices.js +0 -11
  56. package/sdk/invoices.js.map +1 -1
  57. package/src/funcs/imagesDelete.ts +4 -1
  58. package/src/lib/config.ts +3 -3
  59. package/src/mcp-server/mcp-server.ts +1 -1
  60. package/src/mcp-server/server.ts +1 -3
  61. package/src/mcp-server/tools/imagesDelete.ts +4 -1
  62. package/src/models/components/imagemetadata.ts +5 -0
  63. package/src/models/components/index.ts +0 -1
  64. package/src/models/components/transfer.ts +7 -0
  65. package/src/models/components/updateinvoice.ts +5 -1
  66. package/src/models/errors/index.ts +0 -1
  67. package/src/models/errors/transfer.ts +12 -0
  68. package/src/models/operations/index.ts +0 -1
  69. package/src/sdk/images.ts +4 -1
  70. package/src/sdk/invoices.ts +0 -19
  71. package/funcs/invoicesMarkPaidInvoice.d.ts +0 -19
  72. package/funcs/invoicesMarkPaidInvoice.d.ts.map +0 -1
  73. package/funcs/invoicesMarkPaidInvoice.js +0 -144
  74. package/funcs/invoicesMarkPaidInvoice.js.map +0 -1
  75. package/mcp-server/tools/invoicesMarkPaidInvoice.d.ts +0 -8
  76. package/mcp-server/tools/invoicesMarkPaidInvoice.d.ts.map +0 -1
  77. package/mcp-server/tools/invoicesMarkPaidInvoice.js +0 -66
  78. package/mcp-server/tools/invoicesMarkPaidInvoice.js.map +0 -1
  79. package/models/components/markinvoicepaid.d.ts +0 -21
  80. package/models/components/markinvoicepaid.d.ts.map +0 -1
  81. package/models/components/markinvoicepaid.js +0 -63
  82. package/models/components/markinvoicepaid.js.map +0 -1
  83. package/models/errors/markinvoicepaiderror.d.ts +0 -30
  84. package/models/errors/markinvoicepaiderror.d.ts.map +0 -1
  85. package/models/errors/markinvoicepaiderror.js +0 -83
  86. package/models/errors/markinvoicepaiderror.js.map +0 -1
  87. package/models/operations/markpaidinvoice.d.ts +0 -68
  88. package/models/operations/markpaidinvoice.d.ts.map +0 -1
  89. package/models/operations/markpaidinvoice.js +0 -124
  90. package/models/operations/markpaidinvoice.js.map +0 -1
  91. package/src/funcs/invoicesMarkPaidInvoice.ts +0 -208
  92. package/src/mcp-server/tools/invoicesMarkPaidInvoice.ts +0 -39
  93. package/src/models/components/markinvoicepaid.ts +0 -58
  94. package/src/models/errors/markinvoicepaiderror.ts +0 -78
  95. package/src/models/operations/markpaidinvoice.ts +0 -191
@@ -1,191 +0,0 @@
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 MarkPaidInvoiceGlobals = {
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 `latest` 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 MarkPaidInvoiceRequest = {
31
- accountID: string;
32
- invoiceID: string;
33
- markInvoicePaid: components.MarkInvoicePaid;
34
- };
35
-
36
- export type MarkPaidInvoiceResponse = {
37
- headers: { [k: string]: Array<string> };
38
- result: components.Invoice;
39
- };
40
-
41
- /** @internal */
42
- export const MarkPaidInvoiceGlobals$inboundSchema: z.ZodType<
43
- MarkPaidInvoiceGlobals,
44
- z.ZodTypeDef,
45
- unknown
46
- > = z.object({
47
- "X-Moov-Version": z.string().optional(),
48
- }).transform((v) => {
49
- return remap$(v, {
50
- "X-Moov-Version": "xMoovVersion",
51
- });
52
- });
53
- /** @internal */
54
- export type MarkPaidInvoiceGlobals$Outbound = {
55
- "X-Moov-Version"?: string | undefined;
56
- };
57
-
58
- /** @internal */
59
- export const MarkPaidInvoiceGlobals$outboundSchema: z.ZodType<
60
- MarkPaidInvoiceGlobals$Outbound,
61
- z.ZodTypeDef,
62
- MarkPaidInvoiceGlobals
63
- > = z.object({
64
- xMoovVersion: z.string().optional(),
65
- }).transform((v) => {
66
- return remap$(v, {
67
- xMoovVersion: "X-Moov-Version",
68
- });
69
- });
70
-
71
- export function markPaidInvoiceGlobalsToJSON(
72
- markPaidInvoiceGlobals: MarkPaidInvoiceGlobals,
73
- ): string {
74
- return JSON.stringify(
75
- MarkPaidInvoiceGlobals$outboundSchema.parse(markPaidInvoiceGlobals),
76
- );
77
- }
78
- export function markPaidInvoiceGlobalsFromJSON(
79
- jsonString: string,
80
- ): SafeParseResult<MarkPaidInvoiceGlobals, SDKValidationError> {
81
- return safeParse(
82
- jsonString,
83
- (x) => MarkPaidInvoiceGlobals$inboundSchema.parse(JSON.parse(x)),
84
- `Failed to parse 'MarkPaidInvoiceGlobals' from JSON`,
85
- );
86
- }
87
-
88
- /** @internal */
89
- export const MarkPaidInvoiceRequest$inboundSchema: z.ZodType<
90
- MarkPaidInvoiceRequest,
91
- z.ZodTypeDef,
92
- unknown
93
- > = z.object({
94
- accountID: z.string(),
95
- invoiceID: z.string(),
96
- MarkInvoicePaid: components.MarkInvoicePaid$inboundSchema,
97
- }).transform((v) => {
98
- return remap$(v, {
99
- "MarkInvoicePaid": "markInvoicePaid",
100
- });
101
- });
102
- /** @internal */
103
- export type MarkPaidInvoiceRequest$Outbound = {
104
- accountID: string;
105
- invoiceID: string;
106
- MarkInvoicePaid: components.MarkInvoicePaid$Outbound;
107
- };
108
-
109
- /** @internal */
110
- export const MarkPaidInvoiceRequest$outboundSchema: z.ZodType<
111
- MarkPaidInvoiceRequest$Outbound,
112
- z.ZodTypeDef,
113
- MarkPaidInvoiceRequest
114
- > = z.object({
115
- accountID: z.string(),
116
- invoiceID: z.string(),
117
- markInvoicePaid: components.MarkInvoicePaid$outboundSchema,
118
- }).transform((v) => {
119
- return remap$(v, {
120
- markInvoicePaid: "MarkInvoicePaid",
121
- });
122
- });
123
-
124
- export function markPaidInvoiceRequestToJSON(
125
- markPaidInvoiceRequest: MarkPaidInvoiceRequest,
126
- ): string {
127
- return JSON.stringify(
128
- MarkPaidInvoiceRequest$outboundSchema.parse(markPaidInvoiceRequest),
129
- );
130
- }
131
- export function markPaidInvoiceRequestFromJSON(
132
- jsonString: string,
133
- ): SafeParseResult<MarkPaidInvoiceRequest, SDKValidationError> {
134
- return safeParse(
135
- jsonString,
136
- (x) => MarkPaidInvoiceRequest$inboundSchema.parse(JSON.parse(x)),
137
- `Failed to parse 'MarkPaidInvoiceRequest' from JSON`,
138
- );
139
- }
140
-
141
- /** @internal */
142
- export const MarkPaidInvoiceResponse$inboundSchema: z.ZodType<
143
- MarkPaidInvoiceResponse,
144
- z.ZodTypeDef,
145
- unknown
146
- > = z.object({
147
- Headers: z.record(z.array(z.string())).default({}),
148
- Result: components.Invoice$inboundSchema,
149
- }).transform((v) => {
150
- return remap$(v, {
151
- "Headers": "headers",
152
- "Result": "result",
153
- });
154
- });
155
- /** @internal */
156
- export type MarkPaidInvoiceResponse$Outbound = {
157
- Headers: { [k: string]: Array<string> };
158
- Result: components.Invoice$Outbound;
159
- };
160
-
161
- /** @internal */
162
- export const MarkPaidInvoiceResponse$outboundSchema: z.ZodType<
163
- MarkPaidInvoiceResponse$Outbound,
164
- z.ZodTypeDef,
165
- MarkPaidInvoiceResponse
166
- > = z.object({
167
- headers: z.record(z.array(z.string())),
168
- result: components.Invoice$outboundSchema,
169
- }).transform((v) => {
170
- return remap$(v, {
171
- headers: "Headers",
172
- result: "Result",
173
- });
174
- });
175
-
176
- export function markPaidInvoiceResponseToJSON(
177
- markPaidInvoiceResponse: MarkPaidInvoiceResponse,
178
- ): string {
179
- return JSON.stringify(
180
- MarkPaidInvoiceResponse$outboundSchema.parse(markPaidInvoiceResponse),
181
- );
182
- }
183
- export function markPaidInvoiceResponseFromJSON(
184
- jsonString: string,
185
- ): SafeParseResult<MarkPaidInvoiceResponse, SDKValidationError> {
186
- return safeParse(
187
- jsonString,
188
- (x) => MarkPaidInvoiceResponse$inboundSchema.parse(JSON.parse(x)),
189
- `Failed to parse 'MarkPaidInvoiceResponse' from JSON`,
190
- );
191
- }