@jskit-ai/agent-docs 0.1.397 → 0.1.399

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.
Files changed (94) hide show
  1. package/guide/agent/app-extras/assistant-conversation.md +5 -3
  2. package/guide/agent/app-extras/assistant.md +171 -20
  3. package/guide/agent/app-extras/mobile-capacitor.md +110 -4
  4. package/guide/agent/app-extras/push-notifications.md +149 -0
  5. package/guide/agent/app-extras/realtime.md +11 -0
  6. package/guide/agent/app-setup/authentication.md +93 -1
  7. package/guide/agent/app-setup/users.md +32 -0
  8. package/guide/agent/framework/client-features.md +65 -0
  9. package/guide/agent/framework/test-pass.md +3 -1
  10. package/guide/agent/framework/typed-features.md +12 -0
  11. package/guide/agent/index.md +1 -0
  12. package/guide/agent/recipes/file-uploads-and-images.md +24 -1
  13. package/guide/agent/recipes/installable-app.md +76 -82
  14. package/guide/agent/recipes/payments-and-subscriptions.md +30 -1
  15. package/package.json +1 -1
  16. package/patterns/feature-package/example/booking-engine/package.json +1 -1
  17. package/patterns/minimal-foundation/example/config/public.js +9 -1
  18. package/patterns/minimal-foundation/example/package.json +4 -4
  19. package/patterns/shell-foundation/example/config/public.js +9 -1
  20. package/patterns/shell-foundation/example/package.json +5 -5
  21. package/patterns/shell-foundation/example/packages/main/package.json +1 -1
  22. package/reference/autogen/PATTERN_INDEX.md +106 -40
  23. package/reference/autogen/README.md +4 -0
  24. package/reference/autogen/packages/assistant-core.md +4 -2
  25. package/reference/autogen/packages/assistant-runtime.md +14 -3
  26. package/reference/autogen/packages/auth-core.md +33 -0
  27. package/reference/autogen/packages/auth-provider-local-core.md +42 -2
  28. package/reference/autogen/packages/auth-provider-local-db-core.md +5 -0
  29. package/reference/autogen/packages/auth-web.md +46 -7
  30. package/reference/autogen/packages/http-runtime.md +11 -1
  31. package/reference/autogen/packages/http-web.md +36 -0
  32. package/reference/autogen/packages/mobile-capacitor.md +121 -5
  33. package/reference/autogen/packages/payments-core.md +2 -0
  34. package/reference/autogen/packages/push-core.md +128 -0
  35. package/reference/autogen/packages/push-web.md +99 -0
  36. package/reference/autogen/packages/realtime.md +6 -3
  37. package/reference/autogen/packages/shell-web.md +1 -1
  38. package/reference/autogen/packages/store-purchases-core.md +113 -0
  39. package/reference/autogen/packages/store-purchases-web.md +55 -0
  40. package/reference/autogen/packages/uploads-image-web.md +3 -2
  41. package/reference/autogen/packages/uploads-runtime.md +21 -1
  42. package/reference/autogen/packages/users-core.md +4 -2
  43. package/reference/autogen/packages/users-web.md +7 -0
  44. package/reference/autogen/tooling/config-eslint.md +36 -0
  45. package/reference/autogen/tooling/jskit-catalog.md +23 -1
  46. package/reference/autogen/tooling/jskit-release.md +4 -1
  47. package/skills/jskit/references/client-features.md +65 -0
  48. package/skills/jskit/references/pattern-index.md +106 -40
  49. package/skills/jskit/references/patterns/app/minimal-foundation/example/config/public.js +9 -1
  50. package/skills/jskit/references/patterns/app/minimal-foundation/example/package.json +4 -4
  51. package/skills/jskit/references/patterns/app/shell-foundation/example/config/public.js +9 -1
  52. package/skills/jskit/references/patterns/app/shell-foundation/example/package.json +5 -5
  53. package/skills/jskit/references/patterns/app/shell-foundation/example/packages/main/package.json +1 -1
  54. package/skills/jskit/references/patterns/auth/accounts-hub/example/package.json +3 -3
  55. package/skills/jskit/references/patterns/auth/oidc-sign-in/example/package.json +2 -2
  56. package/skills/jskit/references/patterns/auth/supabase-auth/example/package.json +1 -1
  57. package/skills/jskit/references/patterns/connectors/calendar-cli/example/package.json +5 -5
  58. package/skills/jskit/references/patterns/crud/crud-feature-package/example/packages/books/package.json +3 -3
  59. package/skills/jskit/references/patterns/database/mysql-application/example/package.json +2 -2
  60. package/skills/jskit/references/patterns/database/postgres-application/example/package.json +2 -2
  61. package/skills/jskit/references/patterns/mobile/android-app-actions/PATTERN.md +78 -0
  62. package/skills/jskit/references/patterns/mobile/android-app-actions/example/android/app/src/main/java/com/example/app/SummaryWidget.kt +33 -0
  63. package/skills/jskit/references/patterns/mobile/android-app-actions/example/android/app/src/main/res/layout/summary_widget.xml +17 -0
  64. package/skills/jskit/references/patterns/mobile/android-app-actions/example/android/app/src/main/res/xml/shortcuts.xml +16 -0
  65. package/skills/jskit/references/patterns/mobile/android-app-actions/example/android/app/src/main/res/xml/summary_widget_info.xml +8 -0
  66. package/skills/jskit/references/patterns/mobile/android-application/PATTERN.md +45 -2
  67. package/skills/jskit/references/patterns/mobile/android-application/example/android/app/src/main/AndroidManifest.xml +65 -0
  68. package/skills/jskit/references/patterns/mobile/android-application/example/src/placement.js +19 -0
  69. package/skills/jskit/references/patterns/mobile/ios-app-intents/PATTERN.md +55 -0
  70. package/skills/jskit/references/patterns/mobile/ios-app-intents/example/ios/App/App/Intents/ExampleShortcuts.swift +9 -0
  71. package/skills/jskit/references/patterns/mobile/ios-app-intents/example/ios/App/App/Intents/UnreadCountIntent.swift +33 -0
  72. package/skills/jskit/references/patterns/mobile/ios-application/PATTERN.md +169 -0
  73. package/skills/jskit/references/patterns/mobile/ios-application/example/capacitor.config.json +10 -0
  74. package/skills/jskit/references/patterns/mobile/ios-application/example/ios/App/App/App.entitlements +12 -0
  75. package/skills/jskit/references/patterns/mobile/ios-application/example/ios/App/App/App.swift +20 -0
  76. package/skills/jskit/references/patterns/mobile/ios-application/example/ios/App/App/Info.plist +63 -0
  77. package/skills/jskit/references/patterns/mobile/ios-application/example/package.json +15 -0
  78. package/skills/jskit/references/patterns/mobile/ios-application/example/src/placement.js +19 -0
  79. package/skills/jskit/references/patterns/mobile/ios-live-activity/PATTERN.md +73 -0
  80. package/skills/jskit/references/patterns/mobile/ios-live-activity/example/ios/App/LiveActivities/LiveActivitiesBundle.swift +13 -0
  81. package/skills/jskit/references/patterns/mobile/ios-live-activity/example/src/deliveryActivity.js +33 -0
  82. package/skills/jskit/references/patterns/mobile/ios-share-extension/PATTERN.md +83 -0
  83. package/skills/jskit/references/patterns/mobile/ios-share-extension/example/ios/App/ShareExtension/Info.plist +31 -0
  84. package/skills/jskit/references/patterns/mobile/ios-share-extension/example/ios/App/ShareExtension/ShareExtension.entitlements +10 -0
  85. package/skills/jskit/references/patterns/mobile/ios-share-extension/example/ios/App/ShareExtension/ShareViewController.swift +94 -0
  86. package/skills/jskit/references/patterns/mobile/ios-widget/PATTERN.md +66 -0
  87. package/skills/jskit/references/patterns/mobile/ios-widget/example/ios/App/SummaryWidget/SummaryWidget.swift +64 -0
  88. package/skills/jskit/references/patterns/mobile/ios-widget/example/src/widgetSummary.js +10 -0
  89. package/skills/jskit/references/patterns/realtime/realtime-application/example/package.json +2 -2
  90. package/skills/jskit/references/patterns/server/feature-package/example/booking-engine/package.json +1 -1
  91. package/skills/jskit/references/patterns/users/user-administration-server/example/packages/users/package.json +3 -3
  92. package/skills/jskit/references/patterns/users/user-administration-server/example/packages/users-workspace/package.json +6 -6
  93. package/skills/jskit/references/test-pass.md +3 -1
  94. package/skills/jskit/references/typed-features.md +12 -0
@@ -156,6 +156,10 @@ Local functions
156
156
  - `normalizeVia(value)`
157
157
  - `normalizeRefusal(value)`
158
158
 
159
+ ### `src/server/lib/connectionTickets.js`
160
+ Exports
161
+ - `createConnectionTickets({ now = Date.now } = {})`
162
+
159
163
  ### `src/server/lib/errors.js`
160
164
  Exports
161
165
  - `AUTH_POLICY_DENY_REASONS`
@@ -188,6 +192,9 @@ Local functions
188
192
  - `enforceCsrfProtection(fastify, request, reply)`
189
193
  - `resolveCsrfToken(request)`
190
194
  - `resolveOwnerValue(meta, request)`
195
+ - `isAppRequest(request)`
196
+ - `answerAppCors(request, reply, appOrigins)`
197
+ - `withAppSession(request, reply, payload)`
191
198
 
192
199
  ### `src/server/lib/routeMeta.js`
193
200
  Exports
@@ -204,6 +211,11 @@ Local functions
204
211
  Exports
205
212
  - `createAuthRouteVisibilityResolver()`
206
213
 
214
+ ### `src/server/lib/signedLinks.js`
215
+ Exports
216
+ - `LINK_PARAM`
217
+ - `createSignedLinks({ secret, now = Date.now })`
218
+
207
219
  ### `src/server/membershipAccess.js`
208
220
  Exports
209
221
  - `resolveMembershipRoleId(membershipLike)`
@@ -382,6 +394,13 @@ Local functions
382
394
  - `normalizeAuthMethodStatus(entry)`
383
395
  - `normalizeSecurityActions(value = {})`
384
396
 
397
+ ### `src/shared/commands/authAppSessionCommands.js`
398
+ Exports
399
+ - `authAppNativeNonceCommand`
400
+ - `authAppNativeSignInCommand`
401
+ - `authAppSessionRefreshCommand`
402
+ - `authAppSessionRevokeCommand`
403
+
385
404
  ### `src/shared/commands/authCommandValidators.js`
386
405
  Exports
387
406
  - `authEmailFieldDefinition`
@@ -422,6 +441,12 @@ Exports
422
441
  - `AUTH_FIELD_MESSAGES`
423
442
  - `createCommandMessages({ fields = {}, defaultMessage = AUTH_FIELD_MESSAGES.invalidValue } = {})`
424
443
 
444
+ ### `src/shared/commands/authConnectionCommands.js`
445
+ Exports
446
+ - `authSessionFrameCommand`
447
+ - `authSessionLinkCommand`
448
+ - `authSessionTicketCommand`
449
+
425
450
  ### `src/shared/commands/authDevLoginAsCommand.js`
426
451
  Exports
427
452
  - `AUTH_DEV_LOGIN_AS_MESSAGES`
@@ -445,6 +470,7 @@ Exports
445
470
  - `authLoginOAuthStartParamsValidator`
446
471
  - `authLoginOAuthStartQueryValidator`
447
472
  - `authLoginOAuthStartOutputValidator`
473
+ - `authLoginOAuthStartAppOutputValidator`
448
474
  - `AUTH_LOGIN_OAUTH_START_MESSAGES`
449
475
  - `authLoginOAuthStartCommand`
450
476
 
@@ -547,6 +573,10 @@ Exports
547
573
  - `authPasswordResetCommand`
548
574
  - `authLogoutCommand`
549
575
  - `authSessionReadCommand`
576
+ - `authAppNativeNonceCommand`
577
+ - `authAppNativeSignInCommand`
578
+ - `authAppSessionRefreshCommand`
579
+ - `authAppSessionRevokeCommand`
550
580
  - `authSecondFactorReadCommand`
551
581
  - `authSecondFactorRecoveryCodesReplaceCommand`
552
582
  - `authSecondFactorRemoveCommand`
@@ -555,6 +585,9 @@ Exports
555
585
  - `authSecondFactorVerifyCommand`
556
586
  - `authEmailChangeConfirmCommand`
557
587
  - `authEmailChangeRequestCommand`
588
+ - `authSessionFrameCommand`
589
+ - `authSessionLinkCommand`
590
+ - `authSessionTicketCommand`
558
591
 
559
592
  ### `src/shared/index.js`
560
593
  Exports
@@ -14,6 +14,10 @@ Use this on demand; do not load the full index at startup.
14
14
 
15
15
  ### src
16
16
 
17
+ ### `src/server/lib/accountDeletion.js`
18
+ Exports
19
+ - `createLocalAccountDeletion({ backend, config, passwords, sessions, oauthProvidersById, fetchImpl, now })`
20
+
17
21
  ### `src/server/lib/accounts.js`
18
22
  Exports
19
23
  - `NO_PASSWORD`
@@ -29,9 +33,20 @@ Local functions
29
33
  - `devLoginAsUserNotFound({ email = "", userId = "" } = {})`
30
34
  - `normalizeInvitationInput(value)`
31
35
 
36
+ ### `src/server/lib/appleSignIn.js`
37
+ Exports
38
+ - `APPLE_ISSUER`
39
+ - `appleKeySet()`
40
+ - `createAppleClientSecret({ teamId, keyId, clientId, privateKey })`
41
+ - `readAppleNotification(payload, { clientIds, keySet })`
42
+ - `revokeAppleAuthorization({ apple, clientIds, authorizationCode, fetchImpl })`
43
+ Local functions
44
+ - `unverifiedNotification()`
45
+
32
46
  ### `src/server/lib/authPayloads.js`
33
47
  Exports
34
48
  - `DEV_AUTH_SESSION_PURPOSE`
49
+ - `FRAME_SESSION_PURPOSE`
35
50
  - `PROVIDER_ID`
36
51
  - `buildAuthPayload({ user, session, profileProjector, profileOptions = {} })`
37
52
  - `buildAuthResult({ user, session, appProfile })`
@@ -58,6 +73,8 @@ Local functions
58
73
  - `resolveConfirmationDelivery(env, { emailConfirmationSender, isStagingOrProduction, selfRegistration })`
59
74
  - `resolveEmailChangeDelivery({ emailChangeSender, isStagingOrProduction })`
60
75
  - `resolvePasswordMinLength(env)`
76
+ - `listSetting(value)`
77
+ - `resolveNativeSignInAudiences(env)`
61
78
 
62
79
  ### `src/server/lib/deliveries.js`
63
80
  Exports
@@ -168,18 +185,30 @@ Exports
168
185
  - `scryptPasswordStrategy`
169
186
  - `verifyPassword`
170
187
 
188
+ ### `src/server/lib/nativeSignIn.js`
189
+ Exports
190
+ - `NATIVE_PROVIDERS`
191
+ - `PUBLISHED_IDENTITY_KEYS`
192
+ - `createNativeIdentityVerifier({ audiences, keySets = PUBLISHED_IDENTITY_KEYS })`
193
+ Local functions
194
+ - `unverifiedSignIn()`
195
+ - `sha256Hex(text)`
196
+ - `isVerified(value)`
197
+
171
198
  ### `src/server/lib/oauth.js`
172
199
  Exports
173
200
  - `createOAuthClients({ logger })`
174
201
  - `resolveOAuthProviders(env = {})`
175
202
  Local functions
203
+ - `resolveAppleProvider(env)`
176
204
  - `signInError(statusCode, message, { code, provider = null })`
177
205
  - `unverifiedSignIn()`
178
206
  - `displayNameFrom(source = {})`
207
+ - `appleFirstSignInName(user)`
179
208
 
180
209
  ### `src/server/lib/oauthFlows.js`
181
210
  Exports
182
- - `createLocalOAuthFlows({ backend, config, firstAccountSetup, invitationContextResolver, logger, oauthProvidersById, profileProjector, securityStatus, sessions })`
211
+ - `createLocalOAuthFlows({ backend, config, firstAccountSetup, invitationContextResolver, logger, oauthProvidersById, profileProjector, securityStatus, sessions, identityKeySets = PUBLISHED_IDENTITY_KEYS })`
183
212
 
184
213
  ### `src/server/lib/passSignIn.js`
185
214
  Exports
@@ -247,7 +276,9 @@ Exports
247
276
 
248
277
  ### `src/server/lib/service.js`
249
278
  Exports
250
- - `createLocalAuthService({ backend, config, confirmationMode = confirmEveryRegistrationByLink, confirmationSender, deliveries: givenDeliveries = null, emailChangeSender, firstAccountSetup: givenFirstAccountSetup = null, invitationContextResolver, logger, passIdentity = noPassIdentities, passwordStrategy, profileProjector, recoverySender, secondFactorEvents, signInEvents })`
279
+ - `createLocalAuthService({ backend, config, confirmationMode = confirmEveryRegistrationByLink, confirmationSender, deliveries: givenDeliveries = null, emailChangeSender, firstAccountSetup: givenFirstAccountSetup = null, invitationContextResolver, logger, passIdentity = noPassIdentities, passwordStrategy, profileProjector, recoverySender, secondFactorEvents, signInEvents, identityKeySets = PUBLISHED_IDENTITY_KEYS, appleFetch = fetchFromNetwork })`
280
+ Local functions
281
+ - `fetchFromNetwork(url, init)`
251
282
 
252
283
  ### `src/server/lib/serviceKeys.js`
253
284
  Exports
@@ -273,6 +304,7 @@ Local functions
273
304
  - `unauthenticatedAuthResult(clearSession = false)`
274
305
  - `clearCookieOptions(config)`
275
306
  - `buildAccessToken({ user, session, secret, ttlSeconds = ACCESS_TTL_SECONDS })`
307
+ - `appSessionTokens(session)`
276
308
  - `buildSessionPayload({ user, session, refreshToken, secret })`
277
309
 
278
310
  ### `src/server/lib/signInThrottle.js`
@@ -334,6 +366,14 @@ Exports
334
366
 
335
367
  ### test-support
336
368
 
369
+ ### `test-support/appSessionScenario.js`
370
+ Exports
371
+ - `appRequest(accessToken = "")`
372
+ - `exerciseAppSessions({ service })`
373
+ Local functions
374
+ - `linkRequest(linkedSession)`
375
+ - `recordingReply(request)`
376
+
337
377
  ### `test-support/emailChangeScenario.js`
338
378
  Exports
339
379
  - `emailChangeService(backend)`
@@ -50,6 +50,7 @@ Local functions
50
50
  - `oauthAttemptRecords(attempts, options)`
51
51
  - `signInFailureRecords(failures, options)`
52
52
  - `registrationRecords(registrations, options)`
53
+ - `deleteAccount(resources, identities, userId, options)`
53
54
  - `createRecords(resources, identities, options)`
54
55
 
55
56
  ### `src/server/lib/identityStore.js`
@@ -148,6 +149,10 @@ Exports
148
149
  Exports
149
150
  - None
150
151
 
152
+ ### `migrations/auth_local_db_sessions_app_tokens.cjs`
153
+ Exports
154
+ - None
155
+
151
156
  ### `migrations/auth_local_db_sessions_metadata.cjs`
152
157
  Exports
153
158
  - None
@@ -76,6 +76,8 @@ Local functions
76
76
  ### `src/client/composables/loginView/useLoginViewActions.js`
77
77
  Exports
78
78
  - `useLoginViewActions({ state, validation, queryClient, errorRuntime, oauthLaunchClient })`
79
+ Local functions
80
+ - `signInNativelyIfOffered(oauthLaunchClient, provider)`
79
81
 
80
82
  ### `src/client/composables/loginView/useLoginViewState.js`
81
83
  Exports
@@ -149,6 +151,7 @@ Exports
149
151
  - `useSecondFactorStepUp`
150
152
  - `useAuthStore`
151
153
  - `useAuthGuardRuntime`
154
+ - `useAuthOAuthLaunchClient`
152
155
  - `completeOAuthPopupSignIn`
153
156
  - `createPopupOAuthLaunchClient`
154
157
  - `completeOAuthCallbackFromCurrentLocation`
@@ -185,9 +188,30 @@ Exports
185
188
  Exports
186
189
  - `resolveSurfaceLinkTarget({ context = null, surface = "", explicitTo = "", scopedSuffix = "", unscopedSuffix = "" } = {})`
187
190
 
191
+ ### `src/client/native/secureStore.js`
192
+ Exports
193
+ - `NATIVE_BIOMETRIC`
194
+ - `createSecureStore({ plugin, server, biometric })`
195
+ - `type NativeBiometricPlugin`
196
+
197
+ ### `src/client/native/socialSignIn.js`
198
+ Exports
199
+ - `NO_SOCIAL_SIGN_IN`
200
+ - `SOCIAL_LOGIN`
201
+ - `createSocialSignIn({ plugin, settings })`
202
+ - `signInWithNativeSheet({ provider, socialSignIn, request })`
203
+ - `type SocialLoginPlugin`
204
+
188
205
  ### `src/client/providers/AuthWebClientProvider.js`
189
206
  Exports
190
207
  - `AuthWebClientProvider`
208
+ Local functions
209
+ - `startAppSessionInsideApp(mobile)`
210
+
211
+ ### `src/client/runtime/appTokenStore.js`
212
+ Exports
213
+ - `TOKENLESS_APP_CREDENTIALS`
214
+ - `createAppTokenStore({ secureStore, client })`
191
215
 
192
216
  ### `src/client/runtime/authCallbackUrlParams.js`
193
217
  Exports
@@ -200,14 +224,16 @@ Exports
200
224
  ### `src/client/runtime/authClient.js`
201
225
  Exports
202
226
  - `createAuthClient({ mobile, pinia, realtime, shell, vueApp })`
203
- - `createMobileCallbackCompleter()`
227
+ - `createMobileCallbackCompleter({ takeAttempt = noHeldAttempt } = {})`
204
228
  - `NO_AUTH_REALTIME`
205
229
  Local functions
206
230
  - `releaseNothing()`
231
+ - `socketTicketAuth()`
232
+ - `noHeldAttempt()`
207
233
 
208
234
  ### `src/client/runtime/authGuardRuntime.js`
209
235
  Exports
210
- - `createAuthGuardRuntime({ placementRuntime, sessionPath = DEFAULT_SESSION_PATH, loginRoute = DEFAULT_LOGIN_ROUTE, fetchImplementation = globalThis.fetch, refreshOnForeground = DEFAULT_REFRESH_ON_FOREGROUND, refreshOnReconnect = DEFAULT_REFRESH_ON_RECONNECT, realtimeSocket = NO_REALTIME_REFRESH_SOCKET, realtimeRefreshEvents = DEFAULT_REALTIME_REFRESH_EVENTS })`
236
+ - `createAuthGuardRuntime({ placementRuntime, sessionPath = DEFAULT_SESSION_PATH, loginRoute = DEFAULT_LOGIN_ROUTE, fetchImplementation = appFetch, refreshOnForeground = DEFAULT_REFRESH_ON_FOREGROUND, refreshOnReconnect = DEFAULT_REFRESH_ON_RECONNECT, realtimeSocket = NO_REALTIME_REFRESH_SOCKET, realtimeRefreshEvents = DEFAULT_REALTIME_REFRESH_EVENTS })`
211
237
  - `isAuthGuardRuntime(value)`
212
238
  - `initializeAuthGuardRuntime(input = {})`
213
239
  - `refreshAuthGuardState(input = {})`
@@ -219,7 +245,7 @@ Local functions
219
245
  - `normalizeOAuthProviders(rawProviders)`
220
246
  - `normalizeAuthState(payload = {})`
221
247
  - `applyAuthContext(nextState, placementRuntime)`
222
- - `readSessionState({ sessionPath = DEFAULT_SESSION_PATH, fetchImplementation = globalThis.fetch } = {})`
248
+ - `readSessionState({ sessionPath = DEFAULT_SESSION_PATH, fetchImplementation = appFetch } = {})`
223
249
  - `resolveReturnToPath(context, { absolute = false } = {})`
224
250
  - `toLoginRedirect(loginRoute, context)`
225
251
  - `evaluateAuthGuard({ guard, context, loginRoute, authState = DEFAULT_AUTH_STATE })`
@@ -261,13 +287,13 @@ Local functions
261
287
  Exports
262
288
  - `OAUTH_COMPLETE_TIMEOUT_MS`
263
289
  - `completeOAuthCallbackFromCurrentLocation(options = {})`
264
- - `completeOAuthCallbackFromUrl({ url = "", fallbackReturnTo = "/", allowedReturnToOrigins = [], defaultProvider = "", request = authHttpRequest, refreshSession = noRefreshedSession, timeoutMs = OAUTH_COMPLETE_TIMEOUT_MS } = {})`
290
+ - `completeOAuthCallbackFromUrl({ url = "", fallbackReturnTo = "/", allowedReturnToOrigins = [], defaultProvider = "", request = authHttpRequest, refreshSession = noRefreshedSession, timeoutMs = OAUTH_COMPLETE_TIMEOUT_MS, attempt = "" } = {})`
265
291
  - `readOAuthCallbackParamsFromUrl(url = "")`
266
292
  Local functions
267
293
  - `noRefreshedSession()`
268
294
  - `withinTimeLimit(timeoutMs, work)`
269
295
  - `readErrorParams(value = "")`
270
- - `buildOAuthCompletePayload({ callbackParams = null, provider = "", hasSessionPair = false } = {})`
296
+ - `buildOAuthCompletePayload({ callbackParams = null, provider = "", hasSessionPair = false, attempt = "" } = {})`
271
297
 
272
298
  ### `src/client/runtime/oauthLaunchClient.js`
273
299
  Exports
@@ -291,6 +317,7 @@ Local functions
291
317
  - `storageOf(win)`
292
318
  - `popupFeatures(win, width = 520, height = 680)`
293
319
  - `openChannel(win)`
320
+ - `noNativeAuthorization()`
294
321
  - `sameOriginOpener(win)`
295
322
 
296
323
  ### `src/client/runtime/secondFactorRequests.js`
@@ -304,6 +331,7 @@ Exports
304
331
 
305
332
  ### `src/client/runtime/useSignOut.js`
306
333
  Exports
334
+ - `addSignOutStep(step)`
307
335
  - `useSignOut({ currentSurface, goToEntry, authGuardRuntime = useRequiredAuthGuardRuntime(), returnTo, resolveReturnToPath })`
308
336
  - `createSignOutAction({ currentSurface, goToEntry, authGuardRuntime, returnTo = "", resolveReturnToPath = noReturnToPath })`
309
337
  - `performSignOutRequest({ authGuardRuntime })`
@@ -450,19 +478,30 @@ Local functions
450
478
  - `developmentExchange(env)`
451
479
  - `signedInIdentity(answered, asked)`
452
480
 
481
+ ### `src/server/routes/appleRoutes.js`
482
+ Exports
483
+ - `registerAppleRoutes(fastify, { service })`
484
+
453
485
  ### `src/server/routes/authRoutes.js`
454
486
  Exports
455
487
  - `buildRoutes(controller, { includeDevLoginAs = false, rateLimits = DEFAULT_AUTH_RATE_LIMITS } = {})`
456
488
 
489
+ ### `src/server/routes/connectionRoutes.js`
490
+ Exports
491
+ - `registerConnectionRoutes(router, { rateLimits, service })`
492
+
457
493
  ### `src/server/routes/emailChangeRoutes.js`
458
494
  Exports
459
495
  - `registerEmailChangeRoutes(router, { rateLimits })`
460
496
 
497
+ ### `src/server/routes/formBody.js`
498
+ Exports
499
+ - `FORM_CONTENT_TYPE`
500
+ - `parseForm(_request, body, done)`
501
+
461
502
  ### `src/server/routes/passSignInRoutes.js`
462
503
  Exports
463
504
  - `registerPassSignInRoutes(fastify, { service, rateLimit })`
464
- Local functions
465
- - `parseForm(_request, body, done)`
466
505
 
467
506
  ### `src/server/routes/secondFactorRoutes.js`
468
507
  Exports
@@ -16,7 +16,11 @@ Use this on demand; do not load the full index at startup.
16
16
 
17
17
  ### `src/client/index.js`
18
18
  Exports
19
+ - `NO_APP_CREDENTIALS`
20
+ - `appFetch`
21
+ - `configureAppCredentials`
19
22
  - `createHttpClient`
23
+ - `signOutAppCredentials`
20
24
  - `createTransientRetryHttpClient`
21
25
  - `normalizeFieldErrors`
22
26
  - `resolveFieldErrors`
@@ -52,8 +56,13 @@ Exports
52
56
 
53
57
  ### `src/shared/clientRuntime/client.js`
54
58
  Exports
55
- - `createHttpClient({ fetchImpl = fetchWithGlobalFetch, resolveRequestUrl: resolveConfiguredRequestUrl = keepRequestUrl, hooks = {}, unsafeMethods: configuredUnsafeMethods = DEFAULT_UNSAFE_METHODS, csrf: { enabled: csrfEnabledByDefault = true, sessionPath: csrfSessionPath = "/api/session", headerName: csrfHeaderName = "csrf-token", tokenField: csrfTokenField = "csrfToken", retryableErrorCodes: csrfRetryableErrorCodes } = {}, credentials = "same-origin", readTimeoutMs = DEFAULT_READ_TIMEOUT_MS } = {})`
59
+ - `NO_APP_CREDENTIALS`
60
+ - `appFetch(url, init = {})`
61
+ - `configureAppCredentials(credentials)`
62
+ - `createHttpClient({ fetchImpl = fetchWithGlobalFetch, resolveRequestUrl: resolveConfiguredRequestUrl = keepRequestUrl, hooks = {}, unsafeMethods: configuredUnsafeMethods = DEFAULT_UNSAFE_METHODS, csrf: { enabled: csrfEnabledByDefault = true, sessionPath: csrfSessionPath = "/api/session", headerName: csrfHeaderName = "csrf-token", tokenField: csrfTokenField = "csrfToken", retryableErrorCodes: csrfRetryableErrorCodes } = {}, credentials = "same-origin", readTimeoutMs = DEFAULT_READ_TIMEOUT_MS, appCredentials = PAGE_APP_CREDENTIALS } = {})`
63
+ - `signOutAppCredentials()`
56
64
  - `type HttpClientHooks`
65
+ - `type AppCredentials`
57
66
  Local functions
58
67
  - `requestSignalWithDeadline(signal, timeoutMs)`
59
68
  - `normalizeMethod(method)`
@@ -71,6 +80,7 @@ Local functions
71
80
  - `isObjectBody(value)`
72
81
  - `isQueryValuePresent(value)`
73
82
  - `appendRequestQueryToUrl(url, query = null, transport = null)`
83
+ - `addAppHeaders(appCredentials, headers)`
74
84
 
75
85
  ### `src/shared/clientRuntime/errors.js`
76
86
  Exports
@@ -608,6 +608,23 @@ Exports
608
608
  - `createHttpWebClient`
609
609
  - `getHttpWebClient`
610
610
  - `httpWebClient`
611
+ - `openEventStream`
612
+ - `serverUrl`
613
+ - `frameUrl`
614
+ - `signedUrl`
615
+ - `openWebSocket`
616
+
617
+ ### `src/client/lib/connectionTicket.js`
618
+ Exports
619
+ - `keepConnected({ path, purpose, open, droppedEvent, request, document, window })`
620
+ - `requestWithPageClient(path, options)`
621
+ Local functions
622
+ - `requestConnectionTicket(purpose, request)`
623
+ - `ticketedUrl(path, ticket)`
624
+
625
+ ### `src/client/lib/eventStream.js`
626
+ Exports
627
+ - `openEventStream(path, { createEventSource = (url, init) => new globalThis.EventSource(url, init), request = requestWithPageClient } = {})`
611
628
 
612
629
  ### `src/client/lib/httpClient.js`
613
630
  Exports
@@ -627,6 +644,25 @@ Exports
627
644
  Local functions
628
645
  - `toPermissionSet(values)`
629
646
 
647
+ ### `src/client/lib/serverUrl.js`
648
+ Exports
649
+ - `appServerAddress()`
650
+ - `serverUrl(path, { address = appServerAddress() } = {})`
651
+ Local functions
652
+ - `runsInNativeApp()`
653
+ - `pageOrigin()`
654
+
655
+ ### `src/client/lib/signedUrl.js`
656
+ Exports
657
+ - `frameUrl(path, options = {})`
658
+ - `signedUrl(path, { ttl = 0, request = (linkPath, options) => getHttpWebClient().request(linkPath, options) } = {})`
659
+
660
+ ### `src/client/lib/webSocket.js`
661
+ Exports
662
+ - `openWebSocket(path, { createWebSocket = (url) => new globalThis.WebSocket(url), request = requestWithPageClient } = {})`
663
+ Local functions
664
+ - `webSocketAddress(url)`
665
+
630
666
  ### `src/client/rowActions.js`
631
667
  Exports
632
668
  - `defineCrudListRowActions(actions = [])`
@@ -16,7 +16,15 @@ Use this on demand; do not load the full index at startup.
16
16
 
17
17
  ### `src/client/browser.js`
18
18
  Exports
19
+ - `browserShare(content)`
19
20
  - `pageLocation()`
21
+ - `subscribeToPageVisibility(handler)`
22
+
23
+ ### `src/client/components/AppUpdateRequired.vue`
24
+ Exports
25
+ - None
26
+ Local functions
27
+ - `openStore()`
20
28
 
21
29
  ### `src/client/i18n.js`
22
30
  Exports
@@ -32,22 +40,79 @@ Exports
32
40
  - `createNoopCapacitorAppAdapter`
33
41
  - `resolveCapacitorAppPlugin`
34
42
 
43
+ ### `src/client/native/appShell.js`
44
+ Exports
45
+ - `createAppShell({ bridge = CAPACITOR_BRIDGE, systemBars = SystemBars } = {})`
46
+ Local functions
47
+ - `removeNothing()`
48
+ - `doNothing()`
49
+
50
+ ### `src/client/native/appShortcuts.js`
51
+ Exports
52
+ - `APP_SHORTCUTS`
53
+ - `NO_APP_SHORTCUTS`
54
+ - `createAppShortcuts({ plugin })`
55
+ - `type AppShortcut`
56
+ - `type AppShortcuts`
57
+ Local functions
58
+ - `ownPath(path)`
59
+
60
+ ### `src/client/native/liveActivities.js`
61
+ Exports
62
+ - `LIVE_ACTIVITIES`
63
+ - `NO_LIVE_ACTIVITIES`
64
+ - `createLiveActivities({ plugin, platform })`
65
+ - `type LiveActivities`
66
+
67
+ ### `src/client/native/pluginInterface.js`
68
+ Exports
69
+ - `CAPACITOR_BRIDGE`
70
+ - `nativePlugin(bridge, name)`
71
+ - `pluginNotInstalled(packageName)`
72
+ - `type CapacitorBridge`
73
+
74
+ ### `src/client/native/sharedStore.js`
75
+ Exports
76
+ - `MAX_VALUE_BYTES`
77
+ - `NO_SHARED_STORE`
78
+ - `WIDGET_BRIDGE`
79
+ - `createSharedStore({ plugin, platform, settings })`
80
+ - `type SharedStore`
81
+
82
+ ### `src/client/native/shareIn.js`
83
+ Exports
84
+ - `NO_SHARE_IN`
85
+ - `SHARE_TARGET`
86
+ - `createShareIn({ plugin, fileUrl, fetchImpl, logger })`
87
+ - `type SharedContent`
88
+ - `type ShareIn`
89
+
90
+ ### `src/client/native/testing.js`
91
+ Exports
92
+ - `createFakeCapacitorBridge({ platform = "ios", plugins = {} } = {})`
93
+ - `createFakeListenerPlugin(methods = {})`
94
+
35
95
  ### `src/client/providers/MobileCapacitorClientProvider.js`
36
96
  Exports
37
97
  - `MobileCapacitorClientProvider`
38
98
  - `MobileCapacitorRuntimeProvider`
39
- - `installCapacitorAwareGlobalFetch({ adapter, apiBaseUrl = "", globalObject = globalThis })`
99
+ - `installCapacitorAwareGlobalFetch({ adapter, apiBaseUrl = "", appHeaders, onUpdateRequired, globalObject = globalThis })`
40
100
  Local functions
41
101
  - `keepPageFetch()`
102
+ - `appVersionHeaders(appShell, config)`
103
+ - `sharedStoreSettings()`
42
104
 
43
105
  ### `src/client/runtime/apiRequestClient.js`
44
106
  Exports
45
- - `createCapacitorAwareFetch({ fetchImpl = globalThis.fetch, adapter, apiBaseUrl = "" })`
107
+ - `NO_APP_HEADERS`
108
+ - `createCapacitorAwareFetch({ fetchImpl = globalThis.fetch, adapter, apiBaseUrl = "", appHeaders = NO_APP_HEADERS, onUpdateRequired = ignoreUpdateRequired })`
46
109
  - `isCapacitorApiRequestTarget(url = "")`
47
110
  - `resolveCapacitorAbsoluteHttpUrl(url = "", apiBaseUrl = "", messages = {})`
48
111
  Local functions
49
112
  - `parseAbsoluteHttpUrl(url = "", { apiBaseUrl = "", emptyUrlMessage = "jskit.mobile.apiRequest.urlRequired", missingApiBaseUrlMessage = "jskit.mobile.apiRequest.apiBaseUrlRequired", invalidApiBaseUrlMessage = "jskit.mobile.apiRequest.apiBaseUrlInvalid", invalidApiBaseUrlProtocolMessage = "jskit.mobile.apiRequest.apiBaseUrlProtocol", invalidUrlProtocolMessage = "jskit.mobile.apiRequest.urlProtocol" } = {})`
50
113
  - `normalizeFetchInput(input = "")`
114
+ - `ignoreUpdateRequired()`
115
+ - `withAppHeaders(input, init, appHeaders)`
51
116
 
52
117
  ### `src/client/runtime/globalCapacitorAppAdapter.js`
53
118
  Exports
@@ -63,16 +128,19 @@ Local functions
63
128
 
64
129
  ### `src/client/runtime/mobileCapacitorRuntime.js`
65
130
  Exports
66
- - `createMobileCapacitorRuntime({ router, mobileConfig, adapter, placementRuntime = NO_PLACEMENT_RUNTIME, authCallbackCompleter = NO_AUTH_CALLBACK_COMPLETER, authGuardRuntime = NO_AUTH_GUARD_RUNTIME, logger })`
131
+ - `createMobileCapacitorRuntime({ router, mobileConfig, adapter, appShell, placementRuntime = NO_PLACEMENT_RUNTIME, authCallbackCompleter = NO_AUTH_CALLBACK_COMPLETER, authGuardRuntime = NO_AUTH_GUARD_RUNTIME, logger, openInBrowser = openInSystemBrowser, appShortcuts = NO_SHORTCUTS })`
67
132
  Local functions
133
+ - `openInSystemBrowser(url)`
68
134
  - `extractPathname(value = "")`
69
135
  - `isAuthCallbackTargetPath(targetPath, mobileConfig)`
70
136
 
71
137
  ### `src/client/runtime/mobileLaunchRouting.js`
72
138
  Exports
73
139
  - `normalizeIncomingAppUrl(url = "", mobileConfig, { currentOrigin = "", allowedHttpOrigins = [] } = {})`
74
- - `registerMobileLaunchRouting({ router, mobileConfig, getInitialLaunchUrl, subscribeToLaunchUrls, resolveTargetPath, currentOrigin = pageLocation().origin, allowedHttpOrigins = [], logger = SILENT_LAUNCH_LOGGER })`
140
+ - `registerMobileLaunchRouting({ router, mobileConfig, getInitialLaunchUrl, subscribeToLaunchUrls, resolveTargetPath, currentOrigin = pageLocation().origin, allowedHttpOrigins = [], logger = SILENT_LAUNCH_LOGGER, isKnownPath = everyPathKnown, openInBrowser = openNothing })`
75
141
  Local functions
142
+ - `everyPathKnown()`
143
+ - `openNothing()`
76
144
  - `buildNormalizedRoutePath(pathname = "/", search = "", hash = "")`
77
145
  - `normalizeResolvedRoutePath(value = "", fallback = "")`
78
146
  - `normalizeAllowedHttpOrigins({ mobileConfig, currentOrigin = "", allowedHttpOrigins = [] } = {})`
@@ -80,9 +148,13 @@ Local functions
80
148
 
81
149
  ### `src/client/runtime/oauthLaunchClient.js`
82
150
  Exports
83
- - `createCapacitorAwareOAuthLaunchClient({ adapter, browserPlugin = Browser, location = pageLocation(), apiBaseUrl = "" })`
151
+ - `createCapacitorAwareOAuthLaunchClient({ adapter, browserPlugin = Browser, location = pageLocation(), apiBaseUrl = "", fetchImpl = (...args) => globalThis.fetch(...args) })`
84
152
  - `resolveCapacitorLaunchUrl(url = "", apiBaseUrl = "")`
85
153
 
154
+ ### `src/client/runtime/shareIn.js`
155
+ Exports
156
+ - `createShareInbox({ shareIn, router, path })`
157
+
86
158
  ### `src/client/types.js`
87
159
  Exports
88
160
  - `type ClientRouter`
@@ -93,9 +165,53 @@ Exports
93
165
  - `type CapacitorAppAdapter`
94
166
  - `type CapacitorListenerHandle`
95
167
  - `type CapacitorAppPlugin`
168
+ - `type CapacitorListenerPlugin`
169
+ - `type AppUpdatePlugin`
170
+ - `type AppShell`
96
171
  - `type PageLocation`
97
172
  - `type MobilePlacementRuntime`
98
173
  - `type MobileAuthCallbackCompleter`
99
174
  - `type MobileAuthGuardRuntime`
100
175
  - `type MobileLaunchLogger`
101
176
  - `type MobileCapability`
177
+ - `type ShareInbox`
178
+
179
+ ### `src/server/MobileCapacitorServerProvider.js`
180
+ Exports
181
+ - `MobileCapacitorServerProvider`
182
+
183
+ ### `src/server/versionFloor.js`
184
+ Exports
185
+ - `APP_PLATFORM_HEADER`
186
+ - `APP_VERSION_HEADER`
187
+ - `checkAppVersion(floors, headers)`
188
+ - `compareVersions(left, right)`
189
+ - `readVersionFloors(env)`
190
+
191
+ ### `src/server/wellKnown.js`
192
+ Exports
193
+ - `ANDROID_PATH`
194
+ - `APPLE_PATH`
195
+ - `readWellKnownFiles(config, env)`
196
+ - `registerWellKnownRoutes(fastify, files)`
197
+ Local functions
198
+ - `appleAppSiteAssociation({ teamId, bundleId })`
199
+ - `assetLinks({ packageName, fingerprints })`
200
+
201
+ ### patterns
202
+
203
+ ### `patterns/android-application/example/src/placement.js`
204
+ Exports
205
+ - `getPlacements()`
206
+
207
+ ### `patterns/ios-application/example/src/placement.js`
208
+ Exports
209
+ - `getPlacements()`
210
+
211
+ ### `patterns/ios-live-activity/example/src/deliveryActivity.js`
212
+ Exports
213
+ - `startDeliveryActivity(mobile, http, delivery)`
214
+
215
+ ### `patterns/ios-widget/example/src/widgetSummary.js`
216
+ Exports
217
+ - `writeWidgetSummary(mobile, summary)`
@@ -90,6 +90,8 @@ Local functions
90
90
  - `timestamp(value)`
91
91
  - `unexpired(lot, now)`
92
92
  - `available(lots, now)`
93
+ - `deficitOf(state)`
94
+ - `takeFromLots(lots, quantity, now)`
93
95
  - `once(tx, key, input, work)`
94
96
  - `grant(tx, { reference: id, units: quantity, expiresAt }, now)`
95
97