@feelflow/ffid-sdk 0.3.0 → 1.1.0
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/README.md +17 -0
- package/dist/{chunk-VXBUXOLF.js → chunk-K525KYQP.js} +608 -24
- package/dist/{chunk-A6YJDYIX.cjs → chunk-TL6U5TJT.cjs} +612 -23
- package/dist/components/index.cjs +7 -7
- package/dist/components/index.d.cts +1 -1
- package/dist/components/index.d.ts +1 -1
- package/dist/components/index.js +1 -1
- package/dist/{index-DBp3Ulyl.d.cts → index-CyYHo3-R.d.cts} +40 -1
- package/dist/{index-DBp3Ulyl.d.ts → index-CyYHo3-R.d.ts} +40 -1
- package/dist/index.cjs +36 -16
- package/dist/index.d.cts +81 -4
- package/dist/index.d.ts +81 -4
- package/dist/index.js +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -256,6 +256,23 @@ interface FFIDSubscription {
|
|
|
256
256
|
}
|
|
257
257
|
```
|
|
258
258
|
|
|
259
|
+
### OAuth userinfo の契約要約
|
|
260
|
+
|
|
261
|
+
token mode では SDK は `/api/v1/oauth/userinfo` を呼び出し、基本プロフィールに加えてサービス契約の要約を受け取ります。
|
|
262
|
+
この要約により、追加 API を呼ばずにプラン判定や UI 分岐を行えます。
|
|
263
|
+
|
|
264
|
+
```ts
|
|
265
|
+
interface FFIDOAuthUserInfoSubscription {
|
|
266
|
+
status: 'trialing' | 'active' | 'past_due' | 'canceled' | 'paused' | null
|
|
267
|
+
planCode: string | null
|
|
268
|
+
seatModel: 'organization' | 'individual' | null
|
|
269
|
+
memberRole: 'owner' | 'admin' | 'member' | 'viewer' | null
|
|
270
|
+
organizationId: string | null
|
|
271
|
+
}
|
|
272
|
+
```
|
|
273
|
+
|
|
274
|
+
`seatModel` はシートモデル識別用であり、organization と role は userinfo の解決済み組織文脈として扱います。
|
|
275
|
+
|
|
259
276
|
## 環境変数
|
|
260
277
|
|
|
261
278
|
オプションで環境変数を使用してデフォルト設定を上書きできます:
|