@lumeweb/portal-sdk 0.1.0 → 0.1.2

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.
Files changed (49) hide show
  1. package/dist/esm/account/generated/accountAPI.schemas.d.ts +427 -20
  2. package/dist/esm/account/generated/billing.d.ts +688 -0
  3. package/dist/esm/account/generated/billing.js +444 -0
  4. package/dist/esm/account/generated/billing.js.map +1 -0
  5. package/dist/esm/account/generated/default.d.ts +118 -97
  6. package/dist/esm/account/generated/default.js +181 -41
  7. package/dist/esm/account/generated/default.js.map +1 -1
  8. package/dist/esm/account/generated/index.d.ts +3 -3
  9. package/dist/esm/account/generated/index.js +2 -2
  10. package/dist/esm/account/generated/quota.d.ts +35 -0
  11. package/dist/esm/account/generated/quota.js +28 -0
  12. package/dist/esm/account/generated/quota.js.map +1 -0
  13. package/dist/esm/account.d.ts +0 -1
  14. package/dist/esm/account.js.map +1 -1
  15. package/dist/esm/http-utils.d.ts +0 -1
  16. package/dist/esm/http-utils.js.map +1 -1
  17. package/dist/esm/index.d.ts +5 -3
  18. package/dist/esm/index.js +4 -2
  19. package/dist/esm/openapi.d.ts +3 -3
  20. package/dist/esm/openapi.js +2 -2
  21. package/dist/esm/query-utils.d.ts +0 -1
  22. package/dist/esm/types.js.map +1 -1
  23. package/package.json +5 -5
  24. package/dist/cjs/account/generated/accountAPI.schemas.cjs +0 -0
  25. package/dist/cjs/account/generated/accountAPI.schemas.d.cts +0 -239
  26. package/dist/cjs/account/generated/default.cjs +0 -676
  27. package/dist/cjs/account/generated/default.cjs.map +0 -1
  28. package/dist/cjs/account/generated/default.d.cts +0 -923
  29. package/dist/cjs/account/generated/index.cjs +0 -58
  30. package/dist/cjs/account/generated/index.d.cts +0 -3
  31. package/dist/cjs/account.cjs +0 -348
  32. package/dist/cjs/account.cjs.map +0 -1
  33. package/dist/cjs/account.d.cts +0 -200
  34. package/dist/cjs/http-utils.cjs +0 -87
  35. package/dist/cjs/http-utils.cjs.map +0 -1
  36. package/dist/cjs/http-utils.d.cts +0 -54
  37. package/dist/cjs/index.cjs +0 -75
  38. package/dist/cjs/index.d.cts +0 -8
  39. package/dist/cjs/openapi.cjs +0 -58
  40. package/dist/cjs/openapi.d.cts +0 -3
  41. package/dist/cjs/query-utils.cjs +0 -44
  42. package/dist/cjs/query-utils.cjs.map +0 -1
  43. package/dist/cjs/query-utils.d.cts +0 -65
  44. package/dist/cjs/sdk.cjs +0 -20
  45. package/dist/cjs/sdk.cjs.map +0 -1
  46. package/dist/cjs/sdk.d.cts +0 -12
  47. package/dist/cjs/types.cjs +0 -116
  48. package/dist/cjs/types.cjs.map +0 -1
  49. package/dist/cjs/types.d.cts +0 -58
@@ -1,23 +1,32 @@
1
1
  //#region src/account/generated/accountAPI.schemas.d.ts
2
2
  /**
3
- * Generated by orval v7.18.0 🍺
3
+ * Generated by orval v8.10.0 🍺
4
4
  * Do not edit manually.
5
5
  * Account API
6
6
  * API endpoints for managing user accounts, authentication, and API keys.
7
- * OpenAPI spec version: develop
7
+ * OpenAPI spec version: v0.2.7-0.20260418132608-572560c6efd0
8
8
  */
9
+ interface APIEndpointInfoResponse {
10
+ method: string;
11
+ path: string;
12
+ }
9
13
  interface APIKeyCreateRequest {
10
14
  name: string;
11
15
  }
16
+ type BinaryUUID = string;
12
17
  interface APIKeyResponse {
13
18
  created_at: string;
14
19
  name: string;
15
20
  uuid: BinaryUUID;
16
21
  }
17
- interface APIKeyResponseResponse {
18
- data: APIKeyResponse;
22
+ interface APIKeyListResponse {
23
+ data: APIKeyResponse[];
19
24
  total: number;
20
25
  }
26
+ interface AccessModelDef {
27
+ key: string;
28
+ value: string;
29
+ }
21
30
  interface AccessModel {
22
31
  matchers: AccessModelDef;
23
32
  policy_definition: AccessModelDef;
@@ -25,10 +34,6 @@ interface AccessModel {
25
34
  request_definition: AccessModelDef;
26
35
  role_definition: AccessModelDef;
27
36
  }
28
- interface AccessModelDef {
29
- key: string;
30
- value: string;
31
- }
32
37
  interface AccessPolicy {
33
38
  act: string;
34
39
  dom: string;
@@ -49,13 +54,41 @@ interface AccountPermissionsResponse {
49
54
  model: AccessModel;
50
55
  permissions: AccessPolicy[];
51
56
  }
52
- /**
53
- * @minItems 16
54
- * @maxItems 16
55
- */
56
- type BinUUID = number[];
57
- interface BinaryUUID {
58
- BinUUID: BinUUID;
57
+ interface Decimal {
58
+ [key: string]: unknown;
59
+ }
60
+ interface BalanceResponse {
61
+ balance: Decimal;
62
+ user_id: number;
63
+ }
64
+ interface ChangePlanRequest {
65
+ period_id: number;
66
+ }
67
+ interface CheckoutSessionStatusResponse {
68
+ customer_email: string;
69
+ session_id: string;
70
+ status: string;
71
+ user_id: number;
72
+ }
73
+ type CheckoutUIFragmentMetadata = {
74
+ [key: string]: unknown;
75
+ };
76
+ interface CheckoutUIFragment {
77
+ css?: string;
78
+ html?: string;
79
+ link?: string;
80
+ metadata?: CheckoutUIFragmentMetadata;
81
+ script?: string;
82
+ type: string;
83
+ }
84
+ type CheckoutUIResponseMetadata = {
85
+ [key: string]: unknown;
86
+ };
87
+ interface CheckoutUIResponse {
88
+ expires_at: string;
89
+ fragments: CheckoutUIFragment[];
90
+ metadata?: CheckoutUIResponseMetadata;
91
+ session_id?: string;
59
92
  }
60
93
  interface CreateAPIKeyResponse {
61
94
  name: string;
@@ -70,6 +103,20 @@ interface Error {
70
103
  interface ErrorResponse {
71
104
  error: string;
72
105
  }
106
+ interface GatewayAbilities {
107
+ checkout: boolean;
108
+ customer_portal: boolean;
109
+ session_status: boolean;
110
+ }
111
+ interface GatewayPublicInfo {
112
+ abilities: GatewayAbilities;
113
+ description: string;
114
+ id: string;
115
+ is_active: boolean;
116
+ logo_url: string;
117
+ name: string;
118
+ }
119
+ type GatewayListResponse = GatewayPublicInfo[];
73
120
  interface LoginRequest {
74
121
  email: string;
75
122
  password: string;
@@ -79,6 +126,31 @@ interface LoginResponse {
79
126
  otp?: boolean;
80
127
  token: string;
81
128
  }
129
+ type ManagementCapabilitiesResponseAdminOperations = {
130
+ [key: string]: boolean;
131
+ };
132
+ type ManagementCapabilitiesResponseOperations = {
133
+ [key: string]: boolean;
134
+ };
135
+ interface ManagementCapabilitiesResponse {
136
+ admin_operations: ManagementCapabilitiesResponseAdminOperations;
137
+ management_mode: string;
138
+ operations: ManagementCapabilitiesResponseOperations;
139
+ }
140
+ interface ManagementRequest {
141
+ operation: string;
142
+ }
143
+ interface ManagementResultResponse {
144
+ action: string;
145
+ api_endpoint?: APIEndpointInfoResponse;
146
+ can_abort: boolean;
147
+ confirmation_message?: string;
148
+ effective_time?: string;
149
+ error_message?: string;
150
+ requires_confirmation: boolean;
151
+ status: string;
152
+ url?: string;
153
+ }
82
154
  interface OTPDisableRequest {
83
155
  password: string;
84
156
  }
@@ -114,14 +186,14 @@ interface OperationFilterItem {
114
186
  name: string;
115
187
  value: string;
116
188
  }
117
- interface OperationFiltersResponse {
118
- data: OperationFiltersResponseData;
119
- }
120
189
  interface OperationFiltersResponseData {
121
190
  operations: OperationFilterItem[];
122
191
  protocols: OperationFilterItem[];
123
192
  statuses: OperationFilterItem[];
124
193
  }
194
+ interface OperationFiltersResponse {
195
+ data: OperationFiltersResponseData;
196
+ }
125
197
  interface OperationFiltersResponseResponse {
126
198
  data: OperationFiltersResponse;
127
199
  total: number;
@@ -160,6 +232,54 @@ interface PongResponse {
160
232
  ping: string;
161
233
  token: string;
162
234
  }
235
+ interface PublicPricingPlanPeriodDTO {
236
+ cadence: string;
237
+ id: number;
238
+ price_usd: number;
239
+ quota_plan_id: number;
240
+ rolling_days?: number;
241
+ }
242
+ interface PublicPricingPlanResponse {
243
+ currency: string;
244
+ description: string;
245
+ features: string[];
246
+ id: number;
247
+ name: string;
248
+ pricing_periods: PublicPricingPlanPeriodDTO[];
249
+ }
250
+ interface PublicPricingPlansListResponse {
251
+ data: PublicPricingPlanResponse[];
252
+ total: number;
253
+ }
254
+ interface UsagePoint {
255
+ bytes: number;
256
+ date: string;
257
+ }
258
+ interface QuotaHistoryResponse {
259
+ points: UsagePoint[];
260
+ user_id: number;
261
+ }
262
+ interface WindowInfo {
263
+ duration?: number;
264
+ end_date?: string;
265
+ start_date?: string;
266
+ timezone?: string;
267
+ type: string;
268
+ }
269
+ interface QuotaTypeStatus {
270
+ limit?: number;
271
+ percentage: number;
272
+ remaining?: number;
273
+ reserved?: number;
274
+ threshold?: number;
275
+ used: number;
276
+ window?: WindowInfo;
277
+ }
278
+ interface QuotaStatusResponse {
279
+ download: QuotaTypeStatus;
280
+ storage: QuotaTypeStatus;
281
+ upload: QuotaTypeStatus;
282
+ }
163
283
  interface RegisterRequest {
164
284
  email: string;
165
285
  first_name: string;
@@ -169,6 +289,15 @@ interface RegisterRequest {
169
289
  interface ResendVerifyEmailRequest {
170
290
  email: string;
171
291
  }
292
+ interface SubscriptionStatusResponse {
293
+ created_at?: string;
294
+ gateway_type?: string;
295
+ is_subscribed: boolean;
296
+ paused_at?: string;
297
+ pricing_plan_period_id?: number;
298
+ updated_at?: string;
299
+ will_cancel_at?: string;
300
+ }
172
301
  /**
173
302
  * @minItems 16
174
303
  * @maxItems 16
@@ -189,22 +318,116 @@ interface UpdateProfileRequest {
189
318
  interface UploadLimitResponse {
190
319
  limit: number;
191
320
  }
321
+ interface UserCreditItem {
322
+ amount: Decimal;
323
+ created_at: string;
324
+ description?: string;
325
+ direction: string;
326
+ id: Uuid;
327
+ type: string;
328
+ }
329
+ interface UserCreditsListResponse {
330
+ data: UserCreditItem[];
331
+ total: number;
332
+ }
192
333
  interface VerifyEmailRequest {
193
334
  email: string;
194
335
  token: string;
195
336
  }
337
+ type StringUUIDSchema = string;
196
338
  type PostApiAccountAvatarBody = {
197
- file: string;
339
+ file: Blob;
340
+ };
341
+ type GetApiAccountBillingCheckoutSessionSessionIdStatusParams = {
342
+ /**
343
+ * Payment gateway type (defaults to Stripe if not specified)
344
+ */
345
+ gateway?: string;
346
+ };
347
+ type GetApiAccountBillingCheckoutUiPlanIdParams = {
348
+ /**
349
+ * Payment gateway type (defaults to Stripe if not specified)
350
+ */
351
+ gateway?: string;
352
+ /**
353
+ * Period ID for the selected pricing period
354
+ */
355
+ period_id?: string;
356
+ };
357
+ type PostApiAccountBillingWebhooksGatewayTypeBody = {
358
+ [key: string]: unknown;
198
359
  };
199
360
  type GetApiAccountKeysParams = {
200
361
  /**
201
362
  * Ending index of the items to return (exclusive). Defaults to 10.
202
363
  */
203
364
  _end?: number;
365
+ /**
366
+ * Comma-separated list of sort orders ('asc' or 'desc') corresponding to _sort fields. Defaults to 'asc'.
367
+ */
368
+ _order?: string;
369
+ /**
370
+ * Comma-separated list of fields to sort by. Available fields:
371
+ */
372
+ _sort?: string;
204
373
  /**
205
374
  * Starting index of the items to return (0-based). Defaults to 0.
206
375
  */
207
376
  _start?: number;
377
+ /**
378
+ * Filter by name contains
379
+ */
380
+ 'filters[name][contains]'?: string;
381
+ /**
382
+ * Filter by name endswith
383
+ */
384
+ 'filters[name][endswith]'?: string;
385
+ /**
386
+ * Filter by name eq
387
+ */
388
+ 'filters[name][eq]'?: string;
389
+ /**
390
+ * Filter by name ne
391
+ */
392
+ 'filters[name][ne]'?: string;
393
+ /**
394
+ * Filter by name startswith
395
+ */
396
+ 'filters[name][startswith]'?: string;
397
+ /**
398
+ * Filter by name contains
399
+ */
400
+ name_contains?: string;
401
+ /**
402
+ * Filter by name endswith
403
+ */
404
+ name_endswith?: string;
405
+ /**
406
+ * Filter by name eq
407
+ */
408
+ name_eq?: string;
409
+ /**
410
+ * Filter by name ne
411
+ */
412
+ name_ne?: string;
413
+ /**
414
+ * Filter by name startswith
415
+ */
416
+ name_startswith?: string;
417
+ };
418
+ type GetApiAccountQuotaHistoryParams = {
419
+ /**
420
+ * End date in RFC3339 format
421
+ */
422
+ end_date?: string;
423
+ /**
424
+ * Start date in RFC3339 format
425
+ */
426
+ start_date?: string;
427
+ /**
428
+ * Usage type (upload or download)
429
+ */
430
+ type?: string;
208
431
  };
209
432
  type PostApiAccountVerifyEmailParams = {
210
433
  /**
@@ -229,11 +452,195 @@ type GetApiOperationsParams = {
229
452
  * Starting index of the items to return (0-based). Defaults to 0.
230
453
  */
231
454
  _start?: number;
455
+ /**
456
+ * Filter by cid contains
457
+ */
458
+ cid_contains?: string;
459
+ /**
460
+ * Filter by cid endswith
461
+ */
462
+ cid_endswith?: string;
463
+ /**
464
+ * Filter by cid eq
465
+ */
466
+ cid_eq?: string;
467
+ /**
468
+ * Filter by cid ne
469
+ */
470
+ cid_ne?: string;
471
+ /**
472
+ * Filter by cid startswith
473
+ */
474
+ cid_startswith?: string;
475
+ /**
476
+ * Filter by cid contains
477
+ */
478
+ 'filters[cid][contains]'?: string;
479
+ /**
480
+ * Filter by cid endswith
481
+ */
482
+ 'filters[cid][endswith]'?: string;
483
+ /**
484
+ * Filter by cid eq
485
+ */
486
+ 'filters[cid][eq]'?: string;
487
+ /**
488
+ * Filter by cid ne
489
+ */
490
+ 'filters[cid][ne]'?: string;
491
+ /**
492
+ * Filter by cid startswith
493
+ */
494
+ 'filters[cid][startswith]'?: string;
495
+ /**
496
+ * Filter by id between
497
+ */
498
+ 'filters[id][between]'?: string;
499
+ /**
500
+ * Filter by id eq
501
+ */
502
+ 'filters[id][eq]'?: string;
503
+ /**
504
+ * Filter by id gt
505
+ */
506
+ 'filters[id][gt]'?: string;
507
+ /**
508
+ * Filter by id gte
509
+ */
510
+ 'filters[id][gte]'?: string;
511
+ /**
512
+ * Filter by id lt
513
+ */
514
+ 'filters[id][lt]'?: string;
515
+ /**
516
+ * Filter by id lte
517
+ */
518
+ 'filters[id][lte]'?: string;
519
+ /**
520
+ * Filter by id ne
521
+ */
522
+ 'filters[id][ne]'?: string;
523
+ /**
524
+ * Filter by operation contains
525
+ */
526
+ 'filters[operation][contains]'?: string;
527
+ /**
528
+ * Filter by operation endswith
529
+ */
530
+ 'filters[operation][endswith]'?: string;
531
+ /**
532
+ * Filter by operation eq
533
+ */
534
+ 'filters[operation][eq]'?: string;
535
+ /**
536
+ * Filter by operation ne
537
+ */
538
+ 'filters[operation][ne]'?: string;
539
+ /**
540
+ * Filter by operation startswith
541
+ */
542
+ 'filters[operation][startswith]'?: string;
543
+ /**
544
+ * Filter by progress_percent between
545
+ */
546
+ 'filters[progress_percent][between]'?: string;
547
+ /**
548
+ * Filter by progress_percent eq
549
+ */
550
+ 'filters[progress_percent][eq]'?: string;
551
+ /**
552
+ * Filter by progress_percent gt
553
+ */
554
+ 'filters[progress_percent][gt]'?: string;
555
+ /**
556
+ * Filter by progress_percent gte
557
+ */
558
+ 'filters[progress_percent][gte]'?: string;
559
+ /**
560
+ * Filter by progress_percent lt
561
+ */
562
+ 'filters[progress_percent][lt]'?: string;
563
+ /**
564
+ * Filter by progress_percent lte
565
+ */
566
+ 'filters[progress_percent][lte]'?: string;
567
+ /**
568
+ * Filter by progress_percent ne
569
+ */
570
+ 'filters[progress_percent][ne]'?: string;
571
+ /**
572
+ * Filter by id eq
573
+ */
574
+ id_eq?: string;
575
+ /**
576
+ * Filter by id gt
577
+ */
578
+ id_gt?: string;
579
+ /**
580
+ * Filter by id gte
581
+ */
582
+ id_gte?: string;
583
+ /**
584
+ * Filter by id lt
585
+ */
586
+ id_lt?: string;
587
+ /**
588
+ * Filter by id lte
589
+ */
590
+ id_lte?: string;
591
+ /**
592
+ * Filter by id ne
593
+ */
594
+ id_ne?: string;
595
+ /**
596
+ * Filter by operation contains
597
+ */
598
+ operation_contains?: string;
599
+ /**
600
+ * Filter by operation endswith
601
+ */
602
+ operation_endswith?: string;
603
+ /**
604
+ * Filter by operation eq
605
+ */
606
+ operation_eq?: string;
607
+ /**
608
+ * Filter by operation ne
609
+ */
610
+ operation_ne?: string;
611
+ /**
612
+ * Filter by operation startswith
613
+ */
614
+ operation_startswith?: string;
615
+ /**
616
+ * Filter by progress_percent eq
617
+ */
618
+ progress_percent_eq?: string;
619
+ /**
620
+ * Filter by progress_percent gt
621
+ */
622
+ progress_percent_gt?: string;
623
+ /**
624
+ * Filter by progress_percent gte
625
+ */
626
+ progress_percent_gte?: string;
627
+ /**
628
+ * Filter by progress_percent lt
629
+ */
630
+ progress_percent_lt?: string;
631
+ /**
632
+ * Filter by progress_percent lte
633
+ */
634
+ progress_percent_lte?: string;
635
+ /**
636
+ * Filter by progress_percent ne
637
+ */
638
+ progress_percent_ne?: string;
232
639
  /**
233
640
  * Search term for filename or other relevant operation data
234
641
  */
235
642
  search?: string;
236
643
  };
237
644
  //#endregion
238
- export { APIKeyCreateRequest, APIKeyResponse, APIKeyResponseResponse, AccessModel, AccessModelDef, AccessPolicy, AccountInfoResponse, AccountPermissionsResponse, BinUUID, BinaryUUID, CreateAPIKeyResponse, Error, ErrorResponse, GetApiAccountKeysParams, GetApiOperationsParams, LoginRequest, LoginResponse, OTPDisableRequest, OTPGenerateResponse, OTPValidateRequest, OTPVerifyRequest, OperationDetailResponse, OperationFilterItem, OperationFiltersResponse, OperationFiltersResponseData, OperationFiltersResponseResponse, OperationListItem, OperationListItemResponse, PasswordResetRequest, PasswordResetVerifyRequest, PongResponse, PostApiAccountAvatarBody, PostApiAccountVerifyEmailParams, RegisterRequest, ResendVerifyEmailRequest, UpdateEmailRequest, UpdatePasswordRequest, UpdateProfileRequest, UploadLimitResponse, Uuid, VerifyEmailRequest };
645
+ export { APIEndpointInfoResponse, APIKeyCreateRequest, APIKeyListResponse, APIKeyResponse, AccessModel, AccessModelDef, AccessPolicy, AccountInfoResponse, AccountPermissionsResponse, BalanceResponse, BinaryUUID, ChangePlanRequest, CheckoutSessionStatusResponse, CheckoutUIFragment, CheckoutUIFragmentMetadata, CheckoutUIResponse, CheckoutUIResponseMetadata, CreateAPIKeyResponse, Decimal, Error, ErrorResponse, GatewayAbilities, GatewayListResponse, GatewayPublicInfo, GetApiAccountBillingCheckoutSessionSessionIdStatusParams, GetApiAccountBillingCheckoutUiPlanIdParams, GetApiAccountKeysParams, GetApiAccountQuotaHistoryParams, GetApiOperationsParams, LoginRequest, LoginResponse, ManagementCapabilitiesResponse, ManagementCapabilitiesResponseAdminOperations, ManagementCapabilitiesResponseOperations, ManagementRequest, ManagementResultResponse, OTPDisableRequest, OTPGenerateResponse, OTPValidateRequest, OTPVerifyRequest, OperationDetailResponse, OperationFilterItem, OperationFiltersResponse, OperationFiltersResponseData, OperationFiltersResponseResponse, OperationListItem, OperationListItemResponse, PasswordResetRequest, PasswordResetVerifyRequest, PongResponse, PostApiAccountAvatarBody, PostApiAccountBillingWebhooksGatewayTypeBody, PostApiAccountVerifyEmailParams, PublicPricingPlanPeriodDTO, PublicPricingPlanResponse, PublicPricingPlansListResponse, QuotaHistoryResponse, QuotaStatusResponse, QuotaTypeStatus, RegisterRequest, ResendVerifyEmailRequest, StringUUIDSchema, SubscriptionStatusResponse, UpdateEmailRequest, UpdatePasswordRequest, UpdateProfileRequest, UploadLimitResponse, UsagePoint, UserCreditItem, UserCreditsListResponse, Uuid, VerifyEmailRequest, WindowInfo };
239
646
  //# sourceMappingURL=accountAPI.schemas.d.ts.map