@outlit/tools 2.1.2 → 2.1.3

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 CHANGED
@@ -3544,7 +3544,8 @@ var publicToolContracts = {
3544
3544
  "SLACK",
3545
3545
  "PERSON_PROFILE",
3546
3546
  "CRM",
3547
- "CRM_OPPORTUNITY"
3547
+ "CRM_OPPORTUNITY",
3548
+ "EXTRACTED"
3548
3549
  ]
3549
3550
  },
3550
3551
  "sourceId": {
@@ -3553,13 +3554,13 @@ var publicToolContracts = {
3553
3554
  "maxLength": 500
3554
3555
  },
3555
3556
  "limit": {
3556
- "description": "Slack replies per page (default 50, maximum 100). Ignored for other source types.",
3557
+ "description": "Exact content segments per page (default 10, maximum 100).",
3557
3558
  "type": "integer",
3558
3559
  "minimum": 1,
3559
3560
  "maximum": 100
3560
3561
  },
3561
3562
  "cursor": {
3562
- "description": "Opaque Slack reply cursor returned by a previous exact lookup.",
3563
+ "description": "Opaque cursor returned by a previous exact lookup for the same source.",
3563
3564
  "type": "string",
3564
3565
  "minLength": 1,
3565
3566
  "maxLength": 2e3
@@ -3755,6 +3756,135 @@ var publicToolContracts = {
3755
3756
  "type": "string"
3756
3757
  },
3757
3758
  "additionalProperties": {}
3759
+ },
3760
+ "contentPage": {
3761
+ "type": "object",
3762
+ "properties": {
3763
+ "sourceType": {
3764
+ "type": "string",
3765
+ "enum": [
3766
+ "EMAIL",
3767
+ "CALL",
3768
+ "CALENDAR_EVENT",
3769
+ "SUPPORT_TICKET",
3770
+ "OPPORTUNITY",
3771
+ "SLACK",
3772
+ "PERSON_PROFILE"
3773
+ ]
3774
+ },
3775
+ "sourceId": {
3776
+ "type": "string",
3777
+ "minLength": 1,
3778
+ "maxLength": 500
3779
+ },
3780
+ "contentKind": {
3781
+ "type": "string",
3782
+ "enum": [
3783
+ "email_body",
3784
+ "call_transcript",
3785
+ "support_thread",
3786
+ "slack_thread"
3787
+ ]
3788
+ },
3789
+ "segments": {
3790
+ "type": "array",
3791
+ "items": {
3792
+ "type": "object",
3793
+ "properties": {
3794
+ "id": {
3795
+ "type": "string",
3796
+ "minLength": 1,
3797
+ "maxLength": 1e3
3798
+ },
3799
+ "occurredAt": {
3800
+ "type": "string",
3801
+ "format": "date-time",
3802
+ "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))$"
3803
+ },
3804
+ "authorLabel": {
3805
+ "type": "string",
3806
+ "maxLength": 500
3807
+ },
3808
+ "text": {
3809
+ "type": "string"
3810
+ }
3811
+ },
3812
+ "required": [
3813
+ "id",
3814
+ "text"
3815
+ ],
3816
+ "additionalProperties": false
3817
+ }
3818
+ },
3819
+ "page": {
3820
+ "type": "object",
3821
+ "properties": {
3822
+ "returned": {
3823
+ "type": "integer",
3824
+ "minimum": 0,
3825
+ "maximum": 9007199254740991
3826
+ },
3827
+ "hasMore": {
3828
+ "type": "boolean"
3829
+ },
3830
+ "nextCursor": {
3831
+ "anyOf": [
3832
+ {
3833
+ "type": "string",
3834
+ "maxLength": 2e3
3835
+ },
3836
+ {
3837
+ "type": "null"
3838
+ }
3839
+ ]
3840
+ }
3841
+ },
3842
+ "required": [
3843
+ "returned",
3844
+ "hasMore",
3845
+ "nextCursor"
3846
+ ],
3847
+ "additionalProperties": false
3848
+ },
3849
+ "completeness": {
3850
+ "type": "object",
3851
+ "properties": {
3852
+ "status": {
3853
+ "type": "string",
3854
+ "enum": [
3855
+ "complete",
3856
+ "partial",
3857
+ "unavailable"
3858
+ ]
3859
+ },
3860
+ "reason": {
3861
+ "type": "string",
3862
+ "maxLength": 1e3
3863
+ },
3864
+ "omittedFields": {
3865
+ "type": "array",
3866
+ "items": {
3867
+ "type": "string",
3868
+ "maxLength": 500
3869
+ }
3870
+ }
3871
+ },
3872
+ "required": [
3873
+ "status",
3874
+ "omittedFields"
3875
+ ],
3876
+ "additionalProperties": false
3877
+ }
3878
+ },
3879
+ "required": [
3880
+ "sourceType",
3881
+ "sourceId",
3882
+ "contentKind",
3883
+ "segments",
3884
+ "page",
3885
+ "completeness"
3886
+ ],
3887
+ "additionalProperties": false
3758
3888
  }
3759
3889
  },
3760
3890
  "required": [
@@ -4038,6 +4168,135 @@ var publicToolContracts = {
4038
4168
  "type": "string"
4039
4169
  },
4040
4170
  "additionalProperties": {}
4171
+ },
4172
+ "contentPage": {
4173
+ "type": "object",
4174
+ "properties": {
4175
+ "sourceType": {
4176
+ "type": "string",
4177
+ "enum": [
4178
+ "EMAIL",
4179
+ "CALL",
4180
+ "CALENDAR_EVENT",
4181
+ "SUPPORT_TICKET",
4182
+ "OPPORTUNITY",
4183
+ "SLACK",
4184
+ "PERSON_PROFILE"
4185
+ ]
4186
+ },
4187
+ "sourceId": {
4188
+ "type": "string",
4189
+ "minLength": 1,
4190
+ "maxLength": 500
4191
+ },
4192
+ "contentKind": {
4193
+ "type": "string",
4194
+ "enum": [
4195
+ "email_body",
4196
+ "call_transcript",
4197
+ "support_thread",
4198
+ "slack_thread"
4199
+ ]
4200
+ },
4201
+ "segments": {
4202
+ "type": "array",
4203
+ "items": {
4204
+ "type": "object",
4205
+ "properties": {
4206
+ "id": {
4207
+ "type": "string",
4208
+ "minLength": 1,
4209
+ "maxLength": 1e3
4210
+ },
4211
+ "occurredAt": {
4212
+ "type": "string",
4213
+ "format": "date-time",
4214
+ "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))$"
4215
+ },
4216
+ "authorLabel": {
4217
+ "type": "string",
4218
+ "maxLength": 500
4219
+ },
4220
+ "text": {
4221
+ "type": "string"
4222
+ }
4223
+ },
4224
+ "required": [
4225
+ "id",
4226
+ "text"
4227
+ ],
4228
+ "additionalProperties": false
4229
+ }
4230
+ },
4231
+ "page": {
4232
+ "type": "object",
4233
+ "properties": {
4234
+ "returned": {
4235
+ "type": "integer",
4236
+ "minimum": 0,
4237
+ "maximum": 9007199254740991
4238
+ },
4239
+ "hasMore": {
4240
+ "type": "boolean"
4241
+ },
4242
+ "nextCursor": {
4243
+ "anyOf": [
4244
+ {
4245
+ "type": "string",
4246
+ "maxLength": 2e3
4247
+ },
4248
+ {
4249
+ "type": "null"
4250
+ }
4251
+ ]
4252
+ }
4253
+ },
4254
+ "required": [
4255
+ "returned",
4256
+ "hasMore",
4257
+ "nextCursor"
4258
+ ],
4259
+ "additionalProperties": false
4260
+ },
4261
+ "completeness": {
4262
+ "type": "object",
4263
+ "properties": {
4264
+ "status": {
4265
+ "type": "string",
4266
+ "enum": [
4267
+ "complete",
4268
+ "partial",
4269
+ "unavailable"
4270
+ ]
4271
+ },
4272
+ "reason": {
4273
+ "type": "string",
4274
+ "maxLength": 1e3
4275
+ },
4276
+ "omittedFields": {
4277
+ "type": "array",
4278
+ "items": {
4279
+ "type": "string",
4280
+ "maxLength": 500
4281
+ }
4282
+ }
4283
+ },
4284
+ "required": [
4285
+ "status",
4286
+ "omittedFields"
4287
+ ],
4288
+ "additionalProperties": false
4289
+ }
4290
+ },
4291
+ "required": [
4292
+ "sourceType",
4293
+ "sourceId",
4294
+ "contentKind",
4295
+ "segments",
4296
+ "page",
4297
+ "completeness"
4298
+ ],
4299
+ "additionalProperties": false
4041
4300
  }
4042
4301
  },
4043
4302
  "required": [
@@ -11292,6 +11551,7 @@ var toolGatewayTransport = {
11292
11551
  403,
11293
11552
  404,
11294
11553
  409,
11554
+ 413,
11295
11555
  422,
11296
11556
  429,
11297
11557
  500,
@@ -11557,6 +11817,7 @@ var toolGatewayErrorCodes = [
11557
11817
  "TOOL_BINDING_MISSING",
11558
11818
  "TOOL_IMPLEMENTATION_ERROR",
11559
11819
  "TOOL_OUTPUT_INVALID",
11820
+ "TOOL_RESULT_TOO_LARGE",
11560
11821
  "TOOL_GATEWAY_ERROR",
11561
11822
  "plan_api_limit_exceeded",
11562
11823
  "plan_billing_action_required"
@@ -11576,6 +11837,7 @@ var toolGatewayErrorSchema = {
11576
11837
  "TOOL_BINDING_MISSING",
11577
11838
  "TOOL_IMPLEMENTATION_ERROR",
11578
11839
  "TOOL_OUTPUT_INVALID",
11840
+ "TOOL_RESULT_TOO_LARGE",
11579
11841
  "TOOL_GATEWAY_ERROR",
11580
11842
  "plan_api_limit_exceeded",
11581
11843
  "plan_billing_action_required"
@@ -11605,6 +11867,16 @@ var toolGatewayErrorSchema = {
11605
11867
  "type": "null"
11606
11868
  }
11607
11869
  ]
11870
+ },
11871
+ "limitBytes": {
11872
+ "type": "integer",
11873
+ "exclusiveMinimum": 0,
11874
+ "maximum": 9007199254740991
11875
+ },
11876
+ "actualBytes": {
11877
+ "type": "integer",
11878
+ "exclusiveMinimum": 0,
11879
+ "maximum": 9007199254740991
11608
11880
  }
11609
11881
  },
11610
11882
  "required": [
@@ -12555,7 +12827,7 @@ var schemaTables = [
12555
12827
  "users",
12556
12828
  "revenue"
12557
12829
  ];
12558
- var sdkConsumerContractHash = "6e94d54edef77e194566831299475f1814ec8a4cf6302aa38f7fd2d596623673";
12830
+ var sdkConsumerContractHash = "fb69fe6745dd5e8b9cfcfd8f50b46e8826177ffe389facfd0da44f903e3726bf";
12559
12831
 
12560
12832
  // src/contracts.ts
12561
12833
  var publicToolNameSet = new Set(publicToolNames);