@orvello/sdk 0.3.0 → 0.4.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.
package/dist/contract.js CHANGED
@@ -392,6 +392,70 @@ var apiRoutes_app_info = {
392
392
 
393
393
  // src/generated/api/base/routes.auth.ts
394
394
  var apiRoutes_auth = {
395
+ // Contract source: explicit
396
+ "auth_mfa_complete": {
397
+ method: "POST",
398
+ path: "/auth/mfa/complete",
399
+ auth: { "type": "public" },
400
+ meta: {
401
+ tags: ["auth"],
402
+ summary: "Complete a first-factor login with TOTP or a recovery code",
403
+ bodyContentType: "application/json",
404
+ validated: { "params": false, "query": false, "body": true }
405
+ },
406
+ types: null
407
+ },
408
+ // Contract source: explicit
409
+ "auth_mfa_status": {
410
+ method: "GET",
411
+ path: "/auth/mfa",
412
+ auth: { "type": "frontend_bearer_http" },
413
+ meta: {
414
+ tags: ["auth"],
415
+ summary: "Read the current product account's MFA status",
416
+ validated: { "params": false, "query": true, "body": false }
417
+ },
418
+ types: null
419
+ },
420
+ // Contract source: explicit
421
+ "auth_mfa_setup": {
422
+ method: "POST",
423
+ path: "/auth/mfa/setup",
424
+ auth: { "type": "frontend_bearer_http" },
425
+ meta: {
426
+ tags: ["auth"],
427
+ summary: "Prepare TOTP enrollment after rechecking the password",
428
+ bodyContentType: "application/json",
429
+ validated: { "params": false, "query": false, "body": true }
430
+ },
431
+ types: null
432
+ },
433
+ // Contract source: explicit
434
+ "auth_mfa_enable": {
435
+ method: "POST",
436
+ path: "/auth/mfa/enable",
437
+ auth: { "type": "frontend_bearer_http" },
438
+ meta: {
439
+ tags: ["auth"],
440
+ summary: "Confirm TOTP enrollment and return recovery codes once",
441
+ bodyContentType: "application/json",
442
+ validated: { "params": false, "query": false, "body": true }
443
+ },
444
+ types: null
445
+ },
446
+ // Contract source: explicit
447
+ "auth_mfa_disable": {
448
+ method: "POST",
449
+ path: "/auth/mfa/disable",
450
+ auth: { "type": "frontend_bearer_http" },
451
+ meta: {
452
+ tags: ["auth"],
453
+ summary: "Disable MFA using both the password and a second factor",
454
+ bodyContentType: "application/json",
455
+ validated: { "params": false, "query": false, "body": true }
456
+ },
457
+ types: null
458
+ },
395
459
  // Contract source: explicit
396
460
  "auth_register": {
397
461
  method: "POST",
@@ -519,6 +583,107 @@ var apiRoutes_auth = {
519
583
  validated: { "params": false, "query": true, "body": false }
520
584
  },
521
585
  types: null
586
+ },
587
+ // Contract source: explicit
588
+ "auth_me_email_patch": {
589
+ method: "PATCH",
590
+ path: "/auth/me/email",
591
+ auth: { "type": "frontend_bearer_http" },
592
+ meta: {
593
+ tags: ["auth"],
594
+ summary: "Change current user's email after password confirmation",
595
+ bodyContentType: "application/json",
596
+ validated: { "params": false, "query": false, "body": true }
597
+ },
598
+ types: null
599
+ },
600
+ // Contract source: explicit
601
+ "auth_password_change": {
602
+ method: "POST",
603
+ path: "/auth/password/change",
604
+ auth: { "type": "frontend_bearer_http" },
605
+ meta: {
606
+ tags: ["auth"],
607
+ summary: "Change password for the current user",
608
+ bodyContentType: "application/json",
609
+ validated: { "params": false, "query": false, "body": true }
610
+ },
611
+ types: null
612
+ },
613
+ // Contract source: explicit
614
+ "auth_password_reset_request": {
615
+ method: "POST",
616
+ path: "/auth/password/reset/request",
617
+ auth: { "type": "public" },
618
+ meta: {
619
+ tags: ["auth"],
620
+ summary: "Request a password reset email",
621
+ bodyContentType: "application/json",
622
+ validated: { "params": false, "query": false, "body": true }
623
+ },
624
+ types: null
625
+ },
626
+ // Contract source: explicit
627
+ "auth_password_reset_confirm": {
628
+ method: "POST",
629
+ path: "/auth/password/reset/confirm",
630
+ auth: { "type": "public" },
631
+ meta: {
632
+ tags: ["auth"],
633
+ summary: "Reset password with an email token",
634
+ bodyContentType: "application/json",
635
+ validated: { "params": false, "query": false, "body": true }
636
+ },
637
+ types: null
638
+ },
639
+ // Contract source: explicit
640
+ "auth_password_reset_landing": {
641
+ method: "GET",
642
+ path: "/auth/password/reset",
643
+ auth: { "type": "public" },
644
+ meta: {
645
+ tags: ["auth"],
646
+ summary: "Browser landing page for password reset links",
647
+ validated: { "params": false, "query": true, "body": false }
648
+ },
649
+ types: null
650
+ },
651
+ // Contract source: explicit
652
+ "auth_sessions_list": {
653
+ method: "GET",
654
+ path: "/auth/sessions",
655
+ auth: { "type": "frontend_bearer_http" },
656
+ meta: {
657
+ tags: ["auth"],
658
+ summary: "List active refresh-token sessions for the current user",
659
+ validated: { "params": false, "query": true, "body": false }
660
+ },
661
+ types: null
662
+ },
663
+ // Contract source: explicit
664
+ "auth_sessions_revoke": {
665
+ method: "DELETE",
666
+ path: "/auth/sessions/:sessionId",
667
+ auth: { "type": "frontend_bearer_http" },
668
+ meta: {
669
+ tags: ["auth"],
670
+ summary: "Revoke one active session",
671
+ validated: { "params": true, "query": false, "body": false }
672
+ },
673
+ types: null
674
+ },
675
+ // Contract source: explicit
676
+ "auth_sessions_revoke_other": {
677
+ method: "POST",
678
+ path: "/auth/sessions/revoke-other",
679
+ auth: { "type": "frontend_bearer_http" },
680
+ meta: {
681
+ tags: ["auth"],
682
+ summary: "Revoke all sessions except the supplied current refresh token",
683
+ bodyContentType: "application/json",
684
+ validated: { "params": false, "query": false, "body": true }
685
+ },
686
+ types: null
522
687
  }
523
688
  };
524
689
 
@@ -3723,6 +3888,19 @@ var apiRoutes_invoices_external = {
3723
3888
  types: null
3724
3889
  },
3725
3890
  // Contract source: explicit
3891
+ "invoices_payment_instructions_external": {
3892
+ method: "GET",
3893
+ path: "/invoices/external/:invoiceId/payment-instructions",
3894
+ auth: { "type": "unified_bearer", "allowUserSession": false, "allowOAuth2": true, "allowApiKey": true, "requireRole": "viewer", "scopes": ["invoices:read"] },
3895
+ meta: {
3896
+ tags: ["invoices-external"],
3897
+ summary: "Read immutable bank payment instructions",
3898
+ description: "Reference and recipient frozen on first issue. Decimal amount is a string. Historical invoices without a snapshot return 409; no reference is created by reading. This is not evidence of payment or permission to provision.",
3899
+ validated: { "params": true, "query": false, "body": false }
3900
+ },
3901
+ types: null
3902
+ },
3903
+ // Contract source: explicit
3726
3904
  "invoices_search_external": {
3727
3905
  method: "GET",
3728
3906
  path: "/invoices/external",