@pontive/pontkit-core 1.1.4 → 1.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.
- package/README.md +5 -6
- package/catalog.json +1 -1
- package/custom-elements.json +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +7 -7
- package/dist/index.mjs.map +1 -1
- package/dist/service/http/fetch.d.ts +3 -3
- package/dist/service/http/user/index.d.ts +1 -1
- package/dist/types/core/index.d.ts +1 -8
- package/dist/types/service/http/member/index.d.ts +1 -1
- package/dist/types/service/http/user/index.d.ts +1 -1
- package/package.json +1 -1
|
@@ -10,9 +10,9 @@ export interface RequestOptions extends RequestInit {
|
|
|
10
10
|
* Calls the management API on `apiBaseUrl` with the signed-in user's access
|
|
11
11
|
* token.
|
|
12
12
|
*
|
|
13
|
-
* No
|
|
14
|
-
* domain, and that is what the gateway resolves the
|
|
15
|
-
* naming any other
|
|
13
|
+
* No instance header is sent. The token's issuer is the instance's own auth
|
|
14
|
+
* domain, and that is what the gateway resolves the instance from — a header
|
|
15
|
+
* naming any other instance would be refused. What the browser sends is exactly
|
|
16
16
|
* the bearer, so the request needs no cookies and no credentialed CORS.
|
|
17
17
|
*/
|
|
18
18
|
export declare function apiFetch<T>(endpoint: string, options?: RequestOptions): Promise<T>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { UpdateUserRequest, User } from '../../../types';
|
|
2
2
|
/**
|
|
3
3
|
* The signed-in user's own profile. `/me` is the one management route a
|
|
4
|
-
*
|
|
4
|
+
* instance user's token may reach: the subject is the caller, so there is no
|
|
5
5
|
* identifier to pass and nothing to authorize beyond "you are you".
|
|
6
6
|
*/
|
|
7
7
|
export declare function getUser(): Promise<User>;
|
|
@@ -22,7 +22,7 @@ export interface EnvConfig {
|
|
|
22
22
|
/**
|
|
23
23
|
* Language for the sign-in UI: space-separated BCP-47 tags in descending
|
|
24
24
|
* preference, e.g. `"de-DE fr-FR"`. Omit to let the server negotiate from the
|
|
25
|
-
* browser's `Accept-Language` and then the
|
|
25
|
+
* browser's `Accept-Language` and then the instance's default locale.
|
|
26
26
|
*/
|
|
27
27
|
locales?: string;
|
|
28
28
|
/**
|
|
@@ -31,11 +31,4 @@ export interface EnvConfig {
|
|
|
31
31
|
* `/mgmt/v1` prefix itself.
|
|
32
32
|
*/
|
|
33
33
|
apiBaseUrl: string;
|
|
34
|
-
/**
|
|
35
|
-
* @deprecated Not read by the SDK. The project is carried by the access
|
|
36
|
-
* token's issuer, so nothing here needs to name it. Kept optional so
|
|
37
|
-
* consumers built against earlier typings still compile; remove when the
|
|
38
|
-
* framework packages are rebuilt from this core.
|
|
39
|
-
*/
|
|
40
|
-
projectId?: string;
|
|
41
34
|
}
|