@bpinternal/const 0.3.3 → 0.3.5

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.
@@ -2,7 +2,7 @@
2
2
  * Billing features for v4 billing system
3
3
  * Based on the requirements from the billing refactor document
4
4
  */
5
- export declare const billingFeatures: readonly ["human_in_the_loop", "ratelimit", "incoming_messages_events", "integration_spend", "integration_subscription", "table_rows", "bot_count", "always_alive_count", "collaborator_count", "file_storage", "vector_db_storage", "saved_versions"];
5
+ export declare const billingFeatures: readonly ["human_in_the_loop", "ratelimit", "incoming_messages_events", "integration_spend", "integration_subscription", "table_rows", "bot_count", "always_alive_count", "always_alive_concurrency", "collaborator_count", "file_storage", "vector_db_storage", "saved_versions"];
6
6
  export type BillingFeature = (typeof billingFeatures)[number];
7
7
  export type BillingFeatureConfig = {
8
8
  name: string;
@@ -65,6 +65,11 @@ export declare const billingFeatureConfigs: {
65
65
  readonly description: "Number of bots that can be kept always alive";
66
66
  readonly type: "static";
67
67
  };
68
+ readonly always_alive_concurrency: {
69
+ readonly name: "Always Alive Concurrency";
70
+ readonly description: "Number of concurrent instances for always alive bots";
71
+ readonly type: "static";
72
+ };
68
73
  readonly collaborator_count: {
69
74
  readonly name: "Collaborator Count";
70
75
  readonly description: "Number of collaborators that can be added to workspace";
@@ -14,6 +14,7 @@ exports.billingFeatures = [
14
14
  'table_rows',
15
15
  'bot_count',
16
16
  'always_alive_count',
17
+ 'always_alive_concurrency',
17
18
  'collaborator_count',
18
19
  'file_storage',
19
20
  'vector_db_storage',
@@ -73,6 +74,11 @@ exports.billingFeatureConfigs = {
73
74
  description: 'Number of bots that can be kept always alive',
74
75
  type: 'static',
75
76
  },
77
+ always_alive_concurrency: {
78
+ name: 'Always Alive Concurrency',
79
+ description: 'Number of concurrent instances for always alive bots',
80
+ type: 'static',
81
+ },
76
82
  collaborator_count: {
77
83
  name: 'Collaborator Count',
78
84
  description: 'Number of collaborators that can be added to workspace',
@@ -49,6 +49,7 @@ export declare const billingPlans: {
49
49
  readonly table_rows: 1000;
50
50
  readonly bot_count: 1;
51
51
  readonly always_alive_count: 0;
52
+ readonly always_alive_concurrency: 1;
52
53
  readonly collaborator_count: 1;
53
54
  readonly file_storage: 100000000;
54
55
  readonly vector_db_storage: 100000000;
@@ -77,6 +78,7 @@ export declare const billingPlans: {
77
78
  readonly table_rows: 100000;
78
79
  readonly bot_count: 2;
79
80
  readonly always_alive_count: 1;
81
+ readonly always_alive_concurrency: 1;
80
82
  readonly collaborator_count: 2;
81
83
  readonly file_storage: 10000000000;
82
84
  readonly vector_db_storage: 1000000000;
@@ -105,6 +107,7 @@ export declare const billingPlans: {
105
107
  readonly table_rows: 100000;
106
108
  readonly bot_count: 3;
107
109
  readonly always_alive_count: 3;
110
+ readonly always_alive_concurrency: 3;
108
111
  readonly collaborator_count: 3;
109
112
  readonly file_storage: 10000000000;
110
113
  readonly vector_db_storage: 2000000000;
@@ -129,6 +132,7 @@ export declare const billingPlans: {
129
132
  readonly table_rows: 10000000;
130
133
  readonly bot_count: 100;
131
134
  readonly always_alive_count: 50;
135
+ readonly always_alive_concurrency: 3;
132
136
  readonly collaborator_count: 100;
133
137
  readonly file_storage: 1000000000000;
134
138
  readonly vector_db_storage: 500000000000;
@@ -29,6 +29,7 @@ exports.billingPlans = {
29
29
  table_rows: 1000,
30
30
  bot_count: 1,
31
31
  always_alive_count: 0,
32
+ always_alive_concurrency: 1,
32
33
  collaborator_count: 1,
33
34
  file_storage: 100_000_000, // 100 MB
34
35
  vector_db_storage: 100_000_000, // 100 MB
@@ -60,6 +61,7 @@ exports.billingPlans = {
60
61
  table_rows: 100000,
61
62
  bot_count: 2,
62
63
  always_alive_count: 1,
64
+ always_alive_concurrency: 1,
63
65
  collaborator_count: 2,
64
66
  file_storage: 10_000_000_000, // 10 GB
65
67
  vector_db_storage: 1_000_000_000, // 1 GB
@@ -91,6 +93,7 @@ exports.billingPlans = {
91
93
  table_rows: 100000,
92
94
  bot_count: 3,
93
95
  always_alive_count: 3,
96
+ always_alive_concurrency: 3,
94
97
  collaborator_count: 3,
95
98
  file_storage: 10_000_000_000, // 10 GB
96
99
  vector_db_storage: 2_000_000_000, // 2 GB
@@ -117,6 +120,7 @@ exports.billingPlans = {
117
120
  table_rows: 10000000,
118
121
  bot_count: 100,
119
122
  always_alive_count: 50,
123
+ always_alive_concurrency: 3,
120
124
  collaborator_count: 100,
121
125
  file_storage: 1000_000_000_000, // 1000 GB
122
126
  vector_db_storage: 500_000_000_000, // 500 GB
@@ -0,0 +1,2 @@
1
+ export type CancellationReason = (typeof CANCELLATION_REASONS)[number];
2
+ export declare const CANCELLATION_REASONS: readonly ["too_expensive", "not_using_enough", "missing_feature", "switched_tool", "technical_issues", "support_expectations", "temporary_need"];
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CANCELLATION_REASONS = void 0;
4
+ exports.CANCELLATION_REASONS = [
5
+ 'too_expensive',
6
+ 'not_using_enough',
7
+ 'missing_feature',
8
+ 'switched_tool',
9
+ 'technical_issues',
10
+ 'support_expectations',
11
+ 'temporary_need',
12
+ ];
package/dist/index.d.ts CHANGED
@@ -4,6 +4,7 @@ export * from './prefixes';
4
4
  export * from './quotas';
5
5
  export * from './tags';
6
6
  export * from './workflow-names';
7
+ export * from './cancellation-reasons';
7
8
  export * from './billing-features';
8
9
  export * from './billing-products';
9
10
  export * from './billing-versions';
package/dist/index.js CHANGED
@@ -20,6 +20,7 @@ __exportStar(require("./prefixes"), exports);
20
20
  __exportStar(require("./quotas"), exports);
21
21
  __exportStar(require("./tags"), exports);
22
22
  __exportStar(require("./workflow-names"), exports);
23
+ __exportStar(require("./cancellation-reasons"), exports);
23
24
  // V4 Billing Constants
24
25
  __exportStar(require("./billing-features"), exports);
25
26
  __exportStar(require("./billing-products"), exports);
@@ -1,2 +1,5 @@
1
1
  export declare const WEBSITE_CRAWL_WORKFLOW = "website-crawl";
2
2
  export declare const ONBOARDING_DEPLOY_WORKFLOW = "onboarding-deploy";
3
+ export declare const IDENTITY_TEXT_WORKFLOW = "identity-text-workflow";
4
+ export declare const IDENTITY_WEBSITE_WORKFLOW = "identity-website-workflow";
5
+ export declare const KNOWLEDGE_WORKFLOW = "knowledge-workflow";
@@ -1,5 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ONBOARDING_DEPLOY_WORKFLOW = exports.WEBSITE_CRAWL_WORKFLOW = void 0;
3
+ exports.KNOWLEDGE_WORKFLOW = exports.IDENTITY_WEBSITE_WORKFLOW = exports.IDENTITY_TEXT_WORKFLOW = exports.ONBOARDING_DEPLOY_WORKFLOW = exports.WEBSITE_CRAWL_WORKFLOW = void 0;
4
4
  exports.WEBSITE_CRAWL_WORKFLOW = 'website-crawl';
5
5
  exports.ONBOARDING_DEPLOY_WORKFLOW = 'onboarding-deploy';
6
+ exports.IDENTITY_TEXT_WORKFLOW = 'identity-text-workflow';
7
+ exports.IDENTITY_WEBSITE_WORKFLOW = 'identity-website-workflow';
8
+ exports.KNOWLEDGE_WORKFLOW = 'knowledge-workflow';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bpinternal/const",
3
- "version": "0.3.3",
3
+ "version": "0.3.5",
4
4
  "description": "Shared constants for Skynet billing refactor (vendored copy of upstream packages/const)",
5
5
  "license": "UNLICENSED",
6
6
  "main": "dist/index.js",