@integry/sdk 4.8.89 → 4.8.91

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.
@@ -1,6 +1,6 @@
1
1
  /// <reference types="index.ts" />
2
2
  import { VNode } from "preact";
3
- type IntegrySDKEventType = "authorizations" | "did-add-authorization" | "did-begin-remove-authorization" | "did-change-step" | "did-fail-authorization-verification" | "did-load-flow" | "did-load-flows" | "did-load-integration" | "did-load-integrations" | "did-load-preview" | "did-remove-authorization" | "did-save-integration" | "did-upgrade-integration" | "did-delete-integration" | "did-select-authorization" | "ready" | "should-load-flow" | "did-click-close-button" | "did-app-load" | "did-enable-integration" | "did-disable-integration" | "did-rename-integration" | "did-raise-sdk-embed-warning" | "app-connected" | "app-disconnected" | "modal-closed" | "did-render-function" | "did-render-app-authorizations" | "did-render-flow-step" | "integration-created";
3
+ type IntegrySDKEventType = "authorizations" | "did-add-authorization" | "did-begin-remove-authorization" | "did-change-step" | "did-fail-authorization-verification" | "did-load-flow" | "did-load-flows" | "did-load-integration" | "did-load-integrations" | "did-load-preview" | "did-remove-authorization" | "did-save-integration" | "did-upgrade-integration" | "did-delete-integration" | "did-select-authorization" | "ready" | "should-load-flow" | "did-click-close-button" | "did-app-load" | "did-enable-integration" | "did-disable-integration" | "did-rename-integration" | "did-raise-sdk-embed-warning" | "app-connected" | "app-disconnected" | "modal-closed" | "did-render-function" | "did-render-app-authorizations" | "did-render-flow-step" | "knowledge-base-created" | "integration-created";
4
4
  type ConnectedAccount = {
5
5
  id: string;
6
6
  display_name: string;
@@ -102,6 +102,26 @@ type IntegrySDKEventPayloads = {
102
102
  }[];
103
103
  event: "EDIT" | "CREATE";
104
104
  };
105
+ "knowledge-base-created": {
106
+ integrationId: number;
107
+ name: string;
108
+ templateId: number;
109
+ flowId: number;
110
+ status: string;
111
+ callbackUrl: string | null;
112
+ callbackUrlArray: {
113
+ templateStepId: number;
114
+ activityId: number;
115
+ callbackUrl: string | null;
116
+ }[];
117
+ authorizations: {
118
+ authorizationId: number;
119
+ userIdentity: string;
120
+ isBrandingAppAuth: boolean;
121
+ }[];
122
+ event: "EDIT" | "CREATE";
123
+ knowledge_base: any;
124
+ };
105
125
  "did-load-preview": {
106
126
  flowId: number;
107
127
  flowTitle: string;
@@ -227,6 +247,7 @@ type IntegrySDKEvents = {
227
247
  "did-render-function": EventCallback<"did-render-function">;
228
248
  "did-render-app-authorizations": EventCallback<"did-render-app-authorizations">;
229
249
  "did-render-flow-step": EventCallback<"did-render-flow-step">;
250
+ "knowledge-base-created": EventCallback<"knowledge-base-created">;
230
251
  };
231
252
  declare enum ViewStyles {
232
253
  COMPACT = "COMPACT",