@gpt-core/admin 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
@@ -11509,6 +11509,10 @@ type PostAdminWorkspaceMembershipsData = {
11509
11509
  * Workspace permissions in format {app}:{resource}:{action}:{scope}
11510
11510
  */
11511
11511
  permissions?: Array<string> | unknown;
11512
+ /**
11513
+ * Convenience: auto-populates permissions from PermissionRegistry preset
11514
+ */
11515
+ role?: "admin" | "editor" | "viewer" | unknown;
11512
11516
  user_id: string;
11513
11517
  workspace_id: string;
11514
11518
  };
@@ -17287,7 +17291,10 @@ type PostAdminPlansData = {
17287
17291
  body: {
17288
17292
  data: {
17289
17293
  attributes?: {
17290
- application_id: string;
17294
+ /**
17295
+ * Optional - inferred from x-application-key header when not provided
17296
+ */
17297
+ application_id?: string | unknown;
17291
17298
  billing_interval?: number | unknown;
17292
17299
  /**
17293
17300
  * One-time credits granted upon first subscription (Welcome Bonus)
@@ -18849,7 +18856,7 @@ type PostAdminPricingStrategiesData = {
18849
18856
  data: {
18850
18857
  attributes?: {
18851
18858
  /**
18852
- * Application ID. NULL means platform default.
18859
+ * Optional - inferred from x-application-key header when not provided
18853
18860
  */
18854
18861
  application_id?: string | unknown;
18855
18862
  /**
@@ -23357,6 +23364,9 @@ type GetAdminInvitationsMeData = {
23357
23364
  fields?: {
23358
23365
  [key: string]: unknown;
23359
23366
  };
23367
+ /**
23368
+ * User ID to look up invitations for. Actor's ID takes precedence when available.
23369
+ */
23360
23370
  user_id?: string;
23361
23371
  };
23362
23372
  url: "/admin/invitations/me";
@@ -25974,7 +25984,10 @@ type PostAdminCreditPackagesData = {
25974
25984
  body: {
25975
25985
  data: {
25976
25986
  attributes?: {
25977
- application_id: string;
25987
+ /**
25988
+ * Optional - inferred from x-application-key header when not provided
25989
+ */
25990
+ application_id?: string | unknown;
25978
25991
  credits: number;
25979
25992
  name: string;
25980
25993
  price: {
@@ -26617,7 +26630,6 @@ type PostAdminApplicationsByApplicationIdEmailTemplatesData = {
26617
26630
  body: {
26618
26631
  data: {
26619
26632
  attributes?: {
26620
- application_id: string;
26621
26633
  /**
26622
26634
  * Email body in markdown (supports {{variable}} interpolation)
26623
26635
  */
@@ -26656,6 +26668,9 @@ type PostAdminApplicationsByApplicationIdEmailTemplatesData = {
26656
26668
  "x-application-key": string;
26657
26669
  };
26658
26670
  path: {
26671
+ /**
26672
+ * Optional - inferred from x-application-key header when not provided
26673
+ */
26659
26674
  application_id: string;
26660
26675
  };
26661
26676
  query?: {
@@ -31606,12 +31621,9 @@ type PostAdminExtractionDocumentsFindOrBeginUploadData = {
31606
31621
  attributes?: {
31607
31622
  batch_id?: string | unknown;
31608
31623
  content_type?: string | unknown;
31609
- /**
31610
- * SHA256 hash of the file content for deduplication
31611
- */
31612
31624
  file_hash?: string | unknown;
31613
31625
  file_size_bytes?: number | unknown;
31614
- file_type: "pdf" | "docx" | "image" | "zip";
31626
+ file_type: string;
31615
31627
  filename: string;
31616
31628
  force?: boolean | unknown;
31617
31629
  parent_document_id?: string | unknown;
@@ -37247,6 +37259,10 @@ type PatchAdminWorkspaceMembershipsByWorkspaceIdByUserIdData = {
37247
37259
  * Workspace permissions in format {app}:{resource}:{action}:{scope}
37248
37260
  */
37249
37261
  permissions?: Array<string> | unknown;
37262
+ /**
37263
+ * Convenience: auto-populates permissions from PermissionRegistry preset
37264
+ */
37265
+ role?: "admin" | "editor" | "viewer" | unknown;
37250
37266
  };
37251
37267
  id: string;
37252
37268
  relationships?: {
@@ -38430,7 +38446,7 @@ type PostAdminPricingRulesData = {
38430
38446
  data: {
38431
38447
  attributes?: {
38432
38448
  /**
38433
- * Optional: Link pricing rule to a specific application
38449
+ * Optional - inferred from x-application-key header when not provided
38434
38450
  */
38435
38451
  application_id?: string | unknown;
38436
38452
  cost_credits: string;
package/dist/index.d.ts CHANGED
@@ -11509,6 +11509,10 @@ type PostAdminWorkspaceMembershipsData = {
11509
11509
  * Workspace permissions in format {app}:{resource}:{action}:{scope}
11510
11510
  */
11511
11511
  permissions?: Array<string> | unknown;
11512
+ /**
11513
+ * Convenience: auto-populates permissions from PermissionRegistry preset
11514
+ */
11515
+ role?: "admin" | "editor" | "viewer" | unknown;
11512
11516
  user_id: string;
11513
11517
  workspace_id: string;
11514
11518
  };
@@ -17287,7 +17291,10 @@ type PostAdminPlansData = {
17287
17291
  body: {
17288
17292
  data: {
17289
17293
  attributes?: {
17290
- application_id: string;
17294
+ /**
17295
+ * Optional - inferred from x-application-key header when not provided
17296
+ */
17297
+ application_id?: string | unknown;
17291
17298
  billing_interval?: number | unknown;
17292
17299
  /**
17293
17300
  * One-time credits granted upon first subscription (Welcome Bonus)
@@ -18849,7 +18856,7 @@ type PostAdminPricingStrategiesData = {
18849
18856
  data: {
18850
18857
  attributes?: {
18851
18858
  /**
18852
- * Application ID. NULL means platform default.
18859
+ * Optional - inferred from x-application-key header when not provided
18853
18860
  */
18854
18861
  application_id?: string | unknown;
18855
18862
  /**
@@ -23357,6 +23364,9 @@ type GetAdminInvitationsMeData = {
23357
23364
  fields?: {
23358
23365
  [key: string]: unknown;
23359
23366
  };
23367
+ /**
23368
+ * User ID to look up invitations for. Actor's ID takes precedence when available.
23369
+ */
23360
23370
  user_id?: string;
23361
23371
  };
23362
23372
  url: "/admin/invitations/me";
@@ -25974,7 +25984,10 @@ type PostAdminCreditPackagesData = {
25974
25984
  body: {
25975
25985
  data: {
25976
25986
  attributes?: {
25977
- application_id: string;
25987
+ /**
25988
+ * Optional - inferred from x-application-key header when not provided
25989
+ */
25990
+ application_id?: string | unknown;
25978
25991
  credits: number;
25979
25992
  name: string;
25980
25993
  price: {
@@ -26617,7 +26630,6 @@ type PostAdminApplicationsByApplicationIdEmailTemplatesData = {
26617
26630
  body: {
26618
26631
  data: {
26619
26632
  attributes?: {
26620
- application_id: string;
26621
26633
  /**
26622
26634
  * Email body in markdown (supports {{variable}} interpolation)
26623
26635
  */
@@ -26656,6 +26668,9 @@ type PostAdminApplicationsByApplicationIdEmailTemplatesData = {
26656
26668
  "x-application-key": string;
26657
26669
  };
26658
26670
  path: {
26671
+ /**
26672
+ * Optional - inferred from x-application-key header when not provided
26673
+ */
26659
26674
  application_id: string;
26660
26675
  };
26661
26676
  query?: {
@@ -31606,12 +31621,9 @@ type PostAdminExtractionDocumentsFindOrBeginUploadData = {
31606
31621
  attributes?: {
31607
31622
  batch_id?: string | unknown;
31608
31623
  content_type?: string | unknown;
31609
- /**
31610
- * SHA256 hash of the file content for deduplication
31611
- */
31612
31624
  file_hash?: string | unknown;
31613
31625
  file_size_bytes?: number | unknown;
31614
- file_type: "pdf" | "docx" | "image" | "zip";
31626
+ file_type: string;
31615
31627
  filename: string;
31616
31628
  force?: boolean | unknown;
31617
31629
  parent_document_id?: string | unknown;
@@ -37247,6 +37259,10 @@ type PatchAdminWorkspaceMembershipsByWorkspaceIdByUserIdData = {
37247
37259
  * Workspace permissions in format {app}:{resource}:{action}:{scope}
37248
37260
  */
37249
37261
  permissions?: Array<string> | unknown;
37262
+ /**
37263
+ * Convenience: auto-populates permissions from PermissionRegistry preset
37264
+ */
37265
+ role?: "admin" | "editor" | "viewer" | unknown;
37250
37266
  };
37251
37267
  id: string;
37252
37268
  relationships?: {
@@ -38430,7 +38446,7 @@ type PostAdminPricingRulesData = {
38430
38446
  data: {
38431
38447
  attributes?: {
38432
38448
  /**
38433
- * Optional: Link pricing rule to a specific application
38449
+ * Optional - inferred from x-application-key header when not provided
38434
38450
  */
38435
38451
  application_id?: string | unknown;
38436
38452
  cost_credits: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gpt-core/admin",
3
- "version": "0.9.33",
3
+ "version": "0.9.35",
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",