@gpt-core/admin 0.7.93 → 0.7.94
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 +51 -4
- package/dist/index.d.ts +51 -4
- package/package.json +11 -11
package/dist/index.d.mts
CHANGED
|
@@ -2466,6 +2466,10 @@ type TenantMembership = {
|
|
|
2466
2466
|
* An attributes object for a tenant-membership
|
|
2467
2467
|
*/
|
|
2468
2468
|
attributes?: {
|
|
2469
|
+
/**
|
|
2470
|
+
* Org-level permissions in format {app}:{resource}:{action}:{scope}. Field included by default.
|
|
2471
|
+
*/
|
|
2472
|
+
permissions: Array<string>;
|
|
2469
2473
|
/**
|
|
2470
2474
|
* Field included by default.
|
|
2471
2475
|
*/
|
|
@@ -2537,6 +2541,18 @@ type AuditLog = {
|
|
|
2537
2541
|
* Field included by default.
|
|
2538
2542
|
*/
|
|
2539
2543
|
resource_type: string;
|
|
2544
|
+
/**
|
|
2545
|
+
* UUID of target entity. Field included by default.
|
|
2546
|
+
*/
|
|
2547
|
+
target_id?: string | null | unknown;
|
|
2548
|
+
/**
|
|
2549
|
+
* Display name of target entity for UI rendering. Field included by default.
|
|
2550
|
+
*/
|
|
2551
|
+
target_name?: string | null | unknown;
|
|
2552
|
+
/**
|
|
2553
|
+
* Type of target entity (document, workspace, agent, member, export). Field included by default.
|
|
2554
|
+
*/
|
|
2555
|
+
target_type?: string | null | unknown;
|
|
2540
2556
|
/**
|
|
2541
2557
|
* Field included by default.
|
|
2542
2558
|
*/
|
|
@@ -2708,9 +2724,13 @@ type WorkspaceMembership = {
|
|
|
2708
2724
|
*/
|
|
2709
2725
|
created_at: unknown;
|
|
2710
2726
|
/**
|
|
2711
|
-
* Field included by default.
|
|
2727
|
+
* Last time user accessed this workspace. Field included by default.
|
|
2728
|
+
*/
|
|
2729
|
+
last_visited_at?: unknown;
|
|
2730
|
+
/**
|
|
2731
|
+
* Workspace permissions in format {app}:{resource}:{action}:{scope}. Field included by default.
|
|
2712
2732
|
*/
|
|
2713
|
-
permissions: Array<
|
|
2733
|
+
permissions: Array<string>;
|
|
2714
2734
|
/**
|
|
2715
2735
|
* Field included by default.
|
|
2716
2736
|
*/
|
|
@@ -3231,6 +3251,10 @@ type Workspace = {
|
|
|
3231
3251
|
* An attributes object for a workspace
|
|
3232
3252
|
*/
|
|
3233
3253
|
attributes?: {
|
|
3254
|
+
/**
|
|
3255
|
+
* App type: extract, invoicing, crm, etc. Field included by default.
|
|
3256
|
+
*/
|
|
3257
|
+
app: string;
|
|
3234
3258
|
/**
|
|
3235
3259
|
* Field included by default.
|
|
3236
3260
|
*/
|
|
@@ -3504,6 +3528,10 @@ type Invitation = {
|
|
|
3504
3528
|
* Field included by default.
|
|
3505
3529
|
*/
|
|
3506
3530
|
inviter_id: string;
|
|
3531
|
+
/**
|
|
3532
|
+
* Permissions to grant on acceptance. Field included by default.
|
|
3533
|
+
*/
|
|
3534
|
+
permissions: Array<string>;
|
|
3507
3535
|
/**
|
|
3508
3536
|
* Field included by default.
|
|
3509
3537
|
*/
|
|
@@ -3799,6 +3827,10 @@ type PostAdminWorkspacesData = {
|
|
|
3799
3827
|
body: {
|
|
3800
3828
|
data: {
|
|
3801
3829
|
attributes?: {
|
|
3830
|
+
/**
|
|
3831
|
+
* App type: extract, invoicing, crm, etc.
|
|
3832
|
+
*/
|
|
3833
|
+
app?: string | unknown;
|
|
3802
3834
|
application_id?: string | unknown;
|
|
3803
3835
|
description?: string | unknown;
|
|
3804
3836
|
expires_at?: unknown;
|
|
@@ -4682,6 +4714,10 @@ type PatchAdminTenantMembershipsByTenantIdByUserIdData = {
|
|
|
4682
4714
|
body?: {
|
|
4683
4715
|
data: {
|
|
4684
4716
|
attributes?: {
|
|
4717
|
+
/**
|
|
4718
|
+
* Org-level permissions in format {app}:{resource}:{action}:{scope}
|
|
4719
|
+
*/
|
|
4720
|
+
permissions?: Array<string> | unknown;
|
|
4685
4721
|
role?: "owner" | "admin" | "member" | unknown;
|
|
4686
4722
|
};
|
|
4687
4723
|
id: string;
|
|
@@ -7771,7 +7807,10 @@ type PostAdminWorkspaceMembershipsData = {
|
|
|
7771
7807
|
body: {
|
|
7772
7808
|
data: {
|
|
7773
7809
|
attributes?: {
|
|
7774
|
-
|
|
7810
|
+
/**
|
|
7811
|
+
* Workspace permissions in format {app}:{resource}:{action}:{scope}
|
|
7812
|
+
*/
|
|
7813
|
+
permissions?: Array<string> | unknown;
|
|
7775
7814
|
user_id: string;
|
|
7776
7815
|
workspace_id: string;
|
|
7777
7816
|
};
|
|
@@ -8760,6 +8799,10 @@ type PostAdminTenantMembershipsData = {
|
|
|
8760
8799
|
body: {
|
|
8761
8800
|
data: {
|
|
8762
8801
|
attributes?: {
|
|
8802
|
+
/**
|
|
8803
|
+
* Org-level permissions in format {app}:{resource}:{action}:{scope}
|
|
8804
|
+
*/
|
|
8805
|
+
permissions?: Array<string> | unknown;
|
|
8763
8806
|
role?: "owner" | "admin" | "member" | unknown;
|
|
8764
8807
|
tenant_id: string;
|
|
8765
8808
|
user_id: string;
|
|
@@ -9142,6 +9185,7 @@ type PostAdminInvitationsData = {
|
|
|
9142
9185
|
custom_message?: string | unknown;
|
|
9143
9186
|
email: string;
|
|
9144
9187
|
inviter_id?: string | unknown;
|
|
9188
|
+
permissions?: Array<string> | unknown;
|
|
9145
9189
|
role: "admin" | "member" | "editor" | "viewer";
|
|
9146
9190
|
scope_id: string;
|
|
9147
9191
|
scope_type: "tenant" | "workspace";
|
|
@@ -26399,7 +26443,10 @@ type PatchAdminWorkspaceMembershipsByWorkspaceIdByUserIdData = {
|
|
|
26399
26443
|
body?: {
|
|
26400
26444
|
data: {
|
|
26401
26445
|
attributes?: {
|
|
26402
|
-
|
|
26446
|
+
/**
|
|
26447
|
+
* Workspace permissions in format {app}:{resource}:{action}:{scope}
|
|
26448
|
+
*/
|
|
26449
|
+
permissions?: Array<string> | unknown;
|
|
26403
26450
|
};
|
|
26404
26451
|
id: string;
|
|
26405
26452
|
relationships?: {
|
package/dist/index.d.ts
CHANGED
|
@@ -2466,6 +2466,10 @@ type TenantMembership = {
|
|
|
2466
2466
|
* An attributes object for a tenant-membership
|
|
2467
2467
|
*/
|
|
2468
2468
|
attributes?: {
|
|
2469
|
+
/**
|
|
2470
|
+
* Org-level permissions in format {app}:{resource}:{action}:{scope}. Field included by default.
|
|
2471
|
+
*/
|
|
2472
|
+
permissions: Array<string>;
|
|
2469
2473
|
/**
|
|
2470
2474
|
* Field included by default.
|
|
2471
2475
|
*/
|
|
@@ -2537,6 +2541,18 @@ type AuditLog = {
|
|
|
2537
2541
|
* Field included by default.
|
|
2538
2542
|
*/
|
|
2539
2543
|
resource_type: string;
|
|
2544
|
+
/**
|
|
2545
|
+
* UUID of target entity. Field included by default.
|
|
2546
|
+
*/
|
|
2547
|
+
target_id?: string | null | unknown;
|
|
2548
|
+
/**
|
|
2549
|
+
* Display name of target entity for UI rendering. Field included by default.
|
|
2550
|
+
*/
|
|
2551
|
+
target_name?: string | null | unknown;
|
|
2552
|
+
/**
|
|
2553
|
+
* Type of target entity (document, workspace, agent, member, export). Field included by default.
|
|
2554
|
+
*/
|
|
2555
|
+
target_type?: string | null | unknown;
|
|
2540
2556
|
/**
|
|
2541
2557
|
* Field included by default.
|
|
2542
2558
|
*/
|
|
@@ -2708,9 +2724,13 @@ type WorkspaceMembership = {
|
|
|
2708
2724
|
*/
|
|
2709
2725
|
created_at: unknown;
|
|
2710
2726
|
/**
|
|
2711
|
-
* Field included by default.
|
|
2727
|
+
* Last time user accessed this workspace. Field included by default.
|
|
2728
|
+
*/
|
|
2729
|
+
last_visited_at?: unknown;
|
|
2730
|
+
/**
|
|
2731
|
+
* Workspace permissions in format {app}:{resource}:{action}:{scope}. Field included by default.
|
|
2712
2732
|
*/
|
|
2713
|
-
permissions: Array<
|
|
2733
|
+
permissions: Array<string>;
|
|
2714
2734
|
/**
|
|
2715
2735
|
* Field included by default.
|
|
2716
2736
|
*/
|
|
@@ -3231,6 +3251,10 @@ type Workspace = {
|
|
|
3231
3251
|
* An attributes object for a workspace
|
|
3232
3252
|
*/
|
|
3233
3253
|
attributes?: {
|
|
3254
|
+
/**
|
|
3255
|
+
* App type: extract, invoicing, crm, etc. Field included by default.
|
|
3256
|
+
*/
|
|
3257
|
+
app: string;
|
|
3234
3258
|
/**
|
|
3235
3259
|
* Field included by default.
|
|
3236
3260
|
*/
|
|
@@ -3504,6 +3528,10 @@ type Invitation = {
|
|
|
3504
3528
|
* Field included by default.
|
|
3505
3529
|
*/
|
|
3506
3530
|
inviter_id: string;
|
|
3531
|
+
/**
|
|
3532
|
+
* Permissions to grant on acceptance. Field included by default.
|
|
3533
|
+
*/
|
|
3534
|
+
permissions: Array<string>;
|
|
3507
3535
|
/**
|
|
3508
3536
|
* Field included by default.
|
|
3509
3537
|
*/
|
|
@@ -3799,6 +3827,10 @@ type PostAdminWorkspacesData = {
|
|
|
3799
3827
|
body: {
|
|
3800
3828
|
data: {
|
|
3801
3829
|
attributes?: {
|
|
3830
|
+
/**
|
|
3831
|
+
* App type: extract, invoicing, crm, etc.
|
|
3832
|
+
*/
|
|
3833
|
+
app?: string | unknown;
|
|
3802
3834
|
application_id?: string | unknown;
|
|
3803
3835
|
description?: string | unknown;
|
|
3804
3836
|
expires_at?: unknown;
|
|
@@ -4682,6 +4714,10 @@ type PatchAdminTenantMembershipsByTenantIdByUserIdData = {
|
|
|
4682
4714
|
body?: {
|
|
4683
4715
|
data: {
|
|
4684
4716
|
attributes?: {
|
|
4717
|
+
/**
|
|
4718
|
+
* Org-level permissions in format {app}:{resource}:{action}:{scope}
|
|
4719
|
+
*/
|
|
4720
|
+
permissions?: Array<string> | unknown;
|
|
4685
4721
|
role?: "owner" | "admin" | "member" | unknown;
|
|
4686
4722
|
};
|
|
4687
4723
|
id: string;
|
|
@@ -7771,7 +7807,10 @@ type PostAdminWorkspaceMembershipsData = {
|
|
|
7771
7807
|
body: {
|
|
7772
7808
|
data: {
|
|
7773
7809
|
attributes?: {
|
|
7774
|
-
|
|
7810
|
+
/**
|
|
7811
|
+
* Workspace permissions in format {app}:{resource}:{action}:{scope}
|
|
7812
|
+
*/
|
|
7813
|
+
permissions?: Array<string> | unknown;
|
|
7775
7814
|
user_id: string;
|
|
7776
7815
|
workspace_id: string;
|
|
7777
7816
|
};
|
|
@@ -8760,6 +8799,10 @@ type PostAdminTenantMembershipsData = {
|
|
|
8760
8799
|
body: {
|
|
8761
8800
|
data: {
|
|
8762
8801
|
attributes?: {
|
|
8802
|
+
/**
|
|
8803
|
+
* Org-level permissions in format {app}:{resource}:{action}:{scope}
|
|
8804
|
+
*/
|
|
8805
|
+
permissions?: Array<string> | unknown;
|
|
8763
8806
|
role?: "owner" | "admin" | "member" | unknown;
|
|
8764
8807
|
tenant_id: string;
|
|
8765
8808
|
user_id: string;
|
|
@@ -9142,6 +9185,7 @@ type PostAdminInvitationsData = {
|
|
|
9142
9185
|
custom_message?: string | unknown;
|
|
9143
9186
|
email: string;
|
|
9144
9187
|
inviter_id?: string | unknown;
|
|
9188
|
+
permissions?: Array<string> | unknown;
|
|
9145
9189
|
role: "admin" | "member" | "editor" | "viewer";
|
|
9146
9190
|
scope_id: string;
|
|
9147
9191
|
scope_type: "tenant" | "workspace";
|
|
@@ -26399,7 +26443,10 @@ type PatchAdminWorkspaceMembershipsByWorkspaceIdByUserIdData = {
|
|
|
26399
26443
|
body?: {
|
|
26400
26444
|
data: {
|
|
26401
26445
|
attributes?: {
|
|
26402
|
-
|
|
26446
|
+
/**
|
|
26447
|
+
* Workspace permissions in format {app}:{resource}:{action}:{scope}
|
|
26448
|
+
*/
|
|
26449
|
+
permissions?: Array<string> | unknown;
|
|
26403
26450
|
};
|
|
26404
26451
|
id: string;
|
|
26405
26452
|
relationships?: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gpt-core/admin",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.94",
|
|
4
4
|
"description": "TypeScript SDK for GPT Core Admin API - Platform administration and ISV management",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -42,6 +42,15 @@
|
|
|
42
42
|
"publishConfig": {
|
|
43
43
|
"access": "public"
|
|
44
44
|
},
|
|
45
|
+
"scripts": {
|
|
46
|
+
"generate": "openapi-ts",
|
|
47
|
+
"typecheck": "tsc --noEmit",
|
|
48
|
+
"build": "npm run typecheck && tsup src/index.ts --format cjs,esm --dts",
|
|
49
|
+
"test": "vitest run",
|
|
50
|
+
"test:watch": "vitest",
|
|
51
|
+
"test:ui": "vitest --ui",
|
|
52
|
+
"test:coverage": "vitest run --coverage"
|
|
53
|
+
},
|
|
45
54
|
"dependencies": {
|
|
46
55
|
"zod": "^3.25.76"
|
|
47
56
|
},
|
|
@@ -53,14 +62,5 @@
|
|
|
53
62
|
"tsup": "^8.5.1",
|
|
54
63
|
"typescript": "^5.9.3",
|
|
55
64
|
"vitest": "^4.0.15"
|
|
56
|
-
},
|
|
57
|
-
"scripts": {
|
|
58
|
-
"generate": "openapi-ts",
|
|
59
|
-
"typecheck": "tsc --noEmit",
|
|
60
|
-
"build": "npm run typecheck && tsup src/index.ts --format cjs,esm --dts",
|
|
61
|
-
"test": "vitest run",
|
|
62
|
-
"test:watch": "vitest",
|
|
63
|
-
"test:ui": "vitest --ui",
|
|
64
|
-
"test:coverage": "vitest run --coverage"
|
|
65
65
|
}
|
|
66
|
-
}
|
|
66
|
+
}
|