@naturalpay/sdk 1.6.36 → 1.6.38

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 (178) hide show
  1. package/dist/cjs/BaseClient.js +2 -2
  2. package/dist/cjs/api/resources/agents/types/CreateCustomerAgentsRequestPermissionsItem.d.ts +0 -1
  3. package/dist/cjs/api/resources/agents/types/CreateCustomerAgentsRequestPermissionsItem.js +0 -1
  4. package/dist/cjs/api/resources/cardSessions/client/Client.d.ts +29 -2
  5. package/dist/cjs/api/resources/cardSessions/client/Client.js +134 -6
  6. package/dist/cjs/api/resources/cardSessions/client/requests/ClaimCardSessionsRequest.d.ts +2 -0
  7. package/dist/cjs/api/resources/cardSessions/client/requests/CreateCardSessionsRequest.d.ts +6 -1
  8. package/dist/cjs/api/resources/cardSessions/client/requests/ListCardSessionsRequest.d.ts +17 -0
  9. package/dist/cjs/api/resources/cardSessions/client/requests/ListCardSessionsRequest.js +3 -0
  10. package/dist/cjs/api/resources/cardSessions/client/requests/index.d.ts +1 -0
  11. package/dist/cjs/api/resources/cardSessions/types/ClaimCardSessionsResponse.d.ts +1 -1
  12. package/dist/cjs/api/resources/cardSessions/types/ClaimCardSessionsResponseCard.d.ts +1 -1
  13. package/dist/cjs/api/resources/cardSessions/types/CreateCardSessionsResponse.d.ts +5 -1
  14. package/dist/cjs/api/resources/cardSessions/types/CreateCardSessionsResponseCardSource.d.ts +1 -1
  15. package/dist/cjs/api/resources/cardSessions/types/CreateCardSessionsResponseCardSource.js +1 -1
  16. package/dist/cjs/api/resources/cardSessions/types/CreateCardSessionsResponseNote.d.ts +6 -0
  17. package/dist/cjs/api/resources/cardSessions/types/CreateCardSessionsResponseNote.js +3 -0
  18. package/dist/cjs/api/resources/cardSessions/types/GetCardSessionsResponse.d.ts +5 -1
  19. package/dist/cjs/api/resources/cardSessions/types/GetCardSessionsResponseCardSource.d.ts +1 -1
  20. package/dist/cjs/api/resources/cardSessions/types/GetCardSessionsResponseCardSource.js +1 -1
  21. package/dist/cjs/api/resources/cardSessions/types/GetCardSessionsResponseNote.d.ts +6 -0
  22. package/dist/cjs/api/resources/cardSessions/types/GetCardSessionsResponseNote.js +3 -0
  23. package/dist/cjs/api/resources/cardSessions/types/ListCardSessionsRequestStatus.d.ts +9 -0
  24. package/dist/cjs/api/resources/cardSessions/types/ListCardSessionsRequestStatus.js +12 -0
  25. package/dist/cjs/api/resources/cardSessions/types/ListCardSessionsResponse.d.ts +5 -0
  26. package/dist/cjs/api/resources/cardSessions/types/ListCardSessionsResponse.js +3 -0
  27. package/dist/cjs/api/resources/cardSessions/types/ListCardSessionsResponseDataItem.d.ts +20 -0
  28. package/dist/cjs/api/resources/cardSessions/types/ListCardSessionsResponseDataItem.js +3 -0
  29. package/dist/cjs/api/resources/cardSessions/types/ListCardSessionsResponseDataItemCardSource.d.ts +6 -0
  30. package/dist/cjs/api/resources/cardSessions/types/ListCardSessionsResponseDataItemCardSource.js +9 -0
  31. package/dist/cjs/api/resources/cardSessions/types/ListCardSessionsResponseDataItemNote.d.ts +6 -0
  32. package/dist/cjs/api/resources/cardSessions/types/ListCardSessionsResponseDataItemNote.js +3 -0
  33. package/dist/cjs/api/resources/cardSessions/types/ListCardSessionsResponseDataItemStatus.d.ts +9 -0
  34. package/dist/cjs/api/resources/cardSessions/types/ListCardSessionsResponseDataItemStatus.js +12 -0
  35. package/dist/cjs/api/resources/cardSessions/types/ListCardSessionsResponseMeta.d.ts +4 -0
  36. package/dist/cjs/api/resources/cardSessions/types/ListCardSessionsResponseMeta.js +3 -0
  37. package/dist/cjs/api/resources/cardSessions/types/ListCardSessionsResponseMetaPagination.d.ts +6 -0
  38. package/dist/cjs/api/resources/cardSessions/types/ListCardSessionsResponseMetaPagination.js +3 -0
  39. package/dist/cjs/api/resources/cardSessions/types/index.d.ts +10 -0
  40. package/dist/cjs/api/resources/cardSessions/types/index.js +10 -0
  41. package/dist/cjs/api/resources/customers/types/CreateInvitationsCustomersRequestAgentsItemPermissionsZeroItem.d.ts +0 -1
  42. package/dist/cjs/api/resources/customers/types/CreateInvitationsCustomersRequestAgentsItemPermissionsZeroItem.js +0 -1
  43. package/dist/cjs/api/resources/invitationLinks/types/CreateInvitationLinksRequestProposedAgentsItemPermissionsItem.d.ts +0 -1
  44. package/dist/cjs/api/resources/invitationLinks/types/CreateInvitationLinksRequestProposedAgentsItemPermissionsItem.js +0 -1
  45. package/dist/cjs/api/resources/simulations/client/Client.d.ts +1 -1
  46. package/dist/cjs/api/resources/simulations/client/Client.js +1 -1
  47. package/dist/cjs/api/resources/simulations/client/requests/InviteCustomerSimulationsRequest.d.ts +1 -1
  48. package/dist/cjs/api/resources/simulations/types/InviteCustomerSimulationsRequestPermissionsZeroItem.d.ts +0 -1
  49. package/dist/cjs/api/resources/simulations/types/InviteCustomerSimulationsRequestPermissionsZeroItem.js +0 -1
  50. package/dist/cjs/api/resources/transfers/client/requests/NewDepositParams.d.ts +2 -2
  51. package/dist/cjs/serialization/resources/agents/types/CreateCustomerAgentsRequestPermissionsItem.d.ts +1 -1
  52. package/dist/cjs/serialization/resources/agents/types/CreateCustomerAgentsRequestPermissionsItem.js +0 -1
  53. package/dist/cjs/serialization/resources/cardSessions/client/requests/CreateCardSessionsRequest.d.ts +2 -1
  54. package/dist/cjs/serialization/resources/cardSessions/client/requests/CreateCardSessionsRequest.js +1 -0
  55. package/dist/cjs/serialization/resources/cardSessions/types/CreateCardSessionsResponse.d.ts +3 -0
  56. package/dist/cjs/serialization/resources/cardSessions/types/CreateCardSessionsResponse.js +3 -0
  57. package/dist/cjs/serialization/resources/cardSessions/types/CreateCardSessionsResponseNote.d.ts +10 -0
  58. package/dist/cjs/serialization/resources/cardSessions/types/CreateCardSessionsResponseNote.js +42 -0
  59. package/dist/cjs/serialization/resources/cardSessions/types/GetCardSessionsResponse.d.ts +3 -0
  60. package/dist/cjs/serialization/resources/cardSessions/types/GetCardSessionsResponse.js +3 -0
  61. package/dist/cjs/serialization/resources/cardSessions/types/GetCardSessionsResponseNote.d.ts +10 -0
  62. package/dist/cjs/serialization/resources/cardSessions/types/GetCardSessionsResponseNote.js +42 -0
  63. package/dist/cjs/serialization/resources/cardSessions/types/ListCardSessionsRequestStatus.d.ts +7 -0
  64. package/dist/cjs/serialization/resources/cardSessions/types/ListCardSessionsRequestStatus.js +39 -0
  65. package/dist/cjs/serialization/resources/cardSessions/types/ListCardSessionsResponse.d.ts +12 -0
  66. package/dist/cjs/serialization/resources/cardSessions/types/ListCardSessionsResponse.js +44 -0
  67. package/dist/cjs/serialization/resources/cardSessions/types/ListCardSessionsResponseDataItem.d.ts +22 -0
  68. package/dist/cjs/serialization/resources/cardSessions/types/ListCardSessionsResponseDataItem.js +54 -0
  69. package/dist/cjs/serialization/resources/cardSessions/types/ListCardSessionsResponseDataItemCardSource.d.ts +7 -0
  70. package/dist/cjs/serialization/resources/cardSessions/types/ListCardSessionsResponseDataItemCardSource.js +39 -0
  71. package/dist/cjs/serialization/resources/cardSessions/types/ListCardSessionsResponseDataItemNote.d.ts +10 -0
  72. package/dist/cjs/serialization/resources/cardSessions/types/ListCardSessionsResponseDataItemNote.js +42 -0
  73. package/dist/cjs/serialization/resources/cardSessions/types/ListCardSessionsResponseDataItemStatus.d.ts +7 -0
  74. package/dist/cjs/serialization/resources/cardSessions/types/ListCardSessionsResponseDataItemStatus.js +39 -0
  75. package/dist/cjs/serialization/resources/cardSessions/types/ListCardSessionsResponseMeta.d.ts +10 -0
  76. package/dist/cjs/serialization/resources/cardSessions/types/ListCardSessionsResponseMeta.js +42 -0
  77. package/dist/cjs/serialization/resources/cardSessions/types/ListCardSessionsResponseMetaPagination.d.ts +10 -0
  78. package/dist/cjs/serialization/resources/cardSessions/types/ListCardSessionsResponseMetaPagination.js +42 -0
  79. package/dist/cjs/serialization/resources/cardSessions/types/index.d.ts +10 -0
  80. package/dist/cjs/serialization/resources/cardSessions/types/index.js +10 -0
  81. package/dist/cjs/serialization/resources/customers/types/CreateInvitationsCustomersRequestAgentsItemPermissionsZeroItem.d.ts +1 -1
  82. package/dist/cjs/serialization/resources/customers/types/CreateInvitationsCustomersRequestAgentsItemPermissionsZeroItem.js +0 -1
  83. package/dist/cjs/serialization/resources/invitationLinks/types/CreateInvitationLinksRequestProposedAgentsItemPermissionsItem.d.ts +1 -1
  84. package/dist/cjs/serialization/resources/invitationLinks/types/CreateInvitationLinksRequestProposedAgentsItemPermissionsItem.js +0 -1
  85. package/dist/cjs/serialization/resources/simulations/types/InviteCustomerSimulationsRequestPermissionsZeroItem.d.ts +1 -1
  86. package/dist/cjs/serialization/resources/simulations/types/InviteCustomerSimulationsRequestPermissionsZeroItem.js +0 -1
  87. package/dist/cjs/version.d.ts +1 -1
  88. package/dist/cjs/version.js +1 -1
  89. package/dist/esm/BaseClient.mjs +2 -2
  90. package/dist/esm/api/resources/agents/types/CreateCustomerAgentsRequestPermissionsItem.d.mts +0 -1
  91. package/dist/esm/api/resources/agents/types/CreateCustomerAgentsRequestPermissionsItem.mjs +0 -1
  92. package/dist/esm/api/resources/cardSessions/client/Client.d.mts +29 -2
  93. package/dist/esm/api/resources/cardSessions/client/Client.mjs +134 -6
  94. package/dist/esm/api/resources/cardSessions/client/requests/ClaimCardSessionsRequest.d.mts +2 -0
  95. package/dist/esm/api/resources/cardSessions/client/requests/CreateCardSessionsRequest.d.mts +6 -1
  96. package/dist/esm/api/resources/cardSessions/client/requests/ListCardSessionsRequest.d.mts +17 -0
  97. package/dist/esm/api/resources/cardSessions/client/requests/ListCardSessionsRequest.mjs +2 -0
  98. package/dist/esm/api/resources/cardSessions/client/requests/index.d.mts +1 -0
  99. package/dist/esm/api/resources/cardSessions/types/ClaimCardSessionsResponse.d.mts +1 -1
  100. package/dist/esm/api/resources/cardSessions/types/ClaimCardSessionsResponseCard.d.mts +1 -1
  101. package/dist/esm/api/resources/cardSessions/types/CreateCardSessionsResponse.d.mts +5 -1
  102. package/dist/esm/api/resources/cardSessions/types/CreateCardSessionsResponseCardSource.d.mts +1 -1
  103. package/dist/esm/api/resources/cardSessions/types/CreateCardSessionsResponseCardSource.mjs +1 -1
  104. package/dist/esm/api/resources/cardSessions/types/CreateCardSessionsResponseNote.d.mts +6 -0
  105. package/dist/esm/api/resources/cardSessions/types/CreateCardSessionsResponseNote.mjs +2 -0
  106. package/dist/esm/api/resources/cardSessions/types/GetCardSessionsResponse.d.mts +5 -1
  107. package/dist/esm/api/resources/cardSessions/types/GetCardSessionsResponseCardSource.d.mts +1 -1
  108. package/dist/esm/api/resources/cardSessions/types/GetCardSessionsResponseCardSource.mjs +1 -1
  109. package/dist/esm/api/resources/cardSessions/types/GetCardSessionsResponseNote.d.mts +6 -0
  110. package/dist/esm/api/resources/cardSessions/types/GetCardSessionsResponseNote.mjs +2 -0
  111. package/dist/esm/api/resources/cardSessions/types/ListCardSessionsRequestStatus.d.mts +9 -0
  112. package/dist/esm/api/resources/cardSessions/types/ListCardSessionsRequestStatus.mjs +9 -0
  113. package/dist/esm/api/resources/cardSessions/types/ListCardSessionsResponse.d.mts +5 -0
  114. package/dist/esm/api/resources/cardSessions/types/ListCardSessionsResponse.mjs +2 -0
  115. package/dist/esm/api/resources/cardSessions/types/ListCardSessionsResponseDataItem.d.mts +20 -0
  116. package/dist/esm/api/resources/cardSessions/types/ListCardSessionsResponseDataItem.mjs +2 -0
  117. package/dist/esm/api/resources/cardSessions/types/ListCardSessionsResponseDataItemCardSource.d.mts +6 -0
  118. package/dist/esm/api/resources/cardSessions/types/ListCardSessionsResponseDataItemCardSource.mjs +6 -0
  119. package/dist/esm/api/resources/cardSessions/types/ListCardSessionsResponseDataItemNote.d.mts +6 -0
  120. package/dist/esm/api/resources/cardSessions/types/ListCardSessionsResponseDataItemNote.mjs +2 -0
  121. package/dist/esm/api/resources/cardSessions/types/ListCardSessionsResponseDataItemStatus.d.mts +9 -0
  122. package/dist/esm/api/resources/cardSessions/types/ListCardSessionsResponseDataItemStatus.mjs +9 -0
  123. package/dist/esm/api/resources/cardSessions/types/ListCardSessionsResponseMeta.d.mts +4 -0
  124. package/dist/esm/api/resources/cardSessions/types/ListCardSessionsResponseMeta.mjs +2 -0
  125. package/dist/esm/api/resources/cardSessions/types/ListCardSessionsResponseMetaPagination.d.mts +6 -0
  126. package/dist/esm/api/resources/cardSessions/types/ListCardSessionsResponseMetaPagination.mjs +2 -0
  127. package/dist/esm/api/resources/cardSessions/types/index.d.mts +10 -0
  128. package/dist/esm/api/resources/cardSessions/types/index.mjs +10 -0
  129. package/dist/esm/api/resources/customers/types/CreateInvitationsCustomersRequestAgentsItemPermissionsZeroItem.d.mts +0 -1
  130. package/dist/esm/api/resources/customers/types/CreateInvitationsCustomersRequestAgentsItemPermissionsZeroItem.mjs +0 -1
  131. package/dist/esm/api/resources/invitationLinks/types/CreateInvitationLinksRequestProposedAgentsItemPermissionsItem.d.mts +0 -1
  132. package/dist/esm/api/resources/invitationLinks/types/CreateInvitationLinksRequestProposedAgentsItemPermissionsItem.mjs +0 -1
  133. package/dist/esm/api/resources/simulations/client/Client.d.mts +1 -1
  134. package/dist/esm/api/resources/simulations/client/Client.mjs +1 -1
  135. package/dist/esm/api/resources/simulations/client/requests/InviteCustomerSimulationsRequest.d.mts +1 -1
  136. package/dist/esm/api/resources/simulations/types/InviteCustomerSimulationsRequestPermissionsZeroItem.d.mts +0 -1
  137. package/dist/esm/api/resources/simulations/types/InviteCustomerSimulationsRequestPermissionsZeroItem.mjs +0 -1
  138. package/dist/esm/api/resources/transfers/client/requests/NewDepositParams.d.mts +2 -2
  139. package/dist/esm/serialization/resources/agents/types/CreateCustomerAgentsRequestPermissionsItem.d.mts +1 -1
  140. package/dist/esm/serialization/resources/agents/types/CreateCustomerAgentsRequestPermissionsItem.mjs +0 -1
  141. package/dist/esm/serialization/resources/cardSessions/client/requests/CreateCardSessionsRequest.d.mts +2 -1
  142. package/dist/esm/serialization/resources/cardSessions/client/requests/CreateCardSessionsRequest.mjs +1 -0
  143. package/dist/esm/serialization/resources/cardSessions/types/CreateCardSessionsResponse.d.mts +3 -0
  144. package/dist/esm/serialization/resources/cardSessions/types/CreateCardSessionsResponse.mjs +3 -0
  145. package/dist/esm/serialization/resources/cardSessions/types/CreateCardSessionsResponseNote.d.mts +10 -0
  146. package/dist/esm/serialization/resources/cardSessions/types/CreateCardSessionsResponseNote.mjs +6 -0
  147. package/dist/esm/serialization/resources/cardSessions/types/GetCardSessionsResponse.d.mts +3 -0
  148. package/dist/esm/serialization/resources/cardSessions/types/GetCardSessionsResponse.mjs +3 -0
  149. package/dist/esm/serialization/resources/cardSessions/types/GetCardSessionsResponseNote.d.mts +10 -0
  150. package/dist/esm/serialization/resources/cardSessions/types/GetCardSessionsResponseNote.mjs +6 -0
  151. package/dist/esm/serialization/resources/cardSessions/types/ListCardSessionsRequestStatus.d.mts +7 -0
  152. package/dist/esm/serialization/resources/cardSessions/types/ListCardSessionsRequestStatus.mjs +3 -0
  153. package/dist/esm/serialization/resources/cardSessions/types/ListCardSessionsResponse.d.mts +12 -0
  154. package/dist/esm/serialization/resources/cardSessions/types/ListCardSessionsResponse.mjs +8 -0
  155. package/dist/esm/serialization/resources/cardSessions/types/ListCardSessionsResponseDataItem.d.mts +22 -0
  156. package/dist/esm/serialization/resources/cardSessions/types/ListCardSessionsResponseDataItem.mjs +18 -0
  157. package/dist/esm/serialization/resources/cardSessions/types/ListCardSessionsResponseDataItemCardSource.d.mts +7 -0
  158. package/dist/esm/serialization/resources/cardSessions/types/ListCardSessionsResponseDataItemCardSource.mjs +3 -0
  159. package/dist/esm/serialization/resources/cardSessions/types/ListCardSessionsResponseDataItemNote.d.mts +10 -0
  160. package/dist/esm/serialization/resources/cardSessions/types/ListCardSessionsResponseDataItemNote.mjs +6 -0
  161. package/dist/esm/serialization/resources/cardSessions/types/ListCardSessionsResponseDataItemStatus.d.mts +7 -0
  162. package/dist/esm/serialization/resources/cardSessions/types/ListCardSessionsResponseDataItemStatus.mjs +3 -0
  163. package/dist/esm/serialization/resources/cardSessions/types/ListCardSessionsResponseMeta.d.mts +10 -0
  164. package/dist/esm/serialization/resources/cardSessions/types/ListCardSessionsResponseMeta.mjs +6 -0
  165. package/dist/esm/serialization/resources/cardSessions/types/ListCardSessionsResponseMetaPagination.d.mts +10 -0
  166. package/dist/esm/serialization/resources/cardSessions/types/ListCardSessionsResponseMetaPagination.mjs +6 -0
  167. package/dist/esm/serialization/resources/cardSessions/types/index.d.mts +10 -0
  168. package/dist/esm/serialization/resources/cardSessions/types/index.mjs +10 -0
  169. package/dist/esm/serialization/resources/customers/types/CreateInvitationsCustomersRequestAgentsItemPermissionsZeroItem.d.mts +1 -1
  170. package/dist/esm/serialization/resources/customers/types/CreateInvitationsCustomersRequestAgentsItemPermissionsZeroItem.mjs +0 -1
  171. package/dist/esm/serialization/resources/invitationLinks/types/CreateInvitationLinksRequestProposedAgentsItemPermissionsItem.d.mts +1 -1
  172. package/dist/esm/serialization/resources/invitationLinks/types/CreateInvitationLinksRequestProposedAgentsItemPermissionsItem.mjs +0 -1
  173. package/dist/esm/serialization/resources/simulations/types/InviteCustomerSimulationsRequestPermissionsZeroItem.d.mts +1 -1
  174. package/dist/esm/serialization/resources/simulations/types/InviteCustomerSimulationsRequestPermissionsZeroItem.mjs +0 -1
  175. package/dist/esm/version.d.mts +1 -1
  176. package/dist/esm/version.mjs +1 -1
  177. package/package.json +1 -1
  178. package/reference.md +67 -3
@@ -0,0 +1,17 @@
1
+ import type * as Natural from "../../../../index.mjs";
2
+ /**
3
+ * @example
4
+ * {}
5
+ */
6
+ export interface ListCardSessionsRequest {
7
+ /** Customer party to act for (pty_*). Omit to act as your own party. To act for another party, pass the ID of a party that has authorized you to act on its behalf. */
8
+ customerPartyId?: string;
9
+ /** Only sessions with this status. */
10
+ status?: Natural.ListCardSessionsRequestStatus;
11
+ /** Only sessions created with this reference. */
12
+ reference?: string;
13
+ /** Maximum results per page. */
14
+ limit?: number;
15
+ /** Cursor from the previous page. */
16
+ cursor?: string;
17
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -1,3 +1,4 @@
1
1
  export type { ClaimCardSessionsRequest } from "./ClaimCardSessionsRequest.mjs";
2
2
  export type { CreateCardSessionsRequest } from "./CreateCardSessionsRequest.mjs";
3
3
  export type { GetCardSessionsRequest } from "./GetCardSessionsRequest.mjs";
4
+ export type { ListCardSessionsRequest } from "./ListCardSessionsRequest.mjs";
@@ -3,7 +3,7 @@ export interface ClaimCardSessionsResponse {
3
3
  sessionId: string;
4
4
  cardId: string;
5
5
  card: Natural.ClaimCardSessionsResponseCard;
6
- /** The card's billing address on file, for filling the merchant's checkout (the ZIP drives the bank's AVS check). Null for Natural-issued cards, which store none. */
6
+ /** The card's billing address on file, for filling the merchant's checkout (the ZIP drives the bank's AVS check). Null for agent cards, which store none. */
7
7
  billingAddress: Natural.ClaimCardSessionsResponseBillingAddress | null;
8
8
  proxy: Natural.ClaimCardSessionsResponseProxy;
9
9
  allowedHosts: string[];
@@ -5,6 +5,6 @@ export interface ClaimCardSessionsResponseCard {
5
5
  cvc: string;
6
6
  expirationMonth: number;
7
7
  expirationYear: number;
8
- /** Cardholder name as printed on the card, for the merchant's checkout name field. Null for Natural-issued cards, which have none on file. */
8
+ /** Cardholder name as printed on the card, for the merchant's checkout name field. Null for agent cards, which have none on file. */
9
9
  holderName: string | null;
10
10
  }
@@ -2,17 +2,21 @@ import type * as Natural from "../../../index.mjs";
2
2
  export interface CreateCardSessionsResponse {
3
3
  sessionId: string;
4
4
  cardId: string;
5
- /** natural_issued: a Natural-issued card. external: a card the user added on the dashboard. */
5
+ /** natural_issued: an agent card Natural issued to you. external: a card the user added on the dashboard. */
6
6
  cardSource: Natural.CreateCardSessionsResponseCardSource;
7
7
  /** pending_approval: waiting for the user; keep polling. approved: claim it now. declined: the user said no. claimed: already collected. expired: open a new session. */
8
8
  status: Natural.CreateCardSessionsResponseStatus;
9
9
  allowedHosts: string[];
10
+ /** The reference you created the session with. Null when you didn't set one. */
11
+ reference: string | null;
10
12
  /** A pending session must be approved, and an approved one claimed, before this. */
11
13
  claimExpiresAt: string;
12
14
  claimedAt: string | null;
13
15
  /** When the claimed proxy login stops working. */
14
16
  credentialExpiresAt: string | null;
15
17
  createdAt: string;
18
+ /** Cards the user added only, once the purchase is approved: a suggestion to pass on to the user. Null when there's nothing to suggest, and always null in list results: get the session for it. */
19
+ note: Natural.CreateCardSessionsResponseNote | null;
16
20
  /** Cards the user added only: send the user here to approve the purchase. Returned only in this response; it can't be fetched again. */
17
21
  approvalUrl: string | null;
18
22
  }
@@ -1,4 +1,4 @@
1
- /** natural_issued: a Natural-issued card. external: a card the user added on the dashboard. */
1
+ /** natural_issued: an agent card Natural issued to you. external: a card the user added on the dashboard. */
2
2
  export declare const CreateCardSessionsResponseCardSource: {
3
3
  readonly NaturalIssued: "natural_issued";
4
4
  readonly External: "external";
@@ -1,5 +1,5 @@
1
1
  // This file was auto-generated by Fern from our API Definition.
2
- /** natural_issued: a Natural-issued card. external: a card the user added on the dashboard. */
2
+ /** natural_issued: an agent card Natural issued to you. external: a card the user added on the dashboard. */
3
3
  export const CreateCardSessionsResponseCardSource = {
4
4
  NaturalIssued: "natural_issued",
5
5
  External: "external",
@@ -0,0 +1,6 @@
1
+ export interface CreateCardSessionsResponseNote {
2
+ /** What to tell the user: what would let them skip the security code next time, such as verifying their identity or adding money to Natural. */
3
+ message: string;
4
+ /** A page to send the user to for that step. Null when there's nothing to do yet. */
5
+ url: string | null;
6
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -2,15 +2,19 @@ import type * as Natural from "../../../index.mjs";
2
2
  export interface GetCardSessionsResponse {
3
3
  sessionId: string;
4
4
  cardId: string;
5
- /** natural_issued: a Natural-issued card. external: a card the user added on the dashboard. */
5
+ /** natural_issued: an agent card Natural issued to you. external: a card the user added on the dashboard. */
6
6
  cardSource: Natural.GetCardSessionsResponseCardSource;
7
7
  /** pending_approval: waiting for the user; keep polling. approved: claim it now. declined: the user said no. claimed: already collected. expired: open a new session. */
8
8
  status: Natural.GetCardSessionsResponseStatus;
9
9
  allowedHosts: string[];
10
+ /** The reference you created the session with. Null when you didn't set one. */
11
+ reference: string | null;
10
12
  /** A pending session must be approved, and an approved one claimed, before this. */
11
13
  claimExpiresAt: string;
12
14
  claimedAt: string | null;
13
15
  /** When the claimed proxy login stops working. */
14
16
  credentialExpiresAt: string | null;
15
17
  createdAt: string;
18
+ /** Cards the user added only, once the purchase is approved: a suggestion to pass on to the user. Null when there's nothing to suggest, and always null in list results: get the session for it. */
19
+ note: Natural.GetCardSessionsResponseNote | null;
16
20
  }
@@ -1,4 +1,4 @@
1
- /** natural_issued: a Natural-issued card. external: a card the user added on the dashboard. */
1
+ /** natural_issued: an agent card Natural issued to you. external: a card the user added on the dashboard. */
2
2
  export declare const GetCardSessionsResponseCardSource: {
3
3
  readonly NaturalIssued: "natural_issued";
4
4
  readonly External: "external";
@@ -1,5 +1,5 @@
1
1
  // This file was auto-generated by Fern from our API Definition.
2
- /** natural_issued: a Natural-issued card. external: a card the user added on the dashboard. */
2
+ /** natural_issued: an agent card Natural issued to you. external: a card the user added on the dashboard. */
3
3
  export const GetCardSessionsResponseCardSource = {
4
4
  NaturalIssued: "natural_issued",
5
5
  External: "external",
@@ -0,0 +1,6 @@
1
+ export interface GetCardSessionsResponseNote {
2
+ /** What to tell the user: what would let them skip the security code next time, such as verifying their identity or adding money to Natural. */
3
+ message: string;
4
+ /** A page to send the user to for that step. Null when there's nothing to do yet. */
5
+ url: string | null;
6
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1,9 @@
1
+ /** Only sessions with this status. */
2
+ export declare const ListCardSessionsRequestStatus: {
3
+ readonly PendingApproval: "pending_approval";
4
+ readonly Approved: "approved";
5
+ readonly Declined: "declined";
6
+ readonly Claimed: "claimed";
7
+ readonly Expired: "expired";
8
+ };
9
+ export type ListCardSessionsRequestStatus = (typeof ListCardSessionsRequestStatus)[keyof typeof ListCardSessionsRequestStatus];
@@ -0,0 +1,9 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ /** Only sessions with this status. */
3
+ export const ListCardSessionsRequestStatus = {
4
+ PendingApproval: "pending_approval",
5
+ Approved: "approved",
6
+ Declined: "declined",
7
+ Claimed: "claimed",
8
+ Expired: "expired",
9
+ };
@@ -0,0 +1,5 @@
1
+ import type * as Natural from "../../../index.mjs";
2
+ export interface ListCardSessionsResponse {
3
+ data: Natural.ListCardSessionsResponseDataItem[];
4
+ meta: Natural.ListCardSessionsResponseMeta;
5
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1,20 @@
1
+ import type * as Natural from "../../../index.mjs";
2
+ export interface ListCardSessionsResponseDataItem {
3
+ sessionId: string;
4
+ cardId: string;
5
+ /** natural_issued: an agent card Natural issued to you. external: a card the user added on the dashboard. */
6
+ cardSource: Natural.ListCardSessionsResponseDataItemCardSource;
7
+ /** pending_approval: waiting for the user; keep polling. approved: claim it now. declined: the user said no. claimed: already collected. expired: open a new session. */
8
+ status: Natural.ListCardSessionsResponseDataItemStatus;
9
+ allowedHosts: string[];
10
+ /** The reference you created the session with. Null when you didn't set one. */
11
+ reference: string | null;
12
+ /** A pending session must be approved, and an approved one claimed, before this. */
13
+ claimExpiresAt: string;
14
+ claimedAt: string | null;
15
+ /** When the claimed proxy login stops working. */
16
+ credentialExpiresAt: string | null;
17
+ createdAt: string;
18
+ /** Cards the user added only, once the purchase is approved: a suggestion to pass on to the user. Null when there's nothing to suggest, and always null in list results: get the session for it. */
19
+ note: Natural.ListCardSessionsResponseDataItemNote | null;
20
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1,6 @@
1
+ /** natural_issued: an agent card Natural issued to you. external: a card the user added on the dashboard. */
2
+ export declare const ListCardSessionsResponseDataItemCardSource: {
3
+ readonly NaturalIssued: "natural_issued";
4
+ readonly External: "external";
5
+ };
6
+ export type ListCardSessionsResponseDataItemCardSource = (typeof ListCardSessionsResponseDataItemCardSource)[keyof typeof ListCardSessionsResponseDataItemCardSource];
@@ -0,0 +1,6 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ /** natural_issued: an agent card Natural issued to you. external: a card the user added on the dashboard. */
3
+ export const ListCardSessionsResponseDataItemCardSource = {
4
+ NaturalIssued: "natural_issued",
5
+ External: "external",
6
+ };
@@ -0,0 +1,6 @@
1
+ export interface ListCardSessionsResponseDataItemNote {
2
+ /** What to tell the user: what would let them skip the security code next time, such as verifying their identity or adding money to Natural. */
3
+ message: string;
4
+ /** A page to send the user to for that step. Null when there's nothing to do yet. */
5
+ url: string | null;
6
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1,9 @@
1
+ /** pending_approval: waiting for the user; keep polling. approved: claim it now. declined: the user said no. claimed: already collected. expired: open a new session. */
2
+ export declare const ListCardSessionsResponseDataItemStatus: {
3
+ readonly PendingApproval: "pending_approval";
4
+ readonly Approved: "approved";
5
+ readonly Declined: "declined";
6
+ readonly Claimed: "claimed";
7
+ readonly Expired: "expired";
8
+ };
9
+ export type ListCardSessionsResponseDataItemStatus = (typeof ListCardSessionsResponseDataItemStatus)[keyof typeof ListCardSessionsResponseDataItemStatus];
@@ -0,0 +1,9 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ /** pending_approval: waiting for the user; keep polling. approved: claim it now. declined: the user said no. claimed: already collected. expired: open a new session. */
3
+ export const ListCardSessionsResponseDataItemStatus = {
4
+ PendingApproval: "pending_approval",
5
+ Approved: "approved",
6
+ Declined: "declined",
7
+ Claimed: "claimed",
8
+ Expired: "expired",
9
+ };
@@ -0,0 +1,4 @@
1
+ import type * as Natural from "../../../index.mjs";
2
+ export interface ListCardSessionsResponseMeta {
3
+ pagination: Natural.ListCardSessionsResponseMetaPagination;
4
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1,6 @@
1
+ export interface ListCardSessionsResponseMetaPagination {
2
+ /** Whether more results are available. */
3
+ hasMore: boolean;
4
+ /** Cursor for the next page, or null when there are no more results. */
5
+ nextCursor: string | null;
6
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -6,7 +6,17 @@ export * from "./ClaimCardSessionsResponseProxyProtocol.mjs";
6
6
  export * from "./CreateCardSessionsRequestPurchase.mjs";
7
7
  export * from "./CreateCardSessionsResponse.mjs";
8
8
  export * from "./CreateCardSessionsResponseCardSource.mjs";
9
+ export * from "./CreateCardSessionsResponseNote.mjs";
9
10
  export * from "./CreateCardSessionsResponseStatus.mjs";
10
11
  export * from "./GetCardSessionsResponse.mjs";
11
12
  export * from "./GetCardSessionsResponseCardSource.mjs";
13
+ export * from "./GetCardSessionsResponseNote.mjs";
12
14
  export * from "./GetCardSessionsResponseStatus.mjs";
15
+ export * from "./ListCardSessionsRequestStatus.mjs";
16
+ export * from "./ListCardSessionsResponse.mjs";
17
+ export * from "./ListCardSessionsResponseDataItem.mjs";
18
+ export * from "./ListCardSessionsResponseDataItemCardSource.mjs";
19
+ export * from "./ListCardSessionsResponseDataItemNote.mjs";
20
+ export * from "./ListCardSessionsResponseDataItemStatus.mjs";
21
+ export * from "./ListCardSessionsResponseMeta.mjs";
22
+ export * from "./ListCardSessionsResponseMetaPagination.mjs";
@@ -6,7 +6,17 @@ export * from "./ClaimCardSessionsResponseProxyProtocol.mjs";
6
6
  export * from "./CreateCardSessionsRequestPurchase.mjs";
7
7
  export * from "./CreateCardSessionsResponse.mjs";
8
8
  export * from "./CreateCardSessionsResponseCardSource.mjs";
9
+ export * from "./CreateCardSessionsResponseNote.mjs";
9
10
  export * from "./CreateCardSessionsResponseStatus.mjs";
10
11
  export * from "./GetCardSessionsResponse.mjs";
11
12
  export * from "./GetCardSessionsResponseCardSource.mjs";
13
+ export * from "./GetCardSessionsResponseNote.mjs";
12
14
  export * from "./GetCardSessionsResponseStatus.mjs";
15
+ export * from "./ListCardSessionsRequestStatus.mjs";
16
+ export * from "./ListCardSessionsResponse.mjs";
17
+ export * from "./ListCardSessionsResponseDataItem.mjs";
18
+ export * from "./ListCardSessionsResponseDataItemCardSource.mjs";
19
+ export * from "./ListCardSessionsResponseDataItemNote.mjs";
20
+ export * from "./ListCardSessionsResponseDataItemStatus.mjs";
21
+ export * from "./ListCardSessionsResponseMeta.mjs";
22
+ export * from "./ListCardSessionsResponseMetaPagination.mjs";
@@ -13,7 +13,6 @@ export declare const CreateInvitationsCustomersRequestAgentsItemPermissionsZeroI
13
13
  readonly WalletsCreate: "wallets.create";
14
14
  readonly WalletsUpdate: "wallets.update";
15
15
  readonly WalletsFund: "wallets.fund";
16
- readonly WalletsDeposit: "wallets.deposit";
17
16
  readonly WalletsTransfer: "wallets.transfer";
18
17
  readonly WalletsWithdraw: "wallets.withdraw";
19
18
  readonly PartyRead: "party.read";
@@ -14,7 +14,6 @@ export const CreateInvitationsCustomersRequestAgentsItemPermissionsZeroItem = {
14
14
  WalletsCreate: "wallets.create",
15
15
  WalletsUpdate: "wallets.update",
16
16
  WalletsFund: "wallets.fund",
17
- WalletsDeposit: "wallets.deposit",
18
17
  WalletsTransfer: "wallets.transfer",
19
18
  WalletsWithdraw: "wallets.withdraw",
20
19
  PartyRead: "party.read",
@@ -13,7 +13,6 @@ export declare const CreateInvitationLinksRequestProposedAgentsItemPermissionsIt
13
13
  readonly WalletsCreate: "wallets.create";
14
14
  readonly WalletsUpdate: "wallets.update";
15
15
  readonly WalletsFund: "wallets.fund";
16
- readonly WalletsDeposit: "wallets.deposit";
17
16
  readonly WalletsTransfer: "wallets.transfer";
18
17
  readonly WalletsWithdraw: "wallets.withdraw";
19
18
  readonly PartyRead: "party.read";
@@ -14,7 +14,6 @@ export const CreateInvitationLinksRequestProposedAgentsItemPermissionsItem = {
14
14
  WalletsCreate: "wallets.create",
15
15
  WalletsUpdate: "wallets.update",
16
16
  WalletsFund: "wallets.fund",
17
- WalletsDeposit: "wallets.deposit",
18
17
  WalletsTransfer: "wallets.transfer",
19
18
  WalletsWithdraw: "wallets.withdraw",
20
19
  PartyRead: "party.read",
@@ -38,7 +38,7 @@ export declare class SimulationsClient {
38
38
  * await client.simulations.inviteCustomer({
39
39
  * idempotencyKey: "Idempotency-Key",
40
40
  * agentIds: ["agt_019cd1798d637a4da75dce386343931d"],
41
- * permissions: ["wallets.create", "wallets.deposit", "wallets.withdraw", "wallets.transfer"],
41
+ * permissions: ["wallets.create", "wallets.withdraw", "wallets.transfer"],
42
42
  * type: "ORG",
43
43
  * message: "Please review the agent access request."
44
44
  * })
@@ -60,7 +60,7 @@ export class SimulationsClient {
60
60
  * await client.simulations.inviteCustomer({
61
61
  * idempotencyKey: "Idempotency-Key",
62
62
  * agentIds: ["agt_019cd1798d637a4da75dce386343931d"],
63
- * permissions: ["wallets.create", "wallets.deposit", "wallets.withdraw", "wallets.transfer"],
63
+ * permissions: ["wallets.create", "wallets.withdraw", "wallets.transfer"],
64
64
  * type: "ORG",
65
65
  * message: "Please review the agent access request."
66
66
  * })
@@ -4,7 +4,7 @@ import type * as Natural from "../../../../index.mjs";
4
4
  * {
5
5
  * idempotencyKey: "Idempotency-Key",
6
6
  * agentIds: ["agt_019cd1798d637a4da75dce386343931d"],
7
- * permissions: ["wallets.create", "wallets.deposit", "wallets.withdraw", "wallets.transfer"],
7
+ * permissions: ["wallets.create", "wallets.withdraw", "wallets.transfer"],
8
8
  * type: "ORG",
9
9
  * message: "Please review the agent access request."
10
10
  * }
@@ -13,7 +13,6 @@ export declare const InviteCustomerSimulationsRequestPermissionsZeroItem: {
13
13
  readonly WalletsCreate: "wallets.create";
14
14
  readonly WalletsUpdate: "wallets.update";
15
15
  readonly WalletsFund: "wallets.fund";
16
- readonly WalletsDeposit: "wallets.deposit";
17
16
  readonly WalletsTransfer: "wallets.transfer";
18
17
  readonly WalletsWithdraw: "wallets.withdraw";
19
18
  readonly PartyRead: "party.read";
@@ -14,7 +14,6 @@ export const InviteCustomerSimulationsRequestPermissionsZeroItem = {
14
14
  WalletsCreate: "wallets.create",
15
15
  WalletsUpdate: "wallets.update",
16
16
  WalletsFund: "wallets.fund",
17
- WalletsDeposit: "wallets.deposit",
18
17
  WalletsTransfer: "wallets.transfer",
19
18
  WalletsWithdraw: "wallets.withdraw",
20
19
  PartyRead: "party.read",
@@ -15,7 +15,7 @@ import type * as Natural from "../../../../index.mjs";
15
15
  export interface NewDepositParams {
16
16
  /** Unique key for safely retrying a request without creating duplicates. */
17
17
  idempotencyKey: string;
18
- /** Customer party to act for (pty_*). Omit to act as your own party. To act for another party, pass the ID of a party that has authorized you to act on its behalf. */
18
+ /** Omit or pass your own party ID (pty_*). Deposits on behalf of customers are not supported. */
19
19
  customerPartyId?: string;
20
20
  /** Amount in cents. */
21
21
  amount: number;
@@ -23,7 +23,7 @@ export interface NewDepositParams {
23
23
  currency?: Natural.InitiateDepositTransfersRequestCurrency;
24
24
  /** External account ID (eac_*). */
25
25
  externalAccountId: string;
26
- /** Wallet (wal_*) to deposit into. Omit to use the party default for user or party API calls, or the agent default for the current customer connection when acting through a connected agent. Owned agents use their own agent default. */
26
+ /** Your party's wallet (wal_*) to deposit into. Omit to use the party default for user or party API calls, or the agent default for owned agents. */
27
27
  walletId?: string;
28
28
  /** Transfer description. Maximum 80 characters. */
29
29
  description?: string;
@@ -3,5 +3,5 @@ import * as core from "../../../../core/index.mjs";
3
3
  import type * as serializers from "../../../index.mjs";
4
4
  export declare const CreateCustomerAgentsRequestPermissionsItem: core.serialization.Schema<serializers.CreateCustomerAgentsRequestPermissionsItem.Raw, Natural.CreateCustomerAgentsRequestPermissionsItem>;
5
5
  export declare namespace CreateCustomerAgentsRequestPermissionsItem {
6
- type Raw = "disputes.read" | "disputes.create" | "payments.read" | "payments.create" | "external_parties.read" | "external_parties.create" | "direct.read" | "direct.create" | "external_accounts.create" | "wallets.read" | "wallets.balance" | "wallets.create" | "wallets.update" | "wallets.fund" | "wallets.deposit" | "wallets.transfer" | "wallets.withdraw" | "party.read" | "party.update" | "payment_intents.create" | "payment_intents.read" | "card_payments.read" | "refunds.read" | "refunds.create" | "voice_sessions.read" | "voice_sessions.create" | "chargebacks.read" | "chargebacks.respond" | "mandates.read" | "enrollment.read" | "cards.read" | "saved_cards.use";
6
+ type Raw = "disputes.read" | "disputes.create" | "payments.read" | "payments.create" | "external_parties.read" | "external_parties.create" | "direct.read" | "direct.create" | "external_accounts.create" | "wallets.read" | "wallets.balance" | "wallets.create" | "wallets.update" | "wallets.fund" | "wallets.transfer" | "wallets.withdraw" | "party.read" | "party.update" | "payment_intents.create" | "payment_intents.read" | "card_payments.read" | "refunds.read" | "refunds.create" | "voice_sessions.read" | "voice_sessions.create" | "chargebacks.read" | "chargebacks.respond" | "mandates.read" | "enrollment.read" | "cards.read" | "saved_cards.use";
7
7
  }
@@ -15,7 +15,6 @@ export const CreateCustomerAgentsRequestPermissionsItem = core.serialization.enu
15
15
  "wallets.create",
16
16
  "wallets.update",
17
17
  "wallets.fund",
18
- "wallets.deposit",
19
18
  "wallets.transfer",
20
19
  "wallets.withdraw",
21
20
  "party.read",
@@ -2,7 +2,7 @@ import type * as Natural from "../../../../../api/index.mjs";
2
2
  import * as core from "../../../../../core/index.mjs";
3
3
  import type * as serializers from "../../../../index.mjs";
4
4
  import { CreateCardSessionsRequestPurchase } from "../../types/CreateCardSessionsRequestPurchase.mjs";
5
- export declare const CreateCardSessionsRequest: core.serialization.Schema<serializers.CreateCardSessionsRequest.Raw, Natural.CreateCardSessionsRequest>;
5
+ export declare const CreateCardSessionsRequest: core.serialization.Schema<serializers.CreateCardSessionsRequest.Raw, Omit<Natural.CreateCardSessionsRequest, "idempotencyKey">>;
6
6
  export declare namespace CreateCardSessionsRequest {
7
7
  interface Raw {
8
8
  cardId: string;
@@ -10,5 +10,6 @@ export declare namespace CreateCardSessionsRequest {
10
10
  allowedHosts: string[];
11
11
  ttlSeconds?: number | null;
12
12
  purchase?: CreateCardSessionsRequestPurchase.Raw | null;
13
+ reference?: string | null;
13
14
  }
14
15
  }
@@ -7,4 +7,5 @@ export const CreateCardSessionsRequest = core.serialization.object({
7
7
  allowedHosts: core.serialization.list(core.serialization.string()),
8
8
  ttlSeconds: core.serialization.number().optional(),
9
9
  purchase: CreateCardSessionsRequestPurchase.optional(),
10
+ reference: core.serialization.string().optional(),
10
11
  });
@@ -2,6 +2,7 @@ import type * as Natural from "../../../../api/index.mjs";
2
2
  import * as core from "../../../../core/index.mjs";
3
3
  import type * as serializers from "../../../index.mjs";
4
4
  import { CreateCardSessionsResponseCardSource } from "./CreateCardSessionsResponseCardSource.mjs";
5
+ import { CreateCardSessionsResponseNote } from "./CreateCardSessionsResponseNote.mjs";
5
6
  import { CreateCardSessionsResponseStatus } from "./CreateCardSessionsResponseStatus.mjs";
6
7
  export declare const CreateCardSessionsResponse: core.serialization.ObjectSchema<serializers.CreateCardSessionsResponse.Raw, Natural.CreateCardSessionsResponse>;
7
8
  export declare namespace CreateCardSessionsResponse {
@@ -11,10 +12,12 @@ export declare namespace CreateCardSessionsResponse {
11
12
  cardSource: CreateCardSessionsResponseCardSource.Raw;
12
13
  status: CreateCardSessionsResponseStatus.Raw;
13
14
  allowedHosts: string[];
15
+ reference?: string | null;
14
16
  claimExpiresAt: string;
15
17
  claimedAt?: string | null;
16
18
  credentialExpiresAt?: string | null;
17
19
  createdAt: string;
20
+ note?: CreateCardSessionsResponseNote.Raw | null;
18
21
  approvalUrl?: string | null;
19
22
  }
20
23
  }
@@ -1,6 +1,7 @@
1
1
  // This file was auto-generated by Fern from our API Definition.
2
2
  import * as core from "../../../../core/index.mjs";
3
3
  import { CreateCardSessionsResponseCardSource } from "./CreateCardSessionsResponseCardSource.mjs";
4
+ import { CreateCardSessionsResponseNote } from "./CreateCardSessionsResponseNote.mjs";
4
5
  import { CreateCardSessionsResponseStatus } from "./CreateCardSessionsResponseStatus.mjs";
5
6
  export const CreateCardSessionsResponse = core.serialization.object({
6
7
  sessionId: core.serialization.string(),
@@ -8,9 +9,11 @@ export const CreateCardSessionsResponse = core.serialization.object({
8
9
  cardSource: CreateCardSessionsResponseCardSource,
9
10
  status: CreateCardSessionsResponseStatus,
10
11
  allowedHosts: core.serialization.list(core.serialization.string()),
12
+ reference: core.serialization.string().nullable(),
11
13
  claimExpiresAt: core.serialization.string(),
12
14
  claimedAt: core.serialization.string().nullable(),
13
15
  credentialExpiresAt: core.serialization.string().nullable(),
14
16
  createdAt: core.serialization.string(),
17
+ note: CreateCardSessionsResponseNote.nullable(),
15
18
  approvalUrl: core.serialization.string().nullable(),
16
19
  });
@@ -0,0 +1,10 @@
1
+ import type * as Natural from "../../../../api/index.mjs";
2
+ import * as core from "../../../../core/index.mjs";
3
+ import type * as serializers from "../../../index.mjs";
4
+ export declare const CreateCardSessionsResponseNote: core.serialization.ObjectSchema<serializers.CreateCardSessionsResponseNote.Raw, Natural.CreateCardSessionsResponseNote>;
5
+ export declare namespace CreateCardSessionsResponseNote {
6
+ interface Raw {
7
+ message: string;
8
+ url?: string | null;
9
+ }
10
+ }
@@ -0,0 +1,6 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ import * as core from "../../../../core/index.mjs";
3
+ export const CreateCardSessionsResponseNote = core.serialization.object({
4
+ message: core.serialization.string(),
5
+ url: core.serialization.string().nullable(),
6
+ });
@@ -2,6 +2,7 @@ import type * as Natural from "../../../../api/index.mjs";
2
2
  import * as core from "../../../../core/index.mjs";
3
3
  import type * as serializers from "../../../index.mjs";
4
4
  import { GetCardSessionsResponseCardSource } from "./GetCardSessionsResponseCardSource.mjs";
5
+ import { GetCardSessionsResponseNote } from "./GetCardSessionsResponseNote.mjs";
5
6
  import { GetCardSessionsResponseStatus } from "./GetCardSessionsResponseStatus.mjs";
6
7
  export declare const GetCardSessionsResponse: core.serialization.ObjectSchema<serializers.GetCardSessionsResponse.Raw, Natural.GetCardSessionsResponse>;
7
8
  export declare namespace GetCardSessionsResponse {
@@ -11,9 +12,11 @@ export declare namespace GetCardSessionsResponse {
11
12
  cardSource: GetCardSessionsResponseCardSource.Raw;
12
13
  status: GetCardSessionsResponseStatus.Raw;
13
14
  allowedHosts: string[];
15
+ reference?: string | null;
14
16
  claimExpiresAt: string;
15
17
  claimedAt?: string | null;
16
18
  credentialExpiresAt?: string | null;
17
19
  createdAt: string;
20
+ note?: GetCardSessionsResponseNote.Raw | null;
18
21
  }
19
22
  }
@@ -1,6 +1,7 @@
1
1
  // This file was auto-generated by Fern from our API Definition.
2
2
  import * as core from "../../../../core/index.mjs";
3
3
  import { GetCardSessionsResponseCardSource } from "./GetCardSessionsResponseCardSource.mjs";
4
+ import { GetCardSessionsResponseNote } from "./GetCardSessionsResponseNote.mjs";
4
5
  import { GetCardSessionsResponseStatus } from "./GetCardSessionsResponseStatus.mjs";
5
6
  export const GetCardSessionsResponse = core.serialization.object({
6
7
  sessionId: core.serialization.string(),
@@ -8,8 +9,10 @@ export const GetCardSessionsResponse = core.serialization.object({
8
9
  cardSource: GetCardSessionsResponseCardSource,
9
10
  status: GetCardSessionsResponseStatus,
10
11
  allowedHosts: core.serialization.list(core.serialization.string()),
12
+ reference: core.serialization.string().nullable(),
11
13
  claimExpiresAt: core.serialization.string(),
12
14
  claimedAt: core.serialization.string().nullable(),
13
15
  credentialExpiresAt: core.serialization.string().nullable(),
14
16
  createdAt: core.serialization.string(),
17
+ note: GetCardSessionsResponseNote.nullable(),
15
18
  });
@@ -0,0 +1,10 @@
1
+ import type * as Natural from "../../../../api/index.mjs";
2
+ import * as core from "../../../../core/index.mjs";
3
+ import type * as serializers from "../../../index.mjs";
4
+ export declare const GetCardSessionsResponseNote: core.serialization.ObjectSchema<serializers.GetCardSessionsResponseNote.Raw, Natural.GetCardSessionsResponseNote>;
5
+ export declare namespace GetCardSessionsResponseNote {
6
+ interface Raw {
7
+ message: string;
8
+ url?: string | null;
9
+ }
10
+ }
@@ -0,0 +1,6 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ import * as core from "../../../../core/index.mjs";
3
+ export const GetCardSessionsResponseNote = core.serialization.object({
4
+ message: core.serialization.string(),
5
+ url: core.serialization.string().nullable(),
6
+ });
@@ -0,0 +1,7 @@
1
+ import type * as Natural from "../../../../api/index.mjs";
2
+ import * as core from "../../../../core/index.mjs";
3
+ import type * as serializers from "../../../index.mjs";
4
+ export declare const ListCardSessionsRequestStatus: core.serialization.Schema<serializers.ListCardSessionsRequestStatus.Raw, Natural.ListCardSessionsRequestStatus>;
5
+ export declare namespace ListCardSessionsRequestStatus {
6
+ type Raw = "pending_approval" | "approved" | "declined" | "claimed" | "expired";
7
+ }