commandbar 1.10.0 → 1.10.2-alpha

Sign up to get free protection for your applications and to get access to all the features.
Files changed (52) hide show
  1. package/build/commandbar/src/shared/services/analytics/EventHandler.d.ts +7 -2
  2. package/build/commandbar/src/shared/services/analytics/event-queue.d.ts +13 -0
  3. package/build/commandbar/src/shared/services/analytics/types.d.ts +1 -1
  4. package/build/commandbar/src/shared/services/analytics/v2/client.d.ts +54 -0
  5. package/build/commandbar/src/shared/services/analytics/v2/helpers.d.ts +6 -0
  6. package/build/commandbar/src/shared/services/analytics/v2/schema.d.ts +152 -0
  7. package/build/commandbar/src/shared/services/analytics/v2/types.d.ts +4 -0
  8. package/build/commandbar-js/src/index.d.ts +0 -1
  9. package/build/commandbar-js/src/index.js +1 -1
  10. package/build/commandbar-js/src/snippet.d.ts +7 -1
  11. package/build/internal/src/client/CommandBarClientSDK.d.ts +12 -0
  12. package/build/internal/src/client/CommandBarProxySDK.d.ts +1 -4
  13. package/build/internal/src/client/CommandBarSDK.d.ts +8 -4
  14. package/build/internal/src/client/SDKConfig.d.ts +3 -1
  15. package/build/internal/src/client/globals.d.ts +1 -0
  16. package/build/internal/src/client/symbols.d.ts +5 -1
  17. package/build/internal/src/middleware/CommandFromClientV.d.ts +16 -2
  18. package/build/internal/src/middleware/OrganizationV.d.ts +42 -16
  19. package/build/internal/src/middleware/additionalResource.d.ts +9 -9
  20. package/build/internal/src/middleware/api.d.ts +173 -0
  21. package/build/internal/src/middleware/billing.d.ts +10 -0
  22. package/build/internal/src/middleware/chat.d.ts +3662 -172
  23. package/build/internal/src/middleware/checklist.d.ts +18 -10
  24. package/build/internal/src/middleware/command.d.ts +540 -140
  25. package/build/internal/src/middleware/endUser.d.ts +2 -0
  26. package/build/internal/src/middleware/experienceTemplate.d.ts +2874 -8
  27. package/build/internal/src/middleware/experiencesSearch.d.ts +233 -28
  28. package/build/internal/src/middleware/flags.d.ts +14 -1
  29. package/build/internal/src/middleware/generics.d.ts +1 -0
  30. package/build/internal/src/middleware/helpDocsIntegration.d.ts +98 -0
  31. package/build/internal/src/middleware/helpDocsSearch.d.ts +165 -20
  32. package/build/internal/src/middleware/helpDocsSync.d.ts +4 -0
  33. package/build/internal/src/middleware/helpers/actions.d.ts +6 -6
  34. package/build/internal/src/middleware/helpers/commandTemplate.d.ts +2 -2
  35. package/build/internal/src/middleware/helpers/rules.d.ts +7 -7
  36. package/build/internal/src/middleware/localizedMessage.d.ts +50 -0
  37. package/build/internal/src/middleware/network.d.ts +8 -1
  38. package/build/internal/src/middleware/nudge.d.ts +96 -24
  39. package/build/internal/src/middleware/organization.d.ts +196 -78
  40. package/build/internal/src/middleware/organizationSettings.d.ts +8 -8
  41. package/build/internal/src/middleware/profile.d.ts +8 -0
  42. package/build/internal/src/middleware/recommendationSet.d.ts +18 -9
  43. package/build/internal/src/middleware/theme.d.ts +73 -60
  44. package/build/internal/src/middleware/types.d.ts +25 -6
  45. package/build/internal/src/middleware/user.d.ts +9 -1
  46. package/build/internal/src/middleware/workflow.d.ts +69 -0
  47. package/package.json +5 -2
  48. package/src/index.ts +0 -1
  49. package/src/init.ts +27 -12
  50. package/src/snippet.ts +79 -74
  51. package/build/internal/src/client/OrgConfig.d.ts +0 -5
  52. package/build/internal/src/middleware/guide.d.ts +0 -37
@@ -89,7 +89,7 @@ export declare const OrganizationSettingsV: t.TypeC<{
89
89
  }>]>, t.TypeC<{
90
90
  type: t.LiteralC<"open_chat">;
91
91
  meta: t.TypeC<{
92
- type: t.UnionC<[t.LiteralC<"intercom">, t.LiteralC<"helpscout">, t.LiteralC<"freshdesk">, t.LiteralC<"crisp">, t.LiteralC<"zendesk">, t.LiteralC<"liveChat">, t.LiteralC<"gist">, t.LiteralC<"olark">, t.LiteralC<"hubspot">, t.LiteralC<"drift">, t.LiteralC<"">]>;
92
+ type: t.UnionC<[t.LiteralC<"intercom">, t.LiteralC<"helpscout">, t.LiteralC<"freshdesk">, t.LiteralC<"freshchat">, t.LiteralC<"crisp">, t.LiteralC<"zendesk">, t.LiteralC<"liveChat">, t.LiteralC<"gist">, t.LiteralC<"olark">, t.LiteralC<"hubspot">, t.LiteralC<"drift">, t.LiteralC<"zendesk_handoff">, t.LiteralC<"">]>;
93
93
  }>;
94
94
  }>, t.TypeC<{
95
95
  type: t.LiteralC<"dismiss">;
@@ -144,7 +144,7 @@ export declare const OrganizationSettingsV: t.TypeC<{
144
144
  }>]>, t.TypeC<{
145
145
  type: t.LiteralC<"open_chat">;
146
146
  meta: t.TypeC<{
147
- type: t.UnionC<[t.LiteralC<"intercom">, t.LiteralC<"helpscout">, t.LiteralC<"freshdesk">, t.LiteralC<"crisp">, t.LiteralC<"zendesk">, t.LiteralC<"liveChat">, t.LiteralC<"gist">, t.LiteralC<"olark">, t.LiteralC<"hubspot">, t.LiteralC<"drift">, t.LiteralC<"">]>;
147
+ type: t.UnionC<[t.LiteralC<"intercom">, t.LiteralC<"helpscout">, t.LiteralC<"freshdesk">, t.LiteralC<"freshchat">, t.LiteralC<"crisp">, t.LiteralC<"zendesk">, t.LiteralC<"liveChat">, t.LiteralC<"gist">, t.LiteralC<"olark">, t.LiteralC<"hubspot">, t.LiteralC<"drift">, t.LiteralC<"zendesk_handoff">, t.LiteralC<"">]>;
148
148
  }>;
149
149
  }>, t.TypeC<{
150
150
  type: t.LiteralC<"dismiss">;
@@ -277,7 +277,7 @@ export declare const read: (params?: Record<string, string> | undefined, callbac
277
277
  }) | {
278
278
  type: "open_chat";
279
279
  meta: {
280
- type: "" | "intercom" | "helpscout" | "freshdesk" | "crisp" | "zendesk" | "liveChat" | "gist" | "olark" | "hubspot" | "drift";
280
+ type: "" | "intercom" | "helpscout" | "freshdesk" | "freshchat" | "crisp" | "zendesk" | "liveChat" | "gist" | "olark" | "hubspot" | "drift" | "zendesk_handoff";
281
281
  };
282
282
  } | {
283
283
  type: "dismiss";
@@ -332,7 +332,7 @@ export declare const read: (params?: Record<string, string> | undefined, callbac
332
332
  }) | {
333
333
  type: "open_chat";
334
334
  meta: {
335
- type: "" | "intercom" | "helpscout" | "freshdesk" | "crisp" | "zendesk" | "liveChat" | "gist" | "olark" | "hubspot" | "drift";
335
+ type: "" | "intercom" | "helpscout" | "freshdesk" | "freshchat" | "crisp" | "zendesk" | "liveChat" | "gist" | "olark" | "hubspot" | "drift" | "zendesk_handoff";
336
336
  };
337
337
  } | {
338
338
  type: "dismiss";
@@ -461,7 +461,7 @@ export declare const update: (object: {
461
461
  }) | {
462
462
  type: "open_chat";
463
463
  meta: {
464
- type: "" | "intercom" | "helpscout" | "freshdesk" | "crisp" | "zendesk" | "liveChat" | "gist" | "olark" | "hubspot" | "drift";
464
+ type: "" | "intercom" | "helpscout" | "freshdesk" | "freshchat" | "crisp" | "zendesk" | "liveChat" | "gist" | "olark" | "hubspot" | "drift" | "zendesk_handoff";
465
465
  };
466
466
  } | {
467
467
  type: "dismiss";
@@ -516,7 +516,7 @@ export declare const update: (object: {
516
516
  }) | {
517
517
  type: "open_chat";
518
518
  meta: {
519
- type: "" | "intercom" | "helpscout" | "freshdesk" | "crisp" | "zendesk" | "liveChat" | "gist" | "olark" | "hubspot" | "drift";
519
+ type: "" | "intercom" | "helpscout" | "freshdesk" | "freshchat" | "crisp" | "zendesk" | "liveChat" | "gist" | "olark" | "hubspot" | "drift" | "zendesk_handoff";
520
520
  };
521
521
  } | {
522
522
  type: "dismiss";
@@ -647,7 +647,7 @@ export declare const update: (object: {
647
647
  }) | {
648
648
  type: "open_chat";
649
649
  meta: {
650
- type: "" | "intercom" | "helpscout" | "freshdesk" | "crisp" | "zendesk" | "liveChat" | "gist" | "olark" | "hubspot" | "drift";
650
+ type: "" | "intercom" | "helpscout" | "freshdesk" | "freshchat" | "crisp" | "zendesk" | "liveChat" | "gist" | "olark" | "hubspot" | "drift" | "zendesk_handoff";
651
651
  };
652
652
  } | {
653
653
  type: "dismiss";
@@ -702,7 +702,7 @@ export declare const update: (object: {
702
702
  }) | {
703
703
  type: "open_chat";
704
704
  meta: {
705
- type: "" | "intercom" | "helpscout" | "freshdesk" | "crisp" | "zendesk" | "liveChat" | "gist" | "olark" | "hubspot" | "drift";
705
+ type: "" | "intercom" | "helpscout" | "freshdesk" | "freshchat" | "crisp" | "zendesk" | "liveChat" | "gist" | "olark" | "hubspot" | "drift" | "zendesk_handoff";
706
706
  };
707
707
  } | {
708
708
  type: "dismiss";
@@ -3,11 +3,19 @@ export declare const ProfileV: t.TypeC<{
3
3
  user: t.StringC;
4
4
  organization: t.StringC;
5
5
  is_active: t.BooleanC;
6
+ role: t.UnionC<[t.LiteralC<"admin">, t.LiteralC<"editor">, t.LiteralC<"contributor">, t.LiteralC<"viewer">]>;
7
+ first_name: t.StringC;
8
+ last_name: t.StringC;
9
+ email: t.StringC;
6
10
  }>;
7
11
  export declare class Profile {
8
12
  static list: (onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<{
9
13
  user: string;
10
14
  organization: string;
11
15
  is_active: boolean;
16
+ role: "admin" | "editor" | "contributor" | "viewer";
17
+ first_name: string;
18
+ last_name: string;
19
+ email: string;
12
20
  }[]>;
13
21
  }
@@ -45,7 +45,7 @@ export declare const RecommendationSetAdditionalV: t.TypeC<{
45
45
  }>]>, t.TypeC<{
46
46
  type: t.LiteralC<"open_chat">;
47
47
  meta: t.TypeC<{
48
- type: t.UnionC<[t.LiteralC<"intercom">, t.LiteralC<"helpscout">, t.LiteralC<"freshdesk">, t.LiteralC<"crisp">, t.LiteralC<"zendesk">, t.LiteralC<"liveChat">, t.LiteralC<"gist">, t.LiteralC<"olark">, t.LiteralC<"hubspot">, t.LiteralC<"drift">, t.LiteralC<"">]>;
48
+ type: t.UnionC<[t.LiteralC<"intercom">, t.LiteralC<"helpscout">, t.LiteralC<"freshdesk">, t.LiteralC<"freshchat">, t.LiteralC<"crisp">, t.LiteralC<"zendesk">, t.LiteralC<"liveChat">, t.LiteralC<"gist">, t.LiteralC<"olark">, t.LiteralC<"hubspot">, t.LiteralC<"drift">, t.LiteralC<"zendesk_handoff">, t.LiteralC<"">]>;
49
49
  }>;
50
50
  }>, t.TypeC<{
51
51
  type: t.LiteralC<"dismiss">;
@@ -74,6 +74,7 @@ export declare const RecommendationSetAdditionalV: t.TypeC<{
74
74
  }>]>;
75
75
  cta: t.StringC;
76
76
  }>>;
77
+ is_live: t.BooleanC;
77
78
  }>;
78
79
  export declare const RecommendationSetV: t.IntersectionC<[t.TypeC<{
79
80
  id: t.NumberC;
@@ -120,7 +121,7 @@ export declare const RecommendationSetV: t.IntersectionC<[t.TypeC<{
120
121
  }>]>, t.TypeC<{
121
122
  type: t.LiteralC<"open_chat">;
122
123
  meta: t.TypeC<{
123
- type: t.UnionC<[t.LiteralC<"intercom">, t.LiteralC<"helpscout">, t.LiteralC<"freshdesk">, t.LiteralC<"crisp">, t.LiteralC<"zendesk">, t.LiteralC<"liveChat">, t.LiteralC<"gist">, t.LiteralC<"olark">, t.LiteralC<"hubspot">, t.LiteralC<"drift">, t.LiteralC<"">]>;
124
+ type: t.UnionC<[t.LiteralC<"intercom">, t.LiteralC<"helpscout">, t.LiteralC<"freshdesk">, t.LiteralC<"freshchat">, t.LiteralC<"crisp">, t.LiteralC<"zendesk">, t.LiteralC<"liveChat">, t.LiteralC<"gist">, t.LiteralC<"olark">, t.LiteralC<"hubspot">, t.LiteralC<"drift">, t.LiteralC<"zendesk_handoff">, t.LiteralC<"">]>;
124
125
  }>;
125
126
  }>, t.TypeC<{
126
127
  type: t.LiteralC<"dismiss">;
@@ -149,6 +150,7 @@ export declare const RecommendationSetV: t.IntersectionC<[t.TypeC<{
149
150
  }>]>;
150
151
  cta: t.StringC;
151
152
  }>>;
153
+ is_live: t.BooleanC;
152
154
  }>]>;
153
155
  export declare class RecommendationSet {
154
156
  static decode: (data: any) => {
@@ -194,7 +196,7 @@ export declare class RecommendationSet {
194
196
  }) | {
195
197
  type: "open_chat";
196
198
  meta: {
197
- type: "" | "intercom" | "helpscout" | "freshdesk" | "crisp" | "zendesk" | "liveChat" | "gist" | "olark" | "hubspot" | "drift";
199
+ type: "" | "intercom" | "helpscout" | "freshdesk" | "freshchat" | "crisp" | "zendesk" | "liveChat" | "gist" | "olark" | "hubspot" | "drift" | "zendesk_handoff";
198
200
  };
199
201
  } | {
200
202
  type: "dismiss";
@@ -225,6 +227,7 @@ export declare class RecommendationSet {
225
227
  };
226
228
  cta: string;
227
229
  }[];
230
+ is_live: boolean;
228
231
  };
229
232
  static create: (object: {
230
233
  id: number;
@@ -269,7 +272,7 @@ export declare class RecommendationSet {
269
272
  }) | {
270
273
  type: "open_chat";
271
274
  meta: {
272
- type: "" | "intercom" | "helpscout" | "freshdesk" | "crisp" | "zendesk" | "liveChat" | "gist" | "olark" | "hubspot" | "drift";
275
+ type: "" | "intercom" | "helpscout" | "freshdesk" | "freshchat" | "crisp" | "zendesk" | "liveChat" | "gist" | "olark" | "hubspot" | "drift" | "zendesk_handoff";
273
276
  };
274
277
  } | {
275
278
  type: "dismiss";
@@ -300,6 +303,7 @@ export declare class RecommendationSet {
300
303
  };
301
304
  cta: string;
302
305
  }[];
306
+ is_live: boolean;
303
307
  }, onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<{
304
308
  id: number;
305
309
  widget: string;
@@ -343,7 +347,7 @@ export declare class RecommendationSet {
343
347
  }) | {
344
348
  type: "open_chat";
345
349
  meta: {
346
- type: "" | "intercom" | "helpscout" | "freshdesk" | "crisp" | "zendesk" | "liveChat" | "gist" | "olark" | "hubspot" | "drift";
350
+ type: "" | "intercom" | "helpscout" | "freshdesk" | "freshchat" | "crisp" | "zendesk" | "liveChat" | "gist" | "olark" | "hubspot" | "drift" | "zendesk_handoff";
347
351
  };
348
352
  } | {
349
353
  type: "dismiss";
@@ -374,6 +378,7 @@ export declare class RecommendationSet {
374
378
  };
375
379
  cta: string;
376
380
  }[];
381
+ is_live: boolean;
377
382
  }>;
378
383
  static update: (object: {
379
384
  id: number;
@@ -418,7 +423,7 @@ export declare class RecommendationSet {
418
423
  }) | {
419
424
  type: "open_chat";
420
425
  meta: {
421
- type: "" | "intercom" | "helpscout" | "freshdesk" | "crisp" | "zendesk" | "liveChat" | "gist" | "olark" | "hubspot" | "drift";
426
+ type: "" | "intercom" | "helpscout" | "freshdesk" | "freshchat" | "crisp" | "zendesk" | "liveChat" | "gist" | "olark" | "hubspot" | "drift" | "zendesk_handoff";
422
427
  };
423
428
  } | {
424
429
  type: "dismiss";
@@ -449,6 +454,7 @@ export declare class RecommendationSet {
449
454
  };
450
455
  cta: string;
451
456
  }[];
457
+ is_live: boolean;
452
458
  }, onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<{
453
459
  id: number;
454
460
  widget: string;
@@ -492,7 +498,7 @@ export declare class RecommendationSet {
492
498
  }) | {
493
499
  type: "open_chat";
494
500
  meta: {
495
- type: "" | "intercom" | "helpscout" | "freshdesk" | "crisp" | "zendesk" | "liveChat" | "gist" | "olark" | "hubspot" | "drift";
501
+ type: "" | "intercom" | "helpscout" | "freshdesk" | "freshchat" | "crisp" | "zendesk" | "liveChat" | "gist" | "olark" | "hubspot" | "drift" | "zendesk_handoff";
496
502
  };
497
503
  } | {
498
504
  type: "dismiss";
@@ -523,6 +529,7 @@ export declare class RecommendationSet {
523
529
  };
524
530
  cta: string;
525
531
  }[];
532
+ is_live: boolean;
526
533
  }>;
527
534
  static delete: (id: string | number, params?: Record<string, string> | undefined, onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<void>;
528
535
  static list: (onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<({
@@ -568,7 +575,7 @@ export declare class RecommendationSet {
568
575
  }) | {
569
576
  type: "open_chat";
570
577
  meta: {
571
- type: "" | "intercom" | "helpscout" | "freshdesk" | "crisp" | "zendesk" | "liveChat" | "gist" | "olark" | "hubspot" | "drift";
578
+ type: "" | "intercom" | "helpscout" | "freshdesk" | "freshchat" | "crisp" | "zendesk" | "liveChat" | "gist" | "olark" | "hubspot" | "drift" | "zendesk_handoff";
572
579
  };
573
580
  } | {
574
581
  type: "dismiss";
@@ -599,6 +606,7 @@ export declare class RecommendationSet {
599
606
  };
600
607
  cta: string;
601
608
  }[];
609
+ is_live: boolean;
602
610
  })[]>;
603
611
  static read: (arg0: string, params?: Record<string, string> | undefined, callbacks?: {
604
612
  onSuccess?: (() => void) | undefined;
@@ -646,7 +654,7 @@ export declare class RecommendationSet {
646
654
  }) | {
647
655
  type: "open_chat";
648
656
  meta: {
649
- type: "" | "intercom" | "helpscout" | "freshdesk" | "crisp" | "zendesk" | "liveChat" | "gist" | "olark" | "hubspot" | "drift";
657
+ type: "" | "intercom" | "helpscout" | "freshdesk" | "freshchat" | "crisp" | "zendesk" | "liveChat" | "gist" | "olark" | "hubspot" | "drift" | "zendesk_handoff";
650
658
  };
651
659
  } | {
652
660
  type: "dismiss";
@@ -677,5 +685,6 @@ export declare class RecommendationSet {
677
685
  };
678
686
  cta: string;
679
687
  }[];
688
+ is_live: boolean;
680
689
  }>;
681
690
  }
@@ -1,14 +1,20 @@
1
1
  import * as t from 'io-ts';
2
+ export declare const ThemeModeV: t.TypeC<{
3
+ var_defaults: t.RecordC<t.StringC, t.UnionC<[t.StringC, t.NumberC]>>;
4
+ var_overrides: t.RecordC<t.StringC, t.UnionC<[t.StringC, t.NumberC]>>;
5
+ component_overrides: t.RecordC<t.StringC, t.AnyC>;
6
+ mobile_overrides: t.RecordC<t.StringC, t.AnyC>;
7
+ }>;
2
8
  export declare const ThemeV2V: t.UnionC<[t.TypeC<{
3
9
  light_mode: t.TypeC<{
4
- var_defaults: t.RecordC<t.StringC, t.StringC>;
5
- var_overrides: t.RecordC<t.StringC, t.StringC>;
10
+ var_defaults: t.RecordC<t.StringC, t.UnionC<[t.StringC, t.NumberC]>>;
11
+ var_overrides: t.RecordC<t.StringC, t.UnionC<[t.StringC, t.NumberC]>>;
6
12
  component_overrides: t.RecordC<t.StringC, t.AnyC>;
7
13
  mobile_overrides: t.RecordC<t.StringC, t.AnyC>;
8
14
  }>;
9
15
  dark_mode: t.TypeC<{
10
- var_defaults: t.RecordC<t.StringC, t.StringC>;
11
- var_overrides: t.RecordC<t.StringC, t.StringC>;
16
+ var_defaults: t.RecordC<t.StringC, t.UnionC<[t.StringC, t.NumberC]>>;
17
+ var_overrides: t.RecordC<t.StringC, t.UnionC<[t.StringC, t.NumberC]>>;
12
18
  component_overrides: t.RecordC<t.StringC, t.AnyC>;
13
19
  mobile_overrides: t.RecordC<t.StringC, t.AnyC>;
14
20
  }>;
@@ -20,33 +26,34 @@ export declare const ThemeV: t.TypeC<{
20
26
  default: t.BooleanC;
21
27
  themeV2: t.UnionC<[t.TypeC<{
22
28
  light_mode: t.TypeC<{
23
- var_defaults: t.RecordC<t.StringC, t.StringC>;
24
- var_overrides: t.RecordC<t.StringC, t.StringC>;
29
+ var_defaults: t.RecordC<t.StringC, t.UnionC<[t.StringC, t.NumberC]>>;
30
+ var_overrides: t.RecordC<t.StringC, t.UnionC<[t.StringC, t.NumberC]>>;
25
31
  component_overrides: t.RecordC<t.StringC, t.AnyC>;
26
32
  mobile_overrides: t.RecordC<t.StringC, t.AnyC>;
27
33
  }>;
28
34
  dark_mode: t.TypeC<{
29
- var_defaults: t.RecordC<t.StringC, t.StringC>;
30
- var_overrides: t.RecordC<t.StringC, t.StringC>;
35
+ var_defaults: t.RecordC<t.StringC, t.UnionC<[t.StringC, t.NumberC]>>;
36
+ var_overrides: t.RecordC<t.StringC, t.UnionC<[t.StringC, t.NumberC]>>;
31
37
  component_overrides: t.RecordC<t.StringC, t.AnyC>;
32
38
  mobile_overrides: t.RecordC<t.StringC, t.AnyC>;
33
39
  }>;
34
40
  }>, t.NullC, t.UndefinedC]>;
35
41
  themeV2_draft: t.UnionC<[t.TypeC<{
36
42
  light_mode: t.TypeC<{
37
- var_defaults: t.RecordC<t.StringC, t.StringC>;
38
- var_overrides: t.RecordC<t.StringC, t.StringC>;
43
+ var_defaults: t.RecordC<t.StringC, t.UnionC<[t.StringC, t.NumberC]>>;
44
+ var_overrides: t.RecordC<t.StringC, t.UnionC<[t.StringC, t.NumberC]>>;
39
45
  component_overrides: t.RecordC<t.StringC, t.AnyC>;
40
46
  mobile_overrides: t.RecordC<t.StringC, t.AnyC>;
41
47
  }>;
42
48
  dark_mode: t.TypeC<{
43
- var_defaults: t.RecordC<t.StringC, t.StringC>;
44
- var_overrides: t.RecordC<t.StringC, t.StringC>;
49
+ var_defaults: t.RecordC<t.StringC, t.UnionC<[t.StringC, t.NumberC]>>;
50
+ var_overrides: t.RecordC<t.StringC, t.UnionC<[t.StringC, t.NumberC]>>;
45
51
  component_overrides: t.RecordC<t.StringC, t.AnyC>;
46
52
  mobile_overrides: t.RecordC<t.StringC, t.AnyC>;
47
53
  }>;
48
54
  }>, t.NullC, t.UndefinedC]>;
49
55
  organization: t.StringC;
56
+ archived: t.BooleanC;
50
57
  }>;
51
58
  export declare const ThemePatchV: t.PartialC<{
52
59
  id: t.StringC;
@@ -55,33 +62,34 @@ export declare const ThemePatchV: t.PartialC<{
55
62
  default: t.BooleanC;
56
63
  themeV2: t.UnionC<[t.TypeC<{
57
64
  light_mode: t.TypeC<{
58
- var_defaults: t.RecordC<t.StringC, t.StringC>;
59
- var_overrides: t.RecordC<t.StringC, t.StringC>;
65
+ var_defaults: t.RecordC<t.StringC, t.UnionC<[t.StringC, t.NumberC]>>;
66
+ var_overrides: t.RecordC<t.StringC, t.UnionC<[t.StringC, t.NumberC]>>;
60
67
  component_overrides: t.RecordC<t.StringC, t.AnyC>;
61
68
  mobile_overrides: t.RecordC<t.StringC, t.AnyC>;
62
69
  }>;
63
70
  dark_mode: t.TypeC<{
64
- var_defaults: t.RecordC<t.StringC, t.StringC>;
65
- var_overrides: t.RecordC<t.StringC, t.StringC>;
71
+ var_defaults: t.RecordC<t.StringC, t.UnionC<[t.StringC, t.NumberC]>>;
72
+ var_overrides: t.RecordC<t.StringC, t.UnionC<[t.StringC, t.NumberC]>>;
66
73
  component_overrides: t.RecordC<t.StringC, t.AnyC>;
67
74
  mobile_overrides: t.RecordC<t.StringC, t.AnyC>;
68
75
  }>;
69
76
  }>, t.NullC, t.UndefinedC]>;
70
77
  themeV2_draft: t.UnionC<[t.TypeC<{
71
78
  light_mode: t.TypeC<{
72
- var_defaults: t.RecordC<t.StringC, t.StringC>;
73
- var_overrides: t.RecordC<t.StringC, t.StringC>;
79
+ var_defaults: t.RecordC<t.StringC, t.UnionC<[t.StringC, t.NumberC]>>;
80
+ var_overrides: t.RecordC<t.StringC, t.UnionC<[t.StringC, t.NumberC]>>;
74
81
  component_overrides: t.RecordC<t.StringC, t.AnyC>;
75
82
  mobile_overrides: t.RecordC<t.StringC, t.AnyC>;
76
83
  }>;
77
84
  dark_mode: t.TypeC<{
78
- var_defaults: t.RecordC<t.StringC, t.StringC>;
79
- var_overrides: t.RecordC<t.StringC, t.StringC>;
85
+ var_defaults: t.RecordC<t.StringC, t.UnionC<[t.StringC, t.NumberC]>>;
86
+ var_overrides: t.RecordC<t.StringC, t.UnionC<[t.StringC, t.NumberC]>>;
80
87
  component_overrides: t.RecordC<t.StringC, t.AnyC>;
81
88
  mobile_overrides: t.RecordC<t.StringC, t.AnyC>;
82
89
  }>;
83
90
  }>, t.NullC, t.UndefinedC]>;
84
91
  organization: t.StringC;
92
+ archived: t.BooleanC;
85
93
  }>;
86
94
  export declare class Theme {
87
95
  static list: (onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<{
@@ -92,10 +100,10 @@ export declare class Theme {
92
100
  themeV2: {
93
101
  light_mode: {
94
102
  var_defaults: {
95
- [x: string]: string;
103
+ [x: string]: string | number;
96
104
  };
97
105
  var_overrides: {
98
- [x: string]: string;
106
+ [x: string]: string | number;
99
107
  };
100
108
  component_overrides: {
101
109
  [x: string]: any;
@@ -106,10 +114,10 @@ export declare class Theme {
106
114
  };
107
115
  dark_mode: {
108
116
  var_defaults: {
109
- [x: string]: string;
117
+ [x: string]: string | number;
110
118
  };
111
119
  var_overrides: {
112
- [x: string]: string;
120
+ [x: string]: string | number;
113
121
  };
114
122
  component_overrides: {
115
123
  [x: string]: any;
@@ -122,10 +130,10 @@ export declare class Theme {
122
130
  themeV2_draft: {
123
131
  light_mode: {
124
132
  var_defaults: {
125
- [x: string]: string;
133
+ [x: string]: string | number;
126
134
  };
127
135
  var_overrides: {
128
- [x: string]: string;
136
+ [x: string]: string | number;
129
137
  };
130
138
  component_overrides: {
131
139
  [x: string]: any;
@@ -136,10 +144,10 @@ export declare class Theme {
136
144
  };
137
145
  dark_mode: {
138
146
  var_defaults: {
139
- [x: string]: string;
147
+ [x: string]: string | number;
140
148
  };
141
149
  var_overrides: {
142
- [x: string]: string;
150
+ [x: string]: string | number;
143
151
  };
144
152
  component_overrides: {
145
153
  [x: string]: any;
@@ -150,6 +158,7 @@ export declare class Theme {
150
158
  };
151
159
  } | null | undefined;
152
160
  organization: string;
161
+ archived: boolean;
153
162
  }[]>;
154
163
  static read: (arg0: string, params?: Record<string, string> | undefined, callbacks?: {
155
164
  onSuccess?: (() => void) | undefined;
@@ -162,10 +171,10 @@ export declare class Theme {
162
171
  themeV2: {
163
172
  light_mode: {
164
173
  var_defaults: {
165
- [x: string]: string;
174
+ [x: string]: string | number;
166
175
  };
167
176
  var_overrides: {
168
- [x: string]: string;
177
+ [x: string]: string | number;
169
178
  };
170
179
  component_overrides: {
171
180
  [x: string]: any;
@@ -176,10 +185,10 @@ export declare class Theme {
176
185
  };
177
186
  dark_mode: {
178
187
  var_defaults: {
179
- [x: string]: string;
188
+ [x: string]: string | number;
180
189
  };
181
190
  var_overrides: {
182
- [x: string]: string;
191
+ [x: string]: string | number;
183
192
  };
184
193
  component_overrides: {
185
194
  [x: string]: any;
@@ -192,10 +201,10 @@ export declare class Theme {
192
201
  themeV2_draft: {
193
202
  light_mode: {
194
203
  var_defaults: {
195
- [x: string]: string;
204
+ [x: string]: string | number;
196
205
  };
197
206
  var_overrides: {
198
- [x: string]: string;
207
+ [x: string]: string | number;
199
208
  };
200
209
  component_overrides: {
201
210
  [x: string]: any;
@@ -206,10 +215,10 @@ export declare class Theme {
206
215
  };
207
216
  dark_mode: {
208
217
  var_defaults: {
209
- [x: string]: string;
218
+ [x: string]: string | number;
210
219
  };
211
220
  var_overrides: {
212
- [x: string]: string;
221
+ [x: string]: string | number;
213
222
  };
214
223
  component_overrides: {
215
224
  [x: string]: any;
@@ -220,6 +229,7 @@ export declare class Theme {
220
229
  };
221
230
  } | null | undefined;
222
231
  organization: string;
232
+ archived: boolean;
223
233
  }>;
224
234
  static update: (theme: t.TypeOf<typeof ThemePatchV>) => Promise<{
225
235
  id: string;
@@ -229,10 +239,10 @@ export declare class Theme {
229
239
  themeV2: {
230
240
  light_mode: {
231
241
  var_defaults: {
232
- [x: string]: string;
242
+ [x: string]: string | number;
233
243
  };
234
244
  var_overrides: {
235
- [x: string]: string;
245
+ [x: string]: string | number;
236
246
  };
237
247
  component_overrides: {
238
248
  [x: string]: any;
@@ -243,10 +253,10 @@ export declare class Theme {
243
253
  };
244
254
  dark_mode: {
245
255
  var_defaults: {
246
- [x: string]: string;
256
+ [x: string]: string | number;
247
257
  };
248
258
  var_overrides: {
249
- [x: string]: string;
259
+ [x: string]: string | number;
250
260
  };
251
261
  component_overrides: {
252
262
  [x: string]: any;
@@ -259,10 +269,10 @@ export declare class Theme {
259
269
  themeV2_draft: {
260
270
  light_mode: {
261
271
  var_defaults: {
262
- [x: string]: string;
272
+ [x: string]: string | number;
263
273
  };
264
274
  var_overrides: {
265
- [x: string]: string;
275
+ [x: string]: string | number;
266
276
  };
267
277
  component_overrides: {
268
278
  [x: string]: any;
@@ -273,10 +283,10 @@ export declare class Theme {
273
283
  };
274
284
  dark_mode: {
275
285
  var_defaults: {
276
- [x: string]: string;
286
+ [x: string]: string | number;
277
287
  };
278
288
  var_overrides: {
279
- [x: string]: string;
289
+ [x: string]: string | number;
280
290
  };
281
291
  component_overrides: {
282
292
  [x: string]: any;
@@ -287,6 +297,7 @@ export declare class Theme {
287
297
  };
288
298
  } | null | undefined;
289
299
  organization: string;
300
+ archived: boolean;
290
301
  }>;
291
302
  static create: (object: {
292
303
  id?: string | undefined;
@@ -296,10 +307,10 @@ export declare class Theme {
296
307
  themeV2?: {
297
308
  light_mode: {
298
309
  var_defaults: {
299
- [x: string]: string;
310
+ [x: string]: string | number;
300
311
  };
301
312
  var_overrides: {
302
- [x: string]: string;
313
+ [x: string]: string | number;
303
314
  };
304
315
  component_overrides: {
305
316
  [x: string]: any;
@@ -310,10 +321,10 @@ export declare class Theme {
310
321
  };
311
322
  dark_mode: {
312
323
  var_defaults: {
313
- [x: string]: string;
324
+ [x: string]: string | number;
314
325
  };
315
326
  var_overrides: {
316
- [x: string]: string;
327
+ [x: string]: string | number;
317
328
  };
318
329
  component_overrides: {
319
330
  [x: string]: any;
@@ -326,10 +337,10 @@ export declare class Theme {
326
337
  themeV2_draft?: {
327
338
  light_mode: {
328
339
  var_defaults: {
329
- [x: string]: string;
340
+ [x: string]: string | number;
330
341
  };
331
342
  var_overrides: {
332
- [x: string]: string;
343
+ [x: string]: string | number;
333
344
  };
334
345
  component_overrides: {
335
346
  [x: string]: any;
@@ -340,10 +351,10 @@ export declare class Theme {
340
351
  };
341
352
  dark_mode: {
342
353
  var_defaults: {
343
- [x: string]: string;
354
+ [x: string]: string | number;
344
355
  };
345
356
  var_overrides: {
346
- [x: string]: string;
357
+ [x: string]: string | number;
347
358
  };
348
359
  component_overrides: {
349
360
  [x: string]: any;
@@ -354,6 +365,7 @@ export declare class Theme {
354
365
  };
355
366
  } | null | undefined;
356
367
  organization?: string | undefined;
368
+ archived?: boolean | undefined;
357
369
  }, onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<{
358
370
  id: string;
359
371
  slug: string;
@@ -362,10 +374,10 @@ export declare class Theme {
362
374
  themeV2: {
363
375
  light_mode: {
364
376
  var_defaults: {
365
- [x: string]: string;
377
+ [x: string]: string | number;
366
378
  };
367
379
  var_overrides: {
368
- [x: string]: string;
380
+ [x: string]: string | number;
369
381
  };
370
382
  component_overrides: {
371
383
  [x: string]: any;
@@ -376,10 +388,10 @@ export declare class Theme {
376
388
  };
377
389
  dark_mode: {
378
390
  var_defaults: {
379
- [x: string]: string;
391
+ [x: string]: string | number;
380
392
  };
381
393
  var_overrides: {
382
- [x: string]: string;
394
+ [x: string]: string | number;
383
395
  };
384
396
  component_overrides: {
385
397
  [x: string]: any;
@@ -392,10 +404,10 @@ export declare class Theme {
392
404
  themeV2_draft: {
393
405
  light_mode: {
394
406
  var_defaults: {
395
- [x: string]: string;
407
+ [x: string]: string | number;
396
408
  };
397
409
  var_overrides: {
398
- [x: string]: string;
410
+ [x: string]: string | number;
399
411
  };
400
412
  component_overrides: {
401
413
  [x: string]: any;
@@ -406,10 +418,10 @@ export declare class Theme {
406
418
  };
407
419
  dark_mode: {
408
420
  var_defaults: {
409
- [x: string]: string;
421
+ [x: string]: string | number;
410
422
  };
411
423
  var_overrides: {
412
- [x: string]: string;
424
+ [x: string]: string | number;
413
425
  };
414
426
  component_overrides: {
415
427
  [x: string]: any;
@@ -420,6 +432,7 @@ export declare class Theme {
420
432
  };
421
433
  } | null | undefined;
422
434
  organization: string;
435
+ archived: boolean;
423
436
  }>;
424
437
  static delete: (id: string | number, params?: Record<string, string> | undefined, onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<void>;
425
438
  }