@outlit/tools 2.3.0 → 2.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +1848 -274
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1308 -141
- package/dist/index.d.ts +1308 -141
- package/dist/index.js +1847 -274
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -53,6 +53,7 @@ __export(src_exports, {
|
|
|
53
53
|
isOutlitToolsApiError: () => isOutlitToolsApiError,
|
|
54
54
|
isPublicToolName: () => isPublicToolName,
|
|
55
55
|
matchesGeneratedJsonSchema: () => matchesGeneratedJsonSchema,
|
|
56
|
+
normalizeCustomerSourceToolInput: () => normalizeCustomerSourceToolInput,
|
|
56
57
|
normalizeCustomerSourceType: () => normalizeCustomerSourceType,
|
|
57
58
|
piToolNames: () => piToolNames,
|
|
58
59
|
publicOpenApiTransports: () => publicOpenApiTransports,
|
|
@@ -78,6 +79,7 @@ module.exports = __toCommonJS(src_exports);
|
|
|
78
79
|
var contractVersion = 1;
|
|
79
80
|
var publicToolNames = [
|
|
80
81
|
"outlit_list_customers",
|
|
82
|
+
"outlit_list_crm_fields",
|
|
81
83
|
"outlit_list_users",
|
|
82
84
|
"outlit_list_workspace_users",
|
|
83
85
|
"outlit_get_customer",
|
|
@@ -136,10 +138,11 @@ var publicToolContracts = {
|
|
|
136
138
|
"commandVersion": 1,
|
|
137
139
|
"ownerDomain": "customers",
|
|
138
140
|
"title": "List Customers",
|
|
139
|
-
"description": "Browse and filter customers. Use this to find customers by billing status, activity recency, revenue, or
|
|
141
|
+
"description": "Browse and filter customers. Use this to find customers by billing status, activity recency, revenue, name, or their CRM and support tool fields (crm; crmFields returns those fields' values on each customer, e.g. segment and health across the book; use outlit_list_crm_fields to find keys and values). Returns a paginated list with summary info (ARR, last activity, status). arr is the annualized revenue run rate, the same figure the Outlit app shows, with its currency: amount is in the billing provider's units for that currency (for USD, EUR, GBP and CAD this is cents: divide by 100, e.g. 1200000 is $12,000 ARR, USD; other currencies follow the provider's amount rules). arr is null when the app shows none, and amount is 0 for a churned, paused or trialing customer.",
|
|
140
142
|
"annotations": {
|
|
141
143
|
"readOnlyHint": true,
|
|
142
144
|
"destructiveHint": false,
|
|
145
|
+
"idempotentHint": true,
|
|
143
146
|
"openWorldHint": false
|
|
144
147
|
},
|
|
145
148
|
"inputSchema": {
|
|
@@ -183,13 +186,28 @@ var publicToolContracts = {
|
|
|
183
186
|
"90d"
|
|
184
187
|
]
|
|
185
188
|
},
|
|
189
|
+
"arrAbove": {
|
|
190
|
+
"description": "Minimum ARR, in arr.amount's units per year (1200000 is $12,000 for a customer billed in USD). Each customer is compared in its own currency, never converted: pass arrCurrency to compare one currency. Customers whose ARR is unknown never match.",
|
|
191
|
+
"type": "number",
|
|
192
|
+
"minimum": 0
|
|
193
|
+
},
|
|
194
|
+
"arrBelow": {
|
|
195
|
+
"description": "Maximum ARR, in arr.amount's units per year, compared in each customer's own currency like arrAbove. Customers whose ARR is unknown never match.",
|
|
196
|
+
"type": "number",
|
|
197
|
+
"minimum": 0
|
|
198
|
+
},
|
|
199
|
+
"arrCurrency": {
|
|
200
|
+
"description": "Only customers whose ARR is in this ISO 4217 currency, such as USD. Outlit never converts ARR between currencies, so use this to rank or bound ARR within one currency.",
|
|
201
|
+
"type": "string",
|
|
202
|
+
"pattern": "^[A-Za-z]{3}$"
|
|
203
|
+
},
|
|
186
204
|
"mrrAbove": {
|
|
187
|
-
"description": "
|
|
205
|
+
"description": "Deprecated: use arrAbove.",
|
|
188
206
|
"type": "number",
|
|
189
207
|
"minimum": 0
|
|
190
208
|
},
|
|
191
209
|
"mrrBelow": {
|
|
192
|
-
"description": "
|
|
210
|
+
"description": "Deprecated: use arrBelow.",
|
|
193
211
|
"type": "number",
|
|
194
212
|
"minimum": 0
|
|
195
213
|
},
|
|
@@ -234,6 +252,120 @@ var publicToolContracts = {
|
|
|
234
252
|
"description": "Filter customers by whether they have an owner",
|
|
235
253
|
"type": "boolean"
|
|
236
254
|
},
|
|
255
|
+
"crm": {
|
|
256
|
+
"description": "Filter by fields of the customer's CRM and support tool accounts, such as segment, health or stage; use outlit_list_crm_fields to find keys and values. All filters must hold; each holds when any linked account meets it. eq and in compare text ignoring case; gte and lte compare numbers, or ISO dates, never text. A multi-value field matches when any of its values does.",
|
|
257
|
+
"maxItems": 10,
|
|
258
|
+
"type": "array",
|
|
259
|
+
"items": {
|
|
260
|
+
"type": "object",
|
|
261
|
+
"properties": {
|
|
262
|
+
"field": {
|
|
263
|
+
"type": "object",
|
|
264
|
+
"properties": {
|
|
265
|
+
"provider": {
|
|
266
|
+
"type": "string",
|
|
267
|
+
"enum": [
|
|
268
|
+
"hubspot",
|
|
269
|
+
"salesforce",
|
|
270
|
+
"attio",
|
|
271
|
+
"pylon"
|
|
272
|
+
]
|
|
273
|
+
},
|
|
274
|
+
"key": {
|
|
275
|
+
"type": "string",
|
|
276
|
+
"minLength": 1,
|
|
277
|
+
"maxLength": 191,
|
|
278
|
+
"description": "The field's key (API name) in that system, as outlit_list_crm_fields lists it."
|
|
279
|
+
}
|
|
280
|
+
},
|
|
281
|
+
"required": [
|
|
282
|
+
"provider",
|
|
283
|
+
"key"
|
|
284
|
+
]
|
|
285
|
+
},
|
|
286
|
+
"op": {
|
|
287
|
+
"type": "string",
|
|
288
|
+
"enum": [
|
|
289
|
+
"eq",
|
|
290
|
+
"in",
|
|
291
|
+
"gte",
|
|
292
|
+
"lte"
|
|
293
|
+
]
|
|
294
|
+
},
|
|
295
|
+
"value": {
|
|
296
|
+
"anyOf": [
|
|
297
|
+
{
|
|
298
|
+
"anyOf": [
|
|
299
|
+
{
|
|
300
|
+
"type": "string",
|
|
301
|
+
"maxLength": 500
|
|
302
|
+
},
|
|
303
|
+
{
|
|
304
|
+
"type": "number"
|
|
305
|
+
},
|
|
306
|
+
{
|
|
307
|
+
"type": "boolean"
|
|
308
|
+
}
|
|
309
|
+
]
|
|
310
|
+
},
|
|
311
|
+
{
|
|
312
|
+
"minItems": 1,
|
|
313
|
+
"maxItems": 50,
|
|
314
|
+
"type": "array",
|
|
315
|
+
"items": {
|
|
316
|
+
"anyOf": [
|
|
317
|
+
{
|
|
318
|
+
"type": "string",
|
|
319
|
+
"maxLength": 500
|
|
320
|
+
},
|
|
321
|
+
{
|
|
322
|
+
"type": "number"
|
|
323
|
+
},
|
|
324
|
+
{
|
|
325
|
+
"type": "boolean"
|
|
326
|
+
}
|
|
327
|
+
]
|
|
328
|
+
}
|
|
329
|
+
}
|
|
330
|
+
]
|
|
331
|
+
}
|
|
332
|
+
},
|
|
333
|
+
"required": [
|
|
334
|
+
"field",
|
|
335
|
+
"op",
|
|
336
|
+
"value"
|
|
337
|
+
]
|
|
338
|
+
}
|
|
339
|
+
},
|
|
340
|
+
"crmFields": {
|
|
341
|
+
"description": "CRM and support tool account fields to return on each customer, as crm; use outlit_list_crm_fields to find keys.",
|
|
342
|
+
"maxItems": 5,
|
|
343
|
+
"type": "array",
|
|
344
|
+
"items": {
|
|
345
|
+
"type": "object",
|
|
346
|
+
"properties": {
|
|
347
|
+
"provider": {
|
|
348
|
+
"type": "string",
|
|
349
|
+
"enum": [
|
|
350
|
+
"hubspot",
|
|
351
|
+
"salesforce",
|
|
352
|
+
"attio",
|
|
353
|
+
"pylon"
|
|
354
|
+
]
|
|
355
|
+
},
|
|
356
|
+
"key": {
|
|
357
|
+
"type": "string",
|
|
358
|
+
"minLength": 1,
|
|
359
|
+
"maxLength": 191,
|
|
360
|
+
"description": "The field's key (API name) in that system, as outlit_list_crm_fields lists it."
|
|
361
|
+
}
|
|
362
|
+
},
|
|
363
|
+
"required": [
|
|
364
|
+
"provider",
|
|
365
|
+
"key"
|
|
366
|
+
]
|
|
367
|
+
}
|
|
368
|
+
},
|
|
237
369
|
"limit": {
|
|
238
370
|
"description": "Results per page (max 1000)",
|
|
239
371
|
"default": 50,
|
|
@@ -246,13 +378,14 @@ var publicToolContracts = {
|
|
|
246
378
|
"type": "string"
|
|
247
379
|
},
|
|
248
380
|
"orderBy": {
|
|
249
|
-
"description": "Field to order results by",
|
|
381
|
+
"description": "Field to order results by: last_activity_at, first_seen_at, name, arr_cents. arr_cents puts customers whose ARR is unknown last when descending, and compares amounts across currencies without converting them; arrCurrencies in the response says when that happened.",
|
|
250
382
|
"default": "last_activity_at",
|
|
251
383
|
"type": "string",
|
|
252
384
|
"enum": [
|
|
253
385
|
"last_activity_at",
|
|
254
386
|
"first_seen_at",
|
|
255
387
|
"name",
|
|
388
|
+
"arr_cents",
|
|
256
389
|
"mrr_cents"
|
|
257
390
|
]
|
|
258
391
|
},
|
|
@@ -344,24 +477,38 @@ var publicToolContracts = {
|
|
|
344
477
|
"minimum": 0,
|
|
345
478
|
"maximum": 9007199254740991
|
|
346
479
|
},
|
|
347
|
-
"
|
|
480
|
+
"arr": {
|
|
348
481
|
"anyOf": [
|
|
349
482
|
{
|
|
350
|
-
"type": "
|
|
483
|
+
"type": "object",
|
|
484
|
+
"properties": {
|
|
485
|
+
"amount": {
|
|
486
|
+
"type": "integer",
|
|
487
|
+
"minimum": 0,
|
|
488
|
+
"maximum": 9007199254740991,
|
|
489
|
+
"description": "Annualized revenue run rate, the same ARR figure the Outlit app shows: an integer in the billing provider's units for `currency`. For USD, EUR, GBP and CAD this is cents: divide by 100 (e.g. 1234500 is $12,345, USD). Other currencies follow the provider's amount rules (Stripe's currency docs), so don't assume a divisor for them. 0 for a churned, paused or trialing customer."
|
|
490
|
+
},
|
|
491
|
+
"currency": {
|
|
492
|
+
"type": "string",
|
|
493
|
+
"description": "ISO currency code of amount."
|
|
494
|
+
},
|
|
495
|
+
"estimated": {
|
|
496
|
+
"type": "boolean",
|
|
497
|
+
"description": "The amount includes a usage or per-seat estimate, shown as ~ in the app."
|
|
498
|
+
}
|
|
499
|
+
},
|
|
500
|
+
"required": [
|
|
501
|
+
"amount",
|
|
502
|
+
"currency",
|
|
503
|
+
"estimated"
|
|
504
|
+
],
|
|
505
|
+
"additionalProperties": false
|
|
351
506
|
},
|
|
352
507
|
{
|
|
353
508
|
"type": "null"
|
|
354
509
|
}
|
|
355
510
|
],
|
|
356
|
-
"description": "
|
|
357
|
-
},
|
|
358
|
-
"mrrCalculationStatus": {
|
|
359
|
-
"type": "string",
|
|
360
|
-
"enum": [
|
|
361
|
-
"calculated",
|
|
362
|
-
"mixed_currency",
|
|
363
|
-
"unavailable"
|
|
364
|
-
]
|
|
511
|
+
"description": "Null when the app shows no ARR for this customer."
|
|
365
512
|
},
|
|
366
513
|
"owner": {
|
|
367
514
|
"anyOf": [
|
|
@@ -401,6 +548,66 @@ var publicToolContracts = {
|
|
|
401
548
|
"type": "null"
|
|
402
549
|
}
|
|
403
550
|
]
|
|
551
|
+
},
|
|
552
|
+
"crm": {
|
|
553
|
+
"description": "With crmFields: each asked-for field, in the order asked.",
|
|
554
|
+
"type": "array",
|
|
555
|
+
"items": {
|
|
556
|
+
"type": "object",
|
|
557
|
+
"properties": {
|
|
558
|
+
"field": {
|
|
559
|
+
"type": "object",
|
|
560
|
+
"properties": {
|
|
561
|
+
"provider": {
|
|
562
|
+
"type": "string",
|
|
563
|
+
"enum": [
|
|
564
|
+
"hubspot",
|
|
565
|
+
"salesforce",
|
|
566
|
+
"attio",
|
|
567
|
+
"pylon"
|
|
568
|
+
]
|
|
569
|
+
},
|
|
570
|
+
"key": {
|
|
571
|
+
"type": "string",
|
|
572
|
+
"minLength": 1,
|
|
573
|
+
"maxLength": 191,
|
|
574
|
+
"description": "The field's key (API name) in that system, as outlit_list_crm_fields lists it."
|
|
575
|
+
}
|
|
576
|
+
},
|
|
577
|
+
"required": [
|
|
578
|
+
"provider",
|
|
579
|
+
"key"
|
|
580
|
+
],
|
|
581
|
+
"additionalProperties": false
|
|
582
|
+
},
|
|
583
|
+
"label": {
|
|
584
|
+
"type": "string"
|
|
585
|
+
},
|
|
586
|
+
"values": {
|
|
587
|
+
"type": "array",
|
|
588
|
+
"items": {
|
|
589
|
+
"anyOf": [
|
|
590
|
+
{
|
|
591
|
+
"type": "string"
|
|
592
|
+
},
|
|
593
|
+
{
|
|
594
|
+
"type": "number"
|
|
595
|
+
},
|
|
596
|
+
{
|
|
597
|
+
"type": "boolean"
|
|
598
|
+
}
|
|
599
|
+
]
|
|
600
|
+
},
|
|
601
|
+
"description": "The field's values across the customer's linked accounts in that system, without duplicates; a multi-value field's values are listed one by one. Empty when no linked account has one."
|
|
602
|
+
}
|
|
603
|
+
},
|
|
604
|
+
"required": [
|
|
605
|
+
"field",
|
|
606
|
+
"label",
|
|
607
|
+
"values"
|
|
608
|
+
],
|
|
609
|
+
"additionalProperties": false
|
|
610
|
+
}
|
|
404
611
|
}
|
|
405
612
|
},
|
|
406
613
|
"required": [
|
|
@@ -412,8 +619,7 @@ var publicToolContracts = {
|
|
|
412
619
|
"firstSeenAt",
|
|
413
620
|
"lastActivityAt",
|
|
414
621
|
"contactCount",
|
|
415
|
-
"
|
|
416
|
-
"mrrCalculationStatus",
|
|
622
|
+
"arr",
|
|
417
623
|
"owner",
|
|
418
624
|
"daysSinceActivity"
|
|
419
625
|
],
|
|
@@ -448,6 +654,13 @@ var publicToolContracts = {
|
|
|
448
654
|
"total"
|
|
449
655
|
],
|
|
450
656
|
"additionalProperties": false
|
|
657
|
+
},
|
|
658
|
+
"arrCurrencies": {
|
|
659
|
+
"description": "Present when the call ordered or bounded by ARR: the ARR currencies among all matched customers. With more than one, amounts were compared as if they were the same unit, so a ranking mixes currencies; pass arrCurrency to rank within one.",
|
|
660
|
+
"type": "array",
|
|
661
|
+
"items": {
|
|
662
|
+
"type": "string"
|
|
663
|
+
}
|
|
451
664
|
}
|
|
452
665
|
},
|
|
453
666
|
"required": [
|
|
@@ -457,104 +670,48 @@ var publicToolContracts = {
|
|
|
457
670
|
"additionalProperties": false
|
|
458
671
|
}
|
|
459
672
|
},
|
|
460
|
-
"
|
|
461
|
-
"toolName": "
|
|
462
|
-
"commandId": "
|
|
673
|
+
"outlit_list_crm_fields": {
|
|
674
|
+
"toolName": "outlit_list_crm_fields",
|
|
675
|
+
"commandId": "crm_field.list",
|
|
463
676
|
"commandVersion": 1,
|
|
464
|
-
"ownerDomain": "
|
|
465
|
-
"title": "List
|
|
466
|
-
"description": "
|
|
677
|
+
"ownerDomain": "customers",
|
|
678
|
+
"title": "List CRM Fields",
|
|
679
|
+
"description": "List the account fields the workspace's CRM and support tools hold (segment, health, stage, owner and custom fields), with each field's label, type, picklist options, the values customers' linked accounts hold, and how many accounts hold one. Use it to find the field and values for outlit_list_customers' crm filter and crmFields, for questions across many customers; for one customer's fields use outlit_get_customer with include crm.",
|
|
467
680
|
"annotations": {
|
|
468
681
|
"readOnlyHint": true,
|
|
469
682
|
"destructiveHint": false,
|
|
683
|
+
"idempotentHint": true,
|
|
470
684
|
"openWorldHint": false
|
|
471
685
|
},
|
|
472
686
|
"inputSchema": {
|
|
473
687
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
474
688
|
"type": "object",
|
|
475
689
|
"properties": {
|
|
476
|
-
"
|
|
477
|
-
"description": "
|
|
690
|
+
"provider": {
|
|
691
|
+
"description": "Only this system's fields",
|
|
478
692
|
"type": "string",
|
|
479
693
|
"enum": [
|
|
480
|
-
"
|
|
481
|
-
"
|
|
482
|
-
"
|
|
483
|
-
"
|
|
484
|
-
"INACTIVE"
|
|
694
|
+
"hubspot",
|
|
695
|
+
"salesforce",
|
|
696
|
+
"attio",
|
|
697
|
+
"pylon"
|
|
485
698
|
]
|
|
486
699
|
},
|
|
487
|
-
"customerId": {
|
|
488
|
-
"description": "Filter users by customer ID",
|
|
489
|
-
"type": "string",
|
|
490
|
-
"maxLength": 500
|
|
491
|
-
},
|
|
492
|
-
"traitFilters": {
|
|
493
|
-
"description": "Filter by exact trait values using key/value pairs",
|
|
494
|
-
"type": "object",
|
|
495
|
-
"propertyNames": {
|
|
496
|
-
"type": "string",
|
|
497
|
-
"pattern": "^[A-Za-z0-9_-]{1,100}$"
|
|
498
|
-
},
|
|
499
|
-
"additionalProperties": {
|
|
500
|
-
"anyOf": [
|
|
501
|
-
{
|
|
502
|
-
"type": "string",
|
|
503
|
-
"maxLength": 500
|
|
504
|
-
},
|
|
505
|
-
{
|
|
506
|
-
"type": "number"
|
|
507
|
-
},
|
|
508
|
-
{
|
|
509
|
-
"type": "boolean"
|
|
510
|
-
}
|
|
511
|
-
]
|
|
512
|
-
}
|
|
513
|
-
},
|
|
514
|
-
"hasActivityInLast": {
|
|
515
|
-
"description": "Filter users active within this window. Format: Nd, Nh, or Nm (e.g., '7d', '24h', '90m')",
|
|
516
|
-
"type": "string",
|
|
517
|
-
"pattern": "^\\d+(d|h|m)$"
|
|
518
|
-
},
|
|
519
|
-
"noActivityInLast": {
|
|
520
|
-
"description": "Filter users NOT active within this window. Format: Nd, Nh, or Nm (e.g., '30d', '2h')",
|
|
521
|
-
"type": "string",
|
|
522
|
-
"pattern": "^\\d+(d|h|m)$"
|
|
523
|
-
},
|
|
524
700
|
"search": {
|
|
525
|
-
"description": "
|
|
701
|
+
"description": "Only fields whose key or label contains this text, ignoring case",
|
|
526
702
|
"type": "string",
|
|
527
|
-
"maxLength":
|
|
703
|
+
"maxLength": 100
|
|
528
704
|
},
|
|
529
705
|
"limit": {
|
|
530
|
-
"description": "
|
|
531
|
-
"default":
|
|
532
|
-
"type": "
|
|
706
|
+
"description": "Fields per page (max 50)",
|
|
707
|
+
"default": 20,
|
|
708
|
+
"type": "integer",
|
|
533
709
|
"minimum": 1,
|
|
534
|
-
"maximum":
|
|
710
|
+
"maximum": 50
|
|
535
711
|
},
|
|
536
712
|
"cursor": {
|
|
537
713
|
"description": "Pagination cursor from previous response",
|
|
538
714
|
"type": "string"
|
|
539
|
-
},
|
|
540
|
-
"orderBy": {
|
|
541
|
-
"description": "Field to order by",
|
|
542
|
-
"default": "last_activity_at",
|
|
543
|
-
"type": "string",
|
|
544
|
-
"enum": [
|
|
545
|
-
"last_activity_at",
|
|
546
|
-
"first_seen_at",
|
|
547
|
-
"email"
|
|
548
|
-
]
|
|
549
|
-
},
|
|
550
|
-
"orderDirection": {
|
|
551
|
-
"description": "Sort direction",
|
|
552
|
-
"default": "desc",
|
|
553
|
-
"type": "string",
|
|
554
|
-
"enum": [
|
|
555
|
-
"asc",
|
|
556
|
-
"desc"
|
|
557
|
-
]
|
|
558
715
|
}
|
|
559
716
|
}
|
|
560
717
|
},
|
|
@@ -567,20 +724,263 @@ var publicToolContracts = {
|
|
|
567
724
|
"items": {
|
|
568
725
|
"type": "object",
|
|
569
726
|
"properties": {
|
|
570
|
-
"
|
|
571
|
-
"type": "
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
727
|
+
"field": {
|
|
728
|
+
"type": "object",
|
|
729
|
+
"properties": {
|
|
730
|
+
"provider": {
|
|
731
|
+
"type": "string",
|
|
732
|
+
"enum": [
|
|
733
|
+
"hubspot",
|
|
734
|
+
"salesforce",
|
|
735
|
+
"attio",
|
|
736
|
+
"pylon"
|
|
737
|
+
]
|
|
577
738
|
},
|
|
578
|
-
{
|
|
579
|
-
"type": "
|
|
739
|
+
"key": {
|
|
740
|
+
"type": "string",
|
|
741
|
+
"minLength": 1,
|
|
742
|
+
"maxLength": 191,
|
|
743
|
+
"description": "The field's key (API name) in that system, as outlit_list_crm_fields lists it."
|
|
580
744
|
}
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
745
|
+
},
|
|
746
|
+
"required": [
|
|
747
|
+
"provider",
|
|
748
|
+
"key"
|
|
749
|
+
],
|
|
750
|
+
"additionalProperties": false,
|
|
751
|
+
"description": "Pass this as-is to outlit_list_customers' crm filter or crmFields."
|
|
752
|
+
},
|
|
753
|
+
"label": {
|
|
754
|
+
"type": "string"
|
|
755
|
+
},
|
|
756
|
+
"type": {
|
|
757
|
+
"type": "string",
|
|
758
|
+
"description": "The field's type in that system, as it names it."
|
|
759
|
+
},
|
|
760
|
+
"options": {
|
|
761
|
+
"anyOf": [
|
|
762
|
+
{
|
|
763
|
+
"type": "array",
|
|
764
|
+
"items": {
|
|
765
|
+
"type": "string"
|
|
766
|
+
}
|
|
767
|
+
},
|
|
768
|
+
{
|
|
769
|
+
"type": "null"
|
|
770
|
+
}
|
|
771
|
+
],
|
|
772
|
+
"description": "A picklist's choices as that system defines them; null for other fields."
|
|
773
|
+
},
|
|
774
|
+
"observedValues": {
|
|
775
|
+
"type": "array",
|
|
776
|
+
"items": {
|
|
777
|
+
"anyOf": [
|
|
778
|
+
{
|
|
779
|
+
"type": "string"
|
|
780
|
+
},
|
|
781
|
+
{
|
|
782
|
+
"type": "number"
|
|
783
|
+
},
|
|
784
|
+
{
|
|
785
|
+
"type": "boolean"
|
|
786
|
+
}
|
|
787
|
+
]
|
|
788
|
+
},
|
|
789
|
+
"description": "Up to 20 of the values the customers' linked accounts hold, most common first, a multi-value field's values one by one."
|
|
790
|
+
},
|
|
791
|
+
"accounts": {
|
|
792
|
+
"type": "integer",
|
|
793
|
+
"minimum": 0,
|
|
794
|
+
"maximum": 9007199254740991,
|
|
795
|
+
"description": "How many accounts linked to customers hold a value."
|
|
796
|
+
}
|
|
797
|
+
},
|
|
798
|
+
"required": [
|
|
799
|
+
"field",
|
|
800
|
+
"label",
|
|
801
|
+
"type",
|
|
802
|
+
"options",
|
|
803
|
+
"observedValues",
|
|
804
|
+
"accounts"
|
|
805
|
+
],
|
|
806
|
+
"additionalProperties": false
|
|
807
|
+
}
|
|
808
|
+
},
|
|
809
|
+
"pagination": {
|
|
810
|
+
"type": "object",
|
|
811
|
+
"properties": {
|
|
812
|
+
"hasMore": {
|
|
813
|
+
"type": "boolean"
|
|
814
|
+
},
|
|
815
|
+
"nextCursor": {
|
|
816
|
+
"anyOf": [
|
|
817
|
+
{
|
|
818
|
+
"type": "string"
|
|
819
|
+
},
|
|
820
|
+
{
|
|
821
|
+
"type": "null"
|
|
822
|
+
}
|
|
823
|
+
]
|
|
824
|
+
}
|
|
825
|
+
},
|
|
826
|
+
"required": [
|
|
827
|
+
"hasMore",
|
|
828
|
+
"nextCursor"
|
|
829
|
+
],
|
|
830
|
+
"additionalProperties": false
|
|
831
|
+
}
|
|
832
|
+
},
|
|
833
|
+
"required": [
|
|
834
|
+
"items",
|
|
835
|
+
"pagination"
|
|
836
|
+
],
|
|
837
|
+
"additionalProperties": false
|
|
838
|
+
}
|
|
839
|
+
},
|
|
840
|
+
"outlit_list_users": {
|
|
841
|
+
"toolName": "outlit_list_users",
|
|
842
|
+
"commandId": "user.list",
|
|
843
|
+
"commandVersion": 1,
|
|
844
|
+
"ownerDomain": "users",
|
|
845
|
+
"title": "List Users",
|
|
846
|
+
"description": "Browse and filter users. Use this to find users by journey stage, activity recency, customer, or email/name. Returns a paginated list with activity info and each user's sources: where Outlit found them (CRM, support tool, product analytics, Slack) and the calls, meetings, emails, tickets and Slack threads they took part in. Pass include crm to add each user's contact records in the CRM and support tool with their own fields (job title, lead status, custom fields) as stored there, which can be hundreds, so request it only when needed.",
|
|
847
|
+
"annotations": {
|
|
848
|
+
"readOnlyHint": true,
|
|
849
|
+
"destructiveHint": false,
|
|
850
|
+
"idempotentHint": true,
|
|
851
|
+
"openWorldHint": false
|
|
852
|
+
},
|
|
853
|
+
"inputSchema": {
|
|
854
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
855
|
+
"type": "object",
|
|
856
|
+
"properties": {
|
|
857
|
+
"journeyStage": {
|
|
858
|
+
"description": "Filter by user journey stage",
|
|
859
|
+
"type": "string",
|
|
860
|
+
"enum": [
|
|
861
|
+
"DISCOVERED",
|
|
862
|
+
"SIGNED_UP",
|
|
863
|
+
"ACTIVATED",
|
|
864
|
+
"ENGAGED",
|
|
865
|
+
"INACTIVE"
|
|
866
|
+
]
|
|
867
|
+
},
|
|
868
|
+
"customerId": {
|
|
869
|
+
"description": "Filter users by customer ID",
|
|
870
|
+
"type": "string",
|
|
871
|
+
"maxLength": 500
|
|
872
|
+
},
|
|
873
|
+
"traitFilters": {
|
|
874
|
+
"description": "Filter by exact trait values using key/value pairs",
|
|
875
|
+
"type": "object",
|
|
876
|
+
"propertyNames": {
|
|
877
|
+
"type": "string",
|
|
878
|
+
"pattern": "^[A-Za-z0-9_-]{1,100}$"
|
|
879
|
+
},
|
|
880
|
+
"additionalProperties": {
|
|
881
|
+
"anyOf": [
|
|
882
|
+
{
|
|
883
|
+
"type": "string",
|
|
884
|
+
"maxLength": 500
|
|
885
|
+
},
|
|
886
|
+
{
|
|
887
|
+
"type": "number"
|
|
888
|
+
},
|
|
889
|
+
{
|
|
890
|
+
"type": "boolean"
|
|
891
|
+
}
|
|
892
|
+
]
|
|
893
|
+
}
|
|
894
|
+
},
|
|
895
|
+
"hasActivityInLast": {
|
|
896
|
+
"description": "Filter users active within this window. Format: Nd, Nh, or Nm (e.g., '7d', '24h', '90m')",
|
|
897
|
+
"type": "string",
|
|
898
|
+
"pattern": "^\\d+(d|h|m)$"
|
|
899
|
+
},
|
|
900
|
+
"noActivityInLast": {
|
|
901
|
+
"description": "Filter users NOT active within this window. Format: Nd, Nh, or Nm (e.g., '30d', '2h')",
|
|
902
|
+
"type": "string",
|
|
903
|
+
"pattern": "^\\d+(d|h|m)$"
|
|
904
|
+
},
|
|
905
|
+
"search": {
|
|
906
|
+
"description": "Search by user email or name (case-insensitive)",
|
|
907
|
+
"type": "string",
|
|
908
|
+
"maxLength": 500
|
|
909
|
+
},
|
|
910
|
+
"limit": {
|
|
911
|
+
"description": "Results per page (max 1000)",
|
|
912
|
+
"default": 50,
|
|
913
|
+
"type": "number",
|
|
914
|
+
"minimum": 1,
|
|
915
|
+
"maximum": 1e3
|
|
916
|
+
},
|
|
917
|
+
"cursor": {
|
|
918
|
+
"description": "Pagination cursor from previous response",
|
|
919
|
+
"type": "string"
|
|
920
|
+
},
|
|
921
|
+
"orderBy": {
|
|
922
|
+
"description": "Field to order by",
|
|
923
|
+
"default": "last_activity_at",
|
|
924
|
+
"type": "string",
|
|
925
|
+
"enum": [
|
|
926
|
+
"last_activity_at",
|
|
927
|
+
"first_seen_at",
|
|
928
|
+
"email"
|
|
929
|
+
]
|
|
930
|
+
},
|
|
931
|
+
"orderDirection": {
|
|
932
|
+
"description": "Sort direction",
|
|
933
|
+
"default": "desc",
|
|
934
|
+
"type": "string",
|
|
935
|
+
"enum": [
|
|
936
|
+
"asc",
|
|
937
|
+
"desc"
|
|
938
|
+
]
|
|
939
|
+
},
|
|
940
|
+
"include": {
|
|
941
|
+
"description": "Additional data to include for each user. crm adds the user's contact records in the CRM and support tool with their own fields (job title, lead status, custom fields) as stored there; request it only when needed.",
|
|
942
|
+
"type": "array",
|
|
943
|
+
"items": {
|
|
944
|
+
"type": "string",
|
|
945
|
+
"enum": [
|
|
946
|
+
"crm"
|
|
947
|
+
]
|
|
948
|
+
}
|
|
949
|
+
},
|
|
950
|
+
"crmFields": {
|
|
951
|
+
"description": "With include crm only: the CRM fields to return, by key or label (case is ignored), for example the keys an earlier response listed in omittedFields. Send [] (the default) for every field.",
|
|
952
|
+
"maxItems": 100,
|
|
953
|
+
"type": "array",
|
|
954
|
+
"items": {
|
|
955
|
+
"type": "string",
|
|
956
|
+
"maxLength": 191
|
|
957
|
+
}
|
|
958
|
+
}
|
|
959
|
+
}
|
|
960
|
+
},
|
|
961
|
+
"outputSchema": {
|
|
962
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
963
|
+
"type": "object",
|
|
964
|
+
"properties": {
|
|
965
|
+
"items": {
|
|
966
|
+
"type": "array",
|
|
967
|
+
"items": {
|
|
968
|
+
"type": "object",
|
|
969
|
+
"properties": {
|
|
970
|
+
"id": {
|
|
971
|
+
"type": "string"
|
|
972
|
+
},
|
|
973
|
+
"email": {
|
|
974
|
+
"anyOf": [
|
|
975
|
+
{
|
|
976
|
+
"type": "string"
|
|
977
|
+
},
|
|
978
|
+
{
|
|
979
|
+
"type": "null"
|
|
980
|
+
}
|
|
981
|
+
]
|
|
982
|
+
},
|
|
983
|
+
"name": {
|
|
584
984
|
"anyOf": [
|
|
585
985
|
{
|
|
586
986
|
"type": "string"
|
|
@@ -716,47 +1116,132 @@ var publicToolContracts = {
|
|
|
716
1116
|
},
|
|
717
1117
|
"description": "Where Outlit found this person: the systems that hold a record of them and the conversations they took part in. Empty when Outlit has no source recorded; absent from servers that predate it."
|
|
718
1118
|
},
|
|
719
|
-
"
|
|
720
|
-
"
|
|
721
|
-
{
|
|
722
|
-
"type": "string"
|
|
723
|
-
},
|
|
724
|
-
{
|
|
725
|
-
"type": "null"
|
|
726
|
-
}
|
|
727
|
-
]
|
|
728
|
-
},
|
|
729
|
-
"jobTitle": {
|
|
730
|
-
"anyOf": [
|
|
731
|
-
{
|
|
732
|
-
"type": "string"
|
|
733
|
-
},
|
|
734
|
-
{
|
|
735
|
-
"type": "null"
|
|
736
|
-
}
|
|
737
|
-
]
|
|
738
|
-
},
|
|
739
|
-
"department": {
|
|
740
|
-
"anyOf": [
|
|
741
|
-
{
|
|
742
|
-
"type": "string"
|
|
743
|
-
},
|
|
744
|
-
{
|
|
745
|
-
"type": "null"
|
|
746
|
-
}
|
|
747
|
-
]
|
|
748
|
-
},
|
|
749
|
-
"employmentStartDate": {
|
|
1119
|
+
"crm": {
|
|
1120
|
+
"description": "With include crm: the contact records in the CRM and support tool that this user is linked to, one entry each, with the contact's own fields as stored there. Empty when the user has no linked contact; null when the read is bound to a past point in time. Absent unless requested, when the section is not enabled for the workspace, or when the size limit left no room for this user (then ask for fewer users or crmFields). The size limit is shared by all users in the response.",
|
|
750
1121
|
"anyOf": [
|
|
751
1122
|
{
|
|
752
|
-
"type": "
|
|
753
|
-
"
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
1123
|
+
"type": "array",
|
|
1124
|
+
"items": {
|
|
1125
|
+
"type": "object",
|
|
1126
|
+
"properties": {
|
|
1127
|
+
"provider": {
|
|
1128
|
+
"type": "string",
|
|
1129
|
+
"description": "The system that holds the contact: hubspot, salesforce, attio or pylon."
|
|
1130
|
+
},
|
|
1131
|
+
"connectionId": {
|
|
1132
|
+
"type": "string",
|
|
1133
|
+
"description": "The Outlit integration connection the contact syncs through."
|
|
1134
|
+
},
|
|
1135
|
+
"contactId": {
|
|
1136
|
+
"type": "string",
|
|
1137
|
+
"description": "The contact's id in that system."
|
|
1138
|
+
},
|
|
1139
|
+
"fields": {
|
|
1140
|
+
"type": "array",
|
|
1141
|
+
"items": {
|
|
1142
|
+
"type": "object",
|
|
1143
|
+
"properties": {
|
|
1144
|
+
"key": {
|
|
1145
|
+
"type": "string",
|
|
1146
|
+
"description": "The field's API name or slug in that system."
|
|
1147
|
+
},
|
|
1148
|
+
"label": {
|
|
1149
|
+
"type": "string",
|
|
1150
|
+
"description": "The field's name in that system's UI; the key when unknown."
|
|
1151
|
+
},
|
|
1152
|
+
"value": {
|
|
1153
|
+
"description": "The value as that system stores it: a string, number, boolean, array, or for Attio its value objects. A picklist holds the option's stored value, not its label."
|
|
1154
|
+
},
|
|
1155
|
+
"custom": {
|
|
1156
|
+
"type": "boolean",
|
|
1157
|
+
"description": "True for a field the customer's team added to that system."
|
|
1158
|
+
}
|
|
1159
|
+
},
|
|
1160
|
+
"required": [
|
|
1161
|
+
"key",
|
|
1162
|
+
"label",
|
|
1163
|
+
"value",
|
|
1164
|
+
"custom"
|
|
1165
|
+
],
|
|
1166
|
+
"additionalProperties": false
|
|
1167
|
+
},
|
|
1168
|
+
"description": "The contact's non-empty fields, sorted by key."
|
|
1169
|
+
},
|
|
1170
|
+
"omittedFields": {
|
|
1171
|
+
"description": "Keys of fields left out so the response stays within its size limit, as many as fit. Ask for them with crmFields.",
|
|
1172
|
+
"type": "array",
|
|
1173
|
+
"items": {
|
|
1174
|
+
"type": "string"
|
|
1175
|
+
}
|
|
1176
|
+
},
|
|
1177
|
+
"omittedFieldCount": {
|
|
1178
|
+
"description": "How many fields were left out, including any not named in omittedFields.",
|
|
1179
|
+
"type": "integer",
|
|
1180
|
+
"minimum": 0,
|
|
1181
|
+
"maximum": 9007199254740991
|
|
1182
|
+
}
|
|
1183
|
+
},
|
|
1184
|
+
"required": [
|
|
1185
|
+
"provider",
|
|
1186
|
+
"connectionId",
|
|
1187
|
+
"contactId",
|
|
1188
|
+
"fields"
|
|
1189
|
+
],
|
|
1190
|
+
"additionalProperties": false
|
|
1191
|
+
}
|
|
1192
|
+
},
|
|
1193
|
+
{
|
|
1194
|
+
"type": "null"
|
|
1195
|
+
}
|
|
1196
|
+
]
|
|
1197
|
+
},
|
|
1198
|
+
"omittedCrmContacts": {
|
|
1199
|
+
"description": "With include crm: how many of this user's linked contacts are left out of crm so the response stays within its size limit. Absent when none are.",
|
|
1200
|
+
"type": "integer",
|
|
1201
|
+
"minimum": 1,
|
|
1202
|
+
"maximum": 9007199254740991
|
|
1203
|
+
},
|
|
1204
|
+
"relationshipRole": {
|
|
1205
|
+
"anyOf": [
|
|
1206
|
+
{
|
|
1207
|
+
"type": "string"
|
|
1208
|
+
},
|
|
1209
|
+
{
|
|
1210
|
+
"type": "null"
|
|
1211
|
+
}
|
|
1212
|
+
]
|
|
1213
|
+
},
|
|
1214
|
+
"jobTitle": {
|
|
1215
|
+
"anyOf": [
|
|
1216
|
+
{
|
|
1217
|
+
"type": "string"
|
|
1218
|
+
},
|
|
1219
|
+
{
|
|
1220
|
+
"type": "null"
|
|
1221
|
+
}
|
|
1222
|
+
]
|
|
1223
|
+
},
|
|
1224
|
+
"department": {
|
|
1225
|
+
"anyOf": [
|
|
1226
|
+
{
|
|
1227
|
+
"type": "string"
|
|
1228
|
+
},
|
|
1229
|
+
{
|
|
1230
|
+
"type": "null"
|
|
1231
|
+
}
|
|
1232
|
+
]
|
|
1233
|
+
},
|
|
1234
|
+
"employmentStartDate": {
|
|
1235
|
+
"anyOf": [
|
|
1236
|
+
{
|
|
1237
|
+
"type": "string",
|
|
1238
|
+
"pattern": "^\\d{4}-\\d{2}-\\d{2}$"
|
|
1239
|
+
},
|
|
1240
|
+
{
|
|
1241
|
+
"type": "null"
|
|
1242
|
+
}
|
|
1243
|
+
]
|
|
1244
|
+
}
|
|
760
1245
|
},
|
|
761
1246
|
"required": [
|
|
762
1247
|
"id",
|
|
@@ -823,6 +1308,7 @@ var publicToolContracts = {
|
|
|
823
1308
|
"annotations": {
|
|
824
1309
|
"readOnlyHint": true,
|
|
825
1310
|
"destructiveHint": false,
|
|
1311
|
+
"idempotentHint": true,
|
|
826
1312
|
"openWorldHint": false
|
|
827
1313
|
},
|
|
828
1314
|
"inputSchema": {
|
|
@@ -1011,10 +1497,11 @@ var publicToolContracts = {
|
|
|
1011
1497
|
"commandVersion": 1,
|
|
1012
1498
|
"ownerDomain": "customers",
|
|
1013
1499
|
"title": "Get Customer",
|
|
1014
|
-
"description": "Get full details for a single customer. Optionally include users (each with their sources: where Outlit found them and the conversations they took part in), revenue, recent activity, engagement metrics,
|
|
1500
|
+
"description": "Get full details for a single customer. Optionally include users (each with their sources: where Outlit found them and the conversations they took part in), revenue, recent activity, engagement metrics, company enrichment, the renewal date and its source, or crm: the CRM and support tool accounts linked to the customer with their own fields (segment, health, stage, lifecycle, owner and custom fields) as stored and the contacts associated with each account; request it when the question is about how that system classifies the account (its stage, segment, health or owner) or who the account's contacts are, and pass crmFields to read only some fields, since an account can carry hundreds; or links: the id of every record in another system linked to the customer (billing customers, CRM and support accounts, product analytics groups, Slack channels). With both users and crm, each user also carries crm: their contact records there, with their own fields. Revenue includes arr, the annualized revenue run rate, exactly as the customer page shows it, with its currency, whether it is an estimate, the revenue lifecycle and the parts it is counted from; amounts are in the billing provider's units for that currency (for USD, EUR, GBP and CAD these are cents: divide by 100, e.g. 1234500 is $12,345, USD; other currencies follow the provider's amount rules). lifetimeRevenueCurrency names lifetimeRevenue's currency.",
|
|
1015
1501
|
"annotations": {
|
|
1016
1502
|
"readOnlyHint": true,
|
|
1017
1503
|
"destructiveHint": false,
|
|
1504
|
+
"idempotentHint": true,
|
|
1018
1505
|
"openWorldHint": false
|
|
1019
1506
|
},
|
|
1020
1507
|
"inputSchema": {
|
|
@@ -1037,7 +1524,10 @@ var publicToolContracts = {
|
|
|
1037
1524
|
"revenue",
|
|
1038
1525
|
"recentTimeline",
|
|
1039
1526
|
"behaviorMetrics",
|
|
1040
|
-
"enrichment"
|
|
1527
|
+
"enrichment",
|
|
1528
|
+
"renewal",
|
|
1529
|
+
"crm",
|
|
1530
|
+
"links"
|
|
1041
1531
|
]
|
|
1042
1532
|
}
|
|
1043
1533
|
},
|
|
@@ -1051,6 +1541,23 @@ var publicToolContracts = {
|
|
|
1051
1541
|
"30d",
|
|
1052
1542
|
"90d"
|
|
1053
1543
|
]
|
|
1544
|
+
},
|
|
1545
|
+
"subscriptions": {
|
|
1546
|
+
"description": "With include revenue only: which subscriptions revenue.subscriptions lists. live (the default when omitted) lists the ones that bill now; all adds canceled ones with endedAt (the 20 most recently ended), for questions like whether a canceled subscription was replaced or why a customer has two billing records.",
|
|
1547
|
+
"type": "string",
|
|
1548
|
+
"enum": [
|
|
1549
|
+
"live",
|
|
1550
|
+
"all"
|
|
1551
|
+
]
|
|
1552
|
+
},
|
|
1553
|
+
"crmFields": {
|
|
1554
|
+
"description": "With include crm only: the CRM fields to return, by key or label (case is ignored), for example the keys an earlier response listed in omittedFields. Send [] (the default) for every field. Applies to the accounts and to the users' contacts.",
|
|
1555
|
+
"maxItems": 100,
|
|
1556
|
+
"type": "array",
|
|
1557
|
+
"items": {
|
|
1558
|
+
"type": "string",
|
|
1559
|
+
"maxLength": 191
|
|
1560
|
+
}
|
|
1054
1561
|
}
|
|
1055
1562
|
},
|
|
1056
1563
|
"required": [
|
|
@@ -1286,97 +1793,587 @@ var publicToolContracts = {
|
|
|
1286
1793
|
},
|
|
1287
1794
|
"description": "Where Outlit found this person: the systems that hold a record of them and the conversations they took part in. Empty when Outlit has no source recorded; absent from servers that predate it."
|
|
1288
1795
|
},
|
|
1796
|
+
"crm": {
|
|
1797
|
+
"description": "With include crm: the contact records in the CRM and support tool that this user is linked to, one entry each, with the contact's own fields as stored there. Empty when the user has no linked contact; null when the read is bound to a past point in time. Absent unless requested, when the section is not enabled for the workspace, or when the size limit left no room for this user (then ask for fewer users or crmFields). The size limit is shared by all users in the response.",
|
|
1798
|
+
"anyOf": [
|
|
1799
|
+
{
|
|
1800
|
+
"type": "array",
|
|
1801
|
+
"items": {
|
|
1802
|
+
"type": "object",
|
|
1803
|
+
"properties": {
|
|
1804
|
+
"provider": {
|
|
1805
|
+
"type": "string",
|
|
1806
|
+
"description": "The system that holds the contact: hubspot, salesforce, attio or pylon."
|
|
1807
|
+
},
|
|
1808
|
+
"connectionId": {
|
|
1809
|
+
"type": "string",
|
|
1810
|
+
"description": "The Outlit integration connection the contact syncs through."
|
|
1811
|
+
},
|
|
1812
|
+
"contactId": {
|
|
1813
|
+
"type": "string",
|
|
1814
|
+
"description": "The contact's id in that system."
|
|
1815
|
+
},
|
|
1816
|
+
"fields": {
|
|
1817
|
+
"type": "array",
|
|
1818
|
+
"items": {
|
|
1819
|
+
"type": "object",
|
|
1820
|
+
"properties": {
|
|
1821
|
+
"key": {
|
|
1822
|
+
"type": "string",
|
|
1823
|
+
"description": "The field's API name or slug in that system."
|
|
1824
|
+
},
|
|
1825
|
+
"label": {
|
|
1826
|
+
"type": "string",
|
|
1827
|
+
"description": "The field's name in that system's UI; the key when unknown."
|
|
1828
|
+
},
|
|
1829
|
+
"value": {
|
|
1830
|
+
"description": "The value as that system stores it: a string, number, boolean, array, or for Attio its value objects. A picklist holds the option's stored value, not its label."
|
|
1831
|
+
},
|
|
1832
|
+
"custom": {
|
|
1833
|
+
"type": "boolean",
|
|
1834
|
+
"description": "True for a field the customer's team added to that system."
|
|
1835
|
+
}
|
|
1836
|
+
},
|
|
1837
|
+
"required": [
|
|
1838
|
+
"key",
|
|
1839
|
+
"label",
|
|
1840
|
+
"value",
|
|
1841
|
+
"custom"
|
|
1842
|
+
],
|
|
1843
|
+
"additionalProperties": false
|
|
1844
|
+
},
|
|
1845
|
+
"description": "The contact's non-empty fields, sorted by key."
|
|
1846
|
+
},
|
|
1847
|
+
"omittedFields": {
|
|
1848
|
+
"description": "Keys of fields left out so the response stays within its size limit, as many as fit. Ask for them with crmFields.",
|
|
1849
|
+
"type": "array",
|
|
1850
|
+
"items": {
|
|
1851
|
+
"type": "string"
|
|
1852
|
+
}
|
|
1853
|
+
},
|
|
1854
|
+
"omittedFieldCount": {
|
|
1855
|
+
"description": "How many fields were left out, including any not named in omittedFields.",
|
|
1856
|
+
"type": "integer",
|
|
1857
|
+
"minimum": 0,
|
|
1858
|
+
"maximum": 9007199254740991
|
|
1859
|
+
}
|
|
1860
|
+
},
|
|
1861
|
+
"required": [
|
|
1862
|
+
"provider",
|
|
1863
|
+
"connectionId",
|
|
1864
|
+
"contactId",
|
|
1865
|
+
"fields"
|
|
1866
|
+
],
|
|
1867
|
+
"additionalProperties": false
|
|
1868
|
+
}
|
|
1869
|
+
},
|
|
1870
|
+
{
|
|
1871
|
+
"type": "null"
|
|
1872
|
+
}
|
|
1873
|
+
]
|
|
1874
|
+
},
|
|
1875
|
+
"omittedCrmContacts": {
|
|
1876
|
+
"description": "With include crm: how many of this user's linked contacts are left out of crm so the response stays within its size limit. Absent when none are.",
|
|
1877
|
+
"type": "integer",
|
|
1878
|
+
"minimum": 1,
|
|
1879
|
+
"maximum": 9007199254740991
|
|
1880
|
+
},
|
|
1289
1881
|
"relationshipRole": {
|
|
1290
1882
|
"anyOf": [
|
|
1291
1883
|
{
|
|
1292
1884
|
"type": "string"
|
|
1293
1885
|
},
|
|
1294
|
-
{
|
|
1295
|
-
"type": "null"
|
|
1296
|
-
}
|
|
1297
|
-
]
|
|
1298
|
-
},
|
|
1299
|
-
"jobTitle": {
|
|
1300
|
-
"anyOf": [
|
|
1301
|
-
{
|
|
1302
|
-
"type": "string"
|
|
1886
|
+
{
|
|
1887
|
+
"type": "null"
|
|
1888
|
+
}
|
|
1889
|
+
]
|
|
1890
|
+
},
|
|
1891
|
+
"jobTitle": {
|
|
1892
|
+
"anyOf": [
|
|
1893
|
+
{
|
|
1894
|
+
"type": "string"
|
|
1895
|
+
},
|
|
1896
|
+
{
|
|
1897
|
+
"type": "null"
|
|
1898
|
+
}
|
|
1899
|
+
]
|
|
1900
|
+
},
|
|
1901
|
+
"department": {
|
|
1902
|
+
"anyOf": [
|
|
1903
|
+
{
|
|
1904
|
+
"type": "string"
|
|
1905
|
+
},
|
|
1906
|
+
{
|
|
1907
|
+
"type": "null"
|
|
1908
|
+
}
|
|
1909
|
+
]
|
|
1910
|
+
},
|
|
1911
|
+
"employmentStartDate": {
|
|
1912
|
+
"anyOf": [
|
|
1913
|
+
{
|
|
1914
|
+
"type": "string",
|
|
1915
|
+
"pattern": "^\\d{4}-\\d{2}-\\d{2}$"
|
|
1916
|
+
},
|
|
1917
|
+
{
|
|
1918
|
+
"type": "null"
|
|
1919
|
+
}
|
|
1920
|
+
]
|
|
1921
|
+
}
|
|
1922
|
+
},
|
|
1923
|
+
"required": [
|
|
1924
|
+
"id",
|
|
1925
|
+
"email",
|
|
1926
|
+
"name",
|
|
1927
|
+
"journeyStage",
|
|
1928
|
+
"lastActivityAt",
|
|
1929
|
+
"relationshipRole",
|
|
1930
|
+
"jobTitle",
|
|
1931
|
+
"department",
|
|
1932
|
+
"employmentStartDate"
|
|
1933
|
+
],
|
|
1934
|
+
"additionalProperties": false
|
|
1935
|
+
}
|
|
1936
|
+
},
|
|
1937
|
+
"revenue": {
|
|
1938
|
+
"type": "object",
|
|
1939
|
+
"properties": {
|
|
1940
|
+
"arr": {
|
|
1941
|
+
"anyOf": [
|
|
1942
|
+
{
|
|
1943
|
+
"type": "object",
|
|
1944
|
+
"properties": {
|
|
1945
|
+
"amount": {
|
|
1946
|
+
"type": "integer",
|
|
1947
|
+
"minimum": 0,
|
|
1948
|
+
"maximum": 9007199254740991,
|
|
1949
|
+
"description": "Annualized revenue run rate, the same ARR figure the customer page shows: an integer in the billing provider's units for `currency`. For USD, EUR, GBP and CAD this is cents: divide by 100 (e.g. 1234500 is $12,345, USD). Other currencies follow the provider's amount rules (Stripe's currency docs), so don't assume a divisor for them. 0 for a churned, paused or trialing customer."
|
|
1950
|
+
},
|
|
1951
|
+
"currency": {
|
|
1952
|
+
"type": "string",
|
|
1953
|
+
"description": "ISO currency code of amount and parts."
|
|
1954
|
+
},
|
|
1955
|
+
"estimated": {
|
|
1956
|
+
"type": "boolean",
|
|
1957
|
+
"description": "The amount includes a usage or per-seat estimate, shown as ~ in the app."
|
|
1958
|
+
},
|
|
1959
|
+
"lifecycle": {
|
|
1960
|
+
"anyOf": [
|
|
1961
|
+
{
|
|
1962
|
+
"type": "string",
|
|
1963
|
+
"enum": [
|
|
1964
|
+
"active",
|
|
1965
|
+
"past_due",
|
|
1966
|
+
"paused",
|
|
1967
|
+
"churned",
|
|
1968
|
+
"trialing"
|
|
1969
|
+
]
|
|
1970
|
+
},
|
|
1971
|
+
{
|
|
1972
|
+
"type": "null"
|
|
1973
|
+
}
|
|
1974
|
+
],
|
|
1975
|
+
"description": "The customer's revenue state; null when unknown."
|
|
1976
|
+
},
|
|
1977
|
+
"parts": {
|
|
1978
|
+
"type": "object",
|
|
1979
|
+
"properties": {
|
|
1980
|
+
"subscriptions": {
|
|
1981
|
+
"anyOf": [
|
|
1982
|
+
{
|
|
1983
|
+
"type": "integer",
|
|
1984
|
+
"minimum": -9007199254740991,
|
|
1985
|
+
"maximum": 9007199254740991
|
|
1986
|
+
},
|
|
1987
|
+
{
|
|
1988
|
+
"type": "null"
|
|
1989
|
+
}
|
|
1990
|
+
],
|
|
1991
|
+
"description": "Active subscriptions at list price, annualized."
|
|
1992
|
+
},
|
|
1993
|
+
"usage": {
|
|
1994
|
+
"anyOf": [
|
|
1995
|
+
{
|
|
1996
|
+
"type": "integer",
|
|
1997
|
+
"minimum": -9007199254740991,
|
|
1998
|
+
"maximum": 9007199254740991
|
|
1999
|
+
},
|
|
2000
|
+
{
|
|
2001
|
+
"type": "null"
|
|
2002
|
+
}
|
|
2003
|
+
],
|
|
2004
|
+
"description": "Annualized usage estimate."
|
|
2005
|
+
},
|
|
2006
|
+
"invoicedLast12Months": {
|
|
2007
|
+
"anyOf": [
|
|
2008
|
+
{
|
|
2009
|
+
"type": "integer",
|
|
2010
|
+
"minimum": -9007199254740991,
|
|
2011
|
+
"maximum": 9007199254740991
|
|
2012
|
+
},
|
|
2013
|
+
{
|
|
2014
|
+
"type": "null"
|
|
2015
|
+
}
|
|
2016
|
+
],
|
|
2017
|
+
"description": "Invoice charges outside any subscription (one-time invoice items, leaving out setup, onboarding and implementation fees and prorations) whose service period began in the last 12 months. Subscription charges are never in it, so it is not the customer's total invoiced."
|
|
2018
|
+
}
|
|
2019
|
+
},
|
|
2020
|
+
"required": [
|
|
2021
|
+
"subscriptions",
|
|
2022
|
+
"usage",
|
|
2023
|
+
"invoicedLast12Months"
|
|
2024
|
+
],
|
|
2025
|
+
"additionalProperties": false,
|
|
2026
|
+
"description": "What amount was counted from, in the same units: the larger of subscriptions plus usage, and invoicedLast12Months. A part is null when unknown or not applicable."
|
|
2027
|
+
}
|
|
2028
|
+
},
|
|
2029
|
+
"required": [
|
|
2030
|
+
"amount",
|
|
2031
|
+
"currency",
|
|
2032
|
+
"estimated",
|
|
2033
|
+
"lifecycle",
|
|
2034
|
+
"parts"
|
|
2035
|
+
],
|
|
2036
|
+
"additionalProperties": false
|
|
2037
|
+
},
|
|
2038
|
+
{
|
|
2039
|
+
"type": "null"
|
|
2040
|
+
}
|
|
2041
|
+
],
|
|
2042
|
+
"description": "Null when the app shows no ARR for this customer."
|
|
2043
|
+
},
|
|
2044
|
+
"lifetimeRevenue": {
|
|
2045
|
+
"type": "number",
|
|
2046
|
+
"description": "Lifetime revenue in the billing provider's units for lifetimeRevenueCurrency, like arr.amount: cents for USD, EUR, GBP and CAD, so divide by 100. Other currencies follow the provider's amount rules, so don't assume a divisor for them."
|
|
2047
|
+
},
|
|
2048
|
+
"lifetimeRevenueCurrency": {
|
|
2049
|
+
"description": "ISO currency code of lifetimeRevenue; null when nothing has been paid or the currency is unknown.",
|
|
2050
|
+
"anyOf": [
|
|
2051
|
+
{
|
|
2052
|
+
"type": "string"
|
|
2053
|
+
},
|
|
2054
|
+
{
|
|
2055
|
+
"type": "null"
|
|
2056
|
+
}
|
|
2057
|
+
]
|
|
2058
|
+
},
|
|
2059
|
+
"activeSubscriptions": {
|
|
2060
|
+
"type": "integer",
|
|
2061
|
+
"minimum": 0,
|
|
2062
|
+
"maximum": 9007199254740991,
|
|
2063
|
+
"description": "Subscriptions that bill now: active, trialing or past due. billingStatus says whether payments are behind."
|
|
2064
|
+
},
|
|
2065
|
+
"subscriptions": {
|
|
2066
|
+
"description": "The customer's live subscriptions in the billing provider (active, past due, paused or trialing) with every item, including items an invoice skips in a given cycle. With input subscriptions all, canceled subscriptions follow the live ones, most recently ended first (at most 20). Absent when unavailable.",
|
|
2067
|
+
"type": "array",
|
|
2068
|
+
"items": {
|
|
2069
|
+
"type": "object",
|
|
2070
|
+
"properties": {
|
|
2071
|
+
"id": {
|
|
2072
|
+
"type": "string",
|
|
2073
|
+
"description": "The billing provider's subscription id (sub_...)."
|
|
2074
|
+
},
|
|
2075
|
+
"status": {
|
|
2076
|
+
"type": "string",
|
|
2077
|
+
"description": "The provider's own status: active, past_due, paused or trialing, and with subscriptions all also canceled."
|
|
2078
|
+
},
|
|
2079
|
+
"paused": {
|
|
2080
|
+
"type": "boolean",
|
|
2081
|
+
"description": "Collection is paused."
|
|
2082
|
+
},
|
|
2083
|
+
"currentPeriodEnd": {
|
|
2084
|
+
"anyOf": [
|
|
2085
|
+
{
|
|
2086
|
+
"type": "string",
|
|
2087
|
+
"format": "date-time",
|
|
2088
|
+
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
|
|
2089
|
+
},
|
|
2090
|
+
{
|
|
2091
|
+
"type": "null"
|
|
2092
|
+
}
|
|
2093
|
+
],
|
|
2094
|
+
"description": "End of the current billing period. With items on different intervals it is the shortest interval's period, not the term."
|
|
2095
|
+
},
|
|
2096
|
+
"cancelAtPeriodEnd": {
|
|
2097
|
+
"anyOf": [
|
|
2098
|
+
{
|
|
2099
|
+
"type": "boolean"
|
|
2100
|
+
},
|
|
2101
|
+
{
|
|
2102
|
+
"type": "null"
|
|
2103
|
+
}
|
|
2104
|
+
],
|
|
2105
|
+
"description": "The subscription is set to end at currentPeriodEnd instead of renewing. Null when unknown: Outlit's stored billing data predates it, and cancelAt is then null too."
|
|
2106
|
+
},
|
|
2107
|
+
"cancelAt": {
|
|
2108
|
+
"anyOf": [
|
|
2109
|
+
{
|
|
2110
|
+
"type": "string",
|
|
2111
|
+
"format": "date-time",
|
|
2112
|
+
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
|
|
2113
|
+
},
|
|
2114
|
+
{
|
|
2115
|
+
"type": "null"
|
|
2116
|
+
}
|
|
2117
|
+
],
|
|
2118
|
+
"description": "When a scheduled cancellation ends the subscription; null when none is scheduled or unknown."
|
|
2119
|
+
},
|
|
2120
|
+
"items": {
|
|
2121
|
+
"type": "array",
|
|
2122
|
+
"items": {
|
|
2123
|
+
"type": "object",
|
|
2124
|
+
"properties": {
|
|
2125
|
+
"productId": {
|
|
2126
|
+
"anyOf": [
|
|
2127
|
+
{
|
|
2128
|
+
"type": "string"
|
|
2129
|
+
},
|
|
2130
|
+
{
|
|
2131
|
+
"type": "null"
|
|
2132
|
+
}
|
|
2133
|
+
],
|
|
2134
|
+
"description": "The billing provider's product id (prod_...)."
|
|
2135
|
+
},
|
|
2136
|
+
"productName": {
|
|
2137
|
+
"anyOf": [
|
|
2138
|
+
{
|
|
2139
|
+
"type": "string"
|
|
2140
|
+
},
|
|
2141
|
+
{
|
|
2142
|
+
"type": "null"
|
|
2143
|
+
}
|
|
2144
|
+
],
|
|
2145
|
+
"description": "The product's name in the billing provider; null when Outlit has not synced it."
|
|
2146
|
+
},
|
|
2147
|
+
"priceId": {
|
|
2148
|
+
"anyOf": [
|
|
2149
|
+
{
|
|
2150
|
+
"type": "string"
|
|
2151
|
+
},
|
|
2152
|
+
{
|
|
2153
|
+
"type": "null"
|
|
2154
|
+
}
|
|
2155
|
+
],
|
|
2156
|
+
"description": "The billing provider's price id (price_...)."
|
|
2157
|
+
},
|
|
2158
|
+
"quantity": {
|
|
2159
|
+
"anyOf": [
|
|
2160
|
+
{
|
|
2161
|
+
"type": "number"
|
|
2162
|
+
},
|
|
2163
|
+
{
|
|
2164
|
+
"type": "null"
|
|
2165
|
+
}
|
|
2166
|
+
],
|
|
2167
|
+
"description": "Units (seats) on a licensed item; null when unset."
|
|
2168
|
+
},
|
|
2169
|
+
"unitAmount": {
|
|
2170
|
+
"anyOf": [
|
|
2171
|
+
{
|
|
2172
|
+
"type": "number"
|
|
2173
|
+
},
|
|
2174
|
+
{
|
|
2175
|
+
"type": "null"
|
|
2176
|
+
}
|
|
2177
|
+
],
|
|
2178
|
+
"description": "List price per unit for one billing interval, in the same units as arr.amount; null when the price has no single unit amount (tiers)."
|
|
2179
|
+
},
|
|
2180
|
+
"currency": {
|
|
2181
|
+
"type": "string",
|
|
2182
|
+
"description": "ISO currency code of unitAmount."
|
|
2183
|
+
},
|
|
2184
|
+
"interval": {
|
|
2185
|
+
"anyOf": [
|
|
2186
|
+
{
|
|
2187
|
+
"type": "string",
|
|
2188
|
+
"enum": [
|
|
2189
|
+
"day",
|
|
2190
|
+
"week",
|
|
2191
|
+
"month",
|
|
2192
|
+
"year"
|
|
2193
|
+
]
|
|
2194
|
+
},
|
|
2195
|
+
{
|
|
2196
|
+
"type": "null"
|
|
2197
|
+
}
|
|
2198
|
+
]
|
|
2199
|
+
},
|
|
2200
|
+
"intervalCount": {
|
|
2201
|
+
"anyOf": [
|
|
2202
|
+
{
|
|
2203
|
+
"type": "number"
|
|
2204
|
+
},
|
|
2205
|
+
{
|
|
2206
|
+
"type": "null"
|
|
2207
|
+
}
|
|
2208
|
+
],
|
|
2209
|
+
"description": "Billing intervals per charge, e.g. 3 months."
|
|
2210
|
+
},
|
|
2211
|
+
"usageType": {
|
|
2212
|
+
"anyOf": [
|
|
2213
|
+
{
|
|
2214
|
+
"type": "string",
|
|
2215
|
+
"enum": [
|
|
2216
|
+
"licensed",
|
|
2217
|
+
"metered"
|
|
2218
|
+
]
|
|
2219
|
+
},
|
|
2220
|
+
{
|
|
2221
|
+
"type": "null"
|
|
2222
|
+
}
|
|
2223
|
+
],
|
|
2224
|
+
"description": "licensed bills a fixed quantity; metered bills reported usage."
|
|
2225
|
+
},
|
|
2226
|
+
"billingScheme": {
|
|
2227
|
+
"anyOf": [
|
|
2228
|
+
{
|
|
2229
|
+
"type": "string",
|
|
2230
|
+
"enum": [
|
|
2231
|
+
"per_unit",
|
|
2232
|
+
"tiered"
|
|
2233
|
+
]
|
|
2234
|
+
},
|
|
2235
|
+
{
|
|
2236
|
+
"type": "null"
|
|
2237
|
+
}
|
|
2238
|
+
]
|
|
2239
|
+
}
|
|
2240
|
+
},
|
|
2241
|
+
"required": [
|
|
2242
|
+
"productId",
|
|
2243
|
+
"productName",
|
|
2244
|
+
"priceId",
|
|
2245
|
+
"quantity",
|
|
2246
|
+
"unitAmount",
|
|
2247
|
+
"currency",
|
|
2248
|
+
"interval",
|
|
2249
|
+
"intervalCount",
|
|
2250
|
+
"usageType",
|
|
2251
|
+
"billingScheme"
|
|
2252
|
+
],
|
|
2253
|
+
"additionalProperties": false
|
|
2254
|
+
},
|
|
2255
|
+
"description": "Every item on the subscription. Empty for a canceled one, whose stored snapshot lists no items."
|
|
2256
|
+
},
|
|
2257
|
+
"billingAccountId": {
|
|
2258
|
+
"anyOf": [
|
|
2259
|
+
{
|
|
2260
|
+
"type": "string"
|
|
2261
|
+
},
|
|
2262
|
+
{
|
|
2263
|
+
"type": "null"
|
|
2264
|
+
}
|
|
2265
|
+
],
|
|
2266
|
+
"description": "The Stripe customer id (cus_...) the subscription bills through; null when unknown. Match it against revenue.billingAccounts."
|
|
2267
|
+
},
|
|
2268
|
+
"endedAt": {
|
|
2269
|
+
"anyOf": [
|
|
2270
|
+
{
|
|
2271
|
+
"type": "string",
|
|
2272
|
+
"format": "date-time",
|
|
2273
|
+
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
|
|
2274
|
+
},
|
|
2275
|
+
{
|
|
2276
|
+
"type": "null"
|
|
2277
|
+
}
|
|
2278
|
+
],
|
|
2279
|
+
"description": "When the subscription ended; null while it is live."
|
|
2280
|
+
}
|
|
2281
|
+
},
|
|
2282
|
+
"required": [
|
|
2283
|
+
"id",
|
|
2284
|
+
"status",
|
|
2285
|
+
"paused",
|
|
2286
|
+
"currentPeriodEnd",
|
|
2287
|
+
"cancelAtPeriodEnd",
|
|
2288
|
+
"cancelAt",
|
|
2289
|
+
"items",
|
|
2290
|
+
"billingAccountId",
|
|
2291
|
+
"endedAt"
|
|
2292
|
+
],
|
|
2293
|
+
"additionalProperties": false
|
|
2294
|
+
}
|
|
2295
|
+
},
|
|
2296
|
+
"billingAccounts": {
|
|
2297
|
+
"description": "Every Stripe customer behind this customer, including ones on customers merged into it, sorted by id. Absent when it can't be read.",
|
|
2298
|
+
"type": "array",
|
|
2299
|
+
"items": {
|
|
2300
|
+
"type": "object",
|
|
2301
|
+
"properties": {
|
|
2302
|
+
"provider": {
|
|
2303
|
+
"type": "string",
|
|
2304
|
+
"const": "stripe"
|
|
2305
|
+
},
|
|
2306
|
+
"id": {
|
|
2307
|
+
"type": "string"
|
|
2308
|
+
}
|
|
2309
|
+
},
|
|
2310
|
+
"required": [
|
|
2311
|
+
"provider",
|
|
2312
|
+
"id"
|
|
2313
|
+
],
|
|
2314
|
+
"additionalProperties": false
|
|
2315
|
+
}
|
|
2316
|
+
},
|
|
2317
|
+
"overdueInvoices": {
|
|
2318
|
+
"description": "Open invoices past their due date that still owe money, oldest due first (at most 20). Empty when none is overdue; absent when unavailable.",
|
|
2319
|
+
"maxItems": 20,
|
|
2320
|
+
"type": "array",
|
|
2321
|
+
"items": {
|
|
2322
|
+
"type": "object",
|
|
2323
|
+
"properties": {
|
|
2324
|
+
"id": {
|
|
2325
|
+
"type": "string",
|
|
2326
|
+
"description": "The invoice id (in_...); read it with outlit_get_source INVOICE."
|
|
2327
|
+
},
|
|
2328
|
+
"number": {
|
|
2329
|
+
"anyOf": [
|
|
2330
|
+
{
|
|
2331
|
+
"type": "string"
|
|
2332
|
+
},
|
|
2333
|
+
{
|
|
2334
|
+
"type": "null"
|
|
2335
|
+
}
|
|
2336
|
+
]
|
|
1303
2337
|
},
|
|
1304
|
-
{
|
|
1305
|
-
"type": "
|
|
1306
|
-
|
|
1307
|
-
]
|
|
1308
|
-
},
|
|
1309
|
-
"department": {
|
|
1310
|
-
"anyOf": [
|
|
1311
|
-
{
|
|
1312
|
-
"type": "string"
|
|
2338
|
+
"amountRemaining": {
|
|
2339
|
+
"type": "number",
|
|
2340
|
+
"description": "Still owed, in the billing provider's minor units for currency."
|
|
1313
2341
|
},
|
|
1314
|
-
{
|
|
1315
|
-
"
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
2342
|
+
"currency": {
|
|
2343
|
+
"anyOf": [
|
|
2344
|
+
{
|
|
2345
|
+
"type": "string"
|
|
2346
|
+
},
|
|
2347
|
+
{
|
|
2348
|
+
"type": "null"
|
|
2349
|
+
}
|
|
2350
|
+
]
|
|
2351
|
+
},
|
|
2352
|
+
"dueDate": {
|
|
1322
2353
|
"type": "string",
|
|
1323
|
-
"
|
|
2354
|
+
"format": "date-time",
|
|
2355
|
+
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
|
|
1324
2356
|
},
|
|
1325
|
-
{
|
|
1326
|
-
"type": "
|
|
2357
|
+
"daysOverdue": {
|
|
2358
|
+
"type": "integer",
|
|
2359
|
+
"minimum": 0,
|
|
2360
|
+
"maximum": 9007199254740991
|
|
1327
2361
|
}
|
|
1328
|
-
]
|
|
1329
|
-
}
|
|
1330
|
-
},
|
|
1331
|
-
"required": [
|
|
1332
|
-
"id",
|
|
1333
|
-
"email",
|
|
1334
|
-
"name",
|
|
1335
|
-
"journeyStage",
|
|
1336
|
-
"lastActivityAt",
|
|
1337
|
-
"relationshipRole",
|
|
1338
|
-
"jobTitle",
|
|
1339
|
-
"department",
|
|
1340
|
-
"employmentStartDate"
|
|
1341
|
-
],
|
|
1342
|
-
"additionalProperties": false
|
|
1343
|
-
}
|
|
1344
|
-
},
|
|
1345
|
-
"revenue": {
|
|
1346
|
-
"type": "object",
|
|
1347
|
-
"properties": {
|
|
1348
|
-
"currentMrr": {
|
|
1349
|
-
"anyOf": [
|
|
1350
|
-
{
|
|
1351
|
-
"type": "number"
|
|
1352
2362
|
},
|
|
1353
|
-
|
|
1354
|
-
"
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
"mixed_currency",
|
|
1364
|
-
"unavailable"
|
|
1365
|
-
]
|
|
1366
|
-
},
|
|
1367
|
-
"lifetimeRevenue": {
|
|
1368
|
-
"type": "number",
|
|
1369
|
-
"description": "Lifetime revenue in the billing provider's units for the currency it was billed in, like currentMrr: cents for USD, EUR, GBP and CAD, so divide by 100. Other currencies follow the provider's amount rules, so don't assume a divisor for them."
|
|
1370
|
-
},
|
|
1371
|
-
"activeSubscriptions": {
|
|
1372
|
-
"type": "integer",
|
|
1373
|
-
"minimum": 0,
|
|
1374
|
-
"maximum": 9007199254740991
|
|
2363
|
+
"required": [
|
|
2364
|
+
"id",
|
|
2365
|
+
"number",
|
|
2366
|
+
"amountRemaining",
|
|
2367
|
+
"currency",
|
|
2368
|
+
"dueDate",
|
|
2369
|
+
"daysOverdue"
|
|
2370
|
+
],
|
|
2371
|
+
"additionalProperties": false
|
|
2372
|
+
}
|
|
1375
2373
|
}
|
|
1376
2374
|
},
|
|
1377
2375
|
"required": [
|
|
1378
|
-
"
|
|
1379
|
-
"mrrCalculationStatus",
|
|
2376
|
+
"arr",
|
|
1380
2377
|
"lifetimeRevenue",
|
|
1381
2378
|
"activeSubscriptions"
|
|
1382
2379
|
],
|
|
@@ -1846,37 +2843,364 @@ var publicToolContracts = {
|
|
|
1846
2843
|
"class": {
|
|
1847
2844
|
"type": "string"
|
|
1848
2845
|
},
|
|
1849
|
-
"message": {
|
|
1850
|
-
"type": "string"
|
|
2846
|
+
"message": {
|
|
2847
|
+
"type": "string"
|
|
2848
|
+
},
|
|
2849
|
+
"retryable": {
|
|
2850
|
+
"type": "boolean"
|
|
2851
|
+
}
|
|
2852
|
+
},
|
|
2853
|
+
"required": [
|
|
2854
|
+
"class",
|
|
2855
|
+
"message"
|
|
2856
|
+
],
|
|
2857
|
+
"additionalProperties": false
|
|
2858
|
+
},
|
|
2859
|
+
{
|
|
2860
|
+
"type": "null"
|
|
2861
|
+
}
|
|
2862
|
+
]
|
|
2863
|
+
}
|
|
2864
|
+
},
|
|
2865
|
+
"required": [
|
|
2866
|
+
"status",
|
|
2867
|
+
"provider",
|
|
2868
|
+
"providerEntityId",
|
|
2869
|
+
"summary",
|
|
2870
|
+
"match",
|
|
2871
|
+
"lastSuccessfulRefreshAt",
|
|
2872
|
+
"lastAttemptAt",
|
|
2873
|
+
"expiresAt",
|
|
2874
|
+
"error"
|
|
2875
|
+
],
|
|
2876
|
+
"additionalProperties": false
|
|
2877
|
+
},
|
|
2878
|
+
"renewal": {
|
|
2879
|
+
"description": "The renewal date the customer page shows, with its source; null when the customer has none",
|
|
2880
|
+
"anyOf": [
|
|
2881
|
+
{
|
|
2882
|
+
"type": "object",
|
|
2883
|
+
"properties": {
|
|
2884
|
+
"date": {
|
|
2885
|
+
"type": "string",
|
|
2886
|
+
"description": "Renewal date, YYYY-MM-DD"
|
|
2887
|
+
},
|
|
2888
|
+
"source": {
|
|
2889
|
+
"type": "string",
|
|
2890
|
+
"enum": [
|
|
2891
|
+
"outlit",
|
|
2892
|
+
"crm",
|
|
2893
|
+
"billing"
|
|
2894
|
+
],
|
|
2895
|
+
"description": "Where the date comes from: set in Outlit, a CRM opportunity, or the billing period of a yearly subscription"
|
|
2896
|
+
}
|
|
2897
|
+
},
|
|
2898
|
+
"required": [
|
|
2899
|
+
"date",
|
|
2900
|
+
"source"
|
|
2901
|
+
],
|
|
2902
|
+
"additionalProperties": false
|
|
2903
|
+
},
|
|
2904
|
+
{
|
|
2905
|
+
"type": "null"
|
|
2906
|
+
}
|
|
2907
|
+
]
|
|
2908
|
+
},
|
|
2909
|
+
"crm": {
|
|
2910
|
+
"description": "The CRM and support tool accounts linked to this customer, one entry each, with the account's own fields (segment, health, stage, owner and custom fields) as stored there and its associated contacts. Opt-in because an account can carry hundreds of fields. Absent when the section is not enabled for the workspace; null when the read is bound to a past point in time.",
|
|
2911
|
+
"anyOf": [
|
|
2912
|
+
{
|
|
2913
|
+
"type": "array",
|
|
2914
|
+
"items": {
|
|
2915
|
+
"type": "object",
|
|
2916
|
+
"properties": {
|
|
2917
|
+
"provider": {
|
|
2918
|
+
"type": "string",
|
|
2919
|
+
"description": "The system that holds the account: hubspot, salesforce, attio or pylon."
|
|
2920
|
+
},
|
|
2921
|
+
"connectionId": {
|
|
2922
|
+
"type": "string",
|
|
2923
|
+
"description": "The Outlit integration connection the account syncs through."
|
|
2924
|
+
},
|
|
2925
|
+
"accountId": {
|
|
2926
|
+
"type": "string",
|
|
2927
|
+
"description": "The account's id in that system."
|
|
2928
|
+
},
|
|
2929
|
+
"name": {
|
|
2930
|
+
"anyOf": [
|
|
2931
|
+
{
|
|
2932
|
+
"type": "string"
|
|
2933
|
+
},
|
|
2934
|
+
{
|
|
2935
|
+
"type": "null"
|
|
2936
|
+
}
|
|
2937
|
+
],
|
|
2938
|
+
"description": "The account's name in that system."
|
|
2939
|
+
},
|
|
2940
|
+
"owner": {
|
|
2941
|
+
"anyOf": [
|
|
2942
|
+
{
|
|
2943
|
+
"type": "object",
|
|
2944
|
+
"properties": {
|
|
2945
|
+
"name": {
|
|
2946
|
+
"anyOf": [
|
|
2947
|
+
{
|
|
2948
|
+
"type": "string"
|
|
2949
|
+
},
|
|
2950
|
+
{
|
|
2951
|
+
"type": "null"
|
|
2952
|
+
}
|
|
2953
|
+
]
|
|
2954
|
+
},
|
|
2955
|
+
"email": {
|
|
2956
|
+
"anyOf": [
|
|
2957
|
+
{
|
|
2958
|
+
"type": "string"
|
|
2959
|
+
},
|
|
2960
|
+
{
|
|
2961
|
+
"type": "null"
|
|
2962
|
+
}
|
|
2963
|
+
]
|
|
2964
|
+
}
|
|
2965
|
+
},
|
|
2966
|
+
"required": [
|
|
2967
|
+
"name",
|
|
2968
|
+
"email"
|
|
2969
|
+
],
|
|
2970
|
+
"additionalProperties": false
|
|
2971
|
+
},
|
|
2972
|
+
{
|
|
2973
|
+
"type": "null"
|
|
2974
|
+
}
|
|
2975
|
+
],
|
|
2976
|
+
"description": "The account owner as that system records it; null when it records none. Not Outlit's customer owner."
|
|
2977
|
+
},
|
|
2978
|
+
"recordUpdatedAt": {
|
|
2979
|
+
"anyOf": [
|
|
2980
|
+
{
|
|
2981
|
+
"type": "string"
|
|
2982
|
+
},
|
|
2983
|
+
{
|
|
2984
|
+
"type": "null"
|
|
2985
|
+
}
|
|
2986
|
+
],
|
|
2987
|
+
"description": "When that system last modified the account, ISO 8601. A Salesforce formula field can change without moving it, so such a value may lag until the account next changes."
|
|
2988
|
+
},
|
|
2989
|
+
"contacts": {
|
|
2990
|
+
"type": "array",
|
|
2991
|
+
"items": {
|
|
2992
|
+
"type": "object",
|
|
2993
|
+
"properties": {
|
|
2994
|
+
"contactId": {
|
|
2995
|
+
"type": "string",
|
|
2996
|
+
"description": "The contact's id in that system."
|
|
2997
|
+
},
|
|
2998
|
+
"name": {
|
|
2999
|
+
"anyOf": [
|
|
3000
|
+
{
|
|
3001
|
+
"type": "string"
|
|
3002
|
+
},
|
|
3003
|
+
{
|
|
3004
|
+
"type": "null"
|
|
3005
|
+
}
|
|
3006
|
+
]
|
|
3007
|
+
},
|
|
3008
|
+
"email": {
|
|
3009
|
+
"anyOf": [
|
|
3010
|
+
{
|
|
3011
|
+
"type": "string"
|
|
3012
|
+
},
|
|
3013
|
+
{
|
|
3014
|
+
"type": "null"
|
|
3015
|
+
}
|
|
3016
|
+
]
|
|
3017
|
+
},
|
|
3018
|
+
"title": {
|
|
3019
|
+
"anyOf": [
|
|
3020
|
+
{
|
|
3021
|
+
"type": "string"
|
|
3022
|
+
},
|
|
3023
|
+
{
|
|
3024
|
+
"type": "null"
|
|
3025
|
+
}
|
|
3026
|
+
],
|
|
3027
|
+
"description": "The contact's job title there."
|
|
3028
|
+
},
|
|
3029
|
+
"userId": {
|
|
3030
|
+
"anyOf": [
|
|
3031
|
+
{
|
|
3032
|
+
"type": "string"
|
|
3033
|
+
},
|
|
3034
|
+
{
|
|
3035
|
+
"type": "null"
|
|
3036
|
+
}
|
|
3037
|
+
],
|
|
3038
|
+
"description": "The id of this customer's user with that contact or email; null when the person is not one of its users, for example someone on another email domain."
|
|
3039
|
+
}
|
|
3040
|
+
},
|
|
3041
|
+
"required": [
|
|
3042
|
+
"contactId",
|
|
3043
|
+
"name",
|
|
3044
|
+
"email",
|
|
3045
|
+
"title",
|
|
3046
|
+
"userId"
|
|
3047
|
+
],
|
|
3048
|
+
"additionalProperties": false
|
|
3049
|
+
},
|
|
3050
|
+
"description": "The contacts that system associates with the account, whatever their email domain, most recently modified first, at most 25."
|
|
3051
|
+
},
|
|
3052
|
+
"omittedContactCount": {
|
|
3053
|
+
"description": "How many more associated contacts there are beyond those listed.",
|
|
3054
|
+
"type": "integer",
|
|
3055
|
+
"minimum": 1,
|
|
3056
|
+
"maximum": 9007199254740991
|
|
3057
|
+
},
|
|
3058
|
+
"fields": {
|
|
3059
|
+
"type": "array",
|
|
3060
|
+
"items": {
|
|
3061
|
+
"type": "object",
|
|
3062
|
+
"properties": {
|
|
3063
|
+
"key": {
|
|
3064
|
+
"type": "string",
|
|
3065
|
+
"description": "The field's API name or slug in that system."
|
|
3066
|
+
},
|
|
3067
|
+
"label": {
|
|
3068
|
+
"type": "string",
|
|
3069
|
+
"description": "The field's name in that system's UI; the key when unknown."
|
|
3070
|
+
},
|
|
3071
|
+
"value": {
|
|
3072
|
+
"description": "The value as that system stores it: a string, number, boolean, array, or for Attio its value objects. A picklist holds the option's stored value, not its label."
|
|
3073
|
+
},
|
|
3074
|
+
"custom": {
|
|
3075
|
+
"type": "boolean",
|
|
3076
|
+
"description": "True for a field the customer's team added to that system."
|
|
3077
|
+
}
|
|
3078
|
+
},
|
|
3079
|
+
"required": [
|
|
3080
|
+
"key",
|
|
3081
|
+
"label",
|
|
3082
|
+
"value",
|
|
3083
|
+
"custom"
|
|
3084
|
+
],
|
|
3085
|
+
"additionalProperties": false
|
|
1851
3086
|
},
|
|
1852
|
-
"
|
|
1853
|
-
|
|
3087
|
+
"description": "The account's non-empty fields, sorted by key."
|
|
3088
|
+
},
|
|
3089
|
+
"omittedFields": {
|
|
3090
|
+
"description": "Keys of fields left out so the response stays within its size limit, as many as fit. Ask for them with crmFields.",
|
|
3091
|
+
"type": "array",
|
|
3092
|
+
"items": {
|
|
3093
|
+
"type": "string"
|
|
1854
3094
|
}
|
|
1855
3095
|
},
|
|
1856
|
-
"
|
|
1857
|
-
"
|
|
1858
|
-
"
|
|
1859
|
-
|
|
1860
|
-
|
|
3096
|
+
"omittedFieldCount": {
|
|
3097
|
+
"description": "How many fields were left out, including any not named in omittedFields.",
|
|
3098
|
+
"type": "integer",
|
|
3099
|
+
"minimum": 0,
|
|
3100
|
+
"maximum": 9007199254740991
|
|
3101
|
+
}
|
|
1861
3102
|
},
|
|
1862
|
-
|
|
1863
|
-
"
|
|
3103
|
+
"required": [
|
|
3104
|
+
"provider",
|
|
3105
|
+
"connectionId",
|
|
3106
|
+
"accountId",
|
|
3107
|
+
"name",
|
|
3108
|
+
"owner",
|
|
3109
|
+
"recordUpdatedAt",
|
|
3110
|
+
"contacts",
|
|
3111
|
+
"fields"
|
|
3112
|
+
],
|
|
3113
|
+
"additionalProperties": false
|
|
3114
|
+
}
|
|
3115
|
+
},
|
|
3116
|
+
{
|
|
3117
|
+
"type": "null"
|
|
3118
|
+
}
|
|
3119
|
+
]
|
|
3120
|
+
},
|
|
3121
|
+
"links": {
|
|
3122
|
+
"description": "Every record in another system linked to this customer, including records still held by customers merged into it: billing customers, CRM and support accounts, product analytics groups and accounts, Slack channels and the product's own customer id. A record is listed only when its id in that system is known. Use it to tell whether two customers share a record, or to name the record to look up in that system; for a CRM account's own fields use include crm. Ordered by kind, provider and id. Null when the read is bound to a past point in time.",
|
|
3123
|
+
"anyOf": [
|
|
3124
|
+
{
|
|
3125
|
+
"type": "object",
|
|
3126
|
+
"properties": {
|
|
3127
|
+
"records": {
|
|
3128
|
+
"type": "array",
|
|
3129
|
+
"items": {
|
|
3130
|
+
"type": "object",
|
|
3131
|
+
"properties": {
|
|
3132
|
+
"kind": {
|
|
3133
|
+
"type": "string",
|
|
3134
|
+
"enum": [
|
|
3135
|
+
"billing_customer",
|
|
3136
|
+
"crm_account",
|
|
3137
|
+
"support_account",
|
|
3138
|
+
"analytics_group",
|
|
3139
|
+
"analytics_account",
|
|
3140
|
+
"slack_channel",
|
|
3141
|
+
"slack_workspace",
|
|
3142
|
+
"external_organization"
|
|
3143
|
+
],
|
|
3144
|
+
"description": "What the record is: a billing customer (such as a Stripe customer), a CRM or support account, a product analytics group or account, a Slack channel or workspace, or the customer's id in the product's own sign-up system."
|
|
3145
|
+
},
|
|
3146
|
+
"provider": {
|
|
3147
|
+
"anyOf": [
|
|
3148
|
+
{
|
|
3149
|
+
"type": "string"
|
|
3150
|
+
},
|
|
3151
|
+
{
|
|
3152
|
+
"type": "null"
|
|
3153
|
+
}
|
|
3154
|
+
],
|
|
3155
|
+
"description": "The system that holds the record, such as stripe, hubspot or posthog; null when unknown."
|
|
3156
|
+
},
|
|
3157
|
+
"id": {
|
|
3158
|
+
"type": "string",
|
|
3159
|
+
"description": "The record's id in that system, such as a Stripe customer id (cus_...)."
|
|
3160
|
+
},
|
|
3161
|
+
"connectionId": {
|
|
3162
|
+
"anyOf": [
|
|
3163
|
+
{
|
|
3164
|
+
"type": "string"
|
|
3165
|
+
},
|
|
3166
|
+
{
|
|
3167
|
+
"type": "null"
|
|
3168
|
+
}
|
|
3169
|
+
],
|
|
3170
|
+
"description": "The Outlit integration connection the record came through; null when none names it."
|
|
3171
|
+
},
|
|
3172
|
+
"linkedAt": {
|
|
3173
|
+
"type": "string",
|
|
3174
|
+
"description": "When Outlit linked the record to this customer, ISO 8601. Outlit's own time, not a fact about the customer."
|
|
3175
|
+
}
|
|
3176
|
+
},
|
|
3177
|
+
"required": [
|
|
3178
|
+
"kind",
|
|
3179
|
+
"provider",
|
|
3180
|
+
"id",
|
|
3181
|
+
"connectionId",
|
|
3182
|
+
"linkedAt"
|
|
3183
|
+
],
|
|
3184
|
+
"additionalProperties": false
|
|
3185
|
+
}
|
|
3186
|
+
},
|
|
3187
|
+
"omitted": {
|
|
3188
|
+
"type": "integer",
|
|
3189
|
+
"minimum": 0,
|
|
3190
|
+
"maximum": 9007199254740991,
|
|
3191
|
+
"description": "How many more linked records exist beyond the first 50, which are left out."
|
|
1864
3192
|
}
|
|
1865
|
-
|
|
3193
|
+
},
|
|
3194
|
+
"required": [
|
|
3195
|
+
"records",
|
|
3196
|
+
"omitted"
|
|
3197
|
+
],
|
|
3198
|
+
"additionalProperties": false
|
|
3199
|
+
},
|
|
3200
|
+
{
|
|
3201
|
+
"type": "null"
|
|
1866
3202
|
}
|
|
1867
|
-
|
|
1868
|
-
"required": [
|
|
1869
|
-
"status",
|
|
1870
|
-
"provider",
|
|
1871
|
-
"providerEntityId",
|
|
1872
|
-
"summary",
|
|
1873
|
-
"match",
|
|
1874
|
-
"lastSuccessfulRefreshAt",
|
|
1875
|
-
"lastAttemptAt",
|
|
1876
|
-
"expiresAt",
|
|
1877
|
-
"error"
|
|
1878
|
-
],
|
|
1879
|
-
"additionalProperties": false
|
|
3203
|
+
]
|
|
1880
3204
|
}
|
|
1881
3205
|
},
|
|
1882
3206
|
"required": [
|
|
@@ -1895,6 +3219,7 @@ var publicToolContracts = {
|
|
|
1895
3219
|
"annotations": {
|
|
1896
3220
|
"readOnlyHint": true,
|
|
1897
3221
|
"destructiveHint": false,
|
|
3222
|
+
"idempotentHint": true,
|
|
1898
3223
|
"openWorldHint": false
|
|
1899
3224
|
},
|
|
1900
3225
|
"inputSchema": {
|
|
@@ -2051,6 +3376,7 @@ var publicToolContracts = {
|
|
|
2051
3376
|
"annotations": {
|
|
2052
3377
|
"readOnlyHint": false,
|
|
2053
3378
|
"destructiveHint": false,
|
|
3379
|
+
"idempotentHint": false,
|
|
2054
3380
|
"openWorldHint": false
|
|
2055
3381
|
},
|
|
2056
3382
|
"inputSchema": {
|
|
@@ -2111,7 +3437,8 @@ var publicToolContracts = {
|
|
|
2111
3437
|
"description": "Share a customer with an active workspace member as a Viewer or Editor. The customer ID must be exact.",
|
|
2112
3438
|
"annotations": {
|
|
2113
3439
|
"readOnlyHint": false,
|
|
2114
|
-
"destructiveHint":
|
|
3440
|
+
"destructiveHint": true,
|
|
3441
|
+
"idempotentHint": true,
|
|
2115
3442
|
"openWorldHint": false
|
|
2116
3443
|
},
|
|
2117
3444
|
"inputSchema": {
|
|
@@ -2197,7 +3524,8 @@ var publicToolContracts = {
|
|
|
2197
3524
|
"description": "Change an existing customer collaborator between Viewer and Editor.",
|
|
2198
3525
|
"annotations": {
|
|
2199
3526
|
"readOnlyHint": false,
|
|
2200
|
-
"destructiveHint":
|
|
3527
|
+
"destructiveHint": true,
|
|
3528
|
+
"idempotentHint": true,
|
|
2201
3529
|
"openWorldHint": false
|
|
2202
3530
|
},
|
|
2203
3531
|
"inputSchema": {
|
|
@@ -2284,6 +3612,7 @@ var publicToolContracts = {
|
|
|
2284
3612
|
"annotations": {
|
|
2285
3613
|
"readOnlyHint": false,
|
|
2286
3614
|
"destructiveHint": true,
|
|
3615
|
+
"idempotentHint": true,
|
|
2287
3616
|
"openWorldHint": false
|
|
2288
3617
|
},
|
|
2289
3618
|
"inputSchema": {
|
|
@@ -2334,6 +3663,7 @@ var publicToolContracts = {
|
|
|
2334
3663
|
"annotations": {
|
|
2335
3664
|
"readOnlyHint": true,
|
|
2336
3665
|
"destructiveHint": false,
|
|
3666
|
+
"idempotentHint": true,
|
|
2337
3667
|
"openWorldHint": false
|
|
2338
3668
|
},
|
|
2339
3669
|
"inputSchema": {
|
|
@@ -2704,6 +4034,7 @@ var publicToolContracts = {
|
|
|
2704
4034
|
"annotations": {
|
|
2705
4035
|
"readOnlyHint": true,
|
|
2706
4036
|
"destructiveHint": false,
|
|
4037
|
+
"idempotentHint": true,
|
|
2707
4038
|
"openWorldHint": false
|
|
2708
4039
|
},
|
|
2709
4040
|
"inputSchema": {
|
|
@@ -2743,6 +4074,7 @@ var publicToolContracts = {
|
|
|
2743
4074
|
"OPPORTUNITY",
|
|
2744
4075
|
"SLACK",
|
|
2745
4076
|
"PERSON_PROFILE",
|
|
4077
|
+
"INVOICE",
|
|
2746
4078
|
"CRM",
|
|
2747
4079
|
"CRM_OPPORTUNITY"
|
|
2748
4080
|
]
|
|
@@ -2968,7 +4300,8 @@ var publicToolContracts = {
|
|
|
2968
4300
|
"SUPPORT_TICKET",
|
|
2969
4301
|
"OPPORTUNITY",
|
|
2970
4302
|
"SLACK",
|
|
2971
|
-
"PERSON_PROFILE"
|
|
4303
|
+
"PERSON_PROFILE",
|
|
4304
|
+
"INVOICE"
|
|
2972
4305
|
]
|
|
2973
4306
|
},
|
|
2974
4307
|
"sourceId": {
|
|
@@ -3029,7 +4362,8 @@ var publicToolContracts = {
|
|
|
3029
4362
|
"SUPPORT_TICKET",
|
|
3030
4363
|
"OPPORTUNITY",
|
|
3031
4364
|
"SLACK",
|
|
3032
|
-
"PERSON_PROFILE"
|
|
4365
|
+
"PERSON_PROFILE",
|
|
4366
|
+
"INVOICE"
|
|
3033
4367
|
]
|
|
3034
4368
|
},
|
|
3035
4369
|
{
|
|
@@ -3240,7 +4574,8 @@ var publicToolContracts = {
|
|
|
3240
4574
|
"SUPPORT_TICKET",
|
|
3241
4575
|
"OPPORTUNITY",
|
|
3242
4576
|
"SLACK",
|
|
3243
|
-
"PERSON_PROFILE"
|
|
4577
|
+
"PERSON_PROFILE",
|
|
4578
|
+
"INVOICE"
|
|
3244
4579
|
]
|
|
3245
4580
|
},
|
|
3246
4581
|
{
|
|
@@ -3372,6 +4707,7 @@ var publicToolContracts = {
|
|
|
3372
4707
|
"annotations": {
|
|
3373
4708
|
"readOnlyHint": true,
|
|
3374
4709
|
"destructiveHint": false,
|
|
4710
|
+
"idempotentHint": true,
|
|
3375
4711
|
"openWorldHint": false
|
|
3376
4712
|
},
|
|
3377
4713
|
"inputSchema": {
|
|
@@ -3507,7 +4843,8 @@ var publicToolContracts = {
|
|
|
3507
4843
|
"SUPPORT_TICKET",
|
|
3508
4844
|
"OPPORTUNITY",
|
|
3509
4845
|
"SLACK",
|
|
3510
|
-
"PERSON_PROFILE"
|
|
4846
|
+
"PERSON_PROFILE",
|
|
4847
|
+
"INVOICE"
|
|
3511
4848
|
]
|
|
3512
4849
|
},
|
|
3513
4850
|
"sourceId": {
|
|
@@ -3568,7 +4905,8 @@ var publicToolContracts = {
|
|
|
3568
4905
|
"SUPPORT_TICKET",
|
|
3569
4906
|
"OPPORTUNITY",
|
|
3570
4907
|
"SLACK",
|
|
3571
|
-
"PERSON_PROFILE"
|
|
4908
|
+
"PERSON_PROFILE",
|
|
4909
|
+
"INVOICE"
|
|
3572
4910
|
]
|
|
3573
4911
|
},
|
|
3574
4912
|
{
|
|
@@ -3779,7 +5117,8 @@ var publicToolContracts = {
|
|
|
3779
5117
|
"SUPPORT_TICKET",
|
|
3780
5118
|
"OPPORTUNITY",
|
|
3781
5119
|
"SLACK",
|
|
3782
|
-
"PERSON_PROFILE"
|
|
5120
|
+
"PERSON_PROFILE",
|
|
5121
|
+
"INVOICE"
|
|
3783
5122
|
]
|
|
3784
5123
|
},
|
|
3785
5124
|
{
|
|
@@ -3875,10 +5214,11 @@ var publicToolContracts = {
|
|
|
3875
5214
|
"commandVersion": 1,
|
|
3876
5215
|
"ownerDomain": "customer-context",
|
|
3877
5216
|
"title": "Get Source",
|
|
3878
|
-
"description": "Get one exact source record by generic sourceType and sourceId. Use this when you already know the concrete underlying source you want to inspect.",
|
|
5217
|
+
"description": "Get one exact source record by generic sourceType and sourceId. Use this when you already know the concrete underlying source you want to inspect. For a Stripe invoice use sourceType INVOICE (STRIPE_INVOICE is accepted) with the Stripe invoice id (in_...): the record lists every stored line item, with amounts in the billing provider's minor units for the invoice's currency (cents for USD, EUR, GBP and CAD; other currencies follow the provider's amount rules). The lines are what that invoice billed for its period, not the subscription's item set: a yearly item is absent from its monthly invoices, and a metered item with no usage may be absent too. For a CRM opportunity (sourceType OPPORTUNITY) the record also lists the deal's own CRM fields as record.fields (each with key, label, value and custom, custom fields included) when the workspace has the CRM fields enabled; record.omittedFields names any left out to keep the response small.",
|
|
3879
5218
|
"annotations": {
|
|
3880
5219
|
"readOnlyHint": true,
|
|
3881
5220
|
"destructiveHint": false,
|
|
5221
|
+
"idempotentHint": true,
|
|
3882
5222
|
"openWorldHint": false
|
|
3883
5223
|
},
|
|
3884
5224
|
"inputSchema": {
|
|
@@ -3895,8 +5235,10 @@ var publicToolContracts = {
|
|
|
3895
5235
|
"OPPORTUNITY",
|
|
3896
5236
|
"SLACK",
|
|
3897
5237
|
"PERSON_PROFILE",
|
|
5238
|
+
"INVOICE",
|
|
3898
5239
|
"CRM",
|
|
3899
5240
|
"CRM_OPPORTUNITY",
|
|
5241
|
+
"STRIPE_INVOICE",
|
|
3900
5242
|
"EXTRACTED"
|
|
3901
5243
|
]
|
|
3902
5244
|
},
|
|
@@ -3936,7 +5278,8 @@ var publicToolContracts = {
|
|
|
3936
5278
|
"SUPPORT_TICKET",
|
|
3937
5279
|
"OPPORTUNITY",
|
|
3938
5280
|
"SLACK",
|
|
3939
|
-
"PERSON_PROFILE"
|
|
5281
|
+
"PERSON_PROFILE",
|
|
5282
|
+
"INVOICE"
|
|
3940
5283
|
]
|
|
3941
5284
|
},
|
|
3942
5285
|
"sourceId": {
|
|
@@ -4121,7 +5464,8 @@ var publicToolContracts = {
|
|
|
4121
5464
|
"SUPPORT_TICKET",
|
|
4122
5465
|
"OPPORTUNITY",
|
|
4123
5466
|
"SLACK",
|
|
4124
|
-
"PERSON_PROFILE"
|
|
5467
|
+
"PERSON_PROFILE",
|
|
5468
|
+
"INVOICE"
|
|
4125
5469
|
]
|
|
4126
5470
|
},
|
|
4127
5471
|
"sourceId": {
|
|
@@ -4260,10 +5604,11 @@ var publicToolContracts = {
|
|
|
4260
5604
|
"commandVersion": 1,
|
|
4261
5605
|
"ownerDomain": "customer-context",
|
|
4262
5606
|
"title": "List Sources",
|
|
4263
|
-
"description": "List concrete source records deterministically. Use this instead of semantic search when you need enumerated calls, emails, calendar events, support tickets, Slack conversations, or opportunities.",
|
|
5607
|
+
"description": "List concrete source records deterministically. Use this instead of semantic search when you need enumerated calls, emails, calendar events, support tickets, Slack conversations, or opportunities. Invoices are listed only when you pass sourceType INVOICE with a customer, newest first.",
|
|
4264
5608
|
"annotations": {
|
|
4265
5609
|
"readOnlyHint": true,
|
|
4266
5610
|
"destructiveHint": false,
|
|
5611
|
+
"idempotentHint": true,
|
|
4267
5612
|
"openWorldHint": false
|
|
4268
5613
|
},
|
|
4269
5614
|
"inputSchema": {
|
|
@@ -4281,8 +5626,10 @@ var publicToolContracts = {
|
|
|
4281
5626
|
"OPPORTUNITY",
|
|
4282
5627
|
"SLACK",
|
|
4283
5628
|
"PERSON_PROFILE",
|
|
5629
|
+
"INVOICE",
|
|
4284
5630
|
"CRM",
|
|
4285
|
-
"CRM_OPPORTUNITY"
|
|
5631
|
+
"CRM_OPPORTUNITY",
|
|
5632
|
+
"STRIPE_INVOICE"
|
|
4286
5633
|
]
|
|
4287
5634
|
},
|
|
4288
5635
|
"customer": {
|
|
@@ -4353,7 +5700,8 @@ var publicToolContracts = {
|
|
|
4353
5700
|
"SUPPORT_TICKET",
|
|
4354
5701
|
"OPPORTUNITY",
|
|
4355
5702
|
"SLACK",
|
|
4356
|
-
"PERSON_PROFILE"
|
|
5703
|
+
"PERSON_PROFILE",
|
|
5704
|
+
"INVOICE"
|
|
4357
5705
|
]
|
|
4358
5706
|
},
|
|
4359
5707
|
"sourceId": {
|
|
@@ -4538,7 +5886,8 @@ var publicToolContracts = {
|
|
|
4538
5886
|
"SUPPORT_TICKET",
|
|
4539
5887
|
"OPPORTUNITY",
|
|
4540
5888
|
"SLACK",
|
|
4541
|
-
"PERSON_PROFILE"
|
|
5889
|
+
"PERSON_PROFILE",
|
|
5890
|
+
"INVOICE"
|
|
4542
5891
|
]
|
|
4543
5892
|
},
|
|
4544
5893
|
"sourceId": {
|
|
@@ -4712,6 +6061,7 @@ var publicToolContracts = {
|
|
|
4712
6061
|
"annotations": {
|
|
4713
6062
|
"readOnlyHint": true,
|
|
4714
6063
|
"destructiveHint": false,
|
|
6064
|
+
"idempotentHint": true,
|
|
4715
6065
|
"openWorldHint": false
|
|
4716
6066
|
},
|
|
4717
6067
|
"inputSchema": {
|
|
@@ -4768,6 +6118,7 @@ var publicToolContracts = {
|
|
|
4768
6118
|
"OPPORTUNITY",
|
|
4769
6119
|
"SLACK",
|
|
4770
6120
|
"PERSON_PROFILE",
|
|
6121
|
+
"INVOICE",
|
|
4771
6122
|
"CRM",
|
|
4772
6123
|
"CRM_OPPORTUNITY"
|
|
4773
6124
|
]
|
|
@@ -5014,7 +6365,8 @@ var publicToolContracts = {
|
|
|
5014
6365
|
"SUPPORT_TICKET",
|
|
5015
6366
|
"OPPORTUNITY",
|
|
5016
6367
|
"SLACK",
|
|
5017
|
-
"PERSON_PROFILE"
|
|
6368
|
+
"PERSON_PROFILE",
|
|
6369
|
+
"INVOICE"
|
|
5018
6370
|
]
|
|
5019
6371
|
},
|
|
5020
6372
|
"sourceId": {
|
|
@@ -5075,7 +6427,8 @@ var publicToolContracts = {
|
|
|
5075
6427
|
"SUPPORT_TICKET",
|
|
5076
6428
|
"OPPORTUNITY",
|
|
5077
6429
|
"SLACK",
|
|
5078
|
-
"PERSON_PROFILE"
|
|
6430
|
+
"PERSON_PROFILE",
|
|
6431
|
+
"INVOICE"
|
|
5079
6432
|
]
|
|
5080
6433
|
},
|
|
5081
6434
|
{
|
|
@@ -5286,7 +6639,8 @@ var publicToolContracts = {
|
|
|
5286
6639
|
"SUPPORT_TICKET",
|
|
5287
6640
|
"OPPORTUNITY",
|
|
5288
6641
|
"SLACK",
|
|
5289
|
-
"PERSON_PROFILE"
|
|
6642
|
+
"PERSON_PROFILE",
|
|
6643
|
+
"INVOICE"
|
|
5290
6644
|
]
|
|
5291
6645
|
},
|
|
5292
6646
|
{
|
|
@@ -5404,7 +6758,8 @@ var publicToolContracts = {
|
|
|
5404
6758
|
"SUPPORT_TICKET",
|
|
5405
6759
|
"OPPORTUNITY",
|
|
5406
6760
|
"SLACK",
|
|
5407
|
-
"PERSON_PROFILE"
|
|
6761
|
+
"PERSON_PROFILE",
|
|
6762
|
+
"INVOICE"
|
|
5408
6763
|
]
|
|
5409
6764
|
},
|
|
5410
6765
|
"sourceId": {
|
|
@@ -5571,10 +6926,11 @@ var publicToolContracts = {
|
|
|
5571
6926
|
"commandVersion": 1,
|
|
5572
6927
|
"ownerDomain": "analytics",
|
|
5573
6928
|
"title": "Run SQL Query",
|
|
5574
|
-
"description": "Execute read-only SQL queries against your analytics views.\n\nAvailable views:\n- activity: Customer activity events (event_name, event_type, event_channel, customer_id, occurred_at, properties, ...)\n- customers: Customer attributes (customer_id, domain, name, billing_status, plan,
|
|
6929
|
+
"description": "Execute read-only SQL queries against your analytics views.\n\nAvailable views:\n- activity: Customer activity events (event_name, event_type, event_channel, customer_id, occurred_at, properties, ...)\n- customers: Customer attributes (customer_id, domain, name, billing_status, plan, arr_cents (the revenue number: annualized, in arr_currency's units), arr_currency, traits, ...; mrr_cents and mrr_status are deprecated, use arr_cents)\n- users: User attributes (user_id, email, name, customer_id, traits, ...)\n- revenue: Revenue snapshots over time (customer_id, snapshot_date, mrr_cents, ...)\n\nAll queries are automatically filtered to your organization's data.\nOnly SELECT queries are allowed.\nProperties and traits are JSON strings; inspect schemas and examples before filtering nested values.\n\nExample queries:\n- SELECT event_name, count(*) FROM activity GROUP BY 1 ORDER BY 2 DESC LIMIT 10\n- SELECT billing_status, sum(arr_cents)/100 AS arr FROM customers WHERE arr_currency = 'USD' GROUP BY 1\n- SELECT * FROM activity WHERE customer_id = 'cust_123' ORDER BY occurred_at DESC LIMIT 50",
|
|
5575
6930
|
"annotations": {
|
|
5576
6931
|
"readOnlyHint": true,
|
|
5577
6932
|
"destructiveHint": false,
|
|
6933
|
+
"idempotentHint": true,
|
|
5578
6934
|
"openWorldHint": false
|
|
5579
6935
|
},
|
|
5580
6936
|
"inputSchema": {
|
|
@@ -5659,6 +7015,7 @@ var publicToolContracts = {
|
|
|
5659
7015
|
"annotations": {
|
|
5660
7016
|
"readOnlyHint": true,
|
|
5661
7017
|
"destructiveHint": false,
|
|
7018
|
+
"idempotentHint": true,
|
|
5662
7019
|
"openWorldHint": false
|
|
5663
7020
|
},
|
|
5664
7021
|
"inputSchema": {
|
|
@@ -5868,6 +7225,7 @@ var publicToolContracts = {
|
|
|
5868
7225
|
"annotations": {
|
|
5869
7226
|
"readOnlyHint": true,
|
|
5870
7227
|
"destructiveHint": false,
|
|
7228
|
+
"idempotentHint": true,
|
|
5871
7229
|
"openWorldHint": false
|
|
5872
7230
|
},
|
|
5873
7231
|
"inputSchema": {
|
|
@@ -6252,6 +7610,7 @@ var publicToolContracts = {
|
|
|
6252
7610
|
"annotations": {
|
|
6253
7611
|
"readOnlyHint": true,
|
|
6254
7612
|
"destructiveHint": false,
|
|
7613
|
+
"idempotentHint": true,
|
|
6255
7614
|
"openWorldHint": false
|
|
6256
7615
|
},
|
|
6257
7616
|
"inputSchema": {
|
|
@@ -6642,6 +8001,7 @@ var publicToolContracts = {
|
|
|
6642
8001
|
"annotations": {
|
|
6643
8002
|
"readOnlyHint": false,
|
|
6644
8003
|
"destructiveHint": false,
|
|
8004
|
+
"idempotentHint": false,
|
|
6645
8005
|
"openWorldHint": true
|
|
6646
8006
|
},
|
|
6647
8007
|
"inputSchema": {
|
|
@@ -7051,6 +8411,7 @@ var publicToolContracts = {
|
|
|
7051
8411
|
"annotations": {
|
|
7052
8412
|
"readOnlyHint": false,
|
|
7053
8413
|
"destructiveHint": false,
|
|
8414
|
+
"idempotentHint": true,
|
|
7054
8415
|
"openWorldHint": true
|
|
7055
8416
|
},
|
|
7056
8417
|
"inputSchema": {
|
|
@@ -7455,6 +8816,7 @@ var publicToolContracts = {
|
|
|
7455
8816
|
"annotations": {
|
|
7456
8817
|
"readOnlyHint": false,
|
|
7457
8818
|
"destructiveHint": false,
|
|
8819
|
+
"idempotentHint": true,
|
|
7458
8820
|
"openWorldHint": true
|
|
7459
8821
|
},
|
|
7460
8822
|
"inputSchema": {
|
|
@@ -7845,6 +9207,7 @@ var publicToolContracts = {
|
|
|
7845
9207
|
"annotations": {
|
|
7846
9208
|
"readOnlyHint": false,
|
|
7847
9209
|
"destructiveHint": false,
|
|
9210
|
+
"idempotentHint": true,
|
|
7848
9211
|
"openWorldHint": false
|
|
7849
9212
|
},
|
|
7850
9213
|
"inputSchema": {
|
|
@@ -8235,6 +9598,7 @@ var publicToolContracts = {
|
|
|
8235
9598
|
"annotations": {
|
|
8236
9599
|
"readOnlyHint": false,
|
|
8237
9600
|
"destructiveHint": true,
|
|
9601
|
+
"idempotentHint": true,
|
|
8238
9602
|
"openWorldHint": false
|
|
8239
9603
|
},
|
|
8240
9604
|
"inputSchema": {
|
|
@@ -8293,6 +9657,7 @@ var publicToolContracts = {
|
|
|
8293
9657
|
"annotations": {
|
|
8294
9658
|
"readOnlyHint": false,
|
|
8295
9659
|
"destructiveHint": false,
|
|
9660
|
+
"idempotentHint": false,
|
|
8296
9661
|
"openWorldHint": false
|
|
8297
9662
|
},
|
|
8298
9663
|
"inputSchema": {
|
|
@@ -8352,6 +9717,7 @@ var publicToolContracts = {
|
|
|
8352
9717
|
"annotations": {
|
|
8353
9718
|
"readOnlyHint": true,
|
|
8354
9719
|
"destructiveHint": false,
|
|
9720
|
+
"idempotentHint": true,
|
|
8355
9721
|
"openWorldHint": false
|
|
8356
9722
|
},
|
|
8357
9723
|
"inputSchema": {
|
|
@@ -8449,6 +9815,7 @@ var publicToolContracts = {
|
|
|
8449
9815
|
"annotations": {
|
|
8450
9816
|
"readOnlyHint": false,
|
|
8451
9817
|
"destructiveHint": false,
|
|
9818
|
+
"idempotentHint": false,
|
|
8452
9819
|
"openWorldHint": true
|
|
8453
9820
|
},
|
|
8454
9821
|
"inputSchema": {
|
|
@@ -8538,6 +9905,7 @@ var publicToolContracts = {
|
|
|
8538
9905
|
"annotations": {
|
|
8539
9906
|
"readOnlyHint": true,
|
|
8540
9907
|
"destructiveHint": false,
|
|
9908
|
+
"idempotentHint": true,
|
|
8541
9909
|
"openWorldHint": false
|
|
8542
9910
|
},
|
|
8543
9911
|
"inputSchema": {
|
|
@@ -8598,6 +9966,7 @@ var publicToolContracts = {
|
|
|
8598
9966
|
"annotations": {
|
|
8599
9967
|
"readOnlyHint": true,
|
|
8600
9968
|
"destructiveHint": false,
|
|
9969
|
+
"idempotentHint": true,
|
|
8601
9970
|
"openWorldHint": false
|
|
8602
9971
|
},
|
|
8603
9972
|
"inputSchema": {
|
|
@@ -8696,10 +10065,11 @@ var publicToolContracts = {
|
|
|
8696
10065
|
"commandVersion": 1,
|
|
8697
10066
|
"ownerDomain": "integrations",
|
|
8698
10067
|
"title": "Set Up Integration",
|
|
8699
|
-
"description": "Continue integration setup through validated credentials, safe configuration, or a trusted browser handoff.",
|
|
10068
|
+
"description": "Continue integration setup through validated credentials, safe configuration, or a trusted browser handoff. For a connected Stripe account, an optional stripe_renewal_date_field step names the subscription metadata key that holds renewal dates.",
|
|
8700
10069
|
"annotations": {
|
|
8701
10070
|
"readOnlyHint": false,
|
|
8702
10071
|
"destructiveHint": false,
|
|
10072
|
+
"idempotentHint": false,
|
|
8703
10073
|
"openWorldHint": true
|
|
8704
10074
|
},
|
|
8705
10075
|
"inputSchema": {
|
|
@@ -8834,6 +10204,32 @@ var publicToolContracts = {
|
|
|
8834
10204
|
"connectionMode": {
|
|
8835
10205
|
"type": "string",
|
|
8836
10206
|
"const": "oauth"
|
|
10207
|
+
},
|
|
10208
|
+
"configuration": {
|
|
10209
|
+
"type": "object",
|
|
10210
|
+
"properties": {
|
|
10211
|
+
"kind": {
|
|
10212
|
+
"type": "string",
|
|
10213
|
+
"const": "stripe_renewal_date_field"
|
|
10214
|
+
},
|
|
10215
|
+
"key": {
|
|
10216
|
+
"anyOf": [
|
|
10217
|
+
{
|
|
10218
|
+
"type": "string",
|
|
10219
|
+
"minLength": 1,
|
|
10220
|
+
"maxLength": 40
|
|
10221
|
+
},
|
|
10222
|
+
{
|
|
10223
|
+
"type": "null"
|
|
10224
|
+
}
|
|
10225
|
+
]
|
|
10226
|
+
}
|
|
10227
|
+
},
|
|
10228
|
+
"required": [
|
|
10229
|
+
"kind",
|
|
10230
|
+
"key"
|
|
10231
|
+
],
|
|
10232
|
+
"additionalProperties": false
|
|
8837
10233
|
}
|
|
8838
10234
|
},
|
|
8839
10235
|
"required": [
|
|
@@ -8865,6 +10261,32 @@ var publicToolContracts = {
|
|
|
8865
10261
|
"apiKey"
|
|
8866
10262
|
],
|
|
8867
10263
|
"additionalProperties": false
|
|
10264
|
+
},
|
|
10265
|
+
"configuration": {
|
|
10266
|
+
"type": "object",
|
|
10267
|
+
"properties": {
|
|
10268
|
+
"kind": {
|
|
10269
|
+
"type": "string",
|
|
10270
|
+
"const": "stripe_renewal_date_field"
|
|
10271
|
+
},
|
|
10272
|
+
"key": {
|
|
10273
|
+
"anyOf": [
|
|
10274
|
+
{
|
|
10275
|
+
"type": "string",
|
|
10276
|
+
"minLength": 1,
|
|
10277
|
+
"maxLength": 40
|
|
10278
|
+
},
|
|
10279
|
+
{
|
|
10280
|
+
"type": "null"
|
|
10281
|
+
}
|
|
10282
|
+
]
|
|
10283
|
+
}
|
|
10284
|
+
},
|
|
10285
|
+
"required": [
|
|
10286
|
+
"kind",
|
|
10287
|
+
"key"
|
|
10288
|
+
],
|
|
10289
|
+
"additionalProperties": false
|
|
8868
10290
|
}
|
|
8869
10291
|
},
|
|
8870
10292
|
"required": [
|
|
@@ -9567,6 +10989,69 @@ var publicToolContracts = {
|
|
|
9567
10989
|
"preview"
|
|
9568
10990
|
],
|
|
9569
10991
|
"additionalProperties": false
|
|
10992
|
+
},
|
|
10993
|
+
{
|
|
10994
|
+
"type": "object",
|
|
10995
|
+
"properties": {
|
|
10996
|
+
"kind": {
|
|
10997
|
+
"type": "string",
|
|
10998
|
+
"const": "stripe_renewal_date_field"
|
|
10999
|
+
},
|
|
11000
|
+
"selectedKey": {
|
|
11001
|
+
"anyOf": [
|
|
11002
|
+
{
|
|
11003
|
+
"type": "string"
|
|
11004
|
+
},
|
|
11005
|
+
{
|
|
11006
|
+
"type": "null"
|
|
11007
|
+
}
|
|
11008
|
+
]
|
|
11009
|
+
},
|
|
11010
|
+
"liveSubscriptionCount": {
|
|
11011
|
+
"type": "integer",
|
|
11012
|
+
"minimum": 0,
|
|
11013
|
+
"maximum": 9007199254740991
|
|
11014
|
+
},
|
|
11015
|
+
"keys": {
|
|
11016
|
+
"type": "array",
|
|
11017
|
+
"items": {
|
|
11018
|
+
"type": "object",
|
|
11019
|
+
"properties": {
|
|
11020
|
+
"key": {
|
|
11021
|
+
"type": "string"
|
|
11022
|
+
},
|
|
11023
|
+
"subscriptionCount": {
|
|
11024
|
+
"type": "integer",
|
|
11025
|
+
"minimum": 0,
|
|
11026
|
+
"maximum": 9007199254740991
|
|
11027
|
+
},
|
|
11028
|
+
"sampleDate": {
|
|
11029
|
+
"anyOf": [
|
|
11030
|
+
{
|
|
11031
|
+
"type": "string"
|
|
11032
|
+
},
|
|
11033
|
+
{
|
|
11034
|
+
"type": "null"
|
|
11035
|
+
}
|
|
11036
|
+
]
|
|
11037
|
+
}
|
|
11038
|
+
},
|
|
11039
|
+
"required": [
|
|
11040
|
+
"key",
|
|
11041
|
+
"subscriptionCount",
|
|
11042
|
+
"sampleDate"
|
|
11043
|
+
],
|
|
11044
|
+
"additionalProperties": false
|
|
11045
|
+
}
|
|
11046
|
+
}
|
|
11047
|
+
},
|
|
11048
|
+
"required": [
|
|
11049
|
+
"kind",
|
|
11050
|
+
"selectedKey",
|
|
11051
|
+
"liveSubscriptionCount",
|
|
11052
|
+
"keys"
|
|
11053
|
+
],
|
|
11054
|
+
"additionalProperties": false
|
|
9570
11055
|
}
|
|
9571
11056
|
]
|
|
9572
11057
|
},
|
|
@@ -9634,6 +11119,7 @@ var publicToolContracts = {
|
|
|
9634
11119
|
"annotations": {
|
|
9635
11120
|
"readOnlyHint": true,
|
|
9636
11121
|
"destructiveHint": false,
|
|
11122
|
+
"idempotentHint": true,
|
|
9637
11123
|
"openWorldHint": false
|
|
9638
11124
|
},
|
|
9639
11125
|
"inputSchema": {
|
|
@@ -9684,6 +11170,7 @@ var publicToolContracts = {
|
|
|
9684
11170
|
"annotations": {
|
|
9685
11171
|
"readOnlyHint": true,
|
|
9686
11172
|
"destructiveHint": false,
|
|
11173
|
+
"idempotentHint": true,
|
|
9687
11174
|
"openWorldHint": false
|
|
9688
11175
|
},
|
|
9689
11176
|
"inputSchema": {
|
|
@@ -9881,6 +11368,7 @@ var publicToolContracts = {
|
|
|
9881
11368
|
"annotations": {
|
|
9882
11369
|
"readOnlyHint": false,
|
|
9883
11370
|
"destructiveHint": false,
|
|
11371
|
+
"idempotentHint": true,
|
|
9884
11372
|
"openWorldHint": false
|
|
9885
11373
|
},
|
|
9886
11374
|
"inputSchema": {
|
|
@@ -9951,6 +11439,7 @@ var publicToolContracts = {
|
|
|
9951
11439
|
"annotations": {
|
|
9952
11440
|
"readOnlyHint": true,
|
|
9953
11441
|
"destructiveHint": false,
|
|
11442
|
+
"idempotentHint": true,
|
|
9954
11443
|
"openWorldHint": false
|
|
9955
11444
|
},
|
|
9956
11445
|
"inputSchema": {
|
|
@@ -10015,6 +11504,7 @@ var publicToolContracts = {
|
|
|
10015
11504
|
"annotations": {
|
|
10016
11505
|
"readOnlyHint": false,
|
|
10017
11506
|
"destructiveHint": false,
|
|
11507
|
+
"idempotentHint": true,
|
|
10018
11508
|
"openWorldHint": false
|
|
10019
11509
|
},
|
|
10020
11510
|
"inputSchema": {
|
|
@@ -10105,6 +11595,7 @@ var publicToolContracts = {
|
|
|
10105
11595
|
"annotations": {
|
|
10106
11596
|
"readOnlyHint": true,
|
|
10107
11597
|
"destructiveHint": false,
|
|
11598
|
+
"idempotentHint": true,
|
|
10108
11599
|
"openWorldHint": false
|
|
10109
11600
|
},
|
|
10110
11601
|
"inputSchema": {
|
|
@@ -10660,6 +12151,7 @@ var publicToolContracts = {
|
|
|
10660
12151
|
"annotations": {
|
|
10661
12152
|
"readOnlyHint": false,
|
|
10662
12153
|
"destructiveHint": false,
|
|
12154
|
+
"idempotentHint": true,
|
|
10663
12155
|
"openWorldHint": false
|
|
10664
12156
|
},
|
|
10665
12157
|
"inputSchema": {
|
|
@@ -10981,6 +12473,7 @@ var publicToolContracts = {
|
|
|
10981
12473
|
"annotations": {
|
|
10982
12474
|
"readOnlyHint": false,
|
|
10983
12475
|
"destructiveHint": true,
|
|
12476
|
+
"idempotentHint": true,
|
|
10984
12477
|
"openWorldHint": false
|
|
10985
12478
|
},
|
|
10986
12479
|
"inputSchema": {
|
|
@@ -11046,6 +12539,7 @@ var publicToolContracts = {
|
|
|
11046
12539
|
"annotations": {
|
|
11047
12540
|
"readOnlyHint": true,
|
|
11048
12541
|
"destructiveHint": false,
|
|
12542
|
+
"idempotentHint": true,
|
|
11049
12543
|
"openWorldHint": false
|
|
11050
12544
|
},
|
|
11051
12545
|
"inputSchema": {
|
|
@@ -12239,6 +13733,7 @@ var publicToolContracts = {
|
|
|
12239
13733
|
"annotations": {
|
|
12240
13734
|
"readOnlyHint": true,
|
|
12241
13735
|
"destructiveHint": false,
|
|
13736
|
+
"idempotentHint": true,
|
|
12242
13737
|
"openWorldHint": false
|
|
12243
13738
|
},
|
|
12244
13739
|
"inputSchema": {
|
|
@@ -12678,6 +14173,7 @@ var publicToolContracts = {
|
|
|
12678
14173
|
"annotations": {
|
|
12679
14174
|
"readOnlyHint": true,
|
|
12680
14175
|
"destructiveHint": false,
|
|
14176
|
+
"idempotentHint": true,
|
|
12681
14177
|
"openWorldHint": false
|
|
12682
14178
|
},
|
|
12683
14179
|
"inputSchema": {
|
|
@@ -13005,6 +14501,7 @@ var publicToolContracts = {
|
|
|
13005
14501
|
"annotations": {
|
|
13006
14502
|
"readOnlyHint": true,
|
|
13007
14503
|
"destructiveHint": false,
|
|
14504
|
+
"idempotentHint": true,
|
|
13008
14505
|
"openWorldHint": false
|
|
13009
14506
|
},
|
|
13010
14507
|
"inputSchema": {
|
|
@@ -13443,6 +14940,7 @@ var publicToolContracts = {
|
|
|
13443
14940
|
"annotations": {
|
|
13444
14941
|
"readOnlyHint": true,
|
|
13445
14942
|
"destructiveHint": false,
|
|
14943
|
+
"idempotentHint": true,
|
|
13446
14944
|
"openWorldHint": false
|
|
13447
14945
|
},
|
|
13448
14946
|
"inputSchema": {
|
|
@@ -13845,6 +15343,7 @@ var publicToolContracts = {
|
|
|
13845
15343
|
"annotations": {
|
|
13846
15344
|
"readOnlyHint": true,
|
|
13847
15345
|
"destructiveHint": false,
|
|
15346
|
+
"idempotentHint": true,
|
|
13848
15347
|
"openWorldHint": false
|
|
13849
15348
|
},
|
|
13850
15349
|
"inputSchema": {
|
|
@@ -14393,6 +15892,7 @@ var publicToolContracts = {
|
|
|
14393
15892
|
"annotations": {
|
|
14394
15893
|
"readOnlyHint": false,
|
|
14395
15894
|
"destructiveHint": false,
|
|
15895
|
+
"idempotentHint": false,
|
|
14396
15896
|
"openWorldHint": false
|
|
14397
15897
|
},
|
|
14398
15898
|
"inputSchema": {
|
|
@@ -14520,6 +16020,7 @@ var publicToolContracts = {
|
|
|
14520
16020
|
"annotations": {
|
|
14521
16021
|
"readOnlyHint": false,
|
|
14522
16022
|
"destructiveHint": false,
|
|
16023
|
+
"idempotentHint": false,
|
|
14523
16024
|
"openWorldHint": false
|
|
14524
16025
|
},
|
|
14525
16026
|
"inputSchema": {
|
|
@@ -14587,6 +16088,7 @@ var publicToolContracts = {
|
|
|
14587
16088
|
"annotations": {
|
|
14588
16089
|
"readOnlyHint": true,
|
|
14589
16090
|
"destructiveHint": false,
|
|
16091
|
+
"idempotentHint": true,
|
|
14590
16092
|
"openWorldHint": false
|
|
14591
16093
|
},
|
|
14592
16094
|
"inputSchema": {
|
|
@@ -14796,6 +16298,7 @@ var publicToolContracts = {
|
|
|
14796
16298
|
"annotations": {
|
|
14797
16299
|
"readOnlyHint": true,
|
|
14798
16300
|
"destructiveHint": false,
|
|
16301
|
+
"idempotentHint": true,
|
|
14799
16302
|
"openWorldHint": false
|
|
14800
16303
|
},
|
|
14801
16304
|
"inputSchema": {
|
|
@@ -15925,6 +17428,7 @@ var publicToolContracts = {
|
|
|
15925
17428
|
"annotations": {
|
|
15926
17429
|
"readOnlyHint": false,
|
|
15927
17430
|
"destructiveHint": false,
|
|
17431
|
+
"idempotentHint": true,
|
|
15928
17432
|
"openWorldHint": false
|
|
15929
17433
|
},
|
|
15930
17434
|
"inputSchema": {
|
|
@@ -15977,6 +17481,7 @@ var publicToolContracts = {
|
|
|
15977
17481
|
"annotations": {
|
|
15978
17482
|
"readOnlyHint": false,
|
|
15979
17483
|
"destructiveHint": true,
|
|
17484
|
+
"idempotentHint": true,
|
|
15980
17485
|
"openWorldHint": false
|
|
15981
17486
|
},
|
|
15982
17487
|
"inputSchema": {
|
|
@@ -16206,6 +17711,7 @@ var publicToolContracts = {
|
|
|
16206
17711
|
"annotations": {
|
|
16207
17712
|
"readOnlyHint": true,
|
|
16208
17713
|
"destructiveHint": false,
|
|
17714
|
+
"idempotentHint": true,
|
|
16209
17715
|
"openWorldHint": false
|
|
16210
17716
|
},
|
|
16211
17717
|
"inputSchema": {
|
|
@@ -16317,6 +17823,7 @@ var publicOpenApiTransports = [
|
|
|
16317
17823
|
var consumerToolPolicies = {
|
|
16318
17824
|
"default": [
|
|
16319
17825
|
"outlit_list_customers",
|
|
17826
|
+
"outlit_list_crm_fields",
|
|
16320
17827
|
"outlit_list_users",
|
|
16321
17828
|
"outlit_get_customer",
|
|
16322
17829
|
"outlit_get_timeline",
|
|
@@ -16328,6 +17835,7 @@ var consumerToolPolicies = {
|
|
|
16328
17835
|
],
|
|
16329
17836
|
"analytical": [
|
|
16330
17837
|
"outlit_list_customers",
|
|
17838
|
+
"outlit_list_crm_fields",
|
|
16331
17839
|
"outlit_list_users",
|
|
16332
17840
|
"outlit_get_customer",
|
|
16333
17841
|
"outlit_get_timeline",
|
|
@@ -16341,6 +17849,7 @@ var consumerToolPolicies = {
|
|
|
16341
17849
|
],
|
|
16342
17850
|
"pi": [
|
|
16343
17851
|
"outlit_list_customers",
|
|
17852
|
+
"outlit_list_crm_fields",
|
|
16344
17853
|
"outlit_list_users",
|
|
16345
17854
|
"outlit_list_workspace_users",
|
|
16346
17855
|
"outlit_get_customer",
|
|
@@ -16394,6 +17903,7 @@ var consumerToolPolicies = {
|
|
|
16394
17903
|
],
|
|
16395
17904
|
"cli": [
|
|
16396
17905
|
"outlit_list_customers",
|
|
17906
|
+
"outlit_list_crm_fields",
|
|
16397
17907
|
"outlit_list_users",
|
|
16398
17908
|
"outlit_list_workspace_users",
|
|
16399
17909
|
"outlit_get_customer",
|
|
@@ -17031,6 +18541,14 @@ var toolGatewayErrorSchema = {
|
|
|
17031
18541
|
"path": {
|
|
17032
18542
|
"type": "string",
|
|
17033
18543
|
"maxLength": 200
|
|
18544
|
+
},
|
|
18545
|
+
"validValues": {
|
|
18546
|
+
"maxItems": 30,
|
|
18547
|
+
"type": "array",
|
|
18548
|
+
"items": {
|
|
18549
|
+
"type": "string",
|
|
18550
|
+
"maxLength": 100
|
|
18551
|
+
}
|
|
17034
18552
|
}
|
|
17035
18553
|
},
|
|
17036
18554
|
"required": [
|
|
@@ -17039,6 +18557,37 @@ var toolGatewayErrorSchema = {
|
|
|
17039
18557
|
],
|
|
17040
18558
|
"additionalProperties": false
|
|
17041
18559
|
}
|
|
18560
|
+
},
|
|
18561
|
+
"next": {
|
|
18562
|
+
"type": "object",
|
|
18563
|
+
"properties": {
|
|
18564
|
+
"instruction": {
|
|
18565
|
+
"type": "string",
|
|
18566
|
+
"minLength": 1,
|
|
18567
|
+
"maxLength": 300
|
|
18568
|
+
},
|
|
18569
|
+
"tool": {
|
|
18570
|
+
"type": "string",
|
|
18571
|
+
"maxLength": 100,
|
|
18572
|
+
"pattern": "^outlit_[a-z0-9_]+$"
|
|
18573
|
+
},
|
|
18574
|
+
"input": {
|
|
18575
|
+
"type": "object",
|
|
18576
|
+
"propertyNames": {
|
|
18577
|
+
"type": "string"
|
|
18578
|
+
},
|
|
18579
|
+
"additionalProperties": {}
|
|
18580
|
+
}
|
|
18581
|
+
},
|
|
18582
|
+
"required": [
|
|
18583
|
+
"instruction"
|
|
18584
|
+
],
|
|
18585
|
+
"additionalProperties": false
|
|
18586
|
+
},
|
|
18587
|
+
"missingPermission": {
|
|
18588
|
+
"type": "string",
|
|
18589
|
+
"minLength": 1,
|
|
18590
|
+
"maxLength": 100
|
|
17042
18591
|
}
|
|
17043
18592
|
},
|
|
17044
18593
|
"required": [
|
|
@@ -17934,14 +19483,17 @@ var customerListOrderFields = [
|
|
|
17934
19483
|
"last_activity_at",
|
|
17935
19484
|
"first_seen_at",
|
|
17936
19485
|
"name",
|
|
17937
|
-
"
|
|
19486
|
+
"arr_cents"
|
|
17938
19487
|
];
|
|
17939
19488
|
var customerIncludeSections = [
|
|
17940
19489
|
"users",
|
|
17941
19490
|
"revenue",
|
|
17942
19491
|
"recentTimeline",
|
|
17943
19492
|
"behaviorMetrics",
|
|
17944
|
-
"enrichment"
|
|
19493
|
+
"enrichment",
|
|
19494
|
+
"renewal",
|
|
19495
|
+
"crm",
|
|
19496
|
+
"links"
|
|
17945
19497
|
];
|
|
17946
19498
|
var customerSourceTypes = [
|
|
17947
19499
|
"EMAIL",
|
|
@@ -17950,7 +19502,8 @@ var customerSourceTypes = [
|
|
|
17950
19502
|
"SUPPORT_TICKET",
|
|
17951
19503
|
"OPPORTUNITY",
|
|
17952
19504
|
"SLACK",
|
|
17953
|
-
"PERSON_PROFILE"
|
|
19505
|
+
"PERSON_PROFILE",
|
|
19506
|
+
"INVOICE"
|
|
17954
19507
|
];
|
|
17955
19508
|
var customerSourceTypeAliasMap = {
|
|
17956
19509
|
"CRM": "OPPORTUNITY",
|
|
@@ -17968,6 +19521,7 @@ var customerSourceTypeInputs = [
|
|
|
17968
19521
|
"OPPORTUNITY",
|
|
17969
19522
|
"SLACK",
|
|
17970
19523
|
"PERSON_PROFILE",
|
|
19524
|
+
"INVOICE",
|
|
17971
19525
|
"CRM",
|
|
17972
19526
|
"CRM_OPPORTUNITY"
|
|
17973
19527
|
];
|
|
@@ -18018,7 +19572,7 @@ var schemaTables = [
|
|
|
18018
19572
|
"users",
|
|
18019
19573
|
"revenue"
|
|
18020
19574
|
];
|
|
18021
|
-
var sdkConsumerContractHash = "
|
|
19575
|
+
var sdkConsumerContractHash = "696da531a576098a4d673bf7c25188769d15b1cb096fd60a8431aeb515648510";
|
|
18022
19576
|
|
|
18023
19577
|
// src/contracts.ts
|
|
18024
19578
|
var publicToolNameSet = new Set(publicToolNames);
|
|
@@ -18035,6 +19589,16 @@ function normalizeCustomerSourceType(value) {
|
|
|
18035
19589
|
if (customerSourceTypeSet.has(normalized)) return normalized;
|
|
18036
19590
|
return customerSourceTypeAliasMap[normalized] ?? null;
|
|
18037
19591
|
}
|
|
19592
|
+
var customerSourceToolInputAliasMap = {
|
|
19593
|
+
STRIPE_INVOICE: "INVOICE"
|
|
19594
|
+
};
|
|
19595
|
+
function normalizeCustomerSourceToolInput(value) {
|
|
19596
|
+
const normalized = normalizeCustomerSourceType(value);
|
|
19597
|
+
if (normalized) return normalized;
|
|
19598
|
+
const key = value.trim().toUpperCase();
|
|
19599
|
+
if (!Object.hasOwn(customerSourceToolInputAliasMap, key)) return null;
|
|
19600
|
+
return customerSourceToolInputAliasMap[key];
|
|
19601
|
+
}
|
|
18038
19602
|
function resolveCustomerContextSearchInput(value) {
|
|
18039
19603
|
if (!value.query) return { ok: false, message: "A query argument is required" };
|
|
18040
19604
|
const normalizedQuery = value.query.trim();
|
|
@@ -18135,14 +19699,23 @@ function createOutlitClient(options) {
|
|
|
18135
19699
|
}
|
|
18136
19700
|
function parseGatewayError(text) {
|
|
18137
19701
|
try {
|
|
18138
|
-
const value = JSON.parse(text);
|
|
18139
|
-
if (matchesGeneratedJsonSchema(value, toolGatewayErrorSchema)
|
|
19702
|
+
const value = withoutUnknownEnvelopeFields(JSON.parse(text));
|
|
19703
|
+
if (matchesGeneratedJsonSchema(value, toolGatewayErrorSchema) && // The generated schema can't carry Core's per-code rule for this field.
|
|
19704
|
+
(value.missingPermission === void 0 || value.code === "TOOL_CALL_FORBIDDEN")) {
|
|
18140
19705
|
return value;
|
|
18141
19706
|
}
|
|
18142
19707
|
} catch {
|
|
18143
19708
|
}
|
|
18144
19709
|
return void 0;
|
|
18145
19710
|
}
|
|
19711
|
+
function withoutUnknownEnvelopeFields(value) {
|
|
19712
|
+
if (typeof value !== "object" || value === null || Array.isArray(value)) return value;
|
|
19713
|
+
return Object.fromEntries(
|
|
19714
|
+
Object.entries(value).filter(
|
|
19715
|
+
([property]) => Object.hasOwn(toolGatewayErrorSchema.properties, property)
|
|
19716
|
+
)
|
|
19717
|
+
);
|
|
19718
|
+
}
|
|
18146
19719
|
function matchesGeneratedJsonSchema(value, schema) {
|
|
18147
19720
|
if (Object.hasOwn(schema, "const") && !Object.is(schema.const, value)) {
|
|
18148
19721
|
return false;
|
|
@@ -18254,6 +19827,7 @@ var sqlToolNames = analyticalToolNames.filter(
|
|
|
18254
19827
|
isOutlitToolsApiError,
|
|
18255
19828
|
isPublicToolName,
|
|
18256
19829
|
matchesGeneratedJsonSchema,
|
|
19830
|
+
normalizeCustomerSourceToolInput,
|
|
18257
19831
|
normalizeCustomerSourceType,
|
|
18258
19832
|
piToolNames,
|
|
18259
19833
|
publicOpenApiTransports,
|