@drawbridge/drawbridge-utils 0.0.175 → 0.0.176

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.
@@ -1,16 +1,35 @@
1
+ import { u as channels } from './index-qY18QITf.cjs';
1
2
  import { MARKUP } from './billing.cjs';
2
3
  export { LOCAL_FLAT_CENTS, PREMIUM_CPM_CENTS, PREMIUM_RATE_PER_GB, REUSE_FLAT_CENTS, STANDARD_CPM_CENTS, STANDARD_RATE_PER_GB, ai, scrape } from './billing.cjs';
3
4
  export { conversionRate, free, plans, resolvePlan, unitAmountDecimal } from './plans.cjs';
5
+ import './usage.cjs';
6
+ import './connections/oauth.cjs';
7
+ import 'node:crypto';
8
+ import './phone.cjs';
9
+ import 'libphonenumber-js';
10
+ import './http.cjs';
11
+ import 'nanoid';
12
+ import './email.cjs';
13
+ import './encrypt.cjs';
14
+ import 'crypto';
15
+ import './token.cjs';
16
+ import './slugify.cjs';
17
+ import 'slugify';
18
+ import './safe-http.cjs';
19
+ import 'dns';
20
+ import 'node:http';
21
+ import 'node:https';
22
+ import './axios.cjs';
23
+ import 'axios';
24
+ import 'net';
4
25
  import './transactions.cjs';
5
26
  import '@drawbridge/drawbridge-telemetry';
6
- import './usage.cjs';
7
27
  import './features.cjs';
8
28
  import './index.cjs';
9
29
  import 'currency-codes';
10
30
  import './color.cjs';
11
31
  import 'tinycolor2';
12
32
  import './nanoid.cjs';
13
- import 'nanoid';
14
33
 
15
34
  // Pricing — the one file you open to see every customer-facing number.
16
35
  //
@@ -201,21 +220,10 @@ const sending = {
201
220
  }
202
221
  };
203
222
 
204
- // Weighted actions: what one message of each channel costs against a plan.
205
- // Named per unit so a bare `2` can never be read as cents.
206
- const channels = {
207
- email : {
208
- actionsPerSend : 1,
209
- includedInAllowance : true
210
- },
211
- sms : {
212
- // Two actions PER SEGMENT (a long message is several segments), billed from
213
- // the FIRST segment and never drawn from the plan's included allowance —
214
- // carrier cost is real from message one, so there is no free tier of it.
215
- actionsPerSegment : 2,
216
- includedInAllowance : false
217
- }
218
- };
223
+ // Weighted actions per channel now live in lib/channels.js, and are re-exported
224
+ // below so this file stays the index of every customer-facing number. They moved
225
+ // so a connection manifest can read them without pulling in the plan catalogue —
226
+ // see that file.
219
227
 
220
228
  // The lowest CENTS-per-action rate a plan may charge. Custom plans are
221
229
  // hand-entered, and the guard on them only ever rejected a MISSING rate — zero
package/dist/pricing.d.ts CHANGED
@@ -1,16 +1,35 @@
1
+ import { u as channels } from './index-B8JhYfvU.js';
1
2
  import { MARKUP } from './billing.js';
2
3
  export { LOCAL_FLAT_CENTS, PREMIUM_CPM_CENTS, PREMIUM_RATE_PER_GB, REUSE_FLAT_CENTS, STANDARD_CPM_CENTS, STANDARD_RATE_PER_GB, ai, scrape } from './billing.js';
3
4
  export { conversionRate, free, plans, resolvePlan, unitAmountDecimal } from './plans.js';
5
+ import './usage.js';
6
+ import './connections/oauth.js';
7
+ import 'node:crypto';
8
+ import './phone.js';
9
+ import 'libphonenumber-js';
10
+ import './http.js';
11
+ import 'nanoid';
12
+ import './email.js';
13
+ import './encrypt.js';
14
+ import 'crypto';
15
+ import './token.js';
16
+ import './slugify.js';
17
+ import 'slugify';
18
+ import './safe-http.js';
19
+ import 'dns';
20
+ import 'node:http';
21
+ import 'node:https';
22
+ import './axios.js';
23
+ import 'axios';
24
+ import 'net';
4
25
  import './transactions.js';
5
26
  import '@drawbridge/drawbridge-telemetry';
6
- import './usage.js';
7
27
  import './features.js';
8
28
  import './index.js';
9
29
  import 'currency-codes';
10
30
  import './color.js';
11
31
  import 'tinycolor2';
12
32
  import './nanoid.js';
13
- import 'nanoid';
14
33
 
15
34
  // Pricing — the one file you open to see every customer-facing number.
16
35
  //
@@ -201,21 +220,10 @@ const sending = {
201
220
  }
202
221
  };
203
222
 
204
- // Weighted actions: what one message of each channel costs against a plan.
205
- // Named per unit so a bare `2` can never be read as cents.
206
- const channels = {
207
- email : {
208
- actionsPerSend : 1,
209
- includedInAllowance : true
210
- },
211
- sms : {
212
- // Two actions PER SEGMENT (a long message is several segments), billed from
213
- // the FIRST segment and never drawn from the plan's included allowance —
214
- // carrier cost is real from message one, so there is no free tier of it.
215
- actionsPerSegment : 2,
216
- includedInAllowance : false
217
- }
218
- };
223
+ // Weighted actions per channel now live in lib/channels.js, and are re-exported
224
+ // below so this file stays the index of every customer-facing number. They moved
225
+ // so a connection manifest can read them without pulling in the plan catalogue —
226
+ // see that file.
219
227
 
220
228
  // The lowest CENTS-per-action rate a plan may charge. Custom plans are
221
229
  // hand-entered, and the guard on them only ever rejected a MISSING rate — zero