@gpt-platform/client 0.3.0 → 0.3.1

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.js CHANGED
@@ -1285,7 +1285,7 @@ function buildUserAgent(sdkVersion, appInfo) {
1285
1285
  }
1286
1286
 
1287
1287
  // src/version.ts
1288
- var SDK_VERSION = "0.3.0";
1288
+ var SDK_VERSION = "0.3.1";
1289
1289
  var DEFAULT_API_VERSION = "2026-02-25";
1290
1290
 
1291
1291
  // src/base-client.ts
@@ -1625,6 +1625,15 @@ var patchExtractionDocumentsByIdCancel = (options) => (options.client ?? client)
1625
1625
  ...options.headers
1626
1626
  }
1627
1627
  });
1628
+ var postCatalogProductVariants = (options) => (options.client ?? client).post({
1629
+ security: [{ scheme: "bearer", type: "http" }],
1630
+ url: "/catalog/product-variants",
1631
+ ...options,
1632
+ headers: {
1633
+ "Content-Type": "application/vnd.api+json",
1634
+ ...options.headers
1635
+ }
1636
+ });
1628
1637
  var postCrmRelationships = (options) => (options.client ?? client).post({
1629
1638
  security: [{ scheme: "bearer", type: "http" }],
1630
1639
  url: "/crm/relationships",
@@ -1644,6 +1653,15 @@ var getAgentVersionsById = (options) => (options.client ?? client).get({
1644
1653
  url: "/agent-versions/{id}",
1645
1654
  ...options
1646
1655
  });
1656
+ var postCatalogTaxonomyNodes = (options) => (options.client ?? client).post({
1657
+ security: [{ scheme: "bearer", type: "http" }],
1658
+ url: "/catalog/taxonomy-nodes",
1659
+ ...options,
1660
+ headers: {
1661
+ "Content-Type": "application/vnd.api+json",
1662
+ ...options.headers
1663
+ }
1664
+ });
1647
1665
  var deleteCrmRelationshipsById = (options) => (options.client ?? client).delete({
1648
1666
  security: [{ scheme: "bearer", type: "http" }],
1649
1667
  url: "/crm/relationships/{id}",
@@ -1678,6 +1696,11 @@ var getEmailMarketingSequencesWorkspaceByWorkspaceId = (options) => (options.cli
1678
1696
  url: "/email-marketing/sequences/workspace/{workspace_id}",
1679
1697
  ...options
1680
1698
  });
1699
+ var getCatalogTaxonomyNodesTaxonomyByTaxonomyId = (options) => (options.client ?? client).get({
1700
+ security: [{ scheme: "bearer", type: "http" }],
1701
+ url: "/catalog/taxonomy-nodes/taxonomy/{taxonomy_id}",
1702
+ ...options
1703
+ });
1681
1704
  var patchApiKeysByIdRotate = (options) => (options.client ?? client).patch({
1682
1705
  security: [{ scheme: "bearer", type: "http" }],
1683
1706
  url: "/api-keys/{id}/rotate",
@@ -1781,6 +1804,11 @@ var postUsersAuthResetPasswordRequest = (options) => (options.client ?? client).
1781
1804
  ...options.headers
1782
1805
  }
1783
1806
  });
1807
+ var getSupportTagsWorkspaceByWorkspaceId = (options) => (options.client ?? client).get({
1808
+ security: [{ scheme: "bearer", type: "http" }],
1809
+ url: "/support/tags/workspace/{workspace_id}",
1810
+ ...options
1811
+ });
1784
1812
  var getSearchIndexes = (options) => (options.client ?? client).get({
1785
1813
  security: [{ scheme: "bearer", type: "http" }],
1786
1814
  url: "/search/indexes",
@@ -1884,6 +1912,30 @@ var postConnectorsFullscriptSessionGrant = (options) => (options.client ?? clien
1884
1912
  ...options.headers
1885
1913
  }
1886
1914
  });
1915
+ var deleteCatalogTaxonomyNodesById = (options) => (options.client ?? client).delete({
1916
+ security: [{ scheme: "bearer", type: "http" }],
1917
+ url: "/catalog/taxonomy-nodes/{id}",
1918
+ ...options
1919
+ });
1920
+ var getCatalogTaxonomyNodesById = (options) => (options.client ?? client).get({
1921
+ security: [{ scheme: "bearer", type: "http" }],
1922
+ url: "/catalog/taxonomy-nodes/{id}",
1923
+ ...options
1924
+ });
1925
+ var patchCatalogTaxonomyNodesById = (options) => (options.client ?? client).patch({
1926
+ security: [{ scheme: "bearer", type: "http" }],
1927
+ url: "/catalog/taxonomy-nodes/{id}",
1928
+ ...options,
1929
+ headers: {
1930
+ "Content-Type": "application/vnd.api+json",
1931
+ ...options.headers
1932
+ }
1933
+ });
1934
+ var getCatalogTaxonomiesApplicationByApplicationId = (options) => (options.client ?? client).get({
1935
+ security: [{ scheme: "bearer", type: "http" }],
1936
+ url: "/catalog/taxonomies/application/{application_id}",
1937
+ ...options
1938
+ });
1887
1939
  var postEmailMarketingCampaignsByIdSend = (options) => (options.client ?? client).post({
1888
1940
  security: [{ scheme: "bearer", type: "http" }],
1889
1941
  url: "/email-marketing/campaigns/{id}/send",
@@ -2228,6 +2280,25 @@ var getSearchSuggest = (options) => (options.client ?? client).get({
2228
2280
  url: "/search/suggest",
2229
2281
  ...options
2230
2282
  });
2283
+ var deleteCatalogTaxonomiesById = (options) => (options.client ?? client).delete({
2284
+ security: [{ scheme: "bearer", type: "http" }],
2285
+ url: "/catalog/taxonomies/{id}",
2286
+ ...options
2287
+ });
2288
+ var getCatalogTaxonomiesById = (options) => (options.client ?? client).get({
2289
+ security: [{ scheme: "bearer", type: "http" }],
2290
+ url: "/catalog/taxonomies/{id}",
2291
+ ...options
2292
+ });
2293
+ var patchCatalogTaxonomiesById = (options) => (options.client ?? client).patch({
2294
+ security: [{ scheme: "bearer", type: "http" }],
2295
+ url: "/catalog/taxonomies/{id}",
2296
+ ...options,
2297
+ headers: {
2298
+ "Content-Type": "application/vnd.api+json",
2299
+ ...options.headers
2300
+ }
2301
+ });
2231
2302
  var deleteCrmRelationshipTypesById = (options) => (options.client ?? client).delete({
2232
2303
  security: [{ scheme: "bearer", type: "http" }],
2233
2304
  url: "/crm/relationship-types/{id}",
@@ -2307,6 +2378,15 @@ var patchEmailMarketingGeneratedEmailsByIdApprove = (options) => (options.client
2307
2378
  ...options.headers
2308
2379
  }
2309
2380
  });
2381
+ var postSupportTickets = (options) => (options.client ?? client).post({
2382
+ security: [{ scheme: "bearer", type: "http" }],
2383
+ url: "/support/tickets",
2384
+ ...options,
2385
+ headers: {
2386
+ "Content-Type": "application/vnd.api+json",
2387
+ ...options.headers
2388
+ }
2389
+ });
2310
2390
  var getCreditPackagesById = (options) => (options.client ?? client).get({
2311
2391
  security: [{ scheme: "bearer", type: "http" }],
2312
2392
  url: "/credit-packages/{id}",
@@ -2420,6 +2500,15 @@ var postTenantsByIdCredit = (options) => (options.client ?? client).post({
2420
2500
  ...options.headers
2421
2501
  }
2422
2502
  });
2503
+ var postCatalogProducts = (options) => (options.client ?? client).post({
2504
+ security: [{ scheme: "bearer", type: "http" }],
2505
+ url: "/catalog/products",
2506
+ ...options,
2507
+ headers: {
2508
+ "Content-Type": "application/vnd.api+json",
2509
+ ...options.headers
2510
+ }
2511
+ });
2423
2512
  var patchSchedulingBookingsSchedulingBookingsByIdCancel = (options) => (options.client ?? client).patch({
2424
2513
  security: [{ scheme: "bearer", type: "http" }],
2425
2514
  url: "/scheduling/bookings/scheduling/bookings/{id}/cancel",
@@ -2495,6 +2584,11 @@ var patchExtractionDocumentsByIdFinishUpload = (options) => (options.client ?? c
2495
2584
  ...options.headers
2496
2585
  }
2497
2586
  });
2587
+ var getSupportTicketMessagesTicketByTicketId = (options) => (options.client ?? client).get({
2588
+ security: [{ scheme: "bearer", type: "http" }],
2589
+ url: "/support/ticket-messages/ticket/{ticket_id}",
2590
+ ...options
2591
+ });
2498
2592
  var deleteCrawlerJobsById = (options) => (options.client ?? client).delete({
2499
2593
  security: [{ scheme: "bearer", type: "http" }],
2500
2594
  url: "/crawler/jobs/{id}",
@@ -2520,6 +2614,11 @@ var getSearch = (options) => (options.client ?? client).get({
2520
2614
  url: "/search",
2521
2615
  ...options
2522
2616
  });
2617
+ var getCatalogProductsWorkspaceByWorkspaceId = (options) => (options.client ?? client).get({
2618
+ security: [{ scheme: "bearer", type: "http" }],
2619
+ url: "/catalog/products/workspace/{workspace_id}",
2620
+ ...options
2621
+ });
2523
2622
  var getVoiceSessionsById = (options) => (options.client ?? client).get({
2524
2623
  security: [{ scheme: "bearer", type: "http" }],
2525
2624
  url: "/voice/sessions/{id}",
@@ -2651,6 +2750,11 @@ var patchThreadsById = (options) => (options.client ?? client).patch({
2651
2750
  ...options.headers
2652
2751
  }
2653
2752
  });
2753
+ var getSupportTicketsWorkspaceByWorkspaceId = (options) => (options.client ?? client).get({
2754
+ security: [{ scheme: "bearer", type: "http" }],
2755
+ url: "/support/tickets/workspace/{workspace_id}",
2756
+ ...options
2757
+ });
2654
2758
  var deleteNotificationPreferencesById = (options) => (options.client ?? client).delete({
2655
2759
  security: [{ scheme: "bearer", type: "http" }],
2656
2760
  url: "/notification-preferences/{id}",
@@ -3153,6 +3257,15 @@ var getTransactions = (options) => (options.client ?? client).get({
3153
3257
  url: "/transactions",
3154
3258
  ...options
3155
3259
  });
3260
+ var postCatalogTaxonomies = (options) => (options.client ?? client).post({
3261
+ security: [{ scheme: "bearer", type: "http" }],
3262
+ url: "/catalog/taxonomies",
3263
+ ...options,
3264
+ headers: {
3265
+ "Content-Type": "application/vnd.api+json",
3266
+ ...options.headers
3267
+ }
3268
+ });
3156
3269
  var postConnectorsOauthInitiate = (options) => (options.client ?? client).post({
3157
3270
  security: [{ scheme: "bearer", type: "http" }],
3158
3271
  url: "/connectors/oauth/initiate",
@@ -3171,6 +3284,25 @@ var postSearchSavedByIdRun = (options) => (options.client ?? client).post({
3171
3284
  ...options.headers
3172
3285
  }
3173
3286
  });
3287
+ var deleteCatalogProductsById = (options) => (options.client ?? client).delete({
3288
+ security: [{ scheme: "bearer", type: "http" }],
3289
+ url: "/catalog/products/{id}",
3290
+ ...options
3291
+ });
3292
+ var getCatalogProductsById = (options) => (options.client ?? client).get({
3293
+ security: [{ scheme: "bearer", type: "http" }],
3294
+ url: "/catalog/products/{id}",
3295
+ ...options
3296
+ });
3297
+ var patchCatalogProductsById = (options) => (options.client ?? client).patch({
3298
+ security: [{ scheme: "bearer", type: "http" }],
3299
+ url: "/catalog/products/{id}",
3300
+ ...options,
3301
+ headers: {
3302
+ "Content-Type": "application/vnd.api+json",
3303
+ ...options.headers
3304
+ }
3305
+ });
3174
3306
  var postWebhookConfigsBulkEnable = (options) => (options.client ?? client).post({
3175
3307
  security: [{ scheme: "bearer", type: "http" }],
3176
3308
  url: "/webhook-configs/bulk-enable",
@@ -3189,6 +3321,25 @@ var postWebhookConfigsByIdReplay = (options) => (options.client ?? client).post(
3189
3321
  ...options.headers
3190
3322
  }
3191
3323
  });
3324
+ var deleteCatalogProductVariantsById = (options) => (options.client ?? client).delete({
3325
+ security: [{ scheme: "bearer", type: "http" }],
3326
+ url: "/catalog/product-variants/{id}",
3327
+ ...options
3328
+ });
3329
+ var getCatalogProductVariantsById = (options) => (options.client ?? client).get({
3330
+ security: [{ scheme: "bearer", type: "http" }],
3331
+ url: "/catalog/product-variants/{id}",
3332
+ ...options
3333
+ });
3334
+ var patchCatalogProductVariantsById = (options) => (options.client ?? client).patch({
3335
+ security: [{ scheme: "bearer", type: "http" }],
3336
+ url: "/catalog/product-variants/{id}",
3337
+ ...options,
3338
+ headers: {
3339
+ "Content-Type": "application/vnd.api+json",
3340
+ ...options.headers
3341
+ }
3342
+ });
3192
3343
  var postWebhookDeliveriesBulkRetry = (options) => (options.client ?? client).post({
3193
3344
  security: [{ scheme: "bearer", type: "http" }],
3194
3345
  url: "/webhook-deliveries/bulk-retry",
@@ -3572,6 +3723,15 @@ var postWatcherEvents = (options) => (options.client ?? client).post({
3572
3723
  ...options.headers
3573
3724
  }
3574
3725
  });
3726
+ var postSupportTicketMessages = (options) => (options.client ?? client).post({
3727
+ security: [{ scheme: "bearer", type: "http" }],
3728
+ url: "/support/ticket-messages",
3729
+ ...options,
3730
+ headers: {
3731
+ "Content-Type": "application/vnd.api+json",
3732
+ ...options.headers
3733
+ }
3734
+ });
3575
3735
  var postConnectorsOauthCallback = (options) => (options.client ?? client).post({
3576
3736
  security: [{ scheme: "bearer", type: "http" }],
3577
3737
  url: "/connectors/oauth/callback",
@@ -3581,6 +3741,15 @@ var postConnectorsOauthCallback = (options) => (options.client ?? client).post({
3581
3741
  ...options.headers
3582
3742
  }
3583
3743
  });
3744
+ var postSupportTags = (options) => (options.client ?? client).post({
3745
+ security: [{ scheme: "bearer", type: "http" }],
3746
+ url: "/support/tags",
3747
+ ...options,
3748
+ headers: {
3749
+ "Content-Type": "application/vnd.api+json",
3750
+ ...options.headers
3751
+ }
3752
+ });
3584
3753
  var postAgentVersionsByIdSetSystemFields = (options) => (options.client ?? client).post({
3585
3754
  security: [{ scheme: "bearer", type: "http" }],
3586
3755
  url: "/agent-versions/{id}/set-system-fields",
@@ -3632,6 +3801,11 @@ var postApiKeys = (options) => (options.client ?? client).post({
3632
3801
  ...options.headers
3633
3802
  }
3634
3803
  });
3804
+ var deleteSupportTagsById = (options) => (options.client ?? client).delete({
3805
+ security: [{ scheme: "bearer", type: "http" }],
3806
+ url: "/support/tags/{id}",
3807
+ ...options
3808
+ });
3635
3809
  var postExtractionDocumentsBulkReprocess = (options) => (options.client ?? client).post({
3636
3810
  security: [{ scheme: "bearer", type: "http" }],
3637
3811
  url: "/extraction/documents/bulk-reprocess",
@@ -3712,6 +3886,15 @@ var getApplicationsByApplicationIdEmailTemplatesBySlug = (options) => (options.c
3712
3886
  url: "/applications/{application_id}/email-templates/{slug}",
3713
3887
  ...options
3714
3888
  });
3889
+ var postSupportTicketRatings = (options) => (options.client ?? client).post({
3890
+ security: [{ scheme: "bearer", type: "http" }],
3891
+ url: "/support/ticket-ratings",
3892
+ ...options,
3893
+ headers: {
3894
+ "Content-Type": "application/vnd.api+json",
3895
+ ...options.headers
3896
+ }
3897
+ });
3715
3898
  var getConnectors = (options) => (options.client ?? client).get({
3716
3899
  security: [{ scheme: "bearer", type: "http" }],
3717
3900
  url: "/connectors",
@@ -3802,11 +3985,35 @@ var postCrmPipelineStages = (options) => (options.client ?? client).post({
3802
3985
  ...options.headers
3803
3986
  }
3804
3987
  });
3988
+ var getCatalogProductVariantsProductByProductId = (options) => (options.client ?? client).get({
3989
+ security: [{ scheme: "bearer", type: "http" }],
3990
+ url: "/catalog/product-variants/product/{product_id}",
3991
+ ...options
3992
+ });
3805
3993
  var getUsers = (options) => (options.client ?? client).get({
3806
3994
  security: [{ scheme: "bearer", type: "http" }],
3807
3995
  url: "/users",
3808
3996
  ...options
3809
3997
  });
3998
+ var deleteSupportTicketsById = (options) => (options.client ?? client).delete({
3999
+ security: [{ scheme: "bearer", type: "http" }],
4000
+ url: "/support/tickets/{id}",
4001
+ ...options
4002
+ });
4003
+ var getSupportTicketsById = (options) => (options.client ?? client).get({
4004
+ security: [{ scheme: "bearer", type: "http" }],
4005
+ url: "/support/tickets/{id}",
4006
+ ...options
4007
+ });
4008
+ var patchSupportTicketsById = (options) => (options.client ?? client).patch({
4009
+ security: [{ scheme: "bearer", type: "http" }],
4010
+ url: "/support/tickets/{id}",
4011
+ ...options,
4012
+ headers: {
4013
+ "Content-Type": "application/vnd.api+json",
4014
+ ...options.headers
4015
+ }
4016
+ });
3810
4017
  var postCrmExports = (options) => (options.client ?? client).post({
3811
4018
  security: [{ scheme: "bearer", type: "http" }],
3812
4019
  url: "/crm/exports",
@@ -4187,12 +4394,15 @@ function createAiNamespace(rb) {
4187
4394
  );
4188
4395
  },
4189
4396
  /** Send a message to an AI conversation (non-streaming) */
4190
- send: async (_conversationId, body, options) => {
4397
+ send: async (conversationId, body, options) => {
4191
4398
  return rb.execute(
4192
4399
  postAiMessages,
4193
4400
  {
4194
4401
  body: {
4195
- data: { type: "message", attributes: body }
4402
+ data: {
4403
+ type: "message",
4404
+ attributes: { ...body, conversation_id: conversationId }
4405
+ }
4196
4406
  }
4197
4407
  },
4198
4408
  options
@@ -4343,81 +4553,225 @@ function createBillingNamespace(rb) {
4343
4553
  }
4344
4554
 
4345
4555
  // src/namespaces/catalog.ts
4346
- function createCatalogNamespace(_rb) {
4556
+ function createCatalogNamespace(rb) {
4347
4557
  return {
4348
4558
  /**
4349
4559
  * Products — product catalog management
4350
4560
  */
4351
4561
  products: {
4352
- /** List products with pagination */
4353
- list: async (_options) => {
4354
- throw new Error("Product list not yet implemented in SDK");
4562
+ /** List products for a workspace */
4563
+ list: async (workspaceId, options) => {
4564
+ return rb.execute(
4565
+ getCatalogProductsWorkspaceByWorkspaceId,
4566
+ {
4567
+ path: { workspace_id: workspaceId },
4568
+ ...buildPageQuery(options?.page, options?.pageSize)
4569
+ },
4570
+ options
4571
+ );
4355
4572
  },
4356
4573
  /** Get a product by ID */
4357
- get: async (_id, _options) => {
4358
- throw new Error("Product get not yet implemented in SDK");
4574
+ get: async (id, options) => {
4575
+ return rb.execute(
4576
+ getCatalogProductsById,
4577
+ { path: { id } },
4578
+ options
4579
+ );
4359
4580
  },
4360
4581
  /** Create a new product */
4361
- create: async (_attributes, _options) => {
4362
- throw new Error("Product create not yet implemented in SDK");
4582
+ create: async (attributes, options) => {
4583
+ return rb.execute(
4584
+ postCatalogProducts,
4585
+ {
4586
+ body: {
4587
+ data: { type: "catalog_product", attributes }
4588
+ }
4589
+ },
4590
+ options
4591
+ );
4363
4592
  },
4364
4593
  /** Update a product */
4365
- update: async (_id, _attributes, _options) => {
4366
- throw new Error("Product update not yet implemented in SDK");
4594
+ update: async (id, attributes, options) => {
4595
+ return rb.execute(
4596
+ patchCatalogProductsById,
4597
+ {
4598
+ path: { id },
4599
+ body: {
4600
+ data: { type: "catalog_product", id, attributes }
4601
+ }
4602
+ },
4603
+ options
4604
+ );
4605
+ },
4606
+ /** Delete a product */
4607
+ delete: async (id, options) => {
4608
+ return rb.executeDelete(
4609
+ deleteCatalogProductsById,
4610
+ { path: { id } },
4611
+ options
4612
+ );
4367
4613
  }
4368
4614
  },
4369
4615
  /**
4370
4616
  * Variants — product variants (SKUs)
4371
4617
  */
4372
4618
  variants: {
4619
+ /** Get a variant by ID */
4620
+ get: async (id, options) => {
4621
+ return rb.execute(
4622
+ getCatalogProductVariantsById,
4623
+ { path: { id } },
4624
+ options
4625
+ );
4626
+ },
4373
4627
  /** List variants for a product */
4374
- listByProduct: async (_productId, _options) => {
4375
- throw new Error("Variant list not yet implemented in SDK");
4628
+ listByProduct: async (productId, options) => {
4629
+ return rb.execute(
4630
+ getCatalogProductVariantsProductByProductId,
4631
+ { path: { product_id: productId } },
4632
+ options
4633
+ );
4634
+ },
4635
+ /** Create a product variant */
4636
+ create: async (attributes, options) => {
4637
+ return rb.execute(
4638
+ postCatalogProductVariants,
4639
+ {
4640
+ body: {
4641
+ data: { type: "catalog_product_variant", attributes }
4642
+ }
4643
+ },
4644
+ options
4645
+ );
4646
+ },
4647
+ /** Update a product variant */
4648
+ update: async (id, attributes, options) => {
4649
+ return rb.execute(
4650
+ patchCatalogProductVariantsById,
4651
+ {
4652
+ path: { id },
4653
+ body: {
4654
+ data: { type: "catalog_product_variant", id, attributes }
4655
+ }
4656
+ },
4657
+ options
4658
+ );
4659
+ },
4660
+ /** Delete a product variant */
4661
+ delete: async (id, options) => {
4662
+ return rb.executeDelete(
4663
+ deleteCatalogProductVariantsById,
4664
+ { path: { id } },
4665
+ options
4666
+ );
4376
4667
  }
4377
4668
  },
4378
4669
  /**
4379
- * Taxonomy — product categories and classification
4670
+ * Taxonomies — product classification trees
4380
4671
  */
4381
4672
  taxonomies: {
4382
- /** List taxonomies */
4383
- list: async (_options) => {
4384
- throw new Error("Taxonomy list not yet implemented in SDK");
4673
+ /** List taxonomies for an application */
4674
+ listByApplication: async (applicationId, options) => {
4675
+ return rb.execute(
4676
+ getCatalogTaxonomiesApplicationByApplicationId,
4677
+ { path: { application_id: applicationId } },
4678
+ options
4679
+ );
4385
4680
  },
4386
- /** Get taxonomy nodes */
4387
- getNodes: async (_taxonomyId, _options) => {
4388
- throw new Error("Taxonomy nodes not yet implemented in SDK");
4389
- }
4390
- }
4391
- };
4392
- }
4393
-
4394
- // src/namespaces/channels.ts
4395
- function createChannelsNamespace(_rb) {
4396
- return {
4397
- /**
4398
- * Channel Config — configuration for messaging channels
4399
- */
4400
- configs: {
4401
- /** List channel configurations */
4402
- list: async (_options) => {
4403
- throw new Error("Channel configs list not yet implemented in SDK");
4681
+ /** Get a taxonomy by ID */
4682
+ get: async (id, options) => {
4683
+ return rb.execute(
4684
+ getCatalogTaxonomiesById,
4685
+ { path: { id } },
4686
+ options
4687
+ );
4688
+ },
4689
+ /** Create a taxonomy */
4690
+ create: async (attributes, options) => {
4691
+ return rb.execute(
4692
+ postCatalogTaxonomies,
4693
+ {
4694
+ body: {
4695
+ data: { type: "catalog_taxonomy", attributes }
4696
+ }
4697
+ },
4698
+ options
4699
+ );
4700
+ },
4701
+ /** Update a taxonomy */
4702
+ update: async (id, attributes, options) => {
4703
+ return rb.execute(
4704
+ patchCatalogTaxonomiesById,
4705
+ {
4706
+ path: { id },
4707
+ body: {
4708
+ data: { type: "catalog_taxonomy", id, attributes }
4709
+ }
4710
+ },
4711
+ options
4712
+ );
4404
4713
  },
4405
- /** Get a channel config by ID */
4406
- get: async (_id, _options) => {
4407
- throw new Error("Channel config get not yet implemented in SDK");
4714
+ /** Delete a taxonomy */
4715
+ delete: async (id, options) => {
4716
+ return rb.executeDelete(
4717
+ deleteCatalogTaxonomiesById,
4718
+ { path: { id } },
4719
+ options
4720
+ );
4408
4721
  }
4409
4722
  },
4410
4723
  /**
4411
- * Messagesinbound and outbound message handling
4724
+ * Taxonomy nodes nodes within a taxonomy tree
4412
4725
  */
4413
- messages: {
4414
- /** Send a message through a channel */
4415
- send: async (_attributes, _options) => {
4416
- throw new Error("Message send not yet implemented in SDK");
4726
+ taxonomyNodes: {
4727
+ /** List nodes for a taxonomy */
4728
+ listByTaxonomy: async (taxonomyId, options) => {
4729
+ return rb.execute(
4730
+ getCatalogTaxonomyNodesTaxonomyByTaxonomyId,
4731
+ { path: { taxonomy_id: taxonomyId } },
4732
+ options
4733
+ );
4734
+ },
4735
+ /** Get a taxonomy node by ID */
4736
+ get: async (id, options) => {
4737
+ return rb.execute(
4738
+ getCatalogTaxonomyNodesById,
4739
+ { path: { id } },
4740
+ options
4741
+ );
4742
+ },
4743
+ /** Create a taxonomy node */
4744
+ create: async (attributes, options) => {
4745
+ return rb.execute(
4746
+ postCatalogTaxonomyNodes,
4747
+ {
4748
+ body: {
4749
+ data: { type: "catalog_taxonomy_node", attributes }
4750
+ }
4751
+ },
4752
+ options
4753
+ );
4754
+ },
4755
+ /** Update a taxonomy node */
4756
+ update: async (id, attributes, options) => {
4757
+ return rb.execute(
4758
+ patchCatalogTaxonomyNodesById,
4759
+ {
4760
+ path: { id },
4761
+ body: {
4762
+ data: { type: "catalog_taxonomy_node", id, attributes }
4763
+ }
4764
+ },
4765
+ options
4766
+ );
4417
4767
  },
4418
- /** List inbound messages */
4419
- listInbound: async (_options) => {
4420
- throw new Error("Inbound messages list not yet implemented in SDK");
4768
+ /** Delete a taxonomy node */
4769
+ delete: async (id, options) => {
4770
+ return rb.executeDelete(
4771
+ deleteCatalogTaxonomyNodesById,
4772
+ { path: { id } },
4773
+ options
4774
+ );
4421
4775
  }
4422
4776
  }
4423
4777
  };
@@ -5091,12 +5445,6 @@ function createCrmNamespace(rb) {
5091
5445
  options
5092
5446
  );
5093
5447
  },
5094
- /** Update an activity (not available - activities are immutable after creation) */
5095
- update: async (_id, _attributes, _options) => {
5096
- throw new Error(
5097
- "Activity update not available - activities are immutable"
5098
- );
5099
- },
5100
5448
  /** Delete an activity (soft delete) */
5101
5449
  delete: async (id, options) => {
5102
5450
  return rb.executeDelete(
@@ -5458,54 +5806,6 @@ function createCrmNamespace(rb) {
5458
5806
  };
5459
5807
  }
5460
5808
 
5461
- // src/namespaces/dataStore.ts
5462
- function createDataStoreNamespace(_rb) {
5463
- return {
5464
- /**
5465
- * Records — key-value storage with versioning
5466
- */
5467
- records: {
5468
- /** Get a value by namespace and key */
5469
- get: async (_namespace, _key, _options) => {
5470
- throw new Error("Record get not yet implemented in SDK");
5471
- },
5472
- /** Set a value (creates or updates) */
5473
- set: async (_namespace, _key, _value, _options) => {
5474
- throw new Error("Record set not yet implemented in SDK");
5475
- },
5476
- /** Delete a value */
5477
- delete: async (_namespace, _key, _options) => {
5478
- throw new Error("Record delete not yet implemented in SDK");
5479
- },
5480
- /** List all keys in a namespace */
5481
- listKeys: async (_namespace, _options) => {
5482
- throw new Error("List keys not yet implemented in SDK");
5483
- },
5484
- /** List all records in a namespace */
5485
- list: async (_namespace, _options) => {
5486
- throw new Error("List records not yet implemented in SDK");
5487
- }
5488
- },
5489
- /**
5490
- * Namespaces — namespace policies and access control
5491
- */
5492
- namespaces: {
5493
- /** Get namespace policy */
5494
- getPolicy: async (_namespace, _options) => {
5495
- throw new Error("Namespace policy get not yet implemented in SDK");
5496
- },
5497
- /** Create namespace policy */
5498
- createPolicy: async (_attributes, _options) => {
5499
- throw new Error("Namespace policy create not yet implemented in SDK");
5500
- },
5501
- /** Get namespace statistics */
5502
- getStats: async (_namespace, _options) => {
5503
- throw new Error("Namespace stats not yet implemented in SDK");
5504
- }
5505
- }
5506
- };
5507
- }
5508
-
5509
5809
  // src/namespaces/emailMarketing.ts
5510
5810
  function createEmailMarketingNamespace(rb) {
5511
5811
  return {
@@ -5729,40 +6029,131 @@ function createEmailMarketingNamespace(rb) {
5729
6029
  }
5730
6030
 
5731
6031
  // src/namespaces/support.ts
5732
- function createSupportNamespace(_rb) {
6032
+ function createSupportNamespace(rb) {
5733
6033
  return {
5734
6034
  /**
5735
6035
  * Tickets — customer support tickets
5736
6036
  */
5737
6037
  tickets: {
5738
- /** List tickets with pagination */
5739
- list: async (_options) => {
5740
- throw new Error("Tickets list not yet implemented in SDK");
6038
+ /** List tickets for a workspace */
6039
+ list: async (workspaceId, options) => {
6040
+ return rb.execute(
6041
+ getSupportTicketsWorkspaceByWorkspaceId,
6042
+ {
6043
+ path: { workspace_id: workspaceId },
6044
+ ...buildPageQuery(options?.page, options?.pageSize)
6045
+ },
6046
+ options
6047
+ );
5741
6048
  },
5742
6049
  /** Get a ticket by ID */
5743
- get: async (_id, _options) => {
5744
- throw new Error("Ticket get not yet implemented in SDK");
6050
+ get: async (id, options) => {
6051
+ return rb.execute(
6052
+ getSupportTicketsById,
6053
+ { path: { id } },
6054
+ options
6055
+ );
5745
6056
  },
5746
6057
  /** Create a new ticket */
5747
- create: async (_attributes, _options) => {
5748
- throw new Error("Ticket create not yet implemented in SDK");
6058
+ create: async (attributes, options) => {
6059
+ return rb.execute(
6060
+ postSupportTickets,
6061
+ {
6062
+ body: {
6063
+ data: { type: "support_ticket", attributes }
6064
+ }
6065
+ },
6066
+ options
6067
+ );
5749
6068
  },
5750
6069
  /** Update a ticket */
5751
- update: async (_id, _attributes, _options) => {
5752
- throw new Error("Ticket update not yet implemented in SDK");
6070
+ update: async (id, attributes, options) => {
6071
+ return rb.execute(
6072
+ patchSupportTicketsById,
6073
+ {
6074
+ path: { id },
6075
+ body: {
6076
+ data: { type: "support_ticket", id, attributes }
6077
+ }
6078
+ },
6079
+ options
6080
+ );
6081
+ },
6082
+ /** Delete a ticket */
6083
+ delete: async (id, options) => {
6084
+ return rb.executeDelete(
6085
+ deleteSupportTicketsById,
6086
+ { path: { id } },
6087
+ options
6088
+ );
5753
6089
  },
5754
6090
  /** Add a message to a ticket */
5755
- addMessage: async (_ticketId, _attributes, _options) => {
5756
- throw new Error("Ticket add message not yet implemented in SDK");
6091
+ addMessage: async (ticketId, attributes, options) => {
6092
+ return rb.execute(
6093
+ postSupportTicketMessages,
6094
+ {
6095
+ body: {
6096
+ data: {
6097
+ type: "support_ticket_message",
6098
+ attributes: { ...attributes, ticket_id: ticketId }
6099
+ }
6100
+ }
6101
+ },
6102
+ options
6103
+ );
6104
+ },
6105
+ /** List messages for a ticket */
6106
+ listMessages: async (ticketId, options) => {
6107
+ return rb.execute(
6108
+ getSupportTicketMessagesTicketByTicketId,
6109
+ { path: { ticket_id: ticketId } },
6110
+ options
6111
+ );
6112
+ },
6113
+ /** Rate a ticket (CSAT) */
6114
+ rate: async (attributes, options) => {
6115
+ return rb.execute(
6116
+ postSupportTicketRatings,
6117
+ {
6118
+ body: {
6119
+ data: { type: "support_ticket_rating", attributes }
6120
+ }
6121
+ },
6122
+ options
6123
+ );
5757
6124
  }
5758
6125
  },
5759
6126
  /**
5760
- * Queues — ticket routing containers
6127
+ * Tags — ticket labels for categorization
5761
6128
  */
5762
- queues: {
5763
- /** List queues */
5764
- list: async (_options) => {
5765
- throw new Error("Queues list not yet implemented in SDK");
6129
+ tags: {
6130
+ /** List tags for a workspace */
6131
+ list: async (workspaceId, options) => {
6132
+ return rb.execute(
6133
+ getSupportTagsWorkspaceByWorkspaceId,
6134
+ { path: { workspace_id: workspaceId } },
6135
+ options
6136
+ );
6137
+ },
6138
+ /** Create a tag */
6139
+ create: async (attributes, options) => {
6140
+ return rb.execute(
6141
+ postSupportTags,
6142
+ {
6143
+ body: {
6144
+ data: { type: "support_tag", attributes }
6145
+ }
6146
+ },
6147
+ options
6148
+ );
6149
+ },
6150
+ /** Delete a tag */
6151
+ delete: async (id, options) => {
6152
+ return rb.executeDelete(
6153
+ deleteSupportTagsById,
6154
+ { path: { id } },
6155
+ options
6156
+ );
5766
6157
  }
5767
6158
  }
5768
6159
  };
@@ -8468,12 +8859,10 @@ var GptClient = class extends BaseClient {
8468
8859
  this.ai = createAiNamespace(rb);
8469
8860
  this.billing = createBillingNamespace(rb);
8470
8861
  this.catalog = createCatalogNamespace(rb);
8471
- this.channels = createChannelsNamespace(rb);
8472
8862
  this.communication = createCommunicationNamespace(rb);
8473
8863
  this.connectors = createConnectorsNamespace(rb);
8474
8864
  this.crawler = createCrawlerNamespace(rb);
8475
8865
  this.crm = createCrmNamespace(rb);
8476
- this.dataStore = createDataStoreNamespace(rb);
8477
8866
  this.emailMarketing = createEmailMarketingNamespace(rb);
8478
8867
  this.support = createSupportNamespace(rb);
8479
8868
  this.extraction = createExtractionNamespace(rb);