@faiber/faiber-crm 0.5.1 → 0.6.2

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.
@@ -1,1439 +1,1005 @@
1
- import type { ApiEnvelope, BackendJson, JsonObject, JsonValue, QueryParams } from "@faiber/sdk-core";
1
+ import type { BackendJson, JsonObject, JsonValue, QueryParams } from "@faiber/sdk-core";
2
2
  /** Generated route contracts. Dynamic payload members remain JSON-safe and are documented with their Rust source type. */
3
3
  /** Backend response type: api. */
4
- export interface RouterStatusRouteGetResponse extends ApiEnvelope<JsonValue> {
5
- }
6
- /** Backend response type: api. */
7
- export interface RouterOpenapiJsonGetResponse extends ApiEnvelope<JsonValue> {
8
- }
9
- /** Backend response type: crate::integration::models::IntegrationDocsResponse. */
10
- export interface IntegrationIntegrationDocsShowGetResponseData extends JsonObject {
11
- "direct": BackendJson<"DirectIntegrationMeta">;
12
- "sdk": BackendJson<"SdkIntegrationSnippet">[];
13
- }
14
- export interface IntegrationIntegrationDocsShowGetResponse extends ApiEnvelope<IntegrationIntegrationDocsShowGetResponseData> {
15
- }
16
- /** Backend response type: infera_flow_sdk::FlowIntegrationResponse. */
17
- export interface IntegrationFlowIntegrationShowGetResponse extends ApiEnvelope<BackendJson<"infera_flow_sdk::FlowIntegrationResponse">> {
18
- }
19
- /** Backend query type: LeadListQuery. */
20
- export interface LeadIndexGetQuery extends QueryParams {
21
- "sort"?: string | null;
22
- }
23
- /** Backend response type: LeadListResponse. */
24
- export interface LeadIndexGetResponseData extends JsonObject {
25
- "leads": BackendJson<"FullLeadResponse">[];
26
- }
27
- export interface LeadIndexGetResponse extends ApiEnvelope<LeadIndexGetResponseData> {
28
- }
29
- /** Backend request type: CreateLeadRequest. */
30
- export interface LeadCreatePostInput extends JsonObject {
31
- "profile_id": string;
32
- "creator_id"?: string | null;
33
- "task_priority": number;
34
- "campaign"?: string | null;
35
- "source"?: string | null;
36
- "task_status"?: string | null;
37
- "foreign_key"?: string | null;
38
- "flags"?: string[];
39
- "enrollment_state"?: string | null;
40
- "enrollment_id"?: number | null;
41
- "enrollment_course_id"?: number | null;
42
- "installment_id"?: number | null;
43
- "installment_enrollment_id"?: number | null;
44
- "active_at"?: string | null;
45
- "assignee_ids"?: string[] | null;
46
- "meta"?: JsonValue | null;
47
- "title"?: string | null;
48
- "description"?: string | null;
49
- }
50
- /** Backend response type: LeadResponse. */
51
- export interface LeadCreatePostResponseData extends JsonObject {
52
- "id": string;
53
- "profile_id"?: string | null;
54
- "title"?: string | null;
55
- "description"?: string | null;
56
- "creator_id": string;
57
- "creator"?: BackendJson<"ProfileSummary"> | null;
58
- "workflow_id"?: string | null;
59
- "workflow_node_id"?: string | null;
60
- "campaign_id"?: string | null;
61
- "source_id"?: string | null;
62
- "task_status": string;
63
- "foreign_key"?: string | null;
64
- "task_priority": number;
65
- "flags": string[];
66
- "profile"?: BackendJson<"ProfileSummary"> | null;
67
- "created_at": string;
68
- "updated_at": string;
69
- "enrollment_id"?: number | null;
70
- "enrollment_course_id"?: number | null;
71
- "installment_id"?: number | null;
72
- "installment_enrollment_id"?: number | null;
73
- "active_at"?: string | null;
74
- "is_active_status"?: boolean | null;
75
- "is_sos_assignee"?: boolean | null;
76
- "workflow"?: BackendJson<"WorkflowResponse"> | null;
77
- "workflow_node"?: BackendJson<"WorkflowNodeResponse"> | null;
78
- "is_in_reminder"?: boolean | null;
79
- "meta_data"?: JsonValue | null;
80
- }
81
- export interface LeadCreatePostResponse extends ApiEnvelope<LeadCreatePostResponseData> {
82
- }
83
- /** Backend response type: Vec<LeadCampaignResponse>. */
84
- export interface LeadCampaignIndexGetResponseItem extends JsonObject {
85
- "id": string;
86
- "name": string;
87
- "slug": string;
88
- "created_at": string;
89
- "updated_at": string;
90
- }
91
- export interface LeadCampaignIndexGetResponse extends ApiEnvelope<LeadCampaignIndexGetResponseItem[]> {
92
- }
93
- /** Backend request type: CreateLeadCampaignRequest. */
94
- export interface LeadCampaignCreatePostInput extends JsonObject {
95
- "name": string;
96
- "slug": string;
97
- }
98
- /** Backend response type: LeadCampaignResponse. */
99
- export interface LeadCampaignCreatePostResponseData extends JsonObject {
100
- "id": string;
101
- "name": string;
102
- "slug": string;
103
- "created_at": string;
104
- "updated_at": string;
105
- }
106
- export interface LeadCampaignCreatePostResponse extends ApiEnvelope<LeadCampaignCreatePostResponseData> {
107
- }
108
- /** Backend response type: bool. */
109
- export interface LeadCampaignDestroyDeleteResponse extends ApiEnvelope<boolean> {
110
- }
111
- /** Backend response type: LeadCampaignResponse. */
112
- export interface LeadCampaignShowGetResponseData extends JsonObject {
113
- "id": string;
114
- "name": string;
115
- "slug": string;
116
- "created_at": string;
117
- "updated_at": string;
118
- }
119
- export interface LeadCampaignShowGetResponse extends ApiEnvelope<LeadCampaignShowGetResponseData> {
120
- }
121
- /** Backend request type: UpdateLeadCampaignRequest. */
122
- export interface LeadCampaignUpdatePutInput extends JsonObject {
123
- "name"?: string | null;
124
- "slug"?: string | null;
125
- }
126
- /** Backend response type: LeadCampaignResponse. */
127
- export interface LeadCampaignUpdatePutResponseData extends JsonObject {
128
- "id": string;
129
- "name": string;
130
- "slug": string;
131
- "created_at": string;
132
- "updated_at": string;
133
- }
134
- export interface LeadCampaignUpdatePutResponse extends ApiEnvelope<LeadCampaignUpdatePutResponseData> {
135
- }
136
- /** Backend response type: Vec<LeadSourceResponse>. */
137
- export interface LeadSourceIndexGetResponseItem extends JsonObject {
138
- "id": string;
139
- "name": string;
140
- "slug": string;
141
- "created_at": string;
142
- "updated_at": string;
143
- }
144
- export interface LeadSourceIndexGetResponse extends ApiEnvelope<LeadSourceIndexGetResponseItem[]> {
145
- }
146
- /** Backend request type: CreateLeadSourceRequest. */
147
- export interface LeadSourceCreatePostInput extends JsonObject {
148
- "name": string;
149
- "slug": string;
150
- }
151
- /** Backend response type: LeadSourceResponse. */
152
- export interface LeadSourceCreatePostResponseData extends JsonObject {
153
- "id": string;
154
- "name": string;
155
- "slug": string;
156
- "created_at": string;
157
- "updated_at": string;
158
- }
159
- export interface LeadSourceCreatePostResponse extends ApiEnvelope<LeadSourceCreatePostResponseData> {
160
- }
161
- /** Backend response type: bool. */
162
- export interface LeadSourceDestroyDeleteResponse extends ApiEnvelope<boolean> {
163
- }
164
- /** Backend response type: LeadSourceResponse. */
165
- export interface LeadSourceShowGetResponseData extends JsonObject {
166
- "id": string;
167
- "name": string;
168
- "slug": string;
169
- "created_at": string;
170
- "updated_at": string;
171
- }
172
- export interface LeadSourceShowGetResponse extends ApiEnvelope<LeadSourceShowGetResponseData> {
173
- }
174
- /** Backend request type: UpdateLeadSourceRequest. */
175
- export interface LeadSourceUpdatePutInput extends JsonObject {
176
- "name"?: string | null;
177
- "slug"?: string | null;
178
- }
179
- /** Backend response type: LeadSourceResponse. */
180
- export interface LeadSourceUpdatePutResponseData extends JsonObject {
181
- "id": string;
182
- "name": string;
183
- "slug": string;
184
- "created_at": string;
185
- "updated_at": string;
186
- }
187
- export interface LeadSourceUpdatePutResponse extends ApiEnvelope<LeadSourceUpdatePutResponseData> {
188
- }
189
- /** Backend response type: bool. */
190
- export interface LeadDestroyDeleteResponse extends ApiEnvelope<boolean> {
191
- }
192
- /** Backend response type: LeadResponse. */
193
- export interface LeadShowGetResponseData extends JsonObject {
194
- "id": string;
195
- "profile_id"?: string | null;
196
- "title"?: string | null;
197
- "description"?: string | null;
198
- "creator_id": string;
199
- "creator"?: BackendJson<"ProfileSummary"> | null;
200
- "workflow_id"?: string | null;
201
- "workflow_node_id"?: string | null;
202
- "campaign_id"?: string | null;
203
- "source_id"?: string | null;
204
- "task_status": string;
205
- "foreign_key"?: string | null;
206
- "task_priority": number;
207
- "flags": string[];
208
- "profile"?: BackendJson<"ProfileSummary"> | null;
209
- "created_at": string;
210
- "updated_at": string;
211
- "enrollment_id"?: number | null;
212
- "enrollment_course_id"?: number | null;
213
- "installment_id"?: number | null;
214
- "installment_enrollment_id"?: number | null;
215
- "active_at"?: string | null;
216
- "is_active_status"?: boolean | null;
217
- "is_sos_assignee"?: boolean | null;
218
- "workflow"?: BackendJson<"WorkflowResponse"> | null;
219
- "workflow_node"?: BackendJson<"WorkflowNodeResponse"> | null;
220
- "is_in_reminder"?: boolean | null;
221
- "meta_data"?: JsonValue | null;
222
- }
223
- export interface LeadShowGetResponse extends ApiEnvelope<LeadShowGetResponseData> {
224
- }
225
- /** Backend request type: UpdateLeadRequest. */
226
- export interface LeadUpdatePutInput extends JsonObject {
227
- "profile_id"?: string | null;
228
- "title"?: string | null;
229
- "description"?: string | null;
230
- "task_priority"?: number | null;
231
- "campaign"?: string | null;
232
- "source"?: string | null;
233
- "task_status"?: string | null;
234
- "foreign_key"?: string | null;
235
- "flags"?: string[] | null;
236
- "enrollment_id"?: number | null;
237
- "enrollment_course_id"?: number | null;
238
- "installment_id"?: number | null;
239
- "installment_enrollment_id"?: number | null;
240
- "active_at"?: string | null;
241
- "assignee_ids"?: string[] | null;
242
- "meta"?: JsonValue | null;
243
- "workflow_node_id"?: string | null;
244
- "assignee_profile_id"?: string | null;
245
- }
246
- /** Backend response type: LeadResponse. */
247
- export interface LeadUpdatePutResponseData extends JsonObject {
248
- "id": string;
249
- "profile_id"?: string | null;
250
- "title"?: string | null;
251
- "description"?: string | null;
252
- "creator_id": string;
253
- "creator"?: BackendJson<"ProfileSummary"> | null;
254
- "workflow_id"?: string | null;
255
- "workflow_node_id"?: string | null;
256
- "campaign_id"?: string | null;
257
- "source_id"?: string | null;
258
- "task_status": string;
259
- "foreign_key"?: string | null;
260
- "task_priority": number;
261
- "flags": string[];
262
- "profile"?: BackendJson<"ProfileSummary"> | null;
263
- "created_at": string;
264
- "updated_at": string;
265
- "enrollment_id"?: number | null;
266
- "enrollment_course_id"?: number | null;
267
- "installment_id"?: number | null;
268
- "installment_enrollment_id"?: number | null;
269
- "active_at"?: string | null;
270
- "is_active_status"?: boolean | null;
271
- "is_sos_assignee"?: boolean | null;
272
- "workflow"?: BackendJson<"WorkflowResponse"> | null;
273
- "workflow_node"?: BackendJson<"WorkflowNodeResponse"> | null;
274
- "is_in_reminder"?: boolean | null;
275
- "meta_data"?: JsonValue | null;
276
- }
277
- export interface LeadUpdatePutResponse extends ApiEnvelope<LeadUpdatePutResponseData> {
278
- }
279
- /** Backend response type: LeadResponse. */
280
- export interface LeadCheckStatusGetResponseData extends JsonObject {
281
- "id": string;
282
- "profile_id"?: string | null;
283
- "title"?: string | null;
284
- "description"?: string | null;
285
- "creator_id": string;
286
- "creator"?: BackendJson<"ProfileSummary"> | null;
287
- "workflow_id"?: string | null;
288
- "workflow_node_id"?: string | null;
289
- "campaign_id"?: string | null;
290
- "source_id"?: string | null;
291
- "task_status": string;
292
- "foreign_key"?: string | null;
293
- "task_priority": number;
294
- "flags": string[];
295
- "profile"?: BackendJson<"ProfileSummary"> | null;
296
- "created_at": string;
297
- "updated_at": string;
298
- "enrollment_id"?: number | null;
299
- "enrollment_course_id"?: number | null;
300
- "installment_id"?: number | null;
301
- "installment_enrollment_id"?: number | null;
302
- "active_at"?: string | null;
303
- "is_active_status"?: boolean | null;
304
- "is_sos_assignee"?: boolean | null;
305
- "workflow"?: BackendJson<"WorkflowResponse"> | null;
306
- "workflow_node"?: BackendJson<"WorkflowNodeResponse"> | null;
307
- "is_in_reminder"?: boolean | null;
308
- "meta_data"?: JsonValue | null;
309
- }
310
- export interface LeadCheckStatusGetResponse extends ApiEnvelope<LeadCheckStatusGetResponseData> {
311
- }
312
- /** Backend response type: LeadLogListResponse. */
313
- export interface LeadListLogsGetResponseData extends JsonObject {
314
- "lead_logs": BackendJson<"LeadLogResponse">[];
315
- }
316
- export interface LeadListLogsGetResponse extends ApiEnvelope<LeadListLogsGetResponseData> {
317
- }
318
- /** Backend request type: CreateLeadLogRequest. */
319
- export interface LeadCreateLogPostInput extends JsonObject {
320
- "from_workflow_node_id"?: string | null;
321
- "to_workflow_node_id"?: string | null;
322
- "from_status"?: string | null;
323
- "to_status"?: string | null;
324
- "type": string;
325
- }
326
- /** Backend response type: LeadLogResponse. */
327
- export interface LeadCreateLogPostResponseData extends JsonObject {
328
- "id": string;
329
- "from_workflow_node_id"?: string | null;
330
- "to_workflow_node_id"?: string | null;
331
- "type": string;
332
- "profile_id": string;
333
- "profile"?: BackendJson<"ProfileSummary"> | null;
334
- "from_status"?: string | null;
335
- "to_status"?: string | null;
336
- "from_workflow_node"?: BackendJson<"WorkflowNodeResponse"> | null;
337
- "to_workflow_node"?: BackendJson<"WorkflowNodeResponse"> | null;
338
- "created_at": string;
339
- "updated_at": string;
340
- }
341
- export interface LeadCreateLogPostResponse extends ApiEnvelope<LeadCreateLogPostResponseData> {
342
- }
343
- /** Backend response type: bool. */
344
- export interface LeadDestroyLogDeleteResponse extends ApiEnvelope<boolean> {
345
- }
346
- /** Backend response type: LeadLogResponse. */
347
- export interface LeadShowLogGetResponseData extends JsonObject {
348
- "id": string;
349
- "from_workflow_node_id"?: string | null;
350
- "to_workflow_node_id"?: string | null;
351
- "type": string;
352
- "profile_id": string;
353
- "profile"?: BackendJson<"ProfileSummary"> | null;
354
- "from_status"?: string | null;
355
- "to_status"?: string | null;
356
- "from_workflow_node"?: BackendJson<"WorkflowNodeResponse"> | null;
357
- "to_workflow_node"?: BackendJson<"WorkflowNodeResponse"> | null;
358
- "created_at": string;
359
- "updated_at": string;
360
- }
361
- export interface LeadShowLogGetResponse extends ApiEnvelope<LeadShowLogGetResponseData> {
362
- }
363
- /** Backend request type: UpdateLeadLogRequest. */
364
- export interface LeadUpdateLogPutInput extends JsonObject {
365
- "from_workflow_node_id"?: string | null;
366
- "to_workflow_node_id"?: string | null;
367
- "from_status"?: string | null;
368
- "to_status"?: string | null;
369
- "type"?: string | null;
370
- }
371
- /** Backend response type: LeadLogResponse. */
372
- export interface LeadUpdateLogPutResponseData extends JsonObject {
373
- "id": string;
374
- "from_workflow_node_id"?: string | null;
375
- "to_workflow_node_id"?: string | null;
376
- "type": string;
377
- "profile_id": string;
378
- "profile"?: BackendJson<"ProfileSummary"> | null;
379
- "from_status"?: string | null;
380
- "to_status"?: string | null;
381
- "from_workflow_node"?: BackendJson<"WorkflowNodeResponse"> | null;
382
- "to_workflow_node"?: BackendJson<"WorkflowNodeResponse"> | null;
383
- "created_at": string;
384
- "updated_at": string;
385
- }
386
- export interface LeadUpdateLogPutResponse extends ApiEnvelope<LeadUpdateLogPutResponseData> {
387
- }
388
- /** Backend request type: MoveLeadToDoneRequest. */
389
- export interface LeadMoveToDonePutInput extends JsonObject {
390
- "task_status": string;
391
- "assignee_profile_id"?: string | null;
392
- }
393
- /** Backend response type: LeadResponse. */
394
- export interface LeadMoveToDonePutResponseData extends JsonObject {
395
- "id": string;
396
- "profile_id"?: string | null;
397
- "title"?: string | null;
398
- "description"?: string | null;
399
- "creator_id": string;
400
- "creator"?: BackendJson<"ProfileSummary"> | null;
401
- "workflow_id"?: string | null;
402
- "workflow_node_id"?: string | null;
403
- "campaign_id"?: string | null;
404
- "source_id"?: string | null;
405
- "task_status": string;
406
- "foreign_key"?: string | null;
407
- "task_priority": number;
408
- "flags": string[];
409
- "profile"?: BackendJson<"ProfileSummary"> | null;
410
- "created_at": string;
411
- "updated_at": string;
412
- "enrollment_id"?: number | null;
413
- "enrollment_course_id"?: number | null;
414
- "installment_id"?: number | null;
415
- "installment_enrollment_id"?: number | null;
416
- "active_at"?: string | null;
417
- "is_active_status"?: boolean | null;
418
- "is_sos_assignee"?: boolean | null;
419
- "workflow"?: BackendJson<"WorkflowResponse"> | null;
420
- "workflow_node"?: BackendJson<"WorkflowNodeResponse"> | null;
421
- "is_in_reminder"?: boolean | null;
422
- "meta_data"?: JsonValue | null;
423
- }
424
- export interface LeadMoveToDonePutResponse extends ApiEnvelope<LeadMoveToDonePutResponseData> {
425
- }
426
- /** Backend response type: LeadTouchListResponse. */
427
- export interface LeadListTouchesGetResponseData extends JsonObject {
428
- "lead_touch": BackendJson<"LeadTouchResponse">[];
429
- }
430
- export interface LeadListTouchesGetResponse extends ApiEnvelope<LeadListTouchesGetResponseData> {
431
- }
432
- /** Backend request type: CreateLeadTouchRequest. */
433
- export interface LeadCreateTouchPostInput extends JsonObject {
434
- "description"?: string | null;
435
- "status": string;
436
- }
437
- /** Backend response type: LeadTouchResponse. */
438
- export interface LeadCreateTouchPostResponseData extends JsonObject {
439
- "id": string;
440
- "lead_id": string;
441
- "profile_id": string;
442
- "profile"?: BackendJson<"ProfileSummary"> | null;
443
- "description"?: string | null;
444
- "status": string;
445
- "created_at": string;
446
- "updated_at": string;
447
- }
448
- export interface LeadCreateTouchPostResponse extends ApiEnvelope<LeadCreateTouchPostResponseData> {
449
- }
450
- /** Backend response type: bool. */
451
- export interface LeadDestroyTouchDeleteResponse extends ApiEnvelope<boolean> {
452
- }
453
- /** Backend response type: LeadTouchResponse. */
454
- export interface LeadShowTouchGetResponseData extends JsonObject {
455
- "id": string;
456
- "lead_id": string;
457
- "profile_id": string;
458
- "profile"?: BackendJson<"ProfileSummary"> | null;
459
- "description"?: string | null;
460
- "status": string;
461
- "created_at": string;
462
- "updated_at": string;
463
- }
464
- export interface LeadShowTouchGetResponse extends ApiEnvelope<LeadShowTouchGetResponseData> {
465
- }
466
- /** Backend request type: UpdateLeadTouchRequest. */
467
- export interface LeadUpdateTouchPutInput extends JsonObject {
468
- "description"?: string | null;
469
- "status"?: string | null;
470
- }
471
- /** Backend response type: LeadTouchResponse. */
472
- export interface LeadUpdateTouchPutResponseData extends JsonObject {
473
- "id": string;
474
- "lead_id": string;
475
- "profile_id": string;
476
- "profile"?: BackendJson<"ProfileSummary"> | null;
477
- "description"?: string | null;
478
- "status": string;
479
- "created_at": string;
480
- "updated_at": string;
481
- }
482
- export interface LeadUpdateTouchPutResponse extends ApiEnvelope<LeadUpdateTouchPutResponseData> {
483
- }
484
- /** Backend request type: CreateDeveloperLeadRequest. */
485
- export interface LeadCreateDeveloperPostInput extends JsonObject {
486
- "title": string;
487
- "description": string;
488
- "task_priority"?: number | null;
489
- "flags"?: string[];
490
- "assignee_ids": string[];
491
- "meta"?: JsonValue | null;
492
- }
493
- /** Backend response type: LeadResponse. */
494
- export interface LeadCreateDeveloperPostResponseData extends JsonObject {
495
- "id": string;
496
- "profile_id"?: string | null;
497
- "title"?: string | null;
498
- "description"?: string | null;
499
- "creator_id": string;
500
- "creator"?: BackendJson<"ProfileSummary"> | null;
501
- "workflow_id"?: string | null;
502
- "workflow_node_id"?: string | null;
503
- "campaign_id"?: string | null;
504
- "source_id"?: string | null;
505
- "task_status": string;
506
- "foreign_key"?: string | null;
507
- "task_priority": number;
508
- "flags": string[];
509
- "profile"?: BackendJson<"ProfileSummary"> | null;
510
- "created_at": string;
511
- "updated_at": string;
512
- "enrollment_id"?: number | null;
513
- "enrollment_course_id"?: number | null;
514
- "installment_id"?: number | null;
515
- "installment_enrollment_id"?: number | null;
516
- "active_at"?: string | null;
517
- "is_active_status"?: boolean | null;
518
- "is_sos_assignee"?: boolean | null;
519
- "workflow"?: BackendJson<"WorkflowResponse"> | null;
520
- "workflow_node"?: BackendJson<"WorkflowNodeResponse"> | null;
521
- "is_in_reminder"?: boolean | null;
522
- "meta_data"?: JsonValue | null;
523
- }
524
- export interface LeadCreateDeveloperPostResponse extends ApiEnvelope<LeadCreateDeveloperPostResponseData> {
525
- }
526
- /** Backend query type: LeadListQuery. */
527
- export interface LeadDeveloperReadyGetQuery extends QueryParams {
528
- "sort"?: string | null;
529
- }
530
- /** Backend response type: DeveloperReadyLeadListResponse. */
531
- export interface LeadDeveloperReadyGetResponseData extends JsonObject {
532
- "leads": BackendJson<"DeveloperReadyLeadResponse">[];
533
- }
534
- export interface LeadDeveloperReadyGetResponse extends ApiEnvelope<LeadDeveloperReadyGetResponseData> {
535
- }
536
- /** Backend query type: ForeignKeyQuery. */
537
- export interface LeadByForeignKeyGetQuery extends QueryParams {
538
- "foreign_key"?: string | null;
539
- "profile_id"?: string | null;
540
- "flags"?: string | null;
541
- }
542
- /** Backend response type: LeadResponse. */
543
- export interface LeadByForeignKeyGetResponseData extends JsonObject {
544
- "id": string;
545
- "profile_id"?: string | null;
546
- "title"?: string | null;
547
- "description"?: string | null;
548
- "creator_id": string;
549
- "creator"?: BackendJson<"ProfileSummary"> | null;
550
- "workflow_id"?: string | null;
551
- "workflow_node_id"?: string | null;
552
- "campaign_id"?: string | null;
553
- "source_id"?: string | null;
554
- "task_status": string;
555
- "foreign_key"?: string | null;
556
- "task_priority": number;
557
- "flags": string[];
558
- "profile"?: BackendJson<"ProfileSummary"> | null;
559
- "created_at": string;
560
- "updated_at": string;
561
- "enrollment_id"?: number | null;
562
- "enrollment_course_id"?: number | null;
563
- "installment_id"?: number | null;
564
- "installment_enrollment_id"?: number | null;
565
- "active_at"?: string | null;
566
- "is_active_status"?: boolean | null;
567
- "is_sos_assignee"?: boolean | null;
568
- "workflow"?: BackendJson<"WorkflowResponse"> | null;
569
- "workflow_node"?: BackendJson<"WorkflowNodeResponse"> | null;
570
- "is_in_reminder"?: boolean | null;
571
- "meta_data"?: JsonValue | null;
572
- }
573
- export interface LeadByForeignKeyGetResponse extends ApiEnvelope<LeadByForeignKeyGetResponseData> {
574
- }
575
- /** Backend response type: bool. */
576
- export interface LeadDestroyByForeignKeyDeleteResponse extends ApiEnvelope<boolean> {
577
- }
578
- /** Backend request type: UpdateLeadRequest. */
579
- export interface LeadUpdateByForeignKeyPutInput extends JsonObject {
580
- "profile_id"?: string | null;
581
- "title"?: string | null;
582
- "description"?: string | null;
583
- "task_priority"?: number | null;
584
- "campaign"?: string | null;
585
- "source"?: string | null;
586
- "task_status"?: string | null;
587
- "foreign_key"?: string | null;
588
- "flags"?: string[] | null;
589
- "enrollment_id"?: number | null;
590
- "enrollment_course_id"?: number | null;
591
- "installment_id"?: number | null;
592
- "installment_enrollment_id"?: number | null;
593
- "active_at"?: string | null;
594
- "assignee_ids"?: string[] | null;
595
- "meta"?: JsonValue | null;
596
- "workflow_node_id"?: string | null;
597
- "assignee_profile_id"?: string | null;
598
- }
599
- /** Backend response type: LeadResponse. */
600
- export interface LeadUpdateByForeignKeyPutResponseData extends JsonObject {
601
- "id": string;
602
- "profile_id"?: string | null;
603
- "title"?: string | null;
604
- "description"?: string | null;
605
- "creator_id": string;
606
- "creator"?: BackendJson<"ProfileSummary"> | null;
607
- "workflow_id"?: string | null;
608
- "workflow_node_id"?: string | null;
609
- "campaign_id"?: string | null;
610
- "source_id"?: string | null;
611
- "task_status": string;
612
- "foreign_key"?: string | null;
613
- "task_priority": number;
614
- "flags": string[];
615
- "profile"?: BackendJson<"ProfileSummary"> | null;
616
- "created_at": string;
617
- "updated_at": string;
618
- "enrollment_id"?: number | null;
619
- "enrollment_course_id"?: number | null;
620
- "installment_id"?: number | null;
621
- "installment_enrollment_id"?: number | null;
622
- "active_at"?: string | null;
623
- "is_active_status"?: boolean | null;
624
- "is_sos_assignee"?: boolean | null;
625
- "workflow"?: BackendJson<"WorkflowResponse"> | null;
626
- "workflow_node"?: BackendJson<"WorkflowNodeResponse"> | null;
627
- "is_in_reminder"?: boolean | null;
628
- "meta_data"?: JsonValue | null;
629
- }
630
- export interface LeadUpdateByForeignKeyPutResponse extends ApiEnvelope<LeadUpdateByForeignKeyPutResponseData> {
631
- }
632
- /** Backend query type: LeadLightQuery. */
633
- export interface LeadLightGetQuery extends QueryParams {
634
- "sort"?: string | null;
635
- "page[limit]"?: number | null;
636
- "page[number]"?: number | null;
637
- }
638
- /** Backend response type: LeadLightListResponse. */
639
- export interface LeadLightGetResponseData extends JsonObject {
640
- "leads": BackendJson<"FullLeadResponse">[];
641
- "total_count": number;
642
- "won_count": number;
643
- "lost_count": number;
644
- }
645
- export interface LeadLightGetResponse extends ApiEnvelope<LeadLightGetResponseData> {
646
- }
647
- /** Backend response type: Vec<ReminderResponse>. */
648
- export interface ReminderIndexGetResponseItem extends JsonObject {
649
- "id": string;
650
- "lead_id": string;
651
- "profile_id": string;
652
- "remind": string;
653
- "description"?: string | null;
654
- "created_at": string;
655
- "updated_at": string;
656
- }
657
- export interface ReminderIndexGetResponse extends ApiEnvelope<ReminderIndexGetResponseItem[]> {
658
- }
659
- /** Backend request type: CreateReminderRequest. */
660
- export interface ReminderCreatePostInput extends JsonObject {
661
- "lead_id": string;
662
- "remind": string;
663
- "description"?: string | null;
664
- }
665
- /** Backend response type: ReminderResponse. */
666
- export interface ReminderCreatePostResponseData extends JsonObject {
667
- "id": string;
668
- "lead_id": string;
669
- "profile_id": string;
670
- "remind": string;
671
- "description"?: string | null;
672
- "created_at": string;
673
- "updated_at": string;
674
- }
675
- export interface ReminderCreatePostResponse extends ApiEnvelope<ReminderCreatePostResponseData> {
676
- }
677
- /** Backend response type: bool. */
678
- export interface ReminderDestroyDeleteResponse extends ApiEnvelope<boolean> {
679
- }
680
- /** Backend request type: UpdateReminderRequest. */
681
- export interface ReminderUpdatePutInput extends JsonObject {
682
- "remind"?: string | null;
683
- "description"?: string | null;
684
- }
685
- /** Backend response type: ReminderResponse. */
686
- export interface ReminderUpdatePutResponseData extends JsonObject {
687
- "id": string;
688
- "lead_id": string;
689
- "profile_id": string;
690
- "remind": string;
691
- "description"?: string | null;
692
- "created_at": string;
693
- "updated_at": string;
694
- }
695
- export interface ReminderUpdatePutResponse extends ApiEnvelope<ReminderUpdatePutResponseData> {
696
- }
697
- /** Backend response type: u64. */
698
- export interface ReminderDestroyByLeadDeleteResponse extends ApiEnvelope<number> {
699
- }
700
- /** Backend response type: Vec<ReminderResponse>. */
701
- export interface ReminderUntilTodayGetResponseItem extends JsonObject {
702
- "id": string;
703
- "lead_id": string;
704
- "profile_id": string;
705
- "remind": string;
706
- "description"?: string | null;
707
- "created_at": string;
708
- "updated_at": string;
709
- }
710
- export interface ReminderUntilTodayGetResponse extends ApiEnvelope<ReminderUntilTodayGetResponseItem[]> {
711
- }
712
- /** Backend query type: SortQuery. */
713
- export interface SosIndexGetQuery extends QueryParams {
714
- "sort"?: string | null;
715
- }
716
- /** Backend response type: SosListResponse. */
717
- export interface SosIndexGetResponseData extends JsonObject {
718
- "sos": BackendJson<"SosResponse">[];
719
- }
720
- export interface SosIndexGetResponse extends ApiEnvelope<SosIndexGetResponseData> {
721
- }
722
- /** Backend request type: CreateSosRequest. */
723
- export interface SosCreatePostInput extends JsonObject {
724
- "profile_id": string;
725
- }
726
- /** Backend response type: SosResponse. */
727
- export interface SosCreatePostResponseData extends JsonObject {
728
- "id": string;
729
- "profile_id": string;
730
- "assignee_ids": string[];
731
- "created_at": string;
732
- "updated_at": string;
733
- }
734
- export interface SosCreatePostResponse extends ApiEnvelope<SosCreatePostResponseData> {
735
- }
736
- /** Backend response type: bool. */
737
- export interface SosDestroyDeleteResponse extends ApiEnvelope<boolean> {
738
- }
739
- /** Backend response type: SosResponse. */
740
- export interface SosShowGetResponseData extends JsonObject {
741
- "id": string;
742
- "profile_id": string;
743
- "assignee_ids": string[];
744
- "created_at": string;
745
- "updated_at": string;
746
- }
747
- export interface SosShowGetResponse extends ApiEnvelope<SosShowGetResponseData> {
748
- }
749
- /** Backend request type: UpdateSosRequest. */
750
- export interface SosUpdatePutInput extends JsonObject {
751
- "profile_id"?: string | null;
752
- }
753
- /** Backend response type: SosResponse. */
754
- export interface SosUpdatePutResponseData extends JsonObject {
755
- "id": string;
756
- "profile_id": string;
757
- "assignee_ids": string[];
758
- "created_at": string;
759
- "updated_at": string;
760
- }
761
- export interface SosUpdatePutResponse extends ApiEnvelope<SosUpdatePutResponseData> {
762
- }
763
- /** Backend response type: Vec<SosLogResponse>. */
764
- export interface SosListLogsGetResponseItem extends JsonObject {
765
- "id": string;
766
- "sos_id": string;
767
- "profile_id": string;
768
- "description"?: string | null;
769
- "created_at": string;
770
- "updated_at": string;
771
- }
772
- export interface SosListLogsGetResponse extends ApiEnvelope<SosListLogsGetResponseItem[]> {
773
- }
774
- /** Backend request type: CreateSosLogRequest. */
775
- export interface SosCreateLogPostInput extends JsonObject {
776
- "description"?: string | null;
777
- }
778
- /** Backend response type: SosLogResponse. */
779
- export interface SosCreateLogPostResponseData extends JsonObject {
780
- "id": string;
781
- "sos_id": string;
782
- "profile_id": string;
783
- "description"?: string | null;
784
- "created_at": string;
785
- "updated_at": string;
786
- }
787
- export interface SosCreateLogPostResponse extends ApiEnvelope<SosCreateLogPostResponseData> {
788
- }
789
- /** Backend response type: bool. */
790
- export interface SosDestroyLogDeleteResponse extends ApiEnvelope<boolean> {
791
- }
792
- /** Backend response type: SosLogResponse. */
793
- export interface SosShowLogGetResponseData extends JsonObject {
794
- "id": string;
795
- "sos_id": string;
796
- "profile_id": string;
797
- "description"?: string | null;
798
- "created_at": string;
799
- "updated_at": string;
800
- }
801
- export interface SosShowLogGetResponse extends ApiEnvelope<SosShowLogGetResponseData> {
802
- }
803
- /** Backend request type: UpdateSosLogRequest. */
804
- export interface SosUpdateLogPutInput extends JsonObject {
805
- "description"?: string | null;
806
- }
807
- /** Backend response type: SosLogResponse. */
808
- export interface SosUpdateLogPutResponseData extends JsonObject {
809
- "id": string;
810
- "sos_id": string;
811
- "profile_id": string;
812
- "description"?: string | null;
813
- "created_at": string;
814
- "updated_at": string;
815
- }
816
- export interface SosUpdateLogPutResponse extends ApiEnvelope<SosUpdateLogPutResponseData> {
817
- }
818
- /** Backend response type: Vec<SosTouchResponse>. */
819
- export interface SosListTouchesGetResponseItem extends JsonObject {
820
- "id": string;
821
- "sos_id": string;
822
- "profile_id": string;
823
- "description"?: string | null;
824
- "created_at": string;
825
- "updated_at": string;
826
- }
827
- export interface SosListTouchesGetResponse extends ApiEnvelope<SosListTouchesGetResponseItem[]> {
828
- }
829
- /** Backend request type: CreateSosTouchRequest. */
830
- export interface SosCreateTouchPostInput extends JsonObject {
831
- "description"?: string | null;
832
- }
833
- /** Backend response type: SosTouchResponse. */
834
- export interface SosCreateTouchPostResponseData extends JsonObject {
835
- "id": string;
836
- "sos_id": string;
837
- "profile_id": string;
838
- "description"?: string | null;
839
- "created_at": string;
840
- "updated_at": string;
841
- }
842
- export interface SosCreateTouchPostResponse extends ApiEnvelope<SosCreateTouchPostResponseData> {
843
- }
844
- /** Backend response type: bool. */
845
- export interface SosDestroyTouchDeleteResponse extends ApiEnvelope<boolean> {
846
- }
847
- /** Backend response type: SosTouchResponse. */
848
- export interface SosShowTouchGetResponseData extends JsonObject {
849
- "id": string;
850
- "sos_id": string;
851
- "profile_id": string;
852
- "description"?: string | null;
853
- "created_at": string;
854
- "updated_at": string;
855
- }
856
- export interface SosShowTouchGetResponse extends ApiEnvelope<SosShowTouchGetResponseData> {
857
- }
858
- /** Backend request type: UpdateSosTouchRequest. */
859
- export interface SosUpdateTouchPutInput extends JsonObject {
860
- "description"?: string | null;
861
- }
862
- /** Backend response type: SosTouchResponse. */
863
- export interface SosUpdateTouchPutResponseData extends JsonObject {
864
- "id": string;
865
- "sos_id": string;
866
- "profile_id": string;
867
- "description"?: string | null;
868
- "created_at": string;
869
- "updated_at": string;
870
- }
871
- export interface SosUpdateTouchPutResponse extends ApiEnvelope<SosUpdateTouchPutResponseData> {
872
- }
873
- /** Backend query type: SortQuery. */
874
- export interface SosAllGetQuery extends QueryParams {
875
- "sort"?: string | null;
876
- }
877
- /** Backend response type: SosListResponse. */
878
- export interface SosAllGetResponseData extends JsonObject {
879
- "sos": BackendJson<"SosResponse">[];
4
+ export type RouterStatusRouteGetResponse = import("./types.js").CrmApiResponse<JsonValue>;
5
+ /** Backend query type: ListQuery. */
6
+ export interface ApiActivitiesGetQuery extends QueryParams {
7
+ "cursor"?: string | null;
8
+ "limit"?: number | null;
9
+ "q"?: string | null;
10
+ "pipeline_id"?: string | null;
11
+ "stage_id"?: string | null;
12
+ "team_id"?: string | null;
13
+ "owner_user_id"?: string | null;
14
+ "status"?: string | null;
880
15
  }
881
- export interface SosAllGetResponse extends ApiEnvelope<SosAllGetResponseData> {
16
+ /** Backend response type: ListData<Activity>. */
17
+ export type ApiActivitiesGetResponse = import("./types.js").CrmActivityListResponse;
18
+ /** Backend request type: CreateActivity. */
19
+ export interface ApiCreateActivityPostInput extends JsonObject {
20
+ "lead_id"?: string | null;
21
+ "deal_id"?: string | null;
22
+ "contact_id"?: string | null;
23
+ "company_id"?: string | null;
24
+ "activity_type": string;
25
+ "direction"?: string | null;
26
+ "subject"?: string | null;
27
+ "body"?: string | null;
28
+ "outcome"?: string | null;
29
+ "occurred_at"?: string | null;
30
+ "duration_seconds"?: number | null;
31
+ "metadata"?: BackendJson<"JsonValue">;
32
+ }
33
+ /** Backend response type: Activity. */
34
+ export interface ApiCreateActivityPostResponseData extends JsonObject {
35
+ "id": string;
36
+ "lead_id"?: string | null;
37
+ "deal_id"?: string | null;
38
+ "contact_id"?: string | null;
39
+ "company_id"?: string | null;
40
+ "owner_user_id": string;
41
+ "activity_type": string;
42
+ "direction"?: string | null;
43
+ "subject"?: string | null;
44
+ "body"?: string | null;
45
+ "outcome"?: string | null;
46
+ "occurred_at": string;
47
+ "duration_seconds"?: number | null;
48
+ "metadata": BackendJson<"JsonValue">;
49
+ "created_at": string;
50
+ }
51
+ export type ApiCreateActivityPostResponse = import("./types.js").CrmApiResponse<ApiCreateActivityPostResponseData>;
52
+ /** Backend query type: ListQuery. */
53
+ export interface ApiAutomationJobsGetQuery extends QueryParams {
54
+ "cursor"?: string | null;
55
+ "limit"?: number | null;
56
+ "q"?: string | null;
57
+ "pipeline_id"?: string | null;
58
+ "stage_id"?: string | null;
59
+ "team_id"?: string | null;
60
+ "owner_user_id"?: string | null;
61
+ "status"?: string | null;
882
62
  }
883
- /** Backend response type: SosResponse. */
884
- export interface SosExitAssigneeRoutePostResponseData extends JsonObject {
63
+ /** Backend response type: ListData<DurableJob>. */
64
+ export type ApiAutomationJobsGetResponse = import("./types.js").CrmAutomationJobListResponse;
65
+ /** Backend response type: Vec<WebhookSubscription>. */
66
+ export interface ApiAutomationWebhooksGetResponseItem extends JsonObject {
885
67
  "id": string;
886
- "profile_id": string;
887
- "assignee_ids": string[];
68
+ "name": string;
69
+ "endpoint_url": string;
70
+ "event_types": string[];
71
+ "is_active": boolean;
72
+ "created_by": string;
888
73
  "created_at": string;
889
74
  "updated_at": string;
75
+ "delivery_count": number;
76
+ "failed_delivery_count": number;
890
77
  }
891
- export interface SosExitAssigneeRoutePostResponse extends ApiEnvelope<SosExitAssigneeRoutePostResponseData> {
892
- }
893
- /** Backend response type: DailyStatsResponse. */
894
- export interface StatsDailyGetResponseData extends JsonObject {
895
- "workflows": BackendJson<"DailyWorkflowStats">[];
896
- "total_tasks": number;
897
- "total_done_tasks": number;
898
- "extra_tasks_done": number;
899
- "all_tasks_done": boolean;
900
- }
901
- export interface StatsDailyGetResponse extends ApiEnvelope<StatsDailyGetResponseData> {
902
- }
903
- /** Backend response type: LeadStatsResponse. */
904
- export interface StatsLeadGetResponseData extends JsonObject {
905
- "total": number;
906
- "workflows": BackendJson<"WorkflowLeadStats">[];
907
- "permissions": string[];
908
- }
909
- export interface StatsLeadGetResponse extends ApiEnvelope<StatsLeadGetResponseData> {
910
- }
911
- /** Backend query type: SortQuery. */
912
- export interface TeamIndexGetQuery extends QueryParams {
913
- "sort"?: string | null;
914
- }
915
- /** Backend response type: Vec<TeamResponse>. */
916
- export interface TeamIndexGetResponseItem extends JsonObject {
78
+ export type ApiAutomationWebhooksGetResponse = import("./types.js").CrmApiResponse<ApiAutomationWebhooksGetResponseItem[]>;
79
+ /** Backend response type: serde_json::Value. */
80
+ export type ApiBoardGetResponse = import("./types.js").CrmBoardResponse;
81
+ /** Backend response type: Vec<Campaign>. */
82
+ export interface ApiCampaignsGetResponseItem extends JsonObject {
917
83
  "id": string;
84
+ "source_id"?: string | null;
918
85
  "name": string;
86
+ "slug": string;
87
+ "status": string;
88
+ "starts_at"?: string | null;
89
+ "ends_at"?: string | null;
90
+ "budget"?: number | null;
91
+ "actual_cost"?: number | null;
92
+ "currency": string;
93
+ "metadata": BackendJson<"JsonValue">;
94
+ "version": number;
919
95
  "created_at": string;
920
96
  "updated_at": string;
921
97
  }
922
- export interface TeamIndexGetResponse extends ApiEnvelope<TeamIndexGetResponseItem[]> {
923
- }
924
- /** Backend request type: CreateTeamRequest. */
925
- export interface TeamCreatePostInput extends JsonObject {
98
+ export type ApiCampaignsGetResponse = import("./types.js").CrmApiResponse<ApiCampaignsGetResponseItem[]>;
99
+ /** Backend request type: CreateCampaign. */
100
+ export interface ApiCreateCampaignPostInput extends JsonObject {
101
+ "source_id"?: string | null;
926
102
  "name": string;
103
+ "slug": string;
104
+ "status"?: string | null;
105
+ "starts_at"?: string | null;
106
+ "ends_at"?: string | null;
107
+ "budget"?: number | null;
108
+ "actual_cost"?: number | null;
109
+ "currency"?: string | null;
110
+ "metadata"?: BackendJson<"JsonValue">;
927
111
  }
928
- /** Backend response type: TeamResponse. */
929
- export interface TeamCreatePostResponseData extends JsonObject {
112
+ /** Backend response type: Campaign. */
113
+ export interface ApiCreateCampaignPostResponseData extends JsonObject {
930
114
  "id": string;
115
+ "source_id"?: string | null;
931
116
  "name": string;
932
- "created_at": string;
933
- "updated_at": string;
934
- }
935
- export interface TeamCreatePostResponse extends ApiEnvelope<TeamCreatePostResponseData> {
936
- }
937
- /** Backend query type: SortQuery. */
938
- export interface TeamUserIndexGetQuery extends QueryParams {
939
- "sort"?: string | null;
940
- }
941
- /** Backend response type: Vec<TeamUserResponse>. */
942
- export interface TeamUserIndexGetResponseItem extends JsonObject {
943
- "id": string;
944
- "team_id": string;
945
- "profile_id": string;
946
- "created_at": string;
947
- "updated_at": string;
948
- }
949
- export interface TeamUserIndexGetResponse extends ApiEnvelope<TeamUserIndexGetResponseItem[]> {
950
- }
951
- /** Backend request type: CreateTeamUserRequest. */
952
- export interface TeamUserCreatePostInput extends JsonObject {
953
- "team_id": string;
954
- "profile_id": string;
955
- }
956
- /** Backend response type: TeamUserResponse. */
957
- export interface TeamUserCreatePostResponseData extends JsonObject {
958
- "id": string;
959
- "team_id": string;
960
- "profile_id": string;
961
- "created_at": string;
962
- "updated_at": string;
963
- }
964
- export interface TeamUserCreatePostResponse extends ApiEnvelope<TeamUserCreatePostResponseData> {
965
- }
966
- /** Backend response type: bool. */
967
- export interface TeamUserDestroyDeleteResponse extends ApiEnvelope<boolean> {
968
- }
969
- /** Backend response type: TeamUserResponse. */
970
- export interface TeamUserShowGetResponseData extends JsonObject {
971
- "id": string;
972
- "team_id": string;
973
- "profile_id": string;
974
- "created_at": string;
975
- "updated_at": string;
976
- }
977
- export interface TeamUserShowGetResponse extends ApiEnvelope<TeamUserShowGetResponseData> {
978
- }
979
- /** Backend request type: UpdateTeamUserRequest. */
980
- export interface TeamUserUpdatePutInput extends JsonObject {
117
+ "slug": string;
118
+ "status": string;
119
+ "starts_at"?: string | null;
120
+ "ends_at"?: string | null;
121
+ "budget"?: number | null;
122
+ "actual_cost"?: number | null;
123
+ "currency": string;
124
+ "metadata": BackendJson<"JsonValue">;
125
+ "version": number;
126
+ "created_at": string;
127
+ "updated_at": string;
128
+ }
129
+ export type ApiCreateCampaignPostResponse = import("./types.js").CrmApiResponse<ApiCreateCampaignPostResponseData>;
130
+ /** Backend query type: ListQuery. */
131
+ export interface ApiCompaniesGetQuery extends QueryParams {
132
+ "cursor"?: string | null;
133
+ "limit"?: number | null;
134
+ "q"?: string | null;
135
+ "pipeline_id"?: string | null;
136
+ "stage_id"?: string | null;
981
137
  "team_id"?: string | null;
982
- "profile_id"?: string | null;
983
- }
984
- /** Backend response type: TeamUserResponse. */
985
- export interface TeamUserUpdatePutResponseData extends JsonObject {
986
- "id": string;
987
- "team_id": string;
988
- "profile_id": string;
989
- "created_at": string;
990
- "updated_at": string;
991
- }
992
- export interface TeamUserUpdatePutResponse extends ApiEnvelope<TeamUserUpdatePutResponseData> {
993
- }
994
- /** Backend request type: MultiProfilesRequest. */
995
- export interface TeamUserMultiProfilesPostInput extends JsonObject {
996
- "team_id": string;
997
- "profile_id": string[];
998
- }
999
- /** Backend response type: Vec<TeamUserResponse>. */
1000
- export interface TeamUserMultiProfilesPostResponseItem extends JsonObject {
1001
- "id": string;
1002
- "team_id": string;
1003
- "profile_id": string;
1004
- "created_at": string;
1005
- "updated_at": string;
1006
- }
1007
- export interface TeamUserMultiProfilesPostResponse extends ApiEnvelope<TeamUserMultiProfilesPostResponseItem[]> {
1008
- }
1009
- /** Backend response type: bool. */
1010
- export interface TeamDestroyDeleteResponse extends ApiEnvelope<boolean> {
1011
- }
1012
- /** Backend response type: TeamResponse. */
1013
- export interface TeamShowGetResponseData extends JsonObject {
1014
- "id": string;
1015
- "name": string;
1016
- "created_at": string;
1017
- "updated_at": string;
1018
- }
1019
- export interface TeamShowGetResponse extends ApiEnvelope<TeamShowGetResponseData> {
1020
- }
1021
- /** Backend request type: UpdateTeamRequest. */
1022
- export interface TeamUpdatePutInput extends JsonObject {
1023
- "name"?: string | null;
138
+ "owner_user_id"?: string | null;
139
+ "status"?: string | null;
1024
140
  }
1025
- /** Backend response type: TeamResponse. */
1026
- export interface TeamUpdatePutResponseData extends JsonObject {
1027
- "id": string;
141
+ /** Backend response type: ListData<Company>. */
142
+ export type ApiCompaniesGetResponse = import("./types.js").CrmCompanyListResponse;
143
+ /** Backend request type: CreateCompany. */
144
+ export interface ApiCreateCompanyPostInput extends JsonObject {
1028
145
  "name": string;
1029
- "created_at": string;
1030
- "updated_at": string;
1031
- }
1032
- export interface TeamUpdatePutResponse extends ApiEnvelope<TeamUpdatePutResponseData> {
1033
- }
1034
- /** Backend response type: Vec<WebhookResponse>. */
1035
- export interface WebhookIndexGetResponseItem extends JsonObject {
1036
- "id": string;
1037
- "domain": string;
1038
- "events": JsonValue;
1039
- "workflow_id": string;
1040
- "created_at": string;
1041
- "updated_at": string;
1042
- }
1043
- export interface WebhookIndexGetResponse extends ApiEnvelope<WebhookIndexGetResponseItem[]> {
1044
- }
1045
- /** Backend request type: CreateWebhookRequest. */
1046
- export interface WebhookCreatePostInput extends JsonObject {
1047
- "domain": string;
1048
- "events": JsonValue;
1049
- "workflow_id": string;
1050
- }
1051
- /** Backend response type: WebhookResponse. */
1052
- export interface WebhookCreatePostResponseData extends JsonObject {
1053
- "id": string;
1054
- "domain": string;
1055
- "events": JsonValue;
1056
- "workflow_id": string;
1057
- "created_at": string;
1058
- "updated_at": string;
1059
- }
1060
- export interface WebhookCreatePostResponse extends ApiEnvelope<WebhookCreatePostResponseData> {
1061
- }
1062
- /** Backend response type: bool. */
1063
- export interface WebhookDestroyDeleteResponse extends ApiEnvelope<boolean> {
1064
- }
1065
- /** Backend response type: WebhookResponse. */
1066
- export interface WebhookShowGetResponseData extends JsonObject {
1067
- "id": string;
1068
- "domain": string;
1069
- "events": JsonValue;
1070
- "workflow_id": string;
1071
- "created_at": string;
1072
- "updated_at": string;
1073
- }
1074
- export interface WebhookShowGetResponse extends ApiEnvelope<WebhookShowGetResponseData> {
1075
- }
1076
- /** Backend request type: UpdateWebhookRequest. */
1077
- export interface WebhookUpdatePutInput extends JsonObject {
146
+ "legal_name"?: string | null;
1078
147
  "domain"?: string | null;
1079
- "events"?: JsonValue | null;
1080
- "workflow_id"?: string | null;
1081
- }
1082
- /** Backend response type: WebhookResponse. */
1083
- export interface WebhookUpdatePutResponseData extends JsonObject {
1084
- "id": string;
1085
- "domain": string;
1086
- "events": JsonValue;
1087
- "workflow_id": string;
1088
- "created_at": string;
1089
- "updated_at": string;
1090
- }
1091
- export interface WebhookUpdatePutResponse extends ApiEnvelope<WebhookUpdatePutResponseData> {
1092
- }
1093
- /** Backend query type: SortQuery. */
1094
- export interface WorkflowIndexGetQuery extends QueryParams {
1095
- "sort"?: string | null;
148
+ "industry"?: string | null;
149
+ "employee_count"?: number | null;
150
+ "annual_revenue"?: number | null;
151
+ "phone"?: string | null;
152
+ "email"?: string | null;
153
+ "website"?: string | null;
154
+ "owner_user_id"?: string | null;
155
+ "team_id"?: string | null;
156
+ "address"?: BackendJson<"JsonValue">;
157
+ "custom_data"?: BackendJson<"JsonValue">;
1096
158
  }
1097
- /** Backend response type: Vec<WorkflowResponse>. */
1098
- export interface WorkflowIndexGetResponseItem extends JsonObject {
159
+ /** Backend response type: Company. */
160
+ export interface ApiCreateCompanyPostResponseData extends JsonObject {
1099
161
  "id": string;
162
+ "owner_user_id"?: string | null;
163
+ "team_id"?: string | null;
1100
164
  "name": string;
1101
- "slug": string;
1102
- "acquire_flags": string[];
1103
- "priority": number;
1104
- "can_create_lead": boolean;
1105
- "actions"?: JsonValue | null;
1106
- "hint"?: string | null;
165
+ "legal_name"?: string | null;
166
+ "domain"?: string | null;
167
+ "industry"?: string | null;
168
+ "employee_count"?: number | null;
169
+ "annual_revenue"?: number | null;
170
+ "phone"?: string | null;
171
+ "email"?: string | null;
172
+ "website"?: string | null;
173
+ "address": BackendJson<"JsonValue">;
174
+ "custom_data": BackendJson<"JsonValue">;
175
+ "version": number;
176
+ "created_by": string;
1107
177
  "created_at": string;
1108
178
  "updated_at": string;
1109
179
  }
1110
- export interface WorkflowIndexGetResponse extends ApiEnvelope<WorkflowIndexGetResponseItem[]> {
1111
- }
1112
- /** Backend request type: CreateWorkflowRequest. */
1113
- export interface WorkflowCreatePostInput extends JsonObject {
1114
- "name": string;
1115
- "slug": string;
1116
- "acquire_flags": string[];
1117
- "priority": number;
1118
- "can_create_lead"?: boolean;
1119
- "actions"?: JsonValue | null;
1120
- "hint"?: string | null;
1121
- }
1122
- /** Backend response type: WorkflowResponse. */
1123
- export interface WorkflowCreatePostResponseData extends JsonObject {
180
+ export type ApiCreateCompanyPostResponse = import("./types.js").CrmApiResponse<ApiCreateCompanyPostResponseData>;
181
+ /** Backend response type: Company. */
182
+ export interface ApiCompanyGetResponseData extends JsonObject {
1124
183
  "id": string;
184
+ "owner_user_id"?: string | null;
185
+ "team_id"?: string | null;
1125
186
  "name": string;
1126
- "slug": string;
1127
- "acquire_flags": string[];
1128
- "priority": number;
1129
- "can_create_lead": boolean;
1130
- "actions"?: JsonValue | null;
1131
- "hint"?: string | null;
1132
- "created_at": string;
1133
- "updated_at": string;
1134
- }
1135
- export interface WorkflowCreatePostResponse extends ApiEnvelope<WorkflowCreatePostResponseData> {
187
+ "legal_name"?: string | null;
188
+ "domain"?: string | null;
189
+ "industry"?: string | null;
190
+ "employee_count"?: number | null;
191
+ "annual_revenue"?: number | null;
192
+ "phone"?: string | null;
193
+ "email"?: string | null;
194
+ "website"?: string | null;
195
+ "address": BackendJson<"JsonValue">;
196
+ "custom_data": BackendJson<"JsonValue">;
197
+ "version": number;
198
+ "created_by": string;
199
+ "created_at": string;
200
+ "updated_at": string;
201
+ }
202
+ export type ApiCompanyGetResponse = import("./types.js").CrmApiResponse<ApiCompanyGetResponseData>;
203
+ /** Backend request type: UpdateCompany. */
204
+ export interface ApiUpdateCompanyPatchInput extends JsonObject {
205
+ "version": number;
206
+ "name"?: string | null;
207
+ "legal_name"?: string | null;
208
+ "domain"?: string | null;
209
+ "industry"?: string | null;
210
+ "employee_count"?: number | null;
211
+ "annual_revenue"?: number | null;
212
+ "phone"?: string | null;
213
+ "email"?: string | null;
214
+ "website"?: string | null;
1136
215
  }
1137
- /** Backend response type: Vec<WorkflowMemberResponse>. */
1138
- export interface WorkflowMemberIndexGetResponseItem extends JsonObject {
216
+ /** Backend response type: Company. */
217
+ export interface ApiUpdateCompanyPatchResponseData extends JsonObject {
1139
218
  "id": string;
1140
- "workflow_id": string;
219
+ "owner_user_id"?: string | null;
1141
220
  "team_id"?: string | null;
1142
- "profile_id"?: string | null;
1143
- "created_at": string;
1144
- "updated_at": string;
1145
- }
1146
- export interface WorkflowMemberIndexGetResponse extends ApiEnvelope<WorkflowMemberIndexGetResponseItem[]> {
1147
- }
1148
- /** Backend response type: bool. */
1149
- export interface WorkflowMemberDestroyDeleteResponse extends ApiEnvelope<boolean> {
1150
- }
1151
- /** Backend response type: WorkflowMemberResponse. */
1152
- export interface WorkflowMemberShowGetResponseData extends JsonObject {
1153
- "id": string;
1154
- "workflow_id": string;
221
+ "name": string;
222
+ "legal_name"?: string | null;
223
+ "domain"?: string | null;
224
+ "industry"?: string | null;
225
+ "employee_count"?: number | null;
226
+ "annual_revenue"?: number | null;
227
+ "phone"?: string | null;
228
+ "email"?: string | null;
229
+ "website"?: string | null;
230
+ "address": BackendJson<"JsonValue">;
231
+ "custom_data": BackendJson<"JsonValue">;
232
+ "version": number;
233
+ "created_by": string;
234
+ "created_at": string;
235
+ "updated_at": string;
236
+ }
237
+ export type ApiUpdateCompanyPatchResponse = import("./types.js").CrmApiResponse<ApiUpdateCompanyPatchResponseData>;
238
+ /** Backend query type: ListQuery. */
239
+ export interface ApiContactsGetQuery extends QueryParams {
240
+ "cursor"?: string | null;
241
+ "limit"?: number | null;
242
+ "q"?: string | null;
243
+ "pipeline_id"?: string | null;
244
+ "stage_id"?: string | null;
1155
245
  "team_id"?: string | null;
1156
- "profile_id"?: string | null;
1157
- "created_at": string;
1158
- "updated_at": string;
1159
- }
1160
- export interface WorkflowMemberShowGetResponse extends ApiEnvelope<WorkflowMemberShowGetResponseData> {
246
+ "owner_user_id"?: string | null;
247
+ "status"?: string | null;
1161
248
  }
1162
- /** Backend request type: CreateWorkflowMemberRequest. */
1163
- export interface WorkflowMemberCreatePostInput extends JsonObject {
249
+ /** Backend response type: ListData<Contact>. */
250
+ export type ApiContactsGetResponse = import("./types.js").CrmContactListResponse;
251
+ /** Backend request type: CreateContact. */
252
+ export interface ApiCreateContactPostInput extends JsonObject {
253
+ "company_id"?: string | null;
254
+ "first_name": string;
255
+ "last_name"?: string | null;
256
+ "job_title"?: string | null;
257
+ "email"?: string | null;
258
+ "phone"?: string | null;
259
+ "preferred_channel"?: string | null;
260
+ "owner_user_id"?: string | null;
1164
261
  "team_id"?: string | null;
1165
262
  "profile_id"?: string | null;
263
+ "consent"?: BackendJson<"JsonValue">;
264
+ "custom_data"?: BackendJson<"JsonValue">;
1166
265
  }
1167
- /** Backend response type: WorkflowMemberResponse. */
1168
- export interface WorkflowMemberCreatePostResponseData extends JsonObject {
266
+ /** Backend response type: Contact. */
267
+ export interface ApiCreateContactPostResponseData extends JsonObject {
1169
268
  "id": string;
1170
- "workflow_id": string;
269
+ "company_id"?: string | null;
270
+ "owner_user_id"?: string | null;
1171
271
  "team_id"?: string | null;
1172
272
  "profile_id"?: string | null;
1173
- "created_at": string;
1174
- "updated_at": string;
1175
- }
1176
- export interface WorkflowMemberCreatePostResponse extends ApiEnvelope<WorkflowMemberCreatePostResponseData> {
1177
- }
1178
- /** Backend request type: UpdateWorkflowMemberRequest. */
1179
- export interface WorkflowMemberUpdatePutInput extends JsonObject {
273
+ "first_name": string;
274
+ "last_name"?: string | null;
275
+ "job_title"?: string | null;
276
+ "email"?: string | null;
277
+ "phone"?: string | null;
278
+ "preferred_channel"?: string | null;
279
+ "lifecycle_status": string;
280
+ "consent": BackendJson<"JsonValue">;
281
+ "custom_data": BackendJson<"JsonValue">;
282
+ "version": number;
283
+ "created_by": string;
284
+ "created_at": string;
285
+ "updated_at": string;
286
+ }
287
+ export type ApiCreateContactPostResponse = import("./types.js").CrmApiResponse<ApiCreateContactPostResponseData>;
288
+ /** Backend response type: Contact. */
289
+ export interface ApiContactGetResponseData extends JsonObject {
290
+ "id": string;
291
+ "company_id"?: string | null;
292
+ "owner_user_id"?: string | null;
1180
293
  "team_id"?: string | null;
1181
294
  "profile_id"?: string | null;
1182
- }
1183
- /** Backend response type: WorkflowMemberResponse. */
1184
- export interface WorkflowMemberUpdatePutResponseData extends JsonObject {
1185
- "id": string;
1186
- "workflow_id": string;
295
+ "first_name": string;
296
+ "last_name"?: string | null;
297
+ "job_title"?: string | null;
298
+ "email"?: string | null;
299
+ "phone"?: string | null;
300
+ "preferred_channel"?: string | null;
301
+ "lifecycle_status": string;
302
+ "consent": BackendJson<"JsonValue">;
303
+ "custom_data": BackendJson<"JsonValue">;
304
+ "version": number;
305
+ "created_by": string;
306
+ "created_at": string;
307
+ "updated_at": string;
308
+ }
309
+ export type ApiContactGetResponse = import("./types.js").CrmApiResponse<ApiContactGetResponseData>;
310
+ /** Backend request type: UpdateContact. */
311
+ export interface ApiUpdateContactPatchInput extends JsonObject {
312
+ "version": number;
313
+ "first_name"?: string | null;
314
+ "last_name"?: string | null;
315
+ "job_title"?: string | null;
316
+ "email"?: string | null;
317
+ "phone"?: string | null;
318
+ "preferred_channel"?: string | null;
319
+ "lifecycle_status"?: string | null;
320
+ }
321
+ /** Backend response type: Contact. */
322
+ export interface ApiUpdateContactPatchResponseData extends JsonObject {
323
+ "id": string;
324
+ "company_id"?: string | null;
325
+ "owner_user_id"?: string | null;
1187
326
  "team_id"?: string | null;
1188
327
  "profile_id"?: string | null;
328
+ "first_name": string;
329
+ "last_name"?: string | null;
330
+ "job_title"?: string | null;
331
+ "email"?: string | null;
332
+ "phone"?: string | null;
333
+ "preferred_channel"?: string | null;
334
+ "lifecycle_status": string;
335
+ "consent": BackendJson<"JsonValue">;
336
+ "custom_data": BackendJson<"JsonValue">;
337
+ "version": number;
338
+ "created_by": string;
1189
339
  "created_at": string;
1190
340
  "updated_at": string;
1191
341
  }
1192
- export interface WorkflowMemberUpdatePutResponse extends ApiEnvelope<WorkflowMemberUpdatePutResponseData> {
1193
- }
1194
- /** Backend response type: Vec<WorkflowMemberResponse>. */
1195
- export interface WorkflowMemberByWorkflowGetResponseItem extends JsonObject {
342
+ export type ApiUpdateContactPatchResponse = import("./types.js").CrmApiResponse<ApiUpdateContactPatchResponseData>;
343
+ /** Backend response type: Workspace. */
344
+ export interface ApiContextGetResponseData extends JsonObject {
1196
345
  "id": string;
1197
- "workflow_id": string;
346
+ "name": string;
347
+ "locale": string;
348
+ "timezone": string;
349
+ "currency": string;
350
+ "ai_mode": string;
351
+ "project_id"?: string | null;
352
+ "project_owner_user_id"?: string | null;
353
+ "agentic_enabled": boolean;
354
+ "settings": BackendJson<"JsonValue">;
355
+ "version": number;
356
+ }
357
+ export type ApiContextGetResponse = import("./types.js").CrmApiResponse<ApiContextGetResponseData>;
358
+ /** Backend query type: ListQuery. */
359
+ export interface ApiDealsGetQuery extends QueryParams {
360
+ "cursor"?: string | null;
361
+ "limit"?: number | null;
362
+ "q"?: string | null;
363
+ "pipeline_id"?: string | null;
364
+ "stage_id"?: string | null;
1198
365
  "team_id"?: string | null;
1199
- "profile_id"?: string | null;
1200
- "created_at": string;
1201
- "updated_at": string;
1202
- }
1203
- export interface WorkflowMemberByWorkflowGetResponse extends ApiEnvelope<WorkflowMemberByWorkflowGetResponseItem[]> {
1204
- }
1205
- /** Backend query type: SortQuery. */
1206
- export interface WorkflowNodeIndexGetQuery extends QueryParams {
1207
- "sort"?: string | null;
366
+ "owner_user_id"?: string | null;
367
+ "status"?: string | null;
1208
368
  }
1209
- /** Backend response type: Vec<WorkflowNodeResponse>. */
1210
- export interface WorkflowNodeIndexGetResponseItem extends JsonObject {
1211
- "id": string;
369
+ /** Backend response type: ListData<Deal>. */
370
+ export type ApiDealsGetResponse = import("./types.js").CrmDealListResponse;
371
+ /** Backend request type: CreateDeal. */
372
+ export interface ApiCreateDealPostInput extends JsonObject {
373
+ "pipeline_id"?: string | null;
374
+ "stage_id"?: string | null;
375
+ "lead_id"?: string | null;
376
+ "company_id"?: string | null;
377
+ "primary_contact_id"?: string | null;
378
+ "owner_user_id"?: string | null;
379
+ "team_id"?: string | null;
1212
380
  "name": string;
1213
- "slug": string;
1214
- "priority": number;
1215
- "workflow_id": string;
1216
- "is_draggable_in": boolean;
1217
- "is_draggable_out": boolean;
1218
- "actions"?: JsonValue | null;
1219
- "auto_win": boolean;
1220
- "created_at": string;
1221
- "updated_at": string;
1222
- }
1223
- export interface WorkflowNodeIndexGetResponse extends ApiEnvelope<WorkflowNodeIndexGetResponseItem[]> {
1224
- }
1225
- /** Backend response type: bool. */
1226
- export interface WorkflowNodeDestroyDeleteResponse extends ApiEnvelope<boolean> {
1227
- }
1228
- /** Backend response type: WorkflowNodeResponse. */
1229
- export interface WorkflowNodeShowGetResponseData extends JsonObject {
1230
- "id": string;
381
+ "amount": number;
382
+ "currency"?: string | null;
383
+ "probability"?: number | null;
384
+ "expected_close_date"?: string | null;
385
+ "recurring_amount"?: number | null;
386
+ "recurring_interval"?: string | null;
387
+ "custom_data"?: BackendJson<"JsonValue">;
388
+ }
389
+ /** Backend response type: Deal. */
390
+ export interface ApiCreateDealPostResponseData extends JsonObject {
391
+ "id": string;
392
+ "pipeline_id": string;
393
+ "stage_id": string;
394
+ "lead_id"?: string | null;
395
+ "company_id"?: string | null;
396
+ "primary_contact_id"?: string | null;
397
+ "owner_user_id"?: string | null;
398
+ "team_id"?: string | null;
1231
399
  "name": string;
1232
- "slug": string;
1233
- "priority": number;
1234
- "workflow_id": string;
1235
- "is_draggable_in": boolean;
1236
- "is_draggable_out": boolean;
1237
- "actions"?: JsonValue | null;
1238
- "auto_win": boolean;
400
+ "amount": number;
401
+ "currency": string;
402
+ "probability": number;
403
+ "expected_close_date"?: string | null;
404
+ "closed_at"?: string | null;
405
+ "status": string;
406
+ "loss_reason"?: string | null;
407
+ "recurring_amount"?: number | null;
408
+ "recurring_interval"?: string | null;
409
+ "custom_data": BackendJson<"JsonValue">;
410
+ "version": number;
411
+ "created_by": string;
1239
412
  "created_at": string;
1240
413
  "updated_at": string;
1241
414
  }
1242
- export interface WorkflowNodeShowGetResponse extends ApiEnvelope<WorkflowNodeShowGetResponseData> {
1243
- }
1244
- /** Backend request type: CreateWorkflowNodeRequest. */
1245
- export interface WorkflowNodeCreatePostInput extends JsonObject {
1246
- "name": string;
1247
- "slug": string;
1248
- "priority": number;
1249
- "is_draggable_in"?: boolean;
1250
- "is_draggable_out"?: boolean;
1251
- "actions"?: JsonValue | null;
1252
- "auto_win"?: boolean;
1253
- }
1254
- /** Backend response type: WorkflowNodeResponse. */
1255
- export interface WorkflowNodeCreatePostResponseData extends JsonObject {
415
+ export type ApiCreateDealPostResponse = import("./types.js").CrmApiResponse<ApiCreateDealPostResponseData>;
416
+ /** Backend response type: Deal. */
417
+ export interface ApiDealGetResponseData extends JsonObject {
1256
418
  "id": string;
419
+ "pipeline_id": string;
420
+ "stage_id": string;
421
+ "lead_id"?: string | null;
422
+ "company_id"?: string | null;
423
+ "primary_contact_id"?: string | null;
424
+ "owner_user_id"?: string | null;
425
+ "team_id"?: string | null;
1257
426
  "name": string;
1258
- "slug": string;
1259
- "priority": number;
1260
- "workflow_id": string;
1261
- "is_draggable_in": boolean;
1262
- "is_draggable_out": boolean;
1263
- "actions"?: JsonValue | null;
1264
- "auto_win": boolean;
427
+ "amount": number;
428
+ "currency": string;
429
+ "probability": number;
430
+ "expected_close_date"?: string | null;
431
+ "closed_at"?: string | null;
432
+ "status": string;
433
+ "loss_reason"?: string | null;
434
+ "recurring_amount"?: number | null;
435
+ "recurring_interval"?: string | null;
436
+ "custom_data": BackendJson<"JsonValue">;
437
+ "version": number;
438
+ "created_by": string;
1265
439
  "created_at": string;
1266
440
  "updated_at": string;
1267
441
  }
1268
- export interface WorkflowNodeCreatePostResponse extends ApiEnvelope<WorkflowNodeCreatePostResponseData> {
1269
- }
1270
- /** Backend request type: UpdateWorkflowNodeRequest. */
1271
- export interface WorkflowNodeUpdatePutInput extends JsonObject {
442
+ export type ApiDealGetResponse = import("./types.js").CrmApiResponse<ApiDealGetResponseData>;
443
+ /** Backend request type: UpdateDeal. */
444
+ export interface ApiUpdateDealPatchInput extends JsonObject {
445
+ "version": number;
1272
446
  "name"?: string | null;
1273
- "slug"?: string | null;
1274
- "priority"?: number | null;
1275
- "is_draggable_in"?: boolean | null;
1276
- "is_draggable_out"?: boolean | null;
1277
- "actions"?: JsonValue | null;
1278
- "auto_win"?: boolean | null;
1279
- }
1280
- /** Backend response type: WorkflowNodeResponse. */
1281
- export interface WorkflowNodeUpdatePutResponseData extends JsonObject {
1282
- "id": string;
447
+ "amount"?: number | null;
448
+ "currency"?: string | null;
449
+ "probability"?: number | null;
450
+ "expected_close_date"?: string | null;
451
+ "recurring_amount"?: number | null;
452
+ "recurring_interval"?: string | null;
453
+ }
454
+ /** Backend response type: Deal. */
455
+ export interface ApiUpdateDealPatchResponseData extends JsonObject {
456
+ "id": string;
457
+ "pipeline_id": string;
458
+ "stage_id": string;
459
+ "lead_id"?: string | null;
460
+ "company_id"?: string | null;
461
+ "primary_contact_id"?: string | null;
462
+ "owner_user_id"?: string | null;
463
+ "team_id"?: string | null;
1283
464
  "name": string;
1284
- "slug": string;
1285
- "priority": number;
1286
- "workflow_id": string;
1287
- "is_draggable_in": boolean;
1288
- "is_draggable_out": boolean;
1289
- "actions"?: JsonValue | null;
1290
- "auto_win": boolean;
465
+ "amount": number;
466
+ "currency": string;
467
+ "probability": number;
468
+ "expected_close_date"?: string | null;
469
+ "closed_at"?: string | null;
470
+ "status": string;
471
+ "loss_reason"?: string | null;
472
+ "recurring_amount"?: number | null;
473
+ "recurring_interval"?: string | null;
474
+ "custom_data": BackendJson<"JsonValue">;
475
+ "version": number;
476
+ "created_by": string;
1291
477
  "created_at": string;
1292
478
  "updated_at": string;
1293
479
  }
1294
- export interface WorkflowNodeUpdatePutResponse extends ApiEnvelope<WorkflowNodeUpdatePutResponseData> {
480
+ export type ApiUpdateDealPatchResponse = import("./types.js").CrmApiResponse<ApiUpdateDealPatchResponseData>;
481
+ /** Backend request type: AssignRecord. */
482
+ export interface ApiAssignDealPatchInput extends JsonObject {
483
+ "team_id"?: string | null;
484
+ "owner_user_id"?: string | null;
485
+ "version": number;
486
+ }
487
+ /** Backend response type: Deal. */
488
+ export interface ApiAssignDealPatchResponseData extends JsonObject {
489
+ "id": string;
490
+ "pipeline_id": string;
491
+ "stage_id": string;
492
+ "lead_id"?: string | null;
493
+ "company_id"?: string | null;
494
+ "primary_contact_id"?: string | null;
495
+ "owner_user_id"?: string | null;
496
+ "team_id"?: string | null;
497
+ "name": string;
498
+ "amount": number;
499
+ "currency": string;
500
+ "probability": number;
501
+ "expected_close_date"?: string | null;
502
+ "closed_at"?: string | null;
503
+ "status": string;
504
+ "loss_reason"?: string | null;
505
+ "recurring_amount"?: number | null;
506
+ "recurring_interval"?: string | null;
507
+ "custom_data": BackendJson<"JsonValue">;
508
+ "version": number;
509
+ "created_by": string;
510
+ "created_at": string;
511
+ "updated_at": string;
512
+ }
513
+ export type ApiAssignDealPatchResponse = import("./types.js").CrmApiResponse<ApiAssignDealPatchResponseData>;
514
+ /** Backend request type: MoveStage. */
515
+ export interface ApiMoveDealStagePatchInput extends JsonObject {
516
+ "stage_id": string;
517
+ "version": number;
518
+ "loss_reason"?: string | null;
519
+ }
520
+ /** Backend response type: Deal. */
521
+ export interface ApiMoveDealStagePatchResponseData extends JsonObject {
522
+ "id": string;
523
+ "pipeline_id": string;
524
+ "stage_id": string;
525
+ "lead_id"?: string | null;
526
+ "company_id"?: string | null;
527
+ "primary_contact_id"?: string | null;
528
+ "owner_user_id"?: string | null;
529
+ "team_id"?: string | null;
530
+ "name": string;
531
+ "amount": number;
532
+ "currency": string;
533
+ "probability": number;
534
+ "expected_close_date"?: string | null;
535
+ "closed_at"?: string | null;
536
+ "status": string;
537
+ "loss_reason"?: string | null;
538
+ "recurring_amount"?: number | null;
539
+ "recurring_interval"?: string | null;
540
+ "custom_data": BackendJson<"JsonValue">;
541
+ "version": number;
542
+ "created_by": string;
543
+ "created_at": string;
544
+ "updated_at": string;
545
+ }
546
+ export type ApiMoveDealStagePatchResponse = import("./types.js").CrmApiResponse<ApiMoveDealStagePatchResponseData>;
547
+ /** Backend query type: ListQuery. */
548
+ export interface ApiLeadsGetQuery extends QueryParams {
549
+ "cursor"?: string | null;
550
+ "limit"?: number | null;
551
+ "q"?: string | null;
552
+ "pipeline_id"?: string | null;
553
+ "stage_id"?: string | null;
554
+ "team_id"?: string | null;
555
+ "owner_user_id"?: string | null;
556
+ "status"?: string | null;
1295
557
  }
1296
- /** Backend response type: bool. */
1297
- export interface WorkflowDestroyDeleteResponse extends ApiEnvelope<boolean> {
558
+ /** Backend response type: ListData<Lead>. */
559
+ export type ApiLeadsGetResponse = import("./types.js").CrmLeadListResponse;
560
+ /** Backend request type: CreateLead. */
561
+ export interface ApiCreateLeadPostInput extends JsonObject {
562
+ "pipeline_id"?: string | null;
563
+ "stage_id"?: string | null;
564
+ "company_id"?: string | null;
565
+ "contact_id"?: string | null;
566
+ "source_id"?: string | null;
567
+ "campaign_id"?: string | null;
568
+ "owner_user_id"?: string | null;
569
+ "team_id"?: string | null;
570
+ "title": string;
571
+ "first_name"?: string | null;
572
+ "last_name"?: string | null;
573
+ "company_name"?: string | null;
574
+ "email"?: string | null;
575
+ "phone"?: string | null;
576
+ "segment"?: string | null;
577
+ "offer"?: string | null;
578
+ "score"?: number | null;
579
+ "estimated_value"?: number | null;
580
+ "currency"?: string | null;
581
+ "next_activity_at"?: string | null;
582
+ "custom_data"?: BackendJson<"JsonValue">;
583
+ }
584
+ /** Backend response type: Lead. */
585
+ export interface ApiCreateLeadPostResponseData extends JsonObject {
586
+ "id": string;
587
+ "pipeline_id": string;
588
+ "stage_id": string;
589
+ "company_id"?: string | null;
590
+ "contact_id"?: string | null;
591
+ "source_id"?: string | null;
592
+ "campaign_id"?: string | null;
593
+ "owner_user_id"?: string | null;
594
+ "team_id"?: string | null;
595
+ "title": string;
596
+ "first_name"?: string | null;
597
+ "last_name"?: string | null;
598
+ "company_name"?: string | null;
599
+ "email"?: string | null;
600
+ "phone"?: string | null;
601
+ "segment"?: string | null;
602
+ "offer"?: string | null;
603
+ "status": string;
604
+ "score": number;
605
+ "estimated_value"?: number | null;
606
+ "currency": string;
607
+ "next_activity_at"?: string | null;
608
+ "converted_at"?: string | null;
609
+ "converted_deal_id"?: string | null;
610
+ "loss_reason"?: string | null;
611
+ "custom_data": BackendJson<"JsonValue">;
612
+ "version": number;
613
+ "created_by": string;
614
+ "created_at": string;
615
+ "updated_at": string;
616
+ }
617
+ export type ApiCreateLeadPostResponse = import("./types.js").CrmApiResponse<ApiCreateLeadPostResponseData>;
618
+ /** Backend response type: Lead. */
619
+ export interface ApiLeadGetResponseData extends JsonObject {
620
+ "id": string;
621
+ "pipeline_id": string;
622
+ "stage_id": string;
623
+ "company_id"?: string | null;
624
+ "contact_id"?: string | null;
625
+ "source_id"?: string | null;
626
+ "campaign_id"?: string | null;
627
+ "owner_user_id"?: string | null;
628
+ "team_id"?: string | null;
629
+ "title": string;
630
+ "first_name"?: string | null;
631
+ "last_name"?: string | null;
632
+ "company_name"?: string | null;
633
+ "email"?: string | null;
634
+ "phone"?: string | null;
635
+ "segment"?: string | null;
636
+ "offer"?: string | null;
637
+ "status": string;
638
+ "score": number;
639
+ "estimated_value"?: number | null;
640
+ "currency": string;
641
+ "next_activity_at"?: string | null;
642
+ "converted_at"?: string | null;
643
+ "converted_deal_id"?: string | null;
644
+ "loss_reason"?: string | null;
645
+ "custom_data": BackendJson<"JsonValue">;
646
+ "version": number;
647
+ "created_by": string;
648
+ "created_at": string;
649
+ "updated_at": string;
650
+ }
651
+ export type ApiLeadGetResponse = import("./types.js").CrmApiResponse<ApiLeadGetResponseData>;
652
+ /** Backend request type: UpdateLead. */
653
+ export interface ApiUpdateLeadPatchInput extends JsonObject {
654
+ "version": number;
655
+ "title"?: string | null;
656
+ "first_name"?: string | null;
657
+ "last_name"?: string | null;
658
+ "company_name"?: string | null;
659
+ "email"?: string | null;
660
+ "phone"?: string | null;
661
+ "segment"?: string | null;
662
+ "offer"?: string | null;
663
+ "status"?: string | null;
664
+ "score"?: number | null;
665
+ "estimated_value"?: number | null;
666
+ "currency"?: string | null;
667
+ "next_activity_at"?: string | null;
668
+ }
669
+ /** Backend response type: Lead. */
670
+ export interface ApiUpdateLeadPatchResponseData extends JsonObject {
671
+ "id": string;
672
+ "pipeline_id": string;
673
+ "stage_id": string;
674
+ "company_id"?: string | null;
675
+ "contact_id"?: string | null;
676
+ "source_id"?: string | null;
677
+ "campaign_id"?: string | null;
678
+ "owner_user_id"?: string | null;
679
+ "team_id"?: string | null;
680
+ "title": string;
681
+ "first_name"?: string | null;
682
+ "last_name"?: string | null;
683
+ "company_name"?: string | null;
684
+ "email"?: string | null;
685
+ "phone"?: string | null;
686
+ "segment"?: string | null;
687
+ "offer"?: string | null;
688
+ "status": string;
689
+ "score": number;
690
+ "estimated_value"?: number | null;
691
+ "currency": string;
692
+ "next_activity_at"?: string | null;
693
+ "converted_at"?: string | null;
694
+ "converted_deal_id"?: string | null;
695
+ "loss_reason"?: string | null;
696
+ "custom_data": BackendJson<"JsonValue">;
697
+ "version": number;
698
+ "created_by": string;
699
+ "created_at": string;
700
+ "updated_at": string;
701
+ }
702
+ export type ApiUpdateLeadPatchResponse = import("./types.js").CrmApiResponse<ApiUpdateLeadPatchResponseData>;
703
+ /** Backend request type: AssignRecord. */
704
+ export interface ApiAssignLeadPatchInput extends JsonObject {
705
+ "team_id"?: string | null;
706
+ "owner_user_id"?: string | null;
707
+ "version": number;
1298
708
  }
1299
- /** Backend response type: WorkflowResponse. */
1300
- export interface WorkflowShowGetResponseData extends JsonObject {
709
+ /** Backend response type: Lead. */
710
+ export interface ApiAssignLeadPatchResponseData extends JsonObject {
711
+ "id": string;
712
+ "pipeline_id": string;
713
+ "stage_id": string;
714
+ "company_id"?: string | null;
715
+ "contact_id"?: string | null;
716
+ "source_id"?: string | null;
717
+ "campaign_id"?: string | null;
718
+ "owner_user_id"?: string | null;
719
+ "team_id"?: string | null;
720
+ "title": string;
721
+ "first_name"?: string | null;
722
+ "last_name"?: string | null;
723
+ "company_name"?: string | null;
724
+ "email"?: string | null;
725
+ "phone"?: string | null;
726
+ "segment"?: string | null;
727
+ "offer"?: string | null;
728
+ "status": string;
729
+ "score": number;
730
+ "estimated_value"?: number | null;
731
+ "currency": string;
732
+ "next_activity_at"?: string | null;
733
+ "converted_at"?: string | null;
734
+ "converted_deal_id"?: string | null;
735
+ "loss_reason"?: string | null;
736
+ "custom_data": BackendJson<"JsonValue">;
737
+ "version": number;
738
+ "created_by": string;
739
+ "created_at": string;
740
+ "updated_at": string;
741
+ }
742
+ export type ApiAssignLeadPatchResponse = import("./types.js").CrmApiResponse<ApiAssignLeadPatchResponseData>;
743
+ /** Backend request type: MoveStage. */
744
+ export interface ApiMoveLeadStagePatchInput extends JsonObject {
745
+ "stage_id": string;
746
+ "version": number;
747
+ "loss_reason"?: string | null;
748
+ }
749
+ /** Backend response type: Lead. */
750
+ export interface ApiMoveLeadStagePatchResponseData extends JsonObject {
751
+ "id": string;
752
+ "pipeline_id": string;
753
+ "stage_id": string;
754
+ "company_id"?: string | null;
755
+ "contact_id"?: string | null;
756
+ "source_id"?: string | null;
757
+ "campaign_id"?: string | null;
758
+ "owner_user_id"?: string | null;
759
+ "team_id"?: string | null;
760
+ "title": string;
761
+ "first_name"?: string | null;
762
+ "last_name"?: string | null;
763
+ "company_name"?: string | null;
764
+ "email"?: string | null;
765
+ "phone"?: string | null;
766
+ "segment"?: string | null;
767
+ "offer"?: string | null;
768
+ "status": string;
769
+ "score": number;
770
+ "estimated_value"?: number | null;
771
+ "currency": string;
772
+ "next_activity_at"?: string | null;
773
+ "converted_at"?: string | null;
774
+ "converted_deal_id"?: string | null;
775
+ "loss_reason"?: string | null;
776
+ "custom_data": BackendJson<"JsonValue">;
777
+ "version": number;
778
+ "created_by": string;
779
+ "created_at": string;
780
+ "updated_at": string;
781
+ }
782
+ export type ApiMoveLeadStagePatchResponse = import("./types.js").CrmApiResponse<ApiMoveLeadStagePatchResponseData>;
783
+ /** Backend response type: Vec<PipelineWithStages>. */
784
+ export type ApiPipelinesGetResponse = import("./types.js").CrmPipelinesResponse;
785
+ /** Backend response type: ReportRun. */
786
+ export interface ApiReportRunGetResponseData extends JsonObject {
787
+ "id": string;
788
+ "report_type": string;
789
+ "period_start": string;
790
+ "period_end": string;
791
+ "status": string;
792
+ "deterministic_summary"?: BackendJson<"JsonValue"> | null;
793
+ "ai_job_id"?: string | null;
794
+ "ai_interpretation"?: BackendJson<"JsonValue"> | null;
795
+ "error"?: string | null;
796
+ "requested_by": string;
797
+ "created_at": string;
798
+ "completed_at"?: string | null;
799
+ }
800
+ export type ApiReportRunGetResponse = import("./types.js").CrmApiResponse<ApiReportRunGetResponseData>;
801
+ /** Backend response type: JsonValue. */
802
+ export type ApiRequestAgenticInsightPostResponse = import("./types.js").CrmAgenticInsightResponse;
803
+ /** Backend response type: serde_json::Value. */
804
+ export type ApiReportCatalogGetResponse = import("./types.js").CrmReportCatalogResponse;
805
+ /** Backend query type: ReportQuery. */
806
+ export interface ApiOverviewGetQuery extends QueryParams {
807
+ "period_start"?: string | null;
808
+ "period_end"?: string | null;
809
+ }
810
+ /** Backend response type: super::types::Overview. */
811
+ export type ApiOverviewGetResponse = import("./types.js").CrmOverviewResponse;
812
+ /** Backend query type: ReportQuery. */
813
+ export interface ApiRefreshReportsPostQuery extends QueryParams {
814
+ "period_start"?: string | null;
815
+ "period_end"?: string | null;
816
+ }
817
+ /** Backend response type: JsonValue. */
818
+ export type ApiRefreshReportsPostResponse = import("./types.js").CrmReportRefreshResponse;
819
+ /** Backend response type: Vec<Source>. */
820
+ export interface ApiSourcesGetResponseItem extends JsonObject {
1301
821
  "id": string;
1302
822
  "name": string;
1303
823
  "slug": string;
1304
- "acquire_flags": string[];
1305
- "priority": number;
1306
- "can_create_lead": boolean;
1307
- "actions"?: JsonValue | null;
1308
- "hint"?: string | null;
824
+ "channel": string;
825
+ "is_active": boolean;
1309
826
  "created_at": string;
1310
827
  "updated_at": string;
1311
828
  }
1312
- export interface WorkflowShowGetResponse extends ApiEnvelope<WorkflowShowGetResponseData> {
1313
- }
1314
- /** Backend request type: UpdateWorkflowRequest. */
1315
- export interface WorkflowUpdatePutInput extends JsonObject {
1316
- "name"?: string | null;
1317
- "slug"?: string | null;
1318
- "acquire_flags"?: string[] | null;
1319
- "priority"?: number | null;
1320
- "can_create_lead"?: boolean | null;
1321
- "actions"?: JsonValue | null;
1322
- "hint"?: string | null;
1323
- }
1324
- /** Backend response type: WorkflowResponse. */
1325
- export interface WorkflowUpdatePutResponseData extends JsonObject {
1326
- "id": string;
829
+ export type ApiSourcesGetResponse = import("./types.js").CrmApiResponse<ApiSourcesGetResponseItem[]>;
830
+ /** Backend request type: CreateSource. */
831
+ export interface ApiCreateSourcePostInput extends JsonObject {
1327
832
  "name": string;
1328
833
  "slug": string;
1329
- "acquire_flags": string[];
1330
- "priority": number;
1331
- "can_create_lead": boolean;
1332
- "actions"?: JsonValue | null;
1333
- "hint"?: string | null;
1334
- "created_at": string;
1335
- "updated_at": string;
834
+ "channel"?: string | null;
1336
835
  }
1337
- export interface WorkflowUpdatePutResponse extends ApiEnvelope<WorkflowUpdatePutResponseData> {
1338
- }
1339
- /** Backend response type: Vec<WorkflowResponse>. */
1340
- export interface WorkflowMemberBasedGetResponseItem extends JsonObject {
836
+ /** Backend response type: Source. */
837
+ export interface ApiCreateSourcePostResponseData extends JsonObject {
1341
838
  "id": string;
1342
839
  "name": string;
1343
840
  "slug": string;
1344
- "acquire_flags": string[];
1345
- "priority": number;
1346
- "can_create_lead": boolean;
1347
- "actions"?: JsonValue | null;
1348
- "hint"?: string | null;
841
+ "channel": string;
842
+ "is_active": boolean;
1349
843
  "created_at": string;
1350
844
  "updated_at": string;
1351
845
  }
1352
- export interface WorkflowMemberBasedGetResponse extends ApiEnvelope<WorkflowMemberBasedGetResponseItem[]> {
846
+ export type ApiCreateSourcePostResponse = import("./types.js").CrmApiResponse<ApiCreateSourcePostResponseData>;
847
+ /** Backend query type: ListQuery. */
848
+ export interface ApiTasksGetQuery extends QueryParams {
849
+ "cursor"?: string | null;
850
+ "limit"?: number | null;
851
+ "q"?: string | null;
852
+ "pipeline_id"?: string | null;
853
+ "stage_id"?: string | null;
854
+ "team_id"?: string | null;
855
+ "owner_user_id"?: string | null;
856
+ "status"?: string | null;
1353
857
  }
1354
- /** Backend query type: SortQuery. */
1355
- export interface WorklogIndexGetQuery extends QueryParams {
1356
- "sort"?: string | null;
858
+ /** Backend response type: ListData<Task>. */
859
+ export type ApiTasksGetResponse = import("./types.js").CrmTaskListResponse;
860
+ /** Backend request type: CreateTask. */
861
+ export interface ApiCreateTaskPostInput extends JsonObject {
862
+ "lead_id"?: string | null;
863
+ "deal_id"?: string | null;
864
+ "contact_id"?: string | null;
865
+ "company_id"?: string | null;
866
+ "assignee_user_id"?: string | null;
867
+ "title": string;
868
+ "description"?: string | null;
869
+ "task_type"?: string | null;
870
+ "priority"?: string | null;
871
+ "due_at"?: string | null;
1357
872
  }
1358
- /** Backend response type: Vec<WorklogResponse>. */
1359
- export interface WorklogIndexGetResponseItem extends JsonObject {
873
+ /** Backend response type: Task. */
874
+ export interface ApiCreateTaskPostResponseData extends JsonObject {
1360
875
  "id": string;
1361
- "log_type": string;
1362
- "assignee_id": string;
1363
- "profile_id": string;
1364
- "start_date": string;
1365
- "duration": number;
876
+ "lead_id"?: string | null;
877
+ "deal_id"?: string | null;
878
+ "contact_id"?: string | null;
879
+ "company_id"?: string | null;
880
+ "assignee_user_id": string;
881
+ "created_by": string;
882
+ "title": string;
1366
883
  "description"?: string | null;
884
+ "task_type": string;
885
+ "priority": string;
886
+ "status": string;
887
+ "due_at"?: string | null;
888
+ "completed_at"?: string | null;
889
+ "version": number;
1367
890
  "created_at": string;
1368
891
  "updated_at": string;
1369
892
  }
1370
- export interface WorklogIndexGetResponse extends ApiEnvelope<WorklogIndexGetResponseItem[]> {
893
+ export type ApiCreateTaskPostResponse = import("./types.js").CrmApiResponse<ApiCreateTaskPostResponseData>;
894
+ /** Backend request type: UpdateTaskStatus. */
895
+ export interface ApiUpdateTaskStatusPatchInput extends JsonObject {
896
+ "status": string;
897
+ "version": number;
1371
898
  }
1372
- /** Backend request type: CreateWorklogRequest. */
1373
- export interface WorklogCreatePostInput extends JsonObject {
1374
- "log_type": string;
1375
- "start_date": string;
1376
- "duration": number;
899
+ /** Backend response type: Task. */
900
+ export interface ApiUpdateTaskStatusPatchResponseData extends JsonObject {
901
+ "id": string;
902
+ "lead_id"?: string | null;
903
+ "deal_id"?: string | null;
904
+ "contact_id"?: string | null;
905
+ "company_id"?: string | null;
906
+ "assignee_user_id": string;
907
+ "created_by": string;
908
+ "title": string;
1377
909
  "description"?: string | null;
1378
- "profile_id": string;
910
+ "task_type": string;
911
+ "priority": string;
912
+ "status": string;
913
+ "due_at"?: string | null;
914
+ "completed_at"?: string | null;
915
+ "version": number;
916
+ "created_at": string;
917
+ "updated_at": string;
1379
918
  }
1380
- /** Backend response type: WorklogResponse. */
1381
- export interface WorklogCreatePostResponseData extends JsonObject {
919
+ export type ApiUpdateTaskStatusPatchResponse = import("./types.js").CrmApiResponse<ApiUpdateTaskStatusPatchResponseData>;
920
+ /** Backend response type: Vec<Team>. */
921
+ export interface ApiTeamsGetResponseItem extends JsonObject {
1382
922
  "id": string;
1383
- "log_type": string;
1384
- "assignee_id": string;
1385
- "profile_id": string;
1386
- "start_date": string;
1387
- "duration": number;
923
+ "name": string;
1388
924
  "description"?: string | null;
925
+ "manager_user_id"?: string | null;
926
+ "is_active": boolean;
927
+ "version": number;
928
+ "member_count": number;
1389
929
  "created_at": string;
1390
930
  "updated_at": string;
1391
931
  }
1392
- export interface WorklogCreatePostResponse extends ApiEnvelope<WorklogCreatePostResponseData> {
1393
- }
1394
- /** Backend response type: bool. */
1395
- export interface WorklogDestroyDeleteResponse extends ApiEnvelope<boolean> {
932
+ export type ApiTeamsGetResponse = import("./types.js").CrmApiResponse<ApiTeamsGetResponseItem[]>;
933
+ /** Backend request type: CreateTeam. */
934
+ export interface ApiCreateTeamPostInput extends JsonObject {
935
+ "name": string;
936
+ "description"?: string | null;
937
+ "manager_user_id"?: string | null;
1396
938
  }
1397
- /** Backend response type: WorklogResponse. */
1398
- export interface WorklogShowGetResponseData extends JsonObject {
939
+ /** Backend response type: Team. */
940
+ export interface ApiCreateTeamPostResponseData extends JsonObject {
1399
941
  "id": string;
1400
- "log_type": string;
1401
- "assignee_id": string;
1402
- "profile_id": string;
1403
- "start_date": string;
1404
- "duration": number;
942
+ "name": string;
1405
943
  "description"?: string | null;
944
+ "manager_user_id"?: string | null;
945
+ "is_active": boolean;
946
+ "version": number;
947
+ "member_count": number;
1406
948
  "created_at": string;
1407
949
  "updated_at": string;
1408
950
  }
1409
- export interface WorklogShowGetResponse extends ApiEnvelope<WorklogShowGetResponseData> {
1410
- }
1411
- /** Backend request type: UpdateWorklogRequest. */
1412
- export interface WorklogUpdatePutInput extends JsonObject {
1413
- "log_type"?: string | null;
1414
- "start_date"?: string | null;
1415
- "duration"?: number | null;
1416
- "description"?: string | null;
1417
- "profile_id"?: string | null;
951
+ export type ApiCreateTeamPostResponse = import("./types.js").CrmApiResponse<ApiCreateTeamPostResponseData>;
952
+ /** Backend response type: serde_json::Value. */
953
+ export type ApiTeamGetResponse = import("./types.js").CrmTeamDetailResponse;
954
+ /** Backend request type: AddTeamMember. */
955
+ export interface ApiAddTeamMemberPostInput extends JsonObject {
956
+ "user_id": string;
957
+ "title"?: string | null;
958
+ "capacity"?: number | null;
1418
959
  }
1419
- /** Backend response type: WorklogResponse. */
1420
- export interface WorklogUpdatePutResponseData extends JsonObject {
960
+ /** Backend response type: TeamMember. */
961
+ export interface ApiAddTeamMemberPostResponseData extends JsonObject {
1421
962
  "id": string;
1422
- "log_type": string;
1423
- "assignee_id": string;
1424
- "profile_id": string;
1425
- "start_date": string;
1426
- "duration": number;
1427
- "description"?: string | null;
963
+ "team_id": string;
964
+ "user_id": string;
965
+ "title"?: string | null;
966
+ "capacity": number;
967
+ "is_active": boolean;
1428
968
  "created_at": string;
1429
969
  "updated_at": string;
1430
970
  }
1431
- export interface WorklogUpdatePutResponse extends ApiEnvelope<WorklogUpdatePutResponseData> {
971
+ export type ApiAddTeamMemberPostResponse = import("./types.js").CrmApiResponse<ApiAddTeamMemberPostResponseData>;
972
+ /** Backend request type: UpdateWorkspace. */
973
+ export interface ApiUpdateWorkspacePatchInput extends JsonObject {
974
+ "name"?: string | null;
975
+ "locale"?: string | null;
976
+ "timezone"?: string | null;
977
+ "currency"?: string | null;
978
+ "ai_mode"?: string | null;
979
+ "agentic_enabled"?: boolean | null;
980
+ "version": number;
1432
981
  }
982
+ /** Backend response type: Workspace. */
983
+ export interface ApiUpdateWorkspacePatchResponseData extends JsonObject {
984
+ "id": string;
985
+ "name": string;
986
+ "locale": string;
987
+ "timezone": string;
988
+ "currency": string;
989
+ "ai_mode": string;
990
+ "project_id"?: string | null;
991
+ "project_owner_user_id"?: string | null;
992
+ "agentic_enabled": boolean;
993
+ "settings": BackendJson<"JsonValue">;
994
+ "version": number;
995
+ }
996
+ export type ApiUpdateWorkspacePatchResponse = import("./types.js").CrmApiResponse<ApiUpdateWorkspacePatchResponseData>;
1433
997
  /** Backend response type: api. */
1434
- export interface RouterStatusRouteGetHealthResponse extends ApiEnvelope<JsonValue> {
1435
- }
998
+ export type RouterStatusRouteGetHealthResponse = import("./types.js").CrmApiResponse<JsonValue>;
1436
999
  /** Backend response type: api. */
1437
- export interface RouterStatusRouteGetUpResponse extends ApiEnvelope<JsonValue> {
1438
- }
1000
+ export type RouterStatusRouteGetLivezResponse = import("./types.js").CrmApiResponse<JsonValue>;
1001
+ /** Backend response type: api. */
1002
+ export type RouterReadinessRouteGetResponse = import("./types.js").CrmApiResponse<JsonValue>;
1003
+ /** Backend response type: api. */
1004
+ export type RouterStatusRouteGetUpResponse = import("./types.js").CrmApiResponse<JsonValue>;
1439
1005
  //# sourceMappingURL=operations.types.d.ts.map