@jskit-ai/agent-docs 0.1.397 → 0.1.398
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/guide/agent/app-extras/assistant-conversation.md +1 -2
- package/guide/agent/app-extras/assistant.md +171 -20
- package/guide/agent/app-extras/mobile-capacitor.md +110 -4
- package/guide/agent/app-extras/push-notifications.md +149 -0
- package/guide/agent/app-extras/realtime.md +11 -0
- package/guide/agent/app-setup/authentication.md +93 -1
- package/guide/agent/framework/client-features.md +65 -0
- package/guide/agent/framework/test-pass.md +3 -1
- package/guide/agent/framework/typed-features.md +12 -0
- package/guide/agent/index.md +1 -0
- package/guide/agent/recipes/file-uploads-and-images.md +24 -1
- package/guide/agent/recipes/installable-app.md +76 -82
- package/guide/agent/recipes/payments-and-subscriptions.md +30 -1
- package/package.json +1 -1
- package/patterns/feature-package/example/booking-engine/package.json +1 -1
- package/patterns/minimal-foundation/example/config/public.js +9 -1
- package/patterns/minimal-foundation/example/package.json +3 -3
- package/patterns/shell-foundation/example/config/public.js +9 -1
- package/patterns/shell-foundation/example/package.json +4 -4
- package/patterns/shell-foundation/example/packages/main/package.json +1 -1
- package/reference/autogen/PATTERN_INDEX.md +106 -40
- package/reference/autogen/README.md +4 -0
- package/reference/autogen/packages/assistant-core.md +4 -2
- package/reference/autogen/packages/assistant-runtime.md +14 -3
- package/reference/autogen/packages/auth-core.md +33 -0
- package/reference/autogen/packages/auth-provider-local-core.md +35 -2
- package/reference/autogen/packages/auth-provider-local-db-core.md +4 -0
- package/reference/autogen/packages/auth-web.md +42 -5
- package/reference/autogen/packages/http-runtime.md +9 -1
- package/reference/autogen/packages/http-web.md +36 -0
- package/reference/autogen/packages/mobile-capacitor.md +121 -5
- package/reference/autogen/packages/payments-core.md +2 -0
- package/reference/autogen/packages/push-core.md +128 -0
- package/reference/autogen/packages/push-web.md +99 -0
- package/reference/autogen/packages/realtime.md +6 -3
- package/reference/autogen/packages/store-purchases-core.md +113 -0
- package/reference/autogen/packages/store-purchases-web.md +55 -0
- package/reference/autogen/packages/uploads-image-web.md +2 -1
- package/reference/autogen/packages/uploads-runtime.md +21 -1
- package/reference/autogen/tooling/jskit-catalog.md +23 -1
- package/reference/autogen/tooling/jskit-release.md +4 -1
- package/skills/jskit/references/client-features.md +65 -0
- package/skills/jskit/references/pattern-index.md +106 -40
- package/skills/jskit/references/patterns/app/minimal-foundation/example/config/public.js +9 -1
- package/skills/jskit/references/patterns/app/minimal-foundation/example/package.json +3 -3
- package/skills/jskit/references/patterns/app/shell-foundation/example/config/public.js +9 -1
- package/skills/jskit/references/patterns/app/shell-foundation/example/package.json +4 -4
- package/skills/jskit/references/patterns/app/shell-foundation/example/packages/main/package.json +1 -1
- package/skills/jskit/references/patterns/auth/accounts-hub/example/package.json +3 -3
- package/skills/jskit/references/patterns/auth/oidc-sign-in/example/package.json +2 -2
- package/skills/jskit/references/patterns/auth/supabase-auth/example/package.json +1 -1
- package/skills/jskit/references/patterns/connectors/calendar-cli/example/package.json +5 -5
- package/skills/jskit/references/patterns/crud/crud-feature-package/example/packages/books/package.json +3 -3
- package/skills/jskit/references/patterns/database/mysql-application/example/package.json +2 -2
- package/skills/jskit/references/patterns/database/postgres-application/example/package.json +2 -2
- package/skills/jskit/references/patterns/mobile/android-app-actions/PATTERN.md +78 -0
- package/skills/jskit/references/patterns/mobile/android-app-actions/example/android/app/src/main/java/com/example/app/SummaryWidget.kt +33 -0
- package/skills/jskit/references/patterns/mobile/android-app-actions/example/android/app/src/main/res/layout/summary_widget.xml +17 -0
- package/skills/jskit/references/patterns/mobile/android-app-actions/example/android/app/src/main/res/xml/shortcuts.xml +16 -0
- package/skills/jskit/references/patterns/mobile/android-app-actions/example/android/app/src/main/res/xml/summary_widget_info.xml +8 -0
- package/skills/jskit/references/patterns/mobile/android-application/PATTERN.md +45 -2
- package/skills/jskit/references/patterns/mobile/android-application/example/android/app/src/main/AndroidManifest.xml +65 -0
- package/skills/jskit/references/patterns/mobile/android-application/example/src/placement.js +19 -0
- package/skills/jskit/references/patterns/mobile/ios-app-intents/PATTERN.md +55 -0
- package/skills/jskit/references/patterns/mobile/ios-app-intents/example/ios/App/App/Intents/ExampleShortcuts.swift +9 -0
- package/skills/jskit/references/patterns/mobile/ios-app-intents/example/ios/App/App/Intents/UnreadCountIntent.swift +33 -0
- package/skills/jskit/references/patterns/mobile/ios-application/PATTERN.md +169 -0
- package/skills/jskit/references/patterns/mobile/ios-application/example/capacitor.config.json +10 -0
- package/skills/jskit/references/patterns/mobile/ios-application/example/ios/App/App/App.entitlements +12 -0
- package/skills/jskit/references/patterns/mobile/ios-application/example/ios/App/App/App.swift +20 -0
- package/skills/jskit/references/patterns/mobile/ios-application/example/ios/App/App/Info.plist +63 -0
- package/skills/jskit/references/patterns/mobile/ios-application/example/package.json +15 -0
- package/skills/jskit/references/patterns/mobile/ios-application/example/src/placement.js +19 -0
- package/skills/jskit/references/patterns/mobile/ios-live-activity/PATTERN.md +73 -0
- package/skills/jskit/references/patterns/mobile/ios-live-activity/example/ios/App/LiveActivities/LiveActivitiesBundle.swift +13 -0
- package/skills/jskit/references/patterns/mobile/ios-live-activity/example/src/deliveryActivity.js +33 -0
- package/skills/jskit/references/patterns/mobile/ios-share-extension/PATTERN.md +83 -0
- package/skills/jskit/references/patterns/mobile/ios-share-extension/example/ios/App/ShareExtension/Info.plist +31 -0
- package/skills/jskit/references/patterns/mobile/ios-share-extension/example/ios/App/ShareExtension/ShareExtension.entitlements +10 -0
- package/skills/jskit/references/patterns/mobile/ios-share-extension/example/ios/App/ShareExtension/ShareViewController.swift +94 -0
- package/skills/jskit/references/patterns/mobile/ios-widget/PATTERN.md +66 -0
- package/skills/jskit/references/patterns/mobile/ios-widget/example/ios/App/SummaryWidget/SummaryWidget.swift +64 -0
- package/skills/jskit/references/patterns/mobile/ios-widget/example/src/widgetSummary.js +10 -0
- package/skills/jskit/references/patterns/realtime/realtime-application/example/package.json +2 -2
- package/skills/jskit/references/patterns/server/feature-package/example/booking-engine/package.json +1 -1
- package/skills/jskit/references/patterns/users/user-administration-server/example/packages/users/package.json +3 -3
- package/skills/jskit/references/patterns/users/user-administration-server/example/packages/users-workspace/package.json +6 -6
- package/skills/jskit/references/test-pass.md +3 -1
- 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
|
|
@@ -29,9 +29,19 @@ Local functions
|
|
|
29
29
|
- `devLoginAsUserNotFound({ email = "", userId = "" } = {})`
|
|
30
30
|
- `normalizeInvitationInput(value)`
|
|
31
31
|
|
|
32
|
+
### `src/server/lib/appleSignIn.js`
|
|
33
|
+
Exports
|
|
34
|
+
- `APPLE_ISSUER`
|
|
35
|
+
- `appleKeySet()`
|
|
36
|
+
- `createAppleClientSecret({ teamId, keyId, clientId, privateKey })`
|
|
37
|
+
- `readAppleNotification(payload, { clientIds, keySet })`
|
|
38
|
+
Local functions
|
|
39
|
+
- `unverifiedNotification()`
|
|
40
|
+
|
|
32
41
|
### `src/server/lib/authPayloads.js`
|
|
33
42
|
Exports
|
|
34
43
|
- `DEV_AUTH_SESSION_PURPOSE`
|
|
44
|
+
- `FRAME_SESSION_PURPOSE`
|
|
35
45
|
- `PROVIDER_ID`
|
|
36
46
|
- `buildAuthPayload({ user, session, profileProjector, profileOptions = {} })`
|
|
37
47
|
- `buildAuthResult({ user, session, appProfile })`
|
|
@@ -58,6 +68,8 @@ Local functions
|
|
|
58
68
|
- `resolveConfirmationDelivery(env, { emailConfirmationSender, isStagingOrProduction, selfRegistration })`
|
|
59
69
|
- `resolveEmailChangeDelivery({ emailChangeSender, isStagingOrProduction })`
|
|
60
70
|
- `resolvePasswordMinLength(env)`
|
|
71
|
+
- `listSetting(value)`
|
|
72
|
+
- `resolveNativeSignInAudiences(env)`
|
|
61
73
|
|
|
62
74
|
### `src/server/lib/deliveries.js`
|
|
63
75
|
Exports
|
|
@@ -168,18 +180,30 @@ Exports
|
|
|
168
180
|
- `scryptPasswordStrategy`
|
|
169
181
|
- `verifyPassword`
|
|
170
182
|
|
|
183
|
+
### `src/server/lib/nativeSignIn.js`
|
|
184
|
+
Exports
|
|
185
|
+
- `NATIVE_PROVIDERS`
|
|
186
|
+
- `PUBLISHED_IDENTITY_KEYS`
|
|
187
|
+
- `createNativeIdentityVerifier({ audiences, keySets = PUBLISHED_IDENTITY_KEYS })`
|
|
188
|
+
Local functions
|
|
189
|
+
- `unverifiedSignIn()`
|
|
190
|
+
- `sha256Hex(text)`
|
|
191
|
+
- `isVerified(value)`
|
|
192
|
+
|
|
171
193
|
### `src/server/lib/oauth.js`
|
|
172
194
|
Exports
|
|
173
195
|
- `createOAuthClients({ logger })`
|
|
174
196
|
- `resolveOAuthProviders(env = {})`
|
|
175
197
|
Local functions
|
|
198
|
+
- `resolveAppleProvider(env)`
|
|
176
199
|
- `signInError(statusCode, message, { code, provider = null })`
|
|
177
200
|
- `unverifiedSignIn()`
|
|
178
201
|
- `displayNameFrom(source = {})`
|
|
202
|
+
- `appleFirstSignInName(user)`
|
|
179
203
|
|
|
180
204
|
### `src/server/lib/oauthFlows.js`
|
|
181
205
|
Exports
|
|
182
|
-
- `createLocalOAuthFlows({ backend, config, firstAccountSetup, invitationContextResolver, logger, oauthProvidersById, profileProjector, securityStatus, sessions })`
|
|
206
|
+
- `createLocalOAuthFlows({ backend, config, firstAccountSetup, invitationContextResolver, logger, oauthProvidersById, profileProjector, securityStatus, sessions, identityKeySets = PUBLISHED_IDENTITY_KEYS })`
|
|
183
207
|
|
|
184
208
|
### `src/server/lib/passSignIn.js`
|
|
185
209
|
Exports
|
|
@@ -247,7 +271,7 @@ Exports
|
|
|
247
271
|
|
|
248
272
|
### `src/server/lib/service.js`
|
|
249
273
|
Exports
|
|
250
|
-
- `createLocalAuthService({ backend, config, confirmationMode = confirmEveryRegistrationByLink, confirmationSender, deliveries: givenDeliveries = null, emailChangeSender, firstAccountSetup: givenFirstAccountSetup = null, invitationContextResolver, logger, passIdentity = noPassIdentities, passwordStrategy, profileProjector, recoverySender, secondFactorEvents, signInEvents })`
|
|
274
|
+
- `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 })`
|
|
251
275
|
|
|
252
276
|
### `src/server/lib/serviceKeys.js`
|
|
253
277
|
Exports
|
|
@@ -273,6 +297,7 @@ Local functions
|
|
|
273
297
|
- `unauthenticatedAuthResult(clearSession = false)`
|
|
274
298
|
- `clearCookieOptions(config)`
|
|
275
299
|
- `buildAccessToken({ user, session, secret, ttlSeconds = ACCESS_TTL_SECONDS })`
|
|
300
|
+
- `appSessionTokens(session)`
|
|
276
301
|
- `buildSessionPayload({ user, session, refreshToken, secret })`
|
|
277
302
|
|
|
278
303
|
### `src/server/lib/signInThrottle.js`
|
|
@@ -334,6 +359,14 @@ Exports
|
|
|
334
359
|
|
|
335
360
|
### test-support
|
|
336
361
|
|
|
362
|
+
### `test-support/appSessionScenario.js`
|
|
363
|
+
Exports
|
|
364
|
+
- `appRequest(accessToken = "")`
|
|
365
|
+
- `exerciseAppSessions({ service })`
|
|
366
|
+
Local functions
|
|
367
|
+
- `linkRequest(linkedSession)`
|
|
368
|
+
- `recordingReply(request)`
|
|
369
|
+
|
|
337
370
|
### `test-support/emailChangeScenario.js`
|
|
338
371
|
Exports
|
|
339
372
|
- `emailChangeService(backend)`
|
|
@@ -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
|
|
@@ -185,9 +187,30 @@ Exports
|
|
|
185
187
|
Exports
|
|
186
188
|
- `resolveSurfaceLinkTarget({ context = null, surface = "", explicitTo = "", scopedSuffix = "", unscopedSuffix = "" } = {})`
|
|
187
189
|
|
|
190
|
+
### `src/client/native/secureStore.js`
|
|
191
|
+
Exports
|
|
192
|
+
- `NATIVE_BIOMETRIC`
|
|
193
|
+
- `createSecureStore({ plugin, server, biometric })`
|
|
194
|
+
- `type NativeBiometricPlugin`
|
|
195
|
+
|
|
196
|
+
### `src/client/native/socialSignIn.js`
|
|
197
|
+
Exports
|
|
198
|
+
- `NO_SOCIAL_SIGN_IN`
|
|
199
|
+
- `SOCIAL_LOGIN`
|
|
200
|
+
- `createSocialSignIn({ plugin, settings })`
|
|
201
|
+
- `signInWithNativeSheet({ provider, socialSignIn, request })`
|
|
202
|
+
- `type SocialLoginPlugin`
|
|
203
|
+
|
|
188
204
|
### `src/client/providers/AuthWebClientProvider.js`
|
|
189
205
|
Exports
|
|
190
206
|
- `AuthWebClientProvider`
|
|
207
|
+
Local functions
|
|
208
|
+
- `startAppSessionInsideApp(mobile)`
|
|
209
|
+
|
|
210
|
+
### `src/client/runtime/appTokenStore.js`
|
|
211
|
+
Exports
|
|
212
|
+
- `TOKENLESS_APP_CREDENTIALS`
|
|
213
|
+
- `createAppTokenStore({ secureStore, client })`
|
|
191
214
|
|
|
192
215
|
### `src/client/runtime/authCallbackUrlParams.js`
|
|
193
216
|
Exports
|
|
@@ -200,10 +223,12 @@ Exports
|
|
|
200
223
|
### `src/client/runtime/authClient.js`
|
|
201
224
|
Exports
|
|
202
225
|
- `createAuthClient({ mobile, pinia, realtime, shell, vueApp })`
|
|
203
|
-
- `createMobileCallbackCompleter()`
|
|
226
|
+
- `createMobileCallbackCompleter({ takeAttempt = noHeldAttempt } = {})`
|
|
204
227
|
- `NO_AUTH_REALTIME`
|
|
205
228
|
Local functions
|
|
206
229
|
- `releaseNothing()`
|
|
230
|
+
- `socketTicketAuth()`
|
|
231
|
+
- `noHeldAttempt()`
|
|
207
232
|
|
|
208
233
|
### `src/client/runtime/authGuardRuntime.js`
|
|
209
234
|
Exports
|
|
@@ -261,13 +286,13 @@ Local functions
|
|
|
261
286
|
Exports
|
|
262
287
|
- `OAUTH_COMPLETE_TIMEOUT_MS`
|
|
263
288
|
- `completeOAuthCallbackFromCurrentLocation(options = {})`
|
|
264
|
-
- `completeOAuthCallbackFromUrl({ url = "", fallbackReturnTo = "/", allowedReturnToOrigins = [], defaultProvider = "", request = authHttpRequest, refreshSession = noRefreshedSession, timeoutMs = OAUTH_COMPLETE_TIMEOUT_MS } = {})`
|
|
289
|
+
- `completeOAuthCallbackFromUrl({ url = "", fallbackReturnTo = "/", allowedReturnToOrigins = [], defaultProvider = "", request = authHttpRequest, refreshSession = noRefreshedSession, timeoutMs = OAUTH_COMPLETE_TIMEOUT_MS, attempt = "" } = {})`
|
|
265
290
|
- `readOAuthCallbackParamsFromUrl(url = "")`
|
|
266
291
|
Local functions
|
|
267
292
|
- `noRefreshedSession()`
|
|
268
293
|
- `withinTimeLimit(timeoutMs, work)`
|
|
269
294
|
- `readErrorParams(value = "")`
|
|
270
|
-
- `buildOAuthCompletePayload({ callbackParams = null, provider = "", hasSessionPair = false } = {})`
|
|
295
|
+
- `buildOAuthCompletePayload({ callbackParams = null, provider = "", hasSessionPair = false, attempt = "" } = {})`
|
|
271
296
|
|
|
272
297
|
### `src/client/runtime/oauthLaunchClient.js`
|
|
273
298
|
Exports
|
|
@@ -304,6 +329,7 @@ Exports
|
|
|
304
329
|
|
|
305
330
|
### `src/client/runtime/useSignOut.js`
|
|
306
331
|
Exports
|
|
332
|
+
- `addSignOutStep(step)`
|
|
307
333
|
- `useSignOut({ currentSurface, goToEntry, authGuardRuntime = useRequiredAuthGuardRuntime(), returnTo, resolveReturnToPath })`
|
|
308
334
|
- `createSignOutAction({ currentSurface, goToEntry, authGuardRuntime, returnTo = "", resolveReturnToPath = noReturnToPath })`
|
|
309
335
|
- `performSignOutRequest({ authGuardRuntime })`
|
|
@@ -450,19 +476,30 @@ Local functions
|
|
|
450
476
|
- `developmentExchange(env)`
|
|
451
477
|
- `signedInIdentity(answered, asked)`
|
|
452
478
|
|
|
479
|
+
### `src/server/routes/appleRoutes.js`
|
|
480
|
+
Exports
|
|
481
|
+
- `registerAppleRoutes(fastify, { service })`
|
|
482
|
+
|
|
453
483
|
### `src/server/routes/authRoutes.js`
|
|
454
484
|
Exports
|
|
455
485
|
- `buildRoutes(controller, { includeDevLoginAs = false, rateLimits = DEFAULT_AUTH_RATE_LIMITS } = {})`
|
|
456
486
|
|
|
487
|
+
### `src/server/routes/connectionRoutes.js`
|
|
488
|
+
Exports
|
|
489
|
+
- `registerConnectionRoutes(router, { rateLimits, service })`
|
|
490
|
+
|
|
457
491
|
### `src/server/routes/emailChangeRoutes.js`
|
|
458
492
|
Exports
|
|
459
493
|
- `registerEmailChangeRoutes(router, { rateLimits })`
|
|
460
494
|
|
|
495
|
+
### `src/server/routes/formBody.js`
|
|
496
|
+
Exports
|
|
497
|
+
- `FORM_CONTENT_TYPE`
|
|
498
|
+
- `parseForm(_request, body, done)`
|
|
499
|
+
|
|
461
500
|
### `src/server/routes/passSignInRoutes.js`
|
|
462
501
|
Exports
|
|
463
502
|
- `registerPassSignInRoutes(fastify, { service, rateLimit })`
|
|
464
|
-
Local functions
|
|
465
|
-
- `parseForm(_request, body, done)`
|
|
466
503
|
|
|
467
504
|
### `src/server/routes/secondFactorRoutes.js`
|
|
468
505
|
Exports
|
|
@@ -16,7 +16,10 @@ 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
|
+
- `configureAppCredentials`
|
|
19
21
|
- `createHttpClient`
|
|
22
|
+
- `signOutAppCredentials`
|
|
20
23
|
- `createTransientRetryHttpClient`
|
|
21
24
|
- `normalizeFieldErrors`
|
|
22
25
|
- `resolveFieldErrors`
|
|
@@ -52,8 +55,12 @@ Exports
|
|
|
52
55
|
|
|
53
56
|
### `src/shared/clientRuntime/client.js`
|
|
54
57
|
Exports
|
|
55
|
-
- `
|
|
58
|
+
- `NO_APP_CREDENTIALS`
|
|
59
|
+
- `configureAppCredentials(credentials)`
|
|
60
|
+
- `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 } = {})`
|
|
61
|
+
- `signOutAppCredentials()`
|
|
56
62
|
- `type HttpClientHooks`
|
|
63
|
+
- `type AppCredentials`
|
|
57
64
|
Local functions
|
|
58
65
|
- `requestSignalWithDeadline(signal, timeoutMs)`
|
|
59
66
|
- `normalizeMethod(method)`
|
|
@@ -71,6 +78,7 @@ Local functions
|
|
|
71
78
|
- `isObjectBody(value)`
|
|
72
79
|
- `isQueryValuePresent(value)`
|
|
73
80
|
- `appendRequestQueryToUrl(url, query = null, transport = null)`
|
|
81
|
+
- `addAppHeaders(appCredentials, headers)`
|
|
74
82
|
|
|
75
83
|
### `src/shared/clientRuntime/errors.js`
|
|
76
84
|
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
|
-
- `
|
|
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
|
|