@chatbotkit/sdk 1.29.0 → 1.30.0

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.
@@ -3398,6 +3398,23 @@ export interface paths {
3398
3398
  patch?: never;
3399
3399
  trace?: never;
3400
3400
  };
3401
+ "/integration/widget/{widgetIntegrationId}/clone": {
3402
+ parameters: {
3403
+ query?: never;
3404
+ header?: never;
3405
+ path?: never;
3406
+ cookie?: never;
3407
+ };
3408
+ get?: never;
3409
+ put?: never;
3410
+ /** Clone Widget integration */
3411
+ post: operations["cloneWidgetIntegration"];
3412
+ delete?: never;
3413
+ options?: never;
3414
+ head?: never;
3415
+ patch?: never;
3416
+ trace?: never;
3417
+ };
3401
3418
  "/integration/widget/{widgetIntegrationId}/delete": {
3402
3419
  parameters: {
3403
3420
  query?: never;
@@ -4203,7 +4220,7 @@ export interface paths {
4203
4220
  patch?: never;
4204
4221
  trace?: never;
4205
4222
  };
4206
- "/policy/{id}/delete": {
4223
+ "/policy/{policyId}/delete": {
4207
4224
  parameters: {
4208
4225
  query?: never;
4209
4226
  header?: never;
@@ -4220,14 +4237,14 @@ export interface paths {
4220
4237
  patch?: never;
4221
4238
  trace?: never;
4222
4239
  };
4223
- "/policy/{id}/fetch": {
4240
+ "/policy/{policyId}/fetch": {
4224
4241
  parameters: {
4225
4242
  query?: never;
4226
4243
  header?: never;
4227
4244
  path?: never;
4228
4245
  cookie?: never;
4229
4246
  };
4230
- /** Fetch policy */
4247
+ /** Fetch a policy */
4231
4248
  get: operations["fetchPolicy"];
4232
4249
  put?: never;
4233
4250
  post?: never;
@@ -4237,7 +4254,7 @@ export interface paths {
4237
4254
  patch?: never;
4238
4255
  trace?: never;
4239
4256
  };
4240
- "/policy/{id}/update": {
4257
+ "/policy/{policyId}/update": {
4241
4258
  parameters: {
4242
4259
  query?: never;
4243
4260
  header?: never;
@@ -4721,6 +4738,23 @@ export interface paths {
4721
4738
  patch?: never;
4722
4739
  trace?: never;
4723
4740
  };
4741
+ "/space/{spaceId}/delete": {
4742
+ parameters: {
4743
+ query?: never;
4744
+ header?: never;
4745
+ path?: never;
4746
+ cookie?: never;
4747
+ };
4748
+ get?: never;
4749
+ put?: never;
4750
+ /** Delete a space */
4751
+ post: operations["deleteSpace"];
4752
+ delete?: never;
4753
+ options?: never;
4754
+ head?: never;
4755
+ patch?: never;
4756
+ trace?: never;
4757
+ };
4724
4758
  "/space/{spaceId}/fetch": {
4725
4759
  parameters: {
4726
4760
  query?: never;
@@ -4728,7 +4762,7 @@ export interface paths {
4728
4762
  path?: never;
4729
4763
  cookie?: never;
4730
4764
  };
4731
- /** Fetch space */
4765
+ /** Fetch a space */
4732
4766
  get: operations["fetchSpace"];
4733
4767
  put?: never;
4734
4768
  post?: never;
@@ -4764,11 +4798,7 @@ export interface paths {
4764
4798
  };
4765
4799
  get?: never;
4766
4800
  put?: never;
4767
- /**
4768
- * Create a new space
4769
- * @description Create a new space with the given parameters.
4770
- *
4771
- */
4801
+ /** Create space */
4772
4802
  post: operations["createSpace"];
4773
4803
  delete?: never;
4774
4804
  options?: never;
@@ -4974,6 +5004,23 @@ export interface paths {
4974
5004
  patch?: never;
4975
5005
  trace?: never;
4976
5006
  };
5007
+ "/usage/list": {
5008
+ parameters: {
5009
+ query?: never;
5010
+ header?: never;
5011
+ path?: never;
5012
+ cookie?: never;
5013
+ };
5014
+ /** List usage records */
5015
+ get: operations["listUsageRecords"];
5016
+ put?: never;
5017
+ post?: never;
5018
+ delete?: never;
5019
+ options?: never;
5020
+ head?: never;
5021
+ patch?: never;
5022
+ trace?: never;
5023
+ };
4977
5024
  "/usage/series/fetch": {
4978
5025
  parameters: {
4979
5026
  query?: never;
@@ -5045,7 +5092,7 @@ export interface components {
5045
5092
  * @description The schedule
5046
5093
  * @enum {string}
5047
5094
  */
5048
- Schedule: "never" | "quarterhourly" | "halfhourly" | "hourly" | "daily" | "weekly" | "monthly";
5095
+ Schedule: "never" | "quarterhourly" | "halfhourly" | "hourly" | "twicedaily" | "daily" | "twiceweekly" | "weekly" | "twicemonthly" | "monthly";
5049
5096
  /**
5050
5097
  * @description The sync status of an integration
5051
5098
  * @enum {string}
@@ -14457,6 +14504,8 @@ export interface operations {
14457
14504
  blueprintId?: string;
14458
14505
  /** @description The ID of the skillset */
14459
14506
  skillsetId?: string;
14507
+ /** @description The ID of the OAuth connection for IdP-based authentication */
14508
+ oAuthConnectionId?: string;
14460
14509
  };
14461
14510
  };
14462
14511
  };
@@ -14493,6 +14542,8 @@ export interface operations {
14493
14542
  blueprintId?: string;
14494
14543
  /** @description The ID of the skillset */
14495
14544
  skillsetId?: string;
14545
+ /** @description The ID of the OAuth connection for IdP-based authentication */
14546
+ oAuthConnectionId?: string;
14496
14547
  };
14497
14548
  };
14498
14549
  };
@@ -14540,6 +14591,8 @@ export interface operations {
14540
14591
  blueprintId?: string;
14541
14592
  /** @description The ID of the skillset */
14542
14593
  skillsetId?: string;
14594
+ /** @description The ID of the OAuth connection for IdP-based authentication */
14595
+ oAuthConnectionId?: string;
14543
14596
  };
14544
14597
  };
14545
14598
  };
@@ -14607,6 +14660,8 @@ export interface operations {
14607
14660
  blueprintId?: string;
14608
14661
  /** @description The ID of the skillset */
14609
14662
  skillsetId?: string;
14663
+ /** @description The ID of the OAuth connection for IdP-based authentication */
14664
+ oAuthConnectionId?: string;
14610
14665
  }[];
14611
14666
  /** @description Cursor for fetching the next page */
14612
14667
  cursor: string;
@@ -14637,6 +14692,8 @@ export interface operations {
14637
14692
  blueprintId?: string;
14638
14693
  /** @description The ID of the skillset */
14639
14694
  skillsetId?: string;
14695
+ /** @description The ID of the OAuth connection for IdP-based authentication */
14696
+ oAuthConnectionId?: string;
14640
14697
  };
14641
14698
  };
14642
14699
  };
@@ -17238,11 +17295,8 @@ export interface operations {
17238
17295
  secret: string;
17239
17296
  /** @description When enabled the integration requires authentication */
17240
17297
  authenticate?: boolean;
17241
- /**
17242
- * @description The schedule
17243
- * @enum {string}
17244
- */
17245
- triggerSchedule?: "never" | "quarterhourly" | "halfhourly" | "hourly" | "daily" | "weekly" | "monthly";
17298
+ /** @description The schedule for the trigger integration (interval, cron expression, ISO date, or null) */
17299
+ triggerSchedule?: string | null;
17246
17300
  /** @description The session duration (in milliseconds) */
17247
17301
  sessionDuration?: number;
17248
17302
  /** @description The maximum number of iterations per trigger execution */
@@ -17359,11 +17413,8 @@ export interface operations {
17359
17413
  botId?: string;
17360
17414
  /** @description When enabled the integration requires authentication */
17361
17415
  authenticate?: boolean;
17362
- /**
17363
- * @description The schedule
17364
- * @enum {string}
17365
- */
17366
- triggerSchedule?: "never" | "quarterhourly" | "halfhourly" | "hourly" | "daily" | "weekly" | "monthly";
17416
+ /** @description The schedule for the trigger integration (interval, cron expression, or ISO date) */
17417
+ triggerSchedule?: string | null;
17367
17418
  /** @description The session duration (in milliseconds) */
17368
17419
  sessionDuration?: number;
17369
17420
  /** @description The maximum number of iterations per trigger execution */
@@ -17419,11 +17470,8 @@ export interface operations {
17419
17470
  botId?: string;
17420
17471
  /** @description When enabled the integration requires authentication */
17421
17472
  authenticate?: boolean;
17422
- /**
17423
- * @description The schedule
17424
- * @enum {string}
17425
- */
17426
- triggerSchedule?: "never" | "quarterhourly" | "halfhourly" | "hourly" | "daily" | "weekly" | "monthly";
17473
+ /** @description The schedule for the trigger integration (interval, cron expression, or ISO date) */
17474
+ triggerSchedule?: string | null;
17427
17475
  /** @description The session duration (in milliseconds) */
17428
17476
  sessionDuration?: number;
17429
17477
  /** @description The maximum number of iterations per trigger execution */
@@ -17501,11 +17549,8 @@ export interface operations {
17501
17549
  secret: string;
17502
17550
  /** @description When enabled the integration requires authentication */
17503
17551
  authenticate?: boolean;
17504
- /**
17505
- * @description The schedule
17506
- * @enum {string}
17507
- */
17508
- triggerSchedule?: "never" | "quarterhourly" | "halfhourly" | "hourly" | "daily" | "weekly" | "monthly";
17552
+ /** @description The schedule for the trigger integration (interval, cron expression, ISO date, or null) */
17553
+ triggerSchedule?: string | null;
17509
17554
  /** @description The session duration (in milliseconds) */
17510
17555
  sessionDuration?: number;
17511
17556
  /** @description The maximum number of iterations per trigger execution */
@@ -17546,11 +17591,8 @@ export interface operations {
17546
17591
  secret: string;
17547
17592
  /** @description When enabled the integration requires authentication */
17548
17593
  authenticate?: boolean;
17549
- /**
17550
- * @description The schedule
17551
- * @enum {string}
17552
- */
17553
- triggerSchedule?: "never" | "quarterhourly" | "halfhourly" | "hourly" | "daily" | "weekly" | "monthly";
17594
+ /** @description The schedule for the trigger integration (interval, cron expression, ISO date, or null) */
17595
+ triggerSchedule?: string | null;
17554
17596
  /** @description The session duration (in milliseconds) */
17555
17597
  sessionDuration?: number;
17556
17598
  /** @description The maximum number of iterations per trigger execution */
@@ -18258,6 +18300,42 @@ export interface operations {
18258
18300
  };
18259
18301
  };
18260
18302
  };
18303
+ cloneWidgetIntegration: {
18304
+ parameters: {
18305
+ query?: never;
18306
+ header?: never;
18307
+ path: {
18308
+ widgetIntegrationId: string;
18309
+ };
18310
+ cookie?: never;
18311
+ };
18312
+ requestBody: {
18313
+ content: {
18314
+ "application/json": Record<string, never>;
18315
+ };
18316
+ };
18317
+ responses: {
18318
+ /** @description The Widget integration was cloned successfully */
18319
+ 200: {
18320
+ headers: {
18321
+ [name: string]: unknown;
18322
+ };
18323
+ content: {
18324
+ "application/json": {
18325
+ /** @description The ID of the cloned Widget integration */
18326
+ id: string;
18327
+ };
18328
+ };
18329
+ };
18330
+ /** @description An error response */
18331
+ default: {
18332
+ headers: {
18333
+ [name: string]: unknown;
18334
+ };
18335
+ content?: never;
18336
+ };
18337
+ };
18338
+ };
18261
18339
  deleteWidgetIntegration: {
18262
18340
  parameters: {
18263
18341
  query?: never;
@@ -18363,7 +18441,7 @@ export interface operations {
18363
18441
  /** @description Whether the Widget integration supports carousels */
18364
18442
  carousel?: boolean;
18365
18443
  /** @description Whether the Widget integration supports forms */
18366
- from?: boolean;
18444
+ form?: boolean;
18367
18445
  /** @description Whether the Widget integration supports attachments */
18368
18446
  attachments?: boolean;
18369
18447
  /** @description Whether the Widget integration auto scrolls */
@@ -19144,7 +19222,7 @@ export interface operations {
19144
19222
  /** @description The bot associated with the memory */
19145
19223
  botId?: string;
19146
19224
  /** @description The text of the memory */
19147
- text?: string;
19225
+ text: string;
19148
19226
  };
19149
19227
  };
19150
19228
  };
@@ -21693,7 +21771,7 @@ export interface operations {
21693
21771
  query?: never;
21694
21772
  header?: never;
21695
21773
  path: {
21696
- id: string;
21774
+ policyId: string;
21697
21775
  };
21698
21776
  cookie?: never;
21699
21777
  };
@@ -21729,7 +21807,7 @@ export interface operations {
21729
21807
  query?: never;
21730
21808
  header?: never;
21731
21809
  path: {
21732
- id: string;
21810
+ policyId: string;
21733
21811
  };
21734
21812
  cookie?: never;
21735
21813
  };
@@ -21778,7 +21856,7 @@ export interface operations {
21778
21856
  query?: never;
21779
21857
  header?: never;
21780
21858
  path: {
21781
- id: string;
21859
+ policyId: string;
21782
21860
  };
21783
21861
  cookie?: never;
21784
21862
  };
@@ -23651,6 +23729,42 @@ export interface operations {
23651
23729
  };
23652
23730
  };
23653
23731
  };
23732
+ deleteSpace: {
23733
+ parameters: {
23734
+ query?: never;
23735
+ header?: never;
23736
+ path: {
23737
+ spaceId: string;
23738
+ };
23739
+ cookie?: never;
23740
+ };
23741
+ requestBody: {
23742
+ content: {
23743
+ "application/json": Record<string, never>;
23744
+ };
23745
+ };
23746
+ responses: {
23747
+ /** @description The space was deleted successfully */
23748
+ 200: {
23749
+ headers: {
23750
+ [name: string]: unknown;
23751
+ };
23752
+ content: {
23753
+ "application/json": {
23754
+ /** @description The ID of the deleted space */
23755
+ id: string;
23756
+ };
23757
+ };
23758
+ };
23759
+ /** @description An error response */
23760
+ default: {
23761
+ headers: {
23762
+ [name: string]: unknown;
23763
+ };
23764
+ content?: never;
23765
+ };
23766
+ };
23767
+ };
23654
23768
  fetchSpace: {
23655
23769
  parameters: {
23656
23770
  query?: never;
@@ -24554,6 +24668,81 @@ export interface operations {
24554
24668
  };
24555
24669
  };
24556
24670
  };
24671
+ listUsageRecords: {
24672
+ parameters: {
24673
+ query?: {
24674
+ cursor?: string;
24675
+ order?: "asc" | "desc";
24676
+ take?: number;
24677
+ meta?: {
24678
+ [key: string]: string;
24679
+ };
24680
+ };
24681
+ header?: never;
24682
+ path?: never;
24683
+ cookie?: never;
24684
+ };
24685
+ requestBody?: never;
24686
+ responses: {
24687
+ /** @description The list of usage records was retrieved successfully */
24688
+ 200: {
24689
+ headers: {
24690
+ [name: string]: unknown;
24691
+ };
24692
+ content: {
24693
+ "application/json": {
24694
+ items: {
24695
+ /** @description The associated name */
24696
+ name?: string;
24697
+ /** @description The associated description */
24698
+ description?: string;
24699
+ /** @description Meta data information */
24700
+ meta?: {
24701
+ [key: string]: unknown;
24702
+ };
24703
+ /** @description The instance ID */
24704
+ id: string;
24705
+ /** @description The timestamp (ms) when the instance was created */
24706
+ createdAt: number;
24707
+ /** @description The timestamp (ms) when the instance was updated */
24708
+ updatedAt: number;
24709
+ /** @description The usage type */
24710
+ type: string;
24711
+ /** @description The usage count */
24712
+ count: number;
24713
+ /** @description Related conversation ID if applicable */
24714
+ conversationId?: string;
24715
+ /** @description Related message ID if applicable */
24716
+ messageId?: string;
24717
+ /** @description Related task ID if applicable */
24718
+ taskId?: string;
24719
+ /** @description Related contact ID if applicable */
24720
+ contactId?: string;
24721
+ /** @description Related blueprint ID if applicable */
24722
+ blueprintId?: string;
24723
+ /** @description Related bot ID if applicable */
24724
+ botId?: string;
24725
+ /** @description Related dataset ID if applicable */
24726
+ datasetId?: string;
24727
+ /** @description Related skillset ID if applicable */
24728
+ skillsetId?: string;
24729
+ /** @description Related ability ID if applicable */
24730
+ abilityId?: string;
24731
+ }[];
24732
+ /** @description Cursor for fetching the next page */
24733
+ cursor: string;
24734
+ };
24735
+ };
24736
+ };
24737
+ /** @description An error response */
24738
+ default: {
24739
+ headers: {
24740
+ [name: string]: unknown;
24741
+ };
24742
+ content?: never;
24743
+ };
24744
+ };
24745
+ };
24557
24746
  fetchUsageSeries: {
24558
24747
  parameters: {
24559
24748
  query?: never;
@@ -1,5 +1,15 @@
1
+ var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
2
+ if (kind === "m") throw new TypeError("Private method is not writable");
3
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
4
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
5
+ return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
6
+ };
7
+ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
8
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
9
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
10
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
11
+ };
1
12
  var _ChatBotKitClient_secret, _ChatBotKitClient_baseUrl, _ChatBotKitClient_endpoints, _ChatBotKitClient_runAsUserId, _ChatBotKitClient_runAsChildUserEmail, _ChatBotKitClient_timezone, _ChatBotKitClient_headers, _ChatBotKitClient_timeout, _ChatBotKitClient_retries, _ChatBotKitClient_retryDelay, _ChatBotKitClient_retryTimeout, _ChatBotKitClient_fetchFn, _ChatBotKitClient_cacheMap;
2
- import { __classPrivateFieldGet, __classPrivateFieldSet } from "tslib";
3
13
  import { Blob, FetchError, FormData, fetch, jsonl, withRetry, withTimeout, } from '@chatbotkit/fetch';
4
14
  const fetchPlusPlus = withRetry(withTimeout(fetch, { timeout: Infinity }), {
5
15
  retries: 3,
@@ -15,3 +15,6 @@ export type PlatformAbilitySearchRequestBody = import("../../types/api/v1.js").o
15
15
  export type PlatformAbilitySearchRequest = PlatformAbilitySearchRequestBody;
16
16
  export type PlatformAbilitySearchResponseBody = import("../../types/api/v1.js").operations["searchPlatformAbilities"]["responses"]["200"]["content"]["application/json"];
17
17
  export type PlatformAbilitySearchResponse = PlatformAbilitySearchResponseBody;
18
+ export type CbkAbilityName = import("../../types/ability.js").CbkAbilityName;
19
+ export type CbkAbilityMetadata = import("../../types/ability.js").CbkAbilityMetadata;
20
+ export type CbkAbilityRegistry = import("../../types/ability.js").CbkAbilityRegistry;