@amigo-ai/platform-sdk 0.53.0 → 0.55.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 -62
- package/dist/index.cjs +11 -419
- package/dist/index.cjs.map +4 -4
- package/dist/index.js +0 -18
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +11 -419
- 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 +155 -4392
- package/dist/types/generated/api.d.ts.map +1 -1
- package/dist/types/index.d.cts +0 -13
- package/dist/types/index.d.cts.map +1 -1
- package/dist/types/index.d.ts +0 -13
- 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/data-sources.d.ts +5 -5
- 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/pipeline.d.ts +3 -3
- 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/dist/types/resources/world.d.ts +0 -10
- package/dist/types/resources/world.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/resources/crm.js +0 -52
- package/dist/resources/crm.js.map +0 -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/crm.d.ts +0 -207
- package/dist/types/resources/crm.d.ts.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,115 +0,0 @@
|
|
|
1
|
-
import type { components, paths } from '../generated/api.js';
|
|
2
|
-
import { WorkspaceScopedResource } from './base.js';
|
|
3
|
-
export type ListMonitorConceptsParams = NonNullable<paths['/v1/{workspace_id}/monitor-concepts']['get']['parameters']['query']>;
|
|
4
|
-
/**
|
|
5
|
-
* Manage workspace monitor concepts — semantic patterns the platform watches
|
|
6
|
-
* across calls to surface emerging behavior. Each concept holds a name,
|
|
7
|
-
* description, and detection rules; the platform indexes them and lights
|
|
8
|
-
* them up against live and historical traffic.
|
|
9
|
-
*
|
|
10
|
-
* @beta New in this release; surface may evolve.
|
|
11
|
-
*/
|
|
12
|
-
export declare class MonitorConceptsResource extends WorkspaceScopedResource {
|
|
13
|
-
/** Create a new monitor concept */
|
|
14
|
-
create(body: components['schemas']['CreateMonitorConceptRequest']): Promise<{
|
|
15
|
-
agent_config: {
|
|
16
|
-
[x: string]: unknown;
|
|
17
|
-
};
|
|
18
|
-
created_at: string;
|
|
19
|
-
description: string;
|
|
20
|
-
escalation: {
|
|
21
|
-
[x: string]: unknown;
|
|
22
|
-
};
|
|
23
|
-
has_embedding: boolean;
|
|
24
|
-
id: string;
|
|
25
|
-
name: string;
|
|
26
|
-
standalone_threshold: number;
|
|
27
|
-
tags: string[];
|
|
28
|
-
threshold: number;
|
|
29
|
-
updated_at: string;
|
|
30
|
-
workspace_id: string;
|
|
31
|
-
} & import("../index.js").ResponseMetadata>;
|
|
32
|
-
/** List monitor concepts in the workspace */
|
|
33
|
-
list(params?: ListMonitorConceptsParams): Promise<{
|
|
34
|
-
continuation_token?: number | null | undefined;
|
|
35
|
-
has_more: boolean;
|
|
36
|
-
items: {
|
|
37
|
-
agent_config: {
|
|
38
|
-
[x: string]: unknown;
|
|
39
|
-
};
|
|
40
|
-
created_at: string;
|
|
41
|
-
description: string;
|
|
42
|
-
escalation: {
|
|
43
|
-
[x: string]: unknown;
|
|
44
|
-
};
|
|
45
|
-
has_embedding: boolean;
|
|
46
|
-
id: string;
|
|
47
|
-
name: string;
|
|
48
|
-
standalone_threshold: number;
|
|
49
|
-
tags: string[];
|
|
50
|
-
threshold: number;
|
|
51
|
-
updated_at: string;
|
|
52
|
-
workspace_id: string;
|
|
53
|
-
}[];
|
|
54
|
-
total?: number | null | undefined;
|
|
55
|
-
} & import("../index.js").ResponseMetadata>;
|
|
56
|
-
listAutoPaging(params?: ListMonitorConceptsParams): AsyncGenerator<{
|
|
57
|
-
agent_config: {
|
|
58
|
-
[x: string]: unknown;
|
|
59
|
-
};
|
|
60
|
-
created_at: string;
|
|
61
|
-
description: string;
|
|
62
|
-
escalation: {
|
|
63
|
-
[x: string]: unknown;
|
|
64
|
-
};
|
|
65
|
-
has_embedding: boolean;
|
|
66
|
-
id: string;
|
|
67
|
-
name: string;
|
|
68
|
-
standalone_threshold: number;
|
|
69
|
-
tags: string[];
|
|
70
|
-
threshold: number;
|
|
71
|
-
updated_at: string;
|
|
72
|
-
workspace_id: string;
|
|
73
|
-
}, any, any>;
|
|
74
|
-
/** Get a single monitor concept */
|
|
75
|
-
get(conceptId: string): Promise<{
|
|
76
|
-
agent_config: {
|
|
77
|
-
[x: string]: unknown;
|
|
78
|
-
};
|
|
79
|
-
created_at: string;
|
|
80
|
-
description: string;
|
|
81
|
-
escalation: {
|
|
82
|
-
[x: string]: unknown;
|
|
83
|
-
};
|
|
84
|
-
has_embedding: boolean;
|
|
85
|
-
id: string;
|
|
86
|
-
name: string;
|
|
87
|
-
standalone_threshold: number;
|
|
88
|
-
tags: string[];
|
|
89
|
-
threshold: number;
|
|
90
|
-
updated_at: string;
|
|
91
|
-
workspace_id: string;
|
|
92
|
-
} & import("../index.js").ResponseMetadata>;
|
|
93
|
-
/** Update a monitor concept */
|
|
94
|
-
update(conceptId: string, body: components['schemas']['UpdateMonitorConceptRequest']): Promise<{
|
|
95
|
-
agent_config: {
|
|
96
|
-
[x: string]: unknown;
|
|
97
|
-
};
|
|
98
|
-
created_at: string;
|
|
99
|
-
description: string;
|
|
100
|
-
escalation: {
|
|
101
|
-
[x: string]: unknown;
|
|
102
|
-
};
|
|
103
|
-
has_embedding: boolean;
|
|
104
|
-
id: string;
|
|
105
|
-
name: string;
|
|
106
|
-
standalone_threshold: number;
|
|
107
|
-
tags: string[];
|
|
108
|
-
threshold: number;
|
|
109
|
-
updated_at: string;
|
|
110
|
-
workspace_id: string;
|
|
111
|
-
} & import("../index.js").ResponseMetadata>;
|
|
112
|
-
/** Delete a monitor concept */
|
|
113
|
-
delete(conceptId: string): Promise<undefined>;
|
|
114
|
-
}
|
|
115
|
-
//# sourceMappingURL=monitor-concepts.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"monitor-concepts.d.ts","sourceRoot":"","sources":["../../../src/resources/monitor-concepts.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,yBAAyB,GAAG,WAAW,CACjD,KAAK,CAAC,qCAAqC,CAAC,CAAC,KAAK,CAAC,CAAC,YAAY,CAAC,CAAC,OAAO,CAAC,CAC3E,CAAA;AAED;;;;;;;GAOG;AACH,qBAAa,uBAAwB,SAAQ,uBAAuB;IAClE,mCAAmC;IAC7B,MAAM,CAAC,IAAI,EAAE,UAAU,CAAC,SAAS,CAAC,CAAC,6BAA6B,CAAC;;;;;;;;;;;;;;;;;;IASvE,6CAA6C;IACvC,IAAI,CAAC,MAAM,CAAC,EAAE,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;IAQ7C,cAAc,CAAC,MAAM,CAAC,EAAE,yBAAyB;;;;;;;;;;;;;;;;;;IAIjD,mCAAmC;IAC7B,GAAG,CAAC,SAAS,EAAE,MAAM;;;;;;;;;;;;;;;;;;IAQ3B,+BAA+B;IACzB,MAAM,CAAC,SAAS,EAAE,MAAM,EAAE,IAAI,EAAE,UAAU,CAAC,SAAS,CAAC,CAAC,6BAA6B,CAAC;;;;;;;;;;;;;;;;;;IAS1F,+BAA+B;IACzB,MAAM,CAAC,SAAS,EAAE,MAAM;CAO/B"}
|
|
@@ -1,145 +0,0 @@
|
|
|
1
|
-
import type { components } from '../generated/api.js';
|
|
2
|
-
import type { PhoneNumberId } from '../core/branded-types.js';
|
|
3
|
-
import { WorkspaceScopedResource } from './base.js';
|
|
4
|
-
import type { ListParams } from '../core/utils.js';
|
|
5
|
-
/**
|
|
6
|
-
* Manage phone numbers — provision, configure, and release Twilio numbers
|
|
7
|
-
* that are attached to agents for inbound/outbound calling.
|
|
8
|
-
*/
|
|
9
|
-
export declare class PhoneNumbersResource extends WorkspaceScopedResource {
|
|
10
|
-
/** Create a new phone number */
|
|
11
|
-
provision(body: components['schemas']['CreatePhoneNumberRequest']): Promise<{
|
|
12
|
-
capabilities: string[];
|
|
13
|
-
channel_phone_id?: string | null | undefined;
|
|
14
|
-
created_at: string;
|
|
15
|
-
display_name: string;
|
|
16
|
-
forwarding: {
|
|
17
|
-
enabled: boolean;
|
|
18
|
-
forward_to: string;
|
|
19
|
-
should_disconnect: boolean;
|
|
20
|
-
} | null;
|
|
21
|
-
id: string;
|
|
22
|
-
inbound_service_id: string | null;
|
|
23
|
-
notes: string;
|
|
24
|
-
phone_number: string;
|
|
25
|
-
provider: string;
|
|
26
|
-
provider_phone_sid: string | null;
|
|
27
|
-
status: string;
|
|
28
|
-
updated_at: string;
|
|
29
|
-
workspace_id: string;
|
|
30
|
-
} & import("../index.js").ResponseMetadata>;
|
|
31
|
-
/** List phone numbers in the workspace */
|
|
32
|
-
list(params?: ListParams): Promise<{
|
|
33
|
-
continuation_token?: number | null | undefined;
|
|
34
|
-
has_more: boolean;
|
|
35
|
-
items: {
|
|
36
|
-
capabilities: string[];
|
|
37
|
-
channel_phone_id?: string | null | undefined;
|
|
38
|
-
created_at: string;
|
|
39
|
-
display_name: string;
|
|
40
|
-
forwarding: {
|
|
41
|
-
enabled: boolean;
|
|
42
|
-
forward_to: string;
|
|
43
|
-
should_disconnect: boolean;
|
|
44
|
-
} | null;
|
|
45
|
-
id: string;
|
|
46
|
-
inbound_service_id: string | null;
|
|
47
|
-
notes: string;
|
|
48
|
-
phone_number: string;
|
|
49
|
-
provider: string;
|
|
50
|
-
provider_phone_sid: string | null;
|
|
51
|
-
status: string;
|
|
52
|
-
updated_at: string;
|
|
53
|
-
workspace_id: string;
|
|
54
|
-
}[];
|
|
55
|
-
total?: number | null | undefined;
|
|
56
|
-
} & import("../index.js").ResponseMetadata>;
|
|
57
|
-
listAutoPaging(params?: ListParams): AsyncGenerator<{
|
|
58
|
-
capabilities: string[];
|
|
59
|
-
channel_phone_id?: string | null | undefined;
|
|
60
|
-
created_at: string;
|
|
61
|
-
display_name: string;
|
|
62
|
-
forwarding: {
|
|
63
|
-
enabled: boolean;
|
|
64
|
-
forward_to: string;
|
|
65
|
-
should_disconnect: boolean;
|
|
66
|
-
} | null;
|
|
67
|
-
id: string;
|
|
68
|
-
inbound_service_id: string | null;
|
|
69
|
-
notes: string;
|
|
70
|
-
phone_number: string;
|
|
71
|
-
provider: string;
|
|
72
|
-
provider_phone_sid: string | null;
|
|
73
|
-
status: string;
|
|
74
|
-
updated_at: string;
|
|
75
|
-
workspace_id: string;
|
|
76
|
-
}, any, any>;
|
|
77
|
-
/** Get a phone number */
|
|
78
|
-
get(phoneNumberId: PhoneNumberId | string): Promise<{
|
|
79
|
-
capabilities: string[];
|
|
80
|
-
channel_phone_id?: string | null | undefined;
|
|
81
|
-
created_at: string;
|
|
82
|
-
display_name: string;
|
|
83
|
-
forwarding: {
|
|
84
|
-
enabled: boolean;
|
|
85
|
-
forward_to: string;
|
|
86
|
-
should_disconnect: boolean;
|
|
87
|
-
} | null;
|
|
88
|
-
id: string;
|
|
89
|
-
inbound_service_id: string | null;
|
|
90
|
-
notes: string;
|
|
91
|
-
phone_number: string;
|
|
92
|
-
provider: string;
|
|
93
|
-
provider_phone_sid: string | null;
|
|
94
|
-
status: string;
|
|
95
|
-
updated_at: string;
|
|
96
|
-
workspace_id: string;
|
|
97
|
-
} & import("../index.js").ResponseMetadata>;
|
|
98
|
-
/** Update a phone number (assign to agent, rename) */
|
|
99
|
-
update(phoneNumberId: PhoneNumberId | string, body: components['schemas']['UpdatePhoneNumberRequest']): Promise<{
|
|
100
|
-
capabilities: string[];
|
|
101
|
-
channel_phone_id?: string | null | undefined;
|
|
102
|
-
created_at: string;
|
|
103
|
-
display_name: string;
|
|
104
|
-
forwarding: {
|
|
105
|
-
enabled: boolean;
|
|
106
|
-
forward_to: string;
|
|
107
|
-
should_disconnect: boolean;
|
|
108
|
-
} | null;
|
|
109
|
-
id: string;
|
|
110
|
-
inbound_service_id: string | null;
|
|
111
|
-
notes: string;
|
|
112
|
-
phone_number: string;
|
|
113
|
-
provider: string;
|
|
114
|
-
provider_phone_sid: string | null;
|
|
115
|
-
status: string;
|
|
116
|
-
updated_at: string;
|
|
117
|
-
workspace_id: string;
|
|
118
|
-
} & import("../index.js").ResponseMetadata>;
|
|
119
|
-
/** Release a phone number back to the carrier */
|
|
120
|
-
release(phoneNumberId: PhoneNumberId | string): Promise<void>;
|
|
121
|
-
/** Set call forwarding for a phone number */
|
|
122
|
-
setForwarding(phoneNumberId: PhoneNumberId | string, body: components['schemas']['ForwardingConfigRequest']): Promise<{
|
|
123
|
-
capabilities: string[];
|
|
124
|
-
channel_phone_id?: string | null | undefined;
|
|
125
|
-
created_at: string;
|
|
126
|
-
display_name: string;
|
|
127
|
-
forwarding: {
|
|
128
|
-
enabled: boolean;
|
|
129
|
-
forward_to: string;
|
|
130
|
-
should_disconnect: boolean;
|
|
131
|
-
} | null;
|
|
132
|
-
id: string;
|
|
133
|
-
inbound_service_id: string | null;
|
|
134
|
-
notes: string;
|
|
135
|
-
phone_number: string;
|
|
136
|
-
provider: string;
|
|
137
|
-
provider_phone_sid: string | null;
|
|
138
|
-
status: string;
|
|
139
|
-
updated_at: string;
|
|
140
|
-
workspace_id: string;
|
|
141
|
-
} & import("../index.js").ResponseMetadata>;
|
|
142
|
-
/** Clear call forwarding for a phone number */
|
|
143
|
-
clearForwarding(phoneNumberId: PhoneNumberId | string): Promise<void>;
|
|
144
|
-
}
|
|
145
|
-
//# sourceMappingURL=phone-numbers.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"phone-numbers.d.ts","sourceRoot":"","sources":["../../../src/resources/phone-numbers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAA;AACrD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAA;AAC7D,OAAO,EAAE,uBAAuB,EAAe,MAAM,WAAW,CAAA;AAChE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAElD;;;GAGG;AACH,qBAAa,oBAAqB,SAAQ,uBAAuB;IAC/D,gCAAgC;IAC1B,SAAS,CAAC,IAAI,EAAE,UAAU,CAAC,SAAS,CAAC,CAAC,0BAA0B,CAAC;;;;;;;;;;;;;;;;;;;;IASvE,0CAA0C;IACpC,IAAI,CAAC,MAAM,CAAC,EAAE,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;IAQ9B,cAAc,CAAC,MAAM,CAAC,EAAE,UAAU;;;;;;;;;;;;;;;;;;;;IAIlC,yBAAyB;IACnB,GAAG,CAAC,aAAa,EAAE,aAAa,GAAG,MAAM;;;;;;;;;;;;;;;;;;;;IAQ/C,sDAAsD;IAChD,MAAM,CACV,aAAa,EAAE,aAAa,GAAG,MAAM,EACrC,IAAI,EAAE,UAAU,CAAC,SAAS,CAAC,CAAC,0BAA0B,CAAC;;;;;;;;;;;;;;;;;;;;IAUzD,iDAAiD;IAC3C,OAAO,CAAC,aAAa,EAAE,aAAa,GAAG,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAMnE,6CAA6C;IACvC,aAAa,CACjB,aAAa,EAAE,aAAa,GAAG,MAAM,EACrC,IAAI,EAAE,UAAU,CAAC,SAAS,CAAC,CAAC,yBAAyB,CAAC;;;;;;;;;;;;;;;;;;;;IAUxD,+CAA+C;IACzC,eAAe,CAAC,aAAa,EAAE,aAAa,GAAG,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;CAK5E"}
|
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
import type { components } from '../generated/api.js';
|
|
2
|
-
import { WorkspaceScopedResource } from './base.js';
|
|
3
|
-
export declare class SafetyResource extends WorkspaceScopedResource {
|
|
4
|
-
getConfig(): Promise<{
|
|
5
|
-
accumulation_cumulative_count: number;
|
|
6
|
-
accumulation_enabled: boolean;
|
|
7
|
-
accumulation_fast_track_level: number;
|
|
8
|
-
accumulation_mild_threshold: number;
|
|
9
|
-
accumulation_single_turn_threshold: number;
|
|
10
|
-
accumulation_window_size: number;
|
|
11
|
-
applied_template_ids: string[];
|
|
12
|
-
triage_enabled: boolean;
|
|
13
|
-
triage_max_history_turns: number;
|
|
14
|
-
triage_model: string;
|
|
15
|
-
triage_timeout_s: number;
|
|
16
|
-
} & import("../index.js").ResponseMetadata>;
|
|
17
|
-
updateConfig(body: components['schemas']['UpdateSafetyConfigRequest']): Promise<{
|
|
18
|
-
accumulation_cumulative_count: number;
|
|
19
|
-
accumulation_enabled: boolean;
|
|
20
|
-
accumulation_fast_track_level: number;
|
|
21
|
-
accumulation_mild_threshold: number;
|
|
22
|
-
accumulation_single_turn_threshold: number;
|
|
23
|
-
accumulation_window_size: number;
|
|
24
|
-
applied_template_ids: string[];
|
|
25
|
-
triage_enabled: boolean;
|
|
26
|
-
triage_max_history_turns: number;
|
|
27
|
-
triage_model: string;
|
|
28
|
-
triage_timeout_s: number;
|
|
29
|
-
} & import("../index.js").ResponseMetadata>;
|
|
30
|
-
listTemplates(): Promise<{
|
|
31
|
-
category: string;
|
|
32
|
-
description: string;
|
|
33
|
-
id: string;
|
|
34
|
-
is_composite?: boolean | undefined;
|
|
35
|
-
name: string;
|
|
36
|
-
regulation: string;
|
|
37
|
-
rules: {
|
|
38
|
-
agent_config: {
|
|
39
|
-
[x: string]: unknown;
|
|
40
|
-
};
|
|
41
|
-
description: string;
|
|
42
|
-
escalation: {
|
|
43
|
-
[x: string]: unknown;
|
|
44
|
-
};
|
|
45
|
-
name: string;
|
|
46
|
-
standalone_threshold: number;
|
|
47
|
-
tags: string[];
|
|
48
|
-
threshold: number;
|
|
49
|
-
triage_hints: string[];
|
|
50
|
-
}[];
|
|
51
|
-
template_ids?: string[] | undefined;
|
|
52
|
-
version: string;
|
|
53
|
-
}[] & import("../index.js").ResponseMetadata>;
|
|
54
|
-
getTemplate(templateId: string): Promise<{
|
|
55
|
-
category: string;
|
|
56
|
-
description: string;
|
|
57
|
-
id: string;
|
|
58
|
-
is_composite?: boolean | undefined;
|
|
59
|
-
name: string;
|
|
60
|
-
regulation: string;
|
|
61
|
-
rules: {
|
|
62
|
-
agent_config: {
|
|
63
|
-
[x: string]: unknown;
|
|
64
|
-
};
|
|
65
|
-
description: string;
|
|
66
|
-
escalation: {
|
|
67
|
-
[x: string]: unknown;
|
|
68
|
-
};
|
|
69
|
-
name: string;
|
|
70
|
-
standalone_threshold: number;
|
|
71
|
-
tags: string[];
|
|
72
|
-
threshold: number;
|
|
73
|
-
triage_hints: string[];
|
|
74
|
-
}[];
|
|
75
|
-
template_ids?: string[] | undefined;
|
|
76
|
-
version: string;
|
|
77
|
-
} & import("../index.js").ResponseMetadata>;
|
|
78
|
-
applyTemplate(templateId: string, body: components['schemas']['ApplyTemplateRequest']): Promise<{
|
|
79
|
-
created_concepts: string[];
|
|
80
|
-
skipped: string[];
|
|
81
|
-
} & import("../index.js").ResponseMetadata>;
|
|
82
|
-
}
|
|
83
|
-
//# sourceMappingURL=safety.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"safety.d.ts","sourceRoot":"","sources":["../../../src/resources/safety.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAA;AACrD,OAAO,EAAE,uBAAuB,EAAe,MAAM,WAAW,CAAA;AAEhE,qBAAa,cAAe,SAAQ,uBAAuB;IACnD,SAAS;;;;;;;;;;;;;IAQT,YAAY,CAAC,IAAI,EAAE,UAAU,CAAC,SAAS,CAAC,CAAC,2BAA2B,CAAC;;;;;;;;;;;;;IASrE,aAAa;;;;;;;;;;;;;;;;;;;;;;;;IAQb,WAAW,CAAC,UAAU,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;IAQ9B,aAAa,CAAC,UAAU,EAAE,MAAM,EAAE,IAAI,EAAE,UAAU,CAAC,SAAS,CAAC,CAAC,sBAAsB,CAAC;;;;CAQ5F"}
|
|
@@ -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"}
|