@moonbase.sh/api 0.4.39 → 0.4.41

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/dist/index.cjs CHANGED
@@ -361,6 +361,7 @@ var activationRequestSchema = import_zod6.z.object({
361
361
  deviceName: import_zod6.z.string(),
362
362
  deviceSignature: import_zod6.z.string(),
363
363
  status: import_zod6.z.nativeEnum(ActivationRequestStatus),
364
+ browser: import_zod6.z.string(),
364
365
  product: productSchema,
365
366
  activation: licenseActivationSchema.optional(),
366
367
  trial: trialSchema.optional()
@@ -763,13 +764,13 @@ var subscriptionContentSchema = import_zod9.z.discriminatedUnion("type", [
763
764
  type: import_zod9.z.literal("Product"),
764
765
  productId: import_zod9.z.string(),
765
766
  quantity: import_zod9.z.number(),
766
- fulfillment: lineItemFulfillmentSchema
767
+ fulfillment: licenseLineItemFulfillmentSchema
767
768
  }),
768
769
  import_zod9.z.object({
769
770
  type: import_zod9.z.literal("Bundle"),
770
771
  bundleId: import_zod9.z.string(),
771
772
  quantity: import_zod9.z.number(),
772
- fulfillment: lineItemFulfillmentSchema
773
+ fulfillment: bundleLineItemFulfillmentSchema
773
774
  })
774
775
  ]);
775
776
  var subscriptionSchema = import_zod9.z.object({
package/dist/index.d.cts CHANGED
@@ -19,6 +19,7 @@ declare const activationRequestSchema: z.ZodObject<{
19
19
  deviceName: z.ZodString;
20
20
  deviceSignature: z.ZodString;
21
21
  status: z.ZodNativeEnum<typeof ActivationRequestStatus>;
22
+ browser: z.ZodString;
22
23
  product: z.ZodObject<{
23
24
  id: z.ZodString;
24
25
  name: z.ZodString;
@@ -1104,6 +1105,7 @@ declare const activationRequestSchema: z.ZodObject<{
1104
1105
  id: string;
1105
1106
  deviceName: string;
1106
1107
  deviceSignature: string;
1108
+ browser: string;
1107
1109
  product: {
1108
1110
  status: ProductStatus;
1109
1111
  id: string;
@@ -1295,6 +1297,7 @@ declare const activationRequestSchema: z.ZodObject<{
1295
1297
  id: string;
1296
1298
  deviceName: string;
1297
1299
  deviceSignature: string;
1300
+ browser: string;
1298
1301
  product: {
1299
1302
  status: ProductStatus;
1300
1303
  id: string;
@@ -5148,7 +5151,7 @@ declare const subscriptionSchema: z.ZodObject<{
5148
5151
  type: z.ZodLiteral<"Product">;
5149
5152
  productId: z.ZodString;
5150
5153
  quantity: z.ZodNumber;
5151
- fulfillment: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
5154
+ fulfillment: z.ZodObject<{
5152
5155
  type: z.ZodLiteral<"License">;
5153
5156
  licenseIds: z.ZodArray<z.ZodString, "many">;
5154
5157
  }, "strip", z.ZodTypeAny, {
@@ -5157,88 +5160,7 @@ declare const subscriptionSchema: z.ZodObject<{
5157
5160
  }, {
5158
5161
  type: "License";
5159
5162
  licenseIds: string[];
5160
- }>, z.ZodObject<{
5161
- type: z.ZodLiteral<"Bundle">;
5162
- productLicenses: z.ZodRecord<z.ZodString, z.ZodObject<{
5163
- licenseIds: z.ZodArray<z.ZodString, "many">;
5164
- }, "strip", z.ZodTypeAny, {
5165
- licenseIds: string[];
5166
- }, {
5167
- licenseIds: string[];
5168
- }>>;
5169
- }, "strip", z.ZodTypeAny, {
5170
- type: "Bundle";
5171
- productLicenses: Record<string, {
5172
- licenseIds: string[];
5173
- }>;
5174
- }, {
5175
- type: "Bundle";
5176
- productLicenses: Record<string, {
5177
- licenseIds: string[];
5178
- }>;
5179
- }>, z.ZodObject<{
5180
- type: z.ZodLiteral<"Subscription">;
5181
- subscriptionId: z.ZodString;
5182
- inner: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
5183
- type: z.ZodLiteral<"License">;
5184
- licenseIds: z.ZodArray<z.ZodString, "many">;
5185
- }, "strip", z.ZodTypeAny, {
5186
- type: "License";
5187
- licenseIds: string[];
5188
- }, {
5189
- type: "License";
5190
- licenseIds: string[];
5191
- }>, z.ZodObject<{
5192
- type: z.ZodLiteral<"Bundle">;
5193
- productLicenses: z.ZodRecord<z.ZodString, z.ZodObject<{
5194
- licenseIds: z.ZodArray<z.ZodString, "many">;
5195
- }, "strip", z.ZodTypeAny, {
5196
- licenseIds: string[];
5197
- }, {
5198
- licenseIds: string[];
5199
- }>>;
5200
- }, "strip", z.ZodTypeAny, {
5201
- type: "Bundle";
5202
- productLicenses: Record<string, {
5203
- licenseIds: string[];
5204
- }>;
5205
- }, {
5206
- type: "Bundle";
5207
- productLicenses: Record<string, {
5208
- licenseIds: string[];
5209
- }>;
5210
- }>]>;
5211
- }, "strip", z.ZodTypeAny, {
5212
- type: "Subscription";
5213
- subscriptionId: string;
5214
- inner: {
5215
- type: "License";
5216
- licenseIds: string[];
5217
- } | {
5218
- type: "Bundle";
5219
- productLicenses: Record<string, {
5220
- licenseIds: string[];
5221
- }>;
5222
- };
5223
- }, {
5224
- type: "Subscription";
5225
- subscriptionId: string;
5226
- inner: {
5227
- type: "License";
5228
- licenseIds: string[];
5229
- } | {
5230
- type: "Bundle";
5231
- productLicenses: Record<string, {
5232
- licenseIds: string[];
5233
- }>;
5234
- };
5235
- }>, z.ZodObject<{
5236
- type: z.ZodLiteral<"NoFulfillment">;
5237
- }, "strip", z.ZodTypeAny, {
5238
- type: "NoFulfillment";
5239
- }, {
5240
- type: "NoFulfillment";
5241
- }>]>;
5163
+ }>;
5242
5164
  }, "strip", z.ZodTypeAny, {
5243
5165
  type: "Product";
5244
5166
  quantity: number;
@@ -5246,25 +5168,6 @@ declare const subscriptionSchema: z.ZodObject<{
5246
5168
  fulfillment: {
5247
5169
  type: "License";
5248
5170
  licenseIds: string[];
5249
- } | {
5250
- type: "Bundle";
5251
- productLicenses: Record<string, {
5252
- licenseIds: string[];
5253
- }>;
5254
- } | {
5255
- type: "Subscription";
5256
- subscriptionId: string;
5257
- inner: {
5258
- type: "License";
5259
- licenseIds: string[];
5260
- } | {
5261
- type: "Bundle";
5262
- productLicenses: Record<string, {
5263
- licenseIds: string[];
5264
- }>;
5265
- };
5266
- } | {
5267
- type: "NoFulfillment";
5268
5171
  };
5269
5172
  }, {
5270
5173
  type: "Product";
@@ -5273,40 +5176,12 @@ declare const subscriptionSchema: z.ZodObject<{
5273
5176
  fulfillment: {
5274
5177
  type: "License";
5275
5178
  licenseIds: string[];
5276
- } | {
5277
- type: "Bundle";
5278
- productLicenses: Record<string, {
5279
- licenseIds: string[];
5280
- }>;
5281
- } | {
5282
- type: "Subscription";
5283
- subscriptionId: string;
5284
- inner: {
5285
- type: "License";
5286
- licenseIds: string[];
5287
- } | {
5288
- type: "Bundle";
5289
- productLicenses: Record<string, {
5290
- licenseIds: string[];
5291
- }>;
5292
- };
5293
- } | {
5294
- type: "NoFulfillment";
5295
5179
  };
5296
5180
  }>, z.ZodObject<{
5297
5181
  type: z.ZodLiteral<"Bundle">;
5298
5182
  bundleId: z.ZodString;
5299
5183
  quantity: z.ZodNumber;
5300
- fulfillment: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
5301
- type: z.ZodLiteral<"License">;
5302
- licenseIds: z.ZodArray<z.ZodString, "many">;
5303
- }, "strip", z.ZodTypeAny, {
5304
- type: "License";
5305
- licenseIds: string[];
5306
- }, {
5307
- type: "License";
5308
- licenseIds: string[];
5309
- }>, z.ZodObject<{
5184
+ fulfillment: z.ZodObject<{
5310
5185
  type: z.ZodLiteral<"Bundle">;
5311
5186
  productLicenses: z.ZodRecord<z.ZodString, z.ZodObject<{
5312
5187
  licenseIds: z.ZodArray<z.ZodString, "many">;
@@ -5325,121 +5200,25 @@ declare const subscriptionSchema: z.ZodObject<{
5325
5200
  productLicenses: Record<string, {
5326
5201
  licenseIds: string[];
5327
5202
  }>;
5328
- }>, z.ZodObject<{
5329
- type: z.ZodLiteral<"Subscription">;
5330
- subscriptionId: z.ZodString;
5331
- inner: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
5332
- type: z.ZodLiteral<"License">;
5333
- licenseIds: z.ZodArray<z.ZodString, "many">;
5334
- }, "strip", z.ZodTypeAny, {
5335
- type: "License";
5336
- licenseIds: string[];
5337
- }, {
5338
- type: "License";
5339
- licenseIds: string[];
5340
- }>, z.ZodObject<{
5341
- type: z.ZodLiteral<"Bundle">;
5342
- productLicenses: z.ZodRecord<z.ZodString, z.ZodObject<{
5343
- licenseIds: z.ZodArray<z.ZodString, "many">;
5344
- }, "strip", z.ZodTypeAny, {
5345
- licenseIds: string[];
5346
- }, {
5347
- licenseIds: string[];
5348
- }>>;
5349
- }, "strip", z.ZodTypeAny, {
5350
- type: "Bundle";
5351
- productLicenses: Record<string, {
5352
- licenseIds: string[];
5353
- }>;
5354
- }, {
5355
- type: "Bundle";
5356
- productLicenses: Record<string, {
5357
- licenseIds: string[];
5358
- }>;
5359
- }>]>;
5360
- }, "strip", z.ZodTypeAny, {
5361
- type: "Subscription";
5362
- subscriptionId: string;
5363
- inner: {
5364
- type: "License";
5365
- licenseIds: string[];
5366
- } | {
5367
- type: "Bundle";
5368
- productLicenses: Record<string, {
5369
- licenseIds: string[];
5370
- }>;
5371
- };
5372
- }, {
5373
- type: "Subscription";
5374
- subscriptionId: string;
5375
- inner: {
5376
- type: "License";
5377
- licenseIds: string[];
5378
- } | {
5379
- type: "Bundle";
5380
- productLicenses: Record<string, {
5381
- licenseIds: string[];
5382
- }>;
5383
- };
5384
- }>, z.ZodObject<{
5385
- type: z.ZodLiteral<"NoFulfillment">;
5386
- }, "strip", z.ZodTypeAny, {
5387
- type: "NoFulfillment";
5388
- }, {
5389
- type: "NoFulfillment";
5390
- }>]>;
5203
+ }>;
5391
5204
  }, "strip", z.ZodTypeAny, {
5392
5205
  type: "Bundle";
5393
5206
  quantity: number;
5394
5207
  fulfillment: {
5395
- type: "License";
5396
- licenseIds: string[];
5397
- } | {
5398
5208
  type: "Bundle";
5399
5209
  productLicenses: Record<string, {
5400
5210
  licenseIds: string[];
5401
5211
  }>;
5402
- } | {
5403
- type: "Subscription";
5404
- subscriptionId: string;
5405
- inner: {
5406
- type: "License";
5407
- licenseIds: string[];
5408
- } | {
5409
- type: "Bundle";
5410
- productLicenses: Record<string, {
5411
- licenseIds: string[];
5412
- }>;
5413
- };
5414
- } | {
5415
- type: "NoFulfillment";
5416
5212
  };
5417
5213
  bundleId: string;
5418
5214
  }, {
5419
5215
  type: "Bundle";
5420
5216
  quantity: number;
5421
5217
  fulfillment: {
5422
- type: "License";
5423
- licenseIds: string[];
5424
- } | {
5425
5218
  type: "Bundle";
5426
5219
  productLicenses: Record<string, {
5427
5220
  licenseIds: string[];
5428
5221
  }>;
5429
- } | {
5430
- type: "Subscription";
5431
- subscriptionId: string;
5432
- inner: {
5433
- type: "License";
5434
- licenseIds: string[];
5435
- } | {
5436
- type: "Bundle";
5437
- productLicenses: Record<string, {
5438
- licenseIds: string[];
5439
- }>;
5440
- };
5441
- } | {
5442
- type: "NoFulfillment";
5443
5222
  };
5444
5223
  bundleId: string;
5445
5224
  }>]>;
@@ -5567,51 +5346,15 @@ declare const subscriptionSchema: z.ZodObject<{
5567
5346
  fulfillment: {
5568
5347
  type: "License";
5569
5348
  licenseIds: string[];
5570
- } | {
5571
- type: "Bundle";
5572
- productLicenses: Record<string, {
5573
- licenseIds: string[];
5574
- }>;
5575
- } | {
5576
- type: "Subscription";
5577
- subscriptionId: string;
5578
- inner: {
5579
- type: "License";
5580
- licenseIds: string[];
5581
- } | {
5582
- type: "Bundle";
5583
- productLicenses: Record<string, {
5584
- licenseIds: string[];
5585
- }>;
5586
- };
5587
- } | {
5588
- type: "NoFulfillment";
5589
5349
  };
5590
5350
  } | {
5591
5351
  type: "Bundle";
5592
5352
  quantity: number;
5593
5353
  fulfillment: {
5594
- type: "License";
5595
- licenseIds: string[];
5596
- } | {
5597
5354
  type: "Bundle";
5598
5355
  productLicenses: Record<string, {
5599
5356
  licenseIds: string[];
5600
5357
  }>;
5601
- } | {
5602
- type: "Subscription";
5603
- subscriptionId: string;
5604
- inner: {
5605
- type: "License";
5606
- licenseIds: string[];
5607
- } | {
5608
- type: "Bundle";
5609
- productLicenses: Record<string, {
5610
- licenseIds: string[];
5611
- }>;
5612
- };
5613
- } | {
5614
- type: "NoFulfillment";
5615
5358
  };
5616
5359
  bundleId: string;
5617
5360
  };
@@ -5678,51 +5421,15 @@ declare const subscriptionSchema: z.ZodObject<{
5678
5421
  fulfillment: {
5679
5422
  type: "License";
5680
5423
  licenseIds: string[];
5681
- } | {
5682
- type: "Bundle";
5683
- productLicenses: Record<string, {
5684
- licenseIds: string[];
5685
- }>;
5686
- } | {
5687
- type: "Subscription";
5688
- subscriptionId: string;
5689
- inner: {
5690
- type: "License";
5691
- licenseIds: string[];
5692
- } | {
5693
- type: "Bundle";
5694
- productLicenses: Record<string, {
5695
- licenseIds: string[];
5696
- }>;
5697
- };
5698
- } | {
5699
- type: "NoFulfillment";
5700
5424
  };
5701
5425
  } | {
5702
5426
  type: "Bundle";
5703
5427
  quantity: number;
5704
5428
  fulfillment: {
5705
- type: "License";
5706
- licenseIds: string[];
5707
- } | {
5708
5429
  type: "Bundle";
5709
5430
  productLicenses: Record<string, {
5710
5431
  licenseIds: string[];
5711
5432
  }>;
5712
- } | {
5713
- type: "Subscription";
5714
- subscriptionId: string;
5715
- inner: {
5716
- type: "License";
5717
- licenseIds: string[];
5718
- } | {
5719
- type: "Bundle";
5720
- productLicenses: Record<string, {
5721
- licenseIds: string[];
5722
- }>;
5723
- };
5724
- } | {
5725
- type: "NoFulfillment";
5726
5433
  };
5727
5434
  bundleId: string;
5728
5435
  };
package/dist/index.d.ts CHANGED
@@ -19,6 +19,7 @@ declare const activationRequestSchema: z.ZodObject<{
19
19
  deviceName: z.ZodString;
20
20
  deviceSignature: z.ZodString;
21
21
  status: z.ZodNativeEnum<typeof ActivationRequestStatus>;
22
+ browser: z.ZodString;
22
23
  product: z.ZodObject<{
23
24
  id: z.ZodString;
24
25
  name: z.ZodString;
@@ -1104,6 +1105,7 @@ declare const activationRequestSchema: z.ZodObject<{
1104
1105
  id: string;
1105
1106
  deviceName: string;
1106
1107
  deviceSignature: string;
1108
+ browser: string;
1107
1109
  product: {
1108
1110
  status: ProductStatus;
1109
1111
  id: string;
@@ -1295,6 +1297,7 @@ declare const activationRequestSchema: z.ZodObject<{
1295
1297
  id: string;
1296
1298
  deviceName: string;
1297
1299
  deviceSignature: string;
1300
+ browser: string;
1298
1301
  product: {
1299
1302
  status: ProductStatus;
1300
1303
  id: string;
@@ -5148,7 +5151,7 @@ declare const subscriptionSchema: z.ZodObject<{
5148
5151
  type: z.ZodLiteral<"Product">;
5149
5152
  productId: z.ZodString;
5150
5153
  quantity: z.ZodNumber;
5151
- fulfillment: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
5154
+ fulfillment: z.ZodObject<{
5152
5155
  type: z.ZodLiteral<"License">;
5153
5156
  licenseIds: z.ZodArray<z.ZodString, "many">;
5154
5157
  }, "strip", z.ZodTypeAny, {
@@ -5157,88 +5160,7 @@ declare const subscriptionSchema: z.ZodObject<{
5157
5160
  }, {
5158
5161
  type: "License";
5159
5162
  licenseIds: string[];
5160
- }>, z.ZodObject<{
5161
- type: z.ZodLiteral<"Bundle">;
5162
- productLicenses: z.ZodRecord<z.ZodString, z.ZodObject<{
5163
- licenseIds: z.ZodArray<z.ZodString, "many">;
5164
- }, "strip", z.ZodTypeAny, {
5165
- licenseIds: string[];
5166
- }, {
5167
- licenseIds: string[];
5168
- }>>;
5169
- }, "strip", z.ZodTypeAny, {
5170
- type: "Bundle";
5171
- productLicenses: Record<string, {
5172
- licenseIds: string[];
5173
- }>;
5174
- }, {
5175
- type: "Bundle";
5176
- productLicenses: Record<string, {
5177
- licenseIds: string[];
5178
- }>;
5179
- }>, z.ZodObject<{
5180
- type: z.ZodLiteral<"Subscription">;
5181
- subscriptionId: z.ZodString;
5182
- inner: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
5183
- type: z.ZodLiteral<"License">;
5184
- licenseIds: z.ZodArray<z.ZodString, "many">;
5185
- }, "strip", z.ZodTypeAny, {
5186
- type: "License";
5187
- licenseIds: string[];
5188
- }, {
5189
- type: "License";
5190
- licenseIds: string[];
5191
- }>, z.ZodObject<{
5192
- type: z.ZodLiteral<"Bundle">;
5193
- productLicenses: z.ZodRecord<z.ZodString, z.ZodObject<{
5194
- licenseIds: z.ZodArray<z.ZodString, "many">;
5195
- }, "strip", z.ZodTypeAny, {
5196
- licenseIds: string[];
5197
- }, {
5198
- licenseIds: string[];
5199
- }>>;
5200
- }, "strip", z.ZodTypeAny, {
5201
- type: "Bundle";
5202
- productLicenses: Record<string, {
5203
- licenseIds: string[];
5204
- }>;
5205
- }, {
5206
- type: "Bundle";
5207
- productLicenses: Record<string, {
5208
- licenseIds: string[];
5209
- }>;
5210
- }>]>;
5211
- }, "strip", z.ZodTypeAny, {
5212
- type: "Subscription";
5213
- subscriptionId: string;
5214
- inner: {
5215
- type: "License";
5216
- licenseIds: string[];
5217
- } | {
5218
- type: "Bundle";
5219
- productLicenses: Record<string, {
5220
- licenseIds: string[];
5221
- }>;
5222
- };
5223
- }, {
5224
- type: "Subscription";
5225
- subscriptionId: string;
5226
- inner: {
5227
- type: "License";
5228
- licenseIds: string[];
5229
- } | {
5230
- type: "Bundle";
5231
- productLicenses: Record<string, {
5232
- licenseIds: string[];
5233
- }>;
5234
- };
5235
- }>, z.ZodObject<{
5236
- type: z.ZodLiteral<"NoFulfillment">;
5237
- }, "strip", z.ZodTypeAny, {
5238
- type: "NoFulfillment";
5239
- }, {
5240
- type: "NoFulfillment";
5241
- }>]>;
5163
+ }>;
5242
5164
  }, "strip", z.ZodTypeAny, {
5243
5165
  type: "Product";
5244
5166
  quantity: number;
@@ -5246,25 +5168,6 @@ declare const subscriptionSchema: z.ZodObject<{
5246
5168
  fulfillment: {
5247
5169
  type: "License";
5248
5170
  licenseIds: string[];
5249
- } | {
5250
- type: "Bundle";
5251
- productLicenses: Record<string, {
5252
- licenseIds: string[];
5253
- }>;
5254
- } | {
5255
- type: "Subscription";
5256
- subscriptionId: string;
5257
- inner: {
5258
- type: "License";
5259
- licenseIds: string[];
5260
- } | {
5261
- type: "Bundle";
5262
- productLicenses: Record<string, {
5263
- licenseIds: string[];
5264
- }>;
5265
- };
5266
- } | {
5267
- type: "NoFulfillment";
5268
5171
  };
5269
5172
  }, {
5270
5173
  type: "Product";
@@ -5273,40 +5176,12 @@ declare const subscriptionSchema: z.ZodObject<{
5273
5176
  fulfillment: {
5274
5177
  type: "License";
5275
5178
  licenseIds: string[];
5276
- } | {
5277
- type: "Bundle";
5278
- productLicenses: Record<string, {
5279
- licenseIds: string[];
5280
- }>;
5281
- } | {
5282
- type: "Subscription";
5283
- subscriptionId: string;
5284
- inner: {
5285
- type: "License";
5286
- licenseIds: string[];
5287
- } | {
5288
- type: "Bundle";
5289
- productLicenses: Record<string, {
5290
- licenseIds: string[];
5291
- }>;
5292
- };
5293
- } | {
5294
- type: "NoFulfillment";
5295
5179
  };
5296
5180
  }>, z.ZodObject<{
5297
5181
  type: z.ZodLiteral<"Bundle">;
5298
5182
  bundleId: z.ZodString;
5299
5183
  quantity: z.ZodNumber;
5300
- fulfillment: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
5301
- type: z.ZodLiteral<"License">;
5302
- licenseIds: z.ZodArray<z.ZodString, "many">;
5303
- }, "strip", z.ZodTypeAny, {
5304
- type: "License";
5305
- licenseIds: string[];
5306
- }, {
5307
- type: "License";
5308
- licenseIds: string[];
5309
- }>, z.ZodObject<{
5184
+ fulfillment: z.ZodObject<{
5310
5185
  type: z.ZodLiteral<"Bundle">;
5311
5186
  productLicenses: z.ZodRecord<z.ZodString, z.ZodObject<{
5312
5187
  licenseIds: z.ZodArray<z.ZodString, "many">;
@@ -5325,121 +5200,25 @@ declare const subscriptionSchema: z.ZodObject<{
5325
5200
  productLicenses: Record<string, {
5326
5201
  licenseIds: string[];
5327
5202
  }>;
5328
- }>, z.ZodObject<{
5329
- type: z.ZodLiteral<"Subscription">;
5330
- subscriptionId: z.ZodString;
5331
- inner: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
5332
- type: z.ZodLiteral<"License">;
5333
- licenseIds: z.ZodArray<z.ZodString, "many">;
5334
- }, "strip", z.ZodTypeAny, {
5335
- type: "License";
5336
- licenseIds: string[];
5337
- }, {
5338
- type: "License";
5339
- licenseIds: string[];
5340
- }>, z.ZodObject<{
5341
- type: z.ZodLiteral<"Bundle">;
5342
- productLicenses: z.ZodRecord<z.ZodString, z.ZodObject<{
5343
- licenseIds: z.ZodArray<z.ZodString, "many">;
5344
- }, "strip", z.ZodTypeAny, {
5345
- licenseIds: string[];
5346
- }, {
5347
- licenseIds: string[];
5348
- }>>;
5349
- }, "strip", z.ZodTypeAny, {
5350
- type: "Bundle";
5351
- productLicenses: Record<string, {
5352
- licenseIds: string[];
5353
- }>;
5354
- }, {
5355
- type: "Bundle";
5356
- productLicenses: Record<string, {
5357
- licenseIds: string[];
5358
- }>;
5359
- }>]>;
5360
- }, "strip", z.ZodTypeAny, {
5361
- type: "Subscription";
5362
- subscriptionId: string;
5363
- inner: {
5364
- type: "License";
5365
- licenseIds: string[];
5366
- } | {
5367
- type: "Bundle";
5368
- productLicenses: Record<string, {
5369
- licenseIds: string[];
5370
- }>;
5371
- };
5372
- }, {
5373
- type: "Subscription";
5374
- subscriptionId: string;
5375
- inner: {
5376
- type: "License";
5377
- licenseIds: string[];
5378
- } | {
5379
- type: "Bundle";
5380
- productLicenses: Record<string, {
5381
- licenseIds: string[];
5382
- }>;
5383
- };
5384
- }>, z.ZodObject<{
5385
- type: z.ZodLiteral<"NoFulfillment">;
5386
- }, "strip", z.ZodTypeAny, {
5387
- type: "NoFulfillment";
5388
- }, {
5389
- type: "NoFulfillment";
5390
- }>]>;
5203
+ }>;
5391
5204
  }, "strip", z.ZodTypeAny, {
5392
5205
  type: "Bundle";
5393
5206
  quantity: number;
5394
5207
  fulfillment: {
5395
- type: "License";
5396
- licenseIds: string[];
5397
- } | {
5398
5208
  type: "Bundle";
5399
5209
  productLicenses: Record<string, {
5400
5210
  licenseIds: string[];
5401
5211
  }>;
5402
- } | {
5403
- type: "Subscription";
5404
- subscriptionId: string;
5405
- inner: {
5406
- type: "License";
5407
- licenseIds: string[];
5408
- } | {
5409
- type: "Bundle";
5410
- productLicenses: Record<string, {
5411
- licenseIds: string[];
5412
- }>;
5413
- };
5414
- } | {
5415
- type: "NoFulfillment";
5416
5212
  };
5417
5213
  bundleId: string;
5418
5214
  }, {
5419
5215
  type: "Bundle";
5420
5216
  quantity: number;
5421
5217
  fulfillment: {
5422
- type: "License";
5423
- licenseIds: string[];
5424
- } | {
5425
5218
  type: "Bundle";
5426
5219
  productLicenses: Record<string, {
5427
5220
  licenseIds: string[];
5428
5221
  }>;
5429
- } | {
5430
- type: "Subscription";
5431
- subscriptionId: string;
5432
- inner: {
5433
- type: "License";
5434
- licenseIds: string[];
5435
- } | {
5436
- type: "Bundle";
5437
- productLicenses: Record<string, {
5438
- licenseIds: string[];
5439
- }>;
5440
- };
5441
- } | {
5442
- type: "NoFulfillment";
5443
5222
  };
5444
5223
  bundleId: string;
5445
5224
  }>]>;
@@ -5567,51 +5346,15 @@ declare const subscriptionSchema: z.ZodObject<{
5567
5346
  fulfillment: {
5568
5347
  type: "License";
5569
5348
  licenseIds: string[];
5570
- } | {
5571
- type: "Bundle";
5572
- productLicenses: Record<string, {
5573
- licenseIds: string[];
5574
- }>;
5575
- } | {
5576
- type: "Subscription";
5577
- subscriptionId: string;
5578
- inner: {
5579
- type: "License";
5580
- licenseIds: string[];
5581
- } | {
5582
- type: "Bundle";
5583
- productLicenses: Record<string, {
5584
- licenseIds: string[];
5585
- }>;
5586
- };
5587
- } | {
5588
- type: "NoFulfillment";
5589
5349
  };
5590
5350
  } | {
5591
5351
  type: "Bundle";
5592
5352
  quantity: number;
5593
5353
  fulfillment: {
5594
- type: "License";
5595
- licenseIds: string[];
5596
- } | {
5597
5354
  type: "Bundle";
5598
5355
  productLicenses: Record<string, {
5599
5356
  licenseIds: string[];
5600
5357
  }>;
5601
- } | {
5602
- type: "Subscription";
5603
- subscriptionId: string;
5604
- inner: {
5605
- type: "License";
5606
- licenseIds: string[];
5607
- } | {
5608
- type: "Bundle";
5609
- productLicenses: Record<string, {
5610
- licenseIds: string[];
5611
- }>;
5612
- };
5613
- } | {
5614
- type: "NoFulfillment";
5615
5358
  };
5616
5359
  bundleId: string;
5617
5360
  };
@@ -5678,51 +5421,15 @@ declare const subscriptionSchema: z.ZodObject<{
5678
5421
  fulfillment: {
5679
5422
  type: "License";
5680
5423
  licenseIds: string[];
5681
- } | {
5682
- type: "Bundle";
5683
- productLicenses: Record<string, {
5684
- licenseIds: string[];
5685
- }>;
5686
- } | {
5687
- type: "Subscription";
5688
- subscriptionId: string;
5689
- inner: {
5690
- type: "License";
5691
- licenseIds: string[];
5692
- } | {
5693
- type: "Bundle";
5694
- productLicenses: Record<string, {
5695
- licenseIds: string[];
5696
- }>;
5697
- };
5698
- } | {
5699
- type: "NoFulfillment";
5700
5424
  };
5701
5425
  } | {
5702
5426
  type: "Bundle";
5703
5427
  quantity: number;
5704
5428
  fulfillment: {
5705
- type: "License";
5706
- licenseIds: string[];
5707
- } | {
5708
5429
  type: "Bundle";
5709
5430
  productLicenses: Record<string, {
5710
5431
  licenseIds: string[];
5711
5432
  }>;
5712
- } | {
5713
- type: "Subscription";
5714
- subscriptionId: string;
5715
- inner: {
5716
- type: "License";
5717
- licenseIds: string[];
5718
- } | {
5719
- type: "Bundle";
5720
- productLicenses: Record<string, {
5721
- licenseIds: string[];
5722
- }>;
5723
- };
5724
- } | {
5725
- type: "NoFulfillment";
5726
5433
  };
5727
5434
  bundleId: string;
5728
5435
  };
package/dist/index.js CHANGED
@@ -308,6 +308,7 @@ var activationRequestSchema = z6.object({
308
308
  deviceName: z6.string(),
309
309
  deviceSignature: z6.string(),
310
310
  status: z6.nativeEnum(ActivationRequestStatus),
311
+ browser: z6.string(),
311
312
  product: productSchema,
312
313
  activation: licenseActivationSchema.optional(),
313
314
  trial: trialSchema.optional()
@@ -710,13 +711,13 @@ var subscriptionContentSchema = z9.discriminatedUnion("type", [
710
711
  type: z9.literal("Product"),
711
712
  productId: z9.string(),
712
713
  quantity: z9.number(),
713
- fulfillment: lineItemFulfillmentSchema
714
+ fulfillment: licenseLineItemFulfillmentSchema
714
715
  }),
715
716
  z9.object({
716
717
  type: z9.literal("Bundle"),
717
718
  bundleId: z9.string(),
718
719
  quantity: z9.number(),
719
- fulfillment: lineItemFulfillmentSchema
720
+ fulfillment: bundleLineItemFulfillmentSchema
720
721
  })
721
722
  ]);
722
723
  var subscriptionSchema = z9.object({
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@moonbase.sh/api",
3
3
  "type": "module",
4
- "version": "0.4.39",
4
+ "version": "0.4.41",
5
5
  "description": "Package to let you integrate backends with Moonbase.sh as payment and delivery provider",
6
6
  "author": "Tobias Lønnerød Madsen <m@dsen.tv>",
7
7
  "license": "MIT",