@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,3 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ import * as core from "../../../../core/index.mjs";
3
+ export const ListCardSessionsRequestStatus = core.serialization.enum_(["pending_approval", "approved", "declined", "claimed", "expired"]);
@@ -0,0 +1,12 @@
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
+ import { ListCardSessionsResponseDataItem } from "./ListCardSessionsResponseDataItem.mjs";
5
+ import { ListCardSessionsResponseMeta } from "./ListCardSessionsResponseMeta.mjs";
6
+ export declare const ListCardSessionsResponse: core.serialization.ObjectSchema<serializers.ListCardSessionsResponse.Raw, Natural.ListCardSessionsResponse>;
7
+ export declare namespace ListCardSessionsResponse {
8
+ interface Raw {
9
+ data: ListCardSessionsResponseDataItem.Raw[];
10
+ meta: ListCardSessionsResponseMeta.Raw;
11
+ }
12
+ }
@@ -0,0 +1,8 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ import * as core from "../../../../core/index.mjs";
3
+ import { ListCardSessionsResponseDataItem } from "./ListCardSessionsResponseDataItem.mjs";
4
+ import { ListCardSessionsResponseMeta } from "./ListCardSessionsResponseMeta.mjs";
5
+ export const ListCardSessionsResponse = core.serialization.object({
6
+ data: core.serialization.list(ListCardSessionsResponseDataItem),
7
+ meta: ListCardSessionsResponseMeta,
8
+ });
@@ -0,0 +1,22 @@
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
+ import { ListCardSessionsResponseDataItemCardSource } from "./ListCardSessionsResponseDataItemCardSource.mjs";
5
+ import { ListCardSessionsResponseDataItemNote } from "./ListCardSessionsResponseDataItemNote.mjs";
6
+ import { ListCardSessionsResponseDataItemStatus } from "./ListCardSessionsResponseDataItemStatus.mjs";
7
+ export declare const ListCardSessionsResponseDataItem: core.serialization.ObjectSchema<serializers.ListCardSessionsResponseDataItem.Raw, Natural.ListCardSessionsResponseDataItem>;
8
+ export declare namespace ListCardSessionsResponseDataItem {
9
+ interface Raw {
10
+ sessionId: string;
11
+ cardId: string;
12
+ cardSource: ListCardSessionsResponseDataItemCardSource.Raw;
13
+ status: ListCardSessionsResponseDataItemStatus.Raw;
14
+ allowedHosts: string[];
15
+ reference?: string | null;
16
+ claimExpiresAt: string;
17
+ claimedAt?: string | null;
18
+ credentialExpiresAt?: string | null;
19
+ createdAt: string;
20
+ note?: ListCardSessionsResponseDataItemNote.Raw | null;
21
+ }
22
+ }
@@ -0,0 +1,18 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ import * as core from "../../../../core/index.mjs";
3
+ import { ListCardSessionsResponseDataItemCardSource } from "./ListCardSessionsResponseDataItemCardSource.mjs";
4
+ import { ListCardSessionsResponseDataItemNote } from "./ListCardSessionsResponseDataItemNote.mjs";
5
+ import { ListCardSessionsResponseDataItemStatus } from "./ListCardSessionsResponseDataItemStatus.mjs";
6
+ export const ListCardSessionsResponseDataItem = core.serialization.object({
7
+ sessionId: core.serialization.string(),
8
+ cardId: core.serialization.string(),
9
+ cardSource: ListCardSessionsResponseDataItemCardSource,
10
+ status: ListCardSessionsResponseDataItemStatus,
11
+ allowedHosts: core.serialization.list(core.serialization.string()),
12
+ reference: core.serialization.string().nullable(),
13
+ claimExpiresAt: core.serialization.string(),
14
+ claimedAt: core.serialization.string().nullable(),
15
+ credentialExpiresAt: core.serialization.string().nullable(),
16
+ createdAt: core.serialization.string(),
17
+ note: ListCardSessionsResponseDataItemNote.nullable(),
18
+ });
@@ -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 ListCardSessionsResponseDataItemCardSource: core.serialization.Schema<serializers.ListCardSessionsResponseDataItemCardSource.Raw, Natural.ListCardSessionsResponseDataItemCardSource>;
5
+ export declare namespace ListCardSessionsResponseDataItemCardSource {
6
+ type Raw = "natural_issued" | "external";
7
+ }
@@ -0,0 +1,3 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ import * as core from "../../../../core/index.mjs";
3
+ export const ListCardSessionsResponseDataItemCardSource = core.serialization.enum_(["natural_issued", "external"]);
@@ -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 ListCardSessionsResponseDataItemNote: core.serialization.ObjectSchema<serializers.ListCardSessionsResponseDataItemNote.Raw, Natural.ListCardSessionsResponseDataItemNote>;
5
+ export declare namespace ListCardSessionsResponseDataItemNote {
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 ListCardSessionsResponseDataItemNote = 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 ListCardSessionsResponseDataItemStatus: core.serialization.Schema<serializers.ListCardSessionsResponseDataItemStatus.Raw, Natural.ListCardSessionsResponseDataItemStatus>;
5
+ export declare namespace ListCardSessionsResponseDataItemStatus {
6
+ type Raw = "pending_approval" | "approved" | "declined" | "claimed" | "expired";
7
+ }
@@ -0,0 +1,3 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ import * as core from "../../../../core/index.mjs";
3
+ export const ListCardSessionsResponseDataItemStatus = core.serialization.enum_(["pending_approval", "approved", "declined", "claimed", "expired"]);
@@ -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
+ import { ListCardSessionsResponseMetaPagination } from "./ListCardSessionsResponseMetaPagination.mjs";
5
+ export declare const ListCardSessionsResponseMeta: core.serialization.ObjectSchema<serializers.ListCardSessionsResponseMeta.Raw, Natural.ListCardSessionsResponseMeta>;
6
+ export declare namespace ListCardSessionsResponseMeta {
7
+ interface Raw {
8
+ pagination: ListCardSessionsResponseMetaPagination.Raw;
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
+ import { ListCardSessionsResponseMetaPagination } from "./ListCardSessionsResponseMetaPagination.mjs";
4
+ export const ListCardSessionsResponseMeta = core.serialization.object({
5
+ pagination: ListCardSessionsResponseMetaPagination,
6
+ });
@@ -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 ListCardSessionsResponseMetaPagination: core.serialization.ObjectSchema<serializers.ListCardSessionsResponseMetaPagination.Raw, Natural.ListCardSessionsResponseMetaPagination>;
5
+ export declare namespace ListCardSessionsResponseMetaPagination {
6
+ interface Raw {
7
+ hasMore: boolean;
8
+ nextCursor?: 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 ListCardSessionsResponseMetaPagination = core.serialization.object({
4
+ hasMore: core.serialization.boolean(),
5
+ nextCursor: core.serialization.string().nullable(),
6
+ });
@@ -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";
@@ -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 CreateInvitationsCustomersRequestAgentsItemPermissionsZeroItem: core.serialization.Schema<serializers.CreateInvitationsCustomersRequestAgentsItemPermissionsZeroItem.Raw, Natural.CreateInvitationsCustomersRequestAgentsItemPermissionsZeroItem>;
5
5
  export declare namespace CreateInvitationsCustomersRequestAgentsItemPermissionsZeroItem {
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 CreateInvitationsCustomersRequestAgentsItemPermissionsZeroItem = co
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",
@@ -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 CreateInvitationLinksRequestProposedAgentsItemPermissionsItem: core.serialization.Schema<serializers.CreateInvitationLinksRequestProposedAgentsItemPermissionsItem.Raw, Natural.CreateInvitationLinksRequestProposedAgentsItemPermissionsItem>;
5
5
  export declare namespace CreateInvitationLinksRequestProposedAgentsItemPermissionsItem {
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 CreateInvitationLinksRequestProposedAgentsItemPermissionsItem = cor
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",
@@ -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 InviteCustomerSimulationsRequestPermissionsZeroItem: core.serialization.Schema<serializers.InviteCustomerSimulationsRequestPermissionsZeroItem.Raw, Natural.InviteCustomerSimulationsRequestPermissionsZeroItem>;
5
5
  export declare namespace InviteCustomerSimulationsRequestPermissionsZeroItem {
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 InviteCustomerSimulationsRequestPermissionsZeroItem = core.serializ
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",
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "1.6.36";
1
+ export declare const SDK_VERSION = "1.6.38";
@@ -1 +1 @@
1
- export const SDK_VERSION = "1.6.36";
1
+ export const SDK_VERSION = "1.6.38";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@naturalpay/sdk",
3
- "version": "1.6.36",
3
+ "version": "1.6.38",
4
4
  "private": false,
5
5
  "repository": {
6
6
  "type": "git",
package/reference.md CHANGED
@@ -8441,6 +8441,69 @@ await client.agentKeys.rotate({
8441
8441
  </details>
8442
8442
 
8443
8443
  ## Card Sessions
8444
+ <details><summary><code>client.cardSessions.<a href="/src/api/resources/cardSessions/client/Client.ts">list</a>({ ...params }) -> Natural.ListCardSessionsResponse</code></summary>
8445
+ <dl>
8446
+ <dd>
8447
+
8448
+ #### 📝 Description
8449
+
8450
+ <dl>
8451
+ <dd>
8452
+
8453
+ <dl>
8454
+ <dd>
8455
+
8456
+ List the card sessions you opened for the party you act for, newest first. It never includes card data.
8457
+ </dd>
8458
+ </dl>
8459
+ </dd>
8460
+ </dl>
8461
+
8462
+ #### 🔌 Usage
8463
+
8464
+ <dl>
8465
+ <dd>
8466
+
8467
+ <dl>
8468
+ <dd>
8469
+
8470
+ ```typescript
8471
+ await client.cardSessions.list();
8472
+
8473
+ ```
8474
+ </dd>
8475
+ </dl>
8476
+ </dd>
8477
+ </dl>
8478
+
8479
+ #### ⚙️ Parameters
8480
+
8481
+ <dl>
8482
+ <dd>
8483
+
8484
+ <dl>
8485
+ <dd>
8486
+
8487
+ **request:** `Natural.ListCardSessionsRequest`
8488
+
8489
+ </dd>
8490
+ </dl>
8491
+
8492
+ <dl>
8493
+ <dd>
8494
+
8495
+ **requestOptions:** `CardSessionsClient.RequestOptions`
8496
+
8497
+ </dd>
8498
+ </dl>
8499
+ </dd>
8500
+ </dl>
8501
+
8502
+
8503
+ </dd>
8504
+ </dl>
8505
+ </details>
8506
+
8444
8507
  <details><summary><code>client.cardSessions.<a href="/src/api/resources/cardSessions/client/Client.ts">create</a>({ ...params }) -> Natural.CreateCardSessionsResponse</code></summary>
8445
8508
  <dl>
8446
8509
  <dd>
@@ -8476,7 +8539,8 @@ await client.cardSessions.create({
8476
8539
  merchantName: "Blue Bottle Coffee",
8477
8540
  amount: 2450,
8478
8541
  currency: "USD"
8479
- }
8542
+ },
8543
+ reference: "checkout_7f3a"
8480
8544
  });
8481
8545
 
8482
8546
  ```
@@ -8590,7 +8654,7 @@ await client.cardSessions.get({
8590
8654
  <dl>
8591
8655
  <dd>
8592
8656
 
8593
- Claim the stand-in card and proxy login for an approved session. It succeeds once, and the credential can't be fetched again.
8657
+ Claim the stand-in card and proxy login for an approved session. It succeeds once; with an Idempotency-Key, retrying with the same key returns a fresh login until expiresAt.
8594
8658
  </dd>
8595
8659
  </dl>
8596
8660
  </dd>
@@ -9754,7 +9818,7 @@ Create a test customer and a pending invitation for each agent you name
9754
9818
  await client.simulations.inviteCustomer({
9755
9819
  idempotencyKey: "Idempotency-Key",
9756
9820
  agentIds: ["agt_019cd1798d637a4da75dce386343931d"],
9757
- permissions: ["wallets.create", "wallets.deposit", "wallets.withdraw", "wallets.transfer"],
9821
+ permissions: ["wallets.create", "wallets.withdraw", "wallets.transfer"],
9758
9822
  type: "ORG",
9759
9823
  message: "Please review the agent access request."
9760
9824
  });