@outlit/tools 2.2.3 → 2.2.5

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
@@ -386,7 +386,7 @@ var publicToolContracts = {
386
386
  "commandVersion": 1,
387
387
  "ownerDomain": "users",
388
388
  "title": "List Users",
389
- "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.",
389
+ "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.",
390
390
  "annotations": {
391
391
  "readOnlyHint": true,
392
392
  "destructiveHint": false
@@ -567,6 +567,77 @@ var publicToolContracts = {
567
567
  }
568
568
  ]
569
569
  },
570
+ "sources": {
571
+ "type": "array",
572
+ "items": {
573
+ "type": "object",
574
+ "properties": {
575
+ "system": {
576
+ "type": "string",
577
+ "description": "Lowercase id of the system, such as hubspot, salesforce, attio, pylon, posthog, slack, stripe, google-mail, google-calendar, ergo, fireflies, gong, mixpanel, outlit (the Outlit SDK) or product-analytics (a product-analytics provider Outlit did not record)."
578
+ },
579
+ "kind": {
580
+ "type": "string",
581
+ "enum": [
582
+ "contact",
583
+ "product_user",
584
+ "chat_member",
585
+ "billing_customer",
586
+ "call",
587
+ "meeting",
588
+ "email",
589
+ "support_ticket",
590
+ "slack_thread"
591
+ ],
592
+ "description": "Records: contact (a contact in a CRM or support tool), product_user (a user in product analytics or product sign-in), chat_member (a Slack member), billing_customer. Conversations the person took part in: call, meeting, email, support_ticket, slack_thread."
593
+ },
594
+ "count": {
595
+ "anyOf": [
596
+ {
597
+ "type": "integer",
598
+ "minimum": 1,
599
+ "maximum": 9007199254740991
600
+ },
601
+ {
602
+ "type": "null"
603
+ }
604
+ ],
605
+ "description": "How many conversations of this kind; null for records."
606
+ },
607
+ "firstSeenAt": {
608
+ "anyOf": [
609
+ {
610
+ "type": "string"
611
+ },
612
+ {
613
+ "type": "null"
614
+ }
615
+ ],
616
+ "description": "When the record was created in the system (or first linked to this person), or the first conversation."
617
+ },
618
+ "lastSeenAt": {
619
+ "anyOf": [
620
+ {
621
+ "type": "string"
622
+ },
623
+ {
624
+ "type": "null"
625
+ }
626
+ ],
627
+ "description": "The latest conversation; null for records."
628
+ }
629
+ },
630
+ "required": [
631
+ "system",
632
+ "kind",
633
+ "count",
634
+ "firstSeenAt",
635
+ "lastSeenAt"
636
+ ],
637
+ "additionalProperties": false
638
+ },
639
+ "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."
640
+ },
570
641
  "relationshipRole": {
571
642
  "anyOf": [
572
643
  {
@@ -861,7 +932,7 @@ var publicToolContracts = {
861
932
  "commandVersion": 1,
862
933
  "ownerDomain": "customers",
863
934
  "title": "Get Customer",
864
- "description": "Get full details for a single customer. Optionally include users, 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.",
935
+ "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.",
865
936
  "annotations": {
866
937
  "readOnlyHint": true,
867
938
  "destructiveHint": false
@@ -1064,6 +1135,77 @@ var publicToolContracts = {
1064
1135
  }
1065
1136
  ]
1066
1137
  },
1138
+ "sources": {
1139
+ "type": "array",
1140
+ "items": {
1141
+ "type": "object",
1142
+ "properties": {
1143
+ "system": {
1144
+ "type": "string",
1145
+ "description": "Lowercase id of the system, such as hubspot, salesforce, attio, pylon, posthog, slack, stripe, google-mail, google-calendar, ergo, fireflies, gong, mixpanel, outlit (the Outlit SDK) or product-analytics (a product-analytics provider Outlit did not record)."
1146
+ },
1147
+ "kind": {
1148
+ "type": "string",
1149
+ "enum": [
1150
+ "contact",
1151
+ "product_user",
1152
+ "chat_member",
1153
+ "billing_customer",
1154
+ "call",
1155
+ "meeting",
1156
+ "email",
1157
+ "support_ticket",
1158
+ "slack_thread"
1159
+ ],
1160
+ "description": "Records: contact (a contact in a CRM or support tool), product_user (a user in product analytics or product sign-in), chat_member (a Slack member), billing_customer. Conversations the person took part in: call, meeting, email, support_ticket, slack_thread."
1161
+ },
1162
+ "count": {
1163
+ "anyOf": [
1164
+ {
1165
+ "type": "integer",
1166
+ "minimum": 1,
1167
+ "maximum": 9007199254740991
1168
+ },
1169
+ {
1170
+ "type": "null"
1171
+ }
1172
+ ],
1173
+ "description": "How many conversations of this kind; null for records."
1174
+ },
1175
+ "firstSeenAt": {
1176
+ "anyOf": [
1177
+ {
1178
+ "type": "string"
1179
+ },
1180
+ {
1181
+ "type": "null"
1182
+ }
1183
+ ],
1184
+ "description": "When the record was created in the system (or first linked to this person), or the first conversation."
1185
+ },
1186
+ "lastSeenAt": {
1187
+ "anyOf": [
1188
+ {
1189
+ "type": "string"
1190
+ },
1191
+ {
1192
+ "type": "null"
1193
+ }
1194
+ ],
1195
+ "description": "The latest conversation; null for records."
1196
+ }
1197
+ },
1198
+ "required": [
1199
+ "system",
1200
+ "kind",
1201
+ "count",
1202
+ "firstSeenAt",
1203
+ "lastSeenAt"
1204
+ ],
1205
+ "additionalProperties": false
1206
+ },
1207
+ "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."
1208
+ },
1067
1209
  "relationshipRole": {
1068
1210
  "anyOf": [
1069
1211
  {
@@ -16054,6 +16196,227 @@ var apiKeyValidationFailureSchema = {
16054
16196
  ],
16055
16197
  "additionalProperties": false
16056
16198
  };
16199
+ var apiKeyContractHeader = "Outlit-Api-Key-Contract";
16200
+ var apiKeyValidationSuccessSchemaV2 = {
16201
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
16202
+ "type": "object",
16203
+ "properties": {
16204
+ "valid": {
16205
+ "type": "boolean",
16206
+ "const": true
16207
+ },
16208
+ "organizationId": {
16209
+ "type": "string"
16210
+ },
16211
+ "createdById": {
16212
+ "anyOf": [
16213
+ {
16214
+ "type": "string"
16215
+ },
16216
+ {
16217
+ "type": "null"
16218
+ }
16219
+ ]
16220
+ },
16221
+ "organization": {
16222
+ "type": "object",
16223
+ "properties": {
16224
+ "id": {
16225
+ "type": "string"
16226
+ },
16227
+ "name": {
16228
+ "anyOf": [
16229
+ {
16230
+ "type": "string"
16231
+ },
16232
+ {
16233
+ "type": "null"
16234
+ }
16235
+ ]
16236
+ },
16237
+ "slug": {
16238
+ "anyOf": [
16239
+ {
16240
+ "type": "string"
16241
+ },
16242
+ {
16243
+ "type": "null"
16244
+ }
16245
+ ]
16246
+ }
16247
+ },
16248
+ "required": [
16249
+ "id",
16250
+ "name",
16251
+ "slug"
16252
+ ],
16253
+ "additionalProperties": false
16254
+ },
16255
+ "createdBy": {
16256
+ "anyOf": [
16257
+ {
16258
+ "type": "object",
16259
+ "properties": {
16260
+ "id": {
16261
+ "type": "string"
16262
+ },
16263
+ "email": {
16264
+ "type": "string"
16265
+ },
16266
+ "name": {
16267
+ "anyOf": [
16268
+ {
16269
+ "type": "string"
16270
+ },
16271
+ {
16272
+ "type": "null"
16273
+ }
16274
+ ]
16275
+ }
16276
+ },
16277
+ "required": [
16278
+ "id",
16279
+ "email",
16280
+ "name"
16281
+ ],
16282
+ "additionalProperties": false
16283
+ },
16284
+ {
16285
+ "type": "null"
16286
+ }
16287
+ ]
16288
+ },
16289
+ "apiKey": {
16290
+ "type": "object",
16291
+ "properties": {
16292
+ "id": {
16293
+ "type": "string"
16294
+ },
16295
+ "name": {
16296
+ "type": "string"
16297
+ },
16298
+ "prefix": {
16299
+ "type": "string"
16300
+ },
16301
+ "keyType": {
16302
+ "type": "string",
16303
+ "enum": [
16304
+ "api",
16305
+ "cli",
16306
+ "mcp",
16307
+ "ci"
16308
+ ]
16309
+ },
16310
+ "grants": {
16311
+ "type": "array",
16312
+ "items": {
16313
+ "type": "string",
16314
+ "enum": [
16315
+ "customer_intelligence:read",
16316
+ "workspace_members:read",
16317
+ "analytics:read",
16318
+ "destinations:manage",
16319
+ "behavior_metrics:manage",
16320
+ "integrations:connect_own",
16321
+ "integrations:manage",
16322
+ "activation:read",
16323
+ "activation:manage",
16324
+ "workspace_settings:read",
16325
+ "workspace_settings:manage",
16326
+ "customer_access:manage",
16327
+ "customer_identity:review",
16328
+ "customer_identity:merge"
16329
+ ]
16330
+ }
16331
+ },
16332
+ "createdAt": {
16333
+ "type": "string",
16334
+ "format": "date-time",
16335
+ "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))$"
16336
+ },
16337
+ "lastUsedAt": {
16338
+ "anyOf": [
16339
+ {
16340
+ "type": "string",
16341
+ "format": "date-time",
16342
+ "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))$"
16343
+ },
16344
+ {
16345
+ "type": "null"
16346
+ }
16347
+ ]
16348
+ },
16349
+ "totalRequests": {
16350
+ "type": "integer",
16351
+ "minimum": 0,
16352
+ "maximum": 9007199254740991
16353
+ },
16354
+ "expiresAt": {
16355
+ "anyOf": [
16356
+ {
16357
+ "type": "string",
16358
+ "format": "date-time",
16359
+ "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))$"
16360
+ },
16361
+ {
16362
+ "type": "null"
16363
+ }
16364
+ ]
16365
+ }
16366
+ },
16367
+ "required": [
16368
+ "id",
16369
+ "name",
16370
+ "prefix",
16371
+ "keyType",
16372
+ "grants",
16373
+ "createdAt",
16374
+ "lastUsedAt",
16375
+ "totalRequests",
16376
+ "expiresAt"
16377
+ ],
16378
+ "additionalProperties": false
16379
+ },
16380
+ "authorization": {
16381
+ "type": "object",
16382
+ "properties": {
16383
+ "grants": {
16384
+ "type": "array",
16385
+ "items": {
16386
+ "type": "string",
16387
+ "enum": [
16388
+ "customer_intelligence:read",
16389
+ "workspace_members:read",
16390
+ "analytics:read",
16391
+ "destinations:manage",
16392
+ "behavior_metrics:manage",
16393
+ "integrations:connect_own",
16394
+ "integrations:manage",
16395
+ "activation:read",
16396
+ "activation:manage",
16397
+ "workspace_settings:read",
16398
+ "workspace_settings:manage",
16399
+ "customer_access:manage",
16400
+ "customer_identity:review",
16401
+ "customer_identity:merge"
16402
+ ]
16403
+ }
16404
+ }
16405
+ },
16406
+ "required": [
16407
+ "grants"
16408
+ ],
16409
+ "additionalProperties": false
16410
+ }
16411
+ },
16412
+ "required": [
16413
+ "valid",
16414
+ "organizationId",
16415
+ "createdById",
16416
+ "authorization"
16417
+ ],
16418
+ "additionalProperties": false
16419
+ };
16057
16420
  var toolGatewayErrorCodes = [
16058
16421
  "INVALID_JSON",
16059
16422
  "INVALID_TOOL_CALL",
@@ -17101,7 +17464,7 @@ var schemaTables = [
17101
17464
  "users",
17102
17465
  "revenue"
17103
17466
  ];
17104
- var sdkConsumerContractHash = "4487d082473e65e51514b2a491210e1aab16dc7b0045412e4c11e6d89bc4ab5a";
17467
+ var sdkConsumerContractHash = "2fa67b23109e55e6b48d9899d1cfd176784feadf1d052a30a218cb69a3b59cbb";
17105
17468
 
17106
17469
  // src/contracts.ts
17107
17470
  var publicToolNameSet = new Set(publicToolNames);
@@ -17307,9 +17670,11 @@ export {
17307
17670
  OutlitToolsApiError,
17308
17671
  allPublicToolNames,
17309
17672
  analyticalToolNames,
17673
+ apiKeyContractHeader,
17310
17674
  apiKeyGrants,
17311
17675
  apiKeyValidationFailureSchema,
17312
17676
  apiKeyValidationSuccessSchema,
17677
+ apiKeyValidationSuccessSchemaV2,
17313
17678
  apiKeyValidationTransport,
17314
17679
  cliToolNames,
17315
17680
  consumerToolPolicies,