@oxy.so/services 12.13.0 → 13.0.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/lib/commonjs/ui/boot/runProviderColdBoot.js +188 -88
- package/lib/commonjs/ui/boot/runProviderColdBoot.js.map +1 -1
- package/lib/commonjs/ui/components/OxyConsentScreen.js +10 -7
- package/lib/commonjs/ui/components/OxyConsentScreen.js.map +1 -1
- package/lib/commonjs/ui/context/OxyContext.js +116 -3
- package/lib/commonjs/ui/context/OxyContext.js.map +1 -1
- package/lib/commonjs/ui/oauth/explicitOAuthConsent.js +10 -5
- package/lib/commonjs/ui/oauth/explicitOAuthConsent.js.map +1 -1
- package/lib/commonjs/ui/session/cachedBoot.js +95 -0
- package/lib/commonjs/ui/session/cachedBoot.js.map +1 -0
- package/lib/module/ui/boot/runProviderColdBoot.js +188 -88
- package/lib/module/ui/boot/runProviderColdBoot.js.map +1 -1
- package/lib/module/ui/components/OxyConsentScreen.js +10 -7
- package/lib/module/ui/components/OxyConsentScreen.js.map +1 -1
- package/lib/module/ui/context/OxyContext.js +117 -4
- package/lib/module/ui/context/OxyContext.js.map +1 -1
- package/lib/module/ui/oauth/explicitOAuthConsent.js +10 -5
- package/lib/module/ui/oauth/explicitOAuthConsent.js.map +1 -1
- package/lib/module/ui/session/cachedBoot.js +92 -0
- package/lib/module/ui/session/cachedBoot.js.map +1 -0
- package/lib/typescript/commonjs/ui/boot/runProviderColdBoot.d.ts +24 -0
- package/lib/typescript/commonjs/ui/boot/runProviderColdBoot.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/OxyConsentScreen.d.ts +3 -1
- package/lib/typescript/commonjs/ui/components/OxyConsentScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/context/OxyContext.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/context/oxyContextTypes.d.ts +2 -1
- package/lib/typescript/commonjs/ui/context/oxyContextTypes.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/mutations/useAccountMutations.d.ts +28 -50
- package/lib/typescript/commonjs/ui/hooks/mutations/useAccountMutations.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/queries/usePersonalPlans.d.ts +13 -13
- package/lib/typescript/commonjs/ui/hooks/queries/usePersonalPlans.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/queries/useSupervision.d.ts +108 -108
- package/lib/typescript/commonjs/ui/oauth/explicitOAuthConsent.d.ts +4 -6
- package/lib/typescript/commonjs/ui/oauth/explicitOAuthConsent.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/session/cachedBoot.d.ts +48 -0
- package/lib/typescript/commonjs/ui/session/cachedBoot.d.ts.map +1 -0
- package/lib/typescript/module/ui/boot/runProviderColdBoot.d.ts +24 -0
- package/lib/typescript/module/ui/boot/runProviderColdBoot.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/OxyConsentScreen.d.ts +3 -1
- package/lib/typescript/module/ui/components/OxyConsentScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/context/OxyContext.d.ts.map +1 -1
- package/lib/typescript/module/ui/context/oxyContextTypes.d.ts +2 -1
- package/lib/typescript/module/ui/context/oxyContextTypes.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/mutations/useAccountMutations.d.ts +28 -50
- package/lib/typescript/module/ui/hooks/mutations/useAccountMutations.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/queries/usePersonalPlans.d.ts +13 -13
- package/lib/typescript/module/ui/hooks/queries/usePersonalPlans.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/queries/useSupervision.d.ts +108 -108
- package/lib/typescript/module/ui/oauth/explicitOAuthConsent.d.ts +4 -6
- package/lib/typescript/module/ui/oauth/explicitOAuthConsent.d.ts.map +1 -1
- package/lib/typescript/module/ui/session/cachedBoot.d.ts +48 -0
- package/lib/typescript/module/ui/session/cachedBoot.d.ts.map +1 -0
- package/package.json +5 -5
- package/src/ui/boot/__tests__/cachedColdBoot.test.ts +187 -0
- package/src/ui/boot/runProviderColdBoot.ts +229 -95
- package/src/ui/components/OxyConsentScreen.tsx +40 -31
- package/src/ui/components/__tests__/OxyConsentScreen.test.tsx +13 -0
- package/src/ui/context/OxyContext.tsx +146 -3
- package/src/ui/context/oxyContextTypes.ts +2 -1
- package/src/ui/oauth/__tests__/explicitOAuthConsent.test.ts +17 -0
- package/src/ui/oauth/explicitOAuthConsent.ts +10 -5
- package/src/ui/session/__tests__/cachedBoot.test.ts +32 -0
- package/src/ui/session/cachedBoot.ts +139 -0
|
@@ -20,29 +20,29 @@ export declare const supervisionQueryKeys: {
|
|
|
20
20
|
export declare function useSupervision(): {
|
|
21
21
|
data: {
|
|
22
22
|
self: {
|
|
23
|
-
status: "active" | "orphaned" | "ended";
|
|
24
|
-
createdAt: string;
|
|
25
|
-
policyVersion: "2";
|
|
26
23
|
childAccountId: string;
|
|
27
24
|
guardianAccountId: string | null;
|
|
25
|
+
status: "active" | "orphaned" | "ended";
|
|
26
|
+
policyVersion: "2";
|
|
28
27
|
consentVersion: "1";
|
|
28
|
+
createdAt: string;
|
|
29
29
|
} | null;
|
|
30
30
|
children: {
|
|
31
|
-
status: "active" | "orphaned" | "ended";
|
|
32
|
-
createdAt: string;
|
|
33
|
-
policyVersion: "2";
|
|
34
31
|
childAccountId: string;
|
|
35
32
|
guardianAccountId: string | null;
|
|
33
|
+
status: "active" | "orphaned" | "ended";
|
|
34
|
+
policyVersion: "2";
|
|
36
35
|
consentVersion: "1";
|
|
36
|
+
createdAt: string;
|
|
37
37
|
}[];
|
|
38
38
|
invitations: {
|
|
39
|
-
status: "pending" | "accepted" | "cancelled";
|
|
40
|
-
createdAt: string;
|
|
41
39
|
id: string;
|
|
42
|
-
expiresAt: string;
|
|
43
40
|
childAccountId: string;
|
|
44
41
|
guardianAccountId: string;
|
|
42
|
+
status: "pending" | "accepted" | "cancelled";
|
|
43
|
+
expiresAt: string;
|
|
45
44
|
consentVersion: "1";
|
|
45
|
+
createdAt: string;
|
|
46
46
|
}[];
|
|
47
47
|
} | undefined;
|
|
48
48
|
error: Error;
|
|
@@ -69,58 +69,58 @@ export declare function useSupervision(): {
|
|
|
69
69
|
isEnabled: boolean;
|
|
70
70
|
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<{
|
|
71
71
|
self: {
|
|
72
|
-
status: "active" | "orphaned" | "ended";
|
|
73
|
-
createdAt: string;
|
|
74
|
-
policyVersion: "2";
|
|
75
72
|
childAccountId: string;
|
|
76
73
|
guardianAccountId: string | null;
|
|
74
|
+
status: "active" | "orphaned" | "ended";
|
|
75
|
+
policyVersion: "2";
|
|
77
76
|
consentVersion: "1";
|
|
77
|
+
createdAt: string;
|
|
78
78
|
} | null;
|
|
79
79
|
children: {
|
|
80
|
-
status: "active" | "orphaned" | "ended";
|
|
81
|
-
createdAt: string;
|
|
82
|
-
policyVersion: "2";
|
|
83
80
|
childAccountId: string;
|
|
84
81
|
guardianAccountId: string | null;
|
|
82
|
+
status: "active" | "orphaned" | "ended";
|
|
83
|
+
policyVersion: "2";
|
|
85
84
|
consentVersion: "1";
|
|
85
|
+
createdAt: string;
|
|
86
86
|
}[];
|
|
87
87
|
invitations: {
|
|
88
|
-
status: "pending" | "accepted" | "cancelled";
|
|
89
|
-
createdAt: string;
|
|
90
88
|
id: string;
|
|
91
|
-
expiresAt: string;
|
|
92
89
|
childAccountId: string;
|
|
93
90
|
guardianAccountId: string;
|
|
91
|
+
status: "pending" | "accepted" | "cancelled";
|
|
92
|
+
expiresAt: string;
|
|
94
93
|
consentVersion: "1";
|
|
94
|
+
createdAt: string;
|
|
95
95
|
}[];
|
|
96
96
|
}, Error>>;
|
|
97
97
|
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
98
98
|
} | {
|
|
99
99
|
data: {
|
|
100
100
|
self: {
|
|
101
|
-
status: "active" | "orphaned" | "ended";
|
|
102
|
-
createdAt: string;
|
|
103
|
-
policyVersion: "2";
|
|
104
101
|
childAccountId: string;
|
|
105
102
|
guardianAccountId: string | null;
|
|
103
|
+
status: "active" | "orphaned" | "ended";
|
|
104
|
+
policyVersion: "2";
|
|
106
105
|
consentVersion: "1";
|
|
106
|
+
createdAt: string;
|
|
107
107
|
} | null;
|
|
108
108
|
children: {
|
|
109
|
-
status: "active" | "orphaned" | "ended";
|
|
110
|
-
createdAt: string;
|
|
111
|
-
policyVersion: "2";
|
|
112
109
|
childAccountId: string;
|
|
113
110
|
guardianAccountId: string | null;
|
|
111
|
+
status: "active" | "orphaned" | "ended";
|
|
112
|
+
policyVersion: "2";
|
|
114
113
|
consentVersion: "1";
|
|
114
|
+
createdAt: string;
|
|
115
115
|
}[];
|
|
116
116
|
invitations: {
|
|
117
|
-
status: "pending" | "accepted" | "cancelled";
|
|
118
|
-
createdAt: string;
|
|
119
117
|
id: string;
|
|
120
|
-
expiresAt: string;
|
|
121
118
|
childAccountId: string;
|
|
122
119
|
guardianAccountId: string;
|
|
120
|
+
status: "pending" | "accepted" | "cancelled";
|
|
121
|
+
expiresAt: string;
|
|
123
122
|
consentVersion: "1";
|
|
123
|
+
createdAt: string;
|
|
124
124
|
}[];
|
|
125
125
|
} | undefined;
|
|
126
126
|
error: null;
|
|
@@ -147,58 +147,58 @@ export declare function useSupervision(): {
|
|
|
147
147
|
isEnabled: boolean;
|
|
148
148
|
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<{
|
|
149
149
|
self: {
|
|
150
|
-
status: "active" | "orphaned" | "ended";
|
|
151
|
-
createdAt: string;
|
|
152
|
-
policyVersion: "2";
|
|
153
150
|
childAccountId: string;
|
|
154
151
|
guardianAccountId: string | null;
|
|
152
|
+
status: "active" | "orphaned" | "ended";
|
|
153
|
+
policyVersion: "2";
|
|
155
154
|
consentVersion: "1";
|
|
155
|
+
createdAt: string;
|
|
156
156
|
} | null;
|
|
157
157
|
children: {
|
|
158
|
-
status: "active" | "orphaned" | "ended";
|
|
159
|
-
createdAt: string;
|
|
160
|
-
policyVersion: "2";
|
|
161
158
|
childAccountId: string;
|
|
162
159
|
guardianAccountId: string | null;
|
|
160
|
+
status: "active" | "orphaned" | "ended";
|
|
161
|
+
policyVersion: "2";
|
|
163
162
|
consentVersion: "1";
|
|
163
|
+
createdAt: string;
|
|
164
164
|
}[];
|
|
165
165
|
invitations: {
|
|
166
|
-
status: "pending" | "accepted" | "cancelled";
|
|
167
|
-
createdAt: string;
|
|
168
166
|
id: string;
|
|
169
|
-
expiresAt: string;
|
|
170
167
|
childAccountId: string;
|
|
171
168
|
guardianAccountId: string;
|
|
169
|
+
status: "pending" | "accepted" | "cancelled";
|
|
170
|
+
expiresAt: string;
|
|
172
171
|
consentVersion: "1";
|
|
172
|
+
createdAt: string;
|
|
173
173
|
}[];
|
|
174
174
|
}, Error>>;
|
|
175
175
|
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
176
176
|
} | {
|
|
177
177
|
data: {
|
|
178
178
|
self: {
|
|
179
|
-
status: "active" | "orphaned" | "ended";
|
|
180
|
-
createdAt: string;
|
|
181
|
-
policyVersion: "2";
|
|
182
179
|
childAccountId: string;
|
|
183
180
|
guardianAccountId: string | null;
|
|
181
|
+
status: "active" | "orphaned" | "ended";
|
|
182
|
+
policyVersion: "2";
|
|
184
183
|
consentVersion: "1";
|
|
184
|
+
createdAt: string;
|
|
185
185
|
} | null;
|
|
186
186
|
children: {
|
|
187
|
-
status: "active" | "orphaned" | "ended";
|
|
188
|
-
createdAt: string;
|
|
189
|
-
policyVersion: "2";
|
|
190
187
|
childAccountId: string;
|
|
191
188
|
guardianAccountId: string | null;
|
|
189
|
+
status: "active" | "orphaned" | "ended";
|
|
190
|
+
policyVersion: "2";
|
|
192
191
|
consentVersion: "1";
|
|
192
|
+
createdAt: string;
|
|
193
193
|
}[];
|
|
194
194
|
invitations: {
|
|
195
|
-
status: "pending" | "accepted" | "cancelled";
|
|
196
|
-
createdAt: string;
|
|
197
195
|
id: string;
|
|
198
|
-
expiresAt: string;
|
|
199
196
|
childAccountId: string;
|
|
200
197
|
guardianAccountId: string;
|
|
198
|
+
status: "pending" | "accepted" | "cancelled";
|
|
199
|
+
expiresAt: string;
|
|
201
200
|
consentVersion: "1";
|
|
201
|
+
createdAt: string;
|
|
202
202
|
}[];
|
|
203
203
|
} | undefined;
|
|
204
204
|
error: Error;
|
|
@@ -225,58 +225,58 @@ export declare function useSupervision(): {
|
|
|
225
225
|
isEnabled: boolean;
|
|
226
226
|
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<{
|
|
227
227
|
self: {
|
|
228
|
-
status: "active" | "orphaned" | "ended";
|
|
229
|
-
createdAt: string;
|
|
230
|
-
policyVersion: "2";
|
|
231
228
|
childAccountId: string;
|
|
232
229
|
guardianAccountId: string | null;
|
|
230
|
+
status: "active" | "orphaned" | "ended";
|
|
231
|
+
policyVersion: "2";
|
|
233
232
|
consentVersion: "1";
|
|
233
|
+
createdAt: string;
|
|
234
234
|
} | null;
|
|
235
235
|
children: {
|
|
236
|
-
status: "active" | "orphaned" | "ended";
|
|
237
|
-
createdAt: string;
|
|
238
|
-
policyVersion: "2";
|
|
239
236
|
childAccountId: string;
|
|
240
237
|
guardianAccountId: string | null;
|
|
238
|
+
status: "active" | "orphaned" | "ended";
|
|
239
|
+
policyVersion: "2";
|
|
241
240
|
consentVersion: "1";
|
|
241
|
+
createdAt: string;
|
|
242
242
|
}[];
|
|
243
243
|
invitations: {
|
|
244
|
-
status: "pending" | "accepted" | "cancelled";
|
|
245
|
-
createdAt: string;
|
|
246
244
|
id: string;
|
|
247
|
-
expiresAt: string;
|
|
248
245
|
childAccountId: string;
|
|
249
246
|
guardianAccountId: string;
|
|
247
|
+
status: "pending" | "accepted" | "cancelled";
|
|
248
|
+
expiresAt: string;
|
|
250
249
|
consentVersion: "1";
|
|
250
|
+
createdAt: string;
|
|
251
251
|
}[];
|
|
252
252
|
}, Error>>;
|
|
253
253
|
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
254
254
|
} | {
|
|
255
255
|
data: {
|
|
256
256
|
self: {
|
|
257
|
-
status: "active" | "orphaned" | "ended";
|
|
258
|
-
createdAt: string;
|
|
259
|
-
policyVersion: "2";
|
|
260
257
|
childAccountId: string;
|
|
261
258
|
guardianAccountId: string | null;
|
|
259
|
+
status: "active" | "orphaned" | "ended";
|
|
260
|
+
policyVersion: "2";
|
|
262
261
|
consentVersion: "1";
|
|
262
|
+
createdAt: string;
|
|
263
263
|
} | null;
|
|
264
264
|
children: {
|
|
265
|
-
status: "active" | "orphaned" | "ended";
|
|
266
|
-
createdAt: string;
|
|
267
|
-
policyVersion: "2";
|
|
268
265
|
childAccountId: string;
|
|
269
266
|
guardianAccountId: string | null;
|
|
267
|
+
status: "active" | "orphaned" | "ended";
|
|
268
|
+
policyVersion: "2";
|
|
270
269
|
consentVersion: "1";
|
|
270
|
+
createdAt: string;
|
|
271
271
|
}[];
|
|
272
272
|
invitations: {
|
|
273
|
-
status: "pending" | "accepted" | "cancelled";
|
|
274
|
-
createdAt: string;
|
|
275
273
|
id: string;
|
|
276
|
-
expiresAt: string;
|
|
277
274
|
childAccountId: string;
|
|
278
275
|
guardianAccountId: string;
|
|
276
|
+
status: "pending" | "accepted" | "cancelled";
|
|
277
|
+
expiresAt: string;
|
|
279
278
|
consentVersion: "1";
|
|
279
|
+
createdAt: string;
|
|
280
280
|
}[];
|
|
281
281
|
} | undefined;
|
|
282
282
|
error: null;
|
|
@@ -303,58 +303,58 @@ export declare function useSupervision(): {
|
|
|
303
303
|
isEnabled: boolean;
|
|
304
304
|
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<{
|
|
305
305
|
self: {
|
|
306
|
-
status: "active" | "orphaned" | "ended";
|
|
307
|
-
createdAt: string;
|
|
308
|
-
policyVersion: "2";
|
|
309
306
|
childAccountId: string;
|
|
310
307
|
guardianAccountId: string | null;
|
|
308
|
+
status: "active" | "orphaned" | "ended";
|
|
309
|
+
policyVersion: "2";
|
|
311
310
|
consentVersion: "1";
|
|
311
|
+
createdAt: string;
|
|
312
312
|
} | null;
|
|
313
313
|
children: {
|
|
314
|
-
status: "active" | "orphaned" | "ended";
|
|
315
|
-
createdAt: string;
|
|
316
|
-
policyVersion: "2";
|
|
317
314
|
childAccountId: string;
|
|
318
315
|
guardianAccountId: string | null;
|
|
316
|
+
status: "active" | "orphaned" | "ended";
|
|
317
|
+
policyVersion: "2";
|
|
319
318
|
consentVersion: "1";
|
|
319
|
+
createdAt: string;
|
|
320
320
|
}[];
|
|
321
321
|
invitations: {
|
|
322
|
-
status: "pending" | "accepted" | "cancelled";
|
|
323
|
-
createdAt: string;
|
|
324
322
|
id: string;
|
|
325
|
-
expiresAt: string;
|
|
326
323
|
childAccountId: string;
|
|
327
324
|
guardianAccountId: string;
|
|
325
|
+
status: "pending" | "accepted" | "cancelled";
|
|
326
|
+
expiresAt: string;
|
|
328
327
|
consentVersion: "1";
|
|
328
|
+
createdAt: string;
|
|
329
329
|
}[];
|
|
330
330
|
}, Error>>;
|
|
331
331
|
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
332
332
|
} | {
|
|
333
333
|
data: {
|
|
334
334
|
self: {
|
|
335
|
-
status: "active" | "orphaned" | "ended";
|
|
336
|
-
createdAt: string;
|
|
337
|
-
policyVersion: "2";
|
|
338
335
|
childAccountId: string;
|
|
339
336
|
guardianAccountId: string | null;
|
|
337
|
+
status: "active" | "orphaned" | "ended";
|
|
338
|
+
policyVersion: "2";
|
|
340
339
|
consentVersion: "1";
|
|
340
|
+
createdAt: string;
|
|
341
341
|
} | null;
|
|
342
342
|
children: {
|
|
343
|
-
status: "active" | "orphaned" | "ended";
|
|
344
|
-
createdAt: string;
|
|
345
|
-
policyVersion: "2";
|
|
346
343
|
childAccountId: string;
|
|
347
344
|
guardianAccountId: string | null;
|
|
345
|
+
status: "active" | "orphaned" | "ended";
|
|
346
|
+
policyVersion: "2";
|
|
348
347
|
consentVersion: "1";
|
|
348
|
+
createdAt: string;
|
|
349
349
|
}[];
|
|
350
350
|
invitations: {
|
|
351
|
-
status: "pending" | "accepted" | "cancelled";
|
|
352
|
-
createdAt: string;
|
|
353
351
|
id: string;
|
|
354
|
-
expiresAt: string;
|
|
355
352
|
childAccountId: string;
|
|
356
353
|
guardianAccountId: string;
|
|
354
|
+
status: "pending" | "accepted" | "cancelled";
|
|
355
|
+
expiresAt: string;
|
|
357
356
|
consentVersion: "1";
|
|
357
|
+
createdAt: string;
|
|
358
358
|
}[];
|
|
359
359
|
} | undefined;
|
|
360
360
|
error: null;
|
|
@@ -381,58 +381,58 @@ export declare function useSupervision(): {
|
|
|
381
381
|
isEnabled: boolean;
|
|
382
382
|
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<{
|
|
383
383
|
self: {
|
|
384
|
-
status: "active" | "orphaned" | "ended";
|
|
385
|
-
createdAt: string;
|
|
386
|
-
policyVersion: "2";
|
|
387
384
|
childAccountId: string;
|
|
388
385
|
guardianAccountId: string | null;
|
|
386
|
+
status: "active" | "orphaned" | "ended";
|
|
387
|
+
policyVersion: "2";
|
|
389
388
|
consentVersion: "1";
|
|
389
|
+
createdAt: string;
|
|
390
390
|
} | null;
|
|
391
391
|
children: {
|
|
392
|
-
status: "active" | "orphaned" | "ended";
|
|
393
|
-
createdAt: string;
|
|
394
|
-
policyVersion: "2";
|
|
395
392
|
childAccountId: string;
|
|
396
393
|
guardianAccountId: string | null;
|
|
394
|
+
status: "active" | "orphaned" | "ended";
|
|
395
|
+
policyVersion: "2";
|
|
397
396
|
consentVersion: "1";
|
|
397
|
+
createdAt: string;
|
|
398
398
|
}[];
|
|
399
399
|
invitations: {
|
|
400
|
-
status: "pending" | "accepted" | "cancelled";
|
|
401
|
-
createdAt: string;
|
|
402
400
|
id: string;
|
|
403
|
-
expiresAt: string;
|
|
404
401
|
childAccountId: string;
|
|
405
402
|
guardianAccountId: string;
|
|
403
|
+
status: "pending" | "accepted" | "cancelled";
|
|
404
|
+
expiresAt: string;
|
|
406
405
|
consentVersion: "1";
|
|
406
|
+
createdAt: string;
|
|
407
407
|
}[];
|
|
408
408
|
}, Error>>;
|
|
409
409
|
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
410
410
|
} | {
|
|
411
411
|
data: {
|
|
412
412
|
self: {
|
|
413
|
-
status: "active" | "orphaned" | "ended";
|
|
414
|
-
createdAt: string;
|
|
415
|
-
policyVersion: "2";
|
|
416
413
|
childAccountId: string;
|
|
417
414
|
guardianAccountId: string | null;
|
|
415
|
+
status: "active" | "orphaned" | "ended";
|
|
416
|
+
policyVersion: "2";
|
|
418
417
|
consentVersion: "1";
|
|
418
|
+
createdAt: string;
|
|
419
419
|
} | null;
|
|
420
420
|
children: {
|
|
421
|
-
status: "active" | "orphaned" | "ended";
|
|
422
|
-
createdAt: string;
|
|
423
|
-
policyVersion: "2";
|
|
424
421
|
childAccountId: string;
|
|
425
422
|
guardianAccountId: string | null;
|
|
423
|
+
status: "active" | "orphaned" | "ended";
|
|
424
|
+
policyVersion: "2";
|
|
426
425
|
consentVersion: "1";
|
|
426
|
+
createdAt: string;
|
|
427
427
|
}[];
|
|
428
428
|
invitations: {
|
|
429
|
-
status: "pending" | "accepted" | "cancelled";
|
|
430
|
-
createdAt: string;
|
|
431
429
|
id: string;
|
|
432
|
-
expiresAt: string;
|
|
433
430
|
childAccountId: string;
|
|
434
431
|
guardianAccountId: string;
|
|
432
|
+
status: "pending" | "accepted" | "cancelled";
|
|
433
|
+
expiresAt: string;
|
|
435
434
|
consentVersion: "1";
|
|
435
|
+
createdAt: string;
|
|
436
436
|
}[];
|
|
437
437
|
} | undefined;
|
|
438
438
|
isError: false;
|
|
@@ -459,29 +459,29 @@ export declare function useSupervision(): {
|
|
|
459
459
|
isEnabled: boolean;
|
|
460
460
|
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<{
|
|
461
461
|
self: {
|
|
462
|
-
status: "active" | "orphaned" | "ended";
|
|
463
|
-
createdAt: string;
|
|
464
|
-
policyVersion: "2";
|
|
465
462
|
childAccountId: string;
|
|
466
463
|
guardianAccountId: string | null;
|
|
464
|
+
status: "active" | "orphaned" | "ended";
|
|
465
|
+
policyVersion: "2";
|
|
467
466
|
consentVersion: "1";
|
|
467
|
+
createdAt: string;
|
|
468
468
|
} | null;
|
|
469
469
|
children: {
|
|
470
|
-
status: "active" | "orphaned" | "ended";
|
|
471
|
-
createdAt: string;
|
|
472
|
-
policyVersion: "2";
|
|
473
470
|
childAccountId: string;
|
|
474
471
|
guardianAccountId: string | null;
|
|
472
|
+
status: "active" | "orphaned" | "ended";
|
|
473
|
+
policyVersion: "2";
|
|
475
474
|
consentVersion: "1";
|
|
475
|
+
createdAt: string;
|
|
476
476
|
}[];
|
|
477
477
|
invitations: {
|
|
478
|
-
status: "pending" | "accepted" | "cancelled";
|
|
479
|
-
createdAt: string;
|
|
480
478
|
id: string;
|
|
481
|
-
expiresAt: string;
|
|
482
479
|
childAccountId: string;
|
|
483
480
|
guardianAccountId: string;
|
|
481
|
+
status: "pending" | "accepted" | "cancelled";
|
|
482
|
+
expiresAt: string;
|
|
484
483
|
consentVersion: "1";
|
|
484
|
+
createdAt: string;
|
|
485
485
|
}[];
|
|
486
486
|
}, Error>>;
|
|
487
487
|
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Explicit OAuth consent for an already-authenticated Oxy user.
|
|
3
3
|
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
* caller must invoke this operation from a real user gesture; it never runs on
|
|
8
|
-
* mount, retries silently, or grants anything locally.
|
|
4
|
+
* External applications may request additional scopes through OAuth. Own Oxy
|
|
5
|
+
* applications use the account dialog and never create OAuth consent grants.
|
|
6
|
+
* The caller invokes this operation from a user gesture.
|
|
9
7
|
*/
|
|
10
8
|
import type { OxyServices } from "@oxy.so/core";
|
|
11
9
|
import type { OAuthSessionCommitInput, WebAuthMode, WebOAuthFailureReason, WebOAuthRedirectReason } from "./types";
|
|
@@ -18,7 +16,7 @@ export interface RequestOAuthConsentOptions {
|
|
|
18
16
|
timeoutMs?: number;
|
|
19
17
|
}
|
|
20
18
|
export type OAuthConsentFailureReason = WebOAuthFailureReason | "invalid-redirect-uri" | "invalid-scopes" | "scope-not-configured" | "client-resolution-failed" | "native-callback-invalid" | "state-mismatch" | "exchange-failed" | "subject-mismatch";
|
|
21
|
-
export type OAuthConsentUnsupportedReason = "missing-client-id" | "identity-bound" | "not-authenticated" | "unsupported-platform";
|
|
19
|
+
export type OAuthConsentUnsupportedReason = "missing-client-id" | "first-party-application" | "identity-bound" | "not-authenticated" | "unsupported-platform";
|
|
22
20
|
export type OAuthConsentResult = {
|
|
23
21
|
status: "consented";
|
|
24
22
|
} | {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"explicitOAuthConsent.d.ts","sourceRoot":"","sources":["../../../../../src/ui/oauth/explicitOAuthConsent.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"explicitOAuthConsent.d.ts","sourceRoot":"","sources":["../../../../../src/ui/oauth/explicitOAuthConsent.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAqB,MAAM,cAAc,CAAC;AAMnE,OAAO,KAAK,EAEX,uBAAuB,EACvB,WAAW,EACX,qBAAqB,EACrB,sBAAsB,EACtB,MAAM,SAAS,CAAC;AAEjB,MAAM,WAAW,0BAA0B;IAC1C,0EAA0E;IAC1E,WAAW,EAAE,MAAM,CAAC;IACpB,iFAAiF;IACjF,MAAM,EAAE,SAAS,MAAM,EAAE,CAAC;IAC1B,+CAA+C;IAC/C,SAAS,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,MAAM,yBAAyB,GAClC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1
|
+
/**
|
|
2
|
+
* What a returning session needs for its first paint, kept on this device.
|
|
3
|
+
*
|
|
4
|
+
* A cold boot used to wait on two round trips before it showed anything: the
|
|
5
|
+
* registry's classification of this app and the profile of the signed-in
|
|
6
|
+
* account. With a session saved on the device, the app now paints at once from
|
|
7
|
+
* what the last run left here, and the boot verifies both in the background
|
|
8
|
+
* (`runProviderColdBoot`). This module is that cache:
|
|
9
|
+
*
|
|
10
|
+
* - the registry's last verdict on this app (`device` or `oauth`), tied to the
|
|
11
|
+
* `clientId` it was given for;
|
|
12
|
+
* - the last account profile the runtime held, tied to that account's id.
|
|
13
|
+
*
|
|
14
|
+
* Both live in the provider's ordinary storage (AsyncStorage on native,
|
|
15
|
+
* `localStorage` on web), next to the per-account query cache, which already
|
|
16
|
+
* holds the same profile under the SDK's `users` queries. Neither is a
|
|
17
|
+
* credential: the device secret and the access token stay in the auth store.
|
|
18
|
+
*
|
|
19
|
+
* A cached session is offered only when it matches the auth store: the profile
|
|
20
|
+
* must belong to the account the persisted session is for, so a switch or a
|
|
21
|
+
* sign-out on a previous run can never paint somebody else.
|
|
22
|
+
*/
|
|
23
|
+
import type { User } from '@oxy.so/core';
|
|
24
|
+
import { type AuthStateStore } from '@oxy.so/core/session';
|
|
25
|
+
import type { StorageInterface } from '../utils/storageHelpers';
|
|
26
|
+
export type SessionLane = 'device' | 'oauth';
|
|
27
|
+
/** A persisted session the app can show before the network answers. */
|
|
28
|
+
export interface CachedSession {
|
|
29
|
+
sessionId: string;
|
|
30
|
+
userId: string;
|
|
31
|
+
deviceId: string;
|
|
32
|
+
/** The account profile the last run held for {@link userId}. */
|
|
33
|
+
user: User;
|
|
34
|
+
/** The persisted access token, when it is still valid past the refresh lead. */
|
|
35
|
+
warmToken: string | null;
|
|
36
|
+
}
|
|
37
|
+
export interface CachedBootStore {
|
|
38
|
+
saveLane(clientId: string, lane: SessionLane): Promise<void>;
|
|
39
|
+
saveAccount(user: User): Promise<void>;
|
|
40
|
+
clearAccount(): Promise<void>;
|
|
41
|
+
/**
|
|
42
|
+
* The cached session for this `clientId`, or `null` when anything a first
|
|
43
|
+
* paint needs is missing or does not match the auth store.
|
|
44
|
+
*/
|
|
45
|
+
readSession(clientId: string, authStore: AuthStateStore): Promise<CachedSession | null>;
|
|
46
|
+
}
|
|
47
|
+
export declare function createCachedBootStore(storage: StorageInterface, prefix: string, now?: () => number): CachedBootStore;
|
|
48
|
+
//# sourceMappingURL=cachedBoot.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cachedBoot.d.ts","sourceRoot":"","sources":["../../../../../src/ui/session/cachedBoot.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAyB,KAAK,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAClF,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAEhE,MAAM,MAAM,WAAW,GAAG,QAAQ,GAAG,OAAO,CAAC;AAE7C,uEAAuE;AACvE,MAAM,WAAW,aAAa;IAC5B,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,gEAAgE;IAChE,IAAI,EAAE,IAAI,CAAC;IACX,gFAAgF;IAChF,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;CAC1B;AAED,MAAM,WAAW,eAAe;IAC9B,QAAQ,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAC7D,WAAW,CAAC,IAAI,EAAE,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACvC,YAAY,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IAC9B;;;OAGG;IACH,WAAW,CAAC,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE,cAAc,GAAG,OAAO,CAAC,aAAa,GAAG,IAAI,CAAC,CAAC;CACzF;AAuBD,wBAAgB,qBAAqB,CACnC,OAAO,EAAE,gBAAgB,EACzB,MAAM,EAAE,MAAM,EACd,GAAG,GAAE,MAAM,MAAiB,GAC3B,eAAe,CA+DjB"}
|
|
@@ -45,10 +45,34 @@ export interface RunProviderColdBootOptions {
|
|
|
45
45
|
}) => Promise<void>;
|
|
46
46
|
markAuthResolved: () => void;
|
|
47
47
|
setTokenReady: (ready: boolean) => void;
|
|
48
|
+
/**
|
|
49
|
+
* Show the session saved on this device before any network: the account from
|
|
50
|
+
* its cached profile, auth resolved. Resolves `true` when it did, `false` when
|
|
51
|
+
* the device holds nothing a first paint can use (then the boot runs as a
|
|
52
|
+
* first boot). Never consulted in `sessionMode: 'identity'` or with an OAuth
|
|
53
|
+
* return on the URL.
|
|
54
|
+
*/
|
|
55
|
+
paintCachedSession?: () => Promise<boolean>;
|
|
56
|
+
/**
|
|
57
|
+
* The server ended the painted session: the registry now classifies the app
|
|
58
|
+
* as OAuth-only, or the mint answered this holder `invalid_device_secret` /
|
|
59
|
+
* `no_active_session` and no recovery lane restored one. Sign out now.
|
|
60
|
+
*/
|
|
61
|
+
onCachedSessionRejected?: () => Promise<void>;
|
|
62
|
+
/**
|
|
63
|
+
* The painted session could not be checked yet (offline, the registry or the
|
|
64
|
+
* mint unreachable). It stays on screen; call `retry` later to ask again.
|
|
65
|
+
*/
|
|
66
|
+
onCachedSessionUnconfirmed?: (retry: () => Promise<void>) => void;
|
|
48
67
|
}
|
|
49
68
|
/**
|
|
50
69
|
* Device-first cold boot for `@oxy.so/services` providers.
|
|
51
70
|
*
|
|
71
|
+
* A returning session saved on this device (account mode, the app last
|
|
72
|
+
* classified `device`, its profile cached) paints first, with no network, and
|
|
73
|
+
* is then checked in the background — see `paintCachedSession`. Otherwise, a
|
|
74
|
+
* first boot:
|
|
75
|
+
*
|
|
52
76
|
* Ordered pipeline:
|
|
53
77
|
* 1. Complete an OAuth authorization-code return already on the URL (web)
|
|
54
78
|
* 2. `runSessionColdBoot` — device-secret mint (+ the native Commons-proof lane,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runProviderColdBoot.d.ts","sourceRoot":"","sources":["../../../../../src/ui/boot/runProviderColdBoot.ts"],"names":[],"mappings":"AACA,OAAO,EAAwB,KAAK,WAAW,EAAE,MAAM,cAAc,CAAC;AACtE,OAAO,EAEL,KAAK,cAAc,EACnB,KAAK,eAAe,EACpB,KAAK,WAAW,EACjB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAM1D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,+BAA4B,CAAC;AAwB9D,iFAAiF;AACjF,eAAO,MAAM,2BAA2B,OAAO,CAAC;AAEhD;;;;;;;;;;GAUG;AACH,eAAO,MAAM,6BAA6B,QAAS,CAAC;AA0CpD,MAAM,WAAW,0BAA0B;IACzC,WAAW,EAAE,WAAW,CAAC;IACzB,SAAS,EAAE,cAAc,CAAC;IAC1B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB;;;;;;OAMG;IACH,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,kEAAkE;IAClE,QAAQ,CAAC,EAAE,eAAe,CAAC;IAC3B,aAAa,EAAE,aAAa,CAAC;IAC7B,8EAA8E;IAC9E,kBAAkB,CAAC,EAAE,MAAM,OAAO,CAAC,QAAQ,GAAG,OAAO,CAAC,CAAC;IACvD,0EAA0E;IAC1E,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,QAAQ,GAAG,OAAO,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAClE,gBAAgB,CAAC,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IACvC,eAAe,CAAC,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IACtC,0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AE,CAAC,IAAI,EAAE,QAAQ,GAAG,OAAO,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAClE,gBAAgB,CAAC,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IACvC,eAAe,CAAC,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IACtC,0BAA0B,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IAChD,aAAa,EAAE,CACb,KAAK,EAAE,WAAW,EAClB,OAAO,EAAE;QAAE,QAAQ,EAAE,OAAO,CAAC;QAAC,KAAK,CAAC,EAAE,OAAO,CAAA;KAAE,KAC5C,OAAO,CAAC,IAAI,CAAC,CAAC;IACnB,gBAAgB,EAAE,MAAM,IAAI,CAAC;IAC7B,aAAa,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;IACxC;;;;;;OAMG;IACH,kBAAkB,CAAC,EAAE,MAAM,OAAO,CAAC,OAAO,CAAC,CAAC;IAC5C;;;;OAIG;IACH,uBAAuB,CAAC,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IAC9C;;;OAGG;IACH,0BAA0B,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,KAAK,IAAI,CAAC;CACnE;AA8LD;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAsB,mBAAmB,CAAC,IAAI,EAAE,0BAA0B,GAAG,OAAO,CAAC,IAAI,CAAC,CA0FzF"}
|
|
@@ -39,6 +39,8 @@ export interface OxyConsentResource {
|
|
|
39
39
|
writeActions: McpOAuthWriteAction[];
|
|
40
40
|
}
|
|
41
41
|
export interface OxyConsentScreenProps {
|
|
42
|
+
/** Presentation only: own sign-in has no permission grant. External MCP stays consent. */
|
|
43
|
+
mode?: 'consent' | 'sign-in';
|
|
42
44
|
/** The resolved requesting application. */
|
|
43
45
|
application: OxyConsentApplication;
|
|
44
46
|
/** OAuth scopes requested by the client (mapped to friendly labels). */
|
|
@@ -65,6 +67,6 @@ export interface OxyConsentScreenProps {
|
|
|
65
67
|
/** A blocking error message for the request, when present. */
|
|
66
68
|
error?: string | null;
|
|
67
69
|
}
|
|
68
|
-
export declare function OxyConsentScreen({ application, scopes, user, resource, onAllow, onDeny, busy, allowDisabled, error, }: OxyConsentScreenProps): import("react").JSX.Element;
|
|
70
|
+
export declare function OxyConsentScreen({ application, mode, scopes, user, resource, onAllow, onDeny, busy, allowDisabled, error, }: OxyConsentScreenProps): import("react").JSX.Element;
|
|
69
71
|
export default OxyConsentScreen;
|
|
70
72
|
//# sourceMappingURL=OxyConsentScreen.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OxyConsentScreen.d.ts","sourceRoot":"","sources":["../../../../../src/ui/components/OxyConsentScreen.tsx"],"names":[],"mappings":"AAwBA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAQ7D,oFAAoF;AACpF,MAAM,WAAW,qBAAqB;IACpC,kDAAkD;IAClD,IAAI,EAAE,MAAM,CAAC;IACb,qFAAqF;IACrF,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,uEAAuE;IACvE,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,wDAAwD;IACxD,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,0DAA0D;IAC1D,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,+EAA+E;IAC/E,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,wDAAwD;IACxD,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAED,kFAAkF;AAClF,MAAM,WAAW,cAAc;IAC7B,kDAAkD;IAClD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,mDAAmD;IACnD,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,gFAAgF;IAChF,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,2EAA2E;IAC3E,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,kBAAkB;IACjC,4DAA4D;IAC5D,WAAW,EAAE;QACX,IAAI,EAAE,MAAM,CAAC;QACb,OAAO,CAAC,EAAE,MAAM,CAAC;KAClB,CAAC;IACF,oEAAoE;IACpE,GAAG,EAAE,MAAM,CAAC;IACZ,6DAA6D;IAC7D,YAAY,EAAE,mBAAmB,EAAE,CAAC;CACrC;AAED,MAAM,WAAW,qBAAqB;IACpC,2CAA2C;IAC3C,WAAW,EAAE,qBAAqB,CAAC;IACnC,wEAAwE;IACxE,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,+DAA+D;IAC/D,IAAI,CAAC,EAAE,cAAc,CAAC;IACtB,+DAA+D;IAC/D,QAAQ,CAAC,EAAE,kBAAkB,CAAC;IAC9B,wEAAwE;IACxE,OAAO,EAAE,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACpC,kDAAkD;IAClD,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,iFAAiF;IACjF,IAAI,CAAC,EAAE,OAAO,CAAC;IACf;;;;;;;OAOG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,8DAA8D;IAC9D,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACvB;AAmHD,wBAAgB,gBAAgB,CAAC,EAC/B,WAAW,EACX,MAAM,EACN,IAAI,EACJ,QAAQ,EACR,OAAO,EACP,MAAM,EACN,IAAY,EACZ,aAAqB,EACrB,KAAY,GACb,EAAE,qBAAqB,+
|
|
1
|
+
{"version":3,"file":"OxyConsentScreen.d.ts","sourceRoot":"","sources":["../../../../../src/ui/components/OxyConsentScreen.tsx"],"names":[],"mappings":"AAwBA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAQ7D,oFAAoF;AACpF,MAAM,WAAW,qBAAqB;IACpC,kDAAkD;IAClD,IAAI,EAAE,MAAM,CAAC;IACb,qFAAqF;IACrF,OAAO,CAAC,EAAE,MA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O,CAAC;IACf;;;;;;;OAOG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,8DAA8D;IAC9D,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACvB;AAmHD,wBAAgB,gBAAgB,CAAC,EAC/B,WAAW,EACX,IAAgB,EAChB,MAAM,EACN,IAAI,EACJ,QAAQ,EACR,OAAO,EACP,MAAM,EACN,IAAY,EACZ,aAAqB,EACrB,KAAY,GACb,EAAE,qBAAqB,+BAyRvB;AAgKD,eAAe,gBAAgB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OxyContext.d.ts","sourceRoot":"","sources":["../../../../../src/ui/context/OxyContext.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"OxyContext.d.ts","sourceRoot":"","sources":["../../../../../src/ui/context/OxyContext.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAoG/B,OAAO,KAAK,EAAmB,uBAAuB,EAAe,MAAM,sBAAmB,CAAC;AAQ/F,YAAY,EAAE,YAAY,EAAE,eAAe,EAAE,uBAAuB,EAAE,MAAM,sBAAmB,CAAC;AAOhG,OAAO,EACL,iBAAiB,EACjB,MAAM,EACN,cAAc,EACd,uBAAuB,GACxB,MAAM,wBAAqB,CAAC;AAI7B;;;;;;;;;;GAUG;AACH,eAAO,MAAM,kBAAkB,EAAE,KAAK,CAAC,EAAE,CAAC,uBAAuB,CAutDhE,CAAC"}
|
|
@@ -108,7 +108,8 @@ export interface OxyContextState {
|
|
|
108
108
|
startWebOAuthSignIn: (options: StartWebOAuthSignInOptions) => Promise<WebOAuthSignInResult>;
|
|
109
109
|
/**
|
|
110
110
|
* Ask the already-authenticated user for explicit OAuth consent to exact
|
|
111
|
-
* application scopes.
|
|
111
|
+
* external application scopes. Own Oxy apps do not use this operation.
|
|
112
|
+
* Must be called from a user gesture. Works on web and
|
|
112
113
|
* native and commits only a callback bound to the same user, state, PKCE pair
|
|
113
114
|
* and byte-exact redirect URI.
|
|
114
115
|
*/
|