@gpt-core/client 0.7.90 → 0.7.92
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/dist/index.d.mts +56 -5
- package/dist/index.d.ts +56 -5
- package/package.json +11 -11
package/dist/index.d.mts
CHANGED
|
@@ -2928,14 +2928,56 @@ type WorkspaceMembership = {
|
|
|
2928
2928
|
* An attributes object for a workspace-membership
|
|
2929
2929
|
*/
|
|
2930
2930
|
attributes?: {
|
|
2931
|
-
|
|
2931
|
+
/**
|
|
2932
|
+
* Field included by default.
|
|
2933
|
+
*/
|
|
2934
|
+
created_at: unknown;
|
|
2935
|
+
/**
|
|
2936
|
+
* Field included by default.
|
|
2937
|
+
*/
|
|
2938
|
+
permissions: Array<"invite_user" | "edit_permissions" | "create_token" | "update_token" | "remove_token" | "add_token_to_workspace" | "remove_token_from_workspace" | "discover_docs" | "rag" | "train_docs" | "edit_agent" | "remove_agent" | "view_audit_log">;
|
|
2939
|
+
/**
|
|
2940
|
+
* Field included by default.
|
|
2941
|
+
*/
|
|
2942
|
+
updated_at: unknown;
|
|
2943
|
+
/**
|
|
2944
|
+
* Field included by default.
|
|
2945
|
+
*/
|
|
2946
|
+
user_id: string;
|
|
2947
|
+
/**
|
|
2948
|
+
* Field included by default.
|
|
2949
|
+
*/
|
|
2950
|
+
workspace_id: string;
|
|
2932
2951
|
};
|
|
2933
2952
|
id: string;
|
|
2934
2953
|
/**
|
|
2935
2954
|
* A relationships object for a workspace-membership
|
|
2936
2955
|
*/
|
|
2937
2956
|
relationships?: {
|
|
2938
|
-
|
|
2957
|
+
user?: {
|
|
2958
|
+
/**
|
|
2959
|
+
* An identifier for user
|
|
2960
|
+
*/
|
|
2961
|
+
data?: {
|
|
2962
|
+
id: string;
|
|
2963
|
+
meta?: {
|
|
2964
|
+
[key: string]: unknown;
|
|
2965
|
+
};
|
|
2966
|
+
type: string;
|
|
2967
|
+
} | null;
|
|
2968
|
+
};
|
|
2969
|
+
workspace?: {
|
|
2970
|
+
/**
|
|
2971
|
+
* An identifier for workspace
|
|
2972
|
+
*/
|
|
2973
|
+
data?: {
|
|
2974
|
+
id: string;
|
|
2975
|
+
meta?: {
|
|
2976
|
+
[key: string]: unknown;
|
|
2977
|
+
};
|
|
2978
|
+
type: string;
|
|
2979
|
+
} | null;
|
|
2980
|
+
};
|
|
2939
2981
|
};
|
|
2940
2982
|
type: string;
|
|
2941
2983
|
};
|
|
@@ -3671,6 +3713,10 @@ type Invitation = {
|
|
|
3671
3713
|
* An attributes object for a invitation
|
|
3672
3714
|
*/
|
|
3673
3715
|
attributes?: {
|
|
3716
|
+
/**
|
|
3717
|
+
* Optional personal message from the inviter. Field included by default.
|
|
3718
|
+
*/
|
|
3719
|
+
custom_message?: string | null | unknown;
|
|
3674
3720
|
/**
|
|
3675
3721
|
* Field included by default.
|
|
3676
3722
|
*/
|
|
@@ -3699,6 +3745,10 @@ type Invitation = {
|
|
|
3699
3745
|
* Field included by default.
|
|
3700
3746
|
*/
|
|
3701
3747
|
status: "pending" | "accepted" | "expired" | "revoked" | "declined";
|
|
3748
|
+
/**
|
|
3749
|
+
* Denormalized tenant_id for multi-tenant filtering. Field included by default.
|
|
3750
|
+
*/
|
|
3751
|
+
tenant_id: string;
|
|
3702
3752
|
};
|
|
3703
3753
|
id: string;
|
|
3704
3754
|
/**
|
|
@@ -11560,6 +11610,7 @@ type PostInvitationsData = {
|
|
|
11560
11610
|
data: {
|
|
11561
11611
|
attributes?: {
|
|
11562
11612
|
application_id?: string | unknown;
|
|
11613
|
+
custom_message?: string | unknown;
|
|
11563
11614
|
email: string;
|
|
11564
11615
|
inviter_id?: string | unknown;
|
|
11565
11616
|
role: "admin" | "member" | "editor" | "viewer";
|
|
@@ -18757,7 +18808,7 @@ type GetWorkspaceMembershipsResponses = {
|
|
|
18757
18808
|
* An array of resource objects representing a workspace-membership
|
|
18758
18809
|
*/
|
|
18759
18810
|
data?: Array<WorkspaceMembership>;
|
|
18760
|
-
included?: Array<
|
|
18811
|
+
included?: Array<User | Workspace | UserProfile>;
|
|
18761
18812
|
meta?: {
|
|
18762
18813
|
[key: string]: unknown;
|
|
18763
18814
|
};
|
|
@@ -18839,7 +18890,7 @@ type PostWorkspaceMembershipsResponses = {
|
|
|
18839
18890
|
*/
|
|
18840
18891
|
201: {
|
|
18841
18892
|
data?: WorkspaceMembership;
|
|
18842
|
-
included?: Array<
|
|
18893
|
+
included?: Array<User | Workspace | UserProfile>;
|
|
18843
18894
|
meta?: {
|
|
18844
18895
|
[key: string]: unknown;
|
|
18845
18896
|
};
|
|
@@ -24609,7 +24660,7 @@ type PatchWorkspaceMembershipsByWorkspaceIdByUserIdResponses = {
|
|
|
24609
24660
|
*/
|
|
24610
24661
|
200: {
|
|
24611
24662
|
data?: WorkspaceMembership;
|
|
24612
|
-
included?: Array<
|
|
24663
|
+
included?: Array<User | Workspace | UserProfile>;
|
|
24613
24664
|
meta?: {
|
|
24614
24665
|
[key: string]: unknown;
|
|
24615
24666
|
};
|
package/dist/index.d.ts
CHANGED
|
@@ -2928,14 +2928,56 @@ type WorkspaceMembership = {
|
|
|
2928
2928
|
* An attributes object for a workspace-membership
|
|
2929
2929
|
*/
|
|
2930
2930
|
attributes?: {
|
|
2931
|
-
|
|
2931
|
+
/**
|
|
2932
|
+
* Field included by default.
|
|
2933
|
+
*/
|
|
2934
|
+
created_at: unknown;
|
|
2935
|
+
/**
|
|
2936
|
+
* Field included by default.
|
|
2937
|
+
*/
|
|
2938
|
+
permissions: Array<"invite_user" | "edit_permissions" | "create_token" | "update_token" | "remove_token" | "add_token_to_workspace" | "remove_token_from_workspace" | "discover_docs" | "rag" | "train_docs" | "edit_agent" | "remove_agent" | "view_audit_log">;
|
|
2939
|
+
/**
|
|
2940
|
+
* Field included by default.
|
|
2941
|
+
*/
|
|
2942
|
+
updated_at: unknown;
|
|
2943
|
+
/**
|
|
2944
|
+
* Field included by default.
|
|
2945
|
+
*/
|
|
2946
|
+
user_id: string;
|
|
2947
|
+
/**
|
|
2948
|
+
* Field included by default.
|
|
2949
|
+
*/
|
|
2950
|
+
workspace_id: string;
|
|
2932
2951
|
};
|
|
2933
2952
|
id: string;
|
|
2934
2953
|
/**
|
|
2935
2954
|
* A relationships object for a workspace-membership
|
|
2936
2955
|
*/
|
|
2937
2956
|
relationships?: {
|
|
2938
|
-
|
|
2957
|
+
user?: {
|
|
2958
|
+
/**
|
|
2959
|
+
* An identifier for user
|
|
2960
|
+
*/
|
|
2961
|
+
data?: {
|
|
2962
|
+
id: string;
|
|
2963
|
+
meta?: {
|
|
2964
|
+
[key: string]: unknown;
|
|
2965
|
+
};
|
|
2966
|
+
type: string;
|
|
2967
|
+
} | null;
|
|
2968
|
+
};
|
|
2969
|
+
workspace?: {
|
|
2970
|
+
/**
|
|
2971
|
+
* An identifier for workspace
|
|
2972
|
+
*/
|
|
2973
|
+
data?: {
|
|
2974
|
+
id: string;
|
|
2975
|
+
meta?: {
|
|
2976
|
+
[key: string]: unknown;
|
|
2977
|
+
};
|
|
2978
|
+
type: string;
|
|
2979
|
+
} | null;
|
|
2980
|
+
};
|
|
2939
2981
|
};
|
|
2940
2982
|
type: string;
|
|
2941
2983
|
};
|
|
@@ -3671,6 +3713,10 @@ type Invitation = {
|
|
|
3671
3713
|
* An attributes object for a invitation
|
|
3672
3714
|
*/
|
|
3673
3715
|
attributes?: {
|
|
3716
|
+
/**
|
|
3717
|
+
* Optional personal message from the inviter. Field included by default.
|
|
3718
|
+
*/
|
|
3719
|
+
custom_message?: string | null | unknown;
|
|
3674
3720
|
/**
|
|
3675
3721
|
* Field included by default.
|
|
3676
3722
|
*/
|
|
@@ -3699,6 +3745,10 @@ type Invitation = {
|
|
|
3699
3745
|
* Field included by default.
|
|
3700
3746
|
*/
|
|
3701
3747
|
status: "pending" | "accepted" | "expired" | "revoked" | "declined";
|
|
3748
|
+
/**
|
|
3749
|
+
* Denormalized tenant_id for multi-tenant filtering. Field included by default.
|
|
3750
|
+
*/
|
|
3751
|
+
tenant_id: string;
|
|
3702
3752
|
};
|
|
3703
3753
|
id: string;
|
|
3704
3754
|
/**
|
|
@@ -11560,6 +11610,7 @@ type PostInvitationsData = {
|
|
|
11560
11610
|
data: {
|
|
11561
11611
|
attributes?: {
|
|
11562
11612
|
application_id?: string | unknown;
|
|
11613
|
+
custom_message?: string | unknown;
|
|
11563
11614
|
email: string;
|
|
11564
11615
|
inviter_id?: string | unknown;
|
|
11565
11616
|
role: "admin" | "member" | "editor" | "viewer";
|
|
@@ -18757,7 +18808,7 @@ type GetWorkspaceMembershipsResponses = {
|
|
|
18757
18808
|
* An array of resource objects representing a workspace-membership
|
|
18758
18809
|
*/
|
|
18759
18810
|
data?: Array<WorkspaceMembership>;
|
|
18760
|
-
included?: Array<
|
|
18811
|
+
included?: Array<User | Workspace | UserProfile>;
|
|
18761
18812
|
meta?: {
|
|
18762
18813
|
[key: string]: unknown;
|
|
18763
18814
|
};
|
|
@@ -18839,7 +18890,7 @@ type PostWorkspaceMembershipsResponses = {
|
|
|
18839
18890
|
*/
|
|
18840
18891
|
201: {
|
|
18841
18892
|
data?: WorkspaceMembership;
|
|
18842
|
-
included?: Array<
|
|
18893
|
+
included?: Array<User | Workspace | UserProfile>;
|
|
18843
18894
|
meta?: {
|
|
18844
18895
|
[key: string]: unknown;
|
|
18845
18896
|
};
|
|
@@ -24609,7 +24660,7 @@ type PatchWorkspaceMembershipsByWorkspaceIdByUserIdResponses = {
|
|
|
24609
24660
|
*/
|
|
24610
24661
|
200: {
|
|
24611
24662
|
data?: WorkspaceMembership;
|
|
24612
|
-
included?: Array<
|
|
24663
|
+
included?: Array<User | Workspace | UserProfile>;
|
|
24613
24664
|
meta?: {
|
|
24614
24665
|
[key: string]: unknown;
|
|
24615
24666
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gpt-core/client",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.92",
|
|
4
4
|
"description": "TypeScript SDK for GPT Core Client API - Document extraction, AI agents, and workspace management",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -43,6 +43,15 @@
|
|
|
43
43
|
"publishConfig": {
|
|
44
44
|
"access": "public"
|
|
45
45
|
},
|
|
46
|
+
"scripts": {
|
|
47
|
+
"generate": "openapi-ts",
|
|
48
|
+
"typecheck": "tsc --noEmit",
|
|
49
|
+
"build": "npm run typecheck && tsup src/index.ts --format cjs,esm --dts",
|
|
50
|
+
"test": "vitest run",
|
|
51
|
+
"test:watch": "vitest",
|
|
52
|
+
"test:ui": "vitest --ui",
|
|
53
|
+
"test:coverage": "vitest run --coverage"
|
|
54
|
+
},
|
|
46
55
|
"dependencies": {
|
|
47
56
|
"eventsource-parser": "^3.0.6",
|
|
48
57
|
"zod": "^3.25.76"
|
|
@@ -54,14 +63,5 @@
|
|
|
54
63
|
"tsup": "^8.5.1",
|
|
55
64
|
"typescript": "^5.9.3",
|
|
56
65
|
"vitest": "^4.0.15"
|
|
57
|
-
},
|
|
58
|
-
"scripts": {
|
|
59
|
-
"generate": "openapi-ts",
|
|
60
|
-
"typecheck": "tsc --noEmit",
|
|
61
|
-
"build": "npm run typecheck && tsup src/index.ts --format cjs,esm --dts",
|
|
62
|
-
"test": "vitest run",
|
|
63
|
-
"test:watch": "vitest",
|
|
64
|
-
"test:ui": "vitest --ui",
|
|
65
|
-
"test:coverage": "vitest run --coverage"
|
|
66
66
|
}
|
|
67
|
-
}
|
|
67
|
+
}
|