@outlit/tools 2.3.0 → 2.4.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.js CHANGED
@@ -60,7 +60,7 @@ var publicToolContracts = {
60
60
  "commandVersion": 1,
61
61
  "ownerDomain": "customers",
62
62
  "title": "List Customers",
63
- "description": "Browse and filter customers. Use this to find customers by billing status, activity recency, revenue, or name. Returns a paginated list with summary info (MRR, last activity, status). currentMrr is in the billing provider's units for the customer's currency, which the result doesn't name. For USD, EUR, GBP and CAD this is cents: divide by 100 (e.g. 1234500 is $12,345 MRR, USD). Other currencies follow the provider's amount rules. ARR is 12 \xD7 currentMrr in the same units.",
63
+ "description": "Browse and filter customers. Use this to find customers by billing status, activity recency, revenue, or name. 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
64
  "annotations": {
65
65
  "readOnlyHint": true,
66
66
  "destructiveHint": false,
@@ -107,13 +107,23 @@ var publicToolContracts = {
107
107
  "90d"
108
108
  ]
109
109
  },
110
+ "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.",
112
+ "type": "number",
113
+ "minimum": 0
114
+ },
115
+ "arrBelow": {
116
+ "description": "Maximum ARR, in arr.amount's units per year. Customers whose ARR is unknown never match.",
117
+ "type": "number",
118
+ "minimum": 0
119
+ },
110
120
  "mrrAbove": {
111
- "description": "Minimum MRR, in currentMrr's units (10000 is $100 for a customer billed in USD)",
121
+ "description": "Deprecated: use arrAbove.",
112
122
  "type": "number",
113
123
  "minimum": 0
114
124
  },
115
125
  "mrrBelow": {
116
- "description": "Maximum MRR, in currentMrr's units",
126
+ "description": "Deprecated: use arrBelow.",
117
127
  "type": "number",
118
128
  "minimum": 0
119
129
  },
@@ -170,13 +180,14 @@ var publicToolContracts = {
170
180
  "type": "string"
171
181
  },
172
182
  "orderBy": {
173
- "description": "Field to order results by",
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.",
174
184
  "default": "last_activity_at",
175
185
  "type": "string",
176
186
  "enum": [
177
187
  "last_activity_at",
178
188
  "first_seen_at",
179
189
  "name",
190
+ "arr_cents",
180
191
  "mrr_cents"
181
192
  ]
182
193
  },
@@ -268,24 +279,38 @@ var publicToolContracts = {
268
279
  "minimum": 0,
269
280
  "maximum": 9007199254740991
270
281
  },
271
- "currentMrr": {
282
+ "arr": {
272
283
  "anyOf": [
273
284
  {
274
- "type": "number"
285
+ "type": "object",
286
+ "properties": {
287
+ "amount": {
288
+ "type": "integer",
289
+ "minimum": 0,
290
+ "maximum": 9007199254740991,
291
+ "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."
292
+ },
293
+ "currency": {
294
+ "type": "string",
295
+ "description": "ISO currency code of amount."
296
+ },
297
+ "estimated": {
298
+ "type": "boolean",
299
+ "description": "The amount includes a usage or per-seat estimate, shown as ~ in the app."
300
+ }
301
+ },
302
+ "required": [
303
+ "amount",
304
+ "currency",
305
+ "estimated"
306
+ ],
307
+ "additionalProperties": false
275
308
  },
276
309
  {
277
310
  "type": "null"
278
311
  }
279
312
  ],
280
- "description": "Monthly recurring revenue as an integer amount in the billing provider's units for the customer's currency, which this result doesn't name. 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. ARR is 12 \xD7 this value in the same units. Null unless mrrCalculationStatus is calculated."
281
- },
282
- "mrrCalculationStatus": {
283
- "type": "string",
284
- "enum": [
285
- "calculated",
286
- "mixed_currency",
287
- "unavailable"
288
- ]
313
+ "description": "Null when the app shows no ARR for this customer."
289
314
  },
290
315
  "owner": {
291
316
  "anyOf": [
@@ -336,8 +361,7 @@ var publicToolContracts = {
336
361
  "firstSeenAt",
337
362
  "lastActivityAt",
338
363
  "contactCount",
339
- "currentMrr",
340
- "mrrCalculationStatus",
364
+ "arr",
341
365
  "owner",
342
366
  "daysSinceActivity"
343
367
  ],
@@ -935,7 +959,7 @@ var publicToolContracts = {
935
959
  "commandVersion": 1,
936
960
  "ownerDomain": "customers",
937
961
  "title": "Get Customer",
938
- "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, or company enrichment. Revenue amounts (currentMrr, lifetimeRevenue) are in the billing provider's units for the customer's currency, which the result doesn't name. 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. ARR is 12 \xD7 currentMrr in the same units.",
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, which can be hundreds so request it only when needed. 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). lifetimeRevenue does not name its currency.",
939
963
  "annotations": {
940
964
  "readOnlyHint": true,
941
965
  "destructiveHint": false,
@@ -961,7 +985,9 @@ var publicToolContracts = {
961
985
  "revenue",
962
986
  "recentTimeline",
963
987
  "behaviorMetrics",
964
- "enrichment"
988
+ "enrichment",
989
+ "renewal",
990
+ "crm"
965
991
  ]
966
992
  }
967
993
  },
@@ -975,6 +1001,15 @@ var publicToolContracts = {
975
1001
  "30d",
976
1002
  "90d"
977
1003
  ]
1004
+ },
1005
+ "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.",
1007
+ "maxItems": 100,
1008
+ "type": "array",
1009
+ "items": {
1010
+ "type": "string",
1011
+ "maxLength": 191
1012
+ }
978
1013
  }
979
1014
  },
980
1015
  "required": [
@@ -1269,38 +1304,123 @@ var publicToolContracts = {
1269
1304
  "revenue": {
1270
1305
  "type": "object",
1271
1306
  "properties": {
1272
- "currentMrr": {
1307
+ "arr": {
1273
1308
  "anyOf": [
1274
1309
  {
1275
- "type": "number"
1310
+ "type": "object",
1311
+ "properties": {
1312
+ "amount": {
1313
+ "type": "integer",
1314
+ "minimum": 0,
1315
+ "maximum": 9007199254740991,
1316
+ "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."
1317
+ },
1318
+ "currency": {
1319
+ "type": "string",
1320
+ "description": "ISO currency code of amount and parts."
1321
+ },
1322
+ "estimated": {
1323
+ "type": "boolean",
1324
+ "description": "The amount includes a usage or per-seat estimate, shown as ~ in the app."
1325
+ },
1326
+ "lifecycle": {
1327
+ "anyOf": [
1328
+ {
1329
+ "type": "string",
1330
+ "enum": [
1331
+ "active",
1332
+ "past_due",
1333
+ "paused",
1334
+ "churned",
1335
+ "trialing"
1336
+ ]
1337
+ },
1338
+ {
1339
+ "type": "null"
1340
+ }
1341
+ ],
1342
+ "description": "The customer's revenue state; null when unknown."
1343
+ },
1344
+ "parts": {
1345
+ "type": "object",
1346
+ "properties": {
1347
+ "subscriptions": {
1348
+ "anyOf": [
1349
+ {
1350
+ "type": "integer",
1351
+ "minimum": -9007199254740991,
1352
+ "maximum": 9007199254740991
1353
+ },
1354
+ {
1355
+ "type": "null"
1356
+ }
1357
+ ],
1358
+ "description": "Active subscriptions at list price, annualized."
1359
+ },
1360
+ "usage": {
1361
+ "anyOf": [
1362
+ {
1363
+ "type": "integer",
1364
+ "minimum": -9007199254740991,
1365
+ "maximum": 9007199254740991
1366
+ },
1367
+ {
1368
+ "type": "null"
1369
+ }
1370
+ ],
1371
+ "description": "Annualized usage estimate."
1372
+ },
1373
+ "invoicedLast12Months": {
1374
+ "anyOf": [
1375
+ {
1376
+ "type": "integer",
1377
+ "minimum": -9007199254740991,
1378
+ "maximum": 9007199254740991
1379
+ },
1380
+ {
1381
+ "type": "null"
1382
+ }
1383
+ ],
1384
+ "description": "Invoiced in the last 12 months."
1385
+ }
1386
+ },
1387
+ "required": [
1388
+ "subscriptions",
1389
+ "usage",
1390
+ "invoicedLast12Months"
1391
+ ],
1392
+ "additionalProperties": false,
1393
+ "description": "What amount was counted from, in the same units: the larger of subscriptions plus usage, and invoiced in the last 12 months. A part is null when unknown or not applicable."
1394
+ }
1395
+ },
1396
+ "required": [
1397
+ "amount",
1398
+ "currency",
1399
+ "estimated",
1400
+ "lifecycle",
1401
+ "parts"
1402
+ ],
1403
+ "additionalProperties": false
1276
1404
  },
1277
1405
  {
1278
1406
  "type": "null"
1279
1407
  }
1280
1408
  ],
1281
- "description": "Monthly recurring revenue as an integer amount in the billing provider's units for the customer's currency, which this result doesn't name. 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. ARR is 12 \xD7 this value in the same units. Null unless mrrCalculationStatus is calculated."
1282
- },
1283
- "mrrCalculationStatus": {
1284
- "type": "string",
1285
- "enum": [
1286
- "calculated",
1287
- "mixed_currency",
1288
- "unavailable"
1289
- ]
1409
+ "description": "Null when the app shows no ARR for this customer."
1290
1410
  },
1291
1411
  "lifetimeRevenue": {
1292
1412
  "type": "number",
1293
- "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."
1413
+ "description": "Lifetime revenue in the billing provider's units for the currency it was billed in, 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."
1294
1414
  },
1295
1415
  "activeSubscriptions": {
1296
1416
  "type": "integer",
1297
1417
  "minimum": 0,
1298
- "maximum": 9007199254740991
1418
+ "maximum": 9007199254740991,
1419
+ "description": "Subscriptions that bill now: active, trialing or past due. billingStatus says whether payments are behind."
1299
1420
  }
1300
1421
  },
1301
1422
  "required": [
1302
- "currentMrr",
1303
- "mrrCalculationStatus",
1423
+ "arr",
1304
1424
  "lifetimeRevenue",
1305
1425
  "activeSubscriptions"
1306
1426
  ],
@@ -1801,6 +1921,179 @@ var publicToolContracts = {
1801
1921
  "error"
1802
1922
  ],
1803
1923
  "additionalProperties": false
1924
+ },
1925
+ "renewal": {
1926
+ "description": "The renewal date the customer page shows, with its source; null when the customer has none",
1927
+ "anyOf": [
1928
+ {
1929
+ "type": "object",
1930
+ "properties": {
1931
+ "date": {
1932
+ "type": "string",
1933
+ "description": "Renewal date, YYYY-MM-DD"
1934
+ },
1935
+ "source": {
1936
+ "type": "string",
1937
+ "enum": [
1938
+ "outlit",
1939
+ "crm",
1940
+ "billing"
1941
+ ],
1942
+ "description": "Where the date comes from: set in Outlit, a CRM opportunity, or the billing period of a yearly subscription"
1943
+ }
1944
+ },
1945
+ "required": [
1946
+ "date",
1947
+ "source"
1948
+ ],
1949
+ "additionalProperties": false
1950
+ },
1951
+ {
1952
+ "type": "null"
1953
+ }
1954
+ ]
1955
+ },
1956
+ "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.",
1958
+ "anyOf": [
1959
+ {
1960
+ "type": "array",
1961
+ "items": {
1962
+ "type": "object",
1963
+ "properties": {
1964
+ "provider": {
1965
+ "type": "string",
1966
+ "description": "The system that holds the account: hubspot, salesforce, attio or pylon."
1967
+ },
1968
+ "connectionId": {
1969
+ "type": "string",
1970
+ "description": "The Outlit integration connection the account syncs through."
1971
+ },
1972
+ "accountId": {
1973
+ "type": "string",
1974
+ "description": "The account's id in that system."
1975
+ },
1976
+ "name": {
1977
+ "anyOf": [
1978
+ {
1979
+ "type": "string"
1980
+ },
1981
+ {
1982
+ "type": "null"
1983
+ }
1984
+ ],
1985
+ "description": "The account's name in that system."
1986
+ },
1987
+ "owner": {
1988
+ "anyOf": [
1989
+ {
1990
+ "type": "object",
1991
+ "properties": {
1992
+ "name": {
1993
+ "anyOf": [
1994
+ {
1995
+ "type": "string"
1996
+ },
1997
+ {
1998
+ "type": "null"
1999
+ }
2000
+ ]
2001
+ },
2002
+ "email": {
2003
+ "anyOf": [
2004
+ {
2005
+ "type": "string"
2006
+ },
2007
+ {
2008
+ "type": "null"
2009
+ }
2010
+ ]
2011
+ }
2012
+ },
2013
+ "required": [
2014
+ "name",
2015
+ "email"
2016
+ ],
2017
+ "additionalProperties": false
2018
+ },
2019
+ {
2020
+ "type": "null"
2021
+ }
2022
+ ],
2023
+ "description": "The account owner as that system records it; null when it records none. Not Outlit's customer owner."
2024
+ },
2025
+ "recordUpdatedAt": {
2026
+ "anyOf": [
2027
+ {
2028
+ "type": "string"
2029
+ },
2030
+ {
2031
+ "type": "null"
2032
+ }
2033
+ ],
2034
+ "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
+ },
2036
+ "fields": {
2037
+ "type": "array",
2038
+ "items": {
2039
+ "type": "object",
2040
+ "properties": {
2041
+ "key": {
2042
+ "type": "string",
2043
+ "description": "The field's API name or slug in that system."
2044
+ },
2045
+ "label": {
2046
+ "type": "string",
2047
+ "description": "The field's name in that system's UI; the key when unknown."
2048
+ },
2049
+ "value": {
2050
+ "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."
2051
+ },
2052
+ "custom": {
2053
+ "type": "boolean",
2054
+ "description": "True for a field the customer's team added to that system."
2055
+ }
2056
+ },
2057
+ "required": [
2058
+ "key",
2059
+ "label",
2060
+ "value",
2061
+ "custom"
2062
+ ],
2063
+ "additionalProperties": false
2064
+ },
2065
+ "description": "The account's non-empty fields, sorted by key."
2066
+ },
2067
+ "omittedFields": {
2068
+ "description": "Keys of fields left out so the response stays within its size limit, as many as fit. Ask for them with crmFields.",
2069
+ "type": "array",
2070
+ "items": {
2071
+ "type": "string"
2072
+ }
2073
+ },
2074
+ "omittedFieldCount": {
2075
+ "description": "How many fields were left out, including any not named in omittedFields.",
2076
+ "type": "integer",
2077
+ "minimum": 0,
2078
+ "maximum": 9007199254740991
2079
+ }
2080
+ },
2081
+ "required": [
2082
+ "provider",
2083
+ "connectionId",
2084
+ "accountId",
2085
+ "name",
2086
+ "owner",
2087
+ "recordUpdatedAt",
2088
+ "fields"
2089
+ ],
2090
+ "additionalProperties": false
2091
+ }
2092
+ },
2093
+ {
2094
+ "type": "null"
2095
+ }
2096
+ ]
1804
2097
  }
1805
2098
  },
1806
2099
  "required": [
@@ -2667,6 +2960,7 @@ var publicToolContracts = {
2667
2960
  "OPPORTUNITY",
2668
2961
  "SLACK",
2669
2962
  "PERSON_PROFILE",
2963
+ "INVOICE",
2670
2964
  "CRM",
2671
2965
  "CRM_OPPORTUNITY"
2672
2966
  ]
@@ -2892,7 +3186,8 @@ var publicToolContracts = {
2892
3186
  "SUPPORT_TICKET",
2893
3187
  "OPPORTUNITY",
2894
3188
  "SLACK",
2895
- "PERSON_PROFILE"
3189
+ "PERSON_PROFILE",
3190
+ "INVOICE"
2896
3191
  ]
2897
3192
  },
2898
3193
  "sourceId": {
@@ -2953,7 +3248,8 @@ var publicToolContracts = {
2953
3248
  "SUPPORT_TICKET",
2954
3249
  "OPPORTUNITY",
2955
3250
  "SLACK",
2956
- "PERSON_PROFILE"
3251
+ "PERSON_PROFILE",
3252
+ "INVOICE"
2957
3253
  ]
2958
3254
  },
2959
3255
  {
@@ -3164,7 +3460,8 @@ var publicToolContracts = {
3164
3460
  "SUPPORT_TICKET",
3165
3461
  "OPPORTUNITY",
3166
3462
  "SLACK",
3167
- "PERSON_PROFILE"
3463
+ "PERSON_PROFILE",
3464
+ "INVOICE"
3168
3465
  ]
3169
3466
  },
3170
3467
  {
@@ -3431,7 +3728,8 @@ var publicToolContracts = {
3431
3728
  "SUPPORT_TICKET",
3432
3729
  "OPPORTUNITY",
3433
3730
  "SLACK",
3434
- "PERSON_PROFILE"
3731
+ "PERSON_PROFILE",
3732
+ "INVOICE"
3435
3733
  ]
3436
3734
  },
3437
3735
  "sourceId": {
@@ -3492,7 +3790,8 @@ var publicToolContracts = {
3492
3790
  "SUPPORT_TICKET",
3493
3791
  "OPPORTUNITY",
3494
3792
  "SLACK",
3495
- "PERSON_PROFILE"
3793
+ "PERSON_PROFILE",
3794
+ "INVOICE"
3496
3795
  ]
3497
3796
  },
3498
3797
  {
@@ -3703,7 +4002,8 @@ var publicToolContracts = {
3703
4002
  "SUPPORT_TICKET",
3704
4003
  "OPPORTUNITY",
3705
4004
  "SLACK",
3706
- "PERSON_PROFILE"
4005
+ "PERSON_PROFILE",
4006
+ "INVOICE"
3707
4007
  ]
3708
4008
  },
3709
4009
  {
@@ -3799,7 +4099,7 @@ var publicToolContracts = {
3799
4099
  "commandVersion": 1,
3800
4100
  "ownerDomain": "customer-context",
3801
4101
  "title": "Get Source",
3802
- "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.",
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).",
3803
4103
  "annotations": {
3804
4104
  "readOnlyHint": true,
3805
4105
  "destructiveHint": false,
@@ -3819,8 +4119,10 @@ var publicToolContracts = {
3819
4119
  "OPPORTUNITY",
3820
4120
  "SLACK",
3821
4121
  "PERSON_PROFILE",
4122
+ "INVOICE",
3822
4123
  "CRM",
3823
4124
  "CRM_OPPORTUNITY",
4125
+ "STRIPE_INVOICE",
3824
4126
  "EXTRACTED"
3825
4127
  ]
3826
4128
  },
@@ -3860,7 +4162,8 @@ var publicToolContracts = {
3860
4162
  "SUPPORT_TICKET",
3861
4163
  "OPPORTUNITY",
3862
4164
  "SLACK",
3863
- "PERSON_PROFILE"
4165
+ "PERSON_PROFILE",
4166
+ "INVOICE"
3864
4167
  ]
3865
4168
  },
3866
4169
  "sourceId": {
@@ -4045,7 +4348,8 @@ var publicToolContracts = {
4045
4348
  "SUPPORT_TICKET",
4046
4349
  "OPPORTUNITY",
4047
4350
  "SLACK",
4048
- "PERSON_PROFILE"
4351
+ "PERSON_PROFILE",
4352
+ "INVOICE"
4049
4353
  ]
4050
4354
  },
4051
4355
  "sourceId": {
@@ -4184,7 +4488,7 @@ var publicToolContracts = {
4184
4488
  "commandVersion": 1,
4185
4489
  "ownerDomain": "customer-context",
4186
4490
  "title": "List Sources",
4187
- "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.",
4491
+ "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.",
4188
4492
  "annotations": {
4189
4493
  "readOnlyHint": true,
4190
4494
  "destructiveHint": false,
@@ -4205,8 +4509,10 @@ var publicToolContracts = {
4205
4509
  "OPPORTUNITY",
4206
4510
  "SLACK",
4207
4511
  "PERSON_PROFILE",
4512
+ "INVOICE",
4208
4513
  "CRM",
4209
- "CRM_OPPORTUNITY"
4514
+ "CRM_OPPORTUNITY",
4515
+ "STRIPE_INVOICE"
4210
4516
  ]
4211
4517
  },
4212
4518
  "customer": {
@@ -4277,7 +4583,8 @@ var publicToolContracts = {
4277
4583
  "SUPPORT_TICKET",
4278
4584
  "OPPORTUNITY",
4279
4585
  "SLACK",
4280
- "PERSON_PROFILE"
4586
+ "PERSON_PROFILE",
4587
+ "INVOICE"
4281
4588
  ]
4282
4589
  },
4283
4590
  "sourceId": {
@@ -4462,7 +4769,8 @@ var publicToolContracts = {
4462
4769
  "SUPPORT_TICKET",
4463
4770
  "OPPORTUNITY",
4464
4771
  "SLACK",
4465
- "PERSON_PROFILE"
4772
+ "PERSON_PROFILE",
4773
+ "INVOICE"
4466
4774
  ]
4467
4775
  },
4468
4776
  "sourceId": {
@@ -4692,6 +5000,7 @@ var publicToolContracts = {
4692
5000
  "OPPORTUNITY",
4693
5001
  "SLACK",
4694
5002
  "PERSON_PROFILE",
5003
+ "INVOICE",
4695
5004
  "CRM",
4696
5005
  "CRM_OPPORTUNITY"
4697
5006
  ]
@@ -4938,7 +5247,8 @@ var publicToolContracts = {
4938
5247
  "SUPPORT_TICKET",
4939
5248
  "OPPORTUNITY",
4940
5249
  "SLACK",
4941
- "PERSON_PROFILE"
5250
+ "PERSON_PROFILE",
5251
+ "INVOICE"
4942
5252
  ]
4943
5253
  },
4944
5254
  "sourceId": {
@@ -4999,7 +5309,8 @@ var publicToolContracts = {
4999
5309
  "SUPPORT_TICKET",
5000
5310
  "OPPORTUNITY",
5001
5311
  "SLACK",
5002
- "PERSON_PROFILE"
5312
+ "PERSON_PROFILE",
5313
+ "INVOICE"
5003
5314
  ]
5004
5315
  },
5005
5316
  {
@@ -5210,7 +5521,8 @@ var publicToolContracts = {
5210
5521
  "SUPPORT_TICKET",
5211
5522
  "OPPORTUNITY",
5212
5523
  "SLACK",
5213
- "PERSON_PROFILE"
5524
+ "PERSON_PROFILE",
5525
+ "INVOICE"
5214
5526
  ]
5215
5527
  },
5216
5528
  {
@@ -5328,7 +5640,8 @@ var publicToolContracts = {
5328
5640
  "SUPPORT_TICKET",
5329
5641
  "OPPORTUNITY",
5330
5642
  "SLACK",
5331
- "PERSON_PROFILE"
5643
+ "PERSON_PROFILE",
5644
+ "INVOICE"
5332
5645
  ]
5333
5646
  },
5334
5647
  "sourceId": {
@@ -5495,7 +5808,7 @@ var publicToolContracts = {
5495
5808
  "commandVersion": 1,
5496
5809
  "ownerDomain": "analytics",
5497
5810
  "title": "Run SQL Query",
5498
- "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, mrr_cents, traits, ...)\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(mrr_cents)/100 as mrr FROM customers GROUP BY 1\n- SELECT * FROM activity WHERE customer_id = 'cust_123' ORDER BY occurred_at DESC LIMIT 50",
5811
+ "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",
5499
5812
  "annotations": {
5500
5813
  "readOnlyHint": true,
5501
5814
  "destructiveHint": false,
@@ -8620,7 +8933,7 @@ var publicToolContracts = {
8620
8933
  "commandVersion": 1,
8621
8934
  "ownerDomain": "integrations",
8622
8935
  "title": "Set Up Integration",
8623
- "description": "Continue integration setup through validated credentials, safe configuration, or a trusted browser handoff.",
8936
+ "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.",
8624
8937
  "annotations": {
8625
8938
  "readOnlyHint": false,
8626
8939
  "destructiveHint": false,
@@ -8758,6 +9071,32 @@ var publicToolContracts = {
8758
9071
  "connectionMode": {
8759
9072
  "type": "string",
8760
9073
  "const": "oauth"
9074
+ },
9075
+ "configuration": {
9076
+ "type": "object",
9077
+ "properties": {
9078
+ "kind": {
9079
+ "type": "string",
9080
+ "const": "stripe_renewal_date_field"
9081
+ },
9082
+ "key": {
9083
+ "anyOf": [
9084
+ {
9085
+ "type": "string",
9086
+ "minLength": 1,
9087
+ "maxLength": 40
9088
+ },
9089
+ {
9090
+ "type": "null"
9091
+ }
9092
+ ]
9093
+ }
9094
+ },
9095
+ "required": [
9096
+ "kind",
9097
+ "key"
9098
+ ],
9099
+ "additionalProperties": false
8761
9100
  }
8762
9101
  },
8763
9102
  "required": [
@@ -8789,6 +9128,32 @@ var publicToolContracts = {
8789
9128
  "apiKey"
8790
9129
  ],
8791
9130
  "additionalProperties": false
9131
+ },
9132
+ "configuration": {
9133
+ "type": "object",
9134
+ "properties": {
9135
+ "kind": {
9136
+ "type": "string",
9137
+ "const": "stripe_renewal_date_field"
9138
+ },
9139
+ "key": {
9140
+ "anyOf": [
9141
+ {
9142
+ "type": "string",
9143
+ "minLength": 1,
9144
+ "maxLength": 40
9145
+ },
9146
+ {
9147
+ "type": "null"
9148
+ }
9149
+ ]
9150
+ }
9151
+ },
9152
+ "required": [
9153
+ "kind",
9154
+ "key"
9155
+ ],
9156
+ "additionalProperties": false
8792
9157
  }
8793
9158
  },
8794
9159
  "required": [
@@ -9491,6 +9856,69 @@ var publicToolContracts = {
9491
9856
  "preview"
9492
9857
  ],
9493
9858
  "additionalProperties": false
9859
+ },
9860
+ {
9861
+ "type": "object",
9862
+ "properties": {
9863
+ "kind": {
9864
+ "type": "string",
9865
+ "const": "stripe_renewal_date_field"
9866
+ },
9867
+ "selectedKey": {
9868
+ "anyOf": [
9869
+ {
9870
+ "type": "string"
9871
+ },
9872
+ {
9873
+ "type": "null"
9874
+ }
9875
+ ]
9876
+ },
9877
+ "liveSubscriptionCount": {
9878
+ "type": "integer",
9879
+ "minimum": 0,
9880
+ "maximum": 9007199254740991
9881
+ },
9882
+ "keys": {
9883
+ "type": "array",
9884
+ "items": {
9885
+ "type": "object",
9886
+ "properties": {
9887
+ "key": {
9888
+ "type": "string"
9889
+ },
9890
+ "subscriptionCount": {
9891
+ "type": "integer",
9892
+ "minimum": 0,
9893
+ "maximum": 9007199254740991
9894
+ },
9895
+ "sampleDate": {
9896
+ "anyOf": [
9897
+ {
9898
+ "type": "string"
9899
+ },
9900
+ {
9901
+ "type": "null"
9902
+ }
9903
+ ]
9904
+ }
9905
+ },
9906
+ "required": [
9907
+ "key",
9908
+ "subscriptionCount",
9909
+ "sampleDate"
9910
+ ],
9911
+ "additionalProperties": false
9912
+ }
9913
+ }
9914
+ },
9915
+ "required": [
9916
+ "kind",
9917
+ "selectedKey",
9918
+ "liveSubscriptionCount",
9919
+ "keys"
9920
+ ],
9921
+ "additionalProperties": false
9494
9922
  }
9495
9923
  ]
9496
9924
  },
@@ -17858,14 +18286,16 @@ var customerListOrderFields = [
17858
18286
  "last_activity_at",
17859
18287
  "first_seen_at",
17860
18288
  "name",
17861
- "mrr_cents"
18289
+ "arr_cents"
17862
18290
  ];
17863
18291
  var customerIncludeSections = [
17864
18292
  "users",
17865
18293
  "revenue",
17866
18294
  "recentTimeline",
17867
18295
  "behaviorMetrics",
17868
- "enrichment"
18296
+ "enrichment",
18297
+ "renewal",
18298
+ "crm"
17869
18299
  ];
17870
18300
  var customerSourceTypes = [
17871
18301
  "EMAIL",
@@ -17874,7 +18304,8 @@ var customerSourceTypes = [
17874
18304
  "SUPPORT_TICKET",
17875
18305
  "OPPORTUNITY",
17876
18306
  "SLACK",
17877
- "PERSON_PROFILE"
18307
+ "PERSON_PROFILE",
18308
+ "INVOICE"
17878
18309
  ];
17879
18310
  var customerSourceTypeAliasMap = {
17880
18311
  "CRM": "OPPORTUNITY",
@@ -17892,6 +18323,7 @@ var customerSourceTypeInputs = [
17892
18323
  "OPPORTUNITY",
17893
18324
  "SLACK",
17894
18325
  "PERSON_PROFILE",
18326
+ "INVOICE",
17895
18327
  "CRM",
17896
18328
  "CRM_OPPORTUNITY"
17897
18329
  ];
@@ -17942,7 +18374,7 @@ var schemaTables = [
17942
18374
  "users",
17943
18375
  "revenue"
17944
18376
  ];
17945
- var sdkConsumerContractHash = "9409f42bc10034b8afef6a3ca3597fbe8ae9fa8ed8846f1e7b4b0b6a4320c31c";
18377
+ var sdkConsumerContractHash = "b77a1b10fd174c041e1ae2c6fa7dfec1b049dc32053dd4e5ccb9a86123311ff8";
17946
18378
 
17947
18379
  // src/contracts.ts
17948
18380
  var publicToolNameSet = new Set(publicToolNames);
@@ -17959,6 +18391,16 @@ function normalizeCustomerSourceType(value) {
17959
18391
  if (customerSourceTypeSet.has(normalized)) return normalized;
17960
18392
  return customerSourceTypeAliasMap[normalized] ?? null;
17961
18393
  }
18394
+ var customerSourceToolInputAliasMap = {
18395
+ STRIPE_INVOICE: "INVOICE"
18396
+ };
18397
+ function normalizeCustomerSourceToolInput(value) {
18398
+ const normalized = normalizeCustomerSourceType(value);
18399
+ if (normalized) return normalized;
18400
+ const key = value.trim().toUpperCase();
18401
+ if (!Object.hasOwn(customerSourceToolInputAliasMap, key)) return null;
18402
+ return customerSourceToolInputAliasMap[key];
18403
+ }
17962
18404
  function resolveCustomerContextSearchInput(value) {
17963
18405
  if (!value.query) return { ok: false, message: "A query argument is required" };
17964
18406
  const normalizedQuery = value.query.trim();
@@ -18177,6 +18619,7 @@ export {
18177
18619
  isOutlitToolsApiError,
18178
18620
  isPublicToolName,
18179
18621
  matchesGeneratedJsonSchema,
18622
+ normalizeCustomerSourceToolInput,
18180
18623
  normalizeCustomerSourceType,
18181
18624
  piToolNames,
18182
18625
  publicOpenApiTransports,