@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 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
  オプションで環境変数を使用してデフォルト設定を上書きできます: