@gpt-core/client 0.8.1 → 0.8.12

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
@@ -4735,20 +4735,7 @@ type PatchWalletCreditsResponses = {
4735
4735
  };
4736
4736
  type PatchWalletCreditsResponse = PatchWalletCreditsResponses[keyof PatchWalletCreditsResponses];
4737
4737
  type PostWebhookConfigsStatsData = {
4738
- /**
4739
- * Request body for the /webhook_configs/stats operation on webhook_config resource
4740
- */
4741
- body?: {
4742
- data: {
4743
- attributes?: {
4744
- [key: string]: never;
4745
- };
4746
- relationships?: {
4747
- [key: string]: never;
4748
- };
4749
- type?: "webhook_config";
4750
- };
4751
- };
4738
+ body?: never;
4752
4739
  headers: {
4753
4740
  /**
4754
4741
  * Application ID for authentication and routing
@@ -4756,18 +4743,7 @@ type PostWebhookConfigsStatsData = {
4756
4743
  "x-application-key": string;
4757
4744
  };
4758
4745
  path?: never;
4759
- query?: {
4760
- /**
4761
- * Include related resources in the response. Comma-separated list of relationship names to eager-load.
4762
- */
4763
- include?: string;
4764
- /**
4765
- * JSON:API sparse fieldsets (use flat query string format: fields[type]=field1,field2)
4766
- */
4767
- fields?: {
4768
- [key: string]: unknown;
4769
- };
4770
- };
4746
+ query?: never;
4771
4747
  url: "/webhook_configs/stats";
4772
4748
  };
4773
4749
  type PostWebhookConfigsStatsErrors = {
@@ -4806,11 +4782,7 @@ type PostWebhookConfigsStatsResponses = {
4806
4782
  * Success
4807
4783
  */
4808
4784
  201: {
4809
- data?: WebhookConfig;
4810
- included?: Array<unknown>;
4811
- meta?: {
4812
- [key: string]: unknown;
4813
- };
4785
+ [key: string]: unknown;
4814
4786
  };
4815
4787
  };
4816
4788
  type PostWebhookConfigsStatsResponse = PostWebhookConfigsStatsResponses[keyof PostWebhookConfigsStatsResponses];
@@ -5063,20 +5035,7 @@ type PostWorkspacesResponses = {
5063
5035
  };
5064
5036
  type PostWorkspacesResponse = PostWorkspacesResponses[keyof PostWorkspacesResponses];
5065
5037
  type PostAgentsByIdStatsData = {
5066
- /**
5067
- * Request body for the /agents/:id/stats operation on agent resource
5068
- */
5069
- body?: {
5070
- data: {
5071
- attributes?: {
5072
- [key: string]: never;
5073
- };
5074
- relationships?: {
5075
- [key: string]: never;
5076
- };
5077
- type?: "agent";
5078
- };
5079
- };
5038
+ body?: never;
5080
5039
  headers: {
5081
5040
  /**
5082
5041
  * Application ID for authentication and routing
@@ -5086,18 +5045,7 @@ type PostAgentsByIdStatsData = {
5086
5045
  path: {
5087
5046
  id: string;
5088
5047
  };
5089
- query?: {
5090
- /**
5091
- * Include related resources in the response. Comma-separated list of relationship names to eager-load.
5092
- */
5093
- include?: string;
5094
- /**
5095
- * JSON:API sparse fieldsets (use flat query string format: fields[type]=field1,field2)
5096
- */
5097
- fields?: {
5098
- [key: string]: unknown;
5099
- };
5100
- };
5048
+ query?: never;
5101
5049
  url: "/agents/{id}/stats";
5102
5050
  };
5103
5051
  type PostAgentsByIdStatsErrors = {
@@ -5136,11 +5084,7 @@ type PostAgentsByIdStatsResponses = {
5136
5084
  * Success
5137
5085
  */
5138
5086
  201: {
5139
- data?: Agent;
5140
- included?: Array<AgentVersion>;
5141
- meta?: {
5142
- [key: string]: unknown;
5143
- };
5087
+ [key: string]: unknown;
5144
5088
  };
5145
5089
  };
5146
5090
  type PostAgentsByIdStatsResponse = PostAgentsByIdStatsResponses[keyof PostAgentsByIdStatsResponses];
@@ -5614,13 +5558,7 @@ type PostWebhookConfigsBulkDisableData = {
5614
5558
  */
5615
5559
  body: {
5616
5560
  data: {
5617
- attributes?: {
5618
- ids: Array<string>;
5619
- };
5620
- relationships?: {
5621
- [key: string]: never;
5622
- };
5623
- type?: "webhook_config";
5561
+ ids: Array<string>;
5624
5562
  };
5625
5563
  };
5626
5564
  headers: {
@@ -5630,18 +5568,7 @@ type PostWebhookConfigsBulkDisableData = {
5630
5568
  "x-application-key": string;
5631
5569
  };
5632
5570
  path?: never;
5633
- query?: {
5634
- /**
5635
- * Include related resources in the response. Comma-separated list of relationship names to eager-load.
5636
- */
5637
- include?: string;
5638
- /**
5639
- * JSON:API sparse fieldsets (use flat query string format: fields[type]=field1,field2)
5640
- */
5641
- fields?: {
5642
- [key: string]: unknown;
5643
- };
5644
- };
5571
+ query?: never;
5645
5572
  url: "/webhook_configs/bulk-disable";
5646
5573
  };
5647
5574
  type PostWebhookConfigsBulkDisableErrors = {
@@ -5680,11 +5607,7 @@ type PostWebhookConfigsBulkDisableResponses = {
5680
5607
  * Success
5681
5608
  */
5682
5609
  201: {
5683
- data?: WebhookConfig;
5684
- included?: Array<unknown>;
5685
- meta?: {
5686
- [key: string]: unknown;
5687
- };
5610
+ [key: string]: unknown;
5688
5611
  };
5689
5612
  };
5690
5613
  type PostWebhookConfigsBulkDisableResponse = PostWebhookConfigsBulkDisableResponses[keyof PostWebhookConfigsBulkDisableResponses];
@@ -7334,13 +7257,7 @@ type PostWebhookConfigsBulkEnableData = {
7334
7257
  */
7335
7258
  body: {
7336
7259
  data: {
7337
- attributes?: {
7338
- ids: Array<string>;
7339
- };
7340
- relationships?: {
7341
- [key: string]: never;
7342
- };
7343
- type?: "webhook_config";
7260
+ ids: Array<string>;
7344
7261
  };
7345
7262
  };
7346
7263
  headers: {
@@ -7350,18 +7267,7 @@ type PostWebhookConfigsBulkEnableData = {
7350
7267
  "x-application-key": string;
7351
7268
  };
7352
7269
  path?: never;
7353
- query?: {
7354
- /**
7355
- * Include related resources in the response. Comma-separated list of relationship names to eager-load.
7356
- */
7357
- include?: string;
7358
- /**
7359
- * JSON:API sparse fieldsets (use flat query string format: fields[type]=field1,field2)
7360
- */
7361
- fields?: {
7362
- [key: string]: unknown;
7363
- };
7364
- };
7270
+ query?: never;
7365
7271
  url: "/webhook_configs/bulk-enable";
7366
7272
  };
7367
7273
  type PostWebhookConfigsBulkEnableErrors = {
@@ -7400,11 +7306,7 @@ type PostWebhookConfigsBulkEnableResponses = {
7400
7306
  * Success
7401
7307
  */
7402
7308
  201: {
7403
- data?: WebhookConfig;
7404
- included?: Array<unknown>;
7405
- meta?: {
7406
- [key: string]: unknown;
7407
- };
7309
+ [key: string]: unknown;
7408
7310
  };
7409
7311
  };
7410
7312
  type PostWebhookConfigsBulkEnableResponse = PostWebhookConfigsBulkEnableResponses[keyof PostWebhookConfigsBulkEnableResponses];
@@ -7731,13 +7633,7 @@ type PostWebhookDeliveriesBulkRetryData = {
7731
7633
  */
7732
7634
  body: {
7733
7635
  data: {
7734
- attributes?: {
7735
- ids: Array<string>;
7736
- };
7737
- relationships?: {
7738
- [key: string]: never;
7739
- };
7740
- type?: "webhook_delivery";
7636
+ ids: Array<string>;
7741
7637
  };
7742
7638
  };
7743
7639
  headers: {
@@ -7747,18 +7643,7 @@ type PostWebhookDeliveriesBulkRetryData = {
7747
7643
  "x-application-key": string;
7748
7644
  };
7749
7645
  path?: never;
7750
- query?: {
7751
- /**
7752
- * Include related resources in the response. Comma-separated list of relationship names to eager-load.
7753
- */
7754
- include?: string;
7755
- /**
7756
- * JSON:API sparse fieldsets (use flat query string format: fields[type]=field1,field2)
7757
- */
7758
- fields?: {
7759
- [key: string]: unknown;
7760
- };
7761
- };
7646
+ query?: never;
7762
7647
  url: "/webhook_deliveries/bulk-retry";
7763
7648
  };
7764
7649
  type PostWebhookDeliveriesBulkRetryErrors = {
@@ -7797,11 +7682,7 @@ type PostWebhookDeliveriesBulkRetryResponses = {
7797
7682
  * Success
7798
7683
  */
7799
7684
  201: {
7800
- data?: WebhookDelivery;
7801
- included?: Array<unknown>;
7802
- meta?: {
7803
- [key: string]: unknown;
7804
- };
7685
+ [key: string]: unknown;
7805
7686
  };
7806
7687
  };
7807
7688
  type PostWebhookDeliveriesBulkRetryResponse = PostWebhookDeliveriesBulkRetryResponses[keyof PostWebhookDeliveriesBulkRetryResponses];
@@ -10442,20 +10323,7 @@ type GetExtractionResultsByIdResponses = {
10442
10323
  };
10443
10324
  type GetExtractionResultsByIdResponse = GetExtractionResultsByIdResponses[keyof GetExtractionResultsByIdResponses];
10444
10325
  type PostWebhookDeliveriesStatsData = {
10445
- /**
10446
- * Request body for the /webhook_deliveries/stats operation on webhook_delivery resource
10447
- */
10448
- body?: {
10449
- data: {
10450
- attributes?: {
10451
- [key: string]: never;
10452
- };
10453
- relationships?: {
10454
- [key: string]: never;
10455
- };
10456
- type?: "webhook_delivery";
10457
- };
10458
- };
10326
+ body?: never;
10459
10327
  headers: {
10460
10328
  /**
10461
10329
  * Application ID for authentication and routing
@@ -10463,18 +10331,7 @@ type PostWebhookDeliveriesStatsData = {
10463
10331
  "x-application-key": string;
10464
10332
  };
10465
10333
  path?: never;
10466
- query?: {
10467
- /**
10468
- * Include related resources in the response. Comma-separated list of relationship names to eager-load.
10469
- */
10470
- include?: string;
10471
- /**
10472
- * JSON:API sparse fieldsets (use flat query string format: fields[type]=field1,field2)
10473
- */
10474
- fields?: {
10475
- [key: string]: unknown;
10476
- };
10477
- };
10334
+ query?: never;
10478
10335
  url: "/webhook_deliveries/stats";
10479
10336
  };
10480
10337
  type PostWebhookDeliveriesStatsErrors = {
@@ -10513,11 +10370,7 @@ type PostWebhookDeliveriesStatsResponses = {
10513
10370
  * Success
10514
10371
  */
10515
10372
  201: {
10516
- data?: WebhookDelivery;
10517
- included?: Array<unknown>;
10518
- meta?: {
10519
- [key: string]: unknown;
10520
- };
10373
+ [key: string]: unknown;
10521
10374
  };
10522
10375
  };
10523
10376
  type PostWebhookDeliveriesStatsResponse = PostWebhookDeliveriesStatsResponses[keyof PostWebhookDeliveriesStatsResponses];
@@ -24940,20 +24793,7 @@ type PatchApplicationsByApplicationIdEmailTemplatesBySlugResponses = {
24940
24793
  };
24941
24794
  type PatchApplicationsByApplicationIdEmailTemplatesBySlugResponse = PatchApplicationsByApplicationIdEmailTemplatesBySlugResponses[keyof PatchApplicationsByApplicationIdEmailTemplatesBySlugResponses];
24942
24795
  type PostAgentsByIdExportData = {
24943
- /**
24944
- * Request body for the /agents/:id/export operation on agent resource
24945
- */
24946
- body?: {
24947
- data: {
24948
- attributes?: {
24949
- [key: string]: never;
24950
- };
24951
- relationships?: {
24952
- [key: string]: never;
24953
- };
24954
- type?: "agent";
24955
- };
24956
- };
24796
+ body?: never;
24957
24797
  headers: {
24958
24798
  /**
24959
24799
  * Application ID for authentication and routing
@@ -24963,18 +24803,7 @@ type PostAgentsByIdExportData = {
24963
24803
  path: {
24964
24804
  id: string;
24965
24805
  };
24966
- query?: {
24967
- /**
24968
- * Include related resources in the response. Comma-separated list of relationship names to eager-load.
24969
- */
24970
- include?: string;
24971
- /**
24972
- * JSON:API sparse fieldsets (use flat query string format: fields[type]=field1,field2)
24973
- */
24974
- fields?: {
24975
- [key: string]: unknown;
24976
- };
24977
- };
24806
+ query?: never;
24978
24807
  url: "/agents/{id}/export";
24979
24808
  };
24980
24809
  type PostAgentsByIdExportErrors = {
@@ -25013,11 +24842,7 @@ type PostAgentsByIdExportResponses = {
25013
24842
  * Success
25014
24843
  */
25015
24844
  201: {
25016
- data?: Agent;
25017
- included?: Array<AgentVersion>;
25018
- meta?: {
25019
- [key: string]: unknown;
25020
- };
24845
+ [key: string]: unknown;
25021
24846
  };
25022
24847
  };
25023
24848
  type PostAgentsByIdExportResponse = PostAgentsByIdExportResponses[keyof PostAgentsByIdExportResponses];
package/dist/index.d.ts CHANGED
@@ -4735,20 +4735,7 @@ type PatchWalletCreditsResponses = {
4735
4735
  };
4736
4736
  type PatchWalletCreditsResponse = PatchWalletCreditsResponses[keyof PatchWalletCreditsResponses];
4737
4737
  type PostWebhookConfigsStatsData = {
4738
- /**
4739
- * Request body for the /webhook_configs/stats operation on webhook_config resource
4740
- */
4741
- body?: {
4742
- data: {
4743
- attributes?: {
4744
- [key: string]: never;
4745
- };
4746
- relationships?: {
4747
- [key: string]: never;
4748
- };
4749
- type?: "webhook_config";
4750
- };
4751
- };
4738
+ body?: never;
4752
4739
  headers: {
4753
4740
  /**
4754
4741
  * Application ID for authentication and routing
@@ -4756,18 +4743,7 @@ type PostWebhookConfigsStatsData = {
4756
4743
  "x-application-key": string;
4757
4744
  };
4758
4745
  path?: never;
4759
- query?: {
4760
- /**
4761
- * Include related resources in the response. Comma-separated list of relationship names to eager-load.
4762
- */
4763
- include?: string;
4764
- /**
4765
- * JSON:API sparse fieldsets (use flat query string format: fields[type]=field1,field2)
4766
- */
4767
- fields?: {
4768
- [key: string]: unknown;
4769
- };
4770
- };
4746
+ query?: never;
4771
4747
  url: "/webhook_configs/stats";
4772
4748
  };
4773
4749
  type PostWebhookConfigsStatsErrors = {
@@ -4806,11 +4782,7 @@ type PostWebhookConfigsStatsResponses = {
4806
4782
  * Success
4807
4783
  */
4808
4784
  201: {
4809
- data?: WebhookConfig;
4810
- included?: Array<unknown>;
4811
- meta?: {
4812
- [key: string]: unknown;
4813
- };
4785
+ [key: string]: unknown;
4814
4786
  };
4815
4787
  };
4816
4788
  type PostWebhookConfigsStatsResponse = PostWebhookConfigsStatsResponses[keyof PostWebhookConfigsStatsResponses];
@@ -5063,20 +5035,7 @@ type PostWorkspacesResponses = {
5063
5035
  };
5064
5036
  type PostWorkspacesResponse = PostWorkspacesResponses[keyof PostWorkspacesResponses];
5065
5037
  type PostAgentsByIdStatsData = {
5066
- /**
5067
- * Request body for the /agents/:id/stats operation on agent resource
5068
- */
5069
- body?: {
5070
- data: {
5071
- attributes?: {
5072
- [key: string]: never;
5073
- };
5074
- relationships?: {
5075
- [key: string]: never;
5076
- };
5077
- type?: "agent";
5078
- };
5079
- };
5038
+ body?: never;
5080
5039
  headers: {
5081
5040
  /**
5082
5041
  * Application ID for authentication and routing
@@ -5086,18 +5045,7 @@ type PostAgentsByIdStatsData = {
5086
5045
  path: {
5087
5046
  id: string;
5088
5047
  };
5089
- query?: {
5090
- /**
5091
- * Include related resources in the response. Comma-separated list of relationship names to eager-load.
5092
- */
5093
- include?: string;
5094
- /**
5095
- * JSON:API sparse fieldsets (use flat query string format: fields[type]=field1,field2)
5096
- */
5097
- fields?: {
5098
- [key: string]: unknown;
5099
- };
5100
- };
5048
+ query?: never;
5101
5049
  url: "/agents/{id}/stats";
5102
5050
  };
5103
5051
  type PostAgentsByIdStatsErrors = {
@@ -5136,11 +5084,7 @@ type PostAgentsByIdStatsResponses = {
5136
5084
  * Success
5137
5085
  */
5138
5086
  201: {
5139
- data?: Agent;
5140
- included?: Array<AgentVersion>;
5141
- meta?: {
5142
- [key: string]: unknown;
5143
- };
5087
+ [key: string]: unknown;
5144
5088
  };
5145
5089
  };
5146
5090
  type PostAgentsByIdStatsResponse = PostAgentsByIdStatsResponses[keyof PostAgentsByIdStatsResponses];
@@ -5614,13 +5558,7 @@ type PostWebhookConfigsBulkDisableData = {
5614
5558
  */
5615
5559
  body: {
5616
5560
  data: {
5617
- attributes?: {
5618
- ids: Array<string>;
5619
- };
5620
- relationships?: {
5621
- [key: string]: never;
5622
- };
5623
- type?: "webhook_config";
5561
+ ids: Array<string>;
5624
5562
  };
5625
5563
  };
5626
5564
  headers: {
@@ -5630,18 +5568,7 @@ type PostWebhookConfigsBulkDisableData = {
5630
5568
  "x-application-key": string;
5631
5569
  };
5632
5570
  path?: never;
5633
- query?: {
5634
- /**
5635
- * Include related resources in the response. Comma-separated list of relationship names to eager-load.
5636
- */
5637
- include?: string;
5638
- /**
5639
- * JSON:API sparse fieldsets (use flat query string format: fields[type]=field1,field2)
5640
- */
5641
- fields?: {
5642
- [key: string]: unknown;
5643
- };
5644
- };
5571
+ query?: never;
5645
5572
  url: "/webhook_configs/bulk-disable";
5646
5573
  };
5647
5574
  type PostWebhookConfigsBulkDisableErrors = {
@@ -5680,11 +5607,7 @@ type PostWebhookConfigsBulkDisableResponses = {
5680
5607
  * Success
5681
5608
  */
5682
5609
  201: {
5683
- data?: WebhookConfig;
5684
- included?: Array<unknown>;
5685
- meta?: {
5686
- [key: string]: unknown;
5687
- };
5610
+ [key: string]: unknown;
5688
5611
  };
5689
5612
  };
5690
5613
  type PostWebhookConfigsBulkDisableResponse = PostWebhookConfigsBulkDisableResponses[keyof PostWebhookConfigsBulkDisableResponses];
@@ -7334,13 +7257,7 @@ type PostWebhookConfigsBulkEnableData = {
7334
7257
  */
7335
7258
  body: {
7336
7259
  data: {
7337
- attributes?: {
7338
- ids: Array<string>;
7339
- };
7340
- relationships?: {
7341
- [key: string]: never;
7342
- };
7343
- type?: "webhook_config";
7260
+ ids: Array<string>;
7344
7261
  };
7345
7262
  };
7346
7263
  headers: {
@@ -7350,18 +7267,7 @@ type PostWebhookConfigsBulkEnableData = {
7350
7267
  "x-application-key": string;
7351
7268
  };
7352
7269
  path?: never;
7353
- query?: {
7354
- /**
7355
- * Include related resources in the response. Comma-separated list of relationship names to eager-load.
7356
- */
7357
- include?: string;
7358
- /**
7359
- * JSON:API sparse fieldsets (use flat query string format: fields[type]=field1,field2)
7360
- */
7361
- fields?: {
7362
- [key: string]: unknown;
7363
- };
7364
- };
7270
+ query?: never;
7365
7271
  url: "/webhook_configs/bulk-enable";
7366
7272
  };
7367
7273
  type PostWebhookConfigsBulkEnableErrors = {
@@ -7400,11 +7306,7 @@ type PostWebhookConfigsBulkEnableResponses = {
7400
7306
  * Success
7401
7307
  */
7402
7308
  201: {
7403
- data?: WebhookConfig;
7404
- included?: Array<unknown>;
7405
- meta?: {
7406
- [key: string]: unknown;
7407
- };
7309
+ [key: string]: unknown;
7408
7310
  };
7409
7311
  };
7410
7312
  type PostWebhookConfigsBulkEnableResponse = PostWebhookConfigsBulkEnableResponses[keyof PostWebhookConfigsBulkEnableResponses];
@@ -7731,13 +7633,7 @@ type PostWebhookDeliveriesBulkRetryData = {
7731
7633
  */
7732
7634
  body: {
7733
7635
  data: {
7734
- attributes?: {
7735
- ids: Array<string>;
7736
- };
7737
- relationships?: {
7738
- [key: string]: never;
7739
- };
7740
- type?: "webhook_delivery";
7636
+ ids: Array<string>;
7741
7637
  };
7742
7638
  };
7743
7639
  headers: {
@@ -7747,18 +7643,7 @@ type PostWebhookDeliveriesBulkRetryData = {
7747
7643
  "x-application-key": string;
7748
7644
  };
7749
7645
  path?: never;
7750
- query?: {
7751
- /**
7752
- * Include related resources in the response. Comma-separated list of relationship names to eager-load.
7753
- */
7754
- include?: string;
7755
- /**
7756
- * JSON:API sparse fieldsets (use flat query string format: fields[type]=field1,field2)
7757
- */
7758
- fields?: {
7759
- [key: string]: unknown;
7760
- };
7761
- };
7646
+ query?: never;
7762
7647
  url: "/webhook_deliveries/bulk-retry";
7763
7648
  };
7764
7649
  type PostWebhookDeliveriesBulkRetryErrors = {
@@ -7797,11 +7682,7 @@ type PostWebhookDeliveriesBulkRetryResponses = {
7797
7682
  * Success
7798
7683
  */
7799
7684
  201: {
7800
- data?: WebhookDelivery;
7801
- included?: Array<unknown>;
7802
- meta?: {
7803
- [key: string]: unknown;
7804
- };
7685
+ [key: string]: unknown;
7805
7686
  };
7806
7687
  };
7807
7688
  type PostWebhookDeliveriesBulkRetryResponse = PostWebhookDeliveriesBulkRetryResponses[keyof PostWebhookDeliveriesBulkRetryResponses];
@@ -10442,20 +10323,7 @@ type GetExtractionResultsByIdResponses = {
10442
10323
  };
10443
10324
  type GetExtractionResultsByIdResponse = GetExtractionResultsByIdResponses[keyof GetExtractionResultsByIdResponses];
10444
10325
  type PostWebhookDeliveriesStatsData = {
10445
- /**
10446
- * Request body for the /webhook_deliveries/stats operation on webhook_delivery resource
10447
- */
10448
- body?: {
10449
- data: {
10450
- attributes?: {
10451
- [key: string]: never;
10452
- };
10453
- relationships?: {
10454
- [key: string]: never;
10455
- };
10456
- type?: "webhook_delivery";
10457
- };
10458
- };
10326
+ body?: never;
10459
10327
  headers: {
10460
10328
  /**
10461
10329
  * Application ID for authentication and routing
@@ -10463,18 +10331,7 @@ type PostWebhookDeliveriesStatsData = {
10463
10331
  "x-application-key": string;
10464
10332
  };
10465
10333
  path?: never;
10466
- query?: {
10467
- /**
10468
- * Include related resources in the response. Comma-separated list of relationship names to eager-load.
10469
- */
10470
- include?: string;
10471
- /**
10472
- * JSON:API sparse fieldsets (use flat query string format: fields[type]=field1,field2)
10473
- */
10474
- fields?: {
10475
- [key: string]: unknown;
10476
- };
10477
- };
10334
+ query?: never;
10478
10335
  url: "/webhook_deliveries/stats";
10479
10336
  };
10480
10337
  type PostWebhookDeliveriesStatsErrors = {
@@ -10513,11 +10370,7 @@ type PostWebhookDeliveriesStatsResponses = {
10513
10370
  * Success
10514
10371
  */
10515
10372
  201: {
10516
- data?: WebhookDelivery;
10517
- included?: Array<unknown>;
10518
- meta?: {
10519
- [key: string]: unknown;
10520
- };
10373
+ [key: string]: unknown;
10521
10374
  };
10522
10375
  };
10523
10376
  type PostWebhookDeliveriesStatsResponse = PostWebhookDeliveriesStatsResponses[keyof PostWebhookDeliveriesStatsResponses];
@@ -24940,20 +24793,7 @@ type PatchApplicationsByApplicationIdEmailTemplatesBySlugResponses = {
24940
24793
  };
24941
24794
  type PatchApplicationsByApplicationIdEmailTemplatesBySlugResponse = PatchApplicationsByApplicationIdEmailTemplatesBySlugResponses[keyof PatchApplicationsByApplicationIdEmailTemplatesBySlugResponses];
24942
24795
  type PostAgentsByIdExportData = {
24943
- /**
24944
- * Request body for the /agents/:id/export operation on agent resource
24945
- */
24946
- body?: {
24947
- data: {
24948
- attributes?: {
24949
- [key: string]: never;
24950
- };
24951
- relationships?: {
24952
- [key: string]: never;
24953
- };
24954
- type?: "agent";
24955
- };
24956
- };
24796
+ body?: never;
24957
24797
  headers: {
24958
24798
  /**
24959
24799
  * Application ID for authentication and routing
@@ -24963,18 +24803,7 @@ type PostAgentsByIdExportData = {
24963
24803
  path: {
24964
24804
  id: string;
24965
24805
  };
24966
- query?: {
24967
- /**
24968
- * Include related resources in the response. Comma-separated list of relationship names to eager-load.
24969
- */
24970
- include?: string;
24971
- /**
24972
- * JSON:API sparse fieldsets (use flat query string format: fields[type]=field1,field2)
24973
- */
24974
- fields?: {
24975
- [key: string]: unknown;
24976
- };
24977
- };
24806
+ query?: never;
24978
24807
  url: "/agents/{id}/export";
24979
24808
  };
24980
24809
  type PostAgentsByIdExportErrors = {
@@ -25013,11 +24842,7 @@ type PostAgentsByIdExportResponses = {
25013
24842
  * Success
25014
24843
  */
25015
24844
  201: {
25016
- data?: Agent;
25017
- included?: Array<AgentVersion>;
25018
- meta?: {
25019
- [key: string]: unknown;
25020
- };
24845
+ [key: string]: unknown;
25021
24846
  };
25022
24847
  };
25023
24848
  type PostAgentsByIdExportResponse = PostAgentsByIdExportResponses[keyof PostAgentsByIdExportResponses];
package/dist/index.js CHANGED
@@ -1530,14 +1530,9 @@ var patchWalletCredits = (options) => (options.client ?? client).patch({
1530
1530
  }
1531
1531
  });
1532
1532
  var postWebhookConfigsStats = (options) => (options.client ?? client).post({
1533
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
1534
1533
  security: [{ scheme: "bearer", type: "http" }],
1535
1534
  url: "/webhook_configs/stats",
1536
- ...options,
1537
- headers: {
1538
- "Content-Type": "application/vnd.api+json",
1539
- ...options.headers
1540
- }
1535
+ ...options
1541
1536
  });
1542
1537
  var getApplicationsCurrent = (options) => (options.client ?? client).get({
1543
1538
  querySerializer: { parameters: { fields: { object: { style: "form" } } } },
@@ -1567,14 +1562,9 @@ var postWorkspaces = (options) => (options.client ?? client).post({
1567
1562
  }
1568
1563
  });
1569
1564
  var postAgentsByIdStats = (options) => (options.client ?? client).post({
1570
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
1571
1565
  security: [{ scheme: "bearer", type: "http" }],
1572
1566
  url: "/agents/{id}/stats",
1573
- ...options,
1574
- headers: {
1575
- "Content-Type": "application/vnd.api+json",
1576
- ...options.headers
1577
- }
1567
+ ...options
1578
1568
  });
1579
1569
  var getDocumentsStats = (options) => (options.client ?? client).get({
1580
1570
  querySerializer: { parameters: { fields: { object: { style: "form" } } } },
@@ -1630,7 +1620,6 @@ var getSearchIndexes = (options) => (options.client ?? client).get({
1630
1620
  ...options
1631
1621
  });
1632
1622
  var postWebhookConfigsBulkDisable = (options) => (options.client ?? client).post({
1633
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
1634
1623
  security: [{ scheme: "bearer", type: "http" }],
1635
1624
  url: "/webhook_configs/bulk-disable",
1636
1625
  ...options,
@@ -1827,7 +1816,6 @@ var postTokens = (options) => (options.client ?? client).post({
1827
1816
  }
1828
1817
  });
1829
1818
  var postWebhookConfigsBulkEnable = (options) => (options.client ?? client).post({
1830
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
1831
1819
  security: [{ scheme: "bearer", type: "http" }],
1832
1820
  url: "/webhook_configs/bulk-enable",
1833
1821
  ...options,
@@ -1869,7 +1857,6 @@ var patchTrainingExamplesById = (options) => (options.client ?? client).patch({
1869
1857
  }
1870
1858
  });
1871
1859
  var postWebhookDeliveriesBulkRetry = (options) => (options.client ?? client).post({
1872
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
1873
1860
  security: [{ scheme: "bearer", type: "http" }],
1874
1861
  url: "/webhook_deliveries/bulk-retry",
1875
1862
  ...options,
@@ -2165,14 +2152,9 @@ var getExtractionResultsById = (options) => (options.client ?? client).get({
2165
2152
  ...options
2166
2153
  });
2167
2154
  var postWebhookDeliveriesStats = (options) => (options.client ?? client).post({
2168
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
2169
2155
  security: [{ scheme: "bearer", type: "http" }],
2170
2156
  url: "/webhook_deliveries/stats",
2171
- ...options,
2172
- headers: {
2173
- "Content-Type": "application/vnd.api+json",
2174
- ...options.headers
2175
- }
2157
+ ...options
2176
2158
  });
2177
2159
  var postAgentsByIdValidate = (options) => (options.client ?? client).post({
2178
2160
  querySerializer: { parameters: { fields: { object: { style: "form" } } } },
@@ -3827,14 +3809,9 @@ var patchApplicationsByApplicationIdEmailTemplatesBySlug = (options) => (options
3827
3809
  }
3828
3810
  });
3829
3811
  var postAgentsByIdExport = (options) => (options.client ?? client).post({
3830
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
3831
3812
  security: [{ scheme: "bearer", type: "http" }],
3832
3813
  url: "/agents/{id}/export",
3833
- ...options,
3834
- headers: {
3835
- "Content-Type": "application/vnd.api+json",
3836
- ...options.headers
3837
- }
3814
+ ...options
3838
3815
  });
3839
3816
  var postUsersRegisterIsv = (options) => (options.client ?? client).post({
3840
3817
  querySerializer: { parameters: { fields: { object: { style: "form" } } } },
package/dist/index.mjs CHANGED
@@ -1193,14 +1193,9 @@ var patchWalletCredits = (options) => (options.client ?? client).patch({
1193
1193
  }
1194
1194
  });
1195
1195
  var postWebhookConfigsStats = (options) => (options.client ?? client).post({
1196
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
1197
1196
  security: [{ scheme: "bearer", type: "http" }],
1198
1197
  url: "/webhook_configs/stats",
1199
- ...options,
1200
- headers: {
1201
- "Content-Type": "application/vnd.api+json",
1202
- ...options.headers
1203
- }
1198
+ ...options
1204
1199
  });
1205
1200
  var getApplicationsCurrent = (options) => (options.client ?? client).get({
1206
1201
  querySerializer: { parameters: { fields: { object: { style: "form" } } } },
@@ -1230,14 +1225,9 @@ var postWorkspaces = (options) => (options.client ?? client).post({
1230
1225
  }
1231
1226
  });
1232
1227
  var postAgentsByIdStats = (options) => (options.client ?? client).post({
1233
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
1234
1228
  security: [{ scheme: "bearer", type: "http" }],
1235
1229
  url: "/agents/{id}/stats",
1236
- ...options,
1237
- headers: {
1238
- "Content-Type": "application/vnd.api+json",
1239
- ...options.headers
1240
- }
1230
+ ...options
1241
1231
  });
1242
1232
  var getDocumentsStats = (options) => (options.client ?? client).get({
1243
1233
  querySerializer: { parameters: { fields: { object: { style: "form" } } } },
@@ -1293,7 +1283,6 @@ var getSearchIndexes = (options) => (options.client ?? client).get({
1293
1283
  ...options
1294
1284
  });
1295
1285
  var postWebhookConfigsBulkDisable = (options) => (options.client ?? client).post({
1296
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
1297
1286
  security: [{ scheme: "bearer", type: "http" }],
1298
1287
  url: "/webhook_configs/bulk-disable",
1299
1288
  ...options,
@@ -1490,7 +1479,6 @@ var postTokens = (options) => (options.client ?? client).post({
1490
1479
  }
1491
1480
  });
1492
1481
  var postWebhookConfigsBulkEnable = (options) => (options.client ?? client).post({
1493
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
1494
1482
  security: [{ scheme: "bearer", type: "http" }],
1495
1483
  url: "/webhook_configs/bulk-enable",
1496
1484
  ...options,
@@ -1532,7 +1520,6 @@ var patchTrainingExamplesById = (options) => (options.client ?? client).patch({
1532
1520
  }
1533
1521
  });
1534
1522
  var postWebhookDeliveriesBulkRetry = (options) => (options.client ?? client).post({
1535
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
1536
1523
  security: [{ scheme: "bearer", type: "http" }],
1537
1524
  url: "/webhook_deliveries/bulk-retry",
1538
1525
  ...options,
@@ -1828,14 +1815,9 @@ var getExtractionResultsById = (options) => (options.client ?? client).get({
1828
1815
  ...options
1829
1816
  });
1830
1817
  var postWebhookDeliveriesStats = (options) => (options.client ?? client).post({
1831
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
1832
1818
  security: [{ scheme: "bearer", type: "http" }],
1833
1819
  url: "/webhook_deliveries/stats",
1834
- ...options,
1835
- headers: {
1836
- "Content-Type": "application/vnd.api+json",
1837
- ...options.headers
1838
- }
1820
+ ...options
1839
1821
  });
1840
1822
  var postAgentsByIdValidate = (options) => (options.client ?? client).post({
1841
1823
  querySerializer: { parameters: { fields: { object: { style: "form" } } } },
@@ -3490,14 +3472,9 @@ var patchApplicationsByApplicationIdEmailTemplatesBySlug = (options) => (options
3490
3472
  }
3491
3473
  });
3492
3474
  var postAgentsByIdExport = (options) => (options.client ?? client).post({
3493
- querySerializer: { parameters: { fields: { object: { style: "form" } } } },
3494
3475
  security: [{ scheme: "bearer", type: "http" }],
3495
3476
  url: "/agents/{id}/export",
3496
- ...options,
3497
- headers: {
3498
- "Content-Type": "application/vnd.api+json",
3499
- ...options.headers
3500
- }
3477
+ ...options
3501
3478
  });
3502
3479
  var postUsersRegisterIsv = (options) => (options.client ?? client).post({
3503
3480
  querySerializer: { parameters: { fields: { object: { style: "form" } } } },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gpt-core/client",
3
- "version": "0.8.1",
3
+ "version": "0.8.12",
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
+ }