@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.
- package/dist/admin-B9ZaLvan.d.cts +697 -0
- package/dist/admin-C3HtEM6h.d.ts +697 -0
- package/dist/billing-Bc4yo9XG.d.cts +175 -0
- package/dist/billing-mNsKflmQ.d.ts +175 -0
- package/dist/billing.d.cts +1 -1
- package/dist/billing.d.ts +1 -1
- package/dist/connections/index.cjs +5928 -1920
- package/dist/connections/index.d.cts +20 -9163
- package/dist/connections/index.d.ts +20 -9163
- package/dist/connections/index.js +5917 -1921
- package/dist/connections/oauth.cjs +4 -4
- package/dist/connections/oauth.d.cts +10 -8
- package/dist/connections/oauth.d.ts +10 -8
- package/dist/connections/oauth.js +4 -4
- package/dist/features.cjs +10260 -42
- package/dist/features.d.cts +55 -42
- package/dist/features.d.ts +55 -42
- package/dist/features.js +10254 -42
- package/dist/http.cjs +10 -1
- package/dist/http.d.cts +10 -1
- package/dist/http.d.ts +10 -1
- package/dist/http.js +10 -1
- package/dist/index-B546oDNo.d.ts +13809 -0
- package/dist/index-C59xHago.d.cts +13809 -0
- package/dist/oauth/index.d.cts +1 -1
- package/dist/oauth/index.d.ts +1 -1
- package/dist/oauth-BJDh0sdM.d.cts +527 -0
- package/dist/oauth-DveZMLHx.d.ts +527 -0
- package/dist/partner-BOZltuh2.d.ts +94 -0
- package/dist/partner-ed2OfW1J.d.cts +94 -0
- package/dist/plans.cjs +10256 -51
- package/dist/plans.d.cts +37 -10
- package/dist/plans.d.ts +37 -10
- package/dist/plans.js +10262 -51
- package/dist/pricing.cjs +10401 -209
- package/dist/pricing.d.cts +34 -17
- package/dist/pricing.d.ts +34 -17
- package/dist/pricing.js +10407 -209
- package/dist/providers.cjs +5433 -1755
- package/dist/providers.d.cts +13 -15
- package/dist/providers.d.ts +13 -15
- package/dist/providers.js +5436 -1752
- package/dist/sendgrid.cjs +10 -1
- package/dist/sendgrid.js +10 -1
- package/dist/shopify/admin.cjs +562 -0
- package/dist/shopify/admin.d.cts +3 -0
- package/dist/shopify/admin.d.ts +3 -0
- package/dist/shopify/admin.js +528 -0
- package/dist/shopify/billing.cjs +166 -0
- package/dist/shopify/billing.d.cts +3 -0
- package/dist/shopify/billing.d.ts +3 -0
- package/dist/shopify/billing.js +140 -0
- package/dist/shopify/constants.cjs +63 -0
- package/dist/shopify/constants.d.cts +58 -0
- package/dist/shopify/constants.d.ts +58 -0
- package/dist/shopify/constants.js +32 -0
- package/dist/shopify/oauth.cjs +509 -0
- package/dist/shopify/oauth.d.cts +7 -0
- package/dist/shopify/oauth.d.ts +7 -0
- package/dist/shopify/oauth.js +466 -0
- package/dist/shopify/partner.cjs +156 -0
- package/dist/shopify/partner.d.cts +3 -0
- package/dist/shopify/partner.d.ts +3 -0
- package/dist/shopify/partner.js +130 -0
- package/dist/shopify/storefront.cjs +611 -0
- package/dist/shopify/storefront.d.cts +3 -0
- package/dist/shopify/storefront.d.ts +3 -0
- package/dist/shopify/storefront.js +576 -0
- package/dist/storefront-C8FKOGeD.d.cts +659 -0
- package/dist/storefront-DJFGLqPl.d.ts +659 -0
- package/dist/twilio.cjs +10 -1
- package/dist/twilio.js +10 -1
- package/package.json +98 -68
package/dist/features.d.cts
CHANGED
|
@@ -1,3 +1,34 @@
|
|
|
1
|
+
import { y as connections } from './index-C59xHago.cjs';
|
|
2
|
+
import './usage.cjs';
|
|
3
|
+
import './encrypt.cjs';
|
|
4
|
+
import 'crypto';
|
|
5
|
+
import './token.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 './admin-B9ZaLvan.cjs';
|
|
13
|
+
import './shopify/constants.cjs';
|
|
14
|
+
import './billing-Bc4yo9XG.cjs';
|
|
15
|
+
import './oauth-BJDh0sdM.cjs';
|
|
16
|
+
import './partner-ed2OfW1J.cjs';
|
|
17
|
+
import './storefront-C8FKOGeD.cjs';
|
|
18
|
+
import './email.cjs';
|
|
19
|
+
import './oauth/index.cjs';
|
|
20
|
+
import './sanitize.cjs';
|
|
21
|
+
import 'disposable-email-domains/index.js';
|
|
22
|
+
import './slugify.cjs';
|
|
23
|
+
import 'slugify';
|
|
24
|
+
import './safe-http.cjs';
|
|
25
|
+
import 'dns';
|
|
26
|
+
import 'node:http';
|
|
27
|
+
import 'node:https';
|
|
28
|
+
import './axios.cjs';
|
|
29
|
+
import 'axios';
|
|
30
|
+
import 'net';
|
|
31
|
+
|
|
1
32
|
const page = {
|
|
2
33
|
qrcode : {
|
|
3
34
|
key : 'page:qrcode',
|
|
@@ -67,48 +98,30 @@ const field = {
|
|
|
67
98
|
}
|
|
68
99
|
};
|
|
69
100
|
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
feature : 'SendGrid connection'
|
|
95
|
-
},
|
|
96
|
-
shopify : {
|
|
97
|
-
key : 'organization:connection:shopify',
|
|
98
|
-
error : 'Plan does not include Shopify connection',
|
|
99
|
-
feature : 'Shopify connection',
|
|
100
|
-
},
|
|
101
|
-
twilio : {
|
|
102
|
-
key : 'organization:connection:twilio',
|
|
103
|
-
error : 'Plan does not include Twilio connection',
|
|
104
|
-
feature : 'Twilio connection'
|
|
105
|
-
},
|
|
106
|
-
webhook : {
|
|
107
|
-
key : 'organization:connection:webhook',
|
|
108
|
-
error : 'Plan does not include Webhook connection',
|
|
109
|
-
feature : 'Webhook connection'
|
|
110
|
-
}
|
|
111
|
-
};
|
|
101
|
+
// DERIVED FROM THE REGISTRY, one entry per public connection.
|
|
102
|
+
//
|
|
103
|
+
// It was hand-written, and it had drifted in both directions at once. It carried
|
|
104
|
+
// SEVEN entries where five connections exist — `organization:connection:sendgrid`
|
|
105
|
+
// and `:twilio` name vendors that have no manifest and never had one, so two
|
|
106
|
+
// plan features granted access to nothing. And it had been SHORT: Klaviyo shipped
|
|
107
|
+
// without an entry, no plan granted its key, and the gate denied every non-admin
|
|
108
|
+
// request — a latent 403 found by accident while adding Attentive.
|
|
109
|
+
//
|
|
110
|
+
// That is step 6 of the documented add-a-connection checklist gone: a new
|
|
111
|
+
// manifest brings its own feature key, its own copy, and its own plan grant.
|
|
112
|
+
//
|
|
113
|
+
// Keyed by SLUG and valued from the manifest's own `feature` and `title`, so the
|
|
114
|
+
// key a plan grants is byte-identical to the key the manifest declares — they
|
|
115
|
+
// used to be two strings that happened to match.
|
|
116
|
+
const connection = Object.freeze( Object.fromEntries(
|
|
117
|
+
Object.entries( connections )
|
|
118
|
+
.filter( ( [ , manifest ] ) => manifest.feature !== false )
|
|
119
|
+
.map( ( [ slug, manifest ] ) => [ slug, Object.freeze({
|
|
120
|
+
error : 'Plan does not include ' + manifest.title + ' connection',
|
|
121
|
+
feature : manifest.title + ' connection',
|
|
122
|
+
key : manifest.feature
|
|
123
|
+
}) ] )
|
|
124
|
+
) );
|
|
112
125
|
|
|
113
126
|
const integration = {
|
|
114
127
|
age : {
|
package/dist/features.d.ts
CHANGED
|
@@ -1,3 +1,34 @@
|
|
|
1
|
+
import { y as connections } from './index-B546oDNo.js';
|
|
2
|
+
import './usage.js';
|
|
3
|
+
import './encrypt.js';
|
|
4
|
+
import 'crypto';
|
|
5
|
+
import './token.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 './admin-C3HtEM6h.js';
|
|
13
|
+
import './shopify/constants.js';
|
|
14
|
+
import './billing-mNsKflmQ.js';
|
|
15
|
+
import './oauth-DveZMLHx.js';
|
|
16
|
+
import './partner-BOZltuh2.js';
|
|
17
|
+
import './storefront-DJFGLqPl.js';
|
|
18
|
+
import './email.js';
|
|
19
|
+
import './oauth/index.js';
|
|
20
|
+
import './sanitize.js';
|
|
21
|
+
import 'disposable-email-domains/index.js';
|
|
22
|
+
import './slugify.js';
|
|
23
|
+
import 'slugify';
|
|
24
|
+
import './safe-http.js';
|
|
25
|
+
import 'dns';
|
|
26
|
+
import 'node:http';
|
|
27
|
+
import 'node:https';
|
|
28
|
+
import './axios.js';
|
|
29
|
+
import 'axios';
|
|
30
|
+
import 'net';
|
|
31
|
+
|
|
1
32
|
const page = {
|
|
2
33
|
qrcode : {
|
|
3
34
|
key : 'page:qrcode',
|
|
@@ -67,48 +98,30 @@ const field = {
|
|
|
67
98
|
}
|
|
68
99
|
};
|
|
69
100
|
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
feature : 'SendGrid connection'
|
|
95
|
-
},
|
|
96
|
-
shopify : {
|
|
97
|
-
key : 'organization:connection:shopify',
|
|
98
|
-
error : 'Plan does not include Shopify connection',
|
|
99
|
-
feature : 'Shopify connection',
|
|
100
|
-
},
|
|
101
|
-
twilio : {
|
|
102
|
-
key : 'organization:connection:twilio',
|
|
103
|
-
error : 'Plan does not include Twilio connection',
|
|
104
|
-
feature : 'Twilio connection'
|
|
105
|
-
},
|
|
106
|
-
webhook : {
|
|
107
|
-
key : 'organization:connection:webhook',
|
|
108
|
-
error : 'Plan does not include Webhook connection',
|
|
109
|
-
feature : 'Webhook connection'
|
|
110
|
-
}
|
|
111
|
-
};
|
|
101
|
+
// DERIVED FROM THE REGISTRY, one entry per public connection.
|
|
102
|
+
//
|
|
103
|
+
// It was hand-written, and it had drifted in both directions at once. It carried
|
|
104
|
+
// SEVEN entries where five connections exist — `organization:connection:sendgrid`
|
|
105
|
+
// and `:twilio` name vendors that have no manifest and never had one, so two
|
|
106
|
+
// plan features granted access to nothing. And it had been SHORT: Klaviyo shipped
|
|
107
|
+
// without an entry, no plan granted its key, and the gate denied every non-admin
|
|
108
|
+
// request — a latent 403 found by accident while adding Attentive.
|
|
109
|
+
//
|
|
110
|
+
// That is step 6 of the documented add-a-connection checklist gone: a new
|
|
111
|
+
// manifest brings its own feature key, its own copy, and its own plan grant.
|
|
112
|
+
//
|
|
113
|
+
// Keyed by SLUG and valued from the manifest's own `feature` and `title`, so the
|
|
114
|
+
// key a plan grants is byte-identical to the key the manifest declares — they
|
|
115
|
+
// used to be two strings that happened to match.
|
|
116
|
+
const connection = Object.freeze( Object.fromEntries(
|
|
117
|
+
Object.entries( connections )
|
|
118
|
+
.filter( ( [ , manifest ] ) => manifest.feature !== false )
|
|
119
|
+
.map( ( [ slug, manifest ] ) => [ slug, Object.freeze({
|
|
120
|
+
error : 'Plan does not include ' + manifest.title + ' connection',
|
|
121
|
+
feature : manifest.title + ' connection',
|
|
122
|
+
key : manifest.feature
|
|
123
|
+
}) ] )
|
|
124
|
+
) );
|
|
112
125
|
|
|
113
126
|
const integration = {
|
|
114
127
|
age : {
|