@feelflow/ffid-sdk 5.8.0 → 5.10.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/dist/{FFIDCookieLink-CE01gYc4.d.cts → FFIDCookieLink-D1WwE_ZO.d.cts} +5 -0
- package/dist/{FFIDCookieLink-CE01gYc4.d.ts → FFIDCookieLink-D1WwE_ZO.d.ts} +5 -0
- package/dist/{chunk-MRHDPB7H.cjs → chunk-IZSL6DI7.cjs} +17 -4
- package/dist/{chunk-KJ7FUNA6.js → chunk-M4N2PUX6.js} +64 -32
- package/dist/{chunk-Z6COUAR6.js → chunk-OJ3OJTIE.js} +17 -4
- package/dist/{chunk-Q5SZVLNB.cjs → chunk-R5WSZMUL.cjs} +64 -32
- package/dist/components/index.cjs +8 -8
- 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/consent/index.cjs +64 -64
- package/dist/consent/index.d.cts +2 -2
- package/dist/consent/index.d.ts +2 -2
- package/dist/consent/index.js +1 -1
- package/dist/{ffid-client-BhopNmnq.d.cts → ffid-client-DRjzfAaS.d.cts} +16 -3
- package/dist/{ffid-client-DoGYvIll.d.ts → ffid-client-gboJROw0.d.ts} +16 -3
- package/dist/{index-DeegKrLW.d.cts → index-DSvX4q8E.d.cts} +18 -3
- package/dist/{index-DeegKrLW.d.ts → index-DSvX4q8E.d.ts} +18 -3
- package/dist/index.cjs +57 -57
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +3 -3
- package/dist/server/index.cjs +17 -4
- package/dist/server/index.d.cts +2 -2
- package/dist/server/index.d.ts +2 -2
- package/dist/server/index.js +17 -4
- package/dist/server/test/index.d.cts +1 -1
- package/dist/server/test/index.d.ts +1 -1
- package/package.json +1 -1
package/dist/consent/index.cjs
CHANGED
|
@@ -1,258 +1,258 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkR5WSZMUL_cjs = require('../chunk-R5WSZMUL.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
Object.defineProperty(exports, "ALL_DENIED_EXCEPT_NECESSARY", {
|
|
8
8
|
enumerable: true,
|
|
9
|
-
get: function () { return
|
|
9
|
+
get: function () { return chunkR5WSZMUL_cjs.ALL_DENIED_EXCEPT_NECESSARY; }
|
|
10
10
|
});
|
|
11
11
|
Object.defineProperty(exports, "CONSENT_COOKIE_MAX_AGE_SEC", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunkR5WSZMUL_cjs.CONSENT_COOKIE_MAX_AGE_SEC; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "CONSENT_COOKIE_NAME", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunkR5WSZMUL_cjs.CONSENT_COOKIE_NAME; }
|
|
18
18
|
});
|
|
19
19
|
Object.defineProperty(exports, "CONSENT_DISMISSAL_TIMESTAMP_KEY", {
|
|
20
20
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunkR5WSZMUL_cjs.CONSENT_DISMISSAL_TIMESTAMP_KEY; }
|
|
22
22
|
});
|
|
23
23
|
Object.defineProperty(exports, "CONSENT_SESSION_STORAGE_KEY", {
|
|
24
24
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunkR5WSZMUL_cjs.CONSENT_SESSION_STORAGE_KEY; }
|
|
26
26
|
});
|
|
27
27
|
Object.defineProperty(exports, "COOKIE_VERSION", {
|
|
28
28
|
enumerable: true,
|
|
29
|
-
get: function () { return
|
|
29
|
+
get: function () { return chunkR5WSZMUL_cjs.COOKIE_VERSION; }
|
|
30
30
|
});
|
|
31
31
|
Object.defineProperty(exports, "DEFAULT_CONSENT_ERROR_MESSAGES", {
|
|
32
32
|
enumerable: true,
|
|
33
|
-
get: function () { return
|
|
33
|
+
get: function () { return chunkR5WSZMUL_cjs.DEFAULT_CONSENT_ERROR_MESSAGES; }
|
|
34
34
|
});
|
|
35
35
|
Object.defineProperty(exports, "DEFAULT_MERGE_WARNING_MESSAGES", {
|
|
36
36
|
enumerable: true,
|
|
37
|
-
get: function () { return
|
|
37
|
+
get: function () { return chunkR5WSZMUL_cjs.DEFAULT_MERGE_WARNING_MESSAGES; }
|
|
38
38
|
});
|
|
39
39
|
Object.defineProperty(exports, "DEVICE_ID_LOCAL_STORAGE_KEY", {
|
|
40
40
|
enumerable: true,
|
|
41
|
-
get: function () { return
|
|
41
|
+
get: function () { return chunkR5WSZMUL_cjs.DEVICE_ID_LOCAL_STORAGE_KEY; }
|
|
42
42
|
});
|
|
43
43
|
Object.defineProperty(exports, "DEVICE_ID_SESSION_STORAGE_KEY", {
|
|
44
44
|
enumerable: true,
|
|
45
|
-
get: function () { return
|
|
45
|
+
get: function () { return chunkR5WSZMUL_cjs.DEVICE_ID_SESSION_STORAGE_KEY; }
|
|
46
46
|
});
|
|
47
47
|
Object.defineProperty(exports, "DeviceIdSchema", {
|
|
48
48
|
enumerable: true,
|
|
49
|
-
get: function () { return
|
|
49
|
+
get: function () { return chunkR5WSZMUL_cjs.DeviceIdSchema; }
|
|
50
50
|
});
|
|
51
51
|
Object.defineProperty(exports, "FFIDAnalyticsProvider", {
|
|
52
52
|
enumerable: true,
|
|
53
|
-
get: function () { return
|
|
53
|
+
get: function () { return chunkR5WSZMUL_cjs.FFIDAnalyticsProvider; }
|
|
54
54
|
});
|
|
55
55
|
Object.defineProperty(exports, "FFIDConsentCategoriesSchema", {
|
|
56
56
|
enumerable: true,
|
|
57
|
-
get: function () { return
|
|
57
|
+
get: function () { return chunkR5WSZMUL_cjs.FFIDConsentCategoriesSchema; }
|
|
58
58
|
});
|
|
59
59
|
Object.defineProperty(exports, "FFIDConsentCategoryCodeSchema", {
|
|
60
60
|
enumerable: true,
|
|
61
|
-
get: function () { return
|
|
61
|
+
get: function () { return chunkR5WSZMUL_cjs.FFIDConsentCategoryCodeSchema; }
|
|
62
62
|
});
|
|
63
63
|
Object.defineProperty(exports, "FFIDConsentCategoryMetadataSchema", {
|
|
64
64
|
enumerable: true,
|
|
65
|
-
get: function () { return
|
|
65
|
+
get: function () { return chunkR5WSZMUL_cjs.FFIDConsentCategoryMetadataSchema; }
|
|
66
66
|
});
|
|
67
67
|
Object.defineProperty(exports, "FFIDConsentContext", {
|
|
68
68
|
enumerable: true,
|
|
69
|
-
get: function () { return
|
|
69
|
+
get: function () { return chunkR5WSZMUL_cjs.FFIDConsentContext; }
|
|
70
70
|
});
|
|
71
71
|
Object.defineProperty(exports, "FFIDConsentError", {
|
|
72
72
|
enumerable: true,
|
|
73
|
-
get: function () { return
|
|
73
|
+
get: function () { return chunkR5WSZMUL_cjs.FFIDConsentError; }
|
|
74
74
|
});
|
|
75
75
|
Object.defineProperty(exports, "FFIDConsentMergeStrategySchema", {
|
|
76
76
|
enumerable: true,
|
|
77
|
-
get: function () { return
|
|
77
|
+
get: function () { return chunkR5WSZMUL_cjs.FFIDConsentMergeStrategySchema; }
|
|
78
78
|
});
|
|
79
79
|
Object.defineProperty(exports, "FFIDConsentMergeWarningSchema", {
|
|
80
80
|
enumerable: true,
|
|
81
|
-
get: function () { return
|
|
81
|
+
get: function () { return chunkR5WSZMUL_cjs.FFIDConsentMergeWarningSchema; }
|
|
82
82
|
});
|
|
83
83
|
Object.defineProperty(exports, "FFIDConsentSourceSchema", {
|
|
84
84
|
enumerable: true,
|
|
85
|
-
get: function () { return
|
|
85
|
+
get: function () { return chunkR5WSZMUL_cjs.FFIDConsentSourceSchema; }
|
|
86
86
|
});
|
|
87
87
|
Object.defineProperty(exports, "FFIDConsentStateSchema", {
|
|
88
88
|
enumerable: true,
|
|
89
|
-
get: function () { return
|
|
89
|
+
get: function () { return chunkR5WSZMUL_cjs.FFIDConsentStateSchema; }
|
|
90
90
|
});
|
|
91
91
|
Object.defineProperty(exports, "FFIDConsentUpdateSchema", {
|
|
92
92
|
enumerable: true,
|
|
93
|
-
get: function () { return
|
|
93
|
+
get: function () { return chunkR5WSZMUL_cjs.FFIDConsentUpdateSchema; }
|
|
94
94
|
});
|
|
95
95
|
Object.defineProperty(exports, "FFIDCookieBanner", {
|
|
96
96
|
enumerable: true,
|
|
97
|
-
get: function () { return
|
|
97
|
+
get: function () { return chunkR5WSZMUL_cjs.FFIDCookieBanner; }
|
|
98
98
|
});
|
|
99
99
|
Object.defineProperty(exports, "FFIDCookieLink", {
|
|
100
100
|
enumerable: true,
|
|
101
|
-
get: function () { return
|
|
101
|
+
get: function () { return chunkR5WSZMUL_cjs.FFIDCookieLink; }
|
|
102
102
|
});
|
|
103
103
|
Object.defineProperty(exports, "FFIDCookiePolicySchema", {
|
|
104
104
|
enumerable: true,
|
|
105
|
-
get: function () { return
|
|
105
|
+
get: function () { return chunkR5WSZMUL_cjs.FFIDCookiePolicySchema; }
|
|
106
106
|
});
|
|
107
107
|
Object.defineProperty(exports, "FFIDCookieSettings", {
|
|
108
108
|
enumerable: true,
|
|
109
|
-
get: function () { return
|
|
109
|
+
get: function () { return chunkR5WSZMUL_cjs.FFIDCookieSettings; }
|
|
110
110
|
});
|
|
111
111
|
Object.defineProperty(exports, "FFIDInternalConsentSourceSchema", {
|
|
112
112
|
enumerable: true,
|
|
113
|
-
get: function () { return
|
|
113
|
+
get: function () { return chunkR5WSZMUL_cjs.FFIDInternalConsentSourceSchema; }
|
|
114
114
|
});
|
|
115
115
|
Object.defineProperty(exports, "FFIDPublicConsentSourceSchema", {
|
|
116
116
|
enumerable: true,
|
|
117
|
-
get: function () { return
|
|
117
|
+
get: function () { return chunkR5WSZMUL_cjs.FFIDPublicConsentSourceSchema; }
|
|
118
118
|
});
|
|
119
119
|
Object.defineProperty(exports, "FFID_CONSENT_ERROR_CODES", {
|
|
120
120
|
enumerable: true,
|
|
121
|
-
get: function () { return
|
|
121
|
+
get: function () { return chunkR5WSZMUL_cjs.FFID_CONSENT_ERROR_CODES; }
|
|
122
122
|
});
|
|
123
123
|
Object.defineProperty(exports, "FFID_CONSENT_NOT_DECIDED_STATE", {
|
|
124
124
|
enumerable: true,
|
|
125
|
-
get: function () { return
|
|
125
|
+
get: function () { return chunkR5WSZMUL_cjs.FFID_CONSENT_NOT_DECIDED_STATE; }
|
|
126
126
|
});
|
|
127
127
|
Object.defineProperty(exports, "GetCategoriesWireSchema", {
|
|
128
128
|
enumerable: true,
|
|
129
|
-
get: function () { return
|
|
129
|
+
get: function () { return chunkR5WSZMUL_cjs.GetCategoriesWireSchema; }
|
|
130
130
|
});
|
|
131
131
|
Object.defineProperty(exports, "GetConsentMeWireSchema", {
|
|
132
132
|
enumerable: true,
|
|
133
|
-
get: function () { return
|
|
133
|
+
get: function () { return chunkR5WSZMUL_cjs.GetConsentMeWireSchema; }
|
|
134
134
|
});
|
|
135
135
|
Object.defineProperty(exports, "GetDocumentWireSchema", {
|
|
136
136
|
enumerable: true,
|
|
137
|
-
get: function () { return
|
|
137
|
+
get: function () { return chunkR5WSZMUL_cjs.GetDocumentWireSchema; }
|
|
138
138
|
});
|
|
139
139
|
Object.defineProperty(exports, "PostConsentRequestSchema", {
|
|
140
140
|
enumerable: true,
|
|
141
|
-
get: function () { return
|
|
141
|
+
get: function () { return chunkR5WSZMUL_cjs.PostConsentRequestSchema; }
|
|
142
142
|
});
|
|
143
143
|
Object.defineProperty(exports, "PostConsentWireSchema", {
|
|
144
144
|
enumerable: true,
|
|
145
|
-
get: function () { return
|
|
145
|
+
get: function () { return chunkR5WSZMUL_cjs.PostConsentWireSchema; }
|
|
146
146
|
});
|
|
147
147
|
Object.defineProperty(exports, "PostSyncRequestSchema", {
|
|
148
148
|
enumerable: true,
|
|
149
|
-
get: function () { return
|
|
149
|
+
get: function () { return chunkR5WSZMUL_cjs.PostSyncRequestSchema; }
|
|
150
150
|
});
|
|
151
151
|
Object.defineProperty(exports, "PostSyncWireSchema", {
|
|
152
152
|
enumerable: true,
|
|
153
|
-
get: function () { return
|
|
153
|
+
get: function () { return chunkR5WSZMUL_cjs.PostSyncWireSchema; }
|
|
154
154
|
});
|
|
155
155
|
Object.defineProperty(exports, "PostWithdrawWireSchema", {
|
|
156
156
|
enumerable: true,
|
|
157
|
-
get: function () { return
|
|
157
|
+
get: function () { return chunkR5WSZMUL_cjs.PostWithdrawWireSchema; }
|
|
158
158
|
});
|
|
159
159
|
Object.defineProperty(exports, "clearConsentDismissalTimestamp", {
|
|
160
160
|
enumerable: true,
|
|
161
|
-
get: function () { return
|
|
161
|
+
get: function () { return chunkR5WSZMUL_cjs.clearConsentDismissalTimestamp; }
|
|
162
162
|
});
|
|
163
163
|
Object.defineProperty(exports, "clearConsentSessionMirror", {
|
|
164
164
|
enumerable: true,
|
|
165
|
-
get: function () { return
|
|
165
|
+
get: function () { return chunkR5WSZMUL_cjs.clearConsentSessionMirror; }
|
|
166
166
|
});
|
|
167
167
|
Object.defineProperty(exports, "clearDeviceId", {
|
|
168
168
|
enumerable: true,
|
|
169
|
-
get: function () { return
|
|
169
|
+
get: function () { return chunkR5WSZMUL_cjs.clearDeviceId; }
|
|
170
170
|
});
|
|
171
171
|
Object.defineProperty(exports, "createConsentClient", {
|
|
172
172
|
enumerable: true,
|
|
173
|
-
get: function () { return
|
|
173
|
+
get: function () { return chunkR5WSZMUL_cjs.createConsentClient; }
|
|
174
174
|
});
|
|
175
175
|
Object.defineProperty(exports, "createGtagBridge", {
|
|
176
176
|
enumerable: true,
|
|
177
|
-
get: function () { return
|
|
177
|
+
get: function () { return chunkR5WSZMUL_cjs.createGtagBridge; }
|
|
178
178
|
});
|
|
179
179
|
Object.defineProperty(exports, "decodeConsentCookie", {
|
|
180
180
|
enumerable: true,
|
|
181
|
-
get: function () { return
|
|
181
|
+
get: function () { return chunkR5WSZMUL_cjs.decodeConsentCookie; }
|
|
182
182
|
});
|
|
183
183
|
Object.defineProperty(exports, "deleteConsentCookie", {
|
|
184
184
|
enumerable: true,
|
|
185
|
-
get: function () { return
|
|
185
|
+
get: function () { return chunkR5WSZMUL_cjs.deleteConsentCookie; }
|
|
186
186
|
});
|
|
187
187
|
Object.defineProperty(exports, "encodeConsentCookie", {
|
|
188
188
|
enumerable: true,
|
|
189
|
-
get: function () { return
|
|
189
|
+
get: function () { return chunkR5WSZMUL_cjs.encodeConsentCookie; }
|
|
190
190
|
});
|
|
191
191
|
Object.defineProperty(exports, "generateDeviceId", {
|
|
192
192
|
enumerable: true,
|
|
193
|
-
get: function () { return
|
|
193
|
+
get: function () { return chunkR5WSZMUL_cjs.generateDeviceId; }
|
|
194
194
|
});
|
|
195
195
|
Object.defineProperty(exports, "getOrCreateDeviceId", {
|
|
196
196
|
enumerable: true,
|
|
197
|
-
get: function () { return
|
|
197
|
+
get: function () { return chunkR5WSZMUL_cjs.getOrCreateDeviceId; }
|
|
198
198
|
});
|
|
199
199
|
Object.defineProperty(exports, "isUuidV7", {
|
|
200
200
|
enumerable: true,
|
|
201
|
-
get: function () { return
|
|
201
|
+
get: function () { return chunkR5WSZMUL_cjs.isUuidV7; }
|
|
202
202
|
});
|
|
203
203
|
Object.defineProperty(exports, "isValidDeviceId", {
|
|
204
204
|
enumerable: true,
|
|
205
|
-
get: function () { return
|
|
205
|
+
get: function () { return chunkR5WSZMUL_cjs.isValidDeviceId; }
|
|
206
206
|
});
|
|
207
207
|
Object.defineProperty(exports, "mapCategoriesToGtagParams", {
|
|
208
208
|
enumerable: true,
|
|
209
|
-
get: function () { return
|
|
209
|
+
get: function () { return chunkR5WSZMUL_cjs.mapCategoriesToGtagParams; }
|
|
210
210
|
});
|
|
211
211
|
Object.defineProperty(exports, "mapConsentWireToState", {
|
|
212
212
|
enumerable: true,
|
|
213
|
-
get: function () { return
|
|
213
|
+
get: function () { return chunkR5WSZMUL_cjs.mapConsentWireToState; }
|
|
214
214
|
});
|
|
215
215
|
Object.defineProperty(exports, "mapMeWireToState", {
|
|
216
216
|
enumerable: true,
|
|
217
|
-
get: function () { return
|
|
217
|
+
get: function () { return chunkR5WSZMUL_cjs.mapMeWireToState; }
|
|
218
218
|
});
|
|
219
219
|
Object.defineProperty(exports, "mapSyncWireToResult", {
|
|
220
220
|
enumerable: true,
|
|
221
|
-
get: function () { return
|
|
221
|
+
get: function () { return chunkR5WSZMUL_cjs.mapSyncWireToResult; }
|
|
222
222
|
});
|
|
223
223
|
Object.defineProperty(exports, "mapWithdrawWireToState", {
|
|
224
224
|
enumerable: true,
|
|
225
|
-
get: function () { return
|
|
225
|
+
get: function () { return chunkR5WSZMUL_cjs.mapWithdrawWireToState; }
|
|
226
226
|
});
|
|
227
227
|
Object.defineProperty(exports, "readConsentCookie", {
|
|
228
228
|
enumerable: true,
|
|
229
|
-
get: function () { return
|
|
229
|
+
get: function () { return chunkR5WSZMUL_cjs.readConsentCookie; }
|
|
230
230
|
});
|
|
231
231
|
Object.defineProperty(exports, "readConsentDismissalTimestamp", {
|
|
232
232
|
enumerable: true,
|
|
233
|
-
get: function () { return
|
|
233
|
+
get: function () { return chunkR5WSZMUL_cjs.readConsentDismissalTimestamp; }
|
|
234
234
|
});
|
|
235
235
|
Object.defineProperty(exports, "readConsentSessionMirror", {
|
|
236
236
|
enumerable: true,
|
|
237
|
-
get: function () { return
|
|
237
|
+
get: function () { return chunkR5WSZMUL_cjs.readConsentSessionMirror; }
|
|
238
238
|
});
|
|
239
239
|
Object.defineProperty(exports, "useFFIDConsent", {
|
|
240
240
|
enumerable: true,
|
|
241
|
-
get: function () { return
|
|
241
|
+
get: function () { return chunkR5WSZMUL_cjs.useFFIDConsent; }
|
|
242
242
|
});
|
|
243
243
|
Object.defineProperty(exports, "useFFIDConsentPreferences", {
|
|
244
244
|
enumerable: true,
|
|
245
|
-
get: function () { return
|
|
245
|
+
get: function () { return chunkR5WSZMUL_cjs.useFFIDConsentPreferences; }
|
|
246
246
|
});
|
|
247
247
|
Object.defineProperty(exports, "writeConsentCookie", {
|
|
248
248
|
enumerable: true,
|
|
249
|
-
get: function () { return
|
|
249
|
+
get: function () { return chunkR5WSZMUL_cjs.writeConsentCookie; }
|
|
250
250
|
});
|
|
251
251
|
Object.defineProperty(exports, "writeConsentDismissalTimestamp", {
|
|
252
252
|
enumerable: true,
|
|
253
|
-
get: function () { return
|
|
253
|
+
get: function () { return chunkR5WSZMUL_cjs.writeConsentDismissalTimestamp; }
|
|
254
254
|
});
|
|
255
255
|
Object.defineProperty(exports, "writeConsentSessionMirror", {
|
|
256
256
|
enumerable: true,
|
|
257
|
-
get: function () { return
|
|
257
|
+
get: function () { return chunkR5WSZMUL_cjs.writeConsentSessionMirror; }
|
|
258
258
|
});
|
package/dist/consent/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { F as FFIDConsentResult, a as FFIDConsentState, b as FFIDConsentUpdate, c as FFIDConsentCategories, d as FFIDConsentSyncResult, e as FFIDConsentCategoryMetadata, f as FFIDCookiePolicy, P as PostConsentWire, G as GetConsentMeWire, g as PostSyncWire, h as PostWithdrawWire } from '../FFIDCookieLink-
|
|
2
|
-
export { A as ALL_DENIED_EXCEPT_NECESSARY, C as CONSENT_COOKIE_MAX_AGE_SEC, i as CONSENT_COOKIE_NAME, j as CONSENT_DISMISSAL_TIMESTAMP_KEY, k as CONSENT_SESSION_STORAGE_KEY, l as COOKIE_VERSION, D as DEFAULT_CONSENT_ERROR_MESSAGES, m as DEFAULT_MERGE_WARNING_MESSAGES, n as DeviceIdSchema, o as FFIDAnalyticsProvider, p as FFIDAnalyticsProviderProps, q as FFIDConsentCategoriesSchema, r as FFIDConsentCategoryCode, s as FFIDConsentCategoryCodeSchema, t as FFIDConsentCategoryMetadataSchema, u as FFIDConsentContext, v as FFIDConsentContextValue, w as FFIDConsentError, x as FFIDConsentErrorCode, y as FFIDConsentMergeStrategy, z as FFIDConsentMergeStrategySchema, B as FFIDConsentMergeWarning, E as FFIDConsentMergeWarningEvent, H as FFIDConsentMergeWarningSchema, I as FFIDConsentSource, J as FFIDConsentSourceSchema, K as FFIDConsentStateSchema, L as FFIDConsentUpdateSchema, M as FFIDCookieBanner, N as FFIDCookieBannerClassNames, O as FFIDCookieBannerProps, Q as FFIDCookieLink, R as FFIDCookieLinkProps, S as FFIDCookiePolicySchema, T as FFIDCookieSettings, U as FFIDCookieSettingsClassNames, V as FFIDCookieSettingsProps, W as FFIDInternalConsentSource, X as FFIDInternalConsentSourceSchema, Y as FFIDPublicConsentSource, Z as FFIDPublicConsentSourceSchema, _ as FFID_CONSENT_ERROR_CODES, $ as FFID_CONSENT_NOT_DECIDED_STATE, a0 as GetCategoriesWire, a1 as GetCategoriesWireSchema, a2 as GetConsentMeWireSchema, a3 as GetDocumentWire, a4 as GetDocumentWireSchema, a5 as GtagBridge, a6 as GtagBridgeOptions, a7 as PostConsentRequest, a8 as PostConsentRequestSchema, a9 as PostConsentWireSchema, aa as PostSyncRequest, ab as PostSyncRequestSchema, ac as PostSyncWireSchema, ad as PostWithdrawWireSchema, ae as UseFFIDConsentPreferencesReturn, af as UseFFIDConsentReturn, ag as clearConsentDismissalTimestamp, ah as clearConsentSessionMirror, ai as createGtagBridge, aj as decodeConsentCookie, ak as deleteConsentCookie, al as encodeConsentCookie, am as mapCategoriesToGtagParams, an as readConsentCookie, ao as readConsentDismissalTimestamp, ap as readConsentSessionMirror, aq as useFFIDConsent, ar as useFFIDConsentPreferences, as as writeConsentCookie, at as writeConsentDismissalTimestamp, au as writeConsentSessionMirror } from '../FFIDCookieLink-
|
|
1
|
+
import { F as FFIDConsentResult, a as FFIDConsentState, b as FFIDConsentUpdate, c as FFIDConsentCategories, d as FFIDConsentSyncResult, e as FFIDConsentCategoryMetadata, f as FFIDCookiePolicy, P as PostConsentWire, G as GetConsentMeWire, g as PostSyncWire, h as PostWithdrawWire } from '../FFIDCookieLink-D1WwE_ZO.cjs';
|
|
2
|
+
export { A as ALL_DENIED_EXCEPT_NECESSARY, C as CONSENT_COOKIE_MAX_AGE_SEC, i as CONSENT_COOKIE_NAME, j as CONSENT_DISMISSAL_TIMESTAMP_KEY, k as CONSENT_SESSION_STORAGE_KEY, l as COOKIE_VERSION, D as DEFAULT_CONSENT_ERROR_MESSAGES, m as DEFAULT_MERGE_WARNING_MESSAGES, n as DeviceIdSchema, o as FFIDAnalyticsProvider, p as FFIDAnalyticsProviderProps, q as FFIDConsentCategoriesSchema, r as FFIDConsentCategoryCode, s as FFIDConsentCategoryCodeSchema, t as FFIDConsentCategoryMetadataSchema, u as FFIDConsentContext, v as FFIDConsentContextValue, w as FFIDConsentError, x as FFIDConsentErrorCode, y as FFIDConsentMergeStrategy, z as FFIDConsentMergeStrategySchema, B as FFIDConsentMergeWarning, E as FFIDConsentMergeWarningEvent, H as FFIDConsentMergeWarningSchema, I as FFIDConsentSource, J as FFIDConsentSourceSchema, K as FFIDConsentStateSchema, L as FFIDConsentUpdateSchema, M as FFIDCookieBanner, N as FFIDCookieBannerClassNames, O as FFIDCookieBannerProps, Q as FFIDCookieLink, R as FFIDCookieLinkProps, S as FFIDCookiePolicySchema, T as FFIDCookieSettings, U as FFIDCookieSettingsClassNames, V as FFIDCookieSettingsProps, W as FFIDInternalConsentSource, X as FFIDInternalConsentSourceSchema, Y as FFIDPublicConsentSource, Z as FFIDPublicConsentSourceSchema, _ as FFID_CONSENT_ERROR_CODES, $ as FFID_CONSENT_NOT_DECIDED_STATE, a0 as GetCategoriesWire, a1 as GetCategoriesWireSchema, a2 as GetConsentMeWireSchema, a3 as GetDocumentWire, a4 as GetDocumentWireSchema, a5 as GtagBridge, a6 as GtagBridgeOptions, a7 as PostConsentRequest, a8 as PostConsentRequestSchema, a9 as PostConsentWireSchema, aa as PostSyncRequest, ab as PostSyncRequestSchema, ac as PostSyncWireSchema, ad as PostWithdrawWireSchema, ae as UseFFIDConsentPreferencesReturn, af as UseFFIDConsentReturn, ag as clearConsentDismissalTimestamp, ah as clearConsentSessionMirror, ai as createGtagBridge, aj as decodeConsentCookie, ak as deleteConsentCookie, al as encodeConsentCookie, am as mapCategoriesToGtagParams, an as readConsentCookie, ao as readConsentDismissalTimestamp, ap as readConsentSessionMirror, aq as useFFIDConsent, ar as useFFIDConsentPreferences, as as writeConsentCookie, at as writeConsentDismissalTimestamp, au as writeConsentSessionMirror } from '../FFIDCookieLink-D1WwE_ZO.cjs';
|
|
3
3
|
import 'react';
|
|
4
4
|
import 'zod';
|
|
5
5
|
|
package/dist/consent/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { F as FFIDConsentResult, a as FFIDConsentState, b as FFIDConsentUpdate, c as FFIDConsentCategories, d as FFIDConsentSyncResult, e as FFIDConsentCategoryMetadata, f as FFIDCookiePolicy, P as PostConsentWire, G as GetConsentMeWire, g as PostSyncWire, h as PostWithdrawWire } from '../FFIDCookieLink-
|
|
2
|
-
export { A as ALL_DENIED_EXCEPT_NECESSARY, C as CONSENT_COOKIE_MAX_AGE_SEC, i as CONSENT_COOKIE_NAME, j as CONSENT_DISMISSAL_TIMESTAMP_KEY, k as CONSENT_SESSION_STORAGE_KEY, l as COOKIE_VERSION, D as DEFAULT_CONSENT_ERROR_MESSAGES, m as DEFAULT_MERGE_WARNING_MESSAGES, n as DeviceIdSchema, o as FFIDAnalyticsProvider, p as FFIDAnalyticsProviderProps, q as FFIDConsentCategoriesSchema, r as FFIDConsentCategoryCode, s as FFIDConsentCategoryCodeSchema, t as FFIDConsentCategoryMetadataSchema, u as FFIDConsentContext, v as FFIDConsentContextValue, w as FFIDConsentError, x as FFIDConsentErrorCode, y as FFIDConsentMergeStrategy, z as FFIDConsentMergeStrategySchema, B as FFIDConsentMergeWarning, E as FFIDConsentMergeWarningEvent, H as FFIDConsentMergeWarningSchema, I as FFIDConsentSource, J as FFIDConsentSourceSchema, K as FFIDConsentStateSchema, L as FFIDConsentUpdateSchema, M as FFIDCookieBanner, N as FFIDCookieBannerClassNames, O as FFIDCookieBannerProps, Q as FFIDCookieLink, R as FFIDCookieLinkProps, S as FFIDCookiePolicySchema, T as FFIDCookieSettings, U as FFIDCookieSettingsClassNames, V as FFIDCookieSettingsProps, W as FFIDInternalConsentSource, X as FFIDInternalConsentSourceSchema, Y as FFIDPublicConsentSource, Z as FFIDPublicConsentSourceSchema, _ as FFID_CONSENT_ERROR_CODES, $ as FFID_CONSENT_NOT_DECIDED_STATE, a0 as GetCategoriesWire, a1 as GetCategoriesWireSchema, a2 as GetConsentMeWireSchema, a3 as GetDocumentWire, a4 as GetDocumentWireSchema, a5 as GtagBridge, a6 as GtagBridgeOptions, a7 as PostConsentRequest, a8 as PostConsentRequestSchema, a9 as PostConsentWireSchema, aa as PostSyncRequest, ab as PostSyncRequestSchema, ac as PostSyncWireSchema, ad as PostWithdrawWireSchema, ae as UseFFIDConsentPreferencesReturn, af as UseFFIDConsentReturn, ag as clearConsentDismissalTimestamp, ah as clearConsentSessionMirror, ai as createGtagBridge, aj as decodeConsentCookie, ak as deleteConsentCookie, al as encodeConsentCookie, am as mapCategoriesToGtagParams, an as readConsentCookie, ao as readConsentDismissalTimestamp, ap as readConsentSessionMirror, aq as useFFIDConsent, ar as useFFIDConsentPreferences, as as writeConsentCookie, at as writeConsentDismissalTimestamp, au as writeConsentSessionMirror } from '../FFIDCookieLink-
|
|
1
|
+
import { F as FFIDConsentResult, a as FFIDConsentState, b as FFIDConsentUpdate, c as FFIDConsentCategories, d as FFIDConsentSyncResult, e as FFIDConsentCategoryMetadata, f as FFIDCookiePolicy, P as PostConsentWire, G as GetConsentMeWire, g as PostSyncWire, h as PostWithdrawWire } from '../FFIDCookieLink-D1WwE_ZO.js';
|
|
2
|
+
export { A as ALL_DENIED_EXCEPT_NECESSARY, C as CONSENT_COOKIE_MAX_AGE_SEC, i as CONSENT_COOKIE_NAME, j as CONSENT_DISMISSAL_TIMESTAMP_KEY, k as CONSENT_SESSION_STORAGE_KEY, l as COOKIE_VERSION, D as DEFAULT_CONSENT_ERROR_MESSAGES, m as DEFAULT_MERGE_WARNING_MESSAGES, n as DeviceIdSchema, o as FFIDAnalyticsProvider, p as FFIDAnalyticsProviderProps, q as FFIDConsentCategoriesSchema, r as FFIDConsentCategoryCode, s as FFIDConsentCategoryCodeSchema, t as FFIDConsentCategoryMetadataSchema, u as FFIDConsentContext, v as FFIDConsentContextValue, w as FFIDConsentError, x as FFIDConsentErrorCode, y as FFIDConsentMergeStrategy, z as FFIDConsentMergeStrategySchema, B as FFIDConsentMergeWarning, E as FFIDConsentMergeWarningEvent, H as FFIDConsentMergeWarningSchema, I as FFIDConsentSource, J as FFIDConsentSourceSchema, K as FFIDConsentStateSchema, L as FFIDConsentUpdateSchema, M as FFIDCookieBanner, N as FFIDCookieBannerClassNames, O as FFIDCookieBannerProps, Q as FFIDCookieLink, R as FFIDCookieLinkProps, S as FFIDCookiePolicySchema, T as FFIDCookieSettings, U as FFIDCookieSettingsClassNames, V as FFIDCookieSettingsProps, W as FFIDInternalConsentSource, X as FFIDInternalConsentSourceSchema, Y as FFIDPublicConsentSource, Z as FFIDPublicConsentSourceSchema, _ as FFID_CONSENT_ERROR_CODES, $ as FFID_CONSENT_NOT_DECIDED_STATE, a0 as GetCategoriesWire, a1 as GetCategoriesWireSchema, a2 as GetConsentMeWireSchema, a3 as GetDocumentWire, a4 as GetDocumentWireSchema, a5 as GtagBridge, a6 as GtagBridgeOptions, a7 as PostConsentRequest, a8 as PostConsentRequestSchema, a9 as PostConsentWireSchema, aa as PostSyncRequest, ab as PostSyncRequestSchema, ac as PostSyncWireSchema, ad as PostWithdrawWireSchema, ae as UseFFIDConsentPreferencesReturn, af as UseFFIDConsentReturn, ag as clearConsentDismissalTimestamp, ah as clearConsentSessionMirror, ai as createGtagBridge, aj as decodeConsentCookie, ak as deleteConsentCookie, al as encodeConsentCookie, am as mapCategoriesToGtagParams, an as readConsentCookie, ao as readConsentDismissalTimestamp, ap as readConsentSessionMirror, aq as useFFIDConsent, ar as useFFIDConsentPreferences, as as writeConsentCookie, at as writeConsentDismissalTimestamp, au as writeConsentSessionMirror } from '../FFIDCookieLink-D1WwE_ZO.js';
|
|
3
3
|
import 'react';
|
|
4
4
|
import 'zod';
|
|
5
5
|
|
package/dist/consent/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { ALL_DENIED_EXCEPT_NECESSARY, CONSENT_COOKIE_MAX_AGE_SEC, CONSENT_COOKIE_NAME, CONSENT_DISMISSAL_TIMESTAMP_KEY, CONSENT_SESSION_STORAGE_KEY, COOKIE_VERSION, DEFAULT_CONSENT_ERROR_MESSAGES, DEFAULT_MERGE_WARNING_MESSAGES, DEVICE_ID_LOCAL_STORAGE_KEY, DEVICE_ID_SESSION_STORAGE_KEY, DeviceIdSchema, FFIDAnalyticsProvider, FFIDConsentCategoriesSchema, FFIDConsentCategoryCodeSchema, FFIDConsentCategoryMetadataSchema, FFIDConsentContext, FFIDConsentError, FFIDConsentMergeStrategySchema, FFIDConsentMergeWarningSchema, FFIDConsentSourceSchema, FFIDConsentStateSchema, FFIDConsentUpdateSchema, FFIDCookieBanner, FFIDCookieLink, FFIDCookiePolicySchema, FFIDCookieSettings, FFIDInternalConsentSourceSchema, FFIDPublicConsentSourceSchema, FFID_CONSENT_ERROR_CODES, FFID_CONSENT_NOT_DECIDED_STATE, GetCategoriesWireSchema, GetConsentMeWireSchema, GetDocumentWireSchema, PostConsentRequestSchema, PostConsentWireSchema, PostSyncRequestSchema, PostSyncWireSchema, PostWithdrawWireSchema, clearConsentDismissalTimestamp, clearConsentSessionMirror, clearDeviceId, createConsentClient, createGtagBridge, decodeConsentCookie, deleteConsentCookie, encodeConsentCookie, generateDeviceId, getOrCreateDeviceId, isUuidV7, isValidDeviceId, mapCategoriesToGtagParams, mapConsentWireToState, mapMeWireToState, mapSyncWireToResult, mapWithdrawWireToState, readConsentCookie, readConsentDismissalTimestamp, readConsentSessionMirror, useFFIDConsent, useFFIDConsentPreferences, writeConsentCookie, writeConsentDismissalTimestamp, writeConsentSessionMirror } from '../chunk-
|
|
1
|
+
export { ALL_DENIED_EXCEPT_NECESSARY, CONSENT_COOKIE_MAX_AGE_SEC, CONSENT_COOKIE_NAME, CONSENT_DISMISSAL_TIMESTAMP_KEY, CONSENT_SESSION_STORAGE_KEY, COOKIE_VERSION, DEFAULT_CONSENT_ERROR_MESSAGES, DEFAULT_MERGE_WARNING_MESSAGES, DEVICE_ID_LOCAL_STORAGE_KEY, DEVICE_ID_SESSION_STORAGE_KEY, DeviceIdSchema, FFIDAnalyticsProvider, FFIDConsentCategoriesSchema, FFIDConsentCategoryCodeSchema, FFIDConsentCategoryMetadataSchema, FFIDConsentContext, FFIDConsentError, FFIDConsentMergeStrategySchema, FFIDConsentMergeWarningSchema, FFIDConsentSourceSchema, FFIDConsentStateSchema, FFIDConsentUpdateSchema, FFIDCookieBanner, FFIDCookieLink, FFIDCookiePolicySchema, FFIDCookieSettings, FFIDInternalConsentSourceSchema, FFIDPublicConsentSourceSchema, FFID_CONSENT_ERROR_CODES, FFID_CONSENT_NOT_DECIDED_STATE, GetCategoriesWireSchema, GetConsentMeWireSchema, GetDocumentWireSchema, PostConsentRequestSchema, PostConsentWireSchema, PostSyncRequestSchema, PostSyncWireSchema, PostWithdrawWireSchema, clearConsentDismissalTimestamp, clearConsentSessionMirror, clearDeviceId, createConsentClient, createGtagBridge, decodeConsentCookie, deleteConsentCookie, encodeConsentCookie, generateDeviceId, getOrCreateDeviceId, isUuidV7, isValidDeviceId, mapCategoriesToGtagParams, mapConsentWireToState, mapMeWireToState, mapSyncWireToResult, mapWithdrawWireToState, readConsentCookie, readConsentDismissalTimestamp, readConsentSessionMirror, useFFIDConsent, useFFIDConsentPreferences, writeConsentCookie, writeConsentDismissalTimestamp, writeConsentSessionMirror } from '../chunk-M4N2PUX6.js';
|
|
@@ -740,6 +740,8 @@ interface FFIDSubscription {
|
|
|
740
740
|
memberRole?: FFIDOAuthUserInfoMemberRole | undefined;
|
|
741
741
|
/** Organization ID used to resolve subscription access */
|
|
742
742
|
organizationId?: string | null | undefined;
|
|
743
|
+
/** Organization display name for UI rendering; not used for access resolution */
|
|
744
|
+
organizationName?: string | null | undefined;
|
|
743
745
|
}
|
|
744
746
|
/** OAuth userinfo subscription summary */
|
|
745
747
|
interface FFIDOAuthUserInfoSubscription {
|
|
@@ -757,6 +759,7 @@ interface FFIDOAuthUserInfoSubscription {
|
|
|
757
759
|
seatModel: FFIDSeatModel | null;
|
|
758
760
|
memberRole: FFIDOAuthUserInfoMemberRole | null;
|
|
759
761
|
organizationId: string | null;
|
|
762
|
+
organizationName?: string | null | undefined;
|
|
760
763
|
hasSeatAssignment: boolean | null;
|
|
761
764
|
/**
|
|
762
765
|
* Stripe `cancel_at_period_end` (#3464, SDK 5.8.0). `true` while the
|
|
@@ -780,9 +783,11 @@ interface FFIDOAuthUserInfoSubscription {
|
|
|
780
783
|
}
|
|
781
784
|
/**
|
|
782
785
|
* Unified user-identity shape returned by `getSession()` (→ `/oauth/userinfo`)
|
|
783
|
-
* and `verifyAccessToken()` (JWT or introspect path). `subscription
|
|
784
|
-
* `organizationId` are scope-gated on `/oauth/userinfo`
|
|
785
|
-
* `subscription:read`); JWT-verify additionally
|
|
786
|
+
* and `verifyAccessToken()` (JWT or introspect path). `subscription`,
|
|
787
|
+
* `organizationId`, and `organizationName` are scope-gated on `/oauth/userinfo`
|
|
788
|
+
* (FFID #3380, requires `subscription:read`); JWT-only verify additionally
|
|
789
|
+
* omits `subscription` and `organizationName` when `includeProfile` is false
|
|
790
|
+
* because the JWT has `org_id` but no `org_name` claim.
|
|
786
791
|
* See per-field JSDoc — misreading `undefined` is a security regression.
|
|
787
792
|
*/
|
|
788
793
|
interface FFIDOAuthUserInfo {
|
|
@@ -800,6 +805,14 @@ interface FFIDOAuthUserInfo {
|
|
|
800
805
|
* — NOT "no organization").
|
|
801
806
|
*/
|
|
802
807
|
organizationId?: string | null | undefined;
|
|
808
|
+
/**
|
|
809
|
+
* Organization display name, `null` if the resolved organization has no name,
|
|
810
|
+
* or `undefined` if the granted scope omits `subscription:read` on
|
|
811
|
+
* `/oauth/userinfo` (FFID #3514), or if the caller used JWT verification
|
|
812
|
+
* without `includeProfile`. JWT payloads carry `org_id` but no `org_name`
|
|
813
|
+
* claim.
|
|
814
|
+
*/
|
|
815
|
+
organizationName?: string | null | undefined;
|
|
803
816
|
/**
|
|
804
817
|
* Subscription summary for `(user, service, organization)`. Branch on
|
|
805
818
|
* `effectiveStatus` (5.3.0+) for access decisions.
|
|
@@ -740,6 +740,8 @@ interface FFIDSubscription {
|
|
|
740
740
|
memberRole?: FFIDOAuthUserInfoMemberRole | undefined;
|
|
741
741
|
/** Organization ID used to resolve subscription access */
|
|
742
742
|
organizationId?: string | null | undefined;
|
|
743
|
+
/** Organization display name for UI rendering; not used for access resolution */
|
|
744
|
+
organizationName?: string | null | undefined;
|
|
743
745
|
}
|
|
744
746
|
/** OAuth userinfo subscription summary */
|
|
745
747
|
interface FFIDOAuthUserInfoSubscription {
|
|
@@ -757,6 +759,7 @@ interface FFIDOAuthUserInfoSubscription {
|
|
|
757
759
|
seatModel: FFIDSeatModel | null;
|
|
758
760
|
memberRole: FFIDOAuthUserInfoMemberRole | null;
|
|
759
761
|
organizationId: string | null;
|
|
762
|
+
organizationName?: string | null | undefined;
|
|
760
763
|
hasSeatAssignment: boolean | null;
|
|
761
764
|
/**
|
|
762
765
|
* Stripe `cancel_at_period_end` (#3464, SDK 5.8.0). `true` while the
|
|
@@ -780,9 +783,11 @@ interface FFIDOAuthUserInfoSubscription {
|
|
|
780
783
|
}
|
|
781
784
|
/**
|
|
782
785
|
* Unified user-identity shape returned by `getSession()` (→ `/oauth/userinfo`)
|
|
783
|
-
* and `verifyAccessToken()` (JWT or introspect path). `subscription
|
|
784
|
-
* `organizationId` are scope-gated on `/oauth/userinfo`
|
|
785
|
-
* `subscription:read`); JWT-verify additionally
|
|
786
|
+
* and `verifyAccessToken()` (JWT or introspect path). `subscription`,
|
|
787
|
+
* `organizationId`, and `organizationName` are scope-gated on `/oauth/userinfo`
|
|
788
|
+
* (FFID #3380, requires `subscription:read`); JWT-only verify additionally
|
|
789
|
+
* omits `subscription` and `organizationName` when `includeProfile` is false
|
|
790
|
+
* because the JWT has `org_id` but no `org_name` claim.
|
|
786
791
|
* See per-field JSDoc — misreading `undefined` is a security regression.
|
|
787
792
|
*/
|
|
788
793
|
interface FFIDOAuthUserInfo {
|
|
@@ -800,6 +805,14 @@ interface FFIDOAuthUserInfo {
|
|
|
800
805
|
* — NOT "no organization").
|
|
801
806
|
*/
|
|
802
807
|
organizationId?: string | null | undefined;
|
|
808
|
+
/**
|
|
809
|
+
* Organization display name, `null` if the resolved organization has no name,
|
|
810
|
+
* or `undefined` if the granted scope omits `subscription:read` on
|
|
811
|
+
* `/oauth/userinfo` (FFID #3514), or if the caller used JWT verification
|
|
812
|
+
* without `includeProfile`. JWT payloads carry `org_id` but no `org_name`
|
|
813
|
+
* claim.
|
|
814
|
+
*/
|
|
815
|
+
organizationName?: string | null | undefined;
|
|
803
816
|
/**
|
|
804
817
|
* Subscription summary for `(user, service, organization)`. Branch on
|
|
805
818
|
* `effectiveStatus` (5.3.0+) for access decisions.
|
|
@@ -263,6 +263,8 @@ interface FFIDSubscription {
|
|
|
263
263
|
memberRole?: FFIDOAuthUserInfoMemberRole | undefined;
|
|
264
264
|
/** Organization ID used to resolve subscription access */
|
|
265
265
|
organizationId?: string | null | undefined;
|
|
266
|
+
/** Organization display name for UI rendering; not used for access resolution */
|
|
267
|
+
organizationName?: string | null | undefined;
|
|
266
268
|
}
|
|
267
269
|
/** OAuth userinfo subscription summary */
|
|
268
270
|
interface FFIDOAuthUserInfoSubscription {
|
|
@@ -280,6 +282,7 @@ interface FFIDOAuthUserInfoSubscription {
|
|
|
280
282
|
seatModel: FFIDSeatModel | null;
|
|
281
283
|
memberRole: FFIDOAuthUserInfoMemberRole | null;
|
|
282
284
|
organizationId: string | null;
|
|
285
|
+
organizationName?: string | null | undefined;
|
|
283
286
|
hasSeatAssignment: boolean | null;
|
|
284
287
|
/**
|
|
285
288
|
* Stripe `cancel_at_period_end` (#3464, SDK 5.8.0). `true` while the
|
|
@@ -303,9 +306,11 @@ interface FFIDOAuthUserInfoSubscription {
|
|
|
303
306
|
}
|
|
304
307
|
/**
|
|
305
308
|
* Unified user-identity shape returned by `getSession()` (→ `/oauth/userinfo`)
|
|
306
|
-
* and `verifyAccessToken()` (JWT or introspect path). `subscription
|
|
307
|
-
* `organizationId` are scope-gated on `/oauth/userinfo`
|
|
308
|
-
* `subscription:read`); JWT-verify additionally
|
|
309
|
+
* and `verifyAccessToken()` (JWT or introspect path). `subscription`,
|
|
310
|
+
* `organizationId`, and `organizationName` are scope-gated on `/oauth/userinfo`
|
|
311
|
+
* (FFID #3380, requires `subscription:read`); JWT-only verify additionally
|
|
312
|
+
* omits `subscription` and `organizationName` when `includeProfile` is false
|
|
313
|
+
* because the JWT has `org_id` but no `org_name` claim.
|
|
309
314
|
* See per-field JSDoc — misreading `undefined` is a security regression.
|
|
310
315
|
*/
|
|
311
316
|
interface FFIDOAuthUserInfo {
|
|
@@ -323,6 +328,14 @@ interface FFIDOAuthUserInfo {
|
|
|
323
328
|
* — NOT "no organization").
|
|
324
329
|
*/
|
|
325
330
|
organizationId?: string | null | undefined;
|
|
331
|
+
/**
|
|
332
|
+
* Organization display name, `null` if the resolved organization has no name,
|
|
333
|
+
* or `undefined` if the granted scope omits `subscription:read` on
|
|
334
|
+
* `/oauth/userinfo` (FFID #3514), or if the caller used JWT verification
|
|
335
|
+
* without `includeProfile`. JWT payloads carry `org_id` but no `org_name`
|
|
336
|
+
* claim.
|
|
337
|
+
*/
|
|
338
|
+
organizationName?: string | null | undefined;
|
|
326
339
|
/**
|
|
327
340
|
* Subscription summary for `(user, service, organization)`. Branch on
|
|
328
341
|
* `effectiveStatus` (5.3.0+) for access decisions.
|
|
@@ -851,6 +864,7 @@ interface FFIDTokenIntrospectionResponse {
|
|
|
851
864
|
token_type?: 'Bearer';
|
|
852
865
|
client_id?: string;
|
|
853
866
|
organization_id?: string | null;
|
|
867
|
+
organization_name?: string | null;
|
|
854
868
|
subscription?: {
|
|
855
869
|
subscription_id: string | null;
|
|
856
870
|
status: FFIDOAuthUserInfoSubscription['status'];
|
|
@@ -860,6 +874,7 @@ interface FFIDTokenIntrospectionResponse {
|
|
|
860
874
|
seat_model: FFIDOAuthUserInfoSubscription['seatModel'];
|
|
861
875
|
member_role: FFIDOAuthUserInfoSubscription['memberRole'];
|
|
862
876
|
organization_id: string | null;
|
|
877
|
+
organization_name?: string | null;
|
|
863
878
|
has_seat_assignment?: boolean;
|
|
864
879
|
};
|
|
865
880
|
}
|
|
@@ -263,6 +263,8 @@ interface FFIDSubscription {
|
|
|
263
263
|
memberRole?: FFIDOAuthUserInfoMemberRole | undefined;
|
|
264
264
|
/** Organization ID used to resolve subscription access */
|
|
265
265
|
organizationId?: string | null | undefined;
|
|
266
|
+
/** Organization display name for UI rendering; not used for access resolution */
|
|
267
|
+
organizationName?: string | null | undefined;
|
|
266
268
|
}
|
|
267
269
|
/** OAuth userinfo subscription summary */
|
|
268
270
|
interface FFIDOAuthUserInfoSubscription {
|
|
@@ -280,6 +282,7 @@ interface FFIDOAuthUserInfoSubscription {
|
|
|
280
282
|
seatModel: FFIDSeatModel | null;
|
|
281
283
|
memberRole: FFIDOAuthUserInfoMemberRole | null;
|
|
282
284
|
organizationId: string | null;
|
|
285
|
+
organizationName?: string | null | undefined;
|
|
283
286
|
hasSeatAssignment: boolean | null;
|
|
284
287
|
/**
|
|
285
288
|
* Stripe `cancel_at_period_end` (#3464, SDK 5.8.0). `true` while the
|
|
@@ -303,9 +306,11 @@ interface FFIDOAuthUserInfoSubscription {
|
|
|
303
306
|
}
|
|
304
307
|
/**
|
|
305
308
|
* Unified user-identity shape returned by `getSession()` (→ `/oauth/userinfo`)
|
|
306
|
-
* and `verifyAccessToken()` (JWT or introspect path). `subscription
|
|
307
|
-
* `organizationId` are scope-gated on `/oauth/userinfo`
|
|
308
|
-
* `subscription:read`); JWT-verify additionally
|
|
309
|
+
* and `verifyAccessToken()` (JWT or introspect path). `subscription`,
|
|
310
|
+
* `organizationId`, and `organizationName` are scope-gated on `/oauth/userinfo`
|
|
311
|
+
* (FFID #3380, requires `subscription:read`); JWT-only verify additionally
|
|
312
|
+
* omits `subscription` and `organizationName` when `includeProfile` is false
|
|
313
|
+
* because the JWT has `org_id` but no `org_name` claim.
|
|
309
314
|
* See per-field JSDoc — misreading `undefined` is a security regression.
|
|
310
315
|
*/
|
|
311
316
|
interface FFIDOAuthUserInfo {
|
|
@@ -323,6 +328,14 @@ interface FFIDOAuthUserInfo {
|
|
|
323
328
|
* — NOT "no organization").
|
|
324
329
|
*/
|
|
325
330
|
organizationId?: string | null | undefined;
|
|
331
|
+
/**
|
|
332
|
+
* Organization display name, `null` if the resolved organization has no name,
|
|
333
|
+
* or `undefined` if the granted scope omits `subscription:read` on
|
|
334
|
+
* `/oauth/userinfo` (FFID #3514), or if the caller used JWT verification
|
|
335
|
+
* without `includeProfile`. JWT payloads carry `org_id` but no `org_name`
|
|
336
|
+
* claim.
|
|
337
|
+
*/
|
|
338
|
+
organizationName?: string | null | undefined;
|
|
326
339
|
/**
|
|
327
340
|
* Subscription summary for `(user, service, organization)`. Branch on
|
|
328
341
|
* `effectiveStatus` (5.3.0+) for access decisions.
|
|
@@ -851,6 +864,7 @@ interface FFIDTokenIntrospectionResponse {
|
|
|
851
864
|
token_type?: 'Bearer';
|
|
852
865
|
client_id?: string;
|
|
853
866
|
organization_id?: string | null;
|
|
867
|
+
organization_name?: string | null;
|
|
854
868
|
subscription?: {
|
|
855
869
|
subscription_id: string | null;
|
|
856
870
|
status: FFIDOAuthUserInfoSubscription['status'];
|
|
@@ -860,6 +874,7 @@ interface FFIDTokenIntrospectionResponse {
|
|
|
860
874
|
seat_model: FFIDOAuthUserInfoSubscription['seatModel'];
|
|
861
875
|
member_role: FFIDOAuthUserInfoSubscription['memberRole'];
|
|
862
876
|
organization_id: string | null;
|
|
877
|
+
organization_name?: string | null;
|
|
863
878
|
has_seat_assignment?: boolean;
|
|
864
879
|
};
|
|
865
880
|
}
|