@faiber/faiber-asset 0.24.0 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,110 +1,29 @@
1
- import type { ApiEnvelope, BackendJson, JsonObject, JsonValue, QueryParams, QueryValue } from "@faiber/sdk-core";
1
+ import type { ApiEnvelope, JsonObject, JsonValue, QueryParams, QueryValue } from "@faiber/sdk-core";
2
2
  /** Generated route contracts. Dynamic payload members remain JSON-safe and are documented with their Rust source type. */
3
- /** Backend response type: api. */
4
- export interface RouterStatusRouteGetResponse extends ApiEnvelope<JsonValue> {
5
- }
6
- /** Backend response type: api. */
7
- export interface RouterOpenapiJsonGetResponse extends ApiEnvelope<JsonValue> {
8
- }
3
+ /** Backend response type: HealthResponse. */
4
+ export type RouterStatusRouteGetResponse = import("@faiber/sdk-core").ServiceHealthResponse;
5
+ /** Backend response type: utoipa::openapi::OpenApi. */
6
+ export type RouterOpenapiJsonGetResponse = import("@faiber/sdk-core").ServiceOpenApiDocument;
9
7
  /** Backend query type: ActionListQuery. */
10
8
  export interface ActionActionsIndexGetQuery extends QueryParams {
11
- "page[number]"?: number | null;
12
- "page[size]"?: number | null;
13
- "page_number"?: string | null;
14
- "page_size"?: string | null;
9
+ "page[number]"?: number | null | string;
10
+ "page[size]"?: number | null | string;
15
11
  "search"?: string | null;
16
12
  }
17
13
  /** Backend response type: PagedResult<ActionResponse>. */
18
- export interface ActionActionsIndexGetResponseItem extends JsonObject {
19
- "id": string;
20
- "name": string;
21
- "title"?: string | null;
22
- "description"?: string | null;
23
- "season_id"?: string | null;
24
- "public": boolean;
25
- "criteria": BackendJson<"Json">;
26
- "achievement_assets": BackendJson<"Json">;
27
- "status": number;
28
- }
29
- export interface ActionActionsIndexGetResponsePageMeta extends JsonObject {
30
- "page": number;
31
- "page_size": number;
32
- "total_items": number;
33
- "total_pages": number;
34
- }
35
- export interface ActionActionsIndexGetResponseData extends JsonObject {
36
- "data": ActionActionsIndexGetResponseItem[];
37
- "meta": ActionActionsIndexGetResponsePageMeta;
38
- }
39
- export interface ActionActionsIndexGetResponse extends ApiEnvelope<ActionActionsIndexGetResponseData> {
40
- }
14
+ export type ActionActionsIndexGetResponse = import("./contracts.types.js").AssetActionPageResponse;
41
15
  /** Backend request type: CreateActionRequest. */
42
- export interface ActionActionsCreatePostInput extends JsonObject {
43
- "name": string;
44
- "title"?: string | null;
45
- "description"?: string | null;
46
- "season_id"?: string | null;
47
- "public"?: boolean | null;
48
- "criteria"?: BackendJson<"Json"> | null;
49
- "achievement_assets"?: BackendJson<"Json"> | null;
50
- "status"?: number | null;
51
- }
16
+ export type ActionActionsCreatePostInput = import("./contracts.types.js").AssetActionCreateInput;
52
17
  /** Backend response type: ActionResponse. */
53
- export interface ActionActionsCreatePostResponseData extends JsonObject {
54
- "id": string;
55
- "name": string;
56
- "title"?: string | null;
57
- "description"?: string | null;
58
- "season_id"?: string | null;
59
- "public": boolean;
60
- "criteria": BackendJson<"Json">;
61
- "achievement_assets": BackendJson<"Json">;
62
- "status": number;
63
- }
64
- export interface ActionActionsCreatePostResponse extends ApiEnvelope<ActionActionsCreatePostResponseData> {
65
- }
18
+ export type ActionActionsCreatePostResponse = import("./contracts.types.js").AssetActionRecordResponse;
66
19
  /** Backend response type: (). */
67
- export interface ActionActionsDeleteDeleteResponse extends ApiEnvelope<JsonObject> {
68
- }
20
+ export type ActionActionsDeleteDeleteResponse = import("./contracts.types.js").AssetEmptyDataResponse;
69
21
  /** Backend response type: ActionResponse. */
70
- export interface ActionActionsShowGetResponseData extends JsonObject {
71
- "id": string;
72
- "name": string;
73
- "title"?: string | null;
74
- "description"?: string | null;
75
- "season_id"?: string | null;
76
- "public": boolean;
77
- "criteria": BackendJson<"Json">;
78
- "achievement_assets": BackendJson<"Json">;
79
- "status": number;
80
- }
81
- export interface ActionActionsShowGetResponse extends ApiEnvelope<ActionActionsShowGetResponseData> {
82
- }
22
+ export type ActionActionsShowGetResponse = import("./contracts.types.js").AssetActionRecordResponse;
83
23
  /** Backend request type: UpdateActionRequest. */
84
- export interface ActionActionsUpdatePatchInput extends JsonObject {
85
- "name"?: string | null;
86
- "title"?: string | null;
87
- "description"?: string | null;
88
- "season_id"?: string | null;
89
- "public"?: boolean | null;
90
- "criteria"?: BackendJson<"Json"> | null;
91
- "achievement_assets"?: BackendJson<"Json"> | null;
92
- "status"?: number | null;
93
- }
24
+ export type ActionActionsUpdatePatchInput = import("./contracts.types.js").AssetActionUpdateInput;
94
25
  /** Backend response type: ActionResponse. */
95
- export interface ActionActionsUpdatePatchResponseData extends JsonObject {
96
- "id": string;
97
- "name": string;
98
- "title"?: string | null;
99
- "description"?: string | null;
100
- "season_id"?: string | null;
101
- "public": boolean;
102
- "criteria": BackendJson<"Json">;
103
- "achievement_assets": BackendJson<"Json">;
104
- "status": number;
105
- }
106
- export interface ActionActionsUpdatePatchResponse extends ApiEnvelope<ActionActionsUpdatePatchResponseData> {
107
- }
26
+ export type ActionActionsUpdatePatchResponse = import("./contracts.types.js").AssetActionRecordResponse;
108
27
  /** Backend request type: CompleteActionRequest. */
109
28
  export interface ActionActionsCompletePostInput extends JsonObject {
110
29
  "action_name": string;
@@ -113,17 +32,17 @@ export interface ActionActionsCompletePostInput extends JsonObject {
113
32
  "subject_type"?: string | null;
114
33
  "subject_id"?: string | null;
115
34
  "value"?: string | number | null;
116
- "metadata"?: BackendJson<"Json"> | null;
35
+ "metadata"?: JsonValue | null;
117
36
  "occurred_at"?: string | null;
118
37
  }
119
38
  /** Backend response type: crate::reward::engine::CompleteActionResult. */
120
- export type ActionActionsCompletePostResponseDataGrantsAssetType = "Coin" | "Badge" | "XP" | "Charge" | "Gem";
39
+ export type ActionActionsCompletePostResponseDataGrantsAssetType = "coin" | "badge" | "xp" | "charge" | "gem";
121
40
  export interface ActionActionsCompletePostResponseDataGrants extends JsonObject {
122
41
  "asset_id": string;
123
42
  "asset_name": string;
124
43
  "asset_type": ActionActionsCompletePostResponseDataGrantsAssetType;
125
44
  "subject_type": string;
126
- "subject_id"?: string | null;
45
+ "subject_id": string | null;
127
46
  "quantity": string;
128
47
  }
129
48
  export interface ActionActionsCompletePostResponseDataBadgeUpgrades extends JsonObject {
@@ -148,13 +67,13 @@ export interface ActionActionsCompletePostResponse extends ApiEnvelope<ActionAct
148
67
  export interface WalletBillingAdminPlanProductsIndexGetResponseItem extends JsonObject {
149
68
  "tier": string;
150
69
  "name": string;
151
- "description"?: string | null;
70
+ "description": string | null;
152
71
  "price": string;
153
72
  "currency": string;
154
73
  "duration_days": number;
155
74
  "points": string;
156
75
  "storage_gb": number;
157
- "product_id"?: string | null;
76
+ "product_id": string | null;
158
77
  "metadata": JsonValue;
159
78
  "status": number;
160
79
  }
@@ -178,13 +97,13 @@ export interface WalletBillingAdminPlanProductsUpdatePutInput extends JsonObject
178
97
  export interface WalletBillingAdminPlanProductsUpdatePutResponseData extends JsonObject {
179
98
  "tier": string;
180
99
  "name": string;
181
- "description"?: string | null;
100
+ "description": string | null;
182
101
  "price": string;
183
102
  "currency": string;
184
103
  "duration_days": number;
185
104
  "points": string;
186
105
  "storage_gb": number;
187
- "product_id"?: string | null;
106
+ "product_id": string | null;
188
107
  "metadata": JsonValue;
189
108
  "status": number;
190
109
  }
@@ -226,53 +145,8 @@ export interface SandboxBillingAdminProjectPricingOverridePutInput extends JsonO
226
145
  "monthly_price_override"?: string | number | null;
227
146
  }
228
147
  /** Backend response type: AllocationView. */
229
- export interface SandboxBillingAdminProjectPricingOverridePutResponseDataPrice extends JsonObject {
230
- "cpu": string;
231
- "ram": string;
232
- "database_storage": string;
233
- "minio_storage": string;
234
- "app_storage": string;
235
- "disk": string;
236
- "services": string;
237
- "resource_total": string;
238
- "total": string;
239
- "currency": string;
240
- }
241
- export interface SandboxBillingAdminProjectPricingOverridePutResponseDataUnitPrices extends JsonObject {
242
- "cpu_millicore_hour": string;
243
- "ram_mb_hour": string;
244
- "disk_mb_hour": string;
245
- "currency": string;
246
- }
247
- export interface SandboxBillingAdminProjectPricingOverridePutResponseData extends JsonObject {
248
- "id": string;
249
- "profile_id": string;
250
- "project": string;
251
- "cpu_millicores": number;
252
- "ram_mb": number;
253
- "database_storage_mb": number;
254
- "minio_storage_mb": number;
255
- "app_storage_mb": number;
256
- "volume_storage_mb": BackendJson<"Json">;
257
- "bundle_id"?: string | null;
258
- "monthly_price_override"?: string | null;
259
- "status": string;
260
- "paused_at"?: string | null;
261
- "purge_at"?: string | null;
262
- "last_charged_at"?: string | null;
263
- "applied_at"?: string | null;
264
- "created_at": string;
265
- "updated_at": string;
266
- "price": SandboxBillingAdminProjectPricingOverridePutResponseDataPrice;
267
- "unit_prices": SandboxBillingAdminProjectPricingOverridePutResponseDataUnitPrices;
268
- "currency": string;
269
- "hourly_price": string;
270
- "daily_estimate": string;
271
- "monthly_estimate": string;
272
- "next_charge_at": string;
273
- }
274
- export interface SandboxBillingAdminProjectPricingOverridePutResponse extends ApiEnvelope<SandboxBillingAdminProjectPricingOverridePutResponseData> {
275
- }
148
+ export type SandboxBillingAdminProjectPricingOverridePutResponseData = import("./contracts.types.js").AssetSandboxAllocation;
149
+ export type SandboxBillingAdminProjectPricingOverridePutResponse = import("./contracts.types.js").AssetSandboxAllocationResponse;
276
150
  /** Backend request type: AdminFinancialOwnerInput. */
277
151
  export interface SandboxBillingAdminProjectFinancialOwnerPutInput extends JsonObject {
278
152
  "current_profile_id": string;
@@ -286,10 +160,8 @@ export interface SandboxBillingAdminProjectFinancialOwnerPutResponseData extends
286
160
  export type SandboxBillingAdminProjectFinancialOwnerPutResponse = SandboxBillingAdminProjectFinancialOwnerPutResponseData;
287
161
  /** Backend query type: AdminSubscriptionListQuery. */
288
162
  export interface WalletBillingAdminSubscriptionsIndexGetQuery extends QueryParams {
289
- "page[number]"?: number | null;
290
- "page[size]"?: number | null;
291
- "page_number"?: string | null;
292
- "page_size"?: string | null;
163
+ "page[number]"?: number | null | string;
164
+ "page[size]"?: number | null | string;
293
165
  "project"?: string | null;
294
166
  "profile_id"?: string | null;
295
167
  "search"?: string | null;
@@ -304,10 +176,10 @@ export interface WalletBillingAdminSubscriptionsIndexGetResponseItem extends Jso
304
176
  "unit_price": string;
305
177
  "currency": string;
306
178
  "status": string;
307
- "purchase_id"?: string | null;
308
- "current_period_start"?: string | null;
309
- "current_period_end"?: string | null;
310
- "next_charge_at"?: string | null;
179
+ "purchase_id": string | null;
180
+ "current_period_start": string | null;
181
+ "current_period_end": string | null;
182
+ "next_charge_at": string | null;
311
183
  "created_at": string;
312
184
  "updated_at": string;
313
185
  }
@@ -332,7 +204,7 @@ export interface TrialGiftsListGetQuery extends QueryParams {
332
204
  /** Backend response type: raw-response. */
333
205
  export type TrialGiftsListGetResponse = import("./contracts.types.js").ProductTrialGiftPageResponse;
334
206
  /** Backend request type: GiftWrite. */
335
- export type TrialGiftsCreatePostInput = import("./contracts.types.js").ProductTrialGiftWriteInput;
207
+ export type TrialGiftsCreatePostInput = import("./contracts.types.js").ProductTrialGiftCreateInput;
336
208
  /** Backend response type: raw-response. */
337
209
  export type TrialGiftsCreatePostResponse = import("./contracts.types.js").ProductTrialGiftResponse;
338
210
  /** Backend response type: raw-response. */
@@ -349,7 +221,7 @@ export type TrialGiftsProductsGetResponse = import("./contracts.types.js").Produ
349
221
  export interface WalletBillingAdminUserPlansIndexGetResponseItem extends JsonObject {
350
222
  "profileId": string;
351
223
  "tier": string;
352
- "expiresAt"?: string | null;
224
+ "expiresAt": string | null;
353
225
  "daysRemaining": number;
354
226
  "enabled": boolean;
355
227
  }
@@ -370,7 +242,7 @@ export interface WalletBillingAdminUserPlanUpdatePutInput extends JsonObject {
370
242
  export interface WalletBillingAdminUserPlanUpdatePutResponseData extends JsonObject {
371
243
  "profileId": string;
372
244
  "tier": string;
373
- "expiresAt"?: string | null;
245
+ "expiresAt": string | null;
374
246
  "daysRemaining": number;
375
247
  "enabled": boolean;
376
248
  }
@@ -380,7 +252,7 @@ export interface WalletBillingAdminUserPlanUpdatePutResponse extends ApiEnvelope
380
252
  export interface WalletBillingAdminUserPlanDisablePutResponseData extends JsonObject {
381
253
  "profileId": string;
382
254
  "tier": string;
383
- "expiresAt"?: string | null;
255
+ "expiresAt": string | null;
384
256
  "daysRemaining": number;
385
257
  "enabled": boolean;
386
258
  }
@@ -402,8 +274,8 @@ export interface WalletBillingAdminUserWalletShowGetResponseDataTransactions ext
402
274
  "direction": string;
403
275
  "amount": string;
404
276
  "reason": string;
405
- "ref_type"?: string | null;
406
- "ref_id"?: string | null;
277
+ "ref_type": string | null;
278
+ "ref_id": string | null;
407
279
  "balance_after": string;
408
280
  "created_at": string;
409
281
  }
@@ -431,8 +303,8 @@ export interface WalletBillingAdminUserWalletAdjustPostResponseDataTransactions
431
303
  "direction": string;
432
304
  "amount": string;
433
305
  "reason": string;
434
- "ref_type"?: string | null;
435
- "ref_id"?: string | null;
306
+ "ref_type": string | null;
307
+ "ref_id": string | null;
436
308
  "balance_after": string;
437
309
  "created_at": string;
438
310
  }
@@ -458,7 +330,7 @@ export interface AiBillingReservePostResponseData extends JsonObject {
458
330
  "kind": string;
459
331
  "model": string;
460
332
  "reserved_amount": string;
461
- "settled_amount"?: string | null;
333
+ "settled_amount": string | null;
462
334
  "currency": string;
463
335
  "status": string;
464
336
  "metadata": JsonValue;
@@ -472,7 +344,7 @@ export interface AiBillingReleasePostResponseData extends JsonObject {
472
344
  "kind": string;
473
345
  "model": string;
474
346
  "reserved_amount": string;
475
- "settled_amount"?: string | null;
347
+ "settled_amount": string | null;
476
348
  "currency": string;
477
349
  "status": string;
478
350
  "metadata": JsonValue;
@@ -492,7 +364,7 @@ export interface AiBillingSettlePostResponseData extends JsonObject {
492
364
  "kind": string;
493
365
  "model": string;
494
366
  "reserved_amount": string;
495
- "settled_amount"?: string | null;
367
+ "settled_amount": string | null;
496
368
  "currency": string;
497
369
  "status": string;
498
370
  "metadata": JsonValue;
@@ -501,20 +373,18 @@ export interface AiBillingSettlePostResponse extends ApiEnvelope<AiBillingSettle
501
373
  }
502
374
  /** Backend query type: AssetListQuery. */
503
375
  export interface CatalogAssetsIndexGetQuery extends QueryParams {
504
- "page[number]"?: number | null;
505
- "page[size]"?: number | null;
506
- "page_number"?: string | null;
507
- "page_size"?: string | null;
376
+ "page[number]"?: number | null | string;
377
+ "page[size]"?: number | null | string;
508
378
  "asset_type"?: string | null;
509
379
  "search"?: string | null;
510
380
  }
511
381
  /** Backend response type: PagedResult<AssetResponse>. */
512
- export type CatalogAssetsIndexGetResponseItemAssetType = "Coin" | "Badge" | "XP" | "Charge" | "Gem";
382
+ export type CatalogAssetsIndexGetResponseItemAssetType = "coin" | "badge" | "xp" | "charge" | "gem";
513
383
  export interface CatalogAssetsIndexGetResponseItem extends JsonObject {
514
384
  "id": string;
515
385
  "name": string;
516
- "title"?: string | null;
517
- "description"?: string | null;
386
+ "title": string | null;
387
+ "description": string | null;
518
388
  "subject_type": string;
519
389
  "metadata": JsonValue;
520
390
  "asset_type": CatalogAssetsIndexGetResponseItemAssetType;
@@ -534,7 +404,7 @@ export interface CatalogAssetsIndexGetResponseData extends JsonObject {
534
404
  export interface CatalogAssetsIndexGetResponse extends ApiEnvelope<CatalogAssetsIndexGetResponseData> {
535
405
  }
536
406
  /** Backend request type: CreateAssetRequest. */
537
- export type CatalogAssetsCreatePostInputAssetType = "Coin" | "Badge" | "XP" | "Charge" | "Gem";
407
+ export type CatalogAssetsCreatePostInputAssetType = "coin" | "badge" | "xp" | "charge" | "gem";
538
408
  export interface CatalogAssetsCreatePostInput extends JsonObject {
539
409
  "name": string;
540
410
  "title"?: string | null;
@@ -546,12 +416,12 @@ export interface CatalogAssetsCreatePostInput extends JsonObject {
546
416
  "status"?: number | null;
547
417
  }
548
418
  /** Backend response type: AssetResponse. */
549
- export type CatalogAssetsCreatePostResponseDataAssetType = "Coin" | "Badge" | "XP" | "Charge" | "Gem";
419
+ export type CatalogAssetsCreatePostResponseDataAssetType = "coin" | "badge" | "xp" | "charge" | "gem";
550
420
  export interface CatalogAssetsCreatePostResponseData extends JsonObject {
551
421
  "id": string;
552
422
  "name": string;
553
- "title"?: string | null;
554
- "description"?: string | null;
423
+ "title": string | null;
424
+ "description": string | null;
555
425
  "subject_type": string;
556
426
  "metadata": JsonValue;
557
427
  "asset_type": CatalogAssetsCreatePostResponseDataAssetType;
@@ -561,15 +431,14 @@ export interface CatalogAssetsCreatePostResponseData extends JsonObject {
561
431
  export interface CatalogAssetsCreatePostResponse extends ApiEnvelope<CatalogAssetsCreatePostResponseData> {
562
432
  }
563
433
  /** Backend response type: (). */
564
- export interface CatalogAssetsDeleteDeleteResponse extends ApiEnvelope<JsonObject> {
565
- }
434
+ export type CatalogAssetsDeleteDeleteResponse = import("./contracts.types.js").AssetEmptyDataResponse;
566
435
  /** Backend response type: AssetResponse. */
567
- export type CatalogAssetsShowGetResponseDataAssetType = "Coin" | "Badge" | "XP" | "Charge" | "Gem";
436
+ export type CatalogAssetsShowGetResponseDataAssetType = "coin" | "badge" | "xp" | "charge" | "gem";
568
437
  export interface CatalogAssetsShowGetResponseData extends JsonObject {
569
438
  "id": string;
570
439
  "name": string;
571
- "title"?: string | null;
572
- "description"?: string | null;
440
+ "title": string | null;
441
+ "description": string | null;
573
442
  "subject_type": string;
574
443
  "metadata": JsonValue;
575
444
  "asset_type": CatalogAssetsShowGetResponseDataAssetType;
@@ -589,12 +458,12 @@ export interface CatalogAssetsUpdatePatchInput extends JsonObject {
589
458
  "status"?: number | null;
590
459
  }
591
460
  /** Backend response type: AssetResponse. */
592
- export type CatalogAssetsUpdatePatchResponseDataAssetType = "Coin" | "Badge" | "XP" | "Charge" | "Gem";
461
+ export type CatalogAssetsUpdatePatchResponseDataAssetType = "coin" | "badge" | "xp" | "charge" | "gem";
593
462
  export interface CatalogAssetsUpdatePatchResponseData extends JsonObject {
594
463
  "id": string;
595
464
  "name": string;
596
- "title"?: string | null;
597
- "description"?: string | null;
465
+ "title": string | null;
466
+ "description": string | null;
598
467
  "subject_type": string;
599
468
  "metadata": JsonValue;
600
469
  "asset_type": CatalogAssetsUpdatePatchResponseDataAssetType;
@@ -611,10 +480,8 @@ export interface BankBankSummaryShowGetResponse extends ApiEnvelope<BankBankSumm
611
480
  }
612
481
  /** Backend query type: BankTransactionListQuery. */
613
482
  export interface BankBankTransactionsIndexGetQuery extends QueryParams {
614
- "page[number]"?: number | null;
615
- "page[size]"?: number | null;
616
- "page_number"?: string | null;
617
- "page_size"?: string | null;
483
+ "page[number]"?: number | null | string;
484
+ "page[size]"?: number | null | string;
618
485
  "profile_id"?: string | null;
619
486
  "bank_transaction_type"?: QueryValue | null;
620
487
  "search"?: string | null;
@@ -624,11 +491,11 @@ export type BankBankTransactionsIndexGetResponseItemBankTransactionType = "Depos
624
491
  export interface BankBankTransactionsIndexGetResponseItem extends JsonObject {
625
492
  "id": string;
626
493
  "profile_id": string;
627
- "profile_name"?: string | null;
494
+ "profile_name": string | null;
628
495
  "bank_id": string;
629
496
  "bank_transaction_type": BankBankTransactionsIndexGetResponseItemBankTransactionType;
630
497
  "amount": string;
631
- "metadata": BackendJson<"Json">;
498
+ "metadata": JsonValue;
632
499
  "status": number;
633
500
  "created_at": string;
634
501
  "profile_deposit_total": string;
@@ -650,7 +517,7 @@ export interface BankBankTransactionsCreatePostInput extends JsonObject {
650
517
  "amount": string | number;
651
518
  "profile_id": string;
652
519
  "bank_id"?: string | null;
653
- "metadata"?: BackendJson<"Json"> | null;
520
+ "metadata"?: JsonValue | null;
654
521
  }
655
522
  /** Backend response type: entity::bank_transaction::Model. */
656
523
  export type BankBankTransactionsCreatePostResponseDataBankTransactionType = "Deposit" | "Withdraw" | "Refund";
@@ -659,80 +526,20 @@ export interface BankBankTransactionsCreatePostResponseData extends JsonObject {
659
526
  "bank_id": string;
660
527
  "bank_transaction_type": BankBankTransactionsCreatePostResponseDataBankTransactionType;
661
528
  "amount": string;
662
- "metadata": BackendJson<"Json">;
529
+ "metadata": JsonValue;
663
530
  "profile_id": string;
664
531
  "status": number;
665
532
  "created_at": string;
666
- "deleted_at"?: string | null;
533
+ "deleted_at": string | null;
667
534
  }
668
535
  export interface BankBankTransactionsCreatePostResponse extends ApiEnvelope<BankBankTransactionsCreatePostResponseData> {
669
536
  }
670
537
  /** Backend response type: crate::charge::models::ChargeSettingsResponse. */
671
- export type ChargeChargeSettingsShowGetResponseDataMappingRulesRulesCondition = "always" | "xp_balance" | "coin_balance" | "xp_rank" | "action_count";
672
- export interface ChargeChargeSettingsShowGetResponseDataMappingRulesRulesValues extends JsonObject {
673
- "max_charge": string;
674
- "recharge_period": string;
675
- "recharge_amount": string;
676
- }
677
- export interface ChargeChargeSettingsShowGetResponseDataMappingRulesRules extends JsonObject {
678
- "label"?: string | null;
679
- "condition": ChargeChargeSettingsShowGetResponseDataMappingRulesRulesCondition;
680
- "values": ChargeChargeSettingsShowGetResponseDataMappingRulesRulesValues;
681
- }
682
- export interface ChargeChargeSettingsShowGetResponseDataMappingRules extends JsonObject {
683
- "rules"?: ChargeChargeSettingsShowGetResponseDataMappingRulesRules[];
684
- "match"?: string;
685
- }
686
- export interface ChargeChargeSettingsShowGetResponseData extends JsonObject {
687
- "id": string;
688
- "mapping_rules": ChargeChargeSettingsShowGetResponseDataMappingRules;
689
- "status": number;
690
- }
691
- export interface ChargeChargeSettingsShowGetResponse extends ApiEnvelope<ChargeChargeSettingsShowGetResponseData> {
692
- }
538
+ export type ChargeChargeSettingsShowGetResponse = import("./contracts.types.js").AssetChargeSettingsResponse;
693
539
  /** Backend request type: UpdateChargeSettingsRequest. */
694
- export type ChargeChargeSettingsUpdatePatchInputMappingRulesRulesCondition = "always" | "xp_balance" | "coin_balance" | "xp_rank" | "action_count";
695
- export interface ChargeChargeSettingsUpdatePatchInputMappingRulesRulesValues extends JsonObject {
696
- "max_charge": string | number;
697
- "recharge_period": string | number;
698
- "recharge_amount": string | number;
699
- }
700
- export interface ChargeChargeSettingsUpdatePatchInputMappingRulesRules extends JsonObject {
701
- "label"?: string | null;
702
- "condition": ChargeChargeSettingsUpdatePatchInputMappingRulesRulesCondition;
703
- "values": ChargeChargeSettingsUpdatePatchInputMappingRulesRulesValues;
704
- }
705
- export interface ChargeChargeSettingsUpdatePatchInputMappingRules extends JsonObject {
706
- "rules"?: ChargeChargeSettingsUpdatePatchInputMappingRulesRules[];
707
- "match"?: string;
708
- }
709
- export interface ChargeChargeSettingsUpdatePatchInput extends JsonObject {
710
- "mapping_rules": ChargeChargeSettingsUpdatePatchInputMappingRules;
711
- "status"?: number | null;
712
- }
540
+ export type ChargeChargeSettingsUpdatePatchInput = import("./contracts.types.js").AssetChargeSettingsInput;
713
541
  /** Backend response type: crate::charge::models::ChargeSettingsResponse. */
714
- export type ChargeChargeSettingsUpdatePatchResponseDataMappingRulesRulesCondition = "always" | "xp_balance" | "coin_balance" | "xp_rank" | "action_count";
715
- export interface ChargeChargeSettingsUpdatePatchResponseDataMappingRulesRulesValues extends JsonObject {
716
- "max_charge": string;
717
- "recharge_period": string;
718
- "recharge_amount": string;
719
- }
720
- export interface ChargeChargeSettingsUpdatePatchResponseDataMappingRulesRules extends JsonObject {
721
- "label"?: string | null;
722
- "condition": ChargeChargeSettingsUpdatePatchResponseDataMappingRulesRulesCondition;
723
- "values": ChargeChargeSettingsUpdatePatchResponseDataMappingRulesRulesValues;
724
- }
725
- export interface ChargeChargeSettingsUpdatePatchResponseDataMappingRules extends JsonObject {
726
- "rules"?: ChargeChargeSettingsUpdatePatchResponseDataMappingRulesRules[];
727
- "match"?: string;
728
- }
729
- export interface ChargeChargeSettingsUpdatePatchResponseData extends JsonObject {
730
- "id": string;
731
- "mapping_rules": ChargeChargeSettingsUpdatePatchResponseDataMappingRules;
732
- "status": number;
733
- }
734
- export interface ChargeChargeSettingsUpdatePatchResponse extends ApiEnvelope<ChargeChargeSettingsUpdatePatchResponseData> {
735
- }
542
+ export type ChargeChargeSettingsUpdatePatchResponse = import("./contracts.types.js").AssetChargeSettingsResponse;
736
543
  /** Backend response type: CoinSettingsResponse. */
737
544
  export interface BankCoinSettingsShowGetResponseData extends JsonObject {
738
545
  "id": string;
@@ -841,20 +648,20 @@ export type EconomyPolicyGetGetResponse = import("./types.js").EconomyPolicyResp
841
648
  /** Backend request type: EconomyPolicy. */
842
649
  export type EconomyPolicyPutPutInput = import("./types.js").EconomyPolicy;
843
650
  /** Backend response type: EconomyPolicy. */
844
- export type EconomyPolicyPutPutResponse = import("./types.js").EconomyPolicyResponse;
651
+ export type EconomyPolicyPutPutResponse = import("./economy.types.js").EconomyPolicyUpdateResponse;
845
652
  /** Backend response type: ValuationResponse. */
846
653
  export type EconomyValuationGetResponse = import("./types.js").EconomyValuationResponse;
847
654
  /** Backend response type: Value. */
848
- export type GameEscrowShowGetResponse = JsonValue;
655
+ export type GameEscrowShowGetResponse = import("./contracts.types.js").AssetEscrowResponse;
849
656
  /** Backend response type: Value. */
850
- export type GameEscrowRefundPostResponse = JsonValue;
657
+ export type GameEscrowRefundPostResponse = import("./contracts.types.js").AssetEscrowResponse;
851
658
  /** Backend request type: SettleRequest. */
852
659
  export interface GameEscrowSettlePostInput extends JsonObject {
853
660
  "winnerIds": string[];
854
661
  "burnBasisPoints"?: number;
855
662
  }
856
663
  /** Backend response type: Value. */
857
- export type GameEscrowSettlePostResponse = JsonValue;
664
+ export type GameEscrowSettlePostResponse = import("./contracts.types.js").AssetEscrowResponse;
858
665
  /** Backend request type: FundRequest. */
859
666
  export interface GameEscrowFundPostInputPlayers extends JsonObject {
860
667
  "profileId": string;
@@ -865,7 +672,7 @@ export interface GameEscrowFundPostInput extends JsonObject {
865
672
  "players": GameEscrowFundPostInputPlayers[];
866
673
  }
867
674
  /** Backend response type: Value. */
868
- export type GameEscrowFundPostResponse = JsonValue;
675
+ export type GameEscrowFundPostResponse = import("./contracts.types.js").AssetEscrowResponse;
869
676
  /** Backend response type: crate::integration::models::IntegrationDocsResponse. */
870
677
  export interface IntegrationIntegrationDocsShowGetResponseDataDirectEventsPayloadFields extends JsonObject {
871
678
  "name": string;
@@ -899,8 +706,7 @@ export interface IntegrationIntegrationDocsShowGetResponseData extends JsonObjec
899
706
  export interface IntegrationIntegrationDocsShowGetResponse extends ApiEnvelope<IntegrationIntegrationDocsShowGetResponseData> {
900
707
  }
901
708
  /** Backend response type: infera_flow_sdk::FlowIntegrationResponse. */
902
- export interface IntegrationFlowIntegrationShowGetResponse extends ApiEnvelope<BackendJson<"infera_flow_sdk::FlowIntegrationResponse">> {
903
- }
709
+ export type IntegrationFlowIntegrationShowGetResponse = import("./contracts.types.js").AssetFlowIntegrationResponse;
904
710
  /** Backend response type: crate::integration::models::RabbitMqIntegrationResponse. */
905
711
  export interface IntegrationRabbitmqIntegrationShowGetResponseDataEventsPayloadFields extends JsonObject {
906
712
  "name": string;
@@ -934,7 +740,7 @@ export interface LeaderboardLeaderboardIndexGetQuery extends QueryParams {
934
740
  export interface LeaderboardLeaderboardIndexGetResponseDataUser extends JsonObject {
935
741
  "id": string;
936
742
  "profile_id": string;
937
- "name"?: string | null;
743
+ "name": string | null;
938
744
  "level": number;
939
745
  "coin": string;
940
746
  "blue": string;
@@ -945,7 +751,7 @@ export interface LeaderboardLeaderboardIndexGetResponseDataUser extends JsonObje
945
751
  export interface LeaderboardLeaderboardIndexGetResponseDataTop extends JsonObject {
946
752
  "id": string;
947
753
  "profile_id": string;
948
- "name"?: string | null;
754
+ "name": string | null;
949
755
  "level": number;
950
756
  "coin": string;
951
757
  "blue": string;
@@ -956,7 +762,7 @@ export interface LeaderboardLeaderboardIndexGetResponseDataTop extends JsonObjec
956
762
  export interface LeaderboardLeaderboardIndexGetResponseDataNeighbors extends JsonObject {
957
763
  "id": string;
958
764
  "profile_id": string;
959
- "name"?: string | null;
765
+ "name": string | null;
960
766
  "level": number;
961
767
  "coin": string;
962
768
  "blue": string;
@@ -965,26 +771,24 @@ export interface LeaderboardLeaderboardIndexGetResponseDataNeighbors extends Jso
965
771
  "rank": number;
966
772
  }
967
773
  export interface LeaderboardLeaderboardIndexGetResponseData extends JsonObject {
968
- "user"?: LeaderboardLeaderboardIndexGetResponseDataUser | null;
774
+ "user": LeaderboardLeaderboardIndexGetResponseDataUser | null;
969
775
  "top": LeaderboardLeaderboardIndexGetResponseDataTop[];
970
776
  "neighbors": LeaderboardLeaderboardIndexGetResponseDataNeighbors[];
971
- "message"?: string | null;
777
+ "message": string | null;
972
778
  }
973
779
  export interface LeaderboardLeaderboardIndexGetResponse extends ApiEnvelope<LeaderboardLeaderboardIndexGetResponseData> {
974
780
  }
975
781
  /** Backend query type: PlanListQuery. */
976
782
  export interface LlmUsagePlansIndexGetQuery extends QueryParams {
977
- "page[number]"?: number | null;
978
- "page[size]"?: number | null;
979
- "page_number"?: string | null;
980
- "page_size"?: string | null;
783
+ "page[number]"?: number | null | string;
784
+ "page[size]"?: number | null | string;
981
785
  "search"?: string | null;
982
786
  }
983
787
  /** Backend response type: PagedResult<PlanResponse>. */
984
788
  export interface LlmUsagePlansIndexGetResponseItem extends JsonObject {
985
789
  "profile_id": string;
986
790
  "tier": string;
987
- "expires_at"?: string | null;
791
+ "expires_at": string | null;
988
792
  "plan_points": string;
989
793
  "created_at": string;
990
794
  "updated_at": string;
@@ -1002,13 +806,12 @@ export interface LlmUsagePlansIndexGetResponseData extends JsonObject {
1002
806
  export interface LlmUsagePlansIndexGetResponse extends ApiEnvelope<LlmUsagePlansIndexGetResponseData> {
1003
807
  }
1004
808
  /** Backend response type: (). */
1005
- export interface LlmUsagePlanDeleteDeleteResponse extends ApiEnvelope<JsonObject> {
1006
- }
809
+ export type LlmUsagePlanDeleteDeleteResponse = import("./contracts.types.js").AssetEmptyDataResponse;
1007
810
  /** Backend response type: PlanResponse. */
1008
811
  export interface LlmUsagePlanShowGetResponseData extends JsonObject {
1009
812
  "profile_id": string;
1010
813
  "tier": string;
1011
- "expires_at"?: string | null;
814
+ "expires_at": string | null;
1012
815
  "plan_points": string;
1013
816
  "created_at": string;
1014
817
  "updated_at": string;
@@ -1023,7 +826,7 @@ export interface LlmUsagePlanSetPutInput extends JsonObject {
1023
826
  export interface LlmUsagePlanSetPutResponseData extends JsonObject {
1024
827
  "profile_id": string;
1025
828
  "tier": string;
1026
- "expires_at"?: string | null;
829
+ "expires_at": string | null;
1027
830
  "plan_points": string;
1028
831
  "created_at": string;
1029
832
  "updated_at": string;
@@ -1032,29 +835,27 @@ export interface LlmUsagePlanSetPutResponse extends ApiEnvelope<LlmUsagePlanSetP
1032
835
  }
1033
836
  /** Backend query type: AssetHistoryQuery. */
1034
837
  export interface WalletMeAssetHistoryGetQuery extends QueryParams {
1035
- "page[number]"?: number | null;
1036
- "page[size]"?: number | null;
1037
- "page_number"?: string | null;
1038
- "page_size"?: string | null;
838
+ "page[number]"?: number | null | string;
839
+ "page[size]"?: number | null | string;
1039
840
  "asset"?: QueryValue | null;
1040
841
  "asset_name"?: string | null;
1041
842
  "earned_only"?: boolean | null;
1042
843
  }
1043
844
  /** Backend response type: crate::models::PagedResult<crate::logs::models::UserAssetLogResponse>. */
1044
- export type WalletMeAssetHistoryGetResponseItemAssetType = "Coin" | "Badge" | "XP" | "Charge" | "Gem";
845
+ export type WalletMeAssetHistoryGetResponseItemAssetType = "coin" | "badge" | "xp" | "charge" | "gem";
1045
846
  export interface WalletMeAssetHistoryGetResponseItem extends JsonObject {
1046
847
  "id": string;
1047
848
  "profile_id": string;
1048
849
  "action_id": string;
1049
850
  "asset_id": string;
1050
- "action_name"?: string | null;
1051
- "action_title"?: string | null;
1052
- "action_description"?: string | null;
1053
- "asset_name"?: string | null;
1054
- "asset_title"?: string | null;
1055
- "asset_type"?: WalletMeAssetHistoryGetResponseItemAssetType | null;
851
+ "action_name": string | null;
852
+ "action_title": string | null;
853
+ "action_description": string | null;
854
+ "asset_name": string | null;
855
+ "asset_title": string | null;
856
+ "asset_type": WalletMeAssetHistoryGetResponseItemAssetType | null;
1056
857
  "subject_type": string;
1057
- "subject_id"?: string | null;
858
+ "subject_id": string | null;
1058
859
  "quantity": string;
1059
860
  "transaction_type": string;
1060
861
  "created_at": string;
@@ -1075,36 +876,36 @@ export interface WalletMeAssetHistoryGetResponse extends ApiEnvelope<WalletMeAss
1075
876
  export interface WalletMeAssetsShowGetResponseDataCoin extends JsonObject {
1076
877
  "asset_id": string;
1077
878
  "asset_name": string;
1078
- "title"?: string | null;
879
+ "title": string | null;
1079
880
  "balance": string;
1080
881
  }
1081
882
  export interface WalletMeAssetsShowGetResponseDataXp extends JsonObject {
1082
883
  "asset_id": string;
1083
884
  "asset_name": string;
1084
- "title"?: string | null;
885
+ "title": string | null;
1085
886
  "balance": string;
1086
887
  }
1087
888
  export interface WalletMeAssetsShowGetResponseDataCharge extends JsonObject {
1088
889
  "asset_id": string;
1089
890
  "asset_name": string;
1090
- "title"?: string | null;
891
+ "title": string | null;
1091
892
  "balance": string;
1092
893
  }
1093
894
  export interface WalletMeAssetsShowGetResponseDataGems extends JsonObject {
1094
895
  "asset_id": string;
1095
896
  "asset_name": string;
1096
- "title"?: string | null;
897
+ "title": string | null;
1097
898
  "balance": string;
1098
899
  }
1099
900
  export interface WalletMeAssetsShowGetResponseDataBadges extends JsonObject {
1100
901
  "asset_id": string;
1101
902
  "asset_name": string;
1102
- "title"?: string | null;
1103
- "description"?: string | null;
903
+ "title": string | null;
904
+ "description": string | null;
1104
905
  "subject_type": string;
1105
906
  "metadata": JsonValue;
1106
907
  "balance": string;
1107
- "earned_at"?: string | null;
908
+ "earned_at": string | null;
1108
909
  }
1109
910
  export interface WalletMeAssetsShowGetResponseData extends JsonObject {
1110
911
  "profile_id": string;
@@ -1128,17 +929,17 @@ export interface WalletMeBadgesShowGetQuery extends QueryParams {
1128
929
  export interface WalletMeBadgesShowGetResponseDataBadges extends JsonObject {
1129
930
  "asset_id": string;
1130
931
  "asset_name": string;
1131
- "title"?: string | null;
1132
- "description"?: string | null;
932
+ "title": string | null;
933
+ "description": string | null;
1133
934
  "subject_type": string;
1134
935
  "metadata": JsonValue;
1135
936
  "balance": string;
1136
- "earned_at"?: string | null;
937
+ "earned_at": string | null;
1137
938
  }
1138
939
  export interface WalletMeBadgesShowGetResponseData extends JsonObject {
1139
940
  "profile_id": string;
1140
941
  "subject_type": string;
1141
- "subject_id"?: string | null;
942
+ "subject_id": string | null;
1142
943
  "badges": WalletMeBadgesShowGetResponseDataBadges[];
1143
944
  }
1144
945
  export interface WalletMeBadgesShowGetResponse extends ApiEnvelope<WalletMeBadgesShowGetResponseData> {
@@ -1151,33 +952,33 @@ export interface WalletMeBadgeTodosShowGetQuery extends QueryParams {
1151
952
  /** Backend response type: crate::badge::models::BadgeTodoResponse. */
1152
953
  export interface WalletMeBadgeTodosShowGetResponseDataBadgesNextLevelRequirements extends JsonObject {
1153
954
  "action_names": string[];
1154
- "label"?: JsonValue | null;
955
+ "label": JsonValue | null;
1155
956
  "current": number;
1156
957
  "required": number;
1157
958
  "complete": boolean;
1158
959
  }
1159
960
  export interface WalletMeBadgeTodosShowGetResponseDataBadgesNextLevel extends JsonObject {
1160
961
  "level": number;
1161
- "title"?: JsonValue | null;
1162
- "description"?: JsonValue | null;
962
+ "title": JsonValue | null;
963
+ "description": JsonValue | null;
1163
964
  "requirements": WalletMeBadgeTodosShowGetResponseDataBadgesNextLevelRequirements[];
1164
965
  "complete": boolean;
1165
966
  }
1166
967
  export interface WalletMeBadgeTodosShowGetResponseDataBadges extends JsonObject {
1167
968
  "asset_id": string;
1168
969
  "asset_name": string;
1169
- "title"?: string | null;
1170
- "description"?: string | null;
970
+ "title": string | null;
971
+ "description": string | null;
1171
972
  "subject_type": string;
1172
973
  "current_level": number;
1173
- "next_level"?: WalletMeBadgeTodosShowGetResponseDataBadgesNextLevel | null;
974
+ "next_level": WalletMeBadgeTodosShowGetResponseDataBadgesNextLevel | null;
1174
975
  "completed": boolean;
1175
976
  "metadata": JsonValue;
1176
977
  }
1177
978
  export interface WalletMeBadgeTodosShowGetResponseData extends JsonObject {
1178
979
  "profile_id": string;
1179
980
  "subject_type": string;
1180
- "subject_id"?: string | null;
981
+ "subject_id": string | null;
1181
982
  "badges": WalletMeBadgeTodosShowGetResponseDataBadges[];
1182
983
  }
1183
984
  export interface WalletMeBadgeTodosShowGetResponse extends ApiEnvelope<WalletMeBadgeTodosShowGetResponseData> {
@@ -1237,8 +1038,8 @@ export interface WalletMeTransactionsGetResponseDataItems extends JsonObject {
1237
1038
  "direction": string;
1238
1039
  "amount": string;
1239
1040
  "reason": string;
1240
- "ref_type"?: string | null;
1241
- "ref_id"?: string | null;
1041
+ "ref_type": string | null;
1042
+ "ref_id": string | null;
1242
1043
  "balance_after": string;
1243
1044
  "created_at": string;
1244
1045
  }
@@ -1257,8 +1058,8 @@ export interface WalletMeTransactionShowGetResponseData extends JsonObject {
1257
1058
  "direction": string;
1258
1059
  "amount": string;
1259
1060
  "reason": string;
1260
- "ref_type"?: string | null;
1261
- "ref_id"?: string | null;
1061
+ "ref_type": string | null;
1062
+ "ref_id": string | null;
1262
1063
  "balance_after": string;
1263
1064
  "created_at": string;
1264
1065
  }
@@ -1301,8 +1102,8 @@ export interface WalletMeTransactionDayGetResponseDataResources extends JsonObje
1301
1102
  }
1302
1103
  export interface WalletMeTransactionDayGetResponseDataLlm extends JsonObject {
1303
1104
  "id": string;
1304
- "project"?: string | null;
1305
- "provider"?: string | null;
1105
+ "project": string | null;
1106
+ "provider": string | null;
1306
1107
  "cachedInputTokens": number;
1307
1108
  "cacheWriteTokens": number;
1308
1109
  "model": string;
@@ -1310,7 +1111,7 @@ export interface WalletMeTransactionDayGetResponseDataLlm extends JsonObject {
1310
1111
  "outputTokens": number;
1311
1112
  "amount": string;
1312
1113
  "currency": string;
1313
- "requestId"?: string | null;
1114
+ "requestId": string | null;
1314
1115
  "createdAt": string;
1315
1116
  }
1316
1117
  export interface WalletMeTransactionDayGetResponseData extends JsonObject {
@@ -1328,13 +1129,13 @@ export interface WalletMeTransactionDayGetResponse extends ApiEnvelope<WalletMeT
1328
1129
  export interface WalletBillingPlansIndexGetResponseItem extends JsonObject {
1329
1130
  "tier": string;
1330
1131
  "name": string;
1331
- "description"?: string | null;
1132
+ "description": string | null;
1332
1133
  "price": string;
1333
1134
  "currency": string;
1334
1135
  "duration_days": number;
1335
1136
  "points": string;
1336
1137
  "storage_gb": number;
1337
- "product_id"?: string | null;
1138
+ "product_id": string | null;
1338
1139
  "metadata": JsonValue;
1339
1140
  "status": number;
1340
1141
  }
@@ -1343,7 +1144,7 @@ export interface WalletBillingPlansIndexGetResponse extends ApiEnvelope<WalletBi
1343
1144
  /** Backend response type: methods::CurrentPlan. */
1344
1145
  export interface WalletBillingCurrentPlanGetResponseData extends JsonObject {
1345
1146
  "tier": string;
1346
- "expiresAt"?: string | null;
1147
+ "expiresAt": string | null;
1347
1148
  "daysRemaining": number;
1348
1149
  "renewalAllowed": boolean;
1349
1150
  }
@@ -1382,18 +1183,16 @@ export interface WalletBillingPointsPacksPurchasePostResponse extends ApiEnvelop
1382
1183
  }
1383
1184
  /** Backend query type: RankListQuery. */
1384
1185
  export interface RankRanksIndexGetQuery extends QueryParams {
1385
- "page[number]"?: number | null;
1386
- "page[size]"?: number | null;
1387
- "page_number"?: string | null;
1388
- "page_size"?: string | null;
1186
+ "page[number]"?: number | null | string;
1187
+ "page[size]"?: number | null | string;
1389
1188
  "search"?: string | null;
1390
1189
  }
1391
1190
  /** Backend response type: PagedResult<RankResponse>. */
1392
1191
  export interface RankRanksIndexGetResponseItem extends JsonObject {
1393
1192
  "id": string;
1394
1193
  "name": string;
1395
- "title"?: string | null;
1396
- "description"?: string | null;
1194
+ "title": string | null;
1195
+ "description": string | null;
1397
1196
  "min_xp": string;
1398
1197
  "status": number;
1399
1198
  }
@@ -1421,22 +1220,21 @@ export interface RankRanksCreatePostInput extends JsonObject {
1421
1220
  export interface RankRanksCreatePostResponseData extends JsonObject {
1422
1221
  "id": string;
1423
1222
  "name": string;
1424
- "title"?: string | null;
1425
- "description"?: string | null;
1223
+ "title": string | null;
1224
+ "description": string | null;
1426
1225
  "min_xp": string;
1427
1226
  "status": number;
1428
1227
  }
1429
1228
  export interface RankRanksCreatePostResponse extends ApiEnvelope<RankRanksCreatePostResponseData> {
1430
1229
  }
1431
1230
  /** Backend response type: (). */
1432
- export interface RankRanksDeleteDeleteResponse extends ApiEnvelope<JsonObject> {
1433
- }
1231
+ export type RankRanksDeleteDeleteResponse = import("./contracts.types.js").AssetEmptyDataResponse;
1434
1232
  /** Backend response type: RankResponse. */
1435
1233
  export interface RankRanksShowGetResponseData extends JsonObject {
1436
1234
  "id": string;
1437
1235
  "name": string;
1438
- "title"?: string | null;
1439
- "description"?: string | null;
1236
+ "title": string | null;
1237
+ "description": string | null;
1440
1238
  "min_xp": string;
1441
1239
  "status": number;
1442
1240
  }
@@ -1454,8 +1252,8 @@ export interface RankRanksUpdatePatchInput extends JsonObject {
1454
1252
  export interface RankRanksUpdatePatchResponseData extends JsonObject {
1455
1253
  "id": string;
1456
1254
  "name": string;
1457
- "title"?: string | null;
1458
- "description"?: string | null;
1255
+ "title": string | null;
1256
+ "description": string | null;
1459
1257
  "min_xp": string;
1460
1258
  "status": number;
1461
1259
  }
@@ -1468,53 +1266,8 @@ export interface SandboxBillingPurgeDeleteResponseData extends JsonObject {
1468
1266
  }
1469
1267
  export type SandboxBillingPurgeDeleteResponse = SandboxBillingPurgeDeleteResponseData;
1470
1268
  /** Backend response type: AllocationView. */
1471
- export interface SandboxBillingShowGetResponseDataPrice extends JsonObject {
1472
- "cpu": string;
1473
- "ram": string;
1474
- "database_storage": string;
1475
- "minio_storage": string;
1476
- "app_storage": string;
1477
- "disk": string;
1478
- "services": string;
1479
- "resource_total": string;
1480
- "total": string;
1481
- "currency": string;
1482
- }
1483
- export interface SandboxBillingShowGetResponseDataUnitPrices extends JsonObject {
1484
- "cpu_millicore_hour": string;
1485
- "ram_mb_hour": string;
1486
- "disk_mb_hour": string;
1487
- "currency": string;
1488
- }
1489
- export interface SandboxBillingShowGetResponseData extends JsonObject {
1490
- "id": string;
1491
- "profile_id": string;
1492
- "project": string;
1493
- "cpu_millicores": number;
1494
- "ram_mb": number;
1495
- "database_storage_mb": number;
1496
- "minio_storage_mb": number;
1497
- "app_storage_mb": number;
1498
- "volume_storage_mb": BackendJson<"Json">;
1499
- "bundle_id"?: string | null;
1500
- "monthly_price_override"?: string | null;
1501
- "status": string;
1502
- "paused_at"?: string | null;
1503
- "purge_at"?: string | null;
1504
- "last_charged_at"?: string | null;
1505
- "applied_at"?: string | null;
1506
- "created_at": string;
1507
- "updated_at": string;
1508
- "price": SandboxBillingShowGetResponseDataPrice;
1509
- "unit_prices": SandboxBillingShowGetResponseDataUnitPrices;
1510
- "currency": string;
1511
- "hourly_price": string;
1512
- "daily_estimate": string;
1513
- "monthly_estimate": string;
1514
- "next_charge_at": string;
1515
- }
1516
- export interface SandboxBillingShowGetResponse extends ApiEnvelope<SandboxBillingShowGetResponseData> {
1517
- }
1269
+ export type SandboxBillingShowGetResponseData = import("./contracts.types.js").AssetSandboxAllocation;
1270
+ export type SandboxBillingShowGetResponse = import("./contracts.types.js").AssetSandboxAllocationResponse;
1518
1271
  /** Backend request type: AllocationInput. */
1519
1272
  export interface SandboxBillingUpdatePutInput extends JsonObject {
1520
1273
  "max_hourly_amount"?: string | number | null;
@@ -1528,106 +1281,16 @@ export interface SandboxBillingUpdatePutInput extends JsonObject {
1528
1281
  "volume_storage_mb"?: Record<string, number>;
1529
1282
  }
1530
1283
  /** Backend response type: AllocationView. */
1531
- export interface SandboxBillingUpdatePutResponseDataPrice extends JsonObject {
1532
- "cpu": string;
1533
- "ram": string;
1534
- "database_storage": string;
1535
- "minio_storage": string;
1536
- "app_storage": string;
1537
- "disk": string;
1538
- "services": string;
1539
- "resource_total": string;
1540
- "total": string;
1541
- "currency": string;
1542
- }
1543
- export interface SandboxBillingUpdatePutResponseDataUnitPrices extends JsonObject {
1544
- "cpu_millicore_hour": string;
1545
- "ram_mb_hour": string;
1546
- "disk_mb_hour": string;
1547
- "currency": string;
1548
- }
1549
- export interface SandboxBillingUpdatePutResponseData extends JsonObject {
1550
- "id": string;
1551
- "profile_id": string;
1552
- "project": string;
1553
- "cpu_millicores": number;
1554
- "ram_mb": number;
1555
- "database_storage_mb": number;
1556
- "minio_storage_mb": number;
1557
- "app_storage_mb": number;
1558
- "volume_storage_mb": BackendJson<"Json">;
1559
- "bundle_id"?: string | null;
1560
- "monthly_price_override"?: string | null;
1561
- "status": string;
1562
- "paused_at"?: string | null;
1563
- "purge_at"?: string | null;
1564
- "last_charged_at"?: string | null;
1565
- "applied_at"?: string | null;
1566
- "created_at": string;
1567
- "updated_at": string;
1568
- "price": SandboxBillingUpdatePutResponseDataPrice;
1569
- "unit_prices": SandboxBillingUpdatePutResponseDataUnitPrices;
1570
- "currency": string;
1571
- "hourly_price": string;
1572
- "daily_estimate": string;
1573
- "monthly_estimate": string;
1574
- "next_charge_at": string;
1575
- }
1576
- export interface SandboxBillingUpdatePutResponse extends ApiEnvelope<SandboxBillingUpdatePutResponseData> {
1577
- }
1284
+ export type SandboxBillingUpdatePutResponseData = import("./contracts.types.js").AssetSandboxAllocation;
1285
+ export type SandboxBillingUpdatePutResponse = import("./contracts.types.js").AssetSandboxAllocationResponse;
1578
1286
  /** Backend response type: AllocationView. */
1579
- export interface SandboxBillingPausePostResponseDataPrice extends JsonObject {
1580
- "cpu": string;
1581
- "ram": string;
1582
- "database_storage": string;
1583
- "minio_storage": string;
1584
- "app_storage": string;
1585
- "disk": string;
1586
- "services": string;
1587
- "resource_total": string;
1588
- "total": string;
1589
- "currency": string;
1590
- }
1591
- export interface SandboxBillingPausePostResponseDataUnitPrices extends JsonObject {
1592
- "cpu_millicore_hour": string;
1593
- "ram_mb_hour": string;
1594
- "disk_mb_hour": string;
1595
- "currency": string;
1596
- }
1597
- export interface SandboxBillingPausePostResponseData extends JsonObject {
1598
- "id": string;
1599
- "profile_id": string;
1600
- "project": string;
1601
- "cpu_millicores": number;
1602
- "ram_mb": number;
1603
- "database_storage_mb": number;
1604
- "minio_storage_mb": number;
1605
- "app_storage_mb": number;
1606
- "volume_storage_mb": BackendJson<"Json">;
1607
- "bundle_id"?: string | null;
1608
- "monthly_price_override"?: string | null;
1609
- "status": string;
1610
- "paused_at"?: string | null;
1611
- "purge_at"?: string | null;
1612
- "last_charged_at"?: string | null;
1613
- "applied_at"?: string | null;
1614
- "created_at": string;
1615
- "updated_at": string;
1616
- "price": SandboxBillingPausePostResponseDataPrice;
1617
- "unit_prices": SandboxBillingPausePostResponseDataUnitPrices;
1618
- "currency": string;
1619
- "hourly_price": string;
1620
- "daily_estimate": string;
1621
- "monthly_estimate": string;
1622
- "next_charge_at": string;
1623
- }
1624
- export interface SandboxBillingPausePostResponse extends ApiEnvelope<SandboxBillingPausePostResponseData> {
1625
- }
1287
+ export type SandboxBillingPausePostResponseData = import("./contracts.types.js").AssetSandboxAllocation;
1288
+ export type SandboxBillingPausePostResponse = import("./contracts.types.js").AssetSandboxAllocationResponse;
1626
1289
  /** Backend response type: ProjectPricingView. */
1627
1290
  export interface SandboxBillingShowPricingGetResponseData extends JsonObject {
1628
1291
  "project": string;
1629
1292
  "currency": string;
1630
- "fixed_monthly_price"?: string | null;
1293
+ "fixed_monthly_price": string | null;
1631
1294
  "hourly_price": string;
1632
1295
  "daily_estimate": string;
1633
1296
  "monthly_estimate": string;
@@ -1635,53 +1298,8 @@ export interface SandboxBillingShowPricingGetResponseData extends JsonObject {
1635
1298
  export interface SandboxBillingShowPricingGetResponse extends ApiEnvelope<SandboxBillingShowPricingGetResponseData> {
1636
1299
  }
1637
1300
  /** Backend response type: AllocationView. */
1638
- export interface SandboxBillingResumePostResponseDataPrice extends JsonObject {
1639
- "cpu": string;
1640
- "ram": string;
1641
- "database_storage": string;
1642
- "minio_storage": string;
1643
- "app_storage": string;
1644
- "disk": string;
1645
- "services": string;
1646
- "resource_total": string;
1647
- "total": string;
1648
- "currency": string;
1649
- }
1650
- export interface SandboxBillingResumePostResponseDataUnitPrices extends JsonObject {
1651
- "cpu_millicore_hour": string;
1652
- "ram_mb_hour": string;
1653
- "disk_mb_hour": string;
1654
- "currency": string;
1655
- }
1656
- export interface SandboxBillingResumePostResponseData extends JsonObject {
1657
- "id": string;
1658
- "profile_id": string;
1659
- "project": string;
1660
- "cpu_millicores": number;
1661
- "ram_mb": number;
1662
- "database_storage_mb": number;
1663
- "minio_storage_mb": number;
1664
- "app_storage_mb": number;
1665
- "volume_storage_mb": BackendJson<"Json">;
1666
- "bundle_id"?: string | null;
1667
- "monthly_price_override"?: string | null;
1668
- "status": string;
1669
- "paused_at"?: string | null;
1670
- "purge_at"?: string | null;
1671
- "last_charged_at"?: string | null;
1672
- "applied_at"?: string | null;
1673
- "created_at": string;
1674
- "updated_at": string;
1675
- "price": SandboxBillingResumePostResponseDataPrice;
1676
- "unit_prices": SandboxBillingResumePostResponseDataUnitPrices;
1677
- "currency": string;
1678
- "hourly_price": string;
1679
- "daily_estimate": string;
1680
- "monthly_estimate": string;
1681
- "next_charge_at": string;
1682
- }
1683
- export interface SandboxBillingResumePostResponse extends ApiEnvelope<SandboxBillingResumePostResponseData> {
1684
- }
1301
+ export type SandboxBillingResumePostResponseData = import("./contracts.types.js").AssetSandboxAllocation;
1302
+ export type SandboxBillingResumePostResponse = import("./contracts.types.js").AssetSandboxAllocationResponse;
1685
1303
  /** Backend request type: AllocationInput. */
1686
1304
  export interface SandboxBillingQuoteResourcesPostInput extends JsonObject {
1687
1305
  "max_hourly_amount"?: string | number | null;
@@ -1710,10 +1328,10 @@ export interface WalletBillingSubscriptionsIndexGetResponseDataSubscriptions ext
1710
1328
  "unit_price": string;
1711
1329
  "currency": string;
1712
1330
  "status": string;
1713
- "purchase_id"?: string | null;
1714
- "current_period_start"?: string | null;
1715
- "current_period_end"?: string | null;
1716
- "next_charge_at"?: string | null;
1331
+ "purchase_id": string | null;
1332
+ "current_period_start": string | null;
1333
+ "current_period_end": string | null;
1334
+ "next_charge_at": string | null;
1717
1335
  "created_at": string;
1718
1336
  "updated_at": string;
1719
1337
  }
@@ -1738,24 +1356,24 @@ export type ServiceLifecycleDeletePermanentlyDeleteResponse = ServiceLifecycleDe
1738
1356
  export interface ServiceLifecyclePausePostResponseData extends JsonObject {
1739
1357
  "service_name": string;
1740
1358
  "status": string;
1741
- "paused_at"?: string | null;
1742
- "purge_at"?: string | null;
1359
+ "paused_at": string | null;
1360
+ "purge_at": string | null;
1743
1361
  }
1744
1362
  export type ServiceLifecyclePausePostResponse = ServiceLifecyclePausePostResponseData;
1745
1363
  /** Backend response type: ServiceLifecycleView. */
1746
1364
  export interface ServiceLifecycleRemovePostResponseData extends JsonObject {
1747
1365
  "service_name": string;
1748
1366
  "status": string;
1749
- "paused_at"?: string | null;
1750
- "purge_at"?: string | null;
1367
+ "paused_at": string | null;
1368
+ "purge_at": string | null;
1751
1369
  }
1752
1370
  export type ServiceLifecycleRemovePostResponse = ServiceLifecycleRemovePostResponseData;
1753
1371
  /** Backend response type: ServiceLifecycleView. */
1754
1372
  export interface ServiceLifecycleResumePostResponseData extends JsonObject {
1755
1373
  "service_name": string;
1756
1374
  "status": string;
1757
- "paused_at"?: string | null;
1758
- "purge_at"?: string | null;
1375
+ "paused_at": string | null;
1376
+ "purge_at": string | null;
1759
1377
  }
1760
1378
  export type ServiceLifecycleResumePostResponse = ServiceLifecycleResumePostResponseData;
1761
1379
  /** Backend request type: SubscriptionPurchaseRequest. */
@@ -1777,10 +1395,8 @@ export interface WalletBillingSubscriptionsPurchasePostResponse extends ApiEnvel
1777
1395
  }
1778
1396
  /** Backend query type: LogListQuery. */
1779
1397
  export interface LogsUserActionLogsIndexGetQuery extends QueryParams {
1780
- "page[number]"?: number | null;
1781
- "page[size]"?: number | null;
1782
- "page_number"?: string | null;
1783
- "page_size"?: string | null;
1398
+ "page[number]"?: number | null | string;
1399
+ "page[size]"?: number | null | string;
1784
1400
  "profile_id"?: string | null;
1785
1401
  "action_id"?: string | null;
1786
1402
  "asset_id"?: string | null;
@@ -1795,11 +1411,11 @@ export interface LogsUserActionLogsIndexGetResponseItem extends JsonObject {
1795
1411
  "id": string;
1796
1412
  "profile_id": string;
1797
1413
  "action_id": string;
1798
- "action_name"?: string | null;
1799
- "event_id"?: string | null;
1414
+ "action_name": string | null;
1415
+ "event_id": string | null;
1800
1416
  "subject_type": string;
1801
- "subject_id"?: string | null;
1802
- "value"?: string | null;
1417
+ "subject_id": string | null;
1418
+ "value": string | null;
1803
1419
  "metadata": JsonValue;
1804
1420
  "occurred_at": string;
1805
1421
  "status": number;
@@ -1819,10 +1435,8 @@ export interface LogsUserActionLogsIndexGetResponse extends ApiEnvelope<LogsUser
1819
1435
  }
1820
1436
  /** Backend query type: LogListQuery. */
1821
1437
  export interface LogsUserAssetLogsIndexGetQuery extends QueryParams {
1822
- "page[number]"?: number | null;
1823
- "page[size]"?: number | null;
1824
- "page_number"?: string | null;
1825
- "page_size"?: string | null;
1438
+ "page[number]"?: number | null | string;
1439
+ "page[size]"?: number | null | string;
1826
1440
  "profile_id"?: string | null;
1827
1441
  "action_id"?: string | null;
1828
1442
  "asset_id"?: string | null;
@@ -1833,20 +1447,20 @@ export interface LogsUserAssetLogsIndexGetQuery extends QueryParams {
1833
1447
  "earned_only"?: boolean | null;
1834
1448
  }
1835
1449
  /** Backend response type: crate::models::PagedResult<crate::logs::models::UserAssetLogResponse>. */
1836
- export type LogsUserAssetLogsIndexGetResponseItemAssetType = "Coin" | "Badge" | "XP" | "Charge" | "Gem";
1450
+ export type LogsUserAssetLogsIndexGetResponseItemAssetType = "coin" | "badge" | "xp" | "charge" | "gem";
1837
1451
  export interface LogsUserAssetLogsIndexGetResponseItem extends JsonObject {
1838
1452
  "id": string;
1839
1453
  "profile_id": string;
1840
1454
  "action_id": string;
1841
1455
  "asset_id": string;
1842
- "action_name"?: string | null;
1843
- "action_title"?: string | null;
1844
- "action_description"?: string | null;
1845
- "asset_name"?: string | null;
1846
- "asset_title"?: string | null;
1847
- "asset_type"?: LogsUserAssetLogsIndexGetResponseItemAssetType | null;
1456
+ "action_name": string | null;
1457
+ "action_title": string | null;
1458
+ "action_description": string | null;
1459
+ "asset_name": string | null;
1460
+ "asset_title": string | null;
1461
+ "asset_type": LogsUserAssetLogsIndexGetResponseItemAssetType | null;
1848
1462
  "subject_type": string;
1849
- "subject_id"?: string | null;
1463
+ "subject_id": string | null;
1850
1464
  "quantity": string;
1851
1465
  "transaction_type": string;
1852
1466
  "created_at": string;
@@ -1900,4 +1514,6 @@ export interface WalletBillingWalletTopupPostResponseData extends JsonObject {
1900
1514
  }
1901
1515
  export interface WalletBillingWalletTopupPostResponse extends ApiEnvelope<WalletBillingWalletTopupPostResponseData> {
1902
1516
  }
1517
+ /** Backend response type: HealthResponse. */
1518
+ export type RouterHealthGetResponse = import("@faiber/sdk-core").ServiceHealthResponse;
1903
1519
  //# sourceMappingURL=operations.types.d.ts.map