@thunderid/vue 1.22.0 → 1.24.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 (35) hide show
  1. package/dist/api/account/deleteMeAgent.d.ts +24 -0
  2. package/dist/api/account/deleteMeAgent.d.ts.map +1 -0
  3. package/dist/api/account/getMeAgent.d.ts +24 -0
  4. package/dist/api/account/getMeAgent.d.ts.map +1 -0
  5. package/dist/api/account/getMeAgents.d.ts +28 -0
  6. package/dist/api/account/getMeAgents.d.ts.map +1 -0
  7. package/dist/api/account/suspendAllMeAgents.d.ts +24 -0
  8. package/dist/api/account/suspendAllMeAgents.d.ts.map +1 -0
  9. package/dist/api/account/suspendMeAgent.d.ts +24 -0
  10. package/dist/api/account/suspendMeAgent.d.ts.map +1 -0
  11. package/dist/api/account/unsuspendMeAgent.d.ts +24 -0
  12. package/dist/api/account/unsuspendMeAgent.d.ts.map +1 -0
  13. package/dist/api/account/updateMeAgent.d.ts +28 -0
  14. package/dist/api/account/updateMeAgent.d.ts.map +1 -0
  15. package/dist/cjs/index.cjs +2634 -1754
  16. package/dist/components/account/personal-agent-details/BasePersonalAgentDetails.d.ts +34 -0
  17. package/dist/components/account/personal-agent-details/BasePersonalAgentDetails.d.ts.map +1 -0
  18. package/dist/components/account/personal-agent-details/PersonalAgentDetails.d.ts +16 -0
  19. package/dist/components/account/personal-agent-details/PersonalAgentDetails.d.ts.map +1 -0
  20. package/dist/components/account/personal-agent-list/BasePersonalAgentList.d.ts +32 -0
  21. package/dist/components/account/personal-agent-list/BasePersonalAgentList.d.ts.map +1 -0
  22. package/dist/components/account/personal-agent-list/PersonalAgentList.d.ts +17 -0
  23. package/dist/components/account/personal-agent-list/PersonalAgentList.d.ts.map +1 -0
  24. package/dist/components/auth/sign-in/SignIn.d.ts.map +1 -1
  25. package/dist/components/management/AgentDetails/AgentDetails.d.ts.map +1 -1
  26. package/dist/components/management/AgentDetails/BaseAgentDetails.d.ts.map +1 -1
  27. package/dist/components/management/AgentList/BaseAgentList.d.ts.map +1 -1
  28. package/dist/composables/auth/useFlowExpiryHandling.d.ts +26 -2
  29. package/dist/composables/auth/useFlowExpiryHandling.d.ts.map +1 -1
  30. package/dist/composables/management/useAccountLifecycle.d.ts +6 -2
  31. package/dist/composables/management/useAccountLifecycle.d.ts.map +1 -1
  32. package/dist/index.d.ts +27 -1
  33. package/dist/index.d.ts.map +1 -1
  34. package/dist/index.js +2565 -1764
  35. package/package.json +2 -2
@@ -0,0 +1,24 @@
1
+ import { DeleteMeAgentConfig as BaseDeleteMeAgentConfig } from '@thunderid/browser';
2
+ export interface DeleteMeAgentConfig extends Omit<BaseDeleteMeAgentConfig, 'fetcher'> {
3
+ /**
4
+ * Optional custom fetcher function. If not provided, the ThunderID SPA client's httpClient is used, which
5
+ * attaches the signed-in user's access token.
6
+ */
7
+ fetcher?: (url: string, config: RequestInit) => Promise<Response>;
8
+ /**
9
+ * Optional instance ID for multi-instance support. Defaults to 0.
10
+ */
11
+ instanceId?: number;
12
+ }
13
+ /**
14
+ * Deletes one of the signed-in user's personal agents, with the signed-in user's access token attached by the
15
+ * SDK's HTTP client.
16
+ *
17
+ * @example
18
+ * ```typescript
19
+ * await deleteMeAgent({baseUrl: 'https://localhost:8090', agentId: 'a-1'});
20
+ * ```
21
+ */
22
+ declare const deleteMeAgent: ({ fetcher, instanceId, ...requestConfig }: DeleteMeAgentConfig) => Promise<void>;
23
+ export default deleteMeAgent;
24
+ //# sourceMappingURL=deleteMeAgent.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deleteMeAgent.d.ts","sourceRoot":"","sources":["../../../src/api/account/deleteMeAgent.ts"],"names":[],"mappings":"AAGA,OAAO,EAGL,mBAAmB,IAAI,uBAAuB,EAC/C,MAAM,oBAAoB,CAAC;AAE5B,MAAM,WAAW,mBAAoB,SAAQ,IAAI,CAAC,uBAAuB,EAAE,SAAS,CAAC;IACnF;;;OAGG;IACH,OAAO,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,WAAW,KAAK,OAAO,CAAC,QAAQ,CAAC,CAAC;IAClE;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED;;;;;;;;GAQG;AACH,QAAA,MAAM,aAAa,GAAU,2CAA6C,mBAAmB,KAAG,OAAO,CAAC,IAAI,CAIxG,CAAC;AAEL,eAAe,aAAa,CAAC"}
@@ -0,0 +1,24 @@
1
+ import { Agent, GetMeAgentConfig as BaseGetMeAgentConfig } from '@thunderid/browser';
2
+ export interface GetMeAgentConfig extends Omit<BaseGetMeAgentConfig, 'fetcher'> {
3
+ /**
4
+ * Optional custom fetcher function. If not provided, the ThunderID SPA client's httpClient is used, which
5
+ * attaches the signed-in user's access token.
6
+ */
7
+ fetcher?: (url: string, config: RequestInit) => Promise<Response>;
8
+ /**
9
+ * Optional instance ID for multi-instance support. Defaults to 0.
10
+ */
11
+ instanceId?: number;
12
+ }
13
+ /**
14
+ * Retrieves one of the agents the signed-in user owns, with the signed-in user's access token attached by the
15
+ * SDK's HTTP client.
16
+ *
17
+ * @example
18
+ * ```typescript
19
+ * const agent = await getMeAgent({baseUrl: 'https://localhost:8090', agentId: 'a-1'});
20
+ * ```
21
+ */
22
+ declare const getMeAgent: ({ fetcher, instanceId, ...requestConfig }: GetMeAgentConfig) => Promise<Agent>;
23
+ export default getMeAgent;
24
+ //# sourceMappingURL=getMeAgent.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getMeAgent.d.ts","sourceRoot":"","sources":["../../../src/api/account/getMeAgent.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,KAAK,EAGL,gBAAgB,IAAI,oBAAoB,EACzC,MAAM,oBAAoB,CAAC;AAE5B,MAAM,WAAW,gBAAiB,SAAQ,IAAI,CAAC,oBAAoB,EAAE,SAAS,CAAC;IAC7E;;;OAGG;IACH,OAAO,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,WAAW,KAAK,OAAO,CAAC,QAAQ,CAAC,CAAC;IAClE;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED;;;;;;;;GAQG;AACH,QAAA,MAAM,UAAU,GAAU,2CAA6C,gBAAgB,KAAG,OAAO,CAAC,KAAK,CAInG,CAAC;AAEL,eAAe,UAAU,CAAC"}
@@ -0,0 +1,28 @@
1
+ import { AgentListResponse, GetMeAgentsConfig as BaseGetMeAgentsConfig } from '@thunderid/browser';
2
+ export interface GetMeAgentsConfig extends Omit<BaseGetMeAgentsConfig, 'fetcher'> {
3
+ /**
4
+ * Optional custom fetcher function. If not provided, the ThunderID SPA client's httpClient is used, which
5
+ * attaches the signed-in user's access token.
6
+ */
7
+ fetcher?: (url: string, config: RequestInit) => Promise<Response>;
8
+ /**
9
+ * Optional instance ID for multi-instance support. Defaults to 0.
10
+ */
11
+ instanceId?: number;
12
+ }
13
+ /**
14
+ * Retrieves a page of the agents the signed-in user owns, from `/users/me/agents`, with the signed-in user's
15
+ * access token attached by the SDK's HTTP client.
16
+ *
17
+ * @example
18
+ * ```typescript
19
+ * const {agents, totalResults} = await getMeAgents({
20
+ * baseUrl: 'https://localhost:8090',
21
+ * kind: PERSONAL_AGENT_KIND,
22
+ * limit: 10,
23
+ * });
24
+ * ```
25
+ */
26
+ declare const getMeAgents: ({ fetcher, instanceId, ...requestConfig }: GetMeAgentsConfig) => Promise<AgentListResponse>;
27
+ export default getMeAgents;
28
+ //# sourceMappingURL=getMeAgents.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getMeAgents.d.ts","sourceRoot":"","sources":["../../../src/api/account/getMeAgents.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,iBAAiB,EAGjB,iBAAiB,IAAI,qBAAqB,EAC3C,MAAM,oBAAoB,CAAC;AAE5B,MAAM,WAAW,iBAAkB,SAAQ,IAAI,CAAC,qBAAqB,EAAE,SAAS,CAAC;IAC/E;;;OAGG;IACH,OAAO,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,WAAW,KAAK,OAAO,CAAC,QAAQ,CAAC,CAAC;IAClE;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED;;;;;;;;;;;;GAYG;AACH,QAAA,MAAM,WAAW,GAAU,2CAIxB,iBAAiB,KAAG,OAAO,CAAC,iBAAiB,CAI5C,CAAC;AAEL,eAAe,WAAW,CAAC"}
@@ -0,0 +1,24 @@
1
+ import { SuspendAllMeAgentsResponse, SuspendAllMeAgentsConfig as BaseSuspendAllMeAgentsConfig } from '@thunderid/browser';
2
+ export interface SuspendAllMeAgentsConfig extends Omit<BaseSuspendAllMeAgentsConfig, 'fetcher'> {
3
+ /**
4
+ * Optional custom fetcher function. If not provided, the ThunderID SPA client's httpClient is used, which
5
+ * attaches the signed-in user's access token.
6
+ */
7
+ fetcher?: (url: string, config: RequestInit) => Promise<Response>;
8
+ /**
9
+ * Optional instance ID for multi-instance support. Defaults to 0.
10
+ */
11
+ instanceId?: number;
12
+ }
13
+ /**
14
+ * Suspends every personal agent of the signed-in user that the user has not already suspended, with the
15
+ * signed-in user's access token attached by the SDK's HTTP client.
16
+ *
17
+ * @example
18
+ * ```typescript
19
+ * const {suspendedCount} = await suspendAllMeAgents({baseUrl: 'https://localhost:8090'});
20
+ * ```
21
+ */
22
+ declare const suspendAllMeAgents: ({ fetcher, instanceId, ...requestConfig }: SuspendAllMeAgentsConfig) => Promise<SuspendAllMeAgentsResponse>;
23
+ export default suspendAllMeAgents;
24
+ //# sourceMappingURL=suspendAllMeAgents.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"suspendAllMeAgents.d.ts","sourceRoot":"","sources":["../../../src/api/account/suspendAllMeAgents.ts"],"names":[],"mappings":"AAGA,OAAO,EAEL,0BAA0B,EAE1B,wBAAwB,IAAI,4BAA4B,EACzD,MAAM,oBAAoB,CAAC;AAE5B,MAAM,WAAW,wBAAyB,SAAQ,IAAI,CAAC,4BAA4B,EAAE,SAAS,CAAC;IAC7F;;;OAGG;IACH,OAAO,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,WAAW,KAAK,OAAO,CAAC,QAAQ,CAAC,CAAC;IAClE;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED;;;;;;;;GAQG;AACH,QAAA,MAAM,kBAAkB,GAAU,2CAI/B,wBAAwB,KAAG,OAAO,CAAC,0BAA0B,CAI5D,CAAC;AAEL,eAAe,kBAAkB,CAAC"}
@@ -0,0 +1,24 @@
1
+ import { SuspendMeAgentConfig as BaseSuspendMeAgentConfig } from '@thunderid/browser';
2
+ export interface SuspendMeAgentConfig extends Omit<BaseSuspendMeAgentConfig, 'fetcher'> {
3
+ /**
4
+ * Optional custom fetcher function. If not provided, the ThunderID SPA client's httpClient is used, which
5
+ * attaches the signed-in user's access token.
6
+ */
7
+ fetcher?: (url: string, config: RequestInit) => Promise<Response>;
8
+ /**
9
+ * Optional instance ID for multi-instance support. Defaults to 0.
10
+ */
11
+ instanceId?: number;
12
+ }
13
+ /**
14
+ * Places the owner's suspension on one of the signed-in user's personal agents, with the signed-in user's
15
+ * access token attached by the SDK's HTTP client.
16
+ *
17
+ * @example
18
+ * ```typescript
19
+ * await suspendMeAgent({baseUrl: 'https://localhost:8090', agentId: 'a-1'});
20
+ * ```
21
+ */
22
+ declare const suspendMeAgent: ({ fetcher, instanceId, ...requestConfig }: SuspendMeAgentConfig) => Promise<void>;
23
+ export default suspendMeAgent;
24
+ //# sourceMappingURL=suspendMeAgent.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"suspendMeAgent.d.ts","sourceRoot":"","sources":["../../../src/api/account/suspendMeAgent.ts"],"names":[],"mappings":"AAGA,OAAO,EAGL,oBAAoB,IAAI,wBAAwB,EACjD,MAAM,oBAAoB,CAAC;AAE5B,MAAM,WAAW,oBAAqB,SAAQ,IAAI,CAAC,wBAAwB,EAAE,SAAS,CAAC;IACrF;;;OAGG;IACH,OAAO,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,WAAW,KAAK,OAAO,CAAC,QAAQ,CAAC,CAAC;IAClE;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED;;;;;;;;GAQG;AACH,QAAA,MAAM,cAAc,GAAU,2CAA6C,oBAAoB,KAAG,OAAO,CAAC,IAAI,CAI1G,CAAC;AAEL,eAAe,cAAc,CAAC"}
@@ -0,0 +1,24 @@
1
+ import { UnsuspendMeAgentConfig as BaseUnsuspendMeAgentConfig } from '@thunderid/browser';
2
+ export interface UnsuspendMeAgentConfig extends Omit<BaseUnsuspendMeAgentConfig, 'fetcher'> {
3
+ /**
4
+ * Optional custom fetcher function. If not provided, the ThunderID SPA client's httpClient is used, which
5
+ * attaches the signed-in user's access token.
6
+ */
7
+ fetcher?: (url: string, config: RequestInit) => Promise<Response>;
8
+ /**
9
+ * Optional instance ID for multi-instance support. Defaults to 0.
10
+ */
11
+ instanceId?: number;
12
+ }
13
+ /**
14
+ * Lifts the owner's suspension from one of the signed-in user's personal agents, with the signed-in user's
15
+ * access token attached by the SDK's HTTP client.
16
+ *
17
+ * @example
18
+ * ```typescript
19
+ * await unsuspendMeAgent({baseUrl: 'https://localhost:8090', agentId: 'a-1'});
20
+ * ```
21
+ */
22
+ declare const unsuspendMeAgent: ({ fetcher, instanceId, ...requestConfig }: UnsuspendMeAgentConfig) => Promise<void>;
23
+ export default unsuspendMeAgent;
24
+ //# sourceMappingURL=unsuspendMeAgent.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"unsuspendMeAgent.d.ts","sourceRoot":"","sources":["../../../src/api/account/unsuspendMeAgent.ts"],"names":[],"mappings":"AAGA,OAAO,EAGL,sBAAsB,IAAI,0BAA0B,EACrD,MAAM,oBAAoB,CAAC;AAE5B,MAAM,WAAW,sBAAuB,SAAQ,IAAI,CAAC,0BAA0B,EAAE,SAAS,CAAC;IACzF;;;OAGG;IACH,OAAO,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,WAAW,KAAK,OAAO,CAAC,QAAQ,CAAC,CAAC;IAClE;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED;;;;;;;;GAQG;AACH,QAAA,MAAM,gBAAgB,GAAU,2CAA6C,sBAAsB,KAAG,OAAO,CAAC,IAAI,CAI9G,CAAC;AAEL,eAAe,gBAAgB,CAAC"}
@@ -0,0 +1,28 @@
1
+ import { Agent, UpdateMeAgentConfig as BaseUpdateMeAgentConfig } from '@thunderid/browser';
2
+ export interface UpdateMeAgentConfig extends Omit<BaseUpdateMeAgentConfig, 'fetcher'> {
3
+ /**
4
+ * Optional custom fetcher function. If not provided, the ThunderID SPA client's httpClient is used, which
5
+ * attaches the signed-in user's access token.
6
+ */
7
+ fetcher?: (url: string, config: RequestInit) => Promise<Response>;
8
+ /**
9
+ * Optional instance ID for multi-instance support. Defaults to 0.
10
+ */
11
+ instanceId?: number;
12
+ }
13
+ /**
14
+ * Replaces the part of one of the signed-in user's personal agents its owner may change, with the signed-in
15
+ * user's access token attached by the SDK's HTTP client.
16
+ *
17
+ * @example
18
+ * ```typescript
19
+ * const agent = await updateMeAgent({
20
+ * baseUrl: 'https://localhost:8090',
21
+ * agentId: 'a-1',
22
+ * payload: {attributes: {name: 'Spending assistant'}, grantTypes: ['ciba'], redirectUris: []},
23
+ * });
24
+ * ```
25
+ */
26
+ declare const updateMeAgent: ({ fetcher, instanceId, ...requestConfig }: UpdateMeAgentConfig) => Promise<Agent>;
27
+ export default updateMeAgent;
28
+ //# sourceMappingURL=updateMeAgent.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"updateMeAgent.d.ts","sourceRoot":"","sources":["../../../src/api/account/updateMeAgent.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,KAAK,EAGL,mBAAmB,IAAI,uBAAuB,EAC/C,MAAM,oBAAoB,CAAC;AAE5B,MAAM,WAAW,mBAAoB,SAAQ,IAAI,CAAC,uBAAuB,EAAE,SAAS,CAAC;IACnF;;;OAGG;IACH,OAAO,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,WAAW,KAAK,OAAO,CAAC,QAAQ,CAAC,CAAC;IAClE;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED;;;;;;;;;;;;GAYG;AACH,QAAA,MAAM,aAAa,GAAU,2CAA6C,mBAAmB,KAAG,OAAO,CAAC,KAAK,CAIzG,CAAC;AAEL,eAAe,aAAa,CAAC"}