@moovio/sdk 0.3.2 → 0.3.4

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 (105) hide show
  1. package/README.md +4 -4
  2. package/docs/sdks/scheduling/README.md +2 -2
  3. package/docs/sdks/transfers/README.md +2 -2
  4. package/funcs/avatarsGet.d.ts +1 -7
  5. package/funcs/avatarsGet.d.ts.map +1 -1
  6. package/funcs/avatarsGet.js +2 -12
  7. package/funcs/avatarsGet.js.map +1 -1
  8. package/funcs/schedulingGetOccurrance.d.ts +1 -1
  9. package/funcs/schedulingGetOccurrance.js +1 -1
  10. package/funcs/transfersList.d.ts +1 -1
  11. package/funcs/transfersList.js +1 -1
  12. package/jsr.json +1 -1
  13. package/lib/config.d.ts +2 -2
  14. package/lib/config.js +2 -2
  15. package/models/components/addresssuggestion.d.ts +42 -0
  16. package/models/components/addresssuggestion.d.ts.map +1 -0
  17. package/models/components/addresssuggestion.js +79 -0
  18. package/models/components/addresssuggestion.js.map +1 -0
  19. package/models/components/capabilityrequirement.d.ts +2 -2
  20. package/models/components/capabilityrequirement.d.ts.map +1 -1
  21. package/models/components/capabilityrequirement.js +2 -2
  22. package/models/components/capabilityrequirement.js.map +1 -1
  23. package/models/components/card.d.ts +2 -2
  24. package/models/components/card.d.ts.map +1 -1
  25. package/models/components/card.js +2 -2
  26. package/models/components/card.js.map +1 -1
  27. package/models/components/enrichedaddressresponse.d.ts +3 -15
  28. package/models/components/enrichedaddressresponse.d.ts.map +1 -1
  29. package/models/components/enrichedaddressresponse.js +3 -12
  30. package/models/components/enrichedaddressresponse.js.map +1 -1
  31. package/models/components/enrichedbusinessresponse.d.ts +30 -0
  32. package/models/components/enrichedbusinessresponse.d.ts.map +1 -0
  33. package/models/components/enrichedbusinessresponse.js +70 -0
  34. package/models/components/enrichedbusinessresponse.js.map +1 -0
  35. package/models/components/enrichedindustries.d.ts +30 -0
  36. package/models/components/enrichedindustries.d.ts.map +1 -0
  37. package/models/components/enrichedindustries.js +70 -0
  38. package/models/components/enrichedindustries.js.map +1 -0
  39. package/models/components/index.d.ts +3 -0
  40. package/models/components/index.d.ts.map +1 -1
  41. package/models/components/index.js +3 -0
  42. package/models/components/index.js.map +1 -1
  43. package/models/components/occurrencesresponse.d.ts +18 -18
  44. package/models/components/occurrencesresponse.d.ts.map +1 -1
  45. package/models/components/occurrencesresponse.js +15 -15
  46. package/models/components/occurrencesresponse.js.map +1 -1
  47. package/models/components/paymentmethodscard.d.ts +2 -2
  48. package/models/components/paymentmethodscard.d.ts.map +1 -1
  49. package/models/components/paymentmethodscard.js +2 -2
  50. package/models/components/paymentmethodscard.js.map +1 -1
  51. package/models/errors/schedulevalidationerror.d.ts +9 -3
  52. package/models/errors/schedulevalidationerror.d.ts.map +1 -1
  53. package/models/errors/schedulevalidationerror.js +2 -2
  54. package/models/errors/schedulevalidationerror.js.map +1 -1
  55. package/models/operations/getavatar.d.ts +2 -23
  56. package/models/operations/getavatar.d.ts.map +1 -1
  57. package/models/operations/getavatar.js +3 -38
  58. package/models/operations/getavatar.js.map +1 -1
  59. package/models/operations/getenrichmentprofile.d.ts +2 -2
  60. package/models/operations/getenrichmentprofile.d.ts.map +1 -1
  61. package/models/operations/getenrichmentprofile.js +2 -2
  62. package/models/operations/getenrichmentprofile.js.map +1 -1
  63. package/models/operations/getscheduledoccurrence.d.ts +2 -2
  64. package/models/operations/getscheduledoccurrence.d.ts.map +1 -1
  65. package/models/operations/getscheduledoccurrence.js +2 -2
  66. package/models/operations/getscheduledoccurrence.js.map +1 -1
  67. package/models/operations/listindustries.d.ts +2 -2
  68. package/models/operations/listindustries.d.ts.map +1 -1
  69. package/models/operations/listindustries.js +2 -2
  70. package/models/operations/listindustries.js.map +1 -1
  71. package/models/operations/listinstitutions.d.ts +2 -2
  72. package/models/operations/listinstitutions.d.ts.map +1 -1
  73. package/models/operations/listinstitutions.js +2 -2
  74. package/models/operations/listinstitutions.js.map +1 -1
  75. package/package.json +1 -1
  76. package/sdk/avatars.d.ts +1 -5
  77. package/sdk/avatars.d.ts.map +1 -1
  78. package/sdk/avatars.js +1 -3
  79. package/sdk/avatars.js.map +1 -1
  80. package/sdk/scheduling.d.ts +1 -1
  81. package/sdk/scheduling.js +1 -1
  82. package/sdk/transfers.d.ts +1 -1
  83. package/sdk/transfers.js +1 -1
  84. package/src/funcs/avatarsGet.ts +3 -13
  85. package/src/funcs/schedulingGetOccurrance.ts +1 -1
  86. package/src/funcs/transfersList.ts +1 -1
  87. package/src/lib/config.ts +2 -2
  88. package/src/models/components/addresssuggestion.ts +89 -0
  89. package/src/models/components/capabilityrequirement.ts +4 -4
  90. package/src/models/components/card.ts +4 -4
  91. package/src/models/components/enrichedaddressresponse.ts +10 -27
  92. package/src/models/components/enrichedbusinessresponse.ts +72 -0
  93. package/src/models/components/enrichedindustries.ts +72 -0
  94. package/src/models/components/index.ts +3 -0
  95. package/src/models/components/occurrencesresponse.ts +33 -33
  96. package/src/models/components/paymentmethodscard.ts +4 -4
  97. package/src/models/errors/schedulevalidationerror.ts +5 -5
  98. package/src/models/operations/getavatar.ts +4 -70
  99. package/src/models/operations/getenrichmentprofile.ts +4 -4
  100. package/src/models/operations/getscheduledoccurrence.ts +4 -4
  101. package/src/models/operations/listindustries.ts +4 -4
  102. package/src/models/operations/listinstitutions.ts +4 -4
  103. package/src/sdk/avatars.ts +2 -4
  104. package/src/sdk/scheduling.ts +1 -1
  105. package/src/sdk/transfers.ts +1 -1
@@ -32,13 +32,9 @@ export type GetAvatarRequest = {
32
32
  uniqueID: string;
33
33
  };
34
34
 
35
- export type GetAvatarResponseResult =
36
- | ReadableStream<Uint8Array>
37
- | ReadableStream<Uint8Array>;
38
-
39
35
  export type GetAvatarResponse = {
40
36
  headers: { [k: string]: Array<string> };
41
- result: ReadableStream<Uint8Array> | ReadableStream<Uint8Array>;
37
+ result: ReadableStream<Uint8Array>;
42
38
  };
43
39
 
44
40
  /** @internal */
@@ -157,62 +153,6 @@ export function getAvatarRequestFromJSON(
157
153
  );
158
154
  }
159
155
 
160
- /** @internal */
161
- export const GetAvatarResponseResult$inboundSchema: z.ZodType<
162
- GetAvatarResponseResult,
163
- z.ZodTypeDef,
164
- unknown
165
- > = z.union([
166
- z.instanceof(ReadableStream<Uint8Array>),
167
- z.instanceof(ReadableStream<Uint8Array>),
168
- ]);
169
-
170
- /** @internal */
171
- export type GetAvatarResponseResult$Outbound =
172
- | ReadableStream<Uint8Array>
173
- | ReadableStream<Uint8Array>;
174
-
175
- /** @internal */
176
- export const GetAvatarResponseResult$outboundSchema: z.ZodType<
177
- GetAvatarResponseResult$Outbound,
178
- z.ZodTypeDef,
179
- GetAvatarResponseResult
180
- > = z.union([
181
- z.instanceof(ReadableStream<Uint8Array>),
182
- z.instanceof(ReadableStream<Uint8Array>),
183
- ]);
184
-
185
- /**
186
- * @internal
187
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
188
- */
189
- export namespace GetAvatarResponseResult$ {
190
- /** @deprecated use `GetAvatarResponseResult$inboundSchema` instead. */
191
- export const inboundSchema = GetAvatarResponseResult$inboundSchema;
192
- /** @deprecated use `GetAvatarResponseResult$outboundSchema` instead. */
193
- export const outboundSchema = GetAvatarResponseResult$outboundSchema;
194
- /** @deprecated use `GetAvatarResponseResult$Outbound` instead. */
195
- export type Outbound = GetAvatarResponseResult$Outbound;
196
- }
197
-
198
- export function getAvatarResponseResultToJSON(
199
- getAvatarResponseResult: GetAvatarResponseResult,
200
- ): string {
201
- return JSON.stringify(
202
- GetAvatarResponseResult$outboundSchema.parse(getAvatarResponseResult),
203
- );
204
- }
205
-
206
- export function getAvatarResponseResultFromJSON(
207
- jsonString: string,
208
- ): SafeParseResult<GetAvatarResponseResult, SDKValidationError> {
209
- return safeParse(
210
- jsonString,
211
- (x) => GetAvatarResponseResult$inboundSchema.parse(JSON.parse(x)),
212
- `Failed to parse 'GetAvatarResponseResult' from JSON`,
213
- );
214
- }
215
-
216
156
  /** @internal */
217
157
  export const GetAvatarResponse$inboundSchema: z.ZodType<
218
158
  GetAvatarResponse,
@@ -220,10 +160,7 @@ export const GetAvatarResponse$inboundSchema: z.ZodType<
220
160
  unknown
221
161
  > = z.object({
222
162
  Headers: z.record(z.array(z.string())),
223
- Result: z.union([
224
- z.instanceof(ReadableStream<Uint8Array>),
225
- z.instanceof(ReadableStream<Uint8Array>),
226
- ]),
163
+ Result: z.instanceof(ReadableStream<Uint8Array>),
227
164
  }).transform((v) => {
228
165
  return remap$(v, {
229
166
  "Headers": "headers",
@@ -234,7 +171,7 @@ export const GetAvatarResponse$inboundSchema: z.ZodType<
234
171
  /** @internal */
235
172
  export type GetAvatarResponse$Outbound = {
236
173
  Headers: { [k: string]: Array<string> };
237
- Result: ReadableStream<Uint8Array> | ReadableStream<Uint8Array>;
174
+ Result: ReadableStream<Uint8Array>;
238
175
  };
239
176
 
240
177
  /** @internal */
@@ -244,10 +181,7 @@ export const GetAvatarResponse$outboundSchema: z.ZodType<
244
181
  GetAvatarResponse
245
182
  > = z.object({
246
183
  headers: z.record(z.array(z.string())),
247
- result: z.union([
248
- z.instanceof(ReadableStream<Uint8Array>),
249
- z.instanceof(ReadableStream<Uint8Array>),
250
- ]),
184
+ result: z.instanceof(ReadableStream<Uint8Array>),
251
185
  }).transform((v) => {
252
186
  return remap$(v, {
253
187
  headers: "Headers",
@@ -32,7 +32,7 @@ export type GetEnrichmentProfileRequest = {
32
32
 
33
33
  export type GetEnrichmentProfileResponse = {
34
34
  headers: { [k: string]: Array<string> };
35
- result: components.EnrichedBusinessProfile;
35
+ result: components.EnrichedBusinessResponse;
36
36
  };
37
37
 
38
38
  /** @internal */
@@ -162,7 +162,7 @@ export const GetEnrichmentProfileResponse$inboundSchema: z.ZodType<
162
162
  unknown
163
163
  > = z.object({
164
164
  Headers: z.record(z.array(z.string())),
165
- Result: components.EnrichedBusinessProfile$inboundSchema,
165
+ Result: components.EnrichedBusinessResponse$inboundSchema,
166
166
  }).transform((v) => {
167
167
  return remap$(v, {
168
168
  "Headers": "headers",
@@ -173,7 +173,7 @@ export const GetEnrichmentProfileResponse$inboundSchema: z.ZodType<
173
173
  /** @internal */
174
174
  export type GetEnrichmentProfileResponse$Outbound = {
175
175
  Headers: { [k: string]: Array<string> };
176
- Result: components.EnrichedBusinessProfile$Outbound;
176
+ Result: components.EnrichedBusinessResponse$Outbound;
177
177
  };
178
178
 
179
179
  /** @internal */
@@ -183,7 +183,7 @@ export const GetEnrichmentProfileResponse$outboundSchema: z.ZodType<
183
183
  GetEnrichmentProfileResponse
184
184
  > = z.object({
185
185
  headers: z.record(z.array(z.string())),
186
- result: components.EnrichedBusinessProfile$outboundSchema,
186
+ result: components.EnrichedBusinessResponse$outboundSchema,
187
187
  }).transform((v) => {
188
188
  return remap$(v, {
189
189
  headers: "Headers",
@@ -43,7 +43,7 @@ export type GetScheduledOccurrenceRequest = {
43
43
 
44
44
  export type GetScheduledOccurrenceResponse = {
45
45
  headers: { [k: string]: Array<string> };
46
- result: components.ScheduleResponse;
46
+ result: components.OccurrencesResponse;
47
47
  };
48
48
 
49
49
  /** @internal */
@@ -179,7 +179,7 @@ export const GetScheduledOccurrenceResponse$inboundSchema: z.ZodType<
179
179
  unknown
180
180
  > = z.object({
181
181
  Headers: z.record(z.array(z.string())),
182
- Result: components.ScheduleResponse$inboundSchema,
182
+ Result: components.OccurrencesResponse$inboundSchema,
183
183
  }).transform((v) => {
184
184
  return remap$(v, {
185
185
  "Headers": "headers",
@@ -190,7 +190,7 @@ export const GetScheduledOccurrenceResponse$inboundSchema: z.ZodType<
190
190
  /** @internal */
191
191
  export type GetScheduledOccurrenceResponse$Outbound = {
192
192
  Headers: { [k: string]: Array<string> };
193
- Result: components.ScheduleResponse$Outbound;
193
+ Result: components.OccurrencesResponse$Outbound;
194
194
  };
195
195
 
196
196
  /** @internal */
@@ -200,7 +200,7 @@ export const GetScheduledOccurrenceResponse$outboundSchema: z.ZodType<
200
200
  GetScheduledOccurrenceResponse
201
201
  > = z.object({
202
202
  headers: z.record(z.array(z.string())),
203
- result: components.ScheduleResponse$outboundSchema,
203
+ result: components.OccurrencesResponse$outboundSchema,
204
204
  }).transform((v) => {
205
205
  return remap$(v, {
206
206
  headers: "Headers",
@@ -30,7 +30,7 @@ export type ListIndustriesRequest = {};
30
30
 
31
31
  export type ListIndustriesResponse = {
32
32
  headers: { [k: string]: Array<string> };
33
- result: Array<components.EnrichedIndustry>;
33
+ result: components.EnrichedIndustries;
34
34
  };
35
35
 
36
36
  /** @internal */
@@ -150,7 +150,7 @@ export const ListIndustriesResponse$inboundSchema: z.ZodType<
150
150
  unknown
151
151
  > = z.object({
152
152
  Headers: z.record(z.array(z.string())),
153
- Result: z.array(components.EnrichedIndustry$inboundSchema),
153
+ Result: components.EnrichedIndustries$inboundSchema,
154
154
  }).transform((v) => {
155
155
  return remap$(v, {
156
156
  "Headers": "headers",
@@ -161,7 +161,7 @@ export const ListIndustriesResponse$inboundSchema: z.ZodType<
161
161
  /** @internal */
162
162
  export type ListIndustriesResponse$Outbound = {
163
163
  Headers: { [k: string]: Array<string> };
164
- Result: Array<components.EnrichedIndustry$Outbound>;
164
+ Result: components.EnrichedIndustries$Outbound;
165
165
  };
166
166
 
167
167
  /** @internal */
@@ -171,7 +171,7 @@ export const ListIndustriesResponse$outboundSchema: z.ZodType<
171
171
  ListIndustriesResponse
172
172
  > = z.object({
173
173
  headers: z.record(z.array(z.string())),
174
- result: z.array(components.EnrichedIndustry$outboundSchema),
174
+ result: components.EnrichedIndustries$outboundSchema,
175
175
  }).transform((v) => {
176
176
  return remap$(v, {
177
177
  headers: "Headers",
@@ -47,7 +47,7 @@ export type ListInstitutionsRequest = {
47
47
 
48
48
  export type ListInstitutionsResponse = {
49
49
  headers: { [k: string]: Array<string> };
50
- result: Array<components.FinancialInstitutions>;
50
+ result: components.FinancialInstitutions;
51
51
  };
52
52
 
53
53
  /** @internal */
@@ -182,7 +182,7 @@ export const ListInstitutionsResponse$inboundSchema: z.ZodType<
182
182
  unknown
183
183
  > = z.object({
184
184
  Headers: z.record(z.array(z.string())),
185
- Result: z.array(components.FinancialInstitutions$inboundSchema),
185
+ Result: components.FinancialInstitutions$inboundSchema,
186
186
  }).transform((v) => {
187
187
  return remap$(v, {
188
188
  "Headers": "headers",
@@ -193,7 +193,7 @@ export const ListInstitutionsResponse$inboundSchema: z.ZodType<
193
193
  /** @internal */
194
194
  export type ListInstitutionsResponse$Outbound = {
195
195
  Headers: { [k: string]: Array<string> };
196
- Result: Array<components.FinancialInstitutions$Outbound>;
196
+ Result: components.FinancialInstitutions$Outbound;
197
197
  };
198
198
 
199
199
  /** @internal */
@@ -203,7 +203,7 @@ export const ListInstitutionsResponse$outboundSchema: z.ZodType<
203
203
  ListInstitutionsResponse
204
204
  > = z.object({
205
205
  headers: z.record(z.array(z.string())),
206
- result: z.array(components.FinancialInstitutions$outboundSchema),
206
+ result: components.FinancialInstitutions$outboundSchema,
207
207
  }).transform((v) => {
208
208
  return remap$(v, {
209
209
  headers: "Headers",
@@ -2,13 +2,11 @@
2
2
  * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
3
  */
4
4
 
5
- import { avatarsGet, GetAcceptEnum } from "../funcs/avatarsGet.js";
5
+ import { avatarsGet } from "../funcs/avatarsGet.js";
6
6
  import { ClientSDK, RequestOptions } from "../lib/sdks.js";
7
7
  import * as operations from "../models/operations/index.js";
8
8
  import { unwrapAsync } from "../types/fp.js";
9
9
 
10
- export { GetAcceptEnum } from "../funcs/avatarsGet.js";
11
-
12
10
  export class Avatars extends ClientSDK {
13
11
  /**
14
12
  * Get avatar image for an account using a unique ID.
@@ -18,7 +16,7 @@ export class Avatars extends ClientSDK {
18
16
  */
19
17
  async get(
20
18
  request: operations.GetAvatarRequest,
21
- options?: RequestOptions & { acceptHeaderOverride?: GetAcceptEnum },
19
+ options?: RequestOptions,
22
20
  ): Promise<operations.GetAvatarResponse> {
23
21
  return unwrapAsync(avatarsGet(
24
22
  this,
@@ -99,7 +99,7 @@ export class Scheduling extends ClientSDK {
99
99
  }
100
100
 
101
101
  /**
102
- * Defines an occurrence for when to run a transfer.
102
+ * Gets a specific occurrence.
103
103
  *
104
104
  * To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
105
105
  * you'll need to specify the `/accounts/{accountID}/transfers.read` scope.
@@ -41,7 +41,7 @@ export class Transfers extends ClientSDK {
41
41
  * Read our [transfers overview guide](https://docs.moov.io/guides/money-movement/overview/) to learn more.
42
42
  *
43
43
  * When you run this request, you retrieve 200 transfers at a time. You can advance past a results set of 200 transfers by using the `skip` parameter (for example,
44
- * if you set `skip`= 10, you will see a results set of 200 transfers after the first 2000). If you are searching a high volume of transfers, the request will likely
44
+ * if you set `skip`= 10, you will see a results set of 200 transfers after the first 10). If you are searching a high volume of transfers, the request will likely
45
45
  * process very slowly. To achieve faster performance, restrict the data as much as you can by using the `StartDateTime` and `EndDateTime` parameters for a limited
46
46
  * period of time. You can run multiple requests in smaller time window increments until you've retrieved all the transfers you need.
47
47
  *