@giosg/types 6.2.2

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.
Files changed (106) hide show
  1. package/CHANGELOG.md +218 -0
  2. package/README.md +16 -0
  3. package/lib/.teams.d.ts.swp +0 -0
  4. package/lib/actions.d.ts +72 -0
  5. package/lib/actions.d.ts.map +1 -0
  6. package/lib/actions.js +60 -0
  7. package/lib/apps.d.ts +99 -0
  8. package/lib/apps.d.ts.map +1 -0
  9. package/lib/apps.js +1 -0
  10. package/lib/assets.d.ts +144 -0
  11. package/lib/assets.d.ts.map +1 -0
  12. package/lib/assets.js +1 -0
  13. package/lib/brands.d.ts +41 -0
  14. package/lib/brands.d.ts.map +1 -0
  15. package/lib/brands.js +1 -0
  16. package/lib/canned_answers.d.ts +26 -0
  17. package/lib/canned_answers.d.ts.map +1 -0
  18. package/lib/canned_answers.js +1 -0
  19. package/lib/chat.d.ts +1069 -0
  20. package/lib/chat.d.ts.map +1 -0
  21. package/lib/chat.js +1 -0
  22. package/lib/common.d.ts +7 -0
  23. package/lib/common.d.ts.map +1 -0
  24. package/lib/common.js +625 -0
  25. package/lib/conditions.d.ts +98 -0
  26. package/lib/conditions.d.ts.map +1 -0
  27. package/lib/conditions.js +77 -0
  28. package/lib/customer.d.ts +519 -0
  29. package/lib/customer.d.ts.map +1 -0
  30. package/lib/customer.js +1 -0
  31. package/lib/customership.d.ts +79 -0
  32. package/lib/customership.d.ts.map +1 -0
  33. package/lib/customership.js +1 -0
  34. package/lib/email.d.ts +47 -0
  35. package/lib/email.d.ts.map +1 -0
  36. package/lib/email.js +1 -0
  37. package/lib/experiments.d.ts +168 -0
  38. package/lib/experiments.d.ts.map +1 -0
  39. package/lib/experiments.js +1 -0
  40. package/lib/goals.d.ts +126 -0
  41. package/lib/goals.d.ts.map +1 -0
  42. package/lib/goals.js +1 -0
  43. package/lib/index.d.ts +34 -0
  44. package/lib/index.d.ts.map +1 -0
  45. package/lib/index.js +6 -0
  46. package/lib/leadforms.d.ts +30 -0
  47. package/lib/leadforms.d.ts.map +1 -0
  48. package/lib/leadforms.js +1 -0
  49. package/lib/linkpreview.d.ts +16 -0
  50. package/lib/linkpreview.d.ts.map +1 -0
  51. package/lib/linkpreview.js +1 -0
  52. package/lib/oath.d.ts +75 -0
  53. package/lib/oath.d.ts.map +1 -0
  54. package/lib/oath.js +22 -0
  55. package/lib/partnerships.d.ts +54 -0
  56. package/lib/partnerships.d.ts.map +1 -0
  57. package/lib/partnerships.js +1 -0
  58. package/lib/permissions.d.ts +26 -0
  59. package/lib/permissions.d.ts.map +1 -0
  60. package/lib/permissions.js +1 -0
  61. package/lib/public.d.ts +387 -0
  62. package/lib/public.d.ts.map +1 -0
  63. package/lib/public.js +9 -0
  64. package/lib/rooms.d.ts +199 -0
  65. package/lib/rooms.d.ts.map +1 -0
  66. package/lib/rooms.js +1 -0
  67. package/lib/routers.d.ts +76 -0
  68. package/lib/routers.d.ts.map +1 -0
  69. package/lib/routers.js +1 -0
  70. package/lib/rules.d.ts +229 -0
  71. package/lib/rules.d.ts.map +1 -0
  72. package/lib/rules.js +1 -0
  73. package/lib/sharing.d.ts +111 -0
  74. package/lib/sharing.d.ts.map +1 -0
  75. package/lib/sharing.js +1 -0
  76. package/lib/shoppingcarts.d.ts +33 -0
  77. package/lib/shoppingcarts.d.ts.map +1 -0
  78. package/lib/shoppingcarts.js +1 -0
  79. package/lib/system.d.ts +21 -0
  80. package/lib/system.d.ts.map +1 -0
  81. package/lib/system.js +1 -0
  82. package/lib/target.d.ts +105 -0
  83. package/lib/target.d.ts.map +1 -0
  84. package/lib/target.js +1 -0
  85. package/lib/teams.d.ts +78 -0
  86. package/lib/teams.d.ts.map +1 -0
  87. package/lib/teams.js +1 -0
  88. package/lib/types.d.ts +223 -0
  89. package/lib/types.d.ts.map +1 -0
  90. package/lib/types.js +26 -0
  91. package/lib/uploads.d.ts +55 -0
  92. package/lib/uploads.d.ts.map +1 -0
  93. package/lib/uploads.js +1 -0
  94. package/lib/userclients.d.ts +79 -0
  95. package/lib/userclients.d.ts.map +1 -0
  96. package/lib/userclients.js +1 -0
  97. package/lib/variables.d.ts +41 -0
  98. package/lib/variables.d.ts.map +1 -0
  99. package/lib/variables.js +1 -0
  100. package/lib/visitor.d.ts +210 -0
  101. package/lib/visitor.d.ts.map +1 -0
  102. package/lib/visitor.js +1 -0
  103. package/lib/webhooks.d.ts +61 -0
  104. package/lib/webhooks.d.ts.map +1 -0
  105. package/lib/webhooks.js +1 -0
  106. package/package.json +23 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"email.d.ts","sourceRoot":"","sources":["../src/email.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,gBAAgB;IAC/B,iCAAiC;IACjC,QAAQ,EAAE,MAAM,CAAC;IAEjB,kFAAkF;IAClF,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IAExB,sEAAsE;IACtE,OAAO,EAAE,MAAM,CAAC;CACjB;AAED;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B,0DAA0D;IAC1D,MAAM,EAAE,MAAM,CAAC;IAEf,+DAA+D;IAC/D,IAAI,EAAE,MAAM,CAAC;IAEb;;;OAGG;IACH,EAAE,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IAEtB;;;OAGG;IACH,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IAEvB;;;;OAIG;IACH,GAAG,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IAExB;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IAE7B,gCAAgC;IAChC,OAAO,EAAE,MAAM,CAAC;IAEhB,2FAA2F;IAC3F,IAAI,EAAE,MAAM,CAAC;IAEb,+BAA+B;IAC/B,eAAe,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;IAEnC,gCAAgC;IAChC,WAAW,EAAE,gBAAgB,EAAE,GAAG,IAAI,CAAC;CACxC"}
package/lib/email.js ADDED
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,168 @@
1
+ import { ExperimentRule, ExperimentRulePayload } from "./rules";
2
+ import { NestedGoal } from "./goals";
3
+ import { NestedOrganization, NestedUser } from "./customer";
4
+ import { ExperimentUid, GoalUid, UserUid, OrganizationUid, ExperimentGroupUid, ExperimentGroupType, RuleUid, RoomUid } from "./types";
5
+ import { Room } from "./rooms";
6
+ export interface Experiment {
7
+ /** Unique identifier of the experiment */
8
+ id: ExperimentUid;
9
+ /** Date when the experiment was created */
10
+ created_at: string;
11
+ /** User who created the experiment */
12
+ created_by_user: NestedUser;
13
+ /** Unique identifier of the user who created the experiment */
14
+ created_by_user_id: UserUid;
15
+ /** End time of the experiment */
16
+ ends_at: string | null;
17
+ /** Unique identifier of the goal of this experiment */
18
+ goal_id: GoalUid;
19
+ /** Goal of this experiment */
20
+ goal: NestedGoal;
21
+ /** Whether the experiment is a draft or published. Once published, the experiment cannot be changed back to draft */
22
+ is_draft: boolean;
23
+ /** List of room IDs where the experiment treatments can be triggered. If the list is empty, treatment can be triggered in any of the organization’s rooms */
24
+ room_ids: RoomUid[];
25
+ /** List of rooms where the experiment treatments can be triggered. If the list is empty, treatment can be triggered in any of the organization’s rooms */
26
+ rooms: Room[];
27
+ /** Defines when to reset group’s visitors */
28
+ group_reset_interval: "1d" | "1w" | "full";
29
+ /** List of the experiment’s groups */
30
+ groups: NestedExperimentGroup[];
31
+ /** Name of the experiment */
32
+ name: string;
33
+ /** Unique identifier of the organization that owns the experiment */
34
+ organization_id: OrganizationUid;
35
+ /** Organization that owns the experiment */
36
+ organization: NestedOrganization;
37
+ /** Start time of the experiment */
38
+ starts_at: string;
39
+ /** Date when the experiment was changed for the last time */
40
+ updated_at: string;
41
+ /** User who changed the experiment for the last time */
42
+ updated_by_user: NestedUser;
43
+ /** Unique identifier of the user who changed the experiment for the last time */
44
+ updated_by_user_id: UserUid;
45
+ }
46
+ export interface ExperimentPayload {
47
+ /** End time of the experiment */
48
+ ends_at?: string | null;
49
+ /** Unique identifier of the goal of this experiment */
50
+ goal_id?: GoalUid;
51
+ /** Defines when to reset group’s visitors */
52
+ group_reset_interval?: "1d" | "1w" | "full";
53
+ /** List of the experiment’s groups */
54
+ groups?: NestedExperimentGroupPayload[];
55
+ /** Name of the experiment */
56
+ name?: string;
57
+ /** Start time of the experiment */
58
+ starts_at?: string;
59
+ /** Whether the experiment is a draft or published. Once published, the experiment cannot be changed back to draft */
60
+ is_draft: boolean;
61
+ /** List of room IDs where the experiment treatments can be triggered. If the list is empty, treatment can be triggered in any of the organization’s rooms */
62
+ room_ids?: RoomUid[];
63
+ }
64
+ export interface NestedExperimentGroup {
65
+ /** Unique identifier of the experiment group */
66
+ id: ExperimentGroupUid;
67
+ /** Date when the experiment group was created */
68
+ created_at: string;
69
+ /** Type of the experiment group */
70
+ group_type: ExperimentGroupType;
71
+ /** Name of the experiment group */
72
+ name: string;
73
+ /** The index of this group in the order of groups within the experiment */
74
+ order: number;
75
+ /** The percentage this group has within the experiments group distribution. Percentages of groups within a experiment must add up to 100 */
76
+ percentage: number;
77
+ /** Rule that is ran for visitors in this group */
78
+ treatment: ExperimentRule | null;
79
+ /** Date when the experiment group was changed for the last time */
80
+ updated_at: string;
81
+ }
82
+ export interface NestedExperimentGroupPayload {
83
+ /** Type of the experiment group */
84
+ group_type?: ExperimentGroupType;
85
+ /** Name of the experiment group */
86
+ name: string;
87
+ /** The percentage this group has within the experiments group distribution. Percentages of groups within a experiment must add up to 100 */
88
+ percentage: number;
89
+ /** Rule that is ran for visitors in this group */
90
+ treatment?: ExperimentRulePayload;
91
+ }
92
+ /** Experiment API v3 interfaces */
93
+ export interface ExperimentResult {
94
+ /** The first date of the interval */
95
+ start_date: string;
96
+ /** The last date of the interval (inclusive) */
97
+ end_date: string;
98
+ /** The IDs of the experiment group, rule and goal which others are compared against when computing statistical significance. If not provided, these test statistics will not be calculated. */
99
+ control_group_goal_rule_id: ExperimentGroupGoalRuleUid;
100
+ /** The ID of the experiment. */
101
+ experiment_id: ExperimentUid;
102
+ /** The ID of the organization this experiment belongs to. */
103
+ organization_id: OrganizationUid;
104
+ /** The weekly results */
105
+ by_week: ExperimentResultGroupsByWeek[];
106
+ /** Sums of weekly counts for the whole time range. */
107
+ totals: ExperimentResultGroupTotals[];
108
+ }
109
+ export interface ExperimentResultPayload {
110
+ start_date: string;
111
+ end_date: string;
112
+ control_group_goal_rule_id: ExperimentGroupGoalRuleUid;
113
+ group_goal_rule_ids: ExperimentGroupGoalRuleUid[];
114
+ }
115
+ export interface ExperimentResultResponse extends Omit<ExperimentResult, "by_week" | "totals"> {
116
+ by_week: ExperimentResponseGroupsByWeek[];
117
+ totals: ExperimentResponseGroupTotals[];
118
+ }
119
+ export interface ExperimentGroupGoalRuleUid {
120
+ group_id: ExperimentGroupUid;
121
+ goal_id: GoalUid;
122
+ rule_id: RuleUid;
123
+ }
124
+ export interface ExperimentResultGroupTotals {
125
+ /** ID of the experiment group */
126
+ group_id: ExperimentGroupUid;
127
+ /** ID of the goal for this group */
128
+ goal_id: GoalUid;
129
+ /** ID of the rule for this group */
130
+ rule_id: RuleUid;
131
+ /** The total count of unique visitors that were treated with the configured treatment (if a treatment is configured for the experiment) */
132
+ unique_visitors_with_treatment_count: number;
133
+ /** The total count of unique visitors that achieved the configured goal after being treated */
134
+ unique_visitors_with_goal_after_treatment_count: number;
135
+ /** The total conversion rate calculated by unique_visitors_with_goal_after_treatment_count/unique_visitors_with_treatment_count */
136
+ conversion: number;
137
+ /** The test statistics on whether the group has statistically significant difference in conversion rate compared to control group. null for control group */
138
+ statistical_significance: number | null;
139
+ }
140
+ export interface ExperimentResultGroupsByWeek {
141
+ /** ID of the experiment group */
142
+ group_id: ExperimentGroupUid;
143
+ /** ID of the goal for this group */
144
+ goal_id: GoalUid;
145
+ /** ID of the rule for this group */
146
+ rule_id: RuleUid;
147
+ /** The starting moment of the week this data point describes */
148
+ start_time: string;
149
+ /** The ending moment of the week this data point describes */
150
+ end_time: string;
151
+ /** The weekly count of unique visitors that were treated with the configured treatment (if a treatment is configured for the experiment) */
152
+ unique_visitors_with_treatment_count: number;
153
+ /** The weekly count of unique visitors that achieved the configured goal after being treated */
154
+ unique_visitors_with_goal_after_treatment_count: number;
155
+ /** The weekly conversion rate calculated by unique_visitors_with_goal_after_treatment_count/unique_visitors_with_treatment_count */
156
+ conversion: number;
157
+ /** The test statistics on whether the group has statistically significant difference in conversion rate compared to control group. null for control group */
158
+ statistical_significance: number | null;
159
+ }
160
+ export interface ExperimentResponseGroupTotals extends Omit<ExperimentResultGroupTotals, "conversion" | "statistical_significance"> {
161
+ conversion: string;
162
+ statistical_significance: string | null;
163
+ }
164
+ export interface ExperimentResponseGroupsByWeek extends Omit<ExperimentResultGroupsByWeek, "conversion" | "statistical_significance"> {
165
+ conversion: string;
166
+ statistical_significance: string | null;
167
+ }
168
+ //# sourceMappingURL=experiments.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"experiments.d.ts","sourceRoot":"","sources":["../src/experiments.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAChE,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,EAAE,kBAAkB,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAC5D,OAAO,EACL,aAAa,EACb,OAAO,EACP,OAAO,EACP,eAAe,EACf,kBAAkB,EAClB,mBAAmB,EACnB,OAAO,EACP,OAAO,EACR,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAE/B,MAAM,WAAW,UAAU;IACzB,0CAA0C;IAC1C,EAAE,EAAE,aAAa,CAAC;IAElB,2CAA2C;IAC3C,UAAU,EAAE,MAAM,CAAC;IAEnB,sCAAsC;IACtC,eAAe,EAAE,UAAU,CAAC;IAE5B,+DAA+D;IAC/D,kBAAkB,EAAE,OAAO,CAAC;IAE5B,iCAAi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B,EAAE,MAAM,GAAG,IAAI,CAAC;CACzC;AAED,MAAM,WAAW,8BACf,SAAQ,IAAI,CAAC,4BAA4B,EAAE,YAAY,GAAG,0BAA0B,CAAC;IACrF,UAAU,EAAE,MAAM,CAAC;IACnB,wBAAwB,EAAE,MAAM,GAAG,IAAI,CAAC;CACzC"}
@@ -0,0 +1 @@
1
+ export {};
package/lib/goals.d.ts ADDED
@@ -0,0 +1,126 @@
1
+ import { NestedOrganization, NestedUser } from "./customer";
2
+ import { GoalUid, UserUid, OrganizationUid, VisitorUid, RoomUid } from "./types";
3
+ import { ConditionType, ConditionSettingsType } from "./conditions";
4
+ /**
5
+ * @deprecated
6
+ */
7
+ export interface GoalMatch {
8
+ /** Unique identifier of the visitor. This must be submitted beforehand using Visitor Identifier API */
9
+ custom_visitor_identity: VisitorUid;
10
+ /** Timestamp of the goal. It is used to link the goal with the visitor’s session */
11
+ goal_matched_at: string;
12
+ /**
13
+ * Value of the goal event. If not given then the default value for the goal is used.
14
+ * If there is no default value, the value is left empty
15
+ */
16
+ goal_value: number;
17
+ /** An array of room unique identifiers where the goal matched */
18
+ rooms: RoomUid[];
19
+ }
20
+ export interface GoalMatchPayload {
21
+ /** Unique identifier of the visitor. This must be submitted beforehand using Visitor Identifier API */
22
+ custom_visitor_identity: VisitorUid;
23
+ /** Timestamp of the goal. It is used to link the goal with the visitor’s session */
24
+ goal_matched_at: string;
25
+ /**
26
+ * Value of the goal event. If not given then the default value for the goal is used.
27
+ * If there is no default value, the value is left empty
28
+ */
29
+ goal_value?: number;
30
+ /** An array of room unique identifiers where the goal matched */
31
+ rooms: RoomUid[];
32
+ }
33
+ export interface Goal {
34
+ /**Unique identifier of the goal */
35
+ id: GoalUid;
36
+ /** Date when the goal was created */
37
+ created_at: string;
38
+ /** Unique identifier of the user who created the goal */
39
+ created_by_user_id: UserUid;
40
+ /** User who created the goal */
41
+ created_by_user: NestedUser;
42
+ /** Date when the goal was changed for the last time */
43
+ updated_at: string;
44
+ /** Unique identifier of the user who changed the goal for the last time */
45
+ updated_by_user_id: UserUid;
46
+ /** User who changed the goal for the last time */
47
+ updated_by_user: NestedUser;
48
+ /** Organization that owns the goal */
49
+ organization: NestedOrganization;
50
+ /** Unique identifier of the organization that owns the goal */
51
+ organization_id: OrganizationUid;
52
+ /** Name of the goal */
53
+ name: string;
54
+ /** List of [rule condition][] that are used for matching the goal */
55
+ conditions: NestedGoalCondition[];
56
+ /** Defines whether the goal can match in any room */
57
+ is_any_room_allowed: boolean;
58
+ /**
59
+ * "If "is_any_room_allowed" is false then the goal can match only in the allowed rooms.
60
+ * Allowed rooms only allows rooms that the organization owns
61
+ */
62
+ allowed_rooms: RoomUid[];
63
+ /** Default value of the goal */
64
+ default_value: number | null;
65
+ }
66
+ export interface GoalPayload {
67
+ /** Name of the goal */
68
+ name: string;
69
+ /** List of [rule condition][] that are used for matching the goal */
70
+ conditions: NestedGoalConditionPayload[];
71
+ /** Defines whether the goal can match in any room */
72
+ is_any_room_allowed: boolean;
73
+ /**
74
+ * If "is_any_room_allowed" is false then the goal can match only in the allowed rooms.
75
+ * Allowed rooms only allows rooms that the organization owns
76
+ */
77
+ allowed_rooms: RoomUid[];
78
+ /** Default value of the goal */
79
+ default_value?: number | null;
80
+ }
81
+ export interface GoalUpdatePayload {
82
+ /** Name of the goal */
83
+ name: string;
84
+ /** List of [rule condition][] that are used for matching the goal */
85
+ conditions?: NestedGoalConditionPayload[];
86
+ /** Defines whether the goal can match in any room */
87
+ is_any_room_allowed?: boolean;
88
+ /**
89
+ * If "is_any_room_allowed" is false then the goal can match only in the allowed rooms.
90
+ * Allowed rooms only allows rooms that the organization owns
91
+ */
92
+ allowed_rooms?: RoomUid[];
93
+ /** Default value of the goal */
94
+ default_value?: number | null;
95
+ }
96
+ export interface NestedGoalCondition {
97
+ /** Type of the condition */
98
+ type: ConditionType;
99
+ /** The value related to the type. Required with most types */
100
+ value: string;
101
+ /** Defines whether the default or opposite match type shall be used */
102
+ negate: boolean;
103
+ /** Other condition settings. Required with some condition types */
104
+ settings: ConditionSettingsType;
105
+ }
106
+ export interface NestedGoalConditionPayload {
107
+ /** Type of the condition */
108
+ type: ConditionType;
109
+ /** The value related to the type. Required with most types */
110
+ value?: string;
111
+ /** Defines whether the default or opposite match type shall be used */
112
+ negate?: boolean;
113
+ /** Other condition settings. Required with some condition types */
114
+ settings: ConditionSettingsType;
115
+ }
116
+ export interface NestedGoal {
117
+ /**Unique identifier of the goal */
118
+ id: GoalUid;
119
+ /** Name of the goal */
120
+ name: string;
121
+ /** Organization that owns the goal */
122
+ organization: NestedOrganization;
123
+ /** Unique identifier of the organization that owns the goal */
124
+ organization_id: OrganizationUid;
125
+ }
126
+ //# sourceMappingURL=goals.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"goals.d.ts","sourceRoot":"","sources":["../src/goals.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAC5D,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,eAAe,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AACjF,OAAO,EAAE,aAAa,EAAE,qBAAqB,EAAE,MAAM,cAAc,CAAC;AAEpE;;GAEG;AACH,MAAM,WAAW,SAAS;IACxB,uGAAuG;IACvG,uBAAuB,EAAE,UAAU,CAAC;IAEpC,oFAAoF;IACpF,eAAe,EAAE,MAAM,CAAC;IAExB;;;OAGG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB,iEAAiE;IACjE,KAAK,EAAE,OAAO,EAAE,CAAC;CAClB;AAED,MAAM,WAAW,gBAAgB;IAC/B,uGAAuG;IACvG,uBAAuB,EAAE,UAAU,CAAC;IAEpC,oFAAoF;IACpF,eAAe,EAAE,MAAM,CAAC;IAExB;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB,iEAAiE;IACjE,KAAK,EAAE,OAAO,EAAE,CAAC;CAClB;AAED,MAAM,WAA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gC;IAChC,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC/B;AAED,MAAM,WAAW,mBAAmB;IAClC,4BAA4B;IAC5B,IAAI,EAAE,aAAa,CAAC;IAEpB,8DAA8D;IAC9D,KAAK,EAAE,MAAM,CAAC;IAEd,uEAAuE;IACvE,MAAM,EAAE,OAAO,CAAC;IAEhB,mEAAmE;IACnE,QAAQ,EAAE,qBAAqB,CAAC;CACjC;AAED,MAAM,WAAW,0BAA0B;IACzC,4BAA4B;IAC5B,IAAI,EAAE,aAAa,CAAC;IAEpB,8DAA8D;IAC9D,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf,uEAAuE;IACvE,MAAM,CAAC,EAAE,OAAO,CAAC;IAEjB,mEAAmE;IACnE,QAAQ,EAAE,qBAAqB,CAAC;CACjC;AAED,MAAM,WAAW,UAAU;IACzB,mCAAmC;IACnC,EAAE,EAAE,OAAO,CAAC;IAEZ,uBAAuB;IACvB,IAAI,EAAE,MAAM,CAAC;IAEb,sCAAsC;IACtC,YAAY,EAAE,kBAAkB,CAAC;IAEjC,+DAA+D;IAC/D,eAAe,EAAE,eAAe,CAAC;CAClC"}
package/lib/goals.js ADDED
@@ -0,0 +1 @@
1
+ export {};
package/lib/index.d.ts ADDED
@@ -0,0 +1,34 @@
1
+ export { ActionTypes, ActionType, ActionTypeString, ACTION_TYPES, ActionShowAutosuggestSettings, ActionSendChatMessageSettings, ActionSendInteractionToChatSettings, ActionSettingsType, ACTION_STYLES, ActionStyle, } from "./actions";
2
+ export { GiosgAppInstance, GiosgAppTriggerCondition, GiosgApp, GiosgAppPayload, InstalledGiosgApp, NestedGiosgApp, } from "./apps";
3
+ export { Asset, AssetPayload, AssetUpdate, AssetUpdatePayload, NestedAsset, PublicNestedAsset, } from "./assets";
4
+ export { Brand, BrandPayload, PublicBrand } from "./brands";
5
+ export { CannedAnswerIncrement, CannedAnswer, CannedAnswerPayload } from "./canned_answers";
6
+ export { ChatInvitationAccept, ChatInvitationAcceptPayload, ChatInvitationCreate, ChatInvitationExpire, ChatInvitationExpirePayload, ChatInvitation, ChatConversationStarter, ChatConversationStarterPayload, ChatConversationStarterUpdate, ChatConversationStarterUpdatePayload, ChatMembershipUser, ChatMembershipVisitor, ChatMembership, ChatMembershipPayload, ChatStatusMessage, ChatDataMessage, ChatMessage, ChatMessagePayload, ChatReplySuggestion, ChatReplySuggestionPayload, ChatType, Chat, ChatPayload, ChatSessionTag, ChatSessionTagPayload, DecryptedChatDataMessage, DecryptedChatStatusMessage, DecryptedChatMessage, DecryptedChatMessagePayload, NestedChatMessageAttachmentAction, NestedChatMessageAttachmentActionPayload, NestedChatMessageAttachment, NestedChatMessageAttachmentPayload, NestedChatMessageResponseAttachment, NestedChatMessageResponseAttachmentPayload, NestedChatReplySuggestion, OrganizationChatMembership, OrganizationChatMembershipPayload, RoomChatTag, RoomChatTagPayload, NestedChatMessage, BarChat, ChatAssignment, } from "./chat";
7
+ export { TIMEZONES, Timezone, CURRENCIES, Currency, LANGUAGE_CODES, LanguageCode } from "./common";
8
+ export { ConditionTypes, ConditionType, ConditionTypeString, CONDITION_TYPES, ConditionWeeklyScheduleSettings, ConditionSettingsType, } from "./conditions";
9
+ export { Feature, FeaturePayload, Login, LoginPayload, NestedAvatar, NestedOrganization, NestedUser, OrganizationCreate, OrganizationCreatePayload, Organization, OrganizationPayload, OrganizationSettings, OrganizationSettingsPayload, RoomUser, TargetPermissionToken, UserApiTokenCreate, UserApiTokenCreatePayload, UserApiTokenPayload, UserAvatar, UserAvatarPayload, UserPasswordUpdate, UserPasswordUpdatePayload, UserPreferences, UserPreferencesPayload, User, UserPayload, Quota, } from "./customer";
10
+ export { Customership, StaffCustomership, StaffCustomershipPayload } from "./customership";
11
+ export { EmailAttachments, EmailRequest } from "./email";
12
+ export { Experiment, ExperimentPayload, NestedExperimentGroup, NestedExperimentGroupPayload, ExperimentResult, ExperimentResultPayload, ExperimentResultResponse, ExperimentGroupGoalRuleUid, ExperimentResultGroupTotals, ExperimentResultGroupsByWeek, } from "./experiments";
13
+ export { GoalMatch, GoalMatchPayload, Goal, GoalPayload, GoalUpdatePayload, NestedGoalCondition, NestedGoalConditionPayload, NestedGoal, } from "./goals";
14
+ export { LeadFormData, LeadFormDataPayload } from "./leadforms";
15
+ export { LinkPreviewResponse, LinkPreviewResponseSuccess, LinkPreviewResponseError, } from "./linkpreview";
16
+ export { OAUTH_BASE_URL, OAUTH_SCOPE_OPTIONS, OauthScopeOptions, OAUTH_RESPONSE_TYPES, OauthResponseType, OAUTH_PROMPT_OPTIONS, OauthPromptOption, OAUTH_ERROR_TYPES, OauthErrorType, OAuthRequestParams, OAuthResponseSuccessToken, OAuthResponseSuccessIdToken, OAuthResponseSuccess, OAuthResponseError, OAuthResponse, } from "./oath";
17
+ export { PartnerOrganization, PartnerOrganizationUser, Partnership, PartnershipPayload, } from "./partnerships";
18
+ export { UserPermission, UserPermissionPayload } from "./permissions";
19
+ export { AutosuggestPermissionOptions, AutoSuggestPermissionOption, AutosuggestPermissionOptionString, AUTOSUGGEST_PERMISSION_OPTIONS, PublicAutosuggestPermission, PublicAutosuggestPermissionPayload, PublicAutosuggest, PublicAutosuggestPayload, PublicChatMessage, PublicChatMessagePayload, PublicChat, PublicChatPayload, PublicCustomVisitorId, PublicCustomVisitorIdPayload, PublicLogin, PublicLoginPayload, PublicRoom, PublicRoomVisitorCreatePayload, PublicRoomVisitor, PublicRoomVisitorUpdate, PublicRoomVisitorUpdatePayload, PublicUser, PublicVisitorChatTag, } from "./public";
20
+ export { NestedRoom, ServiceHours, OrganizationRoomSettings, OrganizationRoomSettingsPayload, RoomAllowedDomainLink, RoomAllowedDomainLinkPayload, RoomCreatePayload, Room, RoomPayload, } from "./rooms";
21
+ export { RouterStepPrecondition, RouterStep, RouterStepPayload, Router, RouterPayload, NestedRouter, } from "./routers";
22
+ export { ExperimentRuleCondition, ExperimentRuleConditionPayload, ExperimentRule, ExperimentRulePayload, RuleAction, RuleActionPayload, RuleCondition, RuleConditionPayload, Rule, RulePayload, RuleUpdatePayload, } from "./rules";
23
+ export { AppShare, AppSharePayload, RoomSharePayload, OutgoingRoomShare, IncomingRoomShare, IncomingTeamShare, OutgoingTeamShare, TeamSharePayload, } from "./sharing";
24
+ export { ShoppingCartProduct, ShoppingCart } from "./shoppingcarts";
25
+ export { EndpointMethod, Endpoint, Language } from "./system";
26
+ export { NestedTargetRule, TargetAlgorithmVersion, NestedTargetConfig, TargetConfig, TargetExperiment, TargetedAction, TargetedActionPayload, VisitorPredictionList, VisitorPrediction, VisitorPredictionPayload, VisitorSessionPrediction, VisitorSessionPredictionPayload, } from "./target";
27
+ export { Team, NestedTeam, NestedIncomingSharedTeam, TeamPayload, TeamMembership, TeamMembershipPayload, } from "./teams";
28
+ export { ApplicationUid, AppShareUid, AssetUid, AvatarUid, BrandUid, BusinessUid, CannedAnswerUid, ChatAssignmentUid, LegacyChatDialogUid, ChatInvitationUid, ChatMessageAttachmentUid, ChatMessageAttachmentActionUid, ChatMessageUid, ChatReplySuggestionUid, ChatSessionUid, ChatUid, ExperimentGroupUid, ExperimentUid, FeatureName, GiosgAppUid, GiosgAppInstanceUid, GoalUid, InteractionUid, LeadFormDataUid, LeadFormDefinitionUid, OrganizationUid, OrganizationSettingsUid, PublicKeyUid, QuotaUid, RoomSettingsUid, RoomShareUid, RoomUid, RouterUid, RouterStepUid, RuleActionUid, RuleConditionUid, RuleUid, ShoppingCartUid, ShoppingCartProductUid, TagUid, TargetConfigUid, TeamShareUid, TeamUid, TokenUid, UserUid, UploadUid, VisitorPredictionUid, VisitorSessionPredictionUid, WebhookUid, VisitorUid, UserClientUid, BlackListUid, PackedVisitorCid, VisitorSecretId, VisitorSessionCid, VisitorSessionGid, VisitorCid, VisitorGid, UserLegacyId, ChatLegacyId, ChatUserLegacyId, OrganizationLegacyId, RoomLegacyId, RuleLegacyId, VisitorLegacyId, RoomLegacyToken, ASSET_TYPES, AssetType, EXPERIMENT_GROUP_TYPES, ExperimentGroupType, CHAT_STATUS_MESSAGE_TYPES, ChatStatusMessageType, CHAT_DATA_MESSAGE_TYPES, ChatDataMessageType, ChatMessageType, USER_PERMISSION_SCOPES, UserPermissionScope, } from "./types";
29
+ export { Upload, UploadPayload } from "./uploads";
30
+ export { UserClient, UserClientPayload } from "./userclients";
31
+ export { VisitorVariable, VisitorVariablePayload } from "./variables";
32
+ export { BlackList, BlackListPayload, CartLockedResponse, RoomVisitorPageView, RoomVisitor, ComposingStatus, ChatWithRoom, ChatMessageWithChat, RulePrediction, } from "./visitor";
33
+ export { NestedWebhookChannelSubscription, NestedWebhookChannelSubscriptionPayload, WebhookRequestLogEntry, Webhook, WebhookPayload, } from "./webhooks";
34
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,WAAW,EACX,UAAU,EACV,gBAAgB,EAChB,YAAY,EACZ,6BAA6B,EAC7B,6BAA6B,EAC7B,mCAAmC,EACnC,kBAAkB,EAClB,aAAa,EACb,WAAW,GACZ,MAAM,WAAW,CAAC;AAEnB,OAAO,EACL,gBAAgB,EAChB,wBAAwB,EACxB,QAAQ,EACR,eAAe,EACf,iBAAiB,EACjB,cAAc,GACf,MAAM,QAAQ,CAAC;AAEhB,OAAO,EACL,KAAK,EACL,YAAY,EACZ,WAAW,EACX,kBAAkB,EAClB,WAAW,EACX,iBAAiB,GAClB,MAAM,UAAU,CAAC;AAElB,OAAO,EAAE,KAAK,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAE5D,OAAO,EAAE,qBAAqB,EAAE,YAAY,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAE5F,OAAO,EACL,oBAAoB,EACpB,2BAA2B,EAC3B,oBAAoB,EACpB,oBAAoB,EACpB,2BAA2B,EAC3B,cAAc,EACd,uBAAuB,EACvB,8BAA8B,EAC9B,6BAA6B,EAC7B,oCAAoC,EAC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/index.js ADDED
@@ -0,0 +1,6 @@
1
+ export { ActionTypes, ACTION_TYPES, ACTION_STYLES, } from "./actions";
2
+ export { TIMEZONES, CURRENCIES, LANGUAGE_CODES } from "./common";
3
+ export { ConditionTypes, CONDITION_TYPES, } from "./conditions";
4
+ export { OAUTH_BASE_URL, OAUTH_SCOPE_OPTIONS, OAUTH_RESPONSE_TYPES, OAUTH_PROMPT_OPTIONS, OAUTH_ERROR_TYPES, } from "./oath";
5
+ export { AutosuggestPermissionOptions, AUTOSUGGEST_PERMISSION_OPTIONS, } from "./public";
6
+ export { ASSET_TYPES, EXPERIMENT_GROUP_TYPES, CHAT_STATUS_MESSAGE_TYPES, CHAT_DATA_MESSAGE_TYPES, USER_PERMISSION_SCOPES, } from "./types";
@@ -0,0 +1,30 @@
1
+ import { LeadFormDataUid, LeadFormDefinitionUid, OrganizationUid, UserUid, RoomUid, VisitorCid, RoomLegacyId } from "./types";
2
+ import { NestedUser } from "./customer";
3
+ /** TODO: Add jsdocs and check nullability of fields */
4
+ export interface LeadFormData {
5
+ id: LeadFormDataUid;
6
+ lead_form_id: LeadFormDefinitionUid;
7
+ organization_id: OrganizationUid;
8
+ room_id: RoomUid;
9
+ assigned_user_id: UserUid | null;
10
+ assigned_user: NestedUser | null;
11
+ visitor_id: VisitorCid;
12
+ is_closed: boolean;
13
+ page_url: string;
14
+ page_title: string;
15
+ is_processable: boolean;
16
+ data: {
17
+ [key: string]: any;
18
+ } | null;
19
+ created_at: string;
20
+ updated_at: string;
21
+ closed_at: string | null;
22
+ legacy_room_id: RoomLegacyId;
23
+ sensitive_data_purged_at: string;
24
+ }
25
+ /** TODO: Add jsdocs and check nullability of fields */
26
+ export interface LeadFormDataPayload {
27
+ assigned_user_id?: UserUid | null;
28
+ is_closed?: boolean;
29
+ }
30
+ //# sourceMappingURL=leadforms.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"leadforms.d.ts","sourceRoot":"","sources":["../src/leadforms.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,eAAe,EACf,qBAAqB,EACrB,eAAe,EACf,OAAO,EACP,OAAO,EACP,UAAU,EACV,YAAY,EACb,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAExC,uDAAuD;AACvD,MAAM,WAAW,YAAY;IAC3B,EAAE,EAAE,eAAe,CAAC;IACpB,YAAY,EAAE,qBAAqB,CAAC;IACpC,eAAe,EAAE,eAAe,CAAC;IACjC,OAAO,EAAE,OAAO,CAAC;IACjB,gBAAgB,EAAE,OAAO,GAAG,IAAI,CAAC;IACjC,aAAa,EAAE,UAAU,GAAG,IAAI,CAAC;IACjC,UAAU,EAAE,UAAU,CAAC;IACvB,SAAS,EAAE,OAAO,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,cAAc,EAAE,OAAO,CAAC;IACxB,IAAI,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,GAAG,IAAI,CAAC;IACpC,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,cAAc,EAAE,YAAY,CAAC;IAC7B,wBAAwB,EAAE,MAAM,CAAC;CAClC;AAED,uDAAuD;AACvD,MAAM,WAAW,mBAAmB;IAClC,gBAAgB,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;IAClC,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB"}
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,16 @@
1
+ export declare type LinkPreviewResponse = LinkPreviewResponseSuccess | LinkPreviewResponseError;
2
+ /** TODO: Add jsdocs and check nullability of fields */
3
+ export interface LinkPreviewResponseSuccess {
4
+ title: string;
5
+ description: string | null;
6
+ preview: string | null;
7
+ preview_is_logo: boolean;
8
+ url: string;
9
+ status: "success";
10
+ }
11
+ /** TODO: Add jsdocs and check nullability of fields */
12
+ export interface LinkPreviewResponseError {
13
+ status: "failure";
14
+ detail: string;
15
+ }
16
+ //# sourceMappingURL=linkpreview.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"linkpreview.d.ts","sourceRoot":"","sources":["../src/linkpreview.ts"],"names":[],"mappings":"AAAA,oBAAY,mBAAmB,GAAG,0BAA0B,GAAG,wBAAwB,CAAC;AAExF,uDAAuD;AACvD,MAAM,WAAW,0BAA0B;IACzC,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,eAAe,EAAE,OAAO,CAAC;IACzB,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,EAAE,SAAS,CAAC;CACnB;AAED,uDAAuD;AACvD,MAAM,WAAW,wBAAwB;IACvC,MAAM,EAAE,SAAS,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;CAChB"}
@@ -0,0 +1 @@
1
+ export {};
package/lib/oath.d.ts ADDED
@@ -0,0 +1,75 @@
1
+ import { ApplicationUid } from "./types";
2
+ export declare const OAUTH_BASE_URL = "https://service.giosg.com/identity/authorize";
3
+ export declare const OAUTH_SCOPE_OPTIONS: readonly ["openid", "openid profile", "openid email", "openid profile email"];
4
+ export declare type OauthScopeOptions = typeof OAUTH_SCOPE_OPTIONS[number];
5
+ export declare const OAUTH_RESPONSE_TYPES: readonly ["id_token", "id_token token"];
6
+ export declare type OauthResponseType = typeof OAUTH_RESPONSE_TYPES[number];
7
+ export declare const OAUTH_PROMPT_OPTIONS: readonly ["none", "login"];
8
+ export declare type OauthPromptOption = typeof OAUTH_PROMPT_OPTIONS[number];
9
+ export declare const OAUTH_ERROR_TYPES: readonly ["invalid_request", "invalid_client", "invalid_scope", "interaction_required", "login_required"];
10
+ export declare type OauthErrorType = typeof OAUTH_ERROR_TYPES[number];
11
+ export interface OAuthRequestParams {
12
+ /** A "list" of "scope" strings separated by single whitespace characters. The selected scopes affect the information included to the ID token */
13
+ scope: OauthScopeOptions;
14
+ /** With Implicit Flow this needs to be id_token token for receiving both ID and access tokens, or id_token for just the ID token */
15
+ response_type: OauthResponseType;
16
+ /** Unique identifier of the Giosg App as registered to Giosg. The app will act as a OAuth "client" */
17
+ client_id: ApplicationUid;
18
+ /** Redirection URI to which the response will be sent. This must exactly match one of the URIs that you have allowed for the Giosg App. The https scheme is required */
19
+ redirect_uri: string;
20
+ /**
21
+ * The value that will be included unmodified as the nonce claim in the ID token.
22
+ * The value should be used to associate a client session with an ID Token, and to mitigate replay attacks
23
+ */
24
+ nonce: string;
25
+ /**
26
+ * Opaque value used to maintain state between the request and the callback.
27
+ * It will be sent back as-is in the authentication response. Recommended to prevent Cross-Site Request Forgery (CSRF, XSRF)
28
+ */
29
+ state?: string;
30
+ /** Defines whether to show authentication UI to the user. "none" is default */
31
+ prompt?: OauthPromptOption;
32
+ }
33
+ export interface OAuthResponseSuccessToken {
34
+ /** Type of the token. Is always "bearer" */
35
+ token_type: "bearer";
36
+ /** Access token that the app can use with APIs. It is returned only if "response_type" request parameter was "id_token token" */
37
+ access_token: string;
38
+ /** The ID token as a JSON Web Token that the app can decode and get verified user information */
39
+ id_token: string;
40
+ /** The request state parameter unmodified. Your app must verify that the value matches the one sent with the request in order to prevent CSRF attacks */
41
+ state: string;
42
+ /** Number of seconds before the access token will expire */
43
+ expires_in: string;
44
+ /** The base URL for a WebSocket connection that client can use to subsribe real-time changes */
45
+ socket_url: string;
46
+ /** Version of the BAR required */
47
+ minimal_bar_version: number;
48
+ }
49
+ export interface OAuthResponseSuccessIdToken {
50
+ /** Type of the token. Is always "bearer" */
51
+ token_type: "bearer";
52
+ /** Access token that the app can use with APIs. It is returned only if "response_type" request parameter was "id_token token" */
53
+ access_token: null;
54
+ /** The ID token as a JSON Web Token that the app can decode and get verified user information */
55
+ id_token: string;
56
+ /** The request state parameter unmodified. Your app must verify that the value matches the one sent with the request in order to prevent CSRF attacks */
57
+ state: string;
58
+ /** Number of seconds before the access token will expire */
59
+ expires_in: string;
60
+ /** The base URL for a WebSocket connection that client can use to subsribe real-time changes */
61
+ socket_url: string;
62
+ /** Version of the BAR required */
63
+ minimal_bar_version: number;
64
+ }
65
+ export declare type OAuthResponseSuccess = OAuthResponseSuccessToken | OAuthResponseSuccessIdToken;
66
+ export interface OAuthResponseError {
67
+ /** The error code as a string */
68
+ error: OauthErrorType;
69
+ /** Text description of the error */
70
+ error_description: string;
71
+ /** The value of the state parameter included in the Authentication Request */
72
+ state: string;
73
+ }
74
+ export declare type OAuthResponse = OAuthResponseSuccess | OAuthResponseError;
75
+ //# sourceMappingURL=oath.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"oath.d.ts","sourceRoot":"","sources":["../src/oath.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAEzC,eAAO,MAAM,cAAc,iDAAiD,CAAC;AAE7E,eAAO,MAAM,mBAAmB,+EAKtB,CAAC;AACX,oBAAY,iBAAiB,GAAG,OAAO,mBAAmB,CAAC,MAAM,CAAC,CAAC;AAEnE,eAAO,MAAM,oBAAoB,yCAMvB,CAAC;AACX,oBAAY,iBAAiB,GAAG,OAAO,oBAAoB,CAAC,MAAM,CAAC,CAAC;AAEpE,eAAO,MAAM,oBAAoB,4BAA6B,CAAC;AAC/D,oBAAY,iBAAiB,GAAG,OAAO,oBAAoB,CAAC,MAAM,CAAC,CAAC;AAEpE,eAAO,MAAM,iBAAiB,2GAMpB,CAAC;AACX,oBAAY,cAAc,GAAG,OAAO,iBAAiB,CAAC,MAAM,CAAC,CAAC;AAE9D,MAAM,WAAW,kBAAkB;IACjC,iJAAiJ;IACjJ,KAAK,EAAE,iBAAiB,CAAC;IAEzB,oIAAoI;IACpI,aAAa,EAAE,iBAAiB,CAAC;IAEjC,sGAAsG;IACtG,SAAS,EAAE,cAAc,CAAC;IAE1B,wKAAwK;IACxK,YAAY,EAAE,MAAM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com/identity/authorize";
2
+ export var OAUTH_SCOPE_OPTIONS = [
3
+ "openid",
4
+ "openid profile",
5
+ "openid email",
6
+ "openid profile email",
7
+ ];
8
+ export var OAUTH_RESPONSE_TYPES = [
9
+ /**
10
+ * @deprecated
11
+ */
12
+ "id_token",
13
+ "id_token token",
14
+ ];
15
+ export var OAUTH_PROMPT_OPTIONS = ["none", "login"];
16
+ export var OAUTH_ERROR_TYPES = [
17
+ "invalid_request",
18
+ "invalid_client",
19
+ "invalid_scope",
20
+ "interaction_required",
21
+ "login_required",
22
+ ];
@@ -0,0 +1,54 @@
1
+ import { NestedAvatar } from "./customer";
2
+ import { NestedOrganization } from "./customer";
3
+ import { OrganizationUid, UserUid, AvatarUid } from "./types";
4
+ export interface PartnerOrganization {
5
+ /** Unique identifier of the partner organization */
6
+ id: OrganizationUid;
7
+ /** Name of the partner organization */
8
+ name: string;
9
+ /** Date when the partner organization was created */
10
+ created_at: string;
11
+ /** Defines whether the partner organization is currently present */
12
+ is_present: boolean;
13
+ /** Defines whether the partner organization is currently online */
14
+ is_online: boolean;
15
+ }
16
+ export interface PartnerOrganizationUser {
17
+ /** Unique identifier of the user */
18
+ id: UserUid;
19
+ /** Full name of the user */
20
+ full_name: string;
21
+ /** Email address of the user */
22
+ email: string;
23
+ /** Number of chats the user has, based on the most recent information about the user */
24
+ current_chat_count: number;
25
+ /** Unique identifier of the users avatar */
26
+ avatar_id: AvatarUid | null;
27
+ /** Avatar of the user */
28
+ avatar: NestedAvatar | null;
29
+ /** Date when the user was created */
30
+ created_at: string;
31
+ /** Defines whether the user is currently present, based on the most recent information about the user*/
32
+ is_present: boolean;
33
+ /** Defines whether the user is currently online */
34
+ is_online: boolean;
35
+ }
36
+ export interface Partnership {
37
+ /** Partner organization */
38
+ partner_organization: NestedOrganization;
39
+ /** Unique identifier of the partner organization */
40
+ partner_organization_id: OrganizationUid;
41
+ /** Unique identifier of the organization */
42
+ organization_id: OrganizationUid;
43
+ /** Organization that owns the partnership */
44
+ organization: NestedOrganization;
45
+ /** Name that is shown to your organization members for this partner. May be null, in which case the original name is shown */
46
+ display_name: string | null;
47
+ /** Date when the partnership was created */
48
+ created_at: string;
49
+ }
50
+ export interface PartnershipPayload {
51
+ /** Unique identifier of the partner organization */
52
+ partner_organization_id: OrganizationUid;
53
+ }
54
+ //# sourceMappingURL=partnerships.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"partnerships.d.ts","sourceRoot":"","sources":["../src/partnerships.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAC1C,OAAO,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAChD,OAAO,EAAE,eAAe,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAE9D,MAAM,WAAW,mBAAmB;IAClC,oDAAoD;IACpD,EAAE,EAAE,eAAe,CAAC;IAEpB,uCAAuC;IACvC,IAAI,EAAE,MAAM,CAAC;IAEb,qDAAqD;IACrD,UAAU,EAAE,MAAM,CAAC;IAEnB,oEAAoE;IACpE,UAAU,EAAE,OAAO,CAAC;IAEpB,mEAAmE;IACnE,SAAS,EAAE,OAAO,CAAC;CACpB;AAED,MAAM,WAAW,uBAAuB;IACtC,oCAAoC;IACpC,EAAE,EAAE,OAAO,CAAC;IAEZ,4BAA4B;IAC5B,SAAS,EAAE,MAAM,CAAC;IAElB,gCAAgC;IAChC,KAAK,EAAE,MAAM,CAAC;IAEd,wFAAwF;IACxF,kBAAkB,EAAE,MAAM,CAAC;IAE3B,4CAA4C;IAC5C,SAAS,EAAE,SAAS,GAAG,IAAI,CAAC;IAE5B,yBAAyB;IACzB,MAAM,EAAE,YAAY,GAAG,IAAI,CAAC;IAE5B,qCAAqC;IACrC,UAAU,EAAE,MAAM,CAAC;IAEnB,wGAAwG;IACxG,UAAU,EAAE,OAAO,CAAC;IAEpB,mDAAmD;IACnD,SAAS,EAAE,OAAO,CAAC;CACpB;AAED,MAAM,WAAW,W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