@integry/sdk 3.1.5-beta.13 → 3.1.5-beta.16

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,386 +1,390 @@
1
- import { html } from 'htm/preact';
2
- import { VNode } from "preact";
3
- type IntegrySDKEvents = {
4
- ready: ({ deploymentId }: {
5
- deploymentId: number;
6
- }) => void;
7
- "should-load-flow": ({ templateId, flowId }: {
8
- templateId: number;
9
- flowId: number;
10
- }) => void;
11
- "did-load-flows": ({ flows }: {
12
- flows: any[];
13
- }) => void;
14
- "did-load-integrations": ({ integrations }: {
15
- integrations: any[];
16
- }) => void;
17
- "did-load-flow": (data: {
18
- flowId: number;
19
- flowTitle: string;
20
- flowDescription: string;
21
- templateId: number;
22
- templateTitle: string;
23
- templateDescription: string;
24
- }) => void;
25
- "did-load-integration": (data: {
26
- flowId: number;
27
- integrationId: number;
28
- }) => void;
29
- "did-save-integration": (data: {
30
- integrationId: number;
31
- name: string;
32
- templateId: number;
33
- flowId: number;
34
- status: string;
35
- callbackUrl: string | null;
36
- authorizations: {
37
- authorizationId: number;
38
- userIdentity: string;
39
- isBrandingAppAuth: boolean;
40
- }[];
41
- steps: {
42
- id: number;
43
- authorization: number | null;
44
- template_step: number;
45
- app_user_data: {
46
- id: number;
47
- value: string | null;
48
- template_field: number;
49
- }[];
50
- }[];
51
- }) => void;
52
- "did-load-preview": (data: {
53
- flowId: number;
54
- flowTitle: string;
55
- flowDescription: string;
56
- }) => void;
57
- "did-change-step": (data: {
58
- stepId: number;
59
- stepType: "AUTH" | "CONFIGURATION" | "SECTION" | "CONFIRMATION";
60
- }) => void;
61
- "did-add-authorization": (data: {
62
- identity: string;
63
- authorizationId: number;
64
- flowId: number | null;
65
- appId: number;
66
- appName: string;
67
- appIcon: string;
68
- alreadyExists: boolean;
69
- externalId?: string;
70
- }) => void;
71
- "did-fail-authorization-verification": (data: {
72
- identity: string;
73
- authorizationId: number;
74
- flowId: number | null;
75
- appId: number;
76
- appName: string;
77
- appIcon: string;
78
- alreadyExists: boolean;
79
- }) => void;
80
- "did-select-authorization": (data: {
81
- authorizationId: number;
82
- }) => void;
83
- "did-remove-authorization": (data: {
84
- authorizationId: number;
85
- }) => void;
86
- "did-begin-remove-authorization": (data: {
87
- authorizationId: number;
88
- }) => void;
89
- };
90
- declare enum TemplateFormRenderModes {
91
- MODAL = "MODAL",
92
- INLINE = "INLINE",
93
- DETACHED = "DETACHED",
94
- CUSTOM = "CUSTOM"
95
- }
96
- declare enum TemplateListingRenderModes {
97
- GRID = "GRID",
98
- LIST = "LIST"
99
- }
100
- type Authorization = {
101
- id: number;
102
- authorization_type: string;
103
- app_user?: number;
104
- app_user_id?: number;
105
- disable_link?: string;
106
- integration_count?: number;
107
- user_identity: string;
108
- };
109
- type FlowCardProps = {
110
- imgUrl: string;
111
- name: string;
112
- description: string;
113
- tags: string;
114
- layout: TemplateListingRenderModes;
115
- handleClick: () => void;
116
- };
117
- interface UserConfig {
118
- availableFlowsLabel?: string;
119
- myFlowsLabel?: string;
120
- hideWebhookUrlScreen?: boolean;
121
- hideAppConnectionModal?: boolean;
122
- customComponents?: {
123
- flowCard?: (props: FlowCardProps) => VNode;
124
- };
125
- autoRedirectToMyFlows?: boolean;
126
- }
127
- interface SDKConfig {
128
- env?: "staging" | "production";
129
- debug?: boolean;
130
- integrationId?: number;
131
- xIntegryConfig?: {
132
- isAnonymous?: boolean;
133
- appAuth?: {
134
- apiKey?: string;
135
- authId?: string;
136
- extras?: Record<string, string | number>;
137
- };
138
- };
139
- userConfig?: UserConfig;
140
- }
141
- interface ConfigWithObject extends SDKConfig {
142
- appKey: string;
143
- hash: string;
144
- userId: string;
145
- deploymentId: string;
146
- }
147
- interface ConfigWithUrlParams extends SDKConfig {
148
- useUrlParams?: boolean;
149
- }
150
- type App = {
151
- id: number;
152
- name: string;
153
- description: string;
154
- icon_url: string;
155
- color: string;
156
- publishing_status: string;
157
- category: string[];
158
- app_type?: string;
159
- action_url?: string | null;
160
- created_at?: Date;
161
- tags: string;
162
- };
163
- type Activity = {
164
- id: number;
165
- name: string;
166
- type: string;
167
- endpoint: string;
168
- auth_required: boolean;
169
- total_fields: number;
170
- app: App;
171
- activity_output: string | null;
172
- activity_output_url: string | null;
173
- dynamic_field_data_endpoint: string | null;
174
- };
175
- type AuthorizationType = {
176
- id: number;
177
- type: string;
178
- authorizations: Authorization[];
179
- provider: string;
180
- is_sandbox_enabled: boolean;
181
- authorization_url_sandbox: string;
182
- };
183
- interface TemplateField {
184
- id: number;
185
- is_required: boolean;
186
- is_hidden: boolean;
187
- default_value: string | null;
188
- weight: number;
189
- description: string;
190
- summary: string | null;
191
- activity_field: {
192
- id: number;
193
- machine_name: string;
194
- type: string;
195
- title: string;
196
- description: string;
197
- weight: number;
198
- is_required: boolean;
199
- child_fields: string | null;
200
- placeholder: string | null;
201
- is_dynamic: boolean;
202
- data_src: string | null;
203
- data_src_endpoint: number | null;
204
- parent_fields: string | null;
205
- dynamic_field_src: string | null;
206
- default_value: string | null;
207
- auto_machine_name: string;
208
- dynamic_field_src_endpoint: number | null;
209
- regex: string | null;
210
- regex_error_message?: string | null;
211
- is_searchable: boolean;
212
- conditional_fields?: string | null;
213
- } | null;
214
- title: string | null;
215
- type: string;
216
- placeholder: string | null;
217
- // manual_template: unknown | null;
218
- child_field: string | null;
219
- child_field_value: string | null;
220
- // template_fields: unknown[];
221
- button_text: string | null;
222
- // field_actions: unknown[];
223
- icon_url: string | null;
224
- long_description: string | null;
225
- regex: string | null;
226
- regex_msg: string | null;
227
- is_visible: boolean;
228
- app_user_data?: {
229
- app_user: number;
230
- id: number;
231
- value: string | number;
232
- }[];
233
- added_in_mapping?: boolean;
234
- field_mapping_source?: string;
235
- }
236
- interface TemplateStep {
237
- id: number;
238
- weight: number;
239
- title: string;
240
- is_visible: boolean;
241
- activity: Activity;
242
- authorization_type: AuthorizationType;
243
- template_fields: TemplateField[];
244
- step_instance?: number | null;
245
- allow_multiple_authorizations: boolean;
246
- step_authorization: number | null;
247
- button_text: string | null;
248
- is_self_step: boolean;
249
- summary: string | null;
250
- is_workspace_app_step: boolean;
251
- auth_description: string | null;
252
- hide_authorization: boolean;
253
- // step_condition: unknown | null;
254
- machine_name: string | null;
255
- is_custom_machine_name: boolean;
256
- }
257
- interface InitConfig {
258
- containerId: string;
259
- templateContainerId?: string;
260
- renderMode: TemplateFormRenderModes;
261
- }
262
- interface TemplatePreviewData {
263
- id: number;
264
- name: string;
265
- description: string;
266
- app: App;
267
- branding_app: App;
268
- button_text: string | null;
269
- is_wizard: boolean;
270
- publishing_status: string;
271
- level?: number;
272
- parent_id?: number;
273
- steps: TemplateStep[];
274
- }
275
- interface PreviewMetadata {
276
- stepId: number | null;
277
- type: "AUTH" | "CONFIGURATION" | "CONFIRMATION" | "SECTION";
278
- }
279
- interface PreviewPayload {
280
- templateData: TemplatePreviewData;
281
- metadata: PreviewMetadata;
282
- previewContainerId: string;
283
- }
284
- /**
285
- *
286
- * @param key Key to sign hash
287
- * @param message Message to hash
288
- * @returns {string}
289
- */
290
- declare function HMAC(message: string, key: string): Promise<string>;
291
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
292
- type EventSet = Record<string, (...args: any[]) => void>;
293
- interface EventEmitterType<ESet extends EventSet> {
294
- on<EventName extends keyof ESet>(eventName: EventName, handler: ESet[EventName]): void;
295
- once<EventName extends keyof ESet>(eventName: EventName, handler: ESet[EventName]): void;
296
- off<EventName extends keyof ESet>(eventName: EventName, handler: ESet[EventName]): void;
297
- offAll(): void;
298
- emit<EventName extends keyof ESet>(eventName: EventName, ...args: Parameters<ESet[EventName]>): void;
299
- }
300
- declare class EventEmitter<ESet extends EventSet> implements EventEmitterType<EventSet> {
301
- private events;
302
- on<EventName extends keyof ESet>(eventName: EventName, handler: ESet[EventName]): void;
303
- once<EventName extends keyof ESet>(eventName: EventName, handler: ESet[EventName]): void;
304
- off<EventName extends keyof ESet>(eventName: EventName, handler: ESet[EventName]): void;
305
- offAll(): void;
306
- emit<EventName extends keyof ESet>(eventName: EventName, ...args: Parameters<ESet[EventName]>): void;
307
- private addEventListener;
308
- }
309
- declare const Helpers: {
310
- getAuthHash: typeof HMAC;
311
- };
312
- /**
313
- * Integry JS SDK
314
- */
315
- declare class IntegryJS {
316
- static SDK_VERSION: string;
317
- private config;
318
- private apiHandler;
319
- eventEmitter: EventEmitter<IntegrySDKEvents>;
320
- static html: (strings: TemplateStringsArray, ...values: any[]) => import("preact").VNode<{}>;
321
- static RenderModes: typeof TemplateFormRenderModes;
322
- static Helpers: {
323
- getAuthHash: (key: string, message: string) => Promise<string>;
324
- };
325
- private authModalId;
326
- private forceRerender;
327
- constructor(config: ConfigWithObject | ConfigWithUrlParams);
328
- /**
329
- *
330
- * @param length Length of string to randomly generate
331
- * @returns {string} Returns a random string
332
- */
333
- private getRandomFlowId;
334
- private getAuthParamsFromUrl;
335
- /**
336
- * Prints version number of this SDK version
337
- */
338
- printVersion: () => void;
339
- /**
340
- *
341
- * @param renderMode
342
- * @param templateContainerId
343
- * @returns {HTMLElement | null}
344
- */
345
- private setupFlowFormDestination;
346
- /**
347
- * Render the template form we ship
348
- * @param data
349
- */
350
- renderFlowSetupForm: (data: {
351
- flowId?: string;
352
- integrationId?: number;
353
- flowContainerId: string;
354
- }) => void;
355
- /**
356
- * Render the template form we ship
357
- * @param data
358
- */
359
- renderAccountConnectionModal: (data?: {
360
- deploymentId?: string | undefined;
361
- appId?: number | undefined;
362
- authTypeId?: number | undefined;
363
- } | undefined) => void;
364
- /**
365
- * Render the template form we ship
366
- * @param params
367
- */
368
- renderPreview: (params: PreviewPayload) => void;
369
- /**
370
- *
371
- * @param initConfig
372
- */
373
- init: (initConfig: InitConfig) => void;
374
- verifyAuthConfig: () => Promise<{
375
- /**
376
- * Render the template form we ship
377
- * @param params
378
- */
379
- config_verified: boolean;
380
- } | null>;
381
- /**
382
- * Destroy SDK instance and cleanup store
383
- */
384
- destroy: () => void;
385
- }
386
- export { IntegryJS, Helpers, html };
1
+ import { html } from 'htm/preact';
2
+ import { VNode } from "preact";
3
+ type IntegrySDKEvents = {
4
+ ready: ({ deploymentId }: {
5
+ deploymentId: number;
6
+ }) => void;
7
+ "should-load-flow": ({ templateId, flowId }: {
8
+ templateId: number;
9
+ flowId: number;
10
+ }) => void;
11
+ "did-load-flows": ({ flows }: {
12
+ flows: any[];
13
+ }) => void;
14
+ "did-load-integrations": ({ integrations }: {
15
+ integrations: any[];
16
+ }) => void;
17
+ "did-load-flow": (data: {
18
+ flowId: number;
19
+ flowTitle: string;
20
+ flowDescription: string;
21
+ templateId: number;
22
+ templateTitle: string;
23
+ templateDescription: string;
24
+ }) => void;
25
+ "did-load-integration": (data: {
26
+ flowId: number;
27
+ integrationId: number;
28
+ }) => void;
29
+ "did-save-integration": (data: {
30
+ integrationId: number;
31
+ name: string;
32
+ templateId: number;
33
+ flowId: number;
34
+ status: string;
35
+ callbackUrl: string | null;
36
+ event: "EDIT" | "CREATE";
37
+ authorizations: {
38
+ authorizationId: number;
39
+ userIdentity: string;
40
+ isBrandingAppAuth: boolean;
41
+ }[];
42
+ steps:
43
+ /**
44
+ * Integry JS SDK
45
+ */
46
+ {
47
+ /**
48
+ * Integry JS SDK
49
+ */
50
+ id: number;
51
+ authorization: number | null;
52
+ template_step: number;
53
+ app_user_data: {
54
+ id: number;
55
+ value: string | null;
56
+ template_field: number;
57
+ }[];
58
+ }[];
59
+ }) => void;
60
+ "did-load-preview": (data: {
61
+ flowId: number;
62
+ flowTitle: string;
63
+ flowDescription: string;
64
+ }) => void;
65
+ "did-change-step": (data: {
66
+ stepId: number;
67
+ stepType: "AUTH" | "CONFIGURATION" | "SECTION" | "CONFIRMATION";
68
+ }) => void;
69
+ "did-add-authorization": (data: {
70
+ identity: string;
71
+ authorizationId: number;
72
+ flowId: number | null;
73
+ appId: number;
74
+ appName: string;
75
+ appIcon: string;
76
+ alreadyExists: boolean;
77
+ externalId?: string;
78
+ }) => void;
79
+ "did-fail-authorization-verification": (data: {
80
+ identity: string;
81
+ authorizationId: number;
82
+ flowId: number | null;
83
+ appId: number;
84
+ appName: string;
85
+ appIcon: string;
86
+ alreadyExists: boolean;
87
+ }) => void;
88
+ "did-select-authorization": (data: {
89
+ authorizationId: number;
90
+ }) => void;
91
+ "did-remove-authorization": (data: {
92
+ authorizationId: number;
93
+ }) => void;
94
+ "did-begin-remove-authorization": (data: {
95
+ authorizationId: number;
96
+ }) => void;
97
+ };
98
+ declare enum TemplateFormRenderModes {
99
+ MODAL = "MODAL",
100
+ INLINE = "INLINE",
101
+ DETACHED = "DETACHED",
102
+ CUSTOM = "CUSTOM"
103
+ }
104
+ declare enum TemplateListingRenderModes {
105
+ GRID = "GRID",
106
+ LIST = "LIST"
107
+ }
108
+ type Authorization = {
109
+ id: number;
110
+ authorization_type: string;
111
+ app_user?: number;
112
+ app_user_id?: number;
113
+ disable_link?: string;
114
+ integration_count?: number;
115
+ user_identity: string;
116
+ };
117
+ type FlowCardProps = {
118
+ imgUrl: string;
119
+ name: string;
120
+ description: string;
121
+ tags: string;
122
+ layout: TemplateListingRenderModes;
123
+ handleClick: () => void;
124
+ };
125
+ interface UserConfig {
126
+ availableFlowsLabel?: string;
127
+ myFlowsLabel?: string;
128
+ hideWebhookUrlScreen?: boolean;
129
+ hideAppConnectionModal?: boolean;
130
+ customComponents?: {
131
+ flowCard?: (props: FlowCardProps) => VNode;
132
+ };
133
+ autoRedirectToMyFlows?: boolean;
134
+ }
135
+ interface SDKConfig {
136
+ env?: "staging" | "production";
137
+ debug?: boolean;
138
+ integrationId?: number;
139
+ xIntegryConfig?: {
140
+ isAnonymous?: boolean;
141
+ appAuth?: {
142
+ apiKey?: string;
143
+ authId?: string;
144
+ extras?: Record<string, string | number>;
145
+ };
146
+ };
147
+ userConfig?: UserConfig;
148
+ }
149
+ interface ConfigWithObject extends SDKConfig {
150
+ appKey: string;
151
+ hash: string;
152
+ userId: string;
153
+ deploymentId: string;
154
+ }
155
+ interface ConfigWithUrlParams extends SDKConfig {
156
+ useUrlParams?: boolean;
157
+ }
158
+ type App = {
159
+ id: number;
160
+ name: string;
161
+ description: string;
162
+ icon_url: string;
163
+ color: string;
164
+ publishing_status: string;
165
+ category: string[];
166
+ app_type?: string;
167
+ action_url?: string | null;
168
+ created_at?: Date;
169
+ tags: string;
170
+ };
171
+ type Activity = {
172
+ id: number;
173
+ name: string;
174
+ type: string;
175
+ endpoint: string;
176
+ auth_required: boolean;
177
+ total_fields: number;
178
+ app: App;
179
+ activity_output: string | null;
180
+ activity_output_url: string | null;
181
+ dynamic_field_data_endpoint: string | null;
182
+ };
183
+ type AuthorizationType = {
184
+ id: number;
185
+ type: string;
186
+ authorizations: Authorization[];
187
+ provider: string;
188
+ is_sandbox_enabled: boolean;
189
+ authorization_url_sandbox: string;
190
+ };
191
+ interface TemplateField {
192
+ id: number;
193
+ is_required: boolean;
194
+ is_hidden: boolean;
195
+ default_value: string | null;
196
+ weight: number;
197
+ description: string;
198
+ summary: string | null;
199
+ activity_field: {
200
+ id: number;
201
+ machine_name: string;
202
+ type: string;
203
+ title: string;
204
+ description: string;
205
+ weight: number;
206
+ is_required: boolean;
207
+ child_fields: string | null;
208
+ placeholder: string | null;
209
+ is_dynamic: boolean;
210
+ data_src: string | null;
211
+ data_src_endpoint: number | null;
212
+ parent_fields: string | null;
213
+ dynamic_field_src: string | null;
214
+ default_value: string | null;
215
+ auto_machine_name: string;
216
+ dynamic_field_src_endpoint: number | null;
217
+ regex: string | null;
218
+ regex_error_message?: string | null;
219
+ is_searchable: boolean;
220
+ conditional_fields?: string | null;
221
+ } | null;
222
+ title: string | null;
223
+ type: string;
224
+ placeholder: string | null;
225
+ // manual_template: unknown | null;
226
+ child_field: string | null;
227
+ child_field_value: string | null;
228
+ // template_fields: unknown[];
229
+ button_text: string | null;
230
+ // field_actions: unknown[];
231
+ icon_url: string | null;
232
+ long_description: string | null;
233
+ regex: string | null;
234
+ regex_msg: string | null;
235
+ is_visible: boolean;
236
+ app_user_data?: {
237
+ app_user: number;
238
+ id: number;
239
+ value: string | number;
240
+ }[];
241
+ added_in_mapping?: boolean;
242
+ field_mapping_source?: string;
243
+ }
244
+ interface TemplateStep {
245
+ id: number;
246
+ weight: number;
247
+ title: string;
248
+ is_visible: boolean;
249
+ activity: Activity;
250
+ authorization_type: AuthorizationType;
251
+ template_fields: TemplateField[];
252
+ step_instance?: number | null;
253
+ allow_multiple_authorizations: boolean;
254
+ step_authorization: number | null;
255
+ button_text: string | null;
256
+ is_self_step: boolean;
257
+ summary: string | null;
258
+ is_workspace_app_step: boolean;
259
+ auth_description: string | null;
260
+ hide_authorization: boolean;
261
+ // step_condition: unknown | null;
262
+ machine_name: string | null;
263
+ is_custom_machine_name: boolean;
264
+ }
265
+ interface InitConfig {
266
+ containerId: string;
267
+ templateContainerId?: string;
268
+ renderMode: TemplateFormRenderModes;
269
+ }
270
+ interface TemplatePreviewData {
271
+ id: number;
272
+ name: string;
273
+ description: string;
274
+ app: App;
275
+ branding_app: App;
276
+ button_text: string | null;
277
+ is_wizard: boolean;
278
+ publishing_status: string;
279
+ level?: number;
280
+ parent_id?: number;
281
+ steps: TemplateStep[];
282
+ }
283
+ interface PreviewMetadata {
284
+ stepId: number | null;
285
+ type: "AUTH" | "CONFIGURATION" | "CONFIRMATION" | "SECTION";
286
+ }
287
+ interface PreviewPayload {
288
+ templateData: TemplatePreviewData;
289
+ metadata: PreviewMetadata;
290
+ previewContainerId: string;
291
+ }
292
+ /**
293
+ *
294
+ * @param key Key to sign hash
295
+ * @param message Message to hash
296
+ * @returns {string}
297
+ */
298
+ declare function HMAC(message: string, key: string): Promise<string>;
299
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
300
+ type EventSet = Record<string, (...args: any[]) => void>;
301
+ interface EventEmitterType<ESet extends EventSet> {
302
+ on<EventName extends keyof ESet>(eventName: EventName, handler: ESet[EventName]): void;
303
+ once<EventName extends keyof ESet>(eventName: EventName, handler: ESet[EventName]): void;
304
+ off<EventName extends keyof ESet>(eventName: EventName, handler: ESet[EventName]): void;
305
+ offAll(): void;
306
+ emit<EventName extends keyof ESet>(eventName: EventName, ...args: Parameters<ESet[EventName]>): void;
307
+ }
308
+ declare class EventEmitter<ESet extends EventSet> implements EventEmitterType<EventSet> {
309
+ private events;
310
+ on<EventName extends keyof ESet>(eventName: EventName, handler: ESet[EventName]): void;
311
+ once<EventName extends keyof ESet>(eventName: EventName, handler: ESet[EventName]): void;
312
+ off<EventName extends keyof ESet>(eventName: EventName, handler: ESet[EventName]): void;
313
+ offAll(): void;
314
+ emit<EventName extends keyof ESet>(eventName: EventName, ...args: Parameters<ESet[EventName]>): void;
315
+ private addEventListener;
316
+ }
317
+ declare const Helpers: {
318
+ getAuthHash: typeof HMAC;
319
+ };
320
+ /**
321
+ * Integry JS SDK
322
+ */
323
+ declare class IntegryJS {
324
+ static SDK_VERSION: string;
325
+ private config;
326
+ private apiHandler;
327
+ eventEmitter: EventEmitter<IntegrySDKEvents>;
328
+ static html: (strings: TemplateStringsArray, ...values: any[]) => import("preact").VNode<{}>;
329
+ static RenderModes: typeof TemplateFormRenderModes;
330
+ static Helpers: {
331
+ getAuthHash: (key: string, message: string) => Promise<string>;
332
+ };
333
+ private authModalId;
334
+ private forceRerender;
335
+ constructor(config: ConfigWithObject | ConfigWithUrlParams);
336
+ /**
337
+ *
338
+ * @param length Length of string to randomly generate
339
+ * @returns {string} Returns a random string
340
+ */
341
+ private getRandomFlowId;
342
+ private getAuthParamsFromUrl;
343
+ /**
344
+ * Prints version number of this SDK version
345
+ */
346
+ printVersion: () => void;
347
+ /**
348
+ *
349
+ * @param renderMode
350
+ * @param templateContainerId
351
+ * @returns {HTMLElement | null}
352
+ */
353
+ private setupFlowFormDestination;
354
+ /**
355
+ * Render the template form we ship
356
+ * @param data
357
+ */
358
+ renderFlowSetupForm: (data: {
359
+ flowId?: string;
360
+ integrationId?: number;
361
+ flowContainerId: string;
362
+ }) => void;
363
+ /**
364
+ * Render the template form we ship
365
+ * @param data
366
+ */
367
+ renderAccountConnectionModal: (data?: {
368
+ deploymentId?: string | undefined;
369
+ appId?: number | undefined;
370
+ authTypeId?: number | undefined;
371
+ } | undefined) => void;
372
+ /**
373
+ * Render the template form we ship
374
+ * @param params
375
+ */
376
+ renderPreview: (params: PreviewPayload) => void;
377
+ /**
378
+ *
379
+ * @param initConfig
380
+ */
381
+ init: (initConfig: InitConfig) => void;
382
+ verifyAuthConfig: () => Promise<{
383
+ config_verified: boolean;
384
+ } | null>;
385
+ /**
386
+ * Destroy SDK instance and cleanup store
387
+ */
388
+ destroy: () => void;
389
+ }
390
+ export { IntegryJS, Helpers, html };