@faiber/faiber-asset 0.24.1 → 1.1.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 +17 -6
- package/dist/.tsbuildinfo +1 -1
- package/dist/contracts.types.d.ts +247 -22
- package/dist/contracts.types.d.ts.map +1 -1
- package/dist/economy.types.d.ts +56 -3
- package/dist/economy.types.d.ts.map +1 -1
- package/dist/index.d.ts +44 -37
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +11 -4
- package/dist/index.js.map +1 -1
- package/dist/operations.d.ts +337 -329
- package/dist/operations.d.ts.map +1 -1
- package/dist/operations.js +230 -220
- package/dist/operations.js.map +1 -1
- package/dist/operations.types.d.ts +169 -553
- package/dist/operations.types.d.ts.map +1 -1
- package/dist/types.d.ts +61 -270
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js.map +1 -1
- package/package.json +4 -3
- package/provenance.json +28 -0
package/dist/operations.js
CHANGED
|
@@ -1,1208 +1,1218 @@
|
|
|
1
1
|
import { ServiceApi, urlEncoded } from "@faiber/sdk-core";
|
|
2
2
|
export class AssetOperations extends ServiceApi {
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
4
|
+
* Read process liveness and the static service version; this endpoint does not probe database or broker readiness.
|
|
5
5
|
* Calls `GET /` through the shared IDP-aware Faiber client.
|
|
6
6
|
* @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:
|
|
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 handler permission check; deployment gateway policy is separate.
|
|
9
9
|
*/
|
|
10
10
|
routerStatusRouteGet(options) {
|
|
11
11
|
return this.client.request({ ...options, method: "GET", url: `/` });
|
|
12
12
|
}
|
|
13
13
|
/**
|
|
14
|
-
*
|
|
14
|
+
* Read the raw OpenAPI document. This document contains annotated routes only; complete mounted operations are available through the SDK.
|
|
15
15
|
* Calls `GET /api/openapi.json` through the shared IDP-aware Faiber client.
|
|
16
16
|
* @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:
|
|
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 handler permission check; deployment gateway policy is separate.
|
|
19
19
|
*/
|
|
20
20
|
routerOpenapiJsonGet(options) {
|
|
21
21
|
return this.client.request({ ...options, method: "GET", url: `/api/openapi.json` });
|
|
22
22
|
}
|
|
23
23
|
/**
|
|
24
|
-
*
|
|
24
|
+
* Page nondeleted action definitions ordered by name; search matches name/title/description. Pagination defaults to page 1, size 20, clamped to 1–100.
|
|
25
25
|
* Calls `GET /api/v1/actions` through the shared IDP-aware Faiber client.
|
|
26
26
|
* @param params Typed query parameters; omitted members retain backend defaults.
|
|
27
27
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
28
|
-
* @returns The complete Axios response, including the typed
|
|
28
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
29
29
|
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: admin:action:read.
|
|
30
30
|
*/
|
|
31
31
|
actionActionsIndexGet(params, options) {
|
|
32
32
|
return this.client.request({ ...options, method: "GET", url: `/api/v1/actions`, params });
|
|
33
33
|
}
|
|
34
34
|
/**
|
|
35
|
-
*
|
|
35
|
+
* Create an audited action with validated criteria and achievement rules; funded rules validate referenced assets and write rule history/outbox transactionally. Returns HTTP 200.
|
|
36
36
|
* Calls `POST /api/v1/actions` through the shared IDP-aware Faiber client.
|
|
37
37
|
* @param data Typed JSON request body.
|
|
38
38
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
39
|
-
* @returns The complete Axios response, including the typed
|
|
39
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
40
40
|
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: admin:action:create.
|
|
41
41
|
*/
|
|
42
42
|
actionActionsCreatePost(data, options) {
|
|
43
43
|
return this.client.request({ ...options, method: "POST", url: `/api/v1/actions`, data: data });
|
|
44
44
|
}
|
|
45
45
|
/**
|
|
46
|
-
*
|
|
46
|
+
* Soft-delete an audited action and record its funded-rule archival transactionally; returns HTTP 200 with data:null, or 404 when absent.
|
|
47
47
|
* Calls `DELETE /api/v1/actions/{id}` through the shared IDP-aware Faiber client.
|
|
48
48
|
* @param id Backend path identifier `id`.
|
|
49
49
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
50
|
-
* @returns The complete Axios response, including the typed
|
|
50
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
51
51
|
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: admin:action:delete.
|
|
52
52
|
*/
|
|
53
53
|
actionActionsDeleteDelete(id, options) {
|
|
54
54
|
return this.client.request({ ...options, method: "DELETE", url: `/api/v1/actions/${encodeURIComponent(id)}` });
|
|
55
55
|
}
|
|
56
56
|
/**
|
|
57
|
-
*
|
|
57
|
+
* Read one nondeleted action definition by UUID; a missing or archived action returns 404.
|
|
58
58
|
* Calls `GET /api/v1/actions/{id}` through the shared IDP-aware Faiber client.
|
|
59
59
|
* @param id Backend path identifier `id`.
|
|
60
60
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
61
|
-
* @returns The complete Axios response, including the typed
|
|
61
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
62
62
|
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: admin:action:read.
|
|
63
63
|
*/
|
|
64
64
|
actionActionsShowGet(id, options) {
|
|
65
65
|
return this.client.request({ ...options, method: "GET", url: `/api/v1/actions/${encodeURIComponent(id)}` });
|
|
66
66
|
}
|
|
67
67
|
/**
|
|
68
|
-
*
|
|
68
|
+
* Patch an audited action; null optional fields preserve values. Funded rule changes require a higher version and keep action identifiers immutable; invalid definitions fail before commit.
|
|
69
69
|
* Calls `PATCH /api/v1/actions/{id}` through the shared IDP-aware Faiber client.
|
|
70
70
|
* @param id Backend path identifier `id`.
|
|
71
71
|
* @param data Typed JSON request body.
|
|
72
72
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
73
|
-
* @returns The complete Axios response, including the typed
|
|
73
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
74
74
|
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: admin:action:update.
|
|
75
75
|
*/
|
|
76
76
|
actionActionsUpdatePatch(id, data, options) {
|
|
77
77
|
return this.client.request({ ...options, method: "PATCH", url: `/api/v1/actions/${encodeURIComponent(id)}`, data: data });
|
|
78
78
|
}
|
|
79
79
|
/**
|
|
80
|
-
*
|
|
80
|
+
* Complete a legacy action for the supplied profile UUID with optional stable event_id, occurrence timestamp and subject. Criteria, frequency, caps and badge rules govern rewards; scoped economy rewards use verified domain evidence instead.
|
|
81
81
|
* Calls `POST /api/v1/actions/complete` through the shared IDP-aware Faiber client.
|
|
82
82
|
* @param data Typed JSON request body.
|
|
83
83
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
84
|
-
* @returns The complete Axios response, including the typed
|
|
84
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
85
85
|
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: admin:action:complete.
|
|
86
86
|
*/
|
|
87
87
|
actionActionsCompletePost(data, options) {
|
|
88
88
|
return this.client.request({ ...options, method: "POST", url: `/api/v1/actions/complete`, data: data });
|
|
89
89
|
}
|
|
90
90
|
/**
|
|
91
|
-
*
|
|
91
|
+
* List all nondeleted plan products including disabled entries, ordered by price; reading may initialize project creation allowance metadata.
|
|
92
92
|
* Calls `GET /api/v1/admin/plan-products` through the shared IDP-aware Faiber client.
|
|
93
93
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
94
|
-
* @returns The complete Axios response, including the typed
|
|
94
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
95
95
|
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: admin:charge:read.
|
|
96
96
|
*/
|
|
97
97
|
walletBillingAdminPlanProductsIndexGet(options) {
|
|
98
98
|
return this.client.request({ ...options, method: "GET", url: `/api/v1/admin/plan-products` });
|
|
99
99
|
}
|
|
100
100
|
/**
|
|
101
|
-
*
|
|
101
|
+
* Upsert a validated plan product, excluding reserved fitness tiers. Optional Modules product UUID is validated upstream; upstream unavailability returns 503/502 and inaccessible products 422. Returns HTTP 200.
|
|
102
102
|
* Calls `PUT /api/v1/admin/plan-products` through the shared IDP-aware Faiber client.
|
|
103
103
|
* @param data Typed JSON request body.
|
|
104
104
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
105
|
-
* @returns The complete Axios response, including the typed
|
|
105
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
106
106
|
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: admin:charge:update.
|
|
107
107
|
*/
|
|
108
108
|
walletBillingAdminPlanProductsUpdatePut(data, options) {
|
|
109
109
|
return this.client.request({ ...options, method: "PUT", url: `/api/v1/admin/plan-products`, data: data });
|
|
110
110
|
}
|
|
111
111
|
/**
|
|
112
|
-
*
|
|
112
|
+
* Soft-delete a nonfitness plan product by tier and set status zero. Missing tiers return 404; fitness tiers return 403. Returns raw status/message.
|
|
113
113
|
* Calls `DELETE /api/v1/admin/plan-products/{tier}` through the shared IDP-aware Faiber client.
|
|
114
114
|
* @param tier Backend path identifier `tier`.
|
|
115
115
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
116
|
-
* @returns The complete Axios response, including the typed
|
|
116
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
117
117
|
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: admin:charge:update.
|
|
118
118
|
*/
|
|
119
119
|
walletBillingAdminPlanProductsDeleteDelete(tier, options) {
|
|
120
120
|
return this.client.request({ ...options, method: "DELETE", url: `/api/v1/admin/plan-products/${encodeURIComponent(tier)}` });
|
|
121
121
|
}
|
|
122
122
|
/**
|
|
123
|
-
*
|
|
123
|
+
* Read configured CPU/RAM/disk unit prices as exact decimal strings; missing configuration fails with 500.
|
|
124
124
|
* Calls `GET /api/v1/admin/resource-unit-prices` through the shared IDP-aware Faiber client.
|
|
125
125
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
126
|
-
* @returns The complete Axios response, including the typed
|
|
126
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
127
127
|
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: admin:charge:read.
|
|
128
128
|
*/
|
|
129
129
|
sandboxBillingAdminPricesGet(options) {
|
|
130
130
|
return this.client.request({ ...options, method: "GET", url: `/api/v1/admin/resource-unit-prices` });
|
|
131
131
|
}
|
|
132
132
|
/**
|
|
133
|
-
*
|
|
133
|
+
* Update nonnegative CPU/RAM/disk unit prices and currency; negative prices return 422.
|
|
134
134
|
* Calls `PUT /api/v1/admin/resource-unit-prices` through the shared IDP-aware Faiber client.
|
|
135
135
|
* @param data Typed JSON request body.
|
|
136
136
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
137
|
-
* @returns The complete Axios response, including the typed
|
|
137
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
138
138
|
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: admin:charge:update.
|
|
139
139
|
*/
|
|
140
140
|
sandboxBillingAdminPricesUpdatePut(data, options) {
|
|
141
141
|
return this.client.request({ ...options, method: "PUT", url: `/api/v1/admin/resource-unit-prices`, data: data });
|
|
142
142
|
}
|
|
143
143
|
/**
|
|
144
|
-
*
|
|
144
|
+
* Set or clear an exact monthly resource override for the supplied profile/project. Negative values return 422; absent allocation is initialized and bundle_id is cleared.
|
|
145
145
|
* Calls `PUT /api/v1/admin/sandbox-projects/{profile_id}/{project}/pricing-override` through the shared IDP-aware Faiber client.
|
|
146
146
|
* @param profileId Backend path identifier `profile_id`.
|
|
147
147
|
* @param project Backend path identifier `project`.
|
|
148
148
|
* @param data Typed JSON request body.
|
|
149
149
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
150
|
-
* @returns The complete Axios response, including the typed
|
|
150
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
151
151
|
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: admin:charge:update.
|
|
152
152
|
*/
|
|
153
153
|
sandboxBillingAdminProjectPricingOverridePut(profileId, project, data, options) {
|
|
154
154
|
return this.client.request({ ...options, method: "PUT", url: `/api/v1/admin/sandbox-projects/${encodeURIComponent(profileId)}/${encodeURIComponent(project)}/pricing-override`, data: data });
|
|
155
155
|
}
|
|
156
156
|
/**
|
|
157
|
-
*
|
|
157
|
+
* Move project allocation and subscription billing rows from current_profile_id to financial_owner_user_id in a transaction; an existing target allocation is replaced. Equal identities return unchanged.
|
|
158
158
|
* Calls `PUT /api/v1/admin/sandbox-projects/{project}/financial-owner` through the shared IDP-aware Faiber client.
|
|
159
159
|
* @param project Backend path identifier `project`.
|
|
160
160
|
* @param data Typed JSON request body.
|
|
161
161
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
162
|
-
* @returns The complete Axios response, including the typed
|
|
162
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
163
163
|
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: admin:charge:update.
|
|
164
164
|
*/
|
|
165
165
|
sandboxBillingAdminProjectFinancialOwnerPut(project, data, options) {
|
|
166
166
|
return this.client.request({ ...options, method: "PUT", url: `/api/v1/admin/sandbox-projects/${encodeURIComponent(project)}/financial-owner`, data: data });
|
|
167
167
|
}
|
|
168
168
|
/**
|
|
169
|
-
*
|
|
169
|
+
* Page all subscription rows newest first with optional project/profile filters and project/service/status search. Bracket pagination defaults to page 1 and size 20, clamped to 1–100.
|
|
170
170
|
* Calls `GET /api/v1/admin/subscriptions` through the shared IDP-aware Faiber client.
|
|
171
171
|
* @param params Typed query parameters; omitted members retain backend defaults.
|
|
172
172
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
173
|
-
* @returns The complete Axios response, including the typed
|
|
173
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
174
174
|
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: admin:charge:read.
|
|
175
175
|
*/
|
|
176
176
|
walletBillingAdminSubscriptionsIndexGet(params, options) {
|
|
177
177
|
return this.client.request({ ...options, method: "GET", url: `/api/v1/admin/subscriptions`, params });
|
|
178
178
|
}
|
|
179
179
|
/**
|
|
180
|
-
*
|
|
180
|
+
* Proxy product-owned gift list JSON with optional page/per_page/search (max 120 characters); annotate any item with can_copy. Declared admin:charge permission is accompanied by a local asset:charge:read/update check (asset:charge:* or * accepted); product must be 2done or fitapp.
|
|
181
181
|
* Calls `GET /api/v1/admin/trial-gifts/{product}` through the shared IDP-aware Faiber client.
|
|
182
182
|
* @param product Backend path identifier `product`.
|
|
183
183
|
* @param params Typed query parameters; omitted members retain backend defaults.
|
|
184
184
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
185
|
-
* @returns The complete Axios response, including the typed
|
|
185
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
186
186
|
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: admin:charge:read and asset:charge:read.
|
|
187
187
|
*/
|
|
188
188
|
trialGiftsListGet(product, params, options) {
|
|
189
189
|
return this.client.request({ ...options, method: "GET", url: `/api/v1/admin/trial-gifts/${encodeURIComponent(product)}`, params });
|
|
190
190
|
}
|
|
191
191
|
/**
|
|
192
|
-
*
|
|
192
|
+
* Create a product-owned gift with nonnil stable request_id; require label up to 120 characters, active/inactive status, max_uses 1–1000000, RFC3339 expiry and object limits up to 2048 encoded bytes. Store token in the configured vault and return product JSON with can_copy. Declared admin:charge permission is accompanied by a local asset:charge:read/update check (asset:charge:* or * accepted); product must be 2done or fitapp.
|
|
193
193
|
* Calls `POST /api/v1/admin/trial-gifts/{product}` through the shared IDP-aware Faiber client.
|
|
194
194
|
* @param product Backend path identifier `product`.
|
|
195
195
|
* @param data Typed JSON request body.
|
|
196
196
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
197
|
-
* @returns The complete Axios response, including the typed
|
|
197
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
198
198
|
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: admin:charge:update and asset:charge:update.
|
|
199
199
|
*/
|
|
200
200
|
trialGiftsCreatePost(product, data, options) {
|
|
201
201
|
return this.client.request({ ...options, method: "POST", url: `/api/v1/admin/trial-gifts/${encodeURIComponent(product)}`, data: data });
|
|
202
202
|
}
|
|
203
203
|
/**
|
|
204
|
-
*
|
|
204
|
+
* Proxy one product-owned gift JSON object and annotate can_copy based on vault availability and remaining uses. Declared admin:charge permission is accompanied by a local asset:charge:read/update check (asset:charge:* or * accepted); product must be 2done or fitapp.
|
|
205
205
|
* Calls `GET /api/v1/admin/trial-gifts/{product}/{id}` through the shared IDP-aware Faiber client.
|
|
206
206
|
* @param product Backend path identifier `product`.
|
|
207
207
|
* @param id Backend path identifier `id`.
|
|
208
208
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
209
|
-
* @returns The complete Axios response, including the typed
|
|
209
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
210
210
|
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: admin:charge:read and asset:charge:read.
|
|
211
211
|
*/
|
|
212
212
|
trialGiftsShowGet(product, id, options) {
|
|
213
213
|
return this.client.request({ ...options, method: "GET", url: `/api/v1/admin/trial-gifts/${encodeURIComponent(product)}/${encodeURIComponent(id)}` });
|
|
214
214
|
}
|
|
215
215
|
/**
|
|
216
|
-
*
|
|
216
|
+
* Update a product-owned gift with optional rotate_token and full required write fields; request_id is ignored on update. Return delegated product JSON annotated with can_copy. Declared admin:charge permission is accompanied by a local asset:charge:read/update check (asset:charge:* or * accepted); product must be 2done or fitapp.
|
|
217
217
|
* Calls `PUT /api/v1/admin/trial-gifts/{product}/{id}` through the shared IDP-aware Faiber client.
|
|
218
218
|
* @param product Backend path identifier `product`.
|
|
219
219
|
* @param id Backend path identifier `id`.
|
|
220
220
|
* @param data Typed JSON request body.
|
|
221
221
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
222
|
-
* @returns The complete Axios response, including the typed
|
|
222
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
223
223
|
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: admin:charge:update and asset:charge:update.
|
|
224
224
|
*/
|
|
225
225
|
trialGiftsUpdatePut(product, id, data, options) {
|
|
226
226
|
return this.client.request({ ...options, method: "PUT", url: `/api/v1/admin/trial-gifts/${encodeURIComponent(product)}/${encodeURIComponent(id)}`, data: data });
|
|
227
227
|
}
|
|
228
228
|
/**
|
|
229
|
-
*
|
|
229
|
+
* Read an unused gift token from the configured vault; exhausted gift conflicts with 409, unavailable vault returns 503, and missing stored token returns 404. Declared admin:charge permission is accompanied by a local asset:charge:read/update check (asset:charge:* or * accepted); product must be 2done or fitapp.
|
|
230
230
|
* Calls `GET /api/v1/admin/trial-gifts/{product}/{id}/token` through the shared IDP-aware Faiber client.
|
|
231
231
|
* @param product Backend path identifier `product`.
|
|
232
232
|
* @param id Backend path identifier `id`.
|
|
233
233
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
234
|
-
* @returns The complete Axios response, including the typed
|
|
234
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
235
235
|
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: admin:charge:update and asset:charge:update.
|
|
236
236
|
*/
|
|
237
237
|
trialGiftsCopyTokenGet(product, id, options) {
|
|
238
238
|
return this.client.request({ ...options, method: "GET", url: `/api/v1/admin/trial-gifts/${encodeURIComponent(product)}/${encodeURIComponent(id)}/token` });
|
|
239
239
|
}
|
|
240
240
|
/**
|
|
241
|
-
*
|
|
241
|
+
* List configured product gift adapters with available/can_manage flags. Declared admin:charge permission is accompanied by a local asset:charge:read/update check (asset:charge:* or * accepted); product must be 2done or fitapp.
|
|
242
242
|
* Calls `GET /api/v1/admin/trial-gifts/products` through the shared IDP-aware Faiber client.
|
|
243
243
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
244
|
-
* @returns The complete Axios response, including the typed
|
|
244
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
245
245
|
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: admin:charge:read and asset:charge:read.
|
|
246
246
|
*/
|
|
247
247
|
trialGiftsProductsGet(options) {
|
|
248
248
|
return this.client.request({ ...options, method: "GET", url: `/api/v1/admin/trial-gifts/products` });
|
|
249
249
|
}
|
|
250
250
|
/**
|
|
251
|
-
*
|
|
251
|
+
* List user plans ordered by last update with camelCase profileId/expiresAt/daysRemaining and effective enabled flag; no pagination.
|
|
252
252
|
* Calls `GET /api/v1/admin/user-plans` through the shared IDP-aware Faiber client.
|
|
253
253
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
254
|
-
* @returns The complete Axios response, including the typed
|
|
254
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
255
255
|
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: admin:charge:read.
|
|
256
256
|
*/
|
|
257
257
|
walletBillingAdminUserPlansIndexGet(options) {
|
|
258
258
|
return this.client.request({ ...options, method: "GET", url: `/api/v1/admin/user-plans` });
|
|
259
259
|
}
|
|
260
260
|
/**
|
|
261
|
-
*
|
|
261
|
+
* Delete plan rows for a profile, including when absent; returns raw status/message.
|
|
262
262
|
* Calls `DELETE /api/v1/admin/user-plans/{profile_id}` through the shared IDP-aware Faiber client.
|
|
263
263
|
* @param profileId Backend path identifier `profile_id`.
|
|
264
264
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
265
|
-
* @returns The complete Axios response, including the typed
|
|
265
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
266
266
|
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: admin:charge:update.
|
|
267
267
|
*/
|
|
268
268
|
walletBillingAdminUserPlanDeleteDelete(profileId, options) {
|
|
269
269
|
return this.client.request({ ...options, method: "DELETE", url: `/api/v1/admin/user-plans/${encodeURIComponent(profileId)}` });
|
|
270
270
|
}
|
|
271
271
|
/**
|
|
272
|
-
*
|
|
272
|
+
* Set an enabled paid plan for a profile with days defaulting to 30 and restricted to 1–3650. Tier must name an active product and cannot be free; returns camelCase effective plan data.
|
|
273
273
|
* Calls `PUT /api/v1/admin/user-plans/{profile_id}` through the shared IDP-aware Faiber client.
|
|
274
274
|
* @param profileId Backend path identifier `profile_id`.
|
|
275
275
|
* @param data Typed JSON request body.
|
|
276
276
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
277
|
-
* @returns The complete Axios response, including the typed
|
|
277
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
278
278
|
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: admin:charge:update.
|
|
279
279
|
*/
|
|
280
280
|
walletBillingAdminUserPlanUpdatePut(profileId, data, options) {
|
|
281
281
|
return this.client.request({ ...options, method: "PUT", url: `/api/v1/admin/user-plans/${encodeURIComponent(profileId)}`, data: data });
|
|
282
282
|
}
|
|
283
283
|
/**
|
|
284
|
-
*
|
|
284
|
+
* Disable a profile plan by setting free, clearing expiry and zeroing plan points; create a free row if absent. Returns camelCase effective plan data.
|
|
285
285
|
* Calls `PUT /api/v1/admin/user-plans/{profile_id}/disable` through the shared IDP-aware Faiber client.
|
|
286
286
|
* @param profileId Backend path identifier `profile_id`.
|
|
287
287
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
288
|
-
* @returns The complete Axios response, including the typed
|
|
288
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
289
289
|
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: admin:charge:update.
|
|
290
290
|
*/
|
|
291
291
|
walletBillingAdminUserPlanDisablePut(profileId, options) {
|
|
292
292
|
return this.client.request({ ...options, method: "PUT", url: `/api/v1/admin/user-plans/${encodeURIComponent(profileId)}/disable` });
|
|
293
293
|
}
|
|
294
294
|
/**
|
|
295
|
-
*
|
|
295
|
+
* Read or initialize one nonnil profile wallet and recent ledger entries. limit defaults to 25 and clamps to 1–100; all amounts are exact decimal strings.
|
|
296
296
|
* Calls `GET /api/v1/admin/users/{profile_id}/wallet` through the shared IDP-aware Faiber client.
|
|
297
297
|
* @param profileId Backend path identifier `profile_id`.
|
|
298
298
|
* @param params Typed query parameters; omitted members retain backend defaults.
|
|
299
299
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
300
|
-
* @returns The complete Axios response, including the typed
|
|
300
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
301
301
|
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: admin:charge:read.
|
|
302
302
|
*/
|
|
303
303
|
walletBillingAdminUserWalletShowGet(profileId, params, options) {
|
|
304
304
|
return this.client.request({ ...options, method: "GET", url: `/api/v1/admin/users/${encodeURIComponent(profileId)}/wallet`, params });
|
|
305
305
|
}
|
|
306
306
|
/**
|
|
307
|
-
*
|
|
307
|
+
* Credit or debit a nonnil profile wallet with positive amount and trimmed 1–200 character reason; record current actor as ledger reference. Invalid direction returns 422 and insufficient debit balance 402.
|
|
308
308
|
* Calls `POST /api/v1/admin/users/{profile_id}/wallet/adjustments` through the shared IDP-aware Faiber client.
|
|
309
309
|
* @param profileId Backend path identifier `profile_id`.
|
|
310
310
|
* @param data Typed JSON request body.
|
|
311
311
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
312
|
-
* @returns The complete Axios response, including the typed
|
|
312
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
313
313
|
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: admin:charge:update.
|
|
314
314
|
*/
|
|
315
315
|
walletBillingAdminUserWalletAdjustPost(profileId, data, options) {
|
|
316
316
|
return this.client.request({ ...options, method: "POST", url: `/api/v1/admin/users/${encodeURIComponent(profileId)}/wallet/adjustments`, data: data });
|
|
317
317
|
}
|
|
318
318
|
/**
|
|
319
|
-
*
|
|
319
|
+
* Reserve a positive IRR amount for the current profile using an external_id. Identical owner/kind/model/amount/currency replay returns the same reservation; conflicting reuse returns 409.
|
|
320
320
|
* Calls `POST /api/v1/ai-reservations` through the shared IDP-aware Faiber client.
|
|
321
321
|
* @param data Typed JSON request body.
|
|
322
322
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
323
|
-
* @returns The complete Axios response, including the typed
|
|
323
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
324
324
|
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: session-derived or public bootstrap route.
|
|
325
325
|
*/
|
|
326
326
|
aiBillingReservePost(data, options) {
|
|
327
327
|
return this.client.request({ ...options, method: "POST", url: `/api/v1/ai-reservations`, data: data });
|
|
328
328
|
}
|
|
329
329
|
/**
|
|
330
|
-
*
|
|
330
|
+
* Release an owner-scoped reserved amount back to the wallet. Releasing twice is idempotent; settled reservations conflict with 409; missing/foreign IDs return 404.
|
|
331
331
|
* Calls `POST /api/v1/ai-reservations/{id}/release` through the shared IDP-aware Faiber client.
|
|
332
332
|
* @param id Backend path identifier `id`.
|
|
333
333
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
334
|
-
* @returns The complete Axios response, including the typed
|
|
334
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
335
335
|
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: session-derived or public bootstrap route.
|
|
336
336
|
*/
|
|
337
337
|
aiBillingReleasePost(id, options) {
|
|
338
338
|
return this.client.request({ ...options, method: "POST", url: `/api/v1/ai-reservations/${encodeURIComponent(id)}/release` });
|
|
339
339
|
}
|
|
340
340
|
/**
|
|
341
|
-
*
|
|
341
|
+
* Settle an owner-scoped reservation with a nonnegative actual IRR amount. Equal settlement replay succeeds; changed amount, currency or released state conflicts. Missing/foreign reservation returns 404.
|
|
342
342
|
* Calls `POST /api/v1/ai-reservations/{id}/settle` through the shared IDP-aware Faiber client.
|
|
343
343
|
* @param id Backend path identifier `id`.
|
|
344
344
|
* @param data Typed JSON request body.
|
|
345
345
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
346
|
-
* @returns The complete Axios response, including the typed
|
|
346
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
347
347
|
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: session-derived or public bootstrap route.
|
|
348
348
|
*/
|
|
349
349
|
aiBillingSettlePost(id, data, options) {
|
|
350
350
|
return this.client.request({ ...options, method: "POST", url: `/api/v1/ai-reservations/${encodeURIComponent(id)}/settle`, data: data });
|
|
351
351
|
}
|
|
352
352
|
/**
|
|
353
|
-
*
|
|
353
|
+
* Page nondeleted asset definitions ordered by name. Optional asset_type is matched case-insensitively; an unrecognized type applies no type filter. Search matches name/title/description.
|
|
354
354
|
* Calls `GET /api/v1/assets` through the shared IDP-aware Faiber client.
|
|
355
355
|
* @param params Typed query parameters; omitted members retain backend defaults.
|
|
356
356
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
357
|
-
* @returns The complete Axios response, including the typed
|
|
357
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
358
358
|
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: admin:asset:read.
|
|
359
359
|
*/
|
|
360
360
|
catalogAssetsIndexGet(params, options) {
|
|
361
361
|
return this.client.request({ ...options, method: "GET", url: `/api/v1/assets`, params });
|
|
362
362
|
}
|
|
363
363
|
/**
|
|
364
|
-
*
|
|
364
|
+
* Create an asset with required name and case-sensitive asset_type enum; validate badge metadata when present. subject_type defaults to profile, max_quantity to zero, status to 1. Returns HTTP 200.
|
|
365
365
|
* Calls `POST /api/v1/assets` through the shared IDP-aware Faiber client.
|
|
366
366
|
* @param data Typed JSON request body.
|
|
367
367
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
368
|
-
* @returns The complete Axios response, including the typed
|
|
368
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
369
369
|
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: admin:asset:create.
|
|
370
370
|
*/
|
|
371
371
|
catalogAssetsCreatePost(data, options) {
|
|
372
372
|
return this.client.request({ ...options, method: "POST", url: `/api/v1/assets`, data: data });
|
|
373
373
|
}
|
|
374
374
|
/**
|
|
375
|
-
*
|
|
375
|
+
* Soft-delete an asset by UUID; returns HTTP 200 with data:null, or 404 when absent.
|
|
376
376
|
* Calls `DELETE /api/v1/assets/{id}` through the shared IDP-aware Faiber client.
|
|
377
377
|
* @param id Backend path identifier `id`.
|
|
378
378
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
379
|
-
* @returns The complete Axios response, including the typed
|
|
379
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
380
380
|
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: admin:asset:delete.
|
|
381
381
|
*/
|
|
382
382
|
catalogAssetsDeleteDelete(id, options) {
|
|
383
383
|
return this.client.request({ ...options, method: "DELETE", url: `/api/v1/assets/${encodeURIComponent(id)}` });
|
|
384
384
|
}
|
|
385
385
|
/**
|
|
386
|
-
*
|
|
386
|
+
* Read one nondeleted asset definition by UUID; missing or deleted assets return 404.
|
|
387
387
|
* Calls `GET /api/v1/assets/{id}` through the shared IDP-aware Faiber client.
|
|
388
388
|
* @param id Backend path identifier `id`.
|
|
389
389
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
390
|
-
* @returns The complete Axios response, including the typed
|
|
390
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
391
391
|
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: admin:asset:read.
|
|
392
392
|
*/
|
|
393
393
|
catalogAssetsShowGet(id, options) {
|
|
394
394
|
return this.client.request({ ...options, method: "GET", url: `/api/v1/assets/${encodeURIComponent(id)}` });
|
|
395
395
|
}
|
|
396
396
|
/**
|
|
397
|
-
*
|
|
397
|
+
* Patch an asset without changing asset_type; null optional values preserve existing data. Badge metadata is validated; missing asset returns 404.
|
|
398
398
|
* Calls `PATCH /api/v1/assets/{id}` through the shared IDP-aware Faiber client.
|
|
399
399
|
* @param id Backend path identifier `id`.
|
|
400
400
|
* @param data Typed JSON request body.
|
|
401
401
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
402
|
-
* @returns The complete Axios response, including the typed
|
|
402
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
403
403
|
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: admin:asset:update.
|
|
404
404
|
*/
|
|
405
405
|
catalogAssetsUpdatePatch(id, data, options) {
|
|
406
406
|
return this.client.request({ ...options, method: "PATCH", url: `/api/v1/assets/${encodeURIComponent(id)}`, data: data });
|
|
407
407
|
}
|
|
408
408
|
/**
|
|
409
|
-
*
|
|
409
|
+
* Read bank_value_sum as an exact decimal string; default Coin settings may be initialized when absent.
|
|
410
410
|
* Calls `GET /api/v1/bank-summary` through the shared IDP-aware Faiber client.
|
|
411
411
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
412
|
-
* @returns The complete Axios response, including the typed
|
|
412
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
413
413
|
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: admin:bank_transaction:read.
|
|
414
414
|
*/
|
|
415
415
|
bankBankSummaryShowGet(options) {
|
|
416
416
|
return this.client.request({ ...options, method: "GET", url: `/api/v1/bank-summary` });
|
|
417
417
|
}
|
|
418
418
|
/**
|
|
419
|
-
*
|
|
419
|
+
* Page nondeleted bank transactions newest first, optionally filtering profile_id/type and searching profile UUID or amount; include profile deposit totals and best-effort profile names.
|
|
420
420
|
* Calls `GET /api/v1/bank-transactions` through the shared IDP-aware Faiber client.
|
|
421
421
|
* @param params Typed query parameters; omitted members retain backend defaults.
|
|
422
422
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
423
|
-
* @returns The complete Axios response, including the typed
|
|
423
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
424
424
|
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: admin:bank_transaction:read.
|
|
425
425
|
*/
|
|
426
426
|
bankBankTransactionsIndexGet(params, options) {
|
|
427
427
|
return this.client.request({ ...options, method: "GET", url: `/api/v1/bank-transactions`, params });
|
|
428
428
|
}
|
|
429
429
|
/**
|
|
430
|
-
*
|
|
430
|
+
* Record a positive legacy bank deposit for the supplied profile UUID; omitted bank_id selects the default bank. Scoped economy rejects this path with 422 and requires verified broker funding. Returns HTTP 200.
|
|
431
431
|
* Calls `POST /api/v1/bank-transactions` through the shared IDP-aware Faiber client.
|
|
432
432
|
* @param data Typed JSON request body.
|
|
433
433
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
434
|
-
* @returns The complete Axios response, including the typed
|
|
434
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
435
435
|
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: admin:bank_transaction:create.
|
|
436
436
|
*/
|
|
437
437
|
bankBankTransactionsCreatePost(data, options) {
|
|
438
438
|
return this.client.request({ ...options, method: "POST", url: `/api/v1/bank-transactions`, data: data });
|
|
439
439
|
}
|
|
440
440
|
/**
|
|
441
|
-
*
|
|
441
|
+
* Read Charge mapping rules; initialize empty first-match defaults if no settings exist. Conditions are tagged objects, and decimal values serialize as strings.
|
|
442
442
|
* Calls `GET /api/v1/charge/settings` through the shared IDP-aware Faiber client.
|
|
443
443
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
444
|
-
* @returns The complete Axios response, including the typed
|
|
444
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
445
445
|
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: admin:charge:read.
|
|
446
446
|
*/
|
|
447
447
|
chargeChargeSettingsShowGet(options) {
|
|
448
448
|
return this.client.request({ ...options, method: "GET", url: `/api/v1/charge/settings` });
|
|
449
449
|
}
|
|
450
450
|
/**
|
|
451
|
-
*
|
|
451
|
+
* Replace Charge mapping rules and optionally status; conditions require their type discriminator and variant-specific fields. Returns persisted rules with defaults materialized.
|
|
452
452
|
* Calls `PATCH /api/v1/charge/settings` through the shared IDP-aware Faiber client.
|
|
453
453
|
* @param data Typed JSON request body.
|
|
454
454
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
455
|
-
* @returns The complete Axios response, including the typed
|
|
455
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
456
456
|
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: admin:charge:update.
|
|
457
457
|
*/
|
|
458
458
|
chargeChargeSettingsUpdatePatch(data, options) {
|
|
459
459
|
return this.client.request({ ...options, method: "PATCH", url: `/api/v1/charge/settings`, data: data });
|
|
460
460
|
}
|
|
461
461
|
/**
|
|
462
|
-
*
|
|
462
|
+
* Read legacy Coin counters and derived unit value; initialize default settings if absent.
|
|
463
463
|
* Calls `GET /api/v1/coin-settings` through the shared IDP-aware Faiber client.
|
|
464
464
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
465
|
-
* @returns The complete Axios response, including the typed
|
|
465
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
466
466
|
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: admin:coin_settings:read.
|
|
467
467
|
*/
|
|
468
468
|
bankCoinSettingsShowGet(options) {
|
|
469
469
|
return this.client.request({ ...options, method: "GET", url: `/api/v1/coin-settings` });
|
|
470
470
|
}
|
|
471
471
|
/**
|
|
472
|
-
*
|
|
472
|
+
* Patch legacy total supply/allocation percentage; configured scoped economy rejects changes with 409 and requires versioned economy policy instead.
|
|
473
473
|
* Calls `PATCH /api/v1/coin-settings` through the shared IDP-aware Faiber client.
|
|
474
474
|
* @param data Typed JSON request body.
|
|
475
475
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
476
|
-
* @returns The complete Axios response, including the typed
|
|
476
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
477
477
|
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: admin:coin_settings:update.
|
|
478
478
|
*/
|
|
479
479
|
bankCoinSettingsUpdatePatch(data, options) {
|
|
480
480
|
return this.client.request({ ...options, method: "PATCH", url: `/api/v1/coin-settings`, data: data });
|
|
481
481
|
}
|
|
482
482
|
/**
|
|
483
|
-
*
|
|
483
|
+
* Read monthly global legacy Coin, bank and action totals. month uses YYYY-MM and defaults to server local current month; invalid month returns 400.
|
|
484
484
|
* Calls `GET /api/v1/dashboard` through the shared IDP-aware Faiber client.
|
|
485
485
|
* @param params Typed query parameters; omitted members retain backend defaults.
|
|
486
486
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
487
|
-
* @returns The complete Axios response, including the typed
|
|
487
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
488
488
|
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: admin:dashboard:read.
|
|
489
489
|
*/
|
|
490
490
|
dashboardDashboardShowGet(params, options) {
|
|
491
491
|
return this.client.request({ ...options, method: "GET", url: `/api/v1/dashboard`, params });
|
|
492
492
|
}
|
|
493
493
|
/**
|
|
494
|
-
*
|
|
494
|
+
* Read literal permission flags for policy updates, reward review, rule updates and rule creation. The endpoint declares admin:wallet:read_own with admin:coin_settings:read as an alias.
|
|
495
495
|
* Calls `GET /api/v1/economy/capabilities` through the shared IDP-aware Faiber client.
|
|
496
496
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
497
|
-
* @returns The complete Axios response, including the typed
|
|
497
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
498
498
|
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: admin:wallet:read_own.
|
|
499
499
|
*/
|
|
500
500
|
economyCapabilitiesGet(options) {
|
|
501
501
|
return this.client.request({ ...options, method: "GET", url: `/api/v1/economy/capabilities` });
|
|
502
502
|
}
|
|
503
503
|
/**
|
|
504
|
-
*
|
|
504
|
+
* Execute only audited operator reward or scope_close commands. Reward actor_id is overwritten from current identity and a nonempty reason is required; automatic/broker authority commands are rejected. Stable event_id retries must carry the same command.
|
|
505
505
|
* Calls `POST /api/v1/economy/commands` through the shared IDP-aware Faiber client.
|
|
506
506
|
* @param data Typed JSON request body.
|
|
507
507
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
508
|
-
* @returns The complete Axios response, including the typed
|
|
508
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
509
509
|
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: admin:action:complete.
|
|
510
510
|
*/
|
|
511
511
|
economyCommandPost(data, options) {
|
|
512
512
|
return this.client.request({ ...options, method: "POST", url: `/api/v1/economy/commands`, data: data });
|
|
513
513
|
}
|
|
514
514
|
/**
|
|
515
|
-
*
|
|
515
|
+
* Read immutable raw command/results and state changes with exclusive after/before sequence bounds and optional descending order. limit defaults to 100 and caps at 500.
|
|
516
516
|
* Calls `GET /api/v1/economy/journal` through the shared IDP-aware Faiber client.
|
|
517
517
|
* @param params Typed query parameters; omitted members retain backend defaults.
|
|
518
518
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
519
|
-
* @returns The complete Axios response, including the typed
|
|
519
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
520
520
|
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: admin:user_asset_log:read.
|
|
521
521
|
*/
|
|
522
522
|
economyJournalGet(params, options) {
|
|
523
523
|
return this.client.request({ ...options, method: "GET", url: `/api/v1/economy/journal`, params });
|
|
524
524
|
}
|
|
525
525
|
/**
|
|
526
|
-
*
|
|
526
|
+
* Read role/period XP rankings ordered by XP then object key. role and period_id cannot contain colons; limit defaults to 100 and caps at 500. Replay rewards do not change live rankings.
|
|
527
527
|
* Calls `GET /api/v1/economy/leaderboards` through the shared IDP-aware Faiber client.
|
|
528
528
|
* @param params Typed query parameters; omitted members retain backend defaults.
|
|
529
529
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
530
|
-
* @returns The complete Axios response, including the typed
|
|
530
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
531
531
|
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: admin:wallet:read_own.
|
|
532
532
|
*/
|
|
533
533
|
economyLeaderboardsGet(params, options) {
|
|
534
534
|
return this.client.request({ ...options, method: "GET", url: `/api/v1/economy/leaderboards`, params });
|
|
535
535
|
}
|
|
536
536
|
/**
|
|
537
|
-
*
|
|
537
|
+
* Read current profile wallet, allocations, entitlements, sessions and purchases. Session refill is a read projection; it does not persist consumption or a journal entry.
|
|
538
538
|
* Calls `GET /api/v1/economy/me` through the shared IDP-aware Faiber client.
|
|
539
539
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
540
|
-
* @returns The complete Axios response, including the typed
|
|
540
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
541
541
|
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: admin:wallet:read_own.
|
|
542
542
|
*/
|
|
543
543
|
economyMeGet(options) {
|
|
544
544
|
return this.client.request({ ...options, method: "GET", url: `/api/v1/economy/me` });
|
|
545
545
|
}
|
|
546
546
|
/**
|
|
547
|
-
*
|
|
547
|
+
* Read immutable journal changes belonging to the current profile using exclusive after and limit. Other profiles and original commands/results are omitted; before and descending are ignored by this handler.
|
|
548
548
|
* Calls `GET /api/v1/economy/me/history` through the shared IDP-aware Faiber client.
|
|
549
549
|
* @param params Typed query parameters; omitted members retain backend defaults.
|
|
550
550
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
551
|
-
* @returns The complete Axios response, including the typed
|
|
551
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
552
552
|
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: admin:wallet:read_own.
|
|
553
553
|
*/
|
|
554
554
|
economyMyHistoryGet(params, options) {
|
|
555
555
|
return this.client.request({ ...options, method: "GET", url: `/api/v1/economy/me/history`, params });
|
|
556
556
|
}
|
|
557
557
|
/**
|
|
558
|
-
*
|
|
558
|
+
* Purchase configured catalog credit with Coin, money or crafting. Reuse event_id for retries; money returns an expiring quote and provider handoff appears on the purchase projection.
|
|
559
559
|
* Calls `POST /api/v1/economy/me/purchases` through the shared IDP-aware Faiber client.
|
|
560
560
|
* @param data Typed JSON request body.
|
|
561
561
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
562
|
-
* @returns The complete Axios response, including the typed
|
|
562
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
563
563
|
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: admin:wallet:read_own.
|
|
564
564
|
*/
|
|
565
565
|
economyPurchasePost(data, options) {
|
|
566
566
|
return this.client.request({ ...options, method: "POST", url: `/api/v1/economy/me/purchases`, data: data });
|
|
567
567
|
}
|
|
568
568
|
/**
|
|
569
|
-
*
|
|
569
|
+
* Simulate a reward for the current profile and roll back every mutation. Input verified evidence is not accepted; completion remains subject to the owning producer/operator authority rules.
|
|
570
570
|
* Calls `POST /api/v1/economy/me/rewards/preview` through the shared IDP-aware Faiber client.
|
|
571
571
|
* @param data Typed JSON request body.
|
|
572
572
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
573
|
-
* @returns The complete Axios response, including the typed
|
|
573
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
574
574
|
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: admin:wallet:read_own.
|
|
575
575
|
*/
|
|
576
576
|
economyPreviewPost(data, options) {
|
|
577
577
|
return this.client.request({ ...options, method: "POST", url: `/api/v1/economy/me/rewards/preview`, data: data });
|
|
578
578
|
}
|
|
579
579
|
/**
|
|
580
|
-
*
|
|
580
|
+
* Apply only available credit that fits below a current profile session Charge maximum; preserve excess credit. Reuse event_id for retries.
|
|
581
581
|
* Calls `POST /api/v1/economy/me/sessions/{session_id}/credit` through the shared IDP-aware Faiber client.
|
|
582
582
|
* @param sessionId Backend path identifier `session_id`.
|
|
583
583
|
* @param data Typed JSON request body.
|
|
584
584
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
585
|
-
* @returns The complete Axios response, including the typed
|
|
585
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
586
586
|
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: admin:wallet:read_own.
|
|
587
587
|
*/
|
|
588
588
|
economyCreditPost(sessionId, data, options) {
|
|
589
589
|
return this.client.request({ ...options, method: "POST", url: `/api/v1/economy/me/sessions/${encodeURIComponent(sessionId)}/credit`, data: data });
|
|
590
590
|
}
|
|
591
591
|
/**
|
|
592
|
-
*
|
|
592
|
+
* Read supported economy object projections by kind, optional exact object_key/profile_id/scope_id and offset. limit defaults to 100 and caps at 500; configuration_projection exposes producer acknowledgement revisions.
|
|
593
593
|
* Calls `GET /api/v1/economy/objects/{kind}` through the shared IDP-aware Faiber client.
|
|
594
594
|
* @param kind Backend path identifier `kind`.
|
|
595
595
|
* @param params Typed query parameters; omitted members retain backend defaults.
|
|
596
596
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
597
|
-
* @returns The complete Axios response, including the typed
|
|
597
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
598
598
|
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: admin:bank_transaction:read.
|
|
599
599
|
*/
|
|
600
600
|
economyObjectsGet(kind, params, options) {
|
|
601
601
|
return this.client.request({ ...options, method: "GET", url: `/api/v1/economy/objects/${encodeURIComponent(kind)}`, params });
|
|
602
602
|
}
|
|
603
603
|
/**
|
|
604
|
-
*
|
|
604
|
+
* Read current economy policy or null before configuration, including latest configuration_revision when present. Decimal quantities remain exact strings.
|
|
605
605
|
* Calls `GET /api/v1/economy/policy` through the shared IDP-aware Faiber client.
|
|
606
606
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
607
|
-
* @returns The complete Axios response, including the typed
|
|
607
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
608
608
|
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: admin:coin_settings:read.
|
|
609
609
|
*/
|
|
610
610
|
economyPolicyGetGet(options) {
|
|
611
611
|
return this.client.request({ ...options, method: "GET", url: `/api/v1/economy/policy` });
|
|
612
612
|
}
|
|
613
613
|
/**
|
|
614
|
-
*
|
|
614
|
+
* Validate and replace economy policy with a higher version under the financial lock. Launch, initial supply, currency and coin asset remain immutable; referenced assets, funding shares and evidence bindings are validated and published transactionally.
|
|
615
615
|
* Calls `PUT /api/v1/economy/policy` through the shared IDP-aware Faiber client.
|
|
616
616
|
* @param data Typed JSON request body.
|
|
617
617
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
618
|
-
* @returns The complete Axios response, including the typed
|
|
618
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
619
619
|
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: admin:coin_settings:update.
|
|
620
620
|
*/
|
|
621
621
|
economyPolicyPutPut(data, options) {
|
|
622
622
|
return this.client.request({ ...options, method: "PUT", url: `/api/v1/economy/policy`, data: data });
|
|
623
623
|
}
|
|
624
624
|
/**
|
|
625
|
-
*
|
|
625
|
+
* Read configured currency, live Coin unit value and bank counters; unconfigured economy returns 422.
|
|
626
626
|
* Calls `GET /api/v1/economy/valuation` through the shared IDP-aware Faiber client.
|
|
627
627
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
628
|
-
* @returns The complete Axios response, including the typed
|
|
628
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
629
629
|
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: admin:wallet:read_own.
|
|
630
630
|
*/
|
|
631
631
|
economyValuationGet(options) {
|
|
632
632
|
return this.client.request({ ...options, method: "GET", url: `/api/v1/economy/valuation` });
|
|
633
633
|
}
|
|
634
634
|
/**
|
|
635
|
-
*
|
|
635
|
+
* Read one escrow using the server-only x-game-service-token header. Returns {data:receipt} with camelCase decimal strings and no status/message fields; absent match returns 404.
|
|
636
636
|
* Calls `GET /api/v1/games/escrows/{match_id}` through the shared IDP-aware Faiber client.
|
|
637
637
|
* @param matchId Backend path identifier `match_id`.
|
|
638
638
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
639
|
-
* @returns The complete Axios response, including the typed
|
|
639
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
640
640
|
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: session-derived or public bootstrap route.
|
|
641
641
|
*/
|
|
642
642
|
gameEscrowShowGet(matchId, options) {
|
|
643
643
|
return this.client.request({ ...options, method: "GET", url: `/api/v1/games/escrows/${encodeURIComponent(matchId)}` });
|
|
644
644
|
}
|
|
645
645
|
/**
|
|
646
|
-
*
|
|
646
|
+
* Refund a funded legacy escrow using server-only x-game-service-token; refunded replay succeeds. Other states and scoped economy conflict with 409. Returns {data:receipt}.
|
|
647
647
|
* Calls `POST /api/v1/games/escrows/{match_id}/refund` through the shared IDP-aware Faiber client.
|
|
648
648
|
* @param matchId Backend path identifier `match_id`.
|
|
649
649
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
650
|
-
* @returns The complete Axios response, including the typed
|
|
650
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
651
651
|
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: session-derived or public bootstrap route.
|
|
652
652
|
*/
|
|
653
653
|
gameEscrowRefundPost(matchId, options) {
|
|
654
654
|
return this.client.request({ ...options, method: "POST", url: `/api/v1/games/escrows/${encodeURIComponent(matchId)}/refund` });
|
|
655
655
|
}
|
|
656
656
|
/**
|
|
657
|
-
*
|
|
657
|
+
* Settle a funded legacy escrow using server-only x-game-service-token. winnerIds must be unique nonempty participants; burnBasisPoints defaults to 1000 and allows 0–10000. Settled replay succeeds; incompatible state or scoped economy returns 409.
|
|
658
658
|
* Calls `POST /api/v1/games/escrows/{match_id}/settle` through the shared IDP-aware Faiber client.
|
|
659
659
|
* @param matchId Backend path identifier `match_id`.
|
|
660
660
|
* @param data Typed JSON request body.
|
|
661
661
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
662
|
-
* @returns The complete Axios response, including the typed
|
|
662
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
663
663
|
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: session-derived or public bootstrap route.
|
|
664
664
|
*/
|
|
665
665
|
gameEscrowSettlePost(matchId, data, options) {
|
|
666
666
|
return this.client.request({ ...options, method: "POST", url: `/api/v1/games/escrows/${encodeURIComponent(matchId)}/settle`, data: data });
|
|
667
667
|
}
|
|
668
668
|
/**
|
|
669
|
-
*
|
|
669
|
+
* Fund a legacy escrow using server-only x-game-service-token. Require two or more unique positive entries; identical match/entries replay succeeds, changed entries conflict. Scoped economy rejects this path with 409. Returns {data:receipt}.
|
|
670
670
|
* Calls `POST /api/v1/games/escrows/fund` through the shared IDP-aware Faiber client.
|
|
671
671
|
* @param data Typed JSON request body.
|
|
672
672
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
673
|
-
* @returns The complete Axios response, including the typed
|
|
673
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
674
674
|
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: session-derived or public bootstrap route.
|
|
675
675
|
*/
|
|
676
676
|
gameEscrowFundPost(data, options) {
|
|
677
677
|
return this.client.request({ ...options, method: "POST", url: `/api/v1/games/escrows/fund`, data: data });
|
|
678
678
|
}
|
|
679
679
|
/**
|
|
680
|
-
*
|
|
680
|
+
* Read concrete direct-broker metadata and Rust SDK integration snippets for published legacy events.
|
|
681
681
|
* Calls `GET /api/v1/integration/docs` through the shared IDP-aware Faiber client.
|
|
682
682
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
683
|
-
* @returns The complete Axios response, including the typed
|
|
683
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
684
684
|
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: admin:integration:read.
|
|
685
685
|
*/
|
|
686
686
|
integrationIntegrationDocsShowGet(options) {
|
|
687
687
|
return this.client.request({ ...options, method: "GET", url: `/api/v1/integration/docs` });
|
|
688
688
|
}
|
|
689
689
|
/**
|
|
690
|
-
*
|
|
690
|
+
* Read concrete Flow queue and event metadata supplied by the Cargo.lock-pinned infera-flow-sdk; no handler-local ACL is enforced.
|
|
691
691
|
* Calls `GET /api/v1/integration/flow` through the shared IDP-aware Faiber client.
|
|
692
692
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
693
|
-
* @returns The complete Axios response, including the typed
|
|
693
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
694
694
|
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: session-derived or public bootstrap route.
|
|
695
695
|
*/
|
|
696
696
|
integrationFlowIntegrationShowGet(options) {
|
|
697
697
|
return this.client.request({ ...options, method: "GET", url: `/api/v1/integration/flow` });
|
|
698
698
|
}
|
|
699
699
|
/**
|
|
700
|
-
*
|
|
700
|
+
* Read configured RabbitMQ queue and concrete event/payload-field metadata; broker_url_hint is documentation rather than a live credential.
|
|
701
701
|
* Calls `GET /api/v1/integration/rabbitmq` through the shared IDP-aware Faiber client.
|
|
702
702
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
703
|
-
* @returns The complete Axios response, including the typed
|
|
703
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
704
704
|
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: admin:integration:read.
|
|
705
705
|
*/
|
|
706
706
|
integrationRabbitmqIntegrationShowGet(options) {
|
|
707
707
|
return this.client.request({ ...options, method: "GET", url: `/api/v1/integration/rabbitmq` });
|
|
708
708
|
}
|
|
709
709
|
/**
|
|
710
|
-
* Publish an immutable
|
|
710
|
+
* Publish an immutable fitness product using server-only FITNESS_PROFILE_SERVICE_TOKEN as Bearer authorization. Require fitness: tier, gym metadata, IRR price 1000–1000000000, zero points/storage and no linked product. Changed existing versions return 409.
|
|
711
711
|
* Calls `PUT /api/v1/internal/fitness/products` through the shared IDP-aware Faiber client.
|
|
712
712
|
* @param data Typed JSON request body.
|
|
713
713
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
714
|
-
* @returns The complete Axios response, including the typed
|
|
714
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
715
715
|
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: server-only FITNESS_PROFILE_SERVICE_TOKEN bearer credential.
|
|
716
716
|
*/
|
|
717
717
|
fitnessPublishPut(data, options) {
|
|
718
718
|
return this.client.request({ ...options, method: "PUT", url: `/api/v1/internal/fitness/products`, data: data });
|
|
719
719
|
}
|
|
720
720
|
/**
|
|
721
|
-
*
|
|
721
|
+
* Read Coin/Gem rankings and current profile neighbors. profile_ids is a comma-separated cohort; invalid UUIDs are ignored and the current profile always participates. top/neighbors default to 3 and clamp to 1–10.
|
|
722
722
|
* Calls `GET /api/v1/leaderboard` through the shared IDP-aware Faiber client.
|
|
723
723
|
* @param params Typed query parameters; omitted members retain backend defaults.
|
|
724
724
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
725
|
-
* @returns The complete Axios response, including the typed
|
|
725
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
726
726
|
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: admin:wallet:read_own.
|
|
727
727
|
*/
|
|
728
728
|
leaderboardLeaderboardIndexGet(params, options) {
|
|
729
729
|
return this.client.request({ ...options, method: "GET", url: `/api/v1/leaderboard`, params });
|
|
730
730
|
}
|
|
731
731
|
/**
|
|
732
|
-
*
|
|
732
|
+
* Page user plan rows newest updated first with tier/profile UUID search. This list returns stored tiers; the single-profile read separately resolves expired tiers.
|
|
733
733
|
* Calls `GET /api/v1/llm-pricing/plans` through the shared IDP-aware Faiber client.
|
|
734
734
|
* @param params Typed query parameters; omitted members retain backend defaults.
|
|
735
735
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
736
|
-
* @returns The complete Axios response, including the typed
|
|
736
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
737
737
|
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: admin:charge:read.
|
|
738
738
|
*/
|
|
739
739
|
llmUsagePlansIndexGet(params, options) {
|
|
740
740
|
return this.client.request({ ...options, method: "GET", url: `/api/v1/llm-pricing/plans`, params });
|
|
741
741
|
}
|
|
742
742
|
/**
|
|
743
|
-
*
|
|
743
|
+
* Delete the plan row for a profile, including when absent; returns HTTP 200 with data:null.
|
|
744
744
|
* Calls `DELETE /api/v1/llm-pricing/plans/{profile_id}` through the shared IDP-aware Faiber client.
|
|
745
745
|
* @param profileId Backend path identifier `profile_id`.
|
|
746
746
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
747
|
-
* @returns The complete Axios response, including the typed
|
|
747
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
748
748
|
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: admin:charge:update.
|
|
749
749
|
*/
|
|
750
750
|
llmUsagePlanDeleteDelete(profileId, options) {
|
|
751
751
|
return this.client.request({ ...options, method: "DELETE", url: `/api/v1/llm-pricing/plans/${encodeURIComponent(profileId)}` });
|
|
752
752
|
}
|
|
753
753
|
/**
|
|
754
|
-
*
|
|
754
|
+
* Read a profile plan with expired/missing plans projected as free; a missing row returns a synthetic free response with zero points rather than 404.
|
|
755
755
|
* Calls `GET /api/v1/llm-pricing/plans/{profile_id}` through the shared IDP-aware Faiber client.
|
|
756
756
|
* @param profileId Backend path identifier `profile_id`.
|
|
757
757
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
758
|
-
* @returns The complete Axios response, including the typed
|
|
758
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
759
759
|
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: admin:charge:read.
|
|
760
760
|
*/
|
|
761
761
|
llmUsagePlanShowGet(profileId, options) {
|
|
762
762
|
return this.client.request({ ...options, method: "GET", url: `/api/v1/llm-pricing/plans/${encodeURIComponent(profileId)}` });
|
|
763
763
|
}
|
|
764
764
|
/**
|
|
765
|
-
*
|
|
765
|
+
* Set a profile plan tier to free/pro/max/enterprise; invalid tiers return 400. Paid tiers expire after 30 days; free clears expiry. Returns HTTP 200.
|
|
766
766
|
* Calls `PUT /api/v1/llm-pricing/plans/{profile_id}` through the shared IDP-aware Faiber client.
|
|
767
767
|
* @param profileId Backend path identifier `profile_id`.
|
|
768
768
|
* @param data Typed JSON request body.
|
|
769
769
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
770
|
-
* @returns The complete Axios response, including the typed
|
|
770
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
771
771
|
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: admin:charge:update.
|
|
772
772
|
*/
|
|
773
773
|
llmUsagePlanSetPut(profileId, data, options) {
|
|
774
774
|
return this.client.request({ ...options, method: "PUT", url: `/api/v1/llm-pricing/plans/${encodeURIComponent(profileId)}`, data: data });
|
|
775
775
|
}
|
|
776
776
|
/**
|
|
777
|
-
*
|
|
777
|
+
* Page the current profile asset history with bracket pagination, optional asset kind/name and earned_only. Aliases wallet:read_own and customer:wallet:read_own are declared alongside admin:wallet:read_own.
|
|
778
778
|
* Calls `GET /api/v1/me/asset-history` through the shared IDP-aware Faiber client.
|
|
779
779
|
* @param params Typed query parameters; omitted members retain backend defaults.
|
|
780
780
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
781
|
-
* @returns The complete Axios response, including the typed
|
|
781
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
782
782
|
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: admin:wallet:read_own.
|
|
783
783
|
*/
|
|
784
784
|
walletMeAssetHistoryGet(params, options) {
|
|
785
785
|
return this.client.request({ ...options, method: "GET", url: `/api/v1/me/asset-history`, params });
|
|
786
786
|
}
|
|
787
787
|
/**
|
|
788
|
-
*
|
|
788
|
+
* Read and enrich the current profile wallet: exact Coin/XP/Charge/Gem balances, positive badges and optional Charge/rank projections. A nonnil profile identity is required.
|
|
789
789
|
* Calls `GET /api/v1/me/assets` through the shared IDP-aware Faiber client.
|
|
790
790
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
791
|
-
* @returns The complete Axios response, including the typed
|
|
791
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
792
792
|
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: session-derived or public bootstrap route.
|
|
793
793
|
*/
|
|
794
794
|
walletMeAssetsShowGet(options) {
|
|
795
795
|
return this.client.request({ ...options, method: "GET", url: `/api/v1/me/assets` });
|
|
796
796
|
}
|
|
797
797
|
/**
|
|
798
|
-
*
|
|
798
|
+
* Read badge definitions and balances scoped to the current profile and optional subject_type/subject_id; absent subject_type defaults to profile. A nonnil profile identity is required.
|
|
799
799
|
* Calls `GET /api/v1/me/badges` through the shared IDP-aware Faiber client.
|
|
800
800
|
* @param params Typed query parameters; omitted members retain backend defaults.
|
|
801
801
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
802
|
-
* @returns The complete Axios response, including the typed
|
|
802
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
803
803
|
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: session-derived or public bootstrap route.
|
|
804
804
|
*/
|
|
805
805
|
walletMeBadgesShowGet(params, options) {
|
|
806
806
|
return this.client.request({ ...options, method: "GET", url: `/api/v1/me/badges`, params });
|
|
807
807
|
}
|
|
808
808
|
/**
|
|
809
|
-
*
|
|
809
|
+
* Read the current profile badge level requirements and progress for an optional subject scope; absent subject_type defaults to profile.
|
|
810
810
|
* Calls `GET /api/v1/me/badges/todos` through the shared IDP-aware Faiber client.
|
|
811
811
|
* @param params Typed query parameters; omitted members retain backend defaults.
|
|
812
812
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
813
|
-
* @returns The complete Axios response, including the typed
|
|
813
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
814
814
|
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: admin:wallet:read_own.
|
|
815
815
|
*/
|
|
816
816
|
walletMeBadgeTodosShowGet(params, options) {
|
|
817
817
|
return this.client.request({ ...options, method: "GET", url: `/api/v1/me/badges/todos`, params });
|
|
818
818
|
}
|
|
819
819
|
/**
|
|
820
|
-
*
|
|
820
|
+
* Read current profile metered LLM buckets and totals. range accepts 24h/week/month/year; absent or unrecognized values become 24h. Decimal points remain strings.
|
|
821
821
|
* Calls `GET /api/v1/me/llm-usage` through the shared IDP-aware Faiber client.
|
|
822
822
|
* @param params Typed query parameters; omitted members retain backend defaults.
|
|
823
823
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
824
|
-
* @returns The complete Axios response, including the typed
|
|
824
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
825
825
|
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: admin:wallet:read_own.
|
|
826
826
|
*/
|
|
827
827
|
walletMeLlmUsageGet(params, options) {
|
|
828
828
|
return this.client.request({ ...options, method: "GET", url: `/api/v1/me/llm-usage`, params });
|
|
829
829
|
}
|
|
830
830
|
/**
|
|
831
|
-
*
|
|
831
|
+
* Page current profile ledger entries newest first, with reference/date filters and optional completed-local-day usage rollup. page/page_size default to 1/20, size clamps to 1–100; timezone clamps to ±840 minutes. Rollup omits the open local day.
|
|
832
832
|
* Calls `GET /api/v1/me/transactions` through the shared IDP-aware Faiber client.
|
|
833
833
|
* @param params Typed query parameters; omitted members retain backend defaults.
|
|
834
834
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
835
|
-
* @returns The complete Axios response, including the typed
|
|
835
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
836
836
|
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: session-derived or public bootstrap route.
|
|
837
837
|
*/
|
|
838
838
|
walletMeTransactionsGet(params, options) {
|
|
839
839
|
return this.client.request({ ...options, method: "GET", url: `/api/v1/me/transactions`, params });
|
|
840
840
|
}
|
|
841
841
|
/**
|
|
842
|
-
*
|
|
842
|
+
* Read a single ledger entry by UUID scoped to the current profile; a missing or foreign entry returns 404.
|
|
843
843
|
* Calls `GET /api/v1/me/transactions/{id}` through the shared IDP-aware Faiber client.
|
|
844
844
|
* @param id Backend path identifier `id`.
|
|
845
845
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
846
|
-
* @returns The complete Axios response, including the typed
|
|
846
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
847
847
|
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: admin:wallet:read_own.
|
|
848
848
|
*/
|
|
849
849
|
walletMeTransactionShowGet(id, options) {
|
|
850
850
|
return this.client.request({ ...options, method: "GET", url: `/api/v1/me/transactions/${encodeURIComponent(id)}` });
|
|
851
851
|
}
|
|
852
852
|
/**
|
|
853
|
-
*
|
|
853
|
+
* Page current profile metered debit totals by local day, newest first, with inclusive date bounds and timezone offset. Page defaults to 1/20, size clamps to 1–100; values use camelCase and exact decimal strings.
|
|
854
854
|
* Calls `GET /api/v1/me/transactions/days` through the shared IDP-aware Faiber client.
|
|
855
855
|
* @param params Typed query parameters; omitted members retain backend defaults.
|
|
856
856
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
857
|
-
* @returns The complete Axios response, including the typed
|
|
857
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
858
858
|
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: admin:wallet:read_own.
|
|
859
859
|
*/
|
|
860
860
|
walletMeTransactionDaysGet(params, options) {
|
|
861
861
|
return this.client.request({ ...options, method: "GET", url: `/api/v1/me/transactions/days`, params });
|
|
862
862
|
}
|
|
863
863
|
/**
|
|
864
|
-
*
|
|
864
|
+
* Read current profile resource and LLM usage for one local day; invalid date returns 400. Ledger totals are authoritative and may differ from fine-grained record sums due to decimal precision.
|
|
865
865
|
* Calls `GET /api/v1/me/transactions/days/{day}` through the shared IDP-aware Faiber client.
|
|
866
866
|
* @param day Backend path identifier `day`.
|
|
867
867
|
* @param params Typed query parameters; omitted members retain backend defaults.
|
|
868
868
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
869
|
-
* @returns The complete Axios response, including the typed
|
|
869
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
870
870
|
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: admin:wallet:read_own.
|
|
871
871
|
*/
|
|
872
872
|
walletMeTransactionDayGet(day, params, options) {
|
|
873
873
|
return this.client.request({ ...options, method: "GET", url: `/api/v1/me/transactions/days/${encodeURIComponent(day)}`, params });
|
|
874
874
|
}
|
|
875
875
|
/**
|
|
876
|
-
*
|
|
876
|
+
* List active nondeleted plan products ordered by price. Reading may initialize missing project_creation_attempts_monthly metadata; monetary values are decimal strings.
|
|
877
877
|
* Calls `GET /api/v1/plans` through the shared IDP-aware Faiber client.
|
|
878
878
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
879
|
-
* @returns The complete Axios response, including the typed
|
|
879
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
880
880
|
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: session-derived or public bootstrap route.
|
|
881
881
|
*/
|
|
882
882
|
walletBillingPlansIndexGet(options) {
|
|
883
883
|
return this.client.request({ ...options, method: "GET", url: `/api/v1/plans` });
|
|
884
884
|
}
|
|
885
885
|
/**
|
|
886
|
-
*
|
|
886
|
+
* Read the current profile effective plan; absent or expired plans project as free. Paid plan renewal opens during the final seven days. Response keys use camelCase.
|
|
887
887
|
* Calls `GET /api/v1/plans/current` through the shared IDP-aware Faiber client.
|
|
888
888
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
889
|
-
* @returns The complete Axios response, including the typed
|
|
889
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
890
890
|
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: session-derived or public bootstrap route.
|
|
891
891
|
*/
|
|
892
892
|
walletBillingCurrentPlanGet(options) {
|
|
893
893
|
return this.client.request({ ...options, method: "GET", url: `/api/v1/plans/current` });
|
|
894
894
|
}
|
|
895
895
|
/**
|
|
896
|
-
*
|
|
896
|
+
* Start a configured plan checkout; fitness tiers require their owning checkout. Same-tier renewal before the final seven days conflicts; eligible Pro-to-Max upgrade uses the configured price difference.
|
|
897
897
|
* Calls `POST /api/v1/plans/purchase` through the shared IDP-aware Faiber client.
|
|
898
898
|
* @param data Typed JSON request body.
|
|
899
899
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
900
|
-
* @returns The complete Axios response, including the typed
|
|
900
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
901
901
|
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: session-derived or public bootstrap route.
|
|
902
902
|
*/
|
|
903
903
|
walletBillingPlansPurchasePost(data, options) {
|
|
904
904
|
return this.client.request({ ...options, method: "POST", url: `/api/v1/plans/purchase`, data: data });
|
|
905
905
|
}
|
|
906
906
|
/**
|
|
907
|
-
*
|
|
907
|
+
* Read configured built-in points packs s/m/l with decimal-string price and points; no pagination.
|
|
908
908
|
* Calls `GET /api/v1/points-packs` through the shared IDP-aware Faiber client.
|
|
909
909
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
910
|
-
* @returns The complete Axios response, including the typed
|
|
910
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
911
911
|
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: session-derived or public bootstrap route.
|
|
912
912
|
*/
|
|
913
913
|
walletBillingPointsPacksIndexGet(options) {
|
|
914
914
|
return this.client.request({ ...options, method: "GET", url: `/api/v1/points-packs` });
|
|
915
915
|
}
|
|
916
916
|
/**
|
|
917
|
-
*
|
|
917
|
+
* Start a points checkout using a nonempty pack_id or whole custom points between 10000 and 100000000. pack_id takes precedence; missing selection returns 422.
|
|
918
918
|
* Calls `POST /api/v1/points-packs/purchase` through the shared IDP-aware Faiber client.
|
|
919
919
|
* @param data Typed JSON request body.
|
|
920
920
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
921
|
-
* @returns The complete Axios response, including the typed
|
|
921
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
922
922
|
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: session-derived or public bootstrap route.
|
|
923
923
|
*/
|
|
924
924
|
walletBillingPointsPacksPurchasePost(data, options) {
|
|
925
925
|
return this.client.request({ ...options, method: "POST", url: `/api/v1/points-packs/purchase`, data: data });
|
|
926
926
|
}
|
|
927
927
|
/**
|
|
928
|
-
*
|
|
928
|
+
* Page nondeleted ranks ordered by min_xp; search matches name/title/description. Pagination defaults to page 1, size 20, clamped to 1–100.
|
|
929
929
|
* Calls `GET /api/v1/ranks` through the shared IDP-aware Faiber client.
|
|
930
930
|
* @param params Typed query parameters; omitted members retain backend defaults.
|
|
931
931
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
932
|
-
* @returns The complete Axios response, including the typed
|
|
932
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
933
933
|
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: admin:rank:read.
|
|
934
934
|
*/
|
|
935
935
|
rankRanksIndexGet(params, options) {
|
|
936
936
|
return this.client.request({ ...options, method: "GET", url: `/api/v1/ranks`, params });
|
|
937
937
|
}
|
|
938
938
|
/**
|
|
939
|
-
*
|
|
939
|
+
* Create an XP rank with required name and min_xp. A negative threshold returns 400 and a duplicate active threshold returns 409; success returns HTTP 200.
|
|
940
940
|
* Calls `POST /api/v1/ranks` through the shared IDP-aware Faiber client.
|
|
941
941
|
* @param data Typed JSON request body.
|
|
942
942
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
943
|
-
* @returns The complete Axios response, including the typed
|
|
943
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
944
944
|
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: admin:rank:create.
|
|
945
945
|
*/
|
|
946
946
|
rankRanksCreatePost(data, options) {
|
|
947
947
|
return this.client.request({ ...options, method: "POST", url: `/api/v1/ranks`, data: data });
|
|
948
948
|
}
|
|
949
949
|
/**
|
|
950
|
-
*
|
|
950
|
+
* Soft-delete one rank; returns HTTP 200 with data:null, or 404 when absent.
|
|
951
951
|
* Calls `DELETE /api/v1/ranks/{id}` through the shared IDP-aware Faiber client.
|
|
952
952
|
* @param id Backend path identifier `id`.
|
|
953
953
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
954
|
-
* @returns The complete Axios response, including the typed
|
|
954
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
955
955
|
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: admin:rank:delete.
|
|
956
956
|
*/
|
|
957
957
|
rankRanksDeleteDelete(id, options) {
|
|
958
958
|
return this.client.request({ ...options, method: "DELETE", url: `/api/v1/ranks/${encodeURIComponent(id)}` });
|
|
959
959
|
}
|
|
960
960
|
/**
|
|
961
|
-
*
|
|
961
|
+
* Read one nondeleted XP rank by UUID; absent ranks return 404.
|
|
962
962
|
* Calls `GET /api/v1/ranks/{id}` through the shared IDP-aware Faiber client.
|
|
963
963
|
* @param id Backend path identifier `id`.
|
|
964
964
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
965
|
-
* @returns The complete Axios response, including the typed
|
|
965
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
966
966
|
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: admin:rank:read.
|
|
967
967
|
*/
|
|
968
968
|
rankRanksShowGet(id, options) {
|
|
969
969
|
return this.client.request({ ...options, method: "GET", url: `/api/v1/ranks/${encodeURIComponent(id)}` });
|
|
970
970
|
}
|
|
971
971
|
/**
|
|
972
|
-
*
|
|
972
|
+
* Patch an XP rank; null fields preserve existing values. Changed min_xp must be nonnegative and unique among nondeleted ranks; missing rank returns 404.
|
|
973
973
|
* Calls `PATCH /api/v1/ranks/{id}` through the shared IDP-aware Faiber client.
|
|
974
974
|
* @param id Backend path identifier `id`.
|
|
975
975
|
* @param data Typed JSON request body.
|
|
976
976
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
977
|
-
* @returns The complete Axios response, including the typed
|
|
977
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
978
978
|
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: admin:rank:update.
|
|
979
979
|
*/
|
|
980
980
|
rankRanksUpdatePatch(id, data, options) {
|
|
981
981
|
return this.client.request({ ...options, method: "PATCH", url: `/api/v1/ranks/${encodeURIComponent(id)}`, data: data });
|
|
982
982
|
}
|
|
983
983
|
/**
|
|
984
|
-
*
|
|
984
|
+
* Permanently delete current-profile sandbox data upstream and preserve the local billing/configuration record in purged state. Upstream failure returns 502; returns a raw status/message object.
|
|
985
985
|
* Calls `DELETE /api/v1/sandbox-resources/{project}` through the shared IDP-aware Faiber client.
|
|
986
986
|
* @param project Backend path identifier `project`.
|
|
987
987
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
988
|
-
* @returns The complete Axios response, including the typed
|
|
988
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
989
989
|
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: session-derived or public bootstrap route.
|
|
990
990
|
*/
|
|
991
991
|
sandboxBillingPurgeDelete(project, options) {
|
|
992
992
|
return this.client.request({ ...options, method: "DELETE", url: `/api/v1/sandbox-resources/${encodeURIComponent(project)}` });
|
|
993
993
|
}
|
|
994
994
|
/**
|
|
995
|
-
*
|
|
995
|
+
* Read an existing current-profile project allocation and effective pricing; absent allocation returns 404 and is not created.
|
|
996
996
|
* Calls `GET /api/v1/sandbox-resources/{project}` through the shared IDP-aware Faiber client.
|
|
997
997
|
* @param project Backend path identifier `project`.
|
|
998
998
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
999
|
-
* @returns The complete Axios response, including the typed
|
|
999
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
1000
1000
|
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: session-derived or public bootstrap route.
|
|
1001
1001
|
*/
|
|
1002
1002
|
sandboxBillingShowGet(project, options) {
|
|
1003
1003
|
return this.client.request({ ...options, method: "GET", url: `/api/v1/sandbox-resources/${encodeURIComponent(project)}` });
|
|
1004
1004
|
}
|
|
1005
1005
|
/**
|
|
1006
|
-
*
|
|
1006
|
+
* Apply validated current-profile resources through the sandbox service and persist the allocation. Optional max_hourly_amount and accepted_currency detect quote changes with 409. app_storage_mb is ignored and persisted as zero; upstream failure returns 502.
|
|
1007
1007
|
* Calls `PUT /api/v1/sandbox-resources/{project}` through the shared IDP-aware Faiber client.
|
|
1008
1008
|
* @param project Backend path identifier `project`.
|
|
1009
1009
|
* @param data Typed JSON request body.
|
|
1010
1010
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
1011
|
-
* @returns The complete Axios response, including the typed
|
|
1011
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
1012
1012
|
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: session-derived or public bootstrap route.
|
|
1013
1013
|
*/
|
|
1014
1014
|
sandboxBillingUpdatePut(project, data, options) {
|
|
1015
1015
|
return this.client.request({ ...options, method: "PUT", url: `/api/v1/sandbox-resources/${encodeURIComponent(project)}`, data: data });
|
|
1016
1016
|
}
|
|
1017
1017
|
/**
|
|
1018
|
-
*
|
|
1018
|
+
* Pause a current-profile sandbox and schedule seven-day retention; absent allocation may be initialized. The local state is saved before the upstream pause call; upstream failure returns 502.
|
|
1019
1019
|
* Calls `POST /api/v1/sandbox-resources/{project}/pause` through the shared IDP-aware Faiber client.
|
|
1020
1020
|
* @param project Backend path identifier `project`.
|
|
1021
1021
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
1022
|
-
* @returns The complete Axios response, including the typed
|
|
1022
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
1023
1023
|
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: session-derived or public bootstrap route.
|
|
1024
1024
|
*/
|
|
1025
1025
|
sandboxBillingPausePost(project, options) {
|
|
1026
1026
|
return this.client.request({ ...options, method: "POST", url: `/api/v1/sandbox-resources/${encodeURIComponent(project)}/pause` });
|
|
1027
1027
|
}
|
|
1028
1028
|
/**
|
|
1029
|
-
*
|
|
1029
|
+
* Read existing current-profile project effective pricing without allocation creation; missing project returns 404. Monetary fields are exact decimal strings.
|
|
1030
1030
|
* Calls `GET /api/v1/sandbox-resources/{project}/pricing` through the shared IDP-aware Faiber client.
|
|
1031
1031
|
* @param project Backend path identifier `project`.
|
|
1032
1032
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
1033
|
-
* @returns The complete Axios response, including the typed
|
|
1033
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
1034
1034
|
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: session-derived or public bootstrap route.
|
|
1035
1035
|
*/
|
|
1036
1036
|
sandboxBillingShowPricingGet(project, options) {
|
|
1037
1037
|
return this.client.request({ ...options, method: "GET", url: `/api/v1/sandbox-resources/${encodeURIComponent(project)}/pricing` });
|
|
1038
1038
|
}
|
|
1039
1039
|
/**
|
|
1040
|
-
*
|
|
1040
|
+
* Resume a current-profile sandbox after checking one hourly charge against the wallet; insufficient funds returns 402 and upstream failure 502. Successful resume clears retention and resets the charging clock.
|
|
1041
1041
|
* Calls `POST /api/v1/sandbox-resources/{project}/resume` through the shared IDP-aware Faiber client.
|
|
1042
1042
|
* @param project Backend path identifier `project`.
|
|
1043
1043
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
1044
|
-
* @returns The complete Axios response, including the typed
|
|
1044
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
1045
1045
|
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: session-derived or public bootstrap route.
|
|
1046
1046
|
*/
|
|
1047
1047
|
sandboxBillingResumePost(project, options) {
|
|
1048
1048
|
return this.client.request({ ...options, method: "POST", url: `/api/v1/sandbox-resources/${encodeURIComponent(project)}/resume` });
|
|
1049
1049
|
}
|
|
1050
1050
|
/**
|
|
1051
|
-
*
|
|
1051
|
+
* Validate and quote resources without allocation or wallet mutation. Return decimal CPU/RAM/disk/total/monthly values and all defaulted allocation fields. Bundles require exact sizes; advanced volumes must be at least 64 MiB and sum to database storage.
|
|
1052
1052
|
* Calls `POST /api/v1/sandbox-resources/quote` through the shared IDP-aware Faiber client.
|
|
1053
1053
|
* @param data Typed JSON request body.
|
|
1054
1054
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
1055
|
-
* @returns The complete Axios response, including the typed
|
|
1055
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
1056
1056
|
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: authenticated user.
|
|
1057
1057
|
*/
|
|
1058
1058
|
sandboxBillingQuoteResourcesPost(data, options) {
|
|
1059
1059
|
return this.client.request({ ...options, method: "POST", url: `/api/v1/sandbox-resources/quote`, data: data });
|
|
1060
1060
|
}
|
|
1061
1061
|
/**
|
|
1062
|
-
*
|
|
1062
|
+
* List current-profile subscriptions with optional exact project filter; returns {data:{subscriptions:[...]}} without pagination.
|
|
1063
1063
|
* Calls `GET /api/v1/subscriptions` through the shared IDP-aware Faiber client.
|
|
1064
1064
|
* @param params Typed query parameters; omitted members retain backend defaults.
|
|
1065
1065
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
1066
|
-
* @returns The complete Axios response, including the typed
|
|
1066
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
1067
1067
|
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: session-derived or public bootstrap route.
|
|
1068
1068
|
*/
|
|
1069
1069
|
walletBillingSubscriptionsIndexGet(params, options) {
|
|
1070
1070
|
return this.client.request({ ...options, method: "GET", url: `/api/v1/subscriptions`, params });
|
|
1071
1071
|
}
|
|
1072
1072
|
/**
|
|
1073
|
-
*
|
|
1073
|
+
* Cancel an owned subscription and clear next_charge_at. Missing IDs return 404 and foreign IDs 403; returns raw status/message.
|
|
1074
1074
|
* Calls `POST /api/v1/subscriptions/{id}/cancel` through the shared IDP-aware Faiber client.
|
|
1075
1075
|
* @param id Backend path identifier `id`.
|
|
1076
1076
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
1077
|
-
* @returns The complete Axios response, including the typed
|
|
1077
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
1078
1078
|
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: session-derived or public bootstrap route.
|
|
1079
1079
|
*/
|
|
1080
1080
|
walletBillingSubscriptionsCancelPost(id, options) {
|
|
1081
1081
|
return this.client.request({ ...options, method: "POST", url: `/api/v1/subscriptions/${encodeURIComponent(id)}/cancel` });
|
|
1082
1082
|
}
|
|
1083
1083
|
/**
|
|
1084
|
-
*
|
|
1084
|
+
* Permanently delete an owned project/service upstream and remove local subscription/retention rows. Upstream failure returns 503; local cleanup errors are ignored. Returns raw status/message.
|
|
1085
1085
|
* Calls `DELETE /api/v1/subscriptions/{project}/{service}/data` through the shared IDP-aware Faiber client.
|
|
1086
1086
|
* @param project Backend path identifier `project`.
|
|
1087
1087
|
* @param service Backend path identifier `service`.
|
|
1088
1088
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
1089
|
-
* @returns The complete Axios response, including the typed
|
|
1089
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
1090
1090
|
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: session-derived or public bootstrap route.
|
|
1091
1091
|
*/
|
|
1092
1092
|
serviceLifecycleDeletePermanentlyDelete(project, service, options) {
|
|
1093
1093
|
return this.client.request({ ...options, method: "DELETE", url: `/api/v1/subscriptions/${encodeURIComponent(project)}/${encodeURIComponent(service)}/data` });
|
|
1094
1094
|
}
|
|
1095
1095
|
/**
|
|
1096
|
-
*
|
|
1096
|
+
* Suspend a current-profile project/service subscription and record paused state; no purge deadline is set. Upstream scale-to-zero failure is ignored. Returns the raw lifecycle object.
|
|
1097
1097
|
* Calls `POST /api/v1/subscriptions/{project}/{service}/pause` through the shared IDP-aware Faiber client.
|
|
1098
1098
|
* @param project Backend path identifier `project`.
|
|
1099
1099
|
* @param service Backend path identifier `service`.
|
|
1100
1100
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
1101
|
-
* @returns The complete Axios response, including the typed
|
|
1101
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
1102
1102
|
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: session-derived or public bootstrap route.
|
|
1103
1103
|
*/
|
|
1104
1104
|
serviceLifecyclePausePost(project, service, options) {
|
|
1105
1105
|
return this.client.request({ ...options, method: "POST", url: `/api/v1/subscriptions/${encodeURIComponent(project)}/${encodeURIComponent(service)}/pause` });
|
|
1106
1106
|
}
|
|
1107
1107
|
/**
|
|
1108
|
-
*
|
|
1108
|
+
* Suspend an owned project/service subscription and schedule permanent deletion after seven days; upstream scale-to-zero failure is ignored. Returns the raw lifecycle object.
|
|
1109
1109
|
* Calls `POST /api/v1/subscriptions/{project}/{service}/remove` through the shared IDP-aware Faiber client.
|
|
1110
1110
|
* @param project Backend path identifier `project`.
|
|
1111
1111
|
* @param service Backend path identifier `service`.
|
|
1112
1112
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
1113
|
-
* @returns The complete Axios response, including the typed
|
|
1113
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
1114
1114
|
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: session-derived or public bootstrap route.
|
|
1115
1115
|
*/
|
|
1116
1116
|
serviceLifecycleRemovePost(project, service, options) {
|
|
1117
1117
|
return this.client.request({ ...options, method: "POST", url: `/api/v1/subscriptions/${encodeURIComponent(project)}/${encodeURIComponent(service)}/remove` });
|
|
1118
1118
|
}
|
|
1119
1119
|
/**
|
|
1120
|
-
*
|
|
1120
|
+
* Resume an owned project/service subscription after wallet and upstream checks. Insufficient funds returns 402; upstream failure returns 503. Returns the raw lifecycle object.
|
|
1121
1121
|
* Calls `POST /api/v1/subscriptions/{project}/{service}/resume` through the shared IDP-aware Faiber client.
|
|
1122
1122
|
* @param project Backend path identifier `project`.
|
|
1123
1123
|
* @param service Backend path identifier `service`.
|
|
1124
1124
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
1125
|
-
* @returns The complete Axios response, including the typed
|
|
1125
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
1126
1126
|
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: session-derived or public bootstrap route.
|
|
1127
1127
|
*/
|
|
1128
1128
|
serviceLifecycleResumePost(project, service, options) {
|
|
1129
1129
|
return this.client.request({ ...options, method: "POST", url: `/api/v1/subscriptions/${encodeURIComponent(project)}/${encodeURIComponent(service)}/resume` });
|
|
1130
1130
|
}
|
|
1131
1131
|
/**
|
|
1132
|
-
*
|
|
1132
|
+
* Start an external-payment deployment subscription purchase for nonempty service/period items. Period accepts hourly/monthly/annual; fetch pricing, create pending subscription rows and return payment handoff.
|
|
1133
1133
|
* Calls `POST /api/v1/subscriptions/purchase` through the shared IDP-aware Faiber client.
|
|
1134
1134
|
* @param data Typed JSON request body.
|
|
1135
1135
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
1136
|
-
* @returns The complete Axios response, including the typed
|
|
1136
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
1137
1137
|
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: session-derived or public bootstrap route.
|
|
1138
1138
|
*/
|
|
1139
1139
|
walletBillingSubscriptionsPurchasePost(data, options) {
|
|
1140
1140
|
return this.client.request({ ...options, method: "POST", url: `/api/v1/subscriptions/purchase`, data: data });
|
|
1141
1141
|
}
|
|
1142
1142
|
/**
|
|
1143
|
-
*
|
|
1143
|
+
* Page nondeleted action logs newest first, filtering profile/action and inclusive from/to timestamps. Search joins action and profile data; asset filters and earned_only are ignored by this handler.
|
|
1144
1144
|
* Calls `GET /api/v1/user-action-logs` through the shared IDP-aware Faiber client.
|
|
1145
1145
|
* @param params Typed query parameters; omitted members retain backend defaults.
|
|
1146
1146
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
1147
|
-
* @returns The complete Axios response, including the typed
|
|
1147
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
1148
1148
|
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: admin:user_action_log:read.
|
|
1149
1149
|
*/
|
|
1150
1150
|
logsUserActionLogsIndexGet(params, options) {
|
|
1151
1151
|
return this.client.request({ ...options, method: "GET", url: `/api/v1/user-action-logs`, params });
|
|
1152
1152
|
}
|
|
1153
1153
|
/**
|
|
1154
|
-
*
|
|
1154
|
+
* Page nondeleted asset logs newest first, filtering profile/action/asset identifiers, inclusive timestamps and optional positive earned quantities. Search joins action, asset and profile data.
|
|
1155
1155
|
* Calls `GET /api/v1/user-asset-logs` through the shared IDP-aware Faiber client.
|
|
1156
1156
|
* @param params Typed query parameters; omitted members retain backend defaults.
|
|
1157
1157
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
1158
|
-
* @returns The complete Axios response, including the typed
|
|
1158
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
1159
1159
|
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: admin:user_asset_log:read.
|
|
1160
1160
|
*/
|
|
1161
1161
|
logsUserAssetLogsIndexGet(params, options) {
|
|
1162
1162
|
return this.client.request({ ...options, method: "GET", url: `/api/v1/user-asset-logs`, params });
|
|
1163
1163
|
}
|
|
1164
1164
|
/**
|
|
1165
|
-
*
|
|
1165
|
+
* Read or initialize the current nonnil profile billing wallet; returns exact decimal balance and currency.
|
|
1166
1166
|
* Calls `GET /api/v1/wallet` through the shared IDP-aware Faiber client.
|
|
1167
1167
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
1168
|
-
* @returns The complete Axios response, including the typed
|
|
1168
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
1169
1169
|
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: session-derived or public bootstrap route.
|
|
1170
1170
|
*/
|
|
1171
1171
|
walletBillingWalletShowGet(options) {
|
|
1172
1172
|
return this.client.request({ ...options, method: "GET", url: `/api/v1/wallet` });
|
|
1173
1173
|
}
|
|
1174
1174
|
/**
|
|
1175
|
-
*
|
|
1175
|
+
* Read an owner-scoped wallet purchase receipt. Verified-checkout mode may refresh pending/failed provider state and apply a verified result; missing or foreign IDs return 404.
|
|
1176
1176
|
* Calls `GET /api/v1/wallet/purchases/{id}` through the shared IDP-aware Faiber client.
|
|
1177
1177
|
* @param id Backend path identifier `id`.
|
|
1178
1178
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
1179
|
-
* @returns The complete Axios response, including the typed
|
|
1179
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
1180
1180
|
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: authenticated purchase owner.
|
|
1181
1181
|
*/
|
|
1182
1182
|
walletBillingWalletPurchaseShowGet(id, options) {
|
|
1183
1183
|
return this.client.request({ ...options, method: "GET", url: `/api/v1/wallet/purchases/${encodeURIComponent(id)}` });
|
|
1184
1184
|
}
|
|
1185
1185
|
/**
|
|
1186
|
-
* Atomically debit the wallet and activate subscriptions
|
|
1186
|
+
* Atomically debit the current wallet and activate subscriptions using nonnil request_id, exact currency and max_amount. Reject duplicate service items/invalid periods, changed intents or prices with 409 and insufficient funds with 402; replay returns the committed fulfilled receipt.
|
|
1187
1187
|
* Calls `POST /api/v1/wallet/subscriptions` through the shared IDP-aware Faiber client.
|
|
1188
1188
|
* @param data Typed JSON request body.
|
|
1189
1189
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
1190
|
-
* @returns The complete Axios response, including the typed
|
|
1190
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
1191
1191
|
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: authenticated wallet owner.
|
|
1192
1192
|
*/
|
|
1193
1193
|
walletBillingWalletSubscriptionsPost(data, options) {
|
|
1194
1194
|
return this.client.request({ ...options, method: "POST", url: `/api/v1/wallet/subscriptions`, data: data });
|
|
1195
1195
|
}
|
|
1196
1196
|
/**
|
|
1197
|
-
*
|
|
1197
|
+
* Start a positive wallet top-up. Reuse request_id for account-scoped retries; mismatched amount/currency/owner or completed checkout conflicts with 409. Returns purchase_id/payment_url; payment initiation failure returns 502.
|
|
1198
1198
|
* Calls `POST /api/v1/wallet/topup` through the shared IDP-aware Faiber client.
|
|
1199
1199
|
* @param data Typed JSON request body.
|
|
1200
1200
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
1201
|
-
* @returns The complete Axios response, including the typed
|
|
1201
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
1202
1202
|
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: session-derived or public bootstrap route.
|
|
1203
1203
|
*/
|
|
1204
1204
|
walletBillingWalletTopupPost(data, options) {
|
|
1205
1205
|
return this.client.request({ ...options, method: "POST", url: `/api/v1/wallet/topup`, data: data });
|
|
1206
1206
|
}
|
|
1207
|
+
/**
|
|
1208
|
+
* Read process liveness and the static service version; this endpoint does not probe database or broker readiness.
|
|
1209
|
+
* Calls `GET /health` through the shared IDP-aware Faiber client.
|
|
1210
|
+
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
1211
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
1212
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: no handler permission check; deployment gateway policy is separate.
|
|
1213
|
+
*/
|
|
1214
|
+
routerHealthGet(options) {
|
|
1215
|
+
return this.client.request({ ...options, method: "GET", url: `/health` });
|
|
1216
|
+
}
|
|
1207
1217
|
}
|
|
1208
1218
|
//# sourceMappingURL=operations.js.map
|