@strivacity/sdk-nuxt 2.1.1 → 2.2.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.
Files changed (40) hide show
  1. package/.nuxt/app-component.mjs +1 -1
  2. package/.nuxt/components.d.ts +46 -46
  3. package/.nuxt/error-component.mjs +1 -1
  4. package/.nuxt/middleware.mjs +1 -1
  5. package/.nuxt/nitro.client.mjs +1 -1
  6. package/.nuxt/nuxt.d.ts +5 -6
  7. package/.nuxt/nuxt.node.d.ts +13 -0
  8. package/.nuxt/nuxt.shared.d.ts +5 -0
  9. package/.nuxt/paths.mjs +1 -1
  10. package/.nuxt/plugins.client.mjs +14 -14
  11. package/.nuxt/plugins.server.mjs +6 -6
  12. package/.nuxt/root-component.mjs +1 -1
  13. package/.nuxt/strivacity-sdk-logging.d.ts +13 -0
  14. package/.nuxt/strivacity-sdk-logging.mjs +1 -0
  15. package/.nuxt/strivacity-sdk-storage.mjs +1 -1
  16. package/.nuxt/test-component-wrapper.mjs +1 -1
  17. package/.nuxt/types/components.d.ts +46 -46
  18. package/.nuxt/types/middleware.d.ts +5 -0
  19. package/.nuxt/types/modules.d.ts +59 -0
  20. package/.nuxt/types/nitro-imports.d.ts +2 -2
  21. package/.nuxt/types/nitro-nuxt.d.ts +26 -2
  22. package/.nuxt/types/nitro-routes.d.ts +1 -1
  23. package/.nuxt/types/plugins.d.ts +8 -8
  24. package/.nuxt/types/runtime-config.d.ts +44 -0
  25. package/.nuxt/unhead-options.mjs +1 -3
  26. package/CHANGELOG.md +21 -0
  27. package/README.md +88 -0
  28. package/dist/module.d.mts +3 -1
  29. package/dist/module.json +3 -3
  30. package/dist/module.mjs +21 -0
  31. package/dist/module.mjs.map +1 -1
  32. package/dist/runtime/composables.d.ts +1 -1
  33. package/dist/runtime/composables.js +2 -1
  34. package/dist/runtime/login-renderer.vue +12 -7
  35. package/dist/runtime/login-renderer.vue.d.ts +2 -1
  36. package/dist/types.d.mts +5 -1
  37. package/package.json +7 -3
  38. package/.nuxt/types/app-defaults.d.ts +0 -7
  39. package/.nuxt/types/schema.d.ts +0 -114
  40. /package/.nuxt/manifest/meta/{ed58a8ed-593a-49bb-8bea-4ce793c57443.json → a41f6cc8-433d-4287-b51e-946204a91660.json} +0 -0
@@ -11,5 +11,5 @@ export { useEvent } from 'nitropack/runtime/internal/context';
11
11
  export { defineTask, runTask } from 'nitropack/runtime/internal/task';
12
12
  export { defineNitroErrorHandler } from 'nitropack/runtime/internal/error/utils';
13
13
  export { appendCorsHeaders, appendCorsPreflightHeaders, appendHeader, appendHeaders, appendResponseHeader, appendResponseHeaders, assertMethod, callNodeListener, clearResponseHeaders, clearSession, createApp, createAppEventHandler, createError, createEvent, createEventStream, createRouter, defaultContentType, defineEventHandler, defineLazyEventHandler, defineNodeListener, defineNodeMiddleware, defineRequestMiddleware, defineResponseMiddleware, defineWebSocket, defineWebSocketHandler, deleteCookie, dynamicEventHandler, eventHandler, fetchWithEvent, fromNodeMiddleware, fromPlainHandler, fromWebHandler, getCookie, getHeader, getHeaders, getMethod, getProxyRequestHeaders, getQuery, getRequestFingerprint, getRequestHeader, getRequestHeaders, getRequestHost, getRequestIP, getRequestPath, getRequestProtocol, getRequestURL, getRequestWebStream, getResponseHeader, getResponseHeaders, getResponseStatus, getResponseStatusText, getRouterParam, getRouterParams, getSession, getValidatedQuery, getValidatedRouterParams, handleCacheHeaders, handleCors, isCorsOriginAllowed, isError, isEvent, isEventHandler, isMethod, isPreflightRequest, isStream, isWebResponse, lazyEventHandler, parseCookies, promisifyNodeListener, proxyRequest, readBody, readFormData, readMultipartFormData, readRawBody, readValidatedBody, removeResponseHeader, sanitizeStatusCode, sanitizeStatusMessage, sealSession, send, sendError, sendIterable, sendNoContent, sendProxy, sendRedirect, sendStream, sendWebResponse, serveStatic, setCookie, setHeader, setHeaders, setResponseHeader, setResponseHeaders, setResponseStatus, splitCookiesString, toEventHandler, toNodeListener, toPlainHandler, toWebHandler, toWebRequest, unsealSession, updateSession, useBase, useSession, writeEarlyHints } from 'h3';
14
- export { buildAssetsURL as __buildAssetsURL, publicAssetsURL as __publicAssetsURL } from '/home/runner/work/sdk-js/sdk-js/node_modules/.pnpm/@nuxt+nitro-server@3.20.0_@capacitor+preferences@7.0.1_@capacitor+core@7.4.1__db0@0.3.4_encod_bpndteslon4yrpx5pxl77ycjva/node_modules/@nuxt/nitro-server/dist/runtime/utils/paths';
15
- export { defineAppConfig } from '/home/runner/work/sdk-js/sdk-js/node_modules/.pnpm/@nuxt+nitro-server@3.20.0_@capacitor+preferences@7.0.1_@capacitor+core@7.4.1__db0@0.3.4_encod_bpndteslon4yrpx5pxl77ycjva/node_modules/@nuxt/nitro-server/dist/runtime/utils/config';
14
+ export { buildAssetsURL as __buildAssetsURL, publicAssetsURL as __publicAssetsURL } from '/home/runner/work/sdk-js/sdk-js/node_modules/.pnpm/@nuxt+nitro-server@4.2.1_@capacitor+preferences@7.0.2_@capacitor+core@7.4.4__db0@0.3.4__a3a53caef1516cc79201461eb04c532f/node_modules/@nuxt/nitro-server/dist/runtime/utils/paths';
15
+ export { defineAppConfig } from '/home/runner/work/sdk-js/sdk-js/node_modules/.pnpm/@nuxt+nitro-server@4.2.1_@capacitor+preferences@7.0.2_@capacitor+core@7.4.4__db0@0.3.4__a3a53caef1516cc79201461eb04c532f/node_modules/@nuxt/nitro-server/dist/runtime/utils/config';
@@ -1,9 +1,8 @@
1
1
 
2
2
  /// <reference path="app.config.d.ts" />
3
3
  /// <reference path="runtime-config.d.ts" />
4
- /// <reference types="/home/runner/work/sdk-js/sdk-js/node_modules/.pnpm/@nuxt+nitro-server@3.20.0_@capacitor+preferences@7.0.1_@capacitor+core@7.4.1__db0@0.3.4_encod_bpndteslon4yrpx5pxl77ycjva/node_modules/@nuxt/nitro-server/dist/index.mjs" />
4
+ /// <reference types="/home/runner/work/sdk-js/sdk-js/node_modules/.pnpm/@nuxt+nitro-server@4.2.1_@capacitor+preferences@7.0.2_@capacitor+core@7.4.4__db0@0.3.4__a3a53caef1516cc79201461eb04c532f/node_modules/@nuxt/nitro-server/dist/index.mjs" />
5
5
  /// <reference path="middleware.d.ts" />
6
- /// <reference path="./schema.d.ts" />
7
6
 
8
7
  import type { RuntimeConfig } from 'nuxt/schema'
9
8
  import type { H3Event } from 'h3'
@@ -35,3 +34,28 @@ declare module 'nitropack' {
35
34
  'render:island': (islandResponse: NuxtIslandResponse, context: { event: H3Event, islandContext: NuxtIslandContext }) => void | Promise<void>
36
35
  }
37
36
  }
37
+ declare module 'nitropack/types' {
38
+ interface NitroRuntimeConfigApp {
39
+ buildAssetsDir: string
40
+ cdnURL: string
41
+ }
42
+ interface NitroRuntimeConfig extends RuntimeConfig {}
43
+ interface NitroRouteConfig {
44
+ ssr?: boolean
45
+ noScripts?: boolean
46
+ /** @deprecated Use `noScripts` instead */
47
+ experimentalNoScripts?: boolean
48
+ }
49
+ interface NitroRouteRules {
50
+ ssr?: boolean
51
+ noScripts?: boolean
52
+ /** @deprecated Use `noScripts` instead */
53
+ experimentalNoScripts?: boolean
54
+ appMiddleware?: Record<string, boolean>
55
+ }
56
+ interface NitroRuntimeHooks {
57
+ 'dev:ssr-logs': (ctx: { logs: LogObject[], path: string }) => void | Promise<void>
58
+ 'render:html': (htmlContext: NuxtRenderHTMLContext, context: { event: H3Event }) => void | Promise<void>
59
+ 'render:island': (islandResponse: NuxtIslandResponse, context: { event: H3Event, islandContext: NuxtIslandContext }) => void | Promise<void>
60
+ }
61
+ }
@@ -4,7 +4,7 @@ declare module "nitropack/types" {
4
4
  type Awaited<T> = T extends PromiseLike<infer U> ? Awaited<U> : T
5
5
  interface InternalApi {
6
6
  '/__nuxt_error': {
7
- 'default': Simplify<Serialize<Awaited<ReturnType<typeof import('../../../../node_modules/.pnpm/@nuxt+nitro-server@3.20.0_@capacitor+preferences@7.0.1_@capacitor+core@7.4.1__db0@0.3.4_encod_bpndteslon4yrpx5pxl77ycjva/node_modules/@nuxt/nitro-server/dist/runtime/handlers/renderer').default>>>>
7
+ 'default': Simplify<Serialize<Awaited<ReturnType<typeof import('../../../../node_modules/.pnpm/@nuxt+nitro-server@4.2.1_@capacitor+preferences@7.0.2_@capacitor+core@7.4.4__db0@0.3.4__a3a53caef1516cc79201461eb04c532f/node_modules/@nuxt/nitro-server/dist/runtime/handlers/renderer').default>>>>
8
8
  }
9
9
  '/__nuxt_island/**': {
10
10
  'default': Simplify<Serialize<Awaited<ReturnType<typeof import('../../server/#internal/nuxt/island-renderer').default>>>>
@@ -6,14 +6,14 @@ type Decorate<T extends Record<string, any>> = { [K in keyof T as K extends stri
6
6
  type InjectionType<A extends Plugin> = A extends {default: Plugin<infer T>} ? Decorate<T> : unknown
7
7
 
8
8
  type NuxtAppInjections =
9
- InjectionType<typeof import("../../../../node_modules/.pnpm/nuxt@3.20.0_@capacitor+preferences@7.0.1_@capacitor+core@7.4.1__@parcel+watcher@2.4.1_@types+_r7a4gaqwscyttk4yoxb6bfcef4/node_modules/nuxt/dist/app/plugins/revive-payload.client.js")> &
10
- InjectionType<typeof import("../../../../node_modules/.pnpm/nuxt@3.20.0_@capacitor+preferences@7.0.1_@capacitor+core@7.4.1__@parcel+watcher@2.4.1_@types+_r7a4gaqwscyttk4yoxb6bfcef4/node_modules/nuxt/dist/head/runtime/plugins/unhead.js")> &
11
- InjectionType<typeof import("../../../../node_modules/.pnpm/nuxt@3.20.0_@capacitor+preferences@7.0.1_@capacitor+core@7.4.1__@parcel+watcher@2.4.1_@types+_r7a4gaqwscyttk4yoxb6bfcef4/node_modules/nuxt/dist/app/plugins/router.js")> &
12
- InjectionType<typeof import("../../../../node_modules/.pnpm/nuxt@3.20.0_@capacitor+preferences@7.0.1_@capacitor+core@7.4.1__@parcel+watcher@2.4.1_@types+_r7a4gaqwscyttk4yoxb6bfcef4/node_modules/nuxt/dist/app/plugins/payload.client.js")> &
13
- InjectionType<typeof import("../../../../node_modules/.pnpm/nuxt@3.20.0_@capacitor+preferences@7.0.1_@capacitor+core@7.4.1__@parcel+watcher@2.4.1_@types+_r7a4gaqwscyttk4yoxb6bfcef4/node_modules/nuxt/dist/app/plugins/navigation-repaint.client.js")> &
14
- InjectionType<typeof import("../../../../node_modules/.pnpm/nuxt@3.20.0_@capacitor+preferences@7.0.1_@capacitor+core@7.4.1__@parcel+watcher@2.4.1_@types+_r7a4gaqwscyttk4yoxb6bfcef4/node_modules/nuxt/dist/app/plugins/check-outdated-build.client.js")> &
15
- InjectionType<typeof import("../../../../node_modules/.pnpm/nuxt@3.20.0_@capacitor+preferences@7.0.1_@capacitor+core@7.4.1__@parcel+watcher@2.4.1_@types+_r7a4gaqwscyttk4yoxb6bfcef4/node_modules/nuxt/dist/app/plugins/revive-payload.server.js")> &
16
- InjectionType<typeof import("../../../../node_modules/.pnpm/nuxt@3.20.0_@capacitor+preferences@7.0.1_@capacitor+core@7.4.1__@parcel+watcher@2.4.1_@types+_r7a4gaqwscyttk4yoxb6bfcef4/node_modules/nuxt/dist/app/plugins/chunk-reload.client.js")> &
9
+ InjectionType<typeof import("../../../../node_modules/.pnpm/nuxt@4.2.1_@capacitor+preferences@7.0.2_@capacitor+core@7.4.4__@parcel+watcher@2.4.1_@t_1d06f86fa43ea6ae8c6fb55b6f4fcdfe/node_modules/nuxt/dist/app/plugins/revive-payload.client.js")> &
10
+ InjectionType<typeof import("../../../../node_modules/.pnpm/nuxt@4.2.1_@capacitor+preferences@7.0.2_@capacitor+core@7.4.4__@parcel+watcher@2.4.1_@t_1d06f86fa43ea6ae8c6fb55b6f4fcdfe/node_modules/nuxt/dist/head/runtime/plugins/unhead.js")> &
11
+ InjectionType<typeof import("../../../../node_modules/.pnpm/nuxt@4.2.1_@capacitor+preferences@7.0.2_@capacitor+core@7.4.4__@parcel+watcher@2.4.1_@t_1d06f86fa43ea6ae8c6fb55b6f4fcdfe/node_modules/nuxt/dist/app/plugins/router.js")> &
12
+ InjectionType<typeof import("../../../../node_modules/.pnpm/nuxt@4.2.1_@capacitor+preferences@7.0.2_@capacitor+core@7.4.4__@parcel+watcher@2.4.1_@t_1d06f86fa43ea6ae8c6fb55b6f4fcdfe/node_modules/nuxt/dist/app/plugins/payload.client.js")> &
13
+ InjectionType<typeof import("../../../../node_modules/.pnpm/nuxt@4.2.1_@capacitor+preferences@7.0.2_@capacitor+core@7.4.4__@parcel+watcher@2.4.1_@t_1d06f86fa43ea6ae8c6fb55b6f4fcdfe/node_modules/nuxt/dist/app/plugins/navigation-repaint.client.js")> &
14
+ InjectionType<typeof import("../../../../node_modules/.pnpm/nuxt@4.2.1_@capacitor+preferences@7.0.2_@capacitor+core@7.4.4__@parcel+watcher@2.4.1_@t_1d06f86fa43ea6ae8c6fb55b6f4fcdfe/node_modules/nuxt/dist/app/plugins/check-outdated-build.client.js")> &
15
+ InjectionType<typeof import("../../../../node_modules/.pnpm/nuxt@4.2.1_@capacitor+preferences@7.0.2_@capacitor+core@7.4.4__@parcel+watcher@2.4.1_@t_1d06f86fa43ea6ae8c6fb55b6f4fcdfe/node_modules/nuxt/dist/app/plugins/revive-payload.server.js")> &
16
+ InjectionType<typeof import("../../../../node_modules/.pnpm/nuxt@4.2.1_@capacitor+preferences@7.0.2_@capacitor+core@7.4.4__@parcel+watcher@2.4.1_@t_1d06f86fa43ea6ae8c6fb55b6f4fcdfe/node_modules/nuxt/dist/app/plugins/chunk-reload.client.js")> &
17
17
  InjectionType<typeof import("../components.plugin.mjs")>
18
18
 
19
19
  declare module '#app' {
@@ -0,0 +1,44 @@
1
+ import { RuntimeConfig as UserRuntimeConfig, PublicRuntimeConfig as UserPublicRuntimeConfig } from 'nuxt/schema'
2
+ interface SharedRuntimeConfig {
3
+ app: {
4
+ buildId: string,
5
+
6
+ baseURL: string,
7
+
8
+ buildAssetsDir: string,
9
+
10
+ cdnURL: string,
11
+ },
12
+
13
+ nitro: {
14
+ envPrefix: string,
15
+ },
16
+ }
17
+ interface SharedPublicRuntimeConfig {
18
+ strivacity: {
19
+ issuer: string,
20
+
21
+ scopes: Array<string>,
22
+
23
+ clientId: string,
24
+
25
+ redirectUri: string,
26
+
27
+ responseType: string,
28
+
29
+ responseMode: string,
30
+ },
31
+ }
32
+ declare module '@nuxt/schema' {
33
+ interface RuntimeConfig extends UserRuntimeConfig {}
34
+ interface PublicRuntimeConfig extends UserPublicRuntimeConfig {}
35
+ }
36
+ declare module 'nuxt/schema' {
37
+ interface RuntimeConfig extends SharedRuntimeConfig {}
38
+ interface PublicRuntimeConfig extends SharedPublicRuntimeConfig {}
39
+ }
40
+ declare module 'vue' {
41
+ interface ComponentCustomProperties {
42
+ $config: UserRuntimeConfig
43
+ }
44
+ }
@@ -1,6 +1,4 @@
1
- import { DeprecationsPlugin, PromisesPlugin, TemplateParamsPlugin, AliasSortingPlugin } from "/home/runner/work/sdk-js/sdk-js/node_modules/.pnpm/@unhead+vue@2.0.19_vue@3.5.22_typescript@5.8.3_/node_modules/@unhead/vue/dist/plugins.mjs";
1
+
2
2
  export default {
3
3
  disableDefaults: true,
4
- disableCapoSorting: false,
5
- plugins: [DeprecationsPlugin, PromisesPlugin, TemplateParamsPlugin, AliasSortingPlugin],
6
4
  }
package/CHANGELOG.md CHANGED
@@ -1,3 +1,24 @@
1
+ ## 2.2.0 (2026-02-06)
2
+
3
+ ### 🚀 Features
4
+
5
+ - logging implemented ([032dc8a](https://github.com/Strivacity/sdk-js/commit/032dc8a))
6
+
7
+ ### 🩹 Fixes
8
+
9
+ - error message rendering fixed ([9e67051](https://github.com/Strivacity/sdk-js/commit/9e67051))
10
+ - minor sdk type fixes ([3434a90](https://github.com/Strivacity/sdk-js/commit/3434a90))
11
+
12
+ ### 🧱 Updated Dependencies
13
+
14
+ - Updated sdk-core to 2.2.0
15
+
16
+ ## 2.1.2 (2026-01-13)
17
+
18
+ ### 🧱 Updated Dependencies
19
+
20
+ - Updated sdk-core to 2.1.2
21
+
1
22
  ## 2.1.1 (2025-11-19)
2
23
 
3
24
  ### 🧱 Updated Dependencies
package/README.md CHANGED
@@ -382,6 +382,94 @@ Same as the profile page example in redirect/popup mode.
382
382
 
383
383
  Same as the logout page example in redirect/popup mode.
384
384
 
385
+ ## Logging
386
+
387
+ The SDK supports optional logging to help you debug authentication flows and monitor SDK behavior. You can enable the built-in console logger or provide your own custom logger implementation.
388
+
389
+ ### Using the Default Logger
390
+
391
+ Enable the default console logger by adding the `logging` option in your Nuxt configuration:
392
+
393
+ ```typescript
394
+ import { defineNuxtConfig } from 'nuxt/config';
395
+ import { DefaultLogging } from '@strivacity/sdk-nuxt';
396
+
397
+ export default defineNuxtConfig({
398
+ ssr: false,
399
+ modules: ['@strivacity/sdk-nuxt'],
400
+ strivacity: {
401
+ mode: 'redirect',
402
+ issuer: 'https://<YOUR_DOMAIN>',
403
+ scopes: ['openid', 'profile'],
404
+ clientId: '<YOUR_CLIENT_ID>',
405
+ redirectUri: '<YOUR_REDIRECT_URI>',
406
+ logging: DefaultLogging, // Enable built-in console logging
407
+ },
408
+ });
409
+ ```
410
+
411
+ The default logger writes to the browser console and automatically prefixes messages with a correlation ID when available (via the `xEventId` property).
412
+
413
+ ### Creating a Custom Logger
414
+
415
+ You can provide your own logger by implementing the `SDKLogging` interface with four methods: `debug`, `info`, `warn`, and `error`. An optional `xEventId` property is honored for log correlation.
416
+
417
+ ```typescript
418
+ import type { SDKLogging } from '@strivacity/sdk-nuxt';
419
+
420
+ export class MyLogger implements SDKLogging {
421
+ xEventId?: string;
422
+
423
+ debug(message: string): void {
424
+ // Send to your logging pipeline
425
+ console.debug(this.xEventId ? `[${this.xEventId}] ${message}` : message);
426
+ }
427
+
428
+ info(message: string): void {
429
+ console.info(this.xEventId ? `[${this.xEventId}] ${message}` : message);
430
+ }
431
+
432
+ warn(message: string): void {
433
+ console.warn(this.xEventId ? `[${this.xEventId}] ${message}` : message);
434
+ }
435
+
436
+ error(message: string, error: Error): void {
437
+ console.error(this.xEventId ? `[${this.xEventId}] ${message}` : message, error);
438
+ }
439
+ }
440
+ ```
441
+
442
+ Then register your custom logger in your Nuxt configuration:
443
+
444
+ ```typescript
445
+ import { defineNuxtConfig } from 'nuxt/config';
446
+ import { MyLogger } from './logging/MyLogger';
447
+
448
+ export default defineNuxtConfig({
449
+ ssr: false,
450
+ modules: ['@strivacity/sdk-nuxt'],
451
+ strivacity: {
452
+ mode: 'redirect',
453
+ issuer: 'https://<YOUR_DOMAIN>',
454
+ scopes: ['openid', 'profile'],
455
+ clientId: '<YOUR_CLIENT_ID>',
456
+ redirectUri: '<YOUR_REDIRECT_URI>',
457
+ logging: MyLogger, // Use your custom logger
458
+ },
459
+ });
460
+ ```
461
+
462
+ ### Logger Interface
463
+
464
+ The `SDKLogging` interface requires the following methods:
465
+
466
+ - **`debug(message: string): void`** - Log debug-level messages
467
+ - **`info(message: string): void`** - Log informational messages
468
+ - **`warn(message: string): void`** - Log warning messages
469
+ - **`error(message: string, error: Error): void`** - Log error messages with error objects
470
+
471
+ The optional `xEventId` property, when set by the SDK, provides a correlation ID to trace related log messages across the authentication flow.
472
+
385
473
  ### API Documentation
386
474
 
387
475
  #### `useStrivacity` composable
package/dist/module.d.mts CHANGED
@@ -8,6 +8,7 @@ export { RedirectFlow } from '@strivacity/sdk-core/flows/RedirectFlow';
8
8
  import { NativeFlow } from '@strivacity/sdk-core/flows/NativeFlow';
9
9
  export { NativeFlow } from '@strivacity/sdk-core/flows/NativeFlow';
10
10
  export { HttpClient } from '@strivacity/sdk-core/utils/HttpClient';
11
+ export { DefaultLogging } from '@strivacity/sdk-core/utils/Logging';
11
12
  export { LocalStorage } from '@strivacity/sdk-core/storages/LocalStorage';
12
13
  export { SessionStorage } from '@strivacity/sdk-core/storages/SessionStorage';
13
14
  export { createCredential, getCredential } from '@strivacity/sdk-core/utils/credentials';
@@ -192,4 +193,5 @@ type ModuleOptions = SDKOptions;
192
193
 
193
194
  declare const _default: _nuxt_schema.NuxtModule<SDKOptions, SDKOptions, false>;
194
195
 
195
- export { type ModuleOptions, type NativeContext, type NativeFlowContextValue, type NativeSDK, type PopupContext, type PopupSDK, type RedirectContext, type RedirectSDK, type Session, _default as default };
196
+ export { _default as default };
197
+ export type { ModuleOptions, NativeContext, NativeFlowContextValue, NativeSDK, PopupContext, PopupSDK, RedirectContext, RedirectSDK, Session };
package/dist/module.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@strivacity/sdk-nuxt",
3
3
  "configKey": "strivacity",
4
- "version": "2.1.1",
4
+ "version": "2.2.0",
5
5
  "builder": {
6
- "@nuxt/module-builder": "1.0.1",
7
- "unbuild": "3.5.0"
6
+ "@nuxt/module-builder": "1.0.2",
7
+ "unbuild": "3.6.1"
8
8
  }
9
9
  }
package/dist/module.mjs CHANGED
@@ -1,5 +1,6 @@
1
1
  import { defineNuxtModule, createResolver, addTemplate, addTypeTemplate, addComponent, addImports } from '@nuxt/kit';
2
2
  export { HttpClient } from '@strivacity/sdk-core/utils/HttpClient';
3
+ export { DefaultLogging } from '@strivacity/sdk-core/utils/Logging';
3
4
  import { LocalStorage } from '@strivacity/sdk-core/storages/LocalStorage';
4
5
  export { LocalStorage } from '@strivacity/sdk-core/storages/LocalStorage';
5
6
  export { SessionStorage } from '@strivacity/sdk-core/storages/SessionStorage';
@@ -31,6 +32,26 @@ declare class CustomStorage implements SDKStorage {
31
32
  }
32
33
 
33
34
  export default CustomStorage`
35
+ });
36
+ addTemplate({
37
+ filename: "strivacity-sdk-logging.mjs",
38
+ getContents: () => `export default ${options.logging?.toString()}`
39
+ });
40
+ addTypeTemplate({
41
+ filename: "strivacity-sdk-logging.d.ts",
42
+ getContents: () => `
43
+ import type { SDKLogging } from '@strivacity/sdk-core';
44
+
45
+ declare class CustomLogging implements SDKLogging {
46
+ xEventId: string | undefined;
47
+
48
+ debug(message: string): void;
49
+ info(message: string): void;
50
+ warn(message: string): void;
51
+ error(message: string, error: Error): void;
52
+ }
53
+
54
+ export default CustomLogging`
34
55
  });
35
56
  addComponent({
36
57
  name: "StyLoginRenderer",
@@ -1 +1 @@
1
- {"version":3,"file":"module.mjs","sources":["../src/module.ts"],"sourcesContent":["import type { SDKOptions } from '@strivacity/sdk-core';\nimport { defineNuxtModule, createResolver, addTemplate, addTypeTemplate, addImports, addComponent } from '@nuxt/kit';\nimport type { PopupFlow } from '@strivacity/sdk-core/flows/PopupFlow';\nimport type { RedirectFlow } from '@strivacity/sdk-core/flows/RedirectFlow';\nimport type { NativeFlow } from '@strivacity/sdk-core/flows/NativeFlow';\nimport { HttpClient } from '@strivacity/sdk-core/utils/HttpClient';\nimport { LocalStorage } from '@strivacity/sdk-core/storages/LocalStorage';\nimport { SessionStorage } from '@strivacity/sdk-core/storages/SessionStorage';\n\ndeclare module '@nuxt/schema' {\n\tinterface PublicRuntimeConfig {\n\t\tstrivacity: SDKOptions;\n\t}\n}\n\nexport type ModuleOptions = SDKOptions;\n\nexport * from '@strivacity/sdk-core';\nexport { createCredential, getCredential } from '@strivacity/sdk-core/utils/credentials';\nexport type * from './types';\nexport type { PopupFlow, RedirectFlow, NativeFlow };\nexport { HttpClient, LocalStorage, SessionStorage };\n\nexport default defineNuxtModule<ModuleOptions>({\n\tmeta: {\n\t\tname: '@strivacity/sdk-nuxt',\n\t\tconfigKey: 'strivacity',\n\t},\n\tdefaults: {} as SDKOptions,\n\tsetup(options, nuxt) {\n\t\tconst resolver = createResolver(import.meta.url);\n\n\t\tnuxt.options.runtimeConfig.public.strivacity = options;\n\n\t\taddTemplate({\n\t\t\tfilename: 'strivacity-sdk-storage.mjs',\n\t\t\tgetContents: () => `export default ${options.storage ? options.storage.toString() : LocalStorage.toString()}`,\n\t\t});\n\t\taddTypeTemplate({\n\t\t\tfilename: 'strivacity-sdk-storage.d.ts',\n\t\t\tgetContents: () => `\nimport type { SDKStorage } from '@strivacity/sdk-core';\n\ndeclare class CustomStorage implements SDKStorage {\n\tget(key: string): Promise<string | null>;\n\tdelete(key: string): Promise<void>;\n\tset(key: string, value: string): Promise<void>;\n}\n\nexport default CustomStorage`,\n\t\t});\n\t\taddComponent({\n\t\t\tname: 'StyLoginRenderer',\n\t\t\tfilePath: resolver.resolve('./runtime/login-renderer.vue'),\n\t\t});\n\t\taddImports({ name: 'useStrivacity', as: 'useStrivacity', from: resolver.resolve('./runtime/composables') });\n\t\taddImports({ name: 'getCredential', as: 'getCredential', from: resolver.resolve('./runtime/composables') });\n\t\taddImports({ name: 'createCredential', as: 'createCredential', from: resolver.resolve('./runtime/composables') });\n\t},\n});\n"],"names":[],"mappings":";;;;;;;;AAuBA,eAAe,gBAAA,CAAgC;AAAA,EAC9C,IAAA,EAAM;AAAA,IACL,IAAA,EAAM,sBAAA;AAAA,IACN,SAAA,EAAW;AAAA,GACZ;AAAA,EACA,UAAU,EAAC;AAAA,EACX,KAAA,CAAM,SAAS,IAAA,EAAM;AACpB,IAAA,MAAM,QAAA,GAAW,cAAA,CAAe,MAAA,CAAA,IAAA,CAAY,GAAG,CAAA;AAE/C,IAAA,IAAA,CAAK,OAAA,CAAQ,aAAA,CAAc,MAAA,CAAO,UAAA,GAAa,OAAA;AAE/C,IAAA,WAAA,CAAY;AAAA,MACX,QAAA,EAAU,4BAAA;AAAA,MACV,WAAA,EAAa,MAAM,CAAA,eAAA,EAAkB,OAAA,CAAQ,OAAA,GAAU,OAAA,CAAQ,OAAA,CAAQ,QAAA,EAAS,GAAI,YAAA,CAAa,QAAA,EAAU,CAAA;AAAA,KAC3G,CAAA;AACD,IAAA,eAAA,CAAgB;AAAA,MACf,QAAA,EAAU,6BAAA;AAAA,MACV,aAAa,MAAM;AAAA;;AAAA;AAAA;AAAA;AAAA;AAAA;;AAAA,4BAAA;AAAA,KAUnB,CAAA;AACD,IAAA,YAAA,CAAa;AAAA,MACZ,IAAA,EAAM,kBAAA;AAAA,MACN,QAAA,EAAU,QAAA,CAAS,OAAA,CAAQ,8BAA8B;AAAA,KACzD,CAAA;AACD,IAAA,UAAA,CAAW,EAAE,IAAA,EAAM,eAAA,EAAiB,EAAA,EAAI,eAAA,EAAiB,MAAM,QAAA,CAAS,OAAA,CAAQ,uBAAuB,CAAA,EAAG,CAAA;AAC1G,IAAA,UAAA,CAAW,EAAE,IAAA,EAAM,eAAA,EAAiB,EAAA,EAAI,eAAA,EAAiB,MAAM,QAAA,CAAS,OAAA,CAAQ,uBAAuB,CAAA,EAAG,CAAA;AAC1G,IAAA,UAAA,CAAW,EAAE,IAAA,EAAM,kBAAA,EAAoB,EAAA,EAAI,kBAAA,EAAoB,MAAM,QAAA,CAAS,OAAA,CAAQ,uBAAuB,CAAA,EAAG,CAAA;AAAA;AAElH,CAAC,CAAA;;;;"}
1
+ {"version":3,"file":"module.mjs","sources":["../src/module.ts"],"sourcesContent":["import type { SDKOptions } from '@strivacity/sdk-core';\nimport { defineNuxtModule, createResolver, addTemplate, addTypeTemplate, addImports, addComponent } from '@nuxt/kit';\nimport type { PopupFlow } from '@strivacity/sdk-core/flows/PopupFlow';\nimport type { RedirectFlow } from '@strivacity/sdk-core/flows/RedirectFlow';\nimport type { NativeFlow } from '@strivacity/sdk-core/flows/NativeFlow';\nimport { HttpClient } from '@strivacity/sdk-core/utils/HttpClient';\nimport { DefaultLogging } from '@strivacity/sdk-core/utils/Logging';\nimport { LocalStorage } from '@strivacity/sdk-core/storages/LocalStorage';\nimport { SessionStorage } from '@strivacity/sdk-core/storages/SessionStorage';\n\ndeclare module '@nuxt/schema' {\n\tinterface PublicRuntimeConfig {\n\t\tstrivacity: SDKOptions;\n\t}\n}\n\nexport type ModuleOptions = SDKOptions;\n\nexport * from '@strivacity/sdk-core';\nexport { createCredential, getCredential } from '@strivacity/sdk-core/utils/credentials';\nexport type * from './types';\nexport type { PopupFlow, RedirectFlow, NativeFlow };\nexport { HttpClient, DefaultLogging, LocalStorage, SessionStorage };\n\nexport default defineNuxtModule<ModuleOptions>({\n\tmeta: {\n\t\tname: '@strivacity/sdk-nuxt',\n\t\tconfigKey: 'strivacity',\n\t},\n\tdefaults: {} as SDKOptions,\n\tsetup(options, nuxt) {\n\t\tconst resolver = createResolver(import.meta.url);\n\n\t\tnuxt.options.runtimeConfig.public.strivacity = options;\n\n\t\taddTemplate({\n\t\t\tfilename: 'strivacity-sdk-storage.mjs',\n\t\t\tgetContents: () => `export default ${options.storage ? options.storage.toString() : LocalStorage.toString()}`,\n\t\t});\n\t\taddTypeTemplate({\n\t\t\tfilename: 'strivacity-sdk-storage.d.ts',\n\t\t\tgetContents: () => `\nimport type { SDKStorage } from '@strivacity/sdk-core';\n\ndeclare class CustomStorage implements SDKStorage {\n\tget(key: string): Promise<string | null>;\n\tdelete(key: string): Promise<void>;\n\tset(key: string, value: string): Promise<void>;\n}\n\nexport default CustomStorage`,\n\t\t});\n\t\taddTemplate({\n\t\t\tfilename: 'strivacity-sdk-logging.mjs',\n\t\t\tgetContents: () => `export default ${options.logging?.toString()}`,\n\t\t});\n\t\taddTypeTemplate({\n\t\t\tfilename: 'strivacity-sdk-logging.d.ts',\n\t\t\tgetContents: () => `\nimport type { SDKLogging } from '@strivacity/sdk-core';\n\ndeclare class CustomLogging implements SDKLogging {\n\txEventId: string | undefined;\n\n\tdebug(message: string): void;\n\tinfo(message: string): void;\n\twarn(message: string): void;\n\terror(message: string, error: Error): void;\n}\n\nexport default CustomLogging`,\n\t\t});\n\t\taddComponent({\n\t\t\tname: 'StyLoginRenderer',\n\t\t\tfilePath: resolver.resolve('./runtime/login-renderer.vue'),\n\t\t});\n\t\taddImports({ name: 'useStrivacity', as: 'useStrivacity', from: resolver.resolve('./runtime/composables') });\n\t\taddImports({ name: 'getCredential', as: 'getCredential', from: resolver.resolve('./runtime/composables') });\n\t\taddImports({ name: 'createCredential', as: 'createCredential', from: resolver.resolve('./runtime/composables') });\n\t},\n});\n"],"names":[],"mappings":";;;;;;;;;AAwBA,eAAe,gBAAA,CAAgC;AAAA,EAC9C,IAAA,EAAM;AAAA,IACL,IAAA,EAAM,sBAAA;AAAA,IACN,SAAA,EAAW;AAAA,GACZ;AAAA,EACA,UAAU,EAAC;AAAA,EACX,KAAA,CAAM,SAAS,IAAA,EAAM;AACpB,IAAA,MAAM,QAAA,GAAW,cAAA,CAAe,MAAA,CAAA,IAAA,CAAY,GAAG,CAAA;AAE/C,IAAA,IAAA,CAAK,OAAA,CAAQ,aAAA,CAAc,MAAA,CAAO,UAAA,GAAa,OAAA;AAE/C,IAAA,WAAA,CAAY;AAAA,MACX,QAAA,EAAU,4BAAA;AAAA,MACV,WAAA,EAAa,MAAM,CAAA,eAAA,EAAkB,OAAA,CAAQ,OAAA,GAAU,OAAA,CAAQ,OAAA,CAAQ,QAAA,EAAS,GAAI,YAAA,CAAa,QAAA,EAAU,CAAA;AAAA,KAC3G,CAAA;AACD,IAAA,eAAA,CAAgB;AAAA,MACf,QAAA,EAAU,6BAAA;AAAA,MACV,aAAa,MAAM;AAAA;;AAAA;AAAA;AAAA;AAAA;AAAA;;AAAA,4BAAA;AAAA,KAUnB,CAAA;AACD,IAAA,WAAA,CAAY;AAAA,MACX,QAAA,EAAU,4BAAA;AAAA,MACV,aAAa,MAAM,CAAA,eAAA,EAAkB,OAAA,CAAQ,OAAA,EAAS,UAAU,CAAA;AAAA,KAChE,CAAA;AACD,IAAA,eAAA,CAAgB;AAAA,MACf,QAAA,EAAU,6BAAA;AAAA,MACV,aAAa,MAAM;AAAA;;AAAA;AAAA;;AAAA;AAAA;AAAA;AAAA;AAAA;;AAAA,4BAAA;AAAA,KAanB,CAAA;AACD,IAAA,YAAA,CAAa;AAAA,MACZ,IAAA,EAAM,kBAAA;AAAA,MACN,QAAA,EAAU,QAAA,CAAS,OAAA,CAAQ,8BAA8B;AAAA,KACzD,CAAA;AACD,IAAA,UAAA,CAAW,EAAE,IAAA,EAAM,eAAA,EAAiB,EAAA,EAAI,eAAA,EAAiB,MAAM,QAAA,CAAS,OAAA,CAAQ,uBAAuB,CAAA,EAAG,CAAA;AAC1G,IAAA,UAAA,CAAW,EAAE,IAAA,EAAM,eAAA,EAAiB,EAAA,EAAI,eAAA,EAAiB,MAAM,QAAA,CAAS,OAAA,CAAQ,uBAAuB,CAAA,EAAG,CAAA;AAC1G,IAAA,UAAA,CAAW,EAAE,IAAA,EAAM,kBAAA,EAAoB,EAAA,EAAI,kBAAA,EAAoB,MAAM,QAAA,CAAS,OAAA,CAAQ,uBAAuB,CAAA,EAAG,CAAA;AAAA,EACjH;AACD,CAAC,CAAA;;;;"}
@@ -9,4 +9,4 @@ export { createCredential, getCredential } from '@strivacity/sdk-core/utils/cred
9
9
  *
10
10
  * @returns {T} The Strivacity SDK context, typed as either PopupContext or RedirectContext or NativeContext.
11
11
  */
12
- export declare const useStrivacity: () => PopupContext | RedirectContext | NativeContext;
12
+ export declare const useStrivacity: <T extends PopupContext | RedirectContext | NativeContext>() => T;
@@ -1,4 +1,5 @@
1
1
  import StorageClass from "#build/strivacity-sdk-storage";
2
+ import LoggingClass from "#build/strivacity-sdk-logging";
2
3
  import { ref, useRuntimeConfig } from "#imports";
3
4
  import { initFlow } from "@strivacity/sdk-core";
4
5
  export { createCredential, getCredential } from "@strivacity/sdk-core/utils/credentials";
@@ -24,7 +25,7 @@ const updateSession = async () => {
24
25
  };
25
26
  export const useStrivacity = () => {
26
27
  if (!sdk) {
27
- sdk = initFlow({ ...useRuntimeConfig().public.strivacity, storage: StorageClass });
28
+ sdk = initFlow({ ...useRuntimeConfig().public.strivacity, storage: StorageClass, logging: LoggingClass });
28
29
  optionsRef.value = sdk.options;
29
30
  sdk.subscribeToEvent("init", updateSession);
30
31
  sdk.subscribeToEvent("loggedIn", updateSession);
@@ -26,18 +26,18 @@ const WidgetRenderer = defineComponent({
26
26
  const form = state.value?.forms?.find((form2) => form2.id === item.formId);
27
27
  const widget = form?.widgets.find((widget2) => widget2.id === item.widgetId);
28
28
  if (!form || !widget) {
29
- triggerFallback();
29
+ triggerFallback(void 0, `Unable to find form or widget for item: formId=${item.formId}, widgetId=${item.widgetId}`);
30
30
  return null;
31
31
  }
32
32
  const component = props2.widgets[widget.type];
33
33
  if (!component) {
34
- triggerFallback();
34
+ triggerFallback(void 0, `No component found for widget type ${widget.type}`);
35
35
  return null;
36
36
  }
37
37
  return h(component, { key: `${form.id}.${widget.id}`, formId: form.id, config: widget });
38
38
  } else if (item.type === "vertical" || item.type === "horizontal") {
39
39
  if (!props2.widgets.layout) {
40
- triggerFallback();
40
+ triggerFallback(void 0, "No layout component provided");
41
41
  return null;
42
42
  }
43
43
  return h(
@@ -46,7 +46,7 @@ const WidgetRenderer = defineComponent({
46
46
  () => h(WidgetRenderer, { items: item.items, widgets: props2.widgets })
47
47
  );
48
48
  } else {
49
- triggerFallback();
49
+ triggerFallback(void 0, "Unknown item type in layout");
50
50
  return null;
51
51
  }
52
52
  })
@@ -81,10 +81,13 @@ onMounted(async () => {
81
81
  }
82
82
  }
83
83
  });
84
- function triggerFallback(hostedUrl) {
84
+ function triggerFallback(hostedUrl, message) {
85
85
  const url = hostedUrl || state.value.hostedUrl;
86
+ sdk.logging?.warn(message ? `Triggering fallback due to: ${message}` : "Triggering fallback");
86
87
  if (!url) {
87
- throw new Error("No hosted URL provided");
88
+ const error = new Error("No hosted URL provided");
89
+ sdk.logging?.error("Fallback error", error);
90
+ throw error;
88
91
  }
89
92
  emit("fallback", new FallbackError(new URL(url)));
90
93
  }
@@ -131,7 +134,7 @@ async function handleResponse(data) {
131
134
  screen: data?.screen ?? state.value.screen,
132
135
  forms: data?.forms ?? state.value.forms,
133
136
  layout: data?.layout ?? state.value.layout,
134
- messages: data?.messages ?? state.value.messages,
137
+ messages: data?.messages ?? {},
135
138
  branding: data?.branding ?? state.value.branding
136
139
  };
137
140
  if (newState.screen != state.value.screen) {
@@ -141,6 +144,8 @@ async function handleResponse(data) {
141
144
  forms.value[form.id] = {};
142
145
  messages.value[form.id] = {};
143
146
  }
147
+ } else {
148
+ sdk.logging?.info(`Updating screen: ${newState.screen}`);
144
149
  }
145
150
  Object.keys(newState.messages ?? {}).forEach((formId) => {
146
151
  if (formId === "global") {
@@ -6,7 +6,7 @@ type __VLS_Props = {
6
6
  widgets?: PartialRecord<WidgetType, Component>;
7
7
  sessionId?: string | null;
8
8
  };
9
- declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
9
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
10
10
  login: (args_0: IdTokenClaims | null | undefined) => any;
11
11
  error: (args_0: any) => any;
12
12
  close: () => any;
@@ -31,4 +31,5 @@ declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {
31
31
  widgets: PartialRecord<WidgetType, Component>;
32
32
  sessionId: string | null;
33
33
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
34
+ declare const _default: typeof __VLS_export;
34
35
  export default _default;
package/dist/types.d.mts CHANGED
@@ -6,12 +6,16 @@ export { type NativeFlow } from '@strivacity/sdk-core/flows/NativeFlow'
6
6
 
7
7
  export { type HttpClient } from '@strivacity/sdk-core/utils/HttpClient'
8
8
 
9
+ export { type DefaultLogging } from '@strivacity/sdk-core/utils/Logging'
10
+
9
11
  export { type LocalStorage } from '@strivacity/sdk-core/storages/LocalStorage'
10
12
 
11
13
  export { type SessionStorage } from '@strivacity/sdk-core/storages/SessionStorage'
12
14
 
13
15
  export { type createCredential, type getCredential } from '@strivacity/sdk-core/utils/credentials'
14
16
 
15
- export { type ModuleOptions, type NativeContext, type NativeFlowContextValue, type NativeSDK, type PopupContext, type PopupSDK, type RedirectContext, type RedirectSDK, type Session, default } from './module.mjs'
17
+ export { default } from './module.mjs'
18
+
19
+ export { type ModuleOptions, type NativeContext, type NativeFlowContextValue, type NativeSDK, type PopupContext, type PopupSDK, type RedirectContext, type RedirectSDK, type Session } from './module.mjs'
16
20
 
17
21
  export * from '@strivacity/sdk-core'
package/package.json CHANGED
@@ -1,12 +1,16 @@
1
1
  {
2
2
  "name": "@strivacity/sdk-nuxt",
3
- "version": "2.1.1",
4
- "type": "module",
3
+ "version": "2.2.0",
5
4
  "license": "MIT",
6
5
  "description": "Strivacity Nuxt SDK client",
7
6
  "author": "strivacity <opensource@strivacity.com>",
7
+ "repository": {
8
+ "type": "git",
9
+ "url": "https://github.com/Strivacity/sdk-js"
10
+ },
11
+ "type": "module",
8
12
  "dependencies": {
9
- "@strivacity/sdk-core": "2.1.1"
13
+ "@strivacity/sdk-core": "2.2.0"
10
14
  },
11
15
  "main": "./dist/module.mjs",
12
16
  "types": "./dist/types.d.mts",
@@ -1,7 +0,0 @@
1
-
2
- declare module 'nuxt/app/defaults' {
3
- type DefaultAsyncDataErrorValue = null
4
- type DefaultAsyncDataValue = null
5
- type DefaultErrorValue = null
6
- type DedupeOption = boolean | 'cancel' | 'defer'
7
- }
@@ -1,114 +0,0 @@
1
- import { NuxtModule, ModuleDependencyMeta, RuntimeConfig } from '@nuxt/schema'
2
- declare module '@nuxt/schema' {
3
- interface ModuleDependencies {
4
- ["/home/runner/work/sdk-js/sdk-js/packages/sdk-nuxt/src/module"]?: ModuleDependencyMeta<typeof import("/home/runner/work/sdk-js/sdk-js/packages/sdk-nuxt/src/module").default extends NuxtModule<infer O> ? O : Record<string, unknown>>
5
- ["@nuxt/devtools"]?: ModuleDependencyMeta<typeof import("@nuxt/devtools").default extends NuxtModule<infer O> ? O : Record<string, unknown>>
6
- ["@nuxt/telemetry"]?: ModuleDependencyMeta<typeof import("@nuxt/telemetry").default extends NuxtModule<infer O> ? O : Record<string, unknown>>
7
- }
8
- interface NuxtOptions {
9
- /**
10
- * Configuration for `/home/runner/work/sdk-js/sdk-js/packages/sdk-nuxt/src/module`
11
- */
12
- ["strivacity"]: typeof import("/home/runner/work/sdk-js/sdk-js/packages/sdk-nuxt/src/module").default extends NuxtModule<infer O, unknown, boolean> ? O : Record<string, any>
13
- /**
14
- * Configuration for `@nuxt/devtools`
15
- */
16
- ["devtools"]: typeof import("@nuxt/devtools").default extends NuxtModule<infer O, unknown, boolean> ? O : Record<string, any>
17
- /**
18
- * Configuration for `@nuxt/telemetry`
19
- */
20
- ["telemetry"]: typeof import("@nuxt/telemetry").default extends NuxtModule<infer O, unknown, boolean> ? O : Record<string, any>
21
- }
22
- interface NuxtConfig {
23
- /**
24
- * Configuration for `/home/runner/work/sdk-js/sdk-js/packages/sdk-nuxt/src/module`
25
- */
26
- ["strivacity"]?: typeof import("/home/runner/work/sdk-js/sdk-js/packages/sdk-nuxt/src/module").default extends NuxtModule<infer O, unknown, boolean> ? Partial<O> : Record<string, any>
27
- /**
28
- * Configuration for `@nuxt/devtools`
29
- */
30
- ["devtools"]?: typeof import("@nuxt/devtools").default extends NuxtModule<infer O, unknown, boolean> ? Partial<O> : Record<string, any>
31
- /**
32
- * Configuration for `@nuxt/telemetry`
33
- */
34
- ["telemetry"]?: typeof import("@nuxt/telemetry").default extends NuxtModule<infer O, unknown, boolean> ? Partial<O> : Record<string, any>
35
- modules?: (undefined | null | false | NuxtModule<any> | string | [NuxtModule | string, Record<string, any>] | ["/home/runner/work/sdk-js/sdk-js/packages/sdk-nuxt/src/module", Exclude<NuxtConfig["strivacity"], boolean>] | ["@nuxt/devtools", Exclude<NuxtConfig["devtools"], boolean>] | ["@nuxt/telemetry", Exclude<NuxtConfig["telemetry"], boolean>])[],
36
- }
37
- }
38
- declare module 'nuxt/schema' {
39
- interface ModuleDependencies {
40
- ["/home/runner/work/sdk-js/sdk-js/packages/sdk-nuxt/src/module"]?: ModuleDependencyMeta<typeof import("/home/runner/work/sdk-js/sdk-js/packages/sdk-nuxt/src/module").default extends NuxtModule<infer O> ? O : Record<string, unknown>>
41
- ["@nuxt/devtools"]?: ModuleDependencyMeta<typeof import("@nuxt/devtools").default extends NuxtModule<infer O> ? O : Record<string, unknown>>
42
- ["@nuxt/telemetry"]?: ModuleDependencyMeta<typeof import("@nuxt/telemetry").default extends NuxtModule<infer O> ? O : Record<string, unknown>>
43
- }
44
- interface NuxtOptions {
45
- /**
46
- * Configuration for `/home/runner/work/sdk-js/sdk-js/packages/sdk-nuxt/src/module`
47
- * @see https://www.npmjs.com/package//home/runner/work/sdk-js/sdk-js/packages/sdk-nuxt/src/module
48
- */
49
- ["strivacity"]: typeof import("/home/runner/work/sdk-js/sdk-js/packages/sdk-nuxt/src/module").default extends NuxtModule<infer O, unknown, boolean> ? O : Record<string, any>
50
- /**
51
- * Configuration for `@nuxt/devtools`
52
- * @see https://www.npmjs.com/package/@nuxt/devtools
53
- */
54
- ["devtools"]: typeof import("@nuxt/devtools").default extends NuxtModule<infer O, unknown, boolean> ? O : Record<string, any>
55
- /**
56
- * Configuration for `@nuxt/telemetry`
57
- * @see https://www.npmjs.com/package/@nuxt/telemetry
58
- */
59
- ["telemetry"]: typeof import("@nuxt/telemetry").default extends NuxtModule<infer O, unknown, boolean> ? O : Record<string, any>
60
- }
61
- interface NuxtConfig {
62
- /**
63
- * Configuration for `/home/runner/work/sdk-js/sdk-js/packages/sdk-nuxt/src/module`
64
- * @see https://www.npmjs.com/package//home/runner/work/sdk-js/sdk-js/packages/sdk-nuxt/src/module
65
- */
66
- ["strivacity"]?: typeof import("/home/runner/work/sdk-js/sdk-js/packages/sdk-nuxt/src/module").default extends NuxtModule<infer O, unknown, boolean> ? Partial<O> : Record<string, any>
67
- /**
68
- * Configuration for `@nuxt/devtools`
69
- * @see https://www.npmjs.com/package/@nuxt/devtools
70
- */
71
- ["devtools"]?: typeof import("@nuxt/devtools").default extends NuxtModule<infer O, unknown, boolean> ? Partial<O> : Record<string, any>
72
- /**
73
- * Configuration for `@nuxt/telemetry`
74
- * @see https://www.npmjs.com/package/@nuxt/telemetry
75
- */
76
- ["telemetry"]?: typeof import("@nuxt/telemetry").default extends NuxtModule<infer O, unknown, boolean> ? Partial<O> : Record<string, any>
77
- modules?: (undefined | null | false | NuxtModule<any> | string | [NuxtModule | string, Record<string, any>] | ["/home/runner/work/sdk-js/sdk-js/packages/sdk-nuxt/src/module", Exclude<NuxtConfig["strivacity"], boolean>] | ["@nuxt/devtools", Exclude<NuxtConfig["devtools"], boolean>] | ["@nuxt/telemetry", Exclude<NuxtConfig["telemetry"], boolean>])[],
78
- }
79
- interface RuntimeConfig {
80
- app: {
81
- buildId: string,
82
-
83
- baseURL: string,
84
-
85
- buildAssetsDir: string,
86
-
87
- cdnURL: string,
88
- },
89
-
90
- nitro: {
91
- envPrefix: string,
92
- },
93
- }
94
- interface PublicRuntimeConfig {
95
- strivacity: {
96
- issuer: string,
97
-
98
- scopes: Array<string>,
99
-
100
- clientId: string,
101
-
102
- redirectUri: string,
103
-
104
- responseType: string,
105
-
106
- responseMode: string,
107
- },
108
- }
109
- }
110
- declare module 'vue' {
111
- interface ComponentCustomProperties {
112
- $config: RuntimeConfig
113
- }
114
- }