@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.
@@ -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 project header is sent. The token's issuer is the project's own auth
14
- * domain, and that is what the gateway resolves the project from — a header
15
- * naming any other project would be refused. What the browser sends is exactly
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
- * project user's token may reach: the subject is the caller, so there is no
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 project's default locale.
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
  }
@@ -15,7 +15,7 @@ export interface Member {
15
15
  organization_id: string;
16
16
  organization_name: string;
17
17
  organization_slug: string;
18
- project_id: string;
18
+ instance_id: string;
19
19
  roles: {
20
20
  key: string;
21
21
  name: string;
@@ -19,7 +19,7 @@ export interface User {
19
19
  picture?: string;
20
20
  private_metadata?: Record<string, unknown>;
21
21
  profile?: string;
22
- project_id?: string;
22
+ instance_id?: string;
23
23
  status?: string;
24
24
  updated_at?: number;
25
25
  username?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pontive/pontkit-core",
3
- "version": "1.1.4",
3
+ "version": "1.2.0",
4
4
  "license": "MIT",
5
5
  "description": "A collection of core components for Pontive",
6
6
  "main": "dist/index.js",