@proteos/sdk 0.27.0 → 0.29.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 +203 -86
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +275 -31
- package/dist/index.d.ts +275 -31
- package/dist/index.js +121 -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 +188 -6
- package/src/conversation/types.ts +294 -26
- package/src/index.ts +41 -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,28 @@ 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
|
+
ConversationFilter,
|
|
34
|
+
ConversationFilterEvent,
|
|
35
|
+
CreateConversationFilterRequest,
|
|
36
|
+
ListConversationFilterEventsQuery,
|
|
37
|
+
ListConversationFiltersQuery,
|
|
38
|
+
UpdateConversationFilterRequest,
|
|
39
|
+
ContactErasureRequest,
|
|
40
|
+
ContactMergeProposal,
|
|
41
|
+
MergeContactsRequest,
|
|
42
|
+
RecordPermissionEventRequest,
|
|
43
|
+
UpdateContactRequest,
|
|
28
44
|
Reaction,
|
|
29
45
|
Room,
|
|
30
46
|
SendMessageRequest,
|
|
@@ -50,8 +66,12 @@ const CONVERSATION_BASE_PATH = '/conversations/v1'
|
|
|
50
66
|
export class ConversationClient {
|
|
51
67
|
readonly connections: ConnectionService
|
|
52
68
|
readonly conversations: ConversationService
|
|
69
|
+
/** The person-level identity layer: contacts, addresses, merges, permissions. */
|
|
70
|
+
readonly contacts: ContactService
|
|
53
71
|
readonly messages: MessageService
|
|
54
72
|
readonly agentListeners: AgentListenerService
|
|
73
|
+
/** Ingest-time filter rules (drop-with-audit) + their event trail. */
|
|
74
|
+
readonly conversationFilters: ConversationFilterService
|
|
55
75
|
/** Per-org glossary: custom vocabulary that boosts transcription accuracy. */
|
|
56
76
|
readonly glossaryTerms: GlossaryTermService
|
|
57
77
|
readonly transcriptions: TranscriptionService
|
|
@@ -63,8 +83,10 @@ export class ConversationClient {
|
|
|
63
83
|
constructor(client: ProteosClient) {
|
|
64
84
|
this.connections = new ConnectionServiceImpl(client)
|
|
65
85
|
this.conversations = new ConversationServiceImpl(client)
|
|
86
|
+
this.contacts = new ContactServiceImpl(client)
|
|
66
87
|
this.messages = new MessageServiceImpl(client)
|
|
67
88
|
this.agentListeners = new AgentListenerServiceImpl(client)
|
|
89
|
+
this.conversationFilters = new ConversationFilterServiceImpl(client)
|
|
68
90
|
this.glossaryTerms = new GlossaryTermServiceImpl(client)
|
|
69
91
|
this.transcriptions = new TranscriptionServiceImpl(client)
|
|
70
92
|
this.meetings = new MeetingServiceImpl(client)
|
|
@@ -116,8 +138,8 @@ export interface ConnectionService {
|
|
|
116
138
|
delete(id: string): Promise<void>
|
|
117
139
|
/** Begin the connector's install flow; open the returned URL in a popup. */
|
|
118
140
|
install(id: string): Promise<InstallConnectionResponse>
|
|
119
|
-
/** Search
|
|
120
|
-
|
|
141
|
+
/** Search the contact addresses this connection can reach (org-deduped) for the compose picker. */
|
|
142
|
+
listContactAddresses(connectionId: string, query?: ListContactAddressesQuery): Promise<ListResponse<ContactAddress>>
|
|
121
143
|
/** Search a connection's addressable VENUES (Slack channels) for the compose picker. */
|
|
122
144
|
listRooms(connectionId: string, query?: ListRoomsQuery): Promise<ListResponse<Room>>
|
|
123
145
|
}
|
|
@@ -149,10 +171,10 @@ class ConnectionServiceImpl implements ConnectionService {
|
|
|
149
171
|
return this.client.request('POST', `${CONVERSATION_BASE_PATH}/connections/${encodeURIComponent(id)}/install`)
|
|
150
172
|
}
|
|
151
173
|
|
|
152
|
-
|
|
174
|
+
listContactAddresses(connectionId: string, query: ListContactAddressesQuery = {}): Promise<ListResponse<ContactAddress>> {
|
|
153
175
|
return this.client.requestWithQuery(
|
|
154
176
|
'GET',
|
|
155
|
-
`${CONVERSATION_BASE_PATH}/connections/${encodeURIComponent(connectionId)}/
|
|
177
|
+
`${CONVERSATION_BASE_PATH}/connections/${encodeURIComponent(connectionId)}/contact-addresses`,
|
|
156
178
|
query,
|
|
157
179
|
)
|
|
158
180
|
}
|
|
@@ -166,6 +188,120 @@ class ConnectionServiceImpl implements ConnectionService {
|
|
|
166
188
|
}
|
|
167
189
|
}
|
|
168
190
|
|
|
191
|
+
/** The person-level identity layer: contacts, addresses, merges, permissions, erasure. */
|
|
192
|
+
export interface ContactService {
|
|
193
|
+
list(query?: ListContactsQuery): Promise<ListResponse<Contact>>
|
|
194
|
+
get(id: string): Promise<Contact>
|
|
195
|
+
update(id: string, request: UpdateContactRequest): Promise<Contact>
|
|
196
|
+
attachAddress(contactId: string, request: AttachContactAddressRequest): Promise<Contact>
|
|
197
|
+
detachAddress(contactId: string, addressId: string): Promise<Contact>
|
|
198
|
+
/** Fold source_contact_id into contactId (contactId wins). */
|
|
199
|
+
merge(contactId: string, request: MergeContactsRequest): Promise<Contact>
|
|
200
|
+
recordPermissionEvent(contactId: string, request: RecordPermissionEventRequest): Promise<Contact>
|
|
201
|
+
block(contactId: string, request?: BlockContactRequest): Promise<Contact>
|
|
202
|
+
unblock(contactId: string, request?: BlockContactRequest): Promise<Contact>
|
|
203
|
+
requestErasure(contactId: string): Promise<ContactErasureRequest>
|
|
204
|
+
listErasureRequests(contactId: string): Promise<ContactErasureRequest[]>
|
|
205
|
+
listMergeProposals(query?: ListContactMergeProposalsQuery): Promise<ListResponse<ContactMergeProposal>>
|
|
206
|
+
approveMergeProposal(proposalId: string): Promise<ContactMergeProposal>
|
|
207
|
+
rejectMergeProposal(proposalId: string): Promise<ContactMergeProposal>
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
class ContactServiceImpl implements ContactService {
|
|
211
|
+
constructor(private readonly client: ProteosClient) {}
|
|
212
|
+
|
|
213
|
+
list(query: ListContactsQuery = {}): Promise<ListResponse<Contact>> {
|
|
214
|
+
return this.client.requestWithQuery('GET', `${CONVERSATION_BASE_PATH}/contacts`, query)
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
get(id: string): Promise<Contact> {
|
|
218
|
+
return this.client.request('GET', `${CONVERSATION_BASE_PATH}/contacts/${encodeURIComponent(id)}`)
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
update(id: string, request: UpdateContactRequest): Promise<Contact> {
|
|
222
|
+
return this.client.request('PATCH', `${CONVERSATION_BASE_PATH}/contacts/${encodeURIComponent(id)}`, request)
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
attachAddress(contactId: string, request: AttachContactAddressRequest): Promise<Contact> {
|
|
226
|
+
return this.client.request(
|
|
227
|
+
'POST',
|
|
228
|
+
`${CONVERSATION_BASE_PATH}/contacts/${encodeURIComponent(contactId)}/addresses`,
|
|
229
|
+
request,
|
|
230
|
+
)
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
detachAddress(contactId: string, addressId: string): Promise<Contact> {
|
|
234
|
+
return this.client.request(
|
|
235
|
+
'DELETE',
|
|
236
|
+
`${CONVERSATION_BASE_PATH}/contacts/${encodeURIComponent(contactId)}/addresses/${encodeURIComponent(addressId)}`,
|
|
237
|
+
)
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
merge(contactId: string, request: MergeContactsRequest): Promise<Contact> {
|
|
241
|
+
return this.client.request(
|
|
242
|
+
'POST',
|
|
243
|
+
`${CONVERSATION_BASE_PATH}/contacts/${encodeURIComponent(contactId)}/merge`,
|
|
244
|
+
request,
|
|
245
|
+
)
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
recordPermissionEvent(contactId: string, request: RecordPermissionEventRequest): Promise<Contact> {
|
|
249
|
+
return this.client.request(
|
|
250
|
+
'POST',
|
|
251
|
+
`${CONVERSATION_BASE_PATH}/contacts/${encodeURIComponent(contactId)}/permission-events`,
|
|
252
|
+
request,
|
|
253
|
+
)
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
block(contactId: string, request: BlockContactRequest = {}): Promise<Contact> {
|
|
257
|
+
return this.client.request(
|
|
258
|
+
'POST',
|
|
259
|
+
`${CONVERSATION_BASE_PATH}/contacts/${encodeURIComponent(contactId)}/block`,
|
|
260
|
+
request,
|
|
261
|
+
)
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
unblock(contactId: string, request: BlockContactRequest = {}): Promise<Contact> {
|
|
265
|
+
return this.client.request(
|
|
266
|
+
'POST',
|
|
267
|
+
`${CONVERSATION_BASE_PATH}/contacts/${encodeURIComponent(contactId)}/unblock`,
|
|
268
|
+
request,
|
|
269
|
+
)
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
requestErasure(contactId: string): Promise<ContactErasureRequest> {
|
|
273
|
+
return this.client.request(
|
|
274
|
+
'POST',
|
|
275
|
+
`${CONVERSATION_BASE_PATH}/contacts/${encodeURIComponent(contactId)}/erasure-requests`,
|
|
276
|
+
)
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
listErasureRequests(contactId: string): Promise<ContactErasureRequest[]> {
|
|
280
|
+
return this.client.request(
|
|
281
|
+
'GET',
|
|
282
|
+
`${CONVERSATION_BASE_PATH}/contacts/${encodeURIComponent(contactId)}/erasure-requests`,
|
|
283
|
+
)
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
listMergeProposals(query: ListContactMergeProposalsQuery = {}): Promise<ListResponse<ContactMergeProposal>> {
|
|
287
|
+
return this.client.requestWithQuery('GET', `${CONVERSATION_BASE_PATH}/contact-merge-proposals`, query)
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
approveMergeProposal(proposalId: string): Promise<ContactMergeProposal> {
|
|
291
|
+
return this.client.request(
|
|
292
|
+
'POST',
|
|
293
|
+
`${CONVERSATION_BASE_PATH}/contact-merge-proposals/${encodeURIComponent(proposalId)}/approve`,
|
|
294
|
+
)
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
rejectMergeProposal(proposalId: string): Promise<ContactMergeProposal> {
|
|
298
|
+
return this.client.request(
|
|
299
|
+
'POST',
|
|
300
|
+
`${CONVERSATION_BASE_PATH}/contact-merge-proposals/${encodeURIComponent(proposalId)}/reject`,
|
|
301
|
+
)
|
|
302
|
+
}
|
|
303
|
+
}
|
|
304
|
+
|
|
169
305
|
/** Conversation threads across every channel (inbox order: last_message_at). */
|
|
170
306
|
export interface ConversationService {
|
|
171
307
|
list(query?: ListConversationsQuery): Promise<ListResponse<Conversation>>
|
|
@@ -302,6 +438,52 @@ class AgentListenerServiceImpl implements AgentListenerService {
|
|
|
302
438
|
}
|
|
303
439
|
}
|
|
304
440
|
|
|
441
|
+
/**
|
|
442
|
+
* Ingest-time conversation filters: block/allow rules that drop matching
|
|
443
|
+
* inbound messages before persistence, scoped globally or per connection.
|
|
444
|
+
* listEvents pages a rule's drop-audit trail (who got dropped, when, why).
|
|
445
|
+
*/
|
|
446
|
+
export interface ConversationFilterService {
|
|
447
|
+
list(query?: ListConversationFiltersQuery): Promise<ListResponse<ConversationFilter>>
|
|
448
|
+
get(id: string): Promise<ConversationFilter>
|
|
449
|
+
create(request: CreateConversationFilterRequest): Promise<ConversationFilter>
|
|
450
|
+
update(id: string, request: UpdateConversationFilterRequest): Promise<ConversationFilter>
|
|
451
|
+
delete(id: string): Promise<void>
|
|
452
|
+
listEvents(id: string, query?: ListConversationFilterEventsQuery): Promise<ListResponse<ConversationFilterEvent>>
|
|
453
|
+
}
|
|
454
|
+
|
|
455
|
+
class ConversationFilterServiceImpl implements ConversationFilterService {
|
|
456
|
+
constructor(private readonly client: ProteosClient) {}
|
|
457
|
+
|
|
458
|
+
list(query: ListConversationFiltersQuery = {}): Promise<ListResponse<ConversationFilter>> {
|
|
459
|
+
return this.client.requestWithQuery('GET', `${CONVERSATION_BASE_PATH}/conversation-filters`, query)
|
|
460
|
+
}
|
|
461
|
+
|
|
462
|
+
get(id: string): Promise<ConversationFilter> {
|
|
463
|
+
return this.client.request('GET', `${CONVERSATION_BASE_PATH}/conversation-filters/${encodeURIComponent(id)}`)
|
|
464
|
+
}
|
|
465
|
+
|
|
466
|
+
create(request: CreateConversationFilterRequest): Promise<ConversationFilter> {
|
|
467
|
+
return this.client.request('POST', `${CONVERSATION_BASE_PATH}/conversation-filters`, request)
|
|
468
|
+
}
|
|
469
|
+
|
|
470
|
+
update(id: string, request: UpdateConversationFilterRequest): Promise<ConversationFilter> {
|
|
471
|
+
return this.client.request('PATCH', `${CONVERSATION_BASE_PATH}/conversation-filters/${encodeURIComponent(id)}`, request)
|
|
472
|
+
}
|
|
473
|
+
|
|
474
|
+
async delete(id: string): Promise<void> {
|
|
475
|
+
await this.client.request('DELETE', `${CONVERSATION_BASE_PATH}/conversation-filters/${encodeURIComponent(id)}`)
|
|
476
|
+
}
|
|
477
|
+
|
|
478
|
+
listEvents(id: string, query: ListConversationFilterEventsQuery = {}): Promise<ListResponse<ConversationFilterEvent>> {
|
|
479
|
+
return this.client.requestWithQuery(
|
|
480
|
+
'GET',
|
|
481
|
+
`${CONVERSATION_BASE_PATH}/conversation-filters/${encodeURIComponent(id)}/events`,
|
|
482
|
+
query,
|
|
483
|
+
)
|
|
484
|
+
}
|
|
485
|
+
}
|
|
486
|
+
|
|
305
487
|
/**
|
|
306
488
|
* Per-org glossary: custom-vocabulary terms that boost transcription accuracy.
|
|
307
489
|
* A term feeds the transcription provider's keyterm prompting; `priority` ranks
|