@codeam/shared 2.61.65 → 2.61.66
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/index.d.mts +13 -1
- package/dist/index.d.ts +13 -1
- package/dist/index.js +25 -7
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +25 -7
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1065,11 +1065,12 @@ var INTEGRATION_REGISTRY = {
|
|
|
1065
1065
|
name: "Figma",
|
|
1066
1066
|
icon: "figma",
|
|
1067
1067
|
category: "design",
|
|
1068
|
-
//
|
|
1069
|
-
//
|
|
1070
|
-
//
|
|
1071
|
-
//
|
|
1072
|
-
|
|
1068
|
+
// LIVE. OAuth is the PRIMARY flow (app pending Figma's review — until it
|
|
1069
|
+
// passes the authorize URL errors "OAuth app doesn't exist"), so a PAT
|
|
1070
|
+
// fallback (`apiKeyFallback`) ships alongside it and works TODAY: the user
|
|
1071
|
+
// pastes a Figma personal access token. Same OAuth-primary + PAT-secondary
|
|
1072
|
+
// shape as GitHub. Flip of the OAuth review is transparent (bead codeagent-m4ix).
|
|
1073
|
+
enabled: true,
|
|
1073
1074
|
auth: {
|
|
1074
1075
|
kind: "oauth_redirect",
|
|
1075
1076
|
// Granular READ-ONLY scopes (legacy `files:read` is deprecated for
|
|
@@ -1083,7 +1084,25 @@ var INTEGRATION_REGISTRY = {
|
|
|
1083
1084
|
"file_metadata:read",
|
|
1084
1085
|
"file_dev_resources:read",
|
|
1085
1086
|
"library_content:read"
|
|
1086
|
-
]
|
|
1087
|
+
],
|
|
1088
|
+
// SECONDARY: paste a Figma personal access token instead of OAuth. The
|
|
1089
|
+
// PAT uses the `X-Figma-Token` header, so the delivery env var differs
|
|
1090
|
+
// from OAuth (`FIGMA_API_KEY` vs `FIGMA_OAUTH_TOKEN`) — hence its own
|
|
1091
|
+
// envMapping, used when the credential was linked via PAT.
|
|
1092
|
+
apiKeyFallback: {
|
|
1093
|
+
fields: [
|
|
1094
|
+
{
|
|
1095
|
+
key: "accessToken",
|
|
1096
|
+
label: "Figma personal access token",
|
|
1097
|
+
placeholder: "figd_\u2026",
|
|
1098
|
+
secret: true,
|
|
1099
|
+
help: "Figma \u2192 Settings \u2192 Security \u2192 Personal access tokens (read-only scopes)."
|
|
1100
|
+
}
|
|
1101
|
+
],
|
|
1102
|
+
envMapping: {
|
|
1103
|
+
FIGMA_API_KEY: "accessToken"
|
|
1104
|
+
}
|
|
1105
|
+
}
|
|
1087
1106
|
},
|
|
1088
1107
|
delivery: {
|
|
1089
1108
|
mcp: {
|
|
@@ -1730,7 +1749,6 @@ var INTEGRATION_BRANDING = {
|
|
|
1730
1749
|
};
|
|
1731
1750
|
var UPCOMING_INTEGRATION_IDS = [
|
|
1732
1751
|
"gmail",
|
|
1733
|
-
"figma",
|
|
1734
1752
|
"asana",
|
|
1735
1753
|
"stripe",
|
|
1736
1754
|
"pendo",
|