@proteos/sdk 0.27.0 → 0.28.0
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.
- package/dist/{chunk-NVMOW4XC.cjs → chunk-3SWQRVZX.cjs} +4 -3
- package/dist/chunk-3SWQRVZX.cjs.map +1 -0
- package/dist/{chunk-WK6KEEKM.js → chunk-Y5RY27JB.js} +4 -3
- package/dist/chunk-Y5RY27JB.js.map +1 -0
- package/dist/index.cjs +172 -86
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +166 -31
- package/dist/index.d.ts +166 -31
- package/dist/index.js +90 -4
- package/dist/index.js.map +1 -1
- package/dist/meta/index.cjs +53 -53
- package/dist/meta/index.d.cts +1 -1
- package/dist/meta/index.d.ts +1 -1
- package/dist/meta/index.js +1 -1
- package/dist/{types-BGHMMBHF.d.cts → types-BguERkVI.d.cts} +6 -0
- package/dist/{types-BGHMMBHF.d.ts → types-BguERkVI.d.ts} +6 -0
- package/package.json +1 -1
- package/src/conversation/index.ts +133 -6
- package/src/conversation/types.ts +174 -26
- package/src/index.ts +23 -4
- package/src/meta/layout/elements.ts +7 -0
- package/dist/chunk-NVMOW4XC.cjs.map +0 -1
- package/dist/chunk-WK6KEEKM.js.map +0 -1
package/dist/meta/index.cjs
CHANGED
|
@@ -1,216 +1,216 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunk3SWQRVZX_cjs = require('../chunk-3SWQRVZX.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
Object.defineProperty(exports, "AppSchema", {
|
|
8
8
|
enumerable: true,
|
|
9
|
-
get: function () { return
|
|
9
|
+
get: function () { return chunk3SWQRVZX_cjs.AppSchema; }
|
|
10
10
|
});
|
|
11
11
|
Object.defineProperty(exports, "AttributeSchema", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunk3SWQRVZX_cjs.AttributeSchema; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "BUILT_IN_CONTROLS", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunk3SWQRVZX_cjs.BUILT_IN_CONTROLS; }
|
|
18
18
|
});
|
|
19
19
|
Object.defineProperty(exports, "ColumnSchema", {
|
|
20
20
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunk3SWQRVZX_cjs.ColumnSchema; }
|
|
22
22
|
});
|
|
23
23
|
Object.defineProperty(exports, "ComponentSchema", {
|
|
24
24
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunk3SWQRVZX_cjs.ComponentSchema; }
|
|
26
26
|
});
|
|
27
27
|
Object.defineProperty(exports, "CurrencyAttributeMetaSchema", {
|
|
28
28
|
enumerable: true,
|
|
29
|
-
get: function () { return
|
|
29
|
+
get: function () { return chunk3SWQRVZX_cjs.CurrencyAttributeMetaSchema; }
|
|
30
30
|
});
|
|
31
31
|
Object.defineProperty(exports, "DesignReferenceSchema", {
|
|
32
32
|
enumerable: true,
|
|
33
|
-
get: function () { return
|
|
33
|
+
get: function () { return chunk3SWQRVZX_cjs.DesignReferenceSchema; }
|
|
34
34
|
});
|
|
35
35
|
Object.defineProperty(exports, "EntitySchema", {
|
|
36
36
|
enumerable: true,
|
|
37
|
-
get: function () { return
|
|
37
|
+
get: function () { return chunk3SWQRVZX_cjs.EntitySchema; }
|
|
38
38
|
});
|
|
39
39
|
Object.defineProperty(exports, "EntityWithSchemaSchema", {
|
|
40
40
|
enumerable: true,
|
|
41
|
-
get: function () { return
|
|
41
|
+
get: function () { return chunk3SWQRVZX_cjs.EntityWithSchemaSchema; }
|
|
42
42
|
});
|
|
43
43
|
Object.defineProperty(exports, "FileAttributeMetaSchema", {
|
|
44
44
|
enumerable: true,
|
|
45
|
-
get: function () { return
|
|
45
|
+
get: function () { return chunk3SWQRVZX_cjs.FileAttributeMetaSchema; }
|
|
46
46
|
});
|
|
47
47
|
Object.defineProperty(exports, "FilterElementSchema", {
|
|
48
48
|
enumerable: true,
|
|
49
|
-
get: function () { return
|
|
49
|
+
get: function () { return chunk3SWQRVZX_cjs.FilterElementSchema; }
|
|
50
50
|
});
|
|
51
51
|
Object.defineProperty(exports, "FilterGroupSchema", {
|
|
52
52
|
enumerable: true,
|
|
53
|
-
get: function () { return
|
|
53
|
+
get: function () { return chunk3SWQRVZX_cjs.FilterGroupSchema; }
|
|
54
54
|
});
|
|
55
55
|
Object.defineProperty(exports, "LayoutElementSchema", {
|
|
56
56
|
enumerable: true,
|
|
57
|
-
get: function () { return
|
|
57
|
+
get: function () { return chunk3SWQRVZX_cjs.LayoutElementSchema; }
|
|
58
58
|
});
|
|
59
59
|
Object.defineProperty(exports, "LayoutElementType", {
|
|
60
60
|
enumerable: true,
|
|
61
|
-
get: function () { return
|
|
61
|
+
get: function () { return chunk3SWQRVZX_cjs.LayoutElementType; }
|
|
62
62
|
});
|
|
63
63
|
Object.defineProperty(exports, "ListSchema", {
|
|
64
64
|
enumerable: true,
|
|
65
|
-
get: function () { return
|
|
65
|
+
get: function () { return chunk3SWQRVZX_cjs.ListSchema; }
|
|
66
66
|
});
|
|
67
67
|
Object.defineProperty(exports, "ListViewSchema", {
|
|
68
68
|
enumerable: true,
|
|
69
|
-
get: function () { return
|
|
69
|
+
get: function () { return chunk3SWQRVZX_cjs.ListViewSchema; }
|
|
70
70
|
});
|
|
71
71
|
Object.defineProperty(exports, "MenuConfigurationSchema", {
|
|
72
72
|
enumerable: true,
|
|
73
|
-
get: function () { return
|
|
73
|
+
get: function () { return chunk3SWQRVZX_cjs.MenuConfigurationSchema; }
|
|
74
74
|
});
|
|
75
75
|
Object.defineProperty(exports, "MenuItemSchema", {
|
|
76
76
|
enumerable: true,
|
|
77
|
-
get: function () { return
|
|
77
|
+
get: function () { return chunk3SWQRVZX_cjs.MenuItemSchema; }
|
|
78
78
|
});
|
|
79
79
|
Object.defineProperty(exports, "MenuItemType", {
|
|
80
80
|
enumerable: true,
|
|
81
|
-
get: function () { return
|
|
81
|
+
get: function () { return chunk3SWQRVZX_cjs.MenuItemType; }
|
|
82
82
|
});
|
|
83
83
|
Object.defineProperty(exports, "MetaClient", {
|
|
84
84
|
enumerable: true,
|
|
85
|
-
get: function () { return
|
|
85
|
+
get: function () { return chunk3SWQRVZX_cjs.MetaClient; }
|
|
86
86
|
});
|
|
87
87
|
Object.defineProperty(exports, "ModuleSchema", {
|
|
88
88
|
enumerable: true,
|
|
89
|
-
get: function () { return
|
|
89
|
+
get: function () { return chunk3SWQRVZX_cjs.ModuleSchema; }
|
|
90
90
|
});
|
|
91
91
|
Object.defineProperty(exports, "OnDeleteActionSchema", {
|
|
92
92
|
enumerable: true,
|
|
93
|
-
get: function () { return
|
|
93
|
+
get: function () { return chunk3SWQRVZX_cjs.OnDeleteActionSchema; }
|
|
94
94
|
});
|
|
95
95
|
Object.defineProperty(exports, "PAGE_BACKGROUND_TOKENS", {
|
|
96
96
|
enumerable: true,
|
|
97
|
-
get: function () { return
|
|
97
|
+
get: function () { return chunk3SWQRVZX_cjs.PAGE_BACKGROUND_TOKENS; }
|
|
98
98
|
});
|
|
99
99
|
Object.defineProperty(exports, "PLATFORM_ATTRIBUTE_NAMES", {
|
|
100
100
|
enumerable: true,
|
|
101
|
-
get: function () { return
|
|
101
|
+
get: function () { return chunk3SWQRVZX_cjs.PLATFORM_ATTRIBUTE_NAMES; }
|
|
102
102
|
});
|
|
103
103
|
Object.defineProperty(exports, "PageActionSchema", {
|
|
104
104
|
enumerable: true,
|
|
105
|
-
get: function () { return
|
|
105
|
+
get: function () { return chunk3SWQRVZX_cjs.PageActionSchema; }
|
|
106
106
|
});
|
|
107
107
|
Object.defineProperty(exports, "PageLayoutSchema", {
|
|
108
108
|
enumerable: true,
|
|
109
|
-
get: function () { return
|
|
109
|
+
get: function () { return chunk3SWQRVZX_cjs.PageLayoutSchema; }
|
|
110
110
|
});
|
|
111
111
|
Object.defineProperty(exports, "PageLayoutSidePanelSchema", {
|
|
112
112
|
enumerable: true,
|
|
113
|
-
get: function () { return
|
|
113
|
+
get: function () { return chunk3SWQRVZX_cjs.PageLayoutSidePanelSchema; }
|
|
114
114
|
});
|
|
115
115
|
Object.defineProperty(exports, "PageSchema", {
|
|
116
116
|
enumerable: true,
|
|
117
|
-
get: function () { return
|
|
117
|
+
get: function () { return chunk3SWQRVZX_cjs.PageSchema; }
|
|
118
118
|
});
|
|
119
119
|
Object.defineProperty(exports, "PageStyleSchema", {
|
|
120
120
|
enumerable: true,
|
|
121
|
-
get: function () { return
|
|
121
|
+
get: function () { return chunk3SWQRVZX_cjs.PageStyleSchema; }
|
|
122
122
|
});
|
|
123
123
|
Object.defineProperty(exports, "RelationAttributeMetaSchema", {
|
|
124
124
|
enumerable: true,
|
|
125
|
-
get: function () { return
|
|
125
|
+
get: function () { return chunk3SWQRVZX_cjs.RelationAttributeMetaSchema; }
|
|
126
126
|
});
|
|
127
127
|
Object.defineProperty(exports, "SizeValueSchema", {
|
|
128
128
|
enumerable: true,
|
|
129
|
-
get: function () { return
|
|
129
|
+
get: function () { return chunk3SWQRVZX_cjs.SizeValueSchema; }
|
|
130
130
|
});
|
|
131
131
|
Object.defineProperty(exports, "SortConfigSchema", {
|
|
132
132
|
enumerable: true,
|
|
133
|
-
get: function () { return
|
|
133
|
+
get: function () { return chunk3SWQRVZX_cjs.SortConfigSchema; }
|
|
134
134
|
});
|
|
135
135
|
Object.defineProperty(exports, "UserAttributeMetaSchema", {
|
|
136
136
|
enumerable: true,
|
|
137
|
-
get: function () { return
|
|
137
|
+
get: function () { return chunk3SWQRVZX_cjs.UserAttributeMetaSchema; }
|
|
138
138
|
});
|
|
139
139
|
Object.defineProperty(exports, "VariableSchema", {
|
|
140
140
|
enumerable: true,
|
|
141
|
-
get: function () { return
|
|
141
|
+
get: function () { return chunk3SWQRVZX_cjs.VariableSchema; }
|
|
142
142
|
});
|
|
143
143
|
Object.defineProperty(exports, "allCurrencyCodes", {
|
|
144
144
|
enumerable: true,
|
|
145
|
-
get: function () { return
|
|
145
|
+
get: function () { return chunk3SWQRVZX_cjs.allCurrencyCodes; }
|
|
146
146
|
});
|
|
147
147
|
Object.defineProperty(exports, "currencyLabel", {
|
|
148
148
|
enumerable: true,
|
|
149
|
-
get: function () { return
|
|
149
|
+
get: function () { return chunk3SWQRVZX_cjs.currencyLabel; }
|
|
150
150
|
});
|
|
151
151
|
Object.defineProperty(exports, "currencySymbol", {
|
|
152
152
|
enumerable: true,
|
|
153
|
-
get: function () { return
|
|
153
|
+
get: function () { return chunk3SWQRVZX_cjs.currencySymbol; }
|
|
154
154
|
});
|
|
155
155
|
Object.defineProperty(exports, "currencySymbolSide", {
|
|
156
156
|
enumerable: true,
|
|
157
|
-
get: function () { return
|
|
157
|
+
get: function () { return chunk3SWQRVZX_cjs.currencySymbolSide; }
|
|
158
158
|
});
|
|
159
159
|
Object.defineProperty(exports, "formatAmount", {
|
|
160
160
|
enumerable: true,
|
|
161
|
-
get: function () { return
|
|
161
|
+
get: function () { return chunk3SWQRVZX_cjs.formatAmount; }
|
|
162
162
|
});
|
|
163
163
|
Object.defineProperty(exports, "formatMoney", {
|
|
164
164
|
enumerable: true,
|
|
165
|
-
get: function () { return
|
|
165
|
+
get: function () { return chunk3SWQRVZX_cjs.formatMoney; }
|
|
166
166
|
});
|
|
167
167
|
Object.defineProperty(exports, "isBuiltInControl", {
|
|
168
168
|
enumerable: true,
|
|
169
|
-
get: function () { return
|
|
169
|
+
get: function () { return chunk3SWQRVZX_cjs.isBuiltInControl; }
|
|
170
170
|
});
|
|
171
171
|
Object.defineProperty(exports, "isPlatformAttributeName", {
|
|
172
172
|
enumerable: true,
|
|
173
|
-
get: function () { return
|
|
173
|
+
get: function () { return chunk3SWQRVZX_cjs.isPlatformAttributeName; }
|
|
174
174
|
});
|
|
175
175
|
Object.defineProperty(exports, "localeNumberSeparators", {
|
|
176
176
|
enumerable: true,
|
|
177
|
-
get: function () { return
|
|
177
|
+
get: function () { return chunk3SWQRVZX_cjs.localeNumberSeparators; }
|
|
178
178
|
});
|
|
179
179
|
Object.defineProperty(exports, "lookupCompatibleControls", {
|
|
180
180
|
enumerable: true,
|
|
181
|
-
get: function () { return
|
|
181
|
+
get: function () { return chunk3SWQRVZX_cjs.lookupCompatibleControls; }
|
|
182
182
|
});
|
|
183
183
|
Object.defineProperty(exports, "lookupControls", {
|
|
184
184
|
enumerable: true,
|
|
185
|
-
get: function () { return
|
|
185
|
+
get: function () { return chunk3SWQRVZX_cjs.lookupControls; }
|
|
186
186
|
});
|
|
187
187
|
Object.defineProperty(exports, "lookupPrimaryControl", {
|
|
188
188
|
enumerable: true,
|
|
189
|
-
get: function () { return
|
|
189
|
+
get: function () { return chunk3SWQRVZX_cjs.lookupPrimaryControl; }
|
|
190
190
|
});
|
|
191
191
|
Object.defineProperty(exports, "parseAmount", {
|
|
192
192
|
enumerable: true,
|
|
193
|
-
get: function () { return
|
|
193
|
+
get: function () { return chunk3SWQRVZX_cjs.parseAmount; }
|
|
194
194
|
});
|
|
195
195
|
Object.defineProperty(exports, "parseCurrencyMeta", {
|
|
196
196
|
enumerable: true,
|
|
197
|
-
get: function () { return
|
|
197
|
+
get: function () { return chunk3SWQRVZX_cjs.parseCurrencyMeta; }
|
|
198
198
|
});
|
|
199
199
|
Object.defineProperty(exports, "parseFileMeta", {
|
|
200
200
|
enumerable: true,
|
|
201
|
-
get: function () { return
|
|
201
|
+
get: function () { return chunk3SWQRVZX_cjs.parseFileMeta; }
|
|
202
202
|
});
|
|
203
203
|
Object.defineProperty(exports, "parseRelationMeta", {
|
|
204
204
|
enumerable: true,
|
|
205
|
-
get: function () { return
|
|
205
|
+
get: function () { return chunk3SWQRVZX_cjs.parseRelationMeta; }
|
|
206
206
|
});
|
|
207
207
|
Object.defineProperty(exports, "parseUserMeta", {
|
|
208
208
|
enumerable: true,
|
|
209
|
-
get: function () { return
|
|
209
|
+
get: function () { return chunk3SWQRVZX_cjs.parseUserMeta; }
|
|
210
210
|
});
|
|
211
211
|
Object.defineProperty(exports, "platformAttributes", {
|
|
212
212
|
enumerable: true,
|
|
213
|
-
get: function () { return
|
|
213
|
+
get: function () { return chunk3SWQRVZX_cjs.platformAttributes; }
|
|
214
214
|
});
|
|
215
215
|
//# sourceMappingURL=index.cjs.map
|
|
216
216
|
//# sourceMappingURL=index.cjs.map
|
package/dist/meta/index.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { e as App, f as AppSchema, g as AppService, bm as ArrayAttributeMeta, a as Attribute, bn as AttributeForLookup, bo as AttributeMeta, h as AttributeSchema, i as AttributeType, bp as BUILT_IN_CONTROLS, bq as BuiltInControlSlug, k as Column, br as ColumnElement, l as ColumnSchema, bs as CommonProps, m as ComparisonOperator, n as Component, bt as ComponentElement, o as ComponentSchema, p as ComponentService, bu as ControlBucket, q as CreateAppRequest, r as CreateComponentRequest, s as CreateDesignReferenceRequest, t as CreateEntityRequest, u as CreateListRequest, v as CreateListViewRequest, w as CreateMenuConfigurationRequest, x as CreatePageRequest, y as CreateVariableRequest, z as CurrencyAttributeMeta, B as CurrencyAttributeMetaSchema, D as CurrencySymbolSide, E as CurrencyValue, bv as DatetimeAttributeMeta, bw as DatetimeFormat, J as DeployModuleRequest, K as DesignReference, M as DesignReferenceContent, N as DesignReferenceSchema, O as DesignReferenceService, bx as DividerElement, R as Entity, S as EntitySchema, T as EntityService, V as EntityWithSchema, W as EntityWithSchemaSchema, by as EnumAttributeMeta, bz as EnumValue, bA as FieldElement, X as FileAttributeMeta, bB as FileAttributeMetaSchema, Z as FilterElement, _ as FilterElementSchema, $ as FilterGroup, a0 as FilterGroupSchema, bC as LayoutAlign, bD as LayoutElement, bE as LayoutElementSchema, bF as LayoutElementType, bG as LayoutGap, bH as LayoutJustify, bI as LayoutTab, a1 as List, a2 as ListAppsOptions, a3 as ListComponentsOptions, a4 as ListDesignReferencesOptions, a5 as ListEntitiesOptions, a7 as ListListViewsOptions, a8 as ListListsOptions, a9 as ListMenuConfigurationsOptions, aa as ListModulesOptions, ab as ListPagesOptions, ac as ListSchema, ad as ListService, ae as ListVariablesOptions, af as ListView, ag as ListViewSchema, ah as ListViewService, ai as LogicalOperator, aj as MenuConfiguration, ak as MenuConfigurationSchema, al as MenuConfigurationService, am as MenuItem, an as MenuItemSchema, ao as MenuItemType, ap as MetaClient, aq as MetaListOptions, ar as Module, as as ModuleSchema, at as ModuleService, au as ModuleStatus, bJ as NumberAttributeMeta, bK as ObjectAttributeMeta, av as OnDeleteAction, aw as OnDeleteActionSchema, bL as PAGE_BACKGROUND_TOKENS, ax as PLATFORM_ATTRIBUTE_NAMES, az as Page, aA as PageAction, aB as PageActionSchema, bM as PageBackgroundToken, aC as PageLayout, aD as PageLayoutSchema, bN as PageLayoutSidePanel, bO as PageLayoutSidePanelSchema, aE as PageSchema, aF as PageService, bP as PageStyle, bQ as PageStyleSchema, aG as PageType, d as PublicAccessOperation, aH as PublicPageComponent, aI as PublicPageResponse, bR as RelatedListElement, aJ as RelationAttributeMeta, aK as RelationAttributeMetaSchema, bS as ResponsiveSizing, bT as RowElement, bU as SectionElement, bV as SizeValue, bW as SizeValueSchema, bX as SizingProps, aP as SortConfig, aQ as SortConfigSchema, aR as SortDirection, bY as StringAttributeMeta, bZ as StringFormat, b_ as TabsElement, b$ as TextElement, c0 as TextVariant, aU as UpdateAppRequest, aV as UpdateComponentRequest, aW as UpdateDesignReferenceRequest, aX as UpdateEntityRequest, aY as UpdateListRequest, aZ as UpdateListViewRequest, a_ as UpdateMenuConfigurationRequest, a$ as UpdatePageRequest, b0 as UpdateVariableRequest, c1 as UserAttributeMeta, c2 as UserAttributeMetaSchema, b3 as Variable, b4 as VariableSchema, b5 as VariableService, b6 as allCurrencyCodes, b9 as currencyLabel, ba as currencySymbol, bb as currencySymbolSide, bc as formatAmount, bd as formatMoney, c3 as isBuiltInControl, be as isPlatformAttributeName, bf as localeNumberSeparators, c4 as lookupCompatibleControls, c5 as lookupControls, c6 as lookupPrimaryControl, bg as parseAmount, bh as parseCurrencyMeta, bi as parseFileMeta, bj as parseRelationMeta, c7 as parseUserMeta, bk as platformAttributes } from '../types-
|
|
1
|
+
export { e as App, f as AppSchema, g as AppService, bm as ArrayAttributeMeta, a as Attribute, bn as AttributeForLookup, bo as AttributeMeta, h as AttributeSchema, i as AttributeType, bp as BUILT_IN_CONTROLS, bq as BuiltInControlSlug, k as Column, br as ColumnElement, l as ColumnSchema, bs as CommonProps, m as ComparisonOperator, n as Component, bt as ComponentElement, o as ComponentSchema, p as ComponentService, bu as ControlBucket, q as CreateAppRequest, r as CreateComponentRequest, s as CreateDesignReferenceRequest, t as CreateEntityRequest, u as CreateListRequest, v as CreateListViewRequest, w as CreateMenuConfigurationRequest, x as CreatePageRequest, y as CreateVariableRequest, z as CurrencyAttributeMeta, B as CurrencyAttributeMetaSchema, D as CurrencySymbolSide, E as CurrencyValue, bv as DatetimeAttributeMeta, bw as DatetimeFormat, J as DeployModuleRequest, K as DesignReference, M as DesignReferenceContent, N as DesignReferenceSchema, O as DesignReferenceService, bx as DividerElement, R as Entity, S as EntitySchema, T as EntityService, V as EntityWithSchema, W as EntityWithSchemaSchema, by as EnumAttributeMeta, bz as EnumValue, bA as FieldElement, X as FileAttributeMeta, bB as FileAttributeMetaSchema, Z as FilterElement, _ as FilterElementSchema, $ as FilterGroup, a0 as FilterGroupSchema, bC as LayoutAlign, bD as LayoutElement, bE as LayoutElementSchema, bF as LayoutElementType, bG as LayoutGap, bH as LayoutJustify, bI as LayoutTab, a1 as List, a2 as ListAppsOptions, a3 as ListComponentsOptions, a4 as ListDesignReferencesOptions, a5 as ListEntitiesOptions, a7 as ListListViewsOptions, a8 as ListListsOptions, a9 as ListMenuConfigurationsOptions, aa as ListModulesOptions, ab as ListPagesOptions, ac as ListSchema, ad as ListService, ae as ListVariablesOptions, af as ListView, ag as ListViewSchema, ah as ListViewService, ai as LogicalOperator, aj as MenuConfiguration, ak as MenuConfigurationSchema, al as MenuConfigurationService, am as MenuItem, an as MenuItemSchema, ao as MenuItemType, ap as MetaClient, aq as MetaListOptions, ar as Module, as as ModuleSchema, at as ModuleService, au as ModuleStatus, bJ as NumberAttributeMeta, bK as ObjectAttributeMeta, av as OnDeleteAction, aw as OnDeleteActionSchema, bL as PAGE_BACKGROUND_TOKENS, ax as PLATFORM_ATTRIBUTE_NAMES, az as Page, aA as PageAction, aB as PageActionSchema, bM as PageBackgroundToken, aC as PageLayout, aD as PageLayoutSchema, bN as PageLayoutSidePanel, bO as PageLayoutSidePanelSchema, aE as PageSchema, aF as PageService, bP as PageStyle, bQ as PageStyleSchema, aG as PageType, d as PublicAccessOperation, aH as PublicPageComponent, aI as PublicPageResponse, bR as RelatedListElement, aJ as RelationAttributeMeta, aK as RelationAttributeMetaSchema, bS as ResponsiveSizing, bT as RowElement, bU as SectionElement, bV as SizeValue, bW as SizeValueSchema, bX as SizingProps, aP as SortConfig, aQ as SortConfigSchema, aR as SortDirection, bY as StringAttributeMeta, bZ as StringFormat, b_ as TabsElement, b$ as TextElement, c0 as TextVariant, aU as UpdateAppRequest, aV as UpdateComponentRequest, aW as UpdateDesignReferenceRequest, aX as UpdateEntityRequest, aY as UpdateListRequest, aZ as UpdateListViewRequest, a_ as UpdateMenuConfigurationRequest, a$ as UpdatePageRequest, b0 as UpdateVariableRequest, c1 as UserAttributeMeta, c2 as UserAttributeMetaSchema, b3 as Variable, b4 as VariableSchema, b5 as VariableService, b6 as allCurrencyCodes, b9 as currencyLabel, ba as currencySymbol, bb as currencySymbolSide, bc as formatAmount, bd as formatMoney, c3 as isBuiltInControl, be as isPlatformAttributeName, bf as localeNumberSeparators, c4 as lookupCompatibleControls, c5 as lookupControls, c6 as lookupPrimaryControl, bg as parseAmount, bh as parseCurrencyMeta, bi as parseFileMeta, bj as parseRelationMeta, c7 as parseUserMeta, bk as platformAttributes } from '../types-BguERkVI.cjs';
|
|
2
2
|
import 'zod';
|
package/dist/meta/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { e as App, f as AppSchema, g as AppService, bm as ArrayAttributeMeta, a as Attribute, bn as AttributeForLookup, bo as AttributeMeta, h as AttributeSchema, i as AttributeType, bp as BUILT_IN_CONTROLS, bq as BuiltInControlSlug, k as Column, br as ColumnElement, l as ColumnSchema, bs as CommonProps, m as ComparisonOperator, n as Component, bt as ComponentElement, o as ComponentSchema, p as ComponentService, bu as ControlBucket, q as CreateAppRequest, r as CreateComponentRequest, s as CreateDesignReferenceRequest, t as CreateEntityRequest, u as CreateListRequest, v as CreateListViewRequest, w as CreateMenuConfigurationRequest, x as CreatePageRequest, y as CreateVariableRequest, z as CurrencyAttributeMeta, B as CurrencyAttributeMetaSchema, D as CurrencySymbolSide, E as CurrencyValue, bv as DatetimeAttributeMeta, bw as DatetimeFormat, J as DeployModuleRequest, K as DesignReference, M as DesignReferenceContent, N as DesignReferenceSchema, O as DesignReferenceService, bx as DividerElement, R as Entity, S as EntitySchema, T as EntityService, V as EntityWithSchema, W as EntityWithSchemaSchema, by as EnumAttributeMeta, bz as EnumValue, bA as FieldElement, X as FileAttributeMeta, bB as FileAttributeMetaSchema, Z as FilterElement, _ as FilterElementSchema, $ as FilterGroup, a0 as FilterGroupSchema, bC as LayoutAlign, bD as LayoutElement, bE as LayoutElementSchema, bF as LayoutElementType, bG as LayoutGap, bH as LayoutJustify, bI as LayoutTab, a1 as List, a2 as ListAppsOptions, a3 as ListComponentsOptions, a4 as ListDesignReferencesOptions, a5 as ListEntitiesOptions, a7 as ListListViewsOptions, a8 as ListListsOptions, a9 as ListMenuConfigurationsOptions, aa as ListModulesOptions, ab as ListPagesOptions, ac as ListSchema, ad as ListService, ae as ListVariablesOptions, af as ListView, ag as ListViewSchema, ah as ListViewService, ai as LogicalOperator, aj as MenuConfiguration, ak as MenuConfigurationSchema, al as MenuConfigurationService, am as MenuItem, an as MenuItemSchema, ao as MenuItemType, ap as MetaClient, aq as MetaListOptions, ar as Module, as as ModuleSchema, at as ModuleService, au as ModuleStatus, bJ as NumberAttributeMeta, bK as ObjectAttributeMeta, av as OnDeleteAction, aw as OnDeleteActionSchema, bL as PAGE_BACKGROUND_TOKENS, ax as PLATFORM_ATTRIBUTE_NAMES, az as Page, aA as PageAction, aB as PageActionSchema, bM as PageBackgroundToken, aC as PageLayout, aD as PageLayoutSchema, bN as PageLayoutSidePanel, bO as PageLayoutSidePanelSchema, aE as PageSchema, aF as PageService, bP as PageStyle, bQ as PageStyleSchema, aG as PageType, d as PublicAccessOperation, aH as PublicPageComponent, aI as PublicPageResponse, bR as RelatedListElement, aJ as RelationAttributeMeta, aK as RelationAttributeMetaSchema, bS as ResponsiveSizing, bT as RowElement, bU as SectionElement, bV as SizeValue, bW as SizeValueSchema, bX as SizingProps, aP as SortConfig, aQ as SortConfigSchema, aR as SortDirection, bY as StringAttributeMeta, bZ as StringFormat, b_ as TabsElement, b$ as TextElement, c0 as TextVariant, aU as UpdateAppRequest, aV as UpdateComponentRequest, aW as UpdateDesignReferenceRequest, aX as UpdateEntityRequest, aY as UpdateListRequest, aZ as UpdateListViewRequest, a_ as UpdateMenuConfigurationRequest, a$ as UpdatePageRequest, b0 as UpdateVariableRequest, c1 as UserAttributeMeta, c2 as UserAttributeMetaSchema, b3 as Variable, b4 as VariableSchema, b5 as VariableService, b6 as allCurrencyCodes, b9 as currencyLabel, ba as currencySymbol, bb as currencySymbolSide, bc as formatAmount, bd as formatMoney, c3 as isBuiltInControl, be as isPlatformAttributeName, bf as localeNumberSeparators, c4 as lookupCompatibleControls, c5 as lookupControls, c6 as lookupPrimaryControl, bg as parseAmount, bh as parseCurrencyMeta, bi as parseFileMeta, bj as parseRelationMeta, c7 as parseUserMeta, bk as platformAttributes } from '../types-
|
|
1
|
+
export { e as App, f as AppSchema, g as AppService, bm as ArrayAttributeMeta, a as Attribute, bn as AttributeForLookup, bo as AttributeMeta, h as AttributeSchema, i as AttributeType, bp as BUILT_IN_CONTROLS, bq as BuiltInControlSlug, k as Column, br as ColumnElement, l as ColumnSchema, bs as CommonProps, m as ComparisonOperator, n as Component, bt as ComponentElement, o as ComponentSchema, p as ComponentService, bu as ControlBucket, q as CreateAppRequest, r as CreateComponentRequest, s as CreateDesignReferenceRequest, t as CreateEntityRequest, u as CreateListRequest, v as CreateListViewRequest, w as CreateMenuConfigurationRequest, x as CreatePageRequest, y as CreateVariableRequest, z as CurrencyAttributeMeta, B as CurrencyAttributeMetaSchema, D as CurrencySymbolSide, E as CurrencyValue, bv as DatetimeAttributeMeta, bw as DatetimeFormat, J as DeployModuleRequest, K as DesignReference, M as DesignReferenceContent, N as DesignReferenceSchema, O as DesignReferenceService, bx as DividerElement, R as Entity, S as EntitySchema, T as EntityService, V as EntityWithSchema, W as EntityWithSchemaSchema, by as EnumAttributeMeta, bz as EnumValue, bA as FieldElement, X as FileAttributeMeta, bB as FileAttributeMetaSchema, Z as FilterElement, _ as FilterElementSchema, $ as FilterGroup, a0 as FilterGroupSchema, bC as LayoutAlign, bD as LayoutElement, bE as LayoutElementSchema, bF as LayoutElementType, bG as LayoutGap, bH as LayoutJustify, bI as LayoutTab, a1 as List, a2 as ListAppsOptions, a3 as ListComponentsOptions, a4 as ListDesignReferencesOptions, a5 as ListEntitiesOptions, a7 as ListListViewsOptions, a8 as ListListsOptions, a9 as ListMenuConfigurationsOptions, aa as ListModulesOptions, ab as ListPagesOptions, ac as ListSchema, ad as ListService, ae as ListVariablesOptions, af as ListView, ag as ListViewSchema, ah as ListViewService, ai as LogicalOperator, aj as MenuConfiguration, ak as MenuConfigurationSchema, al as MenuConfigurationService, am as MenuItem, an as MenuItemSchema, ao as MenuItemType, ap as MetaClient, aq as MetaListOptions, ar as Module, as as ModuleSchema, at as ModuleService, au as ModuleStatus, bJ as NumberAttributeMeta, bK as ObjectAttributeMeta, av as OnDeleteAction, aw as OnDeleteActionSchema, bL as PAGE_BACKGROUND_TOKENS, ax as PLATFORM_ATTRIBUTE_NAMES, az as Page, aA as PageAction, aB as PageActionSchema, bM as PageBackgroundToken, aC as PageLayout, aD as PageLayoutSchema, bN as PageLayoutSidePanel, bO as PageLayoutSidePanelSchema, aE as PageSchema, aF as PageService, bP as PageStyle, bQ as PageStyleSchema, aG as PageType, d as PublicAccessOperation, aH as PublicPageComponent, aI as PublicPageResponse, bR as RelatedListElement, aJ as RelationAttributeMeta, aK as RelationAttributeMetaSchema, bS as ResponsiveSizing, bT as RowElement, bU as SectionElement, bV as SizeValue, bW as SizeValueSchema, bX as SizingProps, aP as SortConfig, aQ as SortConfigSchema, aR as SortDirection, bY as StringAttributeMeta, bZ as StringFormat, b_ as TabsElement, b$ as TextElement, c0 as TextVariant, aU as UpdateAppRequest, aV as UpdateComponentRequest, aW as UpdateDesignReferenceRequest, aX as UpdateEntityRequest, aY as UpdateListRequest, aZ as UpdateListViewRequest, a_ as UpdateMenuConfigurationRequest, a$ as UpdatePageRequest, b0 as UpdateVariableRequest, c1 as UserAttributeMeta, c2 as UserAttributeMetaSchema, b3 as Variable, b4 as VariableSchema, b5 as VariableService, b6 as allCurrencyCodes, b9 as currencyLabel, ba as currencySymbol, bb as currencySymbolSide, bc as formatAmount, bd as formatMoney, c3 as isBuiltInControl, be as isPlatformAttributeName, bf as localeNumberSeparators, c4 as lookupCompatibleControls, c5 as lookupControls, c6 as lookupPrimaryControl, bg as parseAmount, bh as parseCurrencyMeta, bi as parseFileMeta, bj as parseRelationMeta, c7 as parseUserMeta, bk as platformAttributes } from '../types-BguERkVI.js';
|
|
2
2
|
import 'zod';
|
package/dist/meta/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { AppSchema, AttributeSchema, BUILT_IN_CONTROLS, ColumnSchema, ComponentSchema, CurrencyAttributeMetaSchema, DesignReferenceSchema, EntitySchema, EntityWithSchemaSchema, FileAttributeMetaSchema, FilterElementSchema, FilterGroupSchema, LayoutElementSchema, LayoutElementType, ListSchema, ListViewSchema, MenuConfigurationSchema, MenuItemSchema, MenuItemType, MetaClient, ModuleSchema, OnDeleteActionSchema, PAGE_BACKGROUND_TOKENS, PLATFORM_ATTRIBUTE_NAMES, PageActionSchema, PageLayoutSchema, PageLayoutSidePanelSchema, PageSchema, PageStyleSchema, RelationAttributeMetaSchema, SizeValueSchema, SortConfigSchema, UserAttributeMetaSchema, VariableSchema, allCurrencyCodes, currencyLabel, currencySymbol, currencySymbolSide, formatAmount, formatMoney, isBuiltInControl, isPlatformAttributeName, localeNumberSeparators, lookupCompatibleControls, lookupControls, lookupPrimaryControl, parseAmount, parseCurrencyMeta, parseFileMeta, parseRelationMeta, parseUserMeta, platformAttributes } from '../chunk-
|
|
1
|
+
export { AppSchema, AttributeSchema, BUILT_IN_CONTROLS, ColumnSchema, ComponentSchema, CurrencyAttributeMetaSchema, DesignReferenceSchema, EntitySchema, EntityWithSchemaSchema, FileAttributeMetaSchema, FilterElementSchema, FilterGroupSchema, LayoutElementSchema, LayoutElementType, ListSchema, ListViewSchema, MenuConfigurationSchema, MenuItemSchema, MenuItemType, MetaClient, ModuleSchema, OnDeleteActionSchema, PAGE_BACKGROUND_TOKENS, PLATFORM_ATTRIBUTE_NAMES, PageActionSchema, PageLayoutSchema, PageLayoutSidePanelSchema, PageSchema, PageStyleSchema, RelationAttributeMetaSchema, SizeValueSchema, SortConfigSchema, UserAttributeMetaSchema, VariableSchema, allCurrencyCodes, currencyLabel, currencySymbol, currencySymbolSide, formatAmount, formatMoney, isBuiltInControl, isPlatformAttributeName, localeNumberSeparators, lookupCompatibleControls, lookupControls, lookupPrimaryControl, parseAmount, parseCurrencyMeta, parseFileMeta, parseRelationMeta, parseUserMeta, platformAttributes } from '../chunk-Y5RY27JB.js';
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
3
3
|
//# sourceMappingURL=index.js.map
|
|
@@ -1489,6 +1489,12 @@ type RelatedListElement = CommonProps & {
|
|
|
1489
1489
|
related_entity_slug: string;
|
|
1490
1490
|
via_attribute: string;
|
|
1491
1491
|
list_slug?: string;
|
|
1492
|
+
/**
|
|
1493
|
+
* When absent or true, the list enters row-edit mode together with the
|
|
1494
|
+
* host page's edit mode. False keeps the list independent — rows are only
|
|
1495
|
+
* editable through the list's own "Edit records" toggle.
|
|
1496
|
+
*/
|
|
1497
|
+
follows_parent_edit_mode?: boolean;
|
|
1492
1498
|
};
|
|
1493
1499
|
type ComponentElement = CommonProps & {
|
|
1494
1500
|
type: 'component';
|
|
@@ -1489,6 +1489,12 @@ type RelatedListElement = CommonProps & {
|
|
|
1489
1489
|
related_entity_slug: string;
|
|
1490
1490
|
via_attribute: string;
|
|
1491
1491
|
list_slug?: string;
|
|
1492
|
+
/**
|
|
1493
|
+
* When absent or true, the list enters row-edit mode together with the
|
|
1494
|
+
* host page's edit mode. False keeps the list independent — rows are only
|
|
1495
|
+
* editable through the list's own "Edit records" toggle.
|
|
1496
|
+
*/
|
|
1497
|
+
follows_parent_edit_mode?: boolean;
|
|
1492
1498
|
};
|
|
1493
1499
|
type ComponentElement = CommonProps & {
|
|
1494
1500
|
type: 'component';
|
package/package.json
CHANGED
|
@@ -19,12 +19,22 @@ import type {
|
|
|
19
19
|
ListGlossaryTermsQuery,
|
|
20
20
|
ListConversationsQuery,
|
|
21
21
|
ListMessagesQuery,
|
|
22
|
-
|
|
22
|
+
ListContactAddressesQuery,
|
|
23
|
+
ListContactMergeProposalsQuery,
|
|
24
|
+
ListContactsQuery,
|
|
23
25
|
ListReactionsResponse,
|
|
24
26
|
ListResponse,
|
|
25
27
|
ListRoomsQuery,
|
|
26
28
|
Message,
|
|
27
|
-
|
|
29
|
+
AttachContactAddressRequest,
|
|
30
|
+
BlockContactRequest,
|
|
31
|
+
Contact,
|
|
32
|
+
ContactAddress,
|
|
33
|
+
ContactErasureRequest,
|
|
34
|
+
ContactMergeProposal,
|
|
35
|
+
MergeContactsRequest,
|
|
36
|
+
RecordPermissionEventRequest,
|
|
37
|
+
UpdateContactRequest,
|
|
28
38
|
Reaction,
|
|
29
39
|
Room,
|
|
30
40
|
SendMessageRequest,
|
|
@@ -50,6 +60,8 @@ const CONVERSATION_BASE_PATH = '/conversations/v1'
|
|
|
50
60
|
export class ConversationClient {
|
|
51
61
|
readonly connections: ConnectionService
|
|
52
62
|
readonly conversations: ConversationService
|
|
63
|
+
/** The person-level identity layer: contacts, addresses, merges, permissions. */
|
|
64
|
+
readonly contacts: ContactService
|
|
53
65
|
readonly messages: MessageService
|
|
54
66
|
readonly agentListeners: AgentListenerService
|
|
55
67
|
/** Per-org glossary: custom vocabulary that boosts transcription accuracy. */
|
|
@@ -63,6 +75,7 @@ export class ConversationClient {
|
|
|
63
75
|
constructor(client: ProteosClient) {
|
|
64
76
|
this.connections = new ConnectionServiceImpl(client)
|
|
65
77
|
this.conversations = new ConversationServiceImpl(client)
|
|
78
|
+
this.contacts = new ContactServiceImpl(client)
|
|
66
79
|
this.messages = new MessageServiceImpl(client)
|
|
67
80
|
this.agentListeners = new AgentListenerServiceImpl(client)
|
|
68
81
|
this.glossaryTerms = new GlossaryTermServiceImpl(client)
|
|
@@ -116,8 +129,8 @@ export interface ConnectionService {
|
|
|
116
129
|
delete(id: string): Promise<void>
|
|
117
130
|
/** Begin the connector's install flow; open the returned URL in a popup. */
|
|
118
131
|
install(id: string): Promise<InstallConnectionResponse>
|
|
119
|
-
/** Search
|
|
120
|
-
|
|
132
|
+
/** Search the contact addresses this connection can reach (org-deduped) for the compose picker. */
|
|
133
|
+
listContactAddresses(connectionId: string, query?: ListContactAddressesQuery): Promise<ListResponse<ContactAddress>>
|
|
121
134
|
/** Search a connection's addressable VENUES (Slack channels) for the compose picker. */
|
|
122
135
|
listRooms(connectionId: string, query?: ListRoomsQuery): Promise<ListResponse<Room>>
|
|
123
136
|
}
|
|
@@ -149,10 +162,10 @@ class ConnectionServiceImpl implements ConnectionService {
|
|
|
149
162
|
return this.client.request('POST', `${CONVERSATION_BASE_PATH}/connections/${encodeURIComponent(id)}/install`)
|
|
150
163
|
}
|
|
151
164
|
|
|
152
|
-
|
|
165
|
+
listContactAddresses(connectionId: string, query: ListContactAddressesQuery = {}): Promise<ListResponse<ContactAddress>> {
|
|
153
166
|
return this.client.requestWithQuery(
|
|
154
167
|
'GET',
|
|
155
|
-
`${CONVERSATION_BASE_PATH}/connections/${encodeURIComponent(connectionId)}/
|
|
168
|
+
`${CONVERSATION_BASE_PATH}/connections/${encodeURIComponent(connectionId)}/contact-addresses`,
|
|
156
169
|
query,
|
|
157
170
|
)
|
|
158
171
|
}
|
|
@@ -166,6 +179,120 @@ class ConnectionServiceImpl implements ConnectionService {
|
|
|
166
179
|
}
|
|
167
180
|
}
|
|
168
181
|
|
|
182
|
+
/** The person-level identity layer: contacts, addresses, merges, permissions, erasure. */
|
|
183
|
+
export interface ContactService {
|
|
184
|
+
list(query?: ListContactsQuery): Promise<ListResponse<Contact>>
|
|
185
|
+
get(id: string): Promise<Contact>
|
|
186
|
+
update(id: string, request: UpdateContactRequest): Promise<Contact>
|
|
187
|
+
attachAddress(contactId: string, request: AttachContactAddressRequest): Promise<Contact>
|
|
188
|
+
detachAddress(contactId: string, addressId: string): Promise<Contact>
|
|
189
|
+
/** Fold source_contact_id into contactId (contactId wins). */
|
|
190
|
+
merge(contactId: string, request: MergeContactsRequest): Promise<Contact>
|
|
191
|
+
recordPermissionEvent(contactId: string, request: RecordPermissionEventRequest): Promise<Contact>
|
|
192
|
+
block(contactId: string, request?: BlockContactRequest): Promise<Contact>
|
|
193
|
+
unblock(contactId: string, request?: BlockContactRequest): Promise<Contact>
|
|
194
|
+
requestErasure(contactId: string): Promise<ContactErasureRequest>
|
|
195
|
+
listErasureRequests(contactId: string): Promise<ContactErasureRequest[]>
|
|
196
|
+
listMergeProposals(query?: ListContactMergeProposalsQuery): Promise<ListResponse<ContactMergeProposal>>
|
|
197
|
+
approveMergeProposal(proposalId: string): Promise<ContactMergeProposal>
|
|
198
|
+
rejectMergeProposal(proposalId: string): Promise<ContactMergeProposal>
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
class ContactServiceImpl implements ContactService {
|
|
202
|
+
constructor(private readonly client: ProteosClient) {}
|
|
203
|
+
|
|
204
|
+
list(query: ListContactsQuery = {}): Promise<ListResponse<Contact>> {
|
|
205
|
+
return this.client.requestWithQuery('GET', `${CONVERSATION_BASE_PATH}/contacts`, query)
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
get(id: string): Promise<Contact> {
|
|
209
|
+
return this.client.request('GET', `${CONVERSATION_BASE_PATH}/contacts/${encodeURIComponent(id)}`)
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
update(id: string, request: UpdateContactRequest): Promise<Contact> {
|
|
213
|
+
return this.client.request('PATCH', `${CONVERSATION_BASE_PATH}/contacts/${encodeURIComponent(id)}`, request)
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
attachAddress(contactId: string, request: AttachContactAddressRequest): Promise<Contact> {
|
|
217
|
+
return this.client.request(
|
|
218
|
+
'POST',
|
|
219
|
+
`${CONVERSATION_BASE_PATH}/contacts/${encodeURIComponent(contactId)}/addresses`,
|
|
220
|
+
request,
|
|
221
|
+
)
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
detachAddress(contactId: string, addressId: string): Promise<Contact> {
|
|
225
|
+
return this.client.request(
|
|
226
|
+
'DELETE',
|
|
227
|
+
`${CONVERSATION_BASE_PATH}/contacts/${encodeURIComponent(contactId)}/addresses/${encodeURIComponent(addressId)}`,
|
|
228
|
+
)
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
merge(contactId: string, request: MergeContactsRequest): Promise<Contact> {
|
|
232
|
+
return this.client.request(
|
|
233
|
+
'POST',
|
|
234
|
+
`${CONVERSATION_BASE_PATH}/contacts/${encodeURIComponent(contactId)}/merge`,
|
|
235
|
+
request,
|
|
236
|
+
)
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
recordPermissionEvent(contactId: string, request: RecordPermissionEventRequest): Promise<Contact> {
|
|
240
|
+
return this.client.request(
|
|
241
|
+
'POST',
|
|
242
|
+
`${CONVERSATION_BASE_PATH}/contacts/${encodeURIComponent(contactId)}/permission-events`,
|
|
243
|
+
request,
|
|
244
|
+
)
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
block(contactId: string, request: BlockContactRequest = {}): Promise<Contact> {
|
|
248
|
+
return this.client.request(
|
|
249
|
+
'POST',
|
|
250
|
+
`${CONVERSATION_BASE_PATH}/contacts/${encodeURIComponent(contactId)}/block`,
|
|
251
|
+
request,
|
|
252
|
+
)
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
unblock(contactId: string, request: BlockContactRequest = {}): Promise<Contact> {
|
|
256
|
+
return this.client.request(
|
|
257
|
+
'POST',
|
|
258
|
+
`${CONVERSATION_BASE_PATH}/contacts/${encodeURIComponent(contactId)}/unblock`,
|
|
259
|
+
request,
|
|
260
|
+
)
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
requestErasure(contactId: string): Promise<ContactErasureRequest> {
|
|
264
|
+
return this.client.request(
|
|
265
|
+
'POST',
|
|
266
|
+
`${CONVERSATION_BASE_PATH}/contacts/${encodeURIComponent(contactId)}/erasure-requests`,
|
|
267
|
+
)
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
listErasureRequests(contactId: string): Promise<ContactErasureRequest[]> {
|
|
271
|
+
return this.client.request(
|
|
272
|
+
'GET',
|
|
273
|
+
`${CONVERSATION_BASE_PATH}/contacts/${encodeURIComponent(contactId)}/erasure-requests`,
|
|
274
|
+
)
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
listMergeProposals(query: ListContactMergeProposalsQuery = {}): Promise<ListResponse<ContactMergeProposal>> {
|
|
278
|
+
return this.client.requestWithQuery('GET', `${CONVERSATION_BASE_PATH}/contact-merge-proposals`, query)
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
approveMergeProposal(proposalId: string): Promise<ContactMergeProposal> {
|
|
282
|
+
return this.client.request(
|
|
283
|
+
'POST',
|
|
284
|
+
`${CONVERSATION_BASE_PATH}/contact-merge-proposals/${encodeURIComponent(proposalId)}/approve`,
|
|
285
|
+
)
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
rejectMergeProposal(proposalId: string): Promise<ContactMergeProposal> {
|
|
289
|
+
return this.client.request(
|
|
290
|
+
'POST',
|
|
291
|
+
`${CONVERSATION_BASE_PATH}/contact-merge-proposals/${encodeURIComponent(proposalId)}/reject`,
|
|
292
|
+
)
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
|
|
169
296
|
/** Conversation threads across every channel (inbox order: last_message_at). */
|
|
170
297
|
export interface ConversationService {
|
|
171
298
|
list(query?: ListConversationsQuery): Promise<ListResponse<Conversation>>
|