@naturalpay/sdk 0.9.0 → 0.10.0

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 (103) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/client.d.mts +2 -2
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +2 -2
  5. package/client.d.ts.map +1 -1
  6. package/client.js.map +1 -1
  7. package/client.mjs.map +1 -1
  8. package/package.json +1 -1
  9. package/resources/agents.d.mts +33 -26
  10. package/resources/agents.d.mts.map +1 -1
  11. package/resources/agents.d.ts +33 -26
  12. package/resources/agents.d.ts.map +1 -1
  13. package/resources/agents.js +1 -1
  14. package/resources/agents.mjs +1 -1
  15. package/resources/api-keys.d.mts +16 -16
  16. package/resources/api-keys.d.mts.map +1 -1
  17. package/resources/api-keys.d.ts +16 -16
  18. package/resources/api-keys.d.ts.map +1 -1
  19. package/resources/approvals.d.mts +16 -16
  20. package/resources/approvals.d.mts.map +1 -1
  21. package/resources/approvals.d.ts +16 -16
  22. package/resources/approvals.d.ts.map +1 -1
  23. package/resources/counterparties.d.mts +1 -1
  24. package/resources/counterparties.d.mts.map +1 -1
  25. package/resources/counterparties.d.ts +1 -1
  26. package/resources/counterparties.d.ts.map +1 -1
  27. package/resources/customers.d.mts +6 -6
  28. package/resources/customers.d.mts.map +1 -1
  29. package/resources/customers.d.ts +6 -6
  30. package/resources/customers.d.ts.map +1 -1
  31. package/resources/external-accounts.d.mts +4 -4
  32. package/resources/external-accounts.d.mts.map +1 -1
  33. package/resources/external-accounts.d.ts +4 -4
  34. package/resources/external-accounts.d.ts.map +1 -1
  35. package/resources/index.d.mts +1 -1
  36. package/resources/index.d.mts.map +1 -1
  37. package/resources/index.d.ts +1 -1
  38. package/resources/index.d.ts.map +1 -1
  39. package/resources/index.js.map +1 -1
  40. package/resources/index.mjs.map +1 -1
  41. package/resources/invitations.d.mts +3 -3
  42. package/resources/invitations.d.mts.map +1 -1
  43. package/resources/invitations.d.ts +3 -3
  44. package/resources/invitations.d.ts.map +1 -1
  45. package/resources/parties.d.mts +4 -4
  46. package/resources/parties.d.mts.map +1 -1
  47. package/resources/parties.d.ts +4 -4
  48. package/resources/parties.d.ts.map +1 -1
  49. package/resources/payment-requests.d.mts +314 -33
  50. package/resources/payment-requests.d.mts.map +1 -1
  51. package/resources/payment-requests.d.ts +314 -33
  52. package/resources/payment-requests.d.ts.map +1 -1
  53. package/resources/payment-requests.js +2 -2
  54. package/resources/payment-requests.mjs +2 -2
  55. package/resources/payments.d.mts +400 -20
  56. package/resources/payments.d.mts.map +1 -1
  57. package/resources/payments.d.ts +400 -20
  58. package/resources/payments.d.ts.map +1 -1
  59. package/resources/payments.js +26 -1
  60. package/resources/payments.js.map +1 -1
  61. package/resources/payments.mjs +26 -1
  62. package/resources/payments.mjs.map +1 -1
  63. package/resources/transactions.d.mts +10 -10
  64. package/resources/transactions.d.mts.map +1 -1
  65. package/resources/transactions.d.ts +10 -10
  66. package/resources/transactions.d.ts.map +1 -1
  67. package/resources/transfers.d.mts +20 -20
  68. package/resources/transfers.d.mts.map +1 -1
  69. package/resources/transfers.d.ts +20 -20
  70. package/resources/transfers.d.ts.map +1 -1
  71. package/resources/wallet.d.mts +4 -4
  72. package/resources/wallet.d.mts.map +1 -1
  73. package/resources/wallet.d.ts +4 -4
  74. package/resources/wallet.d.ts.map +1 -1
  75. package/resources/webhooks.d.mts +12 -12
  76. package/resources/webhooks.d.mts.map +1 -1
  77. package/resources/webhooks.d.ts +12 -12
  78. package/resources/webhooks.d.ts.map +1 -1
  79. package/src/client.ts +4 -0
  80. package/src/resources/agents.ts +39 -26
  81. package/src/resources/api-keys.ts +16 -16
  82. package/src/resources/approvals.ts +16 -16
  83. package/src/resources/counterparties.ts +1 -1
  84. package/src/resources/customers.ts +6 -6
  85. package/src/resources/external-accounts.ts +4 -4
  86. package/src/resources/index.ts +2 -0
  87. package/src/resources/invitations.ts +3 -3
  88. package/src/resources/parties.ts +4 -4
  89. package/src/resources/payment-requests.ts +413 -33
  90. package/src/resources/payments.ts +498 -16
  91. package/src/resources/transactions.ts +10 -10
  92. package/src/resources/transfers.ts +20 -20
  93. package/src/resources/wallet.ts +4 -4
  94. package/src/resources/webhooks.ts +12 -12
  95. package/src/version.ts +1 -1
  96. package/version.d.mts +1 -1
  97. package/version.d.mts.map +1 -1
  98. package/version.d.ts +1 -1
  99. package/version.d.ts.map +1 -1
  100. package/version.js +1 -1
  101. package/version.js.map +1 -1
  102. package/version.mjs +1 -1
  103. package/version.mjs.map +1 -1
@@ -77,7 +77,7 @@ export namespace TransactionListResponse {
77
77
  */
78
78
  relationships: Data.Relationships;
79
79
 
80
- type: string;
80
+ type: 'transaction';
81
81
  }
82
82
 
83
83
  export namespace Data {
@@ -180,7 +180,7 @@ export namespace TransactionListResponse {
180
180
  /**
181
181
  * Resource type
182
182
  */
183
- type: string;
183
+ type: 'party';
184
184
  }
185
185
  }
186
186
 
@@ -204,7 +204,7 @@ export namespace TransactionListResponse {
204
204
  /**
205
205
  * Resource type
206
206
  */
207
- type: string;
207
+ type: 'party';
208
208
  }
209
209
  }
210
210
 
@@ -229,7 +229,7 @@ export namespace TransactionListResponse {
229
229
  /**
230
230
  * Resource type
231
231
  */
232
- type: string;
232
+ type: 'payment';
233
233
  }
234
234
  }
235
235
 
@@ -254,7 +254,7 @@ export namespace TransactionListResponse {
254
254
  /**
255
255
  * Resource type
256
256
  */
257
- type: string;
257
+ type: 'transfer';
258
258
  }
259
259
  }
260
260
  }
@@ -294,7 +294,7 @@ export namespace TransactionGetResponse {
294
294
  */
295
295
  relationships: Data.Relationships;
296
296
 
297
- type: string;
297
+ type: 'transaction';
298
298
  }
299
299
 
300
300
  export namespace Data {
@@ -397,7 +397,7 @@ export namespace TransactionGetResponse {
397
397
  /**
398
398
  * Resource type
399
399
  */
400
- type: string;
400
+ type: 'party';
401
401
  }
402
402
  }
403
403
 
@@ -421,7 +421,7 @@ export namespace TransactionGetResponse {
421
421
  /**
422
422
  * Resource type
423
423
  */
424
- type: string;
424
+ type: 'party';
425
425
  }
426
426
  }
427
427
 
@@ -446,7 +446,7 @@ export namespace TransactionGetResponse {
446
446
  /**
447
447
  * Resource type
448
448
  */
449
- type: string;
449
+ type: 'payment';
450
450
  }
451
451
  }
452
452
 
@@ -471,7 +471,7 @@ export namespace TransactionGetResponse {
471
471
  /**
472
472
  * Resource type
473
473
  */
474
- type: string;
474
+ type: 'transfer';
475
475
  }
476
476
  }
477
477
  }
@@ -158,7 +158,7 @@ export namespace TransferListResponse {
158
158
  */
159
159
  relationships: Data.Relationships;
160
160
 
161
- type: string;
161
+ type: 'transfer';
162
162
  }
163
163
 
164
164
  export namespace Data {
@@ -323,7 +323,7 @@ export namespace TransferListResponse {
323
323
  /**
324
324
  * Resource type
325
325
  */
326
- type: string;
326
+ type: 'externalAccount';
327
327
  }
328
328
  }
329
329
 
@@ -347,7 +347,7 @@ export namespace TransferListResponse {
347
347
  /**
348
348
  * Resource type
349
349
  */
350
- type: string;
350
+ type: 'party';
351
351
  }
352
352
  }
353
353
 
@@ -371,7 +371,7 @@ export namespace TransferListResponse {
371
371
  /**
372
372
  * Resource type
373
373
  */
374
- type: string;
374
+ type: 'transaction';
375
375
  }
376
376
  }
377
377
 
@@ -395,7 +395,7 @@ export namespace TransferListResponse {
395
395
  /**
396
396
  * Resource type
397
397
  */
398
- type: string;
398
+ type: 'wallet';
399
399
  }
400
400
  }
401
401
  }
@@ -432,7 +432,7 @@ export namespace TransferGetResponse {
432
432
  */
433
433
  relationships: Data.Relationships;
434
434
 
435
- type: string;
435
+ type: 'transfer';
436
436
  }
437
437
 
438
438
  export namespace Data {
@@ -597,7 +597,7 @@ export namespace TransferGetResponse {
597
597
  /**
598
598
  * Resource type
599
599
  */
600
- type: string;
600
+ type: 'externalAccount';
601
601
  }
602
602
  }
603
603
 
@@ -621,7 +621,7 @@ export namespace TransferGetResponse {
621
621
  /**
622
622
  * Resource type
623
623
  */
624
- type: string;
624
+ type: 'party';
625
625
  }
626
626
  }
627
627
 
@@ -645,7 +645,7 @@ export namespace TransferGetResponse {
645
645
  /**
646
646
  * Resource type
647
647
  */
648
- type: string;
648
+ type: 'transaction';
649
649
  }
650
650
  }
651
651
 
@@ -669,7 +669,7 @@ export namespace TransferGetResponse {
669
669
  /**
670
670
  * Resource type
671
671
  */
672
- type: string;
672
+ type: 'wallet';
673
673
  }
674
674
  }
675
675
  }
@@ -694,7 +694,7 @@ export namespace TransferInitiateDepositResponse {
694
694
  */
695
695
  relationships: Data.Relationships;
696
696
 
697
- type: string;
697
+ type: 'transfer';
698
698
  }
699
699
 
700
700
  export namespace Data {
@@ -859,7 +859,7 @@ export namespace TransferInitiateDepositResponse {
859
859
  /**
860
860
  * Resource type
861
861
  */
862
- type: string;
862
+ type: 'externalAccount';
863
863
  }
864
864
  }
865
865
 
@@ -883,7 +883,7 @@ export namespace TransferInitiateDepositResponse {
883
883
  /**
884
884
  * Resource type
885
885
  */
886
- type: string;
886
+ type: 'party';
887
887
  }
888
888
  }
889
889
 
@@ -907,7 +907,7 @@ export namespace TransferInitiateDepositResponse {
907
907
  /**
908
908
  * Resource type
909
909
  */
910
- type: string;
910
+ type: 'transaction';
911
911
  }
912
912
  }
913
913
 
@@ -931,7 +931,7 @@ export namespace TransferInitiateDepositResponse {
931
931
  /**
932
932
  * Resource type
933
933
  */
934
- type: string;
934
+ type: 'wallet';
935
935
  }
936
936
  }
937
937
  }
@@ -956,7 +956,7 @@ export namespace TransferInitiateWithdrawalResponse {
956
956
  */
957
957
  relationships: Data.Relationships;
958
958
 
959
- type: string;
959
+ type: 'transfer';
960
960
  }
961
961
 
962
962
  export namespace Data {
@@ -1121,7 +1121,7 @@ export namespace TransferInitiateWithdrawalResponse {
1121
1121
  /**
1122
1122
  * Resource type
1123
1123
  */
1124
- type: string;
1124
+ type: 'externalAccount';
1125
1125
  }
1126
1126
  }
1127
1127
 
@@ -1145,7 +1145,7 @@ export namespace TransferInitiateWithdrawalResponse {
1145
1145
  /**
1146
1146
  * Resource type
1147
1147
  */
1148
- type: string;
1148
+ type: 'party';
1149
1149
  }
1150
1150
  }
1151
1151
 
@@ -1169,7 +1169,7 @@ export namespace TransferInitiateWithdrawalResponse {
1169
1169
  /**
1170
1170
  * Resource type
1171
1171
  */
1172
- type: string;
1172
+ type: 'transaction';
1173
1173
  }
1174
1174
  }
1175
1175
 
@@ -1193,7 +1193,7 @@ export namespace TransferInitiateWithdrawalResponse {
1193
1193
  /**
1194
1194
  * Resource type
1195
1195
  */
1196
- type: string;
1196
+ type: 'wallet';
1197
1197
  }
1198
1198
  }
1199
1199
  }
@@ -80,7 +80,7 @@ export namespace WalletListResponse {
80
80
  /**
81
81
  * Resource type
82
82
  */
83
- type: string;
83
+ type: 'wallet';
84
84
  }
85
85
 
86
86
  export namespace Data {
@@ -197,7 +197,7 @@ export namespace WalletListResponse {
197
197
  /**
198
198
  * Resource type
199
199
  */
200
- type: string;
200
+ type: 'party';
201
201
  }
202
202
  }
203
203
  }
@@ -240,7 +240,7 @@ export namespace WalletGetResponse {
240
240
  /**
241
241
  * Resource type
242
242
  */
243
- type: string;
243
+ type: 'wallet';
244
244
  }
245
245
 
246
246
  export namespace Data {
@@ -357,7 +357,7 @@ export namespace WalletGetResponse {
357
357
  /**
358
358
  * Resource type
359
359
  */
360
- type: string;
360
+ type: 'party';
361
361
  }
362
362
  }
363
363
  }
@@ -228,7 +228,7 @@ export namespace WebhookCreateResponse {
228
228
  /**
229
229
  * Resource type
230
230
  */
231
- type: string;
231
+ type: 'webhook';
232
232
  }
233
233
 
234
234
  export namespace Data {
@@ -337,7 +337,7 @@ export namespace WebhookCreateResponse {
337
337
  /**
338
338
  * Resource type
339
339
  */
340
- type: string;
340
+ type: 'party';
341
341
  }
342
342
  }
343
343
  }
@@ -368,7 +368,7 @@ export namespace WebhookUpdateResponse {
368
368
  /**
369
369
  * Resource type
370
370
  */
371
- type: string;
371
+ type: 'webhook';
372
372
  }
373
373
 
374
374
  export namespace Data {
@@ -472,7 +472,7 @@ export namespace WebhookUpdateResponse {
472
472
  /**
473
473
  * Resource type
474
474
  */
475
- type: string;
475
+ type: 'party';
476
476
  }
477
477
  }
478
478
  }
@@ -505,7 +505,7 @@ export namespace WebhookListResponse {
505
505
  /**
506
506
  * Resource type
507
507
  */
508
- type: string;
508
+ type: 'webhook';
509
509
  }
510
510
 
511
511
  export namespace Data {
@@ -609,7 +609,7 @@ export namespace WebhookListResponse {
609
609
  /**
610
610
  * Resource type
611
611
  */
612
- type: string;
612
+ type: 'party';
613
613
  }
614
614
  }
615
615
  }
@@ -652,7 +652,7 @@ export namespace WebhookGetResponse {
652
652
  /**
653
653
  * Resource type
654
654
  */
655
- type: string;
655
+ type: 'webhook';
656
656
  }
657
657
 
658
658
  export namespace Data {
@@ -756,7 +756,7 @@ export namespace WebhookGetResponse {
756
756
  /**
757
757
  * Resource type
758
758
  */
759
- type: string;
759
+ type: 'party';
760
760
  }
761
761
  }
762
762
  }
@@ -789,7 +789,7 @@ export namespace WebhookRemoveResponse {
789
789
  /**
790
790
  * Resource type
791
791
  */
792
- type: string;
792
+ type: 'webhook';
793
793
  }
794
794
 
795
795
  export namespace Data {
@@ -893,7 +893,7 @@ export namespace WebhookRemoveResponse {
893
893
  /**
894
894
  * Resource type
895
895
  */
896
- type: string;
896
+ type: 'party';
897
897
  }
898
898
  }
899
899
  }
@@ -931,7 +931,7 @@ export namespace WebhookRotateSecretResponse {
931
931
  /**
932
932
  * Resource type
933
933
  */
934
- type: string;
934
+ type: 'webhook';
935
935
  }
936
936
 
937
937
  export namespace Data {
@@ -981,7 +981,7 @@ export namespace WebhookRotateSecretResponse {
981
981
  /**
982
982
  * Resource type
983
983
  */
984
- type: string;
984
+ type: 'party';
985
985
  }
986
986
  }
987
987
  }
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '0.9.0'; // x-release-please-version
1
+ export const VERSION = '0.10.0'; // x-release-please-version
package/version.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.9.0";
1
+ export declare const VERSION = "0.10.0";
2
2
  //# sourceMappingURL=version.d.mts.map
package/version.d.mts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"version.d.mts","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,UAAU,CAAC"}
1
+ {"version":3,"file":"version.d.mts","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,WAAW,CAAC"}
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.9.0";
1
+ export declare const VERSION = "0.10.0";
2
2
  //# sourceMappingURL=version.d.ts.map
package/version.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"version.d.ts","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,UAAU,CAAC"}
1
+ {"version":3,"file":"version.d.ts","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,WAAW,CAAC"}
package/version.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VERSION = void 0;
4
- exports.VERSION = '0.9.0'; // x-release-please-version
4
+ exports.VERSION = '0.10.0'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"version.js","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":";;;AAAa,QAAA,OAAO,GAAG,OAAO,CAAC,CAAC,2BAA2B"}
1
+ {"version":3,"file":"version.js","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":";;;AAAa,QAAA,OAAO,GAAG,QAAQ,CAAC,CAAC,2BAA2B"}
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '0.9.0'; // x-release-please-version
1
+ export const VERSION = '0.10.0'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map
package/version.mjs.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"version.mjs","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,OAAO,GAAG,OAAO,CAAC,CAAC,2BAA2B"}
1
+ {"version":3,"file":"version.mjs","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,OAAO,GAAG,QAAQ,CAAC,CAAC,2BAA2B"}