@smartytalent/openai-tools 0.1.33-dev.3 → 0.1.33-dev.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/tools.json +674 -6
- package/package.json +1 -1
package/dist/tools.json
CHANGED
|
@@ -6709,6 +6709,10 @@
|
|
|
6709
6709
|
"type": "string",
|
|
6710
6710
|
"description": "Denormalised candidate id of the sender for inbound replies from a candidate in an active conversation. Frontend joins this against its local candidate cache to render initials and the candidate name. Null on outbound mail and on anonymous inbound that didn't match a candidate."
|
|
6711
6711
|
},
|
|
6712
|
+
"isSystemSpam": {
|
|
6713
|
+
"type": "boolean",
|
|
6714
|
+
"description": "System-level spam verdict on this email. Set by the broker (or a future classifier) at inbound time; never reflects a single user's opinion. Distinct from `status=suppressed`, which is SES reporting we cannot deliver on OUTBOUND. Frontend's Spam folder unions (my states where isSpam=true) with (emails where isSystemSpam=true)."
|
|
6715
|
+
},
|
|
6712
6716
|
"ttl": {
|
|
6713
6717
|
"type": "string"
|
|
6714
6718
|
},
|
|
@@ -7039,6 +7043,10 @@
|
|
|
7039
7043
|
"type": "string",
|
|
7040
7044
|
"description": "Denormalised candidate id of the sender for inbound replies from a candidate in an active conversation. Frontend joins this against its local candidate cache to render initials and the candidate name. Null on outbound mail and on anonymous inbound that didn't match a candidate."
|
|
7041
7045
|
},
|
|
7046
|
+
"isSystemSpam": {
|
|
7047
|
+
"type": "boolean",
|
|
7048
|
+
"description": "System-level spam verdict on this email. Set by the broker (or a future classifier) at inbound time; never reflects a single user's opinion. Distinct from `status=suppressed`, which is SES reporting we cannot deliver on OUTBOUND. Frontend's Spam folder unions (my states where isSpam=true) with (emails where isSystemSpam=true)."
|
|
7049
|
+
},
|
|
7042
7050
|
"ttl": {
|
|
7043
7051
|
"type": "string"
|
|
7044
7052
|
},
|
|
@@ -11702,6 +11710,566 @@
|
|
|
11702
11710
|
}
|
|
11703
11711
|
}
|
|
11704
11712
|
},
|
|
11713
|
+
{
|
|
11714
|
+
"type": "function",
|
|
11715
|
+
"function": {
|
|
11716
|
+
"name": "list_states",
|
|
11717
|
+
"description": "List States",
|
|
11718
|
+
"parameters": {
|
|
11719
|
+
"type": "object",
|
|
11720
|
+
"properties": {
|
|
11721
|
+
"filterResourceType": {
|
|
11722
|
+
"type": "string",
|
|
11723
|
+
"description": "Only return states for this resource type.",
|
|
11724
|
+
"enum": [
|
|
11725
|
+
"emails",
|
|
11726
|
+
"candidates",
|
|
11727
|
+
"conversations",
|
|
11728
|
+
"jobs",
|
|
11729
|
+
"talents",
|
|
11730
|
+
"personas",
|
|
11731
|
+
"reports",
|
|
11732
|
+
"tasks"
|
|
11733
|
+
]
|
|
11734
|
+
},
|
|
11735
|
+
"filterResourceIds": {
|
|
11736
|
+
"type": "string",
|
|
11737
|
+
"description": "Comma-separated list of resource ids to batch-fetch. Requires `filterResourceType`."
|
|
11738
|
+
},
|
|
11739
|
+
"folder": {
|
|
11740
|
+
"type": "string",
|
|
11741
|
+
"description": "Folder-style filter. Exactly one value at a time (tagged-union\nsemantics - the SDK enforces this at compile time via string\nliteral union). Orthogonal to filterResourceType and\nfilterResourceIds, which scope the query but don't pick a folder.\n `all` - default, no folder filter\n `unseen` - only unread rows (sparse UnseenIndex)\n `starred` - only starred rows (sparse StarredIndex)\n `spam` - only user-spam-marked rows (sparse SpamIndex)\n `label:<labelId>` - rows whose flags.labels contains the labelId"
|
|
11742
|
+
},
|
|
11743
|
+
"pageSize": {
|
|
11744
|
+
"type": "integer",
|
|
11745
|
+
"description": "Specifies the number of items to retrieve per page. The maximum value is 100."
|
|
11746
|
+
},
|
|
11747
|
+
"pageAfter": {
|
|
11748
|
+
"type": "string",
|
|
11749
|
+
"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."
|
|
11750
|
+
},
|
|
11751
|
+
"pageBefore": {
|
|
11752
|
+
"type": "string",
|
|
11753
|
+
"description": "Returns the data encoded in Base64 format, used for cursor-based pagination"
|
|
11754
|
+
}
|
|
11755
|
+
}
|
|
11756
|
+
}
|
|
11757
|
+
}
|
|
11758
|
+
},
|
|
11759
|
+
{
|
|
11760
|
+
"type": "function",
|
|
11761
|
+
"function": {
|
|
11762
|
+
"name": "create_state",
|
|
11763
|
+
"description": "Upsert State",
|
|
11764
|
+
"parameters": {
|
|
11765
|
+
"title": "CreateStateRequestBody",
|
|
11766
|
+
"type": "object",
|
|
11767
|
+
"required": [
|
|
11768
|
+
"data"
|
|
11769
|
+
],
|
|
11770
|
+
"properties": {
|
|
11771
|
+
"data": {
|
|
11772
|
+
"title": "CreateStateRequestBodyData",
|
|
11773
|
+
"type": "object",
|
|
11774
|
+
"required": [
|
|
11775
|
+
"type",
|
|
11776
|
+
"attributes"
|
|
11777
|
+
],
|
|
11778
|
+
"properties": {
|
|
11779
|
+
"type": {
|
|
11780
|
+
"type": "string",
|
|
11781
|
+
"enum": [
|
|
11782
|
+
"states"
|
|
11783
|
+
]
|
|
11784
|
+
},
|
|
11785
|
+
"attributes": {
|
|
11786
|
+
"title": "StateAttributesSchema",
|
|
11787
|
+
"type": "object",
|
|
11788
|
+
"properties": {
|
|
11789
|
+
"userId": {
|
|
11790
|
+
"type": "string",
|
|
11791
|
+
"description": "Owner of this state row. Always the authenticated user; never set by the client."
|
|
11792
|
+
},
|
|
11793
|
+
"resourceType": {
|
|
11794
|
+
"type": "string",
|
|
11795
|
+
"enum": [
|
|
11796
|
+
"emails",
|
|
11797
|
+
"candidates",
|
|
11798
|
+
"conversations",
|
|
11799
|
+
"jobs",
|
|
11800
|
+
"talents",
|
|
11801
|
+
"personas",
|
|
11802
|
+
"reports",
|
|
11803
|
+
"tasks"
|
|
11804
|
+
],
|
|
11805
|
+
"description": "The kind of resource this state describes. Lives in the composite id as `{resourceType}:{resourceId}`."
|
|
11806
|
+
},
|
|
11807
|
+
"resourceId": {
|
|
11808
|
+
"type": "string",
|
|
11809
|
+
"description": "Id of the resource this state describes (e.g. an emailId, candidateId)."
|
|
11810
|
+
},
|
|
11811
|
+
"isSeen": {
|
|
11812
|
+
"type": "boolean",
|
|
11813
|
+
"description": "True if the user has opened the resource at least once. Derived from the presence of `seenAt`; clients can write either `isSeen` or `seenAt` on upsert."
|
|
11814
|
+
},
|
|
11815
|
+
"isStarred": {
|
|
11816
|
+
"type": "boolean",
|
|
11817
|
+
"description": "True if the user has starred/favourited the resource."
|
|
11818
|
+
},
|
|
11819
|
+
"isSpam": {
|
|
11820
|
+
"type": "boolean",
|
|
11821
|
+
"description": "True if the user marked this resource as spam. Distinct from the email service's `suppressed` status, which is SES-driven on outbound delivery; this is an inbound, per-user action."
|
|
11822
|
+
},
|
|
11823
|
+
"seenAt": {
|
|
11824
|
+
"type": "string",
|
|
11825
|
+
"description": "ISO 8601 timestamp of the user's most recent open. Absent means never seen."
|
|
11826
|
+
},
|
|
11827
|
+
"starredAt": {
|
|
11828
|
+
"type": "string",
|
|
11829
|
+
"description": "ISO 8601 timestamp of when the user starred the resource. Absent means not starred; used as the sort key for the `Starred` folder."
|
|
11830
|
+
},
|
|
11831
|
+
"spamAt": {
|
|
11832
|
+
"type": "string",
|
|
11833
|
+
"description": "ISO 8601 timestamp of when the user marked the resource as spam. Absent means not spam; used as the sort key for the `Spam` folder."
|
|
11834
|
+
},
|
|
11835
|
+
"resourceCreatedAt": {
|
|
11836
|
+
"type": "string",
|
|
11837
|
+
"description": "Denormalised copy of the underlying resource's own `created` timestamp. Used as the sparse unread-index sort key so the unread feed surfaces oldest resources first, not oldest state rows."
|
|
11838
|
+
},
|
|
11839
|
+
"flags": {
|
|
11840
|
+
"type": "object",
|
|
11841
|
+
"additionalProperties": true,
|
|
11842
|
+
"description": "Open-ended per-resource flags (e.g. `{muted: true}` on conversations, `{pinned: true}` on candidates). First-class state goes on the top-level attributes; ad-hoc state lives here."
|
|
11843
|
+
},
|
|
11844
|
+
"timestamps": {
|
|
11845
|
+
"title": "ResourceTimestampsSchema",
|
|
11846
|
+
"type": "object",
|
|
11847
|
+
"properties": {
|
|
11848
|
+
"created": {
|
|
11849
|
+
"type": "string",
|
|
11850
|
+
"format": "date-time"
|
|
11851
|
+
},
|
|
11852
|
+
"modified": {
|
|
11853
|
+
"type": "string",
|
|
11854
|
+
"format": "date-time"
|
|
11855
|
+
}
|
|
11856
|
+
}
|
|
11857
|
+
}
|
|
11858
|
+
}
|
|
11859
|
+
}
|
|
11860
|
+
}
|
|
11861
|
+
}
|
|
11862
|
+
}
|
|
11863
|
+
}
|
|
11864
|
+
}
|
|
11865
|
+
},
|
|
11866
|
+
{
|
|
11867
|
+
"type": "function",
|
|
11868
|
+
"function": {
|
|
11869
|
+
"name": "states_options",
|
|
11870
|
+
"description": "States Options",
|
|
11871
|
+
"parameters": {
|
|
11872
|
+
"type": "object",
|
|
11873
|
+
"properties": {}
|
|
11874
|
+
}
|
|
11875
|
+
}
|
|
11876
|
+
},
|
|
11877
|
+
{
|
|
11878
|
+
"type": "function",
|
|
11879
|
+
"function": {
|
|
11880
|
+
"name": "show_state",
|
|
11881
|
+
"description": "Show State",
|
|
11882
|
+
"parameters": {
|
|
11883
|
+
"type": "object",
|
|
11884
|
+
"properties": {}
|
|
11885
|
+
}
|
|
11886
|
+
}
|
|
11887
|
+
},
|
|
11888
|
+
{
|
|
11889
|
+
"type": "function",
|
|
11890
|
+
"function": {
|
|
11891
|
+
"name": "update_state",
|
|
11892
|
+
"description": "Update State",
|
|
11893
|
+
"parameters": {
|
|
11894
|
+
"title": "UpdateStateRequestBody",
|
|
11895
|
+
"type": "object",
|
|
11896
|
+
"required": [
|
|
11897
|
+
"data"
|
|
11898
|
+
],
|
|
11899
|
+
"properties": {
|
|
11900
|
+
"data": {
|
|
11901
|
+
"title": "UpdateStateRequestBodyData",
|
|
11902
|
+
"type": "object",
|
|
11903
|
+
"required": [
|
|
11904
|
+
"type",
|
|
11905
|
+
"id",
|
|
11906
|
+
"attributes"
|
|
11907
|
+
],
|
|
11908
|
+
"properties": {
|
|
11909
|
+
"type": {
|
|
11910
|
+
"type": "string",
|
|
11911
|
+
"enum": [
|
|
11912
|
+
"states"
|
|
11913
|
+
]
|
|
11914
|
+
},
|
|
11915
|
+
"id": {
|
|
11916
|
+
"type": "string"
|
|
11917
|
+
},
|
|
11918
|
+
"attributes": {
|
|
11919
|
+
"title": "StateAttributesSchema",
|
|
11920
|
+
"type": "object",
|
|
11921
|
+
"properties": {
|
|
11922
|
+
"userId": {
|
|
11923
|
+
"type": "string",
|
|
11924
|
+
"description": "Owner of this state row. Always the authenticated user; never set by the client."
|
|
11925
|
+
},
|
|
11926
|
+
"resourceType": {
|
|
11927
|
+
"type": "string",
|
|
11928
|
+
"enum": [
|
|
11929
|
+
"emails",
|
|
11930
|
+
"candidates",
|
|
11931
|
+
"conversations",
|
|
11932
|
+
"jobs",
|
|
11933
|
+
"talents",
|
|
11934
|
+
"personas",
|
|
11935
|
+
"reports",
|
|
11936
|
+
"tasks"
|
|
11937
|
+
],
|
|
11938
|
+
"description": "The kind of resource this state describes. Lives in the composite id as `{resourceType}:{resourceId}`."
|
|
11939
|
+
},
|
|
11940
|
+
"resourceId": {
|
|
11941
|
+
"type": "string",
|
|
11942
|
+
"description": "Id of the resource this state describes (e.g. an emailId, candidateId)."
|
|
11943
|
+
},
|
|
11944
|
+
"isSeen": {
|
|
11945
|
+
"type": "boolean",
|
|
11946
|
+
"description": "True if the user has opened the resource at least once. Derived from the presence of `seenAt`; clients can write either `isSeen` or `seenAt` on upsert."
|
|
11947
|
+
},
|
|
11948
|
+
"isStarred": {
|
|
11949
|
+
"type": "boolean",
|
|
11950
|
+
"description": "True if the user has starred/favourited the resource."
|
|
11951
|
+
},
|
|
11952
|
+
"isSpam": {
|
|
11953
|
+
"type": "boolean",
|
|
11954
|
+
"description": "True if the user marked this resource as spam. Distinct from the email service's `suppressed` status, which is SES-driven on outbound delivery; this is an inbound, per-user action."
|
|
11955
|
+
},
|
|
11956
|
+
"seenAt": {
|
|
11957
|
+
"type": "string",
|
|
11958
|
+
"description": "ISO 8601 timestamp of the user's most recent open. Absent means never seen."
|
|
11959
|
+
},
|
|
11960
|
+
"starredAt": {
|
|
11961
|
+
"type": "string",
|
|
11962
|
+
"description": "ISO 8601 timestamp of when the user starred the resource. Absent means not starred; used as the sort key for the `Starred` folder."
|
|
11963
|
+
},
|
|
11964
|
+
"spamAt": {
|
|
11965
|
+
"type": "string",
|
|
11966
|
+
"description": "ISO 8601 timestamp of when the user marked the resource as spam. Absent means not spam; used as the sort key for the `Spam` folder."
|
|
11967
|
+
},
|
|
11968
|
+
"resourceCreatedAt": {
|
|
11969
|
+
"type": "string",
|
|
11970
|
+
"description": "Denormalised copy of the underlying resource's own `created` timestamp. Used as the sparse unread-index sort key so the unread feed surfaces oldest resources first, not oldest state rows."
|
|
11971
|
+
},
|
|
11972
|
+
"flags": {
|
|
11973
|
+
"type": "object",
|
|
11974
|
+
"additionalProperties": true,
|
|
11975
|
+
"description": "Open-ended per-resource flags (e.g. `{muted: true}` on conversations, `{pinned: true}` on candidates). First-class state goes on the top-level attributes; ad-hoc state lives here."
|
|
11976
|
+
},
|
|
11977
|
+
"timestamps": {
|
|
11978
|
+
"title": "ResourceTimestampsSchema",
|
|
11979
|
+
"type": "object",
|
|
11980
|
+
"properties": {
|
|
11981
|
+
"created": {
|
|
11982
|
+
"type": "string",
|
|
11983
|
+
"format": "date-time"
|
|
11984
|
+
},
|
|
11985
|
+
"modified": {
|
|
11986
|
+
"type": "string",
|
|
11987
|
+
"format": "date-time"
|
|
11988
|
+
}
|
|
11989
|
+
}
|
|
11990
|
+
}
|
|
11991
|
+
}
|
|
11992
|
+
}
|
|
11993
|
+
}
|
|
11994
|
+
}
|
|
11995
|
+
}
|
|
11996
|
+
}
|
|
11997
|
+
}
|
|
11998
|
+
},
|
|
11999
|
+
{
|
|
12000
|
+
"type": "function",
|
|
12001
|
+
"function": {
|
|
12002
|
+
"name": "delete_state",
|
|
12003
|
+
"description": "Delete State",
|
|
12004
|
+
"parameters": {
|
|
12005
|
+
"type": "object",
|
|
12006
|
+
"properties": {}
|
|
12007
|
+
}
|
|
12008
|
+
}
|
|
12009
|
+
},
|
|
12010
|
+
{
|
|
12011
|
+
"type": "function",
|
|
12012
|
+
"function": {
|
|
12013
|
+
"name": "state_options",
|
|
12014
|
+
"description": "State Options",
|
|
12015
|
+
"parameters": {
|
|
12016
|
+
"type": "object",
|
|
12017
|
+
"properties": {}
|
|
12018
|
+
}
|
|
12019
|
+
}
|
|
12020
|
+
},
|
|
12021
|
+
{
|
|
12022
|
+
"type": "function",
|
|
12023
|
+
"function": {
|
|
12024
|
+
"name": "list_labels",
|
|
12025
|
+
"description": "List Labels",
|
|
12026
|
+
"parameters": {
|
|
12027
|
+
"type": "object",
|
|
12028
|
+
"properties": {
|
|
12029
|
+
"filterStatus": {
|
|
12030
|
+
"type": "string",
|
|
12031
|
+
"description": "filterStatus parameter",
|
|
12032
|
+
"enum": [
|
|
12033
|
+
"active",
|
|
12034
|
+
"archived"
|
|
12035
|
+
]
|
|
12036
|
+
},
|
|
12037
|
+
"pageSize": {
|
|
12038
|
+
"type": "integer",
|
|
12039
|
+
"description": "Specifies the number of items to retrieve per page. The maximum value is 100."
|
|
12040
|
+
}
|
|
12041
|
+
}
|
|
12042
|
+
}
|
|
12043
|
+
}
|
|
12044
|
+
},
|
|
12045
|
+
{
|
|
12046
|
+
"type": "function",
|
|
12047
|
+
"function": {
|
|
12048
|
+
"name": "create_label",
|
|
12049
|
+
"description": "Create Label",
|
|
12050
|
+
"parameters": {
|
|
12051
|
+
"title": "CreateLabelRequestBody",
|
|
12052
|
+
"type": "object",
|
|
12053
|
+
"required": [
|
|
12054
|
+
"data"
|
|
12055
|
+
],
|
|
12056
|
+
"properties": {
|
|
12057
|
+
"data": {
|
|
12058
|
+
"title": "CreateLabelRequestBodyData",
|
|
12059
|
+
"type": "object",
|
|
12060
|
+
"required": [
|
|
12061
|
+
"type",
|
|
12062
|
+
"attributes"
|
|
12063
|
+
],
|
|
12064
|
+
"properties": {
|
|
12065
|
+
"type": {
|
|
12066
|
+
"type": "string",
|
|
12067
|
+
"enum": [
|
|
12068
|
+
"labels"
|
|
12069
|
+
]
|
|
12070
|
+
},
|
|
12071
|
+
"attributes": {
|
|
12072
|
+
"title": "LabelAttributesSchema",
|
|
12073
|
+
"type": "object",
|
|
12074
|
+
"properties": {
|
|
12075
|
+
"name": {
|
|
12076
|
+
"type": "string",
|
|
12077
|
+
"description": "Display name. Unique within a scope by convention but not enforced."
|
|
12078
|
+
},
|
|
12079
|
+
"color": {
|
|
12080
|
+
"type": "string",
|
|
12081
|
+
"description": "Hex or CSS-named color the UI uses to render the label pill."
|
|
12082
|
+
},
|
|
12083
|
+
"description": {
|
|
12084
|
+
"type": "string"
|
|
12085
|
+
},
|
|
12086
|
+
"scope": {
|
|
12087
|
+
"type": "string",
|
|
12088
|
+
"enum": [
|
|
12089
|
+
"tenant",
|
|
12090
|
+
"user"
|
|
12091
|
+
],
|
|
12092
|
+
"description": "tenant = visible to every user in the tenant; user = visible only to the owner."
|
|
12093
|
+
},
|
|
12094
|
+
"ownerId": {
|
|
12095
|
+
"type": "string",
|
|
12096
|
+
"description": "Set server-side from the caller. Tenant-scope: tenantId. User-scope: the authenticated user's full userId."
|
|
12097
|
+
},
|
|
12098
|
+
"resourceTypes": {
|
|
12099
|
+
"type": "array",
|
|
12100
|
+
"items": {
|
|
12101
|
+
"type": "string"
|
|
12102
|
+
},
|
|
12103
|
+
"description": "Optional UI hint: if set, the frontend only exposes this label in the picker for these resource types (emails, candidates, ...). Not enforced server-side."
|
|
12104
|
+
},
|
|
12105
|
+
"status": {
|
|
12106
|
+
"type": "string",
|
|
12107
|
+
"enum": [
|
|
12108
|
+
"active",
|
|
12109
|
+
"archived"
|
|
12110
|
+
],
|
|
12111
|
+
"description": "Archived labels stay readable (for historical assignments) but disappear from the default list."
|
|
12112
|
+
},
|
|
12113
|
+
"timestamps": {
|
|
12114
|
+
"title": "ResourceTimestampsSchema",
|
|
12115
|
+
"type": "object",
|
|
12116
|
+
"properties": {
|
|
12117
|
+
"created": {
|
|
12118
|
+
"type": "string",
|
|
12119
|
+
"format": "date-time"
|
|
12120
|
+
},
|
|
12121
|
+
"modified": {
|
|
12122
|
+
"type": "string",
|
|
12123
|
+
"format": "date-time"
|
|
12124
|
+
}
|
|
12125
|
+
}
|
|
12126
|
+
}
|
|
12127
|
+
}
|
|
12128
|
+
}
|
|
12129
|
+
}
|
|
12130
|
+
}
|
|
12131
|
+
}
|
|
12132
|
+
}
|
|
12133
|
+
}
|
|
12134
|
+
},
|
|
12135
|
+
{
|
|
12136
|
+
"type": "function",
|
|
12137
|
+
"function": {
|
|
12138
|
+
"name": "labels_options",
|
|
12139
|
+
"description": "Labels Options",
|
|
12140
|
+
"parameters": {
|
|
12141
|
+
"type": "object",
|
|
12142
|
+
"properties": {}
|
|
12143
|
+
}
|
|
12144
|
+
}
|
|
12145
|
+
},
|
|
12146
|
+
{
|
|
12147
|
+
"type": "function",
|
|
12148
|
+
"function": {
|
|
12149
|
+
"name": "show_label",
|
|
12150
|
+
"description": "Show Label",
|
|
12151
|
+
"parameters": {
|
|
12152
|
+
"type": "object",
|
|
12153
|
+
"properties": {}
|
|
12154
|
+
}
|
|
12155
|
+
}
|
|
12156
|
+
},
|
|
12157
|
+
{
|
|
12158
|
+
"type": "function",
|
|
12159
|
+
"function": {
|
|
12160
|
+
"name": "update_label",
|
|
12161
|
+
"description": "Update Label",
|
|
12162
|
+
"parameters": {
|
|
12163
|
+
"title": "UpdateLabelRequestBody",
|
|
12164
|
+
"type": "object",
|
|
12165
|
+
"required": [
|
|
12166
|
+
"data"
|
|
12167
|
+
],
|
|
12168
|
+
"properties": {
|
|
12169
|
+
"data": {
|
|
12170
|
+
"title": "UpdateLabelRequestBodyData",
|
|
12171
|
+
"type": "object",
|
|
12172
|
+
"required": [
|
|
12173
|
+
"type",
|
|
12174
|
+
"id",
|
|
12175
|
+
"attributes"
|
|
12176
|
+
],
|
|
12177
|
+
"properties": {
|
|
12178
|
+
"type": {
|
|
12179
|
+
"type": "string",
|
|
12180
|
+
"enum": [
|
|
12181
|
+
"labels"
|
|
12182
|
+
]
|
|
12183
|
+
},
|
|
12184
|
+
"id": {
|
|
12185
|
+
"type": "string"
|
|
12186
|
+
},
|
|
12187
|
+
"attributes": {
|
|
12188
|
+
"title": "LabelAttributesSchema",
|
|
12189
|
+
"type": "object",
|
|
12190
|
+
"properties": {
|
|
12191
|
+
"name": {
|
|
12192
|
+
"type": "string",
|
|
12193
|
+
"description": "Display name. Unique within a scope by convention but not enforced."
|
|
12194
|
+
},
|
|
12195
|
+
"color": {
|
|
12196
|
+
"type": "string",
|
|
12197
|
+
"description": "Hex or CSS-named color the UI uses to render the label pill."
|
|
12198
|
+
},
|
|
12199
|
+
"description": {
|
|
12200
|
+
"type": "string"
|
|
12201
|
+
},
|
|
12202
|
+
"scope": {
|
|
12203
|
+
"type": "string",
|
|
12204
|
+
"enum": [
|
|
12205
|
+
"tenant",
|
|
12206
|
+
"user"
|
|
12207
|
+
],
|
|
12208
|
+
"description": "tenant = visible to every user in the tenant; user = visible only to the owner."
|
|
12209
|
+
},
|
|
12210
|
+
"ownerId": {
|
|
12211
|
+
"type": "string",
|
|
12212
|
+
"description": "Set server-side from the caller. Tenant-scope: tenantId. User-scope: the authenticated user's full userId."
|
|
12213
|
+
},
|
|
12214
|
+
"resourceTypes": {
|
|
12215
|
+
"type": "array",
|
|
12216
|
+
"items": {
|
|
12217
|
+
"type": "string"
|
|
12218
|
+
},
|
|
12219
|
+
"description": "Optional UI hint: if set, the frontend only exposes this label in the picker for these resource types (emails, candidates, ...). Not enforced server-side."
|
|
12220
|
+
},
|
|
12221
|
+
"status": {
|
|
12222
|
+
"type": "string",
|
|
12223
|
+
"enum": [
|
|
12224
|
+
"active",
|
|
12225
|
+
"archived"
|
|
12226
|
+
],
|
|
12227
|
+
"description": "Archived labels stay readable (for historical assignments) but disappear from the default list."
|
|
12228
|
+
},
|
|
12229
|
+
"timestamps": {
|
|
12230
|
+
"title": "ResourceTimestampsSchema",
|
|
12231
|
+
"type": "object",
|
|
12232
|
+
"properties": {
|
|
12233
|
+
"created": {
|
|
12234
|
+
"type": "string",
|
|
12235
|
+
"format": "date-time"
|
|
12236
|
+
},
|
|
12237
|
+
"modified": {
|
|
12238
|
+
"type": "string",
|
|
12239
|
+
"format": "date-time"
|
|
12240
|
+
}
|
|
12241
|
+
}
|
|
12242
|
+
}
|
|
12243
|
+
}
|
|
12244
|
+
}
|
|
12245
|
+
}
|
|
12246
|
+
}
|
|
12247
|
+
}
|
|
12248
|
+
}
|
|
12249
|
+
}
|
|
12250
|
+
},
|
|
12251
|
+
{
|
|
12252
|
+
"type": "function",
|
|
12253
|
+
"function": {
|
|
12254
|
+
"name": "delete_label",
|
|
12255
|
+
"description": "Delete Label",
|
|
12256
|
+
"parameters": {
|
|
12257
|
+
"type": "object",
|
|
12258
|
+
"properties": {}
|
|
12259
|
+
}
|
|
12260
|
+
}
|
|
12261
|
+
},
|
|
12262
|
+
{
|
|
12263
|
+
"type": "function",
|
|
12264
|
+
"function": {
|
|
12265
|
+
"name": "label_options",
|
|
12266
|
+
"description": "Label Options",
|
|
12267
|
+
"parameters": {
|
|
12268
|
+
"type": "object",
|
|
12269
|
+
"properties": {}
|
|
12270
|
+
}
|
|
12271
|
+
}
|
|
12272
|
+
},
|
|
11705
12273
|
{
|
|
11706
12274
|
"type": "function",
|
|
11707
12275
|
"function": {
|
|
@@ -14592,12 +15160,62 @@
|
|
|
14592
15160
|
"description": "The type of search to perform"
|
|
14593
15161
|
},
|
|
14594
15162
|
"query": {
|
|
14595
|
-
"
|
|
14596
|
-
"
|
|
15163
|
+
"description": "Search query parameters sent to OpenSearch. Shape varies by finder `type`. OpenAPI can't express the full type/query correlation as a strict discriminated union (the discriminator lives on the sibling `type` field, not on `query` itself), so this is encoded as `oneOf` over per-type query schemas. Clients should pick the shape matching the `type` they are posting.",
|
|
15164
|
+
"oneOf": [
|
|
15165
|
+
{
|
|
15166
|
+
"$ref": "#/components/schemas/FinderQueryTalentsSchema"
|
|
15167
|
+
},
|
|
15168
|
+
{
|
|
15169
|
+
"$ref": "#/components/schemas/FinderQueryCandidatesSchema"
|
|
15170
|
+
},
|
|
15171
|
+
{
|
|
15172
|
+
"$ref": "#/components/schemas/FinderQueryJobsSchema"
|
|
15173
|
+
},
|
|
15174
|
+
{
|
|
15175
|
+
"$ref": "#/components/schemas/FinderQueryEmailsSchema"
|
|
15176
|
+
}
|
|
15177
|
+
]
|
|
14597
15178
|
},
|
|
14598
15179
|
"results": {
|
|
15180
|
+
"title": "FinderResultsSchema",
|
|
14599
15181
|
"type": "object",
|
|
14600
|
-
"description": "
|
|
15182
|
+
"description": "OpenSearch-shaped results attached to the finder record after the search runs. Hits array items carry whatever subset of the index schema was projected.",
|
|
15183
|
+
"properties": {
|
|
15184
|
+
"total": {
|
|
15185
|
+
"type": "integer",
|
|
15186
|
+
"description": "Count of matching documents before pagination."
|
|
15187
|
+
},
|
|
15188
|
+
"hits": {
|
|
15189
|
+
"type": "array",
|
|
15190
|
+
"items": {
|
|
15191
|
+
"title": "FinderResultHitSchema",
|
|
15192
|
+
"type": "object",
|
|
15193
|
+
"description": "Single hit from the OpenSearch query. The `id` equals the underlying resource id (emailId, talentId, candidateId, jobId, ...) so the frontend can navigate directly to that resource. Additional fields vary by finder `type`.",
|
|
15194
|
+
"properties": {
|
|
15195
|
+
"id": {
|
|
15196
|
+
"type": "string",
|
|
15197
|
+
"description": "The underlying resource id (emailId / talentId / candidateId / jobId)."
|
|
15198
|
+
},
|
|
15199
|
+
"tenantId": {
|
|
15200
|
+
"type": "string"
|
|
15201
|
+
},
|
|
15202
|
+
"status": {
|
|
15203
|
+
"type": "string"
|
|
15204
|
+
},
|
|
15205
|
+
"source": {
|
|
15206
|
+
"type": "string"
|
|
15207
|
+
},
|
|
15208
|
+
"created": {
|
|
15209
|
+
"type": "string"
|
|
15210
|
+
},
|
|
15211
|
+
"shortCode": {
|
|
15212
|
+
"type": "string"
|
|
15213
|
+
}
|
|
15214
|
+
},
|
|
15215
|
+
"additionalProperties": true
|
|
15216
|
+
}
|
|
15217
|
+
}
|
|
15218
|
+
}
|
|
14601
15219
|
},
|
|
14602
15220
|
"status": {
|
|
14603
15221
|
"type": "string",
|
|
@@ -14819,12 +15437,62 @@
|
|
|
14819
15437
|
"description": "The type of search to perform"
|
|
14820
15438
|
},
|
|
14821
15439
|
"query": {
|
|
14822
|
-
"
|
|
14823
|
-
"
|
|
15440
|
+
"description": "Search query parameters sent to OpenSearch. Shape varies by finder `type`. OpenAPI can't express the full type/query correlation as a strict discriminated union (the discriminator lives on the sibling `type` field, not on `query` itself), so this is encoded as `oneOf` over per-type query schemas. Clients should pick the shape matching the `type` they are posting.",
|
|
15441
|
+
"oneOf": [
|
|
15442
|
+
{
|
|
15443
|
+
"$ref": "#/components/schemas/FinderQueryTalentsSchema"
|
|
15444
|
+
},
|
|
15445
|
+
{
|
|
15446
|
+
"$ref": "#/components/schemas/FinderQueryCandidatesSchema"
|
|
15447
|
+
},
|
|
15448
|
+
{
|
|
15449
|
+
"$ref": "#/components/schemas/FinderQueryJobsSchema"
|
|
15450
|
+
},
|
|
15451
|
+
{
|
|
15452
|
+
"$ref": "#/components/schemas/FinderQueryEmailsSchema"
|
|
15453
|
+
}
|
|
15454
|
+
]
|
|
14824
15455
|
},
|
|
14825
15456
|
"results": {
|
|
15457
|
+
"title": "FinderResultsSchema",
|
|
14826
15458
|
"type": "object",
|
|
14827
|
-
"description": "
|
|
15459
|
+
"description": "OpenSearch-shaped results attached to the finder record after the search runs. Hits array items carry whatever subset of the index schema was projected.",
|
|
15460
|
+
"properties": {
|
|
15461
|
+
"total": {
|
|
15462
|
+
"type": "integer",
|
|
15463
|
+
"description": "Count of matching documents before pagination."
|
|
15464
|
+
},
|
|
15465
|
+
"hits": {
|
|
15466
|
+
"type": "array",
|
|
15467
|
+
"items": {
|
|
15468
|
+
"title": "FinderResultHitSchema",
|
|
15469
|
+
"type": "object",
|
|
15470
|
+
"description": "Single hit from the OpenSearch query. The `id` equals the underlying resource id (emailId, talentId, candidateId, jobId, ...) so the frontend can navigate directly to that resource. Additional fields vary by finder `type`.",
|
|
15471
|
+
"properties": {
|
|
15472
|
+
"id": {
|
|
15473
|
+
"type": "string",
|
|
15474
|
+
"description": "The underlying resource id (emailId / talentId / candidateId / jobId)."
|
|
15475
|
+
},
|
|
15476
|
+
"tenantId": {
|
|
15477
|
+
"type": "string"
|
|
15478
|
+
},
|
|
15479
|
+
"status": {
|
|
15480
|
+
"type": "string"
|
|
15481
|
+
},
|
|
15482
|
+
"source": {
|
|
15483
|
+
"type": "string"
|
|
15484
|
+
},
|
|
15485
|
+
"created": {
|
|
15486
|
+
"type": "string"
|
|
15487
|
+
},
|
|
15488
|
+
"shortCode": {
|
|
15489
|
+
"type": "string"
|
|
15490
|
+
}
|
|
15491
|
+
},
|
|
15492
|
+
"additionalProperties": true
|
|
15493
|
+
}
|
|
15494
|
+
}
|
|
15495
|
+
}
|
|
14828
15496
|
},
|
|
14829
15497
|
"status": {
|
|
14830
15498
|
"type": "string",
|