@posiwise/app-config-service 0.0.106 → 0.0.108

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,347 +1,360 @@
1
- import * as rxjs from 'rxjs';
2
- import { BehaviorSubject } from 'rxjs';
3
- import { HttpClient } from '@angular/common/http';
4
- import { Router } from '@angular/router';
5
- import * as i0 from '@angular/core';
6
-
1
+ import { HttpClient } from "@angular/common/http";
2
+ import { Router } from "@angular/router";
3
+ import { BehaviorSubject } from "rxjs";
4
+ import * as i0 from "@angular/core";
7
5
  interface Company {
8
- logos?: {
9
- main?: {
10
- url?: string;
11
- };
6
+ logos?: {
7
+ main?: {
8
+ url?: string;
12
9
  };
13
- name?: string;
14
- number?: string;
15
- state?: string;
16
- street?: string;
17
- email?: string;
18
- city?: string;
19
- city_code?: string;
10
+ };
11
+ name?: string;
12
+ number?: string;
13
+ state?: string;
14
+ street?: string;
15
+ email?: string;
16
+ city?: string;
17
+ city_code?: string;
20
18
  }
21
19
  interface ColorCodes {
22
- titles?: string;
23
- first?: string;
24
- text?: string;
25
- dashboard_bg?: string;
20
+ titles?: string;
21
+ first?: string;
22
+ text?: string;
23
+ dashboard_bg?: string;
26
24
  }
27
25
  interface Links {
28
- integrations_api?: string;
29
- frontend_link?: string;
30
- socket_link?: string;
31
- main_api?: string;
32
- products_api?: string;
33
- brain_api?: string;
34
- cloudolive_api?: string;
35
- /**
36
- * Dedicated WebSocket host for the Brain chat push socket (ticket #45).
37
- * Browsers open the WS here; serves /brain-api/v1/ws on an internet-facing
38
- * ALB. Distinct from the api-gateway-routed `brain_api` URL, which strips
39
- * the WebSocket `Upgrade` header. Surfaced from main-api as
40
- * `links.mcp_socket_link`, sourced from `endpoints.brain_api.websocket_url`.
41
- * e.g. `https://brain-api-websocket.dev.posiwise.com/brain-api/v1/`.
42
- * Null when brain-api WebSocket endpoint is not configured for the environment.
43
- */
44
- mcp_socket_link?: string | null;
45
- /** Null when Kinesis WebSocket is not configured for the environment. */
46
- kinesis_socket_link?: string | null;
47
- /**
48
- * Dedicated WebSocket host for the Voice Chat surface on posiwise-voice-api
49
- * (ticket #58). Browsers open the WS here; serves /voice-api/v1/converse on
50
- * an internet-facing ALB. Distinct from the api-gateway-routed `voice_api`
51
- * URL (when defined), which strips the WebSocket `Upgrade` header. Surfaced
52
- * from main-api as `links.voice_socket_link`, sourced from
53
- * `endpoints.voice_api.websocket_url` in the voice-api Vault config.
54
- * e.g. `https://voice-api-websocket.dev.posiwise.com/voice-api/v1/`.
55
- * Null when voice-api WebSocket endpoint is not configured for the env —
56
- * the Voice Chat button stays hidden client-side until this is set.
57
- */
58
- voice_socket_link?: string | null;
59
- [key: string]: string | null | undefined;
26
+ integrations_api?: string;
27
+ frontend_link?: string;
28
+ socket_link?: string;
29
+ main_api?: string;
30
+ products_api?: string;
31
+ brain_api?: string;
32
+ cloudolive_api?: string;
33
+ /**
34
+ * Dedicated WebSocket host for the Brain chat push socket (ticket #45).
35
+ * Browsers open the WS here; serves /brain-api/v1/ws on an internet-facing
36
+ * ALB. Distinct from the api-gateway-routed `brain_api` URL, which strips
37
+ * the WebSocket `Upgrade` header. Surfaced from main-api as
38
+ * `links.mcp_socket_link`, sourced from `endpoints.brain_api.websocket_url`.
39
+ * e.g. `https://brain-api-websocket.dev.posiwise.com/brain-api/v1/`.
40
+ * Null when brain-api WebSocket endpoint is not configured for the environment.
41
+ */
42
+ mcp_socket_link?: string | null;
43
+ /** Null when Kinesis WebSocket is not configured for the environment. */
44
+ kinesis_socket_link?: string | null;
45
+ /**
46
+ * Dedicated WebSocket host for the Voice Chat surface on posiwise-voice-api
47
+ * (ticket #58). Browsers open the WS here; serves /voice-api/v1/converse on
48
+ * an internet-facing ALB. Distinct from the api-gateway-routed `voice_api`
49
+ * URL (when defined), which strips the WebSocket `Upgrade` header. Surfaced
50
+ * from main-api as `links.voice_socket_link`, sourced from
51
+ * `endpoints.voice_api.websocket_url` in the voice-api Vault config.
52
+ * e.g. `https://voice-api-websocket.dev.posiwise.com/voice-api/v1/`.
53
+ * Null when voice-api WebSocket endpoint is not configured for the env —
54
+ * the Voice Chat button stays hidden client-side until this is set.
55
+ */
56
+ voice_socket_link?: string | null;
57
+ [key: string]: string | null | undefined;
60
58
  }
61
59
  interface Integrations {
62
- google_api_key: string;
63
- google_analytics?: string;
64
- sentry_config?: SentryConfig;
60
+ google_api_key: string;
61
+ google_analytics?: string;
62
+ sentry_config?: SentryConfig;
65
63
  }
66
64
  interface SentryConfig {
67
- dsn: string;
68
- environment?: string;
69
- [key: string]: unknown;
65
+ dsn: string;
66
+ environment?: string;
67
+ [key: string]: unknown;
70
68
  }
71
69
  interface DecryptedData {
72
- integrations: Integrations;
73
- social_login_enabled?: boolean;
74
- oauth_login?: unknown;
75
- company?: Company;
76
- color_codes?: ColorCodes;
77
- links?: Links;
78
- url?: string;
79
- host_name?: string;
70
+ integrations: Integrations;
71
+ social_login_enabled?: boolean;
72
+ oauth_login?: unknown;
73
+ company?: Company;
74
+ color_codes?: ColorCodes;
75
+ links?: Links;
76
+ url?: string;
77
+ host_name?: string;
78
+ }
79
+ interface ApiResponse {
80
+ type?: string;
81
+ integrations: {
82
+ google_api_key: string;
83
+ };
84
+ social_login_enabled: boolean;
85
+ oauth_login: {
86
+ clientId: string;
87
+ clientSecret?: string;
88
+ redirectUri: string;
89
+ scopes?: string[];
90
+ authorizationEndpoint: string;
91
+ tokenEndpoint?: string;
92
+ userInfoEndpoint?: string;
93
+ responseType: string;
94
+ grantType?: string;
95
+ state?: string;
96
+ } | null;
80
97
  }
81
-
82
- declare class AppConfigService {
83
- private readonly api;
84
- private readonly router;
85
- private decryptedData;
86
- private googleApiKey;
87
- protected appConfigSubject$: BehaviorSubject<DecryptedData>;
88
- appConfig$: rxjs.Observable<DecryptedData>;
89
- constructor(api: HttpClient, router: Router);
90
- load(environment: any): Promise<unknown>;
91
- getGoogleApiKey(): string;
92
- static ɵfac: i0.ɵɵFactoryDeclaration<AppConfigService, never>;
93
- static ɵprov: i0.ɵɵInjectableDeclaration<AppConfigService>;
98
+ export declare class AppConfigService {
99
+ private readonly api;
100
+ private readonly router;
101
+ private decryptedData;
102
+ private googleApiKey;
103
+ protected appConfigSubject$: BehaviorSubject<DecryptedData>;
104
+ appConfig$: import("rxjs").Observable<DecryptedData>;
105
+ constructor(api: HttpClient, router: Router);
106
+ load(environment: any): Promise<unknown>;
107
+ getGoogleApiKey(): string;
108
+ static ɵfac: i0.ɵɵFactoryDeclaration<AppConfigService, never>;
109
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
94
110
  }
95
-
96
- declare class AppConfigServiceStub extends AppConfigService {
97
- commonConfigFields: {
111
+ export declare class AppConfigServiceStub extends AppConfigService {
112
+ commonConfigFields: {
113
+ join_message: any;
114
+ product_id: number;
115
+ image: {
116
+ url: string;
117
+ };
118
+ image2: {
119
+ url: string;
120
+ };
121
+ image_bg: {
122
+ url: string;
123
+ };
124
+ image_bg2: {
125
+ url: string;
126
+ };
127
+ video_url: string;
128
+ book_demo_url: any;
129
+ source_id: any;
130
+ pdf_source_id: any;
131
+ pdf_image: {
132
+ url: string;
133
+ };
134
+ pdf_download_text: string;
135
+ cta_iframe: string;
136
+ cs_cta_iframe: string;
137
+ trial_cta_iframe: string;
138
+ };
139
+ config: {
140
+ links: {
141
+ frontend_link: string;
142
+ socket_link: string;
143
+ main_api: string;
144
+ products_api: string;
145
+ integrations_api: string;
146
+ cloudolive_api: string;
147
+ mcp_socket_link: string;
148
+ };
149
+ url: string;
150
+ company: {
151
+ number: string;
152
+ name: string;
153
+ keywords: string;
154
+ street: string;
155
+ city: string;
156
+ city_code: string;
157
+ state: string;
158
+ phone_number: string;
159
+ description: string;
160
+ email: string;
161
+ website: string;
162
+ blog_product_key: string;
163
+ logos: {
164
+ header_squared_main: {
165
+ url: any;
166
+ version_200x200: {
167
+ url: any;
168
+ };
169
+ version_100x100: {
170
+ url: any;
171
+ };
172
+ version_50x50: {
173
+ url: any;
174
+ };
175
+ };
176
+ header_squared_dark: {
177
+ url: any;
178
+ version_200x200: {
179
+ url: any;
180
+ };
181
+ version_100x100: {
182
+ url: any;
183
+ };
184
+ version_50x50: {
185
+ url: any;
186
+ };
187
+ };
188
+ header_squared_contrast: {
189
+ url: any;
190
+ version_200x200: {
191
+ url: any;
192
+ };
193
+ version_100x100: {
194
+ url: any;
195
+ };
196
+ version_50x50: {
197
+ url: any;
198
+ };
199
+ };
200
+ main: {
201
+ url: string;
202
+ };
203
+ main_dark: {
204
+ url: string;
205
+ version_100x100: {
206
+ url: string;
207
+ };
208
+ };
209
+ main_contrast: {
210
+ url: string;
211
+ };
212
+ };
213
+ };
214
+ main_app_title: string;
215
+ favicon_path: string;
216
+ twitter_seo: {
217
+ card: string;
218
+ site: string;
219
+ creator: string;
220
+ };
221
+ color_codes: {
222
+ first: string;
223
+ second: string;
224
+ third: string;
225
+ titles: string;
226
+ text: string;
227
+ tabs_bg: string;
228
+ tabs_text: string;
229
+ sidebar_bg: string;
230
+ sidebar_text: string;
231
+ };
232
+ social: {
233
+ linkedin_url: string;
234
+ twitter_url: string;
235
+ facebook_url: string;
236
+ youtube_url: string;
237
+ };
238
+ can_register_through_main_page: boolean;
239
+ is_product_domain: boolean;
240
+ social_login_enabled: boolean;
241
+ main_tos_id: number;
242
+ crm: {
243
+ subscription_id: number;
244
+ source_id: number;
245
+ product_id: number;
246
+ };
247
+ master_subscription: {
248
+ subscription_id: number;
249
+ product_id: number;
250
+ };
251
+ signup_config: {
252
+ coming_soon: {
98
253
  join_message: any;
99
254
  product_id: number;
100
255
  image: {
101
- url: string;
256
+ url: string;
102
257
  };
103
258
  image2: {
104
- url: string;
259
+ url: string;
105
260
  };
106
261
  image_bg: {
107
- url: string;
262
+ url: string;
108
263
  };
109
264
  image_bg2: {
110
- url: string;
265
+ url: string;
111
266
  };
112
267
  video_url: string;
113
268
  book_demo_url: any;
114
269
  source_id: any;
115
270
  pdf_source_id: any;
116
271
  pdf_image: {
117
- url: string;
272
+ url: string;
118
273
  };
119
274
  pdf_download_text: string;
120
275
  cta_iframe: string;
121
276
  cs_cta_iframe: string;
122
277
  trial_cta_iframe: string;
123
- };
124
- config: {
125
- links: {
126
- frontend_link: string;
127
- socket_link: string;
128
- main_api: string;
129
- products_api: string;
130
- integrations_api: string;
131
- cloudolive_api: string;
132
- mcp_socket_link: string;
278
+ };
279
+ freemium: {
280
+ join_message: any;
281
+ product_id: number;
282
+ image: {
283
+ url: string;
133
284
  };
134
- url: string;
135
- company: {
136
- number: string;
137
- name: string;
138
- keywords: string;
139
- street: string;
140
- city: string;
141
- city_code: string;
142
- state: string;
143
- phone_number: string;
144
- description: string;
145
- email: string;
146
- website: string;
147
- blog_product_key: string;
148
- logos: {
149
- header_squared_main: {
150
- url: any;
151
- version_200x200: {
152
- url: any;
153
- };
154
- version_100x100: {
155
- url: any;
156
- };
157
- version_50x50: {
158
- url: any;
159
- };
160
- };
161
- header_squared_dark: {
162
- url: any;
163
- version_200x200: {
164
- url: any;
165
- };
166
- version_100x100: {
167
- url: any;
168
- };
169
- version_50x50: {
170
- url: any;
171
- };
172
- };
173
- header_squared_contrast: {
174
- url: any;
175
- version_200x200: {
176
- url: any;
177
- };
178
- version_100x100: {
179
- url: any;
180
- };
181
- version_50x50: {
182
- url: any;
183
- };
184
- };
185
- main: {
186
- url: string;
187
- };
188
- main_dark: {
189
- url: string;
190
- version_100x100: {
191
- url: string;
192
- };
193
- };
194
- main_contrast: {
195
- url: string;
196
- };
197
- };
285
+ image2: {
286
+ url: string;
198
287
  };
199
- main_app_title: string;
200
- favicon_path: string;
201
- twitter_seo: {
202
- card: string;
203
- site: string;
204
- creator: string;
288
+ image_bg: {
289
+ url: string;
205
290
  };
206
- color_codes: {
207
- first: string;
208
- second: string;
209
- third: string;
210
- titles: string;
211
- text: string;
212
- tabs_bg: string;
213
- tabs_text: string;
214
- sidebar_bg: string;
215
- sidebar_text: string;
291
+ image_bg2: {
292
+ url: string;
216
293
  };
217
- social: {
218
- linkedin_url: string;
219
- twitter_url: string;
220
- facebook_url: string;
221
- youtube_url: string;
294
+ video_url: string;
295
+ book_demo_url: any;
296
+ source_id: any;
297
+ pdf_source_id: any;
298
+ pdf_image: {
299
+ url: string;
222
300
  };
223
- can_register_through_main_page: boolean;
224
- is_product_domain: boolean;
225
- social_login_enabled: boolean;
226
- main_tos_id: number;
227
- crm: {
228
- subscription_id: number;
229
- source_id: number;
230
- product_id: number;
301
+ pdf_download_text: string;
302
+ cta_iframe: string;
303
+ cs_cta_iframe: string;
304
+ trial_cta_iframe: string;
305
+ };
306
+ trial: {
307
+ join_message: any;
308
+ product_id: number;
309
+ image: {
310
+ url: string;
231
311
  };
232
- master_subscription: {
233
- subscription_id: number;
234
- product_id: number;
312
+ image2: {
313
+ url: string;
235
314
  };
236
- signup_config: {
237
- coming_soon: {
238
- join_message: any;
239
- product_id: number;
240
- image: {
241
- url: string;
242
- };
243
- image2: {
244
- url: string;
245
- };
246
- image_bg: {
247
- url: string;
248
- };
249
- image_bg2: {
250
- url: string;
251
- };
252
- video_url: string;
253
- book_demo_url: any;
254
- source_id: any;
255
- pdf_source_id: any;
256
- pdf_image: {
257
- url: string;
258
- };
259
- pdf_download_text: string;
260
- cta_iframe: string;
261
- cs_cta_iframe: string;
262
- trial_cta_iframe: string;
263
- };
264
- freemium: {
265
- join_message: any;
266
- product_id: number;
267
- image: {
268
- url: string;
269
- };
270
- image2: {
271
- url: string;
272
- };
273
- image_bg: {
274
- url: string;
275
- };
276
- image_bg2: {
277
- url: string;
278
- };
279
- video_url: string;
280
- book_demo_url: any;
281
- source_id: any;
282
- pdf_source_id: any;
283
- pdf_image: {
284
- url: string;
285
- };
286
- pdf_download_text: string;
287
- cta_iframe: string;
288
- cs_cta_iframe: string;
289
- trial_cta_iframe: string;
290
- };
291
- trial: {
292
- join_message: any;
293
- product_id: number;
294
- image: {
295
- url: string;
296
- };
297
- image2: {
298
- url: string;
299
- };
300
- image_bg: {
301
- url: string;
302
- };
303
- image_bg2: {
304
- url: string;
305
- };
306
- video_url: string;
307
- book_demo_url: any;
308
- source_id: any;
309
- pdf_source_id: any;
310
- pdf_image: {
311
- url: string;
312
- };
313
- pdf_download_text: string;
314
- cta_iframe: string;
315
- cs_cta_iframe: string;
316
- trial_cta_iframe: string;
317
- };
315
+ image_bg: {
316
+ url: string;
318
317
  };
319
- integrations: {
320
- sentry_config: {
321
- dsn: string;
322
- };
323
- drift_code: string;
324
- fb_app_id: string;
325
- captcha_key: string;
326
- captcha_key_V2: string;
327
- google_analytics: string;
328
- google_api_key: string;
318
+ image_bg2: {
319
+ url: string;
329
320
  };
330
- oauth_login: {
331
- google: {
332
- client_id: string;
333
- };
334
- facebook: {
335
- client_id: string;
336
- };
337
- linkedin: {
338
- client_id: string;
339
- };
321
+ video_url: string;
322
+ book_demo_url: any;
323
+ source_id: any;
324
+ pdf_source_id: any;
325
+ pdf_image: {
326
+ url: string;
340
327
  };
328
+ pdf_download_text: string;
329
+ cta_iframe: string;
330
+ cs_cta_iframe: string;
331
+ trial_cta_iframe: string;
332
+ };
341
333
  };
342
- load(): Promise<unknown>;
343
- static ɵfac: i0.ɵɵFactoryDeclaration<AppConfigServiceStub, never>;
344
- static ɵprov: i0.ɵɵInjectableDeclaration<AppConfigServiceStub>;
345
- }
346
-
347
- export { AppConfigService, AppConfigServiceStub };
334
+ integrations: {
335
+ sentry_config: {
336
+ dsn: string;
337
+ };
338
+ drift_code: string;
339
+ fb_app_id: string;
340
+ captcha_key: string;
341
+ captcha_key_V2: string;
342
+ google_analytics: string;
343
+ google_api_key: string;
344
+ };
345
+ oauth_login: {
346
+ google: {
347
+ client_id: string;
348
+ };
349
+ facebook: {
350
+ client_id: string;
351
+ };
352
+ linkedin: {
353
+ client_id: string;
354
+ };
355
+ };
356
+ };
357
+ load(): Promise<unknown>;
358
+ static ɵfac: i0.ɵɵFactoryDeclaration<AppConfigServiceStub, never>;
359
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
360
+ }