@kibee/sdk 0.1.0 → 0.2.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.
package/dist/index.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { AnalyticsEvent, BridgeEventType, BridgeEnvelope, RegisteredTarget, FlowDefinition, IntentMatch, TargetRef as TargetRef$1, StartSessionRequest, SessionState, ResolveIntentRequest, RecoveryRequest, RecoveryResponse, TrackEventRequest, VisitorPollResponse, FlowCommand, VisibleTarget, SurfaceId } from '@kibee/contracts';
1
+ import { AnalyticsEvent, BridgeEventType, BridgeEnvelope, RegisteredTarget, FlowDefinition, IntentMatch, TargetRef as TargetRef$1, WidgetConfigResponse, StartSessionRequest, SessionState, ResolveIntentRequest, RecoveryRequest, RecoveryResponse, TrackEventRequest, VisitorPollResponse, FlowCommand, VisibleTarget, SurfaceId } from '@kibee/contracts';
2
2
  import { BeeRenderer } from '@kibee/renderer-three';
3
3
 
4
4
  type BookmarkKind = "honey" | "sting";
@@ -287,6 +287,7 @@ declare class KiBeeApiClient {
287
287
  private options;
288
288
  constructor(baseUrl: string, options?: KiBeeApiClientOptions);
289
289
  fetchFlow(id: string): Promise<FlowDefinition>;
290
+ fetchWidgetConfig(): Promise<WidgetConfigResponse>;
290
291
  startSession(input: StartSessionRequest): Promise<SessionState>;
291
292
  resolveIntent(input: ResolveIntentRequest): Promise<IntentMatch>;
292
293
  resolveRecovery(input: RecoveryRequest): Promise<RecoveryResponse>;
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { AnalyticsEvent, BridgeEventType, BridgeEnvelope, RegisteredTarget, FlowDefinition, IntentMatch, TargetRef as TargetRef$1, StartSessionRequest, SessionState, ResolveIntentRequest, RecoveryRequest, RecoveryResponse, TrackEventRequest, VisitorPollResponse, FlowCommand, VisibleTarget, SurfaceId } from '@kibee/contracts';
1
+ import { AnalyticsEvent, BridgeEventType, BridgeEnvelope, RegisteredTarget, FlowDefinition, IntentMatch, TargetRef as TargetRef$1, WidgetConfigResponse, StartSessionRequest, SessionState, ResolveIntentRequest, RecoveryRequest, RecoveryResponse, TrackEventRequest, VisitorPollResponse, FlowCommand, VisibleTarget, SurfaceId } from '@kibee/contracts';
2
2
  import { BeeRenderer } from '@kibee/renderer-three';
3
3
 
4
4
  type BookmarkKind = "honey" | "sting";
@@ -287,6 +287,7 @@ declare class KiBeeApiClient {
287
287
  private options;
288
288
  constructor(baseUrl: string, options?: KiBeeApiClientOptions);
289
289
  fetchFlow(id: string): Promise<FlowDefinition>;
290
+ fetchWidgetConfig(): Promise<WidgetConfigResponse>;
290
291
  startSession(input: StartSessionRequest): Promise<SessionState>;
291
292
  resolveIntent(input: ResolveIntentRequest): Promise<IntentMatch>;
292
293
  resolveRecovery(input: RecoveryRequest): Promise<RecoveryResponse>;
package/dist/index.js CHANGED
@@ -42,6 +42,9 @@ var KiBeeApiClient = class {
42
42
  async fetchFlow(id) {
43
43
  return this.request(`/flows/${id}`);
44
44
  }
45
+ async fetchWidgetConfig() {
46
+ return this.request("/widget-config");
47
+ }
45
48
  async startSession(input) {
46
49
  return this.request("/sessions", {
47
50
  method: "POST",
package/dist/index.mjs CHANGED
@@ -9,6 +9,9 @@ var KiBeeApiClient = class {
9
9
  async fetchFlow(id) {
10
10
  return this.request(`/flows/${id}`);
11
11
  }
12
+ async fetchWidgetConfig() {
13
+ return this.request("/widget-config");
14
+ }
12
15
  async startSession(input) {
13
16
  return this.request("/sessions", {
14
17
  method: "POST",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kibee/sdk",
3
- "version": "0.1.0",
3
+ "version": "0.2.0",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index.mjs",
6
6
  "types": "./dist/index.d.ts",
@@ -11,16 +11,21 @@
11
11
  "require": "./dist/index.js"
12
12
  }
13
13
  },
14
- "files": ["dist"],
14
+ "files": [
15
+ "dist"
16
+ ],
15
17
  "scripts": {
16
18
  "build": "tsup src/index.ts --format cjs,esm --dts --clean --tsconfig tsconfig.build.json",
17
19
  "dev": "tsup src/index.ts --format cjs,esm --dts --watch"
18
20
  },
19
21
  "dependencies": {
20
- "@kibee/contracts": "^0.2.0",
21
- "@kibee/renderer-three": "^0.1.0"
22
+ "@kibee/contracts": "^0.7.0",
23
+ "@kibee/renderer-three": "^0.2.0"
22
24
  },
23
25
  "devDependencies": {
24
26
  "tsup": "^8.5.1"
27
+ },
28
+ "publishConfig": {
29
+ "access": "public"
25
30
  }
26
31
  }