@moonbase.sh/api 0.1.109

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.
@@ -0,0 +1,721 @@
1
+ import { z } from 'zod';
2
+
3
+ type HttpMethods = 'GET' | 'POST' | 'PATCH' | 'PUT' | 'DELETE';
4
+ interface Response {
5
+ data: unknown;
6
+ headers: Headers;
7
+ status: number;
8
+ }
9
+ declare class MoonbaseApi {
10
+ baseUrl: string;
11
+ private apiKey;
12
+ constructor(baseUrl: string, apiKey: string);
13
+ fetch(path: string, method?: HttpMethods, body?: any, contentType?: string): Promise<Response>;
14
+ }
15
+
16
+ declare const activationRequestSchema: z.ZodObject<{
17
+ id: z.ZodString;
18
+ status: z.ZodNativeEnum<typeof ActivationRequestStatus>;
19
+ product: z.ZodObject<{
20
+ id: z.ZodString;
21
+ name: z.ZodString;
22
+ tagline: z.ZodString;
23
+ description: z.ZodString;
24
+ website: z.ZodNullable<z.ZodString>;
25
+ iconUrl: z.ZodNullable<z.ZodString>;
26
+ status: z.ZodNativeEnum<typeof ProductStatus>;
27
+ purchasable: z.ZodBoolean;
28
+ currentReleaseVersion: z.ZodNullable<z.ZodString>;
29
+ }, "strip", z.ZodTypeAny, {
30
+ status: ProductStatus;
31
+ id: string;
32
+ name: string;
33
+ tagline: string;
34
+ description: string;
35
+ website: string | null;
36
+ iconUrl: string | null;
37
+ purchasable: boolean;
38
+ currentReleaseVersion: string | null;
39
+ }, {
40
+ status: ProductStatus;
41
+ id: string;
42
+ name: string;
43
+ tagline: string;
44
+ description: string;
45
+ website: string | null;
46
+ iconUrl: string | null;
47
+ purchasable: boolean;
48
+ currentReleaseVersion: string | null;
49
+ }>;
50
+ activation: z.ZodOptional<z.ZodObject<{
51
+ id: z.ZodString;
52
+ name: z.ZodString;
53
+ status: z.ZodNativeEnum<typeof ActivationStatus>;
54
+ activationMethod: z.ZodNativeEnum<typeof ActivationMethod>;
55
+ lastValidatedAt: z.ZodDate;
56
+ license: z.ZodObject<{
57
+ id: z.ZodString;
58
+ status: z.ZodNativeEnum<typeof LicenseStatus>;
59
+ activeNumberOfActivations: z.ZodNumber;
60
+ maxNumberOfActivations: z.ZodNumber;
61
+ }, "strip", z.ZodTypeAny, {
62
+ status: LicenseStatus;
63
+ id: string;
64
+ activeNumberOfActivations: number;
65
+ maxNumberOfActivations: number;
66
+ }, {
67
+ status: LicenseStatus;
68
+ id: string;
69
+ activeNumberOfActivations: number;
70
+ maxNumberOfActivations: number;
71
+ }>;
72
+ }, "strip", z.ZodTypeAny, {
73
+ status: ActivationStatus;
74
+ id: string;
75
+ name: string;
76
+ activationMethod: ActivationMethod;
77
+ lastValidatedAt: Date;
78
+ license: {
79
+ status: LicenseStatus;
80
+ id: string;
81
+ activeNumberOfActivations: number;
82
+ maxNumberOfActivations: number;
83
+ };
84
+ }, {
85
+ status: ActivationStatus;
86
+ id: string;
87
+ name: string;
88
+ activationMethod: ActivationMethod;
89
+ lastValidatedAt: Date;
90
+ license: {
91
+ status: LicenseStatus;
92
+ id: string;
93
+ activeNumberOfActivations: number;
94
+ maxNumberOfActivations: number;
95
+ };
96
+ }>>;
97
+ trial: z.ZodOptional<z.ZodObject<{
98
+ id: z.ZodString;
99
+ status: z.ZodNativeEnum<typeof TrialStatus>;
100
+ expiresAt: z.ZodDate;
101
+ lastValidatedAt: z.ZodDate;
102
+ ownerId: z.ZodOptional<z.ZodString>;
103
+ }, "strip", z.ZodTypeAny, {
104
+ status: TrialStatus;
105
+ id: string;
106
+ lastValidatedAt: Date;
107
+ expiresAt: Date;
108
+ ownerId?: string | undefined;
109
+ }, {
110
+ status: TrialStatus;
111
+ id: string;
112
+ lastValidatedAt: Date;
113
+ expiresAt: Date;
114
+ ownerId?: string | undefined;
115
+ }>>;
116
+ customer: z.ZodOptional<z.ZodObject<{
117
+ id: z.ZodString;
118
+ name: z.ZodString;
119
+ businessName: z.ZodNullable<z.ZodString>;
120
+ taxId: z.ZodNullable<z.ZodString>;
121
+ email: z.ZodString;
122
+ numberOfLicenses: z.ZodNumber;
123
+ numberOfTrials: z.ZodNumber;
124
+ emailConfirmed: z.ZodBoolean;
125
+ hasPassword: z.ZodBoolean;
126
+ isDeleted: z.ZodBoolean;
127
+ ownedProducts: z.ZodArray<z.ZodString, "many">;
128
+ address: z.ZodNullable<z.ZodObject<{
129
+ countryCode: z.ZodString;
130
+ streetAddress1: z.ZodString;
131
+ streetAddress2: z.ZodNullable<z.ZodString>;
132
+ locality: z.ZodNullable<z.ZodString>;
133
+ region: z.ZodNullable<z.ZodString>;
134
+ postCode: z.ZodString;
135
+ }, "strip", z.ZodTypeAny, {
136
+ countryCode: string;
137
+ streetAddress1: string;
138
+ streetAddress2: string | null;
139
+ locality: string | null;
140
+ region: string | null;
141
+ postCode: string;
142
+ }, {
143
+ countryCode: string;
144
+ streetAddress1: string;
145
+ streetAddress2: string | null;
146
+ locality: string | null;
147
+ region: string | null;
148
+ postCode: string;
149
+ }>>;
150
+ communicationPreferences: z.ZodObject<{
151
+ newsletterOptIn: z.ZodBoolean;
152
+ }, "strip", z.ZodTypeAny, {
153
+ newsletterOptIn: boolean;
154
+ }, {
155
+ newsletterOptIn: boolean;
156
+ }>;
157
+ }, "strip", z.ZodTypeAny, {
158
+ id: string;
159
+ name: string;
160
+ businessName: string | null;
161
+ taxId: string | null;
162
+ email: string;
163
+ numberOfLicenses: number;
164
+ numberOfTrials: number;
165
+ emailConfirmed: boolean;
166
+ hasPassword: boolean;
167
+ isDeleted: boolean;
168
+ ownedProducts: string[];
169
+ address: {
170
+ countryCode: string;
171
+ streetAddress1: string;
172
+ streetAddress2: string | null;
173
+ locality: string | null;
174
+ region: string | null;
175
+ postCode: string;
176
+ } | null;
177
+ communicationPreferences: {
178
+ newsletterOptIn: boolean;
179
+ };
180
+ }, {
181
+ id: string;
182
+ name: string;
183
+ businessName: string | null;
184
+ taxId: string | null;
185
+ email: string;
186
+ numberOfLicenses: number;
187
+ numberOfTrials: number;
188
+ emailConfirmed: boolean;
189
+ hasPassword: boolean;
190
+ isDeleted: boolean;
191
+ ownedProducts: string[];
192
+ address: {
193
+ countryCode: string;
194
+ streetAddress1: string;
195
+ streetAddress2: string | null;
196
+ locality: string | null;
197
+ region: string | null;
198
+ postCode: string;
199
+ } | null;
200
+ communicationPreferences: {
201
+ newsletterOptIn: boolean;
202
+ };
203
+ }>>;
204
+ }, "strip", z.ZodTypeAny, {
205
+ status: ActivationRequestStatus;
206
+ id: string;
207
+ product: {
208
+ status: ProductStatus;
209
+ id: string;
210
+ name: string;
211
+ tagline: string;
212
+ description: string;
213
+ website: string | null;
214
+ iconUrl: string | null;
215
+ purchasable: boolean;
216
+ currentReleaseVersion: string | null;
217
+ };
218
+ activation?: {
219
+ status: ActivationStatus;
220
+ id: string;
221
+ name: string;
222
+ activationMethod: ActivationMethod;
223
+ lastValidatedAt: Date;
224
+ license: {
225
+ status: LicenseStatus;
226
+ id: string;
227
+ activeNumberOfActivations: number;
228
+ maxNumberOfActivations: number;
229
+ };
230
+ } | undefined;
231
+ trial?: {
232
+ status: TrialStatus;
233
+ id: string;
234
+ lastValidatedAt: Date;
235
+ expiresAt: Date;
236
+ ownerId?: string | undefined;
237
+ } | undefined;
238
+ customer?: {
239
+ id: string;
240
+ name: string;
241
+ businessName: string | null;
242
+ taxId: string | null;
243
+ email: string;
244
+ numberOfLicenses: number;
245
+ numberOfTrials: number;
246
+ emailConfirmed: boolean;
247
+ hasPassword: boolean;
248
+ isDeleted: boolean;
249
+ ownedProducts: string[];
250
+ address: {
251
+ countryCode: string;
252
+ streetAddress1: string;
253
+ streetAddress2: string | null;
254
+ locality: string | null;
255
+ region: string | null;
256
+ postCode: string;
257
+ } | null;
258
+ communicationPreferences: {
259
+ newsletterOptIn: boolean;
260
+ };
261
+ } | undefined;
262
+ }, {
263
+ status: ActivationRequestStatus;
264
+ id: string;
265
+ product: {
266
+ status: ProductStatus;
267
+ id: string;
268
+ name: string;
269
+ tagline: string;
270
+ description: string;
271
+ website: string | null;
272
+ iconUrl: string | null;
273
+ purchasable: boolean;
274
+ currentReleaseVersion: string | null;
275
+ };
276
+ activation?: {
277
+ status: ActivationStatus;
278
+ id: string;
279
+ name: string;
280
+ activationMethod: ActivationMethod;
281
+ lastValidatedAt: Date;
282
+ license: {
283
+ status: LicenseStatus;
284
+ id: string;
285
+ activeNumberOfActivations: number;
286
+ maxNumberOfActivations: number;
287
+ };
288
+ } | undefined;
289
+ trial?: {
290
+ status: TrialStatus;
291
+ id: string;
292
+ lastValidatedAt: Date;
293
+ expiresAt: Date;
294
+ ownerId?: string | undefined;
295
+ } | undefined;
296
+ customer?: {
297
+ id: string;
298
+ name: string;
299
+ businessName: string | null;
300
+ taxId: string | null;
301
+ email: string;
302
+ numberOfLicenses: number;
303
+ numberOfTrials: number;
304
+ emailConfirmed: boolean;
305
+ hasPassword: boolean;
306
+ isDeleted: boolean;
307
+ ownedProducts: string[];
308
+ address: {
309
+ countryCode: string;
310
+ streetAddress1: string;
311
+ streetAddress2: string | null;
312
+ locality: string | null;
313
+ region: string | null;
314
+ postCode: string;
315
+ } | null;
316
+ communicationPreferences: {
317
+ newsletterOptIn: boolean;
318
+ };
319
+ } | undefined;
320
+ }>;
321
+
322
+ declare enum ActivationRequestStatus {
323
+ Requested = "Requested",
324
+ Fulfilled = "Fulfilled",
325
+ Completed = "Completed"
326
+ }
327
+ type ActivationRequest = z.infer<typeof activationRequestSchema>;
328
+
329
+ declare class ActivationRequestEndpoints {
330
+ private api;
331
+ constructor(api: MoonbaseApi);
332
+ get(requestId: string): Promise<ActivationRequest>;
333
+ request(productId: string): Promise<ActivationRequest>;
334
+ }
335
+
336
+ declare const customerSchema: z.ZodObject<{
337
+ id: z.ZodString;
338
+ name: z.ZodString;
339
+ businessName: z.ZodNullable<z.ZodString>;
340
+ taxId: z.ZodNullable<z.ZodString>;
341
+ email: z.ZodString;
342
+ numberOfLicenses: z.ZodNumber;
343
+ numberOfTrials: z.ZodNumber;
344
+ emailConfirmed: z.ZodBoolean;
345
+ hasPassword: z.ZodBoolean;
346
+ isDeleted: z.ZodBoolean;
347
+ ownedProducts: z.ZodArray<z.ZodString, "many">;
348
+ address: z.ZodNullable<z.ZodObject<{
349
+ countryCode: z.ZodString;
350
+ streetAddress1: z.ZodString;
351
+ streetAddress2: z.ZodNullable<z.ZodString>;
352
+ locality: z.ZodNullable<z.ZodString>;
353
+ region: z.ZodNullable<z.ZodString>;
354
+ postCode: z.ZodString;
355
+ }, "strip", z.ZodTypeAny, {
356
+ countryCode: string;
357
+ streetAddress1: string;
358
+ streetAddress2: string | null;
359
+ locality: string | null;
360
+ region: string | null;
361
+ postCode: string;
362
+ }, {
363
+ countryCode: string;
364
+ streetAddress1: string;
365
+ streetAddress2: string | null;
366
+ locality: string | null;
367
+ region: string | null;
368
+ postCode: string;
369
+ }>>;
370
+ communicationPreferences: z.ZodObject<{
371
+ newsletterOptIn: z.ZodBoolean;
372
+ }, "strip", z.ZodTypeAny, {
373
+ newsletterOptIn: boolean;
374
+ }, {
375
+ newsletterOptIn: boolean;
376
+ }>;
377
+ }, "strip", z.ZodTypeAny, {
378
+ id: string;
379
+ name: string;
380
+ businessName: string | null;
381
+ taxId: string | null;
382
+ email: string;
383
+ numberOfLicenses: number;
384
+ numberOfTrials: number;
385
+ emailConfirmed: boolean;
386
+ hasPassword: boolean;
387
+ isDeleted: boolean;
388
+ ownedProducts: string[];
389
+ address: {
390
+ countryCode: string;
391
+ streetAddress1: string;
392
+ streetAddress2: string | null;
393
+ locality: string | null;
394
+ region: string | null;
395
+ postCode: string;
396
+ } | null;
397
+ communicationPreferences: {
398
+ newsletterOptIn: boolean;
399
+ };
400
+ }, {
401
+ id: string;
402
+ name: string;
403
+ businessName: string | null;
404
+ taxId: string | null;
405
+ email: string;
406
+ numberOfLicenses: number;
407
+ numberOfTrials: number;
408
+ emailConfirmed: boolean;
409
+ hasPassword: boolean;
410
+ isDeleted: boolean;
411
+ ownedProducts: string[];
412
+ address: {
413
+ countryCode: string;
414
+ streetAddress1: string;
415
+ streetAddress2: string | null;
416
+ locality: string | null;
417
+ region: string | null;
418
+ postCode: string;
419
+ } | null;
420
+ communicationPreferences: {
421
+ newsletterOptIn: boolean;
422
+ };
423
+ }>;
424
+
425
+ type Customer = z.infer<typeof customerSchema>;
426
+
427
+ declare class CustomerEndpoints {
428
+ private api;
429
+ constructor(api: MoonbaseApi);
430
+ get(idOrEmail: string): Promise<Customer>;
431
+ }
432
+
433
+ declare const licenseSchema: z.ZodObject<{
434
+ id: z.ZodString;
435
+ status: z.ZodNativeEnum<typeof LicenseStatus>;
436
+ activeNumberOfActivations: z.ZodNumber;
437
+ maxNumberOfActivations: z.ZodNumber;
438
+ }, "strip", z.ZodTypeAny, {
439
+ status: LicenseStatus;
440
+ id: string;
441
+ activeNumberOfActivations: number;
442
+ maxNumberOfActivations: number;
443
+ }, {
444
+ status: LicenseStatus;
445
+ id: string;
446
+ activeNumberOfActivations: number;
447
+ maxNumberOfActivations: number;
448
+ }>;
449
+ declare const licenseActivationSchema: z.ZodObject<{
450
+ id: z.ZodString;
451
+ name: z.ZodString;
452
+ status: z.ZodNativeEnum<typeof ActivationStatus>;
453
+ activationMethod: z.ZodNativeEnum<typeof ActivationMethod>;
454
+ lastValidatedAt: z.ZodDate;
455
+ license: z.ZodObject<{
456
+ id: z.ZodString;
457
+ status: z.ZodNativeEnum<typeof LicenseStatus>;
458
+ activeNumberOfActivations: z.ZodNumber;
459
+ maxNumberOfActivations: z.ZodNumber;
460
+ }, "strip", z.ZodTypeAny, {
461
+ status: LicenseStatus;
462
+ id: string;
463
+ activeNumberOfActivations: number;
464
+ maxNumberOfActivations: number;
465
+ }, {
466
+ status: LicenseStatus;
467
+ id: string;
468
+ activeNumberOfActivations: number;
469
+ maxNumberOfActivations: number;
470
+ }>;
471
+ }, "strip", z.ZodTypeAny, {
472
+ status: ActivationStatus;
473
+ id: string;
474
+ name: string;
475
+ activationMethod: ActivationMethod;
476
+ lastValidatedAt: Date;
477
+ license: {
478
+ status: LicenseStatus;
479
+ id: string;
480
+ activeNumberOfActivations: number;
481
+ maxNumberOfActivations: number;
482
+ };
483
+ }, {
484
+ status: ActivationStatus;
485
+ id: string;
486
+ name: string;
487
+ activationMethod: ActivationMethod;
488
+ lastValidatedAt: Date;
489
+ license: {
490
+ status: LicenseStatus;
491
+ id: string;
492
+ activeNumberOfActivations: number;
493
+ maxNumberOfActivations: number;
494
+ };
495
+ }>;
496
+
497
+ declare enum LicenseStatus {
498
+ Active = "Active",
499
+ Revoked = "Revoked"
500
+ }
501
+ declare enum ActivationStatus {
502
+ Active = "Active",
503
+ Revoked = "Revoked"
504
+ }
505
+ declare enum ActivationMethod {
506
+ Online = "Online",
507
+ Offline = "Offline"
508
+ }
509
+ type License = z.infer<typeof licenseSchema>;
510
+ type LicenseActivation = z.infer<typeof licenseActivationSchema>;
511
+
512
+ declare class LicenseEndpoints {
513
+ private api;
514
+ constructor(api: MoonbaseApi);
515
+ validate(licenseId: string, activationId: string): Promise<LicenseActivation>;
516
+ }
517
+
518
+ declare const pricingVariationSchema: z.ZodObject<{
519
+ id: z.ZodString;
520
+ name: z.ZodString;
521
+ originalPrice: z.ZodRecord<z.ZodString, z.ZodNumber>;
522
+ price: z.ZodRecord<z.ZodString, z.ZodNumber>;
523
+ hasDiscount: z.ZodBoolean;
524
+ discount: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
525
+ type: z.ZodLiteral<"PercentageOffDiscount">;
526
+ name: z.ZodString;
527
+ description: z.ZodOptional<z.ZodString>;
528
+ percentage: z.ZodNumber;
529
+ total: z.ZodRecord<z.ZodString, z.ZodNumber>;
530
+ }, "strip", z.ZodTypeAny, {
531
+ type: "PercentageOffDiscount";
532
+ name: string;
533
+ percentage: number;
534
+ total: Record<string, number>;
535
+ description?: string | undefined;
536
+ }, {
537
+ type: "PercentageOffDiscount";
538
+ name: string;
539
+ percentage: number;
540
+ total: Record<string, number>;
541
+ description?: string | undefined;
542
+ }>, z.ZodObject<{
543
+ type: z.ZodLiteral<"FlatAmountOffDiscount">;
544
+ name: z.ZodString;
545
+ description: z.ZodOptional<z.ZodString>;
546
+ total: z.ZodRecord<z.ZodString, z.ZodNumber>;
547
+ }, "strip", z.ZodTypeAny, {
548
+ type: "FlatAmountOffDiscount";
549
+ name: string;
550
+ total: Record<string, number>;
551
+ description?: string | undefined;
552
+ }, {
553
+ type: "FlatAmountOffDiscount";
554
+ name: string;
555
+ total: Record<string, number>;
556
+ description?: string | undefined;
557
+ }>]>>;
558
+ }, "strip", z.ZodTypeAny, {
559
+ id: string;
560
+ name: string;
561
+ originalPrice: Record<string, number>;
562
+ price: Record<string, number>;
563
+ hasDiscount: boolean;
564
+ discount?: {
565
+ type: "PercentageOffDiscount";
566
+ name: string;
567
+ percentage: number;
568
+ total: Record<string, number>;
569
+ description?: string | undefined;
570
+ } | {
571
+ type: "FlatAmountOffDiscount";
572
+ name: string;
573
+ total: Record<string, number>;
574
+ description?: string | undefined;
575
+ } | undefined;
576
+ }, {
577
+ id: string;
578
+ name: string;
579
+ originalPrice: Record<string, number>;
580
+ price: Record<string, number>;
581
+ hasDiscount: boolean;
582
+ discount?: {
583
+ type: "PercentageOffDiscount";
584
+ name: string;
585
+ percentage: number;
586
+ total: Record<string, number>;
587
+ description?: string | undefined;
588
+ } | {
589
+ type: "FlatAmountOffDiscount";
590
+ name: string;
591
+ total: Record<string, number>;
592
+ description?: string | undefined;
593
+ } | undefined;
594
+ }>;
595
+
596
+ type PricingVariation = z.infer<typeof pricingVariationSchema>;
597
+ interface Page<T> {
598
+ items: Array<T>;
599
+ hasMore: boolean;
600
+ next: string | null;
601
+ }
602
+ interface Quantifiable<T> {
603
+ value: T;
604
+ quantity: number;
605
+ }
606
+
607
+ declare const productSchema: z.ZodObject<{
608
+ id: z.ZodString;
609
+ name: z.ZodString;
610
+ tagline: z.ZodString;
611
+ description: z.ZodString;
612
+ website: z.ZodNullable<z.ZodString>;
613
+ iconUrl: z.ZodNullable<z.ZodString>;
614
+ status: z.ZodNativeEnum<typeof ProductStatus>;
615
+ purchasable: z.ZodBoolean;
616
+ currentReleaseVersion: z.ZodNullable<z.ZodString>;
617
+ }, "strip", z.ZodTypeAny, {
618
+ status: ProductStatus;
619
+ id: string;
620
+ name: string;
621
+ tagline: string;
622
+ description: string;
623
+ website: string | null;
624
+ iconUrl: string | null;
625
+ purchasable: boolean;
626
+ currentReleaseVersion: string | null;
627
+ }, {
628
+ status: ProductStatus;
629
+ id: string;
630
+ name: string;
631
+ tagline: string;
632
+ description: string;
633
+ website: string | null;
634
+ iconUrl: string | null;
635
+ purchasable: boolean;
636
+ currentReleaseVersion: string | null;
637
+ }>;
638
+
639
+ declare enum ProductStatus {
640
+ Active = "Active",
641
+ Inactive = "Inactive"
642
+ }
643
+ type Product = z.infer<typeof productSchema>;
644
+
645
+ declare class ProductEndpoints {
646
+ private api;
647
+ constructor(api: MoonbaseApi);
648
+ query(opts?: {
649
+ paginationToken?: string;
650
+ activeOnly?: boolean;
651
+ pageSize?: number;
652
+ }): Promise<Page<Product>>;
653
+ get(id: string): Promise<Product>;
654
+ }
655
+
656
+ declare const trialSchema: z.ZodObject<{
657
+ id: z.ZodString;
658
+ status: z.ZodNativeEnum<typeof TrialStatus>;
659
+ expiresAt: z.ZodDate;
660
+ lastValidatedAt: z.ZodDate;
661
+ ownerId: z.ZodOptional<z.ZodString>;
662
+ }, "strip", z.ZodTypeAny, {
663
+ status: TrialStatus;
664
+ id: string;
665
+ lastValidatedAt: Date;
666
+ expiresAt: Date;
667
+ ownerId?: string | undefined;
668
+ }, {
669
+ status: TrialStatus;
670
+ id: string;
671
+ lastValidatedAt: Date;
672
+ expiresAt: Date;
673
+ ownerId?: string | undefined;
674
+ }>;
675
+
676
+ declare enum TrialStatus {
677
+ Active = "Active",
678
+ Expired = "Expired"
679
+ }
680
+ type Trial = z.infer<typeof trialSchema>;
681
+
682
+ declare class TrialEndpoints {
683
+ private api;
684
+ constructor(api: MoonbaseApi);
685
+ request(productId: string, target: {
686
+ deviceName: string;
687
+ deviceSignature: string;
688
+ }): Promise<Trial>;
689
+ }
690
+
691
+ declare class NotAuthorizedError extends Error {
692
+ constructor();
693
+ }
694
+ declare class NotAuthenticatedError extends Error {
695
+ constructor();
696
+ }
697
+ declare class NotFoundError extends Error {
698
+ constructor();
699
+ }
700
+ declare class MoonbaseError extends Error {
701
+ readonly title: string;
702
+ readonly detail: string | undefined;
703
+ readonly status: number;
704
+ constructor(title: string, detail: string | undefined, status: number);
705
+ }
706
+
707
+ interface MoonbaseConfiguration {
708
+ endpoint: string;
709
+ apiKey: string;
710
+ }
711
+ declare class MoonbaseClient {
712
+ private readonly configuration;
713
+ constructor(configuration: MoonbaseConfiguration);
714
+ activationRequests: ActivationRequestEndpoints;
715
+ customers: CustomerEndpoints;
716
+ licenses: LicenseEndpoints;
717
+ products: ProductEndpoints;
718
+ trials: TrialEndpoints;
719
+ }
720
+
721
+ export { ActivationMethod, type ActivationRequest, ActivationRequestStatus, ActivationStatus, type Customer, type License, type LicenseActivation, LicenseStatus, MoonbaseClient, type MoonbaseConfiguration, MoonbaseError, NotAuthenticatedError, NotAuthorizedError, NotFoundError, type Page, type PricingVariation, type Product, ProductStatus, type Quantifiable, type Trial, TrialStatus };