@drawbridge/drawbridge-utils 0.0.175 → 0.0.177

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.
Files changed (73) hide show
  1. package/dist/admin-B9ZaLvan.d.cts +697 -0
  2. package/dist/admin-C3HtEM6h.d.ts +697 -0
  3. package/dist/billing-Bc4yo9XG.d.cts +175 -0
  4. package/dist/billing-mNsKflmQ.d.ts +175 -0
  5. package/dist/billing.d.cts +1 -1
  6. package/dist/billing.d.ts +1 -1
  7. package/dist/connections/index.cjs +5928 -1920
  8. package/dist/connections/index.d.cts +20 -9163
  9. package/dist/connections/index.d.ts +20 -9163
  10. package/dist/connections/index.js +5917 -1921
  11. package/dist/connections/oauth.cjs +4 -4
  12. package/dist/connections/oauth.d.cts +10 -8
  13. package/dist/connections/oauth.d.ts +10 -8
  14. package/dist/connections/oauth.js +4 -4
  15. package/dist/features.cjs +10260 -42
  16. package/dist/features.d.cts +55 -42
  17. package/dist/features.d.ts +55 -42
  18. package/dist/features.js +10254 -42
  19. package/dist/http.cjs +10 -1
  20. package/dist/http.d.cts +10 -1
  21. package/dist/http.d.ts +10 -1
  22. package/dist/http.js +10 -1
  23. package/dist/index-B546oDNo.d.ts +13809 -0
  24. package/dist/index-C59xHago.d.cts +13809 -0
  25. package/dist/oauth/index.d.cts +1 -1
  26. package/dist/oauth/index.d.ts +1 -1
  27. package/dist/oauth-BJDh0sdM.d.cts +527 -0
  28. package/dist/oauth-DveZMLHx.d.ts +527 -0
  29. package/dist/partner-BOZltuh2.d.ts +94 -0
  30. package/dist/partner-ed2OfW1J.d.cts +94 -0
  31. package/dist/plans.cjs +10256 -51
  32. package/dist/plans.d.cts +37 -10
  33. package/dist/plans.d.ts +37 -10
  34. package/dist/plans.js +10262 -51
  35. package/dist/pricing.cjs +10401 -209
  36. package/dist/pricing.d.cts +34 -17
  37. package/dist/pricing.d.ts +34 -17
  38. package/dist/pricing.js +10407 -209
  39. package/dist/providers.cjs +5433 -1755
  40. package/dist/providers.d.cts +13 -15
  41. package/dist/providers.d.ts +13 -15
  42. package/dist/providers.js +5436 -1752
  43. package/dist/sendgrid.cjs +10 -1
  44. package/dist/sendgrid.js +10 -1
  45. package/dist/shopify/admin.cjs +562 -0
  46. package/dist/shopify/admin.d.cts +3 -0
  47. package/dist/shopify/admin.d.ts +3 -0
  48. package/dist/shopify/admin.js +528 -0
  49. package/dist/shopify/billing.cjs +166 -0
  50. package/dist/shopify/billing.d.cts +3 -0
  51. package/dist/shopify/billing.d.ts +3 -0
  52. package/dist/shopify/billing.js +140 -0
  53. package/dist/shopify/constants.cjs +63 -0
  54. package/dist/shopify/constants.d.cts +58 -0
  55. package/dist/shopify/constants.d.ts +58 -0
  56. package/dist/shopify/constants.js +32 -0
  57. package/dist/shopify/oauth.cjs +509 -0
  58. package/dist/shopify/oauth.d.cts +7 -0
  59. package/dist/shopify/oauth.d.ts +7 -0
  60. package/dist/shopify/oauth.js +466 -0
  61. package/dist/shopify/partner.cjs +156 -0
  62. package/dist/shopify/partner.d.cts +3 -0
  63. package/dist/shopify/partner.d.ts +3 -0
  64. package/dist/shopify/partner.js +130 -0
  65. package/dist/shopify/storefront.cjs +611 -0
  66. package/dist/shopify/storefront.d.cts +3 -0
  67. package/dist/shopify/storefront.d.ts +3 -0
  68. package/dist/shopify/storefront.js +576 -0
  69. package/dist/storefront-C8FKOGeD.d.cts +659 -0
  70. package/dist/storefront-DJFGLqPl.d.ts +659 -0
  71. package/dist/twilio.cjs +10 -1
  72. package/dist/twilio.js +10 -1
  73. package/package.json +98 -68
package/dist/plans.d.cts CHANGED
@@ -1,11 +1,39 @@
1
- import { organization, page, connection, fields, field } from './features.cjs';
1
+ import { organization, page, fields, field, connection } from './features.cjs';
2
2
  import { infinite, gigabyte } from './index.cjs';
3
+ import './index-C59xHago.cjs';
4
+ import './usage.cjs';
5
+ import './encrypt.cjs';
6
+ import 'crypto';
7
+ import './token.cjs';
8
+ import './connections/oauth.cjs';
9
+ import 'node:crypto';
10
+ import './phone.cjs';
11
+ import 'libphonenumber-js';
12
+ import './http.cjs';
13
+ import 'nanoid';
14
+ import './admin-B9ZaLvan.cjs';
15
+ import './shopify/constants.cjs';
16
+ import './billing-Bc4yo9XG.cjs';
17
+ import './oauth-BJDh0sdM.cjs';
18
+ import './partner-ed2OfW1J.cjs';
19
+ import './storefront-C8FKOGeD.cjs';
20
+ import './email.cjs';
21
+ import './oauth/index.cjs';
22
+ import './sanitize.cjs';
23
+ import 'disposable-email-domains/index.js';
24
+ import './slugify.cjs';
25
+ import 'slugify';
26
+ import './safe-http.cjs';
27
+ import 'dns';
28
+ import 'node:http';
29
+ import 'node:https';
30
+ import './axios.cjs';
31
+ import 'axios';
32
+ import 'net';
3
33
  import 'currency-codes';
4
34
  import './color.cjs';
5
35
  import 'tinycolor2';
6
36
  import './nanoid.cjs';
7
- import 'nanoid';
8
- import './usage.cjs';
9
37
 
10
38
  const featuresFor = ( array = [] ) => Object.values({
11
39
  ...connection,
@@ -59,13 +87,12 @@ const unitAmountDecimal = ( cents ) => {
59
87
 
60
88
  const all = {
61
89
  features : ( array = [] ) => featuresFor([
62
- connection.attentive.key,
63
- connection.klaviyo.key,
64
- connection.mailchimp.key,
65
- connection.sendgrid.key,
66
- connection.shopify.key,
67
- connection.twilio.key,
68
- connection.webhook.key,
90
+ // EVERY CONNECTION, DERIVED. It was seven names typed out, and two of them
91
+ // — sendgrid and twilio — are VENDORS with no manifest, so the top plan
92
+ // granted access to two connections that do not exist. The list had also
93
+ // been short in the other direction: Klaviyo shipped with no entry, so no
94
+ // plan granted its key and the gate denied every non-admin request.
95
+ ...Object.values( connection ).map( ( entry ) => entry.key ),
69
96
  organization.affiliates.key,
70
97
  organization.brands.key,
71
98
  fields.additional.key,
package/dist/plans.d.ts CHANGED
@@ -1,11 +1,39 @@
1
- import { organization, page, connection, fields, field } from './features.js';
1
+ import { organization, page, fields, field, connection } from './features.js';
2
2
  import { infinite, gigabyte } from './index.js';
3
+ import './index-B546oDNo.js';
4
+ import './usage.js';
5
+ import './encrypt.js';
6
+ import 'crypto';
7
+ import './token.js';
8
+ import './connections/oauth.js';
9
+ import 'node:crypto';
10
+ import './phone.js';
11
+ import 'libphonenumber-js';
12
+ import './http.js';
13
+ import 'nanoid';
14
+ import './admin-C3HtEM6h.js';
15
+ import './shopify/constants.js';
16
+ import './billing-mNsKflmQ.js';
17
+ import './oauth-DveZMLHx.js';
18
+ import './partner-BOZltuh2.js';
19
+ import './storefront-DJFGLqPl.js';
20
+ import './email.js';
21
+ import './oauth/index.js';
22
+ import './sanitize.js';
23
+ import 'disposable-email-domains/index.js';
24
+ import './slugify.js';
25
+ import 'slugify';
26
+ import './safe-http.js';
27
+ import 'dns';
28
+ import 'node:http';
29
+ import 'node:https';
30
+ import './axios.js';
31
+ import 'axios';
32
+ import 'net';
3
33
  import 'currency-codes';
4
34
  import './color.js';
5
35
  import 'tinycolor2';
6
36
  import './nanoid.js';
7
- import 'nanoid';
8
- import './usage.js';
9
37
 
10
38
  const featuresFor = ( array = [] ) => Object.values({
11
39
  ...connection,
@@ -59,13 +87,12 @@ const unitAmountDecimal = ( cents ) => {
59
87
 
60
88
  const all = {
61
89
  features : ( array = [] ) => featuresFor([
62
- connection.attentive.key,
63
- connection.klaviyo.key,
64
- connection.mailchimp.key,
65
- connection.sendgrid.key,
66
- connection.shopify.key,
67
- connection.twilio.key,
68
- connection.webhook.key,
90
+ // EVERY CONNECTION, DERIVED. It was seven names typed out, and two of them
91
+ // — sendgrid and twilio — are VENDORS with no manifest, so the top plan
92
+ // granted access to two connections that do not exist. The list had also
93
+ // been short in the other direction: Klaviyo shipped with no entry, so no
94
+ // plan granted its key and the gate denied every non-admin request.
95
+ ...Object.values( connection ).map( ( entry ) => entry.key ),
69
96
  organization.affiliates.key,
70
97
  organization.brands.key,
71
98
  fields.additional.key,