@moovio/sdk 0.14.15 → 0.14.17

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 (149) hide show
  1. package/README.md +32 -2
  2. package/bin/mcp-server.js +399 -392
  3. package/bin/mcp-server.js.map +30 -32
  4. package/docs/sdks/accounts/README.md +19 -10
  5. package/docs/sdks/accountterminalapplications/README.md +4 -0
  6. package/docs/sdks/adjustments/README.md +2 -0
  7. package/docs/sdks/applepay/README.md +5 -0
  8. package/docs/sdks/authentication/README.md +2 -0
  9. package/docs/sdks/avatars/README.md +1 -0
  10. package/docs/sdks/bankaccounts/README.md +9 -0
  11. package/docs/sdks/branding/README.md +4 -0
  12. package/docs/sdks/capabilities/README.md +4 -0
  13. package/docs/sdks/cardissuing/README.md +5 -0
  14. package/docs/sdks/cards/README.md +5 -0
  15. package/docs/sdks/disputes/README.md +11 -0
  16. package/docs/sdks/endtoendencryption/README.md +2 -0
  17. package/docs/sdks/enrichedaddress/README.md +1 -0
  18. package/docs/sdks/enrichedprofile/README.md +1 -0
  19. package/docs/sdks/feeplans/README.md +7 -0
  20. package/docs/sdks/files/README.md +3 -0
  21. package/docs/sdks/industries/README.md +1 -0
  22. package/docs/sdks/institutions/README.md +2 -0
  23. package/docs/sdks/issuingtransactions/README.md +5 -0
  24. package/docs/sdks/onboarding/README.md +4 -0
  25. package/docs/sdks/paymentlinks/README.md +6 -0
  26. package/docs/sdks/paymentmethods/README.md +2 -0
  27. package/docs/sdks/ping/README.md +1 -0
  28. package/docs/sdks/receipts/README.md +2 -0
  29. package/docs/sdks/representatives/README.md +5 -0
  30. package/docs/sdks/scheduling/README.md +6 -0
  31. package/docs/sdks/support/README.md +35 -0
  32. package/docs/sdks/sweeps/README.md +6 -0
  33. package/docs/sdks/terminalapplications/README.md +5 -0
  34. package/docs/sdks/transfers/README.md +11 -0
  35. package/docs/sdks/underwriting/README.md +3 -0
  36. package/docs/sdks/wallets/README.md +2 -0
  37. package/docs/sdks/wallettransactions/README.md +2 -0
  38. package/examples/package-lock.json +1 -1
  39. package/funcs/accountsCreate.d.ts +1 -1
  40. package/funcs/accountsCreate.d.ts.map +1 -1
  41. package/funcs/accountsCreate.js +1 -3
  42. package/funcs/accountsCreate.js.map +1 -1
  43. package/funcs/accountsUpdate.d.ts +1 -1
  44. package/funcs/accountsUpdate.d.ts.map +1 -1
  45. package/funcs/accountsUpdate.js +1 -3
  46. package/funcs/accountsUpdate.js.map +1 -1
  47. package/funcs/supportCreateTicket.d.ts +3 -0
  48. package/funcs/supportCreateTicket.d.ts.map +1 -1
  49. package/funcs/supportCreateTicket.js +3 -0
  50. package/funcs/supportCreateTicket.js.map +1 -1
  51. package/funcs/supportGetTicket.d.ts +3 -0
  52. package/funcs/supportGetTicket.d.ts.map +1 -1
  53. package/funcs/supportGetTicket.js +3 -0
  54. package/funcs/supportGetTicket.js.map +1 -1
  55. package/funcs/supportListTicketMessages.d.ts +3 -0
  56. package/funcs/supportListTicketMessages.d.ts.map +1 -1
  57. package/funcs/supportListTicketMessages.js +3 -0
  58. package/funcs/supportListTicketMessages.js.map +1 -1
  59. package/funcs/supportListTickets.d.ts +3 -0
  60. package/funcs/supportListTickets.d.ts.map +1 -1
  61. package/funcs/supportListTickets.js +3 -0
  62. package/funcs/supportListTickets.js.map +1 -1
  63. package/funcs/supportUpdateTicket.d.ts +3 -0
  64. package/funcs/supportUpdateTicket.d.ts.map +1 -1
  65. package/funcs/supportUpdateTicket.js +3 -0
  66. package/funcs/supportUpdateTicket.js.map +1 -1
  67. package/jsr.json +1 -1
  68. package/lib/config.d.ts +3 -3
  69. package/lib/config.js +3 -3
  70. package/mcp-server/mcp-server.js +1 -1
  71. package/mcp-server/server.js +1 -1
  72. package/mcp-server/tools/supportCreateTicket.d.ts.map +1 -1
  73. package/mcp-server/tools/supportCreateTicket.js +4 -1
  74. package/mcp-server/tools/supportCreateTicket.js.map +1 -1
  75. package/mcp-server/tools/supportGetTicket.d.ts.map +1 -1
  76. package/mcp-server/tools/supportGetTicket.js +4 -1
  77. package/mcp-server/tools/supportGetTicket.js.map +1 -1
  78. package/mcp-server/tools/supportListTicketMessages.d.ts.map +1 -1
  79. package/mcp-server/tools/supportListTicketMessages.js +4 -1
  80. package/mcp-server/tools/supportListTicketMessages.js.map +1 -1
  81. package/mcp-server/tools/supportListTickets.d.ts.map +1 -1
  82. package/mcp-server/tools/supportListTickets.js +4 -1
  83. package/mcp-server/tools/supportListTickets.js.map +1 -1
  84. package/mcp-server/tools/supportUpdateTicket.d.ts.map +1 -1
  85. package/mcp-server/tools/supportUpdateTicket.js +4 -1
  86. package/mcp-server/tools/supportUpdateTicket.js.map +1 -1
  87. package/models/components/index.d.ts +0 -2
  88. package/models/components/index.d.ts.map +1 -1
  89. package/models/components/index.js +0 -2
  90. package/models/components/index.js.map +1 -1
  91. package/models/components/underwritingstatus.d.ts +6 -6
  92. package/models/components/underwritingstatus.js +2 -2
  93. package/models/components/underwritingstatus.js.map +1 -1
  94. package/models/errors/createaccounterror.d.ts +64 -0
  95. package/models/errors/createaccounterror.d.ts.map +1 -0
  96. package/models/{components → errors}/createaccounterror.js +52 -24
  97. package/models/errors/createaccounterror.js.map +1 -0
  98. package/models/errors/index.d.ts +2 -2
  99. package/models/errors/index.d.ts.map +1 -1
  100. package/models/errors/index.js +2 -2
  101. package/models/errors/index.js.map +1 -1
  102. package/models/errors/patchaccounterror.d.ts +52 -0
  103. package/models/errors/patchaccounterror.d.ts.map +1 -0
  104. package/models/{components → errors}/patchaccounterror.js +48 -24
  105. package/models/errors/patchaccounterror.js.map +1 -0
  106. package/package.json +1 -1
  107. package/sdk/support.d.ts +15 -0
  108. package/sdk/support.d.ts.map +1 -1
  109. package/sdk/support.js +15 -0
  110. package/sdk/support.js.map +1 -1
  111. package/src/funcs/accountsCreate.ts +4 -6
  112. package/src/funcs/accountsUpdate.ts +4 -6
  113. package/src/funcs/supportCreateTicket.ts +3 -0
  114. package/src/funcs/supportGetTicket.ts +3 -0
  115. package/src/funcs/supportListTicketMessages.ts +3 -0
  116. package/src/funcs/supportListTickets.ts +3 -0
  117. package/src/funcs/supportUpdateTicket.ts +3 -0
  118. package/src/lib/config.ts +3 -3
  119. package/src/mcp-server/mcp-server.ts +1 -1
  120. package/src/mcp-server/server.ts +1 -1
  121. package/src/mcp-server/tools/supportCreateTicket.ts +4 -1
  122. package/src/mcp-server/tools/supportGetTicket.ts +4 -1
  123. package/src/mcp-server/tools/supportListTicketMessages.ts +4 -1
  124. package/src/mcp-server/tools/supportListTickets.ts +4 -1
  125. package/src/mcp-server/tools/supportUpdateTicket.ts +4 -1
  126. package/src/models/components/index.ts +0 -2
  127. package/src/models/components/underwritingstatus.ts +2 -2
  128. package/src/models/errors/createaccounterror.ts +122 -0
  129. package/src/models/errors/index.ts +2 -2
  130. package/src/models/errors/patchaccounterror.ts +110 -0
  131. package/src/sdk/support.ts +15 -0
  132. package/models/components/createaccounterror.d.ts +0 -51
  133. package/models/components/createaccounterror.d.ts.map +0 -1
  134. package/models/components/createaccounterror.js.map +0 -1
  135. package/models/components/patchaccounterror.d.ts +0 -43
  136. package/models/components/patchaccounterror.d.ts.map +0 -1
  137. package/models/components/patchaccounterror.js.map +0 -1
  138. package/models/errors/createaccount.d.ts +0 -43
  139. package/models/errors/createaccount.d.ts.map +0 -1
  140. package/models/errors/createaccount.js +0 -89
  141. package/models/errors/createaccount.js.map +0 -1
  142. package/models/errors/updateaccount.d.ts +0 -43
  143. package/models/errors/updateaccount.d.ts.map +0 -1
  144. package/models/errors/updateaccount.js +0 -89
  145. package/models/errors/updateaccount.js.map +0 -1
  146. package/src/models/components/createaccounterror.ts +0 -118
  147. package/src/models/components/patchaccounterror.ts +0 -110
  148. package/src/models/errors/createaccount.ts +0 -86
  149. package/src/models/errors/updateaccount.ts +0 -86
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/models/components/index.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;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C5C,yDAAuC;AACvC,mEAAiD;AACjD,+DAA6C;AAC7C,6DAA2C;AAC3C,mDAAiC;AACjC,iEAA+C;AAC/C,iEAA+C;AAC/C,iEAA+C;AAC/C,iEAA+C;AAC/C,qEAAmD;AACnD,qEAAmD;AACnD,qEAAmD;AACnD,sEAAoD;AACpD,sEAAoD;AACpD,sEAAoD;AACpD,oEAAkD;AAClD,kEAAgD;AAChD,iEAA+C;AAC/C,iEAA+C;AAC/C,mEAAiD;AACjD,wEAAsD;AACtD,uEAAqD;AACrD,gEAA8C;AAC9C,gEAA8C;AAC9C,wEAAsD;AACtD,yEAAuD;AACvD,wEAAsD;AACtD,+DAA6C;AAC7C,+DAA6C;AAC7C,6EAA2D;AAC3D,6EAA2D;AAC3D,kEAAgD;AAChD,iEAA+C;AAC/C,kEAAgD;AAChD,2EAAyD;AACzD,oDAAkC;AAClC,wDAAsC;AACtC,2EAAyD;AACzD,uDAAqC;AACrC,oDAAkC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/models/components/index.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;AAEH,+CAA6B;AAC7B,yDAAuC;AACvC,wDAAsC;AACtC,+DAA6C;AAC7C,kEAAgD;AAChD,mDAAiC;AACjC,iEAA+C;AAC/C,qEAAmD;AACnD,sEAAoD;AACpD,oEAAkD;AAClD,iEAA+C;AAC/C,oDAAkC;AAClC,sDAAoC;AACpC,mDAAiC;AACjC,sDAAoC;AACpC,yDAAuC;AACvC,8DAA4C;AAC5C,0DAAwC;AACxC,qDAAmC;AACnC,6DAA2C;AAC3C,4DAA0C;AAC1C,uDAAqC;AACrC,+CAA6B;AAC7B,oDAAkC;AAClC,yDAAuC;AACvC,qDAAmC;AACnC,kDAAgC;AAChC,8CAA4B;AAC5B,qDAAmC;AACnC,oDAAkC;AAClC,6DAA2C;AAC3C,2DAAyC;AACzC,sDAAoC;AACpC,+DAA6C;AAC7C,6DAA2C;AAC3C,wDAAsC;AAC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AACzD,uDAAqC;AACrC,oDAAkC"}
@@ -6,9 +6,9 @@ import { ClosedEnum } from "../../types/enums.js";
6
6
  export declare const UnderwritingStatus: {
7
7
  readonly Approved: "approved";
8
8
  readonly Rejected: "rejected";
9
- readonly PendingReview: "pendingReview";
9
+ readonly PendingReview: "pending_review";
10
10
  readonly Pending: "pending";
11
- readonly NotRequested: "notRequested";
11
+ readonly NotRequested: "not_requested";
12
12
  };
13
13
  /**
14
14
  * @deprecated enum: This will be removed in a future release, please migrate away from it as soon as possible.
@@ -27,17 +27,17 @@ export declare namespace UnderwritingStatus$ {
27
27
  const inboundSchema: z.ZodNativeEnum<{
28
28
  readonly Approved: "approved";
29
29
  readonly Rejected: "rejected";
30
- readonly PendingReview: "pendingReview";
30
+ readonly PendingReview: "pending_review";
31
31
  readonly Pending: "pending";
32
- readonly NotRequested: "notRequested";
32
+ readonly NotRequested: "not_requested";
33
33
  }>;
34
34
  /** @deprecated use `UnderwritingStatus$outboundSchema` instead. */
35
35
  const outboundSchema: z.ZodNativeEnum<{
36
36
  readonly Approved: "approved";
37
37
  readonly Rejected: "rejected";
38
- readonly PendingReview: "pendingReview";
38
+ readonly PendingReview: "pending_review";
39
39
  readonly Pending: "pending";
40
- readonly NotRequested: "notRequested";
40
+ readonly NotRequested: "not_requested";
41
41
  }>;
42
42
  }
43
43
  //# sourceMappingURL=underwritingstatus.d.ts.map
@@ -44,9 +44,9 @@ const z = __importStar(require("zod"));
44
44
  exports.UnderwritingStatus = {
45
45
  Approved: "approved",
46
46
  Rejected: "rejected",
47
- PendingReview: "pendingReview",
47
+ PendingReview: "pending_review",
48
48
  Pending: "pending",
49
- NotRequested: "notRequested",
49
+ NotRequested: "not_requested",
50
50
  };
51
51
  /** @internal */
52
52
  exports.UnderwritingStatus$inboundSchema = z.nativeEnum(exports.UnderwritingStatus);
@@ -1 +1 @@
1
- {"version":3,"file":"underwritingstatus.js","sourceRoot":"","sources":["../../src/models/components/underwritingstatus.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AAGzB;;GAEG;AACU,QAAA,kBAAkB,GAAG;IAChC,QAAQ,EAAE,UAAU;IACpB,QAAQ,EAAE,UAAU;IACpB,aAAa,EAAE,eAAe;IAC9B,OAAO,EAAE,SAAS;IAClB,YAAY,EAAE,cAAc;CACpB,CAAC;AAMX,gBAAgB;AACH,QAAA,gCAAgC,GAEzC,CAAC,CAAC,UAAU,CAAC,0BAAkB,CAAC,CAAC;AAErC,gBAAgB;AACH,QAAA,iCAAiC,GAE1C,wCAAgC,CAAC;AAErC;;;GAGG;AACH,IAAiB,mBAAmB,CAKnC;AALD,WAAiB,mBAAmB;IAClC,kEAAkE;IACrD,iCAAa,GAAG,wCAAgC,CAAC;IAC9D,mEAAmE;IACtD,kCAAc,GAAG,yCAAiC,CAAC;AAClE,CAAC,EALgB,mBAAmB,mCAAnB,mBAAmB,QAKnC"}
1
+ {"version":3,"file":"underwritingstatus.js","sourceRoot":"","sources":["../../src/models/components/underwritingstatus.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AAGzB;;GAEG;AACU,QAAA,kBAAkB,GAAG;IAChC,QAAQ,EAAE,UAAU;IACpB,QAAQ,EAAE,UAAU;IACpB,aAAa,EAAE,gBAAgB;IAC/B,OAAO,EAAE,SAAS;IAClB,YAAY,EAAE,eAAe;CACrB,CAAC;AAMX,gBAAgB;AACH,QAAA,gCAAgC,GAEzC,CAAC,CAAC,UAAU,CAAC,0BAAkB,CAAC,CAAC;AAErC,gBAAgB;AACH,QAAA,iCAAiC,GAE1C,wCAAgC,CAAC;AAErC;;;GAGG;AACH,IAAiB,mBAAmB,CAKnC;AALD,WAAiB,mBAAmB;IAClC,kEAAkE;IACrD,iCAAa,GAAG,wCAAgC,CAAC;IAC9D,mEAAmE;IACtD,kCAAc,GAAG,yCAAiC,CAAC;AAClE,CAAC,EALgB,mBAAmB,mCAAnB,mBAAmB,QAKnC"}
@@ -0,0 +1,64 @@
1
+ import * as z from "zod";
2
+ import * as components from "../components/index.js";
3
+ import { MoovError } from "./mooverror.js";
4
+ export type CreateAccountErrorData = {
5
+ accountType?: string | undefined;
6
+ profile?: components.CreateProfileError | undefined;
7
+ metadata?: string | undefined;
8
+ termsOfService?: components.TermsOfServiceError | undefined;
9
+ foreignID?: string | undefined;
10
+ customerSupport?: components.CustomerSupportError | undefined;
11
+ settings?: components.CreateAccountSettings | undefined;
12
+ capabilities?: {
13
+ [k: string]: string;
14
+ } | undefined;
15
+ };
16
+ export declare class CreateAccountError extends MoovError {
17
+ accountType?: string | undefined;
18
+ profile?: components.CreateProfileError | undefined;
19
+ metadata?: string | undefined;
20
+ termsOfService?: components.TermsOfServiceError | undefined;
21
+ foreignID?: string | undefined;
22
+ customerSupport?: components.CustomerSupportError | undefined;
23
+ settings?: components.CreateAccountSettings | undefined;
24
+ capabilities?: {
25
+ [k: string]: string;
26
+ } | undefined;
27
+ /** The original data that was passed to this error instance. */
28
+ data$: CreateAccountErrorData;
29
+ constructor(err: CreateAccountErrorData, httpMeta: {
30
+ response: Response;
31
+ request: Request;
32
+ body: string;
33
+ });
34
+ }
35
+ /** @internal */
36
+ export declare const CreateAccountError$inboundSchema: z.ZodType<CreateAccountError, z.ZodTypeDef, unknown>;
37
+ /** @internal */
38
+ export type CreateAccountError$Outbound = {
39
+ accountType?: string | undefined;
40
+ profile?: components.CreateProfileError$Outbound | undefined;
41
+ metadata?: string | undefined;
42
+ termsOfService?: components.TermsOfServiceError$Outbound | undefined;
43
+ foreignID?: string | undefined;
44
+ customerSupport?: components.CustomerSupportError$Outbound | undefined;
45
+ settings?: components.CreateAccountSettings$Outbound | undefined;
46
+ capabilities?: {
47
+ [k: string]: string;
48
+ } | undefined;
49
+ };
50
+ /** @internal */
51
+ export declare const CreateAccountError$outboundSchema: z.ZodType<CreateAccountError$Outbound, z.ZodTypeDef, CreateAccountError>;
52
+ /**
53
+ * @internal
54
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
55
+ */
56
+ export declare namespace CreateAccountError$ {
57
+ /** @deprecated use `CreateAccountError$inboundSchema` instead. */
58
+ const inboundSchema: z.ZodType<CreateAccountError, z.ZodTypeDef, unknown>;
59
+ /** @deprecated use `CreateAccountError$outboundSchema` instead. */
60
+ const outboundSchema: z.ZodType<CreateAccountError$Outbound, z.ZodTypeDef, CreateAccountError>;
61
+ /** @deprecated use `CreateAccountError$Outbound` instead. */
62
+ type Outbound = CreateAccountError$Outbound;
63
+ }
64
+ //# sourceMappingURL=createaccounterror.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createaccounterror.d.ts","sourceRoot":"","sources":["../../src/models/errors/createaccounterror.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,KAAK,UAAU,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAE3C,MAAM,MAAM,sBAAsB,GAAG;IACnC,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACjC,OAAO,CAAC,EAAE,UAAU,CAAC,kBAAkB,GAAG,SAAS,CAAC;IACpD,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC9B,cAAc,CAAC,EAAE,UAAU,CAAC,mBAAmB,GAAG,SAAS,CAAC;IAC5D,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/B,eAAe,CAAC,EAAE,UAAU,CAAC,oBAAoB,GAAG,SAAS,CAAC;IAC9D,QAAQ,CAAC,EAAE,UAAU,CAAC,qBAAqB,GAAG,SAAS,CAAC;IACxD,YAAY,CAAC,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,GAAG,SAAS,CAAC;CACpD,CAAC;AAEF,qBAAa,kBAAmB,SAAQ,SAAS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AC,EAAE,UAAU,CAAC,8BAA8B,GAAG,SAAS,CAAC;IACjE,YAAY,CAAC,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,GAAG,SAAS,CAAC;CACpD,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,iCAAiC,EAAE,CAAC,CAAC,OAAO,CACvD,2BAA2B,EAC3B,CAAC,CAAC,UAAU,EACZ,kBAAkB,CAYf,CAAC;AAEN;;;GAGG;AACH,yBAAiB,mBAAmB,CAAC;IACnC,kEAAkE;IAC3D,MAAM,aAAa,sDAAmC,CAAC;IAC9D,mEAAmE;IAC5D,MAAM,cAAc,0EAAoC,CAAC;IAChE,6DAA6D;IAC7D,KAAY,QAAQ,GAAG,2BAA2B,CAAC;CACpD"}
@@ -36,37 +36,71 @@ var __importStar = (this && this.__importStar) || (function () {
36
36
  };
37
37
  })();
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.CreateAccountError$ = exports.CreateAccountError$outboundSchema = exports.CreateAccountError$inboundSchema = void 0;
40
- exports.createAccountErrorToJSON = createAccountErrorToJSON;
41
- exports.createAccountErrorFromJSON = createAccountErrorFromJSON;
39
+ exports.CreateAccountError$ = exports.CreateAccountError$outboundSchema = exports.CreateAccountError$inboundSchema = exports.CreateAccountError = void 0;
42
40
  const z = __importStar(require("zod"));
43
- const schemas_js_1 = require("../../lib/schemas.js");
44
- const createaccountsettings_js_1 = require("./createaccountsettings.js");
45
- const createprofileerror_js_1 = require("./createprofileerror.js");
46
- const customersupporterror_js_1 = require("./customersupporterror.js");
47
- const termsofserviceerror_js_1 = require("./termsofserviceerror.js");
41
+ const components = __importStar(require("../components/index.js"));
42
+ const mooverror_js_1 = require("./mooverror.js");
43
+ class CreateAccountError extends mooverror_js_1.MoovError {
44
+ constructor(err, httpMeta) {
45
+ const message = "message" in err && typeof err.message === "string"
46
+ ? err.message
47
+ : `API error occurred: ${JSON.stringify(err)}`;
48
+ super(message, httpMeta);
49
+ this.data$ = err;
50
+ if (err.accountType != null)
51
+ this.accountType = err.accountType;
52
+ if (err.profile != null)
53
+ this.profile = err.profile;
54
+ if (err.metadata != null)
55
+ this.metadata = err.metadata;
56
+ if (err.termsOfService != null)
57
+ this.termsOfService = err.termsOfService;
58
+ if (err.foreignID != null)
59
+ this.foreignID = err.foreignID;
60
+ if (err.customerSupport != null)
61
+ this.customerSupport = err.customerSupport;
62
+ if (err.settings != null)
63
+ this.settings = err.settings;
64
+ if (err.capabilities != null)
65
+ this.capabilities = err.capabilities;
66
+ this.name = "CreateAccountError";
67
+ }
68
+ }
69
+ exports.CreateAccountError = CreateAccountError;
48
70
  /** @internal */
49
71
  exports.CreateAccountError$inboundSchema = z.object({
50
72
  accountType: z.string().optional(),
51
- profile: createprofileerror_js_1.CreateProfileError$inboundSchema.optional(),
73
+ profile: components.CreateProfileError$inboundSchema.optional(),
52
74
  metadata: z.string().optional(),
53
- termsOfService: termsofserviceerror_js_1.TermsOfServiceError$inboundSchema.optional(),
75
+ termsOfService: components.TermsOfServiceError$inboundSchema.optional(),
54
76
  foreignID: z.string().optional(),
55
- customerSupport: customersupporterror_js_1.CustomerSupportError$inboundSchema.optional(),
56
- settings: createaccountsettings_js_1.CreateAccountSettings$inboundSchema.optional(),
77
+ customerSupport: components.CustomerSupportError$inboundSchema.optional(),
78
+ settings: components.CreateAccountSettings$inboundSchema.optional(),
57
79
  capabilities: z.record(z.string()).optional(),
80
+ request$: z.instanceof(Request),
81
+ response$: z.instanceof(Response),
82
+ body$: z.string(),
83
+ })
84
+ .transform((v) => {
85
+ return new CreateAccountError(v, {
86
+ request: v.request$,
87
+ response: v.response$,
88
+ body: v.body$,
89
+ });
58
90
  });
59
91
  /** @internal */
60
- exports.CreateAccountError$outboundSchema = z.object({
92
+ exports.CreateAccountError$outboundSchema = z.instanceof(CreateAccountError)
93
+ .transform(v => v.data$)
94
+ .pipe(z.object({
61
95
  accountType: z.string().optional(),
62
- profile: createprofileerror_js_1.CreateProfileError$outboundSchema.optional(),
96
+ profile: components.CreateProfileError$outboundSchema.optional(),
63
97
  metadata: z.string().optional(),
64
- termsOfService: termsofserviceerror_js_1.TermsOfServiceError$outboundSchema.optional(),
98
+ termsOfService: components.TermsOfServiceError$outboundSchema.optional(),
65
99
  foreignID: z.string().optional(),
66
- customerSupport: customersupporterror_js_1.CustomerSupportError$outboundSchema.optional(),
67
- settings: createaccountsettings_js_1.CreateAccountSettings$outboundSchema.optional(),
100
+ customerSupport: components.CustomerSupportError$outboundSchema.optional(),
101
+ settings: components.CreateAccountSettings$outboundSchema.optional(),
68
102
  capabilities: z.record(z.string()).optional(),
69
- });
103
+ }));
70
104
  /**
71
105
  * @internal
72
106
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
@@ -78,10 +112,4 @@ var CreateAccountError$;
78
112
  /** @deprecated use `CreateAccountError$outboundSchema` instead. */
79
113
  CreateAccountError$.outboundSchema = exports.CreateAccountError$outboundSchema;
80
114
  })(CreateAccountError$ || (exports.CreateAccountError$ = CreateAccountError$ = {}));
81
- function createAccountErrorToJSON(createAccountError) {
82
- return JSON.stringify(exports.CreateAccountError$outboundSchema.parse(createAccountError));
83
- }
84
- function createAccountErrorFromJSON(jsonString) {
85
- return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.CreateAccountError$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateAccountError' from JSON`);
86
- }
87
115
  //# sourceMappingURL=createaccounterror.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createaccounterror.js","sourceRoot":"","sources":["../../src/models/errors/createaccounterror.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AACzB,mEAAqD;AACrD,iDAA2C;AAa3C,MAAa,kBAAmB,SAAQ,wBAAS;IAa/C,YACE,GAA2B,EAC3B,QAAgE;QAEhE,MAAM,OAAO,GAAG,SAAS,IAAI,GAAG,IAAI,OAAO,GAA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CAAkC,CAAC,QAAQ,EAAE;IACxE,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAChC,eAAe,EAAE,UAAU,CAAC,mCAAmC,CAAC,QAAQ,EAAE;IAC1E,QAAQ,EAAE,UAAU,CAAC,oCAAoC,CAAC,QAAQ,EAAE;IACpE,YAAY,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;CAC9C,CAAC,CAAC,CAAC;AAEN;;;GAGG;AACH,IAAiB,mBAAmB,CAOnC;AAPD,WAAiB,mBAAmB;IAClC,kEAAkE;IACrD,iCAAa,GAAG,wCAAgC,CAAC;IAC9D,mEAAmE;IACtD,kCAAc,GAAG,yCAAiC,CAAC;AAGlE,CAAC,EAPgB,mBAAmB,mCAAnB,mBAAmB,QAOnC"}
@@ -6,7 +6,7 @@ export * from "./authtokenrequesterror.js";
6
6
  export * from "./bankaccountvalidationerror.js";
7
7
  export * from "./brandvalidationerror.js";
8
8
  export * from "./cardacquiringrefund.js";
9
- export * from "./createaccount.js";
9
+ export * from "./createaccounterror.js";
10
10
  export * from "./createpaymentlinkerror.js";
11
11
  export * from "./createsweepconfigerror.js";
12
12
  export * from "./createticketerror.js";
@@ -19,6 +19,7 @@ export * from "./linkapplepayerror.js";
19
19
  export * from "./linkcarderror.js";
20
20
  export * from "./microdepositvalidationerror.js";
21
21
  export * from "./onboardinginviteerror.js";
22
+ export * from "./patchaccounterror.js";
22
23
  export * from "./patchsweepconfigerror.js";
23
24
  export * from "./refundvalidationerror.js";
24
25
  export * from "./representativevalidationerror.js";
@@ -32,7 +33,6 @@ export * from "./terminalapplicationerror.js";
32
33
  export * from "./transfer.js";
33
34
  export * from "./transferoptionsvalidationerror.js";
34
35
  export * from "./transfervalidationerror.js";
35
- export * from "./updateaccount.js";
36
36
  export * from "./updatecarderror.js";
37
37
  export * from "./updateissuedcarderror.js";
38
38
  export * from "./updatepaymentlinkerror.js";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/models/errors/index.ts"],"names":[],"mappings":"AAIA,cAAc,sCAAsC,CAAC;AACrD,cAAc,2BAA2B,CAAC;AAC1C,cAAc,eAAe,CAAC;AAC9B,cAAc,2BAA2B,CAAC;AAC1C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,iCAAiC,CAAC;AAChD,cAAc,2BAA2B,CAAC;AAC1C,cAAc,0BAA0B,CAAC;AACzC,cAAc,oBAAoB,CAAC;AACnC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,wBAAwB,CAAC;AACvC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,0BAA0B,CAAC;AACzC,cAAc,mBAAmB,CAAC;AAClC,cAAc,uBAAuB,CAAC;AACtC,cAAc,wBAAwB,CAAC;AACvC,cAAc,oBAAoB,CAAC;AACnC,cAAc,kCAAkC,CAAC;AACjD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,oCAAoC,CAAC;AACnD,cAAc,uBAAuB,CAAC;AACtC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,yBAAyB,CAAC;AACxC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,eAAe,CAAC;AAC9B,cAAc,qCAAqC,CAAC;AACpD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,oBAAoB,CAAC;AACnC,cAAc,sBAAsB,CAAC;AACrC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,wBAAwB,CAAC;AACvC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,8BAA8B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/models/errors/index.ts"],"names":[],"mappings":"AAIA,cAAc,sCAAsC,CAAC;AACrD,cAAc,2BAA2B,CAAC;AAC1C,cAAc,eAAe,CAAC;AAC9B,cAAc,2BAA2B,CAAC;AAC1C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,iCAAiC,CAAC;AAChD,cAAc,2BAA2B,CAAC;AAC1C,cAAc,0BAA0B,CAAC;AACzC,cAAc,yBAAyB,CAAC;AACxC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,wBAAwB,CAAC;AACvC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,0BAA0B,CAAC;AACzC,cAAc,mBAAmB,CAAC;AAClC,cAAc,uBAAuB,CAAC;AACtC,cAAc,wBAAwB,CAAC;AACvC,cAAc,oBAAoB,CAAC;AACnC,cAAc,kCAAkC,CAAC;AACjD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,wBAAwB,CAAC;AACvC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,oCAAoC,CAAC;AACnD,cAAc,uBAAuB,CAAC;AACtC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,yBAAyB,CAAC;AACxC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,eAAe,CAAC;AAC9B,cAAc,qCAAqC,CAAC;AACpD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,sBAAsB,CAAC;AACrC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,wBAAwB,CAAC;AACvC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,8BAA8B,CAAC"}
@@ -25,7 +25,7 @@ __exportStar(require("./authtokenrequesterror.js"), exports);
25
25
  __exportStar(require("./bankaccountvalidationerror.js"), exports);
26
26
  __exportStar(require("./brandvalidationerror.js"), exports);
27
27
  __exportStar(require("./cardacquiringrefund.js"), exports);
28
- __exportStar(require("./createaccount.js"), exports);
28
+ __exportStar(require("./createaccounterror.js"), exports);
29
29
  __exportStar(require("./createpaymentlinkerror.js"), exports);
30
30
  __exportStar(require("./createsweepconfigerror.js"), exports);
31
31
  __exportStar(require("./createticketerror.js"), exports);
@@ -38,6 +38,7 @@ __exportStar(require("./linkapplepayerror.js"), exports);
38
38
  __exportStar(require("./linkcarderror.js"), exports);
39
39
  __exportStar(require("./microdepositvalidationerror.js"), exports);
40
40
  __exportStar(require("./onboardinginviteerror.js"), exports);
41
+ __exportStar(require("./patchaccounterror.js"), exports);
41
42
  __exportStar(require("./patchsweepconfigerror.js"), exports);
42
43
  __exportStar(require("./refundvalidationerror.js"), exports);
43
44
  __exportStar(require("./representativevalidationerror.js"), exports);
@@ -51,7 +52,6 @@ __exportStar(require("./terminalapplicationerror.js"), exports);
51
52
  __exportStar(require("./transfer.js"), exports);
52
53
  __exportStar(require("./transferoptionsvalidationerror.js"), exports);
53
54
  __exportStar(require("./transfervalidationerror.js"), exports);
54
- __exportStar(require("./updateaccount.js"), exports);
55
55
  __exportStar(require("./updatecarderror.js"), exports);
56
56
  __exportStar(require("./updateissuedcarderror.js"), exports);
57
57
  __exportStar(require("./updatepaymentlinkerror.js"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/models/errors/index.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;AAEH,uEAAqD;AACrD,4DAA0C;AAC1C,gDAA8B;AAC9B,4DAA0C;AAC1C,6DAA2C;AAC3C,kEAAgD;AAChD,4DAA0C;AAC1C,2DAAyC;AACzC,qDAAmC;AACnC,8DAA4C;AAC5C,8DAA4C;AAC5C,yDAAuC;AACvC,6DAA2C;AAC3C,iEAA+C;AAC/C,2DAAyC;AACzC,oDAAkC;AAClC,wDAAsC;AACtC,yDAAuC;AACvC,qDAAmC;AACnC,mEAAiD;AACjD,6DAA2C;AAC3C,6DAA2C;AAC3C,6DAA2C;AAC3C,qEAAmD;AACnD,wDAAsC;AACtC,+DAA6C;AAC7C,+DAA6C;AAC7C,+DAA6C;AAC7C,+DAA6C;AAC7C,0DAAwC;AACxC,gEAA8C;AAC9C,gDAA8B;AAC9B,sEAAoD;AACpD,+DAA6C;AAC7C,qDAAmC;AACnC,uDAAqC;AACrC,6DAA2C;AAC3C,8DAA4C;AAC5C,yDAAuC;AACvC,+DAA6C;AAC7C,+DAA6C"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/models/errors/index.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;AAEH,uEAAqD;AACrD,4DAA0C;AAC1C,gDAA8B;AAC9B,4DAA0C;AAC1C,6DAA2C;AAC3C,kEAAgD;AAChD,4DAA0C;AAC1C,2DAAyC;AACzC,0DAAwC;AACxC,8DAA4C;AAC5C,8DAA4C;AAC5C,yDAAuC;AACvC,6DAA2C;AAC3C,iEAA+C;AAC/C,2DAAyC;AACzC,oDAAkC;AAClC,wDAAsC;AACtC,yDAAuC;AACvC,qDAAmC;AACnC,mEAAiD;AACjD,6DAA2C;AAC3C,yDAAuC;AACvC,6DAA2C;AAC3C,6DAA2C;AAC3C,qEAAmD;AACnD,wDAAsC;AACtC,+DAA6C;AAC7C,+DAA6C;AAC7C,+DAA6C;AAC7C,+DAA6C;AAC7C,0DAAwC;AACxC,gEAA8C;AAC9C,gDAA8B;AAC9B,sEAAoD;AACpD,+DAA6C;AAC7C,uDAAqC;AACrC,6DAA2C;AAC3C,8DAA4C;AAC5C,yDAAuC;AACvC,+DAA6C;AAC7C,+DAA6C"}
@@ -0,0 +1,52 @@
1
+ import * as z from "zod";
2
+ import * as components from "../components/index.js";
3
+ import { MoovError } from "./mooverror.js";
4
+ export type PatchAccountErrorData = {
5
+ profile?: components.CreateProfileError | undefined;
6
+ metadata?: string | undefined;
7
+ termsOfService?: components.TermsOfServiceError | undefined;
8
+ foreignID?: string | undefined;
9
+ customerSupport?: components.CustomerSupportError | undefined;
10
+ settings?: components.CreateAccountSettings | undefined;
11
+ };
12
+ export declare class PatchAccountError extends MoovError {
13
+ profile?: components.CreateProfileError | undefined;
14
+ metadata?: string | undefined;
15
+ termsOfService?: components.TermsOfServiceError | undefined;
16
+ foreignID?: string | undefined;
17
+ customerSupport?: components.CustomerSupportError | undefined;
18
+ settings?: components.CreateAccountSettings | undefined;
19
+ /** The original data that was passed to this error instance. */
20
+ data$: PatchAccountErrorData;
21
+ constructor(err: PatchAccountErrorData, httpMeta: {
22
+ response: Response;
23
+ request: Request;
24
+ body: string;
25
+ });
26
+ }
27
+ /** @internal */
28
+ export declare const PatchAccountError$inboundSchema: z.ZodType<PatchAccountError, z.ZodTypeDef, unknown>;
29
+ /** @internal */
30
+ export type PatchAccountError$Outbound = {
31
+ profile?: components.CreateProfileError$Outbound | undefined;
32
+ metadata?: string | undefined;
33
+ termsOfService?: components.TermsOfServiceError$Outbound | undefined;
34
+ foreignID?: string | undefined;
35
+ customerSupport?: components.CustomerSupportError$Outbound | undefined;
36
+ settings?: components.CreateAccountSettings$Outbound | undefined;
37
+ };
38
+ /** @internal */
39
+ export declare const PatchAccountError$outboundSchema: z.ZodType<PatchAccountError$Outbound, z.ZodTypeDef, PatchAccountError>;
40
+ /**
41
+ * @internal
42
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
43
+ */
44
+ export declare namespace PatchAccountError$ {
45
+ /** @deprecated use `PatchAccountError$inboundSchema` instead. */
46
+ const inboundSchema: z.ZodType<PatchAccountError, z.ZodTypeDef, unknown>;
47
+ /** @deprecated use `PatchAccountError$outboundSchema` instead. */
48
+ const outboundSchema: z.ZodType<PatchAccountError$Outbound, z.ZodTypeDef, PatchAccountError>;
49
+ /** @deprecated use `PatchAccountError$Outbound` instead. */
50
+ type Outbound = PatchAccountError$Outbound;
51
+ }
52
+ //# sourceMappingURL=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AAA;KAAE;CAgBnE;AAED,gBAAgB;AAChB,eAAO,MAAM,+BAA+B,EAAE,CAAC,CAAC,OAAO,CACrD,iBAAiB,EACjB,CAAC,CAAC,UAAU,EACZ,OAAO,CAkBL,CAAC;AAEL,gBAAgB;AAChB,MAAM,MAAM,0BAA0B,GAAG;IACvC,OAAO,CAAC,EAAE,UAAU,CAAC,2BAA2B,GAAG,SAAS,CAAC;IAC7D,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC9B,cAAc,CAAC,EAAE,UAAU,CAAC,4BAA4B,GAAG,SAAS,CAAC;IACrE,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/B,eAAe,CAAC,EAAE,UAAU,CAAC,6BAA6B,GAAG,SAAS,CAAC;IACvE,QAAQ,CAAC,EAAE,UAAU,CAAC,8BAA8B,GAAG,SAAS,CAAC;CAClE,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,gCAAgC,EAAE,CAAC,CAAC,OAAO,CACtD,0BAA0B,EAC1B,CAAC,CAAC,UAAU,EACZ,iBAAiB,CAUd,CAAC;AAEN;;;GAGG;AACH,yBAAiB,kBAAkB,CAAC;IAClC,iEAAiE;IAC1D,MAAM,aAAa,qDAAkC,CAAC;IAC7D,kEAAkE;IAC3D,MAAM,cAAc,wEAAmC,CAAC;IAC/D,4DAA4D;IAC5D,KAAY,QAAQ,GAAG,0BAA0B,CAAC;CACnD"}
@@ -36,33 +36,63 @@ var __importStar = (this && this.__importStar) || (function () {
36
36
  };
37
37
  })();
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.PatchAccountError$ = exports.PatchAccountError$outboundSchema = exports.PatchAccountError$inboundSchema = void 0;
40
- exports.patchAccountErrorToJSON = patchAccountErrorToJSON;
41
- exports.patchAccountErrorFromJSON = patchAccountErrorFromJSON;
39
+ exports.PatchAccountError$ = exports.PatchAccountError$outboundSchema = exports.PatchAccountError$inboundSchema = exports.PatchAccountError = void 0;
42
40
  const z = __importStar(require("zod"));
43
- const schemas_js_1 = require("../../lib/schemas.js");
44
- const createaccountsettings_js_1 = require("./createaccountsettings.js");
45
- const createprofileerror_js_1 = require("./createprofileerror.js");
46
- const customersupporterror_js_1 = require("./customersupporterror.js");
47
- const termsofserviceerror_js_1 = require("./termsofserviceerror.js");
41
+ const components = __importStar(require("../components/index.js"));
42
+ const mooverror_js_1 = require("./mooverror.js");
43
+ class PatchAccountError extends mooverror_js_1.MoovError {
44
+ constructor(err, httpMeta) {
45
+ const message = "message" in err && typeof err.message === "string"
46
+ ? err.message
47
+ : `API error occurred: ${JSON.stringify(err)}`;
48
+ super(message, httpMeta);
49
+ this.data$ = err;
50
+ if (err.profile != null)
51
+ this.profile = err.profile;
52
+ if (err.metadata != null)
53
+ this.metadata = err.metadata;
54
+ if (err.termsOfService != null)
55
+ this.termsOfService = err.termsOfService;
56
+ if (err.foreignID != null)
57
+ this.foreignID = err.foreignID;
58
+ if (err.customerSupport != null)
59
+ this.customerSupport = err.customerSupport;
60
+ if (err.settings != null)
61
+ this.settings = err.settings;
62
+ this.name = "PatchAccountError";
63
+ }
64
+ }
65
+ exports.PatchAccountError = PatchAccountError;
48
66
  /** @internal */
49
67
  exports.PatchAccountError$inboundSchema = z.object({
50
- profile: createprofileerror_js_1.CreateProfileError$inboundSchema.optional(),
68
+ profile: components.CreateProfileError$inboundSchema.optional(),
51
69
  metadata: z.string().optional(),
52
- termsOfService: termsofserviceerror_js_1.TermsOfServiceError$inboundSchema.optional(),
70
+ termsOfService: components.TermsOfServiceError$inboundSchema.optional(),
53
71
  foreignID: z.string().optional(),
54
- customerSupport: customersupporterror_js_1.CustomerSupportError$inboundSchema.optional(),
55
- settings: createaccountsettings_js_1.CreateAccountSettings$inboundSchema.optional(),
72
+ customerSupport: components.CustomerSupportError$inboundSchema.optional(),
73
+ settings: components.CreateAccountSettings$inboundSchema.optional(),
74
+ request$: z.instanceof(Request),
75
+ response$: z.instanceof(Response),
76
+ body$: z.string(),
77
+ })
78
+ .transform((v) => {
79
+ return new PatchAccountError(v, {
80
+ request: v.request$,
81
+ response: v.response$,
82
+ body: v.body$,
83
+ });
56
84
  });
57
85
  /** @internal */
58
- exports.PatchAccountError$outboundSchema = z.object({
59
- profile: createprofileerror_js_1.CreateProfileError$outboundSchema.optional(),
86
+ exports.PatchAccountError$outboundSchema = z.instanceof(PatchAccountError)
87
+ .transform(v => v.data$)
88
+ .pipe(z.object({
89
+ profile: components.CreateProfileError$outboundSchema.optional(),
60
90
  metadata: z.string().optional(),
61
- termsOfService: termsofserviceerror_js_1.TermsOfServiceError$outboundSchema.optional(),
91
+ termsOfService: components.TermsOfServiceError$outboundSchema.optional(),
62
92
  foreignID: z.string().optional(),
63
- customerSupport: customersupporterror_js_1.CustomerSupportError$outboundSchema.optional(),
64
- settings: createaccountsettings_js_1.CreateAccountSettings$outboundSchema.optional(),
65
- });
93
+ customerSupport: components.CustomerSupportError$outboundSchema.optional(),
94
+ settings: components.CreateAccountSettings$outboundSchema.optional(),
95
+ }));
66
96
  /**
67
97
  * @internal
68
98
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
@@ -74,10 +104,4 @@ var PatchAccountError$;
74
104
  /** @deprecated use `PatchAccountError$outboundSchema` instead. */
75
105
  PatchAccountError$.outboundSchema = exports.PatchAccountError$outboundSchema;
76
106
  })(PatchAccountError$ || (exports.PatchAccountError$ = PatchAccountError$ = {}));
77
- function patchAccountErrorToJSON(patchAccountError) {
78
- return JSON.stringify(exports.PatchAccountError$outboundSchema.parse(patchAccountError));
79
- }
80
- function patchAccountErrorFromJSON(jsonString) {
81
- return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.PatchAccountError$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PatchAccountError' from JSON`);
82
- }
83
107
  //# sourceMappingURL=patchaccounterror.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"patchaccounterror.js","sourceRoot":"","sources":["../../src/models/errors/patchaccounterror.ts"],"names":[],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AAC,oCAAoC,CAAC,QAAQ,EAAE;CACrE,CAAC,CAAC,CAAC;AAEN;;;GAGG;AACH,IAAiB,kBAAkB,CAOlC;AAPD,WAAiB,kBAAkB;IACjC,iEAAiE;IACpD,gCAAa,GAAG,uCAA+B,CAAC;IAC7D,kEAAkE;IACrD,iCAAc,GAAG,wCAAgC,CAAC;AAGjE,CAAC,EAPgB,kBAAkB,kCAAlB,kBAAkB,QAOlC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@moovio/sdk",
3
- "version": "0.14.15",
3
+ "version": "0.14.17",
4
4
  "author": "Moov",
5
5
  "bin": {
6
6
  "mcp": "bin/mcp-server.js"
package/sdk/support.d.ts CHANGED
@@ -6,6 +6,9 @@ export declare class Support extends ClientSDK {
6
6
  *
7
7
  * To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
8
8
  * you'll need to specify the `/accounts/{accountID}/tickets.write` scope.
9
+ *
10
+ * If you're creating the ticket on behalf of another account, then you'll need to
11
+ * specify the `/accounts/{partnerAccountID}/tickets.write` and `/accounts/{accountID}/profile.read` scopes.
9
12
  */
10
13
  createTicket(request: operations.CreateTicketRequest, options?: RequestOptions): Promise<operations.CreateTicketResponse>;
11
14
  /**
@@ -13,6 +16,9 @@ export declare class Support extends ClientSDK {
13
16
  *
14
17
  * To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
15
18
  * you'll need to specify the `/accounts/{accountID}/tickets.read` scope.
19
+ *
20
+ * If you're listing another account's tickets, then you'll need to
21
+ * specify the `/accounts/{partnerAccountID}/tickets.read` and `/accounts/{accountID}/profile.read` scopes.
16
22
  */
17
23
  listTickets(request: operations.ListTicketsRequest, options?: RequestOptions): Promise<operations.ListTicketsResponse>;
18
24
  /**
@@ -20,6 +26,9 @@ export declare class Support extends ClientSDK {
20
26
  *
21
27
  * To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
22
28
  * you'll need to specify the `/accounts/{accountID}/tickets.read` scope.
29
+ *
30
+ * If you're retrieving another account's ticket, then you'll need to
31
+ * specify the `/accounts/{partnerAccountID}/tickets.read` and `/accounts/{accountID}/profile.read` scopes.
23
32
  */
24
33
  getTicket(request: operations.GetTicketRequest, options?: RequestOptions): Promise<operations.GetTicketResponse>;
25
34
  /**
@@ -27,6 +36,9 @@ export declare class Support extends ClientSDK {
27
36
  *
28
37
  * To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
29
38
  * you'll need to specify the `/accounts/{accountID}/tickets.write` scope.
39
+ *
40
+ * If you're updating the ticket on behalf of another account, then you'll need to
41
+ * specify the `/accounts/{partnerAccountID}/tickets.write` and `/accounts/{accountID}/profile.read` scopes.
30
42
  */
31
43
  updateTicket(request: operations.UpdateTicketRequest, options?: RequestOptions): Promise<operations.UpdateTicketResponse>;
32
44
  /**
@@ -34,6 +46,9 @@ export declare class Support extends ClientSDK {
34
46
  *
35
47
  * To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
36
48
  * you'll need to specify the `/accounts/{accountID}/tickets.read` scope.
49
+ *
50
+ * If you're listing another account's messages, then you'll need to
51
+ * specify the `/accounts/{partnerAccountID}/tickets.read` and `/accounts/{accountID}/profile.read` scopes.
37
52
  */
38
53
  listTicketMessages(request: operations.ListTicketMessagesRequest, options?: RequestOptions): Promise<operations.ListTicketMessagesResponse>;
39
54
  }
@@ -1 +1 @@
1
- {"version":3,"file":"support.d.ts","sourceRoot":"","sources":["../src/sdk/support.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAG5D,qBAAa,OAAQ,SAAQ,SAAS;IACpC;;;;;OAKG;IACG,YAAY,CAChB,OAAO,EAAE,UAAU,CAAC,mBAAmB,EACvC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,oBAAoB,CAAC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AQxC;;;;;;;;OAQG;IACG,YAAY,CAChB,OAAO,EAAE,UAAU,CAAC,mBAAmB,EACvC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,oBAAoB,CAAC;IAQ3C;;;;;;;;OAQG;IACG,kBAAkB,CACtB,OAAO,EAAE,UAAU,CAAC,yBAAyB,EAC7C,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,0BAA0B,CAAC;CAOlD"}
package/sdk/support.js CHANGED
@@ -17,6 +17,9 @@ class Support extends sdks_js_1.ClientSDK {
17
17
  *
18
18
  * To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
19
19
  * you'll need to specify the `/accounts/{accountID}/tickets.write` scope.
20
+ *
21
+ * If you're creating the ticket on behalf of another account, then you'll need to
22
+ * specify the `/accounts/{partnerAccountID}/tickets.write` and `/accounts/{accountID}/profile.read` scopes.
20
23
  */
21
24
  async createTicket(request, options) {
22
25
  return (0, fp_js_1.unwrapAsync)((0, supportCreateTicket_js_1.supportCreateTicket)(this, request, options));
@@ -26,6 +29,9 @@ class Support extends sdks_js_1.ClientSDK {
26
29
  *
27
30
  * To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
28
31
  * you'll need to specify the `/accounts/{accountID}/tickets.read` scope.
32
+ *
33
+ * If you're listing another account's tickets, then you'll need to
34
+ * specify the `/accounts/{partnerAccountID}/tickets.read` and `/accounts/{accountID}/profile.read` scopes.
29
35
  */
30
36
  async listTickets(request, options) {
31
37
  return (0, fp_js_1.unwrapAsync)((0, supportListTickets_js_1.supportListTickets)(this, request, options));
@@ -35,6 +41,9 @@ class Support extends sdks_js_1.ClientSDK {
35
41
  *
36
42
  * To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
37
43
  * you'll need to specify the `/accounts/{accountID}/tickets.read` scope.
44
+ *
45
+ * If you're retrieving another account's ticket, then you'll need to
46
+ * specify the `/accounts/{partnerAccountID}/tickets.read` and `/accounts/{accountID}/profile.read` scopes.
38
47
  */
39
48
  async getTicket(request, options) {
40
49
  return (0, fp_js_1.unwrapAsync)((0, supportGetTicket_js_1.supportGetTicket)(this, request, options));
@@ -44,6 +53,9 @@ class Support extends sdks_js_1.ClientSDK {
44
53
  *
45
54
  * To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
46
55
  * you'll need to specify the `/accounts/{accountID}/tickets.write` scope.
56
+ *
57
+ * If you're updating the ticket on behalf of another account, then you'll need to
58
+ * specify the `/accounts/{partnerAccountID}/tickets.write` and `/accounts/{accountID}/profile.read` scopes.
47
59
  */
48
60
  async updateTicket(request, options) {
49
61
  return (0, fp_js_1.unwrapAsync)((0, supportUpdateTicket_js_1.supportUpdateTicket)(this, request, options));
@@ -53,6 +65,9 @@ class Support extends sdks_js_1.ClientSDK {
53
65
  *
54
66
  * To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
55
67
  * you'll need to specify the `/accounts/{accountID}/tickets.read` scope.
68
+ *
69
+ * If you're listing another account's messages, then you'll need to
70
+ * specify the `/accounts/{partnerAccountID}/tickets.read` and `/accounts/{accountID}/profile.read` scopes.
56
71
  */
57
72
  async listTicketMessages(request, options) {
58
73
  return (0, fp_js_1.unwrapAsync)((0, supportListTicketMessages_js_1.supportListTicketMessages)(this, request, options));
@@ -1 +1 @@
1
- {"version":3,"file":"support.js","sourceRoot":"","sources":["../src/sdk/support.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,4EAAsE;AACtE,sEAAgE;AAChE,wFAAkF;AAClF,0EAAoE;AACpE,4EAAsE;AACtE,4CAA2D;AAE3D,0CAA6C;AAE7C,MAAa,OAAQ,SAAQ,mBAAS;IACpC;;;;;OAKG;IACH,KAAK,CAAC,YAAY,CAChB,OAAuC,EACvC,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,4CAAmB,EACpC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,WAAW,CACf,OAAsC,EACtC,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,0CAAkB,EACnC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,SAAS,CACb,OAAoC,EACpC,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,sCAAgB,EACjC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,YAAY,CAChB,OAAuC,EACvC,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,4CAAmB,EACpC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,kBAAkB,CACtB,OAA6C,EAC7C,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,wDAAyB,EAC1C,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;CACF;AArFD,0BAqFC"}
1
+ {"version":3,"file":"support.js","sourceRoot":"","sources":["../src/sdk/support.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,4EAAsE;AACtE,sEAAgE;AAChE,wFAAkF;AAClF,0EAAoE;AACpE,4EAAsE;AACtE,4CAA2D;AAE3D,0CAA6C;AAE7C,MAAa,OAAQ,SAAQ,mBAAS;IACpC;;;;;;;;OAQG;IACH,KAAK,CAAC,YAAY,CAChB,OAAuC,EACvC,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,4CAAmB,EACpC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;OAQG;IACH,KAAK,CAAC,WAAW,CACf,OAAsC,EACtC,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,0CAAkB,EACnC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;OAQG;IACH,KAAK,CAAC,SAAS,CACb,OAAoC,EACpC,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,sCAAgB,EACjC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;OAQG;IACH,KAAK,CAAC,YAAY,CAChB,OAAuC,EACvC,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,4CAAmB,EACpC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;OAQG;IACH,KAAK,CAAC,kBAAkB,CACtB,OAA6C,EAC7C,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,wDAAyB,EAC1C,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;CACF;AApGD,0BAoGC"}