@faiber/faiber-payment 0.24.0 → 1.0.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/README.md +23 -4
- package/dist/.tsbuildinfo +1 -1
- package/dist/contracts.types.d.ts +9 -8
- package/dist/contracts.types.d.ts.map +1 -1
- package/dist/index.d.ts +46 -15
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +36 -4
- package/dist/index.js.map +1 -1
- package/dist/operations.d.ts +153 -137
- package/dist/operations.d.ts.map +1 -1
- package/dist/operations.js +125 -105
- package/dist/operations.js.map +1 -1
- package/dist/operations.types.d.ts +45 -402
- package/dist/operations.types.d.ts.map +1 -1
- package/dist/types.d.ts +207 -35
- package/dist/types.d.ts.map +1 -1
- package/package.json +4 -3
- package/provenance.json +27 -0
package/dist/operations.js
CHANGED
|
@@ -1,371 +1,391 @@
|
|
|
1
1
|
import { ServiceApi, urlEncoded } from "@faiber/sdk-core";
|
|
2
2
|
export class PaymentOperations extends ServiceApi {
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
4
|
+
* Read process version with required status/message/data at HTTP 200. Does not probe database, broker or provider readiness.
|
|
5
|
+
* Calls `GET /` through the shared IDP-aware Faiber client.
|
|
6
|
+
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
7
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
8
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: No local handler permission check; configured credentials still use shared FaiberClient. Production ingress authority is separately verified.
|
|
9
|
+
*/
|
|
10
|
+
routerRootStatusGet(options) {
|
|
11
|
+
return this.client.request({ ...options, method: "GET", url: `/` });
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Read raw Utoipa OpenAPI JSON at HTTP 200, without envelope. Annotations omit mounted routes and do not establish complete endpoint coverage.
|
|
5
15
|
* Calls `GET /api/openapi.json` through the shared IDP-aware Faiber client.
|
|
6
16
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
7
|
-
* @returns The complete Axios response, including the typed
|
|
8
|
-
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission:
|
|
17
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
18
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: No local handler permission check; configured credentials still use shared FaiberClient. Production ingress authority is separately verified.
|
|
9
19
|
*/
|
|
10
20
|
routerOpenapiJsonGet(options) {
|
|
11
21
|
return this.client.request({ ...options, method: "GET", url: `/api/openapi.json` });
|
|
12
22
|
}
|
|
13
23
|
/**
|
|
14
|
-
*
|
|
24
|
+
* Read ingress-derived user UUID, roles and permissions at HTTP 200. Requires a non-nil authenticated user; missing identity returns 401.
|
|
15
25
|
* Calls `GET /api/v1/auth/self` through the shared IDP-aware Faiber client.
|
|
16
26
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
17
|
-
* @returns The complete Axios response, including the typed
|
|
18
|
-
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission:
|
|
27
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
28
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: Authenticated non-nil IDP user; authenticated session; no additional permission (payment: prefix, * and payment:* accepted). Bearer/secure cookies use shared FaiberClient; ingress must authenticate and strip forwarded identity headers.
|
|
19
29
|
*/
|
|
20
30
|
sessionGetSelfGet(options) {
|
|
21
31
|
return this.client.request({ ...options, method: "GET", url: `/api/v1/auth/self` });
|
|
22
32
|
}
|
|
23
33
|
/**
|
|
24
|
-
*
|
|
34
|
+
* List gateways ordered by ascending priority. Exact active/inactive status filter; invalid status is ignored. Bracket pagination defaults 1/20, page floors at 1 and size clamps 1..100. Returns a nested page at HTTP 200.
|
|
25
35
|
* Calls `GET /api/v1/gateways` through the shared IDP-aware Faiber client.
|
|
26
36
|
* @param params Typed query parameters; omitted members retain backend defaults.
|
|
27
37
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
28
|
-
* @returns The complete Axios response, including the typed
|
|
29
|
-
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: admin:gateway:read.
|
|
38
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
39
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: Authenticated non-nil IDP user; admin:gateway:read (payment: prefix, * and payment:* accepted). Bearer/secure cookies use shared FaiberClient; ingress must authenticate and strip forwarded identity headers.
|
|
30
40
|
*/
|
|
31
41
|
gatewayIndexGet(params, options) {
|
|
32
42
|
return this.client.request({ ...options, method: "GET", url: `/api/v1/gateways`, params });
|
|
33
43
|
}
|
|
34
44
|
/**
|
|
35
|
-
*
|
|
45
|
+
* Create gateway at HTTP 200. provider must be zarinpal/parsian/aqayepardakht/mock (422 otherwise); priority is i16, default 0. Absent/null/invalid status becomes inactive. Options are encrypted; explicit sandbox is stored in options. Non-Zarinpal sandbox response is null.
|
|
36
46
|
* Calls `POST /api/v1/gateways` through the shared IDP-aware Faiber client.
|
|
37
47
|
* @param data Typed JSON request body.
|
|
38
48
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
39
|
-
* @returns The complete Axios response, including the typed
|
|
40
|
-
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: admin:gateway:create.
|
|
49
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
50
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: Authenticated non-nil IDP user; admin:gateway:create (payment: prefix, * and payment:* accepted). Bearer/secure cookies use shared FaiberClient; ingress must authenticate and strip forwarded identity headers.
|
|
41
51
|
*/
|
|
42
52
|
gatewayStorePost(data, options) {
|
|
43
53
|
return this.client.request({ ...options, method: "POST", url: `/api/v1/gateways`, data: data });
|
|
44
54
|
}
|
|
45
55
|
/**
|
|
46
|
-
*
|
|
56
|
+
* Hard-delete integer gateway ID and return the removed gateway record at HTTP 200; missing ID returns 404. This is a record envelope, not a boolean or empty response.
|
|
47
57
|
* Calls `DELETE /api/v1/gateways/{id}` through the shared IDP-aware Faiber client.
|
|
48
58
|
* @param id Backend path identifier `id`.
|
|
49
59
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
50
|
-
* @returns The complete Axios response, including the typed
|
|
51
|
-
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: admin:gateway:delete.
|
|
60
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
61
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: Authenticated non-nil IDP user; admin:gateway:delete (payment: prefix, * and payment:* accepted). Bearer/secure cookies use shared FaiberClient; ingress must authenticate and strip forwarded identity headers.
|
|
52
62
|
*/
|
|
53
63
|
gatewayDestroyDelete(id, options) {
|
|
54
64
|
return this.client.request({ ...options, method: "DELETE", url: `/api/v1/gateways/${encodeURIComponent(id)}` });
|
|
55
65
|
}
|
|
56
66
|
/**
|
|
57
|
-
*
|
|
67
|
+
* Read integer gateway ID; missing ID returns 404. Response options may contain encrypted values; do not copy them into credential editing fields.
|
|
58
68
|
* Calls `GET /api/v1/gateways/{id}` through the shared IDP-aware Faiber client.
|
|
59
69
|
* @param id Backend path identifier `id`.
|
|
60
70
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
61
|
-
* @returns The complete Axios response, including the typed
|
|
62
|
-
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: admin:gateway:read.
|
|
71
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
72
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: Authenticated non-nil IDP user; admin:gateway:read (payment: prefix, * and payment:* accepted). Bearer/secure cookies use shared FaiberClient; ingress must authenticate and strip forwarded identity headers.
|
|
63
73
|
*/
|
|
64
74
|
gatewayShowGet(id, options) {
|
|
65
75
|
return this.client.request({ ...options, method: "GET", url: `/api/v1/gateways/${encodeURIComponent(id)}` });
|
|
66
76
|
}
|
|
67
77
|
/**
|
|
68
|
-
*
|
|
78
|
+
* Update integer gateway ID at HTTP 200; missing ID returns 404, invalid provider returns 422. Absent/null fields preserve existing values, invalid status is ignored; options replace supplied map and sandbox merges into it.
|
|
69
79
|
* Calls `PATCH /api/v1/gateways/{id}` through the shared IDP-aware Faiber client.
|
|
70
80
|
* @param id Backend path identifier `id`.
|
|
71
81
|
* @param data Typed JSON request body.
|
|
72
82
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
73
|
-
* @returns The complete Axios response, including the typed
|
|
74
|
-
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: admin:gateway:update.
|
|
83
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
84
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: Authenticated non-nil IDP user; admin:gateway:update (payment: prefix, * and payment:* accepted). Bearer/secure cookies use shared FaiberClient; ingress must authenticate and strip forwarded identity headers.
|
|
75
85
|
*/
|
|
76
86
|
gatewayUpdatePatch(id, data, options) {
|
|
77
87
|
return this.client.request({ ...options, method: "PATCH", url: `/api/v1/gateways/${encodeURIComponent(id)}`, data: data });
|
|
78
88
|
}
|
|
79
89
|
/**
|
|
80
|
-
*
|
|
90
|
+
* Read provider/status label-value arrays at HTTP 200; no pagination.
|
|
81
91
|
* Calls `GET /api/v1/gateways/options` through the shared IDP-aware Faiber client.
|
|
82
92
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
83
|
-
* @returns The complete Axios response, including the typed
|
|
84
|
-
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: admin:gateway:read.
|
|
93
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
94
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: Authenticated non-nil IDP user; admin:gateway:read (payment: prefix, * and payment:* accepted). Bearer/secure cookies use shared FaiberClient; ingress must authenticate and strip forwarded identity headers.
|
|
85
95
|
*/
|
|
86
96
|
gatewayOptionsGet(options) {
|
|
87
97
|
return this.client.request({ ...options, method: "GET", url: `/api/v1/gateways/options` });
|
|
88
98
|
}
|
|
89
99
|
/**
|
|
90
|
-
*
|
|
100
|
+
* Inspect active production gateway credentials at HTTP 200 without creating a purchase. May call Zarinpal credential verification; configured differs from providerVerified and non-Zarinpal providers require manual verification. Database/provider-client setup failure returns 500.
|
|
91
101
|
* Calls `POST /api/v1/gateways/setup-check` through the shared IDP-aware Faiber client.
|
|
92
102
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
93
|
-
* @returns The complete Axios response, including the typed
|
|
94
|
-
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: admin:gateway:read.
|
|
103
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
104
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: Authenticated non-nil IDP user; admin:gateway:read (payment: prefix, * and payment:* accepted). Bearer/secure cookies use shared FaiberClient; ingress must authenticate and strip forwarded identity headers.
|
|
95
105
|
*/
|
|
96
106
|
gatewaySetupCheckPost(options) {
|
|
97
107
|
return this.client.request({ ...options, method: "POST", url: `/api/v1/gateways/setup-check` });
|
|
98
108
|
}
|
|
99
109
|
/**
|
|
100
|
-
*
|
|
110
|
+
* Read HTTP integration queue/base URL hints, event fields and SDK code snippets. Absent optional direct metadata members are omitted (never null). HTTP 200 does not verify broker/provider connectivity.
|
|
101
111
|
* Calls `GET /api/v1/integration/docs` through the shared IDP-aware Faiber client.
|
|
102
112
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
103
|
-
* @returns The complete Axios response, including the typed
|
|
104
|
-
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: admin:integration:read.
|
|
113
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
114
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: Declared IDP permission admin:integration:read; no native auth/permission gate in this handler. Production ingress enforcement must be verified.
|
|
105
115
|
*/
|
|
106
116
|
integrationIntegrationDocsShowGet(options) {
|
|
107
117
|
return this.client.request({ ...options, method: "GET", url: `/api/v1/integration/docs` });
|
|
108
118
|
}
|
|
109
119
|
/**
|
|
110
|
-
*
|
|
120
|
+
* Read concrete flow integration queue and event payload field metadata at HTTP 200; no broker readiness probe.
|
|
111
121
|
* Calls `GET /api/v1/integration/flow` through the shared IDP-aware Faiber client.
|
|
112
122
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
113
|
-
* @returns The complete Axios response, including the typed
|
|
114
|
-
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission:
|
|
123
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
124
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: No local handler permission check; configured credentials still use shared FaiberClient. Production ingress authority is separately verified.
|
|
115
125
|
*/
|
|
116
126
|
integrationFlowIntegrationShowGet(options) {
|
|
117
127
|
return this.client.request({ ...options, method: "GET", url: `/api/v1/integration/flow` });
|
|
118
128
|
}
|
|
119
129
|
/**
|
|
120
|
-
*
|
|
130
|
+
* Read available/sandbox booleans for configured 2Done callback routing at HTTP 200. Availability is routing availability, not successful settlement or live-provider proof.
|
|
121
131
|
* Calls `GET /api/v1/internal/2done/availability` through the shared IDP-aware Faiber client.
|
|
122
132
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
123
|
-
* @returns The complete Axios response, including the typed
|
|
124
|
-
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: server
|
|
133
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
134
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: Trusted server Bearer token matching PRODUCT_PAYMENT_SERVICE_TOKEN (minimum configured length 32); 401 mismatch, 503 missing configuration.
|
|
125
135
|
*/
|
|
126
136
|
productPlansAvailabilityGet(options) {
|
|
127
137
|
return this.client.request({ ...options, method: "GET", url: `/api/v1/internal/2done/availability` });
|
|
128
138
|
}
|
|
129
139
|
/**
|
|
130
|
-
*
|
|
140
|
+
* Create trusted 2Done subscription link at HTTP 200. service_name=2done, service_model=2done_subscription, UUID service_id, idempotency_key=2done:{order}, configured origin callback /app/plans?order={order}; amount 10..20000000 divisible by 10. Invalid order returns 422; mismatched contract returns 403; idempotency conflict returns 409.
|
|
131
141
|
* Calls `POST /api/v1/internal/2done/payment` through the shared IDP-aware Faiber client.
|
|
132
142
|
* @param data Typed JSON request body.
|
|
133
143
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
134
|
-
* @returns The complete Axios response, including the typed
|
|
135
|
-
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission:
|
|
144
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
145
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: Trusted server Bearer PRODUCT_PAYMENT_SERVICE_TOKEN; 401 mismatch, 503 missing configuration.
|
|
136
146
|
*/
|
|
137
147
|
productPlansCreatePost(data, options) {
|
|
138
148
|
return this.client.request({ ...options, method: "POST", url: `/api/v1/internal/2done/payment`, data: data });
|
|
139
149
|
}
|
|
140
150
|
/**
|
|
141
|
-
*
|
|
151
|
+
* Read transaction receipt by UUID at HTTP 200; requires stored 2done/2done_subscription ownership. Missing transaction returns 404, different product returns 403. Retains nullable database fields; receipt alone does not verify current provider settlement.
|
|
142
152
|
* Calls `GET /api/v1/internal/2done/transactions/{id}` through the shared IDP-aware Faiber client.
|
|
143
153
|
* @param id Backend path identifier `id`.
|
|
144
154
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
145
|
-
* @returns The complete Axios response, including the typed
|
|
146
|
-
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: server
|
|
155
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
156
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: Trusted server Bearer PRODUCT_PAYMENT_SERVICE_TOKEN; 401 mismatch, 503 missing configuration.
|
|
147
157
|
*/
|
|
148
158
|
productPlansReceiptGet(id, options) {
|
|
149
159
|
return this.client.request({ ...options, method: "GET", url: `/api/v1/internal/2done/transactions/${encodeURIComponent(id)}` });
|
|
150
160
|
}
|
|
151
161
|
/**
|
|
152
|
-
*
|
|
162
|
+
* Read raw IRR purchase receipt by purchase UUID (not transaction UUID), using asset:purchase:{id}. Requires asset and topup/subscription/plan/points_pack; wrong ownership/model or nonlive provider returns 409, missing receipt 404, unavailable verification 503. May call provider.verify; status is pending/accepted/rejected and providerVerified is false while pending.
|
|
153
163
|
* Calls `GET /api/v1/internal/asset/purchases/{id}` through the shared IDP-aware Faiber client.
|
|
154
164
|
* @param id Backend path identifier `id`.
|
|
155
165
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
156
|
-
* @returns The complete Axios response, including the typed
|
|
157
|
-
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: server-
|
|
166
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
167
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: Trusted server x-asset-payment-token matching ASSET_PAYMENT_TOKEN; 401 mismatch, 503 missing configuration.
|
|
158
168
|
*/
|
|
159
169
|
assetCheckoutReceiptGet(id, options) {
|
|
160
170
|
return this.client.request({ ...options, method: "GET", url: `/api/v1/internal/asset/purchases/${encodeURIComponent(id)}` });
|
|
161
171
|
}
|
|
162
172
|
/**
|
|
163
|
-
*
|
|
173
|
+
* Create trusted fitness link at HTTP 200 with positive amount, UUID service_id, configured project service_name, service_model=fitness_order and idempotency_key=fitness:{order}. Advisory lock serializes order creation; gateway must meet live or project-scoped sandbox opt-in policy. Invalid order/amount returns 422; contract mismatch 403; unsuitable provider 503.
|
|
164
174
|
* Calls `POST /api/v1/internal/fitness/payment` through the shared IDP-aware Faiber client.
|
|
165
175
|
* @param data Typed JSON request body.
|
|
166
176
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
167
|
-
* @returns The complete Axios response, including the typed
|
|
168
|
-
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission:
|
|
177
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
178
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: Trusted server Bearer FITNESS_PROFILE_SERVICE_TOKEN; 401 mismatch, 503 missing configuration.
|
|
169
179
|
*/
|
|
170
180
|
fitnessCreatePost(data, options) {
|
|
171
181
|
return this.client.request({ ...options, method: "POST", url: `/api/v1/internal/fitness/payment`, data: data });
|
|
172
182
|
}
|
|
173
183
|
/**
|
|
174
|
-
*
|
|
184
|
+
* Read configured fitness project receipt by transaction UUID at HTTP 200. Missing transaction returns 404, wrong project/model 403; gateway must satisfy live or explicit sandbox policy (503 otherwise). Nullable transaction fields remain present.
|
|
175
185
|
* Calls `GET /api/v1/internal/fitness/transactions/{id}` through the shared IDP-aware Faiber client.
|
|
176
186
|
* @param id Backend path identifier `id`.
|
|
177
187
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
178
|
-
* @returns The complete Axios response, including the typed
|
|
179
|
-
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: server
|
|
188
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
189
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: Trusted server Bearer FITNESS_PROFILE_SERVICE_TOKEN; 401 mismatch, 503 missing configuration.
|
|
180
190
|
*/
|
|
181
191
|
fitnessReceiptGet(id, options) {
|
|
182
192
|
return this.client.request({ ...options, method: "GET", url: `/api/v1/internal/fitness/transactions/${encodeURIComponent(id)}` });
|
|
183
193
|
}
|
|
184
194
|
/**
|
|
185
|
-
*
|
|
195
|
+
* Retry a stored rejected fitness transaction UUID using its persisted amount and metadata; idempotency_key=fitness-retry:{id}. Other state/project/model returns 409; missing transaction 404. Returns link at HTTP 200; no body is read.
|
|
186
196
|
* Calls `POST /api/v1/internal/fitness/transactions/{id}/retry` through the shared IDP-aware Faiber client.
|
|
187
197
|
* @param id Backend path identifier `id`.
|
|
188
198
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
189
|
-
* @returns The complete Axios response, including the typed
|
|
190
|
-
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission:
|
|
199
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
200
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: Trusted server Bearer FITNESS_PROFILE_SERVICE_TOKEN; 401 mismatch, 503 missing configuration.
|
|
191
201
|
*/
|
|
192
202
|
fitnessRetryPost(id, options) {
|
|
193
203
|
return this.client.request({ ...options, method: "POST", url: `/api/v1/internal/fitness/transactions/${encodeURIComponent(id)}/retry` });
|
|
194
204
|
}
|
|
195
205
|
/**
|
|
196
|
-
*
|
|
206
|
+
* Create trusted storefront link at HTTP 200: non-nil UUID service_id, configured site service_name, service_model=storefront_order, queue_name=modules_queue, idempotency_key=shop:{id}, callback exactly SHOP_RETURN_URL?checkout={id} with HTTPS return URL. Invalid UUID/amount returns 422, mismatch 403; requires live Zarinpal proof cached within 20 minutes (503 otherwise).
|
|
197
207
|
* Calls `POST /api/v1/internal/shop/payment` through the shared IDP-aware Faiber client.
|
|
198
208
|
* @param data Typed JSON request body.
|
|
199
209
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
200
|
-
* @returns The complete Axios response, including the typed
|
|
201
|
-
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission:
|
|
210
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
211
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: Trusted server Bearer SHOP_PAYMENT_TOKEN and configured SHOP_SITE_SLUG; 401 mismatch, 503 missing configuration.
|
|
202
212
|
*/
|
|
203
213
|
shopCheckoutCreatePost(data, options) {
|
|
204
214
|
return this.client.request({ ...options, method: "POST", url: `/api/v1/internal/shop/payment`, data: data });
|
|
205
215
|
}
|
|
206
216
|
/**
|
|
207
|
-
*
|
|
217
|
+
* Read raw configured boolean at HTTP 200. May call credential verification and cache live Zarinpal proof in database; this GET is not a pure liveness check. Missing setup or gateway can fail with 503/404.
|
|
208
218
|
* Calls `GET /api/v1/internal/shop/readiness` through the shared IDP-aware Faiber client.
|
|
209
219
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
210
|
-
* @returns The complete Axios response, including the typed
|
|
211
|
-
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: server
|
|
220
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
221
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: Trusted server Bearer SHOP_PAYMENT_TOKEN and configured SHOP_SITE_SLUG; 401 mismatch, 503 missing configuration.
|
|
212
222
|
*/
|
|
213
223
|
shopCheckoutReadinessGet(options) {
|
|
214
224
|
return this.client.request({ ...options, method: "GET", url: `/api/v1/internal/shop/readiness` });
|
|
215
225
|
}
|
|
216
226
|
/**
|
|
217
|
-
*
|
|
227
|
+
* Read site-owned storefront transaction UUID receipt at HTTP 200. Missing/wrong-site row returns 404; proof/gateway mismatch returns 409. May perform pending provider verification and persist settlement. providerVerified:true describes the proof path and is also returned for pending receipts; inspect status.
|
|
218
228
|
* Calls `GET /api/v1/internal/shop/transactions/{id}` through the shared IDP-aware Faiber client.
|
|
219
229
|
* @param id Backend path identifier `id`.
|
|
220
230
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
221
|
-
* @returns The complete Axios response, including the typed
|
|
222
|
-
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: server
|
|
231
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
232
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: Trusted server Bearer SHOP_PAYMENT_TOKEN and configured SHOP_SITE_SLUG; 401 mismatch, 503 missing configuration.
|
|
223
233
|
*/
|
|
224
234
|
shopCheckoutReceiptGet(id, options) {
|
|
225
235
|
return this.client.request({ ...options, method: "GET", url: `/api/v1/internal/shop/transactions/${encodeURIComponent(id)}` });
|
|
226
236
|
}
|
|
227
237
|
/**
|
|
228
|
-
*
|
|
238
|
+
* Create generic positive integer payment link at HTTP 200. Body idempotency_key reuses matching amount/service/model/id and returns 409 on mismatch. Dedicated 2Done/fitness/storefront reservations are rejected with 403. Asset protected requests require x-asset-payment-token when configured. Missing active gateway returns 404, invalid amount 422, provider pay failure 502. Backend declares no currency field; callers must follow their service currency contract.
|
|
229
239
|
* Calls `POST /api/v1/payment` through the shared IDP-aware Faiber client.
|
|
230
240
|
* @param data Typed JSON request body.
|
|
231
241
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
232
|
-
* @returns The complete Axios response, including the typed
|
|
233
|
-
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission:
|
|
242
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
243
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: No local handler permission check; configured credentials still use shared FaiberClient. Production ingress authority is separately verified; conditional Asset trusted header enforcement.
|
|
234
244
|
*/
|
|
235
245
|
paymentCreatePaymentPost(data, options) {
|
|
236
246
|
return this.client.request({ ...options, method: "POST", url: `/api/v1/payment`, data: data });
|
|
237
247
|
}
|
|
238
248
|
/**
|
|
239
|
-
*
|
|
249
|
+
* Read configured safe fallback URL or https://faiber.ir default at HTTP 200.
|
|
240
250
|
* Calls `GET /api/v1/settings` through the shared IDP-aware Faiber client.
|
|
241
251
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
242
|
-
* @returns The complete Axios response, including the typed
|
|
243
|
-
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: admin:gateway:read.
|
|
252
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
253
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: Authenticated non-nil IDP user; admin:gateway:read (payment: prefix, * and payment:* accepted). Bearer/secure cookies use shared FaiberClient; ingress must authenticate and strip forwarded identity headers.
|
|
244
254
|
*/
|
|
245
255
|
settingsShowGet(options) {
|
|
246
256
|
return this.client.request({ ...options, method: "GET", url: `/api/v1/settings` });
|
|
247
257
|
}
|
|
248
258
|
/**
|
|
249
|
-
*
|
|
259
|
+
* Save safe fallback URL at HTTP 200. Trim and normalize absolute HTTP/HTTPS URL, require host and reject embedded credentials; invalid URL returns 422.
|
|
250
260
|
* Calls `PATCH /api/v1/settings` through the shared IDP-aware Faiber client.
|
|
251
261
|
* @param data Typed JSON request body.
|
|
252
262
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
253
|
-
* @returns The complete Axios response, including the typed
|
|
254
|
-
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: admin:gateway:update.
|
|
263
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
264
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: Authenticated non-nil IDP user; admin:gateway:update (payment: prefix, * and payment:* accepted). Bearer/secure cookies use shared FaiberClient; ingress must authenticate and strip forwarded identity headers.
|
|
255
265
|
*/
|
|
256
266
|
settingsUpdatePatch(data, options) {
|
|
257
267
|
return this.client.request({ ...options, method: "PATCH", url: `/api/v1/settings`, data: data });
|
|
258
268
|
}
|
|
259
269
|
/**
|
|
260
|
-
*
|
|
270
|
+
* List newest-first transactions with gateway summaries, nested page, filtered monetary status/service-model totals, all service names and gateway options. Exact status/service/gateway filters; tracking/card substring filters; UTC YYYY-MM-DD dates inclusive (invalid dates/status ignored). Bracket page defaults 1/20 and size clamps 1..100. Summary fields are sums, not counts.
|
|
261
271
|
* Calls `GET /api/v1/transactions` through the shared IDP-aware Faiber client.
|
|
262
272
|
* @param params Typed query parameters; omitted members retain backend defaults.
|
|
263
273
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
264
|
-
* @returns The complete Axios response, including the typed
|
|
265
|
-
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: admin:transaction:read.
|
|
274
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
275
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: Authenticated non-nil IDP user; admin:transaction:read (payment: prefix, * and payment:* accepted). Bearer/secure cookies use shared FaiberClient; ingress must authenticate and strip forwarded identity headers.
|
|
266
276
|
*/
|
|
267
277
|
transactionIndexGet(params, options) {
|
|
268
278
|
return this.client.request({ ...options, method: "GET", url: `/api/v1/transactions`, params });
|
|
269
279
|
}
|
|
270
280
|
/**
|
|
271
|
-
*
|
|
281
|
+
* Read status only by transaction UUID at HTTP 200 (null stored status becomes pending); no transaction detail record is returned. Missing transaction returns 404.
|
|
272
282
|
* Calls `GET /api/v1/transactions/{uuid}` through the shared IDP-aware Faiber client.
|
|
273
283
|
* @param uuid Backend path identifier `uuid`.
|
|
274
284
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
275
|
-
* @returns The complete Axios response, including the typed
|
|
276
|
-
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission:
|
|
285
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
286
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: No local handler permission check; configured credentials still use shared FaiberClient. Production ingress authority is separately verified.
|
|
277
287
|
*/
|
|
278
288
|
routerShowStatusGet(uuid, options) {
|
|
279
289
|
return this.client.request({ ...options, method: "GET", url: `/api/v1/transactions/${encodeURIComponent(uuid)}` });
|
|
280
290
|
}
|
|
281
291
|
/**
|
|
282
|
-
*
|
|
292
|
+
* Reject only pending UUID transaction and record authenticated verifier and unsuccessful verification; emit result. Returns both records at HTTP 200; nonpending state returns 409, missing row 404. No request body.
|
|
283
293
|
* Calls `POST /api/v1/transactions/{uuid}/reject` through the shared IDP-aware Faiber client.
|
|
284
294
|
* @param uuid Backend path identifier `uuid`.
|
|
285
295
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
286
|
-
* @returns The complete Axios response, including the typed
|
|
287
|
-
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: admin:transaction:verify.
|
|
296
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
297
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: Authenticated non-nil IDP user; admin:transaction:verify (payment: prefix, * and payment:* accepted). Bearer/secure cookies use shared FaiberClient; ingress must authenticate and strip forwarded identity headers.
|
|
288
298
|
*/
|
|
289
299
|
transactionRejectPaymentPost(uuid, options) {
|
|
290
300
|
return this.client.request({ ...options, method: "POST", url: `/api/v1/transactions/${encodeURIComponent(uuid)}/reject` });
|
|
291
301
|
}
|
|
292
302
|
/**
|
|
293
|
-
*
|
|
303
|
+
* Read verification log array newest-first by created_at for transaction UUID at HTTP 200; empty history is [], missing transaction returns 404.
|
|
294
304
|
* Calls `GET /api/v1/transactions/{uuid}/verifications` through the shared IDP-aware Faiber client.
|
|
295
305
|
* @param uuid Backend path identifier `uuid`.
|
|
296
306
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
297
|
-
* @returns The complete Axios response, including the typed
|
|
298
|
-
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: admin:transaction:read.
|
|
307
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
308
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: Authenticated non-nil IDP user; admin:transaction:read (payment: prefix, * and payment:* accepted). Bearer/secure cookies use shared FaiberClient; ingress must authenticate and strip forwarded identity headers.
|
|
299
309
|
*/
|
|
300
310
|
transactionVerificationLogsGet(uuid, options) {
|
|
301
311
|
return this.client.request({ ...options, method: "GET", url: `/api/v1/transactions/${encodeURIComponent(uuid)}/verifications` });
|
|
302
312
|
}
|
|
303
313
|
/**
|
|
304
|
-
*
|
|
314
|
+
* Verify UUID using stored gateway/authority and persist verifier log; accepted transactions retain success without provider call. Provider failure is represented by HTTP 200 with verification.successful=false and rejected resulting status. May dispatch payment result; missing transaction/gateway returns 404. No request body.
|
|
305
315
|
* Calls `POST /api/v1/transactions/{uuid}/verify` through the shared IDP-aware Faiber client.
|
|
306
316
|
* @param uuid Backend path identifier `uuid`.
|
|
307
317
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
308
|
-
* @returns The complete Axios response, including the typed
|
|
309
|
-
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: admin:transaction:verify.
|
|
318
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
319
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: Authenticated non-nil IDP user; admin:transaction:verify (payment: prefix, * and payment:* accepted). Bearer/secure cookies use shared FaiberClient; ingress must authenticate and strip forwarded identity headers.
|
|
310
320
|
*/
|
|
311
321
|
transactionVerifyPaymentPost(uuid, options) {
|
|
312
322
|
return this.client.request({ ...options, method: "POST", url: `/api/v1/transactions/${encodeURIComponent(uuid)}/verify` });
|
|
313
323
|
}
|
|
314
324
|
/**
|
|
315
|
-
*
|
|
325
|
+
* Read accepted income by UTC date with zeros for missing dates. days is unsigned u32, defaults 30 and clamps 1..90; returns date/amount points at HTTP 200, no count.
|
|
316
326
|
* Calls `GET /api/v1/transactions/daily-income` through the shared IDP-aware Faiber client.
|
|
317
327
|
* @param params Typed query parameters; omitted members retain backend defaults.
|
|
318
328
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
319
|
-
* @returns The complete Axios response, including the typed
|
|
320
|
-
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: admin:transaction:read.
|
|
329
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
330
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: Authenticated non-nil IDP user; admin:transaction:read (payment: prefix, * and payment:* accepted). Bearer/secure cookies use shared FaiberClient; ingress must authenticate and strip forwarded identity headers.
|
|
321
331
|
*/
|
|
322
332
|
transactionDailyIncomeGet(params, options) {
|
|
323
333
|
return this.client.request({ ...options, method: "GET", url: `/api/v1/transactions/daily-income`, params });
|
|
324
334
|
}
|
|
325
335
|
/**
|
|
326
|
-
*
|
|
336
|
+
* Read process version with required status/message/data at HTTP 200. Does not probe database, broker or provider readiness.
|
|
327
337
|
* Calls `GET /health` through the shared IDP-aware Faiber client.
|
|
328
338
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
329
|
-
* @returns The complete Axios response, including the typed
|
|
330
|
-
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission:
|
|
339
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
340
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: No local handler permission check; configured credentials still use shared FaiberClient. Production ingress authority is separately verified.
|
|
331
341
|
*/
|
|
332
342
|
routerStatusRouteGet(options) {
|
|
333
343
|
return this.client.request({ ...options, method: "GET", url: `/health` });
|
|
334
344
|
}
|
|
335
345
|
/**
|
|
336
|
-
*
|
|
346
|
+
* Return raw provider navigation HTML at HTTP 200 for transaction UUID, optionally recording forwarded IP. Missing transaction/gateway returns 404, missing authority or invalid IP 400, unavailable provider 503; resolved storefront or changed proof returns 409. This endpoint is not JSON.
|
|
337
347
|
* Calls `GET /payments/{uuid}/redirect` through the shared IDP-aware Faiber client.
|
|
338
348
|
* @param uuid Backend path identifier `uuid`.
|
|
339
349
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
340
|
-
* @returns The complete Axios response, including the typed
|
|
341
|
-
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission:
|
|
350
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
351
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: No local handler permission check; configured credentials still use shared FaiberClient. Production ingress authority is separately verified.
|
|
342
352
|
*/
|
|
343
353
|
paymentWebRedirectGet(uuid, options) {
|
|
344
|
-
return this.client.request({ ...options, method: "GET", url: `/payments/${encodeURIComponent(uuid)}/redirect
|
|
354
|
+
return this.client.request({ ...options, method: "GET", url: `/payments/${encodeURIComponent(uuid)}/redirect`, responseType: "text" });
|
|
345
355
|
}
|
|
346
356
|
/**
|
|
347
|
-
*
|
|
357
|
+
* Process provider callback using query Authority, then transid, then paymentNumber; POST body is ignored. Missing authority returns 422, wrong provider 400, missing transaction 404, transient verification 503. May contact provider, persist state and emit result. Returns raw HTML 200 even for declined payments, or empty 303 with Location for allowed HTTPS callback origin. In Node use maxRedirects:0 and accept 303 to inspect redirect.
|
|
348
358
|
* Calls `GET /payments/callbacks/{provider}` through the shared IDP-aware Faiber client.
|
|
349
359
|
* @param provider Backend path identifier `provider`.
|
|
350
360
|
* @param params Typed query parameters; omitted members retain backend defaults.
|
|
351
361
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
352
|
-
* @returns The complete Axios response, including the typed
|
|
353
|
-
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission:
|
|
362
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
363
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: No local handler permission check; configured credentials still use shared FaiberClient. Production ingress authority is separately verified.
|
|
354
364
|
*/
|
|
355
365
|
paymentWebCallbackGet(provider, params, options) {
|
|
356
|
-
return this.client.request({ ...options, method: "GET", url: `/payments/callbacks/${encodeURIComponent(provider)}`, params });
|
|
366
|
+
return this.client.request({ ...options, method: "GET", url: `/payments/callbacks/${encodeURIComponent(provider)}`, params, responseType: "text" });
|
|
357
367
|
}
|
|
358
368
|
/**
|
|
359
|
-
*
|
|
369
|
+
* Process provider callback using query Authority, then transid, then paymentNumber; POST body is ignored. Missing authority returns 422, wrong provider 400, missing transaction 404, transient verification 503. May contact provider, persist state and emit result. Returns raw HTML 200 even for declined payments, or empty 303 with Location for allowed HTTPS callback origin. In Node use maxRedirects:0 and accept 303 to inspect redirect.
|
|
360
370
|
* Calls `POST /payments/callbacks/{provider}` through the shared IDP-aware Faiber client.
|
|
361
371
|
* @param provider Backend path identifier `provider`.
|
|
362
372
|
* @param params Typed query parameters; omitted members retain backend defaults.
|
|
363
373
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
364
|
-
* @returns The complete Axios response, including the typed
|
|
365
|
-
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission:
|
|
374
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
375
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: No local handler permission check; configured credentials still use shared FaiberClient. Production ingress authority is separately verified.
|
|
366
376
|
*/
|
|
367
377
|
paymentWebCallbackPost(provider, params, options) {
|
|
368
|
-
return this.client.request({ ...options, method: "POST", url: `/payments/callbacks/${encodeURIComponent(provider)}`, params });
|
|
378
|
+
return this.client.request({ ...options, method: "POST", url: `/payments/callbacks/${encodeURIComponent(provider)}`, params, responseType: "text" });
|
|
379
|
+
}
|
|
380
|
+
/**
|
|
381
|
+
* Read process version with required status/message/data at HTTP 200. Does not probe database, broker or provider readiness.
|
|
382
|
+
* Calls `GET /up` through the shared IDP-aware Faiber client.
|
|
383
|
+
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
384
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
385
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: No local handler permission check; configured credentials still use shared FaiberClient. Production ingress authority is separately verified.
|
|
386
|
+
*/
|
|
387
|
+
routerUpGet(options) {
|
|
388
|
+
return this.client.request({ ...options, method: "GET", url: `/up` });
|
|
369
389
|
}
|
|
370
390
|
}
|
|
371
391
|
//# sourceMappingURL=operations.js.map
|
package/dist/operations.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"operations.js","sourceRoot":"","sources":["../src/operations.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,UAAU,EAAwC,MAAM,kBAAkB,CAAC;AAGhG,MAAM,OAAO,iBAAkB,SAAQ,UAAU;IAC/C;;;;;;OAMG;IACH,oBAAoB,CAAC,OAAwB;QAC3C,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CAAiC,EAAE,GAAG,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,EAAE,mBAAmB,EAAE,CAAC,CAAC;IACtH,CAAC;IACD;;;;;;OAMG;IACH,iBAAiB,CAAC,OAAwB;QACxC,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CAA8B,EAAE,GAAG,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,EAAE,mBAAmB,EAAE,CAAC,CAAC;IACnH,CAAC;IACD;;;;;;;OAOG;IACH,eAAe,CAAC,MAA+B,EAAE,OAAwB;QACvE,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CAA4B,EAAE,GAAG,OAAO,EAAE,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