@moovio/sdk 0.3.3 → 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 (55) hide show
  1. package/funcs/avatarsGet.d.ts +1 -7
  2. package/funcs/avatarsGet.d.ts.map +1 -1
  3. package/funcs/avatarsGet.js +2 -12
  4. package/funcs/avatarsGet.js.map +1 -1
  5. package/jsr.json +1 -1
  6. package/lib/config.d.ts +2 -2
  7. package/lib/config.js +2 -2
  8. package/models/components/capabilityrequirement.d.ts +2 -2
  9. package/models/components/capabilityrequirement.d.ts.map +1 -1
  10. package/models/components/capabilityrequirement.js +2 -2
  11. package/models/components/capabilityrequirement.js.map +1 -1
  12. package/models/components/enrichedbusinessresponse.d.ts +30 -0
  13. package/models/components/enrichedbusinessresponse.d.ts.map +1 -0
  14. package/models/components/enrichedbusinessresponse.js +70 -0
  15. package/models/components/enrichedbusinessresponse.js.map +1 -0
  16. package/models/components/enrichedindustries.d.ts +30 -0
  17. package/models/components/enrichedindustries.d.ts.map +1 -0
  18. package/models/components/enrichedindustries.js +70 -0
  19. package/models/components/enrichedindustries.js.map +1 -0
  20. package/models/components/index.d.ts +2 -0
  21. package/models/components/index.d.ts.map +1 -1
  22. package/models/components/index.js +2 -0
  23. package/models/components/index.js.map +1 -1
  24. package/models/operations/getavatar.d.ts +2 -23
  25. package/models/operations/getavatar.d.ts.map +1 -1
  26. package/models/operations/getavatar.js +3 -38
  27. package/models/operations/getavatar.js.map +1 -1
  28. package/models/operations/getenrichmentprofile.d.ts +2 -2
  29. package/models/operations/getenrichmentprofile.d.ts.map +1 -1
  30. package/models/operations/getenrichmentprofile.js +2 -2
  31. package/models/operations/getenrichmentprofile.js.map +1 -1
  32. package/models/operations/listindustries.d.ts +2 -2
  33. package/models/operations/listindustries.d.ts.map +1 -1
  34. package/models/operations/listindustries.js +2 -2
  35. package/models/operations/listindustries.js.map +1 -1
  36. package/models/operations/listinstitutions.d.ts +2 -2
  37. package/models/operations/listinstitutions.d.ts.map +1 -1
  38. package/models/operations/listinstitutions.js +2 -2
  39. package/models/operations/listinstitutions.js.map +1 -1
  40. package/package.json +1 -1
  41. package/sdk/avatars.d.ts +1 -5
  42. package/sdk/avatars.d.ts.map +1 -1
  43. package/sdk/avatars.js +1 -3
  44. package/sdk/avatars.js.map +1 -1
  45. package/src/funcs/avatarsGet.ts +3 -13
  46. package/src/lib/config.ts +2 -2
  47. package/src/models/components/capabilityrequirement.ts +4 -4
  48. package/src/models/components/enrichedbusinessresponse.ts +72 -0
  49. package/src/models/components/enrichedindustries.ts +72 -0
  50. package/src/models/components/index.ts +2 -0
  51. package/src/models/operations/getavatar.ts +4 -70
  52. package/src/models/operations/getenrichmentprofile.ts +4 -4
  53. package/src/models/operations/listindustries.ts +4 -4
  54. package/src/models/operations/listinstitutions.ts +4 -4
  55. package/src/sdk/avatars.ts +2 -4
@@ -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",
@@ -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,