@bpinternal/const 0.31.0 → 0.33.0
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/billing-next/config/index.d.ts +2 -3
- package/dist/billing-next/config/index.js +2 -3
- package/dist/billing-next/config/schemas.d.ts +26 -13
- package/dist/billing-next/config/schemas.js +2 -1
- package/dist/billing-next/config/utils.d.ts +6 -0
- package/dist/billing-next/config/utils.js +11 -0
- package/dist/billing-next/config/{addons.d.ts → v4/addons.d.ts} +5 -5
- package/dist/billing-next/config/{addons.js → v4/addons.js} +4 -4
- package/dist/billing-next/config/{grants.d.ts → v4/grants.d.ts} +5 -4
- package/dist/billing-next/config/{grants.js → v4/grants.js} +6 -5
- package/dist/billing-next/config/v4/index.d.ts +4 -0
- package/dist/billing-next/config/v4/index.js +19 -0
- package/dist/billing-next/config/{plans.d.ts → v4/plans.d.ts} +2 -2
- package/dist/billing-next/config/{plans.js → v4/plans.js} +4 -4
- package/dist/billing-next/config/v5/index.d.ts +2 -0
- package/dist/billing-next/config/v5/index.js +17 -0
- package/dist/billing-next/config/v5/plans.d.ts +150 -0
- package/dist/billing-next/config/v5/plans.js +99 -0
- package/dist/billing-next/config/versions.d.ts +460 -0
- package/dist/billing-next/config/versions.js +48 -6
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -14,8 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./
|
|
18
|
-
__exportStar(require("./
|
|
19
|
-
__exportStar(require("./grants"), exports);
|
|
17
|
+
__exportStar(require("./v4"), exports);
|
|
18
|
+
__exportStar(require("./v5"), exports);
|
|
20
19
|
__exportStar(require("./schemas"), exports);
|
|
21
20
|
__exportStar(require("./versions"), exports);
|
|
@@ -204,12 +204,12 @@ export declare const creditGrantSchema: z.ZodObject<{
|
|
|
204
204
|
increment: z.ZodNumber;
|
|
205
205
|
autoRechargeable: z.ZodOptional<z.ZodBoolean>;
|
|
206
206
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
207
|
-
|
|
207
|
+
providerPricingPlanId: z.ZodString;
|
|
208
|
+
providerPricingPlanVersionId: z.ZodString;
|
|
208
209
|
}, "strip", z.ZodTypeAny, {
|
|
209
210
|
id: string;
|
|
210
211
|
name: string;
|
|
211
212
|
description: string;
|
|
212
|
-
providerProductId: string;
|
|
213
213
|
price: {
|
|
214
214
|
currency: "usd";
|
|
215
215
|
interval: "month" | "year";
|
|
@@ -219,13 +219,14 @@ export declare const creditGrantSchema: z.ZodObject<{
|
|
|
219
219
|
};
|
|
220
220
|
feature: "ai_spend";
|
|
221
221
|
increment: number;
|
|
222
|
+
providerPricingPlanId: string;
|
|
223
|
+
providerPricingPlanVersionId: string;
|
|
222
224
|
metadata?: Record<string, string> | undefined;
|
|
223
225
|
autoRechargeable?: boolean | undefined;
|
|
224
226
|
}, {
|
|
225
227
|
id: string;
|
|
226
228
|
name: string;
|
|
227
229
|
description: string;
|
|
228
|
-
providerProductId: string;
|
|
229
230
|
price: {
|
|
230
231
|
currency: "usd";
|
|
231
232
|
interval: "month" | "year";
|
|
@@ -235,6 +236,8 @@ export declare const creditGrantSchema: z.ZodObject<{
|
|
|
235
236
|
};
|
|
236
237
|
feature: "ai_spend";
|
|
237
238
|
increment: number;
|
|
239
|
+
providerPricingPlanId: string;
|
|
240
|
+
providerPricingPlanVersionId: string;
|
|
238
241
|
metadata?: Record<string, string> | undefined;
|
|
239
242
|
autoRechargeable?: boolean | undefined;
|
|
240
243
|
}>;
|
|
@@ -392,12 +395,12 @@ export declare const billingVersionConfigSchema: z.ZodObject<{
|
|
|
392
395
|
increment: z.ZodNumber;
|
|
393
396
|
autoRechargeable: z.ZodOptional<z.ZodBoolean>;
|
|
394
397
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
395
|
-
|
|
398
|
+
providerPricingPlanId: z.ZodString;
|
|
399
|
+
providerPricingPlanVersionId: z.ZodString;
|
|
396
400
|
}, "strip", z.ZodTypeAny, {
|
|
397
401
|
id: string;
|
|
398
402
|
name: string;
|
|
399
403
|
description: string;
|
|
400
|
-
providerProductId: string;
|
|
401
404
|
price: {
|
|
402
405
|
currency: "usd";
|
|
403
406
|
interval: "month" | "year";
|
|
@@ -407,13 +410,14 @@ export declare const billingVersionConfigSchema: z.ZodObject<{
|
|
|
407
410
|
};
|
|
408
411
|
feature: "ai_spend";
|
|
409
412
|
increment: number;
|
|
413
|
+
providerPricingPlanId: string;
|
|
414
|
+
providerPricingPlanVersionId: string;
|
|
410
415
|
metadata?: Record<string, string> | undefined;
|
|
411
416
|
autoRechargeable?: boolean | undefined;
|
|
412
417
|
}, {
|
|
413
418
|
id: string;
|
|
414
419
|
name: string;
|
|
415
420
|
description: string;
|
|
416
|
-
providerProductId: string;
|
|
417
421
|
price: {
|
|
418
422
|
currency: "usd";
|
|
419
423
|
interval: "month" | "year";
|
|
@@ -423,6 +427,8 @@ export declare const billingVersionConfigSchema: z.ZodObject<{
|
|
|
423
427
|
};
|
|
424
428
|
feature: "ai_spend";
|
|
425
429
|
increment: number;
|
|
430
|
+
providerPricingPlanId: string;
|
|
431
|
+
providerPricingPlanVersionId: string;
|
|
426
432
|
metadata?: Record<string, string> | undefined;
|
|
427
433
|
autoRechargeable?: boolean | undefined;
|
|
428
434
|
}>>;
|
|
@@ -470,7 +476,6 @@ export declare const billingVersionConfigSchema: z.ZodObject<{
|
|
|
470
476
|
id: string;
|
|
471
477
|
name: string;
|
|
472
478
|
description: string;
|
|
473
|
-
providerProductId: string;
|
|
474
479
|
price: {
|
|
475
480
|
currency: "usd";
|
|
476
481
|
interval: "month" | "year";
|
|
@@ -480,6 +485,8 @@ export declare const billingVersionConfigSchema: z.ZodObject<{
|
|
|
480
485
|
};
|
|
481
486
|
feature: "ai_spend";
|
|
482
487
|
increment: number;
|
|
488
|
+
providerPricingPlanId: string;
|
|
489
|
+
providerPricingPlanVersionId: string;
|
|
483
490
|
metadata?: Record<string, string> | undefined;
|
|
484
491
|
autoRechargeable?: boolean | undefined;
|
|
485
492
|
}>;
|
|
@@ -527,7 +534,6 @@ export declare const billingVersionConfigSchema: z.ZodObject<{
|
|
|
527
534
|
id: string;
|
|
528
535
|
name: string;
|
|
529
536
|
description: string;
|
|
530
|
-
providerProductId: string;
|
|
531
537
|
price: {
|
|
532
538
|
currency: "usd";
|
|
533
539
|
interval: "month" | "year";
|
|
@@ -537,6 +543,8 @@ export declare const billingVersionConfigSchema: z.ZodObject<{
|
|
|
537
543
|
};
|
|
538
544
|
feature: "ai_spend";
|
|
539
545
|
increment: number;
|
|
546
|
+
providerPricingPlanId: string;
|
|
547
|
+
providerPricingPlanVersionId: string;
|
|
540
548
|
metadata?: Record<string, string> | undefined;
|
|
541
549
|
autoRechargeable?: boolean | undefined;
|
|
542
550
|
}>;
|
|
@@ -697,12 +705,12 @@ export declare const billingConfigSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
|
697
705
|
increment: z.ZodNumber;
|
|
698
706
|
autoRechargeable: z.ZodOptional<z.ZodBoolean>;
|
|
699
707
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
700
|
-
|
|
708
|
+
providerPricingPlanId: z.ZodString;
|
|
709
|
+
providerPricingPlanVersionId: z.ZodString;
|
|
701
710
|
}, "strip", z.ZodTypeAny, {
|
|
702
711
|
id: string;
|
|
703
712
|
name: string;
|
|
704
713
|
description: string;
|
|
705
|
-
providerProductId: string;
|
|
706
714
|
price: {
|
|
707
715
|
currency: "usd";
|
|
708
716
|
interval: "month" | "year";
|
|
@@ -712,13 +720,14 @@ export declare const billingConfigSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
|
712
720
|
};
|
|
713
721
|
feature: "ai_spend";
|
|
714
722
|
increment: number;
|
|
723
|
+
providerPricingPlanId: string;
|
|
724
|
+
providerPricingPlanVersionId: string;
|
|
715
725
|
metadata?: Record<string, string> | undefined;
|
|
716
726
|
autoRechargeable?: boolean | undefined;
|
|
717
727
|
}, {
|
|
718
728
|
id: string;
|
|
719
729
|
name: string;
|
|
720
730
|
description: string;
|
|
721
|
-
providerProductId: string;
|
|
722
731
|
price: {
|
|
723
732
|
currency: "usd";
|
|
724
733
|
interval: "month" | "year";
|
|
@@ -728,6 +737,8 @@ export declare const billingConfigSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
|
728
737
|
};
|
|
729
738
|
feature: "ai_spend";
|
|
730
739
|
increment: number;
|
|
740
|
+
providerPricingPlanId: string;
|
|
741
|
+
providerPricingPlanVersionId: string;
|
|
731
742
|
metadata?: Record<string, string> | undefined;
|
|
732
743
|
autoRechargeable?: boolean | undefined;
|
|
733
744
|
}>>;
|
|
@@ -775,7 +786,6 @@ export declare const billingConfigSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
|
775
786
|
id: string;
|
|
776
787
|
name: string;
|
|
777
788
|
description: string;
|
|
778
|
-
providerProductId: string;
|
|
779
789
|
price: {
|
|
780
790
|
currency: "usd";
|
|
781
791
|
interval: "month" | "year";
|
|
@@ -785,6 +795,8 @@ export declare const billingConfigSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
|
785
795
|
};
|
|
786
796
|
feature: "ai_spend";
|
|
787
797
|
increment: number;
|
|
798
|
+
providerPricingPlanId: string;
|
|
799
|
+
providerPricingPlanVersionId: string;
|
|
788
800
|
metadata?: Record<string, string> | undefined;
|
|
789
801
|
autoRechargeable?: boolean | undefined;
|
|
790
802
|
}>;
|
|
@@ -832,7 +844,6 @@ export declare const billingConfigSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
|
832
844
|
id: string;
|
|
833
845
|
name: string;
|
|
834
846
|
description: string;
|
|
835
|
-
providerProductId: string;
|
|
836
847
|
price: {
|
|
837
848
|
currency: "usd";
|
|
838
849
|
interval: "month" | "year";
|
|
@@ -842,6 +853,8 @@ export declare const billingConfigSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
|
842
853
|
};
|
|
843
854
|
feature: "ai_spend";
|
|
844
855
|
increment: number;
|
|
856
|
+
providerPricingPlanId: string;
|
|
857
|
+
providerPricingPlanVersionId: string;
|
|
845
858
|
metadata?: Record<string, string> | undefined;
|
|
846
859
|
autoRechargeable?: boolean | undefined;
|
|
847
860
|
}>;
|
|
@@ -58,7 +58,8 @@ exports.creditGrantSchema = zod_1.z.object({
|
|
|
58
58
|
increment: zod_1.z.number(),
|
|
59
59
|
autoRechargeable: zod_1.z.boolean().optional(),
|
|
60
60
|
metadata: zod_1.z.record(zod_1.z.string(), zod_1.z.string()).optional(),
|
|
61
|
-
|
|
61
|
+
providerPricingPlanId: zod_1.z.string(), // pulumi
|
|
62
|
+
providerPricingPlanVersionId: zod_1.z.string(), // pulumi
|
|
62
63
|
});
|
|
63
64
|
exports.billingVersionConfigSchema = zod_1.z.object({
|
|
64
65
|
version: zod_1.z.string(),
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.entitlementsForConversations = entitlementsForConversations;
|
|
4
|
+
const consts_1 = require("../consts");
|
|
5
|
+
function entitlementsForConversations(conversations) {
|
|
6
|
+
return {
|
|
7
|
+
incoming_messages_events: conversations * consts_1.MESSAGES_PER_CONVERSATION,
|
|
8
|
+
ai_spend: conversations * consts_1.AI_SPEND_PER_CONVERSATION,
|
|
9
|
+
conversation_sessions: conversations,
|
|
10
|
+
};
|
|
11
|
+
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { BillingAddonDefinition } from '
|
|
3
|
-
export type BillingAddonId = keyof typeof
|
|
1
|
+
import { V4BillingPlanId } from './plans';
|
|
2
|
+
import { BillingAddonDefinition } from '../schemas';
|
|
3
|
+
export type BillingAddonId = keyof typeof v4Addons;
|
|
4
4
|
type BillingAddonPlanPrices = BillingAddonDefinition['prices'];
|
|
5
|
-
export declare const constantMonthlyPrice: (amount: number, scope?:
|
|
6
|
-
export declare const
|
|
5
|
+
export declare const constantMonthlyPrice: (amount: number, scope?: V4BillingPlanId[]) => BillingAddonPlanPrices;
|
|
6
|
+
export declare const v4Addons: {
|
|
7
7
|
readonly conversation_sessions_addon: {
|
|
8
8
|
readonly id: "conversation_sessions_addon";
|
|
9
9
|
readonly name: "Add-on - Conversation Sessions";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
const consts_1 = require("
|
|
5
|
-
const schemas_1 = require("
|
|
3
|
+
exports.v4Addons = exports.constantMonthlyPrice = void 0;
|
|
4
|
+
const consts_1 = require("../../consts");
|
|
5
|
+
const schemas_1 = require("../schemas");
|
|
6
6
|
const constantMonthlyPrice = (amount, scope = ['community', 'plus', 'team', 'enterprise', 'managed']) => {
|
|
7
7
|
return scope
|
|
8
8
|
.map((plan) => ({
|
|
@@ -17,7 +17,7 @@ const constantMonthlyPrice = (amount, scope = ['community', 'plus', 'team', 'ent
|
|
|
17
17
|
};
|
|
18
18
|
exports.constantMonthlyPrice = constantMonthlyPrice;
|
|
19
19
|
/* IMPORTANT: the `name` field is used to match existing products in Stripe DO NOT CHANGE THE NAME OF AN EXISTING PRODUCT */
|
|
20
|
-
exports.
|
|
20
|
+
exports.v4Addons = {
|
|
21
21
|
conversation_sessions_addon: {
|
|
22
22
|
id: 'conversation_sessions_addon',
|
|
23
23
|
name: 'Add-on - Conversation Sessions',
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export type GrantId = keyof typeof
|
|
2
|
-
export declare const
|
|
1
|
+
export type GrantId = keyof typeof v4CreditGrants;
|
|
2
|
+
export declare const v4CreditGrants: {
|
|
3
3
|
readonly ai_spend_credit_grant: {
|
|
4
4
|
readonly id: "ai_spend_credit_grant";
|
|
5
5
|
readonly name: "AI Spend - Credit grant";
|
|
@@ -13,8 +13,9 @@ export declare const creditGrants: {
|
|
|
13
13
|
readonly feature: "ai_spend";
|
|
14
14
|
readonly increment: number;
|
|
15
15
|
readonly autoRechargeable: true;
|
|
16
|
-
readonly
|
|
16
|
+
readonly providerPricingPlanId: "__UNKNOWN_STRIPE_ID__";
|
|
17
|
+
readonly providerPricingPlanVersionId: "__UNKNOWN_STRIPE_ID__";
|
|
17
18
|
};
|
|
18
19
|
};
|
|
19
|
-
export type GrantIncrementFeatureId = (typeof
|
|
20
|
+
export type GrantIncrementFeatureId = (typeof v4CreditGrants)[keyof typeof v4CreditGrants]['feature'];
|
|
20
21
|
//# sourceMappingURL=grants.d.ts.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
const consts_1 = require("
|
|
5
|
-
const schemas_1 = require("
|
|
6
|
-
exports.
|
|
3
|
+
exports.v4CreditGrants = void 0;
|
|
4
|
+
const consts_1 = require("../../consts");
|
|
5
|
+
const schemas_1 = require("../schemas");
|
|
6
|
+
exports.v4CreditGrants = {
|
|
7
7
|
ai_spend_credit_grant: {
|
|
8
8
|
id: 'ai_spend_credit_grant',
|
|
9
9
|
name: 'AI Spend - Credit grant',
|
|
@@ -17,6 +17,7 @@ exports.creditGrants = {
|
|
|
17
17
|
feature: 'ai_spend',
|
|
18
18
|
increment: 500 * consts_1.NANO_DOLLAR_PER_CENT,
|
|
19
19
|
autoRechargeable: true,
|
|
20
|
-
|
|
20
|
+
providerPricingPlanId: schemas_1.UNKNOWN_STRIPE_ID,
|
|
21
|
+
providerPricingPlanVersionId: schemas_1.UNKNOWN_STRIPE_ID,
|
|
21
22
|
},
|
|
22
23
|
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./addons"), exports);
|
|
18
|
+
__exportStar(require("./grants"), exports);
|
|
19
|
+
__exportStar(require("./plans"), exports);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
const consts_1 = require("
|
|
5
|
-
const schemas_1 = require("
|
|
3
|
+
exports.v4Plans = void 0;
|
|
4
|
+
const consts_1 = require("../../consts");
|
|
5
|
+
const schemas_1 = require("../schemas");
|
|
6
6
|
const ENTERPRISE_PLAN_FEATURES = {
|
|
7
7
|
table_rows: 0,
|
|
8
8
|
bot_count: consts_1.SMALL_UNLIMITED,
|
|
@@ -16,7 +16,7 @@ const ENTERPRISE_PLAN_FEATURES = {
|
|
|
16
16
|
conversation_sessions: 0,
|
|
17
17
|
};
|
|
18
18
|
/* IMPORTANT: the `name` field is used to match existing products in Stripe DO NOT CHANGE THE NAME OF AN EXISTING PRODUCT */
|
|
19
|
-
exports.
|
|
19
|
+
exports.v4Plans = {
|
|
20
20
|
community: {
|
|
21
21
|
id: 'community',
|
|
22
22
|
name: 'Plan - Free',
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./plans"), exports);
|
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
export declare const v5Plans: {
|
|
2
|
+
readonly community: {
|
|
3
|
+
readonly id: "community";
|
|
4
|
+
readonly name: "Plan - Free";
|
|
5
|
+
readonly description: "Free plan for trying things out";
|
|
6
|
+
readonly tierIndex: 0;
|
|
7
|
+
readonly prices: {
|
|
8
|
+
readonly month: {
|
|
9
|
+
readonly amount: -1;
|
|
10
|
+
readonly currency: "usd";
|
|
11
|
+
readonly interval: "month";
|
|
12
|
+
readonly providerPriceId: "__UNKNOWN_STRIPE_ID__";
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
readonly features: {
|
|
16
|
+
readonly incoming_messages_events: number;
|
|
17
|
+
readonly ai_spend: number;
|
|
18
|
+
readonly conversation_sessions: number;
|
|
19
|
+
readonly table_rows: 1000;
|
|
20
|
+
readonly bot_count: 3;
|
|
21
|
+
readonly collaborator_count: 3;
|
|
22
|
+
readonly file_storage: number;
|
|
23
|
+
readonly vector_db_storage: number;
|
|
24
|
+
readonly saved_versions: 3;
|
|
25
|
+
readonly indexed_file_count: 1000;
|
|
26
|
+
};
|
|
27
|
+
readonly providerProductId: "__UNKNOWN_STRIPE_ID__";
|
|
28
|
+
};
|
|
29
|
+
readonly plus: {
|
|
30
|
+
readonly id: "plus";
|
|
31
|
+
readonly name: "Plan - Plus";
|
|
32
|
+
readonly description: "For growing businesses";
|
|
33
|
+
readonly tierIndex: 1;
|
|
34
|
+
readonly prices: {
|
|
35
|
+
readonly month: {
|
|
36
|
+
readonly amount: 49;
|
|
37
|
+
readonly currency: "usd";
|
|
38
|
+
readonly interval: "month";
|
|
39
|
+
readonly providerPriceId: "__UNKNOWN_STRIPE_ID__";
|
|
40
|
+
};
|
|
41
|
+
readonly year: {
|
|
42
|
+
readonly amount: 490;
|
|
43
|
+
readonly currency: "usd";
|
|
44
|
+
readonly interval: "year";
|
|
45
|
+
readonly providerPriceId: "__UNKNOWN_STRIPE_ID__";
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
readonly features: {
|
|
49
|
+
readonly incoming_messages_events: number;
|
|
50
|
+
readonly ai_spend: number;
|
|
51
|
+
readonly conversation_sessions: number;
|
|
52
|
+
readonly table_rows: 100000;
|
|
53
|
+
readonly bot_count: 5000;
|
|
54
|
+
readonly collaborator_count: 3;
|
|
55
|
+
readonly file_storage: number;
|
|
56
|
+
readonly vector_db_storage: number;
|
|
57
|
+
readonly saved_versions: 50;
|
|
58
|
+
readonly indexed_file_count: 2000;
|
|
59
|
+
};
|
|
60
|
+
readonly providerProductId: "__UNKNOWN_STRIPE_ID__";
|
|
61
|
+
};
|
|
62
|
+
readonly team: {
|
|
63
|
+
readonly id: "team";
|
|
64
|
+
readonly name: "Plan - Team";
|
|
65
|
+
readonly description: "For small teams";
|
|
66
|
+
readonly tierIndex: 2;
|
|
67
|
+
readonly prices: {
|
|
68
|
+
readonly month: {
|
|
69
|
+
readonly amount: 939;
|
|
70
|
+
readonly currency: "usd";
|
|
71
|
+
readonly interval: "month";
|
|
72
|
+
readonly providerPriceId: "__UNKNOWN_STRIPE_ID__";
|
|
73
|
+
};
|
|
74
|
+
readonly year: {
|
|
75
|
+
readonly amount: number;
|
|
76
|
+
readonly currency: "usd";
|
|
77
|
+
readonly interval: "year";
|
|
78
|
+
readonly providerPriceId: "__UNKNOWN_STRIPE_ID__";
|
|
79
|
+
};
|
|
80
|
+
};
|
|
81
|
+
readonly features: {
|
|
82
|
+
readonly table_rows: 500000;
|
|
83
|
+
readonly bot_count: 5000;
|
|
84
|
+
readonly collaborator_count: 5000;
|
|
85
|
+
readonly file_storage: number;
|
|
86
|
+
readonly vector_db_storage: number;
|
|
87
|
+
readonly saved_versions: 100;
|
|
88
|
+
readonly indexed_file_count: 5000000;
|
|
89
|
+
readonly incoming_messages_events: number;
|
|
90
|
+
readonly ai_spend: number;
|
|
91
|
+
readonly conversation_sessions: 1500;
|
|
92
|
+
};
|
|
93
|
+
readonly providerProductId: "__UNKNOWN_STRIPE_ID__";
|
|
94
|
+
};
|
|
95
|
+
readonly enterprise: {
|
|
96
|
+
readonly id: "enterprise";
|
|
97
|
+
readonly name: "Plan - Enterprise";
|
|
98
|
+
readonly description: "Enterprise license subscription";
|
|
99
|
+
readonly tierIndex: 3;
|
|
100
|
+
readonly prices: {
|
|
101
|
+
readonly month: {
|
|
102
|
+
readonly amount: -1;
|
|
103
|
+
readonly currency: "usd";
|
|
104
|
+
readonly interval: "month";
|
|
105
|
+
readonly providerPriceId: "__UNKNOWN_STRIPE_ID__";
|
|
106
|
+
};
|
|
107
|
+
};
|
|
108
|
+
readonly features: {
|
|
109
|
+
table_rows: number;
|
|
110
|
+
bot_count: number;
|
|
111
|
+
collaborator_count: number;
|
|
112
|
+
file_storage: number;
|
|
113
|
+
vector_db_storage: number;
|
|
114
|
+
saved_versions: number;
|
|
115
|
+
indexed_file_count: number;
|
|
116
|
+
incoming_messages_events: number;
|
|
117
|
+
ai_spend: number;
|
|
118
|
+
conversation_sessions: number;
|
|
119
|
+
};
|
|
120
|
+
readonly providerProductId: "__UNKNOWN_STRIPE_ID__";
|
|
121
|
+
};
|
|
122
|
+
readonly managed: {
|
|
123
|
+
readonly id: "managed";
|
|
124
|
+
readonly name: "Plan - Managed";
|
|
125
|
+
readonly description: "Managed license subscription";
|
|
126
|
+
readonly tierIndex: 4;
|
|
127
|
+
readonly prices: {
|
|
128
|
+
readonly month: {
|
|
129
|
+
readonly amount: -1;
|
|
130
|
+
readonly currency: "usd";
|
|
131
|
+
readonly interval: "month";
|
|
132
|
+
readonly providerPriceId: "__UNKNOWN_STRIPE_ID__";
|
|
133
|
+
};
|
|
134
|
+
};
|
|
135
|
+
readonly features: {
|
|
136
|
+
table_rows: number;
|
|
137
|
+
bot_count: number;
|
|
138
|
+
collaborator_count: number;
|
|
139
|
+
file_storage: number;
|
|
140
|
+
vector_db_storage: number;
|
|
141
|
+
saved_versions: number;
|
|
142
|
+
indexed_file_count: number;
|
|
143
|
+
incoming_messages_events: number;
|
|
144
|
+
ai_spend: number;
|
|
145
|
+
conversation_sessions: number;
|
|
146
|
+
};
|
|
147
|
+
readonly providerProductId: "__UNKNOWN_STRIPE_ID__";
|
|
148
|
+
};
|
|
149
|
+
};
|
|
150
|
+
//# sourceMappingURL=plans.d.ts.map
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.v5Plans = void 0;
|
|
37
|
+
const consts_1 = require("../../consts");
|
|
38
|
+
const schemas_1 = require("../schemas");
|
|
39
|
+
const utils_1 = require("../utils");
|
|
40
|
+
const v4 = __importStar(require("../v4"));
|
|
41
|
+
exports.v5Plans = {
|
|
42
|
+
...v4.v4Plans,
|
|
43
|
+
community: {
|
|
44
|
+
id: 'community',
|
|
45
|
+
name: 'Plan - Free',
|
|
46
|
+
description: 'Free plan for trying things out',
|
|
47
|
+
tierIndex: 0,
|
|
48
|
+
prices: {
|
|
49
|
+
month: {
|
|
50
|
+
amount: consts_1.FREE_PRICE,
|
|
51
|
+
currency: 'usd',
|
|
52
|
+
interval: 'month',
|
|
53
|
+
providerPriceId: schemas_1.UNKNOWN_STRIPE_ID,
|
|
54
|
+
},
|
|
55
|
+
},
|
|
56
|
+
features: {
|
|
57
|
+
table_rows: 1000,
|
|
58
|
+
bot_count: 3,
|
|
59
|
+
collaborator_count: 3,
|
|
60
|
+
file_storage: 100 * consts_1.MB,
|
|
61
|
+
vector_db_storage: 100 * consts_1.MB,
|
|
62
|
+
saved_versions: 3,
|
|
63
|
+
indexed_file_count: 1_000,
|
|
64
|
+
...(0, utils_1.entitlementsForConversations)(25),
|
|
65
|
+
},
|
|
66
|
+
providerProductId: schemas_1.UNKNOWN_STRIPE_ID,
|
|
67
|
+
},
|
|
68
|
+
plus: {
|
|
69
|
+
id: 'plus',
|
|
70
|
+
name: 'Plan - Plus',
|
|
71
|
+
description: 'For growing businesses',
|
|
72
|
+
tierIndex: 1,
|
|
73
|
+
prices: {
|
|
74
|
+
month: {
|
|
75
|
+
amount: 49,
|
|
76
|
+
currency: 'usd',
|
|
77
|
+
interval: 'month',
|
|
78
|
+
providerPriceId: schemas_1.UNKNOWN_STRIPE_ID,
|
|
79
|
+
},
|
|
80
|
+
year: {
|
|
81
|
+
amount: 490,
|
|
82
|
+
currency: 'usd',
|
|
83
|
+
interval: 'year',
|
|
84
|
+
providerPriceId: schemas_1.UNKNOWN_STRIPE_ID,
|
|
85
|
+
},
|
|
86
|
+
},
|
|
87
|
+
features: {
|
|
88
|
+
table_rows: 100_000,
|
|
89
|
+
bot_count: consts_1.SMALL_UNLIMITED,
|
|
90
|
+
collaborator_count: 3,
|
|
91
|
+
file_storage: 10 * consts_1.GB,
|
|
92
|
+
vector_db_storage: 1 * consts_1.GB,
|
|
93
|
+
saved_versions: 50,
|
|
94
|
+
indexed_file_count: 2_000,
|
|
95
|
+
...(0, utils_1.entitlementsForConversations)(50),
|
|
96
|
+
},
|
|
97
|
+
providerProductId: schemas_1.UNKNOWN_STRIPE_ID,
|
|
98
|
+
},
|
|
99
|
+
};
|