@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/index.cjs CHANGED
@@ -1,10 +1,10 @@
1
1
  'use strict';
2
2
 
3
3
  // src/contract-hash.ts
4
- var CONTRACT_SHA256 = "eb64699e8b371644f2a18619fdd4c65055683b270c6c92577cf8e0df8716d2ca";
4
+ var CONTRACT_SHA256 = "c3f121a094268542856384510d880bbd65a13b5b242c38e017ad5f622e3b30e2";
5
5
 
6
6
  // src/diagnose.ts
7
- var SDK_VERSION = "0.3.0" ;
7
+ var SDK_VERSION = "0.4.0" ;
8
8
  function normalizeBaseUrl(raw) {
9
9
  const trimmed = raw.trim();
10
10
  if (!trimmed) throw new Error("Base URL cannot be empty");
@@ -201,10 +201,23 @@ var ROUTE_INDEX = {
201
201
  "auth_login": ["POST", "/auth/login", "n", "public", 4],
202
202
  "auth_logout": ["POST", "/auth/logout", "n", "public", 4],
203
203
  "auth_me": ["GET", "/auth/me", "b", "frontend_bearer_http", 2],
204
+ "auth_me_email_patch": ["PATCH", "/auth/me/email", "b", "frontend_bearer_http", 4],
204
205
  "auth_me_profile_update": ["PATCH", "/auth/me/profile", "b", "frontend_bearer_http", 4],
206
+ "auth_mfa_complete": ["POST", "/auth/mfa/complete", "n", "public", 4],
207
+ "auth_mfa_disable": ["POST", "/auth/mfa/disable", "b", "frontend_bearer_http", 4],
208
+ "auth_mfa_enable": ["POST", "/auth/mfa/enable", "b", "frontend_bearer_http", 4],
209
+ "auth_mfa_setup": ["POST", "/auth/mfa/setup", "b", "frontend_bearer_http", 4],
210
+ "auth_mfa_status": ["GET", "/auth/mfa", "b", "frontend_bearer_http", 2],
211
+ "auth_password_change": ["POST", "/auth/password/change", "b", "frontend_bearer_http", 4],
212
+ "auth_password_reset_confirm": ["POST", "/auth/password/reset/confirm", "n", "public", 4],
213
+ "auth_password_reset_landing": ["GET", "/auth/password/reset", "n", "public", 2],
214
+ "auth_password_reset_request": ["POST", "/auth/password/reset/request", "n", "public", 4],
205
215
  "auth_push_token_upsert": ["POST", "/auth/push-token", "b", "frontend_bearer_http", 4],
206
216
  "auth_refresh": ["POST", "/auth/refresh", "n", "public", 4],
207
217
  "auth_register": ["POST", "/auth/register", "n", "public", 4],
218
+ "auth_sessions_list": ["GET", "/auth/sessions", "b", "frontend_bearer_http", 2],
219
+ "auth_sessions_revoke": ["DELETE", "/auth/sessions/:sessionId", "b", "frontend_bearer_http", 1],
220
+ "auth_sessions_revoke_other": ["POST", "/auth/sessions/revoke-other", "b", "frontend_bearer_http", 4],
208
221
  "auth_verify_email_confirm": ["POST", "/auth/verify-email/confirm", "n", "public", 4],
209
222
  "auth_verify_email_landing": ["GET", "/auth/verify-email", "n", "public", 2],
210
223
  "auth_verify_email_request": ["POST", "/auth/verify-email/request", "b", "frontend_bearer_http", 4],
@@ -400,6 +413,7 @@ var ROUTE_INDEX = {
400
413
  "invoices_list_pending": ["GET", "/invoices/pending", "b", "frontend_permission_http", 2],
401
414
  "invoices_overdue_external": ["GET", "/invoices/external/overdue", "b", "unified_bearer", 2, ["invoices:read"]],
402
415
  "invoices_payment_evidence_external": ["GET", "/invoices/external/:invoiceId/payment-evidence", "b", "unified_bearer", 1, ["invoices:read"]],
416
+ "invoices_payment_instructions_external": ["GET", "/invoices/external/:invoiceId/payment-instructions", "b", "unified_bearer", 1, ["invoices:read"]],
403
417
  "invoices_payment_reconciliation": ["GET", "/invoices/:invoiceId/payment-reconciliation", "b", "frontend_permission_http", 1],
404
418
  "invoices_pending_external": ["GET", "/invoices/external/pending", "b", "unified_bearer", 2, ["invoices:read"]],
405
419
  "invoices_repair_pdf": ["POST", "/invoices/:invoiceId/repair-pdf", "b", "frontend_bearer_http", 1],
@@ -721,7 +735,7 @@ function buildPath(operationId, params) {
721
735
  }
722
736
 
723
737
  // src/capabilities.ts
724
- var SDK_VERSION2 = "0.3.0" ;
738
+ var SDK_VERSION2 = "0.4.0" ;
725
739
  var CLIENT_MANAGEMENT_OPS = [
726
740
  "oauth2_external_clients_list",
727
741
  "oauth2_external_clients_get",
@@ -1497,6 +1511,11 @@ var OrvelloClient = class _OrvelloClient {
1497
1511
  }
1498
1512
  // ── Invoices ─────────────────────────────────────────────────────────────
1499
1513
  invoices = {
1514
+ /** Frozen recipient and reference; historical invoices without a snapshot return 409. */
1515
+ getPaymentInstructions: (id, options) => this.request(`/invoices/external/${id}/payment-instructions`, {
1516
+ method: "GET",
1517
+ ...options
1518
+ }),
1500
1519
  /** Bank evidence, distinct from accounting status; this never initiates a bank call. */
1501
1520
  getPaymentEvidence: (id, options) => this.request(`/invoices/external/${id}/payment-evidence`, {
1502
1521
  method: "GET",