@amigo-ai/platform-sdk 0.53.0 → 0.54.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/README.md +2 -4
- package/api.md +3 -50
- package/dist/index.cjs +11 -356
- package/dist/index.cjs.map +4 -4
- package/dist/index.js +0 -14
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +11 -356
- package/dist/index.mjs.map +4 -4
- package/dist/resources/analytics.js +0 -6
- package/dist/resources/analytics.js.map +1 -1
- package/dist/resources/functions.js +10 -118
- package/dist/resources/functions.js.map +1 -1
- package/dist/types/generated/api.d.ts +121 -3538
- package/dist/types/generated/api.d.ts.map +1 -1
- package/dist/types/index.d.cts +0 -10
- package/dist/types/index.d.cts.map +1 -1
- package/dist/types/index.d.ts +0 -10
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/resources/analytics.d.ts +0 -25
- package/dist/types/resources/analytics.d.ts.map +1 -1
- package/dist/types/resources/functions.d.ts +21 -186
- package/dist/types/resources/functions.d.ts.map +1 -1
- package/dist/types/resources/intake.d.ts.map +1 -1
- package/dist/types/resources/metrics.d.ts.map +1 -1
- package/dist/types/resources/operators.d.ts.map +1 -1
- package/dist/types/resources/services.d.ts.map +1 -1
- package/dist/types/resources/settings.d.ts.map +1 -1
- package/dist/types/resources/surfaces.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/resources/monitor-concepts.js +0 -47
- package/dist/resources/monitor-concepts.js.map +0 -1
- package/dist/resources/phone-numbers.js +0 -56
- package/dist/resources/phone-numbers.js.map +0 -1
- package/dist/resources/safety.js +0 -31
- package/dist/resources/safety.js.map +0 -1
- package/dist/resources/unification-rules.js +0 -46
- package/dist/resources/unification-rules.js.map +0 -1
- package/dist/types/resources/monitor-concepts.d.ts +0 -115
- package/dist/types/resources/monitor-concepts.d.ts.map +0 -1
- package/dist/types/resources/phone-numbers.d.ts +0 -145
- package/dist/types/resources/phone-numbers.d.ts.map +0 -1
- package/dist/types/resources/safety.d.ts +0 -83
- package/dist/types/resources/safety.d.ts.map +0 -1
- package/dist/types/resources/unification-rules.d.ts +0 -129
- package/dist/types/resources/unification-rules.d.ts.map +0 -1
|
@@ -1,129 +0,0 @@
|
|
|
1
|
-
import type { components, paths } from '../generated/api.js';
|
|
2
|
-
import { WorkspaceScopedResource } from './base.js';
|
|
3
|
-
export type ListUnificationRulesParams = NonNullable<paths['/v1/{workspace_id}/unification-rules']['get']['parameters']['query']>;
|
|
4
|
-
/**
|
|
5
|
-
* Manage entity unification rules — declarative joins that fold duplicate
|
|
6
|
-
* world-model entities into a single canonical record. Rules are evaluated
|
|
7
|
-
* on ingest; the surviving entity inherits properties from its merge sources.
|
|
8
|
-
*
|
|
9
|
-
* @beta New in this release; surface may evolve.
|
|
10
|
-
*/
|
|
11
|
-
export declare class UnificationRulesResource extends WorkspaceScopedResource {
|
|
12
|
-
/** Create a new unification rule */
|
|
13
|
-
create(body: components['schemas']['CreateUnificationRuleRequest']): Promise<{
|
|
14
|
-
accuracy: number | null;
|
|
15
|
-
agent_task_id: string | null;
|
|
16
|
-
created_at: string;
|
|
17
|
-
created_by: string | null;
|
|
18
|
-
data_source_id: string | null;
|
|
19
|
-
description: string | null;
|
|
20
|
-
events_processed: number;
|
|
21
|
-
id: string;
|
|
22
|
-
is_active: boolean;
|
|
23
|
-
last_applied_at: string | null;
|
|
24
|
-
name: string;
|
|
25
|
-
rule_config: {
|
|
26
|
-
[x: string]: unknown;
|
|
27
|
-
};
|
|
28
|
-
rule_type: string;
|
|
29
|
-
source_event_type: string | null;
|
|
30
|
-
target_entity_type: string | null;
|
|
31
|
-
updated_at: string;
|
|
32
|
-
workspace_id: string;
|
|
33
|
-
} & import("../index.js").ResponseMetadata>;
|
|
34
|
-
/** List unification rules in the workspace */
|
|
35
|
-
list(params?: ListUnificationRulesParams): Promise<{
|
|
36
|
-
continuation_token?: number | null | undefined;
|
|
37
|
-
has_more: boolean;
|
|
38
|
-
items: {
|
|
39
|
-
accuracy: number | null;
|
|
40
|
-
agent_task_id: string | null;
|
|
41
|
-
created_at: string;
|
|
42
|
-
created_by: string | null;
|
|
43
|
-
data_source_id: string | null;
|
|
44
|
-
description: string | null;
|
|
45
|
-
events_processed: number;
|
|
46
|
-
id: string;
|
|
47
|
-
is_active: boolean;
|
|
48
|
-
last_applied_at: string | null;
|
|
49
|
-
name: string;
|
|
50
|
-
rule_config: {
|
|
51
|
-
[x: string]: unknown;
|
|
52
|
-
};
|
|
53
|
-
rule_type: string;
|
|
54
|
-
source_event_type: string | null;
|
|
55
|
-
target_entity_type: string | null;
|
|
56
|
-
updated_at: string;
|
|
57
|
-
workspace_id: string;
|
|
58
|
-
}[];
|
|
59
|
-
total?: number | null | undefined;
|
|
60
|
-
} & import("../index.js").ResponseMetadata>;
|
|
61
|
-
listAutoPaging(params?: ListUnificationRulesParams): AsyncGenerator<{
|
|
62
|
-
accuracy: number | null;
|
|
63
|
-
agent_task_id: string | null;
|
|
64
|
-
created_at: string;
|
|
65
|
-
created_by: string | null;
|
|
66
|
-
data_source_id: string | null;
|
|
67
|
-
description: string | null;
|
|
68
|
-
events_processed: number;
|
|
69
|
-
id: string;
|
|
70
|
-
is_active: boolean;
|
|
71
|
-
last_applied_at: string | null;
|
|
72
|
-
name: string;
|
|
73
|
-
rule_config: {
|
|
74
|
-
[x: string]: unknown;
|
|
75
|
-
};
|
|
76
|
-
rule_type: string;
|
|
77
|
-
source_event_type: string | null;
|
|
78
|
-
target_entity_type: string | null;
|
|
79
|
-
updated_at: string;
|
|
80
|
-
workspace_id: string;
|
|
81
|
-
}, any, any>;
|
|
82
|
-
/** Get a single unification rule */
|
|
83
|
-
get(ruleId: string): Promise<{
|
|
84
|
-
accuracy: number | null;
|
|
85
|
-
agent_task_id: string | null;
|
|
86
|
-
created_at: string;
|
|
87
|
-
created_by: string | null;
|
|
88
|
-
data_source_id: string | null;
|
|
89
|
-
description: string | null;
|
|
90
|
-
events_processed: number;
|
|
91
|
-
id: string;
|
|
92
|
-
is_active: boolean;
|
|
93
|
-
last_applied_at: string | null;
|
|
94
|
-
name: string;
|
|
95
|
-
rule_config: {
|
|
96
|
-
[x: string]: unknown;
|
|
97
|
-
};
|
|
98
|
-
rule_type: string;
|
|
99
|
-
source_event_type: string | null;
|
|
100
|
-
target_entity_type: string | null;
|
|
101
|
-
updated_at: string;
|
|
102
|
-
workspace_id: string;
|
|
103
|
-
} & import("../index.js").ResponseMetadata>;
|
|
104
|
-
/** Update a unification rule */
|
|
105
|
-
update(ruleId: string, body: components['schemas']['UpdateUnificationRuleRequest']): Promise<{
|
|
106
|
-
accuracy: number | null;
|
|
107
|
-
agent_task_id: string | null;
|
|
108
|
-
created_at: string;
|
|
109
|
-
created_by: string | null;
|
|
110
|
-
data_source_id: string | null;
|
|
111
|
-
description: string | null;
|
|
112
|
-
events_processed: number;
|
|
113
|
-
id: string;
|
|
114
|
-
is_active: boolean;
|
|
115
|
-
last_applied_at: string | null;
|
|
116
|
-
name: string;
|
|
117
|
-
rule_config: {
|
|
118
|
-
[x: string]: unknown;
|
|
119
|
-
};
|
|
120
|
-
rule_type: string;
|
|
121
|
-
source_event_type: string | null;
|
|
122
|
-
target_entity_type: string | null;
|
|
123
|
-
updated_at: string;
|
|
124
|
-
workspace_id: string;
|
|
125
|
-
} & import("../index.js").ResponseMetadata>;
|
|
126
|
-
/** Delete a unification rule */
|
|
127
|
-
delete(ruleId: string): Promise<undefined>;
|
|
128
|
-
}
|
|
129
|
-
//# sourceMappingURL=unification-rules.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"unification-rules.d.ts","sourceRoot":"","sources":["../../../src/resources/unification-rules.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAA;AAC5D,OAAO,EAAE,uBAAuB,EAAe,MAAM,WAAW,CAAA;AAEhE,MAAM,MAAM,0BAA0B,GAAG,WAAW,CAClD,KAAK,CAAC,sCAAsC,CAAC,CAAC,KAAK,CAAC,CAAC,YAAY,CAAC,CAAC,OAAO,CAAC,CAC5E,CAAA;AAED;;;;;;GAMG;AACH,qBAAa,wBAAyB,SAAQ,uBAAuB;IACnE,oCAAoC;IAC9B,MAAM,CAAC,IAAI,EAAE,UAAU,CAAC,SAAS,CAAC,CAAC,8BAA8B,CAAC;;;;;;;;;;;;;;;;;;;;;IASxE,8CAA8C;IACxC,IAAI,CAAC,MAAM,CAAC,EAAE,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;IAQ9C,cAAc,CAAC,MAAM,CAAC,EAAE,0BAA0B;;;;;;;;;;;;;;;;;;;;;IAIlD,oCAAoC;IAC9B,GAAG,CAAC,MAAM,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;IAQxB,gCAAgC;IAC1B,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,UAAU,CAAC,SAAS,CAAC,CAAC,8BAA8B,CAAC;;;;;;;;;;;;;;;;;;;;;IASxF,gCAAgC;IAC1B,MAAM,CAAC,MAAM,EAAE,MAAM;CAO5B"}
|