@smartytalent/openai-tools 0.9.9 → 0.9.11
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 +514 -14
- package/package.json +1 -1
package/dist/tools.json
CHANGED
|
@@ -7839,6 +7839,10 @@
|
|
|
7839
7839
|
"type": "boolean",
|
|
7840
7840
|
"description": "Return only emails the system (broker / classifier) flagged as spam. Used by the Spam folder's `isSystemSpam=true` leg - the other leg comes from `/v1/states?folder=spam`. Backed by a filter-expression scan across shards for v1; promote to a sparse `SystemSpamIndex` if load warrants. Mutually exclusive with the other index-backed filters at the pagination layer."
|
|
7841
7841
|
},
|
|
7842
|
+
"filterLabelId": {
|
|
7843
|
+
"type": "string",
|
|
7844
|
+
"description": "Return only emails carrying this label. Server-side filter on the denormalised `labelIds` of relationships.labels. Mutually exclusive with the other filters - one filter at a time. Results are sorted by created desc."
|
|
7845
|
+
},
|
|
7842
7846
|
"sort": {
|
|
7843
7847
|
"type": "string",
|
|
7844
7848
|
"description": "Order results by a time field. Leading `-` means descending\n(newest-first). Accepted values:\n `-created` newest-first by creation time (CreatedIndex)\n `created` oldest-first by creation time\n `-modified` most-recently-modified first (ModifiedIndex)\n `modified` least-recently-modified first\nTakes effect only when no equality filter (filterStatus,\nfilterConversationId, filterDirection) dictates a different\nindex; equality filters win. Compatible with date-range filters\n(filterCreatedFrom/To, filterModifiedFrom/To) which already use\nthe same indexes; sort just picks the direction.",
|
|
@@ -8005,7 +8009,7 @@
|
|
|
8005
8009
|
},
|
|
8006
8010
|
"type": {
|
|
8007
8011
|
"type": "string",
|
|
8008
|
-
"description": "Resource type this attachment belongs to. User-uploaded attachments use `files`; system-generated attachments use the owning resource type: `jobs`, `personas`, `talents`, `candidates`, `reports`, `ads`."
|
|
8012
|
+
"description": "Resource type this attachment belongs to. User-uploaded attachments use `files`; system-generated attachments use the owning resource type: `jobs`, `personas`, `talents`, `candidates`, `reports`, `ads`, `briefs`. Calendar invites use `emails` - the mail itself owns the .ics."
|
|
8009
8013
|
},
|
|
8010
8014
|
"fileId": {
|
|
8011
8015
|
"type": "string",
|
|
@@ -8065,7 +8069,8 @@
|
|
|
8065
8069
|
},
|
|
8066
8070
|
"meta": {
|
|
8067
8071
|
"type": "object",
|
|
8068
|
-
"additionalProperties": true
|
|
8072
|
+
"additionalProperties": true,
|
|
8073
|
+
"description": "Not populated on the wire - the email meta rides at the resource level (data.meta, see EmailResourceSchema.meta). Kept for client compatibility only."
|
|
8069
8074
|
},
|
|
8070
8075
|
"timestamps": {
|
|
8071
8076
|
"title": "ResourceTimestampsSchema",
|
|
@@ -8504,7 +8509,7 @@
|
|
|
8504
8509
|
},
|
|
8505
8510
|
"type": {
|
|
8506
8511
|
"type": "string",
|
|
8507
|
-
"description": "Resource type this attachment belongs to. User-uploaded attachments use `files`; system-generated attachments use the owning resource type: `jobs`, `personas`, `talents`, `candidates`, `reports`, `ads`."
|
|
8512
|
+
"description": "Resource type this attachment belongs to. User-uploaded attachments use `files`; system-generated attachments use the owning resource type: `jobs`, `personas`, `talents`, `candidates`, `reports`, `ads`, `briefs`. Calendar invites use `emails` - the mail itself owns the .ics."
|
|
8508
8513
|
},
|
|
8509
8514
|
"fileId": {
|
|
8510
8515
|
"type": "string",
|
|
@@ -8564,7 +8569,8 @@
|
|
|
8564
8569
|
},
|
|
8565
8570
|
"meta": {
|
|
8566
8571
|
"type": "object",
|
|
8567
|
-
"additionalProperties": true
|
|
8572
|
+
"additionalProperties": true,
|
|
8573
|
+
"description": "Not populated on the wire - the email meta rides at the resource level (data.meta, see EmailResourceSchema.meta). Kept for client compatibility only."
|
|
8568
8574
|
},
|
|
8569
8575
|
"timestamps": {
|
|
8570
8576
|
"title": "ResourceTimestampsSchema",
|
|
@@ -12182,7 +12188,7 @@
|
|
|
12182
12188
|
},
|
|
12183
12189
|
"meta": {
|
|
12184
12190
|
"type": "object",
|
|
12185
|
-
"description": "
|
|
12191
|
+
"description": "Not populated on the wire - the submission meta rides at the resource level (data.meta, see SubmissionResourceSchema.meta). Kept for client compatibility only."
|
|
12186
12192
|
},
|
|
12187
12193
|
"timestamps": {
|
|
12188
12194
|
"title": "ResourceTimestampsSchema",
|
|
@@ -12674,7 +12680,7 @@
|
|
|
12674
12680
|
},
|
|
12675
12681
|
"meta": {
|
|
12676
12682
|
"type": "object",
|
|
12677
|
-
"description": "
|
|
12683
|
+
"description": "Not populated on the wire - the submission meta rides at the resource level (data.meta, see SubmissionResourceSchema.meta). Kept for client compatibility only."
|
|
12678
12684
|
},
|
|
12679
12685
|
"timestamps": {
|
|
12680
12686
|
"title": "ResourceTimestampsSchema",
|
|
@@ -16869,6 +16875,490 @@
|
|
|
16869
16875
|
}
|
|
16870
16876
|
}
|
|
16871
16877
|
},
|
|
16878
|
+
{
|
|
16879
|
+
"type": "function",
|
|
16880
|
+
"function": {
|
|
16881
|
+
"name": "list_tasks",
|
|
16882
|
+
"description": "List Tasks",
|
|
16883
|
+
"parameters": {
|
|
16884
|
+
"type": "object",
|
|
16885
|
+
"properties": {
|
|
16886
|
+
"filterStatus": {
|
|
16887
|
+
"type": "string",
|
|
16888
|
+
"description": "Returns tasks with the given status.",
|
|
16889
|
+
"enum": [
|
|
16890
|
+
"active",
|
|
16891
|
+
"sent",
|
|
16892
|
+
"scheduled",
|
|
16893
|
+
"pending",
|
|
16894
|
+
"draft",
|
|
16895
|
+
"archived",
|
|
16896
|
+
"failed",
|
|
16897
|
+
"done"
|
|
16898
|
+
]
|
|
16899
|
+
},
|
|
16900
|
+
"filterCreatedFrom": {
|
|
16901
|
+
"type": "string",
|
|
16902
|
+
"description": "Filters results to include only those created from the specified date and time. The value must be in ISO 8601 format."
|
|
16903
|
+
},
|
|
16904
|
+
"filterCreatedTo": {
|
|
16905
|
+
"type": "string",
|
|
16906
|
+
"description": "Filters results to include only those created up to the specified date and time. The value must be in ISO 8601 format."
|
|
16907
|
+
},
|
|
16908
|
+
"filterModifiedFrom": {
|
|
16909
|
+
"type": "string",
|
|
16910
|
+
"description": "Filters results to include only those modified from the specified date and time. The value must be in ISO 8601 format."
|
|
16911
|
+
},
|
|
16912
|
+
"filterModifiedTo": {
|
|
16913
|
+
"type": "string",
|
|
16914
|
+
"description": "Filters results to include only those modified up to the specified date and time. The value must be in ISO 8601 format."
|
|
16915
|
+
},
|
|
16916
|
+
"pageSize": {
|
|
16917
|
+
"type": "integer",
|
|
16918
|
+
"description": "Specifies the number of items to retrieve per page. The maximum value is 100."
|
|
16919
|
+
},
|
|
16920
|
+
"pageNumber": {
|
|
16921
|
+
"type": "integer",
|
|
16922
|
+
"description": "Specifies the page number to retrieve. Used for traditional pagination."
|
|
16923
|
+
},
|
|
16924
|
+
"pageAfter": {
|
|
16925
|
+
"type": "string",
|
|
16926
|
+
"description": "Opaque base64-encoded cursor returned by a previous list response, used for forward cursor-based pagination. Pass the value verbatim; do not decode or mutate it."
|
|
16927
|
+
},
|
|
16928
|
+
"pageBefore": {
|
|
16929
|
+
"type": "string",
|
|
16930
|
+
"description": "Returns the data encoded in Base64 format, used for cursor-based pagination"
|
|
16931
|
+
}
|
|
16932
|
+
}
|
|
16933
|
+
}
|
|
16934
|
+
}
|
|
16935
|
+
},
|
|
16936
|
+
{
|
|
16937
|
+
"type": "function",
|
|
16938
|
+
"function": {
|
|
16939
|
+
"name": "create_task",
|
|
16940
|
+
"description": "Create Task",
|
|
16941
|
+
"parameters": {
|
|
16942
|
+
"title": "CreateTaskRequestBody",
|
|
16943
|
+
"type": "object",
|
|
16944
|
+
"required": [
|
|
16945
|
+
"data"
|
|
16946
|
+
],
|
|
16947
|
+
"properties": {
|
|
16948
|
+
"data": {
|
|
16949
|
+
"title": "CreateTaskRequestBodyData",
|
|
16950
|
+
"type": "object",
|
|
16951
|
+
"required": [
|
|
16952
|
+
"type",
|
|
16953
|
+
"attributes"
|
|
16954
|
+
],
|
|
16955
|
+
"properties": {
|
|
16956
|
+
"type": {
|
|
16957
|
+
"type": "string",
|
|
16958
|
+
"enum": [
|
|
16959
|
+
"tasks"
|
|
16960
|
+
]
|
|
16961
|
+
},
|
|
16962
|
+
"attributes": {
|
|
16963
|
+
"title": "TaskAttributesSchema",
|
|
16964
|
+
"type": "object",
|
|
16965
|
+
"properties": {
|
|
16966
|
+
"route": {
|
|
16967
|
+
"type": "string",
|
|
16968
|
+
"maxLength": 64,
|
|
16969
|
+
"description": "Workflow routing key (`namespace:verb`). The operator e-mail lane has exactly three: `emails:reply`, `emails:compose`, `emails:send` - nothing else. Optional, normalised to lowercase and shape-validated at create, stamped on the row and IMMUTABLE afterwards - a PATCH carrying route is rejected with 400. Creating a task whose route matches emails:* requires role recruiter/recops/admin/owner (hiringmanager and user are denied); the same gate guards a PATCH of an emails:* row."
|
|
16970
|
+
},
|
|
16971
|
+
"kind": {
|
|
16972
|
+
"type": "string",
|
|
16973
|
+
"maxLength": 64,
|
|
16974
|
+
"description": "Free-form task kind label (e.g. email_reply). Not a filter: the list door has no filterKind/filterRoute, only filterStatus."
|
|
16975
|
+
},
|
|
16976
|
+
"content": {
|
|
16977
|
+
"type": "object",
|
|
16978
|
+
"additionalProperties": true,
|
|
16979
|
+
"description": "Multilingual task content keyed by language code"
|
|
16980
|
+
},
|
|
16981
|
+
"context": {
|
|
16982
|
+
"type": "object",
|
|
16983
|
+
"additionalProperties": true,
|
|
16984
|
+
"description": "Multilingual task context keyed by language code"
|
|
16985
|
+
},
|
|
16986
|
+
"status": {
|
|
16987
|
+
"type": "string",
|
|
16988
|
+
"enum": [
|
|
16989
|
+
"active",
|
|
16990
|
+
"sent",
|
|
16991
|
+
"scheduled",
|
|
16992
|
+
"pending",
|
|
16993
|
+
"draft",
|
|
16994
|
+
"archived",
|
|
16995
|
+
"failed",
|
|
16996
|
+
"done"
|
|
16997
|
+
],
|
|
16998
|
+
"description": "Row status, the same set as TaskStatus in the alpha layer. Defaults to active at create; on PATCH it is written only when provided (never forced). Operator-lane lifecycle: pending at create -> done (the workflow drafted the mail, the emails link carries it) or failed (compose produced nothing); done and failed are terminal and only task:complete writes them."
|
|
16999
|
+
},
|
|
17000
|
+
"languageCode": {
|
|
17001
|
+
"type": "string"
|
|
17002
|
+
},
|
|
17003
|
+
"ttl": {
|
|
17004
|
+
"type": "string",
|
|
17005
|
+
"description": "Time-to-live expiration timestamp. PATCH-writable, write-only: the row keeps it (DynamoDB TTL) but no response echoes it back."
|
|
17006
|
+
},
|
|
17007
|
+
"meta": {
|
|
17008
|
+
"type": "object",
|
|
17009
|
+
"additionalProperties": true,
|
|
17010
|
+
"description": "REQUEST side only: create merges these keys over the server-stamped `status`, PATCH writes them. Not populated on the wire - the task meta comes back at the resource level (data.meta, see TaskResourceSchema.meta), because Task.to_response emits it next to attributes/relationships. Kept here because this is where a request carries it."
|
|
17011
|
+
},
|
|
17012
|
+
"timestamps": {
|
|
17013
|
+
"title": "ResourceTimestampsSchema",
|
|
17014
|
+
"type": "object",
|
|
17015
|
+
"properties": {
|
|
17016
|
+
"created": {
|
|
17017
|
+
"type": "string",
|
|
17018
|
+
"format": "date-time"
|
|
17019
|
+
},
|
|
17020
|
+
"modified": {
|
|
17021
|
+
"type": "string",
|
|
17022
|
+
"format": "date-time"
|
|
17023
|
+
}
|
|
17024
|
+
}
|
|
17025
|
+
}
|
|
17026
|
+
}
|
|
17027
|
+
},
|
|
17028
|
+
"relationships": {
|
|
17029
|
+
"title": "TaskRelationshipsRequestSchema",
|
|
17030
|
+
"description": "Request shape: to-one links keyed plural (jobs/conversations/emails/talents/candidates). `author` is deliberately NOT here - it is stamped server-side from the authorizer and is immutable. On PATCH each key merges independently; a {data: null} link is a no-op (unlinking is not a PATCH door). Operator lane: an emails:reply task names the thread through `conversations` (and optionally the answered mail through `emails`); an emails:compose task names the addressee through `talents` or `candidates` (a candidate resolves to its talent's e-mail) or, failing both, through meta.recipientEmail; an emails:send task names the held draft through `emails`.",
|
|
17031
|
+
"type": "object",
|
|
17032
|
+
"properties": {
|
|
17033
|
+
"jobs": {
|
|
17034
|
+
"title": "TaskRelationshipsRequestJobsSchema",
|
|
17035
|
+
"type": "object",
|
|
17036
|
+
"properties": {
|
|
17037
|
+
"data": {
|
|
17038
|
+
"title": "TaskRelationshipsRequestJobsDataSchema",
|
|
17039
|
+
"type": "object",
|
|
17040
|
+
"properties": {
|
|
17041
|
+
"type": {
|
|
17042
|
+
"type": "string"
|
|
17043
|
+
},
|
|
17044
|
+
"id": {
|
|
17045
|
+
"type": "string"
|
|
17046
|
+
}
|
|
17047
|
+
}
|
|
17048
|
+
}
|
|
17049
|
+
}
|
|
17050
|
+
},
|
|
17051
|
+
"conversations": {
|
|
17052
|
+
"title": "TaskRelationshipsRequestConversationsSchema",
|
|
17053
|
+
"type": "object",
|
|
17054
|
+
"properties": {
|
|
17055
|
+
"data": {
|
|
17056
|
+
"title": "TaskRelationshipsRequestConversationsDataSchema",
|
|
17057
|
+
"type": "object",
|
|
17058
|
+
"properties": {
|
|
17059
|
+
"type": {
|
|
17060
|
+
"type": "string"
|
|
17061
|
+
},
|
|
17062
|
+
"id": {
|
|
17063
|
+
"type": "string"
|
|
17064
|
+
}
|
|
17065
|
+
}
|
|
17066
|
+
}
|
|
17067
|
+
}
|
|
17068
|
+
},
|
|
17069
|
+
"emails": {
|
|
17070
|
+
"title": "TaskRelationshipsRequestEmailsSchema",
|
|
17071
|
+
"type": "object",
|
|
17072
|
+
"properties": {
|
|
17073
|
+
"data": {
|
|
17074
|
+
"title": "TaskRelationshipsRequestEmailsDataSchema",
|
|
17075
|
+
"type": "object",
|
|
17076
|
+
"properties": {
|
|
17077
|
+
"type": {
|
|
17078
|
+
"type": "string"
|
|
17079
|
+
},
|
|
17080
|
+
"id": {
|
|
17081
|
+
"type": "string"
|
|
17082
|
+
}
|
|
17083
|
+
}
|
|
17084
|
+
}
|
|
17085
|
+
}
|
|
17086
|
+
},
|
|
17087
|
+
"talents": {
|
|
17088
|
+
"title": "TaskRelationshipsRequestTalentsSchema",
|
|
17089
|
+
"type": "object",
|
|
17090
|
+
"properties": {
|
|
17091
|
+
"data": {
|
|
17092
|
+
"title": "TaskRelationshipsRequestTalentsDataSchema",
|
|
17093
|
+
"type": "object",
|
|
17094
|
+
"properties": {
|
|
17095
|
+
"type": {
|
|
17096
|
+
"type": "string"
|
|
17097
|
+
},
|
|
17098
|
+
"id": {
|
|
17099
|
+
"type": "string"
|
|
17100
|
+
}
|
|
17101
|
+
}
|
|
17102
|
+
}
|
|
17103
|
+
}
|
|
17104
|
+
},
|
|
17105
|
+
"candidates": {
|
|
17106
|
+
"title": "TaskRelationshipsRequestCandidatesSchema",
|
|
17107
|
+
"type": "object",
|
|
17108
|
+
"properties": {
|
|
17109
|
+
"data": {
|
|
17110
|
+
"title": "TaskRelationshipsRequestCandidatesDataSchema",
|
|
17111
|
+
"type": "object",
|
|
17112
|
+
"properties": {
|
|
17113
|
+
"type": {
|
|
17114
|
+
"type": "string"
|
|
17115
|
+
},
|
|
17116
|
+
"id": {
|
|
17117
|
+
"type": "string"
|
|
17118
|
+
}
|
|
17119
|
+
}
|
|
17120
|
+
}
|
|
17121
|
+
}
|
|
17122
|
+
}
|
|
17123
|
+
}
|
|
17124
|
+
}
|
|
17125
|
+
}
|
|
17126
|
+
}
|
|
17127
|
+
}
|
|
17128
|
+
}
|
|
17129
|
+
}
|
|
17130
|
+
},
|
|
17131
|
+
{
|
|
17132
|
+
"type": "function",
|
|
17133
|
+
"function": {
|
|
17134
|
+
"name": "tasks_options",
|
|
17135
|
+
"description": "Tasks Options",
|
|
17136
|
+
"parameters": {
|
|
17137
|
+
"type": "object",
|
|
17138
|
+
"properties": {}
|
|
17139
|
+
}
|
|
17140
|
+
}
|
|
17141
|
+
},
|
|
17142
|
+
{
|
|
17143
|
+
"type": "function",
|
|
17144
|
+
"function": {
|
|
17145
|
+
"name": "show_task",
|
|
17146
|
+
"description": "Show Task",
|
|
17147
|
+
"parameters": {
|
|
17148
|
+
"type": "object",
|
|
17149
|
+
"properties": {}
|
|
17150
|
+
}
|
|
17151
|
+
}
|
|
17152
|
+
},
|
|
17153
|
+
{
|
|
17154
|
+
"type": "function",
|
|
17155
|
+
"function": {
|
|
17156
|
+
"name": "update_task",
|
|
17157
|
+
"description": "Update Task",
|
|
17158
|
+
"parameters": {
|
|
17159
|
+
"title": "UpdateTaskRequestBody",
|
|
17160
|
+
"type": "object",
|
|
17161
|
+
"required": [
|
|
17162
|
+
"data"
|
|
17163
|
+
],
|
|
17164
|
+
"properties": {
|
|
17165
|
+
"data": {
|
|
17166
|
+
"title": "UpdateTaskRequestBodyData",
|
|
17167
|
+
"type": "object",
|
|
17168
|
+
"required": [
|
|
17169
|
+
"type",
|
|
17170
|
+
"id"
|
|
17171
|
+
],
|
|
17172
|
+
"properties": {
|
|
17173
|
+
"type": {
|
|
17174
|
+
"type": "string",
|
|
17175
|
+
"enum": [
|
|
17176
|
+
"tasks"
|
|
17177
|
+
]
|
|
17178
|
+
},
|
|
17179
|
+
"id": {
|
|
17180
|
+
"type": "string"
|
|
17181
|
+
},
|
|
17182
|
+
"attributes": {
|
|
17183
|
+
"title": "TaskAttributesSchema",
|
|
17184
|
+
"type": "object",
|
|
17185
|
+
"properties": {
|
|
17186
|
+
"route": {
|
|
17187
|
+
"type": "string",
|
|
17188
|
+
"maxLength": 64,
|
|
17189
|
+
"description": "Workflow routing key (`namespace:verb`). The operator e-mail lane has exactly three: `emails:reply`, `emails:compose`, `emails:send` - nothing else. Optional, normalised to lowercase and shape-validated at create, stamped on the row and IMMUTABLE afterwards - a PATCH carrying route is rejected with 400. Creating a task whose route matches emails:* requires role recruiter/recops/admin/owner (hiringmanager and user are denied); the same gate guards a PATCH of an emails:* row."
|
|
17190
|
+
},
|
|
17191
|
+
"kind": {
|
|
17192
|
+
"type": "string",
|
|
17193
|
+
"maxLength": 64,
|
|
17194
|
+
"description": "Free-form task kind label (e.g. email_reply). Not a filter: the list door has no filterKind/filterRoute, only filterStatus."
|
|
17195
|
+
},
|
|
17196
|
+
"content": {
|
|
17197
|
+
"type": "object",
|
|
17198
|
+
"additionalProperties": true,
|
|
17199
|
+
"description": "Multilingual task content keyed by language code"
|
|
17200
|
+
},
|
|
17201
|
+
"context": {
|
|
17202
|
+
"type": "object",
|
|
17203
|
+
"additionalProperties": true,
|
|
17204
|
+
"description": "Multilingual task context keyed by language code"
|
|
17205
|
+
},
|
|
17206
|
+
"status": {
|
|
17207
|
+
"type": "string",
|
|
17208
|
+
"enum": [
|
|
17209
|
+
"active",
|
|
17210
|
+
"sent",
|
|
17211
|
+
"scheduled",
|
|
17212
|
+
"pending",
|
|
17213
|
+
"draft",
|
|
17214
|
+
"archived",
|
|
17215
|
+
"failed",
|
|
17216
|
+
"done"
|
|
17217
|
+
],
|
|
17218
|
+
"description": "Row status, the same set as TaskStatus in the alpha layer. Defaults to active at create; on PATCH it is written only when provided (never forced). Operator-lane lifecycle: pending at create -> done (the workflow drafted the mail, the emails link carries it) or failed (compose produced nothing); done and failed are terminal and only task:complete writes them."
|
|
17219
|
+
},
|
|
17220
|
+
"languageCode": {
|
|
17221
|
+
"type": "string"
|
|
17222
|
+
},
|
|
17223
|
+
"ttl": {
|
|
17224
|
+
"type": "string",
|
|
17225
|
+
"description": "Time-to-live expiration timestamp. PATCH-writable, write-only: the row keeps it (DynamoDB TTL) but no response echoes it back."
|
|
17226
|
+
},
|
|
17227
|
+
"meta": {
|
|
17228
|
+
"type": "object",
|
|
17229
|
+
"additionalProperties": true,
|
|
17230
|
+
"description": "REQUEST side only: create merges these keys over the server-stamped `status`, PATCH writes them. Not populated on the wire - the task meta comes back at the resource level (data.meta, see TaskResourceSchema.meta), because Task.to_response emits it next to attributes/relationships. Kept here because this is where a request carries it."
|
|
17231
|
+
},
|
|
17232
|
+
"timestamps": {
|
|
17233
|
+
"title": "ResourceTimestampsSchema",
|
|
17234
|
+
"type": "object",
|
|
17235
|
+
"properties": {
|
|
17236
|
+
"created": {
|
|
17237
|
+
"type": "string",
|
|
17238
|
+
"format": "date-time"
|
|
17239
|
+
},
|
|
17240
|
+
"modified": {
|
|
17241
|
+
"type": "string",
|
|
17242
|
+
"format": "date-time"
|
|
17243
|
+
}
|
|
17244
|
+
}
|
|
17245
|
+
}
|
|
17246
|
+
}
|
|
17247
|
+
},
|
|
17248
|
+
"relationships": {
|
|
17249
|
+
"title": "TaskRelationshipsRequestSchema",
|
|
17250
|
+
"description": "Request shape: to-one links keyed plural (jobs/conversations/emails/talents/candidates). `author` is deliberately NOT here - it is stamped server-side from the authorizer and is immutable. On PATCH each key merges independently; a {data: null} link is a no-op (unlinking is not a PATCH door). Operator lane: an emails:reply task names the thread through `conversations` (and optionally the answered mail through `emails`); an emails:compose task names the addressee through `talents` or `candidates` (a candidate resolves to its talent's e-mail) or, failing both, through meta.recipientEmail; an emails:send task names the held draft through `emails`.",
|
|
17251
|
+
"type": "object",
|
|
17252
|
+
"properties": {
|
|
17253
|
+
"jobs": {
|
|
17254
|
+
"title": "TaskRelationshipsRequestJobsSchema",
|
|
17255
|
+
"type": "object",
|
|
17256
|
+
"properties": {
|
|
17257
|
+
"data": {
|
|
17258
|
+
"title": "TaskRelationshipsRequestJobsDataSchema",
|
|
17259
|
+
"type": "object",
|
|
17260
|
+
"properties": {
|
|
17261
|
+
"type": {
|
|
17262
|
+
"type": "string"
|
|
17263
|
+
},
|
|
17264
|
+
"id": {
|
|
17265
|
+
"type": "string"
|
|
17266
|
+
}
|
|
17267
|
+
}
|
|
17268
|
+
}
|
|
17269
|
+
}
|
|
17270
|
+
},
|
|
17271
|
+
"conversations": {
|
|
17272
|
+
"title": "TaskRelationshipsRequestConversationsSchema",
|
|
17273
|
+
"type": "object",
|
|
17274
|
+
"properties": {
|
|
17275
|
+
"data": {
|
|
17276
|
+
"title": "TaskRelationshipsRequestConversationsDataSchema",
|
|
17277
|
+
"type": "object",
|
|
17278
|
+
"properties": {
|
|
17279
|
+
"type": {
|
|
17280
|
+
"type": "string"
|
|
17281
|
+
},
|
|
17282
|
+
"id": {
|
|
17283
|
+
"type": "string"
|
|
17284
|
+
}
|
|
17285
|
+
}
|
|
17286
|
+
}
|
|
17287
|
+
}
|
|
17288
|
+
},
|
|
17289
|
+
"emails": {
|
|
17290
|
+
"title": "TaskRelationshipsRequestEmailsSchema",
|
|
17291
|
+
"type": "object",
|
|
17292
|
+
"properties": {
|
|
17293
|
+
"data": {
|
|
17294
|
+
"title": "TaskRelationshipsRequestEmailsDataSchema",
|
|
17295
|
+
"type": "object",
|
|
17296
|
+
"properties": {
|
|
17297
|
+
"type": {
|
|
17298
|
+
"type": "string"
|
|
17299
|
+
},
|
|
17300
|
+
"id": {
|
|
17301
|
+
"type": "string"
|
|
17302
|
+
}
|
|
17303
|
+
}
|
|
17304
|
+
}
|
|
17305
|
+
}
|
|
17306
|
+
},
|
|
17307
|
+
"talents": {
|
|
17308
|
+
"title": "TaskRelationshipsRequestTalentsSchema",
|
|
17309
|
+
"type": "object",
|
|
17310
|
+
"properties": {
|
|
17311
|
+
"data": {
|
|
17312
|
+
"title": "TaskRelationshipsRequestTalentsDataSchema",
|
|
17313
|
+
"type": "object",
|
|
17314
|
+
"properties": {
|
|
17315
|
+
"type": {
|
|
17316
|
+
"type": "string"
|
|
17317
|
+
},
|
|
17318
|
+
"id": {
|
|
17319
|
+
"type": "string"
|
|
17320
|
+
}
|
|
17321
|
+
}
|
|
17322
|
+
}
|
|
17323
|
+
}
|
|
17324
|
+
},
|
|
17325
|
+
"candidates": {
|
|
17326
|
+
"title": "TaskRelationshipsRequestCandidatesSchema",
|
|
17327
|
+
"type": "object",
|
|
17328
|
+
"properties": {
|
|
17329
|
+
"data": {
|
|
17330
|
+
"title": "TaskRelationshipsRequestCandidatesDataSchema",
|
|
17331
|
+
"type": "object",
|
|
17332
|
+
"properties": {
|
|
17333
|
+
"type": {
|
|
17334
|
+
"type": "string"
|
|
17335
|
+
},
|
|
17336
|
+
"id": {
|
|
17337
|
+
"type": "string"
|
|
17338
|
+
}
|
|
17339
|
+
}
|
|
17340
|
+
}
|
|
17341
|
+
}
|
|
17342
|
+
}
|
|
17343
|
+
}
|
|
17344
|
+
}
|
|
17345
|
+
}
|
|
17346
|
+
}
|
|
17347
|
+
}
|
|
17348
|
+
}
|
|
17349
|
+
}
|
|
17350
|
+
},
|
|
17351
|
+
{
|
|
17352
|
+
"type": "function",
|
|
17353
|
+
"function": {
|
|
17354
|
+
"name": "task_options",
|
|
17355
|
+
"description": "Task Options",
|
|
17356
|
+
"parameters": {
|
|
17357
|
+
"type": "object",
|
|
17358
|
+
"properties": {}
|
|
17359
|
+
}
|
|
17360
|
+
}
|
|
17361
|
+
},
|
|
16872
17362
|
{
|
|
16873
17363
|
"type": "function",
|
|
16874
17364
|
"function": {
|
|
@@ -17566,13 +18056,18 @@
|
|
|
17566
18056
|
"type": "string",
|
|
17567
18057
|
"enum": [
|
|
17568
18058
|
"tenant",
|
|
17569
|
-
"user"
|
|
18059
|
+
"user",
|
|
18060
|
+
"system"
|
|
17570
18061
|
],
|
|
17571
|
-
"description": "tenant = visible to every user in the tenant; user = visible only to the owner."
|
|
18062
|
+
"description": "tenant = visible to every user in the tenant; user = visible only to the owner; system = seeded and stamped by the platform; read-only (create/update/delete via the API are rejected)."
|
|
18063
|
+
},
|
|
18064
|
+
"systemKey": {
|
|
18065
|
+
"type": "string",
|
|
18066
|
+
"description": "Present only on scope=system rows: stable machine key naming the platform intent. `application` = inbound e-mail application, `talent_pool` = talent-pool opt-in (application without a job), `status` = status inquiry about an existing application, `withdrawal` = withdrawal / opt-out acknowledgement. Null on tenant/user labels. Filter or branch on this key, never on the localised name."
|
|
17572
18067
|
},
|
|
17573
18068
|
"ownerId": {
|
|
17574
18069
|
"type": "string",
|
|
17575
|
-
"description": "Set server-side from the caller. Tenant-scope: tenantId. User-scope: the authenticated user's full userId."
|
|
18070
|
+
"description": "Set server-side from the caller. Tenant-scope: tenantId. User-scope: the authenticated user's full userId. System-scope: the tenant base id, stamped by the seeder."
|
|
17576
18071
|
},
|
|
17577
18072
|
"resourceTypes": {
|
|
17578
18073
|
"type": "array",
|
|
@@ -17682,13 +18177,18 @@
|
|
|
17682
18177
|
"type": "string",
|
|
17683
18178
|
"enum": [
|
|
17684
18179
|
"tenant",
|
|
17685
|
-
"user"
|
|
18180
|
+
"user",
|
|
18181
|
+
"system"
|
|
17686
18182
|
],
|
|
17687
|
-
"description": "tenant = visible to every user in the tenant; user = visible only to the owner."
|
|
18183
|
+
"description": "tenant = visible to every user in the tenant; user = visible only to the owner; system = seeded and stamped by the platform; read-only (create/update/delete via the API are rejected)."
|
|
18184
|
+
},
|
|
18185
|
+
"systemKey": {
|
|
18186
|
+
"type": "string",
|
|
18187
|
+
"description": "Present only on scope=system rows: stable machine key naming the platform intent. `application` = inbound e-mail application, `talent_pool` = talent-pool opt-in (application without a job), `status` = status inquiry about an existing application, `withdrawal` = withdrawal / opt-out acknowledgement. Null on tenant/user labels. Filter or branch on this key, never on the localised name."
|
|
17688
18188
|
},
|
|
17689
18189
|
"ownerId": {
|
|
17690
18190
|
"type": "string",
|
|
17691
|
-
"description": "Set server-side from the caller. Tenant-scope: tenantId. User-scope: the authenticated user's full userId."
|
|
18191
|
+
"description": "Set server-side from the caller. Tenant-scope: tenantId. User-scope: the authenticated user's full userId. System-scope: the tenant base id, stamped by the seeder."
|
|
17692
18192
|
},
|
|
17693
18193
|
"resourceTypes": {
|
|
17694
18194
|
"type": "array",
|
|
@@ -20032,7 +20532,7 @@
|
|
|
20032
20532
|
"meta": {
|
|
20033
20533
|
"type": "object",
|
|
20034
20534
|
"additionalProperties": true,
|
|
20035
|
-
"description": "
|
|
20535
|
+
"description": "Not populated on the wire - the conversation meta rides at the resource level (data.meta, see ConversationResourceSchema.meta). Kept for client compatibility only."
|
|
20036
20536
|
},
|
|
20037
20537
|
"timestamps": {
|
|
20038
20538
|
"title": "ResourceTimestampsSchema",
|
|
@@ -20330,7 +20830,7 @@
|
|
|
20330
20830
|
"meta": {
|
|
20331
20831
|
"type": "object",
|
|
20332
20832
|
"additionalProperties": true,
|
|
20333
|
-
"description": "
|
|
20833
|
+
"description": "Not populated on the wire - the conversation meta rides at the resource level (data.meta, see ConversationResourceSchema.meta). Kept for client compatibility only."
|
|
20334
20834
|
},
|
|
20335
20835
|
"timestamps": {
|
|
20336
20836
|
"title": "ResourceTimestampsSchema",
|