@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.mjs CHANGED
@@ -1224,7 +1224,7 @@ function buildUserAgent(sdkVersion, appInfo) {
1224
1224
  }
1225
1225
 
1226
1226
  // src/version.ts
1227
- var SDK_VERSION = "0.3.0";
1227
+ var SDK_VERSION = "0.3.1";
1228
1228
  var DEFAULT_API_VERSION = "2026-02-25";
1229
1229
 
1230
1230
  // src/base-client.ts
@@ -1564,6 +1564,15 @@ var patchExtractionDocumentsByIdCancel = (options) => (options.client ?? client)
1564
1564
  ...options.headers
1565
1565
  }
1566
1566
  });
1567
+ var postCatalogProductVariants = (options) => (options.client ?? client).post({
1568
+ security: [{ scheme: "bearer", type: "http" }],
1569
+ url: "/catalog/product-variants",
1570
+ ...options,
1571
+ headers: {
1572
+ "Content-Type": "application/vnd.api+json",
1573
+ ...options.headers
1574
+ }
1575
+ });
1567
1576
  var postCrmRelationships = (options) => (options.client ?? client).post({
1568
1577
  security: [{ scheme: "bearer", type: "http" }],
1569
1578
  url: "/crm/relationships",
@@ -1583,6 +1592,15 @@ var getAgentVersionsById = (options) => (options.client ?? client).get({
1583
1592
  url: "/agent-versions/{id}",
1584
1593
  ...options
1585
1594
  });
1595
+ var postCatalogTaxonomyNodes = (options) => (options.client ?? client).post({
1596
+ security: [{ scheme: "bearer", type: "http" }],
1597
+ url: "/catalog/taxonomy-nodes",
1598
+ ...options,
1599
+ headers: {
1600
+ "Content-Type": "application/vnd.api+json",
1601
+ ...options.headers
1602
+ }
1603
+ });
1586
1604
  var deleteCrmRelationshipsById = (options) => (options.client ?? client).delete({
1587
1605
  security: [{ scheme: "bearer", type: "http" }],
1588
1606
  url: "/crm/relationships/{id}",
@@ -1617,6 +1635,11 @@ var getEmailMarketingSequencesWorkspaceByWorkspaceId = (options) => (options.cli
1617
1635
  url: "/email-marketing/sequences/workspace/{workspace_id}",
1618
1636
  ...options
1619
1637
  });
1638
+ var getCatalogTaxonomyNodesTaxonomyByTaxonomyId = (options) => (options.client ?? client).get({
1639
+ security: [{ scheme: "bearer", type: "http" }],
1640
+ url: "/catalog/taxonomy-nodes/taxonomy/{taxonomy_id}",
1641
+ ...options
1642
+ });
1620
1643
  var patchApiKeysByIdRotate = (options) => (options.client ?? client).patch({
1621
1644
  security: [{ scheme: "bearer", type: "http" }],
1622
1645
  url: "/api-keys/{id}/rotate",
@@ -1720,6 +1743,11 @@ var postUsersAuthResetPasswordRequest = (options) => (options.client ?? client).
1720
1743
  ...options.headers
1721
1744
  }
1722
1745
  });
1746
+ var getSupportTagsWorkspaceByWorkspaceId = (options) => (options.client ?? client).get({
1747
+ security: [{ scheme: "bearer", type: "http" }],
1748
+ url: "/support/tags/workspace/{workspace_id}",
1749
+ ...options
1750
+ });
1723
1751
  var getSearchIndexes = (options) => (options.client ?? client).get({
1724
1752
  security: [{ scheme: "bearer", type: "http" }],
1725
1753
  url: "/search/indexes",
@@ -1823,6 +1851,30 @@ var postConnectorsFullscriptSessionGrant = (options) => (options.client ?? clien
1823
1851
  ...options.headers
1824
1852
  }
1825
1853
  });
1854
+ var deleteCatalogTaxonomyNodesById = (options) => (options.client ?? client).delete({
1855
+ security: [{ scheme: "bearer", type: "http" }],
1856
+ url: "/catalog/taxonomy-nodes/{id}",
1857
+ ...options
1858
+ });
1859
+ var getCatalogTaxonomyNodesById = (options) => (options.client ?? client).get({
1860
+ security: [{ scheme: "bearer", type: "http" }],
1861
+ url: "/catalog/taxonomy-nodes/{id}",
1862
+ ...options
1863
+ });
1864
+ var patchCatalogTaxonomyNodesById = (options) => (options.client ?? client).patch({
1865
+ security: [{ scheme: "bearer", type: "http" }],
1866
+ url: "/catalog/taxonomy-nodes/{id}",
1867
+ ...options,
1868
+ headers: {
1869
+ "Content-Type": "application/vnd.api+json",
1870
+ ...options.headers
1871
+ }
1872
+ });
1873
+ var getCatalogTaxonomiesApplicationByApplicationId = (options) => (options.client ?? client).get({
1874
+ security: [{ scheme: "bearer", type: "http" }],
1875
+ url: "/catalog/taxonomies/application/{application_id}",
1876
+ ...options
1877
+ });
1826
1878
  var postEmailMarketingCampaignsByIdSend = (options) => (options.client ?? client).post({
1827
1879
  security: [{ scheme: "bearer", type: "http" }],
1828
1880
  url: "/email-marketing/campaigns/{id}/send",
@@ -2167,6 +2219,25 @@ var getSearchSuggest = (options) => (options.client ?? client).get({
2167
2219
  url: "/search/suggest",
2168
2220
  ...options
2169
2221
  });
2222
+ var deleteCatalogTaxonomiesById = (options) => (options.client ?? client).delete({
2223
+ security: [{ scheme: "bearer", type: "http" }],
2224
+ url: "/catalog/taxonomies/{id}",
2225
+ ...options
2226
+ });
2227
+ var getCatalogTaxonomiesById = (options) => (options.client ?? client).get({
2228
+ security: [{ scheme: "bearer", type: "http" }],
2229
+ url: "/catalog/taxonomies/{id}",
2230
+ ...options
2231
+ });
2232
+ var patchCatalogTaxonomiesById = (options) => (options.client ?? client).patch({
2233
+ security: [{ scheme: "bearer", type: "http" }],
2234
+ url: "/catalog/taxonomies/{id}",
2235
+ ...options,
2236
+ headers: {
2237
+ "Content-Type": "application/vnd.api+json",
2238
+ ...options.headers
2239
+ }
2240
+ });
2170
2241
  var deleteCrmRelationshipTypesById = (options) => (options.client ?? client).delete({
2171
2242
  security: [{ scheme: "bearer", type: "http" }],
2172
2243
  url: "/crm/relationship-types/{id}",
@@ -2246,6 +2317,15 @@ var patchEmailMarketingGeneratedEmailsByIdApprove = (options) => (options.client
2246
2317
  ...options.headers
2247
2318
  }
2248
2319
  });
2320
+ var postSupportTickets = (options) => (options.client ?? client).post({
2321
+ security: [{ scheme: "bearer", type: "http" }],
2322
+ url: "/support/tickets",
2323
+ ...options,
2324
+ headers: {
2325
+ "Content-Type": "application/vnd.api+json",
2326
+ ...options.headers
2327
+ }
2328
+ });
2249
2329
  var getCreditPackagesById = (options) => (options.client ?? client).get({
2250
2330
  security: [{ scheme: "bearer", type: "http" }],
2251
2331
  url: "/credit-packages/{id}",
@@ -2359,6 +2439,15 @@ var postTenantsByIdCredit = (options) => (options.client ?? client).post({
2359
2439
  ...options.headers
2360
2440
  }
2361
2441
  });
2442
+ var postCatalogProducts = (options) => (options.client ?? client).post({
2443
+ security: [{ scheme: "bearer", type: "http" }],
2444
+ url: "/catalog/products",
2445
+ ...options,
2446
+ headers: {
2447
+ "Content-Type": "application/vnd.api+json",
2448
+ ...options.headers
2449
+ }
2450
+ });
2362
2451
  var patchSchedulingBookingsSchedulingBookingsByIdCancel = (options) => (options.client ?? client).patch({
2363
2452
  security: [{ scheme: "bearer", type: "http" }],
2364
2453
  url: "/scheduling/bookings/scheduling/bookings/{id}/cancel",
@@ -2434,6 +2523,11 @@ var patchExtractionDocumentsByIdFinishUpload = (options) => (options.client ?? c
2434
2523
  ...options.headers
2435
2524
  }
2436
2525
  });
2526
+ var getSupportTicketMessagesTicketByTicketId = (options) => (options.client ?? client).get({
2527
+ security: [{ scheme: "bearer", type: "http" }],
2528
+ url: "/support/ticket-messages/ticket/{ticket_id}",
2529
+ ...options
2530
+ });
2437
2531
  var deleteCrawlerJobsById = (options) => (options.client ?? client).delete({
2438
2532
  security: [{ scheme: "bearer", type: "http" }],
2439
2533
  url: "/crawler/jobs/{id}",
@@ -2459,6 +2553,11 @@ var getSearch = (options) => (options.client ?? client).get({
2459
2553
  url: "/search",
2460
2554
  ...options
2461
2555
  });
2556
+ var getCatalogProductsWorkspaceByWorkspaceId = (options) => (options.client ?? client).get({
2557
+ security: [{ scheme: "bearer", type: "http" }],
2558
+ url: "/catalog/products/workspace/{workspace_id}",
2559
+ ...options
2560
+ });
2462
2561
  var getVoiceSessionsById = (options) => (options.client ?? client).get({
2463
2562
  security: [{ scheme: "bearer", type: "http" }],
2464
2563
  url: "/voice/sessions/{id}",
@@ -2590,6 +2689,11 @@ var patchThreadsById = (options) => (options.client ?? client).patch({
2590
2689
  ...options.headers
2591
2690
  }
2592
2691
  });
2692
+ var getSupportTicketsWorkspaceByWorkspaceId = (options) => (options.client ?? client).get({
2693
+ security: [{ scheme: "bearer", type: "http" }],
2694
+ url: "/support/tickets/workspace/{workspace_id}",
2695
+ ...options
2696
+ });
2593
2697
  var deleteNotificationPreferencesById = (options) => (options.client ?? client).delete({
2594
2698
  security: [{ scheme: "bearer", type: "http" }],
2595
2699
  url: "/notification-preferences/{id}",
@@ -3092,6 +3196,15 @@ var getTransactions = (options) => (options.client ?? client).get({
3092
3196
  url: "/transactions",
3093
3197
  ...options
3094
3198
  });
3199
+ var postCatalogTaxonomies = (options) => (options.client ?? client).post({
3200
+ security: [{ scheme: "bearer", type: "http" }],
3201
+ url: "/catalog/taxonomies",
3202
+ ...options,
3203
+ headers: {
3204
+ "Content-Type": "application/vnd.api+json",
3205
+ ...options.headers
3206
+ }
3207
+ });
3095
3208
  var postConnectorsOauthInitiate = (options) => (options.client ?? client).post({
3096
3209
  security: [{ scheme: "bearer", type: "http" }],
3097
3210
  url: "/connectors/oauth/initiate",
@@ -3110,6 +3223,25 @@ var postSearchSavedByIdRun = (options) => (options.client ?? client).post({
3110
3223
  ...options.headers
3111
3224
  }
3112
3225
  });
3226
+ var deleteCatalogProductsById = (options) => (options.client ?? client).delete({
3227
+ security: [{ scheme: "bearer", type: "http" }],
3228
+ url: "/catalog/products/{id}",
3229
+ ...options
3230
+ });
3231
+ var getCatalogProductsById = (options) => (options.client ?? client).get({
3232
+ security: [{ scheme: "bearer", type: "http" }],
3233
+ url: "/catalog/products/{id}",
3234
+ ...options
3235
+ });
3236
+ var patchCatalogProductsById = (options) => (options.client ?? client).patch({
3237
+ security: [{ scheme: "bearer", type: "http" }],
3238
+ url: "/catalog/products/{id}",
3239
+ ...options,
3240
+ headers: {
3241
+ "Content-Type": "application/vnd.api+json",
3242
+ ...options.headers
3243
+ }
3244
+ });
3113
3245
  var postWebhookConfigsBulkEnable = (options) => (options.client ?? client).post({
3114
3246
  security: [{ scheme: "bearer", type: "http" }],
3115
3247
  url: "/webhook-configs/bulk-enable",
@@ -3128,6 +3260,25 @@ var postWebhookConfigsByIdReplay = (options) => (options.client ?? client).post(
3128
3260
  ...options.headers
3129
3261
  }
3130
3262
  });
3263
+ var deleteCatalogProductVariantsById = (options) => (options.client ?? client).delete({
3264
+ security: [{ scheme: "bearer", type: "http" }],
3265
+ url: "/catalog/product-variants/{id}",
3266
+ ...options
3267
+ });
3268
+ var getCatalogProductVariantsById = (options) => (options.client ?? client).get({
3269
+ security: [{ scheme: "bearer", type: "http" }],
3270
+ url: "/catalog/product-variants/{id}",
3271
+ ...options
3272
+ });
3273
+ var patchCatalogProductVariantsById = (options) => (options.client ?? client).patch({
3274
+ security: [{ scheme: "bearer", type: "http" }],
3275
+ url: "/catalog/product-variants/{id}",
3276
+ ...options,
3277
+ headers: {
3278
+ "Content-Type": "application/vnd.api+json",
3279
+ ...options.headers
3280
+ }
3281
+ });
3131
3282
  var postWebhookDeliveriesBulkRetry = (options) => (options.client ?? client).post({
3132
3283
  security: [{ scheme: "bearer", type: "http" }],
3133
3284
  url: "/webhook-deliveries/bulk-retry",
@@ -3511,6 +3662,15 @@ var postWatcherEvents = (options) => (options.client ?? client).post({
3511
3662
  ...options.headers
3512
3663
  }
3513
3664
  });
3665
+ var postSupportTicketMessages = (options) => (options.client ?? client).post({
3666
+ security: [{ scheme: "bearer", type: "http" }],
3667
+ url: "/support/ticket-messages",
3668
+ ...options,
3669
+ headers: {
3670
+ "Content-Type": "application/vnd.api+json",
3671
+ ...options.headers
3672
+ }
3673
+ });
3514
3674
  var postConnectorsOauthCallback = (options) => (options.client ?? client).post({
3515
3675
  security: [{ scheme: "bearer", type: "http" }],
3516
3676
  url: "/connectors/oauth/callback",
@@ -3520,6 +3680,15 @@ var postConnectorsOauthCallback = (options) => (options.client ?? client).post({
3520
3680
  ...options.headers
3521
3681
  }
3522
3682
  });
3683
+ var postSupportTags = (options) => (options.client ?? client).post({
3684
+ security: [{ scheme: "bearer", type: "http" }],
3685
+ url: "/support/tags",
3686
+ ...options,
3687
+ headers: {
3688
+ "Content-Type": "application/vnd.api+json",
3689
+ ...options.headers
3690
+ }
3691
+ });
3523
3692
  var postAgentVersionsByIdSetSystemFields = (options) => (options.client ?? client).post({
3524
3693
  security: [{ scheme: "bearer", type: "http" }],
3525
3694
  url: "/agent-versions/{id}/set-system-fields",
@@ -3571,6 +3740,11 @@ var postApiKeys = (options) => (options.client ?? client).post({
3571
3740
  ...options.headers
3572
3741
  }
3573
3742
  });
3743
+ var deleteSupportTagsById = (options) => (options.client ?? client).delete({
3744
+ security: [{ scheme: "bearer", type: "http" }],
3745
+ url: "/support/tags/{id}",
3746
+ ...options
3747
+ });
3574
3748
  var postExtractionDocumentsBulkReprocess = (options) => (options.client ?? client).post({
3575
3749
  security: [{ scheme: "bearer", type: "http" }],
3576
3750
  url: "/extraction/documents/bulk-reprocess",
@@ -3651,6 +3825,15 @@ var getApplicationsByApplicationIdEmailTemplatesBySlug = (options) => (options.c
3651
3825
  url: "/applications/{application_id}/email-templates/{slug}",
3652
3826
  ...options
3653
3827
  });
3828
+ var postSupportTicketRatings = (options) => (options.client ?? client).post({
3829
+ security: [{ scheme: "bearer", type: "http" }],
3830
+ url: "/support/ticket-ratings",
3831
+ ...options,
3832
+ headers: {
3833
+ "Content-Type": "application/vnd.api+json",
3834
+ ...options.headers
3835
+ }
3836
+ });
3654
3837
  var getConnectors = (options) => (options.client ?? client).get({
3655
3838
  security: [{ scheme: "bearer", type: "http" }],
3656
3839
  url: "/connectors",
@@ -3741,11 +3924,35 @@ var postCrmPipelineStages = (options) => (options.client ?? client).post({
3741
3924
  ...options.headers
3742
3925
  }
3743
3926
  });
3927
+ var getCatalogProductVariantsProductByProductId = (options) => (options.client ?? client).get({
3928
+ security: [{ scheme: "bearer", type: "http" }],
3929
+ url: "/catalog/product-variants/product/{product_id}",
3930
+ ...options
3931
+ });
3744
3932
  var getUsers = (options) => (options.client ?? client).get({
3745
3933
  security: [{ scheme: "bearer", type: "http" }],
3746
3934
  url: "/users",
3747
3935
  ...options
3748
3936
  });
3937
+ var deleteSupportTicketsById = (options) => (options.client ?? client).delete({
3938
+ security: [{ scheme: "bearer", type: "http" }],
3939
+ url: "/support/tickets/{id}",
3940
+ ...options
3941
+ });
3942
+ var getSupportTicketsById = (options) => (options.client ?? client).get({
3943
+ security: [{ scheme: "bearer", type: "http" }],
3944
+ url: "/support/tickets/{id}",
3945
+ ...options
3946
+ });
3947
+ var patchSupportTicketsById = (options) => (options.client ?? client).patch({
3948
+ security: [{ scheme: "bearer", type: "http" }],
3949
+ url: "/support/tickets/{id}",
3950
+ ...options,
3951
+ headers: {
3952
+ "Content-Type": "application/vnd.api+json",
3953
+ ...options.headers
3954
+ }
3955
+ });
3749
3956
  var postCrmExports = (options) => (options.client ?? client).post({
3750
3957
  security: [{ scheme: "bearer", type: "http" }],
3751
3958
  url: "/crm/exports",
@@ -4126,12 +4333,15 @@ function createAiNamespace(rb) {
4126
4333
  );
4127
4334
  },
4128
4335
  /** Send a message to an AI conversation (non-streaming) */
4129
- send: async (_conversationId, body, options) => {
4336
+ send: async (conversationId, body, options) => {
4130
4337
  return rb.execute(
4131
4338
  postAiMessages,
4132
4339
  {
4133
4340
  body: {
4134
- data: { type: "message", attributes: body }
4341
+ data: {
4342
+ type: "message",
4343
+ attributes: { ...body, conversation_id: conversationId }
4344
+ }
4135
4345
  }
4136
4346
  },
4137
4347
  options
@@ -4282,81 +4492,225 @@ function createBillingNamespace(rb) {
4282
4492
  }
4283
4493
 
4284
4494
  // src/namespaces/catalog.ts
4285
- function createCatalogNamespace(_rb) {
4495
+ function createCatalogNamespace(rb) {
4286
4496
  return {
4287
4497
  /**
4288
4498
  * Products — product catalog management
4289
4499
  */
4290
4500
  products: {
4291
- /** List products with pagination */
4292
- list: async (_options) => {
4293
- throw new Error("Product list not yet implemented in SDK");
4501
+ /** List products for a workspace */
4502
+ list: async (workspaceId, options) => {
4503
+ return rb.execute(
4504
+ getCatalogProductsWorkspaceByWorkspaceId,
4505
+ {
4506
+ path: { workspace_id: workspaceId },
4507
+ ...buildPageQuery(options?.page, options?.pageSize)
4508
+ },
4509
+ options
4510
+ );
4294
4511
  },
4295
4512
  /** Get a product by ID */
4296
- get: async (_id, _options) => {
4297
- throw new Error("Product get not yet implemented in SDK");
4513
+ get: async (id, options) => {
4514
+ return rb.execute(
4515
+ getCatalogProductsById,
4516
+ { path: { id } },
4517
+ options
4518
+ );
4298
4519
  },
4299
4520
  /** Create a new product */
4300
- create: async (_attributes, _options) => {
4301
- throw new Error("Product create not yet implemented in SDK");
4521
+ create: async (attributes, options) => {
4522
+ return rb.execute(
4523
+ postCatalogProducts,
4524
+ {
4525
+ body: {
4526
+ data: { type: "catalog_product", attributes }
4527
+ }
4528
+ },
4529
+ options
4530
+ );
4302
4531
  },
4303
4532
  /** Update a product */
4304
- update: async (_id, _attributes, _options) => {
4305
- throw new Error("Product update not yet implemented in SDK");
4533
+ update: async (id, attributes, options) => {
4534
+ return rb.execute(
4535
+ patchCatalogProductsById,
4536
+ {
4537
+ path: { id },
4538
+ body: {
4539
+ data: { type: "catalog_product", id, attributes }
4540
+ }
4541
+ },
4542
+ options
4543
+ );
4544
+ },
4545
+ /** Delete a product */
4546
+ delete: async (id, options) => {
4547
+ return rb.executeDelete(
4548
+ deleteCatalogProductsById,
4549
+ { path: { id } },
4550
+ options
4551
+ );
4306
4552
  }
4307
4553
  },
4308
4554
  /**
4309
4555
  * Variants — product variants (SKUs)
4310
4556
  */
4311
4557
  variants: {
4558
+ /** Get a variant by ID */
4559
+ get: async (id, options) => {
4560
+ return rb.execute(
4561
+ getCatalogProductVariantsById,
4562
+ { path: { id } },
4563
+ options
4564
+ );
4565
+ },
4312
4566
  /** List variants for a product */
4313
- listByProduct: async (_productId, _options) => {
4314
- throw new Error("Variant list not yet implemented in SDK");
4567
+ listByProduct: async (productId, options) => {
4568
+ return rb.execute(
4569
+ getCatalogProductVariantsProductByProductId,
4570
+ { path: { product_id: productId } },
4571
+ options
4572
+ );
4573
+ },
4574
+ /** Create a product variant */
4575
+ create: async (attributes, options) => {
4576
+ return rb.execute(
4577
+ postCatalogProductVariants,
4578
+ {
4579
+ body: {
4580
+ data: { type: "catalog_product_variant", attributes }
4581
+ }
4582
+ },
4583
+ options
4584
+ );
4585
+ },
4586
+ /** Update a product variant */
4587
+ update: async (id, attributes, options) => {
4588
+ return rb.execute(
4589
+ patchCatalogProductVariantsById,
4590
+ {
4591
+ path: { id },
4592
+ body: {
4593
+ data: { type: "catalog_product_variant", id, attributes }
4594
+ }
4595
+ },
4596
+ options
4597
+ );
4598
+ },
4599
+ /** Delete a product variant */
4600
+ delete: async (id, options) => {
4601
+ return rb.executeDelete(
4602
+ deleteCatalogProductVariantsById,
4603
+ { path: { id } },
4604
+ options
4605
+ );
4315
4606
  }
4316
4607
  },
4317
4608
  /**
4318
- * Taxonomy — product categories and classification
4609
+ * Taxonomies — product classification trees
4319
4610
  */
4320
4611
  taxonomies: {
4321
- /** List taxonomies */
4322
- list: async (_options) => {
4323
- throw new Error("Taxonomy list not yet implemented in SDK");
4612
+ /** List taxonomies for an application */
4613
+ listByApplication: async (applicationId, options) => {
4614
+ return rb.execute(
4615
+ getCatalogTaxonomiesApplicationByApplicationId,
4616
+ { path: { application_id: applicationId } },
4617
+ options
4618
+ );
4324
4619
  },
4325
- /** Get taxonomy nodes */
4326
- getNodes: async (_taxonomyId, _options) => {
4327
- throw new Error("Taxonomy nodes not yet implemented in SDK");
4328
- }
4329
- }
4330
- };
4331
- }
4332
-
4333
- // src/namespaces/channels.ts
4334
- function createChannelsNamespace(_rb) {
4335
- return {
4336
- /**
4337
- * Channel Config — configuration for messaging channels
4338
- */
4339
- configs: {
4340
- /** List channel configurations */
4341
- list: async (_options) => {
4342
- throw new Error("Channel configs list not yet implemented in SDK");
4620
+ /** Get a taxonomy by ID */
4621
+ get: async (id, options) => {
4622
+ return rb.execute(
4623
+ getCatalogTaxonomiesById,
4624
+ { path: { id } },
4625
+ options
4626
+ );
4627
+ },
4628
+ /** Create a taxonomy */
4629
+ create: async (attributes, options) => {
4630
+ return rb.execute(
4631
+ postCatalogTaxonomies,
4632
+ {
4633
+ body: {
4634
+ data: { type: "catalog_taxonomy", attributes }
4635
+ }
4636
+ },
4637
+ options
4638
+ );
4639
+ },
4640
+ /** Update a taxonomy */
4641
+ update: async (id, attributes, options) => {
4642
+ return rb.execute(
4643
+ patchCatalogTaxonomiesById,
4644
+ {
4645
+ path: { id },
4646
+ body: {
4647
+ data: { type: "catalog_taxonomy", id, attributes }
4648
+ }
4649
+ },
4650
+ options
4651
+ );
4343
4652
  },
4344
- /** Get a channel config by ID */
4345
- get: async (_id, _options) => {
4346
- throw new Error("Channel config get not yet implemented in SDK");
4653
+ /** Delete a taxonomy */
4654
+ delete: async (id, options) => {
4655
+ return rb.executeDelete(
4656
+ deleteCatalogTaxonomiesById,
4657
+ { path: { id } },
4658
+ options
4659
+ );
4347
4660
  }
4348
4661
  },
4349
4662
  /**
4350
- * Messagesinbound and outbound message handling
4663
+ * Taxonomy nodes nodes within a taxonomy tree
4351
4664
  */
4352
- messages: {
4353
- /** Send a message through a channel */
4354
- send: async (_attributes, _options) => {
4355
- throw new Error("Message send not yet implemented in SDK");
4665
+ taxonomyNodes: {
4666
+ /** List nodes for a taxonomy */
4667
+ listByTaxonomy: async (taxonomyId, options) => {
4668
+ return rb.execute(
4669
+ getCatalogTaxonomyNodesTaxonomyByTaxonomyId,
4670
+ { path: { taxonomy_id: taxonomyId } },
4671
+ options
4672
+ );
4673
+ },
4674
+ /** Get a taxonomy node by ID */
4675
+ get: async (id, options) => {
4676
+ return rb.execute(
4677
+ getCatalogTaxonomyNodesById,
4678
+ { path: { id } },
4679
+ options
4680
+ );
4681
+ },
4682
+ /** Create a taxonomy node */
4683
+ create: async (attributes, options) => {
4684
+ return rb.execute(
4685
+ postCatalogTaxonomyNodes,
4686
+ {
4687
+ body: {
4688
+ data: { type: "catalog_taxonomy_node", attributes }
4689
+ }
4690
+ },
4691
+ options
4692
+ );
4693
+ },
4694
+ /** Update a taxonomy node */
4695
+ update: async (id, attributes, options) => {
4696
+ return rb.execute(
4697
+ patchCatalogTaxonomyNodesById,
4698
+ {
4699
+ path: { id },
4700
+ body: {
4701
+ data: { type: "catalog_taxonomy_node", id, attributes }
4702
+ }
4703
+ },
4704
+ options
4705
+ );
4356
4706
  },
4357
- /** List inbound messages */
4358
- listInbound: async (_options) => {
4359
- throw new Error("Inbound messages list not yet implemented in SDK");
4707
+ /** Delete a taxonomy node */
4708
+ delete: async (id, options) => {
4709
+ return rb.executeDelete(
4710
+ deleteCatalogTaxonomyNodesById,
4711
+ { path: { id } },
4712
+ options
4713
+ );
4360
4714
  }
4361
4715
  }
4362
4716
  };
@@ -5030,12 +5384,6 @@ function createCrmNamespace(rb) {
5030
5384
  options
5031
5385
  );
5032
5386
  },
5033
- /** Update an activity (not available - activities are immutable after creation) */
5034
- update: async (_id, _attributes, _options) => {
5035
- throw new Error(
5036
- "Activity update not available - activities are immutable"
5037
- );
5038
- },
5039
5387
  /** Delete an activity (soft delete) */
5040
5388
  delete: async (id, options) => {
5041
5389
  return rb.executeDelete(
@@ -5397,54 +5745,6 @@ function createCrmNamespace(rb) {
5397
5745
  };
5398
5746
  }
5399
5747
 
5400
- // src/namespaces/dataStore.ts
5401
- function createDataStoreNamespace(_rb) {
5402
- return {
5403
- /**
5404
- * Records — key-value storage with versioning
5405
- */
5406
- records: {
5407
- /** Get a value by namespace and key */
5408
- get: async (_namespace, _key, _options) => {
5409
- throw new Error("Record get not yet implemented in SDK");
5410
- },
5411
- /** Set a value (creates or updates) */
5412
- set: async (_namespace, _key, _value, _options) => {
5413
- throw new Error("Record set not yet implemented in SDK");
5414
- },
5415
- /** Delete a value */
5416
- delete: async (_namespace, _key, _options) => {
5417
- throw new Error("Record delete not yet implemented in SDK");
5418
- },
5419
- /** List all keys in a namespace */
5420
- listKeys: async (_namespace, _options) => {
5421
- throw new Error("List keys not yet implemented in SDK");
5422
- },
5423
- /** List all records in a namespace */
5424
- list: async (_namespace, _options) => {
5425
- throw new Error("List records not yet implemented in SDK");
5426
- }
5427
- },
5428
- /**
5429
- * Namespaces — namespace policies and access control
5430
- */
5431
- namespaces: {
5432
- /** Get namespace policy */
5433
- getPolicy: async (_namespace, _options) => {
5434
- throw new Error("Namespace policy get not yet implemented in SDK");
5435
- },
5436
- /** Create namespace policy */
5437
- createPolicy: async (_attributes, _options) => {
5438
- throw new Error("Namespace policy create not yet implemented in SDK");
5439
- },
5440
- /** Get namespace statistics */
5441
- getStats: async (_namespace, _options) => {
5442
- throw new Error("Namespace stats not yet implemented in SDK");
5443
- }
5444
- }
5445
- };
5446
- }
5447
-
5448
5748
  // src/namespaces/emailMarketing.ts
5449
5749
  function createEmailMarketingNamespace(rb) {
5450
5750
  return {
@@ -5668,40 +5968,131 @@ function createEmailMarketingNamespace(rb) {
5668
5968
  }
5669
5969
 
5670
5970
  // src/namespaces/support.ts
5671
- function createSupportNamespace(_rb) {
5971
+ function createSupportNamespace(rb) {
5672
5972
  return {
5673
5973
  /**
5674
5974
  * Tickets — customer support tickets
5675
5975
  */
5676
5976
  tickets: {
5677
- /** List tickets with pagination */
5678
- list: async (_options) => {
5679
- throw new Error("Tickets list not yet implemented in SDK");
5977
+ /** List tickets for a workspace */
5978
+ list: async (workspaceId, options) => {
5979
+ return rb.execute(
5980
+ getSupportTicketsWorkspaceByWorkspaceId,
5981
+ {
5982
+ path: { workspace_id: workspaceId },
5983
+ ...buildPageQuery(options?.page, options?.pageSize)
5984
+ },
5985
+ options
5986
+ );
5680
5987
  },
5681
5988
  /** Get a ticket by ID */
5682
- get: async (_id, _options) => {
5683
- throw new Error("Ticket get not yet implemented in SDK");
5989
+ get: async (id, options) => {
5990
+ return rb.execute(
5991
+ getSupportTicketsById,
5992
+ { path: { id } },
5993
+ options
5994
+ );
5684
5995
  },
5685
5996
  /** Create a new ticket */
5686
- create: async (_attributes, _options) => {
5687
- throw new Error("Ticket create not yet implemented in SDK");
5997
+ create: async (attributes, options) => {
5998
+ return rb.execute(
5999
+ postSupportTickets,
6000
+ {
6001
+ body: {
6002
+ data: { type: "support_ticket", attributes }
6003
+ }
6004
+ },
6005
+ options
6006
+ );
5688
6007
  },
5689
6008
  /** Update a ticket */
5690
- update: async (_id, _attributes, _options) => {
5691
- throw new Error("Ticket update not yet implemented in SDK");
6009
+ update: async (id, attributes, options) => {
6010
+ return rb.execute(
6011
+ patchSupportTicketsById,
6012
+ {
6013
+ path: { id },
6014
+ body: {
6015
+ data: { type: "support_ticket", id, attributes }
6016
+ }
6017
+ },
6018
+ options
6019
+ );
6020
+ },
6021
+ /** Delete a ticket */
6022
+ delete: async (id, options) => {
6023
+ return rb.executeDelete(
6024
+ deleteSupportTicketsById,
6025
+ { path: { id } },
6026
+ options
6027
+ );
5692
6028
  },
5693
6029
  /** Add a message to a ticket */
5694
- addMessage: async (_ticketId, _attributes, _options) => {
5695
- throw new Error("Ticket add message not yet implemented in SDK");
6030
+ addMessage: async (ticketId, attributes, options) => {
6031
+ return rb.execute(
6032
+ postSupportTicketMessages,
6033
+ {
6034
+ body: {
6035
+ data: {
6036
+ type: "support_ticket_message",
6037
+ attributes: { ...attributes, ticket_id: ticketId }
6038
+ }
6039
+ }
6040
+ },
6041
+ options
6042
+ );
6043
+ },
6044
+ /** List messages for a ticket */
6045
+ listMessages: async (ticketId, options) => {
6046
+ return rb.execute(
6047
+ getSupportTicketMessagesTicketByTicketId,
6048
+ { path: { ticket_id: ticketId } },
6049
+ options
6050
+ );
6051
+ },
6052
+ /** Rate a ticket (CSAT) */
6053
+ rate: async (attributes, options) => {
6054
+ return rb.execute(
6055
+ postSupportTicketRatings,
6056
+ {
6057
+ body: {
6058
+ data: { type: "support_ticket_rating", attributes }
6059
+ }
6060
+ },
6061
+ options
6062
+ );
5696
6063
  }
5697
6064
  },
5698
6065
  /**
5699
- * Queues — ticket routing containers
6066
+ * Tags — ticket labels for categorization
5700
6067
  */
5701
- queues: {
5702
- /** List queues */
5703
- list: async (_options) => {
5704
- throw new Error("Queues list not yet implemented in SDK");
6068
+ tags: {
6069
+ /** List tags for a workspace */
6070
+ list: async (workspaceId, options) => {
6071
+ return rb.execute(
6072
+ getSupportTagsWorkspaceByWorkspaceId,
6073
+ { path: { workspace_id: workspaceId } },
6074
+ options
6075
+ );
6076
+ },
6077
+ /** Create a tag */
6078
+ create: async (attributes, options) => {
6079
+ return rb.execute(
6080
+ postSupportTags,
6081
+ {
6082
+ body: {
6083
+ data: { type: "support_tag", attributes }
6084
+ }
6085
+ },
6086
+ options
6087
+ );
6088
+ },
6089
+ /** Delete a tag */
6090
+ delete: async (id, options) => {
6091
+ return rb.executeDelete(
6092
+ deleteSupportTagsById,
6093
+ { path: { id } },
6094
+ options
6095
+ );
5705
6096
  }
5706
6097
  }
5707
6098
  };
@@ -8407,12 +8798,10 @@ var GptClient = class extends BaseClient {
8407
8798
  this.ai = createAiNamespace(rb);
8408
8799
  this.billing = createBillingNamespace(rb);
8409
8800
  this.catalog = createCatalogNamespace(rb);
8410
- this.channels = createChannelsNamespace(rb);
8411
8801
  this.communication = createCommunicationNamespace(rb);
8412
8802
  this.connectors = createConnectorsNamespace(rb);
8413
8803
  this.crawler = createCrawlerNamespace(rb);
8414
8804
  this.crm = createCrmNamespace(rb);
8415
- this.dataStore = createDataStoreNamespace(rb);
8416
8805
  this.emailMarketing = createEmailMarketingNamespace(rb);
8417
8806
  this.support = createSupportNamespace(rb);
8418
8807
  this.extraction = createExtractionNamespace(rb);