@orvello/sdk 0.2.4 → 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 = "bfd85f17c2aa38bf82c759d02eefaecde34d402f7704d074e5fcdc8cb35c3990";
4
+ var CONTRACT_SHA256 = "c3f121a094268542856384510d880bbd65a13b5b242c38e017ad5f622e3b30e2";
5
5
 
6
6
  // src/diagnose.ts
7
- var SDK_VERSION = "0.2.4" ;
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],
@@ -399,6 +412,8 @@ var ROUTE_INDEX = {
399
412
  "invoices_list_overdue": ["GET", "/invoices/overdue", "b", "frontend_permission_http", 2],
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"]],
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"]],
402
417
  "invoices_payment_reconciliation": ["GET", "/invoices/:invoiceId/payment-reconciliation", "b", "frontend_permission_http", 1],
403
418
  "invoices_pending_external": ["GET", "/invoices/external/pending", "b", "unified_bearer", 2, ["invoices:read"]],
404
419
  "invoices_repair_pdf": ["POST", "/invoices/:invoiceId/repair-pdf", "b", "frontend_bearer_http", 1],
@@ -720,7 +735,7 @@ function buildPath(operationId, params) {
720
735
  }
721
736
 
722
737
  // src/capabilities.ts
723
- var SDK_VERSION2 = "0.2.4" ;
738
+ var SDK_VERSION2 = "0.4.0" ;
724
739
  var CLIENT_MANAGEMENT_OPS = [
725
740
  "oauth2_external_clients_list",
726
741
  "oauth2_external_clients_get",
@@ -1496,6 +1511,16 @@ var OrvelloClient = class _OrvelloClient {
1496
1511
  }
1497
1512
  // ── Invoices ─────────────────────────────────────────────────────────────
1498
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
+ }),
1519
+ /** Bank evidence, distinct from accounting status; this never initiates a bank call. */
1520
+ getPaymentEvidence: (id, options) => this.request(`/invoices/external/${id}/payment-evidence`, {
1521
+ method: "GET",
1522
+ ...options
1523
+ }),
1499
1524
  search: (query, options) => this.request("/invoices/external", {
1500
1525
  method: "GET",
1501
1526
  query,