@gpt-core/client 0.9.33 → 0.9.35

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
@@ -10734,12 +10734,9 @@ type PostExtractionDocumentsFindOrBeginUploadData = {
10734
10734
  attributes?: {
10735
10735
  batch_id?: string | unknown;
10736
10736
  content_type?: string | unknown;
10737
- /**
10738
- * SHA256 hash of the file content for deduplication
10739
- */
10740
10737
  file_hash?: string | unknown;
10741
10738
  file_size_bytes?: number | unknown;
10742
- file_type: "pdf" | "docx" | "image" | "zip";
10739
+ file_type: string;
10743
10740
  filename: string;
10744
10741
  force?: boolean | unknown;
10745
10742
  parent_document_id?: string | unknown;
@@ -12314,7 +12311,6 @@ type PostApplicationsByApplicationIdEmailTemplatesData = {
12314
12311
  body: {
12315
12312
  data: {
12316
12313
  attributes?: {
12317
- application_id: string;
12318
12314
  /**
12319
12315
  * Email body in markdown (supports {{variable}} interpolation)
12320
12316
  */
@@ -12353,6 +12349,9 @@ type PostApplicationsByApplicationIdEmailTemplatesData = {
12353
12349
  "x-application-key": string;
12354
12350
  };
12355
12351
  path: {
12352
+ /**
12353
+ * Optional - inferred from x-application-key header when not provided
12354
+ */
12356
12355
  application_id: string;
12357
12356
  };
12358
12357
  query?: {
@@ -28001,6 +28000,10 @@ type PostWorkspaceMembershipsData = {
28001
28000
  * Workspace permissions in format {app}:{resource}:{action}:{scope}
28002
28001
  */
28003
28002
  permissions?: Array<string> | unknown;
28003
+ /**
28004
+ * Convenience: auto-populates permissions from PermissionRegistry preset
28005
+ */
28006
+ role?: "admin" | "editor" | "viewer" | unknown;
28004
28007
  user_id: string;
28005
28008
  workspace_id: string;
28006
28009
  };
@@ -32156,6 +32159,9 @@ type GetInvitationsMeData = {
32156
32159
  fields?: {
32157
32160
  [key: string]: unknown;
32158
32161
  };
32162
+ /**
32163
+ * User ID to look up invitations for. Actor's ID takes precedence when available.
32164
+ */
32159
32165
  user_id?: string;
32160
32166
  };
32161
32167
  url: "/invitations/me";
@@ -35028,6 +35034,10 @@ type PatchWorkspaceMembershipsByWorkspaceIdByUserIdData = {
35028
35034
  * Workspace permissions in format {app}:{resource}:{action}:{scope}
35029
35035
  */
35030
35036
  permissions?: Array<string> | unknown;
35037
+ /**
35038
+ * Convenience: auto-populates permissions from PermissionRegistry preset
35039
+ */
35040
+ role?: "admin" | "editor" | "viewer" | unknown;
35031
35041
  };
35032
35042
  id: string;
35033
35043
  relationships?: {
package/dist/index.d.ts CHANGED
@@ -10734,12 +10734,9 @@ type PostExtractionDocumentsFindOrBeginUploadData = {
10734
10734
  attributes?: {
10735
10735
  batch_id?: string | unknown;
10736
10736
  content_type?: string | unknown;
10737
- /**
10738
- * SHA256 hash of the file content for deduplication
10739
- */
10740
10737
  file_hash?: string | unknown;
10741
10738
  file_size_bytes?: number | unknown;
10742
- file_type: "pdf" | "docx" | "image" | "zip";
10739
+ file_type: string;
10743
10740
  filename: string;
10744
10741
  force?: boolean | unknown;
10745
10742
  parent_document_id?: string | unknown;
@@ -12314,7 +12311,6 @@ type PostApplicationsByApplicationIdEmailTemplatesData = {
12314
12311
  body: {
12315
12312
  data: {
12316
12313
  attributes?: {
12317
- application_id: string;
12318
12314
  /**
12319
12315
  * Email body in markdown (supports {{variable}} interpolation)
12320
12316
  */
@@ -12353,6 +12349,9 @@ type PostApplicationsByApplicationIdEmailTemplatesData = {
12353
12349
  "x-application-key": string;
12354
12350
  };
12355
12351
  path: {
12352
+ /**
12353
+ * Optional - inferred from x-application-key header when not provided
12354
+ */
12356
12355
  application_id: string;
12357
12356
  };
12358
12357
  query?: {
@@ -28001,6 +28000,10 @@ type PostWorkspaceMembershipsData = {
28001
28000
  * Workspace permissions in format {app}:{resource}:{action}:{scope}
28002
28001
  */
28003
28002
  permissions?: Array<string> | unknown;
28003
+ /**
28004
+ * Convenience: auto-populates permissions from PermissionRegistry preset
28005
+ */
28006
+ role?: "admin" | "editor" | "viewer" | unknown;
28004
28007
  user_id: string;
28005
28008
  workspace_id: string;
28006
28009
  };
@@ -32156,6 +32159,9 @@ type GetInvitationsMeData = {
32156
32159
  fields?: {
32157
32160
  [key: string]: unknown;
32158
32161
  };
32162
+ /**
32163
+ * User ID to look up invitations for. Actor's ID takes precedence when available.
32164
+ */
32159
32165
  user_id?: string;
32160
32166
  };
32161
32167
  url: "/invitations/me";
@@ -35028,6 +35034,10 @@ type PatchWorkspaceMembershipsByWorkspaceIdByUserIdData = {
35028
35034
  * Workspace permissions in format {app}:{resource}:{action}:{scope}
35029
35035
  */
35030
35036
  permissions?: Array<string> | unknown;
35037
+ /**
35038
+ * Convenience: auto-populates permissions from PermissionRegistry preset
35039
+ */
35040
+ role?: "admin" | "editor" | "viewer" | unknown;
35031
35041
  };
35032
35042
  id: string;
35033
35043
  relationships?: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gpt-core/client",
3
- "version": "0.9.33",
3
+ "version": "0.9.35",
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",