@lumeweb/portal-sdk 0.0.2 → 0.1.1

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/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2024 Hammer Technologies LLC
3
+ Copyright (c) 2024-2026 Hammer Technologies LLC
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
6
6
 
@@ -0,0 +1,646 @@
1
+ //#region src/account/generated/accountAPI.schemas.d.ts
2
+ /**
3
+ * Generated by orval v8.10.0 🍺
4
+ * Do not edit manually.
5
+ * Account API
6
+ * API endpoints for managing user accounts, authentication, and API keys.
7
+ * OpenAPI spec version: v0.2.7-0.20260418132608-572560c6efd0
8
+ */
9
+ interface APIEndpointInfoResponse {
10
+ method: string;
11
+ path: string;
12
+ }
13
+ interface APIKeyCreateRequest {
14
+ name: string;
15
+ }
16
+ type BinaryUUID = string;
17
+ interface APIKeyResponse {
18
+ created_at: string;
19
+ name: string;
20
+ uuid: BinaryUUID;
21
+ }
22
+ interface APIKeyListResponse {
23
+ data: APIKeyResponse[];
24
+ total: number;
25
+ }
26
+ interface AccessModelDef {
27
+ key: string;
28
+ value: string;
29
+ }
30
+ interface AccessModel {
31
+ matchers: AccessModelDef;
32
+ policy_definition: AccessModelDef;
33
+ policy_effect: AccessModelDef;
34
+ request_definition: AccessModelDef;
35
+ role_definition: AccessModelDef;
36
+ }
37
+ interface AccessPolicy {
38
+ act: string;
39
+ dom: string;
40
+ obj: string;
41
+ sub: string;
42
+ }
43
+ interface AccountInfoResponse {
44
+ avatar?: string;
45
+ created_at?: string;
46
+ email: string;
47
+ first_name: string;
48
+ id: number;
49
+ last_name: string;
50
+ otp: boolean;
51
+ verified: boolean;
52
+ }
53
+ interface AccountPermissionsResponse {
54
+ model: AccessModel;
55
+ permissions: AccessPolicy[];
56
+ }
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;
92
+ }
93
+ interface CreateAPIKeyResponse {
94
+ name: string;
95
+ token: string;
96
+ uuid: BinaryUUID;
97
+ }
98
+ interface Error {
99
+ error: string;
100
+ message: string;
101
+ namespace: string;
102
+ }
103
+ interface ErrorResponse {
104
+ error: string;
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[];
120
+ interface LoginRequest {
121
+ email: string;
122
+ password: string;
123
+ remember: boolean;
124
+ }
125
+ interface LoginResponse {
126
+ otp?: boolean;
127
+ token: string;
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
+ }
154
+ interface OTPDisableRequest {
155
+ password: string;
156
+ }
157
+ interface OTPGenerateResponse {
158
+ otp: string;
159
+ }
160
+ interface OTPValidateRequest {
161
+ otp: string;
162
+ }
163
+ interface OTPVerifyRequest {
164
+ otp: string;
165
+ }
166
+ interface OperationDetailResponse {
167
+ cid?: string;
168
+ current_step?: number;
169
+ error?: string;
170
+ estimated_completion_at?: string;
171
+ id: number;
172
+ operation: string;
173
+ operation_display_name: string;
174
+ progress_percent: number;
175
+ protocol: string;
176
+ protocol_display_name: string;
177
+ started_at: string;
178
+ status: string;
179
+ status_display_name: string;
180
+ status_message: string;
181
+ total_steps?: number;
182
+ updated_at: string;
183
+ }
184
+ interface OperationFilterItem {
185
+ description?: string;
186
+ name: string;
187
+ value: string;
188
+ }
189
+ interface OperationFiltersResponseData {
190
+ operations: OperationFilterItem[];
191
+ protocols: OperationFilterItem[];
192
+ statuses: OperationFilterItem[];
193
+ }
194
+ interface OperationFiltersResponse {
195
+ data: OperationFiltersResponseData;
196
+ }
197
+ interface OperationFiltersResponseResponse {
198
+ data: OperationFiltersResponse;
199
+ total: number;
200
+ }
201
+ interface OperationListItem {
202
+ cid?: string;
203
+ current_step?: number;
204
+ error?: string;
205
+ estimated_completion_at?: string;
206
+ id: number;
207
+ operation: string;
208
+ operation_display_name: string;
209
+ progress_percent: number;
210
+ protocol: string;
211
+ protocol_display_name: string;
212
+ started_at: string;
213
+ status: string;
214
+ status_display_name: string;
215
+ status_message: string;
216
+ total_steps?: number;
217
+ updated_at: string;
218
+ }
219
+ interface OperationListItemResponse {
220
+ data: OperationListItem[];
221
+ total: number;
222
+ }
223
+ interface PasswordResetRequest {
224
+ email: string;
225
+ }
226
+ interface PasswordResetVerifyRequest {
227
+ email: string;
228
+ password: string;
229
+ token: string;
230
+ }
231
+ interface PongResponse {
232
+ ping: string;
233
+ token: string;
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
+ }
283
+ interface RegisterRequest {
284
+ email: string;
285
+ first_name: string;
286
+ last_name: string;
287
+ password: string;
288
+ }
289
+ interface ResendVerifyEmailRequest {
290
+ email: string;
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
+ }
301
+ /**
302
+ * @minItems 16
303
+ * @maxItems 16
304
+ */
305
+ type Uuid = number[];
306
+ interface UpdateEmailRequest {
307
+ email: string;
308
+ password: string;
309
+ }
310
+ interface UpdatePasswordRequest {
311
+ current_password: string;
312
+ new_password: string;
313
+ }
314
+ interface UpdateProfileRequest {
315
+ first_name?: string;
316
+ last_name?: string;
317
+ }
318
+ interface UploadLimitResponse {
319
+ limit: number;
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
+ }
333
+ interface VerifyEmailRequest {
334
+ email: string;
335
+ token: string;
336
+ }
337
+ type StringUUIDSchema = string;
338
+ type PostApiAccountAvatarBody = {
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;
359
+ };
360
+ type GetApiAccountKeysParams = {
361
+ /**
362
+ * Ending index of the items to return (exclusive). Defaults to 10.
363
+ */
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;
373
+ /**
374
+ * Starting index of the items to return (0-based). Defaults to 0.
375
+ */
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;
431
+ };
432
+ type PostApiAccountVerifyEmailParams = {
433
+ /**
434
+ * Auto-login user after verification (boolean: true/false; also accepts 1/0).
435
+ */
436
+ login?: string;
437
+ };
438
+ type GetApiOperationsParams = {
439
+ /**
440
+ * Ending index of the items to return (exclusive). Defaults to 10.
441
+ */
442
+ _end?: number;
443
+ /**
444
+ * Comma-separated list of sort orders ('asc' or 'desc') corresponding to _sort fields. Defaults to 'asc'.
445
+ */
446
+ _order?: string;
447
+ /**
448
+ * Comma-separated list of fields to sort by. Available fields: id, operation, protocol, status, status_message, progress_percent, cid, total_steps, current_step, error
449
+ */
450
+ _sort?: string;
451
+ /**
452
+ * Starting index of the items to return (0-based). Defaults to 0.
453
+ */
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;
639
+ /**
640
+ * Search term for filename or other relevant operation data
641
+ */
642
+ search?: string;
643
+ };
644
+ //#endregion
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 };
646
+ //# sourceMappingURL=accountAPI.schemas.d.ts.map