@smartytalent/openai-tools 0.8.7 → 0.8.9
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 +418 -1
- package/package.json +1 -1
package/dist/tools.json
CHANGED
|
@@ -1024,7 +1024,8 @@
|
|
|
1024
1024
|
"enum": [
|
|
1025
1025
|
"logo",
|
|
1026
1026
|
"background",
|
|
1027
|
-
"favicon"
|
|
1027
|
+
"favicon",
|
|
1028
|
+
"careers"
|
|
1028
1029
|
]
|
|
1029
1030
|
}
|
|
1030
1031
|
}
|
|
@@ -8156,6 +8157,16 @@
|
|
|
8156
8157
|
"archived"
|
|
8157
8158
|
]
|
|
8158
8159
|
},
|
|
8160
|
+
"filterKind": {
|
|
8161
|
+
"type": "string",
|
|
8162
|
+
"description": "Returns forms of one kind (e.g. candidateSubmission) - the careers/apply editors resolve the application form without paging everything.",
|
|
8163
|
+
"enum": [
|
|
8164
|
+
"jobBrief",
|
|
8165
|
+
"candidateSubmission",
|
|
8166
|
+
"talentSubmission",
|
|
8167
|
+
"general"
|
|
8168
|
+
]
|
|
8169
|
+
},
|
|
8159
8170
|
"filterCreatedFrom": {
|
|
8160
8171
|
"type": "string",
|
|
8161
8172
|
"description": "Filters results to include only those created from the specified date and time. The value must be in ISO 8601 format."
|
|
@@ -10513,6 +10524,412 @@
|
|
|
10513
10524
|
}
|
|
10514
10525
|
}
|
|
10515
10526
|
},
|
|
10527
|
+
{
|
|
10528
|
+
"type": "function",
|
|
10529
|
+
"function": {
|
|
10530
|
+
"name": "list_careers",
|
|
10531
|
+
"description": "List Careers",
|
|
10532
|
+
"parameters": {
|
|
10533
|
+
"type": "object",
|
|
10534
|
+
"properties": {
|
|
10535
|
+
"filterStatus": {
|
|
10536
|
+
"type": "string",
|
|
10537
|
+
"description": "filterStatus parameter",
|
|
10538
|
+
"enum": [
|
|
10539
|
+
"draft",
|
|
10540
|
+
"active",
|
|
10541
|
+
"archived"
|
|
10542
|
+
]
|
|
10543
|
+
},
|
|
10544
|
+
"filterCreatedFrom": {
|
|
10545
|
+
"type": "string",
|
|
10546
|
+
"description": "Filters results to include only those created from the specified date and time. The value must be in ISO 8601 format."
|
|
10547
|
+
},
|
|
10548
|
+
"filterCreatedTo": {
|
|
10549
|
+
"type": "string",
|
|
10550
|
+
"description": "Filters results to include only those created up to the specified date and time. The value must be in ISO 8601 format."
|
|
10551
|
+
},
|
|
10552
|
+
"filterModifiedFrom": {
|
|
10553
|
+
"type": "string",
|
|
10554
|
+
"description": "Filters results to include only those modified from the specified date and time. The value must be in ISO 8601 format."
|
|
10555
|
+
},
|
|
10556
|
+
"filterModifiedTo": {
|
|
10557
|
+
"type": "string",
|
|
10558
|
+
"description": "Filters results to include only those modified up to the specified date and time. The value must be in ISO 8601 format."
|
|
10559
|
+
},
|
|
10560
|
+
"pageSize": {
|
|
10561
|
+
"type": "integer",
|
|
10562
|
+
"description": "Specifies the number of items to retrieve per page. The maximum value is 100."
|
|
10563
|
+
},
|
|
10564
|
+
"pageNumber": {
|
|
10565
|
+
"type": "integer",
|
|
10566
|
+
"description": "Specifies the page number to retrieve. Used for traditional pagination."
|
|
10567
|
+
},
|
|
10568
|
+
"pageAfter": {
|
|
10569
|
+
"type": "string",
|
|
10570
|
+
"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."
|
|
10571
|
+
},
|
|
10572
|
+
"pageBefore": {
|
|
10573
|
+
"type": "string",
|
|
10574
|
+
"description": "Returns the data encoded in Base64 format, used for cursor-based pagination"
|
|
10575
|
+
}
|
|
10576
|
+
}
|
|
10577
|
+
}
|
|
10578
|
+
}
|
|
10579
|
+
},
|
|
10580
|
+
{
|
|
10581
|
+
"type": "function",
|
|
10582
|
+
"function": {
|
|
10583
|
+
"name": "create_career",
|
|
10584
|
+
"description": "Create Career",
|
|
10585
|
+
"parameters": {
|
|
10586
|
+
"title": "CreateCareerRequestBody",
|
|
10587
|
+
"type": "object",
|
|
10588
|
+
"required": [
|
|
10589
|
+
"data"
|
|
10590
|
+
],
|
|
10591
|
+
"properties": {
|
|
10592
|
+
"data": {
|
|
10593
|
+
"title": "CreateCareerRequestBodyData",
|
|
10594
|
+
"type": "object",
|
|
10595
|
+
"required": [
|
|
10596
|
+
"type"
|
|
10597
|
+
],
|
|
10598
|
+
"properties": {
|
|
10599
|
+
"type": {
|
|
10600
|
+
"type": "string",
|
|
10601
|
+
"enum": [
|
|
10602
|
+
"careers"
|
|
10603
|
+
]
|
|
10604
|
+
},
|
|
10605
|
+
"attributes": {
|
|
10606
|
+
"title": "CreateCareerRequestBodyDataAttributes",
|
|
10607
|
+
"type": "object",
|
|
10608
|
+
"properties": {
|
|
10609
|
+
"name": {
|
|
10610
|
+
"type": "string",
|
|
10611
|
+
"minLength": 1,
|
|
10612
|
+
"maxLength": 255
|
|
10613
|
+
},
|
|
10614
|
+
"sourceLanguage": {
|
|
10615
|
+
"type": "string",
|
|
10616
|
+
"description": "BCP-47 tag; defaults to en-US. Seeds the skeleton's locale."
|
|
10617
|
+
},
|
|
10618
|
+
"content": {
|
|
10619
|
+
"title": "CareersContentSchema",
|
|
10620
|
+
"type": "object",
|
|
10621
|
+
"description": "Ordered-blocks careers document. Locale keys are BCP-47 (en-US,\npl-PL, ...). Publish rules (mirrored by the editor): schemaVersion\n1; 1-24 blocks with unique ids; exactly one enabled hero (FIRST\namong enabled blocks) and one enabled positions; <=12 items per\nrepeater; every locale-map string of an ENABLED block non-empty for\nevery locale in `locales`; `locales` is a non-empty subset of the\ntenant's activeLanguages plus sourceLanguage and must contain\nsourceLanguage; absolute URLs only under the tenant's OWN CDN\nprefixes (tenants/{shortCode}/ or tenants/{tenantId}/) OR an https\nvideo embed on youtube.com / www.youtube.com / youtu.be /\nyoutube-nocookie.com / vimeo.com / player.vimeo.com - the embed\nallowlist applies ANYWHERE in the tree, is matched on the parsed\nHOST (not a string prefix) and never accepts http; no < or > in\ntext; <=131072 BYTES (UTF-8).",
|
|
10622
|
+
"properties": {
|
|
10623
|
+
"schemaVersion": {
|
|
10624
|
+
"type": "integer",
|
|
10625
|
+
"enum": [
|
|
10626
|
+
1
|
|
10627
|
+
]
|
|
10628
|
+
},
|
|
10629
|
+
"sourceLanguage": {
|
|
10630
|
+
"type": "string",
|
|
10631
|
+
"description": "BCP-47 tag."
|
|
10632
|
+
},
|
|
10633
|
+
"locales": {
|
|
10634
|
+
"type": "array",
|
|
10635
|
+
"items": {
|
|
10636
|
+
"type": "string"
|
|
10637
|
+
},
|
|
10638
|
+
"description": "The locales the page publishes in. The public language switcher offers exactly these."
|
|
10639
|
+
},
|
|
10640
|
+
"theme": {
|
|
10641
|
+
"title": "CareersThemeSchema",
|
|
10642
|
+
"type": "object",
|
|
10643
|
+
"description": "Optional per-tenant palette, published alongside `branding` in\nthe public document. Absent means the page renders the product\ndefaults. Values are interpolated into CSS custom properties on\na PUBLIC page, so each is pattern-bounded rather than free-form\nCSS. Unknown keys are ignored (forward-compatible), but\n`primaryColor` is required once the object is present.",
|
|
10644
|
+
"properties": {
|
|
10645
|
+
"primaryColor": {
|
|
10646
|
+
"type": "string",
|
|
10647
|
+
"pattern": "^#[0-9a-fA-F]{6}$",
|
|
10648
|
+
"description": "6-digit hex, e.g. #1a73e8."
|
|
10649
|
+
},
|
|
10650
|
+
"secondaryColor": {
|
|
10651
|
+
"type": "string",
|
|
10652
|
+
"pattern": "^#[0-9a-fA-F]{6}$"
|
|
10653
|
+
},
|
|
10654
|
+
"buttonRadius": {
|
|
10655
|
+
"type": "integer",
|
|
10656
|
+
"minimum": 0,
|
|
10657
|
+
"maximum": 32,
|
|
10658
|
+
"description": "Corner radius in PIXELS. A bounded number, not a CSS length string."
|
|
10659
|
+
}
|
|
10660
|
+
}
|
|
10661
|
+
},
|
|
10662
|
+
"blocks": {
|
|
10663
|
+
"type": "array",
|
|
10664
|
+
"minItems": 1,
|
|
10665
|
+
"maxItems": 24,
|
|
10666
|
+
"items": {
|
|
10667
|
+
"title": "CareersBlockSchema",
|
|
10668
|
+
"type": "object",
|
|
10669
|
+
"description": "One page section. `data` is the block-type-specific payload: plain\nfields (icon names, urls) plus locale maps\n({\"en-US\": \"...\", \"pl-PL\": \"...\"}) for every visitor-facing string;\nrepeaters are arrays of such objects (<=12 items). The catalog is\nCLOSED - there is no free-form HTML block (XSS door on a public\npage).",
|
|
10670
|
+
"properties": {
|
|
10671
|
+
"id": {
|
|
10672
|
+
"type": "string",
|
|
10673
|
+
"maxLength": 64,
|
|
10674
|
+
"description": "Stable within the document; [A-Za-z0-9_-]."
|
|
10675
|
+
},
|
|
10676
|
+
"type": {
|
|
10677
|
+
"type": "string",
|
|
10678
|
+
"enum": [
|
|
10679
|
+
"hero",
|
|
10680
|
+
"stats",
|
|
10681
|
+
"positions",
|
|
10682
|
+
"features",
|
|
10683
|
+
"team",
|
|
10684
|
+
"testimonials",
|
|
10685
|
+
"faq",
|
|
10686
|
+
"gallery",
|
|
10687
|
+
"cta",
|
|
10688
|
+
"richText"
|
|
10689
|
+
]
|
|
10690
|
+
},
|
|
10691
|
+
"enabled": {
|
|
10692
|
+
"type": "boolean",
|
|
10693
|
+
"description": "Disabled blocks stay in the draft (and keep translations) but never ship to the public doc and are locale-exempt at publish."
|
|
10694
|
+
},
|
|
10695
|
+
"data": {
|
|
10696
|
+
"type": "object",
|
|
10697
|
+
"additionalProperties": true
|
|
10698
|
+
}
|
|
10699
|
+
}
|
|
10700
|
+
}
|
|
10701
|
+
}
|
|
10702
|
+
}
|
|
10703
|
+
}
|
|
10704
|
+
}
|
|
10705
|
+
}
|
|
10706
|
+
}
|
|
10707
|
+
}
|
|
10708
|
+
}
|
|
10709
|
+
}
|
|
10710
|
+
}
|
|
10711
|
+
},
|
|
10712
|
+
{
|
|
10713
|
+
"type": "function",
|
|
10714
|
+
"function": {
|
|
10715
|
+
"name": "careers_options",
|
|
10716
|
+
"description": "Careers Options",
|
|
10717
|
+
"parameters": {
|
|
10718
|
+
"type": "object",
|
|
10719
|
+
"properties": {}
|
|
10720
|
+
}
|
|
10721
|
+
}
|
|
10722
|
+
},
|
|
10723
|
+
{
|
|
10724
|
+
"type": "function",
|
|
10725
|
+
"function": {
|
|
10726
|
+
"name": "show_career",
|
|
10727
|
+
"description": "Show Career",
|
|
10728
|
+
"parameters": {
|
|
10729
|
+
"type": "object",
|
|
10730
|
+
"properties": {
|
|
10731
|
+
"careerId": {
|
|
10732
|
+
"type": "string",
|
|
10733
|
+
"description": "careerId parameter"
|
|
10734
|
+
}
|
|
10735
|
+
},
|
|
10736
|
+
"required": [
|
|
10737
|
+
"careerId"
|
|
10738
|
+
]
|
|
10739
|
+
}
|
|
10740
|
+
}
|
|
10741
|
+
},
|
|
10742
|
+
{
|
|
10743
|
+
"type": "function",
|
|
10744
|
+
"function": {
|
|
10745
|
+
"name": "update_career",
|
|
10746
|
+
"description": "Update Career",
|
|
10747
|
+
"parameters": {
|
|
10748
|
+
"type": "object",
|
|
10749
|
+
"properties": {
|
|
10750
|
+
"careerId": {
|
|
10751
|
+
"type": "string",
|
|
10752
|
+
"description": "careerId parameter"
|
|
10753
|
+
},
|
|
10754
|
+
"requestBody": {
|
|
10755
|
+
"title": "UpdateCareerRequestBody",
|
|
10756
|
+
"type": "object",
|
|
10757
|
+
"required": [
|
|
10758
|
+
"data"
|
|
10759
|
+
],
|
|
10760
|
+
"properties": {
|
|
10761
|
+
"data": {
|
|
10762
|
+
"title": "UpdateCareerRequestBodyData",
|
|
10763
|
+
"type": "object",
|
|
10764
|
+
"required": [
|
|
10765
|
+
"type"
|
|
10766
|
+
],
|
|
10767
|
+
"properties": {
|
|
10768
|
+
"type": {
|
|
10769
|
+
"type": "string",
|
|
10770
|
+
"enum": [
|
|
10771
|
+
"careers"
|
|
10772
|
+
]
|
|
10773
|
+
},
|
|
10774
|
+
"id": {
|
|
10775
|
+
"type": "string"
|
|
10776
|
+
},
|
|
10777
|
+
"attributes": {
|
|
10778
|
+
"title": "UpdateCareerRequestBodyDataAttributes",
|
|
10779
|
+
"type": "object",
|
|
10780
|
+
"properties": {
|
|
10781
|
+
"name": {
|
|
10782
|
+
"type": "string",
|
|
10783
|
+
"minLength": 1,
|
|
10784
|
+
"maxLength": 255
|
|
10785
|
+
},
|
|
10786
|
+
"status": {
|
|
10787
|
+
"type": "string",
|
|
10788
|
+
"enum": [
|
|
10789
|
+
"draft",
|
|
10790
|
+
"active",
|
|
10791
|
+
"archived"
|
|
10792
|
+
],
|
|
10793
|
+
"description": "active = publish (writes the CDN doc). archived = takedown (removes it; repeat to retry). Allowed transitions: draft->active, draft->archived, active->archived, archived->active."
|
|
10794
|
+
},
|
|
10795
|
+
"sourceLanguage": {
|
|
10796
|
+
"type": "string",
|
|
10797
|
+
"description": "BCP-47 tag."
|
|
10798
|
+
},
|
|
10799
|
+
"translate": {
|
|
10800
|
+
"type": "boolean",
|
|
10801
|
+
"description": "Write-only: async-fill missing locale entries of the draft from sourceLanguage."
|
|
10802
|
+
},
|
|
10803
|
+
"content": {
|
|
10804
|
+
"title": "CareersContentSchema",
|
|
10805
|
+
"type": "object",
|
|
10806
|
+
"description": "Ordered-blocks careers document. Locale keys are BCP-47 (en-US,\npl-PL, ...). Publish rules (mirrored by the editor): schemaVersion\n1; 1-24 blocks with unique ids; exactly one enabled hero (FIRST\namong enabled blocks) and one enabled positions; <=12 items per\nrepeater; every locale-map string of an ENABLED block non-empty for\nevery locale in `locales`; `locales` is a non-empty subset of the\ntenant's activeLanguages plus sourceLanguage and must contain\nsourceLanguage; absolute URLs only under the tenant's OWN CDN\nprefixes (tenants/{shortCode}/ or tenants/{tenantId}/) OR an https\nvideo embed on youtube.com / www.youtube.com / youtu.be /\nyoutube-nocookie.com / vimeo.com / player.vimeo.com - the embed\nallowlist applies ANYWHERE in the tree, is matched on the parsed\nHOST (not a string prefix) and never accepts http; no < or > in\ntext; <=131072 BYTES (UTF-8).",
|
|
10807
|
+
"properties": {
|
|
10808
|
+
"schemaVersion": {
|
|
10809
|
+
"type": "integer",
|
|
10810
|
+
"enum": [
|
|
10811
|
+
1
|
|
10812
|
+
]
|
|
10813
|
+
},
|
|
10814
|
+
"sourceLanguage": {
|
|
10815
|
+
"type": "string",
|
|
10816
|
+
"description": "BCP-47 tag."
|
|
10817
|
+
},
|
|
10818
|
+
"locales": {
|
|
10819
|
+
"type": "array",
|
|
10820
|
+
"items": {
|
|
10821
|
+
"type": "string"
|
|
10822
|
+
},
|
|
10823
|
+
"description": "The locales the page publishes in. The public language switcher offers exactly these."
|
|
10824
|
+
},
|
|
10825
|
+
"theme": {
|
|
10826
|
+
"title": "CareersThemeSchema",
|
|
10827
|
+
"type": "object",
|
|
10828
|
+
"description": "Optional per-tenant palette, published alongside `branding` in\nthe public document. Absent means the page renders the product\ndefaults. Values are interpolated into CSS custom properties on\na PUBLIC page, so each is pattern-bounded rather than free-form\nCSS. Unknown keys are ignored (forward-compatible), but\n`primaryColor` is required once the object is present.",
|
|
10829
|
+
"properties": {
|
|
10830
|
+
"primaryColor": {
|
|
10831
|
+
"type": "string",
|
|
10832
|
+
"pattern": "^#[0-9a-fA-F]{6}$",
|
|
10833
|
+
"description": "6-digit hex, e.g. #1a73e8."
|
|
10834
|
+
},
|
|
10835
|
+
"secondaryColor": {
|
|
10836
|
+
"type": "string",
|
|
10837
|
+
"pattern": "^#[0-9a-fA-F]{6}$"
|
|
10838
|
+
},
|
|
10839
|
+
"buttonRadius": {
|
|
10840
|
+
"type": "integer",
|
|
10841
|
+
"minimum": 0,
|
|
10842
|
+
"maximum": 32,
|
|
10843
|
+
"description": "Corner radius in PIXELS. A bounded number, not a CSS length string."
|
|
10844
|
+
}
|
|
10845
|
+
}
|
|
10846
|
+
},
|
|
10847
|
+
"blocks": {
|
|
10848
|
+
"type": "array",
|
|
10849
|
+
"minItems": 1,
|
|
10850
|
+
"maxItems": 24,
|
|
10851
|
+
"items": {
|
|
10852
|
+
"title": "CareersBlockSchema",
|
|
10853
|
+
"type": "object",
|
|
10854
|
+
"description": "One page section. `data` is the block-type-specific payload: plain\nfields (icon names, urls) plus locale maps\n({\"en-US\": \"...\", \"pl-PL\": \"...\"}) for every visitor-facing string;\nrepeaters are arrays of such objects (<=12 items). The catalog is\nCLOSED - there is no free-form HTML block (XSS door on a public\npage).",
|
|
10855
|
+
"properties": {
|
|
10856
|
+
"id": {
|
|
10857
|
+
"type": "string",
|
|
10858
|
+
"maxLength": 64,
|
|
10859
|
+
"description": "Stable within the document; [A-Za-z0-9_-]."
|
|
10860
|
+
},
|
|
10861
|
+
"type": {
|
|
10862
|
+
"type": "string",
|
|
10863
|
+
"enum": [
|
|
10864
|
+
"hero",
|
|
10865
|
+
"stats",
|
|
10866
|
+
"positions",
|
|
10867
|
+
"features",
|
|
10868
|
+
"team",
|
|
10869
|
+
"testimonials",
|
|
10870
|
+
"faq",
|
|
10871
|
+
"gallery",
|
|
10872
|
+
"cta",
|
|
10873
|
+
"richText"
|
|
10874
|
+
]
|
|
10875
|
+
},
|
|
10876
|
+
"enabled": {
|
|
10877
|
+
"type": "boolean",
|
|
10878
|
+
"description": "Disabled blocks stay in the draft (and keep translations) but never ship to the public doc and are locale-exempt at publish."
|
|
10879
|
+
},
|
|
10880
|
+
"data": {
|
|
10881
|
+
"type": "object",
|
|
10882
|
+
"additionalProperties": true
|
|
10883
|
+
}
|
|
10884
|
+
}
|
|
10885
|
+
}
|
|
10886
|
+
}
|
|
10887
|
+
}
|
|
10888
|
+
}
|
|
10889
|
+
}
|
|
10890
|
+
}
|
|
10891
|
+
}
|
|
10892
|
+
}
|
|
10893
|
+
}
|
|
10894
|
+
}
|
|
10895
|
+
},
|
|
10896
|
+
"required": [
|
|
10897
|
+
"careerId",
|
|
10898
|
+
"requestBody"
|
|
10899
|
+
]
|
|
10900
|
+
}
|
|
10901
|
+
}
|
|
10902
|
+
},
|
|
10903
|
+
{
|
|
10904
|
+
"type": "function",
|
|
10905
|
+
"function": {
|
|
10906
|
+
"name": "delete_career",
|
|
10907
|
+
"description": "Delete Career",
|
|
10908
|
+
"parameters": {
|
|
10909
|
+
"type": "object",
|
|
10910
|
+
"properties": {
|
|
10911
|
+
"careerId": {
|
|
10912
|
+
"type": "string",
|
|
10913
|
+
"description": "careerId parameter"
|
|
10914
|
+
}
|
|
10915
|
+
},
|
|
10916
|
+
"required": [
|
|
10917
|
+
"careerId"
|
|
10918
|
+
]
|
|
10919
|
+
}
|
|
10920
|
+
}
|
|
10921
|
+
},
|
|
10922
|
+
{
|
|
10923
|
+
"type": "function",
|
|
10924
|
+
"function": {
|
|
10925
|
+
"name": "career_options",
|
|
10926
|
+
"description": "Career Options",
|
|
10927
|
+
"parameters": {
|
|
10928
|
+
"type": "object",
|
|
10929
|
+
"properties": {}
|
|
10930
|
+
}
|
|
10931
|
+
}
|
|
10932
|
+
},
|
|
10516
10933
|
{
|
|
10517
10934
|
"type": "function",
|
|
10518
10935
|
"function": {
|