@epilot/app-client 0.0.17 → 0.0.18

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/openapi.d.ts CHANGED
@@ -46,10 +46,15 @@ declare namespace Components {
46
46
  documentation_url?: string;
47
47
  homepage_url?: string;
48
48
  notifications?: Schemas.NotificationConfig;
49
+ pricing?: Schemas.Pricing;
49
50
  /**
50
51
  * S3 key of the logo file
51
52
  */
52
53
  logo_url_key?: string;
54
+ /**
55
+ * Email address for support requests
56
+ */
57
+ support_email?: string;
53
58
  }
54
59
  export interface UpdateVersionRequest {
55
60
  /**
@@ -70,6 +75,10 @@ declare namespace Components {
70
75
  * List of available versions of the app
71
76
  */
72
77
  versions?: string[];
78
+ /**
79
+ * Email address for support requests
80
+ */
81
+ support_email?: string;
73
82
  /**
74
83
  * Latest version of the app
75
84
  */
@@ -100,6 +109,7 @@ declare namespace Components {
100
109
  * Flag to indicate if the app is built by epilot.
101
110
  */
102
111
  internal?: boolean;
112
+ pricing?: Pricing;
103
113
  /**
104
114
  * Timestamp of app creation
105
115
  */
@@ -177,6 +187,10 @@ declare namespace Components {
177
187
  * List of available versions of the app
178
188
  */
179
189
  versions?: string[];
190
+ /**
191
+ * Email address for support requests
192
+ */
193
+ support_email?: string;
180
194
  /**
181
195
  * Latest version of the app
182
196
  */
@@ -207,6 +221,7 @@ declare namespace Components {
207
221
  * Flag to indicate if the app is built by epilot.
208
222
  */
209
223
  internal?: boolean;
224
+ pricing?: Pricing;
210
225
  /**
211
226
  * Timestamp of app creation
212
227
  */
@@ -254,6 +269,10 @@ declare namespace Components {
254
269
  * List of available versions of the app
255
270
  */
256
271
  versions?: string[];
272
+ /**
273
+ * Email address for support requests
274
+ */
275
+ support_email?: string;
257
276
  /**
258
277
  * Latest version of the app
259
278
  */
@@ -290,6 +309,10 @@ declare namespace Components {
290
309
  * Flag to indicate if the app is built by epilot.
291
310
  */
292
311
  internal?: boolean;
312
+ /**
313
+ * Pricing information for the app
314
+ */
315
+ pricing?: Pricing;
293
316
  /**
294
317
  * Timestamp of app creation
295
318
  */
@@ -368,6 +391,10 @@ declare namespace Components {
368
391
  */
369
392
  options?: /* Options for the component configuration */ Options[];
370
393
  }
394
+ /**
395
+ * How often the subscription is billed
396
+ */
397
+ export type BillingFrequency = "MONTHLY" | "QUARTERLY" | "YEARLY" | "CUSTOM";
371
398
  export interface BooleanArg {
372
399
  type?: "boolean";
373
400
  }
@@ -433,6 +460,9 @@ declare namespace Components {
433
460
  }[]
434
461
  ];
435
462
  }
463
+ export interface FreePricing {
464
+ pricing_type: "FREE";
465
+ }
436
466
  export interface JourneyBlockComponent {
437
467
  component_type: "CUSTOM_JOURNEY_BLOCK";
438
468
  configuration: JourneyBlockConfig;
@@ -478,7 +508,7 @@ declare namespace Components {
478
508
  * example:
479
509
  * developer@example.com
480
510
  */
481
- email: string; // email
511
+ email?: string | null;
482
512
  /**
483
513
  * List of events to subscribe to
484
514
  */
@@ -574,6 +604,7 @@ declare namespace Components {
574
604
  };
575
605
  }[];
576
606
  }
607
+ export type Pricing = FreePricing | SubscriptionPricing | UsageBasedPricing;
577
608
  export interface S3Reference {
578
609
  /**
579
610
  * The name of the S3 bucket where the JSON file for import is stored.
@@ -588,6 +619,10 @@ declare namespace Components {
588
619
  */
589
620
  key: string;
590
621
  }
622
+ export interface SubscriptionPricing {
623
+ pricing_type: "SUBSCRIPTION";
624
+ billing_frequency: /* How often the subscription is billed */ BillingFrequency;
625
+ }
591
626
  export interface TextArg {
592
627
  type?: "text";
593
628
  }
@@ -607,6 +642,9 @@ declare namespace Components {
607
642
  */
608
643
  app_id?: string;
609
644
  }
645
+ export interface UsageBasedPricing {
646
+ pricing_type: "USAGE_BASED";
647
+ }
610
648
  }
611
649
  }
612
650
  declare namespace Paths {
@@ -1241,10 +1279,12 @@ export type AppVersioned = Components.Schemas.AppVersioned;
1241
1279
  export type Author = Components.Schemas.Author;
1242
1280
  export type BaseComponent = Components.Schemas.BaseComponent;
1243
1281
  export type BaseComponentCommon = Components.Schemas.BaseComponentCommon;
1282
+ export type BillingFrequency = Components.Schemas.BillingFrequency;
1244
1283
  export type BooleanArg = Components.Schemas.BooleanArg;
1245
1284
  export type CallerIdentity = Components.Schemas.CallerIdentity;
1246
1285
  export type ComponentType = Components.Schemas.ComponentType;
1247
1286
  export type EnumArg = Components.Schemas.EnumArg;
1287
+ export type FreePricing = Components.Schemas.FreePricing;
1248
1288
  export type JourneyBlockComponent = Components.Schemas.JourneyBlockComponent;
1249
1289
  export type JourneyBlockComponentArgs = Components.Schemas.JourneyBlockComponentArgs;
1250
1290
  export type JourneyBlockConfig = Components.Schemas.JourneyBlockConfig;
@@ -1256,7 +1296,10 @@ export type OptionsRef = Components.Schemas.OptionsRef;
1256
1296
  export type PortalAuth = Components.Schemas.PortalAuth;
1257
1297
  export type PortalExtensionComponent = Components.Schemas.PortalExtensionComponent;
1258
1298
  export type PortalExtensionConfig = Components.Schemas.PortalExtensionConfig;
1299
+ export type Pricing = Components.Schemas.Pricing;
1259
1300
  export type S3Reference = Components.Schemas.S3Reference;
1301
+ export type SubscriptionPricing = Components.Schemas.SubscriptionPricing;
1260
1302
  export type TextArg = Components.Schemas.TextArg;
1261
1303
  export type TranslatedString = Components.Schemas.TranslatedString;
1262
1304
  export type UploadFilePayload = Components.Schemas.UploadFilePayload;
1305
+ export type UsageBasedPricing = Components.Schemas.UsageBasedPricing;
package/dist/openapi.json CHANGED
@@ -760,9 +760,16 @@
760
760
  "notifications": {
761
761
  "$ref": "#/components/schemas/NotificationConfig"
762
762
  },
763
+ "pricing": {
764
+ "$ref": "#/components/schemas/Pricing"
765
+ },
763
766
  "logo_url_key": {
764
767
  "type": "string",
765
768
  "description": "S3 key of the logo file"
769
+ },
770
+ "support_email": {
771
+ "type": "string",
772
+ "description": "Email address for support requests"
766
773
  }
767
774
  }
768
775
  }
@@ -987,13 +994,10 @@
987
994
  },
988
995
  "NotificationConfig": {
989
996
  "type": "object",
990
- "required": [
991
- "email"
992
- ],
993
997
  "properties": {
994
998
  "email": {
995
999
  "type": "string",
996
- "format": "email",
1000
+ "nullable": true,
997
1001
  "description": "Email address to receive notifications",
998
1002
  "example": "developer@example.com"
999
1003
  },
@@ -1381,6 +1385,84 @@
1381
1385
  }
1382
1386
  }
1383
1387
  },
1388
+ "BillingFrequency": {
1389
+ "type": "string",
1390
+ "enum": [
1391
+ "MONTHLY",
1392
+ "QUARTERLY",
1393
+ "YEARLY",
1394
+ "CUSTOM"
1395
+ ],
1396
+ "description": "How often the subscription is billed"
1397
+ },
1398
+ "Pricing": {
1399
+ "type": "object",
1400
+ "discriminator": {
1401
+ "propertyName": "pricing_type",
1402
+ "mapping": {
1403
+ "FREE": "#/components/schemas/FreePricing",
1404
+ "SUBSCRIPTION": "#/components/schemas/SubscriptionPricing",
1405
+ "USAGE_BASED": "#/components/schemas/UsageBasedPricing"
1406
+ }
1407
+ },
1408
+ "oneOf": [
1409
+ {
1410
+ "$ref": "#/components/schemas/FreePricing"
1411
+ },
1412
+ {
1413
+ "$ref": "#/components/schemas/SubscriptionPricing"
1414
+ },
1415
+ {
1416
+ "$ref": "#/components/schemas/UsageBasedPricing"
1417
+ }
1418
+ ]
1419
+ },
1420
+ "FreePricing": {
1421
+ "type": "object",
1422
+ "properties": {
1423
+ "pricing_type": {
1424
+ "type": "string",
1425
+ "enum": [
1426
+ "FREE"
1427
+ ]
1428
+ }
1429
+ },
1430
+ "required": [
1431
+ "pricing_type"
1432
+ ]
1433
+ },
1434
+ "SubscriptionPricing": {
1435
+ "type": "object",
1436
+ "properties": {
1437
+ "pricing_type": {
1438
+ "type": "string",
1439
+ "enum": [
1440
+ "SUBSCRIPTION"
1441
+ ]
1442
+ },
1443
+ "billing_frequency": {
1444
+ "$ref": "#/components/schemas/BillingFrequency"
1445
+ }
1446
+ },
1447
+ "required": [
1448
+ "pricing_type",
1449
+ "billing_frequency"
1450
+ ]
1451
+ },
1452
+ "UsageBasedPricing": {
1453
+ "type": "object",
1454
+ "properties": {
1455
+ "pricing_type": {
1456
+ "type": "string",
1457
+ "enum": [
1458
+ "USAGE_BASED"
1459
+ ]
1460
+ }
1461
+ },
1462
+ "required": [
1463
+ "pricing_type"
1464
+ ]
1465
+ },
1384
1466
  "AppMetadata": {
1385
1467
  "description": "Basic metadata about your app configuration which does not get versioned",
1386
1468
  "type": "object",
@@ -1407,6 +1489,10 @@
1407
1489
  "description": "List of available versions of the app",
1408
1490
  "readOnly": true
1409
1491
  },
1492
+ "support_email": {
1493
+ "type": "string",
1494
+ "description": "Email address for support requests"
1495
+ },
1410
1496
  "latest_version": {
1411
1497
  "type": "string",
1412
1498
  "description": "Latest version of the app",
@@ -1447,6 +1533,10 @@
1447
1533
  "description": "Flag to indicate if the app is built by epilot.",
1448
1534
  "readOnly": true
1449
1535
  },
1536
+ "pricing": {
1537
+ "$ref": "#/components/schemas/Pricing",
1538
+ "description": "Pricing information for the app"
1539
+ },
1450
1540
  "created_at": {
1451
1541
  "type": "string",
1452
1542
  "description": "Timestamp of app creation",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@epilot/app-client",
3
- "version": "0.0.17",
3
+ "version": "0.0.18",
4
4
  "description": "JavaScript client library for the epilot App API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",