@outlit/tools 2.4.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 +1188 -58
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1019 -165
- package/dist/index.d.ts +1019 -165
- package/dist/index.js +1188 -58
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
var contractVersion = 1;
|
|
3
3
|
var publicToolNames = [
|
|
4
4
|
"outlit_list_customers",
|
|
5
|
+
"outlit_list_crm_fields",
|
|
5
6
|
"outlit_list_users",
|
|
6
7
|
"outlit_list_workspace_users",
|
|
7
8
|
"outlit_get_customer",
|
|
@@ -60,10 +61,11 @@ var publicToolContracts = {
|
|
|
60
61
|
"commandVersion": 1,
|
|
61
62
|
"ownerDomain": "customers",
|
|
62
63
|
"title": "List Customers",
|
|
63
|
-
"description": "Browse and filter customers. Use this to find customers by billing status, activity recency, revenue, or
|
|
64
|
+
"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.",
|
|
64
65
|
"annotations": {
|
|
65
66
|
"readOnlyHint": true,
|
|
66
67
|
"destructiveHint": false,
|
|
68
|
+
"idempotentHint": true,
|
|
67
69
|
"openWorldHint": false
|
|
68
70
|
},
|
|
69
71
|
"inputSchema": {
|
|
@@ -108,15 +110,20 @@ var publicToolContracts = {
|
|
|
108
110
|
]
|
|
109
111
|
},
|
|
110
112
|
"arrAbove": {
|
|
111
|
-
"description": "Minimum ARR, in arr.amount's units per year (1200000 is $12,000 for a customer billed in USD). Customers whose ARR is unknown never match.",
|
|
113
|
+
"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.",
|
|
112
114
|
"type": "number",
|
|
113
115
|
"minimum": 0
|
|
114
116
|
},
|
|
115
117
|
"arrBelow": {
|
|
116
|
-
"description": "Maximum ARR, in arr.amount's units per year. Customers whose ARR is unknown never match.",
|
|
118
|
+
"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.",
|
|
117
119
|
"type": "number",
|
|
118
120
|
"minimum": 0
|
|
119
121
|
},
|
|
122
|
+
"arrCurrency": {
|
|
123
|
+
"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.",
|
|
124
|
+
"type": "string",
|
|
125
|
+
"pattern": "^[A-Za-z]{3}$"
|
|
126
|
+
},
|
|
120
127
|
"mrrAbove": {
|
|
121
128
|
"description": "Deprecated: use arrAbove.",
|
|
122
129
|
"type": "number",
|
|
@@ -168,6 +175,120 @@ var publicToolContracts = {
|
|
|
168
175
|
"description": "Filter customers by whether they have an owner",
|
|
169
176
|
"type": "boolean"
|
|
170
177
|
},
|
|
178
|
+
"crm": {
|
|
179
|
+
"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.",
|
|
180
|
+
"maxItems": 10,
|
|
181
|
+
"type": "array",
|
|
182
|
+
"items": {
|
|
183
|
+
"type": "object",
|
|
184
|
+
"properties": {
|
|
185
|
+
"field": {
|
|
186
|
+
"type": "object",
|
|
187
|
+
"properties": {
|
|
188
|
+
"provider": {
|
|
189
|
+
"type": "string",
|
|
190
|
+
"enum": [
|
|
191
|
+
"hubspot",
|
|
192
|
+
"salesforce",
|
|
193
|
+
"attio",
|
|
194
|
+
"pylon"
|
|
195
|
+
]
|
|
196
|
+
},
|
|
197
|
+
"key": {
|
|
198
|
+
"type": "string",
|
|
199
|
+
"minLength": 1,
|
|
200
|
+
"maxLength": 191,
|
|
201
|
+
"description": "The field's key (API name) in that system, as outlit_list_crm_fields lists it."
|
|
202
|
+
}
|
|
203
|
+
},
|
|
204
|
+
"required": [
|
|
205
|
+
"provider",
|
|
206
|
+
"key"
|
|
207
|
+
]
|
|
208
|
+
},
|
|
209
|
+
"op": {
|
|
210
|
+
"type": "string",
|
|
211
|
+
"enum": [
|
|
212
|
+
"eq",
|
|
213
|
+
"in",
|
|
214
|
+
"gte",
|
|
215
|
+
"lte"
|
|
216
|
+
]
|
|
217
|
+
},
|
|
218
|
+
"value": {
|
|
219
|
+
"anyOf": [
|
|
220
|
+
{
|
|
221
|
+
"anyOf": [
|
|
222
|
+
{
|
|
223
|
+
"type": "string",
|
|
224
|
+
"maxLength": 500
|
|
225
|
+
},
|
|
226
|
+
{
|
|
227
|
+
"type": "number"
|
|
228
|
+
},
|
|
229
|
+
{
|
|
230
|
+
"type": "boolean"
|
|
231
|
+
}
|
|
232
|
+
]
|
|
233
|
+
},
|
|
234
|
+
{
|
|
235
|
+
"minItems": 1,
|
|
236
|
+
"maxItems": 50,
|
|
237
|
+
"type": "array",
|
|
238
|
+
"items": {
|
|
239
|
+
"anyOf": [
|
|
240
|
+
{
|
|
241
|
+
"type": "string",
|
|
242
|
+
"maxLength": 500
|
|
243
|
+
},
|
|
244
|
+
{
|
|
245
|
+
"type": "number"
|
|
246
|
+
},
|
|
247
|
+
{
|
|
248
|
+
"type": "boolean"
|
|
249
|
+
}
|
|
250
|
+
]
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
]
|
|
254
|
+
}
|
|
255
|
+
},
|
|
256
|
+
"required": [
|
|
257
|
+
"field",
|
|
258
|
+
"op",
|
|
259
|
+
"value"
|
|
260
|
+
]
|
|
261
|
+
}
|
|
262
|
+
},
|
|
263
|
+
"crmFields": {
|
|
264
|
+
"description": "CRM and support tool account fields to return on each customer, as crm; use outlit_list_crm_fields to find keys.",
|
|
265
|
+
"maxItems": 5,
|
|
266
|
+
"type": "array",
|
|
267
|
+
"items": {
|
|
268
|
+
"type": "object",
|
|
269
|
+
"properties": {
|
|
270
|
+
"provider": {
|
|
271
|
+
"type": "string",
|
|
272
|
+
"enum": [
|
|
273
|
+
"hubspot",
|
|
274
|
+
"salesforce",
|
|
275
|
+
"attio",
|
|
276
|
+
"pylon"
|
|
277
|
+
]
|
|
278
|
+
},
|
|
279
|
+
"key": {
|
|
280
|
+
"type": "string",
|
|
281
|
+
"minLength": 1,
|
|
282
|
+
"maxLength": 191,
|
|
283
|
+
"description": "The field's key (API name) in that system, as outlit_list_crm_fields lists it."
|
|
284
|
+
}
|
|
285
|
+
},
|
|
286
|
+
"required": [
|
|
287
|
+
"provider",
|
|
288
|
+
"key"
|
|
289
|
+
]
|
|
290
|
+
}
|
|
291
|
+
},
|
|
171
292
|
"limit": {
|
|
172
293
|
"description": "Results per page (max 1000)",
|
|
173
294
|
"default": 50,
|
|
@@ -180,7 +301,7 @@ var publicToolContracts = {
|
|
|
180
301
|
"type": "string"
|
|
181
302
|
},
|
|
182
303
|
"orderBy": {
|
|
183
|
-
"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.",
|
|
304
|
+
"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.",
|
|
184
305
|
"default": "last_activity_at",
|
|
185
306
|
"type": "string",
|
|
186
307
|
"enum": [
|
|
@@ -350,6 +471,66 @@ var publicToolContracts = {
|
|
|
350
471
|
"type": "null"
|
|
351
472
|
}
|
|
352
473
|
]
|
|
474
|
+
},
|
|
475
|
+
"crm": {
|
|
476
|
+
"description": "With crmFields: each asked-for field, in the order asked.",
|
|
477
|
+
"type": "array",
|
|
478
|
+
"items": {
|
|
479
|
+
"type": "object",
|
|
480
|
+
"properties": {
|
|
481
|
+
"field": {
|
|
482
|
+
"type": "object",
|
|
483
|
+
"properties": {
|
|
484
|
+
"provider": {
|
|
485
|
+
"type": "string",
|
|
486
|
+
"enum": [
|
|
487
|
+
"hubspot",
|
|
488
|
+
"salesforce",
|
|
489
|
+
"attio",
|
|
490
|
+
"pylon"
|
|
491
|
+
]
|
|
492
|
+
},
|
|
493
|
+
"key": {
|
|
494
|
+
"type": "string",
|
|
495
|
+
"minLength": 1,
|
|
496
|
+
"maxLength": 191,
|
|
497
|
+
"description": "The field's key (API name) in that system, as outlit_list_crm_fields lists it."
|
|
498
|
+
}
|
|
499
|
+
},
|
|
500
|
+
"required": [
|
|
501
|
+
"provider",
|
|
502
|
+
"key"
|
|
503
|
+
],
|
|
504
|
+
"additionalProperties": false
|
|
505
|
+
},
|
|
506
|
+
"label": {
|
|
507
|
+
"type": "string"
|
|
508
|
+
},
|
|
509
|
+
"values": {
|
|
510
|
+
"type": "array",
|
|
511
|
+
"items": {
|
|
512
|
+
"anyOf": [
|
|
513
|
+
{
|
|
514
|
+
"type": "string"
|
|
515
|
+
},
|
|
516
|
+
{
|
|
517
|
+
"type": "number"
|
|
518
|
+
},
|
|
519
|
+
{
|
|
520
|
+
"type": "boolean"
|
|
521
|
+
}
|
|
522
|
+
]
|
|
523
|
+
},
|
|
524
|
+
"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."
|
|
525
|
+
}
|
|
526
|
+
},
|
|
527
|
+
"required": [
|
|
528
|
+
"field",
|
|
529
|
+
"label",
|
|
530
|
+
"values"
|
|
531
|
+
],
|
|
532
|
+
"additionalProperties": false
|
|
533
|
+
}
|
|
353
534
|
}
|
|
354
535
|
},
|
|
355
536
|
"required": [
|
|
@@ -396,6 +577,180 @@ var publicToolContracts = {
|
|
|
396
577
|
"total"
|
|
397
578
|
],
|
|
398
579
|
"additionalProperties": false
|
|
580
|
+
},
|
|
581
|
+
"arrCurrencies": {
|
|
582
|
+
"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.",
|
|
583
|
+
"type": "array",
|
|
584
|
+
"items": {
|
|
585
|
+
"type": "string"
|
|
586
|
+
}
|
|
587
|
+
}
|
|
588
|
+
},
|
|
589
|
+
"required": [
|
|
590
|
+
"items",
|
|
591
|
+
"pagination"
|
|
592
|
+
],
|
|
593
|
+
"additionalProperties": false
|
|
594
|
+
}
|
|
595
|
+
},
|
|
596
|
+
"outlit_list_crm_fields": {
|
|
597
|
+
"toolName": "outlit_list_crm_fields",
|
|
598
|
+
"commandId": "crm_field.list",
|
|
599
|
+
"commandVersion": 1,
|
|
600
|
+
"ownerDomain": "customers",
|
|
601
|
+
"title": "List CRM Fields",
|
|
602
|
+
"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.",
|
|
603
|
+
"annotations": {
|
|
604
|
+
"readOnlyHint": true,
|
|
605
|
+
"destructiveHint": false,
|
|
606
|
+
"idempotentHint": true,
|
|
607
|
+
"openWorldHint": false
|
|
608
|
+
},
|
|
609
|
+
"inputSchema": {
|
|
610
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
611
|
+
"type": "object",
|
|
612
|
+
"properties": {
|
|
613
|
+
"provider": {
|
|
614
|
+
"description": "Only this system's fields",
|
|
615
|
+
"type": "string",
|
|
616
|
+
"enum": [
|
|
617
|
+
"hubspot",
|
|
618
|
+
"salesforce",
|
|
619
|
+
"attio",
|
|
620
|
+
"pylon"
|
|
621
|
+
]
|
|
622
|
+
},
|
|
623
|
+
"search": {
|
|
624
|
+
"description": "Only fields whose key or label contains this text, ignoring case",
|
|
625
|
+
"type": "string",
|
|
626
|
+
"maxLength": 100
|
|
627
|
+
},
|
|
628
|
+
"limit": {
|
|
629
|
+
"description": "Fields per page (max 50)",
|
|
630
|
+
"default": 20,
|
|
631
|
+
"type": "integer",
|
|
632
|
+
"minimum": 1,
|
|
633
|
+
"maximum": 50
|
|
634
|
+
},
|
|
635
|
+
"cursor": {
|
|
636
|
+
"description": "Pagination cursor from previous response",
|
|
637
|
+
"type": "string"
|
|
638
|
+
}
|
|
639
|
+
}
|
|
640
|
+
},
|
|
641
|
+
"outputSchema": {
|
|
642
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
643
|
+
"type": "object",
|
|
644
|
+
"properties": {
|
|
645
|
+
"items": {
|
|
646
|
+
"type": "array",
|
|
647
|
+
"items": {
|
|
648
|
+
"type": "object",
|
|
649
|
+
"properties": {
|
|
650
|
+
"field": {
|
|
651
|
+
"type": "object",
|
|
652
|
+
"properties": {
|
|
653
|
+
"provider": {
|
|
654
|
+
"type": "string",
|
|
655
|
+
"enum": [
|
|
656
|
+
"hubspot",
|
|
657
|
+
"salesforce",
|
|
658
|
+
"attio",
|
|
659
|
+
"pylon"
|
|
660
|
+
]
|
|
661
|
+
},
|
|
662
|
+
"key": {
|
|
663
|
+
"type": "string",
|
|
664
|
+
"minLength": 1,
|
|
665
|
+
"maxLength": 191,
|
|
666
|
+
"description": "The field's key (API name) in that system, as outlit_list_crm_fields lists it."
|
|
667
|
+
}
|
|
668
|
+
},
|
|
669
|
+
"required": [
|
|
670
|
+
"provider",
|
|
671
|
+
"key"
|
|
672
|
+
],
|
|
673
|
+
"additionalProperties": false,
|
|
674
|
+
"description": "Pass this as-is to outlit_list_customers' crm filter or crmFields."
|
|
675
|
+
},
|
|
676
|
+
"label": {
|
|
677
|
+
"type": "string"
|
|
678
|
+
},
|
|
679
|
+
"type": {
|
|
680
|
+
"type": "string",
|
|
681
|
+
"description": "The field's type in that system, as it names it."
|
|
682
|
+
},
|
|
683
|
+
"options": {
|
|
684
|
+
"anyOf": [
|
|
685
|
+
{
|
|
686
|
+
"type": "array",
|
|
687
|
+
"items": {
|
|
688
|
+
"type": "string"
|
|
689
|
+
}
|
|
690
|
+
},
|
|
691
|
+
{
|
|
692
|
+
"type": "null"
|
|
693
|
+
}
|
|
694
|
+
],
|
|
695
|
+
"description": "A picklist's choices as that system defines them; null for other fields."
|
|
696
|
+
},
|
|
697
|
+
"observedValues": {
|
|
698
|
+
"type": "array",
|
|
699
|
+
"items": {
|
|
700
|
+
"anyOf": [
|
|
701
|
+
{
|
|
702
|
+
"type": "string"
|
|
703
|
+
},
|
|
704
|
+
{
|
|
705
|
+
"type": "number"
|
|
706
|
+
},
|
|
707
|
+
{
|
|
708
|
+
"type": "boolean"
|
|
709
|
+
}
|
|
710
|
+
]
|
|
711
|
+
},
|
|
712
|
+
"description": "Up to 20 of the values the customers' linked accounts hold, most common first, a multi-value field's values one by one."
|
|
713
|
+
},
|
|
714
|
+
"accounts": {
|
|
715
|
+
"type": "integer",
|
|
716
|
+
"minimum": 0,
|
|
717
|
+
"maximum": 9007199254740991,
|
|
718
|
+
"description": "How many accounts linked to customers hold a value."
|
|
719
|
+
}
|
|
720
|
+
},
|
|
721
|
+
"required": [
|
|
722
|
+
"field",
|
|
723
|
+
"label",
|
|
724
|
+
"type",
|
|
725
|
+
"options",
|
|
726
|
+
"observedValues",
|
|
727
|
+
"accounts"
|
|
728
|
+
],
|
|
729
|
+
"additionalProperties": false
|
|
730
|
+
}
|
|
731
|
+
},
|
|
732
|
+
"pagination": {
|
|
733
|
+
"type": "object",
|
|
734
|
+
"properties": {
|
|
735
|
+
"hasMore": {
|
|
736
|
+
"type": "boolean"
|
|
737
|
+
},
|
|
738
|
+
"nextCursor": {
|
|
739
|
+
"anyOf": [
|
|
740
|
+
{
|
|
741
|
+
"type": "string"
|
|
742
|
+
},
|
|
743
|
+
{
|
|
744
|
+
"type": "null"
|
|
745
|
+
}
|
|
746
|
+
]
|
|
747
|
+
}
|
|
748
|
+
},
|
|
749
|
+
"required": [
|
|
750
|
+
"hasMore",
|
|
751
|
+
"nextCursor"
|
|
752
|
+
],
|
|
753
|
+
"additionalProperties": false
|
|
399
754
|
}
|
|
400
755
|
},
|
|
401
756
|
"required": [
|
|
@@ -411,10 +766,11 @@ var publicToolContracts = {
|
|
|
411
766
|
"commandVersion": 1,
|
|
412
767
|
"ownerDomain": "users",
|
|
413
768
|
"title": "List Users",
|
|
414
|
-
"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.",
|
|
769
|
+
"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.",
|
|
415
770
|
"annotations": {
|
|
416
771
|
"readOnlyHint": true,
|
|
417
772
|
"destructiveHint": false,
|
|
773
|
+
"idempotentHint": true,
|
|
418
774
|
"openWorldHint": false
|
|
419
775
|
},
|
|
420
776
|
"inputSchema": {
|
|
@@ -503,6 +859,25 @@ var publicToolContracts = {
|
|
|
503
859
|
"asc",
|
|
504
860
|
"desc"
|
|
505
861
|
]
|
|
862
|
+
},
|
|
863
|
+
"include": {
|
|
864
|
+
"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.",
|
|
865
|
+
"type": "array",
|
|
866
|
+
"items": {
|
|
867
|
+
"type": "string",
|
|
868
|
+
"enum": [
|
|
869
|
+
"crm"
|
|
870
|
+
]
|
|
871
|
+
}
|
|
872
|
+
},
|
|
873
|
+
"crmFields": {
|
|
874
|
+
"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.",
|
|
875
|
+
"maxItems": 100,
|
|
876
|
+
"type": "array",
|
|
877
|
+
"items": {
|
|
878
|
+
"type": "string",
|
|
879
|
+
"maxLength": 191
|
|
880
|
+
}
|
|
506
881
|
}
|
|
507
882
|
}
|
|
508
883
|
},
|
|
@@ -646,23 +1021,108 @@ var publicToolContracts = {
|
|
|
646
1021
|
{
|
|
647
1022
|
"type": "string"
|
|
648
1023
|
},
|
|
649
|
-
{
|
|
650
|
-
"type": "null"
|
|
1024
|
+
{
|
|
1025
|
+
"type": "null"
|
|
1026
|
+
}
|
|
1027
|
+
],
|
|
1028
|
+
"description": "The latest conversation; null for records."
|
|
1029
|
+
}
|
|
1030
|
+
},
|
|
1031
|
+
"required": [
|
|
1032
|
+
"system",
|
|
1033
|
+
"kind",
|
|
1034
|
+
"count",
|
|
1035
|
+
"firstSeenAt",
|
|
1036
|
+
"lastSeenAt"
|
|
1037
|
+
],
|
|
1038
|
+
"additionalProperties": false
|
|
1039
|
+
},
|
|
1040
|
+
"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."
|
|
1041
|
+
},
|
|
1042
|
+
"crm": {
|
|
1043
|
+
"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.",
|
|
1044
|
+
"anyOf": [
|
|
1045
|
+
{
|
|
1046
|
+
"type": "array",
|
|
1047
|
+
"items": {
|
|
1048
|
+
"type": "object",
|
|
1049
|
+
"properties": {
|
|
1050
|
+
"provider": {
|
|
1051
|
+
"type": "string",
|
|
1052
|
+
"description": "The system that holds the contact: hubspot, salesforce, attio or pylon."
|
|
1053
|
+
},
|
|
1054
|
+
"connectionId": {
|
|
1055
|
+
"type": "string",
|
|
1056
|
+
"description": "The Outlit integration connection the contact syncs through."
|
|
1057
|
+
},
|
|
1058
|
+
"contactId": {
|
|
1059
|
+
"type": "string",
|
|
1060
|
+
"description": "The contact's id in that system."
|
|
1061
|
+
},
|
|
1062
|
+
"fields": {
|
|
1063
|
+
"type": "array",
|
|
1064
|
+
"items": {
|
|
1065
|
+
"type": "object",
|
|
1066
|
+
"properties": {
|
|
1067
|
+
"key": {
|
|
1068
|
+
"type": "string",
|
|
1069
|
+
"description": "The field's API name or slug in that system."
|
|
1070
|
+
},
|
|
1071
|
+
"label": {
|
|
1072
|
+
"type": "string",
|
|
1073
|
+
"description": "The field's name in that system's UI; the key when unknown."
|
|
1074
|
+
},
|
|
1075
|
+
"value": {
|
|
1076
|
+
"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."
|
|
1077
|
+
},
|
|
1078
|
+
"custom": {
|
|
1079
|
+
"type": "boolean",
|
|
1080
|
+
"description": "True for a field the customer's team added to that system."
|
|
1081
|
+
}
|
|
1082
|
+
},
|
|
1083
|
+
"required": [
|
|
1084
|
+
"key",
|
|
1085
|
+
"label",
|
|
1086
|
+
"value",
|
|
1087
|
+
"custom"
|
|
1088
|
+
],
|
|
1089
|
+
"additionalProperties": false
|
|
1090
|
+
},
|
|
1091
|
+
"description": "The contact's non-empty fields, sorted by key."
|
|
1092
|
+
},
|
|
1093
|
+
"omittedFields": {
|
|
1094
|
+
"description": "Keys of fields left out so the response stays within its size limit, as many as fit. Ask for them with crmFields.",
|
|
1095
|
+
"type": "array",
|
|
1096
|
+
"items": {
|
|
1097
|
+
"type": "string"
|
|
1098
|
+
}
|
|
1099
|
+
},
|
|
1100
|
+
"omittedFieldCount": {
|
|
1101
|
+
"description": "How many fields were left out, including any not named in omittedFields.",
|
|
1102
|
+
"type": "integer",
|
|
1103
|
+
"minimum": 0,
|
|
1104
|
+
"maximum": 9007199254740991
|
|
651
1105
|
}
|
|
1106
|
+
},
|
|
1107
|
+
"required": [
|
|
1108
|
+
"provider",
|
|
1109
|
+
"connectionId",
|
|
1110
|
+
"contactId",
|
|
1111
|
+
"fields"
|
|
652
1112
|
],
|
|
653
|
-
"
|
|
1113
|
+
"additionalProperties": false
|
|
654
1114
|
}
|
|
655
1115
|
},
|
|
656
|
-
|
|
657
|
-
"
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
"
|
|
1116
|
+
{
|
|
1117
|
+
"type": "null"
|
|
1118
|
+
}
|
|
1119
|
+
]
|
|
1120
|
+
},
|
|
1121
|
+
"omittedCrmContacts": {
|
|
1122
|
+
"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.",
|
|
1123
|
+
"type": "integer",
|
|
1124
|
+
"minimum": 1,
|
|
1125
|
+
"maximum": 9007199254740991
|
|
666
1126
|
},
|
|
667
1127
|
"relationshipRole": {
|
|
668
1128
|
"anyOf": [
|
|
@@ -771,6 +1231,7 @@ var publicToolContracts = {
|
|
|
771
1231
|
"annotations": {
|
|
772
1232
|
"readOnlyHint": true,
|
|
773
1233
|
"destructiveHint": false,
|
|
1234
|
+
"idempotentHint": true,
|
|
774
1235
|
"openWorldHint": false
|
|
775
1236
|
},
|
|
776
1237
|
"inputSchema": {
|
|
@@ -959,10 +1420,11 @@ var publicToolContracts = {
|
|
|
959
1420
|
"commandVersion": 1,
|
|
960
1421
|
"ownerDomain": "customers",
|
|
961
1422
|
"title": "Get Customer",
|
|
962
|
-
"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, owner and custom fields) as stored
|
|
1423
|
+
"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.",
|
|
963
1424
|
"annotations": {
|
|
964
1425
|
"readOnlyHint": true,
|
|
965
1426
|
"destructiveHint": false,
|
|
1427
|
+
"idempotentHint": true,
|
|
966
1428
|
"openWorldHint": false
|
|
967
1429
|
},
|
|
968
1430
|
"inputSchema": {
|
|
@@ -987,7 +1449,8 @@ var publicToolContracts = {
|
|
|
987
1449
|
"behaviorMetrics",
|
|
988
1450
|
"enrichment",
|
|
989
1451
|
"renewal",
|
|
990
|
-
"crm"
|
|
1452
|
+
"crm",
|
|
1453
|
+
"links"
|
|
991
1454
|
]
|
|
992
1455
|
}
|
|
993
1456
|
},
|
|
@@ -1002,8 +1465,16 @@ var publicToolContracts = {
|
|
|
1002
1465
|
"90d"
|
|
1003
1466
|
]
|
|
1004
1467
|
},
|
|
1468
|
+
"subscriptions": {
|
|
1469
|
+
"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.",
|
|
1470
|
+
"type": "string",
|
|
1471
|
+
"enum": [
|
|
1472
|
+
"live",
|
|
1473
|
+
"all"
|
|
1474
|
+
]
|
|
1475
|
+
},
|
|
1005
1476
|
"crmFields": {
|
|
1006
|
-
"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.",
|
|
1477
|
+
"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.",
|
|
1007
1478
|
"maxItems": 100,
|
|
1008
1479
|
"type": "array",
|
|
1009
1480
|
"items": {
|
|
@@ -1245,6 +1716,91 @@ var publicToolContracts = {
|
|
|
1245
1716
|
},
|
|
1246
1717
|
"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."
|
|
1247
1718
|
},
|
|
1719
|
+
"crm": {
|
|
1720
|
+
"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.",
|
|
1721
|
+
"anyOf": [
|
|
1722
|
+
{
|
|
1723
|
+
"type": "array",
|
|
1724
|
+
"items": {
|
|
1725
|
+
"type": "object",
|
|
1726
|
+
"properties": {
|
|
1727
|
+
"provider": {
|
|
1728
|
+
"type": "string",
|
|
1729
|
+
"description": "The system that holds the contact: hubspot, salesforce, attio or pylon."
|
|
1730
|
+
},
|
|
1731
|
+
"connectionId": {
|
|
1732
|
+
"type": "string",
|
|
1733
|
+
"description": "The Outlit integration connection the contact syncs through."
|
|
1734
|
+
},
|
|
1735
|
+
"contactId": {
|
|
1736
|
+
"type": "string",
|
|
1737
|
+
"description": "The contact's id in that system."
|
|
1738
|
+
},
|
|
1739
|
+
"fields": {
|
|
1740
|
+
"type": "array",
|
|
1741
|
+
"items": {
|
|
1742
|
+
"type": "object",
|
|
1743
|
+
"properties": {
|
|
1744
|
+
"key": {
|
|
1745
|
+
"type": "string",
|
|
1746
|
+
"description": "The field's API name or slug in that system."
|
|
1747
|
+
},
|
|
1748
|
+
"label": {
|
|
1749
|
+
"type": "string",
|
|
1750
|
+
"description": "The field's name in that system's UI; the key when unknown."
|
|
1751
|
+
},
|
|
1752
|
+
"value": {
|
|
1753
|
+
"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."
|
|
1754
|
+
},
|
|
1755
|
+
"custom": {
|
|
1756
|
+
"type": "boolean",
|
|
1757
|
+
"description": "True for a field the customer's team added to that system."
|
|
1758
|
+
}
|
|
1759
|
+
},
|
|
1760
|
+
"required": [
|
|
1761
|
+
"key",
|
|
1762
|
+
"label",
|
|
1763
|
+
"value",
|
|
1764
|
+
"custom"
|
|
1765
|
+
],
|
|
1766
|
+
"additionalProperties": false
|
|
1767
|
+
},
|
|
1768
|
+
"description": "The contact's non-empty fields, sorted by key."
|
|
1769
|
+
},
|
|
1770
|
+
"omittedFields": {
|
|
1771
|
+
"description": "Keys of fields left out so the response stays within its size limit, as many as fit. Ask for them with crmFields.",
|
|
1772
|
+
"type": "array",
|
|
1773
|
+
"items": {
|
|
1774
|
+
"type": "string"
|
|
1775
|
+
}
|
|
1776
|
+
},
|
|
1777
|
+
"omittedFieldCount": {
|
|
1778
|
+
"description": "How many fields were left out, including any not named in omittedFields.",
|
|
1779
|
+
"type": "integer",
|
|
1780
|
+
"minimum": 0,
|
|
1781
|
+
"maximum": 9007199254740991
|
|
1782
|
+
}
|
|
1783
|
+
},
|
|
1784
|
+
"required": [
|
|
1785
|
+
"provider",
|
|
1786
|
+
"connectionId",
|
|
1787
|
+
"contactId",
|
|
1788
|
+
"fields"
|
|
1789
|
+
],
|
|
1790
|
+
"additionalProperties": false
|
|
1791
|
+
}
|
|
1792
|
+
},
|
|
1793
|
+
{
|
|
1794
|
+
"type": "null"
|
|
1795
|
+
}
|
|
1796
|
+
]
|
|
1797
|
+
},
|
|
1798
|
+
"omittedCrmContacts": {
|
|
1799
|
+
"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.",
|
|
1800
|
+
"type": "integer",
|
|
1801
|
+
"minimum": 1,
|
|
1802
|
+
"maximum": 9007199254740991
|
|
1803
|
+
},
|
|
1248
1804
|
"relationshipRole": {
|
|
1249
1805
|
"anyOf": [
|
|
1250
1806
|
{
|
|
@@ -1380,43 +1936,363 @@ var publicToolContracts = {
|
|
|
1380
1936
|
{
|
|
1381
1937
|
"type": "null"
|
|
1382
1938
|
}
|
|
1383
|
-
],
|
|
1384
|
-
"description": "
|
|
1939
|
+
],
|
|
1940
|
+
"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."
|
|
1941
|
+
}
|
|
1942
|
+
},
|
|
1943
|
+
"required": [
|
|
1944
|
+
"subscriptions",
|
|
1945
|
+
"usage",
|
|
1946
|
+
"invoicedLast12Months"
|
|
1947
|
+
],
|
|
1948
|
+
"additionalProperties": false,
|
|
1949
|
+
"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."
|
|
1950
|
+
}
|
|
1951
|
+
},
|
|
1952
|
+
"required": [
|
|
1953
|
+
"amount",
|
|
1954
|
+
"currency",
|
|
1955
|
+
"estimated",
|
|
1956
|
+
"lifecycle",
|
|
1957
|
+
"parts"
|
|
1958
|
+
],
|
|
1959
|
+
"additionalProperties": false
|
|
1960
|
+
},
|
|
1961
|
+
{
|
|
1962
|
+
"type": "null"
|
|
1963
|
+
}
|
|
1964
|
+
],
|
|
1965
|
+
"description": "Null when the app shows no ARR for this customer."
|
|
1966
|
+
},
|
|
1967
|
+
"lifetimeRevenue": {
|
|
1968
|
+
"type": "number",
|
|
1969
|
+
"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."
|
|
1970
|
+
},
|
|
1971
|
+
"lifetimeRevenueCurrency": {
|
|
1972
|
+
"description": "ISO currency code of lifetimeRevenue; null when nothing has been paid or the currency is unknown.",
|
|
1973
|
+
"anyOf": [
|
|
1974
|
+
{
|
|
1975
|
+
"type": "string"
|
|
1976
|
+
},
|
|
1977
|
+
{
|
|
1978
|
+
"type": "null"
|
|
1979
|
+
}
|
|
1980
|
+
]
|
|
1981
|
+
},
|
|
1982
|
+
"activeSubscriptions": {
|
|
1983
|
+
"type": "integer",
|
|
1984
|
+
"minimum": 0,
|
|
1985
|
+
"maximum": 9007199254740991,
|
|
1986
|
+
"description": "Subscriptions that bill now: active, trialing or past due. billingStatus says whether payments are behind."
|
|
1987
|
+
},
|
|
1988
|
+
"subscriptions": {
|
|
1989
|
+
"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.",
|
|
1990
|
+
"type": "array",
|
|
1991
|
+
"items": {
|
|
1992
|
+
"type": "object",
|
|
1993
|
+
"properties": {
|
|
1994
|
+
"id": {
|
|
1995
|
+
"type": "string",
|
|
1996
|
+
"description": "The billing provider's subscription id (sub_...)."
|
|
1997
|
+
},
|
|
1998
|
+
"status": {
|
|
1999
|
+
"type": "string",
|
|
2000
|
+
"description": "The provider's own status: active, past_due, paused or trialing, and with subscriptions all also canceled."
|
|
2001
|
+
},
|
|
2002
|
+
"paused": {
|
|
2003
|
+
"type": "boolean",
|
|
2004
|
+
"description": "Collection is paused."
|
|
2005
|
+
},
|
|
2006
|
+
"currentPeriodEnd": {
|
|
2007
|
+
"anyOf": [
|
|
2008
|
+
{
|
|
2009
|
+
"type": "string",
|
|
2010
|
+
"format": "date-time",
|
|
2011
|
+
"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))$"
|
|
2012
|
+
},
|
|
2013
|
+
{
|
|
2014
|
+
"type": "null"
|
|
2015
|
+
}
|
|
2016
|
+
],
|
|
2017
|
+
"description": "End of the current billing period. With items on different intervals it is the shortest interval's period, not the term."
|
|
2018
|
+
},
|
|
2019
|
+
"cancelAtPeriodEnd": {
|
|
2020
|
+
"anyOf": [
|
|
2021
|
+
{
|
|
2022
|
+
"type": "boolean"
|
|
2023
|
+
},
|
|
2024
|
+
{
|
|
2025
|
+
"type": "null"
|
|
2026
|
+
}
|
|
2027
|
+
],
|
|
2028
|
+
"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."
|
|
2029
|
+
},
|
|
2030
|
+
"cancelAt": {
|
|
2031
|
+
"anyOf": [
|
|
2032
|
+
{
|
|
2033
|
+
"type": "string",
|
|
2034
|
+
"format": "date-time",
|
|
2035
|
+
"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))$"
|
|
2036
|
+
},
|
|
2037
|
+
{
|
|
2038
|
+
"type": "null"
|
|
2039
|
+
}
|
|
2040
|
+
],
|
|
2041
|
+
"description": "When a scheduled cancellation ends the subscription; null when none is scheduled or unknown."
|
|
2042
|
+
},
|
|
2043
|
+
"items": {
|
|
2044
|
+
"type": "array",
|
|
2045
|
+
"items": {
|
|
2046
|
+
"type": "object",
|
|
2047
|
+
"properties": {
|
|
2048
|
+
"productId": {
|
|
2049
|
+
"anyOf": [
|
|
2050
|
+
{
|
|
2051
|
+
"type": "string"
|
|
2052
|
+
},
|
|
2053
|
+
{
|
|
2054
|
+
"type": "null"
|
|
2055
|
+
}
|
|
2056
|
+
],
|
|
2057
|
+
"description": "The billing provider's product id (prod_...)."
|
|
2058
|
+
},
|
|
2059
|
+
"productName": {
|
|
2060
|
+
"anyOf": [
|
|
2061
|
+
{
|
|
2062
|
+
"type": "string"
|
|
2063
|
+
},
|
|
2064
|
+
{
|
|
2065
|
+
"type": "null"
|
|
2066
|
+
}
|
|
2067
|
+
],
|
|
2068
|
+
"description": "The product's name in the billing provider; null when Outlit has not synced it."
|
|
2069
|
+
},
|
|
2070
|
+
"priceId": {
|
|
2071
|
+
"anyOf": [
|
|
2072
|
+
{
|
|
2073
|
+
"type": "string"
|
|
2074
|
+
},
|
|
2075
|
+
{
|
|
2076
|
+
"type": "null"
|
|
2077
|
+
}
|
|
2078
|
+
],
|
|
2079
|
+
"description": "The billing provider's price id (price_...)."
|
|
2080
|
+
},
|
|
2081
|
+
"quantity": {
|
|
2082
|
+
"anyOf": [
|
|
2083
|
+
{
|
|
2084
|
+
"type": "number"
|
|
2085
|
+
},
|
|
2086
|
+
{
|
|
2087
|
+
"type": "null"
|
|
2088
|
+
}
|
|
2089
|
+
],
|
|
2090
|
+
"description": "Units (seats) on a licensed item; null when unset."
|
|
2091
|
+
},
|
|
2092
|
+
"unitAmount": {
|
|
2093
|
+
"anyOf": [
|
|
2094
|
+
{
|
|
2095
|
+
"type": "number"
|
|
2096
|
+
},
|
|
2097
|
+
{
|
|
2098
|
+
"type": "null"
|
|
2099
|
+
}
|
|
2100
|
+
],
|
|
2101
|
+
"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)."
|
|
2102
|
+
},
|
|
2103
|
+
"currency": {
|
|
2104
|
+
"type": "string",
|
|
2105
|
+
"description": "ISO currency code of unitAmount."
|
|
2106
|
+
},
|
|
2107
|
+
"interval": {
|
|
2108
|
+
"anyOf": [
|
|
2109
|
+
{
|
|
2110
|
+
"type": "string",
|
|
2111
|
+
"enum": [
|
|
2112
|
+
"day",
|
|
2113
|
+
"week",
|
|
2114
|
+
"month",
|
|
2115
|
+
"year"
|
|
2116
|
+
]
|
|
2117
|
+
},
|
|
2118
|
+
{
|
|
2119
|
+
"type": "null"
|
|
2120
|
+
}
|
|
2121
|
+
]
|
|
2122
|
+
},
|
|
2123
|
+
"intervalCount": {
|
|
2124
|
+
"anyOf": [
|
|
2125
|
+
{
|
|
2126
|
+
"type": "number"
|
|
2127
|
+
},
|
|
2128
|
+
{
|
|
2129
|
+
"type": "null"
|
|
2130
|
+
}
|
|
2131
|
+
],
|
|
2132
|
+
"description": "Billing intervals per charge, e.g. 3 months."
|
|
2133
|
+
},
|
|
2134
|
+
"usageType": {
|
|
2135
|
+
"anyOf": [
|
|
2136
|
+
{
|
|
2137
|
+
"type": "string",
|
|
2138
|
+
"enum": [
|
|
2139
|
+
"licensed",
|
|
2140
|
+
"metered"
|
|
2141
|
+
]
|
|
2142
|
+
},
|
|
2143
|
+
{
|
|
2144
|
+
"type": "null"
|
|
2145
|
+
}
|
|
2146
|
+
],
|
|
2147
|
+
"description": "licensed bills a fixed quantity; metered bills reported usage."
|
|
2148
|
+
},
|
|
2149
|
+
"billingScheme": {
|
|
2150
|
+
"anyOf": [
|
|
2151
|
+
{
|
|
2152
|
+
"type": "string",
|
|
2153
|
+
"enum": [
|
|
2154
|
+
"per_unit",
|
|
2155
|
+
"tiered"
|
|
2156
|
+
]
|
|
2157
|
+
},
|
|
2158
|
+
{
|
|
2159
|
+
"type": "null"
|
|
2160
|
+
}
|
|
2161
|
+
]
|
|
1385
2162
|
}
|
|
1386
2163
|
},
|
|
1387
2164
|
"required": [
|
|
1388
|
-
"
|
|
1389
|
-
"
|
|
1390
|
-
"
|
|
2165
|
+
"productId",
|
|
2166
|
+
"productName",
|
|
2167
|
+
"priceId",
|
|
2168
|
+
"quantity",
|
|
2169
|
+
"unitAmount",
|
|
2170
|
+
"currency",
|
|
2171
|
+
"interval",
|
|
2172
|
+
"intervalCount",
|
|
2173
|
+
"usageType",
|
|
2174
|
+
"billingScheme"
|
|
1391
2175
|
],
|
|
1392
|
-
"additionalProperties": false
|
|
1393
|
-
|
|
1394
|
-
|
|
2176
|
+
"additionalProperties": false
|
|
2177
|
+
},
|
|
2178
|
+
"description": "Every item on the subscription. Empty for a canceled one, whose stored snapshot lists no items."
|
|
1395
2179
|
},
|
|
1396
|
-
"
|
|
1397
|
-
"
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
2180
|
+
"billingAccountId": {
|
|
2181
|
+
"anyOf": [
|
|
2182
|
+
{
|
|
2183
|
+
"type": "string"
|
|
2184
|
+
},
|
|
2185
|
+
{
|
|
2186
|
+
"type": "null"
|
|
2187
|
+
}
|
|
2188
|
+
],
|
|
2189
|
+
"description": "The Stripe customer id (cus_...) the subscription bills through; null when unknown. Match it against revenue.billingAccounts."
|
|
2190
|
+
},
|
|
2191
|
+
"endedAt": {
|
|
2192
|
+
"anyOf": [
|
|
2193
|
+
{
|
|
2194
|
+
"type": "string",
|
|
2195
|
+
"format": "date-time",
|
|
2196
|
+
"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))$"
|
|
2197
|
+
},
|
|
2198
|
+
{
|
|
2199
|
+
"type": "null"
|
|
2200
|
+
}
|
|
2201
|
+
],
|
|
2202
|
+
"description": "When the subscription ended; null while it is live."
|
|
2203
|
+
}
|
|
1404
2204
|
},
|
|
1405
|
-
|
|
1406
|
-
"
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
2205
|
+
"required": [
|
|
2206
|
+
"id",
|
|
2207
|
+
"status",
|
|
2208
|
+
"paused",
|
|
2209
|
+
"currentPeriodEnd",
|
|
2210
|
+
"cancelAtPeriodEnd",
|
|
2211
|
+
"cancelAt",
|
|
2212
|
+
"items",
|
|
2213
|
+
"billingAccountId",
|
|
2214
|
+
"endedAt"
|
|
2215
|
+
],
|
|
2216
|
+
"additionalProperties": false
|
|
2217
|
+
}
|
|
1410
2218
|
},
|
|
1411
|
-
"
|
|
1412
|
-
"
|
|
1413
|
-
"
|
|
2219
|
+
"billingAccounts": {
|
|
2220
|
+
"description": "Every Stripe customer behind this customer, including ones on customers merged into it, sorted by id. Absent when it can't be read.",
|
|
2221
|
+
"type": "array",
|
|
2222
|
+
"items": {
|
|
2223
|
+
"type": "object",
|
|
2224
|
+
"properties": {
|
|
2225
|
+
"provider": {
|
|
2226
|
+
"type": "string",
|
|
2227
|
+
"const": "stripe"
|
|
2228
|
+
},
|
|
2229
|
+
"id": {
|
|
2230
|
+
"type": "string"
|
|
2231
|
+
}
|
|
2232
|
+
},
|
|
2233
|
+
"required": [
|
|
2234
|
+
"provider",
|
|
2235
|
+
"id"
|
|
2236
|
+
],
|
|
2237
|
+
"additionalProperties": false
|
|
2238
|
+
}
|
|
1414
2239
|
},
|
|
1415
|
-
"
|
|
1416
|
-
"
|
|
1417
|
-
"
|
|
1418
|
-
"
|
|
1419
|
-
"
|
|
2240
|
+
"overdueInvoices": {
|
|
2241
|
+
"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.",
|
|
2242
|
+
"maxItems": 20,
|
|
2243
|
+
"type": "array",
|
|
2244
|
+
"items": {
|
|
2245
|
+
"type": "object",
|
|
2246
|
+
"properties": {
|
|
2247
|
+
"id": {
|
|
2248
|
+
"type": "string",
|
|
2249
|
+
"description": "The invoice id (in_...); read it with outlit_get_source INVOICE."
|
|
2250
|
+
},
|
|
2251
|
+
"number": {
|
|
2252
|
+
"anyOf": [
|
|
2253
|
+
{
|
|
2254
|
+
"type": "string"
|
|
2255
|
+
},
|
|
2256
|
+
{
|
|
2257
|
+
"type": "null"
|
|
2258
|
+
}
|
|
2259
|
+
]
|
|
2260
|
+
},
|
|
2261
|
+
"amountRemaining": {
|
|
2262
|
+
"type": "number",
|
|
2263
|
+
"description": "Still owed, in the billing provider's minor units for currency."
|
|
2264
|
+
},
|
|
2265
|
+
"currency": {
|
|
2266
|
+
"anyOf": [
|
|
2267
|
+
{
|
|
2268
|
+
"type": "string"
|
|
2269
|
+
},
|
|
2270
|
+
{
|
|
2271
|
+
"type": "null"
|
|
2272
|
+
}
|
|
2273
|
+
]
|
|
2274
|
+
},
|
|
2275
|
+
"dueDate": {
|
|
2276
|
+
"type": "string",
|
|
2277
|
+
"format": "date-time",
|
|
2278
|
+
"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))$"
|
|
2279
|
+
},
|
|
2280
|
+
"daysOverdue": {
|
|
2281
|
+
"type": "integer",
|
|
2282
|
+
"minimum": 0,
|
|
2283
|
+
"maximum": 9007199254740991
|
|
2284
|
+
}
|
|
2285
|
+
},
|
|
2286
|
+
"required": [
|
|
2287
|
+
"id",
|
|
2288
|
+
"number",
|
|
2289
|
+
"amountRemaining",
|
|
2290
|
+
"currency",
|
|
2291
|
+
"dueDate",
|
|
2292
|
+
"daysOverdue"
|
|
2293
|
+
],
|
|
2294
|
+
"additionalProperties": false
|
|
2295
|
+
}
|
|
1420
2296
|
}
|
|
1421
2297
|
},
|
|
1422
2298
|
"required": [
|
|
@@ -1954,7 +2830,7 @@ var publicToolContracts = {
|
|
|
1954
2830
|
]
|
|
1955
2831
|
},
|
|
1956
2832
|
"crm": {
|
|
1957
|
-
"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. 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.",
|
|
2833
|
+
"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.",
|
|
1958
2834
|
"anyOf": [
|
|
1959
2835
|
{
|
|
1960
2836
|
"type": "array",
|
|
@@ -2033,6 +2909,75 @@ var publicToolContracts = {
|
|
|
2033
2909
|
],
|
|
2034
2910
|
"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."
|
|
2035
2911
|
},
|
|
2912
|
+
"contacts": {
|
|
2913
|
+
"type": "array",
|
|
2914
|
+
"items": {
|
|
2915
|
+
"type": "object",
|
|
2916
|
+
"properties": {
|
|
2917
|
+
"contactId": {
|
|
2918
|
+
"type": "string",
|
|
2919
|
+
"description": "The contact's id in that system."
|
|
2920
|
+
},
|
|
2921
|
+
"name": {
|
|
2922
|
+
"anyOf": [
|
|
2923
|
+
{
|
|
2924
|
+
"type": "string"
|
|
2925
|
+
},
|
|
2926
|
+
{
|
|
2927
|
+
"type": "null"
|
|
2928
|
+
}
|
|
2929
|
+
]
|
|
2930
|
+
},
|
|
2931
|
+
"email": {
|
|
2932
|
+
"anyOf": [
|
|
2933
|
+
{
|
|
2934
|
+
"type": "string"
|
|
2935
|
+
},
|
|
2936
|
+
{
|
|
2937
|
+
"type": "null"
|
|
2938
|
+
}
|
|
2939
|
+
]
|
|
2940
|
+
},
|
|
2941
|
+
"title": {
|
|
2942
|
+
"anyOf": [
|
|
2943
|
+
{
|
|
2944
|
+
"type": "string"
|
|
2945
|
+
},
|
|
2946
|
+
{
|
|
2947
|
+
"type": "null"
|
|
2948
|
+
}
|
|
2949
|
+
],
|
|
2950
|
+
"description": "The contact's job title there."
|
|
2951
|
+
},
|
|
2952
|
+
"userId": {
|
|
2953
|
+
"anyOf": [
|
|
2954
|
+
{
|
|
2955
|
+
"type": "string"
|
|
2956
|
+
},
|
|
2957
|
+
{
|
|
2958
|
+
"type": "null"
|
|
2959
|
+
}
|
|
2960
|
+
],
|
|
2961
|
+
"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."
|
|
2962
|
+
}
|
|
2963
|
+
},
|
|
2964
|
+
"required": [
|
|
2965
|
+
"contactId",
|
|
2966
|
+
"name",
|
|
2967
|
+
"email",
|
|
2968
|
+
"title",
|
|
2969
|
+
"userId"
|
|
2970
|
+
],
|
|
2971
|
+
"additionalProperties": false
|
|
2972
|
+
},
|
|
2973
|
+
"description": "The contacts that system associates with the account, whatever their email domain, most recently modified first, at most 25."
|
|
2974
|
+
},
|
|
2975
|
+
"omittedContactCount": {
|
|
2976
|
+
"description": "How many more associated contacts there are beyond those listed.",
|
|
2977
|
+
"type": "integer",
|
|
2978
|
+
"minimum": 1,
|
|
2979
|
+
"maximum": 9007199254740991
|
|
2980
|
+
},
|
|
2036
2981
|
"fields": {
|
|
2037
2982
|
"type": "array",
|
|
2038
2983
|
"items": {
|
|
@@ -2085,6 +3030,7 @@ var publicToolContracts = {
|
|
|
2085
3030
|
"name",
|
|
2086
3031
|
"owner",
|
|
2087
3032
|
"recordUpdatedAt",
|
|
3033
|
+
"contacts",
|
|
2088
3034
|
"fields"
|
|
2089
3035
|
],
|
|
2090
3036
|
"additionalProperties": false
|
|
@@ -2094,6 +3040,90 @@ var publicToolContracts = {
|
|
|
2094
3040
|
"type": "null"
|
|
2095
3041
|
}
|
|
2096
3042
|
]
|
|
3043
|
+
},
|
|
3044
|
+
"links": {
|
|
3045
|
+
"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.",
|
|
3046
|
+
"anyOf": [
|
|
3047
|
+
{
|
|
3048
|
+
"type": "object",
|
|
3049
|
+
"properties": {
|
|
3050
|
+
"records": {
|
|
3051
|
+
"type": "array",
|
|
3052
|
+
"items": {
|
|
3053
|
+
"type": "object",
|
|
3054
|
+
"properties": {
|
|
3055
|
+
"kind": {
|
|
3056
|
+
"type": "string",
|
|
3057
|
+
"enum": [
|
|
3058
|
+
"billing_customer",
|
|
3059
|
+
"crm_account",
|
|
3060
|
+
"support_account",
|
|
3061
|
+
"analytics_group",
|
|
3062
|
+
"analytics_account",
|
|
3063
|
+
"slack_channel",
|
|
3064
|
+
"slack_workspace",
|
|
3065
|
+
"external_organization"
|
|
3066
|
+
],
|
|
3067
|
+
"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."
|
|
3068
|
+
},
|
|
3069
|
+
"provider": {
|
|
3070
|
+
"anyOf": [
|
|
3071
|
+
{
|
|
3072
|
+
"type": "string"
|
|
3073
|
+
},
|
|
3074
|
+
{
|
|
3075
|
+
"type": "null"
|
|
3076
|
+
}
|
|
3077
|
+
],
|
|
3078
|
+
"description": "The system that holds the record, such as stripe, hubspot or posthog; null when unknown."
|
|
3079
|
+
},
|
|
3080
|
+
"id": {
|
|
3081
|
+
"type": "string",
|
|
3082
|
+
"description": "The record's id in that system, such as a Stripe customer id (cus_...)."
|
|
3083
|
+
},
|
|
3084
|
+
"connectionId": {
|
|
3085
|
+
"anyOf": [
|
|
3086
|
+
{
|
|
3087
|
+
"type": "string"
|
|
3088
|
+
},
|
|
3089
|
+
{
|
|
3090
|
+
"type": "null"
|
|
3091
|
+
}
|
|
3092
|
+
],
|
|
3093
|
+
"description": "The Outlit integration connection the record came through; null when none names it."
|
|
3094
|
+
},
|
|
3095
|
+
"linkedAt": {
|
|
3096
|
+
"type": "string",
|
|
3097
|
+
"description": "When Outlit linked the record to this customer, ISO 8601. Outlit's own time, not a fact about the customer."
|
|
3098
|
+
}
|
|
3099
|
+
},
|
|
3100
|
+
"required": [
|
|
3101
|
+
"kind",
|
|
3102
|
+
"provider",
|
|
3103
|
+
"id",
|
|
3104
|
+
"connectionId",
|
|
3105
|
+
"linkedAt"
|
|
3106
|
+
],
|
|
3107
|
+
"additionalProperties": false
|
|
3108
|
+
}
|
|
3109
|
+
},
|
|
3110
|
+
"omitted": {
|
|
3111
|
+
"type": "integer",
|
|
3112
|
+
"minimum": 0,
|
|
3113
|
+
"maximum": 9007199254740991,
|
|
3114
|
+
"description": "How many more linked records exist beyond the first 50, which are left out."
|
|
3115
|
+
}
|
|
3116
|
+
},
|
|
3117
|
+
"required": [
|
|
3118
|
+
"records",
|
|
3119
|
+
"omitted"
|
|
3120
|
+
],
|
|
3121
|
+
"additionalProperties": false
|
|
3122
|
+
},
|
|
3123
|
+
{
|
|
3124
|
+
"type": "null"
|
|
3125
|
+
}
|
|
3126
|
+
]
|
|
2097
3127
|
}
|
|
2098
3128
|
},
|
|
2099
3129
|
"required": [
|
|
@@ -2112,6 +3142,7 @@ var publicToolContracts = {
|
|
|
2112
3142
|
"annotations": {
|
|
2113
3143
|
"readOnlyHint": true,
|
|
2114
3144
|
"destructiveHint": false,
|
|
3145
|
+
"idempotentHint": true,
|
|
2115
3146
|
"openWorldHint": false
|
|
2116
3147
|
},
|
|
2117
3148
|
"inputSchema": {
|
|
@@ -2268,6 +3299,7 @@ var publicToolContracts = {
|
|
|
2268
3299
|
"annotations": {
|
|
2269
3300
|
"readOnlyHint": false,
|
|
2270
3301
|
"destructiveHint": false,
|
|
3302
|
+
"idempotentHint": false,
|
|
2271
3303
|
"openWorldHint": false
|
|
2272
3304
|
},
|
|
2273
3305
|
"inputSchema": {
|
|
@@ -2328,7 +3360,8 @@ var publicToolContracts = {
|
|
|
2328
3360
|
"description": "Share a customer with an active workspace member as a Viewer or Editor. The customer ID must be exact.",
|
|
2329
3361
|
"annotations": {
|
|
2330
3362
|
"readOnlyHint": false,
|
|
2331
|
-
"destructiveHint":
|
|
3363
|
+
"destructiveHint": true,
|
|
3364
|
+
"idempotentHint": true,
|
|
2332
3365
|
"openWorldHint": false
|
|
2333
3366
|
},
|
|
2334
3367
|
"inputSchema": {
|
|
@@ -2414,7 +3447,8 @@ var publicToolContracts = {
|
|
|
2414
3447
|
"description": "Change an existing customer collaborator between Viewer and Editor.",
|
|
2415
3448
|
"annotations": {
|
|
2416
3449
|
"readOnlyHint": false,
|
|
2417
|
-
"destructiveHint":
|
|
3450
|
+
"destructiveHint": true,
|
|
3451
|
+
"idempotentHint": true,
|
|
2418
3452
|
"openWorldHint": false
|
|
2419
3453
|
},
|
|
2420
3454
|
"inputSchema": {
|
|
@@ -2501,6 +3535,7 @@ var publicToolContracts = {
|
|
|
2501
3535
|
"annotations": {
|
|
2502
3536
|
"readOnlyHint": false,
|
|
2503
3537
|
"destructiveHint": true,
|
|
3538
|
+
"idempotentHint": true,
|
|
2504
3539
|
"openWorldHint": false
|
|
2505
3540
|
},
|
|
2506
3541
|
"inputSchema": {
|
|
@@ -2551,6 +3586,7 @@ var publicToolContracts = {
|
|
|
2551
3586
|
"annotations": {
|
|
2552
3587
|
"readOnlyHint": true,
|
|
2553
3588
|
"destructiveHint": false,
|
|
3589
|
+
"idempotentHint": true,
|
|
2554
3590
|
"openWorldHint": false
|
|
2555
3591
|
},
|
|
2556
3592
|
"inputSchema": {
|
|
@@ -2921,6 +3957,7 @@ var publicToolContracts = {
|
|
|
2921
3957
|
"annotations": {
|
|
2922
3958
|
"readOnlyHint": true,
|
|
2923
3959
|
"destructiveHint": false,
|
|
3960
|
+
"idempotentHint": true,
|
|
2924
3961
|
"openWorldHint": false
|
|
2925
3962
|
},
|
|
2926
3963
|
"inputSchema": {
|
|
@@ -3593,6 +4630,7 @@ var publicToolContracts = {
|
|
|
3593
4630
|
"annotations": {
|
|
3594
4631
|
"readOnlyHint": true,
|
|
3595
4632
|
"destructiveHint": false,
|
|
4633
|
+
"idempotentHint": true,
|
|
3596
4634
|
"openWorldHint": false
|
|
3597
4635
|
},
|
|
3598
4636
|
"inputSchema": {
|
|
@@ -4099,10 +5137,11 @@ var publicToolContracts = {
|
|
|
4099
5137
|
"commandVersion": 1,
|
|
4100
5138
|
"ownerDomain": "customer-context",
|
|
4101
5139
|
"title": "Get Source",
|
|
4102
|
-
"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).",
|
|
5140
|
+
"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.",
|
|
4103
5141
|
"annotations": {
|
|
4104
5142
|
"readOnlyHint": true,
|
|
4105
5143
|
"destructiveHint": false,
|
|
5144
|
+
"idempotentHint": true,
|
|
4106
5145
|
"openWorldHint": false
|
|
4107
5146
|
},
|
|
4108
5147
|
"inputSchema": {
|
|
@@ -4492,6 +5531,7 @@ var publicToolContracts = {
|
|
|
4492
5531
|
"annotations": {
|
|
4493
5532
|
"readOnlyHint": true,
|
|
4494
5533
|
"destructiveHint": false,
|
|
5534
|
+
"idempotentHint": true,
|
|
4495
5535
|
"openWorldHint": false
|
|
4496
5536
|
},
|
|
4497
5537
|
"inputSchema": {
|
|
@@ -4944,6 +5984,7 @@ var publicToolContracts = {
|
|
|
4944
5984
|
"annotations": {
|
|
4945
5985
|
"readOnlyHint": true,
|
|
4946
5986
|
"destructiveHint": false,
|
|
5987
|
+
"idempotentHint": true,
|
|
4947
5988
|
"openWorldHint": false
|
|
4948
5989
|
},
|
|
4949
5990
|
"inputSchema": {
|
|
@@ -5812,6 +6853,7 @@ var publicToolContracts = {
|
|
|
5812
6853
|
"annotations": {
|
|
5813
6854
|
"readOnlyHint": true,
|
|
5814
6855
|
"destructiveHint": false,
|
|
6856
|
+
"idempotentHint": true,
|
|
5815
6857
|
"openWorldHint": false
|
|
5816
6858
|
},
|
|
5817
6859
|
"inputSchema": {
|
|
@@ -5896,6 +6938,7 @@ var publicToolContracts = {
|
|
|
5896
6938
|
"annotations": {
|
|
5897
6939
|
"readOnlyHint": true,
|
|
5898
6940
|
"destructiveHint": false,
|
|
6941
|
+
"idempotentHint": true,
|
|
5899
6942
|
"openWorldHint": false
|
|
5900
6943
|
},
|
|
5901
6944
|
"inputSchema": {
|
|
@@ -6105,6 +7148,7 @@ var publicToolContracts = {
|
|
|
6105
7148
|
"annotations": {
|
|
6106
7149
|
"readOnlyHint": true,
|
|
6107
7150
|
"destructiveHint": false,
|
|
7151
|
+
"idempotentHint": true,
|
|
6108
7152
|
"openWorldHint": false
|
|
6109
7153
|
},
|
|
6110
7154
|
"inputSchema": {
|
|
@@ -6489,6 +7533,7 @@ var publicToolContracts = {
|
|
|
6489
7533
|
"annotations": {
|
|
6490
7534
|
"readOnlyHint": true,
|
|
6491
7535
|
"destructiveHint": false,
|
|
7536
|
+
"idempotentHint": true,
|
|
6492
7537
|
"openWorldHint": false
|
|
6493
7538
|
},
|
|
6494
7539
|
"inputSchema": {
|
|
@@ -6879,6 +7924,7 @@ var publicToolContracts = {
|
|
|
6879
7924
|
"annotations": {
|
|
6880
7925
|
"readOnlyHint": false,
|
|
6881
7926
|
"destructiveHint": false,
|
|
7927
|
+
"idempotentHint": false,
|
|
6882
7928
|
"openWorldHint": true
|
|
6883
7929
|
},
|
|
6884
7930
|
"inputSchema": {
|
|
@@ -7288,6 +8334,7 @@ var publicToolContracts = {
|
|
|
7288
8334
|
"annotations": {
|
|
7289
8335
|
"readOnlyHint": false,
|
|
7290
8336
|
"destructiveHint": false,
|
|
8337
|
+
"idempotentHint": true,
|
|
7291
8338
|
"openWorldHint": true
|
|
7292
8339
|
},
|
|
7293
8340
|
"inputSchema": {
|
|
@@ -7692,6 +8739,7 @@ var publicToolContracts = {
|
|
|
7692
8739
|
"annotations": {
|
|
7693
8740
|
"readOnlyHint": false,
|
|
7694
8741
|
"destructiveHint": false,
|
|
8742
|
+
"idempotentHint": true,
|
|
7695
8743
|
"openWorldHint": true
|
|
7696
8744
|
},
|
|
7697
8745
|
"inputSchema": {
|
|
@@ -8082,6 +9130,7 @@ var publicToolContracts = {
|
|
|
8082
9130
|
"annotations": {
|
|
8083
9131
|
"readOnlyHint": false,
|
|
8084
9132
|
"destructiveHint": false,
|
|
9133
|
+
"idempotentHint": true,
|
|
8085
9134
|
"openWorldHint": false
|
|
8086
9135
|
},
|
|
8087
9136
|
"inputSchema": {
|
|
@@ -8472,6 +9521,7 @@ var publicToolContracts = {
|
|
|
8472
9521
|
"annotations": {
|
|
8473
9522
|
"readOnlyHint": false,
|
|
8474
9523
|
"destructiveHint": true,
|
|
9524
|
+
"idempotentHint": true,
|
|
8475
9525
|
"openWorldHint": false
|
|
8476
9526
|
},
|
|
8477
9527
|
"inputSchema": {
|
|
@@ -8530,6 +9580,7 @@ var publicToolContracts = {
|
|
|
8530
9580
|
"annotations": {
|
|
8531
9581
|
"readOnlyHint": false,
|
|
8532
9582
|
"destructiveHint": false,
|
|
9583
|
+
"idempotentHint": false,
|
|
8533
9584
|
"openWorldHint": false
|
|
8534
9585
|
},
|
|
8535
9586
|
"inputSchema": {
|
|
@@ -8589,6 +9640,7 @@ var publicToolContracts = {
|
|
|
8589
9640
|
"annotations": {
|
|
8590
9641
|
"readOnlyHint": true,
|
|
8591
9642
|
"destructiveHint": false,
|
|
9643
|
+
"idempotentHint": true,
|
|
8592
9644
|
"openWorldHint": false
|
|
8593
9645
|
},
|
|
8594
9646
|
"inputSchema": {
|
|
@@ -8686,6 +9738,7 @@ var publicToolContracts = {
|
|
|
8686
9738
|
"annotations": {
|
|
8687
9739
|
"readOnlyHint": false,
|
|
8688
9740
|
"destructiveHint": false,
|
|
9741
|
+
"idempotentHint": false,
|
|
8689
9742
|
"openWorldHint": true
|
|
8690
9743
|
},
|
|
8691
9744
|
"inputSchema": {
|
|
@@ -8775,6 +9828,7 @@ var publicToolContracts = {
|
|
|
8775
9828
|
"annotations": {
|
|
8776
9829
|
"readOnlyHint": true,
|
|
8777
9830
|
"destructiveHint": false,
|
|
9831
|
+
"idempotentHint": true,
|
|
8778
9832
|
"openWorldHint": false
|
|
8779
9833
|
},
|
|
8780
9834
|
"inputSchema": {
|
|
@@ -8835,6 +9889,7 @@ var publicToolContracts = {
|
|
|
8835
9889
|
"annotations": {
|
|
8836
9890
|
"readOnlyHint": true,
|
|
8837
9891
|
"destructiveHint": false,
|
|
9892
|
+
"idempotentHint": true,
|
|
8838
9893
|
"openWorldHint": false
|
|
8839
9894
|
},
|
|
8840
9895
|
"inputSchema": {
|
|
@@ -8937,6 +9992,7 @@ var publicToolContracts = {
|
|
|
8937
9992
|
"annotations": {
|
|
8938
9993
|
"readOnlyHint": false,
|
|
8939
9994
|
"destructiveHint": false,
|
|
9995
|
+
"idempotentHint": false,
|
|
8940
9996
|
"openWorldHint": true
|
|
8941
9997
|
},
|
|
8942
9998
|
"inputSchema": {
|
|
@@ -9986,6 +11042,7 @@ var publicToolContracts = {
|
|
|
9986
11042
|
"annotations": {
|
|
9987
11043
|
"readOnlyHint": true,
|
|
9988
11044
|
"destructiveHint": false,
|
|
11045
|
+
"idempotentHint": true,
|
|
9989
11046
|
"openWorldHint": false
|
|
9990
11047
|
},
|
|
9991
11048
|
"inputSchema": {
|
|
@@ -10036,6 +11093,7 @@ var publicToolContracts = {
|
|
|
10036
11093
|
"annotations": {
|
|
10037
11094
|
"readOnlyHint": true,
|
|
10038
11095
|
"destructiveHint": false,
|
|
11096
|
+
"idempotentHint": true,
|
|
10039
11097
|
"openWorldHint": false
|
|
10040
11098
|
},
|
|
10041
11099
|
"inputSchema": {
|
|
@@ -10233,6 +11291,7 @@ var publicToolContracts = {
|
|
|
10233
11291
|
"annotations": {
|
|
10234
11292
|
"readOnlyHint": false,
|
|
10235
11293
|
"destructiveHint": false,
|
|
11294
|
+
"idempotentHint": true,
|
|
10236
11295
|
"openWorldHint": false
|
|
10237
11296
|
},
|
|
10238
11297
|
"inputSchema": {
|
|
@@ -10303,6 +11362,7 @@ var publicToolContracts = {
|
|
|
10303
11362
|
"annotations": {
|
|
10304
11363
|
"readOnlyHint": true,
|
|
10305
11364
|
"destructiveHint": false,
|
|
11365
|
+
"idempotentHint": true,
|
|
10306
11366
|
"openWorldHint": false
|
|
10307
11367
|
},
|
|
10308
11368
|
"inputSchema": {
|
|
@@ -10367,6 +11427,7 @@ var publicToolContracts = {
|
|
|
10367
11427
|
"annotations": {
|
|
10368
11428
|
"readOnlyHint": false,
|
|
10369
11429
|
"destructiveHint": false,
|
|
11430
|
+
"idempotentHint": true,
|
|
10370
11431
|
"openWorldHint": false
|
|
10371
11432
|
},
|
|
10372
11433
|
"inputSchema": {
|
|
@@ -10457,6 +11518,7 @@ var publicToolContracts = {
|
|
|
10457
11518
|
"annotations": {
|
|
10458
11519
|
"readOnlyHint": true,
|
|
10459
11520
|
"destructiveHint": false,
|
|
11521
|
+
"idempotentHint": true,
|
|
10460
11522
|
"openWorldHint": false
|
|
10461
11523
|
},
|
|
10462
11524
|
"inputSchema": {
|
|
@@ -11012,6 +12074,7 @@ var publicToolContracts = {
|
|
|
11012
12074
|
"annotations": {
|
|
11013
12075
|
"readOnlyHint": false,
|
|
11014
12076
|
"destructiveHint": false,
|
|
12077
|
+
"idempotentHint": true,
|
|
11015
12078
|
"openWorldHint": false
|
|
11016
12079
|
},
|
|
11017
12080
|
"inputSchema": {
|
|
@@ -11333,6 +12396,7 @@ var publicToolContracts = {
|
|
|
11333
12396
|
"annotations": {
|
|
11334
12397
|
"readOnlyHint": false,
|
|
11335
12398
|
"destructiveHint": true,
|
|
12399
|
+
"idempotentHint": true,
|
|
11336
12400
|
"openWorldHint": false
|
|
11337
12401
|
},
|
|
11338
12402
|
"inputSchema": {
|
|
@@ -11398,6 +12462,7 @@ var publicToolContracts = {
|
|
|
11398
12462
|
"annotations": {
|
|
11399
12463
|
"readOnlyHint": true,
|
|
11400
12464
|
"destructiveHint": false,
|
|
12465
|
+
"idempotentHint": true,
|
|
11401
12466
|
"openWorldHint": false
|
|
11402
12467
|
},
|
|
11403
12468
|
"inputSchema": {
|
|
@@ -12591,6 +13656,7 @@ var publicToolContracts = {
|
|
|
12591
13656
|
"annotations": {
|
|
12592
13657
|
"readOnlyHint": true,
|
|
12593
13658
|
"destructiveHint": false,
|
|
13659
|
+
"idempotentHint": true,
|
|
12594
13660
|
"openWorldHint": false
|
|
12595
13661
|
},
|
|
12596
13662
|
"inputSchema": {
|
|
@@ -13030,6 +14096,7 @@ var publicToolContracts = {
|
|
|
13030
14096
|
"annotations": {
|
|
13031
14097
|
"readOnlyHint": true,
|
|
13032
14098
|
"destructiveHint": false,
|
|
14099
|
+
"idempotentHint": true,
|
|
13033
14100
|
"openWorldHint": false
|
|
13034
14101
|
},
|
|
13035
14102
|
"inputSchema": {
|
|
@@ -13357,6 +14424,7 @@ var publicToolContracts = {
|
|
|
13357
14424
|
"annotations": {
|
|
13358
14425
|
"readOnlyHint": true,
|
|
13359
14426
|
"destructiveHint": false,
|
|
14427
|
+
"idempotentHint": true,
|
|
13360
14428
|
"openWorldHint": false
|
|
13361
14429
|
},
|
|
13362
14430
|
"inputSchema": {
|
|
@@ -13795,6 +14863,7 @@ var publicToolContracts = {
|
|
|
13795
14863
|
"annotations": {
|
|
13796
14864
|
"readOnlyHint": true,
|
|
13797
14865
|
"destructiveHint": false,
|
|
14866
|
+
"idempotentHint": true,
|
|
13798
14867
|
"openWorldHint": false
|
|
13799
14868
|
},
|
|
13800
14869
|
"inputSchema": {
|
|
@@ -14197,6 +15266,7 @@ var publicToolContracts = {
|
|
|
14197
15266
|
"annotations": {
|
|
14198
15267
|
"readOnlyHint": true,
|
|
14199
15268
|
"destructiveHint": false,
|
|
15269
|
+
"idempotentHint": true,
|
|
14200
15270
|
"openWorldHint": false
|
|
14201
15271
|
},
|
|
14202
15272
|
"inputSchema": {
|
|
@@ -14745,6 +15815,7 @@ var publicToolContracts = {
|
|
|
14745
15815
|
"annotations": {
|
|
14746
15816
|
"readOnlyHint": false,
|
|
14747
15817
|
"destructiveHint": false,
|
|
15818
|
+
"idempotentHint": false,
|
|
14748
15819
|
"openWorldHint": false
|
|
14749
15820
|
},
|
|
14750
15821
|
"inputSchema": {
|
|
@@ -14872,6 +15943,7 @@ var publicToolContracts = {
|
|
|
14872
15943
|
"annotations": {
|
|
14873
15944
|
"readOnlyHint": false,
|
|
14874
15945
|
"destructiveHint": false,
|
|
15946
|
+
"idempotentHint": false,
|
|
14875
15947
|
"openWorldHint": false
|
|
14876
15948
|
},
|
|
14877
15949
|
"inputSchema": {
|
|
@@ -14939,6 +16011,7 @@ var publicToolContracts = {
|
|
|
14939
16011
|
"annotations": {
|
|
14940
16012
|
"readOnlyHint": true,
|
|
14941
16013
|
"destructiveHint": false,
|
|
16014
|
+
"idempotentHint": true,
|
|
14942
16015
|
"openWorldHint": false
|
|
14943
16016
|
},
|
|
14944
16017
|
"inputSchema": {
|
|
@@ -15148,6 +16221,7 @@ var publicToolContracts = {
|
|
|
15148
16221
|
"annotations": {
|
|
15149
16222
|
"readOnlyHint": true,
|
|
15150
16223
|
"destructiveHint": false,
|
|
16224
|
+
"idempotentHint": true,
|
|
15151
16225
|
"openWorldHint": false
|
|
15152
16226
|
},
|
|
15153
16227
|
"inputSchema": {
|
|
@@ -16277,6 +17351,7 @@ var publicToolContracts = {
|
|
|
16277
17351
|
"annotations": {
|
|
16278
17352
|
"readOnlyHint": false,
|
|
16279
17353
|
"destructiveHint": false,
|
|
17354
|
+
"idempotentHint": true,
|
|
16280
17355
|
"openWorldHint": false
|
|
16281
17356
|
},
|
|
16282
17357
|
"inputSchema": {
|
|
@@ -16329,6 +17404,7 @@ var publicToolContracts = {
|
|
|
16329
17404
|
"annotations": {
|
|
16330
17405
|
"readOnlyHint": false,
|
|
16331
17406
|
"destructiveHint": true,
|
|
17407
|
+
"idempotentHint": true,
|
|
16332
17408
|
"openWorldHint": false
|
|
16333
17409
|
},
|
|
16334
17410
|
"inputSchema": {
|
|
@@ -16558,6 +17634,7 @@ var publicToolContracts = {
|
|
|
16558
17634
|
"annotations": {
|
|
16559
17635
|
"readOnlyHint": true,
|
|
16560
17636
|
"destructiveHint": false,
|
|
17637
|
+
"idempotentHint": true,
|
|
16561
17638
|
"openWorldHint": false
|
|
16562
17639
|
},
|
|
16563
17640
|
"inputSchema": {
|
|
@@ -16669,6 +17746,7 @@ var publicOpenApiTransports = [
|
|
|
16669
17746
|
var consumerToolPolicies = {
|
|
16670
17747
|
"default": [
|
|
16671
17748
|
"outlit_list_customers",
|
|
17749
|
+
"outlit_list_crm_fields",
|
|
16672
17750
|
"outlit_list_users",
|
|
16673
17751
|
"outlit_get_customer",
|
|
16674
17752
|
"outlit_get_timeline",
|
|
@@ -16680,6 +17758,7 @@ var consumerToolPolicies = {
|
|
|
16680
17758
|
],
|
|
16681
17759
|
"analytical": [
|
|
16682
17760
|
"outlit_list_customers",
|
|
17761
|
+
"outlit_list_crm_fields",
|
|
16683
17762
|
"outlit_list_users",
|
|
16684
17763
|
"outlit_get_customer",
|
|
16685
17764
|
"outlit_get_timeline",
|
|
@@ -16693,6 +17772,7 @@ var consumerToolPolicies = {
|
|
|
16693
17772
|
],
|
|
16694
17773
|
"pi": [
|
|
16695
17774
|
"outlit_list_customers",
|
|
17775
|
+
"outlit_list_crm_fields",
|
|
16696
17776
|
"outlit_list_users",
|
|
16697
17777
|
"outlit_list_workspace_users",
|
|
16698
17778
|
"outlit_get_customer",
|
|
@@ -16746,6 +17826,7 @@ var consumerToolPolicies = {
|
|
|
16746
17826
|
],
|
|
16747
17827
|
"cli": [
|
|
16748
17828
|
"outlit_list_customers",
|
|
17829
|
+
"outlit_list_crm_fields",
|
|
16749
17830
|
"outlit_list_users",
|
|
16750
17831
|
"outlit_list_workspace_users",
|
|
16751
17832
|
"outlit_get_customer",
|
|
@@ -17383,6 +18464,14 @@ var toolGatewayErrorSchema = {
|
|
|
17383
18464
|
"path": {
|
|
17384
18465
|
"type": "string",
|
|
17385
18466
|
"maxLength": 200
|
|
18467
|
+
},
|
|
18468
|
+
"validValues": {
|
|
18469
|
+
"maxItems": 30,
|
|
18470
|
+
"type": "array",
|
|
18471
|
+
"items": {
|
|
18472
|
+
"type": "string",
|
|
18473
|
+
"maxLength": 100
|
|
18474
|
+
}
|
|
17386
18475
|
}
|
|
17387
18476
|
},
|
|
17388
18477
|
"required": [
|
|
@@ -17391,6 +18480,37 @@ var toolGatewayErrorSchema = {
|
|
|
17391
18480
|
],
|
|
17392
18481
|
"additionalProperties": false
|
|
17393
18482
|
}
|
|
18483
|
+
},
|
|
18484
|
+
"next": {
|
|
18485
|
+
"type": "object",
|
|
18486
|
+
"properties": {
|
|
18487
|
+
"instruction": {
|
|
18488
|
+
"type": "string",
|
|
18489
|
+
"minLength": 1,
|
|
18490
|
+
"maxLength": 300
|
|
18491
|
+
},
|
|
18492
|
+
"tool": {
|
|
18493
|
+
"type": "string",
|
|
18494
|
+
"maxLength": 100,
|
|
18495
|
+
"pattern": "^outlit_[a-z0-9_]+$"
|
|
18496
|
+
},
|
|
18497
|
+
"input": {
|
|
18498
|
+
"type": "object",
|
|
18499
|
+
"propertyNames": {
|
|
18500
|
+
"type": "string"
|
|
18501
|
+
},
|
|
18502
|
+
"additionalProperties": {}
|
|
18503
|
+
}
|
|
18504
|
+
},
|
|
18505
|
+
"required": [
|
|
18506
|
+
"instruction"
|
|
18507
|
+
],
|
|
18508
|
+
"additionalProperties": false
|
|
18509
|
+
},
|
|
18510
|
+
"missingPermission": {
|
|
18511
|
+
"type": "string",
|
|
18512
|
+
"minLength": 1,
|
|
18513
|
+
"maxLength": 100
|
|
17394
18514
|
}
|
|
17395
18515
|
},
|
|
17396
18516
|
"required": [
|
|
@@ -18295,7 +19415,8 @@ var customerIncludeSections = [
|
|
|
18295
19415
|
"behaviorMetrics",
|
|
18296
19416
|
"enrichment",
|
|
18297
19417
|
"renewal",
|
|
18298
|
-
"crm"
|
|
19418
|
+
"crm",
|
|
19419
|
+
"links"
|
|
18299
19420
|
];
|
|
18300
19421
|
var customerSourceTypes = [
|
|
18301
19422
|
"EMAIL",
|
|
@@ -18374,7 +19495,7 @@ var schemaTables = [
|
|
|
18374
19495
|
"users",
|
|
18375
19496
|
"revenue"
|
|
18376
19497
|
];
|
|
18377
|
-
var sdkConsumerContractHash = "
|
|
19498
|
+
var sdkConsumerContractHash = "696da531a576098a4d673bf7c25188769d15b1cb096fd60a8431aeb515648510";
|
|
18378
19499
|
|
|
18379
19500
|
// src/contracts.ts
|
|
18380
19501
|
var publicToolNameSet = new Set(publicToolNames);
|
|
@@ -18501,14 +19622,23 @@ function createOutlitClient(options) {
|
|
|
18501
19622
|
}
|
|
18502
19623
|
function parseGatewayError(text) {
|
|
18503
19624
|
try {
|
|
18504
|
-
const value = JSON.parse(text);
|
|
18505
|
-
if (matchesGeneratedJsonSchema(value, toolGatewayErrorSchema)
|
|
19625
|
+
const value = withoutUnknownEnvelopeFields(JSON.parse(text));
|
|
19626
|
+
if (matchesGeneratedJsonSchema(value, toolGatewayErrorSchema) && // The generated schema can't carry Core's per-code rule for this field.
|
|
19627
|
+
(value.missingPermission === void 0 || value.code === "TOOL_CALL_FORBIDDEN")) {
|
|
18506
19628
|
return value;
|
|
18507
19629
|
}
|
|
18508
19630
|
} catch {
|
|
18509
19631
|
}
|
|
18510
19632
|
return void 0;
|
|
18511
19633
|
}
|
|
19634
|
+
function withoutUnknownEnvelopeFields(value) {
|
|
19635
|
+
if (typeof value !== "object" || value === null || Array.isArray(value)) return value;
|
|
19636
|
+
return Object.fromEntries(
|
|
19637
|
+
Object.entries(value).filter(
|
|
19638
|
+
([property]) => Object.hasOwn(toolGatewayErrorSchema.properties, property)
|
|
19639
|
+
)
|
|
19640
|
+
);
|
|
19641
|
+
}
|
|
18512
19642
|
function matchesGeneratedJsonSchema(value, schema) {
|
|
18513
19643
|
if (Object.hasOwn(schema, "const") && !Object.is(schema.const, value)) {
|
|
18514
19644
|
return false;
|