@moonbase.sh/api 0.4.39 → 0.4.40

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
@@ -763,13 +763,13 @@ var subscriptionContentSchema = import_zod9.z.discriminatedUnion("type", [
763
763
  type: import_zod9.z.literal("Product"),
764
764
  productId: import_zod9.z.string(),
765
765
  quantity: import_zod9.z.number(),
766
- fulfillment: lineItemFulfillmentSchema
766
+ fulfillment: licenseLineItemFulfillmentSchema
767
767
  }),
768
768
  import_zod9.z.object({
769
769
  type: import_zod9.z.literal("Bundle"),
770
770
  bundleId: import_zod9.z.string(),
771
771
  quantity: import_zod9.z.number(),
772
- fulfillment: lineItemFulfillmentSchema
772
+ fulfillment: bundleLineItemFulfillmentSchema
773
773
  })
774
774
  ]);
775
775
  var subscriptionSchema = import_zod9.z.object({
package/dist/index.d.cts CHANGED
@@ -5148,7 +5148,7 @@ declare const subscriptionSchema: z.ZodObject<{
5148
5148
  type: z.ZodLiteral<"Product">;
5149
5149
  productId: z.ZodString;
5150
5150
  quantity: z.ZodNumber;
5151
- fulfillment: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
5151
+ fulfillment: z.ZodObject<{
5152
5152
  type: z.ZodLiteral<"License">;
5153
5153
  licenseIds: z.ZodArray<z.ZodString, "many">;
5154
5154
  }, "strip", z.ZodTypeAny, {
@@ -5157,88 +5157,7 @@ declare const subscriptionSchema: z.ZodObject<{
5157
5157
  }, {
5158
5158
  type: "License";
5159
5159
  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
- }>]>;
5160
+ }>;
5242
5161
  }, "strip", z.ZodTypeAny, {
5243
5162
  type: "Product";
5244
5163
  quantity: number;
@@ -5246,25 +5165,6 @@ declare const subscriptionSchema: z.ZodObject<{
5246
5165
  fulfillment: {
5247
5166
  type: "License";
5248
5167
  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
5168
  };
5269
5169
  }, {
5270
5170
  type: "Product";
@@ -5273,40 +5173,12 @@ declare const subscriptionSchema: z.ZodObject<{
5273
5173
  fulfillment: {
5274
5174
  type: "License";
5275
5175
  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
5176
  };
5296
5177
  }>, z.ZodObject<{
5297
5178
  type: z.ZodLiteral<"Bundle">;
5298
5179
  bundleId: z.ZodString;
5299
5180
  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<{
5181
+ fulfillment: z.ZodObject<{
5310
5182
  type: z.ZodLiteral<"Bundle">;
5311
5183
  productLicenses: z.ZodRecord<z.ZodString, z.ZodObject<{
5312
5184
  licenseIds: z.ZodArray<z.ZodString, "many">;
@@ -5325,121 +5197,25 @@ declare const subscriptionSchema: z.ZodObject<{
5325
5197
  productLicenses: Record<string, {
5326
5198
  licenseIds: string[];
5327
5199
  }>;
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
- }>]>;
5200
+ }>;
5391
5201
  }, "strip", z.ZodTypeAny, {
5392
5202
  type: "Bundle";
5393
5203
  quantity: number;
5394
5204
  fulfillment: {
5395
- type: "License";
5396
- licenseIds: string[];
5397
- } | {
5398
5205
  type: "Bundle";
5399
5206
  productLicenses: Record<string, {
5400
5207
  licenseIds: string[];
5401
5208
  }>;
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
5209
  };
5417
5210
  bundleId: string;
5418
5211
  }, {
5419
5212
  type: "Bundle";
5420
5213
  quantity: number;
5421
5214
  fulfillment: {
5422
- type: "License";
5423
- licenseIds: string[];
5424
- } | {
5425
5215
  type: "Bundle";
5426
5216
  productLicenses: Record<string, {
5427
5217
  licenseIds: string[];
5428
5218
  }>;
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
5219
  };
5444
5220
  bundleId: string;
5445
5221
  }>]>;
@@ -5567,51 +5343,15 @@ declare const subscriptionSchema: z.ZodObject<{
5567
5343
  fulfillment: {
5568
5344
  type: "License";
5569
5345
  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
5346
  };
5590
5347
  } | {
5591
5348
  type: "Bundle";
5592
5349
  quantity: number;
5593
5350
  fulfillment: {
5594
- type: "License";
5595
- licenseIds: string[];
5596
- } | {
5597
5351
  type: "Bundle";
5598
5352
  productLicenses: Record<string, {
5599
5353
  licenseIds: string[];
5600
5354
  }>;
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
5355
  };
5616
5356
  bundleId: string;
5617
5357
  };
@@ -5678,51 +5418,15 @@ declare const subscriptionSchema: z.ZodObject<{
5678
5418
  fulfillment: {
5679
5419
  type: "License";
5680
5420
  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
5421
  };
5701
5422
  } | {
5702
5423
  type: "Bundle";
5703
5424
  quantity: number;
5704
5425
  fulfillment: {
5705
- type: "License";
5706
- licenseIds: string[];
5707
- } | {
5708
5426
  type: "Bundle";
5709
5427
  productLicenses: Record<string, {
5710
5428
  licenseIds: string[];
5711
5429
  }>;
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
5430
  };
5727
5431
  bundleId: string;
5728
5432
  };
package/dist/index.d.ts CHANGED
@@ -5148,7 +5148,7 @@ declare const subscriptionSchema: z.ZodObject<{
5148
5148
  type: z.ZodLiteral<"Product">;
5149
5149
  productId: z.ZodString;
5150
5150
  quantity: z.ZodNumber;
5151
- fulfillment: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
5151
+ fulfillment: z.ZodObject<{
5152
5152
  type: z.ZodLiteral<"License">;
5153
5153
  licenseIds: z.ZodArray<z.ZodString, "many">;
5154
5154
  }, "strip", z.ZodTypeAny, {
@@ -5157,88 +5157,7 @@ declare const subscriptionSchema: z.ZodObject<{
5157
5157
  }, {
5158
5158
  type: "License";
5159
5159
  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
- }>]>;
5160
+ }>;
5242
5161
  }, "strip", z.ZodTypeAny, {
5243
5162
  type: "Product";
5244
5163
  quantity: number;
@@ -5246,25 +5165,6 @@ declare const subscriptionSchema: z.ZodObject<{
5246
5165
  fulfillment: {
5247
5166
  type: "License";
5248
5167
  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
5168
  };
5269
5169
  }, {
5270
5170
  type: "Product";
@@ -5273,40 +5173,12 @@ declare const subscriptionSchema: z.ZodObject<{
5273
5173
  fulfillment: {
5274
5174
  type: "License";
5275
5175
  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
5176
  };
5296
5177
  }>, z.ZodObject<{
5297
5178
  type: z.ZodLiteral<"Bundle">;
5298
5179
  bundleId: z.ZodString;
5299
5180
  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<{
5181
+ fulfillment: z.ZodObject<{
5310
5182
  type: z.ZodLiteral<"Bundle">;
5311
5183
  productLicenses: z.ZodRecord<z.ZodString, z.ZodObject<{
5312
5184
  licenseIds: z.ZodArray<z.ZodString, "many">;
@@ -5325,121 +5197,25 @@ declare const subscriptionSchema: z.ZodObject<{
5325
5197
  productLicenses: Record<string, {
5326
5198
  licenseIds: string[];
5327
5199
  }>;
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
- }>]>;
5200
+ }>;
5391
5201
  }, "strip", z.ZodTypeAny, {
5392
5202
  type: "Bundle";
5393
5203
  quantity: number;
5394
5204
  fulfillment: {
5395
- type: "License";
5396
- licenseIds: string[];
5397
- } | {
5398
5205
  type: "Bundle";
5399
5206
  productLicenses: Record<string, {
5400
5207
  licenseIds: string[];
5401
5208
  }>;
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
5209
  };
5417
5210
  bundleId: string;
5418
5211
  }, {
5419
5212
  type: "Bundle";
5420
5213
  quantity: number;
5421
5214
  fulfillment: {
5422
- type: "License";
5423
- licenseIds: string[];
5424
- } | {
5425
5215
  type: "Bundle";
5426
5216
  productLicenses: Record<string, {
5427
5217
  licenseIds: string[];
5428
5218
  }>;
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
5219
  };
5444
5220
  bundleId: string;
5445
5221
  }>]>;
@@ -5567,51 +5343,15 @@ declare const subscriptionSchema: z.ZodObject<{
5567
5343
  fulfillment: {
5568
5344
  type: "License";
5569
5345
  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
5346
  };
5590
5347
  } | {
5591
5348
  type: "Bundle";
5592
5349
  quantity: number;
5593
5350
  fulfillment: {
5594
- type: "License";
5595
- licenseIds: string[];
5596
- } | {
5597
5351
  type: "Bundle";
5598
5352
  productLicenses: Record<string, {
5599
5353
  licenseIds: string[];
5600
5354
  }>;
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
5355
  };
5616
5356
  bundleId: string;
5617
5357
  };
@@ -5678,51 +5418,15 @@ declare const subscriptionSchema: z.ZodObject<{
5678
5418
  fulfillment: {
5679
5419
  type: "License";
5680
5420
  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
5421
  };
5701
5422
  } | {
5702
5423
  type: "Bundle";
5703
5424
  quantity: number;
5704
5425
  fulfillment: {
5705
- type: "License";
5706
- licenseIds: string[];
5707
- } | {
5708
5426
  type: "Bundle";
5709
5427
  productLicenses: Record<string, {
5710
5428
  licenseIds: string[];
5711
5429
  }>;
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
5430
  };
5727
5431
  bundleId: string;
5728
5432
  };
package/dist/index.js CHANGED
@@ -710,13 +710,13 @@ var subscriptionContentSchema = z9.discriminatedUnion("type", [
710
710
  type: z9.literal("Product"),
711
711
  productId: z9.string(),
712
712
  quantity: z9.number(),
713
- fulfillment: lineItemFulfillmentSchema
713
+ fulfillment: licenseLineItemFulfillmentSchema
714
714
  }),
715
715
  z9.object({
716
716
  type: z9.literal("Bundle"),
717
717
  bundleId: z9.string(),
718
718
  quantity: z9.number(),
719
- fulfillment: lineItemFulfillmentSchema
719
+ fulfillment: bundleLineItemFulfillmentSchema
720
720
  })
721
721
  ]);
722
722
  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.40",
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",