@gpt-core/admin 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 CHANGED
@@ -2703,14 +2703,56 @@ type WorkspaceMembership = {
2703
2703
  * An attributes object for a workspace-membership
2704
2704
  */
2705
2705
  attributes?: {
2706
- [key: string]: never;
2706
+ /**
2707
+ * Field included by default.
2708
+ */
2709
+ created_at: unknown;
2710
+ /**
2711
+ * Field included by default.
2712
+ */
2713
+ 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">;
2714
+ /**
2715
+ * Field included by default.
2716
+ */
2717
+ updated_at: unknown;
2718
+ /**
2719
+ * Field included by default.
2720
+ */
2721
+ user_id: string;
2722
+ /**
2723
+ * Field included by default.
2724
+ */
2725
+ workspace_id: string;
2707
2726
  };
2708
2727
  id: string;
2709
2728
  /**
2710
2729
  * A relationships object for a workspace-membership
2711
2730
  */
2712
2731
  relationships?: {
2713
- [key: string]: never;
2732
+ user?: {
2733
+ /**
2734
+ * An identifier for user
2735
+ */
2736
+ data?: {
2737
+ id: string;
2738
+ meta?: {
2739
+ [key: string]: unknown;
2740
+ };
2741
+ type: string;
2742
+ } | null;
2743
+ };
2744
+ workspace?: {
2745
+ /**
2746
+ * An identifier for workspace
2747
+ */
2748
+ data?: {
2749
+ id: string;
2750
+ meta?: {
2751
+ [key: string]: unknown;
2752
+ };
2753
+ type: string;
2754
+ } | null;
2755
+ };
2714
2756
  };
2715
2757
  type: string;
2716
2758
  };
@@ -3446,6 +3488,10 @@ type Invitation = {
3446
3488
  * An attributes object for a invitation
3447
3489
  */
3448
3490
  attributes?: {
3491
+ /**
3492
+ * Optional personal message from the inviter. Field included by default.
3493
+ */
3494
+ custom_message?: string | null | unknown;
3449
3495
  /**
3450
3496
  * Field included by default.
3451
3497
  */
@@ -3474,6 +3520,10 @@ type Invitation = {
3474
3520
  * Field included by default.
3475
3521
  */
3476
3522
  status: "pending" | "accepted" | "expired" | "revoked" | "declined";
3523
+ /**
3524
+ * Denormalized tenant_id for multi-tenant filtering. Field included by default.
3525
+ */
3526
+ tenant_id: string;
3477
3527
  };
3478
3528
  id: string;
3479
3529
  /**
@@ -7707,7 +7757,7 @@ type GetAdminWorkspaceMembershipsResponses = {
7707
7757
  * An array of resource objects representing a workspace-membership
7708
7758
  */
7709
7759
  data?: Array<WorkspaceMembership>;
7710
- included?: Array<unknown>;
7760
+ included?: Array<User | Workspace | UserProfile>;
7711
7761
  meta?: {
7712
7762
  [key: string]: unknown;
7713
7763
  };
@@ -7789,7 +7839,7 @@ type PostAdminWorkspaceMembershipsResponses = {
7789
7839
  */
7790
7840
  201: {
7791
7841
  data?: WorkspaceMembership;
7792
- included?: Array<unknown>;
7842
+ included?: Array<User | Workspace | UserProfile>;
7793
7843
  meta?: {
7794
7844
  [key: string]: unknown;
7795
7845
  };
@@ -9089,6 +9139,7 @@ type PostAdminInvitationsData = {
9089
9139
  data: {
9090
9140
  attributes?: {
9091
9141
  application_id?: string | unknown;
9142
+ custom_message?: string | unknown;
9092
9143
  email: string;
9093
9144
  inviter_id?: string | unknown;
9094
9145
  role: "admin" | "member" | "editor" | "viewer";
@@ -26418,7 +26469,7 @@ type PatchAdminWorkspaceMembershipsByWorkspaceIdByUserIdResponses = {
26418
26469
  */
26419
26470
  200: {
26420
26471
  data?: WorkspaceMembership;
26421
- included?: Array<unknown>;
26472
+ included?: Array<User | Workspace | UserProfile>;
26422
26473
  meta?: {
26423
26474
  [key: string]: unknown;
26424
26475
  };
package/dist/index.d.ts CHANGED
@@ -2703,14 +2703,56 @@ type WorkspaceMembership = {
2703
2703
  * An attributes object for a workspace-membership
2704
2704
  */
2705
2705
  attributes?: {
2706
- [key: string]: never;
2706
+ /**
2707
+ * Field included by default.
2708
+ */
2709
+ created_at: unknown;
2710
+ /**
2711
+ * Field included by default.
2712
+ */
2713
+ 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">;
2714
+ /**
2715
+ * Field included by default.
2716
+ */
2717
+ updated_at: unknown;
2718
+ /**
2719
+ * Field included by default.
2720
+ */
2721
+ user_id: string;
2722
+ /**
2723
+ * Field included by default.
2724
+ */
2725
+ workspace_id: string;
2707
2726
  };
2708
2727
  id: string;
2709
2728
  /**
2710
2729
  * A relationships object for a workspace-membership
2711
2730
  */
2712
2731
  relationships?: {
2713
- [key: string]: never;
2732
+ user?: {
2733
+ /**
2734
+ * An identifier for user
2735
+ */
2736
+ data?: {
2737
+ id: string;
2738
+ meta?: {
2739
+ [key: string]: unknown;
2740
+ };
2741
+ type: string;
2742
+ } | null;
2743
+ };
2744
+ workspace?: {
2745
+ /**
2746
+ * An identifier for workspace
2747
+ */
2748
+ data?: {
2749
+ id: string;
2750
+ meta?: {
2751
+ [key: string]: unknown;
2752
+ };
2753
+ type: string;
2754
+ } | null;
2755
+ };
2714
2756
  };
2715
2757
  type: string;
2716
2758
  };
@@ -3446,6 +3488,10 @@ type Invitation = {
3446
3488
  * An attributes object for a invitation
3447
3489
  */
3448
3490
  attributes?: {
3491
+ /**
3492
+ * Optional personal message from the inviter. Field included by default.
3493
+ */
3494
+ custom_message?: string | null | unknown;
3449
3495
  /**
3450
3496
  * Field included by default.
3451
3497
  */
@@ -3474,6 +3520,10 @@ type Invitation = {
3474
3520
  * Field included by default.
3475
3521
  */
3476
3522
  status: "pending" | "accepted" | "expired" | "revoked" | "declined";
3523
+ /**
3524
+ * Denormalized tenant_id for multi-tenant filtering. Field included by default.
3525
+ */
3526
+ tenant_id: string;
3477
3527
  };
3478
3528
  id: string;
3479
3529
  /**
@@ -7707,7 +7757,7 @@ type GetAdminWorkspaceMembershipsResponses = {
7707
7757
  * An array of resource objects representing a workspace-membership
7708
7758
  */
7709
7759
  data?: Array<WorkspaceMembership>;
7710
- included?: Array<unknown>;
7760
+ included?: Array<User | Workspace | UserProfile>;
7711
7761
  meta?: {
7712
7762
  [key: string]: unknown;
7713
7763
  };
@@ -7789,7 +7839,7 @@ type PostAdminWorkspaceMembershipsResponses = {
7789
7839
  */
7790
7840
  201: {
7791
7841
  data?: WorkspaceMembership;
7792
- included?: Array<unknown>;
7842
+ included?: Array<User | Workspace | UserProfile>;
7793
7843
  meta?: {
7794
7844
  [key: string]: unknown;
7795
7845
  };
@@ -9089,6 +9139,7 @@ type PostAdminInvitationsData = {
9089
9139
  data: {
9090
9140
  attributes?: {
9091
9141
  application_id?: string | unknown;
9142
+ custom_message?: string | unknown;
9092
9143
  email: string;
9093
9144
  inviter_id?: string | unknown;
9094
9145
  role: "admin" | "member" | "editor" | "viewer";
@@ -26418,7 +26469,7 @@ type PatchAdminWorkspaceMembershipsByWorkspaceIdByUserIdResponses = {
26418
26469
  */
26419
26470
  200: {
26420
26471
  data?: WorkspaceMembership;
26421
- included?: Array<unknown>;
26472
+ included?: Array<User | Workspace | UserProfile>;
26422
26473
  meta?: {
26423
26474
  [key: string]: unknown;
26424
26475
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gpt-core/admin",
3
- "version": "0.7.90",
3
+ "version": "0.7.92",
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
+ }