@orvello/sdk 0.3.0 → 0.5.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/CONTRACT_SHA256 +1 -1
- package/README.md +18 -0
- package/dist/contract.cjs +191 -0
- package/dist/contract.cjs.map +1 -1
- package/dist/contract.d.cts +609 -3
- package/dist/contract.d.ts +609 -3
- package/dist/contract.js +191 -0
- package/dist/contract.js.map +1 -1
- package/dist/index.cjs +29 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +8 -4
- package/dist/index.d.ts +8 -4
- package/dist/index.js +29 -3
- package/dist/index.js.map +1 -1
- package/dist/openapi.json +1949 -200
- package/package.json +1 -1
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 = "
|
|
4
|
+
var CONTRACT_SHA256 = "02a65db9ad216d195f560a2e4f7cdd7a19a38814362b4c89551188796b017768";
|
|
5
5
|
|
|
6
6
|
// src/diagnose.ts
|
|
7
|
-
var SDK_VERSION = "0.
|
|
7
|
+
var SDK_VERSION = "0.5.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,7 +412,9 @@ 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_events_external": ["GET", "/invoices/external/:invoiceId/payment-events", "b", "unified_bearer", 3, ["invoices:read"]],
|
|
402
416
|
"invoices_payment_evidence_external": ["GET", "/invoices/external/:invoiceId/payment-evidence", "b", "unified_bearer", 1, ["invoices:read"]],
|
|
417
|
+
"invoices_payment_instructions_external": ["GET", "/invoices/external/:invoiceId/payment-instructions", "b", "unified_bearer", 1, ["invoices:read"]],
|
|
403
418
|
"invoices_payment_reconciliation": ["GET", "/invoices/:invoiceId/payment-reconciliation", "b", "frontend_permission_http", 1],
|
|
404
419
|
"invoices_pending_external": ["GET", "/invoices/external/pending", "b", "unified_bearer", 2, ["invoices:read"]],
|
|
405
420
|
"invoices_repair_pdf": ["POST", "/invoices/:invoiceId/repair-pdf", "b", "frontend_bearer_http", 1],
|
|
@@ -721,7 +736,7 @@ function buildPath(operationId, params) {
|
|
|
721
736
|
}
|
|
722
737
|
|
|
723
738
|
// src/capabilities.ts
|
|
724
|
-
var SDK_VERSION2 = "0.
|
|
739
|
+
var SDK_VERSION2 = "0.5.0" ;
|
|
725
740
|
var CLIENT_MANAGEMENT_OPS = [
|
|
726
741
|
"oauth2_external_clients_list",
|
|
727
742
|
"oauth2_external_clients_get",
|
|
@@ -1497,6 +1512,17 @@ var OrvelloClient = class _OrvelloClient {
|
|
|
1497
1512
|
}
|
|
1498
1513
|
// ── Invoices ─────────────────────────────────────────────────────────────
|
|
1499
1514
|
invoices = {
|
|
1515
|
+
/** Durable per-invoice replay. Commit the cursor with processing; re-read evidence before commerce actions. */
|
|
1516
|
+
getPaymentEvents: (id, query, options) => this.request(`/invoices/external/${id}/payment-events`, {
|
|
1517
|
+
method: "GET",
|
|
1518
|
+
query,
|
|
1519
|
+
...options
|
|
1520
|
+
}),
|
|
1521
|
+
/** Frozen recipient and reference; historical invoices without a snapshot return 409. */
|
|
1522
|
+
getPaymentInstructions: (id, options) => this.request(`/invoices/external/${id}/payment-instructions`, {
|
|
1523
|
+
method: "GET",
|
|
1524
|
+
...options
|
|
1525
|
+
}),
|
|
1500
1526
|
/** Bank evidence, distinct from accounting status; this never initiates a bank call. */
|
|
1501
1527
|
getPaymentEvidence: (id, options) => this.request(`/invoices/external/${id}/payment-evidence`, {
|
|
1502
1528
|
method: "GET",
|