@amos.com/node 0.1.2 → 0.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts CHANGED
@@ -1134,7 +1134,9 @@ interface components {
1134
1134
  [key: string]: string | null;
1135
1135
  };
1136
1136
  Error: {
1137
- errors?: Record<string, never>;
1137
+ errors: {
1138
+ [key: string]: string[];
1139
+ };
1138
1140
  };
1139
1141
  /** @description Decoded JWT payload for embed token responses. */
1140
1142
  EmbedTokenJwt: {
@@ -2240,8 +2242,8 @@ interface operations {
2240
2242
  };
2241
2243
  content: {
2242
2244
  "application/json": {
2243
- data?: components["schemas"]["Account"][];
2244
- meta?: components["schemas"]["Meta"];
2245
+ data: components["schemas"]["Account"][];
2246
+ meta: components["schemas"]["Meta"];
2245
2247
  };
2246
2248
  };
2247
2249
  };
@@ -2325,8 +2327,8 @@ interface operations {
2325
2327
  };
2326
2328
  content: {
2327
2329
  "application/json": {
2328
- data?: components["schemas"]["Charge"][];
2329
- meta?: components["schemas"]["Meta"];
2330
+ data: components["schemas"]["Charge"][];
2331
+ meta: components["schemas"]["Meta"];
2330
2332
  };
2331
2333
  };
2332
2334
  };
@@ -2414,8 +2416,8 @@ interface operations {
2414
2416
  };
2415
2417
  content: {
2416
2418
  "application/json": {
2417
- data?: components["schemas"]["Customer"][];
2418
- meta?: components["schemas"]["Meta"];
2419
+ data: components["schemas"]["Customer"][];
2420
+ meta: components["schemas"]["Meta"];
2419
2421
  };
2420
2422
  };
2421
2423
  };
@@ -2445,6 +2447,15 @@ interface operations {
2445
2447
  "application/json": components["schemas"]["Customer"];
2446
2448
  };
2447
2449
  };
2450
+ /** @description Unprocessable entity */
2451
+ 422: {
2452
+ headers: {
2453
+ [name: string]: unknown;
2454
+ };
2455
+ content: {
2456
+ "application/json": components["schemas"]["Error"];
2457
+ };
2458
+ };
2448
2459
  };
2449
2460
  };
2450
2461
  GetCustomer: {
@@ -2523,8 +2534,8 @@ interface operations {
2523
2534
  };
2524
2535
  content: {
2525
2536
  "application/json": {
2526
- data?: components["schemas"]["ExternalAccount"][];
2527
- meta?: components["schemas"]["Meta"];
2537
+ data: components["schemas"]["ExternalAccount"][];
2538
+ meta: components["schemas"]["Meta"];
2528
2539
  };
2529
2540
  };
2530
2541
  };
@@ -2555,6 +2566,15 @@ interface operations {
2555
2566
  "application/json": components["schemas"]["ExternalAccount"];
2556
2567
  };
2557
2568
  };
2569
+ /** @description Unprocessable entity */
2570
+ 422: {
2571
+ headers: {
2572
+ [name: string]: unknown;
2573
+ };
2574
+ content: {
2575
+ "application/json": components["schemas"]["Error"];
2576
+ };
2577
+ };
2558
2578
  };
2559
2579
  };
2560
2580
  GetExternalAccount: {
@@ -2606,6 +2626,15 @@ interface operations {
2606
2626
  "application/json": components["schemas"]["FileUpload"];
2607
2627
  };
2608
2628
  };
2629
+ /** @description Unprocessable entity */
2630
+ 422: {
2631
+ headers: {
2632
+ [name: string]: unknown;
2633
+ };
2634
+ content: {
2635
+ "application/json": components["schemas"]["Error"];
2636
+ };
2637
+ };
2609
2638
  };
2610
2639
  };
2611
2640
  GetFileUpload: {
@@ -2654,6 +2683,15 @@ interface operations {
2654
2683
  "application/json": components["schemas"]["FileDownload"];
2655
2684
  };
2656
2685
  };
2686
+ /** @description Unprocessable entity */
2687
+ 422: {
2688
+ headers: {
2689
+ [name: string]: unknown;
2690
+ };
2691
+ content: {
2692
+ "application/json": components["schemas"]["Error"];
2693
+ };
2694
+ };
2657
2695
  };
2658
2696
  };
2659
2697
  ListLegalEntityApplicationDocuments: {
@@ -2678,7 +2716,7 @@ interface operations {
2678
2716
  };
2679
2717
  content: {
2680
2718
  "application/json": {
2681
- data?: components["schemas"]["LegalEntityApplicationDocument"][];
2719
+ data: components["schemas"]["LegalEntityApplicationDocument"][];
2682
2720
  };
2683
2721
  };
2684
2722
  };
@@ -2747,7 +2785,8 @@ interface operations {
2747
2785
  };
2748
2786
  content: {
2749
2787
  "application/json": {
2750
- data?: components["schemas"]["LegalEntity"][];
2788
+ data: components["schemas"]["LegalEntity"][];
2789
+ meta: Record<string, never>;
2751
2790
  };
2752
2791
  };
2753
2792
  };
@@ -2801,6 +2840,15 @@ interface operations {
2801
2840
  "application/json": components["schemas"]["LegalEntityApplication"];
2802
2841
  };
2803
2842
  };
2843
+ /** @description Unprocessable entity */
2844
+ 422: {
2845
+ headers: {
2846
+ [name: string]: unknown;
2847
+ };
2848
+ content: {
2849
+ "application/json": components["schemas"]["Error"];
2850
+ };
2851
+ };
2804
2852
  };
2805
2853
  };
2806
2854
  GetLegalEntityApplication: {
@@ -2984,7 +3032,8 @@ interface operations {
2984
3032
  };
2985
3033
  content: {
2986
3034
  "application/json": {
2987
- data?: components["schemas"]["LegalEntityPrincipal"][];
3035
+ data: components["schemas"]["LegalEntityPrincipal"][];
3036
+ meta: Record<string, never>;
2988
3037
  };
2989
3038
  };
2990
3039
  };
@@ -3105,8 +3154,8 @@ interface operations {
3105
3154
  };
3106
3155
  content: {
3107
3156
  "application/json": {
3108
- data?: components["schemas"]["Merchant"][];
3109
- meta?: components["schemas"]["Meta"];
3157
+ data: components["schemas"]["Merchant"][];
3158
+ meta: components["schemas"]["Meta"];
3110
3159
  };
3111
3160
  };
3112
3161
  };
@@ -3160,8 +3209,8 @@ interface operations {
3160
3209
  };
3161
3210
  content: {
3162
3211
  "application/json": {
3163
- data?: components["schemas"]["Origin"][];
3164
- meta?: components["schemas"]["Meta"];
3212
+ data: components["schemas"]["Origin"][];
3213
+ meta: components["schemas"]["Meta"];
3165
3214
  };
3166
3215
  };
3167
3216
  };
@@ -3191,6 +3240,15 @@ interface operations {
3191
3240
  "application/json": components["schemas"]["Origin"];
3192
3241
  };
3193
3242
  };
3243
+ /** @description Unprocessable entity */
3244
+ 422: {
3245
+ headers: {
3246
+ [name: string]: unknown;
3247
+ };
3248
+ content: {
3249
+ "application/json": components["schemas"]["Error"];
3250
+ };
3251
+ };
3194
3252
  };
3195
3253
  };
3196
3254
  GetEmbedPaymentIntent: {
@@ -3247,6 +3305,15 @@ interface operations {
3247
3305
  "application/json": components["schemas"]["PaymentIntent"];
3248
3306
  };
3249
3307
  };
3308
+ /** @description Unprocessable entity */
3309
+ 422: {
3310
+ headers: {
3311
+ [name: string]: unknown;
3312
+ };
3313
+ content: {
3314
+ "application/json": components["schemas"]["Error"];
3315
+ };
3316
+ };
3250
3317
  };
3251
3318
  };
3252
3319
  ListPaymentIntents: {
@@ -3273,8 +3340,8 @@ interface operations {
3273
3340
  };
3274
3341
  content: {
3275
3342
  "application/json": {
3276
- data?: components["schemas"]["PaymentIntent"][];
3277
- meta?: components["schemas"]["Meta"];
3343
+ data: components["schemas"]["PaymentIntent"][];
3344
+ meta: components["schemas"]["Meta"];
3278
3345
  };
3279
3346
  };
3280
3347
  };
@@ -3305,6 +3372,15 @@ interface operations {
3305
3372
  "application/json": components["schemas"]["EmbedToken"];
3306
3373
  };
3307
3374
  };
3375
+ /** @description Unprocessable entity */
3376
+ 422: {
3377
+ headers: {
3378
+ [name: string]: unknown;
3379
+ };
3380
+ content: {
3381
+ "application/json": components["schemas"]["Error"];
3382
+ };
3383
+ };
3308
3384
  };
3309
3385
  };
3310
3386
  ListPaymentLinks: {
@@ -3331,8 +3407,8 @@ interface operations {
3331
3407
  };
3332
3408
  content: {
3333
3409
  "application/json": {
3334
- data?: components["schemas"]["PaymentLink"][];
3335
- meta?: components["schemas"]["Meta"];
3410
+ data: components["schemas"]["PaymentLink"][];
3411
+ meta: components["schemas"]["Meta"];
3336
3412
  };
3337
3413
  };
3338
3414
  };
@@ -3363,6 +3439,15 @@ interface operations {
3363
3439
  "application/json": components["schemas"]["PaymentLink"];
3364
3440
  };
3365
3441
  };
3442
+ /** @description Unprocessable entity */
3443
+ 422: {
3444
+ headers: {
3445
+ [name: string]: unknown;
3446
+ };
3447
+ content: {
3448
+ "application/json": components["schemas"]["Error"];
3449
+ };
3450
+ };
3366
3451
  };
3367
3452
  };
3368
3453
  GetPaymentIntent: {
@@ -3415,6 +3500,15 @@ interface operations {
3415
3500
  "application/json": components["schemas"]["PaymentIntent"];
3416
3501
  };
3417
3502
  };
3503
+ /** @description Unprocessable entity */
3504
+ 422: {
3505
+ headers: {
3506
+ [name: string]: unknown;
3507
+ };
3508
+ content: {
3509
+ "application/json": components["schemas"]["Error"];
3510
+ };
3511
+ };
3418
3512
  };
3419
3513
  };
3420
3514
  CapturePaymentIntent: {
@@ -3441,6 +3535,15 @@ interface operations {
3441
3535
  "application/json": components["schemas"]["PaymentIntent"];
3442
3536
  };
3443
3537
  };
3538
+ /** @description Unprocessable entity */
3539
+ 422: {
3540
+ headers: {
3541
+ [name: string]: unknown;
3542
+ };
3543
+ content: {
3544
+ "application/json": components["schemas"]["Error"];
3545
+ };
3546
+ };
3444
3547
  };
3445
3548
  };
3446
3549
  ListPaymentMethods: {
@@ -3468,8 +3571,8 @@ interface operations {
3468
3571
  };
3469
3572
  content: {
3470
3573
  "application/json": {
3471
- data?: components["schemas"]["PaymentMethod"][];
3472
- meta?: components["schemas"]["Meta"];
3574
+ data: components["schemas"]["PaymentMethod"][];
3575
+ meta: components["schemas"]["Meta"];
3473
3576
  };
3474
3577
  };
3475
3578
  };
@@ -3527,8 +3630,8 @@ interface operations {
3527
3630
  };
3528
3631
  content: {
3529
3632
  "application/json": {
3530
- data?: components["schemas"]["Payout"][];
3531
- meta?: components["schemas"]["Meta"];
3633
+ data: components["schemas"]["Payout"][];
3634
+ meta: components["schemas"]["Meta"];
3532
3635
  };
3533
3636
  };
3534
3637
  };
@@ -3673,8 +3776,8 @@ interface operations {
3673
3776
  };
3674
3777
  content: {
3675
3778
  "application/json": {
3676
- data?: components["schemas"]["ProcessorTransaction"][];
3677
- meta?: components["schemas"]["Meta"];
3779
+ data: components["schemas"]["ProcessorTransaction"][];
3780
+ meta: components["schemas"]["Meta"];
3678
3781
  };
3679
3782
  };
3680
3783
  };
@@ -3704,8 +3807,8 @@ interface operations {
3704
3807
  };
3705
3808
  content: {
3706
3809
  "application/json": {
3707
- data?: components["schemas"]["Product"][];
3708
- meta?: components["schemas"]["Meta"];
3810
+ data: components["schemas"]["Product"][];
3811
+ meta: components["schemas"]["Meta"];
3709
3812
  };
3710
3813
  };
3711
3814
  };
@@ -3814,8 +3917,8 @@ interface operations {
3814
3917
  };
3815
3918
  content: {
3816
3919
  "application/json": {
3817
- data?: components["schemas"]["Refund"][];
3818
- meta?: components["schemas"]["Meta"];
3920
+ data: components["schemas"]["Refund"][];
3921
+ meta: components["schemas"]["Meta"];
3819
3922
  };
3820
3923
  };
3821
3924
  };
@@ -3964,8 +4067,8 @@ interface operations {
3964
4067
  };
3965
4068
  content: {
3966
4069
  "application/json": {
3967
- data?: components["schemas"]["RenderTemplate"][];
3968
- meta?: components["schemas"]["Meta"];
4070
+ data: components["schemas"]["RenderTemplate"][];
4071
+ meta: components["schemas"]["Meta"];
3969
4072
  };
3970
4073
  };
3971
4074
  };
@@ -3995,6 +4098,15 @@ interface operations {
3995
4098
  "application/json": components["schemas"]["RenderTemplate"];
3996
4099
  };
3997
4100
  };
4101
+ /** @description Unprocessable entity */
4102
+ 422: {
4103
+ headers: {
4104
+ [name: string]: unknown;
4105
+ };
4106
+ content: {
4107
+ "application/json": components["schemas"]["Error"];
4108
+ };
4109
+ };
3998
4110
  };
3999
4111
  };
4000
4112
  GetRenderTemplate: {
@@ -4043,6 +4155,15 @@ interface operations {
4043
4155
  "application/json": components["schemas"]["RenderToken"];
4044
4156
  };
4045
4157
  };
4158
+ /** @description Unprocessable entity */
4159
+ 422: {
4160
+ headers: {
4161
+ [name: string]: unknown;
4162
+ };
4163
+ content: {
4164
+ "application/json": components["schemas"]["Error"];
4165
+ };
4166
+ };
4046
4167
  };
4047
4168
  };
4048
4169
  GetSetupIntent: {
@@ -4099,6 +4220,15 @@ interface operations {
4099
4220
  "application/json": components["schemas"]["SetupIntent"];
4100
4221
  };
4101
4222
  };
4223
+ /** @description Unprocessable entity */
4224
+ 422: {
4225
+ headers: {
4226
+ [name: string]: unknown;
4227
+ };
4228
+ content: {
4229
+ "application/json": components["schemas"]["Error"];
4230
+ };
4231
+ };
4102
4232
  };
4103
4233
  };
4104
4234
  CreateSetupIntent: {
@@ -4126,6 +4256,15 @@ interface operations {
4126
4256
  "application/json": components["schemas"]["EmbedToken"];
4127
4257
  };
4128
4258
  };
4259
+ /** @description Unprocessable entity */
4260
+ 422: {
4261
+ headers: {
4262
+ [name: string]: unknown;
4263
+ };
4264
+ content: {
4265
+ "application/json": components["schemas"]["Error"];
4266
+ };
4267
+ };
4129
4268
  };
4130
4269
  };
4131
4270
  ListSubscriptionPlans: {
@@ -4152,8 +4291,8 @@ interface operations {
4152
4291
  };
4153
4292
  content: {
4154
4293
  "application/json": {
4155
- data?: components["schemas"]["SubscriptionPlan"][];
4156
- meta?: components["schemas"]["Meta"];
4294
+ data: components["schemas"]["SubscriptionPlan"][];
4295
+ meta: components["schemas"]["Meta"];
4157
4296
  };
4158
4297
  };
4159
4298
  };
@@ -4184,6 +4323,15 @@ interface operations {
4184
4323
  "application/json": components["schemas"]["SubscriptionPlan"];
4185
4324
  };
4186
4325
  };
4326
+ /** @description Unprocessable entity */
4327
+ 422: {
4328
+ headers: {
4329
+ [name: string]: unknown;
4330
+ };
4331
+ content: {
4332
+ "application/json": components["schemas"]["Error"];
4333
+ };
4334
+ };
4187
4335
  };
4188
4336
  };
4189
4337
  GetSubscriptionPlan: {
@@ -4236,8 +4384,8 @@ interface operations {
4236
4384
  };
4237
4385
  content: {
4238
4386
  "application/json": {
4239
- data?: components["schemas"]["Subscription"][];
4240
- meta?: components["schemas"]["Meta"];
4387
+ data: components["schemas"]["Subscription"][];
4388
+ meta: components["schemas"]["Meta"];
4241
4389
  };
4242
4390
  };
4243
4391
  };
@@ -4268,6 +4416,15 @@ interface operations {
4268
4416
  "application/json": components["schemas"]["Subscription"];
4269
4417
  };
4270
4418
  };
4419
+ /** @description Unprocessable entity */
4420
+ 422: {
4421
+ headers: {
4422
+ [name: string]: unknown;
4423
+ };
4424
+ content: {
4425
+ "application/json": components["schemas"]["Error"];
4426
+ };
4427
+ };
4271
4428
  };
4272
4429
  };
4273
4430
  GetSubscription: {
@@ -4350,8 +4507,8 @@ interface operations {
4350
4507
  };
4351
4508
  content: {
4352
4509
  "application/json": {
4353
- data?: components["schemas"]["Void"][];
4354
- meta?: components["schemas"]["Meta"];
4510
+ data: components["schemas"]["Void"][];
4511
+ meta: components["schemas"]["Meta"];
4355
4512
  };
4356
4513
  };
4357
4514
  };
@@ -4475,8 +4632,8 @@ interface operations {
4475
4632
  };
4476
4633
  content: {
4477
4634
  "application/json": {
4478
- data?: components["schemas"]["WebhookAttempt"][];
4479
- meta?: components["schemas"]["Meta"];
4635
+ data: components["schemas"]["WebhookAttempt"][];
4636
+ meta: components["schemas"]["Meta"];
4480
4637
  };
4481
4638
  };
4482
4639
  };
@@ -4505,8 +4662,8 @@ interface operations {
4505
4662
  };
4506
4663
  content: {
4507
4664
  "application/json": {
4508
- data?: components["schemas"]["WebhookEndpoint"][];
4509
- meta?: components["schemas"]["Meta"];
4665
+ data: components["schemas"]["WebhookEndpoint"][];
4666
+ meta: components["schemas"]["Meta"];
4510
4667
  };
4511
4668
  };
4512
4669
  };
@@ -4536,6 +4693,15 @@ interface operations {
4536
4693
  "application/json": components["schemas"]["WebhookEndpoint"];
4537
4694
  };
4538
4695
  };
4696
+ /** @description Unprocessable entity */
4697
+ 422: {
4698
+ headers: {
4699
+ [name: string]: unknown;
4700
+ };
4701
+ content: {
4702
+ "application/json": components["schemas"]["Error"];
4703
+ };
4704
+ };
4539
4705
  };
4540
4706
  };
4541
4707
  GetWebhookEndpoint: {
@@ -4635,8 +4801,8 @@ interface operations {
4635
4801
  };
4636
4802
  content: {
4637
4803
  "application/json": {
4638
- data?: components["schemas"]["WebhookRequest"][];
4639
- meta?: components["schemas"]["Meta"];
4804
+ data: components["schemas"]["WebhookRequest"][];
4805
+ meta: components["schemas"]["Meta"];
4640
4806
  };
4641
4807
  };
4642
4808
  };
@@ -4663,6 +4829,15 @@ interface operations {
4663
4829
  };
4664
4830
  content?: never;
4665
4831
  };
4832
+ /** @description Unprocessable entity */
4833
+ 422: {
4834
+ headers: {
4835
+ [name: string]: unknown;
4836
+ };
4837
+ content: {
4838
+ "application/json": components["schemas"]["Error"];
4839
+ };
4840
+ };
4666
4841
  };
4667
4842
  };
4668
4843
  RetrieveWebhookRequest: {