@smartytalent/openai-tools 0.1.33-dev.24 → 0.1.33-dev.26
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/tools.json +241 -63
- package/package.json +1 -1
package/dist/tools.json
CHANGED
|
@@ -11000,6 +11000,7 @@
|
|
|
11000
11000
|
"attributes": {
|
|
11001
11001
|
"title": "ChatAttributesSchema",
|
|
11002
11002
|
"type": "object",
|
|
11003
|
+
"description": "Cross-protocol chat message attributes. One row per direction:\ninbound and outbound replies on the same conversation are separate\nrows, joined by relationships.conversation. `protocol` is the wire\nformat (sms/whatsapp/teams/googlechat/webapp). `fromIdentifier`\nand `toIdentifier` are protocol-native handles (E.164 phone for\nSMS/WhatsApp, Teams AAD object id, Google Chat user id, etc.) so\nthe row carries the literal sender/receiver without joins. The\nresolved principals (candidate / talent / user) live in\nrelationships - direction tells you which side of the\nconversation each principal is on (inbound: from-side is the\nexternal party; outbound: to-side is the external party, plus an\noptional user relationship for the boe agent that signed it).\n`body` is a multilingual dict {locale: text} mirroring the email\npattern - the chat AI step function translates user-facing\ncontent into the tenant's active locales for admin display.",
|
|
11003
11004
|
"properties": {
|
|
11004
11005
|
"direction": {
|
|
11005
11006
|
"type": "string",
|
|
@@ -11007,41 +11008,92 @@
|
|
|
11007
11008
|
"inbound",
|
|
11008
11009
|
"outbound"
|
|
11009
11010
|
],
|
|
11010
|
-
"description": "Message direction"
|
|
11011
|
+
"description": "Message direction relative to boe (inbound from external, outbound to external)."
|
|
11011
11012
|
},
|
|
11012
|
-
"
|
|
11013
|
+
"protocol": {
|
|
11013
11014
|
"type": "string",
|
|
11014
|
-
"
|
|
11015
|
+
"enum": [
|
|
11016
|
+
"sms",
|
|
11017
|
+
"whatsapp",
|
|
11018
|
+
"teams",
|
|
11019
|
+
"googlechat",
|
|
11020
|
+
"webapp"
|
|
11021
|
+
],
|
|
11022
|
+
"description": "Wire protocol. Adapter Lambdas set this on write so downstream code can branch on rendering / status callback handling."
|
|
11015
11023
|
},
|
|
11016
|
-
"
|
|
11024
|
+
"fromIdentifier": {
|
|
11017
11025
|
"type": "string",
|
|
11018
|
-
"description": "
|
|
11026
|
+
"description": "Sender's protocol-native handle (E.164 phone for SMS/WhatsApp, AAD object id for Teams, etc.)."
|
|
11019
11027
|
},
|
|
11020
|
-
"
|
|
11028
|
+
"fromName": {
|
|
11021
11029
|
"type": "string",
|
|
11022
|
-
"description": "
|
|
11030
|
+
"description": "Display name of the sender at write time. Denormalised from the resolved principal."
|
|
11023
11031
|
},
|
|
11024
|
-
"
|
|
11032
|
+
"fromType": {
|
|
11033
|
+
"type": "string",
|
|
11034
|
+
"enum": [
|
|
11035
|
+
"user",
|
|
11036
|
+
"candidate",
|
|
11037
|
+
"talent",
|
|
11038
|
+
"guest"
|
|
11039
|
+
],
|
|
11040
|
+
"description": "Principal type of the sender. Maps the platform's principal tables. `guest` for unknown senders (typically rejected by the inbound gate)."
|
|
11041
|
+
},
|
|
11042
|
+
"toIdentifier": {
|
|
11025
11043
|
"type": "string",
|
|
11026
|
-
"description": "
|
|
11044
|
+
"description": "Recipient's protocol-native handle."
|
|
11027
11045
|
},
|
|
11028
|
-
"
|
|
11046
|
+
"toName": {
|
|
11029
11047
|
"type": "string",
|
|
11030
|
-
"description": "
|
|
11048
|
+
"description": "Display name of the recipient at write time."
|
|
11031
11049
|
},
|
|
11032
|
-
"
|
|
11050
|
+
"toType": {
|
|
11033
11051
|
"type": "string",
|
|
11034
|
-
"
|
|
11052
|
+
"enum": [
|
|
11053
|
+
"user",
|
|
11054
|
+
"candidate",
|
|
11055
|
+
"talent",
|
|
11056
|
+
"guest"
|
|
11057
|
+
],
|
|
11058
|
+
"description": "Principal type of the recipient."
|
|
11059
|
+
},
|
|
11060
|
+
"body": {
|
|
11061
|
+
"type": "object",
|
|
11062
|
+
"description": "Multilingual message body keyed by BCP 47 locale (e.g. {`en-US`: `Hi`, `pl-PL`: `Cześć`}). Inbound writers stamp a single locale; the chat AI step function fills the rest.",
|
|
11063
|
+
"additionalProperties": {
|
|
11064
|
+
"type": "string"
|
|
11065
|
+
}
|
|
11035
11066
|
},
|
|
11036
11067
|
"status": {
|
|
11037
11068
|
"type": "string",
|
|
11038
11069
|
"enum": [
|
|
11039
|
-
"
|
|
11040
|
-
"
|
|
11041
|
-
"
|
|
11042
|
-
"
|
|
11070
|
+
"received",
|
|
11071
|
+
"draft",
|
|
11072
|
+
"scheduled",
|
|
11073
|
+
"cancelled",
|
|
11074
|
+
"queued",
|
|
11075
|
+
"sent",
|
|
11076
|
+
"delivered",
|
|
11077
|
+
"failed",
|
|
11078
|
+
"archived"
|
|
11043
11079
|
],
|
|
11044
|
-
"description": "
|
|
11080
|
+
"description": "Lifecycle state. Inbound rows go straight to `received`. Outbound rows that go through an operator review window or explicit scheduling start at `draft` (editable) or `scheduled` (Schedule armed for fireAt); on Schedule fire they progress queued -> sent -> delivered (or failed). `cancelled` is the terminal state when an operator hard-killed a draft / scheduled row before fire. `archived` is a terminal soft-delete for both directions."
|
|
11081
|
+
},
|
|
11082
|
+
"scheduledFireAt": {
|
|
11083
|
+
"type": "string",
|
|
11084
|
+
"description": "ISO 8601 timestamp at which the Schedule row armed for this chat will fire. Set on direction=outbound rows that go through a review window or explicit scheduling. Operators can PATCH this to reschedule; the eventbus PATCHes the underlying Schedule row in lockstep. Mirror of email.attributes.scheduledFireAt."
|
|
11085
|
+
},
|
|
11086
|
+
"scheduleId": {
|
|
11087
|
+
"type": "string",
|
|
11088
|
+
"description": "FK denormalisation of relationships.schedule for cheap read paths. Populated by the chat eventbus after it arms a Schedule row in response to chat:created with scheduledFireAt set. Mirror of email.attributes.scheduleId."
|
|
11089
|
+
},
|
|
11090
|
+
"languageCode": {
|
|
11091
|
+
"type": "string",
|
|
11092
|
+
"description": "BCP 47 locale of the original message (the locale key initially populated in `body`). Detected at the inbound gate, set by the writer on outbound."
|
|
11093
|
+
},
|
|
11094
|
+
"shortCode": {
|
|
11095
|
+
"type": "string",
|
|
11096
|
+
"description": "Unique short identifier (provider/lookup correlation)."
|
|
11045
11097
|
},
|
|
11046
11098
|
"timestamps": {
|
|
11047
11099
|
"title": "ResourceTimestampsSchema",
|
|
@@ -11062,45 +11114,117 @@
|
|
|
11062
11114
|
"relationships": {
|
|
11063
11115
|
"title": "ChatRelationshipsSchema",
|
|
11064
11116
|
"type": "object",
|
|
11117
|
+
"description": "Relationship slots for a chat row. All to-one. Direction +\nattributes.fromType / toType tell you which side of the\nconversation each principal is on - we don't duplicate that\ninto directional relationship names. For boe-mediated flows\nat most two of {user, candidate, talent} are populated per\nrow: the external party (candidate or talent) and, on outbound,\nthe boe user that signed the message.",
|
|
11065
11118
|
"properties": {
|
|
11066
|
-
"
|
|
11067
|
-
"title": "
|
|
11119
|
+
"conversation": {
|
|
11120
|
+
"title": "ChatRelationshipsConversationSchema",
|
|
11121
|
+
"description": "Thread the chat row belongs to. SMS replies on the same boe\nnumber share a conversation; the workflow engine parks runs\non the conversation's meta and reads parkedRunContext to\nresume on inbound. The conversation id is denormalised onto\nthe chat row's internal `conversationId` attribute (indexed\nby ConversationIdIndex) for cheap per-thread history queries\n- API consumers should read it from this relationship, not\nfrom attributes.",
|
|
11068
11122
|
"type": "object",
|
|
11069
11123
|
"properties": {
|
|
11070
11124
|
"data": {
|
|
11071
|
-
"
|
|
11072
|
-
"
|
|
11073
|
-
|
|
11074
|
-
"type":
|
|
11075
|
-
|
|
11076
|
-
|
|
11077
|
-
|
|
11078
|
-
|
|
11079
|
-
"id": {
|
|
11080
|
-
"type": "string"
|
|
11081
|
-
}
|
|
11125
|
+
"title": "ChatRelationshipsConversationDataSchema",
|
|
11126
|
+
"type": "object",
|
|
11127
|
+
"properties": {
|
|
11128
|
+
"type": {
|
|
11129
|
+
"type": "string"
|
|
11130
|
+
},
|
|
11131
|
+
"id": {
|
|
11132
|
+
"type": "string"
|
|
11082
11133
|
}
|
|
11083
11134
|
}
|
|
11084
11135
|
}
|
|
11085
11136
|
}
|
|
11086
11137
|
},
|
|
11087
|
-
"
|
|
11088
|
-
"title": "
|
|
11089
|
-
"description": "
|
|
11138
|
+
"candidate": {
|
|
11139
|
+
"title": "ChatRelationshipsCandidateSchema",
|
|
11140
|
+
"description": "External candidate principal. Set when fromType=candidate (inbound) or toType=candidate (outbound).",
|
|
11090
11141
|
"type": "object",
|
|
11091
11142
|
"properties": {
|
|
11092
11143
|
"data": {
|
|
11093
|
-
"
|
|
11094
|
-
"
|
|
11095
|
-
|
|
11096
|
-
"type":
|
|
11097
|
-
|
|
11098
|
-
|
|
11099
|
-
|
|
11100
|
-
|
|
11101
|
-
|
|
11102
|
-
|
|
11103
|
-
|
|
11144
|
+
"title": "ChatRelationshipsCandidateDataSchema",
|
|
11145
|
+
"type": "object",
|
|
11146
|
+
"properties": {
|
|
11147
|
+
"type": {
|
|
11148
|
+
"type": "string"
|
|
11149
|
+
},
|
|
11150
|
+
"id": {
|
|
11151
|
+
"type": "string"
|
|
11152
|
+
}
|
|
11153
|
+
}
|
|
11154
|
+
}
|
|
11155
|
+
}
|
|
11156
|
+
},
|
|
11157
|
+
"talent": {
|
|
11158
|
+
"title": "ChatRelationshipsTalentSchema",
|
|
11159
|
+
"description": "External talent principal. Set when fromType=talent (inbound) or toType=talent (outbound).",
|
|
11160
|
+
"type": "object",
|
|
11161
|
+
"properties": {
|
|
11162
|
+
"data": {
|
|
11163
|
+
"title": "ChatRelationshipsTalentDataSchema",
|
|
11164
|
+
"type": "object",
|
|
11165
|
+
"properties": {
|
|
11166
|
+
"type": {
|
|
11167
|
+
"type": "string"
|
|
11168
|
+
},
|
|
11169
|
+
"id": {
|
|
11170
|
+
"type": "string"
|
|
11171
|
+
}
|
|
11172
|
+
}
|
|
11173
|
+
}
|
|
11174
|
+
}
|
|
11175
|
+
},
|
|
11176
|
+
"user": {
|
|
11177
|
+
"title": "ChatRelationshipsUserSchema",
|
|
11178
|
+
"description": "Internal human user (employee). Reserved for user-to-user webapp/Teams chat counterparties. Today this is typically null - boe-signed outbound rows put the boe AI in `boeUser`, not here.",
|
|
11179
|
+
"type": "object",
|
|
11180
|
+
"properties": {
|
|
11181
|
+
"data": {
|
|
11182
|
+
"title": "ChatRelationshipsUserDataSchema",
|
|
11183
|
+
"type": "object",
|
|
11184
|
+
"properties": {
|
|
11185
|
+
"type": {
|
|
11186
|
+
"type": "string"
|
|
11187
|
+
},
|
|
11188
|
+
"id": {
|
|
11189
|
+
"type": "string"
|
|
11190
|
+
}
|
|
11191
|
+
}
|
|
11192
|
+
}
|
|
11193
|
+
}
|
|
11194
|
+
},
|
|
11195
|
+
"boeUser": {
|
|
11196
|
+
"title": "ChatRelationshipsBoeUserSchema",
|
|
11197
|
+
"description": "Boe AI agent involved in this message. Mirror of tenant.relationships.boeUser - always populated when boe is on either side of the conversation (today: every row). Splitting this from the generic `user` slot keeps the semantics clean: `user` is for human counterparties, `boeUser` is the AI agent.",
|
|
11198
|
+
"type": "object",
|
|
11199
|
+
"properties": {
|
|
11200
|
+
"data": {
|
|
11201
|
+
"title": "ChatRelationshipsBoeUserDataSchema",
|
|
11202
|
+
"type": "object",
|
|
11203
|
+
"properties": {
|
|
11204
|
+
"type": {
|
|
11205
|
+
"type": "string"
|
|
11206
|
+
},
|
|
11207
|
+
"id": {
|
|
11208
|
+
"type": "string"
|
|
11209
|
+
}
|
|
11210
|
+
}
|
|
11211
|
+
}
|
|
11212
|
+
}
|
|
11213
|
+
},
|
|
11214
|
+
"schedule": {
|
|
11215
|
+
"title": "ChatRelationshipsScheduleSchema",
|
|
11216
|
+
"description": "Schedule row armed for this chat's outbound dispatch. Set when scheduledFireAt is populated; null on inbound rows or on outbound rows that bypass the review window. Operators reschedule/cancel via PATCH/DELETE on the chat resource - the eventbus reflects those changes onto the Schedule row, never the other way around.",
|
|
11217
|
+
"type": "object",
|
|
11218
|
+
"properties": {
|
|
11219
|
+
"data": {
|
|
11220
|
+
"title": "ChatRelationshipsScheduleDataSchema",
|
|
11221
|
+
"type": "object",
|
|
11222
|
+
"properties": {
|
|
11223
|
+
"type": {
|
|
11224
|
+
"type": "string"
|
|
11225
|
+
},
|
|
11226
|
+
"id": {
|
|
11227
|
+
"type": "string"
|
|
11104
11228
|
}
|
|
11105
11229
|
}
|
|
11106
11230
|
}
|
|
@@ -11173,6 +11297,7 @@
|
|
|
11173
11297
|
"attributes": {
|
|
11174
11298
|
"title": "ChatAttributesSchema",
|
|
11175
11299
|
"type": "object",
|
|
11300
|
+
"description": "Cross-protocol chat message attributes. One row per direction:\ninbound and outbound replies on the same conversation are separate\nrows, joined by relationships.conversation. `protocol` is the wire\nformat (sms/whatsapp/teams/googlechat/webapp). `fromIdentifier`\nand `toIdentifier` are protocol-native handles (E.164 phone for\nSMS/WhatsApp, Teams AAD object id, Google Chat user id, etc.) so\nthe row carries the literal sender/receiver without joins. The\nresolved principals (candidate / talent / user) live in\nrelationships - direction tells you which side of the\nconversation each principal is on (inbound: from-side is the\nexternal party; outbound: to-side is the external party, plus an\noptional user relationship for the boe agent that signed it).\n`body` is a multilingual dict {locale: text} mirroring the email\npattern - the chat AI step function translates user-facing\ncontent into the tenant's active locales for admin display.",
|
|
11176
11301
|
"properties": {
|
|
11177
11302
|
"direction": {
|
|
11178
11303
|
"type": "string",
|
|
@@ -11180,41 +11305,92 @@
|
|
|
11180
11305
|
"inbound",
|
|
11181
11306
|
"outbound"
|
|
11182
11307
|
],
|
|
11183
|
-
"description": "Message direction"
|
|
11308
|
+
"description": "Message direction relative to boe (inbound from external, outbound to external)."
|
|
11184
11309
|
},
|
|
11185
|
-
"
|
|
11310
|
+
"protocol": {
|
|
11186
11311
|
"type": "string",
|
|
11187
|
-
"
|
|
11312
|
+
"enum": [
|
|
11313
|
+
"sms",
|
|
11314
|
+
"whatsapp",
|
|
11315
|
+
"teams",
|
|
11316
|
+
"googlechat",
|
|
11317
|
+
"webapp"
|
|
11318
|
+
],
|
|
11319
|
+
"description": "Wire protocol. Adapter Lambdas set this on write so downstream code can branch on rendering / status callback handling."
|
|
11188
11320
|
},
|
|
11189
|
-
"
|
|
11321
|
+
"fromIdentifier": {
|
|
11190
11322
|
"type": "string",
|
|
11191
|
-
"description": "
|
|
11323
|
+
"description": "Sender's protocol-native handle (E.164 phone for SMS/WhatsApp, AAD object id for Teams, etc.)."
|
|
11192
11324
|
},
|
|
11193
|
-
"
|
|
11325
|
+
"fromName": {
|
|
11194
11326
|
"type": "string",
|
|
11195
|
-
"description": "
|
|
11327
|
+
"description": "Display name of the sender at write time. Denormalised from the resolved principal."
|
|
11196
11328
|
},
|
|
11197
|
-
"
|
|
11329
|
+
"fromType": {
|
|
11198
11330
|
"type": "string",
|
|
11199
|
-
"
|
|
11331
|
+
"enum": [
|
|
11332
|
+
"user",
|
|
11333
|
+
"candidate",
|
|
11334
|
+
"talent",
|
|
11335
|
+
"guest"
|
|
11336
|
+
],
|
|
11337
|
+
"description": "Principal type of the sender. Maps the platform's principal tables. `guest` for unknown senders (typically rejected by the inbound gate)."
|
|
11200
11338
|
},
|
|
11201
|
-
"
|
|
11339
|
+
"toIdentifier": {
|
|
11202
11340
|
"type": "string",
|
|
11203
|
-
"description": "
|
|
11341
|
+
"description": "Recipient's protocol-native handle."
|
|
11204
11342
|
},
|
|
11205
|
-
"
|
|
11343
|
+
"toName": {
|
|
11206
11344
|
"type": "string",
|
|
11207
|
-
"description": "
|
|
11345
|
+
"description": "Display name of the recipient at write time."
|
|
11346
|
+
},
|
|
11347
|
+
"toType": {
|
|
11348
|
+
"type": "string",
|
|
11349
|
+
"enum": [
|
|
11350
|
+
"user",
|
|
11351
|
+
"candidate",
|
|
11352
|
+
"talent",
|
|
11353
|
+
"guest"
|
|
11354
|
+
],
|
|
11355
|
+
"description": "Principal type of the recipient."
|
|
11356
|
+
},
|
|
11357
|
+
"body": {
|
|
11358
|
+
"type": "object",
|
|
11359
|
+
"description": "Multilingual message body keyed by BCP 47 locale (e.g. {`en-US`: `Hi`, `pl-PL`: `Cześć`}). Inbound writers stamp a single locale; the chat AI step function fills the rest.",
|
|
11360
|
+
"additionalProperties": {
|
|
11361
|
+
"type": "string"
|
|
11362
|
+
}
|
|
11208
11363
|
},
|
|
11209
11364
|
"status": {
|
|
11210
11365
|
"type": "string",
|
|
11211
11366
|
"enum": [
|
|
11212
|
-
"
|
|
11213
|
-
"
|
|
11214
|
-
"
|
|
11215
|
-
"
|
|
11367
|
+
"received",
|
|
11368
|
+
"draft",
|
|
11369
|
+
"scheduled",
|
|
11370
|
+
"cancelled",
|
|
11371
|
+
"queued",
|
|
11372
|
+
"sent",
|
|
11373
|
+
"delivered",
|
|
11374
|
+
"failed",
|
|
11375
|
+
"archived"
|
|
11216
11376
|
],
|
|
11217
|
-
"description": "
|
|
11377
|
+
"description": "Lifecycle state. Inbound rows go straight to `received`. Outbound rows that go through an operator review window or explicit scheduling start at `draft` (editable) or `scheduled` (Schedule armed for fireAt); on Schedule fire they progress queued -> sent -> delivered (or failed). `cancelled` is the terminal state when an operator hard-killed a draft / scheduled row before fire. `archived` is a terminal soft-delete for both directions."
|
|
11378
|
+
},
|
|
11379
|
+
"scheduledFireAt": {
|
|
11380
|
+
"type": "string",
|
|
11381
|
+
"description": "ISO 8601 timestamp at which the Schedule row armed for this chat will fire. Set on direction=outbound rows that go through a review window or explicit scheduling. Operators can PATCH this to reschedule; the eventbus PATCHes the underlying Schedule row in lockstep. Mirror of email.attributes.scheduledFireAt."
|
|
11382
|
+
},
|
|
11383
|
+
"scheduleId": {
|
|
11384
|
+
"type": "string",
|
|
11385
|
+
"description": "FK denormalisation of relationships.schedule for cheap read paths. Populated by the chat eventbus after it arms a Schedule row in response to chat:created with scheduledFireAt set. Mirror of email.attributes.scheduleId."
|
|
11386
|
+
},
|
|
11387
|
+
"languageCode": {
|
|
11388
|
+
"type": "string",
|
|
11389
|
+
"description": "BCP 47 locale of the original message (the locale key initially populated in `body`). Detected at the inbound gate, set by the writer on outbound."
|
|
11390
|
+
},
|
|
11391
|
+
"shortCode": {
|
|
11392
|
+
"type": "string",
|
|
11393
|
+
"description": "Unique short identifier (provider/lookup correlation)."
|
|
11218
11394
|
},
|
|
11219
11395
|
"timestamps": {
|
|
11220
11396
|
"title": "ResourceTimestampsSchema",
|
|
@@ -11993,6 +12169,7 @@
|
|
|
11993
12169
|
"type": "string",
|
|
11994
12170
|
"enum": [
|
|
11995
12171
|
"emails",
|
|
12172
|
+
"chats",
|
|
11996
12173
|
"candidates",
|
|
11997
12174
|
"conversations",
|
|
11998
12175
|
"jobs",
|
|
@@ -12126,6 +12303,7 @@
|
|
|
12126
12303
|
"type": "string",
|
|
12127
12304
|
"enum": [
|
|
12128
12305
|
"emails",
|
|
12306
|
+
"chats",
|
|
12129
12307
|
"candidates",
|
|
12130
12308
|
"conversations",
|
|
12131
12309
|
"jobs",
|