@apteva/integrations 0.15.11 → 0.15.12
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/http-executor.d.ts.map +1 -1
- package/dist/http-executor.js +82 -0
- package/dist/http-executor.js.map +1 -1
- package/dist/types.d.ts +3 -0
- package/dist/types.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/apps/fal-ai.json +278 -290
- package/src/apps/kling-ai.json +197 -161
- package/src/apps/leadbyte.json +16 -54
- package/src/apps/replicate.json +315 -61
- package/src/apps/runway.json +386 -0
- package/src/apps/stability-ai.json +356 -0
- package/src/apps/twitter-api.json +5 -20
package/src/apps/kling-ai.json
CHANGED
|
@@ -1,206 +1,242 @@
|
|
|
1
1
|
{
|
|
2
2
|
"slug": "kling-ai",
|
|
3
3
|
"name": "Kling AI",
|
|
4
|
-
"description": "
|
|
5
|
-
"logo": "https://www.google.com/s2/favicons?domain=
|
|
6
|
-
"categories": [
|
|
7
|
-
|
|
8
|
-
"video",
|
|
9
|
-
"generation",
|
|
10
|
-
"text-to-video",
|
|
11
|
-
"image-to-video"
|
|
12
|
-
],
|
|
13
|
-
"base_url": "https://api.klingai.com",
|
|
4
|
+
"description": "KlingAI Open Platform API for async text-to-video, image-to-video, video extension, image generation, lip sync, and task polling. Uses bearer-token auth and official /v1 task endpoints.",
|
|
5
|
+
"logo": "https://www.google.com/s2/favicons?domain=kling.ai&sz=128",
|
|
6
|
+
"categories": ["ai", "video-generation", "image-generation", "text-to-video", "image-to-video"],
|
|
7
|
+
"base_url": "https://api-singapore.klingai.com",
|
|
14
8
|
"auth": {
|
|
15
|
-
"types": [
|
|
16
|
-
"api_key"
|
|
17
|
-
],
|
|
9
|
+
"types": ["bearer"],
|
|
18
10
|
"headers": {
|
|
19
|
-
"
|
|
11
|
+
"Authorization": "Bearer {{api_key}}",
|
|
12
|
+
"Content-Type": "application/json"
|
|
20
13
|
},
|
|
21
14
|
"credential_fields": [
|
|
22
15
|
{
|
|
23
16
|
"name": "api_key",
|
|
24
|
-
"label": "API Key"
|
|
17
|
+
"label": "API Key",
|
|
18
|
+
"type": "password",
|
|
19
|
+
"description": "KlingAI Open Platform API key. The Authorization header is sent as Bearer <key>."
|
|
25
20
|
}
|
|
26
21
|
]
|
|
27
22
|
},
|
|
28
23
|
"tools": [
|
|
29
24
|
{
|
|
30
|
-
"name": "
|
|
31
|
-
"description": "
|
|
25
|
+
"name": "create_text_to_video_task",
|
|
26
|
+
"description": "Create a Kling text-to-video generation task. Returns task_id/task_status; poll get_text_to_video_task.",
|
|
27
|
+
"method": "POST",
|
|
28
|
+
"path": "/v1/videos/text2video",
|
|
29
|
+
"timeout_ms": 120000,
|
|
30
|
+
"input_schema": {
|
|
31
|
+
"type": "object",
|
|
32
|
+
"properties": {
|
|
33
|
+
"model_name": { "type": "string", "description": "Kling video model id, e.g. kling-v2-1, kling-v2-1-master, kling-v2-5-turbo, kling-v3.", "default": "kling-v2-1" },
|
|
34
|
+
"prompt": { "type": "string", "description": "Video prompt." },
|
|
35
|
+
"negative_prompt": { "type": "string", "description": "Things to avoid." },
|
|
36
|
+
"cfg_scale": { "type": "number", "description": "Prompt adherence. Supported on older models.", "minimum": 0, "maximum": 1 },
|
|
37
|
+
"mode": { "type": "string", "description": "Quality/speed mode when supported.", "enum": ["std", "pro"] },
|
|
38
|
+
"camera_control": { "type": "object", "description": "Camera movement control object when supported by the selected model." },
|
|
39
|
+
"aspect_ratio": { "type": "string", "enum": ["16:9", "9:16", "1:1"] },
|
|
40
|
+
"duration": { "type": "string", "description": "Duration in seconds as a string for Kling API compatibility.", "enum": ["5", "10"] },
|
|
41
|
+
"callback_url": { "type": "string", "description": "Optional HTTPS callback URL for task completion." },
|
|
42
|
+
"external_task_id": { "type": "string", "description": "Optional caller-supplied id for idempotency/tracking." }
|
|
43
|
+
},
|
|
44
|
+
"required": ["prompt"]
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"name": "get_text_to_video_task",
|
|
49
|
+
"description": "Get one Kling text-to-video task by task_id.",
|
|
50
|
+
"method": "GET",
|
|
51
|
+
"path": "/v1/videos/text2video/{task_id}",
|
|
52
|
+
"input_schema": {
|
|
53
|
+
"type": "object",
|
|
54
|
+
"properties": {
|
|
55
|
+
"task_id": { "type": "string" }
|
|
56
|
+
},
|
|
57
|
+
"required": ["task_id"]
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
"name": "list_text_to_video_tasks",
|
|
62
|
+
"description": "List Kling text-to-video tasks.",
|
|
63
|
+
"method": "GET",
|
|
64
|
+
"path": "/v1/videos/text2video",
|
|
65
|
+
"input_schema": {
|
|
66
|
+
"type": "object",
|
|
67
|
+
"properties": {
|
|
68
|
+
"pageNum": { "type": "integer", "minimum": 1 },
|
|
69
|
+
"pageSize": { "type": "integer", "minimum": 1, "maximum": 500 }
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"name": "create_image_to_video_task",
|
|
75
|
+
"description": "Create a Kling image-to-video generation task. image can be a URL or base64/data URI according to Kling account support.",
|
|
76
|
+
"method": "POST",
|
|
77
|
+
"path": "/v1/videos/image2video",
|
|
78
|
+
"timeout_ms": 120000,
|
|
79
|
+
"input_schema": {
|
|
80
|
+
"type": "object",
|
|
81
|
+
"properties": {
|
|
82
|
+
"model_name": { "type": "string", "description": "Kling video model id, e.g. kling-v2-1, kling-v2-1-master, kling-v2-5-turbo, kling-v3.", "default": "kling-v2-1" },
|
|
83
|
+
"image": { "type": "string", "description": "First-frame image URL/base64/data URI." },
|
|
84
|
+
"image_tail": { "type": "string", "description": "Optional last-frame image URL/base64/data URI." },
|
|
85
|
+
"prompt": { "type": "string", "description": "Motion/action prompt." },
|
|
86
|
+
"negative_prompt": { "type": "string" },
|
|
87
|
+
"cfg_scale": { "type": "number", "minimum": 0, "maximum": 1 },
|
|
88
|
+
"mode": { "type": "string", "enum": ["std", "pro"] },
|
|
89
|
+
"static_mask": { "type": "string", "description": "Optional static mask image when supported." },
|
|
90
|
+
"dynamic_masks": { "type": "array", "description": "Optional dynamic masks when supported.", "items": { "type": "object" } },
|
|
91
|
+
"camera_control": { "type": "object" },
|
|
92
|
+
"duration": { "type": "string", "enum": ["5", "10"] },
|
|
93
|
+
"callback_url": { "type": "string" },
|
|
94
|
+
"external_task_id": { "type": "string" }
|
|
95
|
+
},
|
|
96
|
+
"required": ["image"]
|
|
97
|
+
}
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
"name": "get_image_to_video_task",
|
|
101
|
+
"description": "Get one Kling image-to-video task by task_id.",
|
|
102
|
+
"method": "GET",
|
|
103
|
+
"path": "/v1/videos/image2video/{task_id}",
|
|
104
|
+
"input_schema": {
|
|
105
|
+
"type": "object",
|
|
106
|
+
"properties": {
|
|
107
|
+
"task_id": { "type": "string" }
|
|
108
|
+
},
|
|
109
|
+
"required": ["task_id"]
|
|
110
|
+
}
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
"name": "list_image_to_video_tasks",
|
|
114
|
+
"description": "List Kling image-to-video tasks.",
|
|
32
115
|
"method": "GET",
|
|
33
|
-
"path": "/
|
|
116
|
+
"path": "/v1/videos/image2video",
|
|
34
117
|
"input_schema": {
|
|
35
118
|
"type": "object",
|
|
36
119
|
"properties": {
|
|
37
|
-
"
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
},
|
|
54
|
-
"
|
|
55
|
-
|
|
56
|
-
"description": "Video aspect ratio",
|
|
57
|
-
"enum": [
|
|
58
|
-
"16:9",
|
|
59
|
-
"9:16",
|
|
60
|
-
"1:1"
|
|
61
|
-
],
|
|
62
|
-
"default": "16:9"
|
|
63
|
-
},
|
|
64
|
-
"mode": {
|
|
65
|
-
"type": "string",
|
|
66
|
-
"description": "Quality mode",
|
|
67
|
-
"enum": [
|
|
68
|
-
"std",
|
|
69
|
-
"pro"
|
|
70
|
-
],
|
|
71
|
-
"default": "std"
|
|
72
|
-
},
|
|
73
|
-
"version": {
|
|
74
|
-
"type": "string",
|
|
75
|
-
"description": "Model version",
|
|
76
|
-
"enum": [
|
|
77
|
-
"1.5",
|
|
78
|
-
"1.6",
|
|
79
|
-
"2.1",
|
|
80
|
-
"2.5",
|
|
81
|
-
"2.6"
|
|
82
|
-
],
|
|
83
|
-
"default": "2.1"
|
|
84
|
-
},
|
|
85
|
-
"enable_audio": {
|
|
86
|
-
"type": "boolean",
|
|
87
|
-
"description": "Generate audio track",
|
|
88
|
-
"default": false
|
|
89
|
-
}
|
|
120
|
+
"pageNum": { "type": "integer", "minimum": 1 },
|
|
121
|
+
"pageSize": { "type": "integer", "minimum": 1, "maximum": 500 }
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
"name": "create_video_extend_task",
|
|
127
|
+
"description": "Extend a completed Kling video task when the selected model/account supports video extension.",
|
|
128
|
+
"method": "POST",
|
|
129
|
+
"path": "/v1/videos/video-extend",
|
|
130
|
+
"timeout_ms": 120000,
|
|
131
|
+
"input_schema": {
|
|
132
|
+
"type": "object",
|
|
133
|
+
"properties": {
|
|
134
|
+
"video_id": { "type": "string", "description": "Kling video id or source task video id to extend." },
|
|
135
|
+
"prompt": { "type": "string", "description": "Extension prompt." },
|
|
136
|
+
"negative_prompt": { "type": "string" },
|
|
137
|
+
"callback_url": { "type": "string" },
|
|
138
|
+
"external_task_id": { "type": "string" }
|
|
90
139
|
},
|
|
91
|
-
"required": [
|
|
92
|
-
"prompt"
|
|
93
|
-
]
|
|
140
|
+
"required": ["video_id"]
|
|
94
141
|
}
|
|
95
142
|
},
|
|
96
143
|
{
|
|
97
|
-
"name": "
|
|
98
|
-
"description": "
|
|
144
|
+
"name": "get_video_extend_task",
|
|
145
|
+
"description": "Get one Kling video extension task by task_id.",
|
|
99
146
|
"method": "GET",
|
|
100
|
-
"path": "/
|
|
147
|
+
"path": "/v1/videos/video-extend/{task_id}",
|
|
101
148
|
"input_schema": {
|
|
102
149
|
"type": "object",
|
|
103
150
|
"properties": {
|
|
104
|
-
"
|
|
105
|
-
"type": "string",
|
|
106
|
-
"description": "URL of the source image (<10MB, min 300px sides)"
|
|
107
|
-
},
|
|
108
|
-
"prompt": {
|
|
109
|
-
"type": "string",
|
|
110
|
-
"description": "Optional motion/action description"
|
|
111
|
-
},
|
|
112
|
-
"negative_prompt": {
|
|
113
|
-
"type": "string",
|
|
114
|
-
"description": "Elements to exclude from video"
|
|
115
|
-
},
|
|
116
|
-
"duration": {
|
|
117
|
-
"type": "integer",
|
|
118
|
-
"description": "Video duration in seconds",
|
|
119
|
-
"enum": [
|
|
120
|
-
5,
|
|
121
|
-
10
|
|
122
|
-
],
|
|
123
|
-
"default": 5
|
|
124
|
-
},
|
|
125
|
-
"mode": {
|
|
126
|
-
"type": "string",
|
|
127
|
-
"description": "Quality mode",
|
|
128
|
-
"enum": [
|
|
129
|
-
"std",
|
|
130
|
-
"pro"
|
|
131
|
-
],
|
|
132
|
-
"default": "std"
|
|
133
|
-
},
|
|
134
|
-
"version": {
|
|
135
|
-
"type": "string",
|
|
136
|
-
"description": "Model version",
|
|
137
|
-
"enum": [
|
|
138
|
-
"1.5",
|
|
139
|
-
"1.6",
|
|
140
|
-
"2.1",
|
|
141
|
-
"2.5",
|
|
142
|
-
"2.6"
|
|
143
|
-
],
|
|
144
|
-
"default": "2.1"
|
|
145
|
-
},
|
|
146
|
-
"image_tail_url": {
|
|
147
|
-
"type": "string",
|
|
148
|
-
"description": "End frame image URL for guided generation"
|
|
149
|
-
},
|
|
150
|
-
"enable_audio": {
|
|
151
|
-
"type": "boolean",
|
|
152
|
-
"description": "Generate audio track",
|
|
153
|
-
"default": false
|
|
154
|
-
}
|
|
151
|
+
"task_id": { "type": "string" }
|
|
155
152
|
},
|
|
156
|
-
"required": [
|
|
157
|
-
"image_url"
|
|
158
|
-
]
|
|
153
|
+
"required": ["task_id"]
|
|
159
154
|
}
|
|
160
155
|
},
|
|
161
156
|
{
|
|
162
|
-
"name": "
|
|
163
|
-
"description": "
|
|
157
|
+
"name": "create_image_generation_task",
|
|
158
|
+
"description": "Create a Kling text-to-image/image-generation task.",
|
|
159
|
+
"method": "POST",
|
|
160
|
+
"path": "/v1/images/generations",
|
|
161
|
+
"timeout_ms": 120000,
|
|
162
|
+
"input_schema": {
|
|
163
|
+
"type": "object",
|
|
164
|
+
"properties": {
|
|
165
|
+
"model_name": { "type": "string", "description": "Kling image model id." },
|
|
166
|
+
"prompt": { "type": "string" },
|
|
167
|
+
"negative_prompt": { "type": "string" },
|
|
168
|
+
"image": { "type": "string", "description": "Optional reference image URL/base64/data URI when supported." },
|
|
169
|
+
"aspect_ratio": { "type": "string", "enum": ["16:9", "9:16", "1:1", "4:3", "3:4", "3:2", "2:3"] },
|
|
170
|
+
"n": { "type": "integer", "description": "Number of images.", "minimum": 1, "maximum": 4 },
|
|
171
|
+
"callback_url": { "type": "string" },
|
|
172
|
+
"external_task_id": { "type": "string" }
|
|
173
|
+
},
|
|
174
|
+
"required": ["prompt"]
|
|
175
|
+
}
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
"name": "get_image_generation_task",
|
|
179
|
+
"description": "Get one Kling image generation task by task_id.",
|
|
164
180
|
"method": "GET",
|
|
165
|
-
"path": "/
|
|
181
|
+
"path": "/v1/images/generations/{task_id}",
|
|
166
182
|
"input_schema": {
|
|
167
183
|
"type": "object",
|
|
168
184
|
"properties": {
|
|
169
|
-
"task_id": {
|
|
170
|
-
"type": "string",
|
|
171
|
-
"description": "Task ID from generate-video or image-to-video"
|
|
172
|
-
}
|
|
185
|
+
"task_id": { "type": "string" }
|
|
173
186
|
},
|
|
174
|
-
"required": [
|
|
175
|
-
|
|
176
|
-
|
|
187
|
+
"required": ["task_id"]
|
|
188
|
+
}
|
|
189
|
+
},
|
|
190
|
+
{
|
|
191
|
+
"name": "list_image_generation_tasks",
|
|
192
|
+
"description": "List Kling image generation tasks.",
|
|
193
|
+
"method": "GET",
|
|
194
|
+
"path": "/v1/images/generations",
|
|
195
|
+
"input_schema": {
|
|
196
|
+
"type": "object",
|
|
197
|
+
"properties": {
|
|
198
|
+
"pageNum": { "type": "integer", "minimum": 1 },
|
|
199
|
+
"pageSize": { "type": "integer", "minimum": 1, "maximum": 500 }
|
|
200
|
+
}
|
|
177
201
|
}
|
|
178
202
|
},
|
|
179
203
|
{
|
|
180
|
-
"name": "
|
|
181
|
-
"description": "
|
|
204
|
+
"name": "create_lip_sync_task",
|
|
205
|
+
"description": "Create a Kling lip sync task from source video and audio/text when available for the account.",
|
|
206
|
+
"method": "POST",
|
|
207
|
+
"path": "/v1/videos/lip-sync",
|
|
208
|
+
"timeout_ms": 120000,
|
|
209
|
+
"input_schema": {
|
|
210
|
+
"type": "object",
|
|
211
|
+
"properties": {
|
|
212
|
+
"video_id": { "type": "string", "description": "Source video id." },
|
|
213
|
+
"video_url": { "type": "string", "description": "Source video URL if the endpoint is configured for URL input." },
|
|
214
|
+
"audio_url": { "type": "string", "description": "Driving audio URL." },
|
|
215
|
+
"text": { "type": "string", "description": "Text to synthesize/sync when supported." },
|
|
216
|
+
"voice_id": { "type": "string", "description": "Voice id for text-driven lip sync when supported." },
|
|
217
|
+
"callback_url": { "type": "string" },
|
|
218
|
+
"external_task_id": { "type": "string" }
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
},
|
|
222
|
+
{
|
|
223
|
+
"name": "get_lip_sync_task",
|
|
224
|
+
"description": "Get one Kling lip sync task by task_id.",
|
|
182
225
|
"method": "GET",
|
|
183
|
-
"path": "/
|
|
226
|
+
"path": "/v1/videos/lip-sync/{task_id}",
|
|
184
227
|
"input_schema": {
|
|
185
228
|
"type": "object",
|
|
186
229
|
"properties": {
|
|
187
|
-
"
|
|
188
|
-
"type": "string",
|
|
189
|
-
"description": "Task ID of the original video to extend"
|
|
190
|
-
},
|
|
191
|
-
"prompt": {
|
|
192
|
-
"type": "string",
|
|
193
|
-
"description": "Optional prompt for the extension"
|
|
194
|
-
},
|
|
195
|
-
"negative_prompt": {
|
|
196
|
-
"type": "string",
|
|
197
|
-
"description": "Elements to exclude"
|
|
198
|
-
}
|
|
230
|
+
"task_id": { "type": "string" }
|
|
199
231
|
},
|
|
200
|
-
"required": [
|
|
201
|
-
"origin_task_id"
|
|
202
|
-
]
|
|
232
|
+
"required": ["task_id"]
|
|
203
233
|
}
|
|
204
234
|
}
|
|
205
|
-
]
|
|
206
|
-
|
|
235
|
+
],
|
|
236
|
+
"webhooks": {
|
|
237
|
+
"registrar": {
|
|
238
|
+
"manual_setup": "Kling supports per-task callbacks through callback_url on task creation. There is no durable account-level webhook registration route in this catalog."
|
|
239
|
+
},
|
|
240
|
+
"events": ["task.succeed", "task.failed"]
|
|
241
|
+
}
|
|
242
|
+
}
|
package/src/apps/leadbyte.json
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"sales",
|
|
12
12
|
"automation"
|
|
13
13
|
],
|
|
14
|
-
"base_url": "https://{{credential.
|
|
14
|
+
"base_url": "https://{{credential.account_host}}/restapi/v1.3",
|
|
15
15
|
"auth": {
|
|
16
16
|
"types": [
|
|
17
17
|
"api_key"
|
|
@@ -25,9 +25,9 @@
|
|
|
25
25
|
},
|
|
26
26
|
"credential_fields": [
|
|
27
27
|
{
|
|
28
|
-
"name": "
|
|
29
|
-
"label": "Account",
|
|
30
|
-
"description": "LeadByte account
|
|
28
|
+
"name": "account_host",
|
|
29
|
+
"label": "Account Host",
|
|
30
|
+
"description": "Full LeadByte account host without https://. Default format is ACCOUNT.leadbyte.co.uk; use ACCOUNT.leadbyte.com if your workspace is on the .com host.",
|
|
31
31
|
"type": "text",
|
|
32
32
|
"required": true
|
|
33
33
|
},
|
|
@@ -114,7 +114,7 @@
|
|
|
114
114
|
},
|
|
115
115
|
{
|
|
116
116
|
"name": "update_leads",
|
|
117
|
-
"description": "Update
|
|
117
|
+
"description": "Update one or more LeadByte leads through PUT /leads. For normal valid leads, each item uses id plus update fields and can trigger delivery IDs or action=reprocess. For quarantined leads, each item uses quarantineId plus update fields and can include action=process or action=reject.",
|
|
118
118
|
"method": "PUT",
|
|
119
119
|
"path": "/leads",
|
|
120
120
|
"input_schema": {
|
|
@@ -128,11 +128,15 @@
|
|
|
128
128
|
"properties": {
|
|
129
129
|
"id": {
|
|
130
130
|
"type": "string",
|
|
131
|
-
"description": "
|
|
131
|
+
"description": "Valid lead ID to update. Use quarantineId instead for quarantined leads."
|
|
132
|
+
},
|
|
133
|
+
"quarantineId": {
|
|
134
|
+
"type": "string",
|
|
135
|
+
"description": "Quarantined lead ID to update/release/reject. Use id instead for normal valid leads."
|
|
132
136
|
},
|
|
133
137
|
"update": {
|
|
134
138
|
"type": "object",
|
|
135
|
-
"description": "Lead fields to update."
|
|
139
|
+
"description": "Lead fields to update. Optional when only processing/rejecting quarantine leads through this route."
|
|
136
140
|
},
|
|
137
141
|
"triggerDeliveryId": {
|
|
138
142
|
"type": "string",
|
|
@@ -147,15 +151,14 @@
|
|
|
147
151
|
},
|
|
148
152
|
"action": {
|
|
149
153
|
"type": "string",
|
|
150
|
-
"description": "Optional action.",
|
|
154
|
+
"description": "Optional action. Use reprocess with id leads; use process or reject with quarantineId leads.",
|
|
151
155
|
"enum": [
|
|
152
|
-
"reprocess"
|
|
156
|
+
"reprocess",
|
|
157
|
+
"process",
|
|
158
|
+
"reject"
|
|
153
159
|
]
|
|
154
160
|
}
|
|
155
|
-
}
|
|
156
|
-
"required": [
|
|
157
|
-
"id"
|
|
158
|
-
]
|
|
161
|
+
}
|
|
159
162
|
}
|
|
160
163
|
}
|
|
161
164
|
},
|
|
@@ -197,47 +200,6 @@
|
|
|
197
200
|
]
|
|
198
201
|
}
|
|
199
202
|
},
|
|
200
|
-
{
|
|
201
|
-
"name": "update_quarantine_leads",
|
|
202
|
-
"description": "Update quarantined lead data. Include action=process or action=reject to release or reject after updating.",
|
|
203
|
-
"method": "PUT",
|
|
204
|
-
"path": "/leads",
|
|
205
|
-
"input_schema": {
|
|
206
|
-
"type": "object",
|
|
207
|
-
"properties": {
|
|
208
|
-
"leads": {
|
|
209
|
-
"type": "array",
|
|
210
|
-
"items": {
|
|
211
|
-
"type": "object",
|
|
212
|
-
"properties": {
|
|
213
|
-
"quarantineId": {
|
|
214
|
-
"type": "string",
|
|
215
|
-
"description": "Quarantined lead ID."
|
|
216
|
-
},
|
|
217
|
-
"update": {
|
|
218
|
-
"type": "object",
|
|
219
|
-
"description": "Lead fields to update."
|
|
220
|
-
},
|
|
221
|
-
"action": {
|
|
222
|
-
"type": "string",
|
|
223
|
-
"description": "Optional quarantine processing action.",
|
|
224
|
-
"enum": [
|
|
225
|
-
"process",
|
|
226
|
-
"reject"
|
|
227
|
-
]
|
|
228
|
-
}
|
|
229
|
-
},
|
|
230
|
-
"required": [
|
|
231
|
-
"quarantineId"
|
|
232
|
-
]
|
|
233
|
-
}
|
|
234
|
-
}
|
|
235
|
-
},
|
|
236
|
-
"required": [
|
|
237
|
-
"leads"
|
|
238
|
-
]
|
|
239
|
-
}
|
|
240
|
-
},
|
|
241
203
|
{
|
|
242
204
|
"name": "process_quarantine_lead",
|
|
243
205
|
"description": "Release or reject a quarantined lead without updating its data.",
|