@authup/client-web-kit 1.0.0-beta.46 → 1.0.0-beta.47

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 (75) hide show
  1. package/dist/components/entities/identity-provider/AIdentityProviderPicker.vue.d.ts.map +1 -1
  2. package/dist/components/entities/policy/APolicyTypePicker.vue.d.ts.map +1 -1
  3. package/dist/components/entities/realm/ARealmGrid.vue.d.ts +67 -0
  4. package/dist/components/entities/realm/ARealmGrid.vue.d.ts.map +1 -0
  5. package/dist/components/entities/realm/index.d.ts +1 -0
  6. package/dist/components/entities/realm/index.d.ts.map +1 -1
  7. package/dist/components/utility/AAuthBackLink.vue.d.ts +87 -0
  8. package/dist/components/utility/AAuthBackLink.vue.d.ts.map +1 -0
  9. package/dist/components/utility/AAuthGadgets.vue.d.ts +52 -0
  10. package/dist/components/utility/AAuthGadgets.vue.d.ts.map +1 -0
  11. package/dist/components/utility/AAuthShell.vue.d.ts +16 -0
  12. package/dist/components/utility/AAuthShell.vue.d.ts.map +1 -0
  13. package/dist/components/utility/AColorModeSwitcher.vue.d.ts +22 -0
  14. package/dist/components/utility/AColorModeSwitcher.vue.d.ts.map +1 -0
  15. package/dist/components/utility/ALanguageSwitcherDropdown.d.ts +35 -0
  16. package/dist/components/utility/ALanguageSwitcherDropdown.d.ts.map +1 -0
  17. package/dist/components/utility/index.d.ts +5 -1
  18. package/dist/components/utility/index.d.ts.map +1 -1
  19. package/dist/components/workflows/authorize/Authorize.vue.d.ts +98 -2
  20. package/dist/components/workflows/authorize/Authorize.vue.d.ts.map +1 -1
  21. package/dist/components/workflows/authorize/AuthorizeForm.vue.d.ts +2 -0
  22. package/dist/components/workflows/authorize/AuthorizeForm.vue.d.ts.map +1 -1
  23. package/dist/components/workflows/index.d.ts +3 -1
  24. package/dist/components/workflows/index.d.ts.map +1 -1
  25. package/dist/components/workflows/{Login.vue.d.ts → login/LoginForm.vue.d.ts} +112 -30
  26. package/dist/components/workflows/login/LoginForm.vue.d.ts.map +1 -0
  27. package/dist/components/workflows/login/index.d.ts +6 -0
  28. package/dist/components/workflows/login/index.d.ts.map +1 -0
  29. package/dist/components/workflows/password/PasswordForgotForm.vue.d.ts +461 -0
  30. package/dist/components/workflows/password/PasswordForgotForm.vue.d.ts.map +1 -0
  31. package/dist/components/workflows/password/PasswordResetForm.vue.d.ts +386 -0
  32. package/dist/components/workflows/password/PasswordResetForm.vue.d.ts.map +1 -0
  33. package/dist/components/workflows/password/index.d.ts +3 -0
  34. package/dist/components/workflows/password/index.d.ts.map +1 -0
  35. package/dist/components/workflows/register/ActivateForm.vue.d.ts +376 -0
  36. package/dist/components/workflows/register/ActivateForm.vue.d.ts.map +1 -0
  37. package/dist/components/workflows/register/RegisterForm.vue.d.ts +837 -0
  38. package/dist/components/workflows/register/RegisterForm.vue.d.ts.map +1 -0
  39. package/dist/components/workflows/register/index.d.ts +3 -0
  40. package/dist/components/workflows/register/index.d.ts.map +1 -0
  41. package/dist/core/http-client/authentication-hook/install.d.ts.map +1 -1
  42. package/dist/core/http-client/authentication-hook/types.d.ts +2 -0
  43. package/dist/core/http-client/authentication-hook/types.d.ts.map +1 -1
  44. package/dist/core/http-client/install.d.ts.map +1 -1
  45. package/dist/core/http-client/singleton.d.ts +3 -3
  46. package/dist/core/http-client/singleton.d.ts.map +1 -1
  47. package/dist/core/http-client/types.d.ts +2 -0
  48. package/dist/core/http-client/types.d.ts.map +1 -1
  49. package/dist/core/index.d.ts +1 -0
  50. package/dist/core/index.d.ts.map +1 -1
  51. package/dist/core/oauth2/authorization-request.d.ts +29 -0
  52. package/dist/core/oauth2/authorization-request.d.ts.map +1 -0
  53. package/dist/core/oauth2/index.d.ts +3 -0
  54. package/dist/core/oauth2/index.d.ts.map +1 -0
  55. package/dist/core/oauth2/pkce.d.ts +8 -0
  56. package/dist/core/oauth2/pkce.d.ts.map +1 -0
  57. package/dist/core/store/create.d.ts +6 -1
  58. package/dist/core/store/create.d.ts.map +1 -1
  59. package/dist/core/store/install.d.ts.map +1 -1
  60. package/dist/core/store/types.d.ts +3 -0
  61. package/dist/core/store/types.d.ts.map +1 -1
  62. package/dist/core/translator/index.d.ts +1 -0
  63. package/dist/core/translator/index.d.ts.map +1 -1
  64. package/dist/core/translator/locale.d.ts +21 -0
  65. package/dist/core/translator/locale.d.ts.map +1 -0
  66. package/dist/index.mjs +1366 -374
  67. package/dist/index.mjs.map +1 -1
  68. package/dist/module.d.ts.map +1 -1
  69. package/dist/types.d.ts +8 -2
  70. package/dist/types.d.ts.map +1 -1
  71. package/package.json +22 -19
  72. package/dist/components/utility/LanguageSwitcherDropdown.d.ts +0 -17
  73. package/dist/components/utility/LanguageSwitcherDropdown.d.ts.map +0 -1
  74. package/dist/components/workflows/Login.vue.d.ts.map +0 -1
  75. package/dist/style.css +0 -48
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RegisterForm.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/workflows/register/RegisterForm.vue"],"names":[],"mappings":"AA0OA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAC;AAQpC,OAAO,EACH,8BAA8B,EAC9B,8BAA8B,EAC9B,6BAA6B,EAEhC,MAAM,cAAc,CAAC;AAMtB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;wBAsB7B,OAAO,YAAY;AAAxC,wBAAyC;AAgQzC,QAAA,MAAM,YAAY;;;;;cAWkB,QAAQ,CAAC,cAAc,CAAC;;;;cAvRlD,MAAM;eACL,MAAM;kBACH,MAAM;;;;;;;;;;;;;;;;;;cAqRgB,QAAQ,CAAC,cAAc,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uBApT5D,GAjKsC;yBAiKtC,GA/JkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qCAyKN,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iCAAH,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oEAoYb,CAAC"}
@@ -0,0 +1,3 @@
1
+ export { default as ARegisterForm } from './RegisterForm.vue';
2
+ export { default as AActivateForm } from './ActivateForm.vue';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/workflows/register/index.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAC9D,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,oBAAoB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"install.d.ts","sourceRoot":"","sources":["../../../../src/core/http-client/authentication-hook/install.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAI/B,OAAO,KAAK,EAAE,0CAA0C,EAAE,MAAM,SAAS,CAAC;AAE1E,wBAAgB,mCAAmC,CAC/C,GAAG,EAAE,GAAG,EACR,OAAO,GAAE,0CAA+C,QA6E3D"}
1
+ {"version":3,"file":"install.d.ts","sourceRoot":"","sources":["../../../../src/core/http-client/authentication-hook/install.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAI/B,OAAO,KAAK,EAAE,0CAA0C,EAAE,MAAM,SAAS,CAAC;AAE1E,wBAAgB,mCAAmC,CAC/C,GAAG,EAAE,GAAG,EACR,OAAO,GAAE,0CAA+C,QA6E3D"}
@@ -1,6 +1,8 @@
1
+ import type { IClient } from '@authup/core-http-kit';
1
2
  import type { Pinia } from 'pinia';
2
3
  export type HTTPClientAuthenticationHookInstallOptions = {
3
4
  baseURL?: string;
5
+ httpClient?: IClient;
4
6
  pinia?: Pinia;
5
7
  isServer?: boolean;
6
8
  };
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/core/http-client/authentication-hook/types.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,OAAO,CAAC;AAEnC,MAAM,MAAM,0CAA0C,GAAG;IACrD,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,KAAK,CAAC;IACd,QAAQ,CAAC,EAAE,OAAO,CAAA;CACrB,CAAC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/core/http-client/authentication-hook/types.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AACrD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,OAAO,CAAC;AAEnC,MAAM,MAAM,0CAA0C,GAAG;IACrD,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,KAAK,CAAC,EAAE,KAAK,CAAC;IACd,QAAQ,CAAC,EAAE,OAAO,CAAA;CACrB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"install.d.ts","sourceRoot":"","sources":["../../../src/core/http-client/install.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAE/B,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,SAAS,CAAC;AAGxD,wBAAgB,iBAAiB,CAAC,GAAG,EAAE,GAAG,EAAE,OAAO,GAAE,wBAA6B,QAWjF"}
1
+ {"version":3,"file":"install.d.ts","sourceRoot":"","sources":["../../../src/core/http-client/install.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAE/B,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,SAAS,CAAC;AAGxD,wBAAgB,iBAAiB,CAAC,GAAG,EAAE,GAAG,EAAE,OAAO,GAAE,wBAA6B,QAWjF"}
@@ -1,7 +1,7 @@
1
- import type { Client } from '@authup/core-http-kit';
1
+ import type { IClient } from '@authup/core-http-kit';
2
2
  import type { App } from 'vue';
3
3
  export declare const HTTPClientSymbol: unique symbol;
4
- export declare function provideHTTPClient(client: Client, app?: App): void;
4
+ export declare function provideHTTPClient(client: IClient, app?: App): void;
5
5
  export declare function hasHTTPClient(app?: App): boolean;
6
- export declare function injectHTTPClient(app?: App): Client;
6
+ export declare function injectHTTPClient(app?: App): IClient;
7
7
  //# sourceMappingURL=singleton.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"singleton.d.ts","sourceRoot":"","sources":["../../../src/core/http-client/singleton.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AACpD,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAI/B,eAAO,MAAM,gBAAgB,eAAiC,CAAC;AAE/D,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,MAAM,EAAE,GAAG,CAAC,EAAE,GAAG,QAE1D;AAED,wBAAgB,aAAa,CAAC,GAAG,CAAC,EAAE,GAAG,GAAI,OAAO,CAMjD;AAED,wBAAgB,gBAAgB,CAAC,GAAG,CAAC,EAAE,GAAG,UAOzC"}
1
+ {"version":3,"file":"singleton.d.ts","sourceRoot":"","sources":["../../../src/core/http-client/singleton.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AACrD,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAI/B,eAAO,MAAM,gBAAgB,eAAiC,CAAC;AAE/D,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,OAAO,EAAE,GAAG,CAAC,EAAE,GAAG,QAE3D;AAED,wBAAgB,aAAa,CAAC,GAAG,CAAC,EAAE,GAAG,GAAI,OAAO,CAMjD;AAED,wBAAgB,gBAAgB,CAAC,GAAG,CAAC,EAAE,GAAG,WAOzC"}
@@ -1,6 +1,8 @@
1
+ import type { IClient } from '@authup/core-http-kit';
1
2
  import type { Pinia } from 'pinia';
2
3
  export type HTTPClientInstallOptions = {
3
4
  baseURL?: string;
5
+ httpClient?: IClient;
4
6
  pinia?: Pinia;
5
7
  isServer?: boolean;
6
8
  };
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/core/http-client/types.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,OAAO,CAAC;AAEnC,MAAM,MAAM,wBAAwB,GAAG;IACnC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,KAAK,CAAC;IACd,QAAQ,CAAC,EAAE,OAAO,CAAA;CACrB,CAAC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/core/http-client/types.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AACrD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,OAAO,CAAC;AAEnC,MAAM,MAAM,wBAAwB,GAAG;IACnC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,KAAK,CAAC,EAAE,KAAK,CAAC;IACd,QAAQ,CAAC,EAAE,OAAO,CAAA;CACrB,CAAC"}
@@ -4,6 +4,7 @@ export * from './provide';
4
4
  export * from './form';
5
5
  export * from './query';
6
6
  export * from './busy';
7
+ export * from './oauth2';
7
8
  export * from './permission-check';
8
9
  export * from './socket-manager';
9
10
  export * from './store';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/core/index.ts"],"names":[],"mappings":"AAOA,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,CAAC;AACjC,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/core/index.ts"],"names":[],"mappings":"AAOA,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,cAAc,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,CAAC;AACjC,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC"}
@@ -0,0 +1,29 @@
1
+ /**
2
+ * The state persisted between the `/authorize` redirect and the callback.
3
+ * `state` guards against CSRF, `code_verifier` is the PKCE secret, and
4
+ * `redirect_uri` must be replayed verbatim at the `/token` exchange
5
+ * (RFC 6749 §4.1.3). `target` is the in-app path to land on after login.
6
+ */
7
+ export type AuthorizationRequest = {
8
+ state: string;
9
+ code_verifier: string;
10
+ redirect_uri: string;
11
+ client_id: string;
12
+ realm_id?: string;
13
+ target?: string;
14
+ };
15
+ export declare function saveAuthorizationRequest(request: AuthorizationRequest): void;
16
+ export declare function loadAuthorizationRequest(): AuthorizationRequest | undefined;
17
+ export declare function clearAuthorizationRequest(): void;
18
+ export type BuildAuthorizeURLContext = {
19
+ baseURL: string;
20
+ clientId: string;
21
+ realmId?: string;
22
+ redirectUri: string;
23
+ scope?: string;
24
+ state: string;
25
+ codeChallenge: string;
26
+ codeChallengeMethod: string;
27
+ };
28
+ export declare function buildAuthorizeURL(ctx: BuildAuthorizeURLContext): string;
29
+ //# sourceMappingURL=authorization-request.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"authorization-request.d.ts","sourceRoot":"","sources":["../../../src/core/oauth2/authorization-request.ts"],"names":[],"mappings":"AASA;;;;;GAKG;AACH,MAAM,MAAM,oBAAoB,GAAG;IAC/B,KAAK,EAAE,MAAM,CAAC;IACd,aAAa,EAAE,MAAM,CAAC;IACtB,YAAY,EAAE,MAAM,CAAC;IACrB,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAA;CAClB,CAAC;AAEF,wBAAgB,wBAAwB,CAAC,OAAO,EAAE,oBAAoB,GAAG,IAAI,CAM5E;AAED,wBAAgB,wBAAwB,IAAI,oBAAoB,GAAG,SAAS,CAe3E;AAED,wBAAgB,yBAAyB,IAAI,IAAI,CAMhD;AAED,MAAM,MAAM,wBAAwB,GAAG;IACnC,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,aAAa,EAAE,MAAM,CAAC;IACtB,mBAAmB,EAAE,MAAM,CAAA;CAC9B,CAAC;AAEF,wBAAgB,iBAAiB,CAAC,GAAG,EAAE,wBAAwB,GAAG,MAAM,CAgBvE"}
@@ -0,0 +1,3 @@
1
+ export * from './pkce';
2
+ export * from './authorization-request';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/core/oauth2/index.ts"],"names":[],"mappings":"AAOA,cAAc,QAAQ,CAAC;AACvB,cAAc,yBAAyB,CAAC"}
@@ -0,0 +1,8 @@
1
+ export type PKCE = {
2
+ code_verifier: string;
3
+ code_challenge: string;
4
+ code_challenge_method: 'S256';
5
+ };
6
+ export declare function createState(): string;
7
+ export declare function createPKCE(): Promise<PKCE>;
8
+ //# sourceMappingURL=pkce.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pkce.d.ts","sourceRoot":"","sources":["../../../src/core/oauth2/pkce.ts"],"names":[],"mappings":"AASA,MAAM,MAAM,IAAI,GAAG;IACf,aAAa,EAAE,MAAM,CAAC;IACtB,cAAc,EAAE,MAAM,CAAC;IACvB,qBAAqB,EAAE,MAAM,CAAA;CAChC,CAAC;AAoBF,wBAAgB,WAAW,IAAI,MAAM,CAEpC;AAED,wBAAsB,UAAU,IAAI,OAAO,CAAC,IAAI,CAAC,CAiBhD"}
@@ -13,7 +13,12 @@ export declare function createStore(context: StoreCreateContext): {
13
13
  logout: () => Promise<void>;
14
14
  loggedIn: import("vue").ComputedRef<boolean>;
15
15
  resolve: OutputFn<() => Promise<void>>;
16
- exchangeAuthorizationCode: (code: string) => Promise<void>;
16
+ exchangeAuthorizationCode: (code: string, params?: {
17
+ code_verifier?: string;
18
+ redirect_uri?: string;
19
+ client_id?: string;
20
+ realm_id?: string;
21
+ }) => Promise<void>;
17
22
  applyTokenGrantResponse: (response: OAuth2TokenGrantResponse) => void;
18
23
  accessToken: import("vue").Ref<string, string>;
19
24
  setAccessToken: (input: string | null) => void;
@@ -1 +1 @@
1
- {"version":3,"file":"create.d.ts","sourceRoot":"","sources":["../../../src/core/store/create.ts"],"names":[],"mappings":"AAOA,OAAO,EACH,mBAAmB,EAGtB,MAAM,gBAAgB,CAAC;AAGxB,OAAO,KAAK,EACR,wBAAwB,EAE3B,MAAM,eAAe,CAAC;AACvB,OAAO,KAAK,EACR,KAAK,EACL,IAAI,EACP,MAAM,kBAAkB,CAAC;AAI1B,OAAO,KAAK,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAErE,KAAK,OAAO,GAAG,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,OAAO,CAAC,GAAG,CAAC,CAAC;AAChD,KAAK,QAAQ,CAAC,CAAC,SAAS,OAAO,IAAI,CAAC,GAAG,IAAI,EAAE,UAAU,CAAC,CAAC,CAAC,KAAK,OAAO,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AA8B/F,KAAK,YAAY,GAAG,IAAI,CAAC,KAAK,EAAE,IAAI,GAAG,MAAM,CAAC,CAAC;AAE/C,wBAAgB,WAAW,CAAC,OAAO,EAAE,kBAAkB;;4BAIpB,OAAO;;iBA4QZ,iBAAiB;;;4BAlCR,OAAO,CAAC,IAAI,CAAC;sCAmDD,MAAM;wCA3FvC,wBAAwB;;4BA3LP,MAAM,GAAG,IAAI;;sCAYH,IAAI,GAAG,MAAM,GAAG,MAAM,GAAG,IAAI;;6BAgBtC,MAAM,GAAG,IAAI;;;;;;;;;;;sBAiCpB,YAAY,GAAG,IAAI;;;;;;;;;;gCAUT,YA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,YAAY,GAAG,IAAI;;;;;;;;;;gCAUT,YAAY,GAAG,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBA7B9B,IAAI,GAAG,IAAI;EA6StC"}
@@ -1 +1 @@
1
- {"version":3,"file":"install.d.ts","sourceRoot":"","sources":["../../../src/core/store/install.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAW/B,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAEnD,wBAAgB,YAAY,CAAC,GAAG,EAAE,GAAG,EAAE,OAAO,GAAE,mBAAwB,QAiLvE"}
1
+ {"version":3,"file":"install.d.ts","sourceRoot":"","sources":["../../../src/core/store/install.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAW/B,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAEnD,wBAAgB,YAAY,CAAC,GAAG,EAAE,GAAG,EAAE,OAAO,GAAE,mBAAwB,QAkLvE"}
@@ -1,4 +1,5 @@
1
1
  import type { Store as BaseStore, StoreDefinition as BaseStoreDefinition, Pinia, _ExtractActionsFromSetupStore, _ExtractGettersFromSetupStore, _ExtractStateFromSetupStore } from 'pinia';
2
+ import type { IClient } from '@authup/core-http-kit';
2
3
  import type { CookieGetFn, CookieSetFn, CookieUnsetFn } from '../../types';
3
4
  import type { createStore } from './create';
4
5
  import type { StoreDispatcher } from './dispatcher';
@@ -7,6 +8,7 @@ export type Store = BaseStore<string, _ExtractStateFromSetupStore<StoreData>, _E
7
8
  export type StoreDefinition = BaseStoreDefinition<string, _ExtractStateFromSetupStore<StoreData>, _ExtractGettersFromSetupStore<StoreData>, _ExtractActionsFromSetupStore<StoreData>>;
8
9
  export type StoreCreateContext = {
9
10
  baseURL?: string;
11
+ httpClient?: IClient;
10
12
  dispatcher: StoreDispatcher;
11
13
  };
12
14
  export type StoreLoginContext = {
@@ -16,6 +18,7 @@ export type StoreLoginContext = {
16
18
  };
17
19
  export type StoreInstallOptions = {
18
20
  baseURL?: string;
21
+ httpClient?: IClient;
19
22
  cookieSet?: CookieSetFn;
20
23
  cookieUnset?: CookieUnsetFn;
21
24
  cookieGet?: CookieGetFn;
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/core/store/types.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EACR,KAAK,IAAI,SAAS,EAClB,eAAe,IAAI,mBAAmB,EACtC,KAAK,EACL,6BAA6B,EAC7B,6BAA6B,EAC7B,2BAA2B,EAC9B,MAAM,OAAO,CAAC;AACf,OAAO,KAAK,EAAE,WAAW,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC3E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAC5C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAEpD,KAAK,SAAS,GAAG,UAAU,CAAC,OAAO,WAAW,CAAC,CAAC;AAChD,MAAM,MAAM,KAAK,GAAG,SAAS,CACzB,MAAM,EACN,2BAA2B,CAAC,SAAS,CAAC,EACtC,6BAA6B,CAAC,SAAS,CAAC,EACxC,6BAA6B,CAAC,SAAS,CAAC,CAC3C,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG,mBAAmB,CAC7C,MAAM,EACN,2BAA2B,CAAC,SAAS,CAAC,EACtC,6BAA6B,CAAC,SAAS,CAAC,EACxC,6BAA6B,CAAC,SAAS,CAAC,CAC3C,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG;IAC7B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,eAAe,CAAA;CAC9B,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;I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B,UAAU,EAAE,eAAe,CAAA;CAC9B,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAA;CACnB,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG;IAC9B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE,WAAW,CAAC;IACxB,WAAW,CAAC,EAAE,aAAa,CAAC;IAC5B,SAAS,CAAC,EAAE,WAAW,CAAC;IACxB,KAAK,CAAC,EAAE,KAAK,CAAA;CAChB,CAAC"}
@@ -1,4 +1,5 @@
1
1
  export * from './helpers';
2
2
  export * from './install';
3
+ export * from './locale';
3
4
  export * from './singleton';
4
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/core/translator/index.ts"],"names":[],"mappings":"AAOA,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/core/translator/index.ts"],"names":[],"mappings":"AAOA,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC"}
@@ -0,0 +1,21 @@
1
+ import type { App, ComputedRef } from 'vue';
2
+ export type LocaleControl = {
3
+ /** Active locale narrowed to a supported catalog code. */
4
+ code: ComputedRef<string>;
5
+ /** Apply a locale; persistence is owned by vuecs when present. */
6
+ set: (input: string) => void;
7
+ };
8
+ /**
9
+ * Single control surface for the active UI locale. Prefers `@vuecs/locale`'s
10
+ * manager (the source of truth — cookie persistence, `auto`/browser
11
+ * resolution, `<html lang>` sync, `Config['locale']`), and falls back to the
12
+ * ilingo locale ref when vuecs-locale is absent.
13
+ */
14
+ export declare function useLocaleControl(): LocaleControl;
15
+ /**
16
+ * One-way bridge that keeps the ilingo locale (driving authup's catalogs) in
17
+ * sync with vuecs's resolved locale (the source of truth). No-op when
18
+ * vuecs-locale is not installed — there ilingo is the source directly.
19
+ */
20
+ export declare function syncTranslatorLocaleFromManager(app: App): void;
21
+ //# sourceMappingURL=locale.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"locale.d.ts","sourceRoot":"","sources":["../../../src/core/translator/locale.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,GAAG,EAAE,WAAW,EAAE,MAAM,KAAK,CAAC;AAe5C,MAAM,MAAM,aAAa,GAAG;IACxB,0DAA0D;IAC1D,IAAI,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IAC1B,kEAAkE;IAClE,GAAG,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CAChC,CAAC;AAEF;;;;;GAKG;AACH,wBAAgB,gBAAgB,IAAI,aAAa,CAmBhD;AAED;;;;GAIG;AACH,wBAAgB,+BAA+B,CAAC,GAAG,EAAE,GAAG,GAAG,IAAI,CAiB9D"}